strcmp:
.cmploop:
mov al, [si]
mov bl, [di]
cmp al, bl
jne .exitstrcmp
cmp al, 0
je .match
inc di
inc si
jmp .cmploop
.exitstrcmp:
clc
jmp retback
ret
.match:
stc
jmp retback
ret
retback:
ret
%macro iff 3
mov si, %1
mov di, %2
call strcmp
jc %3
%endmacro
i.e:
iff string1, string2, gotoLabel