<<< Changing the Sequence of Execution | Index | Instruction Cycle FSM >>> |
Let's assume that register EAX stores a memory offset.
The memory offset is a 32-bit absolute value, which can be added or subtracted from the current address of program execution found in the instruction pointer EIP.
Consider x86 JMP instruction:
jmp eax
The JMP transfers control to the new address by modifying the program counter:
EIPnew = EIPcurrent + EAX.
The result of this operation is unconditional jump to a new address in the program.
Opcode of this x86 instruction is 0FFh.
<<< Changing the Sequence of Execution | Index | Instruction Cycle FSM >>> |