(debugmsg on port c illegal write)

This commit is contained in:
Michaël Banaan Ananas 2011-08-07 01:04:59 +00:00
parent c4130de58a
commit 7cde78dac7

View File

@ -474,6 +474,10 @@ static TIMER_CALLBACK( ymf278b_timer_ld_clear )
static void ymf278b_C_w(YMF278BChip *chip, UINT8 reg, UINT8 data)
{
// officially, these registers can't be accessed if NEW2 is 0
if (~chip->exp & 2)
logerror("YMF278B: Port C illegal write %02x, %02x\n", reg, data);
chip->stream->update();
chip->pcmregs[reg] = data;