vgbc/memory/register.cpp

13 lines
190 B
C++

#include <memory/register.h>
void BoundRegister::write8(u16 addr, u8 data)
{
if(addr) return;
reg = data;
}
u8 BoundRegister::read8(u16 addr)
{
if(addr) return 0xFF;
return reg;
}