summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Alex W. Jackson <alex.w.jackson@gmail.com>2014-03-15 07:34:54 +0000
committerGravatarGravatar Alex W. Jackson <alex.w.jackson@gmail.com>2014-03-15 07:34:54 +0000
commit25db822531d1e3533f9c65baa656a6b548a30082 (patch) (github)
tree27008f49daa85c4e2bf76de9c83eb960817c7d15
parent9a3885ad4e113354c87fc063908d8bd7e7a4699d (diff)
downloadmame-25db822531d1e3533f9c65baa656a6b548a30082.tar.bz2
mame-25db822531d1e3533f9c65baa656a6b548a30082.zip
Checkpoint 2:
gfxdecode devices must now be assigned a palette in MCFG. Added palette devices to several MESS drivers and devices to comply with this requirement. This palette is assigned as a default to the gfx_elements created by the device (but still not used for drawing yet, except in the UI graphics viewer) Tilemaps now have a pointer to a palette device and use that palette for rgb32 drawing, rather than the palette of the screen or bitmap they are drawing to (since rgb32 screens don't have palettes now). When a tilemap is created, it takes its palette from the gfxdecode device it was created with, but you can change a tilemap's palette device with set_palette() at any time (doing this does not mark the tilemap dirty, since all tilemaps use indexed bitmaps internally)
-rw-r--r--src/emu/bus/c64/xl80.c2
-rw-r--r--src/emu/bus/comx35/clm.c2
-rw-r--r--src/emu/bus/iq151/video32.c4
-rw-r--r--src/emu/bus/iq151/video64.c4
-rw-r--r--src/emu/bus/isa/mda.c4
-rw-r--r--src/emu/drawgfx.c7
-rw-r--r--src/emu/drawgfx.h20
-rw-r--r--src/emu/machine/terminal.c14
-rw-r--r--src/emu/machine/terminal.h1
-rw-r--r--src/emu/sound/cdp1869.c33
-rw-r--r--src/emu/sound/cdp1869.h7
-rw-r--r--src/emu/tilemap.c21
-rw-r--r--src/emu/tilemap.h11
-rw-r--r--src/emu/ui/viewgfx.c18
-rw-r--r--src/emu/video/mc6845.c59
-rw-r--r--src/emu/video/mc6845.h4
-rw-r--r--src/mame/drivers/1942.c4
-rw-r--r--src/mame/drivers/1943.c2
-rw-r--r--src/mame/drivers/1945kiii.c2
-rw-r--r--src/mame/drivers/2mindril.c2
-rw-r--r--src/mame/drivers/3x3puzzl.c2
-rw-r--r--src/mame/drivers/40love.c4
-rw-r--r--src/mame/drivers/4enraya.c2
-rw-r--r--src/mame/drivers/4roses.c2
-rw-r--r--src/mame/drivers/5clown.c2
-rw-r--r--src/mame/drivers/88games.c2
-rw-r--r--src/mame/drivers/ace.c2
-rw-r--r--src/mame/drivers/acefruit.c2
-rw-r--r--src/mame/drivers/acommand.c2
-rw-r--r--src/mame/drivers/actfancr.c4
-rw-r--r--src/mame/drivers/aeroboto.c2
-rw-r--r--src/mame/drivers/aerofgt.c24
-rw-r--r--src/mame/drivers/airbustr.c2
-rw-r--r--src/mame/drivers/ajax.c2
-rw-r--r--src/mame/drivers/albazc.c2
-rw-r--r--src/mame/drivers/albazg.c2
-rw-r--r--src/mame/drivers/aliens.c2
-rw-r--r--src/mame/drivers/alpha68k.c18
-rw-r--r--src/mame/drivers/amaticmg.c2
-rw-r--r--src/mame/drivers/ambush.c2
-rw-r--r--src/mame/drivers/ampoker2.c2
-rw-r--r--src/mame/drivers/amspdwy.c2
-rw-r--r--src/mame/drivers/angelkds.c2
-rw-r--r--src/mame/drivers/appoooh.c4
-rw-r--r--src/mame/drivers/aquarium.c2
-rw-r--r--src/mame/drivers/arcadecl.c2
-rw-r--r--src/mame/drivers/argus.c6
-rw-r--r--src/mame/drivers/aristmk4.c2
-rw-r--r--src/mame/drivers/arkanoid.c6
-rw-r--r--src/mame/drivers/armedf.c16
-rw-r--r--src/mame/drivers/ashnojoe.c2
-rw-r--r--src/mame/drivers/asterix.c2
-rw-r--r--src/mame/drivers/astrcorp.c4
-rw-r--r--src/mame/drivers/asuka.c12
-rw-r--r--src/mame/drivers/atarifb.c2
-rw-r--r--src/mame/drivers/atarig1.c2
-rw-r--r--src/mame/drivers/atarig42.c2
-rw-r--r--src/mame/drivers/atarigt.c2
-rw-r--r--src/mame/drivers/atarigx2.c2
-rw-r--r--src/mame/drivers/atarisy1.c2
-rw-r--r--src/mame/drivers/atarisy2.c2
-rw-r--r--src/mame/drivers/atetris.c4
-rw-r--r--src/mame/drivers/avt.c2
-rw-r--r--src/mame/drivers/backfire.c2
-rw-r--r--src/mame/drivers/badlands.c4
-rw-r--r--src/mame/drivers/bagman.c6
-rw-r--r--src/mame/drivers/bankp.c2
-rw-r--r--src/mame/drivers/baraduke.c2
-rw-r--r--src/mame/drivers/batman.c2
-rw-r--r--src/mame/drivers/battlane.c2
-rw-r--r--src/mame/drivers/battlera.c2
-rw-r--r--src/mame/drivers/battlex.c2
-rw-r--r--src/mame/drivers/battlnts.c2
-rw-r--r--src/mame/drivers/bbusters.c4
-rw-r--r--src/mame/drivers/bestleag.c2
-rw-r--r--src/mame/drivers/bigevglf.c2
-rw-r--r--src/mame/drivers/bigstrkb.c2
-rw-r--r--src/mame/drivers/bingoman.c2
-rw-r--r--src/mame/drivers/bingor.c2
-rw-r--r--src/mame/drivers/bionicc.c2
-rw-r--r--src/mame/drivers/bishi.c2
-rw-r--r--src/mame/drivers/bking.c2
-rw-r--r--src/mame/drivers/blackt96.c2
-rw-r--r--src/mame/drivers/bladestl.c2
-rw-r--r--src/mame/drivers/blitz.c2
-rw-r--r--src/mame/drivers/blktiger.c2
-rw-r--r--src/mame/drivers/blmbycar.c4
-rw-r--r--src/mame/drivers/blockade.c2
-rw-r--r--src/mame/drivers/blockhl.c2
-rw-r--r--src/mame/drivers/bloodbro.c2
-rw-r--r--src/mame/drivers/blstroid.c2
-rw-r--r--src/mame/drivers/blueprnt.c2
-rw-r--r--src/mame/drivers/bmcpokr.c2
-rw-r--r--src/mame/drivers/bnstars.c2
-rw-r--r--src/mame/drivers/bogeyman.c2
-rw-r--r--src/mame/drivers/bombjack.c2
-rw-r--r--src/mame/drivers/boogwing.c2
-rw-r--r--src/mame/drivers/bottom9.c2
-rw-r--r--src/mame/drivers/boxer.c2
-rw-r--r--src/mame/drivers/brkthru.c4
-rw-r--r--src/mame/drivers/bsktball.c2
-rw-r--r--src/mame/drivers/btime.c2
-rw-r--r--src/mame/drivers/bublbobl.c4
-rw-r--r--src/mame/drivers/buggychl.c2
-rw-r--r--src/mame/drivers/buster.c2
-rw-r--r--src/mame/drivers/bwing.c2
-rw-r--r--src/mame/drivers/cabal.c4
-rw-r--r--src/mame/drivers/cabaret.c2
-rw-r--r--src/mame/drivers/calomega.c2
-rw-r--r--src/mame/drivers/calorie.c2
-rw-r--r--src/mame/drivers/canyon.c2
-rw-r--r--src/mame/drivers/cardline.c2
-rw-r--r--src/mame/drivers/carjmbre.c2
-rw-r--r--src/mame/drivers/carpolo.c2
-rw-r--r--src/mame/drivers/carrera.c2
-rw-r--r--src/mame/drivers/caswin.c2
-rw-r--r--src/mame/drivers/cave.c32
-rw-r--r--src/mame/drivers/cb2001.c2
-rw-r--r--src/mame/drivers/cball.c2
-rw-r--r--src/mame/drivers/cbasebal.c2
-rw-r--r--src/mame/drivers/cbuster.c2
-rw-r--r--src/mame/drivers/ccastles.c2
-rw-r--r--src/mame/drivers/cchance.c2
-rw-r--r--src/mame/drivers/cclimber.c4
-rw-r--r--src/mame/drivers/centiped.c4
-rw-r--r--src/mame/drivers/chaknpop.c2
-rw-r--r--src/mame/drivers/cham24.c2
-rw-r--r--src/mame/drivers/champbas.c8
-rw-r--r--src/mame/drivers/champbwl.c4
-rw-r--r--src/mame/drivers/chanbara.c2
-rw-r--r--src/mame/drivers/chance32.c2
-rw-r--r--src/mame/drivers/cheekyms.c2
-rw-r--r--src/mame/drivers/chinagat.c6
-rw-r--r--src/mame/drivers/chinsan.c2
-rw-r--r--src/mame/drivers/chqflag.c2
-rw-r--r--src/mame/drivers/chsuper.c2
-rw-r--r--src/mame/drivers/circus.c8
-rw-r--r--src/mame/drivers/circusc.c2
-rw-r--r--src/mame/drivers/cischeat.c4
-rw-r--r--src/mame/drivers/citycon.c2
-rw-r--r--src/mame/drivers/cloak.c2
-rw-r--r--src/mame/drivers/cloud9.c2
-rw-r--r--src/mame/drivers/clshroad.c4
-rw-r--r--src/mame/drivers/cmmb.c2
-rw-r--r--src/mame/drivers/cninja.c12
-rw-r--r--src/mame/drivers/cntsteer.c4
-rw-r--r--src/mame/drivers/cobra.c2
-rw-r--r--src/mame/drivers/coinmstr.c2
-rw-r--r--src/mame/drivers/coinmvga.c2
-rw-r--r--src/mame/drivers/combatsc.c4
-rw-r--r--src/mame/drivers/commando.c2
-rw-r--r--src/mame/drivers/compgolf.c2
-rw-r--r--src/mame/drivers/contra.c2
-rw-r--r--src/mame/drivers/coolridr.c2
-rw-r--r--src/mame/drivers/cop01.c4
-rw-r--r--src/mame/drivers/copsnrob.c2
-rw-r--r--src/mame/drivers/cosmic.c8
-rw-r--r--src/mame/drivers/cps1.c2
-rw-r--r--src/mame/drivers/cps2.c2
-rw-r--r--src/mame/drivers/cps3.c2
-rw-r--r--src/mame/drivers/crbaloon.c2
-rw-r--r--src/mame/drivers/crimfght.c2
-rw-r--r--src/mame/drivers/crospang.c2
-rw-r--r--src/mame/drivers/crshrace.c2
-rw-r--r--src/mame/drivers/cshooter.c2
-rw-r--r--src/mame/drivers/cswat.c2
-rw-r--r--src/mame/drivers/cultures.c2
-rw-r--r--src/mame/drivers/cvs.c2
-rw-r--r--src/mame/drivers/cyberbal.c4
-rw-r--r--src/mame/drivers/cybertnk.c2
-rw-r--r--src/mame/drivers/cyclemb.c2
-rw-r--r--src/mame/drivers/d9final.c2
-rw-r--r--src/mame/drivers/dacholer.c2
-rw-r--r--src/mame/drivers/dambustr.c2
-rw-r--r--src/mame/drivers/darius.c2
-rw-r--r--src/mame/drivers/darkmist.c2
-rw-r--r--src/mame/drivers/darkseal.c2
-rw-r--r--src/mame/drivers/dassault.c2
-rw-r--r--src/mame/drivers/dblcrown.c2
-rw-r--r--src/mame/drivers/dblewing.c2
-rw-r--r--src/mame/drivers/dbz.c2
-rw-r--r--src/mame/drivers/dcon.c4
-rw-r--r--src/mame/drivers/dday.c2
-rw-r--r--src/mame/drivers/ddayjlc.c2
-rw-r--r--src/mame/drivers/ddealer.c2
-rw-r--r--src/mame/drivers/ddragon.c6
-rw-r--r--src/mame/drivers/ddragon3.c4
-rw-r--r--src/mame/drivers/ddribble.c2
-rw-r--r--src/mame/drivers/deadang.c2
-rw-r--r--src/mame/drivers/dec0.c6
-rw-r--r--src/mame/drivers/dec8.c18
-rw-r--r--src/mame/drivers/deco156.c4
-rw-r--r--src/mame/drivers/deco32.c14
-rw-r--r--src/mame/drivers/deco_ld.c2
-rw-r--r--src/mame/drivers/deco_mlc.c4
-rw-r--r--src/mame/drivers/decocass.c2
-rw-r--r--src/mame/drivers/deniam.c4
-rw-r--r--src/mame/drivers/destroyr.c2
-rw-r--r--src/mame/drivers/dfruit.c2
-rw-r--r--src/mame/drivers/dietgo.c2
-rw-r--r--src/mame/drivers/discoboy.c2
-rw-r--r--src/mame/drivers/diverboy.c2
-rw-r--r--src/mame/drivers/djboy.c2
-rw-r--r--src/mame/drivers/djmain.c2
-rw-r--r--src/mame/drivers/dkong.c4
-rw-r--r--src/mame/drivers/dlair.c2
-rw-r--r--src/mame/drivers/dlair2.c2
-rw-r--r--src/mame/drivers/dmndrby.c2
-rw-r--r--src/mame/drivers/docastle.c2
-rw-r--r--src/mame/drivers/dogfgt.c2
-rw-r--r--src/mame/drivers/dominob.c2
-rw-r--r--src/mame/drivers/dooyong.c18
-rw-r--r--src/mame/drivers/dragrace.c2
-rw-r--r--src/mame/drivers/dreambal.c2
-rw-r--r--src/mame/drivers/dreamwld.c2
-rw-r--r--src/mame/drivers/drgnmst.c2
-rw-r--r--src/mame/drivers/drmicro.c2
-rw-r--r--src/mame/drivers/drtomy.c2
-rw-r--r--src/mame/drivers/drw80pkr.c2
-rw-r--r--src/mame/drivers/dunhuang.c2
-rw-r--r--src/mame/drivers/dwarfd.c2
-rw-r--r--src/mame/drivers/dynadice.c2
-rw-r--r--src/mame/drivers/dynduke.c2
-rw-r--r--src/mame/drivers/egghunt.c2
-rw-r--r--src/mame/drivers/eprom.c6
-rw-r--r--src/mame/drivers/equites.c4
-rw-r--r--src/mame/drivers/esd16.c2
-rw-r--r--src/mame/drivers/esh.c2
-rw-r--r--src/mame/drivers/espial.c2
-rw-r--r--src/mame/drivers/ettrivia.c2
-rw-r--r--src/mame/drivers/exedexes.c2
-rw-r--r--src/mame/drivers/exerion.c2
-rw-r--r--src/mame/drivers/exidy.c2
-rw-r--r--src/mame/drivers/expro02.c2
-rw-r--r--src/mame/drivers/exprraid.c2
-rw-r--r--src/mame/drivers/exzisus.c2
-rw-r--r--src/mame/drivers/f1gp.c4
-rw-r--r--src/mame/drivers/famibox.c2
-rw-r--r--src/mame/drivers/fantland.c8
-rw-r--r--src/mame/drivers/fastfred.c2
-rw-r--r--src/mame/drivers/fastlane.c2
-rw-r--r--src/mame/drivers/fcombat.c2
-rw-r--r--src/mame/drivers/fcrash.c18
-rw-r--r--src/mame/drivers/feversoc.c2
-rw-r--r--src/mame/drivers/fgoal.c2
-rw-r--r--src/mame/drivers/finalizr.c2
-rw-r--r--src/mame/drivers/firefox.c2
-rw-r--r--src/mame/drivers/firetrap.c4
-rw-r--r--src/mame/drivers/firetrk.c2
-rw-r--r--src/mame/drivers/fitfight.c4
-rw-r--r--src/mame/drivers/flipjack.c2
-rw-r--r--src/mame/drivers/flkatck.c2
-rw-r--r--src/mame/drivers/flower.c2
-rw-r--r--src/mame/drivers/flstory.c8
-rw-r--r--src/mame/drivers/flyball.c2
-rw-r--r--src/mame/drivers/foodf.c2
-rw-r--r--src/mame/drivers/fortecar.c2
-rw-r--r--src/mame/drivers/freekick.c2
-rw-r--r--src/mame/drivers/fresh.c2
-rw-r--r--src/mame/drivers/fromanc2.c6
-rw-r--r--src/mame/drivers/fromance.c6
-rw-r--r--src/mame/drivers/funkybee.c2
-rw-r--r--src/mame/drivers/funkyjet.c2
-rw-r--r--src/mame/drivers/funworld.c2
-rw-r--r--src/mame/drivers/funybubl.c2
-rw-r--r--src/mame/drivers/fuukifg2.c2
-rw-r--r--src/mame/drivers/fuukifg3.c2
-rw-r--r--src/mame/drivers/gaelco.c8
-rw-r--r--src/mame/drivers/gaelco2.c12
-rw-r--r--src/mame/drivers/gaiden.c6
-rw-r--r--src/mame/drivers/gal3.c2
-rw-r--r--src/mame/drivers/galaga.c8
-rw-r--r--src/mame/drivers/galastrm.c2
-rw-r--r--src/mame/drivers/galaxi.c2
-rw-r--r--src/mame/drivers/galaxia.c4
-rw-r--r--src/mame/drivers/galaxian.c2
-rw-r--r--src/mame/drivers/galaxold.c8
-rw-r--r--src/mame/drivers/galivan.c4
-rw-r--r--src/mame/drivers/galpani2.c2
-rw-r--r--src/mame/drivers/galpanic.c2
-rw-r--r--src/mame/drivers/galspnbl.c2
-rw-r--r--src/mame/drivers/gamecstl.c2
-rw-r--r--src/mame/drivers/gaplus.c2
-rw-r--r--src/mame/drivers/gatron.c2
-rw-r--r--src/mame/drivers/gauntlet.c2
-rw-r--r--src/mame/drivers/gberet.c4
-rw-r--r--src/mame/drivers/gbusters.c2
-rw-r--r--src/mame/drivers/gcpinbal.c2
-rw-r--r--src/mame/drivers/gijoe.c2
-rw-r--r--src/mame/drivers/ginganin.c2
-rw-r--r--src/mame/drivers/gladiatr.c4
-rw-r--r--src/mame/drivers/glass.c2
-rw-r--r--src/mame/drivers/gluck2.c2
-rw-r--r--src/mame/drivers/gng.c2
-rw-r--r--src/mame/drivers/go2000.c2
-rw-r--r--src/mame/drivers/goal92.c2
-rw-r--r--src/mame/drivers/goindol.c2
-rw-r--r--src/mame/drivers/goldngam.c2
-rw-r--r--src/mame/drivers/goldnpkr.c2
-rw-r--r--src/mame/drivers/goldstar.c54
-rw-r--r--src/mame/drivers/gomoku.c2
-rw-r--r--src/mame/drivers/good.c2
-rw-r--r--src/mame/drivers/goodejan.c2
-rw-r--r--src/mame/drivers/gotcha.c2
-rw-r--r--src/mame/drivers/gottlieb.c2
-rw-r--r--src/mame/drivers/gotya.c2
-rw-r--r--src/mame/drivers/gpworld.c2
-rw-r--r--src/mame/drivers/gradius3.c2
-rw-r--r--src/mame/drivers/grchamp.c2
-rw-r--r--src/mame/drivers/groundfx.c2
-rw-r--r--src/mame/drivers/gstream.c4
-rw-r--r--src/mame/drivers/gstriker.c4
-rw-r--r--src/mame/drivers/gsword.c4
-rw-r--r--src/mame/drivers/gticlub.c4
-rw-r--r--src/mame/drivers/gumbo.c2
-rw-r--r--src/mame/drivers/gunbustr.c2
-rw-r--r--src/mame/drivers/gundealr.c2
-rw-r--r--src/mame/drivers/gunpey.c2
-rw-r--r--src/mame/drivers/gunsmoke.c2
-rw-r--r--src/mame/drivers/gyruss.c2
-rw-r--r--src/mame/drivers/hanaawas.c2
-rw-r--r--src/mame/drivers/hcastle.c2
-rw-r--r--src/mame/drivers/headonb.c2
-rw-r--r--src/mame/drivers/hexion.c2
-rw-r--r--src/mame/drivers/hideseek.c2
-rw-r--r--src/mame/drivers/higemaru.c2
-rw-r--r--src/mame/drivers/himesiki.c2
-rw-r--r--src/mame/drivers/hitme.c2
-rw-r--r--src/mame/drivers/hitpoker.c2
-rw-r--r--src/mame/drivers/hng64.c2
-rw-r--r--src/mame/drivers/holeland.c4
-rw-r--r--src/mame/drivers/homedata.c8
-rw-r--r--src/mame/drivers/homerun.c2
-rw-r--r--src/mame/drivers/hornet.c2
-rw-r--r--src/mame/drivers/hvyunit.c2
-rw-r--r--src/mame/drivers/hyperspt.c2
-rw-r--r--src/mame/drivers/hyprduel.c4
-rw-r--r--src/mame/drivers/ichiban.c2
-rw-r--r--src/mame/drivers/igs009.c2
-rw-r--r--src/mame/drivers/igs011.c8
-rw-r--r--src/mame/drivers/igs017.c18
-rw-r--r--src/mame/drivers/igs_m027.c2
-rw-r--r--src/mame/drivers/igspoker.c2
-rw-r--r--src/mame/drivers/ikki.c2
-rw-r--r--src/mame/drivers/intrscti.c2
-rw-r--r--src/mame/drivers/inufuku.c2
-rw-r--r--src/mame/drivers/iqblock.c2
-rw-r--r--src/mame/drivers/irobot.c2
-rw-r--r--src/mame/drivers/ironhors.c2
-rw-r--r--src/mame/drivers/istellar.c2
-rw-r--r--src/mame/drivers/itgambl2.c2
-rw-r--r--src/mame/drivers/itgambl3.c2
-rw-r--r--src/mame/drivers/itgamble.c2
-rw-r--r--src/mame/drivers/jack.c2
-rw-r--r--src/mame/drivers/jackal.c2
-rw-r--r--src/mame/drivers/jackie.c2
-rw-r--r--src/mame/drivers/jackpool.c2
-rw-r--r--src/mame/drivers/jailbrek.c2
-rw-r--r--src/mame/drivers/jalmah.c2
-rw-r--r--src/mame/drivers/jchan.c2
-rw-r--r--src/mame/drivers/jclub2.c6
-rw-r--r--src/mame/drivers/jokrwild.c2
-rw-r--r--src/mame/drivers/jollyjgr.c2
-rw-r--r--src/mame/drivers/jrpacman.c2
-rw-r--r--src/mame/drivers/jubilee.c2
-rw-r--r--src/mame/drivers/kaneko16.c12
-rw-r--r--src/mame/drivers/karnov.c4
-rw-r--r--src/mame/drivers/kchamp.c4
-rw-r--r--src/mame/drivers/kickgoal.c4
-rw-r--r--src/mame/drivers/kingdrby.c2
-rw-r--r--src/mame/drivers/kingobox.c4
-rw-r--r--src/mame/drivers/klax.c2
-rw-r--r--src/mame/drivers/kncljoe.c2
-rw-r--r--src/mame/drivers/koftball.c2
-rw-r--r--src/mame/drivers/koikoi.c2
-rw-r--r--src/mame/drivers/konamigx.c2
-rw-r--r--src/mame/drivers/kopunch.c2
-rw-r--r--src/mame/drivers/ksayakyu.c2
-rw-r--r--src/mame/drivers/kyugo.c2
-rw-r--r--src/mame/drivers/labyrunr.c2
-rw-r--r--src/mame/drivers/ladybug.c4
-rw-r--r--src/mame/drivers/ladyfrog.c2
-rw-r--r--src/mame/drivers/laserbat.c4
-rw-r--r--src/mame/drivers/lasso.c2
-rw-r--r--src/mame/drivers/lastbank.c2
-rw-r--r--src/mame/drivers/lastduel.c4
-rw-r--r--src/mame/drivers/lazercmd.c6
-rw-r--r--src/mame/drivers/lbeach.c2
-rw-r--r--src/mame/drivers/legionna.c14
-rw-r--r--src/mame/drivers/lemmings.c2
-rw-r--r--src/mame/drivers/lethal.c2
-rw-r--r--src/mame/drivers/lgp.c2
-rw-r--r--src/mame/drivers/liberate.c4
-rw-r--r--src/mame/drivers/limenko.c4
-rw-r--r--src/mame/drivers/lkage.c4
-rw-r--r--src/mame/drivers/lockon.c2
-rw-r--r--src/mame/drivers/looping.c2
-rw-r--r--src/mame/drivers/lordgun.c4
-rw-r--r--src/mame/drivers/lsasquad.c4
-rw-r--r--src/mame/drivers/ltcasino.c2
-rw-r--r--src/mame/drivers/luckgrln.c2
-rw-r--r--src/mame/drivers/lucky74.c2
-rw-r--r--src/mame/drivers/lvcards.c2
-rw-r--r--src/mame/drivers/lwings.c2
-rw-r--r--src/mame/drivers/m10.c4
-rw-r--r--src/mame/drivers/m107.c2
-rw-r--r--src/mame/drivers/m14.c2
-rw-r--r--src/mame/drivers/m52.c2
-rw-r--r--src/mame/drivers/m57.c2
-rw-r--r--src/mame/drivers/m58.c2
-rw-r--r--src/mame/drivers/m62.c2
-rw-r--r--src/mame/drivers/m63.c4
-rw-r--r--src/mame/drivers/m72.c26
-rw-r--r--src/mame/drivers/m90.c2
-rw-r--r--src/mame/drivers/m92.c2
-rw-r--r--src/mame/drivers/macrossp.c2
-rw-r--r--src/mame/drivers/macs.c2
-rw-r--r--src/mame/drivers/madmotor.c2
-rw-r--r--src/mame/drivers/magic10.c2
-rw-r--r--src/mame/drivers/magicfly.c2
-rw-r--r--src/mame/drivers/magmax.c2
-rw-r--r--src/mame/drivers/mainevt.c4
-rw-r--r--src/mame/drivers/mainsnk.c2
-rw-r--r--src/mame/drivers/majorpkr.c2
-rw-r--r--src/mame/drivers/malzak.c2
-rw-r--r--src/mame/drivers/mappy.c6
-rw-r--r--src/mame/drivers/marineb.c2
-rw-r--r--src/mame/drivers/marinedt.c2
-rw-r--r--src/mame/drivers/mario.c2
-rw-r--r--src/mame/drivers/markham.c2
-rw-r--r--src/mame/drivers/mastboy.c2
-rw-r--r--src/mame/drivers/matmania.c4
-rw-r--r--src/mame/drivers/mayumi.c2
-rw-r--r--src/mame/drivers/mcatadv.c2
-rw-r--r--src/mame/drivers/mcr.c2
-rw-r--r--src/mame/drivers/mcr3.c4
-rw-r--r--src/mame/drivers/mcr68.c4
-rw-r--r--src/mame/drivers/meadows.c6
-rw-r--r--src/mame/drivers/mediagx.c2
-rw-r--r--src/mame/drivers/megaphx.c2
-rw-r--r--src/mame/drivers/megasys1.c8
-rw-r--r--src/mame/drivers/megazone.c2
-rw-r--r--src/mame/drivers/mermaid.c2
-rw-r--r--src/mame/drivers/metlclsh.c2
-rw-r--r--src/mame/drivers/metro.c50
-rw-r--r--src/mame/drivers/mexico86.c2
-rw-r--r--src/mame/drivers/mgolf.c2
-rw-r--r--src/mame/drivers/midas.c4
-rw-r--r--src/mame/drivers/mikie.c2
-rw-r--r--src/mame/drivers/mil4000.c2
-rw-r--r--src/mame/drivers/miniboy7.c2
-rw-r--r--src/mame/drivers/mirage.c2
-rw-r--r--src/mame/drivers/mirax.c2
-rw-r--r--src/mame/drivers/missb2.c3
-rw-r--r--src/mame/drivers/mitchell.c10
-rw-r--r--src/mame/drivers/mjkjidai.c2
-rw-r--r--src/mame/drivers/model1.c4
-rw-r--r--src/mame/drivers/model2.c8
-rw-r--r--src/mame/drivers/mogura.c2
-rw-r--r--src/mame/drivers/mole.c2
-rw-r--r--src/mame/drivers/momoko.c2
-rw-r--r--src/mame/drivers/monzagp.c2
-rw-r--r--src/mame/drivers/moo.c4
-rw-r--r--src/mame/drivers/mosaic.c2
-rw-r--r--src/mame/drivers/mouser.c2
-rw-r--r--src/mame/drivers/mpoker.c2
-rw-r--r--src/mame/drivers/mpu12wbk.c2
-rw-r--r--src/mame/drivers/mpu4dealem.c2
-rw-r--r--src/mame/drivers/mpu4vid.c2
-rw-r--r--src/mame/drivers/mrdo.c2
-rw-r--r--src/mame/drivers/mrflea.c2
-rw-r--r--src/mame/drivers/mrjong.c2
-rw-r--r--src/mame/drivers/ms32.c2
-rw-r--r--src/mame/drivers/msisaac.c2
-rw-r--r--src/mame/drivers/mugsmash.c2
-rw-r--r--src/mame/drivers/multfish.c2
-rw-r--r--src/mame/drivers/multigam.c2
-rw-r--r--src/mame/drivers/munchmo.c2
-rw-r--r--src/mame/drivers/murogem.c2
-rw-r--r--src/mame/drivers/murogmbl.c2
-rw-r--r--src/mame/drivers/mustache.c2
-rw-r--r--src/mame/drivers/mwarr.c2
-rw-r--r--src/mame/drivers/mystwarr.c2
-rw-r--r--src/mame/drivers/namcofl.c2
-rw-r--r--src/mame/drivers/namcoic.c2
-rw-r--r--src/mame/drivers/namcona1.c2
-rw-r--r--src/mame/drivers/namconb1.c4
-rw-r--r--src/mame/drivers/namcond1.c2
-rw-r--r--src/mame/drivers/namcos1.c2
-rw-r--r--src/mame/drivers/namcos2.c14
-rw-r--r--src/mame/drivers/namcos21.c6
-rw-r--r--src/mame/drivers/namcos22.c4
-rw-r--r--src/mame/drivers/namcos23.c6
-rw-r--r--src/mame/drivers/namcos86.c2
-rw-r--r--src/mame/drivers/naughtyb.c4
-rw-r--r--src/mame/drivers/nemesis.c20
-rw-r--r--src/mame/drivers/neoprint.c4
-rw-r--r--src/mame/drivers/neptunp2.c2
-rw-r--r--src/mame/drivers/news.c2
-rw-r--r--src/mame/drivers/ninjakd2.c2
-rw-r--r--src/mame/drivers/ninjaw.c4
-rw-r--r--src/mame/drivers/nitedrvr.c2
-rw-r--r--src/mame/drivers/nmg5.c2
-rw-r--r--src/mame/drivers/nmk16.c48
-rw-r--r--src/mame/drivers/norautp.c2
-rw-r--r--src/mame/drivers/nova2001.c8
-rw-r--r--src/mame/drivers/nsmpoker.c2
-rw-r--r--src/mame/drivers/nwk-tr.c2
-rw-r--r--src/mame/drivers/nycaptor.c6
-rw-r--r--src/mame/drivers/offtwall.c2
-rw-r--r--src/mame/drivers/ohmygod.c2
-rw-r--r--src/mame/drivers/ojankohs.c6
-rw-r--r--src/mame/drivers/olibochu.c2
-rw-r--r--src/mame/drivers/oneshot.c2
-rw-r--r--src/mame/drivers/onetwo.c2
-rw-r--r--src/mame/drivers/opwolf.c4
-rw-r--r--src/mame/drivers/orbit.c2
-rw-r--r--src/mame/drivers/othunder.c2
-rw-r--r--src/mame/drivers/overdriv.c4
-rw-r--r--src/mame/drivers/pacland.c2
-rw-r--r--src/mame/drivers/pacman.c2
-rw-r--r--src/mame/drivers/pandoras.c2
-rw-r--r--src/mame/drivers/panicr.c2
-rw-r--r--src/mame/drivers/paradise.c2
-rw-r--r--src/mame/drivers/paranoia.c2
-rw-r--r--src/mame/drivers/parodius.c2
-rw-r--r--src/mame/drivers/pass.c2
-rw-r--r--src/mame/drivers/pbaction.c2
-rw-r--r--src/mame/drivers/pcktgal.c2
-rw-r--r--src/mame/drivers/pcxt.c2
-rw-r--r--src/mame/drivers/pengo.c2
-rw-r--r--src/mame/drivers/peplus.c2
-rw-r--r--src/mame/drivers/pgm.c2
-rw-r--r--src/mame/drivers/pgm2.c2
-rw-r--r--src/mame/drivers/phoenix.c4
-rw-r--r--src/mame/drivers/photoply.c2
-rw-r--r--src/mame/drivers/pinball2k.c2
-rw-r--r--src/mame/drivers/pingpong.c2
-rw-r--r--src/mame/drivers/pinkiri8.c2
-rw-r--r--src/mame/drivers/pipedrm.c4
-rw-r--r--src/mame/drivers/pipeline.c2
-rw-r--r--src/mame/drivers/pirates.c2
-rw-r--r--src/mame/drivers/pitnrun.c2
-rw-r--r--src/mame/drivers/pkscram.c2
-rw-r--r--src/mame/drivers/pktgaldx.c4
-rw-r--r--src/mame/drivers/playch10.c2
-rw-r--r--src/mame/drivers/playmark.c12
-rw-r--r--src/mame/drivers/plygonet.c2
-rw-r--r--src/mame/drivers/pokechmp.c2
-rw-r--r--src/mame/drivers/poker72.c2
-rw-r--r--src/mame/drivers/polepos.c4
-rw-r--r--src/mame/drivers/polyplay.c2
-rw-r--r--src/mame/drivers/poolshrk.c2
-rw-r--r--src/mame/drivers/pooyan.c2
-rw-r--r--src/mame/drivers/popeye.c2
-rw-r--r--src/mame/drivers/popobear.c2
-rw-r--r--src/mame/drivers/popper.c2
-rw-r--r--src/mame/drivers/portrait.c2
-rw-r--r--src/mame/drivers/powerbal.c4
-rw-r--r--src/mame/drivers/powerins.c2
-rw-r--r--src/mame/drivers/ppmast93.c2
-rw-r--r--src/mame/drivers/prehisle.c2
-rw-r--r--src/mame/drivers/progolf.c2
-rw-r--r--src/mame/drivers/psikyo.c8
-rw-r--r--src/mame/drivers/psikyo4.c2
-rw-r--r--src/mame/drivers/psikyosh.c2
-rw-r--r--src/mame/drivers/psychic5.c4
-rw-r--r--src/mame/drivers/pturn.c2
-rw-r--r--src/mame/drivers/punchout.c2
-rw-r--r--src/mame/drivers/pushman.c4
-rw-r--r--src/mame/drivers/pzletime.c2
-rw-r--r--src/mame/drivers/qdrmfgp.c4
-rw-r--r--src/mame/drivers/quasar.c2
-rw-r--r--src/mame/drivers/quizdna.c2
-rw-r--r--src/mame/drivers/quizpani.c2
-rw-r--r--src/mame/drivers/quizpun2.c2
-rw-r--r--src/mame/drivers/quizshow.c2
-rw-r--r--src/mame/drivers/r2dx_v33.c4
-rw-r--r--src/mame/drivers/rabbit.c2
-rw-r--r--src/mame/drivers/raiden.c2
-rw-r--r--src/mame/drivers/raiden2.c4
-rw-r--r--src/mame/drivers/rainbow.c4
-rw-r--r--src/mame/drivers/rallyx.c4
-rw-r--r--src/mame/drivers/rampart.c2
-rw-r--r--src/mame/drivers/rastan.c2
-rw-r--r--src/mame/drivers/rbmk.c2
-rw-r--r--src/mame/drivers/rcorsair.c2
-rw-r--r--src/mame/drivers/realbrk.c2
-rw-r--r--src/mame/drivers/redclash.c4
-rw-r--r--src/mame/drivers/relief.c2
-rw-r--r--src/mame/drivers/renegade.c2
-rw-r--r--src/mame/drivers/retofinv.c2
-rw-r--r--src/mame/drivers/rgum.c2
-rw-r--r--src/mame/drivers/rmhaihai.c2
-rw-r--r--src/mame/drivers/rockrage.c2
-rw-r--r--src/mame/drivers/rocnrope.c2
-rw-r--r--src/mame/drivers/rohga.c8
-rw-r--r--src/mame/drivers/rollerg.c2
-rw-r--r--src/mame/drivers/rollrace.c2
-rw-r--r--src/mame/drivers/rpunch.c4
-rw-r--r--src/mame/drivers/runaway.c2
-rw-r--r--src/mame/drivers/rungun.c2
-rw-r--r--src/mame/drivers/safarir.c2
-rw-r--r--src/mame/drivers/sandscrp.c2
-rw-r--r--src/mame/drivers/sanremo.c2
-rw-r--r--src/mame/drivers/sauro.c4
-rw-r--r--src/mame/drivers/sbasketb.c2
-rw-r--r--src/mame/drivers/sbowling.c2
-rw-r--r--src/mame/drivers/sbrkout.c2
-rw-r--r--src/mame/drivers/sbugger.c2
-rw-r--r--src/mame/drivers/scobra.c4
-rw-r--r--src/mame/drivers/scotrsht.c2
-rw-r--r--src/mame/drivers/scramble.c4
-rw-r--r--src/mame/drivers/scregg.c4
-rw-r--r--src/mame/drivers/sderby.c10
-rw-r--r--src/mame/drivers/seabattl.c2
-rw-r--r--src/mame/drivers/segag80r.c2
-rw-r--r--src/mame/drivers/segahang.c2
-rw-r--r--src/mame/drivers/segald.c2
-rw-r--r--src/mame/drivers/segaorun.c2
-rw-r--r--src/mame/drivers/segas16a.c2
-rw-r--r--src/mame/drivers/segas16b.c2
-rw-r--r--src/mame/drivers/segas18.c2
-rw-r--r--src/mame/drivers/segas24.c2
-rw-r--r--src/mame/drivers/segas32.c4
-rw-r--r--src/mame/drivers/segaxbd.c2
-rw-r--r--src/mame/drivers/segaybd.c2
-rw-r--r--src/mame/drivers/seibuspi.c6
-rw-r--r--src/mame/drivers/seicross.c2
-rw-r--r--src/mame/drivers/sengokmj.c2
-rw-r--r--src/mame/drivers/senjyo.c2
-rw-r--r--src/mame/drivers/seta.c80
-rw-r--r--src/mame/drivers/seta2.c6
-rw-r--r--src/mame/drivers/sf.c2
-rw-r--r--src/mame/drivers/sfbonus.c2
-rw-r--r--src/mame/drivers/shadfrce.c2
-rw-r--r--src/mame/drivers/shangha3.c6
-rw-r--r--src/mame/drivers/shangkid.c4
-rw-r--r--src/mame/drivers/shaolins.c2
-rw-r--r--src/mame/drivers/shisen.c2
-rw-r--r--src/mame/drivers/shootout.c4
-rw-r--r--src/mame/drivers/shuuz.c2
-rw-r--r--src/mame/drivers/sidearms.c6
-rw-r--r--src/mame/drivers/sidepckt.c2
-rw-r--r--src/mame/drivers/sigmab98.c4
-rw-r--r--src/mame/drivers/silkroad.c2
-rw-r--r--src/mame/drivers/silvmil.c2
-rw-r--r--src/mame/drivers/simpl156.c2
-rw-r--r--src/mame/drivers/simpsons.c2
-rw-r--r--src/mame/drivers/skimaxx.c2
-rw-r--r--src/mame/drivers/skullxbo.c2
-rw-r--r--src/mame/drivers/skyarmy.c2
-rw-r--r--src/mame/drivers/skydiver.c2
-rw-r--r--src/mame/drivers/skyfox.c2
-rw-r--r--src/mame/drivers/skykid.c2
-rw-r--r--src/mame/drivers/skylncr.c2
-rw-r--r--src/mame/drivers/skyraid.c2
-rw-r--r--src/mame/drivers/slapfght.c8
-rw-r--r--src/mame/drivers/slapshot.c4
-rw-r--r--src/mame/drivers/slotcarn.c2
-rw-r--r--src/mame/drivers/snk.c12
-rw-r--r--src/mame/drivers/snk6502.c4
-rw-r--r--src/mame/drivers/snk68.c2
-rw-r--r--src/mame/drivers/snookr10.c2
-rw-r--r--src/mame/drivers/snowbros.c8
-rw-r--r--src/mame/drivers/solomon.c2
-rw-r--r--src/mame/drivers/sonson.c2
-rw-r--r--src/mame/drivers/spbactn.c4
-rw-r--r--src/mame/drivers/spcforce.c2
-rw-r--r--src/mame/drivers/spdodgeb.c2
-rw-r--r--src/mame/drivers/speedatk.c2
-rw-r--r--src/mame/drivers/speedbal.c2
-rw-r--r--src/mame/drivers/speedspn.c2
-rw-r--r--src/mame/drivers/speglsht.c2
-rw-r--r--src/mame/drivers/splash.c6
-rw-r--r--src/mame/drivers/spoker.c2
-rw-r--r--src/mame/drivers/spool99.c2
-rw-r--r--src/mame/drivers/sprcros2.c2
-rw-r--r--src/mame/drivers/sprint2.c2
-rw-r--r--src/mame/drivers/sprint4.c2
-rw-r--r--src/mame/drivers/sprint8.c2
-rw-r--r--src/mame/drivers/spy.c2
-rw-r--r--src/mame/drivers/srmp2.c6
-rw-r--r--src/mame/drivers/srmp5.c2
-rw-r--r--src/mame/drivers/srmp6.c2
-rw-r--r--src/mame/drivers/srumbler.c2
-rw-r--r--src/mame/drivers/sshangha.c2
-rw-r--r--src/mame/drivers/sshot.c2
-rw-r--r--src/mame/drivers/ssingles.c2
-rw-r--r--src/mame/drivers/sslam.c4
-rw-r--r--src/mame/drivers/ssozumo.c2
-rw-r--r--src/mame/drivers/sspeedr.c2
-rw-r--r--src/mame/drivers/ssrj.c2
-rw-r--r--src/mame/drivers/ssv.c2
-rw-r--r--src/mame/drivers/st0016.c2
-rw-r--r--src/mame/drivers/stadhero.c2
-rw-r--r--src/mame/drivers/starcrus.c2
-rw-r--r--src/mame/drivers/starshp1.c2
-rw-r--r--src/mame/drivers/statriv2.c2
-rw-r--r--src/mame/drivers/stfight.c2
-rw-r--r--src/mame/drivers/stlforce.c2
-rw-r--r--src/mame/drivers/strnskil.c2
-rw-r--r--src/mame/drivers/stuntair.c2
-rw-r--r--src/mame/drivers/stv.c2
-rw-r--r--src/mame/drivers/sub.c2
-rw-r--r--src/mame/drivers/subs.c2
-rw-r--r--src/mame/drivers/subsino.c10
-rw-r--r--src/mame/drivers/subsino2.c8
-rw-r--r--src/mame/drivers/summit.c2
-rw-r--r--src/mame/drivers/suna16.c8
-rw-r--r--src/mame/drivers/suna8.c10
-rw-r--r--src/mame/drivers/supbtime.c4
-rw-r--r--src/mame/drivers/supdrapo.c2
-rw-r--r--src/mame/drivers/superchs.c2
-rw-r--r--src/mame/drivers/supercrd.c2
-rw-r--r--src/mame/drivers/superdq.c2
-rw-r--r--src/mame/drivers/superqix.c8
-rw-r--r--src/mame/drivers/superwng.c2
-rw-r--r--src/mame/drivers/suprgolf.c2
-rw-r--r--src/mame/drivers/suprloco.c2
-rw-r--r--src/mame/drivers/suprnova.c2
-rw-r--r--src/mame/drivers/suprridr.c2
-rw-r--r--src/mame/drivers/suprslam.c2
-rw-r--r--src/mame/drivers/surpratk.c2
-rw-r--r--src/mame/drivers/system1.c2
-rw-r--r--src/mame/drivers/system16.c6
-rw-r--r--src/mame/drivers/tagteam.c2
-rw-r--r--src/mame/drivers/tail2nos.c2
-rw-r--r--src/mame/drivers/taito_b.c34
-rw-r--r--src/mame/drivers/taito_f2.c6
-rw-r--r--src/mame/drivers/taito_f3.c4
-rw-r--r--src/mame/drivers/taito_h.c6
-rw-r--r--src/mame/drivers/taito_l.c8
-rw-r--r--src/mame/drivers/taito_o.c2
-rw-r--r--src/mame/drivers/taito_x.c8
-rw-r--r--src/mame/drivers/taito_z.c20
-rw-r--r--src/mame/drivers/taitoair.c2
-rw-r--r--src/mame/drivers/taitojc.c2
-rw-r--r--src/mame/drivers/taitosj.c2
-rw-r--r--src/mame/drivers/tank8.c2
-rw-r--r--src/mame/drivers/tankbatt.c2
-rw-r--r--src/mame/drivers/tankbust.c2
-rw-r--r--src/mame/drivers/taotaido.c2
-rw-r--r--src/mame/drivers/targeth.c2
-rw-r--r--src/mame/drivers/tasman.c2
-rw-r--r--src/mame/drivers/tatsumi.c8
-rw-r--r--src/mame/drivers/tattack.c2
-rw-r--r--src/mame/drivers/taxidriv.c2
-rw-r--r--src/mame/drivers/tbowl.c2
-rw-r--r--src/mame/drivers/tceptor.c2
-rw-r--r--src/mame/drivers/tcl.c2
-rw-r--r--src/mame/drivers/tecmo.c4
-rw-r--r--src/mame/drivers/tecmo16.c2
-rw-r--r--src/mame/drivers/tecmosys.c2
-rw-r--r--src/mame/drivers/tehkanwc.c2
-rw-r--r--src/mame/drivers/terracre.c6
-rw-r--r--src/mame/drivers/tetrisp2.c12
-rw-r--r--src/mame/drivers/thedeep.c2
-rw-r--r--src/mame/drivers/thepit.c2
-rw-r--r--src/mame/drivers/thoop2.c2
-rw-r--r--src/mame/drivers/thunderj.c2
-rw-r--r--src/mame/drivers/thunderx.c4
-rw-r--r--src/mame/drivers/tiamc1.c2
-rw-r--r--src/mame/drivers/tigeroad.c2
-rw-r--r--src/mame/drivers/timelimt.c2
-rw-r--r--src/mame/drivers/timeplt.c2
-rw-r--r--src/mame/drivers/tmmjprd.c2
-rw-r--r--src/mame/drivers/tmnt.c24
-rw-r--r--src/mame/drivers/tmspoker.c2
-rw-r--r--src/mame/drivers/tnzs.c14
-rw-r--r--src/mame/drivers/toaplan1.c16
-rw-r--r--src/mame/drivers/toaplan2.c40
-rw-r--r--src/mame/drivers/toki.c4
-rw-r--r--src/mame/drivers/toobin.c2
-rw-r--r--src/mame/drivers/topspeed.c2
-rw-r--r--src/mame/drivers/tourvis.c2
-rw-r--r--src/mame/drivers/toypop.c2
-rw-r--r--src/mame/drivers/tp84.c2
-rw-r--r--src/mame/drivers/trackfld.c4
-rw-r--r--src/mame/drivers/travrusa.c2
-rw-r--r--src/mame/drivers/triplhnt.c2
-rw-r--r--src/mame/drivers/trucocl.c2
-rw-r--r--src/mame/drivers/trvmadns.c2
-rw-r--r--src/mame/drivers/tryout.c2
-rw-r--r--src/mame/drivers/tsamurai.c6
-rw-r--r--src/mame/drivers/tugboat.c2
-rw-r--r--src/mame/drivers/tumbleb.c14
-rw-r--r--src/mame/drivers/tumblep.c2
-rw-r--r--src/mame/drivers/tunhunt.c2
-rw-r--r--src/mame/drivers/turbo.c6
-rw-r--r--src/mame/drivers/twin16.c4
-rw-r--r--src/mame/drivers/twincobr.c2
-rw-r--r--src/mame/drivers/uapce.c2
-rw-r--r--src/mame/drivers/ultraman.c2
-rw-r--r--src/mame/drivers/ultratnk.c2
-rw-r--r--src/mame/drivers/umipoker.c2
-rw-r--r--src/mame/drivers/undrfire.c4
-rw-r--r--src/mame/drivers/unico.c6
-rw-r--r--src/mame/drivers/usgames.c2
-rw-r--r--src/mame/drivers/vamphalf.c4
-rw-r--r--src/mame/drivers/vaportra.c2
-rw-r--r--src/mame/drivers/vastar.c2
-rw-r--r--src/mame/drivers/vball.c2
-rw-r--r--src/mame/drivers/vega.c2
-rw-r--r--src/mame/drivers/vendetta.c2
-rw-r--r--src/mame/drivers/videopin.c2
-rw-r--r--src/mame/drivers/videopkr.c2
-rw-r--r--src/mame/drivers/vigilant.c6
-rw-r--r--src/mame/drivers/vindictr.c2
-rw-r--r--src/mame/drivers/vlc.c2
-rw-r--r--src/mame/drivers/volfied.c2
-rw-r--r--src/mame/drivers/vpoker.c2
-rw-r--r--src/mame/drivers/vroulet.c2
-rw-r--r--src/mame/drivers/vulgus.c2
-rw-r--r--src/mame/drivers/wallc.c2
-rw-r--r--src/mame/drivers/wardner.c2
-rw-r--r--src/mame/drivers/warpsped.c2
-rw-r--r--src/mame/drivers/warpwarp.c4
-rw-r--r--src/mame/drivers/warriorb.c4
-rw-r--r--src/mame/drivers/wc90.c2
-rw-r--r--src/mame/drivers/wc90b.c2
-rw-r--r--src/mame/drivers/wecleman.c4
-rw-r--r--src/mame/drivers/welltris.c2
-rw-r--r--src/mame/drivers/wgp.c2
-rw-r--r--src/mame/drivers/williams.c2
-rw-r--r--src/mame/drivers/wink.c2
-rw-r--r--src/mame/drivers/wiping.c2
-rw-r--r--src/mame/drivers/witch.c2
-rw-r--r--src/mame/drivers/wiz.c2
-rw-r--r--src/mame/drivers/wolfpack.c2
-rw-r--r--src/mame/drivers/wrally.c2
-rw-r--r--src/mame/drivers/wwfsstar.c2
-rw-r--r--src/mame/drivers/xain.c2
-rw-r--r--src/mame/drivers/xexex.c2
-rw-r--r--src/mame/drivers/xmen.c4
-rw-r--r--src/mame/drivers/xorworld.c2
-rw-r--r--src/mame/drivers/xxmissio.c2
-rw-r--r--src/mame/drivers/xybots.c2
-rw-r--r--src/mame/drivers/xyonix.c2
-rw-r--r--src/mame/drivers/yiear.c2
-rw-r--r--src/mame/drivers/yunsun16.c4
-rw-r--r--src/mame/drivers/yunsung8.c2
-rw-r--r--src/mame/drivers/zac2650.c2
-rw-r--r--src/mame/drivers/zaccaria.c2
-rw-r--r--src/mame/drivers/zaxxon.c2
-rw-r--r--src/mame/drivers/zerozone.c2
-rw-r--r--src/mame/drivers/zodiack.c2
-rw-r--r--src/mame/drivers/zr107.c4
-rw-r--r--src/mame/etc/template_driver.c2
-rw-r--r--src/mame/machine/megacd.c2
-rw-r--r--src/mame/video/bfm_adr2.c2
-rw-r--r--src/mame/video/madalien.c2
-rw-r--r--src/mame/video/mystston.c2
-rw-r--r--src/mess/drivers/a5105.c2
-rw-r--r--src/mess/drivers/a51xx.c2
-rw-r--r--src/mess/drivers/ac1.c2
-rw-r--r--src/mess/drivers/ace.c2
-rw-r--r--src/mess/drivers/alphatro.c2
-rw-r--r--src/mess/drivers/amstr_pc.c4
-rw-r--r--src/mess/drivers/apc.c2
-rw-r--r--src/mess/drivers/apexc.c2
-rw-r--r--src/mess/drivers/apogee.c2
-rw-r--r--src/mess/drivers/apple1.c2
-rw-r--r--src/mess/drivers/apple2gs.c2
-rw-r--r--src/mess/drivers/apricotf.c2
-rw-r--r--src/mess/drivers/apricotp.c2
-rw-r--r--src/mess/drivers/aquarius.c2
-rw-r--r--src/mess/drivers/arcadia.c2
-rw-r--r--src/mess/drivers/avigo.c2
-rw-r--r--src/mess/drivers/ax20.c2
-rw-r--r--src/mess/drivers/b16.c2
-rw-r--r--src/mess/drivers/bcs3.c2
-rw-r--r--src/mess/drivers/bigbord2.c2
-rw-r--r--src/mess/drivers/binbug.c4
-rw-r--r--src/mess/drivers/bmjr.c2
-rw-r--r--src/mess/drivers/bw12.c2
-rw-r--r--src/mess/drivers/c10.c2
-rw-r--r--src/mess/drivers/c128.c4
-rw-r--r--src/mess/drivers/c900.c2
-rw-r--r--src/mess/drivers/casloopy.c2
-rw-r--r--src/mess/drivers/cd2650.c2
-rw-r--r--src/mess/drivers/cdc721.c2
-rw-r--r--src/mess/drivers/cgenie.c2
-rw-r--r--src/mess/drivers/comquest.c2
-rw-r--r--src/mess/drivers/dai.c2
-rw-r--r--src/mess/drivers/dgn_beta.c2
-rw-r--r--src/mess/drivers/dim68k.c2
-rw-r--r--src/mess/drivers/dmv.c2
-rw-r--r--src/mess/drivers/ec65.c4
-rw-r--r--src/mess/drivers/einstein.c2
-rw-r--r--src/mess/drivers/elwro800.c2
-rw-r--r--src/mess/drivers/fmtowns.c3
-rw-r--r--src/mess/drivers/fp1100.c2
-rw-r--r--src/mess/drivers/fp200.c2
-rw-r--r--src/mess/drivers/fp6000.c2
-rw-r--r--src/mess/drivers/galaxy.c2
-rw-r--r--src/mess/drivers/galeb.c2
-rw-r--r--src/mess/drivers/gb.c4
-rw-r--r--src/mess/drivers/h19.c2
-rw-r--r--src/mess/drivers/homelab.c6
-rw-r--r--src/mess/drivers/homez80.c2
-rw-r--r--src/mess/drivers/hp9k.c2
-rw-r--r--src/mess/drivers/hprot1.c2
-rw-r--r--src/mess/drivers/huebler.c2
-rw-r--r--src/mess/drivers/ie15.c2
-rw-r--r--src/mess/drivers/intv.c2
-rw-r--r--src/mess/drivers/ipds.c2
-rw-r--r--src/mess/drivers/irisha.c2
-rw-r--r--src/mess/drivers/itt3030.c2
-rw-r--r--src/mess/drivers/jonos.c2
-rw-r--r--src/mess/drivers/jr100.c2
-rw-r--r--src/mess/drivers/jr200.c2
-rw-r--r--src/mess/drivers/jtc.c4
-rw-r--r--src/mess/drivers/kaypro.c4
-rw-r--r--src/mess/drivers/korgm1.c2
-rw-r--r--src/mess/drivers/kramermc.c2
-rw-r--r--src/mess/drivers/lcmate2.c2
-rw-r--r--src/mess/drivers/llc.c4
-rw-r--r--src/mess/drivers/m79152pc.c2
-rw-r--r--src/mess/drivers/mbc200.c2
-rw-r--r--src/mess/drivers/mbee.c4
-rw-r--r--src/mess/drivers/microtan.c2
-rw-r--r--src/mess/drivers/mikro80.c2
-rw-r--r--src/mess/drivers/mikrosha.c2
-rw-r--r--src/mess/drivers/mmodular.c2
-rw-r--r--src/mess/drivers/modellot.c2
-rw-r--r--src/mess/drivers/molecular.c2
-rw-r--r--src/mess/drivers/multi8.c2
-rw-r--r--src/mess/drivers/mx2178.c2
-rw-r--r--src/mess/drivers/myb3k.c2
-rw-r--r--src/mess/drivers/mycom.c2
-rw-r--r--src/mess/drivers/mz2000.c2
-rw-r--r--src/mess/drivers/mz2500.c2
-rw-r--r--src/mess/drivers/mz3500.c2
-rw-r--r--src/mess/drivers/mz700.c2
-rw-r--r--src/mess/drivers/mz80.c2
-rw-r--r--src/mess/drivers/nakajies.c2
-rw-r--r--src/mess/drivers/nanos.c2
-rw-r--r--src/mess/drivers/nascom1.c2
-rw-r--r--src/mess/drivers/newbrain.c2
-rw-r--r--src/mess/drivers/odyssey2.c8
-rw-r--r--src/mess/drivers/okean240.c4
-rw-r--r--src/mess/drivers/osborne1.c2
-rw-r--r--src/mess/drivers/osi.c6
-rw-r--r--src/mess/drivers/p2000t.c2
-rw-r--r--src/mess/drivers/partner.c2
-rw-r--r--src/mess/drivers/paso1600.c2
-rw-r--r--src/mess/drivers/pasopia.c2
-rw-r--r--src/mess/drivers/pasopia7.c4
-rw-r--r--src/mess/drivers/pb1000.c2
-rw-r--r--src/mess/drivers/pc.c22
-rw-r--r--src/mess/drivers/pc100.c2
-rw-r--r--src/mess/drivers/pc2000.c2
-rw-r--r--src/mess/drivers/pc4.c2
-rw-r--r--src/mess/drivers/pc6001.c2
-rw-r--r--src/mess/drivers/pc8801.c2
-rw-r--r--src/mess/drivers/pc88va.c2
-rw-r--r--src/mess/drivers/pc9801.c6
-rw-r--r--src/mess/drivers/pcm.c2
-rw-r--r--src/mess/drivers/pda600.c2
-rw-r--r--src/mess/drivers/pdp1.c2
-rw-r--r--src/mess/drivers/pegasus.c2
-rw-r--r--src/mess/drivers/phunsy.c2
-rw-r--r--src/mess/drivers/pk8020.c2
-rw-r--r--src/mess/drivers/plan80.c2
-rw-r--r--src/mess/drivers/pocketc.c2
-rw-r--r--src/mess/drivers/poly88.c2
-rw-r--r--src/mess/drivers/portfoli.c2
-rw-r--r--src/mess/drivers/psion.c2
-rw-r--r--src/mess/drivers/ptcsol.c2
-rw-r--r--src/mess/drivers/pv1000.c2
-rw-r--r--src/mess/drivers/px8.c2
-rw-r--r--src/mess/drivers/pyl601.c2
-rw-r--r--src/mess/drivers/qx10.c2
-rw-r--r--src/mess/drivers/radio86.c2
-rw-r--r--src/mess/drivers/rainbow.c2
-rw-r--r--src/mess/drivers/replicator.c2
-rw-r--r--src/mess/drivers/rex6000.c2
-rw-r--r--src/mess/drivers/rt1715.c2
-rw-r--r--src/mess/drivers/rx78.c2
-rw-r--r--src/mess/drivers/saturn.c2
-rw-r--r--src/mess/drivers/sbc6510.c2
-rw-r--r--src/mess/drivers/scv.c2
-rw-r--r--src/mess/drivers/sm1800.c2
-rw-r--r--src/mess/drivers/smc777.c2
-rw-r--r--src/mess/drivers/sorcerer.c2
-rw-r--r--src/mess/drivers/spectrum.c2
-rw-r--r--src/mess/drivers/super80.c4
-rw-r--r--src/mess/drivers/supracan.c2
-rw-r--r--src/mess/drivers/svi318.c2
-rw-r--r--src/mess/drivers/tek410x.c2
-rw-r--r--src/mess/drivers/ti99_2.c2
-rw-r--r--src/mess/drivers/tim100.c2
-rw-r--r--src/mess/drivers/tk80bs.c2
-rw-r--r--src/mess/drivers/trs80.c2
-rw-r--r--src/mess/drivers/tx0.c2
-rw-r--r--src/mess/drivers/unior.c2
-rw-r--r--src/mess/drivers/unistar.c2
-rw-r--r--src/mess/drivers/ut88.c2
-rw-r--r--src/mess/drivers/v6809.c2
-rw-r--r--src/mess/drivers/vg5k.c2
-rw-r--r--src/mess/drivers/vt100.c2
-rw-r--r--src/mess/drivers/vt240.c2
-rw-r--r--src/mess/drivers/vta2000.c2
-rw-r--r--src/mess/drivers/vtech2.c2
-rw-r--r--src/mess/drivers/wswan.c2
-rw-r--r--src/mess/drivers/x07.c2
-rw-r--r--src/mess/drivers/x1.c2
-rw-r--r--src/mess/drivers/x1twin.c2
-rw-r--r--src/mess/drivers/x68k.c4
-rw-r--r--src/mess/drivers/xavix.c2
-rw-r--r--src/mess/drivers/xerox820.c4
-rw-r--r--src/mess/drivers/z1013.c2
-rw-r--r--src/mess/drivers/z9001.c2
-rw-r--r--src/mess/drivers/zrt80.c2
-rw-r--r--src/mess/drivers/zx.c2
-rw-r--r--src/mess/includes/cgc7900.h3
-rw-r--r--src/mess/includes/fmtowns.h3
-rw-r--r--src/mess/video/733_asr.c2
-rw-r--r--src/mess/video/911_vdt.c2
-rw-r--r--src/mess/video/abc80.c2
-rw-r--r--src/mess/video/cgc7900.c29
-rw-r--r--src/mess/video/fmtowns.c237
-rw-r--r--src/mess/video/mikromik.c2
-rw-r--r--src/mess/video/tmc600.c2
1025 files changed, 1839 insertions, 1906 deletions
diff --git a/src/emu/bus/c64/xl80.c b/src/emu/bus/c64/xl80.c
index e58624a5ea6..fc3bd679ed8 100644
--- a/src/emu/bus/c64/xl80.c
+++ b/src/emu/bus/c64/xl80.c
@@ -151,7 +151,7 @@ static MACHINE_CONFIG_FRAGMENT( c64_xl80 )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
MCFG_SCREEN_REFRESH_RATE(50)
- MCFG_GFXDECODE_ADD("gfxdecode", c64_xl80)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", c64_xl80)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
MCFG_MC6845_ADD(HD46505SP_TAG, H46505, MC6845_SCREEN_TAG, XTAL_14_31818MHz, crtc_intf)
diff --git a/src/emu/bus/comx35/clm.c b/src/emu/bus/comx35/clm.c
index 45ec4db61c8..ecef4d61f9f 100644
--- a/src/emu/bus/comx35/clm.c
+++ b/src/emu/bus/comx35/clm.c
@@ -167,7 +167,7 @@ static MACHINE_CONFIG_FRAGMENT( comx_clm )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
MCFG_SCREEN_REFRESH_RATE(50)
- MCFG_GFXDECODE_ADD("gfxdecode", comx_clm)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", comx_clm)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
MCFG_MC6845_ADD(MC6845_TAG, MC6845, MC6845_SCREEN_TAG, XTAL_14_31818MHz/7, crtc_intf)
diff --git a/src/emu/bus/iq151/video32.c b/src/emu/bus/iq151/video32.c
index ba37286246f..c784be9b8fb 100644
--- a/src/emu/bus/iq151/video32.c
+++ b/src/emu/bus/iq151/video32.c
@@ -40,7 +40,7 @@ static GFXDECODE_START( video32 )
GFXDECODE_END
static MACHINE_CONFIG_FRAGMENT( video32 )
- MCFG_GFXDECODE_ADD("gfxdecode", video32)
+ MCFG_GFXDECODE_ADD("gfxdecode", "^^palette", video32)
MACHINE_CONFIG_END
//**************************************************************************
@@ -61,7 +61,7 @@ iq151_video32_device::iq151_video32_device(const machine_config &mconfig, const
: device_t(mconfig, IQ151_VIDEO32, "IQ151 video32", tag, owner, clock, "iq151_video32", __FILE__),
device_iq151cart_interface( mconfig, *this ),
m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, ":palette")
+ m_palette(*this, "^^palette")
{
}
diff --git a/src/emu/bus/iq151/video64.c b/src/emu/bus/iq151/video64.c
index 93720651c8f..60ff0d10e2f 100644
--- a/src/emu/bus/iq151/video64.c
+++ b/src/emu/bus/iq151/video64.c
@@ -40,7 +40,7 @@ static GFXDECODE_START( video64 )
GFXDECODE_END
static MACHINE_CONFIG_FRAGMENT( video64 )
- MCFG_GFXDECODE_ADD("gfxdecode", video64)
+ MCFG_GFXDECODE_ADD("gfxdecode", "^^palette", video64)
MACHINE_CONFIG_END
//**************************************************************************
@@ -61,7 +61,7 @@ iq151_video64_device::iq151_video64_device(const machine_config &mconfig, const
: device_t(mconfig, IQ151_VIDEO64, "IQ151 video64", tag, owner, clock, "iq151_video64", __FILE__),
device_iq151cart_interface( mconfig, *this ),
m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, ":palette")
+ m_palette(*this, "^^palette")
{
}
diff --git a/src/emu/bus/isa/mda.c b/src/emu/bus/isa/mda.c
index f0088c9fede..165dc04a31c 100644
--- a/src/emu/bus/isa/mda.c
+++ b/src/emu/bus/isa/mda.c
@@ -105,7 +105,7 @@ MACHINE_CONFIG_FRAGMENT( pcvideo_mda )
MCFG_MC6845_ADD( MDA_MC6845_NAME, MC6845, MDA_SCREEN_NAME, MDA_CLOCK/9, mc6845_mda_intf)
- MCFG_GFXDECODE_ADD("gfxdecode", pcmda)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", pcmda)
MCFG_DEVICE_ADD("lpt", PC_LPT, 0)
MCFG_PC_LPT_IRQ_HANDLER(WRITELINE(isa8_mda_device, pc_cpu_line))
@@ -525,7 +525,7 @@ MACHINE_CONFIG_FRAGMENT( pcvideo_hercules )
MCFG_MC6845_ADD( HERCULES_MC6845_NAME, MC6845, HERCULES_SCREEN_NAME, MDA_CLOCK/9, mc6845_hercules_intf)
- MCFG_GFXDECODE_ADD("gfxdecode", pcherc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", pcherc)
MCFG_DEVICE_ADD("lpt", PC_LPT, 0)
MCFG_PC_LPT_IRQ_HANDLER(WRITELINE(isa8_mda_device, pc_cpu_line))
diff --git a/src/emu/drawgfx.c b/src/emu/drawgfx.c
index 0349ef62b0e..16a0ceb6f35 100644
--- a/src/emu/drawgfx.c
+++ b/src/emu/drawgfx.c
@@ -73,7 +73,7 @@ const device_type GFXDECODE = &device_creator<gfxdecode_device>;
gfxdecode_device::gfxdecode_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, GFXDECODE, "gfxdecode", tag, owner, clock, "gfxdecode", __FILE__),
- m_palette(NULL),
+ m_palette(*this),
m_gfxdecodeinfo(NULL)
{
}
@@ -87,6 +87,11 @@ void gfxdecode_device::static_set_gfxdecodeinfo(device_t &device, const gfx_deco
downcast<gfxdecode_device &>(device).m_gfxdecodeinfo = info;
}
+void gfxdecode_device::static_set_palette(device_t &device, const char *tag)
+{
+ downcast<gfxdecode_device &>(device).m_palette.set_tag(tag);
+}
+
//-------------------------------------------------
// device_stop - final cleanup
//-------------------------------------------------
diff --git a/src/emu/drawgfx.h b/src/emu/drawgfx.h
index ae594cb665b..a1287b6db1d 100644
--- a/src/emu/drawgfx.h
+++ b/src/emu/drawgfx.h
@@ -23,10 +23,14 @@
// DEVICE CONFIGURATION MACROS
//**************************************************************************
-#define MCFG_GFXDECODE_ADD(_tag, _info) \
+#define MCFG_GFXDECODE_ADD(_tag, _palette_tag, _info) \
MCFG_DEVICE_ADD(_tag, GFXDECODE, 0) \
+ MCFG_GFX_PALETTE(_palette_tag) \
MCFG_GFXDECODE_INFO(_info) \
+#define MCFG_GFX_PALETTE(_palette_tag) \
+ gfxdecode_device::static_set_palette(*device, "^" _palette_tag);
+
#define MCFG_GFXDECODE_INFO(_info) \
gfxdecode_device::static_set_gfxdecodeinfo(*device, GFXDECODE_NAME(_info));
@@ -250,8 +254,8 @@ private:
// internal state
palette_device *m_palette; // palette used for drawing
- UINT16 m_width; // current pixel width of each element (changeble with source clipping)
- UINT16 m_height; // current pixel height of each element (changeble with source clipping)
+ UINT16 m_width; // current pixel width of each element (changeable with source clipping)
+ UINT16 m_height; // current pixel height of each element (changeable with source clipping)
UINT16 m_startx; // current source clip X offset
UINT16 m_starty; // current source clip Y offset
@@ -451,6 +455,7 @@ public:
static void static_set_gfxdecodeinfo(device_t &device, const gfx_decode_entry *info);
static void static_set_palette(device_t &device, const char *tag);
+ palette_device *palette() const { return m_palette; }
gfx_element * gfx(int index) { assert(index < MAX_GFX_ELEMENTS); return m_gfx[index]; }
void set_gfx(int index, gfx_element * val) { assert(index < MAX_GFX_ELEMENTS); m_gfx[index].reset(val); }
@@ -459,12 +464,13 @@ protected:
virtual void device_validity_check(validity_checker &valid) const;
virtual void device_start();
virtual void device_stop();
-
private:
+ // devices
+ required_device<palette_device> m_palette; // default palette assigned to gfx_elements
+
// configuration state
- palette_device * m_palette;
- const gfx_decode_entry *m_gfxdecodeinfo; // pointer to array of graphics decoding information
- auto_pointer<gfx_element> m_gfx[MAX_GFX_ELEMENTS]; // array of pointers to graphic sets (chars, sprites)
+ const gfx_decode_entry *m_gfxdecodeinfo; // pointer to array of graphics decoding information
+ auto_pointer<gfx_element> m_gfx[MAX_GFX_ELEMENTS]; // array of pointers to graphic sets (chars, sprites)
};
// device type iterator
diff --git a/src/emu/machine/terminal.c b/src/emu/machine/terminal.c
index f9c091445e8..5c4d8e5c924 100644
--- a/src/emu/machine/terminal.c
+++ b/src/emu/machine/terminal.c
@@ -140,12 +140,14 @@ static const UINT8 terminal_font[256*16] =
generic_terminal_device::generic_terminal_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
: device_t(mconfig, type, name, tag, owner, clock, shortname, source),
+ m_palette(*this, "palette"),
m_io_term_conf(*this, "TERM_CONF")
{
}
generic_terminal_device::generic_terminal_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, GENERIC_TERMINAL, "Generic Terminal", tag, owner, clock, "generic_terminal", __FILE__),
+ m_palette(*this, "palette"),
m_io_term_conf(*this, "TERM_CONF")
{
}
@@ -235,19 +237,20 @@ UINT32 generic_terminal_device::update(screen_device &device, bitmap_rgb32 &bitm
UINT16 cursor = m_y_pos * TERMINAL_WIDTH + m_x_pos;
UINT8 y,ra,chr,gfx;
UINT16 sy=0,ma=0,x;
- UINT32 font_color;
+
switch (options & 0x30)
{
case 0x10:
- font_color = 0x00ff7e00;
+ m_palette->set_pen_color(1, rgb_t(0xf7, 0xaa, 0x00));
break;
case 0x20:
- font_color = 0x00ffffff;
+ m_palette->set_pen_color(1, rgb_t::white);
break;
default:
- font_color = 0x0000ff00;
+ m_palette->set_pen_color(1, rgb_t(0x00, 0xff, 0x00));
break;
}
+ pen_t font_color = m_palette->pen(1);
m_framecnt++;
@@ -317,6 +320,9 @@ static MACHINE_CONFIG_FRAGMENT( generic_terminal )
MCFG_SCREEN_SIZE(TERMINAL_WIDTH*8, TERMINAL_HEIGHT*10)
MCFG_SCREEN_VISIBLE_AREA(0, TERMINAL_WIDTH*8-1, 0, TERMINAL_HEIGHT*10-1)
MCFG_SCREEN_UPDATE_DEVICE(DEVICE_SELF, generic_terminal_device, update)
+
+ MCFG_PALETTE_ADD_MONOCHROME_GREEN("palette")
+
MCFG_ASCII_KEYBOARD_ADD(KEYBOARD_TAG, keyboard_intf)
MACHINE_CONFIG_END
diff --git a/src/emu/machine/terminal.h b/src/emu/machine/terminal.h
index 59e91cfd7d6..fb233176df6 100644
--- a/src/emu/machine/terminal.h
+++ b/src/emu/machine/terminal.h
@@ -50,6 +50,7 @@ public:
virtual ioport_constructor device_input_ports() const;
virtual machine_config_constructor device_mconfig_additions() const;
protected:
+ optional_device<palette_device> m_palette;
required_ioport m_io_term_conf;
virtual void term_write(UINT8 data);
diff --git a/src/emu/sound/cdp1869.c b/src/emu/sound/cdp1869.c
index 8ef42e7d5b9..0f65acd80d0 100644
--- a/src/emu/sound/cdp1869.c
+++ b/src/emu/sound/cdp1869.c
@@ -349,10 +349,25 @@ cdp1869_device::cdp1869_device(const machine_config &mconfig, const char *tag, d
device_video_interface(mconfig, *this),
device_memory_interface(mconfig, *this),
m_stream(NULL),
+ m_palette(*this, "palette"),
m_space_config("pageram", ENDIANNESS_LITTLE, 8, 11, 0, NULL, *ADDRESS_MAP_NAME(cdp1869))
{
}
+static MACHINE_CONFIG_FRAGMENT( cdp1869 )
+ MCFG_PALETTE_ADD("palette", 8+64)
+ MCFG_PALETTE_INIT_OWNER(cdp1869_device, cdp1869)
+MACHINE_CONFIG_END
+
+//-------------------------------------------------
+// machine_config_additions - return a pointer to
+// the device's machine fragment
+//-------------------------------------------------
+
+machine_config_constructor cdp1869_device::device_mconfig_additions() const
+{
+ return MACHINE_CONFIG_NAME( cdp1869 );
+}
//-------------------------------------------------
// device_config_complete - perform any
@@ -398,7 +413,6 @@ void cdp1869_device::device_start()
update_prd_changed_timer();
// initialize palette
- initialize_palette();
m_bkg = 0;
// create sound stream
@@ -485,14 +499,14 @@ const address_space_config *cdp1869_device::memory_space_config(address_spacenum
// initialize_palette - initialize palette
//-------------------------------------------------
-void cdp1869_device::initialize_palette()
+PALETTE_INIT_MEMBER(cdp1869_device, cdp1869)
{
// color-on-color display (CFC=0)
int i;
for (i = 0; i < 8; i++)
{
- m_palette[i] = get_rgb(i, i, 15);
+ palette.set_pen_color(i, get_rgb(i, i, 15));
}
// tone-on-tone display (CFC=1)
@@ -500,7 +514,7 @@ void cdp1869_device::initialize_palette()
{
for (int l = 0; l < 8; l++)
{
- m_palette[i] = get_rgb(i, c, l);
+ palette.set_pen_color(i, get_rgb(i, c, l));
i++;
}
}
@@ -578,6 +592,7 @@ void cdp1869_device::sound_stream_update(sound_stream &stream, stream_sample_t *
void cdp1869_device::draw_line(bitmap_rgb32 &bitmap, const rectangle &rect, int x, int y, UINT8 data, int color)
{
int i;
+ pen_t fg = m_palette->pen(color);
data <<= 2;
@@ -585,20 +600,20 @@ void cdp1869_device::draw_line(bitmap_rgb32 &bitmap, const rectangle &rect, int
{
if (data & 0x80)
{
- bitmap.pix32(y, x) = m_palette[color];
+ bitmap.pix32(y, x) = fg;
if (!m_fresvert)
{
- bitmap.pix32(y + 1, x) = m_palette[color];
+ bitmap.pix32(y + 1, x) = fg;
}
if (!m_freshorz)
{
- bitmap.pix32(y, x + 1) = m_palette[color];
+ bitmap.pix32(y, x + 1) = fg;
if (!m_fresvert)
{
- bitmap.pix32(y + 1, x + 1) = m_palette[color];
+ bitmap.pix32(y + 1, x + 1) = fg;
}
}
}
@@ -971,7 +986,7 @@ UINT32 cdp1869_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap
}
outer &= cliprect;
- bitmap.fill(m_palette[m_bkg], outer);
+ bitmap.fill(m_palette->pen(m_bkg), outer);
if (!m_dispoff)
{
diff --git a/src/emu/sound/cdp1869.h b/src/emu/sound/cdp1869.h
index 1a741c731f0..fb5fd6b2395 100644
--- a/src/emu/sound/cdp1869.h
+++ b/src/emu/sound/cdp1869.h
@@ -217,6 +217,8 @@ public:
// construction/destruction
cdp1869_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ DECLARE_PALETTE_INIT(cdp1869);
+
virtual DECLARE_ADDRESS_MAP(io_map, 8);
virtual DECLARE_ADDRESS_MAP(char_map, 8);
virtual DECLARE_ADDRESS_MAP(page_map, 8);
@@ -236,10 +238,12 @@ public:
DECLARE_READ_LINE_MEMBER( predisplay_r );
DECLARE_READ_LINE_MEMBER( pal_ntsc_r );
+
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
protected:
// device-level overrides
+ virtual machine_config_constructor device_mconfig_additions() const;
virtual void device_config_complete();
virtual void device_start();
virtual void device_post_load();
@@ -264,7 +268,6 @@ protected:
inline UINT16 get_pma();
inline int get_pen(int ccb0, int ccb1, int pcb);
- void initialize_palette();
void draw_line(bitmap_rgb32 &bitmap, const rectangle &rect, int x, int y, UINT8 data, int color);
void draw_char(bitmap_rgb32 &bitmap, const rectangle &rect, int x, int y, UINT16 pma);
@@ -280,7 +283,7 @@ private:
sound_stream *m_stream;
// video state
- rgb_t m_palette[8+64];
+ required_device<palette_device> m_palette;
int m_prd; // predisplay
int m_dispoff; // display off
int m_fresvert; // full resolution vertical
diff --git a/src/emu/tilemap.c b/src/emu/tilemap.c
index 4d65fd16c32..f60c181c603 100644
--- a/src/emu/tilemap.c
+++ b/src/emu/tilemap.c
@@ -213,9 +213,9 @@ inline void tilemap_t::scanline_draw_masked_ind16(UINT16 *dest, const UINT16 *so
// RGB bitmap
//-------------------------------------------------
-inline void tilemap_t::scanline_draw_opaque_rgb32(UINT32 *dest, const UINT16 *source, int count, const rgb_t *pens, UINT8 *pri, UINT32 pcode)
+inline void tilemap_t::scanline_draw_opaque_rgb32(UINT32 *dest, const UINT16 *source, int count, const pen_t *pens, UINT8 *pri, UINT32 pcode)
{
- const rgb_t *clut = &pens[pcode >> 16];
+ const pen_t *clut = &pens[pcode >> 16];
// priority case
if ((pcode & 0xffff) != 0xff00)
@@ -241,9 +241,9 @@ inline void tilemap_t::scanline_draw_opaque_rgb32(UINT32 *dest, const UINT16 *so
// RGB bitmap using a mask
//-------------------------------------------------
-inline void tilemap_t::scanline_draw_masked_rgb32(UINT32 *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, const rgb_t *pens, UINT8 *pri, UINT32 pcode)
+inline void tilemap_t::scanline_draw_masked_rgb32(UINT32 *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, const pen_t *pens, UINT8 *pri, UINT32 pcode)
{
- const rgb_t *clut = &pens[pcode >> 16];
+ const pen_t *clut = &pens[pcode >> 16];
// priority case
if ((pcode & 0xffff) != 0xff00)
@@ -271,9 +271,9 @@ inline void tilemap_t::scanline_draw_masked_rgb32(UINT32 *dest, const UINT16 *so
// 32bpp RGB bitmap with alpha blending
//-------------------------------------------------
-inline void tilemap_t::scanline_draw_opaque_rgb32_alpha(UINT32 *dest, const UINT16 *source, int count, const rgb_t *pens, UINT8 *pri, UINT32 pcode, UINT8 alpha)
+inline void tilemap_t::scanline_draw_opaque_rgb32_alpha(UINT32 *dest, const UINT16 *source, int count, const pen_t *pens, UINT8 *pri, UINT32 pcode, UINT8 alpha)
{
- const rgb_t *clut = &pens[pcode >> 16];
+ const pen_t *clut = &pens[pcode >> 16];
// priority case
if ((pcode & 0xffff) != 0xff00)
@@ -300,9 +300,9 @@ inline void tilemap_t::scanline_draw_opaque_rgb32_alpha(UINT32 *dest, const UINT
// blending
//-------------------------------------------------
-inline void tilemap_t::scanline_draw_masked_rgb32_alpha(UINT32 *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, const rgb_t *pens, UINT8 *pri, UINT32 pcode, UINT8 alpha)
+inline void tilemap_t::scanline_draw_masked_rgb32_alpha(UINT32 *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, const pen_t *pens, UINT8 *pri, UINT32 pcode, UINT8 alpha)
{
- const rgb_t *clut = &pens[pcode >> 16];
+ const pen_t *clut = &pens[pcode >> 16];
// priority case
if ((pcode & 0xffff) != 0xff00)
@@ -348,6 +348,7 @@ tilemap_t &tilemap_t::init(tilemap_manager &manager, gfxdecode_device &decoder,
// populate managers and devices
m_manager = &manager;
m_device = dynamic_cast<tilemap_device *>(this);
+ m_palette = decoder.palette();
m_next = NULL;
m_user_data = NULL;
@@ -1175,7 +1176,7 @@ void tilemap_t::draw_instance(screen_device &screen, _BitmapClass &dest, const b
x_end = MIN(x_end, x2);
// if we're rendering something, compute the pointers
- const rgb_t *clut = (dest.palette() != NULL) ? dest.palette()->entry_list_raw() : reinterpret_cast<const rgb_t *>(screen.palette()->pens());
+ const pen_t *clut = m_palette->pens();
if (prev_trans != WHOLLY_TRANSPARENT)
{
const UINT16 *source0 = source_baseaddr + x_start;
@@ -1269,7 +1270,7 @@ void tilemap_t::draw_roz_core(screen_device &screen, _BitmapClass &destbitmap, c
UINT32 startx, UINT32 starty, int incxx, int incxy, int incyx, int incyy, bool wraparound)
{
// pre-cache all the inner loop values
- const rgb_t *clut = ((destbitmap.palette() != NULL) ? destbitmap.palette()->entry_list_raw() : reinterpret_cast<const rgb_t *>(screen.palette()->pens())) + (blit.tilemap_priority_code >> 16);
+ const pen_t *clut = m_palette->pens() + (blit.tilemap_priority_code >> 16);
bitmap_ind8 &priority_bitmap = *blit.priority;
const int xmask = m_pixmap.width() - 1;
const int ymask = m_pixmap.height() - 1;
diff --git a/src/emu/tilemap.h b/src/emu/tilemap.h
index 9a28c2f3cab..2a2191ab4f2 100644
--- a/src/emu/tilemap.h
+++ b/src/emu/tilemap.h
@@ -491,6 +491,7 @@ public:
// getters
running_machine &machine() const;
tilemap_device *device() const { return m_device; }
+ palette_device *palette() const { return m_palette; }
tilemap_t *next() const { return m_next; }
void *user_data() const { return m_user_data; }
memory_array &basemem() { return m_basemem; }
@@ -510,6 +511,7 @@ public:
// setters
void enable(bool enable = true) { m_enable = enable; }
void set_user_data(void *user_data) { m_user_data = user_data; }
+ void set_palette(palette_device *palette) { m_palette = palette; }
void set_palette_offset(UINT32 offset) { m_palette_offset = offset; }
void set_scrolldx(int dx, int dx_flipped) { m_dx = dx; m_dx_flipped = dx_flipped; }
void set_scrolldy(int dy, int dy_flipped) { m_dy = dy; m_dy_flipped = dy_flipped; }
@@ -587,10 +589,10 @@ private:
void scanline_draw_masked_null(const UINT8 *maskptr, int mask, int value, int count, UINT8 *pri, UINT32 pcode);
void scanline_draw_opaque_ind16(UINT16 *dest, const UINT16 *source, int count, UINT8 *pri, UINT32 pcode);
void scanline_draw_masked_ind16(UINT16 *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, UINT8 *pri, UINT32 pcode);
- void scanline_draw_opaque_rgb32(UINT32 *dest, const UINT16 *source, int count, const rgb_t *pens, UINT8 *pri, UINT32 pcode);
- void scanline_draw_masked_rgb32(UINT32 *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, const rgb_t *pens, UINT8 *pri, UINT32 pcode);
- void scanline_draw_opaque_rgb32_alpha(UINT32 *dest, const UINT16 *source, int count, const rgb_t *pens, UINT8 *pri, UINT32 pcode, UINT8 alpha);
- void scanline_draw_masked_rgb32_alpha(UINT32 *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, const rgb_t *pens, UINT8 *pri, UINT32 pcode, UINT8 alpha);
+ void scanline_draw_opaque_rgb32(UINT32 *dest, const UINT16 *source, int count, const pen_t *pens, UINT8 *pri, UINT32 pcode);
+ void scanline_draw_masked_rgb32(UINT32 *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, const pen_t *pens, UINT8 *pri, UINT32 pcode);
+ void scanline_draw_opaque_rgb32_alpha(UINT32 *dest, const UINT16 *source, int count, const pen_t *pens, UINT8 *pri, UINT32 pcode, UINT8 alpha);
+ void scanline_draw_masked_rgb32_alpha(UINT32 *dest, const UINT16 *source, const UINT8 *maskptr, int mask, int value, int count, const pen_t *pens, UINT8 *pri, UINT32 pcode, UINT8 alpha);
// internal helpers
void postload();
@@ -612,6 +614,7 @@ private:
// managers and devices
tilemap_manager * m_manager; // reference to the owning manager
tilemap_device * m_device; // pointer to our owning device
+ palette_device * m_palette; // palette used for drawing
tilemap_t * m_next; // pointer to next tilemap
void * m_user_data; // user data value
diff --git a/src/emu/ui/viewgfx.c b/src/emu/ui/viewgfx.c
index 075fdf7a238..29a86044d19 100644
--- a/src/emu/ui/viewgfx.c
+++ b/src/emu/ui/viewgfx.c
@@ -902,25 +902,11 @@ static void gfxset_update_bitmap(running_machine &machine, ui_gfx_state *state,
static void gfxset_draw_item(running_machine &machine, gfx_element *gfx, int index, bitmap_rgb32 &bitmap, int dstx, int dsty, int color, int rotate)
{
- static const rgb_t default_palette[] =
- {
- rgb_t(0,0,0), rgb_t(0,0,255), rgb_t(0,255,0), rgb_t(0,255,255),
- rgb_t(255,0,0), rgb_t(255,0,255), rgb_t(255,255,0), rgb_t(255,255,255)
- };
int width = (rotate & ORIENTATION_SWAP_XY) ? gfx->height() : gfx->width();
int height = (rotate & ORIENTATION_SWAP_XY) ? gfx->width() : gfx->height();
- const rgb_t *palette = (machine.first_screen()->palette() != NULL) ? machine.first_screen()->palette()->palette()->entry_list_raw() : NULL;
- UINT32 palette_mask = ~0;
+ const pen_t *palette = gfx->palette()->pens() + gfx->colorbase() + color * gfx->granularity();
int x, y;
- if (palette != NULL)
- palette += gfx->colorbase() + color * gfx->granularity();
- else
- {
- palette = default_palette;
- palette_mask = 7;
- }
-
// loop over rows in the cell
for (y = 0; y < height; y++)
{
@@ -955,7 +941,7 @@ static void gfxset_draw_item(running_machine &machine, gfx_element *gfx, int ind
s = src + effy * gfx->rowbytes();
// extract the pixel
- *dest++ = 0xff000000 | palette[s[effx] & palette_mask];
+ *dest++ = 0xff000000 | palette[s[effx]];
}
}
}
diff --git a/src/emu/video/mc6845.c b/src/emu/video/mc6845.c
index 03b10278475..e1a335c5967 100644
--- a/src/emu/video/mc6845.c
+++ b/src/emu/video/mc6845.c
@@ -1437,7 +1437,8 @@ ams40041_device::ams40041_device(const machine_config &mconfig, const char *tag,
mos8563_device::mos8563_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
: mc6845_device(mconfig, type, name, tag, owner, clock, shortname, source),
device_memory_interface(mconfig, *this),
- m_videoram_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(mos8563_videoram_map))
+ m_videoram_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(mos8563_videoram_map)),
+ m_palette(*this, "palette")
{
}
@@ -1445,7 +1446,8 @@ mos8563_device::mos8563_device(const machine_config &mconfig, device_type type,
mos8563_device::mos8563_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: mc6845_device(mconfig, MOS8563, "MOS8563", tag, owner, clock, "mos8563", __FILE__),
device_memory_interface(mconfig, *this),
- m_videoram_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(mos8563_videoram_map))
+ m_videoram_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(mos8563_videoram_map)),
+ m_palette(*this, "palette")
{
}
@@ -1456,25 +1458,36 @@ mos8568_device::mos8568_device(const machine_config &mconfig, const char *tag, d
}
+static MACHINE_CONFIG_FRAGMENT(mos8563)
+ MCFG_PALETTE_ADD("palette", 16)
+ MCFG_PALETTE_INIT_OWNER(mos8563_device, mos8563)
+MACHINE_CONFIG_END
+
+machine_config_constructor mos8563_device::device_mconfig_additions() const
+{
+ return MACHINE_CONFIG_NAME( mos8563 );
+}
+
+
// VICE palette
-static const rgb_t MOS8563_PALETTE[] =
-{
- rgb_t::black,
- rgb_t(0x55, 0x55, 0x55),
- rgb_t(0x00, 0x00, 0xaa),
- rgb_t(0x55, 0x55, 0xff),
- rgb_t(0x00, 0xaa, 0x00),
- rgb_t(0x55, 0xff, 0x55),
- rgb_t(0x00, 0xaa, 0xaa),
- rgb_t(0x55, 0xff, 0xff),
- rgb_t(0xaa, 0x00, 0x00),
- rgb_t(0xff, 0x55, 0x55),
- rgb_t(0xaa, 0x00, 0xaa),
- rgb_t(0xff, 0x55, 0xff),
- rgb_t(0xaa, 0x55, 0x00),
- rgb_t(0xff, 0xff, 0x55),
- rgb_t(0xaa, 0xaa, 0xaa),
- rgb_t::white
+PALETTE_INIT_MEMBER(mos8563_device, mos8563)
+{
+ palette.set_pen_color(0, rgb_t::black);
+ palette.set_pen_color(1, rgb_t(0x55, 0x55, 0x55));
+ palette.set_pen_color(2, rgb_t(0x00, 0x00, 0xaa));
+ palette.set_pen_color(3, rgb_t(0x55, 0x55, 0xff));
+ palette.set_pen_color(4, rgb_t(0x00, 0xaa, 0x00));
+ palette.set_pen_color(5, rgb_t(0x55, 0xff, 0x55));
+ palette.set_pen_color(6, rgb_t(0x00, 0xaa, 0xaa));
+ palette.set_pen_color(7, rgb_t(0x55, 0xff, 0xff));
+ palette.set_pen_color(8, rgb_t(0xaa, 0x00, 0x00));
+ palette.set_pen_color(9, rgb_t(0xff, 0x55, 0x55));
+ palette.set_pen_color(10, rgb_t(0xaa, 0x00, 0xaa));
+ palette.set_pen_color(11, rgb_t(0xff, 0x55, 0xff));
+ palette.set_pen_color(12, rgb_t(0xaa, 0x55, 0x00));
+ palette.set_pen_color(13, rgb_t(0xff, 0xff, 0x55));
+ palette.set_pen_color(14, rgb_t(0xaa, 0xaa, 0xaa));
+ palette.set_pen_color(15, rgb_t::white);
};
@@ -1513,6 +1526,8 @@ UINT8 mos8563_device::draw_scanline(int y, bitmap_rgb32 &bitmap, const rectangle
void mos8563_device::update_row(bitmap_rgb32 &bitmap, const rectangle &cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, INT8 cursor_x, void *param)
{
+ const pen_t *pen = m_palette->pens();
+
ra += (m_vert_scroll & 0x0f);
ra &= 0x0f;
@@ -1550,7 +1565,7 @@ void mos8563_device::update_row(bitmap_rgb32 &bitmap, const rectangle &cliprect,
if (x < 0) x = 0;
int color = BIT(code, 7) ? fg : bg;
- bitmap.pix32(y, x) = MOS8563_PALETTE[color];
+ bitmap.pix32(y, x) = pen[color];
}
}
else
@@ -1586,7 +1601,7 @@ void mos8563_device::update_row(bitmap_rgb32 &bitmap, const rectangle &cliprect,
if (x < 0) x = 0;
int color = BIT(data, 7) ? fg : bg;
- bitmap.pix32(y, x) = MOS8563_PALETTE[color];
+ bitmap.pix32(y, x) = pen[color];
if ((bit < 8) || !HSS_SEMI) data <<= 1;
}
diff --git a/src/emu/video/mc6845.h b/src/emu/video/mc6845.h
index 0de372e3b3b..765e0a6dfb8 100644
--- a/src/emu/video/mc6845.h
+++ b/src/emu/video/mc6845.h
@@ -393,6 +393,8 @@ public:
virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const;
+ DECLARE_PALETTE_INIT(mos8563);
+
DECLARE_WRITE8_MEMBER( address_w );
DECLARE_READ8_MEMBER( status_r );
DECLARE_READ8_MEMBER( register_r );
@@ -406,11 +408,13 @@ public:
protected:
// device-level overrides
+ virtual machine_config_constructor device_mconfig_additions() const;
virtual void device_start();
virtual void device_reset();
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
const address_space_config m_videoram_space_config;
+ required_device<palette_device> m_palette;
UINT8 m_char_buffer[80];
UINT8 m_attr_buffer[80];
diff --git a/src/mame/drivers/1942.c b/src/mame/drivers/1942.c
index 14acb2d7ba2..f6c9ef1bd52 100644
--- a/src/mame/drivers/1942.c
+++ b/src/mame/drivers/1942.c
@@ -540,7 +540,7 @@ static MACHINE_CONFIG_START( 1942, _1942_state )
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", 1942)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1942)
MCFG_PALETTE_ADD("palette", 64*4+4*32*8+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
@@ -600,7 +600,7 @@ static MACHINE_CONFIG_START( 1942p, _1942_state )
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", 1942p)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1942p)
MCFG_PALETTE_ADD("palette", 0x500)
MCFG_PALETTE_INDIRECT_ENTRIES(0x400)
MCFG_PALETTE_INIT_OWNER(_1942_state, 1942p)
diff --git a/src/mame/drivers/1943.c b/src/mame/drivers/1943.c
index 11d8b662fb5..119cdf1b7cc 100644
--- a/src/mame/drivers/1943.c
+++ b/src/mame/drivers/1943.c
@@ -321,7 +321,7 @@ static MACHINE_CONFIG_START( 1943, _1943_state )
MCFG_SCREEN_UPDATE_DRIVER(_1943_state, screen_update_1943)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 1943)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1943)
MCFG_PALETTE_ADD("palette", 32*4+16*16+16*16+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(_1943_state, 1943)
diff --git a/src/mame/drivers/1945kiii.c b/src/mame/drivers/1945kiii.c
index f559c1e76b0..bf77aa67be4 100644
--- a/src/mame/drivers/1945kiii.c
+++ b/src/mame/drivers/1945kiii.c
@@ -266,7 +266,7 @@ static MACHINE_CONFIG_START( k3, k3_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", k3_state, irq4_line_hold)
- MCFG_GFXDECODE_ADD("gfxdecode", 1945kiii)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1945kiii)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/2mindril.c b/src/mame/drivers/2mindril.c
index 0550204161d..fe57801cade 100644
--- a/src/mame/drivers/2mindril.c
+++ b/src/mame/drivers/2mindril.c
@@ -450,7 +450,7 @@ static MACHINE_CONFIG_START( drill, _2mindril_state )
MCFG_CPU_PROGRAM_MAP(drill_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", _2mindril_state, drill_vblank_irq)
//MCFG_CPU_PERIODIC_INT_DRIVER(_2mindril_state, drill_device_irq, 60)
- MCFG_GFXDECODE_ADD("gfxdecode", 2mindril)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 2mindril)
MCFG_MACHINE_START_OVERRIDE(_2mindril_state,drill)
MCFG_MACHINE_RESET_OVERRIDE(_2mindril_state,drill)
diff --git a/src/mame/drivers/3x3puzzl.c b/src/mame/drivers/3x3puzzl.c
index 1bd269a167b..82e0ece96ec 100644
--- a/src/mame/drivers/3x3puzzl.c
+++ b/src/mame/drivers/3x3puzzl.c
@@ -391,7 +391,7 @@ static MACHINE_CONFIG_START( _3x3puzzle, _3x3puzzle_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1)
- MCFG_GFXDECODE_ADD("gfxdecode", _3x3puzzle)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", _3x3puzzle)
MCFG_PALETTE_ADD("palette", 0x600/2)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/40love.c b/src/mame/drivers/40love.c
index 3f3ccaba7ab..6b6c598da8c 100644
--- a/src/mame/drivers/40love.c
+++ b/src/mame/drivers/40love.c
@@ -1075,7 +1075,7 @@ static MACHINE_CONFIG_START( 40love, fortyl_state )
MCFG_SCREEN_UPDATE_DRIVER(fortyl_state, screen_update_fortyl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 40love)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 40love)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INIT_OWNER(fortyl_state, fortyl)
@@ -1131,7 +1131,7 @@ static MACHINE_CONFIG_START( undoukai, fortyl_state )
MCFG_SCREEN_UPDATE_DRIVER(fortyl_state, screen_update_fortyl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 40love)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 40love)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INIT_OWNER(fortyl_state, fortyl)
diff --git a/src/mame/drivers/4enraya.c b/src/mame/drivers/4enraya.c
index f500566b86a..c7989804e97 100644
--- a/src/mame/drivers/4enraya.c
+++ b/src/mame/drivers/4enraya.c
@@ -328,7 +328,7 @@ static MACHINE_CONFIG_START( 4enraya, _4enraya_state )
MCFG_SCREEN_UPDATE_DRIVER(_4enraya_state, screen_update_4enraya)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 4enraya)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 4enraya)
MCFG_PALETTE_ADD("palette", 8)
MCFG_PALETTE_INIT_OWNER(_4enraya_state, _4enraya)
diff --git a/src/mame/drivers/4roses.c b/src/mame/drivers/4roses.c
index 5f112413677..30a384fd15b 100644
--- a/src/mame/drivers/4roses.c
+++ b/src/mame/drivers/4roses.c
@@ -402,7 +402,7 @@ static MACHINE_CONFIG_START( 4roses, _4roses_state )
MCFG_SCREEN_UPDATE_DRIVER(_4roses_state, screen_update_funworld)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 4roses)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 4roses)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_INIT_OWNER(_4roses_state,funworld)
diff --git a/src/mame/drivers/5clown.c b/src/mame/drivers/5clown.c
index 4b84a394d44..b5a32fd8633 100644
--- a/src/mame/drivers/5clown.c
+++ b/src/mame/drivers/5clown.c
@@ -1066,7 +1066,7 @@ static MACHINE_CONFIG_START( fclown, _5clown_state )
MCFG_SCREEN_UPDATE_DRIVER(_5clown_state, screen_update_fclown)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fclown)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fclown)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(_5clown_state, _5clown)
diff --git a/src/mame/drivers/88games.c b/src/mame/drivers/88games.c
index a1c044313b1..2354e4b3ff9 100644
--- a/src/mame/drivers/88games.c
+++ b/src/mame/drivers/88games.c
@@ -371,7 +371,7 @@ static MACHINE_CONFIG_START( 88games, _88games_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", _88games_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/ace.c b/src/mame/drivers/ace.c
index 52040a176e6..deba8c521bc 100644
--- a/src/mame/drivers/ace.c
+++ b/src/mame/drivers/ace.c
@@ -354,7 +354,7 @@ static MACHINE_CONFIG_START( ace, aceal_state )
MCFG_SCREEN_UPDATE_DRIVER(aceal_state, screen_update_ace)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ace)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ace)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
/* sound hardware */
diff --git a/src/mame/drivers/acefruit.c b/src/mame/drivers/acefruit.c
index bac7189519b..7ce2fa2792d 100644
--- a/src/mame/drivers/acefruit.c
+++ b/src/mame/drivers/acefruit.c
@@ -608,7 +608,7 @@ static MACHINE_CONFIG_START( acefruit, acefruit_state )
MCFG_CPU_IO_MAP(acefruit_io)
MCFG_CPU_VBLANK_INT_DRIVER("screen", acefruit_state, acefruit_vblank)
- MCFG_GFXDECODE_ADD("gfxdecode", acefruit)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", acefruit)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/acommand.c b/src/mame/drivers/acommand.c
index 0d114c780d6..1e74a245df4 100644
--- a/src/mame/drivers/acommand.c
+++ b/src/mame/drivers/acommand.c
@@ -620,7 +620,7 @@ static MACHINE_CONFIG_START( acommand, acommand_state )
MCFG_SCREEN_UPDATE_DRIVER(acommand_state, screen_update_acommand)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", acommand)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", acommand)
MCFG_PALETTE_ADD("palette", 0x4000)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
diff --git a/src/mame/drivers/actfancr.c b/src/mame/drivers/actfancr.c
index da6687c8859..d128aac12a1 100644
--- a/src/mame/drivers/actfancr.c
+++ b/src/mame/drivers/actfancr.c
@@ -326,7 +326,7 @@ static MACHINE_CONFIG_START( actfancr, actfancr_state )
MCFG_SCREEN_UPDATE_DRIVER(actfancr_state, screen_update_actfancr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", actfan)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", actfan)
MCFG_PALETTE_ADD("palette", 768)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -382,7 +382,7 @@ static MACHINE_CONFIG_START( triothep, actfancr_state )
MCFG_SCREEN_UPDATE_DRIVER(actfancr_state, screen_update_actfancr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", triothep)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", triothep)
MCFG_PALETTE_ADD("palette", 768)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/aeroboto.c b/src/mame/drivers/aeroboto.c
index 3c2eb1ff4cf..5a02dadf9fb 100644
--- a/src/mame/drivers/aeroboto.c
+++ b/src/mame/drivers/aeroboto.c
@@ -262,7 +262,7 @@ static MACHINE_CONFIG_START( formatz, aeroboto_state )
MCFG_SCREEN_UPDATE_DRIVER(aeroboto_state, screen_update_aeroboto)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", aeroboto)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", aeroboto)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
diff --git a/src/mame/drivers/aerofgt.c b/src/mame/drivers/aerofgt.c
index b3329fbd37d..b39be792cd8 100644
--- a/src/mame/drivers/aerofgt.c
+++ b/src/mame/drivers/aerofgt.c
@@ -1327,7 +1327,7 @@ static MACHINE_CONFIG_START( pspikes, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_pspikes)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", pspikes)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", pspikes)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1371,7 +1371,7 @@ static MACHINE_CONFIG_START( spikes91, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_spikes91)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", spikes91)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", spikes91)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1405,7 +1405,7 @@ static MACHINE_CONFIG_START( pspikesb, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_pspikesb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", pspikesb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", pspikesb)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1437,7 +1437,7 @@ static MACHINE_CONFIG_START( pspikesc, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_pspikes)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", pspikes)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", pspikes)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1480,7 +1480,7 @@ static MACHINE_CONFIG_START( karatblz, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_karatblz)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", turbofrc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", turbofrc)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1533,7 +1533,7 @@ static MACHINE_CONFIG_START( spinlbrk, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_spinlbrk)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", turbofrc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", turbofrc)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1587,7 +1587,7 @@ static MACHINE_CONFIG_START( turbofrc, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_turbofrc)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", turbofrc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", turbofrc)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1641,7 +1641,7 @@ static MACHINE_CONFIG_START( aerofgtb, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_turbofrc)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", aerofgtb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", aerofgtb)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1695,7 +1695,7 @@ static MACHINE_CONFIG_START( aerofgt, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_aerofgt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", aerofgt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", aerofgt)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1741,7 +1741,7 @@ static MACHINE_CONFIG_START( aerfboot, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_aerfboot)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", aerfboot)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", aerfboot)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1774,7 +1774,7 @@ static MACHINE_CONFIG_START( aerfboo2, aerofgt_state )
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_aerfboo2)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", aerfboo2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", aerfboo2)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1808,7 +1808,7 @@ static MACHINE_CONFIG_START( wbbc97, aerofgt_state )
MCFG_SCREEN_VISIBLE_AREA(0*8+14, 44*8-1+4, 0*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_wbbc97)
- MCFG_GFXDECODE_ADD("gfxdecode", wbbc97)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", wbbc97)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/airbustr.c b/src/mame/drivers/airbustr.c
index 44bff962e86..d624cff9ea6 100644
--- a/src/mame/drivers/airbustr.c
+++ b/src/mame/drivers/airbustr.c
@@ -627,7 +627,7 @@ static MACHINE_CONFIG_START( airbustr, airbustr_state )
MCFG_SCREEN_VBLANK_DRIVER(airbustr_state, screen_eof_airbustr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", airbustr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", airbustr)
MCFG_PALETTE_ADD("palette", 768)
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
diff --git a/src/mame/drivers/ajax.c b/src/mame/drivers/ajax.c
index 1f7f07a8e47..42fa0c33eb2 100644
--- a/src/mame/drivers/ajax.c
+++ b/src/mame/drivers/ajax.c
@@ -220,7 +220,7 @@ static MACHINE_CONFIG_START( ajax, ajax_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", ajax_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/albazc.c b/src/mame/drivers/albazc.c
index 15099b7966a..d7d7fdab6a1 100644
--- a/src/mame/drivers/albazc.c
+++ b/src/mame/drivers/albazc.c
@@ -287,7 +287,7 @@ static MACHINE_CONFIG_START( hanaroku, albazc_state )
MCFG_SCREEN_UPDATE_DRIVER(albazc_state, screen_update_hanaroku)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", hanaroku)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hanaroku)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_PALETTE_INIT_OWNER(albazc_state, albazc)
diff --git a/src/mame/drivers/albazg.c b/src/mame/drivers/albazg.c
index 3d8bef67e43..52d95be8ccc 100644
--- a/src/mame/drivers/albazg.c
+++ b/src/mame/drivers/albazg.c
@@ -403,7 +403,7 @@ static MACHINE_CONFIG_START( yumefuda, albazg_state )
MCFG_MC6845_ADD("crtc", H46505, "screen", MASTER_CLOCK/16, mc6845_intf) /* hand tuned to get ~60 fps */
- MCFG_GFXDECODE_ADD("gfxdecode", yumefuda )
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", yumefuda )
MCFG_PALETTE_ADD("palette", 0x80)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/aliens.c b/src/mame/drivers/aliens.c
index 46745c5c5ce..3bac6749f8a 100644
--- a/src/mame/drivers/aliens.c
+++ b/src/mame/drivers/aliens.c
@@ -238,7 +238,7 @@ static MACHINE_CONFIG_START( aliens, aliens_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", aliens_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
MCFG_K052109_PALETTE("palette")
diff --git a/src/mame/drivers/alpha68k.c b/src/mame/drivers/alpha68k.c
index 2db517fef31..fcb3eb4210c 100644
--- a/src/mame/drivers/alpha68k.c
+++ b/src/mame/drivers/alpha68k.c
@@ -1964,7 +1964,7 @@ static MACHINE_CONFIG_START( sstingry, alpha68k_state )
MCFG_SCREEN_UPDATE_DRIVER(alpha68k_state, screen_update_sstingry)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", sstingry)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", sstingry)
MCFG_PALETTE_ADD("palette", 256 + 1)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
@@ -2012,7 +2012,7 @@ static MACHINE_CONFIG_START( kyros, alpha68k_state )
MCFG_SCREEN_UPDATE_DRIVER(alpha68k_state, screen_update_kyros)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", kyros)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", kyros)
MCFG_PALETTE_ADD("palette", 256 + 1)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
@@ -2059,7 +2059,7 @@ static MACHINE_CONFIG_START( jongbou, alpha68k_state )
MCFG_SCREEN_UPDATE_DRIVER(alpha68k_state, screen_update_kyros)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", jongbou)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jongbou)
MCFG_PALETTE_ADD("palette", 256 + 1)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
@@ -2095,7 +2095,7 @@ static MACHINE_CONFIG_START( alpha68k_I, alpha68k_state )
MCFG_SCREEN_UPDATE_DRIVER(alpha68k_state, screen_update_alpha68k_I)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", paddle)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", paddle)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
@@ -2139,7 +2139,7 @@ static MACHINE_CONFIG_START( alpha68k_II, alpha68k_state )
MCFG_SCREEN_UPDATE_DRIVER(alpha68k_state, screen_update_alpha68k_II)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", alpha68k_II)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", alpha68k_II)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(alpha68k_state,alpha68k)
@@ -2189,7 +2189,7 @@ static MACHINE_CONFIG_START( alpha68k_II_gm, alpha68k_state )
MCFG_SCREEN_UPDATE_DRIVER(alpha68k_state, screen_update_alpha68k_II)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", alpha68k_II)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", alpha68k_II)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(alpha68k_state,alpha68k)
@@ -2233,7 +2233,7 @@ static MACHINE_CONFIG_START( alpha68k_V, alpha68k_state )
MCFG_SCREEN_UPDATE_DRIVER(alpha68k_state, screen_update_alpha68k_V)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", alpha68k_V)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", alpha68k_V)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_VIDEO_START_OVERRIDE(alpha68k_state,alpha68k)
@@ -2276,7 +2276,7 @@ static MACHINE_CONFIG_START( alpha68k_V_sb, alpha68k_state )
MCFG_SCREEN_UPDATE_DRIVER(alpha68k_state, screen_update_alpha68k_V_sb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", alpha68k_V)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", alpha68k_V)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_VIDEO_START_OVERRIDE(alpha68k_state,alpha68k)
@@ -2318,7 +2318,7 @@ static MACHINE_CONFIG_START( tnextspc, alpha68k_state )
MCFG_SCREEN_UPDATE_DRIVER(alpha68k_state, screen_update_alpha68k_I)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", tnextspc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", tnextspc)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
diff --git a/src/mame/drivers/amaticmg.c b/src/mame/drivers/amaticmg.c
index 01709f35012..9e0bfda7dda 100644
--- a/src/mame/drivers/amaticmg.c
+++ b/src/mame/drivers/amaticmg.c
@@ -885,7 +885,7 @@ static MACHINE_CONFIG_START( amaticmg, amaticmg_state )
MCFG_MC6845_ADD("crtc", MC6845, "screen", CRTC_CLOCK, mc6845_intf)
- MCFG_GFXDECODE_ADD("gfxdecode", amaticmg)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", amaticmg)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_PALETTE_INIT_OWNER(amaticmg_state, amaticmg)
diff --git a/src/mame/drivers/ambush.c b/src/mame/drivers/ambush.c
index e506e6eb21f..23b0fd82896 100644
--- a/src/mame/drivers/ambush.c
+++ b/src/mame/drivers/ambush.c
@@ -243,7 +243,7 @@ static MACHINE_CONFIG_START( ambush, ambush_state )
MCFG_SCREEN_UPDATE_DRIVER(ambush_state, screen_update_ambush)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ambush)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ambush)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(ambush_state, ambush)
diff --git a/src/mame/drivers/ampoker2.c b/src/mame/drivers/ampoker2.c
index c28121c0af1..0f3c78ef532 100644
--- a/src/mame/drivers/ampoker2.c
+++ b/src/mame/drivers/ampoker2.c
@@ -1185,7 +1185,7 @@ static MACHINE_CONFIG_START( ampoker2, ampoker2_state )
MCFG_SCREEN_UPDATE_DRIVER(ampoker2_state, screen_update_ampoker2)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ampoker2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ampoker2)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(ampoker2_state, ampoker2)
diff --git a/src/mame/drivers/amspdwy.c b/src/mame/drivers/amspdwy.c
index a5cf339ff61..203aeb9bf33 100644
--- a/src/mame/drivers/amspdwy.c
+++ b/src/mame/drivers/amspdwy.c
@@ -274,7 +274,7 @@ static MACHINE_CONFIG_START( amspdwy, amspdwy_state )
MCFG_SCREEN_UPDATE_DRIVER(amspdwy_state, screen_update_amspdwy)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", amspdwy)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", amspdwy)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_FORMAT(BBGGGRRR)
diff --git a/src/mame/drivers/angelkds.c b/src/mame/drivers/angelkds.c
index 57b0087c238..bd9c0bd25f3 100644
--- a/src/mame/drivers/angelkds.c
+++ b/src/mame/drivers/angelkds.c
@@ -613,7 +613,7 @@ static MACHINE_CONFIG_START( angelkds, angelkds_state )
MCFG_SCREEN_UPDATE_DRIVER(angelkds_state, screen_update_angelkds)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", angelkds)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", angelkds)
MCFG_PALETTE_ADD("palette", 0x100)
diff --git a/src/mame/drivers/appoooh.c b/src/mame/drivers/appoooh.c
index 52ba282c741..0db8bdd87c4 100644
--- a/src/mame/drivers/appoooh.c
+++ b/src/mame/drivers/appoooh.c
@@ -456,7 +456,7 @@ static MACHINE_CONFIG_DERIVED( appoooh, appoooh_common )
MCFG_SCREEN_UPDATE_DRIVER(appoooh_state, screen_update_appoooh)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", appoooh)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", appoooh)
MCFG_PALETTE_ADD("palette", 32*8+32*8)
MCFG_PALETTE_INIT_OWNER(appoooh_state,appoooh)
@@ -475,7 +475,7 @@ static MACHINE_CONFIG_DERIVED( robowres, appoooh_common )
MCFG_SCREEN_UPDATE_DRIVER(appoooh_state, screen_update_robowres)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", robowres)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", robowres)
MCFG_PALETTE_ADD("palette", 32*8+32*8)
MCFG_PALETTE_INIT_OWNER(appoooh_state,robowres)
diff --git a/src/mame/drivers/aquarium.c b/src/mame/drivers/aquarium.c
index a61ac47a95d..7eb28fbed69 100644
--- a/src/mame/drivers/aquarium.c
+++ b/src/mame/drivers/aquarium.c
@@ -316,7 +316,7 @@ static MACHINE_CONFIG_START( aquarium, aquarium_state )
MCFG_SCREEN_UPDATE_DRIVER(aquarium_state, screen_update_aquarium)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", aquarium)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", aquarium)
MCFG_PALETTE_ADD("palette", 0x1000/2)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
diff --git a/src/mame/drivers/arcadecl.c b/src/mame/drivers/arcadecl.c
index d139ff661db..5ab05474815 100644
--- a/src/mame/drivers/arcadecl.c
+++ b/src/mame/drivers/arcadecl.c
@@ -326,7 +326,7 @@ static MACHINE_CONFIG_START( arcadecl, arcadecl_state )
MCFG_ATARI_EEPROM_2804_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", arcadecl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", arcadecl)
MCFG_PALETTE_ADD("palette", 512)
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", arcadecl_state::s_mob_config)
diff --git a/src/mame/drivers/argus.c b/src/mame/drivers/argus.c
index cc674b0906d..af97b2e169f 100644
--- a/src/mame/drivers/argus.c
+++ b/src/mame/drivers/argus.c
@@ -558,7 +558,7 @@ static MACHINE_CONFIG_START( argus, argus_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(argus_state, screen_update_argus)
- MCFG_GFXDECODE_ADD("gfxdecode", argus)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", argus)
MCFG_PALETTE_ADD("palette", 896)
MCFG_VIDEO_START_OVERRIDE(argus_state,argus)
@@ -603,7 +603,7 @@ static MACHINE_CONFIG_START( valtric, argus_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(argus_state, screen_update_valtric)
- MCFG_GFXDECODE_ADD("gfxdecode", valtric)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", valtric)
MCFG_PALETTE_ADD("palette", 768)
MCFG_VIDEO_START_OVERRIDE(argus_state,valtric)
@@ -648,7 +648,7 @@ static MACHINE_CONFIG_START( butasan, argus_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(argus_state, screen_update_butasan)
- MCFG_GFXDECODE_ADD("gfxdecode", butasan)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", butasan)
MCFG_PALETTE_ADD("palette", 768)
MCFG_VIDEO_START_OVERRIDE(argus_state,butasan)
diff --git a/src/mame/drivers/aristmk4.c b/src/mame/drivers/aristmk4.c
index a318215bcea..1beb9caec9e 100644
--- a/src/mame/drivers/aristmk4.c
+++ b/src/mame/drivers/aristmk4.c
@@ -1702,7 +1702,7 @@ static MACHINE_CONFIG_START( aristmk4, aristmk4_state )
MCFG_SCREEN_UPDATE_DRIVER(aristmk4_state, screen_update_aristmk4)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", aristmk4)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", aristmk4)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(aristmk4_state, aristmk4)
diff --git a/src/mame/drivers/arkanoid.c b/src/mame/drivers/arkanoid.c
index 5a021a2fd74..b9d8dda1744 100644
--- a/src/mame/drivers/arkanoid.c
+++ b/src/mame/drivers/arkanoid.c
@@ -1220,7 +1220,7 @@ static MACHINE_CONFIG_START( arkanoid, arkanoid_state )
MCFG_SCREEN_UPDATE_DRIVER(arkanoid_state, screen_update_arkanoid)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", arkanoid)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", arkanoid)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 512)
MCFG_VIDEO_START_OVERRIDE(arkanoid_state,arkanoid)
@@ -1252,7 +1252,7 @@ static MACHINE_CONFIG_START( hexa, arkanoid_state )
MCFG_SCREEN_UPDATE_DRIVER(arkanoid_state, screen_update_hexa)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", hexa)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hexa)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
MCFG_VIDEO_START_OVERRIDE(arkanoid_state,arkanoid)
@@ -1296,7 +1296,7 @@ static MACHINE_CONFIG_START( brixian, arkanoid_state )
MCFG_SCREEN_UPDATE_DRIVER(arkanoid_state, screen_update_hexa)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", arkanoid)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", arkanoid)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 512)
MCFG_VIDEO_START_OVERRIDE(arkanoid_state,arkanoid)
diff --git a/src/mame/drivers/armedf.c b/src/mame/drivers/armedf.c
index 6a85df3b915..8702918ceff 100644
--- a/src/mame/drivers/armedf.c
+++ b/src/mame/drivers/armedf.c
@@ -1188,7 +1188,7 @@ static MACHINE_CONFIG_START( terraf, armedf_state )
MCFG_SCREEN_UPDATE_DRIVER(armedf_state, screen_update_armedf)
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
- MCFG_GFXDECODE_ADD("gfxdecode", armedf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", armedf)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
@@ -1239,7 +1239,7 @@ static MACHINE_CONFIG_START( terrafjb, armedf_state )
MCFG_SCREEN_UPDATE_DRIVER(armedf_state, screen_update_armedf)
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
- MCFG_GFXDECODE_ADD("gfxdecode", armedf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", armedf)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
@@ -1285,7 +1285,7 @@ static MACHINE_CONFIG_START( kozure, armedf_state )
MCFG_SCREEN_UPDATE_DRIVER(armedf_state, screen_update_armedf)
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
- MCFG_GFXDECODE_ADD("gfxdecode", armedf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", armedf)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
@@ -1331,7 +1331,7 @@ static MACHINE_CONFIG_START( armedf, armedf_state )
MCFG_SCREEN_UPDATE_DRIVER(armedf_state, screen_update_armedf)
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
- MCFG_GFXDECODE_ADD("gfxdecode", armedf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", armedf)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
@@ -1377,7 +1377,7 @@ static MACHINE_CONFIG_START( cclimbr2, armedf_state )
MCFG_SCREEN_UPDATE_DRIVER(armedf_state, screen_update_armedf)
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
- MCFG_GFXDECODE_ADD("gfxdecode", armedf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", armedf)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
@@ -1423,7 +1423,7 @@ static MACHINE_CONFIG_START( legion, armedf_state )
MCFG_SCREEN_UPDATE_DRIVER(armedf_state, screen_update_armedf)
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
- MCFG_GFXDECODE_ADD("gfxdecode", armedf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", armedf)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
@@ -1469,7 +1469,7 @@ static MACHINE_CONFIG_START( legiono, armedf_state )
MCFG_SCREEN_UPDATE_DRIVER(armedf_state, screen_update_armedf)
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
- MCFG_GFXDECODE_ADD("gfxdecode", armedf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", armedf)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
@@ -1526,7 +1526,7 @@ static MACHINE_CONFIG_START( bigfghtr, bigfghtr_state )
MCFG_SCREEN_UPDATE_DRIVER(armedf_state, screen_update_armedf)
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
- MCFG_GFXDECODE_ADD("gfxdecode", armedf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", armedf)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
diff --git a/src/mame/drivers/ashnojoe.c b/src/mame/drivers/ashnojoe.c
index b54728b96cd..35b2633c2ac 100644
--- a/src/mame/drivers/ashnojoe.c
+++ b/src/mame/drivers/ashnojoe.c
@@ -357,7 +357,7 @@ static MACHINE_CONFIG_START( ashnojoe, ashnojoe_state )
MCFG_SCREEN_UPDATE_DRIVER(ashnojoe_state, screen_update_ashnojoe)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ashnojoe)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ashnojoe)
MCFG_PALETTE_ADD("palette", 0x1000/2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/asterix.c b/src/mame/drivers/asterix.c
index 0d1f596b523..2933af6f85f 100644
--- a/src/mame/drivers/asterix.c
+++ b/src/mame/drivers/asterix.c
@@ -293,7 +293,7 @@ static MACHINE_CONFIG_START( asterix, asterix_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K056832_ADD("k056832", asterix_k056832_intf)
MCFG_K056832_GFXDECODE("gfxdecode")
MCFG_K056832_PALETTE("palette")
diff --git a/src/mame/drivers/astrcorp.c b/src/mame/drivers/astrcorp.c
index b129193831b..b676f17bb2e 100644
--- a/src/mame/drivers/astrcorp.c
+++ b/src/mame/drivers/astrcorp.c
@@ -485,7 +485,7 @@ static MACHINE_CONFIG_START( showhand, astrocorp_state )
MCFG_SCREEN_UPDATE_DRIVER(astrocorp_state, screen_update_astrocorp)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", astrocorp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", astrocorp)
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_PALETTE_FORMAT(BBBBBGGGGGGRRRRR)
@@ -538,7 +538,7 @@ static MACHINE_CONFIG_START( skilldrp, astrocorp_state )
MCFG_SCREEN_UPDATE_DRIVER(astrocorp_state, screen_update_astrocorp)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", astrocorp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", astrocorp)
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_PALETTE_FORMAT(BBBBBGGGGGGRRRRR)
diff --git a/src/mame/drivers/asuka.c b/src/mame/drivers/asuka.c
index 6667d33188d..be623a33352 100644
--- a/src/mame/drivers/asuka.c
+++ b/src/mame/drivers/asuka.c
@@ -891,7 +891,7 @@ static MACHINE_CONFIG_START( bonzeadv, asuka_state )
MCFG_SCREEN_VBLANK_DRIVER(asuka_state, screen_eof_asuka)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", asuka)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", asuka)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PC090OJ_ADD("pc090oj", bonzeadv_pc090oj_intf)
@@ -940,7 +940,7 @@ static MACHINE_CONFIG_START( asuka, asuka_state )
MCFG_SCREEN_VBLANK_DRIVER(asuka_state, screen_eof_asuka)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", asuka)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", asuka)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PC090OJ_ADD("pc090oj", asuka_pc090oj_intf)
@@ -997,7 +997,7 @@ static MACHINE_CONFIG_START( cadash, asuka_state )
MCFG_SCREEN_VBLANK_DRIVER(asuka_state, screen_eof_asuka)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", asuka)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", asuka)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PC090OJ_ADD("pc090oj", asuka_pc090oj_intf)
@@ -1046,7 +1046,7 @@ static MACHINE_CONFIG_START( mofflott, asuka_state )
MCFG_SCREEN_VBLANK_DRIVER(asuka_state, screen_eof_asuka)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", asuka)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", asuka)
MCFG_PALETTE_ADD("palette", 4096) /* only Mofflott uses full palette space */
MCFG_PC090OJ_ADD("pc090oj", bonzeadv_pc090oj_intf)
@@ -1099,7 +1099,7 @@ static MACHINE_CONFIG_START( galmedes, asuka_state )
MCFG_SCREEN_VBLANK_DRIVER(asuka_state, screen_eof_asuka)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", asuka)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", asuka)
MCFG_PALETTE_ADD("palette", 4096) /* only Mofflott uses full palette space */
MCFG_PC090OJ_ADD("pc090oj", bonzeadv_pc090oj_intf)
@@ -1148,7 +1148,7 @@ static MACHINE_CONFIG_START( eto, asuka_state )
MCFG_SCREEN_VBLANK_DRIVER(asuka_state, screen_eof_asuka)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", asuka)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", asuka)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PC090OJ_ADD("pc090oj", bonzeadv_pc090oj_intf)
diff --git a/src/mame/drivers/atarifb.c b/src/mame/drivers/atarifb.c
index 04ba4701746..f6a9cff34aa 100644
--- a/src/mame/drivers/atarifb.c
+++ b/src/mame/drivers/atarifb.c
@@ -563,7 +563,7 @@ static MACHINE_CONFIG_START( atarifb, atarifb_state )
MCFG_SCREEN_UPDATE_DRIVER(atarifb_state, screen_update_atarifb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", atarifb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", atarifb)
MCFG_PALETTE_ADD("palette", 12)
MCFG_PALETTE_INIT_OWNER(atarifb_state, atarifb)
diff --git a/src/mame/drivers/atarig1.c b/src/mame/drivers/atarig1.c
index 9eff84805cd..d9dcee603e4 100644
--- a/src/mame/drivers/atarig1.c
+++ b/src/mame/drivers/atarig1.c
@@ -434,7 +434,7 @@ static MACHINE_CONFIG_START( atarig1, atarig1_state )
MCFG_ATARI_EEPROM_2816_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", atarig1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", atarig1)
MCFG_PALETTE_ADD("palette", 1280)
/* initialize the playfield */
diff --git a/src/mame/drivers/atarig42.c b/src/mame/drivers/atarig42.c
index dc1e90e901f..059214ea0f9 100644
--- a/src/mame/drivers/atarig42.c
+++ b/src/mame/drivers/atarig42.c
@@ -544,7 +544,7 @@ static MACHINE_CONFIG_START( atarig42, atarig42_state )
MCFG_ATARI_EEPROM_2816_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", atarig42)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", atarig42)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_TILEMAP_ADD_CUSTOM("playfield", "gfxdecode", 2, atarig42_state, get_playfield_tile_info, 8,8, atarig42_playfield_scan, 128,64)
diff --git a/src/mame/drivers/atarigt.c b/src/mame/drivers/atarigt.c
index 80ff83f125d..6f7565e5f8f 100644
--- a/src/mame/drivers/atarigt.c
+++ b/src/mame/drivers/atarigt.c
@@ -830,7 +830,7 @@ static MACHINE_CONFIG_START( atarigt, atarigt_state )
MCFG_ATARI_EEPROM_2816_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", atarigt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", atarigt)
MCFG_PALETTE_ADD("palette", 32768)
MCFG_TILEMAP_ADD_CUSTOM("playfield", "gfxdecode", 2, atarigt_state, get_playfield_tile_info, 8,8, atarigt_playfield_scan, 128,64)
diff --git a/src/mame/drivers/atarigx2.c b/src/mame/drivers/atarigx2.c
index feaff373640..b98d83a91d9 100644
--- a/src/mame/drivers/atarigx2.c
+++ b/src/mame/drivers/atarigx2.c
@@ -1462,7 +1462,7 @@ static MACHINE_CONFIG_START( atarigx2, atarigx2_state )
MCFG_ATARI_EEPROM_2816_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", atarigx2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", atarigx2)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_TILEMAP_ADD_CUSTOM("playfield", "gfxdecode", 2, atarigx2_state, get_playfield_tile_info, 8,8, atarigx2_playfield_scan, 128,64)
diff --git a/src/mame/drivers/atarisy1.c b/src/mame/drivers/atarisy1.c
index 68d1247df0b..19cdda0bf1b 100644
--- a/src/mame/drivers/atarisy1.c
+++ b/src/mame/drivers/atarisy1.c
@@ -727,7 +727,7 @@ static MACHINE_CONFIG_START( atarisy1, atarisy1_state )
MCFG_TIMER_DRIVER_ADD("yreset_timer", atarisy1_state, atarisy1_reset_yscroll_callback)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", atarisy1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", atarisy1)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(IIIIRRRRGGGGBBBB)
diff --git a/src/mame/drivers/atarisy2.c b/src/mame/drivers/atarisy2.c
index 82850c71e28..b37e4b6a72e 100644
--- a/src/mame/drivers/atarisy2.c
+++ b/src/mame/drivers/atarisy2.c
@@ -1235,7 +1235,7 @@ static MACHINE_CONFIG_START( atarisy2, atarisy2_state )
MCFG_EEPROM_2804_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", atarisy2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", atarisy2)
MCFG_PALETTE_ADD("palette", 256)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, atarisy2_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 128,64)
diff --git a/src/mame/drivers/atetris.c b/src/mame/drivers/atetris.c
index 7fb5026e693..30a88288135 100644
--- a/src/mame/drivers/atetris.c
+++ b/src/mame/drivers/atetris.c
@@ -331,7 +331,7 @@ static MACHINE_CONFIG_START( atetris, atetris_state )
MCFG_NVRAM_ADD_1FILL("nvram")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", atetris)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", atetris)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(RRRGGGBB)
@@ -366,7 +366,7 @@ static MACHINE_CONFIG_START( atetrisb2, atetris_state )
MCFG_NVRAM_ADD_1FILL("nvram")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", atetris)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", atetris)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(RRRGGGBB)
diff --git a/src/mame/drivers/avt.c b/src/mame/drivers/avt.c
index 6a448e52473..cda51994b6f 100644
--- a/src/mame/drivers/avt.c
+++ b/src/mame/drivers/avt.c
@@ -909,7 +909,7 @@ static MACHINE_CONFIG_START( avt, avt_state )
MCFG_SCREEN_UPDATE_DRIVER(avt_state, screen_update_avt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", avt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", avt)
MCFG_PALETTE_ADD("palette", 8*16)
MCFG_PALETTE_INIT_OWNER(avt_state, avt)
diff --git a/src/mame/drivers/backfire.c b/src/mame/drivers/backfire.c
index 64506982458..8629751d0f4 100644
--- a/src/mame/drivers/backfire.c
+++ b/src/mame/drivers/backfire.c
@@ -506,7 +506,7 @@ static MACHINE_CONFIG_START( backfire, backfire_state )
/* video hardware */
MCFG_PALETTE_ADD("palette", 2048)
- MCFG_GFXDECODE_ADD("gfxdecode", backfire)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", backfire)
MCFG_DEFAULT_LAYOUT(layout_dualhsxs)
MCFG_SCREEN_ADD("lscreen", RASTER)
diff --git a/src/mame/drivers/badlands.c b/src/mame/drivers/badlands.c
index 4937f0dcb21..1d467e0c8a6 100644
--- a/src/mame/drivers/badlands.c
+++ b/src/mame/drivers/badlands.c
@@ -509,7 +509,7 @@ static MACHINE_CONFIG_START( badlands, badlands_state )
MCFG_ATARI_EEPROM_2816_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", badlands)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", badlands)
MCFG_PALETTE_ADD("palette", 256)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, badlands_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,32)
@@ -713,7 +713,7 @@ static MACHINE_CONFIG_START( badlandsb, badlands_state )
MCFG_ATARI_EEPROM_2816_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", badlandsb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", badlandsb)
MCFG_PALETTE_ADD("palette", 256)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, badlands_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,32)
diff --git a/src/mame/drivers/bagman.c b/src/mame/drivers/bagman.c
index 49766344840..bccbe1ae666 100644
--- a/src/mame/drivers/bagman.c
+++ b/src/mame/drivers/bagman.c
@@ -484,7 +484,7 @@ static MACHINE_CONFIG_START( bagman, bagman_state )
MCFG_SCREEN_UPDATE_DRIVER(bagman_state, screen_update_bagman)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bagman)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bagman)
MCFG_PALETTE_ADD("palette", 64)
MCFG_PALETTE_INIT_OWNER(bagman_state,bagman)
@@ -521,7 +521,7 @@ static MACHINE_CONFIG_START( pickin, bagman_state )
MCFG_SCREEN_UPDATE_DRIVER(bagman_state, screen_update_bagman)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", pickin)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", pickin)
MCFG_PALETTE_ADD("palette", 64)
MCFG_PALETTE_INIT_OWNER(bagman_state,bagman)
@@ -574,7 +574,7 @@ static MACHINE_CONFIG_START( botanic, bagman_state )
MCFG_SCREEN_UPDATE_DRIVER(bagman_state, screen_update_bagman)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bagman)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bagman)
MCFG_PALETTE_ADD("palette", 64)
MCFG_PALETTE_INIT_OWNER(bagman_state,bagman)
diff --git a/src/mame/drivers/bankp.c b/src/mame/drivers/bankp.c
index 202d796ca9d..d8f39659d7d 100644
--- a/src/mame/drivers/bankp.c
+++ b/src/mame/drivers/bankp.c
@@ -300,7 +300,7 @@ static MACHINE_CONFIG_START( bankp, bankp_state )
MCFG_SCREEN_UPDATE_DRIVER(bankp_state, screen_update_bankp)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bankp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bankp)
MCFG_PALETTE_ADD("palette", 32*4+16*8)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(bankp_state, bankp)
diff --git a/src/mame/drivers/baraduke.c b/src/mame/drivers/baraduke.c
index 8b183024617..8224240e75f 100644
--- a/src/mame/drivers/baraduke.c
+++ b/src/mame/drivers/baraduke.c
@@ -393,7 +393,7 @@ static MACHINE_CONFIG_START( baraduke, baraduke_state )
MCFG_SCREEN_VBLANK_DRIVER(baraduke_state, screen_eof_baraduke)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", baraduke)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", baraduke)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_INIT_OWNER(baraduke_state, baraduke)
diff --git a/src/mame/drivers/batman.c b/src/mame/drivers/batman.c
index b53c3b7865f..c90828317d9 100644
--- a/src/mame/drivers/batman.c
+++ b/src/mame/drivers/batman.c
@@ -206,7 +206,7 @@ static MACHINE_CONFIG_START( batman, batman_state )
MCFG_ATARI_EEPROM_2816_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", batman)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", batman)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_ATARI_VAD_ADD("vad", "screen", WRITELINE(atarigen_state, scanline_int_write_line))
diff --git a/src/mame/drivers/battlane.c b/src/mame/drivers/battlane.c
index f40509c6848..15cde79dd8e 100644
--- a/src/mame/drivers/battlane.c
+++ b/src/mame/drivers/battlane.c
@@ -286,7 +286,7 @@ static MACHINE_CONFIG_START( battlane, battlane_state )
MCFG_SCREEN_UPDATE_DRIVER(battlane_state, screen_update_battlane)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", battlane)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", battlane)
MCFG_PALETTE_ADD("palette", 64)
diff --git a/src/mame/drivers/battlera.c b/src/mame/drivers/battlera.c
index 07a609f4f73..13801004110 100644
--- a/src/mame/drivers/battlera.c
+++ b/src/mame/drivers/battlera.c
@@ -245,7 +245,7 @@ static MACHINE_CONFIG_START( battlera, battlera_state )
MCFG_SCREEN_UPDATE_DRIVER(battlera_state, screen_update_battlera)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", battlera)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", battlera)
MCFG_PALETTE_ADD("palette", 512)
diff --git a/src/mame/drivers/battlex.c b/src/mame/drivers/battlex.c
index 4f0615d2337..b5327c41c97 100644
--- a/src/mame/drivers/battlex.c
+++ b/src/mame/drivers/battlex.c
@@ -259,7 +259,7 @@ static MACHINE_CONFIG_START( battlex, battlex_state )
MCFG_SCREEN_UPDATE_DRIVER(battlex_state, screen_update_battlex)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", battlex)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", battlex)
MCFG_PALETTE_ADD("palette", 64)
/* sound hardware */
diff --git a/src/mame/drivers/battlnts.c b/src/mame/drivers/battlnts.c
index 25f4f939e45..8d7f7573b87 100644
--- a/src/mame/drivers/battlnts.c
+++ b/src/mame/drivers/battlnts.c
@@ -251,7 +251,7 @@ static MACHINE_CONFIG_START( battlnts, battlnts_state )
MCFG_SCREEN_UPDATE_DRIVER(battlnts_state, screen_update_battlnts)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", battlnts)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", battlnts)
MCFG_PALETTE_ADD("palette", 128)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/bbusters.c b/src/mame/drivers/bbusters.c
index 5422df95a29..ad621ad37f8 100644
--- a/src/mame/drivers/bbusters.c
+++ b/src/mame/drivers/bbusters.c
@@ -682,7 +682,7 @@ static MACHINE_CONFIG_START( bbusters, bbusters_state )
MCFG_SCREEN_VBLANK_DRIVER(bbusters_state, screen_eof_bbuster)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bbusters)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bbusters)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
@@ -722,7 +722,7 @@ static MACHINE_CONFIG_START( mechatt, bbusters_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mechatt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mechatt)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
diff --git a/src/mame/drivers/bestleag.c b/src/mame/drivers/bestleag.c
index 0526f11bc06..ac8334928f8 100644
--- a/src/mame/drivers/bestleag.c
+++ b/src/mame/drivers/bestleag.c
@@ -380,7 +380,7 @@ static MACHINE_CONFIG_START( bestleag, bestleag_state )
MCFG_SCREEN_UPDATE_DRIVER(bestleag_state, screen_update_bestleag)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bestleag)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bestleag)
MCFG_PALETTE_ADD("palette", 0x800)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
diff --git a/src/mame/drivers/bigevglf.c b/src/mame/drivers/bigevglf.c
index 4f9a7d4ff5f..1469202e1f9 100644
--- a/src/mame/drivers/bigevglf.c
+++ b/src/mame/drivers/bigevglf.c
@@ -511,7 +511,7 @@ static MACHINE_CONFIG_START( bigevglf, bigevglf_state )
MCFG_SCREEN_UPDATE_DRIVER(bigevglf_state, screen_update_bigevglf)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bigevglf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bigevglf)
MCFG_PALETTE_ADD("palette", 0x800)
/* sound hardware */
diff --git a/src/mame/drivers/bigstrkb.c b/src/mame/drivers/bigstrkb.c
index 46d23230717..320f5948756 100644
--- a/src/mame/drivers/bigstrkb.c
+++ b/src/mame/drivers/bigstrkb.c
@@ -200,7 +200,7 @@ static MACHINE_CONFIG_START( bigstrkb, bigstrkb_state )
MCFG_CPU_PROGRAM_MAP(bigstrkb_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", bigstrkb_state, irq6_line_hold)
- MCFG_GFXDECODE_ADD("gfxdecode", bigstrkb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bigstrkb)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/bingoman.c b/src/mame/drivers/bingoman.c
index 3ac8824783f..d5afaad21a2 100644
--- a/src/mame/drivers/bingoman.c
+++ b/src/mame/drivers/bingoman.c
@@ -383,7 +383,7 @@ static MACHINE_CONFIG_START( bingoman, bingoman_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bingoman)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bingoman)
MCFG_PALETTE_ADD("palette", 8)
MCFG_PALETTE_INIT_OWNER(bingoman_state, bingoman)
diff --git a/src/mame/drivers/bingor.c b/src/mame/drivers/bingor.c
index 1747764f727..e4c6547c8b8 100644
--- a/src/mame/drivers/bingor.c
+++ b/src/mame/drivers/bingor.c
@@ -634,7 +634,7 @@ static MACHINE_CONFIG_START( bingor, bingor_state )
MCFG_CPU_IO_MAP(pic_io_map)
- MCFG_GFXDECODE_ADD("gfxdecode", bingor)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bingor)
//MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/bionicc.c b/src/mame/drivers/bionicc.c
index 90a93803898..2917e755d7e 100644
--- a/src/mame/drivers/bionicc.c
+++ b/src/mame/drivers/bionicc.c
@@ -368,7 +368,7 @@ static MACHINE_CONFIG_START( bionicc, bionicc_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bionicc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bionicc)
MCFG_PALETTE_ADD("palette", 1024)
diff --git a/src/mame/drivers/bishi.c b/src/mame/drivers/bishi.c
index 0d9dd52f0dd..d70317b5f0d 100644
--- a/src/mame/drivers/bishi.c
+++ b/src/mame/drivers/bishi.c
@@ -412,7 +412,7 @@ static MACHINE_CONFIG_START( bishi, bishi_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K056832_ADD("k056832", bishi_k056832_intf)
MCFG_K056832_GFXDECODE("gfxdecode")
MCFG_K056832_PALETTE("palette")
diff --git a/src/mame/drivers/bking.c b/src/mame/drivers/bking.c
index e47acc3e405..6a0183e4092 100644
--- a/src/mame/drivers/bking.c
+++ b/src/mame/drivers/bking.c
@@ -481,7 +481,7 @@ static MACHINE_CONFIG_START( bking, bking_state )
MCFG_SCREEN_VBLANK_DRIVER(bking_state, screen_eof_bking)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bking)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bking)
MCFG_PALETTE_ADD("palette", 4*8+4*4+4*2+4*2)
MCFG_PALETTE_INIT_OWNER(bking_state, bking)
diff --git a/src/mame/drivers/blackt96.c b/src/mame/drivers/blackt96.c
index abdc8c81dd3..e8d3180bdc8 100644
--- a/src/mame/drivers/blackt96.c
+++ b/src/mame/drivers/blackt96.c
@@ -604,7 +604,7 @@ static MACHINE_CONFIG_START( blackt96, blackt96_state )
MCFG_CPU_ADD("audiocpu", PIC16C57, 8000000) /* ? */
MCFG_CPU_IO_MAP(sound_io_map)
- MCFG_GFXDECODE_ADD("gfxdecode", blackt96)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", blackt96)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/bladestl.c b/src/mame/drivers/bladestl.c
index b56139f471e..d5315438fbc 100644
--- a/src/mame/drivers/bladestl.c
+++ b/src/mame/drivers/bladestl.c
@@ -331,7 +331,7 @@ static MACHINE_CONFIG_START( bladestl, bladestl_state )
MCFG_SCREEN_UPDATE_DRIVER(bladestl_state, screen_update_bladestl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bladestl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bladestl)
MCFG_PALETTE_ADD("palette", 32 + 16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32+16)
MCFG_PALETTE_INIT_OWNER(bladestl_state, bladestl)
diff --git a/src/mame/drivers/blitz.c b/src/mame/drivers/blitz.c
index 8e2433b70ce..49d830b8a99 100644
--- a/src/mame/drivers/blitz.c
+++ b/src/mame/drivers/blitz.c
@@ -789,7 +789,7 @@ static MACHINE_CONFIG_START( megadpkr, blitz_state )
MCFG_MC6845_ADD("crtc", MC6845, "screen", CPU_CLOCK, mc6845_intf)
- MCFG_GFXDECODE_ADD("gfxdecode", megadpkr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", megadpkr)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(blitz_state, blitz)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/blktiger.c b/src/mame/drivers/blktiger.c
index 945aaea0732..895d9e4f7be 100644
--- a/src/mame/drivers/blktiger.c
+++ b/src/mame/drivers/blktiger.c
@@ -329,7 +329,7 @@ static MACHINE_CONFIG_START( blktiger, blktiger_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", blktiger)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", blktiger)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG)
diff --git a/src/mame/drivers/blmbycar.c b/src/mame/drivers/blmbycar.c
index b7f4b328c82..98bfb1b2600 100644
--- a/src/mame/drivers/blmbycar.c
+++ b/src/mame/drivers/blmbycar.c
@@ -364,7 +364,7 @@ static MACHINE_CONFIG_START( blmbycar, blmbycar_state )
MCFG_SCREEN_UPDATE_DRIVER(blmbycar_state, screen_update_blmbycar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", blmbycar)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", blmbycar)
MCFG_PALETTE_ADD("palette", 0x300)
@@ -406,7 +406,7 @@ static MACHINE_CONFIG_START( watrball, blmbycar_state )
MCFG_SCREEN_UPDATE_DRIVER(blmbycar_state, screen_update_blmbycar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", blmbycar)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", blmbycar)
MCFG_PALETTE_ADD("palette", 0x300)
diff --git a/src/mame/drivers/blockade.c b/src/mame/drivers/blockade.c
index 956049673d2..2d34bfd8963 100644
--- a/src/mame/drivers/blockade.c
+++ b/src/mame/drivers/blockade.c
@@ -474,7 +474,7 @@ static MACHINE_CONFIG_START( blockade, blockade_state )
MCFG_SCREEN_UPDATE_DRIVER(blockade_state, screen_update_blockade)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", blockade)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", blockade)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
diff --git a/src/mame/drivers/blockhl.c b/src/mame/drivers/blockhl.c
index 8a6d8dc95cc..a0f7c052eb0 100644
--- a/src/mame/drivers/blockhl.c
+++ b/src/mame/drivers/blockhl.c
@@ -225,7 +225,7 @@ static MACHINE_CONFIG_START( blockhl, blockhl_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", blockhl_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
MCFG_K052109_PALETTE("palette")
diff --git a/src/mame/drivers/bloodbro.c b/src/mame/drivers/bloodbro.c
index 4a37e2e6dd1..ab826c5fd1f 100644
--- a/src/mame/drivers/bloodbro.c
+++ b/src/mame/drivers/bloodbro.c
@@ -474,7 +474,7 @@ static MACHINE_CONFIG_START( bloodbro, bloodbro_state )
MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(bloodbro_state, layer_scroll_w))
- MCFG_GFXDECODE_ADD("gfxdecode", bloodbro)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bloodbro)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/blstroid.c b/src/mame/drivers/blstroid.c
index b7f39911119..bd47378458e 100644
--- a/src/mame/drivers/blstroid.c
+++ b/src/mame/drivers/blstroid.c
@@ -182,7 +182,7 @@ static MACHINE_CONFIG_START( blstroid, blstroid_state )
MCFG_ATARI_EEPROM_2804_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", blstroid)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", blstroid)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/blueprnt.c b/src/mame/drivers/blueprnt.c
index 0e50f2b90d1..b790d812546 100644
--- a/src/mame/drivers/blueprnt.c
+++ b/src/mame/drivers/blueprnt.c
@@ -386,7 +386,7 @@ static MACHINE_CONFIG_START( blueprnt, blueprnt_state )
MCFG_SCREEN_UPDATE_DRIVER(blueprnt_state, screen_update_blueprnt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", blueprnt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", blueprnt)
MCFG_PALETTE_ADD("palette", 128*4+8)
MCFG_PALETTE_INIT_OWNER(blueprnt_state, blueprnt)
diff --git a/src/mame/drivers/bmcpokr.c b/src/mame/drivers/bmcpokr.c
index e4dfbbd9e69..91f6b9c52ed 100644
--- a/src/mame/drivers/bmcpokr.c
+++ b/src/mame/drivers/bmcpokr.c
@@ -244,7 +244,7 @@ static MACHINE_CONFIG_START( bmcpokr, bmcpokr_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_PALETTE_ADD("palette", 256)
- MCFG_GFXDECODE_ADD("gfxdecode", bmcpokr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bmcpokr)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/bnstars.c b/src/mame/drivers/bnstars.c
index e0efeaa81f9..26df4f83486 100644
--- a/src/mame/drivers/bnstars.c
+++ b/src/mame/drivers/bnstars.c
@@ -1334,7 +1334,7 @@ static MACHINE_CONFIG_START( bnstars, bnstars_state )
MCFG_QUANTUM_TIME(attotime::from_hz(60000))
- MCFG_GFXDECODE_ADD("gfxdecode", bnstars)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bnstars)
MCFG_PALETTE_ADD("palette", 0x8000*2)
MCFG_DEFAULT_LAYOUT(layout_dualhsxs)
diff --git a/src/mame/drivers/bogeyman.c b/src/mame/drivers/bogeyman.c
index 3bfae4fc457..d893d2f2796 100644
--- a/src/mame/drivers/bogeyman.c
+++ b/src/mame/drivers/bogeyman.c
@@ -250,7 +250,7 @@ static MACHINE_CONFIG_START( bogeyman, bogeyman_state )
MCFG_SCREEN_UPDATE_DRIVER(bogeyman_state, screen_update_bogeyman)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bogeyman)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bogeyman)
MCFG_PALETTE_ADD("palette", 16+256)
MCFG_PALETTE_FORMAT(BBGGGRRR)
MCFG_PALETTE_INIT_OWNER(bogeyman_state, bogeyman)
diff --git a/src/mame/drivers/bombjack.c b/src/mame/drivers/bombjack.c
index 068956ab6fd..f6602ae72bd 100644
--- a/src/mame/drivers/bombjack.c
+++ b/src/mame/drivers/bombjack.c
@@ -371,7 +371,7 @@ static MACHINE_CONFIG_START( bombjack, bombjack_state )
MCFG_SCREEN_UPDATE_DRIVER(bombjack_state, screen_update_bombjack)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bombjack)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bombjack)
MCFG_PALETTE_ADD("palette", 128)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/boogwing.c b/src/mame/drivers/boogwing.c
index 7f424640311..4e53f11b885 100644
--- a/src/mame/drivers/boogwing.c
+++ b/src/mame/drivers/boogwing.c
@@ -352,7 +352,7 @@ static MACHINE_CONFIG_START( boogwing, boogwing_state )
MCFG_SCREEN_UPDATE_DRIVER(boogwing_state, screen_update_boogwing)
MCFG_PALETTE_ADD("palette", 2048)
- MCFG_GFXDECODE_ADD("gfxdecode", boogwing)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", boogwing)
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
diff --git a/src/mame/drivers/bottom9.c b/src/mame/drivers/bottom9.c
index 4e3f0309b5e..3983099b7fe 100644
--- a/src/mame/drivers/bottom9.c
+++ b/src/mame/drivers/bottom9.c
@@ -340,7 +340,7 @@ static MACHINE_CONFIG_START( bottom9, bottom9_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", bottom9_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
MCFG_K052109_PALETTE("palette")
diff --git a/src/mame/drivers/boxer.c b/src/mame/drivers/boxer.c
index fdbbdc86304..3adc7998c53 100644
--- a/src/mame/drivers/boxer.c
+++ b/src/mame/drivers/boxer.c
@@ -487,7 +487,7 @@ static MACHINE_CONFIG_START( boxer, boxer_state )
MCFG_SCREEN_UPDATE_DRIVER(boxer_state, screen_update_boxer)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", boxer)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", boxer)
MCFG_PALETTE_ADD("palette", 4)
MCFG_PALETTE_INIT_OWNER(boxer_state, boxer)
diff --git a/src/mame/drivers/brkthru.c b/src/mame/drivers/brkthru.c
index e620cd2b05e..6e35f97c08e 100644
--- a/src/mame/drivers/brkthru.c
+++ b/src/mame/drivers/brkthru.c
@@ -381,7 +381,7 @@ static MACHINE_CONFIG_START( brkthru, brkthru_state )
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", brkthru)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", brkthru)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(brkthru_state, brkthru)
@@ -419,7 +419,7 @@ static MACHINE_CONFIG_START( darwin, brkthru_state )
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", brkthru)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", brkthru)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(brkthru_state, brkthru)
diff --git a/src/mame/drivers/bsktball.c b/src/mame/drivers/bsktball.c
index 1da2d529de0..e5c57c4df20 100644
--- a/src/mame/drivers/bsktball.c
+++ b/src/mame/drivers/bsktball.c
@@ -257,7 +257,7 @@ static MACHINE_CONFIG_START( bsktball, bsktball_state )
MCFG_SCREEN_UPDATE_DRIVER(bsktball_state, screen_update_bsktball)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bsktball)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bsktball)
MCFG_PALETTE_ADD("palette", 2*4 + 4*4*4*4)
MCFG_PALETTE_INDIRECT_ENTRIES(4)
MCFG_PALETTE_INIT_OWNER(bsktball_state, bsktball)
diff --git a/src/mame/drivers/btime.c b/src/mame/drivers/btime.c
index c4f98504284..e4ed1ed99c0 100644
--- a/src/mame/drivers/btime.c
+++ b/src/mame/drivers/btime.c
@@ -1318,7 +1318,7 @@ static MACHINE_CONFIG_START( btime, btime_state )
MCFG_MACHINE_START_OVERRIDE(btime_state,btime)
MCFG_MACHINE_RESET_OVERRIDE(btime_state,btime)
- MCFG_GFXDECODE_ADD("gfxdecode", btime)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", btime)
MCFG_PALETTE_ADD("palette", 16)
MCFG_PALETTE_INIT_OWNER(btime_state,btime)
diff --git a/src/mame/drivers/bublbobl.c b/src/mame/drivers/bublbobl.c
index 2151bd8f86e..65668b08a3a 100644
--- a/src/mame/drivers/bublbobl.c
+++ b/src/mame/drivers/bublbobl.c
@@ -771,7 +771,7 @@ static MACHINE_CONFIG_START( tokio, bublbobl_state )
MCFG_SCREEN_UPDATE_DRIVER(bublbobl_state, screen_update_bublbobl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bublbobl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bublbobl)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG)
@@ -854,7 +854,7 @@ static MACHINE_CONFIG_START( bublbobl, bublbobl_state )
MCFG_SCREEN_UPDATE_DRIVER(bublbobl_state, screen_update_bublbobl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bublbobl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bublbobl)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG)
diff --git a/src/mame/drivers/buggychl.c b/src/mame/drivers/buggychl.c
index 2a08913044f..7db2735f131 100644
--- a/src/mame/drivers/buggychl.c
+++ b/src/mame/drivers/buggychl.c
@@ -409,7 +409,7 @@ static MACHINE_CONFIG_START( buggychl, buggychl_state )
MCFG_SCREEN_UPDATE_DRIVER(buggychl_state, screen_update_buggychl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", buggychl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", buggychl)
MCFG_PALETTE_ADD("palette", 128+128)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG)
diff --git a/src/mame/drivers/buster.c b/src/mame/drivers/buster.c
index 4276124ac47..939860962ad 100644
--- a/src/mame/drivers/buster.c
+++ b/src/mame/drivers/buster.c
@@ -352,7 +352,7 @@ static MACHINE_CONFIG_START( buster, buster_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_MC6845_ADD("crtc", MC6845, "screen", XTAL_3_579545MHz/4, mc6845_intf) //unknown clock / type
- MCFG_GFXDECODE_ADD("gfxdecode", buster)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", buster)
MCFG_PALETTE_ADD("palette", 8)
MCFG_PALETTE_INIT_OWNER(buster_state, buster)
diff --git a/src/mame/drivers/bwing.c b/src/mame/drivers/bwing.c
index 673a98f26b2..15fa961bcc0 100644
--- a/src/mame/drivers/bwing.c
+++ b/src/mame/drivers/bwing.c
@@ -379,7 +379,7 @@ static MACHINE_CONFIG_START( bwing, bwing_state )
MCFG_SCREEN_UPDATE_DRIVER(bwing_state, screen_update_bwing)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bwing)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bwing)
MCFG_PALETTE_ADD("palette", 64)
diff --git a/src/mame/drivers/cabal.c b/src/mame/drivers/cabal.c
index 8177ef709c6..afb5e130e30 100644
--- a/src/mame/drivers/cabal.c
+++ b/src/mame/drivers/cabal.c
@@ -489,7 +489,7 @@ static MACHINE_CONFIG_START( cabal, cabal_state )
MCFG_SCREEN_UPDATE_DRIVER(cabal_state, screen_update_cabal)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cabal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cabal)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -547,7 +547,7 @@ static MACHINE_CONFIG_START( cabalbl, cabal_state )
MCFG_SCREEN_UPDATE_DRIVER(cabal_state, screen_update_cabal)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cabal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cabal)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/cabaret.c b/src/mame/drivers/cabaret.c
index 40adc909ee4..31a0361980b 100644
--- a/src/mame/drivers/cabaret.c
+++ b/src/mame/drivers/cabaret.c
@@ -354,7 +354,7 @@ static MACHINE_CONFIG_START( cabaret, cabaret_state )
MCFG_SCREEN_UPDATE_DRIVER(cabaret_state, screen_update_cabaret)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cabaret)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cabaret)
MCFG_PALETTE_ADD("palette", 0x800)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/calomega.c b/src/mame/drivers/calomega.c
index 33830c5d300..84255193866 100644
--- a/src/mame/drivers/calomega.c
+++ b/src/mame/drivers/calomega.c
@@ -2649,7 +2649,7 @@ static MACHINE_CONFIG_START( sys903, calomega_state )
MCFG_SCREEN_UPDATE_DRIVER(calomega_state, screen_update_calomega)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", calomega)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", calomega)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INIT_OWNER(calomega_state, calomega)
diff --git a/src/mame/drivers/calorie.c b/src/mame/drivers/calorie.c
index 7d6f9a9cfd9..c1eacea04d5 100644
--- a/src/mame/drivers/calorie.c
+++ b/src/mame/drivers/calorie.c
@@ -462,7 +462,7 @@ static MACHINE_CONFIG_START( calorie, calorie_state )
MCFG_SCREEN_UPDATE_DRIVER(calorie_state, screen_update_calorie)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", calorie)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", calorie)
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/canyon.c b/src/mame/drivers/canyon.c
index 4acef8cad73..dba8bfcb41f 100644
--- a/src/mame/drivers/canyon.c
+++ b/src/mame/drivers/canyon.c
@@ -251,7 +251,7 @@ static MACHINE_CONFIG_START( canyon, canyon_state )
MCFG_SCREEN_UPDATE_DRIVER(canyon_state, screen_update_canyon)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", canyon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", canyon)
MCFG_PALETTE_ADD("palette", 4)
MCFG_PALETTE_INIT_OWNER(canyon_state, canyon)
diff --git a/src/mame/drivers/cardline.c b/src/mame/drivers/cardline.c
index 967da36895b..390c41ddc0b 100644
--- a/src/mame/drivers/cardline.c
+++ b/src/mame/drivers/cardline.c
@@ -235,7 +235,7 @@ static MACHINE_CONFIG_START( cardline, cardline_state )
MCFG_SCREEN_UPDATE_DRIVER(cardline_state, screen_update_cardline)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cardline)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cardline)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(cardline_state, cardline)
diff --git a/src/mame/drivers/carjmbre.c b/src/mame/drivers/carjmbre.c
index be8f802b9d3..178688762ec 100644
--- a/src/mame/drivers/carjmbre.c
+++ b/src/mame/drivers/carjmbre.c
@@ -216,7 +216,7 @@ static MACHINE_CONFIG_START( carjmbre, carjmbre_state )
MCFG_SCREEN_UPDATE_DRIVER(carjmbre_state, screen_update_carjmbre)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", carjmbre)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", carjmbre)
MCFG_PALETTE_ADD("palette", 64)
MCFG_PALETTE_INIT_OWNER(carjmbre_state, carjmbre)
diff --git a/src/mame/drivers/carpolo.c b/src/mame/drivers/carpolo.c
index e7a8b9f64b5..a05480144c3 100644
--- a/src/mame/drivers/carpolo.c
+++ b/src/mame/drivers/carpolo.c
@@ -293,7 +293,7 @@ static MACHINE_CONFIG_START( carpolo, carpolo_state )
MCFG_SCREEN_VBLANK_DRIVER(carpolo_state, screen_eof_carpolo)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", carpolo)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", carpolo)
MCFG_PALETTE_ADD("palette", 12*2+2*16+4*2)
MCFG_PALETTE_INIT_OWNER(carpolo_state,carpolo)
diff --git a/src/mame/drivers/carrera.c b/src/mame/drivers/carrera.c
index e8eafdae401..d776f2964f9 100644
--- a/src/mame/drivers/carrera.c
+++ b/src/mame/drivers/carrera.c
@@ -349,7 +349,7 @@ static MACHINE_CONFIG_START( carrera, carrera_state )
MCFG_MC6845_ADD("crtc", MC6845, "screen", MASTER_CLOCK / 16, mc6845_intf)
- MCFG_GFXDECODE_ADD("gfxdecode", carrera)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", carrera)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(carrera_state, carrera)
diff --git a/src/mame/drivers/caswin.c b/src/mame/drivers/caswin.c
index aa1d4d7ffda..c9a1f25792d 100644
--- a/src/mame/drivers/caswin.c
+++ b/src/mame/drivers/caswin.c
@@ -345,7 +345,7 @@ static MACHINE_CONFIG_START( vvillage, caswin_state )
MCFG_NVRAM_ADD_0FILL("nvram")
- MCFG_GFXDECODE_ADD("gfxdecode", vvillage)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", vvillage)
MCFG_PALETTE_ADD("palette", 0x40)
MCFG_PALETTE_INIT_OWNER(caswin_state, caswin)
diff --git a/src/mame/drivers/cave.c b/src/mame/drivers/cave.c
index eead7eb132d..76db8daa395 100644
--- a/src/mame/drivers/cave.c
+++ b/src/mame/drivers/cave.c
@@ -2005,7 +2005,7 @@ static MACHINE_CONFIG_START( dfeveron, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", dfeveron)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dfeveron)
MCFG_PALETTE_ADD("palette", 0x8000) /* $8000 palette entries for consistency with the other games */
MCFG_PALETTE_INIT_OWNER(cave_state,dfeveron)
@@ -2047,7 +2047,7 @@ static MACHINE_CONFIG_START( ddonpach, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", ddonpach)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ddonpach)
MCFG_PALETTE_ADD("palette", 0x8000 + 0x40*16) // $400 extra entries for layers 1&2
MCFG_PALETTE_INIT_OWNER(cave_state,ddonpach)
@@ -2093,7 +2093,7 @@ static MACHINE_CONFIG_START( donpachi, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", donpachi)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", donpachi)
MCFG_PALETTE_ADD("palette", 0x8000) /* $8000 palette entries for consistency with the other games */
MCFG_PALETTE_INIT_OWNER(cave_state,dfeveron)
@@ -2139,7 +2139,7 @@ static MACHINE_CONFIG_START( esprade, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", esprade)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", esprade)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(cave_state,cave)
@@ -2179,7 +2179,7 @@ static MACHINE_CONFIG_START( gaia, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 224-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", esprade)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", esprade)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(cave_state,cave)
@@ -2220,7 +2220,7 @@ static MACHINE_CONFIG_START( guwange, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", esprade)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", esprade)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(cave_state,cave)
@@ -2264,7 +2264,7 @@ static MACHINE_CONFIG_START( hotdogst, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 384-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", hotdogst)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hotdogst)
MCFG_PALETTE_ADD("palette", 0x8000) /* $8000 palette entries for consistency with the other games */
MCFG_PALETTE_INIT_OWNER(cave_state,dfeveron)
@@ -2317,7 +2317,7 @@ static MACHINE_CONFIG_START( korokoro, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 320-1-2, 0, 240-1-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", korokoro)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", korokoro)
MCFG_PALETTE_ADD("palette", 0x8000) /* $8000 palette entries for consistency with the other games */
MCFG_PALETTE_INIT_OWNER(cave_state,korokoro)
@@ -2371,7 +2371,7 @@ static MACHINE_CONFIG_START( mazinger, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 384-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", mazinger)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mazinger)
MCFG_PALETTE_ADD("palette", 0x8000) /* $8000 palette entries for consistency with the other games */
MCFG_PALETTE_INIT_OWNER(cave_state,mazinger)
@@ -2430,7 +2430,7 @@ static MACHINE_CONFIG_START( metmqstr, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0x7d, 0x7d + 0x180-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", donpachi)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", donpachi)
MCFG_PALETTE_ADD("palette", 0x8000) /* $8000 palette entries for consistency with the other games */
MCFG_PALETTE_INIT_OWNER(cave_state,dfeveron)
@@ -2487,7 +2487,7 @@ static MACHINE_CONFIG_START( pacslot, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0x80, 0x80 + 0x140-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", tjumpman)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", tjumpman)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(cave_state,cave)
@@ -2556,7 +2556,7 @@ static MACHINE_CONFIG_START( ppsatan, cave_state )
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_ppsatan_right)
MCFG_TIMER_DRIVER_ADD("int_timer_right", cave_state, cave_vblank_start_right)
- MCFG_GFXDECODE_ADD("gfxdecode", ppsatan)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ppsatan)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(cave_state,ppsatan)
MCFG_DEFAULT_LAYOUT(layout_ppsatan)
@@ -2608,7 +2608,7 @@ static MACHINE_CONFIG_START( pwrinst2, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0x70, 0x70 + 0x140-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", pwrinst2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", pwrinst2)
MCFG_PALETTE_ADD("palette", 0x8000+0x2800)
MCFG_PALETTE_INIT_OWNER(cave_state,pwrinst2)
@@ -2672,7 +2672,7 @@ static MACHINE_CONFIG_START( sailormn, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0+1, 320+1-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", sailormn)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", sailormn)
MCFG_PALETTE_ADD("palette", 0x8000) /* $8000 palette entries for consistency with the other games */
MCFG_PALETTE_INIT_OWNER(cave_state,sailormn) // 4 bit sprites, 6 bit tiles
@@ -2728,7 +2728,7 @@ static MACHINE_CONFIG_START( tjumpman, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0x80, 0x80 + 0x140-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", tjumpman)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", tjumpman)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(cave_state,cave)
@@ -2769,7 +2769,7 @@ static MACHINE_CONFIG_START( uopoko, cave_state )
MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1)
MCFG_SCREEN_UPDATE_DRIVER(cave_state, screen_update_cave)
- MCFG_GFXDECODE_ADD("gfxdecode", uopoko)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", uopoko)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(cave_state,cave)
diff --git a/src/mame/drivers/cb2001.c b/src/mame/drivers/cb2001.c
index 950fa6bce88..dd7d87b95b8 100644
--- a/src/mame/drivers/cb2001.c
+++ b/src/mame/drivers/cb2001.c
@@ -843,7 +843,7 @@ static MACHINE_CONFIG_START( cb2001, cb2001_state )
MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
- MCFG_GFXDECODE_ADD("gfxdecode", cb2001)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cb2001)
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/cball.c b/src/mame/drivers/cball.c
index 349caf7b94b..a6b3e5643cf 100644
--- a/src/mame/drivers/cball.c
+++ b/src/mame/drivers/cball.c
@@ -266,7 +266,7 @@ static MACHINE_CONFIG_START( cball, cball_state )
MCFG_SCREEN_UPDATE_DRIVER(cball_state, screen_update_cball)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cball)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cball)
MCFG_PALETTE_ADD("palette", 6)
MCFG_PALETTE_INIT_OWNER(cball_state, cball)
diff --git a/src/mame/drivers/cbasebal.c b/src/mame/drivers/cbasebal.c
index 765fe663627..63c8ead0ccc 100644
--- a/src/mame/drivers/cbasebal.c
+++ b/src/mame/drivers/cbasebal.c
@@ -270,7 +270,7 @@ static MACHINE_CONFIG_START( cbasebal, cbasebal_state )
MCFG_SCREEN_UPDATE_DRIVER(cbasebal_state, screen_update_cbasebal)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cbasebal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cbasebal)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG)
diff --git a/src/mame/drivers/cbuster.c b/src/mame/drivers/cbuster.c
index dd48f8d1d44..31ae2d875dd 100644
--- a/src/mame/drivers/cbuster.c
+++ b/src/mame/drivers/cbuster.c
@@ -316,7 +316,7 @@ static MACHINE_CONFIG_START( twocrude, cbuster_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(cbuster_state, screen_update_twocrude)
- MCFG_GFXDECODE_ADD("gfxdecode", cbuster)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cbuster)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_DECO16IC_ADD("tilegen1", twocrude_deco16ic_tilegen1_intf)
diff --git a/src/mame/drivers/ccastles.c b/src/mame/drivers/ccastles.c
index 68a7564a4fb..538556a95ee 100644
--- a/src/mame/drivers/ccastles.c
+++ b/src/mame/drivers/ccastles.c
@@ -475,7 +475,7 @@ static MACHINE_CONFIG_START( ccastles, ccastles_state )
MCFG_X2212_ADD_AUTOSAVE("nvram_4a")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", ccastles)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ccastles)
MCFG_PALETTE_ADD("palette", 32)
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/cchance.c b/src/mame/drivers/cchance.c
index 9c8334fc1a3..4eb90a36ae9 100644
--- a/src/mame/drivers/cchance.c
+++ b/src/mame/drivers/cchance.c
@@ -218,7 +218,7 @@ static MACHINE_CONFIG_START( cchance, cchance_state )
MCFG_MACHINE_START_OVERRIDE(cchance_state,cchance)
MCFG_MACHINE_RESET_OVERRIDE(cchance_state,cchance)
- MCFG_GFXDECODE_ADD("gfxdecode", cchance)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cchance)
MCFG_DEVICE_ADD("spritegen", SETA001_SPRITE, 0)
MCFG_SETA001_SPRITE_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/cclimber.c b/src/mame/drivers/cclimber.c
index 787156b1d4c..dc8af045a6c 100644
--- a/src/mame/drivers/cclimber.c
+++ b/src/mame/drivers/cclimber.c
@@ -996,7 +996,7 @@ static MACHINE_CONFIG_START( root, cclimber_state )
MCFG_SCREEN_UPDATE_DRIVER(cclimber_state, screen_update_cclimber)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cclimber)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cclimber)
MCFG_PALETTE_ADD("palette", 16*4+8*4)
MCFG_PALETTE_INIT_OWNER(cclimber_state,cclimber)
@@ -1097,7 +1097,7 @@ static MACHINE_CONFIG_START( swimmer, cclimber_state )
MCFG_SCREEN_UPDATE_DRIVER(cclimber_state, screen_update_swimmer)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", swimmer)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", swimmer)
MCFG_PALETTE_ADD("palette", 32*8+4*8+1)
MCFG_PALETTE_INIT_OWNER(cclimber_state,swimmer)
diff --git a/src/mame/drivers/centiped.c b/src/mame/drivers/centiped.c
index 82f13bb1816..833d31b6694 100644
--- a/src/mame/drivers/centiped.c
+++ b/src/mame/drivers/centiped.c
@@ -1752,7 +1752,7 @@ static MACHINE_CONFIG_START( centiped_base, centiped_state )
MCFG_SCREEN_UPDATE_DRIVER(centiped_state, screen_update_centiped)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", centiped)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", centiped)
MCFG_PALETTE_ADD("palette", 4+4*4*4*4)
MCFG_VIDEO_START_OVERRIDE(centiped_state,centiped)
@@ -1905,7 +1905,7 @@ static MACHINE_CONFIG_START( bullsdrt, centiped_state )
MCFG_SCREEN_UPDATE_DRIVER(centiped_state, screen_update_bullsdrt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", centiped)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", centiped)
MCFG_PALETTE_ADD("palette", 4+4*4*4*4)
MCFG_VIDEO_START_OVERRIDE(centiped_state,bullsdrt)
diff --git a/src/mame/drivers/chaknpop.c b/src/mame/drivers/chaknpop.c
index dd3df6b5a08..c781634431d 100644
--- a/src/mame/drivers/chaknpop.c
+++ b/src/mame/drivers/chaknpop.c
@@ -386,7 +386,7 @@ static MACHINE_CONFIG_START( chaknpop, chaknpop_state )
MCFG_SCREEN_UPDATE_DRIVER(chaknpop_state, screen_update_chaknpop)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", chaknpop)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", chaknpop)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INIT_OWNER(chaknpop_state, chaknpop)
diff --git a/src/mame/drivers/cham24.c b/src/mame/drivers/cham24.c
index b45e53313ef..b271fc8ced7 100644
--- a/src/mame/drivers/cham24.c
+++ b/src/mame/drivers/cham24.c
@@ -358,7 +358,7 @@ static MACHINE_CONFIG_START( cham24, cham24_state )
MCFG_SCREEN_UPDATE_DRIVER(cham24_state, screen_update_cham24)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cham24)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cham24)
MCFG_PALETTE_ADD("palette", 8*4*16)
MCFG_PALETTE_INIT_OWNER(cham24_state, cham24)
diff --git a/src/mame/drivers/champbas.c b/src/mame/drivers/champbas.c
index 472b38761c2..bafc9314fc6 100644
--- a/src/mame/drivers/champbas.c
+++ b/src/mame/drivers/champbas.c
@@ -621,7 +621,7 @@ static MACHINE_CONFIG_START( talbot, champbas_state )
MCFG_SCREEN_VBLANK_DRIVER(champbas_state, screen_eof_champbas)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", talbot)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", talbot)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(champbas_state,champbas)
@@ -657,7 +657,7 @@ static MACHINE_CONFIG_START( champbas, champbas_state )
MCFG_SCREEN_VBLANK_DRIVER(champbas_state, screen_eof_champbas)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", champbas)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", champbas)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(champbas_state,champbas)
@@ -715,7 +715,7 @@ static MACHINE_CONFIG_START( exctsccr, champbas_state )
MCFG_SCREEN_VBLANK_DRIVER(champbas_state, screen_eof_champbas)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", exctsccr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", exctsccr)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(champbas_state,exctsccr)
@@ -767,7 +767,7 @@ static MACHINE_CONFIG_START( exctsccrb, champbas_state )
MCFG_SCREEN_VBLANK_DRIVER(champbas_state, screen_eof_champbas)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", exctsccr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", exctsccr)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(champbas_state,exctsccr)
diff --git a/src/mame/drivers/champbwl.c b/src/mame/drivers/champbwl.c
index c534f5ba323..4d7c36292dd 100644
--- a/src/mame/drivers/champbwl.c
+++ b/src/mame/drivers/champbwl.c
@@ -499,7 +499,7 @@ static MACHINE_CONFIG_START( champbwl, champbwl_state )
MCFG_SCREEN_VBLANK_DRIVER(champbwl_state, screen_eof_champbwl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", champbwl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", champbwl)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(champbwl_state,arknoid2)
@@ -565,7 +565,7 @@ static MACHINE_CONFIG_START( doraemon, champbwl_state )
MCFG_SCREEN_VBLANK_DRIVER(champbwl_state, screen_eof_doraemon)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", champbwl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", champbwl)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(champbwl_state,arknoid2)
diff --git a/src/mame/drivers/chanbara.c b/src/mame/drivers/chanbara.c
index 6860709b4ce..ede14bbde60 100644
--- a/src/mame/drivers/chanbara.c
+++ b/src/mame/drivers/chanbara.c
@@ -412,7 +412,7 @@ static MACHINE_CONFIG_START( chanbara, chanbara_state )
MCFG_SCREEN_UPDATE_DRIVER(chanbara_state, screen_update_chanbara)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", chanbara)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", chanbara)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(chanbara_state, chanbara)
diff --git a/src/mame/drivers/chance32.c b/src/mame/drivers/chance32.c
index 315d609fe7b..db869810ce1 100644
--- a/src/mame/drivers/chance32.c
+++ b/src/mame/drivers/chance32.c
@@ -477,7 +477,7 @@ static MACHINE_CONFIG_START( chance32, chance32_state )
MCFG_MC6845_ADD("crtc", H46505, "screen", 12000000/16, mc6845_intf) /* 52.786 Hz (similar to Major Poker) */
- MCFG_GFXDECODE_ADD("gfxdecode", chance32)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", chance32)
MCFG_PALETTE_ADD("palette", 0x800)
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
diff --git a/src/mame/drivers/cheekyms.c b/src/mame/drivers/cheekyms.c
index 899d3955e86..b136871bca5 100644
--- a/src/mame/drivers/cheekyms.c
+++ b/src/mame/drivers/cheekyms.c
@@ -136,7 +136,7 @@ static MACHINE_CONFIG_START( cheekyms, cheekyms_state )
MCFG_SCREEN_UPDATE_DRIVER(cheekyms_state, screen_update_cheekyms)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cheekyms)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cheekyms)
MCFG_PALETTE_ADD("palette", 0xc0)
MCFG_PALETTE_INIT_OWNER(cheekyms_state, cheekyms)
diff --git a/src/mame/drivers/chinagat.c b/src/mame/drivers/chinagat.c
index c328b848580..e0c1bf93664 100644
--- a/src/mame/drivers/chinagat.c
+++ b/src/mame/drivers/chinagat.c
@@ -588,7 +588,7 @@ static MACHINE_CONFIG_START( chinagat, chinagat_state )
MCFG_SCREEN_UPDATE_DRIVER(chinagat_state, screen_update_ddragon)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", chinagat)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", chinagat)
MCFG_PALETTE_ADD("palette", 384)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -634,7 +634,7 @@ static MACHINE_CONFIG_START( saiyugoub1, chinagat_state )
MCFG_SCREEN_UPDATE_DRIVER(chinagat_state, screen_update_ddragon)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", chinagat)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", chinagat)
MCFG_PALETTE_ADD("palette", 384)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -677,7 +677,7 @@ static MACHINE_CONFIG_START( saiyugoub2, chinagat_state )
MCFG_SCREEN_UPDATE_DRIVER(chinagat_state, screen_update_ddragon)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", chinagat)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", chinagat)
MCFG_PALETTE_ADD("palette", 384)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/chinsan.c b/src/mame/drivers/chinsan.c
index 1b53540d456..f183f0d0228 100644
--- a/src/mame/drivers/chinsan.c
+++ b/src/mame/drivers/chinsan.c
@@ -615,7 +615,7 @@ static MACHINE_CONFIG_START( chinsan, chinsan_state )
MCFG_SCREEN_UPDATE_DRIVER(chinsan_state, screen_update_chinsan)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", chinsan)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", chinsan)
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_PALETTE_INIT_OWNER(chinsan_state, chinsan)
diff --git a/src/mame/drivers/chqflag.c b/src/mame/drivers/chqflag.c
index a338c6b5745..8a58a59295e 100644
--- a/src/mame/drivers/chqflag.c
+++ b/src/mame/drivers/chqflag.c
@@ -345,7 +345,7 @@ static MACHINE_CONFIG_START( chqflag, chqflag_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K051960_ADD("k051960", chqflag_k051960_intf)
MCFG_K051960_GFXDECODE("gfxdecode")
MCFG_K051960_PALETTE("palette")
diff --git a/src/mame/drivers/chsuper.c b/src/mame/drivers/chsuper.c
index f856f4be7a5..0ac3cbb6544 100644
--- a/src/mame/drivers/chsuper.c
+++ b/src/mame/drivers/chsuper.c
@@ -219,7 +219,7 @@ static MACHINE_CONFIG_START( chsuper, chsuper_state )
MCFG_NVRAM_ADD_0FILL("nvram")
- MCFG_GFXDECODE_ADD("gfxdecode", chsuper)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", chsuper)
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_RAMDAC_ADD("ramdac", ramdac_intf, ramdac_map, "palette")
diff --git a/src/mame/drivers/circus.c b/src/mame/drivers/circus.c
index 9b93a16fe18..46761f477d1 100644
--- a/src/mame/drivers/circus.c
+++ b/src/mame/drivers/circus.c
@@ -293,7 +293,7 @@ static MACHINE_CONFIG_START( circus, circus_state )
MCFG_SCREEN_UPDATE_DRIVER(circus_state, screen_update_circus)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", circus)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", circus)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
@@ -326,7 +326,7 @@ static MACHINE_CONFIG_START( robotbwl, circus_state )
MCFG_SCREEN_UPDATE_DRIVER(circus_state, screen_update_robotbwl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", robotbwl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", robotbwl)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
@@ -366,7 +366,7 @@ static MACHINE_CONFIG_START( crash, circus_state )
MCFG_SCREEN_UPDATE_DRIVER(circus_state, screen_update_crash)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", circus)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", circus)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
@@ -398,7 +398,7 @@ static MACHINE_CONFIG_START( ripcord, circus_state )
MCFG_SCREEN_UPDATE_DRIVER(circus_state, screen_update_ripcord)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", circus)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", circus)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
diff --git a/src/mame/drivers/circusc.c b/src/mame/drivers/circusc.c
index 3d0564036f5..b870b52bed2 100644
--- a/src/mame/drivers/circusc.c
+++ b/src/mame/drivers/circusc.c
@@ -348,7 +348,7 @@ static MACHINE_CONFIG_START( circusc, circusc_state )
MCFG_SCREEN_UPDATE_DRIVER(circusc_state, screen_update_circusc)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", circusc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", circusc)
MCFG_PALETTE_ADD("palette", 16*16+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(circusc_state, circusc)
diff --git a/src/mame/drivers/cischeat.c b/src/mame/drivers/cischeat.c
index 57217383ea0..66f4bcf4566 100644
--- a/src/mame/drivers/cischeat.c
+++ b/src/mame/drivers/cischeat.c
@@ -1502,7 +1502,7 @@ static MACHINE_CONFIG_START( bigrun, cischeat_state )
MCFG_SCREEN_UPDATE_DRIVER(cischeat_state, screen_update_bigrun)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bigrun)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bigrun)
MCFG_PALETTE_ADD("palette", 0x4000/2)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
@@ -1643,7 +1643,7 @@ static MACHINE_CONFIG_START( scudhamm, cischeat_state )
MCFG_SCREEN_UPDATE_DRIVER(cischeat_state, screen_update_scudhamm)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", scudhamm)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", scudhamm)
MCFG_PALETTE_ADD("palette", 0x8000/2)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
MCFG_PALETTE_ENABLE_SHADOWS()
diff --git a/src/mame/drivers/citycon.c b/src/mame/drivers/citycon.c
index c3e44cf76e6..2cf4c720b30 100644
--- a/src/mame/drivers/citycon.c
+++ b/src/mame/drivers/citycon.c
@@ -215,7 +215,7 @@ static MACHINE_CONFIG_START( citycon, citycon_state )
MCFG_SCREEN_UPDATE_DRIVER(citycon_state, screen_update_citycon)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", citycon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", citycon)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 640+1024) /* 640 real palette + 1024 virtual palette */
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
diff --git a/src/mame/drivers/cloak.c b/src/mame/drivers/cloak.c
index 9d0353ceb7b..6f5b251eeea 100644
--- a/src/mame/drivers/cloak.c
+++ b/src/mame/drivers/cloak.c
@@ -352,7 +352,7 @@ static MACHINE_CONFIG_START( cloak, cloak_state )
MCFG_SCREEN_UPDATE_DRIVER(cloak_state, screen_update_cloak)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cloak)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cloak)
MCFG_PALETTE_ADD("palette", 64)
diff --git a/src/mame/drivers/cloud9.c b/src/mame/drivers/cloud9.c
index 8e26212bd3d..4b9b98c83fc 100644
--- a/src/mame/drivers/cloud9.c
+++ b/src/mame/drivers/cloud9.c
@@ -425,7 +425,7 @@ static MACHINE_CONFIG_START( cloud9, cloud9_state )
MCFG_X2212_ADD_AUTOSAVE("nvram")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", cloud9)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cloud9)
MCFG_PALETTE_ADD("palette", 64)
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/clshroad.c b/src/mame/drivers/clshroad.c
index 8ed84fbf078..b0e1d7c9c7b 100644
--- a/src/mame/drivers/clshroad.c
+++ b/src/mame/drivers/clshroad.c
@@ -247,7 +247,7 @@ static MACHINE_CONFIG_START( firebatl, clshroad_state )
MCFG_SCREEN_UPDATE_DRIVER(clshroad_state, screen_update_clshroad)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", firebatl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", firebatl)
MCFG_PALETTE_ADD("palette", 512+64*4)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(clshroad_state,firebatl)
@@ -282,7 +282,7 @@ static MACHINE_CONFIG_START( clshroad, clshroad_state )
MCFG_SCREEN_UPDATE_DRIVER(clshroad_state, screen_update_clshroad)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", clshroad)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", clshroad)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(clshroad_state,clshroad)
diff --git a/src/mame/drivers/cmmb.c b/src/mame/drivers/cmmb.c
index c33640aa126..e62fd4dd0dc 100644
--- a/src/mame/drivers/cmmb.c
+++ b/src/mame/drivers/cmmb.c
@@ -337,7 +337,7 @@ static MACHINE_CONFIG_START( cmmb, cmmb_state )
MCFG_SCREEN_UPDATE_DRIVER(cmmb_state, screen_update_cmmb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cmmb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cmmb)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(RRRGGGBB)
diff --git a/src/mame/drivers/cninja.c b/src/mame/drivers/cninja.c
index 6e8b77f0352..f4ea22b00bb 100644
--- a/src/mame/drivers/cninja.c
+++ b/src/mame/drivers/cninja.c
@@ -949,7 +949,7 @@ static MACHINE_CONFIG_START( cninja, cninja_state )
MCFG_SCREEN_UPDATE_DRIVER(cninja_state, screen_update_cninja)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cninja)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cninja)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
@@ -1015,7 +1015,7 @@ static MACHINE_CONFIG_START( stoneage, cninja_state )
MCFG_SCREEN_UPDATE_DRIVER(cninja_state, screen_update_cninja)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cninja)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cninja)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(cninja_state,stoneage)
@@ -1080,7 +1080,7 @@ static MACHINE_CONFIG_START( cninjabl, cninja_state )
MCFG_SCREEN_UPDATE_DRIVER(cninja_state, screen_update_cninjabl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cninjabl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cninjabl)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
@@ -1130,7 +1130,7 @@ static MACHINE_CONFIG_START( edrandy, cninja_state )
MCFG_SCREEN_UPDATE_DRIVER(cninja_state, screen_update_edrandy)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cninja)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cninja)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
@@ -1195,7 +1195,7 @@ static MACHINE_CONFIG_START( robocop2, cninja_state )
MCFG_SCREEN_UPDATE_DRIVER(cninja_state, screen_update_robocop2)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", robocop2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", robocop2)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
@@ -1264,7 +1264,7 @@ static MACHINE_CONFIG_START( mutantf, cninja_state )
MCFG_VIDEO_START_OVERRIDE(cninja_state,mutantf)
- MCFG_GFXDECODE_ADD("gfxdecode", mutantf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mutantf)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
diff --git a/src/mame/drivers/cntsteer.c b/src/mame/drivers/cntsteer.c
index 05737d9f6ae..787422e4a63 100644
--- a/src/mame/drivers/cntsteer.c
+++ b/src/mame/drivers/cntsteer.c
@@ -907,7 +907,7 @@ static MACHINE_CONFIG_START( cntsteer, cntsteer_state )
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
- MCFG_GFXDECODE_ADD("gfxdecode", cntsteer)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cntsteer)
MCFG_PALETTE_ADD("palette", 256)
// MCFG_PALETTE_INIT_OWNER(cntsteer_state,zerotrgt)
@@ -955,7 +955,7 @@ static MACHINE_CONFIG_START( zerotrgt, cntsteer_state )
MCFG_SCREEN_UPDATE_DRIVER(cntsteer_state, screen_update_zerotrgt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", zerotrgt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", zerotrgt)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(cntsteer_state,zerotrgt)
diff --git a/src/mame/drivers/cobra.c b/src/mame/drivers/cobra.c
index 2fec3825d46..787f7fe8359 100644
--- a/src/mame/drivers/cobra.c
+++ b/src/mame/drivers/cobra.c
@@ -3234,7 +3234,7 @@ static MACHINE_CONFIG_START( cobra, cobra_state )
MCFG_M48T58_ADD("m48t58")
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K001604_ADD("k001604", cobra_k001604_intf) // on the LAN board in Racing Jam DX
MCFG_K001604_GFXDECODE("gfxdecode")
MCFG_K001604_PALETTE("palette")
diff --git a/src/mame/drivers/coinmstr.c b/src/mame/drivers/coinmstr.c
index 0fc7dd834d0..64b44894943 100644
--- a/src/mame/drivers/coinmstr.c
+++ b/src/mame/drivers/coinmstr.c
@@ -1171,7 +1171,7 @@ static MACHINE_CONFIG_START( coinmstr, coinmstr_state )
MCFG_SCREEN_UPDATE_DRIVER(coinmstr_state, screen_update_coinmstr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", coinmstr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", coinmstr)
MCFG_PALETTE_ADD("palette", 46*32*4)
diff --git a/src/mame/drivers/coinmvga.c b/src/mame/drivers/coinmvga.c
index f883cd63fa1..90b2c9f25e9 100644
--- a/src/mame/drivers/coinmvga.c
+++ b/src/mame/drivers/coinmvga.c
@@ -689,7 +689,7 @@ static MACHINE_CONFIG_START( coinmvga, coinmvga_state )
MCFG_SCREEN_UPDATE_DRIVER(coinmvga_state, screen_update_coinmvga)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", coinmvga)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", coinmvga)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(coinmvga_state, coinmvga)
diff --git a/src/mame/drivers/combatsc.c b/src/mame/drivers/combatsc.c
index a3be55dcc3a..e5c81a275e7 100644
--- a/src/mame/drivers/combatsc.c
+++ b/src/mame/drivers/combatsc.c
@@ -731,7 +731,7 @@ static MACHINE_CONFIG_START( combatsc, combatsc_state )
MCFG_SCREEN_UPDATE_DRIVER(combatsc_state, screen_update_combatsc)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", combatsc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", combatsc)
MCFG_PALETTE_ADD("palette", 8*16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(128)
MCFG_PALETTE_INIT_OWNER(combatsc_state,combatsc)
@@ -785,7 +785,7 @@ static MACHINE_CONFIG_START( combatscb, combatsc_state )
MCFG_SCREEN_UPDATE_DRIVER(combatsc_state, screen_update_combatscb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", combatscb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", combatscb)
MCFG_PALETTE_ADD("palette", 8*16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(128)
MCFG_PALETTE_INIT_OWNER(combatsc_state,combatscb)
diff --git a/src/mame/drivers/commando.c b/src/mame/drivers/commando.c
index 8d841f42c87..fe4dd0c63b5 100644
--- a/src/mame/drivers/commando.c
+++ b/src/mame/drivers/commando.c
@@ -260,7 +260,7 @@ static MACHINE_CONFIG_START( commando, commando_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", commando)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", commando)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
MCFG_BUFFERED_SPRITERAM8_ADD("spriteram")
diff --git a/src/mame/drivers/compgolf.c b/src/mame/drivers/compgolf.c
index 2bd7e53b950..fecbd1143cf 100644
--- a/src/mame/drivers/compgolf.c
+++ b/src/mame/drivers/compgolf.c
@@ -258,7 +258,7 @@ static MACHINE_CONFIG_START( compgolf, compgolf_state )
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_PALETTE_INIT_OWNER(compgolf_state, compgolf)
- MCFG_GFXDECODE_ADD("gfxdecode", compgolf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", compgolf)
MCFG_SPEAKER_STANDARD_MONO("mono")
diff --git a/src/mame/drivers/contra.c b/src/mame/drivers/contra.c
index 8cc0abd818c..7c3aaca7fc6 100644
--- a/src/mame/drivers/contra.c
+++ b/src/mame/drivers/contra.c
@@ -203,7 +203,7 @@ static MACHINE_CONFIG_START( contra, contra_state )
MCFG_SCREEN_UPDATE_DRIVER(contra_state, screen_update_contra)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", contra)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", contra)
MCFG_PALETTE_ADD("palette", 2*8*16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(128)
MCFG_PALETTE_INIT_OWNER(contra_state, contra)
diff --git a/src/mame/drivers/coolridr.c b/src/mame/drivers/coolridr.c
index 0de7bfc88af..ae6586a9c83 100644
--- a/src/mame/drivers/coolridr.c
+++ b/src/mame/drivers/coolridr.c
@@ -3605,7 +3605,7 @@ static MACHINE_CONFIG_START( coolridr, coolridr_state )
MCFG_NVRAM_ADD_0FILL("nvram")
- MCFG_GFXDECODE_ADD("gfxdecode", coolridr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", coolridr)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/cop01.c b/src/mame/drivers/cop01.c
index ac733ed2b2c..c0191e2ce52 100644
--- a/src/mame/drivers/cop01.c
+++ b/src/mame/drivers/cop01.c
@@ -463,7 +463,7 @@ static MACHINE_CONFIG_START( cop01, cop01_state )
MCFG_SCREEN_UPDATE_DRIVER(cop01_state, screen_update_cop01)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cop01)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cop01)
MCFG_PALETTE_ADD("palette", 16+8*16+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(cop01_state, cop01)
@@ -503,7 +503,7 @@ static MACHINE_CONFIG_START( mightguy, cop01_state )
MCFG_SCREEN_UPDATE_DRIVER(cop01_state, screen_update_cop01)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cop01)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cop01)
MCFG_PALETTE_ADD("palette", 16+8*16+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(cop01_state, cop01)
diff --git a/src/mame/drivers/copsnrob.c b/src/mame/drivers/copsnrob.c
index d588908125a..1f1e7747306 100644
--- a/src/mame/drivers/copsnrob.c
+++ b/src/mame/drivers/copsnrob.c
@@ -257,7 +257,7 @@ static MACHINE_CONFIG_START( copsnrob, copsnrob_state )
MCFG_SCREEN_UPDATE_DRIVER(copsnrob_state, screen_update_copsnrob)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", copsnrob)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", copsnrob)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
/* sound hardware */
diff --git a/src/mame/drivers/cosmic.c b/src/mame/drivers/cosmic.c
index f557bd0c92f..b466ef671f9 100644
--- a/src/mame/drivers/cosmic.c
+++ b/src/mame/drivers/cosmic.c
@@ -1027,7 +1027,7 @@ static MACHINE_CONFIG_DERIVED( panic, cosmic )
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", cosmic_state, panic_scanline, "screen", 0, 1)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", panic)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", panic)
MCFG_PALETTE_ADD("palette", 16+8*4)
MCFG_PALETTE_INDIRECT_ENTRIES(16)
MCFG_PALETTE_INIT_OWNER(cosmic_state,panic)
@@ -1053,7 +1053,7 @@ static MACHINE_CONFIG_DERIVED( cosmica, cosmic )
MCFG_CPU_PROGRAM_MAP(cosmica_map)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", cosmica)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cosmica)
MCFG_PALETTE_ADD("palette", 8+16*4)
MCFG_PALETTE_INDIRECT_ENTRIES(8)
MCFG_PALETTE_INIT_OWNER(cosmic_state,cosmica)
@@ -1122,7 +1122,7 @@ static MACHINE_CONFIG_DERIVED( magspot, cosmic )
MCFG_CPU_PROGRAM_MAP(magspot_map)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", panic)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", panic)
MCFG_PALETTE_ADD("palette", 16+8*4)
MCFG_PALETTE_INDIRECT_ENTRIES(16)
MCFG_PALETTE_INIT_OWNER(cosmic_state,magspot)
@@ -1155,7 +1155,7 @@ static MACHINE_CONFIG_DERIVED( nomnlnd, cosmic )
MCFG_CPU_PROGRAM_MAP(magspot_map)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", panic)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", panic)
MCFG_PALETTE_ADD("palette", 16+8*4)
MCFG_PALETTE_INDIRECT_ENTRIES(16)
MCFG_PALETTE_INIT_OWNER(cosmic_state,nomnlnd)
diff --git a/src/mame/drivers/cps1.c b/src/mame/drivers/cps1.c
index ace5adafa59..225d05df009 100644
--- a/src/mame/drivers/cps1.c
+++ b/src/mame/drivers/cps1.c
@@ -3192,7 +3192,7 @@ static MACHINE_CONFIG_START( cps1_10MHz, cps_state )
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
diff --git a/src/mame/drivers/cps2.c b/src/mame/drivers/cps2.c
index d71d301970b..c067e2882dc 100644
--- a/src/mame/drivers/cps2.c
+++ b/src/mame/drivers/cps2.c
@@ -1269,7 +1269,7 @@ static MACHINE_CONFIG_START( cps2, cps_state )
8MHz / 15.4445kHz = 517.983 ~ 518 -> likely
16MHz -> same as 8 but with a /2 divider; also a possibility
*/
- MCFG_GFXDECODE_ADD("gfxdecode", cps2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps2)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps2)
diff --git a/src/mame/drivers/cps3.c b/src/mame/drivers/cps3.c
index 81ea3efb96c..0258a1c0bfd 100644
--- a/src/mame/drivers/cps3.c
+++ b/src/mame/drivers/cps3.c
@@ -2587,7 +2587,7 @@ static MACHINE_CONFIG_START( cps3, cps3_state )
MCFG_NVRAM_ADD_0FILL("eeprom")
MCFG_PALETTE_ADD("palette", 0x10000) // actually 0x20000 ...
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
diff --git a/src/mame/drivers/crbaloon.c b/src/mame/drivers/crbaloon.c
index 73da5e13d91..cc3348dfbac 100644
--- a/src/mame/drivers/crbaloon.c
+++ b/src/mame/drivers/crbaloon.c
@@ -367,7 +367,7 @@ static MACHINE_CONFIG_START( crbaloon, crbaloon_state )
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", crbaloon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", crbaloon)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(crbaloon_state, crbaloon)
diff --git a/src/mame/drivers/crimfght.c b/src/mame/drivers/crimfght.c
index 8faedb94fa4..699cf5a51c9 100644
--- a/src/mame/drivers/crimfght.c
+++ b/src/mame/drivers/crimfght.c
@@ -278,7 +278,7 @@ static MACHINE_CONFIG_START( crimfght, crimfght_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", crimfght_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
MCFG_K052109_PALETTE("palette")
diff --git a/src/mame/drivers/crospang.c b/src/mame/drivers/crospang.c
index 76e96807e3e..f86b2fa24c2 100644
--- a/src/mame/drivers/crospang.c
+++ b/src/mame/drivers/crospang.c
@@ -357,7 +357,7 @@ static MACHINE_CONFIG_START( crospang, crospang_state )
MCFG_PALETTE_ADD("palette", 0x300)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
- MCFG_GFXDECODE_ADD("gfxdecode", crospang)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", crospang)
MCFG_DEVICE_ADD("spritegen", DECO_SPRITE, 0)
diff --git a/src/mame/drivers/crshrace.c b/src/mame/drivers/crshrace.c
index 859ef1e7885..cf77833e056 100644
--- a/src/mame/drivers/crshrace.c
+++ b/src/mame/drivers/crshrace.c
@@ -451,7 +451,7 @@ static MACHINE_CONFIG_START( crshrace, crshrace_state )
MCFG_SCREEN_VBLANK_DRIVER(crshrace_state, screen_eof_crshrace)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", crshrace)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", crshrace)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xGGGGGBBBBBRRRRR)
diff --git a/src/mame/drivers/cshooter.c b/src/mame/drivers/cshooter.c
index 72a302b6033..510dd0bb00d 100644
--- a/src/mame/drivers/cshooter.c
+++ b/src/mame/drivers/cshooter.c
@@ -452,7 +452,7 @@ static MACHINE_CONFIG_START( airraid, cshooter_state )
MCFG_SCREEN_UPDATE_DRIVER(cshooter_state, screen_update_airraid)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cshooter)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cshooter)
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_PALETTE_INDIRECT_ENTRIES(0x100)
MCFG_PALETTE_INIT_OWNER(cshooter_state, cshooter)
diff --git a/src/mame/drivers/cswat.c b/src/mame/drivers/cswat.c
index b34778c3e7b..87d3c316ff6 100644
--- a/src/mame/drivers/cswat.c
+++ b/src/mame/drivers/cswat.c
@@ -267,7 +267,7 @@ static MACHINE_CONFIG_START( cswat, cswat_state )
MCFG_SCREEN_UPDATE_DRIVER(cswat_state, screen_update_cswat)
- MCFG_GFXDECODE_ADD("gfxdecode", cswat)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cswat)
MCFG_PALETTE_ADD("palette", 256)
/* sound hardware */
diff --git a/src/mame/drivers/cultures.c b/src/mame/drivers/cultures.c
index 89e79ec5ed8..deb02ac90e3 100644
--- a/src/mame/drivers/cultures.c
+++ b/src/mame/drivers/cultures.c
@@ -416,7 +416,7 @@ static MACHINE_CONFIG_START( cultures, cultures_state )
MCFG_SCREEN_UPDATE_DRIVER(cultures_state, screen_update_cultures)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", culture)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", culture)
MCFG_PALETTE_ADD("palette", 0x2000)
diff --git a/src/mame/drivers/cvs.c b/src/mame/drivers/cvs.c
index c95bfa995cf..3d7444e1db6 100644
--- a/src/mame/drivers/cvs.c
+++ b/src/mame/drivers/cvs.c
@@ -1026,7 +1026,7 @@ static MACHINE_CONFIG_START( cvs, cvs_state )
/* video hardware */
MCFG_VIDEO_START_OVERRIDE(cvs_state,cvs)
- MCFG_GFXDECODE_ADD("gfxdecode", cvs)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cvs)
MCFG_PALETTE_ADD("palette", (256+4)*8+8+1)
MCFG_PALETTE_INDIRECT_ENTRIES(16)
diff --git a/src/mame/drivers/cyberbal.c b/src/mame/drivers/cyberbal.c
index 9f58582e842..97d309e3d65 100644
--- a/src/mame/drivers/cyberbal.c
+++ b/src/mame/drivers/cyberbal.c
@@ -409,7 +409,7 @@ static MACHINE_CONFIG_START( cyberbal, cyberbal_state )
MCFG_ATARI_EEPROM_2804_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", interleaved)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", interleaved)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, cyberbal_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
@@ -476,7 +476,7 @@ static MACHINE_CONFIG_START( cyberbal2p, cyberbal_state )
MCFG_ATARI_EEPROM_2816_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", cyberbal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cyberbal)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, cyberbal_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
diff --git a/src/mame/drivers/cybertnk.c b/src/mame/drivers/cybertnk.c
index c8e5ed2dd14..f0ff65fa8db 100644
--- a/src/mame/drivers/cybertnk.c
+++ b/src/mame/drivers/cybertnk.c
@@ -861,7 +861,7 @@ static MACHINE_CONFIG_START( cybertnk, cybertnk_state )
MCFG_SCREEN_UPDATE_DRIVER(cybertnk_state, screen_update_cybertnk_right)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cybertnk)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cybertnk)
MCFG_PALETTE_ADD("palette", 0x4000)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/cyclemb.c b/src/mame/drivers/cyclemb.c
index 1ef2382e9a6..76abb3b6d86 100644
--- a/src/mame/drivers/cyclemb.c
+++ b/src/mame/drivers/cyclemb.c
@@ -919,7 +919,7 @@ static MACHINE_CONFIG_START( cyclemb, cyclemb_state )
MCFG_SCREEN_UPDATE_DRIVER(cyclemb_state, screen_update_cyclemb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cyclemb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cyclemb)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(cyclemb_state, cyclemb)
diff --git a/src/mame/drivers/d9final.c b/src/mame/drivers/d9final.c
index ddae9b5c018..8e0ad993928 100644
--- a/src/mame/drivers/d9final.c
+++ b/src/mame/drivers/d9final.c
@@ -301,7 +301,7 @@ static MACHINE_CONFIG_START( d9final, d9final_state )
MCFG_SCREEN_UPDATE_DRIVER(d9final_state, screen_update_d9final)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", d9final)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", d9final)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 0x400)
MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG)
diff --git a/src/mame/drivers/dacholer.c b/src/mame/drivers/dacholer.c
index 07ab7fee560..91603a103a5 100644
--- a/src/mame/drivers/dacholer.c
+++ b/src/mame/drivers/dacholer.c
@@ -675,7 +675,7 @@ static MACHINE_CONFIG_START( dacholer, dacholer_state )
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(dacholer_state, dacholer)
- MCFG_GFXDECODE_ADD("gfxdecode", dacholer)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dacholer)
/* sound hardware */
diff --git a/src/mame/drivers/dambustr.c b/src/mame/drivers/dambustr.c
index c176de8c12d..5e0c9de3a7e 100644
--- a/src/mame/drivers/dambustr.c
+++ b/src/mame/drivers/dambustr.c
@@ -268,7 +268,7 @@ static MACHINE_CONFIG_START( dambustr, dambustr_state )
MCFG_SCREEN_UPDATE_DRIVER(dambustr_state, screen_update_dambustr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dambustr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dambustr)
MCFG_PALETTE_ADD("palette", 32+2+64+8) /* 32 for the characters, 2 for the bullets, 64 for the stars, 8 for the background */
MCFG_PALETTE_INIT_OWNER(dambustr_state,dambustr)
diff --git a/src/mame/drivers/darius.c b/src/mame/drivers/darius.c
index 1a0b6f248c1..35c44716d32 100644
--- a/src/mame/drivers/darius.c
+++ b/src/mame/drivers/darius.c
@@ -873,7 +873,7 @@ static MACHINE_CONFIG_START( darius, darius_state )
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", darius)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", darius)
MCFG_PALETTE_ADD("palette", 4096*2)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
MCFG_DEFAULT_LAYOUT(layout_darius)
diff --git a/src/mame/drivers/darkmist.c b/src/mame/drivers/darkmist.c
index f145636cc69..2795d747ccd 100644
--- a/src/mame/drivers/darkmist.c
+++ b/src/mame/drivers/darkmist.c
@@ -243,7 +243,7 @@ static MACHINE_CONFIG_START( darkmist, darkmist_state )
MCFG_SCREEN_UPDATE_DRIVER(darkmist_state, screen_update_darkmist)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", darkmist)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", darkmist)
MCFG_PALETTE_ADD("palette", 0x100*4)
MCFG_PALETTE_INDIRECT_ENTRIES(256+1)
MCFG_PALETTE_INIT_OWNER(darkmist_state, darkmist)
diff --git a/src/mame/drivers/darkseal.c b/src/mame/drivers/darkseal.c
index a89b60b545d..78a45217d7e 100644
--- a/src/mame/drivers/darkseal.c
+++ b/src/mame/drivers/darkseal.c
@@ -263,7 +263,7 @@ static MACHINE_CONFIG_START( darkseal, darkseal_state )
MCFG_SCREEN_UPDATE_DRIVER(darkseal_state, screen_update_darkseal)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", darkseal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", darkseal)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
diff --git a/src/mame/drivers/dassault.c b/src/mame/drivers/dassault.c
index 1ad6887cbca..15276ea5824 100644
--- a/src/mame/drivers/dassault.c
+++ b/src/mame/drivers/dassault.c
@@ -504,7 +504,7 @@ static MACHINE_CONFIG_START( dassault, dassault_state )
MCFG_SCREEN_UPDATE_DRIVER(dassault_state, screen_update_dassault)
- MCFG_GFXDECODE_ADD("gfxdecode", dassault)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dassault)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
diff --git a/src/mame/drivers/dblcrown.c b/src/mame/drivers/dblcrown.c
index 615d3d32b2a..947dd07739d 100644
--- a/src/mame/drivers/dblcrown.c
+++ b/src/mame/drivers/dblcrown.c
@@ -575,7 +575,7 @@ static MACHINE_CONFIG_START( dblcrown, dblcrown_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dblcrown)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dblcrown)
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_PALETTE_INIT_OWNER(dblcrown_state, dblcrown)
diff --git a/src/mame/drivers/dblewing.c b/src/mame/drivers/dblewing.c
index 10eb1419bef..94ffd1a6b0d 100644
--- a/src/mame/drivers/dblewing.c
+++ b/src/mame/drivers/dblewing.c
@@ -389,7 +389,7 @@ static MACHINE_CONFIG_START( dblewing, dblewing_state )
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", dblewing)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dblewing)
MCFG_DECO16IC_ADD("tilegen1", dblewing_deco16ic_tilegen1_intf)
MCFG_DECO16IC_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/dbz.c b/src/mame/drivers/dbz.c
index 364cdf2cad4..59a1494737a 100644
--- a/src/mame/drivers/dbz.c
+++ b/src/mame/drivers/dbz.c
@@ -371,7 +371,7 @@ static MACHINE_CONFIG_START( dbz, dbz_state )
MCFG_SCREEN_UPDATE_DRIVER(dbz_state, screen_update_dbz)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dbz)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dbz)
MCFG_PALETTE_ADD("palette", 0x4000/2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/dcon.c b/src/mame/drivers/dcon.c
index 60dfc05596c..16eb5e8c470 100644
--- a/src/mame/drivers/dcon.c
+++ b/src/mame/drivers/dcon.c
@@ -279,7 +279,7 @@ static MACHINE_CONFIG_START( dcon, dcon_state )
MCFG_SEIBU_CRTC_LAYER_EN_CB(WRITE16(dcon_state, layer_en_w))
MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(dcon_state, layer_scroll_w))
- MCFG_GFXDECODE_ADD("gfxdecode", dcon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dcon)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -309,7 +309,7 @@ static MACHINE_CONFIG_START( sdgndmps, dcon_state )
MCFG_SEIBU_CRTC_LAYER_EN_CB(WRITE16(dcon_state, layer_en_w))
MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(dcon_state, layer_scroll_w))
- MCFG_GFXDECODE_ADD("gfxdecode", dcon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dcon)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/dday.c b/src/mame/drivers/dday.c
index 71e949025e8..f7163f2f5d4 100644
--- a/src/mame/drivers/dday.c
+++ b/src/mame/drivers/dday.c
@@ -268,7 +268,7 @@ static MACHINE_CONFIG_START( dday, dday_state )
MCFG_SCREEN_UPDATE_DRIVER(dday_state, screen_update_dday)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dday)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dday)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INDIRECT_ENTRIES(256) /* HACK!!! */
MCFG_PALETTE_ENABLE_SHADOWS()
diff --git a/src/mame/drivers/ddayjlc.c b/src/mame/drivers/ddayjlc.c
index 5e5d4161ea8..72897973a19 100644
--- a/src/mame/drivers/ddayjlc.c
+++ b/src/mame/drivers/ddayjlc.c
@@ -535,7 +535,7 @@ static MACHINE_CONFIG_START( ddayjlc, ddayjlc_state )
MCFG_SCREEN_UPDATE_DRIVER(ddayjlc_state, screen_update_ddayjlc)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ddayjlc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ddayjlc)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_PALETTE_INIT_OWNER(ddayjlc_state, ddayjlc)
diff --git a/src/mame/drivers/ddealer.c b/src/mame/drivers/ddealer.c
index 240dd630565..f7a1d108543 100644
--- a/src/mame/drivers/ddealer.c
+++ b/src/mame/drivers/ddealer.c
@@ -630,7 +630,7 @@ static MACHINE_CONFIG_START( ddealer, ddealer_state )
// M50747 or NMK-110 8131 MCU
- MCFG_GFXDECODE_ADD("gfxdecode", ddealer)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ddealer)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/ddragon.c b/src/mame/drivers/ddragon.c
index 3b2d0b0224f..f4303ef863d 100644
--- a/src/mame/drivers/ddragon.c
+++ b/src/mame/drivers/ddragon.c
@@ -982,7 +982,7 @@ static MACHINE_CONFIG_START( ddragon, ddragon_state )
MCFG_MACHINE_RESET_OVERRIDE(ddragon_state,ddragon)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", ddragon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ddragon)
MCFG_PALETTE_ADD("palette", 384)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -1047,7 +1047,7 @@ static MACHINE_CONFIG_START( ddragon6809, ddragon_state )
MCFG_MACHINE_RESET_OVERRIDE(ddragon_state,ddragon)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", ddragon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ddragon)
MCFG_PALETTE_ADD("palette", 384)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -1095,7 +1095,7 @@ static MACHINE_CONFIG_START( ddragon2, ddragon_state )
MCFG_MACHINE_RESET_OVERRIDE(ddragon_state,ddragon)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", ddragon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ddragon)
MCFG_PALETTE_ADD("palette", 384)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/ddragon3.c b/src/mame/drivers/ddragon3.c
index 56f167c0a88..667f1f86c08 100644
--- a/src/mame/drivers/ddragon3.c
+++ b/src/mame/drivers/ddragon3.c
@@ -844,7 +844,7 @@ static MACHINE_CONFIG_START( ddragon3, ddragon3_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ddragon3)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ddragon3)
MCFG_PALETTE_ADD("palette", 768)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -914,7 +914,7 @@ static MACHINE_CONFIG_START( wwfwfest, wwfwfest_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", wwfwfest)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", wwfwfest)
MCFG_PALETTE_ADD("palette", 8192)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/ddribble.c b/src/mame/drivers/ddribble.c
index 4a757fc38cb..984ac0f7970 100644
--- a/src/mame/drivers/ddribble.c
+++ b/src/mame/drivers/ddribble.c
@@ -286,7 +286,7 @@ static MACHINE_CONFIG_START( ddribble, ddribble_state )
MCFG_SCREEN_UPDATE_DRIVER(ddribble_state, screen_update_ddribble)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ddribble)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ddribble)
MCFG_PALETTE_ADD("palette", 64 + 256)
MCFG_PALETTE_INDIRECT_ENTRIES(64)
MCFG_PALETTE_INIT_OWNER(ddribble_state, ddribble)
diff --git a/src/mame/drivers/deadang.c b/src/mame/drivers/deadang.c
index 0fe4e89bbc3..2e4c84a0277 100644
--- a/src/mame/drivers/deadang.c
+++ b/src/mame/drivers/deadang.c
@@ -254,7 +254,7 @@ static MACHINE_CONFIG_START( deadang, deadang_state )
MCFG_SCREEN_UPDATE_DRIVER(deadang_state, screen_update_deadang)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", deadang)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", deadang)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/dec0.c b/src/mame/drivers/dec0.c
index 736ccb30740..69a2280deb2 100644
--- a/src/mame/drivers/dec0.c
+++ b/src/mame/drivers/dec0.c
@@ -1307,7 +1307,7 @@ WRITE_LINE_MEMBER(dec0_state::sound_irq2)
static MACHINE_CONFIG_START( dec0_base, dec0_state )
- MCFG_GFXDECODE_ADD("gfxdecode", dec0)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dec0)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -1436,7 +1436,7 @@ static MACHINE_CONFIG_START( automat, dec0_automat_state )
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", automat)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", automat)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
@@ -1496,7 +1496,7 @@ static MACHINE_CONFIG_START( secretab, dec0_automat_state )
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", secretab)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", secretab)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
diff --git a/src/mame/drivers/dec8.c b/src/mame/drivers/dec8.c
index 1f82bacaa20..bad77392084 100644
--- a/src/mame/drivers/dec8.c
+++ b/src/mame/drivers/dec8.c
@@ -2027,7 +2027,7 @@ static MACHINE_CONFIG_START( lastmisn, dec8_state )
MCFG_SCREEN_UPDATE_DRIVER(dec8_state, screen_update_lastmisn)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", shackled)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", shackled)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -2080,7 +2080,7 @@ static MACHINE_CONFIG_START( shackled, dec8_state )
MCFG_SCREEN_UPDATE_DRIVER(dec8_state, screen_update_shackled)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", shackled)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", shackled)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -2133,7 +2133,7 @@ static MACHINE_CONFIG_START( gondo, dec8_state )
MCFG_SCREEN_VBLANK_DRIVER(dec8_state, screen_eof_dec8)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gondo)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gondo)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -2186,7 +2186,7 @@ static MACHINE_CONFIG_START( garyoret, dec8_state )
MCFG_SCREEN_VBLANK_DRIVER(dec8_state, screen_eof_dec8)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gondo)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gondo)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -2243,7 +2243,7 @@ static MACHINE_CONFIG_START( ghostb, dec8_state )
MCFG_SCREEN_VBLANK_DRIVER(dec8_state, screen_eof_dec8)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ghostb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ghostb)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -2302,7 +2302,7 @@ static MACHINE_CONFIG_START( csilver, dec8_state )
MCFG_SCREEN_UPDATE_DRIVER(dec8_state, screen_update_lastmisn)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", shackled)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", shackled)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -2363,7 +2363,7 @@ static MACHINE_CONFIG_START( oscar, dec8_state )
MCFG_SCREEN_UPDATE_DRIVER(dec8_state, screen_update_oscar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", oscar)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", oscar)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -2407,7 +2407,7 @@ static MACHINE_CONFIG_START( srdarwin, dec8_state )
MCFG_SCREEN_UPDATE_DRIVER(dec8_state, screen_update_srdarwin)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", srdarwin)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", srdarwin)
MCFG_PALETTE_ADD("palette", 144)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -2464,7 +2464,7 @@ static MACHINE_CONFIG_START( cobracom, dec8_state )
MCFG_SCREEN_UPDATE_DRIVER(dec8_state, screen_update_cobracom)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cobracom)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cobracom)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/deco156.c b/src/mame/drivers/deco156.c
index 468726d8abd..ae461bff670 100644
--- a/src/mame/drivers/deco156.c
+++ b/src/mame/drivers/deco156.c
@@ -367,7 +367,7 @@ static MACHINE_CONFIG_START( hvysmsh, deco156_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(deco156_state, screen_update_wcvol95)
- MCFG_GFXDECODE_ADD("gfxdecode", hvysmsh)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hvysmsh)
MCFG_PALETTE_ADD("palette", 1024)
@@ -409,7 +409,7 @@ static MACHINE_CONFIG_START( wcvol95, deco156_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(deco156_state, screen_update_wcvol95)
- MCFG_GFXDECODE_ADD("gfxdecode", hvysmsh)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hvysmsh)
MCFG_PALETTE_ADD("palette", 1024)
diff --git a/src/mame/drivers/deco32.c b/src/mame/drivers/deco32.c
index 9d9cd198062..5e6003ddb4a 100644
--- a/src/mame/drivers/deco32.c
+++ b/src/mame/drivers/deco32.c
@@ -1753,7 +1753,7 @@ static MACHINE_CONFIG_START( captaven, deco32_state )
MCFG_SCREEN_VBLANK_DRIVER(deco32_state, screen_eof_captaven)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", captaven)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", captaven)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_DECO16IC_ADD("tilegen1", captaven_deco16ic_tilegen1_intf)
@@ -1828,7 +1828,7 @@ static MACHINE_CONFIG_START( fghthist, deco32_state ) /* DE-0380-2 PCB */
MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(deco32_state, screen_update_fghthist)
- MCFG_GFXDECODE_ADD("gfxdecode", fghthist)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fghthist)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_DECO16IC_ADD("tilegen1", fghthist_deco16ic_tilegen1_intf)
@@ -1890,7 +1890,7 @@ static MACHINE_CONFIG_START( fghthsta, deco32_state ) /* DE-0395-1 PCB */
MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(deco32_state, screen_update_fghthist)
- MCFG_GFXDECODE_ADD("gfxdecode", fghthist)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fghthist)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_DECO16IC_ADD("tilegen1", fghthist_deco16ic_tilegen1_intf)
@@ -2026,7 +2026,7 @@ static MACHINE_CONFIG_START( dragngun, dragngun_state )
MCFG_DECO16IC_GFXDECODE("gfxdecode")
MCFG_DECO16IC_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dragngun)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dragngun)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(dragngun_state,dragngun)
@@ -2113,7 +2113,7 @@ static MACHINE_CONFIG_START( lockload, dragngun_state )
MCFG_DECO16IC_GFXDECODE("gfxdecode")
MCFG_DECO16IC_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dragngun)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dragngun)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(dragngun_state,lockload)
@@ -2212,7 +2212,7 @@ static MACHINE_CONFIG_START( tattass, deco32_state )
MCFG_DECO_SPRITE_GFXDECODE("gfxdecode")
MCFG_DECO_SPRITE_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", tattass)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", tattass)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_DECO104_ADD("ioprot104")
@@ -2265,7 +2265,7 @@ static MACHINE_CONFIG_START( nslasher, deco32_state )
MCFG_DECO_SPRITE_GFXDECODE("gfxdecode")
MCFG_DECO_SPRITE_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", nslasher)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", nslasher)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(deco32_state,nslasher)
diff --git a/src/mame/drivers/deco_ld.c b/src/mame/drivers/deco_ld.c
index e89a7ea22aa..c84439105d3 100644
--- a/src/mame/drivers/deco_ld.c
+++ b/src/mame/drivers/deco_ld.c
@@ -482,7 +482,7 @@ static MACHINE_CONFIG_START( rblaster, deco_ld_state )
/* video hardware */
MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc")
- MCFG_GFXDECODE_ADD("gfxdecode", rblaster)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rblaster)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(BBGGGRRR)
diff --git a/src/mame/drivers/deco_mlc.c b/src/mame/drivers/deco_mlc.c
index 570697591e7..3e0a6ea583e 100644
--- a/src/mame/drivers/deco_mlc.c
+++ b/src/mame/drivers/deco_mlc.c
@@ -496,7 +496,7 @@ static MACHINE_CONFIG_START( avengrgs, deco_mlc_state )
MCFG_SCREEN_VBLANK_DRIVER(deco_mlc_state, screen_eof_mlc)
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_SCANLINE)
- MCFG_GFXDECODE_ADD("gfxdecode", deco_mlc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", deco_mlc)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(deco_mlc_state,mlc)
@@ -529,7 +529,7 @@ static MACHINE_CONFIG_START( mlc, deco_mlc_state )
MCFG_SCREEN_VBLANK_DRIVER(deco_mlc_state, screen_eof_mlc)
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_SCANLINE)
- MCFG_GFXDECODE_ADD("gfxdecode", deco_mlc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", deco_mlc)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(deco_mlc_state,mlc)
diff --git a/src/mame/drivers/decocass.c b/src/mame/drivers/decocass.c
index 71c1c245b0f..bd04f03a8fb 100644
--- a/src/mame/drivers/decocass.c
+++ b/src/mame/drivers/decocass.c
@@ -735,7 +735,7 @@ static MACHINE_CONFIG_START( decocass, decocass_state )
MCFG_SCREEN_UPDATE_DRIVER(decocass_state, screen_update_decocass)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", decocass)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", decocass)
MCFG_PALETTE_ADD("palette", 32+2*8+2*4)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(decocass_state, decocass)
diff --git a/src/mame/drivers/deniam.c b/src/mame/drivers/deniam.c
index ccb330da9ab..100cbfa39c2 100644
--- a/src/mame/drivers/deniam.c
+++ b/src/mame/drivers/deniam.c
@@ -281,7 +281,7 @@ static MACHINE_CONFIG_START( deniam16b, deniam_state )
MCFG_SCREEN_UPDATE_DRIVER(deniam_state, screen_update_deniam)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", deniam)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", deniam)
MCFG_PALETTE_ADD("palette", 2048)
@@ -314,7 +314,7 @@ static MACHINE_CONFIG_START( deniam16c, deniam_state )
MCFG_SCREEN_UPDATE_DRIVER(deniam_state, screen_update_deniam)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", deniam)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", deniam)
MCFG_PALETTE_ADD("palette", 2048)
diff --git a/src/mame/drivers/destroyr.c b/src/mame/drivers/destroyr.c
index 512ae0634c7..57cc9f173f7 100644
--- a/src/mame/drivers/destroyr.c
+++ b/src/mame/drivers/destroyr.c
@@ -492,7 +492,7 @@ static MACHINE_CONFIG_START( destroyr, destroyr_state )
MCFG_SCREEN_UPDATE_DRIVER(destroyr_state, screen_update_destroyr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", destroyr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", destroyr)
MCFG_PALETTE_ADD("palette", 8)
MCFG_PALETTE_INIT_OWNER(destroyr_state, destroyr)
diff --git a/src/mame/drivers/dfruit.c b/src/mame/drivers/dfruit.c
index bf5d4578057..59bf94ca7cf 100644
--- a/src/mame/drivers/dfruit.c
+++ b/src/mame/drivers/dfruit.c
@@ -401,7 +401,7 @@ static MACHINE_CONFIG_START( dfruit, dfruit_state )
MCFG_SCREEN_VBLANK_DRIVER(dfruit_state, screen_eof)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dfruit )
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dfruit )
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_DEVICE_ADD("tc0091lvc", TC0091LVC, 0)
diff --git a/src/mame/drivers/dietgo.c b/src/mame/drivers/dietgo.c
index 2a8689d92a8..a33696d47e9 100644
--- a/src/mame/drivers/dietgo.c
+++ b/src/mame/drivers/dietgo.c
@@ -231,7 +231,7 @@ static MACHINE_CONFIG_START( dietgo, dietgo_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_PALETTE_ADD("palette", 1024)
- MCFG_GFXDECODE_ADD("gfxdecode", dietgo)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dietgo)
MCFG_DECOCOMN_ADD("deco_common")
MCFG_DECOCOMN_PALETTE("palette")
diff --git a/src/mame/drivers/discoboy.c b/src/mame/drivers/discoboy.c
index 35882162e39..eb3f428ccfc 100644
--- a/src/mame/drivers/discoboy.c
+++ b/src/mame/drivers/discoboy.c
@@ -512,7 +512,7 @@ static MACHINE_CONFIG_START( discoboy, discoboy_state )
MCFG_SCREEN_UPDATE_DRIVER(discoboy_state, screen_update_discoboy)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", discoboy)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", discoboy)
MCFG_PALETTE_ADD("palette", 0x1000)
diff --git a/src/mame/drivers/diverboy.c b/src/mame/drivers/diverboy.c
index 0826ffbdb7e..6e144582354 100644
--- a/src/mame/drivers/diverboy.c
+++ b/src/mame/drivers/diverboy.c
@@ -268,7 +268,7 @@ static MACHINE_CONFIG_START( diverboy, diverboy_state )
MCFG_CPU_PROGRAM_MAP(snd_map)
- MCFG_GFXDECODE_ADD("gfxdecode", diverboy)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", diverboy)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/djboy.c b/src/mame/drivers/djboy.c
index b45f1107f66..843ee17f41e 100644
--- a/src/mame/drivers/djboy.c
+++ b/src/mame/drivers/djboy.c
@@ -581,7 +581,7 @@ static MACHINE_CONFIG_START( djboy, djboy_state )
MCFG_SCREEN_VBLANK_DRIVER(djboy_state, screen_eof_djboy)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", djboy)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", djboy)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_KANEKO_PANDORA_ADD("pandora", djboy_pandora_config)
diff --git a/src/mame/drivers/djmain.c b/src/mame/drivers/djmain.c
index 7b2f848d83b..18decd2c41d 100644
--- a/src/mame/drivers/djmain.c
+++ b/src/mame/drivers/djmain.c
@@ -1421,7 +1421,7 @@ static MACHINE_CONFIG_START( djmain, djmain_state )
MCFG_SCREEN_UPDATE_DRIVER(djmain_state, screen_update_djmain)
MCFG_PALETTE_ADD("palette", 0x4440/4)
- MCFG_GFXDECODE_ADD("gfxdecode", djmain)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", djmain)
MCFG_K056832_ADD("k056832", djmain_k056832_intf)
MCFG_K056832_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/dkong.c b/src/mame/drivers/dkong.c
index 3e0a99b039e..e1982ff6619 100644
--- a/src/mame/drivers/dkong.c
+++ b/src/mame/drivers/dkong.c
@@ -1668,7 +1668,7 @@ static MACHINE_CONFIG_START( dkong_base, dkong_state )
MCFG_SCREEN_UPDATE_DRIVER(dkong_state, screen_update_dkong)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dkong)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dkong)
MCFG_PALETTE_ADD("palette", DK2B_PALETTE_LENGTH)
MCFG_PALETTE_INIT_OWNER(dkong_state,dkong2b)
@@ -1734,7 +1734,7 @@ static MACHINE_CONFIG_START( dkong3, dkong_state )
MCFG_SCREEN_UPDATE_DRIVER(dkong_state, screen_update_dkong)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dkong)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dkong)
MCFG_PALETTE_ADD("palette", DK3_PALETTE_LENGTH)
MCFG_PALETTE_INIT_OWNER(dkong_state,dkong3)
diff --git a/src/mame/drivers/dlair.c b/src/mame/drivers/dlair.c
index 53daef6abf8..31f12653ac8 100644
--- a/src/mame/drivers/dlair.c
+++ b/src/mame/drivers/dlair.c
@@ -776,7 +776,7 @@ static MACHINE_CONFIG_START( dleuro, dlair_state )
/* video hardware */
MCFG_LASERDISC_SCREEN_ADD_PAL("screen", "ld_22vp932")
- MCFG_GFXDECODE_ADD("gfxdecode", dlair)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dlair)
MCFG_PALETTE_ADD("palette", 16)
MCFG_PALETTE_INIT_OWNER(dlair_state,dleuro)
diff --git a/src/mame/drivers/dlair2.c b/src/mame/drivers/dlair2.c
index 8a63e1b1b2c..5554994362a 100644
--- a/src/mame/drivers/dlair2.c
+++ b/src/mame/drivers/dlair2.c
@@ -184,7 +184,7 @@ static MACHINE_CONFIG_START( dlair2, dlair2_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1)
MCFG_SCREEN_PALETTE("palette")
-// MCFG_GFXDECODE_ADD("gfxdecode", dlair2)
+// MCFG_GFXDECODE_ADD("gfxdecode", "palette", dlair2)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(dlair2_state, dlair2)
diff --git a/src/mame/drivers/dmndrby.c b/src/mame/drivers/dmndrby.c
index f80f87d525f..997abec8677 100644
--- a/src/mame/drivers/dmndrby.c
+++ b/src/mame/drivers/dmndrby.c
@@ -538,7 +538,7 @@ static MACHINE_CONFIG_START( dderby, dmndrby_state )
MCFG_SCREEN_UPDATE_DRIVER(dmndrby_state, screen_update_dderby)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dmndrby)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dmndrby)
MCFG_PALETTE_ADD("palette", 0x300)
MCFG_PALETTE_INDIRECT_ENTRIES(0x20)
MCFG_PALETTE_INIT_OWNER(dmndrby_state, dmndrby)
diff --git a/src/mame/drivers/docastle.c b/src/mame/drivers/docastle.c
index 0b8688971f4..316a8022622 100644
--- a/src/mame/drivers/docastle.c
+++ b/src/mame/drivers/docastle.c
@@ -641,7 +641,7 @@ static MACHINE_CONFIG_START( docastle, docastle_state )
MCFG_SCREEN_UPDATE_DRIVER(docastle_state, screen_update_docastle)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", docastle)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", docastle)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(docastle_state, docastle)
diff --git a/src/mame/drivers/dogfgt.c b/src/mame/drivers/dogfgt.c
index e28ab307546..06a778d64b0 100644
--- a/src/mame/drivers/dogfgt.c
+++ b/src/mame/drivers/dogfgt.c
@@ -254,7 +254,7 @@ static MACHINE_CONFIG_START( dogfgt, dogfgt_state )
MCFG_SCREEN_UPDATE_DRIVER(dogfgt_state, screen_update_dogfgt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dogfgt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dogfgt)
MCFG_PALETTE_ADD("palette", 16+64)
MCFG_PALETTE_FORMAT(BBGGGRRR)
MCFG_PALETTE_INIT_OWNER(dogfgt_state, dogfgt)
diff --git a/src/mame/drivers/dominob.c b/src/mame/drivers/dominob.c
index 80130d05977..8888225c0c8 100644
--- a/src/mame/drivers/dominob.c
+++ b/src/mame/drivers/dominob.c
@@ -316,7 +316,7 @@ static MACHINE_CONFIG_START( dominob, dominob_state )
MCFG_SCREEN_UPDATE_DRIVER(dominob_state, screen_update_dominob)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dominob)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dominob)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
diff --git a/src/mame/drivers/dooyong.c b/src/mame/drivers/dooyong.c
index 558cdd559bf..7f46cbc9e35 100644
--- a/src/mame/drivers/dooyong.c
+++ b/src/mame/drivers/dooyong.c
@@ -874,7 +874,7 @@ static MACHINE_CONFIG_START( lastday, dooyong_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lastday)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lastday)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -920,7 +920,7 @@ static MACHINE_CONFIG_START( gulfstrm, dooyong_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lastday)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lastday)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -955,7 +955,7 @@ static MACHINE_CONFIG_START( pollux, dooyong_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lastday)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lastday)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -989,7 +989,7 @@ static MACHINE_CONFIG_START( bluehawk, dooyong_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bluehawk)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bluehawk)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1023,7 +1023,7 @@ static MACHINE_CONFIG_START( flytiger, dooyong_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", flytiger)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", flytiger)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1054,7 +1054,7 @@ static MACHINE_CONFIG_START( primella, dooyong_state )
MCFG_SCREEN_UPDATE_DRIVER(dooyong_state, screen_update_primella)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", primella)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", primella)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1098,7 +1098,7 @@ static MACHINE_CONFIG_START( rshark, dooyong_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram16", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", rshark)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rshark)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1130,7 +1130,7 @@ static MACHINE_CONFIG_START( superx, dooyong_state ) // dif mem map
MCFG_SCREEN_VBLANK_DEVICE("spriteram16", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", rshark)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rshark)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1162,7 +1162,7 @@ static MACHINE_CONFIG_START( popbingo, dooyong_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram16", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", popbingo)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", popbingo)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/dragrace.c b/src/mame/drivers/dragrace.c
index 3b47c71a3ea..deb5c157172 100644
--- a/src/mame/drivers/dragrace.c
+++ b/src/mame/drivers/dragrace.c
@@ -339,7 +339,7 @@ static MACHINE_CONFIG_START( dragrace, dragrace_state )
MCFG_SCREEN_UPDATE_DRIVER(dragrace_state, screen_update_dragrace)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dragrace)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dragrace)
MCFG_PALETTE_ADD("palette", 16)
MCFG_PALETTE_INIT_OWNER(dragrace_state, dragrace)
diff --git a/src/mame/drivers/dreambal.c b/src/mame/drivers/dreambal.c
index 0551f74f8cd..cd8e5377069 100644
--- a/src/mame/drivers/dreambal.c
+++ b/src/mame/drivers/dreambal.c
@@ -328,7 +328,7 @@ static MACHINE_CONFIG_START( dreambal, dreambal_state )
MCFG_PALETTE_ADD("palette", 0x400/2)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", dreambal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dreambal)
MCFG_EEPROM_SERIAL_93C46_ADD("eeprom") // 93lc46b
diff --git a/src/mame/drivers/dreamwld.c b/src/mame/drivers/dreamwld.c
index 0136a919f29..ecc6f51f1e2 100644
--- a/src/mame/drivers/dreamwld.c
+++ b/src/mame/drivers/dreamwld.c
@@ -587,7 +587,7 @@ static MACHINE_CONFIG_START( baryon, dreamwld_state )
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
- MCFG_GFXDECODE_ADD("gfxdecode", dreamwld)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dreamwld)
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
diff --git a/src/mame/drivers/drgnmst.c b/src/mame/drivers/drgnmst.c
index 7ff0e4929ec..8d400107d67 100644
--- a/src/mame/drivers/drgnmst.c
+++ b/src/mame/drivers/drgnmst.c
@@ -400,7 +400,7 @@ static MACHINE_CONFIG_START( drgnmst, drgnmst_state )
MCFG_CPU_IO_MAP(drgnmst_sound_io_map)
- MCFG_GFXDECODE_ADD("gfxdecode", drgnmst)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", drgnmst)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/drmicro.c b/src/mame/drivers/drmicro.c
index ca7d483429a..119ea3d9f4e 100644
--- a/src/mame/drivers/drmicro.c
+++ b/src/mame/drivers/drmicro.c
@@ -259,7 +259,7 @@ static MACHINE_CONFIG_START( drmicro, drmicro_state )
MCFG_SCREEN_UPDATE_DRIVER(drmicro_state, screen_update_drmicro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", drmicro)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", drmicro)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(drmicro_state, drmicro)
diff --git a/src/mame/drivers/drtomy.c b/src/mame/drivers/drtomy.c
index 983b5d8fc4e..1f2a6a17204 100644
--- a/src/mame/drivers/drtomy.c
+++ b/src/mame/drivers/drtomy.c
@@ -313,7 +313,7 @@ static MACHINE_CONFIG_START( drtomy, drtomy_state )
MCFG_SCREEN_UPDATE_DRIVER(drtomy_state, screen_update_drtomy)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", drtomy)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", drtomy)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/drw80pkr.c b/src/mame/drivers/drw80pkr.c
index 303daa3bcb5..66535ec71b8 100644
--- a/src/mame/drivers/drw80pkr.c
+++ b/src/mame/drivers/drw80pkr.c
@@ -483,7 +483,7 @@ static MACHINE_CONFIG_START( drw80pkr, drw80pkr_state )
MCFG_SCREEN_UPDATE_DRIVER(drw80pkr_state, screen_update_drw80pkr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", drw80pkr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", drw80pkr)
MCFG_PALETTE_ADD("palette", 16*16)
MCFG_PALETTE_INIT_OWNER(drw80pkr_state, drw80pkr)
diff --git a/src/mame/drivers/dunhuang.c b/src/mame/drivers/dunhuang.c
index 63e5b1d66df..0af7c0c6f19 100644
--- a/src/mame/drivers/dunhuang.c
+++ b/src/mame/drivers/dunhuang.c
@@ -839,7 +839,7 @@ static MACHINE_CONFIG_START( dunhuang, dunhuang_state )
MCFG_SCREEN_UPDATE_DRIVER(dunhuang_state, screen_update_dunhuang)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dunhuang)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dunhuang)
MCFG_PALETTE_ADD("palette", 0x100)
diff --git a/src/mame/drivers/dwarfd.c b/src/mame/drivers/dwarfd.c
index 1f5eb9ee322..6c66483689c 100644
--- a/src/mame/drivers/dwarfd.c
+++ b/src/mame/drivers/dwarfd.c
@@ -1071,7 +1071,7 @@ static MACHINE_CONFIG_START( dwarfd, dwarfd_state )
MCFG_SCREEN_VISIBLE_AREA(0, 272*2-1, 0, 200-1)
MCFG_SCREEN_UPDATE_DRIVER(dwarfd_state, screen_update_dwarfd)
- MCFG_GFXDECODE_ADD("gfxdecode", dwarfd)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dwarfd)
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_PALETTE_INIT_OWNER(dwarfd_state, dwarfd)
diff --git a/src/mame/drivers/dynadice.c b/src/mame/drivers/dynadice.c
index 0eb3795089b..f11f830a13b 100644
--- a/src/mame/drivers/dynadice.c
+++ b/src/mame/drivers/dynadice.c
@@ -265,7 +265,7 @@ static MACHINE_CONFIG_START( dynadice, dynadice_state )
MCFG_SCREEN_UPDATE_DRIVER(dynadice_state, screen_update_dynadice)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dynadice)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dynadice)
MCFG_PALETTE_ADD("palette", 8)
MCFG_PALETTE_INIT_OWNER(dynadice_state, dynadice)
diff --git a/src/mame/drivers/dynduke.c b/src/mame/drivers/dynduke.c
index 7893e5bbef3..653252c33ff 100644
--- a/src/mame/drivers/dynduke.c
+++ b/src/mame/drivers/dynduke.c
@@ -296,7 +296,7 @@ static MACHINE_CONFIG_START( dynduke, dynduke_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", dynduke)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", dynduke)
MCFG_PALETTE_ADD("palette", 2048)
diff --git a/src/mame/drivers/egghunt.c b/src/mame/drivers/egghunt.c
index 63628febcfe..10337c1ea85 100644
--- a/src/mame/drivers/egghunt.c
+++ b/src/mame/drivers/egghunt.c
@@ -431,7 +431,7 @@ static MACHINE_CONFIG_START( egghunt, egghunt_state )
MCFG_SCREEN_UPDATE_DRIVER(egghunt_state, screen_update_egghunt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", egghunt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", egghunt)
MCFG_PALETTE_ADD("palette", 0x400)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/eprom.c b/src/mame/drivers/eprom.c
index cfdec536b0b..41268274452 100644
--- a/src/mame/drivers/eprom.c
+++ b/src/mame/drivers/eprom.c
@@ -396,7 +396,7 @@ static MACHINE_CONFIG_START( eprom, eprom_state )
MCFG_ATARI_EEPROM_2804_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", eprom)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", eprom)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, eprom_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
@@ -438,7 +438,7 @@ static MACHINE_CONFIG_START( klaxp, eprom_state )
MCFG_ATARI_EEPROM_2804_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", eprom)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", eprom)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, eprom_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
@@ -479,7 +479,7 @@ static MACHINE_CONFIG_START( guts, eprom_state )
MCFG_ATARI_EEPROM_2804_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", guts)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", guts)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, eprom_state, guts_get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
diff --git a/src/mame/drivers/equites.c b/src/mame/drivers/equites.c
index a3b1a44b849..86c40462dc0 100644
--- a/src/mame/drivers/equites.c
+++ b/src/mame/drivers/equites.c
@@ -1240,7 +1240,7 @@ static MACHINE_CONFIG_START( equites, equites_state )
MCFG_SCREEN_UPDATE_DRIVER(equites_state, screen_update_equites)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", equites)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", equites)
MCFG_PALETTE_ADD("palette", 0x180)
MCFG_PALETTE_INDIRECT_ENTRIES(0x100)
MCFG_PALETTE_INIT_OWNER(equites_state,equites)
@@ -1280,7 +1280,7 @@ static MACHINE_CONFIG_START( splndrbt, equites_state )
MCFG_SCREEN_UPDATE_DRIVER(equites_state, screen_update_splndrbt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", splndrbt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", splndrbt)
MCFG_PALETTE_ADD("palette", 0x280)
MCFG_PALETTE_INDIRECT_ENTRIES(0x100)
MCFG_PALETTE_INIT_OWNER(equites_state,splndrbt)
diff --git a/src/mame/drivers/esd16.c b/src/mame/drivers/esd16.c
index b6f475644bc..a627604d0d5 100644
--- a/src/mame/drivers/esd16.c
+++ b/src/mame/drivers/esd16.c
@@ -630,7 +630,7 @@ static MACHINE_CONFIG_START( esd16, esd16_state )
MCFG_DECO_SPRITE_GFXDECODE("gfxdecode")
MCFG_DECO_SPRITE_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", esd16)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", esd16)
MCFG_PALETTE_ADD("palette", 0x1000/2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/esh.c b/src/mame/drivers/esh.c
index 83120000287..0f4e988befe 100644
--- a/src/mame/drivers/esh.c
+++ b/src/mame/drivers/esh.c
@@ -338,7 +338,7 @@ static MACHINE_CONFIG_START( esh, esh_state )
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(esh_state, esh)
- MCFG_GFXDECODE_ADD("gfxdecode", esh)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", esh)
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
diff --git a/src/mame/drivers/espial.c b/src/mame/drivers/espial.c
index d16a996c437..c0c1313addb 100644
--- a/src/mame/drivers/espial.c
+++ b/src/mame/drivers/espial.c
@@ -332,7 +332,7 @@ static MACHINE_CONFIG_START( espial, espial_state )
MCFG_SCREEN_UPDATE_DRIVER(espial_state, screen_update_espial)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", espial)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", espial)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(espial_state, espial)
diff --git a/src/mame/drivers/ettrivia.c b/src/mame/drivers/ettrivia.c
index 0fbf26bac15..398725fb4e7 100644
--- a/src/mame/drivers/ettrivia.c
+++ b/src/mame/drivers/ettrivia.c
@@ -319,7 +319,7 @@ static MACHINE_CONFIG_START( ettrivia, ettrivia_state )
MCFG_SCREEN_UPDATE_DRIVER(ettrivia_state, screen_update_ettrivia)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ettrivia)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ettrivia)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(ettrivia_state, ettrivia)
diff --git a/src/mame/drivers/exedexes.c b/src/mame/drivers/exedexes.c
index ef65b6312ca..9be1bd7f551 100644
--- a/src/mame/drivers/exedexes.c
+++ b/src/mame/drivers/exedexes.c
@@ -235,7 +235,7 @@ static MACHINE_CONFIG_START( exedexes, exedexes_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", exedexes)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", exedexes)
MCFG_PALETTE_ADD("palette", 64*4+64*4+16*16+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
diff --git a/src/mame/drivers/exerion.c b/src/mame/drivers/exerion.c
index 0a6aeb81efa..bdd771bc2e3 100644
--- a/src/mame/drivers/exerion.c
+++ b/src/mame/drivers/exerion.c
@@ -401,7 +401,7 @@ static MACHINE_CONFIG_START( exerion, exerion_state )
MCFG_SCREEN_UPDATE_DRIVER(exerion_state, screen_update_exerion)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", exerion)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", exerion)
MCFG_PALETTE_ADD("palette", 256*3)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(exerion_state, exerion)
diff --git a/src/mame/drivers/exidy.c b/src/mame/drivers/exidy.c
index 78d6fa368e6..8ad50a91266 100644
--- a/src/mame/drivers/exidy.c
+++ b/src/mame/drivers/exidy.c
@@ -810,7 +810,7 @@ static MACHINE_CONFIG_START( base, exidy_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", exidy_state, exidy_vblank_interrupt)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", exidy)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", exidy)
MCFG_PALETTE_ADD("palette", 8)
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/expro02.c b/src/mame/drivers/expro02.c
index a149fbdd7de..75cb387731c 100644
--- a/src/mame/drivers/expro02.c
+++ b/src/mame/drivers/expro02.c
@@ -562,7 +562,7 @@ static MACHINE_CONFIG_START( galsnew, expro02_state )
MCFG_SCREEN_UPDATE_DRIVER(expro02_state, screen_update_galsnew)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 1x4bit_1x4bit)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1x4bit_1x4bit)
MCFG_PALETTE_ADD("palette", 2048 + 32768)
MCFG_PALETTE_INIT_OWNER(expro02_state, expro02)
diff --git a/src/mame/drivers/exprraid.c b/src/mame/drivers/exprraid.c
index e8afbd4e5d4..d277395872d 100644
--- a/src/mame/drivers/exprraid.c
+++ b/src/mame/drivers/exprraid.c
@@ -517,7 +517,7 @@ static MACHINE_CONFIG_START( exprraid, exprraid_state )
MCFG_SCREEN_UPDATE_DRIVER(exprraid_state, screen_update_exprraid)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", exprraid)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", exprraid)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
/* sound hardware */
diff --git a/src/mame/drivers/exzisus.c b/src/mame/drivers/exzisus.c
index 28ac7ff2413..03d95fe5a6b 100644
--- a/src/mame/drivers/exzisus.c
+++ b/src/mame/drivers/exzisus.c
@@ -287,7 +287,7 @@ static MACHINE_CONFIG_START( exzisus, exzisus_state )
MCFG_SCREEN_UPDATE_DRIVER(exzisus_state, screen_update_exzisus)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", exzisus)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", exzisus)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 1024)
/* sound hardware */
diff --git a/src/mame/drivers/f1gp.c b/src/mame/drivers/f1gp.c
index 155f412926a..6c4d1155481 100644
--- a/src/mame/drivers/f1gp.c
+++ b/src/mame/drivers/f1gp.c
@@ -432,7 +432,7 @@ static MACHINE_CONFIG_START( f1gp, f1gp_state )
MCFG_SCREEN_UPDATE_DRIVER(f1gp_state, screen_update_f1gp)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", f1gp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", f1gp)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -491,7 +491,7 @@ static MACHINE_CONFIG_START( f1gpb, f1gp_state )
MCFG_SCREEN_UPDATE_DRIVER(f1gp_state, screen_update_f1gpb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", f1gp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", f1gp)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/famibox.c b/src/mame/drivers/famibox.c
index 540b2ee71df..a30743422f5 100644
--- a/src/mame/drivers/famibox.c
+++ b/src/mame/drivers/famibox.c
@@ -592,7 +592,7 @@ static MACHINE_CONFIG_START( famibox, famibox_state )
MCFG_SCREEN_UPDATE_DRIVER(famibox_state, screen_update_famibox)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", famibox)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", famibox)
MCFG_PALETTE_ADD("palette", 8*4*16)
MCFG_PALETTE_INIT_OWNER(famibox_state, famibox)
diff --git a/src/mame/drivers/fantland.c b/src/mame/drivers/fantland.c
index cca9f8e48a4..0b1bdb33c05 100644
--- a/src/mame/drivers/fantland.c
+++ b/src/mame/drivers/fantland.c
@@ -861,7 +861,7 @@ static MACHINE_CONFIG_START( fantland, fantland_state )
MCFG_SCREEN_UPDATE_DRIVER(fantland_state, screen_update_fantland)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fantland)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fantland)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -906,7 +906,7 @@ static MACHINE_CONFIG_START( galaxygn, fantland_state )
MCFG_SCREEN_UPDATE_DRIVER(fantland_state, screen_update_fantland)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fantland)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fantland)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1006,7 +1006,7 @@ static MACHINE_CONFIG_START( borntofi, fantland_state )
MCFG_SCREEN_UPDATE_DRIVER(fantland_state, screen_update_fantland)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fantland)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fantland)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -1043,7 +1043,7 @@ static MACHINE_CONFIG_START( wheelrun, fantland_state )
MCFG_SCREEN_UPDATE_DRIVER(fantland_state, screen_update_fantland)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fantland)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fantland)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/fastfred.c b/src/mame/drivers/fastfred.c
index 562392be351..630f6297dfc 100644
--- a/src/mame/drivers/fastfred.c
+++ b/src/mame/drivers/fastfred.c
@@ -654,7 +654,7 @@ static MACHINE_CONFIG_START( fastfred, fastfred_state )
MCFG_SCREEN_UPDATE_DRIVER(fastfred_state, screen_update_fastfred)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fastfred)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fastfred)
MCFG_PALETTE_ADD("palette", 32*8)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
diff --git a/src/mame/drivers/fastlane.c b/src/mame/drivers/fastlane.c
index 2094ce48068..c8661141213 100644
--- a/src/mame/drivers/fastlane.c
+++ b/src/mame/drivers/fastlane.c
@@ -208,7 +208,7 @@ static MACHINE_CONFIG_START( fastlane, fastlane_state )
MCFG_SCREEN_UPDATE_DRIVER(fastlane_state, screen_update_fastlane)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fastlane)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fastlane)
MCFG_PALETTE_ADD("palette", 1024*16)
MCFG_PALETTE_INDIRECT_ENTRIES(0x400)
MCFG_PALETTE_INIT_OWNER(fastlane_state, fastlane)
diff --git a/src/mame/drivers/fcombat.c b/src/mame/drivers/fcombat.c
index 6b3b1888db6..96f2743d93e 100644
--- a/src/mame/drivers/fcombat.c
+++ b/src/mame/drivers/fcombat.c
@@ -295,7 +295,7 @@ static MACHINE_CONFIG_START( fcombat, fcombat_state )
MCFG_SCREEN_UPDATE_DRIVER(fcombat_state, screen_update_fcombat)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fcombat)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fcombat)
MCFG_PALETTE_ADD("palette", 256*3)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(fcombat_state, fcombat)
diff --git a/src/mame/drivers/fcrash.c b/src/mame/drivers/fcrash.c
index fcda3cca1ab..790a24a38b2 100644
--- a/src/mame/drivers/fcrash.c
+++ b/src/mame/drivers/fcrash.c
@@ -1490,7 +1490,7 @@ static MACHINE_CONFIG_START( fcrash, cps_state )
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
@@ -1549,7 +1549,7 @@ static MACHINE_CONFIG_START( kodb, cps_state )
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
@@ -1590,7 +1590,7 @@ static MACHINE_CONFIG_START( sf2mdt, cps_state )
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
@@ -1634,7 +1634,7 @@ static MACHINE_CONFIG_START( knightsb, cps_state )
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
@@ -1974,7 +1974,7 @@ static MACHINE_CONFIG_START( dinopic, cps_state )
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
@@ -2127,7 +2127,7 @@ static MACHINE_CONFIG_START( sgyxz, cps_state )
MCFG_SCREEN_UPDATE_DRIVER(cps_state, screen_update_fcrash)
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
@@ -2221,7 +2221,7 @@ static MACHINE_CONFIG_START( punipic, cps_state )
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
@@ -2409,7 +2409,7 @@ static MACHINE_CONFIG_START( sf2m1, cps_state )
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
@@ -2614,7 +2614,7 @@ static MACHINE_CONFIG_START( slampic, cps_state )
MCFG_SCREEN_VBLANK_DRIVER(cps_state, screen_eof_cps1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cps1)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cps1)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_VIDEO_START_OVERRIDE(cps_state,cps1)
diff --git a/src/mame/drivers/feversoc.c b/src/mame/drivers/feversoc.c
index d6f853bfec9..16335014813 100644
--- a/src/mame/drivers/feversoc.c
+++ b/src/mame/drivers/feversoc.c
@@ -260,7 +260,7 @@ static MACHINE_CONFIG_START( feversoc, feversoc_state )
MCFG_SCREEN_UPDATE_DRIVER(feversoc_state, screen_update_feversoc)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", feversoc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", feversoc)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/fgoal.c b/src/mame/drivers/fgoal.c
index ebd510f78b5..05a66a011e2 100644
--- a/src/mame/drivers/fgoal.c
+++ b/src/mame/drivers/fgoal.c
@@ -378,7 +378,7 @@ static MACHINE_CONFIG_START( fgoal, fgoal_state )
MCFG_SCREEN_UPDATE_DRIVER(fgoal_state, screen_update_fgoal)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fgoal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fgoal)
MCFG_PALETTE_ADD("palette", 128 + 16 + 1)
MCFG_PALETTE_INIT_OWNER(fgoal_state, fgoal)
diff --git a/src/mame/drivers/finalizr.c b/src/mame/drivers/finalizr.c
index 9c9821b3f2c..0be0c41cd8f 100644
--- a/src/mame/drivers/finalizr.c
+++ b/src/mame/drivers/finalizr.c
@@ -271,7 +271,7 @@ static MACHINE_CONFIG_START( finalizr, finalizr_state )
MCFG_SCREEN_UPDATE_DRIVER(finalizr_state, screen_update_finalizr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", finalizr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", finalizr)
MCFG_PALETTE_ADD("palette", 2*16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(finalizr_state, finalizr)
diff --git a/src/mame/drivers/firefox.c b/src/mame/drivers/firefox.c
index b975bb7b785..6d20cfe40b8 100644
--- a/src/mame/drivers/firefox.c
+++ b/src/mame/drivers/firefox.c
@@ -725,7 +725,7 @@ static MACHINE_CONFIG_START( firefox, firefox_state )
MCFG_WATCHDOG_TIME_INIT(attotime::from_hz((double)MASTER_XTAL/8/16/16/16/16))
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", firefox)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", firefox)
MCFG_PALETTE_ADD("palette", 512)
diff --git a/src/mame/drivers/firetrap.c b/src/mame/drivers/firetrap.c
index aef1f0b3f7e..18ca682629d 100644
--- a/src/mame/drivers/firetrap.c
+++ b/src/mame/drivers/firetrap.c
@@ -651,7 +651,7 @@ static MACHINE_CONFIG_START( firetrap, firetrap_state )
MCFG_SCREEN_UPDATE_DRIVER(firetrap_state, screen_update_firetrap)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", firetrap)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", firetrap)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(firetrap_state, firetrap)
@@ -688,7 +688,7 @@ static MACHINE_CONFIG_START( firetrapbl, firetrap_state )
MCFG_SCREEN_UPDATE_DRIVER(firetrap_state, screen_update_firetrap)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", firetrap)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", firetrap)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(firetrap_state, firetrap)
diff --git a/src/mame/drivers/firetrk.c b/src/mame/drivers/firetrk.c
index cfb2d3c355f..9479fb6e532 100644
--- a/src/mame/drivers/firetrk.c
+++ b/src/mame/drivers/firetrk.c
@@ -869,7 +869,7 @@ static MACHINE_CONFIG_START( firetrk, firetrk_state )
MCFG_PALETTE_ADD("palette", 28)
MCFG_PALETTE_INIT_OWNER(firetrk_state, firetrk)
- MCFG_GFXDECODE_ADD("gfxdecode", firetrk)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", firetrk)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
diff --git a/src/mame/drivers/fitfight.c b/src/mame/drivers/fitfight.c
index 242154b74c8..09dc3c0834f 100644
--- a/src/mame/drivers/fitfight.c
+++ b/src/mame/drivers/fitfight.c
@@ -735,7 +735,7 @@ static MACHINE_CONFIG_START( fitfight, fitfight_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", fitfight_state, snd_irq)
- MCFG_GFXDECODE_ADD("gfxdecode", fitfight)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fitfight)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
@@ -762,7 +762,7 @@ static MACHINE_CONFIG_START( bbprot, fitfight_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", fitfight_state, irq2_line_hold)
- MCFG_GFXDECODE_ADD("gfxdecode", prot)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", prot)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/flipjack.c b/src/mame/drivers/flipjack.c
index 11c5bfe0727..bcecd270321 100644
--- a/src/mame/drivers/flipjack.c
+++ b/src/mame/drivers/flipjack.c
@@ -503,7 +503,7 @@ static MACHINE_CONFIG_START( flipjack, flipjack_state )
MCFG_MC6845_ADD("crtc", HD6845, "screen", VIDEO_CLOCK/8, mc6845_intf)
- MCFG_GFXDECODE_ADD("gfxdecode", flipjack)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", flipjack)
MCFG_PALETTE_ADD("palette", 128+8)
MCFG_PALETTE_INIT_OWNER(flipjack_state, flipjack)
diff --git a/src/mame/drivers/flkatck.c b/src/mame/drivers/flkatck.c
index 696862e3804..3adf4b5f16f 100644
--- a/src/mame/drivers/flkatck.c
+++ b/src/mame/drivers/flkatck.c
@@ -224,7 +224,7 @@ static MACHINE_CONFIG_START( flkatck, flkatck_state )
MCFG_SCREEN_UPDATE_DRIVER(flkatck_state, screen_update_flkatck)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", flkatck)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", flkatck)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
MCFG_PALETTE_ENDIANNESS(ENDIANNESS_LITTLE)
diff --git a/src/mame/drivers/flower.c b/src/mame/drivers/flower.c
index 21630961b66..b32b0c77176 100644
--- a/src/mame/drivers/flower.c
+++ b/src/mame/drivers/flower.c
@@ -274,7 +274,7 @@ static MACHINE_CONFIG_START( flower, flower_state )
MCFG_SCREEN_UPDATE_DRIVER(flower_state, screen_update_flower)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", flower)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", flower)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
/* sound hardware */
diff --git a/src/mame/drivers/flstory.c b/src/mame/drivers/flstory.c
index ef524f17992..06131956861 100644
--- a/src/mame/drivers/flstory.c
+++ b/src/mame/drivers/flstory.c
@@ -1084,7 +1084,7 @@ static MACHINE_CONFIG_START( flstory, flstory_state )
MCFG_SCREEN_UPDATE_DRIVER(flstory_state, screen_update_flstory)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", flstory)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", flstory)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -1143,7 +1143,7 @@ static MACHINE_CONFIG_START( onna34ro, flstory_state )
MCFG_SCREEN_UPDATE_DRIVER(flstory_state, screen_update_flstory)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", flstory)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", flstory)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -1202,7 +1202,7 @@ static MACHINE_CONFIG_START( victnine, flstory_state )
MCFG_SCREEN_UPDATE_DRIVER(flstory_state, screen_update_victnine)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", flstory)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", flstory)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -1267,7 +1267,7 @@ static MACHINE_CONFIG_START( rumba, flstory_state )
MCFG_SCREEN_UPDATE_DRIVER(flstory_state, screen_update_rumba)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", flstory)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", flstory)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/flyball.c b/src/mame/drivers/flyball.c
index 9c678e81b92..48360a107b3 100644
--- a/src/mame/drivers/flyball.c
+++ b/src/mame/drivers/flyball.c
@@ -456,7 +456,7 @@ static MACHINE_CONFIG_START( flyball, flyball_state )
MCFG_SCREEN_UPDATE_DRIVER(flyball_state, screen_update_flyball)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", flyball)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", flyball)
MCFG_PALETTE_ADD("palette", 4)
MCFG_PALETTE_INIT_OWNER(flyball_state, flyball)
diff --git a/src/mame/drivers/foodf.c b/src/mame/drivers/foodf.c
index f8eddd4b303..85712f78cdb 100644
--- a/src/mame/drivers/foodf.c
+++ b/src/mame/drivers/foodf.c
@@ -366,7 +366,7 @@ static MACHINE_CONFIG_START( foodf, foodf_state )
MCFG_TIMER_DRIVER_ADD("scan_timer", foodf_state, scanline_update_timer)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", foodf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", foodf)
MCFG_PALETTE_ADD("palette", 256)
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("playfield", "gfxdecode", 2, foodf_state, get_playfield_tile_info, 8,8, SCAN_COLS, 32,32, 0)
diff --git a/src/mame/drivers/fortecar.c b/src/mame/drivers/fortecar.c
index c580ac79561..b334e84b08f 100644
--- a/src/mame/drivers/fortecar.c
+++ b/src/mame/drivers/fortecar.c
@@ -701,7 +701,7 @@ static MACHINE_CONFIG_START( fortecar, fortecar_state )
MCFG_I8255A_ADD( "fcppi0", ppi8255_intf )
MCFG_V3021_ADD("rtc")
- MCFG_GFXDECODE_ADD("gfxdecode", fortecar)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fortecar)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_PALETTE_INIT_OWNER(fortecar_state, fortecar)
diff --git a/src/mame/drivers/freekick.c b/src/mame/drivers/freekick.c
index fd87a2c8868..9f4ad628833 100644
--- a/src/mame/drivers/freekick.c
+++ b/src/mame/drivers/freekick.c
@@ -638,7 +638,7 @@ static MACHINE_CONFIG_START( base, freekick_state )
MCFG_SCREEN_UPDATE_DRIVER(freekick_state, screen_update_pbillrd)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", freekick)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", freekick)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 0x200)
/* sound hardware */
diff --git a/src/mame/drivers/fresh.c b/src/mame/drivers/fresh.c
index c4676325fc6..2f169c052a9 100644
--- a/src/mame/drivers/fresh.c
+++ b/src/mame/drivers/fresh.c
@@ -604,7 +604,7 @@ static MACHINE_CONFIG_START( fresh, fresh_state )
MCFG_PALETTE_ADD("palette", 0x1000) // or 0xc00
MCFG_PALETTE_FORMAT(XBGR)
- MCFG_GFXDECODE_ADD("gfxdecode", fresh)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fresh)
/* sound hw? */
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/fromanc2.c b/src/mame/drivers/fromanc2.c
index d8a5d60b603..23226dda05d 100644
--- a/src/mame/drivers/fromanc2.c
+++ b/src/mame/drivers/fromanc2.c
@@ -537,7 +537,7 @@ static MACHINE_CONFIG_START( fromanc2, fromanc2_state )
MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", fromanc2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fromanc2)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_DEFAULT_LAYOUT(layout_dualhsxs)
@@ -589,7 +589,7 @@ static MACHINE_CONFIG_START( fromancr, fromanc2_state )
MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", fromancr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fromancr)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_DEFAULT_LAYOUT(layout_dualhsxs)
@@ -637,7 +637,7 @@ static MACHINE_CONFIG_START( fromanc4, fromanc2_state )
MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", fromancr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fromancr)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_DEFAULT_LAYOUT(layout_dualhsxs)
diff --git a/src/mame/drivers/fromance.c b/src/mame/drivers/fromance.c
index 8d40c06fd68..84eda33fb64 100644
--- a/src/mame/drivers/fromance.c
+++ b/src/mame/drivers/fromance.c
@@ -1043,7 +1043,7 @@ static MACHINE_CONFIG_START( nekkyoku, fromance_state )
MCFG_SCREEN_UPDATE_DRIVER(fromance_state, screen_update_fromance)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fromance)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fromance)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_VIDEO_START_OVERRIDE(fromance_state,nekkyoku)
@@ -1082,7 +1082,7 @@ static MACHINE_CONFIG_START( idolmj, fromance_state )
MCFG_SCREEN_UPDATE_DRIVER(fromance_state, screen_update_fromance)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fromance)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fromance)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(fromance_state,fromance)
@@ -1121,7 +1121,7 @@ static MACHINE_CONFIG_START( fromance, fromance_state )
MCFG_SCREEN_UPDATE_DRIVER(fromance_state, screen_update_fromance)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fromance)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fromance)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_VIDEO_START_OVERRIDE(fromance_state,fromance)
diff --git a/src/mame/drivers/funkybee.c b/src/mame/drivers/funkybee.c
index 8bf54f67df5..f07d3d80ac6 100644
--- a/src/mame/drivers/funkybee.c
+++ b/src/mame/drivers/funkybee.c
@@ -306,7 +306,7 @@ static MACHINE_CONFIG_START( funkybee, funkybee_state )
MCFG_SCREEN_UPDATE_DRIVER(funkybee_state, screen_update_funkybee)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", funkybee)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", funkybee)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(funkybee_state, funkybee)
diff --git a/src/mame/drivers/funkyjet.c b/src/mame/drivers/funkyjet.c
index 749a2b9a0bb..6ead868c6b5 100644
--- a/src/mame/drivers/funkyjet.c
+++ b/src/mame/drivers/funkyjet.c
@@ -338,7 +338,7 @@ static MACHINE_CONFIG_START( funkyjet, funkyjet_state )
MCFG_DECO146_SET_INTERFACE_SCRAMBLE_INTERLEAVE
- MCFG_GFXDECODE_ADD("gfxdecode", funkyjet)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", funkyjet)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/funworld.c b/src/mame/drivers/funworld.c
index 8563170b2f1..f8d2ebdd5c3 100644
--- a/src/mame/drivers/funworld.c
+++ b/src/mame/drivers/funworld.c
@@ -2951,7 +2951,7 @@ static MACHINE_CONFIG_START( fw1stpal, funworld_state )
MCFG_SCREEN_UPDATE_DRIVER(funworld_state, screen_update_funworld)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fw1stpal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fw1stpal)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_PALETTE_INIT_OWNER(funworld_state, funworld)
diff --git a/src/mame/drivers/funybubl.c b/src/mame/drivers/funybubl.c
index a53d7d915b1..1173d628dbb 100644
--- a/src/mame/drivers/funybubl.c
+++ b/src/mame/drivers/funybubl.c
@@ -234,7 +234,7 @@ static MACHINE_CONFIG_START( funybubl, funybubl_state )
MCFG_SCREEN_UPDATE_DRIVER(funybubl_state, screen_update_funybubl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", funybubl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", funybubl)
MCFG_PALETTE_ADD("palette", 0x400)
diff --git a/src/mame/drivers/fuukifg2.c b/src/mame/drivers/fuukifg2.c
index 8e4b78d52bb..b23136fa06b 100644
--- a/src/mame/drivers/fuukifg2.c
+++ b/src/mame/drivers/fuukifg2.c
@@ -466,7 +466,7 @@ static MACHINE_CONFIG_START( fuuki16, fuuki16_state )
MCFG_SCREEN_UPDATE_DRIVER(fuuki16_state, screen_update_fuuki16)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fuuki16)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fuuki16)
MCFG_PALETTE_ADD("palette", 0x800*4)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/fuukifg3.c b/src/mame/drivers/fuukifg3.c
index 7573954385e..5c316518c35 100644
--- a/src/mame/drivers/fuukifg3.c
+++ b/src/mame/drivers/fuukifg3.c
@@ -565,7 +565,7 @@ static MACHINE_CONFIG_START( fuuki32, fuuki32_state )
MCFG_SCREEN_VBLANK_DRIVER(fuuki32_state, screen_eof_fuuki32)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fuuki32)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fuuki32)
MCFG_PALETTE_ADD("palette", 0x4000/2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/gaelco.c b/src/mame/drivers/gaelco.c
index 5a0ad561993..8e193639e01 100644
--- a/src/mame/drivers/gaelco.c
+++ b/src/mame/drivers/gaelco.c
@@ -516,7 +516,7 @@ static MACHINE_CONFIG_START( bigkarnk, gaelco_state )
MCFG_SCREEN_UPDATE_DRIVER(gaelco_state, screen_update_bigkarnk)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x100000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x100000)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -549,7 +549,7 @@ static MACHINE_CONFIG_START( maniacsq, gaelco_state )
MCFG_SCREEN_UPDATE_DRIVER(gaelco_state, screen_update_maniacsq)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x100000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x100000)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -581,7 +581,7 @@ static MACHINE_CONFIG_START( squash, gaelco_state )
MCFG_SCREEN_UPDATE_DRIVER(gaelco_state, screen_update_maniacsq)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x100000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x100000)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -613,7 +613,7 @@ static MACHINE_CONFIG_START( thoop, gaelco_state )
MCFG_SCREEN_UPDATE_DRIVER(gaelco_state, screen_update_maniacsq)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x100000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x100000)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/gaelco2.c b/src/mame/drivers/gaelco2.c
index e6f73b5d609..d279d09dd1b 100644
--- a/src/mame/drivers/gaelco2.c
+++ b/src/mame/drivers/gaelco2.c
@@ -171,7 +171,7 @@ static MACHINE_CONFIG_START( maniacsq, gaelco2_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x0080000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x0080000)
MCFG_PALETTE_ADD("palette", 4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */
MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2)
@@ -292,7 +292,7 @@ static MACHINE_CONFIG_START( bang, gaelco2_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x0200000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x0200000)
MCFG_PALETTE_ADD("palette", 4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */
MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2)
@@ -534,7 +534,7 @@ static MACHINE_CONFIG_START( alighunt, gaelco2_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x0400000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x0400000)
MCFG_PALETTE_ADD("palette", 4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */
MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2)
@@ -767,7 +767,7 @@ static MACHINE_CONFIG_START( touchgo, gaelco2_state )
/* video hardware */
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x0400000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x0400000)
MCFG_PALETTE_ADD("palette", 4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */
MCFG_DEFAULT_LAYOUT(layout_dualhsxs)
@@ -973,7 +973,7 @@ static MACHINE_CONFIG_START( snowboar, gaelco2_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x0400000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x0400000)
MCFG_PALETTE_ADD("palette", 4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */
MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2)
@@ -1205,7 +1205,7 @@ static MACHINE_CONFIG_START( wrally2, gaelco2_state )
/* video hardware */
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
- MCFG_GFXDECODE_ADD("gfxdecode", 0x0200000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 0x0200000)
MCFG_PALETTE_ADD("palette", 4096*16 - 16) /* game's palette is 4096 but we allocate 15 more for shadows & highlights */
MCFG_DEFAULT_LAYOUT(layout_dualhsxs)
diff --git a/src/mame/drivers/gaiden.c b/src/mame/drivers/gaiden.c
index dd668bfdb2a..0976a1a096c 100644
--- a/src/mame/drivers/gaiden.c
+++ b/src/mame/drivers/gaiden.c
@@ -770,7 +770,7 @@ static MACHINE_CONFIG_START( shadoww, gaiden_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 32*8-1)
MCFG_SCREEN_UPDATE_DRIVER(gaiden_state, screen_update_gaiden)
- MCFG_GFXDECODE_ADD("gfxdecode", gaiden)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gaiden)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -829,7 +829,7 @@ static MACHINE_CONFIG_START( drgnbowl, gaiden_state )
MCFG_SCREEN_UPDATE_DRIVER(gaiden_state, screen_update_drgnbowl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", drgnbowl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", drgnbowl)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -946,7 +946,7 @@ static MACHINE_CONFIG_START( mastninj, gaiden_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(gaiden_state, screen_update_gaiden)
- MCFG_GFXDECODE_ADD("gfxdecode", mastninj)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mastninj)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/gal3.c b/src/mame/drivers/gal3.c
index 97197de83c5..77777e96479 100644
--- a/src/mame/drivers/gal3.c
+++ b/src/mame/drivers/gal3.c
@@ -630,7 +630,7 @@ static MACHINE_CONFIG_START( gal3, gal3_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 512-1, 0*8, 512-1)
MCFG_SCREEN_UPDATE_DRIVER(gal3_state, screen_update_gal3)
- MCFG_GFXDECODE_ADD("gfxdecode", namcos21)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", namcos21)
MCFG_PALETTE_ADD("palette", NAMCOS21_NUM_COLORS)
MCFG_VIDEO_START_OVERRIDE(gal3_state,gal3)
diff --git a/src/mame/drivers/galaga.c b/src/mame/drivers/galaga.c
index b6c716a3ee6..d03d8b9dacb 100644
--- a/src/mame/drivers/galaga.c
+++ b/src/mame/drivers/galaga.c
@@ -1696,7 +1696,7 @@ static MACHINE_CONFIG_START( bosco, bosco_state )
MCFG_SCREEN_VBLANK_DRIVER(bosco_state, screen_eof_bosco)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bosco)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bosco)
MCFG_PALETTE_ADD("palette", 64*4+64*4+4+64)
MCFG_PALETTE_INDIRECT_ENTRIES(32+64)
MCFG_PALETTE_INIT_OWNER(bosco_state,bosco)
@@ -1753,7 +1753,7 @@ static MACHINE_CONFIG_START( galaga, galaga_state )
MCFG_SCREEN_VBLANK_DRIVER(galaga_state, screen_eof_galaga)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", galaga)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galaga)
MCFG_PALETTE_ADD("palette", 64*4+64*4+64)
MCFG_PALETTE_INDIRECT_ENTRIES(32+64)
MCFG_PALETTE_INIT_OWNER(galaga_state,galaga)
@@ -1831,7 +1831,7 @@ static MACHINE_CONFIG_START( xevious, xevious_state )
MCFG_SCREEN_UPDATE_DRIVER(xevious_state, screen_update_xevious)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", xevious)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", xevious)
MCFG_PALETTE_ADD("palette", 128*4+64*8+64*2)
MCFG_PALETTE_INDIRECT_ENTRIES(128+1)
MCFG_PALETTE_INIT_OWNER(xevious_state,xevious)
@@ -1922,7 +1922,7 @@ static MACHINE_CONFIG_START( digdug, digdug_state )
MCFG_SCREEN_UPDATE_DRIVER(digdug_state, screen_update_digdug)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", digdug)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", digdug)
MCFG_PALETTE_ADD("palette", 16*2+64*4+64*4)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(digdug_state,digdug)
diff --git a/src/mame/drivers/galastrm.c b/src/mame/drivers/galastrm.c
index 1773a3395e6..12d36b2a023 100644
--- a/src/mame/drivers/galastrm.c
+++ b/src/mame/drivers/galastrm.c
@@ -313,7 +313,7 @@ static MACHINE_CONFIG_START( galastrm, galastrm_state )
MCFG_SCREEN_UPDATE_DRIVER(galastrm_state, screen_update_galastrm)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", galastrm)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galastrm)
MCFG_PALETTE_ADD("palette", 4096)
diff --git a/src/mame/drivers/galaxi.c b/src/mame/drivers/galaxi.c
index 9971d06b37e..91889621814 100644
--- a/src/mame/drivers/galaxi.c
+++ b/src/mame/drivers/galaxi.c
@@ -423,7 +423,7 @@ static MACHINE_CONFIG_START( galaxi, galaxi_state )
MCFG_SCREEN_UPDATE_DRIVER(galaxi_state, screen_update_galaxi)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", galaxi)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galaxi)
MCFG_PALETTE_ADD("palette", 0x400)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/galaxia.c b/src/mame/drivers/galaxia.c
index 95e85631bf3..63c82816bb0 100644
--- a/src/mame/drivers/galaxia.c
+++ b/src/mame/drivers/galaxia.c
@@ -305,7 +305,7 @@ static MACHINE_CONFIG_START( galaxia, galaxia_state )
MCFG_SCREEN_UPDATE_DRIVER(galaxia_state, screen_update_galaxia)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", galaxia)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galaxia)
MCFG_PALETTE_ADD("palette", 0x18+2)
MCFG_PALETTE_INIT_OWNER(galaxia_state,galaxia)
@@ -342,7 +342,7 @@ static MACHINE_CONFIG_START( astrowar, galaxia_state )
MCFG_SCREEN_UPDATE_DRIVER(galaxia_state, screen_update_astrowar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", astrowar)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", astrowar)
MCFG_PALETTE_ADD("palette", 0x18+2)
MCFG_PALETTE_INIT_OWNER(galaxia_state,astrowar)
diff --git a/src/mame/drivers/galaxian.c b/src/mame/drivers/galaxian.c
index ea49d0a9e6f..cf605e61a5d 100644
--- a/src/mame/drivers/galaxian.c
+++ b/src/mame/drivers/galaxian.c
@@ -5168,7 +5168,7 @@ static MACHINE_CONFIG_START( galaxian_base, galaxian_state )
MCFG_WATCHDOG_VBLANK_INIT(8)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", galaxian)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galaxian)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(galaxian_state, galaxian)
diff --git a/src/mame/drivers/galaxold.c b/src/mame/drivers/galaxold.c
index c0ea25f10f2..14eff3bd087 100644
--- a/src/mame/drivers/galaxold.c
+++ b/src/mame/drivers/galaxold.c
@@ -2345,7 +2345,7 @@ static MACHINE_CONFIG_START( galaxold_base, galaxold_state )
MCFG_TIMER_DRIVER_ADD("int_timer", galaxold_state, galaxold_interrupt_timer)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", galaxian)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galaxian)
MCFG_PALETTE_ADD("palette", 32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */
MCFG_PALETTE_INIT_OWNER(galaxold_state,galaxold)
@@ -2554,7 +2554,7 @@ static MACHINE_CONFIG_START( drivfrcg, galaxold_state )
MCFG_PALETTE_ADD("palette", 64)
MCFG_PALETTE_INIT_OWNER(galaxold_state,rockclim)
- MCFG_GFXDECODE_ADD("gfxdecode", gmgalax)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gmgalax)
MCFG_VIDEO_START_OVERRIDE(galaxold_state,drivfrcg)
@@ -2619,7 +2619,7 @@ static MACHINE_CONFIG_START( racknrol, galaxold_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", galaxold_state, hunchbks_vh_interrupt)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", galaxian)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galaxian)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(galaxold_state,rockclim)
@@ -2645,7 +2645,7 @@ static MACHINE_CONFIG_START( hexpoola, galaxold_state )
MCFG_CPU_IO_MAP(hexpoola_io)
MCFG_CPU_VBLANK_INT_DRIVER("screen", galaxold_state, hunchbks_vh_interrupt)
- MCFG_GFXDECODE_ADD("gfxdecode", galaxian)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galaxian)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(galaxold_state,rockclim)
diff --git a/src/mame/drivers/galivan.c b/src/mame/drivers/galivan.c
index b2d2534be37..429da6985a5 100644
--- a/src/mame/drivers/galivan.c
+++ b/src/mame/drivers/galivan.c
@@ -437,7 +437,7 @@ static MACHINE_CONFIG_START( galivan, galivan_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", galivan)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galivan)
MCFG_PALETTE_ADD("palette", 8*16+16*16+256*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(galivan_state, galivan)
@@ -485,7 +485,7 @@ static MACHINE_CONFIG_START( ninjemak, galivan_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", galivan)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galivan)
MCFG_PALETTE_ADD("palette", 8*16+16*16+256*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(galivan_state, galivan)
diff --git a/src/mame/drivers/galpani2.c b/src/mame/drivers/galpani2.c
index b39fde93455..cd9e0abdb03 100644
--- a/src/mame/drivers/galpani2.c
+++ b/src/mame/drivers/galpani2.c
@@ -628,7 +628,7 @@ static MACHINE_CONFIG_START( galpani2, galpani2_state )
MCFG_SCREEN_UPDATE_DRIVER(galpani2_state, screen_update_galpani2)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", galpani2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galpani2)
MCFG_PALETTE_ADD("palette", 0x4000 + 0x200 + 0x8000) // sprites, bg8, bg15
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
MCFG_PALETTE_INIT_OWNER(galpani2_state, galpani2)
diff --git a/src/mame/drivers/galpanic.c b/src/mame/drivers/galpanic.c
index c9a88993dfa..0f3593a3778 100644
--- a/src/mame/drivers/galpanic.c
+++ b/src/mame/drivers/galpanic.c
@@ -569,7 +569,7 @@ static MACHINE_CONFIG_START( galpanic, galpanic_state )
MCFG_SCREEN_VBLANK_DRIVER(galpanic_state, screen_eof_galpanic)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", galpanic)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galpanic)
MCFG_PALETTE_ADD("palette", 1024 + 32768)
MCFG_PALETTE_INIT_OWNER(galpanic_state,galpanic)
diff --git a/src/mame/drivers/galspnbl.c b/src/mame/drivers/galspnbl.c
index 386d607daa1..0ad87a14015 100644
--- a/src/mame/drivers/galspnbl.c
+++ b/src/mame/drivers/galspnbl.c
@@ -237,7 +237,7 @@ static MACHINE_CONFIG_START( galspnbl, galspnbl_state )
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", galspnbl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", galspnbl)
MCFG_PALETTE_ADD("palette", 1024 + 32768)
MCFG_PALETTE_INIT_OWNER(galspnbl_state, galspnbl)
diff --git a/src/mame/drivers/gamecstl.c b/src/mame/drivers/gamecstl.c
index 6bffd6a73ba..32d2d47a5f9 100644
--- a/src/mame/drivers/gamecstl.c
+++ b/src/mame/drivers/gamecstl.c
@@ -451,7 +451,7 @@ static MACHINE_CONFIG_START( gamecstl, gamecstl_state )
MCFG_SCREEN_UPDATE_DRIVER(gamecstl_state, screen_update_gamecstl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", CGA)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", CGA)
MCFG_PALETTE_ADD("palette", 16)
diff --git a/src/mame/drivers/gaplus.c b/src/mame/drivers/gaplus.c
index 17dd2b7976e..a5e75ce1ff6 100644
--- a/src/mame/drivers/gaplus.c
+++ b/src/mame/drivers/gaplus.c
@@ -596,7 +596,7 @@ static MACHINE_CONFIG_START( gaplus, gaplus_state )
MCFG_SCREEN_VBLANK_DRIVER(gaplus_state, screen_eof_gaplus)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gaplus)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gaplus)
MCFG_PALETTE_ADD("palette", 64*4+64*8)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(gaplus_state, gaplus)
diff --git a/src/mame/drivers/gatron.c b/src/mame/drivers/gatron.c
index 48f438f97fd..46a4b2d9246 100644
--- a/src/mame/drivers/gatron.c
+++ b/src/mame/drivers/gatron.c
@@ -570,7 +570,7 @@ static MACHINE_CONFIG_START( gat, gatron_state )
MCFG_SCREEN_UPDATE_DRIVER(gatron_state, screen_update_gat)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gat)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gat)
MCFG_PALETTE_ADD("palette", 8)
MCFG_PALETTE_INIT_OWNER(gatron_state, gatron)
diff --git a/src/mame/drivers/gauntlet.c b/src/mame/drivers/gauntlet.c
index 278baaf02dc..3a6b8cc0a63 100644
--- a/src/mame/drivers/gauntlet.c
+++ b/src/mame/drivers/gauntlet.c
@@ -508,7 +508,7 @@ static MACHINE_CONFIG_START( gauntlet, gauntlet_state )
MCFG_ATARI_EEPROM_2804_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", gauntlet)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gauntlet)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(IIIIRRRRGGGGBBBB)
diff --git a/src/mame/drivers/gberet.c b/src/mame/drivers/gberet.c
index c0b88610fde..af4a104987c 100644
--- a/src/mame/drivers/gberet.c
+++ b/src/mame/drivers/gberet.c
@@ -416,7 +416,7 @@ static MACHINE_CONFIG_START( gberet, gberet_state )
MCFG_SCREEN_UPDATE_DRIVER(gberet_state, screen_update_gberet)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gberet)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gberet)
MCFG_PALETTE_ADD("palette", 2*16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(gberet_state,gberet)
@@ -456,7 +456,7 @@ static MACHINE_CONFIG_START( gberetb, gberet_state )
MCFG_SCREEN_UPDATE_DRIVER(gberet_state, screen_update_gberetb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gberetb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gberetb)
MCFG_PALETTE_ADD("palette", 2*16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(gberet_state,gberet)
diff --git a/src/mame/drivers/gbusters.c b/src/mame/drivers/gbusters.c
index 12d5c62d2ba..7431516fbe2 100644
--- a/src/mame/drivers/gbusters.c
+++ b/src/mame/drivers/gbusters.c
@@ -303,7 +303,7 @@ static MACHINE_CONFIG_START( gbusters, gbusters_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", gbusters_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
MCFG_K052109_PALETTE("palette")
diff --git a/src/mame/drivers/gcpinbal.c b/src/mame/drivers/gcpinbal.c
index 3cb4e28049c..e4f2ae95fcc 100644
--- a/src/mame/drivers/gcpinbal.c
+++ b/src/mame/drivers/gcpinbal.c
@@ -448,7 +448,7 @@ static MACHINE_CONFIG_START( gcpinbal, gcpinbal_state )
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gcpinbal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gcpinbal)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
diff --git a/src/mame/drivers/gijoe.c b/src/mame/drivers/gijoe.c
index 6d50c3b401d..6bf9c9c841f 100644
--- a/src/mame/drivers/gijoe.c
+++ b/src/mame/drivers/gijoe.c
@@ -351,7 +351,7 @@ static MACHINE_CONFIG_START( gijoe, gijoe_state )
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
MCFG_PALETTE_ENABLE_SHADOWS()
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K056832_ADD("k056832", gijoe_k056832_intf)
MCFG_K056832_GFXDECODE("gfxdecode")
MCFG_K056832_PALETTE("palette")
diff --git a/src/mame/drivers/ginganin.c b/src/mame/drivers/ginganin.c
index 8dda4e92f23..2854699dd00 100644
--- a/src/mame/drivers/ginganin.c
+++ b/src/mame/drivers/ginganin.c
@@ -274,7 +274,7 @@ static MACHINE_CONFIG_START( ginganin, ginganin_state )
MCFG_SCREEN_UPDATE_DRIVER(ginganin_state, screen_update_ginganin)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ginganin)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ginganin)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
diff --git a/src/mame/drivers/gladiatr.c b/src/mame/drivers/gladiatr.c
index cf7a799c908..3a5a75953f2 100644
--- a/src/mame/drivers/gladiatr.c
+++ b/src/mame/drivers/gladiatr.c
@@ -683,7 +683,7 @@ static MACHINE_CONFIG_START( ppking, gladiatr_state )
MCFG_SCREEN_UPDATE_DRIVER(gladiatr_state, screen_update_ppking)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ppking)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ppking)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_VIDEO_START_OVERRIDE(gladiatr_state,ppking)
@@ -732,7 +732,7 @@ static MACHINE_CONFIG_START( gladiatr, gladiatr_state )
MCFG_SCREEN_UPDATE_DRIVER(gladiatr_state, screen_update_gladiatr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gladiatr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gladiatr)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_VIDEO_START_OVERRIDE(gladiatr_state,gladiatr)
diff --git a/src/mame/drivers/glass.c b/src/mame/drivers/glass.c
index 63b1e142bde..3e78bfe110b 100644
--- a/src/mame/drivers/glass.c
+++ b/src/mame/drivers/glass.c
@@ -205,7 +205,7 @@ static MACHINE_CONFIG_START( glass, glass_state )
MCFG_SCREEN_UPDATE_DRIVER(glass_state, screen_update_glass)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", glass)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", glass)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/gluck2.c b/src/mame/drivers/gluck2.c
index 3f67cb78021..7280d77b1a1 100644
--- a/src/mame/drivers/gluck2.c
+++ b/src/mame/drivers/gluck2.c
@@ -568,7 +568,7 @@ static MACHINE_CONFIG_START( gluck2, gluck2_state )
MCFG_SCREEN_UPDATE_DRIVER(gluck2_state, screen_update_gluck2)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gluck2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gluck2)
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_PALETTE_INIT_OWNER(gluck2_state, gluck2)
diff --git a/src/mame/drivers/gng.c b/src/mame/drivers/gng.c
index 11356f6bf2e..8aabeb776c8 100644
--- a/src/mame/drivers/gng.c
+++ b/src/mame/drivers/gng.c
@@ -360,7 +360,7 @@ static MACHINE_CONFIG_START( gng, gng_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gng)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gng)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
diff --git a/src/mame/drivers/go2000.c b/src/mame/drivers/go2000.c
index 1d542e12a9f..52c2369c6d9 100644
--- a/src/mame/drivers/go2000.c
+++ b/src/mame/drivers/go2000.c
@@ -335,7 +335,7 @@ static MACHINE_CONFIG_START( go2000, go2000_state )
MCFG_CPU_IO_MAP(go2000_sound_io)
- MCFG_GFXDECODE_ADD("gfxdecode", go2000)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", go2000)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/goal92.c b/src/mame/drivers/goal92.c
index 43c450bf3d3..9912596d784 100644
--- a/src/mame/drivers/goal92.c
+++ b/src/mame/drivers/goal92.c
@@ -324,7 +324,7 @@ static MACHINE_CONFIG_START( goal92, goal92_state )
MCFG_SCREEN_VBLANK_DRIVER(goal92_state, screen_eof_goal92)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", goal92)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", goal92)
MCFG_PALETTE_ADD("palette", 128*16)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/goindol.c b/src/mame/drivers/goindol.c
index 1b7a3228bc2..367c2d4be58 100644
--- a/src/mame/drivers/goindol.c
+++ b/src/mame/drivers/goindol.c
@@ -248,7 +248,7 @@ static MACHINE_CONFIG_START( goindol, goindol_state )
MCFG_SCREEN_UPDATE_DRIVER(goindol_state, screen_update_goindol)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", goindol)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", goindol)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
/* sound hardware */
diff --git a/src/mame/drivers/goldngam.c b/src/mame/drivers/goldngam.c
index 6a5131e2061..83b5aa9f7c0 100644
--- a/src/mame/drivers/goldngam.c
+++ b/src/mame/drivers/goldngam.c
@@ -570,7 +570,7 @@ static MACHINE_CONFIG_START( swisspkr, goldngam_state )
MCFG_SCREEN_UPDATE_DRIVER(goldngam_state, screen_update_goldngam)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", goldngam)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", goldngam)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(goldngam_state, goldngam)
diff --git a/src/mame/drivers/goldnpkr.c b/src/mame/drivers/goldnpkr.c
index d0c543e6589..61101b22aee 100644
--- a/src/mame/drivers/goldnpkr.c
+++ b/src/mame/drivers/goldnpkr.c
@@ -3748,7 +3748,7 @@ static MACHINE_CONFIG_START( goldnpkr_base, goldnpkr_state )
MCFG_MC6845_ADD("crtc", MC6845, "screen", CPU_CLOCK, mc6845_intf) /* 68B45 or 6845s @ CPU clock */
- MCFG_GFXDECODE_ADD("gfxdecode", goldnpkr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", goldnpkr)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldnpkr_state, goldnpkr)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/goldstar.c b/src/mame/drivers/goldstar.c
index b7a87caee3a..f29b86563d1 100644
--- a/src/mame/drivers/goldstar.c
+++ b/src/mame/drivers/goldstar.c
@@ -6377,7 +6377,7 @@ static MACHINE_CONFIG_START( goldstar, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", goldstar)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", goldstar)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(BBGGGRRR)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6413,7 +6413,7 @@ static MACHINE_CONFIG_START( goldstbl, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bl)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(BBGGGRRR)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6448,7 +6448,7 @@ static MACHINE_CONFIG_START( moonlght, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ml)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ml)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(BBGGGRRR)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6483,7 +6483,7 @@ static MACHINE_CONFIG_START( goldfrui, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", goldfrui)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", goldfrui)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(BBGGGRRR)
@@ -6521,7 +6521,7 @@ static MACHINE_CONFIG_START( super9, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", goldstar)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", goldstar)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(BBGGGRRR)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6621,7 +6621,7 @@ static MACHINE_CONFIG_START( chrygld, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", chry10)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", chry10)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6663,7 +6663,7 @@ static MACHINE_CONFIG_START( cb3e, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cb3e)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cb3e)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state, cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6705,7 +6705,7 @@ static MACHINE_CONFIG_START( cb3c, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cb3c)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cb3c)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6746,7 +6746,7 @@ static MACHINE_CONFIG_START( ncb3, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ncb3)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ncb3)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
@@ -6788,7 +6788,7 @@ static MACHINE_CONFIG_START( wcherry, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cb3e)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cb3e)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state, cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6829,7 +6829,7 @@ static MACHINE_CONFIG_START( cm, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cmbitmap)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cmbitmap)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6870,7 +6870,7 @@ static MACHINE_CONFIG_START( cmnobmp, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cm)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cm)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6906,7 +6906,7 @@ static MACHINE_CONFIG_START( cmast91, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_cmast91)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cmast91)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cmast91)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cmast91)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -6948,7 +6948,7 @@ static MACHINE_CONFIG_START( lucky8, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ncb3)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ncb3)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(BBGGGRRR)
MCFG_PALETTE_INIT_OWNER(goldstar_state,lucky8)
@@ -6989,7 +6989,7 @@ static MACHINE_CONFIG_START( bingowng, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_bingowng)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ncb3)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ncb3)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,lucky8)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7029,7 +7029,7 @@ static MACHINE_CONFIG_START( bingownga, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_bingowng)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", bingownga) /* GFX Decode is the only difference with the parent machine */
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", bingownga) /* GFX Decode is the only difference with the parent machine */
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,lucky8)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7086,7 +7086,7 @@ static MACHINE_CONFIG_START( magodds, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_magical)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", magodds)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", magodds)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,magodds)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7128,7 +7128,7 @@ static MACHINE_CONFIG_START( kkotnoli, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ncb3)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ncb3)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,lucky8)
@@ -7164,7 +7164,7 @@ static MACHINE_CONFIG_START( ladylinr, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ncb3)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ncb3)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,lucky8)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7205,7 +7205,7 @@ static MACHINE_CONFIG_START( wcat3, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ncb3)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ncb3)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,lucky8)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7247,7 +7247,7 @@ static MACHINE_CONFIG_START( amcoe1, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cm)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cm)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7287,7 +7287,7 @@ static MACHINE_CONFIG_START( amcoe1a, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_amcoe1a)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cm)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cm)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7327,7 +7327,7 @@ static MACHINE_CONFIG_START( amcoe2, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cm)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cm)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7362,7 +7362,7 @@ static MACHINE_CONFIG_START( nfm, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", nfm)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", nfm)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7394,7 +7394,7 @@ static MACHINE_CONFIG_START( unkch, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_unkch)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", unkch)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", unkch)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -7444,7 +7444,7 @@ static MACHINE_CONFIG_START( pkrmast, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", pkrmast)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", pkrmast)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -7481,7 +7481,7 @@ static MACHINE_CONFIG_START( megaline, goldstar_state )
MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", megaline)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", megaline)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(goldstar_state,lucky8)
// MCFG_NVRAM_ADD_1FILL("nvram")
diff --git a/src/mame/drivers/gomoku.c b/src/mame/drivers/gomoku.c
index 2dfc99a5999..509bf707e22 100644
--- a/src/mame/drivers/gomoku.c
+++ b/src/mame/drivers/gomoku.c
@@ -134,7 +134,7 @@ static MACHINE_CONFIG_START( gomoku, gomoku_state )
MCFG_SCREEN_UPDATE_DRIVER(gomoku_state, screen_update_gomoku)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gomoku)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gomoku)
MCFG_PALETTE_ADD("palette", 64)
MCFG_PALETTE_INIT_OWNER(gomoku_state, gomoku)
diff --git a/src/mame/drivers/good.c b/src/mame/drivers/good.c
index a700f12b97a..c20c84e2b03 100644
--- a/src/mame/drivers/good.c
+++ b/src/mame/drivers/good.c
@@ -285,7 +285,7 @@ static MACHINE_CONFIG_START( good, good_state )
MCFG_CPU_PROGRAM_MAP(good_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", good_state, irq2_line_hold)
- MCFG_GFXDECODE_ADD("gfxdecode", good)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", good)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/goodejan.c b/src/mame/drivers/goodejan.c
index 7873bc80278..6107f1e62db 100644
--- a/src/mame/drivers/goodejan.c
+++ b/src/mame/drivers/goodejan.c
@@ -660,7 +660,7 @@ static MACHINE_CONFIG_START( goodejan, goodejan_state )
MCFG_SEIBU_CRTC_LAYER_EN_CB(WRITE16(goodejan_state, layer_en_w))
MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(goodejan_state, layer_scroll_w))
- MCFG_GFXDECODE_ADD("gfxdecode", goodejan)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", goodejan)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/gotcha.c b/src/mame/drivers/gotcha.c
index d51e8a724bd..ed4e1a97746 100644
--- a/src/mame/drivers/gotcha.c
+++ b/src/mame/drivers/gotcha.c
@@ -275,7 +275,7 @@ static MACHINE_CONFIG_START( gotcha, gotcha_state )
MCFG_SCREEN_UPDATE_DRIVER(gotcha_state, screen_update_gotcha)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gotcha)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gotcha)
MCFG_PALETTE_ADD("palette", 768)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/gottlieb.c b/src/mame/drivers/gottlieb.c
index 94705fa2179..70e30f9a73f 100644
--- a/src/mame/drivers/gottlieb.c
+++ b/src/mame/drivers/gottlieb.c
@@ -1739,7 +1739,7 @@ static MACHINE_CONFIG_START( gottlieb_core, gottlieb_state )
MCFG_SCREEN_RAW_PARAMS(SYSTEM_CLOCK/4, GOTTLIEB_VIDEO_HCOUNT, 0, GOTTLIEB_VIDEO_HBLANK, GOTTLIEB_VIDEO_VCOUNT, 0, GOTTLIEB_VIDEO_VBLANK)
MCFG_SCREEN_UPDATE_DRIVER(gottlieb_state, screen_update_gottlieb)
- MCFG_GFXDECODE_ADD("gfxdecode", gfxdecode)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gfxdecode)
MCFG_PALETTE_ADD("palette", 16)
// basic speaker configuration
diff --git a/src/mame/drivers/gotya.c b/src/mame/drivers/gotya.c
index 9acfce9c693..397203020e6 100644
--- a/src/mame/drivers/gotya.c
+++ b/src/mame/drivers/gotya.c
@@ -203,7 +203,7 @@ static MACHINE_CONFIG_START( gotya, gotya_state )
MCFG_SCREEN_UPDATE_DRIVER(gotya_state, screen_update_gotya)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gotya)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gotya)
MCFG_PALETTE_ADD("palette", 16*4)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(gotya_state, gotya)
diff --git a/src/mame/drivers/gpworld.c b/src/mame/drivers/gpworld.c
index 5a1eca1fef6..d4df38ef4ae 100644
--- a/src/mame/drivers/gpworld.c
+++ b/src/mame/drivers/gpworld.c
@@ -498,7 +498,7 @@ static MACHINE_CONFIG_START( gpworld, gpworld_state )
/* video hardware */
MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc")
- MCFG_GFXDECODE_ADD("gfxdecode", gpworld)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gpworld)
MCFG_PALETTE_ADD("palette", 1024)
/* sound hardware */
diff --git a/src/mame/drivers/gradius3.c b/src/mame/drivers/gradius3.c
index 186e8872531..8392e0623fd 100644
--- a/src/mame/drivers/gradius3.c
+++ b/src/mame/drivers/gradius3.c
@@ -313,7 +313,7 @@ static MACHINE_CONFIG_START( gradius3, gradius3_state )
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
MCFG_PALETTE_ENABLE_SHADOWS()
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", gradius3_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
MCFG_K052109_PALETTE("palette")
diff --git a/src/mame/drivers/grchamp.c b/src/mame/drivers/grchamp.c
index 1d8dbf0963b..7da7a19d7bc 100644
--- a/src/mame/drivers/grchamp.c
+++ b/src/mame/drivers/grchamp.c
@@ -680,7 +680,7 @@ static MACHINE_CONFIG_START( grchamp, grchamp_state )
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", grchamp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", grchamp)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(grchamp_state, grchamp)
diff --git a/src/mame/drivers/groundfx.c b/src/mame/drivers/groundfx.c
index aef0ce02dfa..36266fa404f 100644
--- a/src/mame/drivers/groundfx.c
+++ b/src/mame/drivers/groundfx.c
@@ -367,7 +367,7 @@ static MACHINE_CONFIG_START( groundfx, groundfx_state )
MCFG_SCREEN_UPDATE_DRIVER(groundfx_state, screen_update_groundfx)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", groundfx)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", groundfx)
MCFG_PALETTE_ADD("palette", 16384)
diff --git a/src/mame/drivers/gstream.c b/src/mame/drivers/gstream.c
index 118fdfdf8bb..5541e385d52 100644
--- a/src/mame/drivers/gstream.c
+++ b/src/mame/drivers/gstream.c
@@ -886,7 +886,7 @@ static MACHINE_CONFIG_START( gstream, gstream_state )
MCFG_PALETTE_FORMAT(BBBBBGGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", gstream)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gstream)
MCFG_SPEAKER_STANDARD_MONO("mono")
@@ -918,7 +918,7 @@ static MACHINE_CONFIG_START( x2222, gstream_state )
MCFG_SCREEN_UPDATE_DRIVER(gstream_state, screen_update_gstream)
MCFG_PALETTE_ADD("palette", 0x1000 + 0x400 + 0x400 + 0x400) // doesn't use a palette, but keep fake gfxdecode happy
- MCFG_GFXDECODE_ADD("gfxdecode", x2222)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", x2222)
// unknown sound hw (no sound roms dumped)
diff --git a/src/mame/drivers/gstriker.c b/src/mame/drivers/gstriker.c
index bca38bf6904..175458dc421 100644
--- a/src/mame/drivers/gstriker.c
+++ b/src/mame/drivers/gstriker.c
@@ -552,7 +552,7 @@ static MACHINE_CONFIG_START( gstriker, gstriker_state )
MCFG_SCREEN_UPDATE_DRIVER(gstriker_state, screen_update_gstriker)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gstriker)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gstriker)
MCFG_PALETTE_ADD("palette", 0x800)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -603,7 +603,7 @@ static MACHINE_CONFIG_START( vgoal, gstriker_state )
MCFG_SCREEN_UPDATE_DRIVER(gstriker_state, screen_update_gstriker)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gstriker)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gstriker)
MCFG_PALETTE_ADD("palette", 0x2000)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/gsword.c b/src/mame/drivers/gsword.c
index 92d5be14bfd..b916d12a1ff 100644
--- a/src/mame/drivers/gsword.c
+++ b/src/mame/drivers/gsword.c
@@ -686,7 +686,7 @@ static MACHINE_CONFIG_START( gsword, gsword_state )
MCFG_SCREEN_UPDATE_DRIVER(gsword_state, screen_update_gsword)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gsword)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gsword)
MCFG_PALETTE_ADD("palette", 64*4+64*4)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(gsword_state,gsword)
@@ -730,7 +730,7 @@ static MACHINE_CONFIG_START( josvolly, gsword_state )
MCFG_SCREEN_UPDATE_DRIVER(gsword_state, screen_update_gsword)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gsword)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gsword)
MCFG_PALETTE_ADD("palette", 64*4+64*4)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(gsword_state,josvolly)
diff --git a/src/mame/drivers/gticlub.c b/src/mame/drivers/gticlub.c
index 4df129173b4..5081915ff89 100644
--- a/src/mame/drivers/gticlub.c
+++ b/src/mame/drivers/gticlub.c
@@ -985,7 +985,7 @@ static MACHINE_CONFIG_START( gticlub, gticlub_state )
MCFG_VIDEO_START_OVERRIDE(gticlub_state,gticlub)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K001604_ADD("k001604_1", gticlub_k001604_intf)
MCFG_K001604_GFXDECODE("gfxdecode")
MCFG_K001604_PALETTE("palette")
@@ -1107,7 +1107,7 @@ static MACHINE_CONFIG_START( hangplt, gticlub_state )
MCFG_SCREEN_VISIBLE_AREA(0, 511, 0, 383)
MCFG_SCREEN_UPDATE_DRIVER(gticlub_state, screen_update_hangplt)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K001604_ADD("k001604_1", hangplt_k001604_intf_l)
MCFG_K001604_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/gumbo.c b/src/mame/drivers/gumbo.c
index 45078f6f3f5..3a24459386d 100644
--- a/src/mame/drivers/gumbo.c
+++ b/src/mame/drivers/gumbo.c
@@ -233,7 +233,7 @@ static MACHINE_CONFIG_START( gumbo, gumbo_state )
MCFG_CPU_PROGRAM_MAP(gumbo_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", gumbo_state, irq1_line_hold) // all the same
- MCFG_GFXDECODE_ADD("gfxdecode", gumbo)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gumbo)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/gunbustr.c b/src/mame/drivers/gunbustr.c
index 25d163e4a75..6044c760a4c 100644
--- a/src/mame/drivers/gunbustr.c
+++ b/src/mame/drivers/gunbustr.c
@@ -312,7 +312,7 @@ static MACHINE_CONFIG_START( gunbustr, gunbustr_state )
MCFG_SCREEN_UPDATE_DRIVER(gunbustr_state, screen_update_gunbustr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gunbustr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gunbustr)
MCFG_PALETTE_ADD("palette", 8192)
diff --git a/src/mame/drivers/gundealr.c b/src/mame/drivers/gundealr.c
index 7ae9fe06bcb..35d482f0cd0 100644
--- a/src/mame/drivers/gundealr.c
+++ b/src/mame/drivers/gundealr.c
@@ -418,7 +418,7 @@ static MACHINE_CONFIG_START( gundealr, gundealr_state )
MCFG_SCREEN_UPDATE_DRIVER(gundealr_state, screen_update_gundealr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gundealr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gundealr)
MCFG_PALETTE_ADD("palette", 512)
diff --git a/src/mame/drivers/gunpey.c b/src/mame/drivers/gunpey.c
index 28e68c6d28c..09581f5e5ce 100644
--- a/src/mame/drivers/gunpey.c
+++ b/src/mame/drivers/gunpey.c
@@ -1458,7 +1458,7 @@ static MACHINE_CONFIG_START( gunpey, gunpey_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gunpey)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gunpey)
MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker")
diff --git a/src/mame/drivers/gunsmoke.c b/src/mame/drivers/gunsmoke.c
index fe1707ebe36..48c1f16435d 100644
--- a/src/mame/drivers/gunsmoke.c
+++ b/src/mame/drivers/gunsmoke.c
@@ -312,7 +312,7 @@ static MACHINE_CONFIG_START( gunsmoke, gunsmoke_state )
MCFG_SCREEN_UPDATE_DRIVER(gunsmoke_state, screen_update_gunsmoke)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gunsmoke)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gunsmoke)
MCFG_PALETTE_ADD("palette", 32*4+16*16+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
diff --git a/src/mame/drivers/gyruss.c b/src/mame/drivers/gyruss.c
index 4d106491838..51eaf7f60d4 100644
--- a/src/mame/drivers/gyruss.c
+++ b/src/mame/drivers/gyruss.c
@@ -535,7 +535,7 @@ static MACHINE_CONFIG_START( gyruss, gyruss_state )
MCFG_SCREEN_UPDATE_DRIVER(gyruss_state, screen_update_gyruss)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gyruss)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gyruss)
MCFG_PALETTE_ADD("palette", 16*4+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(gyruss_state, gyruss)
diff --git a/src/mame/drivers/hanaawas.c b/src/mame/drivers/hanaawas.c
index 181b473a0b1..39b944906f8 100644
--- a/src/mame/drivers/hanaawas.c
+++ b/src/mame/drivers/hanaawas.c
@@ -210,7 +210,7 @@ static MACHINE_CONFIG_START( hanaawas, hanaawas_state )
MCFG_SCREEN_UPDATE_DRIVER(hanaawas_state, screen_update_hanaawas)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", hanaawas)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hanaawas)
MCFG_PALETTE_ADD("palette", 32*8)
MCFG_PALETTE_INDIRECT_ENTRIES(16)
MCFG_PALETTE_INIT_OWNER(hanaawas_state, hanaawas)
diff --git a/src/mame/drivers/hcastle.c b/src/mame/drivers/hcastle.c
index 7097d6bb185..6eca2cb4808 100644
--- a/src/mame/drivers/hcastle.c
+++ b/src/mame/drivers/hcastle.c
@@ -209,7 +209,7 @@ static MACHINE_CONFIG_START( hcastle, hcastle_state )
MCFG_SCREEN_UPDATE_DRIVER(hcastle_state, screen_update_hcastle)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", hcastle)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hcastle)
MCFG_PALETTE_ADD("palette", 2*8*16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(128)
MCFG_PALETTE_INIT_OWNER(hcastle_state, hcastle)
diff --git a/src/mame/drivers/headonb.c b/src/mame/drivers/headonb.c
index 5e1cf9d592e..8c5b5250749 100644
--- a/src/mame/drivers/headonb.c
+++ b/src/mame/drivers/headonb.c
@@ -170,7 +170,7 @@ static MACHINE_CONFIG_START( headonb, headonb_state )
MCFG_SCREEN_UPDATE_DRIVER(headonb_state, screen_update_headonb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", headonb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", headonb)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
/* sound hardware */
diff --git a/src/mame/drivers/hexion.c b/src/mame/drivers/hexion.c
index 5fad98ce6de..8dd6a7479da 100644
--- a/src/mame/drivers/hexion.c
+++ b/src/mame/drivers/hexion.c
@@ -235,7 +235,7 @@ static MACHINE_CONFIG_START( hexion, hexion_state )
MCFG_SCREEN_UPDATE_DRIVER(hexion_state, screen_update_hexion)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", hexion)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hexion)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
/* sound hardware */
diff --git a/src/mame/drivers/hideseek.c b/src/mame/drivers/hideseek.c
index f96d79a696f..ff601637879 100644
--- a/src/mame/drivers/hideseek.c
+++ b/src/mame/drivers/hideseek.c
@@ -110,7 +110,7 @@ static MACHINE_CONFIG_START( hideseek, hideseek_state )
MCFG_PALETTE_ADD("palette", 0x10000)
MCFG_PALETTE_INIT_OWNER(hideseek_state, hideseek)
- MCFG_GFXDECODE_ADD("gfxdecode", hideseek)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hideseek)
MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker")
diff --git a/src/mame/drivers/higemaru.c b/src/mame/drivers/higemaru.c
index 6d1c482d37e..73533053aa1 100644
--- a/src/mame/drivers/higemaru.c
+++ b/src/mame/drivers/higemaru.c
@@ -173,7 +173,7 @@ static MACHINE_CONFIG_START( higemaru, higemaru_state )
MCFG_SCREEN_UPDATE_DRIVER(higemaru_state, screen_update_higemaru)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", higemaru)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", higemaru)
MCFG_PALETTE_ADD("palette", 32*4+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
diff --git a/src/mame/drivers/himesiki.c b/src/mame/drivers/himesiki.c
index 98492fc6fb4..32d6afb57ff 100644
--- a/src/mame/drivers/himesiki.c
+++ b/src/mame/drivers/himesiki.c
@@ -306,7 +306,7 @@ static MACHINE_CONFIG_START( himesiki, himesiki_state )
MCFG_SCREEN_UPDATE_DRIVER(himesiki_state, screen_update_himesiki)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", himesiki)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", himesiki)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
diff --git a/src/mame/drivers/hitme.c b/src/mame/drivers/hitme.c
index 10ec205def3..9d117f158b1 100644
--- a/src/mame/drivers/hitme.c
+++ b/src/mame/drivers/hitme.c
@@ -323,7 +323,7 @@ static MACHINE_CONFIG_START( hitme, hitme_state )
MCFG_SCREEN_UPDATE_DRIVER(hitme_state, screen_update_hitme)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", hitme)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hitme)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
diff --git a/src/mame/drivers/hitpoker.c b/src/mame/drivers/hitpoker.c
index 2062410c317..5007d87f091 100644
--- a/src/mame/drivers/hitpoker.c
+++ b/src/mame/drivers/hitpoker.c
@@ -513,7 +513,7 @@ static MACHINE_CONFIG_START( hitpoker, hitpoker_state )
MCFG_MC6845_ADD("crtc", H46505, "screen", CRTC_CLOCK/2, mc6845_intf) /* hand tuned to get ~60 fps */
- MCFG_GFXDECODE_ADD("gfxdecode", hitpoker)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hitpoker)
MCFG_PALETTE_ADD("palette", 0x800)
diff --git a/src/mame/drivers/hng64.c b/src/mame/drivers/hng64.c
index 39ad8429017..fbb27e4d3e6 100644
--- a/src/mame/drivers/hng64.c
+++ b/src/mame/drivers/hng64.c
@@ -1958,7 +1958,7 @@ static MACHINE_CONFIG_START( hng64, hng64_state )
MCFG_DEVICE_ADD("rtc", MSM6242, XTAL_32_768kHz)
- MCFG_GFXDECODE_ADD("gfxdecode", hng64)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hng64)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART)
diff --git a/src/mame/drivers/holeland.c b/src/mame/drivers/holeland.c
index 5bdeefbd8b3..003f524efb9 100644
--- a/src/mame/drivers/holeland.c
+++ b/src/mame/drivers/holeland.c
@@ -291,7 +291,7 @@ static MACHINE_CONFIG_START( holeland, holeland_state )
MCFG_SCREEN_UPDATE_DRIVER(holeland_state, screen_update_holeland)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", holeland)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", holeland)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
MCFG_VIDEO_START_OVERRIDE(holeland_state,holeland)
@@ -360,7 +360,7 @@ static MACHINE_CONFIG_START( crzrally, holeland_state )
MCFG_SCREEN_UPDATE_DRIVER(holeland_state, screen_update_crzrally)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", crzrally)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", crzrally)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
MCFG_VIDEO_START_OVERRIDE(holeland_state,crzrally)
diff --git a/src/mame/drivers/homedata.c b/src/mame/drivers/homedata.c
index b62211c5107..804ad7dd814 100644
--- a/src/mame/drivers/homedata.c
+++ b/src/mame/drivers/homedata.c
@@ -1241,7 +1241,7 @@ static MACHINE_CONFIG_START( mrokumei, homedata_state )
MCFG_SCREEN_VBLANK_DRIVER(homedata_state, screen_eof_homedata)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mrokumei)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mrokumei)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(homedata_state,mrokumei)
@@ -1299,7 +1299,7 @@ static MACHINE_CONFIG_START( reikaids, homedata_state )
MCFG_SCREEN_VBLANK_DRIVER(homedata_state, screen_eof_homedata)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", reikaids)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", reikaids)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(homedata_state,reikaids)
@@ -1350,7 +1350,7 @@ static MACHINE_CONFIG_START( pteacher, homedata_state )
MCFG_SCREEN_VBLANK_DRIVER(homedata_state, screen_eof_homedata)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", pteacher)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", pteacher)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(homedata_state,pteacher)
@@ -1513,7 +1513,7 @@ static MACHINE_CONFIG_START( mirderby, homedata_state )
MCFG_SCREEN_UPDATE_DRIVER(homedata_state, screen_update_mirderby)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mirderby)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mirderby)
MCFG_PALETTE_ADD("palette", 0x8000)
MCFG_PALETTE_INIT_OWNER(homedata_state,mirderby)
diff --git a/src/mame/drivers/homerun.c b/src/mame/drivers/homerun.c
index 64059908775..ce5cc850241 100644
--- a/src/mame/drivers/homerun.c
+++ b/src/mame/drivers/homerun.c
@@ -390,7 +390,7 @@ static MACHINE_CONFIG_START( dynashot, homerun_state )
MCFG_SCREEN_UPDATE_DRIVER(homerun_state, screen_update_homerun)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", homerun)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", homerun)
MCFG_PALETTE_ADD("palette", 16*4)
/* sound hardware */
diff --git a/src/mame/drivers/hornet.c b/src/mame/drivers/hornet.c
index a87ce4a85ac..759eff2130b 100644
--- a/src/mame/drivers/hornet.c
+++ b/src/mame/drivers/hornet.c
@@ -1001,7 +1001,7 @@ static MACHINE_CONFIG_START( hornet, hornet_state )
MCFG_PALETTE_ADD("palette", 65536)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K037122_ADD("k037122_1", "screen", 0)
MCFG_K037122_GFXDECODE("gfxdecode")
diff --git a/src/mame/drivers/hvyunit.c b/src/mame/drivers/hvyunit.c
index c945ba7b953..5ed1dcc67ae 100644
--- a/src/mame/drivers/hvyunit.c
+++ b/src/mame/drivers/hvyunit.c
@@ -670,7 +670,7 @@ static MACHINE_CONFIG_START( hvyunit, hvyunit_state )
MCFG_SCREEN_VBLANK_DRIVER(hvyunit_state, screen_eof_hvyunit)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", hvyunit)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hvyunit)
MCFG_PALETTE_ADD("palette", 0x800)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
diff --git a/src/mame/drivers/hyperspt.c b/src/mame/drivers/hyperspt.c
index 8e590bb07ad..f7f0d408189 100644
--- a/src/mame/drivers/hyperspt.c
+++ b/src/mame/drivers/hyperspt.c
@@ -308,7 +308,7 @@ static MACHINE_CONFIG_START( hyperspt, hyperspt_state )
MCFG_SCREEN_UPDATE_DRIVER(hyperspt_state, screen_update_hyperspt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", hyperspt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", hyperspt)
MCFG_PALETTE_ADD("palette", 16*16+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(hyperspt_state, hyperspt)
diff --git a/src/mame/drivers/hyprduel.c b/src/mame/drivers/hyprduel.c
index 5fb4247db8d..559e23165e2 100644
--- a/src/mame/drivers/hyprduel.c
+++ b/src/mame/drivers/hyprduel.c
@@ -662,7 +662,7 @@ static MACHINE_CONFIG_START( hyprduel, hyprduel_state )
MCFG_SCREEN_UPDATE_DRIVER(hyprduel_state, screen_update_hyprduel)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 14220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 14220)
MCFG_PALETTE_ADD("palette", 8192)
MCFG_VIDEO_START_OVERRIDE(hyprduel_state,hyprduel_14220)
@@ -703,7 +703,7 @@ static MACHINE_CONFIG_START( magerror, hyprduel_state )
MCFG_SCREEN_UPDATE_DRIVER(hyprduel_state, screen_update_hyprduel)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 14220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 14220)
MCFG_PALETTE_ADD("palette", 8192)
MCFG_VIDEO_START_OVERRIDE(hyprduel_state,magerror_14220)
diff --git a/src/mame/drivers/ichiban.c b/src/mame/drivers/ichiban.c
index 7bd3eeb74e1..b4ac2a072ac 100644
--- a/src/mame/drivers/ichiban.c
+++ b/src/mame/drivers/ichiban.c
@@ -129,7 +129,7 @@ static MACHINE_CONFIG_START( ichibanjyan, ichibanjyan_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ichibanjyan)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ichibanjyan)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 512)
diff --git a/src/mame/drivers/igs009.c b/src/mame/drivers/igs009.c
index 701f76a3f2e..6f6407fe515 100644
--- a/src/mame/drivers/igs009.c
+++ b/src/mame/drivers/igs009.c
@@ -759,7 +759,7 @@ static MACHINE_CONFIG_START( jingbell, igs009_state )
MCFG_SCREEN_UPDATE_DRIVER(igs009_state, screen_update_jingbell)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", jingbell)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jingbell)
MCFG_PALETTE_ADD("palette", 0x400)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/igs011.c b/src/mame/drivers/igs011.c
index 225a3f742a8..7baecd4c273 100644
--- a/src/mame/drivers/igs011.c
+++ b/src/mame/drivers/igs011.c
@@ -3939,7 +3939,7 @@ static MACHINE_CONFIG_START( igs011_base, igs011_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_PALETTE_ADD("palette", 0x800)
-// MCFG_GFXDECODE_ADD("gfxdecode", igs011)
+// MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs011)
/* sound hardware */
@@ -4032,7 +4032,7 @@ static MACHINE_CONFIG_DERIVED( lhb2, igs011_base )
MCFG_CPU_VBLANK_INT_DRIVER("screen", igs011_state, irq6_line_hold)
MCFG_TIMER_ADD_PERIODIC("timer_irq", lev5_timer_irq_cb, attotime::from_hz(240)) // lev5 frequency drives the music tempo
-// MCFG_GFXDECODE_ADD("gfxdecode", igs011_hi)
+// MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs011_hi)
MCFG_SOUND_ADD("ymsnd", YM2413, XTAL_3_579545MHz)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0)
@@ -4048,7 +4048,7 @@ static MACHINE_CONFIG_DERIVED( nkishusp, igs011_base )
// VSync 60.0052Hz, HSync 15.620kHz
-// MCFG_GFXDECODE_ADD("gfxdecode", igs011_hi)
+// MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs011_hi)
MCFG_SOUND_ADD("ymsnd", YM2413, XTAL_3_579545MHz)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0)
@@ -4071,7 +4071,7 @@ static MACHINE_CONFIG_DERIVED( vbowl, igs011_base )
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_VBLANK_DRIVER(igs011_state, screen_eof_vbowl)
-// MCFG_GFXDECODE_ADD("gfxdecode", igs011_hi)
+// MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs011_hi)
MCFG_DEVICE_REMOVE("oki")
MCFG_ICS2115_ADD("ics", 0, sound_irq)
diff --git a/src/mame/drivers/igs017.c b/src/mame/drivers/igs017.c
index 381748c6b58..361a7581ee8 100644
--- a/src/mame/drivers/igs017.c
+++ b/src/mame/drivers/igs017.c
@@ -3496,7 +3496,7 @@ static MACHINE_CONFIG_START( iqblocka, igs017_state )
MCFG_SCREEN_UPDATE_DRIVER(igs017_state, screen_update_igs017)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igs017)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs017)
MCFG_PALETTE_ADD("palette", 0x100*2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -3562,7 +3562,7 @@ static MACHINE_CONFIG_START( mgcs, igs017_state )
MCFG_SCREEN_UPDATE_DRIVER(igs017_state, screen_update_igs017)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igs017_flipped)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs017_flipped)
MCFG_PALETTE_ADD("palette", 0x100*2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -3605,7 +3605,7 @@ static MACHINE_CONFIG_START( lhzb2, igs017_state )
MCFG_SCREEN_UPDATE_DRIVER(igs017_state, screen_update_igs017)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igs017_swapped)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs017_swapped)
MCFG_PALETTE_ADD("palette", 0x100*2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -3650,7 +3650,7 @@ static MACHINE_CONFIG_START( lhzb2a, igs017_state )
MCFG_SCREEN_UPDATE_DRIVER(igs017_state, screen_update_igs017)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igs017_swapped)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs017_swapped)
MCFG_PALETTE_ADD("palette", 0x100*2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -3683,7 +3683,7 @@ static MACHINE_CONFIG_START( slqz2, igs017_state )
MCFG_SCREEN_UPDATE_DRIVER(igs017_state, screen_update_igs017)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igs017)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs017)
MCFG_PALETTE_ADD("palette", 0x100*2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -3731,7 +3731,7 @@ static MACHINE_CONFIG_START( sdmg2, igs017_state )
MCFG_SCREEN_UPDATE_DRIVER(igs017_state, screen_update_igs017)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igs017)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs017)
MCFG_PALETTE_ADD("palette", 0x100*2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -3784,7 +3784,7 @@ static MACHINE_CONFIG_START( mgdha, igs017_state )
MCFG_SCREEN_UPDATE_DRIVER(igs017_state, screen_update_igs017)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igs017_swapped)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs017_swapped)
MCFG_PALETTE_ADD("palette", 0x100*2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -3817,7 +3817,7 @@ static MACHINE_CONFIG_START( tjsb, igs017_state )
MCFG_SCREEN_UPDATE_DRIVER(igs017_state, screen_update_igs017)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igs017)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs017)
MCFG_PALETTE_ADD("palette", 0x100*2)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
@@ -3853,7 +3853,7 @@ static MACHINE_CONFIG_START( spkrform, igs017_state )
MCFG_SCREEN_UPDATE_DRIVER(igs017_state, screen_update_igs017)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igs017)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs017)
MCFG_PALETTE_ADD("palette", 0x100*2)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/igs_m027.c b/src/mame/drivers/igs_m027.c
index 7ae4f0c7abb..e7a8f16d041 100644
--- a/src/mame/drivers/igs_m027.c
+++ b/src/mame/drivers/igs_m027.c
@@ -405,7 +405,7 @@ static MACHINE_CONFIG_START( igs_majhong, igs_m027_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", igs_m027_state, igs_majhong_interrupt)
//MCFG_NVRAM_ADD_0FILL("nvram")
- MCFG_GFXDECODE_ADD("gfxdecode", igs_m027)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs_m027)
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/igspoker.c b/src/mame/drivers/igspoker.c
index 93463ef094e..e494ba8c0a9 100644
--- a/src/mame/drivers/igspoker.c
+++ b/src/mame/drivers/igspoker.c
@@ -1789,7 +1789,7 @@ static MACHINE_CONFIG_START( igspoker, igspoker_state )
MCFG_SCREEN_UPDATE_DRIVER(igspoker_state, screen_update_igs_video)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", igspoker)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", igspoker)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/ikki.c b/src/mame/drivers/ikki.c
index 2b49156b200..3d2d8670335 100644
--- a/src/mame/drivers/ikki.c
+++ b/src/mame/drivers/ikki.c
@@ -258,7 +258,7 @@ static MACHINE_CONFIG_START( ikki, ikki_state )
MCFG_SCREEN_UPDATE_DRIVER(ikki_state, screen_update_ikki)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ikki)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ikki)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INDIRECT_ENTRIES(256+1)
MCFG_PALETTE_INIT_OWNER(ikki_state, ikki)
diff --git a/src/mame/drivers/intrscti.c b/src/mame/drivers/intrscti.c
index e6b8542995d..2109a6a25f5 100644
--- a/src/mame/drivers/intrscti.c
+++ b/src/mame/drivers/intrscti.c
@@ -194,7 +194,7 @@ static MACHINE_CONFIG_START( intrscti, intrscti_state )
MCFG_SCREEN_UPDATE_DRIVER(intrscti_state, screen_update_intrscti)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", intrscti)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", intrscti)
MCFG_PALETTE_ADD("palette", 0x100)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/inufuku.c b/src/mame/drivers/inufuku.c
index 68e95e61629..e9f7c4ff33e 100644
--- a/src/mame/drivers/inufuku.c
+++ b/src/mame/drivers/inufuku.c
@@ -395,7 +395,7 @@ static MACHINE_CONFIG_START( inufuku, inufuku_state )
MCFG_VSYSTEM_SPR_GFXDECODE("gfxdecode")
MCFG_VSYSTEM_SPR_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", inufuku)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", inufuku)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_FORMAT(xGGGGGBBBBBRRRRR)
diff --git a/src/mame/drivers/iqblock.c b/src/mame/drivers/iqblock.c
index 4590366d40f..c5fb56f50c6 100644
--- a/src/mame/drivers/iqblock.c
+++ b/src/mame/drivers/iqblock.c
@@ -289,7 +289,7 @@ static MACHINE_CONFIG_START( iqblock, iqblock_state )
MCFG_SCREEN_UPDATE_DRIVER(iqblock_state, screen_update_iqblock)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", iqblock)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", iqblock)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/irobot.c b/src/mame/drivers/irobot.c
index 62e6b7dfc13..7f9732a1403 100644
--- a/src/mame/drivers/irobot.c
+++ b/src/mame/drivers/irobot.c
@@ -327,7 +327,7 @@ static MACHINE_CONFIG_START( irobot, irobot_state )
MCFG_SCREEN_UPDATE_DRIVER(irobot_state, screen_update_irobot)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", irobot)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", irobot)
MCFG_PALETTE_ADD("palette", 64 + 32) /* 64 for polygons, 32 for text */
MCFG_PALETTE_INIT_OWNER(irobot_state, irobot)
diff --git a/src/mame/drivers/ironhors.c b/src/mame/drivers/ironhors.c
index 45cdba1fc44..88cf82e1ab9 100644
--- a/src/mame/drivers/ironhors.c
+++ b/src/mame/drivers/ironhors.c
@@ -386,7 +386,7 @@ static MACHINE_CONFIG_START( ironhors, ironhors_state )
MCFG_SCREEN_UPDATE_DRIVER(ironhors_state, screen_update_ironhors)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ironhors)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ironhors)
MCFG_PALETTE_ADD("palette", 16*8*16+16*8*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(ironhors_state, ironhors)
diff --git a/src/mame/drivers/istellar.c b/src/mame/drivers/istellar.c
index 88fee59eeaa..45261a2dfe9 100644
--- a/src/mame/drivers/istellar.c
+++ b/src/mame/drivers/istellar.c
@@ -363,7 +363,7 @@ static MACHINE_CONFIG_START( istellar, istellar_state )
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(istellar_state, istellar)
- MCFG_GFXDECODE_ADD("gfxdecode", istellar)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", istellar)
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
diff --git a/src/mame/drivers/itgambl2.c b/src/mame/drivers/itgambl2.c
index a93da04d317..32750696653 100644
--- a/src/mame/drivers/itgambl2.c
+++ b/src/mame/drivers/itgambl2.c
@@ -280,7 +280,7 @@ static MACHINE_CONFIG_START( itgambl2, itgambl2_state )
MCFG_SCREEN_UPDATE_DRIVER(itgambl2_state, screen_update_itgambl2)
- MCFG_GFXDECODE_ADD("gfxdecode", itgambl2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", itgambl2)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_PALETTE_INIT_OWNER(itgambl2_state, itgambl2)
diff --git a/src/mame/drivers/itgambl3.c b/src/mame/drivers/itgambl3.c
index 86269dd5f72..d1728d52fe6 100644
--- a/src/mame/drivers/itgambl3.c
+++ b/src/mame/drivers/itgambl3.c
@@ -269,7 +269,7 @@ static MACHINE_CONFIG_START( itgambl3, itgambl3_state )
MCFG_SCREEN_UPDATE_DRIVER(itgambl3_state, screen_update_itgambl3)
- MCFG_GFXDECODE_ADD("gfxdecode", itgambl3)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", itgambl3)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_PALETTE_INIT_OWNER(itgambl3_state, itgambl3)
diff --git a/src/mame/drivers/itgamble.c b/src/mame/drivers/itgamble.c
index a1d9b399283..d272310b192 100644
--- a/src/mame/drivers/itgamble.c
+++ b/src/mame/drivers/itgamble.c
@@ -219,7 +219,7 @@ static MACHINE_CONFIG_START( itgamble, itgamble_state )
MCFG_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", itgamble)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", itgamble)
MCFG_PALETTE_ADD("palette", 0x200)
/* sound hardware */
diff --git a/src/mame/drivers/jack.c b/src/mame/drivers/jack.c
index 1fcb6c6da9a..90aa33e1483 100644
--- a/src/mame/drivers/jack.c
+++ b/src/mame/drivers/jack.c
@@ -923,7 +923,7 @@ static MACHINE_CONFIG_START( jack, jack_state )
MCFG_SCREEN_UPDATE_DRIVER(jack_state, screen_update_jack)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", jack)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jack)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_FORMAT(BBGGGRRR)
diff --git a/src/mame/drivers/jackal.c b/src/mame/drivers/jackal.c
index 02fe45d4ce1..4782d983f5e 100644
--- a/src/mame/drivers/jackal.c
+++ b/src/mame/drivers/jackal.c
@@ -369,7 +369,7 @@ static MACHINE_CONFIG_START( jackal, jackal_state )
MCFG_SCREEN_UPDATE_DRIVER(jackal_state, screen_update_jackal)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", jackal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jackal)
MCFG_PALETTE_ADD("palette", 0x300)
MCFG_PALETTE_INDIRECT_ENTRIES(0x200)
MCFG_PALETTE_INIT_OWNER(jackal_state, jackal)
diff --git a/src/mame/drivers/jackie.c b/src/mame/drivers/jackie.c
index 7dc1b79ea9c..1f2ad39ea1b 100644
--- a/src/mame/drivers/jackie.c
+++ b/src/mame/drivers/jackie.c
@@ -595,7 +595,7 @@ static MACHINE_CONFIG_START( jackie, jackie_state )
MCFG_SCREEN_UPDATE_DRIVER(jackie_state, screen_update_jackie)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", jackie)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jackie)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/jackpool.c b/src/mame/drivers/jackpool.c
index cfd2c39acb4..f6766fe2333 100644
--- a/src/mame/drivers/jackpool.c
+++ b/src/mame/drivers/jackpool.c
@@ -270,7 +270,7 @@ static MACHINE_CONFIG_START( jackpool, jackpool_state )
MCFG_CPU_PROGRAM_MAP(jackpool_mem)
MCFG_CPU_VBLANK_INT_DRIVER("screen", jackpool_state, jackpool_interrupt) // ?
- MCFG_GFXDECODE_ADD("gfxdecode", jackpool)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jackpool)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/jailbrek.c b/src/mame/drivers/jailbrek.c
index b9a4c4ebe53..3b3fddac155 100644
--- a/src/mame/drivers/jailbrek.c
+++ b/src/mame/drivers/jailbrek.c
@@ -251,7 +251,7 @@ static MACHINE_CONFIG_START( jailbrek, jailbrek_state )
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", jailbrek)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jailbrek)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(jailbrek_state, jailbrek)
diff --git a/src/mame/drivers/jalmah.c b/src/mame/drivers/jalmah.c
index 9446184c620..4a0d5805b87 100644
--- a/src/mame/drivers/jalmah.c
+++ b/src/mame/drivers/jalmah.c
@@ -1414,7 +1414,7 @@ static MACHINE_CONFIG_START( jalmah, jalmah_state )
//M50747 MCU
- MCFG_GFXDECODE_ADD("gfxdecode", jalmah)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jalmah)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
diff --git a/src/mame/drivers/jchan.c b/src/mame/drivers/jchan.c
index 3bf525293bd..788d8cc332b 100644
--- a/src/mame/drivers/jchan.c
+++ b/src/mame/drivers/jchan.c
@@ -590,7 +590,7 @@ static MACHINE_CONFIG_START( jchan, jchan_state )
MCFG_CPU_ADD("sub", M68000, 16000000)
MCFG_CPU_PROGRAM_MAP(jchan_sub)
- MCFG_GFXDECODE_ADD("gfxdecode", jchan)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jchan)
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/jclub2.c b/src/mame/drivers/jclub2.c
index 0ea1cfa9db5..301bbd53298 100644
--- a/src/mame/drivers/jclub2.c
+++ b/src/mame/drivers/jclub2.c
@@ -693,7 +693,7 @@ static MACHINE_CONFIG_START( darkhors, darkhors_state )
MCFG_SCREEN_UPDATE_DRIVER(darkhors_state, screen_update_darkhors)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", darkhors)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", darkhors)
MCFG_PALETTE_ADD("palette", 0x10000)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -736,7 +736,7 @@ static MACHINE_CONFIG_START( jclub2, darkhors_state )
MCFG_SCREEN_UPDATE_DRIVER(darkhors_state, screen_update_jclub2)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
// NOT an ST0020 but instead ST0032, ram format isn't compatible at least
MCFG_DEVICE_ADD("st0020_spr", ST0020_SPRITES, 0)
@@ -811,7 +811,7 @@ static MACHINE_CONFIG_START( jclub2o, darkhors_state )
MCFG_PALETTE_ADD("palette", 0x10000)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_DEVICE_ADD("st0020_spr", ST0020_SPRITES, 0)
st0020_device::set_is_jclub2o(*device, 1);
diff --git a/src/mame/drivers/jokrwild.c b/src/mame/drivers/jokrwild.c
index 666c3f678f1..5e345780bd5 100644
--- a/src/mame/drivers/jokrwild.c
+++ b/src/mame/drivers/jokrwild.c
@@ -475,7 +475,7 @@ static MACHINE_CONFIG_START( jokrwild, jokrwild_state )
MCFG_SCREEN_UPDATE_DRIVER(jokrwild_state, screen_update_jokrwild)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", jokrwild)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jokrwild)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(jokrwild_state, jokrwild)
diff --git a/src/mame/drivers/jollyjgr.c b/src/mame/drivers/jollyjgr.c
index 383cb9e110e..639850652c4 100644
--- a/src/mame/drivers/jollyjgr.c
+++ b/src/mame/drivers/jollyjgr.c
@@ -667,7 +667,7 @@ static MACHINE_CONFIG_START( jollyjgr, jollyjgr_state )
MCFG_SCREEN_UPDATE_DRIVER(jollyjgr_state, screen_update_jollyjgr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", jollyjgr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jollyjgr)
MCFG_PALETTE_ADD("palette", 32+8) /* 32 for tilemap and sprites + 8 for the bitmap */
MCFG_PALETTE_INIT_OWNER(jollyjgr_state, jollyjgr)
diff --git a/src/mame/drivers/jrpacman.c b/src/mame/drivers/jrpacman.c
index 172e71294b6..6be11e631f6 100644
--- a/src/mame/drivers/jrpacman.c
+++ b/src/mame/drivers/jrpacman.c
@@ -301,7 +301,7 @@ static MACHINE_CONFIG_START( jrpacman, jrpacman_state )
MCFG_SCREEN_UPDATE_DRIVER(jrpacman_state, screen_update_pacman)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", jrpacman)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jrpacman)
MCFG_PALETTE_ADD("palette", 128*4)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(jrpacman_state,pacman)
diff --git a/src/mame/drivers/jubilee.c b/src/mame/drivers/jubilee.c
index 0d138f42519..a2d94356eee 100644
--- a/src/mame/drivers/jubilee.c
+++ b/src/mame/drivers/jubilee.c
@@ -699,7 +699,7 @@ static MACHINE_CONFIG_START( jubileep, jubilee_state )
MCFG_SCREEN_UPDATE_DRIVER(jubilee_state, screen_update_jubileep)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", jubileep)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", jubileep)
MCFG_PALETTE_ADD("palette",8)
MCFG_MC6845_ADD("crtc", MC6845, "screen", CRTC_CLOCK, mc6845_intf)
diff --git a/src/mame/drivers/kaneko16.c b/src/mame/drivers/kaneko16.c
index 1c77717f74e..8e938427cea 100644
--- a/src/mame/drivers/kaneko16.c
+++ b/src/mame/drivers/kaneko16.c
@@ -1632,7 +1632,7 @@ static MACHINE_CONFIG_START( berlwall, kaneko16_berlwall_state )
MCFG_SCREEN_UPDATE_DRIVER(kaneko16_berlwall_state, screen_update_berlwall)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 1x4bit_1x4bit)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1x4bit_1x4bit)
MCFG_PALETTE_ADD("palette", 2048 + 32768) /* 32768 static colors for the bg */
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
MCFG_PALETTE_INIT_OWNER(kaneko16_berlwall_state,berlwall)
@@ -1688,7 +1688,7 @@ static MACHINE_CONFIG_START( bakubrkr, kaneko16_state )
MCFG_SCREEN_UPDATE_DRIVER(kaneko16_berlwall_state, screen_update_kaneko16)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 1x4bit_2x4bit)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1x4bit_2x4bit)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
@@ -1761,7 +1761,7 @@ static MACHINE_CONFIG_START( blazeon, kaneko16_state )
MCFG_SCREEN_UPDATE_DRIVER(kaneko16_berlwall_state, screen_update_kaneko16)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 1x4bit_1x4bit)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1x4bit_1x4bit)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
@@ -1824,7 +1824,7 @@ static MACHINE_CONFIG_START( gtmr, kaneko16_gtmr_state )
MCFG_SCREEN_UPDATE_DRIVER(kaneko16_berlwall_state, screen_update_kaneko16)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 1x8bit_2x4bit)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1x8bit_2x4bit)
MCFG_PALETTE_ADD("palette", 32768)
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
@@ -1946,7 +1946,7 @@ static MACHINE_CONFIG_START( mgcrystl, kaneko16_state )
MCFG_SCREEN_UPDATE_DRIVER(kaneko16_berlwall_state, screen_update_kaneko16)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", 1x4bit_2x4bit)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1x4bit_2x4bit)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
@@ -2074,7 +2074,7 @@ static MACHINE_CONFIG_START( shogwarr, kaneko16_shogwarr_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK)
- MCFG_GFXDECODE_ADD("gfxdecode", 1x4bit_1x4bit)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1x4bit_1x4bit)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
diff --git a/src/mame/drivers/karnov.c b/src/mame/drivers/karnov.c
index 7636213ce4e..a2db7407453 100644
--- a/src/mame/drivers/karnov.c
+++ b/src/mame/drivers/karnov.c
@@ -803,7 +803,7 @@ static MACHINE_CONFIG_START( karnov, karnov_state )
MCFG_SCREEN_UPDATE_DRIVER(karnov_state, screen_update_karnov)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", karnov)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", karnov)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INIT_OWNER(karnov_state, karnov)
@@ -848,7 +848,7 @@ static MACHINE_CONFIG_START( wndrplnt, karnov_state )
MCFG_SCREEN_UPDATE_DRIVER(karnov_state, screen_update_karnov)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", karnov)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", karnov)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INIT_OWNER(karnov_state, karnov)
diff --git a/src/mame/drivers/kchamp.c b/src/mame/drivers/kchamp.c
index 02876bc205c..6d6045ec7bc 100644
--- a/src/mame/drivers/kchamp.c
+++ b/src/mame/drivers/kchamp.c
@@ -422,7 +422,7 @@ static MACHINE_CONFIG_START( kchampvs, kchamp_state )
MCFG_SCREEN_UPDATE_DRIVER(kchamp_state, screen_update_kchampvs)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", kchamp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", kchamp)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(kchamp_state, kchamp)
@@ -471,7 +471,7 @@ static MACHINE_CONFIG_START( kchamp, kchamp_state )
MCFG_SCREEN_UPDATE_DRIVER(kchamp_state, screen_update_kchamp)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", kchamp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", kchamp)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(kchamp_state, kchamp)
diff --git a/src/mame/drivers/kickgoal.c b/src/mame/drivers/kickgoal.c
index c958e332e86..6672a10235c 100644
--- a/src/mame/drivers/kickgoal.c
+++ b/src/mame/drivers/kickgoal.c
@@ -661,7 +661,7 @@ static MACHINE_CONFIG_START( kickgoal, kickgoal_state )
MCFG_SCREEN_UPDATE_DRIVER(kickgoal_state, screen_update_kickgoal)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", kickgoal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", kickgoal)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -698,7 +698,7 @@ static MACHINE_CONFIG_START( actionhw, kickgoal_state )
MCFG_SCREEN_UPDATE_DRIVER(kickgoal_state, screen_update_kickgoal)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", actionhw)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", actionhw)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/kingdrby.c b/src/mame/drivers/kingdrby.c
index 8ea468d8fb2..79cda0299dd 100644
--- a/src/mame/drivers/kingdrby.c
+++ b/src/mame/drivers/kingdrby.c
@@ -1040,7 +1040,7 @@ static MACHINE_CONFIG_START( kingdrby, kingdrby_state )
MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
- MCFG_GFXDECODE_ADD("gfxdecode", kingdrby)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", kingdrby)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_PALETTE_INIT_OWNER(kingdrby_state,kingdrby)
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/kingobox.c b/src/mame/drivers/kingobox.c
index cbe054fd591..10de29ec076 100644
--- a/src/mame/drivers/kingobox.c
+++ b/src/mame/drivers/kingobox.c
@@ -492,7 +492,7 @@ static MACHINE_CONFIG_START( kingofb, kingofb_state )
MCFG_SCREEN_UPDATE_DRIVER(kingofb_state, screen_update_kingofb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", kingobox)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", kingobox)
MCFG_PALETTE_ADD("palette", 256+8*2)
MCFG_PALETTE_INDIRECT_ENTRIES(256+8)
MCFG_PALETTE_INIT_OWNER(kingofb_state,kingofb)
@@ -543,7 +543,7 @@ static MACHINE_CONFIG_START( ringking, kingofb_state )
MCFG_SCREEN_UPDATE_DRIVER(kingofb_state, screen_update_ringking)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", rk)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rk)
MCFG_PALETTE_ADD("palette", 256+8*2)
MCFG_PALETTE_INDIRECT_ENTRIES(256+8)
MCFG_PALETTE_INIT_OWNER(kingofb_state,ringking)
diff --git a/src/mame/drivers/klax.c b/src/mame/drivers/klax.c
index 9cd4f220f93..4e99777df84 100644
--- a/src/mame/drivers/klax.c
+++ b/src/mame/drivers/klax.c
@@ -168,7 +168,7 @@ static MACHINE_CONFIG_START( klax, klax_state )
MCFG_ATARI_EEPROM_2816_ADD("eeprom")
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", klax)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", klax)
MCFG_PALETTE_ADD("palette", 512)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, klax_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,32)
diff --git a/src/mame/drivers/kncljoe.c b/src/mame/drivers/kncljoe.c
index 54a9571d05a..75e0ddb3005 100644
--- a/src/mame/drivers/kncljoe.c
+++ b/src/mame/drivers/kncljoe.c
@@ -285,7 +285,7 @@ static MACHINE_CONFIG_START( kncljoe, kncljoe_state )
MCFG_SCREEN_UPDATE_DRIVER(kncljoe_state, screen_update_kncljoe)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", kncljoe)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", kncljoe)
MCFG_PALETTE_ADD("palette", 16*8+16*8)
MCFG_PALETTE_INDIRECT_ENTRIES(128+16)
MCFG_PALETTE_INIT_OWNER(kncljoe_state, kncljoe)
diff --git a/src/mame/drivers/koftball.c b/src/mame/drivers/koftball.c
index ebb2c75dd90..f4ef0fc7d66 100644
--- a/src/mame/drivers/koftball.c
+++ b/src/mame/drivers/koftball.c
@@ -257,7 +257,7 @@ static MACHINE_CONFIG_START( koftball, koftball_state )
MCFG_PALETTE_ADD("palette", 256)
- MCFG_GFXDECODE_ADD("gfxdecode", koftball)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", koftball)
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
diff --git a/src/mame/drivers/koikoi.c b/src/mame/drivers/koikoi.c
index e5d7f8ff6a5..7d2f4ef2ff1 100644
--- a/src/mame/drivers/koikoi.c
+++ b/src/mame/drivers/koikoi.c
@@ -376,7 +376,7 @@ static MACHINE_CONFIG_START( koikoi, koikoi_state )
MCFG_SCREEN_UPDATE_DRIVER(koikoi_state, screen_update_koikoi)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", koikoi)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", koikoi)
MCFG_PALETTE_ADD("palette", 8*32)
MCFG_PALETTE_INDIRECT_ENTRIES(16)
MCFG_PALETTE_INIT_OWNER(koikoi_state, koikoi)
diff --git a/src/mame/drivers/konamigx.c b/src/mame/drivers/konamigx.c
index 8d8461399d1..73240f378bd 100644
--- a/src/mame/drivers/konamigx.c
+++ b/src/mame/drivers/konamigx.c
@@ -1642,7 +1642,7 @@ static MACHINE_CONFIG_START( konamigx, konamigx_state )
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K056832_ADD_NOINTF("k056832"/*, konamigx_k056832_intf*/)
MCFG_K056832_GFXDECODE("gfxdecode")
MCFG_K056832_PALETTE("palette")
diff --git a/src/mame/drivers/kopunch.c b/src/mame/drivers/kopunch.c
index 3f524628a9f..89bc93df499 100644
--- a/src/mame/drivers/kopunch.c
+++ b/src/mame/drivers/kopunch.c
@@ -195,7 +195,7 @@ static MACHINE_CONFIG_START( kopunch, kopunch_state )
MCFG_SCREEN_UPDATE_DRIVER(kopunch_state, screen_update_kopunch)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", kopunch)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", kopunch)
MCFG_PALETTE_ADD("palette", 8)
MCFG_PALETTE_INIT_OWNER(kopunch_state, kopunch)
diff --git a/src/mame/drivers/ksayakyu.c b/src/mame/drivers/ksayakyu.c
index dc0379edc71..abc22dc6a77 100644
--- a/src/mame/drivers/ksayakyu.c
+++ b/src/mame/drivers/ksayakyu.c
@@ -288,7 +288,7 @@ static MACHINE_CONFIG_START( ksayakyu, ksayakyu_state )
MCFG_SCREEN_UPDATE_DRIVER(ksayakyu_state, screen_update_ksayakyu)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ksayakyu)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ksayakyu)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(ksayakyu_state, ksayakyu)
diff --git a/src/mame/drivers/kyugo.c b/src/mame/drivers/kyugo.c
index a6fec2986b1..cbc21f757b1 100644
--- a/src/mame/drivers/kyugo.c
+++ b/src/mame/drivers/kyugo.c
@@ -548,7 +548,7 @@ static MACHINE_CONFIG_START( gyrodine, kyugo_state )
MCFG_SCREEN_UPDATE_DRIVER(kyugo_state, screen_update_kyugo)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", kyugo)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", kyugo)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
/* sound hardware */
diff --git a/src/mame/drivers/labyrunr.c b/src/mame/drivers/labyrunr.c
index f688fbdce3a..3bd6a52208d 100644
--- a/src/mame/drivers/labyrunr.c
+++ b/src/mame/drivers/labyrunr.c
@@ -200,7 +200,7 @@ static MACHINE_CONFIG_START( labyrunr, labyrunr_state )
MCFG_SCREEN_UPDATE_DRIVER(labyrunr_state, screen_update_labyrunr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", labyrunr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", labyrunr)
MCFG_PALETTE_ADD("palette", 2*8*16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(128)
MCFG_PALETTE_INIT_OWNER(labyrunr_state, labyrunr)
diff --git a/src/mame/drivers/ladybug.c b/src/mame/drivers/ladybug.c
index 43d34d4c0d0..0736560db11 100644
--- a/src/mame/drivers/ladybug.c
+++ b/src/mame/drivers/ladybug.c
@@ -767,7 +767,7 @@ static MACHINE_CONFIG_START( ladybug, ladybug_state )
MCFG_SCREEN_UPDATE_DRIVER(ladybug_state, screen_update_ladybug)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ladybug)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ladybug)
MCFG_PALETTE_ADD("palette", 4*8+4*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(ladybug_state,ladybug)
@@ -810,7 +810,7 @@ static MACHINE_CONFIG_START( sraider, ladybug_state )
MCFG_SCREEN_VBLANK_DRIVER(ladybug_state, screen_eof_sraider)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", sraider)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", sraider)
MCFG_PALETTE_ADD("palette", 4*8+4*16+32+2)
MCFG_PALETTE_INDIRECT_ENTRIES(32+32+1)
MCFG_PALETTE_INIT_OWNER(ladybug_state,sraider)
diff --git a/src/mame/drivers/ladyfrog.c b/src/mame/drivers/ladyfrog.c
index ff521039c29..c2b83714729 100644
--- a/src/mame/drivers/ladyfrog.c
+++ b/src/mame/drivers/ladyfrog.c
@@ -315,7 +315,7 @@ static MACHINE_CONFIG_START( ladyfrog, ladyfrog_state )
MCFG_SCREEN_UPDATE_DRIVER(ladyfrog_state, screen_update_ladyfrog)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ladyfrog)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ladyfrog)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/laserbat.c b/src/mame/drivers/laserbat.c
index 01822b3493b..ec0ff0dbb55 100644
--- a/src/mame/drivers/laserbat.c
+++ b/src/mame/drivers/laserbat.c
@@ -723,7 +723,7 @@ static MACHINE_CONFIG_START( laserbat, laserbat_state )
MCFG_SCREEN_UPDATE_DRIVER(laserbat_state, screen_update_laserbat)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", laserbat)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", laserbat)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_S2636_ADD("s2636_1", s2636_1_config)
@@ -772,7 +772,7 @@ static MACHINE_CONFIG_START( catnmous, laserbat_state )
MCFG_SCREEN_UPDATE_DRIVER(laserbat_state, screen_update_laserbat)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", laserbat)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", laserbat)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_S2636_ADD("s2636_1", s2636_1_config)
diff --git a/src/mame/drivers/lasso.c b/src/mame/drivers/lasso.c
index fcf028b4b07..81f79b3b014 100644
--- a/src/mame/drivers/lasso.c
+++ b/src/mame/drivers/lasso.c
@@ -496,7 +496,7 @@ static MACHINE_CONFIG_START( base, lasso_state )
MCFG_SCREEN_UPDATE_DRIVER(lasso_state, screen_update_lasso)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lasso)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lasso)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
diff --git a/src/mame/drivers/lastbank.c b/src/mame/drivers/lastbank.c
index fdb12ccd338..68dceedda7b 100644
--- a/src/mame/drivers/lastbank.c
+++ b/src/mame/drivers/lastbank.c
@@ -478,7 +478,7 @@ static MACHINE_CONFIG_START( lastbank, lastbank_state )
MCFG_SCREEN_VBLANK_DRIVER(lastbank_state, screen_eof)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lastbank )
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lastbank )
MCFG_PALETTE_ADD("palette", 0x100)
MCFG_DEVICE_ADD("tc0091lvc", TC0091LVC, 0)
diff --git a/src/mame/drivers/lastduel.c b/src/mame/drivers/lastduel.c
index ddb04537bc7..b50090aa865 100644
--- a/src/mame/drivers/lastduel.c
+++ b/src/mame/drivers/lastduel.c
@@ -517,7 +517,7 @@ static MACHINE_CONFIG_START( lastduel, lastduel_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
- MCFG_GFXDECODE_ADD("gfxdecode", lastduel)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lastduel)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_VIDEO_START_OVERRIDE(lastduel_state,lastduel)
@@ -561,7 +561,7 @@ static MACHINE_CONFIG_START( madgear, lastduel_state )
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
- MCFG_GFXDECODE_ADD("gfxdecode", madgear)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", madgear)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_VIDEO_START_OVERRIDE(lastduel_state,madgear)
diff --git a/src/mame/drivers/lazercmd.c b/src/mame/drivers/lazercmd.c
index 554c6a6819a..1039bdb75e7 100644
--- a/src/mame/drivers/lazercmd.c
+++ b/src/mame/drivers/lazercmd.c
@@ -647,7 +647,7 @@ static MACHINE_CONFIG_START( lazercmd, lazercmd_state )
MCFG_SCREEN_UPDATE_DRIVER(lazercmd_state, screen_update_lazercmd)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lazercmd)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lazercmd)
MCFG_PALETTE_ADD("palette", 5)
MCFG_PALETTE_INIT_OWNER(lazercmd_state, lazercmd)
@@ -680,7 +680,7 @@ static MACHINE_CONFIG_START( medlanes, lazercmd_state )
MCFG_SCREEN_UPDATE_DRIVER(lazercmd_state, screen_update_lazercmd)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lazercmd)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lazercmd)
MCFG_PALETTE_ADD("palette", 5)
MCFG_PALETTE_INIT_OWNER(lazercmd_state, lazercmd)
@@ -713,7 +713,7 @@ static MACHINE_CONFIG_START( bbonk, lazercmd_state )
MCFG_SCREEN_UPDATE_DRIVER(lazercmd_state, screen_update_lazercmd)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lazercmd)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lazercmd)
MCFG_PALETTE_ADD("palette", 5)
MCFG_PALETTE_INIT_OWNER(lazercmd_state, lazercmd)
diff --git a/src/mame/drivers/lbeach.c b/src/mame/drivers/lbeach.c
index a4f70e46f31..390b1da1448 100644
--- a/src/mame/drivers/lbeach.c
+++ b/src/mame/drivers/lbeach.c
@@ -341,7 +341,7 @@ static MACHINE_CONFIG_START( lbeach, lbeach_state )
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE) // needed for collision detection
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lbeach)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lbeach)
MCFG_PALETTE_ADD("palette", 2+8+2)
MCFG_PALETTE_INIT_OWNER(lbeach_state, lbeach)
/* sound hardware */
diff --git a/src/mame/drivers/legionna.c b/src/mame/drivers/legionna.c
index ed87c48df19..44c3e18a641 100644
--- a/src/mame/drivers/legionna.c
+++ b/src/mame/drivers/legionna.c
@@ -1075,7 +1075,7 @@ static MACHINE_CONFIG_START( legionna, legionna_state )
MCFG_SCREEN_UPDATE_DRIVER(legionna_state, screen_update_legionna)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", legionna)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", legionna)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 128*16)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -1106,7 +1106,7 @@ static MACHINE_CONFIG_START( heatbrl, legionna_state )
MCFG_SCREEN_UPDATE_DRIVER(legionna_state, screen_update_legionna)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", heatbrl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", heatbrl)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 128*16)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -1138,7 +1138,7 @@ static MACHINE_CONFIG_START( godzilla, legionna_state )
MCFG_SCREEN_UPDATE_DRIVER(legionna_state, screen_update_godzilla)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", heatbrl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", heatbrl)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 128*16)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -1169,7 +1169,7 @@ static MACHINE_CONFIG_START( denjinmk, legionna_state )
MCFG_SCREEN_UPDATE_DRIVER(legionna_state, screen_update_godzilla)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", heatbrl)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", heatbrl)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 128*16)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -1200,7 +1200,7 @@ static MACHINE_CONFIG_START( grainbow, legionna_state )
MCFG_SCREEN_UPDATE_DRIVER(legionna_state, screen_update_grainbow)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", grainbow)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", grainbow)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 128*16)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -1232,7 +1232,7 @@ static MACHINE_CONFIG_START( cupsoc, legionna_state )
MCFG_SCREEN_UPDATE_DRIVER(legionna_state, screen_update_grainbow)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", cupsoc)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", cupsoc)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 128*16)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -1272,7 +1272,7 @@ static MACHINE_CONFIG_START( cupsocbl, legionna_state )
MCFG_SCREEN_UPDATE_DRIVER(legionna_state, screen_update_grainbow)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", heatbrl_csb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", heatbrl_csb)
MCFG_PALETTE_ADD_INIT_BLACK("palette", 128*16)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/lemmings.c b/src/mame/drivers/lemmings.c
index 7e24189d51b..608698e4505 100644
--- a/src/mame/drivers/lemmings.c
+++ b/src/mame/drivers/lemmings.c
@@ -250,7 +250,7 @@ static MACHINE_CONFIG_START( lemmings, lemmings_state )
MCFG_SCREEN_UPDATE_DRIVER(lemmings_state, screen_update_lemmings)
MCFG_SCREEN_VBLANK_DRIVER(lemmings_state, screen_eof_lemmings)
- MCFG_GFXDECODE_ADD("gfxdecode", lemmings)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lemmings)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(XBGR)
diff --git a/src/mame/drivers/lethal.c b/src/mame/drivers/lethal.c
index dfc7f5d0f3c..1e2ad01e257 100644
--- a/src/mame/drivers/lethal.c
+++ b/src/mame/drivers/lethal.c
@@ -555,7 +555,7 @@ static MACHINE_CONFIG_START( lethalen, lethal_state )
MCFG_EEPROM_SERIAL_ER5911_8BIT_ADD("eeprom")
- MCFG_GFXDECODE_ADD("gfxdecode", lethal)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lethal)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/lgp.c b/src/mame/drivers/lgp.c
index 777b8aaa90e..ed648f6bae0 100644
--- a/src/mame/drivers/lgp.c
+++ b/src/mame/drivers/lgp.c
@@ -384,7 +384,7 @@ static MACHINE_CONFIG_START( lgp, lgp_state )
MCFG_PALETTE_ADD("palette", 256)
/* MCFG_PALETTE_INIT_OWNER(lgp_state,lgp) */
- MCFG_GFXDECODE_ADD("gfxdecode", lgp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lgp)
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
diff --git a/src/mame/drivers/liberate.c b/src/mame/drivers/liberate.c
index 6e92df0a634..69a61e7406c 100644
--- a/src/mame/drivers/liberate.c
+++ b/src/mame/drivers/liberate.c
@@ -839,7 +839,7 @@ static MACHINE_CONFIG_START( liberate, liberate_state )
MCFG_SCREEN_UPDATE_DRIVER(liberate_state, screen_update_liberate)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", liberate)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", liberate)
MCFG_PALETTE_ADD("palette", 33)
MCFG_PALETTE_INIT_OWNER(liberate_state,liberate)
@@ -919,7 +919,7 @@ static MACHINE_CONFIG_START( prosport, liberate_state )
MCFG_SCREEN_UPDATE_DRIVER(liberate_state, screen_update_prosport)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", prosport)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", prosport)
MCFG_PALETTE_ADD("palette", 256)
MCFG_VIDEO_START_OVERRIDE(liberate_state,prosport)
diff --git a/src/mame/drivers/limenko.c b/src/mame/drivers/limenko.c
index 5568be25c70..e2e88772d04 100644
--- a/src/mame/drivers/limenko.c
+++ b/src/mame/drivers/limenko.c
@@ -752,7 +752,7 @@ static MACHINE_CONFIG_START( limenko, limenko_state )
MCFG_SCREEN_UPDATE_DRIVER(limenko_state, screen_update_limenko)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", limenko)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", limenko)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
@@ -784,7 +784,7 @@ static MACHINE_CONFIG_START( spotty, limenko_state )
MCFG_SCREEN_UPDATE_DRIVER(limenko_state, screen_update_limenko)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", limenko)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", limenko)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/lkage.c b/src/mame/drivers/lkage.c
index 4bd11ce0088..70c527cd423 100644
--- a/src/mame/drivers/lkage.c
+++ b/src/mame/drivers/lkage.c
@@ -563,7 +563,7 @@ static MACHINE_CONFIG_START( lkage, lkage_state )
MCFG_SCREEN_UPDATE_DRIVER(lkage_state, screen_update_lkage)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lkage)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lkage)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
@@ -609,7 +609,7 @@ static MACHINE_CONFIG_START( lkageb, lkage_state )
MCFG_SCREEN_UPDATE_DRIVER(lkage_state, screen_update_lkage)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lkage)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lkage)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
diff --git a/src/mame/drivers/lockon.c b/src/mame/drivers/lockon.c
index a9b82529251..72242cc62ab 100644
--- a/src/mame/drivers/lockon.c
+++ b/src/mame/drivers/lockon.c
@@ -512,7 +512,7 @@ static MACHINE_CONFIG_START( lockon, lockon_state )
MCFG_SCREEN_VBLANK_DRIVER(lockon_state, screen_eof_lockon)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lockon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lockon)
MCFG_PALETTE_ADD("palette", 1024 + 2048)
MCFG_PALETTE_INIT_OWNER(lockon_state, lockon)
diff --git a/src/mame/drivers/looping.c b/src/mame/drivers/looping.c
index a5d37a9fc9a..9cfd81992e2 100644
--- a/src/mame/drivers/looping.c
+++ b/src/mame/drivers/looping.c
@@ -686,7 +686,7 @@ static MACHINE_CONFIG_START( looping, looping_state )
MCFG_SCREEN_UPDATE_DRIVER(looping_state, screen_update_looping)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", looping)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", looping)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(looping_state, looping)
diff --git a/src/mame/drivers/lordgun.c b/src/mame/drivers/lordgun.c
index 06436aa90e4..87a443abd39 100644
--- a/src/mame/drivers/lordgun.c
+++ b/src/mame/drivers/lordgun.c
@@ -687,7 +687,7 @@ static MACHINE_CONFIG_START( lordgun, lordgun_state )
MCFG_SCREEN_UPDATE_DRIVER(lordgun_state, screen_update_lordgun)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lordgun)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lordgun)
MCFG_PALETTE_ADD("palette", 0x800 * 8) // 0x800 real colors, repeated per priority level
// sound hardware
@@ -724,7 +724,7 @@ static MACHINE_CONFIG_START( aliencha, lordgun_state )
MCFG_SCREEN_UPDATE_DRIVER(lordgun_state, screen_update_lordgun)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lordgun)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lordgun)
MCFG_PALETTE_ADD("palette", 0x800 * 8) // 0x800 real colors, repeated per priority level
// sound hardware
diff --git a/src/mame/drivers/lsasquad.c b/src/mame/drivers/lsasquad.c
index c363d0b7580..41f02b1c0fd 100644
--- a/src/mame/drivers/lsasquad.c
+++ b/src/mame/drivers/lsasquad.c
@@ -633,7 +633,7 @@ static MACHINE_CONFIG_START( lsasquad, lsasquad_state )
MCFG_SCREEN_UPDATE_DRIVER(lsasquad_state, screen_update_lsasquad)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lsasquad)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lsasquad)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 512)
/* sound hardware */
@@ -689,7 +689,7 @@ static MACHINE_CONFIG_START( daikaiju, lsasquad_state )
MCFG_SCREEN_UPDATE_DRIVER(lsasquad_state, screen_update_daikaiju)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lsasquad)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lsasquad)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 512)
/* sound hardware */
diff --git a/src/mame/drivers/ltcasino.c b/src/mame/drivers/ltcasino.c
index ef9b1824600..e953ad9b7a4 100644
--- a/src/mame/drivers/ltcasino.c
+++ b/src/mame/drivers/ltcasino.c
@@ -662,7 +662,7 @@ static MACHINE_CONFIG_START( ltcasino, ltcasino_state )
MCFG_SCREEN_UPDATE_DRIVER(ltcasino_state, screen_update_ltcasino)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ltcasino)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ltcasino)
MCFG_PALETTE_ADD("palette", 0x100)
diff --git a/src/mame/drivers/luckgrln.c b/src/mame/drivers/luckgrln.c
index 47988814449..483e29fcc66 100644
--- a/src/mame/drivers/luckgrln.c
+++ b/src/mame/drivers/luckgrln.c
@@ -1012,7 +1012,7 @@ static MACHINE_CONFIG_START( luckgrln, luckgrln_state )
MCFG_SCREEN_UPDATE_DRIVER(luckgrln_state, screen_update_luckgrln)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", luckgrln)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", luckgrln)
MCFG_PALETTE_ADD("palette", 0x8000)
diff --git a/src/mame/drivers/lucky74.c b/src/mame/drivers/lucky74.c
index 0529917374f..6db272025ba 100644
--- a/src/mame/drivers/lucky74.c
+++ b/src/mame/drivers/lucky74.c
@@ -1551,7 +1551,7 @@ static MACHINE_CONFIG_START( lucky74, lucky74_state )
MCFG_SCREEN_UPDATE_DRIVER(lucky74_state, screen_update_lucky74)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lucky74)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lucky74)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(lucky74_state, lucky74)
diff --git a/src/mame/drivers/lvcards.c b/src/mame/drivers/lvcards.c
index daed2e811d7..77ed951bbeb 100644
--- a/src/mame/drivers/lvcards.c
+++ b/src/mame/drivers/lvcards.c
@@ -477,7 +477,7 @@ static MACHINE_CONFIG_START( lvcards, lvcards_state )
MCFG_SCREEN_UPDATE_DRIVER(lvcards_state, screen_update_lvcards)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lvcards)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lvcards)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(lvcards_state, lvcards)
diff --git a/src/mame/drivers/lwings.c b/src/mame/drivers/lwings.c
index 7d36b13113a..8cd371d606e 100644
--- a/src/mame/drivers/lwings.c
+++ b/src/mame/drivers/lwings.c
@@ -792,7 +792,7 @@ static MACHINE_CONFIG_START( lwings, lwings_state )
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram8_device, vblank_copy_rising)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", lwings)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", lwings)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
diff --git a/src/mame/drivers/m10.c b/src/mame/drivers/m10.c
index 7a6ee68b49a..cf726c00242 100644
--- a/src/mame/drivers/m10.c
+++ b/src/mame/drivers/m10.c
@@ -855,7 +855,7 @@ static MACHINE_CONFIG_START( m10, m10_state )
MCFG_SCREEN_UPDATE_DRIVER(m10_state, screen_update_m10)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", m10)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m10)
MCFG_PALETTE_ADD("palette", 2*8)
MCFG_PALETTE_INIT_OWNER(m10_state,m10)
@@ -901,7 +901,7 @@ static MACHINE_CONFIG_START( m15, m10_state )
MCFG_SCREEN_UPDATE_DRIVER(m10_state, screen_update_m15)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_PALETTE_ADD("palette", 2*8)
MCFG_PALETTE_INIT_OWNER(m10_state,m10)
diff --git a/src/mame/drivers/m107.c b/src/mame/drivers/m107.c
index 34f6b9fdb6b..11feb4354c4 100644
--- a/src/mame/drivers/m107.c
+++ b/src/mame/drivers/m107.c
@@ -777,7 +777,7 @@ static MACHINE_CONFIG_START( firebarr, m107_state )
MCFG_SCREEN_UPDATE_DRIVER(m107_state, screen_update_m107)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", firebarr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", firebarr)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/m14.c b/src/mame/drivers/m14.c
index 21af3ef59f6..a0fd3c46e81 100644
--- a/src/mame/drivers/m14.c
+++ b/src/mame/drivers/m14.c
@@ -347,7 +347,7 @@ static MACHINE_CONFIG_START( m14, m14_state )
MCFG_SCREEN_UPDATE_DRIVER(m14_state, screen_update_m14)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", m14)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m14)
MCFG_PALETTE_ADD("palette", 0x20)
MCFG_PALETTE_INIT_OWNER(m14_state, m14)
diff --git a/src/mame/drivers/m52.c b/src/mame/drivers/m52.c
index ce0f2bc9530..973da14c77b 100644
--- a/src/mame/drivers/m52.c
+++ b/src/mame/drivers/m52.c
@@ -398,7 +398,7 @@ static MACHINE_CONFIG_START( m52, m52_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", m52_state, irq0_line_hold)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", m52)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m52)
MCFG_PALETTE_ADD("palette", 128*4+16*4+3*4)
MCFG_PALETTE_INDIRECT_ENTRIES(512+32+32)
MCFG_PALETTE_INIT_OWNER(m52_state, m52)
diff --git a/src/mame/drivers/m57.c b/src/mame/drivers/m57.c
index f0189259d1a..6caca206002 100644
--- a/src/mame/drivers/m57.c
+++ b/src/mame/drivers/m57.c
@@ -241,7 +241,7 @@ static MACHINE_CONFIG_START( m57, m57_state )
MCFG_SCREEN_UPDATE_DRIVER(m57_state, screen_update_m57)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", m57)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m57)
MCFG_PALETTE_ADD("palette", 32*8+32*8)
MCFG_PALETTE_INDIRECT_ENTRIES(256+16)
MCFG_PALETTE_INIT_OWNER(m57_state, m57)
diff --git a/src/mame/drivers/m58.c b/src/mame/drivers/m58.c
index d03052caabd..88d6296b1d7 100644
--- a/src/mame/drivers/m58.c
+++ b/src/mame/drivers/m58.c
@@ -196,7 +196,7 @@ static MACHINE_CONFIG_START( yard, m58_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", m58_state, irq0_line_hold)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", yard)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", yard)
MCFG_PALETTE_ADD("palette", 256+256+256)
MCFG_PALETTE_INDIRECT_ENTRIES(256+256+16)
MCFG_PALETTE_INIT_OWNER(m58_state, m58)
diff --git a/src/mame/drivers/m62.c b/src/mame/drivers/m62.c
index 26929e32a1a..f097e8bc09b 100644
--- a/src/mame/drivers/m62.c
+++ b/src/mame/drivers/m62.c
@@ -947,7 +947,7 @@ static MACHINE_CONFIG_START( ldrun, m62_state )
MCFG_SCREEN_UPDATE_DRIVER(m62_state, screen_update_ldrun)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ldrun)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ldrun)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(m62_state,m62)
diff --git a/src/mame/drivers/m63.c b/src/mame/drivers/m63.c
index b130dfaf086..b0b32282302 100644
--- a/src/mame/drivers/m63.c
+++ b/src/mame/drivers/m63.c
@@ -777,7 +777,7 @@ static MACHINE_CONFIG_START( m63, m63_state )
MCFG_SCREEN_UPDATE_DRIVER(m63_state, screen_update_m63)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", m63)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m63)
MCFG_PALETTE_ADD("palette", 256+4)
MCFG_PALETTE_INIT_OWNER(m63_state,m63)
@@ -822,7 +822,7 @@ static MACHINE_CONFIG_START( fghtbskt, m63_state )
MCFG_SCREEN_UPDATE_DRIVER(m63_state, screen_update_m63)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", fghtbskt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", fghtbskt)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
MCFG_VIDEO_START_OVERRIDE(m63_state,m63)
diff --git a/src/mame/drivers/m72.c b/src/mame/drivers/m72.c
index dac2d938535..592cf9828fd 100644
--- a/src/mame/drivers/m72.c
+++ b/src/mame/drivers/m72.c
@@ -1801,7 +1801,7 @@ static MACHINE_CONFIG_START( m72_base, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,m72)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", m72)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m72)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -1857,7 +1857,7 @@ static MACHINE_CONFIG_START( rtype, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,m72)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", m72)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m72)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -1895,7 +1895,7 @@ static MACHINE_CONFIG_START( xmultipl, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,xmultipl)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", m72)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m72)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -1937,7 +1937,7 @@ static MACHINE_CONFIG_START( xmultiplm72, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,xmultipl)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", m72)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m72)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -1979,7 +1979,7 @@ static MACHINE_CONFIG_START( dbreed, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,xmultipl)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", rtype2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rtype2)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -2021,7 +2021,7 @@ static MACHINE_CONFIG_START( dbreedm72, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,xmultipl)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", m72)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m72)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -2063,7 +2063,7 @@ static MACHINE_CONFIG_START( rtype2, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,m72)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", rtype2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rtype2)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -2105,7 +2105,7 @@ static MACHINE_CONFIG_START( majtitle, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,m72)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", majtitle)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", majtitle)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -2147,7 +2147,7 @@ static MACHINE_CONFIG_START( hharry, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,xmultipl)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", rtype2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rtype2)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -2189,7 +2189,7 @@ static MACHINE_CONFIG_START( hharryu, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,xmultipl)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", rtype2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rtype2)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -2231,7 +2231,7 @@ static MACHINE_CONFIG_START( dkgenm72, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,xmultipl)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", m72)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m72)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -2273,7 +2273,7 @@ static MACHINE_CONFIG_START( poundfor, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,m72)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", rtype2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rtype2)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
@@ -2315,7 +2315,7 @@ static MACHINE_CONFIG_START( cosmccop, m72_state )
MCFG_MACHINE_RESET_OVERRIDE(m72_state,kengo)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", rtype2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", rtype2)
MCFG_PALETTE_ADD("palette", 512)
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/m90.c b/src/mame/drivers/m90.c
index 713bdd8379d..846017f4ad0 100644
--- a/src/mame/drivers/m90.c
+++ b/src/mame/drivers/m90.c
@@ -735,7 +735,7 @@ static MACHINE_CONFIG_START( m90, m90_state )
MCFG_SCREEN_UPDATE_DRIVER(m90_state, screen_update_m90)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", m90)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m90)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/m92.c b/src/mame/drivers/m92.c
index b6bf4836c36..cfbc620efe3 100644
--- a/src/mame/drivers/m92.c
+++ b/src/mame/drivers/m92.c
@@ -942,7 +942,7 @@ static MACHINE_CONFIG_START( m92, m92_state )
MCFG_SCREEN_UPDATE_DRIVER(m92_state, screen_update_m92)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", m92)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", m92)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
diff --git a/src/mame/drivers/macrossp.c b/src/mame/drivers/macrossp.c
index 4ad83b03982..2e443282902 100644
--- a/src/mame/drivers/macrossp.c
+++ b/src/mame/drivers/macrossp.c
@@ -615,7 +615,7 @@ static MACHINE_CONFIG_START( macrossp, macrossp_state )
MCFG_SCREEN_UPDATE_DRIVER(macrossp_state, screen_update_macrossp)
MCFG_SCREEN_VBLANK_DRIVER(macrossp_state, screen_eof_macrossp)
- MCFG_GFXDECODE_ADD("gfxdecode", macrossp)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", macrossp)
MCFG_PALETTE_ADD("palette", 0x1000)
diff --git a/src/mame/drivers/macs.c b/src/mame/drivers/macs.c
index 2705af8bec9..d461c89d59f 100644
--- a/src/mame/drivers/macs.c
+++ b/src/mame/drivers/macs.c
@@ -494,7 +494,7 @@ static MACHINE_CONFIG_START( macs, macs_state )
MCFG_SCREEN_UPDATE_DRIVER(st0016_state, screen_update_st0016)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", macs)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", macs)
MCFG_PALETTE_ADD("palette", 16*16*4+1)
MCFG_VIDEO_START_OVERRIDE(st0016_state,st0016)
diff --git a/src/mame/drivers/madmotor.c b/src/mame/drivers/madmotor.c
index a1b10ef0737..fcdf1f6b628 100644
--- a/src/mame/drivers/madmotor.c
+++ b/src/mame/drivers/madmotor.c
@@ -248,7 +248,7 @@ static MACHINE_CONFIG_START( madmotor, madmotor_state )
MCFG_SCREEN_UPDATE_DRIVER(madmotor_state, screen_update_madmotor)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", madmotor)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", madmotor)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/magic10.c b/src/mame/drivers/magic10.c
index 1d7077474bf..9ebf77ee60c 100644
--- a/src/mame/drivers/magic10.c
+++ b/src/mame/drivers/magic10.c
@@ -740,7 +740,7 @@ static MACHINE_CONFIG_START( magic10, magic10_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_PALETTE_ADD("palette", 0x100)
- MCFG_GFXDECODE_ADD("gfxdecode", magic10)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", magic10)
/* sound hardware */
diff --git a/src/mame/drivers/magicfly.c b/src/mame/drivers/magicfly.c
index 7c0eb8d0c71..ab04383f21c 100644
--- a/src/mame/drivers/magicfly.c
+++ b/src/mame/drivers/magicfly.c
@@ -959,7 +959,7 @@ static MACHINE_CONFIG_START( magicfly, magicfly_state )
MCFG_SCREEN_UPDATE_DRIVER(magicfly_state, screen_update_magicfly)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", magicfly)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", magicfly)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(magicfly_state, magicfly)
diff --git a/src/mame/drivers/magmax.c b/src/mame/drivers/magmax.c
index 182987d5482..584d3edd082 100644
--- a/src/mame/drivers/magmax.c
+++ b/src/mame/drivers/magmax.c
@@ -363,7 +363,7 @@ static MACHINE_CONFIG_START( magmax, magmax_state )
MCFG_SCREEN_UPDATE_DRIVER(magmax_state, screen_update_magmax)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", magmax)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", magmax)
MCFG_PALETTE_ADD("palette", 1*16 + 16*16 + 256)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(magmax_state, magmax)
diff --git a/src/mame/drivers/mainevt.c b/src/mame/drivers/mainevt.c
index 4caadf5d2d9..579227d81e4 100644
--- a/src/mame/drivers/mainevt.c
+++ b/src/mame/drivers/mainevt.c
@@ -445,7 +445,7 @@ static MACHINE_CONFIG_START( mainevt, mainevt_state )
MCFG_VIDEO_START_OVERRIDE(mainevt_state,mainevt)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", mainevt_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
MCFG_K052109_PALETTE("palette")
@@ -509,7 +509,7 @@ static MACHINE_CONFIG_START( devstors, mainevt_state )
MCFG_VIDEO_START_OVERRIDE(mainevt_state,dv)
- MCFG_GFXDECODE_ADD("gfxdecode", empty)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
MCFG_K052109_ADD("k052109", dv_k052109_intf)
MCFG_K052109_GFXDECODE("gfxdecode")
MCFG_K052109_PALETTE("palette")
diff --git a/src/mame/drivers/mainsnk.c b/src/mame/drivers/mainsnk.c
index 8156b12fd6b..e7e8603601b 100644
--- a/src/mame/drivers/mainsnk.c
+++ b/src/mame/drivers/mainsnk.c
@@ -402,7 +402,7 @@ static MACHINE_CONFIG_START( mainsnk, mainsnk_state )
MCFG_SCREEN_UPDATE_DRIVER(mainsnk_state, screen_update_mainsnk)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mainsnk)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mainsnk)
MCFG_PALETTE_ADD("palette", 0x400)
MCFG_PALETTE_INIT_OWNER(mainsnk_state, mainsnk)
MCFG_PALETTE_ENABLE_SHADOWS()
diff --git a/src/mame/drivers/majorpkr.c b/src/mame/drivers/majorpkr.c
index 56d919354fc..d91ba87001d 100644
--- a/src/mame/drivers/majorpkr.c
+++ b/src/mame/drivers/majorpkr.c
@@ -1041,7 +1041,7 @@ static MACHINE_CONFIG_START( majorpkr, majorpkr_state )
MCFG_SCREEN_UPDATE_DRIVER(majorpkr_state, screen_update_majorpkr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", majorpkr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", majorpkr)
MCFG_PALETTE_ADD("palette", 0x100 * 16)
MCFG_MC6845_ADD("crtc", MC6845, "screen", CRTC_CLOCK, mc6845_intf) /* verified */
diff --git a/src/mame/drivers/malzak.c b/src/mame/drivers/malzak.c
index ea71d54305a..628da6ae528 100644
--- a/src/mame/drivers/malzak.c
+++ b/src/mame/drivers/malzak.c
@@ -357,7 +357,7 @@ static MACHINE_CONFIG_START( malzak, malzak_state )
MCFG_SCREEN_VISIBLE_AREA(0, 479, 0, 479)
MCFG_SCREEN_UPDATE_DRIVER(malzak_state, screen_update_malzak)
- MCFG_GFXDECODE_ADD("gfxdecode", malzak)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", malzak)
MCFG_PALETTE_ADD("palette", 128)
MCFG_PALETTE_INIT_OWNER(malzak_state, malzak)
diff --git a/src/mame/drivers/mappy.c b/src/mame/drivers/mappy.c
index f2f7ce80762..aed639213c7 100644
--- a/src/mame/drivers/mappy.c
+++ b/src/mame/drivers/mappy.c
@@ -1719,7 +1719,7 @@ static MACHINE_CONFIG_FRAGMENT( superpac_common )
MCFG_MACHINE_RESET_OVERRIDE(mappy_state,superpac)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", superpac)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", superpac)
MCFG_PALETTE_ADD("palette", 64*4+64*4)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(mappy_state,superpac)
@@ -1801,7 +1801,7 @@ static MACHINE_CONFIG_START( phozon, mappy_state )
MCFG_NAMCO56XX_ADD("namcoio_2", intf1_interleave)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", phozon)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", phozon)
MCFG_PALETTE_ADD("palette", 64*4+64*4)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(mappy_state,phozon)
@@ -1840,7 +1840,7 @@ static MACHINE_CONFIG_FRAGMENT( mappy_common )
MCFG_MACHINE_RESET_OVERRIDE(mappy_state,mappy)
/* video hardware */
- MCFG_GFXDECODE_ADD("gfxdecode", mappy)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mappy)
MCFG_PALETTE_ADD("palette", 64*4+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(mappy_state,mappy)
diff --git a/src/mame/drivers/marineb.c b/src/mame/drivers/marineb.c
index 2d3a1fa51d8..8d7af3d01de 100644
--- a/src/mame/drivers/marineb.c
+++ b/src/mame/drivers/marineb.c
@@ -547,7 +547,7 @@ static MACHINE_CONFIG_START( marineb, marineb_state )
MCFG_SCREEN_UPDATE_DRIVER(marineb_state, screen_update_marineb)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", marineb)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", marineb)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(marineb_state, marineb)
diff --git a/src/mame/drivers/marinedt.c b/src/mame/drivers/marinedt.c
index 2cb242e2a1e..2111e3b2973 100644
--- a/src/mame/drivers/marinedt.c
+++ b/src/mame/drivers/marinedt.c
@@ -687,7 +687,7 @@ static MACHINE_CONFIG_START( marinedt, marinedt_state )
MCFG_SCREEN_UPDATE_DRIVER(marinedt_state, screen_update_marinedt)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", marinedt)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", marinedt)
MCFG_PALETTE_ADD("palette", 64)
MCFG_PALETTE_INIT_OWNER(marinedt_state, marinedt)
diff --git a/src/mame/drivers/mario.c b/src/mame/drivers/mario.c
index a9378076b12..e0ef10e1c7f 100644
--- a/src/mame/drivers/mario.c
+++ b/src/mame/drivers/mario.c
@@ -353,7 +353,7 @@ static MACHINE_CONFIG_START( mario_base, mario_state )
MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART)
MCFG_SCREEN_UPDATE_DRIVER(mario_state, screen_update_mario)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mario)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mario)
MCFG_PALETTE_ADD("palette", 512)
MCFG_PALETTE_INIT_OWNER(mario_state, mario)
diff --git a/src/mame/drivers/markham.c b/src/mame/drivers/markham.c
index 2d213cd3040..f6cf1fcdb07 100644
--- a/src/mame/drivers/markham.c
+++ b/src/mame/drivers/markham.c
@@ -194,7 +194,7 @@ static MACHINE_CONFIG_START( markham, markham_state )
MCFG_SCREEN_UPDATE_DRIVER(markham_state, screen_update_markham)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", markham)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", markham)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(markham_state, markham)
diff --git a/src/mame/drivers/mastboy.c b/src/mame/drivers/mastboy.c
index 7d6c9ac6fbd..f1caeab46e7 100644
--- a/src/mame/drivers/mastboy.c
+++ b/src/mame/drivers/mastboy.c
@@ -905,7 +905,7 @@ static MACHINE_CONFIG_START( mastboy, mastboy_state )
MCFG_SCREEN_UPDATE_DRIVER(mastboy_state, screen_update_mastboy)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mastboy)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mastboy)
MCFG_PALETTE_ADD("palette", 0x100)
diff --git a/src/mame/drivers/matmania.c b/src/mame/drivers/matmania.c
index cb679faf445..b9abce3112a 100644
--- a/src/mame/drivers/matmania.c
+++ b/src/mame/drivers/matmania.c
@@ -324,7 +324,7 @@ static MACHINE_CONFIG_START( matmania, matmania_state )
MCFG_SCREEN_UPDATE_DRIVER(matmania_state, screen_update_matmania)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", matmania)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", matmania)
MCFG_PALETTE_ADD("palette", 64+16)
MCFG_PALETTE_INIT_OWNER(matmania_state, matmania)
@@ -406,7 +406,7 @@ static MACHINE_CONFIG_START( maniach, matmania_state )
MCFG_SCREEN_UPDATE_DRIVER(matmania_state, screen_update_maniach)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", maniach)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", maniach)
MCFG_PALETTE_ADD("palette", 64+16)
MCFG_PALETTE_INIT_OWNER(matmania_state, matmania)
diff --git a/src/mame/drivers/mayumi.c b/src/mame/drivers/mayumi.c
index 43018a3caf4..4ace9c4315d 100644
--- a/src/mame/drivers/mayumi.c
+++ b/src/mame/drivers/mayumi.c
@@ -411,7 +411,7 @@ static MACHINE_CONFIG_START( mayumi, mayumi_state )
MCFG_SCREEN_UPDATE_DRIVER(mayumi_state, screen_update_mayumi)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mayumi)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mayumi)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
/* sound hardware */
diff --git a/src/mame/drivers/mcatadv.c b/src/mame/drivers/mcatadv.c
index e339a85a839..ee9ab9db7db 100644
--- a/src/mame/drivers/mcatadv.c
+++ b/src/mame/drivers/mcatadv.c
@@ -452,7 +452,7 @@ static MACHINE_CONFIG_START( mcatadv, mcatadv_state )
MCFG_SCREEN_VBLANK_DRIVER(mcatadv_state, screen_eof_mcatadv)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mcatadv)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mcatadv)
MCFG_PALETTE_ADD("palette", 0x2000/2)
MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
diff --git a/src/mame/drivers/mcr.c b/src/mame/drivers/mcr.c
index 2fad2755c21..7035e9905bc 100644
--- a/src/mame/drivers/mcr.c
+++ b/src/mame/drivers/mcr.c
@@ -1851,7 +1851,7 @@ static MACHINE_CONFIG_START( mcr_90009, mcr_state )
MCFG_SCREEN_UPDATE_DRIVER(mcr_state, screen_update_mcr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mcr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mcr)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_FORMAT(xxxxRRRRBBBBGGGG)
diff --git a/src/mame/drivers/mcr3.c b/src/mame/drivers/mcr3.c
index 480715d0027..f3585d4b39f 100644
--- a/src/mame/drivers/mcr3.c
+++ b/src/mame/drivers/mcr3.c
@@ -1307,7 +1307,7 @@ static MACHINE_CONFIG_START( mcrmono, mcr3_state )
MCFG_SCREEN_UPDATE_DRIVER(mcr3_state, screen_update_mcr3)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mcr3)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mcr3)
MCFG_PALETTE_ADD("palette", 64)
MCFG_VIDEO_START_OVERRIDE(mcr3_state,mcrmono)
@@ -1425,7 +1425,7 @@ static MACHINE_CONFIG_START( spyhuntpr, mcr3_state )
MCFG_SCREEN_UPDATE_DRIVER(mcr3_state, screen_update_spyhuntpr)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", spyhuntpr)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", spyhuntpr)
MCFG_PALETTE_ADD("palette", 64+4)
MCFG_PALETTE_INIT_OWNER(mcr3_state,spyhunt)
diff --git a/src/mame/drivers/mcr68.c b/src/mame/drivers/mcr68.c
index 49824d266f1..ab4956684fd 100644
--- a/src/mame/drivers/mcr68.c
+++ b/src/mame/drivers/mcr68.c
@@ -1052,7 +1052,7 @@ static MACHINE_CONFIG_START( zwackery, mcr68_state )
MCFG_SCREEN_UPDATE_DRIVER(mcr68_state, screen_update_zwackery)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", zwackery)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", zwackery)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_VIDEO_START_OVERRIDE(mcr68_state,zwackery)
@@ -1084,7 +1084,7 @@ static MACHINE_CONFIG_START( mcr68, mcr68_state )
MCFG_SCREEN_UPDATE_DRIVER(mcr68_state, screen_update_mcr68)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mcr68)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mcr68)
MCFG_PALETTE_ADD("palette", 64)
MCFG_VIDEO_START_OVERRIDE(mcr68_state,mcr68)
diff --git a/src/mame/drivers/meadows.c b/src/mame/drivers/meadows.c
index 83100279066..855a7c050e8 100644
--- a/src/mame/drivers/meadows.c
+++ b/src/mame/drivers/meadows.c
@@ -642,7 +642,7 @@ static MACHINE_CONFIG_START( meadows, meadows_state )
MCFG_SCREEN_UPDATE_DRIVER(meadows_state, screen_update_meadows)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", meadows)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", meadows)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
/* audio hardware */
@@ -672,7 +672,7 @@ static MACHINE_CONFIG_START( minferno, meadows_state )
MCFG_SCREEN_UPDATE_DRIVER(meadows_state, screen_update_meadows)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", minferno)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", minferno)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
/* audio hardware */
@@ -701,7 +701,7 @@ static MACHINE_CONFIG_START( bowl3d, meadows_state )
MCFG_SCREEN_UPDATE_DRIVER(meadows_state, screen_update_meadows)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", meadows)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", meadows)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
/* audio hardware */
diff --git a/src/mame/drivers/mediagx.c b/src/mame/drivers/mediagx.c
index c7eb4c72769..87d0646453a 100644
--- a/src/mame/drivers/mediagx.c
+++ b/src/mame/drivers/mediagx.c
@@ -901,7 +901,7 @@ static MACHINE_CONFIG_START( mediagx, mediagx_state )
MCFG_SCREEN_VISIBLE_AREA(0, 639, 0, 239)
MCFG_SCREEN_UPDATE_DRIVER(mediagx_state, screen_update_mediagx)
- MCFG_GFXDECODE_ADD("gfxdecode", CGA)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", CGA)
MCFG_PALETTE_ADD("palette", 256)
diff --git a/src/mame/drivers/megaphx.c b/src/mame/drivers/megaphx.c
index b9fb5b0bd4c..86582c51fc0 100644
--- a/src/mame/drivers/megaphx.c
+++ b/src/mame/drivers/megaphx.c
@@ -767,7 +767,7 @@ static MACHINE_CONFIG_START( megaphx, megaphx_state )
MCFG_PALETTE_ADD("palette", 256)
- MCFG_GFXDECODE_ADD("gfxdecode", megaphx)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", megaphx)
MCFG_RAMDAC_ADD("ramdac", ramdac_intf, ramdac_map, "palette")
diff --git a/src/mame/drivers/megasys1.c b/src/mame/drivers/megasys1.c
index 0fad8c63ac1..41d4a72eccb 100644
--- a/src/mame/drivers/megasys1.c
+++ b/src/mame/drivers/megasys1.c
@@ -1477,7 +1477,7 @@ static MACHINE_CONFIG_START( system_A, megasys1_state )
MCFG_SCREEN_VBLANK_DRIVER(megasys1_state, screen_eof_megasys1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ABC)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ABC)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
MCFG_PALETTE_INIT_OWNER(megasys1_state,megasys1)
@@ -1538,7 +1538,7 @@ static MACHINE_CONFIG_START( system_Bbl, megasys1_state )
MCFG_SCREEN_VBLANK_DRIVER(megasys1_state, screen_eof_megasys1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ABC)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ABC)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
MCFG_PALETTE_INIT_OWNER(megasys1_state,megasys1)
@@ -1611,7 +1611,7 @@ static MACHINE_CONFIG_START( system_D, megasys1_state )
MCFG_SCREEN_VBLANK_DRIVER(megasys1_state, screen_eof_megasys1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", ABC)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", ABC)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(RRRRRGGGGGBBBBBx)
MCFG_PALETTE_INIT_OWNER(megasys1_state,megasys1)
@@ -1671,7 +1671,7 @@ static MACHINE_CONFIG_START( system_Z, megasys1_state )
MCFG_SCREEN_UPDATE_DRIVER(megasys1_state, screen_update_megasys1)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", Z)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", Z)
MCFG_PALETTE_ADD("palette", 768)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
diff --git a/src/mame/drivers/megazone.c b/src/mame/drivers/megazone.c
index f5b6c1ce15c..04930e7681f 100644
--- a/src/mame/drivers/megazone.c
+++ b/src/mame/drivers/megazone.c
@@ -270,7 +270,7 @@ static MACHINE_CONFIG_START( megazone, megazone_state )
MCFG_SCREEN_UPDATE_DRIVER(megazone_state, screen_update_megazone)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", megazone)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", megazone)
MCFG_PALETTE_ADD("palette", 16*16+16*16)
MCFG_PALETTE_INDIRECT_ENTRIES(32)
MCFG_PALETTE_INIT_OWNER(megazone_state, megazone)
diff --git a/src/mame/drivers/mermaid.c b/src/mame/drivers/mermaid.c
index c8c452a3675..a9abb62eb5e 100644
--- a/src/mame/drivers/mermaid.c
+++ b/src/mame/drivers/mermaid.c
@@ -450,7 +450,7 @@ static MACHINE_CONFIG_START( mermaid, mermaid_state )
MCFG_SCREEN_VBLANK_DRIVER(mermaid_state, screen_eof_mermaid)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mermaid)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mermaid)
MCFG_PALETTE_ADD("palette", 4*16+2*2)
MCFG_PALETTE_INDIRECT_ENTRIES(64+1)
MCFG_PALETTE_INIT_OWNER(mermaid_state, mermaid)
diff --git a/src/mame/drivers/metlclsh.c b/src/mame/drivers/metlclsh.c
index 81d4af62de8..3896d7a0a71 100644
--- a/src/mame/drivers/metlclsh.c
+++ b/src/mame/drivers/metlclsh.c
@@ -289,7 +289,7 @@ static MACHINE_CONFIG_START( metlclsh, metlclsh_state )
MCFG_SCREEN_UPDATE_DRIVER(metlclsh_state, screen_update_metlclsh)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", metlclsh)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", metlclsh)
MCFG_PALETTE_ADD("palette", 3 * 16)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
diff --git a/src/mame/drivers/metro.c b/src/mame/drivers/metro.c
index da67299bcaa..632ea1304b0 100644
--- a/src/mame/drivers/metro.c
+++ b/src/mame/drivers/metro.c
@@ -3570,7 +3570,7 @@ static MACHINE_CONFIG_START( balcube, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220_dx_tmap)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3605,7 +3605,7 @@ static MACHINE_CONFIG_START( daitoa, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220_dx_tmap)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3640,7 +3640,7 @@ static MACHINE_CONFIG_START( msgogo, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220_dx_tmap)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3675,7 +3675,7 @@ static MACHINE_CONFIG_START( bangball, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220_dx_tmap)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3710,7 +3710,7 @@ static MACHINE_CONFIG_START( batlbubl, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220_dx_tmap)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3749,7 +3749,7 @@ static MACHINE_CONFIG_START( daitorid, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220_dx_tmap)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3793,7 +3793,7 @@ static MACHINE_CONFIG_START( dharma, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3836,7 +3836,7 @@ static MACHINE_CONFIG_START( karatour, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4100)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4100)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4100)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3879,7 +3879,7 @@ static MACHINE_CONFIG_START( 3kokushi, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3922,7 +3922,7 @@ static MACHINE_CONFIG_START( lastfort, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4100)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4100)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4100)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -3964,7 +3964,7 @@ static MACHINE_CONFIG_START( lastforg, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4100)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4100)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4100)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4000,7 +4000,7 @@ static MACHINE_CONFIG_START( dokyusei, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4300)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4300)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4300)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4037,7 +4037,7 @@ static MACHINE_CONFIG_START( dokyusp, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4300)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4300)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4300)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4075,7 +4075,7 @@ static MACHINE_CONFIG_START( gakusai, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4300)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4300)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4300)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4113,7 +4113,7 @@ static MACHINE_CONFIG_START( gakusai2, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4300)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4300)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4300)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4156,7 +4156,7 @@ static MACHINE_CONFIG_START( pangpoms, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4100)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4100)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4100)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4199,7 +4199,7 @@ static MACHINE_CONFIG_START( poitto, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4100)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4100)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4100)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4242,7 +4242,7 @@ static MACHINE_CONFIG_START( pururun, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4286,7 +4286,7 @@ static MACHINE_CONFIG_START( skyalert, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4100)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4100)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4100)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4329,7 +4329,7 @@ static MACHINE_CONFIG_START( toride2g, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4366,7 +4366,7 @@ static MACHINE_CONFIG_START( mouja, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4300)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4300)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4300)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4403,7 +4403,7 @@ static MACHINE_CONFIG_START( vmetal, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4220)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4220)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4220_dx_sprite)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4452,7 +4452,7 @@ static MACHINE_CONFIG_START( blzntrnd, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", blzntrnd)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", blzntrnd)
MCFG_VIDEO_START_OVERRIDE(metro_state,blzntrnd)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4501,7 +4501,7 @@ static MACHINE_CONFIG_START( gstrik2, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", gstrik2)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", gstrik2)
MCFG_VIDEO_START_OVERRIDE(metro_state,gstrik2)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
@@ -4540,7 +4540,7 @@ static MACHINE_CONFIG_START( puzzlet, metro_state )
MCFG_SCREEN_UPDATE_DRIVER(metro_state, screen_update_metro)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", i4300)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", i4300)
MCFG_VIDEO_START_OVERRIDE(metro_state,metro_i4300)
MCFG_PALETTE_ADD("palette", 0x1000)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
diff --git a/src/mame/drivers/mexico86.c b/src/mame/drivers/mexico86.c
index f0f5ff0f402..e56fd25d10c 100644
--- a/src/mame/drivers/mexico86.c
+++ b/src/mame/drivers/mexico86.c
@@ -489,7 +489,7 @@ static MACHINE_CONFIG_START( mexico86, mexico86_state )
MCFG_SCREEN_UPDATE_DRIVER(mexico86_state, screen_update_mexico86)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mexico86)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mexico86)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", 256)
/* sound hardware */
diff --git a/src/mame/drivers/mgolf.c b/src/mame/drivers/mgolf.c
index 2808a0cf99e..a788242d3d5 100644
--- a/src/mame/drivers/mgolf.c
+++ b/src/mame/drivers/mgolf.c
@@ -364,7 +364,7 @@ static MACHINE_CONFIG_START( mgolf, mgolf_state )
MCFG_SCREEN_UPDATE_DRIVER(mgolf_state, screen_update_mgolf)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mgolf)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mgolf)
MCFG_PALETTE_ADD("palette", 4)
MCFG_PALETTE_INIT_OWNER(mgolf_state, mgolf)
diff --git a/src/mame/drivers/midas.c b/src/mame/drivers/midas.c
index 2870a717efa..7d63f84b044 100644
--- a/src/mame/drivers/midas.c
+++ b/src/mame/drivers/midas.c
@@ -716,7 +716,7 @@ static MACHINE_CONFIG_START( livequiz, midas_state )
MCFG_SCREEN_UPDATE_DRIVER(midas_state, screen_update_midas)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", midas)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", midas)
MCFG_PALETTE_ADD("palette", 0x10000)
MCFG_PALETTE_FORMAT(XRGB)
@@ -750,7 +750,7 @@ static MACHINE_CONFIG_START( hammer, midas_state )
MCFG_SCREEN_UPDATE_DRIVER(midas_state, screen_update_midas)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", midas)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", midas)
MCFG_PALETTE_ADD("palette", 0x10000)
MCFG_PALETTE_FORMAT(XRGB)
diff --git a/src/mame/drivers/mikie.c b/src/mame/drivers/mikie.c
index 7f32190f39e..695634689a1 100644
--- a/src/mame/drivers/mikie.c
+++ b/src/mame/drivers/mikie.c
@@ -266,7 +266,7 @@ static MACHINE_CONFIG_START( mikie, mikie_state )
MCFG_SCREEN_UPDATE_DRIVER(mikie_state, screen_update_mikie)
MCFG_SCREEN_PALETTE("palette")
- MCFG_GFXDECODE_ADD("gfxdecode", mikie)
+ MCFG_GFXDECODE_ADD("gfxdecode", "palette", mikie)
MCFG_PALETTE_ADD("palette", 16*8*16+16*8*16)
MCFG_PALETTE_INDIRECT_ENTRIES(256)
MCFG_PALETTE_INIT_OWNER(mikie_state, mikie)
diff --git a/src/mame/drivers/mil4000.c b/src/mame/drivers/mil4000.c
index 19018b10808..eb408d46bad 100644
--- a/src/mame/d