diff options
author | iximeow <me@iximeow.net> | 2025-09-29 02:00:03 +0000 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2025-09-29 02:00:03 +0000 |
commit | f4eceec55b1d722b4eb0594628d8cc2427c84478 (patch) | |
tree | 777ff8ab28e24085fec7522e443f9454b379574b /src/lib.rs | |
parent | 5079a605a8ab1b89cb745a727dfb64b3b2e8600e (diff) |
move-to-br hints were handled grossly wrong
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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], |