diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-06-22 14:20:59 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2017-06-22 14:20:59 -0400 |
commit | e249cdb98e470a7b670a1686c47cdddf6a882731 (patch) | |
tree | 1002bf310a06f51e35289ce6b6bf2616a7660afb | |
parent | 9a846ec5563cc6cafb7e320fd3a6e8f1656579db (diff) |
aerfboot: Soundlatch modernization (nw)
-rw-r--r-- | src/mame/drivers/aerofgt.cpp | 10 | ||||
-rw-r--r-- | src/mame/includes/aerofgt.h | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/mame/drivers/aerofgt.cpp b/src/mame/drivers/aerofgt.cpp index db0c4ba5078..65d4991ca1c 100644 --- a/src/mame/drivers/aerofgt.cpp +++ b/src/mame/drivers/aerofgt.cpp @@ -74,7 +74,7 @@ Verification still needed for the other PCBs. #include "speaker.h" -WRITE8_MEMBER(aerofgt_state::aerfboot_soundlatch_w) +WRITE8_MEMBER(aerofgt_state::karatblzbl_soundlatch_w) { m_soundlatch->write(space, 0, data); m_audiocpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE); @@ -233,7 +233,7 @@ static ADDRESS_MAP_START( karatblzbl_map, AS_PROGRAM, 16, aerofgt_state ) AM_RANGE(0x0ff000, 0x0ff001) AM_READ_PORT("IN0") AM_WRITE8(spinlbrk_flip_screen_w, 0xff00) AM_RANGE(0x0ff002, 0x0ff003) AM_READ_PORT("IN1") AM_WRITE8(karatblz_gfxbank_w, 0xff00) AM_RANGE(0x0ff004, 0x0ff005) AM_READ_PORT("IN2") - AM_RANGE(0x0ff006, 0x0ff007) AM_READ_PORT("IN3") AM_WRITE8(aerfboot_soundlatch_w, 0x00ff) + AM_RANGE(0x0ff006, 0x0ff007) AM_READ_PORT("IN3") AM_WRITE8(karatblzbl_soundlatch_w, 0x00ff) AM_RANGE(0x0ff008, 0x0ff009) AM_READ_PORT("DSW") AM_WRITE(aerofgt_bg1scrollx_w) AM_RANGE(0x0ff00a, 0x0ff00b) AM_READ8(pending_command_r, 0x00ff) AM_WRITE(aerofgt_bg1scrolly_w) AM_RANGE(0x0ff00c, 0x0ff00d) AM_WRITE(aerofgt_bg2scrollx_w) @@ -339,9 +339,9 @@ static ADDRESS_MAP_START( aerfboot_map, AS_PROGRAM, 16, aerofgt_state ) AM_RANGE(0x0fe004, 0x0fe005) AM_WRITE(aerofgt_bg2scrollx_w) AM_RANGE(0x0fe006, 0x0fe007) AM_WRITE(aerofgt_bg2scrolly_w) AM_RANGE(0x0fe008, 0x0fe00b) AM_WRITE(turbofrc_gfxbank_w) - AM_RANGE(0x0fe00e, 0x0fe00f) AM_WRITE8(aerfboot_soundlatch_w, 0xff00) + AM_RANGE(0x0fe00e, 0x0fe00f) AM_DEVWRITE8("soundlatch", generic_latch_8_device, write, 0xff00) AM_RANGE(0x0fe010, 0x0fe011) AM_WRITENOP - AM_RANGE(0x0fe012, 0x0fe013) AM_WRITENOP + AM_RANGE(0x0fe012, 0x0fe013) AM_WRITENOP // MSB = watchdog? AM_RANGE(0x0fe400, 0x0fe403) AM_DEVWRITE8("gga", vsystem_gga_device, write, 0x00ff) AM_RANGE(0x0ff000, 0x0fffff) AM_RAM AM_SHARE("rasterram") /* used only for the scroll registers */ AM_RANGE(0x100000, 0x107fff) AM_WRITENOP @@ -1902,6 +1902,8 @@ static MACHINE_CONFIG_START( aerfboot ) MCFG_SPEAKER_STANDARD_MONO("mono") MCFG_GENERIC_LATCH_8_ADD("soundlatch") + MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) + MCFG_GENERIC_LATCH_SEPARATE_ACKNOWLEDGE(false) MCFG_OKIM6295_ADD("oki", 1056000, PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_DEVICE_ADDRESS_MAP(AS_0, oki_map) diff --git a/src/mame/includes/aerofgt.h b/src/mame/includes/aerofgt.h index a149ee20d9c..577a6248226 100644 --- a/src/mame/includes/aerofgt.h +++ b/src/mame/includes/aerofgt.h @@ -79,7 +79,7 @@ public: uint32_t aerofgt_ol2_tile_callback( uint32_t code ); /* handlers */ - DECLARE_WRITE8_MEMBER(aerfboot_soundlatch_w); + DECLARE_WRITE8_MEMBER(karatblzbl_soundlatch_w); DECLARE_READ8_MEMBER(pending_command_r); DECLARE_WRITE8_MEMBER(aerofgt_sh_bankswitch_w); DECLARE_WRITE8_MEMBER(spinlbrk_sh_bankswitch_w); |