mirror of
https://github.com/Zenithsiz/dcb.git
synced 2026-02-04 00:21:57 +00:00
Fixed emission of extra '$' with arguments in co-processor instructions.
This commit is contained in:
parent
cceddaaa1e
commit
e690763fc3
@ -173,19 +173,19 @@ impl InstFmt for Inst {
|
||||
match kind {
|
||||
Kind::CopN { imm } => write!(f, "cop{n} {imm:#x}"),
|
||||
Kind::MoveFrom { dst, src, kind } => match kind {
|
||||
RegisterKind::Control => write!(f, "cfc{n} {dst}, ${src:#x}"),
|
||||
RegisterKind::Data => write!(f, "mfc{n} {dst}, ${src:#x}"),
|
||||
RegisterKind::Control => write!(f, "cfc{n} {dst}, {src:#x}"),
|
||||
RegisterKind::Data => write!(f, "mfc{n} {dst}, {src:#x}"),
|
||||
}
|
||||
Kind::MoveTo { dst, src, kind } => match kind {
|
||||
RegisterKind::Data => write!(f, "mtc{n} {src}, ${dst:#x}"),
|
||||
RegisterKind::Control => write!(f, "ctc{n} {src}, ${dst:#x}"),
|
||||
RegisterKind::Data => write!(f, "mtc{n} {src}, {dst:#x}"),
|
||||
RegisterKind::Control => write!(f, "ctc{n} {src}, {dst:#x}"),
|
||||
}
|
||||
Kind::Branch { offset, on } => match on {
|
||||
true => write!(f, "bc{n}f {offset:#x}"),
|
||||
false => write!(f, "bc{n}t {offset:#x}"),
|
||||
}
|
||||
Kind::Load { dst, src, offset } => write!(f, "lwc{n} ${dst:#x}, {offset:#x}({src})"),
|
||||
Kind::Store { dst, src, offset } => write!(f, "swc{n} ${dst:#x}, {offset:#x}({src})"),
|
||||
Kind::Load { dst, src, offset } => write!(f, "lwc{n} {dst:#x}, {offset:#x}({src})"),
|
||||
Kind::Store { dst, src, offset } => write!(f, "swc{n} {dst:#x}, {offset:#x}({src})"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user