trunk/src/mame/audio/trackfld.c
r17562 | r17563 | |
13 | 13 | struct _trackfld_audio_state |
14 | 14 | { |
15 | 15 | /* sound-related */ |
16 | | int m_SN76496_latch; |
17 | 16 | int m_last_addr; |
18 | 17 | int m_last_irq; |
19 | 18 | |
r17562 | r17563 | |
46 | 45 | state->m_vlm = device->machine().device("vlm"); |
47 | 46 | |
48 | 47 | /* sound */ |
49 | | device->save_item(NAME(state->m_SN76496_latch)); |
50 | 48 | device->save_item(NAME(state->m_last_addr)); |
51 | 49 | device->save_item(NAME(state->m_last_irq)); |
52 | 50 | } |
r17562 | r17563 | |
55 | 53 | { |
56 | 54 | trackfld_audio_state *state = get_safe_token(device); |
57 | 55 | |
58 | | state->m_SN76496_latch = 0; |
59 | 56 | state->m_last_addr = 0; |
60 | 57 | state->m_last_irq = 0; |
61 | 58 | } |
r17562 | r17563 | |
158 | 155 | } |
159 | 156 | |
160 | 157 | |
161 | | WRITE8_HANDLER( konami_SN76496_latch_w ) |
162 | | { |
163 | | device_t *audio = space->machine().device("trackfld_audio"); |
164 | | trackfld_audio_state *state = get_safe_token(audio); |
165 | | state->m_SN76496_latch = data; |
166 | | } |
167 | 158 | |
168 | 159 | |
169 | | WRITE8_DEVICE_HANDLER( konami_SN76496_w ) |
170 | | { |
171 | | device_t *audio = device->machine().device("trackfld_audio"); |
172 | | trackfld_audio_state *state = get_safe_token(audio); |
173 | | sn76496_w(device, offset, state->m_SN76496_latch); |
174 | | } |
175 | | |
176 | 160 | /***************************************************************************** |
177 | 161 | DEVICE DEFINITION |
178 | 162 | *****************************************************************************/ |
trunk/src/mame/includes/yiear.h
r17562 | r17563 | |
| 1 | #include "sound/sn76496.h" |
| 2 | |
1 | 3 | class yiear_state : public driver_device |
2 | 4 | { |
3 | 5 | public: |
r17562 | r17563 | |
5 | 7 | : driver_device(mconfig, type, tag) , |
6 | 8 | m_spriteram(*this, "spriteram"), |
7 | 9 | m_spriteram2(*this, "spriteram2"), |
8 | | m_videoram(*this, "videoram"){ } |
| 10 | m_videoram(*this, "videoram"), |
| 11 | m_sn(*this, "snsnd") |
| 12 | { } |
9 | 13 | |
10 | 14 | /* memory pointers */ |
11 | 15 | required_shared_ptr<UINT8> m_spriteram; |
12 | 16 | required_shared_ptr<UINT8> m_spriteram2; |
13 | 17 | required_shared_ptr<UINT8> m_videoram; |
| 18 | optional_device<sn76489a_new_device> m_sn; |
14 | 19 | |
15 | 20 | /* video-related */ |
16 | 21 | tilemap_t *m_bg_tilemap; |
r17562 | r17563 | |
21 | 26 | DECLARE_WRITE8_MEMBER(yiear_control_w); |
22 | 27 | DECLARE_READ8_MEMBER(yiear_speech_r); |
23 | 28 | DECLARE_WRITE8_MEMBER(yiear_VLM5030_control_w); |
| 29 | |
| 30 | UINT8 m_SN76496_latch; |
| 31 | DECLARE_WRITE8_MEMBER( konami_SN76496_latch_w ) { m_SN76496_latch = data; }; |
| 32 | DECLARE_WRITE8_MEMBER( konami_SN76496_w ) { m_sn->write(space, offset, m_SN76496_latch); }; |
24 | 33 | }; |
25 | 34 | |
26 | 35 | |
trunk/src/mame/includes/trackfld.h
r17562 | r17563 | |
4 | 4 | |
5 | 5 | ***************************************************************************/ |
6 | 6 | |
| 7 | #include "sound/sn76496.h" |
7 | 8 | |
8 | 9 | class trackfld_state : public driver_device |
9 | 10 | { |
r17562 | r17563 | |
15 | 16 | m_spriteram(*this, "spriteram"), |
16 | 17 | m_scroll2(*this, "scroll2"), |
17 | 18 | m_videoram(*this, "videoram"), |
18 | | m_colorram(*this, "colorram"){ } |
| 19 | m_colorram(*this, "colorram"), |
| 20 | m_sn(*this, "snsnd") |
| 21 | { } |
19 | 22 | |
20 | 23 | /* memory pointers */ |
21 | 24 | required_shared_ptr<UINT8> m_spriteram2; |
r17562 | r17563 | |
24 | 27 | required_shared_ptr<UINT8> m_scroll2; |
25 | 28 | required_shared_ptr<UINT8> m_videoram; |
26 | 29 | required_shared_ptr<UINT8> m_colorram; |
| 30 | optional_device<sn76496_new_device> m_sn; |
27 | 31 | |
28 | 32 | /* video-related */ |
29 | 33 | tilemap_t *m_bg_tilemap; |
r17562 | r17563 | |
51 | 55 | DECLARE_DRIVER_INIT(atlantol); |
52 | 56 | DECLARE_DRIVER_INIT(wizzquiz); |
53 | 57 | DECLARE_DRIVER_INIT(mastkin); |
| 58 | |
| 59 | UINT8 m_SN76496_latch; |
| 60 | DECLARE_WRITE8_MEMBER( konami_SN76496_latch_w ) { m_SN76496_latch = data; }; |
| 61 | DECLARE_WRITE8_MEMBER( konami_SN76496_w ) { m_sn->write(space, offset, m_SN76496_latch); }; |
54 | 62 | }; |
55 | 63 | |
56 | 64 | |
trunk/src/mame/includes/hyperspt.h
r17562 | r17563 | |
| 1 | |
| 2 | #include "sound/sn76496.h" |
| 3 | |
1 | 4 | class hyperspt_state : public driver_device |
2 | 5 | { |
3 | 6 | public: |
r17562 | r17563 | |
6 | 9 | m_spriteram(*this, "spriteram"), |
7 | 10 | m_scroll(*this, "scroll"), |
8 | 11 | m_videoram(*this, "videoram"), |
9 | | m_colorram(*this, "colorram"){ } |
| 12 | m_colorram(*this, "colorram"), |
| 13 | m_sn(*this, "snsnd") |
| 14 | { } |
10 | 15 | |
11 | 16 | /* memory pointers */ |
12 | 17 | required_shared_ptr<UINT8> m_spriteram; |
13 | 18 | required_shared_ptr<UINT8> m_scroll; |
14 | 19 | required_shared_ptr<UINT8> m_videoram; |
15 | 20 | required_shared_ptr<UINT8> m_colorram; |
| 21 | optional_device<sn76496_new_device> m_sn; |
16 | 22 | UINT8 * m_scroll2; |
17 | 23 | UINT8 * m_spriteram2; |
18 | 24 | |
r17562 | r17563 | |
27 | 33 | DECLARE_WRITE8_MEMBER(hyperspt_colorram_w); |
28 | 34 | DECLARE_WRITE8_MEMBER(hyperspt_flipscreen_w); |
29 | 35 | DECLARE_DRIVER_INIT(hyperspt); |
| 36 | |
| 37 | UINT8 m_SN76496_latch; |
| 38 | DECLARE_WRITE8_MEMBER( konami_SN76496_latch_w ) { m_SN76496_latch = data; }; |
| 39 | DECLARE_WRITE8_MEMBER( konami_SN76496_w ) { m_sn->write(space, offset, m_SN76496_latch); }; |
30 | 40 | }; |
31 | 41 | |
32 | 42 | /*----------- defined in video/hyperspt.c -----------*/ |
trunk/src/mame/includes/sbasketb.h
r17562 | r17563 | |
| 1 | |
| 2 | #include "sound/sn76496.h" |
| 3 | |
1 | 4 | class sbasketb_state : public driver_device |
2 | 5 | { |
3 | 6 | public: |
r17562 | r17563 | |
8 | 11 | m_spriteram(*this, "spriteram"), |
9 | 12 | m_palettebank(*this, "palettebank"), |
10 | 13 | m_spriteram_select(*this, "spriteramsel"), |
11 | | m_scroll(*this, "scroll"){ } |
| 14 | m_scroll(*this, "scroll"), |
| 15 | m_sn(*this, "snsnd") |
| 16 | { } |
12 | 17 | |
13 | 18 | /* memory pointers */ |
14 | 19 | required_shared_ptr<UINT8> m_colorram; |
r17562 | r17563 | |
17 | 22 | required_shared_ptr<UINT8> m_palettebank; |
18 | 23 | required_shared_ptr<UINT8> m_spriteram_select; |
19 | 24 | required_shared_ptr<UINT8> m_scroll; |
| 25 | optional_device<sn76489_new_device> m_sn; |
20 | 26 | |
21 | 27 | /* video-related */ |
22 | 28 | tilemap_t *m_bg_tilemap; |
r17562 | r17563 | |
29 | 35 | DECLARE_WRITE8_MEMBER(sbasketb_colorram_w); |
30 | 36 | DECLARE_WRITE8_MEMBER(sbasketb_flipscreen_w); |
31 | 37 | DECLARE_DRIVER_INIT(sbasketb); |
| 38 | |
| 39 | UINT8 m_SN76496_latch; |
| 40 | DECLARE_WRITE8_MEMBER( konami_SN76496_latch_w ) { m_SN76496_latch = data; }; |
| 41 | DECLARE_WRITE8_MEMBER( konami_SN76496_w ) { m_sn->write(space, offset, m_SN76496_latch); }; |
32 | 42 | }; |
33 | 43 | |
34 | 44 | /*----------- defined in video/sbasketb.c -----------*/ |
trunk/src/mame/drivers/yiear.c
r17562 | r17563 | |
103 | 103 | #include "includes/yiear.h" |
104 | 104 | |
105 | 105 | |
| 106 | |
106 | 107 | READ8_MEMBER(yiear_state::yiear_speech_r) |
107 | 108 | { |
108 | 109 | device_t *device = machine().device("vlm"); |
r17562 | r17563 | |
141 | 142 | static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8, yiear_state ) |
142 | 143 | AM_RANGE(0x0000, 0x0000) AM_READ(yiear_speech_r) |
143 | 144 | AM_RANGE(0x4000, 0x4000) AM_WRITE(yiear_control_w) |
144 | | AM_RANGE(0x4800, 0x4800) AM_WRITE_LEGACY(konami_SN76496_latch_w) |
145 | | AM_RANGE(0x4900, 0x4900) AM_DEVWRITE_LEGACY("snsnd", konami_SN76496_w) |
| 145 | AM_RANGE(0x4800, 0x4800) AM_WRITE(konami_SN76496_latch_w) |
| 146 | AM_RANGE(0x4900, 0x4900) AM_WRITE(konami_SN76496_w) |
146 | 147 | AM_RANGE(0x4a00, 0x4a00) AM_WRITE(yiear_VLM5030_control_w) |
147 | 148 | AM_RANGE(0x4b00, 0x4b00) AM_DEVWRITE_LEGACY("vlm", vlm5030_data_w) |
148 | 149 | AM_RANGE(0x4c00, 0x4c00) AM_READ_PORT("DSW2") |
r17562 | r17563 | |
276 | 277 | state->m_yiear_nmi_enable = 0; |
277 | 278 | } |
278 | 279 | |
| 280 | //------------------------------------------------- |
| 281 | // sn76496_config psg_intf |
| 282 | //------------------------------------------------- |
| 283 | |
| 284 | static const sn76496_config psg_intf = |
| 285 | { |
| 286 | DEVCB_NULL |
| 287 | }; |
| 288 | |
279 | 289 | static MACHINE_CONFIG_START( yiear, yiear_state ) |
280 | 290 | |
281 | 291 | /* basic machine hardware */ |
r17562 | r17563 | |
306 | 316 | |
307 | 317 | MCFG_SOUND_ADD("trackfld_audio", TRACKFLD_AUDIO, 0) |
308 | 318 | |
309 | | MCFG_SOUND_ADD("snsnd", SN76489A, XTAL_18_432MHz/12) /* verified on pcb */ |
| 319 | MCFG_SOUND_ADD("snsnd", SN76489A_NEW, XTAL_18_432MHz/12) /* verified on pcb */ |
310 | 320 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 321 | MCFG_SOUND_CONFIG(psg_intf) |
311 | 322 | |
312 | 323 | MCFG_SOUND_ADD("vlm", VLM5030, XTAL_3_579545MHz) /* verified on pcb */ |
313 | 324 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
trunk/src/mame/drivers/hyperspt.c
r17562 | r17563 | |
82 | 82 | AM_RANGE(0xa000, 0xa000) AM_DEVWRITE_LEGACY("vlm", vlm5030_data_w) /* speech data */ |
83 | 83 | AM_RANGE(0xc000, 0xdfff) AM_DEVWRITE_LEGACY("vlm", hyperspt_sound_w) /* speech and output control */ |
84 | 84 | AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("dac", dac_device, write_unsigned8) |
85 | | AM_RANGE(0xe001, 0xe001) AM_WRITE_LEGACY(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */ |
86 | | AM_RANGE(0xe002, 0xe002) AM_DEVWRITE_LEGACY("snsnd", konami_SN76496_w) /* This address triggers the SN chip to read the data port. */ |
| 85 | AM_RANGE(0xe001, 0xe001) AM_WRITE(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */ |
| 86 | AM_RANGE(0xe002, 0xe002) AM_WRITE(konami_SN76496_w) /* This address triggers the SN chip to read the data port. */ |
87 | 87 | ADDRESS_MAP_END |
88 | 88 | |
89 | 89 | static ADDRESS_MAP_START( soundb_map, AS_PROGRAM, 8, hyperspt_state ) |
r17562 | r17563 | |
94 | 94 | AM_RANGE(0xa000, 0xa000) AM_NOP |
95 | 95 | AM_RANGE(0xc000, 0xdfff) AM_DEVWRITE_LEGACY("hyprolyb_adpcm", hyprolyb_adpcm_w) /* speech and output control */ |
96 | 96 | AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("dac", dac_device, write_unsigned8) |
97 | | AM_RANGE(0xe001, 0xe001) AM_WRITE_LEGACY(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */ |
98 | | AM_RANGE(0xe002, 0xe002) AM_DEVWRITE_LEGACY("snsnd", konami_SN76496_w) /* This address triggers the SN chip to read the data port. */ |
| 97 | AM_RANGE(0xe001, 0xe001) AM_WRITE(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */ |
| 98 | AM_RANGE(0xe002, 0xe002) AM_WRITE(konami_SN76496_w) /* This address triggers the SN chip to read the data port. */ |
99 | 99 | ADDRESS_MAP_END |
100 | 100 | |
101 | 101 | static INPUT_PORTS_START( hyperspt ) |
r17562 | r17563 | |
280 | 280 | device_set_input_line(device, 0, HOLD_LINE); |
281 | 281 | } |
282 | 282 | |
| 283 | //------------------------------------------------- |
| 284 | // sn76496_config psg_intf |
| 285 | //------------------------------------------------- |
283 | 286 | |
| 287 | static const sn76496_config psg_intf = |
| 288 | { |
| 289 | DEVCB_NULL |
| 290 | }; |
| 291 | |
284 | 292 | static MACHINE_CONFIG_START( hyperspt, hyperspt_state ) |
285 | 293 | |
286 | 294 | /* basic machine hardware */ |
r17562 | r17563 | |
315 | 323 | MCFG_DAC_ADD("dac") |
316 | 324 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
317 | 325 | |
318 | | MCFG_SOUND_ADD("snsnd", SN76496, XTAL_14_31818MHz/8) /* verified on pcb */ |
| 326 | MCFG_SOUND_ADD("snsnd", SN76496_NEW, XTAL_14_31818MHz/8) /* verified on pcb */ |
319 | 327 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 328 | MCFG_SOUND_CONFIG(psg_intf) |
320 | 329 | |
321 | 330 | MCFG_SOUND_ADD("vlm", VLM5030, XTAL_3_579545MHz) /* verified on pcb */ |
322 | 331 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
trunk/src/mame/drivers/sbasketb.c
r17562 | r17563 | |
99 | 99 | AM_RANGE(0xa000, 0xa000) AM_DEVWRITE_LEGACY("vlm", vlm5030_data_w) /* speech data */ |
100 | 100 | AM_RANGE(0xc000, 0xdfff) AM_DEVWRITE_LEGACY("vlm", hyperspt_sound_w) /* speech and output controll */ |
101 | 101 | AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("dac", dac_device, write_unsigned8) |
102 | | AM_RANGE(0xe001, 0xe001) AM_WRITE_LEGACY(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */ |
103 | | AM_RANGE(0xe002, 0xe002) AM_DEVWRITE_LEGACY("snsnd", konami_SN76496_w) /* This address triggers the SN chip to read the data port. */ |
| 102 | AM_RANGE(0xe001, 0xe001) AM_WRITE(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */ |
| 103 | AM_RANGE(0xe002, 0xe002) AM_WRITE(konami_SN76496_w) /* This address triggers the SN chip to read the data port. */ |
104 | 104 | ADDRESS_MAP_END |
105 | 105 | |
106 | 106 | |
r17562 | r17563 | |
184 | 184 | device_set_input_line(device, 0, HOLD_LINE); |
185 | 185 | } |
186 | 186 | |
| 187 | //------------------------------------------------- |
| 188 | // sn76496_config psg_intf |
| 189 | //------------------------------------------------- |
| 190 | |
| 191 | static const sn76496_config psg_intf = |
| 192 | { |
| 193 | DEVCB_NULL |
| 194 | }; |
| 195 | |
| 196 | |
187 | 197 | static MACHINE_CONFIG_START( sbasketb, sbasketb_state ) |
188 | 198 | |
189 | 199 | /* basic machine hardware */ |
r17562 | r17563 | |
216 | 226 | MCFG_DAC_ADD("dac") |
217 | 227 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
218 | 228 | |
219 | | MCFG_SOUND_ADD("snsnd", SN76489, XTAL_14_31818MHz / 8) |
| 229 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, XTAL_14_31818MHz / 8) |
220 | 230 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 231 | MCFG_SOUND_CONFIG(psg_intf) |
221 | 232 | |
222 | 233 | MCFG_SOUND_ADD("vlm", VLM5030, XTAL_3_579545MHz) /* Schematics say 3.58MHz, but board uses 3.579545MHz xtal */ |
223 | 234 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
trunk/src/mame/drivers/trackfld.c
r17562 | r17563 | |
275 | 275 | |
276 | 276 | |
277 | 277 | static ADDRESS_MAP_START( yieartf_map, AS_PROGRAM, 8, trackfld_state ) |
278 | | AM_RANGE(0x0000, 0x0000) AM_READ(trackfld_speech_r) AM_WRITE_LEGACY(konami_SN76496_latch_w) |
279 | | AM_RANGE(0x0001, 0x0001) AM_DEVWRITE_LEGACY("snsnd", konami_SN76496_w) |
| 278 | AM_RANGE(0x0000, 0x0000) AM_READ(trackfld_speech_r) AM_WRITE(konami_SN76496_latch_w) |
| 279 | AM_RANGE(0x0001, 0x0001) AM_WRITE(konami_SN76496_w) |
280 | 280 | AM_RANGE(0x0002, 0x0002) AM_WRITE(trackfld_VLM5030_control_w) |
281 | 281 | AM_RANGE(0x0003, 0x0003) AM_DEVWRITE_LEGACY("vlm", vlm5030_data_w) |
282 | 282 | AM_RANGE(0x1000, 0x1000) AM_MIRROR(0x007f) AM_WRITE(watchdog_reset_w) /* AFE */ |
r17562 | r17563 | |
398 | 398 | |
399 | 399 | READ8_MEMBER(trackfld_state::trackfld_SN76496_r) |
400 | 400 | { |
401 | | device_t *device = machine().device("snsnd"); |
402 | | konami_SN76496_w(device, 0, 0); |
| 401 | konami_SN76496_w(space, 0, 0); |
403 | 402 | return 0xff; // ? |
404 | 403 | } |
405 | 404 | |
r17562 | r17563 | |
408 | 407 | AM_RANGE(0x4000, 0x43ff) AM_MIRROR(0x1c00) AM_RAM |
409 | 408 | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x1fff) AM_READ(soundlatch_byte_r) |
410 | 409 | AM_RANGE(0x8000, 0x8000) AM_MIRROR(0x1fff) AM_READ_LEGACY(trackfld_sh_timer_r) |
411 | | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x1fff) AM_WRITE_LEGACY(konami_SN76496_latch_w) |
412 | | AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x1fff) AM_READ(trackfld_SN76496_r) AM_DEVWRITE_LEGACY("snsnd",konami_SN76496_w) |
| 410 | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x1fff) AM_WRITE(konami_SN76496_latch_w) |
| 411 | AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x1fff) AM_READ(trackfld_SN76496_r) AM_WRITE(konami_SN76496_w) |
413 | 412 | AM_RANGE(0xe000, 0xe000) AM_MIRROR(0x1ff8) AM_DEVWRITE("dac", dac_device, write_unsigned8) |
414 | 413 | AM_RANGE(0xe001, 0xe001) AM_MIRROR(0x1ff8) AM_NOP /* watch dog ?; reaktor reads here */ |
415 | 414 | AM_RANGE(0xe002, 0xe002) AM_MIRROR(0x1ff8) AM_DEVREAD_LEGACY("vlm", trackfld_speech_r) |
r17562 | r17563 | |
422 | 421 | AM_RANGE(0x4000, 0x43ff) AM_MIRROR(0x1c00) AM_RAM |
423 | 422 | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x1fff) AM_READ(soundlatch_byte_r) |
424 | 423 | AM_RANGE(0x8000, 0x8000) AM_MIRROR(0x1fff) AM_READ_LEGACY(trackfld_sh_timer_r) |
425 | | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x1fff) AM_WRITE_LEGACY(konami_SN76496_latch_w) |
426 | | AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x1fff) AM_READ(trackfld_SN76496_r) AM_DEVWRITE_LEGACY("snsnd",konami_SN76496_w) |
| 424 | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x1fff) AM_WRITE(konami_SN76496_latch_w) |
| 425 | AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x1fff) AM_READ(trackfld_SN76496_r) AM_WRITE(konami_SN76496_w) |
427 | 426 | AM_RANGE(0xe000, 0xe000) AM_MIRROR(0x1ff8) AM_DEVWRITE("dac", dac_device, write_unsigned8) |
428 | 427 | AM_RANGE(0xe001, 0xe001) AM_MIRROR(0x1ff8) AM_NOP /* watch dog ?; reaktor reads here */ |
429 | 428 | AM_RANGE(0xe002, 0xe002) AM_MIRROR(0x1ff8) AM_DEVREAD_LEGACY("hyprolyb_adpcm", hyprolyb_adpcm_busy_r) |
r17562 | r17563 | |
902 | 901 | device_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE); |
903 | 902 | } |
904 | 903 | |
| 904 | //------------------------------------------------- |
| 905 | // sn76496_config psg_intf |
| 906 | //------------------------------------------------- |
905 | 907 | |
| 908 | static const sn76496_config psg_intf = |
| 909 | { |
| 910 | DEVCB_NULL |
| 911 | }; |
| 912 | |
906 | 913 | static MACHINE_CONFIG_START( trackfld, trackfld_state ) |
907 | 914 | |
908 | 915 | /* basic machine hardware */ |
r17562 | r17563 | |
939 | 946 | MCFG_DAC_ADD("dac") |
940 | 947 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
941 | 948 | |
942 | | MCFG_SOUND_ADD("snsnd", SN76496, SOUND_CLOCK/8) |
| 949 | MCFG_SOUND_ADD("snsnd", SN76496_NEW, SOUND_CLOCK/8) |
943 | 950 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 951 | MCFG_SOUND_CONFIG(psg_intf) |
944 | 952 | |
945 | 953 | MCFG_SOUND_ADD("vlm", VLM5030, VLM_CLOCK) |
946 | 954 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
r17562 | r17563 | |
993 | 1001 | MCFG_DAC_ADD("dac") |
994 | 1002 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
995 | 1003 | |
996 | | MCFG_SOUND_ADD("snsnd", SN76496, MASTER_CLOCK/6/2) |
| 1004 | MCFG_SOUND_ADD("snsnd", SN76496_NEW, MASTER_CLOCK/6/2) |
997 | 1005 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1006 | MCFG_SOUND_CONFIG(psg_intf) |
998 | 1007 | |
999 | 1008 | MCFG_SOUND_ADD("vlm", VLM5030, VLM_CLOCK) |
1000 | 1009 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |