Difference between revisions of "Example 1"
Jump to navigation
Jump to search
(New page: mov eax, 3 mov esi, ecx xor ecx, ecx Top: movsx edx, byte ptr [ecx+esi] sub edx, 30h lea edi, [eax+eax] xor edx, edi add eax, edx ...) |
|||
Line 1: | Line 1: | ||
<pre> | |||
mov eax, 3 | mov eax, 3 | ||
mov esi, ecx | mov esi, ecx | ||
Line 27: | Line 28: | ||
xor eax, eax | xor eax, eax | ||
ret | ret | ||
</pre> |
Revision as of 03:40, 11 March 2007
mov eax, 3 mov esi, ecx xor ecx, ecx Top: movsx edx, byte ptr [ecx+esi] sub edx, 30h lea edi, [eax+eax] xor edx, edi add eax, edx inc ecx cmp ecx, 0Ch jl short Top xor edx, edx mov ecx, 0Ah div ecx movsx eax, byte ptr [esi+0Ch] add edx, 30h cmp eax, edx jnz bottom mov eax, 1 ret bottom: xor eax, eax ret