1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-22 03:30:02 +00:00
r65emu/prom.h
2018-08-14 06:10:37 +01:00

16 lines
296 B
C++

#ifndef __PROM_H__
#define __PROM_H__
class prom: public Memory::Device {
public:
virtual void operator= (uint8_t) {}
virtual operator uint8_t () { return _mem[_acc]; }
prom(const uint8_t *mem, int uint8_ts): Memory::Device(uint8_ts), _mem(mem) {}
private:
const uint8_t *_mem;
};
#endif