Modifying the manner in which memory is mapped, allows a fairly clean mechanism for loading Intel "hex" files.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2018-09-15 14:35:59 +01:00
parent a9adde6ea5
commit 7d840f1a42
17 changed files with 170 additions and 71 deletions

16
inc/MemoryMapping.h Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include <cstdint>
#include "Memory.h"
namespace EightBit {
struct MemoryMapping {
enum AccessLevel { Unknown, ReadWrite, ReadOnly };
Memory& memory;
uint16_t begin = 0xffff;
AccessLevel access = Unknown;
};
}