From f4eceec55b1d722b4eb0594628d8cc2427c84478 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 29 Sep 2025 02:00:03 +0000 Subject: move-to-br hints were handled grossly wrong --- src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 4087811..0fcb774 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1198,16 +1198,18 @@ impl fmt::Display for Instruction { self.operands[0], ) } else if self.opcode == Opcode::Mov_mwh_ih { + // first hint described in Table 4-27, "Move to BR Whether Hint Completer" return write!(f, "mov{}{} {}={},{}", - ["", "?NONE?", ".dptk", "RESERVED"][self.operands[4].as_unsigned_imm() as usize], + [".sptk", "", ".dptk", "RESERVED"][self.operands[4].as_unsigned_imm() as usize], ["", ".imp"][self.operands[3].as_unsigned_imm() as usize], self.operands[0], self.operands[1], self.operands[2], ) } else if self.opcode == Opcode::Mov_ret_mwh_ih { + // first hint described in Table 4-27, "Move to BR Whether Hint Completer" return write!(f, "mov.ret{}{} {}={},{}", - ["", "?NONE?", ".dptk", "RESERVED"][self.operands[4].as_unsigned_imm() as usize], + [".sptk", "", ".dptk", "RESERVED"][self.operands[4].as_unsigned_imm() as usize], ["", ".imp"][self.operands[3].as_unsigned_imm() as usize], self.operands[0], self.operands[1], -- cgit v1.1