Example #1
0
void sliver_state::blit_gfx()
{
	int tmpptr=0;
	const UINT8 *rom = memregion("user1")->base();

	while (tmpptr < m_fptr)
	{
		int x,y,romdata;
		int w,h;
		int romoffs=m_fifo[tmpptr+0]+(m_fifo[tmpptr+1] << 8)+(m_fifo[tmpptr+2] << 16);

		w=m_fifo[tmpptr+3]+1;
		h=m_fifo[tmpptr+4]+1;

		if (m_fifo[tmpptr+7] == 0)
		{
			for (y=0; y < h; y++)
			{
				for (x=0; x < w; x++)
				{
					romdata = rom[romoffs&0x1fffff];
					if (romdata)
					{
						plot_pixel_pal(m_fifo[tmpptr+5]+m_fifo[tmpptr+3]-x, m_fifo[tmpptr+6]+m_fifo[tmpptr+4]-y, romdata);
					}
					romoffs++;
				}
			}
		}
		tmpptr+=COMMAND_SIZE;
	}
}
Example #2
0
static void blit_gfx(void)
{
	int tmpptr=0;
	while(tmpptr<fptr)
	{
		int x,y,romdata;
		int w,h;
		int romoffs=fifo[tmpptr+0]+(fifo[tmpptr+1]<<8)+(fifo[tmpptr+2]<<16);

		w=fifo[tmpptr+3]+1;
		h=fifo[tmpptr+4]+1;

		if(	fifo[tmpptr+7]==0)
		{
			for (y=0;y<h;y++)
			{
				for (x=0;x<w;x++)
				{
					romdata = memory_region(REGION_USER1)[romoffs&0x1fffff];
					if(romdata)
					{
						plot_pixel_pal(fifo[tmpptr+5]+fifo[tmpptr+3]-x, fifo[tmpptr+6]+fifo[tmpptr+4]-y, romdata);
					}
					romoffs++;
				}
			}
		}
		tmpptr+=COMMAND_SIZE;
	}
}
Example #3
0
static void blit_gfx(running_machine &machine)
{
	sliver_state *state = machine.driver_data<sliver_state>();
	int tmpptr=0;
	const UINT8 *rom = machine.region("user1")->base();

	while (tmpptr < state->m_fptr)
	{
		int x,y,romdata;
		int w,h;
		int romoffs=state->m_fifo[tmpptr+0]+(state->m_fifo[tmpptr+1] << 8)+(state->m_fifo[tmpptr+2] << 16);

		w=state->m_fifo[tmpptr+3]+1;
		h=state->m_fifo[tmpptr+4]+1;

		if (state->m_fifo[tmpptr+7] == 0)
		{
			for (y=0; y < h; y++)
			{
				for (x=0; x < w; x++)
				{
					romdata = rom[romoffs&0x1fffff];
					if (romdata)
					{
						plot_pixel_pal(machine, state->m_fifo[tmpptr+5]+state->m_fifo[tmpptr+3]-x, state->m_fifo[tmpptr+6]+state->m_fifo[tmpptr+4]-y, romdata);
					}
					romoffs++;
				}
			}
		}
		tmpptr+=COMMAND_SIZE;
	}
}
Example #4
0
static void blit_gfx(running_machine *machine)
{
	int tmpptr=0;
	const UINT8 *rom = memory_region(machine, "user1");

	while(tmpptr<fptr)
	{
		int x,y,romdata;
		int w,h;
		int romoffs=fifo[tmpptr+0]+(fifo[tmpptr+1]<<8)+(fifo[tmpptr+2]<<16);

		w=fifo[tmpptr+3]+1;
		h=fifo[tmpptr+4]+1;

		if(	fifo[tmpptr+7]==0)
		{
			for (y=0;y<h;y++)
			{
				for (x=0;x<w;x++)
				{
					romdata = rom[romoffs&0x1fffff];
					if(romdata)
					{
						plot_pixel_pal(fifo[tmpptr+5]+fifo[tmpptr+3]-x, fifo[tmpptr+6]+fifo[tmpptr+4]-y, romdata);
					}
					romoffs++;
				}
			}
		}
		tmpptr+=COMMAND_SIZE;
	}
}