summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-09-29 02:00:03 +0000
committeriximeow <me@iximeow.net>2025-09-29 02:00:03 +0000
commitf4eceec55b1d722b4eb0594628d8cc2427c84478 (patch)
tree777ff8ab28e24085fec7522e443f9454b379574b /src
parent5079a605a8ab1b89cb745a727dfb64b3b2e8600e (diff)
move-to-br hints were handled grossly wrong
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs6
1 files changed, 4 insertions, 2 deletions
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],