mirror of
https://github.com/holub/mame
synced 2025-06-26 22:29:10 +03:00
small cleanup before i have a tackle at those 7seg leds
This commit is contained in:
parent
7611b2728e
commit
9585dfe6bf
@ -5,10 +5,10 @@
|
||||
this was available in a number of cabinet types including 'Super Pin-Ball'
|
||||
which mimicked a Pinball table in design, complete with 7-seg scoreboard.
|
||||
|
||||
todo:
|
||||
decrypt Music Ball
|
||||
hookup 7-segs used by Super Pinball cabinet type
|
||||
verify clock speeds etc.
|
||||
TODO:
|
||||
- decrypt Music Ball
|
||||
- hookup 7-segs used by Super Pinball cabinet type
|
||||
- verify clock speeds etc.
|
||||
|
||||
|
||||
Speed Ball map
|
||||
@ -88,7 +88,7 @@ ADDRESS_MAP_END
|
||||
|
||||
WRITE8_MEMBER(speedbal_state::speedbal_maincpu_50_w)
|
||||
{
|
||||
logerror("%s: speedbal_maincpu_50_w %02x\n", this->machine().describe_context(), data);
|
||||
//logerror("%s: speedbal_maincpu_50_w %02x\n", this->machine().describe_context(), data);
|
||||
}
|
||||
|
||||
static ADDRESS_MAP_START( main_cpu_io_map, AS_IO, 8, speedbal_state )
|
||||
@ -103,9 +103,8 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( sound_cpu_map, AS_PROGRAM, 8, speedbal_state )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||
AM_RANGE(0xd000, 0xdbff) AM_RAM
|
||||
AM_RANGE(0xd000, 0xdbff) AM_RAM // ?
|
||||
AM_RANGE(0xdc00, 0xdfff) AM_RAM AM_SHARE("share1") // shared with MAIN CPU
|
||||
AM_RANGE(0xf000, 0xffff) AM_RAM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/* this is wrong.. needs more investigation / tracing of the code */
|
||||
@ -316,7 +315,6 @@ static MACHINE_CONFIG_START( speedbal, speedbal_state )
|
||||
MCFG_GFXDECODE(speedbal)
|
||||
MCFG_PALETTE_LENGTH(768)
|
||||
|
||||
|
||||
/* sound hardware */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
|
@ -3,21 +3,25 @@ class speedbal_state : public driver_device
|
||||
public:
|
||||
speedbal_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: driver_device(mconfig, type, tag),
|
||||
m_background_videoram(*this, "bg_videoram"),
|
||||
m_foreground_videoram(*this, "fg_videoram"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_spriteram(*this, "spriteram"),
|
||||
m_maincpu(*this, "maincpu")
|
||||
m_background_videoram(*this, "bg_videoram"),
|
||||
m_foreground_videoram(*this, "fg_videoram")
|
||||
{
|
||||
m_bitcount = 0;
|
||||
m_writeval = 0;
|
||||
}
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_shared_ptr<UINT8> m_spriteram;
|
||||
required_shared_ptr<UINT8> m_background_videoram;
|
||||
required_shared_ptr<UINT8> m_foreground_videoram;
|
||||
|
||||
int m_bitcount;
|
||||
UINT8 m_writeval;
|
||||
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
required_shared_ptr<UINT8> m_spriteram;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
||||
DECLARE_DRIVER_INIT(speedbal);
|
||||
DECLARE_DRIVER_INIT(musicbal);
|
||||
@ -33,14 +37,10 @@ public:
|
||||
DECLARE_WRITE8_MEMBER(speedbal_sndcpu_c1_w);
|
||||
|
||||
void write_data_bit(UINT8 bit);
|
||||
int m_bitcount;
|
||||
UINT8 m_writeval;
|
||||
|
||||
TILE_GET_INFO_MEMBER(get_tile_info_bg);
|
||||
TILE_GET_INFO_MEMBER(get_tile_info_fg);
|
||||
virtual void video_start();
|
||||
UINT32 screen_update_speedbal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
|
||||
};
|
||||
|
@ -22,110 +22,103 @@
|
||||
</screen>
|
||||
|
||||
<!-- no idea how many digits there really are, cabinet shows
|
||||
8 digits 'P1 score'
|
||||
7 digits 'P1 score'
|
||||
2 digit 'credits'
|
||||
1 digit 'ball'
|
||||
2 digits 'bonus'
|
||||
8 digits 'P2 score'
|
||||
7 digits 'P2 score'
|
||||
|
||||
but it could be the cabinet design obscures some
|
||||
http://pinballspain.comyr.com/proyecto1/image/superpinball.jpg
|
||||
|
||||
-->
|
||||
|
||||
<!-- 8 digits 'score 1' -->
|
||||
<!-- 7 digits 'score 1' -->
|
||||
|
||||
<bezel name="digit101" element="digit">
|
||||
<bezel name="digit0" element="digit">
|
||||
<bounds left="10" top="-010" right="20" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit102" element="digit">
|
||||
<bezel name="digit1" element="digit">
|
||||
<bounds left="20" top="-010" right="30" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit103" element="digit">
|
||||
<bezel name="digit2" element="digit">
|
||||
<bounds left="30" top="-010" right="40" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit104" element="digit">
|
||||
<bezel name="digit3" element="digit">
|
||||
<bounds left="40" top="-010" right="50" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit105" element="digit">
|
||||
<bezel name="digit4" element="digit">
|
||||
<bounds left="50" top="-010" right="60" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit106" element="digit">
|
||||
<bezel name="digit5" element="digit">
|
||||
<bounds left="60" top="-010" right="70" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit107" element="digit">
|
||||
<bezel name="digit6" element="digit">
|
||||
<bounds left="70" top="-010" right="80" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit108" element="digit">
|
||||
<bounds left="80" top="-010" right="90" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<!-- 2 digit 'credits' -->
|
||||
|
||||
<bezel name="digit109" element="digit">
|
||||
<bezel name="digit7" element="digit">
|
||||
<bounds left="100" top="-010" right="110" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit110" element="digit">
|
||||
<bezel name="digit8" element="digit">
|
||||
<bounds left="110" top="-010" right="120" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<!-- 1 digit 'ball' -->
|
||||
|
||||
<bezel name="digit111" element="digit">
|
||||
<bezel name="digit9" element="digit">
|
||||
<bounds left="130" top="-010" right="140" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<!-- 2 digits 'bonus' -->
|
||||
|
||||
<bezel name="digit112" element="digit">
|
||||
<bezel name="digit10" element="digit">
|
||||
<bounds left="150" top="-010" right="160" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit113" element="digit">
|
||||
<bezel name="digit11" element="digit">
|
||||
<bounds left="160" top="-010" right="170" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<!-- 8 digits 'score 2' -->
|
||||
<!-- 7 digits 'score 2' -->
|
||||
|
||||
<bezel name="digit114" element="digit">
|
||||
<bezel name="digit12" element="digit">
|
||||
<bounds left="180" top="-010" right="190" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit115" element="digit">
|
||||
<bezel name="digit13" element="digit">
|
||||
<bounds left="190" top="-010" right="200" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit116" element="digit">
|
||||
<bezel name="digit14" element="digit">
|
||||
<bounds left="200" top="-010" right="210" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit117" element="digit">
|
||||
<bezel name="digit15" element="digit">
|
||||
<bounds left="210" top="-010" right="220" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit118" element="digit">
|
||||
<bezel name="digit16" element="digit">
|
||||
<bounds left="220" top="-010" right="230" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit119" element="digit">
|
||||
<bezel name="digit17" element="digit">
|
||||
<bounds left="230" top="-010" right="240" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit120" element="digit">
|
||||
<bezel name="digit18" element="digit">
|
||||
<bounds left="240" top="-010" right="250" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit121" element="digit">
|
||||
<bounds left="250" top="-010" right="260" bottom="000" />
|
||||
</bezel>
|
||||
|
||||
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
/****************************************************************************
|
||||
* *
|
||||
* video.c *
|
||||
* *
|
||||
* Functions to emulate the video hardware of the machine. *
|
||||
* *
|
||||
****************************************************************************/
|
||||
/****************************************************************************
|
||||
* *
|
||||
* Speed Ball *
|
||||
* *
|
||||
* Functions to emulate the video hardware of the machine. *
|
||||
* *
|
||||
****************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "includes/speedbal.h"
|
||||
@ -44,9 +44,6 @@ void speedbal_state::video_start()
|
||||
|
||||
m_fg_tilemap->set_transmask(0,0xffff,0x0001); /* split type 0 is totally transparent in front half and has pen 0 transparent in back half */
|
||||
m_fg_tilemap->set_transmask(1,0x0001,0x0001); /* split type 1 has pen 0 transparent in front and back half */
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user