1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 12:38:06 +11:00
collapseos/blk/299
2020-04-22 21:19:12 -04:00

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 )