print status flags

This commit is contained in:
2023-05-20 23:20:48 -05:00
parent c6865eed68
commit c98c7bdc2d
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -185,6 +185,13 @@ impl Registers {
self.d as u8
}
pub fn is_emu_mode_flag_exposed(&self) -> bool {
match self.exposed_bit_zero {
ModeFlag::Carry => false,
ModeFlag::EmulationMode => true,
}
}
pub fn exchange_carry_and_emulation(&mut self) {
match self.exposed_bit_zero {
ModeFlag::Carry => {