collapseos/blk/494
Virgil Dupras bf4ab0f1b4 z80: protect or avoid BC wherever it's used
For the IY->BC move, of course.
2020-07-05 23:12:17 -04:00

13 lines
241 B
Plaintext

: LINES 24 ; : COLS 80 ;
CODE BYE
HL 0 LDdn,
A 0x16 LDri, ( @EXIT )
0x28 RST,
CODE @DCSTAT ( drv -- f ) EXX, ( protect BC )
BC POP,
chkPS,
A 0x28 LDri, ( @DCSTAT )
0x28 RST,
PUSHZ,
EXX, ( unprotect BC ) ;CODE