summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers')
-rw-r--r--src/mame/drivers/1945kiii.c4
-rw-r--r--src/mame/drivers/39in1.c4
-rw-r--r--src/mame/drivers/3x3puzzl.c6
-rw-r--r--src/mame/drivers/5clown.c4
-rw-r--r--src/mame/drivers/ace.c4
-rw-r--r--src/mame/drivers/acefruit.c6
-rw-r--r--src/mame/drivers/acommand.c4
-rw-r--r--src/mame/drivers/adp.c6
-rw-r--r--src/mame/drivers/albazc.c4
-rw-r--r--src/mame/drivers/amaticmg.c4
-rw-r--r--src/mame/drivers/aristmk4.c4
-rw-r--r--src/mame/drivers/aristmk6.c4
-rw-r--r--src/mame/drivers/astinvad.c5
-rw-r--r--src/mame/drivers/astrcorp.c6
-rw-r--r--src/mame/drivers/atarisy4.c4
-rw-r--r--src/mame/drivers/avt.c4
-rw-r--r--src/mame/drivers/backfire.c4
-rw-r--r--src/mame/drivers/beaminv.c4
-rw-r--r--src/mame/drivers/berzerk.c4
-rw-r--r--src/mame/drivers/bestleag.c4
-rw-r--r--src/mame/drivers/bfcobra.c4
-rw-r--r--src/mame/drivers/bingor.c4
-rw-r--r--src/mame/drivers/blackt96.c4
-rw-r--r--src/mame/drivers/blitz68k.c4
-rw-r--r--src/mame/drivers/bmcbowl.c4
-rw-r--r--src/mame/drivers/bmcpokr.c4
-rw-r--r--src/mame/drivers/bnstars.c4
-rw-r--r--src/mame/drivers/boogwing.c1
-rw-r--r--src/mame/drivers/boxer.c6
-rw-r--r--src/mame/drivers/buster.c4
-rw-r--r--src/mame/drivers/cabaret.c4
-rw-r--r--src/mame/drivers/calorie.c4
-rw-r--r--src/mame/drivers/cardline.c4
-rw-r--r--src/mame/drivers/carrera.c4
-rw-r--r--src/mame/drivers/cb2001.c4
-rw-r--r--src/mame/drivers/cball.c6
-rw-r--r--src/mame/drivers/cesclass.c4
-rw-r--r--src/mame/drivers/chanbara.c4
-rw-r--r--src/mame/drivers/chinsan.c4
-rw-r--r--src/mame/drivers/chsuper.c5
-rw-r--r--src/mame/drivers/cliffhgr.c4
-rw-r--r--src/mame/drivers/cmmb.c4
-rw-r--r--src/mame/drivers/cninja.c6
-rw-r--r--src/mame/drivers/cntsteer.c4
-rw-r--r--src/mame/drivers/cobra.c8
-rw-r--r--src/mame/drivers/coinmstr.c4
-rw-r--r--src/mame/drivers/coinmvga.c4
-rw-r--r--src/mame/drivers/coolridr.c4
-rw-r--r--src/mame/drivers/corona.c4
-rw-r--r--src/mame/drivers/cshooter.c4
-rw-r--r--src/mame/drivers/cubeqst.c4
-rw-r--r--src/mame/drivers/cultures.c4
-rw-r--r--src/mame/drivers/cybertnk.c4
-rw-r--r--src/mame/drivers/cyclemb.c4
-rw-r--r--src/mame/drivers/dacholer.c6
-rw-r--r--src/mame/drivers/dassault.c1
-rw-r--r--src/mame/drivers/dblcrown.c4
-rw-r--r--src/mame/drivers/ddayjlc.c4
-rw-r--r--src/mame/drivers/ddealer.c4
-rw-r--r--src/mame/drivers/deco156.c4
-rw-r--r--src/mame/drivers/deco_ld.c8
-rw-r--r--src/mame/drivers/destroyr.c6
-rw-r--r--src/mame/drivers/dietgo.c1
-rw-r--r--src/mame/drivers/discoboy.c4
-rw-r--r--src/mame/drivers/diverboy.c6
-rw-r--r--src/mame/drivers/dlair.c4
-rw-r--r--src/mame/drivers/dmndrby.c4
-rw-r--r--src/mame/drivers/dominob.c4
-rw-r--r--src/mame/drivers/dorachan.c4
-rw-r--r--src/mame/drivers/dotrikun.c4
-rw-r--r--src/mame/drivers/dreamwld.c4
-rw-r--r--src/mame/drivers/drtomy.c4
-rw-r--r--src/mame/drivers/dunhuang.c6
-rw-r--r--src/mame/drivers/dwarfd.c4
-rw-r--r--src/mame/drivers/egghunt.c4
-rw-r--r--src/mame/drivers/enigma2.c4
-rw-r--r--src/mame/drivers/esh.c4
-rw-r--r--src/mame/drivers/expro02.c4
-rw-r--r--src/mame/drivers/feversoc.c4
-rw-r--r--src/mame/drivers/firefox.c6
-rw-r--r--src/mame/drivers/flipjack.c4
-rw-r--r--src/mame/drivers/flyball.c6
-rw-r--r--src/mame/drivers/fortecar.c4
-rw-r--r--src/mame/drivers/fresh.c4
-rw-r--r--src/mame/drivers/galaxi.c6
-rw-r--r--src/mame/drivers/galgame.c4
-rw-r--r--src/mame/drivers/galpani3.c4
-rw-r--r--src/mame/drivers/gamecstl.c4
-rw-r--r--src/mame/drivers/gei.c6
-rw-r--r--src/mame/drivers/go2000.c6
-rw-r--r--src/mame/drivers/goldnpkr.c4
-rw-r--r--src/mame/drivers/goodejan.c4
-rw-r--r--src/mame/drivers/gpworld.c4
-rw-r--r--src/mame/drivers/gstream.c4
-rw-r--r--src/mame/drivers/gticlub.c6
-rw-r--r--src/mame/drivers/guab.c4
-rw-r--r--src/mame/drivers/gunpey.c4
-rw-r--r--src/mame/drivers/halleys.c4
-rw-r--r--src/mame/drivers/highvdeo.c4
-rw-r--r--src/mame/drivers/hitpoker.c4
-rw-r--r--src/mame/drivers/hotblock.c4
-rw-r--r--src/mame/drivers/hvyunit.c4
-rw-r--r--src/mame/drivers/igs009.c6
-rw-r--r--src/mame/drivers/igs011.c6
-rw-r--r--src/mame/drivers/igs017.c6
-rw-r--r--src/mame/drivers/igs_m027.c4
-rw-r--r--src/mame/drivers/igspoker.c6
-rw-r--r--src/mame/drivers/intrscti.c4
-rw-r--r--src/mame/drivers/istellar.c4
-rw-r--r--src/mame/drivers/itgambl2.c4
-rw-r--r--src/mame/drivers/itgambl3.c4
-rw-r--r--src/mame/drivers/itgamble.c4
-rw-r--r--src/mame/drivers/jackie.c7
-rw-r--r--src/mame/drivers/jackpool.c4
-rw-r--r--src/mame/drivers/jalmah.c4
-rw-r--r--src/mame/drivers/jangou.c4
-rw-r--r--src/mame/drivers/jantotsu.c4
-rw-r--r--src/mame/drivers/jchan.c4
-rw-r--r--src/mame/drivers/jclub2.c4
-rw-r--r--src/mame/drivers/jollyjgr.c4
-rw-r--r--src/mame/drivers/kingdrby.c4
-rw-r--r--src/mame/drivers/koftball.c4
-rw-r--r--src/mame/drivers/kontest.c4
-rw-r--r--src/mame/drivers/lastfght.c6
-rw-r--r--src/mame/drivers/lbeach.c7
-rw-r--r--src/mame/drivers/lgp.c4
-rw-r--r--src/mame/drivers/limenko.c4
-rw-r--r--src/mame/drivers/littlerb.c2
-rw-r--r--src/mame/drivers/looping.c4
-rw-r--r--src/mame/drivers/luckgrln.c4
-rw-r--r--src/mame/drivers/m63.c4
-rw-r--r--src/mame/drivers/magic10.c4
-rw-r--r--src/mame/drivers/magicard.c4
-rw-r--r--src/mame/drivers/majorpkr.c4
-rw-r--r--src/mame/drivers/marinedt.c4
-rw-r--r--src/mame/drivers/mastboy.c4
-rw-r--r--src/mame/drivers/maygayv1.c4
-rw-r--r--src/mame/drivers/mazerbla.c4
-rw-r--r--src/mame/drivers/mediagx.c6
-rw-r--r--src/mame/drivers/megaphx.c5
-rw-r--r--src/mame/drivers/merit.c4
-rw-r--r--src/mame/drivers/mgolf.c6
-rw-r--r--src/mame/drivers/midas.c4
-rw-r--r--src/mame/drivers/mirax.c4
-rw-r--r--src/mame/drivers/missile.c6
-rw-r--r--src/mame/drivers/mjsister.c4
-rw-r--r--src/mame/drivers/mlanding.c5
-rw-r--r--src/mame/drivers/monzagp.c4
-rw-r--r--src/mame/drivers/mpoker.c4
-rw-r--r--src/mame/drivers/murogem.c4
-rw-r--r--src/mame/drivers/murogmbl.c4
-rw-r--r--src/mame/drivers/mwarr.c4
-rw-r--r--src/mame/drivers/namcos23.c7
-rw-r--r--src/mame/drivers/neoprint.c6
-rw-r--r--src/mame/drivers/nightgal.c6
-rw-r--r--src/mame/drivers/nss.c7
-rw-r--r--src/mame/drivers/nwk-tr.c4
-rw-r--r--src/mame/drivers/olibochu.c4
-rw-r--r--src/mame/drivers/onetwo.c4
-rw-r--r--src/mame/drivers/panicr.c6
-rw-r--r--src/mame/drivers/pasha2.c4
-rw-r--r--src/mame/drivers/pcxt.c4
-rw-r--r--src/mame/drivers/peplus.c4
-rw-r--r--src/mame/drivers/pinball2k.c6
-rw-r--r--src/mame/drivers/pinkiri8.c4
-rw-r--r--src/mame/drivers/pipeline.c4
-rw-r--r--src/mame/drivers/pkscram.c4
-rw-r--r--src/mame/drivers/pktgaldx.c1
-rw-r--r--src/mame/drivers/poker72.c4
-rw-r--r--src/mame/drivers/popobear.c6
-rw-r--r--src/mame/drivers/progolf.c4
-rw-r--r--src/mame/drivers/pturn.c4
-rw-r--r--src/mame/drivers/pzletime.c6
-rw-r--r--src/mame/drivers/quizpun2.c4
-rw-r--r--src/mame/drivers/quizshow.c4
-rw-r--r--src/mame/drivers/r2dx_v33.c4
-rw-r--r--src/mame/drivers/rabbit.c5
-rw-r--r--src/mame/drivers/rastersp.c4
-rw-r--r--src/mame/drivers/rbmk.c4
-rw-r--r--src/mame/drivers/rgum.c4
-rw-r--r--src/mame/drivers/rohga.c4
-rw-r--r--src/mame/drivers/sbrkout.c6
-rw-r--r--src/mame/drivers/seabattl.c6
-rw-r--r--src/mame/drivers/segald.c4
-rw-r--r--src/mame/drivers/sengokmj.c4
-rw-r--r--src/mame/drivers/sfbonus.c4
-rw-r--r--src/mame/drivers/sigmab98.c6
-rw-r--r--src/mame/drivers/skyarmy.c4
-rw-r--r--src/mame/drivers/skylncr.c4
-rw-r--r--src/mame/drivers/sliver.c4
-rw-r--r--src/mame/drivers/slotcarn.c4
-rw-r--r--src/mame/drivers/smsmcorp.c4
-rw-r--r--src/mame/drivers/spaceg.c4
-rw-r--r--src/mame/drivers/spoker.c6
-rw-r--r--src/mame/drivers/srmp6.c4
-rw-r--r--src/mame/drivers/ssfindo.c4
-rw-r--r--src/mame/drivers/statriv2.c4
-rw-r--r--src/mame/drivers/stuntair.c4
-rw-r--r--src/mame/drivers/sub.c4
-rw-r--r--src/mame/drivers/subsino.c4
-rw-r--r--src/mame/drivers/subsino2.c6
-rw-r--r--src/mame/drivers/summit.c4
-rw-r--r--src/mame/drivers/supdrapo.c4
-rw-r--r--src/mame/drivers/superdq.c4
-rw-r--r--src/mame/drivers/superwng.c4
-rw-r--r--src/mame/drivers/suprgolf.c4
-rw-r--r--src/mame/drivers/taitotz.c4
-rw-r--r--src/mame/drivers/taitowlf.c4
-rw-r--r--src/mame/drivers/tgtpanic.c4
-rw-r--r--src/mame/drivers/tickee.c4
-rw-r--r--src/mame/drivers/tmaster.c6
-rw-r--r--src/mame/drivers/tmmjprd.c4
-rw-r--r--src/mame/drivers/trvmadns.c4
-rw-r--r--src/mame/drivers/ttchamp.c4
-rw-r--r--src/mame/drivers/tugboat.c6
-rw-r--r--src/mame/drivers/twins.c4
-rw-r--r--src/mame/drivers/ultrsprt.c4
-rw-r--r--src/mame/drivers/umipoker.c4
-rw-r--r--src/mame/drivers/vamphalf.c4
-rw-r--r--src/mame/drivers/vega.c4
-rw-r--r--src/mame/drivers/vpoker.c4
-rw-r--r--src/mame/drivers/vroulet.c4
-rw-r--r--src/mame/drivers/wheelfir.c6
-rw-r--r--src/mame/drivers/witch.c4
-rw-r--r--src/mame/drivers/zr107.c4
225 files changed, 760 insertions, 229 deletions
diff --git a/src/mame/drivers/1945kiii.c b/src/mame/drivers/1945kiii.c
index b8cea59e7cd..08287b4f905 100644
--- a/src/mame/drivers/1945kiii.c
+++ b/src/mame/drivers/1945kiii.c
@@ -58,7 +58,8 @@ public:
m_spriteram_2(*this, "spritera2"),
m_bgram(*this, "bgram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* devices */
required_device<okim6295_device> m_oki1;
@@ -83,6 +84,7 @@ public:
UINT32 screen_update_k3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/39in1.c b/src/mame/drivers/39in1.c
index 4adc5d94ac9..7c9b9b0b04c 100644
--- a/src/mame/drivers/39in1.c
+++ b/src/mame/drivers/39in1.c
@@ -34,7 +34,8 @@ public:
: driver_device(mconfig, type, tag),
m_ram(*this, "ram"),
m_eeprom(*this, "eeprom"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
UINT32 m_seed;
UINT32 m_magic;
@@ -94,6 +95,7 @@ public:
void pxa255_lcd_check_load_next_branch(int channel);
void pxa255_start();
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/3x3puzzl.c b/src/mame/drivers/3x3puzzl.c
index 67cf00b54aa..9cdaa25d35c 100644
--- a/src/mame/drivers/3x3puzzl.c
+++ b/src/mame/drivers/3x3puzzl.c
@@ -54,7 +54,8 @@ public:
m_videoram3(*this, "videoram3"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen")
{ }
/* memory pointers */
@@ -70,7 +71,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+
// screen updates
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
diff --git a/src/mame/drivers/5clown.c b/src/mame/drivers/5clown.c
index c6998f8fa56..36fffd9cb6c 100644
--- a/src/mame/drivers/5clown.c
+++ b/src/mame/drivers/5clown.c
@@ -461,7 +461,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_ay8910(*this, "ay8910"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -496,6 +497,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<ay8910_device> m_ay8910;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/ace.c b/src/mame/drivers/ace.c
index ca0d6fd7bc4..b7eefe192a4 100644
--- a/src/mame/drivers/ace.c
+++ b/src/mame/drivers/ace.c
@@ -52,7 +52,8 @@ public:
m_scoreram(*this, "scoreram"),
m_ram2(*this, "ram2"),
m_characterram(*this, "characterram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -74,6 +75,7 @@ public:
UINT32 screen_update_ace(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void ace_postload();
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/acefruit.c b/src/mame/drivers/acefruit.c
index 26930d62d91..e82a4cdd248 100644
--- a/src/mame/drivers/acefruit.c
+++ b/src/mame/drivers/acefruit.c
@@ -24,13 +24,17 @@ public:
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
emu_timer *m_refresh_timer;
DECLARE_WRITE8_MEMBER(acefruit_colorram_w);
DECLARE_WRITE8_MEMBER(acefruit_coin_w);
diff --git a/src/mame/drivers/acommand.c b/src/mame/drivers/acommand.c
index 247ec8c70b3..fc48b9d5631 100644
--- a/src/mame/drivers/acommand.c
+++ b/src/mame/drivers/acommand.c
@@ -74,7 +74,8 @@ public:
m_maincpu(*this, "maincpu"),
m_oki1(*this, "oki1"),
m_oki2(*this, "oki2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_ac_bgvram;
required_shared_ptr<UINT16> m_ac_txvram;
@@ -106,6 +107,7 @@ public:
required_device<okim6295_device> m_oki1;
required_device<okim6295_device> m_oki2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/adp.c b/src/mame/drivers/adp.c
index 8b68e53513b..b5e66efe53e 100644
--- a/src/mame/drivers/adp.c
+++ b/src/mame/drivers/adp.c
@@ -160,13 +160,17 @@ public:
m_h63484(*this, "h63484"),
m_microtouch(*this, "microtouch"),
m_maincpu(*this, "maincpu"),
- m_duart(*this, "duart68681")
+ m_duart(*this, "duart68681"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<h63484_device> m_h63484;
required_device<microtouch_serial_device> m_microtouch;
required_device<cpu_device> m_maincpu;
required_device<duartn68681_device> m_duart;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
diff --git a/src/mame/drivers/albazc.c b/src/mame/drivers/albazc.c
index bf7fe6c135c..b609e00f327 100644
--- a/src/mame/drivers/albazc.c
+++ b/src/mame/drivers/albazc.c
@@ -23,7 +23,8 @@ public:
m_spriteram2(*this, "spriteram2"),
m_spriteram3(*this, "spriteram3"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* video-related */
required_shared_ptr<UINT8> m_spriteram1;
@@ -40,6 +41,7 @@ public:
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/amaticmg.c b/src/mame/drivers/amaticmg.c
index 3fb232bfc81..2e0643731b8 100644
--- a/src/mame/drivers/amaticmg.c
+++ b/src/mame/drivers/amaticmg.c
@@ -432,7 +432,8 @@ public:
m_attr(*this, "attr"),
m_vram(*this, "vram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_attr;
required_shared_ptr<UINT8> m_vram;
@@ -460,6 +461,7 @@ public:
void decrypt(int key1, int key2);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/aristmk4.c b/src/mame/drivers/aristmk4.c
index 0d557bb5848..70d6ecc17ba 100644
--- a/src/mame/drivers/aristmk4.c
+++ b/src/mame/drivers/aristmk4.c
@@ -288,7 +288,8 @@ public:
m_ay2(*this, "ay2"),
m_samples(*this, "samples"),
m_mkiv_vram(*this, "mkiv_vram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<mc146818_device> m_rtc;
@@ -298,6 +299,7 @@ public:
required_shared_ptr<UINT8> m_mkiv_vram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_rtc_address_strobe;
int m_rtc_data_strobe;
diff --git a/src/mame/drivers/aristmk6.c b/src/mame/drivers/aristmk6.c
index c6843d076e8..8facc551244 100644
--- a/src/mame/drivers/aristmk6.c
+++ b/src/mame/drivers/aristmk6.c
@@ -13,7 +13,8 @@ class aristmk6_state : public driver_device
public:
aristmk6_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
UINT32 m_test_x,m_test_y,m_start_offs;
UINT8 m_type;
@@ -21,6 +22,7 @@ public:
virtual void video_start();
UINT32 screen_update_aristmk6(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/astinvad.c b/src/mame/drivers/astinvad.c
index 1f697c5f1fa..1f36053f7ad 100644
--- a/src/mame/drivers/astinvad.c
+++ b/src/mame/drivers/astinvad.c
@@ -56,7 +56,8 @@ public:
m_ppi8255_0(*this, "ppi8255_0"),
m_ppi8255_1(*this, "ppi8255_1"),
m_videoram(*this, "videoram"),
- m_samples(*this, "samples"){ }
+ m_samples(*this, "samples"),
+ m_screen(*this, "screen"){ }
required_device<cpu_device> m_maincpu;
optional_device<i8255_device> m_ppi8255_0;
@@ -72,6 +73,8 @@ public:
UINT8 m_color_latch;
required_device<samples_device> m_samples;
+ required_device<screen_device> m_screen;
+
DECLARE_WRITE8_MEMBER(color_latch_w);
DECLARE_WRITE8_MEMBER(spaceint_videoram_w);
DECLARE_READ8_MEMBER(kamikaze_ppi_r);
diff --git a/src/mame/drivers/astrcorp.c b/src/mame/drivers/astrcorp.c
index dc370753230..d7411e78ae5 100644
--- a/src/mame/drivers/astrcorp.c
+++ b/src/mame/drivers/astrcorp.c
@@ -49,7 +49,9 @@ public:
m_paletteram(*this, "paletteram"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -77,6 +79,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
/***************************************************************************
diff --git a/src/mame/drivers/atarisy4.c b/src/mame/drivers/atarisy4.c
index d397abf91a4..a19f5ac6a81 100644
--- a/src/mame/drivers/atarisy4.c
+++ b/src/mame/drivers/atarisy4.c
@@ -29,7 +29,8 @@ public:
m_screen_ram(*this, "screen_ram"),
m_maincpu(*this, "maincpu"),
m_dsp0(*this, "dsp0"),
- m_dsp1(*this, "dsp1") { }
+ m_dsp1(*this, "dsp1"),
+ m_palette(*this, "palette") { }
UINT8 m_r_color_table[256];
UINT8 m_g_color_table[256];
@@ -72,6 +73,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_dsp0;
optional_device<cpu_device> m_dsp1;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/avt.c b/src/mame/drivers/avt.c
index 6ad872a6ec9..a579c8f8592 100644
--- a/src/mame/drivers/avt.c
+++ b/src/mame/drivers/avt.c
@@ -425,13 +425,15 @@ public:
m_crtc(*this, "crtc"),
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<mc6845_device> m_crtc;
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(avt_6845_address_w);
DECLARE_WRITE8_MEMBER(avt_6845_data_w);
diff --git a/src/mame/drivers/backfire.c b/src/mame/drivers/backfire.c
index ae0218a5cb5..7c02ba493ef 100644
--- a/src/mame/drivers/backfire.c
+++ b/src/mame/drivers/backfire.c
@@ -39,7 +39,8 @@ public:
m_io_in0(*this, "IN0"),
m_io_in1(*this, "IN1"),
m_io_in2(*this, "IN2"),
- m_io_in3(*this, "IN3")
+ m_io_in3(*this, "IN3"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -100,6 +101,7 @@ public:
required_ioport m_io_in1;
required_ioport m_io_in2;
required_ioport m_io_in3;
+ required_device<palette_device> m_palette;
DECLARE_WRITE_LINE_MEMBER(sound_irq_gen);
};
diff --git a/src/mame/drivers/beaminv.c b/src/mame/drivers/beaminv.c
index 130a3e2ff68..ed9e128ec01 100644
--- a/src/mame/drivers/beaminv.c
+++ b/src/mame/drivers/beaminv.c
@@ -62,7 +62,8 @@ public:
beaminv_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"){ }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -75,6 +76,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
DECLARE_READ8_MEMBER(v128_r);
DECLARE_WRITE8_MEMBER(controller_select_w);
DECLARE_READ8_MEMBER(controller_r);
diff --git a/src/mame/drivers/berzerk.c b/src/mame/drivers/berzerk.c
index a1e752cb767..a7617cd2e1e 100644
--- a/src/mame/drivers/berzerk.c
+++ b/src/mame/drivers/berzerk.c
@@ -28,7 +28,8 @@ public:
m_s14001a(*this, "speech"),
m_ls181_10c(*this, "ls181_10c"),
m_ls181_12c(*this, "ls181_12c"),
- m_custom(*this, "exidy") { }
+ m_custom(*this, "exidy"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
@@ -38,6 +39,7 @@ public:
required_device<ttl74181_device> m_ls181_10c;
required_device<ttl74181_device> m_ls181_12c;
required_device<exidy_sound_device> m_custom;
+ required_device<screen_device> m_screen;
UINT8 m_magicram_control;
UINT8 m_last_shift_data;
diff --git a/src/mame/drivers/bestleag.c b/src/mame/drivers/bestleag.c
index 09e8c903cba..e3d7d2a2fed 100644
--- a/src/mame/drivers/bestleag.c
+++ b/src/mame/drivers/bestleag.c
@@ -37,7 +37,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_bgram;
required_shared_ptr<UINT16> m_fgram;
@@ -62,6 +63,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/bfcobra.c b/src/mame/drivers/bfcobra.c
index 2bbcfd95aef..ffcc01f012d 100644
--- a/src/mame/drivers/bfcobra.c
+++ b/src/mame/drivers/bfcobra.c
@@ -242,7 +242,8 @@ public:
m_acia6850_0(*this, "acia6850_2"),
m_acia6850_1(*this, "acia6850_2"),
m_acia6850_2(*this, "acia6850_2"),
- m_upd7759(*this, "upd")
+ m_upd7759(*this, "upd"),
+ m_palette(*this, "palette")
{
}
@@ -316,6 +317,7 @@ public:
required_device<acia6850_device> m_acia6850_1;
required_device<acia6850_device> m_acia6850_2;
required_device<upd7759_device> m_upd7759;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/bingor.c b/src/mame/drivers/bingor.c
index e069a6e30d2..1747764f727 100644
--- a/src/mame/drivers/bingor.c
+++ b/src/mame/drivers/bingor.c
@@ -449,7 +449,8 @@ public:
bingor_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_blit_ram(*this, "blit_ram"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_blit_ram;
DECLARE_READ16_MEMBER(test_r);
@@ -459,6 +460,7 @@ public:
INTERRUPT_GEN_MEMBER(vblank_irq);
INTERRUPT_GEN_MEMBER(unk_irq);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/blackt96.c b/src/mame/drivers/blackt96.c
index 42340469c3e..3b5be0743e6 100644
--- a/src/mame/drivers/blackt96.c
+++ b/src/mame/drivers/blackt96.c
@@ -103,7 +103,8 @@ public:
m_spriteram6(*this, "spriteram6"),
m_spriteram7(*this, "spriteram7"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_tilemapram;
required_shared_ptr<UINT16> m_spriteram0;
@@ -155,6 +156,7 @@ public:
void draw_page(bitmap_ind16 &bitmap, const rectangle &cliprect, int page);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
#define GET_INFO( ram ) \
diff --git a/src/mame/drivers/blitz68k.c b/src/mame/drivers/blitz68k.c
index 66a549caeec..6877d2f3390 100644
--- a/src/mame/drivers/blitz68k.c
+++ b/src/mame/drivers/blitz68k.c
@@ -67,7 +67,8 @@ public:
m_leds0(*this, "leds0"),
m_leds1(*this, "leds1"),
m_leds2(*this, "leds2") ,
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT16> m_nvram;
UINT8 *m_blit_buffer;
@@ -178,6 +179,7 @@ public:
UINT32 screen_update_blitz68k_noblit(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
TIMER_DEVICE_CALLBACK_MEMBER(steaser_mcu_sim);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
/*************************************************************************************************************
diff --git a/src/mame/drivers/bmcbowl.c b/src/mame/drivers/bmcbowl.c
index 261c037db2b..bad39d1b4e7 100644
--- a/src/mame/drivers/bmcbowl.c
+++ b/src/mame/drivers/bmcbowl.c
@@ -119,13 +119,15 @@ public:
m_stats_ram(*this, "nvram", 16),
m_vid1(*this, "vid1"),
m_vid2(*this, "vid2"),
- m_colorram(*this, "colorram", 16) { }
+ m_colorram(*this, "colorram", 16),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
optional_shared_ptr<UINT8> m_stats_ram;
required_shared_ptr<UINT16> m_vid1;
required_shared_ptr<UINT16> m_vid2;
required_shared_ptr<UINT8> m_colorram;
+ required_device<palette_device> m_palette;
int m_clr_offset;
int m_bmc_input;
DECLARE_READ16_MEMBER(bmc_random_read);
diff --git a/src/mame/drivers/bmcpokr.c b/src/mame/drivers/bmcpokr.c
index f2277b628ab..2b42fcde91a 100644
--- a/src/mame/drivers/bmcpokr.c
+++ b/src/mame/drivers/bmcpokr.c
@@ -50,7 +50,8 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this,"maincpu"),
m_videoram(*this, "videoram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
DECLARE_READ16_MEMBER( bmcpokr_unk_r )
@@ -61,6 +62,7 @@ public:
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT16> m_videoram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
virtual void video_start();
UINT32 screen_update_bmcpokr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
diff --git a/src/mame/drivers/bnstars.c b/src/mame/drivers/bnstars.c
index 25d67cae03c..6032250ea8b 100644
--- a/src/mame/drivers/bnstars.c
+++ b/src/mame/drivers/bnstars.c
@@ -113,7 +113,8 @@ public:
m_ms32_tx1_scroll(*this, "tx1_scroll"),
m_ms32_bg1_scroll(*this, "bg1_scroll") ,
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_ms32_tx_tilemap[2];
tilemap_t *m_ms32_bg_tilemap[2];
@@ -168,6 +169,7 @@ public:
IRQ_CALLBACK_MEMBER(irq_callback);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/boogwing.c b/src/mame/drivers/boogwing.c
index 19c7e670c85..7f424640311 100644
--- a/src/mame/drivers/boogwing.c
+++ b/src/mame/drivers/boogwing.c
@@ -359,6 +359,7 @@ static MACHINE_CONFIG_START( boogwing, boogwing_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram2")
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", boogwing_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/boxer.c b/src/mame/drivers/boxer.c
index dfa850d93a2..a502326b587 100644
--- a/src/mame/drivers/boxer.c
+++ b/src/mame/drivers/boxer.c
@@ -34,7 +34,9 @@ public:
m_tile_ram(*this, "tile_ram"),
m_sprite_ram(*this, "sprite_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_tile_ram;
@@ -47,6 +49,8 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(boxer_input_r);
DECLARE_READ8_MEMBER(boxer_misc_r);
diff --git a/src/mame/drivers/buster.c b/src/mame/drivers/buster.c
index 6cc16e6ba77..19d36f3fd75 100644
--- a/src/mame/drivers/buster.c
+++ b/src/mame/drivers/buster.c
@@ -19,7 +19,8 @@ public:
: driver_device(mconfig, type, tag),
m_vram(*this, "vram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_vram;
DECLARE_READ8_MEMBER(test_r);
@@ -28,6 +29,7 @@ public:
UINT32 screen_update_buster(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/cabaret.c b/src/mame/drivers/cabaret.c
index 1a27572709c..909885f4aaa 100644
--- a/src/mame/drivers/cabaret.c
+++ b/src/mame/drivers/cabaret.c
@@ -36,7 +36,8 @@ public:
m_bg_scroll(*this, "bg_scroll"),
m_bg_tile_ram(*this, "bg_tile_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_fg_tile_ram;
required_shared_ptr<UINT8> m_fg_color_ram;
@@ -61,6 +62,7 @@ public:
INTERRUPT_GEN_MEMBER(cabaret_interrupt);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/calorie.c b/src/mame/drivers/calorie.c
index 6336f668577..b5ec68ae743 100644
--- a/src/mame/drivers/calorie.c
+++ b/src/mame/drivers/calorie.c
@@ -91,7 +91,8 @@ public:
m_fg_ram(*this, "fg_ram"),
m_sprites(*this, "sprites"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_fg_ram;
@@ -117,6 +118,7 @@ public:
UINT32 screen_update_calorie(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/cardline.c b/src/mame/drivers/cardline.c
index ba89c4e2977..f974db10da7 100644
--- a/src/mame/drivers/cardline.c
+++ b/src/mame/drivers/cardline.c
@@ -31,7 +31,8 @@ public:
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_video;
required_shared_ptr<UINT8> m_videoram;
@@ -46,6 +47,7 @@ public:
UINT32 screen_update_cardline(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/carrera.c b/src/mame/drivers/carrera.c
index 8be58182c76..63e5e1fb87a 100644
--- a/src/mame/drivers/carrera.c
+++ b/src/mame/drivers/carrera.c
@@ -59,7 +59,8 @@ public:
: driver_device(mconfig, type, tag),
m_tileram(*this, "tileram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_tileram;
DECLARE_READ8_MEMBER(unknown_r);
@@ -67,6 +68,7 @@ public:
UINT32 screen_update_carrera(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/cb2001.c b/src/mame/drivers/cb2001.c
index 38bc972c399..665ba5f2e23 100644
--- a/src/mame/drivers/cb2001.c
+++ b/src/mame/drivers/cb2001.c
@@ -54,7 +54,8 @@ public:
m_vram_fg(*this, "vrafg"),
m_vram_bg(*this, "vrabg"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_vram_fg;
required_shared_ptr<UINT16> m_vram_bg;
@@ -77,6 +78,7 @@ public:
INTERRUPT_GEN_MEMBER(vblank_irq);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/cball.c b/src/mame/drivers/cball.c
index 2433a467a9b..aea0c83f302 100644
--- a/src/mame/drivers/cball.c
+++ b/src/mame/drivers/cball.c
@@ -20,7 +20,9 @@ public:
: driver_device(mconfig, type, tag),
m_video_ram(*this, "video_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -32,6 +34,8 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(cball_vram_w);
DECLARE_READ8_MEMBER(cball_wram_r);
diff --git a/src/mame/drivers/cesclass.c b/src/mame/drivers/cesclass.c
index 8e6eb91e6fc..e9bba7d2fa2 100644
--- a/src/mame/drivers/cesclass.c
+++ b/src/mame/drivers/cesclass.c
@@ -33,7 +33,8 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_vram(*this, "vram"){ }
+ m_vram(*this, "vram"),
+ m_palette(*this, "palette") { }
DECLARE_WRITE16_MEMBER(irq2_ack_w);
DECLARE_WRITE16_MEMBER(irq3_ack_w);
@@ -50,6 +51,7 @@ protected:
required_device<okim6295_device> m_oki;
required_shared_ptr<UINT16> m_vram;
+ required_device<palette_device> m_palette;
// driver_device overrides
virtual void video_start();
diff --git a/src/mame/drivers/chanbara.c b/src/mame/drivers/chanbara.c
index d501ac0865d..ec55121a6f5 100644
--- a/src/mame/drivers/chanbara.c
+++ b/src/mame/drivers/chanbara.c
@@ -64,7 +64,8 @@ public:
m_videoram2(*this, "videoram2"),
m_colorram2(*this, "colorram2"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -82,6 +83,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(chanbara_videoram_w);
DECLARE_WRITE8_MEMBER(chanbara_colorram_w);
diff --git a/src/mame/drivers/chinsan.c b/src/mame/drivers/chinsan.c
index 8d56dda29fa..c2863809c3b 100644
--- a/src/mame/drivers/chinsan.c
+++ b/src/mame/drivers/chinsan.c
@@ -55,7 +55,8 @@ public:
m_video(*this, "video"),
m_maincpu(*this, "maincpu"),
m_adpcm(*this, "adpcm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_video;
@@ -83,6 +84,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<msm5205_device> m_adpcm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/chsuper.c b/src/mame/drivers/chsuper.c
index b50aa6605b0..d51c3e7bc2b 100644
--- a/src/mame/drivers/chsuper.c
+++ b/src/mame/drivers/chsuper.c
@@ -27,7 +27,8 @@ public:
chsuper_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
DECLARE_WRITE8_MEMBER(chsuper_vram_w);
DECLARE_READ8_MEMBER(ff_r);
@@ -37,7 +38,7 @@ public:
required_device<z180_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<palette_device> m_palette;
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
protected:
diff --git a/src/mame/drivers/cliffhgr.c b/src/mame/drivers/cliffhgr.c
index e19a57a0a6c..bb4ac946288 100644
--- a/src/mame/drivers/cliffhgr.c
+++ b/src/mame/drivers/cliffhgr.c
@@ -95,7 +95,8 @@ public:
m_port_bank(0),
m_phillips_code(0) ,
m_maincpu(*this, "maincpu"),
- m_discrete(*this, "discrete") { }
+ m_discrete(*this, "discrete"),
+ m_screen(*this, "screen") { }
required_device<pioneer_pr8210_device> m_laserdisc;
@@ -119,6 +120,7 @@ public:
TIMER_CALLBACK_MEMBER(cliff_irq_callback);
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/drivers/cmmb.c b/src/mame/drivers/cmmb.c
index b68325146ef..d3358af85e6 100644
--- a/src/mame/drivers/cmmb.c
+++ b/src/mame/drivers/cmmb.c
@@ -57,12 +57,14 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_videoram(*this, "videoram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT8> m_videoram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_irq_mask;
diff --git a/src/mame/drivers/cninja.c b/src/mame/drivers/cninja.c
index 6739b1b39a9..e731d16a06f 100644
--- a/src/mame/drivers/cninja.c
+++ b/src/mame/drivers/cninja.c
@@ -954,6 +954,7 @@ static MACHINE_CONFIG_START( cninja, cninja_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", cninja_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
@@ -1020,6 +1021,7 @@ static MACHINE_CONFIG_START( stoneage, cninja_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", cninja_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
@@ -1081,6 +1083,7 @@ static MACHINE_CONFIG_START( cninjabl, cninja_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", cninja_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
@@ -1129,6 +1132,7 @@ static MACHINE_CONFIG_START( edrandy, cninja_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", edrandy_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
@@ -1192,6 +1196,7 @@ static MACHINE_CONFIG_START( robocop2, cninja_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", robocop2_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
@@ -1261,6 +1266,7 @@ static MACHINE_CONFIG_START( mutantf, cninja_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram2")
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", mutantf_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/cntsteer.c b/src/mame/drivers/cntsteer.c
index 13cf865f39c..89c8f9a1eca 100644
--- a/src/mame/drivers/cntsteer.c
+++ b/src/mame/drivers/cntsteer.c
@@ -41,7 +41,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "subcpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -71,6 +72,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<cpu_device> m_subcpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(zerotrgt_vregs_w);
DECLARE_WRITE8_MEMBER(cntsteer_vregs_w);
diff --git a/src/mame/drivers/cobra.c b/src/mame/drivers/cobra.c
index 23e502c9827..2fec3825d46 100644
--- a/src/mame/drivers/cobra.c
+++ b/src/mame/drivers/cobra.c
@@ -610,7 +610,9 @@ public:
m_gfxcpu(*this, "gfxcpu"),
m_gfx_pagetable(*this, "pagetable"),
m_k001604(*this, "k001604"),
- m_ata(*this, "ata")
+ m_ata(*this, "ata"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
}
@@ -620,7 +622,9 @@ public:
required_shared_ptr<UINT64> m_gfx_pagetable;
required_device<k001604_device> m_k001604;
required_device<ata_interface_device> m_ata;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
DECLARE_READ64_MEMBER(main_comram_r);
DECLARE_WRITE64_MEMBER(main_comram_w);
DECLARE_READ64_MEMBER(main_fifo_r);
diff --git a/src/mame/drivers/coinmstr.c b/src/mame/drivers/coinmstr.c
index 9d8efb7a6d8..d7336c5735c 100644
--- a/src/mame/drivers/coinmstr.c
+++ b/src/mame/drivers/coinmstr.c
@@ -39,7 +39,8 @@ public:
m_attr_ram2(*this, "attr_ram2"),
m_attr_ram3(*this, "attr_ram3"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_attr_ram1;
@@ -60,6 +61,7 @@ public:
UINT32 screen_update_coinmstr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/coinmvga.c b/src/mame/drivers/coinmvga.c
index f93a05c4fcf..be9ffa0cdb5 100644
--- a/src/mame/drivers/coinmvga.c
+++ b/src/mame/drivers/coinmvga.c
@@ -226,7 +226,8 @@ public:
: driver_device(mconfig, type, tag),
m_vram(*this, "vram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_vram;
struct { int r,g,b,offs,offs_internal; } m_bgpal, m_fgpal;
@@ -242,6 +243,7 @@ public:
INTERRUPT_GEN_MEMBER(vblank_irq);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/coolridr.c b/src/mame/drivers/coolridr.c
index f29896b5feb..1e40bb8a7f3 100644
--- a/src/mame/drivers/coolridr.c
+++ b/src/mame/drivers/coolridr.c
@@ -320,7 +320,8 @@ public:
m_io_an6(*this, "AN6"),
m_io_an7(*this, "AN7"),
m_io_config(*this, "CONFIG"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen")
{
}
@@ -364,6 +365,7 @@ public:
required_ioport m_io_an7;
required_ioport m_io_config;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
bitmap_ind16 m_temp_bitmap_sprites;
bitmap_ind16 m_temp_bitmap_sprites2;
diff --git a/src/mame/drivers/corona.c b/src/mame/drivers/corona.c
index ceaaf8f0dee..31ec8eaae30 100644
--- a/src/mame/drivers/corona.c
+++ b/src/mame/drivers/corona.c
@@ -323,7 +323,8 @@ public:
corona_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu") { }
+ m_soundcpu(*this, "soundcpu"),
+ m_screen(*this, "screen") { }
UINT8 m_blitter_x_reg;
UINT8 m_blitter_y_reg;
@@ -354,6 +355,7 @@ public:
UINT32 screen_update_luckyrlt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_soundcpu;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/drivers/cshooter.c b/src/mame/drivers/cshooter.c
index e8d31d44084..079bd86dd69 100644
--- a/src/mame/drivers/cshooter.c
+++ b/src/mame/drivers/cshooter.c
@@ -100,7 +100,8 @@ public:
m_txram(*this, "txram"),
m_mainram(*this, "mainram"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -109,6 +110,7 @@ public:
optional_shared_ptr<UINT8> m_mainram;
optional_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_txtilemap;
int m_coin_stat;
diff --git a/src/mame/drivers/cubeqst.c b/src/mame/drivers/cubeqst.c
index fc92f7c2318..2b46d58a4b0 100644
--- a/src/mame/drivers/cubeqst.c
+++ b/src/mame/drivers/cubeqst.c
@@ -33,7 +33,8 @@ public:
m_laserdisc(*this, "laserdisc"),
m_rotatecpu(*this, "rotate_cpu"),
m_linecpu(*this, "line_cpu"),
- m_soundcpu(*this, "sound_cpu") { }
+ m_soundcpu(*this, "sound_cpu"),
+ m_screen(*this, "screen") { }
UINT8 *m_depth_buffer;
int m_video_field;
@@ -43,6 +44,7 @@ public:
required_device<cquestrot_cpu_device> m_rotatecpu;
required_device<cquestlin_cpu_device> m_linecpu;
required_device<cquestsnd_cpu_device> m_soundcpu;
+ required_device<screen_device> m_screen;
rgb_t *m_colormap;
DECLARE_WRITE16_MEMBER(palette_w);
DECLARE_READ16_MEMBER(line_r);
diff --git a/src/mame/drivers/cultures.c b/src/mame/drivers/cultures.c
index 65726ae71d5..91ae9dd37bf 100644
--- a/src/mame/drivers/cultures.c
+++ b/src/mame/drivers/cultures.c
@@ -27,7 +27,8 @@ public:
m_bg2_regs_x(*this, "bg2_regs_x"),
m_bg2_regs_y(*this, "bg2_regs_y"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_paletteram[0x4000];
/* memory pointers */
@@ -62,6 +63,7 @@ public:
INTERRUPT_GEN_MEMBER(cultures_interrupt);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/cybertnk.c b/src/mame/drivers/cybertnk.c
index 62237f7e4de..63f18b2f2d1 100644
--- a/src/mame/drivers/cybertnk.c
+++ b/src/mame/drivers/cybertnk.c
@@ -191,7 +191,8 @@ public:
m_roadram(*this, "roadram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_tilemap0_tilemap;
tilemap_t *m_tilemap1_tilemap;
@@ -228,6 +229,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/* tile format
diff --git a/src/mame/drivers/cyclemb.c b/src/mame/drivers/cyclemb.c
index 08d6c13ca53..4b053ac1278 100644
--- a/src/mame/drivers/cyclemb.c
+++ b/src/mame/drivers/cyclemb.c
@@ -89,7 +89,8 @@ public:
m_obj1_ram(*this, "obj1_ram"),
m_obj2_ram(*this, "obj2_ram"),
m_obj3_ram(*this, "obj3_ram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -100,6 +101,7 @@ public:
required_shared_ptr<UINT8> m_obj2_ram;
required_shared_ptr<UINT8> m_obj3_ram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
struct
{
diff --git a/src/mame/drivers/dacholer.c b/src/mame/drivers/dacholer.c
index 76201b601b0..b78ce6bbce2 100644
--- a/src/mame/drivers/dacholer.c
+++ b/src/mame/drivers/dacholer.c
@@ -48,7 +48,8 @@ public:
m_fgvideoram(*this, "fgvideoram"),
m_spriteram(*this, "spriteram"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* devices */
required_device<cpu_device> m_maincpu;
@@ -60,7 +61,8 @@ public:
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<palette_device> m_palette;
+
/* video-related */
tilemap_t *m_bg_tilemap;
tilemap_t *m_fg_tilemap;
diff --git a/src/mame/drivers/dassault.c b/src/mame/drivers/dassault.c
index 188da91ff27..a630a89b50f 100644
--- a/src/mame/drivers/dassault.c
+++ b/src/mame/drivers/dassault.c
@@ -511,6 +511,7 @@ static MACHINE_CONFIG_START( dassault, dassault_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram2")
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", dassault_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/dblcrown.c b/src/mame/drivers/dblcrown.c
index b653fb9c3ba..ea961abaedd 100644
--- a/src/mame/drivers/dblcrown.c
+++ b/src/mame/drivers/dblcrown.c
@@ -53,12 +53,14 @@ public:
dblcrown_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
// devices
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
// screen updates
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
diff --git a/src/mame/drivers/ddayjlc.c b/src/mame/drivers/ddayjlc.c
index d3bfa2d2f3b..43413658de7 100644
--- a/src/mame/drivers/ddayjlc.c
+++ b/src/mame/drivers/ddayjlc.c
@@ -67,7 +67,8 @@ public:
m_bgram(*this, "bgram"),
m_audiocpu(*this, "audiocpu"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_mainram;
@@ -113,6 +114,7 @@ public:
INTERRUPT_GEN_MEMBER(ddayjlc_snd_interrupt);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/ddealer.c b/src/mame/drivers/ddealer.c
index 942724077a2..5a1a2108019 100644
--- a/src/mame/drivers/ddealer.c
+++ b/src/mame/drivers/ddealer.c
@@ -131,7 +131,8 @@ public:
m_work_ram(*this, "work_ram"),
m_mcu_shared_ram(*this, "mcu_shared_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_vregs;
@@ -167,6 +168,7 @@ public:
TIMER_DEVICE_CALLBACK_MEMBER(ddealer_mcu_sim);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
void ddealer_draw_video_layer( UINT16* vreg_base, UINT16* top, UINT16* bottom, bitmap_ind16 &bitmap, const rectangle &cliprect, int flipy);
};
diff --git a/src/mame/drivers/deco156.c b/src/mame/drivers/deco156.c
index 4bf6936c462..bdf93f7f29c 100644
--- a/src/mame/drivers/deco156.c
+++ b/src/mame/drivers/deco156.c
@@ -32,7 +32,8 @@ public:
m_deco_tilegen1(*this, "tilegen1"),
m_oki1(*this, "oki1"),
m_oki2(*this, "oki2"),
- m_sprgen(*this, "spritegen")
+ m_sprgen(*this, "spritegen"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -41,6 +42,7 @@ public:
optional_device<okim6295_device> m_oki1;
optional_device<okim6295_device> m_oki2;
optional_device<decospr_device> m_sprgen;
+ required_device<palette_device> m_palette;
/* memory */
UINT16 m_pf1_rowscroll[0x800/2];
diff --git a/src/mame/drivers/deco_ld.c b/src/mame/drivers/deco_ld.c
index 37bd42e5114..e89a7ea22aa 100644
--- a/src/mame/drivers/deco_ld.c
+++ b/src/mame/drivers/deco_ld.c
@@ -126,7 +126,9 @@ public:
m_attr0(*this, "attr0"),
m_vram1(*this, "vram1"),
m_attr1(*this, "attr1"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -137,7 +139,9 @@ public:
required_shared_ptr<UINT8> m_vram1;
required_shared_ptr<UINT8> m_attr1;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT8 m_laserdisc_data;
int m_nmimask;
DECLARE_WRITE8_MEMBER(rblaster_sound_w);
diff --git a/src/mame/drivers/destroyr.c b/src/mame/drivers/destroyr.c
index 7a82dafa039..a0fe9f0d787 100644
--- a/src/mame/drivers/destroyr.c
+++ b/src/mame/drivers/destroyr.c
@@ -31,7 +31,9 @@ public:
m_major_obj_ram(*this, "major_obj_ram"),
m_minor_obj_ram(*this, "minor_obj_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_alpha_num_ram;
@@ -52,6 +54,8 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(destroyr_misc_w);
DECLARE_WRITE8_MEMBER(destroyr_cursor_load_w);
diff --git a/src/mame/drivers/dietgo.c b/src/mame/drivers/dietgo.c
index da4cbb23e91..bd33516a765 100644
--- a/src/mame/drivers/dietgo.c
+++ b/src/mame/drivers/dietgo.c
@@ -233,6 +233,7 @@ static MACHINE_CONFIG_START( dietgo, dietgo_state )
MCFG_GFXDECODE_ADD("gfxdecode", dietgo)
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", dietgo_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/discoboy.c b/src/mame/drivers/discoboy.c
index 7eb943f1528..a560229fa95 100644
--- a/src/mame/drivers/discoboy.c
+++ b/src/mame/drivers/discoboy.c
@@ -54,7 +54,8 @@ public:
m_audiocpu(*this, "audiocpu") ,
m_maincpu(*this, "maincpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* video-related */
UINT8 m_ram_bank;
@@ -97,6 +98,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/diverboy.c b/src/mame/drivers/diverboy.c
index 798b2adf499..13531059fef 100644
--- a/src/mame/drivers/diverboy.c
+++ b/src/mame/drivers/diverboy.c
@@ -62,7 +62,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -79,6 +81,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/dlair.c b/src/mame/drivers/dlair.c
index 28c109d5845..53daef6abf8 100644
--- a/src/mame/drivers/dlair.c
+++ b/src/mame/drivers/dlair.c
@@ -58,7 +58,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_speaker(*this, "speaker"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -128,6 +129,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<speaker_sound_device> m_speaker;
optional_device<gfxdecode_device> m_gfxdecode;
+ optional_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/dmndrby.c b/src/mame/drivers/dmndrby.c
index b05268ade7d..c53a87c3a1b 100644
--- a/src/mame/drivers/dmndrby.c
+++ b/src/mame/drivers/dmndrby.c
@@ -69,7 +69,8 @@ public:
m_dderby_vidattribs(*this, "vidattribs"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_scroll_ram;
required_shared_ptr<UINT8> m_sprite_ram;
@@ -91,6 +92,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/dominob.c b/src/mame/drivers/dominob.c
index e33aa9e6b81..97eccc1bdf1 100644
--- a/src/mame/drivers/dominob.c
+++ b/src/mame/drivers/dominob.c
@@ -73,7 +73,8 @@ public:
m_spriteram(*this, "spriteram"),
m_bgram(*this, "bgram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -91,6 +92,7 @@ public:
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
void dominob_state::video_start()
diff --git a/src/mame/drivers/dorachan.c b/src/mame/drivers/dorachan.c
index b437335d662..5d8f46f3311 100644
--- a/src/mame/drivers/dorachan.c
+++ b/src/mame/drivers/dorachan.c
@@ -21,7 +21,8 @@ public:
dorachan_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -37,6 +38,7 @@ public:
virtual void machine_reset();
UINT32 screen_update_dorachan(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/drivers/dotrikun.c b/src/mame/drivers/dotrikun.c
index e0bce462d56..98e0c4b4308 100644
--- a/src/mame/drivers/dotrikun.c
+++ b/src/mame/drivers/dotrikun.c
@@ -30,7 +30,8 @@ public:
dotrikun_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_dotrikun_bitmap(*this, "dotrikun_bitmap"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen") { }
/* memory pointers */
required_shared_ptr<UINT8> m_dotrikun_bitmap;
@@ -42,6 +43,7 @@ public:
virtual void machine_reset();
UINT32 screen_update_dotrikun(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/drivers/dreamwld.c b/src/mame/drivers/dreamwld.c
index 193ba3577e6..61fc8e2948e 100644
--- a/src/mame/drivers/dreamwld.c
+++ b/src/mame/drivers/dreamwld.c
@@ -133,7 +133,8 @@ public:
m_vregs(*this, "vregs"),
m_workram(*this, "workram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT32> m_spriteram;
@@ -170,6 +171,7 @@ public:
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/drtomy.c b/src/mame/drivers/drtomy.c
index 8792189ccfe..47c9608a4d5 100644
--- a/src/mame/drivers/drtomy.c
+++ b/src/mame/drivers/drtomy.c
@@ -21,7 +21,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_videoram_fg;
@@ -48,6 +49,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/dunhuang.c b/src/mame/drivers/dunhuang.c
index ad04a3a4074..e33395fd04e 100644
--- a/src/mame/drivers/dunhuang.c
+++ b/src/mame/drivers/dunhuang.c
@@ -64,7 +64,9 @@ public:
dunhuang_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* video-related */
tilemap_t *m_tmap;
@@ -127,6 +129,8 @@ public:
UINT32 screen_update_dunhuang(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/dwarfd.c b/src/mame/drivers/dwarfd.c
index 89b711d57e6..1f5eb9ee322 100644
--- a/src/mame/drivers/dwarfd.c
+++ b/src/mame/drivers/dwarfd.c
@@ -306,7 +306,8 @@ public:
dwarfd_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this,"maincpu"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* video-related */
@@ -335,6 +336,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(i8275_preg_w);
DECLARE_READ8_MEMBER(i8275_preg_r);
diff --git a/src/mame/drivers/egghunt.c b/src/mame/drivers/egghunt.c
index 289bb88ac64..fff58e83eef 100644
--- a/src/mame/drivers/egghunt.c
+++ b/src/mame/drivers/egghunt.c
@@ -54,7 +54,8 @@ public:
m_atram(*this, "atram"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* video-related */
tilemap_t *m_bg_tilemap;
@@ -88,6 +89,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/enigma2.c b/src/mame/drivers/enigma2.c
index 96369bf7899..fbf9b9c7b4d 100644
--- a/src/mame/drivers/enigma2.c
+++ b/src/mame/drivers/enigma2.c
@@ -63,7 +63,8 @@ public:
: driver_device(mconfig, type, tag),
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"){ }
+ m_audiocpu(*this, "audiocpu"),
+ m_screen(*this, "screen"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -81,6 +82,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
+ required_device<screen_device> m_screen;
DECLARE_READ8_MEMBER(dip_switch_r);
DECLARE_WRITE8_MEMBER(sound_data_w);
DECLARE_WRITE8_MEMBER(enigma2_flip_screen_w);
diff --git a/src/mame/drivers/esh.c b/src/mame/drivers/esh.c
index 705c88b5bc2..83120000287 100644
--- a/src/mame/drivers/esh.c
+++ b/src/mame/drivers/esh.c
@@ -42,7 +42,8 @@ public:
m_tile_ram(*this, "tile_ram"),
m_tile_control_ram(*this, "tile_ctrl_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<pioneer_ldv1000_device> m_laserdisc;
required_shared_ptr<UINT8> m_tile_ram;
@@ -60,6 +61,7 @@ public:
INTERRUPT_GEN_MEMBER(vblank_callback_esh);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
diff --git a/src/mame/drivers/expro02.c b/src/mame/drivers/expro02.c
index f506c1a79b0..ade25ce83f9 100644
--- a/src/mame/drivers/expro02.c
+++ b/src/mame/drivers/expro02.c
@@ -164,7 +164,8 @@ public:
m_view2_0(*this, "view2_0"),
m_kaneko_spr(*this, "kan_spr"),
m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT16> m_galsnew_bg_pixram;
optional_shared_ptr<UINT16> m_galsnew_fg_pixram;
@@ -185,6 +186,7 @@ public:
UINT32 screen_update_galsnew(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
TIMER_DEVICE_CALLBACK_MEMBER(expro02_scanline);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/feversoc.c b/src/mame/drivers/feversoc.c
index 2617141d05d..67a976900a5 100644
--- a/src/mame/drivers/feversoc.c
+++ b/src/mame/drivers/feversoc.c
@@ -74,7 +74,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT16 m_x;
required_shared_ptr<UINT32> m_spriteram;
@@ -88,6 +89,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/firefox.c b/src/mame/drivers/firefox.c
index dd2d9f9a418..20b02f0fec8 100644
--- a/src/mame/drivers/firefox.c
+++ b/src/mame/drivers/firefox.c
@@ -47,7 +47,9 @@ public:
m_tile_palette(*this, "tile_palette"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<phillips_22vp931_device> m_laserdisc;
required_shared_ptr<unsigned char> m_tileram;
@@ -108,6 +110,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/flipjack.c b/src/mame/drivers/flipjack.c
index 5d69522a933..11c5bfe0727 100644
--- a/src/mame/drivers/flipjack.c
+++ b/src/mame/drivers/flipjack.c
@@ -97,7 +97,8 @@ public:
m_fbram(*this, "fb_ram"),
m_vram(*this, "vram"),
m_cram(*this, "cram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
m_soundlatch = 0;
m_bank = 0;
@@ -113,6 +114,7 @@ public:
required_shared_ptr<UINT8> m_cram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_soundlatch;
UINT8 m_bank;
diff --git a/src/mame/drivers/flyball.c b/src/mame/drivers/flyball.c
index 789901f5b6c..4bbdc7f8ce6 100644
--- a/src/mame/drivers/flyball.c
+++ b/src/mame/drivers/flyball.c
@@ -32,7 +32,9 @@ public:
m_playfield_ram(*this, "playfield_ram"),
m_rombase(*this, "rombase"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_playfield_ram;
@@ -53,6 +55,8 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(flyball_input_r);
DECLARE_READ8_MEMBER(flyball_scanline_r);
diff --git a/src/mame/drivers/fortecar.c b/src/mame/drivers/fortecar.c
index 8f39e3a2e77..20067ee6240 100644
--- a/src/mame/drivers/fortecar.c
+++ b/src/mame/drivers/fortecar.c
@@ -335,7 +335,8 @@ public:
m_maincpu(*this,"maincpu"),
m_vram(*this, "vram"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT8> m_vram;
@@ -350,6 +351,7 @@ public:
UINT32 screen_update_fortecar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/fresh.c b/src/mame/drivers/fresh.c
index 8816eaff0a5..2c16ebfbc27 100644
--- a/src/mame/drivers/fresh.c
+++ b/src/mame/drivers/fresh.c
@@ -38,7 +38,8 @@ public:
m_paletteram_1(*this, "paletteram_1"),
m_paletteram_2(*this, "paletteram_2"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_bg_tilemap;
tilemap_t *m_bg_2_tilemap;
@@ -102,6 +103,7 @@ public:
UINT32 screen_update_fresh(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/galaxi.c b/src/mame/drivers/galaxi.c
index f23a6805ea7..603ebb55667 100644
--- a/src/mame/drivers/galaxi.c
+++ b/src/mame/drivers/galaxi.c
@@ -56,7 +56,9 @@ public:
m_bg4_ram(*this, "bg4_ram"),
m_fg_ram(*this, "fg_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_bg1_ram;
@@ -100,6 +102,8 @@ public:
void show_out( );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/galgame.c b/src/mame/drivers/galgame.c
index 0cf0e65483c..e575588f709 100644
--- a/src/mame/drivers/galgame.c
+++ b/src/mame/drivers/galgame.c
@@ -19,7 +19,8 @@ class galaxygame_state : public driver_device
public:
galaxygame_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
UINT16 m_clk;
@@ -51,6 +52,7 @@ public:
INTERRUPT_GEN_MEMBER(galaxygame_irq);
IRQ_CALLBACK_MEMBER(galaxygame_irq_callback);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
/*************************************
diff --git a/src/mame/drivers/galpani3.c b/src/mame/drivers/galpani3.c
index 4bd6a3a3470..37eae2e0521 100644
--- a/src/mame/drivers/galpani3.c
+++ b/src/mame/drivers/galpani3.c
@@ -81,7 +81,8 @@ public:
m_maincpu(*this,"maincpu"),
m_grap2_0(*this,"grap2_0"),
m_grap2_1(*this,"grap2_1"),
- m_grap2_2(*this,"grap2_2")
+ m_grap2_2(*this,"grap2_2"),
+ m_palette(*this, "palette")
{ }
@@ -93,6 +94,7 @@ public:
required_device<kaneko_grap2_device> m_grap2_0;
required_device<kaneko_grap2_device> m_grap2_1;
required_device<kaneko_grap2_device> m_grap2_2;
+ required_device<palette_device> m_palette;
UINT16 m_priority_buffer_scrollx;
UINT16 m_priority_buffer_scrolly;
diff --git a/src/mame/drivers/gamecstl.c b/src/mame/drivers/gamecstl.c
index 60129b34ee3..8e95083ddc8 100644
--- a/src/mame/drivers/gamecstl.c
+++ b/src/mame/drivers/gamecstl.c
@@ -76,10 +76,12 @@ public:
gamecstl_state(const machine_config &mconfig, device_type type, const char *tag)
: pcat_base_state(mconfig, type, tag),
m_cga_ram(*this, "cga_ram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_cga_ram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT32 *m_bios_ram;
UINT8 m_mxtc_config_reg[256];
UINT8 m_piix4_config_reg[4][256];
diff --git a/src/mame/drivers/gei.c b/src/mame/drivers/gei.c
index 9fee1ee7f06..e2fe669fe1b 100644
--- a/src/mame/drivers/gei.c
+++ b/src/mame/drivers/gei.c
@@ -84,12 +84,14 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_dac(*this, "dac"),
- m_ticket(*this, "ticket") { }
+ m_ticket(*this, "ticket"),
+ m_screen(*this, "screen") { }
required_device<cpu_device> m_maincpu;
required_device<dac_device> m_dac;
optional_device<ticket_dispenser_device> m_ticket;
-
+ required_device<screen_device> m_screen;
+
virtual void video_start();
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
diff --git a/src/mame/drivers/go2000.c b/src/mame/drivers/go2000.c
index 2b71b135dbd..25c8876389c 100644
--- a/src/mame/drivers/go2000.c
+++ b/src/mame/drivers/go2000.c
@@ -43,7 +43,9 @@ public:
m_videoram2(*this, "videoram2"),
m_soundcpu(*this, "soundcpu"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_videoram;
@@ -59,6 +61,8 @@ public:
UINT32 screen_update_go2000(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/goldnpkr.c b/src/mame/drivers/goldnpkr.c
index dbf5ba93e72..95fd3bdcfa6 100644
--- a/src/mame/drivers/goldnpkr.c
+++ b/src/mame/drivers/goldnpkr.c
@@ -1029,7 +1029,8 @@ public:
m_colorram(*this, "colorram"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
@@ -1086,6 +1087,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/goodejan.c b/src/mame/drivers/goodejan.c
index 4298d77058f..809ae471c83 100644
--- a/src/mame/drivers/goodejan.c
+++ b/src/mame/drivers/goodejan.c
@@ -68,7 +68,8 @@ public:
m_sc3_vram(*this, "sc3_vram"),
m_spriteram16(*this, "sprite_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_sc0_vram;
required_shared_ptr<UINT16> m_sc1_vram;
@@ -77,6 +78,7 @@ public:
required_shared_ptr<UINT16> m_spriteram16;
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_sc0_tilemap;
tilemap_t *m_sc1_tilemap;
tilemap_t *m_sc2_tilemap;
diff --git a/src/mame/drivers/gpworld.c b/src/mame/drivers/gpworld.c
index 8a93e3c59a1..5a1eca1fef6 100644
--- a/src/mame/drivers/gpworld.c
+++ b/src/mame/drivers/gpworld.c
@@ -59,7 +59,8 @@ public:
m_palette_ram(*this, "palette_ram"),
m_tile_ram(*this, "tile_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_nmi_enable;
UINT8 m_start_lamp;
@@ -85,6 +86,7 @@ public:
void gpworld_draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
diff --git a/src/mame/drivers/gstream.c b/src/mame/drivers/gstream.c
index 8773092d56c..7102a248d79 100644
--- a/src/mame/drivers/gstream.c
+++ b/src/mame/drivers/gstream.c
@@ -146,7 +146,8 @@ public:
m_workram(*this, "workram"),
m_vram(*this, "vram"),
m_paletteram(*this, "paletteram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
m_toggle = 0;
}
@@ -205,6 +206,7 @@ public:
void rearrange_tile_data(UINT8* ROM, UINT32* NEW, UINT32* NEW2);
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
CUSTOM_INPUT_MEMBER(gstream_state::x2222_toggle_r) // or the game hangs when starting, might be a status flag for the sound?
diff --git a/src/mame/drivers/gticlub.c b/src/mame/drivers/gticlub.c
index ead1976c286..4df129173b4 100644
--- a/src/mame/drivers/gticlub.c
+++ b/src/mame/drivers/gticlub.c
@@ -248,7 +248,8 @@ public:
m_dsp2(*this, "dsp2"),
m_k056800(*this, "k056800"),
m_adc1038(*this, "adc1038"),
- m_eeprom(*this, "eeprom") { }
+ m_eeprom(*this, "eeprom"),
+ m_palette(*this, "palette") { }
// TODO: Needs verification on real hardware
static const int m_sound_timer_usec = 2400;
@@ -259,8 +260,9 @@ public:
required_device<adsp21062_device> m_dsp;
optional_device<cpu_device> m_dsp2;
required_device<k056800_device> m_k056800;
- required_device<adc1038_device> m_adc1038;
+ required_device<adc1038_device> m_adc1038;
required_device<eeprom_serial_93cxx_device> m_eeprom;
+ required_device<palette_device> m_palette;
DECLARE_WRITE32_MEMBER(paletteram32_w);
DECLARE_READ32_MEMBER(gticlub_k001604_tile_r);
diff --git a/src/mame/drivers/guab.c b/src/mame/drivers/guab.c
index 419152c1b65..129db5480bd 100644
--- a/src/mame/drivers/guab.c
+++ b/src/mame/drivers/guab.c
@@ -79,12 +79,14 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_tms34061(*this, "tms34061"),
- m_sn(*this, "snsnd") { }
+ m_sn(*this, "snsnd"),
+ m_palette(*this, "palette") { }
/* devices */
required_device<cpu_device> m_maincpu;
required_device<tms34061_device> m_tms34061;
required_device<sn76489_device> m_sn;
+ required_device<palette_device> m_palette;
struct ef9369 m_pal;
emu_timer *m_fdc_timer;
diff --git a/src/mame/drivers/gunpey.c b/src/mame/drivers/gunpey.c
index c43f39a08dd..3be78ec4bf7 100644
--- a/src/mame/drivers/gunpey.c
+++ b/src/mame/drivers/gunpey.c
@@ -201,12 +201,14 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_wram(*this, "wram")
+ m_wram(*this, "wram"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki;
required_shared_ptr<UINT16> m_wram;
+ required_device<palette_device> m_palette;
UINT16 *m_blit_buffer;
UINT16 m_blit_ram[0x10];
diff --git a/src/mame/drivers/halleys.c b/src/mame/drivers/halleys.c
index ad3ab610379..625fd966359 100644
--- a/src/mame/drivers/halleys.c
+++ b/src/mame/drivers/halleys.c
@@ -214,7 +214,8 @@ public:
m_blitter_ram(*this, "blitter_ram"),
m_io_ram(*this, "io_ram"),
m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu") { }
+ m_audiocpu(*this, "audiocpu"),
+ m_palette(*this, "palette") { }
UINT16 *m_render_layer[MAX_LAYERS];
UINT8 m_sound_fifo[MAX_SOUNDS];
@@ -282,6 +283,7 @@ public:
void init_common();
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/highvdeo.c b/src/mame/drivers/highvdeo.c
index c3b43707c76..eec9bf14eb8 100644
--- a/src/mame/drivers/highvdeo.c
+++ b/src/mame/drivers/highvdeo.c
@@ -111,7 +111,8 @@ public:
: driver_device(mconfig, type, tag),
m_blit_ram(*this, "blit_ram"),
m_maincpu(*this, "maincpu"),
- m_okim6376(*this, "oki") { }
+ m_okim6376(*this, "oki"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_blit_ram;
UINT16 m_vblank_bit;
@@ -154,6 +155,7 @@ public:
INTERRUPT_GEN_MEMBER(vblank_irq_80186);
required_device<cpu_device> m_maincpu;
required_device<okim6376_device> m_okim6376;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/hitpoker.c b/src/mame/drivers/hitpoker.c
index 6fefcfc8f1e..3efc5316098 100644
--- a/src/mame/drivers/hitpoker.c
+++ b/src/mame/drivers/hitpoker.c
@@ -58,7 +58,8 @@ public:
: driver_device(mconfig, type, tag),
m_sys_regs(*this, "sys_regs"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_sys_regs;
@@ -88,6 +89,7 @@ public:
INTERRUPT_GEN_MEMBER(hitpoker_irq);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/hotblock.c b/src/mame/drivers/hotblock.c
index de7a58c6340..3038280c80b 100644
--- a/src/mame/drivers/hotblock.c
+++ b/src/mame/drivers/hotblock.c
@@ -51,7 +51,8 @@ public:
hotblock_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_vram(*this, "vram"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_vram;
@@ -71,6 +72,7 @@ public:
UINT32 screen_update_hotblock(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(hotblocks_irq);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/hvyunit.c b/src/mame/drivers/hvyunit.c
index 7e21642c5c3..294bed8c93e 100644
--- a/src/mame/drivers/hvyunit.c
+++ b/src/mame/drivers/hvyunit.c
@@ -83,7 +83,8 @@ public:
m_mermaid(*this, "mermaid"),
m_soundcpu(*this, "soundcpu"),
m_pandora(*this, "pandora"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* Video */
@@ -109,6 +110,7 @@ public:
required_device<cpu_device> m_soundcpu;
required_device<kaneko_pandora_device> m_pandora;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(trigger_nmi_on_slave_cpu);
DECLARE_WRITE8_MEMBER(master_bankswitch_w);
diff --git a/src/mame/drivers/igs009.c b/src/mame/drivers/igs009.c
index c70cb892f54..bfc0d661727 100644
--- a/src/mame/drivers/igs009.c
+++ b/src/mame/drivers/igs009.c
@@ -44,7 +44,9 @@ public:
m_fg_tile_ram(*this, "fg_tile_ram"),
m_fg_color_ram(*this, "fg_color_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_bg_scroll;
required_shared_ptr<UINT8> m_gp98_reel1_ram;
@@ -95,6 +97,8 @@ public:
INTERRUPT_GEN_MEMBER(jingbell_interrupt);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/igs011.c b/src/mame/drivers/igs011.c
index 68fa2d07ed0..e028fb385ad 100644
--- a/src/mame/drivers/igs011.c
+++ b/src/mame/drivers/igs011.c
@@ -87,7 +87,9 @@ public:
m_maincpu(*this, "maincpu"),
m_priority_ram(*this, "priority_ram"),
m_vbowl_trackball(*this, "vbowl_trackball"),
- m_oki(*this, "oki"){ }
+ m_oki(*this, "oki"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette"){ }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT16> m_priority_ram;
@@ -219,6 +221,8 @@ public:
void lhb2_decrypt_gfx();
void drgnwrld_gfx_decrypt();
optional_device<okim6295_device> m_oki;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/igs017.c b/src/mame/drivers/igs017.c
index a043d4152d8..336f6a0bc71 100644
--- a/src/mame/drivers/igs017.c
+++ b/src/mame/drivers/igs017.c
@@ -64,7 +64,9 @@ public:
m_oki(*this, "oki"),
m_igs025(*this,"igs025"),
m_igs022(*this,"igs022"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
int m_input_addr;
@@ -76,6 +78,8 @@ public:
optional_device<igs025_device> m_igs025; // Mj Shuang Long Qiang Zhu 2
optional_device<igs022_device> m_igs022; // Mj Shuang Long Qiang Zhu 2
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
void igs025_to_igs022_callback( void );
int m_toggle;
diff --git a/src/mame/drivers/igs_m027.c b/src/mame/drivers/igs_m027.c
index 9501eaba080..e005f8ffac8 100644
--- a/src/mame/drivers/igs_m027.c
+++ b/src/mame/drivers/igs_m027.c
@@ -38,7 +38,8 @@ public:
m_igs_tx_videoram(*this, "igs_tx_videoram"),
m_igs_bg_videoram(*this, "igs_bg_videoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_igs_mainram;
required_shared_ptr<UINT32> m_igs_cg_videoram;
@@ -74,6 +75,7 @@ public:
void pgm_create_dummy_internal_arm_region();
required_device<cpu_device> m_maincpu;
optional_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/igspoker.c b/src/mame/drivers/igspoker.c
index f9962538e76..10ff8524721 100644
--- a/src/mame/drivers/igspoker.c
+++ b/src/mame/drivers/igspoker.c
@@ -80,13 +80,17 @@ public:
m_bg_tile_ram(*this, "bg_tile_ram"),
m_fg_tile_ram(*this, "fg_tile_ram"),
m_fg_color_ram(*this, "fg_color_ram"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette"){ }
required_device<cpu_device> m_maincpu;
optional_shared_ptr<UINT8> m_bg_tile_ram;
required_shared_ptr<UINT8> m_fg_tile_ram;
required_shared_ptr<UINT8> m_fg_color_ram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int m_nmi_enable;
int m_bg_enable;
int m_hopper;
diff --git a/src/mame/drivers/intrscti.c b/src/mame/drivers/intrscti.c
index 96e23952ca5..c7bebe82f17 100644
--- a/src/mame/drivers/intrscti.c
+++ b/src/mame/drivers/intrscti.c
@@ -23,13 +23,15 @@ public:
m_maincpu(*this,"maincpu"),
m_subcpu(*this,"subcpu"),
m_vram(*this, "vram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
required_shared_ptr<UINT8> m_vram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_DRIVER_INIT(intrscti);
virtual void video_start();
diff --git a/src/mame/drivers/istellar.c b/src/mame/drivers/istellar.c
index 757e5ab5035..88fee59eeaa 100644
--- a/src/mame/drivers/istellar.c
+++ b/src/mame/drivers/istellar.c
@@ -36,7 +36,8 @@ public:
m_sprite_ram(*this, "sprite_ram"),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<pioneer_ldv1000_device> m_laserdisc;
required_shared_ptr<UINT8> m_tile_ram;
@@ -61,6 +62,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/itgambl2.c b/src/mame/drivers/itgambl2.c
index fc85ccf9144..a93da04d317 100644
--- a/src/mame/drivers/itgambl2.c
+++ b/src/mame/drivers/itgambl2.c
@@ -62,7 +62,8 @@ class itgambl2_state : public driver_device
public:
itgambl2_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
int m_test_x;
int m_test_y;
@@ -72,6 +73,7 @@ public:
DECLARE_PALETTE_INIT(itgambl2);
UINT32 screen_update_itgambl2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/itgambl3.c b/src/mame/drivers/itgambl3.c
index 7480ce41cf3..86269dd5f72 100644
--- a/src/mame/drivers/itgambl3.c
+++ b/src/mame/drivers/itgambl3.c
@@ -50,7 +50,8 @@ class itgambl3_state : public driver_device
public:
itgambl3_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
int m_test_x;
int m_test_y;
@@ -60,6 +61,7 @@ public:
DECLARE_PALETTE_INIT(itgambl3);
UINT32 screen_update_itgambl3(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/itgamble.c b/src/mame/drivers/itgamble.c
index 0b7d3dd73b5..62cec511613 100644
--- a/src/mame/drivers/itgamble.c
+++ b/src/mame/drivers/itgamble.c
@@ -64,7 +64,8 @@ class itgamble_state : public driver_device
public:
itgamble_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu")
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette")
{ }
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -73,6 +74,7 @@ protected:
// devices
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
// driver_device overrides
virtual void machine_reset();
diff --git a/src/mame/drivers/jackie.c b/src/mame/drivers/jackie.c
index 536808c94af..20d2e1d47ba 100644
--- a/src/mame/drivers/jackie.c
+++ b/src/mame/drivers/jackie.c
@@ -61,7 +61,9 @@ public:
m_reel3_ram(*this, "reel3_ram"),
m_fg_tile_ram(*this, "fg_tile_ram"),
m_fg_color_ram(*this, "fg_color_ram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT8> m_bg_scroll2;
@@ -72,6 +74,9 @@ public:
required_shared_ptr<UINT8> m_fg_tile_ram;
required_shared_ptr<UINT8> m_fg_color_ram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
int m_exp_bank;
tilemap_t *m_fg_tilemap;
tilemap_t *m_reel1_tilemap;
diff --git a/src/mame/drivers/jackpool.c b/src/mame/drivers/jackpool.c
index d84904f675d..1d8b9cd1f19 100644
--- a/src/mame/drivers/jackpool.c
+++ b/src/mame/drivers/jackpool.c
@@ -32,7 +32,8 @@ public:
m_io(*this, "io"),
m_maincpu(*this, "maincpu"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_vram;
UINT8 m_map_vreg;
@@ -47,6 +48,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/jalmah.c b/src/mame/drivers/jalmah.c
index 5cdc3857507..6bc754c54d4 100644
--- a/src/mame/drivers/jalmah.c
+++ b/src/mame/drivers/jalmah.c
@@ -128,7 +128,8 @@ public:
m_jm_shared_ram(*this, "jshared_ram"),
m_jm_mcu_code(*this, "jmcu_code"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_sc0_tilemap_0;
tilemap_t *m_sc0_tilemap_1;
@@ -223,6 +224,7 @@ public:
void second_mcu_run();
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/jangou.c b/src/mame/drivers/jangou.c
index e1b7855c4db..646e49e198d 100644
--- a/src/mame/drivers/jangou.c
+++ b/src/mame/drivers/jangou.c
@@ -46,7 +46,8 @@ public:
m_cpu_1(*this, "cpu1"),
m_nsc(*this, "nsc"),
m_msm(*this, "msm"),
- m_cvsd(*this, "cvsd") { }
+ m_cvsd(*this, "cvsd"),
+ m_palette(*this, "palette") { }
/* sound-related */
// Jangou CVSD Sound
@@ -68,6 +69,7 @@ public:
optional_device<cpu_device> m_nsc;
optional_device<msm5205_device> m_msm;
optional_device<hc55516_device> m_cvsd;
+ required_device<palette_device> m_palette;
/* video-related */
UINT8 m_pen_data[0x10];
diff --git a/src/mame/drivers/jantotsu.c b/src/mame/drivers/jantotsu.c
index 6b5fcff99d8..3a43c2eee9b 100644
--- a/src/mame/drivers/jantotsu.c
+++ b/src/mame/drivers/jantotsu.c
@@ -107,7 +107,8 @@ public:
jantotsu_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_adpcm(*this, "adpcm") { }
+ m_adpcm(*this, "adpcm") ,
+ m_palette(*this, "palette"){ }
/* sound-related */
UINT32 m_adpcm_pos;
@@ -138,6 +139,7 @@ public:
DECLARE_WRITE_LINE_MEMBER(jan_adpcm_int);
required_device<cpu_device> m_maincpu;
required_device<msm5205_device> m_adpcm;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/jchan.c b/src/mame/drivers/jchan.c
index f63c264201d..17919c2ad58 100644
--- a/src/mame/drivers/jchan.c
+++ b/src/mame/drivers/jchan.c
@@ -189,7 +189,8 @@ public:
m_mainsub_shared_ram(*this, "mainsub_shared"),
m_ctrl(*this, "ctrl"),
m_maincpu(*this,"maincpu"),
- m_subcpu(*this,"sub")
+ m_subcpu(*this,"sub"),
+ m_palette(*this, "palette")
{ }
optional_device<kaneko_view2_tilemap_device> m_view2_0;
@@ -209,6 +210,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
+ required_device<palette_device> m_palette;
sknsspr_device* m_spritegen1;
sknsspr_device* m_spritegen2;
diff --git a/src/mame/drivers/jclub2.c b/src/mame/drivers/jclub2.c
index 2ca21a91c46..255c6b53008 100644
--- a/src/mame/drivers/jclub2.c
+++ b/src/mame/drivers/jclub2.c
@@ -113,7 +113,8 @@ public:
m_spriteram(*this, "spriteram"),
m_gdfs_st0020(*this, "st0020_spr"),
m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom") { }
+ m_eeprom(*this, "eeprom"),
+ m_palette(*this, "palette") { }
tilemap_t *m_tmap;
tilemap_t *m_tmap2;
@@ -127,6 +128,7 @@ public:
optional_device<st0020_device> m_gdfs_st0020;
required_device<cpu_device> m_maincpu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
+ required_device<palette_device> m_palette;
DECLARE_WRITE32_MEMBER(darkhors_tmapram_w);
DECLARE_WRITE32_MEMBER(darkhors_tmapram2_w);
DECLARE_WRITE32_MEMBER(darkhors_input_sel_w);
diff --git a/src/mame/drivers/jollyjgr.c b/src/mame/drivers/jollyjgr.c
index 7798cf081f3..ceb01360cc7 100644
--- a/src/mame/drivers/jollyjgr.c
+++ b/src/mame/drivers/jollyjgr.c
@@ -113,7 +113,8 @@ public:
m_bitmap(*this, "bitmap"),
m_bulletram(*this, "bulletram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -147,6 +148,7 @@ public:
void draw_bitmap( bitmap_ind16 &bitmap );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/kingdrby.c b/src/mame/drivers/kingdrby.c
index 6fae2d3a88d..c93c942bf8f 100644
--- a/src/mame/drivers/kingdrby.c
+++ b/src/mame/drivers/kingdrby.c
@@ -85,7 +85,8 @@ public:
m_attr(*this, "attr"),
m_spriteram(*this, "spriteram"),
m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_sound_cmd;
required_shared_ptr<UINT8> m_vram;
@@ -118,6 +119,7 @@ public:
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_soundcpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/koftball.c b/src/mame/drivers/koftball.c
index 06166b73511..7cd43ba39d1 100644
--- a/src/mame/drivers/koftball.c
+++ b/src/mame/drivers/koftball.c
@@ -44,7 +44,8 @@ public:
m_bmc_1_videoram(*this, "bmc_1_videoram"),
m_bmc_2_videoram(*this, "bmc_2_videoram"),
m_colorram(*this, "colorram", 16),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT16> m_main_ram;
@@ -52,6 +53,7 @@ public:
required_shared_ptr<UINT16> m_bmc_2_videoram;
required_shared_ptr<UINT8> m_colorram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_tilemap_1;
tilemap_t *m_tilemap_2;
int m_clr_offset;
diff --git a/src/mame/drivers/kontest.c b/src/mame/drivers/kontest.c
index 428ecc7b092..6e4ecaa8e9e 100644
--- a/src/mame/drivers/kontest.c
+++ b/src/mame/drivers/kontest.c
@@ -32,12 +32,14 @@ public:
kontest_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_ram(*this, "ram")
+ m_ram(*this, "ram"),
+ m_palette(*this, "palette")
{ }
// devices
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT8> m_ram;
+ required_device<palette_device> m_palette;
// screen updates
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
diff --git a/src/mame/drivers/lastfght.c b/src/mame/drivers/lastfght.c
index 956db22ce5f..08b90d61187 100644
--- a/src/mame/drivers/lastfght.c
+++ b/src/mame/drivers/lastfght.c
@@ -71,7 +71,9 @@ class lastfght_state : public driver_device
public:
lastfght_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu")
+ m_maincpu(*this,"maincpu"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* video-related */
@@ -99,6 +101,8 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
/* memory */
UINT8 m_colorram[256 * 3];
diff --git a/src/mame/drivers/lbeach.c b/src/mame/drivers/lbeach.c
index 64100ce9556..f21345e575b 100644
--- a/src/mame/drivers/lbeach.c
+++ b/src/mame/drivers/lbeach.c
@@ -43,7 +43,9 @@ public:
m_sprite_code(*this, "sprite_code"),
m_collision_bg_car(0),
m_collision_fg_car(0),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* devices / memory pointers */
@@ -57,6 +59,9 @@ public:
int m_collision_bg_car;
int m_collision_fg_car;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
bitmap_ind16 m_colmap_car;
tilemap_t* m_bg_tilemap;
tilemap_t* m_fg_tilemap;
diff --git a/src/mame/drivers/lgp.c b/src/mame/drivers/lgp.c
index 2437e0bc862..777b8aaa90e 100644
--- a/src/mame/drivers/lgp.c
+++ b/src/mame/drivers/lgp.c
@@ -78,7 +78,8 @@ public:
m_tile_ram(*this, "tile_ram"),
m_tile_control_ram(*this, "tile_ctrl_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<pioneer_ldv1000_device> m_laserdisc;
required_shared_ptr<UINT8> m_tile_ram;
@@ -93,6 +94,7 @@ public:
TIMER_CALLBACK_MEMBER(irq_stop);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/limenko.c b/src/mame/drivers/limenko.c
index f296cedfd22..6c527a295ac 100644
--- a/src/mame/drivers/limenko.c
+++ b/src/mame/drivers/limenko.c
@@ -43,7 +43,8 @@ public:
m_videoreg(*this, "videoreg"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_mainram;
required_shared_ptr<UINT32> m_fg_videoram;
@@ -96,6 +97,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*****************************************************************************************************
diff --git a/src/mame/drivers/littlerb.c b/src/mame/drivers/littlerb.c
index 5df55e79e87..0e1f2a4181a 100644
--- a/src/mame/drivers/littlerb.c
+++ b/src/mame/drivers/littlerb.c
@@ -96,6 +96,7 @@ public:
littlerb_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen"),
m_dacl(*this, "dacl"),
m_dacr(*this, "dacr"),
#if USE_TMS
@@ -111,6 +112,7 @@ public:
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
required_device<dac_device> m_dacl;
required_device<dac_device> m_dacr;
UINT8 m_sound_index_l,m_sound_index_r;
diff --git a/src/mame/drivers/looping.c b/src/mame/drivers/looping.c
index d5cfded32dc..4a3058dc7ed 100644
--- a/src/mame/drivers/looping.c
+++ b/src/mame/drivers/looping.c
@@ -106,7 +106,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -156,6 +157,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<dac_device> m_dac;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/luckgrln.c b/src/mame/drivers/luckgrln.c
index f264bbd9104..4339462676a 100644
--- a/src/mame/drivers/luckgrln.c
+++ b/src/mame/drivers/luckgrln.c
@@ -104,7 +104,8 @@ public:
m_luck_vram2(*this, "luck_vram2"),
m_luck_vram3(*this, "luck_vram3"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_nmi_enable;
tilemap_t *m_reel1_tilemap;
@@ -156,6 +157,7 @@ public:
INTERRUPT_GEN_MEMBER(luckgrln_irq);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/m63.c b/src/mame/drivers/m63.c
index 15996ad761f..70d42bd4a84 100644
--- a/src/mame/drivers/m63.c
+++ b/src/mame/drivers/m63.c
@@ -136,7 +136,8 @@ public:
m_maincpu(*this, "maincpu"),
m_ay1(*this, "ay1"),
m_ay2(*this, "ay2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -197,6 +198,7 @@ public:
required_device<ay8910_device> m_ay1;
optional_device<ay8910_device> m_ay2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/magic10.c b/src/mame/drivers/magic10.c
index 0715b636dcb..acea0fd20b7 100644
--- a/src/mame/drivers/magic10.c
+++ b/src/mame/drivers/magic10.c
@@ -96,7 +96,8 @@ public:
m_layer2_videoram(*this, "layer2_videoram"),
m_vregs(*this, "vregs"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_layer0_tilemap;
tilemap_t *m_layer1_tilemap;
@@ -127,6 +128,7 @@ public:
UINT32 screen_update_magic10(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/magicard.c b/src/mame/drivers/magicard.c
index e735537bc18..807707c4666 100644
--- a/src/mame/drivers/magicard.c
+++ b/src/mame/drivers/magicard.c
@@ -185,7 +185,8 @@ public:
m_scc68070_dma_ch1_regs(*this, "scc_dma1_regs"),
m_scc68070_dma_ch2_regs(*this, "scc_dma2_regs"),
m_scc68070_mmu_regs(*this, "scc_mmu_regs"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_magicram;
required_shared_ptr<UINT16> m_pcab_vregs;
@@ -224,6 +225,7 @@ public:
UINT32 screen_update_magicard(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(magicard_irq);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/majorpkr.c b/src/mame/drivers/majorpkr.c
index a56b0915a88..cc2698d9c43 100644
--- a/src/mame/drivers/majorpkr.c
+++ b/src/mame/drivers/majorpkr.c
@@ -464,7 +464,8 @@ public:
: driver_device(mconfig, type, tag),
oki(*this, "oki") ,
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_mux_data;
int m_palette_bank;
@@ -498,6 +499,7 @@ public:
UINT32 screen_update_majorpkr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/marinedt.c b/src/mame/drivers/marinedt.c
index a2be759013b..c14b0eded7b 100644
--- a/src/mame/drivers/marinedt.c
+++ b/src/mame/drivers/marinedt.c
@@ -104,7 +104,8 @@ public:
: driver_device(mconfig, type, tag),
m_tx_tileram(*this, "tx_tileram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_tx_tileram;
@@ -157,6 +158,7 @@ public:
UINT32 screen_update_marinedt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/mastboy.c b/src/mame/drivers/mastboy.c
index d11bd1eb0fd..0067c397065 100644
--- a/src/mame/drivers/mastboy.c
+++ b/src/mame/drivers/mastboy.c
@@ -451,7 +451,8 @@ public:
m_colram(*this, "colram"),
m_maincpu(*this, "maincpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_nvram;
required_shared_ptr<UINT8> m_workram;
@@ -487,6 +488,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/maygayv1.c b/src/mame/drivers/maygayv1.c
index 61eb97d3d3c..04b56895c3d 100644
--- a/src/mame/drivers/maygayv1.c
+++ b/src/mame/drivers/maygayv1.c
@@ -221,12 +221,14 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_upd7759(*this, "upd"),
- m_duart68681(*this, "duart68681") { }
+ m_duart68681(*this, "duart68681"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<i8052_device> m_soundcpu;
required_device<upd7759_device> m_upd7759;
required_device<duartn68681_device> m_duart68681;
+ required_device<palette_device> m_palette;
int m_vsync_latch_preset;
UINT8 m_p1;
diff --git a/src/mame/drivers/mazerbla.c b/src/mame/drivers/mazerbla.c
index f6aee4eb5f0..cc663caa597 100644
--- a/src/mame/drivers/mazerbla.c
+++ b/src/mame/drivers/mazerbla.c
@@ -136,13 +136,15 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_vcu(*this,"vcu")
+ m_vcu(*this,"vcu"),
+ m_screen(*this, "screen")
{ }
/* devices */
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
required_device<mb_vcu_device> m_vcu;
+ required_device<screen_device> m_screen;
/* video-related */
bitmap_ind16 m_tmpbitmaps[4];
diff --git a/src/mame/drivers/mediagx.c b/src/mame/drivers/mediagx.c
index 00014a93212..c7eb4c72769 100644
--- a/src/mame/drivers/mediagx.c
+++ b/src/mame/drivers/mediagx.c
@@ -91,7 +91,9 @@ public:
m_cga_ram(*this, "cga_ram"),
m_bios_ram(*this, "bios_ram"),
m_vram(*this, "vram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<ide_controller_32_device> m_ide;
required_shared_ptr<UINT32> m_main_ram;
@@ -99,6 +101,8 @@ public:
required_shared_ptr<UINT32> m_bios_ram;
required_shared_ptr<UINT32> m_vram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_pal[768];
diff --git a/src/mame/drivers/megaphx.c b/src/mame/drivers/megaphx.c
index 066c0849e62..0f62ca51499 100644
--- a/src/mame/drivers/megaphx.c
+++ b/src/mame/drivers/megaphx.c
@@ -69,7 +69,8 @@ public:
m_mainram(*this, "mainram"),
m_vram(*this, "vram"),
m_ctc(*this, "ctc"),
- port_c_value(0)
+ port_c_value(0),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -102,7 +103,7 @@ public:
UINT8 port_c_value;
-
+ required_device<palette_device> m_palette;
int m_soundsent;
UINT8 m_sounddata;
UINT8 m_soundback;
diff --git a/src/mame/drivers/merit.c b/src/mame/drivers/merit.c
index 39b7b6b661f..f3b549dd7f5 100644
--- a/src/mame/drivers/merit.c
+++ b/src/mame/drivers/merit.c
@@ -90,7 +90,8 @@ public:
m_ram_attr(*this, "raattr"),
m_ram_video(*this, "ravideo"),
m_backup_ram(*this, "backup_ram"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen") { }
void dodge_nvram_init(nvram_device &nvram, void *base, size_t size);
pen_t m_pens[NUM_PENS];
@@ -126,6 +127,7 @@ public:
virtual void machine_start();
DECLARE_MACHINE_START(casino5);
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/drivers/mgolf.c b/src/mame/drivers/mgolf.c
index 10de6aad8ee..99fd892d0b3 100644
--- a/src/mame/drivers/mgolf.c
+++ b/src/mame/drivers/mgolf.c
@@ -19,7 +19,9 @@ public:
: driver_device(mconfig, type, tag),
m_video_ram(*this, "video_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_video_ram;
@@ -36,6 +38,8 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(mgolf_vram_w);
DECLARE_READ8_MEMBER(mgolf_wram_r);
diff --git a/src/mame/drivers/midas.c b/src/mame/drivers/midas.c
index e9d43dd2940..c723a107786 100644
--- a/src/mame/drivers/midas.c
+++ b/src/mame/drivers/midas.c
@@ -65,7 +65,8 @@ public:
m_gfxregs(*this, "gfxregs"),
m_maincpu(*this, "maincpu"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT16 *m_gfxram;
required_shared_ptr<UINT16> m_gfxregs;
@@ -87,6 +88,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/mirax.c b/src/mame/drivers/mirax.c
index ace8a203d01..25f42058b4e 100644
--- a/src/mame/drivers/mirax.c
+++ b/src/mame/drivers/mirax.c
@@ -115,7 +115,8 @@ public:
m_colorram(*this, "colorram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
@@ -142,6 +143,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/missile.c b/src/mame/drivers/missile.c
index 0d637ac21bf..69c9353a1e8 100644
--- a/src/mame/drivers/missile.c
+++ b/src/mame/drivers/missile.c
@@ -369,7 +369,9 @@ public:
m_track0_x(*this, "TRACK0_X"),
m_track0_y(*this, "TRACK0_Y"),
m_track1_x(*this, "TRACK1_X"),
- m_track1_y(*this, "TRACK1_Y")
+ m_track1_y(*this, "TRACK1_Y"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<m6502_device> m_maincpu;
@@ -383,6 +385,8 @@ public:
required_ioport m_track0_y;
required_ioport m_track1_x;
required_ioport m_track1_y;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
const UINT8 *m_mainrom;
const UINT8 *m_writeprom;
diff --git a/src/mame/drivers/mjsister.c b/src/mame/drivers/mjsister.c
index 3532107ff36..a07b5fccbf6 100644
--- a/src/mame/drivers/mjsister.c
+++ b/src/mame/drivers/mjsister.c
@@ -24,7 +24,8 @@ public:
mjsister_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
/* video-related */
bitmap_ind16 *m_tmpbitmap0;
@@ -50,6 +51,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
dac_device *m_dac;
/* memory */
diff --git a/src/mame/drivers/mlanding.c b/src/mame/drivers/mlanding.c
index b9c5289ed81..807abb9511d 100644
--- a/src/mame/drivers/mlanding.c
+++ b/src/mame/drivers/mlanding.c
@@ -87,7 +87,8 @@ public:
m_g_ram(*this, "g_ram"),
m_cha_ram(*this, "cha_ram"),
m_dot_ram(*this, "dot_ram"),
- m_power_ram(*this, "power_ram")
+ m_power_ram(*this, "power_ram"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -107,6 +108,8 @@ public:
required_shared_ptr<UINT16> m_cha_ram;
required_shared_ptr<UINT16> m_dot_ram;
required_shared_ptr<UINT8> m_power_ram;
+
+ required_device<palette_device> m_palette;
UINT16 *m_dma_ram;
UINT8 m_dma_cpu_bank;
diff --git a/src/mame/drivers/monzagp.c b/src/mame/drivers/monzagp.c
index 849ea3f75be..c922c15866f 100644
--- a/src/mame/drivers/monzagp.c
+++ b/src/mame/drivers/monzagp.c
@@ -37,7 +37,8 @@ public:
monzagp_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_coordx;
int m_coordy;
@@ -56,6 +57,7 @@ public:
UINT32 screen_update_monzagp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/mpoker.c b/src/mame/drivers/mpoker.c
index c00be75d8c3..50e8c1cb739 100644
--- a/src/mame/drivers/mpoker.c
+++ b/src/mame/drivers/mpoker.c
@@ -183,7 +183,8 @@ public:
: driver_device(mconfig, type, tag),
m_video(*this, "video"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_output[8];
required_shared_ptr<UINT8> m_video;
@@ -204,6 +205,7 @@ public:
UINT32 screen_update_mpoker(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/murogem.c b/src/mame/drivers/murogem.c
index 2e5cd99565c..040af86b146 100644
--- a/src/mame/drivers/murogem.c
+++ b/src/mame/drivers/murogem.c
@@ -118,7 +118,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
DECLARE_WRITE8_MEMBER(outport_w);
@@ -127,6 +128,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<dac_device> m_dac;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/murogmbl.c b/src/mame/drivers/murogmbl.c
index d4dfddde530..1c2caa35717 100644
--- a/src/mame/drivers/murogmbl.c
+++ b/src/mame/drivers/murogmbl.c
@@ -47,7 +47,8 @@ public:
: driver_device(mconfig, type, tag),
m_video(*this, "video"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_video;
virtual void video_start();
@@ -55,6 +56,7 @@ public:
UINT32 screen_update_murogmbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/mwarr.c b/src/mame/drivers/mwarr.c
index 075d78df452..249d53099d3 100644
--- a/src/mame/drivers/mwarr.c
+++ b/src/mame/drivers/mwarr.c
@@ -63,7 +63,8 @@ public:
m_mwarr_ram(*this, "mwarr_ram"),
m_maincpu(*this, "maincpu"),
m_oki2(*this, "oki2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_bg_videoram;
@@ -107,6 +108,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/namcos23.c b/src/mame/drivers/namcos23.c
index f43e64d62ab..19de76f98a1 100644
--- a/src/mame/drivers/namcos23.c
+++ b/src/mame/drivers/namcos23.c
@@ -1361,7 +1361,9 @@ public:
m_lightx(*this, "LIGHTX"),
m_lighty(*this, "LIGHTY"),
m_p1(*this, "P1"),
- m_p2(*this, "P2")
+ m_p2(*this, "P2"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -1381,6 +1383,9 @@ public:
optional_ioport m_lighty;
required_ioport m_p1;
required_ioport m_p2;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
c404_t m_c404;
c361_t m_c361;
diff --git a/src/mame/drivers/neoprint.c b/src/mame/drivers/neoprint.c
index 66df6fb7e44..7d0e0065e3e 100644
--- a/src/mame/drivers/neoprint.c
+++ b/src/mame/drivers/neoprint.c
@@ -38,7 +38,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_upd4990a(*this, "upd4990a"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_npvidram;
required_shared_ptr<UINT16> m_npvidregs;
@@ -46,6 +48,8 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<upd4990a_old_device> m_upd4990a;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_audio_result;
UINT8 m_bank_val;
diff --git a/src/mame/drivers/nightgal.c b/src/mame/drivers/nightgal.c
index 9fbbd068120..00fd4d0ebb0 100644
--- a/src/mame/drivers/nightgal.c
+++ b/src/mame/drivers/nightgal.c
@@ -56,7 +56,8 @@ public:
m_io_sysa(*this, "SYSA"),
m_io_dswa(*this, "DSWA"),
m_io_dswb(*this, "DSWB"),
- m_io_dswc(*this, "DSWC") { }
+ m_io_dswc(*this, "DSWC"),
+ m_palette(*this, "palette") { }
/* video-related */
UINT8 m_blit_raw_data[3];
@@ -127,7 +128,8 @@ protected:
required_ioport m_io_dswa;
required_ioport m_io_dswb;
required_ioport m_io_dswc;
-
+ required_device<palette_device> m_palette;
+
UINT8 nightgal_gfx_nibble( int niboffset );
void plot_nightgal_gfx_pixel( UINT8 pix, int x, int y );
};
diff --git a/src/mame/drivers/nss.c b/src/mame/drivers/nss.c
index 9675cb57c4b..c846ab84772 100644
--- a/src/mame/drivers/nss.c
+++ b/src/mame/drivers/nss.c
@@ -301,12 +301,17 @@ public:
: snes_state(mconfig, type, tag),
m_m50458(*this,"m50458"),
m_s3520cf(*this, "s3520cf"),
- m_rp5h01(*this,"rp5h01")
+ m_rp5h01(*this,"rp5h01"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<m50458_device> m_m50458;
required_device<s3520cf_device> m_s3520cf;
required_device<rp5h01_device> m_rp5h01;
+ required_device<screen_device> m_screen;
+ optional_device<palette_device> m_palette;
+
UINT8 m_wram_wp_flag;
UINT8 *m_wram;
UINT8 m_nmi_enable;
diff --git a/src/mame/drivers/nwk-tr.c b/src/mame/drivers/nwk-tr.c
index 5deba72661a..b39949f23f2 100644
--- a/src/mame/drivers/nwk-tr.c
+++ b/src/mame/drivers/nwk-tr.c
@@ -237,7 +237,8 @@ public:
m_dsp(*this, "dsp"),
m_k056800(*this, "k056800"),
m_k001604(*this, "k001604"),
- m_adc12138(*this, "adc12138") { }
+ m_adc12138(*this, "adc12138"),
+ m_palette(*this, "palette") { }
// TODO: Needs verification on real hardware
static const int m_sound_timer_usec = 2400;
@@ -251,6 +252,7 @@ public:
required_device<k056800_device> m_k056800;
required_device<k001604_device> m_k001604;
required_device<adc12138_device> m_adc12138;
+ required_device<palette_device> m_palette;
emu_timer *m_sound_irq_timer;
int m_fpga_uploaded;
int m_lanc2_ram_r;
diff --git a/src/mame/drivers/olibochu.c b/src/mame/drivers/olibochu.c
index 5cf557947b4..413074609ab 100644
--- a/src/mame/drivers/olibochu.c
+++ b/src/mame/drivers/olibochu.c
@@ -65,7 +65,8 @@ public:
m_spriteram(*this, "spriteram"),
m_spriteram2(*this, "spriteram2"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -93,6 +94,7 @@ public:
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/onetwo.c b/src/mame/drivers/onetwo.c
index 0c14f63a8cb..e204a3cb424 100644
--- a/src/mame/drivers/onetwo.c
+++ b/src/mame/drivers/onetwo.c
@@ -56,7 +56,8 @@ public:
m_fgram(*this, "fgram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_paletteram;
@@ -70,6 +71,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(onetwo_fgram_w);
DECLARE_WRITE8_MEMBER(onetwo_cpubank_w);
diff --git a/src/mame/drivers/panicr.c b/src/mame/drivers/panicr.c
index b6c71e9ca0f..a840964ed9b 100644
--- a/src/mame/drivers/panicr.c
+++ b/src/mame/drivers/panicr.c
@@ -75,7 +75,9 @@ public:
m_spritebank(*this, "spritebank"),
m_maincpu(*this, "maincpu"),
m_t5182(*this, "t5182"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_mainram;
required_shared_ptr<UINT8> m_spriteram;
@@ -85,6 +87,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<t5182_device> m_t5182;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
tilemap_t *m_bgtilemap;
tilemap_t *m_infotilemap_2;
diff --git a/src/mame/drivers/pasha2.c b/src/mame/drivers/pasha2.c
index 8a4f456ebeb..2a00e2a52b9 100644
--- a/src/mame/drivers/pasha2.c
+++ b/src/mame/drivers/pasha2.c
@@ -85,7 +85,8 @@ public:
m_paletteram(*this, "paletteram"),
m_maincpu(*this, "maincpu"),
m_oki1(*this, "oki1"),
- m_oki2(*this, "oki2") { }
+ m_oki2(*this, "oki2"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_wram;
@@ -116,6 +117,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki1;
required_device<okim6295_device> m_oki2;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/pcxt.c b/src/mame/drivers/pcxt.c
index 6b66ea5983f..96a20b1b0a4 100644
--- a/src/mame/drivers/pcxt.c
+++ b/src/mame/drivers/pcxt.c
@@ -78,7 +78,8 @@ public:
m_pic8259_1(*this,"pic8259_1"),
m_dma8237_1(*this,"dma8237_1") ,
m_maincpu(*this, "maincpu"),
- m_speaker(*this, "speaker") { }
+ m_speaker(*this, "speaker"),
+ m_palette(*this, "palette") { }
UINT8 m_bg_bank;
int m_bank;
@@ -131,6 +132,7 @@ public:
void pcxt_speaker_set_spkrdata(UINT8 data);
required_device<cpu_device> m_maincpu;
required_device<speaker_sound_device> m_speaker;
+ required_device<palette_device> m_palette;
};
UINT32 pcxt_state::screen_update_tetriskr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
diff --git a/src/mame/drivers/peplus.c b/src/mame/drivers/peplus.c
index bfb37a501b9..f432b3acc8d 100644
--- a/src/mame/drivers/peplus.c
+++ b/src/mame/drivers/peplus.c
@@ -203,7 +203,8 @@ public:
m_io_port(*this, "io_port"),
m_maincpu(*this, "maincpu"),
m_i2cmem(*this, "i2cmem"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -286,6 +287,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<i2cmem_device> m_i2cmem;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
diff --git a/src/mame/drivers/pinball2k.c b/src/mame/drivers/pinball2k.c
index 809ad1698e5..8a2058a6830 100644
--- a/src/mame/drivers/pinball2k.c
+++ b/src/mame/drivers/pinball2k.c
@@ -34,13 +34,17 @@ public:
m_cga_ram(*this, "cga_ram"),
m_bios_ram(*this, "bios_ram"),
m_vram(*this, "vram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_main_ram;
required_shared_ptr<UINT32> m_cga_ram;
required_shared_ptr<UINT32> m_bios_ram;
required_shared_ptr<UINT32> m_vram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_pal[768];
diff --git a/src/mame/drivers/pinkiri8.c b/src/mame/drivers/pinkiri8.c
index 0184867c2f3..fc72b9058ac 100644
--- a/src/mame/drivers/pinkiri8.c
+++ b/src/mame/drivers/pinkiri8.c
@@ -56,7 +56,8 @@ public:
m_janshi_paletteram2(*this, "paletteram2"),
m_janshi_crtc_regs(*this, "crtc_regs"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_janshi_back_vram;
required_shared_ptr<UINT8> m_janshi_vram1;
@@ -87,6 +88,7 @@ public:
UINT32 screen_update_pinkiri8(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
diff --git a/src/mame/drivers/pipeline.c b/src/mame/drivers/pipeline.c
index 9619d5b7c8d..36f9c128be2 100644
--- a/src/mame/drivers/pipeline.c
+++ b/src/mame/drivers/pipeline.c
@@ -80,7 +80,8 @@ public:
m_vram1(*this, "vram1"),
m_vram2(*this, "vram2"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_tilemap1;
tilemap_t *m_tilemap2;
@@ -107,6 +108,7 @@ public:
TIMER_CALLBACK_MEMBER(protection_deferred_w);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/pkscram.c b/src/mame/drivers/pkscram.c
index ce488e8aca3..788388dc620 100644
--- a/src/mame/drivers/pkscram.c
+++ b/src/mame/drivers/pkscram.c
@@ -26,7 +26,8 @@ public:
m_pkscramble_mdtilemap_ram(*this, "mdtilemap_ram"),
m_pkscramble_bgtilemap_ram(*this, "bgtilemap_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen") { }
UINT16 m_out;
UINT8 m_interrupt_line_active;
@@ -51,6 +52,7 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/drivers/pktgaldx.c b/src/mame/drivers/pktgaldx.c
index a30f5a71492..de9f25cdc7b 100644
--- a/src/mame/drivers/pktgaldx.c
+++ b/src/mame/drivers/pktgaldx.c
@@ -347,6 +347,7 @@ static MACHINE_CONFIG_START( pktgaldx, pktgaldx_state )
MCFG_GFXDECODE_ADD("gfxdecode", pktgaldx)
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", pktgaldx_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/poker72.c b/src/mame/drivers/poker72.c
index 172775dab93..cdd5b6cfcf5 100644
--- a/src/mame/drivers/poker72.c
+++ b/src/mame/drivers/poker72.c
@@ -23,7 +23,8 @@ public:
m_vram(*this, "vram"),
m_pal(*this, "pal"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_vram;
required_shared_ptr<UINT8> m_pal;
@@ -38,6 +39,7 @@ public:
UINT32 screen_update_poker72(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/popobear.c b/src/mame/drivers/popobear.c
index 660a4368e78..c6e597950ec 100644
--- a/src/mame/drivers/popobear.c
+++ b/src/mame/drivers/popobear.c
@@ -90,7 +90,8 @@ public:
m_maincpu(*this,"maincpu"),
m_spr(*this, "spr"),
m_vregs(*this, "vregs"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
tilemap_base[0] = 0xf0000;
@@ -108,7 +109,8 @@ public:
required_shared_ptr<UINT16> m_spr;
required_shared_ptr<UINT16> m_vregs;
optional_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<palette_device> m_palette;
+
UINT16* m_vram;
UINT16* m_vram_rearranged;
diff --git a/src/mame/drivers/progolf.c b/src/mame/drivers/progolf.c
index c1cd8cd099d..d258478c01a 100644
--- a/src/mame/drivers/progolf.c
+++ b/src/mame/drivers/progolf.c
@@ -67,7 +67,8 @@ public:
m_fbram(*this, "fbram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 *m_videoram;
UINT8 m_char_pen;
@@ -94,6 +95,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/pturn.c b/src/mame/drivers/pturn.c
index ea1be3e9634..446efdf503c 100644
--- a/src/mame/drivers/pturn.c
+++ b/src/mame/drivers/pturn.c
@@ -87,7 +87,8 @@ public:
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
tilemap_t *m_fgmap;
@@ -124,6 +125,7 @@ public:
INTERRUPT_GEN_MEMBER(pturn_main_intgen);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/pzletime.c b/src/mame/drivers/pzletime.c
index 81f61736e22..6788793f42f 100644
--- a/src/mame/drivers/pzletime.c
+++ b/src/mame/drivers/pzletime.c
@@ -35,7 +35,9 @@ public:
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_video_regs;
@@ -70,6 +72,8 @@ public:
required_device<okim6295_device> m_oki;
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/quizpun2.c b/src/mame/drivers/quizpun2.c
index ea2330435f1..0f01f6e6502 100644
--- a/src/mame/drivers/quizpun2.c
+++ b/src/mame/drivers/quizpun2.c
@@ -97,7 +97,8 @@ public:
m_bg_ram(*this, "bg_ram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
struct prot_t m_prot;
required_shared_ptr<UINT8> m_fg_ram;
@@ -119,6 +120,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/quizshow.c b/src/mame/drivers/quizshow.c
index f8c2fb5f0f3..933d0b37a33 100644
--- a/src/mame/drivers/quizshow.c
+++ b/src/mame/drivers/quizshow.c
@@ -42,13 +42,15 @@ public:
m_maincpu(*this, "maincpu"),
m_dac(*this, "dac"),
m_main_ram(*this, "main_ram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen")
{ }
required_device<cpu_device> m_maincpu;
required_device<dac_device> m_dac;
required_shared_ptr<UINT8> m_main_ram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
tilemap_t *m_tilemap;
UINT32 m_clocks;
diff --git a/src/mame/drivers/r2dx_v33.c b/src/mame/drivers/r2dx_v33.c
index 20f2b5c33d1..c11483ea922 100644
--- a/src/mame/drivers/r2dx_v33.c
+++ b/src/mame/drivers/r2dx_v33.c
@@ -34,7 +34,8 @@ public:
m_maincpu(*this, "maincpu"),
m_seibu_sound(*this, "seibu_sound"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_bg_vram;
@@ -46,6 +47,7 @@ public:
optional_device<seibu_sound_device> m_seibu_sound;
optional_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(rdx_bg_vram_w);
DECLARE_WRITE16_MEMBER(rdx_md_vram_w);
diff --git a/src/mame/drivers/rabbit.c b/src/mame/drivers/rabbit.c
index 6acf0b15a57..de37bdc7a13 100644
--- a/src/mame/drivers/rabbit.c
+++ b/src/mame/drivers/rabbit.c
@@ -107,7 +107,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_viewregs0;
required_shared_ptr<UINT32> m_viewregs6;
@@ -155,7 +156,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<palette_device> m_palette;
protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
};
diff --git a/src/mame/drivers/rastersp.c b/src/mame/drivers/rastersp.c
index 754f7f5c47f..71a4690c761 100644
--- a/src/mame/drivers/rastersp.c
+++ b/src/mame/drivers/rastersp.c
@@ -53,7 +53,8 @@ public:
m_dac_l(*this, "dac_l"),
m_dac_r(*this, "dac_r"),
m_tms_timer1(*this, "tms_timer1"),
- m_tms_tx_timer(*this, "tms_tx_timer")
+ m_tms_tx_timer(*this, "tms_tx_timer"),
+ m_palette(*this, "palette")
{}
#define VIDEO_ADDR_MASK 0x3fffffff
@@ -99,6 +100,7 @@ public:
required_device<dac_device> m_dac_r;
required_device<timer_device> m_tms_timer1;
required_device<timer_device> m_tms_tx_timer;
+ required_device<palette_device> m_palette;
DECLARE_WRITE32_MEMBER(cyrix_cache_w);
DECLARE_READ8_MEMBER(nvram_r);
diff --git a/src/mame/drivers/rbmk.c b/src/mame/drivers/rbmk.c
index ed98ffdc38d..048cbe5677c 100644
--- a/src/mame/drivers/rbmk.c
+++ b/src/mame/drivers/rbmk.c
@@ -67,7 +67,8 @@ public:
m_maincpu(*this, "maincpu"),
m_mcu(*this, "mcu"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_gms_vidram2;
required_shared_ptr<UINT16> m_gms_vidram;
@@ -88,6 +89,7 @@ public:
required_device<cpu_device> m_mcu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/rgum.c b/src/mame/drivers/rgum.c
index 7348ba47d05..596f622992f 100644
--- a/src/mame/drivers/rgum.c
+++ b/src/mame/drivers/rgum.c
@@ -27,7 +27,8 @@ public:
m_vram(*this, "vram"),
m_cram(*this, "cram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_vram;
required_shared_ptr<UINT8> m_cram;
@@ -37,6 +38,7 @@ public:
UINT32 screen_update_royalgum(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/rohga.c b/src/mame/drivers/rohga.c
index da1e660d447..b7eedeef1d3 100644
--- a/src/mame/drivers/rohga.c
+++ b/src/mame/drivers/rohga.c
@@ -834,6 +834,7 @@ static MACHINE_CONFIG_START( rohga, rohga_state )
MCFG_VIDEO_START_OVERRIDE(rohga_state,rohga)
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", rohga_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
@@ -893,6 +894,7 @@ static MACHINE_CONFIG_START( wizdfire, rohga_state )
MCFG_PALETTE_ADD("palette", 2048)
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", rohga_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
@@ -960,6 +962,7 @@ static MACHINE_CONFIG_START( nitrobal, rohga_state )
MCFG_PALETTE_ADD("palette", 2048)
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", nitrobal_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
@@ -1030,6 +1033,7 @@ static MACHINE_CONFIG_START( schmeisr, rohga_state )
MCFG_VIDEO_START_OVERRIDE(rohga_state,schmeisr)
MCFG_DECOCOMN_ADD("deco_common")
+ MCFG_DECOCOMN_PALETTE("palette")
MCFG_DECO16IC_ADD("tilegen1", rohga_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/sbrkout.c b/src/mame/drivers/sbrkout.c
index a3f0c30f948..c874b9a35ad 100644
--- a/src/mame/drivers/sbrkout.c
+++ b/src/mame/drivers/sbrkout.c
@@ -45,7 +45,9 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
emu_timer *m_scanline_timer;
@@ -76,6 +78,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<dac_device> m_dac;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/seabattl.c b/src/mame/drivers/seabattl.c
index 56842979bcb..9bd18c6fc79 100644
--- a/src/mame/drivers/seabattl.c
+++ b/src/mame/drivers/seabattl.c
@@ -54,7 +54,9 @@ public:
m_s2636(*this, "s2636"),
m_waveenable(false),
m_collision(0),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
}
@@ -96,6 +98,8 @@ public:
bool m_waveenable;
UINT8 m_collision;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/segald.c b/src/mame/drivers/segald.c
index aef17cebbf5..461d73b1332 100644
--- a/src/mame/drivers/segald.c
+++ b/src/mame/drivers/segald.c
@@ -35,7 +35,8 @@ public:
m_color_ram(*this, "color_ram"),
m_fix_ram(*this, "fix_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_nmi_enable;
@@ -65,6 +66,7 @@ public:
void astron_draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/* VIDEO GOODS */
diff --git a/src/mame/drivers/sengokmj.c b/src/mame/drivers/sengokmj.c
index 5d99042cfa3..82c93a42f23 100644
--- a/src/mame/drivers/sengokmj.c
+++ b/src/mame/drivers/sengokmj.c
@@ -72,7 +72,8 @@ public:
m_sc3_vram(*this, "sc3_vram"),
m_spriteram16(*this, "sprite_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_sc0_vram;
required_shared_ptr<UINT16> m_sc1_vram;
@@ -81,6 +82,7 @@ public:
required_shared_ptr<UINT16> m_spriteram16;
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_sc0_tilemap;
tilemap_t *m_sc1_tilemap;
tilemap_t *m_sc2_tilemap;
diff --git a/src/mame/drivers/sfbonus.c b/src/mame/drivers/sfbonus.c
index cd782cecf93..e5651310233 100644
--- a/src/mame/drivers/sfbonus.c
+++ b/src/mame/drivers/sfbonus.c
@@ -291,7 +291,8 @@ public:
m_3000_regs(*this, "3000_regs"),
m_3800_regs(*this, "3800_regs"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
bitmap_ind16 *m_temp_reel_bitmap;
tilemap_t *m_tilemap;
@@ -458,6 +459,7 @@ public:
UINT32 screen_update_sfbonus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/sigmab98.c b/src/mame/drivers/sigmab98.c
index 6206e4386f5..82154f023fc 100644
--- a/src/mame/drivers/sigmab98.c
+++ b/src/mame/drivers/sigmab98.c
@@ -105,7 +105,9 @@ public:
m_spriteram(*this, "spriteram"),
m_nvram(*this, "nvram"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
optional_shared_ptr<UINT8> m_spriteram;
@@ -113,6 +115,8 @@ public:
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
dynamic_array<UINT8> m_paletteram;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_reg;
UINT8 m_rombank;
diff --git a/src/mame/drivers/skyarmy.c b/src/mame/drivers/skyarmy.c
index 066eed95380..9626772e361 100644
--- a/src/mame/drivers/skyarmy.c
+++ b/src/mame/drivers/skyarmy.c
@@ -39,7 +39,8 @@ public:
m_spriteram(*this, "spriteram"),
m_scrollram(*this, "scrollram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
@@ -59,6 +60,7 @@ public:
INTERRUPT_GEN_MEMBER(skyarmy_nmi_source);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
WRITE8_MEMBER(skyarmy_state::skyarmy_flip_screen_x_w)
diff --git a/src/mame/drivers/skylncr.c b/src/mame/drivers/skylncr.c
index 4fb147c551d..addae78d9da 100644
--- a/src/mame/drivers/skylncr.c
+++ b/src/mame/drivers/skylncr.c
@@ -112,7 +112,8 @@ public:
m_reelscroll3(*this, "reelscroll3"),
m_reelscroll4(*this, "reelscroll4"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_tmap;
required_shared_ptr<UINT8> m_videoram;
@@ -167,6 +168,7 @@ public:
INTERRUPT_GEN_MEMBER(skylncr_vblank_interrupt);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/sliver.c b/src/mame/drivers/sliver.c
index 2fe87b0a3c2..c6ec167acdc 100644
--- a/src/mame/drivers/sliver.c
+++ b/src/mame/drivers/sliver.c
@@ -83,7 +83,8 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_colorram(*this, "colorram"),
- m_audiocpu(*this, "audiocpu"){ }
+ m_audiocpu(*this, "audiocpu"),
+ m_screen(*this, "screen") { }
UINT16 m_io_offset;
UINT16 m_io_reg[IO_SIZE];
@@ -120,6 +121,7 @@ public:
void blit_gfx();
void render_jpeg();
required_device<cpu_device> m_audiocpu;
+ required_device<screen_device> m_screen;
};
void sliver_state::plot_pixel_rgb(int x, int y, UINT32 r, UINT32 g, UINT32 b)
diff --git a/src/mame/drivers/slotcarn.c b/src/mame/drivers/slotcarn.c
index ef06c584c57..e017959002c 100644
--- a/src/mame/drivers/slotcarn.c
+++ b/src/mame/drivers/slotcarn.c
@@ -38,7 +38,8 @@ public:
m_backup_ram(*this, "backup_ram"),
m_ram_attr(*this, "raattr"),
m_ram_video(*this, "ravideo"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen") { }
pen_t m_pens[NUM_PENS];
required_shared_ptr<UINT8> m_backup_ram;
@@ -51,6 +52,7 @@ public:
DECLARE_WRITE_LINE_MEMBER(vsync_changed);
virtual void machine_start();
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/drivers/smsmcorp.c b/src/mame/drivers/smsmcorp.c
index 7e5b79fc146..f0b227aeb99 100644
--- a/src/mame/drivers/smsmcorp.c
+++ b/src/mame/drivers/smsmcorp.c
@@ -225,7 +225,8 @@ class smsmfg_state : public driver_device
public:
smsmfg_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen") { }
UINT8 m_communication_port[4];
UINT8 m_communication_port_status;
@@ -248,6 +249,7 @@ public:
DECLARE_MACHINE_START(sureshot);
UINT32 screen_update_sms(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/drivers/spaceg.c b/src/mame/drivers/spaceg.c
index 89933931275..01da2ebb776 100644
--- a/src/mame/drivers/spaceg.c
+++ b/src/mame/drivers/spaceg.c
@@ -182,7 +182,8 @@ public:
m_videoram(*this, "videoram"),
m_io9400(*this, "io9400"),
m_io9401(*this, "io9401"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_colorram;
required_shared_ptr<UINT8> m_videoram;
@@ -193,6 +194,7 @@ public:
DECLARE_PALETTE_INIT(spaceg);
UINT32 screen_update_spaceg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
/*************************************
diff --git a/src/mame/drivers/spoker.c b/src/mame/drivers/spoker.c
index fbf80927bbe..f7bf08ec740 100644
--- a/src/mame/drivers/spoker.c
+++ b/src/mame/drivers/spoker.c
@@ -31,7 +31,9 @@ public:
m_fg_tile_ram(*this, "fg_tile_ram"),
m_fg_color_ram(*this, "fg_color_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_bg_tile_ram;
tilemap_t *m_bg_tilemap;
@@ -64,6 +66,8 @@ public:
INTERRUPT_GEN_MEMBER(spoker_interrupt);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
WRITE8_MEMBER(spoker_state::bg_tile_w)
diff --git a/src/mame/drivers/srmp6.c b/src/mame/drivers/srmp6.c
index f12de9570a9..d8ae68e3e4c 100644
--- a/src/mame/drivers/srmp6.c
+++ b/src/mame/drivers/srmp6.c
@@ -80,7 +80,8 @@ public:
m_dmaram(*this, "dmaram"),
m_video_regs(*this, "video_regs"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT16* m_tileram;
required_shared_ptr<UINT16> m_sprram;
@@ -112,6 +113,7 @@ public:
UINT32 process(UINT8 b,UINT32 dst_offset);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
#define VERBOSE 0
diff --git a/src/mame/drivers/ssfindo.c b/src/mame/drivers/ssfindo.c
index 8fe992147c7..9ae66deb05b 100644
--- a/src/mame/drivers/ssfindo.c
+++ b/src/mame/drivers/ssfindo.c
@@ -220,7 +220,8 @@ public:
m_vram(*this, "vram"),
m_maincpu(*this, "maincpu"),
m_region_user2(*this, "user2"),
- m_io_ps7500(*this, "PS7500") { }
+ m_io_ps7500(*this, "PS7500"),
+ m_palette(*this, "palette") { }
UINT32 m_PS7500_IO[MAXIO];
UINT32 m_PS7500_FIFO[256];
@@ -257,6 +258,7 @@ public:
required_device<cpu_device> m_maincpu;
required_memory_region m_region_user2;
required_ioport m_io_ps7500;
+ required_device<palette_device> m_palette;
typedef void (ssfindo_state::*ssfindo_speedup_func)(address_space &space);
ssfindo_speedup_func ssfindo_speedup;
diff --git a/src/mame/drivers/statriv2.c b/src/mame/drivers/statriv2.c
index ee700719809..0809a44230a 100644
--- a/src/mame/drivers/statriv2.c
+++ b/src/mame/drivers/statriv2.c
@@ -87,7 +87,8 @@ public:
m_tms(*this, "tms"),
m_videoram(*this, "videoram"),
m_question_offset(*this, "question_offset"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -96,6 +97,7 @@ public:
tilemap_t *m_tilemap;
required_shared_ptr<UINT8> m_question_offset;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_question_offset_low;
UINT8 m_question_offset_mid;
UINT8 m_question_offset_high;
diff --git a/src/mame/drivers/stuntair.c b/src/mame/drivers/stuntair.c
index 8b38eab1eb0..ac29e2fea7e 100644
--- a/src/mame/drivers/stuntair.c
+++ b/src/mame/drivers/stuntair.c
@@ -92,7 +92,8 @@ public:
m_bgram(*this, "bgram"),
m_bgattrram(*this, "bgattrram"),
m_sprram(*this, "sprram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -102,6 +103,7 @@ public:
required_shared_ptr<UINT8> m_bgattrram;
required_shared_ptr<UINT8> m_sprram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_fg_tilemap;
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/drivers/sub.c b/src/mame/drivers/sub.c
index be1dac465c5..5a76841e276 100644
--- a/src/mame/drivers/sub.c
+++ b/src/mame/drivers/sub.c
@@ -126,7 +126,8 @@ public:
m_scrolly(*this, "scrolly"),
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_attr;
required_shared_ptr<UINT8> m_vid;
@@ -143,6 +144,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_soundcpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
void sub_state::video_start()
diff --git a/src/mame/drivers/subsino.c b/src/mame/drivers/subsino.c
index 479b1f600c0..44e103a7930 100644
--- a/src/mame/drivers/subsino.c
+++ b/src/mame/drivers/subsino.c
@@ -249,7 +249,8 @@ public:
m_reel3_ram(*this, "reel3_ram"),
m_stisub_out_c(*this, "stisub_out_c"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") {
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") {
}
required_shared_ptr<UINT8> m_colorram;
@@ -326,6 +327,7 @@ public:
virtual void machine_start();
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
void subsino_state::machine_start()
diff --git a/src/mame/drivers/subsino2.c b/src/mame/drivers/subsino2.c
index 45238338031..50edaa05411 100644
--- a/src/mame/drivers/subsino2.c
+++ b/src/mame/drivers/subsino2.c
@@ -82,7 +82,9 @@ public:
m_outputs(*this, "outputs"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
UINT8 *m_hm86171_colorram;
layer_t m_layers[2];
@@ -168,6 +170,8 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
private:
inline void ss9601_get_tile_info(layer_t *l, tile_data &tileinfo, tilemap_memory_index tile_index);
diff --git a/src/mame/drivers/summit.c b/src/mame/drivers/summit.c
index 647ab01ebc6..f5837585e3f 100644
--- a/src/mame/drivers/summit.c
+++ b/src/mame/drivers/summit.c
@@ -27,7 +27,8 @@ public:
m_attr(*this, "attr"),
m_vram(*this, "vram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_attr;
required_shared_ptr<UINT8> m_vram;
@@ -37,6 +38,7 @@ public:
UINT32 screen_update_summit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/supdrapo.c b/src/mame/drivers/supdrapo.c
index 5d15c45a1c2..d53ab18bb59 100644
--- a/src/mame/drivers/supdrapo.c
+++ b/src/mame/drivers/supdrapo.c
@@ -76,7 +76,8 @@ public:
m_videoram(*this, "videoram"),
m_char_bank(*this, "char_bank"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_col_line;
required_shared_ptr<UINT8> m_videoram;
@@ -97,6 +98,7 @@ public:
UINT32 screen_update_supdrapo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/superdq.c b/src/mame/drivers/superdq.c
index d5e872fc844..763e6c08d4f 100644
--- a/src/mame/drivers/superdq.c
+++ b/src/mame/drivers/superdq.c
@@ -35,7 +35,8 @@ public:
m_laserdisc(*this, "laserdisc") ,
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<pioneer_ldv1000_device> m_laserdisc;
UINT8 m_ld_in_latch;
@@ -57,6 +58,7 @@ public:
INTERRUPT_GEN_MEMBER(superdq_vblank);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
TILE_GET_INFO_MEMBER(superdq_state::get_tile_info)
diff --git a/src/mame/drivers/superwng.c b/src/mame/drivers/superwng.c
index 9a4b988aef6..07e9192e05b 100644
--- a/src/mame/drivers/superwng.c
+++ b/src/mame/drivers/superwng.c
@@ -38,7 +38,8 @@ public:
m_videoram_fg(*this, "videorafg"),
m_colorram_bg(*this, "colorrabg"),
m_colorram_fg(*this, "colorrafg"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -48,6 +49,7 @@ public:
required_shared_ptr<UINT8> m_colorram_bg;
required_shared_ptr<UINT8> m_colorram_fg;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_tile_bank;
UINT8 m_sound_byte;
diff --git a/src/mame/drivers/suprgolf.c b/src/mame/drivers/suprgolf.c
index af6ddcb8fdc..4f7c691a273 100644
--- a/src/mame/drivers/suprgolf.c
+++ b/src/mame/drivers/suprgolf.c
@@ -36,7 +36,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_tilemap;
required_shared_ptr<UINT8> m_videoram;
@@ -79,6 +80,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
TILE_GET_INFO_MEMBER(suprgolf_state::get_tile_info)
diff --git a/src/mame/drivers/taitotz.c b/src/mame/drivers/taitotz.c
index e12c8df9ddb..d8cfe9a37ba 100644
--- a/src/mame/drivers/taitotz.c
+++ b/src/mame/drivers/taitotz.c
@@ -544,7 +544,8 @@ public:
m_iocpu(*this, "iocpu"),
m_work_ram(*this, "work_ram"),
m_mbox_ram(*this, "mbox_ram"),
- m_ata(*this, "ata")
+ m_ata(*this, "ata"),
+ m_screen(*this, "screen")
{
}
@@ -553,6 +554,7 @@ public:
required_shared_ptr<UINT64> m_work_ram;
required_shared_ptr<UINT16> m_mbox_ram;
required_device<ata_interface_device> m_ata;
+ required_device<screen_device> m_screen;
DECLARE_READ64_MEMBER(ppc_common_r);
DECLARE_WRITE64_MEMBER(ppc_common_w);
diff --git a/src/mame/drivers/taitowlf.c b/src/mame/drivers/taitowlf.c
index d5df6cd1325..f96961d1e2e 100644
--- a/src/mame/drivers/taitowlf.c
+++ b/src/mame/drivers/taitowlf.c
@@ -41,7 +41,8 @@ public:
: pcat_base_state(mconfig, type, tag),
m_region_user1(*this, "user1"),
m_region_user5(*this, "user5"),
- m_bank1(*this, "bank1") { }
+ m_bank1(*this, "bank1"),
+ m_palette(*this, "palette") { }
UINT32 *m_bios_ram;
UINT8 m_mxtc_config_reg[256];
@@ -50,6 +51,7 @@ public:
required_memory_region m_region_user1;
required_memory_region m_region_user5;
required_memory_bank m_bank1;
+ required_device<palette_device> m_palette;
DECLARE_WRITE32_MEMBER(pnp_config_w);
DECLARE_WRITE32_MEMBER(pnp_data_w);
DECLARE_WRITE32_MEMBER(bios_ram_w);
diff --git a/src/mame/drivers/tgtpanic.c b/src/mame/drivers/tgtpanic.c
index 53b0ff69aa4..09f01722c71 100644
--- a/src/mame/drivers/tgtpanic.c
+++ b/src/mame/drivers/tgtpanic.c
@@ -19,13 +19,15 @@ public:
tgtpanic_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_ram(*this, "ram"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT8> m_ram;
UINT8 m_color;
DECLARE_WRITE8_MEMBER(color_w);
UINT32 screen_update_tgtpanic(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/drivers/tickee.c b/src/mame/drivers/tickee.c
index c15fc5eeb21..007c9a4eee1 100644
--- a/src/mame/drivers/tickee.c
+++ b/src/mame/drivers/tickee.c
@@ -46,7 +46,8 @@ public:
m_vram(*this, "vram"),
m_control(*this, "control"),
m_maincpu(*this, "maincpu"),
- m_oki(*this, "oki") { }
+ m_oki(*this, "oki"),
+ m_screen(*this, "screen") { }
required_device<tlc34076_device> m_tlc34076;
required_shared_ptr<UINT16> m_vram;
@@ -75,6 +76,7 @@ public:
TIMER_CALLBACK_MEMBER(setup_gun_interrupts);
required_device<cpu_device> m_maincpu;
optional_device<okim6295_device> m_oki;
+ required_device<screen_device> m_screen;
protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
diff --git a/src/mame/drivers/tmaster.c b/src/mame/drivers/tmaster.c
index 9989422b001..3d4cc5c08f9 100644
--- a/src/mame/drivers/tmaster.c
+++ b/src/mame/drivers/tmaster.c
@@ -128,7 +128,9 @@ public:
m_regs(*this, "regs"),
m_galgames_ram(*this, "galgames_ram"),
m_oki(*this, "oki"),
- m_duart(*this, "duart68681"){ }
+ m_duart(*this, "duart68681"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
optional_device<microtouch_serial_device> m_microtouch;
@@ -136,6 +138,8 @@ public:
optional_shared_ptr<UINT16> m_galgames_ram;
required_device<okim6295_device> m_oki;
optional_device<duartn68681_device> m_duart;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int m_okibank;
UINT8 m_rtc_ram[8];
diff --git a/src/mame/drivers/tmmjprd.c b/src/mame/drivers/tmmjprd.c
index d911f61c6a4..597672eebdc 100644
--- a/src/mame/drivers/tmmjprd.c
+++ b/src/mame/drivers/tmmjprd.c
@@ -44,7 +44,8 @@ public:
m_spriteram(*this, "spriteram") ,
m_maincpu(*this, "maincpu"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr_array<UINT32, 4> m_tilemap_regs;
required_shared_ptr<UINT32> m_spriteregs;
@@ -81,6 +82,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/trvmadns.c b/src/mame/drivers/trvmadns.c
index a067a1f81b7..ede9a92ad19 100644
--- a/src/mame/drivers/trvmadns.c
+++ b/src/mame/drivers/trvmadns.c
@@ -98,7 +98,8 @@ public:
m_gfxram(*this, "gfxram"),
m_tileram(*this, "tileram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_bg_tilemap;
required_shared_ptr<UINT8> m_gfxram;
@@ -116,6 +117,7 @@ public:
UINT32 screen_update_trvmadns(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/ttchamp.c b/src/mame/drivers/ttchamp.c
index 4603cc55a39..3d660509af5 100644
--- a/src/mame/drivers/ttchamp.c
+++ b/src/mame/drivers/ttchamp.c
@@ -50,7 +50,8 @@ class ttchamp_state : public driver_device
public:
ttchamp_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
UINT16* m_peno_vram;
UINT16* m_peno_mainram;
@@ -87,6 +88,7 @@ public:
UINT32 screen_update_ttchamp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(ttchamp_irq);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/tugboat.c b/src/mame/drivers/tugboat.c
index d1030566d4d..1b04f66533a 100644
--- a/src/mame/drivers/tugboat.c
+++ b/src/mame/drivers/tugboat.c
@@ -40,11 +40,15 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_ram(*this, "ram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT8> m_ram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_hd46505_0_reg[18];
UINT8 m_hd46505_1_reg[18];
diff --git a/src/mame/drivers/twins.c b/src/mame/drivers/twins.c
index 96e356b8feb..48ac204161c 100644
--- a/src/mame/drivers/twins.c
+++ b/src/mame/drivers/twins.c
@@ -60,11 +60,13 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_videoram(*this, "videoram"),
- m_paletteram(*this, "paletteram") { }
+ m_paletteram(*this, "paletteram"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT16> m_videoram;
required_shared_ptr<UINT16> m_paletteram;
+ required_device<palette_device> m_palette;
UINT16 m_paloff;
DECLARE_READ16_MEMBER(twins_port4_r);
DECLARE_WRITE16_MEMBER(twins_port4_w);
diff --git a/src/mame/drivers/ultrsprt.c b/src/mame/drivers/ultrsprt.c
index 000fb46bcbd..79f659df1f3 100644
--- a/src/mame/drivers/ultrsprt.c
+++ b/src/mame/drivers/ultrsprt.c
@@ -20,7 +20,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_k056800(*this, "k056800"),
- m_workram(*this, "workram") { }
+ m_workram(*this, "workram"),
+ m_palette(*this, "palette") { }
static const UINT32 VRAM_PAGES = 2;
static const UINT32 VRAM_PAGE_BYTES = 512 * 1024;
@@ -29,6 +30,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<k056800_device> m_k056800;
required_shared_ptr<UINT32> m_workram;
+ required_device<palette_device> m_palette;
DECLARE_READ32_MEMBER(vram_r);
DECLARE_WRITE32_MEMBER(vram_w);
diff --git a/src/mame/drivers/umipoker.c b/src/mame/drivers/umipoker.c
index 1d8d1b81024..b53e6c8cc93 100644
--- a/src/mame/drivers/umipoker.c
+++ b/src/mame/drivers/umipoker.c
@@ -35,7 +35,8 @@ public:
m_vram_3(*this, "vra3"),
m_z80_wram(*this, "z80_wram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_vram_0;
required_shared_ptr<UINT16> m_vram_1;
@@ -74,6 +75,7 @@ public:
UINT32 screen_update_umipoker(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
TILE_GET_INFO_MEMBER(umipoker_state::get_tile_info_0)
diff --git a/src/mame/drivers/vamphalf.c b/src/mame/drivers/vamphalf.c
index 19f6bb93f65..cb93986bd18 100644
--- a/src/mame/drivers/vamphalf.c
+++ b/src/mame/drivers/vamphalf.c
@@ -83,7 +83,8 @@ public:
m_oki(*this, "oki"),
m_oki2(*this, "oki_2"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") {
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") {
m_has_extra_gfx = 0;
}
@@ -98,6 +99,7 @@ public:
optional_device<okim6295_device> m_oki2;
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_flip_bit;
int m_flipscreen;
diff --git a/src/mame/drivers/vega.c b/src/mame/drivers/vega.c
index 817230ff65d..a0640197b34 100644
--- a/src/mame/drivers/vega.c
+++ b/src/mame/drivers/vega.c
@@ -105,13 +105,15 @@ public:
m_i8255(*this, "ppi8255"),
m_ins8154(*this, "ins8154"),
m_ay8910(*this, "ay8910"),
- m_gfxdecode(*this, "gfxdecode") {}
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") {}
required_device<cpu_device> m_maincpu;
required_device<i8255_device> m_i8255;
required_device<ins8154_device> m_ins8154;
required_device<ay8910_device> m_ay8910;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_p2_data;
int m_ext_offset_w;
diff --git a/src/mame/drivers/vpoker.c b/src/mame/drivers/vpoker.c
index 136eb4ac6cf..e72c51caec5 100644
--- a/src/mame/drivers/vpoker.c
+++ b/src/mame/drivers/vpoker.c
@@ -120,7 +120,8 @@ public:
vpoker_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 *m_videoram;
UINT8 m_blit_ram[8];
@@ -132,6 +133,7 @@ public:
UINT32 screen_update_vpoker(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/vroulet.c b/src/mame/drivers/vroulet.c
index b333a055d92..84820a6eb49 100644
--- a/src/mame/drivers/vroulet.c
+++ b/src/mame/drivers/vroulet.c
@@ -50,7 +50,8 @@ public:
m_colorram(*this, "colorram"),
m_ball(*this, "ball"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
@@ -67,6 +68,7 @@ public:
UINT32 screen_update_vroulet(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/drivers/wheelfir.c b/src/mame/drivers/wheelfir.c
index 906b5357b02..66a87de6f74 100644
--- a/src/mame/drivers/wheelfir.c
+++ b/src/mame/drivers/wheelfir.c
@@ -231,10 +231,14 @@ public:
wheelfir_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "subcpu") { }
+ m_subcpu(*this, "subcpu"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
INT32 *m_zoom_table;
UINT16 *m_blitter_data;
diff --git a/src/mame/drivers/witch.c b/src/mame/drivers/witch.c
index 6e34f20a46b..533c32bd280 100644
--- a/src/mame/drivers/witch.c
+++ b/src/mame/drivers/witch.c
@@ -243,7 +243,8 @@ public:
m_gfx0_cram(*this, "gfx0_cram"),
m_gfx1_vram(*this, "gfx1_vram"),
m_gfx1_cram(*this, "gfx1_cram"),
- m_sprite_ram(*this, "sprite_ram") { }
+ m_sprite_ram(*this, "sprite_ram"),
+ m_palette(*this, "palette") { }
tilemap_t *m_gfx0a_tilemap;
tilemap_t *m_gfx0b_tilemap;
@@ -258,6 +259,7 @@ public:
required_shared_ptr<UINT8> m_gfx1_vram;
required_shared_ptr<UINT8> m_gfx1_cram;
required_shared_ptr<UINT8> m_sprite_ram;
+ required_device<palette_device> m_palette;
int m_scrollx;
int m_scrolly;
diff --git a/src/mame/drivers/zr107.c b/src/mame/drivers/zr107.c
index b861c8c18e2..49226560d4f 100644
--- a/src/mame/drivers/zr107.c
+++ b/src/mame/drivers/zr107.c
@@ -190,7 +190,8 @@ public:
m_k001604(*this, "k001604"),
m_k056800(*this, "k056800"),
m_k056832(*this, "k056832"),
- m_workram(*this, "workram") { }
+ m_workram(*this, "workram"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
@@ -199,6 +200,7 @@ public:
required_device<k056800_device> m_k056800;
optional_device<k056832_device> m_k056832;
optional_shared_ptr<UINT32> m_workram;
+ required_device<palette_device> m_palette;
UINT32 *m_sharc_dataram;
UINT8 m_led_reg0;