mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-23 23:08:16 +00:00
Added render interface and sfml renderer
This commit is contained in:
+7
-4
@@ -8,7 +8,8 @@
|
||||
|
||||
namespace ComSquare::PPU
|
||||
{
|
||||
uint8_t PPU::read(uint24_t addr) {
|
||||
uint8_t PPU::read(uint24_t addr)
|
||||
{
|
||||
switch (addr) {
|
||||
case 0x34:
|
||||
return this->mpy.mpyl;
|
||||
@@ -21,7 +22,8 @@ namespace ComSquare::PPU
|
||||
}
|
||||
}
|
||||
|
||||
void PPU::write(uint24_t addr, uint8_t data) {
|
||||
void PPU::write(uint24_t addr, uint8_t data)
|
||||
{
|
||||
switch (addr) {
|
||||
case 0x00:
|
||||
this->inidisp.raw = data;
|
||||
@@ -68,7 +70,8 @@ namespace ComSquare::PPU
|
||||
}
|
||||
}
|
||||
|
||||
void PPU::update(int cycles) {
|
||||
|
||||
void PPU::update(int cycles)
|
||||
{
|
||||
(void)cycles;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user