troubles with RES
Graham Stabler
Posts: 2,510
I have been playing with getting some assembly to read local variables using PAR, I tested it with hard coded symbols in the assembly and then used rdlong to get the global variable from main memory and just changed the origional declaration of the symbol from float to RES, it didn't work. It turns out all the reserved variables must be after those declared as constants.
So:
Pin long |<7
_Delay1 res 1
Delay2 long 2000
Time res 1
didn't work but:
Pin long |<7
Delay2 long 2000
Time res 1
_Delay1 res 1
Did
Just a warning, all the examples have the RES statements at the end but I didn't see anything in the documentation under RES, probably me just being thick and I haven't read everything yet.
Graham
So:
Pin long |<7
_Delay1 res 1
Delay2 long 2000
Time res 1
didn't work but:
Pin long |<7
Delay2 long 2000
Time res 1
_Delay1 res 1
Did
Just a warning, all the examples have the RES statements at the end but I didn't see anything in the documentation under RES, probably me just being thick and I haven't read everything yet.
Graham