mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
5eedbe1225
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
20 lines
316 B
C++
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;
|
|
};
|
|
}
|