Show Menu
Cheatography

IA-32 assembly language Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Registers

%eax
%ax
%ah
%al
%ecx
%cx
%ch
%cl
%edx
%dx
%dh
%dl
%ebx
%bx
%bh
%bl
%esi
%si
%edi
%di
%esp
%sp
%ebp
%bp

Data Formats

suffix
type
size
b
byte
1
w
word
2
l
double word
4
 

Addressing modes

D(Rb, Ri, S)  ­  Mem [Reg [Rb] +S* Reg [Ri] +D]
D : constant "­dis­pla­cem­ent­" (1, 2, or 4 bytes)
Rb : Base register (any registers)
Ri : Index register (any except %esp)
S : scale (1, 2, 4, or 8)
 

Data transfer instru­ctions

mov {l,w,b} src, dest
copy source into dest
movsb
???????
push {l,w} src
push source onto stack
pop {l,w} src
pop off stack and save in source