compiler expectations for bank select register?
Posted: Tue Jul 19, 2016 8:51 am
I'm having some issues with a few macros I wrote, and it seems to have something to do with register banking.
Is the compiler supposed to track BSR usage through a sub/function/macro call?
If a routine (in this case a macro) modifies the BSR does the compiler expect it to be restored/zeroed when the routine exits
and returns to the caller?
Is the compiler supposed to track BSR usage through a sub/function/macro call?
If a routine (in this case a macro) modifies the BSR does the compiler expect it to be restored/zeroed when the routine exits
and returns to the caller?