Common registers: EAX,EBX,ECX,EDX
mov al, 5
mov al, 17
mov ah, 5Types of registers
ahoralare small, 1 byte registers (A high or A low)axis a 2 byte register, equal in size to a wordeaxis a 4 byte, double word register
Types of "variables"
db=1 bytedw=2 bytes (word)dd= 4 bytes (double word)
Important
Computer memory is little-endian, registers are big-endian, i.e. memory is read back to front. This is done for optimization reasons
Bases in assembly
- numbers are implicitly decimal (D,d)
- base 2, binary (B,b)
- base 8, octal (O,o)
- base 16, hexa, (H,h)