1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-22 03:30:02 +00:00
r65emu/prom.h
2014-11-10 14:16:45 +00:00

16 lines
278 B
C++

#ifndef __PROM_H__
#define __PROM_H__
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;
};
#endif