1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-22 18:29:20 +00:00
r65emu/prom.h

16 lines
278 B
C
Raw Normal View History

2014-11-10 14:16:45 +00:00
#ifndef __PROM_H__
#define __PROM_H__
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;
};
2014-11-10 14:16:45 +00:00
#endif