home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Large Pack of OldSkool DOS MOD Trackers
/
cdfm.zip
/
STRLEN.RT
< prev
next >
Wrap
Text File
|
1992-06-10
|
477b
|
22 lines
public _strlen
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
; Get length of ASCIIZ string
; In:
; EDX -> string
; Out:
; EAX - length
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
_strlen:
push ecx
push edi
mov edi,edx
mov ecx,-1
xor al,al
repnz scasb
mov eax,-2
sub eax,ecx
pop edi
pop ecx
ret