From d76ff0ec4f11ec740b41de3a2b7d3ce17a6e3339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Thu, 17 Feb 2011 15:26:13 +0000 Subject: [PATCH] ASR==extended play, short beep --- src/mame/audio/firetrk.c | 8 +------- src/mame/drivers/firetrk.c | 4 +--- src/mame/includes/firetrk.h | 1 - 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/mame/audio/firetrk.c b/src/mame/audio/firetrk.c index 553fc5bfe4e..88807617976 100644 --- a/src/mame/audio/firetrk.c +++ b/src/mame/audio/firetrk.c @@ -58,17 +58,11 @@ WRITE8_DEVICE_HANDLER( superbug_motor_snd_w ) WRITE8_DEVICE_HANDLER( firetrk_xtndply_w ) { + // also SUPERBUG_ASR_EN (extended play) discrete_sound_w(device, FIRETRUCK_XTNDPLY_EN, data); } -WRITE8_DEVICE_HANDLER( superbug_asr_w ) -{ -popmessage("ASR"); - discrete_sound_w(device, SUPERBUG_ASR_EN, 1); /* ASR */ -} - - #define FIRETRUCK_HSYNC 15750.0 /* not checked */ #define FIRETRUCK_1V FIRETRUCK_HSYNC/2 #define FIRETRUCK_2V FIRETRUCK_1V/2 diff --git a/src/mame/drivers/firetrk.c b/src/mame/drivers/firetrk.c index 62c62674787..d1911b01847 100644 --- a/src/mame/drivers/firetrk.c +++ b/src/mame/drivers/firetrk.c @@ -51,8 +51,6 @@ static INPUT_CHANGED( gear_changed ) static INTERRUPT_GEN( firetrk_interrupt ) { firetrk_state *state = device->machine->driver_data(); - /* Super Bug - ASR - when is this used and what is an ASR? */ -// discrete_sound_w(device->machine->device("discrete"), SUPERBUG_ASR_EN, 0); /* NMI interrupts are disabled during service mode in firetrk and montecar */ if (!state->in_service_mode) @@ -370,7 +368,7 @@ static ADDRESS_MAP_START( superbug_map, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0x01c0, 0x01c0) AM_MIRROR(0x001f) AM_WRITE(watchdog_reset_w) AM_RANGE(0x01e0, 0x01e0) AM_MIRROR(0x001f) AM_WRITE(blink_on_w) AM_BASE_MEMBER(firetrk_state, blink) AM_RANGE(0x0200, 0x0207) AM_MIRROR(0x0018) AM_READ(firetrk_input_r) - AM_RANGE(0x0220, 0x0220) AM_MIRROR(0x001f) AM_DEVWRITE("discrete", superbug_asr_w) + AM_RANGE(0x0220, 0x0220) AM_MIRROR(0x001f) AM_DEVWRITE("discrete", firetrk_xtndply_w) AM_RANGE(0x0240, 0x0243) AM_MIRROR(0x001c) AM_READ(firetrk_dip_r) AM_RANGE(0x0260, 0x026f) AM_MIRROR(0x0010) AM_WRITE(superbug_output_w) AM_RANGE(0x0280, 0x0280) AM_MIRROR(0x001f) AM_DEVWRITE("discrete", superbug_motor_snd_w) diff --git a/src/mame/includes/firetrk.h b/src/mame/includes/firetrk.h index e38b71b91b0..8f919fb97f6 100644 --- a/src/mame/includes/firetrk.h +++ b/src/mame/includes/firetrk.h @@ -71,7 +71,6 @@ WRITE8_DEVICE_HANDLER( firetrk_skid_snd_w ); WRITE8_DEVICE_HANDLER( firetrk_motor_snd_w ); WRITE8_DEVICE_HANDLER( superbug_motor_snd_w ); WRITE8_DEVICE_HANDLER( firetrk_xtndply_w ); -WRITE8_DEVICE_HANDLER( superbug_asr_w ); DISCRETE_SOUND_EXTERN( firetrk ); DISCRETE_SOUND_EXTERN( superbug );