summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2014-03-05 13:29:22 +0000
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2014-03-05 13:29:22 +0000
commitd2fd2856a7261992067f708299c3e7a37b9425f8 (patch)
treed656e2ab882173398c41b4bfb7b3f49c8e56130d /src/mame/includes
parentcc299c4066918ffe0bf29940bbf0672f38b6c262 (diff)
Moved optional_device<screen_device> m_screen and optional_device<palette_device> m_palette out of driver.* (nw)
Diffstat (limited to 'src/mame/includes')
-rw-r--r--src/mame/includes/1942.h4
-rw-r--r--src/mame/includes/1943.h6
-rw-r--r--src/mame/includes/40love.h4
-rw-r--r--src/mame/includes/4enraya.h4
-rw-r--r--src/mame/includes/8080bw.h7
-rw-r--r--src/mame/includes/aeroboto.h4
-rw-r--r--src/mame/includes/aerofgt.h4
-rw-r--r--src/mame/includes/airbustr.h6
-rw-r--r--src/mame/includes/ajax.h4
-rw-r--r--src/mame/includes/alpha68k.h4
-rw-r--r--src/mame/includes/ambush.h4
-rw-r--r--src/mame/includes/amiga.h7
-rw-r--r--src/mame/includes/amspdwy.h6
-rw-r--r--src/mame/includes/angelkds.h4
-rw-r--r--src/mame/includes/appoooh.h4
-rw-r--r--src/mame/includes/aquarium.h4
-rw-r--r--src/mame/includes/arabian.h4
-rw-r--r--src/mame/includes/archimds.h6
-rw-r--r--src/mame/includes/argus.h6
-rw-r--r--src/mame/includes/arkanoid.h4
-rw-r--r--src/mame/includes/armedf.h4
-rw-r--r--src/mame/includes/astrocde.h4
-rw-r--r--src/mame/includes/astrof.h4
-rw-r--r--src/mame/includes/atarifb.h8
-rw-r--r--src/mame/includes/atetris.h4
-rw-r--r--src/mame/includes/aztarac.h4
-rw-r--r--src/mame/includes/bagman.h4
-rw-r--r--src/mame/includes/balsente.h6
-rw-r--r--src/mame/includes/bankp.h4
-rw-r--r--src/mame/includes/baraduke.h4
-rw-r--r--src/mame/includes/battlane.h4
-rw-r--r--src/mame/includes/battlera.h6
-rw-r--r--src/mame/includes/battlex.h4
-rw-r--r--src/mame/includes/beezer.h6
-rw-r--r--src/mame/includes/bigevglf.h6
-rw-r--r--src/mame/includes/bigstrkb.h4
-rw-r--r--src/mame/includes/bionicc.h4
-rw-r--r--src/mame/includes/bishi.h4
-rw-r--r--src/mame/includes/bking.h6
-rw-r--r--src/mame/includes/bladestl.h4
-rw-r--r--src/mame/includes/blktiger.h4
-rw-r--r--src/mame/includes/blmbycar.h4
-rw-r--r--src/mame/includes/blockade.h4
-rw-r--r--src/mame/includes/blockhl.h4
-rw-r--r--src/mame/includes/blockout.h7
-rw-r--r--src/mame/includes/bloodbro.h4
-rw-r--r--src/mame/includes/blueprnt.h4
-rw-r--r--src/mame/includes/bogeyman.h4
-rw-r--r--src/mame/includes/bombjack.h4
-rw-r--r--src/mame/includes/boogwing.h4
-rw-r--r--src/mame/includes/bottom9.h4
-rw-r--r--src/mame/includes/brkthru.h4
-rw-r--r--src/mame/includes/bsktball.h4
-rw-r--r--src/mame/includes/btime.h8
-rw-r--r--src/mame/includes/btoads.h4
-rw-r--r--src/mame/includes/bublbobl.h4
-rw-r--r--src/mame/includes/buggychl.h7
-rw-r--r--src/mame/includes/bwing.h4
-rw-r--r--src/mame/includes/cabal.h4
-rw-r--r--src/mame/includes/calomega.h4
-rw-r--r--src/mame/includes/canyon.h4
-rw-r--r--src/mame/includes/capbowl.h5
-rw-r--r--src/mame/includes/carjmbre.h4
-rw-r--r--src/mame/includes/carpolo.h4
-rw-r--r--src/mame/includes/cave.h6
-rw-r--r--src/mame/includes/cbasebal.h4
-rw-r--r--src/mame/includes/cbuster.h4
-rw-r--r--src/mame/includes/ccastles.h6
-rw-r--r--src/mame/includes/cchasm.h6
-rw-r--r--src/mame/includes/cclimber.h4
-rw-r--r--src/mame/includes/centiped.h6
-rw-r--r--src/mame/includes/chaknpop.h4
-rw-r--r--src/mame/includes/champbas.h4
-rw-r--r--src/mame/includes/changela.h6
-rw-r--r--src/mame/includes/cheekyms.h6
-rw-r--r--src/mame/includes/chqflag.h4
-rw-r--r--src/mame/includes/cinemat.h4
-rw-r--r--src/mame/includes/circus.h4
-rw-r--r--src/mame/includes/circusc.h4
-rw-r--r--src/mame/includes/cischeat.h4
-rw-r--r--src/mame/includes/citycon.h4
-rw-r--r--src/mame/includes/cloak.h6
-rw-r--r--src/mame/includes/cloud9.h8
-rw-r--r--src/mame/includes/clshroad.h4
-rw-r--r--src/mame/includes/cninja.h6
-rw-r--r--src/mame/includes/combatsc.h4
-rw-r--r--src/mame/includes/commando.h4
-rw-r--r--src/mame/includes/compgolf.h4
-rw-r--r--src/mame/includes/contra.h6
-rw-r--r--src/mame/includes/cop01.h4
-rw-r--r--src/mame/includes/copsnrob.h6
-rw-r--r--src/mame/includes/cosmic.h6
-rw-r--r--src/mame/includes/cps1.h7
-rw-r--r--src/mame/includes/cps3.h4
-rw-r--r--src/mame/includes/crimfght.h5
-rw-r--r--src/mame/includes/crshrace.h4
-rw-r--r--src/mame/includes/cvs.h6
-rw-r--r--src/mame/includes/cyberbal.h4
-rw-r--r--src/mame/includes/darius.h4
-rw-r--r--src/mame/includes/darkmist.h4
-rw-r--r--src/mame/includes/darkseal.h4
-rw-r--r--src/mame/includes/dassault.h4
-rw-r--r--src/mame/includes/dcheese.h4
-rw-r--r--src/mame/includes/dcon.h4
-rw-r--r--src/mame/includes/dday.h6
-rw-r--r--src/mame/includes/ddragon.h6
-rw-r--r--src/mame/includes/ddragon3.h6
-rw-r--r--src/mame/includes/ddribble.h4
-rw-r--r--src/mame/includes/deadang.h4
-rw-r--r--src/mame/includes/dec0.h4
-rw-r--r--src/mame/includes/dec8.h4
-rw-r--r--src/mame/includes/deco32.h6
-rw-r--r--src/mame/includes/deco_mlc.h6
-rw-r--r--src/mame/includes/decocass.h6
-rw-r--r--src/mame/includes/deniam.h4
-rw-r--r--src/mame/includes/djboy.h4
-rw-r--r--src/mame/includes/djmain.h4
-rw-r--r--src/mame/includes/dkong.h6
-rw-r--r--src/mame/includes/docastle.h6
-rw-r--r--src/mame/includes/dogfgt.h6
-rw-r--r--src/mame/includes/dooyong.h4
-rw-r--r--src/mame/includes/dragrace.h4
-rw-r--r--src/mame/includes/drgnmst.h4
-rw-r--r--src/mame/includes/drmicro.h4
-rw-r--r--src/mame/includes/dynax.h6
-rw-r--r--src/mame/includes/dynduke.h4
-rw-r--r--src/mame/includes/eolith.h7
-rw-r--r--src/mame/includes/eprom.h5
-rw-r--r--src/mame/includes/equites.h4
-rw-r--r--src/mame/includes/espial.h4
-rw-r--r--src/mame/includes/esripsys.h4
-rw-r--r--src/mame/includes/exedexes.h4
-rw-r--r--src/mame/includes/exerion.h6
-rw-r--r--src/mame/includes/exidy.h6
-rw-r--r--src/mame/includes/exidy440.h8
-rw-r--r--src/mame/includes/exprraid.h4
-rw-r--r--src/mame/includes/exzisus.h4
-rw-r--r--src/mame/includes/f1gp.h4
-rw-r--r--src/mame/includes/fantland.h6
-rw-r--r--src/mame/includes/fastfred.h5
-rw-r--r--src/mame/includes/fastlane.h6
-rw-r--r--src/mame/includes/fcombat.h4
-rw-r--r--src/mame/includes/fgoal.h6
-rw-r--r--src/mame/includes/finalizr.h4
-rw-r--r--src/mame/includes/firetrap.h4
-rw-r--r--src/mame/includes/firetrk.h6
-rw-r--r--src/mame/includes/fitfight.h4
-rw-r--r--src/mame/includes/flower.h4
-rw-r--r--src/mame/includes/flstory.h4
-rw-r--r--src/mame/includes/freekick.h4
-rw-r--r--src/mame/includes/fromanc2.h4
-rw-r--r--src/mame/includes/fromance.h6
-rw-r--r--src/mame/includes/funkybee.h4
-rw-r--r--src/mame/includes/funworld.h4
-rw-r--r--src/mame/includes/funybubl.h4
-rw-r--r--src/mame/includes/fuukifg2.h7
-rw-r--r--src/mame/includes/fuukifg3.h6
-rw-r--r--src/mame/includes/gaelco.h4
-rw-r--r--src/mame/includes/gaelco2.h4
-rw-r--r--src/mame/includes/gaelco3d.h5
-rw-r--r--src/mame/includes/gaiden.h6
-rw-r--r--src/mame/includes/galaga.h6
-rw-r--r--src/mame/includes/galastrm.h7
-rw-r--r--src/mame/includes/galaxian.h6
-rw-r--r--src/mame/includes/galaxold.h6
-rw-r--r--src/mame/includes/galivan.h4
-rw-r--r--src/mame/includes/galpani2.h4
-rw-r--r--src/mame/includes/galpanic.h6
-rw-r--r--src/mame/includes/galspnbl.h4
-rw-r--r--src/mame/includes/gameplan.h4
-rw-r--r--src/mame/includes/gaplus.h6
-rw-r--r--src/mame/includes/gberet.h4
-rw-r--r--src/mame/includes/gbusters.h4
-rw-r--r--src/mame/includes/gcpinbal.h4
-rw-r--r--src/mame/includes/gijoe.h4
-rw-r--r--src/mame/includes/ginganin.h4
-rw-r--r--src/mame/includes/gladiatr.h4
-rw-r--r--src/mame/includes/glass.h4
-rw-r--r--src/mame/includes/gng.h4
-rw-r--r--src/mame/includes/goal92.h4
-rw-r--r--src/mame/includes/goindol.h4
-rw-r--r--src/mame/includes/goldstar.h4
-rw-r--r--src/mame/includes/gomoku.h4
-rw-r--r--src/mame/includes/gottlieb.h8
-rw-r--r--src/mame/includes/gotya.h4
-rw-r--r--src/mame/includes/grchamp.h4
-rw-r--r--src/mame/includes/gridlee.h7
-rw-r--r--src/mame/includes/groundfx.h4
-rw-r--r--src/mame/includes/gstriker.h6
-rw-r--r--src/mame/includes/gsword.h4
-rw-r--r--src/mame/includes/gunbustr.h4
-rw-r--r--src/mame/includes/gundealr.h4
-rw-r--r--src/mame/includes/gunsmoke.h4
-rw-r--r--src/mame/includes/gyruss.h8
-rw-r--r--src/mame/includes/hcastle.h4
-rw-r--r--src/mame/includes/higemaru.h4
-rw-r--r--src/mame/includes/himesiki.h4
-rw-r--r--src/mame/includes/hitme.h4
-rw-r--r--src/mame/includes/hng64.h6
-rw-r--r--src/mame/includes/holeland.h4
-rw-r--r--src/mame/includes/homedata.h4
-rw-r--r--src/mame/includes/homerun.h8
-rw-r--r--src/mame/includes/hyhoo.h5
-rw-r--r--src/mame/includes/hyperspt.h4
-rw-r--r--src/mame/includes/hyprduel.h6
-rw-r--r--src/mame/includes/ikki.h6
-rw-r--r--src/mame/includes/inufuku.h4
-rw-r--r--src/mame/includes/irobot.h6
-rw-r--r--src/mame/includes/ironhors.h4
-rw-r--r--src/mame/includes/itech32.h6
-rw-r--r--src/mame/includes/itech8.h4
-rw-r--r--src/mame/includes/jack.h6
-rw-r--r--src/mame/includes/jackal.h4
-rw-r--r--src/mame/includes/jaguar.h4
-rw-r--r--src/mame/includes/jailbrek.h4
-rw-r--r--src/mame/includes/jedi.h4
-rw-r--r--src/mame/includes/jpmimpct.h4
-rw-r--r--src/mame/includes/jpmsys5.h4
-rw-r--r--src/mame/includes/karnov.h4
-rw-r--r--src/mame/includes/kchamp.h4
-rw-r--r--src/mame/includes/kickgoal.h4
-rw-r--r--src/mame/includes/kingobox.h4
-rw-r--r--src/mame/includes/kncljoe.h6
-rw-r--r--src/mame/includes/konamigx.h6
-rw-r--r--src/mame/includes/ksayakyu.h4
-rw-r--r--src/mame/includes/kyugo.h4
-rw-r--r--src/mame/includes/labyrunr.h6
-rw-r--r--src/mame/includes/ladybug.h4
-rw-r--r--src/mame/includes/ladyfrog.h4
-rw-r--r--src/mame/includes/laserbat.h4
-rw-r--r--src/mame/includes/lasso.h4
-rw-r--r--src/mame/includes/lastduel.h6
-rw-r--r--src/mame/includes/lazercmd.h4
-rw-r--r--src/mame/includes/legionna.h4
-rw-r--r--src/mame/includes/leland.h6
-rw-r--r--src/mame/includes/lemmings.h4
-rw-r--r--src/mame/includes/lethal.h4
-rw-r--r--src/mame/includes/lethalj.h4
-rw-r--r--src/mame/includes/liberate.h6
-rw-r--r--src/mame/includes/lkage.h4
-rw-r--r--src/mame/includes/lockon.h6
-rw-r--r--src/mame/includes/lordgun.h6
-rw-r--r--src/mame/includes/lsasquad.h4
-rw-r--r--src/mame/includes/lwings.h4
-rw-r--r--src/mame/includes/m10.h6
-rw-r--r--src/mame/includes/m107.h8
-rw-r--r--src/mame/includes/m52.h6
-rw-r--r--src/mame/includes/m57.h4
-rw-r--r--src/mame/includes/m58.h6
-rw-r--r--src/mame/includes/m62.h4
-rw-r--r--src/mame/includes/m72.h6
-rw-r--r--src/mame/includes/m90.h4
-rw-r--r--src/mame/includes/m92.h8
-rw-r--r--src/mame/includes/macrossp.h4
-rw-r--r--src/mame/includes/madalien.h4
-rw-r--r--src/mame/includes/magmax.h6
-rw-r--r--src/mame/includes/mainsnk.h4
-rw-r--r--src/mame/includes/malzak.h7
-rw-r--r--src/mame/includes/mappy.h6
-rw-r--r--src/mame/includes/marineb.h4
-rw-r--r--src/mame/includes/mario.h4
-rw-r--r--src/mame/includes/markham.h4
-rw-r--r--src/mame/includes/matmania.h6
-rw-r--r--src/mame/includes/mcatadv.h4
-rw-r--r--src/mame/includes/mcr.h4
-rw-r--r--src/mame/includes/mcr3.h7
-rw-r--r--src/mame/includes/mcr68.h6
-rw-r--r--src/mame/includes/meadows.h6
-rw-r--r--src/mame/includes/megadriv.h7
-rw-r--r--src/mame/includes/megasys1.h4
-rw-r--r--src/mame/includes/megazone.h4
-rw-r--r--src/mame/includes/mermaid.h6
-rw-r--r--src/mame/includes/metlclsh.h4
-rw-r--r--src/mame/includes/metro.h7
-rw-r--r--src/mame/includes/mexico86.h4
-rw-r--r--src/mame/includes/micro3d.h4
-rw-r--r--src/mame/includes/midtunit.h4
-rw-r--r--src/mame/includes/midvunit.h6
-rw-r--r--src/mame/includes/midyunit.h5
-rw-r--r--src/mame/includes/midzeus.h8
-rw-r--r--src/mame/includes/mikie.h4
-rw-r--r--src/mame/includes/mitchell.h6
-rw-r--r--src/mame/includes/mjkjidai.h4
-rw-r--r--src/mame/includes/model1.h4
-rw-r--r--src/mame/includes/model2.h6
-rw-r--r--src/mame/includes/model3.h4
-rw-r--r--src/mame/includes/momoko.h4
-rw-r--r--src/mame/includes/mouser.h4
-rw-r--r--src/mame/includes/mpu4.h4
-rw-r--r--src/mame/includes/mrdo.h4
-rw-r--r--src/mame/includes/mrflea.h6
-rw-r--r--src/mame/includes/mrjong.h4
-rw-r--r--src/mame/includes/ms32.h6
-rw-r--r--src/mame/includes/msisaac.h4
-rw-r--r--src/mame/includes/mugsmash.h4
-rw-r--r--src/mame/includes/multfish.h6
-rw-r--r--src/mame/includes/munchmo.h4
-rw-r--r--src/mame/includes/mustache.h6
-rw-r--r--src/mame/includes/mw8080bw.h4
-rw-r--r--src/mame/includes/mystston.h6
-rw-r--r--src/mame/includes/n8080.h7
-rw-r--r--src/mame/includes/namcona1.h6
-rw-r--r--src/mame/includes/namcos1.h5
-rw-r--r--src/mame/includes/namcos2.h6
-rw-r--r--src/mame/includes/namcos22.h7
-rw-r--r--src/mame/includes/namcos86.h4
-rw-r--r--src/mame/includes/naughtyb.h7
-rw-r--r--src/mame/includes/nbmj8891.h6
-rw-r--r--src/mame/includes/nbmj8900.h6
-rw-r--r--src/mame/includes/nbmj8991.h6
-rw-r--r--src/mame/includes/nbmj9195.h6
-rw-r--r--src/mame/includes/nemesis.h6
-rw-r--r--src/mame/includes/neogeo.h7
-rw-r--r--src/mame/includes/ninjakd2.h6
-rw-r--r--src/mame/includes/ninjaw.h4
-rw-r--r--src/mame/includes/nitedrvr.h4
-rw-r--r--src/mame/includes/niyanpai.h6
-rw-r--r--src/mame/includes/nmk16.h4
-rw-r--r--src/mame/includes/norautp.h4
-rw-r--r--src/mame/includes/nova2001.h4
-rw-r--r--src/mame/includes/nycaptor.h4
-rw-r--r--src/mame/includes/ohmygod.h4
-rw-r--r--src/mame/includes/ojankohs.h6
-rw-r--r--src/mame/includes/oneshot.h4
-rw-r--r--src/mame/includes/orbit.h6
-rw-r--r--src/mame/includes/othunder.h4
-rw-r--r--src/mame/includes/overdriv.h4
-rw-r--r--src/mame/includes/pacland.h7
-rw-r--r--src/mame/includes/pacman.h4
-rw-r--r--src/mame/includes/pandoras.h4
-rw-r--r--src/mame/includes/paradise.h6
-rw-r--r--src/mame/includes/pastelg.h4
-rw-r--r--src/mame/includes/pbaction.h4
-rw-r--r--src/mame/includes/pcktgal.h4
-rw-r--r--src/mame/includes/pgm.h4
-rw-r--r--src/mame/includes/pingpong.h4
-rw-r--r--src/mame/includes/pirates.h4
-rw-r--r--src/mame/includes/pitnrun.h4
-rw-r--r--src/mame/includes/pktgaldx.h4
-rw-r--r--src/mame/includes/playmark.h4
-rw-r--r--src/mame/includes/plygonet.h4
-rw-r--r--src/mame/includes/pokechmp.h4
-rw-r--r--src/mame/includes/polepos.h7
-rw-r--r--src/mame/includes/policetr.h7
-rw-r--r--src/mame/includes/polyplay.h4
-rw-r--r--src/mame/includes/poolshrk.h4
-rw-r--r--src/mame/includes/pooyan.h4
-rw-r--r--src/mame/includes/popeye.h4
-rw-r--r--src/mame/includes/popper.h6
-rw-r--r--src/mame/includes/portrait.h6
-rw-r--r--src/mame/includes/powerins.h6
-rw-r--r--src/mame/includes/prehisle.h4
-rw-r--r--src/mame/includes/psikyo.h6
-rw-r--r--src/mame/includes/psikyo4.h4
-rw-r--r--src/mame/includes/psikyosh.h6
-rw-r--r--src/mame/includes/psychic5.h4
-rw-r--r--src/mame/includes/punchout.h4
-rw-r--r--src/mame/includes/pushman.h4
-rw-r--r--src/mame/includes/qdrmfgp.h4
-rw-r--r--src/mame/includes/qix.h5
-rw-r--r--src/mame/includes/quizdna.h4
-rw-r--r--src/mame/includes/raiden.h4
-rw-r--r--src/mame/includes/raiden2.h4
-rw-r--r--src/mame/includes/rainbow.h4
-rw-r--r--src/mame/includes/rallyx.h4
-rw-r--r--src/mame/includes/realbrk.h6
-rw-r--r--src/mame/includes/redalert.h4
-rw-r--r--src/mame/includes/renegade.h4
-rw-r--r--src/mame/includes/retofinv.h4
-rw-r--r--src/mame/includes/rockrage.h4
-rw-r--r--src/mame/includes/rocnrope.h4
-rw-r--r--src/mame/includes/rohga.h5
-rw-r--r--src/mame/includes/rollrace.h4
-rw-r--r--src/mame/includes/rpunch.h6
-rw-r--r--src/mame/includes/runaway.h6
-rw-r--r--src/mame/includes/rungun.h4
-rw-r--r--src/mame/includes/sauro.h4
-rw-r--r--src/mame/includes/sbasketb.h4
-rw-r--r--src/mame/includes/scotrsht.h4
-rw-r--r--src/mame/includes/sderby.h4
-rw-r--r--src/mame/includes/segag80r.h6
-rw-r--r--src/mame/includes/segag80v.h5
-rw-r--r--src/mame/includes/segas24.h6
-rw-r--r--src/mame/includes/segas32.h6
-rw-r--r--src/mame/includes/seibuspi.h4
-rw-r--r--src/mame/includes/seicross.h6
-rw-r--r--src/mame/includes/senjyo.h4
-rw-r--r--src/mame/includes/seta.h4
-rw-r--r--src/mame/includes/seta2.h6
-rw-r--r--src/mame/includes/sf.h4
-rw-r--r--src/mame/includes/shadfrce.h6
-rw-r--r--src/mame/includes/shangha3.h6
-rw-r--r--src/mame/includes/shangkid.h4
-rw-r--r--src/mame/includes/shaolins.h4
-rw-r--r--src/mame/includes/shisen.h4
-rw-r--r--src/mame/includes/shootout.h4
-rw-r--r--src/mame/includes/sidearms.h4
-rw-r--r--src/mame/includes/sidepckt.h4
-rw-r--r--src/mame/includes/silkroad.h4
-rw-r--r--src/mame/includes/simpl156.h4
-rw-r--r--src/mame/includes/skydiver.h4
-rw-r--r--src/mame/includes/skyfox.h6
-rw-r--r--src/mame/includes/skykid.h4
-rw-r--r--src/mame/includes/skyraid.h4
-rw-r--r--src/mame/includes/slapfght.h4
-rw-r--r--src/mame/includes/slapshot.h4
-rw-r--r--src/mame/includes/snes.h5
-rw-r--r--src/mame/includes/snk.h6
-rw-r--r--src/mame/includes/snk6502.h4
-rw-r--r--src/mame/includes/snk68.h6
-rw-r--r--src/mame/includes/snowbros.h5
-rw-r--r--src/mame/includes/solomon.h4
-rw-r--r--src/mame/includes/sonson.h4
-rw-r--r--src/mame/includes/spacefb.h4
-rw-r--r--src/mame/includes/spbactn.h6
-rw-r--r--src/mame/includes/spcforce.h4
-rw-r--r--src/mame/includes/spdodgeb.h6
-rw-r--r--src/mame/includes/speedatk.h4
-rw-r--r--src/mame/includes/speedbal.h4
-rw-r--r--src/mame/includes/speedspn.h4
-rw-r--r--src/mame/includes/splash.h4
-rw-r--r--src/mame/includes/sprcros2.h4
-rw-r--r--src/mame/includes/sprint2.h6
-rw-r--r--src/mame/includes/sprint4.h6
-rw-r--r--src/mame/includes/sprint8.h6
-rw-r--r--src/mame/includes/spy.h4
-rw-r--r--src/mame/includes/srumbler.h4
-rw-r--r--src/mame/includes/sshangha.h4
-rw-r--r--src/mame/includes/sslam.h4
-rw-r--r--src/mame/includes/ssozumo.h4
-rw-r--r--src/mame/includes/sspeedr.h4
-rw-r--r--src/mame/includes/ssrj.h4
-rw-r--r--src/mame/includes/ssv.h6
-rw-r--r--src/mame/includes/st0016.h6
-rw-r--r--src/mame/includes/starcrus.h4
-rw-r--r--src/mame/includes/starfire.h4
-rw-r--r--src/mame/includes/starshp1.h6
-rw-r--r--src/mame/includes/stfight.h4
-rw-r--r--src/mame/includes/stlforce.h4
-rw-r--r--src/mame/includes/strnskil.h4
-rw-r--r--src/mame/includes/stv.h4
-rw-r--r--src/mame/includes/subs.h4
-rw-r--r--src/mame/includes/suna16.h6
-rw-r--r--src/mame/includes/suna8.h6
-rw-r--r--src/mame/includes/superchs.h4
-rw-r--r--src/mame/includes/superqix.h4
-rw-r--r--src/mame/includes/suprnova.h4
-rw-r--r--src/mame/includes/suprridr.h4
-rw-r--r--src/mame/includes/suprslam.h4
-rw-r--r--src/mame/includes/surpratk.h4
-rw-r--r--src/mame/includes/system1.h6
-rw-r--r--src/mame/includes/tagteam.h4
-rw-r--r--src/mame/includes/tail2nos.h4
-rw-r--r--src/mame/includes/taito_b.h6
-rw-r--r--src/mame/includes/taito_f2.h4
-rw-r--r--src/mame/includes/taito_f3.h6
-rw-r--r--src/mame/includes/taito_h.h4
-rw-r--r--src/mame/includes/taito_l.h4
-rw-r--r--src/mame/includes/taito_o.h4
-rw-r--r--src/mame/includes/taito_z.h4
-rw-r--r--src/mame/includes/taitoair.h6
-rw-r--r--src/mame/includes/taitojc.h6
-rw-r--r--src/mame/includes/taitosj.h6
-rw-r--r--src/mame/includes/tank8.h6
-rw-r--r--src/mame/includes/tankbatt.h4
-rw-r--r--src/mame/includes/tankbust.h4
-rw-r--r--src/mame/includes/targeth.h4
-rw-r--r--src/mame/includes/tatsumi.h4
-rw-r--r--src/mame/includes/taxidriv.h4
-rw-r--r--src/mame/includes/tbowl.h4
-rw-r--r--src/mame/includes/tceptor.h4
-rw-r--r--src/mame/includes/tecmo.h4
-rw-r--r--src/mame/includes/tecmo16.h6
-rw-r--r--src/mame/includes/tecmosys.h6
-rw-r--r--src/mame/includes/tehkanwc.h4
-rw-r--r--src/mame/includes/terracre.h4
-rw-r--r--src/mame/includes/tetrisp2.h4
-rw-r--r--src/mame/includes/thedeep.h4
-rw-r--r--src/mame/includes/thepit.h4
-rw-r--r--src/mame/includes/thief.h4
-rw-r--r--src/mame/includes/thoop2.h4
-rw-r--r--src/mame/includes/thunderx.h5
-rw-r--r--src/mame/includes/tiamc1.h4
-rw-r--r--src/mame/includes/tigeroad.h4
-rw-r--r--src/mame/includes/timelimt.h4
-rw-r--r--src/mame/includes/timeplt.h6
-rw-r--r--src/mame/includes/tmnt.h4
-rw-r--r--src/mame/includes/tnzs.h4
-rw-r--r--src/mame/includes/toaplan1.h6
-rw-r--r--src/mame/includes/toaplan2.h6
-rw-r--r--src/mame/includes/toki.h6
-rw-r--r--src/mame/includes/topspeed.h6
-rw-r--r--src/mame/includes/toypop.h4
-rw-r--r--src/mame/includes/tp84.h6
-rw-r--r--src/mame/includes/trackfld.h4
-rw-r--r--src/mame/includes/travrusa.h4
-rw-r--r--src/mame/includes/triplhnt.h6
-rw-r--r--src/mame/includes/tryout.h4
-rw-r--r--src/mame/includes/tsamurai.h4
-rw-r--r--src/mame/includes/tubep.h5
-rw-r--r--src/mame/includes/tumbleb.h4
-rw-r--r--src/mame/includes/tunhunt.h6
-rw-r--r--src/mame/includes/turbo.h4
-rw-r--r--src/mame/includes/twin16.h6
-rw-r--r--src/mame/includes/twincobr.h7
-rw-r--r--src/mame/includes/tx1.h4
-rw-r--r--src/mame/includes/ultratnk.h6
-rw-r--r--src/mame/includes/undrfire.h4
-rw-r--r--src/mame/includes/unico.h6
-rw-r--r--src/mame/includes/vaportra.h5
-rw-r--r--src/mame/includes/vastar.h4
-rw-r--r--src/mame/includes/vball.h6
-rw-r--r--src/mame/includes/vendetta.h4
-rw-r--r--src/mame/includes/vicdual.h4
-rw-r--r--src/mame/includes/victory.h6
-rw-r--r--src/mame/includes/videopin.h6
-rw-r--r--src/mame/includes/vigilant.h4
-rw-r--r--src/mame/includes/volfied.h5
-rw-r--r--src/mame/includes/vulgus.h4
-rw-r--r--src/mame/includes/warriorb.h4
-rw-r--r--src/mame/includes/wc90.h4
-rw-r--r--src/mame/includes/wc90b.h4
-rw-r--r--src/mame/includes/wecleman.h4
-rw-r--r--src/mame/includes/wgp.h4
-rw-r--r--src/mame/includes/williams.h6
-rw-r--r--src/mame/includes/wiping.h4
-rw-r--r--src/mame/includes/wiz.h4
-rw-r--r--src/mame/includes/wolfpack.h6
-rw-r--r--src/mame/includes/wrally.h4
-rw-r--r--src/mame/includes/wwfsstar.h6
-rw-r--r--src/mame/includes/xain.h6
-rw-r--r--src/mame/includes/xexex.h4
-rw-r--r--src/mame/includes/xmen.h4
-rw-r--r--src/mame/includes/xorworld.h4
-rw-r--r--src/mame/includes/xxmissio.h4
-rw-r--r--src/mame/includes/yiear.h4
-rw-r--r--src/mame/includes/yunsun16.h6
-rw-r--r--src/mame/includes/yunsung8.h4
-rw-r--r--src/mame/includes/zac2650.h6
-rw-r--r--src/mame/includes/zaccaria.h4
-rw-r--r--src/mame/includes/zaxxon.h4
-rw-r--r--src/mame/includes/zodiack.h4
542 files changed, 2010 insertions, 574 deletions
diff --git a/src/mame/includes/1942.h b/src/mame/includes/1942.h
index 83c94466ed7..41f33643a00 100644
--- a/src/mame/includes/1942.h
+++ b/src/mame/includes/1942.h
@@ -15,7 +15,8 @@ public:
m_protopal(*this, "protopal"),
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_spriteram;
@@ -56,4 +57,5 @@ public:
void draw_sprites_p( 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/includes/1943.h b/src/mame/includes/1943.h
index f50b8f56032..b4dcaa36123 100644
--- a/src/mame/includes/1943.h
+++ b/src/mame/includes/1943.h
@@ -16,7 +16,8 @@ public:
m_scrolly(*this, "scrolly"),
m_bgscrollx(*this, "bgscrollx"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* devices / memory pointers */
@@ -28,7 +29,8 @@ public:
required_shared_ptr<UINT8> m_bgscrollx;
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<palette_device> m_palette;
+
/* video-related */
tilemap_t *m_fg_tilemap;
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/40love.h b/src/mame/includes/40love.h
index 7e6ef8ce1f0..13d42da0b9b 100644
--- a/src/mame/includes/40love.h
+++ b/src/mame/includes/40love.h
@@ -17,7 +17,8 @@ public:
m_mcu(*this, "mcu"),
m_bmcu(*this, "bmcu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -71,6 +72,7 @@ public:
optional_device<buggychl_mcu_device> m_bmcu;
required_device<msm5232_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(sound_command_w);
DECLARE_WRITE8_MEMBER(nmi_disable_w);
diff --git a/src/mame/includes/4enraya.h b/src/mame/includes/4enraya.h
index 34bd311c598..cfe6923dd58 100644
--- a/src/mame/includes/4enraya.h
+++ b/src/mame/includes/4enraya.h
@@ -14,7 +14,8 @@ public:
m_ay(*this, "aysnd"),
m_snd_latch_bit(4),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<ay8910_device> m_ay;
@@ -49,4 +50,5 @@ public:
UINT32 screen_update_4enraya(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/includes/8080bw.h b/src/mame/includes/8080bw.h
index 11c0c74d422..fda2168becd 100644
--- a/src/mame/includes/8080bw.h
+++ b/src/mame/includes/8080bw.h
@@ -22,7 +22,9 @@ public:
m_discrete(*this, "discrete"),
m_speaker(*this, "speaker"),
m_eeprom(*this, "eeprom"),
- m_sn(*this, "snsnd")
+ m_sn(*this, "snsnd"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* devices/memory pointers */
@@ -32,7 +34,8 @@ public:
optional_device<speaker_sound_device> m_speaker;
optional_device<eeprom_serial_93cxx_device> m_eeprom;
optional_device<sn76477_device> m_sn;
-
+ required_device<screen_device> m_screen;
+ optional_device<palette_device> m_palette;
/* misc game specific */
UINT8 m_color_map;
diff --git a/src/mame/includes/aeroboto.h b/src/mame/includes/aeroboto.h
index 8dbe81e0578..888702bcdc0 100644
--- a/src/mame/includes/aeroboto.h
+++ b/src/mame/includes/aeroboto.h
@@ -19,7 +19,8 @@ public:
m_stary(*this, "stary"),
m_bgcolor(*this, "bgcolor"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_mainram;
@@ -65,4 +66,5 @@ 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/includes/aerofgt.h b/src/mame/includes/aerofgt.h
index cadf2ee6198..9ff4e087957 100644
--- a/src/mame/includes/aerofgt.h
+++ b/src/mame/includes/aerofgt.h
@@ -21,7 +21,8 @@ public:
m_audiocpu(*this, "audiocpu"),
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_bg1videoram;
@@ -126,4 +127,5 @@ 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/includes/airbustr.h b/src/mame/includes/airbustr.h
index 5b44df80e5f..94e7e6fe63d 100644
--- a/src/mame/includes/airbustr.h
+++ b/src/mame/includes/airbustr.h
@@ -21,7 +21,9 @@ public:
m_slave(*this, "slave"),
m_audiocpu(*this, "audiocpu"),
m_pandora(*this, "pandora"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -52,6 +54,8 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<kaneko_pandora_device> m_pandora;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(devram_r);
DECLARE_WRITE8_MEMBER(master_nmi_trigger_w);
diff --git a/src/mame/includes/ajax.h b/src/mame/includes/ajax.h
index 811b1038020..45bc2d453ed 100644
--- a/src/mame/includes/ajax.h
+++ b/src/mame/includes/ajax.h
@@ -16,7 +16,8 @@ public:
m_k007232_2(*this, "k007232_2"),
m_k052109(*this, "k052109"),
m_k051960(*this, "k051960"),
- m_k051316(*this, "k051316") { }
+ m_k051316(*this, "k051316"),
+ m_palette(*this, "palette") { }
/* memory pointers */
// UINT8 * m_paletteram; // currently this uses generic palette handling
@@ -39,6 +40,7 @@ public:
required_device<k052109_device> m_k052109;
required_device<k051960_device> m_k051960;
required_device<k051316_device> m_k051316;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(sound_bank_w);
DECLARE_READ8_MEMBER(ajax_ls138_f10_r);
DECLARE_WRITE8_MEMBER(ajax_ls138_f10_w);
diff --git a/src/mame/includes/alpha68k.h b/src/mame/includes/alpha68k.h
index 5035c80fa09..d1620dc5cde 100644
--- a/src/mame/includes/alpha68k.h
+++ b/src/mame/includes/alpha68k.h
@@ -15,7 +15,8 @@ public:
m_paletteram(*this, "paletteram"),
m_audiocpu(*this, "audiocpu"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
optional_shared_ptr<UINT16> m_shared_ram;
@@ -120,6 +121,7 @@ public:
DECLARE_WRITE_LINE_MEMBER(ym3812_irq);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/* game_id - used to deal with a few game specific situations */
diff --git a/src/mame/includes/ambush.h b/src/mame/includes/ambush.h
index e8e63f7c6d1..aac7039521a 100644
--- a/src/mame/includes/ambush.h
+++ b/src/mame/includes/ambush.h
@@ -15,7 +15,8 @@ public:
m_scrollram(*this, "scrollram"),
m_colorbank(*this, "colorbank"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -31,4 +32,5 @@ public:
void draw_chars( bitmap_ind16 &bitmap, const rectangle &cliprect, int priority );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/amiga.h b/src/mame/includes/amiga.h
index ee2989b5a58..9a8189b51c7 100644
--- a/src/mame/includes/amiga.h
+++ b/src/mame/includes/amiga.h
@@ -401,7 +401,9 @@ public:
m_pot1dat_port(*this, "POT1DAT"),
m_p1joy_port(*this, "P1JOY"),
m_p2joy_port(*this, "P2JOY"),
- m_bank1(*this, "bank1")
+ m_bank1(*this, "bank1"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
@@ -425,6 +427,9 @@ public:
optional_ioport m_p2joy_port;
optional_memory_bank m_bank1;
+ required_device<screen_device> m_screen;
+ optional_device<palette_device> m_palette;
+
address_space* m_maincpu_program_space;
const amiga_machine_interface *m_intf;
diff --git a/src/mame/includes/amspdwy.h b/src/mame/includes/amspdwy.h
index 0726c72bb52..fe91f2fc036 100644
--- a/src/mame/includes/amspdwy.h
+++ b/src/mame/includes/amspdwy.h
@@ -17,7 +17,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_ym2151(*this, "ymsnd"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -38,6 +40,8 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<ym2151_device> m_ym2151;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(amspdwy_wheel_0_r);
DECLARE_READ8_MEMBER(amspdwy_wheel_1_r);
diff --git a/src/mame/includes/angelkds.h b/src/mame/includes/angelkds.h
index 7afb91183cc..0e2b8cabdf4 100644
--- a/src/mame/includes/angelkds.h
+++ b/src/mame/includes/angelkds.h
@@ -16,7 +16,8 @@ public:
m_paletteram(*this, "paletteram"),
m_subcpu(*this, "sub"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_bgtopvideoram;
@@ -67,4 +68,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/appoooh.h b/src/mame/includes/appoooh.h
index 7641fa00b86..c25920ed2a3 100644
--- a/src/mame/includes/appoooh.h
+++ b/src/mame/includes/appoooh.h
@@ -13,7 +13,8 @@ public:
m_bg_colorram(*this, "bg_colorram"),
m_msm(*this, "msm"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -61,6 +62,7 @@ public:
DECLARE_WRITE_LINE_MEMBER(appoooh_adpcm_int);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
#define CHR1_OFST 0x00 /* palette page of char set #1 */
diff --git a/src/mame/includes/aquarium.h b/src/mame/includes/aquarium.h
index 3a70127d26d..3ae9c293bdf 100644
--- a/src/mame/includes/aquarium.h
+++ b/src/mame/includes/aquarium.h
@@ -14,7 +14,8 @@ public:
m_audiocpu(*this, "audiocpu"),
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_mid_videoram;
@@ -56,4 +57,5 @@ 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/includes/arabian.h b/src/mame/includes/arabian.h
index b363a69debc..ad6cfefb60d 100644
--- a/src/mame/includes/arabian.h
+++ b/src/mame/includes/arabian.h
@@ -14,7 +14,8 @@ public:
m_custom_cpu_ram(*this, "custom_cpu_ram"),
m_blitter(*this, "blitter"),
m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu") { }
+ m_mcu(*this, "mcu"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_custom_cpu_ram;
@@ -48,4 +49,5 @@ public:
void blit_area( UINT8 plane, UINT16 src, UINT8 x, UINT8 y, UINT8 sx, UINT8 sy );
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_mcu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/archimds.h b/src/mame/includes/archimds.h
index b7d97f663a2..cb77c9bbfba 100644
--- a/src/mame/includes/archimds.h
+++ b/src/mame/includes/archimds.h
@@ -49,7 +49,9 @@ public:
m_i2cmem(*this, "i2cmem"),
m_wd1772(*this, "wd1772"),
m_region_maincpu(*this, "maincpu"),
- m_region_vram(*this, "vram") { }
+ m_region_vram(*this, "vram"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
optional_device<aakart_device> m_kart;
void archimedes_init();
@@ -92,6 +94,8 @@ protected:
optional_device<device_t> m_wd1772;
required_memory_region m_region_maincpu;
required_memory_region m_region_vram;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
dac_device *m_dac[8];
private:
diff --git a/src/mame/includes/argus.h b/src/mame/includes/argus.h
index ca8c627fe8e..ccf30f01392 100644
--- a/src/mame/includes/argus.h
+++ b/src/mame/includes/argus.h
@@ -14,7 +14,9 @@ public:
m_butasan_bg1ram(*this, "butasan_bg1ram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT8> m_bg0_scrollx;
optional_shared_ptr<UINT8> m_bg0_scrolly;
@@ -103,4 +105,6 @@ 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/includes/arkanoid.h b/src/mame/includes/arkanoid.h
index 7e622979d9f..991e9df40cd 100644
--- a/src/mame/includes/arkanoid.h
+++ b/src/mame/includes/arkanoid.h
@@ -20,7 +20,8 @@ public:
m_protram(*this,"protram"),
m_mcu(*this, "mcu"),
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,4 +92,5 @@ public:
void arkanoid_bootleg_init( );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/armedf.h b/src/mame/includes/armedf.h
index 90df87bd7c0..1d44d9bbae0 100644
--- a/src/mame/includes/armedf.h
+++ b/src/mame/includes/armedf.h
@@ -11,7 +11,8 @@ public:
m_bg_videoram(*this, "bg_videoram"),
m_maincpu(*this, "maincpu"),
m_extra(*this, "extra"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
UINT8 * m_text_videoram;
@@ -91,6 +92,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_extra;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
class bigfghtr_state : public armedf_state
diff --git a/src/mame/includes/astrocde.h b/src/mame/includes/astrocde.h
index 42c0576f6e7..a53a764d21a 100644
--- a/src/mame/includes/astrocde.h
+++ b/src/mame/includes/astrocde.h
@@ -34,7 +34,8 @@ public:
m_votrax(*this, "votrax"),
m_astrocade_sound1(*this, "astrocade1"),
m_videoram(*this, "videoram"),
- m_protected_ram(*this, "protected_ram") { }
+ m_protected_ram(*this, "protected_ram"),
+ m_screen(*this, "screen") { }
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_subcpu;
@@ -43,6 +44,7 @@ public:
optional_device<astrocade_device> m_astrocade_sound1;
optional_shared_ptr<UINT8> m_videoram;
optional_shared_ptr<UINT8> m_protected_ram;
+ required_device<screen_device> m_screen;
UINT8 m_video_config;
UINT8 m_sparkle[4];
diff --git a/src/mame/includes/astrof.h b/src/mame/includes/astrof.h
index c78664ea637..de5c2865229 100644
--- a/src/mame/includes/astrof.h
+++ b/src/mame/includes/astrof.h
@@ -17,7 +17,8 @@ public:
m_tomahawk_protection(*this, "tomahawk_prot"),
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
- m_sn(*this, "snsnd") { }
+ m_sn(*this, "snsnd"),
+ m_screen(*this, "screen") { }
/* video-related */
required_shared_ptr<UINT8> m_videoram;
@@ -43,6 +44,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<samples_device> m_samples; // astrof & abattle
optional_device<sn76477_device> m_sn; // tomahawk
+ required_device<screen_device> m_screen;
DECLARE_READ8_MEMBER(irq_clear_r);
DECLARE_WRITE8_MEMBER(astrof_videoram_w);
DECLARE_WRITE8_MEMBER(tomahawk_videoram_w);
diff --git a/src/mame/includes/atarifb.h b/src/mame/includes/atarifb.h
index ce28ea5a961..12a3cde0c3b 100644
--- a/src/mame/includes/atarifb.h
+++ b/src/mame/includes/atarifb.h
@@ -27,7 +27,9 @@ public:
m_scroll_register(*this, "scroll_register"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette"){ }
/* video-related */
required_shared_ptr<UINT8> m_alphap1_videoram;
@@ -63,7 +65,9 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
DECLARE_WRITE8_MEMBER(atarifb_out1_w);
DECLARE_WRITE8_MEMBER(atarifb4_out1_w);
DECLARE_WRITE8_MEMBER(abaseb_out1_w);
diff --git a/src/mame/includes/atetris.h b/src/mame/includes/atetris.h
index 9bb76b8df2f..612f843f85c 100644
--- a/src/mame/includes/atetris.h
+++ b/src/mame/includes/atetris.h
@@ -12,7 +12,8 @@ public:
m_nvram(*this, "nvram") ,
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT8> m_nvram;
required_shared_ptr<UINT8> m_videoram;
@@ -38,4 +39,5 @@ public:
void reset_bank();
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/includes/aztarac.h b/src/mame/includes/aztarac.h
index 2d426cfbb99..2ae80c39f74 100644
--- a/src/mame/includes/aztarac.h
+++ b/src/mame/includes/aztarac.h
@@ -15,13 +15,15 @@ public:
m_audiocpu(*this, "audiocpu"),
m_vector(*this, "vector"),
m_nvram(*this, "nvram") ,
- m_vectorram(*this, "vectorram") { }
+ m_vectorram(*this, "vectorram"),
+ m_screen(*this, "screen") { }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<vector_device> m_vector;
required_shared_ptr<UINT16> m_nvram;
required_shared_ptr<UINT16> m_vectorram;
+ required_device<screen_device> m_screen;
int m_sound_status;
int m_xcenter;
diff --git a/src/mame/includes/bagman.h b/src/mame/includes/bagman.h
index 8789eff40b6..8ada16d917b 100644
--- a/src/mame/includes/bagman.h
+++ b/src/mame/includes/bagman.h
@@ -9,7 +9,8 @@ public:
m_video_enable(*this, "video_enable"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_ls259_buf[8];
UINT8 m_p1_res;
@@ -54,6 +55,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;
};
/*----------- timings -----------*/
diff --git a/src/mame/includes/balsente.h b/src/mame/includes/balsente.h
index 85f3d008e23..ed30d2f9984 100644
--- a/src/mame/includes/balsente.h
+++ b/src/mame/includes/balsente.h
@@ -47,7 +47,9 @@ public:
m_shrike_shared(*this, "shrike_shared"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_68k(*this, "68k") { }
+ m_68k(*this, "68k"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<timer_device> m_scanline_timer;
@@ -216,6 +218,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_68k;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/bankp.h b/src/mame/includes/bankp.h
index 81c2c761b95..682f19dd066 100644
--- a/src/mame/includes/bankp.h
+++ b/src/mame/includes/bankp.h
@@ -14,7 +14,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;
@@ -44,4 +45,5 @@ 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/includes/baraduke.h b/src/mame/includes/baraduke.h
index 99e25d4ad54..3722fa55094 100644
--- a/src/mame/includes/baraduke.h
+++ b/src/mame/includes/baraduke.h
@@ -10,7 +10,8 @@ public:
m_textram(*this, "textram"),
m_maincpu(*this, "maincpu"),
m_cus30(*this, "namco"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_inputport_selected;
int m_counter;
@@ -20,6 +21,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<namco_cus30_device> m_cus30;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_tx_tilemap;
tilemap_t *m_bg_tilemap[2];
int m_xscroll[2];
diff --git a/src/mame/includes/battlane.h b/src/mame/includes/battlane.h
index a09232d4ddc..9ad94c4edd8 100644
--- a/src/mame/includes/battlane.h
+++ b/src/mame/includes/battlane.h
@@ -13,7 +13,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_tileram;
@@ -29,6 +30,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;
DECLARE_WRITE8_MEMBER(battlane_cpu_command_w);
DECLARE_WRITE8_MEMBER(battlane_palette_w);
diff --git a/src/mame/includes/battlera.h b/src/mame/includes/battlera.h
index 1e83e6bed2c..1a9b12e6bab 100644
--- a/src/mame/includes/battlera.h
+++ b/src/mame/includes/battlera.h
@@ -8,7 +8,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_control_port_select;
int m_msm5205next;
@@ -51,4 +53,6 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/battlex.h b/src/mame/includes/battlex.h
index 29b684443ed..3ca1121aee5 100644
--- a/src/mame/includes/battlex.h
+++ b/src/mame/includes/battlex.h
@@ -12,7 +12,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") { }
UINT8 m_in0_b4;
@@ -42,4 +43,5 @@ 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/includes/beezer.h b/src/mame/includes/beezer.h
index f3452f10cc7..af7e9736f2c 100644
--- a/src/mame/includes/beezer.h
+++ b/src/mame/includes/beezer.h
@@ -11,7 +11,9 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_custom(*this, "custom") { }
+ m_custom(*this, "custom"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
int m_pbus;
@@ -20,6 +22,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<beezer_sound_device> m_custom;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(beezer_bankswitch_w);
DECLARE_WRITE8_MEMBER(beezer_map_w);
diff --git a/src/mame/includes/bigevglf.h b/src/mame/includes/bigevglf.h
index 45710418383..7536552ef5c 100644
--- a/src/mame/includes/bigevglf.h
+++ b/src/mame/includes/bigevglf.h
@@ -12,7 +12,9 @@ public:
m_mcu(*this, "mcu"),
m_maincpu(*this, "maincpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_paletteram;
@@ -103,4 +105,6 @@ public:
required_device<cpu_device> m_maincpu;
required_device<msm5232_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/bigstrkb.h b/src/mame/includes/bigstrkb.h
index 2ccb3e30048..d548c480da4 100644
--- a/src/mame/includes/bigstrkb.h
+++ b/src/mame/includes/bigstrkb.h
@@ -10,7 +10,8 @@ public:
m_vidreg1(*this, "vidreg1"),
m_vidreg2(*this, "vidreg2"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_tilemap;
tilemap_t *m_tilemap2;
@@ -36,4 +37,5 @@ 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/includes/bionicc.h b/src/mame/includes/bionicc.h
index 61f69988300..9a5f1b0b7a8 100644
--- a/src/mame/includes/bionicc.h
+++ b/src/mame/includes/bionicc.h
@@ -17,7 +17,8 @@ public:
m_bgvideoram(*this, "bgvideoram"),
m_paletteram(*this, "paletteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_device<buffered_spriteram16_device> m_spriteram;
@@ -57,4 +58,5 @@ 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/includes/bishi.h b/src/mame/includes/bishi.h
index 2c03652bc0a..c5cb022a47a 100644
--- a/src/mame/includes/bishi.h
+++ b/src/mame/includes/bishi.h
@@ -22,7 +22,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_k056832(*this, "k056832"),
m_k054338(*this, "k054338"),
- m_k055555(*this, "k055555") { }
+ m_k055555(*this, "k055555"),
+ m_palette(*this, "palette") { }
/* memory pointers */
UINT8 * m_ram;
@@ -41,6 +42,7 @@ public:
required_device<k056832_device> m_k056832;
required_device<k054338_device> m_k054338;
required_device<k055555_device> m_k055555;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER(control_r);
DECLARE_WRITE16_MEMBER(control_w);
DECLARE_WRITE16_MEMBER(control2_w);
diff --git a/src/mame/includes/bking.h b/src/mame/includes/bking.h
index 7ab23395bd4..0e80f764bca 100644
--- a/src/mame/includes/bking.h
+++ b/src/mame/includes/bking.h
@@ -9,7 +9,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
m_bmcu(*this, "bmcu"),
- 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;
@@ -47,6 +49,8 @@ public:
optional_device<cpu_device> m_mcu;
optional_device<buggychl_mcu_device> m_bmcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
#if 0
/* 68705 */
diff --git a/src/mame/includes/bladestl.h b/src/mame/includes/bladestl.h
index 951d5d4f70c..ea6192f8784 100644
--- a/src/mame/includes/bladestl.h
+++ b/src/mame/includes/bladestl.h
@@ -19,7 +19,8 @@ public:
m_k007420(*this, "k007420"),
m_maincpu(*this, "maincpu"),
m_upd7759(*this, "upd"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_paletteram;
@@ -49,6 +50,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<upd7759_device> m_upd7759;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in video/bladestl.c -----------*/
diff --git a/src/mame/includes/blktiger.h b/src/mame/includes/blktiger.h
index 404fc5778fc..d1b9f286b0e 100644
--- a/src/mame/includes/blktiger.h
+++ b/src/mame/includes/blktiger.h
@@ -16,7 +16,8 @@ public:
m_mcu(*this, "mcu"),
m_audiocpu(*this, "audiocpu"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_device<buffered_spriteram8_device> m_spriteram;
@@ -71,4 +72,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/blmbycar.h b/src/mame/includes/blmbycar.h
index 46bb78ef3b7..be4b2adfcaa 100644
--- a/src/mame/includes/blmbycar.h
+++ b/src/mame/includes/blmbycar.h
@@ -16,7 +16,8 @@ public:
m_paletteram(*this, "paletteram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_vram_1;
@@ -55,4 +56,5 @@ public:
void draw_sprites( 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/includes/blockade.h b/src/mame/includes/blockade.h
index ac88e024506..0d0e695d1a0 100644
--- a/src/mame/includes/blockade.h
+++ b/src/mame/includes/blockade.h
@@ -10,7 +10,8 @@ public:
m_discrete(*this, "discrete"),
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT8> m_videoram;
required_device<discrete_device> m_discrete;
@@ -35,6 +36,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
};
/*----------- defined in audio/blockade.c -----------*/
diff --git a/src/mame/includes/blockhl.h b/src/mame/includes/blockhl.h
index 3303e1c2f4d..9d7d0f0fe2e 100644
--- a/src/mame/includes/blockhl.h
+++ b/src/mame/includes/blockhl.h
@@ -17,7 +17,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960") { }
+ m_k051960(*this, "k051960"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_ram;
@@ -36,6 +37,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<k052109_device> m_k052109;
required_device<k051960_device> m_k051960;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(bankedram_r);
DECLARE_WRITE8_MEMBER(bankedram_w);
DECLARE_WRITE8_MEMBER(blockhl_sh_irqtrigger_w);
diff --git a/src/mame/includes/blockout.h b/src/mame/includes/blockout.h
index 1a863c9b2c5..aac623819f5 100644
--- a/src/mame/includes/blockout.h
+++ b/src/mame/includes/blockout.h
@@ -13,7 +13,9 @@ public:
m_frontvideoram(*this, "frontvideoram"),
m_paletteram(*this, "paletteram"),
m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"){ }
+ m_audiocpu(*this, "audiocpu"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_videoram;
@@ -27,6 +29,9 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
DECLARE_WRITE_LINE_MEMBER(irq_handler);
DECLARE_WRITE16_MEMBER(blockout_sound_command_w);
DECLARE_WRITE16_MEMBER(blockout_irq6_ack_w);
diff --git a/src/mame/includes/bloodbro.h b/src/mame/includes/bloodbro.h
index b0b093b6ec4..5832fe3cfc3 100644
--- a/src/mame/includes/bloodbro.h
+++ b/src/mame/includes/bloodbro.h
@@ -8,7 +8,8 @@ public:
m_fgvideoram(*this, "fgvideoram"),
m_txvideoram(*this, "txvideoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_bgvideoram;
@@ -37,4 +38,5 @@ public:
void weststry_draw_sprites(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/includes/blueprnt.h b/src/mame/includes/blueprnt.h
index f1837371395..723e7747637 100644
--- a/src/mame/includes/blueprnt.h
+++ b/src/mame/includes/blueprnt.h
@@ -15,7 +15,8 @@ public:
m_spriteram(*this, "spriteram"),
m_colorram(*this, "colorram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* device/memory pointers */
required_device<cpu_device> m_audiocpu;
@@ -48,4 +49,5 @@ 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/includes/bogeyman.h b/src/mame/includes/bogeyman.h
index 250db768f46..1f2f6b2f497 100644
--- a/src/mame/includes/bogeyman.h
+++ b/src/mame/includes/bogeyman.h
@@ -15,7 +15,8 @@ public:
m_colorram2(*this, "colorram2"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -51,4 +52,5 @@ 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/includes/bombjack.h b/src/mame/includes/bombjack.h
index a99b187f117..650caa9bfc3 100644
--- a/src/mame/includes/bombjack.h
+++ b/src/mame/includes/bombjack.h
@@ -13,7 +13,8 @@ public:
m_colorram(*this, "colorram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -47,4 +48,5 @@ 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/includes/boogwing.h b/src/mame/includes/boogwing.h
index 601c92f7ea7..09b28d3fc4c 100644
--- a/src/mame/includes/boogwing.h
+++ b/src/mame/includes/boogwing.h
@@ -32,7 +32,8 @@ public:
m_pf3_rowscroll(*this, "pf3_rowscroll"),
m_pf4_rowscroll(*this, "pf4_rowscroll"),
m_sprgen1(*this, "spritegen1"),
- m_sprgen2(*this, "spritegen2")
+ m_sprgen2(*this, "spritegen2"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -53,6 +54,7 @@ public:
required_shared_ptr<UINT16> m_pf4_rowscroll;
required_device<decospr_device> m_sprgen1;
required_device<decospr_device> m_sprgen2;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(sound_bankswitch_w);
DECLARE_DRIVER_INIT(boogwing);
diff --git a/src/mame/includes/bottom9.h b/src/mame/includes/bottom9.h
index e793cc2eba7..5a799801ad6 100644
--- a/src/mame/includes/bottom9.h
+++ b/src/mame/includes/bottom9.h
@@ -20,7 +20,8 @@ public:
m_k007232_2(*this, "k007232_2"),
m_k052109(*this, "k052109"),
m_k051960(*this, "k051960"),
- m_k051316(*this, "k051316") { }
+ m_k051316(*this, "k051316"),
+ m_palette(*this, "palette") { }
/* memory pointers */
// UINT8 * m_paletteram; // currently this uses generic palette handling
@@ -44,6 +45,7 @@ public:
required_device<k052109_device> m_k052109;
required_device<k051960_device> m_k051960;
required_device<k051316_device> m_k051316;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(k052109_051960_r);
DECLARE_WRITE8_MEMBER(k052109_051960_w);
DECLARE_READ8_MEMBER(bottom9_bankedram1_r);
diff --git a/src/mame/includes/brkthru.h b/src/mame/includes/brkthru.h
index 76ddc3964fd..008b7b8d206 100644
--- a/src/mame/includes/brkthru.h
+++ b/src/mame/includes/brkthru.h
@@ -14,7 +14,8 @@ public:
m_spriteram(*this, "spriteram"),
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_fg_videoram;
@@ -33,6 +34,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;
UINT8 m_nmi_mask;
DECLARE_WRITE8_MEMBER(brkthru_1803_w);
diff --git a/src/mame/includes/bsktball.h b/src/mame/includes/bsktball.h
index 243997f4a4c..5f7f184276f 100644
--- a/src/mame/includes/bsktball.h
+++ b/src/mame/includes/bsktball.h
@@ -22,7 +22,8 @@ public:
m_motion(*this, "motion"),
m_discrete(*this, "discrete"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -67,6 +68,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;
};
/*----------- defined in audio/bsktball.c -----------*/
diff --git a/src/mame/includes/btime.h b/src/mame/includes/btime.h
index 2503bed754e..b9bb632092a 100644
--- a/src/mame/includes/btime.h
+++ b/src/mame/includes/btime.h
@@ -21,7 +21,9 @@ public:
m_audio_rambase(*this, "audio_rambase"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -59,7 +61,9 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
DECLARE_WRITE8_MEMBER(audio_nmi_enable_w);
DECLARE_WRITE8_MEMBER(lnc_w);
DECLARE_WRITE8_MEMBER(mmonkey_w);
diff --git a/src/mame/includes/btoads.h b/src/mame/includes/btoads.h
index b2b995efe92..4c36d841cec 100644
--- a/src/mame/includes/btoads.h
+++ b/src/mame/includes/btoads.h
@@ -29,7 +29,8 @@ public:
m_vram_bg1(*this, "vram_bg1"),
m_sprite_scale(*this, "sprite_scale"),
m_sprite_control(*this, "sprite_control") ,
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen") { }
// in drivers/btoads
DECLARE_WRITE16_MEMBER( main_sound_w );
@@ -115,4 +116,5 @@ protected:
UINT16 m_misc_control;
int m_xcount;
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/includes/bublbobl.h b/src/mame/includes/bublbobl.h
index 03c52f0d69b..24161903c79 100644
--- a/src/mame/includes/bublbobl.h
+++ b/src/mame/includes/bublbobl.h
@@ -17,7 +17,8 @@ public:
m_mcu(*this, "mcu"),
m_audiocpu(*this, "audiocpu"),
m_slave(*this, "slave"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -68,6 +69,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<cpu_device> m_slave;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(bublbobl_bankswitch_w);
DECLARE_WRITE8_MEMBER(tokio_bankswitch_w);
diff --git a/src/mame/includes/buggychl.h b/src/mame/includes/buggychl.h
index be30c5f8042..3cd03811077 100644
--- a/src/mame/includes/buggychl.h
+++ b/src/mame/includes/buggychl.h
@@ -20,7 +20,9 @@ public:
m_mcu(*this, "mcu"),
m_bmcu(*this, "bmcu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_charram;
@@ -51,6 +53,9 @@ public:
required_device<buggychl_mcu_device> m_bmcu;
required_device<msm5232_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
DECLARE_WRITE8_MEMBER(bankswitch_w);
DECLARE_WRITE8_MEMBER(sound_command_w);
diff --git a/src/mame/includes/bwing.h b/src/mame/includes/bwing.h
index b1e93d07d5a..72a083fce71 100644
--- a/src/mame/includes/bwing.h
+++ b/src/mame/includes/bwing.h
@@ -20,7 +20,8 @@ public:
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_bwp1_sharedram1;
@@ -56,6 +57,7 @@ public:
required_device<cpu_device> m_subcpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(bwp12_sharedram1_w);
DECLARE_WRITE8_MEMBER(bwp3_u8F_w);
diff --git a/src/mame/includes/cabal.h b/src/mame/includes/cabal.h
index b2b088abd54..92035066970 100644
--- a/src/mame/includes/cabal.h
+++ b/src/mame/includes/cabal.h
@@ -16,7 +16,8 @@ public:
m_adpcm2(*this, "adpcm2"),
m_msm1(*this, "msm1"),
m_msm2(*this, "msm2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_colorram;
@@ -30,6 +31,7 @@ public:
optional_device<msm5205_device> m_msm1;
optional_device<msm5205_device> m_msm2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_background_layer;
tilemap_t *m_text_layer;
diff --git a/src/mame/includes/calomega.h b/src/mame/includes/calomega.h
index 7f838d545ba..d6e56e5ec47 100644
--- a/src/mame/includes/calomega.h
+++ b/src/mame/includes/calomega.h
@@ -11,7 +11,8 @@ public:
m_aciabaud(*this, "aciabaud"),
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -56,6 +57,7 @@ private:
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_tx_line;
int m_s903_mux_data;
int m_s905_mux_data;
diff --git a/src/mame/includes/canyon.h b/src/mame/includes/canyon.h
index c775f9002ab..16b2282876c 100644
--- a/src/mame/includes/canyon.h
+++ b/src/mame/includes/canyon.h
@@ -25,7 +25,8 @@ public:
m_videoram(*this, "videoram"),
m_discrete(*this, "discrete"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -50,6 +51,7 @@ public:
void draw_bombs( 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/includes/capbowl.h b/src/mame/includes/capbowl.h
index 8fab0c1019e..07438cc525a 100644
--- a/src/mame/includes/capbowl.h
+++ b/src/mame/includes/capbowl.h
@@ -20,7 +20,8 @@ public:
m_rowaddress(*this, "rowaddress"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_tms34061(*this, "tms34061") { }
+ m_tms34061(*this, "tms34061"),
+ m_screen(*this, "screen") { }
/* memory pointers */
required_shared_ptr<UINT8> m_rowaddress;
@@ -35,6 +36,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<tms34061_device> m_tms34061;
+ required_device<screen_device> m_screen;
+
DECLARE_WRITE8_MEMBER(capbowl_rom_select_w);
DECLARE_READ8_MEMBER(track_0_r);
DECLARE_READ8_MEMBER(track_1_r);
diff --git a/src/mame/includes/carjmbre.h b/src/mame/includes/carjmbre.h
index 441c01a2e44..ea0dbc0fcdc 100644
--- a/src/mame/includes/carjmbre.h
+++ b/src/mame/includes/carjmbre.h
@@ -12,7 +12,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -37,4 +38,5 @@ 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/includes/carpolo.h b/src/mame/includes/carpolo.h
index 33269ec062f..a88746c61c6 100644
--- a/src/mame/includes/carpolo.h
+++ b/src/mame/includes/carpolo.h
@@ -33,7 +33,8 @@ public:
m_ttl7474_1c_2(*this, "7474_1c_2"),
m_ttl7474_1a_1(*this, "7474_1a_1"),
m_ttl7474_1a_2(*this, "7474_1a_2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{}
required_shared_ptr<UINT8> m_alpharam;
@@ -63,6 +64,7 @@ public:
required_device<ttl7474_device> m_ttl7474_1a_1;
required_device<ttl7474_device> m_ttl7474_1a_2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
bitmap_ind16 *m_sprite_sprite_collision_bitmap1;
bitmap_ind16 *m_sprite_sprite_collision_bitmap2;
diff --git a/src/mame/includes/cave.h b/src/mame/includes/cave.h
index 38ded379b7c..8f8d5a893b1 100644
--- a/src/mame/includes/cave.h
+++ b/src/mame/includes/cave.h
@@ -43,7 +43,9 @@ public:
m_int_timer_left(*this, "int_timer_left"),
m_int_timer_right(*this, "int_timer_right"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
optional_shared_ptr_array<UINT16, 4> m_videoregs;
@@ -237,6 +239,8 @@ public:
DECLARE_WRITE_LINE_MEMBER(sound_irq_gen);
optional_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;
void update_irq_state();
void unpack_sprites(const char *region);
void ddonpach_unpack_sprites(const char *region);
diff --git a/src/mame/includes/cbasebal.h b/src/mame/includes/cbasebal.h
index 21cad3c5aaa..40b371a082b 100644
--- a/src/mame/includes/cbasebal.h
+++ b/src/mame/includes/cbasebal.h
@@ -11,7 +11,8 @@ public:
: driver_device(mconfig, type, tag),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -54,4 +55,5 @@ 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/includes/cbuster.h b/src/mame/includes/cbuster.h
index b3ff8f52a00..b8d41ffb477 100644
--- a/src/mame/includes/cbuster.h
+++ b/src/mame/includes/cbuster.h
@@ -22,7 +22,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_deco_tilegen1(*this, "tilegen1"),
- m_deco_tilegen2(*this, "tilegen2")
+ m_deco_tilegen2(*this, "tilegen2"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -45,6 +46,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<deco16ic_device> m_deco_tilegen1;
required_device<deco16ic_device> m_deco_tilegen2;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(twocrude_control_w);
DECLARE_READ16_MEMBER(twocrude_control_r);
DECLARE_WRITE16_MEMBER(twocrude_palette_24bit_rg_w);
diff --git a/src/mame/includes/ccastles.h b/src/mame/includes/ccastles.h
index 8432bd6ad30..49baba810b9 100644
--- a/src/mame/includes/ccastles.h
+++ b/src/mame/includes/ccastles.h
@@ -17,7 +17,9 @@ public:
m_nvram_4a(*this, "nvram_4a") ,
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette"){ }
/* devices */
required_device<m6502_device> m_maincpu;
@@ -28,6 +30,8 @@ public:
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
/* video-related */
const UINT8 *m_syncprom;
diff --git a/src/mame/includes/cchasm.h b/src/mame/includes/cchasm.h
index e79ee7f9b60..4ff7a980ff2 100644
--- a/src/mame/includes/cchasm.h
+++ b/src/mame/includes/cchasm.h
@@ -24,7 +24,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_dac1(*this, "dac1"),
m_dac2(*this, "dac2"),
- m_vector(*this, "vector") { }
+ m_vector(*this, "vector"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT16> m_ram;
required_device<cpu_device> m_maincpu;
@@ -33,7 +34,8 @@ public:
required_device<dac_device> m_dac1;
required_device<dac_device> m_dac2;
required_device<vector_device> m_vector;
-
+ required_device<screen_device> m_screen;
+
int m_sound_flags;
int m_coin_flag;
int m_channel_active[2];
diff --git a/src/mame/includes/cclimber.h b/src/mame/includes/cclimber.h
index 63335496c94..5860d6a19b1 100644
--- a/src/mame/includes/cclimber.h
+++ b/src/mame/includes/cclimber.h
@@ -17,7 +17,8 @@ public:
m_toprollr_bg_coloram(*this, "bg_coloram"),
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_bigsprite_videoram;
required_shared_ptr<UINT8> m_videoram;
@@ -87,4 +88,5 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/centiped.h b/src/mame/includes/centiped.h
index b816be34cf8..77a5f0ebe18 100644
--- a/src/mame/includes/centiped.h
+++ b/src/mame/includes/centiped.h
@@ -17,7 +17,9 @@ public:
m_bullsdrt_tiles_bankram(*this, "bullsdrt_bank"),
m_maincpu(*this, "maincpu"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT8> m_rambase;
required_shared_ptr<UINT8> m_videoram;
@@ -91,4 +93,6 @@ public:
required_device<cpu_device> m_maincpu;
optional_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/includes/chaknpop.h b/src/mame/includes/chaknpop.h
index 7fd1c8079d3..993bf554f75 100644
--- a/src/mame/includes/chaknpop.h
+++ b/src/mame/includes/chaknpop.h
@@ -13,7 +13,8 @@ public:
m_attr_ram(*this, "attr_ram"),
m_spr_ram(*this, "spr_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_mcu_ram;
@@ -61,4 +62,5 @@ public:
void mcu_update_seed( UINT8 data );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/champbas.h b/src/mame/includes/champbas.h
index dbf47b4ddec..fc77de93c52 100644
--- a/src/mame/includes/champbas.h
+++ b/src/mame/includes/champbas.h
@@ -22,7 +22,8 @@ public:
m_dac(*this, "dac"),
m_dac1(*this, "dac1"),
m_dac2(*this, "dac2"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_bg_videoram;
@@ -78,4 +79,5 @@ public:
optional_device<dac_device> m_dac1;
optional_device<dac_device> m_dac2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/changela.h b/src/mame/includes/changela.h
index 05883ebc4db..aecb34a6ee4 100644
--- a/src/mame/includes/changela.h
+++ b/src/mame/includes/changela.h
@@ -9,7 +9,9 @@ public:
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
m_mcu(*this, "mcu"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -99,4 +101,6 @@ public:
void draw_river( bitmap_ind16 &bitmap, int sy );
void draw_tree( bitmap_ind16 &bitmap, int sy, int tree_num );
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/cheekyms.h b/src/mame/includes/cheekyms.h
index d703d363fc3..56bba362602 100644
--- a/src/mame/includes/cheekyms.h
+++ b/src/mame/includes/cheekyms.h
@@ -15,7 +15,9 @@ public:
m_port_80(*this, "port_80"),
m_maincpu(*this, "maincpu"),
m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -30,6 +32,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;
UINT8 m_irq_mask;
DECLARE_WRITE8_MEMBER(cheekyms_port_40_w);
diff --git a/src/mame/includes/chqflag.h b/src/mame/includes/chqflag.h
index 7e871276308..928afa2c24c 100644
--- a/src/mame/includes/chqflag.h
+++ b/src/mame/includes/chqflag.h
@@ -20,7 +20,8 @@ public:
m_k007232_2(*this, "k007232_2"),
m_k051960(*this, "k051960"),
m_k051316_1(*this, "k051316_1"),
- m_k051316_2(*this, "k051316_2") { }
+ m_k051316_2(*this, "k051316_2"),
+ m_palette(*this, "palette") { }
/* memory pointers */
UINT8 * m_ram;
@@ -45,6 +46,7 @@ public:
required_device<k051960_device> m_k051960;
required_device<k051316_device> m_k051316_1;
required_device<k051316_device> m_k051316_2;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(chqflag_bankswitch_w);
DECLARE_WRITE8_MEMBER(chqflag_vreg_w);
DECLARE_WRITE8_MEMBER(select_analog_ctrl_w);
diff --git a/src/mame/includes/cinemat.h b/src/mame/includes/cinemat.h
index 56dc5ad03f5..15b60635338 100644
--- a/src/mame/includes/cinemat.h
+++ b/src/mame/includes/cinemat.h
@@ -17,12 +17,14 @@ public:
m_maincpu(*this, "maincpu"),
m_ay1(*this, "ay1"),
m_vector(*this, "vector"),
- m_rambase(*this, "rambase") { }
+ m_rambase(*this, "rambase"),
+ m_screen(*this, "screen") { }
required_device<ccpu_cpu_device> m_maincpu;
optional_device<ay8910_device> m_ay1;
required_device<vector_device> m_vector;
optional_shared_ptr<UINT16> m_rambase;
+ required_device<screen_device> m_screen;
UINT8 m_sound_control;
void (*m_sound_handler)(running_machine &,UINT8 sound_val, UINT8 bits_changed);
diff --git a/src/mame/includes/circus.h b/src/mame/includes/circus.h
index de1886f1dd1..4af908299e8 100644
--- a/src/mame/includes/circus.h
+++ b/src/mame/includes/circus.h
@@ -9,7 +9,8 @@ public:
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -25,6 +26,7 @@ public:
required_device<samples_device> m_samples;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* game id */
int m_game_id;
diff --git a/src/mame/includes/circusc.h b/src/mame/includes/circusc.h
index 79959896f70..a9aa57835f8 100644
--- a/src/mame/includes/circusc.h
+++ b/src/mame/includes/circusc.h
@@ -24,7 +24,8 @@ public:
m_dac(*this, "dac"),
m_discrete(*this, "fltdisc"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spritebank;
@@ -67,4 +68,5 @@ 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/includes/cischeat.h b/src/mame/includes/cischeat.h
index e9e0997182b..985943054bf 100644
--- a/src/mame/includes/cischeat.h
+++ b/src/mame/includes/cischeat.h
@@ -19,7 +19,8 @@ public:
m_soundcpu(*this, "soundcpu"),
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_vregs;
optional_shared_ptr_array<UINT16,3> m_scrollram;
@@ -114,4 +115,5 @@ 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/includes/citycon.h b/src/mame/includes/citycon.h
index 14225f76801..69a5addd8ea 100644
--- a/src/mame/includes/citycon.h
+++ b/src/mame/includes/citycon.h
@@ -14,7 +14,8 @@ public:
m_spriteram(*this, "spriteram"),
m_scroll(*this, "scroll"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -31,6 +32,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(citycon_in_r);
DECLARE_READ8_MEMBER(citycon_irq_ack_r);
diff --git a/src/mame/includes/cloak.h b/src/mame/includes/cloak.h
index 164c110f9c7..96ad827a0b6 100644
--- a/src/mame/includes/cloak.h
+++ b/src/mame/includes/cloak.h
@@ -13,7 +13,9 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_slave(*this, "slave"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
@@ -50,4 +52,6 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_slave;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/cloud9.h b/src/mame/includes/cloud9.h
index 88b262c805a..a9ed3c4d87f 100644
--- a/src/mame/includes/cloud9.h
+++ b/src/mame/includes/cloud9.h
@@ -16,7 +16,9 @@ public:
m_nvram(*this, "nvram") ,
m_spriteram(*this, "spriteram"),
m_paletteram(*this, "paletteram"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette"){ }
/* devices */
required_device<m6502_device> m_maincpu;
@@ -27,7 +29,9 @@ public:
required_shared_ptr<UINT8> m_paletteram;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
/* video-related */
const UINT8 *m_syncprom;
const UINT8 *m_wpprom;
diff --git a/src/mame/includes/clshroad.h b/src/mame/includes/clshroad.h
index d070c80b8d8..cab8ce13440 100644
--- a/src/mame/includes/clshroad.h
+++ b/src/mame/includes/clshroad.h
@@ -8,7 +8,8 @@ public:
m_vregs(*this, "vregs"),
m_vram_0(*this, "vram_0"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_spriteram;
required_shared_ptr<UINT8> m_vram_1;
@@ -36,4 +37,5 @@ 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/includes/cninja.h b/src/mame/includes/cninja.h
index 436a1eba0e8..fd007e1ab0d 100644
--- a/src/mame/includes/cninja.h
+++ b/src/mame/includes/cninja.h
@@ -36,7 +36,9 @@ public:
m_sprgen(*this, "spritegen"),
m_sprgen1(*this, "spritegen1"),
m_sprgen2(*this, "spritegen2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -61,6 +63,8 @@ public:
optional_device<decospr_device> m_sprgen1;
optional_device<decospr_device> m_sprgen2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
/* misc */
int m_scanline;
diff --git a/src/mame/includes/combatsc.h b/src/mame/includes/combatsc.h
index 5be2e0f37d3..d05cde2c691 100644
--- a/src/mame/includes/combatsc.h
+++ b/src/mame/includes/combatsc.h
@@ -19,7 +19,8 @@ public:
m_maincpu(*this, "maincpu"),
m_upd7759(*this, "upd"),
m_msm5205(*this, "msm5205"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
UINT8 * m_videoram;
@@ -56,6 +57,7 @@ public:
optional_device<upd7759_device> m_upd7759;
optional_device<msm5205_device> m_msm5205;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(combatsc_vreg_w);
DECLARE_WRITE8_MEMBER(combatscb_sh_irqtrigger_w);
diff --git a/src/mame/includes/commando.h b/src/mame/includes/commando.h
index 2203d701c6d..e96f2b99bf3 100644
--- a/src/mame/includes/commando.h
+++ b/src/mame/includes/commando.h
@@ -18,7 +18,8 @@ public:
m_colorram(*this, "colorram"),
m_audiocpu(*this, "audiocpu"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_device<buffered_spriteram8_device> m_spriteram;
@@ -54,4 +55,5 @@ 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/includes/compgolf.h b/src/mame/includes/compgolf.h
index 16eddf364a3..0071fc196a2 100644
--- a/src/mame/includes/compgolf.h
+++ b/src/mame/includes/compgolf.h
@@ -13,7 +13,8 @@ public:
m_bg_ram(*this, "bg_ram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -49,4 +50,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(sound_irq);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/contra.h b/src/mame/includes/contra.h
index a5f4c6af717..2349622948e 100644
--- a/src/mame/includes/contra.h
+++ b/src/mame/includes/contra.h
@@ -23,7 +23,9 @@ public:
m_k007121_1(*this, "k007121_1"),
m_k007121_2(*this, "k007121_2"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
UINT8 * m_buffered_spriteram;
@@ -73,4 +75,6 @@ public:
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, int bank );
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/includes/cop01.h b/src/mame/includes/cop01.h
index f0ff8a60b4a..c7e6db1eeac 100644
--- a/src/mame/includes/cop01.h
+++ b/src/mame/includes/cop01.h
@@ -14,7 +14,8 @@ public:
m_fgvideoram(*this, "fgvideoram"),
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_bgvideoram;
@@ -34,6 +35,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(cop01_sound_command_w);
DECLARE_READ8_MEMBER(cop01_sound_command_r);
diff --git a/src/mame/includes/copsnrob.h b/src/mame/includes/copsnrob.h
index ac70dee494a..c8492c544d3 100644
--- a/src/mame/includes/copsnrob.h
+++ b/src/mame/includes/copsnrob.h
@@ -20,7 +20,9 @@ public:
m_videoram(*this, "videoram"),
m_discrete(*this, "discrete"),
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_trucky;
@@ -41,6 +43,8 @@ public:
UINT32 screen_update_copsnrob(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;
};
/*----------- defined in audio/copsnrob.c -----------*/
diff --git a/src/mame/includes/cosmic.h b/src/mame/includes/cosmic.h
index 0311c1b9a25..5d20a573ebe 100644
--- a/src/mame/includes/cosmic.h
+++ b/src/mame/includes/cosmic.h
@@ -21,7 +21,9 @@ public:
m_samples(*this, "samples"),
m_dac(*this, "dac"),
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_videoram;
@@ -90,4 +92,6 @@ public:
void nomnlnd_draw_background( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
required_device<cpu_device> m_maincpu;
optional_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/cps1.h b/src/mame/includes/cps1.h
index 4f90629eff7..607bf0ea6c5 100644
--- a/src/mame/includes/cps1.h
+++ b/src/mame/includes/cps1.h
@@ -83,7 +83,9 @@ public:
m_m48t35(*this,"m48t35"),
m_msm_1(*this, "msm1"),
m_msm_2(*this, "msm2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
// cps1
@@ -177,6 +179,9 @@ public:
optional_device<msm5205_device> m_msm_1; // fcrash
optional_device<msm5205_device> m_msm_2; // fcrash
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
DECLARE_READ16_MEMBER(cps1_hack_dsw_r);
DECLARE_READ16_MEMBER(cps1_in1_r);
DECLARE_READ16_MEMBER(cps1_in2_r);
diff --git a/src/mame/includes/cps3.h b/src/mame/includes/cps3.h
index b1c669daef8..d44689524d9 100644
--- a/src/mame/includes/cps3.h
+++ b/src/mame/includes/cps3.h
@@ -21,7 +21,8 @@ public:
m_fullscreenzoom(*this, "fullscreenzoom"),
m_0xc0000000_ram(*this, "0xc0000000_ram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_mainram;
required_shared_ptr<UINT32> m_spriteram;
@@ -133,6 +134,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/crimfght.h b/src/mame/includes/crimfght.h
index 276115c671d..acb73f1857a 100644
--- a/src/mame/includes/crimfght.h
+++ b/src/mame/includes/crimfght.h
@@ -17,7 +17,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_k007232(*this, "k007232"),
m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960") { }
+ m_k051960(*this, "k051960"),
+ m_palette(*this, "palette") { }
/* memory pointers */
dynamic_array<UINT8> m_paletteram;
@@ -32,6 +33,8 @@ public:
required_device<k007232_device> m_k007232;
required_device<k052109_device> m_k052109;
required_device<k051960_device> m_k051960;
+ required_device<palette_device> m_palette;
+
DECLARE_WRITE8_MEMBER(crimfght_coin_w);
DECLARE_WRITE8_MEMBER(crimfght_sh_irqtrigger_w);
DECLARE_READ8_MEMBER(k052109_051960_r);
diff --git a/src/mame/includes/crshrace.h b/src/mame/includes/crshrace.h
index 974541b70fd..61f591f0bc2 100644
--- a/src/mame/includes/crshrace.h
+++ b/src/mame/includes/crshrace.h
@@ -17,7 +17,8 @@ public:
m_spriteram2(*this, "spriteram2"),
m_spr(*this, "vsystem_spr"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_videoram1;
@@ -68,4 +69,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/cvs.h b/src/mame/includes/cvs.h
index b387fc26be4..1c03ee3fbb2 100644
--- a/src/mame/includes/cvs.h
+++ b/src/mame/includes/cvs.h
@@ -35,7 +35,9 @@ public:
m_s2636_0(*this, "s2636_0"),
m_s2636_1(*this, "s2636_1"),
m_s2636_2(*this, "s2636_2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
}
@@ -77,6 +79,8 @@ public:
optional_device<s2636_device> m_s2636_1;
optional_device<s2636_device> m_s2636_2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
/* memory */
UINT8 m_color_ram[0x400];
diff --git a/src/mame/includes/cyberbal.h b/src/mame/includes/cyberbal.h
index 4008db3bba0..eed459d70e2 100644
--- a/src/mame/includes/cyberbal.h
+++ b/src/mame/includes/cyberbal.h
@@ -34,7 +34,8 @@ public:
m_lscreen(*this, "lscreen"),
m_rscreen(*this, "rscreen"),
m_paletteram_0(*this, "paletteram_0"),
- m_paletteram_1(*this, "paletteram_1") { }
+ m_paletteram_1(*this, "paletteram_1"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
optional_device<m6502_device> m_audiocpu;
@@ -53,6 +54,7 @@ public:
optional_device<screen_device> m_rscreen;
optional_shared_ptr<UINT16> m_paletteram_0;
optional_shared_ptr<UINT16> m_paletteram_1;
+ required_device<palette_device> m_palette;
UINT16 m_current_slip[2];
UINT8 m_playfield_palette_bank[2];
UINT16 m_playfield_xscroll[2];
diff --git a/src/mame/includes/darius.h b/src/mame/includes/darius.h
index a8c1d2ae097..203f015fb43 100644
--- a/src/mame/includes/darius.h
+++ b/src/mame/includes/darius.h
@@ -44,7 +44,8 @@ public:
m_filter1_3r(*this, "filter1.3r"),
m_msm5205_l(*this, "msm5205.l"),
m_msm5205_r(*this, "msm5205.r"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -91,6 +92,7 @@ public:
required_device<filter_volume_device> m_msm5205_l;
required_device<filter_volume_device> m_msm5205_r;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(cpua_ctrl_w);
DECLARE_WRITE16_MEMBER(darius_watchdog_w);
diff --git a/src/mame/includes/darkmist.h b/src/mame/includes/darkmist.h
index ca62cd05e05..0d1ff4d36ab 100644
--- a/src/mame/includes/darkmist.h
+++ b/src/mame/includes/darkmist.h
@@ -12,7 +12,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_t5182(*this, "t5182"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_spritebank;
required_shared_ptr<UINT8> m_scroll;
@@ -23,6 +24,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<t5182_device> m_t5182;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_hw;
tilemap_t *m_bgtilemap;
diff --git a/src/mame/includes/darkseal.h b/src/mame/includes/darkseal.h
index 226df119a39..880e3f43edd 100644
--- a/src/mame/includes/darkseal.h
+++ b/src/mame/includes/darkseal.h
@@ -15,7 +15,8 @@ public:
m_pf3_rowscroll(*this, "pf3_rowscroll"),
m_sprgen(*this, "spritegen"),
m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu") { }
+ m_audiocpu(*this, "audiocpu"),
+ m_palette(*this, "palette") { }
required_device<deco16ic_device> m_deco_tilegen1;
required_device<deco16ic_device> m_deco_tilegen2;
@@ -39,4 +40,5 @@ public:
void update_24bitcol(int offset);
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/dassault.h b/src/mame/includes/dassault.h
index db84c127756..4d2d9c5897f 100644
--- a/src/mame/includes/dassault.h
+++ b/src/mame/includes/dassault.h
@@ -30,7 +30,8 @@ public:
m_shared_ram(*this, "shared_ram"),
m_ram2(*this, "ram2"),
m_sprgen1(*this, "spritegen1"),
- m_sprgen2(*this, "spritegen2")
+ m_sprgen2(*this, "spritegen2"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -53,6 +54,7 @@ public:
optional_device<decospr_device> m_sprgen1;
optional_device<decospr_device> m_sprgen2;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER(dassault_control_r);
DECLARE_WRITE16_MEMBER(dassault_control_w);
diff --git a/src/mame/includes/dcheese.h b/src/mame/includes/dcheese.h
index 5c83531e367..e507c109beb 100644
--- a/src/mame/includes/dcheese.h
+++ b/src/mame/includes/dcheese.h
@@ -19,7 +19,8 @@ public:
dcheese_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu") { }
+ m_audiocpu(*this, "audiocpu"),
+ m_screen(*this, "screen") { }
/* video-related */
UINT16 m_blitter_color[2];
@@ -39,6 +40,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
+ required_device<screen_device> m_screen;
device_t *m_bsmt;
DECLARE_WRITE16_MEMBER(eeprom_control_w);
DECLARE_WRITE16_MEMBER(sound_command_w);
diff --git a/src/mame/includes/dcon.h b/src/mame/includes/dcon.h
index 1b3f8c59e3a..4ca9baa210b 100644
--- a/src/mame/includes/dcon.h
+++ b/src/mame/includes/dcon.h
@@ -9,7 +9,8 @@ public:
m_textram(*this, "textram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_back_data;
required_shared_ptr<UINT16> m_fore_data;
@@ -44,4 +45,5 @@ public:
void draw_sprites( 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/includes/dday.h b/src/mame/includes/dday.h
index ba6666214b2..3806699721e 100644
--- a/src/mame/includes/dday.h
+++ b/src/mame/includes/dday.h
@@ -15,7 +15,9 @@ public:
m_bgvideoram(*this, "bgvideoram"),
m_colorram(*this, "colorram"),
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_textvideoram;
@@ -57,4 +59,6 @@ public:
void start_countdown_timer();
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/includes/ddragon.h b/src/mame/includes/ddragon.h
index 357638e51be..4e794670b89 100644
--- a/src/mame/includes/ddragon.h
+++ b/src/mame/includes/ddragon.h
@@ -23,7 +23,9 @@ public:
m_subcpu(*this, "sub"),
m_adpcm1(*this, "adpcm1"),
m_adpcm2(*this, "adpcm2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
optional_shared_ptr<UINT8> m_rambase;
@@ -71,6 +73,8 @@ public:
optional_device<msm5205_device> m_adpcm1;
optional_device<msm5205_device> m_adpcm2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int scanline_to_vcount(int scanline);
diff --git a/src/mame/includes/ddragon3.h b/src/mame/includes/ddragon3.h
index 71c69724f87..1858b0b1eec 100644
--- a/src/mame/includes/ddragon3.h
+++ b/src/mame/includes/ddragon3.h
@@ -18,7 +18,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
vblank_level = 6;
@@ -55,6 +57,8 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(ddragon3_io_w);
DECLARE_WRITE16_MEMBER(ddragon3_scroll_w);
diff --git a/src/mame/includes/ddribble.h b/src/mame/includes/ddribble.h
index e085e146244..126a30e6ae6 100644
--- a/src/mame/includes/ddribble.h
+++ b/src/mame/includes/ddribble.h
@@ -24,7 +24,8 @@ public:
m_filter1(*this, "filter1"),
m_filter2(*this, "filter2"),
m_filter3(*this, "filter3"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_paletteram;
@@ -52,6 +53,7 @@ public:
required_device<filter_rc_device> m_filter2;
required_device<filter_rc_device> m_filter3;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(ddribble_bankswitch_w);
DECLARE_READ8_MEMBER(ddribble_sharedram_r);
diff --git a/src/mame/includes/deadang.h b/src/mame/includes/deadang.h
index 819ca067be0..eb4f7035a91 100644
--- a/src/mame/includes/deadang.h
+++ b/src/mame/includes/deadang.h
@@ -14,7 +14,8 @@ public:
m_seibu_sound(*this, "seibu_sound"),
m_adpcm1(*this, "adpcm1"),
m_adpcm2(*this, "adpcm2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_videoram;
@@ -28,6 +29,7 @@ public:
required_device<seibu_adpcm_device> m_adpcm2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_pf3_layer;
tilemap_t *m_pf2_layer;
diff --git a/src/mame/includes/dec0.h b/src/mame/includes/dec0.h
index 2b014aa167f..7f9284e0e37 100644
--- a/src/mame/includes/dec0.h
+++ b/src/mame/includes/dec0.h
@@ -19,7 +19,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "sub"),
m_mcu(*this, "mcu"),
- m_msm(*this, "msm") { }
+ m_msm(*this, "msm"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_ram;
required_shared_ptr<UINT16> m_spriteram;
@@ -101,6 +102,7 @@ public:
optional_device<cpu_device> m_subcpu;
optional_device<cpu_device> m_mcu;
optional_device<msm5205_device> m_msm;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/dec8.h b/src/mame/includes/dec8.h
index dee701ead9d..21342e70295 100644
--- a/src/mame/includes/dec8.h
+++ b/src/mame/includes/dec8.h
@@ -26,7 +26,8 @@ public:
m_spritegen_mxc(*this, "spritegen_mxc"),
m_videoram(*this, "videoram"),
m_bg_data(*this, "bg_data"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* devices */
required_device<cpu_device> m_maincpu;
@@ -45,6 +46,7 @@ public:
optional_shared_ptr<UINT8> m_bg_data;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 * m_pf1_data;
UINT8 * m_row;
diff --git a/src/mame/includes/deco32.h b/src/mame/includes/deco32.h
index e784386b2b1..cd32a4cd99e 100644
--- a/src/mame/includes/deco32.h
+++ b/src/mame/includes/deco32.h
@@ -32,7 +32,9 @@ public:
m_oki2(*this, "oki2"),
m_deco_tilegen1(*this, "tilegen1"),
m_deco_tilegen2(*this, "tilegen2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -91,6 +93,8 @@ public:
required_device<deco16ic_device> m_deco_tilegen2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_irq_source;
DECLARE_WRITE_LINE_MEMBER(sound_irq_nslasher);
diff --git a/src/mame/includes/deco_mlc.h b/src/mame/includes/deco_mlc.h
index 87d988b473e..b67d5a94a7e 100644
--- a/src/mame/includes/deco_mlc.h
+++ b/src/mame/includes/deco_mlc.h
@@ -15,7 +15,9 @@ public:
m_maincpu(*this, "maincpu"),
m_eeprom(*this, "eeprom"),
m_ymz(*this, "ymz"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
optional_device<deco146_device> m_deco146;
@@ -69,6 +71,8 @@ public:
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<ymz280b_device> m_ymz;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER( sh96_protection_region_0_146_r );
DECLARE_WRITE16_MEMBER( sh96_protection_region_0_146_w );
diff --git a/src/mame/includes/decocass.h b/src/mame/includes/decocass.h
index bf56c9cbadb..032ab442f39 100644
--- a/src/mame/includes/decocass.h
+++ b/src/mame/includes/decocass.h
@@ -29,7 +29,9 @@ public:
m_tileram(*this, "tileram"),
m_objectram(*this, "objectram"),
m_paletteram(*this, "paletteram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
m_type1_map = 0;
}
@@ -50,6 +52,8 @@ public:
required_shared_ptr<UINT8> m_objectram;
required_shared_ptr<UINT8> m_paletteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
size_t m_bgvideoram_size;
/* video-related */
diff --git a/src/mame/includes/deniam.h b/src/mame/includes/deniam.h
index 173b3fbab2a..2f77aa914bc 100644
--- a/src/mame/includes/deniam.h
+++ b/src/mame/includes/deniam.h
@@ -17,7 +17,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_videoram;
@@ -73,4 +74,5 @@ public:
optional_device<cpu_device> m_audiocpu; // system 16c does not have sound CPU
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/djboy.h b/src/mame/includes/djboy.h
index 7128b0c5e36..ef9398c5873 100644
--- a/src/mame/includes/djboy.h
+++ b/src/mame/includes/djboy.h
@@ -20,7 +20,8 @@ public:
m_cpu2(*this, "cpu2"),
m_beast(*this, "beast"),
m_pandora(*this, "pandora"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -54,6 +55,7 @@ public:
required_device<cpu_device> m_beast;
required_device<kaneko_pandora_device> m_pandora;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(beast_data_w);
DECLARE_READ8_MEMBER(beast_data_r);
diff --git a/src/mame/includes/djmain.h b/src/mame/includes/djmain.h
index dbdd1b2fce0..da7080ae958 100644
--- a/src/mame/includes/djmain.h
+++ b/src/mame/includes/djmain.h
@@ -13,7 +13,8 @@ public:
m_k056832(*this, "k056832"),
m_k055555(*this, "k055555"),
m_ata(*this, "ata"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -71,6 +72,7 @@ public:
required_device<k055555_device> m_k055555;
required_device<ata_interface_device> m_ata;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in video/djmain.c -----------*/
diff --git a/src/mame/includes/dkong.h b/src/mame/includes/dkong.h
index d9396bfe8a0..30b348a1980 100644
--- a/src/mame/includes/dkong.h
+++ b/src/mame/includes/dkong.h
@@ -104,7 +104,9 @@ public:
m_vg3(0),
m_cv3(0),
m_cv4(0),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -181,6 +183,8 @@ public:
int m_pixelcnt;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
/* radarscp_scanline */
int m_counter;
diff --git a/src/mame/includes/docastle.h b/src/mame/includes/docastle.h
index 0e0fc8f1ea1..16d7c057185 100644
--- a/src/mame/includes/docastle.h
+++ b/src/mame/includes/docastle.h
@@ -20,7 +20,8 @@ public:
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -36,7 +37,8 @@ public:
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<palette_device> m_palette;
+
/* video-related */
tilemap_t *m_do_tilemap;
diff --git a/src/mame/includes/dogfgt.h b/src/mame/includes/dogfgt.h
index f5adee819a5..d4be4277df2 100644
--- a/src/mame/includes/dogfgt.h
+++ b/src/mame/includes/dogfgt.h
@@ -13,7 +13,9 @@ public:
m_sharedram(*this, "sharedram"),
m_subcpu(*this, "sub") ,
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_bgvideoram;
@@ -59,4 +61,6 @@ public:
void draw_sprites( 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/includes/dooyong.h b/src/mame/includes/dooyong.h
index 82487796556..a4b519c4413 100644
--- a/src/mame/includes/dooyong.h
+++ b/src/mame/includes/dooyong.h
@@ -11,7 +11,8 @@ public:
m_paletteram_flytiger(*this, "flytiger_palram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
optional_device<buffered_spriteram8_device> m_spriteram;
optional_device<buffered_spriteram16_device> m_spriteram16;
@@ -101,4 +102,5 @@ 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/includes/dragrace.h b/src/mame/includes/dragrace.h
index f6f6413868c..c0962cb184c 100644
--- a/src/mame/includes/dragrace.h
+++ b/src/mame/includes/dragrace.h
@@ -31,7 +31,8 @@ public:
m_position_ram(*this, "position_ram"),
m_discrete(*this, "discrete"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen") { }
/* memory pointers */
required_shared_ptr<UINT8> m_playfield_ram;
@@ -61,6 +62,7 @@ public:
void dragrace_update_misc_flags( address_space &space );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
};
/*----------- defined in audio/dragrace.c -----------*/
diff --git a/src/mame/includes/drgnmst.h b/src/mame/includes/drgnmst.h
index 9b1182e8897..13214c4acd0 100644
--- a/src/mame/includes/drgnmst.h
+++ b/src/mame/includes/drgnmst.h
@@ -18,7 +18,8 @@ public:
m_oki_2(*this, "oki2") ,
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<UINT16> m_vidregs;
@@ -76,4 +77,5 @@ public:
required_device<cpu_device> m_maincpu;
required_device<pic16c55_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/drmicro.h b/src/mame/includes/drmicro.h
index f7f567abd86..d06b9024456 100644
--- a/src/mame/includes/drmicro.h
+++ b/src/mame/includes/drmicro.h
@@ -12,7 +12,8 @@ public:
: driver_device(mconfig, type, tag),
m_msm(*this, "msm"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
UINT8 * m_videoram;
@@ -42,4 +43,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(pcm_w);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/dynax.h b/src/mame/includes/dynax.h
index 52525ddd521..aeb684a3752 100644
--- a/src/mame/includes/dynax.h
+++ b/src/mame/includes/dynax.h
@@ -17,7 +17,9 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_oki(*this, "oki"),
- m_msm(*this, "msm")
+ m_msm(*this, "msm"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
// up to 8 layers, 2 images per layer (interleaved on screen)
@@ -164,6 +166,8 @@ public:
device_t *m_ymsnd;
optional_device<okim6295_device> m_oki;
optional_device<msm5205_device> m_msm;
+ optional_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
device_t *m_top_scr;
device_t *m_bot_scr;
DECLARE_WRITE8_MEMBER(dynax_vblank_ack_w);
diff --git a/src/mame/includes/dynduke.h b/src/mame/includes/dynduke.h
index f2ab6cab62a..fa40533d6b6 100644
--- a/src/mame/includes/dynduke.h
+++ b/src/mame/includes/dynduke.h
@@ -13,7 +13,8 @@ public:
m_fore_data(*this, "fore_data"),
m_maincpu(*this, "maincpu"),
m_seibu_sound(*this, "seibu_sound"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<buffered_spriteram16_device> m_spriteram;
required_shared_ptr<UINT16> m_scroll_ram;
@@ -24,6 +25,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<seibu_sound_device> m_seibu_sound;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_bg_layer;
tilemap_t *m_fg_layer;
diff --git a/src/mame/includes/eolith.h b/src/mame/includes/eolith.h
index 9c3873ab2f4..e8fec69abb1 100644
--- a/src/mame/includes/eolith.h
+++ b/src/mame/includes/eolith.h
@@ -16,7 +16,9 @@ public:
m_peny1port(*this, "PEN_Y_P1"),
m_penx2port(*this, "PEN_X_P2"),
m_peny2port(*this, "PEN_Y_P2"),
- m_sndbank(*this, "sound_bank")
+ m_sndbank(*this, "sound_bank"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
int m_coin_counter_bit;
@@ -36,7 +38,8 @@ public:
optional_ioport m_penx2port;
optional_ioport m_peny2port;
optional_memory_bank m_sndbank;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_READ32_MEMBER(eolith_custom_r);
DECLARE_WRITE32_MEMBER(systemcontrol_w);
diff --git a/src/mame/includes/eprom.h b/src/mame/includes/eprom.h
index b61ab5568c3..375441dee4d 100644
--- a/src/mame/includes/eprom.h
+++ b/src/mame/includes/eprom.h
@@ -19,7 +19,8 @@ public:
m_alpha_tilemap(*this, "alpha"),
m_mob(*this, "mob"),
m_jsa(*this, "jsa"),
- m_extra(*this, "extra") { }
+ m_extra(*this, "extra"),
+ m_palette(*this, "palette") { }
required_device<tilemap_device> m_playfield_tilemap;
required_device<tilemap_device> m_alpha_tilemap;
@@ -50,7 +51,7 @@ public:
UINT32 screen_update_guts(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void update_palette();
optional_device<cpu_device> m_extra;
-
+ required_device<palette_device> m_palette;
static const atari_motion_objects_config s_mob_config;
static const atari_motion_objects_config s_guts_mob_config;
};
diff --git a/src/mame/includes/equites.h b/src/mame/includes/equites.h
index 957e618940b..cabd99b40e6 100644
--- a/src/mame/includes/equites.h
+++ b/src/mame/includes/equites.h
@@ -22,7 +22,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_bg_videoram;
@@ -129,4 +130,5 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/espial.h b/src/mame/includes/espial.h
index 7929286077e..2810376c62a 100644
--- a/src/mame/includes/espial.h
+++ b/src/mame/includes/espial.h
@@ -18,7 +18,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_attributeram;
@@ -41,6 +42,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(espial_master_interrupt_mask_w);
DECLARE_WRITE8_MEMBER(espial_master_soundlatch_w);
diff --git a/src/mame/includes/esripsys.h b/src/mame/includes/esripsys.h
index e0698715ef1..3ad77a976a8 100644
--- a/src/mame/includes/esripsys.h
+++ b/src/mame/includes/esripsys.h
@@ -43,7 +43,8 @@ public:
m_soundcpu(*this, "sound_cpu"),
m_tms(*this, "tms5220nl"),
m_pal_ram(*this, "pal_ram"),
- m_dac(*this, "dac") { }
+ m_dac(*this, "dac"),
+ m_screen(*this, "screen") { }
required_device<cpu_device> m_framecpu;
required_device<esrip_device> m_videocpu;
@@ -121,6 +122,7 @@ public:
TIMER_CALLBACK_MEMBER(hblank_start_callback);
TIMER_CALLBACK_MEMBER(hblank_end_callback);
required_device<dac_device> m_dac;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/includes/exedexes.h b/src/mame/includes/exedexes.h
index 10997e71990..0d8cfa82bb9 100644
--- a/src/mame/includes/exedexes.h
+++ b/src/mame/includes/exedexes.h
@@ -18,7 +18,8 @@ public:
m_nbg_xscroll(*this, "nbg_xscroll"),
m_bg_scroll(*this, "bg_scroll"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_device<buffered_spriteram8_device> m_spriteram;
@@ -55,4 +56,5 @@ public:
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int priority );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/exerion.h b/src/mame/includes/exerion.h
index 52d77e4bd94..322aa1515b1 100644
--- a/src/mame/includes/exerion.h
+++ b/src/mame/includes/exerion.h
@@ -29,7 +29,9 @@ public:
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
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_main_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_READ8_MEMBER(exerion_protection_r);
DECLARE_WRITE8_MEMBER(exerion_videoreg_w);
diff --git a/src/mame/includes/exidy.h b/src/mame/includes/exidy.h
index 4bf56b36324..f7a77d05134 100644
--- a/src/mame/includes/exidy.h
+++ b/src/mame/includes/exidy.h
@@ -46,7 +46,9 @@ public:
m_maincpu(*this, "maincpu"),
m_dac(*this, "dac"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
@@ -63,6 +65,8 @@ public:
optional_device<dac_device> m_dac;
optional_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_last_dial;
UINT8 m_collision_mask;
diff --git a/src/mame/includes/exidy440.h b/src/mame/includes/exidy440.h
index dc345b6d404..8e97b849475 100644
--- a/src/mame/includes/exidy440.h
+++ b/src/mame/includes/exidy440.h
@@ -20,7 +20,9 @@ public:
m_spriteram(*this, "spriteram"),
m_scanline(*this, "scanline"),
m_maincpu(*this, "maincpu"),
- m_custom(*this, "custom") { }
+ m_custom(*this, "custom"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_imageram;
required_shared_ptr<UINT8> m_spriteram;
@@ -28,7 +30,9 @@ public:
required_device<cpu_device> m_maincpu;
required_device<exidy440_sound_device> m_custom;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT8 m_bank;
const UINT8 *m_showdown_bank_data[2];
INT8 m_showdown_bank_select;
diff --git a/src/mame/includes/exprraid.h b/src/mame/includes/exprraid.h
index 563eb9735de..c01cbde48ba 100644
--- a/src/mame/includes/exprraid.h
+++ b/src/mame/includes/exprraid.h
@@ -16,7 +16,8 @@ public:
m_spriteram(*this, "spriteram"),
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* devices */
required_device<cpu_device> m_maincpu;
@@ -29,6 +30,7 @@ public:
required_shared_ptr<UINT8> m_colorram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* protection */
UINT8 m_prot_value;
diff --git a/src/mame/includes/exzisus.h b/src/mame/includes/exzisus.h
index ef31b5bec6f..1e22a4818fb 100644
--- a/src/mame/includes/exzisus.h
+++ b/src/mame/includes/exzisus.h
@@ -10,7 +10,8 @@ public:
m_objectram0(*this, "objectram0"),
m_videoram0(*this, "videoram0"),
m_cpuc(*this, "cpuc"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_objectram1;
required_shared_ptr<UINT8> m_videoram1;
@@ -20,6 +21,7 @@ public:
required_shared_ptr<UINT8> m_videoram0;
required_device<cpu_device> m_cpuc;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_cpua_bank;
int m_cpub_bank;
diff --git a/src/mame/includes/f1gp.h b/src/mame/includes/f1gp.h
index 216b1ecd208..f48637ac832 100644
--- a/src/mame/includes/f1gp.h
+++ b/src/mame/includes/f1gp.h
@@ -26,7 +26,8 @@ public:
m_maincpu(*this, "maincpu"),
m_gfxdecode(*this, "gfxdecode"),
m_audiocpu(*this, "audiocpu"),
- m_k053936(*this, "k053936") { }
+ m_k053936(*this, "k053936"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_sharedram;
@@ -72,6 +73,7 @@ public:
required_device<gfxdecode_device> m_gfxdecode;
optional_device<cpu_device> m_audiocpu;
optional_device<k053936_device> m_k053936;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(f1gp_sh_bankswitch_w);
DECLARE_WRITE16_MEMBER(sound_command_w);
diff --git a/src/mame/includes/fantland.h b/src/mame/includes/fantland.h
index e233790bc0c..8b315a6ba11 100644
--- a/src/mame/includes/fantland.h
+++ b/src/mame/includes/fantland.h
@@ -13,7 +13,9 @@ public:
m_spriteram2(*this, "spriteram2", 0),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
// UINT8 * m_spriteram; // currently directly used in a 16bit map...
@@ -68,4 +70,6 @@ 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/includes/fastfred.h b/src/mame/includes/fastfred.h
index ce6a73b580e..ae3db6923e3 100644
--- a/src/mame/includes/fastfred.h
+++ b/src/mame/includes/fastfred.h
@@ -17,7 +17,8 @@ public:
m_attributesram(*this, "attributesram"),
m_background_color(*this, "bgcolor"),
m_imago_fg_videoram(*this, "imago_fg_vram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_imago_sprites[0x800*3];
UINT16 m_imago_sprites_address;
@@ -29,6 +30,8 @@ public:
optional_shared_ptr<UINT8> m_background_color;
optional_shared_ptr<UINT8> m_imago_fg_videoram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
+
UINT16 m_charbank;
UINT8 m_colorbank;
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/fastlane.h b/src/mame/includes/fastlane.h
index b9649bdd550..7f8bce0299c 100644
--- a/src/mame/includes/fastlane.h
+++ b/src/mame/includes/fastlane.h
@@ -21,7 +21,9 @@ public:
m_k007232_1(*this, "k007232_1"),
m_k007232_2(*this, "k007232_2"),
m_k007121(*this, "k007121"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
@@ -43,6 +45,8 @@ public:
required_device<k007232_device> m_k007232_2;
required_device<k007121_device> m_k007121;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(k007121_registers_w);
DECLARE_WRITE8_MEMBER(fastlane_bankswitch_w);
diff --git a/src/mame/includes/fcombat.h b/src/mame/includes/fcombat.h
index 2c604e82111..fb54f5e61ed 100644
--- a/src/mame/includes/fcombat.h
+++ b/src/mame/includes/fcombat.h
@@ -30,7 +30,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -52,6 +53,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(fcombat_protection_r);
DECLARE_READ8_MEMBER(fcombat_port01_r);
diff --git a/src/mame/includes/fgoal.h b/src/mame/includes/fgoal.h
index b08fe9d5684..84a31b8dfdc 100644
--- a/src/mame/includes/fgoal.h
+++ b/src/mame/includes/fgoal.h
@@ -13,7 +13,9 @@ public:
m_video_ram(*this, "video_ram"),
m_maincpu(*this, "maincpu"),
m_mb14241(*this, "mb14241"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -36,6 +38,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<mb14241_device> m_mb14241;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(fgoal_analog_r);
DECLARE_READ8_MEMBER(fgoal_nmi_reset_r);
diff --git a/src/mame/includes/finalizr.h b/src/mame/includes/finalizr.h
index 39fc45fc4a8..68f01f9f42e 100644
--- a/src/mame/includes/finalizr.h
+++ b/src/mame/includes/finalizr.h
@@ -18,7 +18,8 @@ public:
m_spriteram_2(*this, "spriteram_2"),
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_scroll;
@@ -60,4 +61,5 @@ 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/includes/firetrap.h b/src/mame/includes/firetrap.h
index c1103e19333..bd33c2b47d3 100644
--- a/src/mame/includes/firetrap.h
+++ b/src/mame/includes/firetrap.h
@@ -17,7 +17,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_bg1videoram;
@@ -49,6 +50,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(firetrap_nmi_disable_w);
DECLARE_WRITE8_MEMBER(firetrap_bankselect_w);
diff --git a/src/mame/includes/firetrk.h b/src/mame/includes/firetrk.h
index 2e844320ee8..44947435b84 100644
--- a/src/mame/includes/firetrk.h
+++ b/src/mame/includes/firetrk.h
@@ -46,7 +46,9 @@ public:
m_drone_x(*this, "drone_x"),
m_drone_y(*this, "drone_y"),
m_drone_rot(*this, "drone_rot"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -61,6 +63,8 @@ public:
optional_shared_ptr<UINT8> m_drone_y;
optional_shared_ptr<UINT8> m_drone_rot;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_in_service_mode;
UINT32 m_dial[2];
diff --git a/src/mame/includes/fitfight.h b/src/mame/includes/fitfight.h
index b803c60d47d..46332a06c0b 100644
--- a/src/mame/includes/fitfight.h
+++ b/src/mame/includes/fitfight.h
@@ -15,7 +15,8 @@ public:
m_fof_txt_tileram(*this, "fof_txt_tileram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_fof_100000;
@@ -68,4 +69,5 @@ public:
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int layer );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/flower.h b/src/mame/includes/flower.h
index c5df8d5d8f8..5d568348c2c 100644
--- a/src/mame/includes/flower.h
+++ b/src/mame/includes/flower.h
@@ -13,7 +13,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") { }
required_shared_ptr<UINT8> m_sn_nmi_enable;
required_shared_ptr<UINT8> m_spriteram;
@@ -47,6 +48,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;
};
diff --git a/src/mame/includes/flstory.h b/src/mame/includes/flstory.h
index 1b11b6221cc..22af48099aa 100644
--- a/src/mame/includes/flstory.h
+++ b/src/mame/includes/flstory.h
@@ -13,7 +13,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -64,6 +65,7 @@ public:
optional_device<cpu_device> m_mcu;
required_device<msm5232_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* mcu */
UINT8 m_mcu_cmd;
diff --git a/src/mame/includes/freekick.h b/src/mame/includes/freekick.h
index 1f5fb3be9a5..4f895b6ac7e 100644
--- a/src/mame/includes/freekick.h
+++ b/src/mame/includes/freekick.h
@@ -8,7 +8,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -59,4 +60,5 @@ public:
void freekick_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/includes/fromanc2.h b/src/mame/includes/fromanc2.h
index 90fcb63b68b..17218846c58 100644
--- a/src/mame/includes/fromanc2.h
+++ b/src/mame/includes/fromanc2.h
@@ -9,7 +9,8 @@ public:
m_subcpu(*this, "sub"),
m_eeprom(*this, "eeprom"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
UINT16 *m_paletteram[2];
@@ -120,4 +121,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/fromance.h b/src/mame/includes/fromance.h
index 1bf7d98da84..13fef6cd778 100644
--- a/src/mame/includes/fromance.h
+++ b/src/mame/includes/fromance.h
@@ -20,7 +20,9 @@ public:
m_subcpu(*this, "sub"),
m_maincpu(*this, "maincpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers (used by pipedrm) */
optional_shared_ptr<UINT8> m_videoram;
@@ -100,4 +102,6 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/funkybee.h b/src/mame/includes/funkybee.h
index 27acbed9608..96653e09212 100644
--- a/src/mame/includes/funkybee.h
+++ b/src/mame/includes/funkybee.h
@@ -8,7 +8,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -35,4 +36,5 @@ public:
void draw_columns( 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/includes/funworld.h b/src/mame/includes/funworld.h
index ac5032b022d..f37d198b328 100644
--- a/src/mame/includes/funworld.h
+++ b/src/mame/includes/funworld.h
@@ -6,7 +6,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") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
@@ -42,4 +43,5 @@ public:
UINT32 screen_update_funworld(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/includes/funybubl.h b/src/mame/includes/funybubl.h
index 78a81b3d794..c2e980f1fe7 100644
--- a/src/mame/includes/funybubl.h
+++ b/src/mame/includes/funybubl.h
@@ -9,7 +9,8 @@ public:
m_audiocpu(*this, "audiocpu"),
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<UINT8> m_paletteram;
@@ -31,4 +32,5 @@ 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/includes/fuukifg2.h b/src/mame/includes/fuukifg2.h
index ce857ead0df..0d4c1bc591f 100644
--- a/src/mame/includes/fuukifg2.h
+++ b/src/mame/includes/fuukifg2.h
@@ -20,7 +20,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
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_array<UINT16,4> m_vram;
@@ -62,7 +64,8 @@ public:
DECLARE_WRITE_LINE_MEMBER(soundirq);
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ 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/includes/fuukifg3.h b/src/mame/includes/fuukifg3.h
index 21ed967b7c2..942dae5f6dd 100644
--- a/src/mame/includes/fuukifg3.h
+++ b/src/mame/includes/fuukifg3.h
@@ -29,7 +29,9 @@ public:
m_tilebank(*this, "tilebank"),
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr_array<UINT32,4> m_vram;
@@ -53,6 +55,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_soundcpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE32_MEMBER(paletteram32_xRRRRRGGGGGBBBBB_dword_w);
diff --git a/src/mame/includes/gaelco.h b/src/mame/includes/gaelco.h
index 25df5a08691..7652419260b 100644
--- a/src/mame/includes/gaelco.h
+++ b/src/mame/includes/gaelco.h
@@ -15,7 +15,8 @@ public:
m_screenram(*this, "screenram"),
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<UINT16> m_videoram;
@@ -47,4 +48,5 @@ public:
void draw_sprites( 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/includes/gaelco2.h b/src/mame/includes/gaelco2.h
index 43ca13bfdd9..e56ed26679b 100644
--- a/src/mame/includes/gaelco2.h
+++ b/src/mame/includes/gaelco2.h
@@ -12,7 +12,8 @@ public:
m_vregs(*this, "vregs"),
m_snowboar_protection(*this, "snowboar_prot"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<m68000_device> m_maincpu;
required_device<buffered_spriteram16_device> m_spriteram;
@@ -20,6 +21,7 @@ public:
optional_shared_ptr<UINT16> m_snowboar_protection;
optional_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_clr_gun_int;
UINT8 m_analog_ports[2];
diff --git a/src/mame/includes/gaelco3d.h b/src/mame/includes/gaelco3d.h
index d2f3dac2d54..ed05bca3110 100644
--- a/src/mame/includes/gaelco3d.h
+++ b/src/mame/includes/gaelco3d.h
@@ -65,7 +65,8 @@ public:
m_adsp(*this, "adsp"),
m_eeprom(*this, "eeprom"),
m_tms(*this, "tms"),
- m_serial(*this, "serial") { }
+ m_serial(*this, "serial"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT32> m_adsp_ram_base;
required_shared_ptr<UINT16> m_m68k_ram_base;
@@ -77,6 +78,8 @@ public:
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<cpu_device> m_tms;
required_device<gaelco_serial_device> m_serial;
+ required_device<screen_device> m_screen;
+
UINT16 m_sound_data;
UINT8 m_sound_status;
offs_t m_tms_offset_xor;
diff --git a/src/mame/includes/gaiden.h b/src/mame/includes/gaiden.h
index 41c0533797c..c2cf4a62620 100644
--- a/src/mame/includes/gaiden.h
+++ b/src/mame/includes/gaiden.h
@@ -17,7 +17,9 @@ public:
m_spriteram(*this, "spriteram"),
m_audiocpu(*this, "audiocpu"),
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;
@@ -99,4 +101,6 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
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/includes/galaga.h b/src/mame/includes/galaga.h
index 90ade242044..30f1fa44d4e 100644
--- a/src/mame/includes/galaga.h
+++ b/src/mame/includes/galaga.h
@@ -16,7 +16,9 @@ public:
m_subcpu(*this, "sub"),
m_subcpu2(*this, "sub2"),
m_namco_sound(*this, "namco"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
optional_shared_ptr<UINT8> m_videoram;
@@ -29,6 +31,8 @@ public:
required_device<cpu_device> m_subcpu2;
required_device<namco_device> m_namco_sound;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
emu_timer *m_cpu3_interrupt_timer;
UINT8 m_custom_mod;
diff --git a/src/mame/includes/galastrm.h b/src/mame/includes/galastrm.h
index 375c304e6be..fe6a4d9f8bf 100644
--- a/src/mame/includes/galastrm.h
+++ b/src/mame/includes/galastrm.h
@@ -29,7 +29,9 @@ public:
m_eeprom(*this, "eeprom"),
m_tc0100scn(*this, "tc0100scn"),
m_tc0480scp(*this, "tc0480scp"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_ram;
required_shared_ptr<UINT32> m_spriteram;
@@ -39,6 +41,9 @@ public:
required_device<tc0100scn_device> m_tc0100scn;
required_device<tc0480scp_device> m_tc0480scp;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT16 m_coin_word;
UINT16 m_frame_counter;
int m_tc0110pcr_addr;
diff --git a/src/mame/includes/galaxian.h b/src/mame/includes/galaxian.h
index d085cd74ef6..52c189d74de 100644
--- a/src/mame/includes/galaxian.h
+++ b/src/mame/includes/galaxian.h
@@ -51,7 +51,9 @@ public:
m_ppi8255_2(*this, "ppi8255_2"),
m_spriteram(*this, "spriteram"),
m_videoram(*this, "videoram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
@@ -67,6 +69,8 @@ public:
required_shared_ptr<UINT8> m_spriteram;
required_shared_ptr<UINT8> m_videoram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int m_bullets_base;
int m_sprites_base;
diff --git a/src/mame/includes/galaxold.h b/src/mame/includes/galaxold.h
index 5b3eb0ccd6b..f77757849cd 100644
--- a/src/mame/includes/galaxold.h
+++ b/src/mame/includes/galaxold.h
@@ -38,7 +38,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_7474_9m_1(*this, "7474_9m_1"),
m_7474_9m_2(*this, "7474_9m_2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
}
@@ -250,6 +252,8 @@ public:
optional_device<ttl7474_device> m_7474_9m_1;
optional_device<ttl7474_device> m_7474_9m_2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
#define galaxold_coin_counter_0_w galaxold_coin_counter_w
diff --git a/src/mame/includes/galivan.h b/src/mame/includes/galivan.h
index fbbbbf2c0e2..aa8d425bcbf 100644
--- a/src/mame/includes/galivan.h
+++ b/src/mame/includes/galivan.h
@@ -14,7 +14,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -63,4 +64,5 @@ 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/includes/galpani2.h b/src/mame/includes/galpani2.h
index 24d69f12b27..be92174407f 100644
--- a/src/mame/includes/galpani2.h
+++ b/src/mame/includes/galpani2.h
@@ -20,7 +20,8 @@ public:
m_kaneko_spr(*this, "kan_spr"),
m_spriteram(*this, "spriteram"),
m_oki2(*this, "oki2"),
- m_eeprom(*this, "eeprom")
+ m_eeprom(*this, "eeprom"),
+ m_palette(*this, "palette")
{ }
required_shared_ptr_array<UINT16, 2> m_bg8;
@@ -72,4 +73,5 @@ public:
DECLARE_WRITE16_MEMBER( galpani2_bg15_w );
required_device<okim6295_device> m_oki2;
required_device<eeprom_serial_93cxx_device> m_eeprom;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/galpanic.h b/src/mame/includes/galpanic.h
index a5a166e3a32..e5584d0e79a 100644
--- a/src/mame/includes/galpanic.h
+++ b/src/mame/includes/galpanic.h
@@ -8,7 +8,9 @@ public:
m_bgvideoram(*this, "bgvideoram"),
m_fgvideoram(*this, "fgvideoram"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_bgvideoram;
required_shared_ptr<UINT16> m_fgvideoram;
@@ -16,6 +18,8 @@ public:
bitmap_ind16 m_sprites_bitmap;
optional_shared_ptr<UINT16> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(galpanic_6295_bankswitch_w);
DECLARE_WRITE16_MEMBER(galpanica_6295_bankswitch_w);
diff --git a/src/mame/includes/galspnbl.h b/src/mame/includes/galspnbl.h
index bcb72444796..9e52e732eb6 100644
--- a/src/mame/includes/galspnbl.h
+++ b/src/mame/includes/galspnbl.h
@@ -19,7 +19,8 @@ public:
m_scroll(*this, "scroll"),
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<UINT16> m_spriteram;
@@ -38,4 +39,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/gameplan.h b/src/mame/includes/gameplan.h
index ecef8e32bec..9839c431f84 100644
--- a/src/mame/includes/gameplan.h
+++ b/src/mame/includes/gameplan.h
@@ -40,7 +40,8 @@ public:
m_riot(*this, "riot"),
m_via_0(*this, "via6522_0"),
m_via_1(*this, "via6522_1"),
- m_via_2(*this, "via6522_2") { }
+ m_via_2(*this, "via6522_2"),
+ m_screen(*this, "screen") { }
/* machine state */
UINT8 m_current_port;
@@ -62,6 +63,7 @@ public:
required_device<via6522_device> m_via_0;
required_device<via6522_device> m_via_1;
required_device<via6522_device> m_via_2;
+ required_device<screen_device> m_screen;
DECLARE_WRITE8_MEMBER(io_select_w);
DECLARE_READ8_MEMBER(io_port_r);
DECLARE_WRITE_LINE_MEMBER(coin_w);
diff --git a/src/mame/includes/gaplus.h b/src/mame/includes/gaplus.h
index 9a15adddb8a..56f5d9349a6 100644
--- a/src/mame/includes/gaplus.h
+++ b/src/mame/includes/gaplus.h
@@ -35,7 +35,9 @@ public:
m_customio_3(*this,"customio_3"),
m_videoram(*this,"videoram"),
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_device<cpu_device> m_subcpu;
@@ -46,6 +48,8 @@ public:
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
namco58xx_device *m_namco58xx;
namco56xx_device *m_namco56xx;
diff --git a/src/mame/includes/gberet.h b/src/mame/includes/gberet.h
index a9fc8d10daf..8bacf570640 100644
--- a/src/mame/includes/gberet.h
+++ b/src/mame/includes/gberet.h
@@ -19,7 +19,8 @@ public:
m_soundlatch(*this, "soundlatch"),
m_sn(*this, "snsnd") ,
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_colorram;
@@ -64,4 +65,5 @@ public:
void gberetb_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/includes/gbusters.h b/src/mame/includes/gbusters.h
index 70616c8497e..ece165bece4 100644
--- a/src/mame/includes/gbusters.h
+++ b/src/mame/includes/gbusters.h
@@ -19,7 +19,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_k007232(*this, "k007232"),
m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960") { }
+ m_k051960(*this, "k051960"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_ram;
@@ -39,6 +40,7 @@ public:
required_device<k007232_device> m_k007232;
required_device<k052109_device> m_k052109;
required_device<k051960_device> m_k051960;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(bankedram_r);
DECLARE_WRITE8_MEMBER(bankedram_w);
DECLARE_WRITE8_MEMBER(gbusters_1f98_w);
diff --git a/src/mame/includes/gcpinbal.h b/src/mame/includes/gcpinbal.h
index 9c3c0bff76c..c45c7b5f074 100644
--- a/src/mame/includes/gcpinbal.h
+++ b/src/mame/includes/gcpinbal.h
@@ -19,7 +19,8 @@ public:
m_tilemapram(*this, "tilemapram"),
m_spriteram(*this, "spriteram"),
m_ioc_ram(*this, "ioc_ram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -33,6 +34,7 @@ public:
required_shared_ptr<UINT16> m_ioc_ram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
// UINT16 * m_paletteram; // currently this uses generic palette handling
/* video-related */
diff --git a/src/mame/includes/gijoe.h b/src/mame/includes/gijoe.h
index 9bbfc77e55d..6dc63a4c416 100644
--- a/src/mame/includes/gijoe.h
+++ b/src/mame/includes/gijoe.h
@@ -21,7 +21,8 @@ public:
m_k054539(*this, "k054539"),
m_k056832(*this, "k056832"),
m_k053246(*this, "k053246"),
- m_k053251(*this, "k053251") { }
+ m_k053251(*this, "k053251"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -47,6 +48,7 @@ public:
required_device<k056832_device> m_k056832;
required_device<k053247_device> m_k053246;
required_device<k053251_device> m_k053251;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER(control2_r);
DECLARE_WRITE16_MEMBER(control2_w);
DECLARE_WRITE16_MEMBER(sound_cmd_w);
diff --git a/src/mame/includes/ginganin.h b/src/mame/includes/ginganin.h
index 83aec8afe8c..8d6127e9ae1 100644
--- a/src/mame/includes/ginganin.h
+++ b/src/mame/includes/ginganin.h
@@ -15,7 +15,8 @@ public:
m_fgram(*this, "fgram"),
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<UINT16> m_txtram;
@@ -52,4 +53,5 @@ 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/includes/gladiatr.h b/src/mame/includes/gladiatr.h
index e2f741c7654..4087132757a 100644
--- a/src/mame/includes/gladiatr.h
+++ b/src/mame/includes/gladiatr.h
@@ -14,7 +14,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "sub"),
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_spriteram;
@@ -81,4 +82,5 @@ public:
required_device<cpu_device> m_subcpu;
required_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/glass.h b/src/mame/includes/glass.h
index aa5868c6550..e9cbddbb8d8 100644
--- a/src/mame/includes/glass.h
+++ b/src/mame/includes/glass.h
@@ -14,7 +14,8 @@ public:
m_spriteram(*this, "spriteram"),
m_mainram(*this, "mainram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_videoram;
@@ -53,4 +54,5 @@ public:
void glass_ROM16_split_gfx( const char *src_reg, const char *dst_reg, int start, int length, int dest1, int dest2 );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/gng.h b/src/mame/includes/gng.h
index 11bf38a212e..2145925d645 100644
--- a/src/mame/includes/gng.h
+++ b/src/mame/includes/gng.h
@@ -15,7 +15,8 @@ public:
m_fgvideoram(*this, "fgvideoram"),
m_bgvideoram(*this, "bgvideoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_device<buffered_spriteram8_device> m_spriteram;
@@ -48,4 +49,5 @@ 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/includes/goal92.h b/src/mame/includes/goal92.h
index c84abd51cbe..a1b9e48ca5a 100644
--- a/src/mame/includes/goal92.h
+++ b/src/mame/includes/goal92.h
@@ -17,7 +17,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") { }
/* memory pointers */
required_shared_ptr<UINT16> m_bg_data;
@@ -63,4 +64,5 @@ 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/includes/goindol.h b/src/mame/includes/goindol.h
index f6e01608b85..3491a7be741 100644
--- a/src/mame/includes/goindol.h
+++ b/src/mame/includes/goindol.h
@@ -17,7 +17,8 @@ public:
m_spriteram2(*this, "spriteram2"),
m_fg_videoram(*this, "fg_videoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_ram;
@@ -53,4 +54,5 @@ public:
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int gfxbank, UINT8 *sprite_ram );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/goldstar.h b/src/mame/includes/goldstar.h
index 06f77b06736..f133d0a294d 100644
--- a/src/mame/includes/goldstar.h
+++ b/src/mame/includes/goldstar.h
@@ -15,7 +15,8 @@ public:
m_reel2_attrram(*this, "reel2_attrram"),
m_reel3_attrram(*this, "reel3_attrram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_dataoffset;
@@ -160,4 +161,5 @@ public:
UINT8 chry10_decrypt(UINT8 cipherText);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/gomoku.h b/src/mame/includes/gomoku.h
index 1475f2f3c97..1fd348d6924 100644
--- a/src/mame/includes/gomoku.h
+++ b/src/mame/includes/gomoku.h
@@ -8,7 +8,8 @@ public:
m_colorram(*this, "colorram"),
m_bgram(*this, "bgram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
@@ -29,6 +30,7 @@ public:
UINT32 screen_update_gomoku(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;
};
diff --git a/src/mame/includes/gottlieb.h b/src/mame/includes/gottlieb.h
index 696ad4ad033..15a71eabe62 100644
--- a/src/mame/includes/gottlieb.h
+++ b/src/mame/includes/gottlieb.h
@@ -218,7 +218,9 @@ public:
m_videoram(*this, "videoram"),
m_charram(*this, "charram"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
// devices
@@ -233,7 +235,9 @@ public:
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT8 m_knocker_prev;
UINT8 m_joystick_select;
UINT8 m_track[2];
diff --git a/src/mame/includes/gotya.h b/src/mame/includes/gotya.h
index aae1d3a9004..933e3deba83 100644
--- a/src/mame/includes/gotya.h
+++ b/src/mame/includes/gotya.h
@@ -12,7 +12,8 @@ public:
m_spriteram(*this, "spriteram"),
m_samples(*this, "samples"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_scroll;
@@ -46,4 +47,5 @@ public:
void draw_status( 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/includes/grchamp.h b/src/mame/includes/grchamp.h
index a1312e7aba3..06d0b5adf72 100644
--- a/src/mame/includes/grchamp.h
+++ b/src/mame/includes/grchamp.h
@@ -21,7 +21,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "sub"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen") { }
UINT8 m_cpu0_out[16];
UINT8 m_cpu1_out[16];
@@ -86,6 +87,7 @@ public:
required_device<cpu_device> m_subcpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
};
/* Discrete Sound Input Nodes */
diff --git a/src/mame/includes/gridlee.h b/src/mame/includes/gridlee.h
index d9cbc61c16a..440c8670997 100644
--- a/src/mame/includes/gridlee.h
+++ b/src/mame/includes/gridlee.h
@@ -29,11 +29,16 @@ public:
: driver_device(mconfig, type, tag),
m_spriteram(*this, "spriteram"),
m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"){ }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_spriteram;
required_shared_ptr<UINT8> m_videoram;
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT8 m_last_analog_input[2];
UINT8 m_last_analog_output[2];
UINT8 *m_poly17;
diff --git a/src/mame/includes/groundfx.h b/src/mame/includes/groundfx.h
index cc8d28bb3aa..9dcdfc5bec1 100644
--- a/src/mame/includes/groundfx.h
+++ b/src/mame/includes/groundfx.h
@@ -26,7 +26,8 @@ public:
m_maincpu(*this, "maincpu"),
m_tc0100scn(*this, "tc0100scn"),
m_tc0480scp(*this, "tc0480scp"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_ram;
required_shared_ptr<UINT32> m_spriteram;
@@ -35,6 +36,7 @@ public:
required_device<tc0100scn_device> m_tc0100scn;
required_device<tc0480scp_device> m_tc0480scp;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT16 m_coin_word;
UINT16 m_frame_counter;
diff --git a/src/mame/includes/gstriker.h b/src/mame/includes/gstriker.h
index f1ba4d0dfa4..c8484e1e00d 100644
--- a/src/mame/includes/gstriker.h
+++ b/src/mame/includes/gstriker.h
@@ -46,7 +46,9 @@ public:
m_spr(*this, "vsystem_spr"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
virtual void machine_start()
{
@@ -116,6 +118,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;
};
#endif
diff --git a/src/mame/includes/gsword.h b/src/mame/includes/gsword.h
index f1cd1544e93..3f51737bb7e 100644
--- a/src/mame/includes/gsword.h
+++ b/src/mame/includes/gsword.h
@@ -14,7 +14,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "sub"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_spritetile_ram;
required_shared_ptr<UINT8> m_spritexy_ram;
@@ -61,4 +62,5 @@ public:
optional_device<cpu_device> m_subcpu;
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/gunbustr.h b/src/mame/includes/gunbustr.h
index d789e33320e..cbcd33d1a5d 100644
--- a/src/mame/includes/gunbustr.h
+++ b/src/mame/includes/gunbustr.h
@@ -26,7 +26,8 @@ public:
m_ram(*this,"ram"),
m_spriteram(*this,"spriteram"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
m_coin_lockout = true;
}
@@ -37,6 +38,7 @@ public:
required_shared_ptr<UINT32> m_spriteram;
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
bool m_coin_lockout;
UINT16 m_coin_word;
diff --git a/src/mame/includes/gundealr.h b/src/mame/includes/gundealr.h
index a6e90ba135f..1ed6968b1ec 100644
--- a/src/mame/includes/gundealr.h
+++ b/src/mame/includes/gundealr.h
@@ -14,7 +14,8 @@ public:
m_fg_videoram(*this, "fg_videoram"),
m_rambase(*this, "rambase"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_paletteram;
@@ -48,4 +49,5 @@ public:
TIMER_DEVICE_CALLBACK_MEMBER(yamyam_mcu_sim);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/gunsmoke.h b/src/mame/includes/gunsmoke.h
index 0e2d91c93f2..b0ba3322e4b 100644
--- a/src/mame/includes/gunsmoke.h
+++ b/src/mame/includes/gunsmoke.h
@@ -15,7 +15,8 @@ public:
m_scrolly(*this, "scrolly"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -46,4 +47,5 @@ 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/includes/gyruss.h b/src/mame/includes/gyruss.h
index 5315d27c641..7f3db0080c9 100644
--- a/src/mame/includes/gyruss.h
+++ b/src/mame/includes/gyruss.h
@@ -20,7 +20,9 @@ public:
m_videoram(*this, "videoram"),
m_flipscreen(*this, "flipscreen"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* devices/memory pointers */
@@ -34,7 +36,9 @@ public:
required_shared_ptr<UINT8> m_flipscreen;
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
tilemap_t *m_tilemap;
UINT8 m_master_nmi_mask;
UINT8 m_slave_irq_mask;
diff --git a/src/mame/includes/hcastle.h b/src/mame/includes/hcastle.h
index 9c9d1bc219f..db659f8d026 100644
--- a/src/mame/includes/hcastle.h
+++ b/src/mame/includes/hcastle.h
@@ -23,7 +23,8 @@ public:
m_k007121_2(*this, "k007121_2"),
m_k007232(*this, "k007232"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<buffered_spriteram8_device> m_spriteram;
required_device<buffered_spriteram8_device> m_spriteram2;
@@ -71,4 +72,5 @@ public:
DECLARE_WRITE8_MEMBER(volume_callback);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/higemaru.h b/src/mame/includes/higemaru.h
index dba1b6a5b92..8b08af6b706 100644
--- a/src/mame/includes/higemaru.h
+++ b/src/mame/includes/higemaru.h
@@ -13,7 +13,8 @@ public:
m_colorram(*this, "colorram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -33,4 +34,5 @@ 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/includes/himesiki.h b/src/mame/includes/himesiki.h
index 791bee726f6..e148a84db7c 100644
--- a/src/mame/includes/himesiki.h
+++ b/src/mame/includes/himesiki.h
@@ -13,7 +13,8 @@ public:
m_spriteram(*this, "spriteram"),
m_subcpu(*this, "sub"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_bg_ram;
@@ -40,4 +41,5 @@ public:
void himesiki_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/includes/hitme.h b/src/mame/includes/hitme.h
index e83571a012a..805468ffe0c 100644
--- a/src/mame/includes/hitme.h
+++ b/src/mame/includes/hitme.h
@@ -20,7 +20,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -49,6 +50,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/includes/hng64.h b/src/mame/includes/hng64.h
index 580cc37efc0..e3e3c9615c7 100644
--- a/src/mame/includes/hng64.h
+++ b/src/mame/includes/hng64.h
@@ -35,7 +35,9 @@ public:
m_3d_1(*this, "3d_1"),
m_3d_2(*this, "3d_2"),
m_com_ram(*this, "com_ram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -62,6 +64,8 @@ public:
//required_shared_ptr<UINT8> m_com_mmu_mem;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int m_mcu_type;
diff --git a/src/mame/includes/holeland.h b/src/mame/includes/holeland.h
index f84e3315c1e..e8195b1f08e 100644
--- a/src/mame/includes/holeland.h
+++ b/src/mame/includes/holeland.h
@@ -13,7 +13,8 @@ public:
m_colorram(*this, "colorram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -39,4 +40,5 @@ public:
void crzrally_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/includes/homedata.h b/src/mame/includes/homedata.h
index 94080dc40ee..9035b2b637b 100644
--- a/src/mame/includes/homedata.h
+++ b/src/mame/includes/homedata.h
@@ -13,7 +13,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_dac(*this, "dac"),
m_ymsnd(*this, "ymsnd"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -49,6 +50,7 @@ public:
optional_device<dac_device> m_dac;
optional_device<ym2203_device> m_ymsnd;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
sn76489a_device *m_sn;
UINT8 m_prot_data;
DECLARE_READ8_MEMBER(mrokumei_keyboard_r);
diff --git a/src/mame/includes/homerun.h b/src/mame/includes/homerun.h
index 164c8d88d43..a81dbee9a80 100644
--- a/src/mame/includes/homerun.h
+++ b/src/mame/includes/homerun.h
@@ -18,7 +18,9 @@ public:
m_colorram(*this, "colorram"),
m_d7756(*this, "d7756"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -28,7 +30,9 @@ public:
optional_device<upd7756_device> m_d7756;
optional_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT8 m_control;
UINT8 m_sample;
diff --git a/src/mame/includes/hyhoo.h b/src/mame/includes/hyhoo.h
index dd6ad35e378..105aa819ff0 100644
--- a/src/mame/includes/hyhoo.h
+++ b/src/mame/includes/hyhoo.h
@@ -12,11 +12,14 @@ public:
: driver_device(mconfig, type, tag),
m_clut(*this, "clut"),
m_maincpu(*this, "maincpu"),
- m_nb1413m3(*this, "nb1413m3") { }
+ m_nb1413m3(*this, "nb1413m3"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT8> m_clut;
required_device<cpu_device> m_maincpu;
required_device<nb1413m3_device> m_nb1413m3;
+ required_device<screen_device> m_screen;
+
int m_blitter_destx;
int m_blitter_desty;
int m_blitter_sizex;
diff --git a/src/mame/includes/hyperspt.h b/src/mame/includes/hyperspt.h
index c95c9456436..c100a2ca009 100644
--- a/src/mame/includes/hyperspt.h
+++ b/src/mame/includes/hyperspt.h
@@ -14,7 +14,8 @@ public:
m_sn(*this, "snsnd"),
m_maincpu(*this, "maincpu"),
m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -25,6 +26,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<vlm5030_device> m_vlm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 * m_scroll2;
UINT8 * m_spriteram2;
diff --git a/src/mame/includes/hyprduel.h b/src/mame/includes/hyprduel.h
index 9eda5c8607b..24062ce78bd 100644
--- a/src/mame/includes/hyprduel.h
+++ b/src/mame/includes/hyprduel.h
@@ -24,7 +24,9 @@ public:
m_sharedram3(*this, "sharedram3"),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_vram_0;
@@ -65,6 +67,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER(hyprduel_irq_cause_r);
DECLARE_WRITE16_MEMBER(hyprduel_irq_cause_w);
diff --git a/src/mame/includes/ikki.h b/src/mame/includes/ikki.h
index 1617968c8e0..93e80be4e5f 100644
--- a/src/mame/includes/ikki.h
+++ b/src/mame/includes/ikki.h
@@ -14,7 +14,9 @@ public:
m_videoram(*this, "videoram"),
m_scroll(*this, "scroll"),
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_device<cpu_device> m_subcpu;
@@ -24,6 +26,8 @@ public:
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
/* video-related */
bitmap_ind16 m_sprite_bitmap;
diff --git a/src/mame/includes/inufuku.h b/src/mame/includes/inufuku.h
index fb5ba266f91..2979bcdd5fb 100644
--- a/src/mame/includes/inufuku.h
+++ b/src/mame/includes/inufuku.h
@@ -12,7 +12,8 @@ public:
m_spr(*this, "vsystem_spr"),
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<UINT16> m_bg_videoram;
@@ -61,4 +62,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/irobot.h b/src/mame/includes/irobot.h
index f2722e932eb..892cf3c5030 100644
--- a/src/mame/includes/irobot.h
+++ b/src/mame/includes/irobot.h
@@ -29,7 +29,9 @@ public:
m_nvram(*this, "nvram") ,
m_videoram(*this, "videoram"),
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_nvram;
required_shared_ptr<UINT8> m_videoram;
@@ -95,4 +97,6 @@ public:
void irmb_run();
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/includes/ironhors.h b/src/mame/includes/ironhors.h
index 89b8e1db872..94fc23d298d 100644
--- a/src/mame/includes/ironhors.h
+++ b/src/mame/includes/ironhors.h
@@ -17,7 +17,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_interrupt_enable;
@@ -37,6 +38,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;
DECLARE_WRITE8_MEMBER(ironhors_sh_irqtrigger_w);
DECLARE_WRITE8_MEMBER(ironhors_videoram_w);
diff --git a/src/mame/includes/itech32.h b/src/mame/includes/itech32.h
index 1a67adfe78f..42a8c5bb8ad 100644
--- a/src/mame/includes/itech32.h
+++ b/src/mame/includes/itech32.h
@@ -32,7 +32,9 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_dsp1(*this, "dsp1"),
- m_dsp2(*this, "dsp2") { }
+ m_dsp2(*this, "dsp2"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT16> m_main_ram;
optional_shared_ptr<UINT16> m_nvram;
@@ -193,4 +195,6 @@ public:
required_device<cpu_device> m_soundcpu;
optional_device<cpu_device> m_dsp1;
optional_device<cpu_device> m_dsp2;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/itech8.h b/src/mame/includes/itech8.h
index d65a7e89d39..a14aef4faec 100644
--- a/src/mame/includes/itech8.h
+++ b/src/mame/includes/itech8.h
@@ -22,7 +22,8 @@ public:
m_subcpu(*this, "sub"),
m_tms34061(*this, "tms34061"),
m_tlc34076(*this, "tlc34076"),
- m_visarea(0, 0, 0, 0) { }
+ m_visarea(0, 0, 0, 0),
+ m_screen(*this, "screen") { }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_soundcpu;
@@ -30,6 +31,7 @@ public:
required_device<tms34061_device> m_tms34061;
required_device<tlc34076_device> m_tlc34076;
rectangle m_visarea;
+ required_device<screen_device> m_screen;
UINT8 m_grom_bank;
UINT8 m_blitter_int;
diff --git a/src/mame/includes/jack.h b/src/mame/includes/jack.h
index cfd15637f39..e405b8bdb04 100644
--- a/src/mame/includes/jack.h
+++ b/src/mame/includes/jack.h
@@ -15,7 +15,8 @@ public:
m_scrollram(*this, "scrollram"),
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* device- and memory pointers */
@@ -26,7 +27,8 @@ public:
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<palette_device> m_palette;
+
/* video-related */
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/jackal.h b/src/mame/includes/jackal.h
index 3a33f370af3..38365876a1f 100644
--- a/src/mame/includes/jackal.h
+++ b/src/mame/includes/jackal.h
@@ -13,7 +13,8 @@ public:
m_paletteram(*this, "paletteram"),
m_mastercpu(*this, "master"),
m_slavecpu(*this, "slave"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoctrl;
@@ -32,6 +33,7 @@ public:
required_device<cpu_device> m_mastercpu;
required_device<cpu_device> m_slavecpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(jackalr_rotary_r);
DECLARE_WRITE8_MEMBER(jackal_flipscreen_w);
diff --git a/src/mame/includes/jaguar.h b/src/mame/includes/jaguar.h
index c289076dce6..752c3c69633 100644
--- a/src/mame/includes/jaguar.h
+++ b/src/mame/includes/jaguar.h
@@ -61,7 +61,8 @@ public:
m_eeprom_bit_count(0),
m_protection_check(0) ,
m_eeprom(*this, "eeprom"),
- m_ide(*this, "ide")
+ m_ide(*this, "ide"),
+ m_screen(*this, "screen")
{
}
@@ -342,4 +343,5 @@ protected:
void jaguar_nvram_save();
optional_device<eeprom_serial_93cxx_device> m_eeprom;
optional_device<vt83c461_device> m_ide;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/includes/jailbrek.h b/src/mame/includes/jailbrek.h
index 73cc0ed637a..d4c05328c1e 100644
--- a/src/mame/includes/jailbrek.h
+++ b/src/mame/includes/jailbrek.h
@@ -21,7 +21,8 @@ public:
m_scroll_dir(*this, "scroll_dir"),
m_maincpu(*this, "maincpu"),
m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_colorram;
@@ -34,6 +35,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<vlm5030_device> m_vlm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* video-related */
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/jedi.h b/src/mame/includes/jedi.h
index 8b942927847..2bad6a28524 100644
--- a/src/mame/includes/jedi.h
+++ b/src/mame/includes/jedi.h
@@ -30,7 +30,8 @@ public:
m_audio_comm_stat(*this, "audio_comm_stat"),
m_speech_data(*this, "speech_data"),
m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu") { }
+ m_audiocpu(*this, "audiocpu"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT8> m_nvram;
@@ -88,6 +89,7 @@ public:
void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
+ required_device<screen_device> m_screen;
};
/*----------- defined in audio/jedi.c -----------*/
diff --git a/src/mame/includes/jpmimpct.h b/src/mame/includes/jpmimpct.h
index fc6a5c518d1..20e210439cb 100644
--- a/src/mame/includes/jpmimpct.h
+++ b/src/mame/includes/jpmimpct.h
@@ -60,7 +60,8 @@ public:
m_vfd(*this, "vfd"),
m_vram(*this, "vram") ,
m_maincpu(*this, "maincpu"),
- m_upd7759(*this, "upd") { }
+ m_upd7759(*this, "upd"),
+ m_palette(*this, "palette") { }
UINT8 m_tms_irq;
UINT8 m_duart_1_irq;
@@ -116,6 +117,7 @@ public:
void update_irqs();
required_device<cpu_device> m_maincpu;
required_device<upd7759_device> m_upd7759;
+ optional_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/jpmsys5.h b/src/mame/includes/jpmsys5.h
index 58304b3a6d9..bc1d9007b57 100644
--- a/src/mame/includes/jpmsys5.h
+++ b/src/mame/includes/jpmsys5.h
@@ -24,7 +24,8 @@ public:
m_upd7759(*this, "upd7759"),
m_tms34061(*this, "tms34061"),
m_vfd(*this, "vfd"),
- m_direct_port(*this, "DIRECT") { }
+ m_direct_port(*this, "DIRECT"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<acia6850_device> m_acia6850_0;
@@ -34,6 +35,7 @@ public:
optional_device<tms34061_device> m_tms34061;
optional_device<roc10937_t> m_vfd;
required_ioport m_direct_port;
+ optional_device<palette_device> m_palette;
UINT8 m_palette_val[16][3];
int m_pal_addr;
diff --git a/src/mame/includes/karnov.h b/src/mame/includes/karnov.h
index 74739979f9f..bbbd046f58f 100644
--- a/src/mame/includes/karnov.h
+++ b/src/mame/includes/karnov.h
@@ -19,7 +19,8 @@ public:
m_ram(*this, "ram"),
m_videoram(*this, "videoram"),
m_pf_data(*this, "pf_data"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* devices */
required_device<cpu_device> m_maincpu;
@@ -33,6 +34,7 @@ public:
required_shared_ptr<UINT16> m_pf_data;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* video-related */
bitmap_ind16 *m_bitmap_f;
diff --git a/src/mame/includes/kchamp.h b/src/mame/includes/kchamp.h
index 609ccd48a7a..09dda8a0883 100644
--- a/src/mame/includes/kchamp.h
+++ b/src/mame/includes/kchamp.h
@@ -16,7 +16,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -64,4 +65,5 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/kickgoal.h b/src/mame/includes/kickgoal.h
index 59f1e4b499e..3001c8ce2c5 100644
--- a/src/mame/includes/kickgoal.h
+++ b/src/mame/includes/kickgoal.h
@@ -21,7 +21,8 @@ public:
m_eeprom(*this, "eeprom") ,
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_fgram;
@@ -84,4 +85,5 @@ 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/includes/kingobox.h b/src/mame/includes/kingobox.h
index eca14cc0232..3f933004e65 100644
--- a/src/mame/includes/kingobox.h
+++ b/src/mame/includes/kingobox.h
@@ -19,7 +19,8 @@ public:
m_sprite_cpu(*this, "sprite"),
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_scroll_y;
@@ -71,4 +72,5 @@ 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/includes/kncljoe.h b/src/mame/includes/kncljoe.h
index e0a4f85cc01..acb32e3177a 100644
--- a/src/mame/includes/kncljoe.h
+++ b/src/mame/includes/kncljoe.h
@@ -14,7 +14,9 @@ public:
m_spriteram(*this, "spriteram"),
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<UINT8> m_videoram;
@@ -53,4 +55,6 @@ public:
void draw_sprites( 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/includes/konamigx.h b/src/mame/includes/konamigx.h
index fdabc4a22ba..edb5613b6d6 100644
--- a/src/mame/includes/konamigx.h
+++ b/src/mame/includes/konamigx.h
@@ -29,7 +29,9 @@ public:
m_k056800(*this, "k056800"),
m_k054539_1(*this,"k054539_1"),
m_k054539_2(*this,"k054539_2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -51,6 +53,8 @@ public:
optional_device<k054539_device> m_k054539_1;
optional_device<k054539_device> m_k054539_2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE32_MEMBER(esc_w);
DECLARE_WRITE32_MEMBER(eeprom_w);
diff --git a/src/mame/includes/ksayakyu.h b/src/mame/includes/ksayakyu.h
index c24118b2fb3..9124498d3d5 100644
--- a/src/mame/includes/ksayakyu.h
+++ b/src/mame/includes/ksayakyu.h
@@ -12,7 +12,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -45,4 +46,5 @@ 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/includes/kyugo.h b/src/mame/includes/kyugo.h
index 7d255f36c1d..b100eaeafb0 100644
--- a/src/mame/includes/kyugo.h
+++ b/src/mame/includes/kyugo.h
@@ -17,7 +17,8 @@ public:
m_shared_ram(*this, "shared_ram"),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_fgvideoram;
@@ -41,6 +42,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;
UINT8 m_nmi_mask;
DECLARE_WRITE8_MEMBER(kyugo_nmi_mask_w);
diff --git a/src/mame/includes/labyrunr.h b/src/mame/includes/labyrunr.h
index 4b06e344a6a..b9f8781a9cc 100644
--- a/src/mame/includes/labyrunr.h
+++ b/src/mame/includes/labyrunr.h
@@ -19,7 +19,9 @@ public:
m_spriteram(*this, "spriteram"),
m_videoram1(*this, "videoram1"),
m_videoram2(*this, "videoram2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* devices */
required_device<k007121_device> m_k007121;
@@ -33,6 +35,8 @@ public:
required_shared_ptr<UINT8> m_videoram2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
/* video-related */
tilemap_t *m_layer0;
diff --git a/src/mame/includes/ladybug.h b/src/mame/includes/ladybug.h
index 23f8dd5655f..8e9334877ae 100644
--- a/src/mame/includes/ladybug.h
+++ b/src/mame/includes/ladybug.h
@@ -16,7 +16,8 @@ public:
m_spriteram(*this, "spriteram"),
m_grid_data(*this, "grid_data"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -47,6 +48,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(sraider_sound_low_r);
DECLARE_READ8_MEMBER(sraider_sound_high_r);
diff --git a/src/mame/includes/ladyfrog.h b/src/mame/includes/ladyfrog.h
index 44c6e8f2d86..fa208d00176 100644
--- a/src/mame/includes/ladyfrog.h
+++ b/src/mame/includes/ladyfrog.h
@@ -16,7 +16,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -70,4 +71,5 @@ public:
required_device<cpu_device> m_maincpu;
required_device<msm5232_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/laserbat.h b/src/mame/includes/laserbat.h
index 1604baec462..bf5c1f113e3 100644
--- a/src/mame/includes/laserbat.h
+++ b/src/mame/includes/laserbat.h
@@ -22,7 +22,8 @@ public:
m_s2636_2(*this, "s2636_2"),
m_s2636_3(*this, "s2636_3"),
m_sn(*this, "snsnd"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -35,6 +36,7 @@ public:
required_device<s2636_device> m_s2636_3;
optional_device<sn76477_device> m_sn;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* video-related */
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/lasso.h b/src/mame/includes/lasso.h
index 7d52ffd3a11..871d62b7bba 100644
--- a/src/mame/includes/lasso.h
+++ b/src/mame/includes/lasso.h
@@ -23,7 +23,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_sn_1(*this, "sn76489.1"),
m_sn_2(*this, "sn76489.2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -47,6 +48,7 @@ public:
optional_device<sn76489_device> m_sn_1;
optional_device<sn76489_device> m_sn_2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(sound_command_w);
DECLARE_READ8_MEMBER(sound_status_r);
diff --git a/src/mame/includes/lastduel.h b/src/mame/includes/lastduel.h
index 4cb63ab9cb4..4655421a0f2 100644
--- a/src/mame/includes/lastduel.h
+++ b/src/mame/includes/lastduel.h
@@ -18,7 +18,8 @@ public:
m_scroll1(*this, "scroll1"),
m_scroll2(*this, "scroll2"),
m_paletteram(*this, "paletteram"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
/* devices */
required_device<cpu_device> m_maincpu;
@@ -31,7 +32,8 @@ public:
required_shared_ptr<UINT16> m_paletteram;
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/includes/lazercmd.h b/src/mame/includes/lazercmd.h
index 2bce59d0909..a01107007f5 100644
--- a/src/mame/includes/lazercmd.h
+++ b/src/mame/includes/lazercmd.h
@@ -28,7 +28,8 @@ public:
m_maincpu(*this, "maincpu"),
m_dac(*this, "dac"),
m_videoram(*this, "videoram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* device */
@@ -38,6 +39,7 @@ public:
required_shared_ptr<UINT8> m_videoram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* video-related */
UINT8 m_marker_x;
diff --git a/src/mame/includes/legionna.h b/src/mame/includes/legionna.h
index b3e1c80fb56..e1a9cffe0fc 100644
--- a/src/mame/includes/legionna.h
+++ b/src/mame/includes/legionna.h
@@ -13,7 +13,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_back_data;
@@ -64,6 +65,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in video/legionna.c -----------*/
diff --git a/src/mame/includes/leland.h b/src/mame/includes/leland.h
index 4f4ba172608..e799e99acc6 100644
--- a/src/mame/includes/leland.h
+++ b/src/mame/includes/leland.h
@@ -34,7 +34,9 @@ public:
m_eeprom(*this, "eeprom"),
m_sound(*this, "custom"),
m_dac0(*this, "dac0"),
- m_dac1(*this, "dac1") { }
+ m_dac1(*this, "dac1"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_master;
required_device<cpu_device> m_slave;
@@ -42,6 +44,8 @@ public:
optional_device<leland_80186_sound_device> m_sound;
optional_device<dac_device> m_dac0;
optional_device<dac_device> m_dac1;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_dac_control;
UINT8 *m_alleymas_kludge_mem;
diff --git a/src/mame/includes/lemmings.h b/src/mame/includes/lemmings.h
index 819468f54a1..04068f1adc2 100644
--- a/src/mame/includes/lemmings.h
+++ b/src/mame/includes/lemmings.h
@@ -20,7 +20,8 @@ public:
m_sprgen(*this, "spritegen"),
m_sprgen2(*this, "spritegen2"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* video-related */
bitmap_ind16 m_bitmap0;
@@ -58,6 +59,7 @@ public:
void lemmings_copy_bitmap(bitmap_rgb32& bitmap, bitmap_ind16& srcbitmap, int* xscroll, int* yscroll, const rectangle& cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER( lem_protection_region_0_146_r );
DECLARE_WRITE16_MEMBER( lem_protection_region_0_146_w );
diff --git a/src/mame/includes/lethal.h b/src/mame/includes/lethal.h
index bff70da51cc..2e05c952d17 100644
--- a/src/mame/includes/lethal.h
+++ b/src/mame/includes/lethal.h
@@ -20,7 +20,8 @@ public:
m_soundcpu(*this, "soundcpu"),
m_bank4800(*this, "bank4800"),
m_k056832(*this, "k056832"),
- m_k053244(*this, "k053244") { }
+ m_k053244(*this, "k053244"),
+ m_palette(*this, "palette") { }
/* video-related */
int m_layer_colorbase[4];
@@ -35,6 +36,7 @@ public:
required_device<address_map_bank_device> m_bank4800;
required_device<k056832_device> m_k056832;
required_device<k05324x_device> m_k053244;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(control2_w);
DECLARE_WRITE8_MEMBER(sound_cmd_w);
diff --git a/src/mame/includes/lethalj.h b/src/mame/includes/lethalj.h
index 09b6e02d24c..53691e9e618 100644
--- a/src/mame/includes/lethalj.h
+++ b/src/mame/includes/lethalj.h
@@ -16,7 +16,8 @@ public:
lethalj_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") { }
UINT16 m_blitter_data[8];
UINT16 *m_screenram;
@@ -39,6 +40,7 @@ public:
virtual void video_start();
inline void get_crosshair_xy(int player, int *x, int *y);
required_device<cpu_device> m_maincpu;
+ 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/includes/liberate.h b/src/mame/includes/liberate.h
index f994acb8706..cfb66011060 100644
--- a/src/mame/includes/liberate.h
+++ b/src/mame/includes/liberate.h
@@ -11,7 +11,8 @@ public:
m_scratchram(*this, "scratchram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT8> m_paletteram;
optional_shared_ptr<UINT8> m_bg_vram; /* prosport */
@@ -35,7 +36,8 @@ 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_READ8_MEMBER(deco16_bank_r);
DECLARE_READ8_MEMBER(deco16_io_r);
DECLARE_WRITE8_MEMBER(deco16_bank_w);
diff --git a/src/mame/includes/lkage.h b/src/mame/includes/lkage.h
index 9aea7efb847..c3503f8d0ad 100644
--- a/src/mame/includes/lkage.h
+++ b/src/mame/includes/lkage.h
@@ -11,7 +11,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_vreg;
required_shared_ptr<UINT8> m_scroll;
@@ -57,6 +58,7 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(lkage_sound_command_w);
DECLARE_WRITE8_MEMBER(lkage_sh_nmi_disable_w);
diff --git a/src/mame/includes/lockon.h b/src/mame/includes/lockon.h
index 28ca4497483..25be0a76614 100644
--- a/src/mame/includes/lockon.h
+++ b/src/mame/includes/lockon.h
@@ -37,7 +37,9 @@ public:
m_f2203_1r(*this, "f2203.1r"),
m_f2203_2r(*this, "f2203.2r"),
m_f2203_3r(*this, "f2203.3r"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_char_ram;
@@ -88,6 +90,8 @@ public:
required_device<filter_volume_device> m_f2203_2r;
required_device<filter_volume_device> m_f2203_3r;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER(lockon_crtc_r);
DECLARE_WRITE16_MEMBER(lockon_crtc_w);
diff --git a/src/mame/includes/lordgun.h b/src/mame/includes/lordgun.h
index c019d5b81d2..cbfdcdd785f 100644
--- a/src/mame/includes/lordgun.h
+++ b/src/mame/includes/lordgun.h
@@ -27,7 +27,9 @@ public:
m_soundcpu(*this, "soundcpu"),
m_oki(*this, "oki"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_priority_ram;
required_shared_ptr<UINT16> m_scrollram;
@@ -86,6 +88,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;
};
/*----------- defined in video/lordgun.c -----------*/
diff --git a/src/mame/includes/lsasquad.h b/src/mame/includes/lsasquad.h
index 02b4301cedf..38994db6380 100644
--- a/src/mame/includes/lsasquad.h
+++ b/src/mame/includes/lsasquad.h
@@ -10,7 +10,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -41,6 +42,7 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(lsasquad_bankswitch_w);
DECLARE_WRITE8_MEMBER(lsasquad_sh_nmi_disable_w);
diff --git a/src/mame/includes/lwings.h b/src/mame/includes/lwings.h
index d0d6fbf1573..0d3d088d2a8 100644
--- a/src/mame/includes/lwings.h
+++ b/src/mame/includes/lwings.h
@@ -12,7 +12,8 @@ public:
m_soundlatch2(*this, "soundlatch2"),
m_maincpu(*this, "maincpu"),
m_msm(*this, "5205"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_device<buffered_spriteram8_device> m_spriteram;
@@ -73,4 +74,5 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/m10.h b/src/mame/includes/m10.h
index f79039f1c61..d636bf23d35 100644
--- a/src/mame/includes/m10.h
+++ b/src/mame/includes/m10.h
@@ -45,7 +45,9 @@ public:
m_chargen(*this, "chargen"),
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_memory;
@@ -74,6 +76,8 @@ public:
device_t *m_ic8j2;
required_device<samples_device> m_samples;
optional_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(m10_ctrl_w);
DECLARE_WRITE8_MEMBER(m11_ctrl_w);
diff --git a/src/mame/includes/m107.h b/src/mame/includes/m107.h
index 88077033607..fef19619426 100644
--- a/src/mame/includes/m107.h
+++ b/src/mame/includes/m107.h
@@ -21,14 +21,18 @@ public:
m_vram_data(*this, "vram_data"),
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_vram_data;
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_soundcpu;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT8 m_irq_vectorbase;
int m_sound_status;
UINT8 m_spritesystem;
diff --git a/src/mame/includes/m52.h b/src/mame/includes/m52.h
index b0496171f98..c406ee2187b 100644
--- a/src/mame/includes/m52.h
+++ b/src/mame/includes/m52.h
@@ -7,7 +7,9 @@ public:
m_colorram(*this, "colorram"),
m_spriteram(*this, "spriteram"),
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_videoram;
@@ -40,4 +42,6 @@ public:
void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect, int xpos, int ypos, int image);
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/includes/m57.h b/src/mame/includes/m57.h
index 06c73d13dad..e6177ea0efd 100644
--- a/src/mame/includes/m57.h
+++ b/src/mame/includes/m57.h
@@ -7,7 +7,8 @@ public:
m_scrollram(*this, "scrollram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -27,4 +28,5 @@ 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/includes/m58.h b/src/mame/includes/m58.h
index 14b0236e31b..83b9d2a92f9 100644
--- a/src/mame/includes/m58.h
+++ b/src/mame/includes/m58.h
@@ -10,7 +10,9 @@ public:
m_yard_scroll_y_low(*this, "scroll_y_low"),
m_yard_score_panel_disabled(*this, "score_disable"),
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_videoram;
@@ -37,4 +39,6 @@ public:
void draw_panel( 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/includes/m62.h b/src/mame/includes/m62.h
index df7efc6cc5d..33cc0b1cb47 100644
--- a/src/mame/includes/m62.h
+++ b/src/mame/includes/m62.h
@@ -8,7 +8,8 @@ public:
m_m62_textram(*this, "m62_textram"),
m_scrollram(*this, "scrollram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -115,4 +116,5 @@ public:
void m62_textlayer( tilemap_get_info_delegate tile_get_info, int rows, int cols, int x1, int y1, int x2, int y2 );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/m72.h b/src/mame/includes/m72.h
index 89b0aff4138..1ebf48ba5ac 100644
--- a/src/mame/includes/m72.h
+++ b/src/mame/includes/m72.h
@@ -22,7 +22,9 @@ public:
m_mcu(*this, "mcu"),
m_dac(*this, "dac"),
m_audio(*this, "m72"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_videoram1;
@@ -37,6 +39,8 @@ public:
optional_device<dac_device> m_dac;
optional_device<m72_audio_device> m_audio;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT16 *m_protection_ram;
emu_timer *m_scanline_timer;
diff --git a/src/mame/includes/m90.h b/src/mame/includes/m90.h
index 7bb0c3e7a90..9ac7d7d9505 100644
--- a/src/mame/includes/m90.h
+++ b/src/mame/includes/m90.h
@@ -10,7 +10,8 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_audio(*this, "m72"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_video_data;
optional_shared_ptr<UINT16> m_spriteram;
@@ -19,6 +20,7 @@ public:
required_device<cpu_device> m_soundcpu;
optional_device<m72_audio_device> m_audio;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT16 m_video_control_data[8];
tilemap_t *m_pf1_layer;
diff --git a/src/mame/includes/m92.h b/src/mame/includes/m92.h
index 6a059fd0a54..ebe38bd575e 100644
--- a/src/mame/includes/m92.h
+++ b/src/mame/includes/m92.h
@@ -31,7 +31,9 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<buffered_spriteram16_device> m_spriteram;
@@ -41,7 +43,9 @@ public:
optional_device<cpu_device> m_soundcpu;
optional_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT16 m_sound_status;
UINT8 m_irq_vectorbase;
UINT32 m_raster_irq_position;
diff --git a/src/mame/includes/macrossp.h b/src/mame/includes/macrossp.h
index 095db36bcae..1a7b6879279 100644
--- a/src/mame/includes/macrossp.h
+++ b/src/mame/includes/macrossp.h
@@ -30,7 +30,8 @@ public:
m_mainram(*this, "mainram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -69,6 +70,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_WRITE32_MEMBER(paletteram32_macrossp_w);
DECLARE_READ32_MEMBER(macrossp_soundstatus_r);
diff --git a/src/mame/includes/madalien.h b/src/mame/includes/madalien.h
index 6a071b5c920..4ce0ed486d2 100644
--- a/src/mame/includes/madalien.h
+++ b/src/mame/includes/madalien.h
@@ -30,7 +30,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
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_charram;
@@ -76,6 +77,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in video/madalien.c -----------*/
diff --git a/src/mame/includes/magmax.h b/src/mame/includes/magmax.h
index f8f8d555355..a690727eaf9 100644
--- a/src/mame/includes/magmax.h
+++ b/src/mame/includes/magmax.h
@@ -10,7 +10,9 @@ public:
m_scroll_y(*this, "scroll_y"),
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_shared_ptr<UINT16> m_videoram;
required_shared_ptr<UINT16> m_spriteram;
@@ -41,4 +43,6 @@ 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/includes/mainsnk.h b/src/mame/includes/mainsnk.h
index cdde76db0be..40cffa04322 100644
--- a/src/mame/includes/mainsnk.h
+++ b/src/mame/includes/mainsnk.h
@@ -8,7 +8,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") { }
tilemap_t *m_tx_tilemap;
tilemap_t *m_bg_tilemap;
@@ -35,4 +36,5 @@ 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/includes/malzak.h b/src/mame/includes/malzak.h
index 51648bc8d47..48bbd1c5e97 100644
--- a/src/mame/includes/malzak.h
+++ b/src/mame/includes/malzak.h
@@ -17,7 +17,9 @@ public:
m_s2636_1(*this, "s2636_1"),
m_trom(*this, "saa5050"),
m_videoram(*this, "videoram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<s2636_device> m_s2636_0;
@@ -25,7 +27,8 @@ public:
required_device<saa5050_device> m_trom;
required_shared_ptr<UINT8> m_videoram;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
/* misc */
// int playfield_x[256];
// int playfield_y[256];
diff --git a/src/mame/includes/mappy.h b/src/mame/includes/mappy.h
index f59d2714b59..6089bff0b62 100644
--- a/src/mame/includes/mappy.h
+++ b/src/mame/includes/mappy.h
@@ -37,7 +37,9 @@ public:
m_subcpu2(*this, "sub2"),
m_namco_15xx(*this, "namco"),
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;
required_shared_ptr<UINT8> m_spriteram;
@@ -48,6 +50,8 @@ public:
required_device<namco_15xx_device> m_namco_15xx;
optional_device<dac_device> m_dac;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
namco56xx_device *m_namco56xx_1;
namco56xx_device *m_namco56xx_2;
diff --git a/src/mame/includes/marineb.h b/src/mame/includes/marineb.h
index 37a45045bc2..b1e6970c65f 100644
--- a/src/mame/includes/marineb.h
+++ b/src/mame/includes/marineb.h
@@ -8,7 +8,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;
@@ -27,6 +28,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_irq_mask;
DECLARE_WRITE8_MEMBER(irq_mask_w);
diff --git a/src/mame/includes/mario.h b/src/mame/includes/mario.h
index 3b57216f99b..5c8a54c4240 100644
--- a/src/mame/includes/mario.h
+++ b/src/mame/includes/mario.h
@@ -42,7 +42,8 @@ public:
m_discrete(*this, "discrete"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
@@ -101,6 +102,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;
};
/*----------- defined in audio/mario.c -----------*/
diff --git a/src/mame/includes/markham.h b/src/mame/includes/markham.h
index da840971d90..8d0ad58cec6 100644
--- a/src/mame/includes/markham.h
+++ b/src/mame/includes/markham.h
@@ -13,7 +13,8 @@ public:
m_videoram(*this, "videoram"),
m_xscroll(*this, "xscroll"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -32,4 +33,5 @@ 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/includes/matmania.h b/src/mame/includes/matmania.h
index 5bbce01e3f7..e9e2849e8de 100644
--- a/src/mame/includes/matmania.h
+++ b/src/mame/includes/matmania.h
@@ -17,7 +17,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -56,6 +58,8 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(matmania_sh_command_w);
DECLARE_WRITE8_MEMBER(maniach_sh_command_w);
diff --git a/src/mame/includes/mcatadv.h b/src/mame/includes/mcatadv.h
index 888e8651fbe..59b6f28465f 100644
--- a/src/mame/includes/mcatadv.h
+++ b/src/mame/includes/mcatadv.h
@@ -12,7 +12,8 @@ public:
m_vidregs(*this, "vidregs"),
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_videoram1;
@@ -35,6 +36,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;
DECLARE_WRITE16_MEMBER(mcat_soundlatch_w);
DECLARE_WRITE16_MEMBER(mcat_coin_w);
diff --git a/src/mame/includes/mcr.h b/src/mame/includes/mcr.h
index 7a5bcd0f7a6..7576a733a4a 100644
--- a/src/mame/includes/mcr.h
+++ b/src/mame/includes/mcr.h
@@ -35,7 +35,8 @@ public:
m_dpoker_coin_in_timer(*this, "dp_coinin"),
m_dpoker_hopper_timer(*this, "dp_hopper"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
// these should be required but can't because mcr68 shares with us
@@ -54,6 +55,7 @@ public:
optional_device<timer_device> m_dpoker_hopper_timer;
optional_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(mcr_control_port_w);
DECLARE_WRITE8_MEMBER(mcr_ipu_laserdisk_w);
diff --git a/src/mame/includes/mcr3.h b/src/mame/includes/mcr3.h
index 90a3645adfc..f04c58b4e74 100644
--- a/src/mame/includes/mcr3.h
+++ b/src/mame/includes/mcr3.h
@@ -5,7 +5,8 @@ class mcr3_state : public mcr_state
public:
mcr3_state(const machine_config &mconfig, device_type type, const char *tag)
: mcr_state(mconfig, type, tag),
- m_spyhunt_alpharam(*this, "spyhunt_alpha") { }
+ m_spyhunt_alpharam(*this, "spyhunt_alpha"),
+ m_screen(*this, "screen") { }
UINT8 m_input_mux;
UINT8 m_latched_input;
@@ -81,7 +82,5 @@ public:
DECLARE_WRITE8_MEMBER(spyhuntpr_a900_w);
DECLARE_WRITE8_MEMBER(spyhuntpr_port04_w);
DECLARE_WRITE8_MEMBER(spyhuntpr_fd00_w);
-
-
-
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/includes/mcr68.h b/src/mame/includes/mcr68.h
index d7b207440ad..fa356593f79 100644
--- a/src/mame/includes/mcr68.h
+++ b/src/mame/includes/mcr68.h
@@ -26,7 +26,9 @@ public:
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram") ,
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
optional_device<midway_chip_squeak_deluxe_device> m_chip_squeak_deluxe;
optional_device<midway_sounds_good_device> m_sounds_good;
@@ -124,4 +126,6 @@ public:
void mcr68_common_init(int clip, int xoffset);
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/includes/meadows.h b/src/mame/includes/meadows.h
index 2f8b5b6c5ea..ddae514e59d 100644
--- a/src/mame/includes/meadows.h
+++ b/src/mame/includes/meadows.h
@@ -19,7 +19,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_dac(*this, "dac"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
}
@@ -63,6 +65,8 @@ public:
optional_device<dac_device> m_dac;
optional_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/megadriv.h b/src/mame/includes/megadriv.h
index ec50e6061f5..07d4da6d3ff 100644
--- a/src/mame/includes/megadriv.h
+++ b/src/mame/includes/megadriv.h
@@ -198,7 +198,9 @@ public:
segac2_state(const machine_config &mconfig, device_type type, const char *tag)
: md_base_state(mconfig, type, tag),
m_paletteram(*this, "paletteram"),
- m_upd7759(*this, "upd") { }
+ m_upd7759(*this, "upd"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
// for Print Club only
int m_cam_data;
@@ -277,6 +279,9 @@ public:
DECLARE_READ16_MEMBER(ichirjbl_prot_r);
DECLARE_WRITE_LINE_MEMBER(segac2_irq2_interrupt);
optional_device<upd7759_device> m_upd7759;
+ optional_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
};
diff --git a/src/mame/includes/megasys1.h b/src/mame/includes/megasys1.h
index 3ec7570c18c..455cb5ffa08 100644
--- a/src/mame/includes/megasys1.h
+++ b/src/mame/includes/megasys1.h
@@ -37,7 +37,8 @@ public:
m_io_dsw(*this, "DSW"),
m_io_dsw1(*this, "DSW1"),
m_io_dsw2(*this, "DSW2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_vregs;
required_shared_ptr<UINT16> m_objectram;
@@ -56,6 +57,7 @@ public:
optional_ioport m_io_dsw1;
optional_ioport m_io_dsw2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT16 *m_spriteram;
UINT16 m_ip_select;
diff --git a/src/mame/includes/megazone.h b/src/mame/includes/megazone.h
index 45fc97c957f..d48f124d9a3 100644
--- a/src/mame/includes/megazone.h
+++ b/src/mame/includes/megazone.h
@@ -19,7 +19,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_daccpu(*this, "daccpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_scrolly;
@@ -42,6 +43,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<cpu_device> m_daccpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_irq_mask;
DECLARE_WRITE8_MEMBER(megazone_i8039_irq_w);
diff --git a/src/mame/includes/mermaid.h b/src/mame/includes/mermaid.h
index d0e3a6c6c4a..e9c724e0873 100644
--- a/src/mame/includes/mermaid.h
+++ b/src/mame/includes/mermaid.h
@@ -22,7 +22,9 @@ public:
m_adpcm(*this, "adpcm"),
m_ay1(*this, "ay1"),
m_ay2(*this, "ay2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
}
@@ -63,6 +65,8 @@ public:
required_device<ay8910_device> m_ay1;
required_device<ay8910_device> m_ay2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_nmi_mask;
DECLARE_WRITE8_MEMBER(mermaid_ay8910_write_port_w);
diff --git a/src/mame/includes/metlclsh.h b/src/mame/includes/metlclsh.h
index f6c3fb7c4b3..97eb26ca5c8 100644
--- a/src/mame/includes/metlclsh.h
+++ b/src/mame/includes/metlclsh.h
@@ -15,7 +15,8 @@ public:
m_scrollx(*this, "scrollx"),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_fgram;
@@ -36,6 +37,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;
DECLARE_WRITE8_MEMBER(metlclsh_cause_irq);
DECLARE_WRITE8_MEMBER(metlclsh_ack_nmi);
diff --git a/src/mame/includes/metro.h b/src/mame/includes/metro.h
index c9bc8aa5b0c..a56218e67f0 100644
--- a/src/mame/includes/metro.h
+++ b/src/mame/includes/metro.h
@@ -45,7 +45,9 @@ public:
m_input_sel(*this, "input_sel"),
m_k053936_ram(*this, "k053936_ram"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -76,7 +78,8 @@ public:
optional_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;
int m_flip_screen;
diff --git a/src/mame/includes/mexico86.h b/src/mame/includes/mexico86.h
index a0f71920aaf..08880887ba0 100644
--- a/src/mame/includes/mexico86.h
+++ b/src/mame/includes/mexico86.h
@@ -13,7 +13,8 @@ public:
m_subcpu(*this, "sub"),
m_mcu(*this, "mcu"),
m_ymsnd(*this, "ymsnd"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -47,6 +48,7 @@ public:
optional_device<cpu_device> m_mcu;
required_device<ym2203_device> m_ymsnd;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* queue */
UINT8 m_queue[64];
diff --git a/src/mame/includes/micro3d.h b/src/mame/includes/micro3d.h
index f310acee4ff..70f0516cd24 100644
--- a/src/mame/includes/micro3d.h
+++ b/src/mame/includes/micro3d.h
@@ -32,7 +32,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_upd7759(*this, "upd7759"),
m_drmath(*this, "drmath"),
- m_vgb(*this, "vgb") { }
+ m_vgb(*this, "vgb"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_shared_ram;
device_t *m_duart68681;
@@ -137,6 +138,7 @@ public:
required_device<upd7759_device> m_upd7759;
required_device<cpu_device> m_drmath;
required_device<cpu_device> m_vgb;
+ 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/includes/midtunit.h b/src/mame/includes/midtunit.h
index 4748d74efa0..83c1a57413a 100644
--- a/src/mame/includes/midtunit.h
+++ b/src/mame/includes/midtunit.h
@@ -21,7 +21,8 @@ public:
m_gfxrom(*this, "gfxrom"),
m_cvsd_sound(*this, "cvsd"),
m_adpcm_sound(*this, "adpcm") ,
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_nvram;
required_memory_region m_gfxrom;
@@ -72,6 +73,7 @@ public:
DECLARE_MACHINE_RESET(midtunit);
DECLARE_VIDEO_START(midtunit);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
void register_state_saving();
void init_tunit_generic(int sound);
void init_nbajam_common(int te_protection);
diff --git a/src/mame/includes/midvunit.h b/src/mame/includes/midvunit.h
index eb12c90d069..5320e194909 100644
--- a/src/mame/includes/midvunit.h
+++ b/src/mame/includes/midvunit.h
@@ -54,7 +54,9 @@ public:
m_midvplus_misc(*this, "midvplus_misc"),
m_videoram(*this, "videoram", 32),
m_textureram(*this, "textureram") ,
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT32> m_nvram;
required_shared_ptr<UINT32> m_ram_base;
@@ -131,6 +133,8 @@ public:
UINT32 screen_update_midvunit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
TIMER_CALLBACK_MEMBER(scanline_timer_cb);
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
+ 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/includes/midyunit.h b/src/mame/includes/midyunit.h
index f848c4591b2..b4a33e79694 100644
--- a/src/mame/includes/midyunit.h
+++ b/src/mame/includes/midyunit.h
@@ -46,7 +46,8 @@ public:
m_gfx_rom(*this, "gfx_rom", 16) ,
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki") { }
+ m_oki(*this, "oki"),
+ m_palette(*this, "palette") { }
optional_device<williams_narc_sound_device> m_narc_sound;
optional_device<williams_cvsd_sound_device> m_cvsd_sound;
@@ -122,7 +123,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
optional_device<okim6295_device> m_oki;
-
+ 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/includes/midzeus.h b/src/mame/includes/midzeus.h
index 37bc08a6f37..813c1d3a13f 100644
--- a/src/mame/includes/midzeus.h
+++ b/src/mame/includes/midzeus.h
@@ -21,7 +21,9 @@ public:
m_tms32031_control(*this, "tms32031_ctl"),
m_zeusbase(*this, "zeusbase") ,
m_m48t35(*this, "m48t35"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_nvram;
required_shared_ptr<UINT32> m_ram_base;
@@ -29,6 +31,9 @@ public:
required_shared_ptr<UINT32> m_tms32031_control;
required_shared_ptr<UINT32> m_zeusbase;
optional_device<timekeeper_device> m_m48t35;
+ required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
+ optional_device<palette_device> m_palette;
DECLARE_WRITE32_MEMBER(cmos_w);
DECLARE_READ32_MEMBER(cmos_r);
@@ -70,7 +75,6 @@ public:
TIMER_CALLBACK_MEMBER(invasn_gun_callback);
void exit_handler();
void exit_handler2();
- required_device<cpu_device> m_maincpu;
};
/*----------- defined in video/midzeus2.c -----------*/
diff --git a/src/mame/includes/mikie.h b/src/mame/includes/mikie.h
index 05fa6e167c9..c8afaccb4cc 100644
--- a/src/mame/includes/mikie.h
+++ b/src/mame/includes/mikie.h
@@ -14,7 +14,8 @@ public:
m_videoram(*this, "videoram"),
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_spriteram;
@@ -32,6 +33,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;
UINT8 m_irq_mask;
DECLARE_READ8_MEMBER(mikie_sh_timer_r);
diff --git a/src/mame/includes/mitchell.h b/src/mame/includes/mitchell.h
index e9f0af4016e..07828420069 100644
--- a/src/mame/includes/mitchell.h
+++ b/src/mame/includes/mitchell.h
@@ -22,7 +22,8 @@ public:
m_videoram(*this, "videoram"),
m_eeprom(*this, "eeprom"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
/* devices */
required_device<cpu_device> m_maincpu;
@@ -36,7 +37,8 @@ public:
optional_device<eeprom_serial_93cxx_device> m_eeprom;
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;
dynamic_array<UINT8> m_objram; /* Sprite RAM */
diff --git a/src/mame/includes/mjkjidai.h b/src/mame/includes/mjkjidai.h
index a3395f92bc7..4910237894c 100644
--- a/src/mame/includes/mjkjidai.h
+++ b/src/mame/includes/mjkjidai.h
@@ -14,7 +14,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_mjk_adpcm(*this, "adpcm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_nvram;
required_shared_ptr<UINT8> m_spriteram1;
@@ -25,6 +26,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<mjkjidai_adpcm_device> m_mjk_adpcm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_keyb;
int m_nvram_init_count;
diff --git a/src/mame/includes/model1.h b/src/mame/includes/model1.h
index bbe9715d6a7..65ed738437e 100644
--- a/src/mame/includes/model1.h
+++ b/src/mame/includes/model1.h
@@ -21,7 +21,8 @@ public:
m_display_list0(*this, "display_list0"),
m_display_list1(*this, "display_list1"),
m_color_xlat(*this, "color_xlat"),
- m_paletteram16(*this, "palette") { }
+ m_paletteram16(*this, "palette"),
+ m_palette(*this, "palette") { }
required_device<v60_device> m_maincpu; // V60
required_device<segam1audio_device> m_m1audio; // Model 1 standard sound board
@@ -97,6 +98,7 @@ public:
int m_render_done;
UINT16 *m_tgp_ram;
optional_shared_ptr<UINT16> m_paletteram16;
+ required_device<palette_device> m_palette;
UINT32 *m_poly_rom;
UINT32 *m_poly_ram;
UINT16 m_lamp_state;
diff --git a/src/mame/includes/model2.h b/src/mame/includes/model2.h
index b983c3d15a6..47a683498c3 100644
--- a/src/mame/includes/model2.h
+++ b/src/mame/includes/model2.h
@@ -29,7 +29,9 @@ public:
m_tgp(*this, "tgp"),
m_dsp(*this, "dsp"),
m_drivecpu(*this, "drivecpu"),
- m_eeprom(*this, "eeprom") { }
+ m_eeprom(*this, "eeprom"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_workram;
required_shared_ptr<UINT32> m_bufferram;
@@ -49,6 +51,8 @@ public:
optional_device<cpu_device> m_dsp;
optional_device<cpu_device> m_drivecpu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT32 m_intreq;
UINT32 m_intena;
diff --git a/src/mame/includes/model3.h b/src/mame/includes/model3.h
index dba663a754c..f0dae53c5c1 100644
--- a/src/mame/includes/model3.h
+++ b/src/mame/includes/model3.h
@@ -26,7 +26,8 @@ public:
m_dsbz80(*this, DSBZ80_TAG),
m_soundram(*this, "soundram"),
m_audiocpu(*this, "audiocpu"),
- m_eeprom(*this, "eeprom"){ }
+ m_eeprom(*this, "eeprom"),
+ m_screen(*this, "screen"){ }
required_device<cpu_device> m_maincpu;
optional_device<lsi53c810_device> m_lsi53c810;
@@ -210,6 +211,7 @@ public:
DECLARE_WRITE_LINE_MEMBER(scsp_irq);
required_device<cpu_device> m_audiocpu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/includes/momoko.h b/src/mame/includes/momoko.h
index 6506927c221..e44a36aa53d 100644
--- a/src/mame/includes/momoko.h
+++ b/src/mame/includes/momoko.h
@@ -14,7 +14,8 @@ public:
m_bg_scrolly(*this, "bg_scrolly"),
m_bg_scrollx(*this, "bg_scrollx"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -51,4 +52,5 @@ public:
void momoko_draw_bg_pri( bitmap_ind16 &bitmap, int chr, int col, int flipx, int flipy, int x, int y, int pri );
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/mouser.h b/src/mame/includes/mouser.h
index 9a7afbcad33..73e7773b3fd 100644
--- a/src/mame/includes/mouser.h
+++ b/src/mame/includes/mouser.h
@@ -14,7 +14,8 @@ public:
m_spriteram(*this, "spriteram"),
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_videoram;
@@ -29,6 +30,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(mouser_nmi_enable_w);
DECLARE_WRITE8_MEMBER(mouser_sound_interrupt_w);
diff --git a/src/mame/includes/mpu4.h b/src/mame/includes/mpu4.h
index e4453e688ad..9f682196501 100644
--- a/src/mame/includes/mpu4.h
+++ b/src/mame/includes/mpu4.h
@@ -112,7 +112,8 @@ public:
m_aux1_port(*this, "AUX1"),
m_aux2_port(*this, "AUX2"),
m_bank1(*this, "bank1"),
- m_msm6376(*this, "msm6376")
+ m_msm6376(*this, "msm6376"),
+ m_palette(*this, "palette")
{}
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
@@ -304,6 +305,7 @@ protected:
UINT8 m_numbanks;
mpu4_chr_table* m_current_chr_table;
const bwb_chr_table* m_bwb_chr_table1;
+ optional_device<palette_device> m_palette;
};
/* mpu4.c, used by mpu4vid.c */
diff --git a/src/mame/includes/mrdo.h b/src/mame/includes/mrdo.h
index a0d5d464b78..df47f4c971d 100644
--- a/src/mame/includes/mrdo.h
+++ b/src/mame/includes/mrdo.h
@@ -13,7 +13,8 @@ public:
m_fgvideoram(*this, "fgvideoram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_bgvideoram;
@@ -38,4 +39,5 @@ 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/includes/mrflea.h b/src/mame/includes/mrflea.h
index 9c8c1735cfb..6b04eeac27a 100644
--- a/src/mame/includes/mrflea.h
+++ b/src/mame/includes/mrflea.h
@@ -13,7 +13,9 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -33,6 +35,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(mrflea_main_w);
DECLARE_WRITE8_MEMBER(mrflea_io_w);
diff --git a/src/mame/includes/mrjong.h b/src/mame/includes/mrjong.h
index 83219d3f9ae..d885c3fc668 100644
--- a/src/mame/includes/mrjong.h
+++ b/src/mame/includes/mrjong.h
@@ -12,7 +12,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -31,4 +32,5 @@ 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/includes/ms32.h b/src/mame/includes/ms32.h
index a13057c0e3c..d0f88318242 100644
--- a/src/mame/includes/ms32.h
+++ b/src/mame/includes/ms32.h
@@ -18,7 +18,9 @@ public:
m_f1superb_extraram(*this, "f1sb_extraram", 32),
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_shared_ptr<UINT32> m_mainram;
required_shared_ptr<UINT32> m_roz_ctrl;
@@ -110,4 +112,6 @@ 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/includes/msisaac.h b/src/mame/includes/msisaac.h
index 9daafd96ad7..75d2987fd6a 100644
--- a/src/mame/includes/msisaac.h
+++ b/src/mame/includes/msisaac.h
@@ -16,7 +16,8 @@ public:
m_maincpu(*this, "maincpu"),
m_bmcu(*this, "bmcu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -54,6 +55,7 @@ public:
optional_device<buggychl_mcu_device> m_bmcu;
required_device<msm5232_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(sound_command_w);
DECLARE_WRITE8_MEMBER(nmi_disable_w);
diff --git a/src/mame/includes/mugsmash.h b/src/mame/includes/mugsmash.h
index 741729ff56b..65670cc0794 100644
--- a/src/mame/includes/mugsmash.h
+++ b/src/mame/includes/mugsmash.h
@@ -11,7 +11,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
required_shared_ptr<UINT16> m_videoram1;
required_shared_ptr<UINT16> m_videoram2;
@@ -25,6 +26,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_WRITE16_MEMBER(mugsmash_reg2_w);
DECLARE_READ16_MEMBER(mugsmash_input_ports_r);
diff --git a/src/mame/includes/multfish.h b/src/mame/includes/multfish.h
index 5601012b9ce..cccb5b0fc00 100644
--- a/src/mame/includes/multfish.h
+++ b/src/mame/includes/multfish.h
@@ -16,7 +16,9 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_m48t35(*this, "m48t35" ),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
}
@@ -85,6 +87,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<timekeeper_device> m_m48t35;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
#define mfish_parent mfish_13
diff --git a/src/mame/includes/munchmo.h b/src/mame/includes/munchmo.h
index b9a508c0728..446ffda735e 100644
--- a/src/mame/includes/munchmo.h
+++ b/src/mame/includes/munchmo.h
@@ -17,7 +17,8 @@ public:
m_vreg(*this, "vreg"),
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_sprite_xpos;
@@ -39,6 +40,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(mnchmobl_nmi_enable_w);
DECLARE_WRITE8_MEMBER(mnchmobl_soundlatch_w);
diff --git a/src/mame/includes/mustache.h b/src/mame/includes/mustache.h
index beccb063048..032ae100e28 100644
--- a/src/mame/includes/mustache.h
+++ b/src/mame/includes/mustache.h
@@ -9,7 +9,9 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_cpu_decrypt(*this, "seibu_sound"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
@@ -17,6 +19,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<seibu_sound_device> m_cpu_decrypt;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
tilemap_t *m_bg_tilemap;
int m_control_byte;
diff --git a/src/mame/includes/mw8080bw.h b/src/mame/includes/mw8080bw.h
index c2fa1516262..0766e44f7ac 100644
--- a/src/mame/includes/mw8080bw.h
+++ b/src/mame/includes/mw8080bw.h
@@ -48,7 +48,8 @@ public:
m_samples2(*this, "samples2"),
m_sn1(*this, "sn1"),
m_sn2(*this, "sn2"),
- m_sn(*this, "snsnd")
+ m_sn(*this, "snsnd"),
+ m_screen(*this, "screen")
{ }
/* device/memory pointers */
@@ -89,6 +90,7 @@ public:
optional_device<sn76477_device> m_sn1;
optional_device<sn76477_device> m_sn2;
optional_device<sn76477_device> m_sn;
+ required_device<screen_device> m_screen;
DECLARE_READ8_MEMBER(mw8080bw_shift_result_rev_r);
DECLARE_READ8_MEMBER(mw8080bw_reversable_shift_result_r);
diff --git a/src/mame/includes/mystston.h b/src/mame/includes/mystston.h
index 8339e758199..2081001b431 100644
--- a/src/mame/includes/mystston.h
+++ b/src/mame/includes/mystston.h
@@ -24,7 +24,9 @@ public:
m_scroll(*this, "scroll"),
m_video_control(*this, "video_control") ,
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* machine state */
required_shared_ptr<UINT8> m_ay8910_data;
@@ -55,6 +57,8 @@ public:
void mystston_on_scanline_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;
};
/*----------- defined in video/mystston.c -----------*/
diff --git a/src/mame/includes/n8080.h b/src/mame/includes/n8080.h
index ad14c85db28..a043aa63090 100644
--- a/src/mame/includes/n8080.h
+++ b/src/mame/includes/n8080.h
@@ -12,7 +12,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_dac(*this, "dac"),
- m_sn(*this, "snsnd") { }
+ m_sn(*this, "snsnd"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -50,6 +52,9 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<dac_device> m_dac;
optional_device<sn76477_device> m_sn;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
DECLARE_WRITE8_MEMBER(n8080_shift_bits_w);
DECLARE_WRITE8_MEMBER(n8080_shift_data_w);
DECLARE_READ8_MEMBER(n8080_shift_r);
diff --git a/src/mame/includes/namcona1.h b/src/mame/includes/namcona1.h
index 07b96abc01c..fd4061cc18f 100644
--- a/src/mame/includes/namcona1.h
+++ b/src/mame/includes/namcona1.h
@@ -37,7 +37,9 @@ public:
m_workram(*this,"workram"),
m_vreg(*this,"vreg"),
m_scroll(*this,"scroll"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -49,6 +51,8 @@ public:
required_shared_ptr<UINT16> m_vreg;
required_shared_ptr<UINT16> m_scroll;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT16 *m_mpBank0;
UINT16 *m_mpBank1;
diff --git a/src/mame/includes/namcos1.h b/src/mame/includes/namcos1.h
index b0995e7867e..d7a5a0990d9 100644
--- a/src/mame/includes/namcos1.h
+++ b/src/mame/includes/namcos1.h
@@ -23,7 +23,8 @@ public:
m_mcu(*this, "mcu"),
m_cus30(*this, "namco"),
m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
@@ -32,6 +33,8 @@ public:
required_device<namco_cus30_device> m_cus30;
required_device<dac_device> m_dac;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
+
int m_dac0_value;
int m_dac1_value;
int m_dac0_gain;
diff --git a/src/mame/includes/namcos2.h b/src/mame/includes/namcos2.h
index 682a1864018..bc086e83759 100644
--- a/src/mame/includes/namcos2.h
+++ b/src/mame/includes/namcos2.h
@@ -108,7 +108,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_slave(*this, "slave"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
optional_device<cpu_device> m_dspmaster;
optional_device<cpu_device> m_dspslave;
@@ -223,6 +225,8 @@ public:
optional_device<cpu_device> m_slave;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ optional_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
class namcos2_state : public namcos2_shared_state
diff --git a/src/mame/includes/namcos22.h b/src/mame/includes/namcos22.h
index d2bd198681c..57fe600398d 100644
--- a/src/mame/includes/namcos22.h
+++ b/src/mame/includes/namcos22.h
@@ -197,7 +197,9 @@ public:
m_czram(*this, "czram"),
m_motor_timer(*this, "motor_timer"),
m_pc_pedal_interrupt(*this, "pc_p_int"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -224,6 +226,9 @@ public:
optional_device<timer_device> m_motor_timer;
optional_device<timer_device> m_pc_pedal_interrupt;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT8 m_syscontrol[0x20];
bool m_dsp_irq_enabled;
diff --git a/src/mame/includes/namcos86.h b/src/mame/includes/namcos86.h
index ba955f7029c..7f041cd951f 100644
--- a/src/mame/includes/namcos86.h
+++ b/src/mame/includes/namcos86.h
@@ -11,7 +11,8 @@ public:
m_cpu1(*this, "cpu1"),
m_cpu2(*this, "cpu2"),
m_cus30(*this, "namco"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 *m_spriteram;
int m_wdog;
@@ -22,6 +23,7 @@ public:
required_device<cpu_device> m_cpu2;
required_device<namco_cus30_device> m_cus30;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_tilebank;
int m_xscroll[4];
int m_yscroll[4];
diff --git a/src/mame/includes/naughtyb.h b/src/mame/includes/naughtyb.h
index 6a73350db04..8c37babd5db 100644
--- a/src/mame/includes/naughtyb.h
+++ b/src/mame/includes/naughtyb.h
@@ -11,7 +11,9 @@ public:
m_maincpu(*this, "maincpu"),
m_naughtyb_custom(*this, "naughtyb_custom"),
m_popflame_custom(*this, "popflame_custom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_videoram2;
@@ -20,6 +22,9 @@ public:
optional_device<naughtyb_sound_device> m_naughtyb_custom;
optional_device<popflame_sound_device> m_popflame_custom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT8 m_popflame_prot_seed;
int m_r_index;
diff --git a/src/mame/includes/nbmj8891.h b/src/mame/includes/nbmj8891.h
index 74de22dd875..76345b42fb8 100644
--- a/src/mame/includes/nbmj8891.h
+++ b/src/mame/includes/nbmj8891.h
@@ -11,10 +11,14 @@ public:
nbmj8891_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_maincpu(*this, "maincpu"),
- m_nb1413m3(*this, "nb1413m3") { }
+ m_nb1413m3(*this, "nb1413m3"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<nb1413m3_device> m_nb1413m3;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int m_scrolly;
int m_blitter_destx;
diff --git a/src/mame/includes/nbmj8900.h b/src/mame/includes/nbmj8900.h
index 485eaecb2ca..02ffd431548 100644
--- a/src/mame/includes/nbmj8900.h
+++ b/src/mame/includes/nbmj8900.h
@@ -11,10 +11,14 @@ public:
nbmj8900_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_maincpu(*this, "maincpu"),
- m_nb1413m3(*this, "nb1413m3") { }
+ m_nb1413m3(*this, "nb1413m3"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<nb1413m3_device> m_nb1413m3;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int m_scrolly;
int m_blitter_destx;
diff --git a/src/mame/includes/nbmj8991.h b/src/mame/includes/nbmj8991.h
index 37848296922..e751a3d18d2 100644
--- a/src/mame/includes/nbmj8991.h
+++ b/src/mame/includes/nbmj8991.h
@@ -7,11 +7,15 @@ public:
: driver_device(mconfig, type, tag) ,
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_nb1413m3(*this, "nb1413m3") { }
+ m_nb1413m3(*this, "nb1413m3"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
required_device<nb1413m3_device> m_nb1413m3;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int m_scrollx;
int m_scrolly;
diff --git a/src/mame/includes/nbmj9195.h b/src/mame/includes/nbmj9195.h
index df1886c9686..fa147f812b4 100644
--- a/src/mame/includes/nbmj9195.h
+++ b/src/mame/includes/nbmj9195.h
@@ -18,7 +18,9 @@ public:
: driver_device(mconfig, type, tag) ,
m_maincpu(*this, "maincpu"),
m_dac1(*this, "dac1"),
- m_dac2(*this, "dac2") { }
+ m_dac2(*this, "dac2"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_inputport;
int m_dipswbitsel;
@@ -137,6 +139,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<dac_device> m_dac1;
required_device<dac_device> m_dac2;
+ required_device<screen_device> m_screen;
+ 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/includes/nemesis.h b/src/mame/includes/nemesis.h
index 3c18af5390b..d6c6098387c 100644
--- a/src/mame/includes/nemesis.h
+++ b/src/mame/includes/nemesis.h
@@ -30,7 +30,9 @@ public:
m_k007232(*this, "k007232"),
m_k005289(*this, "k005289"),
m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_charram;
@@ -76,6 +78,8 @@ public:
optional_device<k005289_device> m_k005289;
optional_device<vlm5030_device> m_vlm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(gx400_irq1_enable_word_w);
DECLARE_WRITE16_MEMBER(gx400_irq2_enable_word_w);
diff --git a/src/mame/includes/neogeo.h b/src/mame/includes/neogeo.h
index 8355656448e..11aa8e50692 100644
--- a/src/mame/includes/neogeo.h
+++ b/src/mame/includes/neogeo.h
@@ -38,7 +38,9 @@ public:
m_bank_cartridge(*this, "cartridge"),
m_bank_audio_main(*this, "audio_main"),
m_upd4990a(*this, "upd4990a"),
- m_save_ram(*this, "saveram") { }
+ m_save_ram(*this, "saveram"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
DECLARE_WRITE16_MEMBER(io_control_w);
DECLARE_READ16_MEMBER(memcard_r);
@@ -333,6 +335,9 @@ protected:
optional_device<upd4990a_old_device> m_upd4990a;
optional_shared_ptr<UINT16> m_save_ram;
+ required_device<screen_device> m_screen;
+ optional_device<palette_device> m_palette;
+
// configuration
enum {NEOGEO_MVS, NEOGEO_AES, NEOGEO_CD} m_type;
diff --git a/src/mame/includes/ninjakd2.h b/src/mame/includes/ninjakd2.h
index cc130ca418e..4f18b79830f 100644
--- a/src/mame/includes/ninjakd2.h
+++ b/src/mame/includes/ninjakd2.h
@@ -14,7 +14,9 @@ public:
m_bg_videoram(*this, "bg_videoram"),
m_fg_videoram(*this, "fg_videoram"),
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;
@@ -23,6 +25,8 @@ public:
required_shared_ptr<UINT8> m_fg_videoram;
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
const INT16* m_sampledata;
UINT8 m_omegaf_io_protection[3];
diff --git a/src/mame/includes/ninjaw.h b/src/mame/includes/ninjaw.h
index 0f1f277ca50..984a1797f3f 100644
--- a/src/mame/includes/ninjaw.h
+++ b/src/mame/includes/ninjaw.h
@@ -32,7 +32,8 @@ public:
m_2610_1r(*this, "2610.1.r"),
m_2610_2l(*this, "2610.2.l"),
m_2610_2r(*this, "2610.2.r"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -59,6 +60,7 @@ public:
required_device<filter_volume_device> m_2610_2l;
required_device<filter_volume_device> m_2610_2r;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(cpua_ctrl_w);
DECLARE_WRITE8_MEMBER(sound_bankswitch_w);
diff --git a/src/mame/includes/nitedrvr.h b/src/mame/includes/nitedrvr.h
index d00dda9e279..f7a0489581c 100644
--- a/src/mame/includes/nitedrvr.h
+++ b/src/mame/includes/nitedrvr.h
@@ -24,7 +24,8 @@ public:
m_hvc(*this, "hvc"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -48,6 +49,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(nitedrvr_steering_reset_r);
DECLARE_WRITE8_MEMBER(nitedrvr_steering_reset_w);
diff --git a/src/mame/includes/niyanpai.h b/src/mame/includes/niyanpai.h
index 64f845363da..cd89194ca86 100644
--- a/src/mame/includes/niyanpai.h
+++ b/src/mame/includes/niyanpai.h
@@ -15,7 +15,9 @@ public:
m_maincpu(*this, "maincpu"),
m_tmp68301(*this, "tmp68301"),
m_dac1(*this, "dac1"),
- m_dac2(*this, "dac2") { }
+ m_dac2(*this, "dac2"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_musobana_inputport;
int m_musobana_outcoin_flag;
@@ -106,6 +108,8 @@ public:
required_device<tmp68301_device> m_tmp68301;
required_device<dac_device> m_dac1;
required_device<dac_device> m_dac2;
+ required_device<screen_device> m_screen;
+ 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/includes/nmk16.h b/src/mame/includes/nmk16.h
index b3dbf6c369d..0d8fd5b39f9 100644
--- a/src/mame/includes/nmk16.h
+++ b/src/mame/includes/nmk16.h
@@ -23,7 +23,8 @@ public:
m_nmk_bgvideoram3(*this, "nmk_bgvideoram3"),
m_afega_scroll_0(*this, "afega_scroll_0"),
m_afega_scroll_1(*this, "afega_scroll_1"),
- m_gfxdecode(*this, "gfxdecode") {}
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") {}
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
@@ -43,6 +44,7 @@ public:
optional_shared_ptr<UINT16> m_afega_scroll_0;
optional_shared_ptr<UINT16> m_afega_scroll_1;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int mask[4*2];
int m_simple_scroll;
int m_redraw_bitmap;
diff --git a/src/mame/includes/norautp.h b/src/mame/includes/norautp.h
index af904ea713e..4012649651a 100644
--- a/src/mame/includes/norautp.h
+++ b/src/mame/includes/norautp.h
@@ -13,7 +13,8 @@ public:
: driver_device(mconfig, type, tag) ,
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT16 *m_np_vram;
UINT16 m_np_addr;
@@ -34,6 +35,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in audio/norautp.c -----------*/
diff --git a/src/mame/includes/nova2001.h b/src/mame/includes/nova2001.h
index 0ca8c76b3c4..e0a7203e74e 100644
--- a/src/mame/includes/nova2001.h
+++ b/src/mame/includes/nova2001.h
@@ -7,7 +7,8 @@ public:
m_bg_videoram(*this, "bg_videoram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_ninjakun_io_a002_ctrl;
optional_shared_ptr<UINT8> m_fg_videoram;
@@ -51,4 +52,5 @@ public:
void lineswap_gfx_roms(const char *region, const int bit);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/nycaptor.h b/src/mame/includes/nycaptor.h
index 8d6ac767498..10edca6b253 100644
--- a/src/mame/includes/nycaptor.h
+++ b/src/mame/includes/nycaptor.h
@@ -14,7 +14,8 @@ public:
m_subcpu(*this, "sub"),
m_mcu(*this, "mcu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -61,6 +62,7 @@ public:
optional_device<cpu_device> m_mcu;
required_device<msm5232_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(sub_cpu_halt_w);
DECLARE_READ8_MEMBER(from_snd_r);
diff --git a/src/mame/includes/ohmygod.h b/src/mame/includes/ohmygod.h
index 0565ba1c720..1630c37b693 100644
--- a/src/mame/includes/ohmygod.h
+++ b/src/mame/includes/ohmygod.h
@@ -12,7 +12,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") { }
/* memory pointers */
@@ -43,4 +44,5 @@ 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/includes/ojankohs.h b/src/mame/includes/ojankohs.h
index 7d1812df684..8ea66c65e75 100644
--- a/src/mame/includes/ojankohs.h
+++ b/src/mame/includes/ojankohs.h
@@ -15,7 +15,9 @@ public:
m_paletteram(*this, "paletteram"),
m_maincpu(*this, "maincpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
optional_shared_ptr<UINT8> m_videoram;
@@ -42,6 +44,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<msm5205_device> m_msm;
optional_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(ojankohs_rombank_w);
DECLARE_WRITE8_MEMBER(ojankoy_rombank_w);
diff --git a/src/mame/includes/oneshot.h b/src/mame/includes/oneshot.h
index 216144b0771..aa1f2df1a1e 100644
--- a/src/mame/includes/oneshot.h
+++ b/src/mame/includes/oneshot.h
@@ -13,7 +13,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_sprites;
@@ -61,4 +62,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/orbit.h b/src/mame/includes/orbit.h
index 069e0fc7785..29524a483e7 100644
--- a/src/mame/includes/orbit.h
+++ b/src/mame/includes/orbit.h
@@ -24,7 +24,9 @@ public:
m_sprite_ram(*this, "sprite_ram"),
m_discrete(*this, "discrete"),
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;
@@ -42,6 +44,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(orbit_misc_w);
DECLARE_WRITE8_MEMBER(orbit_playfield_w);
diff --git a/src/mame/includes/othunder.h b/src/mame/includes/othunder.h
index d92ba8afff9..1bdb06aaea9 100644
--- a/src/mame/includes/othunder.h
+++ b/src/mame/includes/othunder.h
@@ -47,7 +47,8 @@ public:
m_2610_1r(*this, "2610.1r"),
m_2610_2l(*this, "2610.2l"),
m_2610_2r(*this, "2610.2r"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -76,6 +77,7 @@ public:
required_device<filter_volume_device> m_2610_2l;
required_device<filter_volume_device> m_2610_2r;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(irq_ack_w);
DECLARE_WRITE16_MEMBER(othunder_tc0220ioc_w);
diff --git a/src/mame/includes/overdriv.h b/src/mame/includes/overdriv.h
index 27fa9d5bda9..76115bfcfc7 100644
--- a/src/mame/includes/overdriv.h
+++ b/src/mame/includes/overdriv.h
@@ -25,7 +25,8 @@ public:
m_k053246(*this, "k053246"),
m_k053251(*this, "k053251"),
m_k053252(*this, "k053252"),
- m_sprram(*this, "sprram")
+ m_sprram(*this, "sprram"),
+ m_screen(*this, "screen")
{ }
/* memory pointers */
@@ -51,6 +52,7 @@ public:
required_device<k053251_device> m_k053251;
required_device<k053252_device> m_k053252;
required_shared_ptr<UINT16> m_sprram;
+ required_device<screen_device> m_screen;
DECLARE_WRITE16_MEMBER(eeprom_w);
DECLARE_WRITE16_MEMBER(cpuA_ctrl_w);
DECLARE_READ16_MEMBER(cpuB_ctrl_r);
diff --git a/src/mame/includes/pacland.h b/src/mame/includes/pacland.h
index f335823ffc1..689bc5ddbef 100644
--- a/src/mame/includes/pacland.h
+++ b/src/mame/includes/pacland.h
@@ -11,7 +11,9 @@ public:
m_maincpu(*this, "maincpu"),
m_mcu(*this, "mcu"),
m_cus30(*this, "namco"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_videoram2;
@@ -20,6 +22,9 @@ public:
required_device<cpu_device> m_mcu;
required_device<namco_cus30_device> m_cus30;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT8 m_palette_bank;
const UINT8 *m_color_prom;
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/pacman.h b/src/mame/includes/pacman.h
index f8788e4a626..999a5222c22 100644
--- a/src/mame/includes/pacman.h
+++ b/src/mame/includes/pacman.h
@@ -20,7 +20,8 @@ public:
m_colorram(*this, "colorram"),
m_s2650games_tileram(*this, "s2650_tileram"),
m_rocktrv2_prot_data(*this, "rocktrv2_prot"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -33,6 +34,7 @@ public:
optional_shared_ptr<UINT8> m_s2650games_tileram;
optional_shared_ptr<UINT8> m_rocktrv2_prot_data;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_cannonb_bit_to_read;
int m_mystery;
diff --git a/src/mame/includes/pandoras.h b/src/mame/includes/pandoras.h
index e814b6ca7c0..64fe6d09d86 100644
--- a/src/mame/includes/pandoras.h
+++ b/src/mame/includes/pandoras.h
@@ -16,7 +16,8 @@ public:
m_subcpu(*this, "sub"),
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -39,6 +40,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(pandoras_int_control_w);
DECLARE_WRITE8_MEMBER(pandoras_cpua_irqtrigger_w);
diff --git a/src/mame/includes/paradise.h b/src/mame/includes/paradise.h
index 2d0ca852d9e..d0da0d1a501 100644
--- a/src/mame/includes/paradise.h
+++ b/src/mame/includes/paradise.h
@@ -13,7 +13,9 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_oki2(*this, "oki2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_vram_0;
@@ -64,4 +66,6 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<okim6295_device> m_oki2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/pastelg.h b/src/mame/includes/pastelg.h
index b88857398ea..0bcc7bf012e 100644
--- a/src/mame/includes/pastelg.h
+++ b/src/mame/includes/pastelg.h
@@ -11,10 +11,12 @@ public:
pastelg_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_maincpu(*this, "maincpu"),
- m_nb1413m3(*this, "nb1413m3") { }
+ m_nb1413m3(*this, "nb1413m3"),
+ m_screen(*this, "screen") { }
required_device<cpu_device> m_maincpu;
required_device<nb1413m3_device> m_nb1413m3;
+ required_device<screen_device> m_screen;
UINT8 m_mux_data;
int m_blitter_destx;
diff --git a/src/mame/includes/pbaction.h b/src/mame/includes/pbaction.h
index dc33f87bf05..ab815b38ff4 100644
--- a/src/mame/includes/pbaction.h
+++ b/src/mame/includes/pbaction.h
@@ -17,7 +17,8 @@ public:
m_spriteram(*this, "spriteram"),
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_videoram;
@@ -37,6 +38,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;
UINT8 m_nmi_mask;
DECLARE_WRITE8_MEMBER(pbaction_sh_command_w);
diff --git a/src/mame/includes/pcktgal.h b/src/mame/includes/pcktgal.h
index b1b2a2e5341..d5930e21634 100644
--- a/src/mame/includes/pcktgal.h
+++ b/src/mame/includes/pcktgal.h
@@ -11,7 +11,8 @@ public:
m_msm(*this, "msm"),
m_tilegen1(*this, "tilegen1"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
@@ -19,6 +20,7 @@ public:
required_device<deco_bac06_device> m_tilegen1;
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(pcktgal_bank_w);
DECLARE_WRITE8_MEMBER(pcktgal_sound_bank_w);
diff --git a/src/mame/includes/pgm.h b/src/mame/includes/pgm.h
index e012e794078..5decf899bf8 100644
--- a/src/mame/includes/pgm.h
+++ b/src/mame/includes/pgm.h
@@ -25,7 +25,8 @@ public:
m_mainram(*this, "sram"),
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
m_irq4_disabled = 0;
}
@@ -53,6 +54,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;
device_t *m_ics;
/* used by rendering */
diff --git a/src/mame/includes/pingpong.h b/src/mame/includes/pingpong.h
index 2f876a56cfb..21b24c74cef 100644
--- a/src/mame/includes/pingpong.h
+++ b/src/mame/includes/pingpong.h
@@ -7,7 +7,8 @@ public:
m_colorram(*this, "colorram"),
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_intenable;
int m_question_addr_high;
@@ -16,6 +17,7 @@ public:
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_bg_tilemap;
DECLARE_WRITE8_MEMBER(cashquiz_question_bank_high_w);
diff --git a/src/mame/includes/pirates.h b/src/mame/includes/pirates.h
index 6c67116540a..688868702a0 100644
--- a/src/mame/includes/pirates.h
+++ b/src/mame/includes/pirates.h
@@ -14,7 +14,8 @@ public:
m_maincpu(*this, "maincpu"),
m_eeprom(*this, "eeprom"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_scroll;
@@ -46,4 +47,5 @@ public:
required_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/pitnrun.h b/src/mame/includes/pitnrun.h
index f940c98a0db..744149f8abb 100644
--- a/src/mame/includes/pitnrun.h
+++ b/src/mame/includes/pitnrun.h
@@ -8,7 +8,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
int m_nmi;
@@ -65,4 +66,5 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/pktgaldx.h b/src/mame/includes/pktgaldx.h
index bbad21c0c80..f6d50aaa36a 100644
--- a/src/mame/includes/pktgaldx.h
+++ b/src/mame/includes/pktgaldx.h
@@ -25,7 +25,8 @@ public:
m_oki2(*this, "oki2"),
m_deco_tilegen1(*this, "tilegen1"),
m_decocomn(*this, "deco_common"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
optional_device<deco104_device> m_deco104;
@@ -45,6 +46,7 @@ public:
optional_device<deco16ic_device> m_deco_tilegen1;
optional_device<decocomn_device> m_decocomn;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER(pckgaldx_unknown_r);
DECLARE_READ16_MEMBER(pckgaldx_protection_r);
diff --git a/src/mame/includes/playmark.h b/src/mame/includes/playmark.h
index ca741499265..22b7a9f2d5e 100644
--- a/src/mame/includes/playmark.h
+++ b/src/mame/includes/playmark.h
@@ -17,7 +17,8 @@ public:
m_eeprom(*this, "eeprom"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
optional_shared_ptr<UINT16> m_bgvideoram;
@@ -110,4 +111,5 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<pic16c57_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/plygonet.h b/src/mame/includes/plygonet.h
index 3e6fb3750f5..fac776ee797 100644
--- a/src/mame/includes/plygonet.h
+++ b/src/mame/includes/plygonet.h
@@ -21,7 +21,8 @@ public:
m_shared_ram(*this, "shared_ram"),
m_dsp56k_p_mirror(*this, "dsp56k_p_mirror"),
m_dsp56k_p_8000(*this, "dsp56k_p_8000"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -36,6 +37,7 @@ public:
required_shared_ptr<UINT16> m_dsp56k_p_mirror;
required_shared_ptr<UINT16> m_dsp56k_p_8000;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
ioport_port *m_inputs[4];
UINT8 m_sys0;
UINT8 m_sys1;
diff --git a/src/mame/includes/pokechmp.h b/src/mame/includes/pokechmp.h
index f42e92c8738..9017c19530a 100644
--- a/src/mame/includes/pokechmp.h
+++ b/src/mame/includes/pokechmp.h
@@ -7,7 +7,8 @@ public:
m_spriteram(*this, "spriteram"),
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;
tilemap_t *m_bg_tilemap;
@@ -25,4 +26,5 @@ 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/includes/polepos.h b/src/mame/includes/polepos.h
index ada9246c13f..4d0017c5f54 100644
--- a/src/mame/includes/polepos.h
+++ b/src/mame/includes/polepos.h
@@ -24,7 +24,9 @@ public:
m_road16_memory(*this, "road16_memory"),
m_alpha16_memory(*this, "alpha16_memory"),
m_view16_memory(*this, "view16_memory"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
@@ -44,6 +46,9 @@ public:
required_shared_ptr<UINT16> m_alpha16_memory;
required_shared_ptr<UINT16> m_view16_memory;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+
UINT16 m_vertical_position_modifier[256];
UINT16 m_road16_vscroll;
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/policetr.h b/src/mame/includes/policetr.h
index 6bd56519232..960ae46b336 100644
--- a/src/mame/includes/policetr.h
+++ b/src/mame/includes/policetr.h
@@ -18,7 +18,9 @@ public:
: driver_device(mconfig, type, tag),
m_rambase(*this, "rambase"),
m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom") { }
+ m_eeprom(*this, "eeprom"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
UINT32 m_control_data;
UINT32 m_bsmt_data_bank;
@@ -60,7 +62,8 @@ public:
void render_display_list(offs_t offset);
required_device<cpu_device> m_maincpu;
required_device<eeprom_serial_93cxx_device> m_eeprom;
-
+ required_device<screen_device> m_screen;
+ 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/includes/polyplay.h b/src/mame/includes/polyplay.h
index 9a203e3bdf5..39d6d959b11 100644
--- a/src/mame/includes/polyplay.h
+++ b/src/mame/includes/polyplay.h
@@ -11,7 +11,8 @@ public:
m_characterram(*this, "characterram"),
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
int m_freq1;
@@ -42,6 +43,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/poolshrk.h b/src/mame/includes/poolshrk.h
index eecde5e605b..c521dafc36f 100644
--- a/src/mame/includes/poolshrk.h
+++ b/src/mame/includes/poolshrk.h
@@ -18,7 +18,8 @@ public:
m_vpos_ram(*this, "vpos_ram"),
m_discrete(*this, "discrete"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_da_latch;
required_shared_ptr<UINT8> m_playfield_ram;
@@ -42,6 +43,7 @@ public:
DECLARE_WRITE8_MEMBER(poolshrk_bump_sound_w);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/pooyan.h b/src/mame/includes/pooyan.h
index ea9c523f365..fb606a2c06c 100644
--- a/src/mame/includes/pooyan.h
+++ b/src/mame/includes/pooyan.h
@@ -8,7 +8,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_colorram;
@@ -26,6 +27,7 @@ public:
/* devices */
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(irq_enable_w);
DECLARE_WRITE8_MEMBER(pooyan_videoram_w);
diff --git a/src/mame/includes/popeye.h b/src/mame/includes/popeye.h
index 447f6fe1213..4cb344dbfdb 100644
--- a/src/mame/includes/popeye.h
+++ b/src/mame/includes/popeye.h
@@ -9,7 +9,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") { }
UINT8 m_prot0;
UINT8 m_prot1;
@@ -53,4 +54,5 @@ public:
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/popper.h b/src/mame/includes/popper.h
index e585c540326..bf15dbdb525 100644
--- a/src/mame/includes/popper.h
+++ b/src/mame/includes/popper.h
@@ -16,7 +16,9 @@ public:
m_spriteram(*this, "spriteram"),
m_audiocpu(*this, "audiocpu"),
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_ol_videoram;
@@ -62,4 +64,6 @@ public:
void draw_sprites( 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/includes/portrait.h b/src/mame/includes/portrait.h
index a0395ae367e..952e03b892d 100644
--- a/src/mame/includes/portrait.h
+++ b/src/mame/includes/portrait.h
@@ -10,7 +10,8 @@ public:
m_fgvideoram(*this, "fgvideoram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<tms5200_device> m_tms;
required_shared_ptr<UINT8> m_bgvideoram;
@@ -31,6 +32,7 @@ public:
UINT32 screen_update_portrait(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
inline void get_tile_info( tile_data &tileinfo, int tile_index, const UINT8 *source );
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
+ required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/powerins.h b/src/mame/includes/powerins.h
index b8f8a11a2c2..ff2b9cc433a 100644
--- a/src/mame/includes/powerins.h
+++ b/src/mame/includes/powerins.h
@@ -12,7 +12,9 @@ public:
m_vram_0(*this, "vram_0"),
m_vram_1(*this, "vram_1"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
@@ -24,6 +26,8 @@ public:
required_shared_ptr<UINT16> m_vram_1;
required_shared_ptr<UINT16> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT16 *m_vctrl_1;
tilemap_t *m_tilemap_0;
diff --git a/src/mame/includes/prehisle.h b/src/mame/includes/prehisle.h
index f8c39ada891..73810aeaae8 100644
--- a/src/mame/includes/prehisle.h
+++ b/src/mame/includes/prehisle.h
@@ -11,7 +11,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_upd7759(*this, "upd"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_videoram;
@@ -40,4 +41,5 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<upd7759_device> m_upd7759;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/psikyo.h b/src/mame/includes/psikyo.h
index 89deeedf83f..e02c21beba9 100644
--- a/src/mame/includes/psikyo.h
+++ b/src/mame/includes/psikyo.h
@@ -18,7 +18,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<UINT32> m_spriteram;
@@ -108,6 +110,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;
};
/*----------- defined in video/psikyo.c -----------*/
diff --git a/src/mame/includes/psikyo4.h b/src/mame/includes/psikyo4.h
index e70d59d6a23..d1e94798878 100644
--- a/src/mame/includes/psikyo4.h
+++ b/src/mame/includes/psikyo4.h
@@ -23,7 +23,8 @@ public:
m_eeprom(*this, "eeprom"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "lpalette"),
- m_palette2(*this, "rpalette")
+ m_palette2(*this, "rpalette"),
+ m_screen(*this, "screen")
{ }
/* memory pointers */
@@ -70,4 +71,5 @@ public:
required_device<palette_device> m_palette;
required_device<palette_device> m_palette2;
+ optional_device<screen_device> m_screen;
};
diff --git a/src/mame/includes/psikyosh.h b/src/mame/includes/psikyosh.h
index 97c6f1c66c7..ee39e6b5153 100644
--- a/src/mame/includes/psikyosh.h
+++ b/src/mame/includes/psikyosh.h
@@ -31,7 +31,9 @@ public:
m_ram(*this, "ram"),
m_maincpu(*this, "maincpu"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_device<buffered_spriteram32_device> m_spriteram;
@@ -52,6 +54,8 @@ public:
required_device<cpu_device> m_maincpu;
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;
DECLARE_WRITE32_MEMBER(psikyosh_irqctrl_w);
DECLARE_WRITE32_MEMBER(paletteram32_RRRRRRRRGGGGGGGGBBBBBBBBxxxxxxxx_dword_w);
diff --git a/src/mame/includes/psychic5.h b/src/mame/includes/psychic5.h
index ed6adadb235..ed97cb56c3b 100644
--- a/src/mame/includes/psychic5.h
+++ b/src/mame/includes/psychic5.h
@@ -6,7 +6,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_bank_latch;
UINT8 m_ps5_vram_page;
@@ -60,4 +61,5 @@ 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/includes/punchout.h b/src/mame/includes/punchout.h
index 2eedf1e58d5..2bfd57edc23 100644
--- a/src/mame/includes/punchout.h
+++ b/src/mame/includes/punchout.h
@@ -16,7 +16,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_rp5c01_mode_sel;
int m_rp5c01_mem[16*4];
@@ -33,6 +34,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<vlm5030_device> m_vlm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_bg_top_tilemap;
tilemap_t *m_bg_bot_tilemap;
diff --git a/src/mame/includes/pushman.h b/src/mame/includes/pushman.h
index a9332cd0d84..2dcec88f23e 100644
--- a/src/mame/includes/pushman.h
+++ b/src/mame/includes/pushman.h
@@ -14,7 +14,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -35,6 +36,7 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(pushman_flipscreen_w);
DECLARE_WRITE16_MEMBER(pushman_control_w);
diff --git a/src/mame/includes/qdrmfgp.h b/src/mame/includes/qdrmfgp.h
index ba2102c7603..2863c5eacc2 100644
--- a/src/mame/includes/qdrmfgp.h
+++ b/src/mame/includes/qdrmfgp.h
@@ -17,7 +17,8 @@ public:
m_k053252(*this, "k053252"),
m_ata(*this, "ata"),
m_inputs_port(*this, "INPUTS"),
- m_dsw_port(*this, "DSW")
+ m_dsw_port(*this, "DSW"),
+ m_palette(*this, "palette")
{
}
@@ -30,6 +31,7 @@ public:
required_device<ata_interface_device> m_ata;
required_ioport m_inputs_port;
required_ioport m_dsw_port;
+ required_device<palette_device> m_palette;
UINT8 *m_sndram;
UINT16 m_control;
diff --git a/src/mame/includes/qix.h b/src/mame/includes/qix.h
index af9f3a35ab7..47aee496e10 100644
--- a/src/mame/includes/qix.h
+++ b/src/mame/includes/qix.h
@@ -46,7 +46,8 @@ public:
m_videoram_mask(*this, "videoram_mask"),
m_scanline_latch(*this, "scanline_latch"),
m_bank0(*this, "bank0"),
- m_bank1(*this, "bank1") { }
+ m_bank1(*this, "bank1"),
+ m_screen(*this, "screen") { }
/* devices */
required_device<m6809_base_device> m_maincpu;
@@ -82,6 +83,8 @@ public:
optional_memory_bank m_bank0;
optional_memory_bank m_bank1;
+ required_device<screen_device> m_screen;
+
pen_t m_pens[0x400];
DECLARE_WRITE8_MEMBER(zookeep_bankswitch_w);
DECLARE_WRITE8_MEMBER(qix_data_firq_w);
diff --git a/src/mame/includes/quizdna.h b/src/mame/includes/quizdna.h
index f44977a2251..6ff9ece5519 100644
--- a/src/mame/includes/quizdna.h
+++ b/src/mame/includes/quizdna.h
@@ -5,7 +5,8 @@ public:
: driver_device(mconfig, type, tag),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 *m_bg_ram;
UINT8 *m_fg_ram;
@@ -30,4 +31,5 @@ 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/includes/raiden.h b/src/mame/includes/raiden.h
index 797c8167c0e..59e04362d4f 100644
--- a/src/mame/includes/raiden.h
+++ b/src/mame/includes/raiden.h
@@ -20,7 +20,8 @@ public:
m_scroll_ram(*this, "scroll_ram"),
m_back_data(*this, "back_data"),
m_fore_data(*this, "fore_data"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -32,6 +33,7 @@ public:
required_shared_ptr<UINT16> m_back_data;
required_shared_ptr<UINT16> m_fore_data;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_bg_layer;
tilemap_t *m_fg_layer;
diff --git a/src/mame/includes/raiden2.h b/src/mame/includes/raiden2.h
index 372a4db5af1..906ff73de6b 100644
--- a/src/mame/includes/raiden2.h
+++ b/src/mame/includes/raiden2.h
@@ -12,12 +12,14 @@ public:
sprites(*this, "sprites") ,
m_maincpu(*this, "maincpu"),
m_seibu_sound(*this, "seibu_sound"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> back_data,fore_data,mid_data, text_data, sprites;
required_device<cpu_device> m_maincpu;
required_device<seibu_sound_device> m_seibu_sound;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER( cop_itoa_low_w );
DECLARE_WRITE16_MEMBER( cop_itoa_high_w );
diff --git a/src/mame/includes/rainbow.h b/src/mame/includes/rainbow.h
index aa5c56c30b4..12f5add080f 100644
--- a/src/mame/includes/rainbow.h
+++ b/src/mame/includes/rainbow.h
@@ -17,7 +17,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_pc080sn(*this, "pc080sn"),
m_pc090oj(*this, "pc090oj"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
optional_shared_ptr<UINT16> m_spriteram;
@@ -41,6 +42,7 @@ public:
required_device<pc080sn_device> m_pc080sn;
optional_device<pc090oj_device> m_pc090oj;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(jumping_sound_w);
DECLARE_READ8_MEMBER(jumping_latch_r);
diff --git a/src/mame/includes/rallyx.h b/src/mame/includes/rallyx.h
index a6d13867709..54ec9be394c 100644
--- a/src/mame/includes/rallyx.h
+++ b/src/mame/includes/rallyx.h
@@ -20,7 +20,8 @@ public:
m_namco_sound(*this, "namco"),
m_samples(*this, "samples"),
m_timeplt_audio(*this, "timeplt_audio"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -48,6 +49,7 @@ public:
optional_device<samples_device> m_samples;
optional_device<timeplt_audio_device> m_timeplt_audio;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_main_irq_mask;
DECLARE_WRITE8_MEMBER(rallyx_interrupt_vector_w);
diff --git a/src/mame/includes/realbrk.h b/src/mame/includes/realbrk.h
index e90cd070b70..8b3ccec5cfd 100644
--- a/src/mame/includes/realbrk.h
+++ b/src/mame/includes/realbrk.h
@@ -16,7 +16,9 @@ public:
m_vram_1ras(*this, "vram_1ras"),
m_maincpu(*this, "maincpu"),
m_tmp68301(*this, "tmp68301"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_vram_0;
@@ -57,4 +59,6 @@ public:
required_device<cpu_device> m_maincpu;
required_device<tmp68301_device> m_tmp68301;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/redalert.h b/src/mame/includes/redalert.h
index 34f9d88a1fd..7c624f8c2fa 100644
--- a/src/mame/includes/redalert.h
+++ b/src/mame/includes/redalert.h
@@ -20,7 +20,8 @@ public:
m_bitmap_color(*this, "bitmap_color"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_cvsd(*this, "cvsd") { }
+ m_cvsd(*this, "cvsd"),
+ m_screen(*this, "screen") { }
UINT8 m_ay8910_latch_1;
UINT8 m_ay8910_latch_2;
@@ -33,6 +34,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
optional_device<hc55516_device> m_cvsd;
+ required_device<screen_device> m_screen;
UINT8 *m_bitmap_colorram;
UINT8 m_control_xor;
diff --git a/src/mame/includes/renegade.h b/src/mame/includes/renegade.h
index 30fc96a42fb..ba567fb60a7 100644
--- a/src/mame/includes/renegade.h
+++ b/src/mame/includes/renegade.h
@@ -15,7 +15,8 @@ public:
m_maincpu(*this,"maincpu"),
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_bank;
int m_mcu_sim;
@@ -86,6 +87,7 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
class renegade_adpcm_device : public device_t,
diff --git a/src/mame/includes/retofinv.h b/src/mame/includes/retofinv.h
index 2c00ad5a7a0..66310d14fa2 100644
--- a/src/mame/includes/retofinv.h
+++ b/src/mame/includes/retofinv.h
@@ -10,7 +10,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "sub"),
m_68705(*this, "68705"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_cpu2_m6000;
required_shared_ptr<UINT8> m_fg_videoram;
@@ -75,4 +76,5 @@ public:
required_device<cpu_device> m_subcpu;
optional_device<cpu_device> m_68705;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/rockrage.h b/src/mame/includes/rockrage.h
index be910eb56b5..34e4b0ff044 100644
--- a/src/mame/includes/rockrage.h
+++ b/src/mame/includes/rockrage.h
@@ -19,7 +19,8 @@ public:
m_k007342(*this, "k007342"),
m_k007420(*this, "k007420"),
m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_paletteram;
@@ -35,6 +36,7 @@ public:
required_device<k007420_device> m_k007420;
required_device<vlm5030_device> m_vlm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(rockrage_bankswitch_w);
DECLARE_WRITE8_MEMBER(rockrage_sh_irqtrigger_w);
diff --git a/src/mame/includes/rocnrope.h b/src/mame/includes/rocnrope.h
index c1b4e870137..24ca273ef6c 100644
--- a/src/mame/includes/rocnrope.h
+++ b/src/mame/includes/rocnrope.h
@@ -8,7 +8,8 @@ public:
m_colorram(*this, "colorram"),
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram2;
@@ -35,4 +36,5 @@ 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/includes/rohga.h b/src/mame/includes/rohga.h
index d0d9cc25163..330d4cf25bb 100644
--- a/src/mame/includes/rohga.h
+++ b/src/mame/includes/rohga.h
@@ -33,7 +33,8 @@ public:
m_pf3_rowscroll(*this, "pf3_rowscroll"),
m_pf4_rowscroll(*this, "pf4_rowscroll"),
m_sprgen1(*this, "spritegen1"),
- m_sprgen2(*this, "spritegen2")
+ m_sprgen2(*this, "spritegen2"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -57,6 +58,8 @@ public:
optional_device<decospr_device> m_sprgen1;
optional_device<decospr_device> m_sprgen2;
+
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER(rohga_irq_ack_r);
DECLARE_WRITE16_MEMBER(wizdfire_irq_ack_w);
diff --git a/src/mame/includes/rollrace.h b/src/mame/includes/rollrace.h
index 6acea3a0738..123ef1feb86 100644
--- a/src/mame/includes/rollrace.h
+++ b/src/mame/includes/rollrace.h
@@ -7,7 +7,8 @@ public:
m_colorram(*this, "colorram"),
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;
required_shared_ptr<UINT8> m_colorram;
@@ -41,4 +42,5 @@ public:
INTERRUPT_GEN_MEMBER(sound_timer_irq);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/rpunch.h b/src/mame/includes/rpunch.h
index 822904f5a08..b7e7a80898a 100644
--- a/src/mame/includes/rpunch.h
+++ b/src/mame/includes/rpunch.h
@@ -13,7 +13,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_upd7759(*this, "upd"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_videoram;
UINT8 m_sound_data;
@@ -57,4 +59,6 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<upd7759_device> m_upd7759;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/runaway.h b/src/mame/includes/runaway.h
index 5b8e85e8bbd..486775fac88 100644
--- a/src/mame/includes/runaway.h
+++ b/src/mame/includes/runaway.h
@@ -6,7 +6,9 @@ public:
m_video_ram(*this, "video_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") { }
emu_timer *m_interrupt_timer;
required_shared_ptr<UINT8> m_video_ram;
@@ -31,4 +33,6 @@ public:
TIMER_CALLBACK_MEMBER(interrupt_callback);
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/includes/rungun.h b/src/mame/includes/rungun.h
index ce9b75cd1eb..a19faa9c0da 100644
--- a/src/mame/includes/rungun.h
+++ b/src/mame/includes/rungun.h
@@ -23,7 +23,8 @@ public:
m_k053252(*this, "k053252"),
m_sysreg(*this, "sysreg"),
m_936_videoram(*this, "936_videoram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* devices */
required_device<cpu_device> m_maincpu;
@@ -39,6 +40,7 @@ public:
required_shared_ptr<UINT16> m_936_videoram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
// UINT16 * m_paletteram; // currently this uses generic palette handling
/* video-related */
diff --git a/src/mame/includes/sauro.h b/src/mame/includes/sauro.h
index 1ed9c6b86d4..2335322e59f 100644
--- a/src/mame/includes/sauro.h
+++ b/src/mame/includes/sauro.h
@@ -14,7 +14,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") { }
optional_device<sp0256_device> m_sp0256;
required_shared_ptr<UINT8> m_spriteram;
@@ -51,4 +52,5 @@ public:
void trckydoc_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/includes/sbasketb.h b/src/mame/includes/sbasketb.h
index 5aa457ae242..5b991e63be5 100644
--- a/src/mame/includes/sbasketb.h
+++ b/src/mame/includes/sbasketb.h
@@ -17,7 +17,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_sn(*this, "snsnd"),
m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_colorram;
@@ -33,6 +34,7 @@ public:
required_device<sn76489_device> m_sn;
required_device<vlm5030_device> m_vlm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* video-related */
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/scotrsht.h b/src/mame/includes/scotrsht.h
index fb936f03e89..1e9eed82831 100644
--- a/src/mame/includes/scotrsht.h
+++ b/src/mame/includes/scotrsht.h
@@ -9,7 +9,8 @@ public:
m_scroll(*this, "scroll"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_irq_enable;
required_shared_ptr<UINT8> m_colorram;
@@ -34,4 +35,5 @@ 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/includes/sderby.h b/src/mame/includes/sderby.h
index 50633cdc6db..c2531e80d99 100644
--- a/src/mame/includes/sderby.h
+++ b/src/mame/includes/sderby.h
@@ -8,7 +8,8 @@ public:
m_fg_videoram(*this, "fg_videoram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_videoram;
required_shared_ptr<UINT16> m_md_videoram;
@@ -41,4 +42,5 @@ public:
void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect,int codeshift);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/segag80r.h b/src/mame/includes/segag80r.h
index 3bb2262feab..4369a807d54 100644
--- a/src/mame/includes/segag80r.h
+++ b/src/mame/includes/segag80r.h
@@ -33,7 +33,9 @@ public:
m_speech(*this, "segaspeech"),
m_usbsnd(*this, "usbsnd"),
m_005snd(*this, "005"),
- 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_videoram;
@@ -47,6 +49,8 @@ public:
optional_device<usb_sound_device> m_usbsnd;
optional_device<sega005_sound_device> m_005snd;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_sound_state[2];
UINT8 m_sound_rate;
diff --git a/src/mame/includes/segag80v.h b/src/mame/includes/segag80v.h
index 56456a7b281..08828855406 100644
--- a/src/mame/includes/segag80v.h
+++ b/src/mame/includes/segag80v.h
@@ -21,7 +21,8 @@ public:
m_samples(*this, "samples"),
m_speech(*this, "segaspeech"),
m_usb(*this, "usbsnd"),
- m_vector(*this, "vector") { }
+ m_vector(*this, "vector"),
+ m_screen(*this, "screen"){ }
required_shared_ptr<UINT8> m_mainram;
required_shared_ptr<UINT8> m_vectorram;
@@ -31,6 +32,8 @@ public:
optional_device<speech_sound_device> m_speech;
optional_device<usb_sound_device> m_usb;
required_device<vector_device> m_vector;
+ required_device<screen_device> m_screen;
+
UINT8 m_mult_data[2];
UINT16 m_mult_result;
diff --git a/src/mame/includes/segas24.h b/src/mame/includes/segas24.h
index 912fa54cfb9..4476eb630d8 100644
--- a/src/mame/includes/segas24.h
+++ b/src/mame/includes/segas24.h
@@ -8,7 +8,9 @@ public:
: driver_device(mconfig, type, tag) ,
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "subcpu"),
- m_dac(*this, "dac") { }
+ m_dac(*this, "dac"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
static const UINT8 mahmajn_mlt[8];
@@ -125,4 +127,6 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
required_device<dac_device> m_dac;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/segas32.h b/src/mame/includes/segas32.h
index 329d86ad572..22316ade82b 100644
--- a/src/mame/includes/segas32.h
+++ b/src/mame/includes/segas32.h
@@ -25,7 +25,9 @@ public:
m_soundcpu(*this, "soundcpu"),
m_multipcm(*this, "sega"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_z80_shared_ram;
optional_shared_ptr<UINT8> m_ga2_dpram;
@@ -39,6 +41,8 @@ public:
optional_device<multipcm_device> m_multipcm;
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;
typedef void (segas32_state::*sys32_output_callback)(int which, UINT16 data);
diff --git a/src/mame/includes/seibuspi.h b/src/mame/includes/seibuspi.h
index d29e83786e4..3766bcfbe71 100644
--- a/src/mame/includes/seibuspi.h
+++ b/src/mame/includes/seibuspi.h
@@ -26,7 +26,8 @@ public:
m_soundfifo2(*this, "soundfifo2"),
m_oki1(*this, "oki1"),
m_oki2(*this, "oki2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -42,6 +43,7 @@ public:
optional_device<okim6295_device> m_oki1;
optional_device<okim6295_device> m_oki2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_z80_prg_transfer_pos;
int m_z80_lastbank;
diff --git a/src/mame/includes/seicross.h b/src/mame/includes/seicross.h
index 986240b6d70..97415048056 100644
--- a/src/mame/includes/seicross.h
+++ b/src/mame/includes/seicross.h
@@ -11,7 +11,8 @@ public:
m_nvram(*this, "nvram"),
m_maincpu(*this, "maincpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_spriteram;
required_shared_ptr<UINT8> m_videoram;
@@ -19,7 +20,7 @@ public:
required_shared_ptr<UINT8> m_spriteram2;
required_shared_ptr<UINT8> m_colorram;
optional_shared_ptr<UINT8> m_nvram;
-
+
UINT8 m_portb;
tilemap_t *m_bg_tilemap;
@@ -38,4 +39,5 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/senjyo.h b/src/mame/includes/senjyo.h
index d77d59c2d6d..40425d18759 100644
--- a/src/mame/includes/senjyo.h
+++ b/src/mame/includes/senjyo.h
@@ -25,7 +25,8 @@ public:
m_radarram(*this, "radarram"),
m_bgstripesram(*this, "bgstripesram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_int_delay_kludge;
UINT8 m_sound_cmd;
@@ -91,6 +92,7 @@ public:
void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect,int priority);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in audio/senjyo.c -----------*/
diff --git a/src/mame/includes/seta.h b/src/mame/includes/seta.h
index ab6817198d0..23a0c55d97e 100644
--- a/src/mame/includes/seta.h
+++ b/src/mame/includes/seta.h
@@ -47,7 +47,8 @@ public:
m_kiwame_nvram(*this,"kiwame_nvram"),
m_inttoote_key_select(*this,"inttoote_keysel"),
m_inttoote_700000(*this,"inttoote_700000"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
@@ -69,6 +70,7 @@ public:
optional_shared_ptr<UINT16> m_inttoote_700000;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_tiles_offset;
tilemap_t *m_tilemap_0;
diff --git a/src/mame/includes/seta2.h b/src/mame/includes/seta2.h
index 2b7d2961100..a2c2c5e92ae 100644
--- a/src/mame/includes/seta2.h
+++ b/src/mame/includes/seta2.h
@@ -18,7 +18,9 @@ public:
m_x1(*this, "x1snd"),
m_oki(*this, "oki"),
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_device<tmp68301_device> m_tmp68301;
@@ -34,6 +36,8 @@ public:
optional_device<okim9810_device> m_oki;
optional_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;
int m_xoffset;
int m_yoffset;
diff --git a/src/mame/includes/sf.h b/src/mame/includes/sf.h
index f3034a4e5d5..33929104666 100644
--- a/src/mame/includes/sf.h
+++ b/src/mame/includes/sf.h
@@ -16,7 +16,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_msm1(*this, "msm1"),
m_msm2(*this, "msm2"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
/* memory pointers */
required_shared_ptr<UINT16> m_videoram;
@@ -60,4 +61,5 @@ public:
required_device<msm5205_device> m_msm1;
required_device<msm5205_device> m_msm2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/shadfrce.h b/src/mame/includes/shadfrce.h
index e22b3013e78..9ac154bc107 100644
--- a/src/mame/includes/shadfrce.h
+++ b/src/mame/includes/shadfrce.h
@@ -12,7 +12,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
tilemap_t *m_fgtilemap;
tilemap_t *m_bg0tilemap;
@@ -56,4 +58,6 @@ public:
required_device<cpu_device> m_audiocpu;
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/includes/shangha3.h b/src/mame/includes/shangha3.h
index 2e821273a89..699e84b021a 100644
--- a/src/mame/includes/shangha3.h
+++ b/src/mame/includes/shangha3.h
@@ -9,7 +9,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_prot_count;
required_shared_ptr<UINT16> m_ram;
@@ -39,4 +41,6 @@ public:
optional_device<cpu_device> m_audiocpu;
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/includes/shangkid.h b/src/mame/includes/shangkid.h
index 6528fabb377..f8ef89ac0ed 100644
--- a/src/mame/includes/shangkid.h
+++ b/src/mame/includes/shangkid.h
@@ -9,7 +9,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_bbx(*this, "bbx"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
optional_shared_ptr<UINT8> m_spriteram;
@@ -44,4 +45,5 @@ public:
optional_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_bbx;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/shaolins.h b/src/mame/includes/shaolins.h
index 97a7d2b9a10..b7ae65c9bae 100644
--- a/src/mame/includes/shaolins.h
+++ b/src/mame/includes/shaolins.h
@@ -7,13 +7,15 @@ public:
m_spriteram(*this, "spriteram"),
m_colorram(*this, "colorram"),
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_spriteram;
required_shared_ptr<UINT8> m_colorram;
required_shared_ptr<UINT8> m_videoram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_palettebank;
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/shisen.h b/src/mame/includes/shisen.h
index 0adeeba4f36..661eb7568fb 100644
--- a/src/mame/includes/shisen.h
+++ b/src/mame/includes/shisen.h
@@ -9,7 +9,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_audio (*this, "m72"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_paletteram;
required_shared_ptr<UINT8> m_videoram;
@@ -17,6 +18,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<m72_audio_device> m_audio;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_gfxbank;
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/shootout.h b/src/mame/includes/shootout.h
index 25bc9259189..181c839d8cc 100644
--- a/src/mame/includes/shootout.h
+++ b/src/mame/includes/shootout.h
@@ -8,7 +8,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_background;
tilemap_t *m_foreground;
@@ -36,4 +37,5 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/sidearms.h b/src/mame/includes/sidearms.h
index b75d2966159..efb55b61019 100644
--- a/src/mame/includes/sidearms.h
+++ b/src/mame/includes/sidearms.h
@@ -12,7 +12,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") { }
int m_gameid;
@@ -62,4 +63,5 @@ 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/includes/sidepckt.h b/src/mame/includes/sidepckt.h
index 6b6bafeb7f6..8656f513323 100644
--- a/src/mame/includes/sidepckt.h
+++ b/src/mame/includes/sidepckt.h
@@ -14,7 +14,8 @@ public:
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
tilemap_t *m_bg_tilemap;
@@ -24,6 +25,7 @@ public:
required_shared_ptr<UINT8> m_colorram;
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
const UINT8* m_prot_table[3];
UINT8 m_i8751_return;
diff --git a/src/mame/includes/silkroad.h b/src/mame/includes/silkroad.h
index 5231473a0a7..52365252c83 100644
--- a/src/mame/includes/silkroad.h
+++ b/src/mame/includes/silkroad.h
@@ -12,7 +12,8 @@ public:
m_regs(*this, "regs"),
m_maincpu(*this, "maincpu"),
m_oki1(*this, "oki1"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT32> m_vidram;
required_shared_ptr<UINT32> m_vidram2;
@@ -37,4 +38,5 @@ public:
required_device<cpu_device> m_maincpu;
required_device<okim6295_device> m_oki1;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/simpl156.h b/src/mame/includes/simpl156.h
index ad37be0f229..42f32ff2b54 100644
--- a/src/mame/includes/simpl156.h
+++ b/src/mame/includes/simpl156.h
@@ -20,7 +20,8 @@ public:
m_okimusic(*this, "okimusic") ,
m_mainram(*this, "mainram"),
m_systemram(*this, "systemram"),
- m_sprgen(*this, "spritegen")
+ m_sprgen(*this, "spritegen"),
+ m_palette(*this, "palette")
{ }
/* devices */
@@ -34,6 +35,7 @@ public:
required_shared_ptr<UINT32> m_mainram;
required_shared_ptr<UINT32> m_systemram;
optional_device<decospr_device> m_sprgen;
+ required_device<palette_device> m_palette;
UINT16 *m_spriteram;
size_t m_spriteram_size;
diff --git a/src/mame/includes/skydiver.h b/src/mame/includes/skydiver.h
index 64543f196d5..d706c078e80 100644
--- a/src/mame/includes/skydiver.h
+++ b/src/mame/includes/skydiver.h
@@ -27,7 +27,8 @@ public:
m_videoram(*this, "videoram") ,
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;
int m_nmion;
@@ -59,6 +60,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in audio/skydiver.c -----------*/
diff --git a/src/mame/includes/skyfox.h b/src/mame/includes/skyfox.h
index e3bcc86b39b..9989b8ff8da 100644
--- a/src/mame/includes/skyfox.h
+++ b/src/mame/includes/skyfox.h
@@ -11,7 +11,9 @@ public:
: driver_device(mconfig, type, tag),
m_spriteram(*this, "spriteram"),
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_spriteram;
@@ -27,6 +29,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(skyfox_vregs_r);
DECLARE_WRITE8_MEMBER(skyfox_vregs_w);
diff --git a/src/mame/includes/skykid.h b/src/mame/includes/skykid.h
index e36e9f68838..ec963ec011a 100644
--- a/src/mame/includes/skykid.h
+++ b/src/mame/includes/skykid.h
@@ -11,7 +11,8 @@ public:
m_maincpu(*this, "maincpu"),
m_mcu(*this, "mcu"),
m_cus30(*this, "namco"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_inputport_selected;
required_shared_ptr<UINT8> m_videoram;
@@ -21,6 +22,7 @@ public:
required_device<cpu_device> m_mcu;
required_device<namco_cus30_device> m_cus30;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_bg_tilemap;
tilemap_t *m_tx_tilemap;
UINT8 m_priority;
diff --git a/src/mame/includes/skyraid.h b/src/mame/includes/skyraid.h
index 3810ade3615..7d41df5f62b 100644
--- a/src/mame/includes/skyraid.h
+++ b/src/mame/includes/skyraid.h
@@ -10,7 +10,8 @@ public:
m_obj_ram(*this, "obj_ram"),
m_discrete(*this, "discrete"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_analog_range;
int m_analog_offset;
@@ -37,6 +38,7 @@ public:
void draw_trapezoid(bitmap_ind16& dst, bitmap_ind16& src);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in audio/skyraid.c -----------*/
diff --git a/src/mame/includes/slapfght.h b/src/mame/includes/slapfght.h
index 6978613cccc..8ea1a4a3174 100644
--- a/src/mame/includes/slapfght.h
+++ b/src/mame/includes/slapfght.h
@@ -28,7 +28,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_getstar_id;
required_shared_ptr<UINT8> m_slapfight_videoram;
@@ -138,6 +139,7 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/slapshot.h b/src/mame/includes/slapshot.h
index 1b842ebb1a3..d7815ce30c8 100644
--- a/src/mame/includes/slapshot.h
+++ b/src/mame/includes/slapshot.h
@@ -38,7 +38,8 @@ public:
m_tc0480scp(*this, "tc0480scp"),
m_tc0360pri(*this, "tc0360pri"),
m_tc0640fio(*this, "tc0640fio"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_color_ram;
@@ -71,6 +72,7 @@ public:
required_device<tc0360pri_device> m_tc0360pri;
required_device<tc0640fio_device> m_tc0640fio;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER(color_ram_word_r);
DECLARE_WRITE16_MEMBER(color_ram_word_w);
diff --git a/src/mame/includes/snes.h b/src/mame/includes/snes.h
index a889cabb592..56648417931 100644
--- a/src/mame/includes/snes.h
+++ b/src/mame/includes/snes.h
@@ -574,7 +574,8 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_spc700(*this, "spc700"),
- m_superfx(*this, "superfx") { }
+ m_superfx(*this, "superfx"),
+ m_screen(*this, "screen") { }
/* misc */
UINT16 m_hblank_offset;
@@ -638,6 +639,8 @@ public:
required_device<spc700_device> m_soundcpu;
required_device<snes_sound_device> m_spc700;
optional_device<cpu_device> m_superfx;
+ required_device<screen_device> m_screen;
+
DECLARE_DIRECT_UPDATE_MEMBER(snes_spc_direct);
DECLARE_DIRECT_UPDATE_MEMBER(snes_direct);
diff --git a/src/mame/includes/snk.h b/src/mame/includes/snk.h
index b52fb3e8267..e0e38ca2327 100644
--- a/src/mame/includes/snk.h
+++ b/src/mame/includes/snk.h
@@ -16,7 +16,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_countryc_trackball;
int m_last_value[2];
@@ -186,4 +188,6 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<cpu_device> m_subcpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/snk6502.h b/src/mame/includes/snk6502.h
index 44a7e1cf462..e9e57b2c93a 100644
--- a/src/mame/includes/snk6502.h
+++ b/src/mame/includes/snk6502.h
@@ -21,7 +21,8 @@ public:
m_charram(*this, "charram"),
m_maincpu(*this, "maincpu"),
m_sound(*this, "snk6502"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_sasuke_counter;
@@ -33,6 +34,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<snk6502_sound_device> m_sound;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_charbank;
int m_backcolor;
diff --git a/src/mame/includes/snk68.h b/src/mame/includes/snk68.h
index f1e0d4f47b7..aea796f81ad 100644
--- a/src/mame/includes/snk68.h
+++ b/src/mame/includes/snk68.h
@@ -11,7 +11,9 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_upd7759(*this, "upd"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_invert_controls;
int m_sound_status;
@@ -57,4 +59,6 @@ public:
required_device<cpu_device> m_soundcpu;
required_device<upd7759_device> m_upd7759;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/snowbros.h b/src/mame/includes/snowbros.h
index cecc8c1a5a0..22f5ce99d0a 100644
--- a/src/mame/includes/snowbros.h
+++ b/src/mame/includes/snowbros.h
@@ -13,7 +13,8 @@ public:
m_pandora(*this, "pandora"),
m_hyperpac_ram(*this, "hyperpac_ram"),
m_bootleg_spriteram16(*this, "spriteram16b"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -23,6 +24,8 @@ public:
optional_shared_ptr<UINT16> m_hyperpac_ram;
optional_shared_ptr<UINT16> m_bootleg_spriteram16;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
+
int m_sb3_music_is_playing;
int m_sb3_music;
UINT8 m_semicom_prot_offset;
diff --git a/src/mame/includes/solomon.h b/src/mame/includes/solomon.h
index 20ca618b808..843be9b9e72 100644
--- a/src/mame/includes/solomon.h
+++ b/src/mame/includes/solomon.h
@@ -10,7 +10,8 @@ public:
m_colorram2(*this, "colorram2"),
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_spriteram;
required_shared_ptr<UINT8> m_videoram;
@@ -39,4 +40,5 @@ 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/includes/sonson.h b/src/mame/includes/sonson.h
index c9a21411dbe..0cea5f1cad3 100644
--- a/src/mame/includes/sonson.h
+++ b/src/mame/includes/sonson.h
@@ -14,7 +14,8 @@ public:
m_spriteram(*this, "spriteram"),
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_videoram;
@@ -45,4 +46,5 @@ 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/includes/spacefb.h b/src/mame/includes/spacefb.h
index 7e378735c5e..a9c99f73a04 100644
--- a/src/mame/includes/spacefb.h
+++ b/src/mame/includes/spacefb.h
@@ -32,7 +32,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_samples(*this, "samples") { }
+ m_samples(*this, "samples"),
+ m_screen(*this, "screen") { }
UINT8 m_sound_latch;
emu_timer *m_interrupt_timer;
@@ -66,6 +67,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<samples_device> m_samples;
+ required_device<screen_device> m_screen;
};
/*----------- defined in audio/spacefb.c -----------*/
diff --git a/src/mame/includes/spbactn.h b/src/mame/includes/spbactn.h
index 90b7deccb40..e850e7affef 100644
--- a/src/mame/includes/spbactn.h
+++ b/src/mame/includes/spbactn.h
@@ -13,7 +13,9 @@ public:
m_extraram2(*this, "extraram2"),
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_shared_ptr<UINT16> m_bgvideoram;
required_shared_ptr<UINT16> m_fgvideoram;
@@ -69,4 +71,6 @@ 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/includes/spcforce.h b/src/mame/includes/spcforce.h
index e2d4430b7d6..48f7d7026bd 100644
--- a/src/mame/includes/spcforce.h
+++ b/src/mame/includes/spcforce.h
@@ -13,7 +13,8 @@ public:
m_sn3(*this, "sn3"),
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_scrollram;
@@ -47,4 +48,5 @@ 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/includes/spdodgeb.h b/src/mame/includes/spdodgeb.h
index c33b29f424d..8f995fc6f0b 100644
--- a/src/mame/includes/spdodgeb.h
+++ b/src/mame/includes/spdodgeb.h
@@ -11,7 +11,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_msm1(*this, "msm1"),
m_msm2(*this, "msm2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_toggle;
int m_adpcm_pos[2];
@@ -64,4 +66,6 @@ public:
required_device<msm5205_device> m_msm1;
required_device<msm5205_device> m_msm2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/speedatk.h b/src/mame/includes/speedatk.h
index c004581901a..67f3fc2364e 100644
--- a/src/mame/includes/speedatk.h
+++ b/src/mame/includes/speedatk.h
@@ -6,7 +6,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") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
@@ -32,4 +33,5 @@ public:
UINT8 iox_key_matrix_calc(UINT8 p_side);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/speedbal.h b/src/mame/includes/speedbal.h
index cbe7a641301..adee15704a8 100644
--- a/src/mame/includes/speedbal.h
+++ b/src/mame/includes/speedbal.h
@@ -7,7 +7,8 @@ public:
m_spriteram(*this, "spriteram"),
m_background_videoram(*this, "bg_videoram"),
m_foreground_videoram(*this, "fg_videoram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -15,6 +16,7 @@ public:
required_shared_ptr<UINT8> m_background_videoram;
required_shared_ptr<UINT8> m_foreground_videoram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
bool m_leds_start;
UINT32 m_leds_shiftreg;
diff --git a/src/mame/includes/speedspn.h b/src/mame/includes/speedspn.h
index 4a0819a4d18..230596275d6 100644
--- a/src/mame/includes/speedspn.h
+++ b/src/mame/includes/speedspn.h
@@ -9,7 +9,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_attram;
tilemap_t *m_tilemap;
@@ -33,4 +34,5 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/splash.h b/src/mame/includes/splash.h
index 6dfde5a0e12..b6d42302341 100644
--- a/src/mame/includes/splash.h
+++ b/src/mame/includes/splash.h
@@ -16,7 +16,8 @@ public:
m_msm(*this, "msm"),
m_msm1(*this, "msm1"),
m_msm2(*this, "msm2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_pixelram;
required_shared_ptr<UINT16> m_videoram;
@@ -87,4 +88,5 @@ public:
optional_device<msm5205_device> m_msm1;
optional_device<msm5205_device> m_msm2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/sprcros2.h b/src/mame/includes/sprcros2.h
index 65b73f7ab6b..a860c22df7e 100644
--- a/src/mame/includes/sprcros2.h
+++ b/src/mame/includes/sprcros2.h
@@ -8,7 +8,8 @@ public:
m_spriteram(*this, "spriteram"),
m_master(*this,"master"),
m_slave(*this,"slave"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_s_port3;
UINT8 m_port7;
@@ -21,6 +22,7 @@ public:
required_device<cpu_device> m_master;
required_device<cpu_device> m_slave;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(sprcros2_m_port7_w);
DECLARE_WRITE8_MEMBER(sprcros2_s_port3_w);
diff --git a/src/mame/includes/sprint2.h b/src/mame/includes/sprint2.h
index 82a11214c18..93cf0df632a 100644
--- a/src/mame/includes/sprint2.h
+++ b/src/mame/includes/sprint2.h
@@ -29,7 +29,9 @@ public:
m_video_ram(*this, "video_ram"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_attract;
int m_steering[2];
@@ -78,6 +80,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
/*----------- defined in audio/sprint2.c -----------*/
diff --git a/src/mame/includes/sprint4.h b/src/mame/includes/sprint4.h
index c5a92031656..7f8e26454cd 100644
--- a/src/mame/includes/sprint4.h
+++ b/src/mame/includes/sprint4.h
@@ -11,7 +11,9 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
int m_da_latch;
@@ -52,6 +54,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ 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/includes/sprint8.h b/src/mame/includes/sprint8.h
index 1210289d039..804d724bfd0 100644
--- a/src/mame/includes/sprint8.h
+++ b/src/mame/includes/sprint8.h
@@ -12,7 +12,9 @@ public:
m_team(*this, "team"),
m_discrete(*this, "discrete"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_steer_dir[8];
int m_steer_flag[8];
@@ -52,6 +54,8 @@ public:
void sprint8_set_collision(int n);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
/*----------- defined in drivers/sprint8.c -----------*/
diff --git a/src/mame/includes/spy.h b/src/mame/includes/spy.h
index 33db43a205d..9e197672d1c 100644
--- a/src/mame/includes/spy.h
+++ b/src/mame/includes/spy.h
@@ -19,7 +19,8 @@ public:
m_k007232_1(*this, "k007232_1"),
m_k007232_2(*this, "k007232_2"),
m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960") { }
+ m_k051960(*this, "k051960"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_ram;
@@ -43,6 +44,7 @@ public:
required_device<k007232_device> m_k007232_2;
required_device<k052109_device> m_k052109;
required_device<k051960_device> m_k051960;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(spy_bankedram1_r);
DECLARE_WRITE8_MEMBER(spy_bankedram1_w);
DECLARE_WRITE8_MEMBER(bankswitch_w);
diff --git a/src/mame/includes/srumbler.h b/src/mame/includes/srumbler.h
index adc5dd3710d..383717fca7b 100644
--- a/src/mame/includes/srumbler.h
+++ b/src/mame/includes/srumbler.h
@@ -9,13 +9,15 @@ public:
m_spriteram(*this,"spriteram"),
m_backgroundram(*this, "backgroundram"),
m_foregroundram(*this, "foregroundram"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette"){ }
required_device<cpu_device> m_maincpu;
required_device<buffered_spriteram8_device> m_spriteram;
required_shared_ptr<UINT8> m_backgroundram;
required_shared_ptr<UINT8> m_foregroundram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_bg_tilemap;
tilemap_t *m_fg_tilemap;
int m_scroll[4];
diff --git a/src/mame/includes/sshangha.h b/src/mame/includes/sshangha.h
index 1513e568e59..b4dd2b4d973 100644
--- a/src/mame/includes/sshangha.h
+++ b/src/mame/includes/sshangha.h
@@ -22,7 +22,8 @@ public:
m_sprgen1(*this, "spritegen1"),
m_sprgen2(*this, "spritegen2"),
m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu") { }
+ m_audiocpu(*this, "audiocpu"),
+ m_palette(*this, "palette") { }
optional_device<deco146_device> m_deco146;
required_device<deco16ic_device> m_deco_tilegen1;
@@ -68,4 +69,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/sslam.h b/src/mame/includes/sslam.h
index f6bbb777967..16c0b055f93 100644
--- a/src/mame/includes/sslam.h
+++ b/src/mame/includes/sslam.h
@@ -13,7 +13,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
emu_timer *m_music_timer;
@@ -64,4 +65,5 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/ssozumo.h b/src/mame/includes/ssozumo.h
index a9949d6267f..4216cfb639e 100644
--- a/src/mame/includes/ssozumo.h
+++ b/src/mame/includes/ssozumo.h
@@ -11,7 +11,8 @@ public:
m_colorram2(*this, "colorram2"),
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_spriteram;
required_shared_ptr<UINT8> m_paletteram;
@@ -44,4 +45,5 @@ 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/includes/sspeedr.h b/src/mame/includes/sspeedr.h
index 74a71466b7b..b14fc6ae698 100644
--- a/src/mame/includes/sspeedr.h
+++ b/src/mame/includes/sspeedr.h
@@ -4,7 +4,8 @@ public:
sspeedr_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_led_TIME[2];
UINT8 m_led_SCORE[24];
@@ -44,4 +45,5 @@ public:
void draw_driver(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/includes/ssrj.h b/src/mame/includes/ssrj.h
index c931f8aca76..724f5800477 100644
--- a/src/mame/includes/ssrj.h
+++ b/src/mame/includes/ssrj.h
@@ -9,7 +9,8 @@ public:
m_vram4(*this, "vram4"),
m_scrollram(*this, "scrollram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_oldport;
tilemap_t *m_tilemap1;
@@ -36,4 +37,5 @@ public:
void draw_objects(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/includes/ssv.h b/src/mame/includes/ssv.h
index bb7bc21ed91..db7d32e99b7 100644
--- a/src/mame/includes/ssv.h
+++ b/src/mame/includes/ssv.h
@@ -34,7 +34,9 @@ public:
m_io_paddle(*this, "PADDLE"),
m_io_trackx(*this, "TRACKX"),
m_io_tracky(*this, "TRACKY"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -178,4 +180,6 @@ protected:
optional_ioport m_io_trackx;
optional_ioport m_io_tracky;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/st0016.h b/src/mame/includes/st0016.h
index b0dc6b89877..965a78687c6 100644
--- a/src/mame/includes/st0016.h
+++ b/src/mame/includes/st0016.h
@@ -6,7 +6,9 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this,"maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int mux_port;
UINT32 m_st0016_rom_bank;
@@ -46,6 +48,8 @@ public:
void draw_bgmap(bitmap_ind16 &bitmap,const rectangle &cliprect, int priority);
optional_device<cpu_device> m_subcpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
#define ISMACS (st0016_game&0x80)
diff --git a/src/mame/includes/starcrus.h b/src/mame/includes/starcrus.h
index fbac6903a0e..d472a980825 100644
--- a/src/mame/includes/starcrus.h
+++ b/src/mame/includes/starcrus.h
@@ -6,7 +6,8 @@ public:
: driver_device(mconfig, type, tag) ,
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
bitmap_ind16 *m_ship1_vid;
bitmap_ind16 *m_ship2_vid;
@@ -62,4 +63,5 @@ public:
required_device<cpu_device> m_maincpu;
required_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/starfire.h b/src/mame/includes/starfire.h
index b43b566ee21..f6c35c0872e 100644
--- a/src/mame/includes/starfire.h
+++ b/src/mame/includes/starfire.h
@@ -27,7 +27,8 @@ public:
m_starfire_colorram(*this, "colorram"),
m_starfire_videoram(*this, "videoram"),
m_samples(*this, "samples"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen") { }
required_shared_ptr<UINT8> m_starfire_colorram;
required_shared_ptr<UINT8> m_starfire_videoram;
@@ -64,4 +65,5 @@ public:
INTERRUPT_GEN_MEMBER(vblank_int);
void get_pens(pen_t *pens);
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
};
diff --git a/src/mame/includes/starshp1.h b/src/mame/includes/starshp1.h
index b89bd6872f6..9b7622193de 100644
--- a/src/mame/includes/starshp1.h
+++ b/src/mame/includes/starshp1.h
@@ -41,7 +41,9 @@ public:
m_obj_ram(*this, "obj_ram"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_analog_in_select;
int m_attract;
@@ -102,6 +104,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
/*----------- defined in audio/starshp1.c -----------*/
diff --git a/src/mame/includes/stfight.h b/src/mame/includes/stfight.h
index 82b21045aa9..4a2d7e698f6 100644
--- a/src/mame/includes/stfight.h
+++ b/src/mame/includes/stfight.h
@@ -19,7 +19,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT8> m_text_char_ram;
optional_shared_ptr<UINT8> m_text_attr_ram;
@@ -31,6 +32,7 @@ public:
required_device<cpu_device> m_mcu;
required_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 *m_decrypt;
UINT8 m_fm_data;
diff --git a/src/mame/includes/stlforce.h b/src/mame/includes/stlforce.h
index ca944e3cc2e..21efd8d6dc4 100644
--- a/src/mame/includes/stlforce.h
+++ b/src/mame/includes/stlforce.h
@@ -18,7 +18,8 @@ public:
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_bg_tilemap;
tilemap_t *m_mlow_tilemap;
@@ -56,4 +57,5 @@ public:
required_device<okim6295_device> m_oki;
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/includes/strnskil.h b/src/mame/includes/strnskil.h
index 73e74e47777..35d9f3aa7c3 100644
--- a/src/mame/includes/strnskil.h
+++ b/src/mame/includes/strnskil.h
@@ -8,7 +8,8 @@ public:
m_videoram(*this, "videoram"),
m_xscroll(*this, "xscroll"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
@@ -16,6 +17,7 @@ public:
required_shared_ptr<UINT8> m_xscroll;
required_shared_ptr<UINT8> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_scrl_ctrl;
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/stv.h b/src/mame/includes/stv.h
index e4bc21eb0b9..010cc85d813 100644
--- a/src/mame/includes/stv.h
+++ b/src/mame/includes/stv.h
@@ -23,7 +23,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_scudsp(*this, "scudsp"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -150,6 +151,7 @@ public:
required_device<scudsp_cpu_device> m_scudsp;
optional_device<eeprom_serial_93cxx_device> m_eeprom;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
bitmap_rgb32 m_tmpbitmap;
DECLARE_VIDEO_START(stv_vdp2);
diff --git a/src/mame/includes/subs.h b/src/mame/includes/subs.h
index 86ba7d62bf5..72ca1adf0f1 100644
--- a/src/mame/includes/subs.h
+++ b/src/mame/includes/subs.h
@@ -25,7 +25,8 @@ public:
m_videoram(*this, "videoram"),
m_discrete(*this, "discrete"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_spriteram;
required_shared_ptr<UINT8> m_videoram;
@@ -58,6 +59,7 @@ public:
int subs_steering_2();
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in audio/subs.c -----------*/
diff --git a/src/mame/includes/suna16.h b/src/mame/includes/suna16.h
index 7374cd5766e..54c6a75841e 100644
--- a/src/mame/includes/suna16.h
+++ b/src/mame/includes/suna16.h
@@ -12,7 +12,9 @@ public:
m_dac2(*this, "dac2"),
m_dac3(*this, "dac3"),
m_dac4(*this, "dac4"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -23,6 +25,8 @@ public:
optional_device<dac_device> m_dac3;
optional_device<dac_device> m_dac4;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_prot;
UINT16 *m_paletteram;
int m_color_bank;
diff --git a/src/mame/includes/suna8.h b/src/mame/includes/suna8.h
index 7cb42f64e09..db2dd60910d 100644
--- a/src/mame/includes/suna8.h
+++ b/src/mame/includes/suna8.h
@@ -14,7 +14,9 @@ public:
m_banked_paletteram(*this, "paletteram"),
m_audiocpu(*this, "audiocpu"),
m_samples(*this, "samples"),
- 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_hardhead_ip;
@@ -24,6 +26,8 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT8 m_rombank;
UINT8 m_rombank_latch;
diff --git a/src/mame/includes/superchs.h b/src/mame/includes/superchs.h
index 5c8408b6b8b..6786c9b478b 100644
--- a/src/mame/includes/superchs.h
+++ b/src/mame/includes/superchs.h
@@ -24,7 +24,8 @@ public:
m_subcpu(*this, "sub"),
m_tc0480scp(*this, "tc0480scp"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT16 m_coin_word;
required_shared_ptr<UINT32> m_ram;
@@ -53,4 +54,5 @@ public:
required_device<tc0480scp_device> m_tc0480scp;
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/includes/superqix.h b/src/mame/includes/superqix.h
index b1482ddd5c3..8e2553ff88c 100644
--- a/src/mame/includes/superqix.h
+++ b/src/mame/includes/superqix.h
@@ -12,7 +12,8 @@ public:
m_bitmapram(*this, "bitmapram"),
m_bitmapram2(*this, "bitmapram2"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_mcu;
@@ -22,6 +23,7 @@ public:
optional_shared_ptr<UINT8> m_bitmapram2;
optional_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
INT16 *m_samplebuf;
UINT8 m_port1;
diff --git a/src/mame/includes/suprnova.h b/src/mame/includes/suprnova.h
index f57db399919..29864f42e88 100644
--- a/src/mame/includes/suprnova.h
+++ b/src/mame/includes/suprnova.h
@@ -31,7 +31,8 @@ public:
m_v3t_ram(*this, "v3t_ram"),
m_main_ram(*this, "main_ram"),
m_cache_ram(*this, "cache_ram"),
- m_gfxdecode(*this, "gfxdecode"){ }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT32> m_spriteram;
@@ -48,6 +49,7 @@ public:
required_shared_ptr<UINT32> m_main_ram;
required_shared_ptr<UINT32> m_cache_ram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
hit_t m_hit;
UINT32 m_timer_0_temp[4];
bitmap_ind16 m_sprite_bitmap;
diff --git a/src/mame/includes/suprridr.h b/src/mame/includes/suprridr.h
index 75a98a6f975..72049175ffc 100644
--- a/src/mame/includes/suprridr.h
+++ b/src/mame/includes/suprridr.h
@@ -16,7 +16,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_nmi_enable;
UINT8 m_sound_data;
@@ -52,6 +53,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;
};
/*----------- defined in video/suprridr.c -----------*/
diff --git a/src/mame/includes/suprslam.h b/src/mame/includes/suprslam.h
index 2582905d560..aa855a5dda0 100644
--- a/src/mame/includes/suprslam.h
+++ b/src/mame/includes/suprslam.h
@@ -21,7 +21,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_k053936(*this, "k053936"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_screen_videoram;
@@ -62,4 +63,5 @@ public:
DECLARE_WRITE_LINE_MEMBER(irqhandler);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/surpratk.h b/src/mame/includes/surpratk.h
index 92c9a5fe044..e1cd5d6b3df 100644
--- a/src/mame/includes/surpratk.h
+++ b/src/mame/includes/surpratk.h
@@ -18,7 +18,8 @@ public:
m_maincpu(*this, "maincpu"),
m_k052109(*this, "k052109"),
m_k053244(*this, "k053244"),
- m_k053251(*this, "k053251") { }
+ m_k053251(*this, "k053251"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_ram;
@@ -37,6 +38,7 @@ public:
required_device<k052109_device> m_k052109;
required_device<k05324x_device> m_k053244;
required_device<k053251_device> m_k053251;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(bankedram_r);
DECLARE_WRITE8_MEMBER(bankedram_w);
DECLARE_WRITE8_MEMBER(surpratk_videobank_w);
diff --git a/src/mame/includes/system1.h b/src/mame/includes/system1.h
index 5638abf1f5c..25b6e447240 100644
--- a/src/mame/includes/system1.h
+++ b/src/mame/includes/system1.h
@@ -14,7 +14,9 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
optional_device<i8255_device> m_ppi8255;
required_shared_ptr<UINT8> m_ram;
@@ -129,4 +131,6 @@ public:
required_device<cpu_device> m_soundcpu;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/tagteam.h b/src/mame/includes/tagteam.h
index 7fa14433159..84ea9fb73de 100644
--- a/src/mame/includes/tagteam.h
+++ b/src/mame/includes/tagteam.h
@@ -7,7 +7,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_colorram;
@@ -36,4 +37,5 @@ 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/includes/tail2nos.h b/src/mame/includes/tail2nos.h
index c1a469cb424..7c49b55b654 100644
--- a/src/mame/includes/tail2nos.h
+++ b/src/mame/includes/tail2nos.h
@@ -16,7 +16,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_k051316(*this, "k051316"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_bgvideoram;
@@ -35,6 +36,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<k051316_device> m_k051316;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(sound_command_w);
DECLARE_WRITE16_MEMBER(tail2nos_bgvideoram_w);
diff --git a/src/mame/includes/taito_b.h b/src/mame/includes/taito_b.h
index a6cbb41fd84..28e7e8d2c92 100644
--- a/src/mame/includes/taito_b.h
+++ b/src/mame/includes/taito_b.h
@@ -33,7 +33,9 @@ public:
m_tc0220ioc(*this, "tc0220ioc"),
m_tc0510nio(*this, "tc0510nio"),
m_mb87078(*this, "mb87078"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -68,6 +70,8 @@ public:
optional_device<tc0510nio_device> m_tc0510nio;
optional_device<mb87078_device> m_mb87078;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(bankswitch_w);
DECLARE_READ16_MEMBER(tracky1_hi_r);
diff --git a/src/mame/includes/taito_f2.h b/src/mame/includes/taito_f2.h
index 8ab88180810..102967dbcf0 100644
--- a/src/mame/includes/taito_f2.h
+++ b/src/mame/includes/taito_f2.h
@@ -41,7 +41,8 @@ public:
m_tc0480scp(*this, "tc0480scp"),
m_tc0220ioc(*this, "tc0220ioc"),
m_tc0510nio(*this, "tc0510nio"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -109,6 +110,7 @@ public:
optional_device<tc0220ioc_device> m_tc0220ioc;
optional_device<tc0510nio_device> m_tc0510nio;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(growl_coin_word_w);
DECLARE_WRITE16_MEMBER(taitof2_4p_coin_word_w);
diff --git a/src/mame/includes/taito_f3.h b/src/mame/includes/taito_f3.h
index db991e57bbb..7b206b66df4 100644
--- a/src/mame/includes/taito_f3.h
+++ b/src/mame/includes/taito_f3.h
@@ -56,7 +56,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
UINT16 *m_videoram;
UINT16 *m_spriteram;
@@ -289,6 +291,8 @@ public:
optional_device<cpu_device> m_audiocpu;
optional_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ 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/includes/taito_h.h b/src/mame/includes/taito_h.h
index 055f9ff07b1..0c8afb397cc 100644
--- a/src/mame/includes/taito_h.h
+++ b/src/mame/includes/taito_h.h
@@ -17,7 +17,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_tc0080vco(*this, "tc0080vco"),
m_tc0220ioc(*this, "tc0220ioc"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_m68000_mainram;
@@ -32,6 +33,7 @@ public:
required_device<tc0080vco_device> m_tc0080vco;
required_device<tc0220ioc_device> m_tc0220ioc;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ8_MEMBER(syvalion_input_bypass_r);
DECLARE_WRITE8_MEMBER(sound_bankswitch_w);
diff --git a/src/mame/includes/taito_l.h b/src/mame/includes/taito_l.h
index f46506c0c53..5d824c4285b 100644
--- a/src/mame/includes/taito_l.h
+++ b/src/mame/includes/taito_l.h
@@ -11,7 +11,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{
}
@@ -64,6 +65,7 @@ public:
optional_device<cpu_device> m_audiocpu;
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* memory buffers */
UINT8 m_rambanks[0x1000 * 12];
diff --git a/src/mame/includes/taito_o.h b/src/mame/includes/taito_o.h
index 37e07395226..4e3a517fa33 100644
--- a/src/mame/includes/taito_o.h
+++ b/src/mame/includes/taito_o.h
@@ -13,7 +13,8 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_tc0080vco(*this, "tc0080vco"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
// UINT16 * paletteram; // currently this uses generic palette handling
@@ -22,6 +23,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<tc0080vco_device> m_tc0080vco;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(io_w);
DECLARE_READ16_MEMBER(io_r);
diff --git a/src/mame/includes/taito_z.h b/src/mame/includes/taito_z.h
index 11f0a710ccc..9a1a8a782f9 100644
--- a/src/mame/includes/taito_z.h
+++ b/src/mame/includes/taito_z.h
@@ -37,7 +37,8 @@ public:
m_tc0220ioc(*this, "tc0220ioc"),
m_tc0510nio(*this, "tc0510nio"),
m_tc0140syt(*this, "tc0140syt"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -66,6 +67,7 @@ public:
optional_device<tc0510nio_device> m_tc0510nio;
required_device<tc0140syt_device> m_tc0140syt;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE16_MEMBER(cpua_ctrl_w);
DECLARE_WRITE16_MEMBER(chasehq_cpua_ctrl_w);
diff --git a/src/mame/includes/taitoair.h b/src/mame/includes/taitoair.h
index fda9c8e9bd6..1b68ee8e964 100644
--- a/src/mame/includes/taitoair.h
+++ b/src/mame/includes/taitoair.h
@@ -36,7 +36,9 @@ public:
m_dsp(*this, "dsp"),
m_tc0080vco(*this, "tc0080vco"),
m_tc0220ioc(*this, "tc0220ioc"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -61,6 +63,8 @@ public:
required_device<tc0080vco_device> m_tc0080vco;
required_device<tc0220ioc_device> m_tc0220ioc;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
bitmap_ind16 *m_framebuffer[2];
diff --git a/src/mame/includes/taitojc.h b/src/mame/includes/taitojc.h
index 643e3fc1206..4331d7d2c68 100644
--- a/src/mame/includes/taitojc.h
+++ b/src/mame/includes/taitojc.h
@@ -49,7 +49,9 @@ public:
m_main_ram(*this, "main_ram"),
m_dsp_shared_ram(*this, "dsp_shared"),
m_palette_ram(*this, "palette_ram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{
m_mcu_output = 0;
m_speed_meter = 0;
@@ -70,6 +72,8 @@ public:
required_shared_ptr<UINT32> m_palette_ram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
taitojc_renderer *m_renderer;
diff --git a/src/mame/includes/taitosj.h b/src/mame/includes/taitosj.h
index 8ef43651494..3f3771649b1 100644
--- a/src/mame/includes/taitosj.h
+++ b/src/mame/includes/taitosj.h
@@ -23,7 +23,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
typedef void (taitosj_state::*copy_layer_func_t)(bitmap_ind16 &,
const rectangle &, int, int *, rectangle *);
@@ -126,4 +128,6 @@ public:
optional_device<cpu_device> m_mcu;
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/includes/tank8.h b/src/mame/includes/tank8.h
index e2bb6b03e8f..7e862932504 100644
--- a/src/mame/includes/tank8.h
+++ b/src/mame/includes/tank8.h
@@ -40,7 +40,9 @@ public:
m_team(*this, "team"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_collision_index;
required_shared_ptr<UINT8> m_video_ram;
@@ -78,6 +80,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ 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/includes/tankbatt.h b/src/mame/includes/tankbatt.h
index fd018d75aa0..772ea805472 100644
--- a/src/mame/includes/tankbatt.h
+++ b/src/mame/includes/tankbatt.h
@@ -8,7 +8,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_bulletsram;
required_shared_ptr<UINT8> m_videoram;
@@ -39,4 +40,5 @@ public:
required_device<cpu_device> m_maincpu;
required_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/tankbust.h b/src/mame/includes/tankbust.h
index e8d6190659b..f811b343b54 100644
--- a/src/mame/includes/tankbust.h
+++ b/src/mame/includes/tankbust.h
@@ -9,7 +9,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_latch;
UINT32 m_timer1;
@@ -53,4 +54,5 @@ 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/includes/targeth.h b/src/mame/includes/targeth.h
index 32f4129281f..b709789ff51 100644
--- a/src/mame/includes/targeth.h
+++ b/src/mame/includes/targeth.h
@@ -7,13 +7,15 @@ public:
m_videoram(*this, "videoram"),
m_vregs(*this, "vregs"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT16> m_videoram;
required_shared_ptr<UINT16> m_vregs;
required_shared_ptr<UINT16> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_pant[2];
DECLARE_WRITE16_MEMBER(OKIM6295_bankswitch_w);
diff --git a/src/mame/includes/tatsumi.h b/src/mame/includes/tatsumi.h
index d7d5f95acee..d957d6d262b 100644
--- a/src/mame/includes/tatsumi.h
+++ b/src/mame/includes/tatsumi.h
@@ -29,7 +29,8 @@ public:
m_subcpu(*this, "sub"),
m_subcpu2(*this, "sub2"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT16> m_videoram;
optional_shared_ptr<UINT16> m_cyclwarr_cpua_ram;
@@ -142,6 +143,7 @@ public:
optional_device<cpu_device> m_subcpu2;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in machine/tatsumi.c -----------*/
diff --git a/src/mame/includes/taxidriv.h b/src/mame/includes/taxidriv.h
index e1022e34048..63bd13d8bf4 100644
--- a/src/mame/includes/taxidriv.h
+++ b/src/mame/includes/taxidriv.h
@@ -13,7 +13,8 @@ public:
m_vram7(*this, "vram7"),
m_scroll(*this, "scroll"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_s1;
int m_s2;
@@ -57,4 +58,5 @@ public:
UINT32 screen_update_taxidriv(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/includes/tbowl.h b/src/mame/includes/tbowl.h
index f767fa9d8a3..7c62d5b30f7 100644
--- a/src/mame/includes/tbowl.h
+++ b/src/mame/includes/tbowl.h
@@ -14,7 +14,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_msm1(*this, "msm1"),
m_msm2(*this, "msm2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_adpcm_pos[2];
int m_adpcm_end[2];
@@ -69,4 +70,5 @@ public:
required_device<msm5205_device> m_msm1;
required_device<msm5205_device> m_msm2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/tceptor.h b/src/mame/includes/tceptor.h
index 625b169e756..ae8fec3762d 100644
--- a/src/mame/includes/tceptor.h
+++ b/src/mame/includes/tceptor.h
@@ -17,7 +17,8 @@ public:
m_sprite_ram(*this, "sprite_ram"),
m_c45_road(*this, "c45_road"),
m_2dscreen(*this, "2dscreen"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_m6809_irq_enable;
UINT8 m_m68k_irq_enable;
@@ -65,6 +66,7 @@ public:
optional_device<namco_c45_road_device> m_c45_road;
required_device<screen_device> m_2dscreen;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
TILE_GET_INFO_MEMBER(get_tx_tile_info);
TILE_GET_INFO_MEMBER(get_bg1_tile_info);
diff --git a/src/mame/includes/tecmo.h b/src/mame/includes/tecmo.h
index d2d8f30f048..6e18ad3dce8 100644
--- a/src/mame/includes/tecmo.h
+++ b/src/mame/includes/tecmo.h
@@ -12,7 +12,8 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_adpcm_pos;
int m_adpcm_end;
@@ -62,4 +63,5 @@ public:
required_device<cpu_device> m_soundcpu;
required_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/tecmo16.h b/src/mame/includes/tecmo16.h
index 11188d0104a..1c482600ec7 100644
--- a/src/mame/includes/tecmo16.h
+++ b/src/mame/includes/tecmo16.h
@@ -13,7 +13,9 @@ public:
m_spriteram(*this, "spriteram"),
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_shared_ptr<UINT16> m_videoram;
required_shared_ptr<UINT16> m_colorram;
@@ -58,4 +60,6 @@ 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/includes/tecmosys.h b/src/mame/includes/tecmosys.h
index fc95b32b926..7472d64830d 100644
--- a/src/mame/includes/tecmosys.h
+++ b/src/mame/includes/tecmosys.h
@@ -27,7 +27,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_tilemap_paletteram16;
@@ -97,4 +99,6 @@ public:
required_device<cpu_device> m_audiocpu;
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/includes/tehkanwc.h b/src/mame/includes/tehkanwc.h
index 843e8b8a78a..9d6e1d1ce9b 100644
--- a/src/mame/includes/tehkanwc.h
+++ b/src/mame/includes/tehkanwc.h
@@ -18,7 +18,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "sub"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_track0[2];
int m_track1[2];
@@ -67,6 +68,7 @@ public:
required_device<cpu_device> m_subcpu;
required_device<msm5205_device> m_msm;
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/includes/terracre.h b/src/mame/includes/terracre.h
index 9d95f9b158c..ed105fb2209 100644
--- a/src/mame/includes/terracre.h
+++ b/src/mame/includes/terracre.h
@@ -7,7 +7,8 @@ public:
m_amazon_videoram(*this, "amazon_videoram"),
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_amazon_videoram;
@@ -41,4 +42,5 @@ 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/includes/tetrisp2.h b/src/mame/includes/tetrisp2.h
index 16de1732c91..395b8fb9a33 100644
--- a/src/mame/includes/tetrisp2.h
+++ b/src/mame/includes/tetrisp2.h
@@ -21,7 +21,8 @@ public:
m_rocknms_sub_scroll_fg(*this, "sub_scroll_fg"),
m_rocknms_sub_scroll_bg(*this, "sub_scroll_bg"),
m_rocknms_sub_rotregs(*this, "sub_rotregs"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -47,6 +48,7 @@ public:
optional_shared_ptr<UINT16> m_rocknms_sub_scroll_bg;
optional_shared_ptr<UINT16> m_rocknms_sub_rotregs;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT16 m_rocknms_sub_systemregs[0x10];
UINT16 m_rockn_protectdata;
diff --git a/src/mame/includes/thedeep.h b/src/mame/includes/thedeep.h
index 305b2d9020b..aeab102935d 100644
--- a/src/mame/includes/thedeep.h
+++ b/src/mame/includes/thedeep.h
@@ -11,7 +11,8 @@ public:
m_maincpu(*this,"maincpu"),
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_spriteram;
int m_nmi_enable;
@@ -32,6 +33,7 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(thedeep_nmi_w);
DECLARE_WRITE8_MEMBER(thedeep_sound_w);
diff --git a/src/mame/includes/thepit.h b/src/mame/includes/thepit.h
index 16d63fc3384..f9b0c8ac0fb 100644
--- a/src/mame/includes/thepit.h
+++ b/src/mame/includes/thepit.h
@@ -8,7 +8,8 @@ public:
m_attributesram(*this, "attributesram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_question_address;
int m_question_rom;
@@ -45,4 +46,5 @@ 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/includes/thief.h b/src/mame/includes/thief.h
index 6f56b42014b..780cf39b93c 100644
--- a/src/mame/includes/thief.h
+++ b/src/mame/includes/thief.h
@@ -15,7 +15,8 @@ public:
: driver_device(mconfig, type, tag) ,
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
- m_tms(*this, "tms") { }
+ m_tms(*this, "tms"),
+ m_palette(*this, "palette") { }
UINT8 *m_videoram;
UINT8 m_input_select;
@@ -47,4 +48,5 @@ public:
required_device<cpu_device> m_maincpu;
required_device<samples_device> m_samples;
required_device<tms9927_device> m_tms;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/thoop2.h b/src/mame/includes/thoop2.h
index 9480e9740a3..7eb906e3bbb 100644
--- a/src/mame/includes/thoop2.h
+++ b/src/mame/includes/thoop2.h
@@ -7,7 +7,8 @@ public:
m_vregs(*this, "vregs"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_videoram;
required_shared_ptr<UINT16> m_vregs;
@@ -27,4 +28,5 @@ public:
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/thunderx.h b/src/mame/includes/thunderx.h
index adc67bb4beb..c16ba5774a6 100644
--- a/src/mame/includes/thunderx.h
+++ b/src/mame/includes/thunderx.h
@@ -23,7 +23,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_k007232(*this, "k007232"),
m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960") { }
+ m_k051960(*this, "k051960"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_ram;
@@ -47,6 +48,8 @@ public:
optional_device<k007232_device> m_k007232;
required_device<k052109_device> m_k052109;
required_device<k051960_device> m_k051960;
+ required_device<palette_device> m_palette;
+
DECLARE_READ8_MEMBER(scontra_bankedram_r);
DECLARE_WRITE8_MEMBER(scontra_bankedram_w);
DECLARE_READ8_MEMBER(thunderx_bankedram_r);
diff --git a/src/mame/includes/tiamc1.h b/src/mame/includes/tiamc1.h
index d8d780a1c0b..da71a658681 100644
--- a/src/mame/includes/tiamc1.h
+++ b/src/mame/includes/tiamc1.h
@@ -5,7 +5,8 @@ public:
tiamc1_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_tileram;
UINT8 *m_charram;
@@ -38,6 +39,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/includes/tigeroad.h b/src/mame/includes/tigeroad.h
index 1b8fd995977..768a2b1975f 100644
--- a/src/mame/includes/tigeroad.h
+++ b/src/mame/includes/tigeroad.h
@@ -12,7 +12,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<buffered_spriteram16_device> m_spriteram;
required_shared_ptr<UINT16> m_videoram;
@@ -40,4 +41,5 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/timelimt.h b/src/mame/includes/timelimt.h
index 9e315805089..1ffb31b8be7 100644
--- a/src/mame/includes/timelimt.h
+++ b/src/mame/includes/timelimt.h
@@ -8,7 +8,8 @@ public:
m_spriteram(*this, "spriteram"),
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;
int m_nmi_enabled;
@@ -37,4 +38,5 @@ 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/includes/timeplt.h b/src/mame/includes/timeplt.h
index 48dfb86f44a..bd703acb045 100644
--- a/src/mame/includes/timeplt.h
+++ b/src/mame/includes/timeplt.h
@@ -17,7 +17,9 @@ public:
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
m_spriteram2(*this, "spriteram2"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
required_device<cpu_device> m_maincpu;
@@ -30,6 +32,8 @@ public:
required_shared_ptr<UINT8> m_spriteram2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
/* video-related */
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/tmnt.h b/src/mame/includes/tmnt.h
index bd8680f5dcd..64d077f2a38 100644
--- a/src/mame/includes/tmnt.h
+++ b/src/mame/includes/tmnt.h
@@ -38,7 +38,8 @@ public:
m_k054000(*this, "k054000"),
m_upd7759(*this, "upd"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
optional_shared_ptr<UINT16> m_spriteram;
@@ -87,6 +88,7 @@ public:
optional_device<upd7759_device> m_upd7759;
optional_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* memory buffers */
INT16 m_sampledata[0x40000];
diff --git a/src/mame/includes/tnzs.h b/src/mame/includes/tnzs.h
index 884148392ca..fb4692a318a 100644
--- a/src/mame/includes/tnzs.h
+++ b/src/mame/includes/tnzs.h
@@ -30,7 +30,8 @@ public:
m_maincpu(*this, "maincpu"),
m_seta001(*this, "spritegen"),
m_dac(*this, "dac"),
- m_samples(*this, "samples") { }
+ m_samples(*this, "samples"),
+ m_palette(*this, "palette") { }
/* memory pointers */
// UINT8 * m_paletteram; // currently this uses generic palette handling
@@ -119,4 +120,5 @@ public:
optional_device<seta001_device> m_seta001;
optional_device<dac_device> m_dac;
optional_device<samples_device> m_samples;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/toaplan1.h b/src/mame/includes/toaplan1.h
index 686109480b3..eb921eb00c0 100644
--- a/src/mame/includes/toaplan1.h
+++ b/src/mame/includes/toaplan1.h
@@ -18,7 +18,9 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_dsp(*this, "dsp"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_bgpaletteram;
required_shared_ptr<UINT16> m_fgpaletteram;
@@ -153,6 +155,8 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_dsp;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
class toaplan1_rallybik_state : public toaplan1_state
diff --git a/src/mame/includes/toaplan2.h b/src/mame/includes/toaplan2.h
index f7da603956c..2a22bcb6517 100644
--- a/src/mame/includes/toaplan2.h
+++ b/src/mame/includes/toaplan2.h
@@ -39,7 +39,9 @@ public:
m_oki1(*this, "oki1"),
m_eeprom(*this, "eeprom"),
m_rtc(*this, "rtc"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT8> m_shared_ram; // 8 bit RAM shared between 68K and sound CPU
optional_shared_ptr<UINT16> m_shared_ram16; // Really 8 bit RAM connected to Z180
@@ -60,6 +62,8 @@ public:
optional_device<eeprom_serial_93cxx_device> m_eeprom;
optional_device<upd4992_device> m_rtc;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
UINT16 m_mcu_data;
UINT16 m_video_status;
diff --git a/src/mame/includes/toki.h b/src/mame/includes/toki.h
index 544ebdabb79..742b9c71082 100644
--- a/src/mame/includes/toki.h
+++ b/src/mame/includes/toki.h
@@ -16,7 +16,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_seibu_sound(*this, "seibu_sound"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<buffered_spriteram16_device> m_spriteram;
required_shared_ptr<UINT16> m_background1_videoram16;
@@ -29,6 +31,8 @@ public:
optional_device<seibu_sound_device> m_seibu_sound;
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int m_msm5205next;
int m_toggle;
diff --git a/src/mame/includes/topspeed.h b/src/mame/includes/topspeed.h
index b33b4164867..2f1d27de590 100644
--- a/src/mame/includes/topspeed.h
+++ b/src/mame/includes/topspeed.h
@@ -30,7 +30,8 @@ public:
m_filter1r(*this, "filter1r"),
m_filter2(*this, "filter2"),
m_filter3(*this, "filter3"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT16> m_spritemap;
required_shared_ptr<UINT16> m_raster_ctrl;
@@ -50,7 +51,8 @@ public:
required_device<filter_volume_device> m_filter2;
required_device<filter_volume_device> m_filter3;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<palette_device> m_palette;
+
// Misc
UINT16 m_cpua_ctrl;
INT32 m_ioc220_port;
diff --git a/src/mame/includes/toypop.h b/src/mame/includes/toypop.h
index f353b9d9a00..62e3b2b1f2d 100644
--- a/src/mame/includes/toypop.h
+++ b/src/mame/includes/toypop.h
@@ -22,7 +22,8 @@ public:
m_namco58xx(*this, "58xx"),
m_namco56xx_1(*this, "56xx_1"),
m_namco56xx_2(*this, "56xx_2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
@@ -37,6 +38,7 @@ public:
required_device<namco56xx_device> m_namco56xx_1;
required_device<namco56xx_device> m_namco56xx_2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/tp84.h b/src/mame/includes/tp84.h
index c79136371a4..2a304800364 100644
--- a/src/mame/includes/tp84.h
+++ b/src/mame/includes/tp84.h
@@ -14,7 +14,9 @@ public:
m_bg_colorram(*this, "bg_colorram"),
m_fg_colorram(*this, "fg_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_audiocpu;
required_shared_ptr<UINT8> m_palette_bank;
@@ -28,6 +30,8 @@ public:
required_shared_ptr<UINT8> m_fg_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;
tilemap_t *m_bg_tilemap;
tilemap_t *m_fg_tilemap;
diff --git a/src/mame/includes/trackfld.h b/src/mame/includes/trackfld.h
index af33eca9c90..a1604933cc9 100644
--- a/src/mame/includes/trackfld.h
+++ b/src/mame/includes/trackfld.h
@@ -21,7 +21,8 @@ public:
m_maincpu(*this, "maincpu"),
m_sn(*this, "snsnd"),
m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram2;
@@ -36,6 +37,7 @@ public:
optional_device<sn76496_device> m_sn;
optional_device<vlm5030_device> m_vlm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* video-related */
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/travrusa.h b/src/mame/includes/travrusa.h
index 45259c738ab..72ea42e45ee 100644
--- a/src/mame/includes/travrusa.h
+++ b/src/mame/includes/travrusa.h
@@ -6,7 +6,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") { }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
@@ -31,4 +32,5 @@ 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/includes/triplhnt.h b/src/mame/includes/triplhnt.h
index 19e53c505eb..62b868a89d2 100644
--- a/src/mame/includes/triplhnt.h
+++ b/src/mame/includes/triplhnt.h
@@ -34,7 +34,9 @@ public:
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
UINT8 m_cmos[16];
UINT8 m_da_latch;
@@ -67,6 +69,8 @@ public:
required_device<discrete_device> m_discrete;
required_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ 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/includes/tryout.h b/src/mame/includes/tryout.h
index 42f5cf8c1f6..709992f1283 100644
--- a/src/mame/includes/tryout.h
+++ b/src/mame/includes/tryout.h
@@ -9,7 +9,8 @@ public:
m_gfx_control(*this, "gfx_control"),
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;
@@ -42,4 +43,5 @@ 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/includes/tsamurai.h b/src/mame/includes/tsamurai.h
index 9f13288f164..d2317e0e092 100644
--- a/src/mame/includes/tsamurai.h
+++ b/src/mame/includes/tsamurai.h
@@ -11,7 +11,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_audio2(*this, "audio2"),
m_audio3(*this, "audio3"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_nmi_enabled;
int m_sound_command1;
@@ -72,4 +73,5 @@ public:
optional_device<cpu_device> m_audio2;
optional_device<cpu_device> m_audio3;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/tubep.h b/src/mame/includes/tubep.h
index 3050c288f56..672b7a78220 100644
--- a/src/mame/includes/tubep.h
+++ b/src/mame/includes/tubep.h
@@ -20,7 +20,8 @@ public:
m_soundcpu(*this, "soundcpu"),
m_slave(*this, "slave"),
m_mcu(*this, "mcu"),
- m_msm(*this, "msm") { }
+ m_msm(*this, "msm"),
+ m_screen(*this, "screen") { }
UINT8 m_sound_latch;
UINT8 m_ls74;
@@ -104,6 +105,8 @@ public:
required_device<cpu_device> m_slave;
required_device<cpu_device> m_mcu;
optional_device<msm5205_device> m_msm;
+ 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/includes/tumbleb.h b/src/mame/includes/tumbleb.h
index 985c113a454..ad607e8b1ce 100644
--- a/src/mame/includes/tumbleb.h
+++ b/src/mame/includes/tumbleb.h
@@ -16,7 +16,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
/* memory pointers */
@@ -47,6 +48,7 @@ public:
optional_device<cpu_device> m_audiocpu;
required_device<okim6295_device> m_oki;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
UINT8 m_semicom_prot_offset;
UINT16 m_protbase;
diff --git a/src/mame/includes/tunhunt.h b/src/mame/includes/tunhunt.h
index d2cf6e60fb7..a86e637aab3 100644
--- a/src/mame/includes/tunhunt.h
+++ b/src/mame/includes/tunhunt.h
@@ -7,7 +7,9 @@ public:
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
UINT8 m_control;
required_shared_ptr<UINT8> m_workram;
@@ -34,4 +36,6 @@ public:
int hposition,int vstart,int vstop,int vstretch,int hstretch);
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/includes/turbo.h b/src/mame/includes/turbo.h
index c1a1a86eccb..07728d66057 100644
--- a/src/mame/includes/turbo.h
+++ b/src/mame/includes/turbo.h
@@ -30,7 +30,8 @@ public:
m_spriteram(*this, "spriteram"),
m_sprite_position(*this, "spritepos"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen")
{ }
/* device/memory pointers */
@@ -49,6 +50,7 @@ public:
required_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
UINT8 * m_buckrog_bitmap_ram;
diff --git a/src/mame/includes/twin16.h b/src/mame/includes/twin16.h
index 5c979b5b881..6aa39553b81 100644
--- a/src/mame/includes/twin16.h
+++ b/src/mame/includes/twin16.h
@@ -17,7 +17,9 @@ public:
m_subcpu(*this, "sub"),
m_k007232(*this, "k007232"),
m_upd7759(*this, "upd"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_device<buffered_spriteram16_device> m_spriteram;
required_shared_ptr<UINT16> m_text_ram;
@@ -74,6 +76,8 @@ public:
required_device<k007232_device> m_k007232;
required_device<upd7759_device> m_upd7759;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
class cuebrickj_state : public twin16_state
diff --git a/src/mame/includes/twincobr.h b/src/mame/includes/twincobr.h
index debdbc06a5d..3573c450a15 100644
--- a/src/mame/includes/twincobr.h
+++ b/src/mame/includes/twincobr.h
@@ -19,7 +19,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_dsp(*this, "dsp"),
m_spritegen(*this, "toaplan_scu"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette")
{ }
optional_shared_ptr<UINT8> m_sharedram;
@@ -125,7 +127,8 @@ public:
required_device<cpu_device> m_dsp;
required_device<toaplan_scu_device> m_spritegen;
required_device<gfxdecode_device> m_gfxdecode;
-
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/tx1.h b/src/mame/includes/tx1.h
index ac98163bee0..6e5b057b4b4 100644
--- a/src/mame/includes/tx1.h
+++ b/src/mame/includes/tx1.h
@@ -106,7 +106,8 @@ public:
m_vram(*this, "vram"),
m_objram(*this, "objram"),
m_rcram(*this, "rcram"),
- m_z80_ram(*this, "z80_ram") { }
+ m_z80_ram(*this, "z80_ram"),
+ m_screen(*this, "screen") { }
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_mathcpu;
@@ -116,6 +117,7 @@ public:
required_shared_ptr<UINT16> m_objram;
required_shared_ptr<UINT16> m_rcram;
required_shared_ptr<UINT8> m_z80_ram;
+ required_device<screen_device> m_screen;
emu_timer *m_interrupt_timer;
diff --git a/src/mame/includes/ultratnk.h b/src/mame/includes/ultratnk.h
index ef7aec5f4db..1d0e786bb5a 100644
--- a/src/mame/includes/ultratnk.h
+++ b/src/mame/includes/ultratnk.h
@@ -19,7 +19,9 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
int m_da_latch;
@@ -54,6 +56,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ 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/includes/undrfire.h b/src/mame/includes/undrfire.h
index 59feae0a224..5f2d6cb567f 100644
--- a/src/mame/includes/undrfire.h
+++ b/src/mame/includes/undrfire.h
@@ -30,7 +30,8 @@ public:
m_ram(*this, "ram"),
m_shared_ram(*this, "shared_ram"),
m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_subcpu;
@@ -47,6 +48,7 @@ public:
UINT8 m_dislayer[6];
required_shared_ptr<UINT32> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE32_MEMBER(color_ram_w);
DECLARE_READ32_MEMBER(undrfire_input_r);
diff --git a/src/mame/includes/unico.h b/src/mame/includes/unico.h
index aaec3a27b68..56fb606a09e 100644
--- a/src/mame/includes/unico.h
+++ b/src/mame/includes/unico.h
@@ -9,7 +9,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") { }
UINT16* m_vram;
UINT16* m_scroll;
@@ -49,4 +51,6 @@ public:
optional_device<okim6295_device> m_oki;
optional_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/includes/vaportra.h b/src/mame/includes/vaportra.h
index 0afde2f1bb9..84e34425b8d 100644
--- a/src/mame/includes/vaportra.h
+++ b/src/mame/includes/vaportra.h
@@ -18,7 +18,8 @@ public:
m_deco_tilegen1(*this, "tilegen1"),
m_deco_tilegen2(*this, "tilegen2"),
m_spritegen(*this, "spritegen"),
- m_spriteram(*this, "spriteram") { }
+ m_spriteram(*this, "spriteram"),
+ m_palette(*this, "palette") { }
/* memory pointers */
UINT16 * m_pf1_rowscroll;
@@ -36,6 +37,8 @@ public:
required_device<deco16ic_device> m_deco_tilegen2;
required_device<deco_mxc06_device> m_spritegen;
required_device<buffered_spriteram16_device> m_spriteram;
+ required_device<palette_device> m_palette;
+
DECLARE_WRITE16_MEMBER(vaportra_sound_w);
DECLARE_READ16_MEMBER(vaportra_control_r);
DECLARE_READ8_MEMBER(vaportra_soundlatch_r);
diff --git a/src/mame/includes/vastar.h b/src/mame/includes/vastar.h
index 02c4ab31aab..11bd22ba958 100644
--- a/src/mame/includes/vastar.h
+++ b/src/mame/includes/vastar.h
@@ -10,7 +10,8 @@ public:
m_sharedram(*this, "sharedram"),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_bg1videoram;
required_shared_ptr<UINT8> m_bg2videoram;
@@ -48,4 +49,5 @@ 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/includes/vball.h b/src/mame/includes/vball.h
index b7e9c40319e..96866719728 100644
--- a/src/mame/includes/vball.h
+++ b/src/mame/includes/vball.h
@@ -9,7 +9,9 @@ public:
m_spriteram(*this, "spriteram"),
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_shared_ptr<UINT8> m_vb_attribram;
required_shared_ptr<UINT8> m_vb_videoram;
@@ -44,4 +46,6 @@ 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/includes/vendetta.h b/src/mame/includes/vendetta.h
index bce7ba8275d..896afbb7589 100644
--- a/src/mame/includes/vendetta.h
+++ b/src/mame/includes/vendetta.h
@@ -28,7 +28,8 @@ public:
m_k053246(*this, "k053246"),
m_k053251(*this, "k053251"),
m_k053252(*this, "k053252"),
- m_k054000(*this, "k054000") { }
+ m_k054000(*this, "k054000"),
+ m_palette(*this, "palette") { }
/* memory pointers */
UINT8 * m_ram;
@@ -52,6 +53,7 @@ public:
required_device<k053251_device> m_k053251;
optional_device<k053252_device> m_k053252;
optional_device<k054000_device> m_k054000;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(vendetta_eeprom_w);
DECLARE_READ8_MEMBER(vendetta_K052109_r);
DECLARE_WRITE8_MEMBER(vendetta_K052109_w);
diff --git a/src/mame/includes/vicdual.h b/src/mame/includes/vicdual.h
index c4e6b76d949..e0c97451667 100644
--- a/src/mame/includes/vicdual.h
+++ b/src/mame/includes/vicdual.h
@@ -22,7 +22,8 @@ public:
m_coinstate_timer(*this, "coinstate"),
m_nsub_coinage_timer(*this, "nsub_coin"),
m_videoram(*this, "videoram"),
- m_characterram(*this, "characterram")
+ m_characterram(*this, "characterram"),
+ m_screen(*this, "screen")
{ }
required_device<cpu_device> m_maincpu;
@@ -34,6 +35,7 @@ public:
optional_device<timer_device> m_nsub_coinage_timer;
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_characterram;
+ required_device<screen_device> m_screen;
UINT8 m_coin_status;
UINT8 m_palette_bank;
diff --git a/src/mame/includes/victory.h b/src/mame/includes/victory.h
index b88cafb03d6..b2a01ca8bd8 100644
--- a/src/mame/includes/victory.h
+++ b/src/mame/includes/victory.h
@@ -38,7 +38,9 @@ public:
: driver_device(mconfig, type, tag),
m_videoram(*this, "videoram"),
m_charram(*this, "charram") ,
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_charram;
@@ -78,4 +80,6 @@ public:
void update_background();
void update_foreground();
required_device<cpu_device> m_maincpu;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/videopin.h b/src/mame/includes/videopin.h
index 73fe699f7f9..1f5efd09832 100644
--- a/src/mame/includes/videopin.h
+++ b/src/mame/includes/videopin.h
@@ -28,7 +28,9 @@ public:
m_video_ram(*this, "video_ram"),
m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
attotime m_time_pushed;
attotime m_time_released;
@@ -56,6 +58,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ 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/includes/vigilant.h b/src/mame/includes/vigilant.h
index 71732bbe6a3..0e0fcb8fba9 100644
--- a/src/mame/includes/vigilant.h
+++ b/src/mame/includes/vigilant.h
@@ -9,7 +9,8 @@ public:
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_audio(*this, "m72"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_spriteram;
required_shared_ptr<UINT8> m_videoram;
@@ -17,6 +18,7 @@ public:
required_device<cpu_device> m_maincpu;
required_device<m72_audio_device> m_audio;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
int m_horiz_scroll_low;
int m_horiz_scroll_high;
diff --git a/src/mame/includes/volfied.h b/src/mame/includes/volfied.h
index cacb8b48788..952ec228abf 100644
--- a/src/mame/includes/volfied.h
+++ b/src/mame/includes/volfied.h
@@ -18,7 +18,8 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_pc090oj(*this, "pc090oj") { }
+ m_pc090oj(*this, "pc090oj"),
+ m_screen(*this, "screen") { }
/* memory pointers */
UINT16 * m_video_ram;
@@ -39,6 +40,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<pc090oj_device> m_pc090oj;
+ required_device<screen_device> m_screen;
+
DECLARE_WRITE16_MEMBER(volfied_cchip_ctrl_w);
DECLARE_WRITE16_MEMBER(volfied_cchip_bank_w);
DECLARE_WRITE16_MEMBER(volfied_cchip_ram_w);
diff --git a/src/mame/includes/vulgus.h b/src/mame/includes/vulgus.h
index 44a5e22794b..6f8f4947da8 100644
--- a/src/mame/includes/vulgus.h
+++ b/src/mame/includes/vulgus.h
@@ -9,7 +9,8 @@ public:
m_fgvideoram(*this, "fgvideoram"),
m_bgvideoram(*this, "bgvideoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_scroll_low;
required_shared_ptr<UINT8> m_scroll_high;
@@ -32,4 +33,5 @@ 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/includes/warriorb.h b/src/mame/includes/warriorb.h
index 1d3ac3b1115..7b6e3647563 100644
--- a/src/mame/includes/warriorb.h
+++ b/src/mame/includes/warriorb.h
@@ -30,7 +30,8 @@ public:
m_2610_1r(*this, "2610.1.r"),
m_2610_2l(*this, "2610.2.l"),
m_2610_2r(*this, "2610.2.r"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
@@ -54,6 +55,7 @@ public:
required_device<filter_volume_device> m_2610_2l;
required_device<filter_volume_device> m_2610_2r;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_WRITE8_MEMBER(sound_bankswitch_w);
DECLARE_WRITE16_MEMBER(warriorb_sound_w);
diff --git a/src/mame/includes/wc90.h b/src/mame/includes/wc90.h
index 79ff188887f..6443fe57167 100644
--- a/src/mame/includes/wc90.h
+++ b/src/mame/includes/wc90.h
@@ -21,7 +21,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
typedef void (wc90_state::*draw_sprites_func)(bitmap_ind16 &, const rectangle &, int, int, int, int, int );
@@ -73,4 +74,5 @@ 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/includes/wc90b.h b/src/mame/includes/wc90b.h
index 7cb441a4ea5..043dc7b362e 100644
--- a/src/mame/includes/wc90b.h
+++ b/src/mame/includes/wc90b.h
@@ -17,7 +17,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_msm5205next;
int m_toggle;
@@ -53,4 +54,5 @@ public:
required_device<cpu_device> m_audiocpu;
required_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/wecleman.h b/src/mame/includes/wecleman.h
index d0b85d66e08..ef6cbb9d360 100644
--- a/src/mame/includes/wecleman.h
+++ b/src/mame/includes/wecleman.h
@@ -22,7 +22,8 @@ public:
m_k007232_1(*this, "k007232_1"),
m_k007232_2(*this, "k007232_2"),
m_k007232_3(*this, "k007232_3"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
optional_shared_ptr<UINT16> m_videostatus;
optional_shared_ptr<UINT16> m_protection_ram;
@@ -107,6 +108,7 @@ public:
optional_device<k007232_device> m_k007232_2;
optional_device<k007232_device> m_k007232_3;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
/*----------- defined in video/wecleman.c -----------*/
diff --git a/src/mame/includes/wgp.h b/src/mame/includes/wgp.h
index 2acb5b23b0b..257ae9f5ce5 100644
--- a/src/mame/includes/wgp.h
+++ b/src/mame/includes/wgp.h
@@ -32,7 +32,8 @@ public:
m_tc0100scn(*this, "tc0100scn"),
m_tc0140syt(*this, "tc0140syt"),
m_tc0220ioc(*this, "tc0220ioc"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spritemap;
@@ -66,6 +67,7 @@ public:
required_device<tc0140syt_device> m_tc0140syt;
required_device<tc0220ioc_device> m_tc0220ioc;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
DECLARE_READ16_MEMBER(sharedram_r);
DECLARE_WRITE16_MEMBER(sharedram_w);
diff --git a/src/mame/includes/williams.h b/src/mame/includes/williams.h
index fb31a38a546..bb3bb2c90ac 100644
--- a/src/mame/includes/williams.h
+++ b/src/mame/includes/williams.h
@@ -21,7 +21,9 @@ public:
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_soundcpu_b(*this, "soundcpu_b"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
enum
{
@@ -166,6 +168,8 @@ public:
required_device<cpu_device> m_soundcpu;
optional_device<cpu_device> m_soundcpu_b;
optional_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ optional_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/wiping.h b/src/mame/includes/wiping.h
index 6a764397392..dcb3e9ebdc8 100644
--- a/src/mame/includes/wiping.h
+++ b/src/mame/includes/wiping.h
@@ -8,7 +8,8 @@ public:
m_spriteram(*this, "spriteram"),
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_colorram;
@@ -30,4 +31,5 @@ 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/includes/wiz.h b/src/mame/includes/wiz.h
index 17b57b3ed19..cef5548a294 100644
--- a/src/mame/includes/wiz.h
+++ b/src/mame/includes/wiz.h
@@ -16,7 +16,8 @@ public:
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_dsc0;
int m_dsc1;
@@ -66,4 +67,5 @@ public:
required_device<cpu_device> m_audiocpu;
optional_device<discrete_device> m_discrete;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/wolfpack.h b/src/mame/includes/wolfpack.h
index ab143a33ce1..73dc821603b 100644
--- a/src/mame/includes/wolfpack.h
+++ b/src/mame/includes/wolfpack.h
@@ -13,13 +13,17 @@ public:
m_alpha_num_ram(*this, "alpha_num_ram"),
m_maincpu(*this, "maincpu"),
m_s14001a(*this, "speech"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_alpha_num_ram;
required_device<cpu_device> m_maincpu;
required_device<s14001a_device> m_s14001a;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
int m_collision;
unsigned m_current_index;
diff --git a/src/mame/includes/wrally.h b/src/mame/includes/wrally.h
index 7caeb61eabb..52e3a8daa57 100644
--- a/src/mame/includes/wrally.h
+++ b/src/mame/includes/wrally.h
@@ -8,7 +8,8 @@ public:
m_spriteram(*this, "spriteram"),
m_shareram(*this, "shareram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
tilemap_t *m_pant[2];
required_shared_ptr<UINT16> m_videoram;
@@ -30,4 +31,5 @@ public:
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/wwfsstar.h b/src/mame/includes/wwfsstar.h
index 7b966b1fd22..160b2b6a0fe 100644
--- a/src/mame/includes/wwfsstar.h
+++ b/src/mame/includes/wwfsstar.h
@@ -8,7 +8,9 @@ public:
m_bg0_videoram(*this, "bg0_videoram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_vblank;
int m_scrollx;
@@ -35,4 +37,6 @@ 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/includes/xain.h b/src/mame/includes/xain.h
index 41741ac4b29..cc4d4bc1d79 100644
--- a/src/mame/includes/xain.h
+++ b/src/mame/includes/xain.h
@@ -11,7 +11,9 @@ public:
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "sub"),
m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
int m_vblank;
int m_from_main;
@@ -83,4 +85,6 @@ public:
required_device<cpu_device> m_subcpu;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/xexex.h b/src/mame/includes/xexex.h
index c9ade6f34cf..5f7228fb865 100644
--- a/src/mame/includes/xexex.h
+++ b/src/mame/includes/xexex.h
@@ -33,7 +33,8 @@ public:
m_k053250(*this, "k053250"),
m_k053251(*this, "k053251"),
m_k053252(*this, "k053252"),
- m_k054338(*this, "k054338") { }
+ m_k054338(*this, "k054338"),
+ m_screen(*this, "screen") { }
/* memory pointers */
required_shared_ptr<UINT16> m_workram;
@@ -69,6 +70,7 @@ public:
required_device<k053251_device> m_k053251;
required_device<k053252_device> m_k053252;
required_device<k054338_device> m_k054338;
+ required_device<screen_device> m_screen;
DECLARE_READ16_MEMBER(K053247_scattered_word_r);
DECLARE_WRITE16_MEMBER(K053247_scattered_word_w);
DECLARE_READ16_MEMBER(spriteram_mirror_r);
diff --git a/src/mame/includes/xmen.h b/src/mame/includes/xmen.h
index 47d62ff1291..b2cdb4438c5 100644
--- a/src/mame/includes/xmen.h
+++ b/src/mame/includes/xmen.h
@@ -18,7 +18,8 @@ public:
m_k054539(*this, "k054539"),
m_k052109(*this, "k052109"),
m_k053246(*this, "k053246"),
- m_k053251(*this, "k053251") { }
+ m_k053251(*this, "k053251"),
+ m_screen(*this, "screen") { }
/* memory pointers */
// UINT16 * m_paletteram; // currently this uses generic palette handling
@@ -48,6 +49,7 @@ public:
required_device<k052109_device> m_k052109;
required_device<k053247_device> m_k053246;
required_device<k053251_device> m_k053251;
+ required_device<screen_device> m_screen;
DECLARE_WRITE16_MEMBER(eeprom_w);
DECLARE_READ16_MEMBER(sound_status_r);
DECLARE_WRITE16_MEMBER(sound_cmd_w);
diff --git a/src/mame/includes/xorworld.h b/src/mame/includes/xorworld.h
index b2ba5c48d98..76413f3077e 100644
--- a/src/mame/includes/xorworld.h
+++ b/src/mame/includes/xorworld.h
@@ -9,7 +9,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<UINT16> m_videoram;
tilemap_t *m_bg_tilemap;
@@ -29,4 +30,5 @@ 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/includes/xxmissio.h b/src/mame/includes/xxmissio.h
index 0e4bc1a14ba..ae3e19aeea1 100644
--- a/src/mame/includes/xxmissio.h
+++ b/src/mame/includes/xxmissio.h
@@ -8,7 +8,8 @@ public:
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
UINT8 m_status;
required_shared_ptr<UINT8> m_bgram;
@@ -39,4 +40,5 @@ 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/includes/yiear.h b/src/mame/includes/yiear.h
index 5186455df58..3c8313f55b5 100644
--- a/src/mame/includes/yiear.h
+++ b/src/mame/includes/yiear.h
@@ -12,7 +12,8 @@ public:
m_maincpu(*this, "maincpu"),
m_sn(*this, "snsnd"),
m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
/* memory pointers */
required_shared_ptr<UINT8> m_spriteram;
@@ -24,6 +25,7 @@ public:
required_device<sn76489a_device> m_sn;
required_device<vlm5030_device> m_vlm;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
/* video-related */
tilemap_t *m_bg_tilemap;
diff --git a/src/mame/includes/yunsun16.h b/src/mame/includes/yunsun16.h
index cdd4ba04053..0399ed7e3a0 100644
--- a/src/mame/includes/yunsun16.h
+++ b/src/mame/includes/yunsun16.h
@@ -17,7 +17,9 @@ public:
m_spriteram(*this, "spriteram"),
m_audiocpu(*this, "audiocpu"),
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_vram_0;
@@ -52,4 +54,6 @@ public:
DECLARE_WRITE_LINE_MEMBER(soundirq);
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/includes/yunsung8.h b/src/mame/includes/yunsung8.h
index 87d9651fc84..9b9cc3dfc96 100644
--- a/src/mame/includes/yunsung8.h
+++ b/src/mame/includes/yunsung8.h
@@ -13,7 +13,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 */
tilemap_t *m_tilemap_0;
@@ -49,4 +50,5 @@ 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/includes/zac2650.h b/src/mame/includes/zac2650.h
index 6f8852eb97d..e55ba7896d4 100644
--- a/src/mame/includes/zac2650.h
+++ b/src/mame/includes/zac2650.h
@@ -9,7 +9,9 @@ public:
m_s2636_0_ram(*this, "s2636_0_ram"),
m_maincpu(*this, "maincpu"),
m_s2636_sound(*this, "s2636snd"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_s2636_0_ram;
@@ -17,6 +19,8 @@ public:
required_device<cpu_device> m_maincpu;
required_device<s2636_device> m_s2636_sound;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
bitmap_ind16 m_bitmap;
bitmap_ind16 m_spritebitmap;
diff --git a/src/mame/includes/zaccaria.h b/src/mame/includes/zaccaria.h
index 4ee8040a53b..ea2ad1b6973 100644
--- a/src/mame/includes/zaccaria.h
+++ b/src/mame/includes/zaccaria.h
@@ -13,7 +13,8 @@ public:
m_audiocpu(*this, "audiocpu"),
m_audio2(*this, "audio2"),
m_dac2(*this, "dac2"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
int m_dsw;
int m_active_8910;
@@ -60,4 +61,5 @@ public:
required_device<cpu_device> m_audio2;
required_device<dac_device> m_dac2;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/zaxxon.h b/src/mame/includes/zaxxon.h
index 5f8e11fe528..585ae64782b 100644
--- a/src/mame/includes/zaxxon.h
+++ b/src/mame/includes/zaxxon.h
@@ -15,7 +15,8 @@ public:
m_colorram(*this, "colorram"),
m_maincpu(*this, "maincpu"),
m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette") { }
required_shared_ptr<UINT8> m_videoram;
optional_shared_ptr<UINT8> m_spriteram;
@@ -91,6 +92,7 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<samples_device> m_samples;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
};
diff --git a/src/mame/includes/zodiack.h b/src/mame/includes/zodiack.h
index baf232d0572..393e41b17f6 100644
--- a/src/mame/includes/zodiack.h
+++ b/src/mame/includes/zodiack.h
@@ -13,7 +13,8 @@ public:
m_attributeram(*this, "attributeram"),
m_spriteram(*this, "spriteram"),
m_bulletsram(*this, "bulletsram"),
- m_gfxdecode(*this, "gfxdecode")
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
{ }
// in drivers/zodiack.c
@@ -43,6 +44,7 @@ public:
required_shared_ptr<UINT8> m_bulletsram;
required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
// state
tilemap_t *m_bg_tilemap;