As Alain mentioned, there are potential side effects If I start playing directly with the registers.

Instead now, I am using flags being set to zero before going to a subroutine, and set the flags if something inside the subroutine is used.

Then at the end of the subroutine(s), I am using a kind of select case with "GOTO".

This way, I don't have any "return" address to care for.


This is a little code eating though; but a lot safer.

-------------------