vgbc/memory/mem_device.h

13 lines
229 B
C
Raw Normal View History

2023-08-26 19:04:02 +02:00
#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) = 0;
virtual u16 read16(u16 addr) = 0;
};