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

trunk/src/mame/audio/snes_snd.c
r17602r17603
13351335   device->save_pointer(NAME(spc700->ram), SNES_SPCRAM_SIZE);
13361336}
13371337
1338static DEVICE_RESET( snes_sound )
1338void spc700_reset(device_t *device)
13391339{
13401340   snes_sound_state *spc700 = get_safe_token(device);
13411341   int ii;
r17602r17603
13531353   dsp_reset(device);
13541354}
13551355
1356
1357static DEVICE_RESET( snes_sound )
1358{
1359   spc700_reset(device);
1360}
1361
13561362/*-------------------------------------------------
13571363 Device definition
13581364-------------------------------------------------*/
trunk/src/mame/audio/snes_snd.h
r17602r17603
3232
3333UINT8 *spc_get_ram(device_t *device);
3434void spc700_set_volume(device_t *device,int volume);
35void spc700_reset(device_t *device);
3536
3637#endif /* __SNES_SPC_H__ */
trunk/src/mame/drivers/nss.c
r17602r17603
560560   device_set_input_line(m_soundcpu, INPUT_LINE_HALT, (data & 2) ? CLEAR_LINE : ASSERT_LINE);
561561   device_set_input_line(m_maincpu, INPUT_LINE_RESET, (data & 1) ? CLEAR_LINE : ASSERT_LINE);
562562   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"));
565566}
566567
567568WRITE8_MEMBER(nss_state::port_02_w)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team