mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 17:18:06 +11:00
440ea43a88
Initially, I used the same letters as those used in the z80 ref docs, but it makes the different assemblers harder to use than they should. Having consistent "argtype" rules across assemblers should help.
13 lines
416 B
Plaintext
13 lines
416 B
Plaintext
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, lblofl BWR ( abortUnderflow-B298 )
|