Hi,
The manual says:
This makes sense since the largest variable supported by PBP is 16bits so a word sizes variable can't be more than 5 digits.DIG returns the value of a decimal digit. Simply tell it the digit number (0 - 4 with 0 being the rightmost digit) you would like the value of, and voila.
If you have a word sized variable and it's value is 23 and you ask for DIG 2 it will return the value 0 since your variable is 00023.
HOWEVER, the program compiles just fine even if you say DIG 6. I don't know what it will return. Perhaps it "spills" over into the next byte in RAM.
/Henrik Olsson.
Bookmarks