aiie/mmu.h

21 lines
386 B
C
Raw Normal View History

2017-02-19 18:46:13 +00:00
#ifndef __MMU_H
#define __MMU_H
#include <stdint.h>
class MMU {
public:
virtual ~MMU() {}
virtual void Reset() = 0;
virtual uint8_t read(uint16_t mem) = 0;
virtual void write(uint16_t mem, uint8_t val) = 0;
virtual uint8_t readDirect(uint16_t address, uint8_t fromPage) = 0;
2017-12-30 20:20:34 +00:00
virtual bool Serialize(int8_t fd) = 0;
virtual bool Deserialize(int8_t fd) = 0;
2017-02-19 18:46:13 +00:00
};
#endif