src/mess/machine/exidy.c
| r6341 | r6342 | |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | 8 | #include "cpu/z80/z80.h" |
| 9 | | #include "sound/speaker.h" |
| 9 | #include "sound/dac.h" |
| 10 | 10 | #include "sound/wave.h" |
| 11 | 11 | #include "machine/ctronics.h" |
| 12 | 12 | #include "devices/cassette.h" |
| r6341 | r6342 | |
| 257 | 257 | WRITE8_HANDLER(exidy_ff_w) |
| 258 | 258 | { |
| 259 | 259 | const device_config *printer = devtag_get_device(space->machine, "centronics"); |
| 260 | | const device_config *speaker = devtag_get_device(space->machine, "speaker"); |
| 260 | const device_config *dac_device = devtag_get_device(space->machine, "dac"); |
| 261 | 261 | /* reading the config switch */ |
| 262 | 262 | switch (input_port_read(space->machine, "CONFIG") & 0x06) |
| 263 | 263 | { |
| 264 | 264 | case 0: /* speaker */ |
| 265 | | speaker_level_w(speaker, (data) ? 1 : 0); |
| 265 | dac_data_w(dac_device, data); |
| 266 | 266 | break; |
| 267 | 267 | |
| 268 | 268 | case 2: /* Centronics 7-bit printer */ |
src/mess/drivers/exidy.c
| r6341 | r6342 | |
| 138 | 138 | |
| 139 | 139 | #include "driver.h" |
| 140 | 140 | #include "cpu/z80/z80.h" |
| 141 | | #include "sound/speaker.h" |
| 141 | #include "sound/dac.h" |
| 142 | 142 | #include "sound/wave.h" |
| 143 | 143 | #include "machine/ctronics.h" |
| 144 | 144 | #include "machine/wd17xx.h" |
| r6341 | r6342 | |
| 378 | 378 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) // cass1 speaker |
| 379 | 379 | MDRV_SOUND_WAVE_ADD("wave.2", "cassette2") |
| 380 | 380 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) // cass2 speaker |
| 381 | | MDRV_SOUND_ADD("speaker", SPEAKER, 0) |
| 382 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) // speaker on parallel port |
| 381 | MDRV_SOUND_ADD("dac", DAC, 0) |
| 382 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) // speaker or music card on parallel port |
| 383 | 383 | |
| 384 | 384 | MDRV_AY31015_ADD( "ay_3_1015", exidy_ay31015_config ) |
| 385 | 385 | |