mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 17:58:06 +11:00
17 lines
392 B
Plaintext
17 lines
392 B
Plaintext
CODE BYE HLT, BEGIN, JMPs, AGAIN, ;CODE
|
|
CODE S= 2 chkPS,
|
|
SI POPx, DI POPx, CH CH XORrr, CL [SI] MOVr[],
|
|
CL [DI] CMPr[],
|
|
IFZ, ( same size? )
|
|
SI INCx, DI INCx, CLD, REPZ, CMPSB,
|
|
THEN,
|
|
PUSHZ,
|
|
;CODE
|
|
CODE CMP 2 chkPS,
|
|
BX POPx, AX POPx, CX CX XORxx, AX BX CMPxx,
|
|
IFNZ, ( < or > )
|
|
CX INCx, IFC, ( < ) CX DECx, CX DECx, THEN,
|
|
THEN,
|
|
CX PUSHx,
|
|
;CODE
|