From 58913fc4e1bb153fe9d8735164ef922f71c2fa97 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 16 Dec 2023 16:12:25 -0800 Subject: fix hreset being disassembled as having second operand of "Nothing" just report it having one operand... --- src/protected_mode/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/protected_mode') diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs index 200e12f..0d125eb 100644 --- a/src/protected_mode/mod.rs +++ b/src/protected_mode/mod.rs @@ -8668,6 +8668,7 @@ fn read_operands< instruction.opcode = Opcode::HRESET; instruction.imm = read_num(words, 1)?; instruction.operands[0] = OperandSpec::ImmU8; + instruction.operand_count = 1; } OperandCase::G_mm_Ed => { instruction.regs[0].bank = RegisterBank::MM; -- cgit v1.1