Instruction |
Description |
Usage |
Example |
Mov |
This will store a value into a certain
location. Destination and source can be
anything, but they are not allowed to be
2 registers at a time |
Mov [Destination] [Source] |
Mov Eax, value1 |
Inc |
This will increase the variable/register
by 1 |
Inc [Reg/Var] |
Inc EAX |
Dec |
Decreases a Variable/Register by 1 |
Dec [var/Reg] |
DEC AX |
Add |
Source and Destination are added together
and stored into the Destination.
Cannot be both Register |
Add [Destination] [Source] |
Add Eax, 2 |
Sub |
Source is subtracted from the
Destination, and stored there. Cannot
be both Registers. |
Sub [Destination] [Source] |
Sub Var1, Eax |
Mul |
value is multiplied with either AL
AX or EAX, depending on format
and stored into it. |
Mul [Value/Var/Reg] |
Mul Var1 |
Div |
value is Divided with either AL
AX or EAX, depending on format
and stored into it. |
Div [Value/Var/Reg] |
Div Var1 |
Push |
Stores a Value onto the Stack,
first in first out. |
Push [Value/Var/Reg] |
Push AL |
Pop |
Retreives last Pushed value |
Pop [Var/Reg] |
Pop AL |
pusha |
pushes all Registers to the Stack |
pusha |
pusha |
Popa |
Pops all Registers |
Popa |
Popa |