1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-05 21:20:55 +11:00
collapseos/blk/825

16 lines
335 B
Plaintext
Raw Normal View History

2020-06-19 21:26:33 +10:00
CODE S=
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
BX POPx, AX POPx, CX CX XORxx, AX BX CMPxx,
IFNZ, ( < or > )
CX INCx, IFNC, ( < ) CX DECx, CX DECx, THEN,
THEN,
CX PUSHx,
;CODE