aboutsummaryrefslogtreecommitdiff
path: root/test/real_mode/mod.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-06-19 03:02:35 +0000
committeriximeow <me@iximeow.net>2026-07-05 00:09:22 +0000
commit97dbde69221127d2552cb4fc442b90a2c0ff2a95 (patch)
treed31f0fb9c01d3729e8a491f12e59268b466d1178 /test/real_mode/mod.rs
parentb35fd33629ab53925302f34747faf86ee2f90ace (diff)
add DisplayRules, docs, doc tests, ..
this includes `trait DisplayRules` as a generic mechanism to control parts of instruction printing, a `DefaultRules` for the existing formatting style, and `AbsoluteAddressFormatter` to print instructions as at some location in an address space.
Diffstat (limited to 'test/real_mode/mod.rs')
-rw-r--r--test/real_mode/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/real_mode/mod.rs b/test/real_mode/mod.rs
index 9f6bdf3..962f5fa 100644
--- a/test/real_mode/mod.rs
+++ b/test/real_mode/mod.rs
@@ -1,5 +1,7 @@
mod operand;
mod opcode;
+#[cfg(feature="fmt")]
+mod display;
#[cfg(feature="behavior")]
mod behavior;
@@ -170,7 +172,10 @@ fn test_display_format(decoder: &InstDecoder, data: &[u8], expected: &'static st
// since write_to unconditionally uses DisplayStyle::Intel
}
DisplayStyle::C => {
- // panic!("no support for C-style display in testcases yet");
+ panic!("no support for C-style display in testcases yet");
+ }
+ other => {
+ panic!("unsupported style: {:?}", other);
}
}
}