summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2018-06-13 14:53:20 -0400
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2018-06-13 14:56:22 -0400
commita69902b46055356300b31d78277ad689995b33ff (patch) (github)
tree055df21f5a9374c061664daaf5396df6069d4f5e
parentb8ed384272e386a3b206e351f8bdfba636b164a3 (diff)
downloadmame-a69902b46055356300b31d78277ad689995b33ff.tar.bz2
mame-a69902b46055356300b31d78277ad689995b33ff.zip
Remove emupal.h from emu.h (nw)
-rw-r--r--src/devices/bus/a2bus/a2videoterm.h1
-rw-r--r--src/devices/bus/c64/xl80.h1
-rw-r--r--src/devices/bus/compis/hrg.h1
-rw-r--r--src/devices/bus/comx35/clm.h1
-rw-r--r--src/devices/bus/ecbbus/grip.h1
-rw-r--r--src/devices/bus/einstein/pipe/tk02.h1
-rw-r--r--src/devices/bus/isa/aga.h1
-rw-r--r--src/devices/bus/isa/cga.h1
-rw-r--r--src/devices/bus/isa/ega.h1
-rw-r--r--src/devices/bus/isa/mda.h1
-rw-r--r--src/devices/bus/isa/num9rev.h1
-rw-r--r--src/devices/bus/isa/pgc.h1
-rw-r--r--src/devices/bus/nasbus/avc.h1
-rw-r--r--src/devices/bus/nubus/nubus_specpdq.h1
-rw-r--r--src/devices/bus/svi3x8/slot/sv806.h1
-rw-r--r--src/devices/bus/vic20/videopak.h1
-rw-r--r--src/devices/bus/wangpc/tig.h1
-rw-r--r--src/devices/machine/ie15.cpp2
-rw-r--r--src/devices/machine/laserdsc.h1
-rw-r--r--src/devices/machine/s3c2400.h1
-rw-r--r--src/devices/machine/s3c2410.h1
-rw-r--r--src/devices/machine/s3c2440.h1
-rw-r--r--src/devices/sound/cdp1869.h1
-rw-r--r--src/devices/video/315_5124.h1
-rw-r--r--src/devices/video/ef9345.h1
-rw-r--r--src/devices/video/ef9364.h2
-rw-r--r--src/devices/video/ef9365.h2
-rw-r--r--src/devices/video/gba_lcd.h1
-rw-r--r--src/devices/video/hd66421.h2
-rw-r--r--src/devices/video/i8244.h1
-rw-r--r--src/devices/video/imagetek_i4100.h1
-rw-r--r--src/devices/video/mb_vcu.h2
-rw-r--r--src/devices/video/psx.h2
-rw-r--r--src/devices/video/ramdac.h1
-rw-r--r--src/emu/emu.h1
-rw-r--r--src/emu/emufwd.h3
-rw-r--r--src/emu/emupal.cpp1
-rw-r--r--src/emu/emupal.h5
-rw-r--r--src/frontend/mame/ui/viewgfx.cpp1
-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
1416 files changed, 1556 insertions, 19 deletions
diff --git a/src/devices/bus/a2bus/a2videoterm.h b/src/devices/bus/a2bus/a2videoterm.h
index ce761cf7092..65a1e02077f 100644
--- a/src/devices/bus/a2bus/a2videoterm.h
+++ b/src/devices/bus/a2bus/a2videoterm.h
@@ -15,6 +15,7 @@
#include "a2bus.h"
#include "video/mc6845.h"
+#include "emupal.h"
//**************************************************************************
// TYPE DEFINITIONS
diff --git a/src/devices/bus/c64/xl80.h b/src/devices/bus/c64/xl80.h
index cc03d6c530f..fe406af174b 100644
--- a/src/devices/bus/c64/xl80.h
+++ b/src/devices/bus/c64/xl80.h
@@ -14,6 +14,7 @@
#include "exp.h"
#include "video/mc6845.h"
+#include "emupal.h"
diff --git a/src/devices/bus/compis/hrg.h b/src/devices/bus/compis/hrg.h
index 6b42b6ae919..c48830be10c 100644
--- a/src/devices/bus/compis/hrg.h
+++ b/src/devices/bus/compis/hrg.h
@@ -13,6 +13,7 @@
#include "graphics.h"
#include "video/upd7220.h"
+#include "emupal.h"
diff --git a/src/devices/bus/comx35/clm.h b/src/devices/bus/comx35/clm.h
index d16b23bceb3..0784ae7bab2 100644
--- a/src/devices/bus/comx35/clm.h
+++ b/src/devices/bus/comx35/clm.h
@@ -13,6 +13,7 @@
#include "exp.h"
#include "video/mc6845.h"
+#include "emupal.h"
diff --git a/src/devices/bus/ecbbus/grip.h b/src/devices/bus/ecbbus/grip.h
index ac8c949440a..d1e1456eb57 100644
--- a/src/devices/bus/ecbbus/grip.h
+++ b/src/devices/bus/ecbbus/grip.h
@@ -21,6 +21,7 @@
#include "machine/z80sti.h"
#include "sound/spkrdev.h"
#include "video/mc6845.h"
+#include "emupal.h"
diff --git a/src/devices/bus/einstein/pipe/tk02.h b/src/devices/bus/einstein/pipe/tk02.h
index ca8088ca82a..8782def764c 100644
--- a/src/devices/bus/einstein/pipe/tk02.h
+++ b/src/devices/bus/einstein/pipe/tk02.h
@@ -13,6 +13,7 @@
#include "pipe.h"
#include "video/mc6845.h"
+#include "emupal.h"
//**************************************************************************
diff --git a/src/devices/bus/isa/aga.h b/src/devices/bus/isa/aga.h
index 85142843009..990bd5d3182 100644
--- a/src/devices/bus/isa/aga.h
+++ b/src/devices/bus/isa/aga.h
@@ -25,6 +25,7 @@
#include "isa.h"
#include "cga.h"
#include "video/mc6845.h"
+#include "emupal.h"
enum AGA_MODE { AGA_OFF, AGA_COLOR, AGA_MONO };
diff --git a/src/devices/bus/isa/cga.h b/src/devices/bus/isa/cga.h
index ca799d9b8cc..bb554133bea 100644
--- a/src/devices/bus/isa/cga.h
+++ b/src/devices/bus/isa/cga.h
@@ -7,6 +7,7 @@
#include "isa.h"
#include "video/mc6845.h"
+#include "emupal.h"
#include "screen.h"
diff --git a/src/devices/bus/isa/ega.h b/src/devices/bus/isa/ega.h
index 88b33fd5a4c..ef7db51c407 100644
--- a/src/devices/bus/isa/ega.h
+++ b/src/devices/bus/isa/ega.h
@@ -7,6 +7,7 @@
#include "isa.h"
#include "video/crtc_ega.h"
+#include "emupal.h"
//**************************************************************************
// TYPE DEFINITIONS
diff --git a/src/devices/bus/isa/mda.h b/src/devices/bus/isa/mda.h
index dfcf7d231d2..19e56c6e59a 100644
--- a/src/devices/bus/isa/mda.h
+++ b/src/devices/bus/isa/mda.h
@@ -7,6 +7,7 @@
#include "isa.h"
#include "video/mc6845.h"
+#include "emupal.h"
//**************************************************************************
// TYPE DEFINITIONS
diff --git a/src/devices/bus/isa/num9rev.h b/src/devices/bus/isa/num9rev.h
index dbfda9fa954..1e176f121f4 100644
--- a/src/devices/bus/isa/num9rev.h
+++ b/src/devices/bus/isa/num9rev.h
@@ -8,6 +8,7 @@
#include "isa.h"
#include "video/upd7220.h"
#include "machine/bankdev.h"
+#include "emupal.h"
//**************************************************************************
// TYPE DEFINITIONS
diff --git a/src/devices/bus/isa/pgc.h b/src/devices/bus/isa/pgc.h
index f3099cf7bd9..a2dc5e50c45 100644
--- a/src/devices/bus/isa/pgc.h
+++ b/src/devices/bus/isa/pgc.h
@@ -10,6 +10,7 @@
#include "cpu/i86/i86.h"
#include "machine/timer.h"
#include "isa.h"
+#include "emupal.h"
//**************************************************************************
// TYPE DEFINITIONS
diff --git a/src/devices/bus/nasbus/avc.h b/src/devices/bus/nasbus/avc.h
index 16155497c40..defa2a916c5 100644
--- a/src/devices/bus/nasbus/avc.h
+++ b/src/devices/bus/nasbus/avc.h
@@ -13,6 +13,7 @@
#include "nasbus.h"
#include "video/mc6845.h"
+#include "emupal.h"
//**************************************************************************
diff --git a/src/devices/bus/nubus/nubus_specpdq.h b/src/devices/bus/nubus/nubus_specpdq.h
index 0d976364680..448b13d4957 100644
--- a/src/devices/bus/nubus/nubus_specpdq.h
+++ b/src/devices/bus/nubus/nubus_specpdq.h
@@ -6,6 +6,7 @@
#pragma once
#include "nubus.h"
+#include "emupal.h"
//**************************************************************************
// TYPE DEFINITIONS
diff --git a/src/devices/bus/svi3x8/slot/sv806.h b/src/devices/bus/svi3x8/slot/sv806.h
index 4281755efb6..868117b8565 100644
--- a/src/devices/bus/svi3x8/slot/sv806.h
+++ b/src/devices/bus/svi3x8/slot/sv806.h
@@ -13,6 +13,7 @@
#include "slot.h"
#include "video/mc6845.h"
+#include "emupal.h"
//**************************************************************************
diff --git a/src/devices/bus/vic20/videopak.h b/src/devices/bus/vic20/videopak.h
index 700622425d6..def121f2c55 100644
--- a/src/devices/bus/vic20/videopak.h
+++ b/src/devices/bus/vic20/videopak.h
@@ -15,6 +15,7 @@
#include "exp.h"
#include "video/mc6845.h"
+#include "emupal.h"
diff --git a/src/devices/bus/wangpc/tig.h b/src/devices/bus/wangpc/tig.h
index d67424a850e..4a86f6ecb40 100644
--- a/src/devices/bus/wangpc/tig.h
+++ b/src/devices/bus/wangpc/tig.h
@@ -13,6 +13,7 @@
#include "wangpc.h"
#include "video/upd7220.h"
+#include "emupal.h"
diff --git a/src/devices/machine/ie15.cpp b/src/devices/machine/ie15.cpp
index 50c53e262d3..c6b7d5b28ae 100644
--- a/src/devices/machine/ie15.cpp
+++ b/src/devices/machine/ie15.cpp
@@ -14,6 +14,8 @@
#include "emu.h"
#include "machine/ie15.h"
+#include "emupal.h"
+
#include "ie15.lh"
diff --git a/src/devices/machine/laserdsc.h b/src/devices/machine/laserdsc.h
index 34b6c8c2772..71d77801e86 100644
--- a/src/devices/machine/laserdsc.h
+++ b/src/devices/machine/laserdsc.h
@@ -13,6 +13,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
#include "vbiparse.h"
#include "avhuff.h"
diff --git a/src/devices/machine/s3c2400.h b/src/devices/machine/s3c2400.h
index 11d6c247e62..e11da131972 100644
--- a/src/devices/machine/s3c2400.h
+++ b/src/devices/machine/s3c2400.h
@@ -12,6 +12,7 @@
#pragma once
#include "s3c24xx.h"
+#include "emupal.h"
/*******************************************************************************
diff --git a/src/devices/machine/s3c2410.h b/src/devices/machine/s3c2410.h
index 36ea547f6ca..480c15b52e5 100644
--- a/src/devices/machine/s3c2410.h
+++ b/src/devices/machine/s3c2410.h
@@ -12,6 +12,7 @@
#pragma once
#include "s3c24xx.h"
+#include "emupal.h"
/*******************************************************************************
diff --git a/src/devices/machine/s3c2440.h b/src/devices/machine/s3c2440.h
index f226f0bef37..38aa6423a09 100644
--- a/src/devices/machine/s3c2440.h
+++ b/src/devices/machine/s3c2440.h
@@ -12,6 +12,7 @@
#pragma once
#include "s3c24xx.h"
+#include "emupal.h"
/*******************************************************************************
MACROS / CONSTANTS
diff --git a/src/devices/sound/cdp1869.h b/src/devices/sound/cdp1869.h
index bec8336a1ac..0fca66fe14c 100644
--- a/src/devices/sound/cdp1869.h
+++ b/src/devices/sound/cdp1869.h
@@ -78,6 +78,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
diff --git a/src/devices/video/315_5124.h b/src/devices/video/315_5124.h
index 9169457b3f9..c358476df17 100644
--- a/src/devices/video/315_5124.h
+++ b/src/devices/video/315_5124.h
@@ -13,6 +13,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
diff --git a/src/devices/video/ef9345.h b/src/devices/video/ef9345.h
index f55007b49fc..dfec7d080f2 100644
--- a/src/devices/video/ef9345.h
+++ b/src/devices/video/ef9345.h
@@ -13,6 +13,7 @@
#pragma once
+#include "emupal.h"
#define MCFG_EF9345_PALETTE(_palette_tag) \
downcast<ef9345_device &>(*device).set_palette_tag(_palette_tag);
diff --git a/src/devices/video/ef9364.h b/src/devices/video/ef9364.h
index 1e895e3add5..ef7fc2cb99a 100644
--- a/src/devices/video/ef9364.h
+++ b/src/devices/video/ef9364.h
@@ -13,6 +13,8 @@
#pragma once
+#include "emupal.h"
+
#define MCFG_EF9364_PALETTE(_palette_tag) \
downcast<ef9364_device &>(*device).set_palette_tag(_palette_tag);
diff --git a/src/devices/video/ef9365.h b/src/devices/video/ef9365.h
index 1a00ca33479..8c14fbd6370 100644
--- a/src/devices/video/ef9365.h
+++ b/src/devices/video/ef9365.h
@@ -13,6 +13,8 @@
#pragma once
+#include "emupal.h"
+
#define MCFG_EF936X_PALETTE(palette_tag) \
downcast<ef9365_device &>(*device).set_palette_tag(palette_tag);
diff --git a/src/devices/video/gba_lcd.h b/src/devices/video/gba_lcd.h
index a8cc9cd3d73..9272b8faba6 100644
--- a/src/devices/video/gba_lcd.h
+++ b/src/devices/video/gba_lcd.h
@@ -15,6 +15,7 @@
#pragma once
+#include "emupal.h"
//**************************************************************************
diff --git a/src/devices/video/hd66421.h b/src/devices/video/hd66421.h
index e56e5c877df..1237055eadc 100644
--- a/src/devices/video/hd66421.h
+++ b/src/devices/video/hd66421.h
@@ -13,6 +13,8 @@
#pragma once
+#include "emupal.h"
+
///*************************************************************************
// INTERFACE CONFIGURATION MACROS
diff --git a/src/devices/video/i8244.h b/src/devices/video/i8244.h
index 44260b7ecf3..f1583129cc2 100644
--- a/src/devices/video/i8244.h
+++ b/src/devices/video/i8244.h
@@ -13,6 +13,7 @@
#pragma once
+#include "emupal.h"
/***************************************************************************
diff --git a/src/devices/video/imagetek_i4100.h b/src/devices/video/imagetek_i4100.h
index 244193cbec3..0394fe1fb32 100644
--- a/src/devices/video/imagetek_i4100.h
+++ b/src/devices/video/imagetek_i4100.h
@@ -11,6 +11,7 @@
#pragma once
+#include "emupal.h"
#include "screen.h"
diff --git a/src/devices/video/mb_vcu.h b/src/devices/video/mb_vcu.h
index b6008cea8bd..a8b53637a7d 100644
--- a/src/devices/video/mb_vcu.h
+++ b/src/devices/video/mb_vcu.h
@@ -5,6 +5,8 @@
#pragma once
+#include "emupal.h"
+
//**************************************************************************
// TYPE DEFINITIONS
diff --git a/src/devices/video/psx.h b/src/devices/video/psx.h
index 9175322a8ad..489f3508cfe 100644
--- a/src/devices/video/psx.h
+++ b/src/devices/video/psx.h
@@ -12,6 +12,8 @@
#pragma once
+#include "emupal.h"
+
#define PSXGPU_DEBUG_VIEWER ( 0 )
diff --git a/src/devices/video/ramdac.h b/src/devices/video/ramdac.h
index d6be006ab35..e090257023c 100644
--- a/src/devices/video/ramdac.h
+++ b/src/devices/video/ramdac.h
@@ -11,6 +11,7 @@
#pragma once
+#include "emupal.h"
//**************************************************************************
diff --git a/src/emu/emu.h b/src/emu/emu.h
index cc9f158df7c..049bfc96bc3 100644
--- a/src/emu/emu.h
+++ b/src/emu/emu.h
@@ -95,7 +95,6 @@ class address_map; // Forward declaration
// video-related
#include "drawgfx.h"
-#include "emupal.h"
#include "tilemap.h"
#include "video.h"
diff --git a/src/emu/emufwd.h b/src/emu/emufwd.h
index 860644b3f6d..8f6ff6d3207 100644
--- a/src/emu/emufwd.h
+++ b/src/emu/emufwd.h
@@ -148,9 +148,6 @@ class memory_share;
// declared in emuopts.h
class emu_options;
-// declared in emupal.h
-class palette_device;
-
// declared in gamedrv.h
class game_driver;
diff --git a/src/emu/emupal.cpp b/src/emu/emupal.cpp
index 6cf55ec33cb..16fc8716c94 100644
--- a/src/emu/emupal.cpp
+++ b/src/emu/emupal.cpp
@@ -9,6 +9,7 @@
***************************************************************************/
#include "emu.h"
+#include "emupal.h"
//**************************************************************************
diff --git a/src/emu/emupal.h b/src/emu/emupal.h
index 4b156014d06..4169dabe858 100644
--- a/src/emu/emupal.h
+++ b/src/emu/emupal.h
@@ -92,10 +92,6 @@
#pragma once
-#ifndef __EMU_H__
-#error Dont include this file directly; include emu.h instead.
-#endif
-
#ifndef MAME_EMU_EMUPAL_H
#define MAME_EMU_EMUPAL_H
@@ -289,6 +285,7 @@
// TYPE DEFINITIONS
//**************************************************************************
+class palette_device;
typedef device_delegate<void (palette_device &)> palette_init_delegate;
diff --git a/src/frontend/mame/ui/viewgfx.cpp b/src/frontend/mame/ui/viewgfx.cpp
index 0625caa1ada..28da1f8b899 100644
--- a/src/frontend/mame/ui/viewgfx.cpp
+++ b/src/frontend/mame/ui/viewgfx.cpp
@@ -9,6 +9,7 @@
*********************************************************************/
#include "emu.h"
+#include "emupal.h"
#include "ui/ui.h"
#include "uiinput.h"
#include "render.h"
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"
#i