示例#1
0
static WRITE8_HANDLER( quasar_video_w )
{
	if (page == 0) videoram_w(offset,data);
	if (page == 1) colorram_w(offset,(data & 7));	// 3 bits of ram only - 3 x 2102
	if (page == 2)
	{
		quasar_effectram[offset]   = data;
	}
	if (page == 3)
	{
		quasar_effectcontrol = data;
	}
}
示例#2
0
static WRITE8_HANDLER( quasar_video_w )
{
	if (page == 0) videoram_w(offset,data);
	if (page == 1) colorram_w(offset,(data & 7));	/* 3 bits of ram only - 3 x 2102 */
	if (page == 2)
	{
		effectram[offset]   = data;
		effectdirty[offset] = 1;
	}
	if (page == 3)
	{
		effectcontrol = data;
		memset(effectdirty,1,sizeof(effectdirty));
	}
}