home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
BURKS
/
SOFTWARE
/
LIBS
/
PMC101.ZIP
/
LIBSRC.ZIP
/
STRCHR.ASM
(
.txt
)
< prev
next >
Wrap
Assembly Source File
|
1994-06-13
|
528b
|
38 lines
.386p
locals
public STRCHR
_TEXT segment byte public use32 'CODE'
assume cs:_TEXT
STRCHR:
push edi
cld
mov edi,[esp+4+4+04h]
mov edx,edi
or ecx,-1
xor al,al
repne scasb
not ecx
mov edi,edx
mov al,[esp+4+4+00h]
repne scasb
jne short @@01
lea eax,[edi-1]
jmp short @@00
@@01:
xor eax,eax
@@00:
pop edi
ret 08h
_TEXT ends
end