mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 08:18:06 +11:00
5adbf88591
with uflw checks not being in next anymore, we can save ourselves a forward jump.
16 lines
484 B
Plaintext
16 lines
484 B
Plaintext
lbluflw BSET ( abortUnderflow )
|
|
DE BIN( @ 0x06 ( uflw ) + LDdd(n),
|
|
JR, lblexec BWR
|
|
lblchkPS BSET ( 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,
|
|
( We have the return address for this very call on the stack
|
|
and protected registers. 2- is to compensate that. )
|
|
HL PS_ADDR 2- LDdn,
|
|
SP SUBHLd,
|
|
EXX,
|
|
CNC RETc, ( PS_ADDR >= SP? good )
|
|
JR, lbluflw BWR
|