Partial PPU implementation
This commit is contained in:
+3
-1
@@ -41,7 +41,9 @@ impl Ppu {
|
||||
// vblank flag + NMI
|
||||
if self.cycle == 0 && self.scanline == 241 {
|
||||
self.status |= 0x80;
|
||||
self.nmi_pending = true;
|
||||
if self.ctrl & 0x80 != 0 {
|
||||
self.nmi_pending = true;
|
||||
}
|
||||
}
|
||||
// clear vblank
|
||||
if self.cycle == 0 && self.scanline == 261 {
|
||||
|
||||
Reference in New Issue
Block a user