commit 2c616f66467f5e2708b7f8f46d96469181c4c406
parent 6c5e542c0d28405f0d96ee712bfad90bdc4b4af5
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 19 Sep 2019 20:40:05 +0200
[as/x86] Add more comments in the opcode table
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/cmd/as/target/x86/x86.dat b/src/cmd/as/target/x86/x86.dat
@@ -28,6 +28,10 @@ RET none 1 0xc3 noargs I286,I386,AMD64
# 8 bit arithmetic operations
ADDB reg8,reg8 2 0x00 reg8_reg8 I286,I386,AMD64
ADDB imm8,reg8 3 0x80 imm8_reg8 I286,I386,AMD64
+
+# 16 bit arithmetic operations
ADDW reg16,reg16 2 0x01 reg16_reg16 I286
ADDW reg16,reg16 3 0x66,0x01 reg16_reg16 I386,AMD64
+
+# 32 bit arithmetic operations
ADDL reg32,reg32 2 0x01 reg32_reg32 I386,AMD64