mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-11-09 02:18:55 +00:00
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:
16
inc/MemoryMapping.h
Normal file
16
inc/MemoryMapping.h
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user