Shop OBEX P1 Docs P2 Docs Learn Events
troubles with RES — Parallax Forums

troubles with RES

Graham StablerGraham Stabler Posts: 2,507
edited 2006-08-05 12:20 in Propeller 1
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
Sign In or Register to comment.