mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-20 15:38:05 +11:00
15 lines
376 B
Plaintext
15 lines
376 B
Plaintext
PC ORG @ 0x1e + ! ( chkPS )
|
|
HL PUSHqq,
|
|
RAMSTART LDHL(nn), ( RAM+00 == INITIAL_SP )
|
|
( We have the return address for this very call on the stack
|
|
and protected registers. Let's compensate )
|
|
HL DECss,
|
|
HL DECss,
|
|
HL DECss,
|
|
HL DECss,
|
|
SP SUBHLss,
|
|
HL POPqq,
|
|
CNC RETcc, ( INITIAL_SP >= SP? good )
|
|
JR, L2 BWR ( abortUnderflow-B298 )
|
|
|