ModRegRM byte (32/64-bit addressing)

From Asmpedia

Jump to: navigation, search
mod=00 AL/AX
EAX/RAX
MM0/XMM0
reg=000
CL/CX
ECX/RCX
MM1/XMM1
reg=001
DL/DX
EDX/RDX
MM2/XMM2
reg=010
BL/BX
EBX/RBX
MM3/XMM3
reg=011
AH/SP
ESP/RSP
MM4/XMM4
reg=100
CH/BP
EBP/RBP
MM5/XMM5
reg=101
DH/SI
ESI/RSI
MM6/XMM6
reg=110
BH/DI
EDI/RDI
MM7/XMM7
reg=111
[EAX/RAX]
r/m=000
00 08 10 18 20 28 30 38
[ECX/RCX]
r/m=001
01 09 11 19 21 29 31 39
[EDX/RDX]
r/m=010
02 0A 12 1A 22 2A 32 3A
[EBX/RBX]
r/m=011
03 0B 13 1B 23 2B 33 3B
SIB follows
r/m=100
04 0C 14 1C 24 2C 34 3C
disp32 follows
r/m=101
05 0D 15 1D 25 2D 35 3D
[ESI/RSI]
r/m=110
06 0E 16 1E 26 2E 36 3E
[EDI/RDI]
r/m=111
07 0F 17 1F 27 2F 37 3F

mod=01 AL/AX
EAX/RAX
MM0/XMM0
reg=000
CL/CX
ECX/RCX
MM1/XMM1
reg=001
DL/DX
EDX/RDX
MM2/XMM2
reg=010
BL/BX
EBX/RBX
MM3/XMM3
reg=011
AH/SP
ESP/RSP
MM4/XMM4
reg=100
CH/BP
EBP/RBP
MM5/XMM5
reg=101
DH/SI
ESI/RSI
MM6/XMM6
reg=110
BH/DI
EDI/RDI
MM7/XMM7
reg=111
[EAX/RAX+disp8]
r/m=000
40 48 50 58 60 68 70 78
[ECX/RCX+disp8]
r/m=001
41 49 51 59 61 69 71 79
[EDX/RDX+disp8]
r/m=010
42 4A 52 5A 62 6A 72 7A
[EBX/RBX+disp8]
r/m=011
43 4B 53 5B 63 6B 73 7B
SIB follows + disp8
r/m=100
44 4C 54 5C 64 6C 74 7C
[EBP/RBP+disp8]
r/m=101
45 4D 55 5D 65 6D 75 7D
[ESI/RSI+disp8]
r/m=110
46 4E 56 5E 66 6E 76 7E
[EDI/RDI+disp8]
r/m=111
47 4F 57 5F 67 6F 77 7F

mod=10 AL/AX
EAX/RAX
MM0/XMM0
reg=000
CL/CX
ECX/RCX
MM1/XMM1
reg=001
DL/DX
EDX/RDX
MM2/XMM2
reg=010
BL/BX
EBX/RBX
MM3/XMM3
reg=011
AH/SP
ESP/RSP
MM4/XMM4
reg=100
CH/BP
EBP/RBP
MM5/XMM5
reg=101
DH/SI
ESI/RSI
MM6/XMM6
reg=110
BH/DI
EDI/RDI
MM7/XMM7
reg=111
[EAX/RAX+disp32]
r/m=000
80 88 90 98 A0 A8 B0 B8
[ECX/RCX+disp32]
r/m=001
81 89 91 99 A1 A9 B1 B9
[EDX/RDX+disp32]
r/m=010
82 8A 92 9A A2 AA B2 BA
[EBX/RBX+disp32]
r/m=011
83 8B 93 9B A3 AB B3 BB
SIB follows + disp32
r/m=100
84 8C 94 9C A4 AC B4 BC
[EBP/RBP+disp32]
r/m=101
85 8D 95 9D A5 AD B5 BD
[ESI/RSI+disp32]
r/m=110
86 8E 96 9E A6 AE B6 BE
[EDI/RDI+disp32]
r/m=111
87 8F 97 9F A7 AF B7 BF

mod=11 AL/AX
EAX/RAX
MM0/XMM0
reg=000
CL/CX
ECX/RCX
MM1/XMM1
reg=001
DL/DX
EDX/RDX
MM2/XMM2
reg=010
BL/BX
EBX/RBX
MM3/XMM3
reg=011
AH/SP
ESP/RSP
MM4/XMM4
reg=100
CH/BP
EBP/RBP
MM5/XMM5
reg=101
DH/SI
ESI/RSI
MM6/XMM6
reg=110
BH/DI
EDI/RDI
MM7/XMM7
reg=111
AL/AX/EAX/RAX
MM0/XMM0
r/m=000
C0 C8 D0 D8 E0 E8 F0 F8
CL/CX/ECX/RCX
MM1/XMM1
r/m=001
C1 C9 D1 D9 E1 E9 F1 F9
DL/DX/EDX/RDX
MM2/XMM2
r/m=010
C2 CA D2 DA E2 EA F2 FA
BL/BX/EBX/RBX
MM3/XMM3
r/m=011
C3 CB D3 DB E3 EB F3 FB
AH/SP/ESP/RSP
MM4/XMM4
r/m=100
C4 CC D4 DC E4 EC F4 FC
CH/BP/EBP/RBP
MM5/XMM5
r/m=101
C5 CD D5 DD E5 ED F5 FD
DH/SI/ESI/RSI
MM6/XMM6
r/m=110
C6 CE D6 DE E6 EE F6 FE
BH/DI/EDI/RDI
MM7/XMM7
r/m=111
C7 CF D7 DF E7 EF F7 FF
Personal tools