mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 01:40:56 +11:00
4a91ee5c9c
Only its jump addr remains.
17 lines
320 B
Plaintext
17 lines
320 B
Plaintext
CODE ROT ( a b c -- b c a )
|
|
HL POP, ( C ) DE POP, ( B ) BC POP, ( A ) chkPS,
|
|
DE PUSH, ( B ) HL PUSH, ( C ) BC PUSH, ( A )
|
|
;CODE
|
|
CODE DUP ( a -- a a )
|
|
HL POP, chkPS,
|
|
HL PUSH, HL PUSH,
|
|
;CODE
|
|
CODE ?DUP
|
|
HL POP, chkPS,
|
|
HL PUSH,
|
|
HLZ, IFNZ, HL PUSH, THEN,
|
|
;CODE
|
|
CODE DROP ( a -- )
|
|
HL POP,
|
|
;CODE
|