From 8bcd87fe9ba1f265820152aa11669b78e5c8afae Mon Sep 17 00:00:00 2001 From: hap Date: Mon, 2 Nov 2015 18:11:02 +0100 Subject: [PATCH] credit tag --- src/mame/drivers/champbas.c | 8 +++++--- src/mame/includes/champbas.h | 34 ++++++++++++++++++++-------------- src/mame/video/champbas.c | 2 +- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/src/mame/drivers/champbas.c b/src/mame/drivers/champbas.c index 67b44f4cb62..082c599bd14 100644 --- a/src/mame/drivers/champbas.c +++ b/src/mame/drivers/champbas.c @@ -1,5 +1,5 @@ // license:BSD-3-Clause -// copyright-holders:Ernesto Corvi, Jarek Parchanski, Nicola Salmoria +// copyright-holders:Ernesto Corvi, Jarek Parchanski, Nicola Salmoria, hap /*************************************************************************** Talbot - (c) 1982 Alpha Denshi Co. @@ -8,8 +8,6 @@ Champion Base Ball Part-2 - (c) 1983 Alpha Denshi Co. Exciting Soccer - (c) 1983 Alpha Denshi Co. Exciting Soccer II - (c) 1984 Alpha Denshi Co. -driver by Ernesto Corvi, Jarek Parchanski, Nicola Salmoria - Note: the Champion Baseball II unofficial schematics show a 8302 instead of the 8201, however the MCU is used like a plain 8201, 830x extra instructions are not used. @@ -405,6 +403,7 @@ static INPUT_PORTS_START( exctsccr ) INPUT_PORTS_END + /************************************* * * Graphics definitions @@ -484,6 +483,7 @@ static GFXDECODE_START( exctsccr ) GFXDECODE_END + /************************************* * * Machine drivers @@ -1138,6 +1138,7 @@ ROM_START( exctscc2 ) ROM_END + /************************************* * * Driver initialization @@ -1188,6 +1189,7 @@ DRIVER_INIT_MEMBER(champbas_state,exctsccr) } + /************************************* * * Game driver(s) diff --git a/src/mame/includes/champbas.h b/src/mame/includes/champbas.h index c5e99e8b5c8..2a1a3fdb237 100644 --- a/src/mame/includes/champbas.h +++ b/src/mame/includes/champbas.h @@ -1,5 +1,5 @@ // license:BSD-3-Clause -// copyright-holders:Ernesto Corvi, Jarek Parchanski, Nicola Salmoria +// copyright-holders:Ernesto Corvi, Jarek Parchanski, Nicola Salmoria, hap /************************************************************************* Talbot - Champion Base Ball - Exciting Soccer @@ -42,37 +42,43 @@ public: required_shared_ptr m_spriteram; optional_shared_ptr m_spriteram2; - /* video-related */ + // internal state + UINT8 m_irq_mask; tilemap_t *m_bg_tilemap; UINT8 m_gfx_bank; UINT8 m_palette_bank; - /* misc */ - UINT8 m_irq_mask; - + // handlers DECLARE_WRITE8_MEMBER(irq_enable_w); DECLARE_WRITE8_MEMBER(mcu_switch_w); DECLARE_WRITE8_MEMBER(mcu_start_w); DECLARE_READ8_MEMBER(champbja_protection_r); + + DECLARE_CUSTOM_INPUT_MEMBER(watchdog_bit2); + + INTERRUPT_GEN_MEMBER(vblank_irq); + TIMER_DEVICE_CALLBACK_MEMBER(exctsccr_sound_irq); + + DECLARE_WRITE8_MEMBER(dac1_w); + DECLARE_WRITE8_MEMBER(dac2_w); + DECLARE_WRITE8_MEMBER(tilemap_w); DECLARE_WRITE8_MEMBER(gfxbank_w); DECLARE_WRITE8_MEMBER(palette_bank_w); DECLARE_WRITE8_MEMBER(flipscreen_w); - DECLARE_CUSTOM_INPUT_MEMBER(watchdog_bit2); - DECLARE_WRITE8_MEMBER(dac1_w); - DECLARE_WRITE8_MEMBER(dac2_w); + DECLARE_DRIVER_INIT(exctsccr); DECLARE_DRIVER_INIT(champbas); + + DECLARE_PALETTE_INIT(champbas); + DECLARE_PALETTE_INIT(exctsccr); + DECLARE_VIDEO_START(champbas); + DECLARE_VIDEO_START(exctsccr); TILE_GET_INFO_MEMBER(champbas_get_bg_tile_info); TILE_GET_INFO_MEMBER(exctsccr_get_bg_tile_info); - DECLARE_VIDEO_START(champbas); - DECLARE_PALETTE_INIT(champbas); - DECLARE_VIDEO_START(exctsccr); - DECLARE_PALETTE_INIT(exctsccr); + UINT32 screen_update_champbas(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); UINT32 screen_update_exctsccr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - INTERRUPT_GEN_MEMBER(vblank_irq); - TIMER_DEVICE_CALLBACK_MEMBER(exctsccr_sound_irq); void champbas_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void exctsccr_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/video/champbas.c b/src/mame/video/champbas.c index 91b5b27286d..1b23dd3ba1e 100644 --- a/src/mame/video/champbas.c +++ b/src/mame/video/champbas.c @@ -1,5 +1,5 @@ // license:BSD-3-Clause -// copyright-holders:Ernesto Corvi, Jarek Parchanski, Nicola Salmoria +// copyright-holders:Ernesto Corvi, Jarek Parchanski, Nicola Salmoria, hap /************************************************************************* Talbot - Champion Base Ball - Exciting Soccer