fixing scroll registers except mode 7

This commit is contained in:
Clément Le Bihan
2021-02-02 17:51:34 +01:00
parent a4d9047a89
commit 58fd02c8ec
3 changed files with 29 additions and 10 deletions
+8
View File
@@ -28,5 +28,13 @@ namespace ComSquare::PPU
uint16_t raw = 0;
};
//! @brief Struct to save all specific variables needed for the registers (prev values for example)
struct PpuState {
//! @brief Used by by all eight BGnxOFS registers (0x210D - 0x2114)
uint8_t hvSharedScrollPrevValue;
//! @brief Shared by the four BGnHOFS registers
uint8_t hScrollPrevValue;
};
}
#endif //COMSQUARE_PPU_UTILS_HPP