summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers')
-rw-r--r--src/mame/drivers/1945kiii.cpp1
-rw-r--r--src/mame/drivers/39in1.cpp1
-rw-r--r--src/mame/drivers/3x3puzzl.cpp1
-rw-r--r--src/mame/drivers/5clown.cpp1
-rw-r--r--src/mame/drivers/88games.cpp1
-rw-r--r--src/mame/drivers/a2600.cpp1
-rw-r--r--src/mame/drivers/a5105.cpp1
-rw-r--r--src/mame/drivers/a51xx.cpp1
-rw-r--r--src/mame/drivers/a6809.cpp1
-rw-r--r--src/mame/drivers/a7150.cpp1
-rw-r--r--src/mame/drivers/a7800.cpp1
-rw-r--r--src/mame/drivers/accomm.cpp1
-rw-r--r--src/mame/drivers/ace.cpp1
-rw-r--r--src/mame/drivers/acefruit.cpp1
-rw-r--r--src/mame/drivers/acommand.cpp1
-rw-r--r--src/mame/drivers/actfancr.cpp1
-rw-r--r--src/mame/drivers/adp.cpp1
-rw-r--r--src/mame/drivers/airraid.cpp1
-rw-r--r--src/mame/drivers/albazc.cpp1
-rw-r--r--src/mame/drivers/albazg.cpp1
-rw-r--r--src/mame/drivers/aleck64.cpp1
-rw-r--r--src/mame/drivers/alien.cpp1
-rw-r--r--src/mame/drivers/aliens.cpp1
-rw-r--r--src/mame/drivers/alphasma.cpp1
-rw-r--r--src/mame/drivers/alphatpx.cpp1
-rw-r--r--src/mame/drivers/alphatro.cpp1
-rw-r--r--src/mame/drivers/alto2.cpp1
-rw-r--r--src/mame/drivers/amaticmg.cpp1
-rw-r--r--src/mame/drivers/ambush.cpp1
-rw-r--r--src/mame/drivers/amusco.cpp1
-rw-r--r--src/mame/drivers/amust.cpp1
-rw-r--r--src/mame/drivers/anes.cpp1
-rw-r--r--src/mame/drivers/angelkds.cpp1
-rw-r--r--src/mame/drivers/anzterm.cpp1
-rw-r--r--src/mame/drivers/apc.cpp1
-rw-r--r--src/mame/drivers/apple1.cpp1
-rw-r--r--src/mame/drivers/applix.cpp1
-rw-r--r--src/mame/drivers/apricot.cpp1
-rw-r--r--src/mame/drivers/apricotf.cpp1
-rw-r--r--src/mame/drivers/apricotp.cpp1
-rw-r--r--src/mame/drivers/aristmk4.cpp1
-rw-r--r--src/mame/drivers/aristmk6.cpp1
-rw-r--r--src/mame/drivers/ashnojoe.cpp1
-rw-r--r--src/mame/drivers/asterix.cpp1
-rw-r--r--src/mame/drivers/astinvad.cpp1
-rw-r--r--src/mame/drivers/astrcorp.cpp1
-rw-r--r--src/mame/drivers/at.cpp1
-rw-r--r--src/mame/drivers/atarisy4.cpp1
-rw-r--r--src/mame/drivers/atetris.cpp1
-rw-r--r--src/mame/drivers/atlantis.cpp1
-rw-r--r--src/mame/drivers/atronic.cpp1
-rw-r--r--src/mame/drivers/att4425.cpp1
-rw-r--r--src/mame/drivers/attache.cpp1
-rw-r--r--src/mame/drivers/atvtrack.cpp1
-rw-r--r--src/mame/drivers/avt.cpp1
-rw-r--r--src/mame/drivers/ax20.cpp1
-rw-r--r--src/mame/drivers/b16.cpp1
-rw-r--r--src/mame/drivers/backfire.cpp1
-rw-r--r--src/mame/drivers/banctec.cpp1
-rw-r--r--src/mame/drivers/bbusters.cpp1
-rw-r--r--src/mame/drivers/bcs3.cpp1
-rw-r--r--src/mame/drivers/beehive.cpp1
-rw-r--r--src/mame/drivers/beezer.cpp1
-rw-r--r--src/mame/drivers/bestleag.cpp1
-rw-r--r--src/mame/drivers/bfcobra.cpp1
-rw-r--r--src/mame/drivers/bigbord2.cpp1
-rw-r--r--src/mame/drivers/binbug.cpp1
-rw-r--r--src/mame/drivers/bingoc.cpp1
-rw-r--r--src/mame/drivers/bingoman.cpp1
-rw-r--r--src/mame/drivers/bingor.cpp1
-rw-r--r--src/mame/drivers/bitgraph.cpp1
-rw-r--r--src/mame/drivers/bk.cpp1
-rw-r--r--src/mame/drivers/blackt96.cpp1
-rw-r--r--src/mame/drivers/blitz68k.cpp1
-rw-r--r--src/mame/drivers/blockade.cpp2
-rw-r--r--src/mame/drivers/blockhl.cpp1
-rw-r--r--src/mame/drivers/blocktax.cpp1
-rw-r--r--src/mame/drivers/bmcbowl.cpp1
-rw-r--r--src/mame/drivers/bmcpokr.cpp1
-rw-r--r--src/mame/drivers/bmjr.cpp1
-rw-r--r--src/mame/drivers/bml3.cpp1
-rw-r--r--src/mame/drivers/bntyhunt.cpp1
-rw-r--r--src/mame/drivers/boxer.cpp1
-rw-r--r--src/mame/drivers/buster.cpp1
-rw-r--r--src/mame/drivers/c10.cpp1
-rw-r--r--src/mame/drivers/c65.cpp1
-rw-r--r--src/mame/drivers/c900.cpp1
-rw-r--r--src/mame/drivers/cabaret.cpp1
-rw-r--r--src/mame/drivers/calcune.cpp1
-rw-r--r--src/mame/drivers/calorie.cpp1
-rw-r--r--src/mame/drivers/camplynx.cpp1
-rw-r--r--src/mame/drivers/candela.cpp1
-rw-r--r--src/mame/drivers/cardline.cpp1
-rw-r--r--src/mame/drivers/carjmbre.cpp1
-rw-r--r--src/mame/drivers/carrera.cpp1
-rw-r--r--src/mame/drivers/casloopy.cpp1
-rw-r--r--src/mame/drivers/caswin.cpp1
-rw-r--r--src/mame/drivers/cavepc.cpp1
-rw-r--r--src/mame/drivers/cb2001.cpp1
-rw-r--r--src/mame/drivers/cball.cpp1
-rw-r--r--src/mame/drivers/cbm2.cpp1
-rw-r--r--src/mame/drivers/cc40.cpp1
-rw-r--r--src/mame/drivers/cd2650.cpp1
-rw-r--r--src/mame/drivers/cdc721.cpp1
-rw-r--r--src/mame/drivers/cdi.cpp1
-rw-r--r--src/mame/drivers/cedar_magnet.cpp1
-rw-r--r--src/mame/drivers/cesclass.cpp1
-rw-r--r--src/mame/drivers/cfx9850.cpp1
-rw-r--r--src/mame/drivers/champbwl.cpp1
-rw-r--r--src/mame/drivers/chanbara.cpp1
-rw-r--r--src/mame/drivers/chance32.cpp1
-rw-r--r--src/mame/drivers/channelf.cpp1
-rw-r--r--src/mame/drivers/chinsan.cpp1
-rw-r--r--src/mame/drivers/chsuper.cpp1
-rw-r--r--src/mame/drivers/clcd.cpp1
-rw-r--r--src/mame/drivers/cmi.cpp1
-rw-r--r--src/mame/drivers/cmmb.cpp1
-rw-r--r--src/mame/drivers/cntsteer.cpp1
-rw-r--r--src/mame/drivers/cobra.cpp1
-rw-r--r--src/mame/drivers/cocoloco.cpp1
-rw-r--r--src/mame/drivers/coinmstr.cpp1
-rw-r--r--src/mame/drivers/coinmvga.cpp1
-rw-r--r--src/mame/drivers/comebaby.cpp1
-rw-r--r--src/mame/drivers/compucolor.cpp1
-rw-r--r--src/mame/drivers/comquest.cpp1
-rw-r--r--src/mame/drivers/concept.cpp1
-rw-r--r--src/mame/drivers/controlid.cpp1
-rw-r--r--src/mame/drivers/coolridr.cpp1
-rw-r--r--src/mame/drivers/corona.cpp1
-rw-r--r--src/mame/drivers/craft.cpp1
-rw-r--r--src/mame/drivers/crospang.cpp1
-rw-r--r--src/mame/drivers/crystal.cpp1
-rw-r--r--src/mame/drivers/cswat.cpp1
-rw-r--r--src/mame/drivers/ct486.cpp1
-rw-r--r--src/mame/drivers/cultures.cpp1
-rw-r--r--src/mame/drivers/cupidon.cpp1
-rw-r--r--src/mame/drivers/cv1k.cpp1
-rw-r--r--src/mame/drivers/cxhumax.cpp1
-rw-r--r--src/mame/drivers/cybertnk.cpp1
-rw-r--r--src/mame/drivers/cyclemb.cpp1
-rw-r--r--src/mame/drivers/cz101.cpp1
-rw-r--r--src/mame/drivers/d6800.cpp1
-rw-r--r--src/mame/drivers/d9final.cpp1
-rw-r--r--src/mame/drivers/dacholer.cpp1
-rw-r--r--src/mame/drivers/dai3wksi.cpp1
-rw-r--r--src/mame/drivers/dblcrown.cpp1
-rw-r--r--src/mame/drivers/dblewing.cpp1
-rw-r--r--src/mame/drivers/dccons.cpp1
-rw-r--r--src/mame/drivers/dct11em.cpp1
-rw-r--r--src/mame/drivers/ddayjlc.cpp1
-rw-r--r--src/mame/drivers/ddealer.cpp1
-rw-r--r--src/mame/drivers/deco156.cpp1
-rw-r--r--src/mame/drivers/deco_ld.cpp1
-rw-r--r--src/mame/drivers/deshoros.cpp1
-rw-r--r--src/mame/drivers/destroyr.cpp1
-rw-r--r--src/mame/drivers/dfruit.cpp1
-rw-r--r--src/mame/drivers/dgpix.cpp1
-rw-r--r--src/mame/drivers/dietgo.cpp1
-rw-r--r--src/mame/drivers/dim68k.cpp1
-rw-r--r--src/mame/drivers/discoboy.cpp1
-rw-r--r--src/mame/drivers/diverboy.cpp1
-rw-r--r--src/mame/drivers/dlair.cpp1
-rw-r--r--src/mame/drivers/dlair2.cpp1
-rw-r--r--src/mame/drivers/dmndrby.cpp1
-rw-r--r--src/mame/drivers/dms5000.cpp1
-rw-r--r--src/mame/drivers/dmv.cpp1
-rw-r--r--src/mame/drivers/dominob.cpp1
-rw-r--r--src/mame/drivers/dooyong.cpp1
-rw-r--r--src/mame/drivers/dorachan.cpp1
-rw-r--r--src/mame/drivers/dotrikun.cpp1
-rw-r--r--src/mame/drivers/dreambal.cpp1
-rw-r--r--src/mame/drivers/dreamwld.cpp1
-rw-r--r--src/mame/drivers/drtomy.cpp1
-rw-r--r--src/mame/drivers/drw80pkr.cpp1
-rw-r--r--src/mame/drivers/duet16.cpp1
-rw-r--r--src/mame/drivers/dunhuang.cpp1
-rw-r--r--src/mame/drivers/dvk_kcgd.cpp1
-rw-r--r--src/mame/drivers/dvk_ksm.cpp1
-rw-r--r--src/mame/drivers/dwarfd.cpp1
-rw-r--r--src/mame/drivers/dynadice.cpp1
-rw-r--r--src/mame/drivers/e100.cpp1
-rw-r--r--src/mame/drivers/ec65.cpp1
-rw-r--r--src/mame/drivers/egghunt.cpp1
-rw-r--r--src/mame/drivers/enigma2.cpp1
-rw-r--r--src/mame/drivers/eolith16.cpp1
-rw-r--r--src/mame/drivers/esd16.cpp1
-rw-r--r--src/mame/drivers/esh.cpp1
-rw-r--r--src/mame/drivers/esprit.cpp1
-rw-r--r--src/mame/drivers/esq5505.cpp2
-rw-r--r--src/mame/drivers/ettrivia.cpp1
-rw-r--r--src/mame/drivers/eurocom2.cpp1
-rw-r--r--src/mame/drivers/excali64.cpp1
-rw-r--r--src/mame/drivers/exelv.cpp1
-rw-r--r--src/mame/drivers/expro02.cpp1
-rw-r--r--src/mame/drivers/f-32.cpp1
-rw-r--r--src/mame/drivers/fastinvaders.cpp1
-rw-r--r--src/mame/drivers/fb01.cpp1
-rw-r--r--src/mame/drivers/fc100.cpp1
-rw-r--r--src/mame/drivers/feversoc.cpp1
-rw-r--r--src/mame/drivers/firebeat.cpp1
-rw-r--r--src/mame/drivers/firefox.cpp1
-rw-r--r--src/mame/drivers/fk1.cpp1
-rw-r--r--src/mame/drivers/flipjack.cpp1
-rw-r--r--src/mame/drivers/flower.cpp1
-rw-r--r--src/mame/drivers/flyball.cpp1
-rw-r--r--src/mame/drivers/fortecar.cpp1
-rw-r--r--src/mame/drivers/fp1100.cpp1
-rw-r--r--src/mame/drivers/fp200.cpp1
-rw-r--r--src/mame/drivers/fp6000.cpp1
-rw-r--r--src/mame/drivers/fresh.cpp1
-rw-r--r--src/mame/drivers/funkyjet.cpp1
-rw-r--r--src/mame/drivers/funtech.cpp1
-rw-r--r--src/mame/drivers/gaelco.cpp1
-rw-r--r--src/mame/drivers/gaelco3d.cpp1
-rw-r--r--src/mame/drivers/gaelcopc.cpp1
-rw-r--r--src/mame/drivers/galaxi.cpp1
-rw-r--r--src/mame/drivers/galaxy.cpp1
-rw-r--r--src/mame/drivers/galgame.cpp1
-rw-r--r--src/mame/drivers/galgames.cpp1
-rw-r--r--src/mame/drivers/galpani3.cpp1
-rw-r--r--src/mame/drivers/gamate.cpp4
-rw-r--r--src/mame/drivers/gamecstl.cpp1
-rw-r--r--src/mame/drivers/gameking.cpp1
-rw-r--r--src/mame/drivers/gamepock.cpp1
-rw-r--r--src/mame/drivers/gatron.cpp1
-rw-r--r--src/mame/drivers/gei.cpp1
-rw-r--r--src/mame/drivers/geniusiq.cpp1
-rw-r--r--src/mame/drivers/ghosteo.cpp1
-rw-r--r--src/mame/drivers/giclassic.cpp1
-rw-r--r--src/mame/drivers/gkigt.cpp1
-rw-r--r--src/mame/drivers/gluck2.cpp1
-rw-r--r--src/mame/drivers/gmaster.cpp1
-rw-r--r--src/mame/drivers/go2000.cpp1
-rw-r--r--src/mame/drivers/goldngam.cpp1
-rw-r--r--src/mame/drivers/goldnpkr.cpp1
-rw-r--r--src/mame/drivers/good.cpp1
-rw-r--r--src/mame/drivers/goodejan.cpp1
-rw-r--r--src/mame/drivers/gotcha.cpp1
-rw-r--r--src/mame/drivers/goupil.cpp1
-rw-r--r--src/mame/drivers/gp2x.cpp1
-rw-r--r--src/mame/drivers/gpworld.cpp1
-rw-r--r--src/mame/drivers/gradius3.cpp1
-rw-r--r--src/mame/drivers/grfd2301.cpp1
-rw-r--r--src/mame/drivers/gridcomp.cpp1
-rw-r--r--src/mame/drivers/gstream.cpp1
-rw-r--r--src/mame/drivers/gticlub.cpp1
-rw-r--r--src/mame/drivers/gts3a.cpp1
-rw-r--r--src/mame/drivers/gts80a.cpp1
-rw-r--r--src/mame/drivers/guab.cpp1
-rw-r--r--src/mame/drivers/gumbo.cpp1
-rw-r--r--src/mame/drivers/gunpey.cpp1
-rw-r--r--src/mame/drivers/h19.cpp1
-rw-r--r--src/mame/drivers/halleys.cpp1
-rw-r--r--src/mame/drivers/hazeltin.cpp1
-rw-r--r--src/mame/drivers/headonb.cpp1
-rw-r--r--src/mame/drivers/hexion.cpp1
-rw-r--r--src/mame/drivers/hideseek.cpp1
-rw-r--r--src/mame/drivers/highvdeo.cpp1
-rw-r--r--src/mame/drivers/hikaru.cpp1
-rw-r--r--src/mame/drivers/hitme.cpp1
-rw-r--r--src/mame/drivers/hitpoker.cpp1
-rw-r--r--src/mame/drivers/homelab.cpp1
-rw-r--r--src/mame/drivers/homez80.cpp1
-rw-r--r--src/mame/drivers/hornet.cpp1
-rw-r--r--src/mame/drivers/hotblock.cpp1
-rw-r--r--src/mame/drivers/hotstuff.cpp1
-rw-r--r--src/mame/drivers/hp2640.cpp1
-rw-r--r--src/mame/drivers/hp64k.cpp1
-rw-r--r--src/mame/drivers/hp80.cpp1
-rw-r--r--src/mame/drivers/hp9k.cpp1
-rw-r--r--src/mame/drivers/hp_ipc.cpp1
-rw-r--r--src/mame/drivers/hprot1.cpp1
-rw-r--r--src/mame/drivers/hunter2.cpp1
-rw-r--r--src/mame/drivers/hvyunit.cpp1
-rw-r--r--src/mame/drivers/i7000.cpp1
-rw-r--r--src/mame/drivers/ibm3153.cpp1
-rw-r--r--src/mame/drivers/ibm6580.cpp1
-rw-r--r--src/mame/drivers/icatel.cpp1
-rw-r--r--src/mame/drivers/ichiban.cpp1
-rw-r--r--src/mame/drivers/if800.cpp1
-rw-r--r--src/mame/drivers/igs009.cpp1
-rw-r--r--src/mame/drivers/igs011.cpp1
-rw-r--r--src/mame/drivers/igs017.cpp1
-rw-r--r--src/mame/drivers/igs_fear.cpp1
-rw-r--r--src/mame/drivers/igs_m036.cpp1
-rw-r--r--src/mame/drivers/igspoker.cpp1
-rw-r--r--src/mame/drivers/imolagp.cpp1
-rw-r--r--src/mame/drivers/indigo.cpp1
-rw-r--r--src/mame/drivers/indy_indigo2.cpp1
-rw-r--r--src/mame/drivers/inteladv.cpp1
-rw-r--r--src/mame/drivers/intrscti.cpp1
-rw-r--r--src/mame/drivers/invqix.cpp1
-rw-r--r--src/mame/drivers/ipds.cpp1
-rw-r--r--src/mame/drivers/iq151.cpp1
-rw-r--r--src/mame/drivers/iqblock.cpp1
-rw-r--r--src/mame/drivers/irisha.cpp1
-rw-r--r--src/mame/drivers/istellar.cpp1
-rw-r--r--src/mame/drivers/istrebiteli.cpp1
-rw-r--r--src/mame/drivers/itgambl2.cpp1
-rw-r--r--src/mame/drivers/itgambl3.cpp1
-rw-r--r--src/mame/drivers/itgamble.cpp1
-rw-r--r--src/mame/drivers/itt3030.cpp1
-rw-r--r--src/mame/drivers/jackie.cpp1
-rw-r--r--src/mame/drivers/jackpool.cpp1
-rw-r--r--src/mame/drivers/jalmah.cpp1
-rw-r--r--src/mame/drivers/jangou.cpp1
-rw-r--r--src/mame/drivers/jantotsu.cpp1
-rw-r--r--src/mame/drivers/jchan.cpp1
-rw-r--r--src/mame/drivers/jclub2.cpp1
-rw-r--r--src/mame/drivers/jokrwild.cpp1
-rw-r--r--src/mame/drivers/jollyjgr.cpp1
-rw-r--r--src/mame/drivers/jongkyo.cpp1
-rw-r--r--src/mame/drivers/jonos.cpp1
-rw-r--r--src/mame/drivers/joystand.cpp1
-rw-r--r--src/mame/drivers/jr100.cpp1
-rw-r--r--src/mame/drivers/jr200.cpp1
-rw-r--r--src/mame/drivers/jtc.cpp1
-rw-r--r--src/mame/drivers/jubilee.cpp1
-rw-r--r--src/mame/drivers/juicebox.cpp1
-rw-r--r--src/mame/drivers/jungleyo.cpp1
-rw-r--r--src/mame/drivers/jupace.cpp1
-rw-r--r--src/mame/drivers/jupiter.cpp1
-rw-r--r--src/mame/drivers/k8915.cpp1
-rw-r--r--src/mame/drivers/kdt6.cpp1
-rw-r--r--src/mame/drivers/kingdrby.cpp1
-rw-r--r--src/mame/drivers/kinst.cpp1
-rw-r--r--src/mame/drivers/koftball.cpp1
-rw-r--r--src/mame/drivers/koikoi.cpp1
-rw-r--r--src/mame/drivers/konamim2.cpp1
-rw-r--r--src/mame/drivers/konblands.cpp1
-rw-r--r--src/mame/drivers/konendev.cpp1
-rw-r--r--src/mame/drivers/konmedal.cpp1
-rw-r--r--src/mame/drivers/konmedal68k.cpp1
-rw-r--r--src/mame/drivers/kontest.cpp1
-rw-r--r--src/mame/drivers/kron.cpp1
-rw-r--r--src/mame/drivers/laser3k.cpp1
-rw-r--r--src/mame/drivers/laserbas.cpp1
-rw-r--r--src/mame/drivers/lastbank.cpp1
-rw-r--r--src/mame/drivers/lastfght.cpp1
-rw-r--r--src/mame/drivers/lbeach.cpp1
-rw-r--r--src/mame/drivers/lcmate2.cpp1
-rw-r--r--src/mame/drivers/lethalj.cpp1
-rw-r--r--src/mame/drivers/lgp.cpp1
-rw-r--r--src/mame/drivers/limenko.cpp1
-rw-r--r--src/mame/drivers/llc.cpp1
-rw-r--r--src/mame/drivers/lola8a.cpp1
-rw-r--r--src/mame/drivers/looping.cpp1
-rw-r--r--src/mame/drivers/ltcasino.cpp1
-rw-r--r--src/mame/drivers/luckgrln.cpp1
-rw-r--r--src/mame/drivers/m14.cpp1
-rw-r--r--src/mame/drivers/m20.cpp1
-rw-r--r--src/mame/drivers/m3.cpp1
-rw-r--r--src/mame/drivers/m63.cpp1
-rw-r--r--src/mame/drivers/m79152pc.cpp1
-rw-r--r--src/mame/drivers/mac128.cpp1
-rw-r--r--src/mame/drivers/macpci.cpp1
-rw-r--r--src/mame/drivers/madmotor.cpp1
-rw-r--r--src/mame/drivers/magic10.cpp1
-rw-r--r--src/mame/drivers/magicard.cpp1
-rw-r--r--src/mame/drivers/magicfly.cpp1
-rw-r--r--src/mame/drivers/magnum.cpp1
-rw-r--r--src/mame/drivers/mainevt.cpp1
-rw-r--r--src/mame/drivers/majorpkr.cpp1
-rw-r--r--src/mame/drivers/marinedt.cpp1
-rw-r--r--src/mame/drivers/mastboy.cpp1
-rw-r--r--src/mame/drivers/mastboyo.cpp1
-rw-r--r--src/mame/drivers/maygayv1.cpp1
-rw-r--r--src/mame/drivers/mazerbla.cpp1
-rw-r--r--src/mame/drivers/mbc200.cpp1
-rw-r--r--src/mame/drivers/mc8020.cpp1
-rw-r--r--src/mame/drivers/mc8030.cpp1
-rw-r--r--src/mame/drivers/mcr68.cpp1
-rw-r--r--src/mame/drivers/mediagx.cpp1
-rw-r--r--src/mame/drivers/meijinsn.cpp1
-rw-r--r--src/mame/drivers/mes.cpp1
-rw-r--r--src/mame/drivers/metalmx.cpp1
-rw-r--r--src/mame/drivers/metlfrzr.cpp1
-rw-r--r--src/mame/drivers/meyc8088.cpp1
-rw-r--r--src/mame/drivers/mgames.cpp1
-rw-r--r--src/mame/drivers/mgolf.cpp1
-rw-r--r--src/mame/drivers/micral.cpp1
-rw-r--r--src/mame/drivers/microtan.cpp1
-rw-r--r--src/mame/drivers/microvsn.cpp1
-rw-r--r--src/mame/drivers/midas.cpp1
-rw-r--r--src/mame/drivers/mikro80.cpp1
-rw-r--r--src/mame/drivers/mil4000.cpp1
-rw-r--r--src/mame/drivers/miniboy7.cpp1
-rw-r--r--src/mame/drivers/minitel_2_rpic.cpp1
-rw-r--r--src/mame/drivers/mirage.cpp1
-rw-r--r--src/mame/drivers/mirax.cpp1
-rw-r--r--src/mame/drivers/missb2.cpp1
-rw-r--r--src/mame/drivers/missile.cpp1
-rw-r--r--src/mame/drivers/mjsenpu.cpp1
-rw-r--r--src/mame/drivers/mjsister.cpp1
-rw-r--r--src/mame/drivers/mk85.cpp1
-rw-r--r--src/mame/drivers/mk90.cpp1
-rw-r--r--src/mame/drivers/mlanding.cpp1
-rw-r--r--src/mame/drivers/mmagic.cpp1
-rw-r--r--src/mame/drivers/modellot.cpp1
-rw-r--r--src/mame/drivers/mogura.cpp1
-rw-r--r--src/mame/drivers/mole.cpp1
-rw-r--r--src/mame/drivers/molecular.cpp1
-rw-r--r--src/mame/drivers/monzagp.cpp1
-rw-r--r--src/mame/drivers/mosaic.cpp1
-rw-r--r--src/mame/drivers/mpu12wbk.cpp1
-rw-r--r--src/mame/drivers/mpu4dealem.cpp1
-rw-r--r--src/mame/drivers/mrgame.cpp1
-rw-r--r--src/mame/drivers/ms0515.cpp1
-rw-r--r--src/mame/drivers/ms6102.cpp1
-rw-r--r--src/mame/drivers/mstation.cpp1
-rw-r--r--src/mame/drivers/multi16.cpp1
-rw-r--r--src/mame/drivers/multi8.cpp1
-rw-r--r--src/mame/drivers/multigam.cpp1
-rw-r--r--src/mame/drivers/murogem.cpp1
-rw-r--r--src/mame/drivers/murogmbl.cpp1
-rw-r--r--src/mame/drivers/mwarr.cpp1
-rw-r--r--src/mame/drivers/mx2178.cpp1
-rw-r--r--src/mame/drivers/mycom.cpp1
-rw-r--r--src/mame/drivers/mz2000.cpp1
-rw-r--r--src/mame/drivers/mz2500.cpp1
-rw-r--r--src/mame/drivers/mz3500.cpp1
-rw-r--r--src/mame/drivers/mz6500.cpp1
-rw-r--r--src/mame/drivers/mz80.cpp1
-rw-r--r--src/mame/drivers/n64.cpp1
-rw-r--r--src/mame/drivers/nakajies.cpp1
-rw-r--r--src/mame/drivers/namcond1.cpp1
-rw-r--r--src/mame/drivers/namcops2.cpp1
-rw-r--r--src/mame/drivers/namcos23.cpp1
-rw-r--r--src/mame/drivers/nanos.cpp1
-rw-r--r--src/mame/drivers/naomi.cpp1
-rw-r--r--src/mame/drivers/nascom1.cpp1
-rw-r--r--src/mame/drivers/neoprint.cpp1
-rw-r--r--src/mame/drivers/neptunp2.cpp1
-rw-r--r--src/mame/drivers/news.cpp1
-rw-r--r--src/mame/drivers/nexus3d.cpp1
-rw-r--r--src/mame/drivers/nibble.cpp1
-rw-r--r--src/mame/drivers/nightgal.cpp1
-rw-r--r--src/mame/drivers/nmg5.cpp1
-rw-r--r--src/mame/drivers/nokia_3310.cpp1
-rw-r--r--src/mame/drivers/notetaker.cpp1
-rw-r--r--src/mame/drivers/nsmpoker.cpp1
-rw-r--r--src/mame/drivers/nss.cpp1
-rw-r--r--src/mame/drivers/nwk-tr.cpp1
-rw-r--r--src/mame/drivers/nyny.cpp1
-rw-r--r--src/mame/drivers/odyssey2.cpp1
-rw-r--r--src/mame/drivers/okean240.cpp1
-rw-r--r--src/mame/drivers/olibochu.cpp1
-rw-r--r--src/mame/drivers/ondra.cpp1
-rw-r--r--src/mame/drivers/onetwo.cpp1
-rw-r--r--src/mame/drivers/orao.cpp1
-rw-r--r--src/mame/drivers/oric.cpp1
-rw-r--r--src/mame/drivers/osbexec.cpp1
-rw-r--r--src/mame/drivers/othello.cpp1
-rw-r--r--src/mame/drivers/overdriv.cpp1
-rw-r--r--src/mame/drivers/p112.cpp1
-rw-r--r--src/mame/drivers/palm.cpp1
-rw-r--r--src/mame/drivers/panicr.cpp1
-rw-r--r--src/mame/drivers/parodius.cpp1
-rw-r--r--src/mame/drivers/pasha2.cpp1
-rw-r--r--src/mame/drivers/paso1600.cpp1
-rw-r--r--src/mame/drivers/pasogo.cpp1
-rw-r--r--src/mame/drivers/pasopia.cpp1
-rw-r--r--src/mame/drivers/pasopia7.cpp1
-rw-r--r--src/mame/drivers/pass.cpp1
-rw-r--r--src/mame/drivers/patapata.cpp1
-rw-r--r--src/mame/drivers/pb1000.cpp1
-rw-r--r--src/mame/drivers/pc100.cpp1
-rw-r--r--src/mame/drivers/pc1500.cpp1
-rw-r--r--src/mame/drivers/pc2000.cpp1
-rw-r--r--src/mame/drivers/pc8801.cpp1
-rw-r--r--src/mame/drivers/pc88va.cpp1
-rw-r--r--src/mame/drivers/pce220.cpp1
-rw-r--r--src/mame/drivers/pcm.cpp1
-rw-r--r--src/mame/drivers/pda600.cpp1
-rw-r--r--src/mame/drivers/pegasus.cpp1
-rw-r--r--src/mame/drivers/peoplepc.cpp1
-rw-r--r--src/mame/drivers/peplus.cpp1
-rw-r--r--src/mame/drivers/pet.cpp1
-rw-r--r--src/mame/drivers/pgm3.cpp1
-rw-r--r--src/mame/drivers/photon2.cpp1
-rw-r--r--src/mame/drivers/phunsy.cpp1
-rw-r--r--src/mame/drivers/piggypas.cpp1
-rw-r--r--src/mame/drivers/pinball2k.cpp1
-rw-r--r--src/mame/drivers/pinkiri8.cpp1
-rw-r--r--src/mame/drivers/pipeline.cpp1
-rw-r--r--src/mame/drivers/pitagjr.cpp1
-rw-r--r--src/mame/drivers/pkscram.cpp1
-rw-r--r--src/mame/drivers/plan80.cpp1
-rw-r--r--src/mame/drivers/pockchal.cpp1
-rw-r--r--src/mame/drivers/pockstat.cpp1
-rw-r--r--src/mame/drivers/pofo.cpp1
-rw-r--r--src/mame/drivers/poisk1.cpp1
-rw-r--r--src/mame/drivers/pokemini.cpp1
-rw-r--r--src/mame/drivers/poker72.cpp1
-rw-r--r--src/mame/drivers/poly88.cpp1
-rw-r--r--src/mame/drivers/popobear.cpp1
-rw-r--r--src/mame/drivers/popper.cpp1
-rw-r--r--src/mame/drivers/ppmast93.cpp1
-rw-r--r--src/mame/drivers/prestige.cpp1
-rw-r--r--src/mame/drivers/primo.cpp1
-rw-r--r--src/mame/drivers/progolf.cpp1
-rw-r--r--src/mame/drivers/proteus3.cpp1
-rw-r--r--src/mame/drivers/ps2sony.cpp1
-rw-r--r--src/mame/drivers/ptcsol.cpp1
-rw-r--r--src/mame/drivers/pturn.cpp1
-rw-r--r--src/mame/drivers/pv1000.cpp1
-rw-r--r--src/mame/drivers/pv9234.cpp1
-rw-r--r--src/mame/drivers/px4.cpp1
-rw-r--r--src/mame/drivers/pyl601.cpp1
-rw-r--r--src/mame/drivers/pyson.cpp1
-rw-r--r--src/mame/drivers/pzletime.cpp1
-rw-r--r--src/mame/drivers/quakeat.cpp1
-rw-r--r--src/mame/drivers/quickpick5.cpp1
-rw-r--r--src/mame/drivers/quizo.cpp1
-rw-r--r--src/mame/drivers/quizpani.cpp1
-rw-r--r--src/mame/drivers/quizpun2.cpp1
-rw-r--r--src/mame/drivers/quizshow.cpp1
-rw-r--r--src/mame/drivers/qx10.cpp1
-rw-r--r--src/mame/drivers/r2dtank.cpp1
-rw-r--r--src/mame/drivers/rabbit.cpp1
-rw-r--r--src/mame/drivers/rad_eu3a05.cpp1
-rw-r--r--src/mame/drivers/rad_eu3a14.cpp1
-rw-r--r--src/mame/drivers/rainbow.cpp1
-rw-r--r--src/mame/drivers/rastersp.cpp1
-rw-r--r--src/mame/drivers/rbmk.cpp1
-rw-r--r--src/mame/drivers/rc702.cpp1
-rw-r--r--src/mame/drivers/rcorsair.cpp1
-rw-r--r--src/mame/drivers/rd100.cpp1
-rw-r--r--src/mame/drivers/rd110.cpp1
-rw-r--r--src/mame/drivers/renegade.cpp1
-rw-r--r--src/mame/drivers/replicator.cpp1
-rw-r--r--src/mame/drivers/rex6000.cpp1
-rw-r--r--src/mame/drivers/rgum.cpp1
-rw-r--r--src/mame/drivers/risc2500.cpp1
-rw-r--r--src/mame/drivers/riscpc.cpp1
-rw-r--r--src/mame/drivers/rm380z.cpp1
-rw-r--r--src/mame/drivers/rmhaihai.cpp1
-rw-r--r--src/mame/drivers/rmt32.cpp1
-rw-r--r--src/mame/drivers/rollerg.cpp1
-rw-r--r--src/mame/drivers/ron.cpp1
-rw-r--r--src/mame/drivers/roul.cpp1
-rw-r--r--src/mame/drivers/royalmah.cpp1
-rw-r--r--src/mame/drivers/rt1715.cpp1
-rw-r--r--src/mame/drivers/rx78.cpp1
-rw-r--r--src/mame/drivers/rz1.cpp1
-rw-r--r--src/mame/drivers/safarir.cpp1
-rw-r--r--src/mame/drivers/sandscrp.cpp1
-rw-r--r--src/mame/drivers/sangho.cpp1
-rw-r--r--src/mame/drivers/sanremmg.cpp1
-rw-r--r--src/mame/drivers/sanremo.cpp1
-rw-r--r--src/mame/drivers/sapi1.cpp1
-rw-r--r--src/mame/drivers/sbc6510.cpp1
-rw-r--r--src/mame/drivers/sbowling.cpp1
-rw-r--r--src/mame/drivers/sbrain.cpp1
-rw-r--r--src/mame/drivers/sbrkout.cpp1
-rw-r--r--src/mame/drivers/scopus.cpp1
-rw-r--r--src/mame/drivers/scv.cpp1
-rw-r--r--src/mame/drivers/scyclone.cpp1
-rw-r--r--src/mame/drivers/sderby2.cpp1
-rw-r--r--src/mame/drivers/seabattl.cpp1
-rw-r--r--src/mame/drivers/sealy.cpp1
-rw-r--r--src/mame/drivers/segac2.cpp1
-rw-r--r--src/mame/drivers/segald.cpp1
-rw-r--r--src/mame/drivers/segam1.cpp1
-rw-r--r--src/mame/drivers/segapm.cpp1
-rw-r--r--src/mame/drivers/seicupbl.cpp1
-rw-r--r--src/mame/drivers/sengokmj.cpp1
-rw-r--r--src/mame/drivers/sfbonus.cpp1
-rw-r--r--src/mame/drivers/shanghai.cpp1
-rw-r--r--src/mame/drivers/shougi.cpp1
-rw-r--r--src/mame/drivers/shtzone.cpp1
-rw-r--r--src/mame/drivers/sigmab52.cpp1
-rw-r--r--src/mame/drivers/sigmab98.cpp1
-rw-r--r--src/mame/drivers/silvmil.cpp1
-rw-r--r--src/mame/drivers/simpsons.cpp1
-rw-r--r--src/mame/drivers/skimaxx.cpp1
-rw-r--r--src/mame/drivers/skyarmy.cpp1
-rw-r--r--src/mame/drivers/skylncr.cpp1
-rw-r--r--src/mame/drivers/slotcarn.cpp1
-rw-r--r--src/mame/drivers/sm1800.cpp1
-rw-r--r--src/mame/drivers/sm7238.cpp1
-rw-r--r--src/mame/drivers/smc777.cpp1
-rw-r--r--src/mame/drivers/smsmcorp.cpp1
-rw-r--r--src/mame/drivers/snk68.cpp1
-rw-r--r--src/mame/drivers/socrates.cpp1
-rw-r--r--src/mame/drivers/sorcerer.cpp1
-rw-r--r--src/mame/drivers/spaceg.cpp1
-rw-r--r--src/mame/drivers/spartanxtec.cpp1
-rw-r--r--src/mame/drivers/spc1500.cpp1
-rw-r--r--src/mame/drivers/spcforce.cpp1
-rw-r--r--src/mame/drivers/speglsht.cpp1
-rw-r--r--src/mame/drivers/spinb.cpp1
-rw-r--r--src/mame/drivers/splus.cpp1
-rw-r--r--src/mame/drivers/spoker.cpp1
-rw-r--r--src/mame/drivers/spool99.cpp1
-rw-r--r--src/mame/drivers/sprcros2.cpp1
-rw-r--r--src/mame/drivers/spyhuntertec.cpp1
-rw-r--r--src/mame/drivers/srmp5.cpp1
-rw-r--r--src/mame/drivers/srmp6.cpp1
-rw-r--r--src/mame/drivers/ssem.cpp1
-rw-r--r--src/mame/drivers/ssfindo.cpp1
-rw-r--r--src/mame/drivers/sshot.cpp1
-rw-r--r--src/mame/drivers/ssingles.cpp1
-rw-r--r--src/mame/drivers/sstrangr.cpp1
-rw-r--r--src/mame/drivers/st17xx.cpp1
-rw-r--r--src/mame/drivers/stadhero.cpp1
-rw-r--r--src/mame/drivers/statriv2.cpp1
-rw-r--r--src/mame/drivers/stuntair.cpp1
-rw-r--r--src/mame/drivers/subhuntr.cpp1
-rw-r--r--src/mame/drivers/subsino.cpp1
-rw-r--r--src/mame/drivers/subsino2.cpp1
-rw-r--r--src/mame/drivers/summit.cpp1
-rw-r--r--src/mame/drivers/supbtime.cpp1
-rw-r--r--src/mame/drivers/supdrapo.cpp1
-rw-r--r--src/mame/drivers/supduck.cpp1
-rw-r--r--src/mame/drivers/supercrd.cpp1
-rw-r--r--src/mame/drivers/superdq.cpp1
-rw-r--r--src/mame/drivers/superwng.cpp1
-rw-r--r--src/mame/drivers/supracan.cpp1
-rw-r--r--src/mame/drivers/suprgolf.cpp1
-rw-r--r--src/mame/drivers/svmu.cpp1
-rw-r--r--src/mame/drivers/swyft.cpp1
-rw-r--r--src/mame/drivers/sys2900.cpp1
-rw-r--r--src/mame/drivers/sys9002.cpp1
-rw-r--r--src/mame/drivers/taitopjc.cpp1
-rw-r--r--src/mame/drivers/taitotx.cpp1
-rw-r--r--src/mame/drivers/taitowlf.cpp1
-rw-r--r--src/mame/drivers/tamag1.cpp1
-rw-r--r--src/mame/drivers/taotaido.cpp1
-rw-r--r--src/mame/drivers/tasman.cpp1
-rw-r--r--src/mame/drivers/tattack.cpp1
-rw-r--r--src/mame/drivers/tavernie.cpp1
-rw-r--r--src/mame/drivers/tdv2324.cpp1
-rw-r--r--src/mame/drivers/tek410x.cpp1
-rw-r--r--src/mame/drivers/tek440x.cpp1
-rw-r--r--src/mame/drivers/tekxp33x.cpp1
-rw-r--r--src/mame/drivers/terak.cpp1
-rw-r--r--src/mame/drivers/thedealr.cpp1
-rw-r--r--src/mame/drivers/ti630.cpp1
-rw-r--r--src/mame/drivers/ti74.cpp1
-rw-r--r--src/mame/drivers/tim011.cpp1
-rw-r--r--src/mame/drivers/tim100.cpp1
-rw-r--r--src/mame/drivers/timetrv.cpp1
-rw-r--r--src/mame/drivers/tk2000.cpp1
-rw-r--r--src/mame/drivers/tk80bs.cpp1
-rw-r--r--src/mame/drivers/tmaster.cpp1
-rw-r--r--src/mame/drivers/tmmjprd.cpp1
-rw-r--r--src/mame/drivers/tmspoker.cpp1
-rw-r--r--src/mame/drivers/topspeed.cpp1
-rw-r--r--src/mame/drivers/toypop.cpp1
-rw-r--r--src/mame/drivers/triforce.cpp1
-rw-r--r--src/mame/drivers/trs80dt1.cpp1
-rw-r--r--src/mame/drivers/trvmadns.cpp1
-rw-r--r--src/mame/drivers/ts803.cpp1
-rw-r--r--src/mame/drivers/ttchamp.cpp1
-rw-r--r--src/mame/drivers/tugboat.cpp1
-rw-r--r--src/mame/drivers/turrett.cpp1
-rw-r--r--src/mame/drivers/tv990.cpp1
-rw-r--r--src/mame/drivers/tvc.cpp1
-rw-r--r--src/mame/drivers/tvcapcom.cpp1
-rw-r--r--src/mame/drivers/tvgame.cpp1
-rw-r--r--src/mame/drivers/twins.cpp1
-rw-r--r--src/mame/drivers/uknc.cpp1
-rw-r--r--src/mame/drivers/ultraman.cpp1
-rw-r--r--src/mame/drivers/ultrsprt.cpp1
-rw-r--r--src/mame/drivers/umipoker.cpp1
-rw-r--r--src/mame/drivers/unichamp.cpp1
-rw-r--r--src/mame/drivers/unior.cpp1
-rw-r--r--src/mame/drivers/unistar.cpp1
-rw-r--r--src/mame/drivers/univac.cpp1
-rw-r--r--src/mame/drivers/unixpc.cpp1
-rw-r--r--src/mame/drivers/unkhorse.cpp1
-rw-r--r--src/mame/drivers/v6809.cpp1
-rw-r--r--src/mame/drivers/vamphalf.cpp1
-rw-r--r--src/mame/drivers/vboy.cpp1
-rw-r--r--src/mame/drivers/vega.cpp1
-rw-r--r--src/mame/drivers/victor9k.cpp1
-rw-r--r--src/mame/drivers/videopkr.cpp1
-rw-r--r--src/mame/drivers/vii.cpp1
-rw-r--r--src/mame/drivers/viper.cpp1
-rw-r--r--src/mame/drivers/vlc.cpp1
-rw-r--r--src/mame/drivers/vpoker.cpp1
-rw-r--r--src/mame/drivers/vroulet.cpp1
-rw-r--r--src/mame/drivers/vt220.cpp1
-rw-r--r--src/mame/drivers/vt240.cpp1
-rw-r--r--src/mame/drivers/vt320.cpp1
-rw-r--r--src/mame/drivers/vt520.cpp1
-rw-r--r--src/mame/drivers/vta2000.cpp1
-rw-r--r--src/mame/drivers/wallc.cpp1
-rw-r--r--src/mame/drivers/warpsped.cpp1
-rw-r--r--src/mame/drivers/welltris.cpp1
-rw-r--r--src/mame/drivers/wheelfir.cpp1
-rw-r--r--src/mame/drivers/wicat.cpp1
-rw-r--r--src/mame/drivers/wildpkr.cpp1
-rw-r--r--src/mame/drivers/wink.cpp1
-rw-r--r--src/mame/drivers/wms.cpp1
-rw-r--r--src/mame/drivers/wyvernf0.cpp1
-rw-r--r--src/mame/drivers/xmen.cpp1
-rw-r--r--src/mame/drivers/y2.cpp1
-rw-r--r--src/mame/drivers/z100.cpp1
-rw-r--r--src/mame/drivers/z1013.cpp1
-rw-r--r--src/mame/drivers/z9001.cpp1
-rw-r--r--src/mame/drivers/zaurus.cpp1
-rw-r--r--src/mame/drivers/zerozone.cpp1
-rw-r--r--src/mame/drivers/zr107.cpp1
-rw-r--r--src/mame/drivers/zrt80.cpp1
-rw-r--r--src/mame/drivers/zwackery.cpp1
707 files changed, 707 insertions, 5 deletions
diff --git a/src/mame/drivers/1945kiii.cpp b/src/mame/drivers/1945kiii.cpp
index ac96e285f3c..74cd9dccace 100644
--- a/src/mame/drivers/1945kiii.cpp
+++ b/src/mame/drivers/1945kiii.cpp
@@ -47,6 +47,7 @@ Notes:
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/39in1.cpp b/src/mame/drivers/39in1.cpp
index 91224c61f6e..4aed92d891e 100644
--- a/src/mame/drivers/39in1.cpp
+++ b/src/mame/drivers/39in1.cpp
@@ -28,6 +28,7 @@
#include "machine/eepromser.h"
#include "machine/pxa255.h"
#include "sound/dmadac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/3x3puzzl.cpp b/src/mame/drivers/3x3puzzl.cpp
index 7fd86419adb..2c1493ba2a7 100644
--- a/src/mame/drivers/3x3puzzl.cpp
+++ b/src/mame/drivers/3x3puzzl.cpp
@@ -43,6 +43,7 @@ Notes:
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/5clown.cpp b/src/mame/drivers/5clown.cpp
index 61c99ab4ef6..6796c5694b5 100644
--- a/src/mame/drivers/5clown.cpp
+++ b/src/mame/drivers/5clown.cpp
@@ -448,6 +448,7 @@
#include "sound/ay8910.h"
#include "sound/okim6295.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/88games.cpp b/src/mame/drivers/88games.cpp
index f9dfde1e34d..fa042a5f4ac 100644
--- a/src/mame/drivers/88games.cpp
+++ b/src/mame/drivers/88games.cpp
@@ -16,6 +16,7 @@
#include "machine/watchdog.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/a2600.cpp b/src/mame/drivers/a2600.cpp
index 1c22c0c91f5..d011d6e407a 100644
--- a/src/mame/drivers/a2600.cpp
+++ b/src/mame/drivers/a2600.cpp
@@ -17,6 +17,7 @@ TODO:
#include "includes/a2600.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/a5105.cpp b/src/mame/drivers/a5105.cpp
index 79898e4f8df..8e65e31626f 100644
--- a/src/mame/drivers/a5105.cpp
+++ b/src/mame/drivers/a5105.cpp
@@ -31,6 +31,7 @@ ToDo:
#include "sound/wave.h"
#include "video/upd7220.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/a51xx.cpp b/src/mame/drivers/a51xx.cpp
index d44b8d6755d..675d168aed3 100644
--- a/src/mame/drivers/a51xx.cpp
+++ b/src/mame/drivers/a51xx.cpp
@@ -14,6 +14,7 @@
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/a6809.cpp b/src/mame/drivers/a6809.cpp
index 5d25f1bd37d..07b189ee6b3 100644
--- a/src/mame/drivers/a6809.cpp
+++ b/src/mame/drivers/a6809.cpp
@@ -58,6 +58,7 @@ enter show next address
#include "video/mc6845.h"
#include "imagedev/cassette.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/a7150.cpp b/src/mame/drivers/a7150.cpp
index b92b8bd587a..d01d4f1f949 100644
--- a/src/mame/drivers/a7150.cpp
+++ b/src/mame/drivers/a7150.cpp
@@ -38,6 +38,7 @@
#include "machine/isbc_215g.h"
#include "machine/keyboard.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/a7800.cpp b/src/mame/drivers/a7800.cpp
index cbca0bd12c0..9f65e746fe1 100644
--- a/src/mame/drivers/a7800.cpp
+++ b/src/mame/drivers/a7800.cpp
@@ -104,6 +104,7 @@
#include "machine/mos6530n.h"
#include "video/maria.h"
#include "bus/a7800/a78_carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/accomm.cpp b/src/mame/drivers/accomm.cpp
index 0d51e96275a..a790155b4bb 100644
--- a/src/mame/drivers/accomm.cpp
+++ b/src/mame/drivers/accomm.cpp
@@ -25,6 +25,7 @@
#include "bus/econet/econet.h"
#include "bus/centronics/ctronics.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ace.cpp b/src/mame/drivers/ace.cpp
index 3662c46f95b..d92f938edc4 100644
--- a/src/mame/drivers/ace.cpp
+++ b/src/mame/drivers/ace.cpp
@@ -41,6 +41,7 @@ A1 2101 2101
#include "emu.h"
#include "cpu/i8085/i8085.h"
+#include "emupal.h"
#include "screen.h"
#include "ace.lh"
diff --git a/src/mame/drivers/acefruit.cpp b/src/mame/drivers/acefruit.cpp
index cd925de66f1..7ddb093d839 100644
--- a/src/mame/drivers/acefruit.cpp
+++ b/src/mame/drivers/acefruit.cpp
@@ -14,6 +14,7 @@ Inputs and Dip Switches by Stephh
#include "cpu/z80/z80.h"
#include "machine/nvram.h"
#include "machine/watchdog.h"
+#include "emupal.h"
#include "screen.h"
#include "sidewndr.lh"
diff --git a/src/mame/drivers/acommand.cpp b/src/mame/drivers/acommand.cpp
index 5e4bae83d17..9eaa10a03dd 100644
--- a/src/mame/drivers/acommand.cpp
+++ b/src/mame/drivers/acommand.cpp
@@ -62,6 +62,7 @@ JALCF1 BIN 1,048,576 02-07-99 1:11a JALCF1.BIN
#include "machine/timer.h"
#include "sound/okim6295.h"
#include "video/ms1_tmap.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/actfancr.cpp b/src/mame/drivers/actfancr.cpp
index 7ab23c343d5..5ab8720cfe0 100644
--- a/src/mame/drivers/actfancr.cpp
+++ b/src/mame/drivers/actfancr.cpp
@@ -31,6 +31,7 @@
#include "sound/2203intf.h"
#include "sound/3812intf.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/adp.cpp b/src/mame/drivers/adp.cpp
index f29fb4fd7d4..a16d62b5e99 100644
--- a/src/mame/drivers/adp.cpp
+++ b/src/mame/drivers/adp.cpp
@@ -164,6 +164,7 @@ Quick Jack administration/service mode:
#include "sound/ay8910.h"
#include "video/hd63484.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/airraid.cpp b/src/mame/drivers/airraid.cpp
index 83e62fb306f..869e553c528 100644
--- a/src/mame/drivers/airraid.cpp
+++ b/src/mame/drivers/airraid.cpp
@@ -155,6 +155,7 @@ Stephh's notes (based on the game Z80 code and some tests) :
#include "cpu/z80/z80.h"
#include "machine/timer.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/albazc.cpp b/src/mame/drivers/albazc.cpp
index 1700f6e3d45..32a9e1b981f 100644
--- a/src/mame/drivers/albazc.cpp
+++ b/src/mame/drivers/albazc.cpp
@@ -17,6 +17,7 @@ TODO:
#include "machine/nvram.h"
#include "machine/ticket.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/albazg.cpp b/src/mame/drivers/albazg.cpp
index 6cb7845a120..25b94f74c28 100644
--- a/src/mame/drivers/albazg.cpp
+++ b/src/mame/drivers/albazg.cpp
@@ -41,6 +41,7 @@ PCB:
#include "machine/watchdog.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/aleck64.cpp b/src/mame/drivers/aleck64.cpp
index 07a52ecf605..bf0e0f38b3d 100644
--- a/src/mame/drivers/aleck64.cpp
+++ b/src/mame/drivers/aleck64.cpp
@@ -179,6 +179,7 @@ Notes:
#include "cpu/rsp/rsp.h"
#include "cpu/mips/mips3.h"
#include "sound/dmadac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/alien.cpp b/src/mame/drivers/alien.cpp
index 8138391694c..58cf901e57d 100644
--- a/src/mame/drivers/alien.cpp
+++ b/src/mame/drivers/alien.cpp
@@ -63,6 +63,7 @@
#include "emu.h"
#include "cpu/sh/sh4.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/aliens.cpp b/src/mame/drivers/aliens.cpp
index 3b5ae56365b..d288936c8c2 100644
--- a/src/mame/drivers/aliens.cpp
+++ b/src/mame/drivers/aliens.cpp
@@ -17,6 +17,7 @@ Preliminary driver by:
#include "cpu/m6809/konami.h" /* for the callback and the firq irq definition */
#include "machine/watchdog.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/alphasma.cpp b/src/mame/drivers/alphasma.cpp
index fe4333cf63b..cc323119c12 100644
--- a/src/mame/drivers/alphasma.cpp
+++ b/src/mame/drivers/alphasma.cpp
@@ -17,6 +17,7 @@
#include "machine/nvram.h"
#include "machine/ram.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
diff --git a/src/mame/drivers/alphatpx.cpp b/src/mame/drivers/alphatpx.cpp
index 7979e9fd3e6..e707af694a1 100644
--- a/src/mame/drivers/alphatpx.cpp
+++ b/src/mame/drivers/alphatpx.cpp
@@ -75,6 +75,7 @@
#include "machine/pit8253.h"
#include "video/tms9927.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "debugger.h"
diff --git a/src/mame/drivers/alphatro.cpp b/src/mame/drivers/alphatro.cpp
index a546a285db5..73b61a966ff 100644
--- a/src/mame/drivers/alphatro.cpp
+++ b/src/mame/drivers/alphatro.cpp
@@ -41,6 +41,7 @@
#include "sound/beep.h"
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/alto2.cpp b/src/mame/drivers/alto2.cpp
index 770ad0e0995..a9239927d35 100644
--- a/src/mame/drivers/alto2.cpp
+++ b/src/mame/drivers/alto2.cpp
@@ -8,6 +8,7 @@
#include "emu.h"
#include "cpu/alto2/alto2cpu.h"
#include "machine/diablo_hd.h"
+#include "emupal.h"
#include "screen.h"
#include "rendlay.h"
#include "speaker.h"
diff --git a/src/mame/drivers/amaticmg.cpp b/src/mame/drivers/amaticmg.cpp
index d10741eb043..22a41783643 100644
--- a/src/mame/drivers/amaticmg.cpp
+++ b/src/mame/drivers/amaticmg.cpp
@@ -416,6 +416,7 @@
#include "sound/3812intf.h"
#include "video/mc6845.h"
//#include "sound/dac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ambush.cpp b/src/mame/drivers/ambush.cpp
index f979de87ecd..2d63e3cd67d 100644
--- a/src/mame/drivers/ambush.cpp
+++ b/src/mame/drivers/ambush.cpp
@@ -48,6 +48,7 @@
#include "machine/74259.h"
#include "machine/watchdog.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/amusco.cpp b/src/mame/drivers/amusco.cpp
index da77c10685c..5c0640ca17f 100644
--- a/src/mame/drivers/amusco.cpp
+++ b/src/mame/drivers/amusco.cpp
@@ -80,6 +80,7 @@
#include "machine/ticket.h"
#include "sound/sn76496.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/amust.cpp b/src/mame/drivers/amust.cpp
index 0f3655d3d3f..26b455ca4ca 100644
--- a/src/mame/drivers/amust.cpp
+++ b/src/mame/drivers/amust.cpp
@@ -90,6 +90,7 @@ ToDo:
#include "machine/upd765.h"
#include "sound/beep.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/anes.cpp b/src/mame/drivers/anes.cpp
index 35e819258fa..fcf16ab1a80 100644
--- a/src/mame/drivers/anes.cpp
+++ b/src/mame/drivers/anes.cpp
@@ -23,6 +23,7 @@ Sanma - 3nin-uchi Mahjong is another ANES game confirmed running on the same har
*/
#include "emu.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "cpu/z80/z80.h"
diff --git a/src/mame/drivers/angelkds.cpp b/src/mame/drivers/angelkds.cpp
index a40064b2a51..f1fb093f8e7 100644
--- a/src/mame/drivers/angelkds.cpp
+++ b/src/mame/drivers/angelkds.cpp
@@ -131,6 +131,7 @@ Dumped by Chackn
#include "machine/segacrp2_device.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/anzterm.cpp b/src/mame/drivers/anzterm.cpp
index 1f3b7fe95bd..80322e5e53a 100644
--- a/src/mame/drivers/anzterm.cpp
+++ b/src/mame/drivers/anzterm.cpp
@@ -350,6 +350,7 @@ Components:
#include "machine/6850acia.h"
#include "machine/i8214.h"
#include "machine/mc6854.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/apc.cpp b/src/mame/drivers/apc.cpp
index 4fa42e45eb6..db0526a8fec 100644
--- a/src/mame/drivers/apc.cpp
+++ b/src/mame/drivers/apc.cpp
@@ -62,6 +62,7 @@
#include "machine/upd765.h"
#include "sound/upd1771.h"
#include "video/upd7220.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/apple1.cpp b/src/mame/drivers/apple1.cpp
index 0f3f4e42899..fccc5159e6b 100644
--- a/src/mame/drivers/apple1.cpp
+++ b/src/mame/drivers/apple1.cpp
@@ -80,6 +80,7 @@
#include "bus/a1bus/a1cassette.h"
#include "bus/a1bus/a1cffa.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/applix.cpp b/src/mame/drivers/applix.cpp
index ae6c46d3850..0f7ed44a649 100644
--- a/src/mame/drivers/applix.cpp
+++ b/src/mame/drivers/applix.cpp
@@ -49,6 +49,7 @@
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/apricot.cpp b/src/mame/drivers/apricot.cpp
index 28d5af7ad5c..503251aefa9 100644
--- a/src/mame/drivers/apricot.cpp
+++ b/src/mame/drivers/apricot.cpp
@@ -30,6 +30,7 @@
#include "machine/z80sio.h"
#include "sound/sn76496.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/apricotf.cpp b/src/mame/drivers/apricotf.cpp
index a131d29fea7..579c2f51a26 100644
--- a/src/mame/drivers/apricotf.cpp
+++ b/src/mame/drivers/apricotf.cpp
@@ -35,6 +35,7 @@
#include "machine/wd_fdc.h"
#include "machine/z80ctc.h"
#include "machine/z80sio.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/apricotp.cpp b/src/mame/drivers/apricotp.cpp
index 3e31cbb28e8..1e5cb1b6ebd 100644
--- a/src/mame/drivers/apricotp.cpp
+++ b/src/mame/drivers/apricotp.cpp
@@ -38,6 +38,7 @@
#include "machine/z80sio.h"
#include "sound/sn76496.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "apricotp.lh"
diff --git a/src/mame/drivers/aristmk4.cpp b/src/mame/drivers/aristmk4.cpp
index c5691234b1a..38526f33537 100644
--- a/src/mame/drivers/aristmk4.cpp
+++ b/src/mame/drivers/aristmk4.cpp
@@ -328,6 +328,7 @@
#include "machine/mc146818.h" // DALLAS1287 is functionally compatible.
#include "machine/nvram.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/aristmk6.cpp b/src/mame/drivers/aristmk6.cpp
index 79b3196fda3..5b901c598b8 100644
--- a/src/mame/drivers/aristmk6.cpp
+++ b/src/mame/drivers/aristmk6.cpp
@@ -29,6 +29,7 @@ notes:
#include "cpu/sh/sh4.h"
#include "machine/ins8250.h"
#include "machine/eepromser.h"
+#include "emupal.h"
#include "screen.h"
class aristmk6_state : public driver_device
diff --git a/src/mame/drivers/ashnojoe.cpp b/src/mame/drivers/ashnojoe.cpp
index 4677bbce8f5..215fde4e0ae 100644
--- a/src/mame/drivers/ashnojoe.cpp
+++ b/src/mame/drivers/ashnojoe.cpp
@@ -80,6 +80,7 @@ Coin B is not used
#include "cpu/z80/z80.h"
#include "cpu/m68000/m68000.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/asterix.cpp b/src/mame/drivers/asterix.cpp
index 0333f73d71e..0d5b845667b 100644
--- a/src/mame/drivers/asterix.cpp
+++ b/src/mame/drivers/asterix.cpp
@@ -21,6 +21,7 @@ TODO:
#include "machine/eepromser.h"
#include "sound/ym2151.h"
#include "sound/k053260.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/astinvad.cpp b/src/mame/drivers/astinvad.cpp
index 5850094cc28..d074b6fb240 100644
--- a/src/mame/drivers/astinvad.cpp
+++ b/src/mame/drivers/astinvad.cpp
@@ -22,6 +22,7 @@ DIP locations verified for:
#include "cpu/z80/z80.h"
#include "machine/i8255.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/astrcorp.cpp b/src/mame/drivers/astrcorp.cpp
index 1dbdb5ae03d..a735a95839a 100644
--- a/src/mame/drivers/astrcorp.cpp
+++ b/src/mame/drivers/astrcorp.cpp
@@ -43,6 +43,7 @@ To do:
#include "machine/ticket.h"
#include "machine/timer.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/at.cpp b/src/mame/drivers/at.cpp
index 553bc7ba689..c8f8ba62b69 100644
--- a/src/mame/drivers/at.cpp
+++ b/src/mame/drivers/at.cpp
@@ -96,6 +96,7 @@ Mass storage: Floppy: 5.25" 1.2Mb, HDD: 40Mb
#include "machine/ram.h"
#include "machine/vt82c496.h"
#include "machine/wd7600.h"
+#include "emupal.h"
#include "softlist_dev.h"
#include "speaker.h"
diff --git a/src/mame/drivers/atarisy4.cpp b/src/mame/drivers/atarisy4.cpp
index 0eb092e98ab..c51320b66ad 100644
--- a/src/mame/drivers/atarisy4.cpp
+++ b/src/mame/drivers/atarisy4.cpp
@@ -20,6 +20,7 @@
#include "cpu/m68000/m68000.h"
#include "cpu/tms32010/tms32010.h"
#include "video/poly.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/atetris.cpp b/src/mame/drivers/atetris.cpp
index 325b7496b55..cf49be06eb8 100644
--- a/src/mame/drivers/atetris.cpp
+++ b/src/mame/drivers/atetris.cpp
@@ -56,6 +56,7 @@
#include "sound/pokey.h"
#include "machine/eeprompar.h"
#include "machine/watchdog.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/atlantis.cpp b/src/mame/drivers/atlantis.cpp
index 0ad304b62f9..f2de1df68a8 100644
--- a/src/mame/drivers/atlantis.cpp
+++ b/src/mame/drivers/atlantis.cpp
@@ -53,6 +53,7 @@
#include "video/zeus2.h"
#include "machine/timekpr.h"
#include "coreutil.h"
+#include "emupal.h"
// Reset bits
#define RESET_IOASIC 0x01
diff --git a/src/mame/drivers/atronic.cpp b/src/mame/drivers/atronic.cpp
index 68be24026b8..69689acf5ce 100644
--- a/src/mame/drivers/atronic.cpp
+++ b/src/mame/drivers/atronic.cpp
@@ -16,6 +16,7 @@
#include "emu.h"
#include "cpu/z180/z180.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/att4425.cpp b/src/mame/drivers/att4425.cpp
index a0b48557dbc..1c5fb4576ce 100644
--- a/src/mame/drivers/att4425.cpp
+++ b/src/mame/drivers/att4425.cpp
@@ -26,6 +26,7 @@
#include "bus/rs232/rs232.h"
#include "machine/keyboard.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/attache.cpp b/src/mame/drivers/attache.cpp
index 0e4d8f25136..d8a86599d41 100644
--- a/src/mame/drivers/attache.cpp
+++ b/src/mame/drivers/attache.cpp
@@ -82,6 +82,7 @@
#include "cpu/i86/i86.h"
#include "sound/ay8910.h"
#include "video/tms9927.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/atvtrack.cpp b/src/mame/drivers/atvtrack.cpp
index e634ebe245f..4c0de0683d2 100644
--- a/src/mame/drivers/atvtrack.cpp
+++ b/src/mame/drivers/atvtrack.cpp
@@ -103,6 +103,7 @@ TODO:
#include "emu.h"
#include "cpu/sh/sh4.h"
#include "debugger.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/avt.cpp b/src/mame/drivers/avt.cpp
index 901cd20c5fd..7d84ec32727 100644
--- a/src/mame/drivers/avt.cpp
+++ b/src/mame/drivers/avt.cpp
@@ -424,6 +424,7 @@
#include "video/mc6845.h"
#include "machine/z80ctc.h"
#include "machine/z80pio.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ax20.cpp b/src/mame/drivers/ax20.cpp
index 03f903c79e2..d454d4192bc 100644
--- a/src/mame/drivers/ax20.cpp
+++ b/src/mame/drivers/ax20.cpp
@@ -19,6 +19,7 @@
#include "emu.h"
#include "bus/isa/fdc.h"
#include "cpu/i86/i86.h"
+#include "emupal.h"
#include "screen.h"
class ax20_state : public driver_device
diff --git a/src/mame/drivers/b16.cpp b/src/mame/drivers/b16.cpp
index e208a0579e7..8f510d1084c 100644
--- a/src/mame/drivers/b16.cpp
+++ b/src/mame/drivers/b16.cpp
@@ -17,6 +17,7 @@
#include "cpu/i86/i86.h"
#include "machine/am9517a.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/backfire.cpp b/src/mame/drivers/backfire.cpp
index ee018bf5fba..ec4e7b3dd35 100644
--- a/src/mame/drivers/backfire.cpp
+++ b/src/mame/drivers/backfire.cpp
@@ -23,6 +23,7 @@
#include "cpu/arm/arm.h"
#include "video/deco16ic.h"
#include "video/decospr.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/banctec.cpp b/src/mame/drivers/banctec.cpp
index becd7e8476b..4c24975b1b1 100644
--- a/src/mame/drivers/banctec.cpp
+++ b/src/mame/drivers/banctec.cpp
@@ -19,6 +19,7 @@
#include "cpu/mcs51/mcs51.h"
#include "cpu/m6800/m6801.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
class banctec_state : public driver_device
diff --git a/src/mame/drivers/bbusters.cpp b/src/mame/drivers/bbusters.cpp
index 55785a80d0e..4cab0f3c6ee 100644
--- a/src/mame/drivers/bbusters.cpp
+++ b/src/mame/drivers/bbusters.cpp
@@ -202,6 +202,7 @@ foreground and not behind the moving elevator layer.
#include "machine/nvram.h"
#include "sound/2608intf.h"
#include "sound/2610intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bcs3.cpp b/src/mame/drivers/bcs3.cpp
index 8d3aa63ee46..3bb2a888e4b 100644
--- a/src/mame/drivers/bcs3.cpp
+++ b/src/mame/drivers/bcs3.cpp
@@ -53,6 +53,7 @@
#include "machine/z80daisy.h"
#include "machine/z80ctc.h"
#include "imagedev/cassette.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/beehive.cpp b/src/mame/drivers/beehive.cpp
index e31ac4538c3..a2939fd9a80 100644
--- a/src/mame/drivers/beehive.cpp
+++ b/src/mame/drivers/beehive.cpp
@@ -22,6 +22,7 @@
#include "emu.h"
#include "cpu/i8085/i8085.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/beezer.cpp b/src/mame/drivers/beezer.cpp
index bde05859c1e..a7809b75e50 100644
--- a/src/mame/drivers/beezer.cpp
+++ b/src/mame/drivers/beezer.cpp
@@ -34,6 +34,7 @@
#include "sound/mm5837.h"
#include "sound/dac76.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bestleag.cpp b/src/mame/drivers/bestleag.cpp
index 34ec681c166..39e2529db26 100644
--- a/src/mame/drivers/bestleag.cpp
+++ b/src/mame/drivers/bestleag.cpp
@@ -23,6 +23,7 @@ Dip Locations added according to Service Mode
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bfcobra.cpp b/src/mame/drivers/bfcobra.cpp
index b1d2e115043..7ceaf5e0a22 100644
--- a/src/mame/drivers/bfcobra.cpp
+++ b/src/mame/drivers/bfcobra.cpp
@@ -84,6 +84,7 @@
#include "sound/ay8910.h"
#include "sound/upd7759.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bigbord2.cpp b/src/mame/drivers/bigbord2.cpp
index fe63b18d39e..9c1d69f9f32 100644
--- a/src/mame/drivers/bigbord2.cpp
+++ b/src/mame/drivers/bigbord2.cpp
@@ -82,6 +82,7 @@ X - change banks
#include "machine/z80sio.h"
#include "sound/beep.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/binbug.cpp b/src/mame/drivers/binbug.cpp
index 2851830d315..8cf0ece1dae 100644
--- a/src/mame/drivers/binbug.cpp
+++ b/src/mame/drivers/binbug.cpp
@@ -61,6 +61,7 @@
#include "machine/z80ctc.h"
#include "machine/z80pio.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bingoc.cpp b/src/mame/drivers/bingoc.cpp
index c490e2fc8ba..f4b3e9c3296 100644
--- a/src/mame/drivers/bingoc.cpp
+++ b/src/mame/drivers/bingoc.cpp
@@ -37,6 +37,7 @@ SOUND : YM2151 uPD7759C
#include "machine/i8251.h"
#include "sound/ym2151.h"
#include "sound/upd7759.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bingoman.cpp b/src/mame/drivers/bingoman.cpp
index ef86f484641..01193b71e4e 100644
--- a/src/mame/drivers/bingoman.cpp
+++ b/src/mame/drivers/bingoman.cpp
@@ -241,6 +241,7 @@
#include "emu.h"
#include "cpu/h8/h83002.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bingor.cpp b/src/mame/drivers/bingor.cpp
index 98461927992..0bc751bc503 100644
--- a/src/mame/drivers/bingor.cpp
+++ b/src/mame/drivers/bingor.cpp
@@ -513,6 +513,7 @@
#include "machine/msm6242.h"
#include "sound/ay8910.h"
#include "sound/saa1099.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bitgraph.cpp b/src/mame/drivers/bitgraph.cpp
index b63a6fafac5..e8f1d196457 100644
--- a/src/mame/drivers/bitgraph.cpp
+++ b/src/mame/drivers/bitgraph.cpp
@@ -55,6 +55,7 @@
#include "machine/ram.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bk.cpp b/src/mame/drivers/bk.cpp
index e3850529218..806013ab896 100644
--- a/src/mame/drivers/bk.cpp
+++ b/src/mame/drivers/bk.cpp
@@ -16,6 +16,7 @@
#include "sound/wave.h"
#include "formats/rk_cas.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/blackt96.cpp b/src/mame/drivers/blackt96.cpp
index 597015ad286..3fe3c7415d2 100644
--- a/src/mame/drivers/blackt96.cpp
+++ b/src/mame/drivers/blackt96.cpp
@@ -83,6 +83,7 @@ Bugs (all of these looks BTANBs):
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
#include "video/snk68_spr.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/blitz68k.cpp b/src/mame/drivers/blitz68k.cpp
index 6fe24bde4d7..9a825e2abd6 100644
--- a/src/mame/drivers/blitz68k.cpp
+++ b/src/mame/drivers/blitz68k.cpp
@@ -51,6 +51,7 @@ To Do:
#include "sound/saa1099.h"
#include "video/mc6845.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/blockade.cpp b/src/mame/drivers/blockade.cpp
index a4d85844e73..a472e834430 100644
--- a/src/mame/drivers/blockade.cpp
+++ b/src/mame/drivers/blockade.cpp
@@ -15,6 +15,8 @@
#include "cpu/i8085/i8085.h"
#include "sound/discrete.h"
#include "sound/samples.h"
+#include "emupal.h"
+
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/blockhl.cpp b/src/mame/drivers/blockhl.cpp
index 3c85c1e2be0..df5007f2c27 100644
--- a/src/mame/drivers/blockhl.cpp
+++ b/src/mame/drivers/blockhl.cpp
@@ -29,6 +29,7 @@
#include "video/k052109.h"
#include "video/k051960.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/blocktax.cpp b/src/mame/drivers/blocktax.cpp
index f035048e8ce..e37a116297a 100644
--- a/src/mame/drivers/blocktax.cpp
+++ b/src/mame/drivers/blocktax.cpp
@@ -32,6 +32,7 @@ there is no code to emulate tho as it is all inside the MCU.
#include "emu.h"
#include "cpu/mcs51/mcs51.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bmcbowl.cpp b/src/mame/drivers/bmcbowl.cpp
index c70e04aaf34..57803ab89b1 100644
--- a/src/mame/drivers/bmcbowl.cpp
+++ b/src/mame/drivers/bmcbowl.cpp
@@ -109,6 +109,7 @@ Main board:
#include "sound/okim6295.h"
#include "sound/ym2413.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bmcpokr.cpp b/src/mame/drivers/bmcpokr.cpp
index ac8e94206d5..288882bc8de 100644
--- a/src/mame/drivers/bmcpokr.cpp
+++ b/src/mame/drivers/bmcpokr.cpp
@@ -23,6 +23,7 @@ Other: BMC B816140 (CPLD)
#include "machine/nvram.h"
#include "machine/ticket.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bmjr.cpp b/src/mame/drivers/bmjr.cpp
index f6ba4bfa55d..ed44996f891 100644
--- a/src/mame/drivers/bmjr.cpp
+++ b/src/mame/drivers/bmjr.cpp
@@ -19,6 +19,7 @@
#include "imagedev/cassette.h"
#include "sound/beep.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/bml3.cpp b/src/mame/drivers/bml3.cpp
index 86104e38e26..9602b333156 100644
--- a/src/mame/drivers/bml3.cpp
+++ b/src/mame/drivers/bml3.cpp
@@ -25,6 +25,7 @@
#include "sound/spkrdev.h"
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "bus/bml3/bml3bus.h"
#include "bus/bml3/bml3mp1802.h"
diff --git a/src/mame/drivers/bntyhunt.cpp b/src/mame/drivers/bntyhunt.cpp
index caedd7b86b1..780947f4050 100644
--- a/src/mame/drivers/bntyhunt.cpp
+++ b/src/mame/drivers/bntyhunt.cpp
@@ -9,6 +9,7 @@
#include "emu.h"
#include "cpu/i386/i386.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/boxer.cpp b/src/mame/drivers/boxer.cpp
index 1e3783449db..eb3d71d70d1 100644
--- a/src/mame/drivers/boxer.cpp
+++ b/src/mame/drivers/boxer.cpp
@@ -13,6 +13,7 @@
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "machine/watchdog.h"
+#include "emupal.h"
#include "screen.h"
#define MASTER_CLOCK XTAL(12'096'000)
diff --git a/src/mame/drivers/buster.cpp b/src/mame/drivers/buster.cpp
index 5626513dfa9..310e851cde5 100644
--- a/src/mame/drivers/buster.cpp
+++ b/src/mame/drivers/buster.cpp
@@ -17,6 +17,7 @@ TODO:
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/c10.cpp b/src/mame/drivers/c10.cpp
index f7524854a28..bde2d2c15d0 100644
--- a/src/mame/drivers/c10.cpp
+++ b/src/mame/drivers/c10.cpp
@@ -18,6 +18,7 @@ constantly looking at.
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/c65.cpp b/src/mame/drivers/c65.cpp
index f7024b19ccb..770b4a7fd61 100644
--- a/src/mame/drivers/c65.cpp
+++ b/src/mame/drivers/c65.cpp
@@ -29,6 +29,7 @@ http://www.zimmers.net/anonftp/pub/cbm/schematics/computers/C64DX_aka_C65_System
#include "emu.h"
#include "cpu/m6502/m4510.h"
#include "machine/mos6526.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist_dev.h"
#include "speaker.h"
diff --git a/src/mame/drivers/c900.cpp b/src/mame/drivers/c900.cpp
index 3fdc267ae98..3832685fd5c 100644
--- a/src/mame/drivers/c900.cpp
+++ b/src/mame/drivers/c900.cpp
@@ -31,6 +31,7 @@ into the weeds (jumps to 00000).
//#include "bus/rs232/rs232.h"
#include "machine/terminal.h"
#include "machine/z8536.h"
+#include "emupal.h"
class c900_state : public driver_device
diff --git a/src/mame/drivers/cabaret.cpp b/src/mame/drivers/cabaret.cpp
index 014e4017219..299a58d35c1 100644
--- a/src/mame/drivers/cabaret.cpp
+++ b/src/mame/drivers/cabaret.cpp
@@ -27,6 +27,7 @@ are the same of IGS. AMT may be previous IGS name.
#include "cpu/z180/z180.h"
#include "machine/i8255.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/calcune.cpp b/src/mame/drivers/calcune.cpp
index 9cc3d7aeff4..26e813d096b 100644
--- a/src/mame/drivers/calcune.cpp
+++ b/src/mame/drivers/calcune.cpp
@@ -21,6 +21,7 @@
#include "sound/ymz280b.h"
#include "video/315_5313.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "speaker.h"
#define MASTER_CLOCK_NTSC 53693175
diff --git a/src/mame/drivers/calorie.cpp b/src/mame/drivers/calorie.cpp
index 019d4cec9ab..2d14d900c9c 100644
--- a/src/mame/drivers/calorie.cpp
+++ b/src/mame/drivers/calorie.cpp
@@ -84,6 +84,7 @@ Notes:
#include "machine/gen_latch.h"
#include "machine/segacrp2_device.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/camplynx.cpp b/src/mame/drivers/camplynx.cpp
index eb4133c01aa..491e9a61f75 100644
--- a/src/mame/drivers/camplynx.cpp
+++ b/src/mame/drivers/camplynx.cpp
@@ -162,6 +162,7 @@
#include "sound/volt_reg.h"
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "formats/camplynx_cas.h"
#include "formats/camplynx_dsk.h"
diff --git a/src/mame/drivers/candela.cpp b/src/mame/drivers/candela.cpp
index d659b7027df..efc6c7ad76c 100644
--- a/src/mame/drivers/candela.cpp
+++ b/src/mame/drivers/candela.cpp
@@ -45,6 +45,7 @@
// Features
#include "imagedev/cassette.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
//**************************************************************************
diff --git a/src/mame/drivers/cardline.cpp b/src/mame/drivers/cardline.cpp
index 35fb45c34ef..9a673d6ef56 100644
--- a/src/mame/drivers/cardline.cpp
+++ b/src/mame/drivers/cardline.cpp
@@ -25,6 +25,7 @@
#include "cpu/mcs51/mcs51.h"
#include "sound/okim6295.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/carjmbre.cpp b/src/mame/drivers/carjmbre.cpp
index d10255c32a4..c03922f062a 100644
--- a/src/mame/drivers/carjmbre.cpp
+++ b/src/mame/drivers/carjmbre.cpp
@@ -46,6 +46,7 @@
#include "machine/gen_latch.h"
#include "sound/ay8910.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/carrera.cpp b/src/mame/drivers/carrera.cpp
index ab24a98c3ee..8ed52ba75f6 100644
--- a/src/mame/drivers/carrera.cpp
+++ b/src/mame/drivers/carrera.cpp
@@ -52,6 +52,7 @@ TODO:
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/casloopy.cpp b/src/mame/drivers/casloopy.cpp
index bcfc55c3a2f..ff2df37a817 100644
--- a/src/mame/drivers/casloopy.cpp
+++ b/src/mame/drivers/casloopy.cpp
@@ -153,6 +153,7 @@ PCB 'Z545-1 A240570-1'
#include "cpu/sh/sh2.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/caswin.cpp b/src/mame/drivers/caswin.cpp
index b0ee41ac3fa..bd16857a7cc 100644
--- a/src/mame/drivers/caswin.cpp
+++ b/src/mame/drivers/caswin.cpp
@@ -71,6 +71,7 @@ TODO:
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cavepc.cpp b/src/mame/drivers/cavepc.cpp
index 3eee5fc0f9a..b5d03cd967a 100644
--- a/src/mame/drivers/cavepc.cpp
+++ b/src/mame/drivers/cavepc.cpp
@@ -52,6 +52,7 @@
#include "emu.h"
#include "cpu/i386/i386.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/cb2001.cpp b/src/mame/drivers/cb2001.cpp
index 2544f3abf59..c5e0da8751c 100644
--- a/src/mame/drivers/cb2001.cpp
+++ b/src/mame/drivers/cb2001.cpp
@@ -46,6 +46,7 @@ this seems more like 8-bit hardware, maybe it should be v25, not v35...
#include "cpu/nec/v25.h"
#include "machine/i8255.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cball.cpp b/src/mame/drivers/cball.cpp
index 103ca5bde75..07f26abfe6a 100644
--- a/src/mame/drivers/cball.cpp
+++ b/src/mame/drivers/cball.cpp
@@ -8,6 +8,7 @@
#include "emu.h"
#include "cpu/m6800/m6800.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/cbm2.cpp b/src/mame/drivers/cbm2.cpp
index eda8c8d6bdc..73791f41bfa 100644
--- a/src/mame/drivers/cbm2.cpp
+++ b/src/mame/drivers/cbm2.cpp
@@ -11,6 +11,7 @@
*/
#include "emu.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cc40.cpp b/src/mame/drivers/cc40.cpp
index 50cb24f9f8e..d6bffdb6b5a 100644
--- a/src/mame/drivers/cc40.cpp
+++ b/src/mame/drivers/cc40.cpp
@@ -81,6 +81,7 @@
#include "sound/volt_reg.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cd2650.cpp b/src/mame/drivers/cd2650.cpp
index e37dda0fcdd..e989d0eb724 100644
--- a/src/mame/drivers/cd2650.cpp
+++ b/src/mame/drivers/cd2650.cpp
@@ -57,6 +57,7 @@ TODO
#include "machine/keyboard.h"
#include "sound/beep.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cdc721.cpp b/src/mame/drivers/cdc721.cpp
index 6b8506e55da..e3bd4e15691 100644
--- a/src/mame/drivers/cdc721.cpp
+++ b/src/mame/drivers/cdc721.cpp
@@ -20,6 +20,7 @@ Control Data Corporation CDC 721 Terminal (Viking)
#include "machine/output_latch.h"
#include "machine/z80ctc.h"
#include "video/tms9927.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/cdi.cpp b/src/mame/drivers/cdi.cpp
index eda94167e4a..b170703b8f8 100644
--- a/src/mame/drivers/cdi.cpp
+++ b/src/mame/drivers/cdi.cpp
@@ -35,6 +35,7 @@ TODO:
#include "machine/timekpr.h"
#include "sound/cdda.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cedar_magnet.cpp b/src/mame/drivers/cedar_magnet.cpp
index 242bf24ca8e..7223111e9f4 100644
--- a/src/mame/drivers/cedar_magnet.cpp
+++ b/src/mame/drivers/cedar_magnet.cpp
@@ -120,6 +120,7 @@ I suspect the additional memory was an afterthought.
#include "machine/cedar_magnet_sprite.h"
#include "machine/cedar_magnet_flop.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/cesclass.cpp b/src/mame/drivers/cesclass.cpp
index 893d94232c6..ca6a7442e3c 100644
--- a/src/mame/drivers/cesclass.cpp
+++ b/src/mame/drivers/cesclass.cpp
@@ -26,6 +26,7 @@
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cfx9850.cpp b/src/mame/drivers/cfx9850.cpp
index ba9d3e4fde3..66e938c7ba0 100644
--- a/src/mame/drivers/cfx9850.cpp
+++ b/src/mame/drivers/cfx9850.cpp
@@ -27,6 +27,7 @@ Debugging information:
#include "emu.h"
#include "cpu/hcd62121/hcd62121.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
diff --git a/src/mame/drivers/champbwl.cpp b/src/mame/drivers/champbwl.cpp
index c6d740f1e26..6176e04d902 100644
--- a/src/mame/drivers/champbwl.cpp
+++ b/src/mame/drivers/champbwl.cpp
@@ -158,6 +158,7 @@ Notes:
#include "machine/ticket.h"
#include "sound/x1_010.h"
#include "video/seta001.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/chanbara.cpp b/src/mame/drivers/chanbara.cpp
index 2e463f6083f..1781d8bb7b9 100644
--- a/src/mame/drivers/chanbara.cpp
+++ b/src/mame/drivers/chanbara.cpp
@@ -53,6 +53,7 @@ ToDo:
#include "emu.h"
#include "cpu/m6809/m6809.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/chance32.cpp b/src/mame/drivers/chance32.cpp
index 915ba6ef0c0..1a8a8141860 100644
--- a/src/mame/drivers/chance32.cpp
+++ b/src/mame/drivers/chance32.cpp
@@ -22,6 +22,7 @@
#include "cpu/z80/z80.h"
#include "sound/okim6295.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/channelf.cpp b/src/mame/drivers/channelf.cpp
index aa5ab511afd..5d1c3979125 100644
--- a/src/mame/drivers/channelf.cpp
+++ b/src/mame/drivers/channelf.cpp
@@ -16,6 +16,7 @@
#include "emu.h"
#include "includes/channelf.h"
+
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/chinsan.cpp b/src/mame/drivers/chinsan.cpp
index d92835933cd..35170468855 100644
--- a/src/mame/drivers/chinsan.cpp
+++ b/src/mame/drivers/chinsan.cpp
@@ -26,6 +26,7 @@
#include "machine/i8255.h"
#include "sound/2203intf.h"
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/chsuper.cpp b/src/mame/drivers/chsuper.cpp
index 63dae8dc6a6..5e225f995ef 100644
--- a/src/mame/drivers/chsuper.cpp
+++ b/src/mame/drivers/chsuper.cpp
@@ -26,6 +26,7 @@
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/clcd.cpp b/src/mame/drivers/clcd.cpp
index 9225f325554..1b2aa9f2a4f 100644
--- a/src/mame/drivers/clcd.cpp
+++ b/src/mame/drivers/clcd.cpp
@@ -23,6 +23,7 @@
#include "machine/ram.h"
#include "machine/nvram.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cmi.cpp b/src/mame/drivers/cmi.cpp
index 1b422a32cf4..ff2803bf4f6 100644
--- a/src/mame/drivers/cmi.cpp
+++ b/src/mame/drivers/cmi.cpp
@@ -119,6 +119,7 @@
#include "video/dl1416.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cmmb.cpp b/src/mame/drivers/cmmb.cpp
index 532af268fbf..2491c380e25 100644
--- a/src/mame/drivers/cmmb.cpp
+++ b/src/mame/drivers/cmmb.cpp
@@ -52,6 +52,7 @@ OSC @ 72.576MHz
#include "emu.h"
#include "cpu/m6502/m65sc02.h"
#include "machine/at29x.h"
+#include "emupal.h"
#include "screen.h"
#define MAIN_CLOCK XTAL(72'576'000)
diff --git a/src/mame/drivers/cntsteer.cpp b/src/mame/drivers/cntsteer.cpp
index c4060615e8e..3b45298b954 100644
--- a/src/mame/drivers/cntsteer.cpp
+++ b/src/mame/drivers/cntsteer.cpp
@@ -36,6 +36,7 @@
#include "sound/ay8910.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cobra.cpp b/src/mame/drivers/cobra.cpp
index 335e72f8de4..761d5eb8b63 100644
--- a/src/mame/drivers/cobra.cpp
+++ b/src/mame/drivers/cobra.cpp
@@ -327,6 +327,7 @@
#include "video/rgbutil.h"
#include "sound/rf5c400.h"
#include "sound/dmadac.h"
+#include "emupal.h"
#include "speaker.h"
#define GFXFIFO_IN_VERBOSE 0
diff --git a/src/mame/drivers/cocoloco.cpp b/src/mame/drivers/cocoloco.cpp
index 76e64f652f7..e2a960167a2 100644
--- a/src/mame/drivers/cocoloco.cpp
+++ b/src/mame/drivers/cocoloco.cpp
@@ -182,6 +182,7 @@
#include "cpu/m6502/m6502.h"
#include "machine/netlist.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/coinmstr.cpp b/src/mame/drivers/coinmstr.cpp
index 63718f814fa..dfc087e0b72 100644
--- a/src/mame/drivers/coinmstr.cpp
+++ b/src/mame/drivers/coinmstr.cpp
@@ -133,6 +133,7 @@
#include "video/mc6845.h"
#include "sound/ay8910.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/coinmvga.cpp b/src/mame/drivers/coinmvga.cpp
index 0dc08c63f84..caefc109786 100644
--- a/src/mame/drivers/coinmvga.cpp
+++ b/src/mame/drivers/coinmvga.cpp
@@ -221,6 +221,7 @@
#include "sound/ymz280b.h"
#include "machine/nvram.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/comebaby.cpp b/src/mame/drivers/comebaby.cpp
index 9487f173312..2729e4e236f 100644
--- a/src/mame/drivers/comebaby.cpp
+++ b/src/mame/drivers/comebaby.cpp
@@ -185,6 +185,7 @@ Nearly everything.
#include "emu.h"
#include "cpu/i386/i386.h"
#include "machine/pcshare.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/compucolor.cpp b/src/mame/drivers/compucolor.cpp
index 6efe22677d5..4a3d829ae4a 100644
--- a/src/mame/drivers/compucolor.cpp
+++ b/src/mame/drivers/compucolor.cpp
@@ -28,6 +28,7 @@
#include "machine/ripple_counter.h"
#include "machine/tms5501.h"
#include "video/tms9927.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/comquest.cpp b/src/mame/drivers/comquest.cpp
index 8c9cd3727af..35af6fbf93b 100644
--- a/src/mame/drivers/comquest.cpp
+++ b/src/mame/drivers/comquest.cpp
@@ -45,6 +45,7 @@ icq3250a-d
#include "includes/comquest.h"
#include "cpu/m6805/m6805.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/concept.cpp b/src/mame/drivers/concept.cpp
index 3a51b4ffc3d..44ce8d2e8b5 100644
--- a/src/mame/drivers/concept.cpp
+++ b/src/mame/drivers/concept.cpp
@@ -39,6 +39,7 @@
#include "bus/a2bus/corvfdc01.h"
#include "bus/a2bus/corvfdc02.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/controlid.cpp b/src/mame/drivers/controlid.cpp
index 0341e259029..79e1bbcde32 100644
--- a/src/mame/drivers/controlid.cpp
+++ b/src/mame/drivers/controlid.cpp
@@ -31,6 +31,7 @@
#include "emu.h"
#include "cpu/mcs51/mcs51.h"
#include "video/nt7534.h"
+#include "emupal.h"
#include "screen.h"
class controlidx628_state : public driver_device
diff --git a/src/mame/drivers/coolridr.cpp b/src/mame/drivers/coolridr.cpp
index ab1647537dd..a154666ebf9 100644
--- a/src/mame/drivers/coolridr.cpp
+++ b/src/mame/drivers/coolridr.cpp
@@ -288,6 +288,7 @@ to the same bank as defined through A20.
#include "machine/timer.h"
#include "machine/315_5649.h"
#include "sound/scsp.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/corona.cpp b/src/mame/drivers/corona.cpp
index 60f2473e6d8..e907b7cd7f1 100644
--- a/src/mame/drivers/corona.cpp
+++ b/src/mame/drivers/corona.cpp
@@ -305,6 +305,7 @@
#include "machine/gen_latch.h"
#include "machine/nvram.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/craft.cpp b/src/mame/drivers/craft.cpp
index 4569132d9ed..e7568a514a0 100644
--- a/src/mame/drivers/craft.cpp
+++ b/src/mame/drivers/craft.cpp
@@ -12,6 +12,7 @@
#include "cpu/avr8/avr8.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/crospang.cpp b/src/mame/drivers/crospang.cpp
index 099bcaacd0a..7abdf35a29c 100644
--- a/src/mame/drivers/crospang.cpp
+++ b/src/mame/drivers/crospang.cpp
@@ -39,6 +39,7 @@
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
#include "sound/3812intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/crystal.cpp b/src/mame/drivers/crystal.cpp
index 73861cd45c4..c0819105e1d 100644
--- a/src/mame/drivers/crystal.cpp
+++ b/src/mame/drivers/crystal.cpp
@@ -233,6 +233,7 @@ GUN_xP are 6 pin gun connectors (pins 3-6 match the UNICO sytle guns):
#include "machine/nvram.h"
#include "sound/vrender0.h"
#include "video/vrender0.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cswat.cpp b/src/mame/drivers/cswat.cpp
index 797c67186b2..2c281e6a6e7 100644
--- a/src/mame/drivers/cswat.cpp
+++ b/src/mame/drivers/cswat.cpp
@@ -26,6 +26,7 @@ TODO:
#include "cpu/m6809/m6809.h"
#include "cpu/mb88xx/mb88xx.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/ct486.cpp b/src/mame/drivers/ct486.cpp
index 73298bdb54c..ff160bd398a 100644
--- a/src/mame/drivers/ct486.cpp
+++ b/src/mame/drivers/ct486.cpp
@@ -19,6 +19,7 @@
#include "bus/pc_kbd/keyboards.h"
#include "bus/pc_kbd/pc_kbdc.h"
+#include "emupal.h"
#include "softlist.h"
#include "softlist_dev.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cultures.cpp b/src/mame/drivers/cultures.cpp
index 324dc08599c..23c30876da7 100644
--- a/src/mame/drivers/cultures.cpp
+++ b/src/mame/drivers/cultures.cpp
@@ -14,6 +14,7 @@
#include "cpu/z80/z80.h"
#include "machine/bankdev.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cupidon.cpp b/src/mame/drivers/cupidon.cpp
index 85ea4ef11ff..192cf2cd772 100644
--- a/src/mame/drivers/cupidon.cpp
+++ b/src/mame/drivers/cupidon.cpp
@@ -15,6 +15,7 @@
#include "emu.h"
#include "machine/68340.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cv1k.cpp b/src/mame/drivers/cv1k.cpp
index c823b9784cf..526a5a3e569 100644
--- a/src/mame/drivers/cv1k.cpp
+++ b/src/mame/drivers/cv1k.cpp
@@ -179,6 +179,7 @@ Common game codes:
#include "sound/ymz770.h"
#include "video/epic12.h"
+#include "emupal.h"
#include "profiler.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cxhumax.cpp b/src/mame/drivers/cxhumax.cpp
index 50badb8eaca..61cf57dd5ad 100644
--- a/src/mame/drivers/cxhumax.cpp
+++ b/src/mame/drivers/cxhumax.cpp
@@ -15,6 +15,7 @@
#include "emu.h"
#include "includes/cxhumax.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/cybertnk.cpp b/src/mame/drivers/cybertnk.cpp
index abeb93dc0c9..8c10e05baa9 100644
--- a/src/mame/drivers/cybertnk.cpp
+++ b/src/mame/drivers/cybertnk.cpp
@@ -174,6 +174,7 @@ lev 7 : 0x7c : 0000 07e0 - input device clear?
#include "cpu/z80/z80.h"
#include "machine/gen_latch.h"
#include "sound/8950intf.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cyclemb.cpp b/src/mame/drivers/cyclemb.cpp
index 07c0f605dff..909db88ccda 100644
--- a/src/mame/drivers/cyclemb.cpp
+++ b/src/mame/drivers/cyclemb.cpp
@@ -77,6 +77,7 @@ Dumped by Chack'n
#include "cpu/z80/z80.h"
#include "machine/gen_latch.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/cz101.cpp b/src/mame/drivers/cz101.cpp
index 7a067fb4659..efb8e92499c 100644
--- a/src/mame/drivers/cz101.cpp
+++ b/src/mame/drivers/cz101.cpp
@@ -18,6 +18,7 @@
#include "cpu/upd7810/upd7811.h"
#include "machine/clock.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "screen.h"
#include "cz101.lh"
diff --git a/src/mame/drivers/d6800.cpp b/src/mame/drivers/d6800.cpp
index 1f1785f6c7c..2f2d9d15e03 100644
--- a/src/mame/drivers/d6800.cpp
+++ b/src/mame/drivers/d6800.cpp
@@ -46,6 +46,7 @@
#include "machine/timer.h"
#include "sound/beep.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/d9final.cpp b/src/mame/drivers/d9final.cpp
index 3449d3cf6db..9a777f0f016 100644
--- a/src/mame/drivers/d9final.cpp
+++ b/src/mame/drivers/d9final.cpp
@@ -29,6 +29,7 @@
#include "machine/nvram.h"
#include "sound/es8712.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dacholer.cpp b/src/mame/drivers/dacholer.cpp
index 8b81942cf4e..b9b4602c55b 100644
--- a/src/mame/drivers/dacholer.cpp
+++ b/src/mame/drivers/dacholer.cpp
@@ -38,6 +38,7 @@
#include "sound/msm5205.h"
#include "sound/ay8910.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dai3wksi.cpp b/src/mame/drivers/dai3wksi.cpp
index 407159aa920..d828af52548 100644
--- a/src/mame/drivers/dai3wksi.cpp
+++ b/src/mame/drivers/dai3wksi.cpp
@@ -43,6 +43,7 @@ Driver Notes:
#include "machine/rescap.h"
#include "sound/samples.h"
#include "sound/sn76477.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dblcrown.cpp b/src/mame/drivers/dblcrown.cpp
index a80e9244a72..091397b5d83 100644
--- a/src/mame/drivers/dblcrown.cpp
+++ b/src/mame/drivers/dblcrown.cpp
@@ -51,6 +51,7 @@
#include "machine/nvram.h"
#include "machine/timer.h"
#include "machine/watchdog.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dblewing.cpp b/src/mame/drivers/dblewing.cpp
index 40583b4bb55..c1121bb4b47 100644
--- a/src/mame/drivers/dblewing.cpp
+++ b/src/mame/drivers/dblewing.cpp
@@ -79,6 +79,7 @@ Notes:
#include "sound/ym2151.h"
#include "video/deco16ic.h"
#include "video/decospr.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dccons.cpp b/src/mame/drivers/dccons.cpp
index 1ff2eca884c..66e8a137146 100644
--- a/src/mame/drivers/dccons.cpp
+++ b/src/mame/drivers/dccons.cpp
@@ -270,6 +270,7 @@
#include "machine/dc-ctrl.h"
#include "machine/gdrom.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "softlist.h"
diff --git a/src/mame/drivers/dct11em.cpp b/src/mame/drivers/dct11em.cpp
index aef4b1f403b..529ed9c8c96 100644
--- a/src/mame/drivers/dct11em.cpp
+++ b/src/mame/drivers/dct11em.cpp
@@ -10,6 +10,7 @@
#include "emu.h"
#include "cpu/t11/t11.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/ddayjlc.cpp b/src/mame/drivers/ddayjlc.cpp
index 0b2a55409cc..57888258262 100644
--- a/src/mame/drivers/ddayjlc.cpp
+++ b/src/mame/drivers/ddayjlc.cpp
@@ -64,6 +64,7 @@ $842f = lives
#include "cpu/z80/z80.h"
#include "machine/gen_latch.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ddealer.cpp b/src/mame/drivers/ddealer.cpp
index 4ee5ac72383..c1ef29da72c 100644
--- a/src/mame/drivers/ddealer.cpp
+++ b/src/mame/drivers/ddealer.cpp
@@ -116,6 +116,7 @@
#include "cpu/m68000/m68000.h"
#include "machine/timer.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/deco156.cpp b/src/mame/drivers/deco156.cpp
index b7bb029d027..a9b7ac8ca32 100644
--- a/src/mame/drivers/deco156.cpp
+++ b/src/mame/drivers/deco156.cpp
@@ -22,6 +22,7 @@
#include "sound/ymz280b.h"
#include "video/deco16ic.h"
#include "video/decospr.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/deco_ld.cpp b/src/mame/drivers/deco_ld.cpp
index bea6b44a5ab..57887adcbba 100644
--- a/src/mame/drivers/deco_ld.cpp
+++ b/src/mame/drivers/deco_ld.cpp
@@ -114,6 +114,7 @@ Sound processor - 6502
#include "machine/ldp1000.h"
#include "machine/gen_latch.h"
#include "machine/6850acia.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/deshoros.cpp b/src/mame/drivers/deshoros.cpp
index 2cc994363e6..f38997aa7cf 100644
--- a/src/mame/drivers/deshoros.cpp
+++ b/src/mame/drivers/deshoros.cpp
@@ -32,6 +32,7 @@ TODO:
#include "emu.h"
#include "cpu/m6809/m6809.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/destroyr.cpp b/src/mame/drivers/destroyr.cpp
index 922246d3c56..a31396c288a 100644
--- a/src/mame/drivers/destroyr.cpp
+++ b/src/mame/drivers/destroyr.cpp
@@ -16,6 +16,7 @@ TODO:
#include "cpu/m6800/m6800.h"
#include "machine/74259.h"
#include "machine/watchdog.h"
+#include "emupal.h"
#include "screen.h"
#include "destroyr.lh"
diff --git a/src/mame/drivers/dfruit.cpp b/src/mame/drivers/dfruit.cpp
index ab64dfc7d52..a1345e0fe0b 100644
--- a/src/mame/drivers/dfruit.cpp
+++ b/src/mame/drivers/dfruit.cpp
@@ -23,6 +23,7 @@
#include "machine/tc009xlvc.h"
#include "machine/timer.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dgpix.cpp b/src/mame/drivers/dgpix.cpp
index b997099f364..513a17dd9e0 100644
--- a/src/mame/drivers/dgpix.cpp
+++ b/src/mame/drivers/dgpix.cpp
@@ -154,6 +154,7 @@ Notes:
#include "emu.h"
#include "cpu/e132xs/e132xs.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/dietgo.cpp b/src/mame/drivers/dietgo.cpp
index 5e4841f7558..667bc2a9a90 100644
--- a/src/mame/drivers/dietgo.cpp
+++ b/src/mame/drivers/dietgo.cpp
@@ -29,6 +29,7 @@ PAL16R6A 11H
#include "machine/decocrpt.h"
#include "machine/deco102.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dim68k.cpp b/src/mame/drivers/dim68k.cpp
index d532bdc69ac..da718ee0677 100644
--- a/src/mame/drivers/dim68k.cpp
+++ b/src/mame/drivers/dim68k.cpp
@@ -39,6 +39,7 @@
#include "machine/upd765.h"
#include "sound/spkrdev.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/discoboy.cpp b/src/mame/drivers/discoboy.cpp
index 006f5fe917b..3319eaef11a 100644
--- a/src/mame/drivers/discoboy.cpp
+++ b/src/mame/drivers/discoboy.cpp
@@ -48,6 +48,7 @@ Notes:
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
#include "sound/3812intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/diverboy.cpp b/src/mame/drivers/diverboy.cpp
index f17058c5304..504a75d817c 100644
--- a/src/mame/drivers/diverboy.cpp
+++ b/src/mame/drivers/diverboy.cpp
@@ -53,6 +53,7 @@
#include "cpu/m68000/m68000.h"
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dlair.cpp b/src/mame/drivers/dlair.cpp
index f27b24c9bae..b08e306c05d 100644
--- a/src/mame/drivers/dlair.cpp
+++ b/src/mame/drivers/dlair.cpp
@@ -45,6 +45,7 @@
#include "machine/z80sio.h"
#include "sound/ay8910.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "render.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dlair2.cpp b/src/mame/drivers/dlair2.cpp
index ea30e38503f..13fb70751a6 100644
--- a/src/mame/drivers/dlair2.cpp
+++ b/src/mame/drivers/dlair2.cpp
@@ -32,6 +32,7 @@ http://www.dragons-lair-project.com/tech/pages/dl2.asp
#include "emu.h"
#include "cpu/i86/i86.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dmndrby.cpp b/src/mame/drivers/dmndrby.cpp
index 8c225e7a672..eaa9bc71ca8 100644
--- a/src/mame/drivers/dmndrby.cpp
+++ b/src/mame/drivers/dmndrby.cpp
@@ -57,6 +57,7 @@ DD10 DD14 DD18 H5 DD21
#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dms5000.cpp b/src/mame/drivers/dms5000.cpp
index 3dfa8f80ebd..aa1ce448966 100644
--- a/src/mame/drivers/dms5000.cpp
+++ b/src/mame/drivers/dms5000.cpp
@@ -12,6 +12,7 @@
#include "cpu/i86/i86.h"
#include "machine/74259.h"
//#include "machine/z80sio.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/dmv.cpp b/src/mame/drivers/dmv.cpp
index e22b4eafb68..4291ea8d735 100644
--- a/src/mame/drivers/dmv.cpp
+++ b/src/mame/drivers/dmv.cpp
@@ -19,6 +19,7 @@
#include "machine/upd765.h"
#include "sound/spkrdev.h"
#include "video/upd7220.h"
+#include "emupal.h"
// expansion slots
#include "bus/dmv/dmvbus.h"
diff --git a/src/mame/drivers/dominob.cpp b/src/mame/drivers/dominob.cpp
index 2b476f1eba6..b21062d5740 100644
--- a/src/mame/drivers/dominob.cpp
+++ b/src/mame/drivers/dominob.cpp
@@ -65,6 +65,7 @@ Notes:
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dooyong.cpp b/src/mame/drivers/dooyong.cpp
index 220dc6bd57c..bb3e4eddf96 100644
--- a/src/mame/drivers/dooyong.cpp
+++ b/src/mame/drivers/dooyong.cpp
@@ -83,6 +83,7 @@ are almost identical, except for much darker BG layer colors).
#include "sound/okim6295.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dorachan.cpp b/src/mame/drivers/dorachan.cpp
index d01426109d9..50f02c42234 100644
--- a/src/mame/drivers/dorachan.cpp
+++ b/src/mame/drivers/dorachan.cpp
@@ -19,6 +19,7 @@ It appears that unused bits in port 03 are to operate the discrete sound channel
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/dotrikun.cpp b/src/mame/drivers/dotrikun.cpp
index 2a3608546ed..29c20e9f3ee 100644
--- a/src/mame/drivers/dotrikun.cpp
+++ b/src/mame/drivers/dotrikun.cpp
@@ -29,6 +29,7 @@ TODO:
#include "emu.h"
#include "cpu/z80/z80.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "dotrikun.lh"
diff --git a/src/mame/drivers/dreambal.cpp b/src/mame/drivers/dreambal.cpp
index e22daac49d9..b6b57462c19 100644
--- a/src/mame/drivers/dreambal.cpp
+++ b/src/mame/drivers/dreambal.cpp
@@ -28,6 +28,7 @@ lamps?
#include "machine/eepromser.h"
#include "sound/okim6295.h"
#include "video/deco16ic.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dreamwld.cpp b/src/mame/drivers/dreamwld.cpp
index 42eca64bd34..2317421884c 100644
--- a/src/mame/drivers/dreamwld.cpp
+++ b/src/mame/drivers/dreamwld.cpp
@@ -99,6 +99,7 @@ Stephh's notes (based on the game M68EC020 code and some tests) :
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/drtomy.cpp b/src/mame/drivers/drtomy.cpp
index 709b1ef3283..43513230752 100644
--- a/src/mame/drivers/drtomy.cpp
+++ b/src/mame/drivers/drtomy.cpp
@@ -12,6 +12,7 @@ similar hardware.
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/drw80pkr.cpp b/src/mame/drivers/drw80pkr.cpp
index 808d23a7747..fe5cea3b91e 100644
--- a/src/mame/drivers/drw80pkr.cpp
+++ b/src/mame/drivers/drw80pkr.cpp
@@ -31,6 +31,7 @@
#include "cpu/mcs48/mcs48.h"
#include "machine/nvram.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/duet16.cpp b/src/mame/drivers/duet16.cpp
index 20b183a8a05..ea63a71948c 100644
--- a/src/mame/drivers/duet16.cpp
+++ b/src/mame/drivers/duet16.cpp
@@ -15,6 +15,7 @@
#include "machine/pit8253.h"
#include "machine/am9517a.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "bus/rs232/rs232.h"
#include "bus/rs232/keyboard.h"
diff --git a/src/mame/drivers/dunhuang.cpp b/src/mame/drivers/dunhuang.cpp
index 98a4ca1a19e..9cdb7753ec1 100644
--- a/src/mame/drivers/dunhuang.cpp
+++ b/src/mame/drivers/dunhuang.cpp
@@ -58,6 +58,7 @@ Notes:
#include "sound/okim6295.h"
#include "sound/ym2413.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dvk_kcgd.cpp b/src/mame/drivers/dvk_kcgd.cpp
index 26fa3564dd7..b818af2985c 100644
--- a/src/mame/drivers/dvk_kcgd.cpp
+++ b/src/mame/drivers/dvk_kcgd.cpp
@@ -22,6 +22,7 @@
#include "machine/clock.h"
#include "machine/ms7004.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/dvk_ksm.cpp b/src/mame/drivers/dvk_ksm.cpp
index a1d0f0a4a67..614eed6a312 100644
--- a/src/mame/drivers/dvk_ksm.cpp
+++ b/src/mame/drivers/dvk_ksm.cpp
@@ -60,6 +60,7 @@ ksm|DVK KSM,
#include "machine/ms7004.h"
#include "machine/pic8259.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/dwarfd.cpp b/src/mame/drivers/dwarfd.cpp
index dbb413a79f6..896183d4491 100644
--- a/src/mame/drivers/dwarfd.cpp
+++ b/src/mame/drivers/dwarfd.cpp
@@ -301,6 +301,7 @@ uPC1352C @ N3
#include "cpu/i8085/i8085.h"
#include "sound/ay8910.h"
#include "video/i8275.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/dynadice.cpp b/src/mame/drivers/dynadice.cpp
index 6926bdc65b2..1f333e45a09 100644
--- a/src/mame/drivers/dynadice.cpp
+++ b/src/mame/drivers/dynadice.cpp
@@ -39,6 +39,7 @@ dy_6.bin (near Z80)
#include "machine/gen_latch.h"
#include "machine/nvram.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/e100.cpp b/src/mame/drivers/e100.cpp
index 7ee8ce3afde..7b6229de096 100644
--- a/src/mame/drivers/e100.cpp
+++ b/src/mame/drivers/e100.cpp
@@ -37,6 +37,7 @@
// Features
#include "imagedev/cassette.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
//**************************************************************************
diff --git a/src/mame/drivers/ec65.cpp b/src/mame/drivers/ec65.cpp
index 27a5e43d549..107892edff8 100644
--- a/src/mame/drivers/ec65.cpp
+++ b/src/mame/drivers/ec65.cpp
@@ -17,6 +17,7 @@ EC-65 (also known as Octopus)
#include "machine/mos6551.h"
#include "machine/6850acia.h"
#include "machine/keyboard.h"
+#include "emupal.h"
#include "screen.h"
#define PIA6821_TAG "pia6821"
diff --git a/src/mame/drivers/egghunt.cpp b/src/mame/drivers/egghunt.cpp
index e8be45a0850..512e94d87c3 100644
--- a/src/mame/drivers/egghunt.cpp
+++ b/src/mame/drivers/egghunt.cpp
@@ -47,6 +47,7 @@ I dumped it with this configuration. In case I'll redump it desoldering pin 16 f
#include "cpu/z80/z80.h"
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/enigma2.cpp b/src/mame/drivers/enigma2.cpp
index 860853a08fe..2469476458b 100644
--- a/src/mame/drivers/enigma2.cpp
+++ b/src/mame/drivers/enigma2.cpp
@@ -27,6 +27,7 @@ TODO:
#include "cpu/z80/z80.h"
#include "cpu/i8085/i8085.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/eolith16.cpp b/src/mame/drivers/eolith16.cpp
index b0438d4c85c..3c024fc014d 100644
--- a/src/mame/drivers/eolith16.cpp
+++ b/src/mame/drivers/eolith16.cpp
@@ -18,6 +18,7 @@
#include "machine/eepromser.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/esd16.cpp b/src/mame/drivers/esd16.cpp
index 838701ad3bf..bb36f857c24 100644
--- a/src/mame/drivers/esd16.cpp
+++ b/src/mame/drivers/esd16.cpp
@@ -72,6 +72,7 @@ ToDo:
#include "cpu/z80/z80.h"
#include "sound/3812intf.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/esh.cpp b/src/mame/drivers/esh.cpp
index 9ce1e0f5885..648bd14178c 100644
--- a/src/mame/drivers/esh.cpp
+++ b/src/mame/drivers/esh.cpp
@@ -30,6 +30,7 @@ Todo:
#include "machine/ldv1000.h"
#include "machine/nvram.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/esprit.cpp b/src/mame/drivers/esprit.cpp
index 30465820adb..3255255302b 100644
--- a/src/mame/drivers/esprit.cpp
+++ b/src/mame/drivers/esprit.cpp
@@ -16,6 +16,7 @@ Espirit3: 2x R6551AP, HD46850P (6850), R6502BP, R6545-1AP, R6522AP, 1.8432, 17.9
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
class esprit_state : public driver_device
diff --git a/src/mame/drivers/esq5505.cpp b/src/mame/drivers/esq5505.cpp
index fcc7289bf8e..daab2669673 100644
--- a/src/mame/drivers/esq5505.cpp
+++ b/src/mame/drivers/esq5505.cpp
@@ -140,7 +140,7 @@
#include "machine/wd_fdc.h"
#include "sound/es5506.h"
#include "sound/esqpump.h"
-
+#include "emupal.h"
#include "speaker.h"
#include <cstdio>
diff --git a/src/mame/drivers/ettrivia.cpp b/src/mame/drivers/ettrivia.cpp
index ee5390d58d7..bfc700855b1 100644
--- a/src/mame/drivers/ettrivia.cpp
+++ b/src/mame/drivers/ettrivia.cpp
@@ -31,6 +31,7 @@ Notes:
#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/eurocom2.cpp b/src/mame/drivers/eurocom2.cpp
index c64d4ad3055..39beb25a60f 100644
--- a/src/mame/drivers/eurocom2.cpp
+++ b/src/mame/drivers/eurocom2.cpp
@@ -38,6 +38,7 @@
#include "machine/keyboard.h"
#include "machine/wd_fdc.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/excali64.cpp b/src/mame/drivers/excali64.cpp
index c169242f3dd..8d656e6ab62 100644
--- a/src/mame/drivers/excali64.cpp
+++ b/src/mame/drivers/excali64.cpp
@@ -46,6 +46,7 @@ ToDo:
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/exelv.cpp b/src/mame/drivers/exelv.cpp
index 3a986ed4528..51fb2d18819 100644
--- a/src/mame/drivers/exelv.cpp
+++ b/src/mame/drivers/exelv.cpp
@@ -64,6 +64,7 @@ TODO:
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/expro02.cpp b/src/mame/drivers/expro02.cpp
index b55e082a5d2..25fed233d8a 100644
--- a/src/mame/drivers/expro02.cpp
+++ b/src/mame/drivers/expro02.cpp
@@ -214,6 +214,7 @@ TODO:
#include "machine/watchdog.h"
#include "video/kaneko_tmap.h"
#include "video/kaneko_spr.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/f-32.cpp b/src/mame/drivers/f-32.cpp
index 8edada0d532..1b13cafb36d 100644
--- a/src/mame/drivers/f-32.cpp
+++ b/src/mame/drivers/f-32.cpp
@@ -32,6 +32,7 @@ f5
#include "machine/eepromser.h"
#include "sound/ym2151.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/fastinvaders.cpp b/src/mame/drivers/fastinvaders.cpp
index e9673e9e990..ed1db1c39a7 100644
--- a/src/mame/drivers/fastinvaders.cpp
+++ b/src/mame/drivers/fastinvaders.cpp
@@ -18,6 +18,7 @@ http://www.citylan.it/wiki/index.php/Fast_Invaders_%288275_version%29
#include "machine/timer.h"
#include "video/i8275.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/fb01.cpp b/src/mame/drivers/fb01.cpp
index 7224dc249dd..a4b9cdbda68 100644
--- a/src/mame/drivers/fb01.cpp
+++ b/src/mame/drivers/fb01.cpp
@@ -16,6 +16,7 @@
#include "sound/ym2151.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/fc100.cpp b/src/mame/drivers/fc100.cpp
index ea7334cc11f..1ac1ed6bd42 100644
--- a/src/mame/drivers/fc100.cpp
+++ b/src/mame/drivers/fc100.cpp
@@ -46,6 +46,7 @@ TODO:
#include "sound/wave.h"
#include "video/mc6847.h"
+#include "emupal.h"
#include "speaker.h"
#include "formats/fc100_cas.h"
diff --git a/src/mame/drivers/feversoc.cpp b/src/mame/drivers/feversoc.cpp
index 6afc5a23931..59627ff3afd 100644
--- a/src/mame/drivers/feversoc.cpp
+++ b/src/mame/drivers/feversoc.cpp
@@ -73,6 +73,7 @@ U0564 LH28F800SU OBJ4-1
#include "machine/rtc4543.h"
#include "machine/nvram.h"
#include "machine/ticket.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/firebeat.cpp b/src/mame/drivers/firebeat.cpp
index f7e6d10a135..96985da6e33 100644
--- a/src/mame/drivers/firebeat.cpp
+++ b/src/mame/drivers/firebeat.cpp
@@ -152,6 +152,7 @@ Keyboard Mania 2nd Mix - dongle, program CD, audio CD
#include "sound/ymz280b.h"
#include "video/k057714.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/firefox.cpp b/src/mame/drivers/firefox.cpp
index ed874331a70..48f9133c52d 100644
--- a/src/mame/drivers/firefox.cpp
+++ b/src/mame/drivers/firefox.cpp
@@ -41,6 +41,7 @@ but requires a special level III player for proper control. Video: CAV. Audio: A
#include "machine/timer.h"
#include "machine/watchdog.h"
#include "machine/x2212.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/fk1.cpp b/src/mame/drivers/fk1.cpp
index de3a39718b2..4c18a77768a 100644
--- a/src/mame/drivers/fk1.cpp
+++ b/src/mame/drivers/fk1.cpp
@@ -15,6 +15,7 @@
#include "machine/i8251.h"
#include "machine/ram.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/flipjack.cpp b/src/mame/drivers/flipjack.cpp
index d37721261ef..be6f8f72cc2 100644
--- a/src/mame/drivers/flipjack.cpp
+++ b/src/mame/drivers/flipjack.cpp
@@ -81,6 +81,7 @@ ________________________|___________________________
#include "machine/i8255.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/flower.cpp b/src/mame/drivers/flower.cpp
index c72c4e76437..28883514234 100644
--- a/src/mame/drivers/flower.cpp
+++ b/src/mame/drivers/flower.cpp
@@ -82,6 +82,7 @@ CHIP # POSITION TYPE
#include "cpu/z80/z80.h"
#include "machine/gen_latch.h"
#include "audio/flower.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/flyball.cpp b/src/mame/drivers/flyball.cpp
index 1e2c97ce1a1..93b3a1dbf92 100644
--- a/src/mame/drivers/flyball.cpp
+++ b/src/mame/drivers/flyball.cpp
@@ -21,6 +21,7 @@ TODO:
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "machine/74259.h"
+#include "emupal.h"
#include "screen.h"
static constexpr XTAL MASTER_CLOCK = 12.096_MHz_XTAL;
diff --git a/src/mame/drivers/fortecar.cpp b/src/mame/drivers/fortecar.cpp
index 6496319f51d..1cd84c14245 100644
--- a/src/mame/drivers/fortecar.cpp
+++ b/src/mame/drivers/fortecar.cpp
@@ -318,6 +318,7 @@
#include "sound/ay8910.h"
#include "video/mc6845.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/fp1100.cpp b/src/mame/drivers/fp1100.cpp
index 216ed229083..b41b2695e6d 100644
--- a/src/mame/drivers/fp1100.cpp
+++ b/src/mame/drivers/fp1100.cpp
@@ -45,6 +45,7 @@
#include "sound/beep.h"
#include "bus/centronics/ctronics.h"
#include "imagedev/cassette.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/fp200.cpp b/src/mame/drivers/fp200.cpp
index 86f78a66e1b..261279d98d0 100644
--- a/src/mame/drivers/fp200.cpp
+++ b/src/mame/drivers/fp200.cpp
@@ -22,6 +22,7 @@
#include "emu.h"
#include "cpu/i8085/i8085.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/fp6000.cpp b/src/mame/drivers/fp6000.cpp
index 286bad59327..322385eb671 100644
--- a/src/mame/drivers/fp6000.cpp
+++ b/src/mame/drivers/fp6000.cpp
@@ -21,6 +21,7 @@
#include "emu.h"
#include "cpu/i86/i86.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/fresh.cpp b/src/mame/drivers/fresh.cpp
index 3ce058a48bf..71e19bf5fe6 100644
--- a/src/mame/drivers/fresh.cpp
+++ b/src/mame/drivers/fresh.cpp
@@ -25,6 +25,7 @@ rom 5 and 6 are prg roms
#include "cpu/m68000/m68000.h"
#include "machine/timer.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/funkyjet.cpp b/src/mame/drivers/funkyjet.cpp
index 24f6064896a..bd52ed1bcfd 100644
--- a/src/mame/drivers/funkyjet.cpp
+++ b/src/mame/drivers/funkyjet.cpp
@@ -97,6 +97,7 @@ Notes:
#include "machine/gen_latch.h"
#include "sound/ym2151.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/funtech.cpp b/src/mame/drivers/funtech.cpp
index 3d23a46091e..e3cae6f13ca 100644
--- a/src/mame/drivers/funtech.cpp
+++ b/src/mame/drivers/funtech.cpp
@@ -26,6 +26,7 @@ and an unpopulated position for a YM2413 or UM3567
#include "sound/ay8910.h"
#include "machine/nvram.h"
#include "machine/ticket.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gaelco.cpp b/src/mame/drivers/gaelco.cpp
index abc32400171..705e8170f73 100644
--- a/src/mame/drivers/gaelco.cpp
+++ b/src/mame/drivers/gaelco.cpp
@@ -28,6 +28,7 @@ Year Game PCB NOTES
#include "sound/okim6295.h"
#include "sound/3812intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gaelco3d.cpp b/src/mame/drivers/gaelco3d.cpp
index a93253910bd..acb102b858b 100644
--- a/src/mame/drivers/gaelco3d.cpp
+++ b/src/mame/drivers/gaelco3d.cpp
@@ -150,6 +150,7 @@ REF. 970429
#include "cpu/m68000/m68000.h"
#include "cpu/tms32031/tms32031.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gaelcopc.cpp b/src/mame/drivers/gaelcopc.cpp
index 2bf9944e081..ee16b48b4c0 100644
--- a/src/mame/drivers/gaelcopc.cpp
+++ b/src/mame/drivers/gaelcopc.cpp
@@ -26,6 +26,7 @@ motherboard bioses.
#include "emu.h"
#include "cpu/i386/i386.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/galaxi.cpp b/src/mame/drivers/galaxi.cpp
index 9651a089adf..9b36dcf4348 100644
--- a/src/mame/drivers/galaxi.cpp
+++ b/src/mame/drivers/galaxi.cpp
@@ -37,6 +37,7 @@
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/galaxy.cpp b/src/mame/drivers/galaxy.cpp
index 7b5c40ee11e..33c447bf720 100644
--- a/src/mame/drivers/galaxy.cpp
+++ b/src/mame/drivers/galaxy.cpp
@@ -33,6 +33,7 @@ Galaksija driver by Krzysztof Strzecha and Miodrag Milanovic
#include "machine/ram.h"
#include "sound/ay8910.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/galgame.cpp b/src/mame/drivers/galgame.cpp
index be3fdb718c4..82510c51f62 100644
--- a/src/mame/drivers/galgame.cpp
+++ b/src/mame/drivers/galgame.cpp
@@ -12,6 +12,7 @@
#include "emu.h"
#include "cpu/t11/t11.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/galgames.cpp b/src/mame/drivers/galgames.cpp
index 4fc08cb3d80..065f6706fdd 100644
--- a/src/mame/drivers/galgames.cpp
+++ b/src/mame/drivers/galgames.cpp
@@ -41,6 +41,7 @@ Notes:
#include "machine/watchdog.h"
#include "sound/okim6295.h"
#include "video/cesblit.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/galpani3.cpp b/src/mame/drivers/galpani3.cpp
index 5411ab54124..4d49ef158f9 100644
--- a/src/mame/drivers/galpani3.cpp
+++ b/src/mame/drivers/galpani3.cpp
@@ -72,6 +72,7 @@ Dumped by Uki
#include "sound/ymz280b.h"
#include "video/kaneko_grap2.h"
#include "video/sknsspr.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gamate.cpp b/src/mame/drivers/gamate.cpp
index 9c063f06076..17b89218194 100644
--- a/src/mame/drivers/gamate.cpp
+++ b/src/mame/drivers/gamate.cpp
@@ -32,8 +32,6 @@ public:
, m_bios(*this, "bios")
{ }
- DECLARE_PALETTE_INIT(gamate);
-
DECLARE_READ8_MEMBER(card_available_check);
DECLARE_READ8_MEMBER(card_available_set);
DECLARE_WRITE8_MEMBER(card_reset);
@@ -46,8 +44,6 @@ public:
void init_gamate();
- uint32_t screen_update_gamate(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
TIMER_CALLBACK_MEMBER(gamate_timer);
TIMER_CALLBACK_MEMBER(gamate_timer2);
diff --git a/src/mame/drivers/gamecstl.cpp b/src/mame/drivers/gamecstl.cpp
index 895903a9371..bd94a27b4b5 100644
--- a/src/mame/drivers/gamecstl.cpp
+++ b/src/mame/drivers/gamecstl.cpp
@@ -70,6 +70,7 @@
#include "machine/lpci.h"
#include "machine/pckeybrd.h"
#include "machine/pcshare.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/gameking.cpp b/src/mame/drivers/gameking.cpp
index 37ee0a0d05b..c595ac31357 100644
--- a/src/mame/drivers/gameking.cpp
+++ b/src/mame/drivers/gameking.cpp
@@ -29,6 +29,7 @@
#include "cpu/m6502/r65c02.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/gamepock.cpp b/src/mame/drivers/gamepock.cpp
index 92c08f14b64..757b9095242 100644
--- a/src/mame/drivers/gamepock.cpp
+++ b/src/mame/drivers/gamepock.cpp
@@ -8,6 +8,7 @@
#include "bus/generic/carts.h"
#include "cpu/upd7810/upd7810.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/gatron.cpp b/src/mame/drivers/gatron.cpp
index 4a4f76ef5f0..7173bbab2a0 100644
--- a/src/mame/drivers/gatron.cpp
+++ b/src/mame/drivers/gatron.cpp
@@ -328,6 +328,7 @@
#include "machine/i8255.h"
#include "machine/nvram.h"
#include "sound/sn76496.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gei.cpp b/src/mame/drivers/gei.cpp
index 647fe1ffda8..7e117d14259 100644
--- a/src/mame/drivers/gei.cpp
+++ b/src/mame/drivers/gei.cpp
@@ -78,6 +78,7 @@ NOTE: Trivia Question rom names are the internal names used. IE: read from the f
#include "machine/ticket.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/geniusiq.cpp b/src/mame/drivers/geniusiq.cpp
index 3ed91eff70e..c02baeb4ecc 100644
--- a/src/mame/drivers/geniusiq.cpp
+++ b/src/mame/drivers/geniusiq.cpp
@@ -158,6 +158,7 @@ PCB - German Version:
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/ghosteo.cpp b/src/mame/drivers/ghosteo.cpp
index 8b516f76627..e7707d5e60e 100644
--- a/src/mame/drivers/ghosteo.cpp
+++ b/src/mame/drivers/ghosteo.cpp
@@ -64,6 +64,7 @@ ToDo: verify QS1000 hook-up
//#include "machine/smartmed.h"
#include "machine/i2cmem.h"
#include "sound/qs1000.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/giclassic.cpp b/src/mame/drivers/giclassic.cpp
index 59c33961516..1fc38437f3f 100644
--- a/src/mame/drivers/giclassic.cpp
+++ b/src/mame/drivers/giclassic.cpp
@@ -50,6 +50,7 @@
#include "video/k054156_k054157_k056832.h"
#include "video/k053246_k053247_k055673.h"
#include "video/konami_helper.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gkigt.cpp b/src/mame/drivers/gkigt.cpp
index 4aa3b655f35..d47c9322205 100644
--- a/src/mame/drivers/gkigt.cpp
+++ b/src/mame/drivers/gkigt.cpp
@@ -97,6 +97,7 @@ More chips (from eBay auction):
#include "video/ramdac.h"
#include "sound/ymz280b.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gluck2.cpp b/src/mame/drivers/gluck2.cpp
index 01f4d9094f6..30b96bdf874 100644
--- a/src/mame/drivers/gluck2.cpp
+++ b/src/mame/drivers/gluck2.cpp
@@ -195,6 +195,7 @@
#include "sound/ay8910.h"
#include "sound/ym2413.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gmaster.cpp b/src/mame/drivers/gmaster.cpp
index 4a352fc8599..e5bdc0d7875 100644
--- a/src/mame/drivers/gmaster.cpp
+++ b/src/mame/drivers/gmaster.cpp
@@ -12,6 +12,7 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/go2000.cpp b/src/mame/drivers/go2000.cpp
index c767e12fb62..e3f90597151 100644
--- a/src/mame/drivers/go2000.cpp
+++ b/src/mame/drivers/go2000.cpp
@@ -37,6 +37,7 @@ Notes:
#include "machine/gen_latch.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/goldngam.cpp b/src/mame/drivers/goldngam.cpp
index ea64c198d67..9bec3298129 100644
--- a/src/mame/drivers/goldngam.cpp
+++ b/src/mame/drivers/goldngam.cpp
@@ -236,6 +236,7 @@
#include "machine/6850acia.h"
#include "machine/mc68681.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/goldnpkr.cpp b/src/mame/drivers/goldnpkr.cpp
index 85ca75d688a..8e3210db770 100644
--- a/src/mame/drivers/goldnpkr.cpp
+++ b/src/mame/drivers/goldnpkr.cpp
@@ -1281,6 +1281,7 @@
#include "sound/discrete.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/good.cpp b/src/mame/drivers/good.cpp
index fcf3e5d8026..c95d7ba0c0d 100644
--- a/src/mame/drivers/good.cpp
+++ b/src/mame/drivers/good.cpp
@@ -35,6 +35,7 @@ voice.rom - VOICE ROM
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/goodejan.cpp b/src/mame/drivers/goodejan.cpp
index 099e0cbd73c..f91567554bb 100644
--- a/src/mame/drivers/goodejan.cpp
+++ b/src/mame/drivers/goodejan.cpp
@@ -77,6 +77,7 @@ Secret menu hack [totmejan only] (I couldn't find official way to enter, so it's
#include "sound/3812intf.h"
#include "sound/okim6295.h"
#include "video/seibu_crtc.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gotcha.cpp b/src/mame/drivers/gotcha.cpp
index ce25c4c57e9..fe2d838609b 100644
--- a/src/mame/drivers/gotcha.cpp
+++ b/src/mame/drivers/gotcha.cpp
@@ -68,6 +68,7 @@ Notes:
#include "sound/okim6295.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/goupil.cpp b/src/mame/drivers/goupil.cpp
index 17abd6d8e2f..72ddfa419b5 100644
--- a/src/mame/drivers/goupil.cpp
+++ b/src/mame/drivers/goupil.cpp
@@ -33,6 +33,7 @@
#include "video/ef9364.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/gp2x.cpp b/src/mame/drivers/gp2x.cpp
index 03b75a01d5a..20fc43bf507 100644
--- a/src/mame/drivers/gp2x.cpp
+++ b/src/mame/drivers/gp2x.cpp
@@ -21,6 +21,7 @@
#include "emu.h"
#include "cpu/arm7/arm7.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gpworld.cpp b/src/mame/drivers/gpworld.cpp
index 37078eb0270..a5943b97727 100644
--- a/src/mame/drivers/gpworld.cpp
+++ b/src/mame/drivers/gpworld.cpp
@@ -44,6 +44,7 @@ Dumping Notes:
#include "emu.h"
#include "cpu/z80/z80.h"
#include "machine/ldv1000.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gradius3.cpp b/src/mame/drivers/gradius3.cpp
index 64f6ddbdf79..a1f1a52c43e 100644
--- a/src/mame/drivers/gradius3.cpp
+++ b/src/mame/drivers/gradius3.cpp
@@ -32,6 +32,7 @@
#include "machine/watchdog.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/grfd2301.cpp b/src/mame/drivers/grfd2301.cpp
index 38bf09c4cc9..81b1c036428 100644
--- a/src/mame/drivers/grfd2301.cpp
+++ b/src/mame/drivers/grfd2301.cpp
@@ -32,6 +32,7 @@ A sticker on the back panel says: GenRad, Culver City CA, Model 2301-9001
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/gridcomp.cpp b/src/mame/drivers/gridcomp.cpp
index ee1fd50820a..32ba81d72de 100644
--- a/src/mame/drivers/gridcomp.cpp
+++ b/src/mame/drivers/gridcomp.cpp
@@ -76,6 +76,7 @@
#include "machine/z80sio.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/gstream.cpp b/src/mame/drivers/gstream.cpp
index bb05d83951a..10fe8c0aab2 100644
--- a/src/mame/drivers/gstream.cpp
+++ b/src/mame/drivers/gstream.cpp
@@ -136,6 +136,7 @@ RAM4 is HMC HM6264LP-70
#include "cpu/e132xs/e132xs.h"
#include "sound/okim6295.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gticlub.cpp b/src/mame/drivers/gticlub.cpp
index 3d19ac0f4e3..0e1f43c9a44 100644
--- a/src/mame/drivers/gticlub.cpp
+++ b/src/mame/drivers/gticlub.cpp
@@ -236,6 +236,7 @@ Hang Pilot (uses an unknown but similar video board) 12W
#include "video/k001006.h"
#include "video/k001604.h"
+#include "emupal.h"
#include "rendlay.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gts3a.cpp b/src/mame/drivers/gts3a.cpp
index b4f57c4d753..14e2b649a63 100644
--- a/src/mame/drivers/gts3a.cpp
+++ b/src/mame/drivers/gts3a.cpp
@@ -24,6 +24,7 @@ ToDo:
#include "cpu/m6502/m65c02.h"
#include "machine/6522via.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/gts80a.cpp b/src/mame/drivers/gts80a.cpp
index 659ef17786c..44c1001934e 100644
--- a/src/mame/drivers/gts80a.cpp
+++ b/src/mame/drivers/gts80a.cpp
@@ -15,6 +15,7 @@
#include "machine/genpin.h"
#include "audio/gottlieb.h"
#include "cpu/i86/i86.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/guab.cpp b/src/mame/drivers/guab.cpp
index cd3da109d72..8104de2f956 100644
--- a/src/mame/drivers/guab.cpp
+++ b/src/mame/drivers/guab.cpp
@@ -56,6 +56,7 @@
#include "sound/sn76496.h"
#include "video/ef9369.h"
#include "video/tms34061.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gumbo.cpp b/src/mame/drivers/gumbo.cpp
index 0c780b45a22..74c5f8eb029 100644
--- a/src/mame/drivers/gumbo.cpp
+++ b/src/mame/drivers/gumbo.cpp
@@ -48,6 +48,7 @@ PCB Layout
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/gunpey.cpp b/src/mame/drivers/gunpey.cpp
index 7684925ea58..9bdf8e250be 100644
--- a/src/mame/drivers/gunpey.cpp
+++ b/src/mame/drivers/gunpey.cpp
@@ -197,6 +197,7 @@ Release: November 1999
#include "machine/timer.h"
#include "sound/okim6295.h"
#include "sound/ymz280b.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/h19.cpp b/src/mame/drivers/h19.cpp
index 28c17da6469..a5920e63cda 100644
--- a/src/mame/drivers/h19.cpp
+++ b/src/mame/drivers/h19.cpp
@@ -56,6 +56,7 @@ Address Description
#include "machine/mm5740.h"
#include "sound/beep.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/halleys.cpp b/src/mame/drivers/halleys.cpp
index 3b2f80dfe4a..827e316cdc3 100644
--- a/src/mame/drivers/halleys.cpp
+++ b/src/mame/drivers/halleys.cpp
@@ -169,6 +169,7 @@ Video sync 6 F Video sync Post 6 F Post
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/hazeltin.cpp b/src/mame/drivers/hazeltin.cpp
index 6af85e74140..b37544d14df 100644
--- a/src/mame/drivers/hazeltin.cpp
+++ b/src/mame/drivers/hazeltin.cpp
@@ -35,6 +35,7 @@ References:
#include "machine/nl_hazelvid.h"
#include "netlist/devices/net_lib.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/headonb.cpp b/src/mame/drivers/headonb.cpp
index b9072cb35ae..2e3c5ae282e 100644
--- a/src/mame/drivers/headonb.cpp
+++ b/src/mame/drivers/headonb.cpp
@@ -30,6 +30,7 @@ Other outs:
#include "emu.h"
#include "cpu/i8085/i8085.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/hexion.cpp b/src/mame/drivers/hexion.cpp
index 587db83f3e6..95592da7c52 100644
--- a/src/mame/drivers/hexion.cpp
+++ b/src/mame/drivers/hexion.cpp
@@ -87,6 +87,7 @@ Notes:
#include "sound/okim6295.h"
#include "sound/k051649.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/hideseek.cpp b/src/mame/drivers/hideseek.cpp
index a67130aa9b9..25741bc1a79 100644
--- a/src/mame/drivers/hideseek.cpp
+++ b/src/mame/drivers/hideseek.cpp
@@ -28,6 +28,7 @@ Other stuff: NEC D4992 (RTC?) and xtal possibly 32.768kHz, 3V coin battery, 93L4
#include "emu.h"
#include "cpu/sh/sh2.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/highvdeo.cpp b/src/mame/drivers/highvdeo.cpp
index 22bc43434a4..5af0afc5c08 100644
--- a/src/mame/drivers/highvdeo.cpp
+++ b/src/mame/drivers/highvdeo.cpp
@@ -104,6 +104,7 @@ Game is V30 based, with rom banking (2Mb)
#include "sound/okim6376.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/hikaru.cpp b/src/mame/drivers/hikaru.cpp
index 40fa359ac98..c65a087c049 100644
--- a/src/mame/drivers/hikaru.cpp
+++ b/src/mame/drivers/hikaru.cpp
@@ -383,6 +383,7 @@ Notes:
#include "emu.h"
#include "cpu/sh/sh4.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/hitme.cpp b/src/mame/drivers/hitme.cpp
index fc45ef9f5ee..48c15c416fc 100644
--- a/src/mame/drivers/hitme.cpp
+++ b/src/mame/drivers/hitme.cpp
@@ -21,6 +21,7 @@
#include "cpu/i8085/i8085.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "speaker.h"
#include "barricad.lh"
diff --git a/src/mame/drivers/hitpoker.cpp b/src/mame/drivers/hitpoker.cpp
index 5d3b1a0f040..60f01f9b3bc 100644
--- a/src/mame/drivers/hitpoker.cpp
+++ b/src/mame/drivers/hitpoker.cpp
@@ -49,6 +49,7 @@ Some debug tricks (let's test this CPU as more as possible):
#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/homelab.cpp b/src/mame/drivers/homelab.cpp
index 7985386190e..e9782c9adf6 100644
--- a/src/mame/drivers/homelab.cpp
+++ b/src/mame/drivers/homelab.cpp
@@ -40,6 +40,7 @@ MB7051 - fuse programmed prom.
#include "sound/mea8000.h"
#include "sound/volt_reg.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/homez80.cpp b/src/mame/drivers/homez80.cpp
index 6936a028089..7e7dd6c439e 100644
--- a/src/mame/drivers/homez80.cpp
+++ b/src/mame/drivers/homez80.cpp
@@ -22,6 +22,7 @@
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/hornet.cpp b/src/mame/drivers/hornet.cpp
index 2201267c2de..654e7bafb46 100644
--- a/src/mame/drivers/hornet.cpp
+++ b/src/mame/drivers/hornet.cpp
@@ -324,6 +324,7 @@
#include "sound/k056800.h"
#include "video/voodoo.h"
#include "video/k037122.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/hotblock.cpp b/src/mame/drivers/hotblock.cpp
index 17683f253b4..e6d6f5a584b 100644
--- a/src/mame/drivers/hotblock.cpp
+++ b/src/mame/drivers/hotblock.cpp
@@ -41,6 +41,7 @@ so it could be by them instead
#include "emu.h"
#include "cpu/i86/i86.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/hotstuff.cpp b/src/mame/drivers/hotstuff.cpp
index 2132066f1ae..71182c6773e 100644
--- a/src/mame/drivers/hotstuff.cpp
+++ b/src/mame/drivers/hotstuff.cpp
@@ -6,6 +6,7 @@
#include "cpu/m68000/m68000.h"
#include "machine/mc146818.h"
#include "machine/z80scc.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/hp2640.cpp b/src/mame/drivers/hp2640.cpp
index 0a1a1d7264b..3355aad4c33 100644
--- a/src/mame/drivers/hp2640.cpp
+++ b/src/mame/drivers/hp2640.cpp
@@ -63,6 +63,7 @@
#include "bus/rs232/rs232.h"
#include "machine/ay31015.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "speaker.h"
#include "hp2640.lh"
diff --git a/src/mame/drivers/hp64k.cpp b/src/mame/drivers/hp64k.cpp
index 7b403d3597d..27e259b92a6 100644
--- a/src/mame/drivers/hp64k.cpp
+++ b/src/mame/drivers/hp64k.cpp
@@ -157,6 +157,7 @@
#include "machine/wd_fdc.h"
#include "sound/beep.h"
#include "video/i8275.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "machine/phi.h"
diff --git a/src/mame/drivers/hp80.cpp b/src/mame/drivers/hp80.cpp
index 6ff76d07a0f..09ce0b38b00 100644
--- a/src/mame/drivers/hp80.cpp
+++ b/src/mame/drivers/hp80.cpp
@@ -8,6 +8,7 @@
// This is WIP: lot of things still missing
#include "emu.h"
+#include "emupal.h"
#include "screen.h"
#include "cpu/capricorn/capricorn.h"
#include "speaker.h"
diff --git a/src/mame/drivers/hp9k.cpp b/src/mame/drivers/hp9k.cpp
index 8ee7b458dad..aa315b19bb5 100644
--- a/src/mame/drivers/hp9k.cpp
+++ b/src/mame/drivers/hp9k.cpp
@@ -42,6 +42,7 @@ TODO: boot tests fail
#include "video/mc6845.h"
#include "machine/terminal.h"
//#include "machine/ins8250.h"
+#include "emupal.h"
#include "screen.h"
#define HP9816_CHDIMX 8
diff --git a/src/mame/drivers/hp_ipc.cpp b/src/mame/drivers/hp_ipc.cpp
index b4a205a86a2..d477d4196c7 100644
--- a/src/mame/drivers/hp_ipc.cpp
+++ b/src/mame/drivers/hp_ipc.cpp
@@ -376,6 +376,7 @@ Software to look for
#include "rendlay.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/hprot1.cpp b/src/mame/drivers/hprot1.cpp
index b0d59a3841a..3eb700da6c6 100644
--- a/src/mame/drivers/hprot1.cpp
+++ b/src/mame/drivers/hprot1.cpp
@@ -59,6 +59,7 @@ Infinite loop is reached at address 0x7699
#include "cpu/mcs51/mcs51.h"
#include "sound/spkrdev.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/hunter2.cpp b/src/mame/drivers/hunter2.cpp
index ad43ca0f858..e04f452b0d5 100644
--- a/src/mame/drivers/hunter2.cpp
+++ b/src/mame/drivers/hunter2.cpp
@@ -29,6 +29,7 @@
#include "machine/nvram.h"
#include "sound/spkrdev.h"
#include "video/hd61830.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/hvyunit.cpp b/src/mame/drivers/hvyunit.cpp
index b6a50e242fd..56a5ddce7a4 100644
--- a/src/mame/drivers/hvyunit.cpp
+++ b/src/mame/drivers/hvyunit.cpp
@@ -66,6 +66,7 @@ To Do:
#include "machine/timer.h"
#include "sound/2203intf.h"
#include "video/kan_pand.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/i7000.cpp b/src/mame/drivers/i7000.cpp
index 4d6abac2106..a61380a1bc5 100644
--- a/src/mame/drivers/i7000.cpp
+++ b/src/mame/drivers/i7000.cpp
@@ -50,6 +50,7 @@
#include "machine/pit8253.h"
#include "sound/spkrdev.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ibm3153.cpp b/src/mame/drivers/ibm3153.cpp
index 92e85303e81..dd6827aa57f 100644
--- a/src/mame/drivers/ibm3153.cpp
+++ b/src/mame/drivers/ibm3153.cpp
@@ -39,6 +39,7 @@ ToDo:
#include "emu.h"
#include "cpu/mcs51/mcs51.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/ibm6580.cpp b/src/mame/drivers/ibm6580.cpp
index 35d9b25b5d3..447756285b7 100644
--- a/src/mame/drivers/ibm6580.cpp
+++ b/src/mame/drivers/ibm6580.cpp
@@ -96,6 +96,7 @@ Displaywriter System Manual S544-2023-0 (?) -- mentioned in US patents 4648071 a
#include "machine/ram.h"
#include "machine/upd765.h"
+#include "emupal.h"
#include "screen.h"
#include "ibm6580.lh"
diff --git a/src/mame/drivers/icatel.cpp b/src/mame/drivers/icatel.cpp
index bf55b38652c..9030fd03d35 100644
--- a/src/mame/drivers/icatel.cpp
+++ b/src/mame/drivers/icatel.cpp
@@ -24,6 +24,7 @@
//#include "sound/speaker.h"
#include "debugger.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
diff --git a/src/mame/drivers/ichiban.cpp b/src/mame/drivers/ichiban.cpp
index 19d0edfa871..a5943e0b17d 100644
--- a/src/mame/drivers/ichiban.cpp
+++ b/src/mame/drivers/ichiban.cpp
@@ -40,6 +40,7 @@ HSync - 15.510kHz
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/if800.cpp b/src/mame/drivers/if800.cpp
index be63e0fdac0..125f39ccc03 100644
--- a/src/mame/drivers/if800.cpp
+++ b/src/mame/drivers/if800.cpp
@@ -11,6 +11,7 @@
#include "cpu/i86/i86.h"
#include "machine/pic8259.h"
#include "video/upd7220.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/igs009.cpp b/src/mame/drivers/igs009.cpp
index 07b0489d93a..6109cdd4855 100644
--- a/src/mame/drivers/igs009.cpp
+++ b/src/mame/drivers/igs009.cpp
@@ -34,6 +34,7 @@ Year Game Manufacturer Notes
#include "sound/ym2413.h"
#include "sound/okim6295.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/igs011.cpp b/src/mame/drivers/igs011.cpp
index 0070789dfa1..4a382113070 100644
--- a/src/mame/drivers/igs011.cpp
+++ b/src/mame/drivers/igs011.cpp
@@ -72,6 +72,7 @@ Notes:
#include "sound/ics2115.h"
#include "machine/nvram.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/igs017.cpp b/src/mame/drivers/igs017.cpp
index 6510505f651..ad25462b36b 100644
--- a/src/mame/drivers/igs017.cpp
+++ b/src/mame/drivers/igs017.cpp
@@ -58,6 +58,7 @@ Notes:
#include "machine/timer.h"
#include "video/igs017_igs031.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/igs_fear.cpp b/src/mame/drivers/igs_fear.cpp
index 4b44ea36d8c..ad511b29551 100644
--- a/src/mame/drivers/igs_fear.cpp
+++ b/src/mame/drivers/igs_fear.cpp
@@ -7,6 +7,7 @@
#include "machine/nvram.h"
#include "machine/pgmcrypt.h"
#include "sound/ics2115.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/igs_m036.cpp b/src/mame/drivers/igs_m036.cpp
index 70f0c208e29..8dd3c22f185 100644
--- a/src/mame/drivers/igs_m036.cpp
+++ b/src/mame/drivers/igs_m036.cpp
@@ -61,6 +61,7 @@ check more info and photo from cjdh2.zip!!!
#include "cpu/arm7/arm7.h"
#include "cpu/arm7/arm7core.h"
#include "machine/igs036crypt.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/igspoker.cpp b/src/mame/drivers/igspoker.cpp
index 8db7983430e..cb09e334fcf 100644
--- a/src/mame/drivers/igspoker.cpp
+++ b/src/mame/drivers/igspoker.cpp
@@ -70,6 +70,7 @@ FIX: PK Tetris have an input named AMUSE which I couldn't map. Maybe it is
#include "machine/timer.h"
#include "sound/ym2413.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/imolagp.cpp b/src/mame/drivers/imolagp.cpp
index f6864706c52..a5cb7371ade 100644
--- a/src/mame/drivers/imolagp.cpp
+++ b/src/mame/drivers/imolagp.cpp
@@ -84,6 +84,7 @@ www.andys-arcade.com
#include "machine/i8255.h"
#include "machine/timer.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/indigo.cpp b/src/mame/drivers/indigo.cpp
index b39ffe1e391..f92d42f2246 100644
--- a/src/mame/drivers/indigo.cpp
+++ b/src/mame/drivers/indigo.cpp
@@ -27,6 +27,7 @@
#include "machine/eepromser.h"
#include "machine/sgi.h"
#include "machine/wd33c93.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/indy_indigo2.cpp b/src/mame/drivers/indy_indigo2.cpp
index cc809d5bc18..7d9333ec74b 100644
--- a/src/mame/drivers/indy_indigo2.cpp
+++ b/src/mame/drivers/indy_indigo2.cpp
@@ -59,6 +59,7 @@
#include "video/newport.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/inteladv.cpp b/src/mame/drivers/inteladv.cpp
index 6cb489a2edc..3ab31e40c33 100644
--- a/src/mame/drivers/inteladv.cpp
+++ b/src/mame/drivers/inteladv.cpp
@@ -20,6 +20,7 @@
#include "emu.h"
#include "cpu/m6502/r65c02.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/intrscti.cpp b/src/mame/drivers/intrscti.cpp
index 84e45f78eb3..89273429369 100644
--- a/src/mame/drivers/intrscti.cpp
+++ b/src/mame/drivers/intrscti.cpp
@@ -15,6 +15,7 @@ I've not had a chance to wire up the board yet, but it might be possible to writ
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/invqix.cpp b/src/mame/drivers/invqix.cpp
index 8e7f3e04730..e62c018a835 100644
--- a/src/mame/drivers/invqix.cpp
+++ b/src/mame/drivers/invqix.cpp
@@ -122,6 +122,7 @@ as well as Up Right, Cocktail or Flip Screen from the service menu.
#include "cpu/h8/h8s2357.h"
#include "sound/okim9810.h"
#include "machine/eepromser.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ipds.cpp b/src/mame/drivers/ipds.cpp
index e615db8815e..d9684c4990f 100644
--- a/src/mame/drivers/ipds.cpp
+++ b/src/mame/drivers/ipds.cpp
@@ -12,6 +12,7 @@
#include "cpu/i8085/i8085.h"
#include "video/i8275.h"
#include "machine/keyboard.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/iq151.cpp b/src/mame/drivers/iq151.cpp
index b9b8ccfeb54..1a522c39821 100644
--- a/src/mame/drivers/iq151.cpp
+++ b/src/mame/drivers/iq151.cpp
@@ -63,6 +63,7 @@ ToDo:
#include "bus/iq151/video32.h"
#include "bus/iq151/video64.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/iqblock.cpp b/src/mame/drivers/iqblock.cpp
index 94c39dbad34..3c747a0ba2f 100644
--- a/src/mame/drivers/iqblock.cpp
+++ b/src/mame/drivers/iqblock.cpp
@@ -56,6 +56,7 @@ Grndtour:
#include "cpu/z180/z180.h"
#include "machine/i8255.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/irisha.cpp b/src/mame/drivers/irisha.cpp
index b29e9b6f4bf..084516faedb 100644
--- a/src/mame/drivers/irisha.cpp
+++ b/src/mame/drivers/irisha.cpp
@@ -23,6 +23,7 @@
#include "machine/pic8259.h"
#include "machine/pit8253.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/istellar.cpp b/src/mame/drivers/istellar.cpp
index d4fbdab5bcf..5e5209c3ad9 100644
--- a/src/mame/drivers/istellar.cpp
+++ b/src/mame/drivers/istellar.cpp
@@ -25,6 +25,7 @@ Todo:
#include "cpu/z80/z80.h"
#include "machine/gen_latch.h"
#include "machine/ldv1000.h"
+#include "emupal.h"
#include "render.h"
#include "speaker.h"
diff --git a/src/mame/drivers/istrebiteli.cpp b/src/mame/drivers/istrebiteli.cpp
index 12558aabdc1..b2f2eccd28f 100644
--- a/src/mame/drivers/istrebiteli.cpp
+++ b/src/mame/drivers/istrebiteli.cpp
@@ -24,6 +24,7 @@
#include "emu.h"
#include "cpu/i8085/i8085.h"
#include "machine/i8255.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/itgambl2.cpp b/src/mame/drivers/itgambl2.cpp
index 0b451afc8f9..1580685cd05 100644
--- a/src/mame/drivers/itgambl2.cpp
+++ b/src/mame/drivers/itgambl2.cpp
@@ -56,6 +56,7 @@
#include "emu.h"
#include "cpu/h8/h83337.h"
#include "sound/upd7759.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/itgambl3.cpp b/src/mame/drivers/itgambl3.cpp
index 7b5d32cea7e..cee1042acb0 100644
--- a/src/mame/drivers/itgambl3.cpp
+++ b/src/mame/drivers/itgambl3.cpp
@@ -43,6 +43,7 @@
#include "emu.h"
#include "cpu/h8/h83048.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/itgamble.cpp b/src/mame/drivers/itgamble.cpp
index 2c767b629b7..70f06aa88d4 100644
--- a/src/mame/drivers/itgamble.cpp
+++ b/src/mame/drivers/itgamble.cpp
@@ -50,6 +50,7 @@
#include "emu.h"
#include "cpu/h8/h83048.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/itt3030.cpp b/src/mame/drivers/itt3030.cpp
index 5de12713707..13e1d8efb6a 100644
--- a/src/mame/drivers/itt3030.cpp
+++ b/src/mame/drivers/itt3030.cpp
@@ -197,6 +197,7 @@ Beeper Circuit, all ICs shown:
#include "machine/wd_fdc.h"
#include "sound/beep.h"
#include "video/tms9927.h" //Display hardware
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "formats/itt3030_dsk.h"
diff --git a/src/mame/drivers/jackie.cpp b/src/mame/drivers/jackie.cpp
index a385c907104..20a2f045a8d 100644
--- a/src/mame/drivers/jackie.cpp
+++ b/src/mame/drivers/jackie.cpp
@@ -50,6 +50,7 @@ Note
#include "machine/i8255.h"
#include "machine/timer.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jackpool.cpp b/src/mame/drivers/jackpool.cpp
index d69d8a839ea..5774f9a874b 100644
--- a/src/mame/drivers/jackpool.cpp
+++ b/src/mame/drivers/jackpool.cpp
@@ -23,6 +23,7 @@ TODO:
#include "machine/eepromser.h"
#include "machine/ins8250.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jalmah.cpp b/src/mame/drivers/jalmah.cpp
index 276b5d55425..b2f0548e032 100644
--- a/src/mame/drivers/jalmah.cpp
+++ b/src/mame/drivers/jalmah.cpp
@@ -119,6 +119,7 @@ OSC: 12.000MHz
#include "cpu/m68000/m68000.h"
#include "machine/timer.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jangou.cpp b/src/mame/drivers/jangou.cpp
index b032c162a78..e739d931837 100644
--- a/src/mame/drivers/jangou.cpp
+++ b/src/mame/drivers/jangou.cpp
@@ -35,6 +35,7 @@ $c088-$c095 player tiles
#include "sound/msm5205.h"
#include "video/jangou_blitter.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jantotsu.cpp b/src/mame/drivers/jantotsu.cpp
index b1fedb0f74b..251068c8fa2 100644
--- a/src/mame/drivers/jantotsu.cpp
+++ b/src/mame/drivers/jantotsu.cpp
@@ -98,6 +98,7 @@ dumped by sayu
#include "cpu/z80/z80.h"
#include "sound/sn76496.h"
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jchan.cpp b/src/mame/drivers/jchan.cpp
index ec8a70e9711..ae3b659e137 100644
--- a/src/mame/drivers/jchan.cpp
+++ b/src/mame/drivers/jchan.cpp
@@ -163,6 +163,7 @@ JC-301-00 W11 9510K7059 23C16000 U85
#include "video/sknsspr.h"
#include "video/kaneko_tmap.h"
#include "machine/kaneko_toybox.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jclub2.cpp b/src/mame/drivers/jclub2.cpp
index 80931711efb..bc175d00da9 100644
--- a/src/mame/drivers/jclub2.cpp
+++ b/src/mame/drivers/jclub2.cpp
@@ -106,6 +106,7 @@
#include "machine/timer.h"
#include "machine/watchdog.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "speaker.h"
#include "video/st0020.h"
#include "jclub2o.lh"
diff --git a/src/mame/drivers/jokrwild.cpp b/src/mame/drivers/jokrwild.cpp
index a823960cb02..c6c27f7fcf5 100644
--- a/src/mame/drivers/jokrwild.cpp
+++ b/src/mame/drivers/jokrwild.cpp
@@ -76,6 +76,7 @@
#include "video/mc6845.h"
#include "machine/6821pia.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#define MASTER_CLOCK XTAL(8'000'000) /* guess */
diff --git a/src/mame/drivers/jollyjgr.cpp b/src/mame/drivers/jollyjgr.cpp
index 81d2f76b76f..1cdee280013 100644
--- a/src/mame/drivers/jollyjgr.cpp
+++ b/src/mame/drivers/jollyjgr.cpp
@@ -120,6 +120,7 @@ Notes:
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jongkyo.cpp b/src/mame/drivers/jongkyo.cpp
index b9ddbcc257e..07d8327cbeb 100644
--- a/src/mame/drivers/jongkyo.cpp
+++ b/src/mame/drivers/jongkyo.cpp
@@ -30,6 +30,7 @@
#include "cpu/z80/z80.h"
#include "machine/segacrpt_device.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jonos.cpp b/src/mame/drivers/jonos.cpp
index 8a79461400c..f26e21ddbe1 100644
--- a/src/mame/drivers/jonos.cpp
+++ b/src/mame/drivers/jonos.cpp
@@ -19,6 +19,7 @@ There are interrupt handlers at 5.5 (0x002c) and 6.5 (0x0034).
#include "emu.h"
#include "cpu/i8085/i8085.h"
#include "machine/keyboard.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/joystand.cpp b/src/mame/drivers/joystand.cpp
index c0c30f5f27a..7fa1b94e345 100644
--- a/src/mame/drivers/joystand.cpp
+++ b/src/mame/drivers/joystand.cpp
@@ -96,6 +96,7 @@ Notes:
#include "machine/tmp68301.h"
#include "sound/okim6295.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jr100.cpp b/src/mame/drivers/jr100.cpp
index d1cd8fbc757..00e77364822 100644
--- a/src/mame/drivers/jr100.cpp
+++ b/src/mame/drivers/jr100.cpp
@@ -22,6 +22,7 @@
#include "sound/beep.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jr200.cpp b/src/mame/drivers/jr200.cpp
index 2e5f3f9f648..563c4862018 100644
--- a/src/mame/drivers/jr200.cpp
+++ b/src/mame/drivers/jr200.cpp
@@ -20,6 +20,7 @@
#include "emu.h"
#include "cpu/m6800/m6800.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jtc.cpp b/src/mame/drivers/jtc.cpp
index 5b2038a1e1e..18abfd29436 100644
--- a/src/mame/drivers/jtc.cpp
+++ b/src/mame/drivers/jtc.cpp
@@ -15,6 +15,7 @@
#include "machine/ram.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jubilee.cpp b/src/mame/drivers/jubilee.cpp
index c246267ca53..8d744d4e552 100644
--- a/src/mame/drivers/jubilee.cpp
+++ b/src/mame/drivers/jubilee.cpp
@@ -197,6 +197,7 @@
#include "cpu/tms9900/tms9980a.h"
#include "machine/nvram.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#define MASTER_CLOCK XTAL(6'000'000) /* confirmed */
diff --git a/src/mame/drivers/juicebox.cpp b/src/mame/drivers/juicebox.cpp
index 0f51f0e4899..dab59e93e21 100644
--- a/src/mame/drivers/juicebox.cpp
+++ b/src/mame/drivers/juicebox.cpp
@@ -14,6 +14,7 @@
#include "machine/smartmed.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/jungleyo.cpp b/src/mame/drivers/jungleyo.cpp
index caf1e6916e5..5d14ac70ba6 100644
--- a/src/mame/drivers/jungleyo.cpp
+++ b/src/mame/drivers/jungleyo.cpp
@@ -40,6 +40,7 @@ PCB silkscreened: "MADE IN TAIWAN YONSHI PCB NO-006F"
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jupace.cpp b/src/mame/drivers/jupace.cpp
index 15dc311998e..37a5c3c3438 100644
--- a/src/mame/drivers/jupace.cpp
+++ b/src/mame/drivers/jupace.cpp
@@ -56,6 +56,7 @@ Ports:
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/jupiter.cpp b/src/mame/drivers/jupiter.cpp
index dcf7829d840..bfa4d7a0012 100644
--- a/src/mame/drivers/jupiter.cpp
+++ b/src/mame/drivers/jupiter.cpp
@@ -33,6 +33,7 @@ ToDo: (both)
#include "bus/rs232/rs232.h"
#include "machine/ram.h"
#include "machine/wd_fdc.h"
+#include "emupal.h"
#include "screen.h"
#define MCM6571AP_TAG "vid125_6c"
diff --git a/src/mame/drivers/k8915.cpp b/src/mame/drivers/k8915.cpp
index d307f17be72..b5047dcdcb2 100644
--- a/src/mame/drivers/k8915.cpp
+++ b/src/mame/drivers/k8915.cpp
@@ -16,6 +16,7 @@ When it says DIAGNOSTIC RAZ P, press enter.
#include "machine/z80sio.h"
#include "machine/clock.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
class k8915_state : public driver_device
diff --git a/src/mame/drivers/kdt6.cpp b/src/mame/drivers/kdt6.cpp
index dd04cc33e91..64669c7992d 100644
--- a/src/mame/drivers/kdt6.cpp
+++ b/src/mame/drivers/kdt6.cpp
@@ -27,6 +27,7 @@
#include "bus/centronics/ctronics.h"
#include "bus/psi_kbd/psi_kbd.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "softlist.h"
diff --git a/src/mame/drivers/kingdrby.cpp b/src/mame/drivers/kingdrby.cpp
index 308e7eedcfb..8b37d6d1c77 100644
--- a/src/mame/drivers/kingdrby.cpp
+++ b/src/mame/drivers/kingdrby.cpp
@@ -80,6 +80,7 @@ sg1_b.e1 4096 0x92ef3c13 D2732D
#include "sound/ay8910.h"
#include "sound/okim6295.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/kinst.cpp b/src/mame/drivers/kinst.cpp
index 893993c628d..3b844719d4e 100644
--- a/src/mame/drivers/kinst.cpp
+++ b/src/mame/drivers/kinst.cpp
@@ -184,6 +184,7 @@ Notes:
#include "cpu/mips/mips3.h"
#include "machine/ataintf.h"
#include "machine/idehd.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/koftball.cpp b/src/mame/drivers/koftball.cpp
index 925a4de6803..014056e3a0c 100644
--- a/src/mame/drivers/koftball.cpp
+++ b/src/mame/drivers/koftball.cpp
@@ -34,6 +34,7 @@ ft5_v6_c4.u58 /
#include "sound/okim6295.h"
#include "sound/ym2413.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/koikoi.cpp b/src/mame/drivers/koikoi.cpp
index a6bf26f85ff..b23d944678a 100644
--- a/src/mame/drivers/koikoi.cpp
+++ b/src/mame/drivers/koikoi.cpp
@@ -42,6 +42,7 @@ to prevent disabling inputs.
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/konamim2.cpp b/src/mame/drivers/konamim2.cpp
index 374186fa2c1..44f365a9d45 100644
--- a/src/mame/drivers/konamim2.cpp
+++ b/src/mame/drivers/konamim2.cpp
@@ -193,6 +193,7 @@ Notes:
#include "cpu/powerpc/ppc.h"
#include "imagedev/chd_cd.h"
#include "machine/terminal.h"
+#include "emupal.h"
#include "softlist.h"
#include "screen.h"
diff --git a/src/mame/drivers/konblands.cpp b/src/mame/drivers/konblands.cpp
index e0ca08f1a3d..4c891edbf70 100644
--- a/src/mame/drivers/konblands.cpp
+++ b/src/mame/drivers/konblands.cpp
@@ -22,6 +22,7 @@
#include "cpu/m6809/m6809.h"
#include "sound/sn76496.h"
#include "machine/ldv1000.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/konendev.cpp b/src/mame/drivers/konendev.cpp
index 9d75678d64d..35c2f7a519b 100644
--- a/src/mame/drivers/konendev.cpp
+++ b/src/mame/drivers/konendev.cpp
@@ -40,6 +40,7 @@
#include "machine/nvram.h"
#include "sound/ymz280b.h"
#include "video/k057714.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/konmedal.cpp b/src/mame/drivers/konmedal.cpp
index e3a0f8ac83b..d360091442a 100644
--- a/src/mame/drivers/konmedal.cpp
+++ b/src/mame/drivers/konmedal.cpp
@@ -40,6 +40,7 @@ K051649 (sound)
#include "video/k054156_k054157_k056832.h"
#include "video/k052109.h"
#include "video/konami_helper.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/konmedal68k.cpp b/src/mame/drivers/konmedal68k.cpp
index 3bed7632fec..fe9c4fa123a 100644
--- a/src/mame/drivers/konmedal68k.cpp
+++ b/src/mame/drivers/konmedal68k.cpp
@@ -29,6 +29,7 @@
#include "video/k054156_k054157_k056832.h"
#include "video/k055555.h"
#include "video/konami_helper.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/kontest.cpp b/src/mame/drivers/kontest.cpp
index 31f4de0f33f..47bfdc30e79 100644
--- a/src/mame/drivers/kontest.cpp
+++ b/src/mame/drivers/kontest.cpp
@@ -23,6 +23,7 @@
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/sn76496.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/kron.cpp b/src/mame/drivers/kron.cpp
index 3bb07c3391c..0feca30d3f6 100644
--- a/src/mame/drivers/kron.cpp
+++ b/src/mame/drivers/kron.cpp
@@ -101,6 +101,7 @@
#include "emu.h"
#include "cpu/z180/z180.h"
#include "machine/pckeybrd.h"
+#include "emupal.h"
#include "screen.h"
#define VERBOSE 2
diff --git a/src/mame/drivers/laser3k.cpp b/src/mame/drivers/laser3k.cpp
index 9e780e4d452..a9990f8d274 100644
--- a/src/mame/drivers/laser3k.cpp
+++ b/src/mame/drivers/laser3k.cpp
@@ -37,6 +37,7 @@
#include "machine/kb3600.h"
#include "sound/sn76496.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/laserbas.cpp b/src/mame/drivers/laserbas.cpp
index 562630cffc4..ae0c543c84f 100644
--- a/src/mame/drivers/laserbas.cpp
+++ b/src/mame/drivers/laserbas.cpp
@@ -66,6 +66,7 @@ expected: 43 FB CC 9A D4 23 6C 01 3E <- From ROM 4
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/lastbank.cpp b/src/mame/drivers/lastbank.cpp
index 530990e05f0..921b151535e 100644
--- a/src/mame/drivers/lastbank.cpp
+++ b/src/mame/drivers/lastbank.cpp
@@ -19,6 +19,7 @@
#include "machine/nvram.h"
#include "machine/tc009xlvc.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/lastfght.cpp b/src/mame/drivers/lastfght.cpp
index 72fd4b72bf6..c5cfe528906 100644
--- a/src/mame/drivers/lastfght.cpp
+++ b/src/mame/drivers/lastfght.cpp
@@ -68,6 +68,7 @@ Notes:
#include "cpu/h8/h83048.h"
#include "machine/nvram.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/lbeach.cpp b/src/mame/drivers/lbeach.cpp
index 69a50cc7bc2..10a501d8d70 100644
--- a/src/mame/drivers/lbeach.cpp
+++ b/src/mame/drivers/lbeach.cpp
@@ -26,6 +26,7 @@ TODO:
#include "emu.h"
#include "cpu/m6800/m6800.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#include "lbeach.lh"
diff --git a/src/mame/drivers/lcmate2.cpp b/src/mame/drivers/lcmate2.cpp
index f873c095da1..cebedff6629 100644
--- a/src/mame/drivers/lcmate2.cpp
+++ b/src/mame/drivers/lcmate2.cpp
@@ -35,6 +35,7 @@
#include "machine/rp5c15.h"
#include "sound/spkrdev.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/lethalj.cpp b/src/mame/drivers/lethalj.cpp
index 3c17073ef7d..433ab342b93 100644
--- a/src/mame/drivers/lethalj.cpp
+++ b/src/mame/drivers/lethalj.cpp
@@ -143,6 +143,7 @@ Pin #11(+) | | R |
#include "includes/lethalj.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/lgp.cpp b/src/mame/drivers/lgp.cpp
index ec456ee2a52..a281e9cc116 100644
--- a/src/mame/drivers/lgp.cpp
+++ b/src/mame/drivers/lgp.cpp
@@ -68,6 +68,7 @@ Dumping Notes:
#include "emu.h"
#include "cpu/z80/z80.h"
#include "machine/ldv1000.h"
+#include "emupal.h"
#include "render.h"
#include "speaker.h"
diff --git a/src/mame/drivers/limenko.cpp b/src/mame/drivers/limenko.cpp
index 224673d5998..4b68e7eecb6 100644
--- a/src/mame/drivers/limenko.cpp
+++ b/src/mame/drivers/limenko.cpp
@@ -30,6 +30,7 @@
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
#include "sound/qs1000.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/llc.cpp b/src/mame/drivers/llc.cpp
index a64113ad4a5..7a338a5bbdf 100644
--- a/src/mame/drivers/llc.cpp
+++ b/src/mame/drivers/llc.cpp
@@ -51,6 +51,7 @@
#include "includes/llc.h"
#include "machine/keyboard.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/lola8a.cpp b/src/mame/drivers/lola8a.cpp
index 5202647f6fa..6f6aab6ae1c 100644
--- a/src/mame/drivers/lola8a.cpp
+++ b/src/mame/drivers/lola8a.cpp
@@ -29,6 +29,7 @@
#include "sound/ay8910.h"
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/looping.cpp b/src/mame/drivers/looping.cpp
index 9bafb5ed70e..3ecc1ed2380 100644
--- a/src/mame/drivers/looping.cpp
+++ b/src/mame/drivers/looping.cpp
@@ -66,6 +66,7 @@ L056-6 9A " " VLI-8-4 7A "
#include "sound/tms5220.h"
#include "sound/volt_reg.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ltcasino.cpp b/src/mame/drivers/ltcasino.cpp
index 7b34ddaa64b..d52be7f517b 100644
--- a/src/mame/drivers/ltcasino.cpp
+++ b/src/mame/drivers/ltcasino.cpp
@@ -57,6 +57,7 @@ Other: Hitatchi HD46821P 1MHz NMOS Peripheral Interface Adapter (PIA) x 2
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/luckgrln.cpp b/src/mame/drivers/luckgrln.cpp
index 1dcaaf57dcf..66f1a101fbf 100644
--- a/src/mame/drivers/luckgrln.cpp
+++ b/src/mame/drivers/luckgrln.cpp
@@ -79,6 +79,7 @@
#include "cpu/z180/z180.h"
#include "machine/msm6242.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/m14.cpp b/src/mame/drivers/m14.cpp
index b793822ed77..8d9a3329d02 100644
--- a/src/mame/drivers/m14.cpp
+++ b/src/mame/drivers/m14.cpp
@@ -50,6 +50,7 @@ Dumped by Chackn
#include "emu.h"
#include "cpu/i8085/i8085.h"
+#include "emupal.h"
#include "screen.h"
#include "sound/samples.h"
#include "speaker.h"
diff --git a/src/mame/drivers/m20.cpp b/src/mame/drivers/m20.cpp
index bfaca683566..c7fbcbfbc81 100644
--- a/src/mame/drivers/m20.cpp
+++ b/src/mame/drivers/m20.cpp
@@ -51,6 +51,7 @@ E I1 Vectored interrupt error
#include "machine/wd_fdc.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/m3.cpp b/src/mame/drivers/m3.cpp
index 1bc918fe29a..6e19a193b83 100644
--- a/src/mame/drivers/m3.cpp
+++ b/src/mame/drivers/m3.cpp
@@ -14,6 +14,7 @@ From disassembly: chips: Z80, 6845, 8251, 2x 8255, Z80CTC
#include "emu.h"
#include "cpu/z80/z80.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
class m3_state : public driver_device
diff --git a/src/mame/drivers/m63.cpp b/src/mame/drivers/m63.cpp
index f77a3427b0d..234c3f9a323 100644
--- a/src/mame/drivers/m63.cpp
+++ b/src/mame/drivers/m63.cpp
@@ -124,6 +124,7 @@ Dip locations verified for:
#include "machine/gen_latch.h"
#include "sound/ay8910.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/m79152pc.cpp b/src/mame/drivers/m79152pc.cpp
index 4ef5c7439d0..19cebea3101 100644
--- a/src/mame/drivers/m79152pc.cpp
+++ b/src/mame/drivers/m79152pc.cpp
@@ -16,6 +16,7 @@
#include "machine/z80sio.h"
#include "machine/clock.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/mac128.cpp b/src/mame/drivers/mac128.cpp
index 37405b3b652..f80d366764b 100644
--- a/src/mame/drivers/mac128.cpp
+++ b/src/mame/drivers/mac128.cpp
@@ -97,6 +97,7 @@ c0 8 data bits, Rx disabled
#include "bus/scsi/scsi.h"
#include "bus/scsi/scsihd.h"
#include "bus/scsi/scsicd.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/macpci.cpp b/src/mame/drivers/macpci.cpp
index 01ab8d27ee9..a4b9ad2c86a 100644
--- a/src/mame/drivers/macpci.cpp
+++ b/src/mame/drivers/macpci.cpp
@@ -41,6 +41,7 @@
#include "cpu/powerpc/ppc.h"
#include "imagedev/chd_cd.h"
#include "sound/cdda.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/madmotor.cpp b/src/mame/drivers/madmotor.cpp
index 2f62c1958fd..b3fd5eb0230 100644
--- a/src/mame/drivers/madmotor.cpp
+++ b/src/mame/drivers/madmotor.cpp
@@ -26,6 +26,7 @@
#include "sound/okim6295.h"
#include "video/decbac06.h"
#include "video/decmxc06.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/magic10.cpp b/src/mame/drivers/magic10.cpp
index 825f68fcbea..4b05885ef1b 100644
--- a/src/mame/drivers/magic10.cpp
+++ b/src/mame/drivers/magic10.cpp
@@ -94,6 +94,7 @@
#include "cpu/m68000/m68000.h"
#include "machine/nvram.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/magicard.cpp b/src/mame/drivers/magicard.cpp
index e1acecbf8f3..04f92c62a35 100644
--- a/src/mame/drivers/magicard.cpp
+++ b/src/mame/drivers/magicard.cpp
@@ -399,6 +399,7 @@
#include "sound/ay8910.h"
#include "sound/saa1099.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/magicfly.cpp b/src/mame/drivers/magicfly.cpp
index f99a0603475..1aada5b9553 100644
--- a/src/mame/drivers/magicfly.cpp
+++ b/src/mame/drivers/magicfly.cpp
@@ -446,6 +446,7 @@
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/magnum.cpp b/src/mame/drivers/magnum.cpp
index 7cde1c84793..842c2de160d 100644
--- a/src/mame/drivers/magnum.cpp
+++ b/src/mame/drivers/magnum.cpp
@@ -12,6 +12,7 @@
#include "video/hd61830.h"
#include "video/i8275.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mainevt.cpp b/src/mame/drivers/mainevt.cpp
index bd2033fbd68..87f50233ce5 100644
--- a/src/mame/drivers/mainevt.cpp
+++ b/src/mame/drivers/mainevt.cpp
@@ -31,6 +31,7 @@ Notes:
#include "cpu/m6809/m6809.h"
#include "machine/gen_latch.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/majorpkr.cpp b/src/mame/drivers/majorpkr.cpp
index 3260040bb01..ee65f7c4889 100644
--- a/src/mame/drivers/majorpkr.cpp
+++ b/src/mame/drivers/majorpkr.cpp
@@ -457,6 +457,7 @@
#include "sound/okim6295.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/marinedt.cpp b/src/mame/drivers/marinedt.cpp
index c1aa14137f3..5ca22be54b9 100644
--- a/src/mame/drivers/marinedt.cpp
+++ b/src/mame/drivers/marinedt.cpp
@@ -102,6 +102,7 @@ Lower PCB is plugged in with components facing up.
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mastboy.cpp b/src/mame/drivers/mastboy.cpp
index f390b622f28..d25a3e5ca43 100644
--- a/src/mame/drivers/mastboy.cpp
+++ b/src/mame/drivers/mastboy.cpp
@@ -445,6 +445,7 @@
#include "machine/74259.h"
#include "machine/bankdev.h"
#include "machine/eeprompar.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mastboyo.cpp b/src/mame/drivers/mastboyo.cpp
index 9384dfa3d7f..aa25b5a0b0d 100644
--- a/src/mame/drivers/mastboyo.cpp
+++ b/src/mame/drivers/mastboyo.cpp
@@ -11,6 +11,7 @@ this is Gaelco's first game, although there should be a 1986 release too, likely
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "machine/nvram.h"
diff --git a/src/mame/drivers/maygayv1.cpp b/src/mame/drivers/maygayv1.cpp
index 3c2720f46a5..1afcd41f612 100644
--- a/src/mame/drivers/maygayv1.cpp
+++ b/src/mame/drivers/maygayv1.cpp
@@ -138,6 +138,7 @@ Find lamps/reels after UPD changes.
#include "sound/upd7759.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mazerbla.cpp b/src/mame/drivers/mazerbla.cpp
index f2c59f75822..c77403ca226 100644
--- a/src/mame/drivers/mazerbla.cpp
+++ b/src/mame/drivers/mazerbla.cpp
@@ -111,6 +111,7 @@ video z80
#include "sound/ay8910.h"
#include "video/resnet.h"
#include "video/mb_vcu.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mbc200.cpp b/src/mame/drivers/mbc200.cpp
index 27070a58697..4f7c87cd6a4 100644
--- a/src/mame/drivers/mbc200.cpp
+++ b/src/mame/drivers/mbc200.cpp
@@ -52,6 +52,7 @@ TODO:
#include "sound/beep.h"
#include "sound/spkrdev.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mc8020.cpp b/src/mame/drivers/mc8020.cpp
index a9cbe12bea7..5a012a80438 100644
--- a/src/mame/drivers/mc8020.cpp
+++ b/src/mame/drivers/mc8020.cpp
@@ -21,6 +21,7 @@ ToDo:
#include "machine/clock.h"
#include "machine/z80ctc.h"
#include "machine/z80pio.h"
+#include "emupal.h"
#include "screen.h"
class mc8020_state : public driver_device
diff --git a/src/mame/drivers/mc8030.cpp b/src/mame/drivers/mc8030.cpp
index d4f27c3834b..d53f919cc6d 100644
--- a/src/mame/drivers/mc8030.cpp
+++ b/src/mame/drivers/mc8030.cpp
@@ -20,6 +20,7 @@ The asp ctc needs at least 2 triggers. The purpose of the zve pio is unknown.
#include "emu.h"
#include "cpu/z80/z80.h"
#include "machine/z80daisy.h"
+#include "emupal.h"
#include "screen.h"
#include "machine/clock.h"
#include "bus/rs232/rs232.h"
diff --git a/src/mame/drivers/mcr68.cpp b/src/mame/drivers/mcr68.cpp
index 20f80066a7f..c3015cfa4e1 100644
--- a/src/mame/drivers/mcr68.cpp
+++ b/src/mame/drivers/mcr68.cpp
@@ -63,6 +63,7 @@
#include "cpu/m68000/m68000.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mediagx.cpp b/src/mame/drivers/mediagx.cpp
index c5eb14e6c35..22167e58778 100644
--- a/src/mame/drivers/mediagx.cpp
+++ b/src/mame/drivers/mediagx.cpp
@@ -75,6 +75,7 @@
#include "machine/timer.h"
#include "sound/dmadac.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/meijinsn.cpp b/src/mame/drivers/meijinsn.cpp
index 50da4c514c2..cb2fe7fbd31 100644
--- a/src/mame/drivers/meijinsn.cpp
+++ b/src/mame/drivers/meijinsn.cpp
@@ -67,6 +67,7 @@ SOFT PSG & VOICE BY M.C & S.H
#include "machine/timer.h"
#include "video/resnet.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mes.cpp b/src/mame/drivers/mes.cpp
index fadbb8f230d..e550616aad3 100644
--- a/src/mame/drivers/mes.cpp
+++ b/src/mame/drivers/mes.cpp
@@ -14,6 +14,7 @@ Schleicher MES
#include "machine/z80pio.h"
#include "machine/z80sio.h"
#include "machine/keyboard.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/metalmx.cpp b/src/mame/drivers/metalmx.cpp
index e936b12f7eb..c2aae10c208 100644
--- a/src/mame/drivers/metalmx.cpp
+++ b/src/mame/drivers/metalmx.cpp
@@ -257,6 +257,7 @@ Logic:
#include "emu.h"
#include "includes/metalmx.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/metlfrzr.cpp b/src/mame/drivers/metlfrzr.cpp
index f444d4274d3..aaf72b1d897 100644
--- a/src/mame/drivers/metlfrzr.cpp
+++ b/src/mame/drivers/metlfrzr.cpp
@@ -25,6 +25,7 @@
#include "cpu/z80/z80.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/meyc8088.cpp b/src/mame/drivers/meyc8088.cpp
index 392c149380b..04610e5e222 100644
--- a/src/mame/drivers/meyc8088.cpp
+++ b/src/mame/drivers/meyc8088.cpp
@@ -30,6 +30,7 @@
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mgames.cpp b/src/mame/drivers/mgames.cpp
index 01261f6c4a2..94218f32c5a 100644
--- a/src/mame/drivers/mgames.cpp
+++ b/src/mame/drivers/mgames.cpp
@@ -217,6 +217,7 @@
#include "emu.h"
#include "cpu/z80/z80.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#include "mgames.lh"
diff --git a/src/mame/drivers/mgolf.cpp b/src/mame/drivers/mgolf.cpp
index 5453cd0f8f2..b6a08b28860 100644
--- a/src/mame/drivers/mgolf.cpp
+++ b/src/mame/drivers/mgolf.cpp
@@ -8,6 +8,7 @@
#include "emu.h"
#include "cpu/m6502/m6502.h"
+#include "emupal.h"
#include "screen.h"
class mgolf_state : public driver_device
diff --git a/src/mame/drivers/micral.cpp b/src/mame/drivers/micral.cpp
index e05d72daa22..e29291dceb8 100644
--- a/src/mame/drivers/micral.cpp
+++ b/src/mame/drivers/micral.cpp
@@ -53,6 +53,7 @@ Other things...
#include "cpu/z80/z80.h"
#include "video/tms9927.h"
//#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "machine/ay31015.h"
diff --git a/src/mame/drivers/microtan.cpp b/src/mame/drivers/microtan.cpp
index 7e95d44a535..000a4eaad63 100644
--- a/src/mame/drivers/microtan.cpp
+++ b/src/mame/drivers/microtan.cpp
@@ -51,6 +51,7 @@
/* Devices */
#include "imagedev/cassette.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/microvsn.cpp b/src/mame/drivers/microvsn.cpp
index 4974c43a868..b4d6631ca77 100644
--- a/src/mame/drivers/microvsn.cpp
+++ b/src/mame/drivers/microvsn.cpp
@@ -22,6 +22,7 @@ of the games were clocked at around 500KHz, 550KHz, or 300KHz.
#include "cpu/tms1000/tms1100.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "rendlay.h"
#include "softlist.h"
#include "screen.h"
diff --git a/src/mame/drivers/midas.cpp b/src/mame/drivers/midas.cpp
index 18f7bdd2c3d..4ef6848aadb 100644
--- a/src/mame/drivers/midas.cpp
+++ b/src/mame/drivers/midas.cpp
@@ -58,6 +58,7 @@
#include "sound/ymz280b.h"
#include "machine/eepromser.h"
#include "machine/ticket.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mikro80.cpp b/src/mame/drivers/mikro80.cpp
index d0a93354d32..edfb8b74b60 100644
--- a/src/mame/drivers/mikro80.cpp
+++ b/src/mame/drivers/mikro80.cpp
@@ -15,6 +15,7 @@
#include "includes/mikro80.h"
#include "sound/volt_reg.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mil4000.cpp b/src/mame/drivers/mil4000.cpp
index 67832356114..078fdf01647 100644
--- a/src/mame/drivers/mil4000.cpp
+++ b/src/mame/drivers/mil4000.cpp
@@ -111,6 +111,7 @@
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/miniboy7.cpp b/src/mame/drivers/miniboy7.cpp
index 77d76d86b67..993924ac43d 100644
--- a/src/mame/drivers/miniboy7.cpp
+++ b/src/mame/drivers/miniboy7.cpp
@@ -138,6 +138,7 @@
#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/minitel_2_rpic.cpp b/src/mame/drivers/minitel_2_rpic.cpp
index b0a2a814287..b6b7f9ef65b 100644
--- a/src/mame/drivers/minitel_2_rpic.cpp
+++ b/src/mame/drivers/minitel_2_rpic.cpp
@@ -52,6 +52,7 @@
#include "machine/timer.h"
#include "video/ef9345.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/mirage.cpp b/src/mame/drivers/mirage.cpp
index 12ea49b8e16..f447eef62ec 100644
--- a/src/mame/drivers/mirage.cpp
+++ b/src/mame/drivers/mirage.cpp
@@ -46,6 +46,7 @@ MR_01-.3A [a0b758aa]
#include "sound/okim6295.h"
#include "video/bufsprite.h"
#include "video/decospr.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mirax.cpp b/src/mame/drivers/mirax.cpp
index 9d7faf0cc4e..aef0efc6d23 100644
--- a/src/mame/drivers/mirax.cpp
+++ b/src/mame/drivers/mirax.cpp
@@ -105,6 +105,7 @@ Stephh's notes (based on the games Z80 code and some tests) :
#include "machine/74259.h"
#include "machine/gen_latch.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/missb2.cpp b/src/mame/drivers/missb2.cpp
index 9b5a76615d5..2e095852a92 100644
--- a/src/mame/drivers/missb2.cpp
+++ b/src/mame/drivers/missb2.cpp
@@ -21,6 +21,7 @@ written, so it may be normal behaviour.
#include "sound/3526intf.h"
#include "sound/okim6295.h"
#include "machine/watchdog.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/missile.cpp b/src/mame/drivers/missile.cpp
index f1547cfe573..4d0ad7ca3f3 100644
--- a/src/mame/drivers/missile.cpp
+++ b/src/mame/drivers/missile.cpp
@@ -354,6 +354,7 @@ Super Missile Attack Board Layout
#include "machine/watchdog.h"
#include "sound/pokey.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mjsenpu.cpp b/src/mame/drivers/mjsenpu.cpp
index 9aac3d88309..62ae18bf19c 100644
--- a/src/mame/drivers/mjsenpu.cpp
+++ b/src/mame/drivers/mjsenpu.cpp
@@ -47,6 +47,7 @@
#include "machine/nvram.h"
#include "machine/ticket.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mjsister.cpp b/src/mame/drivers/mjsister.cpp
index 79662130629..4b6880a4cde 100644
--- a/src/mame/drivers/mjsister.cpp
+++ b/src/mame/drivers/mjsister.cpp
@@ -14,6 +14,7 @@
#include "sound/ay8910.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mk85.cpp b/src/mame/drivers/mk85.cpp
index 385c8ee32b1..77f93c03e9f 100644
--- a/src/mame/drivers/mk85.cpp
+++ b/src/mame/drivers/mk85.cpp
@@ -21,6 +21,7 @@ Models:
#include "emu.h"
#include "cpu/t11/t11.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/mk90.cpp b/src/mame/drivers/mk90.cpp
index 9297c94ad59..939af536e1f 100644
--- a/src/mame/drivers/mk90.cpp
+++ b/src/mame/drivers/mk90.cpp
@@ -18,6 +18,7 @@ months for an average citizen.
#include "emu.h"
#include "cpu/t11/t11.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/mlanding.cpp b/src/mame/drivers/mlanding.cpp
index ce82ac4617b..2326f5efb19 100644
--- a/src/mame/drivers/mlanding.cpp
+++ b/src/mame/drivers/mlanding.cpp
@@ -55,6 +55,7 @@
#include "sound/msm5205.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mmagic.cpp b/src/mame/drivers/mmagic.cpp
index 33f17effbb8..b5e38567e82 100644
--- a/src/mame/drivers/mmagic.cpp
+++ b/src/mame/drivers/mmagic.cpp
@@ -50,6 +50,7 @@
#include "emu.h"
#include "cpu/i8085/i8085.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "speaker.h"
#include "screen.h"
diff --git a/src/mame/drivers/modellot.cpp b/src/mame/drivers/modellot.cpp
index bc2faabcdcf..ed5039f6b2e 100644
--- a/src/mame/drivers/modellot.cpp
+++ b/src/mame/drivers/modellot.cpp
@@ -41,6 +41,7 @@ the devices themselves. An example shows a i8251 used as the US1 device.
#include "emu.h"
#include "cpu/z80/z80.h"
#include "machine/keyboard.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/mogura.cpp b/src/mame/drivers/mogura.cpp
index 1432a530b61..de7dce7d750 100644
--- a/src/mame/drivers/mogura.cpp
+++ b/src/mame/drivers/mogura.cpp
@@ -8,6 +8,7 @@
#include "cpu/z80/z80.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mole.cpp b/src/mame/drivers/mole.cpp
index 562b75e3b5b..ccd9a90593f 100644
--- a/src/mame/drivers/mole.cpp
+++ b/src/mame/drivers/mole.cpp
@@ -52,6 +52,7 @@
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/molecular.cpp b/src/mame/drivers/molecular.cpp
index a19ba4a0ebe..55240f56097 100644
--- a/src/mame/drivers/molecular.cpp
+++ b/src/mame/drivers/molecular.cpp
@@ -51,6 +51,7 @@ TODO:
#include "cpu/i86/i86.h"
#include "cpu/z80/z80.h"
//#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/monzagp.cpp b/src/mame/drivers/monzagp.cpp
index 28fe7d8362c..15329e6b238 100644
--- a/src/mame/drivers/monzagp.cpp
+++ b/src/mame/drivers/monzagp.cpp
@@ -35,6 +35,7 @@ Lower board (MGP_01):
#include "machine/timer.h"
//#include "video/dp8350.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "monzagp.lh"
diff --git a/src/mame/drivers/mosaic.cpp b/src/mame/drivers/mosaic.cpp
index 68beb36945e..509d9340f8d 100644
--- a/src/mame/drivers/mosaic.cpp
+++ b/src/mame/drivers/mosaic.cpp
@@ -40,6 +40,7 @@ Unknown 28 pin protection chip (possibly a PIC) at 5A (UC02 as silkscreened on P
#include "cpu/z180/z180.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mpu12wbk.cpp b/src/mame/drivers/mpu12wbk.cpp
index 118c2e1e042..9a629988f04 100644
--- a/src/mame/drivers/mpu12wbk.cpp
+++ b/src/mame/drivers/mpu12wbk.cpp
@@ -210,6 +210,7 @@
//#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mpu4dealem.cpp b/src/mame/drivers/mpu4dealem.cpp
index c94bb1f8aa7..d207e77ec0f 100644
--- a/src/mame/drivers/mpu4dealem.cpp
+++ b/src/mame/drivers/mpu4dealem.cpp
@@ -18,6 +18,7 @@ the Deal 'Em board design, rather than the one they ultimately used, suggesting
#include "video/resnet.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mrgame.cpp b/src/mame/drivers/mrgame.cpp
index 77900618fad..65d34e7df84 100644
--- a/src/mame/drivers/mrgame.cpp
+++ b/src/mame/drivers/mrgame.cpp
@@ -41,6 +41,7 @@ ToDo:
#include "sound/tms5220.h"
#include "sound/volt_reg.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ms0515.cpp b/src/mame/drivers/ms0515.cpp
index fc11c18559e..4f477cf1354 100644
--- a/src/mame/drivers/ms0515.cpp
+++ b/src/mame/drivers/ms0515.cpp
@@ -39,6 +39,7 @@
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ms6102.cpp b/src/mame/drivers/ms6102.cpp
index e9f3d909fb0..bdd4ea47ce9 100644
--- a/src/mame/drivers/ms6102.cpp
+++ b/src/mame/drivers/ms6102.cpp
@@ -44,6 +44,7 @@
#include "machine/vt100_kbd.h"
#include "video/i8275.h"
+#include "emupal.h"
#include "screen.h"
#define LOG_GENERAL (1U << 0)
diff --git a/src/mame/drivers/mstation.cpp b/src/mame/drivers/mstation.cpp
index 2f62c2b3ee8..d25da35351b 100644
--- a/src/mame/drivers/mstation.cpp
+++ b/src/mame/drivers/mstation.cpp
@@ -33,6 +33,7 @@
#include "machine/ram.h"
#include "machine/rp5c01.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
diff --git a/src/mame/drivers/multi16.cpp b/src/mame/drivers/multi16.cpp
index 35d34c38ec9..73dbba8e6ac 100644
--- a/src/mame/drivers/multi16.cpp
+++ b/src/mame/drivers/multi16.cpp
@@ -10,6 +10,7 @@
#include "cpu/i86/i86.h"
#include "machine/pic8259.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/multi8.cpp b/src/mame/drivers/multi8.cpp
index c5d3452b958..27d147f9b80 100644
--- a/src/mame/drivers/multi8.cpp
+++ b/src/mame/drivers/multi8.cpp
@@ -26,6 +26,7 @@
#include "sound/2203intf.h"
#include "sound/beep.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/multigam.cpp b/src/mame/drivers/multigam.cpp
index 77ab411083b..ee24d03a80d 100644
--- a/src/mame/drivers/multigam.cpp
+++ b/src/mame/drivers/multigam.cpp
@@ -109,6 +109,7 @@ Eproms are 27512,27010,274001
#include "emu.h"
#include "cpu/m6502/n2a03.h"
#include "video/ppu2c0x.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/murogem.cpp b/src/mame/drivers/murogem.cpp
index 16a8e1b17da..39fa5c66f5f 100644
--- a/src/mame/drivers/murogem.cpp
+++ b/src/mame/drivers/murogem.cpp
@@ -111,6 +111,7 @@ val (hex): 27 20 22 04 26 00 20 20 00 07 00 00 80 00 00 00 ns
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/murogmbl.cpp b/src/mame/drivers/murogmbl.cpp
index 8f78b7ca098..6343a7acdf6 100644
--- a/src/mame/drivers/murogmbl.cpp
+++ b/src/mame/drivers/murogmbl.cpp
@@ -40,6 +40,7 @@ Dumped: 06/04/2009 f205v
#include "cpu/z80/z80.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mwarr.cpp b/src/mame/drivers/mwarr.cpp
index 5acd59d4e4f..4587a48a83c 100644
--- a/src/mame/drivers/mwarr.cpp
+++ b/src/mame/drivers/mwarr.cpp
@@ -43,6 +43,7 @@ Notes:
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mx2178.cpp b/src/mame/drivers/mx2178.cpp
index c451f221225..7c469d77e6f 100644
--- a/src/mame/drivers/mx2178.cpp
+++ b/src/mame/drivers/mx2178.cpp
@@ -29,6 +29,7 @@ TODO:
#include "bus/rs232/rs232.h"
#include "machine/clock.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/mycom.cpp b/src/mame/drivers/mycom.cpp
index 24497d21a04..b7767ed7d6b 100644
--- a/src/mame/drivers/mycom.cpp
+++ b/src/mame/drivers/mycom.cpp
@@ -58,6 +58,7 @@
#include "sound/sn76496.h"
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mz2000.cpp b/src/mame/drivers/mz2000.cpp
index 79b7c8cc022..2152d022040 100644
--- a/src/mame/drivers/mz2000.cpp
+++ b/src/mame/drivers/mz2000.cpp
@@ -30,6 +30,7 @@
#include "sound/beep.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mz2500.cpp b/src/mame/drivers/mz2500.cpp
index 902c6943282..63ad04bc1cb 100644
--- a/src/mame/drivers/mz2500.cpp
+++ b/src/mame/drivers/mz2500.cpp
@@ -54,6 +54,7 @@
#include "machine/z80pio.h"
#include "sound/2203intf.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mz3500.cpp b/src/mame/drivers/mz3500.cpp
index f0790d8b1a3..7bfe7006ae5 100644
--- a/src/mame/drivers/mz3500.cpp
+++ b/src/mame/drivers/mz3500.cpp
@@ -35,6 +35,7 @@
#include "machine/pit8253.h"
#include "sound/beep.h"
#include "video/upd7220.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/mz6500.cpp b/src/mame/drivers/mz6500.cpp
index 82c3f48257c..c0fcec5024d 100644
--- a/src/mame/drivers/mz6500.cpp
+++ b/src/mame/drivers/mz6500.cpp
@@ -12,6 +12,7 @@
#include "cpu/i86/i86.h"
#include "machine/upd765.h"
#include "video/upd7220.h"
+#include "emupal.h"
#include "screen.h"
class mz6500_state : public driver_device
diff --git a/src/mame/drivers/mz80.cpp b/src/mame/drivers/mz80.cpp
index d5b1ea9048b..17d91c72d0a 100644
--- a/src/mame/drivers/mz80.cpp
+++ b/src/mame/drivers/mz80.cpp
@@ -31,6 +31,7 @@ MZ80B
#include "emu.h"
#include "includes/mz80.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/n64.cpp b/src/mame/drivers/n64.cpp
index 648ceef51da..9ba9e3eca78 100644
--- a/src/mame/drivers/n64.cpp
+++ b/src/mame/drivers/n64.cpp
@@ -18,6 +18,7 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
#include "imagedev/harddriv.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/nakajies.cpp b/src/mame/drivers/nakajies.cpp
index cc6afa3299d..86bab6620a5 100644
--- a/src/mame/drivers/nakajies.cpp
+++ b/src/mame/drivers/nakajies.cpp
@@ -276,6 +276,7 @@ disabled). Perhaps power on/off related??
#include "machine/rp5c01.h"
#include "machine/timer.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/namcond1.cpp b/src/mame/drivers/namcond1.cpp
index f2b30a10217..23733449f1f 100644
--- a/src/mame/drivers/namcond1.cpp
+++ b/src/mame/drivers/namcond1.cpp
@@ -190,6 +190,7 @@ Some logic, resistors/caps/transistors, some connectors etc.
#include "cpu/m68000/m68000.h"
#include "machine/at28c16.h"
#include "sound/c352.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/namcops2.cpp b/src/mame/drivers/namcops2.cpp
index ebe3c2a7af6..85ff2dc4114 100644
--- a/src/mame/drivers/namcops2.cpp
+++ b/src/mame/drivers/namcops2.cpp
@@ -873,6 +873,7 @@ Notes:
#include "emu.h"
#include "cpu/mips/mips3.h"
#include "cpu/mips/r3000.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/namcos23.cpp b/src/mame/drivers/namcos23.cpp
index f48dd80e3be..40254e108a4 100644
--- a/src/mame/drivers/namcos23.cpp
+++ b/src/mame/drivers/namcos23.cpp
@@ -1264,6 +1264,7 @@ Notes:
#include "machine/rtc4543.h"
#include "sound/c352.h"
#include "video/poly.h"
+#include "emupal.h"
#include "speaker.h"
#include <float.h>
diff --git a/src/mame/drivers/nanos.cpp b/src/mame/drivers/nanos.cpp
index e72b1be4315..a65135cab0d 100644
--- a/src/mame/drivers/nanos.cpp
+++ b/src/mame/drivers/nanos.cpp
@@ -21,6 +21,7 @@
#include "formats/nanos_dsk.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/naomi.cpp b/src/mame/drivers/naomi.cpp
index cfa8470c836..82ef3d7bdf3 100644
--- a/src/mame/drivers/naomi.cpp
+++ b/src/mame/drivers/naomi.cpp
@@ -1593,6 +1593,7 @@ Premier Eleven
#include "emu.h"
#include "includes/naomi.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/nascom1.cpp b/src/mame/drivers/nascom1.cpp
index f34219d0f2c..b08bc34b7a5 100644
--- a/src/mame/drivers/nascom1.cpp
+++ b/src/mame/drivers/nascom1.cpp
@@ -21,6 +21,7 @@
#include "bus/generic/carts.h"
#include "bus/nasbus/nasbus.h"
+#include "emupal.h"
#include "softlist.h"
#include "screen.h"
diff --git a/src/mame/drivers/neoprint.cpp b/src/mame/drivers/neoprint.cpp
index d072c6af365..7e74bc0dff0 100644
--- a/src/mame/drivers/neoprint.cpp
+++ b/src/mame/drivers/neoprint.cpp
@@ -27,6 +27,7 @@
#include "machine/nvram.h"
#include "machine/upd1990a.h"
#include "sound/2610intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/neptunp2.cpp b/src/mame/drivers/neptunp2.cpp
index 6e922aec5ef..861847c1e5b 100644
--- a/src/mame/drivers/neptunp2.cpp
+++ b/src/mame/drivers/neptunp2.cpp
@@ -11,6 +11,7 @@
#include "emu.h"
#include "cpu/i86/i186.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/news.cpp b/src/mame/drivers/news.cpp
index 577b30ae10e..6f59a8821d5 100644
--- a/src/mame/drivers/news.cpp
+++ b/src/mame/drivers/news.cpp
@@ -20,6 +20,7 @@ driver by David Haywood
#include "cpu/z80/z80.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/nexus3d.cpp b/src/mame/drivers/nexus3d.cpp
index 3563a289ccb..9d165009ca0 100644
--- a/src/mame/drivers/nexus3d.cpp
+++ b/src/mame/drivers/nexus3d.cpp
@@ -17,6 +17,7 @@
#include "cpu/arm7/arm7.h"
#include "cpu/arm7/arm7core.h"
#include "machine/serflash.h"
+#include "emupal.h"
#include "screen.h"
//#include "machine/i2cmem.h"
diff --git a/src/mame/drivers/nibble.cpp b/src/mame/drivers/nibble.cpp
index 102bd504fab..8d22015c7d1 100644
--- a/src/mame/drivers/nibble.cpp
+++ b/src/mame/drivers/nibble.cpp
@@ -51,6 +51,7 @@
//#include "cpu/tms9900/tms9900.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/nightgal.cpp b/src/mame/drivers/nightgal.cpp
index 64344191698..2d8a15260e9 100644
--- a/src/mame/drivers/nightgal.cpp
+++ b/src/mame/drivers/nightgal.cpp
@@ -34,6 +34,7 @@ TODO:
#include "sound/volt_reg.h"
#include "video/jangou_blitter.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/nmg5.cpp b/src/mame/drivers/nmg5.cpp
index 7da1dc56f97..272c0feedfb 100644
--- a/src/mame/drivers/nmg5.cpp
+++ b/src/mame/drivers/nmg5.cpp
@@ -228,6 +228,7 @@ Stephh's notes (based on the games M68000 code and some tests) :
#include "sound/3812intf.h"
#include "sound/okim6295.h"
#include "video/decospr.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/nokia_3310.cpp b/src/mame/drivers/nokia_3310.cpp
index fd8f8afe428..97e3ac4d356 100644
--- a/src/mame/drivers/nokia_3310.cpp
+++ b/src/mame/drivers/nokia_3310.cpp
@@ -19,6 +19,7 @@
#include "video/pcd8544.h"
#include "debugger.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/notetaker.cpp b/src/mame/drivers/notetaker.cpp
index b9a1a135846..c2ec1962eb6 100644
--- a/src/mame/drivers/notetaker.cpp
+++ b/src/mame/drivers/notetaker.cpp
@@ -108,6 +108,7 @@ DONE:
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/tms9927.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/nsmpoker.cpp b/src/mame/drivers/nsmpoker.cpp
index 6cab2b00c64..7d136a9683c 100644
--- a/src/mame/drivers/nsmpoker.cpp
+++ b/src/mame/drivers/nsmpoker.cpp
@@ -61,6 +61,7 @@
#include "emu.h"
#include "cpu/tms9900/tms9995.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/nss.cpp b/src/mame/drivers/nss.cpp
index c1a2845d482..3a6ee9b8cef 100644
--- a/src/mame/drivers/nss.cpp
+++ b/src/mame/drivers/nss.cpp
@@ -301,6 +301,7 @@ Contra III CONTRA_III_1 TC574000 CONTRA_III_0 TC574000 GAME1_NSSU
#include "machine/s3520cf.h"
#include "machine/rp5h01.h"
#include "video/m50458.h"
+#include "emupal.h"
#include "rendlay.h"
#include "speaker.h"
diff --git a/src/mame/drivers/nwk-tr.cpp b/src/mame/drivers/nwk-tr.cpp
index 2f33dbefebd..5aafdcdcfae 100644
--- a/src/mame/drivers/nwk-tr.cpp
+++ b/src/mame/drivers/nwk-tr.cpp
@@ -259,6 +259,7 @@ Thrill Drive 713A13 - 713A14 -
#include "sound/k056800.h"
#include "video/voodoo.h"
#include "video/k001604.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/nyny.cpp b/src/mame/drivers/nyny.cpp
index c9301f2f6f9..5859f90ed36 100644
--- a/src/mame/drivers/nyny.cpp
+++ b/src/mame/drivers/nyny.cpp
@@ -79,6 +79,7 @@
#include "sound/volt_reg.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/odyssey2.cpp b/src/mame/drivers/odyssey2.cpp
index 5401621cd5b..b49ec035d2b 100644
--- a/src/mame/drivers/odyssey2.cpp
+++ b/src/mame/drivers/odyssey2.cpp
@@ -20,6 +20,7 @@
#include "bus/odyssey2/slot.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/okean240.cpp b/src/mame/drivers/okean240.cpp
index 819c2ba58d6..e2548b89950 100644
--- a/src/mame/drivers/okean240.cpp
+++ b/src/mame/drivers/okean240.cpp
@@ -57,6 +57,7 @@ Usage of terminal:
#include "machine/pic8259.h"
#include "machine/pit8253.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/olibochu.cpp b/src/mame/drivers/olibochu.cpp
index a8c559ef330..697850e6e22 100644
--- a/src/mame/drivers/olibochu.cpp
+++ b/src/mame/drivers/olibochu.cpp
@@ -58,6 +58,7 @@ $7004 writes, related to $7000 reads
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ondra.cpp b/src/mame/drivers/ondra.cpp
index f6a58186c8c..4c9efc09f53 100644
--- a/src/mame/drivers/ondra.cpp
+++ b/src/mame/drivers/ondra.cpp
@@ -16,6 +16,7 @@
#include "imagedev/cassette.h"
#include "machine/ram.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/onetwo.cpp b/src/mame/drivers/onetwo.cpp
index f80d74f1287..f37407b5b8f 100644
--- a/src/mame/drivers/onetwo.cpp
+++ b/src/mame/drivers/onetwo.cpp
@@ -47,6 +47,7 @@ Note: this is quite clearly a 'Korean bootleg' of Shisensho - Joshiryo-Hen / Mat
#include "machine/watchdog.h"
#include "sound/3812intf.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/orao.cpp b/src/mame/drivers/orao.cpp
index 634e8c7dd35..745c3d445cd 100644
--- a/src/mame/drivers/orao.cpp
+++ b/src/mame/drivers/orao.cpp
@@ -18,6 +18,7 @@
#include "cpu/m6502/m6502.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/oric.cpp b/src/mame/drivers/oric.cpp
index 97d3685435d..180d680769a 100644
--- a/src/mame/drivers/oric.cpp
+++ b/src/mame/drivers/oric.cpp
@@ -33,6 +33,7 @@
#include "sound/ay8910.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/osbexec.cpp b/src/mame/drivers/osbexec.cpp
index cd16a77c935..2e3f5a1a718 100644
--- a/src/mame/drivers/osbexec.cpp
+++ b/src/mame/drivers/osbexec.cpp
@@ -19,6 +19,7 @@
#include "machine/z80sio.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/othello.cpp b/src/mame/drivers/othello.cpp
index c85700a0237..6f541d6bb05 100644
--- a/src/mame/drivers/othello.cpp
+++ b/src/mame/drivers/othello.cpp
@@ -48,6 +48,7 @@ Limit for help/undo (matta):
#include "sound/volt_reg.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/overdriv.cpp b/src/mame/drivers/overdriv.cpp
index 144acf05e3c..c9094d69ff9 100644
--- a/src/mame/drivers/overdriv.cpp
+++ b/src/mame/drivers/overdriv.cpp
@@ -35,6 +35,7 @@
#include "sound/k053260.h"
#include "sound/ym2151.h"
#include "video/k053250.h"
+#include "emupal.h"
#include "speaker.h"
#include "overdriv.lh"
diff --git a/src/mame/drivers/p112.cpp b/src/mame/drivers/p112.cpp
index cabf80e5d01..80dc2cd6a41 100644
--- a/src/mame/drivers/p112.cpp
+++ b/src/mame/drivers/p112.cpp
@@ -35,6 +35,7 @@ Some of the parts:
#include "emu.h"
#include "cpu/z180/z180.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/palm.cpp b/src/mame/drivers/palm.cpp
index 504f1b52ccb..7a0655832f8 100644
--- a/src/mame/drivers/palm.cpp
+++ b/src/mame/drivers/palm.cpp
@@ -17,6 +17,7 @@
#include "machine/ram.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/panicr.cpp b/src/mame/drivers/panicr.cpp
index 072c12534fb..46fb8761f4e 100644
--- a/src/mame/drivers/panicr.cpp
+++ b/src/mame/drivers/panicr.cpp
@@ -66,6 +66,7 @@ D.9B [f99cac4b] /
#include "cpu/nec/nec.h"
#include "cpu/z80/z80.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/parodius.cpp b/src/mame/drivers/parodius.cpp
index c8661e91cac..3cfce80f7fb 100644
--- a/src/mame/drivers/parodius.cpp
+++ b/src/mame/drivers/parodius.cpp
@@ -17,6 +17,7 @@
#include "machine/watchdog.h"
#include "sound/ym2151.h"
#include "sound/k053260.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pasha2.cpp b/src/mame/drivers/pasha2.cpp
index 39d15292a39..263413dc634 100644
--- a/src/mame/drivers/pasha2.cpp
+++ b/src/mame/drivers/pasha2.cpp
@@ -78,6 +78,7 @@ Notes:
#include "cpu/e132xs/e132xs.h"
#include "machine/eepromser.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/paso1600.cpp b/src/mame/drivers/paso1600.cpp
index bb56f4a5e4b..c3e00e1b1c0 100644
--- a/src/mame/drivers/paso1600.cpp
+++ b/src/mame/drivers/paso1600.cpp
@@ -15,6 +15,7 @@
#include "machine/am9517a.h"
#include "machine/pic8259.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/pasogo.cpp b/src/mame/drivers/pasogo.cpp
index 44e15645c69..344efe4f146 100644
--- a/src/mame/drivers/pasogo.cpp
+++ b/src/mame/drivers/pasogo.cpp
@@ -109,6 +109,7 @@ TODO:
#include "machine/bankdev.h"
#include "machine/genpc.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/pasopia.cpp b/src/mame/drivers/pasopia.cpp
index 42455670c79..9eee63870ee 100644
--- a/src/mame/drivers/pasopia.cpp
+++ b/src/mame/drivers/pasopia.cpp
@@ -18,6 +18,7 @@
#include "machine/z80ctc.h"
#include "machine/z80pio.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/pasopia7.cpp b/src/mame/drivers/pasopia7.cpp
index 0d0dea4fbd9..c9f61791a1e 100644
--- a/src/mame/drivers/pasopia7.cpp
+++ b/src/mame/drivers/pasopia7.cpp
@@ -32,6 +32,7 @@
#include "sound/sn76496.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pass.cpp b/src/mame/drivers/pass.cpp
index b7b8e386d1c..593897d580c 100644
--- a/src/mame/drivers/pass.cpp
+++ b/src/mame/drivers/pass.cpp
@@ -109,6 +109,7 @@
#include "machine/gen_latch.h"
#include "sound/2203intf.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/patapata.cpp b/src/mame/drivers/patapata.cpp
index 248938a7f43..8618f8d3a83 100644
--- a/src/mame/drivers/patapata.cpp
+++ b/src/mame/drivers/patapata.cpp
@@ -24,6 +24,7 @@ maybe close to jalmah.cpp?
#include "machine/timer.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pb1000.cpp b/src/mame/drivers/pb1000.cpp
index 2d3f8c1b887..8dc7121a56f 100644
--- a/src/mame/drivers/pb1000.cpp
+++ b/src/mame/drivers/pb1000.cpp
@@ -25,6 +25,7 @@
#include "sound/beep.h"
#include "video/hd44352.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/pc100.cpp b/src/mame/drivers/pc100.cpp
index 365357bc703..773576d06d9 100644
--- a/src/mame/drivers/pc100.cpp
+++ b/src/mame/drivers/pc100.cpp
@@ -64,6 +64,7 @@
#include "machine/upd765.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pc1500.cpp b/src/mame/drivers/pc1500.cpp
index 02ca004d0d8..e3b4549d955 100644
--- a/src/mame/drivers/pc1500.cpp
+++ b/src/mame/drivers/pc1500.cpp
@@ -16,6 +16,7 @@
#include "cpu/lh5801/lh5801.h"
#include "machine/lh5810.h"
#include "machine/upd1990a.h"
+#include "emupal.h"
#include "screen.h"
#include "pc1500.lh"
diff --git a/src/mame/drivers/pc2000.cpp b/src/mame/drivers/pc2000.cpp
index ec382630110..8d8300ac828 100644
--- a/src/mame/drivers/pc2000.cpp
+++ b/src/mame/drivers/pc2000.cpp
@@ -24,6 +24,7 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/pc8801.cpp b/src/mame/drivers/pc8801.cpp
index df01a5e8356..25cf279b3c4 100644
--- a/src/mame/drivers/pc8801.cpp
+++ b/src/mame/drivers/pc8801.cpp
@@ -267,6 +267,7 @@
#include "sound/2203intf.h"
#include "sound/2608intf.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pc88va.cpp b/src/mame/drivers/pc88va.cpp
index 793db5682da..54d8ebeacb3 100644
--- a/src/mame/drivers/pc88va.cpp
+++ b/src/mame/drivers/pc88va.cpp
@@ -36,6 +36,7 @@
#include "machine/upd765.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pce220.cpp b/src/mame/drivers/pce220.cpp
index 300feba7cf1..de99259234d 100644
--- a/src/mame/drivers/pce220.cpp
+++ b/src/mame/drivers/pce220.cpp
@@ -33,6 +33,7 @@
#include "machine/ram.h"
#include "machine/timer.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pcm.cpp b/src/mame/drivers/pcm.cpp
index bdc8e5d142d..d37b5ec5000 100644
--- a/src/mame/drivers/pcm.cpp
+++ b/src/mame/drivers/pcm.cpp
@@ -62,6 +62,7 @@
#include "machine/z80pio.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pda600.cpp b/src/mame/drivers/pda600.cpp
index 47cb67039be..a11766f6269 100644
--- a/src/mame/drivers/pda600.cpp
+++ b/src/mame/drivers/pda600.cpp
@@ -59,6 +59,7 @@
#include "cpu/z180/z180.h"
#include "machine/nvram.h"
#include "machine/hd64610.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
diff --git a/src/mame/drivers/pegasus.cpp b/src/mame/drivers/pegasus.cpp
index cb32ab9436c..35b3fbf3548 100644
--- a/src/mame/drivers/pegasus.cpp
+++ b/src/mame/drivers/pegasus.cpp
@@ -45,6 +45,7 @@
#include "machine/6821pia.h"
#include "machine/timer.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/peoplepc.cpp b/src/mame/drivers/peoplepc.cpp
index b5f86067ac9..bee3e9eef3b 100644
--- a/src/mame/drivers/peoplepc.cpp
+++ b/src/mame/drivers/peoplepc.cpp
@@ -12,6 +12,7 @@
#include "video/mc6845.h"
#include "bus/rs232/rs232.h"
#include "bus/rs232/keyboard.h"
+#include "emupal.h"
#include "screen.h"
class peoplepc_state : public driver_device
diff --git a/src/mame/drivers/peplus.cpp b/src/mame/drivers/peplus.cpp
index 1ec62cd02c8..85bedd3e3e9 100644
--- a/src/mame/drivers/peplus.cpp
+++ b/src/mame/drivers/peplus.cpp
@@ -203,6 +203,7 @@ A Note about Best Bet Products.
#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pet.cpp b/src/mame/drivers/pet.cpp
index 09451a4b6a2..ecc8f078b64 100644
--- a/src/mame/drivers/pet.cpp
+++ b/src/mame/drivers/pet.cpp
@@ -150,6 +150,7 @@ ROM sockets: UA3 2K or 4K character
*/
#include "emu.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pgm3.cpp b/src/mame/drivers/pgm3.cpp
index 3b80142d5ee..c9ccac3cbeb 100644
--- a/src/mame/drivers/pgm3.cpp
+++ b/src/mame/drivers/pgm3.cpp
@@ -49,6 +49,7 @@
#include "emu.h"
#include "cpu/arm7/arm7.h"
#include "cpu/arm7/arm7core.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/photon2.cpp b/src/mame/drivers/photon2.cpp
index 086e3c58cc6..05b0043487d 100644
--- a/src/mame/drivers/photon2.cpp
+++ b/src/mame/drivers/photon2.cpp
@@ -25,6 +25,7 @@
#include "cpu/z80/z80.h"
#include "machine/timer.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/phunsy.cpp b/src/mame/drivers/phunsy.cpp
index 40992105348..b6c16538d9d 100644
--- a/src/mame/drivers/phunsy.cpp
+++ b/src/mame/drivers/phunsy.cpp
@@ -33,6 +33,7 @@
#include "machine/keyboard.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/piggypas.cpp b/src/mame/drivers/piggypas.cpp
index 073e49d42d9..6eec01e1da5 100644
--- a/src/mame/drivers/piggypas.cpp
+++ b/src/mame/drivers/piggypas.cpp
@@ -16,6 +16,7 @@ game details unknown
#include "machine/ticket.h"
#include "sound/okim6295.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pinball2k.cpp b/src/mame/drivers/pinball2k.cpp
index c66f2ed398e..ae113efb91d 100644
--- a/src/mame/drivers/pinball2k.cpp
+++ b/src/mame/drivers/pinball2k.cpp
@@ -25,6 +25,7 @@
#include "machine/pckeybrd.h"
#include "machine/pcshare.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pinkiri8.cpp b/src/mame/drivers/pinkiri8.cpp
index f9bc14ec271..b38f19e61a2 100644
--- a/src/mame/drivers/pinkiri8.cpp
+++ b/src/mame/drivers/pinkiri8.cpp
@@ -41,6 +41,7 @@ Dumped by Chackn
#include "emu.h"
#include "cpu/z180/z180.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pipeline.cpp b/src/mame/drivers/pipeline.cpp
index 5819abbb92d..2bd4052a03d 100644
--- a/src/mame/drivers/pipeline.cpp
+++ b/src/mame/drivers/pipeline.cpp
@@ -76,6 +76,7 @@ Stephh's notes (based on the games Z80 code and some tests) :
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pitagjr.cpp b/src/mame/drivers/pitagjr.cpp
index e2175bd981f..d5032488084 100644
--- a/src/mame/drivers/pitagjr.cpp
+++ b/src/mame/drivers/pitagjr.cpp
@@ -153,6 +153,7 @@
#include "emu.h"
#include "cpu/m6805/m6805.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
diff --git a/src/mame/drivers/pkscram.cpp b/src/mame/drivers/pkscram.cpp
index 68d5083538f..efa0bc809b3 100644
--- a/src/mame/drivers/pkscram.cpp
+++ b/src/mame/drivers/pkscram.cpp
@@ -18,6 +18,7 @@ driver by David Haywood and few bits by Pierpaolo Prazzoli
#include "machine/nvram.h"
#include "machine/timer.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/plan80.cpp b/src/mame/drivers/plan80.cpp
index cc801bdccb0..6f9101f1472 100644
--- a/src/mame/drivers/plan80.cpp
+++ b/src/mame/drivers/plan80.cpp
@@ -25,6 +25,7 @@
#include "emu.h"
#include "cpu/i8085/i8085.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/pockchal.cpp b/src/mame/drivers/pockchal.cpp
index ee2ffb2dfa0..9638ab6fe39 100644
--- a/src/mame/drivers/pockchal.cpp
+++ b/src/mame/drivers/pockchal.cpp
@@ -27,6 +27,7 @@ Cart sizes: 1MB, 2MB, 4MB
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/pockstat.cpp b/src/mame/drivers/pockstat.cpp
index 52c8c6b767e..671a32ca23d 100644
--- a/src/mame/drivers/pockstat.cpp
+++ b/src/mame/drivers/pockstat.cpp
@@ -47,6 +47,7 @@ If you do nothing for about 20 secs, it turns itself off (screen goes white).
#include "cpu/arm7/arm7core.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pofo.cpp b/src/mame/drivers/pofo.cpp
index b9951b38e94..69f62f65913 100644
--- a/src/mame/drivers/pofo.cpp
+++ b/src/mame/drivers/pofo.cpp
@@ -43,6 +43,7 @@
#include "sound/pcd3311.h"
#include "video/hd61830.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/poisk1.cpp b/src/mame/drivers/poisk1.cpp
index d829c005e8e..0517042ff16 100644
--- a/src/mame/drivers/poisk1.cpp
+++ b/src/mame/drivers/poisk1.cpp
@@ -35,6 +35,7 @@
#include "sound/spkrdev.h"
#include "video/cgapal.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pokemini.cpp b/src/mame/drivers/pokemini.cpp
index 31e4e8645aa..7136547e892 100644
--- a/src/mame/drivers/pokemini.cpp
+++ b/src/mame/drivers/pokemini.cpp
@@ -15,6 +15,7 @@ The LCD is likely to be a SSD1828 LCD.
#include "sound/spkrdev.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/poker72.cpp b/src/mame/drivers/poker72.cpp
index c925692c738..22351205c40 100644
--- a/src/mame/drivers/poker72.cpp
+++ b/src/mame/drivers/poker72.cpp
@@ -21,6 +21,7 @@
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/poly88.cpp b/src/mame/drivers/poly88.cpp
index 90d453e84ca..b2736674513 100644
--- a/src/mame/drivers/poly88.cpp
+++ b/src/mame/drivers/poly88.cpp
@@ -44,6 +44,7 @@
//#include "bus/s100/s100.h"
#include "imagedev/cassette.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/popobear.cpp b/src/mame/drivers/popobear.cpp
index 03884e0abbe..d790e3e248b 100644
--- a/src/mame/drivers/popobear.cpp
+++ b/src/mame/drivers/popobear.cpp
@@ -82,6 +82,7 @@ Component Side A B Solder Side
#include "machine/timer.h"
#include "sound/okim6295.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/popper.cpp b/src/mame/drivers/popper.cpp
index f662fcbe193..d3c8aa43eb9 100644
--- a/src/mame/drivers/popper.cpp
+++ b/src/mame/drivers/popper.cpp
@@ -42,6 +42,7 @@
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ppmast93.cpp b/src/mame/drivers/ppmast93.cpp
index e29d6a8c2c4..894c354a8b7 100644
--- a/src/mame/drivers/ppmast93.cpp
+++ b/src/mame/drivers/ppmast93.cpp
@@ -137,6 +137,7 @@ Dip locations added based on the notes above.
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/prestige.cpp b/src/mame/drivers/prestige.cpp
index d7d1315f577..d868045870e 100644
--- a/src/mame/drivers/prestige.cpp
+++ b/src/mame/drivers/prestige.cpp
@@ -86,6 +86,7 @@ Notes:
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/primo.cpp b/src/mame/drivers/primo.cpp
index d875b367549..063dda9dd1e 100644
--- a/src/mame/drivers/primo.cpp
+++ b/src/mame/drivers/primo.cpp
@@ -111,6 +111,7 @@ Interrupts:
#include "cpu/z80/z80.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/progolf.cpp b/src/mame/drivers/progolf.cpp
index 55d7afdd516..7f2414a8c3f 100644
--- a/src/mame/drivers/progolf.cpp
+++ b/src/mame/drivers/progolf.cpp
@@ -59,6 +59,7 @@ Twenty four 8116 rams.
#include "machine/deco222.h"
#include "machine/decocpu6.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/proteus3.cpp b/src/mame/drivers/proteus3.cpp
index 85447ed85fb..57e7bd8f26e 100644
--- a/src/mame/drivers/proteus3.cpp
+++ b/src/mame/drivers/proteus3.cpp
@@ -58,6 +58,7 @@
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ps2sony.cpp b/src/mame/drivers/ps2sony.cpp
index 4bbc1e8a479..467be7f5da3 100644
--- a/src/mame/drivers/ps2sony.cpp
+++ b/src/mame/drivers/ps2sony.cpp
@@ -158,6 +158,7 @@ iLinkSGUID=0x--------
#include "emu.h"
#include "cpu/mips/mips3.h"
#include "cpu/mips/r3000.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/ptcsol.cpp b/src/mame/drivers/ptcsol.cpp
index 008ea48ba93..5471fd16bcd 100644
--- a/src/mame/drivers/ptcsol.cpp
+++ b/src/mame/drivers/ptcsol.cpp
@@ -121,6 +121,7 @@
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pturn.cpp b/src/mame/drivers/pturn.cpp
index 7d4772e9602..2c0f4e7e96a 100644
--- a/src/mame/drivers/pturn.cpp
+++ b/src/mame/drivers/pturn.cpp
@@ -81,6 +81,7 @@ ROMS: All ROM labels say only "PROM" and a number.
#include "machine/74259.h"
#include "machine/gen_latch.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pv1000.cpp b/src/mame/drivers/pv1000.cpp
index f3910d8adcb..8067b537f4f 100644
--- a/src/mame/drivers/pv1000.cpp
+++ b/src/mame/drivers/pv1000.cpp
@@ -10,6 +10,7 @@
#include "cpu/z80/z80.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pv9234.cpp b/src/mame/drivers/pv9234.cpp
index 7dbae3dba71..20ad03166a3 100644
--- a/src/mame/drivers/pv9234.cpp
+++ b/src/mame/drivers/pv9234.cpp
@@ -22,6 +22,7 @@ be found!
#include "emu.h"
#include "cpu/arm7/arm7.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/px4.cpp b/src/mame/drivers/px4.cpp
index d20e1ecc300..17d5865fe6a 100644
--- a/src/mame/drivers/px4.cpp
+++ b/src/mame/drivers/px4.cpp
@@ -24,6 +24,7 @@
#include "sound/spkrdev.h"
#include "diserial.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pyl601.cpp b/src/mame/drivers/pyl601.cpp
index acb0794a339..f84b54b8651 100644
--- a/src/mame/drivers/pyl601.cpp
+++ b/src/mame/drivers/pyl601.cpp
@@ -42,6 +42,7 @@
#include "sound/spkrdev.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "softlist.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/pyson.cpp b/src/mame/drivers/pyson.cpp
index a188aa5e7db..e97029d2fc5 100644
--- a/src/mame/drivers/pyson.cpp
+++ b/src/mame/drivers/pyson.cpp
@@ -153,6 +153,7 @@ Notes:
#include "emu.h"
#include "cpu/mips/mips3.h"
#include "cpu/mips/r3000.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/pzletime.cpp b/src/mame/drivers/pzletime.cpp
index 046c93c7180..9993df16681 100644
--- a/src/mame/drivers/pzletime.cpp
+++ b/src/mame/drivers/pzletime.cpp
@@ -20,6 +20,7 @@
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
#include "machine/eepromser.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/quakeat.cpp b/src/mame/drivers/quakeat.cpp
index f1dddbd4ff7..ea4489d802f 100644
--- a/src/mame/drivers/quakeat.cpp
+++ b/src/mame/drivers/quakeat.cpp
@@ -63,6 +63,7 @@ TODO:
#include "emu.h"
#include "cpu/i386/i386.h"
#include "machine/pcshare.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/quickpick5.cpp b/src/mame/drivers/quickpick5.cpp
index 97333eeb289..5ec77fc02af 100644
--- a/src/mame/drivers/quickpick5.cpp
+++ b/src/mame/drivers/quickpick5.cpp
@@ -30,6 +30,7 @@
#include "machine/k053252.h"
#include "machine/nvram.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/quizo.cpp b/src/mame/drivers/quizo.cpp
index 7c4d6ace181..f11604b9013 100644
--- a/src/mame/drivers/quizo.cpp
+++ b/src/mame/drivers/quizo.cpp
@@ -28,6 +28,7 @@ Xtals 8MHz, 21.47727MHz
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/quizpani.cpp b/src/mame/drivers/quizpani.cpp
index 09b02a1a88a..1babbcba21a 100644
--- a/src/mame/drivers/quizpani.cpp
+++ b/src/mame/drivers/quizpani.cpp
@@ -52,6 +52,7 @@ Stephh's notes (based on the games M68000 code and some tests) :
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/quizpun2.cpp b/src/mame/drivers/quizpun2.cpp
index 0bbc2dfa2bf..168fe92180c 100644
--- a/src/mame/drivers/quizpun2.cpp
+++ b/src/mame/drivers/quizpun2.cpp
@@ -92,6 +92,7 @@ Notes:
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/quizshow.cpp b/src/mame/drivers/quizshow.cpp
index 1f1f77ad255..d3ea7cb5074 100644
--- a/src/mame/drivers/quizshow.cpp
+++ b/src/mame/drivers/quizshow.cpp
@@ -19,6 +19,7 @@ TODO:
#include "machine/timer.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "quizshow.lh"
diff --git a/src/mame/drivers/qx10.cpp b/src/mame/drivers/qx10.cpp
index 34cf333b6b2..46f299dace0 100644
--- a/src/mame/drivers/qx10.cpp
+++ b/src/mame/drivers/qx10.cpp
@@ -45,6 +45,7 @@
#include "machine/upd765.h"
#include "machine/z80dart.h"
#include "video/upd7220.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/r2dtank.cpp b/src/mame/drivers/r2dtank.cpp
index 5daa74e3d64..60106a83b81 100644
--- a/src/mame/drivers/r2dtank.cpp
+++ b/src/mame/drivers/r2dtank.cpp
@@ -42,6 +42,7 @@ RAM = 4116 (x11)
#include "machine/rescap.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rabbit.cpp b/src/mame/drivers/rabbit.cpp
index dae7ccab5cf..6f5a02873a0 100644
--- a/src/mame/drivers/rabbit.cpp
+++ b/src/mame/drivers/rabbit.cpp
@@ -83,6 +83,7 @@ Custom: Imagetek I5000 (2ch video & 2ch sound)
#include "cpu/m68000/m68000.h"
#include "machine/eepromser.h"
#include "sound/i5000.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rad_eu3a05.cpp b/src/mame/drivers/rad_eu3a05.cpp
index 1d9b150b76f..b3b401f815e 100644
--- a/src/mame/drivers/rad_eu3a05.cpp
+++ b/src/mame/drivers/rad_eu3a05.cpp
@@ -154,6 +154,7 @@
#include "emu.h"
#include "cpu/m6502/m6502.h"
//#include "cpu/m6502/m65c02.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "machine/bankdev.h"
diff --git a/src/mame/drivers/rad_eu3a14.cpp b/src/mame/drivers/rad_eu3a14.cpp
index d6f7bb3024a..61ce2d171a3 100644
--- a/src/mame/drivers/rad_eu3a14.cpp
+++ b/src/mame/drivers/rad_eu3a14.cpp
@@ -31,6 +31,7 @@
#include "emu.h"
#include "cpu/m6502/m6502.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "machine/bankdev.h"
diff --git a/src/mame/drivers/rainbow.cpp b/src/mame/drivers/rainbow.cpp
index c4e4609c135..369e453094d 100644
--- a/src/mame/drivers/rainbow.cpp
+++ b/src/mame/drivers/rainbow.cpp
@@ -366,6 +366,7 @@ W17 pulls J1 serial port pin 1 to GND when set (chassis to logical GND).
#include "machine/timer.h"
#include "machine/ds1315.h"
+#include "emupal.h"
#include "softlist.h"
#include "screen.h"
diff --git a/src/mame/drivers/rastersp.cpp b/src/mame/drivers/rastersp.cpp
index a659ecf845b..218f5313d8b 100644
--- a/src/mame/drivers/rastersp.cpp
+++ b/src/mame/drivers/rastersp.cpp
@@ -25,6 +25,7 @@
#include "machine/timer.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rbmk.cpp b/src/mame/drivers/rbmk.cpp
index 5cb2c29f5a7..68cf8b6f803 100644
--- a/src/mame/drivers/rbmk.cpp
+++ b/src/mame/drivers/rbmk.cpp
@@ -61,6 +61,7 @@ Keep pressed 9 and press reset to enter service mode.
#include "sound/okim6295.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rc702.cpp b/src/mame/drivers/rc702.cpp
index 3d4f163c520..93f6048726b 100644
--- a/src/mame/drivers/rc702.cpp
+++ b/src/mame/drivers/rc702.cpp
@@ -34,6 +34,7 @@ Issues:
#include "sound/beep.h"
#include "video/i8275.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rcorsair.cpp b/src/mame/drivers/rcorsair.cpp
index 3e5219c9229..2bed6893f6f 100644
--- a/src/mame/drivers/rcorsair.cpp
+++ b/src/mame/drivers/rcorsair.cpp
@@ -58,6 +58,7 @@ Notes added 2014-09-10:
#include "emu.h"
#include "cpu/mcs48/mcs48.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/rd100.cpp b/src/mame/drivers/rd100.cpp
index 01f7fd0a265..b2aa108c0ea 100644
--- a/src/mame/drivers/rd100.cpp
+++ b/src/mame/drivers/rd100.cpp
@@ -20,6 +20,7 @@
#include "emu.h"
#include "cpu/m6809/m6809.h"
#include "machine/6821pia.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/rd110.cpp b/src/mame/drivers/rd110.cpp
index 1bf64a4da24..c81b3d042c1 100644
--- a/src/mame/drivers/rd110.cpp
+++ b/src/mame/drivers/rd110.cpp
@@ -23,6 +23,7 @@
#include "machine/ram.h"
#include "machine/timer.h"
#include "video/msm6222b.h"
+#include "emupal.h"
#include "screen.h"
static INPUT_PORTS_START( d110 )
diff --git a/src/mame/drivers/renegade.cpp b/src/mame/drivers/renegade.cpp
index 30298882aa2..cf6d873bad1 100644
--- a/src/mame/drivers/renegade.cpp
+++ b/src/mame/drivers/renegade.cpp
@@ -107,6 +107,7 @@ $8000 - $ffff ROM
#include "cpu/m6502/m6502.h"
#include "cpu/m6809/m6809.h"
#include "sound/3526intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/replicator.cpp b/src/mame/drivers/replicator.cpp
index 7f75a22be9f..82eda4842d2 100644
--- a/src/mame/drivers/replicator.cpp
+++ b/src/mame/drivers/replicator.cpp
@@ -29,6 +29,7 @@
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rex6000.cpp b/src/mame/drivers/rex6000.cpp
index 392ca878746..243388292b9 100644
--- a/src/mame/drivers/rex6000.cpp
+++ b/src/mame/drivers/rex6000.cpp
@@ -37,6 +37,7 @@
#include "machine/timer.h"
#include "imagedev/snapquik.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rgum.cpp b/src/mame/drivers/rgum.cpp
index 5e7d7895702..ca5f89dde93 100644
--- a/src/mame/drivers/rgum.cpp
+++ b/src/mame/drivers/rgum.cpp
@@ -19,6 +19,7 @@ The ppi at 3000-3003 seems to be a dual port communication thing with the z80.
#include "machine/i8255.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/risc2500.cpp b/src/mame/drivers/risc2500.cpp
index 71e978e8adb..5307078cd8c 100644
--- a/src/mame/drivers/risc2500.cpp
+++ b/src/mame/drivers/risc2500.cpp
@@ -17,6 +17,7 @@
#include "machine/nvram.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/riscpc.cpp b/src/mame/drivers/riscpc.cpp
index c692e579266..071f55b4cec 100644
--- a/src/mame/drivers/riscpc.cpp
+++ b/src/mame/drivers/riscpc.cpp
@@ -19,6 +19,7 @@
#include "emu.h"
#include "cpu/arm7/arm7.h"
#include "cpu/arm7/arm7core.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rm380z.cpp b/src/mame/drivers/rm380z.cpp
index 2ce135497ee..8fef708c71f 100644
--- a/src/mame/drivers/rm380z.cpp
+++ b/src/mame/drivers/rm380z.cpp
@@ -168,6 +168,7 @@ Module timer tag static_vblank_timer name m_expire.seconds
#include "emu.h"
#include "includes/rm380z.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/rmhaihai.cpp b/src/mame/drivers/rmhaihai.cpp
index f15d2d4cc17..61936fb72d8 100644
--- a/src/mame/drivers/rmhaihai.cpp
+++ b/src/mame/drivers/rmhaihai.cpp
@@ -33,6 +33,7 @@ TODO:
#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rmt32.cpp b/src/mame/drivers/rmt32.cpp
index 8965a538622..3d5ac515a06 100644
--- a/src/mame/drivers/rmt32.cpp
+++ b/src/mame/drivers/rmt32.cpp
@@ -165,6 +165,7 @@ Notes: (All IC's listed for completeness)
#include "machine/ram.h"
#include "machine/timer.h"
#include "video/sed1200.h"
+#include "emupal.h"
#include "screen.h"
static INPUT_PORTS_START( mt32 )
diff --git a/src/mame/drivers/rollerg.cpp b/src/mame/drivers/rollerg.cpp
index c30d7b86d0a..2ab7515783f 100644
--- a/src/mame/drivers/rollerg.cpp
+++ b/src/mame/drivers/rollerg.cpp
@@ -21,6 +21,7 @@
#include "sound/3812intf.h"
#include "sound/k053260.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ron.cpp b/src/mame/drivers/ron.cpp
index c5551d03ea2..ec8178c8069 100644
--- a/src/mame/drivers/ron.cpp
+++ b/src/mame/drivers/ron.cpp
@@ -21,6 +21,7 @@ Debug cheats:
#include "cpu/z80/z80.h"
#include "cpu/mcs48/mcs48.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "debugger.h"
diff --git a/src/mame/drivers/roul.cpp b/src/mame/drivers/roul.cpp
index ee5a0b64c85..ce47ca5cf15 100644
--- a/src/mame/drivers/roul.cpp
+++ b/src/mame/drivers/roul.cpp
@@ -67,6 +67,7 @@ Stephh's notes (based on the game Z80 code and some tests) :
#include "machine/gen_latch.h"
#include "machine/nvram.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/royalmah.cpp b/src/mame/drivers/royalmah.cpp
index 2bb981c2a35..f4a84b73408 100644
--- a/src/mame/drivers/royalmah.cpp
+++ b/src/mame/drivers/royalmah.cpp
@@ -104,6 +104,7 @@ Stephh's notes (based on the games Z80 code and some tests) :
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rt1715.cpp b/src/mame/drivers/rt1715.cpp
index 8d54527a509..3f6b0034ba2 100644
--- a/src/mame/drivers/rt1715.cpp
+++ b/src/mame/drivers/rt1715.cpp
@@ -22,6 +22,7 @@
#include "machine/z80dma.h"
#include "machine/z80pio.h"
#include "video/i8275.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/rx78.cpp b/src/mame/drivers/rx78.cpp
index bf3a8626291..62a00a96cd2 100644
--- a/src/mame/drivers/rx78.cpp
+++ b/src/mame/drivers/rx78.cpp
@@ -68,6 +68,7 @@ Summary of Monitor commands.
#include "machine/ram.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/rz1.cpp b/src/mame/drivers/rz1.cpp
index 77b0f38726a..f82d94ca241 100644
--- a/src/mame/drivers/rz1.cpp
+++ b/src/mame/drivers/rz1.cpp
@@ -28,6 +28,7 @@
***************************************************************************/
#include "emu.h"
+#include "emupal.h"
#include "screen.h"
#include "cpu/upd7810/upd7811.h"
#include "video/hd44780.h"
diff --git a/src/mame/drivers/safarir.cpp b/src/mame/drivers/safarir.cpp
index 3261b333432..e2994aee3fe 100644
--- a/src/mame/drivers/safarir.cpp
+++ b/src/mame/drivers/safarir.cpp
@@ -52,6 +52,7 @@ modified by Hau
#include "emu.h"
#include "cpu/i8085/i8085.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sandscrp.cpp b/src/mame/drivers/sandscrp.cpp
index db862a45b8f..d191efc164f 100644
--- a/src/mame/drivers/sandscrp.cpp
+++ b/src/mame/drivers/sandscrp.cpp
@@ -82,6 +82,7 @@ Is there another alt program rom set labeled 9 & 10?
#include "video/kan_pand.h"
#include "machine/kaneko_hit.h"
#include "video/kaneko_tmap.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sangho.cpp b/src/mame/drivers/sangho.cpp
index 186e0f01c70..5431e9cd676 100644
--- a/src/mame/drivers/sangho.cpp
+++ b/src/mame/drivers/sangho.cpp
@@ -49,6 +49,7 @@ TODO:
#include "cpu/z80/z80.h"
#include "video/v9938.h"
#include "sound/ym2413.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sanremmg.cpp b/src/mame/drivers/sanremmg.cpp
index 0b66cc3ad61..1dffe4e5530 100644
--- a/src/mame/drivers/sanremmg.cpp
+++ b/src/mame/drivers/sanremmg.cpp
@@ -11,6 +11,7 @@
#include "emu.h"
#include "cpu/arm7/arm7.h"
#include "cpu/arm7/arm7core.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/sanremo.cpp b/src/mame/drivers/sanremo.cpp
index 750be9da40b..1c49845328e 100644
--- a/src/mame/drivers/sanremo.cpp
+++ b/src/mame/drivers/sanremo.cpp
@@ -95,6 +95,7 @@
#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sapi1.cpp b/src/mame/drivers/sapi1.cpp
index f6f09c2593f..1410fc90af3 100644
--- a/src/mame/drivers/sapi1.cpp
+++ b/src/mame/drivers/sapi1.cpp
@@ -38,6 +38,7 @@ Unable to proceed due to no info available (& in English).
#include "machine/keyboard.h"
#include "machine/ram.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
class sapi1_state : public driver_device
diff --git a/src/mame/drivers/sbc6510.cpp b/src/mame/drivers/sbc6510.cpp
index 1daad70503e..26a7d0eb186 100644
--- a/src/mame/drivers/sbc6510.cpp
+++ b/src/mame/drivers/sbc6510.cpp
@@ -56,6 +56,7 @@ ToDo:
#include "machine/mos6526.h"
#include "machine/terminal.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sbowling.cpp b/src/mame/drivers/sbowling.cpp
index c3cc1ec9274..26be2e0f214 100644
--- a/src/mame/drivers/sbowling.cpp
+++ b/src/mame/drivers/sbowling.cpp
@@ -46,6 +46,7 @@ PROMs : NEC B406 (1kx4) x2
#include "machine/watchdog.h"
#include "sound/ay8910.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sbrain.cpp b/src/mame/drivers/sbrain.cpp
index 444362b422b..a5ca4ebaf99 100644
--- a/src/mame/drivers/sbrain.cpp
+++ b/src/mame/drivers/sbrain.cpp
@@ -47,6 +47,7 @@ To Do:
#include "machine/timer.h"
#include "sound/beep.h"
//#include "video/dp8350.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sbrkout.cpp b/src/mame/drivers/sbrkout.cpp
index 16d3d6c142c..36e4a6a2aba 100644
--- a/src/mame/drivers/sbrkout.cpp
+++ b/src/mame/drivers/sbrkout.cpp
@@ -40,6 +40,7 @@
#include "machine/watchdog.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "sbrkout.lh"
diff --git a/src/mame/drivers/scopus.cpp b/src/mame/drivers/scopus.cpp
index b2446767f66..f221aedff41 100644
--- a/src/mame/drivers/scopus.cpp
+++ b/src/mame/drivers/scopus.cpp
@@ -26,6 +26,7 @@
#include "machine/i8257.h"
#include "machine/i8212.h"
#include "video/i8275.h"
+#include "emupal.h"
#include "screen.h"
#include "bus/rs232/rs232.h"
#include "machine/clock.h"
diff --git a/src/mame/drivers/scv.cpp b/src/mame/drivers/scv.cpp
index e854a1d9fb2..2e5a4487ca0 100644
--- a/src/mame/drivers/scv.cpp
+++ b/src/mame/drivers/scv.cpp
@@ -11,6 +11,7 @@
#include "sound/upd1771.h"
#include "bus/scv/slot.h"
#include "bus/scv/rom.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/scyclone.cpp b/src/mame/drivers/scyclone.cpp
index 928365d9367..04533b1f29a 100644
--- a/src/mame/drivers/scyclone.cpp
+++ b/src/mame/drivers/scyclone.cpp
@@ -47,6 +47,7 @@
#include "sound/sn76477.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sderby2.cpp b/src/mame/drivers/sderby2.cpp
index 72809ab93c2..90bd2ab94f3 100644
--- a/src/mame/drivers/sderby2.cpp
+++ b/src/mame/drivers/sderby2.cpp
@@ -35,6 +35,7 @@
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/sn76496.h"
+#include "emupal.h"
#include "speaker.h"
#include "screen.h"
#include "video/resnet.h"
diff --git a/src/mame/drivers/seabattl.cpp b/src/mame/drivers/seabattl.cpp
index 913395224f7..b92e115186a 100644
--- a/src/mame/drivers/seabattl.cpp
+++ b/src/mame/drivers/seabattl.cpp
@@ -35,6 +35,7 @@ the sound board should be fully discrete.
#include "cpu/s2650/s2650.h"
#include "machine/s2636.h"
#include "video/dm9368.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sealy.cpp b/src/mame/drivers/sealy.cpp
index 0ca328c0136..af85d0e1c75 100644
--- a/src/mame/drivers/sealy.cpp
+++ b/src/mame/drivers/sealy.cpp
@@ -30,6 +30,7 @@ Notes:
#include "emu.h"
#include "cpu/h8/h83048.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/segac2.cpp b/src/mame/drivers/segac2.cpp
index d101d16661f..e4d0f794517 100644
--- a/src/mame/drivers/segac2.cpp
+++ b/src/mame/drivers/segac2.cpp
@@ -84,6 +84,7 @@
#include "sound/sn76496.h"
#include "sound/2612intf.h"
#include "sound/upd7759.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/segald.cpp b/src/mame/drivers/segald.cpp
index 419c415ecdb..5afc70a53c1 100644
--- a/src/mame/drivers/segald.cpp
+++ b/src/mame/drivers/segald.cpp
@@ -22,6 +22,7 @@ Todo:
#include "emu.h"
#include "cpu/z80/z80.h"
#include "machine/ldv1000.h"
+#include "emupal.h"
#include "speaker.h"
#define SCHEMATIC_CLOCK (20000000)
diff --git a/src/mame/drivers/segam1.cpp b/src/mame/drivers/segam1.cpp
index d2fe17b8fb4..0bf68adb3c8 100644
--- a/src/mame/drivers/segam1.cpp
+++ b/src/mame/drivers/segam1.cpp
@@ -41,6 +41,7 @@ uses s24 style tilemaps (ram based?)
#include "machine/mb8421.h"
#include "sound/2612intf.h"
#include "video/segaic24.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/segapm.cpp b/src/mame/drivers/segapm.cpp
index fb14cd4d100..5d84438d845 100644
--- a/src/mame/drivers/segapm.cpp
+++ b/src/mame/drivers/segapm.cpp
@@ -9,6 +9,7 @@
#include "emu.h"
#include "cpu/m68000/m68000.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/seicupbl.cpp b/src/mame/drivers/seicupbl.cpp
index 77be1cf660f..825064b1fbd 100644
--- a/src/mame/drivers/seicupbl.cpp
+++ b/src/mame/drivers/seicupbl.cpp
@@ -20,6 +20,7 @@
#include "machine/gen_latch.h"
#include "machine/seicopbl.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sengokmj.cpp b/src/mame/drivers/sengokmj.cpp
index efa3df31985..83d809284a5 100644
--- a/src/mame/drivers/sengokmj.cpp
+++ b/src/mame/drivers/sengokmj.cpp
@@ -61,6 +61,7 @@ RSSENGO2.72 chr.
#include "sound/3812intf.h"
#include "sound/okim6295.h"
#include "video/seibu_crtc.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sfbonus.cpp b/src/mame/drivers/sfbonus.cpp
index 31f13b0d108..7b9abef4a61 100644
--- a/src/mame/drivers/sfbonus.cpp
+++ b/src/mame/drivers/sfbonus.cpp
@@ -277,6 +277,7 @@ MH86171 Color Palette RAMDAC
#include "machine/nvram.h"
#include "sound/okim6295.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/shanghai.cpp b/src/mame/drivers/shanghai.cpp
index 6b9ac99d658..c84af4c2e75 100644
--- a/src/mame/drivers/shanghai.cpp
+++ b/src/mame/drivers/shanghai.cpp
@@ -26,6 +26,7 @@ displayed.
#include "video/hd63484.h"
#include "audio/seibu.h"
#include "sound/2203intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/shougi.cpp b/src/mame/drivers/shougi.cpp
index 42f29d40331..345e64206c4 100644
--- a/src/mame/drivers/shougi.cpp
+++ b/src/mame/drivers/shougi.cpp
@@ -84,6 +84,7 @@ PROM : Type MB7051
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/shtzone.cpp b/src/mame/drivers/shtzone.cpp
index 0dd7ee62268..56f3d3a9dac 100644
--- a/src/mame/drivers/shtzone.cpp
+++ b/src/mame/drivers/shtzone.cpp
@@ -51,6 +51,7 @@ Notes:
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
class shtzone_state : public driver_device
diff --git a/src/mame/drivers/sigmab52.cpp b/src/mame/drivers/sigmab52.cpp
index af803bd4ae3..b301c3328b6 100644
--- a/src/mame/drivers/sigmab52.cpp
+++ b/src/mame/drivers/sigmab52.cpp
@@ -127,6 +127,7 @@
#include "machine/nvram.h"
#include "sound/3812intf.h"
#include "video/hd63484.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sigmab98.cpp b/src/mame/drivers/sigmab98.cpp
index 269195f6e50..7afab228a74 100644
--- a/src/mame/drivers/sigmab98.cpp
+++ b/src/mame/drivers/sigmab98.cpp
@@ -124,6 +124,7 @@ Notes:
#include "sound/okim9810.h"
#include "sound/ymz280b.h"
#include "video/bufsprite.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/silvmil.cpp b/src/mame/drivers/silvmil.cpp
index a8dd39558ea..2959a5231b2 100644
--- a/src/mame/drivers/silvmil.cpp
+++ b/src/mame/drivers/silvmil.cpp
@@ -30,6 +30,7 @@ Very likely to be 'whatever crystals we had on hand which were close enough for
#include "sound/okim6295.h"
#include "sound/ym2151.h"
#include "video/decospr.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/simpsons.cpp b/src/mame/drivers/simpsons.cpp
index 4cddaea2128..e29cc897f17 100644
--- a/src/mame/drivers/simpsons.cpp
+++ b/src/mame/drivers/simpsons.cpp
@@ -106,6 +106,7 @@ Notes:
#include "machine/watchdog.h"
#include "sound/ym2151.h"
#include "sound/k053260.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/skimaxx.cpp b/src/mame/drivers/skimaxx.cpp
index 76c6cc47177..42570529a56 100644
--- a/src/mame/drivers/skimaxx.cpp
+++ b/src/mame/drivers/skimaxx.cpp
@@ -40,6 +40,7 @@
#include "cpu/m68000/m68000.h"
#include "cpu/tms34010/tms34010.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/skyarmy.cpp b/src/mame/drivers/skyarmy.cpp
index f664e5d95ac..6af2347bcd6 100644
--- a/src/mame/drivers/skyarmy.cpp
+++ b/src/mame/drivers/skyarmy.cpp
@@ -28,6 +28,7 @@
#include "cpu/z80/z80.h"
#include "machine/74259.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/skylncr.cpp b/src/mame/drivers/skylncr.cpp
index 282b43dcbe6..c94e45fe348 100644
--- a/src/mame/drivers/skylncr.cpp
+++ b/src/mame/drivers/skylncr.cpp
@@ -124,6 +124,7 @@
#include "machine/ticket.h"
#include "sound/ay8910.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/slotcarn.cpp b/src/mame/drivers/slotcarn.cpp
index 6efc88104cc..32d9c603615 100644
--- a/src/mame/drivers/slotcarn.cpp
+++ b/src/mame/drivers/slotcarn.cpp
@@ -21,6 +21,7 @@
#include "machine/i8255.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sm1800.cpp b/src/mame/drivers/sm1800.cpp
index 59c18de25c0..9fd5d06caae 100644
--- a/src/mame/drivers/sm1800.cpp
+++ b/src/mame/drivers/sm1800.cpp
@@ -20,6 +20,7 @@
#include "machine/i8255.h"
#include "machine/i8251.h"
#include "video/i8275.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/sm7238.cpp b/src/mame/drivers/sm7238.cpp
index d1c57419599..2e987fac286 100644
--- a/src/mame/drivers/sm7238.cpp
+++ b/src/mame/drivers/sm7238.cpp
@@ -27,6 +27,7 @@
#include "machine/pic8259.h"
#include "machine/km035.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/smc777.cpp b/src/mame/drivers/smc777.cpp
index 8de51d178f8..d4c43c9a3b9 100644
--- a/src/mame/drivers/smc777.cpp
+++ b/src/mame/drivers/smc777.cpp
@@ -27,6 +27,7 @@
#include "sound/beep.h"
#include "sound/sn76496.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "imagedev/snapquik.h"
diff --git a/src/mame/drivers/smsmcorp.cpp b/src/mame/drivers/smsmcorp.cpp
index e91381fec18..ff8faf1ebe8 100644
--- a/src/mame/drivers/smsmcorp.cpp
+++ b/src/mame/drivers/smsmcorp.cpp
@@ -220,6 +220,7 @@ U145 1Brown PAL14H4CN
#include "machine/i8255.h"
#include "machine/nvram.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/snk68.cpp b/src/mame/drivers/snk68.cpp
index 6c8c3603870..6d4871da4a3 100644
--- a/src/mame/drivers/snk68.cpp
+++ b/src/mame/drivers/snk68.cpp
@@ -48,6 +48,7 @@ Notes:
#include "cpu/m68000/m68000.h"
#include "cpu/z80/z80.h"
#include "sound/3812intf.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/socrates.cpp b/src/mame/drivers/socrates.cpp
index bb6410183ba..83d05f0b7d6 100644
--- a/src/mame/drivers/socrates.cpp
+++ b/src/mame/drivers/socrates.cpp
@@ -88,6 +88,7 @@ TODO:
#include "bus/generic/slot.h"
#include "machine/bankdev.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sorcerer.cpp b/src/mame/drivers/sorcerer.cpp
index dc82354afec..68605af3fa5 100644
--- a/src/mame/drivers/sorcerer.cpp
+++ b/src/mame/drivers/sorcerer.cpp
@@ -163,6 +163,7 @@ NOTES (2016-06-06)
#include "emu.h"
#include "includes/sorcerer.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/spaceg.cpp b/src/mame/drivers/spaceg.cpp
index 974ef7ef702..44f122284da 100644
--- a/src/mame/drivers/spaceg.cpp
+++ b/src/mame/drivers/spaceg.cpp
@@ -167,6 +167,7 @@ Notes:
#include "includes/mw8080bw.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/spartanxtec.cpp b/src/mame/drivers/spartanxtec.cpp
index 7287622a7ea..0dfcb7319f6 100644
--- a/src/mame/drivers/spartanxtec.cpp
+++ b/src/mame/drivers/spartanxtec.cpp
@@ -25,6 +25,7 @@ probably an original bug?
#include "cpu/z80/z80.h"
#include "machine/gen_latch.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/spc1500.cpp b/src/mame/drivers/spc1500.cpp
index 49ccc520484..b9e09e81959 100644
--- a/src/mame/drivers/spc1500.cpp
+++ b/src/mame/drivers/spc1500.cpp
@@ -233,6 +233,7 @@ TODO:
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/spcforce.cpp b/src/mame/drivers/spcforce.cpp
index a27ee8759b6..7984f3d8465 100644
--- a/src/mame/drivers/spcforce.cpp
+++ b/src/mame/drivers/spcforce.cpp
@@ -42,6 +42,7 @@ TODO:
#include "cpu/mcs48/mcs48.h"
#include "machine/74259.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/speglsht.cpp b/src/mame/drivers/speglsht.cpp
index d6cd23a5015..45555f246fb 100644
--- a/src/mame/drivers/speglsht.cpp
+++ b/src/mame/drivers/speglsht.cpp
@@ -106,6 +106,7 @@ Notes:
*/
#include "emu.h"
+#include "emupal.h"
#include "machine/st0016.h"
#include "cpu/mips/r3000.h"
#include <algorithm>
diff --git a/src/mame/drivers/spinb.cpp b/src/mame/drivers/spinb.cpp
index b713e0c73e4..aa14c198ba4 100644
--- a/src/mame/drivers/spinb.cpp
+++ b/src/mame/drivers/spinb.cpp
@@ -40,6 +40,7 @@ ToDo:
#include "machine/i8255.h"
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/splus.cpp b/src/mame/drivers/splus.cpp
index 78302502a4c..4223bbdaccd 100644
--- a/src/mame/drivers/splus.cpp
+++ b/src/mame/drivers/splus.cpp
@@ -26,6 +26,7 @@
#include "machine/i2cmem.h"
#include "machine/nvram.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/spoker.cpp b/src/mame/drivers/spoker.cpp
index edd9cfea0e2..05193d26daa 100644
--- a/src/mame/drivers/spoker.cpp
+++ b/src/mame/drivers/spoker.cpp
@@ -34,6 +34,7 @@
#include "sound/ym2413.h"
#include "sound/okim6295.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/spool99.cpp b/src/mame/drivers/spool99.cpp
index 4b9f4475cf8..ad7b90a1d44 100644
--- a/src/mame/drivers/spool99.cpp
+++ b/src/mame/drivers/spool99.cpp
@@ -95,6 +95,7 @@ Note
#include "cpu/z80/z80.h"
#include "machine/eepromser.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sprcros2.cpp b/src/mame/drivers/sprcros2.cpp
index e763d96efd0..d6fb54e0a2f 100644
--- a/src/mame/drivers/sprcros2.cpp
+++ b/src/mame/drivers/sprcros2.cpp
@@ -56,6 +56,7 @@ SC-61.5A
#include "cpu/z80/z80.h"
#include "machine/timer.h"
#include "sound/sn76496.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/spyhuntertec.cpp b/src/mame/drivers/spyhuntertec.cpp
index 1bb1ad5fb76..3ce79d61573 100644
--- a/src/mame/drivers/spyhuntertec.cpp
+++ b/src/mame/drivers/spyhuntertec.cpp
@@ -22,6 +22,7 @@ sound system appears to be the same as 'spartanxtec.cpp'
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/srmp5.cpp b/src/mame/drivers/srmp5.cpp
index b027751ea89..44df7621cd2 100644
--- a/src/mame/drivers/srmp5.cpp
+++ b/src/mame/drivers/srmp5.cpp
@@ -39,6 +39,7 @@ This is not a bug (real machine behaves the same).
#include "emu.h"
#include "machine/st0016.h"
#include "cpu/mips/r3000.h"
+#include "emupal.h"
#define DEBUG_CHAR
diff --git a/src/mame/drivers/srmp6.cpp b/src/mame/drivers/srmp6.cpp
index 757cb0e9e4e..e5cd5de0f32 100644
--- a/src/mame/drivers/srmp6.cpp
+++ b/src/mame/drivers/srmp6.cpp
@@ -71,6 +71,7 @@ Dumped 06/15/2000
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "sound/nile.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ssem.cpp b/src/mame/drivers/ssem.cpp
index 381315b7013..644039024ec 100644
--- a/src/mame/drivers/ssem.cpp
+++ b/src/mame/drivers/ssem.cpp
@@ -9,6 +9,7 @@
#include "emu.h"
#include "cpu/ssem/ssem.h"
#include "imagedev/snapquik.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/ssfindo.cpp b/src/mame/drivers/ssfindo.cpp
index d8ffa76d6d9..564de754393 100644
--- a/src/mame/drivers/ssfindo.cpp
+++ b/src/mame/drivers/ssfindo.cpp
@@ -128,6 +128,7 @@ Notes:
#include "cpu/arm7/arm7.h"
#include "cpu/arm7/arm7core.h"
#include "machine/i2cmem.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sshot.cpp b/src/mame/drivers/sshot.cpp
index e50a304b70e..f54fa112f67 100644
--- a/src/mame/drivers/sshot.cpp
+++ b/src/mame/drivers/sshot.cpp
@@ -164,6 +164,7 @@ Given CS numbers this is released after the other GunChamp
#include "emu.h"
#include "cpu/scmp/scmp.h"
+#include "emupal.h"
#include "screen.h"
#include "gunchamps.lh"
diff --git a/src/mame/drivers/ssingles.cpp b/src/mame/drivers/ssingles.cpp
index fbda9d2c3f7..4dbaeb219a8 100644
--- a/src/mame/drivers/ssingles.cpp
+++ b/src/mame/drivers/ssingles.cpp
@@ -150,6 +150,7 @@ Dumped by Chack'n
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/sstrangr.cpp b/src/mame/drivers/sstrangr.cpp
index 11283e6ef6b..5b9b8c1a3ee 100644
--- a/src/mame/drivers/sstrangr.cpp
+++ b/src/mame/drivers/sstrangr.cpp
@@ -9,6 +9,7 @@
#include "emu.h"
#include "cpu/i8085/i8085.h"
+#include "emupal.h"
#include "screen.h"
#include "sstrangr.lh"
diff --git a/src/mame/drivers/st17xx.cpp b/src/mame/drivers/st17xx.cpp
index 6193620cb79..43d50492b61 100644
--- a/src/mame/drivers/st17xx.cpp
+++ b/src/mame/drivers/st17xx.cpp
@@ -38,6 +38,7 @@
#include "emu.h"
#include "cpu/arm7/arm7.h"
#include "cpu/arm7/arm7core.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/stadhero.cpp b/src/mame/drivers/stadhero.cpp
index 29f746814c5..9fa7ca97520 100644
--- a/src/mame/drivers/stadhero.cpp
+++ b/src/mame/drivers/stadhero.cpp
@@ -28,6 +28,7 @@
#include "sound/2203intf.h"
#include "sound/3812intf.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/statriv2.cpp b/src/mame/drivers/statriv2.cpp
index bb150ad7a8e..f9f0c438915 100644
--- a/src/mame/drivers/statriv2.cpp
+++ b/src/mame/drivers/statriv2.cpp
@@ -76,6 +76,7 @@ quaquiz2 - no inputs, needs NVRAM
#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "video/tms9927.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/stuntair.cpp b/src/mame/drivers/stuntair.cpp
index f290bfc7c0f..1211e8a5696 100644
--- a/src/mame/drivers/stuntair.cpp
+++ b/src/mame/drivers/stuntair.cpp
@@ -86,6 +86,7 @@ Bprom dump by f205v
#include "machine/nvram.h"
#include "machine/watchdog.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/subhuntr.cpp b/src/mame/drivers/subhuntr.cpp
index 00bfbbe6719..73cb0192e8e 100644
--- a/src/mame/drivers/subhuntr.cpp
+++ b/src/mame/drivers/subhuntr.cpp
@@ -21,6 +21,7 @@ QTY Type position
#include "emu.h"
#include "cpu/s2650/s2650.h"
#include "machine/s2636.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/subsino.cpp b/src/mame/drivers/subsino.cpp
index c271c2552f6..a22379aed57 100644
--- a/src/mame/drivers/subsino.cpp
+++ b/src/mame/drivers/subsino.cpp
@@ -225,6 +225,7 @@ To Do:
#include "sound/ym2413.h"
#include "sound/3812intf.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/subsino2.cpp b/src/mame/drivers/subsino2.cpp
index 6c462820667..391b91228cd 100644
--- a/src/mame/drivers/subsino2.cpp
+++ b/src/mame/drivers/subsino2.cpp
@@ -50,6 +50,7 @@ To do:
#include "sound/3812intf.h"
#include "sound/okim6295.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/summit.cpp b/src/mame/drivers/summit.cpp
index badc93d4d98..1352690c27a 100644
--- a/src/mame/drivers/summit.cpp
+++ b/src/mame/drivers/summit.cpp
@@ -19,6 +19,7 @@ needs inputs, prom decode, sound, artwork (lamps), probably some irq masking and
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/supbtime.cpp b/src/mame/drivers/supbtime.cpp
index a33394c3785..8f8df46fd98 100644
--- a/src/mame/drivers/supbtime.cpp
+++ b/src/mame/drivers/supbtime.cpp
@@ -61,6 +61,7 @@ Stephh's notes (based on the games M68000 code and some tests) :
#include "emu.h"
#include "includes/supbtime.h"
+#include "emupal.h"
#define TUMBLEP_HACK 0
diff --git a/src/mame/drivers/supdrapo.cpp b/src/mame/drivers/supdrapo.cpp
index 1278f531b53..53f37489899 100644
--- a/src/mame/drivers/supdrapo.cpp
+++ b/src/mame/drivers/supdrapo.cpp
@@ -62,6 +62,7 @@
#include "sound/ay8910.h"
#include "machine/nvram.h"
#include "machine/watchdog.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/supduck.cpp b/src/mame/drivers/supduck.cpp
index 51dd854cce7..d2c013a8c80 100644
--- a/src/mame/drivers/supduck.cpp
+++ b/src/mame/drivers/supduck.cpp
@@ -28,6 +28,7 @@ All clock timing comes from crystal 1
#include "sound/okim6295.h"
#include "video/bufsprite.h"
#include "video/tigeroad_spr.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/supercrd.cpp b/src/mame/drivers/supercrd.cpp
index 3ea746ea099..05125e31440 100644
--- a/src/mame/drivers/supercrd.cpp
+++ b/src/mame/drivers/supercrd.cpp
@@ -166,6 +166,7 @@
#include "machine/nvram.h"
#include "video/mc6845.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/superdq.cpp b/src/mame/drivers/superdq.cpp
index 8b18881f593..8eaef54573b 100644
--- a/src/mame/drivers/superdq.cpp
+++ b/src/mame/drivers/superdq.cpp
@@ -24,6 +24,7 @@
#include "machine/ldv1000.h"
#include "sound/sn76496.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/superwng.cpp b/src/mame/drivers/superwng.cpp
index 19f0f14bb38..b5554b1a7c2 100644
--- a/src/mame/drivers/superwng.cpp
+++ b/src/mame/drivers/superwng.cpp
@@ -35,6 +35,7 @@ TODO:
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/supracan.cpp b/src/mame/drivers/supracan.cpp
index f6a2a081459..4c3f9d7dd7e 100644
--- a/src/mame/drivers/supracan.cpp
+++ b/src/mame/drivers/supracan.cpp
@@ -80,6 +80,7 @@ DEBUG TRICKS:
#include "cpu/m6502/m6502.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/suprgolf.cpp b/src/mame/drivers/suprgolf.cpp
index 99d8c360786..7309e223ef1 100644
--- a/src/mame/drivers/suprgolf.cpp
+++ b/src/mame/drivers/suprgolf.cpp
@@ -27,6 +27,7 @@
#include "machine/i8255.h"
#include "sound/2203intf.h"
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/svmu.cpp b/src/mame/drivers/svmu.cpp
index 1cfab6c03f4..c907ef5a6d4 100644
--- a/src/mame/drivers/svmu.cpp
+++ b/src/mame/drivers/svmu.cpp
@@ -17,6 +17,7 @@
#include "imagedev/snapquik.h"
#include "machine/intelfsh.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/swyft.cpp b/src/mame/drivers/swyft.cpp
index 7eb2e742a21..5ffc7575a7f 100644
--- a/src/mame/drivers/swyft.cpp
+++ b/src/mame/drivers/swyft.cpp
@@ -261,6 +261,7 @@ ToDo:
#include "machine/6850acia.h"
#include "machine/clock.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/sys2900.cpp b/src/mame/drivers/sys2900.cpp
index 081304dd5a7..5acd9ceabdb 100644
--- a/src/mame/drivers/sys2900.cpp
+++ b/src/mame/drivers/sys2900.cpp
@@ -47,6 +47,7 @@ Status:
#include "machine/z80pio.h"
#include "machine/z80sio.h"
//#include "bus/s100/s100.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/sys9002.cpp b/src/mame/drivers/sys9002.cpp
index 0c482477845..48bce3af092 100644
--- a/src/mame/drivers/sys9002.cpp
+++ b/src/mame/drivers/sys9002.cpp
@@ -21,6 +21,7 @@ If write to the 6845 is enabled, MAME freezes after 1 or 2 seconds.
#include "emu.h"
#include "cpu/i8085/i8085.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "machine/clock.h"
#include "machine/i8251.h"
diff --git a/src/mame/drivers/taitopjc.cpp b/src/mame/drivers/taitopjc.cpp
index f88c94f623c..d5315b26e30 100644
--- a/src/mame/drivers/taitopjc.cpp
+++ b/src/mame/drivers/taitopjc.cpp
@@ -90,6 +90,7 @@
#include "cpu/tms32051/tms32051.h"
#include "video/tc0780fpa.h"
#include "machine/nvram.h"
+#include "emupal.h"
#define LOG_TLCS_TO_PPC_COMMANDS 1
#define LOG_PPC_TO_TLCS_COMMANDS 1
diff --git a/src/mame/drivers/taitotx.cpp b/src/mame/drivers/taitotx.cpp
index 4e1300422a0..1940613a8c5 100644
--- a/src/mame/drivers/taitotx.cpp
+++ b/src/mame/drivers/taitotx.cpp
@@ -118,6 +118,7 @@
#include "emu.h"
#include "cpu/i386/i386.h"
+#include "emupal.h"
#include "screen.h"
class taito_type_x_state : public driver_device
diff --git a/src/mame/drivers/taitowlf.cpp b/src/mame/drivers/taitowlf.cpp
index abc340b065b..5d2953e2782 100644
--- a/src/mame/drivers/taitowlf.cpp
+++ b/src/mame/drivers/taitowlf.cpp
@@ -39,6 +39,7 @@ TODO:
#if ENABLE_VGA
#include "video/pc_vga.h"
#endif
+#include "emupal.h"
#include "screen.h"
class taitowlf_state : public pcat_base_state
diff --git a/src/mame/drivers/tamag1.cpp b/src/mame/drivers/tamag1.cpp
index 9d5e814ea4a..e3cf871be31 100644
--- a/src/mame/drivers/tamag1.cpp
+++ b/src/mame/drivers/tamag1.cpp
@@ -11,6 +11,7 @@
#include "emu.h"
#include "cpu/e0c6200/e0c6s46.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/taotaido.cpp b/src/mame/drivers/taotaido.cpp
index 0481af03a2a..769b5771489 100644
--- a/src/mame/drivers/taotaido.cpp
+++ b/src/mame/drivers/taotaido.cpp
@@ -70,6 +70,7 @@ zooming might be wrong
#include "cpu/m68000/m68000.h"
#include "machine/vs9209.h"
#include "sound/2610intf.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tasman.cpp b/src/mame/drivers/tasman.cpp
index 4773679d044..db913c2aa7d 100644
--- a/src/mame/drivers/tasman.cpp
+++ b/src/mame/drivers/tasman.cpp
@@ -29,6 +29,7 @@
#include "video/k054156_k054157_k056832.h"
#include "video/k055555.h"
#include "machine/eepromser.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tattack.cpp b/src/mame/drivers/tattack.cpp
index 2e0db4504cb..f626a1a8e4b 100644
--- a/src/mame/drivers/tattack.cpp
+++ b/src/mame/drivers/tattack.cpp
@@ -50,6 +50,7 @@
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
#include "sound/samples.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tavernie.cpp b/src/mame/drivers/tavernie.cpp
index 0d8bcf09744..cad92408b1d 100644
--- a/src/mame/drivers/tavernie.cpp
+++ b/src/mame/drivers/tavernie.cpp
@@ -63,6 +63,7 @@ Z - more scan lines per row (cursor is bigger)
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tdv2324.cpp b/src/mame/drivers/tdv2324.cpp
index 99a7f2588e1..b98725a4cc8 100644
--- a/src/mame/drivers/tdv2324.cpp
+++ b/src/mame/drivers/tdv2324.cpp
@@ -103,6 +103,7 @@
#include "emu.h"
#include "includes/tdv2324.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/tek410x.cpp b/src/mame/drivers/tek410x.cpp
index 6ba4107428d..02136bb0940 100644
--- a/src/mame/drivers/tek410x.cpp
+++ b/src/mame/drivers/tek410x.cpp
@@ -19,6 +19,7 @@
#include "emu.h"
#include "cpu/i86/i186.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/tek440x.cpp b/src/mame/drivers/tek440x.cpp
index f88fd290bfd..6c0191487e7 100644
--- a/src/mame/drivers/tek440x.cpp
+++ b/src/mame/drivers/tek440x.cpp
@@ -49,6 +49,7 @@
#include "machine/mos6551.h" // debug tty
#include "machine/mc146818.h"
#include "sound/sn76496.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tekxp33x.cpp b/src/mame/drivers/tekxp33x.cpp
index 98a3d009a29..621025a91eb 100644
--- a/src/mame/drivers/tekxp33x.cpp
+++ b/src/mame/drivers/tekxp33x.cpp
@@ -38,6 +38,7 @@
#include "emu.h"
#include "cpu/mips/r3000.h"
#include "cpu/tms34010/tms34010.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/terak.cpp b/src/mame/drivers/terak.cpp
index c07c6afc8e8..53dae966472 100644
--- a/src/mame/drivers/terak.cpp
+++ b/src/mame/drivers/terak.cpp
@@ -13,6 +13,7 @@ Floppies were 8 inch IBM format.
#include "emu.h"
#include "cpu/t11/t11.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/thedealr.cpp b/src/mame/drivers/thedealr.cpp
index 9ea496b28aa..d7a0fc24ec6 100644
--- a/src/mame/drivers/thedealr.cpp
+++ b/src/mame/drivers/thedealr.cpp
@@ -35,6 +35,7 @@
#include "machine/watchdog.h"
#include "sound/ay8910.h"
#include "video/seta001.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ti630.cpp b/src/mame/drivers/ti630.cpp
index 893838ff8b7..bc40592465b 100644
--- a/src/mame/drivers/ti630.cpp
+++ b/src/mame/drivers/ti630.cpp
@@ -37,6 +37,7 @@ It means we probably would have to emulate a modem device for it to treat commun
#include "emu.h"
#include "cpu/mcs51/mcs51.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
diff --git a/src/mame/drivers/ti74.cpp b/src/mame/drivers/ti74.cpp
index f5f6f0c0559..527a39a9e33 100644
--- a/src/mame/drivers/ti74.cpp
+++ b/src/mame/drivers/ti74.cpp
@@ -75,6 +75,7 @@
#include "cpu/tms7000/tms7000.h"
#include "machine/nvram.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/tim011.cpp b/src/mame/drivers/tim011.cpp
index bc66810a472..37c367ff5ed 100644
--- a/src/mame/drivers/tim011.cpp
+++ b/src/mame/drivers/tim011.cpp
@@ -11,6 +11,7 @@
#include "emu.h"
#include "cpu/z180/z180.h"
#include "machine/upd765.h"
+#include "emupal.h"
#include "screen.h"
#define FDC9266_TAG "u43"
diff --git a/src/mame/drivers/tim100.cpp b/src/mame/drivers/tim100.cpp
index dda22f8bea4..773a90d9740 100644
--- a/src/mame/drivers/tim100.cpp
+++ b/src/mame/drivers/tim100.cpp
@@ -21,6 +21,7 @@ Notes:
#include "machine/clock.h"
#include "machine/i8251.h"
#include "video/i8275.h"
+#include "emupal.h"
#include "screen.h"
class tim100_state : public driver_device
diff --git a/src/mame/drivers/timetrv.cpp b/src/mame/drivers/timetrv.cpp
index 109b9f1ccf4..c5ff1ceb350 100644
--- a/src/mame/drivers/timetrv.cpp
+++ b/src/mame/drivers/timetrv.cpp
@@ -31,6 +31,7 @@ CPU is an Intel 80188
#include "machine/eeprompar.h"
#include "machine/i8255.h"
#include "machine/ins8250.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/tk2000.cpp b/src/mame/drivers/tk2000.cpp
index b0388847059..a7a93a6f6fd 100644
--- a/src/mame/drivers/tk2000.cpp
+++ b/src/mame/drivers/tk2000.cpp
@@ -25,6 +25,7 @@
#include "machine/timer.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tk80bs.cpp b/src/mame/drivers/tk80bs.cpp
index 2fc5d6ebbbf..2d3c9686021 100644
--- a/src/mame/drivers/tk80bs.cpp
+++ b/src/mame/drivers/tk80bs.cpp
@@ -26,6 +26,7 @@ TODO:
#include "cpu/i8085/i8085.h"
#include "machine/i8255.h"
#include "machine/keyboard.h"
+#include "emupal.h"
#include "screen.h"
class tk80bs_state : public driver_device
diff --git a/src/mame/drivers/tmaster.cpp b/src/mame/drivers/tmaster.cpp
index 7522d0d3c5f..efd18d4b81f 100644
--- a/src/mame/drivers/tmaster.cpp
+++ b/src/mame/drivers/tmaster.cpp
@@ -100,6 +100,7 @@ Chips:
#include "machine/watchdog.h"
#include "sound/okim6295.h"
#include "video/cesblit.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tmmjprd.cpp b/src/mame/drivers/tmmjprd.cpp
index f20ddd818be..596f8da2567 100644
--- a/src/mame/drivers/tmmjprd.cpp
+++ b/src/mame/drivers/tmmjprd.cpp
@@ -34,6 +34,7 @@
#include "machine/eepromser.h"
#include "machine/timer.h"
#include "sound/i5000.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tmspoker.cpp b/src/mame/drivers/tmspoker.cpp
index a7e6e0f96c6..af6ea71f675 100644
--- a/src/mame/drivers/tmspoker.cpp
+++ b/src/mame/drivers/tmspoker.cpp
@@ -209,6 +209,7 @@
#include "cpu/tms9900/tms9980a.h"
#include "sound/sn76477.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/topspeed.cpp b/src/mame/drivers/topspeed.cpp
index e7d77300d30..16840fac905 100644
--- a/src/mame/drivers/topspeed.cpp
+++ b/src/mame/drivers/topspeed.cpp
@@ -165,6 +165,7 @@ From JP manual
#include "sound/flt_vol.h"
#include "sound/msm5205.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/toypop.cpp b/src/mame/drivers/toypop.cpp
index 2102596f92b..5c8d888189e 100644
--- a/src/mame/drivers/toypop.cpp
+++ b/src/mame/drivers/toypop.cpp
@@ -33,6 +33,7 @@
#include "cpu/m68000/m68000.h"
#include "machine/timer.h"
#include "sound/namco.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/triforce.cpp b/src/mame/drivers/triforce.cpp
index e43b4a078b0..becb52205c0 100644
--- a/src/mame/drivers/triforce.cpp
+++ b/src/mame/drivers/triforce.cpp
@@ -443,6 +443,7 @@ Notes:
#include "emu.h"
#include "cpu/powerpc/ppc.h"
#include "machine/naomigd.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/trs80dt1.cpp b/src/mame/drivers/trs80dt1.cpp
index e76f234ae24..daea3cf5487 100644
--- a/src/mame/drivers/trs80dt1.cpp
+++ b/src/mame/drivers/trs80dt1.cpp
@@ -34,6 +34,7 @@ You can get into the setup menu by pressing Ctrl+Shift+Enter.
#include "machine/7474.h"
#include "machine/x2212.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
//#include "logmacro.h"
diff --git a/src/mame/drivers/trvmadns.cpp b/src/mame/drivers/trvmadns.cpp
index 135ca6efac8..1ec0bcfe9dd 100644
--- a/src/mame/drivers/trvmadns.cpp
+++ b/src/mame/drivers/trvmadns.cpp
@@ -90,6 +90,7 @@ Technology = NMOS
#include "emu.h"
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ts803.cpp b/src/mame/drivers/ts803.cpp
index 8cab2a573b6..945e0306045 100644
--- a/src/mame/drivers/ts803.cpp
+++ b/src/mame/drivers/ts803.cpp
@@ -55,6 +55,7 @@ PAGE SEL bit in PORT0 set to 1:
#include "machine/wd_fdc.h"
#include "machine/z80sti.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/ttchamp.cpp b/src/mame/drivers/ttchamp.cpp
index c0674e47da2..8648ef53f63 100644
--- a/src/mame/drivers/ttchamp.cpp
+++ b/src/mame/drivers/ttchamp.cpp
@@ -70,6 +70,7 @@ we currently simulate this as the PIC is read protected.
#include "cpu/nec/nec.h"
#include "machine/nvram.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tugboat.cpp b/src/mame/drivers/tugboat.cpp
index 5f7e3c7cf93..e7dc7cf6ba8 100644
--- a/src/mame/drivers/tugboat.cpp
+++ b/src/mame/drivers/tugboat.cpp
@@ -29,6 +29,7 @@ always false - counter was reloaded and incremented before interrupt occurs
#include "cpu/m6502/m6502.h"
#include "machine/6821pia.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/turrett.cpp b/src/mame/drivers/turrett.cpp
index 25940a3ef3c..e419dfa3f3c 100644
--- a/src/mame/drivers/turrett.cpp
+++ b/src/mame/drivers/turrett.cpp
@@ -14,6 +14,7 @@
#include "cpu/mips/r3000.h"
#include "machine/ataintf.h"
#include "machine/idehd.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tv990.cpp b/src/mame/drivers/tv990.cpp
index e6e199b6f55..60a6b3f1377 100644
--- a/src/mame/drivers/tv990.cpp
+++ b/src/mame/drivers/tv990.cpp
@@ -37,6 +37,7 @@
#include "machine/nvram.h"
#include "machine/pc_lpt.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tvc.cpp b/src/mame/drivers/tvc.cpp
index 7c89f51d82f..7f6084e5f49 100644
--- a/src/mame/drivers/tvc.cpp
+++ b/src/mame/drivers/tvc.cpp
@@ -27,6 +27,7 @@
#include "bus/tvc/tvc.h"
#include "bus/tvc/hbf.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/tvcapcom.cpp b/src/mame/drivers/tvcapcom.cpp
index dbbae7c4102..1f94be7f637 100644
--- a/src/mame/drivers/tvcapcom.cpp
+++ b/src/mame/drivers/tvcapcom.cpp
@@ -12,6 +12,7 @@
#include "emu.h"
#include "cpu/powerpc/ppc.h"
+#include "emupal.h"
#include "screen.h"
class tvcapcom_state : public driver_device
diff --git a/src/mame/drivers/tvgame.cpp b/src/mame/drivers/tvgame.cpp
index 8e18186c370..5e58f6e08d6 100644
--- a/src/mame/drivers/tvgame.cpp
+++ b/src/mame/drivers/tvgame.cpp
@@ -14,6 +14,7 @@
#include "cpu/z80/z80.h"
#include "machine/i8255.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/twins.cpp b/src/mame/drivers/twins.cpp
index 28a670fe152..4ae728b4a27 100644
--- a/src/mame/drivers/twins.cpp
+++ b/src/mame/drivers/twins.cpp
@@ -65,6 +65,7 @@ this requires the -joystick_contradictory switch on the commandline.
#include "sound/ay8910.h"
#include "machine/i2cmem.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/uknc.cpp b/src/mame/drivers/uknc.cpp
index 7bf606875d9..1e136b2076a 100644
--- a/src/mame/drivers/uknc.cpp
+++ b/src/mame/drivers/uknc.cpp
@@ -10,6 +10,7 @@
#include "emu.h"
#include "cpu/t11/t11.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/ultraman.cpp b/src/mame/drivers/ultraman.cpp
index c2152bbacb0..4fcec36d959 100644
--- a/src/mame/drivers/ultraman.cpp
+++ b/src/mame/drivers/ultraman.cpp
@@ -19,6 +19,7 @@
#include "machine/watchdog.h"
#include "sound/ym2151.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/ultrsprt.cpp b/src/mame/drivers/ultrsprt.cpp
index bbd31cee025..4fe8401c9fb 100644
--- a/src/mame/drivers/ultrsprt.cpp
+++ b/src/mame/drivers/ultrsprt.cpp
@@ -13,6 +13,7 @@
#include "machine/upd4701.h"
#include "sound/k054539.h"
#include "sound/k056800.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/umipoker.cpp b/src/mame/drivers/umipoker.cpp
index 94e69cda6b1..76c711299f8 100644
--- a/src/mame/drivers/umipoker.cpp
+++ b/src/mame/drivers/umipoker.cpp
@@ -23,6 +23,7 @@
#include "sound/3812intf.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/unichamp.cpp b/src/mame/drivers/unichamp.cpp
index 6d64c035e47..0c64b8c5d4e 100644
--- a/src/mame/drivers/unichamp.cpp
+++ b/src/mame/drivers/unichamp.cpp
@@ -44,6 +44,7 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/unior.cpp b/src/mame/drivers/unior.cpp
index a5671f330dd..ab18623a4bf 100644
--- a/src/mame/drivers/unior.cpp
+++ b/src/mame/drivers/unior.cpp
@@ -44,6 +44,7 @@ ToDo:
#include "machine/i8257.h"
#include "video/i8275.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/unistar.cpp b/src/mame/drivers/unistar.cpp
index 45b37342e33..7955e64c74f 100644
--- a/src/mame/drivers/unistar.cpp
+++ b/src/mame/drivers/unistar.cpp
@@ -14,6 +14,7 @@
#include "cpu/i8085/i8085.h"
#include "machine/am9513.h"
#include "machine/i8255.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/univac.cpp b/src/mame/drivers/univac.cpp
index ffe7c5223ed..878ca065b4d 100644
--- a/src/mame/drivers/univac.cpp
+++ b/src/mame/drivers/univac.cpp
@@ -43,6 +43,7 @@ Notes:
#include "machine/z80ctc.h"
#include "machine/z80sio.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/unixpc.cpp b/src/mame/drivers/unixpc.cpp
index 3da09076980..332370f6661 100644
--- a/src/mame/drivers/unixpc.cpp
+++ b/src/mame/drivers/unixpc.cpp
@@ -20,6 +20,7 @@
#include "machine/ram.h"
#include "machine/wd_fdc.h"
#include "machine/bankdev.h"
+#include "emupal.h"
#include "screen.h"
#include "unixpc.lh"
diff --git a/src/mame/drivers/unkhorse.cpp b/src/mame/drivers/unkhorse.cpp
index cccb2af0480..52ac1ad2b68 100644
--- a/src/mame/drivers/unkhorse.cpp
+++ b/src/mame/drivers/unkhorse.cpp
@@ -23,6 +23,7 @@ TODO:
#include "cpu/i8085/i8085.h"
#include "machine/i8155.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/v6809.cpp b/src/mame/drivers/v6809.cpp
index 7bb6b306ac2..f79cf629e4d 100644
--- a/src/mame/drivers/v6809.cpp
+++ b/src/mame/drivers/v6809.cpp
@@ -59,6 +59,7 @@ ToDo:
#include "machine/wd_fdc.h"
#include "sound/spkrdev.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/vamphalf.cpp b/src/mame/drivers/vamphalf.cpp
index b949d8f93d3..16f3497ac0a 100644
--- a/src/mame/drivers/vamphalf.cpp
+++ b/src/mame/drivers/vamphalf.cpp
@@ -67,6 +67,7 @@ TODO:
#include "sound/okim6295.h"
#include "sound/qs1000.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/vboy.cpp b/src/mame/drivers/vboy.cpp
index 1d529232361..d1b3b016e39 100644
--- a/src/mame/drivers/vboy.cpp
+++ b/src/mame/drivers/vboy.cpp
@@ -33,6 +33,7 @@
#include "bus/vboy/slot.h"
#include "bus/vboy/rom.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/vega.cpp b/src/mame/drivers/vega.cpp
index 2d3af2fd870..d57060919a8 100644
--- a/src/mame/drivers/vega.cpp
+++ b/src/mame/drivers/vega.cpp
@@ -80,6 +80,7 @@ TODO:
#include "machine/i8255.h"
#include "machine/ins8154.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/victor9k.cpp b/src/mame/drivers/victor9k.cpp
index 8238e701551..4e8e9069c53 100644
--- a/src/mame/drivers/victor9k.cpp
+++ b/src/mame/drivers/victor9k.cpp
@@ -39,6 +39,7 @@
#include "machine/z80dart.h"
#include "sound/hc55516.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/drivers/videopkr.cpp b/src/mame/drivers/videopkr.cpp
index 398a4e2f0f5..711dae82191 100644
--- a/src/mame/drivers/videopkr.cpp
+++ b/src/mame/drivers/videopkr.cpp
@@ -284,6 +284,7 @@
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/vii.cpp b/src/mame/drivers/vii.cpp
index 672af25eff0..f69b7682027 100644
--- a/src/mame/drivers/vii.cpp
+++ b/src/mame/drivers/vii.cpp
@@ -93,6 +93,7 @@ Detailed list of bugs:
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
diff --git a/src/mame/drivers/viper.cpp b/src/mame/drivers/viper.cpp
index a8a733b7ca0..dad7aef6ae0 100644
--- a/src/mame/drivers/viper.cpp
+++ b/src/mame/drivers/viper.cpp
@@ -357,6 +357,7 @@ some other components. It will be documented at a later date.
#include "machine/timekpr.h"
#include "machine/timer.h"
#include "video/voodoo.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/vlc.cpp b/src/mame/drivers/vlc.cpp
index 3fd0748b736..b31a3330d84 100644
--- a/src/mame/drivers/vlc.cpp
+++ b/src/mame/drivers/vlc.cpp
@@ -132,6 +132,7 @@ nevada TYPE2 : 64 45 51 06 32 02 31 31
#include "machine/watchdog.h"
#include "sound/ay8910.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/vpoker.cpp b/src/mame/drivers/vpoker.cpp
index 550a7ff9e59..2418b63aadd 100644
--- a/src/mame/drivers/vpoker.cpp
+++ b/src/mame/drivers/vpoker.cpp
@@ -101,6 +101,7 @@
#include "emu.h"
#include "cpu/m6809/m6809.h"
#include "machine/6840ptm.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/vroulet.cpp b/src/mame/drivers/vroulet.cpp
index 95ed53cda8d..e529bf7fea5 100644
--- a/src/mame/drivers/vroulet.cpp
+++ b/src/mame/drivers/vroulet.cpp
@@ -41,6 +41,7 @@ Tomasz Slanina 20050225
#include "machine/i8255.h"
#include "machine/nvram.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/vt220.cpp b/src/mame/drivers/vt220.cpp
index 12cf30bc0e6..4205f9eb532 100644
--- a/src/mame/drivers/vt220.cpp
+++ b/src/mame/drivers/vt220.cpp
@@ -38,6 +38,7 @@
#include "machine/ram.h"
//#include "machine/x2212.h"
//#include "video/crt9007.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/vt240.cpp b/src/mame/drivers/vt240.cpp
index fa308d20c55..95487d32619 100644
--- a/src/mame/drivers/vt240.cpp
+++ b/src/mame/drivers/vt240.cpp
@@ -19,6 +19,7 @@
#include "machine/bankdev.h"
#include "machine/x2212.h"
#include "video/upd7220.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/vt320.cpp b/src/mame/drivers/vt320.cpp
index 7e727865797..7bbb890fffc 100644
--- a/src/mame/drivers/vt320.cpp
+++ b/src/mame/drivers/vt320.cpp
@@ -11,6 +11,7 @@
#include "emu.h"
#include "cpu/mcs51/mcs51.h"
#include "machine/ram.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/vt520.cpp b/src/mame/drivers/vt520.cpp
index cf4fadf049b..eb27b62cda6 100644
--- a/src/mame/drivers/vt520.cpp
+++ b/src/mame/drivers/vt520.cpp
@@ -12,6 +12,7 @@
#include "cpu/mcs51/mcs51.h"
//#include "machine/mc68681.h"
#include "machine/ram.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/vta2000.cpp b/src/mame/drivers/vta2000.cpp
index d2ca506d271..c8ac4ec0e29 100644
--- a/src/mame/drivers/vta2000.cpp
+++ b/src/mame/drivers/vta2000.cpp
@@ -20,6 +20,7 @@ Note: port 0 bit 4 is NOT a speaker bit. See code at 027B.
#include "emu.h"
#include "cpu/i8085/i8085.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/wallc.cpp b/src/mame/drivers/wallc.cpp
index c42fcc15522..644d263a862 100644
--- a/src/mame/drivers/wallc.cpp
+++ b/src/mame/drivers/wallc.cpp
@@ -53,6 +53,7 @@ Thanks to HIGHWAYMAN for providing info on how to get to these epoxies
#include "cpu/z80/z80.h"
#include "sound/ay8910.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/warpsped.cpp b/src/mame/drivers/warpsped.cpp
index c6aacb10207..c7e437f92e1 100644
--- a/src/mame/drivers/warpsped.cpp
+++ b/src/mame/drivers/warpsped.cpp
@@ -87,6 +87,7 @@ L10, L15, L18 and G18 all read the same
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
#include "screen.h"
class warpspeed_state : public driver_device
diff --git a/src/mame/drivers/welltris.cpp b/src/mame/drivers/welltris.cpp
index 4fd9ff77a58..8e780ff6550 100644
--- a/src/mame/drivers/welltris.cpp
+++ b/src/mame/drivers/welltris.cpp
@@ -319,6 +319,7 @@ TODO:
#include "cpu/z80/z80.h"
#include "sound/2610intf.h"
#include "video/vsystem_gga.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/wheelfir.cpp b/src/mame/drivers/wheelfir.cpp
index 4bed09309a5..d3dc420f3fe 100644
--- a/src/mame/drivers/wheelfir.cpp
+++ b/src/mame/drivers/wheelfir.cpp
@@ -175,6 +175,7 @@ BIT N - ( scale < 50% ) ? 1 : 0
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/wicat.cpp b/src/mame/drivers/wicat.cpp
index c424bb7422c..d6cbf9d17db 100644
--- a/src/mame/drivers/wicat.cpp
+++ b/src/mame/drivers/wicat.cpp
@@ -32,6 +32,7 @@ Wicat - various systems.
#include "machine/wd_fdc.h"
#include "machine/x2212.h"
#include "video/i8275.h"
+#include "emupal.h"
#include "screen.h"
#include "wicat.lh"
diff --git a/src/mame/drivers/wildpkr.cpp b/src/mame/drivers/wildpkr.cpp
index cde58e4636c..628a8fc229b 100644
--- a/src/mame/drivers/wildpkr.cpp
+++ b/src/mame/drivers/wildpkr.cpp
@@ -167,6 +167,7 @@
#include "sound/volt_reg.h"
#include "video/hd63484.h"
#include "video/ramdac.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/wink.cpp b/src/mame/drivers/wink.cpp
index 41a5b7d044d..9fd8443924e 100644
--- a/src/mame/drivers/wink.cpp
+++ b/src/mame/drivers/wink.cpp
@@ -18,6 +18,7 @@
#include "machine/gen_latch.h"
#include "machine/nvram.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/wms.cpp b/src/mame/drivers/wms.cpp
index d09d0075d41..74ce8564ead 100644
--- a/src/mame/drivers/wms.cpp
+++ b/src/mame/drivers/wms.cpp
@@ -79,6 +79,7 @@
#include "emu.h"
#include "cpu/i86/i186.h"
#include "cpu/adsp2100/adsp2100.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/drivers/wyvernf0.cpp b/src/mame/drivers/wyvernf0.cpp
index 82ba07e31f2..afbe35f28f4 100644
--- a/src/mame/drivers/wyvernf0.cpp
+++ b/src/mame/drivers/wyvernf0.cpp
@@ -39,6 +39,7 @@ TODO:
#include "sound/msm5232.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/xmen.cpp b/src/mame/drivers/xmen.cpp
index 9b5e47fa83a..8c3c056b9b1 100644
--- a/src/mame/drivers/xmen.cpp
+++ b/src/mame/drivers/xmen.cpp
@@ -24,6 +24,7 @@ likewise a 2 screen game
#include "machine/eepromser.h"
#include "machine/watchdog.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "rendlay.h"
#include "speaker.h"
diff --git a/src/mame/drivers/y2.cpp b/src/mame/drivers/y2.cpp
index 8ad242248d4..46012b0dfc9 100644
--- a/src/mame/drivers/y2.cpp
+++ b/src/mame/drivers/y2.cpp
@@ -22,6 +22,7 @@ ROMs are contained on a small sub-board
*/
#include "emu.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/z100.cpp b/src/mame/drivers/z100.cpp
index cdd6060ac80..904d8ae01f0 100644
--- a/src/mame/drivers/z100.cpp
+++ b/src/mame/drivers/z100.cpp
@@ -151,6 +151,7 @@ ZDIPSW EQU 0FFH ; Configuration dip switches
#include "machine/pic8259.h"
#include "machine/wd_fdc.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
class z100_state : public driver_device
diff --git a/src/mame/drivers/z1013.cpp b/src/mame/drivers/z1013.cpp
index e07170dc05a..4df304761c1 100644
--- a/src/mame/drivers/z1013.cpp
+++ b/src/mame/drivers/z1013.cpp
@@ -55,6 +55,7 @@ Due to no input checking, misuse of commands can crash the system.
#include "imagedev/cassette.h"
#include "imagedev/snapquik.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/z9001.cpp b/src/mame/drivers/z9001.cpp
index 017239f5ec5..d9b0c800408 100644
--- a/src/mame/drivers/z9001.cpp
+++ b/src/mame/drivers/z9001.cpp
@@ -36,6 +36,7 @@ ToDo:
#include "machine/z80pio.h"
#include "sound/beep.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/zaurus.cpp b/src/mame/drivers/zaurus.cpp
index b8eac767bb0..3c2e9757871 100644
--- a/src/mame/drivers/zaurus.cpp
+++ b/src/mame/drivers/zaurus.cpp
@@ -1408,6 +1408,7 @@ Note:
#include "cpu/arm7/arm7core.h"
#include "machine/pxa255.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/zerozone.cpp b/src/mame/drivers/zerozone.cpp
index 8f6f7c912fd..9c402554a03 100644
--- a/src/mame/drivers/zerozone.cpp
+++ b/src/mame/drivers/zerozone.cpp
@@ -35,6 +35,7 @@
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/zr107.cpp b/src/mame/drivers/zr107.cpp
index f87a0dffa9f..01ca946be75 100644
--- a/src/mame/drivers/zr107.cpp
+++ b/src/mame/drivers/zr107.cpp
@@ -181,6 +181,7 @@ Check gticlub.c for details on the bottom board.
#include "video/k001006.h"
#include "video/k054156_k054157_k056832.h"
#include "video/konami_helper.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/drivers/zrt80.cpp b/src/mame/drivers/zrt80.cpp
index 8d531d1bea5..9f99b79304f 100644
--- a/src/mame/drivers/zrt80.cpp
+++ b/src/mame/drivers/zrt80.cpp
@@ -22,6 +22,7 @@
#include "machine/ins8250.h"
#include "machine/keyboard.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/drivers/zwackery.cpp b/src/mame/drivers/zwackery.cpp
index baabb1a2c21..eb3ebd7e331 100644
--- a/src/mame/drivers/zwackery.cpp
+++ b/src/mame/drivers/zwackery.cpp
@@ -25,6 +25,7 @@
#include "machine/6840ptm.h"
#include "machine/timer.h"
#include "machine/watchdog.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"