fix: ly!=lyc clears stat

This commit is contained in:
EliseZeroTwo 2021-11-24 17:12:59 +01:00
parent 12f97b8d5b
commit 5fa12cb8eb
No known key found for this signature in database
GPG key ID: E6D56A6F7B7991DE
2 changed files with 3 additions and 1 deletions

View file

@ -164,6 +164,8 @@ impl Ppu {
if (self.stat >> 6) & 0b1 == 1 {
interrupts.write_if_lcd_stat(true);
}
} else {
self.stat &= !(1 << 2);
}
}

View file

@ -51,7 +51,7 @@ pub const FB_HEIGHT: u32 = 144;
pub const FB_WIDTH: u32 = 160;
#[derive(Debug, Default)]
pub struct Keymap {
struct Keymap {
pub down: bool,
pub up: bool,
pub left: bool,