What went wrong?
Posted: Fri Mar 19, 2010 8:37 am
I have a piece of code...
Althought it is supposed to print "equal!", it just keeps print "not equal!". Can anybody point out the wrong part?
EDIT: can someone move this thread to the correct place?
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?