From a8b6e219c48130d371988c487b271874f4700d29 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 17 Aug 2022 22:42:44 +0200 Subject: [PATCH] Emu: Add initial class --- src/emu.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/emu.h diff --git a/src/emu.h b/src/emu.h new file mode 100644 index 0000000..5034195 --- /dev/null +++ b/src/emu.h @@ -0,0 +1,26 @@ +#pragma once + +#include +#include +#include "processing_unit.h" + +class Emu { +public: +void WriteRAM(int location, int length); +void WriteVRAM(int location, int length); +void WriteROM(int location, int length); + +void ReadRAM(int location, int length); +void ReadVRAM(int location, int length); +void ReadROM(int location, int length); + +private: +float m_frequency; +int m_cycle = 0; + +uint8_t m_ram[1024]; +uint8_t m_vram[1024]; +uint8_t m_rom[1024]; + +std::vector m_processing_units; +}; \ No newline at end of file