From 12d0170e9283e25709937606483af7d0af7c8e2a Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 9 Mar 2026 16:36:00 +0000 Subject: separate: more implicit operand size bits --- src/long_mode/mod.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index dc54506..3062783 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -6627,8 +6627,15 @@ fn read_operands< instruction.mem_size = 8; } else if instruction.opcode == Opcode::RETF { instruction.mem_size = 10; + } else if instruction.opcode == Opcode::POPF { + instruction.mem_size = 8; + } else if instruction.opcode == Opcode::PUSHF { + instruction.mem_size = 8; + } else if instruction.opcode == Opcode::LEAVE { + instruction.mem_size = 8; + } else if instruction.opcode == Opcode::XLAT { + instruction.mem_size = 1; } - // TODO: leave? instruction.operands[0] = OperandSpec::Nothing; instruction.operand_count = 0; return Ok(()); -- cgit v1.1