aboutsummaryrefslogtreecommitdiff
path: root/src/real_mode/display.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-23 15:15:50 -0700
committeriximeow <me@iximeow.net>2024-06-23 15:15:50 -0700
commit2002347272391dc6a70d83fe8293f2ce35ed26ee (patch)
tree2afdfc0e24a07237752377f2cd30d243c465488b /src/real_mode/display.rs
parent2ac46a98585b93f62961fdd82a1f2d1266761305 (diff)
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
Diffstat (limited to 'src/real_mode/display.rs')
-rw-r--r--src/real_mode/display.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/real_mode/display.rs b/src/real_mode/display.rs
index b76f47e..90b4f0a 100644
--- a/src/real_mode/display.rs
+++ b/src/real_mode/display.rs
@@ -2797,9 +2797,8 @@ impl <T: fmt::Write, Y: YaxColors> ShowContextual<u64, [Option<alloc::string::St
}
}
-// TODO: should include CALL
-static RELATIVE_BRANCHES: [Opcode; 21] = [
- Opcode::JMP, Opcode::JCXZ,
+static RELATIVE_BRANCHES: [Opcode; 22] = [
+ Opcode::JMP, Opcode::CALL, Opcode::JCXZ,
Opcode::LOOP, Opcode::LOOPZ, Opcode::LOOPNZ,
Opcode::JO, Opcode::JNO,
Opcode::JB, Opcode::JNB,