Skip to content
Snippets Groups Projects
Verified Commit 5b1303a2 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: restored some update stat operations

parent c95ba65d
No related branches found
No related tags found
1 merge request!16Support for Game Boy Color (CGB) 😎🖍️
...@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
* Issue with background color and change of palette colors * Issue with background color and change of palette colors
* Issue related with STAT interrupt not being triggered for all conditions
## [0.5.5] - 2022-11-17 ## [0.5.5] - 2022-11-17
......
...@@ -407,6 +407,7 @@ impl Ppu { ...@@ -407,6 +407,7 @@ impl Ppu {
self.mode = PpuMode::HBlank; self.mode = PpuMode::HBlank;
self.mode_clock -= 172; self.mode_clock -= 172;
self.update_stat()
} }
} }
PpuMode::HBlank => { PpuMode::HBlank => {
...@@ -456,6 +457,7 @@ impl Ppu { ...@@ -456,6 +457,7 @@ impl Ppu {
self.window_counter = 0; self.window_counter = 0;
self.first_frame = false; self.first_frame = false;
self.frame_index = self.frame_index.wrapping_add(1); self.frame_index = self.frame_index.wrapping_add(1);
self.update_stat()
} }
self.mode_clock -= 456; self.mode_clock -= 456;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment