EightBit/inc/MemoryMapping.h
Adrian Conlon 5eedbe1225 Make better use of modern c++
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-05-02 11:36:43 +01:00

20 lines
316 B
C++

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