1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 04:18:06 +11:00
collapseos/blk/310

17 lines
313 B
Plaintext
Raw Normal View History

2020-04-23 11:19:12 +10:00
CODE PICK
HL POPqq,
chkPS,
( x2 )
L SLAr, H RLr,
SP ADDHLss,
C (HL) LDrr,
HL INCss,
B (HL) LDrr,
( check PS range before returning )
EXDEHL,
RAMSTART LDHL(nn), ( RAM+00 == INITIAL_SP )
DE SUBHLss,
CC L2 @ JPccnn, ( abortUnderflow-B298 )
BC PUSHqq,
;CODE