Problem with Toggle Statement
I am new to the SX and to SX/B and am unsure what might be the problem with the "TOGGLE reverseDirection" statement at line 100 in the attached SX/B source code.· I have SX/B 1.51.03 and SX Key 3.92.h beta.
When I compile the source code the resulting assembly listing shows an error at "Line 288, Error 1, Pass 2"
(XOR reverseDirection,#%00000100 ;····· TOGGLE reverseDirection).
The variable 'reverseDirection' is used in an earlier statement, seemingly without problem.· Also there is an earlier TOGGLE statement resulting in an apparently valid XOR statement.
I would appreciate any insight into this problem.
-- George
When I compile the source code the resulting assembly listing shows an error at "Line 288, Error 1, Pass 2"
(XOR reverseDirection,#%00000100 ;····· TOGGLE reverseDirection).
The variable 'reverseDirection' is used in an earlier statement, seemingly without problem.· Also there is an earlier TOGGLE statement resulting in an apparently valid XOR statement.
I would appreciate any insight into this problem.
-- George
Comments
reverseDirection = NOT reverseDirection
Edit: replaced your code with above, and it works fine, or at lease compiles.
Post Edited (Capdiamont) : 10/20/2008 4:23:14 AM GMT
I see that the SX/B compiler software is several years old.· Is it still being maintained?
XOR is looking for a byte.· If you substitute the following in your variables declaration, it'll compile.· Notice now·the XOR is with "DirectionByte" in the list file.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Bad spellers of the world untie!