Let me take DIG.
I had posted this example somewhere before..Here it is again.
Say we have a byte and it is set to Decimal 245.
- - - - - - - - - - - -
ex:
Test VAR BYTE
Apple VAR BYTE
Test = 245
In this case, from right to left,
Test Dig 0 is 5
Test Dig 1 is 4
Test Dig 2 is 2
to extract any of these numbers and use in somewhere else, we use;
Apple = Test Dig 1
Apple is now 4.
- - - - - - - - - -
As you can see and know, DIG addresses to an individual digit of a variable.
You can also use DIG with LCDOUT, SEROUT commands etc...
------------------------------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks