1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-26 18:08:05 +11:00
collapseos/blk/827

17 lines
387 B
Plaintext
Raw Normal View History

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