Пример #1
0
static WRITE8_HANDLER( cavelon_banksw_w )
{
	cavelon_banksw(space->machine);

	if      ((offset >= 0x0100) && (offset <= 0x0103))
		ppi8255_w(devtag_get_device(space->machine, "ppi8255_0"), offset - 0x0100, data);
	else if ((offset >= 0x0200) && (offset <= 0x0203))
		ppi8255_w(devtag_get_device(space->machine, "ppi8255_1"), offset - 0x0200, data);
}
Пример #2
0
static WRITE8_HANDLER( cavelon_banksw_w )
{
	scramble_state *state = space->machine().driver_data<scramble_state>();
	cavelon_banksw(space->machine());

	if ((offset >= 0x0100) && (offset <= 0x0103))
		state->m_ppi8255_0->write(*space, offset - 0x0100, data);
	else if ((offset >= 0x0200) && (offset <= 0x0203))
		state->m_ppi8255_1->write(*space, offset - 0x0200, data);
}
Пример #3
0
static READ8_HANDLER( cavelon_banksw_r )
{
	cavelon_banksw(space->machine);

	if      ((offset >= 0x0100) && (offset <= 0x0103))
		return ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), offset - 0x0100);
	else if ((offset >= 0x0200) && (offset <= 0x0203))
		return ppi8255_r(devtag_get_device(space->machine, "ppi8255_1"), offset - 0x0200);

	return 0xff;
}
Пример #4
0
static READ8_HANDLER( cavelon_banksw_r )
{
	scramble_state *state = space->machine().driver_data<scramble_state>();
	cavelon_banksw(space->machine());

	if ((offset >= 0x0100) && (offset <= 0x0103))
		return state->m_ppi8255_0->read(*space, offset - 0x0100);
	else if ((offset >= 0x0200) && (offset <= 0x0203))
		return state->m_ppi8255_1->read(*space, offset - 0x0200);

	return 0xff;
}