summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame')
-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
-rw-r--r--src/mame/etc/korgm1.cpp1
-rw-r--r--src/mame/etc/template_driver.cpp1
-rw-r--r--src/mame/includes/1942.h1
-rw-r--r--src/mame/includes/1943.h2
-rw-r--r--src/mame/includes/40love.h1
-rw-r--r--src/mame/includes/4enraya.h1
-rw-r--r--src/mame/includes/8080bw.h1
-rw-r--r--src/mame/includes/abc80.h1
-rw-r--r--src/mame/includes/abc80x.h1
-rw-r--r--src/mame/includes/ac1.h1
-rw-r--r--src/mame/includes/advision.h1
-rw-r--r--src/mame/includes/aeroboto.h2
-rw-r--r--src/mame/includes/aerofgt.h1
-rw-r--r--src/mame/includes/airbustr.h1
-rw-r--r--src/mame/includes/ajax.h1
-rw-r--r--src/mame/includes/alesis.h1
-rw-r--r--src/mame/includes/alpha68k.h1
-rw-r--r--src/mame/includes/amiga.h1
-rw-r--r--src/mame/includes/ampoker2.h1
-rw-r--r--src/mame/includes/amspdwy.h1
-rw-r--r--src/mame/includes/amstrad.h1
-rw-r--r--src/mame/includes/apexc.h1
-rw-r--r--src/mame/includes/apple2.h1
-rw-r--r--src/mame/includes/apple2gs.h1
-rw-r--r--src/mame/includes/apple3.h1
-rw-r--r--src/mame/includes/appoooh.h1
-rw-r--r--src/mame/includes/aquarium.h1
-rw-r--r--src/mame/includes/aquarius.h1
-rw-r--r--src/mame/includes/arabian.h2
-rw-r--r--src/mame/includes/arcadia.h1
-rw-r--r--src/mame/includes/archimds.h1
-rw-r--r--src/mame/includes/argus.h1
-rw-r--r--src/mame/includes/arkanoid.h1
-rw-r--r--src/mame/includes/armedf.h1
-rw-r--r--src/mame/includes/astrocde.h1
-rw-r--r--src/mame/includes/atari400.h1
-rw-r--r--src/mame/includes/atarifb.h1
-rw-r--r--src/mame/includes/atarist.h1
-rw-r--r--src/mame/includes/aussiebyte.h3
-rw-r--r--src/mame/includes/avigo.h1
-rw-r--r--src/mame/includes/b2m.h1
-rw-r--r--src/mame/includes/bagman.h1
-rw-r--r--src/mame/includes/balsente.h1
-rw-r--r--src/mame/includes/bankp.h2
-rw-r--r--src/mame/includes/baraduke.h1
-rw-r--r--src/mame/includes/batman.h1
-rw-r--r--src/mame/includes/battlane.h2
-rw-r--r--src/mame/includes/battlex.h2
-rw-r--r--src/mame/includes/bbc.h1
-rw-r--r--src/mame/includes/bigevglf.h1
-rw-r--r--src/mame/includes/bigstrkb.h3
-rw-r--r--src/mame/includes/bionicc.h1
-rw-r--r--src/mame/includes/bishi.h1
-rw-r--r--src/mame/includes/bking.h1
-rw-r--r--src/mame/includes/bladestl.h1
-rw-r--r--src/mame/includes/blktiger.h1
-rw-r--r--src/mame/includes/blmbycar.h2
-rw-r--r--src/mame/includes/blockout.h1
-rw-r--r--src/mame/includes/bloodbro.h1
-rw-r--r--src/mame/includes/blueprnt.h1
-rw-r--r--src/mame/includes/bogeyman.h1
-rw-r--r--src/mame/includes/bombjack.h1
-rw-r--r--src/mame/includes/bottom9.h1
-rw-r--r--src/mame/includes/brkthru.h1
-rw-r--r--src/mame/includes/bsktball.h1
-rw-r--r--src/mame/includes/btime.h1
-rw-r--r--src/mame/includes/btoads.h1
-rw-r--r--src/mame/includes/bublbobl.h1
-rw-r--r--src/mame/includes/buggychl.h1
-rw-r--r--src/mame/includes/busicom.h1
-rw-r--r--src/mame/includes/bw12.h1
-rw-r--r--src/mame/includes/bw2.h1
-rw-r--r--src/mame/includes/bwing.h1
-rw-r--r--src/mame/includes/cabal.h1
-rw-r--r--src/mame/includes/calomega.h1
-rw-r--r--src/mame/includes/canyon.h1
-rw-r--r--src/mame/includes/carpolo.h1
-rw-r--r--src/mame/includes/cave.h1
-rw-r--r--src/mame/includes/cbasebal.h2
-rw-r--r--src/mame/includes/cbuster.h1
-rw-r--r--src/mame/includes/ccastles.h1
-rw-r--r--src/mame/includes/cclimber.h1
-rw-r--r--src/mame/includes/centiped.h1
-rw-r--r--src/mame/includes/cgc7900.h1
-rw-r--r--src/mame/includes/chaknpop.h1
-rw-r--r--src/mame/includes/champbas.h1
-rw-r--r--src/mame/includes/changela.h1
-rw-r--r--src/mame/includes/channelf.h2
-rw-r--r--src/mame/includes/cheekyms.h1
-rw-r--r--src/mame/includes/chqflag.h1
-rw-r--r--src/mame/includes/circus.h1
-rw-r--r--src/mame/includes/circusc.h2
-rw-r--r--src/mame/includes/cischeat.h1
-rw-r--r--src/mame/includes/citycon.h2
-rw-r--r--src/mame/includes/cloak.h1
-rw-r--r--src/mame/includes/cloud9.h1
-rw-r--r--src/mame/includes/clshroad.h3
-rw-r--r--src/mame/includes/cninja.h1
-rw-r--r--src/mame/includes/combatsc.h1
-rw-r--r--src/mame/includes/commando.h1
-rw-r--r--src/mame/includes/compgolf.h2
-rw-r--r--src/mame/includes/contra.h1
-rw-r--r--src/mame/includes/cop01.h1
-rw-r--r--src/mame/includes/copsnrob.h1
-rw-r--r--src/mame/includes/cosmic.h1
-rw-r--r--src/mame/includes/cps1.h1
-rw-r--r--src/mame/includes/cps3.h1
-rw-r--r--src/mame/includes/crbaloon.h1
-rw-r--r--src/mame/includes/crgolf.h2
-rw-r--r--src/mame/includes/crimfght.h1
-rw-r--r--src/mame/includes/crshrace.h1
-rw-r--r--src/mame/includes/cvs.h1
-rw-r--r--src/mame/includes/dai.h1
-rw-r--r--src/mame/includes/darius.h1
-rw-r--r--src/mame/includes/darkmist.h1
-rw-r--r--src/mame/includes/darkseal.h1
-rw-r--r--src/mame/includes/dassault.h1
-rw-r--r--src/mame/includes/dcheese.h1
-rw-r--r--src/mame/includes/dcon.h1
-rw-r--r--src/mame/includes/dday.h2
-rw-r--r--src/mame/includes/ddragon.h1
-rw-r--r--src/mame/includes/ddragon3.h1
-rw-r--r--src/mame/includes/ddribble.h1
-rw-r--r--src/mame/includes/deadang.h1
-rw-r--r--src/mame/includes/dec0.h1
-rw-r--r--src/mame/includes/deco32.h1
-rw-r--r--src/mame/includes/deco_mlc.h1
-rw-r--r--src/mame/includes/decocass.h1
-rw-r--r--src/mame/includes/deniam.h1
-rw-r--r--src/mame/includes/dgn_beta.h1
-rw-r--r--src/mame/includes/divebomb.h1
-rw-r--r--src/mame/includes/djboy.h1
-rw-r--r--src/mame/includes/djmain.h1
-rw-r--r--src/mame/includes/dkong.h1
-rw-r--r--src/mame/includes/docastle.h1
-rw-r--r--src/mame/includes/dogfgt.h1
-rw-r--r--src/mame/includes/dragon.h1
-rw-r--r--src/mame/includes/dragrace.h1
-rw-r--r--src/mame/includes/drgnmst.h1
-rw-r--r--src/mame/includes/dribling.h1
-rw-r--r--src/mame/includes/drmicro.h1
-rw-r--r--src/mame/includes/dynax.h1
-rw-r--r--src/mame/includes/dynduke.h1
-rw-r--r--src/mame/includes/efdt.h3
-rw-r--r--src/mame/includes/electron.h1
-rw-r--r--src/mame/includes/eolith.h1
-rw-r--r--src/mame/includes/epos.h2
-rw-r--r--src/mame/includes/equites.h1
-rw-r--r--src/mame/includes/espial.h1
-rw-r--r--src/mame/includes/exedexes.h1
-rw-r--r--src/mame/includes/exerion.h2
-rw-r--r--src/mame/includes/exidy.h1
-rw-r--r--src/mame/includes/exidy440.h1
-rw-r--r--src/mame/includes/exprraid.h1
-rw-r--r--src/mame/includes/exterm.h1
-rw-r--r--src/mame/includes/exzisus.h3
-rw-r--r--src/mame/includes/f1gp.h1
-rw-r--r--src/mame/includes/fantland.h1
-rw-r--r--src/mame/includes/fastlane.h1
-rw-r--r--src/mame/includes/fcombat.h2
-rw-r--r--src/mame/includes/fgoal.h1
-rw-r--r--src/mame/includes/finalizr.h1
-rw-r--r--src/mame/includes/firetrap.h1
-rw-r--r--src/mame/includes/firetrk.h1
-rw-r--r--src/mame/includes/fitfight.h2
-rw-r--r--src/mame/includes/flstory.h1
-rw-r--r--src/mame/includes/fm7.h1
-rw-r--r--src/mame/includes/fmtowns.h2
-rw-r--r--src/mame/includes/freekick.h1
-rw-r--r--src/mame/includes/fromanc2.h1
-rw-r--r--src/mame/includes/fromance.h1
-rw-r--r--src/mame/includes/funkybee.h1
-rw-r--r--src/mame/includes/funworld.h3
-rw-r--r--src/mame/includes/funybubl.h1
-rw-r--r--src/mame/includes/fuukifg2.h1
-rw-r--r--src/mame/includes/fuukifg3.h1
-rw-r--r--src/mame/includes/gaelco.h1
-rw-r--r--src/mame/includes/gaelco2.h1
-rw-r--r--src/mame/includes/gaiden.h1
-rw-r--r--src/mame/includes/galaga.h1
-rw-r--r--src/mame/includes/galastrm.h1
-rw-r--r--src/mame/includes/galaxian.h1
-rw-r--r--src/mame/includes/galaxold.h1
-rw-r--r--src/mame/includes/galeb.h1
-rw-r--r--src/mame/includes/galivan.h1
-rw-r--r--src/mame/includes/galpani2.h1
-rw-r--r--src/mame/includes/galpanic.h1
-rw-r--r--src/mame/includes/galspnbl.h1
-rw-r--r--src/mame/includes/gamecom.h1
-rw-r--r--src/mame/includes/gaplus.h5
-rw-r--r--src/mame/includes/gb.h1
-rw-r--r--src/mame/includes/gberet.h1
-rw-r--r--src/mame/includes/gcpinbal.h1
-rw-r--r--src/mame/includes/gijoe.h1
-rw-r--r--src/mame/includes/ginganin.h1
-rw-r--r--src/mame/includes/gladiatr.h1
-rw-r--r--src/mame/includes/glass.h1
-rw-r--r--src/mame/includes/gng.h1
-rw-r--r--src/mame/includes/goal92.h1
-rw-r--r--src/mame/includes/goindol.h2
-rw-r--r--src/mame/includes/goldstar.h1
-rw-r--r--src/mame/includes/gomoku.h1
-rw-r--r--src/mame/includes/gottlieb.h1
-rw-r--r--src/mame/includes/gotya.h1
-rw-r--r--src/mame/includes/gp32.h1
-rw-r--r--src/mame/includes/grchamp.h1
-rw-r--r--src/mame/includes/gridlee.h1
-rw-r--r--src/mame/includes/groundfx.h1
-rw-r--r--src/mame/includes/gstriker.h1
-rw-r--r--src/mame/includes/gsword.h1
-rw-r--r--src/mame/includes/gunbustr.h1
-rw-r--r--src/mame/includes/gundealr.h1
-rw-r--r--src/mame/includes/gunsmoke.h2
-rw-r--r--src/mame/includes/gyruss.h1
-rw-r--r--src/mame/includes/hanaawas.h2
-rw-r--r--src/mame/includes/harddriv.h1
-rw-r--r--src/mame/includes/hcastle.h1
-rw-r--r--src/mame/includes/hec2hrp.h1
-rw-r--r--src/mame/includes/higemaru.h1
-rw-r--r--src/mame/includes/himesiki.h1
-rw-r--r--src/mame/includes/hnayayoi.h1
-rw-r--r--src/mame/includes/hng64.h1
-rw-r--r--src/mame/includes/holeland.h1
-rw-r--r--src/mame/includes/homedata.h1
-rw-r--r--src/mame/includes/homerun.h1
-rw-r--r--src/mame/includes/hp48.h1
-rw-r--r--src/mame/includes/hp9845.h1
-rw-r--r--src/mame/includes/huebler.h1
-rw-r--r--src/mame/includes/hx20.h1
-rw-r--r--src/mame/includes/hyperspt.h1
-rw-r--r--src/mame/includes/ikki.h1
-rw-r--r--src/mame/includes/imds2.h1
-rw-r--r--src/mame/includes/intv.h2
-rw-r--r--src/mame/includes/inufuku.h1
-rw-r--r--src/mame/includes/irobot.h1
-rw-r--r--src/mame/includes/ironhors.h1
-rw-r--r--src/mame/includes/itech32.h1
-rw-r--r--src/mame/includes/jack.h1
-rw-r--r--src/mame/includes/jackal.h2
-rw-r--r--src/mame/includes/jailbrek.h1
-rw-r--r--src/mame/includes/jpmimpct.h1
-rw-r--r--src/mame/includes/jpmsys5.h1
-rw-r--r--src/mame/includes/kaneko16.h2
-rw-r--r--src/mame/includes/kangaroo.h2
-rw-r--r--src/mame/includes/kaypro.h1
-rw-r--r--src/mame/includes/kc.h1
-rw-r--r--src/mame/includes/kchamp.h1
-rw-r--r--src/mame/includes/kickgoal.h1
-rw-r--r--src/mame/includes/kingobox.h1
-rw-r--r--src/mame/includes/kncljoe.h1
-rw-r--r--src/mame/includes/konamigx.h1
-rw-r--r--src/mame/includes/kopunch.h2
-rw-r--r--src/mame/includes/kramermc.h1
-rw-r--r--src/mame/includes/ksayakyu.h1
-rw-r--r--src/mame/includes/kyocera.h1
-rw-r--r--src/mame/includes/kyugo.h2
-rw-r--r--src/mame/includes/labyrunr.h1
-rw-r--r--src/mame/includes/ladybug.h1
-rw-r--r--src/mame/includes/ladyfrog.h1
-rw-r--r--src/mame/includes/laserbat.h1
-rw-r--r--src/mame/includes/lasso.h1
-rw-r--r--src/mame/includes/lastduel.h1
-rw-r--r--src/mame/includes/lazercmd.h1
-rw-r--r--src/mame/includes/legionna.h1
-rw-r--r--src/mame/includes/leland.h1
-rw-r--r--src/mame/includes/lemmings.h1
-rw-r--r--src/mame/includes/lethal.h1
-rw-r--r--src/mame/includes/liberate.h1
-rw-r--r--src/mame/includes/lisa.h1
-rw-r--r--src/mame/includes/lkage.h1
-rw-r--r--src/mame/includes/lockon.h1
-rw-r--r--src/mame/includes/lordgun.h1
-rw-r--r--src/mame/includes/lsasquad.h1
-rw-r--r--src/mame/includes/lucky74.h2
-rw-r--r--src/mame/includes/lvcards.h3
-rw-r--r--src/mame/includes/lviv.h1
-rw-r--r--src/mame/includes/lwings.h1
-rw-r--r--src/mame/includes/lynx.h1
-rw-r--r--src/mame/includes/m10.h1
-rw-r--r--src/mame/includes/m107.h1
-rw-r--r--src/mame/includes/m52.h2
-rw-r--r--src/mame/includes/m57.h3
-rw-r--r--src/mame/includes/m58.h1
-rw-r--r--src/mame/includes/m62.h1
-rw-r--r--src/mame/includes/m72.h1
-rw-r--r--src/mame/includes/m90.h1
-rw-r--r--src/mame/includes/m92.h1
-rw-r--r--src/mame/includes/mac.h1
-rw-r--r--src/mame/includes/macrossp.h1
-rw-r--r--src/mame/includes/madalien.h1
-rw-r--r--src/mame/includes/magmax.h1
-rw-r--r--src/mame/includes/mainsnk.h1
-rw-r--r--src/mame/includes/malzak.h1
-rw-r--r--src/mame/includes/mappy.h1
-rw-r--r--src/mame/includes/marineb.h3
-rw-r--r--src/mame/includes/mario.h1
-rw-r--r--src/mame/includes/markham.h1
-rw-r--r--src/mame/includes/matmania.h1
-rw-r--r--src/mame/includes/mbc55x.h1
-rw-r--r--src/mame/includes/mbee.h1
-rw-r--r--src/mame/includes/mcatadv.h1
-rw-r--r--src/mame/includes/mcr.h1
-rw-r--r--src/mame/includes/meadows.h1
-rw-r--r--src/mame/includes/megasys1.h1
-rw-r--r--src/mame/includes/megazone.h2
-rw-r--r--src/mame/includes/mermaid.h1
-rw-r--r--src/mame/includes/metlclsh.h2
-rw-r--r--src/mame/includes/mexico86.h1
-rw-r--r--src/mame/includes/micro3d.h1
-rw-r--r--src/mame/includes/micronic.h1
-rw-r--r--src/mame/includes/midtunit.h1
-rw-r--r--src/mame/includes/midvunit.h1
-rw-r--r--src/mame/includes/midyunit.h1
-rw-r--r--src/mame/includes/midzeus.h1
-rw-r--r--src/mame/includes/mikie.h2
-rw-r--r--src/mame/includes/mikromik.h1
-rw-r--r--src/mame/includes/mitchell.h1
-rw-r--r--src/mame/includes/mjkjidai.h1
-rw-r--r--src/mame/includes/model1.h1
-rw-r--r--src/mame/includes/model2.h1
-rw-r--r--src/mame/includes/model3.h1
-rw-r--r--src/mame/includes/momoko.h2
-rw-r--r--src/mame/includes/moo.h1
-rw-r--r--src/mame/includes/mouser.h2
-rw-r--r--src/mame/includes/mpu4.h1
-rw-r--r--src/mame/includes/mrdo.h2
-rw-r--r--src/mame/includes/mrflea.h1
-rw-r--r--src/mame/includes/mrjong.h2
-rw-r--r--src/mame/includes/ms32.h1
-rw-r--r--src/mame/includes/msisaac.h1
-rw-r--r--src/mame/includes/mugsmash.h1
-rw-r--r--src/mame/includes/multfish.h1
-rw-r--r--src/mame/includes/munchmo.h1
-rw-r--r--src/mame/includes/mustache.h1
-rw-r--r--src/mame/includes/mystston.h1
-rw-r--r--src/mame/includes/mz700.h1
-rw-r--r--src/mame/includes/n8080.h1
-rw-r--r--src/mame/includes/namcona1.h1
-rw-r--r--src/mame/includes/namcos1.h1
-rw-r--r--src/mame/includes/namcos2.h1
-rw-r--r--src/mame/includes/namcos22.h1
-rw-r--r--src/mame/includes/namcos86.h1
-rw-r--r--src/mame/includes/naughtyb.h1
-rw-r--r--src/mame/includes/nbmj8688.h1
-rw-r--r--src/mame/includes/nbmj8891.h1
-rw-r--r--src/mame/includes/nbmj8900.h1
-rw-r--r--src/mame/includes/nbmj8991.h1
-rw-r--r--src/mame/includes/nbmj9195.h1
-rw-r--r--src/mame/includes/nc.h1
-rw-r--r--src/mame/includes/nemesis.h1
-rw-r--r--src/mame/includes/neogeo.h1
-rw-r--r--src/mame/includes/newbrain.h1
-rw-r--r--src/mame/includes/ninjakd2.h1
-rw-r--r--src/mame/includes/ninjaw.h1
-rw-r--r--src/mame/includes/nitedrvr.h1
-rw-r--r--src/mame/includes/niyanpai.h1
-rw-r--r--src/mame/includes/nmk16.h1
-rw-r--r--src/mame/includes/norautp.h1
-rw-r--r--src/mame/includes/nova2001.h3
-rw-r--r--src/mame/includes/novagbase.h1
-rw-r--r--src/mame/includes/nycaptor.h1
-rw-r--r--src/mame/includes/ohmygod.h2
-rw-r--r--src/mame/includes/ojankohs.h1
-rw-r--r--src/mame/includes/oneshot.h2
-rw-r--r--src/mame/includes/orbit.h1
-rw-r--r--src/mame/includes/orion.h1
-rw-r--r--src/mame/includes/osborne1.h1
-rw-r--r--src/mame/includes/osi.h1
-rw-r--r--src/mame/includes/othunder.h1
-rw-r--r--src/mame/includes/p2000t.h1
-rw-r--r--src/mame/includes/pacland.h1
-rw-r--r--src/mame/includes/pacman.h1
-rw-r--r--src/mame/includes/pandoras.h2
-rw-r--r--src/mame/includes/paradise.h1
-rw-r--r--src/mame/includes/pastelg.h1
-rw-r--r--src/mame/includes/pbaction.h1
-rw-r--r--src/mame/includes/pc1251.h1
-rw-r--r--src/mame/includes/pc1401.h1
-rw-r--r--src/mame/includes/pc1403.h1
-rw-r--r--src/mame/includes/pc4.h2
-rw-r--r--src/mame/includes/pc6001.h1
-rw-r--r--src/mame/includes/pc8401a.h1
-rw-r--r--src/mame/includes/pc9801.h1
-rw-r--r--src/mame/includes/pcktgal.h1
-rw-r--r--src/mame/includes/pcw.h1
-rw-r--r--src/mame/includes/pcw16.h1
-rw-r--r--src/mame/includes/pdp1.h1
-rw-r--r--src/mame/includes/pgm.h1
-rw-r--r--src/mame/includes/pgm2.h1
-rw-r--r--src/mame/includes/phoenix.h1
-rw-r--r--src/mame/includes/pingpong.h1
-rw-r--r--src/mame/includes/pirates.h1
-rw-r--r--src/mame/includes/pitnrun.h3
-rw-r--r--src/mame/includes/pk8000.h3
-rw-r--r--src/mame/includes/pk8020.h1
-rw-r--r--src/mame/includes/pktgaldx.h1
-rw-r--r--src/mame/includes/playch10.h1
-rw-r--r--src/mame/includes/playmark.h1
-rw-r--r--src/mame/includes/plygonet.h1
-rw-r--r--src/mame/includes/pmd85.h1
-rw-r--r--src/mame/includes/pocketc.h2
-rw-r--r--src/mame/includes/pokechmp.h1
-rw-r--r--src/mame/includes/polepos.h1
-rw-r--r--src/mame/includes/policetr.h1
-rw-r--r--src/mame/includes/polyplay.h1
-rw-r--r--src/mame/includes/poolshrk.h1
-rw-r--r--src/mame/includes/pooyan.h3
-rw-r--r--src/mame/includes/popeye.h1
-rw-r--r--src/mame/includes/portrait.h1
-rw-r--r--src/mame/includes/powerins.h1
-rw-r--r--src/mame/includes/pp01.h1
-rw-r--r--src/mame/includes/prehisle.h1
-rw-r--r--src/mame/includes/psikyo.h1
-rw-r--r--src/mame/includes/psikyo4.h1
-rw-r--r--src/mame/includes/psikyosh.h1
-rw-r--r--src/mame/includes/psion.h1
-rw-r--r--src/mame/includes/psychic5.h1
-rw-r--r--src/mame/includes/punchout.h1
-rw-r--r--src/mame/includes/px8.h1
-rw-r--r--src/mame/includes/qdrmfgp.h1
-rw-r--r--src/mame/includes/quizdna.h3
-rw-r--r--src/mame/includes/radio86.h1
-rw-r--r--src/mame/includes/raiden.h1
-rw-r--r--src/mame/includes/raiden2.h1
-rw-r--r--src/mame/includes/rallyx.h1
-rw-r--r--src/mame/includes/rbisland.h1
-rw-r--r--src/mame/includes/realbrk.h1
-rw-r--r--src/mame/includes/redclash.h1
-rw-r--r--src/mame/includes/retofinv.h2
-rw-r--r--src/mame/includes/rmnimbus.h1
-rw-r--r--src/mame/includes/rockrage.h1
-rw-r--r--src/mame/includes/rocnrope.h3
-rw-r--r--src/mame/includes/rohga.h1
-rw-r--r--src/mame/includes/rollrace.h3
-rw-r--r--src/mame/includes/route16.h1
-rw-r--r--src/mame/includes/rpunch.h1
-rw-r--r--src/mame/includes/runaway.h2
-rw-r--r--src/mame/includes/rungun.h1
-rw-r--r--src/mame/includes/samcoupe.h1
-rw-r--r--src/mame/includes/saturn.h1
-rw-r--r--src/mame/includes/sauro.h1
-rw-r--r--src/mame/includes/sbasketb.h1
-rw-r--r--src/mame/includes/sbugger.h3
-rw-r--r--src/mame/includes/scotrsht.h1
-rw-r--r--src/mame/includes/scramble.h1
-rw-r--r--src/mame/includes/sderby.h3
-rw-r--r--src/mame/includes/segag80r.h1
-rw-r--r--src/mame/includes/segas24.h1
-rw-r--r--src/mame/includes/segas32.h1
-rw-r--r--src/mame/includes/segaxbd.h1
-rw-r--r--src/mame/includes/seibuspi.h1
-rw-r--r--src/mame/includes/seicross.h1
-rw-r--r--src/mame/includes/senjyo.h1
-rw-r--r--src/mame/includes/seta.h1
-rw-r--r--src/mame/includes/seta2.h1
-rw-r--r--src/mame/includes/sf.h1
-rw-r--r--src/mame/includes/shadfrce.h1
-rw-r--r--src/mame/includes/shangha3.h1
-rw-r--r--src/mame/includes/shangkid.h1
-rw-r--r--src/mame/includes/shaolins.h1
-rw-r--r--src/mame/includes/shisen.h1
-rw-r--r--src/mame/includes/shootout.h1
-rw-r--r--src/mame/includes/sidearms.h1
-rw-r--r--src/mame/includes/sidepckt.h1
-rw-r--r--src/mame/includes/silkroad.h1
-rw-r--r--src/mame/includes/simpl156.h1
-rw-r--r--src/mame/includes/skydiver.h1
-rw-r--r--src/mame/includes/skyfox.h1
-rw-r--r--src/mame/includes/skykid.h1
-rw-r--r--src/mame/includes/skyraid.h1
-rw-r--r--src/mame/includes/slapfght.h1
-rw-r--r--src/mame/includes/slapshot.h1
-rw-r--r--src/mame/includes/snk.h1
-rw-r--r--src/mame/includes/snk6502.h1
-rw-r--r--src/mame/includes/snookr10.h3
-rw-r--r--src/mame/includes/snowbros.h1
-rw-r--r--src/mame/includes/solomon.h1
-rw-r--r--src/mame/includes/sonson.h2
-rw-r--r--src/mame/includes/spbactn.h1
-rw-r--r--src/mame/includes/spcforce.h2
-rw-r--r--src/mame/includes/spdodgeb.h1
-rw-r--r--src/mame/includes/special.h1
-rw-r--r--src/mame/includes/spectrum.h1
-rw-r--r--src/mame/includes/speedatk.h2
-rw-r--r--src/mame/includes/speedbal.h3
-rw-r--r--src/mame/includes/speedspn.h1
-rw-r--r--src/mame/includes/spiders.h1
-rw-r--r--src/mame/includes/splash.h1
-rw-r--r--src/mame/includes/sprint2.h1
-rw-r--r--src/mame/includes/sprint4.h1
-rw-r--r--src/mame/includes/sprint8.h1
-rw-r--r--src/mame/includes/spy.h1
-rw-r--r--src/mame/includes/srmp2.h1
-rw-r--r--src/mame/includes/srumbler.h1
-rw-r--r--src/mame/includes/sshangha.h1
-rw-r--r--src/mame/includes/sslam.h1
-rw-r--r--src/mame/includes/ssozumo.h2
-rw-r--r--src/mame/includes/sspeedr.h3
-rw-r--r--src/mame/includes/ssrj.h3
-rw-r--r--src/mame/includes/ssv.h1
-rw-r--r--src/mame/includes/ssystem3.h1
-rw-r--r--src/mame/includes/stactics.h1
-rw-r--r--src/mame/includes/starcrus.h2
-rw-r--r--src/mame/includes/starshp1.h1
-rw-r--r--src/mame/includes/stlforce.h1
-rw-r--r--src/mame/includes/sub.h1
-rw-r--r--src/mame/includes/subs.h1
-rw-r--r--src/mame/includes/suna16.h1
-rw-r--r--src/mame/includes/suna8.h1
-rw-r--r--src/mame/includes/super80.h1
-rw-r--r--src/mame/includes/superchs.h2
-rw-r--r--src/mame/includes/superqix.h1
-rw-r--r--src/mame/includes/suprloco.h1
-rw-r--r--src/mame/includes/suprnova.h2
-rw-r--r--src/mame/includes/suprridr.h1
-rw-r--r--src/mame/includes/surpratk.h1
-rw-r--r--src/mame/includes/svision.h1
-rw-r--r--src/mame/includes/system1.h1
-rw-r--r--src/mame/includes/tagteam.h1
-rw-r--r--src/mame/includes/tail2nos.h1
-rw-r--r--src/mame/includes/taito_b.h1
-rw-r--r--src/mame/includes/taito_f2.h1
-rw-r--r--src/mame/includes/taito_f3.h1
-rw-r--r--src/mame/includes/taito_h.h1
-rw-r--r--src/mame/includes/taito_l.h1
-rw-r--r--src/mame/includes/taito_o.h1
-rw-r--r--src/mame/includes/taitoair.h1
-rw-r--r--src/mame/includes/taitojc.h1
-rw-r--r--src/mame/includes/taitosj.h1
-rw-r--r--src/mame/includes/tandy2k.h1
-rw-r--r--src/mame/includes/tank8.h1
-rw-r--r--src/mame/includes/tankbatt.h3
-rw-r--r--src/mame/includes/tankbust.h3
-rw-r--r--src/mame/includes/targeth.h1
-rw-r--r--src/mame/includes/tatsumi.h1
-rw-r--r--src/mame/includes/taxidriv.h3
-rw-r--r--src/mame/includes/tbowl.h1
-rw-r--r--src/mame/includes/tceptor.h1
-rw-r--r--src/mame/includes/tecmo.h1
-rw-r--r--src/mame/includes/tecmo16.h1
-rw-r--r--src/mame/includes/tecmosys.h1
-rw-r--r--src/mame/includes/tehkanwc.h1
-rw-r--r--src/mame/includes/tek405x.h2
-rw-r--r--src/mame/includes/terracre.h1
-rw-r--r--src/mame/includes/tetrisp2.h1
-rw-r--r--src/mame/includes/thedeep.h1
-rw-r--r--src/mame/includes/thepit.h3
-rw-r--r--src/mame/includes/thief.h1
-rw-r--r--src/mame/includes/thomson.h1
-rw-r--r--src/mame/includes/thoop2.h1
-rw-r--r--src/mame/includes/thunderx.h1
-rw-r--r--src/mame/includes/ti85.h1
-rw-r--r--src/mame/includes/ti89.h1
-rw-r--r--src/mame/includes/tiamc1.h1
-rw-r--r--src/mame/includes/tigeroad.h2
-rw-r--r--src/mame/includes/tiki100.h1
-rw-r--r--src/mame/includes/timelimt.h2
-rw-r--r--src/mame/includes/timeplt.h1
-rw-r--r--src/mame/includes/tmnt.h1
-rw-r--r--src/mame/includes/tnzs.h1
-rw-r--r--src/mame/includes/toaplan1.h1
-rw-r--r--src/mame/includes/toaplan2.h1
-rw-r--r--src/mame/includes/toki.h1
-rw-r--r--src/mame/includes/tp84.h1
-rw-r--r--src/mame/includes/trackfld.h1
-rw-r--r--src/mame/includes/travrusa.h3
-rw-r--r--src/mame/includes/triplhnt.h1
-rw-r--r--src/mame/includes/trs80.h1
-rw-r--r--src/mame/includes/trs80m2.h1
-rw-r--r--src/mame/includes/truco.h1
-rw-r--r--src/mame/includes/trucocl.h2
-rw-r--r--src/mame/includes/tryout.h1
-rw-r--r--src/mame/includes/tsamurai.h1
-rw-r--r--src/mame/includes/tubep.h1
-rw-r--r--src/mame/includes/tumbleb.h1
-rw-r--r--src/mame/includes/tunhunt.h1
-rw-r--r--src/mame/includes/turbo.h1
-rw-r--r--src/mame/includes/tutankhm.h1
-rw-r--r--src/mame/includes/twin16.h1
-rw-r--r--src/mame/includes/twincobr.h1
-rw-r--r--src/mame/includes/tx0.h1
-rw-r--r--src/mame/includes/tx1.h1
-rw-r--r--src/mame/includes/ultratnk.h1
-rw-r--r--src/mame/includes/undrfire.h1
-rw-r--r--src/mame/includes/unico.h1
-rw-r--r--src/mame/includes/usgames.h3
-rw-r--r--src/mame/includes/ut88.h1
-rw-r--r--src/mame/includes/v1050.h1
-rw-r--r--src/mame/includes/vaportra.h1
-rw-r--r--src/mame/includes/vastar.h3
-rw-r--r--src/mame/includes/vball.h1
-rw-r--r--src/mame/includes/vc4000.h1
-rw-r--r--src/mame/includes/vector06.h1
-rw-r--r--src/mame/includes/vendetta.h1
-rw-r--r--src/mame/includes/victory.h1
-rw-r--r--src/mame/includes/videopin.h1
-rw-r--r--src/mame/includes/vigilant.h1
-rw-r--r--src/mame/includes/vixen.h1
-rw-r--r--src/mame/includes/vtech2.h1
-rw-r--r--src/mame/includes/vulgus.h2
-rw-r--r--src/mame/includes/warpwarp.h1
-rw-r--r--src/mame/includes/warriorb.h1
-rw-r--r--src/mame/includes/wc90.h1
-rw-r--r--src/mame/includes/wc90b.h1
-rw-r--r--src/mame/includes/wecleman.h1
-rw-r--r--src/mame/includes/wgp.h1
-rw-r--r--src/mame/includes/williams.h1
-rw-r--r--src/mame/includes/wiping.h3
-rw-r--r--src/mame/includes/witch.h1
-rw-r--r--src/mame/includes/wiz.h1
-rw-r--r--src/mame/includes/wolfpack.h1
-rw-r--r--src/mame/includes/wrally.h1
-rw-r--r--src/mame/includes/wswan.h1
-rw-r--r--src/mame/includes/wwfsstar.h1
-rw-r--r--src/mame/includes/x07.h1
-rw-r--r--src/mame/includes/x1.h1
-rw-r--r--src/mame/includes/x68k.h1
-rw-r--r--src/mame/includes/xain.h1
-rw-r--r--src/mame/includes/xavix.h1
-rw-r--r--src/mame/includes/xerox820.h1
-rw-r--r--src/mame/includes/xexex.h1
-rw-r--r--src/mame/includes/xorworld.h2
-rw-r--r--src/mame/includes/xxmissio.h3
-rw-r--r--src/mame/includes/xyonix.h3
-rw-r--r--src/mame/includes/yiear.h1
-rw-r--r--src/mame/includes/yunsun16.h1
-rw-r--r--src/mame/includes/yunsung8.h1
-rw-r--r--src/mame/includes/z88.h1
-rw-r--r--src/mame/includes/zac2650.h1
-rw-r--r--src/mame/includes/zaccaria.h1
-rw-r--r--src/mame/includes/zaxxon.h1
-rw-r--r--src/mame/includes/zodiack.h1
-rw-r--r--src/mame/includes/zorba.h2
-rw-r--r--src/mame/includes/zx.h1
-rw-r--r--src/mame/machine/atarigen.h1
-rw-r--r--src/mame/machine/inder_vid.h1
-rw-r--r--src/mame/machine/mega32x.h1
-rw-r--r--src/mame/machine/mmboard.h1
-rw-r--r--src/mame/machine/model1io2.h1
-rw-r--r--src/mame/machine/segaic16.h1
-rw-r--r--src/mame/machine/st0016.cpp1
-rw-r--r--src/mame/video/733_asr.h1
-rw-r--r--src/mame/video/911_vdt.h1
-rw-r--r--src/mame/video/abc1600.h1
-rw-r--r--src/mame/video/agat7.h1
-rw-r--r--src/mame/video/airraid_dev.h1
-rw-r--r--src/mame/video/apollo.cpp1
-rw-r--r--src/mame/video/apple2.h1
-rw-r--r--src/mame/video/bfm_adr2.cpp1
-rw-r--r--src/mame/video/bfm_dm01.h1
-rw-r--r--src/mame/video/decocomn.h2
-rw-r--r--src/mame/video/gamate.h2
-rw-r--r--src/mame/video/gic.h2
-rw-r--r--src/mame/video/igs017_igs031.h1
-rw-r--r--src/mame/video/jalblend.h2
-rw-r--r--src/mame/video/k007121.h2
-rw-r--r--src/mame/video/k007420.h2
-rw-r--r--src/mame/video/k053936.h2
-rw-r--r--src/mame/video/k054338.h1
-rw-r--r--src/mame/video/k1ge.h2
-rw-r--r--src/mame/video/kaneko_grap2.h2
-rw-r--r--src/mame/video/pc090oj.h2
-rw-r--r--src/mame/video/pc_t1t.h1
-rw-r--r--src/mame/video/pcd.h1
-rw-r--r--src/mame/video/stfight_dev.h3
-rw-r--r--src/mame/video/tc0100scn.h2
-rw-r--r--src/mame/video/tc0110pcr.h2
-rw-r--r--src/mame/video/tecmo_mix.h2
-rw-r--r--src/mame/video/tia.h1
-rw-r--r--src/mame/video/vtvideo.h2
1377 files changed, 1513 insertions, 11 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"
diff --git a/src/mame/etc/korgm1.cpp b/src/mame/etc/korgm1.cpp
index b116030ebaf..24f774e068d 100644
--- a/src/mame/etc/korgm1.cpp
+++ b/src/mame/etc/korgm1.cpp
@@ -16,6 +16,7 @@
#include "cpu/nec/nec.h"
#include "machine/cxd1095.h"
//#include "sound/ay8910.h"
+#include "emupal.h"
#define MAIN_CLOCK XTAL(16'000'000) // Unknown clock
diff --git a/src/mame/etc/template_driver.cpp b/src/mame/etc/template_driver.cpp
index f2a1dbb2f23..d1128b02942 100644
--- a/src/mame/etc/template_driver.cpp
+++ b/src/mame/etc/template_driver.cpp
@@ -10,6 +10,7 @@ Template for skeleton drivers
#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/includes/1942.h b/src/mame/includes/1942.h
index 0d9e2a06e77..5f867b403ca 100644
--- a/src/mame/includes/1942.h
+++ b/src/mame/includes/1942.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
+#include "emupal.h"
class _1942_state : public driver_device
{
diff --git a/src/mame/includes/1943.h b/src/mame/includes/1943.h
index 481f1071089..7efcb5320ab 100644
--- a/src/mame/includes/1943.h
+++ b/src/mame/includes/1943.h
@@ -6,6 +6,8 @@
***************************************************************************/
+#include "emupal.h"
+
class _1943_state : public driver_device
{
public:
diff --git a/src/mame/includes/40love.h b/src/mame/includes/40love.h
index 0a7213d8149..c7319a427e3 100644
--- a/src/mame/includes/40love.h
+++ b/src/mame/includes/40love.h
@@ -6,6 +6,7 @@
#include "sound/msm5232.h"
#include "sound/ay8910.h"
#include "sound/ta7630.h"
+#include "emupal.h"
class fortyl_state : public driver_device
{
diff --git a/src/mame/includes/4enraya.h b/src/mame/includes/4enraya.h
index 02510082292..3778260c751 100644
--- a/src/mame/includes/4enraya.h
+++ b/src/mame/includes/4enraya.h
@@ -12,6 +12,7 @@
#pragma once
#include "sound/ay8910.h"
+#include "emupal.h"
class _4enraya_state : public driver_device
{
diff --git a/src/mame/includes/8080bw.h b/src/mame/includes/8080bw.h
index 0ed578644b3..51ae8d05618 100644
--- a/src/mame/includes/8080bw.h
+++ b/src/mame/includes/8080bw.h
@@ -18,6 +18,7 @@
#include "sound/sn76477.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/abc80.h b/src/mame/includes/abc80.h
index 996eb7c99a8..a5b3b6e5988 100644
--- a/src/mame/includes/abc80.h
+++ b/src/mame/includes/abc80.h
@@ -25,6 +25,7 @@
#include "machine/z80pio.h"
#include "sound/sn76477.h"
#include "sound/wave.h"
+#include "emupal.h"
#define ABC80_HTOTAL 384
#define ABC80_HBEND 30
diff --git a/src/mame/includes/abc80x.h b/src/mame/includes/abc80x.h
index c3f61f25cbe..6dc49d121e0 100644
--- a/src/mame/includes/abc80x.h
+++ b/src/mame/includes/abc80x.h
@@ -23,6 +23,7 @@
#include "sound/discrete.h"
#include "video/mc6845.h"
#include "video/saa5050.h"
+#include "emupal.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/includes/ac1.h b/src/mame/includes/ac1.h
index e5ef90ce2d1..ec7c616a69f 100644
--- a/src/mame/includes/ac1.h
+++ b/src/mame/includes/ac1.h
@@ -11,6 +11,7 @@
#include "machine/z80pio.h"
#include "imagedev/cassette.h"
+#include "emupal.h"
class ac1_state : public driver_device
{
diff --git a/src/mame/includes/advision.h b/src/mame/includes/advision.h
index 1a574382b1a..1063d455b5c 100644
--- a/src/mame/includes/advision.h
+++ b/src/mame/includes/advision.h
@@ -12,6 +12,7 @@
#include "sound/dac.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
#define I8048_TAG "i8048"
diff --git a/src/mame/includes/aeroboto.h b/src/mame/includes/aeroboto.h
index edbe2087dd4..68f284179bc 100644
--- a/src/mame/includes/aeroboto.h
+++ b/src/mame/includes/aeroboto.h
@@ -6,6 +6,8 @@
***************************************************************************/
+#include "emupal.h"
+
class aeroboto_state : public driver_device
{
public:
diff --git a/src/mame/includes/aerofgt.h b/src/mame/includes/aerofgt.h
index 886d7db0a8f..b076d4d5b08 100644
--- a/src/mame/includes/aerofgt.h
+++ b/src/mame/includes/aerofgt.h
@@ -6,6 +6,7 @@
#include "video/vsystem_spr2.h"
#include "sound/okim6295.h"
#include "sound/upd7759.h"
+#include "emupal.h"
class aerofgt_state : public driver_device
{
diff --git a/src/mame/includes/airbustr.h b/src/mame/includes/airbustr.h
index 05e058c9141..c40c357f4a3 100644
--- a/src/mame/includes/airbustr.h
+++ b/src/mame/includes/airbustr.h
@@ -10,6 +10,7 @@
#include "machine/timer.h"
#include "machine/watchdog.h"
#include "video/kan_pand.h"
+#include "emupal.h"
#include "screen.h"
class airbustr_state : public driver_device
diff --git a/src/mame/includes/ajax.h b/src/mame/includes/ajax.h
index b4af0d7a4cd..2c045b4ee50 100644
--- a/src/mame/includes/ajax.h
+++ b/src/mame/includes/ajax.h
@@ -8,6 +8,7 @@
#include "video/k051960.h"
#include "video/k051316.h"
#include "video/konami_helper.h"
+#include "emupal.h"
class ajax_state : public driver_device
{
diff --git a/src/mame/includes/alesis.h b/src/mame/includes/alesis.h
index 8900d4ebbe9..aefb7ce31af 100644
--- a/src/mame/includes/alesis.h
+++ b/src/mame/includes/alesis.h
@@ -16,6 +16,7 @@
#include "sound/dac.h"
#include "video/hd44780.h"
#include "imagedev/cassette.h"
+#include "emupal.h"
#include "rendlay.h"
#define MCFG_ALESIS_DM3AG_ADD(_tag,_clock) \
diff --git a/src/mame/includes/alpha68k.h b/src/mame/includes/alpha68k.h
index 6a31cfc0fdc..bff6afd4b2d 100644
--- a/src/mame/includes/alpha68k.h
+++ b/src/mame/includes/alpha68k.h
@@ -8,6 +8,7 @@
#include "machine/74259.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
class alpha68k_state : public driver_device
{
diff --git a/src/mame/includes/amiga.h b/src/mame/includes/amiga.h
index 65a39cbd938..c56ec0290f0 100644
--- a/src/mame/includes/amiga.h
+++ b/src/mame/includes/amiga.h
@@ -25,6 +25,7 @@ Ernesto Corvi & Mariusz Wojcieszek
#include "machine/i2cmem.h"
#include "machine/8364_paula.h"
#include "video/amigaaga.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/ampoker2.h b/src/mame/includes/ampoker2.h
index f4fe5ede1a7..568409501f5 100644
--- a/src/mame/includes/ampoker2.h
+++ b/src/mame/includes/ampoker2.h
@@ -2,6 +2,7 @@
// copyright-holders:Roberto Fresca
#include "machine/watchdog.h"
+#include "emupal.h"
class ampoker2_state : public driver_device
{
diff --git a/src/mame/includes/amspdwy.h b/src/mame/includes/amspdwy.h
index 527ba9c9b61..429a3e4484d 100644
--- a/src/mame/includes/amspdwy.h
+++ b/src/mame/includes/amspdwy.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "sound/ym2151.h"
+#include "emupal.h"
#include "screen.h"
class amspdwy_state : public driver_device
diff --git a/src/mame/includes/amstrad.h b/src/mame/includes/amstrad.h
index f7d16643988..5394dda5d1c 100644
--- a/src/mame/includes/amstrad.h
+++ b/src/mame/includes/amstrad.h
@@ -43,6 +43,7 @@
#include "bus/centronics/digiblst.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/apexc.h b/src/mame/includes/apexc.h
index 743dd545458..e7667a1e462 100644
--- a/src/mame/includes/apexc.h
+++ b/src/mame/includes/apexc.h
@@ -9,6 +9,7 @@
#include "emu.h"
#include "cpu/apexc/apexc.h"
#include "machine/apexc.h"
+#include "emupal.h"
#include "screen.h"
class apexc_state : public driver_device
diff --git a/src/mame/includes/apple2.h b/src/mame/includes/apple2.h
index b88d02703ab..b04e26a78a0 100644
--- a/src/mame/includes/apple2.h
+++ b/src/mame/includes/apple2.h
@@ -28,6 +28,7 @@
#include "bus/a2bus/a2eauxslot.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/apple2gs.h b/src/mame/includes/apple2gs.h
index 76252a8459d..edce53aad21 100644
--- a/src/mame/includes/apple2gs.h
+++ b/src/mame/includes/apple2gs.h
@@ -19,6 +19,7 @@
#include "cpu/g65816/g65816.h"
#include "cpu/m6502/m5074x.h"
#include "machine/z80scc.h"
+#include "emupal.h"
#define ADBMICRO_TAG "adbmicro"
#define SCC_TAG "scc"
diff --git a/src/mame/includes/apple3.h b/src/mame/includes/apple3.h
index b35a7c33665..5e6e342b266 100644
--- a/src/mame/includes/apple3.h
+++ b/src/mame/includes/apple3.h
@@ -23,6 +23,7 @@
#include "machine/wozfdc.h"
#include "imagedev/floppy.h"
#include "formats/flopimg.h"
+#include "emupal.h"
#include "screen.h"
#define VAR_VM0 0x0001
diff --git a/src/mame/includes/appoooh.h b/src/mame/includes/appoooh.h
index c7057fa576c..3abda1cc9ac 100644
--- a/src/mame/includes/appoooh.h
+++ b/src/mame/includes/appoooh.h
@@ -6,6 +6,7 @@
#pragma once
#include "sound/msm5205.h"
+#include "emupal.h"
class appoooh_state : public driver_device
{
diff --git a/src/mame/includes/aquarium.h b/src/mame/includes/aquarium.h
index 89a227198b4..cce419c1a37 100644
--- a/src/mame/includes/aquarium.h
+++ b/src/mame/includes/aquarium.h
@@ -5,6 +5,7 @@
#include "machine/mb3773.h"
#include "sound/okim6295.h"
#include "video/excellent_spr.h"
+#include "emupal.h"
#include "screen.h"
class aquarium_state : public driver_device
diff --git a/src/mame/includes/aquarius.h b/src/mame/includes/aquarius.h
index 5aaaf21bcfc..658cf8f0874 100644
--- a/src/mame/includes/aquarius.h
+++ b/src/mame/includes/aquarius.h
@@ -21,6 +21,7 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/arabian.h b/src/mame/includes/arabian.h
index f09e3b6a1ef..2f438baf15d 100644
--- a/src/mame/includes/arabian.h
+++ b/src/mame/includes/arabian.h
@@ -8,6 +8,8 @@
***************************************************************************/
+#include "emupal.h"
+
class arabian_state : public driver_device
{
public:
diff --git a/src/mame/includes/arcadia.h b/src/mame/includes/arcadia.h
index 97462622764..21ee2fcdb2e 100644
--- a/src/mame/includes/arcadia.h
+++ b/src/mame/includes/arcadia.h
@@ -16,6 +16,7 @@
#include "bus/arcadia/slot.h"
#include "bus/arcadia/rom.h"
+#include "emupal.h"
#include "screen.h"
// space vultures sprites above
diff --git a/src/mame/includes/archimds.h b/src/mame/includes/archimds.h
index 0ce568983a3..713d93c22bd 100644
--- a/src/mame/includes/archimds.h
+++ b/src/mame/includes/archimds.h
@@ -13,6 +13,7 @@
#include "sound/dac.h"
#include "machine/i2cmem.h"
#include "machine/wd_fdc.h"
+#include "emupal.h"
#include "screen.h"
// interrupt definitions. these are for the real Archimedes computer - arcade
diff --git a/src/mame/includes/argus.h b/src/mame/includes/argus.h
index c111396fdb6..dc84aacece7 100644
--- a/src/mame/includes/argus.h
+++ b/src/mame/includes/argus.h
@@ -3,6 +3,7 @@
#include "machine/timer.h"
#include "video/jalblend.h"
+#include "emupal.h"
#include "screen.h"
class argus_state : public driver_device
diff --git a/src/mame/includes/arkanoid.h b/src/mame/includes/arkanoid.h
index 3dc2456667d..68456e64ad6 100644
--- a/src/mame/includes/arkanoid.h
+++ b/src/mame/includes/arkanoid.h
@@ -6,6 +6,7 @@
#pragma once
#include "machine/taito68705interface.h"
+#include "emupal.h"
/* This it the best way to allow game specific kludges until the system is fully understood */
enum {
diff --git a/src/mame/includes/armedf.h b/src/mame/includes/armedf.h
index b76b14045d6..8b68e53dcf2 100644
--- a/src/mame/includes/armedf.h
+++ b/src/mame/includes/armedf.h
@@ -4,6 +4,7 @@
#include "machine/nb1414m4.h"
#include "machine/gen_latch.h"
#include "video/bufsprite.h"
+#include "emupal.h"
class armedf_state : public driver_device
{
diff --git a/src/mame/includes/astrocde.h b/src/mame/includes/astrocde.h
index 2b747ffdda8..e522626d6cb 100644
--- a/src/mame/includes/astrocde.h
+++ b/src/mame/includes/astrocde.h
@@ -11,6 +11,7 @@
#include "sound/astrocde.h"
#include "sound/samples.h"
#include "sound/votrax.h"
+#include "emupal.h"
#include "screen.h"
#define ASTROCADE_CLOCK (XTAL(14'318'181)/2)
diff --git a/src/mame/includes/atari400.h b/src/mame/includes/atari400.h
index fa44262ca77..a6c81fe82db 100644
--- a/src/mame/includes/atari400.h
+++ b/src/mame/includes/atari400.h
@@ -19,6 +19,7 @@
#include "video/antic.h"
#include "video/gtia.h"
+#include "emupal.h"
#include "screen.h"
#include <algorithm>
diff --git a/src/mame/includes/atarifb.h b/src/mame/includes/atarifb.h
index 7a17f9e6777..e4bbc66eb05 100644
--- a/src/mame/includes/atarifb.h
+++ b/src/mame/includes/atarifb.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/atarist.h b/src/mame/includes/atarist.h
index 669556e449d..cdcfa2e21dc 100644
--- a/src/mame/includes/atarist.h
+++ b/src/mame/includes/atarist.h
@@ -20,6 +20,7 @@
#include "machine/wd_fdc.h"
#include "sound/ay8910.h"
#include "sound/lmc1992.h"
+#include "emupal.h"
#include "screen.h"
#define M68000_TAG "m68000"
diff --git a/src/mame/includes/aussiebyte.h b/src/mame/includes/aussiebyte.h
index ce4ecad9ef0..279624c5d86 100644
--- a/src/mame/includes/aussiebyte.h
+++ b/src/mame/includes/aussiebyte.h
@@ -31,6 +31,9 @@
#include "imagedev/snapquik.h"
+#include "emupal.h"
+
+
/***********************************************************
diff --git a/src/mame/includes/avigo.h b/src/mame/includes/avigo.h
index 7719682c7ab..f29810a6db5 100644
--- a/src/mame/includes/avigo.h
+++ b/src/mame/includes/avigo.h
@@ -22,6 +22,7 @@
#include "machine/rp5c01.h"
#include "machine/timer.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#define AVIGO_NUM_COLOURS 2
diff --git a/src/mame/includes/b2m.h b/src/mame/includes/b2m.h
index a27ef3d2545..008f3ed6b4e 100644
--- a/src/mame/includes/b2m.h
+++ b/src/mame/includes/b2m.h
@@ -18,6 +18,7 @@
#include "machine/wd_fdc.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
class b2m_state : public driver_device
{
diff --git a/src/mame/includes/bagman.h b/src/mame/includes/bagman.h
index 9d11df9a0e3..adc00f277d5 100644
--- a/src/mame/includes/bagman.h
+++ b/src/mame/includes/bagman.h
@@ -8,6 +8,7 @@
#include "machine/74259.h"
#include "sound/tms5110.h"
+#include "emupal.h"
class bagman_state : public driver_device
{
diff --git a/src/mame/includes/balsente.h b/src/mame/includes/balsente.h
index a467a2357ab..f897b45825d 100644
--- a/src/mame/includes/balsente.h
+++ b/src/mame/includes/balsente.h
@@ -13,6 +13,7 @@
#include "machine/x2212.h"
#include "machine/74259.h"
#include "sound/cem3394.h"
+#include "emupal.h"
#include "screen.h"
#define BALSENTE_MASTER_CLOCK (20000000)
diff --git a/src/mame/includes/bankp.h b/src/mame/includes/bankp.h
index 12e1c0f5527..d5838de2248 100644
--- a/src/mame/includes/bankp.h
+++ b/src/mame/includes/bankp.h
@@ -6,6 +6,8 @@
***************************************************************************/
+#include "emupal.h"
+
class bankp_state : public driver_device
{
public:
diff --git a/src/mame/includes/baraduke.h b/src/mame/includes/baraduke.h
index 796609ad172..86765cbb1af 100644
--- a/src/mame/includes/baraduke.h
+++ b/src/mame/includes/baraduke.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Manuel Abadia
#include "sound/namco.h"
+#include "emupal.h"
class baraduke_state : public driver_device
{
diff --git a/src/mame/includes/batman.h b/src/mame/includes/batman.h
index c0b06a71055..195dd53c1b0 100644
--- a/src/mame/includes/batman.h
+++ b/src/mame/includes/batman.h
@@ -13,6 +13,7 @@
#include "audio/atarijsa.h"
#include "video/atarimo.h"
#include "video/atarivad.h"
+#include "emupal.h"
#include "screen.h"
class batman_state : public driver_device
diff --git a/src/mame/includes/battlane.h b/src/mame/includes/battlane.h
index 9f7b71edf16..16116cb08e4 100644
--- a/src/mame/includes/battlane.h
+++ b/src/mame/includes/battlane.h
@@ -6,6 +6,8 @@
***************************************************************************/
+#include "emupal.h"
+
class battlane_state : public driver_device
{
public:
diff --git a/src/mame/includes/battlex.h b/src/mame/includes/battlex.h
index b759c516566..387a7b4471b 100644
--- a/src/mame/includes/battlex.h
+++ b/src/mame/includes/battlex.h
@@ -6,6 +6,8 @@
***************************************************************************/
+#include "emupal.h"
+
class battlex_state : public driver_device
{
public:
diff --git a/src/mame/includes/bbc.h b/src/mame/includes/bbc.h
index 1d81608cb24..c907323c1c7 100644
--- a/src/mame/includes/bbc.h
+++ b/src/mame/includes/bbc.h
@@ -42,6 +42,7 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#define RS232_TAG "rs232"
diff --git a/src/mame/includes/bigevglf.h b/src/mame/includes/bigevglf.h
index 8ff2e84e303..b5e56b13393 100644
--- a/src/mame/includes/bigevglf.h
+++ b/src/mame/includes/bigevglf.h
@@ -3,6 +3,7 @@
#include "sound/msm5232.h"
#include "machine/gen_latch.h"
#include "machine/taito68705interface.h"
+#include "emupal.h"
#include "screen.h"
class bigevglf_state : public driver_device
diff --git a/src/mame/includes/bigstrkb.h b/src/mame/includes/bigstrkb.h
index f815f8cc36e..84d069fd916 100644
--- a/src/mame/includes/bigstrkb.h
+++ b/src/mame/includes/bigstrkb.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
+
+#include "emupal.h"
+
class bigstrkb_state : public driver_device
{
public:
diff --git a/src/mame/includes/bionicc.h b/src/mame/includes/bionicc.h
index 59d597a61bf..8169e0ea7bc 100644
--- a/src/mame/includes/bionicc.h
+++ b/src/mame/includes/bionicc.h
@@ -12,6 +12,7 @@
#include "video/bufsprite.h"
#include "video/tigeroad_spr.h"
#include "cpu/mcs51/mcs51.h"
+#include "emupal.h"
class bionicc_state : public driver_device
{
diff --git a/src/mame/includes/bishi.h b/src/mame/includes/bishi.h
index 56e077620d9..ea02dd2559d 100644
--- a/src/mame/includes/bishi.h
+++ b/src/mame/includes/bishi.h
@@ -11,6 +11,7 @@
#include "video/k055555.h"
#include "video/k054338.h"
#include "video/konami_helper.h"
+#include "emupal.h"
#include "screen.h"
#define CPU_CLOCK (XTAL(24'000'000) / 2) /* 68000 clock */
diff --git a/src/mame/includes/bking.h b/src/mame/includes/bking.h
index 69fc79967b6..5a8300ee155 100644
--- a/src/mame/includes/bking.h
+++ b/src/mame/includes/bking.h
@@ -4,6 +4,7 @@
#include "machine/taito68705interface.h"
#include "machine/gen_latch.h"
#include "machine/input_merger.h"
+#include "emupal.h"
#include "screen.h"
class bking_state : public driver_device
diff --git a/src/mame/includes/bladestl.h b/src/mame/includes/bladestl.h
index 5bd25e7abcf..0af0d8c4a41 100644
--- a/src/mame/includes/bladestl.h
+++ b/src/mame/includes/bladestl.h
@@ -13,6 +13,7 @@
#include "video/k007342.h"
#include "video/k007420.h"
#include "video/k051733.h"
+#include "emupal.h"
class bladestl_state : public driver_device
{
diff --git a/src/mame/includes/blktiger.h b/src/mame/includes/blktiger.h
index 6ba10f35bad..712294c98fa 100644
--- a/src/mame/includes/blktiger.h
+++ b/src/mame/includes/blktiger.h
@@ -7,6 +7,7 @@
***************************************************************************/
#include "video/bufsprite.h"
+#include "emupal.h"
class blktiger_state : public driver_device
{
diff --git a/src/mame/includes/blmbycar.h b/src/mame/includes/blmbycar.h
index 8ceba7a8929..15daf03d5c5 100644
--- a/src/mame/includes/blmbycar.h
+++ b/src/mame/includes/blmbycar.h
@@ -6,6 +6,8 @@
***************************************************************************/
+#include "emupal.h"
+
class blmbycar_state : public driver_device
{
public:
diff --git a/src/mame/includes/blockout.h b/src/mame/includes/blockout.h
index be7f2d89c65..e842cde27a1 100644
--- a/src/mame/includes/blockout.h
+++ b/src/mame/includes/blockout.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class blockout_state : public driver_device
diff --git a/src/mame/includes/bloodbro.h b/src/mame/includes/bloodbro.h
index 218e84d7297..b7596f0d47a 100644
--- a/src/mame/includes/bloodbro.h
+++ b/src/mame/includes/bloodbro.h
@@ -2,6 +2,7 @@
// copyright-holders:Carlos A. Lozano
#include "audio/seibu.h"
#include "sound/3812intf.h"
+#include "emupal.h"
class bloodbro_state : public driver_device, protected seibu_sound_common
{
diff --git a/src/mame/includes/blueprnt.h b/src/mame/includes/blueprnt.h
index 6d23fc3ddab..37f9834e60f 100644
--- a/src/mame/includes/blueprnt.h
+++ b/src/mame/includes/blueprnt.h
@@ -7,6 +7,7 @@
***************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class blueprnt_state : public driver_device
{
diff --git a/src/mame/includes/bogeyman.h b/src/mame/includes/bogeyman.h
index 7db68e1878f..a20b299d859 100644
--- a/src/mame/includes/bogeyman.h
+++ b/src/mame/includes/bogeyman.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "sound/ay8910.h"
+#include "emupal.h"
class bogeyman_state : public driver_device
{
diff --git a/src/mame/includes/bombjack.h b/src/mame/includes/bombjack.h
index d75009faaf9..74e67b9fb60 100644
--- a/src/mame/includes/bombjack.h
+++ b/src/mame/includes/bombjack.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class bombjack_state : public driver_device
{
diff --git a/src/mame/includes/bottom9.h b/src/mame/includes/bottom9.h
index 4ccef0c3b33..f2813eaba65 100644
--- a/src/mame/includes/bottom9.h
+++ b/src/mame/includes/bottom9.h
@@ -10,6 +10,7 @@
#include "video/k051960.h"
#include "video/k051316.h"
#include "video/konami_helper.h"
+#include "emupal.h"
class bottom9_state : public driver_device
{
diff --git a/src/mame/includes/brkthru.h b/src/mame/includes/brkthru.h
index bd9a06bb99f..d979f1ca805 100644
--- a/src/mame/includes/brkthru.h
+++ b/src/mame/includes/brkthru.h
@@ -7,6 +7,7 @@
***************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class brkthru_state : public driver_device
{
diff --git a/src/mame/includes/bsktball.h b/src/mame/includes/bsktball.h
index 5d81556b962..497e83e4b4b 100644
--- a/src/mame/includes/bsktball.h
+++ b/src/mame/includes/bsktball.h
@@ -12,6 +12,7 @@
#include "machine/timer.h"
#include "sound/discrete.h"
+#include "emupal.h"
/* Discrete Sound Input Nodes */
#define BSKTBALL_NOTE_DATA NODE_01
diff --git a/src/mame/includes/btime.h b/src/mame/includes/btime.h
index 38af9ef7f05..b281c27f0e8 100644
--- a/src/mame/includes/btime.h
+++ b/src/mame/includes/btime.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "machine/input_merger.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class btime_state : public driver_device
diff --git a/src/mame/includes/btoads.h b/src/mame/includes/btoads.h
index 9a297c11200..66fe1f155fb 100644
--- a/src/mame/includes/btoads.h
+++ b/src/mame/includes/btoads.h
@@ -13,6 +13,7 @@
#include "video/tlc34076.h"
#include "sound/bsmt2000.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
class btoads_state : public driver_device
diff --git a/src/mame/includes/bublbobl.h b/src/mame/includes/bublbobl.h
index 1bf355da100..617ab7db620 100644
--- a/src/mame/includes/bublbobl.h
+++ b/src/mame/includes/bublbobl.h
@@ -10,6 +10,7 @@
#include "machine/gen_latch.h"
#include "sound/2203intf.h"
#include "sound/3526intf.h"
+#include "emupal.h"
#include "screen.h"
#include "machine/taito68705interface.h"
diff --git a/src/mame/includes/buggychl.h b/src/mame/includes/buggychl.h
index f0403fd50e6..48d4e2395ff 100644
--- a/src/mame/includes/buggychl.h
+++ b/src/mame/includes/buggychl.h
@@ -10,6 +10,7 @@
#include "sound/msm5232.h"
#include "sound/ta7630.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
class buggychl_state : public driver_device
diff --git a/src/mame/includes/busicom.h b/src/mame/includes/busicom.h
index cc60d1c9bb7..35fa114c122 100644
--- a/src/mame/includes/busicom.h
+++ b/src/mame/includes/busicom.h
@@ -13,6 +13,7 @@
#include "cpu/mcs40/mcs40.h"
#include "machine/timer.h"
+#include "emupal.h"
class busicom_state : public driver_device
{
diff --git a/src/mame/includes/bw12.h b/src/mame/includes/bw12.h
index 0bac015645b..c3fed54dc08 100644
--- a/src/mame/includes/bw12.h
+++ b/src/mame/includes/bw12.h
@@ -17,6 +17,7 @@
#include "machine/upd765.h"
#include "machine/z80dart.h"
#include "video/mc6845.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
#define Z80_TAG "ic35"
diff --git a/src/mame/includes/bw2.h b/src/mame/includes/bw2.h
index 0978af8c185..a41998a7f3d 100644
--- a/src/mame/includes/bw2.h
+++ b/src/mame/includes/bw2.h
@@ -15,6 +15,7 @@
#include "machine/ram.h"
#include "machine/wd_fdc.h"
#include "video/msm6255.h"
+#include "emupal.h"
#include "rendlay.h"
#define Z80_TAG "ic1"
diff --git a/src/mame/includes/bwing.h b/src/mame/includes/bwing.h
index 3d83f45ae7a..ae637a488a9 100644
--- a/src/mame/includes/bwing.h
+++ b/src/mame/includes/bwing.h
@@ -8,6 +8,7 @@
#include "machine/bankdev.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
#define BW_DEBUG 0
diff --git a/src/mame/includes/cabal.h b/src/mame/includes/cabal.h
index ec0a72e15d0..407ddfb11a0 100644
--- a/src/mame/includes/cabal.h
+++ b/src/mame/includes/cabal.h
@@ -2,6 +2,7 @@
// copyright-holders:Carlos A. Lozano
#include "audio/seibu.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class cabal_state : public driver_device
{
diff --git a/src/mame/includes/calomega.h b/src/mame/includes/calomega.h
index c6d286d3699..50936342a07 100644
--- a/src/mame/includes/calomega.h
+++ b/src/mame/includes/calomega.h
@@ -2,6 +2,7 @@
// copyright-holders:Roberto Fresca
#include "machine/6850acia.h"
#include "machine/clock.h"
+#include "emupal.h"
class calomega_state : public driver_device
{
diff --git a/src/mame/includes/canyon.h b/src/mame/includes/canyon.h
index 2b7d0f653dc..87a0a1f3d9f 100644
--- a/src/mame/includes/canyon.h
+++ b/src/mame/includes/canyon.h
@@ -13,6 +13,7 @@
#include "machine/74259.h"
#include "machine/watchdog.h"
#include "sound/discrete.h"
+#include "emupal.h"
/* Discrete Sound Input Nodes */
#define CANYON_MOTOR1_DATA NODE_01
diff --git a/src/mame/includes/carpolo.h b/src/mame/includes/carpolo.h
index 1f58c69ea62..e36fa4114d7 100644
--- a/src/mame/includes/carpolo.h
+++ b/src/mame/includes/carpolo.h
@@ -16,6 +16,7 @@
#include "machine/7474.h"
#include "machine/74148.h"
#include "machine/74153.h"
+#include "emupal.h"
class carpolo_state : public driver_device
{
diff --git a/src/mame/includes/cave.h b/src/mame/includes/cave.h
index e2f4722dbf7..ae62448eda4 100644
--- a/src/mame/includes/cave.h
+++ b/src/mame/includes/cave.h
@@ -16,6 +16,7 @@
#include "machine/nmk112.h"
#include "machine/timer.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
class cave_state : public driver_device
diff --git a/src/mame/includes/cbasebal.h b/src/mame/includes/cbasebal.h
index 59f3ad8f0ad..6c8ee6c88d5 100644
--- a/src/mame/includes/cbasebal.h
+++ b/src/mame/includes/cbasebal.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class cbasebal_state : public driver_device
{
public:
diff --git a/src/mame/includes/cbuster.h b/src/mame/includes/cbuster.h
index 57fc21ff301..bf95f66d9c7 100644
--- a/src/mame/includes/cbuster.h
+++ b/src/mame/includes/cbuster.h
@@ -11,6 +11,7 @@
#include "video/bufsprite.h"
#include "video/decospr.h"
#include "video/deco16ic.h"
+#include "emupal.h"
class cbuster_state : public driver_device
{
diff --git a/src/mame/includes/ccastles.h b/src/mame/includes/ccastles.h
index bdf158a7072..0bbf47be6c2 100644
--- a/src/mame/includes/ccastles.h
+++ b/src/mame/includes/ccastles.h
@@ -13,6 +13,7 @@
#include "cpu/m6502/m6502.h"
#include "machine/74259.h"
#include "machine/x2212.h"
+#include "emupal.h"
#include "screen.h"
class ccastles_state : public driver_device
diff --git a/src/mame/includes/cclimber.h b/src/mame/includes/cclimber.h
index 775273a2974..a3ef7beb4f5 100644
--- a/src/mame/includes/cclimber.h
+++ b/src/mame/includes/cclimber.h
@@ -4,6 +4,7 @@
#include "machine/74259.h"
#include "machine/gen_latch.h"
#include "machine/segacrpt_device.h"
+#include "emupal.h"
class cclimber_state : public driver_device
{
diff --git a/src/mame/includes/centiped.h b/src/mame/includes/centiped.h
index 2c2dcbf9f25..6cfc6df5509 100644
--- a/src/mame/includes/centiped.h
+++ b/src/mame/includes/centiped.h
@@ -9,6 +9,7 @@
#include "machine/eepromser.h"
#include "machine/timer.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
class centiped_state : public driver_device
diff --git a/src/mame/includes/cgc7900.h b/src/mame/includes/cgc7900.h
index 81d32ba4c66..a7675127f59 100644
--- a/src/mame/includes/cgc7900.h
+++ b/src/mame/includes/cgc7900.h
@@ -17,6 +17,7 @@
#include "machine/timer.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#define M68000_TAG "uh8"
diff --git a/src/mame/includes/chaknpop.h b/src/mame/includes/chaknpop.h
index 23409f2198f..91f55c92040 100644
--- a/src/mame/includes/chaknpop.h
+++ b/src/mame/includes/chaknpop.h
@@ -2,6 +2,7 @@
// copyright-holders:BUT
#include "machine/taito68705interface.h"
+#include "emupal.h"
class chaknpop_state : public driver_device
{
diff --git a/src/mame/includes/champbas.h b/src/mame/includes/champbas.h
index 33f79395076..1827a1d206f 100644
--- a/src/mame/includes/champbas.h
+++ b/src/mame/includes/champbas.h
@@ -13,6 +13,7 @@
#include "machine/alpha8201.h"
#include "machine/timer.h"
#include "machine/watchdog.h"
+#include "emupal.h"
class champbas_state : public driver_device
diff --git a/src/mame/includes/changela.h b/src/mame/includes/changela.h
index f2a4403277d..368b50e054a 100644
--- a/src/mame/includes/changela.h
+++ b/src/mame/includes/changela.h
@@ -3,6 +3,7 @@
#include "cpu/m6805/m68705.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/channelf.h b/src/mame/includes/channelf.h
index 145eaccf345..849d972f623 100644
--- a/src/mame/includes/channelf.h
+++ b/src/mame/includes/channelf.h
@@ -15,6 +15,8 @@
#include "bus/chanf/slot.h"
#include "bus/chanf/rom.h"
+#include "emupal.h"
+
class channelf_state : public driver_device
{
diff --git a/src/mame/includes/cheekyms.h b/src/mame/includes/cheekyms.h
index 6efa145b730..c4655c01398 100644
--- a/src/mame/includes/cheekyms.h
+++ b/src/mame/includes/cheekyms.h
@@ -12,6 +12,7 @@
#include "audio/cheekyms.h"
#include "sound/dac.h"
+#include "emupal.h"
#include "screen.h"
class cheekyms_state : public driver_device
diff --git a/src/mame/includes/chqflag.h b/src/mame/includes/chqflag.h
index 16d6d51164d..17d2d877379 100644
--- a/src/mame/includes/chqflag.h
+++ b/src/mame/includes/chqflag.h
@@ -11,6 +11,7 @@
#include "video/k051316.h"
#include "video/k051733.h"
#include "video/konami_helper.h"
+#include "emupal.h"
class chqflag_state : public driver_device
{
diff --git a/src/mame/includes/circus.h b/src/mame/includes/circus.h
index 326f5a294d6..c3e7ded2c73 100644
--- a/src/mame/includes/circus.h
+++ b/src/mame/includes/circus.h
@@ -4,6 +4,7 @@
#include "machine/timer.h"
#include "sound/discrete.h"
#include "sound/samples.h"
+#include "emupal.h"
class circus_state : public driver_device
{
diff --git a/src/mame/includes/circusc.h b/src/mame/includes/circusc.h
index fedc55362a2..7f64996a30a 100644
--- a/src/mame/includes/circusc.h
+++ b/src/mame/includes/circusc.h
@@ -9,6 +9,8 @@
#include "sound/dac.h"
#include "sound/sn76496.h"
#include "sound/discrete.h"
+#include "emupal.h"
+
class circusc_state : public driver_device
{
public:
diff --git a/src/mame/includes/cischeat.h b/src/mame/includes/cischeat.h
index aaecf218fbc..e549cfe5740 100644
--- a/src/mame/includes/cischeat.h
+++ b/src/mame/includes/cischeat.h
@@ -9,6 +9,7 @@
#include "machine/timer.h"
#include "machine/watchdog.h"
#include "video/ms1_tmap.h"
+#include "emupal.h"
#include "screen.h"
class cischeat_state : public driver_device
diff --git a/src/mame/includes/citycon.h b/src/mame/includes/citycon.h
index a45567b6c41..969c9ea58f6 100644
--- a/src/mame/includes/citycon.h
+++ b/src/mame/includes/citycon.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class citycon_state : public driver_device
{
public:
diff --git a/src/mame/includes/cloak.h b/src/mame/includes/cloak.h
index 2be02aaeb92..766ed157c4b 100644
--- a/src/mame/includes/cloak.h
+++ b/src/mame/includes/cloak.h
@@ -10,6 +10,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
class cloak_state : public driver_device
diff --git a/src/mame/includes/cloud9.h b/src/mame/includes/cloud9.h
index 75283a97faa..aaf24481d1f 100644
--- a/src/mame/includes/cloud9.h
+++ b/src/mame/includes/cloud9.h
@@ -13,6 +13,7 @@
#include "cpu/m6502/m6502.h"
#include "machine/74259.h"
#include "machine/x2212.h"
+#include "emupal.h"
#include "screen.h"
class cloud9_state : public driver_device
diff --git a/src/mame/includes/clshroad.h b/src/mame/includes/clshroad.h
index 6d8b89d6905..975abfbb12a 100644
--- a/src/mame/includes/clshroad.h
+++ b/src/mame/includes/clshroad.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Luca Elia
+
+#include "emupal.h"
+
class clshroad_state : public driver_device
{
public:
diff --git a/src/mame/includes/cninja.h b/src/mame/includes/cninja.h
index b101a2e49fe..7c7113d5d65 100644
--- a/src/mame/includes/cninja.h
+++ b/src/mame/includes/cninja.h
@@ -15,6 +15,7 @@
#include "machine/deco146.h"
#include "machine/deco104.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
class cninja_state : public driver_device
diff --git a/src/mame/includes/combatsc.h b/src/mame/includes/combatsc.h
index 957a217e8b4..ae90faaa309 100644
--- a/src/mame/includes/combatsc.h
+++ b/src/mame/includes/combatsc.h
@@ -10,6 +10,7 @@
#include "sound/upd7759.h"
#include "sound/msm5205.h"
#include "video/k007121.h"
+#include "emupal.h"
#include "screen.h"
class combatsc_state : public driver_device
diff --git a/src/mame/includes/commando.h b/src/mame/includes/commando.h
index a7fdf077cf4..b94fa089ab0 100644
--- a/src/mame/includes/commando.h
+++ b/src/mame/includes/commando.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "video/bufsprite.h"
+#include "emupal.h"
class commando_state : public driver_device
{
diff --git a/src/mame/includes/compgolf.h b/src/mame/includes/compgolf.h
index 9f5f97c1a86..06a6fc9a957 100644
--- a/src/mame/includes/compgolf.h
+++ b/src/mame/includes/compgolf.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class compgolf_state : public driver_device
{
public:
diff --git a/src/mame/includes/contra.h b/src/mame/includes/contra.h
index 171e0b2c880..93585e3beda 100644
--- a/src/mame/includes/contra.h
+++ b/src/mame/includes/contra.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "video/k007121.h"
+#include "emupal.h"
#include "screen.h"
class contra_state : public driver_device
diff --git a/src/mame/includes/cop01.h b/src/mame/includes/cop01.h
index d261ae81510..4579bf7cdf9 100644
--- a/src/mame/includes/cop01.h
+++ b/src/mame/includes/cop01.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "machine/nb1412m2.h"
+#include "emupal.h"
class cop01_state : public driver_device
{
diff --git a/src/mame/includes/copsnrob.h b/src/mame/includes/copsnrob.h
index 562aef4f897..5b5c0785e8f 100644
--- a/src/mame/includes/copsnrob.h
+++ b/src/mame/includes/copsnrob.h
@@ -12,6 +12,7 @@
#include "machine/74259.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/cosmic.h b/src/mame/includes/cosmic.h
index 9cc06ec17dd..ae11aa0d10b 100644
--- a/src/mame/includes/cosmic.h
+++ b/src/mame/includes/cosmic.h
@@ -9,6 +9,7 @@
#include "machine/timer.h"
#include "sound/samples.h"
#include "sound/dac.h"
+#include "emupal.h"
#include "screen.h"
#define COSMICG_MASTER_CLOCK XTAL(9'828'000)
diff --git a/src/mame/includes/cps1.h b/src/mame/includes/cps1.h
index ae07ba3151e..d66e9741bc6 100644
--- a/src/mame/includes/cps1.h
+++ b/src/mame/includes/cps1.h
@@ -16,6 +16,7 @@
#include "machine/timekpr.h"
#include "machine/timer.h"
#include "cpu/m68000/m68000.h"
+#include "emupal.h"
#include "screen.h"
// Video raw params
diff --git a/src/mame/includes/cps3.h b/src/mame/includes/cps3.h
index eaf8802ed92..cad11f5be50 100644
--- a/src/mame/includes/cps3.h
+++ b/src/mame/includes/cps3.h
@@ -9,6 +9,7 @@
#include "machine/intelfsh.h"
#include "cpu/sh/sh2.h"
#include "audio/cps3.h"
+#include "emupal.h"
class cps3_state : public driver_device
diff --git a/src/mame/includes/crbaloon.h b/src/mame/includes/crbaloon.h
index e8ce269de32..187af52d450 100644
--- a/src/mame/includes/crbaloon.h
+++ b/src/mame/includes/crbaloon.h
@@ -8,6 +8,7 @@ Crazy Ballooon
#include "sound/discrete.h"
#include "sound/sn76477.h"
+#include "emupal.h"
#define CRBALOON_MASTER_XTAL (XTAL(9'987'000))
diff --git a/src/mame/includes/crgolf.h b/src/mame/includes/crgolf.h
index fb94dcf500b..39a9edcf3aa 100644
--- a/src/mame/includes/crgolf.h
+++ b/src/mame/includes/crgolf.h
@@ -7,6 +7,8 @@
**************************************************************************/
#include "sound/msm5205.h"
#include "machine/bankdev.h"
+#include "emupal.h"
+
#define MASTER_CLOCK XTAL(18'432'000)
diff --git a/src/mame/includes/crimfght.h b/src/mame/includes/crimfght.h
index 306c7082874..adccf2c8fb2 100644
--- a/src/mame/includes/crimfght.h
+++ b/src/mame/includes/crimfght.h
@@ -11,6 +11,7 @@
#include "sound/k007232.h"
#include "video/k052109.h"
#include "video/k051960.h"
+#include "emupal.h"
class crimfght_state : public driver_device
{
diff --git a/src/mame/includes/crshrace.h b/src/mame/includes/crshrace.h
index 3f8197c85d8..486e44ed88b 100644
--- a/src/mame/includes/crshrace.h
+++ b/src/mame/includes/crshrace.h
@@ -6,6 +6,7 @@
#include "video/bufsprite.h"
#include "video/vsystem_spr.h"
#include "video/k053936.h"
+#include "emupal.h"
class crshrace_state : public driver_device
{
diff --git a/src/mame/includes/cvs.h b/src/mame/includes/cvs.h
index 6abadcaf13d..b19bacfd303 100644
--- a/src/mame/includes/cvs.h
+++ b/src/mame/includes/cvs.h
@@ -10,6 +10,7 @@
#include "sound/tms5110.h"
#include "machine/gen_latch.h"
#include "machine/s2636.h"
+#include "emupal.h"
#include "screen.h"
#define CVS_S2636_Y_OFFSET (-5)
diff --git a/src/mame/includes/dai.h b/src/mame/includes/dai.h
index 785aa73b4dc..04f5dbb40a1 100644
--- a/src/mame/includes/dai.h
+++ b/src/mame/includes/dai.h
@@ -17,6 +17,7 @@
#include "machine/tms5501.h"
#include "imagedev/cassette.h"
#include "sound/wave.h"
+#include "emupal.h"
class dai_state : public driver_device
diff --git a/src/mame/includes/darius.h b/src/mame/includes/darius.h
index de844957a6d..81fbdacdc60 100644
--- a/src/mame/includes/darius.h
+++ b/src/mame/includes/darius.h
@@ -9,6 +9,7 @@
#include "sound/flt_vol.h"
#include "sound/msm5205.h"
#include "video/pc080sn.h"
+#include "emupal.h"
#define DARIUS_VOL_MAX (3*2 + 2)
#define DARIUS_PAN_MAX (2 + 2 + 1) /* FM 2port + PSG 2port + DA 1port */
diff --git a/src/mame/includes/darkmist.h b/src/mame/includes/darkmist.h
index 9201dfa6300..18c28144cbe 100644
--- a/src/mame/includes/darkmist.h
+++ b/src/mame/includes/darkmist.h
@@ -3,6 +3,7 @@
#include "audio/t5182.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class darkmist_state : public driver_device
diff --git a/src/mame/includes/darkseal.h b/src/mame/includes/darkseal.h
index e0e4c1be5f5..6e742542281 100644
--- a/src/mame/includes/darkseal.h
+++ b/src/mame/includes/darkseal.h
@@ -10,6 +10,7 @@
#include "video/deco16ic.h"
#include "video/bufsprite.h"
#include "video/decospr.h"
+#include "emupal.h"
class darkseal_state : public driver_device
{
diff --git a/src/mame/includes/dassault.h b/src/mame/includes/dassault.h
index 15c2194fefb..9acc0436c9b 100644
--- a/src/mame/includes/dassault.h
+++ b/src/mame/includes/dassault.h
@@ -13,6 +13,7 @@
#include "video/decocomn.h"
#include "video/bufsprite.h"
#include "video/decospr.h"
+#include "emupal.h"
class dassault_state : public driver_device
{
diff --git a/src/mame/includes/dcheese.h b/src/mame/includes/dcheese.h
index 6fd0b7a3dde..8321de5bb28 100644
--- a/src/mame/includes/dcheese.h
+++ b/src/mame/includes/dcheese.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "sound/bsmt2000.h"
+#include "emupal.h"
#include "screen.h"
class dcheese_state : public driver_device
diff --git a/src/mame/includes/dcon.h b/src/mame/includes/dcon.h
index def68b183fd..7103f81adc7 100644
--- a/src/mame/includes/dcon.h
+++ b/src/mame/includes/dcon.h
@@ -2,6 +2,7 @@
// copyright-holders:Bryan McPhail
#include "audio/seibu.h"
+#include "emupal.h"
class dcon_state : public driver_device, protected seibu_sound_common
{
diff --git a/src/mame/includes/dday.h b/src/mame/includes/dday.h
index d40991ce2db..51db310c424 100644
--- a/src/mame/includes/dday.h
+++ b/src/mame/includes/dday.h
@@ -5,6 +5,8 @@
D-Day
*************************************************************************/
+
+#include "emupal.h"
#include "screen.h"
#include "sound/ay8910.h"
diff --git a/src/mame/includes/ddragon.h b/src/mame/includes/ddragon.h
index f1c6a6455bc..36003266b43 100644
--- a/src/mame/includes/ddragon.h
+++ b/src/mame/includes/ddragon.h
@@ -10,6 +10,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/ddragon3.h b/src/mame/includes/ddragon3.h
index 5c0855cf307..2d1242d04b4 100644
--- a/src/mame/includes/ddragon3.h
+++ b/src/mame/includes/ddragon3.h
@@ -11,6 +11,7 @@
#include "machine/timer.h"
#include "sound/okim6295.h"
#include "video/bufsprite.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/ddribble.h b/src/mame/includes/ddribble.h
index ffcc120528b..1294a05d19b 100644
--- a/src/mame/includes/ddribble.h
+++ b/src/mame/includes/ddribble.h
@@ -8,6 +8,7 @@
#include "sound/flt_rc.h"
#include "sound/vlm5030.h"
+#include "emupal.h"
class ddribble_state : public driver_device
{
diff --git a/src/mame/includes/deadang.h b/src/mame/includes/deadang.h
index ff67d53e4a6..32dbce1a8be 100644
--- a/src/mame/includes/deadang.h
+++ b/src/mame/includes/deadang.h
@@ -4,6 +4,7 @@
#include "audio/seibu.h"
#include "machine/timer.h"
#include "sound/ym2151.h"
+#include "emupal.h"
class deadang_state : public driver_device
{
diff --git a/src/mame/includes/dec0.h b/src/mame/includes/dec0.h
index 2edfd3670d5..fad6a1254cb 100644
--- a/src/mame/includes/dec0.h
+++ b/src/mame/includes/dec0.h
@@ -7,6 +7,7 @@
#include "video/decbac06.h"
#include "video/decmxc06.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class dec0_state : public driver_device
{
diff --git a/src/mame/includes/deco32.h b/src/mame/includes/deco32.h
index 7250d0df2e9..1c9d6358855 100644
--- a/src/mame/includes/deco32.h
+++ b/src/mame/includes/deco32.h
@@ -15,6 +15,7 @@
#include "machine/deco146.h"
#include "machine/deco104.h"
#include "video/deco_zoomspr.h"
+#include "emupal.h"
#include "screen.h"
class deco32_state : public driver_device
diff --git a/src/mame/includes/deco_mlc.h b/src/mame/includes/deco_mlc.h
index c2a853e03be..0483fa96288 100644
--- a/src/mame/includes/deco_mlc.h
+++ b/src/mame/includes/deco_mlc.h
@@ -5,6 +5,7 @@
#include "machine/deco146.h"
#include "machine/timer.h"
#include "sound/ymz280b.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/decocass.h b/src/mame/includes/decocass.h
index 29bc9666697..f4448bd1410 100644
--- a/src/mame/includes/decocass.h
+++ b/src/mame/includes/decocass.h
@@ -12,6 +12,7 @@
#include "machine/timer.h"
#include "machine/watchdog.h"
#include "cpu/mcs48/mcs48.h"
+#include "emupal.h"
#include "screen.h"
#define T1PROM 1
diff --git a/src/mame/includes/deniam.h b/src/mame/includes/deniam.h
index 474b9648b28..e4006b105a8 100644
--- a/src/mame/includes/deniam.h
+++ b/src/mame/includes/deniam.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
+#include "emupal.h"
class deniam_state : public driver_device
{
diff --git a/src/mame/includes/dgn_beta.h b/src/mame/includes/dgn_beta.h
index 86d2831ab05..9dbd3373e5d 100644
--- a/src/mame/includes/dgn_beta.h
+++ b/src/mame/includes/dgn_beta.h
@@ -13,6 +13,7 @@
#include "machine/wd_fdc.h"
#include "machine/6821pia.h"
#include "machine/ram.h"
+#include "emupal.h"
/* Tags */
diff --git a/src/mame/includes/divebomb.h b/src/mame/includes/divebomb.h
index 4de581ddb39..cc68e228cb9 100644
--- a/src/mame/includes/divebomb.h
+++ b/src/mame/includes/divebomb.h
@@ -11,6 +11,7 @@
#include "machine/input_merger.h"
#include "sound/sn76496.h"
#include "video/k051316.h"
+#include "emupal.h"
#define XTAL1 XTAL(24'000'000)
diff --git a/src/mame/includes/djboy.h b/src/mame/includes/djboy.h
index 3fc438cf918..543dbc942a6 100644
--- a/src/mame/includes/djboy.h
+++ b/src/mame/includes/djboy.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "video/kan_pand.h"
+#include "emupal.h"
#define PROT_OUTPUT_BUFFER_SIZE 8
diff --git a/src/mame/includes/djmain.h b/src/mame/includes/djmain.h
index 201db9f5d4b..bcbaf1394b7 100644
--- a/src/mame/includes/djmain.h
+++ b/src/mame/includes/djmain.h
@@ -4,6 +4,7 @@
#include "video/konami_helper.h"
#include "video/k054156_k054157_k056832.h"
#include "video/k055555.h"
+#include "emupal.h"
class djmain_state : public driver_device
{
diff --git a/src/mame/includes/dkong.h b/src/mame/includes/dkong.h
index f29208040c1..b7a40493943 100644
--- a/src/mame/includes/dkong.h
+++ b/src/mame/includes/dkong.h
@@ -15,6 +15,7 @@
#include "machine/z80dma.h"
#include "sound/discrete.h"
#include "sound/tms5110.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/docastle.h b/src/mame/includes/docastle.h
index 34ea0e27bdb..c32f92ac861 100644
--- a/src/mame/includes/docastle.h
+++ b/src/mame/includes/docastle.h
@@ -9,6 +9,7 @@
#include "machine/tms1024.h"
#include "video/mc6845.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class docastle_state : public driver_device
{
diff --git a/src/mame/includes/dogfgt.h b/src/mame/includes/dogfgt.h
index 06460e3da45..899e3ead329 100644
--- a/src/mame/includes/dogfgt.h
+++ b/src/mame/includes/dogfgt.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#define PIXMAP_COLOR_BASE (16 + 32)
diff --git a/src/mame/includes/dragon.h b/src/mame/includes/dragon.h
index 19843f57d59..3e3d62d1853 100644
--- a/src/mame/includes/dragon.h
+++ b/src/mame/includes/dragon.h
@@ -18,6 +18,7 @@
#include "imagedev/printer.h"
#include "machine/mos6551.h"
#include "video/mc6845.h"
+#include "emupal.h"
//**************************************************************************
diff --git a/src/mame/includes/dragrace.h b/src/mame/includes/dragrace.h
index be30d8fc8bd..3132d420f0d 100644
--- a/src/mame/includes/dragrace.h
+++ b/src/mame/includes/dragrace.h
@@ -13,6 +13,7 @@
#include "machine/timer.h"
#include "machine/watchdog.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
/* Discrete Sound Input Nodes */
diff --git a/src/mame/includes/drgnmst.h b/src/mame/includes/drgnmst.h
index 4c0eb565e38..f722643ad13 100644
--- a/src/mame/includes/drgnmst.h
+++ b/src/mame/includes/drgnmst.h
@@ -3,6 +3,7 @@
#include "sound/okim6295.h"
#include "cpu/pic16c5x/pic16c5x.h"
+#include "emupal.h"
class drgnmst_state : public driver_device
{
diff --git a/src/mame/includes/dribling.h b/src/mame/includes/dribling.h
index 654ea25c37b..484d57dc071 100644
--- a/src/mame/includes/dribling.h
+++ b/src/mame/includes/dribling.h
@@ -8,6 +8,7 @@
#include "machine/i8255.h"
#include "machine/watchdog.h"
+#include "emupal.h"
class dribling_state : public driver_device
{
diff --git a/src/mame/includes/drmicro.h b/src/mame/includes/drmicro.h
index b0faa8db6e0..b0c1b01769b 100644
--- a/src/mame/includes/drmicro.h
+++ b/src/mame/includes/drmicro.h
@@ -6,6 +6,7 @@
*************************************************************************/
#include "sound/msm5205.h"
+#include "emupal.h"
class drmicro_state : public driver_device
{
diff --git a/src/mame/includes/dynax.h b/src/mame/includes/dynax.h
index 398357b6703..238d0e489dd 100644
--- a/src/mame/includes/dynax.h
+++ b/src/mame/includes/dynax.h
@@ -12,6 +12,7 @@
#include "sound/msm5205.h"
#include "sound/okim6295.h"
#include "machine/74259.h"
+#include "emupal.h"
#include "screen.h"
class dynax_state : public driver_device
diff --git a/src/mame/includes/dynduke.h b/src/mame/includes/dynduke.h
index fec4de1b5c2..b1c0154b6b8 100644
--- a/src/mame/includes/dynduke.h
+++ b/src/mame/includes/dynduke.h
@@ -2,6 +2,7 @@
// copyright-holders:Bryan McPhail, David Haywood
#include "audio/seibu.h"
#include "video/bufsprite.h"
+#include "emupal.h"
class dynduke_state : public driver_device
{
diff --git a/src/mame/includes/efdt.h b/src/mame/includes/efdt.h
index 25cc5412a52..6f06d8feeb2 100644
--- a/src/mame/includes/efdt.h
+++ b/src/mame/includes/efdt.h
@@ -1,4 +1,7 @@
+// license:BSD-3-Clause
+// copyright-holders: ElSemi, Roberto Fresca.
+#include "emupal.h"
class efdt_state : public driver_device
diff --git a/src/mame/includes/electron.h b/src/mame/includes/electron.h
index ba11ea1d2f6..d5c663d5eed 100644
--- a/src/mame/includes/electron.h
+++ b/src/mame/includes/electron.h
@@ -16,6 +16,7 @@
#include "machine/ram.h"
#include "imagedev/cassette.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "bus/electron/exp.h"
diff --git a/src/mame/includes/eolith.h b/src/mame/includes/eolith.h
index 74161a7f567..bc09b45e06a 100644
--- a/src/mame/includes/eolith.h
+++ b/src/mame/includes/eolith.h
@@ -4,6 +4,7 @@
#include "cpu/mcs51/mcs51.h"
#include "machine/timer.h"
#include "sound/qs1000.h"
+#include "emupal.h"
#include "screen.h"
class eolith_state : public driver_device
diff --git a/src/mame/includes/epos.h b/src/mame/includes/epos.h
index 9d112cb4459..0d8e702e145 100644
--- a/src/mame/includes/epos.h
+++ b/src/mame/includes/epos.h
@@ -6,6 +6,8 @@
**************************************************************************/
+#include "emupal.h"
+
class epos_state : public driver_device
{
public:
diff --git a/src/mame/includes/equites.h b/src/mame/includes/equites.h
index 9cb108b2a53..bc430661112 100644
--- a/src/mame/includes/equites.h
+++ b/src/mame/includes/equites.h
@@ -17,6 +17,7 @@
#include "sound/samples.h"
#include "sound/msm5232.h"
#include "sound/dac.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/espial.h b/src/mame/includes/espial.h
index 7474320046c..b04503e3c6d 100644
--- a/src/mame/includes/espial.h
+++ b/src/mame/includes/espial.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
+#include "emupal.h"
class espial_state : public driver_device
{
diff --git a/src/mame/includes/exedexes.h b/src/mame/includes/exedexes.h
index d9a4f545e64..dcfb64c6bc3 100644
--- a/src/mame/includes/exedexes.h
+++ b/src/mame/includes/exedexes.h
@@ -8,6 +8,7 @@
#include "machine/timer.h"
#include "video/bufsprite.h"
+#include "emupal.h"
class exedexes_state : public driver_device
{
diff --git a/src/mame/includes/exerion.h b/src/mame/includes/exerion.h
index a3f6321dcc7..f2db520e03d 100644
--- a/src/mame/includes/exerion.h
+++ b/src/mame/includes/exerion.h
@@ -5,6 +5,8 @@
Jaleco Exerion
*************************************************************************/
+
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/exidy.h b/src/mame/includes/exidy.h
index 3eb67c3523c..1f8272b115f 100644
--- a/src/mame/includes/exidy.h
+++ b/src/mame/includes/exidy.h
@@ -8,6 +8,7 @@
#include "sound/dac.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
#define EXIDY_MASTER_CLOCK (XTAL(11'289'000))
diff --git a/src/mame/includes/exidy440.h b/src/mame/includes/exidy440.h
index 168a6a59ce3..b44409785fe 100644
--- a/src/mame/includes/exidy440.h
+++ b/src/mame/includes/exidy440.h
@@ -11,6 +11,7 @@
#pragma once
#include "audio/exidy440.h"
+#include "emupal.h"
#include "screen.h"
#define EXIDY440_MASTER_CLOCK (XTAL(12'979'200))
diff --git a/src/mame/includes/exprraid.h b/src/mame/includes/exprraid.h
index 390c8488005..4283a815197 100644
--- a/src/mame/includes/exprraid.h
+++ b/src/mame/includes/exprraid.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class exprraid_state : public driver_device
{
diff --git a/src/mame/includes/exterm.h b/src/mame/includes/exterm.h
index e913b844be3..2c7f07361da 100644
--- a/src/mame/includes/exterm.h
+++ b/src/mame/includes/exterm.h
@@ -10,6 +10,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/ym2151.h"
+#include "emupal.h"
class exterm_state : public driver_device
{
diff --git a/src/mame/includes/exzisus.h b/src/mame/includes/exzisus.h
index 4c0c2af6cb0..c823cb5bbda 100644
--- a/src/mame/includes/exzisus.h
+++ b/src/mame/includes/exzisus.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Yochizo
+
+#include "emupal.h"
+
class exzisus_state : public driver_device
{
public:
diff --git a/src/mame/includes/f1gp.h b/src/mame/includes/f1gp.h
index 42197a9e967..5acdd173e97 100644
--- a/src/mame/includes/f1gp.h
+++ b/src/mame/includes/f1gp.h
@@ -6,6 +6,7 @@
#include "video/vsystem_spr.h"
#include "video/vsystem_spr2.h"
#include "video/k053936.h"
+#include "emupal.h"
class f1gp_state : public driver_device
{
diff --git a/src/mame/includes/fantland.h b/src/mame/includes/fantland.h
index 8ca9c568f4a..376e25e7bf9 100644
--- a/src/mame/includes/fantland.h
+++ b/src/mame/includes/fantland.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
class fantland_state : public driver_device
diff --git a/src/mame/includes/fastlane.h b/src/mame/includes/fastlane.h
index d618249780d..25fb486269a 100644
--- a/src/mame/includes/fastlane.h
+++ b/src/mame/includes/fastlane.h
@@ -10,6 +10,7 @@
#include "sound/k007232.h"
#include "video/k007121.h"
#include "video/k051733.h"
+#include "emupal.h"
#include "screen.h"
class fastlane_state : public driver_device
diff --git a/src/mame/includes/fcombat.h b/src/mame/includes/fcombat.h
index 798df0dcad5..2abf26d5c09 100644
--- a/src/mame/includes/fcombat.h
+++ b/src/mame/includes/fcombat.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Tomasz Slanina
+#include "emupal.h"
+
/* this is compied from Exerion, but it should be correct */
#define FCOMBAT_MASTER_CLOCK (20000000)
diff --git a/src/mame/includes/fgoal.h b/src/mame/includes/fgoal.h
index d6a300baecf..bd1c643e0c8 100644
--- a/src/mame/includes/fgoal.h
+++ b/src/mame/includes/fgoal.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Stefan Jokisch
#include "machine/mb14241.h"
+#include "emupal.h"
#include "screen.h"
class fgoal_state : public driver_device
diff --git a/src/mame/includes/finalizr.h b/src/mame/includes/finalizr.h
index 7ff96a9c61f..24bc57ca83f 100644
--- a/src/mame/includes/finalizr.h
+++ b/src/mame/includes/finalizr.h
@@ -7,6 +7,7 @@
***************************************************************************/
#include "machine/timer.h"
+#include "emupal.h"
class finalizr_state : public driver_device
{
diff --git a/src/mame/includes/firetrap.h b/src/mame/includes/firetrap.h
index 7b033814975..ba1b4ffcb09 100644
--- a/src/mame/includes/firetrap.h
+++ b/src/mame/includes/firetrap.h
@@ -9,6 +9,7 @@
#include "machine/74157.h"
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class firetrap_state : public driver_device
{
diff --git a/src/mame/includes/firetrk.h b/src/mame/includes/firetrk.h
index 64b3015d92f..78cc49b68d0 100644
--- a/src/mame/includes/firetrk.h
+++ b/src/mame/includes/firetrk.h
@@ -9,6 +9,7 @@ Atari Fire Truck + Super Bug + Monte Carlo driver
#include "machine/timer.h"
#include "machine/watchdog.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
#define FIRETRUCK_MOTOR_DATA NODE_01
diff --git a/src/mame/includes/fitfight.h b/src/mame/includes/fitfight.h
index 53b7fb029db..44431f6f969 100644
--- a/src/mame/includes/fitfight.h
+++ b/src/mame/includes/fitfight.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
+#include "emupal.h"
+
class fitfight_state : public driver_device
{
public:
diff --git a/src/mame/includes/flstory.h b/src/mame/includes/flstory.h
index ce0ee008e02..f53f95d750b 100644
--- a/src/mame/includes/flstory.h
+++ b/src/mame/includes/flstory.h
@@ -7,6 +7,7 @@
#include "machine/taito68705interface.h"
#include "sound/ta7630.h"
#include "sound/ay8910.h"
+#include "emupal.h"
class flstory_state : public driver_device
{
diff --git a/src/mame/includes/fm7.h b/src/mame/includes/fm7.h
index 7010f83d176..9c38a06340c 100644
--- a/src/mame/includes/fm7.h
+++ b/src/mame/includes/fm7.h
@@ -18,6 +18,7 @@
#include "sound/2203intf.h"
#include "machine/wd_fdc.h"
#include "machine/bankdev.h"
+#include "emupal.h"
// Interrupt flags
diff --git a/src/mame/includes/fmtowns.h b/src/mame/includes/fmtowns.h
index 79f33755834..5cabaf1a40e 100644
--- a/src/mame/includes/fmtowns.h
+++ b/src/mame/includes/fmtowns.h
@@ -29,6 +29,8 @@
#include "formats/fmtowns_dsk.h"
+#include "emupal.h"
+
#define IRQ_LOG 0 // set to 1 to log IRQ line activity
diff --git a/src/mame/includes/freekick.h b/src/mame/includes/freekick.h
index f7b984b754a..58873ccacda 100644
--- a/src/mame/includes/freekick.h
+++ b/src/mame/includes/freekick.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Tomasz Slanina,David Haywood
+#include "emupal.h"
class freekick_state : public driver_device
{
diff --git a/src/mame/includes/fromanc2.h b/src/mame/includes/fromanc2.h
index d4aefe4a413..d3529cadc51 100644
--- a/src/mame/includes/fromanc2.h
+++ b/src/mame/includes/fromanc2.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "machine/eepromser.h"
#include "machine/ins8250.h"
+#include "emupal.h"
class fromanc2_state : public driver_device
{
diff --git a/src/mame/includes/fromance.h b/src/mame/includes/fromance.h
index 044b0385276..686474b03f9 100644
--- a/src/mame/includes/fromance.h
+++ b/src/mame/includes/fromance.h
@@ -13,6 +13,7 @@
#include "sound/msm5205.h"
#include "video/vsystem_gga.h"
#include "video/vsystem_spr2.h"
+#include "emupal.h"
#include "screen.h"
class fromance_state : public driver_device
diff --git a/src/mame/includes/funkybee.h b/src/mame/includes/funkybee.h
index a1b27398357..45019bd7f57 100644
--- a/src/mame/includes/funkybee.h
+++ b/src/mame/includes/funkybee.h
@@ -2,6 +2,7 @@
// copyright-holders:Zsolt Vasvari
#include "machine/watchdog.h"
+#include "emupal.h"
class funkybee_state : public driver_device
diff --git a/src/mame/includes/funworld.h b/src/mame/includes/funworld.h
index 564d44472c2..4aa1c47fb47 100644
--- a/src/mame/includes/funworld.h
+++ b/src/mame/includes/funworld.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Roberto Fresca, Peter Ferrie
+
+#include "emupal.h"
+
class funworld_state : public driver_device
{
public:
diff --git a/src/mame/includes/funybubl.h b/src/mame/includes/funybubl.h
index 98bb73bdf75..1f90c7f0d26 100644
--- a/src/mame/includes/funybubl.h
+++ b/src/mame/includes/funybubl.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
+#include "emupal.h"
class funybubl_state : public driver_device
{
diff --git a/src/mame/includes/fuukifg2.h b/src/mame/includes/fuukifg2.h
index e0dcb2dfa7e..402e8d592d0 100644
--- a/src/mame/includes/fuukifg2.h
+++ b/src/mame/includes/fuukifg2.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
#include "video/fuukifg.h"
+#include "emupal.h"
#include "screen.h"
class fuuki16_state : public driver_device
diff --git a/src/mame/includes/fuukifg3.h b/src/mame/includes/fuukifg3.h
index 96f836961e2..2fdd0723372 100644
--- a/src/mame/includes/fuukifg3.h
+++ b/src/mame/includes/fuukifg3.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Paul Priest, David Haywood, Luca Elia
#include "video/fuukifg.h"
+#include "emupal.h"
#include "screen.h"
/* Define clocks based on actual OSC on the PCB */
diff --git a/src/mame/includes/gaelco.h b/src/mame/includes/gaelco.h
index ffb0157367d..0b8a9f67b99 100644
--- a/src/mame/includes/gaelco.h
+++ b/src/mame/includes/gaelco.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "machine/74259.h"
+#include "emupal.h"
class gaelco_state : public driver_device
{
diff --git a/src/mame/includes/gaelco2.h b/src/mame/includes/gaelco2.h
index 2b9c80638f3..571dd6a08d9 100644
--- a/src/mame/includes/gaelco2.h
+++ b/src/mame/includes/gaelco2.h
@@ -5,6 +5,7 @@
#include "machine/74259.h"
#include "machine/eepromser.h"
#include "machine/timer.h"
+#include "emupal.h"
class gaelco2_state : public driver_device
{
diff --git a/src/mame/includes/gaiden.h b/src/mame/includes/gaiden.h
index 83c6fb8acb7..1ddaeb681e5 100644
--- a/src/mame/includes/gaiden.h
+++ b/src/mame/includes/gaiden.h
@@ -12,6 +12,7 @@
#include "sound/msm5205.h"
#include "video/tecmo_spr.h"
#include "video/tecmo_mix.h"
+#include "emupal.h"
#include "screen.h"
class gaiden_state : public driver_device
diff --git a/src/mame/includes/galaga.h b/src/mame/includes/galaga.h
index d933d2a06d8..1f0c3d4d088 100644
--- a/src/mame/includes/galaga.h
+++ b/src/mame/includes/galaga.h
@@ -9,6 +9,7 @@
#include "sound/discrete.h"
#include "sound/namco.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
class galaga_state : public driver_device
diff --git a/src/mame/includes/galastrm.h b/src/mame/includes/galastrm.h
index 63a0206fe32..73beb2dc90a 100644
--- a/src/mame/includes/galastrm.h
+++ b/src/mame/includes/galastrm.h
@@ -6,6 +6,7 @@
#include "video/tc0100scn.h"
#include "video/tc0480scp.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/galaxian.h b/src/mame/includes/galaxian.h
index 1ffb511f76f..d4eda2a5d11 100644
--- a/src/mame/includes/galaxian.h
+++ b/src/mame/includes/galaxian.h
@@ -13,6 +13,7 @@
#include "sound/dac.h"
#include "sound/digitalk.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
/* we scale horizontally by 3 to render stars correctly */
diff --git a/src/mame/includes/galaxold.h b/src/mame/includes/galaxold.h
index 342c3e67dea..e24108613b3 100644
--- a/src/mame/includes/galaxold.h
+++ b/src/mame/includes/galaxold.h
@@ -17,6 +17,7 @@
#include "machine/7474.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
/* star circuit */
diff --git a/src/mame/includes/galeb.h b/src/mame/includes/galeb.h
index 06f01a6917c..4f847931a34 100644
--- a/src/mame/includes/galeb.h
+++ b/src/mame/includes/galeb.h
@@ -10,6 +10,7 @@
#define MAME_INCLUDES_GALEB_H
#include "sound/dac.h"
+#include "emupal.h"
class galeb_state : public driver_device
{
diff --git a/src/mame/includes/galivan.h b/src/mame/includes/galivan.h
index 7e31de535c8..c95e6d9d686 100644
--- a/src/mame/includes/galivan.h
+++ b/src/mame/includes/galivan.h
@@ -10,6 +10,7 @@
#include "machine/nb1414m4.h"
#include "machine/gen_latch.h"
#include "video/bufsprite.h"
+#include "emupal.h"
class galivan_state : public driver_device
{
diff --git a/src/mame/includes/galpani2.h b/src/mame/includes/galpani2.h
index 53a4cef91e8..87b681e736f 100644
--- a/src/mame/includes/galpani2.h
+++ b/src/mame/includes/galpani2.h
@@ -4,6 +4,7 @@
#include "sound/okim6295.h"
#include "machine/eepromser.h"
#include "machine/timer.h"
+#include "emupal.h"
class galpani2_state : public driver_device
{
diff --git a/src/mame/includes/galpanic.h b/src/mame/includes/galpanic.h
index 13adc5766cd..ff00da6b9d3 100644
--- a/src/mame/includes/galpanic.h
+++ b/src/mame/includes/galpanic.h
@@ -3,6 +3,7 @@
#include "machine/timer.h"
#include "video/kan_pand.h"
+#include "emupal.h"
#include "screen.h"
class galpanic_state : public driver_device
diff --git a/src/mame/includes/galspnbl.h b/src/mame/includes/galspnbl.h
index cbd574532a3..7dba79d208b 100644
--- a/src/mame/includes/galspnbl.h
+++ b/src/mame/includes/galspnbl.h
@@ -10,6 +10,7 @@
#include "machine/gen_latch.h"
#include "video/tecmo_spr.h"
+#include "emupal.h"
#include "screen.h"
class galspnbl_state : public driver_device
diff --git a/src/mame/includes/gamecom.h b/src/mame/includes/gamecom.h
index e9975da252b..d6c871ef621 100644
--- a/src/mame/includes/gamecom.h
+++ b/src/mame/includes/gamecom.h
@@ -18,6 +18,7 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
#include "machine/nvram.h"
+#include "emupal.h"
/* SM8521 register addresses */
enum
diff --git a/src/mame/includes/gaplus.h b/src/mame/includes/gaplus.h
index db7e4541f86..a8a1542d0af 100644
--- a/src/mame/includes/gaplus.h
+++ b/src/mame/includes/gaplus.h
@@ -3,6 +3,7 @@
#include "sound/namco.h"
#include "sound/samples.h"
#include "machine/namcoio.h"
+#include "emupal.h"
#include "screen.h"
#define MAX_STARS 250
@@ -22,7 +23,7 @@ public:
TIMER_NAMCOIO1_RUN
};
- gaplus_base_state(const machine_config &mconfig, device_type type, const char *tag, const char *namco56xx_tag, const char *namco58xx_tag)
+ gaplus_base_state(const machine_config &mconfig, device_type type, const char *tag, const char *namco56xx_tag, const char *namco58xx_tag)
: driver_device(mconfig, type, tag)
, m_maincpu(*this, "maincpu")
, m_subcpu(*this, "sub")
@@ -90,7 +91,7 @@ protected:
required_device<gfxdecode_device> m_gfxdecode;
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
- required_memory_region m_proms_region;
+ required_memory_region m_proms_region;
required_shared_ptr<uint8_t> m_customio_3;
required_shared_ptr<uint8_t> m_videoram;
diff --git a/src/mame/includes/gb.h b/src/mame/includes/gb.h
index cd24651a6af..ac037d4ad47 100644
--- a/src/mame/includes/gb.h
+++ b/src/mame/includes/gb.h
@@ -14,6 +14,7 @@
#include "bus/gameboy/gb_slot.h"
#include "machine/ram.h"
#include "video/gb_lcd.h"
+#include "emupal.h"
class gb_state : public driver_device
diff --git a/src/mame/includes/gberet.h b/src/mame/includes/gberet.h
index 7e4568c3a96..2bc02d34efb 100644
--- a/src/mame/includes/gberet.h
+++ b/src/mame/includes/gberet.h
@@ -8,6 +8,7 @@
#include "machine/timer.h"
#include "sound/sn76496.h"
+#include "emupal.h"
class gberet_state : public driver_device
{
diff --git a/src/mame/includes/gcpinbal.h b/src/mame/includes/gcpinbal.h
index 9f7f8cff56a..94baa317ae9 100644
--- a/src/mame/includes/gcpinbal.h
+++ b/src/mame/includes/gcpinbal.h
@@ -6,6 +6,7 @@
#include "sound/es8712.h"
#include "sound/okim6295.h"
#include "video/excellent_spr.h"
+#include "emupal.h"
class gcpinbal_state : public driver_device
{
diff --git a/src/mame/includes/gijoe.h b/src/mame/includes/gijoe.h
index b979d185074..344741df46b 100644
--- a/src/mame/includes/gijoe.h
+++ b/src/mame/includes/gijoe.h
@@ -12,6 +12,7 @@
#include "video/k053246_k053247_k055673.h"
#include "video/konami_helper.h"
#include "machine/k054321.h"
+#include "emupal.h"
class gijoe_state : public driver_device
{
diff --git a/src/mame/includes/ginganin.h b/src/mame/includes/ginganin.h
index c4580513e4f..bd6401b382b 100644
--- a/src/mame/includes/ginganin.h
+++ b/src/mame/includes/ginganin.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class ginganin_state : public driver_device
{
diff --git a/src/mame/includes/gladiatr.h b/src/mame/includes/gladiatr.h
index 0c74c1d2b13..4540e089d5c 100644
--- a/src/mame/includes/gladiatr.h
+++ b/src/mame/includes/gladiatr.h
@@ -6,6 +6,7 @@
#include "cpu/m6809/m6809.h"
#include "cpu/mcs48/mcs48.h"
#include "cpu/z80/z80.h"
+#include "emupal.h"
class gladiatr_state_base : public driver_device
diff --git a/src/mame/includes/glass.h b/src/mame/includes/glass.h
index 96bda57d5d3..ca8db27f65e 100644
--- a/src/mame/includes/glass.h
+++ b/src/mame/includes/glass.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/74259.h"
+#include "emupal.h"
class glass_state : public driver_device
{
diff --git a/src/mame/includes/gng.h b/src/mame/includes/gng.h
index e9775a4f962..9ffcc8acd49 100644
--- a/src/mame/includes/gng.h
+++ b/src/mame/includes/gng.h
@@ -8,6 +8,7 @@
#include "sound/2203intf.h"
#include "video/bufsprite.h"
+#include "emupal.h"
class gng_state : public driver_device
{
diff --git a/src/mame/includes/goal92.h b/src/mame/includes/goal92.h
index 64b619814aa..666bbecfaf0 100644
--- a/src/mame/includes/goal92.h
+++ b/src/mame/includes/goal92.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class goal92_state : public driver_device
{
diff --git a/src/mame/includes/goindol.h b/src/mame/includes/goindol.h
index 6282635588f..1a1ff0fc99b 100644
--- a/src/mame/includes/goindol.h
+++ b/src/mame/includes/goindol.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class goindol_state : public driver_device
{
public:
diff --git a/src/mame/includes/goldstar.h b/src/mame/includes/goldstar.h
index 58bd31e4cfc..db5d16a393f 100644
--- a/src/mame/includes/goldstar.h
+++ b/src/mame/includes/goldstar.h
@@ -3,6 +3,7 @@
#include "machine/ds2401.h"
#include "machine/ticket.h"
+#include "emupal.h"
class goldstar_state : public driver_device
diff --git a/src/mame/includes/gomoku.h b/src/mame/includes/gomoku.h
index 1c9db1776f5..3aacf184cf6 100644
--- a/src/mame/includes/gomoku.h
+++ b/src/mame/includes/gomoku.h
@@ -3,6 +3,7 @@
#ifndef MAME_INCLUDES_GOMOKU_H
#define MAME_INCLUDES_GOMOKU_H
+#include "emupal.h"
#include "screen.h"
class gomoku_state : public driver_device
diff --git a/src/mame/includes/gottlieb.h b/src/mame/includes/gottlieb.h
index 07acb1fc940..53254facfe0 100644
--- a/src/mame/includes/gottlieb.h
+++ b/src/mame/includes/gottlieb.h
@@ -11,6 +11,7 @@
#include "cpu/m6502/m6502.h"
#include "sound/samples.h"
#include "machine/ldpr8210.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/gotya.h b/src/mame/includes/gotya.h
index a515610ff16..cf05e0e119b 100644
--- a/src/mame/includes/gotya.h
+++ b/src/mame/includes/gotya.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Zsolt Vasvari
#include "sound/samples.h"
+#include "emupal.h"
class gotya_state : public driver_device
{
diff --git a/src/mame/includes/gp32.h b/src/mame/includes/gp32.h
index c990099a7c9..06b35205e4b 100644
--- a/src/mame/includes/gp32.h
+++ b/src/mame/includes/gp32.h
@@ -7,6 +7,7 @@
#include "machine/smartmed.h"
#include "sound/dac.h"
#include "machine/nvram.h"
+#include "emupal.h"
#include "screen.h"
#define INT_ADC 31
diff --git a/src/mame/includes/grchamp.h b/src/mame/includes/grchamp.h
index 17d1b1efaea..0f8dbb374d6 100644
--- a/src/mame/includes/grchamp.h
+++ b/src/mame/includes/grchamp.h
@@ -9,6 +9,7 @@
#include "machine/input_merger.h"
#include "machine/watchdog.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
class grchamp_state : public driver_device
diff --git a/src/mame/includes/gridlee.h b/src/mame/includes/gridlee.h
index 5d647002bcb..4d0df9a0436 100644
--- a/src/mame/includes/gridlee.h
+++ b/src/mame/includes/gridlee.h
@@ -14,6 +14,7 @@
#include "sound/samples.h"
#include "machine/74259.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/groundfx.h b/src/mame/includes/groundfx.h
index 8a5c255d7f7..a0d1a10d201 100644
--- a/src/mame/includes/groundfx.h
+++ b/src/mame/includes/groundfx.h
@@ -3,6 +3,7 @@
#include "video/tc0100scn.h"
#include "video/tc0480scp.h"
+#include "emupal.h"
struct gfx_tempsprite
{
diff --git a/src/mame/includes/gstriker.h b/src/mame/includes/gstriker.h
index 337d273190a..7e1c693edca 100644
--- a/src/mame/includes/gstriker.h
+++ b/src/mame/includes/gstriker.h
@@ -10,6 +10,7 @@
#include "video/vsystem_spr.h"
#include "video/mb60553.h"
#include "video/vs920a.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/gsword.h b/src/mame/includes/gsword.h
index ae76f569edf..69c0b673014 100644
--- a/src/mame/includes/gsword.h
+++ b/src/mame/includes/gsword.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "sound/ay8910.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class gsword_state_base : public driver_device
{
diff --git a/src/mame/includes/gunbustr.h b/src/mame/includes/gunbustr.h
index 8dd644a9fff..39109daa603 100644
--- a/src/mame/includes/gunbustr.h
+++ b/src/mame/includes/gunbustr.h
@@ -2,6 +2,7 @@
// copyright-holders:Bryan McPhail, David Graves
#include "machine/eepromser.h"
#include "video/tc0480scp.h"
+#include "emupal.h"
struct gb_tempsprite
{
diff --git a/src/mame/includes/gundealr.h b/src/mame/includes/gundealr.h
index 944b3d4e322..b840c2bd3b8 100644
--- a/src/mame/includes/gundealr.h
+++ b/src/mame/includes/gundealr.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/timer.h"
+#include "emupal.h"
class gundealr_state : public driver_device
{
diff --git a/src/mame/includes/gunsmoke.h b/src/mame/includes/gunsmoke.h
index 924e0e663c5..610770f642e 100644
--- a/src/mame/includes/gunsmoke.h
+++ b/src/mame/includes/gunsmoke.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class gunsmoke_state : public driver_device
{
public:
diff --git a/src/mame/includes/gyruss.h b/src/mame/includes/gyruss.h
index 2d4e8e91038..bb9bc18674f 100644
--- a/src/mame/includes/gyruss.h
+++ b/src/mame/includes/gyruss.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
class gyruss_state : public driver_device
diff --git a/src/mame/includes/hanaawas.h b/src/mame/includes/hanaawas.h
index 57c2be067b1..ecca52469d9 100644
--- a/src/mame/includes/hanaawas.h
+++ b/src/mame/includes/hanaawas.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class hanaawas_state : public driver_device
{
public:
diff --git a/src/mame/includes/harddriv.h b/src/mame/includes/harddriv.h
index add763e9742..2cc9e28cb15 100644
--- a/src/mame/includes/harddriv.h
+++ b/src/mame/includes/harddriv.h
@@ -30,6 +30,7 @@
#include "sound/dac.h"
+#include "emupal.h"
#include "screen.h"
#define HARDDRIV_MASTER_CLOCK XTAL(32'000'000)
diff --git a/src/mame/includes/hcastle.h b/src/mame/includes/hcastle.h
index fa6e3d1ee11..b7c860afa26 100644
--- a/src/mame/includes/hcastle.h
+++ b/src/mame/includes/hcastle.h
@@ -9,6 +9,7 @@
#include "video/bufsprite.h"
#include "sound/k007232.h"
#include "video/k007121.h"
+#include "emupal.h"
class hcastle_state : public driver_device
{
diff --git a/src/mame/includes/hec2hrp.h b/src/mame/includes/hec2hrp.h
index 3083818ae8a..9690982d778 100644
--- a/src/mame/includes/hec2hrp.h
+++ b/src/mame/includes/hec2hrp.h
@@ -50,6 +50,7 @@
#include "machine/wd_fdc.h"
#include "sound/discrete.h" /* for 1 Bit sound*/
#include "sound/sn76477.h" /* for sn sound*/
+#include "emupal.h"
/* Enum status for high memory bank (c000 - ffff)*/
enum
diff --git a/src/mame/includes/higemaru.h b/src/mame/includes/higemaru.h
index d50c8bbfa3a..c6229ecd8fd 100644
--- a/src/mame/includes/higemaru.h
+++ b/src/mame/includes/higemaru.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/timer.h"
+#include "emupal.h"
class higemaru_state : public driver_device
{
diff --git a/src/mame/includes/himesiki.h b/src/mame/includes/himesiki.h
index 34c7070b99a..afde7eab7d8 100644
--- a/src/mame/includes/himesiki.h
+++ b/src/mame/includes/himesiki.h
@@ -8,6 +8,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class himesiki_state : public driver_device
{
diff --git a/src/mame/includes/hnayayoi.h b/src/mame/includes/hnayayoi.h
index 572f8b96045..1ef6baeee63 100644
--- a/src/mame/includes/hnayayoi.h
+++ b/src/mame/includes/hnayayoi.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "sound/msm5205.h"
#include "video/mc6845.h"
+#include "emupal.h"
class hnayayoi_state : public driver_device
{
diff --git a/src/mame/includes/hng64.h b/src/mame/includes/hng64.h
index e6572c88ce1..4a56cf74382 100644
--- a/src/mame/includes/hng64.h
+++ b/src/mame/includes/hng64.h
@@ -8,6 +8,7 @@
#include "sound/l7a1045_l6028_dsp_a.h"
#include "video/poly.h"
#include "cpu/tlcs870/tlcs870.h"
+#include "emupal.h"
#include "screen.h"
enum
diff --git a/src/mame/includes/holeland.h b/src/mame/includes/holeland.h
index d8767ea979b..a18185823bb 100644
--- a/src/mame/includes/holeland.h
+++ b/src/mame/includes/holeland.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/74259.h"
+#include "emupal.h"
class holeland_state : public driver_device
{
diff --git a/src/mame/includes/homedata.h b/src/mame/includes/homedata.h
index 3bdb1516d22..965777d4dfa 100644
--- a/src/mame/includes/homedata.h
+++ b/src/mame/includes/homedata.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "sound/sn76496.h"
#include "sound/2203intf.h"
+#include "emupal.h"
class homedata_state : public driver_device
{
diff --git a/src/mame/includes/homerun.h b/src/mame/includes/homerun.h
index 6adeb57e537..42d35139ff3 100644
--- a/src/mame/includes/homerun.h
+++ b/src/mame/includes/homerun.h
@@ -8,6 +8,7 @@
#include "sound/upd7759.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
class homerun_state : public driver_device
diff --git a/src/mame/includes/hp48.h b/src/mame/includes/hp48.h
index 4d281cbb793..6abd0798496 100644
--- a/src/mame/includes/hp48.h
+++ b/src/mame/includes/hp48.h
@@ -15,6 +15,7 @@
#include "machine/hp48_port.h"
#include "sound/dac.h"
+#include "emupal.h"
#include "screen.h"
/* model */
diff --git a/src/mame/includes/hp9845.h b/src/mame/includes/hp9845.h
index bb42f0a788b..9054a4592bf 100644
--- a/src/mame/includes/hp9845.h
+++ b/src/mame/includes/hp9845.h
@@ -12,6 +12,7 @@
#include "machine/hp_taco.h"
#include "sound/beep.h"
#include "bus/hp9845_io/hp9845_io.h"
+#include "emupal.h"
#include "screen.h"
#include "machine/ram.h"
#include "machine/timer.h"
diff --git a/src/mame/includes/huebler.h b/src/mame/includes/huebler.h
index 80c9d190098..4f7107ee6d8 100644
--- a/src/mame/includes/huebler.h
+++ b/src/mame/includes/huebler.h
@@ -19,6 +19,7 @@
#include "machine/z80pio.h"
#include "machine/z80dart.h"
#include "machine/z80ctc.h"
+#include "emupal.h"
class amu880_state : public driver_device
{
diff --git a/src/mame/includes/hx20.h b/src/mame/includes/hx20.h
index cb84cc334a9..9ef8a2b7938 100644
--- a/src/mame/includes/hx20.h
+++ b/src/mame/includes/hx20.h
@@ -17,6 +17,7 @@
#include "bus/epson_sio/epson_sio.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "rendlay.h"
#define HD6301V1_MAIN_TAG "8g"
diff --git a/src/mame/includes/hyperspt.h b/src/mame/includes/hyperspt.h
index 6a6748c27be..ffb967c9ce6 100644
--- a/src/mame/includes/hyperspt.h
+++ b/src/mame/includes/hyperspt.h
@@ -10,6 +10,7 @@
#include "sound/sn76496.h"
#include "sound/vlm5030.h"
+#include "emupal.h"
#include "screen.h"
class hyperspt_state : public driver_device
diff --git a/src/mame/includes/ikki.h b/src/mame/includes/ikki.h
index e48cd8e90df..f898e9d354f 100644
--- a/src/mame/includes/ikki.h
+++ b/src/mame/includes/ikki.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class ikki_state : public driver_device
diff --git a/src/mame/includes/imds2.h b/src/mame/includes/imds2.h
index e9a2d80b5d5..c06e9cbb93c 100644
--- a/src/mame/includes/imds2.h
+++ b/src/mame/includes/imds2.h
@@ -17,6 +17,7 @@
#include "bus/centronics/ctronics.h"
#include "machine/i8251.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
class imds2_state : public driver_device
{
diff --git a/src/mame/includes/intv.h b/src/mame/includes/intv.h
index 1b0996eaf39..2dec630b1b0 100644
--- a/src/mame/includes/intv.h
+++ b/src/mame/includes/intv.h
@@ -24,6 +24,8 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
+
class intv_state : public driver_device
{
diff --git a/src/mame/includes/inufuku.h b/src/mame/includes/inufuku.h
index cedd96c4b7a..4b7dd607f90 100644
--- a/src/mame/includes/inufuku.h
+++ b/src/mame/includes/inufuku.h
@@ -5,6 +5,7 @@
#include "video/vsystem_spr.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
class inufuku_state : public driver_device
{
diff --git a/src/mame/includes/irobot.h b/src/mame/includes/irobot.h
index d068ab5f1aa..ee341e346e0 100644
--- a/src/mame/includes/irobot.h
+++ b/src/mame/includes/irobot.h
@@ -13,6 +13,7 @@
#include "machine/timer.h"
#include "machine/x2212.h"
#include "sound/pokey.h"
+#include "emupal.h"
#include "screen.h"
#define IR_TIMING 1 /* try to emulate MB and VG running time */
diff --git a/src/mame/includes/ironhors.h b/src/mame/includes/ironhors.h
index e19b20fb06e..94430ba7fe1 100644
--- a/src/mame/includes/ironhors.h
+++ b/src/mame/includes/ironhors.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/discrete.h"
+#include "emupal.h"
class ironhors_state : public driver_device
{
diff --git a/src/mame/includes/itech32.h b/src/mame/includes/itech32.h
index 51968735cb8..c3dfb41f40f 100644
--- a/src/mame/includes/itech32.h
+++ b/src/mame/includes/itech32.h
@@ -9,6 +9,7 @@
#include "machine/nvram.h"
#include "machine/ticket.h"
+#include "emupal.h"
#include "screen.h"
#define VIDEO_CLOCK XTAL(8'000'000) /* video (pixel) clock */
diff --git a/src/mame/includes/jack.h b/src/mame/includes/jack.h
index d614ed3db75..4e743b9f5cd 100644
--- a/src/mame/includes/jack.h
+++ b/src/mame/includes/jack.h
@@ -8,6 +8,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class jack_state : public driver_device
{
diff --git a/src/mame/includes/jackal.h b/src/mame/includes/jackal.h
index c8270042197..782f0d5a851 100644
--- a/src/mame/includes/jackal.h
+++ b/src/mame/includes/jackal.h
@@ -2,6 +2,8 @@
// copyright-holders:Curt Coder
// thanks-to:Kenneth Lin (original driver author)
+#include "emupal.h"
+
#define MASTER_CLOCK XTAL(18'432'000)
#define SOUND_CLOCK XTAL(3'579'545)
diff --git a/src/mame/includes/jailbrek.h b/src/mame/includes/jailbrek.h
index 508d16b43bf..7b7814cee9a 100644
--- a/src/mame/includes/jailbrek.h
+++ b/src/mame/includes/jailbrek.h
@@ -7,6 +7,7 @@
***************************************************************************/
#include "sound/vlm5030.h"
+#include "emupal.h"
#define MASTER_CLOCK XTAL(18'432'000)
#define VOICE_CLOCK XTAL(3'579'545)
diff --git a/src/mame/includes/jpmimpct.h b/src/mame/includes/jpmimpct.h
index 6bde694bd20..bc03b547ed8 100644
--- a/src/mame/includes/jpmimpct.h
+++ b/src/mame/includes/jpmimpct.h
@@ -11,6 +11,7 @@
#include "machine/timer.h"
#include "cpu/tms34010/tms34010.h"
#include "sound/upd7759.h"
+#include "emupal.h"
struct duart_t
{
diff --git a/src/mame/includes/jpmsys5.h b/src/mame/includes/jpmsys5.h
index 0671a5924f3..47e0d429aff 100644
--- a/src/mame/includes/jpmsys5.h
+++ b/src/mame/includes/jpmsys5.h
@@ -17,6 +17,7 @@
#include "machine/steppers.h"
#include "machine/roc10937.h"
#include "machine/meters.h"
+#include "emupal.h"
class jpmsys5_state : public driver_device
{
diff --git a/src/mame/includes/kaneko16.h b/src/mame/includes/kaneko16.h
index 64df518426c..4f6124fd323 100644
--- a/src/mame/includes/kaneko16.h
+++ b/src/mame/includes/kaneko16.h
@@ -24,7 +24,7 @@
#include "sound/ym2151.h"
#include "video/kaneko_spr.h"
#include "video/kaneko_tmap.h"
-
+#include "emupal.h"
#include "screen.h"
class kaneko16_state : public driver_device
diff --git a/src/mame/includes/kangaroo.h b/src/mame/includes/kangaroo.h
index 00bc4de7be1..a12cba2bae7 100644
--- a/src/mame/includes/kangaroo.h
+++ b/src/mame/includes/kangaroo.h
@@ -8,6 +8,8 @@
***************************************************************************/
+#include "emupal.h"
+
class kangaroo_state : public driver_device
{
public:
diff --git a/src/mame/includes/kaypro.h b/src/mame/includes/kaypro.h
index 1026d283edc..3c310d350b2 100644
--- a/src/mame/includes/kaypro.h
+++ b/src/mame/includes/kaypro.h
@@ -13,6 +13,7 @@
#include "sound/beep.h"
#include "video/mc6845.h"
#include "machine/wd_fdc.h"
+#include "emupal.h"
#include "screen.h"
class kaypro_state : public driver_device
diff --git a/src/mame/includes/kc.h b/src/mame/includes/kc.h
index f975a6301ad..22725e31b26 100644
--- a/src/mame/includes/kc.h
+++ b/src/mame/includes/kc.h
@@ -24,6 +24,7 @@
#include "machine/rescap.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
// Devices
diff --git a/src/mame/includes/kchamp.h b/src/mame/includes/kchamp.h
index 091ab8c3adf..1250a655f51 100644
--- a/src/mame/includes/kchamp.h
+++ b/src/mame/includes/kchamp.h
@@ -11,6 +11,7 @@
#include "sound/ay8910.h"
#include "sound/msm5205.h"
#include "sound/dac.h"
+#include "emupal.h"
class kchamp_state : public driver_device
{
diff --git a/src/mame/includes/kickgoal.h b/src/mame/includes/kickgoal.h
index cc28d3df757..9671ae76f62 100644
--- a/src/mame/includes/kickgoal.h
+++ b/src/mame/includes/kickgoal.h
@@ -8,6 +8,7 @@
#include "sound/okim6295.h"
#include "machine/eepromser.h"
+#include "emupal.h"
class kickgoal_state : public driver_device
{
diff --git a/src/mame/includes/kingobox.h b/src/mame/includes/kingobox.h
index 079dcd02c30..204d54d1ad2 100644
--- a/src/mame/includes/kingobox.h
+++ b/src/mame/includes/kingobox.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "machine/input_merger.h"
+#include "emupal.h"
class kingofb_state : public driver_device
{
diff --git a/src/mame/includes/kncljoe.h b/src/mame/includes/kncljoe.h
index 4588df258a0..8da82c1c60f 100644
--- a/src/mame/includes/kncljoe.h
+++ b/src/mame/includes/kncljoe.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
class kncljoe_state : public driver_device
diff --git a/src/mame/includes/konamigx.h b/src/mame/includes/konamigx.h
index a1514381173..fe054c569ff 100644
--- a/src/mame/includes/konamigx.h
+++ b/src/mame/includes/konamigx.h
@@ -15,6 +15,7 @@
#include "video/k054156_k054157_k056832.h"
#include "video/k054338.h"
#include "video/k055555.h"
+#include "emupal.h"
#include "screen.h"
class konamigx_state : public driver_device
diff --git a/src/mame/includes/kopunch.h b/src/mame/includes/kopunch.h
index e3d4f8d39b7..784a457dd5d 100644
--- a/src/mame/includes/kopunch.h
+++ b/src/mame/includes/kopunch.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class kopunch_state : public driver_device
{
public:
diff --git a/src/mame/includes/kramermc.h b/src/mame/includes/kramermc.h
index 59abe23ef5c..068e6a715f1 100644
--- a/src/mame/includes/kramermc.h
+++ b/src/mame/includes/kramermc.h
@@ -10,6 +10,7 @@
#define MAME_INCLUDES_KRAMERMC_H
#include "machine/z80pio.h"
+#include "emupal.h"
class kramermc_state : public driver_device
{
diff --git a/src/mame/includes/ksayakyu.h b/src/mame/includes/ksayakyu.h
index 5f6426ea31e..a1bbdbd90c5 100644
--- a/src/mame/includes/ksayakyu.h
+++ b/src/mame/includes/ksayakyu.h
@@ -8,6 +8,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class ksayakyu_state : public driver_device
{
diff --git a/src/mame/includes/kyocera.h b/src/mame/includes/kyocera.h
index b8fa9b0eea2..a2536940bac 100644
--- a/src/mame/includes/kyocera.h
+++ b/src/mame/includes/kyocera.h
@@ -25,6 +25,7 @@
#include "bus/centronics/ctronics.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "rendlay.h"
diff --git a/src/mame/includes/kyugo.h b/src/mame/includes/kyugo.h
index 63691814459..80b9b2c8b23 100644
--- a/src/mame/includes/kyugo.h
+++ b/src/mame/includes/kyugo.h
@@ -6,6 +6,8 @@
***************************************************************************/
+#include "emupal.h"
+
class kyugo_state : public driver_device
{
public:
diff --git a/src/mame/includes/labyrunr.h b/src/mame/includes/labyrunr.h
index 86b92a9fb21..543f45282e6 100644
--- a/src/mame/includes/labyrunr.h
+++ b/src/mame/includes/labyrunr.h
@@ -8,6 +8,7 @@
#include "video/k007121.h"
#include "video/k051733.h"
+#include "emupal.h"
#include "screen.h"
class labyrunr_state : public driver_device
diff --git a/src/mame/includes/ladybug.h b/src/mame/includes/ladybug.h
index 90e4af64d32..a7f7cd5ccdc 100644
--- a/src/mame/includes/ladybug.h
+++ b/src/mame/includes/ladybug.h
@@ -11,6 +11,7 @@
#pragma once
#include "video/ladybug.h"
+#include "emupal.h"
class ladybug_base_state : public driver_device
diff --git a/src/mame/includes/ladyfrog.h b/src/mame/includes/ladyfrog.h
index f5ac228b7ca..6928f1860f5 100644
--- a/src/mame/includes/ladyfrog.h
+++ b/src/mame/includes/ladyfrog.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5232.h"
+#include "emupal.h"
class ladyfrog_state : public driver_device
{
diff --git a/src/mame/includes/laserbat.h b/src/mame/includes/laserbat.h
index 854dfdf8959..1cbb7d8e668 100644
--- a/src/mame/includes/laserbat.h
+++ b/src/mame/includes/laserbat.h
@@ -16,6 +16,7 @@
#include "sound/sn76477.h"
#include "sound/tms3615.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/lasso.h b/src/mame/includes/lasso.h
index 472808438c4..c5977428562 100644
--- a/src/mame/includes/lasso.h
+++ b/src/mame/includes/lasso.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "sound/sn76496.h"
+#include "emupal.h"
class lasso_state : public driver_device
{
diff --git a/src/mame/includes/lastduel.h b/src/mame/includes/lastduel.h
index c2a7be4ea7f..3857083acdc 100644
--- a/src/mame/includes/lastduel.h
+++ b/src/mame/includes/lastduel.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "video/bufsprite.h"
+#include "emupal.h"
class lastduel_state : public driver_device
{
diff --git a/src/mame/includes/lazercmd.h b/src/mame/includes/lazercmd.h
index d11ae9f18cc..996658b214d 100644
--- a/src/mame/includes/lazercmd.h
+++ b/src/mame/includes/lazercmd.h
@@ -4,6 +4,7 @@
#include "cpu/s2650/s2650.h"
#include "machine/timer.h"
#include "sound/dac.h"
+#include "emupal.h"
#define HORZ_RES 32
#define VERT_RES 24
diff --git a/src/mame/includes/legionna.h b/src/mame/includes/legionna.h
index 01e2f984bae..7e7597a89db 100644
--- a/src/mame/includes/legionna.h
+++ b/src/mame/includes/legionna.h
@@ -6,6 +6,7 @@
#include "machine/gen_latch.h"
#include "machine/seibucop/seibucop.h"
#include "video/seibu_crtc.h"
+#include "emupal.h"
class legionna_state : public driver_device, protected seibu_sound_common
{
diff --git a/src/mame/includes/leland.h b/src/mame/includes/leland.h
index ef901fb80e8..17bcf40e56c 100644
--- a/src/mame/includes/leland.h
+++ b/src/mame/includes/leland.h
@@ -13,6 +13,7 @@
#include "machine/eepromser.h"
#include "sound/dac.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#define LELAND_BATTERY_RAM_SIZE 0x4000
diff --git a/src/mame/includes/lemmings.h b/src/mame/includes/lemmings.h
index a3b8cd00d3c..5fda26b45db 100644
--- a/src/mame/includes/lemmings.h
+++ b/src/mame/includes/lemmings.h
@@ -4,6 +4,7 @@
#include "video/decospr.h"
#include "machine/deco146.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
class lemmings_state : public driver_device
{
diff --git a/src/mame/includes/lethal.h b/src/mame/includes/lethal.h
index a81466dd115..ad2f9902bf9 100644
--- a/src/mame/includes/lethal.h
+++ b/src/mame/includes/lethal.h
@@ -13,6 +13,7 @@
#include "video/k053244_k053245.h"
#include "video/k054000.h"
#include "machine/k054321.h"
+#include "emupal.h"
class lethal_state : public driver_device
{
diff --git a/src/mame/includes/liberate.h b/src/mame/includes/liberate.h
index 9390e408d5f..f0e0e7b0840 100644
--- a/src/mame/includes/liberate.h
+++ b/src/mame/includes/liberate.h
@@ -2,6 +2,7 @@
// copyright-holders:Bryan McPhail
#include "machine/gen_latch.h"
+#include "emupal.h"
class liberate_state : public driver_device
{
diff --git a/src/mame/includes/lisa.h b/src/mame/includes/lisa.h
index 9414544e8ad..a4d795577d1 100644
--- a/src/mame/includes/lisa.h
+++ b/src/mame/includes/lisa.h
@@ -20,6 +20,7 @@
#include "machine/nvram.h"
#include "machine/sonydriv.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
#define COP421_TAG "u9f"
diff --git a/src/mame/includes/lkage.h b/src/mame/includes/lkage.h
index 82a02184c49..d050c511796 100644
--- a/src/mame/includes/lkage.h
+++ b/src/mame/includes/lkage.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "machine/input_merger.h"
#include "machine/taito68705interface.h"
+#include "emupal.h"
class lkage_state : public driver_device
{
diff --git a/src/mame/includes/lockon.h b/src/mame/includes/lockon.h
index bf067775435..996b9b963af 100644
--- a/src/mame/includes/lockon.h
+++ b/src/mame/includes/lockon.h
@@ -8,6 +8,7 @@
#include "machine/watchdog.h"
#include "sound/flt_vol.h"
+#include "emupal.h"
#include "screen.h"
/* Calculated from CRT controller writes */
diff --git a/src/mame/includes/lordgun.h b/src/mame/includes/lordgun.h
index d55df817ae1..94b5b931cbf 100644
--- a/src/mame/includes/lordgun.h
+++ b/src/mame/includes/lordgun.h
@@ -8,6 +8,7 @@
#include "sound/okim6295.h"
#include "machine/eepromser.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
struct lordgun_gun_data
diff --git a/src/mame/includes/lsasquad.h b/src/mame/includes/lsasquad.h
index e7238b97012..dbc342eb184 100644
--- a/src/mame/includes/lsasquad.h
+++ b/src/mame/includes/lsasquad.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "machine/input_merger.h"
#include "machine/taito68705interface.h"
+#include "emupal.h"
class lsasquad_state : public driver_device
{
diff --git a/src/mame/includes/lucky74.h b/src/mame/includes/lucky74.h
index ebe756d786f..7c982a2bc63 100644
--- a/src/mame/includes/lucky74.h
+++ b/src/mame/includes/lucky74.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Roberto Fresca
+
#include "sound/msm5205.h"
+#include "emupal.h"
class lucky74_state : public driver_device
{
diff --git a/src/mame/includes/lvcards.h b/src/mame/includes/lvcards.h
index 088308af814..c9741f1e01d 100644
--- a/src/mame/includes/lvcards.h
+++ b/src/mame/includes/lvcards.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Zsolt Vasvari, Curt Coder
+
+#include "emupal.h"
+
class lvcards_state : public driver_device
{
public:
diff --git a/src/mame/includes/lviv.h b/src/mame/includes/lviv.h
index 12df36c4c19..fd484b6fa49 100644
--- a/src/mame/includes/lviv.h
+++ b/src/mame/includes/lviv.h
@@ -14,6 +14,7 @@
#include "machine/i8255.h"
#include "machine/ram.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
class lviv_state : public driver_device
diff --git a/src/mame/includes/lwings.h b/src/mame/includes/lwings.h
index 2630d6b9f37..7ec5c42f872 100644
--- a/src/mame/includes/lwings.h
+++ b/src/mame/includes/lwings.h
@@ -4,6 +4,7 @@
#include "video/bufsprite.h"
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class lwings_state : public driver_device
{
diff --git a/src/mame/includes/lynx.h b/src/mame/includes/lynx.h
index 3396ccb08a8..85ffd1bbb8c 100644
--- a/src/mame/includes/lynx.h
+++ b/src/mame/includes/lynx.h
@@ -10,6 +10,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
#include "audio/lynx.h"
#include "imagedev/snapquik.h"
diff --git a/src/mame/includes/m10.h b/src/mame/includes/m10.h
index d237339f637..ab6aa480ece 100644
--- a/src/mame/includes/m10.h
+++ b/src/mame/includes/m10.h
@@ -8,6 +8,7 @@
#include "sound/samples.h"
#include "machine/74123.h"
+#include "emupal.h"
#include "screen.h"
#define IREMM10_MASTER_CLOCK (12500000)
diff --git a/src/mame/includes/m107.h b/src/mame/includes/m107.h
index 24815565118..eea6f86bece 100644
--- a/src/mame/includes/m107.h
+++ b/src/mame/includes/m107.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "machine/pic8259.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
struct pf_layer_info
diff --git a/src/mame/includes/m52.h b/src/mame/includes/m52.h
index be3ad3cd2a4..06e72b40890 100644
--- a/src/mame/includes/m52.h
+++ b/src/mame/includes/m52.h
@@ -1,5 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
+
+#include "emupal.h"
#include "screen.h"
class m52_state : public driver_device
diff --git a/src/mame/includes/m57.h b/src/mame/includes/m57.h
index 0e7a7e53ff6..d3b2cbede42 100644
--- a/src/mame/includes/m57.h
+++ b/src/mame/includes/m57.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Phil Stroffolino
+
+#include "emupal.h"
+
class m57_state : public driver_device
{
public:
diff --git a/src/mame/includes/m58.h b/src/mame/includes/m58.h
index 7ed90d32f52..de4570c96ed 100644
--- a/src/mame/includes/m58.h
+++ b/src/mame/includes/m58.h
@@ -6,6 +6,7 @@
Irem M58 hardware
****************************************************************************/
+#include "emupal.h"
#include "screen.h"
class m58_state : public driver_device
diff --git a/src/mame/includes/m62.h b/src/mame/includes/m62.h
index 7c7204c7990..17599e8d79c 100644
--- a/src/mame/includes/m62.h
+++ b/src/mame/includes/m62.h
@@ -2,6 +2,7 @@
// copyright-holders:smf, David Haywood
#include "audio/irem.h"
+#include "emupal.h"
class m62_state : public driver_device
{
diff --git a/src/mame/includes/m72.h b/src/mame/includes/m72.h
index 0c82d032a4e..75033248fe6 100644
--- a/src/mame/includes/m72.h
+++ b/src/mame/includes/m72.h
@@ -9,6 +9,7 @@
#include "sound/dac.h"
#include "machine/pic8259.h"
#include "machine/upd4701.h"
+#include "emupal.h"
#include "screen.h"
#define M81_B_B_JUMPER_J3_S \
diff --git a/src/mame/includes/m90.h b/src/mame/includes/m90.h
index bc16bab9f5d..32ef1569cea 100644
--- a/src/mame/includes/m90.h
+++ b/src/mame/includes/m90.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Bryan McPhail
#include "audio/m72.h"
+#include "emupal.h"
class m90_state : public driver_device
{
diff --git a/src/mame/includes/m92.h b/src/mame/includes/m92.h
index ca04d7ca717..2090bee8a04 100644
--- a/src/mame/includes/m92.h
+++ b/src/mame/includes/m92.h
@@ -10,6 +10,7 @@
#include "sound/okim6295.h"
#include "machine/pic8259.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
struct M92_pf_layer_info
diff --git a/src/mame/includes/mac.h b/src/mame/includes/mac.h
index 2a166288136..57524a6ddb2 100644
--- a/src/mame/includes/mac.h
+++ b/src/mame/includes/mac.h
@@ -27,6 +27,7 @@
#include "sound/awacs.h"
#include "sound/dac.h"
#include "cpu/m68000/m68000.h"
+#include "emupal.h"
#include "screen.h"
#define MAC_SCREEN_NAME "screen"
diff --git a/src/mame/includes/macrossp.h b/src/mame/includes/macrossp.h
index 992e1f6bbd9..a425784f55f 100644
--- a/src/mame/includes/macrossp.h
+++ b/src/mame/includes/macrossp.h
@@ -8,6 +8,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
class macrossp_state : public driver_device
diff --git a/src/mame/includes/madalien.h b/src/mame/includes/madalien.h
index e253ccd5ac0..06886fc3ce8 100644
--- a/src/mame/includes/madalien.h
+++ b/src/mame/includes/madalien.h
@@ -12,6 +12,7 @@
#include "machine/gen_latch.h"
#include "sound/discrete.h"
+#include "emupal.h"
#define MADALIEN_MAIN_CLOCK XTAL(10'595'000)
diff --git a/src/mame/includes/magmax.h b/src/mame/includes/magmax.h
index 1e0b3315729..4969ab55492 100644
--- a/src/mame/includes/magmax.h
+++ b/src/mame/includes/magmax.h
@@ -3,6 +3,7 @@
#include "screen.h"
#include "machine/gen_latch.h"
#include "sound/ay8910.h"
+#include "emupal.h"
class magmax_state : public driver_device
{
diff --git a/src/mame/includes/mainsnk.h b/src/mame/includes/mainsnk.h
index 5ed8e64df6c..da61d515ebf 100644
--- a/src/mame/includes/mainsnk.h
+++ b/src/mame/includes/mainsnk.h
@@ -2,6 +2,7 @@
// copyright-holders:David Haywood, Tomasz Slanina
#include "machine/gen_latch.h"
+#include "emupal.h"
class mainsnk_state : public driver_device
{
diff --git a/src/mame/includes/malzak.h b/src/mame/includes/malzak.h
index d17005a8891..6886adf29f6 100644
--- a/src/mame/includes/malzak.h
+++ b/src/mame/includes/malzak.h
@@ -8,6 +8,7 @@
#include "machine/s2636.h"
#include "video/saa5050.h"
+#include "emupal.h"
#include "screen.h"
class malzak_state : public driver_device
diff --git a/src/mame/includes/mappy.h b/src/mame/includes/mappy.h
index 77a21d5dc15..c3dae01d800 100644
--- a/src/mame/includes/mappy.h
+++ b/src/mame/includes/mappy.h
@@ -3,6 +3,7 @@
#include "machine/namcoio.h"
#include "sound/dac.h"
#include "sound/namco.h"
+#include "emupal.h"
#include "screen.h"
class mappy_state : public driver_device
diff --git a/src/mame/includes/marineb.h b/src/mame/includes/marineb.h
index 957c9466a2a..6d9b37df27a 100644
--- a/src/mame/includes/marineb.h
+++ b/src/mame/includes/marineb.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Zsolt Vasvari
+
+#include "emupal.h"
+
class marineb_state : public driver_device
{
public:
diff --git a/src/mame/includes/mario.h b/src/mame/includes/mario.h
index 12509fc39c4..45a629be9ab 100644
--- a/src/mame/includes/mario.h
+++ b/src/mame/includes/mario.h
@@ -6,6 +6,7 @@
#include "machine/gen_latch.h"
#include "machine/z80dma.h"
+#include "emupal.h"
#define OLD_SOUND (0)
diff --git a/src/mame/includes/markham.h b/src/mame/includes/markham.h
index 5354682b4f4..cee02ea05d1 100644
--- a/src/mame/includes/markham.h
+++ b/src/mame/includes/markham.h
@@ -17,6 +17,7 @@
#include "cpu/z80/z80.h"
#include "cpu/mb88xx/mb88xx.h"
#include "sound/sn76496.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/includes/matmania.h b/src/mame/includes/matmania.h
index d7c4d2fee1e..84dcb143c84 100644
--- a/src/mame/includes/matmania.h
+++ b/src/mame/includes/matmania.h
@@ -4,6 +4,7 @@
#include "machine/taito68705interface.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
class matmania_state : public driver_device
diff --git a/src/mame/includes/mbc55x.h b/src/mame/includes/mbc55x.h
index 73aacd4c617..ba57d9306a9 100644
--- a/src/mame/includes/mbc55x.h
+++ b/src/mame/includes/mbc55x.h
@@ -26,6 +26,7 @@
#include "debug/debugcon.h"
#include "debugger.h"
+#include "emupal.h"
#include "formats/pc_dsk.h"
diff --git a/src/mame/includes/mbee.h b/src/mame/includes/mbee.h
index fcecfb87871..1d1a8a51a00 100644
--- a/src/mame/includes/mbee.h
+++ b/src/mame/includes/mbee.h
@@ -28,6 +28,7 @@
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/mcatadv.h b/src/mame/includes/mcatadv.h
index db8878cebf7..3d93ac640cd 100644
--- a/src/mame/includes/mcatadv.h
+++ b/src/mame/includes/mcatadv.h
@@ -2,6 +2,7 @@
// copyright-holders:Paul Priest, David Haywood
#include "machine/watchdog.h"
+#include "emupal.h"
class mcatadv_state : public driver_device
{
diff --git a/src/mame/includes/mcr.h b/src/mame/includes/mcr.h
index faa26470b14..dd390e512b2 100644
--- a/src/mame/includes/mcr.h
+++ b/src/mame/includes/mcr.h
@@ -16,6 +16,7 @@
#include "audio/midway.h"
#include "audio/csd.h"
#include "sound/samples.h"
+#include "emupal.h"
/* constants */
#define MAIN_OSC_MCR_I XTAL(19'968'000)
diff --git a/src/mame/includes/meadows.h b/src/mame/includes/meadows.h
index 47e82ffb4d4..91182ca81f9 100644
--- a/src/mame/includes/meadows.h
+++ b/src/mame/includes/meadows.h
@@ -8,6 +8,7 @@
#include "cpu/s2650/s2650.h"
#include "sound/dac.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
class meadows_state : public driver_device
diff --git a/src/mame/includes/megasys1.h b/src/mame/includes/megasys1.h
index 1da991feee4..3f6b3878830 100644
--- a/src/mame/includes/megasys1.h
+++ b/src/mame/includes/megasys1.h
@@ -12,6 +12,7 @@
#include "machine/timer.h"
#include "sound/okim6295.h"
#include "video/ms1_tmap.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/megazone.h b/src/mame/includes/megazone.h
index 37f7051cb61..d66032dc471 100644
--- a/src/mame/includes/megazone.h
+++ b/src/mame/includes/megazone.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class megazone_state : public driver_device
{
public:
diff --git a/src/mame/includes/mermaid.h b/src/mame/includes/mermaid.h
index 33b2adf1e56..2b29e4c0a61 100644
--- a/src/mame/includes/mermaid.h
+++ b/src/mame/includes/mermaid.h
@@ -9,6 +9,7 @@
#include "machine/ripple_counter.h"
#include "sound/msm5205.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
class mermaid_state : public driver_device
diff --git a/src/mame/includes/metlclsh.h b/src/mame/includes/metlclsh.h
index 0abfe421d80..ab5c62da53b 100644
--- a/src/mame/includes/metlclsh.h
+++ b/src/mame/includes/metlclsh.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class metlclsh_state : public driver_device
{
public:
diff --git a/src/mame/includes/mexico86.h b/src/mame/includes/mexico86.h
index d8141e554d8..394e3a351c6 100644
--- a/src/mame/includes/mexico86.h
+++ b/src/mame/includes/mexico86.h
@@ -4,6 +4,7 @@
#include "cpu/m6805/m68705.h"
#include "sound/2203intf.h"
+#include "emupal.h"
class mexico86_state : public driver_device
diff --git a/src/mame/includes/micro3d.h b/src/mame/includes/micro3d.h
index 115ecfef529..0dc26ee4d23 100644
--- a/src/mame/includes/micro3d.h
+++ b/src/mame/includes/micro3d.h
@@ -15,6 +15,7 @@
#include "sound/upd7759.h"
#include "machine/mc2661.h"
#include "machine/mc68681.h"
+#include "emupal.h"
#define HOST_MONITOR_DISPLAY 0
diff --git a/src/mame/includes/micronic.h b/src/mame/includes/micronic.h
index 19249f0adc8..8b1152f4c1c 100644
--- a/src/mame/includes/micronic.h
+++ b/src/mame/includes/micronic.h
@@ -16,6 +16,7 @@
#include "machine/nvram.h"
#include "sound/beep.h"
#include "imagedev/cassette.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
#define Z80_TAG "z80"
diff --git a/src/mame/includes/midtunit.h b/src/mame/includes/midtunit.h
index e6203e21f0b..7f02f21023b 100644
--- a/src/mame/includes/midtunit.h
+++ b/src/mame/includes/midtunit.h
@@ -11,6 +11,7 @@
#include "audio/williams.h"
#include "cpu/tms34010/tms34010.h"
+#include "emupal.h"
class midtunit_state : public driver_device
diff --git a/src/mame/includes/midvunit.h b/src/mame/includes/midvunit.h
index 8d3996060ff..fb37d1de10a 100644
--- a/src/mame/includes/midvunit.h
+++ b/src/mame/includes/midvunit.h
@@ -13,6 +13,7 @@
#include "machine/timer.h"
#include "machine/watchdog.h"
#include "video/poly.h"
+#include "emupal.h"
#include "screen.h"
#define MIDVUNIT_VIDEO_CLOCK 33000000
diff --git a/src/mame/includes/midyunit.h b/src/mame/includes/midyunit.h
index cdb4b27fdf6..4613b28033f 100644
--- a/src/mame/includes/midyunit.h
+++ b/src/mame/includes/midyunit.h
@@ -14,6 +14,7 @@
#include "machine/gen_latch.h"
#include "machine/nvram.h"
#include "sound/okim6295.h"
+#include "emupal.h"
/* protection data types */
struct protection_data
diff --git a/src/mame/includes/midzeus.h b/src/mame/includes/midzeus.h
index dfe022dc98e..33a1189fa26 100644
--- a/src/mame/includes/midzeus.h
+++ b/src/mame/includes/midzeus.h
@@ -9,6 +9,7 @@
#define MIDZEUS_VIDEO_CLOCK XTAL(66'666'700)
#include "machine/timekpr.h"
+#include "emupal.h"
#include "screen.h"
class midzeus_state : public driver_device
diff --git a/src/mame/includes/mikie.h b/src/mame/includes/mikie.h
index 2972e3948dd..5e911c30b83 100644
--- a/src/mame/includes/mikie.h
+++ b/src/mame/includes/mikie.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class mikie_state : public driver_device
{
public:
diff --git a/src/mame/includes/mikromik.h b/src/mame/includes/mikromik.h
index 618b53eee93..fd77d0b0d49 100644
--- a/src/mame/includes/mikromik.h
+++ b/src/mame/includes/mikromik.h
@@ -17,6 +17,7 @@
#include "machine/upd765.h"
#include "video/i8275.h"
#include "video/upd7220.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
#define I8085A_TAG "ic40"
diff --git a/src/mame/includes/mitchell.h b/src/mame/includes/mitchell.h
index 9ca090695c0..629e3cce372 100644
--- a/src/mame/includes/mitchell.h
+++ b/src/mame/includes/mitchell.h
@@ -13,6 +13,7 @@
#include "machine/timer.h"
#include "sound/msm5205.h"
#include "sound/okim6295.h"
+#include "emupal.h"
class mitchell_state : public driver_device
{
diff --git a/src/mame/includes/mjkjidai.h b/src/mame/includes/mjkjidai.h
index 64adf654217..da7763d086b 100644
--- a/src/mame/includes/mjkjidai.h
+++ b/src/mame/includes/mjkjidai.h
@@ -2,6 +2,7 @@
// copyright-holders:Nicola Salmoria
#include "machine/nvram.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class mjkjidai_state : public driver_device
{
diff --git a/src/mame/includes/model1.h b/src/mame/includes/model1.h
index c89e12463e0..fe5e2ac9c92 100644
--- a/src/mame/includes/model1.h
+++ b/src/mame/includes/model1.h
@@ -17,6 +17,7 @@
#include "machine/timer.h"
#include "video/segaic24.h"
+#include "emupal.h"
#include "screen.h"
#include <glm/vec3.hpp>
diff --git a/src/mame/includes/model2.h b/src/mame/includes/model2.h
index c622b1150f4..fa376ef25af 100644
--- a/src/mame/includes/model2.h
+++ b/src/mame/includes/model2.h
@@ -17,6 +17,7 @@
#include "sound/scsp.h"
#include "video/segaic24.h"
#include "video/poly.h"
+#include "emupal.h"
#include "screen.h"
class model2_renderer;
diff --git a/src/mame/includes/model3.h b/src/mame/includes/model3.h
index 7ca250b5f8f..b42be515eac 100644
--- a/src/mame/includes/model3.h
+++ b/src/mame/includes/model3.h
@@ -11,6 +11,7 @@
#include "machine/315-5881_crypt.h"
#include "machine/msm6242.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
typedef float MATRIX[4][4];
diff --git a/src/mame/includes/momoko.h b/src/mame/includes/momoko.h
index 53ef7baafd3..1a6289be577 100644
--- a/src/mame/includes/momoko.h
+++ b/src/mame/includes/momoko.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class momoko_state : public driver_device
{
public:
diff --git a/src/mame/includes/moo.h b/src/mame/includes/moo.h
index 541e4c197d3..15eee080d01 100644
--- a/src/mame/includes/moo.h
+++ b/src/mame/includes/moo.h
@@ -15,6 +15,7 @@
#include "video/k054338.h"
#include "machine/k054321.h"
#include "video/konami_helper.h"
+#include "emupal.h"
#include "screen.h"
class moo_state : public driver_device
diff --git a/src/mame/includes/mouser.h b/src/mame/includes/mouser.h
index f31d814ca88..f458226338e 100644
--- a/src/mame/includes/mouser.h
+++ b/src/mame/includes/mouser.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class mouser_state : public driver_device
{
public:
diff --git a/src/mame/includes/mpu4.h b/src/mame/includes/mpu4.h
index 872ccb68f32..2a61486536a 100644
--- a/src/mame/includes/mpu4.h
+++ b/src/mame/includes/mpu4.h
@@ -14,6 +14,7 @@
#include "machine/steppers.h"
#include "machine/roc10937.h"
#include "machine/meters.h"
+#include "emupal.h"
#define MPU4_MASTER_CLOCK XTAL(6'880'000)
diff --git a/src/mame/includes/mrdo.h b/src/mame/includes/mrdo.h
index fc25e209dbc..56cfa2f399b 100644
--- a/src/mame/includes/mrdo.h
+++ b/src/mame/includes/mrdo.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class mrdo_state : public driver_device
{
public:
diff --git a/src/mame/includes/mrflea.h b/src/mame/includes/mrflea.h
index c036b80d997..a819dd114db 100644
--- a/src/mame/includes/mrflea.h
+++ b/src/mame/includes/mrflea.h
@@ -8,6 +8,7 @@
#include "machine/pic8259.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class mrflea_state : public driver_device
diff --git a/src/mame/includes/mrjong.h b/src/mame/includes/mrjong.h
index 6d1e8fb5557..a8865a0e822 100644
--- a/src/mame/includes/mrjong.h
+++ b/src/mame/includes/mrjong.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class mrjong_state : public driver_device
{
public:
diff --git a/src/mame/includes/ms32.h b/src/mame/includes/ms32.h
index c306cb34c1d..65daebbc921 100644
--- a/src/mame/includes/ms32.h
+++ b/src/mame/includes/ms32.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class ms32_state : public driver_device
diff --git a/src/mame/includes/msisaac.h b/src/mame/includes/msisaac.h
index 4e04ef7f87a..7ef76464179 100644
--- a/src/mame/includes/msisaac.h
+++ b/src/mame/includes/msisaac.h
@@ -5,6 +5,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5232.h"
#include "sound/ta7630.h"
+#include "emupal.h"
/* Disabled because the mcu dump is currently unavailable. -AS */
//#define USE_MCU
diff --git a/src/mame/includes/mugsmash.h b/src/mame/includes/mugsmash.h
index 48d2b281006..4ae2ce7ff99 100644
--- a/src/mame/includes/mugsmash.h
+++ b/src/mame/includes/mugsmash.h
@@ -2,6 +2,7 @@
// copyright-holders:David Haywood
#include "machine/gen_latch.h"
+#include "emupal.h"
class mugsmash_state : public driver_device
{
diff --git a/src/mame/includes/multfish.h b/src/mame/includes/multfish.h
index 47a071d5a23..af7120bb965 100644
--- a/src/mame/includes/multfish.h
+++ b/src/mame/includes/multfish.h
@@ -8,6 +8,7 @@
#include "machine/timekpr.h"
#include "machine/watchdog.h"
#include "machine/ticket.h"
+#include "emupal.h"
#include "screen.h"
#define igrosoft_gamble_ROM_SIZE 0x80000
diff --git a/src/mame/includes/munchmo.h b/src/mame/includes/munchmo.h
index 349a3b1253c..e0978e64d82 100644
--- a/src/mame/includes/munchmo.h
+++ b/src/mame/includes/munchmo.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "machine/74259.h"
+#include "emupal.h"
class munchmo_state : public driver_device
{
diff --git a/src/mame/includes/mustache.h b/src/mame/includes/mustache.h
index d62f4043e00..d568e0c69f0 100644
--- a/src/mame/includes/mustache.h
+++ b/src/mame/includes/mustache.h
@@ -3,6 +3,7 @@
#include "audio/seibu.h" // for seibu_sound_decrypt on the MAIN cpu (not sound)
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class mustache_state : public driver_device
diff --git a/src/mame/includes/mystston.h b/src/mame/includes/mystston.h
index 7dfd1fdad46..089d2946573 100644
--- a/src/mame/includes/mystston.h
+++ b/src/mame/includes/mystston.h
@@ -8,6 +8,7 @@
***************************************************************************/
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/mz700.h b/src/mame/includes/mz700.h
index 348499a7506..17b29b4802d 100644
--- a/src/mame/includes/mz700.h
+++ b/src/mame/includes/mz700.h
@@ -20,6 +20,7 @@
#include "machine/timer.h"
#include "machine/z80pio.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
class mz_state : public driver_device
diff --git a/src/mame/includes/n8080.h b/src/mame/includes/n8080.h
index 142368729cd..7a1652a770b 100644
--- a/src/mame/includes/n8080.h
+++ b/src/mame/includes/n8080.h
@@ -5,6 +5,7 @@
#include "machine/timer.h"
#include "sound/dac.h"
#include "sound/sn76477.h"
+#include "emupal.h"
#include "screen.h"
class n8080_state : public driver_device
diff --git a/src/mame/includes/namcona1.h b/src/mame/includes/namcona1.h
index 55904073d15..cad157f4150 100644
--- a/src/mame/includes/namcona1.h
+++ b/src/mame/includes/namcona1.h
@@ -10,6 +10,7 @@
#include "machine/timer.h"
#include "machine/msm6242.h"
#include "sound/c140.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/namcos1.h b/src/mame/includes/namcos1.h
index 0898d691770..fc7bcec944c 100644
--- a/src/mame/includes/namcos1.h
+++ b/src/mame/includes/namcos1.h
@@ -6,6 +6,7 @@
#include "sound/namco.h"
#include "video/namco_c116.h"
#include "machine/74157.h"
+#include "emupal.h"
class namcos1_state : public driver_device
{
diff --git a/src/mame/includes/namcos2.h b/src/mame/includes/namcos2.h
index 8c23fdebb35..a4c0114026b 100644
--- a/src/mame/includes/namcos2.h
+++ b/src/mame/includes/namcos2.h
@@ -14,6 +14,7 @@
#include "video/c45.h"
#include "cpu/m6502/m3745x.h"
+#include "emupal.h"
#include "screen.h"
/* CPU reference numbers */
diff --git a/src/mame/includes/namcos22.h b/src/mame/includes/namcos22.h
index 425867a770a..c02c791dfd6 100644
--- a/src/mame/includes/namcos22.h
+++ b/src/mame/includes/namcos22.h
@@ -10,6 +10,7 @@
#include "machine/timer.h"
#include "video/rgbutil.h"
#include "video/poly.h"
+#include "emupal.h"
#include "screen.h"
enum
diff --git a/src/mame/includes/namcos86.h b/src/mame/includes/namcos86.h
index 7412debed97..9de1b956abf 100644
--- a/src/mame/includes/namcos86.h
+++ b/src/mame/includes/namcos86.h
@@ -2,6 +2,7 @@
// copyright-holders:Nicola Salmoria
#include "machine/watchdog.h"
#include "sound/namco.h"
+#include "emupal.h"
class namcos86_state : public driver_device
{
diff --git a/src/mame/includes/naughtyb.h b/src/mame/includes/naughtyb.h
index dff61094936..d53355feb35 100644
--- a/src/mame/includes/naughtyb.h
+++ b/src/mame/includes/naughtyb.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Brad Oliver,Sal and John Bugliarisi,Paul Priest
#include "audio/pleiads.h"
+#include "emupal.h"
#include "screen.h"
class naughtyb_state : public driver_device
diff --git a/src/mame/includes/nbmj8688.h b/src/mame/includes/nbmj8688.h
index 153186e91b0..2184560b275 100644
--- a/src/mame/includes/nbmj8688.h
+++ b/src/mame/includes/nbmj8688.h
@@ -2,6 +2,7 @@
// copyright-holders:Takahiro Nogi
#include "video/hd61830.h"
#include "machine/nb1413m3.h"
+#include "emupal.h"
class nbmj8688_state : public driver_device
{
diff --git a/src/mame/includes/nbmj8891.h b/src/mame/includes/nbmj8891.h
index 61a8da24873..ceb49fbd8f3 100644
--- a/src/mame/includes/nbmj8891.h
+++ b/src/mame/includes/nbmj8891.h
@@ -2,6 +2,7 @@
// copyright-holders:Takahiro Nogi
#include "machine/nb1413m3.h"
+#include "emupal.h"
#include "screen.h"
class nbmj8891_state : public driver_device
diff --git a/src/mame/includes/nbmj8900.h b/src/mame/includes/nbmj8900.h
index d01f8a2a870..1b4921c81e7 100644
--- a/src/mame/includes/nbmj8900.h
+++ b/src/mame/includes/nbmj8900.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Takahiro Nogi
#include "machine/nb1413m3.h"
+#include "emupal.h"
#include "screen.h"
class nbmj8900_state : public driver_device
diff --git a/src/mame/includes/nbmj8991.h b/src/mame/includes/nbmj8991.h
index a2b876ee4c6..e7e4171f57d 100644
--- a/src/mame/includes/nbmj8991.h
+++ b/src/mame/includes/nbmj8991.h
@@ -3,6 +3,7 @@
#include "machine/nb1413m3.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
class nbmj8991_state : public driver_device
diff --git a/src/mame/includes/nbmj9195.h b/src/mame/includes/nbmj9195.h
index 88f65818476..646b992dcde 100644
--- a/src/mame/includes/nbmj9195.h
+++ b/src/mame/includes/nbmj9195.h
@@ -9,6 +9,7 @@
#include "cpu/z80/tmpz84c011.h"
#include "machine/nb1413m3.h" // needed for mahjong input controller
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
#define VRAM_MAX 2
diff --git a/src/mame/includes/nc.h b/src/mame/includes/nc.h
index 985bb7aec0b..9789d1466c4 100644
--- a/src/mame/includes/nc.h
+++ b/src/mame/includes/nc.h
@@ -16,6 +16,7 @@
#include "machine/nvram.h"
#include "machine/timer.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
diff --git a/src/mame/includes/nemesis.h b/src/mame/includes/nemesis.h
index 75eefbd6fb8..df19e81a5dd 100644
--- a/src/mame/includes/nemesis.h
+++ b/src/mame/includes/nemesis.h
@@ -7,6 +7,7 @@
#include "sound/k005289.h"
#include "sound/vlm5030.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/neogeo.h b/src/mame/includes/neogeo.h
index c42a1fdef8b..2dcf356dd0c 100644
--- a/src/mame/includes/neogeo.h
+++ b/src/mame/includes/neogeo.h
@@ -24,6 +24,7 @@
#include "bus/neogeo/carts.h"
#include "bus/neogeo_ctrl/ctrl.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/newbrain.h b/src/mame/includes/newbrain.h
index 1ae535ab884..17b356e1b27 100644
--- a/src/mame/includes/newbrain.h
+++ b/src/mame/includes/newbrain.h
@@ -14,6 +14,7 @@
#include "imagedev/cassette.h"
#include "machine/rescap.h"
#include "machine/ram.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
#define Z80_TAG "409"
diff --git a/src/mame/includes/ninjakd2.h b/src/mame/includes/ninjakd2.h
index 3122d84bd71..874e449db0a 100644
--- a/src/mame/includes/ninjakd2.h
+++ b/src/mame/includes/ninjakd2.h
@@ -10,6 +10,7 @@
#define MAME_INCLUDES_NINJAKD2_H
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
class ninjakd2_state : public driver_device
diff --git a/src/mame/includes/ninjaw.h b/src/mame/includes/ninjaw.h
index b3c27582ae3..9449890b891 100644
--- a/src/mame/includes/ninjaw.h
+++ b/src/mame/includes/ninjaw.h
@@ -11,6 +11,7 @@
#include "sound/flt_vol.h"
#include "video/tc0100scn.h"
#include "video/tc0110pcr.h"
+#include "emupal.h"
class ninjaw_state : public driver_device
diff --git a/src/mame/includes/nitedrvr.h b/src/mame/includes/nitedrvr.h
index 6b6a7112fc7..53d81ca695f 100644
--- a/src/mame/includes/nitedrvr.h
+++ b/src/mame/includes/nitedrvr.h
@@ -12,6 +12,7 @@
#include "machine/timer.h"
#include "sound/discrete.h"
+#include "emupal.h"
/* Discrete Sound Input Nodes */
#define NITEDRVR_BANG_DATA NODE_01
diff --git a/src/mame/includes/niyanpai.h b/src/mame/includes/niyanpai.h
index 656d2cc5bbf..f9048c74043 100644
--- a/src/mame/includes/niyanpai.h
+++ b/src/mame/includes/niyanpai.h
@@ -5,6 +5,7 @@
#include "screen.h"
#include "audio/nichisnd.h"
#include "machine/nb1413m3.h"
+#include "emupal.h"
#define VRAM_MAX 3
diff --git a/src/mame/includes/nmk16.h b/src/mame/includes/nmk16.h
index 169b017e763..c10d57c0540 100644
--- a/src/mame/includes/nmk16.h
+++ b/src/mame/includes/nmk16.h
@@ -8,6 +8,7 @@
#include "machine/nmk004.h"
#include "machine/gen_latch.h"
#include "machine/timer.h"
+#include "emupal.h"
class nmk16_state : public driver_device, protected seibu_sound_common
{
diff --git a/src/mame/includes/norautp.h b/src/mame/includes/norautp.h
index cc6d8e33191..63bd01da443 100644
--- a/src/mame/includes/norautp.h
+++ b/src/mame/includes/norautp.h
@@ -7,6 +7,7 @@
#include "machine/i8255.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/nova2001.h b/src/mame/includes/nova2001.h
index da5cf099368..32d80b2a3eb 100644
--- a/src/mame/includes/nova2001.h
+++ b/src/mame/includes/nova2001.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Howie Cohen, Frank Palazzolo, Alex Pasadyn, David Haywood, Phil Stroffolino, Uki
+
+#include "emupal.h"
+
class nova2001_state : public driver_device
{
public:
diff --git a/src/mame/includes/novagbase.h b/src/mame/includes/novagbase.h
index 8d8ee675ee4..0d944df9b52 100644
--- a/src/mame/includes/novagbase.h
+++ b/src/mame/includes/novagbase.h
@@ -16,6 +16,7 @@
#include "sound/dac.h"
#include "sound/beep.h"
#include "video/hd44780.h"
+#include "emupal.h"
class novagbase_state : public driver_device
{
diff --git a/src/mame/includes/nycaptor.h b/src/mame/includes/nycaptor.h
index 0982fdc315e..1d2c391ebd0 100644
--- a/src/mame/includes/nycaptor.h
+++ b/src/mame/includes/nycaptor.h
@@ -5,6 +5,7 @@
#include "machine/input_merger.h"
#include "sound/msm5232.h"
#include "machine/taito68705interface.h"
+#include "emupal.h"
class nycaptor_state : public driver_device
{
diff --git a/src/mame/includes/ohmygod.h b/src/mame/includes/ohmygod.h
index 67e174380d2..63ab6231bc0 100644
--- a/src/mame/includes/ohmygod.h
+++ b/src/mame/includes/ohmygod.h
@@ -10,6 +10,8 @@
#pragma once
+#include "emupal.h"
+
class ohmygod_state : public driver_device
{
public:
diff --git a/src/mame/includes/ojankohs.h b/src/mame/includes/ojankohs.h
index 11df115fcd4..56549434be3 100644
--- a/src/mame/includes/ojankohs.h
+++ b/src/mame/includes/ojankohs.h
@@ -6,6 +6,7 @@
*************************************************************************/
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
class ojankohs_state : public driver_device
diff --git a/src/mame/includes/oneshot.h b/src/mame/includes/oneshot.h
index 6ef3b8ad883..f85e2394ef0 100644
--- a/src/mame/includes/oneshot.h
+++ b/src/mame/includes/oneshot.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood, Paul Priest
+
#include "sound/okim6295.h"
+#include "emupal.h"
class oneshot_state : public driver_device
{
diff --git a/src/mame/includes/orbit.h b/src/mame/includes/orbit.h
index 4395aeeae91..de9b6958e67 100644
--- a/src/mame/includes/orbit.h
+++ b/src/mame/includes/orbit.h
@@ -13,6 +13,7 @@
#include "machine/74259.h"
#include "machine/timer.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
/* Discrete Sound Input Nodes */
diff --git a/src/mame/includes/orion.h b/src/mame/includes/orion.h
index e9d6ba44bdb..b08f2770f42 100644
--- a/src/mame/includes/orion.h
+++ b/src/mame/includes/orion.h
@@ -25,6 +25,7 @@
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
class orion_state : public radio86_state
diff --git a/src/mame/includes/osborne1.h b/src/mame/includes/osborne1.h
index 0bde0b03238..27bf0bf0d77 100644
--- a/src/mame/includes/osborne1.h
+++ b/src/mame/includes/osborne1.h
@@ -24,6 +24,7 @@
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/osi.h b/src/mame/includes/osi.h
index a2bef491640..6d064ac5b39 100644
--- a/src/mame/includes/osi.h
+++ b/src/mame/includes/osi.h
@@ -15,6 +15,7 @@
#include "machine/ram.h"
#include "sound/discrete.h"
#include "sound/beep.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
#define M6502_TAG "m6502"
diff --git a/src/mame/includes/othunder.h b/src/mame/includes/othunder.h
index de9cffd2b78..b121783ee3c 100644
--- a/src/mame/includes/othunder.h
+++ b/src/mame/includes/othunder.h
@@ -12,6 +12,7 @@
#include "sound/flt_vol.h"
#include "video/tc0100scn.h"
#include "video/tc0110pcr.h"
+#include "emupal.h"
class othunder_state : public driver_device
diff --git a/src/mame/includes/p2000t.h b/src/mame/includes/p2000t.h
index d5ea04bacd9..a421fa30c1a 100644
--- a/src/mame/includes/p2000t.h
+++ b/src/mame/includes/p2000t.h
@@ -14,6 +14,7 @@
#include "cpu/z80/z80.h"
#include "sound/spkrdev.h"
#include "video/saa5050.h"
+#include "emupal.h"
class p2000t_state : public driver_device
diff --git a/src/mame/includes/pacland.h b/src/mame/includes/pacland.h
index 764936a5bbf..c2ab5c5a49b 100644
--- a/src/mame/includes/pacland.h
+++ b/src/mame/includes/pacland.h
@@ -2,6 +2,7 @@
// copyright-holders:Ernesto Corvi
#include "cpu/m6800/m6801.h"
#include "sound/namco.h"
+#include "emupal.h"
#include "screen.h"
class pacland_state : public driver_device
diff --git a/src/mame/includes/pacman.h b/src/mame/includes/pacman.h
index 9ef8d9c4f50..33ef50c2168 100644
--- a/src/mame/includes/pacman.h
+++ b/src/mame/includes/pacman.h
@@ -2,6 +2,7 @@
// copyright-holders:Nicola Salmoria
#include "machine/watchdog.h"
#include "sound/namco.h"
+#include "emupal.h"
/*************************************************************************
diff --git a/src/mame/includes/pandoras.h b/src/mame/includes/pandoras.h
index 2c0999e8013..4b7da9cadde 100644
--- a/src/mame/includes/pandoras.h
+++ b/src/mame/includes/pandoras.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class pandoras_state : public driver_device
{
public:
diff --git a/src/mame/includes/paradise.h b/src/mame/includes/paradise.h
index 4c343ab8491..be2583b568f 100644
--- a/src/mame/includes/paradise.h
+++ b/src/mame/includes/paradise.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Luca Elia
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
class paradise_state : public driver_device
diff --git a/src/mame/includes/pastelg.h b/src/mame/includes/pastelg.h
index e8eee13e271..db88d65a08a 100644
--- a/src/mame/includes/pastelg.h
+++ b/src/mame/includes/pastelg.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Takahiro Nogi
#include "machine/nb1413m3.h"
+#include "emupal.h"
#include "screen.h"
class pastelg_state : public driver_device
diff --git a/src/mame/includes/pbaction.h b/src/mame/includes/pbaction.h
index 422e7d7bd6d..ca6dc26e729 100644
--- a/src/mame/includes/pbaction.h
+++ b/src/mame/includes/pbaction.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "machine/z80ctc.h"
+#include "emupal.h"
class pbaction_state : public driver_device
{
diff --git a/src/mame/includes/pc1251.h b/src/mame/includes/pc1251.h
index 85232087e55..60fd39bd013 100644
--- a/src/mame/includes/pc1251.h
+++ b/src/mame/includes/pc1251.h
@@ -14,6 +14,7 @@
#include "pocketc.h"
#include "cpu/sc61860/sc61860.h"
#include "machine/nvram.h"
+#include "emupal.h"
#define PC1251_CONTRAST (ioport("DSW0")->read() & 0x07)
diff --git a/src/mame/includes/pc1401.h b/src/mame/includes/pc1401.h
index b910416ef25..11f66eb34b2 100644
--- a/src/mame/includes/pc1401.h
+++ b/src/mame/includes/pc1401.h
@@ -14,6 +14,7 @@
#include "pocketc.h"
#include "cpu/sc61860/sc61860.h"
#include "machine/nvram.h"
+#include "emupal.h"
#define CONTRAST (ioport("DSW0")->read() & 0x07)
diff --git a/src/mame/includes/pc1403.h b/src/mame/includes/pc1403.h
index fb579905c5c..8223728d380 100644
--- a/src/mame/includes/pc1403.h
+++ b/src/mame/includes/pc1403.h
@@ -14,6 +14,7 @@
#include "pocketc.h"
#include "cpu/sc61860/sc61860.h"
#include "machine/nvram.h"
+#include "emupal.h"
#define CONTRAST (ioport("DSW0")->read() & 0x07)
diff --git a/src/mame/includes/pc4.h b/src/mame/includes/pc4.h
index 5b781d0f864..f799382a865 100644
--- a/src/mame/includes/pc4.h
+++ b/src/mame/includes/pc4.h
@@ -11,8 +11,8 @@
#ifndef MAME_INCLUDES_PC4_H
#define MAME_INCLUDES_PC4_H
-
#include "sound/beep.h"
+#include "emupal.h"
class pc4_state : public driver_device
{
diff --git a/src/mame/includes/pc6001.h b/src/mame/includes/pc6001.h
index 03b4946e2c9..e7d0f841911 100644
--- a/src/mame/includes/pc6001.h
+++ b/src/mame/includes/pc6001.h
@@ -20,6 +20,7 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "speaker.h"
#include "screen.h"
diff --git a/src/mame/includes/pc8401a.h b/src/mame/includes/pc8401a.h
index 1c26310cfd4..17117a76819 100644
--- a/src/mame/includes/pc8401a.h
+++ b/src/mame/includes/pc8401a.h
@@ -18,6 +18,7 @@
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "screen.h"
#define SCREEN_TAG "screen"
diff --git a/src/mame/includes/pc9801.h b/src/mame/includes/pc9801.h
index 9f2c16e25b9..cd685f7104d 100644
--- a/src/mame/includes/pc9801.h
+++ b/src/mame/includes/pc9801.h
@@ -47,6 +47,7 @@
#include "machine/idehd.h"
#include "debugger.h"
+#include "emupal.h"
#include "screen.h"
#include "softlist.h"
#include "speaker.h"
diff --git a/src/mame/includes/pcktgal.h b/src/mame/includes/pcktgal.h
index 7715358bbb7..050be605ab8 100644
--- a/src/mame/includes/pcktgal.h
+++ b/src/mame/includes/pcktgal.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
#include "video/decbac06.h"
+#include "emupal.h"
class pcktgal_state : public driver_device
{
diff --git a/src/mame/includes/pcw.h b/src/mame/includes/pcw.h
index 696de68c244..21852d81d96 100644
--- a/src/mame/includes/pcw.h
+++ b/src/mame/includes/pcw.h
@@ -13,6 +13,7 @@
#include "machine/ram.h"
#include "machine/timer.h"
#include "sound/beep.h"
+#include "emupal.h"
#include "screen.h"
#define PCW_BORDER_HEIGHT 8
diff --git a/src/mame/includes/pcw16.h b/src/mame/includes/pcw16.h
index e2d4e4eaf5a..de075e79a41 100644
--- a/src/mame/includes/pcw16.h
+++ b/src/mame/includes/pcw16.h
@@ -21,6 +21,7 @@
#include "formats/pc_dsk.h"
#include "machine/ram.h"
#include "machine/timer.h"
+#include "emupal.h"
#define PCW16_BORDER_HEIGHT 8
#define PCW16_BORDER_WIDTH 8
diff --git a/src/mame/includes/pdp1.h b/src/mame/includes/pdp1.h
index bd0cd19223f..5342d016bfb 100644
--- a/src/mame/includes/pdp1.h
+++ b/src/mame/includes/pdp1.h
@@ -11,6 +11,7 @@
#include "cpu/pdp1/pdp1.h"
#include "video/crt.h"
+#include "emupal.h"
/* defines for each bit and mask in input port "CSW" */
enum
diff --git a/src/mame/includes/pgm.h b/src/mame/includes/pgm.h
index 117f67a16f6..9434e7de09b 100644
--- a/src/mame/includes/pgm.h
+++ b/src/mame/includes/pgm.h
@@ -17,6 +17,7 @@
#include "machine/timer.h"
#include "machine/v3021.h"
#include "sound/ics2115.h"
+#include "emupal.h"
#define PGMARM7LOGERROR 0
diff --git a/src/mame/includes/pgm2.h b/src/mame/includes/pgm2.h
index a2bf228538d..4658367dcf5 100644
--- a/src/mame/includes/pgm2.h
+++ b/src/mame/includes/pgm2.h
@@ -17,6 +17,7 @@
#include "machine/timer.h"
#include "machine/atmel_arm_aic.h"
#include "machine/pgm2_memcard.h"
+#include "emupal.h"
struct kov3_module_key
{
diff --git a/src/mame/includes/phoenix.h b/src/mame/includes/phoenix.h
index 083e0ae4432..e98d8e3f654 100644
--- a/src/mame/includes/phoenix.h
+++ b/src/mame/includes/phoenix.h
@@ -6,6 +6,7 @@
#pragma once
#include "audio/pleiads.h"
+#include "emupal.h"
class phoenix_state : public driver_device
{
diff --git a/src/mame/includes/pingpong.h b/src/mame/includes/pingpong.h
index 62b888cacdd..6fc95dbe9e4 100644
--- a/src/mame/includes/pingpong.h
+++ b/src/mame/includes/pingpong.h
@@ -2,6 +2,7 @@
// copyright-holders:Jarek Parchanski
#include "machine/timer.h"
+#include "emupal.h"
class pingpong_state : public driver_device
{
diff --git a/src/mame/includes/pirates.h b/src/mame/includes/pirates.h
index 0987aa29582..934258c0f86 100644
--- a/src/mame/includes/pirates.h
+++ b/src/mame/includes/pirates.h
@@ -2,6 +2,7 @@
// copyright-holders:David Haywood,Nicola Salmoria,Paul Priest
#include "machine/eepromser.h"
#include "sound/okim6295.h"
+#include "emupal.h"
class pirates_state : public driver_device
{
diff --git a/src/mame/includes/pitnrun.h b/src/mame/includes/pitnrun.h
index ea53f5a6227..df6747eb4a9 100644
--- a/src/mame/includes/pitnrun.h
+++ b/src/mame/includes/pitnrun.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Tomasz Slanina, Pierpaolo Prazzoli
+
+#include "emupal.h"
+
class pitnrun_state : public driver_device
{
public:
diff --git a/src/mame/includes/pk8000.h b/src/mame/includes/pk8000.h
index b4dc66176d2..3636f234ffe 100644
--- a/src/mame/includes/pk8000.h
+++ b/src/mame/includes/pk8000.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
+
+#include "emupal.h"
+
class pk8000_base_state : public driver_device
{
public:
diff --git a/src/mame/includes/pk8020.h b/src/mame/includes/pk8020.h
index c2e101a2471..19cf9aeec24 100644
--- a/src/mame/includes/pk8020.h
+++ b/src/mame/includes/pk8020.h
@@ -18,6 +18,7 @@
#include "machine/wd_fdc.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
class pk8020_state : public driver_device
diff --git a/src/mame/includes/pktgaldx.h b/src/mame/includes/pktgaldx.h
index 38411c3374d..7e6e8c91b45 100644
--- a/src/mame/includes/pktgaldx.h
+++ b/src/mame/includes/pktgaldx.h
@@ -9,6 +9,7 @@
#include "video/decospr.h"
#include "video/deco16ic.h"
#include "machine/deco104.h"
+#include "emupal.h"
class pktgaldx_state : public driver_device
{
diff --git a/src/mame/includes/playch10.h b/src/mame/includes/playch10.h
index a5c1450ce5a..f8efc7ebc0d 100644
--- a/src/mame/includes/playch10.h
+++ b/src/mame/includes/playch10.h
@@ -7,6 +7,7 @@
#include "machine/rp5h01.h"
#include "video/ppu2c0x.h"
+#include "emupal.h"
class playch10_state : public driver_device
{
diff --git a/src/mame/includes/playmark.h b/src/mame/includes/playmark.h
index 2add2a3fc3b..c44829f2445 100644
--- a/src/mame/includes/playmark.h
+++ b/src/mame/includes/playmark.h
@@ -4,6 +4,7 @@
#include "machine/eepromser.h"
#include "machine/ticket.h"
#include "cpu/pic16c5x/pic16c5x.h"
+#include "emupal.h"
class playmark_state : public driver_device
{
diff --git a/src/mame/includes/plygonet.h b/src/mame/includes/plygonet.h
index e286d76b451..92725cb9b1a 100644
--- a/src/mame/includes/plygonet.h
+++ b/src/mame/includes/plygonet.h
@@ -9,6 +9,7 @@
#include "machine/k054321.h"
#include "video/k053936.h"
#include "cpu/dsp56k/dsp56k.h"
+#include "emupal.h"
static const uint16_t dsp56k_bank00_size = 0x1000;
diff --git a/src/mame/includes/pmd85.h b/src/mame/includes/pmd85.h
index 2729d5ebb78..6f53c64ad55 100644
--- a/src/mame/includes/pmd85.h
+++ b/src/mame/includes/pmd85.h
@@ -14,6 +14,7 @@
#include "machine/i8255.h"
#include "imagedev/cassette.h"
#include "machine/ram.h"
+#include "emupal.h"
class pmd85_state : public driver_device
diff --git a/src/mame/includes/pocketc.h b/src/mame/includes/pocketc.h
index 52dd58145a7..c42ab4aa670 100644
--- a/src/mame/includes/pocketc.h
+++ b/src/mame/includes/pocketc.h
@@ -9,6 +9,8 @@
#ifndef MAME_INCLUDES_POCKETC_H
#define MAME_INCLUDES_POCKETC_H
+#include "emupal.h"
+
typedef const char *POCKETC_FIGURE[];
class pocketc_state : public driver_device
diff --git a/src/mame/includes/pokechmp.h b/src/mame/includes/pokechmp.h
index 2b9794cc78a..af6315d7e7e 100644
--- a/src/mame/includes/pokechmp.h
+++ b/src/mame/includes/pokechmp.h
@@ -2,6 +2,7 @@
// copyright-holders:David Haywood
#include "machine/gen_latch.h"
+#include "emupal.h"
class pokechmp_state : public driver_device
{
diff --git a/src/mame/includes/polepos.h b/src/mame/includes/polepos.h
index 5a3b553864e..93739d059f9 100644
--- a/src/mame/includes/polepos.h
+++ b/src/mame/includes/polepos.h
@@ -14,6 +14,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/namco.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/policetr.h b/src/mame/includes/policetr.h
index b6dd27c3ae3..a8a4fabd885 100644
--- a/src/mame/includes/policetr.h
+++ b/src/mame/includes/policetr.h
@@ -9,6 +9,7 @@
#include "cpu/mips/r3000.h"
#include "machine/eepromser.h"
#include "sound/bsmt2000.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/includes/polyplay.h b/src/mame/includes/polyplay.h
index 8357fe25fa6..7867ed878c3 100644
--- a/src/mame/includes/polyplay.h
+++ b/src/mame/includes/polyplay.h
@@ -8,6 +8,7 @@
#include "machine/z80pio.h"
#include "machine/z80sio.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#define POLYPLAY_MAIN_CLOCK XTAL(9'830'400)
diff --git a/src/mame/includes/poolshrk.h b/src/mame/includes/poolshrk.h
index 39c17cd2e28..6d2bb11d2b5 100644
--- a/src/mame/includes/poolshrk.h
+++ b/src/mame/includes/poolshrk.h
@@ -12,6 +12,7 @@
#include "machine/watchdog.h"
#include "sound/discrete.h"
+#include "emupal.h"
/* Discrete Sound Input Nodes */
diff --git a/src/mame/includes/pooyan.h b/src/mame/includes/pooyan.h
index f80e7599adc..e5d07cb0e87 100644
--- a/src/mame/includes/pooyan.h
+++ b/src/mame/includes/pooyan.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Allard van der Bas
+
+#include "emupal.h"
+
class pooyan_state : public driver_device
{
public:
diff --git a/src/mame/includes/popeye.h b/src/mame/includes/popeye.h
index fde4df516a2..28f47e396ad 100644
--- a/src/mame/includes/popeye.h
+++ b/src/mame/includes/popeye.h
@@ -4,6 +4,7 @@
#include "sound/ay8910.h"
#include "video/resnet.h"
+#include "emupal.h"
class tnx1_state : public driver_device
{
diff --git a/src/mame/includes/portrait.h b/src/mame/includes/portrait.h
index 8d3410ee5a0..b48ca8220d1 100644
--- a/src/mame/includes/portrait.h
+++ b/src/mame/includes/portrait.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Steve Ellenoff, Pierpaolo Prazzoli
#include "sound/tms5220.h"
+#include "emupal.h"
class portrait_state : public driver_device
{
diff --git a/src/mame/includes/powerins.h b/src/mame/includes/powerins.h
index 170037d4b9b..9fa14f603f4 100644
--- a/src/mame/includes/powerins.h
+++ b/src/mame/includes/powerins.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Luca Elia
#include "machine/nmk112.h"
+#include "emupal.h"
#include "screen.h"
class powerins_state : public driver_device
diff --git a/src/mame/includes/pp01.h b/src/mame/includes/pp01.h
index 874001abaa5..89f89688646 100644
--- a/src/mame/includes/pp01.h
+++ b/src/mame/includes/pp01.h
@@ -19,6 +19,7 @@
#include "sound/spkrdev.h"
//#include "sound/wave.h"
//#include "imagedev/cassette.h"
+#include "emupal.h"
class pp01_state : public driver_device
{
diff --git a/src/mame/includes/prehisle.h b/src/mame/includes/prehisle.h
index bf0ce853232..a575b0c0b8c 100644
--- a/src/mame/includes/prehisle.h
+++ b/src/mame/includes/prehisle.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "sound/upd7759.h"
+#include "emupal.h"
class prehisle_state : public driver_device
{
diff --git a/src/mame/includes/psikyo.h b/src/mame/includes/psikyo.h
index 7ddf3b0eade..d48cd304385 100644
--- a/src/mame/includes/psikyo.h
+++ b/src/mame/includes/psikyo.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
#include <algorithm>
diff --git a/src/mame/includes/psikyo4.h b/src/mame/includes/psikyo4.h
index 674aab9d950..fc1373a1324 100644
--- a/src/mame/includes/psikyo4.h
+++ b/src/mame/includes/psikyo4.h
@@ -9,6 +9,7 @@
#include "cpu/sh/sh2.h"
#include "sound/ymf278b.h"
#include "machine/eepromser.h"
+#include "emupal.h"
#include "screen.h"
#define MASTER_CLOCK 57272700 // main oscillator frequency
diff --git a/src/mame/includes/psikyosh.h b/src/mame/includes/psikyosh.h
index 6c4f2d8eabe..50eb9a081f7 100644
--- a/src/mame/includes/psikyosh.h
+++ b/src/mame/includes/psikyosh.h
@@ -3,6 +3,7 @@
#include "video/bufsprite.h"
#include "machine/eepromser.h"
#include "cpu/sh/sh2.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/psion.h b/src/mame/includes/psion.h
index cbaf7fd64c1..154600f842d 100644
--- a/src/mame/includes/psion.h
+++ b/src/mame/includes/psion.h
@@ -17,6 +17,7 @@
#include "machine/timer.h"
#include "video/hd44780.h"
#include "sound/beep.h"
+#include "emupal.h"
// ======================> psion_state
diff --git a/src/mame/includes/psychic5.h b/src/mame/includes/psychic5.h
index 25b1af8f5ba..69411e59bf2 100644
--- a/src/mame/includes/psychic5.h
+++ b/src/mame/includes/psychic5.h
@@ -4,6 +4,7 @@
#include "machine/bankdev.h"
#include "machine/timer.h"
#include "video/jalblend.h"
+#include "emupal.h"
class psychic5_state : public driver_device
{
diff --git a/src/mame/includes/punchout.h b/src/mame/includes/punchout.h
index 97c1ad01871..07584bf8a26 100644
--- a/src/mame/includes/punchout.h
+++ b/src/mame/includes/punchout.h
@@ -9,6 +9,7 @@
#include "machine/rp5c01.h"
#include "machine/rp5h01.h"
#include "sound/vlm5030.h"
+#include "emupal.h"
class punchout_state : public driver_device
{
diff --git a/src/mame/includes/px8.h b/src/mame/includes/px8.h
index 191f5922ddb..4ecae90d273 100644
--- a/src/mame/includes/px8.h
+++ b/src/mame/includes/px8.h
@@ -13,6 +13,7 @@
#include "machine/i8251.h"
#include "bus/epson_sio/pf10.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
diff --git a/src/mame/includes/qdrmfgp.h b/src/mame/includes/qdrmfgp.h
index 39665416597..1af14dca6d0 100644
--- a/src/mame/includes/qdrmfgp.h
+++ b/src/mame/includes/qdrmfgp.h
@@ -7,6 +7,7 @@
#include "machine/k053252.h"
#include "video/konami_helper.h"
#include "video/k054156_k054157_k056832.h"
+#include "emupal.h"
class qdrmfgp_state : public driver_device
{
diff --git a/src/mame/includes/quizdna.h b/src/mame/includes/quizdna.h
index 546e5bef068..dc5db132a7a 100644
--- a/src/mame/includes/quizdna.h
+++ b/src/mame/includes/quizdna.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Uki
+
+#include "emupal.h"
+
class quizdna_state : public driver_device
{
public:
diff --git a/src/mame/includes/radio86.h b/src/mame/includes/radio86.h
index 5ac8d1e82b6..0428d89349e 100644
--- a/src/mame/includes/radio86.h
+++ b/src/mame/includes/radio86.h
@@ -15,6 +15,7 @@
#include "imagedev/cassette.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
class radio86_state : public driver_device
diff --git a/src/mame/includes/raiden.h b/src/mame/includes/raiden.h
index 376b075ca53..a143e8e4bab 100644
--- a/src/mame/includes/raiden.h
+++ b/src/mame/includes/raiden.h
@@ -8,6 +8,7 @@
#include "audio/seibu.h"
#include "video/bufsprite.h"
+#include "emupal.h"
class raiden_state : public driver_device, protected seibu_sound_common
{
diff --git a/src/mame/includes/raiden2.h b/src/mame/includes/raiden2.h
index d7494517464..047860f919c 100644
--- a/src/mame/includes/raiden2.h
+++ b/src/mame/includes/raiden2.h
@@ -3,6 +3,7 @@
#include "audio/seibu.h"
#include "machine/seibucop/seibucop.h"
#include "video/seibu_crtc.h"
+#include "emupal.h"
class raiden2_state : public driver_device
{
diff --git a/src/mame/includes/rallyx.h b/src/mame/includes/rallyx.h
index d7f739742b7..201442d01ea 100644
--- a/src/mame/includes/rallyx.h
+++ b/src/mame/includes/rallyx.h
@@ -3,6 +3,7 @@
#include "audio/timeplt.h"
#include "sound/namco.h"
#include "sound/samples.h"
+#include "emupal.h"
struct jungler_star
{
diff --git a/src/mame/includes/rbisland.h b/src/mame/includes/rbisland.h
index 05deffe9296..069297c167d 100644
--- a/src/mame/includes/rbisland.h
+++ b/src/mame/includes/rbisland.h
@@ -16,6 +16,7 @@
#include "video/pc080sn.h"
#include "video/pc090oj.h"
#include "machine/timer.h"
+#include "emupal.h"
class rbisland_state : public driver_device
{
diff --git a/src/mame/includes/realbrk.h b/src/mame/includes/realbrk.h
index 5783fbe0bc2..fca04091437 100644
--- a/src/mame/includes/realbrk.h
+++ b/src/mame/includes/realbrk.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Luca Elia
#include "machine/tmp68301.h"
+#include "emupal.h"
#include "screen.h"
class realbrk_state : public driver_device
diff --git a/src/mame/includes/redclash.h b/src/mame/includes/redclash.h
index 4af1537c3df..58c9bce1f9f 100644
--- a/src/mame/includes/redclash.h
+++ b/src/mame/includes/redclash.h
@@ -11,6 +11,7 @@
#pragma once
#include "video/ladybug.h"
+#include "emupal.h"
// redclash/zerohour
diff --git a/src/mame/includes/retofinv.h b/src/mame/includes/retofinv.h
index a1c412ba0ed..516b0e4fa7f 100644
--- a/src/mame/includes/retofinv.h
+++ b/src/mame/includes/retofinv.h
@@ -4,7 +4,7 @@
#include "machine/taito68705interface.h"
#include "machine/gen_latch.h"
-
+#include "emupal.h"
class retofinv_state : public driver_device
{
diff --git a/src/mame/includes/rmnimbus.h b/src/mame/includes/rmnimbus.h
index 1b6dc593f59..eecb79175c8 100644
--- a/src/mame/includes/rmnimbus.h
+++ b/src/mame/includes/rmnimbus.h
@@ -23,6 +23,7 @@
#include "sound/ay8910.h"
#include "sound/msm5205.h"
#include "bus/centronics/ctronics.h"
+#include "emupal.h"
#include "screen.h"
#define MAINCPU_TAG "maincpu"
diff --git a/src/mame/includes/rockrage.h b/src/mame/includes/rockrage.h
index 2148347f572..5b510da6551 100644
--- a/src/mame/includes/rockrage.h
+++ b/src/mame/includes/rockrage.h
@@ -10,6 +10,7 @@
#include "sound/vlm5030.h"
#include "video/k007342.h"
#include "video/k007420.h"
+#include "emupal.h"
class rockrage_state : public driver_device
{
diff --git a/src/mame/includes/rocnrope.h b/src/mame/includes/rocnrope.h
index 1d36cc73e76..4906b40d0e5 100644
--- a/src/mame/includes/rocnrope.h
+++ b/src/mame/includes/rocnrope.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Chris Hardy
+
+#include "emupal.h"
+
class rocnrope_state : public driver_device
{
public:
diff --git a/src/mame/includes/rohga.h b/src/mame/includes/rohga.h
index 7ce0373beab..993286a5b60 100644
--- a/src/mame/includes/rohga.h
+++ b/src/mame/includes/rohga.h
@@ -14,6 +14,7 @@
#include "video/decospr.h"
#include "machine/deco146.h"
#include "machine/deco104.h"
+#include "emupal.h"
class rohga_state : public driver_device
{
diff --git a/src/mame/includes/rollrace.h b/src/mame/includes/rollrace.h
index 88e941c42b7..495c7b6e7b5 100644
--- a/src/mame/includes/rollrace.h
+++ b/src/mame/includes/rollrace.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Pierpaolo Prazzoli
+
+#include "emupal.h"
+
class rollrace_state : public driver_device
{
public:
diff --git a/src/mame/includes/route16.h b/src/mame/includes/route16.h
index 6d39d812a5b..0bcca29d347 100644
--- a/src/mame/includes/route16.h
+++ b/src/mame/includes/route16.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Zsolt Vasvari
#include "sound/sn76477.h"
+#include "emupal.h"
class route16_state : public driver_device
{
diff --git a/src/mame/includes/rpunch.h b/src/mame/includes/rpunch.h
index e9ad46495e6..8dc00f0ac98 100644
--- a/src/mame/includes/rpunch.h
+++ b/src/mame/includes/rpunch.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "sound/upd7759.h"
#include "video/vsystem_gga.h"
+#include "emupal.h"
#include "screen.h"
class rpunch_state : public driver_device
diff --git a/src/mame/includes/runaway.h b/src/mame/includes/runaway.h
index 79112c734cf..1205065c186 100644
--- a/src/mame/includes/runaway.h
+++ b/src/mame/includes/runaway.h
@@ -1,5 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Mike Balfour
+
+#include "emupal.h"
#include "screen.h"
class runaway_state : public driver_device
diff --git a/src/mame/includes/rungun.h b/src/mame/includes/rungun.h
index 2f948015b4b..d0c20986cb6 100644
--- a/src/mame/includes/rungun.h
+++ b/src/mame/includes/rungun.h
@@ -12,6 +12,7 @@
#include "video/k053936.h"
#include "machine/k054321.h"
#include "video/konami_helper.h"
+#include "emupal.h"
#include "screen.h"
class rungun_state : public driver_device
diff --git a/src/mame/includes/samcoupe.h b/src/mame/includes/samcoupe.h
index 983636b8761..1490f3c33af 100644
--- a/src/mame/includes/samcoupe.h
+++ b/src/mame/includes/samcoupe.h
@@ -19,6 +19,7 @@
#include "machine/ram.h"
#include "machine/wd_fdc.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
/* screen dimensions */
diff --git a/src/mame/includes/saturn.h b/src/mame/includes/saturn.h
index bc5bed44f73..0da6e1067ea 100644
--- a/src/mame/includes/saturn.h
+++ b/src/mame/includes/saturn.h
@@ -21,6 +21,7 @@
#include "debug/debugcmd.h"
#include "debugger.h"
+#include "emupal.h"
#include "screen.h"
class saturn_state : public driver_device
diff --git a/src/mame/includes/sauro.h b/src/mame/includes/sauro.h
index a99dbc660ad..00de48f5b9d 100644
--- a/src/mame/includes/sauro.h
+++ b/src/mame/includes/sauro.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "sound/sp0256.h"
+#include "emupal.h"
class sauro_state : public driver_device
{
diff --git a/src/mame/includes/sbasketb.h b/src/mame/includes/sbasketb.h
index aee4e458c68..e39bc740b4b 100644
--- a/src/mame/includes/sbasketb.h
+++ b/src/mame/includes/sbasketb.h
@@ -10,6 +10,7 @@
#include "sound/sn76496.h"
#include "sound/vlm5030.h"
+#include "emupal.h"
#include "screen.h"
class sbasketb_state : public driver_device
diff --git a/src/mame/includes/sbugger.h b/src/mame/includes/sbugger.h
index 696b316e233..ec4cd6d0290 100644
--- a/src/mame/includes/sbugger.h
+++ b/src/mame/includes/sbugger.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
+
+#include "emupal.h"
+
class sbugger_state : public driver_device
{
public:
diff --git a/src/mame/includes/scotrsht.h b/src/mame/includes/scotrsht.h
index d94515c14da..b149541f181 100644
--- a/src/mame/includes/scotrsht.h
+++ b/src/mame/includes/scotrsht.h
@@ -2,6 +2,7 @@
// copyright-holders:David Haywood, ???
#include "machine/gen_latch.h"
+#include "emupal.h"
class scotrsht_state : public driver_device
{
diff --git a/src/mame/includes/scramble.h b/src/mame/includes/scramble.h
index d7b2998b7da..a899b194d3f 100644
--- a/src/mame/includes/scramble.h
+++ b/src/mame/includes/scramble.h
@@ -7,6 +7,7 @@
#include "sound/digitalk.h"
#include "sound/flt_rc.h"
#include "sound/tms5110.h"
+#include "emupal.h"
class scramble_state : public galaxold_state
{
diff --git a/src/mame/includes/sderby.h b/src/mame/includes/sderby.h
index f1f0759633a..2d40e6cea98 100644
--- a/src/mame/includes/sderby.h
+++ b/src/mame/includes/sderby.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood, Roberto Fresca
+
+#include "emupal.h"
+
class sderby_state : public driver_device
{
public:
diff --git a/src/mame/includes/segag80r.h b/src/mame/includes/segag80r.h
index e1bd22e07a4..c20adbc5c98 100644
--- a/src/mame/includes/segag80r.h
+++ b/src/mame/includes/segag80r.h
@@ -16,6 +16,7 @@
#include "machine/segag80.h"
#include "sound/samples.h"
#include "sound/sn76496.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/segas24.h b/src/mame/includes/segas24.h
index 15b636fa7e3..c053f243147 100644
--- a/src/mame/includes/segas24.h
+++ b/src/mame/includes/segas24.h
@@ -7,6 +7,7 @@
#include "machine/timer.h"
#include "video/segaic24.h"
+#include "emupal.h"
#include "screen.h"
class segas24_state : public driver_device
diff --git a/src/mame/includes/segas32.h b/src/mame/includes/segas32.h
index ac46bd285f1..02c1bdf6fe6 100644
--- a/src/mame/includes/segas32.h
+++ b/src/mame/includes/segas32.h
@@ -13,6 +13,7 @@
#include "sound/multipcm.h"
#include "machine/s32comm.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/segaxbd.h b/src/mame/includes/segaxbd.h
index cc324dc34b4..11527adca94 100644
--- a/src/mame/includes/segaxbd.h
+++ b/src/mame/includes/segaxbd.h
@@ -21,6 +21,7 @@
#include "machine/mb3773.h"
#include "machine/watchdog.h"
#include "video/resnet.h"
+#include "emupal.h"
#include "screen.h"
// ======================> segaxbd_state
diff --git a/src/mame/includes/seibuspi.h b/src/mame/includes/seibuspi.h
index 33ea13e2c41..3f5a9c6b0f0 100644
--- a/src/mame/includes/seibuspi.h
+++ b/src/mame/includes/seibuspi.h
@@ -9,6 +9,7 @@
#include "machine/eepromser.h"
#include "machine/7200fifo.h"
#include "sound/okim6295.h"
+#include "emupal.h"
class seibuspi_state : public driver_device
{
diff --git a/src/mame/includes/seicross.h b/src/mame/includes/seicross.h
index c612423b988..49bea554df0 100644
--- a/src/mame/includes/seicross.h
+++ b/src/mame/includes/seicross.h
@@ -2,6 +2,7 @@
// copyright-holders:Nicola Salmoria
#include "machine/nvram.h"
#include "sound/dac.h"
+#include "emupal.h"
class seicross_state : public driver_device
{
diff --git a/src/mame/includes/senjyo.h b/src/mame/includes/senjyo.h
index 51141ffcc4e..404fa4416fa 100644
--- a/src/mame/includes/senjyo.h
+++ b/src/mame/includes/senjyo.h
@@ -4,6 +4,7 @@
#include "machine/z80daisy.h"
#include "machine/z80pio.h"
#include "machine/z80ctc.h"
+#include "emupal.h"
class senjyo_state : public driver_device
{
diff --git a/src/mame/includes/seta.h b/src/mame/includes/seta.h
index d8bc752e5e5..e91f8795e5e 100644
--- a/src/mame/includes/seta.h
+++ b/src/mame/includes/seta.h
@@ -16,6 +16,7 @@
#include "machine/upd4992.h"
#include "sound/x1_010.h"
#include "video/seta001.h"
+#include "emupal.h"
#define __uPD71054_TIMER 1
diff --git a/src/mame/includes/seta2.h b/src/mame/includes/seta2.h
index 08928dffe82..ea64b325776 100644
--- a/src/mame/includes/seta2.h
+++ b/src/mame/includes/seta2.h
@@ -14,6 +14,7 @@
#include "machine/upd4992.h"
#include "sound/okim9810.h"
#include "sound/x1_010.h"
+#include "emupal.h"
#include "screen.h"
class seta2_state : public driver_device
diff --git a/src/mame/includes/sf.h b/src/mame/includes/sf.h
index 40798053d0a..4ec2d943b46 100644
--- a/src/mame/includes/sf.h
+++ b/src/mame/includes/sf.h
@@ -8,6 +8,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class sf_state : public driver_device
{
diff --git a/src/mame/includes/shadfrce.h b/src/mame/includes/shadfrce.h
index 44ef7fa54b6..45fe4b4eaeb 100644
--- a/src/mame/includes/shadfrce.h
+++ b/src/mame/includes/shadfrce.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
class shadfrce_state : public driver_device
diff --git a/src/mame/includes/shangha3.h b/src/mame/includes/shangha3.h
index 2942c8313e4..a30a1261cc2 100644
--- a/src/mame/includes/shangha3.h
+++ b/src/mame/includes/shangha3.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
class shangha3_state : public driver_device
diff --git a/src/mame/includes/shangkid.h b/src/mame/includes/shangkid.h
index 588fcc00971..f7467cf1678 100644
--- a/src/mame/includes/shangkid.h
+++ b/src/mame/includes/shangkid.h
@@ -2,6 +2,7 @@
// copyright-holders:Phil Stroffolino
#include "sound/ay8910.h"
+#include "emupal.h"
class shangkid_state : public driver_device
{
diff --git a/src/mame/includes/shaolins.h b/src/mame/includes/shaolins.h
index c4312b0faf0..c6a53353879 100644
--- a/src/mame/includes/shaolins.h
+++ b/src/mame/includes/shaolins.h
@@ -2,6 +2,7 @@
// copyright-holders:Allard van der Bas
#include "machine/timer.h"
+#include "emupal.h"
class shaolins_state : public driver_device
{
diff --git a/src/mame/includes/shisen.h b/src/mame/includes/shisen.h
index cc219685d19..9d68584761d 100644
--- a/src/mame/includes/shisen.h
+++ b/src/mame/includes/shisen.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
#include "audio/m72.h"
+#include "emupal.h"
class shisen_state : public driver_device
{
diff --git a/src/mame/includes/shootout.h b/src/mame/includes/shootout.h
index 89f685842a6..d65164141d5 100644
--- a/src/mame/includes/shootout.h
+++ b/src/mame/includes/shootout.h
@@ -2,6 +2,7 @@
// copyright-holders:Ernesto Corvi, Phil Stroffolino, Bryan McPhail
#include "machine/gen_latch.h"
+#include "emupal.h"
class shootout_state : public driver_device
{
diff --git a/src/mame/includes/sidearms.h b/src/mame/includes/sidearms.h
index 90330dc312c..785e97afab7 100644
--- a/src/mame/includes/sidearms.h
+++ b/src/mame/includes/sidearms.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Paul Leaman, Curt Coder
#include "video/bufsprite.h"
+#include "emupal.h"
class sidearms_state : public driver_device
{
diff --git a/src/mame/includes/sidepckt.h b/src/mame/includes/sidepckt.h
index 98df4cc0ab8..14f032d294b 100644
--- a/src/mame/includes/sidepckt.h
+++ b/src/mame/includes/sidepckt.h
@@ -7,6 +7,7 @@
******************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class sidepckt_state : public driver_device
{
diff --git a/src/mame/includes/silkroad.h b/src/mame/includes/silkroad.h
index 74f9b3e924d..98c63cfbb8b 100644
--- a/src/mame/includes/silkroad.h
+++ b/src/mame/includes/silkroad.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood, R. Belmont
#include "sound/okim6295.h"
+#include "emupal.h"
class silkroad_state : public driver_device
{
diff --git a/src/mame/includes/simpl156.h b/src/mame/includes/simpl156.h
index 67fb63002a1..9ed461bc64e 100644
--- a/src/mame/includes/simpl156.h
+++ b/src/mame/includes/simpl156.h
@@ -10,6 +10,7 @@
#include "sound/okim6295.h"
#include "video/deco16ic.h"
#include "video/decospr.h"
+#include "emupal.h"
class simpl156_state : public driver_device
{
diff --git a/src/mame/includes/skydiver.h b/src/mame/includes/skydiver.h
index 2e8f27545be..eabb57afcd8 100644
--- a/src/mame/includes/skydiver.h
+++ b/src/mame/includes/skydiver.h
@@ -13,6 +13,7 @@
#include "machine/74259.h"
#include "machine/watchdog.h"
#include "sound/discrete.h"
+#include "emupal.h"
/* Discrete Sound Input Nodes */
#define SKYDIVER_RANGE_DATA NODE_01
diff --git a/src/mame/includes/skyfox.h b/src/mame/includes/skyfox.h
index 6585f441b74..a3bf37b4f40 100644
--- a/src/mame/includes/skyfox.h
+++ b/src/mame/includes/skyfox.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
class skyfox_state : public driver_device
diff --git a/src/mame/includes/skykid.h b/src/mame/includes/skykid.h
index 2783c2d849e..f3708f8a264 100644
--- a/src/mame/includes/skykid.h
+++ b/src/mame/includes/skykid.h
@@ -2,6 +2,7 @@
// copyright-holders:Manuel Abadia
#include "cpu/m6800/m6801.h"
#include "sound/namco.h"
+#include "emupal.h"
class skykid_state : public driver_device
{
diff --git a/src/mame/includes/skyraid.h b/src/mame/includes/skyraid.h
index c350c39a601..de71aa9dfbb 100644
--- a/src/mame/includes/skyraid.h
+++ b/src/mame/includes/skyraid.h
@@ -6,6 +6,7 @@
#pragma once
#include "sound/discrete.h"
+#include "emupal.h"
class skyraid_state : public driver_device
{
diff --git a/src/mame/includes/slapfght.h b/src/mame/includes/slapfght.h
index 522f8f873a3..5722e1846fc 100644
--- a/src/mame/includes/slapfght.h
+++ b/src/mame/includes/slapfght.h
@@ -9,6 +9,7 @@
#include "cpu/z80/z80.h"
#include "video/bufsprite.h"
#include "machine/taito68705interface.h"
+#include "emupal.h"
#include "screen.h"
class slapfght_state : public driver_device
diff --git a/src/mame/includes/slapshot.h b/src/mame/includes/slapshot.h
index 3981c7a4bbc..76628e2fd67 100644
--- a/src/mame/includes/slapshot.h
+++ b/src/mame/includes/slapshot.h
@@ -10,6 +10,7 @@
#include "machine/taitoio.h"
#include "video/tc0360pri.h"
#include "video/tc0480scp.h"
+#include "emupal.h"
struct slapshot_tempsprite
{
diff --git a/src/mame/includes/snk.h b/src/mame/includes/snk.h
index c6fe8609725..e885ba1d566 100644
--- a/src/mame/includes/snk.h
+++ b/src/mame/includes/snk.h
@@ -9,6 +9,7 @@
*************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
#include "screen.h"
class snk_state : public driver_device
diff --git a/src/mame/includes/snk6502.h b/src/mame/includes/snk6502.h
index 90612a1e5a1..7b14c36a46d 100644
--- a/src/mame/includes/snk6502.h
+++ b/src/mame/includes/snk6502.h
@@ -11,6 +11,7 @@
#pragma once
#include "machine/timer.h"
+#include "emupal.h"
class fantasy_sound_device;
diff --git a/src/mame/includes/snookr10.h b/src/mame/includes/snookr10.h
index 9b926174620..f604c334e9d 100644
--- a/src/mame/includes/snookr10.h
+++ b/src/mame/includes/snookr10.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Roberto Fresca
+
+#include "emupal.h"
+
class snookr10_state : public driver_device
{
public:
diff --git a/src/mame/includes/snowbros.h b/src/mame/includes/snowbros.h
index 44910f0a213..5777c5516fe 100644
--- a/src/mame/includes/snowbros.h
+++ b/src/mame/includes/snowbros.h
@@ -5,6 +5,7 @@
#include "machine/timer.h"
#include "sound/okim6295.h"
#include "video/kan_pand.h" // for the original pandora
+#include "emupal.h"
class snowbros_state : public driver_device
{
diff --git a/src/mame/includes/solomon.h b/src/mame/includes/solomon.h
index 37d133985ea..8e947d6a927 100644
--- a/src/mame/includes/solomon.h
+++ b/src/mame/includes/solomon.h
@@ -2,6 +2,7 @@
// copyright-holders:Mirko Buffoni
#include "machine/gen_latch.h"
+#include "emupal.h"
class solomon_state : public driver_device
{
diff --git a/src/mame/includes/sonson.h b/src/mame/includes/sonson.h
index 86c09a8db29..ade1bd5f319 100644
--- a/src/mame/includes/sonson.h
+++ b/src/mame/includes/sonson.h
@@ -6,6 +6,8 @@
*************************************************************************/
+#include "emupal.h"
+
class sonson_state : public driver_device
{
public:
diff --git a/src/mame/includes/spbactn.h b/src/mame/includes/spbactn.h
index ca6c73ae5e4..d9fb1ba1ff9 100644
--- a/src/mame/includes/spbactn.h
+++ b/src/mame/includes/spbactn.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "video/tecmo_spr.h"
#include "video/tecmo_mix.h"
+#include "emupal.h"
#include "screen.h"
class spbactn_state : public driver_device
diff --git a/src/mame/includes/spcforce.h b/src/mame/includes/spcforce.h
index 11ed0fe4861..f2f9b5694cf 100644
--- a/src/mame/includes/spcforce.h
+++ b/src/mame/includes/spcforce.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Zsolt Vasvari
+
#include "sound/sn76496.h"
+#include "emupal.h"
class spcforce_state : public driver_device
{
diff --git a/src/mame/includes/spdodgeb.h b/src/mame/includes/spdodgeb.h
index 51247f480ec..9b59bd0188c 100644
--- a/src/mame/includes/spdodgeb.h
+++ b/src/mame/includes/spdodgeb.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
class spdodgeb_state : public driver_device
diff --git a/src/mame/includes/special.h b/src/mame/includes/special.h
index 3af0b315ccc..a88b9ead896 100644
--- a/src/mame/includes/special.h
+++ b/src/mame/includes/special.h
@@ -24,6 +24,7 @@
#include "formats/rk_cas.h"
#include "machine/wd_fdc.h"
#include "machine/ram.h"
+#include "emupal.h"
class special_state : public driver_device
diff --git a/src/mame/includes/spectrum.h b/src/mame/includes/spectrum.h
index 015478568ac..322d97ad2a3 100644
--- a/src/mame/includes/spectrum.h
+++ b/src/mame/includes/spectrum.h
@@ -21,6 +21,7 @@
#include "machine/ram.h"
#include "machine/upd765.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
/* Spectrum crystals */
diff --git a/src/mame/includes/speedatk.h b/src/mame/includes/speedatk.h
index f61962540bf..bb0f220498d 100644
--- a/src/mame/includes/speedatk.h
+++ b/src/mame/includes/speedatk.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Angelo Salese, Pierpaolo Prazzoli
+
#include "video/mc6845.h"
+#include "emupal.h"
class speedatk_state : public driver_device
{
diff --git a/src/mame/includes/speedbal.h b/src/mame/includes/speedbal.h
index ddf3536893a..7273349c483 100644
--- a/src/mame/includes/speedbal.h
+++ b/src/mame/includes/speedbal.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Joseba Epalza
+
+#include "emupal.h"
+
class speedbal_state : public driver_device
{
public:
diff --git a/src/mame/includes/speedspn.h b/src/mame/includes/speedspn.h
index fb1f53a7471..325f863a4e9 100644
--- a/src/mame/includes/speedspn.h
+++ b/src/mame/includes/speedspn.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
+#include "emupal.h"
class speedspn_state : public driver_device
{
diff --git a/src/mame/includes/spiders.h b/src/mame/includes/spiders.h
index 6b1fe93db2a..6dc8438a578 100644
--- a/src/mame/includes/spiders.h
+++ b/src/mame/includes/spiders.h
@@ -9,6 +9,7 @@
#include "machine/6821pia.h"
#include "sound/discrete.h"
#include "video/mc6845.h"
+#include "emupal.h"
class spiders_state : public driver_device
{
diff --git a/src/mame/includes/splash.h b/src/mame/includes/splash.h
index dd9398884f9..11cc8c8b35d 100644
--- a/src/mame/includes/splash.h
+++ b/src/mame/includes/splash.h
@@ -5,6 +5,7 @@
#include "machine/gen_latch.h"
#include "machine/74259.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class splash_state : public driver_device
{
diff --git a/src/mame/includes/sprint2.h b/src/mame/includes/sprint2.h
index 0b0e0671aa9..9731bb53e7c 100644
--- a/src/mame/includes/sprint2.h
+++ b/src/mame/includes/sprint2.h
@@ -13,6 +13,7 @@
#include "machine/74259.h"
#include "machine/watchdog.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
/* Discrete Sound Input Nodes */
diff --git a/src/mame/includes/sprint4.h b/src/mame/includes/sprint4.h
index 343c587c954..f8703bfc48b 100644
--- a/src/mame/includes/sprint4.h
+++ b/src/mame/includes/sprint4.h
@@ -7,6 +7,7 @@
#include "machine/watchdog.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
class sprint4_state : public driver_device
diff --git a/src/mame/includes/sprint8.h b/src/mame/includes/sprint8.h
index d9149494453..c858b1e2c2d 100644
--- a/src/mame/includes/sprint8.h
+++ b/src/mame/includes/sprint8.h
@@ -8,6 +8,7 @@
#include "machine/74259.h"
#include "machine/timer.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
class sprint8_state : public driver_device
diff --git a/src/mame/includes/spy.h b/src/mame/includes/spy.h
index 5e284e3273a..8db0b067e1c 100644
--- a/src/mame/includes/spy.h
+++ b/src/mame/includes/spy.h
@@ -9,6 +9,7 @@
#include "video/k052109.h"
#include "video/k051960.h"
#include "video/konami_helper.h"
+#include "emupal.h"
class spy_state : public driver_device
{
diff --git a/src/mame/includes/srmp2.h b/src/mame/includes/srmp2.h
index 011a28ef847..a71fd497a3b 100644
--- a/src/mame/includes/srmp2.h
+++ b/src/mame/includes/srmp2.h
@@ -2,6 +2,7 @@
// copyright-holders:Yochizo, Takahiro Nogi
#include "sound/msm5205.h"
#include "video/seta001.h"
+#include "emupal.h"
struct iox_t
{
diff --git a/src/mame/includes/srumbler.h b/src/mame/includes/srumbler.h
index d79fffc5b84..5862bb28629 100644
--- a/src/mame/includes/srumbler.h
+++ b/src/mame/includes/srumbler.h
@@ -3,6 +3,7 @@
#include "machine/timer.h"
#include "video/bufsprite.h"
+#include "emupal.h"
class srumbler_state : public driver_device
{
diff --git a/src/mame/includes/sshangha.h b/src/mame/includes/sshangha.h
index a49d70e0039..52cef935b4a 100644
--- a/src/mame/includes/sshangha.h
+++ b/src/mame/includes/sshangha.h
@@ -3,6 +3,7 @@
#include "video/deco16ic.h"
#include "video/decospr.h"
#include "machine/deco146.h"
+#include "emupal.h"
class sshangha_state : public driver_device
{
diff --git a/src/mame/includes/sslam.h b/src/mame/includes/sslam.h
index 095243adb99..d89bcf0f7f0 100644
--- a/src/mame/includes/sslam.h
+++ b/src/mame/includes/sslam.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "sound/okim6295.h"
+#include "emupal.h"
class sslam_state : public driver_device
{
diff --git a/src/mame/includes/ssozumo.h b/src/mame/includes/ssozumo.h
index 4e0abd9c437..97a32df9e1f 100644
--- a/src/mame/includes/ssozumo.h
+++ b/src/mame/includes/ssozumo.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Takahiro Nogi
+#include "emupal.h"
+
class ssozumo_state : public driver_device
{
public:
diff --git a/src/mame/includes/sspeedr.h b/src/mame/includes/sspeedr.h
index baf62d1f373..4a895d97568 100644
--- a/src/mame/includes/sspeedr.h
+++ b/src/mame/includes/sspeedr.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Stefan Jokisch
+
+#include "emupal.h"
+
class sspeedr_state : public driver_device
{
public:
diff --git a/src/mame/includes/ssrj.h b/src/mame/includes/ssrj.h
index 2b29b02de93..e20f342aa4f 100644
--- a/src/mame/includes/ssrj.h
+++ b/src/mame/includes/ssrj.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Tomasz Slanina
+
+#include "emupal.h"
+
class ssrj_state : public driver_device
{
public:
diff --git a/src/mame/includes/ssv.h b/src/mame/includes/ssv.h
index dfb3fe1dfe8..cfb3ed2ebca 100644
--- a/src/mame/includes/ssv.h
+++ b/src/mame/includes/ssv.h
@@ -8,6 +8,7 @@
#include "machine/timer.h"
#include "machine/upd4701.h"
#include "sound/es5506.h"
+#include "emupal.h"
#include "screen.h"
class ssv_state : public driver_device
diff --git a/src/mame/includes/ssystem3.h b/src/mame/includes/ssystem3.h
index 2ffa5ecf631..bcbd7c061b8 100644
--- a/src/mame/includes/ssystem3.h
+++ b/src/mame/includes/ssystem3.h
@@ -10,6 +10,7 @@
#define MAME_INCLUDES_SSYSTEM3_H
#include "machine/6522via.h"
+#include "emupal.h"
struct playfield_t
diff --git a/src/mame/includes/stactics.h b/src/mame/includes/stactics.h
index 82481cb6282..52cf3013327 100644
--- a/src/mame/includes/stactics.h
+++ b/src/mame/includes/stactics.h
@@ -10,6 +10,7 @@
#include "machine/74259.h"
+#include "emupal.h"
class stactics_state : public driver_device
{
diff --git a/src/mame/includes/starcrus.h b/src/mame/includes/starcrus.h
index 219a143aa15..a7caa02b771 100644
--- a/src/mame/includes/starcrus.h
+++ b/src/mame/includes/starcrus.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Frank Palazzolo
#include "sound/samples.h"
+#include "emupal.h"
+
class starcrus_state : public driver_device
{
public:
diff --git a/src/mame/includes/starshp1.h b/src/mame/includes/starshp1.h
index c2ec5b00067..bdf2484f73c 100644
--- a/src/mame/includes/starshp1.h
+++ b/src/mame/includes/starshp1.h
@@ -31,6 +31,7 @@
#pragma once
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/stlforce.h b/src/mame/includes/stlforce.h
index 5cc4cd44c75..f8faf1966da 100644
--- a/src/mame/includes/stlforce.h
+++ b/src/mame/includes/stlforce.h
@@ -2,6 +2,7 @@
// copyright-holders:David Haywood
#include "machine/eepromser.h"
+#include "emupal.h"
class stlforce_state : public driver_device
{
diff --git a/src/mame/includes/sub.h b/src/mame/includes/sub.h
index 7eedaa418c8..eea664e068c 100644
--- a/src/mame/includes/sub.h
+++ b/src/mame/includes/sub.h
@@ -14,6 +14,7 @@ Submarine (c) 1985 Sigma
#include "machine/gen_latch.h"
#include "machine/watchdog.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/includes/subs.h b/src/mame/includes/subs.h
index 4be02524ac5..75ea487ab52 100644
--- a/src/mame/includes/subs.h
+++ b/src/mame/includes/subs.h
@@ -9,6 +9,7 @@
#define MAME_INCLUDES_SUBS_H
#include "sound/discrete.h"
+#include "emupal.h"
/* Discrete Sound Input Nodes */
#define SUBS_SONAR1_EN NODE_01
diff --git a/src/mame/includes/suna16.h b/src/mame/includes/suna16.h
index 0c91f7bddb5..4271a960e5f 100644
--- a/src/mame/includes/suna16.h
+++ b/src/mame/includes/suna16.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class suna16_state : public driver_device
diff --git a/src/mame/includes/suna8.h b/src/mame/includes/suna8.h
index c9ec0a49940..220869dd95c 100644
--- a/src/mame/includes/suna8.h
+++ b/src/mame/includes/suna8.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
#define TILEMAPS 0
diff --git a/src/mame/includes/super80.h b/src/mame/includes/super80.h
index bf8997d3786..32c8cd00b4e 100644
--- a/src/mame/includes/super80.h
+++ b/src/mame/includes/super80.h
@@ -19,6 +19,7 @@
#include "sound/spkrdev.h"
#include "sound/wave.h"
#include "video/mc6845.h"
+#include "emupal.h"
/* Bits in m_portf0 variable:
diff --git a/src/mame/includes/superchs.h b/src/mame/includes/superchs.h
index 4259c8785b4..75289581659 100644
--- a/src/mame/includes/superchs.h
+++ b/src/mame/includes/superchs.h
@@ -2,7 +2,7 @@
// copyright-holders:Bryan McPhail, David Graves
#include "machine/eepromser.h"
#include "video/tc0480scp.h"
-
+#include "emupal.h"
struct schs_tempsprite
{
diff --git a/src/mame/includes/superqix.h b/src/mame/includes/superqix.h
index 7f374ec778e..8f845890b6a 100644
--- a/src/mame/includes/superqix.h
+++ b/src/mame/includes/superqix.h
@@ -3,6 +3,7 @@
#include "sound/ay8910.h"
#include "sound/samples.h"
+#include "emupal.h"
class superqix_state_base : public driver_device
{
diff --git a/src/mame/includes/suprloco.h b/src/mame/includes/suprloco.h
index 58cdc5ac5c1..d83936072dc 100644
--- a/src/mame/includes/suprloco.h
+++ b/src/mame/includes/suprloco.h
@@ -2,6 +2,7 @@
// copyright-holders:Zsolt Vasvari
#include "machine/i8255.h"
+#include "emupal.h"
class suprloco_state : public driver_device
{
diff --git a/src/mame/includes/suprnova.h b/src/mame/includes/suprnova.h
index 440a612cfa6..d875bb60e9c 100644
--- a/src/mame/includes/suprnova.h
+++ b/src/mame/includes/suprnova.h
@@ -6,6 +6,8 @@
#include "cpu/sh/sh2.h"
+#include "emupal.h"
+
struct hit_t
{
diff --git a/src/mame/includes/suprridr.h b/src/mame/includes/suprridr.h
index feddab1708e..b304f0a5311 100644
--- a/src/mame/includes/suprridr.h
+++ b/src/mame/includes/suprridr.h
@@ -7,6 +7,7 @@
**************************************************************************/
#include "machine/gen_latch.h"
+#include "emupal.h"
class suprridr_state : public driver_device
{
diff --git a/src/mame/includes/surpratk.h b/src/mame/includes/surpratk.h
index da5dacc89e5..dd946c650f9 100644
--- a/src/mame/includes/surpratk.h
+++ b/src/mame/includes/surpratk.h
@@ -11,6 +11,7 @@
#include "video/k052109.h"
#include "video/k053251.h"
#include "video/konami_helper.h"
+#include "emupal.h"
class surpratk_state : public driver_device
{
diff --git a/src/mame/includes/svision.h b/src/mame/includes/svision.h
index 22f61f4d243..2285a7675f8 100644
--- a/src/mame/includes/svision.h
+++ b/src/mame/includes/svision.h
@@ -14,6 +14,7 @@
#include "audio/svis_snd.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
struct svision_t
{
diff --git a/src/mame/includes/system1.h b/src/mame/includes/system1.h
index fc1ddff36ae..b5822ba415b 100644
--- a/src/mame/includes/system1.h
+++ b/src/mame/includes/system1.h
@@ -6,6 +6,7 @@
#include "machine/i8255.h"
#include "machine/segacrp2_device.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class system1_state : public driver_device
diff --git a/src/mame/includes/tagteam.h b/src/mame/includes/tagteam.h
index 2a91877ad4e..e7984334465 100644
--- a/src/mame/includes/tagteam.h
+++ b/src/mame/includes/tagteam.h
@@ -2,6 +2,7 @@
// copyright-holders:Steve Ellenoff, Brad Oliver
#include "machine/gen_latch.h"
+#include "emupal.h"
class tagteam_state : public driver_device
{
diff --git a/src/mame/includes/tail2nos.h b/src/mame/includes/tail2nos.h
index c76299d9acf..36562b041cd 100644
--- a/src/mame/includes/tail2nos.h
+++ b/src/mame/includes/tail2nos.h
@@ -9,6 +9,7 @@
#include "machine/6850acia.h"
#include "machine/gen_latch.h"
#include "video/k051316.h"
+#include "emupal.h"
class tail2nos_state : public driver_device
{
diff --git a/src/mame/includes/taito_b.h b/src/mame/includes/taito_b.h
index 124206e0106..7d3099591bc 100644
--- a/src/mame/includes/taito_b.h
+++ b/src/mame/includes/taito_b.h
@@ -4,6 +4,7 @@
#include "machine/taitoio.h"
#include "video/hd63484.h"
#include "video/tc0180vcu.h"
+#include "emupal.h"
#include "screen.h"
class taitob_state : public driver_device
diff --git a/src/mame/includes/taito_f2.h b/src/mame/includes/taito_f2.h
index 9b84c1cba65..a318884a82c 100644
--- a/src/mame/includes/taito_f2.h
+++ b/src/mame/includes/taito_f2.h
@@ -16,6 +16,7 @@
#include "video/tc0360pri.h"
#include "video/tc0480scp.h"
#include "machine/timer.h"
+#include "emupal.h"
class taitof2_state : public driver_device
diff --git a/src/mame/includes/taito_f3.h b/src/mame/includes/taito_f3.h
index 7c641b7197c..e5353352883 100644
--- a/src/mame/includes/taito_f3.h
+++ b/src/mame/includes/taito_f3.h
@@ -3,6 +3,7 @@
#include "audio/taito_en.h"
#include "machine/watchdog.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
/* This it the best way to allow game specific kludges until the system is fully understood */
diff --git a/src/mame/includes/taito_h.h b/src/mame/includes/taito_h.h
index eb51021ed3a..4decc9bb6fd 100644
--- a/src/mame/includes/taito_h.h
+++ b/src/mame/includes/taito_h.h
@@ -7,6 +7,7 @@
*************************************************************************/
#include "machine/taitoio.h"
#include "video/tc0080vco.h"
+#include "emupal.h"
class taitoh_state : public driver_device
diff --git a/src/mame/includes/taito_l.h b/src/mame/includes/taito_l.h
index 3cdc8dd7648..8b45f6fa36f 100644
--- a/src/mame/includes/taito_l.h
+++ b/src/mame/includes/taito_l.h
@@ -6,6 +6,7 @@
#include "machine/upd4701.h"
#include "sound/msm5205.h"
#include "sound/2203intf.h"
+#include "emupal.h"
class taitol_state : public driver_device
diff --git a/src/mame/includes/taito_o.h b/src/mame/includes/taito_o.h
index 82785a407db..6b1aab2b42a 100644
--- a/src/mame/includes/taito_o.h
+++ b/src/mame/includes/taito_o.h
@@ -9,6 +9,7 @@
#include "machine/timer.h"
#include "machine/watchdog.h"
#include "video/tc0080vco.h"
+#include "emupal.h"
class taitoo_state : public driver_device
{
diff --git a/src/mame/includes/taitoair.h b/src/mame/includes/taitoair.h
index 1e13aa5356d..87c9d973176 100644
--- a/src/mame/includes/taitoair.h
+++ b/src/mame/includes/taitoair.h
@@ -9,6 +9,7 @@
#include "machine/taitoio.h"
#include "machine/taitoio_yoke.h"
#include "video/tc0080vco.h"
+#include "emupal.h"
#include "screen.h"
enum { TAITOAIR_FRAC_SHIFT = 16, TAITOAIR_POLY_MAX_PT = 16 };
diff --git a/src/mame/includes/taitojc.h b/src/mame/includes/taitojc.h
index 2fff534cb7e..71cc7ae7ef0 100644
--- a/src/mame/includes/taitojc.h
+++ b/src/mame/includes/taitojc.h
@@ -8,6 +8,7 @@
#include "video/tc0780fpa.h"
#include "machine/taitoio.h"
+#include "emupal.h"
#include "screen.h"
class taitojc_state : public driver_device
diff --git a/src/mame/includes/taitosj.h b/src/mame/includes/taitosj.h
index ec8b7906ef2..5be10d9e654 100644
--- a/src/mame/includes/taitosj.h
+++ b/src/mame/includes/taitosj.h
@@ -9,6 +9,7 @@
#include "sound/discrete.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/tandy2k.h b/src/mame/includes/tandy2k.h
index 9c9aafeb9bc..f20f696f1a2 100644
--- a/src/mame/includes/tandy2k.h
+++ b/src/mame/includes/tandy2k.h
@@ -22,6 +22,7 @@
#include "video/crt9007.h"
#include "video/crt9021.h"
#include "video/crt9212.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
#define I80186_TAG "u76"
diff --git a/src/mame/includes/tank8.h b/src/mame/includes/tank8.h
index 7f3363f2b39..35409db4f6c 100644
--- a/src/mame/includes/tank8.h
+++ b/src/mame/includes/tank8.h
@@ -11,6 +11,7 @@
#pragma once
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
/* Discrete Sound Input Nodes */
diff --git a/src/mame/includes/tankbatt.h b/src/mame/includes/tankbatt.h
index 7159d13f87a..57a0b86cb61 100644
--- a/src/mame/includes/tankbatt.h
+++ b/src/mame/includes/tankbatt.h
@@ -1,6 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Brad Oliver
+
#include "sound/samples.h"
+#include "emupal.h"
+
class tankbatt_state : public driver_device
{
public:
diff --git a/src/mame/includes/tankbust.h b/src/mame/includes/tankbust.h
index b5318ba3c70..c88230048db 100644
--- a/src/mame/includes/tankbust.h
+++ b/src/mame/includes/tankbust.h
@@ -1,5 +1,8 @@
// license:GPL-2.0+
// copyright-holders:Jarek Burczynski
+
+#include "emupal.h"
+
class tankbust_state : public driver_device
{
public:
diff --git a/src/mame/includes/targeth.h b/src/mame/includes/targeth.h
index 8871ba31d2e..11dbf403b21 100644
--- a/src/mame/includes/targeth.h
+++ b/src/mame/includes/targeth.h
@@ -6,6 +6,7 @@
#pragma once
#include "machine/74259.h"
+#include "emupal.h"
#include "screen.h"
class targeth_state : public driver_device
diff --git a/src/mame/includes/tatsumi.h b/src/mame/includes/tatsumi.h
index ce8d1cd7cdb..07a443435c7 100644
--- a/src/mame/includes/tatsumi.h
+++ b/src/mame/includes/tatsumi.h
@@ -6,6 +6,7 @@
#include "cpu/m68000/m68000.h"
#include "machine/cxd1095.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
class tatsumi_state : public driver_device
{
diff --git a/src/mame/includes/taxidriv.h b/src/mame/includes/taxidriv.h
index 544ef718d27..3e92cc20aeb 100644
--- a/src/mame/includes/taxidriv.h
+++ b/src/mame/includes/taxidriv.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
+
+#include "emupal.h"
+
class taxidriv_state : public driver_device
{
public:
diff --git a/src/mame/includes/tbowl.h b/src/mame/includes/tbowl.h
index 8752d164001..3c64f0dc1a0 100644
--- a/src/mame/includes/tbowl.h
+++ b/src/mame/includes/tbowl.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
#include "video/tecmo_spr.h"
+#include "emupal.h"
class tbowl_state : public driver_device
{
diff --git a/src/mame/includes/tceptor.h b/src/mame/includes/tceptor.h
index 272f74ee083..ad8261540c6 100644
--- a/src/mame/includes/tceptor.h
+++ b/src/mame/includes/tceptor.h
@@ -2,6 +2,7 @@
// copyright-holders:BUT
#include "sound/namco.h"
#include "video/c45.h"
+#include "emupal.h"
#include "screen.h"
class tceptor_state : public driver_device
diff --git a/src/mame/includes/tecmo.h b/src/mame/includes/tecmo.h
index 87afe08f7cf..a7605e6094d 100644
--- a/src/mame/includes/tecmo.h
+++ b/src/mame/includes/tecmo.h
@@ -3,6 +3,7 @@
#include "sound/msm5205.h"
#include "video/tecmo_spr.h"
+#include "emupal.h"
#include "screen.h"
class tecmo_state : public driver_device
diff --git a/src/mame/includes/tecmo16.h b/src/mame/includes/tecmo16.h
index 8531ae1ee6b..6bd6c36fe98 100644
--- a/src/mame/includes/tecmo16.h
+++ b/src/mame/includes/tecmo16.h
@@ -3,6 +3,7 @@
#include "video/tecmo_spr.h"
#include "video/tecmo_mix.h"
+#include "emupal.h"
#include "screen.h"
class tecmo16_state : public driver_device
diff --git a/src/mame/includes/tecmosys.h b/src/mame/includes/tecmosys.h
index 01922d91c81..52f4a2130e9 100644
--- a/src/mame/includes/tecmosys.h
+++ b/src/mame/includes/tecmosys.h
@@ -10,6 +10,7 @@
#include "machine/gen_latch.h"
#include "machine/input_merger.h"
#include "machine/watchdog.h"
+#include "emupal.h"
#include "screen.h"
class tecmosys_state : public driver_device
diff --git a/src/mame/includes/tehkanwc.h b/src/mame/includes/tehkanwc.h
index 64c3f863829..b629b1c6e88 100644
--- a/src/mame/includes/tehkanwc.h
+++ b/src/mame/includes/tehkanwc.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class tehkanwc_state : public driver_device
{
diff --git a/src/mame/includes/tek405x.h b/src/mame/includes/tek405x.h
index e4e806f5414..b1e2d2b154c 100644
--- a/src/mame/includes/tek405x.h
+++ b/src/mame/includes/tek405x.h
@@ -21,6 +21,8 @@
#include "video/vector.h"
+#include "emupal.h"
+
#define MC6800_TAG "u61"
#define MC6820_Y_TAG "u561"
diff --git a/src/mame/includes/terracre.h b/src/mame/includes/terracre.h
index f6082ee1c30..bb1b5b809e6 100644
--- a/src/mame/includes/terracre.h
+++ b/src/mame/includes/terracre.h
@@ -4,6 +4,7 @@
#include "machine/nb1412m2.h"
#include "machine/gen_latch.h"
#include "video/bufsprite.h"
+#include "emupal.h"
class terracre_state : public driver_device
{
diff --git a/src/mame/includes/tetrisp2.h b/src/mame/includes/tetrisp2.h
index dee2e96ca7a..e49dc498ea2 100644
--- a/src/mame/includes/tetrisp2.h
+++ b/src/mame/includes/tetrisp2.h
@@ -2,6 +2,7 @@
// copyright-holders:Luca Elia
#include "machine/gen_latch.h"
+#include "emupal.h"
class tetrisp2_state : public driver_device
{
diff --git a/src/mame/includes/thedeep.h b/src/mame/includes/thedeep.h
index 30180c0eda4..8e6dcac6fdd 100644
--- a/src/mame/includes/thedeep.h
+++ b/src/mame/includes/thedeep.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "video/decmxc06.h"
+#include "emupal.h"
class thedeep_state : public driver_device
diff --git a/src/mame/includes/thepit.h b/src/mame/includes/thepit.h
index 8813980eb05..2e6c43c96e8 100644
--- a/src/mame/includes/thepit.h
+++ b/src/mame/includes/thepit.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Zsolt Vasvari
+
+#include "emupal.h"
+
class thepit_state : public driver_device
{
public:
diff --git a/src/mame/includes/thief.h b/src/mame/includes/thief.h
index ae26628d7e1..8f402726200 100644
--- a/src/mame/includes/thief.h
+++ b/src/mame/includes/thief.h
@@ -2,6 +2,7 @@
// copyright-holders:Victor Trucco, Mike Balfour, Phil Stroffolino
#include "sound/samples.h"
#include "video/tms9927.h"
+#include "emupal.h"
struct coprocessor_t {
std::unique_ptr<uint8_t[]> context_ram;
diff --git a/src/mame/includes/thomson.h b/src/mame/includes/thomson.h
index ba3b4579564..d85f2fa4e37 100644
--- a/src/mame/includes/thomson.h
+++ b/src/mame/includes/thomson.h
@@ -37,6 +37,7 @@
#include "bus/generic/carts.h"
#include "bus/rs232/rs232.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/thoop2.h b/src/mame/includes/thoop2.h
index 9972edacb2c..4cbcec13893 100644
--- a/src/mame/includes/thoop2.h
+++ b/src/mame/includes/thoop2.h
@@ -6,6 +6,7 @@
#pragma once
#include "machine/74259.h"
+#include "emupal.h"
class thoop2_state : public driver_device
{
diff --git a/src/mame/includes/thunderx.h b/src/mame/includes/thunderx.h
index 93aa18ae2d0..5011083e3ef 100644
--- a/src/mame/includes/thunderx.h
+++ b/src/mame/includes/thunderx.h
@@ -11,6 +11,7 @@
#include "video/k052109.h"
#include "video/k051960.h"
#include "video/konami_helper.h"
+#include "emupal.h"
class thunderx_state : public driver_device
{
diff --git a/src/mame/includes/ti85.h b/src/mame/includes/ti85.h
index 7cbbb239274..d980df29c71 100644
--- a/src/mame/includes/ti85.h
+++ b/src/mame/includes/ti85.h
@@ -17,6 +17,7 @@
#include "machine/intelfsh.h"
#include "machine/nvram.h"
#include "video/t6a04.h"
+#include "emupal.h"
/* model */
diff --git a/src/mame/includes/ti89.h b/src/mame/includes/ti89.h
index 32e58d78411..bab2a627d34 100644
--- a/src/mame/includes/ti89.h
+++ b/src/mame/includes/ti89.h
@@ -11,6 +11,7 @@
#include "machine/intelfsh.h"
#include "machine/timer.h"
+#include "emupal.h"
class ti68k_state : public driver_device
{
diff --git a/src/mame/includes/tiamc1.h b/src/mame/includes/tiamc1.h
index 21164bbea73..a87f23e8fe7 100644
--- a/src/mame/includes/tiamc1.h
+++ b/src/mame/includes/tiamc1.h
@@ -7,6 +7,7 @@
#include "machine/pit8253.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
class tiamc1_state : public driver_device
{
diff --git a/src/mame/includes/tigeroad.h b/src/mame/includes/tigeroad.h
index e81dd2efbe9..af10c5a5693 100644
--- a/src/mame/includes/tigeroad.h
+++ b/src/mame/includes/tigeroad.h
@@ -15,6 +15,8 @@
#include "video/bufsprite.h"
+#include "emupal.h"
+
class tigeroad_state : public driver_device
{
diff --git a/src/mame/includes/tiki100.h b/src/mame/includes/tiki100.h
index ecf279ed632..1c28040d7bb 100644
--- a/src/mame/includes/tiki100.h
+++ b/src/mame/includes/tiki100.h
@@ -19,6 +19,7 @@
#include "machine/z80pio.h"
#include "machine/wd_fdc.h"
#include "sound/ay8910.h"
+#include "emupal.h"
#define Z80_TAG "z80"
#define Z80DART_TAG "z80dart"
diff --git a/src/mame/includes/timelimt.h b/src/mame/includes/timelimt.h
index 9a7aa3381e7..3472071a2a5 100644
--- a/src/mame/includes/timelimt.h
+++ b/src/mame/includes/timelimt.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Ernesto Corvi
+#include "emupal.h"
+
class timelimt_state : public driver_device
{
public:
diff --git a/src/mame/includes/timeplt.h b/src/mame/includes/timeplt.h
index c1b841dfe45..e4faaf06cfe 100644
--- a/src/mame/includes/timeplt.h
+++ b/src/mame/includes/timeplt.h
@@ -8,6 +8,7 @@
#include "machine/74259.h"
#include "sound/tc8830f.h"
+#include "emupal.h"
#include "screen.h"
class timeplt_state : public driver_device
diff --git a/src/mame/includes/tmnt.h b/src/mame/includes/tmnt.h
index b921a4d7c42..f301be85468 100644
--- a/src/mame/includes/tmnt.h
+++ b/src/mame/includes/tmnt.h
@@ -12,6 +12,7 @@
#include "video/k053936.h"
#include "video/k054000.h"
#include "video/konami_helper.h"
+#include "emupal.h"
class tmnt_state : public driver_device
{
diff --git a/src/mame/includes/tnzs.h b/src/mame/includes/tnzs.h
index ba15ac91114..e3a1aeedf91 100644
--- a/src/mame/includes/tnzs.h
+++ b/src/mame/includes/tnzs.h
@@ -13,6 +13,7 @@
#include "machine/bankdev.h"
#include "machine/gen_latch.h"
#include "machine/upd4701.h"
+#include "emupal.h"
#define MAX_SAMPLES 0x2f /* max samples */
diff --git a/src/mame/includes/toaplan1.h b/src/mame/includes/toaplan1.h
index b87151ea375..551f2f6e024 100644
--- a/src/mame/includes/toaplan1.h
+++ b/src/mame/includes/toaplan1.h
@@ -8,6 +8,7 @@
#include "cpu/m68000/m68000.h"
#include "sound/3812intf.h"
#include "video/toaplan_scu.h"
+#include "emupal.h"
#include "screen.h"
class toaplan1_state : public driver_device
diff --git a/src/mame/includes/toaplan2.h b/src/mame/includes/toaplan2.h
index e2b05651c55..1b69ce8cef7 100644
--- a/src/mame/includes/toaplan2.h
+++ b/src/mame/includes/toaplan2.h
@@ -13,6 +13,7 @@
#include "machine/upd4992.h"
#include "video/gp9001.h"
#include "sound/okim6295.h"
+#include "emupal.h"
#include "screen.h"
// We encode priority with colour in the tilemaps, so need a larger palette
diff --git a/src/mame/includes/toki.h b/src/mame/includes/toki.h
index a8630875f88..7c8b7b0e2fd 100644
--- a/src/mame/includes/toki.h
+++ b/src/mame/includes/toki.h
@@ -5,6 +5,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
#include "video/bufsprite.h"
+#include "emupal.h"
#include "screen.h"
class toki_state : public driver_device
diff --git a/src/mame/includes/tp84.h b/src/mame/includes/tp84.h
index 999e594e3cf..85fadf21534 100644
--- a/src/mame/includes/tp84.h
+++ b/src/mame/includes/tp84.h
@@ -7,6 +7,7 @@
#pragma once
#include "sound/flt_rc.h"
+#include "emupal.h"
#include "screen.h"
class tp84_state : public driver_device
diff --git a/src/mame/includes/trackfld.h b/src/mame/includes/trackfld.h
index caa590fabce..2be27ab032e 100644
--- a/src/mame/includes/trackfld.h
+++ b/src/mame/includes/trackfld.h
@@ -15,6 +15,7 @@
#include "sound/sn76496.h"
#include "sound/vlm5030.h"
+#include "emupal.h"
#include "screen.h"
class trackfld_state : public driver_device
diff --git a/src/mame/includes/travrusa.h b/src/mame/includes/travrusa.h
index 61d9c1f8e74..4f4ce8f418f 100644
--- a/src/mame/includes/travrusa.h
+++ b/src/mame/includes/travrusa.h
@@ -1,6 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Lee Taylor
// thanks-to:John Clegg,Tomasz Slanina
+
+#include "emupal.h"
+
class travrusa_state : public driver_device
{
public:
diff --git a/src/mame/includes/triplhnt.h b/src/mame/includes/triplhnt.h
index 3f0b5de52ed..297a2584681 100644
--- a/src/mame/includes/triplhnt.h
+++ b/src/mame/includes/triplhnt.h
@@ -14,6 +14,7 @@
#include "machine/watchdog.h"
#include "sound/discrete.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/trs80.h b/src/mame/includes/trs80.h
index 699af1e4243..e00e0e8e4d7 100644
--- a/src/mame/includes/trs80.h
+++ b/src/mame/includes/trs80.h
@@ -21,6 +21,7 @@
#include "machine/wd_fdc.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "formats/trs_cas.h"
diff --git a/src/mame/includes/trs80m2.h b/src/mame/includes/trs80m2.h
index 9288f90533a..54192583ecf 100644
--- a/src/mame/includes/trs80m2.h
+++ b/src/mame/includes/trs80m2.h
@@ -22,6 +22,7 @@
#include "machine/z80pio.h"
#include "machine/z80dart.h"
#include "video/mc6845.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
#define Z80_TAG "u12"
diff --git a/src/mame/includes/truco.h b/src/mame/includes/truco.h
index b4eb37dd8fc..48ae4bbf182 100644
--- a/src/mame/includes/truco.h
+++ b/src/mame/includes/truco.h
@@ -3,6 +3,7 @@
#include "machine/watchdog.h"
#include "sound/dac.h"
+#include "emupal.h"
class truco_state : public driver_device
{
diff --git a/src/mame/includes/trucocl.h b/src/mame/includes/trucocl.h
index 86bb1cc12fc..5e6d4750bf6 100644
--- a/src/mame/includes/trucocl.h
+++ b/src/mame/includes/trucocl.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Ernesto Corvi
+
#include "sound/dac.h"
+#include "emupal.h"
class trucocl_state : public driver_device
{
diff --git a/src/mame/includes/tryout.h b/src/mame/includes/tryout.h
index c921d0f38a5..aa907435ee0 100644
--- a/src/mame/includes/tryout.h
+++ b/src/mame/includes/tryout.h
@@ -2,6 +2,7 @@
// copyright-holders:Pierpaolo Prazzoli, Bryan McPhail
#include "machine/gen_latch.h"
+#include "emupal.h"
class tryout_state : public driver_device
{
diff --git a/src/mame/includes/tsamurai.h b/src/mame/includes/tsamurai.h
index c34255e577d..70f44a0ff12 100644
--- a/src/mame/includes/tsamurai.h
+++ b/src/mame/includes/tsamurai.h
@@ -2,6 +2,7 @@
// copyright-holders:Phil Stroffolino
#include "machine/gen_latch.h"
+#include "emupal.h"
class tsamurai_state : public driver_device
{
diff --git a/src/mame/includes/tubep.h b/src/mame/includes/tubep.h
index f1cd24684f5..d42bcc1e9fc 100644
--- a/src/mame/includes/tubep.h
+++ b/src/mame/includes/tubep.h
@@ -1,6 +1,7 @@
// license:GPL-2.0+
// copyright-holders:Jarek Burczynski
#include "sound/msm5205.h"
+#include "emupal.h"
#include "screen.h"
class tubep_state : public driver_device
diff --git a/src/mame/includes/tumbleb.h b/src/mame/includes/tumbleb.h
index 827a4e55927..0e97631c75a 100644
--- a/src/mame/includes/tumbleb.h
+++ b/src/mame/includes/tumbleb.h
@@ -4,6 +4,7 @@
#include "machine/gen_latch.h"
#include "video/decospr.h"
#include "sound/okim6295.h"
+#include "emupal.h"
class tumbleb_state : public driver_device
{
diff --git a/src/mame/includes/tunhunt.h b/src/mame/includes/tunhunt.h
index 1023c7d8ea8..d710da265fb 100644
--- a/src/mame/includes/tunhunt.h
+++ b/src/mame/includes/tunhunt.h
@@ -5,6 +5,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
class tunhunt_state : public driver_device
diff --git a/src/mame/includes/turbo.h b/src/mame/includes/turbo.h
index e8b3cb3b0e8..91986395736 100644
--- a/src/mame/includes/turbo.h
+++ b/src/mame/includes/turbo.h
@@ -10,6 +10,7 @@
#include "machine/i8255.h"
#include "sound/discrete.h"
#include "sound/samples.h"
+#include "emupal.h"
#include "screen.h"
/* sprites are scaled in the analog domain; to give a better */
diff --git a/src/mame/includes/tutankhm.h b/src/mame/includes/tutankhm.h
index 06fd1908502..e73cb4f288d 100644
--- a/src/mame/includes/tutankhm.h
+++ b/src/mame/includes/tutankhm.h
@@ -2,6 +2,7 @@
// copyright-holders:Mirko Buffoni
#include "audio/timeplt.h"
+#include "emupal.h"
class tutankhm_state : public driver_device
{
diff --git a/src/mame/includes/twin16.h b/src/mame/includes/twin16.h
index dcb905d4e48..06d5b1609d3 100644
--- a/src/mame/includes/twin16.h
+++ b/src/mame/includes/twin16.h
@@ -3,6 +3,7 @@
#include "video/bufsprite.h"
#include "sound/upd7759.h"
#include "sound/k007232.h"
+#include "emupal.h"
#include "screen.h"
class twin16_state : public driver_device
diff --git a/src/mame/includes/twincobr.h b/src/mame/includes/twincobr.h
index 1b989a31c69..00beac8901f 100644
--- a/src/mame/includes/twincobr.h
+++ b/src/mame/includes/twincobr.h
@@ -8,6 +8,7 @@
#include "video/mc6845.h"
#include "video/bufsprite.h"
#include "video/toaplan_scu.h"
+#include "emupal.h"
#include "screen.h"
class twincobr_state : public driver_device
diff --git a/src/mame/includes/tx0.h b/src/mame/includes/tx0.h
index 65b141269fe..288f79697e3 100644
--- a/src/mame/includes/tx0.h
+++ b/src/mame/includes/tx0.h
@@ -11,6 +11,7 @@
#include "video/crt.h"
#include "cpu/pdp1/tx0.h"
+#include "emupal.h"
enum state_t
{
diff --git a/src/mame/includes/tx1.h b/src/mame/includes/tx1.h
index 0ab077046d8..93e122e0f27 100644
--- a/src/mame/includes/tx1.h
+++ b/src/mame/includes/tx1.h
@@ -10,6 +10,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
#include "audio/tx1.h"
diff --git a/src/mame/includes/ultratnk.h b/src/mame/includes/ultratnk.h
index b6bc0629b66..83015b92cd6 100644
--- a/src/mame/includes/ultratnk.h
+++ b/src/mame/includes/ultratnk.h
@@ -12,6 +12,7 @@
#include "machine/watchdog.h"
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
class ultratnk_state : public driver_device
diff --git a/src/mame/includes/undrfire.h b/src/mame/includes/undrfire.h
index c540b354323..0709fc4e701 100644
--- a/src/mame/includes/undrfire.h
+++ b/src/mame/includes/undrfire.h
@@ -4,6 +4,7 @@
#include "machine/eepromser.h"
#include "video/tc0100scn.h"
#include "video/tc0480scp.h"
+#include "emupal.h"
struct uf_tempsprite
{
diff --git a/src/mame/includes/unico.h b/src/mame/includes/unico.h
index c7234827303..a83bf238568 100644
--- a/src/mame/includes/unico.h
+++ b/src/mame/includes/unico.h
@@ -7,6 +7,7 @@
#include "sound/okim6295.h"
#include "machine/eepromser.h"
+#include "emupal.h"
#include "screen.h"
class unico_state : public driver_device
diff --git a/src/mame/includes/usgames.h b/src/mame/includes/usgames.h
index e5caedfbae1..136303e8166 100644
--- a/src/mame/includes/usgames.h
+++ b/src/mame/includes/usgames.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood, Nicola Salmoria
+
+#include "emupal.h"
+
class usgames_state : public driver_device
{
public:
diff --git a/src/mame/includes/ut88.h b/src/mame/includes/ut88.h
index cf55789a581..776b6553ff7 100644
--- a/src/mame/includes/ut88.h
+++ b/src/mame/includes/ut88.h
@@ -14,6 +14,7 @@
#include "sound/wave.h"
#include "machine/i8255.h"
#include "imagedev/cassette.h"
+#include "emupal.h"
class ut88_state : public driver_device
diff --git a/src/mame/includes/v1050.h b/src/mame/includes/v1050.h
index ef8d31c3647..f16e593febc 100644
--- a/src/mame/includes/v1050.h
+++ b/src/mame/includes/v1050.h
@@ -23,6 +23,7 @@
#include "machine/v1050kb.h"
#include "machine/wd_fdc.h"
#include "video/mc6845.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
diff --git a/src/mame/includes/vaportra.h b/src/mame/includes/vaportra.h
index 8970c96ad40..d04725d314d 100644
--- a/src/mame/includes/vaportra.h
+++ b/src/mame/includes/vaportra.h
@@ -15,6 +15,7 @@
#include "video/bufsprite.h"
#include "video/deco16ic.h"
#include "video/decmxc06.h"
+#include "emupal.h"
class vaportra_state : public driver_device
{
diff --git a/src/mame/includes/vastar.h b/src/mame/includes/vastar.h
index 6d2e05927a6..8b552b7ffa4 100644
--- a/src/mame/includes/vastar.h
+++ b/src/mame/includes/vastar.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Allard van der Bas
+
+#include "emupal.h"
+
class vastar_state : public driver_device
{
public:
diff --git a/src/mame/includes/vball.h b/src/mame/includes/vball.h
index b2028152ca5..2b3e457245e 100644
--- a/src/mame/includes/vball.h
+++ b/src/mame/includes/vball.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class vball_state : public driver_device
diff --git a/src/mame/includes/vc4000.h b/src/mame/includes/vc4000.h
index f66805015fe..d472052f55c 100644
--- a/src/mame/includes/vc4000.h
+++ b/src/mame/includes/vc4000.h
@@ -19,6 +19,7 @@
#include "bus/vc4000/slot.h"
#include "bus/vc4000/rom.h"
+#include "emupal.h"
#include "screen.h"
// define this to use digital inputs instead of the slow
diff --git a/src/mame/includes/vector06.h b/src/mame/includes/vector06.h
index 3becb24b913..6023fcd06fd 100644
--- a/src/mame/includes/vector06.h
+++ b/src/mame/includes/vector06.h
@@ -25,6 +25,7 @@
#include "sound/ay8910.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#include "screen.h"
class vector06_state : public driver_device
diff --git a/src/mame/includes/vendetta.h b/src/mame/includes/vendetta.h
index f5616185fad..a232d005ad4 100644
--- a/src/mame/includes/vendetta.h
+++ b/src/mame/includes/vendetta.h
@@ -12,6 +12,7 @@
#include "video/k052109.h"
#include "video/k053251.h"
#include "video/konami_helper.h"
+#include "emupal.h"
class vendetta_state : public driver_device
{
diff --git a/src/mame/includes/victory.h b/src/mame/includes/victory.h
index 1cef411ab4d..33a6969ccf2 100644
--- a/src/mame/includes/victory.h
+++ b/src/mame/includes/victory.h
@@ -10,6 +10,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/videopin.h b/src/mame/includes/videopin.h
index adf911badd6..6c491b129c9 100644
--- a/src/mame/includes/videopin.h
+++ b/src/mame/includes/videopin.h
@@ -11,6 +11,7 @@
#pragma once
#include "sound/discrete.h"
+#include "emupal.h"
#include "screen.h"
/* Discrete Sound Input Nodes */
diff --git a/src/mame/includes/vigilant.h b/src/mame/includes/vigilant.h
index 56b9768f3a9..c6a0c4dc224 100644
--- a/src/mame/includes/vigilant.h
+++ b/src/mame/includes/vigilant.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Mike Balfour
#include "audio/m72.h"
+#include "emupal.h"
class vigilant_state : public driver_device
{
diff --git a/src/mame/includes/vixen.h b/src/mame/includes/vixen.h
index 0d1fe89b446..f4a3792de3e 100644
--- a/src/mame/includes/vixen.h
+++ b/src/mame/includes/vixen.h
@@ -14,6 +14,7 @@
#include "machine/ram.h"
#include "machine/wd_fdc.h"
#include "sound/discrete.h"
+#include "emupal.h"
#define Z8400A_TAG "5f"
#define FDC1797_TAG "5n"
diff --git a/src/mame/includes/vtech2.h b/src/mame/includes/vtech2.h
index b6020b4d3e9..6acf6890647 100644
--- a/src/mame/includes/vtech2.h
+++ b/src/mame/includes/vtech2.h
@@ -14,6 +14,7 @@
#include "imagedev/cassette.h"
#include "imagedev/flopdrv.h"
#include "sound/spkrdev.h"
+#include "emupal.h"
#define TRKSIZE_FM 3172 /* size of a standard FM mode track */
diff --git a/src/mame/includes/vulgus.h b/src/mame/includes/vulgus.h
index 5acacecf507..f3bbe707028 100644
--- a/src/mame/includes/vulgus.h
+++ b/src/mame/includes/vulgus.h
@@ -6,6 +6,8 @@
***************************************************************************/
+#include "emupal.h"
+
class vulgus_state : public driver_device
{
public:
diff --git a/src/mame/includes/warpwarp.h b/src/mame/includes/warpwarp.h
index 41d5b6bb0ca..12c0996dc33 100644
--- a/src/mame/includes/warpwarp.h
+++ b/src/mame/includes/warpwarp.h
@@ -4,6 +4,7 @@
#include "machine/watchdog.h"
#include "audio/geebee.h"
#include "audio/warpwarp.h"
+#include "emupal.h"
class warpwarp_state : public driver_device
{
diff --git a/src/mame/includes/warriorb.h b/src/mame/includes/warriorb.h
index dce39a1d0fb..b0b45c75465 100644
--- a/src/mame/includes/warriorb.h
+++ b/src/mame/includes/warriorb.h
@@ -11,6 +11,7 @@
#include "sound/flt_vol.h"
#include "video/tc0100scn.h"
#include "video/tc0110pcr.h"
+#include "emupal.h"
class warriorb_state : public driver_device
diff --git a/src/mame/includes/wc90.h b/src/mame/includes/wc90.h
index 5a9e80cd80c..7cd993b8bd5 100644
--- a/src/mame/includes/wc90.h
+++ b/src/mame/includes/wc90.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "video/tecmo_spr.h"
+#include "emupal.h"
class wc90_state : public driver_device
{
diff --git a/src/mame/includes/wc90b.h b/src/mame/includes/wc90b.h
index 68c4d61c0fe..ec1aec4fa0c 100644
--- a/src/mame/includes/wc90b.h
+++ b/src/mame/includes/wc90b.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class wc90b_state : public driver_device
{
diff --git a/src/mame/includes/wecleman.h b/src/mame/includes/wecleman.h
index a0532cc7335..4fe07797f48 100644
--- a/src/mame/includes/wecleman.h
+++ b/src/mame/includes/wecleman.h
@@ -8,6 +8,7 @@
#include "machine/timer.h"
#include "sound/k007232.h"
#include "video/k051316.h"
+#include "emupal.h"
#include "screen.h"
class wecleman_state : public driver_device
diff --git a/src/mame/includes/wgp.h b/src/mame/includes/wgp.h
index 348912942f2..eed6a2ba83b 100644
--- a/src/mame/includes/wgp.h
+++ b/src/mame/includes/wgp.h
@@ -9,6 +9,7 @@
#include "audio/taitosnd.h"
#include "machine/taitoio.h"
#include "video/tc0100scn.h"
+#include "emupal.h"
class wgp_state : public driver_device
diff --git a/src/mame/includes/williams.h b/src/mame/includes/williams.h
index edd172957de..02d24197b7b 100644
--- a/src/mame/includes/williams.h
+++ b/src/mame/includes/williams.h
@@ -16,6 +16,7 @@
#include "machine/6821pia.h"
#include "machine/bankdev.h"
#include "audio/williams.h"
+#include "emupal.h"
#include "screen.h"
class williams_state : public driver_device
diff --git a/src/mame/includes/wiping.h b/src/mame/includes/wiping.h
index 195a58ef1cf..3e46963f3b0 100644
--- a/src/mame/includes/wiping.h
+++ b/src/mame/includes/wiping.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Allard van der Bas
+
+#include "emupal.h"
+
class wiping_state : public driver_device
{
public:
diff --git a/src/mame/includes/witch.h b/src/mame/includes/witch.h
index 1e01cd94f1d..c1170fad725 100644
--- a/src/mame/includes/witch.h
+++ b/src/mame/includes/witch.h
@@ -17,6 +17,7 @@ Witch / Pinball Champ '95 / Keirin Ou
#include "sound/ay8910.h"
#include "sound/2203intf.h"
#include "sound/es8712.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/includes/wiz.h b/src/mame/includes/wiz.h
index f0fa08f239f..071706c1975 100644
--- a/src/mame/includes/wiz.h
+++ b/src/mame/includes/wiz.h
@@ -7,6 +7,7 @@
***************************************************************************/
#include "sound/discrete.h"
+#include "emupal.h"
class wiz_state : public driver_device
{
diff --git a/src/mame/includes/wolfpack.h b/src/mame/includes/wolfpack.h
index 663e3c1edfc..ded58e096eb 100644
--- a/src/mame/includes/wolfpack.h
+++ b/src/mame/includes/wolfpack.h
@@ -11,6 +11,7 @@
#pragma once
#include "sound/s14001a.h"
+#include "emupal.h"
#include "screen.h"
class wolfpack_state : public driver_device
diff --git a/src/mame/includes/wrally.h b/src/mame/includes/wrally.h
index 3966cfe93b6..3982185b3ce 100644
--- a/src/mame/includes/wrally.h
+++ b/src/mame/includes/wrally.h
@@ -6,6 +6,7 @@
#pragma once
#include "machine/74259.h"
+#include "emupal.h"
class wrally_state : public driver_device
{
diff --git a/src/mame/includes/wswan.h b/src/mame/includes/wswan.h
index 79f09e2a345..01a9a20c38f 100644
--- a/src/mame/includes/wswan.h
+++ b/src/mame/includes/wswan.h
@@ -21,6 +21,7 @@
#include "video/wswan.h"
#include "bus/wswan/slot.h"
#include "bus/wswan/rom.h"
+#include "emupal.h"
class wswan_state : public driver_device
diff --git a/src/mame/includes/wwfsstar.h b/src/mame/includes/wwfsstar.h
index 7c07a0f20d0..b3f843c34f3 100644
--- a/src/mame/includes/wwfsstar.h
+++ b/src/mame/includes/wwfsstar.h
@@ -3,6 +3,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class wwfsstar_state : public driver_device
diff --git a/src/mame/includes/x07.h b/src/mame/includes/x07.h
index 9b766bff548..31b58ef3106 100644
--- a/src/mame/includes/x07.h
+++ b/src/mame/includes/x07.h
@@ -17,6 +17,7 @@
#include "formats/x07_cas.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
+#include "emupal.h"
#include "rendlay.h"
//default value for user defined keys, taken for official documentation
diff --git a/src/mame/includes/x1.h b/src/mame/includes/x1.h
index ff6206335a3..3595e6bc62e 100644
--- a/src/mame/includes/x1.h
+++ b/src/mame/includes/x1.h
@@ -31,6 +31,7 @@
#include "formats/x1_tap.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/includes/x68k.h b/src/mame/includes/x68k.h
index 6339113c26b..34d9076b54f 100644
--- a/src/mame/includes/x68k.h
+++ b/src/mame/includes/x68k.h
@@ -24,6 +24,7 @@
#include "sound/ym2151.h"
#include "bus/x68k/x68kexp.h"
+#include "emupal.h"
#include "screen.h"
#define MC68901_TAG "mc68901"
diff --git a/src/mame/includes/xain.h b/src/mame/includes/xain.h
index a72634fdae4..ab4eefec77d 100644
--- a/src/mame/includes/xain.h
+++ b/src/mame/includes/xain.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class xain_state : public driver_device
diff --git a/src/mame/includes/xavix.h b/src/mame/includes/xavix.h
index 73b86fba569..8bac9e0be4e 100644
--- a/src/mame/includes/xavix.h
+++ b/src/mame/includes/xavix.h
@@ -6,6 +6,7 @@
#include "cpu/m6502/xavix.h"
#include "cpu/m6502/xavix2000.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "machine/bankdev.h"
diff --git a/src/mame/includes/xerox820.h b/src/mame/includes/xerox820.h
index f3d657da253..6b626039b0b 100644
--- a/src/mame/includes/xerox820.h
+++ b/src/mame/includes/xerox820.h
@@ -23,6 +23,7 @@
#include "sound/spkrdev.h"
#include "sound/beep.h"
#include "imagedev/snapquik.h"
+#include "emupal.h"
#define SCREEN_TAG "screen"
diff --git a/src/mame/includes/xexex.h b/src/mame/includes/xexex.h
index d04040a0cbc..72e2554b6c6 100644
--- a/src/mame/includes/xexex.h
+++ b/src/mame/includes/xexex.h
@@ -17,6 +17,7 @@
#include "video/konami_helper.h"
#include "machine/k054321.h"
#include "machine/timer.h"
+#include "emupal.h"
#include "screen.h"
class xexex_state : public driver_device
diff --git a/src/mame/includes/xorworld.h b/src/mame/includes/xorworld.h
index 832ca347e81..8e0681b5c1a 100644
--- a/src/mame/includes/xorworld.h
+++ b/src/mame/includes/xorworld.h
@@ -1,6 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Manuel Abadia
+
#include "machine/eepromser.h"
+#include "emupal.h"
class xorworld_state : public driver_device
{
diff --git a/src/mame/includes/xxmissio.h b/src/mame/includes/xxmissio.h
index d021b99954a..9284bbecaff 100644
--- a/src/mame/includes/xxmissio.h
+++ b/src/mame/includes/xxmissio.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:Uki
+
+#include "emupal.h"
+
class xxmissio_state : public driver_device
{
public:
diff --git a/src/mame/includes/xyonix.h b/src/mame/includes/xyonix.h
index 9ad40662e13..6050b07d969 100644
--- a/src/mame/includes/xyonix.h
+++ b/src/mame/includes/xyonix.h
@@ -1,5 +1,8 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
+
+#include "emupal.h"
+
class xyonix_state : public driver_device
{
public:
diff --git a/src/mame/includes/yiear.h b/src/mame/includes/yiear.h
index 1d80bee4330..ebb9043805a 100644
--- a/src/mame/includes/yiear.h
+++ b/src/mame/includes/yiear.h
@@ -10,6 +10,7 @@
#include "sound/sn76496.h"
#include "sound/vlm5030.h"
+#include "emupal.h"
#include "screen.h"
class yiear_state : public driver_device
diff --git a/src/mame/includes/yunsun16.h b/src/mame/includes/yunsun16.h
index 60f74432c84..09b46d9c783 100644
--- a/src/mame/includes/yunsun16.h
+++ b/src/mame/includes/yunsun16.h
@@ -9,6 +9,7 @@
#include "machine/gen_latch.h"
#include "screen.h"
+#include "emupal.h"
class yunsun16_state : public driver_device
{
diff --git a/src/mame/includes/yunsung8.h b/src/mame/includes/yunsung8.h
index 5fc3b830df0..2fb54cadac8 100644
--- a/src/mame/includes/yunsung8.h
+++ b/src/mame/includes/yunsung8.h
@@ -8,6 +8,7 @@
#include "machine/74157.h"
#include "sound/msm5205.h"
+#include "emupal.h"
class yunsung8_state : public driver_device
{
diff --git a/src/mame/includes/z88.h b/src/mame/includes/z88.h
index a9e64efc86e..ad6b7068b51 100644
--- a/src/mame/includes/z88.h
+++ b/src/mame/includes/z88.h
@@ -19,6 +19,7 @@
#include "bus/z88/rom.h"
#include "bus/z88/z88.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/includes/zac2650.h b/src/mame/includes/zac2650.h
index 1ab2bcea2bb..aa0792aa1e9 100644
--- a/src/mame/includes/zac2650.h
+++ b/src/mame/includes/zac2650.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Mike Coates
#include "machine/s2636.h"
+#include "emupal.h"
#include "screen.h"
class zac2650_state : public driver_device
diff --git a/src/mame/includes/zaccaria.h b/src/mame/includes/zaccaria.h
index c606a7c9dd6..be3e14c1fc1 100644
--- a/src/mame/includes/zaccaria.h
+++ b/src/mame/includes/zaccaria.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
#include "audio/zaccaria.h"
+#include "emupal.h"
class zaccaria_state : public driver_device
{
diff --git a/src/mame/includes/zaxxon.h b/src/mame/includes/zaxxon.h
index e72bd6c2c1d..105a063460f 100644
--- a/src/mame/includes/zaxxon.h
+++ b/src/mame/includes/zaxxon.h
@@ -8,6 +8,7 @@
#include "machine/74259.h"
#include "sound/samples.h"
+#include "emupal.h"
class zaxxon_state : public driver_device
{
diff --git a/src/mame/includes/zodiack.h b/src/mame/includes/zodiack.h
index 89e925e2692..512cffd3986 100644
--- a/src/mame/includes/zodiack.h
+++ b/src/mame/includes/zodiack.h
@@ -3,6 +3,7 @@
#include "cpu/z80/z80.h"
#include "machine/gen_latch.h"
+#include "emupal.h"
class zodiack_state : public driver_device
{
diff --git a/src/mame/includes/zorba.h b/src/mame/includes/zorba.h
index 8fe5c44fcc3..09f3b6de62e 100644
--- a/src/mame/includes/zorba.h
+++ b/src/mame/includes/zorba.h
@@ -16,6 +16,8 @@
#include "video/i8275.h"
+#include "emupal.h"
+
class zorba_state : public driver_device
{
diff --git a/src/mame/includes/zx.h b/src/mame/includes/zx.h
index c2a462d8f93..1dec874c189 100644
--- a/src/mame/includes/zx.h
+++ b/src/mame/includes/zx.h
@@ -17,6 +17,7 @@
#include "sound/spkrdev.h"
#include "sound/wave.h"
+#include "emupal.h"
#include "screen.h"
#include "formats/tzx_cas.h"
diff --git a/src/mame/machine/atarigen.h b/src/mame/machine/atarigen.h
index 8201d01ad03..56edee0ec77 100644
--- a/src/mame/machine/atarigen.h
+++ b/src/mame/machine/atarigen.h
@@ -13,6 +13,7 @@
#include "includes/slapstic.h"
#include "cpu/m6502/m6502.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/machine/inder_vid.h b/src/mame/machine/inder_vid.h
index 88d24f1c36b..9f6080a0c03 100644
--- a/src/mame/machine/inder_vid.h
+++ b/src/mame/machine/inder_vid.h
@@ -14,6 +14,7 @@
#include "video/ramdac.h"
#include "cpu/tms34010/tms34010.h"
+#include "emupal.h"
DECLARE_DEVICE_TYPE(INDER_VIDEO, inder_vid_device)
diff --git a/src/mame/machine/mega32x.h b/src/mame/machine/mega32x.h
index c7047ab9d44..0c5c45c156e 100644
--- a/src/mame/machine/mega32x.h
+++ b/src/mame/machine/mega32x.h
@@ -11,6 +11,7 @@
#include "cpu/sh/sh2comn.h"
#include "machine/timer.h"
#include "sound/dac.h"
+#include "emupal.h"
class sega_32x_device : public device_t
{
diff --git a/src/mame/machine/mmboard.h b/src/mame/machine/mmboard.h
index 1e01d548b12..b60ea64e363 100644
--- a/src/mame/machine/mmboard.h
+++ b/src/mame/machine/mmboard.h
@@ -14,6 +14,7 @@
#include "sound/beep.h"
#include "video/hd44780.h"
+#include "emupal.h"
#include "screen.h"
#include "speaker.h"
diff --git a/src/mame/machine/model1io2.h b/src/mame/machine/model1io2.h
index 82edac343a0..f9e26a1ca3d 100644
--- a/src/mame/machine/model1io2.h
+++ b/src/mame/machine/model1io2.h
@@ -14,6 +14,7 @@
#include "machine/eepromser.h"
#include "machine/mb3773.h"
#include "video/hd44780.h"
+#include "emupal.h"
//**************************************************************************
diff --git a/src/mame/machine/segaic16.h b/src/mame/machine/segaic16.h
index 90216fa1ef9..4cd2c64cbd7 100644
--- a/src/mame/machine/segaic16.h
+++ b/src/mame/machine/segaic16.h
@@ -14,6 +14,7 @@
#include "cpu/m68000/m68000.h"
#include "machine/fd1089.h"
#include "machine/fd1094.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/machine/st0016.cpp b/src/mame/machine/st0016.cpp
index 43811264e2d..8e22dc23bb3 100644
--- a/src/mame/machine/st0016.cpp
+++ b/src/mame/machine/st0016.cpp
@@ -4,6 +4,7 @@
#include "emu.h"
#include "st0016.h"
+#include "emupal.h"
#include "speaker.h"
diff --git a/src/mame/video/733_asr.h b/src/mame/video/733_asr.h
index f02a798ee00..82edf41dd5a 100644
--- a/src/mame/video/733_asr.h
+++ b/src/mame/video/733_asr.h
@@ -5,6 +5,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
#define asr733_chr_region ":gfx1"
diff --git a/src/mame/video/911_vdt.h b/src/mame/video/911_vdt.h
index 737941f7300..b47786ef87b 100644
--- a/src/mame/video/911_vdt.h
+++ b/src/mame/video/911_vdt.h
@@ -6,6 +6,7 @@
#pragma once
#include "sound/beep.h"
+#include "emupal.h"
#define vdt911_chr_region ":gfx1"
diff --git a/src/mame/video/abc1600.h b/src/mame/video/abc1600.h
index 8221463d16b..955916a4acd 100644
--- a/src/mame/video/abc1600.h
+++ b/src/mame/video/abc1600.h
@@ -12,6 +12,7 @@
#include "video/mc6845.h"
+#include "emupal.h"
diff --git a/src/mame/video/agat7.h b/src/mame/video/agat7.h
index de727a4a7c9..796f9fca5b4 100644
--- a/src/mame/video/agat7.h
+++ b/src/mame/video/agat7.h
@@ -14,6 +14,7 @@
#pragma once
#include "machine/ram.h"
+#include "emupal.h"
//**************************************************************************
diff --git a/src/mame/video/airraid_dev.h b/src/mame/video/airraid_dev.h
index 635f136e012..d99df0f067a 100644
--- a/src/mame/video/airraid_dev.h
+++ b/src/mame/video/airraid_dev.h
@@ -6,6 +6,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/video/apollo.cpp b/src/mame/video/apollo.cpp
index b95ecf02559..fa77c5bae53 100644
--- a/src/mame/video/apollo.cpp
+++ b/src/mame/video/apollo.cpp
@@ -19,6 +19,7 @@
#include "includes/apollo.h"
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
diff --git a/src/mame/video/apple2.h b/src/mame/video/apple2.h
index d843ce78887..83d7128ebe6 100644
--- a/src/mame/video/apple2.h
+++ b/src/mame/video/apple2.h
@@ -9,6 +9,7 @@
#ifndef MAME_VIDEO_APPLE2_H
#define MAME_VIDEO_APPLE2_H
+#include "emupal.h"
class a2_video_device :
public device_t
diff --git a/src/mame/video/bfm_adr2.cpp b/src/mame/video/bfm_adr2.cpp
index cbc01713fdf..a8e6d409cfb 100644
--- a/src/mame/video/bfm_adr2.cpp
+++ b/src/mame/video/bfm_adr2.cpp
@@ -97,6 +97,7 @@ E000-FFFF | R | D D D D D D D D | 8K ROM
#include "cpu/m6809/m6809.h"
#include "machine/bfm_bd1.h" // vfd
+#include "emupal.h"
#include "rendlay.h"
#include "screen.h"
diff --git a/src/mame/video/bfm_dm01.h b/src/mame/video/bfm_dm01.h
index 06a2923f6bb..bac2de6ce74 100644
--- a/src/mame/video/bfm_dm01.h
+++ b/src/mame/video/bfm_dm01.h
@@ -10,6 +10,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
#define MCFG_BFM_DM01_BUSY_CB(_devcb) \
diff --git a/src/mame/video/decocomn.h b/src/mame/video/decocomn.h
index bad8a5f1a0d..f6ec0a0a547 100644
--- a/src/mame/video/decocomn.h
+++ b/src/mame/video/decocomn.h
@@ -10,6 +10,8 @@
#pragma once
+#include "emupal.h"
+
/***************************************************************************
TYPE DEFINITIONS
diff --git a/src/mame/video/gamate.h b/src/mame/video/gamate.h
index 98535cd3d09..3e4885d957f 100644
--- a/src/mame/video/gamate.h
+++ b/src/mame/video/gamate.h
@@ -6,6 +6,8 @@
#pragma once
+#include "emupal.h"
+
DECLARE_DEVICE_TYPE(GAMATE_VIDEO, gamate_video_device)
#define MCFG_GAMATE_VIDEO_ADD(_tag) \
diff --git a/src/mame/video/gic.h b/src/mame/video/gic.h
index cba71069b14..edc4ece60dc 100644
--- a/src/mame/video/gic.h
+++ b/src/mame/video/gic.h
@@ -16,6 +16,8 @@
#pragma once
+#include "emupal.h"
+
/***************************************************************************
diff --git a/src/mame/video/igs017_igs031.h b/src/mame/video/igs017_igs031.h
index 73830c66fd6..5ed156ad471 100644
--- a/src/mame/video/igs017_igs031.h
+++ b/src/mame/video/igs017_igs031.h
@@ -6,6 +6,7 @@
#pragma once
#include "machine/i8255.h"
+#include "emupal.h"
typedef device_delegate<uint16_t (uint16_t)> igs017_igs031_palette_scramble_delegate;
diff --git a/src/mame/video/jalblend.h b/src/mame/video/jalblend.h
index 825f2ab18f1..89bdf596cbe 100644
--- a/src/mame/video/jalblend.h
+++ b/src/mame/video/jalblend.h
@@ -5,6 +5,8 @@
#pragma once
+#include "emupal.h"
+
class jaleco_blend_device : public device_t
{
public:
diff --git a/src/mame/video/k007121.h b/src/mame/video/k007121.h
index 3231a4750e8..61e11484a06 100644
--- a/src/mame/video/k007121.h
+++ b/src/mame/video/k007121.h
@@ -5,6 +5,8 @@
#pragma once
+#include "emupal.h"
+
class k007121_device : public device_t
{
diff --git a/src/mame/video/k007420.h b/src/mame/video/k007420.h
index dca677375a6..8c43767933b 100644
--- a/src/mame/video/k007420.h
+++ b/src/mame/video/k007420.h
@@ -5,6 +5,8 @@
#pragma once
+#include "emupal.h"
+
typedef device_delegate<void (int *code, int *color)> k007420_delegate;
diff --git a/src/mame/video/k053936.h b/src/mame/video/k053936.h
index c891acd51c7..32bf566e182 100644
--- a/src/mame/video/k053936.h
+++ b/src/mame/video/k053936.h
@@ -5,6 +5,8 @@
#pragma once
+#include "emupal.h"
+
void K053936_0_zoom_draw(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,tilemap_t *tmap,int flags,uint32_t priority, int glfgreat_hack);
void K053936_wraparound_enable(int chip, int status);
diff --git a/src/mame/video/k054338.h b/src/mame/video/k054338.h
index 0b56bf8e650..9999cee0748 100644
--- a/src/mame/video/k054338.h
+++ b/src/mame/video/k054338.h
@@ -6,6 +6,7 @@
#pragma once
#include "k055555.h"
+#include "emupal.h"
#define K338_REG_BGC_R 0
#define K338_REG_BGC_GB 1
diff --git a/src/mame/video/k1ge.h b/src/mame/video/k1ge.h
index dee1b5dc43c..250ad493173 100644
--- a/src/mame/video/k1ge.h
+++ b/src/mame/video/k1ge.h
@@ -11,6 +11,8 @@
#pragma once
+#include "emupal.h"
+
#define MCFG_K1GE_ADD(_tag, _clock, _screen, _vblank, _hblank ) \
MCFG_DEVICE_ADD( _tag, K1GE, _clock ) \
diff --git a/src/mame/video/kaneko_grap2.h b/src/mame/video/kaneko_grap2.h
index affbc3c2ad1..82f3507d694 100644
--- a/src/mame/video/kaneko_grap2.h
+++ b/src/mame/video/kaneko_grap2.h
@@ -5,6 +5,8 @@
#pragma once
+#include "emupal.h"
+
class kaneko_grap2_device : public device_t, public device_rom_interface
{
diff --git a/src/mame/video/pc090oj.h b/src/mame/video/pc090oj.h
index ce71c0d8302..564856d65e4 100644
--- a/src/mame/video/pc090oj.h
+++ b/src/mame/video/pc090oj.h
@@ -5,6 +5,8 @@
#pragma once
+#include "emupal.h"
+
class pc090oj_device : public device_t
{
public:
diff --git a/src/mame/video/pc_t1t.h b/src/mame/video/pc_t1t.h
index f928d567c7a..2c064f6006e 100644
--- a/src/mame/video/pc_t1t.h
+++ b/src/mame/video/pc_t1t.h
@@ -7,6 +7,7 @@
#include "machine/ram.h"
#include "machine/bankdev.h"
#include "machine/pic8259.h"
+#include "emupal.h"
#define T1000_SCREEN_NAME "screen"
#define T1000_MC6845_NAME "mc6845_t1000"
diff --git a/src/mame/video/pcd.h b/src/mame/video/pcd.h
index 0680f24fe0a..0a92588d310 100644
--- a/src/mame/video/pcd.h
+++ b/src/mame/video/pcd.h
@@ -9,6 +9,7 @@
#include "machine/pic8259.h"
#include "machine/timer.h"
#include "video/scn2674.h"
+#include "emupal.h"
#include "diserial.h"
diff --git a/src/mame/video/stfight_dev.h b/src/mame/video/stfight_dev.h
index 87f28582454..b5559e3f82d 100644
--- a/src/mame/video/stfight_dev.h
+++ b/src/mame/video/stfight_dev.h
@@ -6,6 +6,9 @@
#pragma once
+#include "emupal.h"
+
+
DECLARE_DEVICE_TYPE(STFIGHT_VIDEO, stfight_video_device)
diff --git a/src/mame/video/tc0100scn.h b/src/mame/video/tc0100scn.h
index 459b992200b..2311448ba6e 100644
--- a/src/mame/video/tc0100scn.h
+++ b/src/mame/video/tc0100scn.h
@@ -5,6 +5,8 @@
#pragma once
+#include "emupal.h"
+
class tc0100scn_device : public device_t
{
public:
diff --git a/src/mame/video/tc0110pcr.h b/src/mame/video/tc0110pcr.h
index 96205487620..ab27b6df9b3 100644
--- a/src/mame/video/tc0110pcr.h
+++ b/src/mame/video/tc0110pcr.h
@@ -5,6 +5,8 @@
#pragma once
+#include "emupal.h"
+
class tc0110pcr_device : public device_t
{
diff --git a/src/mame/video/tecmo_mix.h b/src/mame/video/tecmo_mix.h
index bf5cdeebd28..ee0681d5a72 100644
--- a/src/mame/video/tecmo_mix.h
+++ b/src/mame/video/tecmo_mix.h
@@ -6,6 +6,8 @@
#pragma once
+#include "emupal.h"
+
class tecmo_mix_device : public device_t, public device_video_interface
{
diff --git a/src/mame/video/tia.h b/src/mame/video/tia.h
index b701747abc0..027f9d2b68d 100644
--- a/src/mame/video/tia.h
+++ b/src/mame/video/tia.h
@@ -6,6 +6,7 @@
#pragma once
#include "sound/tiaintf.h"
+#include "emupal.h"
//**************************************************************************
// MACROS / CONSTANTS
diff --git a/src/mame/video/vtvideo.h b/src/mame/video/vtvideo.h
index eee26be8156..9017657cffd 100644
--- a/src/mame/video/vtvideo.h
+++ b/src/mame/video/vtvideo.h
@@ -14,6 +14,8 @@ DEC VT Terminal video emulation
#pragma once
+#include "emupal.h"
+
class vt100_video_device : public device_t,
public device_video_interface