silly mistake that i have literally made before
This commit is contained in:
parent
3fc25fcfb2
commit
02bc2df0e8
|
@ -1,6 +1,10 @@
|
|||
use self::mmio::{Apu, Gpu, Joypad, Serial};
|
||||
pub use self::rom::Rom;
|
||||
use crate::{processor::SplitRegister, util::set_bit, verbose_println, Cpu};
|
||||
use crate::{
|
||||
processor::SplitRegister,
|
||||
util::{clear_bit, set_bit},
|
||||
verbose_println, Cpu,
|
||||
};
|
||||
use gilrs::Gilrs;
|
||||
use minifb::{Key, Window};
|
||||
|
||||
|
@ -241,6 +245,9 @@ impl Cpu {
|
|||
|
||||
if gpu_interrupts.lcd_stat {
|
||||
self.memory.set(0xFF0F, set_bit(self.memory.get(0xFF0F), 1));
|
||||
} else {
|
||||
self.memory
|
||||
.set(0xFF0F, clear_bit(self.memory.get(0xFF0F), 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue