Core/burn/drv/psikyo/psikyo_palette.cpp
// Update the PC copy of the palette on writes to the palette memory
Update the PC copy of the palette on writes to the palette memory
Update the PC copy of the palette on writes to the palette memory
void PsikyoPalWriteByte(UINT32 nAddress, UINT8 byteValue)
{
	nAddress ^= 1;
	PsikyoPalSrc[nAddress] = byteValue;							
	if (*((UINT8*)(PsikyoPalCopy + nAddress)) != byteValue) {
		*((UINT8*)(PsikyoPalCopy + nAddress)) = byteValue;
		PsikyoPalette[nAddress >> 1] = CalcCol(*(UINT16*)(PsikyoPalSrc + (nAddress & ~0x01)));
	}
}
void PsikyoPalWriteByte ( UINT32 nAddress , UINT8 byteValue ) { nAddress ^= 1 ; PsikyoPalSrc [ nAddress ] = byteValue ; if ( * ( ( UINT8 * ) ( PsikyoPalCopy + nAddress ) ) != byteValue ) { * ( ( UINT8 * ) ( PsikyoPalCopy + nAddress ) ) = byteValue ; PsikyoPalette [ nAddress >> 1 ] = CalcCol ( * ( UINT16 * ) ( PsikyoPalSrc + ( nAddress & ~ 0x01 ) ) ) ; } }
Update the PC copy of the palette on writes to the palette memory
Update the PC copy of the palette on writes to the palette memory
// write byte