1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 13:18:06 +11:00
collapseos/blk/308

17 lines
416 B
Plaintext
Raw Normal View History

2020-07-06 04:13:01 +10:00
CODE ROT ( a b c -- b c a )
HL POP, ( C ) DE POP, ( B ) IY POP, ( A ) chkPS,
DE PUSH, ( B ) HL PUSH, ( C ) IY PUSH, ( A )
2020-07-06 04:13:01 +10:00
;CODE
CODE ROT> ( a b c -- c a b )
HL POP, ( C ) DE POP, ( B ) IY POP, ( A ) chkPS,
HL PUSH, ( C ) IY PUSH, ( A ) DE PUSH, ( B )
;CODE
2020-07-06 04:13:01 +10:00
CODE DUP ( a -- a a )
HL POP, chkPS,
HL PUSH, HL PUSH,
;CODE
CODE ?DUP
HL POP, chkPS, HL PUSH,
2020-07-06 04:13:01 +10:00
HLZ, IFNZ, HL PUSH, THEN,
;CODE