Main Page | See live article | Alphabetical index

X86-jmp

"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.