From 382029b2c012247e1f2ed7d5ae34082d190e2b89 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 17 Jun 2019 00:24:30 -0700 Subject: bugfix to opcode 8f; it requires subops --- subx/031check_operands.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'subx') diff --git a/subx/031check_operands.cc b/subx/031check_operands.cc index 45d9e7e1..7b97d2b1 100644 --- a/subx/031check_operands.cc +++ b/subx/031check_operands.cc @@ -225,12 +225,11 @@ void init_permitted_operands() { put(Permitted_operands, "87", 0x01); // copy address (lea) put(Permitted_operands, "8d", 0x01); - // pop - put(Permitted_operands, "8f", 0x01); //// Class N: op, ModR/M and subop (not r32) // imm32 imm8 disp32 |disp16 disp8 subop modrm // 0 0 0 |0 0 1 1 + put(Permitted_operands, "8f", 0x03); // pop put(Permitted_operands, "d3", 0x03); // shift put(Permitted_operands, "f7", 0x03); // test/not/mul/div put(Permitted_operands, "ff", 0x03); // jump/push/call -- cgit 1.4.1-2-gfad0