mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-21 12:29:51 +00:00
11 lines
231 B
C
11 lines
231 B
C
|
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;
|
||
|
};
|