io(placeholder): add naive io structure

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-11 23:30:22 +05:30
parent 8b80f818c6
commit 933b622493
5 changed files with 74 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "header.hh"
#include "io.hh"
#include <array>
#include <cstddef>
#include <cstdint>
@@ -51,6 +52,7 @@ class Memory {
#undef MEMORY_REGION
IoRegisters io;
std::unordered_map<uint32_t, uint8_t> invalid_mem;
std::vector<uint8_t> rom;
Header header;