summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/emu/bus/nubus/nubus_specpdq.c48
-rw-r--r--src/emu/bus/nubus/nubus_specpdq.h3
-rw-r--r--src/emu/bus/wangpc/mvc.c6
-rw-r--r--src/emu/bus/wangpc/tig.c11
-rw-r--r--src/emu/bus/wangpc/tig.h1
-rw-r--r--src/emu/cpu/tms34010/tms34010.c4
-rw-r--r--src/emu/drawgfx.c280
-rw-r--r--src/emu/drawgfx.h88
-rw-r--r--src/emu/driver.c272
-rw-r--r--src/emu/driver.h227
-rw-r--r--src/emu/drivlgcy.h7
-rw-r--r--src/emu/emupal.c1118
-rw-r--r--src/emu/emupal.h427
-rw-r--r--src/emu/info.c3
-rw-r--r--src/emu/machine.c7
-rw-r--r--src/emu/machine.h8
-rw-r--r--src/emu/machine/laserdsc.c2
-rw-r--r--src/emu/machine/s3c2400.c15
-rw-r--r--src/emu/machine/s3c2400.h11
-rw-r--r--src/emu/machine/s3c2410.c15
-rw-r--r--src/emu/machine/s3c2410.h11
-rw-r--r--src/emu/machine/s3c2440.c16
-rw-r--r--src/emu/machine/s3c2440.h10
-rw-r--r--src/emu/machine/s3c24xx.c10
-rw-r--r--src/emu/machine/tc009xlvc.c23
-rw-r--r--src/emu/machine/tc009xlvc.h5
-rw-r--r--src/emu/mconfig.c1
-rw-r--r--src/emu/mconfig.h9
-rw-r--r--src/emu/render.c8
-rw-r--r--src/emu/save.h12
-rw-r--r--src/emu/screen.c47
-rw-r--r--src/emu/screen.h9
-rw-r--r--src/emu/sound/mos6560.c34
-rw-r--r--src/emu/sound/mos7360.c62
-rw-r--r--src/emu/tilemap.c20
-rw-r--r--src/emu/tilemap.h6
-rw-r--r--src/emu/ui/viewgfx.c36
-rw-r--r--src/emu/validity.c11
-rw-r--r--src/emu/video.c35
-rw-r--r--src/emu/video.h8
-rw-r--r--src/emu/video/315_5124.c70
-rw-r--r--src/emu/video/315_5124.h2
-rw-r--r--src/emu/video/hd66421.c37
-rw-r--r--src/emu/video/hd66421.h3
-rw-r--r--src/emu/video/huc6260.c7
-rw-r--r--src/emu/video/i8244.c4
-rw-r--r--src/emu/video/i8244.h3
-rw-r--r--src/emu/video/i8275.c2
-rw-r--r--src/emu/video/k053250.c2
-rw-r--r--src/emu/video/mb_vcu.c20
-rw-r--r--src/emu/video/mb_vcu.h9
-rw-r--r--src/emu/video/pc_cga.c12
-rw-r--r--src/emu/video/pc_vga.c54
-rw-r--r--src/emu/video/pc_vga.h1
-rw-r--r--src/emu/video/psx.c8
-rw-r--r--src/emu/video/ramdac.c17
-rw-r--r--src/emu/video/ramdac.h11
-rw-r--r--src/emu/video/saa5050.c2
-rw-r--r--src/emu/video/stvvdp2.c100
-rw-r--r--src/emu/video/upd3301.c2
-rw-r--r--src/emu/video/v9938.c19
-rw-r--r--src/emu/video/v9938.h4
-rw-r--r--src/mame/drivers/1942.c10
-rw-r--r--src/mame/drivers/1943.c3
-rw-r--r--src/mame/drivers/1945kiii.c14
-rw-r--r--src/mame/drivers/2mindril.c5
-rw-r--r--src/mame/drivers/39in1.c6
-rw-r--r--src/mame/drivers/3x3puzzl.c5
-rw-r--r--src/mame/drivers/40love.c8
-rw-r--r--src/mame/drivers/4enraya.c8
-rw-r--r--src/mame/drivers/4roses.c4
-rw-r--r--src/mame/drivers/5clown.c12
-rw-r--r--src/mame/drivers/8080bw.c4
-rw-r--r--src/mame/drivers/88games.c11
-rw-r--r--src/mame/drivers/ace.c18
-rw-r--r--src/mame/drivers/acefruit.c41
-rw-r--r--src/mame/drivers/acommand.c8
-rw-r--r--src/mame/drivers/actfancr.c14
-rw-r--r--src/mame/drivers/adp.c22
-rw-r--r--src/mame/drivers/aeroboto.c4
-rw-r--r--src/mame/drivers/aerofgt.c73
-rw-r--r--src/mame/drivers/airbustr.c5
-rw-r--r--src/mame/drivers/ajax.c11
-rw-r--r--src/mame/drivers/albazc.c13
-rw-r--r--src/mame/drivers/albazg.c11
-rw-r--r--src/mame/drivers/aleck64.c2
-rw-r--r--src/mame/drivers/alg.c6
-rw-r--r--src/mame/drivers/alien.c2
-rw-r--r--src/mame/drivers/aliens.c10
-rw-r--r--src/mame/drivers/alpha68k.c28
-rw-r--r--src/mame/drivers/amaticmg.c21
-rw-r--r--src/mame/drivers/ambush.c4
-rw-r--r--src/mame/drivers/ampoker2.c4
-rw-r--r--src/mame/drivers/amspdwy.c4
-rw-r--r--src/mame/drivers/angelkds.c2
-rw-r--r--src/mame/drivers/appoooh.c8
-rw-r--r--src/mame/drivers/aquarium.c6
-rw-r--r--src/mame/drivers/arabian.c4
-rw-r--r--src/mame/drivers/arcadecl.c2
-rw-r--r--src/mame/drivers/arcadia.c4
-rw-r--r--src/mame/drivers/argus.c6
-rw-r--r--src/mame/drivers/aristmk4.c20
-rw-r--r--src/mame/drivers/aristmk5.c10
-rw-r--r--src/mame/drivers/aristmk6.c6
-rw-r--r--src/mame/drivers/arkanoid.c12
-rw-r--r--src/mame/drivers/armedf.c36
-rw-r--r--src/mame/drivers/ashnojoe.c6
-rw-r--r--src/mame/drivers/asterix.c10
-rw-r--r--src/mame/drivers/astrcorp.c10
-rw-r--r--src/mame/drivers/astrocde.c8
-rw-r--r--src/mame/drivers/asuka.c26
-rw-r--r--src/mame/drivers/atarifb.c30
-rw-r--r--src/mame/drivers/atarig1.c2
-rw-r--r--src/mame/drivers/atarig42.c2
-rw-r--r--src/mame/drivers/atarigt.c2
-rw-r--r--src/mame/drivers/atarigx2.c2
-rw-r--r--src/mame/drivers/atarisy1.c6
-rw-r--r--src/mame/drivers/atarisy2.c2
-rw-r--r--src/mame/drivers/atarisy4.c8
-rw-r--r--src/mame/drivers/ataxx.c2
-rw-r--r--src/mame/drivers/atetris.c12
-rw-r--r--src/mame/drivers/atlantis.c3
-rw-r--r--src/mame/drivers/atronic.c2
-rw-r--r--src/mame/drivers/atvtrack.c2
-rw-r--r--src/mame/drivers/avt.c16
-rw-r--r--src/mame/drivers/backfire.c8
-rw-r--r--src/mame/drivers/badlands.c4
-rw-r--r--src/mame/drivers/bagman.c12
-rw-r--r--src/mame/drivers/balsente.c2
-rw-r--r--src/mame/drivers/bankp.c4
-rw-r--r--src/mame/drivers/baraduke.c4
-rw-r--r--src/mame/drivers/bartop52.c4
-rw-r--r--src/mame/drivers/batman.c2
-rw-r--r--src/mame/drivers/battlane.c2
-rw-r--r--src/mame/drivers/battlera.c2
-rw-r--r--src/mame/drivers/battlex.c2
-rw-r--r--src/mame/drivers/battlnts.c6
-rw-r--r--src/mame/drivers/bbusters.c10
-rw-r--r--src/mame/drivers/beathead.c2
-rw-r--r--src/mame/drivers/beezer.c2
-rw-r--r--src/mame/drivers/bestleag.c14
-rw-r--r--src/mame/drivers/bfcobra.c16
-rw-r--r--src/mame/drivers/big10.c2
-rw-r--r--src/mame/drivers/bigevglf.c2
-rw-r--r--src/mame/drivers/bigstrkb.c5
-rw-r--r--src/mame/drivers/bingoc.c2
-rw-r--r--src/mame/drivers/bingoman.c8
-rw-r--r--src/mame/drivers/bingor.c16
-rw-r--r--src/mame/drivers/bionicc.c2
-rw-r--r--src/mame/drivers/bishi.c10
-rw-r--r--src/mame/drivers/bking.c3
-rw-r--r--src/mame/drivers/blackt96.c13
-rw-r--r--src/mame/drivers/bladestl.c4
-rw-r--r--src/mame/drivers/blitz.c12
-rw-r--r--src/mame/drivers/blitz68k.c42
-rw-r--r--src/mame/drivers/blktiger.c7
-rw-r--r--src/mame/drivers/blmbycar.c4
-rw-r--r--src/mame/drivers/blockade.c8
-rw-r--r--src/mame/drivers/blockhl.c10
-rw-r--r--src/mame/drivers/blockout.c2
-rw-r--r--src/mame/drivers/bloodbro.c11
-rw-r--r--src/mame/drivers/blstroid.c6
-rw-r--r--src/mame/drivers/blueprnt.c3
-rw-r--r--src/mame/drivers/bmcbowl.c6
-rw-r--r--src/mame/drivers/bmcpokr.c4
-rw-r--r--src/mame/drivers/bnstars.c6
-rw-r--r--src/mame/drivers/bntyhunt.c2
-rw-r--r--src/mame/drivers/bogeyman.c5
-rw-r--r--src/mame/drivers/bombjack.c5
-rw-r--r--src/mame/drivers/boogwing.c6
-rw-r--r--src/mame/drivers/bottom9.c11
-rw-r--r--src/mame/drivers/bowltry.c2
-rw-r--r--src/mame/drivers/boxer.c21
-rw-r--r--src/mame/drivers/brkthru.c8
-rw-r--r--src/mame/drivers/bsktball.c32
-rw-r--r--src/mame/drivers/btime.c30
-rw-r--r--src/mame/drivers/bublbobl.c12
-rw-r--r--src/mame/drivers/buggychl.c7
-rw-r--r--src/mame/drivers/buster.c12
-rw-r--r--src/mame/drivers/bwing.c2
-rw-r--r--src/mame/drivers/cabal.c12
-rw-r--r--src/mame/drivers/cabaret.c10
-rw-r--r--src/mame/drivers/calomega.c4
-rw-r--r--src/mame/drivers/calorie.c10
-rw-r--r--src/mame/drivers/canyon.c14
-rw-r--r--src/mame/drivers/cardline.c13
-rw-r--r--src/mame/drivers/carjmbre.c4
-rw-r--r--src/mame/drivers/carpolo.c3
-rw-r--r--src/mame/drivers/carrera.c13
-rw-r--r--src/mame/drivers/caswin.c10
-rw-r--r--src/mame/drivers/cave.c64
-rw-r--r--src/mame/drivers/cavepc.c2
-rw-r--r--src/mame/drivers/cb2001.c18
-rw-r--r--src/mame/drivers/cball.c22
-rw-r--r--src/mame/drivers/cbasebal.c7
-rw-r--r--src/mame/drivers/cbuster.c5
-rw-r--r--src/mame/drivers/ccastles.c2
-rw-r--r--src/mame/drivers/cchance.c5
-rw-r--r--src/mame/drivers/cclimber.c18
-rw-r--r--src/mame/drivers/cdi.c2
-rw-r--r--src/mame/drivers/centiped.c12
-rw-r--r--src/mame/drivers/cesclass.c14
-rw-r--r--src/mame/drivers/chaknpop.c4
-rw-r--r--src/mame/drivers/cham24.c10
-rw-r--r--src/mame/drivers/champbas.c16
-rw-r--r--src/mame/drivers/champbwl.c10
-rw-r--r--src/mame/drivers/chanbara.c25
-rw-r--r--src/mame/drivers/chance32.c6
-rw-r--r--src/mame/drivers/changela.c2
-rw-r--r--src/mame/drivers/cheekyms.c4
-rw-r--r--src/mame/drivers/chihiro.c2
-rw-r--r--src/mame/drivers/chinagat.c13
-rw-r--r--src/mame/drivers/chinsan.c12
-rw-r--r--src/mame/drivers/chqflag.c17
-rw-r--r--src/mame/drivers/chsuper.c6
-rw-r--r--src/mame/drivers/circus.c12
-rw-r--r--src/mame/drivers/circusc.c4
-rw-r--r--src/mame/drivers/cischeat.c58
-rw-r--r--src/mame/drivers/citycon.c7
-rw-r--r--src/mame/drivers/cloak.c2
-rw-r--r--src/mame/drivers/cloud9.c2
-rw-r--r--src/mame/drivers/clshroad.c8
-rw-r--r--src/mame/drivers/cmmb.c10
-rw-r--r--src/mame/drivers/cninja.c30
-rw-r--r--src/mame/drivers/cntsteer.c36
-rw-r--r--src/mame/drivers/cobra.c5
-rw-r--r--src/mame/drivers/coinmstr.c16
-rw-r--r--src/mame/drivers/coinmvga.c14
-rw-r--r--src/mame/drivers/combatsc.c10
-rw-r--r--src/mame/drivers/comebaby.c2
-rw-r--r--src/mame/drivers/commando.c4
-rw-r--r--src/mame/drivers/compgolf.c2
-rw-r--r--src/mame/drivers/contra.c6
-rw-r--r--src/mame/drivers/coolridr.c5
-rw-r--r--src/mame/drivers/cop01.c8
-rw-r--r--src/mame/drivers/cops.c4
-rw-r--r--src/mame/drivers/copsnrob.c15
-rw-r--r--src/mame/drivers/corona.c26
-rw-r--r--src/mame/drivers/cosmic.c20
-rw-r--r--src/mame/drivers/cps1.c2
-rw-r--r--src/mame/drivers/cps2.c2
-rw-r--r--src/mame/drivers/cps3.c10
-rw-r--r--src/mame/drivers/crbaloon.c3
-rw-r--r--src/mame/drivers/crimfght.c10
-rw-r--r--src/mame/drivers/crospang.c8
-rw-r--r--src/mame/drivers/crshrace.c6
-rw-r--r--src/mame/drivers/crystal.c3
-rw-r--r--src/mame/drivers/cshooter.c24
-rw-r--r--src/mame/drivers/csplayh5.c2
-rw-r--r--src/mame/drivers/cswat.c2
-rw-r--r--src/mame/drivers/cubeqst.c4
-rw-r--r--src/mame/drivers/cultures.c4
-rw-r--r--src/mame/drivers/cupidon.c2
-rw-r--r--src/mame/drivers/cv1k.c4
-rw-r--r--src/mame/drivers/cvs.c5
-rw-r--r--src/mame/drivers/cyberbal.c4
-rw-r--r--src/mame/drivers/cybertnk.c12
-rw-r--r--src/mame/drivers/cyclemb.c30
-rw-r--r--src/mame/drivers/d9final.c9
-rw-r--r--src/mame/drivers/dacholer.c13
-rw-r--r--src/mame/drivers/dambustr.c4
-rw-r--r--src/mame/drivers/darius.c8
-rw-r--r--src/mame/drivers/darkmist.c3
-rw-r--r--src/mame/drivers/darkseal.c5
-rw-r--r--src/mame/drivers/dassault.c6
-rw-r--r--src/mame/drivers/dblcrown.c14
-rw-r--r--src/mame/drivers/dblewing.c7
-rw-r--r--src/mame/drivers/dbz.c10
-rw-r--r--src/mame/drivers/dcheese.c4
-rw-r--r--src/mame/drivers/dcon.c8
-rw-r--r--src/mame/drivers/dday.c6
-rw-r--r--src/mame/drivers/ddayjlc.c16
-rw-r--r--src/mame/drivers/ddealer.c14
-rw-r--r--src/mame/drivers/ddenlovr.c28
-rw-r--r--src/mame/drivers/ddragon.c17
-rw-r--r--src/mame/drivers/ddragon3.c17
-rw-r--r--src/mame/drivers/ddribble.c4
-rw-r--r--src/mame/drivers/ddz.c2
-rw-r--r--src/mame/drivers/deadang.c5
-rw-r--r--src/mame/drivers/dec0.c17
-rw-r--r--src/mame/drivers/dec8.c77
-rw-r--r--src/mame/drivers/deco156.c12
-rw-r--r--src/mame/drivers/deco32.c35
-rw-r--r--src/mame/drivers/deco_ld.c12
-rw-r--r--src/mame/drivers/deco_mlc.c6
-rw-r--r--src/mame/drivers/decocass.c29
-rw-r--r--src/mame/drivers/deniam.c4
-rw-r--r--src/mame/drivers/deshoros.c2
-rw-r--r--src/mame/drivers/destroyr.c31
-rw-r--r--src/mame/drivers/dfruit.c5
-rw-r--r--src/mame/drivers/dgpix.c3
-rw-r--r--src/mame/drivers/dietgo.c4
-rw-r--r--src/mame/drivers/discoboy.c10
-rw-r--r--src/mame/drivers/diverboy.c9
-rw-r--r--src/mame/drivers/djboy.c3
-rw-r--r--src/mame/drivers/djmain.c5
-rw-r--r--src/mame/drivers/dkong.c33
-rw-r--r--src/mame/drivers/dlair.c10
-rw-r--r--src/mame/drivers/dlair2.c8
-rw-r--r--src/mame/drivers/dmndrby.c27
-rw-r--r--src/mame/drivers/docastle.c3
-rw-r--r--src/mame/drivers/dogfgt.c6
-rw-r--r--src/mame/drivers/dominob.c13
-rw-r--r--src/mame/drivers/dooyong.c43
-rw-r--r--src/mame/drivers/dragrace.c37
-rw-r--r--src/mame/drivers/dreambal.c6
-rw-r--r--src/mame/drivers/dreamwld.c14
-rw-r--r--src/mame/drivers/drgnmst.c6
-rw-r--r--src/mame/drivers/dribling.c4
-rw-r--r--src/mame/drivers/drmicro.c4
-rw-r--r--src/mame/drivers/drtomy.c7
-rw-r--r--src/mame/drivers/drw80pkr.c12
-rw-r--r--src/mame/drivers/dunhuang.c6
-rw-r--r--src/mame/drivers/dwarfd.c22
-rw-r--r--src/mame/drivers/dynadice.c10
-rw-r--r--src/mame/drivers/dynax.c42
-rw-r--r--src/mame/drivers/dynduke.c2
-rw-r--r--src/mame/drivers/egghunt.c7
-rw-r--r--src/mame/drivers/eolith.c3
-rw-r--r--src/mame/drivers/eolith16.c6
-rw-r--r--src/mame/drivers/eprom.c6
-rw-r--r--src/mame/drivers/equites.c8
-rw-r--r--src/mame/drivers/ertictac.c2
-rw-r--r--src/mame/drivers/esd16.c6
-rw-r--r--src/mame/drivers/esh.c15
-rw-r--r--src/mame/drivers/espial.c4
-rw-r--r--src/mame/drivers/ettrivia.c12
-rw-r--r--src/mame/drivers/exedexes.c5
-rw-r--r--src/mame/drivers/exerion.c4
-rw-r--r--src/mame/drivers/exidy.c2
-rw-r--r--src/mame/drivers/expro02.c11
-rw-r--r--src/mame/drivers/exprraid.c4
-rw-r--r--src/mame/drivers/exterm.c6
-rw-r--r--src/mame/drivers/exzisus.c4
-rw-r--r--src/mame/drivers/f-32.c3
-rw-r--r--src/mame/drivers/f1gp.c15
-rw-r--r--src/mame/drivers/famibox.c9
-rw-r--r--src/mame/drivers/fantland.c21
-rw-r--r--src/mame/drivers/fastfred.c7
-rw-r--r--src/mame/drivers/fastlane.c4
-rw-r--r--src/mame/drivers/fcombat.c4
-rw-r--r--src/mame/drivers/fcrash.c22
-rw-r--r--src/mame/drivers/feversoc.c10
-rw-r--r--src/mame/drivers/fgoal.c14
-rw-r--r--src/mame/drivers/finalizr.c4
-rw-r--r--src/mame/drivers/firebeat.c6
-rw-r--r--src/mame/drivers/firefox.c8
-rw-r--r--src/mame/drivers/firetrap.c6
-rw-r--r--src/mame/drivers/firetrk.c14
-rw-r--r--src/mame/drivers/fitfight.c10
-rw-r--r--src/mame/drivers/flipjack.c21
-rw-r--r--src/mame/drivers/flkatck.c7
-rw-r--r--src/mame/drivers/flower.c3
-rw-r--r--src/mame/drivers/flstory.c12
-rw-r--r--src/mame/drivers/flyball.c18
-rw-r--r--src/mame/drivers/foodf.c2
-rw-r--r--src/mame/drivers/fortecar.c12
-rw-r--r--src/mame/drivers/freekick.c3
-rw-r--r--src/mame/drivers/fresh.c4
-rw-r--r--src/mame/drivers/fromanc2.c6
-rw-r--r--src/mame/drivers/fromance.c6
-rw-r--r--src/mame/drivers/funkybee.c4
-rw-r--r--src/mame/drivers/funkyjet.c7
-rw-r--r--src/mame/drivers/funworld.c4
-rw-r--r--src/mame/drivers/funybubl.c2
-rw-r--r--src/mame/drivers/fuukifg2.c5
-rw-r--r--src/mame/drivers/fuukifg3.c6
-rw-r--r--src/mame/drivers/gaelco.c20
-rw-r--r--src/mame/drivers/gaelco2.c12
-rw-r--r--src/mame/drivers/gaelco3d.c4
-rw-r--r--src/mame/drivers/gaiden.c15
-rw-r--r--src/mame/drivers/gal3.c4
-rw-r--r--src/mame/drivers/galaga.c19
-rw-r--r--src/mame/drivers/galastrm.c4
-rw-r--r--src/mame/drivers/galaxi.c7
-rw-r--r--src/mame/drivers/galaxia.c8
-rw-r--r--src/mame/drivers/galaxian.c12
-rw-r--r--src/mame/drivers/galaxold.c50
-rw-r--r--src/mame/drivers/galgame.c11
-rw-r--r--src/mame/drivers/galivan.c8
-rw-r--r--src/mame/drivers/galpani2.c6
-rw-r--r--src/mame/drivers/galpani3.c11
-rw-r--r--src/mame/drivers/galpanic.c5
-rw-r--r--src/mame/drivers/galspnbl.c6
-rw-r--r--src/mame/drivers/gambl186.c2
-rw-r--r--src/mame/drivers/gamecstl.c4
-rw-r--r--src/mame/drivers/gaplus.c3
-rw-r--r--src/mame/drivers/gatron.c3
-rw-r--r--src/mame/drivers/gauntlet.c6
-rw-r--r--src/mame/drivers/gberet.c8
-rw-r--r--src/mame/drivers/gbusters.c10
-rw-r--r--src/mame/drivers/gcpinbal.c6
-rw-r--r--src/mame/drivers/gei.c16
-rw-r--r--src/mame/drivers/ggconnie.c2
-rw-r--r--src/mame/drivers/ghosteo.c4
-rw-r--r--src/mame/drivers/gijoe.c10
-rw-r--r--src/mame/drivers/ginganin.c6
-rw-r--r--src/mame/drivers/gladiatr.c4
-rw-r--r--src/mame/drivers/glass.c6
-rw-r--r--src/mame/drivers/gluck2.c6
-rw-r--r--src/mame/drivers/gng.c23
-rw-r--r--src/mame/drivers/go2000.c11
-rw-r--r--src/mame/drivers/goal92.c6
-rw-r--r--src/mame/drivers/goindol.c4
-rw-r--r--src/mame/drivers/goldngam.c8
-rw-r--r--src/mame/drivers/goldnpkr.c37
-rw-r--r--src/mame/drivers/goldstar.c109
-rw-r--r--src/mame/drivers/gomoku.c4
-rw-r--r--src/mame/drivers/good.c5
-rw-r--r--src/mame/drivers/goodejan.c11
-rw-r--r--src/mame/drivers/gotcha.c6
-rw-r--r--src/mame/drivers/gottlieb.c2
-rw-r--r--src/mame/drivers/gotya.c4
-rw-r--r--src/mame/drivers/gpworld.c16
-rw-r--r--src/mame/drivers/gradius3.c10
-rw-r--r--src/mame/drivers/grchamp.c1
-rw-r--r--src/mame/drivers/gridlee.c4
-rw-r--r--src/mame/drivers/groundfx.c4
-rw-r--r--src/mame/drivers/gstream.c22
-rw-r--r--src/mame/drivers/gstriker.c12
-rw-r--r--src/mame/drivers/gsword.c8
-rw-r--r--src/mame/drivers/gticlub.c12
-rw-r--r--src/mame/drivers/guab.c10
-rw-r--r--src/mame/drivers/gumbo.c10
-rw-r--r--src/mame/drivers/gunbustr.c6
-rw-r--r--src/mame/drivers/gundealr.c2
-rw-r--r--src/mame/drivers/gunpey.c14
-rw-r--r--src/mame/drivers/gunsmoke.c4
-rw-r--r--src/mame/drivers/gyruss.c4
-rw-r--r--src/mame/drivers/halleys.c26
-rw-r--r--src/mame/drivers/hanaawas.c4
-rw-r--r--src/mame/drivers/harddriv.c2
-rw-r--r--src/mame/drivers/hcastle.c5
-rw-r--r--src/mame/drivers/headonb.c9
-rw-r--r--src/mame/drivers/hexion.c4
-rw-r--r--src/mame/drivers/hideseek.c9
-rw-r--r--src/mame/drivers/higemaru.c3
-rw-r--r--src/mame/drivers/highvdeo.c12
-rw-r--r--src/mame/drivers/hikaru.c2
-rw-r--r--src/mame/drivers/himesiki.c5
-rw-r--r--src/mame/drivers/hitme.c3
-rw-r--r--src/mame/drivers/hitpoker.c6
-rw-r--r--src/mame/drivers/hnayayoi.c4
-rw-r--r--src/mame/drivers/hng64.c7
-rw-r--r--src/mame/drivers/holeland.c8
-rw-r--r--src/mame/drivers/homedata.c16
-rw-r--r--src/mame/drivers/homerun.c2
-rw-r--r--src/mame/drivers/hornet.c8
-rw-r--r--src/mame/drivers/hotblock.c6
-rw-r--r--src/mame/drivers/hotstuff.c2
-rw-r--r--src/mame/drivers/hvyunit.c10
-rw-r--r--src/mame/drivers/hyperspt.c4
-rw-r--r--src/mame/drivers/hyprduel.c4
-rw-r--r--src/mame/drivers/ichiban.c3
-rw-r--r--src/mame/drivers/igs009.c11
-rw-r--r--src/mame/drivers/igs011.c6
-rw-r--r--src/mame/drivers/igs017.c47
-rw-r--r--src/mame/drivers/igs_m027.c6
-rw-r--r--src/mame/drivers/igs_m036.c4
-rw-r--r--src/mame/drivers/igspoker.c18
-rw-r--r--src/mame/drivers/ikki.c4
-rw-r--r--src/mame/drivers/imolagp.c15
-rw-r--r--src/mame/drivers/intrscti.c8
-rw-r--r--src/mame/drivers/inufuku.c7
-rw-r--r--src/mame/drivers/invqix.c2
-rw-r--r--src/mame/drivers/iqblock.c8
-rw-r--r--src/mame/drivers/irobot.c4
-rw-r--r--src/mame/drivers/ironhors.c4
-rw-r--r--src/mame/drivers/istellar.c13
-rw-r--r--src/mame/drivers/itech32.c5
-rw-r--r--src/mame/drivers/itech8.c2
-rw-r--r--src/mame/drivers/itgambl2.c13
-rw-r--r--src/mame/drivers/itgambl3.c13
-rw-r--r--src/mame/drivers/itgamble.c4
-rw-r--r--src/mame/drivers/jack.c18
-rw-r--r--src/mame/drivers/jackal.c4
-rw-r--r--src/mame/drivers/jackie.c10
-rw-r--r--src/mame/drivers/jackpool.c10
-rw-r--r--src/mame/drivers/jailbrek.c3
-rw-r--r--src/mame/drivers/jalmah.c12
-rw-r--r--src/mame/drivers/jangou.c16
-rw-r--r--src/mame/drivers/jantotsu.c12
-rw-r--r--src/mame/drivers/jchan.c7
-rw-r--r--src/mame/drivers/jclub2.c16
-rw-r--r--src/mame/drivers/jokrwild.c7
-rw-r--r--src/mame/drivers/jollyjgr.c14
-rw-r--r--src/mame/drivers/jongkyo.c10
-rw-r--r--src/mame/drivers/jpmimpct.c2
-rw-r--r--src/mame/drivers/jpmsys5.c12
-rw-r--r--src/mame/drivers/jrpacman.c4
-rw-r--r--src/mame/drivers/jubilee.c6
-rw-r--r--src/mame/drivers/kaneko16.c39
-rw-r--r--src/mame/drivers/karnov.c7
-rw-r--r--src/mame/drivers/kas89.c2
-rw-r--r--src/mame/drivers/kchamp.c6
-rw-r--r--src/mame/drivers/kickgoal.c8
-rw-r--r--src/mame/drivers/kingdrby.c18
-rw-r--r--src/mame/drivers/kingobox.c8
-rw-r--r--src/mame/drivers/kinst.c3
-rw-r--r--src/mame/drivers/klax.c2
-rw-r--r--src/mame/drivers/kncljoe.c4
-rw-r--r--src/mame/drivers/koftball.c4
-rw-r--r--src/mame/drivers/koikoi.c15
-rw-r--r--src/mame/drivers/konamigx.c26
-rw-r--r--src/mame/drivers/konamim2.c3
-rw-r--r--src/mame/drivers/konendev.c3
-rw-r--r--src/mame/drivers/kontest.c11
-rw-r--r--src/mame/drivers/kopunch.c4
-rw-r--r--src/mame/drivers/ksayakyu.c4
-rw-r--r--src/mame/drivers/kurukuru.c2
-rw-r--r--src/mame/drivers/kyugo.c4
-rw-r--r--src/mame/drivers/labyrunr.c5
-rw-r--r--src/mame/drivers/ladybug.c10
-rw-r--r--src/mame/drivers/ladyfrog.c2
-rw-r--r--src/mame/drivers/laserbas.c5
-rw-r--r--src/mame/drivers/laserbat.c6
-rw-r--r--src/mame/drivers/lasso.c14
-rw-r--r--src/mame/drivers/lastbank.c5
-rw-r--r--src/mame/drivers/lastduel.c4
-rw-r--r--src/mame/drivers/lastfght.c8
-rw-r--r--src/mame/drivers/lazercmd.c21
-rw-r--r--src/mame/drivers/lbeach.c36
-rw-r--r--src/mame/drivers/legionna.c50
-rw-r--r--src/mame/drivers/leland.c2
-rw-r--r--src/mame/drivers/lemmings.c6
-rw-r--r--src/mame/drivers/lethal.c13
-rw-r--r--src/mame/drivers/lethalj.c3
-rw-r--r--src/mame/drivers/lgp.c8
-rw-r--r--src/mame/drivers/liberate.c6
-rw-r--r--src/mame/drivers/limenko.c10
-rw-r--r--src/mame/drivers/littlerb.c5
-rw-r--r--src/mame/drivers/lkage.c8
-rw-r--r--src/mame/drivers/lockon.c4
-rw-r--r--src/mame/drivers/looping.c11
-rw-r--r--src/mame/drivers/lordgun.c4
-rw-r--r--src/mame/drivers/lsasquad.c8
-rw-r--r--src/mame/drivers/ltcasino.c2
-rw-r--r--src/mame/drivers/luckgrln.c10
-rw-r--r--src/mame/drivers/lucky74.c4
-rw-r--r--src/mame/drivers/lvcards.c7
-rw-r--r--src/mame/drivers/lwings.c15
-rw-r--r--src/mame/drivers/m10.c10
-rw-r--r--src/mame/drivers/m107.c5
-rw-r--r--src/mame/drivers/m14.c9
-rw-r--r--src/mame/drivers/m52.c3
-rw-r--r--src/mame/drivers/m57.c4
-rw-r--r--src/mame/drivers/m58.c3
-rw-r--r--src/mame/drivers/m62.c20
-rw-r--r--src/mame/drivers/m63.c16
-rw-r--r--src/mame/drivers/m72.c26
-rw-r--r--src/mame/drivers/m90.c10
-rw-r--r--src/mame/drivers/m92.c6
-rw-r--r--src/mame/drivers/macrossp.c6
-rw-r--r--src/mame/drivers/macs.c2
-rw-r--r--src/mame/drivers/madmotor.c6
-rw-r--r--src/mame/drivers/magic10.c4
-rw-r--r--src/mame/drivers/magicard.c18
-rw-r--r--src/mame/drivers/magicfly.c79
-rw-r--r--src/mame/drivers/magmax.c4
-rw-r--r--src/mame/drivers/mainevt.c20
-rw-r--r--src/mame/drivers/mainsnk.c7
-rw-r--r--src/mame/drivers/majorpkr.c6
-rw-r--r--src/mame/drivers/malzak.c9
-rw-r--r--src/mame/drivers/mappy.c15
-rw-r--r--src/mame/drivers/marineb.c4
-rw-r--r--src/mame/drivers/marinedt.c16
-rw-r--r--src/mame/drivers/mario.c4
-rw-r--r--src/mame/drivers/markham.c4
-rw-r--r--src/mame/drivers/mastboy.c6
-rw-r--r--src/mame/drivers/matmania.c8
-rw-r--r--src/mame/drivers/maxaflex.c4
-rw-r--r--src/mame/drivers/maygayv1.c6
-rw-r--r--src/mame/drivers/mayumi.c4
-rw-r--r--src/mame/drivers/mazerbla.c22
-rw-r--r--src/mame/drivers/mcatadv.c5
-rw-r--r--src/mame/drivers/mcr.c15
-rw-r--r--src/mame/drivers/mcr3.c11
-rw-r--r--src/mame/drivers/mcr68.c4
-rw-r--r--src/mame/drivers/meadows.c19
-rw-r--r--src/mame/drivers/mediagx.c9
-rw-r--r--src/mame/drivers/megaphx.c6
-rw-r--r--src/mame/drivers/megasys1.c29
-rw-r--r--src/mame/drivers/megatech.c2
-rw-r--r--src/mame/drivers/megazone.c4
-rw-r--r--src/mame/drivers/meijinsn.c12
-rw-r--r--src/mame/drivers/meritm.c4
-rw-r--r--src/mame/drivers/mermaid.c7
-rw-r--r--src/mame/drivers/metalmx.c4
-rw-r--r--src/mame/drivers/metlclsh.c8
-rw-r--r--src/mame/drivers/metro.c123
-rw-r--r--src/mame/drivers/mexico86.c4
-rw-r--r--src/mame/drivers/meyc8088.c9
-rw-r--r--src/mame/drivers/mgolf.c20
-rw-r--r--src/mame/drivers/micro3d.c2
-rw-r--r--src/mame/drivers/midas.c13
-rw-r--r--src/mame/drivers/midtunit.c2
-rw-r--r--src/mame/drivers/midvunit.c2
-rw-r--r--src/mame/drivers/midwunit.c2
-rw-r--r--src/mame/drivers/midxunit.c2
-rw-r--r--src/mame/drivers/midyunit.c22
-rw-r--r--src/mame/drivers/midzeus.c2
-rw-r--r--src/mame/drivers/mikie.c4
-rw-r--r--src/mame/drivers/mil4000.c6
-rw-r--r--src/mame/drivers/miniboy7.c11
-rw-r--r--src/mame/drivers/mirage.c7
-rw-r--r--src/mame/drivers/mirax.c17
-rw-r--r--src/mame/drivers/missb2.c15
-rw-r--r--src/mame/drivers/missile.c4
-rw-r--r--src/mame/drivers/mitchell.c22
-rw-r--r--src/mame/drivers/mjkjidai.c4
-rw-r--r--src/mame/drivers/mjsister.c5
-rw-r--r--src/mame/drivers/mlanding.c7
-rw-r--r--src/mame/drivers/model1.c18
-rw-r--r--src/mame/drivers/model2.c20
-rw-r--r--src/mame/drivers/model3.c12
-rw-r--r--src/mame/drivers/mogura.c9
-rw-r--r--src/mame/drivers/mole.c10
-rw-r--r--src/mame/drivers/momoko.c5
-rw-r--r--src/mame/drivers/monzagp.c9
-rw-r--r--src/mame/drivers/moo.c29
-rw-r--r--src/mame/drivers/mosaic.c7
-rw-r--r--src/mame/drivers/mouser.c4
-rw-r--r--src/mame/drivers/mpoker.c12
-rw-r--r--src/mame/drivers/mpu12wbk.c7
-rw-r--r--src/mame/drivers/mpu4dealem.c8
-rw-r--r--src/mame/drivers/mpu4plasma.c2
-rw-r--r--src/mame/drivers/mpu4vid.c15
-rw-r--r--src/mame/drivers/mquake.c4
-rw-r--r--src/mame/drivers/mrdo.c4
-rw-r--r--src/mame/drivers/mrflea.c5
-rw-r--r--src/mame/drivers/mrjong.c4
-rw-r--r--src/mame/drivers/ms32.c2
-rw-r--r--src/mame/drivers/msisaac.c5
-rw-r--r--src/mame/drivers/mugsmash.c5
-rw-r--r--src/mame/drivers/multfish.c6
-rw-r--r--src/mame/drivers/multigam.c10
-rw-r--r--src/mame/drivers/munchmo.c4
-rw-r--r--src/mame/drivers/murogem.c9
-rw-r--r--src/mame/drivers/murogmbl.c12
-rw-r--r--src/mame/drivers/mustache.c4
-rw-r--r--src/mame/drivers/mwarr.c16
-rw-r--r--src/mame/drivers/mystwarr.c29
-rw-r--r--src/mame/drivers/n8080.c12
-rw-r--r--src/mame/drivers/namcofl.c2
-rw-r--r--src/mame/drivers/namcoic.c19
-rw-r--r--src/mame/drivers/namcona1.c5
-rw-r--r--src/mame/drivers/namconb1.c11
-rw-r--r--src/mame/drivers/namcond1.c3
-rw-r--r--src/mame/drivers/namcops2.c2
-rw-r--r--src/mame/drivers/namcos1.c6
-rw-r--r--src/mame/drivers/namcos2.c44
-rw-r--r--src/mame/drivers/namcos21.c6
-rw-r--r--src/mame/drivers/namcos22.c4
-rw-r--r--src/mame/drivers/namcos23.c10
-rw-r--r--src/mame/drivers/namcos86.c4
-rw-r--r--src/mame/drivers/naomi.c2
-rw-r--r--src/mame/drivers/naughtyb.c7
-rw-r--r--src/mame/drivers/nbmj8688.c18
-rw-r--r--src/mame/drivers/nbmj8891.c2
-rw-r--r--src/mame/drivers/nbmj8900.c2
-rw-r--r--src/mame/drivers/nbmj8991.c4
-rw-r--r--src/mame/drivers/nbmj9195.c5
-rw-r--r--src/mame/drivers/nemesis.c20
-rw-r--r--src/mame/drivers/neoprint.c20
-rw-r--r--src/mame/drivers/neptunp2.c2
-rw-r--r--src/mame/drivers/news.c6
-rw-r--r--src/mame/drivers/nexus3d.c2
-rw-r--r--src/mame/drivers/nightgal.c16
-rw-r--r--src/mame/drivers/ninjakd2.c15
-rw-r--r--src/mame/drivers/ninjaw.c12
-rw-r--r--src/mame/drivers/nitedrvr.c3
-rw-r--r--src/mame/drivers/niyanpai.c2
-rw-r--r--src/mame/drivers/nmg5.c9
-rw-r--r--src/mame/drivers/nmk16.c115
-rw-r--r--src/mame/drivers/norautp.c27
-rw-r--r--src/mame/drivers/nova2001.c16
-rw-r--r--src/mame/drivers/nsmpoker.c8
-rw-r--r--src/mame/drivers/nwk-tr.c8
-rw-r--r--src/mame/drivers/nycaptor.c9
-rw-r--r--src/mame/drivers/offtwall.c2
-rw-r--r--src/mame/drivers/ohmygod.c7
-rw-r--r--src/mame/drivers/ojankohs.c10
-rw-r--r--src/mame/drivers/olibochu.c16
-rw-r--r--src/mame/drivers/oneshot.c6
-rw-r--r--src/mame/drivers/onetwo.c4
-rw-r--r--src/mame/drivers/opwolf.c14
-rw-r--r--src/mame/drivers/orbit.c4
-rw-r--r--src/mame/drivers/othello.c25
-rw-r--r--src/mame/drivers/othunder.c3
-rw-r--r--src/mame/drivers/overdriv.c11
-rw-r--r--src/mame/drivers/pacland.c3
-rw-r--r--src/mame/drivers/pacman.c4
-rw-r--r--src/mame/drivers/pandoras.c4
-rw-r--r--src/mame/drivers/panicr.c31
-rw-r--r--src/mame/drivers/paradise.c2
-rw-r--r--src/mame/drivers/paranoia.c6
-rw-r--r--src/mame/drivers/parodius.c12
-rw-r--r--src/mame/drivers/pasha2.c6
-rw-r--r--src/mame/drivers/pass.c5
-rw-r--r--src/mame/drivers/pastelg.c6
-rw-r--r--src/mame/drivers/pbaction.c6
-rw-r--r--src/mame/drivers/pcktgal.c3
-rw-r--r--src/mame/drivers/pcxt.c2
-rw-r--r--src/mame/drivers/pengo.c4
-rw-r--r--src/mame/drivers/peplus.c18
-rw-r--r--src/mame/drivers/pgm.c5
-rw-r--r--src/mame/drivers/pgm2.c2
-rw-r--r--src/mame/drivers/phoenix.c11
-rw-r--r--src/mame/drivers/photon.c4
-rw-r--r--src/mame/drivers/photon2.c10
-rw-r--r--src/mame/drivers/photoply.c2
-rw-r--r--src/mame/drivers/pinball2k.c8
-rw-r--r--src/mame/drivers/pingpong.c4
-rw-r--r--src/mame/drivers/pinkiri8.c10
-rw-r--r--src/mame/drivers/pipedrm.c9
-rw-r--r--src/mame/drivers/pipeline.c12
-rw-r--r--src/mame/drivers/pirates.c5
-rw-r--r--src/mame/drivers/pitnrun.c3
-rw-r--r--src/mame/drivers/pkscram.c5
-rw-r--r--src/mame/drivers/pktgaldx.c12
-rw-r--r--src/mame/drivers/playch10.c3
-rw-r--r--src/mame/drivers/playmark.c20
-rw-r--r--src/mame/drivers/plygonet.c4
-rw-r--r--src/mame/drivers/pokechmp.c8
-rw-r--r--src/mame/drivers/poker72.c14
-rw-r--r--src/mame/drivers/polepos.c8
-rw-r--r--src/mame/drivers/policetr.c2
-rw-r--r--src/mame/drivers/polyplay.c4
-rw-r--r--src/mame/drivers/poolshrk.c13
-rw-r--r--src/mame/drivers/pooyan.c4
-rw-r--r--src/mame/drivers/popeye.c7
-rw-r--r--src/mame/drivers/popobear.c10
-rw-r--r--src/mame/drivers/popper.c4
-rw-r--r--src/mame/drivers/portrait.c4
-rw-r--r--src/mame/drivers/powerbal.c6
-rw-r--r--src/mame/drivers/powerins.c2
-rw-r--r--src/mame/drivers/ppmast93.c3
-rw-r--r--src/mame/drivers/prehisle.c5
-rw-r--r--src/mame/drivers/progolf.c17
-rw-r--r--src/mame/drivers/psattack.c3
-rw-r--r--src/mame/drivers/psikyo.c16
-rw-r--r--src/mame/drivers/psikyo4.c14
-rw-r--r--src/mame/drivers/psikyosh.c4
-rw-r--r--src/mame/drivers/psychic5.c4
-rw-r--r--src/mame/drivers/pturn.c5
-rw-r--r--src/mame/drivers/punchout.c2
-rw-r--r--src/mame/drivers/pushman.c10
-rw-r--r--src/mame/drivers/pyson.c2
-rw-r--r--src/mame/drivers/pzletime.c21
-rw-r--r--src/mame/drivers/qdrmfgp.c12
-rw-r--r--src/mame/drivers/quakeat.c2
-rw-r--r--src/mame/drivers/quasar.c4
-rw-r--r--src/mame/drivers/quizdna.c2
-rw-r--r--src/mame/drivers/quizo.c9
-rw-r--r--src/mame/drivers/quizpani.c5
-rw-r--r--src/mame/drivers/quizpun2.c9
-rw-r--r--src/mame/drivers/quizshow.c15
-rw-r--r--src/mame/drivers/r2dx_v33.c22
-rw-r--r--src/mame/drivers/rabbit.c12
-rw-r--r--src/mame/drivers/raiden.c7
-rw-r--r--src/mame/drivers/raiden2.c22
-rw-r--r--src/mame/drivers/rainbow.c13
-rw-r--r--src/mame/drivers/rallyx.c16
-rw-r--r--src/mame/drivers/rampart.c2
-rw-r--r--src/mame/drivers/rastan.c7
-rw-r--r--src/mame/drivers/rastersp.c13
-rw-r--r--src/mame/drivers/rbmk.c10
-rw-r--r--src/mame/drivers/rcorsair.c2
-rw-r--r--src/mame/drivers/realbrk.c6
-rw-r--r--src/mame/drivers/redclash.c8
-rw-r--r--src/mame/drivers/relief.c2
-rw-r--r--src/mame/drivers/renegade.c8
-rw-r--r--src/mame/drivers/retofinv.c4
-rw-r--r--src/mame/drivers/rgum.c4
-rw-r--r--src/mame/drivers/rltennis.c4
-rw-r--r--src/mame/drivers/rmhaihai.c9
-rw-r--r--src/mame/drivers/rockrage.c5
-rw-r--r--src/mame/drivers/rocnrope.c4
-rw-r--r--src/mame/drivers/rohga.c22
-rw-r--r--src/mame/drivers/rollerg.c10
-rw-r--r--src/mame/drivers/rollrace.c4
-rw-r--r--src/mame/drivers/roul.c10
-rw-r--r--src/mame/drivers/royalmah.c16
-rw-r--r--src/mame/drivers/rpunch.c8
-rw-r--r--src/mame/drivers/runaway.c2
-rw-r--r--src/mame/drivers/rungun.c10
-rw-r--r--src/mame/drivers/safarir.c14
-rw-r--r--src/mame/drivers/sandscrp.c6
-rw-r--r--src/mame/drivers/sangho.c4
-rw-r--r--src/mame/drivers/sanremo.c11
-rw-r--r--src/mame/drivers/sauro.c3
-rw-r--r--src/mame/drivers/sbasketb.c4
-rw-r--r--src/mame/drivers/sbowling.c11
-rw-r--r--src/mame/drivers/sbrkout.c5
-rw-r--r--src/mame/drivers/sbugger.c4
-rw-r--r--src/mame/drivers/scobra.c28
-rw-r--r--src/mame/drivers/scotrsht.c4
-rw-r--r--src/mame/drivers/scramble.c64
-rw-r--r--src/mame/drivers/scregg.c8
-rw-r--r--src/mame/drivers/sderby.c25
-rw-r--r--src/mame/drivers/seabattl.c21
-rw-r--r--src/mame/drivers/segac2.c12
-rw-r--r--src/mame/drivers/segae.c2
-rw-r--r--src/mame/drivers/segag80r.c14
-rw-r--r--src/mame/drivers/segahang.c2
-rw-r--r--src/mame/drivers/segajw.c7
-rw-r--r--src/mame/drivers/segald.c6
-rw-r--r--src/mame/drivers/segaorun.c2
-rw-r--r--src/mame/drivers/segas16a.c2
-rw-r--r--src/mame/drivers/segas16b.c2
-rw-r--r--src/mame/drivers/segas18.c2
-rw-r--r--src/mame/drivers/segas24.c7
-rw-r--r--src/mame/drivers/segas32.c4
-rw-r--r--src/mame/drivers/segaxbd.c2
-rw-r--r--src/mame/drivers/segaybd.c2
-rw-r--r--src/mame/drivers/seibuspi.c12
-rw-r--r--src/mame/drivers/seicross.c4
-rw-r--r--src/mame/drivers/sengokmj.c11
-rw-r--r--src/mame/drivers/senjyo.c6
-rw-r--r--src/mame/drivers/seta.c144
-rw-r--r--src/mame/drivers/seta2.c31
-rw-r--r--src/mame/drivers/sf.c11
-rw-r--r--src/mame/drivers/sfbonus.c8
-rw-r--r--src/mame/drivers/sfkick.c2
-rw-r--r--src/mame/drivers/shadfrce.c8
-rw-r--r--src/mame/drivers/shangha3.c24
-rw-r--r--src/mame/drivers/shanghai.c22
-rw-r--r--src/mame/drivers/shangkid.c8
-rw-r--r--src/mame/drivers/shaolins.c4
-rw-r--r--src/mame/drivers/shisen.c2
-rw-r--r--src/mame/drivers/shootout.c8
-rw-r--r--src/mame/drivers/shougi.c12
-rw-r--r--src/mame/drivers/shtzone.c2
-rw-r--r--src/mame/drivers/shuuz.c2
-rw-r--r--src/mame/drivers/sidearms.c23
-rw-r--r--src/mame/drivers/sidepckt.c3
-rw-r--r--src/mame/drivers/sigmab52.c8
-rw-r--r--src/mame/drivers/sigmab98.c23
-rw-r--r--src/mame/drivers/silkroad.c4
-rw-r--r--src/mame/drivers/silvmil.c6
-rw-r--r--src/mame/drivers/simpl156.c6
-rw-r--r--src/mame/drivers/simpsons.c9
-rw-r--r--src/mame/drivers/skimaxx.c5
-rw-r--r--src/mame/drivers/skullxbo.c2
-rw-r--r--src/mame/drivers/skyarmy.c12
-rw-r--r--src/mame/drivers/skydiver.c6
-rw-r--r--src/mame/drivers/skyfox.c4
-rw-r--r--src/mame/drivers/skykid.c4
-rw-r--r--src/mame/drivers/skylncr.c6
-rw-r--r--src/mame/drivers/skyraid.c46
-rw-r--r--src/mame/drivers/slapfght.c16
-rw-r--r--src/mame/drivers/slapshot.c6
-rw-r--r--src/mame/drivers/sliver.c3
-rw-r--r--src/mame/drivers/slotcarn.c2
-rw-r--r--src/mame/drivers/smsmcorp.c10
-rw-r--r--src/mame/drivers/snk.c42
-rw-r--r--src/mame/drivers/snk6502.c8
-rw-r--r--src/mame/drivers/snk68.c2
-rw-r--r--src/mame/drivers/snookr10.c9
-rw-r--r--src/mame/drivers/snowbros.c27
-rw-r--r--src/mame/drivers/solomon.c6
-rw-r--r--src/mame/drivers/sonson.c3
-rw-r--r--src/mame/drivers/sothello.c2
-rw-r--r--src/mame/drivers/spaceg.c47
-rw-r--r--src/mame/drivers/spbactn.c12
-rw-r--r--src/mame/drivers/spcforce.c7
-rw-r--r--src/mame/drivers/spdodgeb.c4
-rw-r--r--src/mame/drivers/speedatk.c4
-rw-r--r--src/mame/drivers/speedbal.c5
-rw-r--r--src/mame/drivers/speedspn.c6
-rw-r--r--src/mame/drivers/speglsht.c4
-rw-r--r--src/mame/drivers/splash.c15
-rw-r--r--src/mame/drivers/splus.c2
-rw-r--r--src/mame/drivers/spoker.c14
-rw-r--r--src/mame/drivers/spool99.c7
-rw-r--r--src/mame/drivers/sprcros2.c4
-rw-r--r--src/mame/drivers/sprint2.c4
-rw-r--r--src/mame/drivers/sprint4.c4
-rw-r--r--src/mame/drivers/sprint8.c5
-rw-r--r--src/mame/drivers/spy.c10
-rw-r--r--src/mame/drivers/srmp2.c18
-rw-r--r--src/mame/drivers/srmp5.c6
-rw-r--r--src/mame/drivers/srmp6.c13
-rw-r--r--src/mame/drivers/srumbler.c5
-rw-r--r--src/mame/drivers/ssfindo.c4
-rw-r--r--src/mame/drivers/sshangha.c7
-rw-r--r--src/mame/drivers/sshot.c9
-rw-r--r--src/mame/drivers/ssingles.c2
-rw-r--r--src/mame/drivers/sslam.c4
-rw-r--r--src/mame/drivers/ssozumo.c4
-rw-r--r--src/mame/drivers/sspeedr.c8
-rw-r--r--src/mame/drivers/ssrj.c4
-rw-r--r--src/mame/drivers/ssv.c3
-rw-r--r--src/mame/drivers/st0016.c2
-rw-r--r--src/mame/drivers/stadhero.c6
-rw-r--r--src/mame/drivers/starcrus.c3
-rw-r--r--src/mame/drivers/starshp1.c4
-rw-r--r--src/mame/drivers/statriv2.c14
-rw-r--r--src/mame/drivers/stfight.c3
-rw-r--r--src/mame/drivers/stlforce.c6
-rw-r--r--src/mame/drivers/strnskil.c4
-rw-r--r--src/mame/drivers/stuntair.c12
-rw-r--r--src/mame/drivers/stv.c2
-rw-r--r--src/mame/drivers/sub.c27
-rw-r--r--src/mame/drivers/subs.c15
-rw-r--r--src/mame/drivers/subsino.c26
-rw-r--r--src/mame/drivers/subsino2.c20
-rw-r--r--src/mame/drivers/summit.c10
-rw-r--r--src/mame/drivers/suna16.c8
-rw-r--r--src/mame/drivers/suna8.c29
-rw-r--r--src/mame/drivers/supbtime.c14
-rw-r--r--src/mame/drivers/supdrapo.c12
-rw-r--r--src/mame/drivers/superchs.c4
-rw-r--r--src/mame/drivers/supercrd.c8
-rw-r--r--src/mame/drivers/superdq.c16
-rw-r--r--src/mame/drivers/superqix.c18
-rw-r--r--src/mame/drivers/superwng.c13
-rw-r--r--src/mame/drivers/suprgolf.c10
-rw-r--r--src/mame/drivers/suprloco.c4
-rw-r--r--src/mame/drivers/suprnova.c2
-rw-r--r--src/mame/drivers/suprridr.c4
-rw-r--r--src/mame/drivers/suprslam.c6
-rw-r--r--src/mame/drivers/surpratk.c12
-rw-r--r--src/mame/drivers/system1.c2
-rw-r--r--src/mame/drivers/system16.c8
-rw-r--r--src/mame/drivers/tagteam.c4
-rw-r--r--src/mame/drivers/tail2nos.c6
-rw-r--r--src/mame/drivers/taito_b.c88
-rw-r--r--src/mame/drivers/taito_f2.c69
-rw-r--r--src/mame/drivers/taito_f3.c4
-rw-r--r--src/mame/drivers/taito_h.c17
-rw-r--r--src/mame/drivers/taito_l.c10
-rw-r--r--src/mame/drivers/taito_o.c5
-rw-r--r--src/mame/drivers/taito_x.c24
-rw-r--r--src/mame/drivers/taito_z.c48
-rw-r--r--src/mame/drivers/taitoair.c8
-rw-r--r--src/mame/drivers/taitojc.c2
-rw-r--r--src/mame/drivers/taitosj.c2
-rw-r--r--src/mame/drivers/taitotx.c2
-rw-r--r--src/mame/drivers/taitowlf.c21
-rw-r--r--src/mame/drivers/tank8.c4
-rw-r--r--src/mame/drivers/tankbatt.c4
-rw-r--r--src/mame/drivers/tankbust.c10
-rw-r--r--src/mame/drivers/taotaido.c8
-rw-r--r--src/mame/drivers/targeth.c6
-rw-r--r--src/mame/drivers/tasman.c9
-rw-r--r--src/mame/drivers/tatsumi.c20
-rw-r--r--src/mame/drivers/tattack.c12
-rw-r--r--src/mame/drivers/taxidriv.c7
-rw-r--r--src/mame/drivers/tbowl.c5
-rw-r--r--src/mame/drivers/tceptor.c5
-rw-r--r--src/mame/drivers/tcl.c2
-rw-r--r--src/mame/drivers/tecmo.c12
-rw-r--r--src/mame/drivers/tecmo16.c8
-rw-r--r--src/mame/drivers/tecmosys.c5
-rw-r--r--src/mame/drivers/tehkanwc.c8
-rw-r--r--src/mame/drivers/terracre.c12
-rw-r--r--src/mame/drivers/tetrisp2.c12
-rw-r--r--src/mame/drivers/thayers.c2
-rw-r--r--src/mame/drivers/thedeep.c3
-rw-r--r--src/mame/drivers/thepit.c6
-rw-r--r--src/mame/drivers/thief.c6
-rw-r--r--src/mame/drivers/thoop2.c6
-rw-r--r--src/mame/drivers/thunderj.c2
-rw-r--r--src/mame/drivers/thunderx.c20
-rw-r--r--src/mame/drivers/tiamc1.c4
-rw-r--r--src/mame/drivers/tigeroad.c5
-rw-r--r--src/mame/drivers/timelimt.c4
-rw-r--r--src/mame/drivers/timeplt.c3
-rw-r--r--src/mame/drivers/timetrv.c2
-rw-r--r--src/mame/drivers/tmaster.c12
-rw-r--r--src/mame/drivers/tmmjprd.c14
-rw-r--r--src/mame/drivers/tmnt.c129
-rw-r--r--src/mame/drivers/tmspoker.c7
-rw-r--r--src/mame/drivers/tnzs.c42
-rw-r--r--src/mame/drivers/toaplan1.c24
-rw-r--r--src/mame/drivers/toaplan2.c123
-rw-r--r--src/mame/drivers/toki.c12
-rw-r--r--src/mame/drivers/tokyocop.c2
-rw-r--r--src/mame/drivers/tonton.c2
-rw-r--r--src/mame/drivers/toobin.c2
-rw-r--r--src/mame/drivers/topspeed.c7
-rw-r--r--src/mame/drivers/tourtabl.c2
-rw-r--r--src/mame/drivers/tourvis.c6
-rw-r--r--src/mame/drivers/toypop.c4
-rw-r--r--src/mame/drivers/tp84.c4
-rw-r--r--src/mame/drivers/trackfld.c8
-rw-r--r--src/mame/drivers/travrusa.c7
-rw-r--r--src/mame/drivers/triforce.c2
-rw-r--r--src/mame/drivers/triplhnt.c21
-rw-r--r--src/mame/drivers/truco.c3
-rw-r--r--src/mame/drivers/trucocl.c4
-rw-r--r--src/mame/drivers/trvmadns.c8
-rw-r--r--src/mame/drivers/tryout.c4
-rw-r--r--src/mame/drivers/tsamurai.c12
-rw-r--r--src/mame/drivers/ttchamp.c8
-rw-r--r--src/mame/drivers/tubep.c8
-rw-r--r--src/mame/drivers/tugboat.c13
-rw-r--r--src/mame/drivers/tumbleb.c42
-rw-r--r--src/mame/drivers/tumblep.c7
-rw-r--r--src/mame/drivers/tunhunt.c4
-rw-r--r--src/mame/drivers/turbo.c12
-rw-r--r--src/mame/drivers/turrett.c5
-rw-r--r--src/mame/drivers/twin16.c10
-rw-r--r--src/mame/drivers/twincobr.c5
-rw-r--r--src/mame/drivers/twins.c12
-rw-r--r--src/mame/drivers/tx1.c12
-rw-r--r--src/mame/drivers/uapce.c6
-rw-r--r--src/mame/drivers/ultraman.c12
-rw-r--r--src/mame/drivers/ultratnk.c4
-rw-r--r--src/mame/drivers/ultrsprt.c6
-rw-r--r--src/mame/drivers/umipoker.c7
-rw-r--r--src/mame/drivers/undrfire.c6
-rw-r--r--src/mame/drivers/unico.c6
-rw-r--r--src/mame/drivers/unkhorse.c9
-rw-r--r--src/mame/drivers/upscope.c4
-rw-r--r--src/mame/drivers/usgames.c4
-rw-r--r--src/mame/drivers/vamphalf.c16
-rw-r--r--src/mame/drivers/vaportra.c5
-rw-r--r--src/mame/drivers/vastar.c4
-rw-r--r--src/mame/drivers/vball.c2
-rw-r--r--src/mame/drivers/vega.c19
-rw-r--r--src/mame/drivers/vegaeo.c4
-rw-r--r--src/mame/drivers/vendetta.c12
-rw-r--r--src/mame/drivers/victory.c2
-rw-r--r--src/mame/drivers/videopin.c3
-rw-r--r--src/mame/drivers/videopkr.c25
-rw-r--r--src/mame/drivers/vigilant.c6
-rw-r--r--src/mame/drivers/vindictr.c2
-rw-r--r--src/mame/drivers/viper.c5
-rw-r--r--src/mame/drivers/vlc.c7
-rw-r--r--src/mame/drivers/volfied.c7
-rw-r--r--src/mame/drivers/vp101.c2
-rw-r--r--src/mame/drivers/vpoker.c12
-rw-r--r--src/mame/drivers/vroulet.c6
-rw-r--r--src/mame/drivers/vsnes.c13
-rw-r--r--src/mame/drivers/vulgus.c3
-rw-r--r--src/mame/drivers/wallc.c12
-rw-r--r--src/mame/drivers/wardner.c5
-rw-r--r--src/mame/drivers/warpsped.c13
-rw-r--r--src/mame/drivers/warpwarp.c15
-rw-r--r--src/mame/drivers/warriorb.c8
-rw-r--r--src/mame/drivers/wc90.c5
-rw-r--r--src/mame/drivers/wc90b.c6
-rw-r--r--src/mame/drivers/wecleman.c8
-rw-r--r--src/mame/drivers/welltris.c6
-rw-r--r--src/mame/drivers/wgp.c6
-rw-r--r--src/mame/drivers/wheelfir.c16
-rw-r--r--src/mame/drivers/wildpkr.c10
-rw-r--r--src/mame/drivers/williams.c2
-rw-r--r--src/mame/drivers/wink.c5
-rw-r--r--src/mame/drivers/wiping.c4
-rw-r--r--src/mame/drivers/witch.c16
-rw-r--r--src/mame/drivers/wiz.c3
-rw-r--r--src/mame/drivers/wolfpack.c3
-rw-r--r--src/mame/drivers/wrally.c5
-rw-r--r--src/mame/drivers/wwfsstar.c6
-rw-r--r--src/mame/drivers/xain.c8
-rw-r--r--src/mame/drivers/xexex.c11
-rw-r--r--src/mame/drivers/xmen.c19
-rw-r--r--src/mame/drivers/xorworld.c3
-rw-r--r--src/mame/drivers/xxmissio.c3
-rw-r--r--src/mame/drivers/xybots.c6
-rw-r--r--src/mame/drivers/xyonix.c4
-rw-r--r--src/mame/drivers/yiear.c4
-rw-r--r--src/mame/drivers/yunsun16.c9
-rw-r--r--src/mame/drivers/yunsung8.c2
-rw-r--r--src/mame/drivers/zac2650.c13
-rw-r--r--src/mame/drivers/zaccaria.c4
-rw-r--r--src/mame/drivers/zaxxon.c8
-rw-r--r--src/mame/drivers/zerozone.c6
-rw-r--r--src/mame/drivers/zodiack.c4
-rw-r--r--src/mame/drivers/zr107.c16
-rw-r--r--src/mame/etc/template_driver.c10
-rw-r--r--src/mame/includes/1942.h4
-rw-r--r--src/mame/includes/1943.h2
-rw-r--r--src/mame/includes/40love.h2
-rw-r--r--src/mame/includes/4enraya.h2
-rw-r--r--src/mame/includes/88games.h2
-rw-r--r--src/mame/includes/ambush.h2
-rw-r--r--src/mame/includes/ampoker2.h2
-rw-r--r--src/mame/includes/arabian.h2
-rw-r--r--src/mame/includes/astrocde.h2
-rw-r--r--src/mame/includes/atarifb.h2
-rw-r--r--src/mame/includes/atarigt.h4
-rw-r--r--src/mame/includes/bankp.h2
-rw-r--r--src/mame/includes/baraduke.h2
-rw-r--r--src/mame/includes/bking.h2
-rw-r--r--src/mame/includes/bladestl.h2
-rw-r--r--src/mame/includes/blockade.h1
-rw-r--r--src/mame/includes/blueprnt.h2
-rw-r--r--src/mame/includes/bogeyman.h2
-rw-r--r--src/mame/includes/brkthru.h2
-rw-r--r--src/mame/includes/bsktball.h2
-rw-r--r--src/mame/includes/buggychl.h2
-rw-r--r--src/mame/includes/calomega.h3
-rw-r--r--src/mame/includes/canyon.h2
-rw-r--r--src/mame/includes/carjmbre.h2
-rw-r--r--src/mame/includes/carpolo.h2
-rw-r--r--src/mame/includes/chaknpop.h2
-rw-r--r--src/mame/includes/cheekyms.h2
-rw-r--r--src/mame/includes/circusc.h2
-rw-r--r--src/mame/includes/compgolf.h2
-rw-r--r--src/mame/includes/contra.h2
-rw-r--r--src/mame/includes/cop01.h2
-rw-r--r--src/mame/includes/copsnrob.h1
-rw-r--r--src/mame/includes/crbaloon.h2
-rw-r--r--src/mame/includes/darkmist.h2
-rw-r--r--src/mame/includes/dcheese.h2
-rw-r--r--src/mame/includes/dday.h2
-rw-r--r--src/mame/includes/ddribble.h2
-rw-r--r--src/mame/includes/decocass.h2
-rw-r--r--src/mame/includes/docastle.h2
-rw-r--r--src/mame/includes/dogfgt.h2
-rw-r--r--src/mame/includes/dragrace.h2
-rw-r--r--src/mame/includes/dribling.h2
-rw-r--r--src/mame/includes/drmicro.h2
-rw-r--r--src/mame/includes/espial.h2
-rw-r--r--src/mame/includes/exedexes.h2
-rw-r--r--src/mame/includes/exerion.h2
-rw-r--r--src/mame/includes/exterm.h2
-rw-r--r--src/mame/includes/fastlane.h2
-rw-r--r--src/mame/includes/fcombat.h2
-rw-r--r--src/mame/includes/fgoal.h2
-rw-r--r--src/mame/includes/finalizr.h2
-rw-r--r--src/mame/includes/firetrap.h2
-rw-r--r--src/mame/includes/firetrk.h2
-rw-r--r--src/mame/includes/flower.h2
-rw-r--r--src/mame/includes/funkybee.h2
-rw-r--r--src/mame/includes/galaxian.h2
-rw-r--r--src/mame/includes/galivan.h2
-rw-r--r--src/mame/includes/galpani2.h6
-rw-r--r--src/mame/includes/galspnbl.h3
-rw-r--r--src/mame/includes/gaplus.h2
-rw-r--r--src/mame/includes/gatron.h2
-rw-r--r--src/mame/includes/gomoku.h2
-rw-r--r--src/mame/includes/gotya.h2
-rw-r--r--src/mame/includes/grchamp.h2
-rw-r--r--src/mame/includes/gridlee.h2
-rw-r--r--src/mame/includes/gunsmoke.h2
-rw-r--r--src/mame/includes/gyruss.h2
-rw-r--r--src/mame/includes/hanaawas.h2
-rw-r--r--src/mame/includes/hcastle.h2
-rw-r--r--src/mame/includes/higemaru.h2
-rw-r--r--src/mame/includes/hyperspt.h2
-rw-r--r--src/mame/includes/ikki.h2
-rw-r--r--src/mame/includes/irobot.h2
-rw-r--r--src/mame/includes/ironhors.h2
-rw-r--r--src/mame/includes/jackal.h2
-rw-r--r--src/mame/includes/jailbrek.h2
-rw-r--r--src/mame/includes/jpmsys5.h2
-rw-r--r--src/mame/includes/karnov.h2
-rw-r--r--src/mame/includes/kchamp.h2
-rw-r--r--src/mame/includes/kingobox.h2
-rw-r--r--src/mame/includes/kncljoe.h2
-rw-r--r--src/mame/includes/kopunch.h2
-rw-r--r--src/mame/includes/ksayakyu.h2
-rw-r--r--src/mame/includes/labyrunr.h2
-rw-r--r--src/mame/includes/lasso.h4
-rw-r--r--src/mame/includes/lazercmd.h2
-rw-r--r--src/mame/includes/lockon.h2
-rw-r--r--src/mame/includes/lucky74.h2
-rw-r--r--src/mame/includes/lvcards.h2
-rw-r--r--src/mame/includes/m52.h2
-rw-r--r--src/mame/includes/m57.h2
-rw-r--r--src/mame/includes/m58.h2
-rw-r--r--src/mame/includes/m62.h2
-rw-r--r--src/mame/includes/magmax.h2
-rw-r--r--src/mame/includes/mainsnk.h2
-rw-r--r--src/mame/includes/malzak.h2
-rw-r--r--src/mame/includes/marineb.h2
-rw-r--r--src/mame/includes/mario.h2
-rw-r--r--src/mame/includes/markham.h2
-rw-r--r--src/mame/includes/matmania.h2
-rw-r--r--src/mame/includes/meadows.h1
-rw-r--r--src/mame/includes/megazone.h2
-rw-r--r--src/mame/includes/mermaid.h2
-rw-r--r--src/mame/includes/mikie.h2
-rw-r--r--src/mame/includes/mitchell.h5
-rw-r--r--src/mame/includes/model1.h5
-rw-r--r--src/mame/includes/mouser.h2
-rw-r--r--src/mame/includes/mrdo.h2
-rw-r--r--src/mame/includes/mrjong.h2
-rw-r--r--src/mame/includes/munchmo.h2
-rw-r--r--src/mame/includes/mustache.h2
-rw-r--r--src/mame/includes/namcoic.h6
-rw-r--r--src/mame/includes/namcos86.h2
-rw-r--r--src/mame/includes/naughtyb.h2
-rw-r--r--src/mame/includes/nbmj8891.h2
-rw-r--r--src/mame/includes/nbmj8900.h2
-rw-r--r--src/mame/includes/nbmj9195.h2
-rw-r--r--src/mame/includes/niyanpai.h2
-rw-r--r--src/mame/includes/norautp.h2
-rw-r--r--src/mame/includes/pacland.h2
-rw-r--r--src/mame/includes/pandoras.h2
-rw-r--r--src/mame/includes/pastelg.h2
-rw-r--r--src/mame/includes/pcktgal.h2
-rw-r--r--src/mame/includes/pingpong.h2
-rw-r--r--src/mame/includes/pitnrun.h2
-rw-r--r--src/mame/includes/pk8000.h2
-rw-r--r--src/mame/includes/playch10.h2
-rw-r--r--src/mame/includes/polyplay.h2
-rw-r--r--src/mame/includes/poolshrk.h2
-rw-r--r--src/mame/includes/pooyan.h2
-rw-r--r--src/mame/includes/popeye.h2
-rw-r--r--src/mame/includes/popper.h2
-rw-r--r--src/mame/includes/portrait.h2
-rw-r--r--src/mame/includes/pushman.h1
-rw-r--r--src/mame/includes/retofinv.h2
-rw-r--r--src/mame/includes/rockrage.h2
-rw-r--r--src/mame/includes/rocnrope.h2
-rw-r--r--src/mame/includes/rollrace.h2
-rw-r--r--src/mame/includes/sbasketb.h2
-rw-r--r--src/mame/includes/sbugger.h2
-rw-r--r--src/mame/includes/scotrsht.h2
-rw-r--r--src/mame/includes/seicross.h2
-rw-r--r--src/mame/includes/shaolins.h2
-rw-r--r--src/mame/includes/shootout.h2
-rw-r--r--src/mame/includes/sidepckt.h2
-rw-r--r--src/mame/includes/skydiver.h2
-rw-r--r--src/mame/includes/skyfox.h2
-rw-r--r--src/mame/includes/skykid.h2
-rw-r--r--src/mame/includes/skyraid.h2
-rw-r--r--src/mame/includes/snk6502.h2
-rw-r--r--src/mame/includes/snookr10.h2
-rw-r--r--src/mame/includes/sonson.h2
-rw-r--r--src/mame/includes/spcforce.h2
-rw-r--r--src/mame/includes/spdodgeb.h2
-rw-r--r--src/mame/includes/speedatk.h2
-rw-r--r--src/mame/includes/sprcros2.h2
-rw-r--r--src/mame/includes/sprint2.h4
-rw-r--r--src/mame/includes/sprint4.h2
-rw-r--r--src/mame/includes/sprint8.h4
-rw-r--r--src/mame/includes/ssozumo.h2
-rw-r--r--src/mame/includes/sspeedr.h2
-rw-r--r--src/mame/includes/ssrj.h2
-rw-r--r--src/mame/includes/starshp1.h4
-rw-r--r--src/mame/includes/stfight.h2
-rw-r--r--src/mame/includes/strnskil.h2
-rw-r--r--src/mame/includes/subs.h2
-rw-r--r--src/mame/includes/suprloco.h2
-rw-r--r--src/mame/includes/suprridr.h2
-rw-r--r--src/mame/includes/tagteam.h2
-rw-r--r--src/mame/includes/tank8.h4
-rw-r--r--src/mame/includes/tankbatt.h2
-rw-r--r--src/mame/includes/tankbust.h2
-rw-r--r--src/mame/includes/taxidriv.h2
-rw-r--r--src/mame/includes/tceptor.h2
-rw-r--r--src/mame/includes/terracre.h2
-rw-r--r--src/mame/includes/thedeep.h2
-rw-r--r--src/mame/includes/thepit.h2
-rw-r--r--src/mame/includes/tiamc1.h4
-rw-r--r--src/mame/includes/timelimt.h2
-rw-r--r--src/mame/includes/timeplt.h2
-rw-r--r--src/mame/includes/toypop.h2
-rw-r--r--src/mame/includes/tp84.h2
-rw-r--r--src/mame/includes/travrusa.h2
-rw-r--r--src/mame/includes/triplhnt.h2
-rw-r--r--src/mame/includes/truco.h2
-rw-r--r--src/mame/includes/trucocl.h2
-rw-r--r--src/mame/includes/tryout.h2
-rw-r--r--src/mame/includes/tunhunt.h2
-rw-r--r--src/mame/includes/ultratnk.h2
-rw-r--r--src/mame/includes/usgames.h2
-rw-r--r--src/mame/includes/vulgus.h2
-rw-r--r--src/mame/includes/wiping.h2
-rw-r--r--src/mame/includes/wiz.h2
-rw-r--r--src/mame/includes/wolfpack.h4
-rw-r--r--src/mame/includes/xorworld.h2
-rw-r--r--src/mame/includes/xyonix.h2
-rw-r--r--src/mame/includes/yiear.h2
-rw-r--r--src/mame/includes/zac2650.h2
-rw-r--r--src/mame/includes/zaccaria.h2
-rw-r--r--src/mame/includes/zaxxon.h2
-rw-r--r--src/mame/machine/archimds.c4
-rw-r--r--src/mame/machine/atarifb.c8
-rw-r--r--src/mame/machine/atarigen.c8
-rw-r--r--src/mame/machine/leland.c8
-rw-r--r--src/mame/machine/mega32x.c15
-rw-r--r--src/mame/machine/mega32x.h9
-rw-r--r--src/mame/machine/megadriv.c4
-rw-r--r--src/mame/machine/megavdp.c20
-rw-r--r--src/mame/machine/megavdp.h2
-rw-r--r--src/mame/machine/nitedrvr.c12
-rw-r--r--src/mame/machine/segaic16.c9
-rw-r--r--src/mame/machine/segaic16.h1
-rw-r--r--src/mame/machine/segamsys.c6
-rw-r--r--src/mame/video/1942.c30
-rw-r--r--src/mame/video/1943.c23
-rw-r--r--src/mame/video/40love.c26
-rw-r--r--src/mame/video/8080bw.c12
-rw-r--r--src/mame/video/aeroboto.c2
-rw-r--r--src/mame/video/aerofgt.c16
-rw-r--r--src/mame/video/ajax.c2
-rw-r--r--src/mame/video/alpha68k.c32
-rw-r--r--src/mame/video/ambush.c10
-rw-r--r--src/mame/video/amiga.c2
-rw-r--r--src/mame/video/ampoker2.c6
-rw-r--r--src/mame/video/amspdwy.c6
-rw-r--r--src/mame/video/angelkds.c10
-rw-r--r--src/mame/video/appoooh.c12
-rw-r--r--src/mame/video/aquarium.c4
-rw-r--r--src/mame/video/arabian.c6
-rw-r--r--src/mame/video/archimds.c14
-rw-r--r--src/mame/video/argus.c20
-rw-r--r--src/mame/video/arkanoid.c4
-rw-r--r--src/mame/video/armedf.c2
-rw-r--r--src/mame/video/astrocde.c6
-rw-r--r--src/mame/video/atari.c5
-rw-r--r--src/mame/video/atarifb.c6
-rw-r--r--src/mame/video/atarigt.c24
-rw-r--r--src/mame/video/atarisy2.c2
-rw-r--r--src/mame/video/bagman.c6
-rw-r--r--src/mame/video/balsente.c6
-rw-r--r--src/mame/video/bankp.c15
-rw-r--r--src/mame/video/baraduke.c6
-rw-r--r--src/mame/video/battlane.c6
-rw-r--r--src/mame/video/battlera.c12
-rw-r--r--src/mame/video/battlex.c4
-rw-r--r--src/mame/video/beathead.c2
-rw-r--r--src/mame/video/beezer.c2
-rw-r--r--src/mame/video/bfm_adr2.c39
-rw-r--r--src/mame/video/bfm_adr2.h6
-rw-r--r--src/mame/video/bigevglf.c4
-rw-r--r--src/mame/video/bigstrkb.c4
-rw-r--r--src/mame/video/bionicc.c6
-rw-r--r--src/mame/video/bking.c16
-rw-r--r--src/mame/video/bladestl.c11
-rw-r--r--src/mame/video/blktiger.c2
-rw-r--r--src/mame/video/blmbycar.c4
-rw-r--r--src/mame/video/blockout.c2
-rw-r--r--src/mame/video/bloodbro.c4
-rw-r--r--src/mame/video/blueprnt.c10
-rw-r--r--src/mame/video/bogeyman.c10
-rw-r--r--src/mame/video/bombjack.c2
-rw-r--r--src/mame/video/boogwing.c4
-rw-r--r--src/mame/video/bosco.c26
-rw-r--r--src/mame/video/brkthru.c26
-rw-r--r--src/mame/video/bsktball.c2
-rw-r--r--src/mame/video/btime.c22
-rw-r--r--src/mame/video/bublbobl.c2
-rw-r--r--src/mame/video/buggychl.c8
-rw-r--r--src/mame/video/bwing.c8
-rw-r--r--src/mame/video/cabal.c2
-rw-r--r--src/mame/video/calomega.c6
-rw-r--r--src/mame/video/canyon.c2
-rw-r--r--src/mame/video/capbowl.c2
-rw-r--r--src/mame/video/carjmbre.c12
-rw-r--r--src/mame/video/carpolo.c30
-rw-r--r--src/mame/video/cave.c34
-rw-r--r--src/mame/video/cbasebal.c2
-rw-r--r--src/mame/video/cbuster.c2
-rw-r--r--src/mame/video/ccastles.c6
-rw-r--r--src/mame/video/cclimber.c28
-rw-r--r--src/mame/video/centiped.c28
-rw-r--r--src/mame/video/chaknpop.c6
-rw-r--r--src/mame/video/champbas.c30
-rw-r--r--src/mame/video/changela.c2
-rw-r--r--src/mame/video/cheekyms.c14
-rw-r--r--src/mame/video/circus.c6
-rw-r--r--src/mame/video/circusc.c15
-rw-r--r--src/mame/video/cischeat.c12
-rw-r--r--src/mame/video/citycon.c4
-rw-r--r--src/mame/video/cloak.c4
-rw-r--r--src/mame/video/cloud9.c8
-rw-r--r--src/mame/video/clshroad.c15
-rw-r--r--src/mame/video/cninja.c2
-rw-r--r--src/mame/video/combatsc.c16
-rw-r--r--src/mame/video/commando.c2
-rw-r--r--src/mame/video/compgolf.c10
-rw-r--r--src/mame/video/contra.c11
-rw-r--r--src/mame/video/cop01.c15
-rw-r--r--src/mame/video/copsnrob.c14
-rw-r--r--src/mame/video/cosmic.c46
-rw-r--r--src/mame/video/cps1.c14
-rw-r--r--src/mame/video/crbaloon.c6
-rw-r--r--src/mame/video/crshrace.c2
-rw-r--r--src/mame/video/cvs.c29
-rw-r--r--src/mame/video/cyberbal.c2
-rw-r--r--src/mame/video/darius.c2
-rw-r--r--src/mame/video/darkmist.c15
-rw-r--r--src/mame/video/darkseal.c4
-rw-r--r--src/mame/video/dassault.c4
-rw-r--r--src/mame/video/dcheese.c4
-rw-r--r--src/mame/video/dcon.c24
-rw-r--r--src/mame/video/dday.c155
-rw-r--r--src/mame/video/ddragon.c2
-rw-r--r--src/mame/video/ddragon3.c8
-rw-r--r--src/mame/video/ddribble.c13
-rw-r--r--src/mame/video/deadang.c4
-rw-r--r--src/mame/video/dec0.c4
-rw-r--r--src/mame/video/dec8.c16
-rw-r--r--src/mame/video/deckarn.c17
-rw-r--r--src/mame/video/deckarn.h5
-rw-r--r--src/mame/video/decmxc06.c17
-rw-r--r--src/mame/video/decmxc06.h6
-rw-r--r--src/mame/video/deco16ic.c15
-rw-r--r--src/mame/video/deco16ic.h5
-rw-r--r--src/mame/video/deco32.c26
-rw-r--r--src/mame/video/deco_mlc.c8
-rw-r--r--src/mame/video/decocass.c14
-rw-r--r--src/mame/video/decocomn.c6
-rw-r--r--src/mame/video/decospr.c31
-rw-r--r--src/mame/video/decospr.h6
-rw-r--r--src/mame/video/deniam.c2
-rw-r--r--src/mame/video/digdug.c18
-rw-r--r--src/mame/video/djboy.c2
-rw-r--r--src/mame/video/djmain.c6
-rw-r--r--src/mame/video/dkong.c52
-rw-r--r--src/mame/video/docastle.c10
-rw-r--r--src/mame/video/dogfgt.c6
-rw-r--r--src/mame/video/dooyong.c22
-rw-r--r--src/mame/video/drgnmst.c2
-rw-r--r--src/mame/video/dribling.c4
-rw-r--r--src/mame/video/drmicro.c13
-rw-r--r--src/mame/video/dynax.c8
-rw-r--r--src/mame/video/dynduke.c6
-rw-r--r--src/mame/video/eprom.c6
-rw-r--r--src/mame/video/equites.c28
-rw-r--r--src/mame/video/espial.c24
-rw-r--r--src/mame/video/exedexes.c19
-rw-r--r--src/mame/video/exerion.c21
-rw-r--r--src/mame/video/exidy.c12
-rw-r--r--src/mame/video/exidy440.c6
-rw-r--r--src/mame/video/exprraid.c4
-rw-r--r--src/mame/video/exterm.c4
-rw-r--r--src/mame/video/exzisus.c4
-rw-r--r--src/mame/video/f1gp.c6
-rw-r--r--src/mame/video/fantland.c2
-rw-r--r--src/mame/video/fastfred.c13
-rw-r--r--src/mame/video/fastlane.c11
-rw-r--r--src/mame/video/fcombat.c23
-rw-r--r--src/mame/video/fgoal.c8
-rw-r--r--src/mame/video/finalizr.c31
-rw-r--r--src/mame/video/firetrap.c26
-rw-r--r--src/mame/video/firetrk.c32
-rw-r--r--src/mame/video/fitfight.c4
-rw-r--r--src/mame/video/flower.c11
-rw-r--r--src/mame/video/flstory.c12
-rw-r--r--src/mame/video/foodf.c6
-rw-r--r--src/mame/video/freekick.c6
-rw-r--r--src/mame/video/fromanc2.c12
-rw-r--r--src/mame/video/fromance.c2
-rw-r--r--src/mame/video/funkybee.c10
-rw-r--r--src/mame/video/funworld.c4
-rw-r--r--src/mame/video/funybubl.c8
-rw-r--r--src/mame/video/fuukifg2.c8
-rw-r--r--src/mame/video/fuukifg3.c4
-rw-r--r--src/mame/video/gaelco.c2
-rw-r--r--src/mame/video/gaelco2.c6
-rw-r--r--src/mame/video/gaiden.c2
-rw-r--r--src/mame/video/galaga.c20
-rw-r--r--src/mame/video/galastrm.c2
-rw-r--r--src/mame/video/galaxia.c16
-rw-r--r--src/mame/video/galaxian.c8
-rw-r--r--src/mame/video/galaxold.c52
-rw-r--r--src/mame/video/galivan.c27
-rw-r--r--src/mame/video/galpani2.c8
-rw-r--r--src/mame/video/galpanic.c6
-rw-r--r--src/mame/video/galspnbl.c10
-rw-r--r--src/mame/video/gaplus.c17
-rw-r--r--src/mame/video/gatron.c2
-rw-r--r--src/mame/video/gberet.c19
-rw-r--r--src/mame/video/gcpinbal.c2
-rw-r--r--src/mame/video/gijoe.c2
-rw-r--r--src/mame/video/ginganin.c2
-rw-r--r--src/mame/video/gladiatr.c6
-rw-r--r--src/mame/video/glass.c4
-rw-r--r--src/mame/video/gng.c2
-rw-r--r--src/mame/video/goal92.c4
-rw-r--r--src/mame/video/goindol.c4
-rw-r--r--src/mame/video/goldstar.c16
-rw-r--r--src/mame/video/gomoku.c6
-rw-r--r--src/mame/video/gottlieb.c6
-rw-r--r--src/mame/video/gotya.c13
-rw-r--r--src/mame/video/gp9001.c17
-rw-r--r--src/mame/video/gp9001.h6
-rw-r--r--src/mame/video/grchamp.c11
-rw-r--r--src/mame/video/gridlee.c8
-rw-r--r--src/mame/video/groundfx.c2
-rw-r--r--src/mame/video/gstriker.c2
-rw-r--r--src/mame/video/gsword.c22
-rw-r--r--src/mame/video/gticlub.c3
-rw-r--r--src/mame/video/gunbustr.c4
-rw-r--r--src/mame/video/gundealr.c2
-rw-r--r--src/mame/video/gunsmoke.c19
-rw-r--r--src/mame/video/gyruss.c13
-rw-r--r--src/mame/video/hanaawas.c9
-rw-r--r--src/mame/video/harddriv.c4
-rw-r--r--src/mame/video/hcastle.c11
-rw-r--r--src/mame/video/higemaru.c15
-rw-r--r--src/mame/video/himesiki.c4
-rw-r--r--src/mame/video/hng64.c19
-rw-r--r--src/mame/video/holeland.c4
-rw-r--r--src/mame/video/homedata.c16
-rw-r--r--src/mame/video/homerun.c6
-rw-r--r--src/mame/video/hyperspt.c19
-rw-r--r--src/mame/video/hyprduel.c10
-rw-r--r--src/mame/video/ikki.c21
-rw-r--r--src/mame/video/inufuku.c2
-rw-r--r--src/mame/video/irobot.c8
-rw-r--r--src/mame/video/ironhors.c33
-rw-r--r--src/mame/video/itech32.c10
-rw-r--r--src/mame/video/itech8.c8
-rw-r--r--src/mame/video/jack.c10
-rw-r--r--src/mame/video/jackal.c15
-rw-r--r--src/mame/video/jailbrek.c15
-rw-r--r--src/mame/video/jalblend.c36
-rw-r--r--src/mame/video/jalblend.h4
-rw-r--r--src/mame/video/jpmimpct.c6
-rw-r--r--src/mame/video/k001005.c15
-rw-r--r--src/mame/video/k001005.h5
-rw-r--r--src/mame/video/k001604.c17
-rw-r--r--src/mame/video/k001604.h5
-rw-r--r--src/mame/video/k007121.c23
-rw-r--r--src/mame/video/k007121.h8
-rw-r--r--src/mame/video/k007420.c21
-rw-r--r--src/mame/video/k007420.h6
-rw-r--r--src/mame/video/k037122.c17
-rw-r--r--src/mame/video/k037122.h6
-rw-r--r--src/mame/video/k051316.c21
-rw-r--r--src/mame/video/k051316.h5
-rw-r--r--src/mame/video/k051960.c37
-rw-r--r--src/mame/video/k051960.h7
-rw-r--r--src/mame/video/k052109.c18
-rw-r--r--src/mame/video/k052109.h5
-rw-r--r--src/mame/video/k053244_k053245.c32
-rw-r--r--src/mame/video/k053244_k053245.h7
-rw-r--r--src/mame/video/k053246_k053247_k055673.c41
-rw-r--r--src/mame/video/k053246_k053247_k055673.h34
-rw-r--r--src/mame/video/k053936.c4
-rw-r--r--src/mame/video/k054156_k054157_k056832.c27
-rw-r--r--src/mame/video/k054156_k054157_k056832.h4
-rw-r--r--src/mame/video/k054338.c26
-rw-r--r--src/mame/video/kan_panb.c14
-rw-r--r--src/mame/video/kan_pand.c14
-rw-r--r--src/mame/video/kan_pand.h5
-rw-r--r--src/mame/video/kaneko16.c2
-rw-r--r--src/mame/video/kaneko_grap2.c15
-rw-r--r--src/mame/video/kaneko_grap2.h8
-rw-r--r--src/mame/video/karnov.c18
-rw-r--r--src/mame/video/kchamp.c14
-rw-r--r--src/mame/video/kickgoal.c2
-rw-r--r--src/mame/video/kingobox.c21
-rw-r--r--src/mame/video/kncljoe.c15
-rw-r--r--src/mame/video/konami_helper.c4
-rw-r--r--src/mame/video/konami_helper.h2
-rw-r--r--src/mame/video/konamigx.c40
-rw-r--r--src/mame/video/kopunch.c6
-rw-r--r--src/mame/video/ksayakyu.c6
-rw-r--r--src/mame/video/kyugo.c2
-rw-r--r--src/mame/video/labyrunr.c17
-rw-r--r--src/mame/video/ladybug.c29
-rw-r--r--src/mame/video/ladyfrog.c8
-rw-r--r--src/mame/video/lasso.c29
-rw-r--r--src/mame/video/lastduel.c4
-rw-r--r--src/mame/video/lazercmd.c2
-rw-r--r--src/mame/video/legionna.c12
-rw-r--r--src/mame/video/leland.c7
-rw-r--r--src/mame/video/lemmings.c4
-rw-r--r--src/mame/video/liberate.c22
-rw-r--r--src/mame/video/lkage.c2
-rw-r--r--src/mame/video/lockon.c10
-rw-r--r--src/mame/video/lordgun.c6
-rw-r--r--src/mame/video/lsasquad.c12
-rw-r--r--src/mame/video/lucky74.c6
-rw-r--r--src/mame/video/lvcards.c42
-rw-r--r--src/mame/video/lwings.c4
-rw-r--r--src/mame/video/m10.c4
-rw-r--r--src/mame/video/m107.c8
-rw-r--r--src/mame/video/m52.c46
-rw-r--r--src/mame/video/m57.c16
-rw-r--r--src/mame/video/m58.c18
-rw-r--r--src/mame/video/m62.c34
-rw-r--r--src/mame/video/m72.c10
-rw-r--r--src/mame/video/m90.c16
-rw-r--r--src/mame/video/m92.c18
-rw-r--r--src/mame/video/macrossp.c10
-rw-r--r--src/mame/video/madalien.c19
-rw-r--r--src/mame/video/magmax.c19
-rw-r--r--src/mame/video/mainsnk.c6
-rw-r--r--src/mame/video/malzak.c2
-rw-r--r--src/mame/video/mappy.c45
-rw-r--r--src/mame/video/marineb.c28
-rw-r--r--src/mame/video/mario.c14
-rw-r--r--src/mame/video/markham.c13
-rw-r--r--src/mame/video/matmania.c22
-rw-r--r--src/mame/video/mcatadv.c2
-rw-r--r--src/mame/video/mcr.c6
-rw-r--r--src/mame/video/mcr3.c24
-rw-r--r--src/mame/video/mcr68.c12
-rw-r--r--src/mame/video/meadows.c2
-rw-r--r--src/mame/video/megasys1.c4
-rw-r--r--src/mame/video/megazone.c19
-rw-r--r--src/mame/video/mermaid.c58
-rw-r--r--src/mame/video/metlclsh.c6
-rw-r--r--src/mame/video/metro.c10
-rw-r--r--src/mame/video/mexico86.c8
-rw-r--r--src/mame/video/micro3d.c2
-rw-r--r--src/mame/video/midtunit.c2
-rw-r--r--src/mame/video/midvunit.c2
-rw-r--r--src/mame/video/midyunit.c2
-rw-r--r--src/mame/video/midzeus.c2
-rw-r--r--src/mame/video/mikie.c11
-rw-r--r--src/mame/video/mitchell.c30
-rw-r--r--src/mame/video/mjkjidai.c4
-rw-r--r--src/mame/video/model1.c12
-rw-r--r--src/mame/video/model2.c2
-rw-r--r--src/mame/video/momoko.c10
-rw-r--r--src/mame/video/mouser.c12
-rw-r--r--src/mame/video/mrdo.c13
-rw-r--r--src/mame/video/mrflea.c6
-rw-r--r--src/mame/video/mrjong.c11
-rw-r--r--src/mame/video/ms32.c4
-rw-r--r--src/mame/video/msisaac.c18
-rw-r--r--src/mame/video/mugsmash.c2
-rw-r--r--src/mame/video/munchmo.c12
-rw-r--r--src/mame/video/mustache.c6
-rw-r--r--src/mame/video/mystston.c6
-rw-r--r--src/mame/video/n8080.c14
-rw-r--r--src/mame/video/namcofl.c4
-rw-r--r--src/mame/video/namcona1.c14
-rw-r--r--src/mame/video/namconb1.c6
-rw-r--r--src/mame/video/namcos1.c16
-rw-r--r--src/mame/video/namcos2.c14
-rw-r--r--src/mame/video/namcos21.c2
-rw-r--r--src/mame/video/namcos22.c12
-rw-r--r--src/mame/video/namcos86.c12
-rw-r--r--src/mame/video/naughtyb.c10
-rw-r--r--src/mame/video/nbmj8688.c6
-rw-r--r--src/mame/video/nbmj8891.c40
-rw-r--r--src/mame/video/nbmj8900.c44
-rw-r--r--src/mame/video/nbmj8991.c6
-rw-r--r--src/mame/video/nbmj9195.c18
-rw-r--r--src/mame/video/nemesis.c6
-rw-r--r--src/mame/video/ninjakd2.c2
-rw-r--r--src/mame/video/ninjaw.c4
-rw-r--r--src/mame/video/niyanpai.c26
-rw-r--r--src/mame/video/nmk16.c8
-rw-r--r--src/mame/video/nova2001.c14
-rw-r--r--src/mame/video/nycaptor.c8
-rw-r--r--src/mame/video/ohmygod.c2
-rw-r--r--src/mame/video/ojankohs.c26
-rw-r--r--src/mame/video/oneshot.c8
-rw-r--r--src/mame/video/orbit.c2
-rw-r--r--src/mame/video/othunder.c4
-rw-r--r--src/mame/video/pacland.c23
-rw-r--r--src/mame/video/pacman.c33
-rw-r--r--src/mame/video/pandoras.c15
-rw-r--r--src/mame/video/paradise.c16
-rw-r--r--src/mame/video/pastelg.c14
-rw-r--r--src/mame/video/pbaction.c2
-rw-r--r--src/mame/video/pc080sn.c13
-rw-r--r--src/mame/video/pc080sn.h5
-rw-r--r--src/mame/video/pc090oj.c14
-rw-r--r--src/mame/video/pc090oj.h5
-rw-r--r--src/mame/video/pcktgal.c16
-rw-r--r--src/mame/video/pgm.c2
-rw-r--r--src/mame/video/phoenix.c12
-rw-r--r--src/mame/video/pingpong.c15
-rw-r--r--src/mame/video/pirates.c2
-rw-r--r--src/mame/video/pitnrun.c8
-rw-r--r--src/mame/video/pk8000.c4
-rw-r--r--src/mame/video/pktgaldx.c8
-rw-r--r--src/mame/video/playch10.c6
-rw-r--r--src/mame/video/playmark.c10
-rw-r--r--src/mame/video/plygonet.c4
-rw-r--r--src/mame/video/pokechmp.c2
-rw-r--r--src/mame/video/polepos.c21
-rw-r--r--src/mame/video/policetr.c2
-rw-r--r--src/mame/video/polyplay.c26
-rw-r--r--src/mame/video/poolshrk.c2
-rw-r--r--src/mame/video/pooyan.c15
-rw-r--r--src/mame/video/popeye.c10
-rw-r--r--src/mame/video/popper.c8
-rw-r--r--src/mame/video/portrait.c15
-rw-r--r--src/mame/video/powerins.c4
-rw-r--r--src/mame/video/powervr2.c8
-rw-r--r--src/mame/video/ppu2c0x.c10
-rw-r--r--src/mame/video/ppu2c0x.h7
-rw-r--r--src/mame/video/prehisle.c2
-rw-r--r--src/mame/video/psikyo.c12
-rw-r--r--src/mame/video/psikyo4.c2
-rw-r--r--src/mame/video/psikyosh.c14
-rw-r--r--src/mame/video/psychic5.c12
-rw-r--r--src/mame/video/punchout.c4
-rw-r--r--src/mame/video/pushman.c2
-rw-r--r--src/mame/video/qdrmfgp.c2
-rw-r--r--src/mame/video/quasar.c27
-rw-r--r--src/mame/video/quizdna.c6
-rw-r--r--src/mame/video/raiden.c4
-rw-r--r--src/mame/video/rainbow.c2
-rw-r--r--src/mame/video/rallyx.c54
-rw-r--r--src/mame/video/realbrk.c10
-rw-r--r--src/mame/video/redclash.c27
-rw-r--r--src/mame/video/renegade.c4
-rw-r--r--src/mame/video/retofinv.c17
-rw-r--r--src/mame/video/rockrage.c13
-rw-r--r--src/mame/video/rocnrope.c13
-rw-r--r--src/mame/video/rohga.c8
-rw-r--r--src/mame/video/rollrace.c28
-rw-r--r--src/mame/video/rpunch.c2
-rw-r--r--src/mame/video/runaway.c10
-rw-r--r--src/mame/video/rungun.c4
-rw-r--r--src/mame/video/sauro.c4
-rw-r--r--src/mame/video/sbasketb.c13
-rw-r--r--src/mame/video/sbugger.c6
-rw-r--r--src/mame/video/scn2674.c14
-rw-r--r--src/mame/video/scn2674.h5
-rw-r--r--src/mame/video/scotrsht.c13
-rw-r--r--src/mame/video/sderby.c2
-rw-r--r--src/mame/video/segag80r.c6
-rw-r--r--src/mame/video/segahang.c2
-rw-r--r--src/mame/video/segaic24.c17
-rw-r--r--src/mame/video/segaic24.h5
-rw-r--r--src/mame/video/segaorun.c2
-rw-r--r--src/mame/video/segas16a.c2
-rw-r--r--src/mame/video/segas16b.c2
-rw-r--r--src/mame/video/segas18.c4
-rw-r--r--src/mame/video/segas24.c2
-rw-r--r--src/mame/video/segas32.c6
-rw-r--r--src/mame/video/segaxbd.c2
-rw-r--r--src/mame/video/segaybd.c2
-rw-r--r--src/mame/video/seibuspi.c10
-rw-r--r--src/mame/video/seicross.c14
-rw-r--r--src/mame/video/senjyo.c6
-rw-r--r--src/mame/video/seta.c77
-rw-r--r--src/mame/video/seta001.c28
-rw-r--r--src/mame/video/seta001.h5
-rw-r--r--src/mame/video/seta2.c2
-rw-r--r--src/mame/video/sf.c10
-rw-r--r--src/mame/video/shadfrce.c10
-rw-r--r--src/mame/video/shangha3.c12
-rw-r--r--src/mame/video/shangkid.c17
-rw-r--r--src/mame/video/shaolins.c13
-rw-r--r--src/mame/video/shisen.c2
-rw-r--r--src/mame/video/shootout.c10
-rw-r--r--src/mame/video/sidearms.c2
-rw-r--r--src/mame/video/sidepckt.c18
-rw-r--r--src/mame/video/silkroad.c4
-rw-r--r--src/mame/video/simpsons.c2
-rw-r--r--src/mame/video/skydiver.c2
-rw-r--r--src/mame/video/skyfox.c8
-rw-r--r--src/mame/video/skykid.c15
-rw-r--r--src/mame/video/skyraid.c6
-rw-r--r--src/mame/video/slapfght.c6
-rw-r--r--src/mame/video/slapshot.c4
-rw-r--r--src/mame/video/snk.c30
-rw-r--r--src/mame/video/snk6502.c24
-rw-r--r--src/mame/video/snk68.c4
-rw-r--r--src/mame/video/snookr10.c14
-rw-r--r--src/mame/video/solomon.c2
-rw-r--r--src/mame/video/sonson.c17
-rw-r--r--src/mame/video/spbactn.c6
-rw-r--r--src/mame/video/spcforce.c2
-rw-r--r--src/mame/video/spdodgeb.c16
-rw-r--r--src/mame/video/speedatk.c11
-rw-r--r--src/mame/video/speedbal.c2
-rw-r--r--src/mame/video/speedspn.c4
-rw-r--r--src/mame/video/splash.c4
-rw-r--r--src/mame/video/sprcros2.c19
-rw-r--r--src/mame/video/sprint2.c57
-rw-r--r--src/mame/video/sprint4.c47
-rw-r--r--src/mame/video/sprint8.c61
-rw-r--r--src/mame/video/srmp2.c12
-rw-r--r--src/mame/video/srumbler.c2
-rw-r--r--src/mame/video/sshangha.c2
-rw-r--r--src/mame/video/sslam.c26
-rw-r--r--src/mame/video/ssozumo.c8
-rw-r--r--src/mame/video/sspeedr.c4
-rw-r--r--src/mame/video/ssrj.c6
-rw-r--r--src/mame/video/ssv.c2
-rw-r--r--src/mame/video/st0016.c6
-rw-r--r--src/mame/video/st0020.c17
-rw-r--r--src/mame/video/st0020.h4
-rw-r--r--src/mame/video/stactics.c6
-rw-r--r--src/mame/video/starcrus.c28
-rw-r--r--src/mame/video/starshp1.c31
-rw-r--r--src/mame/video/stfight.c29
-rw-r--r--src/mame/video/stlforce.c2
-rw-r--r--src/mame/video/strnskil.c13
-rw-r--r--src/mame/video/subs.c28
-rw-r--r--src/mame/video/suna16.c6
-rw-r--r--src/mame/video/suna8.c6
-rw-r--r--src/mame/video/superchs.c4
-rw-r--r--src/mame/video/superqix.c4
-rw-r--r--src/mame/video/suprloco.c8
-rw-r--r--src/mame/video/suprnova.c8
-rw-r--r--src/mame/video/suprridr.c6
-rw-r--r--src/mame/video/suprslam.c2
-rw-r--r--src/mame/video/system1.c2
-rw-r--r--src/mame/video/system16.c18
-rw-r--r--src/mame/video/tagteam.c8
-rw-r--r--src/mame/video/tail2nos.c2
-rw-r--r--src/mame/video/taito_b.c2
-rw-r--r--src/mame/video/taito_f2.c4
-rw-r--r--src/mame/video/taito_f3.c8
-rw-r--r--src/mame/video/taito_h.c6
-rw-r--r--src/mame/video/taito_l.c6
-rw-r--r--src/mame/video/taito_o.c2
-rw-r--r--src/mame/video/taito_z.c16
-rw-r--r--src/mame/video/taitoair.c2
-rw-r--r--src/mame/video/taitojc.c4
-rw-r--r--src/mame/video/taitosj.c18
-rw-r--r--src/mame/video/tank8.c59
-rw-r--r--src/mame/video/tankbatt.c13
-rw-r--r--src/mame/video/tankbust.c2
-rw-r--r--src/mame/video/targeth.c2
-rw-r--r--src/mame/video/tatsumi.c52
-rw-r--r--src/mame/video/taxidriv.c8
-rw-r--r--src/mame/video/tbowl.c8
-rw-r--r--src/mame/video/tc0110pcr.c23
-rw-r--r--src/mame/video/tc0110pcr.h8
-rw-r--r--src/mame/video/tceptor.c27
-rw-r--r--src/mame/video/tecmo.c2
-rw-r--r--src/mame/video/tecmo16.c6
-rw-r--r--src/mame/video/tecmo_spr.c4
-rw-r--r--src/mame/video/tecmo_spr.h2
-rw-r--r--src/mame/video/tecmosys.c6
-rw-r--r--src/mame/video/tehkanwc.c2
-rw-r--r--src/mame/video/terracre.c17
-rw-r--r--src/mame/video/tetrisp2.c12
-rw-r--r--src/mame/video/thedeep.c8
-rw-r--r--src/mame/video/thepit.c14
-rw-r--r--src/mame/video/thief.c4
-rw-r--r--src/mame/video/thoop2.c2
-rw-r--r--src/mame/video/thunderx.c2
-rw-r--r--src/mame/video/tia.c22
-rw-r--r--src/mame/video/tiamc1.c10
-rw-r--r--src/mame/video/tigeroad.c2
-rw-r--r--src/mame/video/timelimt.c8
-rw-r--r--src/mame/video/timeplt.c12
-rw-r--r--src/mame/video/tmnt.c14
-rw-r--r--src/mame/video/tnzs.c4
-rw-r--r--src/mame/video/toaplan1.c4
-rw-r--r--src/mame/video/toki.c4
-rw-r--r--src/mame/video/toobin.c10
-rw-r--r--src/mame/video/topspeed.c2
-rw-r--r--src/mame/video/toypop.c20
-rw-r--r--src/mame/video/tp84.c13
-rw-r--r--src/mame/video/trackfld.c17
-rw-r--r--src/mame/video/travrusa.c26
-rw-r--r--src/mame/video/triplhnt.c2
-rw-r--r--src/mame/video/truco.c6
-rw-r--r--src/mame/video/trucocl.c4
-rw-r--r--src/mame/video/tryout.c14
-rw-r--r--src/mame/video/tsamurai.c4
-rw-r--r--src/mame/video/tubep.c8
-rw-r--r--src/mame/video/tunhunt.c33
-rw-r--r--src/mame/video/turbo.c6
-rw-r--r--src/mame/video/twin16.c8
-rw-r--r--src/mame/video/tx1.c4
-rw-r--r--src/mame/video/ultratnk.c46
-rw-r--r--src/mame/video/undrfire.c10
-rw-r--r--src/mame/video/unico.c6
-rw-r--r--src/mame/video/usgames.c4
-rw-r--r--src/mame/video/vaportra.c2
-rw-r--r--src/mame/video/vastar.c6
-rw-r--r--src/mame/video/vball.c6
-rw-r--r--src/mame/video/vdc.c7
-rw-r--r--src/mame/video/victory.c2
-rw-r--r--src/mame/video/videopin.c2
-rw-r--r--src/mame/video/vigilant.c16
-rw-r--r--src/mame/video/vindictr.c2
-rw-r--r--src/mame/video/vsnes.c6
-rw-r--r--src/mame/video/vsystem_spr.c28
-rw-r--r--src/mame/video/vsystem_spr.h5
-rw-r--r--src/mame/video/vsystem_spr2.c30
-rw-r--r--src/mame/video/vsystem_spr2.h5
-rw-r--r--src/mame/video/vulgus.c24
-rw-r--r--src/mame/video/warpwarp.c30
-rw-r--r--src/mame/video/warriorb.c4
-rw-r--r--src/mame/video/wc90.c2
-rw-r--r--src/mame/video/wc90b.c2
-rw-r--r--src/mame/video/wecleman.c20
-rw-r--r--src/mame/video/wgp.c4
-rw-r--r--src/mame/video/williams.c4
-rw-r--r--src/mame/video/wiping.c19
-rw-r--r--src/mame/video/wiz.c28
-rw-r--r--src/mame/video/wolfpack.c63
-rw-r--r--src/mame/video/wrally.c2
-rw-r--r--src/mame/video/wwfsstar.c8
-rw-r--r--src/mame/video/xain.c6
-rw-r--r--src/mame/video/xevious.c40
-rw-r--r--src/mame/video/xorworld.c24
-rw-r--r--src/mame/video/xxmissio.c6
-rw-r--r--src/mame/video/xyonix.c6
-rw-r--r--src/mame/video/ygv608.c39
-rw-r--r--src/mame/video/ygv608.h5
-rw-r--r--src/mame/video/yiear.c8
-rw-r--r--src/mame/video/yunsun16.c2
-rw-r--r--src/mame/video/yunsung8.c2
-rw-r--r--src/mame/video/zac2650.c10
-rw-r--r--src/mame/video/zaccaria.c15
-rw-r--r--src/mame/video/zaxxon.c16
-rw-r--r--src/mame/video/zodiack.c21
-rw-r--r--src/mess/drivers/a2600.c4
-rw-r--r--src/mess/drivers/a310.c2
-rw-r--r--src/mess/drivers/a5105.c9
-rw-r--r--src/mess/drivers/a51xx.c4
-rw-r--r--src/mess/drivers/a6809.c2
-rw-r--r--src/mess/drivers/a7000.c18
-rw-r--r--src/mess/drivers/a7150.c3
-rw-r--r--src/mess/drivers/a7800.c13
-rw-r--r--src/mess/drivers/ac1.c5
-rw-r--r--src/mess/drivers/ace.c3
-rw-r--r--src/mess/drivers/advision.c3
-rw-r--r--src/mess/drivers/alesis.c11
-rw-r--r--src/mess/drivers/alphasma.c11
-rw-r--r--src/mess/drivers/alphatro.c28
-rw-r--r--src/mess/drivers/amiga.c12
-rw-r--r--src/mess/drivers/amstrad.c25
-rw-r--r--src/mess/drivers/apc.c17
-rw-r--r--src/mess/drivers/apexc.c13
-rw-r--r--src/mess/drivers/apogee.c4
-rw-r--r--src/mess/drivers/apple1.c3
-rw-r--r--src/mess/drivers/apple2.c6
-rw-r--r--src/mess/drivers/apple2gs.c10
-rw-r--r--src/mess/drivers/apple3.c4
-rw-r--r--src/mess/drivers/applix.c9
-rw-r--r--src/mess/drivers/apricotf.c4
-rw-r--r--src/mess/drivers/apricotp.c2
-rw-r--r--src/mess/drivers/aquarius.c6
-rw-r--r--src/mess/drivers/arcadia.c13
-rw-r--r--src/mess/drivers/argo.c3
-rw-r--r--src/mess/drivers/astrocde.c2
-rw-r--r--src/mess/drivers/at.c3
-rw-r--r--src/mess/drivers/atari400.c10
-rw-r--r--src/mess/drivers/atarist.c10
-rw-r--r--src/mess/drivers/avigo.c3
-rw-r--r--src/mess/drivers/ax20.c5
-rw-r--r--src/mess/drivers/b16.c6
-rw-r--r--src/mess/drivers/b2m.c3
-rw-r--r--src/mess/drivers/bbc.c12
-rw-r--r--src/mess/drivers/bcs3.c3
-rw-r--r--src/mess/drivers/beehive.c3
-rw-r--r--src/mess/drivers/bigbord2.c3
-rw-r--r--src/mess/drivers/binbug.c6
-rw-r--r--src/mess/drivers/bk.c3
-rw-r--r--src/mess/drivers/bmjr.c9
-rw-r--r--src/mess/drivers/bml3.c9
-rw-r--r--src/mess/drivers/busicom.c4
-rw-r--r--src/mess/drivers/bw2.c9
-rw-r--r--src/mess/drivers/c10.c3
-rw-r--r--src/mess/drivers/c128.c2
-rw-r--r--src/mess/drivers/c65.c20
-rw-r--r--src/mess/drivers/c900.c3
-rw-r--r--src/mess/drivers/camplynx.c12
-rw-r--r--src/mess/drivers/casloopy.c8
-rw-r--r--src/mess/drivers/cat.c6
-rw-r--r--src/mess/drivers/cd2650.c3
-rw-r--r--src/mess/drivers/cdc721.c12
-rw-r--r--src/mess/drivers/cfx9850.c15
-rw-r--r--src/mess/drivers/cgenie.c24
-rw-r--r--src/mess/drivers/channelf.c16
-rw-r--r--src/mess/drivers/clcd.c8
-rw-r--r--src/mess/drivers/compucolor.c7
-rw-r--r--src/mess/drivers/comquest.c5
-rw-r--r--src/mess/drivers/concept.c3
-rw-r--r--src/mess/drivers/craft.c2
-rw-r--r--src/mess/drivers/ct486.c2
-rw-r--r--src/mess/drivers/cxhumax.c3
-rw-r--r--src/mess/drivers/cybiko.c19
-rw-r--r--src/mess/drivers/d6800.c3
-rw-r--r--src/mess/drivers/dai.c3
-rw-r--r--src/mess/drivers/dccons.c2
-rw-r--r--src/mess/drivers/dct11em.c3
-rw-r--r--src/mess/drivers/dgn_beta.c7
-rw-r--r--src/mess/drivers/dim68k.c3
-rw-r--r--src/mess/drivers/dm7000.c3
-rw-r--r--src/mess/drivers/dms5000.c3
-rw-r--r--src/mess/drivers/dmv.c3
-rw-r--r--src/mess/drivers/ec65.c6
-rw-r--r--src/mess/drivers/einstein.c6
-rw-r--r--src/mess/drivers/electron.c7
-rw-r--r--src/mess/drivers/elwro800.c4
-rw-r--r--src/mess/drivers/exelv.c16
-rw-r--r--src/mess/drivers/fk1.c3
-rw-r--r--src/mess/drivers/fm7.c20
-rw-r--r--src/mess/drivers/fp1100.c2
-rw-r--r--src/mess/drivers/fp200.c11
-rw-r--r--src/mess/drivers/fp6000.c10
-rw-r--r--src/mess/drivers/galaxy.c6
-rw-r--r--src/mess/drivers/galeb.c5
-rw-r--r--src/mess/drivers/gamecom.c9
-rw-r--r--src/mess/drivers/gamepock.c3
-rw-r--r--src/mess/drivers/gb.c36
-rw-r--r--src/mess/drivers/gba.c7
-rw-r--r--src/mess/drivers/geniusiq.c13
-rw-r--r--src/mess/drivers/gizmondo.c4
-rw-r--r--src/mess/drivers/gmaster.c9
-rw-r--r--src/mess/drivers/gp2x.c2
-rw-r--r--src/mess/drivers/gp32.c12
-rw-r--r--src/mess/drivers/grfd2301.c3
-rw-r--r--src/mess/drivers/h19.c3
-rw-r--r--src/mess/drivers/h89.c3
-rw-r--r--src/mess/drivers/harriet.c10
-rw-r--r--src/mess/drivers/hec2hrp.c13
-rw-r--r--src/mess/drivers/homelab.c9
-rw-r--r--src/mess/drivers/homez80.c5
-rw-r--r--src/mess/drivers/hp16500.c2
-rw-r--r--src/mess/drivers/hp48.c3
-rw-r--r--src/mess/drivers/hp49gp.c4
-rw-r--r--src/mess/drivers/hp9k.c3
-rw-r--r--src/mess/drivers/hprot1.c11
-rw-r--r--src/mess/drivers/hx20.c9
-rw-r--r--src/mess/drivers/ibm6580.c12
-rw-r--r--src/mess/drivers/ie15.c11
-rw-r--r--src/mess/drivers/if800.c4
-rw-r--r--src/mess/drivers/interact.c4
-rw-r--r--src/mess/drivers/intv.c22
-rw-r--r--src/mess/drivers/ip20.c2
-rw-r--r--src/mess/drivers/ip22.c2
-rw-r--r--src/mess/drivers/ipds.c3
-rw-r--r--src/mess/drivers/iq151.c3
-rw-r--r--src/mess/drivers/irisha.c3
-rw-r--r--src/mess/drivers/itt3030.c5
-rw-r--r--src/mess/drivers/jonos.c3
-rw-r--r--src/mess/drivers/jr100.c3
-rw-r--r--src/mess/drivers/jr200.c11
-rw-r--r--src/mess/drivers/jtc.c10
-rw-r--r--src/mess/drivers/juicebox.c2
-rw-r--r--src/mess/drivers/jupiter.c3
-rw-r--r--src/mess/drivers/k8915.c3
-rw-r--r--src/mess/drivers/kaypro.c7
-rw-r--r--src/mess/drivers/kc.c8
-rw-r--r--src/mess/drivers/konin.c3
-rw-r--r--src/mess/drivers/korgm1.c4
-rw-r--r--src/mess/drivers/kramermc.c5
-rw-r--r--src/mess/drivers/lcmate2.c11
-rw-r--r--src/mess/drivers/lisa.c3
-rw-r--r--src/mess/drivers/llc.c6
-rw-r--r--src/mess/drivers/lola8a.c9
-rw-r--r--src/mess/drivers/lviv.c3
-rw-r--r--src/mess/drivers/lynx.c7
-rw-r--r--src/mess/drivers/m20.c7
-rw-r--r--src/mess/drivers/m79152pc.c3
-rw-r--r--src/mess/drivers/mac.c43
-rw-r--r--src/mess/drivers/macpci.c3
-rw-r--r--src/mess/drivers/mbc200.c5
-rw-r--r--src/mess/drivers/mbc55x.c8
-rw-r--r--src/mess/drivers/mbee.c16
-rw-r--r--src/mess/drivers/mc10.c2
-rw-r--r--src/mess/drivers/mc80.c6
-rw-r--r--src/mess/drivers/megadriv.c4
-rw-r--r--src/mess/drivers/mes.c3
-rw-r--r--src/mess/drivers/micronic.c9
-rw-r--r--src/mess/drivers/microtan.c3
-rw-r--r--src/mess/drivers/microvsn.c36
-rw-r--r--src/mess/drivers/mikro80.c3
-rw-r--r--src/mess/drivers/mikrosha.c4
-rw-r--r--src/mess/drivers/mini2440.c4
-rw-r--r--src/mess/drivers/mk85.c3
-rw-r--r--src/mess/drivers/mk90.c3
-rw-r--r--src/mess/drivers/mmodular.c10
-rw-r--r--src/mess/drivers/modellot.c7
-rw-r--r--src/mess/drivers/molecular.c8
-rw-r--r--src/mess/drivers/ms0515.c41
-rw-r--r--src/mess/drivers/mstation.c11
-rw-r--r--src/mess/drivers/msx.c4
-rw-r--r--src/mess/drivers/multi16.c4
-rw-r--r--src/mess/drivers/multi8.c11
-rw-r--r--src/mess/drivers/mx2178.c3
-rw-r--r--src/mess/drivers/myb3k.c5
-rw-r--r--src/mess/drivers/mycom.c3
-rw-r--r--src/mess/drivers/mz2000.c26
-rw-r--r--src/mess/drivers/mz2500.c37
-rw-r--r--src/mess/drivers/mz3500.c12
-rw-r--r--src/mess/drivers/mz6500.c2
-rw-r--r--src/mess/drivers/mz700.c3
-rw-r--r--src/mess/drivers/mz80.c3
-rw-r--r--src/mess/drivers/n64.c2
-rw-r--r--src/mess/drivers/nakajies.c11
-rw-r--r--src/mess/drivers/nanos.c3
-rw-r--r--src/mess/drivers/nascom1.c3
-rw-r--r--src/mess/drivers/nc.c9
-rw-r--r--src/mess/drivers/nes.c3
-rw-r--r--src/mess/drivers/ngp.c5
-rw-r--r--src/mess/drivers/octopus.c3
-rw-r--r--src/mess/drivers/odyssey2.c32
-rw-r--r--src/mess/drivers/okean240.c4
-rw-r--r--src/mess/drivers/ondra.c3
-rw-r--r--src/mess/drivers/orao.c3
-rw-r--r--src/mess/drivers/oric.c7
-rw-r--r--src/mess/drivers/orion.c12
-rw-r--r--src/mess/drivers/osbexec.c13
-rw-r--r--src/mess/drivers/osborne1.c11
-rw-r--r--src/mess/drivers/p112.c3
-rw-r--r--src/mess/drivers/p2000t.c14
-rw-r--r--src/mess/drivers/palm.c8
-rw-r--r--src/mess/drivers/palmz22.c4
-rw-r--r--src/mess/drivers/partner.c4
-rw-r--r--src/mess/drivers/paso1600.c10
-rw-r--r--src/mess/drivers/pasogo.c9
-rw-r--r--src/mess/drivers/pasopia.c2
-rw-r--r--src/mess/drivers/pasopia7.c32
-rw-r--r--src/mess/drivers/pb1000.c13
-rw-r--r--src/mess/drivers/pc.c11
-rw-r--r--src/mess/drivers/pc100.c8
-rw-r--r--src/mess/drivers/pc1500.c11
-rw-r--r--src/mess/drivers/pc2000.c11
-rw-r--r--src/mess/drivers/pc4.c9
-rw-r--r--src/mess/drivers/pc6001.c65
-rw-r--r--src/mess/drivers/pc8001.c8
-rw-r--r--src/mess/drivers/pc8801.c36
-rw-r--r--src/mess/drivers/pc88va.c16
-rw-r--r--src/mess/drivers/pc9801.c28
-rw-r--r--src/mess/drivers/pce.c4
-rw-r--r--src/mess/drivers/pce220.c12
-rw-r--r--src/mess/drivers/pcm.c3
-rw-r--r--src/mess/drivers/pcw.c4
-rw-r--r--src/mess/drivers/pcw16.c4
-rw-r--r--src/mess/drivers/pda600.c3
-rw-r--r--src/mess/drivers/pdp1.c18
-rw-r--r--src/mess/drivers/pegasus.c3
-rw-r--r--src/mess/drivers/phunsy.c9
-rw-r--r--src/mess/drivers/pitagjr.c11
-rw-r--r--src/mess/drivers/pk8000.c4
-rw-r--r--src/mess/drivers/pk8020.c3
-rw-r--r--src/mess/drivers/plan80.c3
-rw-r--r--src/mess/drivers/pmd85.c4
-rw-r--r--src/mess/drivers/pocketc.c6
-rw-r--r--src/mess/drivers/pockstat.c3
-rw-r--r--src/mess/drivers/poisk1.c3
-rw-r--r--src/mess/drivers/pokemini.c15
-rw-r--r--src/mess/drivers/poly88.c3
-rw-r--r--src/mess/drivers/portfoli.c9
-rw-r--r--src/mess/drivers/pp01.c3
-rw-r--r--src/mess/drivers/prestige.c11
-rw-r--r--src/mess/drivers/primo.c3
-rw-r--r--src/mess/drivers/psion.c9
-rw-r--r--src/mess/drivers/ptcsol.c3
-rw-r--r--src/mess/drivers/pv1000.c16
-rw-r--r--src/mess/drivers/pv9234.c3
-rw-r--r--src/mess/drivers/px4.c18
-rw-r--r--src/mess/drivers/px8.c9
-rw-r--r--src/mess/drivers/pyl601.c3
-rw-r--r--src/mess/drivers/qx10.c17
-rw-r--r--src/mess/drivers/radio86.c4
-rw-r--r--src/mess/drivers/rainbow.c4
-rw-r--r--src/mess/drivers/rd110.c11
-rw-r--r--src/mess/drivers/replicator.c11
-rw-r--r--src/mess/drivers/rex6000.c11
-rw-r--r--src/mess/drivers/rm380z.c3
-rw-r--r--src/mess/drivers/rmnimbus.c7
-rw-r--r--src/mess/drivers/rmt32.c11
-rw-r--r--src/mess/drivers/rt1715.c13
-rw-r--r--src/mess/drivers/rx78.c6
-rw-r--r--src/mess/drivers/samcoupe.c9
-rw-r--r--src/mess/drivers/sapi1.c3
-rw-r--r--src/mess/drivers/saturn.c2
-rw-r--r--src/mess/drivers/sbrain.c3
-rw-r--r--src/mess/drivers/scv.c39
-rw-r--r--src/mess/drivers/sm1800.c15
-rw-r--r--src/mess/drivers/smc777.c43
-rw-r--r--src/mess/drivers/sms.c12
-rw-r--r--src/mess/drivers/socrates.c18
-rw-r--r--src/mess/drivers/sorcerer.c3
-rw-r--r--src/mess/drivers/spec128.c2
-rw-r--r--src/mess/drivers/special.c12
-rw-r--r--src/mess/drivers/spectrum.c5
-rw-r--r--src/mess/drivers/ssem.c3
-rw-r--r--src/mess/drivers/ssystem3.c4
-rw-r--r--src/mess/drivers/super80.c13
-rw-r--r--src/mess/drivers/supracan.c17
-rw-r--r--src/mess/drivers/svi318.c2
-rw-r--r--src/mess/drivers/svision.c19
-rw-r--r--src/mess/drivers/svmu.c11
-rw-r--r--src/mess/drivers/sys2900.c3
-rw-r--r--src/mess/drivers/tavernie.c3
-rw-r--r--src/mess/drivers/tdv2324.c3
-rw-r--r--src/mess/drivers/tek405x.c6
-rw-r--r--src/mess/drivers/tek410x.c5
-rw-r--r--src/mess/drivers/terak.c3
-rw-r--r--src/mess/drivers/thomson.c4
-rw-r--r--src/mess/drivers/ti85.c22
-rw-r--r--src/mess/drivers/ti89.c9
-rw-r--r--src/mess/drivers/ti990_10.c4
-rw-r--r--src/mess/drivers/ti990_4.c10
-rw-r--r--src/mess/drivers/ti99_2.c11
-rw-r--r--src/mess/drivers/tiki100.c10
-rw-r--r--src/mess/drivers/tim011.c3
-rw-r--r--src/mess/drivers/tim100.c6
-rw-r--r--src/mess/drivers/tk80bs.c5
-rw-r--r--src/mess/drivers/trs80.c8
-rw-r--r--src/mess/drivers/tvc.c7
-rw-r--r--src/mess/drivers/tx0.c18
-rw-r--r--src/mess/drivers/uknc.c3
-rw-r--r--src/mess/drivers/unior.c6
-rw-r--r--src/mess/drivers/unistar.c12
-rw-r--r--src/mess/drivers/univac.c3
-rw-r--r--src/mess/drivers/unixpc.c3
-rw-r--r--src/mess/drivers/ut88.c5
-rw-r--r--src/mess/drivers/v6809.c3
-rw-r--r--src/mess/drivers/vboy.c33
-rw-r--r--src/mess/drivers/vc4000.c8
-rw-r--r--src/mess/drivers/vector06.c3
-rw-r--r--src/mess/drivers/vg5k.c2
-rw-r--r--src/mess/drivers/victor9k.c3
-rw-r--r--src/mess/drivers/vii.c6
-rw-r--r--src/mess/drivers/vt100.c4
-rw-r--r--src/mess/drivers/vt220.c3
-rw-r--r--src/mess/drivers/vt240.c3
-rw-r--r--src/mess/drivers/vt320.c3
-rw-r--r--src/mess/drivers/vt520.c3
-rw-r--r--src/mess/drivers/vta2000.c13
-rw-r--r--src/mess/drivers/vtech2.c17
-rw-r--r--src/mess/drivers/wswan.c15
-rw-r--r--src/mess/drivers/x07.c9
-rw-r--r--src/mess/drivers/x1.c32
-rw-r--r--src/mess/drivers/x1twin.c4
-rw-r--r--src/mess/drivers/x68k.c8
-rw-r--r--src/mess/drivers/xavix.c7
-rw-r--r--src/mess/drivers/xerox820.c2
-rw-r--r--src/mess/drivers/ymmu100.c10
-rw-r--r--src/mess/drivers/z100.c14
-rw-r--r--src/mess/drivers/z1013.c3
-rw-r--r--src/mess/drivers/z88.c3
-rw-r--r--src/mess/drivers/z9001.c2
-rw-r--r--src/mess/drivers/zaurus.c7
-rw-r--r--src/mess/drivers/zorba.c12
-rw-r--r--src/mess/drivers/zrt80.c3
-rw-r--r--src/mess/drivers/zx.c26
-rw-r--r--src/mess/includes/a7800.h2
-rw-r--r--src/mess/includes/advision.h2
-rw-r--r--src/mess/includes/alesis.h2
-rw-r--r--src/mess/includes/aquarius.h2
-rw-r--r--src/mess/includes/arcadia.h2
-rw-r--r--src/mess/includes/avigo.h2
-rw-r--r--src/mess/includes/b2m.h2
-rw-r--r--src/mess/includes/busicom.h2
-rw-r--r--src/mess/includes/bw2.h2
-rw-r--r--src/mess/includes/c65.h1
-rw-r--r--src/mess/includes/channelf.h2
-rw-r--r--src/mess/includes/cybiko.h1
-rw-r--r--src/mess/includes/dai.h2
-rw-r--r--src/mess/includes/dgn_beta.h2
-rw-r--r--src/mess/includes/electron.h2
-rw-r--r--src/mess/includes/fm7.h2
-rw-r--r--src/mess/includes/gamecom.h2
-rw-r--r--src/mess/includes/gba.h2
-rw-r--r--src/mess/includes/hp48.h2
-rw-r--r--src/mess/includes/hx20.h2
-rw-r--r--src/mess/includes/intv.h2
-rw-r--r--src/mess/includes/lviv.h2
-rw-r--r--src/mess/includes/lynx.h4
-rw-r--r--src/mess/includes/mbc55x.h2
-rw-r--r--src/mess/includes/micronic.h2
-rw-r--r--src/mess/includes/mz700.h2
-rw-r--r--src/mess/includes/nc.h2
-rw-r--r--src/mess/includes/nes.h2
-rw-r--r--src/mess/includes/oric.h2
-rw-r--r--src/mess/includes/osborne1.h2
-rw-r--r--src/mess/includes/pc4.h2
-rw-r--r--src/mess/includes/pcw.h2
-rw-r--r--src/mess/includes/pcw16.h2
-rw-r--r--src/mess/includes/pdp1.h2
-rw-r--r--src/mess/includes/pk8020.h2
-rw-r--r--src/mess/includes/pmd85.h2
-rw-r--r--src/mess/includes/poisk1.h2
-rw-r--r--src/mess/includes/portfoli.h2
-rw-r--r--src/mess/includes/pp01.h2
-rw-r--r--src/mess/includes/psion.h2
-rw-r--r--src/mess/includes/px8.h2
-rw-r--r--src/mess/includes/rmnimbus.h2
-rw-r--r--src/mess/includes/samcoupe.h2
-rw-r--r--src/mess/includes/ssystem3.h2
-rw-r--r--src/mess/includes/svision.h2
-rw-r--r--src/mess/includes/ti85.h2
-rw-r--r--src/mess/includes/ti89.h2
-rw-r--r--src/mess/includes/tiki100.h2
-rw-r--r--src/mess/includes/tvc.h2
-rw-r--r--src/mess/includes/tx0.h2
-rw-r--r--src/mess/includes/vc4000.h2
-rw-r--r--src/mess/includes/vector06.h2
-rw-r--r--src/mess/includes/vtech2.h2
-rw-r--r--src/mess/includes/wswan.h2
-rw-r--r--src/mess/includes/x07.h2
-rw-r--r--src/mess/includes/z88.h2
-rw-r--r--src/mess/includes/zx.h2
-rw-r--r--src/mess/machine/aim65.c2
-rw-r--r--src/mess/machine/amstrad.c14
-rw-r--r--src/mess/machine/apple2gs.c4
-rw-r--r--src/mess/machine/b2m.c4
-rw-r--r--src/mess/machine/cgenie.c2
-rw-r--r--src/mess/machine/lisa.c2
-rw-r--r--src/mess/machine/lynx.c14
-rw-r--r--src/mess/machine/pk8020.c2
-rw-r--r--src/mess/machine/svi318.c4
-rw-r--r--src/mess/machine/ti99/videowrp.h2
-rw-r--r--src/mess/machine/vector06.c2
-rw-r--r--src/mess/video/733_asr.c31
-rw-r--r--src/mess/video/733_asr.h12
-rw-r--r--src/mess/video/911_vdt.c30
-rw-r--r--src/mess/video/911_vdt.h10
-rw-r--r--src/mess/video/abc800.c10
-rw-r--r--src/mess/video/abc806.c10
-rw-r--r--src/mess/video/ac1.c4
-rw-r--r--src/mess/video/advision.c4
-rw-r--r--src/mess/video/apollo.c5
-rw-r--r--src/mess/video/apple3.c2
-rw-r--r--src/mess/video/aquarius.c8
-rw-r--r--src/mess/video/arcadia.c6
-rw-r--r--src/mess/video/atarist.c14
-rw-r--r--src/mess/video/avigo.c6
-rw-r--r--src/mess/video/b2m.c4
-rw-r--r--src/mess/video/busicom.c8
-rw-r--r--src/mess/video/cgc7900.c8
-rw-r--r--src/mess/video/cgenie.c24
-rw-r--r--src/mess/video/channelf.c4
-rw-r--r--src/mess/video/comquest.c2
-rw-r--r--src/mess/video/dai.c4
-rw-r--r--src/mess/video/ef9345.c2
-rw-r--r--src/mess/video/fm7.c12
-rw-r--r--src/mess/video/galeb.c2
-rw-r--r--src/mess/video/hec2video.c32
-rw-r--r--src/mess/video/hp48.c4
-rw-r--r--src/mess/video/intv.c12
-rw-r--r--src/mess/video/isa_cga.c12
-rw-r--r--src/mess/video/isa_cga.h1
-rw-r--r--src/mess/video/isa_ega.c10
-rw-r--r--src/mess/video/isa_ega.h1
-rw-r--r--src/mess/video/isa_mda.c14
-rw-r--r--src/mess/video/isa_mda.h3
-rw-r--r--src/mess/video/isa_pc1640_iga.c2
-rw-r--r--src/mess/video/isa_svga_cirrus.c2
-rw-r--r--src/mess/video/isa_svga_s3.c4
-rw-r--r--src/mess/video/isa_svga_tseng.c2
-rw-r--r--src/mess/video/isa_vga_ati.c2
-rw-r--r--src/mess/video/k1ge.c10
-rw-r--r--src/mess/video/kaypro.c6
-rw-r--r--src/mess/video/kc.c2
-rw-r--r--src/mess/video/kramermc.c2
-rw-r--r--src/mess/video/kyocera.c16
-rw-r--r--src/mess/video/lviv.c4
-rw-r--r--src/mess/video/mac.c14
-rw-r--r--src/mess/video/mbee.c12
-rw-r--r--src/mess/video/mos6566.c134
-rw-r--r--src/mess/video/mz700.c16
-rw-r--r--src/mess/video/nascom1.c8
-rw-r--r--src/mess/video/nc.c4
-rw-r--r--src/mess/video/nes.c4
-rw-r--r--src/mess/video/orion.c2
-rw-r--r--src/mess/video/osi.c30
-rw-r--r--src/mess/video/p2000m.c2
-rw-r--r--src/mess/video/pc1251.c4
-rw-r--r--src/mess/video/pc1401.c4
-rw-r--r--src/mess/video/pc1403.c12
-rw-r--r--src/mess/video/pc1512.c12
-rw-r--r--src/mess/video/pc8401a.c12
-rw-r--r--src/mess/video/pc_aga.c6
-rw-r--r--src/mess/video/pc_t1t.c12
-rw-r--r--src/mess/video/pcw.c4
-rw-r--r--src/mess/video/pcw16.c4
-rw-r--r--src/mess/video/pdp1.c4
-rw-r--r--src/mess/video/pk8020.c4
-rw-r--r--src/mess/video/pmd85.c4
-rw-r--r--src/mess/video/pocketc.c8
-rw-r--r--src/mess/video/poisk1.c4
-rw-r--r--src/mess/video/pp01.c4
-rw-r--r--src/mess/video/radio86.c2
-rw-r--r--src/mess/video/rmnimbus.c2
-rw-r--r--src/mess/video/s3virge.c2
-rw-r--r--src/mess/video/special.c8
-rw-r--r--src/mess/video/spectrum.c2
-rw-r--r--src/mess/video/ssystem3.c4
-rw-r--r--src/mess/video/stic.c12
-rw-r--r--src/mess/video/super80.c2
-rw-r--r--src/mess/video/thomson.c2
-rw-r--r--src/mess/video/ti85.c12
-rw-r--r--src/mess/video/tmc600.c1
-rw-r--r--src/mess/video/trs80.c2
-rw-r--r--src/mess/video/tx0.c4
-rw-r--r--src/mess/video/ut88.c2
-rw-r--r--src/mess/video/uv201.c20
-rw-r--r--src/mess/video/uv201.h2
-rw-r--r--src/mess/video/vector06.c4
-rw-r--r--src/mess/video/vic4567.c20
-rw-r--r--src/mess/video/vic4567.h4
-rw-r--r--src/mess/video/vtech2.c16
-rw-r--r--src/mess/video/vtvideo.c60
-rw-r--r--src/mess/video/vtvideo.h3
-rw-r--r--src/mess/video/x68k.c4
-rw-r--r--src/mess/video/z88.c8
-rw-r--r--src/mess/video/zx8301.c8
2385 files changed, 13060 insertions, 12065 deletions
diff --git a/src/emu/bus/nubus/nubus_specpdq.c b/src/emu/bus/nubus/nubus_specpdq.c
index 71afcfa463a..c0db4c01ac7 100644
--- a/src/emu/bus/nubus/nubus_specpdq.c
+++ b/src/emu/bus/nubus/nubus_specpdq.c
@@ -37,6 +37,8 @@ MACHINE_CONFIG_FRAGMENT( specpdq )
MCFG_SCREEN_RAW_PARAMS(25175000, 800, 0, 640, 525, 0, 480)
MCFG_SCREEN_SIZE(1280,1024)
MCFG_SCREEN_VISIBLE_AREA(0, 1152-1, 0, 844-1)
+
+ MCFG_PALETTE_ADD("palette", 256)
MACHINE_CONFIG_END
ROM_START( specpdq )
@@ -82,7 +84,8 @@ nubus_specpdq_device::nubus_specpdq_device(const machine_config &mconfig, const
device_t(mconfig, NUBUS_SPECPDQ, "SuperMac Spectrum PDQ video card", tag, owner, clock, "nb_spdq", __FILE__),
device_video_interface(mconfig, *this),
device_nubus_card_interface(mconfig, *this),
- m_assembled_tag(tag, ":", SPECPDQ_SCREEN_NAME)
+ m_assembled_tag(tag, ":", SPECPDQ_SCREEN_NAME),
+ m_palette(*this, "palette")
{
m_screen_tag = m_assembled_tag;
}
@@ -91,7 +94,8 @@ nubus_specpdq_device::nubus_specpdq_device(const machine_config &mconfig, device
device_t(mconfig, type, name, tag, owner, clock, shortname, source),
device_video_interface(mconfig, *this),
device_nubus_card_interface(mconfig, *this),
- m_assembled_tag(tag, ":", SPECPDQ_SCREEN_NAME)
+ m_assembled_tag(tag, ":", SPECPDQ_SCREEN_NAME),
+ m_palette(*this, "palette")
{
m_screen_tag = m_assembled_tag;
}
@@ -132,10 +136,10 @@ void nubus_specpdq_device::device_reset()
m_vbl_disable = 1;
m_mode = 0;
memset(m_vram, 0, VRAM_SIZE);
- memset(m_palette, 0, sizeof(m_palette));
+ memset(m_palette_val, 0, sizeof(m_palette_val));
- m_palette[0] = rgb_t(255, 255, 255);
- m_palette[0x80] = rgb_t(0, 0, 0);
+ m_palette_val[0] = rgb_t(255, 255, 255);
+ m_palette_val[0x80] = rgb_t(0, 0, 0);
}
@@ -174,14 +178,14 @@ UINT32 nubus_specpdq_device::screen_update(screen_device &screen, bitmap_rgb32 &
{
pixels = vram[(y * 512) + (BYTE4_XOR_BE(x))];
- *scanline++ = m_palette[(pixels&0x80)];
- *scanline++ = m_palette[((pixels<<1)&0x80)];
- *scanline++ = m_palette[((pixels<<2)&0x80)];
- *scanline++ = m_palette[((pixels<<3)&0x80)];
- *scanline++ = m_palette[((pixels<<4)&0x80)];
- *scanline++ = m_palette[((pixels<<5)&0x80)];
- *scanline++ = m_palette[((pixels<<6)&0x80)];
- *scanline++ = m_palette[((pixels<<7)&0x80)];
+ *scanline++ = m_palette_val[(pixels&0x80)];
+ *scanline++ = m_palette_val[((pixels<<1)&0x80)];
+ *scanline++ = m_palette_val[((pixels<<2)&0x80)];
+ *scanline++ = m_palette_val[((pixels<<3)&0x80)];
+ *scanline++ = m_palette_val[((pixels<<4)&0x80)];
+ *scanline++ = m_palette_val[((pixels<<5)&0x80)];
+ *scanline++ = m_palette_val[((pixels<<6)&0x80)];
+ *scanline++ = m_palette_val[((pixels<<7)&0x80)];
}
}
break;
@@ -194,10 +198,10 @@ UINT32 nubus_specpdq_device::screen_update(screen_device &screen, bitmap_rgb32 &
{
pixels = vram[(y * 512) + (BYTE4_XOR_BE(x))];
- *scanline++ = m_palette[(pixels&0xc0)];
- *scanline++ = m_palette[((pixels<<2)&0xc0)];
- *scanline++ = m_palette[((pixels<<4)&0xc0)];
- *scanline++ = m_palette[((pixels<<6)&0xc0)];
+ *scanline++ = m_palette_val[(pixels&0xc0)];
+ *scanline++ = m_palette_val[((pixels<<2)&0xc0)];
+ *scanline++ = m_palette_val[((pixels<<4)&0xc0)];
+ *scanline++ = m_palette_val[((pixels<<6)&0xc0)];
}
}
break;
@@ -211,8 +215,8 @@ UINT32 nubus_specpdq_device::screen_update(screen_device &screen, bitmap_rgb32 &
{
pixels = vram[(y * 1024) + (BYTE4_XOR_BE(x))];
- *scanline++ = m_palette[(pixels&0xf0)];
- *scanline++ = m_palette[((pixels<<4)&0xf0)];
+ *scanline++ = m_palette_val[(pixels&0xf0)];
+ *scanline++ = m_palette_val[((pixels<<4)&0xf0)];
}
}
break;
@@ -225,7 +229,7 @@ UINT32 nubus_specpdq_device::screen_update(screen_device &screen, bitmap_rgb32 &
for (x = 0; x < 1152; x++)
{
pixels = vram[(y * 1152) + (BYTE4_XOR_BE(x))];
- *scanline++ = m_palette[pixels];
+ *scanline++ = m_palette_val[pixels];
}
}
break;
@@ -297,8 +301,8 @@ WRITE32_MEMBER( nubus_specpdq_device::specpdq_w )
if (m_count == 3)
{
// printf("RAMDAC: color %d = %02x %02x %02x (PC=%x)\n", m_clutoffs, m_colors[0], m_colors[1], m_colors[2], space.device().safe_pc() );
- palette_set_color(space.machine(), m_clutoffs, rgb_t(m_colors[0], m_colors[1], m_colors[2]));
- m_palette[m_clutoffs] = rgb_t(m_colors[0], m_colors[1], m_colors[2]);
+ m_palette->set_pen_color(m_clutoffs, rgb_t(m_colors[0], m_colors[1], m_colors[2]));
+ m_palette_val[m_clutoffs] = rgb_t(m_colors[0], m_colors[1], m_colors[2]);
m_clutoffs++;
if (m_clutoffs > 255)
{
diff --git a/src/emu/bus/nubus/nubus_specpdq.h b/src/emu/bus/nubus/nubus_specpdq.h
index ff771177087..4cc249ff98d 100644
--- a/src/emu/bus/nubus/nubus_specpdq.h
+++ b/src/emu/bus/nubus/nubus_specpdq.h
@@ -42,7 +42,7 @@ public:
dynamic_buffer m_vram;
UINT32 *m_vram32;
UINT32 m_mode, m_vbl_disable;
- UINT32 m_palette[256], m_colors[3], m_count, m_clutoffs;
+ UINT32 m_palette_val[256], m_colors[3], m_count, m_clutoffs;
emu_timer *m_timer;
astring m_assembled_tag;
@@ -51,6 +51,7 @@ private:
int m_width, m_height, m_patofsx, m_patofsy;
UINT32 m_vram_addr, m_vram_src;
UINT8 m_fillbytes[256];
+ required_device<palette_device> m_palette;
};
diff --git a/src/emu/bus/wangpc/mvc.c b/src/emu/bus/wangpc/mvc.c
index 7c55635b3f6..e47d8cc2d8f 100644
--- a/src/emu/bus/wangpc/mvc.c
+++ b/src/emu/bus/wangpc/mvc.c
@@ -49,7 +49,7 @@
#define ATTR_SUBSCRIPT BIT(attr, 6)
#define ATTR_SUPERSCRIPT BIT(attr, 7)
-static const rgb_t PALETTE[] =
+static const rgb_t PALETTE_MVC[] =
{
rgb_t::black,
rgb_t(0x00, 0x80, 0x00),
@@ -81,7 +81,7 @@ void wangpc_mvc_device::crtc_update_row(mc6845_device *device, bitmap_rgb32 &bit
int x = (sx * 16) + bit;
int color = BIT(data, 15);
- bitmap.pix32(y, x) = PALETTE[color];
+ bitmap.pix32(y, x) = PALETTE_MVC[color];
data <<= 1;
}
@@ -117,7 +117,7 @@ void wangpc_mvc_device::crtc_update_row(mc6845_device *device, bitmap_rgb32 &bit
int color = ((BIT(data, 9) & !ATTR_BLANK) ^ ATTR_REVERSE);
if ((color | bitmap.pix32(y, x)) & ATTR_BOLD) color = 2;
- if (color) bitmap.pix32(y, x) = PALETTE[color];
+ if (color) bitmap.pix32(y, x) = PALETTE_MVC[color];
data <<= 1;
}
diff --git a/src/emu/bus/wangpc/tig.c b/src/emu/bus/wangpc/tig.c
index 55b1bdb7c9e..4bebcbac892 100644
--- a/src/emu/bus/wangpc/tig.c
+++ b/src/emu/bus/wangpc/tig.c
@@ -138,7 +138,7 @@ static MACHINE_CONFIG_FRAGMENT( wangpc_tig )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
MCFG_SCREEN_REFRESH_RATE(60)
- MCFG_PALETTE_LENGTH(3)
+ MCFG_PALETTE_ADD("palette", 3)
MCFG_UPD7220_ADD(UPD7720_0_TAG, XTAL_52_832MHz/28, hgdc0_intf, upd7220_0_map) // was /10?
MCFG_UPD7220_ADD(UPD7720_1_TAG, XTAL_52_832MHz/28, hgdc1_intf, upd7220_1_map) // was /16?
@@ -169,7 +169,8 @@ wangpc_tig_device::wangpc_tig_device(const machine_config &mconfig, const char *
device_wangpcbus_card_interface(mconfig, *this),
m_hgdc0(*this, UPD7720_0_TAG),
m_hgdc1(*this, UPD7720_1_TAG),
- m_option(0)
+ m_option(0),
+ m_palette(*this, "palette")
{
}
@@ -181,9 +182,9 @@ wangpc_tig_device::wangpc_tig_device(const machine_config &mconfig, const char *
void wangpc_tig_device::device_start()
{
// initialize palette
- palette_set_color_rgb(machine(), 0, 0, 0, 0);
- palette_set_color_rgb(machine(), 1, 0, 0x80, 0);
- palette_set_color_rgb(machine(), 2, 0, 0xff, 0);
+ m_palette->set_pen_color(0, 0, 0, 0);
+ m_palette->set_pen_color(1, 0, 0x80, 0);
+ m_palette->set_pen_color(2, 0, 0xff, 0);
// state saving
save_item(NAME(m_option));
diff --git a/src/emu/bus/wangpc/tig.h b/src/emu/bus/wangpc/tig.h
index ed92acb091c..a484142a7ee 100644
--- a/src/emu/bus/wangpc/tig.h
+++ b/src/emu/bus/wangpc/tig.h
@@ -58,6 +58,7 @@ private:
UINT8 m_option;
UINT8 m_attr[16];
UINT8 m_underline;
+ required_device<palette_device> m_palette;
};
diff --git a/src/emu/cpu/tms34010/tms34010.c b/src/emu/cpu/tms34010/tms34010.c
index 635de9fea48..09a906f27b4 100644
--- a/src/emu/cpu/tms34010/tms34010.c
+++ b/src/emu/cpu/tms34010/tms34010.c
@@ -1069,7 +1069,7 @@ void tms34010_get_display_params(device_t *cpu, tms34010_display_params *params)
UINT32 tms34010_device::tms340x0_ind16(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- pen_t blackpen = get_black_pen(machine());
+ pen_t blackpen = screen.palette()->black_pen();
tms34010_display_params params;
tms34010_state *tms = NULL;
device_t *cpu;
@@ -1118,7 +1118,7 @@ UINT32 tms34010_device::tms340x0_ind16(screen_device &screen, bitmap_ind16 &bitm
UINT32 tms34010_device::tms340x0_rgb32(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
- pen_t blackpen = get_black_pen(machine());
+ pen_t blackpen = screen.palette()->black_pen();
tms34010_display_params params;
tms34010_state *tms = NULL;
device_t *cpu;
diff --git a/src/emu/drawgfx.c b/src/emu/drawgfx.c
index 9abe243035c..4aa3537971a 100644
--- a/src/emu/drawgfx.c
+++ b/src/emu/drawgfx.c
@@ -360,7 +360,7 @@ gfx_element::gfx_element(running_machine &machine)
{
}
-gfx_element::gfx_element(running_machine &machine, UINT8 *base, UINT32 width, UINT32 height, UINT32 rowbytes, UINT32 color_base, UINT32 color_granularity)
+gfx_element::gfx_element(running_machine &machine, UINT8 *base, UINT32 width, UINT32 height, UINT32 rowbytes, UINT32 total_colors, UINT32 color_base, UINT32 color_granularity)
: m_width(width),
m_height(height),
m_startx(0),
@@ -371,7 +371,7 @@ gfx_element::gfx_element(running_machine &machine, UINT8 *base, UINT32 width, UI
m_color_base(color_base),
m_color_depth(color_granularity),
m_color_granularity(color_granularity),
- m_total_colors((machine.total_colors() - color_base) / color_granularity),
+ m_total_colors((total_colors - color_base) / color_granularity),
m_line_modulo(rowbytes),
m_char_modulo(0),
m_srcdata(base),
@@ -581,19 +581,19 @@ void gfx_element::decode(UINT32 code)
no transparency
-------------------------------------------------*/
-void gfx_element::opaque(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::opaque(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty)
{
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DECLARE_NO_PRIORITY;
DRAWGFX_CORE(UINT16, PIXEL_OP_REMAP_OPAQUE, NO_PRIORITY);
}
-void gfx_element::opaque(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::opaque(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty)
{
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DECLARE_NO_PRIORITY;
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_OPAQUE, NO_PRIORITY);
@@ -605,13 +605,13 @@ void gfx_element::opaque(bitmap_rgb32 &dest, const rectangle &cliprect,
a single transparent pen
-------------------------------------------------*/
-void gfx_element::transpen(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::transpen(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 trans_pen)
{
// special case invalid pens to opaque
if (trans_pen > 0xff)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
// use pen usage to optimize
code %= elements();
@@ -624,22 +624,22 @@ void gfx_element::transpen(bitmap_ind16 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & (1 << trans_pen)) == 0)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
}
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFX_CORE(UINT16, PIXEL_OP_REMAP_TRANSPEN, NO_PRIORITY);
}
-void gfx_element::transpen(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::transpen(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 trans_pen)
{
// special case invalid pens to opaque
if (trans_pen > 0xff)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
// use pen usage to optimize
code %= elements();
@@ -652,11 +652,11 @@ void gfx_element::transpen(bitmap_rgb32 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & (1 << trans_pen)) == 0)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
}
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_TRANSPEN, NO_PRIORITY);
}
@@ -703,13 +703,13 @@ void gfx_element::transpen_raw(bitmap_rgb32 &dest, const rectangle &cliprect,
a mask
-------------------------------------------------*/
-void gfx_element::transmask(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::transmask(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 trans_mask)
{
// special case 0 mask to opaque
if (trans_mask == 0)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
// use pen usage to optimize
code %= elements();
@@ -722,22 +722,22 @@ void gfx_element::transmask(bitmap_ind16 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & trans_mask) == 0)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
}
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFX_CORE(UINT16, PIXEL_OP_REMAP_TRANSMASK, NO_PRIORITY);
}
-void gfx_element::transmask(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::transmask(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 trans_mask)
{
// special case 0 mask to opaque
if (trans_mask == 0)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
// use pen usage to optimize
code %= elements();
@@ -750,11 +750,11 @@ void gfx_element::transmask(bitmap_rgb32 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & trans_mask) == 0)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
}
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_TRANSMASK, NO_PRIORITY);
}
@@ -766,27 +766,27 @@ void gfx_element::transmask(bitmap_rgb32 &dest, const rectangle &cliprect,
transparent, opaque, or shadowing
-------------------------------------------------*/
-void gfx_element::transtable(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::transtable(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
const UINT8 *pentable, const pen_t *shadowtable)
{
assert(pentable != NULL);
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DECLARE_NO_PRIORITY;
DRAWGFX_CORE(UINT16, PIXEL_OP_REMAP_TRANSTABLE16, NO_PRIORITY);
}
-void gfx_element::transtable(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::transtable(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
const UINT8 *pentable, const pen_t *shadowtable)
{
assert(pentable != NULL);
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DECLARE_NO_PRIORITY;
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_TRANSTABLE32, NO_PRIORITY);
@@ -799,13 +799,13 @@ void gfx_element::transtable(bitmap_rgb32 &dest, const rectangle &cliprect,
remaining pixels with a fixed alpha value
-------------------------------------------------*/
-void gfx_element::alpha(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::alpha(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 trans_pen, UINT8 alpha_val)
{
// special case alpha = 0xff
if (alpha_val == 0xff)
- return transpen(dest, cliprect, code, color, flipx, flipy, destx, desty, trans_pen);
+ return transpen(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, trans_pen);
// early out if completely transparent
code %= elements();
@@ -813,7 +813,7 @@ void gfx_element::alpha(bitmap_rgb32 &dest, const rectangle &cliprect,
return;
// get final code and color, and grab lookup tables
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_TRANSPEN_ALPHA32, NO_PRIORITY);
}
@@ -829,31 +829,31 @@ void gfx_element::alpha(bitmap_rgb32 &dest, const rectangle &cliprect,
element with no transparency
-------------------------------------------------*/
-void gfx_element::zoom_opaque(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::zoom_opaque(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DECLARE_NO_PRIORITY;
DRAWGFXZOOM_CORE(UINT16, PIXEL_OP_REMAP_OPAQUE, NO_PRIORITY);
}
-void gfx_element::zoom_opaque(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::zoom_opaque(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return opaque(dest, cliprect, code, color, flipx, flipy, destx, desty);
+ return opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty);
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DECLARE_NO_PRIORITY;
DRAWGFXZOOM_CORE(UINT32, PIXEL_OP_REMAP_OPAQUE, NO_PRIORITY);
@@ -865,17 +865,17 @@ void gfx_element::zoom_opaque(bitmap_rgb32 &dest, const rectangle &cliprect,
element with a single transparent pen
-------------------------------------------------*/
-void gfx_element::zoom_transpen(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::zoom_transpen(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, UINT32 trans_pen)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return transpen(dest, cliprect, code, color, flipx, flipy, destx, desty, trans_pen);
+ return transpen(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, trans_pen);
// special case invalid pens to opaque
if (trans_pen > 0xff)
- return zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
+ return zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
// use pen usage to optimize
code %= elements();
@@ -888,26 +888,26 @@ void gfx_element::zoom_transpen(bitmap_ind16 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & (1 << trans_pen)) == 0)
- return zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
+ return zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
}
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFXZOOM_CORE(UINT16, PIXEL_OP_REMAP_TRANSPEN, NO_PRIORITY);
}
-void gfx_element::zoom_transpen(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::zoom_transpen(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, UINT32 trans_pen)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return transpen(dest, cliprect, code, color, flipx, flipy, destx, desty, trans_pen);
+ return transpen(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, trans_pen);
// special case invalid pens to opaque
if (trans_pen > 0xff)
- return zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
+ return zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
// use pen usage to optimize
code %= elements();
@@ -920,11 +920,11 @@ void gfx_element::zoom_transpen(bitmap_rgb32 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & (1 << trans_pen)) == 0)
- return zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
+ return zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
}
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFXZOOM_CORE(UINT32, PIXEL_OP_REMAP_TRANSPEN, NO_PRIORITY);
}
@@ -979,17 +979,17 @@ void gfx_element::zoom_transpen_raw(bitmap_rgb32 &dest, const rectangle &cliprec
provided as a mask
-------------------------------------------------*/
-void gfx_element::zoom_transmask(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::zoom_transmask(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, UINT32 trans_mask)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return transmask(dest, cliprect, code, color, flipx, flipy, destx, desty, trans_mask);
+ return transmask(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, trans_mask);
// special case 0 mask to opaque
if (trans_mask == 0)
- return zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
+ return zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
// use pen usage to optimize
code %= elements();
@@ -1002,26 +1002,26 @@ void gfx_element::zoom_transmask(bitmap_ind16 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & trans_mask) == 0)
- return zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
+ return zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
}
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFXZOOM_CORE(UINT16, PIXEL_OP_REMAP_TRANSMASK, NO_PRIORITY);
}
-void gfx_element::zoom_transmask(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::zoom_transmask(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, UINT32 trans_mask)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return transmask(dest, cliprect, code, color, flipx, flipy, destx, desty, trans_mask);
+ return transmask(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, trans_mask);
// special case 0 mask to opaque
if (trans_mask == 0)
- return zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
+ return zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
// use pen usage to optimize
code %= elements();
@@ -1034,11 +1034,11 @@ void gfx_element::zoom_transmask(bitmap_rgb32 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & trans_mask) == 0)
- return zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
+ return zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley);
}
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFXZOOM_CORE(UINT32, PIXEL_OP_REMAP_TRANSMASK, NO_PRIORITY);
}
@@ -1050,7 +1050,7 @@ void gfx_element::zoom_transmask(bitmap_rgb32 &dest, const rectangle &cliprect,
are transparent, opaque, or shadowing
-------------------------------------------------*/
-void gfx_element::zoom_transtable(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::zoom_transtable(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, const UINT8 *pentable, const pen_t *shadowtable)
{
@@ -1058,16 +1058,16 @@ void gfx_element::zoom_transtable(bitmap_ind16 &dest, const rectangle &cliprect,
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return transtable(dest, cliprect, code, color, flipx, flipy, destx, desty, pentable, shadowtable);
+ return transtable(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, pentable, shadowtable);
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DECLARE_NO_PRIORITY;
DRAWGFXZOOM_CORE(UINT16, PIXEL_OP_REMAP_TRANSTABLE16, NO_PRIORITY);
}
-void gfx_element::zoom_transtable(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::zoom_transtable(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, const UINT8 *pentable, const pen_t *shadowtable)
{
@@ -1075,10 +1075,10 @@ void gfx_element::zoom_transtable(bitmap_rgb32 &dest, const rectangle &cliprect,
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return transtable(dest, cliprect, code, color, flipx, flipy, destx, desty, pentable, shadowtable);
+ return transtable(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, pentable, shadowtable);
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DECLARE_NO_PRIORITY;
DRAWGFXZOOM_CORE(UINT32, PIXEL_OP_REMAP_TRANSTABLE32, NO_PRIORITY);
@@ -1091,17 +1091,17 @@ void gfx_element::zoom_transtable(bitmap_rgb32 &dest, const rectangle &cliprect,
the remaining pixels with a fixed alpha value
-------------------------------------------------*/
-void gfx_element::zoom_alpha(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::zoom_alpha(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, UINT32 trans_pen, UINT8 alpha_val)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return alpha(dest, cliprect, code, color, flipx, flipy, destx, desty, trans_pen, alpha_val);
+ return alpha(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, trans_pen, alpha_val);
// special case alpha_val = 0xff
if (alpha_val == 0xff)
- return zoom_transpen(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley, trans_pen);
+ return zoom_transpen(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley, trans_pen);
// early out if completely transparent
code %= elements();
@@ -1109,7 +1109,7 @@ void gfx_element::zoom_alpha(bitmap_rgb32 &dest, const rectangle &cliprect,
return;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DECLARE_NO_PRIORITY;
DRAWGFXZOOM_CORE(UINT32, PIXEL_OP_REMAP_TRANSPEN_ALPHA32, NO_PRIORITY);
}
@@ -1126,7 +1126,7 @@ void gfx_element::zoom_alpha(bitmap_rgb32 &dest, const rectangle &cliprect,
bitmap
-------------------------------------------------*/
-void gfx_element::prio_opaque(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::prio_opaque(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
bitmap_ind8 &priority, UINT32 pmask)
{
@@ -1134,12 +1134,12 @@ void gfx_element::prio_opaque(bitmap_ind16 &dest, const rectangle &cliprect,
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DRAWGFX_CORE(UINT16, PIXEL_OP_REMAP_OPAQUE_PRIORITY, UINT8);
}
-void gfx_element::prio_opaque(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::prio_opaque(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
bitmap_ind8 &priority, UINT32 pmask)
{
@@ -1147,7 +1147,7 @@ void gfx_element::prio_opaque(bitmap_rgb32 &dest, const rectangle &cliprect,
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_OPAQUE_PRIORITY, UINT8);
}
@@ -1159,13 +1159,13 @@ void gfx_element::prio_opaque(bitmap_rgb32 &dest, const rectangle &cliprect,
priority bitmap
-------------------------------------------------*/
-void gfx_element::prio_transpen(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::prio_transpen(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
bitmap_ind8 &priority, UINT32 pmask, UINT32 trans_pen)
{
// special case invalid pens to opaque
if (trans_pen > 0xff)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
// use pen usage to optimize
code %= elements();
@@ -1178,24 +1178,24 @@ void gfx_element::prio_transpen(bitmap_ind16 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & (1 << trans_pen)) == 0)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
}
// high bit of the mask is implicitly on
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DRAWGFX_CORE(UINT16, PIXEL_OP_REMAP_TRANSPEN_PRIORITY, UINT8);
}
-void gfx_element::prio_transpen(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::prio_transpen(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
bitmap_ind8 &priority, UINT32 pmask, UINT32 trans_pen)
{
// special case invalid pens to opaque
if (trans_pen > 0xff)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
// use pen usage to optimize
code %= elements();
@@ -1208,14 +1208,14 @@ void gfx_element::prio_transpen(bitmap_rgb32 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & (1 << trans_pen)) == 0)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
}
// high bit of the mask is implicitly on
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_TRANSPEN_PRIORITY, UINT8);
}
@@ -1265,13 +1265,13 @@ void gfx_element::prio_transpen_raw(bitmap_rgb32 &dest, const rectangle &cliprec
a mask, checking against the priority bitmap
-------------------------------------------------*/
-void gfx_element::prio_transmask(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::prio_transmask(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
bitmap_ind8 &priority, UINT32 pmask, UINT32 trans_mask)
{
// special case 0 mask to opaque
if (trans_mask == 0)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
// use pen usage to optimize
code %= elements();
@@ -1284,24 +1284,24 @@ void gfx_element::prio_transmask(bitmap_ind16 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & trans_mask) == 0)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
}
// high bit of the mask is implicitly on
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DRAWGFX_CORE(UINT16, PIXEL_OP_REMAP_TRANSMASK_PRIORITY, UINT8);
}
-void gfx_element::prio_transmask(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::prio_transmask(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
bitmap_ind8 &priority, UINT32 pmask, UINT32 trans_mask)
{
// special case 0 mask to opaque
if (trans_mask == 0)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
// use pen usage to optimize
code %= elements();
@@ -1314,14 +1314,14 @@ void gfx_element::prio_transmask(bitmap_rgb32 &dest, const rectangle &cliprect,
// fully opaque; draw as such
if ((usage & trans_mask) == 0)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
}
// high bit of the mask is implicitly on
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_TRANSMASK_PRIORITY, UINT8);
}
@@ -1333,7 +1333,7 @@ void gfx_element::prio_transmask(bitmap_rgb32 &dest, const rectangle &cliprect,
against the priority bitmap
-------------------------------------------------*/
-void gfx_element::prio_transtable(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::prio_transtable(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
bitmap_ind8 &priority, UINT32 pmask, const UINT8 *pentable, const pen_t *shadowtable)
{
@@ -1343,12 +1343,12 @@ void gfx_element::prio_transtable(bitmap_ind16 &dest, const rectangle &cliprect,
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DRAWGFX_CORE(UINT16, PIXEL_OP_REMAP_TRANSTABLE16_PRIORITY, UINT8);
}
-void gfx_element::prio_transtable(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::prio_transtable(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
bitmap_ind8 &priority, UINT32 pmask, const UINT8 *pentable, const pen_t *shadowtable)
{
@@ -1358,7 +1358,7 @@ void gfx_element::prio_transtable(bitmap_rgb32 &dest, const rectangle &cliprect,
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_TRANSTABLE32_PRIORITY, UINT8);
}
@@ -1371,13 +1371,13 @@ void gfx_element::prio_transtable(bitmap_rgb32 &dest, const rectangle &cliprect,
checking against the priority bitmap
-------------------------------------------------*/
-void gfx_element::prio_alpha(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::prio_alpha(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
bitmap_ind8 &priority, UINT32 pmask, UINT32 trans_pen, UINT8 alpha_val)
{
// special case alpha = 0xff
if (alpha_val == 0xff)
- return prio_transpen(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask, trans_pen);
+ return prio_transpen(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask, trans_pen);
// early out if completely transparent
code %= elements();
@@ -1388,7 +1388,7 @@ void gfx_element::prio_alpha(bitmap_rgb32 &dest, const rectangle &cliprect,
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_TRANSPEN_ALPHA32_PRIORITY, UINT8);
}
@@ -1404,36 +1404,36 @@ void gfx_element::prio_alpha(bitmap_rgb32 &dest, const rectangle &cliprect,
the priority bitmap
-------------------------------------------------*/
-void gfx_element::prio_zoom_opaque(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::prio_zoom_opaque(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, bitmap_ind8 &priority, UINT32 pmask)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
// high bit of the mask is implicitly on
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DRAWGFXZOOM_CORE(UINT16, PIXEL_OP_REMAP_OPAQUE_PRIORITY, UINT8);
}
-void gfx_element::prio_zoom_opaque(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::prio_zoom_opaque(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, bitmap_ind8 &priority, UINT32 pmask)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return prio_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
+ return prio_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask);
// high bit of the mask is implicitly on
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
code %= elements();
DRAWGFXZOOM_CORE(UINT32, PIXEL_OP_REMAP_OPAQUE_PRIORITY, UINT8);
}
@@ -1445,18 +1445,18 @@ void gfx_element::prio_zoom_opaque(bitmap_rgb32 &dest, const rectangle &cliprect
checking against the priority bitmap
-------------------------------------------------*/
-void gfx_element::prio_zoom_transpen(bitmap_ind16 &dest, const rectangle &cliprect,
+void gfx_element::prio_zoom_transpen(palette_device &palette, bitmap_ind16 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, bitmap_ind8 &priority, UINT32 pmask,
UINT32 trans_pen)
{
// non-zoom case
if (scalex == 0x10000 && scaley == 0x10000)
- return prio_transpen(dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask, trans_pen);
+ return prio_transpen(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, priority, pmask, trans_pen);
// special case invalid pens to opaque
if (trans_pen > 0xff)
- return prio_zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley, priority, pmask);
+ return prio_zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley, priority, pmask);
// use pen usage to optimize
code %= elements();
@@ -1469,29 +1469,29 @@ void gfx_element::prio_zoom_transpen(bitmap_ind16 &dest, const rectangle &clipre
// fully opaque; draw as such
if ((usage & (1 << trans_pen)) == 0)
- return prio_zoom_opaque(dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley, priority, pmask);
+ return prio_zoom_opaque(palette, dest, cliprect, code, color, flipx, flipy, destx, desty, scalex, scaley, priority, pmask);
}
// high bit of the mask is implicitly on
pmask |= 1 << 31;
// render
- const pen_t *paldata = &machine().pens[colorbase() + granularity() * (color % colors())];
+ const pen_t *paldata = &palette.pen(colorbase() + granularity() * (color % colors()));
DRAWGFXZOOM_CORE(UINT16, PIXEL_OP_REMAP_TRANSPEN_PRIORITY, UINT8);
}
-void gfx_element::prio_zoom_transpen(bitmap_rgb32 &dest, const rectangle &cliprect,
+void gfx_element::prio_zoom_transpen(palette_device &palette, bitmap_rgb32 &dest, const rectangle &cliprect,
UINT32 code, UINT32 color, int flipx, int flipy, INT32 destx, INT32 desty,
UINT32 scalex, UINT32 scaley, bitmap_ind8 &priority, UINT32 pmask,
UINT32 trans_pen)
{
// non-z