remove unused verbose prints
This commit is contained in:
parent
1338d58582
commit
5884eeabf4
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue