Help! OS_CLI flags?
Rick Murray (539) 13850 posts |
I have some code:
I would like this to work, as it can be done in-line conditionally with no need for branching, but I’m uncertain of how the OS_CLI call may affect the flags. Astonishingly, the StrongHelp OS manual, the PDF PRM, the paper PRM, and the on line documentation here all neglect to mention what this SWI may or may not do to the flags. Can somebody confirm if the code snippet is “safe” (the OS preserves flags) or otherwise? Thank you. |
Martin Avison (27) 1494 posts |
Surely if running 32bit, flags are not preserved over SWIs? |
Rick Murray (539) 13850 posts |
Damn, I’ll need to branch it then. You know, the ARM was so much purer in its 26 bit implementation. Thanks for boinking my braincell… (^_^) |