fix: ly!=lyc clears stat
This commit is contained in:
parent
12f97b8d5b
commit
5fa12cb8eb
2 changed files with 3 additions and 1 deletions
|
@ -164,6 +164,8 @@ impl Ppu {
|
||||||
if (self.stat >> 6) & 0b1 == 1 {
|
if (self.stat >> 6) & 0b1 == 1 {
|
||||||
interrupts.write_if_lcd_stat(true);
|
interrupts.write_if_lcd_stat(true);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
self.stat &= !(1 << 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ pub const FB_HEIGHT: u32 = 144;
|
||||||
pub const FB_WIDTH: u32 = 160;
|
pub const FB_WIDTH: u32 = 160;
|
||||||
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct Keymap {
|
struct Keymap {
|
||||||
pub down: bool,
|
pub down: bool,
|
||||||
pub up: bool,
|
pub up: bool,
|
||||||
pub left: bool,
|
pub left: bool,
|
||||||
|
|
Loading…
Reference in a new issue