r65emu/prom.h

11 lines
231 B
C
Raw Normal View History

2014-10-18 11:33:48 +00:00
class prom: public Memory::Device {
public:
virtual void operator= (byte) {}
virtual operator byte () { return _mem[_acc]; }
prom(const byte *mem, int bytes): Memory::Device(bytes), _mem(mem) {}
private:
const byte *_mem;
};