home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
progjour
/
1991
/
06
/
alib
/
strcmpi.asm
< prev
next >
Wrap
Assembly Source File
|
1991-08-21
|
414b
|
32 lines
include asm.inc
public strcmpi
.code
extn tolower
;; strcmpi
;
; entry DS:SI string1
; ES:DI string2
; exit Zf if string1==string2
; uses AX
;
strcmpi proc
pushm di,si
sci1: mov ah,es:[di]
lodsb
or ax,ax
jz sci2 ; if same strings
inc di
call tolower
xchg al,ah
call tolower
cmp ah,al
je sci1 ; if strings match so far
sci2: popm si,di
ret
strcmpi endp
end