mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 03:30:55 +11:00
da371451cc
Now I struggle to remember why I ever did things they way I did. There must have been a reason...
11 lines
306 B
Plaintext
11 lines
306 B
Plaintext
PC ORG @ 0x1e + ! ( chkPS )
|
|
HL PUSHqq,
|
|
( We have the return address for this very call on the stack
|
|
and protected registers. 4 - is to compensate that. )
|
|
HL PS_ADDR 4 - LDddnn,
|
|
SP SUBHLss,
|
|
HL POPqq,
|
|
CNC RETcc, ( PS_ADDR >= SP? good )
|
|
JR, L2 BWR ( abortUnderflow-B298 )
|
|
|