X86-jmp
Wiki Home
..............................................................

 

X86-jmp

  • check: do long jumps and near have 4 and 2 byte offset?

"JMP" is a mnemonic used in x86 assembly language.

unconditional jump (JuMP) to the address that follows, like this:

JMP 0x89AB          ; loads IP with the new value 0x89AB

JMP 0xACDC:0x5578   ; loads CS with 0xACDC and IP with 0x5578

                    ; only works in real mode

JMP 0x56789AB1 ; loads IP with the value 0x56789AB1 ; only works in protected mode

We divide jump instructions into short jumps (one byte offset), near jumps (two byte offset?) long jumps (4bytes?) and far jumps (2 bytes segment / selector and full IP / EIP).

JMP $ is commonly used to hang the computer.

See also: conditional jumps.


 
 

Browse articles alphabetically:
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z