editor go brr?
This commit is contained in:
@@ -344,7 +344,9 @@ impl std::fmt::Display for Instruction {
|
||||
write!(f, "{}", self.mnemonic())?;
|
||||
|
||||
match self {
|
||||
Self::Mov(args) | Self::MovSigned(args) => write!(f, " {}, {}", args.sr1, args.dr),
|
||||
Self::Mov(args) | Self::MovSigned(args) => {
|
||||
write!(f, " {}, {}", args.sr1, args.dr)
|
||||
}
|
||||
Self::LoadByte(args)
|
||||
| Self::LoadByteSigned(args)
|
||||
| Self::LoadHalfword(args)
|
||||
@@ -365,9 +367,11 @@ impl std::fmt::Display for Instruction {
|
||||
write!(f, " ({:x}){}", args.immediate, args.r1)
|
||||
}
|
||||
Self::LoadLowerImmediate(args) | Self::LoadUpperImmediate(args) => {
|
||||
write!(f, " {}, {}", args.r1, args.r2)
|
||||
write!(f, " {}, {}, {}", args.immediate, args.r1, args.r2)
|
||||
}
|
||||
Self::Compare(args) | Self::Not(args) => {
|
||||
write!(f, " {}, {}", args.sr1, args.sr2)
|
||||
}
|
||||
Self::Compare(args) | Self::Not(args) => write!(f, " {}, {}", args.sr1, args.sr2),
|
||||
|
||||
Self::Add(args)
|
||||
| Self::Sub(args)
|
||||
|
||||
Reference in New Issue
Block a user