EightBit/inc/MemoryMapping.h

20 lines
310 B
C
Raw Normal View History

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