From f9de489f1f8f68e439072f16d61715beb904af63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Wed, 29 Jan 2020 18:58:42 +0100 Subject: [PATCH] ppu modified --- sources/PPU/PPU.cpp | 6 +++++- sources/PPU/PPU.hpp | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sources/PPU/PPU.cpp b/sources/PPU/PPU.cpp index c8791bd..8e788c8 100644 --- a/sources/PPU/PPU.cpp +++ b/sources/PPU/PPU.cpp @@ -62,9 +62,13 @@ namespace ComSquare::PPU case 0x0C: this->bg34nba.raw = data; break; - //TODO adding the rest of the registers. ooof ! + //TODO adding the rest of the registers. oaf ! default: throw InvalidAddress("PPU Internal Registers write", addr); } } + + void PPU::update(int cycles) { + + } } \ No newline at end of file diff --git a/sources/PPU/PPU.hpp b/sources/PPU/PPU.hpp index 7b7f24c..190feaf 100644 --- a/sources/PPU/PPU.hpp +++ b/sources/PPU/PPU.hpp @@ -390,6 +390,9 @@ namespace ComSquare::PPU //! @param data The new data to write. //! @throw This function should thrown an InvalidAddress for address that are not mapped to the component. void write(uint24_t addr, uint8_t data) override; + //! @brief Update the PPU of n cycles. + //! @param The number of cycles to update. + void update(int cycles); }; } #endif //COMSQUARE_PPU_HPP