diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/long_mode/display.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index 1d68719..f84ff7a 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -2820,7 +2820,8 @@ impl <T: fmt::Write, Y: YaxColors> ShowContextual<u64, [Option<alloc::string::St x.colorize(colors, out)?; } }; - for i in 1..4 { + for i in 1..self.operand_count { + let i = i as usize; match self.opcode { Opcode::MOVSX_b | Opcode::MOVZX_b => { |