1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-05 23:40:56 +11:00
collapseos/blk/299

17 lines
436 B
Plaintext
Raw Normal View History

2020-04-23 11:19:12 +10:00
PC ORG @ 0x1e + ! ( chkPS )
( 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-23 11:19:12 +10:00
( We have the return address for this very call on the stack
and protected registers. 2 - is to compensate that. )
HL PS_ADDR 2 - LDddnn,
2020-04-23 11:19:12 +10:00
SP SUBHLss,
EXX,
CNC RETcc, ( PS_ADDR >= SP? good )
2020-04-23 11:19:12 +10:00
JR, L2 BWR ( abortUnderflow-B298 )