summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-06-16 23:38:04 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-06-16 23:38:04 -0400
commitfd2a8a5546129937315627058330efff8a91d4bc (patch)
treeed413611f6ec62cf2a8ad6d87e38a585b5e187b8
parent7cf819740b027876b251bb67da7498c41fdb9876 (diff)
aerofgt: Add MB3773 device (nw)
-rw-r--r--src/mame/drivers/aerofgt.cpp15
-rw-r--r--src/mame/includes/aerofgt.h1
2 files changed, 6 insertions, 10 deletions
diff --git a/src/mame/drivers/aerofgt.cpp b/src/mame/drivers/aerofgt.cpp
index 30c192df594..62eba6f302d 100644
--- a/src/mame/drivers/aerofgt.cpp
+++ b/src/mame/drivers/aerofgt.cpp
@@ -65,6 +65,7 @@ Verification still needed for the other PCBs.
#include "cpu/m68000/m68000.h"
#include "cpu/z80/z80.h"
+#include "machine/mb3773.h"
#include "machine/vs9209.h"
#include "sound/2610intf.h"
#include "sound/3812intf.h"
@@ -84,12 +85,6 @@ READ8_MEMBER(aerofgt_state::pending_command_r)
return m_soundlatch->pending_r();
}
-WRITE8_MEMBER(aerofgt_state::aerofgt_unknown_output_w)
-{
- if (data != 0)
- logerror("Writing %02X to unknown output port\n", data);
-}
-
WRITE8_MEMBER(aerofgt_state::aerofgt_sh_bankswitch_w)
{
m_soundbank->set_entry(data & 0x03);
@@ -312,7 +307,7 @@ static ADDRESS_MAP_START( aerofgt_map, AS_PROGRAM, 16, aerofgt_state )
AM_RANGE(0x000000, 0x07ffff) AM_ROM
AM_RANGE(0x1a0000, 0x1a07ff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette")
AM_RANGE(0x1b0000, 0x1b07ff) AM_RAM AM_SHARE("rasterram") /* used only for the scroll registers */
- AM_RANGE(0x1b0800, 0x1b0801) AM_NOP /* ??? */
+ AM_RANGE(0x1b0800, 0x1b0801) AM_RAM /* tracks watchdog state */
AM_RANGE(0x1b0ff0, 0x1b0fff) AM_RAM /* stack area during boot */
AM_RANGE(0x1b2000, 0x1b3fff) AM_RAM_WRITE(aerofgt_bg1videoram_w) AM_SHARE("bg1videoram")
AM_RANGE(0x1b4000, 0x1b5fff) AM_RAM_WRITE(aerofgt_bg2videoram_w) AM_SHARE("bg2videoram")
@@ -1830,10 +1825,12 @@ static MACHINE_CONFIG_START( aerofgt )
MCFG_VS9209_IN_PORTC_CB(IOPORT("SYSTEM"))
MCFG_VS9209_IN_PORTD_CB(IOPORT("DSW1"))
MCFG_VS9209_IN_PORTE_CB(IOPORT("DSW2"))
- MCFG_VS9209_IN_PORTG_CB(READ8(aerofgt_state, pending_command_r))
- MCFG_VS9209_OUT_PORTG_CB(WRITE8(aerofgt_state, aerofgt_unknown_output_w))
+ MCFG_VS9209_IN_PORTG_CB(DEVREADLINE("soundlatch", generic_latch_8_device, pending_r)) MCFG_DEVCB_BIT(0)
+ MCFG_VS9209_OUT_PORTG_CB(DEVWRITELINE("watchdog", mb3773_device, write_line_ck)) MCFG_DEVCB_BIT(7)
MCFG_VS9209_IN_PORTH_CB(IOPORT("JP1"))
+ MCFG_DEVICE_ADD("watchdog", MB3773, 0)
+
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(61.31) /* verified on pcb */
diff --git a/src/mame/includes/aerofgt.h b/src/mame/includes/aerofgt.h
index f05b304e65e..a149ee20d9c 100644
--- a/src/mame/includes/aerofgt.h
+++ b/src/mame/includes/aerofgt.h
@@ -81,7 +81,6 @@ public:
/* handlers */
DECLARE_WRITE8_MEMBER(aerfboot_soundlatch_w);
DECLARE_READ8_MEMBER(pending_command_r);
- DECLARE_WRITE8_MEMBER(aerofgt_unknown_output_w);
DECLARE_WRITE8_MEMBER(aerofgt_sh_bankswitch_w);
DECLARE_WRITE8_MEMBER(spinlbrk_sh_bankswitch_w);
DECLARE_WRITE8_MEMBER(aerfboot_okim6295_banking_w);