CMPSUB oddity
BradC
Posts: 2,601
This is an odd one...
The manual lists CMPSUB as having the R bit clear by default, meaning it won't write the result.
The compiler sets the R bit by default and requires an "nr" effect to clear it..
generates. E0 BC 04 03
with the "nr" it generates E0 3C 04 03 .. as it should..
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
The manual lists CMPSUB as having the R bit clear by default, meaning it won't write the result.
The compiler sets the R bit by default and requires an "nr" effect to clear it..
org cmpsub a,b a long 0 b long 0
generates. E0 BC 04 03
with the "nr" it generates E0 3C 04 03 .. as it should..
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Parallax Forums - If you're ready to learn, we're ready to help.
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PMv1.0Supplement-v1.3.pdf
·
I wonder if there is any plan to fold this stuff into a manual revision ?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
Thanks much,
-Stephanie Lindsay
Editor, Parallax Inc.