2018-09-15 14:35:59 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
2018-11-16 23:49:52 +00:00
|
|
|
#include "Chip.h"
|
2018-09-15 14:35:59 +01:00
|
|
|
|
|
|
|
namespace EightBit {
|
2018-11-03 22:15:17 +00:00
|
|
|
|
2018-11-04 16:38:57 +00:00
|
|
|
class Memory;
|
2018-11-03 22:15:17 +00:00
|
|
|
|
2018-09-15 14:35:59 +01:00
|
|
|
struct MemoryMapping {
|
|
|
|
|
2018-10-27 17:30:23 +01:00
|
|
|
enum AccessLevel { Unknown, ReadOnly, ReadWrite, };
|
2018-09-15 14:35:59 +01:00
|
|
|
|
2018-11-04 16:38:57 +00:00
|
|
|
Memory& memory;
|
2018-11-16 23:49:52 +00:00
|
|
|
uint16_t begin = Chip::Mask16;
|
2018-11-01 23:43:29 +00:00
|
|
|
uint16_t mask = 0U;
|
2018-09-15 14:35:59 +01:00
|
|
|
AccessLevel access = Unknown;
|
|
|
|
};
|
|
|
|
}
|