EightBit/inc/MemoryMapping.h
Adrian Conlon 984626a331 Introduce the concept of a MemoryInterface to the EightBit library.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-03 22:15:17 +00:00

19 lines
275 B
C++

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