home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng)
/
ProfitPress-MegaCDROM2.B6I
/
MAGAZINE
/
MISC
/
PJ_9_6.ZIP
/
ALIB.ZIP
/
STRCMPI.ASM
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Assembly Source File
|
1991-08-21
|
414 b
|
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