EightBit/inc/Rom.h
Adrian.Conlon 64b7335a79 Attempted move to a "BUS" oriented memory architecture (TBC!)
Signed-off-by: Adrian.Conlon <adrian.conlon@arup.com>
2017-09-06 13:22:23 +01:00

21 lines
305 B
C++

#pragma once
#include <cstdint>
#include "Memory.h"
namespace EightBit {
class Rom : public Memory {
public:
Rom(size_t size)
: Memory(size) {
}
uint8_t peek(uint16_t address) const {
return read(address);
}
uint8_t& reference(uint16_t address) {
return m_bytes[address];
}
};
}