Future ISA: consider replacing EXX with PUSHA/POPA #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
EXX (exchange shadow registers) is inherited from the Z80 but is barely useful on the SBC7 — you can't nest it, and ISRs still need to save/restore registers manually since there's no guarantee the interrupted code wasn't already using the shadow set.
For a future ISA revision, consider dropping EXX and replacing it with single-instruction push-all/pop-all:
This would make ISR prologues/epilogues trivial and save significant code space in interrupt-heavy programs. It's what EXX was trying to do (fast context save) but actually useful.
This is a "future revision" / "Super 7" idea, not something to do in the current ISA.