Previous | 199869 Revisions | Next |
r17603 Sunday 2nd September, 2012 at 23:11:12 UTC by Angelo Salese |
---|
Fixed NSS reset behaviour, now games shouldn't die anymore when the CPU halts |
[src/mame/audio] | snes_snd.c snes_snd.h |
[src/mame/drivers] | nss.c |
r17602 | r17603 | |
---|---|---|
1335 | 1335 | device->save_pointer(NAME(spc700->ram), SNES_SPCRAM_SIZE); |
1336 | 1336 | } |
1337 | 1337 | |
1338 | ||
1338 | vo | |
1339 | 1339 | { |
1340 | 1340 | snes_sound_state *spc700 = get_safe_token(device); |
1341 | 1341 | int ii; |
r17602 | r17603 | |
1353 | 1353 | dsp_reset(device); |
1354 | 1354 | } |
1355 | 1355 | |
1356 | ||
1357 | static DEVICE_RESET( snes_sound ) | |
1358 | { | |
1359 | spc700_reset(device); | |
1360 | } | |
1361 | ||
1356 | 1362 | /*------------------------------------------------- |
1357 | 1363 | Device definition |
1358 | 1364 | -------------------------------------------------*/ |
r17602 | r17603 | |
---|---|---|
32 | 32 | |
33 | 33 | UINT8 *spc_get_ram(device_t *device); |
34 | 34 | void spc700_set_volume(device_t *device,int volume); |
35 | void spc700_reset(device_t *device); | |
35 | 36 | |
36 | 37 | #endif /* __SNES_SPC_H__ */ |
r17602 | r17603 | |
---|---|---|
560 | 560 | device_set_input_line(m_soundcpu, INPUT_LINE_HALT, (data & 2) ? CLEAR_LINE : ASSERT_LINE); |
561 | 561 | device_set_input_line(m_maincpu, INPUT_LINE_RESET, (data & 1) ? CLEAR_LINE : ASSERT_LINE); |
562 | 562 | device_set_input_line(m_soundcpu, INPUT_LINE_RESET, (data & 1) ? CLEAR_LINE : ASSERT_LINE); |
563 | ||
564 | // printf("%02x\n",data); | |
563 | /* also reset the device */ | |
564 | if((data & 1) == 0) | |
565 | spc700_reset(machine().device("spc700")); | |
565 | 566 | } |
566 | 567 | |
567 | 568 | WRITE8_MEMBER(nss_state::port_02_w) |
Previous | 199869 Revisions | Next |