remove unused verbose prints
This commit is contained in:
parent
1338d58582
commit
5884eeabf4
|
@ -1,9 +1,6 @@
|
||||||
use std::ops::{BitAnd, BitOr};
|
use std::ops::{BitAnd, BitOr};
|
||||||
|
|
||||||
use crate::{
|
use crate::processor::{get_bit, get_rotation_carry, rotate, Direction, Flags, SplitRegister, CPU};
|
||||||
processor::{get_bit, get_rotation_carry, rotate, Direction, Flags, SplitRegister, CPU},
|
|
||||||
verbose_println,
|
|
||||||
};
|
|
||||||
|
|
||||||
impl CPU {
|
impl CPU {
|
||||||
pub(crate) fn pop_word(&mut self) -> u16 {
|
pub(crate) fn pop_word(&mut self) -> u16 {
|
||||||
|
@ -84,20 +81,9 @@ impl CPU {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn set_flag(&mut self, flag: Flags) {
|
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
|
self.reg
|
||||||
.af
|
.af
|
||||||
.set_low(self.reg.af.get_low().bitor(1 << flag as u8));
|
.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) {
|
pub(crate) fn clear_flag(&mut self, flag: Flags) {
|
||||||
|
|
Loading…
Reference in a new issue