From b359f4ad2c942e8e2a62c5ea922ea8d4fa2d2f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Sat, 21 Jun 2014 15:36:01 +0000 Subject: [PATCH] nw --- src/mame/drivers/vulgus.c | 9 +++++---- src/mame/includes/vulgus.h | 24 +++++++++++++++++------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/mame/drivers/vulgus.c b/src/mame/drivers/vulgus.c index 9436061a50a..6b4b330fe7a 100644 --- a/src/mame/drivers/vulgus.c +++ b/src/mame/drivers/vulgus.c @@ -32,10 +32,10 @@ SOUND CPU 4000-47ff RAM write: -8000 YM2203 #1 control -8001 YM2203 #1 write -c000 YM2203 #2 control -c001 YM2203 #2 write +8000 AY-3-8910 #1 control +8001 AY-3-8910 #1 write +c000 AY-3-8910 #2 control +c001 AY-3-8910 #2 write All Clocks and Vsync verified by Corrado Tomaselli (August 2012) @@ -60,6 +60,7 @@ static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8, vulgus_state ) AM_RANGE(0xc003, 0xc003) AM_READ_PORT("DSW1") AM_RANGE(0xc004, 0xc004) AM_READ_PORT("DSW2") AM_RANGE(0xc800, 0xc800) AM_WRITE(soundlatch_byte_w) + AM_RANGE(0xc801, 0xc801) AM_WRITENOP // ? AM_RANGE(0xc802, 0xc803) AM_RAM AM_SHARE("scroll_low") AM_RANGE(0xc804, 0xc804) AM_WRITE(vulgus_c804_w) AM_RANGE(0xc805, 0xc805) AM_WRITE(vulgus_palette_bank_w) diff --git a/src/mame/includes/vulgus.h b/src/mame/includes/vulgus.h index 6f8f4947da8..05bdd367319 100644 --- a/src/mame/includes/vulgus.h +++ b/src/mame/includes/vulgus.h @@ -1,22 +1,35 @@ +/*************************************************************************** + + Capcom Vulgus hardware + +***************************************************************************/ + class vulgus_state : public driver_device { public: vulgus_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu"), + m_audiocpu(*this, "audiocpu"), + m_gfxdecode(*this, "gfxdecode"), + m_palette(*this, "palette"), m_scroll_low(*this, "scroll_low"), m_scroll_high(*this, "scroll_high"), m_spriteram(*this, "spriteram"), m_fgvideoram(*this, "fgvideoram"), - m_bgvideoram(*this, "bgvideoram"), - m_maincpu(*this, "maincpu"), - m_gfxdecode(*this, "gfxdecode"), - m_palette(*this, "palette") { } + m_bgvideoram(*this, "bgvideoram") + { } + required_device m_maincpu; + required_device m_audiocpu; + required_device m_gfxdecode; + required_device m_palette; required_shared_ptr m_scroll_low; required_shared_ptr m_scroll_high; required_shared_ptr m_spriteram; required_shared_ptr m_fgvideoram; required_shared_ptr m_bgvideoram; + int m_palette_bank; tilemap_t *m_fg_tilemap; tilemap_t *m_bg_tilemap; @@ -31,7 +44,4 @@ public: UINT32 screen_update_vulgus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(vulgus_vblank_irq); void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect); - required_device m_maincpu; - required_device m_gfxdecode; - required_device m_palette; };