mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 03:30:55 +11:00
cd514e6cd6
Also, fix (roll) which wasn't properly implemented.
15 lines
584 B
Plaintext
15 lines
584 B
Plaintext
( cont. find ) JNZ, AGAIN, ( loop )
|
|
SI DECx, SI PUSHx, AX AX XORrr, AX PUSHx,
|
|
;CODE
|
|
CODE 0 AX AX XORxx, AX PUSHx, ;CODE
|
|
CODE 1 AX 1 MOVxI, AX PUSHx, ;CODE
|
|
CODE -1 AX -1 MOVxI, AX PUSHx, ;CODE
|
|
CODE 1+ 1 chkPS, DI SP MOVxx, [DI] INC[w], ;CODE
|
|
CODE 1- 1 chkPS, DI SP MOVxx, [DI] DEC[w], ;CODE
|
|
CODE 2+ 1 chkPS, DI SP MOVxx, [DI] INC[w], [DI] INC[w], ;CODE
|
|
CODE 2- 1 chkPS, DI SP MOVxx, [DI] DEC[w], [DI] DEC[w], ;CODE
|
|
CODE RSHIFT ( n u -- n ) 2 chkPS,
|
|
CX POPx, AX POPx, AX SHRxCL, AX PUSHx, ;CODE
|
|
CODE LSHIFT ( n u -- n ) 2 chkPS,
|
|
CX POPx, AX POPx, AX SHLxCL, AX PUSHx, ;CODE
|