EightBit/inc/Rom.h
Adrian Conlon 9de0f597f6 Remove some "tricksy" code from the Z80 emulator chain.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-04-14 09:39:06 +01:00

22 lines
328 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 peek(const uint16_t address) const {
return read(address);
}
uint8_t& reference(const uint16_t address) {
return BYTES()[address];
}
};
}