Example 3
Revision as of 15:46, 13 March 2007 by 207.34.103.194 (talk)
Assembly Language Tutorial | |
---|---|
Please choose a tutorial page:
|
push ebp mov ebp, esp mov eax, [ebp+arg_0] test eax, eax jnz short loc_1 push 57h ; dwErrCode call ds:SetLastError xor eax, eax pop ebp retn 8 ; --------------------------------------------------------------------------- loc_1: mov cl, [eax] test cl, cl jz short loc_3 mov dl, [ebp+arg_4] jmp short loc_2 ; --------------------------------------------------------------------------- loc_2: cmp cl, dl jz short loc_4 mov cl, [eax+1] inc eax test cl, cl jnz short loc_2 loc_3: xor eax, eax loc_4: pop ebp retn 8
Questions
Feel free to edit this section and post questions, I'll do my best to answer them. But you may need to contact me to let me know that a question exists.