// TC0360PRI
// Based on MAME sources by Nicola Salmoria

#include "burnint.h"
#include "taito_ic.h"

UINT8 TC0360PRIRegs[16];

void TC0360PRIWrite(UINT32 Offset, UINT8 Data)
{
	TC0360PRIRegs[Offset] = Data;
}

void TC0360PRIHalfWordWrite(UINT32 Offset, UINT16 Data)
{
	TC0360PRIWrite(Offset, Data & 0xff);
}

void TC0360PRIHalfWordSwapWrite(UINT32 Offset, UINT16 Data)
{
	TC0360PRIWrite(Offset, (Data >> 8) & 0xff);
}

void TC0360PRIReset()
{
	memset(TC0360PRIRegs, 0, 16);
}

void TC0360PRIInit()
{
	TaitoIC_TC0360PRIInUse = 1;
}

void TC0360PRIExit()
{
	memset(TC0360PRIRegs, 0, 16);
}

void TC0360PRIScan(INT32 nAction)
{
	if (nAction & ACB_DRIVER_DATA) {
		SCAN_VAR(TC0360PRIRegs);
	}
}
