| View previous topic :: View next topic |
| Author |
Message |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3330
|
Posted: Sun Sep 22, 2013 3:03 pm Post subject: Assembly: puzzled about a jump instruction |
|
|
Hi all,
I have encountered an instruction which leaves me puzzled because it does not seem to be doing what I am expecting it to be doing.
I attached two screenshots.
You'll see the following instruction on the first screenshot:
| Code: | | jmp dword ptr [eax*4+UFO.exe+34A7D0] |
By all rights, when EAX==0, it should jump to UFO.exe+0x34A7D0 (=0x74A7D0). However, it simply jumps to the next instruction, as seen on the second screenshot (which shows the trace).
Could someone explain to me why does this happen?
Thanks!
| Description: |
|
| Filesize: |
7.21 KB |
| Viewed: |
3705 Time(s) |

|
| Description: |
|
| Filesize: |
8.33 KB |
| Viewed: |
3705 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25824 Location: The netherlands
|
Posted: Sun Sep 22, 2013 3:25 pm Post subject: |
|
|
It will jump to the location the 4 byte value at ufo.exe+34a7d0 represents
In this case, that address contains the value ufo.exe+34a684
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3330
|
Posted: Sun Sep 22, 2013 8:13 pm Post subject: |
|
|
Meh, too easy
Thanks!
|
|
| Back to top |
|
 |
|