remove unused verbose prints

This commit is contained in:
Alex Janka 2023-02-06 12:37:40 +11:00
parent 1338d58582
commit 5884eeabf4

View file

@ -1,9 +1,6 @@
use std::ops::{BitAnd, BitOr};
use crate::{
processor::{get_bit, get_rotation_carry, rotate, Direction, Flags, SplitRegister, CPU},
verbose_println,
};
use crate::processor::{get_bit, get_rotation_carry, rotate, Direction, Flags, SplitRegister, CPU};
impl CPU {
pub(crate) fn pop_word(&mut self) -> u16 {
@ -84,20 +81,9 @@ impl CPU {
}
pub(crate) fn set_flag(&mut self, flag: Flags) {
if flag == Flags::Zero {
verbose_println!("setting z flag");
}
verbose_println!(
"setting flag: currently {0:#b} / {0:#X}",
self.reg.af.get_low()
);
self.reg
.af
.set_low(self.reg.af.get_low().bitor(1 << flag as u8));
verbose_println!(
" now {0:#b} / {0:#X}",
self.reg.af.get_low()
);
}
pub(crate) fn clear_flag(&mut self, flag: Flags) {