List of Instructions

"mov" Examples: Moves location of a value
Instruction Description
mov eax, ebx

Assigns the value in ebx, to eax

mov eax, 5

Assigns the value 5, to eax


"add" Examples: Adds a number to another
Instruction Description
add eax, ebx

Adds the value in ebx, to eax, then assigns the result to eax

add ebx, 5

Adds the value 5, to ebx, then assigns the result to ebx


"sub" Examples: Subtracts a number from another
Instruction Description
sub eax, ebx

Subtracts the value in ebx, from eax, then assigns the result to eax

sub ebx, 5

Subtracts the value 5, from ebx, then assigns the result to ebx


"mul" Examples: Multiplies two Unsigned numbers
Instruction Description
mov eax, 5
mul 3

Moves 5 into eax. Multiplies what is in eax by 3. Result is 15 in eax.

mul eax

Squares eax and assigns the result into eax.


"imul" Examples: Multiplies two Signed numbers
Instruction Description
mov eax, 5
imul -3

Moves 5 into eax. Multiplies what is in eax by -3. Result is -15 in eax.

imul eax

Squares eax and assigns the result into eax.

imul 5

Multiplies eax by 5 and assigns the result into eax.

imul ebx, 5

Multiplies ebx by 5 and assigns the result into ebx.

imul eax, ebx, 5

Multiplies ebx by 5 and assigns the result into eax.


"neg" Examples: Takes Two's Compliment of a number (Maintains flags)
Instruction Description
neg eax

Replaces eax, with eax's two's compliment


"inc" Examples: Adds one to destination
Instruction Description
inc eax

Adds 1 to eax, and assigns the result to eax


"dec" Examples: Subtracts one to destination
Instruction Description
dec eax

Subtracts 1 from eax, and assigns the result to eax