From 97dbde69221127d2552cb4fc442b90a2c0ff2a95 Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 19 Jun 2026 03:02:35 +0000 Subject: 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. --- test/real_mode/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/real_mode/mod.rs') 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); } } } -- cgit v1.1