mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
taotaido: Add MB3773 device (nw)
This commit is contained in:
parent
fd2a8a5546
commit
283c2c1239
@ -91,7 +91,9 @@ READ16_MEMBER(taotaido_state::pending_command_r)
|
|||||||
|
|
||||||
WRITE8_MEMBER(taotaido_state::unknown_output_w)
|
WRITE8_MEMBER(taotaido_state::unknown_output_w)
|
||||||
{
|
{
|
||||||
// Bits 7, 5, 4 used?
|
m_watchdog->write_line_ck(BIT(data, 7));
|
||||||
|
|
||||||
|
// Bits 5, 4 also used?
|
||||||
}
|
}
|
||||||
|
|
||||||
static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, taotaido_state )
|
static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, taotaido_state )
|
||||||
@ -366,6 +368,8 @@ static MACHINE_CONFIG_START( taotaido )
|
|||||||
MCFG_VS9209_IN_PORTA_CB(IOPORT("P3")) // used only by taotaida
|
MCFG_VS9209_IN_PORTA_CB(IOPORT("P3")) // used only by taotaida
|
||||||
MCFG_VS9209_IN_PORTB_CB(IOPORT("P4")) // used only by taotaida
|
MCFG_VS9209_IN_PORTB_CB(IOPORT("P4")) // used only by taotaida
|
||||||
|
|
||||||
|
MCFG_DEVICE_ADD("watchdog", MB3773, 0)
|
||||||
|
|
||||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", taotaido)
|
MCFG_GFXDECODE_ADD("gfxdecode", "palette", taotaido)
|
||||||
|
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
MCFG_SCREEN_ADD("screen", RASTER)
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "video/vsystem_spr.h"
|
#include "video/vsystem_spr.h"
|
||||||
#include "machine/gen_latch.h"
|
#include "machine/gen_latch.h"
|
||||||
|
#include "machine/mb3773.h"
|
||||||
|
|
||||||
class taotaido_state : public driver_device
|
class taotaido_state : public driver_device
|
||||||
{
|
{
|
||||||
@ -16,6 +17,7 @@ public:
|
|||||||
m_gfxdecode(*this, "gfxdecode"),
|
m_gfxdecode(*this, "gfxdecode"),
|
||||||
m_spr(*this, "vsystem_spr"),
|
m_spr(*this, "vsystem_spr"),
|
||||||
m_soundlatch(*this, "soundlatch"),
|
m_soundlatch(*this, "soundlatch"),
|
||||||
|
m_watchdog(*this, "watchdog"),
|
||||||
m_spriteram(*this, "spriteram"),
|
m_spriteram(*this, "spriteram"),
|
||||||
m_spriteram2(*this, "spriteram2"),
|
m_spriteram2(*this, "spriteram2"),
|
||||||
m_scrollram(*this, "scrollram"),
|
m_scrollram(*this, "scrollram"),
|
||||||
@ -26,6 +28,7 @@ public:
|
|||||||
required_device<gfxdecode_device> m_gfxdecode;
|
required_device<gfxdecode_device> m_gfxdecode;
|
||||||
required_device<vsystem_spr_device> m_spr;
|
required_device<vsystem_spr_device> m_spr;
|
||||||
required_device<generic_latch_8_device> m_soundlatch;
|
required_device<generic_latch_8_device> m_soundlatch;
|
||||||
|
required_device<mb3773_device> m_watchdog;
|
||||||
|
|
||||||
required_shared_ptr<uint16_t> m_spriteram;
|
required_shared_ptr<uint16_t> m_spriteram;
|
||||||
required_shared_ptr<uint16_t> m_spriteram2;
|
required_shared_ptr<uint16_t> m_spriteram2;
|
||||||
|
Loading…
Reference in New Issue
Block a user