Re: Task 3 Wednesday, 10-Feb-99 10:44:37
Sorry, I'm late 'cause I was traveling. Question 1 :0040B73A call 0040CCC0 => ECX = Realreg# EDX = reg# Compare reg# X Realreg# If different EAX = FFFFFFFF :0040B73F add esp, 00000008 => I think it just clean the stack :0040B742 test eax, eax => Test if EAX = 00000000 :0040B744 jne 0040B9BC => If EAX = 00000000 then Jump to wrong reg# msg else continue code Question 2 :0040CCCE mov ecx, dword ptr [esp+10] => ECX = reg# :0040CCD2 mov edx, dword ptr [esp+14] => EDX = Ralreg# :0040CCD6 mov al, byte ptr [ecx] => AL = 1 ECX's charcter :0040CCD8 cmp al, byte ptr [edx] => Test if AL = 1 EDX's charcter :0040CCDA jne 0040CCFA => If not go to Wrong reg# message, else continue :0040CCDC or al,al :0040CCDC je 0040CCF2 => Exit loop :0040CCE0 mov al, byte ptr [ecx+01] => AL = 1 ECX's charcter :0040CCE3 cmp al, byte ptr [edx+01] => Test if AL = 1 EDX's charcter :0040CCE6 jne 0040CCFA => If not go to Wrong reg# message, else continue :0040CCE8 add ecx, 00000002 => Move to the next characters :0040CCEB add edx, 00000002 => Move to the next characters :0040CCEE or al, al :0040CCF0 jne 0040CCD6 ;well anyway repeat loop Question 3 I don't know asm well so I'm having troubles. If someone can help me, please do it. Phreaking out |
Phreakazoid: Task 2 (04-Feb-99 15:36:25) |
|
Copyright © InsideTheWeb, Inc. 1997-1999
All rights reserved.