mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-30 09:30:46 +00:00
PROGMEM
This commit is contained in:
parent
bc784d9981
commit
d80a4b0da2
2
prom.h
2
prom.h
@ -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) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user