EightBit/inc/MemoryMapping.h
Adrian Conlon dc477cd050 Use explicit enumeration types (improves type safety) where appropriate.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-12-01 15:24:29 +00:00

20 lines
300 B
C++

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