mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 19:18:06 +11:00
12 lines
234 B
Plaintext
12 lines
234 B
Plaintext
CODE SWAP ( a b -- b a )
|
|
HL POP, ( B ) DE POP, ( A )
|
|
chkPS,
|
|
HL PUSH, ( B ) DE PUSH, ( A )
|
|
;CODE
|
|
|
|
CODE OVER ( a b -- a b a )
|
|
HL POP, ( B ) DE POP, ( A )
|
|
chkPS,
|
|
DE PUSH, ( A ) HL PUSH, ( B ) DE PUSH, ( A )
|
|
;CODE
|