Posted: Tue Aug 12, 2008 11:17 am Post subject: [asm]Calculating Jumps
Well. I am having some trouble with calculating jumps.
Heres what I know so far:
To calculate a jmp that goes later on into the memory you would use:
Like from 00401000 to 00402000.
Inverse These Bytes:
TheAddressToTheJump-(TheAddressYouAreAt+5)
Now my question is how do jump back?
Like from 00402000 to 00401000
Posted: Thu Aug 14, 2008 11:06 pm Post subject: Re: [asm]Calculating Jumps
dnsi0 wrote:
Well. I am having some trouble with calculating jumps.
Heres what I know so far:
To calculate a jmp that goes later on into the memory you would use:
Like from 00401000 to 00402000.
Inverse These Bytes:
TheAddressToTheJump-(TheAddressYouAreAt+5)
Now my question is how do jump back?
Like from 00402000 to 00401000
the same way.
you somehow have to store the address though (stack, var). _________________
armed with this small butterfly net
i will face the world alone
& never be lonely.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum