mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 21:50:55 +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...
15 lines
192 B
Plaintext
15 lines
192 B
Plaintext
( a b -- )
|
|
CODE 2DROP
|
|
HL POPqq,
|
|
HL POPqq,
|
|
;CODE
|
|
|
|
( a b -- a b a b )
|
|
CODE 2DUP
|
|
HL POPqq, ( b ) DE POPqq, ( a )
|
|
chkPS,
|
|
DE PUSHqq, HL PUSHqq,
|
|
DE PUSHqq, HL PUSHqq,
|
|
;CODE
|
|
|