Skip to content

Instantly share code, notes, and snippets.

@ljmccarthy
Created December 23, 2021 15:39
Show Gist options
  • Save ljmccarthy/f663a5f6120b0b448e6ed11e10c0c366 to your computer and use it in GitHub Desktop.
Save ljmccarthy/f663a5f6120b0b448e6ed11e10c0c366 to your computer and use it in GitHub Desktop.
All single-byte x86 instructions (excluding prefixes)
06 push es
07 pop es
0E push cs
16 push ss
17 pop ss
1E push ds
1F pop ds
27 daa
2F das
37 aaa
3F aas
40 inc ax
41 inc cx
42 inc dx
43 inc bx
44 inc sp
45 inc bp
46 inc si
47 inc di
48 dec ax
49 dec cx
4A dec dx
4B dec bx
4C dec sp
4D dec bp
4E dec si
4F dec di
50 push ax
51 push cx
52 push dx
53 push bx
54 push sp
55 push bp
56 push si
57 push di
58 pop ax
59 pop cx
5A pop dx
5B pop bx
5C pop sp
5D pop bp
5E pop si
5F pop di
60 pusha
61 popa
6C insb
6D insw
6E outsb
6F outsw
90 nop
91 xchg ax,cx
92 xchg ax,dx
93 xchg ax,bx
94 xchg ax,sp
95 xchg ax,bp
96 xchg ax,si
97 xchg ax,di
98 cbw
99 cwd
9C pushf
9D popf
9E sahf
9F lahf
A4 movsb
A5 movsw
A6 cmpsb
A7 cmpsw
AA stosb
AB stosw
AC lodsb
AD lodsw
AE scasb
AF scasw
C3 ret
C9 leave
CB retf
CC int3
CE into
CF iret
D7 xlatb
EC in al,dx
ED in ax,dx
EF out dx,ax
F1 int1
F4 hlt
F5 cmc
F8 clc
F9 stc
FA cli
FB sti
FC cld
FD std
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment