mirror of
https://github.com/holub/mame
synced 2025-06-01 10:31:48 +03:00
Added rest of deco16ic_device (nw)
This commit is contained in:
parent
20f28e358c
commit
be745b40d7
@ -291,9 +291,6 @@ static const deco16ic_interface twocrude_deco16ic_tilegen2_intf =
|
||||
|
||||
void cbuster_state::machine_start()
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
m_deco_tilegen2 = machine().device("tilegen2");
|
||||
|
||||
save_item(NAME(m_prot));
|
||||
save_item(NAME(m_pri));
|
||||
}
|
||||
|
@ -36,7 +36,8 @@ public:
|
||||
m_spriteram(*this, "spriteram"),
|
||||
m_sprgen(*this, "spritegen"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_audiocpu(*this, "audiocpu")
|
||||
m_audiocpu(*this, "audiocpu"),
|
||||
m_deco_tilegen1(*this, "tilegen1")
|
||||
{ }
|
||||
|
||||
/* memory pointers */
|
||||
@ -81,7 +82,7 @@ public:
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
device_t *m_deco_tilegen1;
|
||||
required_device<deco16ic_device> m_deco_tilegen1;
|
||||
DECLARE_WRITE_LINE_MEMBER(sound_irq);
|
||||
DECLARE_READ16_MEMBER(dblewing_prot_r);
|
||||
DECLARE_WRITE16_MEMBER(dblewing_prot_w);
|
||||
@ -562,8 +563,6 @@ static const deco16ic_interface dblewing_deco16ic_tilegen1_intf =
|
||||
|
||||
void dblewing_state::machine_start()
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
|
||||
save_item(NAME(m_008_data));
|
||||
save_item(NAME(m_104_data));
|
||||
save_item(NAME(m_406_data));
|
||||
|
@ -184,7 +184,6 @@ static const deco16ic_interface dietgo_deco16ic_tilegen1_intf =
|
||||
|
||||
void dietgo_state::machine_start()
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( dietgo, dietgo_state )
|
||||
|
@ -33,14 +33,15 @@ public:
|
||||
dreambal_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: driver_device(mconfig, type, tag),
|
||||
m_eeprom(*this, "eeprom"),
|
||||
m_maincpu(*this, "maincpu")
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_deco_tilegen1(*this, "tilegen1")
|
||||
{ }
|
||||
|
||||
required_device<eeprom_device> m_eeprom;
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
device_t *m_deco_tilegen1;
|
||||
required_device<deco16ic_device> m_deco_tilegen1;
|
||||
|
||||
DECLARE_DRIVER_INIT(dreambal);
|
||||
virtual void machine_start();
|
||||
@ -283,9 +284,6 @@ static const deco16ic_interface dreambal_deco16ic_tilegen1_intf =
|
||||
|
||||
void dreambal_state::machine_start()
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
|
||||
|
||||
}
|
||||
|
||||
void dreambal_state::machine_reset()
|
||||
|
@ -288,8 +288,6 @@ static const deco16ic_interface funkyjet_deco16ic_tilegen1_intf =
|
||||
|
||||
void funkyjet_state::machine_start()
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
|
||||
decoprot_reset(machine());
|
||||
}
|
||||
|
||||
|
@ -314,8 +314,6 @@ static const deco16ic_interface pktgaldx_deco16ic_tilegen1_intf =
|
||||
|
||||
void pktgaldx_state::machine_start()
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
|
||||
decoprot_reset(machine());
|
||||
}
|
||||
|
||||
|
@ -320,7 +320,6 @@ static const deco16ic_interface supbtime_deco16ic_tilegen1_intf =
|
||||
|
||||
void supbtime_state::machine_start()
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( supbtime, supbtime_state )
|
||||
|
@ -285,7 +285,6 @@ static const deco16ic_interface tumblep_deco16ic_tilegen1_intf =
|
||||
|
||||
void tumblep_state::machine_start()
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( tumblep, tumblep_state )
|
||||
|
@ -230,9 +230,6 @@ static const deco16ic_interface vaportra_deco16ic_tilegen2_intf =
|
||||
|
||||
void vaportra_state::machine_start()
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
m_deco_tilegen2 = machine().device("tilegen2");
|
||||
|
||||
save_item(NAME(m_priority));
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
*************************************************************************/
|
||||
|
||||
#include "video/decospr.h"
|
||||
#include "video/deco16ic.h"
|
||||
|
||||
class cbuster_state : public driver_device
|
||||
{
|
||||
@ -19,7 +20,9 @@ public:
|
||||
m_spriteram16(*this, "spriteram16"),
|
||||
m_sprgen(*this, "spritegen"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_audiocpu(*this, "audiocpu")
|
||||
m_audiocpu(*this, "audiocpu"),
|
||||
m_deco_tilegen1(*this, "tilegen1"),
|
||||
m_deco_tilegen2(*this, "tilegen2")
|
||||
{ }
|
||||
|
||||
/* memory pointers */
|
||||
@ -40,8 +43,8 @@ public:
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
device_t *m_deco_tilegen1;
|
||||
device_t *m_deco_tilegen2;
|
||||
required_device<deco16ic_device> m_deco_tilegen1;
|
||||
required_device<deco16ic_device> m_deco_tilegen2;
|
||||
DECLARE_WRITE16_MEMBER(twocrude_control_w);
|
||||
DECLARE_READ16_MEMBER(twocrude_control_r);
|
||||
DECLARE_WRITE16_MEMBER(twocrude_palette_24bit_rg_w);
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "audio/decobsmt.h"
|
||||
#include "video/bufsprite.h"
|
||||
#include "video/decospr.h"
|
||||
#include "video/deco16ic.h"
|
||||
#include "machine/eeprom.h"
|
||||
#include "sound/okim6295.h"
|
||||
|
||||
@ -24,7 +25,9 @@ public:
|
||||
m_sprgen2(*this, "spritegen2"),
|
||||
m_eeprom(*this, "eeprom"),
|
||||
m_oki1(*this, "oki1"),
|
||||
m_oki2(*this, "oki2")
|
||||
m_oki2(*this, "oki2"),
|
||||
m_deco_tilegen1(*this, "tilegen1"),
|
||||
m_deco_tilegen2(*this, "tilegen2")
|
||||
{ }
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
@ -77,8 +80,8 @@ public:
|
||||
UINT16 m_pf3_rowscroll[0x1000];
|
||||
UINT16 m_pf4_rowscroll[0x1000];
|
||||
|
||||
device_t *m_deco_tilegen1;
|
||||
device_t *m_deco_tilegen2;
|
||||
required_device<deco16ic_device> m_deco_tilegen1;
|
||||
required_device<deco16ic_device> m_deco_tilegen2;
|
||||
UINT8 m_irq_source;
|
||||
DECLARE_WRITE_LINE_MEMBER(sound_irq_nslasher);
|
||||
DECLARE_READ32_MEMBER(deco32_irq_controller_r);
|
||||
|
@ -5,6 +5,7 @@
|
||||
*************************************************************************/
|
||||
|
||||
#include "video/decospr.h"
|
||||
#include "video/deco16ic.h"
|
||||
|
||||
class dietgo_state : public driver_device
|
||||
{
|
||||
@ -16,7 +17,8 @@ public:
|
||||
m_spriteram(*this, "spriteram"),
|
||||
m_sprgen(*this, "spritegen"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_audiocpu(*this, "audiocpu")
|
||||
m_audiocpu(*this, "audiocpu"),
|
||||
m_deco_tilegen1(*this, "tilegen1")
|
||||
{ }
|
||||
|
||||
/* memory pointers */
|
||||
@ -29,7 +31,7 @@ public:
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
device_t *m_deco_tilegen1;
|
||||
required_device<deco16ic_device> m_deco_tilegen1;
|
||||
DECLARE_DRIVER_INIT(dietgo);
|
||||
virtual void machine_start();
|
||||
UINT32 screen_update_dietgo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
@ -5,6 +5,7 @@
|
||||
*************************************************************************/
|
||||
|
||||
#include "video/decospr.h"
|
||||
#include "video/deco16ic.h"
|
||||
|
||||
class funkyjet_state : public driver_device
|
||||
{
|
||||
@ -16,7 +17,8 @@ public:
|
||||
m_pf2_rowscroll(*this, "pf2_rowscroll"),
|
||||
m_sprgen(*this, "spritegen"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_audiocpu(*this, "audiocpu")
|
||||
m_audiocpu(*this, "audiocpu"),
|
||||
m_deco_tilegen1(*this, "tilegen1")
|
||||
{ }
|
||||
|
||||
/* memory pointers */
|
||||
@ -29,7 +31,7 @@ public:
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
device_t *m_deco_tilegen1;
|
||||
required_device<deco16ic_device> m_deco_tilegen1;
|
||||
DECLARE_DRIVER_INIT(funkyjet);
|
||||
virtual void machine_start();
|
||||
UINT32 screen_update_funkyjet(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
@ -18,7 +18,8 @@ public:
|
||||
m_pktgaldb_sprites(*this, "pktgaldb_spr"),
|
||||
m_sprgen(*this, "spritegen"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_oki2(*this, "oki2")
|
||||
m_oki2(*this, "oki2"),
|
||||
m_deco_tilegen1(*this, "tilegen1")
|
||||
{ }
|
||||
|
||||
/* memory pointers */
|
||||
@ -34,7 +35,7 @@ public:
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<okim6295_device> m_oki2;
|
||||
device_t *m_deco_tilegen1;
|
||||
optional_device<deco16ic_device> m_deco_tilegen1;
|
||||
DECLARE_READ16_MEMBER(pckgaldx_unknown_r);
|
||||
DECLARE_READ16_MEMBER(pckgaldx_protection_r);
|
||||
DECLARE_WRITE16_MEMBER(pktgaldx_oki_bank_w);
|
||||
|
@ -16,7 +16,8 @@ public:
|
||||
m_pf2_rowscroll(*this, "pf2_rowscroll"),
|
||||
m_sprgen(*this, "spritegen"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_audiocpu(*this, "audiocpu")
|
||||
m_audiocpu(*this, "audiocpu"),
|
||||
m_deco_tilegen1(*this, "tilegen1")
|
||||
{ }
|
||||
|
||||
/* memory pointers */
|
||||
@ -31,7 +32,7 @@ public:
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
device_t *m_deco_tilegen1;
|
||||
required_device<deco16ic_device> m_deco_tilegen1;
|
||||
DECLARE_READ16_MEMBER(supbtime_controls_r);
|
||||
DECLARE_WRITE16_MEMBER(sound_w);
|
||||
virtual void machine_start();
|
||||
|
@ -5,6 +5,7 @@
|
||||
*************************************************************************/
|
||||
|
||||
#include "video/decospr.h"
|
||||
#include "video/deco16ic.h"
|
||||
|
||||
class tumblep_state : public driver_device
|
||||
{
|
||||
@ -16,7 +17,8 @@ public:
|
||||
m_pf2_rowscroll(*this, "pf2_rowscroll"),
|
||||
m_sprgen(*this, "spritegen"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_audiocpu(*this, "audiocpu")
|
||||
m_audiocpu(*this, "audiocpu"),
|
||||
m_deco_tilegen1(*this, "tilegen1")
|
||||
{ }
|
||||
|
||||
/* memory pointers */
|
||||
@ -29,7 +31,7 @@ public:
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
device_t *m_deco_tilegen1;
|
||||
required_device<deco16ic_device> m_deco_tilegen1;
|
||||
DECLARE_READ16_MEMBER(tumblep_prot_r);
|
||||
DECLARE_WRITE16_MEMBER(tumblep_sound_w);
|
||||
DECLARE_WRITE16_MEMBER(jumppop_sound_w);
|
||||
|
@ -13,6 +13,8 @@ public:
|
||||
: driver_device(mconfig, type, tag),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_audiocpu(*this, "audiocpu"),
|
||||
m_deco_tilegen1(*this, "tilegen1"),
|
||||
m_deco_tilegen2(*this, "tilegen2"),
|
||||
m_spriteram(*this, "spriteram") { }
|
||||
|
||||
/* memory pointers */
|
||||
@ -27,8 +29,8 @@ public:
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
device_t *m_deco_tilegen1;
|
||||
device_t *m_deco_tilegen2;
|
||||
required_device<deco16ic_device> m_deco_tilegen1;
|
||||
required_device<deco16ic_device> m_deco_tilegen2;
|
||||
required_device<buffered_spriteram16_device> m_spriteram;
|
||||
DECLARE_WRITE16_MEMBER(vaportra_sound_w);
|
||||
DECLARE_READ16_MEMBER(vaportra_control_r);
|
||||
|
@ -568,9 +568,6 @@ void dragngun_state::screen_eof_dragngun(screen_device &screen, bool state)
|
||||
|
||||
UINT32 deco32_state::screen_update_captaven(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
m_deco_tilegen2 = machine().device("tilegen2");
|
||||
|
||||
machine().tilemap().set_flip_all(flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
|
||||
|
||||
machine().priority_bitmap.fill(0, cliprect);
|
||||
@ -604,9 +601,6 @@ UINT32 deco32_state::screen_update_captaven(screen_device &screen, bitmap_ind16
|
||||
|
||||
UINT32 dragngun_state::screen_update_dragngun(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
m_deco_tilegen2 = machine().device("tilegen2");
|
||||
|
||||
bitmap.fill(get_black_pen(machine()), cliprect);
|
||||
|
||||
deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll);
|
||||
@ -643,9 +637,6 @@ UINT32 dragngun_state::screen_update_dragngun(screen_device &screen, bitmap_rgb3
|
||||
|
||||
UINT32 deco32_state::screen_update_fghthist(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
m_deco_tilegen2 = machine().device("tilegen2");
|
||||
|
||||
machine().priority_bitmap.fill(0, cliprect);
|
||||
bitmap.fill(machine().pens[0x000], cliprect); // Palette index not confirmed
|
||||
|
||||
@ -818,9 +809,6 @@ void deco32_state::mixDualAlphaSprites(bitmap_rgb32 &bitmap, const rectangle &cl
|
||||
UINT32 deco32_state::screen_update_nslasher(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
int alphaTilemap=0;
|
||||
m_deco_tilegen1 = machine().device("tilegen1");
|
||||
m_deco_tilegen2 = machine().device("tilegen2");
|
||||
|
||||
deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll);
|
||||
deco16ic_pf_update(m_deco_tilegen2, m_pf3_rowscroll, m_pf4_rowscroll);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user