static TIMER_CALLBACK( ipu_watchdog_reset ) { logerror("ipu_watchdog_reset\n"); cputag_set_input_line(machine, "ipu", INPUT_LINE_RESET, PULSE_LINE); devtag_reset(machine, "ipu_ctc"); devtag_reset(machine, "ipu_pio0"); devtag_reset(machine, "ipu_pio1"); devtag_reset(machine, "ipu_sio"); }
static DEVICE_RESET( venture_sound ) { DEVICE_RESET_CALL(common_sh_reset); /* PIA */ devtag_reset(device->machine, "pia0"); devtag_reset(device->machine, "pia1"); /* 6532 */ riot->reset(); /* 8253 */ memset(sh8253_timer, 0, sizeof(sh8253_timer)); }
static WRITE8_HANDLER( sound_int_state_w ) { /* top bit controls BSMT2000 reset */ if (!(sound_int_state & 0x80) && (data & 0x80)) devtag_reset(space->machine, "bsmt"); /* also clears interrupts */ cputag_set_input_line(space->machine, "audiocpu", 0, CLEAR_LINE); sound_int_state = data; }
/* Reset */ void pes_state::machine_reset() { // clear fifos (TODO: memset would work better here...) int i; for (i=0; i<32; i++) m_infifo[i] = 0; m_infifo_tail_ptr = m_infifo_head_ptr = 0; m_wsstate = 1; m_rsstate = 1; m_port3_state = 0; // reset the openbus state of port 3 //cputag_set_input_line(machine, "maincpu", INPUT_LINE_RESET, ASSERT_LINE); // this causes debugger to fail badly if included devtag_reset(machine(), "tms5220"); // reset the 5220 }
static WRITE16_HANDLER( latch_w ) { /* bit layout in this register: 0x8000 == VCR ??? 0x2000 == LETAMODE1 (controls right trackball) 0x1000 == CBANK (color bank -- is it ever set to non-zero?) 0x0800 == LETAMODE0 (controls center and left trackballs) 0x0400 == LETARES (reset LETA analog control reader) 0x0200 == COINCTRL 0x0100 == COINCTRR 0x0020 == PMIX0 (ADPCM mixer level) 0x0010 == /PCMRES (ADPCM reset) 0x000E == YMIX2-0 (YM2413 mixer level) 0x0001 == /YAMRES (YM2413 reset) */ /* upper byte being modified? */ if (ACCESSING_BITS_8_15) { if (data & 0x1000) logerror("Color bank set to 1!\n"); coin_counter_w(space->machine, 0, (data >> 9) & 1); coin_counter_w(space->machine, 1, (data >> 8) & 1); } /* lower byte being modified? */ if (ACCESSING_BITS_0_7) { atarigen_set_oki6295_vol(space->machine, (data & 0x0020) ? 100 : 0); if (!(data & 0x0010)) devtag_reset(space->machine, "oki"); atarigen_set_ym2413_vol(space->machine, ((data >> 1) & 7) * 100 / 7); if (!(data & 0x0001)) devtag_reset(space->machine, "ymsnd"); } }
static void rf5c296_reg_w(ATTR_UNUSED running_machine &machine, UINT8 reg, UINT8 data) { taitogn_state *state = machine.driver_data<taitogn_state>(); // fprintf(stderr, "rf5c296_reg_w %02x, %02x (%s)\n", reg, data, machine.describe_context()); switch (reg) { // Interrupt and General Control Register case 0x03: // Check for card reset if (!(data & 0x40)) { devtag_reset(machine, ":card"); state->m_locked = 0x1ff; ide_set_gnet_readlock (machine.device(":card"), 1); } break; default: break; } }
static MACHINE_RESET( palmz22 ) { palmz22_state *state = machine.driver_data<palmz22_state>(); devtag_reset( machine, "maincpu"); memset( state->m_port, 0, sizeof( state->m_port)); }
static MACHINE_RESET( hp49gp ) { // hp49gp_state *hp49gp = machine.driver_data<hp49gp_state>(); devtag_reset( machine, "maincpu"); }
static MACHINE_RESET( juicebox ) { devtag_reset( machine, "maincpu"); smc_reset( machine); }
static MACHINE_RESET( gizmondo ) { devtag_reset( machine, "maincpu"); }