1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-30 09:30:46 +00:00
This commit is contained in:
Stephen Crane 2018-11-07 21:37:20 +00:00
parent bc784d9981
commit d80a4b0da2

2
prom.h
View File

@ -4,7 +4,7 @@
class prom: public Memory::Device {
public:
virtual void operator= (uint8_t) {}
virtual operator uint8_t () { return _mem[_acc]; }
virtual operator uint8_t () { return pgm_read_byte(_mem+_acc); }
prom(const uint8_t *mem, int uint8_ts): Memory::Device(uint8_ts), _mem(mem) {}