mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-18 11:06:15 +00:00
0665de5951
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
21 lines
309 B
C++
21 lines
309 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include "Memory.h"
|
|
|
|
namespace EightBit {
|
|
class Rom : public Memory {
|
|
public:
|
|
Rom(size_t size = 0)
|
|
: Memory(size) {
|
|
}
|
|
|
|
uint8_t peek(uint16_t address) const {
|
|
return read(address);
|
|
}
|
|
|
|
uint8_t& reference(uint16_t address) {
|
|
return m_bytes[address];
|
|
}
|
|
};
|
|
} |