mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 17:38:05 +11:00
d041b91846
Use EXX instead of the stack for HL protection and remove all spurious uses of chkPS, I wanted to inline chkPS in next because of its "tight loop" status, but for reasons I don't understand, doing so breaks Collapse OS. Later...
16 lines
277 B
Plaintext
16 lines
277 B
Plaintext
CODE PICK
|
|
HL POPqq,
|
|
( 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
|