diff options
author | iximeow <me@iximeow.net> | 2021-12-19 11:23:18 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-12-19 11:23:18 -0800 |
commit | e7dec7baa9c6649d71e1b349d93dce6b0cd588bf (patch) | |
tree | e286c98a3b87febaef2e237f0db224bbe0c1f981 /src/protected_mode/mod.rs | |
parent | d13d8ebfad98b3d547f455ec9d73dab98f0899c3 (diff) |
fix incorrect memory size for f30f1e-style nop
not only did the instruction have wrong data, but if displayed, the
formatter would panic.
Diffstat (limited to 'src/protected_mode/mod.rs')
-rw-r--r-- | src/protected_mode/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs index 9c03faf..040a23e 100644 --- a/src/protected_mode/mod.rs +++ b/src/protected_mode/mod.rs @@ -8800,6 +8800,7 @@ fn unlikely_operands< }; instruction.operands[1] = OperandSpec::RegRRR; instruction.operands[0] = read_E(words, instruction, modrm, sz, sink)?; + instruction.mem_size = sz; instruction.regs[0] = RegSpec::from_parts((modrm >> 3) & 7, bank); instruction.operand_count = 2; |