Here are many of the instructions that we will used in our NASM programs, and their description:
| Instruction | Description | Operands |
|---|---|---|
|
|
Numbers as registers or variables ( can also be a literal) |
|
|
Registers or variables ( can be a literal); they will be bitwise ANDed |
|
Is ? |
Registers, variables, or literals; the OS sets the sign, zero, carry, and overflow flags |
|
|
Register or variable |
|
|
Register, variable, or literal; unsigned integer division; quotient is put in and remainder in by the OS |
|
|
Register, variable, or literal; signed integer division; quotient is put in and remainder in by the OS |
|
|
Register, variable, or literal; signed multiplication |
|
|
is a register and is a register or variable; signed multiplication |
|
|
is a register; is a register or variable; is a numeric literal (e.g., ); signed multiplication |