summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cop01.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cop01.c')
-rw-r--r--src/mame/drivers/cop01.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mame/drivers/cop01.c b/src/mame/drivers/cop01.c
index 406a855609c..e2cf2d9233e 100644
--- a/src/mame/drivers/cop01.c
+++ b/src/mame/drivers/cop01.c
@@ -52,7 +52,7 @@ Mighty Guy board layout:
#include "driver.h"
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
-#include "sound/3812intf.h"
+#include "sound/3526intf.h"
#define MIGHTGUY_HACK 0
@@ -152,12 +152,9 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( audio_io_map, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x00) AM_WRITE(ay8910_control_port_0_w)
- AM_RANGE(0x01, 0x01) AM_WRITE(ay8910_write_port_0_w)
- AM_RANGE(0x02, 0x02) AM_WRITE(ay8910_control_port_1_w)
- AM_RANGE(0x03, 0x03) AM_WRITE(ay8910_write_port_1_w)
- AM_RANGE(0x04, 0x04) AM_WRITE(ay8910_control_port_2_w)
- AM_RANGE(0x05, 0x05) AM_WRITE(ay8910_write_port_2_w)
+ AM_RANGE(0x00, 0x01) AM_DEVWRITE(SOUND, "ay1", ay8910_address_data_w)
+ AM_RANGE(0x02, 0x03) AM_DEVWRITE(SOUND, "ay2", ay8910_address_data_w)
+ AM_RANGE(0x04, 0x05) AM_DEVWRITE(SOUND, "ay3", ay8910_address_data_w)
AM_RANGE(0x06, 0x06) AM_READ(cop01_sound_command_r)
ADDRESS_MAP_END
@@ -167,8 +164,7 @@ static READ8_HANDLER( kludge ) { static int timer; return timer++; }
static ADDRESS_MAP_START( mightguy_audio_io_map, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x00) AM_WRITE(ym3526_control_port_0_w)
- AM_RANGE(0x01, 0x01) AM_WRITE(ym3526_write_port_0_w)
+ AM_RANGE(0x00, 0x01) AM_DEVWRITE(SOUND, "ym", ym3526_w)
AM_RANGE(0x02, 0x02) AM_WRITE(SMH_NOP) /* 1412M2? */
AM_RANGE(0x03, 0x03) AM_WRITE(SMH_NOP) /* 1412M2? */
AM_RANGE(0x03, 0x03) AM_READ(kludge) /* 1412M2? */