fixed a lot of bugs with the emulator, instruction set and assembler
This commit is contained in:
@@ -408,7 +408,11 @@ impl std::fmt::Display for Instruction {
|
||||
write!(f, " {}, {}, {}", args.sr1, args.sr2, args.dr)
|
||||
}
|
||||
|
||||
Self::Increment(a) | Self::Decrement(a) => write!(f, " {}", a.dr),
|
||||
Self::AddImmediate(args) | Self::SubImmediate(args) => {
|
||||
write!(f, " {}, {}, {}", args.r1, args.immediate, args.r2)
|
||||
}
|
||||
|
||||
Self::Increment(a) | Self::Decrement(a) => write!(f, " {}", a.sr1),
|
||||
Self::Interrupt(a) => write!(f, " {}", a.as_u8()),
|
||||
Self::Data(a) => write!(f, " {}", a),
|
||||
Self::Segment(x) => write!(f, " [SEGMENT {}]", x),
|
||||
|
||||
Reference in New Issue
Block a user