ModRegRM byte (16-bit addressing)

From Asmpedia

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

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

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

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