2020-07-05 22:03:15 +10:00
|
|
|
CODE ROT ( a b c -- b c a ) 3 chkPS,
|
|
|
|
CX POPx, BX POPx, AX POPx,
|
2020-10-30 03:34:02 +11:00
|
|
|
BX PUSHx, CX PUSHx, AX PUSHx, ;CODE
|
|
|
|
CODE ROT> ( a b c -- c a b ) 3 chkPS,
|
|
|
|
CX POPx, BX POPx, AX POPx,
|
|
|
|
CX PUSHx, AX PUSHx, BX PUSHx, ;CODE
|
2020-06-23 04:20:46 +10:00
|
|
|
CODE DUP 1 chkPS, AX POPx, AX PUSHx, AX PUSHx, ;CODE
|
|
|
|
CODE ?DUP 1 chkPS, AX POPx, AX AX ORxx, AX PUSHx,
|
|
|
|
IFNZ, AX PUSHx, THEN, ;CODE
|
|
|
|
CODE OVER ( a b -- a b a ) 2 chkPS,
|
|
|
|
DI SP MOVxx, AX [DI] 2 MOVx[]+, AX PUSHx, ;CODE
|
|
|
|
CODE PICK
|
|
|
|
DI POPx, DI SHLx1, ( x2 )
|
2020-09-26 09:39:31 +10:00
|
|
|
CX DI MOVxx, CX 2 ADDxi, CALL, lblchkPS @ RPCn,
|
2020-06-23 04:20:46 +10:00
|
|
|
DI SP ADDxx, DI [DI] MOVx[], DI PUSHx,
|
|
|
|
;CODE
|