Example #1
0
ADDRESS_MAP_END

/******************************************************************************/

static WRITE8_DEVICE_HANDLER( D7759_write_port_0_w )
{
	upd7759_port_w(device, 0, data);
	upd7759_start_w(device, 0);
	upd7759_start_w(device, 1);
}
Example #2
0
ADDRESS_MAP_END

/******************************************************************************/

WRITE8_MEMBER(prehisle_state::D7759_write_port_0_w)
{
	upd7759_port_w(m_upd7759, space, 0, data);
	upd7759_start_w(m_upd7759, 0);
	upd7759_start_w(m_upd7759, 1);
}
Example #3
0
ADDRESS_MAP_END

/******************************************************************************/

WRITE8_MEMBER(prehisle_state::D7759_write_port_0_w)
{
	device_t *device = machine().device("upd");
	upd7759_port_w(device, space, 0, data);
	upd7759_start_w(device, 0);
	upd7759_start_w(device, 1);
}
Example #4
0
static WRITE8_DEVICE_HANDLER( bingoc_play_w )
{
    /*
    ---- --x- sound rom banking
    ---- ---x start-stop sample
    */
    UINT8 *upd = memory_region(device->machine, "upd");
    memcpy(&upd[0x00000], &upd[0x20000 + (((data & 2)>>1) * 0x20000)], 0x20000);
    upd7759_start_w(device, data & 1);
//  printf("%02x\n",data);
}
Example #5
0
static WRITE8_HANDLER( speech_control_w )
{
    _88games_state *state = space->machine().driver_data<_88games_state>();
    device_t *upd;

    state->m_speech_chip = (data & 4) ? 1 : 0;
    upd = state->m_speech_chip ? state->m_upd_2 : state->m_upd_1;

    upd7759_reset_w(upd, data & 2);
    upd7759_start_w(upd, data & 1);
}
Example #6
0
static WRITE8_HANDLER( combasc_play_w )
{
	upd7759_start_w(0, data & 2);
}
Example #7
0
static WRITE8_DEVICE_HANDLER( upd_data_w )
{
	upd7759_port_w(device, 0, data);
	upd7759_start_w(device, 0);
	upd7759_start_w(device, 1);
}
Example #8
0
static WRITE8_HANDLER( upd_data_w )
{
	upd7759_port_w(0, data);
	upd7759_start_w(0, 0);
	upd7759_start_w(0, 1);
}