2020-06-21 14:07:02 -04:00
|
|
|
CODE BYE BEGIN, JMPs, AGAIN, ;CODE
|
|
|
|
CODE S= 2 chkPS,
|
2020-06-21 10:40:09 -04:00
|
|
|
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
|
2020-06-21 14:07:02 -04:00
|
|
|
CODE CMP 2 chkPS,
|
2020-06-21 10:40:09 -04:00
|
|
|
BX POPx, AX POPx, CX CX XORxx, AX BX CMPxx,
|
|
|
|
IFNZ, ( < or > )
|
2020-06-21 14:49:54 -04:00
|
|
|
CX INCx, IFC, ( < ) CX DECx, CX DECx, THEN,
|
2020-06-21 10:40:09 -04:00
|
|
|
THEN,
|
|
|
|
CX PUSHx,
|
|
|
|
;CODE
|