vgbc/memory/mem_device.h

12 lines
221 B
C++

#pragma once
#include "types.h"
class Mem_device {
public:
virtual void write8(u16 addr, u8 data) = 0;
virtual u8 read8(u16 addr) = 0;
virtual void write16(u16 addr, u16 data);
virtual u16 read16(u16 addr);
};