NASM Coding: Common Instructions

Instruction Description Operands
inc x
x += 1;
Register or variable
jmp x
Jump to other code Name of a label that we set in our program
je x
Jump if equal Name of a label that we set in our program
jg x
Jump if greater Name of a label that we set in our program
jge x
Jump if greater or equal Name of a label that we set in our program
jl x
Jump if less Name of a label that we set in our program
jle x
Jump if less or equal Name of a label that we set in our program
jne x
Jump if not equal Name of a label that we set in our program
jnz x
Jump if not zero Name of a label that we set in our program
mov x, y
x = y;
Registers or variables (
y
can be a literal)
mul x
rax:rdx *= x;
Register, variable, or literal; unsigned multiplication
neg x
x = -x;
Register or variable