diff options
Diffstat (limited to 'src/mame/audio/segasnd.cpp')
-rw-r--r-- | src/mame/audio/segasnd.cpp | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/mame/audio/segasnd.cpp b/src/mame/audio/segasnd.cpp index 1671c23c25f..3d6549f7e4c 100644 --- a/src/mame/audio/segasnd.cpp +++ b/src/mame/audio/segasnd.cpp @@ -12,6 +12,8 @@ #include "segasnd.h" #include "sound/sp0250.h" +#include "includes/segag80r.h" +#include "includes/segag80v.h" #include <cmath> @@ -215,7 +217,26 @@ ADDRESS_MAP_END * *************************************/ -MACHINE_CONFIG_START( sega_speech_board ) +MACHINE_CONFIG_START(segag80r_state::sega_speech_board) + + /* CPU for the speech board */ + MCFG_CPU_ADD("audiocpu", I8035, SPEECH_MASTER_CLOCK) /* divide by 15 in CPU */ + MCFG_CPU_PROGRAM_MAP(speech_map) + MCFG_CPU_IO_MAP(speech_portmap) + MCFG_MCS48_PORT_P1_IN_CB(DEVREAD8("segaspeech", speech_sound_device, p1_r)) + MCFG_MCS48_PORT_P1_OUT_CB(DEVWRITE8("segaspeech", speech_sound_device, p1_w)) + MCFG_MCS48_PORT_P2_OUT_CB(DEVWRITE8("segaspeech", speech_sound_device, p2_w)) + MCFG_MCS48_PORT_T0_IN_CB(DEVREADLINE("segaspeech", speech_sound_device, t0_r)) + MCFG_MCS48_PORT_T1_IN_CB(DEVREADLINE("segaspeech", speech_sound_device, t1_r)) + + /* sound hardware */ + MCFG_SOUND_ADD("segaspeech", SEGASPEECH, 0) + MCFG_SOUND_ADD("speech", SP0250, SPEECH_MASTER_CLOCK) + MCFG_SP0250_DRQ_CALLBACK(DEVWRITELINE("segaspeech", speech_sound_device, drq_w)) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) +MACHINE_CONFIG_END + +MACHINE_CONFIG_START(segag80v_state::sega_speech_board) /* CPU for the speech board */ MCFG_CPU_ADD("audiocpu", I8035, SPEECH_MASTER_CLOCK) /* divide by 15 in CPU */ @@ -857,7 +878,7 @@ ADDRESS_MAP_END // device_add_mconfig - add device configuration //------------------------------------------------- -MACHINE_CONFIG_MEMBER( usb_sound_device::device_add_mconfig ) +MACHINE_CONFIG_START(usb_sound_device::device_add_mconfig) /* CPU for the usb board */ MCFG_CPU_ADD("ourcpu", I8035, USB_MASTER_CLOCK) /* divide by 15 in CPU */ @@ -883,7 +904,7 @@ static ADDRESS_MAP_START( usb_map_rom, AS_PROGRAM, 8, usb_sound_device ) AM_RANGE(0x0000, 0x0fff) AM_ROM AM_REGION(":usbcpu", 0) ADDRESS_MAP_END -MACHINE_CONFIG_MEMBER( usb_rom_sound_device::device_add_mconfig ) +MACHINE_CONFIG_START(usb_rom_sound_device::device_add_mconfig) usb_sound_device::device_add_mconfig(config); /* CPU for the usb board */ |