diff --git a/sources/PPU/PPU.cpp b/sources/PPU/PPU.cpp index 2a1537a..c8791bd 100644 --- a/sources/PPU/PPU.cpp +++ b/sources/PPU/PPU.cpp @@ -56,6 +56,13 @@ namespace ComSquare::PPU case 0x0A: this->bg4sc.raw = data; break; + case 0x0B: + this->bg12nba.raw = data; + break; + case 0x0C: + this->bg34nba.raw = data; + break; + //TODO adding the rest of the registers. ooof ! default: throw InvalidAddress("PPU Internal Registers write", addr); } diff --git a/sources/PPU/PPU.hpp b/sources/PPU/PPU.hpp index 28cdef2..7b7f24c 100644 --- a/sources/PPU/PPU.hpp +++ b/sources/PPU/PPU.hpp @@ -128,7 +128,7 @@ namespace ComSquare::PPU uint8_t _ : 6; uint32_t offsetBg: 10; }; - uint8_t raw; + uint16_t raw; } bg1ofs; //! @brief M7HOFS Register (Mode 7 BG Horizontal Scroll) //! @brief M7VOFS Register (Mode 7 BG Vertical Scroll)