Add BackgroundLayer to PPU, Create Loggable class

This commit is contained in:
scawful
2023-08-20 16:15:18 -04:00
parent 7448f80119
commit ac7d8b6af9
6 changed files with 92 additions and 27 deletions

View File

@@ -5,6 +5,8 @@
#include <iostream>
#include <vector>
#include "app/emu/log.h"
// LoROM (Mode 20):
// Banks Offset Purpose
@@ -138,7 +140,7 @@ class Memory {
virtual uint8_t at(int i) const = 0;
};
class MemoryImpl : public Memory {
class MemoryImpl : public Memory, public Loggable {
public:
void Initialize(const std::vector<uint8_t>& romData) {
const size_t ROM_CHUNK_SIZE = 0x8000; // 32 KB