2020-07-06 03:41:12 +10:00
|
|
|
lblchkPS BSET ( chkPS )
|
2020-08-23 22:38:04 +10:00
|
|
|
( thread carefully in there: sometimes, we're in the
|
|
|
|
middle of a EXX to protect BC. BC must never be touched
|
|
|
|
here. )
|
2020-07-06 03:41:12 +10:00
|
|
|
EXX,
|
|
|
|
( We have the return address for this very call on the stack
|
|
|
|
and protected registers. 2- is to compensate that. )
|
2020-08-15 22:11:48 +10:00
|
|
|
HL PS_ADDR 2- LDdi,
|
2020-07-06 03:41:12 +10:00
|
|
|
SP SUBHLd,
|
|
|
|
EXX,
|
|
|
|
CNC RETc, ( PS_ADDR >= SP? good )
|
2020-08-23 22:38:04 +10:00
|
|
|
( continue to uflw )
|
|
|
|
lbluflw BSET ( abortUnderflow )
|
|
|
|
DE BIN( @ 0x06 ( uflw ) + LDd(i),
|
|
|
|
JR, lblexec BWR
|