ft: add debug script

This commit is contained in:
2025-05-28 14:13:12 +09:00
parent c396d33f76
commit a21cc2b4b3
4 changed files with 70 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ impl fmt::Display for DisasmError {
DisasmError::IoError(msg) => write!(f, "{}", msg),
DisasmError::OpcodeUndefined(opcode) => write!(
f,
"Error (Undefined Opcode). '{:#x} is considered undefined by the Spec",
"Error (Undefined Opcode). '{:#04x} is considered undefined by the Spec",
opcode
),
DisasmError::IllegalGroupMnemonic(group, mnemonic) => write!(
@@ -244,6 +244,8 @@ impl Disassembler {
rm
);
// not unused, but overwritten before first read
#[allow(unused_assignments)]
let mut displacement = None;
match mode {
0b00 => {