예제 #1
0
static READ8_HANDLER( bankedram_r )
{
	if (rambank == 2)
		return cbasebal_textram_r(offset);	/* VRAM */
	else if (rambank == 1)
	{
		if (offset < 0x800)
			return paletteram_r(offset);
		else return 0;
	}
	else
	{
		return cbasebal_scrollram_r(offset);	/* SCROLL */
	}
}
예제 #2
0
static READ8_HANDLER( bankedram_r )
{
	cbasebal_state *state = space->machine().driver_data<cbasebal_state>();

	switch (state->m_rambank)
	{
	case 2:
		return cbasebal_textram_r(space, offset);	/* VRAM */
	case 1:
		if (offset < 0x800)
			return space->machine().generic.paletteram.u8[offset];
		else
			return 0;
		break;
	default:
		return cbasebal_scrollram_r(space, offset);	/* SCROLL */
	}
}