(small cleanup)

This commit is contained in:
Michaël Banaan Ananas 2013-01-03 23:07:40 +00:00
parent c17d9e1995
commit f7e0aee710
3 changed files with 7 additions and 16 deletions

View File

@ -354,15 +354,11 @@ static const ay8910_interface ay8910_interface_2 =
void blueprnt_state::machine_start()
{
m_audiocpu = machine().device<cpu_device>("audiocpu");
save_item(NAME(m_dipsw));
}
void blueprnt_state::machine_reset()
{
m_gfx_bank = 0;
m_dipsw = 0;
}
@ -395,7 +391,6 @@ static MACHINE_CONFIG_START( blueprnt, blueprnt_state )
MCFG_GFXDECODE(blueprnt)
MCFG_PALETTE_LENGTH(128*4+8)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
@ -524,5 +519,5 @@ ROM_END
GAME( 1982, blueprnt, 0, blueprnt, blueprnt, driver_device, 0, ROT270, "Zilec Electronics / Bally Midway", "Blue Print (Midway)", GAME_SUPPORTS_SAVE )
GAME( 1982, blueprntj, blueprnt, blueprnt, blueprnt, driver_device, 0, ROT270, "Zilec Electronics / Jaleco", "Blue Print (Jaleco)", GAME_SUPPORTS_SAVE )
GAME( 1983, saturnzi, 0, blueprnt, saturn, driver_device, 0, ROT270, "Zilec Electronics / Jaleco", "Saturn", GAME_SUPPORTS_SAVE )
GAME( 1983, saturnzi, 0, blueprnt, saturn, driver_device, 0, ROT270, "Zilec Electronics / Jaleco", "Saturn", GAME_SUPPORTS_SAVE )
GAME( 1983, grasspin, 0, grasspin, grasspin, driver_device, 0, ROT90, "Zilec Electronics / Jaleco", "Grasspin", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING )

View File

@ -8,13 +8,16 @@ class blueprnt_state : public driver_device
{
public:
blueprnt_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
: driver_device(mconfig, type, tag),
m_audiocpu(*this, "audiocpu"),
m_videoram(*this, "videoram"),
m_scrollram(*this, "scrollram"),
m_spriteram(*this, "spriteram"),
m_colorram(*this, "colorram"){ }
m_colorram(*this, "colorram")
{ }
/* memory pointers */
/* device/memory pointers */
required_device<cpu_device> m_audiocpu;
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_scrollram;
required_shared_ptr<UINT8> m_spriteram;
@ -27,8 +30,6 @@ public:
/* misc */
int m_dipsw;
/* devices */
cpu_device *m_audiocpu;
DECLARE_READ8_MEMBER(blueprnt_sh_dipsw_r);
DECLARE_WRITE8_MEMBER(blueprnt_sound_command_w);
DECLARE_WRITE8_MEMBER(blueprnt_coin_counter_w);

View File

@ -48,14 +48,12 @@ void blueprnt_state::palette_init()
WRITE8_MEMBER(blueprnt_state::blueprnt_videoram_w)
{
m_videoram[offset] = data;
m_bg_tilemap->mark_tile_dirty(offset);
}
WRITE8_MEMBER(blueprnt_state::blueprnt_colorram_w)
{
m_colorram[offset] = data;
m_bg_tilemap->mark_tile_dirty(offset);
@ -66,7 +64,6 @@ WRITE8_MEMBER(blueprnt_state::blueprnt_colorram_w)
WRITE8_MEMBER(blueprnt_state::blueprnt_flipscreen_w)
{
flip_screen_set(~data & 0x02);
if (m_gfx_bank != ((data & 0x04) >> 2))
@ -112,7 +109,6 @@ TILE_GET_INFO_MEMBER(blueprnt_state::get_bg_tile_info_grasspin)
VIDEO_START_MEMBER(blueprnt_state,blueprnt)
{
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blueprnt_state::get_bg_tile_info),this), TILEMAP_SCAN_COLS_FLIP_X, 8, 8, 32, 32);
m_bg_tilemap->set_transparent_pen(0);
m_bg_tilemap->set_scroll_cols(32);
@ -122,7 +118,6 @@ VIDEO_START_MEMBER(blueprnt_state,blueprnt)
VIDEO_START_MEMBER(blueprnt_state,grasspin)
{
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blueprnt_state::get_bg_tile_info_grasspin),this), TILEMAP_SCAN_COLS_FLIP_X, 8, 8, 32, 32);
m_bg_tilemap->set_transparent_pen(0);
m_bg_tilemap->set_scroll_cols(32);