Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global astrlen
- segment .text
- ;int strlen(const char *string)
- astrlen:
- push edi
- mov edi,[esp+8]
- xor eax,eax
- xor ecx,ecx
- dec ecx
- repne scasb
- not ecx
- lea eax,[ecx-1]
- pop edi
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement