diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2016-05-18 21:03:11 +0200 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2016-05-18 21:03:11 +0200 |
commit | 9f0cb86caa64fe09e4819379a6ddbabeca13ab09 (patch) | |
tree | 966b4bfa5b6339111e98f611d5def886bbc766c9 /src/mame/drivers/sfkick.cpp | |
parent | ce5dadc9f61e4a8de5c6f3bcedc17b554cf4ac85 (diff) |
updated a few few drivers to use gen_latch.cpp (nw)
Diffstat (limited to 'src/mame/drivers/sfkick.cpp')
-rw-r--r-- | src/mame/drivers/sfkick.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mame/drivers/sfkick.cpp b/src/mame/drivers/sfkick.cpp index 8866fcece35..d5df1f84698 100644 --- a/src/mame/drivers/sfkick.cpp +++ b/src/mame/drivers/sfkick.cpp @@ -6,7 +6,7 @@ driver by Tomasz Slanina Hacked MSX2 home computer hardware. Romset contains - modifed ( (c) strings removed and patched boot sequence) + modified ( (c) strings removed and patched boot sequence) MSX2 bios. Yamaha VDP v9938 is hidden in huge epoxy block. There's also an additional Z80 to drive sound. @@ -155,6 +155,7 @@ DIPSW-2 #include "emu.h" #include "cpu/z80/z80.h" #include "video/v9938.h" +#include "machine/gen_latch.h" #include "machine/i8255.h" #include "sound/2203intf.h" @@ -471,7 +472,7 @@ ADDRESS_MAP_END static ADDRESS_MAP_START( sfkick_io_map, AS_IO, 8, sfkick_state ) ADDRESS_MAP_UNMAP_HIGH ADDRESS_MAP_GLOBAL_MASK(0xff) - AM_RANGE( 0xa0, 0xa7) AM_WRITE(soundlatch_byte_w ) + AM_RANGE( 0xa0, 0xa7) AM_DEVWRITE("soundlatch", generic_latch_8_device, write) AM_RANGE( 0x98, 0x9b) AM_DEVREADWRITE( "v9938", v9938_device, read, write) AM_RANGE( 0xa8, 0xab) AM_DEVREADWRITE("ppi8255", i8255_device, read, write) AM_RANGE( 0xb4, 0xb5) AM_RAM /* loopback ? req by sfkicka (MSX Bios leftover)*/ @@ -484,7 +485,7 @@ ADDRESS_MAP_END static ADDRESS_MAP_START( sfkick_sound_io_map, AS_IO, 8, sfkick_state ) ADDRESS_MAP_GLOBAL_MASK(0xff) - AM_RANGE(0x00, 0x00) AM_READ(soundlatch_byte_r) + AM_RANGE(0x00, 0x00) AM_DEVREAD("soundlatch", generic_latch_8_device, read) AM_RANGE(0x04, 0x05) AM_DEVREADWRITE("ym1", ym2203_device, read, write) ADDRESS_MAP_END @@ -603,8 +604,12 @@ static MACHINE_CONFIG_START( sfkick, sfkick_state ) MCFG_I8255_OUT_PORTC_CB(WRITE8(sfkick_state, ppi_port_c_w)) MCFG_SPEAKER_STANDARD_MONO("mono") + + MCFG_GENERIC_LATCH_8_ADD("soundlatch") + MCFG_SOUND_ADD("ym1", YM2203, MASTER_CLOCK/6) MCFG_YM2203_IRQ_HANDLER(WRITELINE(sfkick_state, irqhandler)) + MCFG_SOUND_ROUTE(0, "mono", 0.25) MCFG_SOUND_ROUTE(1, "mono", 0.25) MCFG_SOUND_ROUTE(2, "mono", 0.25) |