mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 21:08:05 +11:00
da371451cc
Now I struggle to remember why I ever did things they way I did. There must have been a reason...
17 lines
288 B
Plaintext
17 lines
288 B
Plaintext
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,
|
|
HL PS_ADDR LDddnn,
|
|
DE SUBHLss,
|
|
CC L2 @ JPccnn, ( abortUnderflow-B298 )
|
|
BC PUSHqq,
|
|
;CODE
|