EightBit/inc/MemoryMapping.h
Adrian Conlon 68a785ceec Add an address masking to the memory mapping structure.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-01 23:43:29 +00:00

18 lines
261 B
C++

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