Actually there are several other variable names that should be included
in the PBP reserved words list.
For example;
R0
R1
R2
R2
FLAGS
GOP
RM1, and more
Look in the PBPPIC14.RAM or PBPPIC18.RAM files. Not sure why these
aren't in the reserved words list..!
Using R0, flags, etc with version 2.46 returns an error at compile time
with "Redefinition of VAR".
Not sure why you wouldn't get the same error with v2.44?
With v2.46 this works;
Code:
X VAR BYTE
Y VAR BYTE
BITS VAR BIT[8]
Main:
CLEAR
FOR X = 0 to 7
BITS[X] = 1
Y.0[X] = BITS[X] ' Y.bit.X = BITS.bit.X
NEXT X
GOTO Main
Bookmarks