| View previous topic :: View next topic |
| Author |
Message |
Pencil3990 How do I cheat?
Reputation: 0
Joined: 16 Dec 2013 Posts: 9
|
Posted: Sun Jan 05, 2014 4:16 pm Post subject: Assembly language help |
|
|
What does the jmp command in Assembly language do? Im a bit new into assembly and had no luck researching what the jmp command does. Iv'e heard it Jumps to an address but i never got what "Jump" meant can some1 help
|
|
| Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sun Jan 05, 2014 5:46 pm Post subject: |
|
|
jumps to specific memory region.
_________________
I'm rusty and getting older, help me re-learn lua. |
|
| Back to top |
|
 |
Chris12 Expert Cheater
Reputation: 1
Joined: 27 Apr 2012 Posts: 103
|
Posted: Mon Jan 06, 2014 3:20 am Post subject: |
|
|
| Well it means that the processor will continue executing the code of the jump address.
|
|
| Back to top |
|
 |
zm0d Master Cheater
Reputation: 7
Joined: 06 Nov 2013 Posts: 423
|
Posted: Mon Jan 06, 2014 10:45 am Post subject: |
|
|
it jumps the give number of bytes from the JMP-opcode address.
that means startaddress+amount of bytes to jmp = endaddress (called a relative jmp)
Please, don't think you JMP by hard addresses
|
|
| Back to top |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Mon Jan 06, 2014 4:33 pm Post subject: |
|
|
| zm0d wrote: | | Please, don't think you JMP by hard addresses :P :) |
You can, though. There are jmp instructions that take as an operand an address instead of an offset. Most BIOS calls use interrupts, but for example there are a few (like the shutdown procedure, as I recall) that you simply jump to.
|
|
| Back to top |
|
 |
zm0d Master Cheater
Reputation: 7
Joined: 06 Nov 2013 Posts: 423
|
Posted: Thu Jan 09, 2014 8:06 am Post subject: |
|
|
Oh yeah you're right
using 0xEA (far jmp) instead of 0xE9 (relative jmp) is for an absolute jump it takes an address as argument that's nice and save the calculation to your jump
http://ref.x86asm.net/geek.html#xEA
|
|
| Back to top |
|
 |
pellik Advanced Cheater
Reputation: 0
Joined: 14 Jun 2013 Posts: 93
|
Posted: Wed Jan 15, 2014 11:17 am Post subject: |
|
|
| Also it's worth noting that whatever debugger your using will figure out whether you need near or far jump automatically if you just put in jmp addr. So you need to be aware that the size of your far jump is likely a lot greater then the near jmp you might want to overwrite.
|
|
| Back to top |
|
 |
|