Таблица базовых инструкции 16 BIT
00 ADD | 01 ADD | 02 ADD | 03 ADD | 04 ADD | 05 ADD | 06 PUSH | 07 POP | 08 OR | 09 OR | 0A OR | 0B OR | 0C OR | 0D OR | 0E PUSH | 0F ext | 10 ADC | 11 ADC | 12 ADC | 13 ADC | 14 ADC | 15 ADC | 16 PUSH | 17 POP | 18 SBB | 19 SBB | 1A SBB | 1B SBB | 1C SBB | 1D SBB | 1E PUSH | 1F POP | 20 AND | 21 AND | 22 AND | 23 AND | 24 AND | 25 AND | 26 ES: | 27 DAA | 28 SUB | 29 SUB | 2A SUB | 2B SUB | 2C SUB | 2D SUB | 2E CS: | 2F DAS | 30 XOR | 31 XOR | 32 XOR | 33 XOR | 34 XOR | 35 XOR | 36 SS: | 37 AAA | 38 CMP | 39 CMP | 3A CMP | 3B CMP | 3C CMP | 3D CMP | 3E DS: | 3F AAS | 40 INC | 41 INC | 42 INC | 43 INC | 44 INC | 45 INC | 46 INC | 47 INC | 48 DEC | 49 DEC | 4A DEC | 4B DEC | 4C DEC | 4D DEC | 4E DEC | 4F DEC | 50 PUSH | 51 PUSH | 52 PUSH | 53 PUSH | 54 PUSH | 55 PUSH | 56 PUSH | 57 PUSH | 58 POP | 59 POP | 5A POP | 5B POP | 5C POP | 5D POP | 5E POP | 5F POP | 60 PUSHA | 61 POPA | 62 BOUND | 63 ARPL | 64 FS: | 65 GS: | 66 opsize | 67 rgsize | 68 PUSH | 69 IMUL | 6A PUSH | 6B IMUL | 6C INSB | 6D INSW | 6E OUTSB | 6F OUTSW | 70 JO | 71 JNO | 72 JB | 73 JNB | 74 JE | 75 JNE | 76 JBE | 77 JA | 78 JS | 79 JNS | 7A JP | 7B JNP | 7C JL | 7D JNL | 7E JLE | 7F JG | 80 GRP1 | 81 GRP1 | 82 GRP1 | 83 GRP1 | 84 TEST | 85 TEST | 86 XCHG | 87 XCHG | 88 MOV | 89 MOV | 8A MOV | 8B MOV | 8C MOV | 8D LEA | 8E MOV | 8F POP | 90 NOP | 91 XCHG | 92 XCHG | 93 XCHG | 94 XCHG | 95 XCHG | 96 XCHG | 97 XCHG | 98 CBW | 99 CWD | 9A CALL | 9B FWAIT | 9C PUSHF | 9D POPF | 9E SAHF | 9F LAHF | A0 MOV | A1 MOV | A2 MOV | A3 MOV | A4 MOVSB | A5 MOVSW | A6 CMPSB | A7 CMPSW | A8 TEST | A9 TEST | AA STOSB | AB STOSW | AC LODSB | AD LODSW | AE SCASB | AF SCASW | B0 MOV | B1 MOV | B2 MOV | B3 MOV | B4 MOV | B5 MOV | B6 MOV | B7 MOV | B8 MOV | B9 MOV | BA MOV | BB MOV | BC MOV | BD MOV | BE MOV | BF MOV | C0 GRP2 | C1 GRP2 | C2 RET | C3 RET | C4 LES | C5 LDS | C6 MOV | C7 MOV | C8 ENTER | C9 LEAVE | CA RETF | CB RETF | CC INT | CD INT | CE INTO | CF IRET | D0 GRP2 | D1 GRP2 | D2 GRP2 | D3 GRP2 | D4 AAM | D5 AAD | D6 SALC | D7 XLATB | D8 FPU0 | D9 FPU1 | DA FPU2 | DB FPU3 | DC FPU4 | DD FPU5 | DE FPU6 | DF FPU7 | E0 LOOPNZ | E1 LOOPZ | E2 LOOP | E3 JCXZ | E4 IN | E5 IN | E6 OUT | E7 OUT | E8 CALL | E9 JMP | EA JMP | EB JMP | EC IN | ED IN | EE OUT | EF OUT | F0 LOCK: | F1 INT | F2 REPNZ: | F3 REPZ: | F4 HLT | F5 CMC | F6 GRP3 | F7 GRP3 | F8 CLC | F9 STC | FA CLI | FB STI | FC CLD | FD STD | FE GRP4 | FF GRP4 |
Декодирование байта MODRM
Группа | REG-часть | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
R8 | AL | CL | DL | BL | AH | CH | DH | BH | ||||||||
R16 | AX | CX | DX | BX | SP | BP | SI | DI | ||||||||
SEG | ES | CS | SS | DS | FS | GS | ? | ? | ||||||||
GRP1 | ADD | OR | ADC | SBB | AND | SUB | XOR | CMP | ||||||||
GRP2 | ROL | ROR | RCL | RCR | SHL | SHR | SAL | SAR | ||||||||
GRP3 | TEST | TEST | NOT | NEG | MUL | IMUL | DIV | IDIV | ||||||||
GRP4 | INC | DEC | CALL | CALLF | JMP | JMPF | PUSH | ? | ||||||||
R/M | REG | MOD | ||||||||||||||
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +00h | +40h | +80h | +C0h | |||||
000 | 00 | 08 | 10 | 18 | 20 | 28 | 30 | 38 | [BX+SI] | [BX+SI+D8] | [BX+SI+D16] | AL|AX|ES | ||||
001 | 01 | 09 | 11 | 19 | 21 | 29 | 31 | 39 | [BX+DI] | [BX+DI+D8] | [BX+DI+D16] | CL|CX|CS | ||||
010 | 02 | 0A | 12 | 1A | 22 | 2A | 32 | 3A | [BP+SI] | [BP+SI+D8] | [BP+SI+D16] | DL|DX|SS | ||||
011 | 03 | 0B | 13 | 1B | 23 | 2B | 33 | 3B | [BP+DI] | [BP+DI+D8] | [BP+DI+D16] | BL|BX|DS | ||||
100 | 04 | 0C | 14 | 1C | 24 | 2C | 34 | 3C | [SI] | [SI+D8] | [SI+D16] | AH|SP|FS | ||||
101 | 05 | 0D | 15 | 1D | 25 | 2D | 35 | 3D | [DI] | [DI+D8] | [DI+D16] | CH|BP|GS | ||||
110 | 06 | 0E | 16 | 1E | 26 | 2E | 36 | 3E | [D16] | [BP+D8] | [BP+D16] | DH|SI | ||||
111 | 07 | 0F | 17 | 1F | 27 | 2F | 37 | 3F | [BX] | [BX+D8] | [BX+D16] | BH|DI |