1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-28 23:38:05 +11:00
collapseos/blk/326
Virgil Dupras b626944273 z80: move back R* words to native words section
This allows us to refer to pushRS/popRS routines by labels, allowing
us to get rid of the pushRS reference in the stable ABI zone.
2020-07-05 08:15:50 -04:00

16 lines
290 B
Plaintext

CODE >R
HL POP, lblpushRS @ CALL,
;CODE
CODE R>
lblpopRS @ CALL, HL PUSH,
;CODE
CODE 2>R
PC ORG @ 0x35 + ! ( stable ABI JP )
DE POP, HL POP,
lblpushRS @ CALL, EXDEHL, lblpushRS @ CALL,
;CODE
CODE 2R>
lblpopRS @ CALL, EXDEHL, lblpopRS @ CALL,
HL PUSH, DE PUSH,
;CODE