mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-11 17:29:57 +00:00
3e854c7c49
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
18 lines
247 B
C++
18 lines
247 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include "Memory.h"
|
|
|
|
namespace EightBit {
|
|
class Rom : public Memory {
|
|
public:
|
|
Rom(const size_t size = 0)
|
|
: Memory(size) {
|
|
}
|
|
|
|
uint8_t reference(uint16_t address) const {
|
|
return peek(address);
|
|
}
|
|
};
|
|
}
|