예제 #1
0
static WRITE8_HANDLER( videopin_led_w )
{
	static const char* matrix[8][4] =
	{
		{ "LED26", "LED18", "LED11", "LED13" },
		{ "LED25", "LED17", "LED10", "LED08" },
		{ "LED24", "LED29", "LED09", "LED07" },
		{ "LED23", "LED28", "LED04", "LED06" },
		{ "LED22", "LED27", "LED03", "LED05" },
		{ "LED21", "LED16", "LED02", "-" },
		{ "LED20", "LED15", "LED01", "-" },
		{ "LED19", "LED14", "LED12", "-" }
	};

	int i = (cpu_getscanline() >> 5) & 7;

	artwork_show(matrix[i][0], data & 1);
	artwork_show(matrix[i][1], data & 2);
	artwork_show(matrix[i][2], data & 4);
	artwork_show(matrix[i][3], data & 8);

	if (i == 7)
	{
		set_led_status(0, data & 8);   /* start button */
	}

	cpunum_set_input_line(0, 0, CLEAR_LINE);
}
예제 #2
0
static WRITE8_HANDLER( portrait_ctrl_w )
{
    /* bits 4 and 5 are unknown */

    coin_counter_w(0, data & 0x01);
    coin_counter_w(1, data & 0x02);
    coin_counter_w(2, data & 0x04);

    /* the 2 lamps near the camera */
    set_led_status(0, data & 0x08);
    set_led_status(1, data & 0x40);

    /* shows the black and white photo from the camera */
    artwork_show("photo", data & 0x80);
}