summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/yunsun16.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/yunsun16.c')
-rw-r--r--src/mame/drivers/yunsun16.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/drivers/yunsun16.c b/src/mame/drivers/yunsun16.c
index ff7a4af4d6a..377242472ec 100644
--- a/src/mame/drivers/yunsun16.c
+++ b/src/mame/drivers/yunsun16.c
@@ -140,7 +140,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0x800114, 0x800117) AM_RAM AM_BASE(&yunsun16_scroll_0 ) // Scrolling
AM_RANGE(0x800154, 0x800155) AM_RAM AM_BASE(&yunsun16_priority ) // Priority
AM_RANGE(0x800180, 0x800181) AM_WRITE(yunsun16_sound_bank_w ) // Sound
- AM_RANGE(0x800188, 0x800189) AM_READWRITE(okim6295_status_0_lsb_r, okim6295_data_0_lsb_w ) // Sound
+ AM_RANGE(0x800188, 0x800189) AM_DEVREADWRITE8(SOUND, "oki", okim6295_r, okim6295_w, 0x00ff ) // Sound
AM_RANGE(0x8001fe, 0x8001ff) AM_WRITE(SMH_NOP ) // ? 0 (during int)
AM_RANGE(0x900000, 0x903fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) // Palette
AM_RANGE(0x908000, 0x90bfff) AM_RAM_WRITE(yunsun16_vram_1_w) AM_BASE(&yunsun16_vram_1 ) // Layer 1
@@ -187,10 +187,9 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( sound_port_map, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x10, 0x10) AM_READWRITE(ym3812_status_port_0_r, ym3812_control_port_0_w ) // YM3812
- AM_RANGE(0x11, 0x11) AM_WRITE(ym3812_write_port_0_w )
+ AM_RANGE(0x10, 0x11) AM_DEVREADWRITE(SOUND, "ym", ym3812_r, ym3812_w )
AM_RANGE(0x18, 0x18) AM_READ(soundlatch_r ) // From Main CPU
- AM_RANGE(0x1c, 0x1c) AM_READWRITE(okim6295_status_0_r, okim6295_data_0_w ) // M6295
+ AM_RANGE(0x1c, 0x1c) AM_DEVREADWRITE(SOUND, "oki", okim6295_r, okim6295_w ) // M6295
ADDRESS_MAP_END
@@ -572,9 +571,9 @@ GFXDECODE_END
Magic Bubble
***************************************************************************/
-static void soundirq(running_machine *machine, int state)
+static void soundirq(const device_config *device, int state)
{
- cpu_set_input_line(machine->cpu[1], 0, state);
+ cpu_set_input_line(device->machine->cpu[1], 0, state);
}
static const ym3812_interface magicbub_ym3812_intf =