2020-06-14 09:29:34 -04:00
|
|
|
L1 BSET PC ORG @ 0x1e + ! ( chkPS )
|
2020-05-22 23:12:03 -04:00
|
|
|
( Note that you only need to call this in words that push
|
|
|
|
back to PSP. If they don't, calling chkPS is redundant with
|
|
|
|
check in next )
|
|
|
|
EXX,
|
2020-04-22 21:19:12 -04:00
|
|
|
( We have the return address for this very call on the stack
|
2020-05-22 23:12:03 -04:00
|
|
|
and protected registers. 2 - is to compensate that. )
|
|
|
|
HL PS_ADDR 2 - LDddnn,
|
2020-04-22 21:19:12 -04:00
|
|
|
SP SUBHLss,
|
2020-05-22 23:12:03 -04:00
|
|
|
EXX,
|
2020-05-11 21:08:24 -04:00
|
|
|
CNC RETcc, ( PS_ADDR >= SP? good )
|
2020-04-22 21:19:12 -04:00
|
|
|
JR, L2 BWR ( abortUnderflow-B298 )
|
|
|
|
|
2020-06-11 18:12:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|