2020-07-05 14:13:01 -04:00
|
|
|
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,
|
2020-04-22 21:19:12 -04:00
|
|
|
;CODE
|