Data Manipulation
mov
add
lea
leaq S, D
: Move&S
toD
Control
Movement
See also Condition Code
cmp
cmpq S1, S2
- Based on
S2 - S1
, sojg
meansS2 > S1
test
- The test instructions behave in the same manner as the and instructions, except that they set the condition codes without altering their destinations.
set
- Used to access condition code
jmp
- It can be either a direct jump, where the jump target is encoded as part of the instruction, or an indirect jump, where the jump target is read from a register or a memory location.
jmp *%rax
: directjmp *(%rax)
: indirect
- Use PC relative???? Addressing mode - Wikipedia
- they encode the difference between the address of the target instruction and the address of the instruction immediately following the jump.
- they encode the difference between the address of the target instruction and the address of the instruction immediately following the jump.
- It can be either a direct jump, where the jump target is encoded as part of the instruction, or an indirect jump, where the jump target is read from a register or a memory location.