Code: Select all
lea si, [kernelname]
lea di, [name2]
mov ecx, 10
CmpStrs:
cld
repe cmpsb
jne StrsNotEqual
lea si,[msg2]
CALL print
jmp $
StrsNotEqual:
lea si,[msg3]
CALL print
jmp $
msg2 DB "equal!",10,13,0
msg3 DB "not equal!",10,13,0
kernelname DB "kernel.bin"
name2 DB "kernel.bin"
EDIT: can someone move this thread to the correct place?