From 2002347272391dc6a70d83fe8293f2ce35ed26ee Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 23 Jun 2024 15:15:50 -0700 Subject: add additional `call` test cases fix 32-bit 66-prefixed ff /2 call not having 16-bit operands fix momentary regression in rendering `call` instructions to string --- CHANGELOG | 5 +++++ src/long_mode/display.rs | 5 ++--- src/long_mode/mod.rs | 2 ++ src/protected_mode/display.rs | 5 ++--- src/protected_mode/mod.rs | 7 ++----- src/real_mode/display.rs | 5 ++--- test/long_mode/mod.rs | 11 +++++++++++ test/protected_mode/mod.rs | 13 ++++++++++++- test/real_mode/mod.rs | 3 +++ 9 files changed, 41 insertions(+), 15 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index d420ed0..590f731 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +## 1.3.0 + +* fix 32-bit call/jmp not respecting 66 prefix if set - such cases use 16-bit + operands, but decoded as if they used 32-bit operands. + ## 1.2.2 * fix `hreset` reporting two operands, with a second operand of `Nothing`. diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index f765fb7..4f4e739 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -4245,9 +4245,8 @@ impl ShowContextual ShowContextual ShowContextual