flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > CALM: Tomasz, does call inx preserve flags ? |
Author |
|
fabbel 17 Jun 2023, 08:18
.. Forgive me, actually I think it does... I think I got confused... Let me explain:
I was calling some calm inx to set the flags and was expecting them to be preserved upon return to the caller inx .. But current scheme is rather to preserve flags from the caller Before the call... However, wudn'it be a sensible option? |
|||
17 Jun 2023, 08:18 |
|
Tomasz Grysztar 17 Jun 2023, 09:30
Yes, unless it's explicitly stated that a given command modifies the flag, it is unaffected/preserved by default. I chose to do the same with CALL to make it compatible with ASSEMBLE - that is, if you replaced an old ASSEMBLE statement with CALL, it would still behave the same way.
I see how the opposite behavior could be useful - but I had to choose one way or the other. |
|||
17 Jun 2023, 09:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.