Ejemplo n.º 1
0
//  AM_RANGE(0x0000, 0x0fff) AM_ROM
ADDRESS_MAP_END

static READ8_HANDLER( rbmk_mcu_io_r )
{
	rbmk_state *state = space->machine().driver_data<rbmk_state>();
	if(state->m_mux_data & 8)
	{
		return ym2151_r(space->machine().device("ymsnd"), offset & 1);
	}
	else if(state->m_mux_data & 4)
	{
		//printf("%02x R\n",offset);
		// ...
		return 0xff;
	}
	else
		printf("Warning: mux data R = %02x",state->m_mux_data);

	return 0xff;
}
Ejemplo n.º 2
0
/*READ8_DEVICE_HANDLER( ym2151_status_port_r ) { return ym2151_r(device, 1); }

WRITE8_DEVICE_HANDLER( ym2151_register_port_w ) { ym2151_w(device, 0, data); }
WRITE8_DEVICE_HANDLER( ym2151_data_port_w ) { ym2151_w(device, 1, data); }*/
UINT8 ym2151_status_port_r(void *info, offs_t offset)
{
	return ym2151_r(info, 1);
}