Пример #1
0
static WRITE8_HANDLER( track_reset_w )
{
	/* reset the trackball counters */
	last_trackball_val[0] = input_port_2_r(offset);
	last_trackball_val[1] = input_port_3_r(offset);

	watchdog_reset_w(offset,data);
}
Пример #2
0
static WRITE8_HANDLER( track_reset_w )
{
	/* reset the trackball counters */
	last_trackball_val[0] = input_port_read(space->machine, "TRACKY");
	last_trackball_val[1] = input_port_read(space->machine, "TRACKX");

	watchdog_reset_w(space, offset, data);
}
Пример #3
0
static WRITE8_HANDLER( track_reset_w )
{
	/* reset the trackball counters */
	last_trackball_val[0] = input_port_read_indexed(machine, 2);
	last_trackball_val[1] = input_port_read_indexed(machine, 3);

	watchdog_reset_w(machine, offset, data);
}
Пример #4
0
static WRITE_HANDLER( flkatck_ls138_w )
{
	switch ((offset & 0x1c) >> 2){
		case 0x04:	/* bankswitch */
			flkatck_bankswitch_w(0, data);
			break;
		case 0x05:	/* sound code number */
			soundlatch_w(0, data);
			break;
		case 0x06:	/* Cause interrupt on audio CPU */
			cpu_cause_interrupt(1,Z80_IRQ_INT);
			break;
		case 0x07:	/* watchdog reset */
			watchdog_reset_w(0, data);
			break;
	}
}
Пример #5
0
static WRITE8_HANDLER( flkatck_ls138_w )
{
	switch ((offset & 0x1c) >> 2){
		case 0x04:	/* bankswitch */
			flkatck_bankswitch_w(0, data);
			break;
		case 0x05:	/* sound code number */
			soundlatch_w(0, data);
			break;
		case 0x06:	/* Cause interrupt on audio CPU */
			cpunum_set_input_line(1,0,HOLD_LINE);
			break;
		case 0x07:	/* watchdog reset */
			watchdog_reset_w(0, data);
			break;
	}
}
Пример #6
0
void neogeo_driver_reset(void)
{
    memset(exmem, 0, sizeof(exmem));
    memset(exmem_latch, 0, sizeof(exmem_latch));
    memset(exmem_bank, 0, sizeof(exmem_bank));
    exmem_counter = 0;

    upload_mode = UPLOAD_IMMIDIATE;
    upload_type = UNKNOWN_TYPE;
    upload_offset1 = 0;
    upload_offset2 = 0;
    upload_length = 0;
    upload_pattern = 0;
    upload_executing = 0;

    memcpy(memory_region_cpu1, neogeo_vectors[1], 0x100);	// game vector

    watchdog_reset_w(0, 0, 0);

    raster_line = 0;
    raster_counter = RASTER_COUNTER_START;
    scanline_read = 0;

    display_position_interrupt_start = 1000;
    display_position_interrupt_counter = 0;
    display_position_interrupt_control = 0;
    display_counter = 0;

    vblank_interrupt_pending = 0;
    display_position_interrupt_pending = 0;

    sound_code = 0;
    result_code = 0;
    pending_command = 0;

    auto_animation_frame_counter = 0;
    auto_animation_speed = 0;
    auto_animation_disabled = 0;
    auto_animation_counter = 0;

    neogeo_reset_driver_type();

    m68000_reset();
    z80_reset();
}
Пример #7
0
static WRITE8_HANDLER( warpwarp_out0_w )
{
	switch (offset & 3)
	{
		case 0:
			warpwarp_ball_h = data;
			break;
		case 1:
			warpwarp_ball_v = data;
			break;
		case 2:
			warpwarp_sound_w(0,data);
			break;
		case 3:
			watchdog_reset_w(0,data);
			break;
	}
}
Пример #8
0
static WRITE8_HANDLER( warpwarp_out0_w )
{
	warpwarp_state *state = space->machine().driver_data<warpwarp_state>();
	switch (offset & 3)
	{
		case 0:
			state->m_ball_h = data;
			break;
		case 1:
			state->m_ball_v = data;
			break;
		case 2:
			warpwarp_sound_w(space->machine().device("warpwarp"),0,data);
			break;
		case 3:
			watchdog_reset_w(space,0,data);
			break;
	}
}
Пример #9
0
static WRITE8_HANDLER( flkatck_ls138_w )
{
	flkatck_state *state = space->machine->driver_data<flkatck_state>();

	switch ((offset & 0x1c) >> 2)
	{
		case 0x04:	/* bankswitch */
			flkatck_bankswitch_w(space, 0, data);
			break;
		case 0x05:	/* sound code number */
			soundlatch_w(space, 0, data);
			break;
		case 0x06:	/* Cause interrupt on audio CPU */
			cpu_set_input_line(state->audiocpu, 0, HOLD_LINE);
			break;
		case 0x07:	/* watchdog reset */
			watchdog_reset_w(space, 0, data);
			break;
	}
}
Пример #10
0
static WRITE8_HANDLER( destroyr_cursor_load_w )
{
	destroyr_cursor = data;

	watchdog_reset_w(space, offset, data);
}
Пример #11
0
void neogeo_driver_reset(void)
{
#ifdef ADHOC
	if (adhoc_enable)
	{
		pd4990a.seconds = 0;
		pd4990a.minutes = 0;
		pd4990a.hours   = 0;
		pd4990a.days    = 0;
		pd4990a.month   = 0;
		pd4990a.year    = 0;
		pd4990a.weekday = 0;
	}
	else
#endif
	{
		pspTime today;
		int y, m, d;

		sceRtcGetCurrentClockLocalTime(&today);

		pd4990a.seconds = ((today.seconds / 10) << 4) + (today.seconds % 10);
		pd4990a.minutes = ((today.minutes / 10) << 4) + (today.minutes % 10);
		pd4990a.hours   = ((today.hour    / 10) << 4) + (today.hour    % 10);
		pd4990a.days    = ((today.day     / 10) << 4) + (today.day     % 10);
		pd4990a.month   = today.month;
		pd4990a.year    = (((today.year % 100) / 10) << 4) + (today.year % 10);

		y = today.year;
		m = today.month;
		d = today.day;
		if (m == 1 || m == 2) { y--; m += 12; }
		pd4990a.weekday = (y + (y / 4) - (y / 100) + (y / 400) + ((13 * m + 8) / 5) + d) % 7;
	}

	memset(neogeo_ram, 0, 0x10000);

	memcpy(memory_region_cpu1, neogeo_vectors[0], 0x80);	// bios vector
	main_cpu_vector_table_source = 0;

	watchdog_reset_w(0, 0, 0);

	raster_counter = RASTER_COUNTER_START;
	scanline_read = 0;

	display_position_interrupt_counter = 0;
	display_position_interrupt_control = 0;
	display_counter = 0;

	vblank_interrupt_pending = 0;
	display_position_interrupt_pending = 0;

	sound_code = 0;
	result_code = 0;
	pending_command = 0;

	auto_animation_frame_counter = 0;
	auto_animation_speed = 0;
	auto_animation_disabled = 0;
	auto_animation_counter = 0;

	neogeo_rng = 0x2345;
	save_ram_unlocked = 0;

	controller_select = 0;

	neogeo_reset_driver_type();

	if (machine_init_type == INIT_ms5pcb
	||	machine_init_type == INIT_svcpcb)
	{
		memcpy(memory_region_user1, memory_region_user1 + 0x20000 + neogeo_hard_dipsw * 0x20000, 0x20000);
	}
#if !RELEASE
	if (machine_init_type == INIT_kog)
	{
		memory_region_cpu1[0x1ffffc/2] = neogeo_hard_dipsw;
	}
#endif

	m68000_reset();
	z80_reset();
}
Пример #12
0
static WRITE8_HANDLER( destroyr_cursor_load_w )
{
	destroyr_state *state = (destroyr_state *)space->machine->driver_data;
	state->cursor = data;
	watchdog_reset_w(space, offset, data);
}
Пример #13
0
static WRITE8_HANDLER( onetwo_coin_counters_w )
{
	watchdog_reset_w(0, data & 0x01);
	coin_counter_w(0, data & 0x02);
	coin_counter_w(1, data & 0x04);
}
Пример #14
0
void atarisys2_watchdog_w (int offset, int data)
{
	watchdog_reset_w (offset, data);
}
Пример #15
0
static WRITE8_HANDLER( destroyr_cursor_load_w )
{
	destroyr_state *state = space->machine().driver_data<destroyr_state>();
	state->m_cursor = data;
	watchdog_reset_w(space, offset, data);
}
Пример #16
0
static WRITE16_HANDLER( darius_watchdog_w )
{
	watchdog_reset_w(0,data);
}
Пример #17
0
static READ8_HANDLER( triplhnt_input_port_4_r )
{
	watchdog_reset_w(space, 0, 0);
	return input_port_read(space->machine(), "0C0B");
}