summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers
diff options
context:
space:
mode:
authorGravatarGravatar Vas Crabb <vas@vastheman.com>2018-05-06 00:40:40 +1000
committerGravatarGravatar Vas Crabb <vas@vastheman.com>2018-05-06 00:51:27 +1000
commit4ea3cd0bc1f54e47a0d38a47afac38101549e9ee (patch) (github)
treebbadc20010b6bad48cf321b1c864655587e4b8ad /src/mame/drivers
parentbba5127d7a73ca44fdc0dcab7286846c81206771 (diff)
downloadmame-4ea3cd0bc1f54e47a0d38a47afac38101549e9ee.tar.bz2
mame-4ea3cd0bc1f54e47a0d38a47afac38101549e9ee.zip
Streamline machine configuration macros - everyone's a device edition.
Start replacing special device macros with additional constructors, starting with ISA, INTELLEC 4 and RS-232 buses. Allow an object finder to take on the target of another object finder. (For a combination of the previous two things in action, see either the INTELLEC 4 driver, or the Apple 2 PC Exporter card. Also check out looping over a device finder array to instantiate devices in some places. Lots of things no longer need to pass tags around.) Start supplying default clocks for things that have a standard clock or have all clocks internal. Eliminate the separate DEV versions of the DEVCB_ macros. Previously, the plain versions were a shortcut for DEVICE_SELF as the target. You can now supply a string tag (relative to current device being configured), an object finder (takes on the base and relative tag), or a reference to a device/interface (only do this if you know the device won't be replaced out from under it, but that's a safe assumption for your subdevices). In almost all cases, you can get the effect you want by supplying *this as the target. Eliminate sound and CPU versions of macros. They serve no useful purpose, provide no extra checks, make error messages longer, add indirection, and mislead newbies into thinking there's a difference. Remove a lot of now-unnecessary ":" prefixes binding things relative to machine root. Clean up some miscellaneous rot. Examples of new functionality in use in (some more subtle than others): * src/mame/drivers/intellec4.cpp * src/mame/drivers/tranz330.cpp * src/mame/drivers/osboren1.cpp * src/mame/drivers/zorba.cpp * src/mame/devices/smioc.cpp * src/devices/bus/a2bus/pc_xporter.cpp * src/devices/bus/isa/isa.h * src/devices/bus/isa/isa.h * src/devices/bus/intellec4/intellec4.h
Diffstat (limited to 'src/mame/drivers')
-rw-r--r--src/mame/drivers/1942.cpp34
-rw-r--r--src/mame/drivers/1943.cpp16
-rw-r--r--src/mame/drivers/1945kiii.cpp10
-rw-r--r--src/mame/drivers/20pacgal.cpp16
-rw-r--r--src/mame/drivers/24cdjuke.cpp12
-rw-r--r--src/mame/drivers/2mindril.cpp20
-rw-r--r--src/mame/drivers/30test.cpp6
-rw-r--r--src/mame/drivers/39in1.cpp10
-rw-r--r--src/mame/drivers/3do.cpp8
-rw-r--r--src/mame/drivers/3x3puzzl.cpp6
-rw-r--r--src/mame/drivers/4004clk.cpp4
-rw-r--r--src/mame/drivers/40love.cpp48
-rw-r--r--src/mame/drivers/4dpi.cpp6
-rw-r--r--src/mame/drivers/4enlinea.cpp27
-rw-r--r--src/mame/drivers/4enraya.cpp18
-rw-r--r--src/mame/drivers/4roses.cpp14
-rw-r--r--src/mame/drivers/5clown.cpp22
-rw-r--r--src/mame/drivers/68ksbc.cpp18
-rw-r--r--src/mame/drivers/8080bw.cpp188
-rw-r--r--src/mame/drivers/88games.cpp16
-rw-r--r--src/mame/drivers/a2600.cpp60
-rw-r--r--src/mame/drivers/a5105.cpp12
-rw-r--r--src/mame/drivers/a51xx.cpp12
-rw-r--r--src/mame/drivers/a6809.cpp8
-rw-r--r--src/mame/drivers/a7150.cpp74
-rw-r--r--src/mame/drivers/a7800.cpp20
-rw-r--r--src/mame/drivers/aa310.cpp48
-rw-r--r--src/mame/drivers/aaa.cpp6
-rw-r--r--src/mame/drivers/abc1600.cpp96
-rw-r--r--src/mame/drivers/abc80.cpp18
-rw-r--r--src/mame/drivers/abc80x.cpp236
-rw-r--r--src/mame/drivers/ac1.cpp18
-rw-r--r--src/mame/drivers/accomm.cpp34
-rw-r--r--src/mame/drivers/ace.cpp4
-rw-r--r--src/mame/drivers/aceex.cpp4
-rw-r--r--src/mame/drivers/acefruit.cpp8
-rw-r--r--src/mame/drivers/aces1.cpp34
-rw-r--r--src/mame/drivers/acesp.cpp6
-rw-r--r--src/mame/drivers/acommand.cpp4
-rw-r--r--src/mame/drivers/acrnsys1.cpp10
-rw-r--r--src/mame/drivers/actfancr.cpp28
-rw-r--r--src/mame/drivers/acvirus.cpp4
-rw-r--r--src/mame/drivers/adam.cpp24
-rw-r--r--src/mame/drivers/adp.cpp30
-rw-r--r--src/mame/drivers/advision.cpp26
-rw-r--r--src/mame/drivers/aeroboto.cpp18
-rw-r--r--src/mame/drivers/aerofgt.cpp164
-rw-r--r--src/mame/drivers/agat.cpp22
-rw-r--r--src/mame/drivers/age_candy.cpp6
-rw-r--r--src/mame/drivers/aim65.cpp26
-rw-r--r--src/mame/drivers/aim65_40.cpp22
-rw-r--r--src/mame/drivers/airbustr.cpp26
-rw-r--r--src/mame/drivers/airraid.cpp20
-rw-r--r--src/mame/drivers/ajax.cpp20
-rw-r--r--src/mame/drivers/akaiax80.cpp12
-rw-r--r--src/mame/drivers/albazc.cpp8
-rw-r--r--src/mame/drivers/albazg.cpp16
-rw-r--r--src/mame/drivers/aleck64.cpp28
-rw-r--r--src/mame/drivers/alesis.cpp26
-rw-r--r--src/mame/drivers/alesis_qs.cpp4
-rw-r--r--src/mame/drivers/alg.cpp36
-rw-r--r--src/mame/drivers/alien.cpp4
-rw-r--r--src/mame/drivers/aliens.cpp16
-rw-r--r--src/mame/drivers/alinvade.cpp6
-rw-r--r--src/mame/drivers/allied.cpp82
-rw-r--r--src/mame/drivers/alpha68k.cpp218
-rw-r--r--src/mame/drivers/alphasma.cpp10
-rw-r--r--src/mame/drivers/alphatpx.cpp58
-rw-r--r--src/mame/drivers/alphatro.cpp30
-rw-r--r--src/mame/drivers/altair.cpp22
-rw-r--r--src/mame/drivers/alto2.cpp10
-rw-r--r--src/mame/drivers/altos2.cpp26
-rw-r--r--src/mame/drivers/altos486.cpp120
-rw-r--r--src/mame/drivers/altos5.cpp62
-rw-r--r--src/mame/drivers/altos8600.cpp78
-rw-r--r--src/mame/drivers/alvg.cpp4
-rw-r--r--src/mame/drivers/amaticmg.cpp24
-rw-r--r--src/mame/drivers/ambush.cpp34
-rw-r--r--src/mame/drivers/amerihok.cpp8
-rw-r--r--src/mame/drivers/amico2k.cpp12
-rw-r--r--src/mame/drivers/amiga.cpp190
-rw-r--r--src/mame/drivers/ampex.cpp14
-rw-r--r--src/mame/drivers/ampoker2.cpp10
-rw-r--r--src/mame/drivers/ampro.cpp26
-rw-r--r--src/mame/drivers/ampscarp.cpp4
-rw-r--r--src/mame/drivers/amspdwy.cpp12
-rw-r--r--src/mame/drivers/amstr_pc.cpp39
-rw-r--r--src/mame/drivers/amstrad.cpp114
-rw-r--r--src/mame/drivers/amusco.cpp32
-rw-r--r--src/mame/drivers/amust.cpp54
-rw-r--r--src/mame/drivers/anes.cpp10
-rw-r--r--src/mame/drivers/angelkds.cpp32
-rw-r--r--src/mame/drivers/anzterm.cpp4
-rw-r--r--src/mame/drivers/apc.cpp40
-rw-r--r--src/mame/drivers/apexc.cpp10
-rw-r--r--src/mame/drivers/apf.cpp28
-rw-r--r--src/mame/drivers/apogee.cpp30
-rw-r--r--src/mame/drivers/apollo.cpp68
-rw-r--r--src/mame/drivers/apple1.cpp10
-rw-r--r--src/mame/drivers/apple2.cpp36
-rw-r--r--src/mame/drivers/apple2e.cpp86
-rw-r--r--src/mame/drivers/apple2gs.cpp78
-rw-r--r--src/mame/drivers/apple3.cpp52
-rw-r--r--src/mame/drivers/applix.cpp44
-rw-r--r--src/mame/drivers/appoooh.cpp30
-rw-r--r--src/mame/drivers/apricot.cpp90
-rw-r--r--src/mame/drivers/apricotf.cpp16
-rw-r--r--src/mame/drivers/apricotp.cpp40
-rw-r--r--src/mame/drivers/aquarium.cpp12
-rw-r--r--src/mame/drivers/aquarius.cpp12
-rw-r--r--src/mame/drivers/arabian.cpp40
-rw-r--r--src/mame/drivers/arachnid.cpp32
-rw-r--r--src/mame/drivers/arcadecl.cpp6
-rw-r--r--src/mame/drivers/arcadia.cpp12
-rw-r--r--src/mame/drivers/argo.cpp6
-rw-r--r--src/mame/drivers/argox.cpp6
-rw-r--r--src/mame/drivers/argus.cpp42
-rw-r--r--src/mame/drivers/aristmk4.cpp52
-rw-r--r--src/mame/drivers/aristmk5.cpp50
-rw-r--r--src/mame/drivers/aristmk6.cpp6
-rw-r--r--src/mame/drivers/arkanoid.cpp44
-rw-r--r--src/mame/drivers/armedf.cpp160
-rw-r--r--src/mame/drivers/arsystems.cpp32
-rw-r--r--src/mame/drivers/artmagic.cpp38
-rw-r--r--src/mame/drivers/ashnojoe.cpp22
-rw-r--r--src/mame/drivers/asst128.cpp15
-rw-r--r--src/mame/drivers/asterix.cpp10
-rw-r--r--src/mame/drivers/asteroid.cpp38
-rw-r--r--src/mame/drivers/astinvad.cpp28
-rw-r--r--src/mame/drivers/astrafr.cpp24
-rw-r--r--src/mame/drivers/astrcorp.cpp18
-rw-r--r--src/mame/drivers/astrocde.cpp70
-rw-r--r--src/mame/drivers/astrof.cpp14
-rw-r--r--src/mame/drivers/astrohome.cpp8
-rw-r--r--src/mame/drivers/astropc.cpp6
-rw-r--r--src/mame/drivers/asuka.cpp90
-rw-r--r--src/mame/drivers/at.cpp304
-rw-r--r--src/mame/drivers/atari400.cpp74
-rw-r--r--src/mame/drivers/atari_s1.cpp14
-rw-r--r--src/mame/drivers/atari_s2.cpp12
-rw-r--r--src/mame/drivers/atarifb.cpp22
-rw-r--r--src/mame/drivers/atarig1.cpp6
-rw-r--r--src/mame/drivers/atarig42.cpp6
-rw-r--r--src/mame/drivers/atarigt.cpp14
-rw-r--r--src/mame/drivers/atarigx2.cpp6
-rw-r--r--src/mame/drivers/atarist.cpp202
-rw-r--r--src/mame/drivers/atarisy1.cpp50
-rw-r--r--src/mame/drivers/atarisy2.cpp16
-rw-r--r--src/mame/drivers/atarisy4.cpp22
-rw-r--r--src/mame/drivers/atetris.cpp28
-rw-r--r--src/mame/drivers/atlantis.cpp62
-rw-r--r--src/mame/drivers/atm.cpp8
-rw-r--r--src/mame/drivers/atom.cpp64
-rw-r--r--src/mame/drivers/atpci.cpp66
-rw-r--r--src/mame/drivers/atronic.cpp8
-rw-r--r--src/mame/drivers/att4425.cpp50
-rw-r--r--src/mame/drivers/att630.cpp4
-rw-r--r--src/mame/drivers/attache.cpp148
-rw-r--r--src/mame/drivers/attckufo.cpp4
-rw-r--r--src/mame/drivers/atvtrack.cpp18
-rw-r--r--src/mame/drivers/aussiebyte.cpp72
-rw-r--r--src/mame/drivers/avalnche.cpp12
-rw-r--r--src/mame/drivers/avigo.cpp32
-rw-r--r--src/mame/drivers/avt.cpp18
-rw-r--r--src/mame/drivers/ax20.cpp6
-rw-r--r--src/mame/drivers/aztarac.cpp22
-rw-r--r--src/mame/drivers/b16.cpp10
-rw-r--r--src/mame/drivers/b2m.cpp40
-rw-r--r--src/mame/drivers/babbage.cpp18
-rw-r--r--src/mame/drivers/backfire.cpp8
-rw-r--r--src/mame/drivers/badlands.cpp10
-rw-r--r--src/mame/drivers/badlandsbl.cpp10
-rw-r--r--src/mame/drivers/bagman.cpp86
-rw-r--r--src/mame/drivers/balsente.cpp32
-rw-r--r--src/mame/drivers/banctec.cpp8
-rw-r--r--src/mame/drivers/bankp.cpp14
-rw-r--r--src/mame/drivers/baraduke.cpp14
-rw-r--r--src/mame/drivers/barata.cpp10
-rw-r--r--src/mame/drivers/barni.cpp12
-rw-r--r--src/mame/drivers/bartop52.cpp6
-rw-r--r--src/mame/drivers/basic52.cpp24
-rw-r--r--src/mame/drivers/batman.cpp4
-rw-r--r--src/mame/drivers/battlane.cpp12
-rw-r--r--src/mame/drivers/battlera.cpp26
-rw-r--r--src/mame/drivers/battlex.cpp16
-rw-r--r--src/mame/drivers/battlnts.cpp14
-rw-r--r--src/mame/drivers/bbc.cpp236
-rw-r--r--src/mame/drivers/bbcbc.cpp10
-rw-r--r--src/mame/drivers/bbusters.cpp34
-rw-r--r--src/mame/drivers/bcs3.cpp20
-rw-r--r--src/mame/drivers/beaminv.cpp6
-rw-r--r--src/mame/drivers/beathead.cpp4
-rw-r--r--src/mame/drivers/bebox.cpp56
-rw-r--r--src/mame/drivers/beehive.cpp6
-rw-r--r--src/mame/drivers/beezer.cpp46
-rw-r--r--src/mame/drivers/belatra.cpp4
-rw-r--r--src/mame/drivers/berzerk.cpp14
-rw-r--r--src/mame/drivers/besta.cpp4
-rw-r--r--src/mame/drivers/bestleag.cpp6
-rw-r--r--src/mame/drivers/beta.cpp14
-rw-r--r--src/mame/drivers/bfcobra.cpp30
-rw-r--r--src/mame/drivers/bfm_ad5.cpp6
-rw-r--r--src/mame/drivers/bfm_sc1.cpp30
-rw-r--r--src/mame/drivers/bfm_sc2.cpp56
-rw-r--r--src/mame/drivers/bfm_sc4.cpp224
-rw-r--r--src/mame/drivers/bfm_sc5.cpp14
-rw-r--r--src/mame/drivers/bfm_swp.cpp6
-rw-r--r--src/mame/drivers/bfmsys83.cpp6
-rw-r--r--src/mame/drivers/bfmsys85.cpp20
-rw-r--r--src/mame/drivers/bgt.cpp6
-rw-r--r--src/mame/drivers/big10.cpp10
-rw-r--r--src/mame/drivers/bigbord2.cpp50
-rw-r--r--src/mame/drivers/bigevglf.cpp34
-rw-r--r--src/mame/drivers/bigstrkb.cpp6
-rw-r--r--src/mame/drivers/binbug.cpp26
-rw-r--r--src/mame/drivers/bingo.cpp12
-rw-r--r--src/mame/drivers/bingoc.cpp16
-rw-r--r--src/mame/drivers/bingoman.cpp6
-rw-r--r--src/mame/drivers/bingor.cpp30
-rw-r--r--src/mame/drivers/bingowav.cpp18
-rw-r--r--src/mame/drivers/bionicc.cpp20
-rw-r--r--src/mame/drivers/bishi.cpp6
-rw-r--r--src/mame/drivers/bitgraph.cpp102
-rw-r--r--src/mame/drivers/bk.cpp10
-rw-r--r--src/mame/drivers/bking.cpp32
-rw-r--r--src/mame/drivers/blackt96.cpp20
-rw-r--r--src/mame/drivers/bladestl.cpp32
-rw-r--r--src/mame/drivers/blitz68k.cpp64
-rw-r--r--src/mame/drivers/blktiger.cpp30
-rw-r--r--src/mame/drivers/blmbycar.cpp10
-rw-r--r--src/mame/drivers/blockade.cpp10
-rw-r--r--src/mame/drivers/blockhl.cpp10
-rw-r--r--src/mame/drivers/blockout.cpp14
-rw-r--r--src/mame/drivers/blocktax.cpp2
-rw-r--r--src/mame/drivers/bloodbro.cpp46
-rw-r--r--src/mame/drivers/blstroid.cpp6
-rw-r--r--src/mame/drivers/blueprnt.cpp28
-rw-r--r--src/mame/drivers/bmcbowl.cpp22
-rw-r--r--src/mame/drivers/bmcpokr.cpp10
-rw-r--r--src/mame/drivers/bmjr.cpp8
-rw-r--r--src/mame/drivers/bml3.cpp40
-rw-r--r--src/mame/drivers/bnstars.cpp14
-rw-r--r--src/mame/drivers/bntyhunt.cpp4
-rw-r--r--src/mame/drivers/bob85.cpp10
-rw-r--r--src/mame/drivers/bogeyman.cpp12
-rw-r--r--src/mame/drivers/bombjack.cpp18
-rw-r--r--src/mame/drivers/boogwing.cpp14
-rw-r--r--src/mame/drivers/bottom9.cpp20
-rw-r--r--src/mame/drivers/bowltry.cpp6
-rw-r--r--src/mame/drivers/boxer.cpp4
-rw-r--r--src/mame/drivers/bpmmicro.cpp6
-rw-r--r--src/mame/drivers/br8641.cpp14
-rw-r--r--src/mame/drivers/brkthru.cpp28
-rw-r--r--src/mame/drivers/bsktball.cpp14
-rw-r--r--src/mame/drivers/btime.cpp66
-rw-r--r--src/mame/drivers/btoads.cpp12
-rw-r--r--src/mame/drivers/bublbobl.cpp74
-rw-r--r--src/mame/drivers/buggychl.cpp28
-rw-r--r--src/mame/drivers/bullet.cpp128
-rw-r--r--src/mame/drivers/busicom.cpp2
-rw-r--r--src/mame/drivers/buster.cpp8
-rw-r--r--src/mame/drivers/bw12.cpp64
-rw-r--r--src/mame/drivers/bw2.cpp38
-rw-r--r--src/mame/drivers/bwidow.cpp18
-rw-r--r--src/mame/drivers/bwing.cpp22
-rw-r--r--src/mame/drivers/by17.cpp34
-rw-r--r--src/mame/drivers/by35.cpp44
-rw-r--r--src/mame/drivers/by6803.cpp28
-rw-r--r--src/mame/drivers/by68701.cpp4
-rw-r--r--src/mame/drivers/byvid.cpp58
-rw-r--r--src/mame/drivers/bzone.cpp16
-rw-r--r--src/mame/drivers/c10.cpp6
-rw-r--r--src/mame/drivers/c128.cpp240
-rw-r--r--src/mame/drivers/c64.cpp304
-rw-r--r--src/mame/drivers/c65.cpp22
-rw-r--r--src/mame/drivers/c80.cpp14
-rw-r--r--src/mame/drivers/c900.cpp20
-rw-r--r--src/mame/drivers/cabal.cpp60
-rw-r--r--src/mame/drivers/cabaret.cpp16
-rw-r--r--src/mame/drivers/calchase.cpp30
-rw-r--r--src/mame/drivers/calcune.cpp24
-rw-r--r--src/mame/drivers/calomega.cpp62
-rw-r--r--src/mame/drivers/calorie.cpp30
-rw-r--r--src/mame/drivers/camplynx.cpp18
-rw-r--r--src/mame/drivers/candela.cpp40
-rw-r--r--src/mame/drivers/canon_s80.cpp4
-rw-r--r--src/mame/drivers/canyon.cpp16
-rw-r--r--src/mame/drivers/capbowl.cpp22
-rw-r--r--src/mame/drivers/capcom.cpp4
-rw-r--r--src/mame/drivers/capr1.cpp10
-rw-r--r--src/mame/drivers/caprcyc.cpp4
-rw-r--r--src/mame/drivers/cardline.cpp16
-rw-r--r--src/mame/drivers/carjmbre.cpp16
-rw-r--r--src/mame/drivers/carpolo.cpp38
-rw-r--r--src/mame/drivers/carrera.cpp12
-rw-r--r--src/mame/drivers/casloopy.cpp8
-rw-r--r--src/mame/drivers/castle.cpp12
-rw-r--r--src/mame/drivers/caswin.cpp10
-rw-r--r--src/mame/drivers/cat.cpp20
-rw-r--r--src/mame/drivers/cave.cpp178
-rw-r--r--src/mame/drivers/cavepc.cpp6
-rw-r--r--src/mame/drivers/cb2001.cpp10
-rw-r--r--src/mame/drivers/cball.cpp4
-rw-r--r--src/mame/drivers/cbasebal.cpp12
-rw-r--r--src/mame/drivers/cbm2.cpp386
-rw-r--r--src/mame/drivers/cbuster.cpp12
-rw-r--r--src/mame/drivers/cc40.cpp10
-rw-r--r--src/mame/drivers/ccastles.cpp8
-rw-r--r--src/mame/drivers/cchance.cpp10
-rw-r--r--src/mame/drivers/cchasm.cpp22
-rw-r--r--src/mame/drivers/cclimber.cpp98
-rw-r--r--src/mame/drivers/ccs2810.cpp56
-rw-r--r--src/mame/drivers/ccs300.cpp22
-rw-r--r--src/mame/drivers/cd2650.cpp18
-rw-r--r--src/mame/drivers/cdc721.cpp10
-rw-r--r--src/mame/drivers/cdi.cpp60
-rw-r--r--src/mame/drivers/cedar_magnet.cpp24
-rw-r--r--src/mame/drivers/centiped.cpp80
-rw-r--r--src/mame/drivers/cesclass.cpp8
-rw-r--r--src/mame/drivers/cfx9850.cpp16
-rw-r--r--src/mame/drivers/cgc7900.cpp70
-rw-r--r--src/mame/drivers/cgenie.cpp22
-rw-r--r--src/mame/drivers/chaknpop.cpp14
-rw-r--r--src/mame/drivers/cham24.cpp4
-rw-r--r--src/mame/drivers/champbas.cpp124
-rw-r--r--src/mame/drivers/champbwl.cpp20
-rw-r--r--src/mame/drivers/chanbara.cpp10
-rw-r--r--src/mame/drivers/chance32.cpp8
-rw-r--r--src/mame/drivers/changela.cpp26
-rw-r--r--src/mame/drivers/channelf.cpp32
-rw-r--r--src/mame/drivers/chaos.cpp8
-rw-r--r--src/mame/drivers/cheekyms.cpp24
-rw-r--r--src/mame/drivers/chessmst.cpp50
-rw-r--r--src/mame/drivers/chesstrv.cpp12
-rw-r--r--src/mame/drivers/chexx.cpp26
-rw-r--r--src/mame/drivers/chihiro.cpp6
-rw-r--r--src/mame/drivers/chinagat.cpp56
-rw-r--r--src/mame/drivers/chinsan.cpp30
-rw-r--r--src/mame/drivers/chqflag.cpp18
-rw-r--r--src/mame/drivers/chsuper.cpp10
-rw-r--r--src/mame/drivers/cidelsa.cpp58
-rw-r--r--src/mame/drivers/cinemat.cpp44
-rw-r--r--src/mame/drivers/circus.cpp32
-rw-r--r--src/mame/drivers/circusc.cpp28
-rw-r--r--src/mame/drivers/cischeat.cpp88
-rw-r--r--src/mame/drivers/cit101.cpp68
-rw-r--r--src/mame/drivers/cit220.cpp8
-rw-r--r--src/mame/drivers/citycon.cpp20
-rw-r--r--src/mame/drivers/ckz80.cpp6
-rw-r--r--src/mame/drivers/clayshoo.cpp12
-rw-r--r--src/mame/drivers/clcd.cpp54
-rw-r--r--src/mame/drivers/cliffhgr.cpp10
-rw-r--r--src/mame/drivers/cloak.cpp22
-rw-r--r--src/mame/drivers/cloud9.cpp12
-rw-r--r--src/mame/drivers/clowndwn.cpp4
-rw-r--r--src/mame/drivers/clpoker.cpp16
-rw-r--r--src/mame/drivers/clshroad.cpp42
-rw-r--r--src/mame/drivers/cm1800.cpp12
-rw-r--r--src/mame/drivers/cmi.cpp146
-rw-r--r--src/mame/drivers/cmmb.cpp8
-rw-r--r--src/mame/drivers/cninja.cpp68
-rw-r--r--src/mame/drivers/cntsteer.cpp46
-rw-r--r--src/mame/drivers/cobra.cpp20
-rw-r--r--src/mame/drivers/coco12.cpp88
-rw-r--r--src/mame/drivers/coco3.cpp66
-rw-r--r--src/mame/drivers/cocoloco.cpp8
-rw-r--r--src/mame/drivers/codata.cpp36
-rw-r--r--src/mame/drivers/coinmstr.cpp30
-rw-r--r--src/mame/drivers/coinmvga.cpp10
-rw-r--r--src/mame/drivers/coleco.cpp18
-rw-r--r--src/mame/drivers/combatsc.cpp30
-rw-r--r--src/mame/drivers/comebaby.cpp6
-rw-r--r--src/mame/drivers/commando.cpp20
-rw-r--r--src/mame/drivers/compc.cpp27
-rw-r--r--src/mame/drivers/compgolf.cpp10
-rw-r--r--src/mame/drivers/compis.cpp88
-rw-r--r--src/mame/drivers/compucolor.cpp26
-rw-r--r--src/mame/drivers/comquest.cpp8
-rw-r--r--src/mame/drivers/comx35.cpp36
-rw-r--r--src/mame/drivers/concept.cpp44
-rw-r--r--src/mame/drivers/contra.cpp10
-rw-r--r--src/mame/drivers/controlid.cpp12
-rw-r--r--src/mame/drivers/coolpool.cpp40
-rw-r--r--src/mame/drivers/coolridr.cpp32
-rw-r--r--src/mame/drivers/cop01.cpp40
-rw-r--r--src/mame/drivers/cops.cpp32
-rw-r--r--src/mame/drivers/copsnrob.cpp4
-rw-r--r--src/mame/drivers/corona.cpp76
-rw-r--r--src/mame/drivers/cortex.cpp18
-rw-r--r--src/mame/drivers/cosmic.cpp32
-rw-r--r--src/mame/drivers/cosmicos.cpp28
-rw-r--r--src/mame/drivers/cp1.cpp20
-rw-r--r--src/mame/drivers/cps1.cpp48
-rw-r--r--src/mame/drivers/cps2.cpp20
-rw-r--r--src/mame/drivers/cps3.cpp12
-rw-r--r--src/mame/drivers/craft.cpp10
-rw-r--r--src/mame/drivers/crbaloon.cpp8
-rw-r--r--src/mame/drivers/crgolf.cpp46
-rw-r--r--src/mame/drivers/crimfght.cpp18
-rw-r--r--src/mame/drivers/crospang.cpp22
-rw-r--r--src/mame/drivers/crshrace.cpp18
-rw-r--r--src/mame/drivers/crvision.cpp44
-rw-r--r--src/mame/drivers/crystal.cpp22
-rw-r--r--src/mame/drivers/csplayh5.cpp18
-rw-r--r--src/mame/drivers/cswat.cpp8
-rw-r--r--src/mame/drivers/ct486.cpp90
-rw-r--r--src/mame/drivers/cubeqst.cpp58
-rw-r--r--src/mame/drivers/cubo.cpp42
-rw-r--r--src/mame/drivers/cultures.cpp8
-rw-r--r--src/mame/drivers/cupidon.cpp4
-rw-r--r--src/mame/drivers/cv1k.cpp16
-rw-r--r--src/mame/drivers/cvicny.cpp4
-rw-r--r--src/mame/drivers/cvs.cpp40
-rw-r--r--src/mame/drivers/cxgz80.cpp6
-rw-r--r--src/mame/drivers/cxhumax.cpp4
-rw-r--r--src/mame/drivers/cyberbal.cpp32
-rw-r--r--src/mame/drivers/cybertnk.cpp20
-rw-r--r--src/mame/drivers/cybiko.cpp44
-rw-r--r--src/mame/drivers/cybstorm.cpp4
-rw-r--r--src/mame/drivers/cyclemb.cpp24
-rw-r--r--src/mame/drivers/cz101.cpp14
-rw-r--r--src/mame/drivers/czk80.cpp18
-rw-r--r--src/mame/drivers/d400.cpp4
-rw-r--r--src/mame/drivers/d6800.cpp16
-rw-r--r--src/mame/drivers/d6809.cpp4
-rw-r--r--src/mame/drivers/d9final.cpp10
-rw-r--r--src/mame/drivers/dacholer.cpp38
-rw-r--r--src/mame/drivers/dai.cpp20
-rw-r--r--src/mame/drivers/dai3wksi.cpp20
-rw-r--r--src/mame/drivers/dambustr.cpp8
-rw-r--r--src/mame/drivers/darius.cpp38
-rw-r--r--src/mame/drivers/darkmist.cpp8
-rw-r--r--src/mame/drivers/darkseal.cpp12
-rw-r--r--src/mame/drivers/daruma.cpp8
-rw-r--r--src/mame/drivers/dassault.cpp20
-rw-r--r--src/mame/drivers/datum.cpp10
-rw-r--r--src/mame/drivers/dblcrown.cpp14
-rw-r--r--src/mame/drivers/dblewing.cpp20
-rw-r--r--src/mame/drivers/dbox.cpp26
-rw-r--r--src/mame/drivers/dbz.cpp12
-rw-r--r--src/mame/drivers/dccons.cpp20
-rw-r--r--src/mame/drivers/dcheese.cpp16
-rw-r--r--src/mame/drivers/dcon.cpp42
-rw-r--r--src/mame/drivers/dct11em.cpp4
-rw-r--r--src/mame/drivers/dday.cpp8
-rw-r--r--src/mame/drivers/ddayjlc.cpp16
-rw-r--r--src/mame/drivers/ddealer.cpp10
-rw-r--r--src/mame/drivers/ddenlovr.cpp430
-rw-r--r--src/mame/drivers/ddragon.cpp72
-rw-r--r--src/mame/drivers/ddragon3.cpp36
-rw-r--r--src/mame/drivers/ddribble.cpp30
-rw-r--r--src/mame/drivers/de_2.cpp42
-rw-r--r--src/mame/drivers/de_3.cpp10
-rw-r--r--src/mame/drivers/de_3b.cpp10
-rw-r--r--src/mame/drivers/deadang.cpp28
-rw-r--r--src/mame/drivers/dec0.cpp138
-rw-r--r--src/mame/drivers/dec8.cpp204
-rw-r--r--src/mame/drivers/deco156.cpp14
-rw-r--r--src/mame/drivers/deco32.cpp136
-rw-r--r--src/mame/drivers/deco_ld.cpp22
-rw-r--r--src/mame/drivers/deco_mlc.cpp18
-rw-r--r--src/mame/drivers/decocass.cpp22
-rw-r--r--src/mame/drivers/dectalk.cpp30
-rw-r--r--src/mame/drivers/decwritr.cpp22
-rw-r--r--src/mame/drivers/deniam.cpp22
-rw-r--r--src/mame/drivers/deshoros.cpp8
-rw-r--r--src/mame/drivers/destroyr.cpp6
-rw-r--r--src/mame/drivers/dfruit.cpp8
-rw-r--r--src/mame/drivers/dgn_beta.cpp54
-rw-r--r--src/mame/drivers/dgpix.cpp6
-rw-r--r--src/mame/drivers/diablo1300.cpp6
-rw-r--r--src/mame/drivers/didact.cpp42
-rw-r--r--src/mame/drivers/dietgo.cpp12
-rw-r--r--src/mame/drivers/digel804.cpp36
-rw-r--r--src/mame/drivers/digijet.cpp4
-rw-r--r--src/mame/drivers/dim68k.cpp6
-rw-r--r--src/mame/drivers/discoboy.cpp20
-rw-r--r--src/mame/drivers/divebomb.cpp34
-rw-r--r--src/mame/drivers/diverboy.cpp10
-rw-r--r--src/mame/drivers/djboy.cpp48
-rw-r--r--src/mame/drivers/djmain.cpp18
-rw-r--r--src/mame/drivers/dkong.cpp66
-rw-r--r--src/mame/drivers/dlair.cpp20
-rw-r--r--src/mame/drivers/dlair2.cpp8
-rw-r--r--src/mame/drivers/dm7000.cpp4
-rw-r--r--src/mame/drivers/dmax8000.cpp46
-rw-r--r--src/mame/drivers/dmndrby.cpp14
-rw-r--r--src/mame/drivers/dms5000.cpp6
-rw-r--r--src/mame/drivers/dms86.cpp40
-rw-r--r--src/mame/drivers/dmv.cpp82
-rw-r--r--src/mame/drivers/docastle.cpp44
-rw-r--r--src/mame/drivers/dogfgt.cpp14
-rw-r--r--src/mame/drivers/dolphunk.cpp12
-rw-r--r--src/mame/drivers/dominob.cpp10
-rw-r--r--src/mame/drivers/dooyong.cpp120
-rw-r--r--src/mame/drivers/dorachan.cpp8
-rw-r--r--src/mame/drivers/dotrikun.cpp6
-rw-r--r--src/mame/drivers/dps1.cpp24
-rw-r--r--src/mame/drivers/dragon.cpp74
-rw-r--r--src/mame/drivers/dragrace.cpp34
-rw-r--r--src/mame/drivers/dreambal.cpp6
-rw-r--r--src/mame/drivers/dreamwld.cpp14
-rw-r--r--src/mame/drivers/drgnmst.cpp22
-rw-r--r--src/mame/drivers/dribling.cpp20
-rw-r--r--src/mame/drivers/drmicro.cpp18
-rw-r--r--src/mame/drivers/drtomy.cpp6
-rw-r--r--src/mame/drivers/drw80pkr.cpp28
-rw-r--r--src/mame/drivers/dsb46.cpp30
-rw-r--r--src/mame/drivers/dual68.cpp10
-rw-r--r--src/mame/drivers/duet16.cpp72
-rw-r--r--src/mame/drivers/dunhuang.cpp16
-rw-r--r--src/mame/drivers/dvk_kcgd.cpp8
-rw-r--r--src/mame/drivers/dvk_ksm.cpp34
-rw-r--r--src/mame/drivers/dwarfd.cpp24
-rw-r--r--src/mame/drivers/dynadice.cpp14
-rw-r--r--src/mame/drivers/dynamoah.cpp18
-rw-r--r--src/mame/drivers/dynax.cpp328
-rw-r--r--src/mame/drivers/dynduke.cpp30
-rw-r--r--src/mame/drivers/e100.cpp22
-rw-r--r--src/mame/drivers/eacc.cpp18
-rw-r--r--src/mame/drivers/ec184x.cpp63
-rw-r--r--src/mame/drivers/ec65.cpp8
-rw-r--r--src/mame/drivers/ecoinf1.cpp6
-rw-r--r--src/mame/drivers/ecoinf2.cpp44
-rw-r--r--src/mame/drivers/ecoinf3.cpp112
-rw-r--r--src/mame/drivers/ecoinfr.cpp14
-rw-r--r--src/mame/drivers/egghunt.cpp12
-rw-r--r--src/mame/drivers/einstein.cpp70
-rw-r--r--src/mame/drivers/electron.cpp12
-rw-r--r--src/mame/drivers/elekscmp.cpp4
-rw-r--r--src/mame/drivers/elektronmono.cpp4
-rw-r--r--src/mame/drivers/elf.cpp26
-rw-r--r--src/mame/drivers/elwro800.cpp24
-rw-r--r--src/mame/drivers/embargo.cpp8
-rw-r--r--src/mame/drivers/enigma2.cpp34
-rw-r--r--src/mame/drivers/enmirage.cpp12
-rw-r--r--src/mame/drivers/eolith.cpp32
-rw-r--r--src/mame/drivers/eolith16.cpp4
-rw-r--r--src/mame/drivers/ep64.cpp14
-rw-r--r--src/mame/drivers/epos.cpp28
-rw-r--r--src/mame/drivers/eprom.cpp22
-rw-r--r--src/mame/drivers/equites.cpp64
-rw-r--r--src/mame/drivers/ertictac.cpp22
-rw-r--r--src/mame/drivers/esd16.cpp38
-rw-r--r--src/mame/drivers/esh.cpp14
-rw-r--r--src/mame/drivers/espial.cpp18
-rw-r--r--src/mame/drivers/esprit.cpp8
-rw-r--r--src/mame/drivers/esq1.cpp24
-rw-r--r--src/mame/drivers/esq5505.cpp88
-rw-r--r--src/mame/drivers/esqasr.cpp28
-rw-r--r--src/mame/drivers/esqkt.cpp28
-rw-r--r--src/mame/drivers/esqmr.cpp12
-rw-r--r--src/mame/drivers/esripsys.cpp32
-rw-r--r--src/mame/drivers/et3400.cpp26
-rw-r--r--src/mame/drivers/eti660.cpp22
-rw-r--r--src/mame/drivers/ettrivia.cpp14
-rw-r--r--src/mame/drivers/eurocom2.cpp48
-rw-r--r--src/mame/drivers/europc.cpp22
-rw-r--r--src/mame/drivers/eva.cpp30
-rw-r--r--src/mame/drivers/excali64.cpp44
-rw-r--r--src/mame/drivers/exedexes.cpp18
-rw-r--r--src/mame/drivers/exelv.cpp48
-rw-r--r--src/mame/drivers/exerion.cpp16
-rw-r--r--src/mame/drivers/exidy.cpp36
-rw-r--r--src/mame/drivers/exidy440.cpp22
-rw-r--r--src/mame/drivers/exp85.cpp18
-rw-r--r--src/mame/drivers/expro02.cpp34
-rw-r--r--src/mame/drivers/exprraid.cpp20
-rw-r--r--src/mame/drivers/exterm.cpp20
-rw-r--r--src/mame/drivers/extrema.cpp6
-rw-r--r--src/mame/drivers/exzisus.cpp22
-rw-r--r--src/mame/drivers/ez2d.cpp4
-rw-r--r--src/mame/drivers/f-32.cpp16
-rw-r--r--src/mame/drivers/f1gp.cpp48
-rw-r--r--src/mame/drivers/famibox.cpp4
-rw-r--r--src/mame/drivers/fantland.cpp68
-rw-r--r--src/mame/drivers/fanucs15.cpp16
-rw-r--r--src/mame/drivers/fanucspmg.cpp40
-rw-r--r--src/mame/drivers/fastfred.cpp42
-rw-r--r--src/mame/drivers/fastinvaders.cpp34
-rw-r--r--src/mame/drivers/fastlane.cpp12
-rw-r--r--src/mame/drivers/fb01.cpp18
-rw-r--r--src/mame/drivers/fc100.cpp24
-rw-r--r--src/mame/drivers/fccpu30.cpp90
-rw-r--r--src/mame/drivers/fcombat.cpp14
-rw-r--r--src/mame/drivers/fcrash.cpp172
-rw-r--r--src/mame/drivers/feversoc.cpp6
-rw-r--r--src/mame/drivers/fgoal.cpp4
-rw-r--r--src/mame/drivers/fidel6502.cpp174
-rw-r--r--src/mame/drivers/fidel68k.cpp48
-rw-r--r--src/mame/drivers/fidelmcs48.cpp16
-rw-r--r--src/mame/drivers/fidelz80.cpp106
-rw-r--r--src/mame/drivers/finalizr.cpp20
-rw-r--r--src/mame/drivers/fireball.cpp16
-rw-r--r--src/mame/drivers/firebeat.cpp48
-rw-r--r--src/mame/drivers/firefox.cpp52
-rw-r--r--src/mame/drivers/firetrap.cpp38
-rw-r--r--src/mame/drivers/firetrk.cpp18
-rw-r--r--src/mame/drivers/fitfight.cpp32
-rw-r--r--src/mame/drivers/fk1.cpp46
-rw-r--r--src/mame/drivers/flicker.cpp6
-rw-r--r--src/mame/drivers/flipjack.cpp24
-rw-r--r--src/mame/drivers/flkatck.cpp14
-rw-r--r--src/mame/drivers/flower.cpp20
-rw-r--r--src/mame/drivers/flstory.cpp104
-rw-r--r--src/mame/drivers/flyball.cpp6
-rw-r--r--src/mame/drivers/fm7.cpp146
-rw-r--r--src/mame/drivers/fmtowns.cpp138
-rw-r--r--src/mame/drivers/fontwriter.cpp6
-rw-r--r--src/mame/drivers/foodf.cpp28
-rw-r--r--src/mame/drivers/force68k.cpp74
-rw-r--r--src/mame/drivers/forte2.cpp12
-rw-r--r--src/mame/drivers/fortecar.cpp16
-rw-r--r--src/mame/drivers/fp1100.cpp30
-rw-r--r--src/mame/drivers/fp200.cpp12
-rw-r--r--src/mame/drivers/fp6000.cpp6
-rw-r--r--src/mame/drivers/freekick.cpp104
-rw-r--r--src/mame/drivers/fresh.cpp6
-rw-r--r--src/mame/drivers/fromanc2.cpp58
-rw-r--r--src/mame/drivers/fromance.cpp60
-rw-r--r--src/mame/drivers/fruitpc.cpp35
-rw-r--r--src/mame/drivers/ft68m.cpp36
-rw-r--r--src/mame/drivers/funkball.cpp10
-rw-r--r--src/mame/drivers/funkybee.cpp18
-rw-r--r--src/mame/drivers/funkyjet.cpp10
-rw-r--r--src/mame/drivers/funtech.cpp10
-rw-r--r--src/mame/drivers/funworld.cpp80
-rw-r--r--src/mame/drivers/funybubl.cpp12
-rw-r--r--src/mame/drivers/fuukifg2.cpp14
-rw-r--r--src/mame/drivers/fuukifg3.cpp14
-rw-r--r--src/mame/drivers/g627.cpp14
-rw-r--r--src/mame/drivers/gaelco.cpp54
-rw-r--r--src/mame/drivers/gaelco2.cpp108
-rw-r--r--src/mame/drivers/gaelco3d.cpp72
-rw-r--r--src/mame/drivers/gaelcopc.cpp4
-rw-r--r--src/mame/drivers/gaiden.cpp60
-rw-r--r--src/mame/drivers/gal3.cpp34
-rw-r--r--src/mame/drivers/galaga.cpp214
-rw-r--r--src/mame/drivers/galastrm.cpp14
-rw-r--r--src/mame/drivers/galaxi.cpp12
-rw-r--r--src/mame/drivers/galaxia.cpp28
-rw-r--r--src/mame/drivers/galaxian.cpp302
-rw-r--r--src/mame/drivers/galaxold.cpp134
-rw-r--r--src/mame/drivers/galaxy.cpp20
-rw-r--r--src/mame/drivers/galeb.cpp6
-rw-r--r--src/mame/drivers/galgame.cpp8
-rw-r--r--src/mame/drivers/galgames.cpp20
-rw-r--r--src/mame/drivers/galivan.cpp52
-rw-r--r--src/mame/drivers/galpani2.cpp8
-rw-r--r--src/mame/drivers/galpani3.cpp6
-rw-r--r--src/mame/drivers/galpanic.cpp10
-rw-r--r--src/mame/drivers/galspnbl.cpp12
-rw-r--r--src/mame/drivers/gamate.cpp6
-rw-r--r--src/mame/drivers/gambl186.cpp8
-rw-r--r--src/mame/drivers/gamecom.cpp16
-rw-r--r--src/mame/drivers/gamecstl.cpp10
-rw-r--r--src/mame/drivers/gamecube.cpp4
-rw-r--r--src/mame/drivers/gameking.cpp6
-rw-r--r--src/mame/drivers/gameplan.cpp48
-rw-r--r--src/mame/drivers/gamepock.cpp16
-rw-r--r--src/mame/drivers/gammagic.cpp8
-rw-r--r--src/mame/drivers/gamtor.cpp6
-rw-r--r--src/mame/drivers/gaplus.cpp32
-rw-r--r--src/mame/drivers/gatron.cpp10
-rw-r--r--src/mame/drivers/gauntlet.cpp26
-rw-r--r--src/mame/drivers/gb.cpp36
-rw-r--r--src/mame/drivers/gba.cpp24
-rw-r--r--src/mame/drivers/gberet.cpp20
-rw-r--r--src/mame/drivers/gcpinbal.cpp12
-rw-r--r--src/mame/drivers/gei.cpp60
-rw-r--r--src/mame/drivers/geneve.cpp44
-rw-r--r--src/mame/drivers/geniusiq.cpp6
-rw-r--r--src/mame/drivers/genpc.cpp20
-rw-r--r--src/mame/drivers/ggconnie.cpp40
-rw-r--r--src/mame/drivers/ghosteo.cpp44
-rw-r--r--src/mame/drivers/giclassic.cpp12
-rw-r--r--src/mame/drivers/gijoe.cpp10
-rw-r--r--src/mame/drivers/gimix.cpp68
-rw-r--r--src/mame/drivers/ginganin.cpp16
-rw-r--r--src/mame/drivers/gizmondo.cpp8
-rw-r--r--src/mame/drivers/gkigt.cpp18
-rw-r--r--src/mame/drivers/gladiatr.cpp96
-rw-r--r--src/mame/drivers/glasgow.cpp14
-rw-r--r--src/mame/drivers/glass.cpp14
-rw-r--r--src/mame/drivers/globalfr.cpp4
-rw-r--r--src/mame/drivers/globalvr.cpp4
-rw-r--r--src/mame/drivers/gluck2.cpp8
-rw-r--r--src/mame/drivers/gmaster.cpp24
-rw-r--r--src/mame/drivers/gng.cpp30
-rw-r--r--src/mame/drivers/go2000.cpp14
-rw-r--r--src/mame/drivers/goal92.cpp22
-rw-r--r--src/mame/drivers/goindol.cpp14
-rw-r--r--src/mame/drivers/gokidetor.cpp24
-rw-r--r--src/mame/drivers/goldngam.cpp14
-rw-r--r--src/mame/drivers/goldnpkr.cpp148
-rw-r--r--src/mame/drivers/goldstar.cpp270
-rw-r--r--src/mame/drivers/gomoku.cpp12
-rw-r--r--src/mame/drivers/good.cpp6
-rw-r--r--src/mame/drivers/goodejan.cpp28
-rw-r--r--src/mame/drivers/gotcha.cpp8
-rw-r--r--src/mame/drivers/gottlieb.cpp24
-rw-r--r--src/mame/drivers/gotya.cpp8
-rw-r--r--src/mame/drivers/goupil.cpp56
-rw-r--r--src/mame/drivers/gp2x.cpp4
-rw-r--r--src/mame/drivers/gp32.cpp8
-rw-r--r--src/mame/drivers/gp_1.cpp20
-rw-r--r--src/mame/drivers/gp_2.cpp12
-rw-r--r--src/mame/drivers/gpworld.cpp10
-rw-r--r--src/mame/drivers/gradius3.cpp18
-rw-r--r--src/mame/drivers/grchamp.cpp38
-rw-r--r--src/mame/drivers/grfd2301.cpp6
-rw-r--r--src/mame/drivers/gridcomp.cpp22
-rw-r--r--src/mame/drivers/gridlee.cpp12
-rw-r--r--src/mame/drivers/groundfx.cpp18
-rw-r--r--src/mame/drivers/gstream.cpp16
-rw-r--r--src/mame/drivers/gstriker.cpp34
-rw-r--r--src/mame/drivers/gsword.cpp72
-rw-r--r--src/mame/drivers/gticlub.cpp34
-rw-r--r--src/mame/drivers/gts1.cpp30
-rw-r--r--src/mame/drivers/gts3.cpp28
-rw-r--r--src/mame/drivers/gts3a.cpp32
-rw-r--r--src/mame/drivers/gts80.cpp36
-rw-r--r--src/mame/drivers/gts80a.cpp40
-rw-r--r--src/mame/drivers/gts80b.cpp34
-rw-r--r--src/mame/drivers/guab.cpp42
-rw-r--r--src/mame/drivers/gumbo.cpp14
-rw-r--r--src/mame/drivers/gunbustr.cpp14
-rw-r--r--src/mame/drivers/gundealr.cpp12
-rw-r--r--src/mame/drivers/gunpey.cpp8
-rw-r--r--src/mame/drivers/gunsmoke.cpp16
-rw-r--r--src/mame/drivers/gyruss.cpp52
-rw-r--r--src/mame/drivers/h19.cpp14
-rw-r--r--src/mame/drivers/h8.cpp18
-rw-r--r--src/mame/drivers/h89.cpp12
-rw-r--r--src/mame/drivers/halleys.cpp24
-rw-r--r--src/mame/drivers/hanaawas.cpp12
-rw-r--r--src/mame/drivers/hankin.cpp46
-rw-r--r--src/mame/drivers/hapyfish.cpp4
-rw-r--r--src/mame/drivers/harddriv.cpp112
-rw-r--r--src/mame/drivers/harriet.cpp10
-rw-r--r--src/mame/drivers/hazelgr.cpp20
-rw-r--r--src/mame/drivers/hazeltin.cpp18
-rw-r--r--src/mame/drivers/hcastle.cpp16
-rw-r--r--src/mame/drivers/headonb.cpp8
-rw-r--r--src/mame/drivers/hec2hrp.cpp78
-rw-r--r--src/mame/drivers/hexion.cpp14
-rw-r--r--src/mame/drivers/hh_amis2k.cpp10
-rw-r--r--src/mame/drivers/hh_cop400.cpp170
-rw-r--r--src/mame/drivers/hh_hmcs40.cpp532
-rw-r--r--src/mame/drivers/hh_melps4.cpp34
-rw-r--r--src/mame/drivers/hh_pic16.cpp124
-rw-r--r--src/mame/drivers/hh_sm510.cpp774
-rw-r--r--src/mame/drivers/hh_tms1k.cpp700
-rw-r--r--src/mame/drivers/hh_ucom4.cpp368
-rw-r--r--src/mame/drivers/hideseek.cpp4
-rw-r--r--src/mame/drivers/higemaru.cpp8
-rw-r--r--src/mame/drivers/highvdeo.cpp72
-rw-r--r--src/mame/drivers/hikaru.cpp12
-rw-r--r--src/mame/drivers/himesiki.cpp18
-rw-r--r--src/mame/drivers/hitme.cpp8
-rw-r--r--src/mame/drivers/hitpoker.cpp10
-rw-r--r--src/mame/drivers/hk68v10.cpp16
-rw-r--r--src/mame/drivers/hnayayoi.cpp40
-rw-r--r--src/mame/drivers/hng64.cpp8
-rw-r--r--src/mame/drivers/holeland.cpp38
-rw-r--r--src/mame/drivers/homedata.cpp96
-rw-r--r--src/mame/drivers/homelab.cpp26
-rw-r--r--src/mame/drivers/homerun.cpp28
-rw-r--r--src/mame/drivers/homez80.cpp8
-rw-r--r--src/mame/drivers/horizon.cpp34
-rw-r--r--src/mame/drivers/hornet.cpp32
-rw-r--r--src/mame/drivers/hotblock.cpp8
-rw-r--r--src/mame/drivers/hotstuff.cpp4
-rw-r--r--src/mame/drivers/hp16500.cpp28
-rw-r--r--src/mame/drivers/hp2620.cpp6
-rw-r--r--src/mame/drivers/hp2640.cpp18
-rw-r--r--src/mame/drivers/hp48.cpp24
-rw-r--r--src/mame/drivers/hp49gp.cpp8
-rw-r--r--src/mame/drivers/hp64k.cpp84
-rw-r--r--src/mame/drivers/hp700.cpp6
-rw-r--r--src/mame/drivers/hp80.cpp28
-rw-r--r--src/mame/drivers/hp9845.cpp72
-rw-r--r--src/mame/drivers/hp9k.cpp4
-rw-r--r--src/mame/drivers/hp9k_3xx.cpp182
-rw-r--r--src/mame/drivers/hp_ipc.cpp56
-rw-r--r--src/mame/drivers/hprot1.cpp26
-rw-r--r--src/mame/drivers/hpz80unk.cpp24
-rw-r--r--src/mame/drivers/ht6000.cpp8
-rw-r--r--src/mame/drivers/ht68k.cpp16
-rw-r--r--src/mame/drivers/huebler.cpp14
-rw-r--r--src/mame/drivers/hunter2.cpp28
-rw-r--r--src/mame/drivers/hvyunit.cpp48
-rw-r--r--src/mame/drivers/hx20.cpp28
-rw-r--r--src/mame/drivers/hyhoo.cpp12
-rw-r--r--src/mame/drivers/hyperscan.cpp6
-rw-r--r--src/mame/drivers/hyperspt.cpp50
-rw-r--r--src/mame/drivers/hyprduel.cpp22
-rw-r--r--src/mame/drivers/i7000.cpp18
-rw-r--r--src/mame/drivers/ibm3153.cpp6
-rw-r--r--src/mame/drivers/ibm6580.cpp82
-rw-r--r--src/mame/drivers/ibmpc.cpp42
-rw-r--r--src/mame/drivers/ibmpcjr.cpp54
-rw-r--r--src/mame/drivers/icatel.cpp16
-rw-r--r--src/mame/drivers/ice_bozopail.cpp4
-rw-r--r--src/mame/drivers/ice_tbd.cpp6
-rw-r--r--src/mame/drivers/icecold.cpp28
-rw-r--r--src/mame/drivers/ichiban.cpp10
-rw-r--r--src/mame/drivers/idsa.cpp38
-rw-r--r--src/mame/drivers/if800.cpp6
-rw-r--r--src/mame/drivers/igs009.cpp20
-rw-r--r--src/mame/drivers/igs011.cpp62
-rw-r--r--src/mame/drivers/igs017.cpp56
-rw-r--r--src/mame/drivers/igs_fear.cpp6
-rw-r--r--src/mame/drivers/igs_m027.cpp12
-rw-r--r--src/mame/drivers/igs_m036.cpp8
-rw-r--r--src/mame/drivers/igspc.cpp6
-rw-r--r--src/mame/drivers/igspoker.cpp18
-rw-r--r--src/mame/drivers/ikki.cpp14
-rw-r--r--src/mame/drivers/imds.cpp6
-rw-r--r--src/mame/drivers/imds2.cpp118
-rw-r--r--src/mame/drivers/imolagp.cpp16
-rw-r--r--src/mame/drivers/imsai.cpp10
-rw-r--r--src/mame/drivers/inder.cpp120
-rw-r--r--src/mame/drivers/inderp.cpp6
-rw-r--r--src/mame/drivers/indiana.cpp19
-rw-r--r--src/mame/drivers/indigo.cpp10
-rw-r--r--src/mame/drivers/indy_indigo2.cpp16
-rw-r--r--src/mame/drivers/instantm.cpp14
-rw-r--r--src/mame/drivers/instruct.cpp14
-rw-r--r--src/mame/drivers/inteladv.cpp4
-rw-r--r--src/mame/drivers/intellec4.cpp66
-rw-r--r--src/mame/drivers/interact.cpp12
-rw-r--r--src/mame/drivers/interpro.cpp100
-rw-r--r--src/mame/drivers/intrscti.cpp16
-rw-r--r--src/mame/drivers/intv.cpp36
-rw-r--r--src/mame/drivers/inufuku.cpp16
-rw-r--r--src/mame/drivers/invqix.cpp10
-rw-r--r--src/mame/drivers/ipc.cpp44
-rw-r--r--src/mame/drivers/ipds.cpp6
-rw-r--r--src/mame/drivers/iq151.cpp70
-rw-r--r--src/mame/drivers/iqblock.cpp10
-rw-r--r--src/mame/drivers/iqunlim.cpp4
-rw-r--r--src/mame/drivers/iris3130.cpp14
-rw-r--r--src/mame/drivers/irisha.cpp26
-rw-r--r--src/mame/drivers/irobot.cpp12
-rw-r--r--src/mame/drivers/ironhors.cpp30
-rw-r--r--src/mame/drivers/isbc.cpp200
-rw-r--r--src/mame/drivers/isbc8010.cpp40
-rw-r--r--src/mame/drivers/isbc8030.cpp26
-rw-r--r--src/mame/drivers/iskr103x.cpp20
-rw-r--r--src/mame/drivers/istellar.cpp22
-rw-r--r--src/mame/drivers/istrebiteli.cpp14
-rw-r--r--src/mame/drivers/iteagle.cpp8
-rw-r--r--src/mame/drivers/itech32.cpp48
-rw-r--r--src/mame/drivers/itech8.cpp74
-rw-r--r--src/mame/drivers/itgambl2.cpp6
-rw-r--r--src/mame/drivers/itgambl3.cpp4
-rw-r--r--src/mame/drivers/itgamble.cpp12
-rw-r--r--src/mame/drivers/itt3030.cpp24
-rw-r--r--src/mame/drivers/jack.cpp40
-rw-r--r--src/mame/drivers/jackal.cpp10
-rw-r--r--src/mame/drivers/jackie.cpp12
-rw-r--r--src/mame/drivers/jackpool.cpp14
-rw-r--r--src/mame/drivers/jade.cpp24
-rw-r--r--src/mame/drivers/jaguar.cpp64
-rw-r--r--src/mame/drivers/jailbrek.cpp12
-rw-r--r--src/mame/drivers/jalmah.cpp10
-rw-r--r--src/mame/drivers/jangou.cpp52
-rw-r--r--src/mame/drivers/jankenmn.cpp16
-rw-r--r--src/mame/drivers/jantotsu.cpp14
-rw-r--r--src/mame/drivers/jchan.cpp10
-rw-r--r--src/mame/drivers/jclub2.cpp20
-rw-r--r--src/mame/drivers/jedi.cpp14
-rw-r--r--src/mame/drivers/jeutel.cpp44
-rw-r--r--src/mame/drivers/joctronic.cpp70
-rw-r--r--src/mame/drivers/jokrwild.cpp8
-rw-r--r--src/mame/drivers/jollyjgr.cpp12
-rw-r--r--src/mame/drivers/jongkyo.cpp16
-rw-r--r--src/mame/drivers/jonos.cpp4
-rw-r--r--src/mame/drivers/joystand.cpp14
-rw-r--r--src/mame/drivers/jp.cpp40
-rw-r--r--src/mame/drivers/jpmimpct.cpp38
-rw-r--r--src/mame/drivers/jpmmps.cpp10
-rw-r--r--src/mame/drivers/jpms80.cpp10
-rw-r--r--src/mame/drivers/jpmsys5.cpp144
-rw-r--r--src/mame/drivers/jpmsys7.cpp4
-rw-r--r--src/mame/drivers/jr100.cpp16
-rw-r--r--src/mame/drivers/jr200.cpp8
-rw-r--r--src/mame/drivers/jrpacman.cpp28
-rw-r--r--src/mame/drivers/jtc.cpp26
-rw-r--r--src/mame/drivers/jubilee.cpp2
-rw-r--r--src/mame/drivers/juicebox.cpp12
-rw-r--r--src/mame/drivers/jungleyo.cpp6
-rw-r--r--src/mame/drivers/junior.cpp12
-rw-r--r--src/mame/drivers/junofrst.cpp95
-rw-r--r--src/mame/drivers/jupace.cpp22
-rw-r--r--src/mame/drivers/jupiter.cpp30
-rw-r--r--src/mame/drivers/jvh.cpp8
-rw-r--r--src/mame/drivers/k1003.cpp6
-rw-r--r--src/mame/drivers/k28.cpp14
-rw-r--r--src/mame/drivers/k8915.cpp26
-rw-r--r--src/mame/drivers/kaneko16.cpp74
-rw-r--r--src/mame/drivers/kangaroo.cpp18
-rw-r--r--src/mame/drivers/karnov.cpp46
-rw-r--r--src/mame/drivers/kas89.cpp14
-rw-r--r--src/mame/drivers/kaypro.cpp108
-rw-r--r--src/mame/drivers/kc.cpp56
-rw-r--r--src/mame/drivers/kchamp.cpp62
-rw-r--r--src/mame/drivers/kdt6.cpp94
-rw-r--r--src/mame/drivers/kenseim.cpp22
-rw-r--r--src/mame/drivers/kickgoal.cpp18
-rw-r--r--src/mame/drivers/kim1.cpp12
-rw-r--r--src/mame/drivers/kingdrby.cpp62
-rw-r--r--src/mame/drivers/kingobox.cpp52
-rw-r--r--src/mame/drivers/kingpin.cpp18
-rw-r--r--src/mame/drivers/kinst.cpp6
-rw-r--r--src/mame/drivers/kissproto.cpp4
-rw-r--r--src/mame/drivers/klax.cpp18
-rw-r--r--src/mame/drivers/kncljoe.cpp24
-rw-r--r--src/mame/drivers/koftball.cpp6
-rw-r--r--src/mame/drivers/koikoi.cpp12
-rw-r--r--src/mame/drivers/konamigq.cpp18
-rw-r--r--src/mame/drivers/konamigv.cpp22
-rw-r--r--src/mame/drivers/konamigx.cpp32
-rw-r--r--src/mame/drivers/konamim2.cpp18
-rw-r--r--src/mame/drivers/konblands.cpp16
-rw-r--r--src/mame/drivers/konendev.cpp10
-rw-r--r--src/mame/drivers/konin.cpp36
-rw-r--r--src/mame/drivers/konmedal.cpp16
-rw-r--r--src/mame/drivers/konmedal68k.cpp4
-rw-r--r--src/mame/drivers/kontest.cpp12
-rw-r--r--src/mame/drivers/kopunch.cpp22
-rw-r--r--src/mame/drivers/kramermc.cpp12
-rw-r--r--src/mame/drivers/kron.cpp8
-rw-r--r--src/mame/drivers/krz2000.cpp6
-rw-r--r--src/mame/drivers/ksayakyu.cpp24
-rw-r--r--src/mame/drivers/ksys573.cpp104
-rw-r--r--src/mame/drivers/kungfur.cpp24
-rw-r--r--src/mame/drivers/kurukuru.cpp38
-rw-r--r--src/mame/drivers/kyocera.cpp122
-rw-r--r--src/mame/drivers/kyugo.cpp52
-rw-r--r--src/mame/drivers/labyrunr.cpp12
-rw-r--r--src/mame/drivers/ladybug.cpp40
-rw-r--r--src/mame/drivers/ladyfrog.cpp22
-rw-r--r--src/mame/drivers/laser3k.cpp14
-rw-r--r--src/mame/drivers/laserbas.cpp30
-rw-r--r--src/mame/drivers/laserbat.cpp14
-rw-r--r--src/mame/drivers/lasso.cpp52
-rw-r--r--src/mame/drivers/lastbank.cpp18
-rw-r--r--src/mame/drivers/lastduel.cpp32
-rw-r--r--src/mame/drivers/lastfght.cpp6
-rw-r--r--src/mame/drivers/laz_aftrshok.cpp8
-rw-r--r--src/mame/drivers/laz_awetoss.cpp8
-rw-r--r--src/mame/drivers/laz_ribrac.cpp6
-rw-r--r--src/mame/drivers/lazercmd.cpp34
-rw-r--r--src/mame/drivers/lb186.cpp30
-rw-r--r--src/mame/drivers/lbeach.cpp4
-rw-r--r--src/mame/drivers/lc80.cpp48
-rw-r--r--src/mame/drivers/lckydraw.cpp4
-rw-r--r--src/mame/drivers/lcmate2.cpp8
-rw-r--r--src/mame/drivers/ldplayer.cpp4
-rw-r--r--src/mame/drivers/leapster.cpp6
-rw-r--r--src/mame/drivers/legionna.cpp158
-rw-r--r--src/mame/drivers/leland.cpp78
-rw-r--r--src/mame/drivers/lemmings.cpp12
-rw-r--r--src/mame/drivers/lethal.cpp10
-rw-r--r--src/mame/drivers/lethalj.cpp6
-rw-r--r--src/mame/drivers/lft.cpp6
-rw-r--r--src/mame/drivers/lg-dvd.cpp4
-rw-r--r--src/mame/drivers/lgp.cpp18
-rw-r--r--src/mame/drivers/liberate.cpp56
-rw-r--r--src/mame/drivers/liberatr.cpp20
-rw-r--r--src/mame/drivers/limenko.cpp40
-rw-r--r--src/mame/drivers/lindbergh.cpp2
-rw-r--r--src/mame/drivers/lisa.cpp46
-rw-r--r--src/mame/drivers/littlerb.cpp8
-rw-r--r--src/mame/drivers/lkage.cpp36
-rw-r--r--src/mame/drivers/llc.cpp36
-rw-r--r--src/mame/drivers/lockon.cpp26
-rw-r--r--src/mame/drivers/lola8a.cpp18
-rw-r--r--src/mame/drivers/looping.cpp46
-rw-r--r--src/mame/drivers/lordgun.cpp54
-rw-r--r--src/mame/drivers/lsasquad.cpp46
-rw-r--r--src/mame/drivers/ltcasino.cpp8
-rw-r--r--src/mame/drivers/ltd.cpp14
-rw-r--r--src/mame/drivers/luckgrln.cpp14
-rw-r--r--src/mame/drivers/lucky74.cpp26
-rw-r--r--src/mame/drivers/luckybal.cpp16
-rw-r--r--src/mame/drivers/lvcards.cpp18
-rw-r--r--src/mame/drivers/lviv.cpp32
-rw-r--r--src/mame/drivers/lwings.cpp62
-rw-r--r--src/mame/drivers/lwriter.cpp48
-rw-r--r--src/mame/drivers/lynx.cpp8
-rw-r--r--src/mame/drivers/m10.cpp30
-rw-r--r--src/mame/drivers/m107.cpp32
-rw-r--r--src/mame/drivers/m14.cpp12
-rw-r--r--src/mame/drivers/m20.cpp38
-rw-r--r--src/mame/drivers/m24.cpp39
-rw-r--r--src/mame/drivers/m3.cpp6
-rw-r--r--src/mame/drivers/m5.cpp38
-rw-r--r--src/mame/drivers/m52.cpp12
-rw-r--r--src/mame/drivers/m57.cpp6
-rw-r--r--src/mame/drivers/m58.cpp6
-rw-r--r--src/mame/drivers/m62.cpp72
-rw-r--r--src/mame/drivers/m63.cpp64
-rw-r--r--src/mame/drivers/m6805evs.cpp4
-rw-r--r--src/mame/drivers/m68705prg.cpp16
-rw-r--r--src/mame/drivers/m72.cpp158
-rw-r--r--src/mame/drivers/m79152pc.cpp36
-rw-r--r--src/mame/drivers/m79amb.cpp8
-rw-r--r--src/mame/drivers/m90.cpp76
-rw-r--r--src/mame/drivers/m92.cpp48
-rw-r--r--src/mame/drivers/mac.cpp580
-rw-r--r--src/mame/drivers/mac128.cpp30
-rw-r--r--src/mame/drivers/macp.cpp10
-rw-r--r--src/mame/drivers/macpci.cpp28
-rw-r--r--src/mame/drivers/macrossp.cpp16
-rw-r--r--src/mame/drivers/macs.cpp8
-rw-r--r--src/mame/drivers/madalien.cpp16
-rw-r--r--src/mame/drivers/madmotor.cpp12
-rw-r--r--src/mame/drivers/magic10.cpp24
-rw-r--r--src/mame/drivers/magicard.cpp14
-rw-r--r--src/mame/drivers/magicfly.cpp6
-rw-r--r--src/mame/drivers/magictg.cpp16
-rw-r--r--src/mame/drivers/magmax.cpp22
-rw-r--r--src/mame/drivers/magnum.cpp10
-rw-r--r--src/mame/drivers/magreel.cpp4
-rw-r--r--src/mame/drivers/magtouch.cpp39
-rw-r--r--src/mame/drivers/mainevt.cpp34
-rw-r--r--src/mame/drivers/mainsnk.cpp18
-rw-r--r--src/mame/drivers/majorpkr.cpp8
-rw-r--r--src/mame/drivers/malzak.cpp20
-rw-r--r--src/mame/drivers/manohman.cpp8
-rw-r--r--src/mame/drivers/mappy.cpp108
-rw-r--r--src/mame/drivers/marineb.cpp36
-rw-r--r--src/mame/drivers/marinedt.cpp10
-rw-r--r--src/mame/drivers/mario.cpp32
-rw-r--r--src/mame/drivers/markham.cpp16
-rw-r--r--src/mame/drivers/marywu.cpp24
-rw-r--r--src/mame/drivers/mastboy.cpp22
-rw-r--r--src/mame/drivers/mastboyo.cpp10
-rw-r--r--src/mame/drivers/matmania.cpp34
-rw-r--r--src/mame/drivers/maxaflex.cpp26
-rw-r--r--src/mame/drivers/maygay1b.cpp78
-rw-r--r--src/mame/drivers/maygayep.cpp6
-rw-r--r--src/mame/drivers/maygaysw.cpp4
-rw-r--r--src/mame/drivers/maygayv1.cpp40
-rw-r--r--src/mame/drivers/mazerbla.cpp66
-rw-r--r--src/mame/drivers/mbc200.cpp24
-rw-r--r--src/mame/drivers/mbc55x.cpp36
-rw-r--r--src/mame/drivers/mbee.cpp94
-rw-r--r--src/mame/drivers/mc10.cpp22
-rw-r--r--src/mame/drivers/mc1000.cpp22
-rw-r--r--src/mame/drivers/mc1502.cpp78
-rw-r--r--src/mame/drivers/mc8020.cpp18
-rw-r--r--src/mame/drivers/mc8030.cpp38
-rw-r--r--src/mame/drivers/mcatadv.cpp24
-rw-r--r--src/mame/drivers/mcb216.cpp28
-rw-r--r--src/mame/drivers/mccpm.cpp22
-rw-r--r--src/mame/drivers/mcr.cpp42
-rw-r--r--src/mame/drivers/mcr3.cpp22
-rw-r--r--src/mame/drivers/mcr68.cpp26
-rw-r--r--src/mame/drivers/meadows.cpp42
-rw-r--r--src/mame/drivers/mediagx.cpp14
-rw-r--r--src/mame/drivers/megadriv.cpp30
-rw-r--r--src/mame/drivers/megadriv_acbl.cpp4
-rw-r--r--src/mame/drivers/megadriv_rad.cpp12
-rw-r--r--src/mame/drivers/megaphx.cpp22
-rw-r--r--src/mame/drivers/megaplay.cpp24
-rw-r--r--src/mame/drivers/megasys1.cpp72
-rw-r--r--src/mame/drivers/megatech.cpp20
-rw-r--r--src/mame/drivers/megazone.cpp44
-rw-r--r--src/mame/drivers/meijinsn.cpp16
-rw-r--r--src/mame/drivers/mekd2.cpp20
-rw-r--r--src/mame/drivers/mephisto.cpp22
-rw-r--r--src/mame/drivers/mephisto_montec.cpp40
-rw-r--r--src/mame/drivers/mephistp.cpp38
-rw-r--r--src/mame/drivers/merit.cpp76
-rw-r--r--src/mame/drivers/meritm.cpp54
-rw-r--r--src/mame/drivers/mermaid.cpp36
-rw-r--r--src/mame/drivers/mes.cpp6
-rw-r--r--src/mame/drivers/metalmx.cpp24
-rw-r--r--src/mame/drivers/metlclsh.cpp12
-rw-r--r--src/mame/drivers/metlfrzr.cpp8
-rw-r--r--src/mame/drivers/metro.cpp300
-rw-r--r--src/mame/drivers/mexico86.cpp30
-rw-r--r--src/mame/drivers/meyc8080.cpp6
-rw-r--r--src/mame/drivers/meyc8088.cpp20
-rw-r--r--src/mame/drivers/mfabfz.cpp36
-rw-r--r--src/mame/drivers/mgames.cpp6
-rw-r--r--src/mame/drivers/mgavegas.cpp16
-rw-r--r--src/mame/drivers/mgolf.cpp4
-rw-r--r--src/mame/drivers/mhavoc.cpp26
-rw-r--r--src/mame/drivers/mice.cpp30
-rw-r--r--src/mame/drivers/micral.cpp20
-rw-r--r--src/mame/drivers/micro20.cpp28
-rw-r--r--src/mame/drivers/micro3d.cpp86
-rw-r--r--src/mame/drivers/microdec.cpp44
-rw-r--r--src/mame/drivers/microkit.cpp10
-rw-r--r--src/mame/drivers/micronic.cpp10
-rw-r--r--src/mame/drivers/micropin.cpp40
-rw-r--r--src/mame/drivers/microtan.cpp32
-rw-r--r--src/mame/drivers/microterm.cpp36
-rw-r--r--src/mame/drivers/microvsn.cpp26
-rw-r--r--src/mame/drivers/midas.cpp20
-rw-r--r--src/mame/drivers/midqslvr.cpp10
-rw-r--r--src/mame/drivers/midtunit.cpp6
-rw-r--r--src/mame/drivers/midvunit.cpp10
-rw-r--r--src/mame/drivers/midwunit.cpp4
-rw-r--r--src/mame/drivers/midxunit.cpp6
-rw-r--r--src/mame/drivers/midyunit.cpp36
-rw-r--r--src/mame/drivers/midzeus.cpp16
-rw-r--r--src/mame/drivers/mightyframe.cpp4
-rw-r--r--src/mame/drivers/mikie.cpp24
-rw-r--r--src/mame/drivers/mikro80.cpp22
-rw-r--r--src/mame/drivers/mikromik.cpp62
-rw-r--r--src/mame/drivers/mikrosha.cpp28
-rw-r--r--src/mame/drivers/mil4000.cpp12
-rw-r--r--src/mame/drivers/milton6805.cpp6
-rw-r--r--src/mame/drivers/milwaukee.cpp22
-rw-r--r--src/mame/drivers/mini2440.cpp28
-rw-r--r--src/mame/drivers/miniboy7.cpp16
-rw-r--r--src/mame/drivers/minicom.cpp14
-rw-r--r--src/mame/drivers/miniforce.cpp2
-rw-r--r--src/mame/drivers/miniframe.cpp14
-rw-r--r--src/mame/drivers/minitel_2_rpic.cpp14
-rw-r--r--src/mame/drivers/minivadr.cpp6
-rw-r--r--src/mame/drivers/mirage.cpp8
-rw-r--r--src/mame/drivers/mirax.cpp26
-rw-r--r--src/mame/drivers/missb2.cpp24
-rw-r--r--src/mame/drivers/missile.cpp12
-rw-r--r--src/mame/drivers/mitchell.cpp76
-rw-r--r--src/mame/drivers/mits680b.cpp18
-rw-r--r--src/mame/drivers/mjkjidai.cpp22
-rw-r--r--src/mame/drivers/mjsenpu.cpp8
-rw-r--r--src/mame/drivers/mjsister.cpp34
-rw-r--r--src/mame/drivers/mk1.cpp6
-rw-r--r--src/mame/drivers/mk14.cpp14
-rw-r--r--src/mame/drivers/mk2.cpp14
-rw-r--r--src/mame/drivers/mk85.cpp4
-rw-r--r--src/mame/drivers/mk90.cpp4
-rw-r--r--src/mame/drivers/mkit09.cpp24
-rw-r--r--src/mame/drivers/mlanding.cpp40
-rw-r--r--src/mame/drivers/mmagic.cpp8
-rw-r--r--src/mame/drivers/mmd1.cpp22
-rw-r--r--src/mame/drivers/mmm.cpp10
-rw-r--r--src/mame/drivers/mmodular.cpp32
-rw-r--r--src/mame/drivers/mod8.cpp8
-rw-r--r--src/mame/drivers/model1.cpp56
-rw-r--r--src/mame/drivers/model2.cpp158
-rw-r--r--src/mame/drivers/model3.cpp70
-rw-r--r--src/mame/drivers/modellot.cpp6
-rw-r--r--src/mame/drivers/mogura.cpp12
-rw-r--r--src/mame/drivers/mole.cpp8
-rw-r--r--src/mame/drivers/molecular.cpp20
-rw-r--r--src/mame/drivers/momoko.cpp16
-rw-r--r--src/mame/drivers/monty.cpp14
-rw-r--r--src/mame/drivers/monzagp.cpp12
-rw-r--r--src/mame/drivers/moo.cpp20
-rw-r--r--src/mame/drivers/mosaic.cpp16
-rw-r--r--src/mame/drivers/mouser.cpp26
-rw-r--r--src/mame/drivers/mpf1.cpp50
-rw-r--r--src/mame/drivers/mps1230.cpp8
-rw-r--r--src/mame/drivers/mpu12wbk.cpp6
-rw-r--r--src/mame/drivers/mpu2.cpp4
-rw-r--r--src/mame/drivers/mpu3.cpp62
-rw-r--r--src/mame/drivers/mpu4dealem.cpp8
-rw-r--r--src/mame/drivers/mpu4plasma.cpp6
-rw-r--r--src/mame/drivers/mpu4vid.cpp46
-rw-r--r--src/mame/drivers/mpu5.cpp4
-rw-r--r--src/mame/drivers/mpz80.cpp10
-rw-r--r--src/mame/drivers/mquake.cpp26
-rw-r--r--src/mame/drivers/mrdo.cpp10
-rw-r--r--src/mame/drivers/mrflea.cpp40
-rw-r--r--src/mame/drivers/mrgame.cpp38
-rw-r--r--src/mame/drivers/mrjong.cpp10
-rw-r--r--src/mame/drivers/ms0515.cpp46
-rw-r--r--src/mame/drivers/ms32.cpp16
-rw-r--r--src/mame/drivers/ms6102.cpp40
-rw-r--r--src/mame/drivers/ms9540.cpp4
-rw-r--r--src/mame/drivers/msbc1.cpp4
-rw-r--r--src/mame/drivers/msisaac.cpp22
-rw-r--r--src/mame/drivers/mstation.cpp8
-rw-r--r--src/mame/drivers/msx.cpp118
-rw-r--r--src/mame/drivers/mt735.cpp4
-rw-r--r--src/mame/drivers/mtouchxl.cpp30
-rw-r--r--src/mame/drivers/mtx.cpp26
-rw-r--r--src/mame/drivers/mugsmash.cpp10
-rw-r--r--src/mame/drivers/multfish.cpp14
-rw-r--r--src/mame/drivers/multi16.cpp8
-rw-r--r--src/mame/drivers/multi8.cpp22
-rw-r--r--src/mame/drivers/multigam.cpp16
-rw-r--r--src/mame/drivers/munchmo.cpp26
-rw-r--r--src/mame/drivers/murogem.cpp8
-rw-r--r--src/mame/drivers/murogmbl.cpp12
-rw-r--r--src/mame/drivers/mustache.cpp8
-rw-r--r--src/mame/drivers/mvme147.cpp16
-rw-r--r--src/mame/drivers/mw18w.cpp8
-rw-r--r--src/mame/drivers/mw8080bw.cpp90
-rw-r--r--src/mame/drivers/mwarr.cpp6
-rw-r--r--src/mame/drivers/mwsub.cpp8
-rw-r--r--src/mame/drivers/mx2178.cpp34
-rw-r--r--src/mame/drivers/myb3k.cpp90
-rw-r--r--src/mame/drivers/mycom.cpp26
-rw-r--r--src/mame/drivers/mystston.cpp8
-rw-r--r--src/mame/drivers/mystwarr.cpp40
-rw-r--r--src/mame/drivers/myvision.cpp16
-rw-r--r--src/mame/drivers/mz2000.cpp30
-rw-r--r--src/mame/drivers/mz2500.cpp42
-rw-r--r--src/mame/drivers/mz3500.cpp22
-rw-r--r--src/mame/drivers/mz6500.cpp6
-rw-r--r--src/mame/drivers/mz700.cpp38
-rw-r--r--src/mame/drivers/mz80.cpp22
-rw-r--r--src/mame/drivers/mzr8105.cpp4
-rw-r--r--src/mame/drivers/n64.cpp30
-rw-r--r--src/mame/drivers/n8080.cpp42
-rw-r--r--src/mame/drivers/nakajies.cpp8
-rw-r--r--src/mame/drivers/namcofl.cpp10
-rw-r--r--src/mame/drivers/namcona1.cpp24
-rw-r--r--src/mame/drivers/namconb1.cpp20
-rw-r--r--src/mame/drivers/namcond1.cpp24
-rw-r--r--src/mame/drivers/namcops2.cpp4
-rw-r--r--src/mame/drivers/namcos1.cpp36
-rw-r--r--src/mame/drivers/namcos10.cpp8
-rw-r--r--src/mame/drivers/namcos11.cpp58
-rw-r--r--src/mame/drivers/namcos12.cpp82
-rw-r--r--src/mame/drivers/namcos2.cpp164
-rw-r--r--src/mame/drivers/namcos21.cpp114
-rw-r--r--src/mame/drivers/namcos22.cpp132
-rw-r--r--src/mame/drivers/namcos23.cpp130
-rw-r--r--src/mame/drivers/namcos86.cpp56
-rw-r--r--src/mame/drivers/nanos.cpp28
-rw-r--r--src/mame/drivers/naomi.cpp58
-rw-r--r--src/mame/drivers/nascom1.cpp24
-rw-r--r--src/mame/drivers/naughtyb.cpp12
-rw-r--r--src/mame/drivers/nbmj8688.cpp114
-rw-r--r--src/mame/drivers/nbmj8891.cpp112
-rw-r--r--src/mame/drivers/nbmj8900.cpp16
-rw-r--r--src/mame/drivers/nbmj8991.cpp80
-rw-r--r--src/mame/drivers/nbmj9195.cpp200
-rw-r--r--src/mame/drivers/nc.cpp34
-rw-r--r--src/mame/drivers/nds.cpp8
-rw-r--r--src/mame/drivers/nemesis.cpp290
-rw-r--r--src/mame/drivers/neogeo.cpp30
-rw-r--r--src/mame/drivers/neogeocd.cpp12
-rw-r--r--src/mame/drivers/neoprint.cpp32
-rw-r--r--src/mame/drivers/neptunp2.cpp8
-rw-r--r--src/mame/drivers/nes.cpp16
-rw-r--r--src/mame/drivers/nes_vt.cpp58
-rw-r--r--src/mame/drivers/newbrain.cpp26
-rw-r--r--src/mame/drivers/news.cpp6
-rw-r--r--src/mame/drivers/next.cpp64
-rw-r--r--src/mame/drivers/nexus3d.cpp4
-rw-r--r--src/mame/drivers/ngen.cpp226
-rw-r--r--src/mame/drivers/ngp.cpp22
-rw-r--r--src/mame/drivers/nibble.cpp2
-rw-r--r--src/mame/drivers/nightgal.cpp58
-rw-r--r--src/mame/drivers/ninjakd2.cpp64
-rw-r--r--src/mame/drivers/ninjaw.cpp44
-rw-r--r--src/mame/drivers/nitedrvr.cpp8
-rw-r--r--src/mame/drivers/niyanpai.cpp22
-rw-r--r--src/mame/drivers/nmg5.cpp34
-rw-r--r--src/mame/drivers/nmk16.cpp222
-rw-r--r--src/mame/drivers/nmkmedal.cpp6
-rw-r--r--src/mame/drivers/nokia_3310.cpp4
-rw-r--r--src/mame/drivers/norautp.cpp114
-rw-r--r--src/mame/drivers/notechan.cpp8
-rw-r--r--src/mame/drivers/notetaker.cpp20
-rw-r--r--src/mame/drivers/nova2001.cpp64
-rw-r--r--src/mame/drivers/novag6502.cpp38
-rw-r--r--src/mame/drivers/novag68k.cpp10
-rw-r--r--src/mame/drivers/novagf8.cpp6
-rw-r--r--src/mame/drivers/novagmcs48.cpp12
-rw-r--r--src/mame/drivers/nsg6809.cpp8
-rw-r--r--src/mame/drivers/nsm.cpp4
-rw-r--r--src/mame/drivers/nsmpoker.cpp2
-rw-r--r--src/mame/drivers/nss.cpp20
-rw-r--r--src/mame/drivers/nwk-tr.cpp20
-rw-r--r--src/mame/drivers/nycaptor.cpp110
-rw-r--r--src/mame/drivers/nyny.cpp44
-rw-r--r--src/mame/drivers/ob68k1a.cpp36
-rw-r--r--src/mame/drivers/octopus.cpp124
-rw-r--r--src/mame/drivers/odyssey.cpp4
-rw-r--r--src/mame/drivers/odyssey2.cpp88
-rw-r--r--src/mame/drivers/offtwall.cpp4
-rw-r--r--src/mame/drivers/ohmygod.cpp6
-rw-r--r--src/mame/drivers/ojankohs.cpp60
-rw-r--r--src/mame/drivers/okean240.cpp54
-rw-r--r--src/mame/drivers/olibochu.cpp12
-rw-r--r--src/mame/drivers/olyboss.cpp62
-rw-r--r--src/mame/drivers/omegrace.cpp20
-rw-r--r--src/mame/drivers/ondra.cpp8
-rw-r--r--src/mame/drivers/oneshot.cpp12
-rw-r--r--src/mame/drivers/onetwo.cpp16
-rw-r--r--src/mame/drivers/onyx.cpp78
-rw-r--r--src/mame/drivers/opwolf.cpp50
-rw-r--r--src/mame/drivers/orao.cpp6
-rw-r--r--src/mame/drivers/orbit.cpp12
-rw-r--r--src/mame/drivers/oric.cpp46
-rw-r--r--src/mame/drivers/orion.cpp86
-rw-r--r--src/mame/drivers/osbexec.cpp112
-rw-r--r--src/mame/drivers/osborne1.cpp56
-rw-r--r--src/mame/drivers/osi.cpp44
-rw-r--r--src/mame/drivers/othello.cpp34
-rw-r--r--src/mame/drivers/othunder.cpp20
-rw-r--r--src/mame/drivers/otomedius.cpp4
-rw-r--r--src/mame/drivers/overdriv.cpp14
-rw-r--r--src/mame/drivers/p112.cpp6
-rw-r--r--src/mame/drivers/p2000t.cpp22
-rw-r--r--src/mame/drivers/p8k.cpp78
-rw-r--r--src/mame/drivers/pachifev.cpp10
-rw-r--r--src/mame/drivers/pacland.cpp14
-rw-r--r--src/mame/drivers/pacman.cpp174
-rw-r--r--src/mame/drivers/palm.cpp22
-rw-r--r--src/mame/drivers/palmz22.cpp22
-rw-r--r--src/mame/drivers/pandoras.cpp42
-rw-r--r--src/mame/drivers/pangofun.cpp8
-rw-r--r--src/mame/drivers/panicr.cpp6
-rw-r--r--src/mame/drivers/paradise.cpp24
-rw-r--r--src/mame/drivers/paranoia.cpp36
-rw-r--r--src/mame/drivers/parodius.cpp12
-rw-r--r--src/mame/drivers/partner.cpp28
-rw-r--r--src/mame/drivers/pasha2.cpp10
-rw-r--r--src/mame/drivers/paso1600.cpp12
-rw-r--r--src/mame/drivers/pasogo.cpp10
-rw-r--r--src/mame/drivers/pasopia.cpp30
-rw-r--r--src/mame/drivers/pasopia7.cpp42
-rw-r--r--src/mame/drivers/pass.cpp16
-rw-r--r--src/mame/drivers/pastelg.cpp24
-rw-r--r--src/mame/drivers/patapata.cpp6
-rw-r--r--src/mame/drivers/patinho_feio.cpp14
-rw-r--r--src/mame/drivers/pb1000.cpp28
-rw-r--r--src/mame/drivers/pbaction.cpp28
-rw-r--r--src/mame/drivers/pc.cpp103
-rw-r--r--src/mame/drivers/pc100.cpp44
-rw-r--r--src/mame/drivers/pc1500.cpp16
-rw-r--r--src/mame/drivers/pc1512.cpp240
-rw-r--r--src/mame/drivers/pc2000.cpp22
-rw-r--r--src/mame/drivers/pc4.cpp8
-rw-r--r--src/mame/drivers/pc6001.cpp54
-rw-r--r--src/mame/drivers/pc8001.cpp36
-rw-r--r--src/mame/drivers/pc8401a.cpp44
-rw-r--r--src/mame/drivers/pc8801.cpp54
-rw-r--r--src/mame/drivers/pc88va.cpp68
-rw-r--r--src/mame/drivers/pc9801.cpp146
-rw-r--r--src/mame/drivers/pcat_dyn.cpp63
-rw-r--r--src/mame/drivers/pcat_nit.cpp28
-rw-r--r--src/mame/drivers/pcd.cpp68
-rw-r--r--src/mame/drivers/pce.cpp56
-rw-r--r--src/mame/drivers/pce220.cpp24
-rw-r--r--src/mame/drivers/pcfx.cpp12
-rw-r--r--src/mame/drivers/pcipc.cpp12
-rw-r--r--src/mame/drivers/pcktgal.cpp20
-rw-r--r--src/mame/drivers/pcm.cpp22
-rw-r--r--src/mame/drivers/pcw.cpp48
-rw-r--r--src/mame/drivers/pcw16.cpp50
-rw-r--r--src/mame/drivers/pcxt.cpp22
-rw-r--r--src/mame/drivers/pda600.cpp6
-rw-r--r--src/mame/drivers/pdp1.cpp8
-rw-r--r--src/mame/drivers/pdp11.cpp8
-rw-r--r--src/mame/drivers/pecom.cpp14
-rw-r--r--src/mame/drivers/pegasus.cpp22
-rw-r--r--src/mame/drivers/pencil2.cpp12
-rw-r--r--src/mame/drivers/pengadvb.cpp18
-rw-r--r--src/mame/drivers/pengo.cpp44
-rw-r--r--src/mame/drivers/pentagon.cpp14
-rw-r--r--src/mame/drivers/peoplepc.cpp42
-rw-r--r--src/mame/drivers/peplus.cpp14
-rw-r--r--src/mame/drivers/pes.cpp12
-rw-r--r--src/mame/drivers/pet.cpp174
-rw-r--r--src/mame/drivers/peyper.cpp26
-rw-r--r--src/mame/drivers/pg685.cpp38
-rw-r--r--src/mame/drivers/pgm.cpp16
-rw-r--r--src/mame/drivers/pgm2.cpp18
-rw-r--r--src/mame/drivers/pgm3.cpp6
-rw-r--r--src/mame/drivers/phc25.cpp18
-rw-r--r--src/mame/drivers/phoenix.cpp28
-rw-r--r--src/mame/drivers/photon.cpp24
-rw-r--r--src/mame/drivers/photon2.cpp10
-rw-r--r--src/mame/drivers/photoply.cpp12
-rw-r--r--src/mame/drivers/phunsy.cpp14
-rw-r--r--src/mame/drivers/picno.cpp6
-rw-r--r--src/mame/drivers/piggypas.cpp24
-rw-r--r--src/mame/drivers/pimps.cpp46
-rw-r--r--src/mame/drivers/pinball2k.cpp10
-rw-r--r--src/mame/drivers/pingpong.cpp10
-rw-r--r--src/mame/drivers/pinkiri8.cpp8
-rw-r--r--src/mame/drivers/pipbug.cpp10
-rw-r--r--src/mame/drivers/pipedrm.cpp36
-rw-r--r--src/mame/drivers/pipeline.cpp22
-rw-r--r--src/mame/drivers/pirates.cpp6
-rw-r--r--src/mame/drivers/piratesh.cpp6
-rw-r--r--src/mame/drivers/pitagjr.cpp4
-rw-r--r--src/mame/drivers/pitnrun.cpp54
-rw-r--r--src/mame/drivers/pk8000.cpp24
-rw-r--r--src/mame/drivers/pk8020.cpp28
-rw-r--r--src/mame/drivers/pkscram.cpp10
-rw-r--r--src/mame/drivers/pktgaldx.cpp14
-rw-r--r--src/mame/drivers/plan80.cpp6
-rw-r--r--src/mame/drivers/play_1.cpp26
-rw-r--r--src/mame/drivers/play_2.cpp42
-rw-r--r--src/mame/drivers/play_3.cpp48
-rw-r--r--src/mame/drivers/playch10.cpp30
-rw-r--r--src/mame/drivers/playmark.cpp134
-rw-r--r--src/mame/drivers/plus4.cpp92
-rw-r--r--src/mame/drivers/pluto5.cpp4
-rw-r--r--src/mame/drivers/plygonet.cpp18
-rw-r--r--src/mame/drivers/pm68k.cpp44
-rw-r--r--src/mame/drivers/pmd85.cpp126
-rw-r--r--src/mame/drivers/pmi80.cpp6
-rw-r--r--src/mame/drivers/pntnpuzl.cpp14
-rw-r--r--src/mame/drivers/pockchal.cpp6
-rw-r--r--src/mame/drivers/pocketc.cpp86
-rw-r--r--src/mame/drivers/pockstat.cpp6
-rw-r--r--src/mame/drivers/pofo.cpp16
-rw-r--r--src/mame/drivers/poisk1.cpp50
-rw-r--r--src/mame/drivers/pokechmp.cpp14
-rw-r--r--src/mame/drivers/pokemini.cpp6
-rw-r--r--src/mame/drivers/poker72.cpp8
-rw-r--r--src/mame/drivers/polepos.cpp103
-rw-r--r--src/mame/drivers/polgar.cpp38
-rw-r--r--src/mame/drivers/policetr.cpp10
-rw-r--r--src/mame/drivers/poly.cpp22
-rw-r--r--src/mame/drivers/poly88.cpp20
-rw-r--r--src/mame/drivers/poly880.cpp18
-rw-r--r--src/mame/drivers/polyplay.cpp32
-rw-r--r--src/mame/drivers/pong.cpp6
-rw-r--r--src/mame/drivers/poolshrk.cpp8
-rw-r--r--src/mame/drivers/pooyan.cpp20
-rw-r--r--src/mame/drivers/popeye.cpp18
-rw-r--r--src/mame/drivers/popobear.cpp10
-rw-r--r--src/mame/drivers/popper.cpp12
-rw-r--r--src/mame/drivers/portrait.cpp12
-rw-r--r--src/mame/drivers/potgoldu.cpp4
-rw-r--r--src/mame/drivers/powerbal.cpp18
-rw-r--r--src/mame/drivers/powerins.cpp24
-rw-r--r--src/mame/drivers/powerstack.cpp4
-rw-r--r--src/mame/drivers/pp01.cpp26
-rw-r--r--src/mame/drivers/ppmast93.cpp20
-rw-r--r--src/mame/drivers/prehisle.cpp16
-rw-r--r--src/mame/drivers/prestige.cpp16
-rw-r--r--src/mame/drivers/primo.cpp34
-rw-r--r--src/mame/drivers/pro80.cpp6
-rw-r--r--src/mame/drivers/proconn.cpp80
-rw-r--r--src/mame/drivers/prodigy.cpp18
-rw-r--r--src/mame/drivers/prof180x.cpp6
-rw-r--r--src/mame/drivers/prof80.cpp44
-rw-r--r--src/mame/drivers/progolf.cpp16
-rw-r--r--src/mame/drivers/prophet600.cpp18
-rw-r--r--src/mame/drivers/proteus.cpp82
-rw-r--r--src/mame/drivers/proteus3.cpp50
-rw-r--r--src/mame/drivers/ps2.cpp45
-rw-r--r--src/mame/drivers/ps2sony.cpp4
-rw-r--r--src/mame/drivers/psikyo.cpp62
-rw-r--r--src/mame/drivers/psikyo4.cpp8
-rw-r--r--src/mame/drivers/psikyosh.cpp18
-rw-r--r--src/mame/drivers/psion.cpp28
-rw-r--r--src/mame/drivers/psx.cpp44
-rw-r--r--src/mame/drivers/psychic5.cpp28
-rw-r--r--src/mame/drivers/pt68k4.cpp56
-rw-r--r--src/mame/drivers/ptcsol.cpp16
-rw-r--r--src/mame/drivers/pturn.cpp28
-rw-r--r--src/mame/drivers/puckpkmn.cpp12
-rw-r--r--src/mame/drivers/pulsar.cpp34
-rw-r--r--src/mame/drivers/punchout.cpp30
-rw-r--r--src/mame/drivers/pv1000.cpp8
-rw-r--r--src/mame/drivers/pv2000.cpp10
-rw-r--r--src/mame/drivers/pv9234.cpp4
-rw-r--r--src/mame/drivers/pve500.cpp96
-rw-r--r--src/mame/drivers/pwrview.cpp12
-rw-r--r--src/mame/drivers/px4.cpp30
-rw-r--r--src/mame/drivers/px8.cpp16
-rw-r--r--src/mame/drivers/pyl601.cpp12
-rw-r--r--src/mame/drivers/pyson.cpp4
-rw-r--r--src/mame/drivers/pzletime.cpp6
-rw-r--r--src/mame/drivers/qdrmfgp.cpp16
-rw-r--r--src/mame/drivers/qix.cpp44
-rw-r--r--src/mame/drivers/ql.cpp56
-rw-r--r--src/mame/drivers/qtsbc.cpp24
-rw-r--r--src/mame/drivers/quakeat.cpp8
-rw-r--r--src/mame/drivers/quantum.cpp44
-rw-r--r--src/mame/drivers/quasar.cpp26
-rw-r--r--src/mame/drivers/queen.cpp12
-rw-r--r--src/mame/drivers/quickpick5.cpp10
-rw-r--r--src/mame/drivers/quizdna.cpp20
-rw-r--r--src/mame/drivers/quizo.cpp10
-rw-r--r--src/mame/drivers/quizpani.cpp8
-rw-r--r--src/mame/drivers/quizpun2.cpp54
-rw-r--r--src/mame/drivers/quizshow.cpp10
-rw-r--r--src/mame/drivers/qvt103.cpp8
-rw-r--r--src/mame/drivers/qvt201.cpp8
-rw-r--r--src/mame/drivers/qvt6800.cpp18
-rw-r--r--src/mame/drivers/qvt70.cpp4
-rw-r--r--src/mame/drivers/qx10.cpp60
-rw-r--r--src/mame/drivers/r2dtank.cpp32
-rw-r--r--src/mame/drivers/r2dx_v33.cpp36
-rw-r--r--src/mame/drivers/r9751.cpp8
-rw-r--r--src/mame/drivers/rabbit.cpp6
-rw-r--r--src/mame/drivers/rad_eu3a05.cpp8
-rw-r--r--src/mame/drivers/rad_eu3a14.cpp8
-rw-r--r--src/mame/drivers/radio86.cpp80
-rw-r--r--src/mame/drivers/raiden.cpp52
-rw-r--r--src/mame/drivers/raiden2.cpp54
-rw-r--r--src/mame/drivers/rainbow.cpp74
-rw-r--r--src/mame/drivers/rallyx.cpp46
-rw-r--r--src/mame/drivers/rambo.cpp8
-rw-r--r--src/mame/drivers/rampart.cpp8
-rw-r--r--src/mame/drivers/rastan.cpp18
-rw-r--r--src/mame/drivers/rastersp.cpp28
-rw-r--r--src/mame/drivers/ravens.cpp20
-rw-r--r--src/mame/drivers/rbisland.cpp34
-rw-r--r--src/mame/drivers/rbmk.cpp22
-rw-r--r--src/mame/drivers/rc702.cpp50
-rw-r--r--src/mame/drivers/rc759.cpp48
-rw-r--r--src/mame/drivers/rcorsair.cpp12
-rw-r--r--src/mame/drivers/rd100.cpp4
-rw-r--r--src/mame/drivers/rd110.cpp6
-rw-r--r--src/mame/drivers/re900.cpp20
-rw-r--r--src/mame/drivers/realbrk.cpp26
-rw-r--r--src/mame/drivers/redalert.cpp24
-rw-r--r--src/mame/drivers/redclash.cpp12
-rw-r--r--src/mame/drivers/relief.cpp8
-rw-r--r--src/mame/drivers/renegade.cpp18
-rw-r--r--src/mame/drivers/replicator.cpp10
-rw-r--r--src/mame/drivers/retofinv.cpp40
-rw-r--r--src/mame/drivers/rex6000.cpp64
-rw-r--r--src/mame/drivers/rgum.cpp6
-rw-r--r--src/mame/drivers/risc2500.cpp8
-rw-r--r--src/mame/drivers/riscpc.cpp24
-rw-r--r--src/mame/drivers/rltennis.cpp10
-rw-r--r--src/mame/drivers/rm380z.cpp12
-rw-r--r--src/mame/drivers/rmhaihai.cpp18
-rw-r--r--src/mame/drivers/rmnimbus.cpp90
-rw-r--r--src/mame/drivers/rmt32.cpp6
-rw-r--r--src/mame/drivers/rockrage.cpp12
-rw-r--r--src/mame/drivers/rocnrope.cpp20
-rw-r--r--src/mame/drivers/rohga.cpp52
-rw-r--r--src/mame/drivers/rollerg.cpp16
-rw-r--r--src/mame/drivers/rollext.cpp16
-rw-r--r--src/mame/drivers/rollrace.cpp32
-rw-r--r--src/mame/drivers/ron.cpp26
-rw-r--r--src/mame/drivers/rotaryf.cpp16
-rw-r--r--src/mame/drivers/roul.cpp14
-rw-r--r--src/mame/drivers/route16.cpp46
-rw-r--r--src/mame/drivers/rowamet.cpp12
-rw-r--r--src/mame/drivers/royalmah.cpp206
-rw-r--r--src/mame/drivers/rpunch.cpp32
-rw-r--r--src/mame/drivers/rsc55.cpp6
-rw-r--r--src/mame/drivers/rt1715.cpp12
-rw-r--r--src/mame/drivers/runaway.cpp24
-rw-r--r--src/mame/drivers/rungun.cpp12
-rw-r--r--src/mame/drivers/rvoice.cpp12
-rw-r--r--src/mame/drivers/rx78.cpp10
-rw-r--r--src/mame/drivers/rz1.cpp22
-rw-r--r--src/mame/drivers/rzone.cpp24
-rw-r--r--src/mame/drivers/s11.cpp102
-rw-r--r--src/mame/drivers/s11a.cpp102
-rw-r--r--src/mame/drivers/s11b.cpp106
-rw-r--r--src/mame/drivers/s11c.cpp72
-rw-r--r--src/mame/drivers/s3.cpp52
-rw-r--r--src/mame/drivers/s4.cpp52
-rw-r--r--src/mame/drivers/s6.cpp70
-rw-r--r--src/mame/drivers/s6a.cpp70
-rw-r--r--src/mame/drivers/s7.cpp78
-rw-r--r--src/mame/drivers/s8.cpp60
-rw-r--r--src/mame/drivers/s8a.cpp60
-rw-r--r--src/mame/drivers/s9.cpp66
-rw-r--r--src/mame/drivers/sacstate.cpp6
-rw-r--r--src/mame/drivers/safarir.cpp6
-rw-r--r--src/mame/drivers/sage2.cpp68
-rw-r--r--src/mame/drivers/sam.cpp4
-rw-r--r--src/mame/drivers/samcoupe.cpp14
-rw-r--r--src/mame/drivers/sandscrp.cpp16
-rw-r--r--src/mame/drivers/sangho.cpp16
-rw-r--r--src/mame/drivers/sanremmg.cpp4
-rw-r--r--src/mame/drivers/sanremo.cpp10
-rw-r--r--src/mame/drivers/sansa_fuze.cpp4
-rw-r--r--src/mame/drivers/sapi1.cpp32
-rw-r--r--src/mame/drivers/sartorius.cpp2
-rw-r--r--src/mame/drivers/saturn.cpp44
-rw-r--r--src/mame/drivers/sauro.cpp48
-rw-r--r--src/mame/drivers/savia84.cpp14
-rw-r--r--src/mame/drivers/savquest.cpp18
-rw-r--r--src/mame/drivers/sbasketb.cpp32
-rw-r--r--src/mame/drivers/sbc6510.cpp22
-rw-r--r--src/mame/drivers/sbowling.cpp8
-rw-r--r--src/mame/drivers/sbrain.cpp36
-rw-r--r--src/mame/drivers/sbrkout.cpp12
-rw-r--r--src/mame/drivers/sbugger.cpp10
-rw-r--r--src/mame/drivers/sc1.cpp12
-rw-r--r--src/mame/drivers/sc2.cpp16
-rw-r--r--src/mame/drivers/scobra.cpp98
-rw-r--r--src/mame/drivers/scopus.cpp36
-rw-r--r--src/mame/drivers/scorpion.cpp8
-rw-r--r--src/mame/drivers/scotrsht.cpp14
-rw-r--r--src/mame/drivers/scramble.cpp132
-rw-r--r--src/mame/drivers/scregg.cpp16
-rw-r--r--src/mame/drivers/scv.cpp20
-rw-r--r--src/mame/drivers/scyclone.cpp24
-rw-r--r--src/mame/drivers/sderby.cpp36
-rw-r--r--src/mame/drivers/sderby2.cpp18
-rw-r--r--src/mame/drivers/sdk80.cpp22
-rw-r--r--src/mame/drivers/sdk85.cpp12
-rw-r--r--src/mame/drivers/sdk86.cpp28
-rw-r--r--src/mame/drivers/seabattl.cpp22
-rw-r--r--src/mame/drivers/sealy.cpp4
-rw-r--r--src/mame/drivers/seattle.cpp52
-rw-r--r--src/mame/drivers/seattlecmp.cpp44
-rw-r--r--src/mame/drivers/segac2.cpp30
-rw-r--r--src/mame/drivers/segacoin.cpp18
-rw-r--r--src/mame/drivers/segae.cpp52
-rw-r--r--src/mame/drivers/segag80r.cpp54
-rw-r--r--src/mame/drivers/segag80v.cpp18
-rw-r--r--src/mame/drivers/segahang.cpp88
-rw-r--r--src/mame/drivers/segajw.cpp26
-rw-r--r--src/mame/drivers/segald.cpp10
-rw-r--r--src/mame/drivers/segam1.cpp26
-rw-r--r--src/mame/drivers/segaorun.cpp52
-rw-r--r--src/mame/drivers/segapico.cpp24
-rw-r--r--src/mame/drivers/segapm.cpp4
-rw-r--r--src/mame/drivers/segas16a.cpp98
-rw-r--r--src/mame/drivers/segas16b.cpp114
-rw-r--r--src/mame/drivers/segas18.cpp58
-rw-r--r--src/mame/drivers/segas24.cpp56
-rw-r--r--src/mame/drivers/segas32.cpp96
-rw-r--r--src/mame/drivers/segasp.cpp8
-rw-r--r--src/mame/drivers/segaufo.cpp76
-rw-r--r--src/mame/drivers/segaxbd.cpp104
-rw-r--r--src/mame/drivers/segaybd.cpp44
-rw-r--r--src/mame/drivers/seibucats.cpp10
-rw-r--r--src/mame/drivers/seibuspi.cpp82
-rw-r--r--src/mame/drivers/seicross.cpp28
-rw-r--r--src/mame/drivers/seicupbl.cpp16
-rw-r--r--src/mame/drivers/selz80.cpp34
-rw-r--r--src/mame/drivers/sengokmj.cpp24
-rw-r--r--src/mame/drivers/senjyo.cpp50
-rw-r--r--src/mame/drivers/seta.cpp386
-rw-r--r--src/mame/drivers/seta2.cpp98
-rw-r--r--src/mame/drivers/sf.cpp34
-rw-r--r--src/mame/drivers/sfbonus.cpp10
-rw-r--r--src/mame/drivers/sfcbox.cpp18
-rw-r--r--src/mame/drivers/sfkick.cpp22
-rw-r--r--src/mame/drivers/sg1000.cpp48
-rw-r--r--src/mame/drivers/sg1000a.cpp24
-rw-r--r--src/mame/drivers/sh4robot.cpp6
-rw-r--r--src/mame/drivers/shadfrce.cpp10
-rw-r--r--src/mame/drivers/shangha3.cpp36
-rw-r--r--src/mame/drivers/shanghai.cpp40
-rw-r--r--src/mame/drivers/shangkid.cpp74
-rw-r--r--src/mame/drivers/shaolins.cpp12
-rw-r--r--src/mame/drivers/shisen.cpp28
-rw-r--r--src/mame/drivers/shootaway2.cpp8
-rw-r--r--src/mame/drivers/shootout.cpp24
-rw-r--r--src/mame/drivers/shougi.cpp20
-rw-r--r--src/mame/drivers/shtzone.cpp4
-rw-r--r--src/mame/drivers/shuuz.cpp6
-rw-r--r--src/mame/drivers/sidearms.cpp48
-rw-r--r--src/mame/drivers/sidepckt.cpp16
-rw-r--r--src/mame/drivers/sigmab52.cpp12
-rw-r--r--src/mame/drivers/sigmab98.cpp82
-rw-r--r--src/mame/drivers/silkroad.cpp6
-rw-r--r--src/mame/drivers/silvmil.cpp14
-rw-r--r--src/mame/drivers/simpl156.cpp22
-rw-r--r--src/mame/drivers/simple_st0016.cpp18
-rw-r--r--src/mame/drivers/simpsons.cpp14
-rw-r--r--src/mame/drivers/sitcom.cpp24
-rw-r--r--src/mame/drivers/skeetsht.cpp14
-rw-r--r--src/mame/drivers/skimaxx.cpp16
-rw-r--r--src/mame/drivers/skullxbo.cpp6
-rw-r--r--src/mame/drivers/skyarmy.cpp22
-rw-r--r--src/mame/drivers/skydiver.cpp50
-rw-r--r--src/mame/drivers/skyfox.cpp14
-rw-r--r--src/mame/drivers/skykid.cpp14
-rw-r--r--src/mame/drivers/skylncr.cpp22
-rw-r--r--src/mame/drivers/skyraid.cpp8
-rw-r--r--src/mame/drivers/slapfght.cpp112
-rw-r--r--src/mame/drivers/slapshot.cpp32
-rw-r--r--src/mame/drivers/slc1.cpp8
-rw-r--r--src/mame/drivers/sleic.cpp4
-rw-r--r--src/mame/drivers/slicer.cpp50
-rw-r--r--src/mame/drivers/sliver.cpp14
-rw-r--r--src/mame/drivers/slotcarn.cpp10
-rw-r--r--src/mame/drivers/sm1800.cpp18
-rw-r--r--src/mame/drivers/sm7238.cpp52
-rw-r--r--src/mame/drivers/smc777.cpp16
-rw-r--r--src/mame/drivers/sms.cpp122
-rw-r--r--src/mame/drivers/sms_bootleg.cpp10
-rw-r--r--src/mame/drivers/smsmcorp.cpp20
-rw-r--r--src/mame/drivers/snes.cpp16
-rw-r--r--src/mame/drivers/snesb.cpp16
-rw-r--r--src/mame/drivers/snk.cpp252
-rw-r--r--src/mame/drivers/snk6502.cpp52
-rw-r--r--src/mame/drivers/snk68.cpp20
-rw-r--r--src/mame/drivers/snookr10.cpp14
-rw-r--r--src/mame/drivers/snowbros.cpp88
-rw-r--r--src/mame/drivers/socrates.cpp30
-rw-r--r--src/mame/drivers/softbox.cpp38
-rw-r--r--src/mame/drivers/solomon.cpp22
-rw-r--r--src/mame/drivers/sonson.cpp24
-rw-r--r--src/mame/drivers/sorcerer.cpp14
-rw-r--r--src/mame/drivers/sothello.cpp22
-rw-r--r--src/mame/drivers/spacefb.cpp20
-rw-r--r--src/mame/drivers/spaceg.cpp8
-rw-r--r--src/mame/drivers/spartanxtec.cpp22
-rw-r--r--src/mame/drivers/spbactn.cpp32
-rw-r--r--src/mame/drivers/spc1000.cpp18
-rw-r--r--src/mame/drivers/spc1500.cpp26
-rw-r--r--src/mame/drivers/spcforce.cpp44
-rw-r--r--src/mame/drivers/spdodgeb.cpp18
-rw-r--r--src/mame/drivers/spec128.cpp10
-rw-r--r--src/mame/drivers/special.cpp82
-rw-r--r--src/mame/drivers/specpls3.cpp6
-rw-r--r--src/mame/drivers/spectra.cpp14
-rw-r--r--src/mame/drivers/spectrum.cpp12
-rw-r--r--src/mame/drivers/speedatk.cpp12
-rw-r--r--src/mame/drivers/speedbal.cpp18
-rw-r--r--src/mame/drivers/speedspn.cpp12
-rw-r--r--src/mame/drivers/speglsht.cpp14
-rw-r--r--src/mame/drivers/spiders.cpp38
-rw-r--r--src/mame/drivers/spinb.cpp118
-rw-r--r--src/mame/drivers/spirit76.cpp16
-rw-r--r--src/mame/drivers/splash.cpp72
-rw-r--r--src/mame/drivers/splus.cpp12
-rw-r--r--src/mame/drivers/spoker.cpp28
-rw-r--r--src/mame/drivers/spool99.cpp10
-rw-r--r--src/mame/drivers/sprcros2.cpp22
-rw-r--r--src/mame/drivers/sprint2.cpp22
-rw-r--r--src/mame/drivers/sprint4.cpp16
-rw-r--r--src/mame/drivers/sprint8.cpp6
-rw-r--r--src/mame/drivers/spy.cpp20
-rw-r--r--src/mame/drivers/spyhuntertec.cpp30
-rw-r--r--src/mame/drivers/squale.cpp36
-rw-r--r--src/mame/drivers/srmp2.cpp48
-rw-r--r--src/mame/drivers/srmp5.cpp14
-rw-r--r--src/mame/drivers/srmp6.cpp6
-rw-r--r--src/mame/drivers/srumbler.cpp16
-rw-r--r--src/mame/drivers/ssem.cpp4
-rw-r--r--src/mame/drivers/ssfindo.cpp14
-rw-r--r--src/mame/drivers/sshangha.cpp16
-rw-r--r--src/mame/drivers/sshot.cpp4
-rw-r--r--src/mame/drivers/ssingles.cpp18
-rw-r--r--src/mame/drivers/sslam.cpp24
-rw-r--r--src/mame/drivers/ssozumo.cpp18
-rw-r--r--src/mame/drivers/sspeedr.cpp10
-rw-r--r--src/mame/drivers/ssrj.cpp10
-rw-r--r--src/mame/drivers/sstrangr.cpp8
-rw-r--r--src/mame/drivers/ssv.cpp114
-rw-r--r--src/mame/drivers/ssystem3.cpp12
-rw-r--r--src/mame/drivers/st17xx.cpp4
-rw-r--r--src/mame/drivers/st_mp100.cpp26
-rw-r--r--src/mame/drivers/st_mp200.cpp28
-rw-r--r--src/mame/drivers/stactics.cpp30
-rw-r--r--src/mame/drivers/stadhero.cpp14
-rw-r--r--src/mame/drivers/starcrus.cpp10
-rw-r--r--src/mame/drivers/starfire.cpp8
-rw-r--r--src/mame/drivers/stargame.cpp16
-rw-r--r--src/mame/drivers/starshp1.cpp38
-rw-r--r--src/mame/drivers/starwars.cpp48
-rw-r--r--src/mame/drivers/statriv2.cpp16
-rw-r--r--src/mame/drivers/stellafr.cpp12
-rw-r--r--src/mame/drivers/stfight.cpp44
-rw-r--r--src/mame/drivers/stlforce.cpp10
-rw-r--r--src/mame/drivers/stratos.cpp4
-rw-r--r--src/mame/drivers/strkzn.cpp12
-rw-r--r--src/mame/drivers/strnskil.cpp22
-rw-r--r--src/mame/drivers/studio2.cpp56
-rw-r--r--src/mame/drivers/stuntair.cpp28
-rw-r--r--src/mame/drivers/stv.cpp48
-rw-r--r--src/mame/drivers/su2000.cpp26
-rw-r--r--src/mame/drivers/sub.cpp22
-rw-r--r--src/mame/drivers/subhuntr.cpp12
-rw-r--r--src/mame/drivers/subs.cpp20
-rw-r--r--src/mame/drivers/subsino.cpp56
-rw-r--r--src/mame/drivers/subsino2.cpp46
-rw-r--r--src/mame/drivers/summit.cpp6
-rw-r--r--src/mame/drivers/sumt8035.cpp6
-rw-r--r--src/mame/drivers/sun1.cpp42
-rw-r--r--src/mame/drivers/sun2.cpp68
-rw-r--r--src/mame/drivers/sun3.cpp76
-rw-r--r--src/mame/drivers/sun3x.cpp56
-rw-r--r--src/mame/drivers/sun4.cpp70
-rw-r--r--src/mame/drivers/suna16.cpp96
-rw-r--r--src/mame/drivers/suna8.cpp148
-rw-r--r--src/mame/drivers/supbtime.cpp18
-rw-r--r--src/mame/drivers/supdrapo.cpp12
-rw-r--r--src/mame/drivers/supduck.cpp12
-rw-r--r--src/mame/drivers/super6.cpp48
-rw-r--r--src/mame/drivers/super80.cpp60
-rw-r--r--src/mame/drivers/superchs.cpp30
-rw-r--r--src/mame/drivers/supercrd.cpp4
-rw-r--r--src/mame/drivers/superdq.cpp12
-rw-r--r--src/mame/drivers/superqix.cpp68
-rw-r--r--src/mame/drivers/superslave.cpp74
-rw-r--r--src/mame/drivers/supertnk.cpp4
-rw-r--r--src/mame/drivers/superwng.cpp18
-rw-r--r--src/mame/drivers/supracan.cpp12
-rw-r--r--src/mame/drivers/suprgolf.cpp32
-rw-r--r--src/mame/drivers/suprloco.cpp20
-rw-r--r--src/mame/drivers/suprnova.cpp6
-rw-r--r--src/mame/drivers/suprridr.cpp20
-rw-r--r--src/mame/drivers/suprslam.cpp16
-rw-r--r--src/mame/drivers/supstarf.cpp32
-rw-r--r--src/mame/drivers/surpratk.cpp8
-rw-r--r--src/mame/drivers/sv8000.cpp32
-rw-r--r--src/mame/drivers/svi318.cpp34
-rw-r--r--src/mame/drivers/svision.cpp20
-rw-r--r--src/mame/drivers/svmu.cpp10
-rw-r--r--src/mame/drivers/swtpc.cpp120
-rw-r--r--src/mame/drivers/swtpc09.cpp50
-rw-r--r--src/mame/drivers/swyft.cpp38
-rw-r--r--src/mame/drivers/sym1.cpp40
-rw-r--r--src/mame/drivers/symbolics.cpp4
-rw-r--r--src/mame/drivers/sys2900.cpp6
-rw-r--r--src/mame/drivers/sys9002.cpp46
-rw-r--r--src/mame/drivers/systec.cpp22
-rw-r--r--src/mame/drivers/system1.cpp152
-rw-r--r--src/mame/drivers/system16.cpp174
-rw-r--r--src/mame/drivers/tagteam.cpp18
-rw-r--r--src/mame/drivers/tail2nos.cpp20
-rw-r--r--src/mame/drivers/taito.cpp46
-rw-r--r--src/mame/drivers/taito_b.cpp292
-rw-r--r--src/mame/drivers/taito_f2.cpp198
-rw-r--r--src/mame/drivers/taito_f3.cpp16
-rw-r--r--src/mame/drivers/taito_h.cpp46
-rw-r--r--src/mame/drivers/taito_l.cpp134
-rw-r--r--src/mame/drivers/taito_o.cpp6
-rw-r--r--src/mame/drivers/taito_x.cpp48
-rw-r--r--src/mame/drivers/taito_z.cpp200
-rw-r--r--src/mame/drivers/taitoair.cpp24
-rw-r--r--src/mame/drivers/taitogn.cpp34
-rw-r--r--src/mame/drivers/taitojc.cpp24
-rw-r--r--src/mame/drivers/taitopjc.cpp22
-rw-r--r--src/mame/drivers/taitosj.cpp52
-rw-r--r--src/mame/drivers/taitotx.cpp4
-rw-r--r--src/mame/drivers/taitotz.cpp16
-rw-r--r--src/mame/drivers/taitowlf.cpp8
-rw-r--r--src/mame/drivers/tamag1.cpp6
-rw-r--r--src/mame/drivers/tandy1t.cpp72
-rw-r--r--src/mame/drivers/tandy2k.cpp92
-rw-r--r--src/mame/drivers/tank8.cpp8
-rw-r--r--src/mame/drivers/tankbatt.cpp22
-rw-r--r--src/mame/drivers/tankbust.cpp22
-rw-r--r--src/mame/drivers/taotaido.cpp18
-rw-r--r--src/mame/drivers/tapatune.cpp16
-rw-r--r--src/mame/drivers/targeth.cpp10
-rw-r--r--src/mame/drivers/tasman.cpp14
-rw-r--r--src/mame/drivers/tatsumi.cpp74
-rw-r--r--src/mame/drivers/tattack.cpp10
-rw-r--r--src/mame/drivers/tavernie.cpp38
-rw-r--r--src/mame/drivers/taxidriv.cpp64
-rw-r--r--src/mame/drivers/tb303.cpp22
-rw-r--r--src/mame/drivers/tbowl.cpp28
-rw-r--r--src/mame/drivers/tceptor.cpp28
-rw-r--r--src/mame/drivers/tdv2324.cpp16
-rw-r--r--src/mame/drivers/tec1.cpp16
-rw-r--r--src/mame/drivers/techno.cpp8
-rw-r--r--src/mame/drivers/tecmo.cpp38
-rw-r--r--src/mame/drivers/tecmo16.cpp14
-rw-r--r--src/mame/drivers/tecmosys.cpp18
-rw-r--r--src/mame/drivers/tecnbras.cpp6
-rw-r--r--src/mame/drivers/tehkanwc.cpp48
-rw-r--r--src/mame/drivers/tek405x.cpp92
-rw-r--r--src/mame/drivers/tek410x.cpp6
-rw-r--r--src/mame/drivers/tek440x.cpp22
-rw-r--r--src/mame/drivers/tekxp33x.cpp8
-rw-r--r--src/mame/drivers/tempest.cpp42
-rw-r--r--src/mame/drivers/terak.cpp4
-rw-r--r--src/mame/drivers/terco.cpp4
-rw-r--r--src/mame/drivers/terracre.cpp36
-rw-r--r--src/mame/drivers/test_t400.cpp8
-rw-r--r--src/mame/drivers/testconsole.cpp14
-rw-r--r--src/mame/drivers/tetrisp2.cpp72
-rw-r--r--src/mame/drivers/tg100.cpp8
-rw-r--r--src/mame/drivers/tgtpanic.cpp8
-rw-r--r--src/mame/drivers/thayers.cpp24
-rw-r--r--src/mame/drivers/thedealr.cpp12
-rw-r--r--src/mame/drivers/thedeep.cpp24
-rw-r--r--src/mame/drivers/thepit.cpp40
-rw-r--r--src/mame/drivers/thief.cpp24
-rw-r--r--src/mame/drivers/thomson.cpp200
-rw-r--r--src/mame/drivers/thoop2.cpp14
-rw-r--r--src/mame/drivers/thunderj.cpp10
-rw-r--r--src/mame/drivers/thunderx.cpp24
-rw-r--r--src/mame/drivers/ti630.cpp12
-rw-r--r--src/mame/drivers/ti74.cpp20
-rw-r--r--src/mame/drivers/ti85.cpp48
-rw-r--r--src/mame/drivers/ti89.cpp20
-rw-r--r--src/mame/drivers/ti990_10.cpp8
-rw-r--r--src/mame/drivers/ti990_4.cpp20
-rw-r--r--src/mame/drivers/ti99_2.cpp2
-rw-r--r--src/mame/drivers/ti99_4p.cpp34
-rw-r--r--src/mame/drivers/ti99_4x.cpp164
-rw-r--r--src/mame/drivers/ti99_8.cpp106
-rw-r--r--src/mame/drivers/tiamc1.cpp20
-rw-r--r--src/mame/drivers/ticalc1x.cpp104
-rw-r--r--src/mame/drivers/tickee.cpp22
-rw-r--r--src/mame/drivers/tigeroad.cpp74
-rw-r--r--src/mame/drivers/tiki100.cpp56
-rw-r--r--src/mame/drivers/tim011.cpp10
-rw-r--r--src/mame/drivers/tim100.cpp50
-rw-r--r--src/mame/drivers/timelimt.cpp26
-rw-r--r--src/mame/drivers/timeplt.cpp34
-rw-r--r--src/mame/drivers/timetrv.cpp16
-rw-r--r--src/mame/drivers/timex.cpp20
-rw-r--r--src/mame/drivers/tispeak.cpp76
-rw-r--r--src/mame/drivers/tispellb.cpp36
-rw-r--r--src/mame/drivers/tk2000.cpp6
-rw-r--r--src/mame/drivers/tk80.cpp46
-rw-r--r--src/mame/drivers/tk80bs.cpp8
-rw-r--r--src/mame/drivers/tm990189.cpp104
-rw-r--r--src/mame/drivers/tmaster.cpp12
-rw-r--r--src/mame/drivers/tmc1800.cpp66
-rw-r--r--src/mame/drivers/tmc2000e.cpp18
-rw-r--r--src/mame/drivers/tmc600.cpp18
-rw-r--r--src/mame/drivers/tmmjprd.cpp4
-rw-r--r--src/mame/drivers/tmnt.cpp126
-rw-r--r--src/mame/drivers/tmspoker.cpp2
-rw-r--r--src/mame/drivers/tnzs.cpp102
-rw-r--r--src/mame/drivers/toaplan1.cpp142
-rw-r--r--src/mame/drivers/toaplan2.cpp202
-rw-r--r--src/mame/drivers/toki.cpp44
-rw-r--r--src/mame/drivers/tomcat.cpp36
-rw-r--r--src/mame/drivers/tonton.cpp12
-rw-r--r--src/mame/drivers/toobin.cpp6
-rw-r--r--src/mame/drivers/topspeed.cpp30
-rw-r--r--src/mame/drivers/toratora.cpp30
-rw-r--r--src/mame/drivers/tosh1000.cpp21
-rw-r--r--src/mame/drivers/tourtabl.cpp12
-rw-r--r--src/mame/drivers/tourvis.cpp28
-rw-r--r--src/mame/drivers/toypop.cpp32
-rw-r--r--src/mame/drivers/tp84.cpp40
-rw-r--r--src/mame/drivers/tr175.cpp4
-rw-r--r--src/mame/drivers/tr606.cpp2
-rw-r--r--src/mame/drivers/trackfld.cpp96
-rw-r--r--src/mame/drivers/tranz330.cpp32
-rw-r--r--src/mame/drivers/travrusa.cpp6
-rw-r--r--src/mame/drivers/tricep.cpp20
-rw-r--r--src/mame/drivers/triforce.cpp4
-rw-r--r--src/mame/drivers/triplhnt.cpp28
-rw-r--r--src/mame/drivers/trs80.cpp72
-rw-r--r--src/mame/drivers/trs80dt1.cpp18
-rw-r--r--src/mame/drivers/trs80m2.cpp98
-rw-r--r--src/mame/drivers/truco.cpp18
-rw-r--r--src/mame/drivers/trucocl.cpp8
-rw-r--r--src/mame/drivers/trvmadns.cpp8
-rw-r--r--src/mame/drivers/trvquest.cpp22
-rw-r--r--src/mame/drivers/tryout.cpp12
-rw-r--r--src/mame/drivers/ts3000.cpp6
-rw-r--r--src/mame/drivers/ts802.cpp14
-rw-r--r--src/mame/drivers/ts803.cpp24
-rw-r--r--src/mame/drivers/ts816.cpp14
-rw-r--r--src/mame/drivers/tsamurai.cpp98
-rw-r--r--src/mame/drivers/tsispch.cpp26
-rw-r--r--src/mame/drivers/ttchamp.cpp8
-rw-r--r--src/mame/drivers/tti.cpp18
-rw-r--r--src/mame/drivers/tubep.cpp104
-rw-r--r--src/mame/drivers/tugboat.cpp10
-rw-r--r--src/mame/drivers/tumbleb.cpp66
-rw-r--r--src/mame/drivers/tunhunt.cpp20
-rw-r--r--src/mame/drivers/turbo.cpp100
-rw-r--r--src/mame/drivers/turrett.cpp12
-rw-r--r--src/mame/drivers/tutankhm.cpp27
-rw-r--r--src/mame/drivers/tutor.cpp8
-rw-r--r--src/mame/drivers/tv910.cpp30
-rw-r--r--src/mame/drivers/tv912.cpp26
-rw-r--r--src/mame/drivers/tv950.cpp18
-rw-r--r--src/mame/drivers/tv955.cpp12
-rw-r--r--src/mame/drivers/tv965.cpp6
-rw-r--r--src/mame/drivers/tv990.cpp42
-rw-r--r--src/mame/drivers/tvboy.cpp30
-rw-r--r--src/mame/drivers/tvc.cpp14
-rw-r--r--src/mame/drivers/tvcapcom.cpp4
-rw-r--r--src/mame/drivers/tvgame.cpp10
-rw-r--r--src/mame/drivers/twin16.cpp36
-rw-r--r--src/mame/drivers/twincobr.cpp48
-rw-r--r--src/mame/drivers/twinkle.cpp34
-rw-r--r--src/mame/drivers/twins.cpp24
-rw-r--r--src/mame/drivers/tx0.cpp30
-rw-r--r--src/mame/drivers/tx1.cpp93
-rw-r--r--src/mame/drivers/uapce.cpp22
-rw-r--r--src/mame/drivers/uknc.cpp8
-rw-r--r--src/mame/drivers/ultraman.cpp12
-rw-r--r--src/mame/drivers/ultratnk.cpp14
-rw-r--r--src/mame/drivers/ultrsprt.cpp10
-rw-r--r--src/mame/drivers/umipoker.cpp16
-rw-r--r--src/mame/drivers/undrfire.cpp42
-rw-r--r--src/mame/drivers/unianapc.cpp4
-rw-r--r--src/mame/drivers/unichamp.cpp10
-rw-r--r--src/mame/drivers/unico.cpp22
-rw-r--r--src/mame/drivers/unior.cpp36
-rw-r--r--src/mame/drivers/unistar.cpp8
-rw-r--r--src/mame/drivers/univac.cpp30
-rw-r--r--src/mame/drivers/unixpc.cpp8
-rw-r--r--src/mame/drivers/unkhorse.cpp14
-rw-r--r--src/mame/drivers/upscope.cpp38
-rw-r--r--src/mame/drivers/usgames.cpp12
-rw-r--r--src/mame/drivers/ut88.cpp20
-rw-r--r--src/mame/drivers/uzebox.cpp10
-rw-r--r--src/mame/drivers/v100.cpp32
-rw-r--r--src/mame/drivers/v102.cpp14
-rw-r--r--src/mame/drivers/v1050.cpp94
-rw-r--r--src/mame/drivers/v6809.cpp22
-rw-r--r--src/mame/drivers/vamphalf.cpp102
-rw-r--r--src/mame/drivers/vaportra.cpp12
-rw-r--r--src/mame/drivers/vastar.cpp22
-rw-r--r--src/mame/drivers/vax11.cpp4
-rw-r--r--src/mame/drivers/vball.cpp8
-rw-r--r--src/mame/drivers/vboy.cpp6
-rw-r--r--src/mame/drivers/vc4000.cpp16
-rw-r--r--src/mame/drivers/vcombat.cpp40
-rw-r--r--src/mame/drivers/vcs80.cpp10
-rw-r--r--src/mame/drivers/vd.cpp10
-rw-r--r--src/mame/drivers/vector06.cpp38
-rw-r--r--src/mame/drivers/vector4.cpp62
-rw-r--r--src/mame/drivers/vectrex.cpp32
-rw-r--r--src/mame/drivers/vectrix.cpp6
-rw-r--r--src/mame/drivers/vega.cpp44
-rw-r--r--src/mame/drivers/vegaeo.cpp16
-rw-r--r--src/mame/drivers/vegas.cpp140
-rw-r--r--src/mame/drivers/vendetta.cpp16
-rw-r--r--src/mame/drivers/vertigo.cpp30
-rw-r--r--src/mame/drivers/vg5k.cpp8
-rw-r--r--src/mame/drivers/vgmplay.cpp58
-rw-r--r--src/mame/drivers/vic10.cpp38
-rw-r--r--src/mame/drivers/vic20.cpp102
-rw-r--r--src/mame/drivers/vicdual.cpp120
-rw-r--r--src/mame/drivers/victor9k.cpp116
-rw-r--r--src/mame/drivers/victory.cpp8
-rw-r--r--src/mame/drivers/vidbrain.cpp16
-rw-r--r--src/mame/drivers/videopin.cpp6
-rw-r--r--src/mame/drivers/videopkr.cpp80
-rw-r--r--src/mame/drivers/vigilant.cpp88
-rw-r--r--src/mame/drivers/vii.cpp6
-rw-r--r--src/mame/drivers/vindictr.cpp4
-rw-r--r--src/mame/drivers/vip.cpp40
-rw-r--r--src/mame/drivers/viper.cpp10
-rw-r--r--src/mame/drivers/vis.cpp25
-rw-r--r--src/mame/drivers/vixen.cpp48
-rw-r--r--src/mame/drivers/vk100.cpp30
-rw-r--r--src/mame/drivers/vlc.cpp10
-rw-r--r--src/mame/drivers/volfied.cpp14
-rw-r--r--src/mame/drivers/votrpss.cpp42
-rw-r--r--src/mame/drivers/votrtnt.cpp18
-rw-r--r--src/mame/drivers/voyager.cpp10
-rw-r--r--src/mame/drivers/vp101.cpp10
-rw-r--r--src/mame/drivers/vp122.cpp6
-rw-r--r--src/mame/drivers/vp415.cpp72
-rw-r--r--src/mame/drivers/vp60.cpp10
-rw-r--r--src/mame/drivers/vpoker.cpp10
-rw-r--r--src/mame/drivers/vroulet.cpp16
-rw-r--r--src/mame/drivers/vsmilepro.cpp4
-rw-r--r--src/mame/drivers/vsnes.cpp30
-rw-r--r--src/mame/drivers/vt100.cpp102
-rw-r--r--src/mame/drivers/vt220.cpp12
-rw-r--r--src/mame/drivers/vt240.cpp56
-rw-r--r--src/mame/drivers/vt320.cpp6
-rw-r--r--src/mame/drivers/vt520.cpp12
-rw-r--r--src/mame/drivers/vta2000.cpp6
-rw-r--r--src/mame/drivers/vtech1.cpp28
-rw-r--r--src/mame/drivers/vtech2.cpp10
-rw-r--r--src/mame/drivers/vtech_eu3a12.cpp2
-rw-r--r--src/mame/drivers/vtech_unk1.cpp2
-rw-r--r--src/mame/drivers/vtech_unk2.cpp2
-rw-r--r--src/mame/drivers/vulgus.cpp16
-rw-r--r--src/mame/drivers/wacky_gator.cpp34
-rw-r--r--src/mame/drivers/wallc.cpp18
-rw-r--r--src/mame/drivers/wangpc.cpp100
-rw-r--r--src/mame/drivers/wardner.cpp46
-rw-r--r--src/mame/drivers/warpsped.cpp8
-rw-r--r--src/mame/drivers/warpwarp.cpp40
-rw-r--r--src/mame/drivers/warriorb.cpp28
-rw-r--r--src/mame/drivers/wc90.cpp18
-rw-r--r--src/mame/drivers/wc90b.cpp24
-rw-r--r--src/mame/drivers/wecleman.cpp36
-rw-r--r--src/mame/drivers/welltris.cpp14
-rw-r--r--src/mame/drivers/wgp.cpp20
-rw-r--r--src/mame/drivers/wheelfir.cpp16
-rw-r--r--src/mame/drivers/white_mod.cpp4
-rw-r--r--src/mame/drivers/whitestar.cpp6
-rw-r--r--src/mame/drivers/wicat.cpp136
-rw-r--r--src/mame/drivers/wico.cpp10
-rw-r--r--src/mame/drivers/wildpkr.cpp18
-rw-r--r--src/mame/drivers/williams.cpp180
-rw-r--r--src/mame/drivers/wink.cpp32
-rw-r--r--src/mame/drivers/wiping.cpp20
-rw-r--r--src/mame/drivers/witch.cpp32
-rw-r--r--src/mame/drivers/wiz.cpp36
-rw-r--r--src/mame/drivers/wmg.cpp24
-rw-r--r--src/mame/drivers/wms.cpp12
-rw-r--r--src/mame/drivers/wolfpack.cpp8
-rw-r--r--src/mame/drivers/wpc_95.cpp8
-rw-r--r--src/mame/drivers/wpc_an.cpp22
-rw-r--r--src/mame/drivers/wpc_dcs.cpp8
-rw-r--r--src/mame/drivers/wpc_dot.cpp20
-rw-r--r--src/mame/drivers/wpc_flip1.cpp20
-rw-r--r--src/mame/drivers/wpc_flip2.cpp20
-rw-r--r--src/mame/drivers/wpc_s.cpp8
-rw-r--r--src/mame/drivers/wrally.cpp16
-rw-r--r--src/mame/drivers/wswan.cpp12
-rw-r--r--src/mame/drivers/wwfsstar.cpp8
-rw-r--r--src/mame/drivers/wyse.cpp6
-rw-r--r--src/mame/drivers/wyvernf0.cpp22
-rw-r--r--src/mame/drivers/x07.cpp8
-rw-r--r--src/mame/drivers/x1.cpp42
-rw-r--r--src/mame/drivers/x1twin.cpp36
-rw-r--r--src/mame/drivers/x68k.cpp64
-rw-r--r--src/mame/drivers/xain.cpp20
-rw-r--r--src/mame/drivers/xavix.cpp12
-rw-r--r--src/mame/drivers/xbox.cpp8
-rw-r--r--src/mame/drivers/xerox820.cpp124
-rw-r--r--src/mame/drivers/xexex.cpp8
-rw-r--r--src/mame/drivers/xmen.cpp18
-rw-r--r--src/mame/drivers/xor100.cpp60
-rw-r--r--src/mame/drivers/xorworld.cpp18
-rw-r--r--src/mame/drivers/xtheball.cpp14
-rw-r--r--src/mame/drivers/xtom3d.cpp8
-rw-r--r--src/mame/drivers/xxmissio.cpp20
-rw-r--r--src/mame/drivers/xybots.cpp6
-rw-r--r--src/mame/drivers/xyonix.cpp14
-rw-r--r--src/mame/drivers/yiear.cpp14
-rw-r--r--src/mame/drivers/ymmu100.cpp10
-rw-r--r--src/mame/drivers/yunsun16.cpp20
-rw-r--r--src/mame/drivers/yunsung8.cpp20
-rw-r--r--src/mame/drivers/yuvomz80.cpp24
-rw-r--r--src/mame/drivers/z100.cpp20
-rw-r--r--src/mame/drivers/z1013.cpp12
-rw-r--r--src/mame/drivers/z80dev.cpp6
-rw-r--r--src/mame/drivers/z80ne.cpp38
-rw-r--r--src/mame/drivers/z88.cpp18
-rw-r--r--src/mame/drivers/z9001.cpp14
-rw-r--r--src/mame/drivers/zac2650.cpp6
-rw-r--r--src/mame/drivers/zac_1.cpp20
-rw-r--r--src/mame/drivers/zac_2.cpp12
-rw-r--r--src/mame/drivers/zac_proto.cpp4
-rw-r--r--src/mame/drivers/zaccaria.cpp20
-rw-r--r--src/mame/drivers/zapcomputer.cpp6
-rw-r--r--src/mame/drivers/zaurus.cpp6
-rw-r--r--src/mame/drivers/zaxxon.cpp90
-rw-r--r--src/mame/drivers/zerozone.cpp10
-rw-r--r--src/mame/drivers/zexall.cpp4
-rw-r--r--src/mame/drivers/zms8085.cpp12
-rw-r--r--src/mame/drivers/zn.cpp168
-rw-r--r--src/mame/drivers/zodiack.cpp18
-rw-r--r--src/mame/drivers/zorba.cpp114
-rw-r--r--src/mame/drivers/zr107.cpp32
-rw-r--r--src/mame/drivers/zrt80.cpp8
-rw-r--r--src/mame/drivers/zsbc3.cpp30
-rw-r--r--src/mame/drivers/zwackery.cpp22
-rw-r--r--src/mame/drivers/zx.cpp26
2149 files changed, 36451 insertions, 36425 deletions
diff --git a/src/mame/drivers/1942.cpp b/src/mame/drivers/1942.cpp
index 0906b49e065..a26e1e0da55 100644
--- a/src/mame/drivers/1942.cpp
+++ b/src/mame/drivers/1942.cpp
@@ -562,13 +562,13 @@ void _1942_state::machine_reset()
MACHINE_CONFIG_START(_1942_state::_1942)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, MAIN_CPU_CLOCK) /* 4 MHz ??? */
- MCFG_CPU_PROGRAM_MAP(c1942_map)
+ MCFG_DEVICE_ADD("maincpu", Z80, MAIN_CPU_CLOCK) /* 4 MHz ??? */
+ MCFG_DEVICE_PROGRAM_MAP(c1942_map)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", _1942_state, c1942_scanline, "screen", 0, 1)
- MCFG_CPU_ADD("audiocpu", Z80, SOUND_CPU_CLOCK) /* 3 MHz ??? */
- MCFG_CPU_PROGRAM_MAP(sound_map)
- MCFG_CPU_PERIODIC_INT_DRIVER(_1942_state, irq0_line_hold, 4*60)
+ MCFG_DEVICE_ADD("audiocpu", Z80, SOUND_CPU_CLOCK) /* 3 MHz ??? */
+ MCFG_DEVICE_PROGRAM_MAP(sound_map)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(_1942_state, irq0_line_hold, 4*60)
/* video hardware */
@@ -591,7 +591,7 @@ MACHINE_CONFIG_START(_1942_state::_1942)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_SOUND_ADD("ay1", AY8910, AUDIO_CLOCK) /* 1.5 MHz */
+ MCFG_DEVICE_ADD("ay1", AY8910, AUDIO_CLOCK) /* 1.5 MHz */
MCFG_AY8910_OUTPUT_TYPE(AY8910_RESISTOR_OUTPUT)
MCFG_AY8910_RES_LOADS(10000.0, 10000.0, 10000.0)
@@ -599,7 +599,7 @@ MACHINE_CONFIG_START(_1942_state::_1942)
MCFG_SOUND_ROUTE(1, "snd_nl", 1.0, 1)
MCFG_SOUND_ROUTE(2, "snd_nl", 1.0, 2)
- MCFG_SOUND_ADD("ay2", AY8910, AUDIO_CLOCK) /* 1.5 MHz */
+ MCFG_DEVICE_ADD("ay2", AY8910, AUDIO_CLOCK) /* 1.5 MHz */
MCFG_AY8910_OUTPUT_TYPE(AY8910_RESISTOR_OUTPUT)
MCFG_AY8910_RES_LOADS(10000.0, 10000.0, 10000.0)
@@ -610,7 +610,7 @@ MACHINE_CONFIG_START(_1942_state::_1942)
/* NETLIST configuration using internal AY8910 resistor values */
/* Minimize resampling between ay8910 and netlist */
- MCFG_SOUND_ADD("snd_nl", NETLIST_SOUND, AUDIO_CLOCK / 8 / 2)
+ MCFG_DEVICE_ADD("snd_nl", NETLIST_SOUND, AUDIO_CLOCK / 8 / 2)
MCFG_NETLIST_SETUP(nl_1942)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 5.0)
MCFG_NETLIST_STREAM_INPUT("snd_nl", 0, "R_AY1_1.R")
@@ -630,14 +630,14 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(_1942_state::_1942p)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, MAIN_CPU_CLOCK_1942P) /* 4 MHz - verified on PCB */
- MCFG_CPU_PROGRAM_MAP(c1942p_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", _1942_state, irq0_line_hold) // note, powerups won't move down the screen with the original '1942' logic.
+ MCFG_DEVICE_ADD("maincpu", Z80, MAIN_CPU_CLOCK_1942P) /* 4 MHz - verified on PCB */
+ MCFG_DEVICE_PROGRAM_MAP(c1942p_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _1942_state, irq0_line_hold) // note, powerups won't move down the screen with the original '1942' logic.
- MCFG_CPU_ADD("audiocpu", Z80, SOUND_CPU_CLOCK_1942P) /* 4 MHz - verified on PCB */
- MCFG_CPU_PROGRAM_MAP(c1942p_sound_map)
- MCFG_CPU_IO_MAP(c1942p_sound_io)
- MCFG_CPU_PERIODIC_INT_DRIVER(_1942_state, irq0_line_hold, 4*60)
+ MCFG_DEVICE_ADD("audiocpu", Z80, SOUND_CPU_CLOCK_1942P) /* 4 MHz - verified on PCB */
+ MCFG_DEVICE_PROGRAM_MAP(c1942p_sound_map)
+ MCFG_DEVICE_IO_MAP(c1942p_sound_io)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(_1942_state, irq0_line_hold, 4*60)
/* video hardware */
@@ -663,9 +663,9 @@ MACHINE_CONFIG_START(_1942_state::_1942p)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI))
- MCFG_SOUND_ADD("ay1", AY8910, AUDIO_CLOCK_1942P) /* 1.25 MHz - verified on PCB */
+ MCFG_DEVICE_ADD("ay1", AY8910, AUDIO_CLOCK_1942P) /* 1.25 MHz - verified on PCB */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
- MCFG_SOUND_ADD("ay2", AY8910, AUDIO_CLOCK_1942P) /* 1.25 MHz - verified on PCB */
+ MCFG_DEVICE_ADD("ay2", AY8910, AUDIO_CLOCK_1942P) /* 1.25 MHz - verified on PCB */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/1943.cpp b/src/mame/drivers/1943.cpp
index e2dc7e6f734..4c17341efb6 100644
--- a/src/mame/drivers/1943.cpp
+++ b/src/mame/drivers/1943.cpp
@@ -314,13 +314,13 @@ void _1943_state::machine_reset()
MACHINE_CONFIG_START(_1943_state::_1943)
// basic machine hardware
- MCFG_CPU_ADD("maincpu", Z80, XTAL(24'000'000)/4) /* verified on pcb */
- MCFG_CPU_PROGRAM_MAP(c1943_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", _1943_state, irq0_line_hold)
+ MCFG_DEVICE_ADD("maincpu", Z80, XTAL(24'000'000)/4) /* verified on pcb */
+ MCFG_DEVICE_PROGRAM_MAP(c1943_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _1943_state, irq0_line_hold)
- MCFG_CPU_ADD("audiocpu", Z80, XTAL(24'000'000)/8) /* verified on pcb */
- MCFG_CPU_PROGRAM_MAP(sound_map)
- MCFG_CPU_PERIODIC_INT_DRIVER(_1943_state, irq0_line_hold, 4*60)
+ MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(24'000'000)/8) /* verified on pcb */
+ MCFG_DEVICE_PROGRAM_MAP(sound_map)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(_1943_state, irq0_line_hold, 4*60)
MCFG_WATCHDOG_ADD("watchdog")
@@ -343,13 +343,13 @@ MACHINE_CONFIG_START(_1943_state::_1943)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_SOUND_ADD("ym1", YM2203, XTAL(24'000'000)/16) /* verified on pcb */
+ MCFG_DEVICE_ADD("ym1", YM2203, XTAL(24'000'000)/16) /* verified on pcb */
MCFG_SOUND_ROUTE(0, "mono", 0.15)
MCFG_SOUND_ROUTE(1, "mono", 0.15)
MCFG_SOUND_ROUTE(2, "mono", 0.15)
MCFG_SOUND_ROUTE(3, "mono", 0.10)
- MCFG_SOUND_ADD("ym2", YM2203, XTAL(24'000'000)/16) /* verified on pcb */
+ MCFG_DEVICE_ADD("ym2", YM2203, XTAL(24'000'000)/16) /* verified on pcb */
MCFG_SOUND_ROUTE(0, "mono", 0.15)
MCFG_SOUND_ROUTE(1, "mono", 0.15)
MCFG_SOUND_ROUTE(2, "mono", 0.15)
diff --git a/src/mame/drivers/1945kiii.cpp b/src/mame/drivers/1945kiii.cpp
index 94797c1b209..b59af74ffd4 100644
--- a/src/mame/drivers/1945kiii.cpp
+++ b/src/mame/drivers/1945kiii.cpp
@@ -384,9 +384,9 @@ void k3_state::machine_start()
MACHINE_CONFIG_START(k3_state::flagrall)
- MCFG_CPU_ADD("maincpu", M68000, MASTER_CLOCK ) // ?
- MCFG_CPU_PROGRAM_MAP(flagrall_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", k3_state, irq4_line_hold)
+ MCFG_DEVICE_ADD("maincpu", M68000, MASTER_CLOCK ) // ?
+ MCFG_DEVICE_PROGRAM_MAP(flagrall_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", k3_state, irq4_line_hold)
MCFG_GFXDECODE_ADD("gfxdecode", "palette", 1945kiii)
@@ -411,8 +411,8 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(k3_state::k3)
flagrall(config);
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(k3_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(k3_map)
MCFG_OKIM6295_ADD("oki2", MASTER_CLOCK/16, PIN7_HIGH) /* dividers? */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
diff --git a/src/mame/drivers/20pacgal.cpp b/src/mame/drivers/20pacgal.cpp
index e3618cd5226..3779b402ef8 100644
--- a/src/mame/drivers/20pacgal.cpp
+++ b/src/mame/drivers/20pacgal.cpp
@@ -396,9 +396,9 @@ WRITE_LINE_MEMBER(_20pacgal_state::vblank_irq)
MACHINE_CONFIG_START(_20pacgal_state::_20pacgal)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z180, MAIN_CPU_CLOCK)
- MCFG_CPU_PROGRAM_MAP(_20pacgal_map)
- MCFG_CPU_IO_MAP(_20pacgal_io_map)
+ MCFG_DEVICE_ADD("maincpu", Z180, MAIN_CPU_CLOCK)
+ MCFG_DEVICE_PROGRAM_MAP(_20pacgal_map)
+ MCFG_DEVICE_IO_MAP(_20pacgal_io_map)
MCFG_EEPROM_SERIAL_93C46_8BIT_ADD("eeprom")
@@ -410,11 +410,11 @@ MACHINE_CONFIG_START(_20pacgal_state::_20pacgal)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("speaker")
- MCFG_SOUND_ADD("namco", NAMCO_CUS30, NAMCO_AUDIO_CLOCK)
+ MCFG_DEVICE_ADD("namco", NAMCO_CUS30, NAMCO_AUDIO_CLOCK)
MCFG_NAMCO_AUDIO_VOICES(3)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
- MCFG_SOUND_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC
+ MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC
MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT)
MACHINE_CONFIG_END
@@ -424,9 +424,9 @@ MACHINE_CONFIG_START(_25pacman_state::_25pacman)
_20pacgal(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(_25pacman_map)
- MCFG_CPU_IO_MAP(_25pacman_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(_25pacman_map)
+ MCFG_DEVICE_IO_MAP(_25pacman_io_map)
MCFG_AMD_29LV200T_ADD("flash")
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/24cdjuke.cpp b/src/mame/drivers/24cdjuke.cpp
index b3678a6711e..aabcd597124 100644
--- a/src/mame/drivers/24cdjuke.cpp
+++ b/src/mame/drivers/24cdjuke.cpp
@@ -283,10 +283,10 @@ void midcoin24cdjuke_state::machine_reset()
MACHINE_CONFIG_START(midcoin24cdjuke_state::midcoin24cdjuke)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80,6000000) /* ? MHz */
- MCFG_CPU_PROGRAM_MAP(midcoin24cdjuke_map)
- MCFG_CPU_IO_MAP(midcoin24cdjuke_io)
- MCFG_CPU_PERIODIC_INT_DRIVER(midcoin24cdjuke_state, irq0_line_hold, 500)
+ MCFG_DEVICE_ADD("maincpu", Z80,6000000) /* ? MHz */
+ MCFG_DEVICE_PROGRAM_MAP(midcoin24cdjuke_map)
+ MCFG_DEVICE_IO_MAP(midcoin24cdjuke_io)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(midcoin24cdjuke_state, irq0_line_hold, 500)
MCFG_DEFAULT_LAYOUT(layout_24cdjuke)
@@ -297,8 +297,8 @@ MACHINE_CONFIG_START(midcoin24cdjuke_state::midcoin24cdjuke)
MCFG_DEVICE_ADD("ic25", I8255A, 0)
MCFG_I8255_IN_PORTB_CB(IOPORT("PB"))
- MCFG_I8255_IN_PORTC_CB(READ8(midcoin24cdjuke_state, kb_row_r))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(midcoin24cdjuke_state, kb_col_w))
+ MCFG_I8255_IN_PORTC_CB(READ8(*this, midcoin24cdjuke_state, kb_row_r))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, midcoin24cdjuke_state, kb_col_w))
MCFG_DEVICE_ADD("ic31", I8255A, 0)
MCFG_I8255_OUT_PORTB_CB(LOGGER("PPI8255 - unmapped write port B"))
diff --git a/src/mame/drivers/2mindril.cpp b/src/mame/drivers/2mindril.cpp
index 75909adb738..3883a588a2f 100644
--- a/src/mame/drivers/2mindril.cpp
+++ b/src/mame/drivers/2mindril.cpp
@@ -355,17 +355,17 @@ MACHINE_RESET_MEMBER(_2mindril_state,drill)
MACHINE_CONFIG_START(_2mindril_state::drill)
- MCFG_CPU_ADD("maincpu", M68000, 16000000 )
- MCFG_CPU_PROGRAM_MAP(drill_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", _2mindril_state, drill_vblank_irq)
- //MCFG_CPU_PERIODIC_INT_DRIVER(_2mindril_state, drill_device_irq, 60)
+ MCFG_DEVICE_ADD("maincpu", M68000, 16000000 )
+ MCFG_DEVICE_PROGRAM_MAP(drill_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _2mindril_state, drill_vblank_irq)
+ //MCFG_DEVICE_PERIODIC_INT_DRIVER(_2mindril_state, drill_device_irq, 60)
MCFG_GFXDECODE_ADD("gfxdecode", "palette", 2mindril)
MCFG_DEVICE_ADD("tc0510nio", TC0510NIO, 0)
MCFG_TC0510NIO_READ_0_CB(IOPORT("DSW"))
- MCFG_TC0510NIO_READ_1_CB(READ8(_2mindril_state, arm_pwr_r))
- MCFG_TC0510NIO_READ_2_CB(READ8(_2mindril_state, sensors_r))
- MCFG_TC0510NIO_WRITE_4_CB(WRITE8(_2mindril_state, coins_w))
+ MCFG_TC0510NIO_READ_1_CB(READ8(*this, _2mindril_state, arm_pwr_r))
+ MCFG_TC0510NIO_READ_2_CB(READ8(*this, _2mindril_state, sensors_r))
+ MCFG_TC0510NIO_WRITE_4_CB(WRITE8(*this, _2mindril_state, coins_w))
MCFG_TC0510NIO_READ_7_CB(IOPORT("COINS"))
MCFG_MACHINE_START_OVERRIDE(_2mindril_state,drill)
@@ -377,7 +377,7 @@ MACHINE_CONFIG_START(_2mindril_state::drill)
MCFG_SCREEN_SIZE(40*8+48*2, 32*8)
MCFG_SCREEN_VISIBLE_AREA(46, 40*8-1 + 46, 24, 24+224-1)
MCFG_SCREEN_UPDATE_DRIVER(_2mindril_state, screen_update_f3)
- MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(_2mindril_state, screen_vblank_f3))
+ MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, _2mindril_state, screen_vblank_f3))
MCFG_PALETTE_ADD("palette", 0x2000)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
@@ -386,8 +386,8 @@ MACHINE_CONFIG_START(_2mindril_state::drill)
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
- MCFG_SOUND_ADD("ymsnd", YM2610B, 16000000/2)
- MCFG_YM2610_IRQ_HANDLER(WRITELINE(_2mindril_state, irqhandler))
+ MCFG_DEVICE_ADD("ymsnd", YM2610B, 16000000/2)
+ MCFG_YM2610_IRQ_HANDLER(WRITELINE(*this, _2mindril_state, irqhandler))
MCFG_SOUND_ROUTE(0, "lspeaker", 0.25)
MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.0)
diff --git a/src/mame/drivers/30test.cpp b/src/mame/drivers/30test.cpp
index b849bcdff16..133ed2c9872 100644
--- a/src/mame/drivers/30test.cpp
+++ b/src/mame/drivers/30test.cpp
@@ -256,9 +256,9 @@ void namco_30test_state::machine_start()
MACHINE_CONFIG_START(namco_30test_state::_30test)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", MC68HC11,MAIN_CLOCK/4)
- MCFG_CPU_PROGRAM_MAP(namco_30test_map)
- MCFG_CPU_IO_MAP(namco_30test_io)
+ MCFG_DEVICE_ADD("maincpu", MC68HC11,MAIN_CLOCK/4)
+ MCFG_DEVICE_PROGRAM_MAP(namco_30test_map)
+ MCFG_DEVICE_IO_MAP(namco_30test_io)
MCFG_MC68HC11_CONFIG( 0, 768, 0x00 )
diff --git a/src/mame/drivers/39in1.cpp b/src/mame/drivers/39in1.cpp
index d5a4a6c2fb2..78365d41023 100644
--- a/src/mame/drivers/39in1.cpp
+++ b/src/mame/drivers/39in1.cpp
@@ -1585,9 +1585,9 @@ MACHINE_START_MEMBER(_39in1_state,60in1)
MACHINE_CONFIG_START(_39in1_state::_39in1)
- MCFG_CPU_ADD("maincpu", PXA255, 200000000)
- MCFG_CPU_PROGRAM_MAP(_39in1_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", _39in1_state, pxa255_vblank_start)
+ MCFG_DEVICE_ADD("maincpu", PXA255, 200000000)
+ MCFG_DEVICE_PROGRAM_MAP(_39in1_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _39in1_state, pxa255_vblank_start)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
@@ -1602,9 +1602,9 @@ MACHINE_CONFIG_START(_39in1_state::_39in1)
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
- MCFG_SOUND_ADD("dac1", DMADAC, 0)
+ MCFG_DEVICE_ADD("dac1", DMADAC)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
- MCFG_SOUND_ADD("dac2", DMADAC, 0)
+ MCFG_DEVICE_ADD("dac2", DMADAC)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/3do.cpp b/src/mame/drivers/3do.cpp
index 15b6b768e85..2f6736209c5 100644
--- a/src/mame/drivers/3do.cpp
+++ b/src/mame/drivers/3do.cpp
@@ -158,8 +158,8 @@ void _3do_state::machine_reset()
MACHINE_CONFIG_START(_3do_state::_3do)
/* Basic machine hardware */
- MCFG_CPU_ADD( "maincpu", ARM7_BE, XTAL(50'000'000)/4 )
- MCFG_CPU_PROGRAM_MAP( _3do_mem)
+ MCFG_DEVICE_ADD( "maincpu", ARM7_BE, XTAL(50'000'000)/4 )
+ MCFG_DEVICE_PROGRAM_MAP( _3do_mem)
MCFG_NVRAM_ADD_1FILL("nvram")
@@ -178,8 +178,8 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(_3do_state::_3do_pal)
/* Basic machine hardware */
- MCFG_CPU_ADD("maincpu", ARM7_BE, XTAL(50'000'000)/4 )
- MCFG_CPU_PROGRAM_MAP( _3do_mem)
+ MCFG_DEVICE_ADD("maincpu", ARM7_BE, XTAL(50'000'000)/4 )
+ MCFG_DEVICE_PROGRAM_MAP( _3do_mem)
MCFG_NVRAM_ADD_1FILL("nvram")
diff --git a/src/mame/drivers/3x3puzzl.cpp b/src/mame/drivers/3x3puzzl.cpp
index fb05e097365..91c2e70584d 100644
--- a/src/mame/drivers/3x3puzzl.cpp
+++ b/src/mame/drivers/3x3puzzl.cpp
@@ -388,9 +388,9 @@ void _3x3puzzle_state::machine_reset()
MACHINE_CONFIG_START(_3x3puzzle_state::_3x3puzzle)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu",M68000,MAIN_CLOCK)
- MCFG_CPU_PROGRAM_MAP(_3x3puzzle_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", _3x3puzzle_state, irq4_line_hold)
+ MCFG_DEVICE_ADD("maincpu",M68000,MAIN_CLOCK)
+ MCFG_DEVICE_PROGRAM_MAP(_3x3puzzle_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _3x3puzzle_state, irq4_line_hold)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/4004clk.cpp b/src/mame/drivers/4004clk.cpp
index 243212fcf18..446a1d8c7d3 100644
--- a/src/mame/drivers/4004clk.cpp
+++ b/src/mame/drivers/4004clk.cpp
@@ -138,7 +138,7 @@ void nixieclock_state::machine_start()
MACHINE_CONFIG_START(nixieclock_state::_4004clk)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", I4004, 5_MHz_XTAL / 8);
+ MCFG_DEVICE_ADD("maincpu", I4004, 5_MHz_XTAL / 8);
MCFG_I4004_ROM_MAP(_4004clk_rom)
MCFG_I4004_RAM_MEMORY_MAP(_4004clk_mem)
MCFG_I4004_ROM_PORTS_MAP(_4004clk_rp)
@@ -150,7 +150,7 @@ MACHINE_CONFIG_START(nixieclock_state::_4004clk)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("speaker")
- MCFG_SOUND_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
+ MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT)
diff --git a/src/mame/drivers/40love.cpp b/src/mame/drivers/40love.cpp
index eb0059b357f..b460f91248b 100644
--- a/src/mame/drivers/40love.cpp
+++ b/src/mame/drivers/40love.cpp
@@ -705,16 +705,16 @@ MACHINE_RESET_MEMBER(fortyl_state,40love)
MACHINE_CONFIG_START(fortyl_state::_40love)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu",Z80,8000000/2) /* OK */
- MCFG_CPU_PROGRAM_MAP(_40love_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", fortyl_state, irq0_line_hold)
+ MCFG_DEVICE_ADD("maincpu",Z80,8000000/2) /* OK */
+ MCFG_DEVICE_PROGRAM_MAP(_40love_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", fortyl_state, irq0_line_hold)
- MCFG_CPU_ADD("audiocpu",Z80,8000000/2) /* OK */
- MCFG_CPU_PROGRAM_MAP(sound_map)
- MCFG_CPU_PERIODIC_INT_DRIVER(fortyl_state, irq0_line_hold, 2*60) /* source/number of IRQs is unknown */
+ MCFG_DEVICE_ADD("audiocpu",Z80,8000000/2) /* OK */
+ MCFG_DEVICE_PROGRAM_MAP(sound_map)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(fortyl_state, irq0_line_hold, 2*60) /* source/number of IRQs is unknown */
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_GENERIC_LATCH_DATA_PENDING_CB(DEVWRITELINE("soundnmi", input_merger_device, in_w<0>))
+ MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>))
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
@@ -744,12 +744,12 @@ MACHINE_CONFIG_START(fortyl_state::_40love)
MCFG_TA7630_ADD("ta7630")
- MCFG_SOUND_ADD("aysnd", AY8910, 2000000)
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(fortyl_state, sound_control_2_w))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(fortyl_state, sound_control_3_w))
+ MCFG_DEVICE_ADD("aysnd", AY8910, 2000000)
+ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, fortyl_state, sound_control_2_w))
+ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, fortyl_state, sound_control_3_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1)
- MCFG_SOUND_ADD("msm", MSM5232, 8000000/4)
+ MCFG_DEVICE_ADD("msm", MSM5232, 8000000/4)
MCFG_MSM5232_SET_CAPACITORS(1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6) /* 1.0 uF capacitors (verified on real PCB) */
MCFG_SOUND_ROUTE(0, "speaker", 1.0) // pin 28 2'-1
MCFG_SOUND_ROUTE(1, "speaker", 1.0) // pin 29 4'-1
@@ -763,7 +763,7 @@ MACHINE_CONFIG_START(fortyl_state::_40love)
// pin 2 SOLO 16' not mapped
// pin 22 Noise Output not mapped
- MCFG_SOUND_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC
+ MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC
MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT)
MACHINE_CONFIG_END
@@ -771,16 +771,16 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(fortyl_state::undoukai)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu",Z80,8000000/2)
- MCFG_CPU_PROGRAM_MAP(undoukai_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", fortyl_state, irq0_line_hold)
+ MCFG_DEVICE_ADD("maincpu",Z80,8000000/2)
+ MCFG_DEVICE_PROGRAM_MAP(undoukai_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", fortyl_state, irq0_line_hold)
- MCFG_CPU_ADD("audiocpu",Z80,8000000/2)
- MCFG_CPU_PROGRAM_MAP(sound_map)
- MCFG_CPU_PERIODIC_INT_DRIVER(fortyl_state, irq0_line_hold, 2*60) /* source/number of IRQs is unknown */
+ MCFG_DEVICE_ADD("audiocpu",Z80,8000000/2)
+ MCFG_DEVICE_PROGRAM_MAP(sound_map)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(fortyl_state, irq0_line_hold, 2*60) /* source/number of IRQs is unknown */
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_GENERIC_LATCH_DATA_PENDING_CB(DEVWRITELINE("soundnmi", input_merger_device, in_w<0>))
+ MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>))
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
@@ -810,12 +810,12 @@ MACHINE_CONFIG_START(fortyl_state::undoukai)
MCFG_TA7630_ADD("ta7630")
- MCFG_SOUND_ADD("aysnd", AY8910, 2000000)
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(fortyl_state, sound_control_2_w))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(fortyl_state, sound_control_3_w))
+ MCFG_DEVICE_ADD("aysnd", AY8910, 2000000)
+ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, fortyl_state, sound_control_2_w))
+ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, fortyl_state, sound_control_3_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1)
- MCFG_SOUND_ADD("msm", MSM5232, 8000000/4)
+ MCFG_DEVICE_ADD("msm", MSM5232, 8000000/4)
MCFG_MSM5232_SET_CAPACITORS(1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6) /* 1.0 uF capacitors (verified on real PCB) */
MCFG_SOUND_ROUTE(0, "speaker", 1.0) // pin 28 2'-1
MCFG_SOUND_ROUTE(1, "speaker", 1.0) // pin 29 4'-1
@@ -829,7 +829,7 @@ MACHINE_CONFIG_START(fortyl_state::undoukai)
// pin 2 SOLO 16' not mapped
// pin 22 Noise Output not mapped
- MCFG_SOUND_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC
+ MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC
MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/4dpi.cpp b/src/mame/drivers/4dpi.cpp
index ed3a11de476..ca899fdc065 100644
--- a/src/mame/drivers/4dpi.cpp
+++ b/src/mame/drivers/4dpi.cpp
@@ -231,10 +231,10 @@ void sgi_ip6_state::sgi_ip6_map(address_map &map)
***************************************************************************/
MACHINE_CONFIG_START(sgi_ip6_state::sgi_ip6)
- MCFG_CPU_ADD( "maincpu", R3041, 20000000 ) // FIXME: Should be R2000
+ MCFG_DEVICE_ADD( "maincpu", R3041, 20000000 ) // FIXME: Should be R2000
MCFG_R3000_ENDIANNESS(ENDIANNESS_BIG)
- MCFG_CPU_PROGRAM_MAP( sgi_ip6_map )
- MCFG_CPU_VBLANK_INT_DRIVER("screen", sgi_ip6_state, sgi_ip6_vbl)
+ MCFG_DEVICE_PROGRAM_MAP( sgi_ip6_map )
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", sgi_ip6_state, sgi_ip6_vbl)
/* video hardware */
diff --git a/src/mame/drivers/4enlinea.cpp b/src/mame/drivers/4enlinea.cpp
index 406ddc091a2..d7098152e89 100644
--- a/src/mame/drivers/4enlinea.cpp
+++ b/src/mame/drivers/4enlinea.cpp
@@ -502,20 +502,21 @@ INTERRUPT_GEN_MEMBER(_4enlinea_state::_4enlinea_audio_irq)
MACHINE_CONFIG_START(_4enlinea_state::_4enlinea)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, PRG_CPU_CLOCK)
- MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_CPU_IO_MAP(main_portmap)
- MCFG_CPU_PERIODIC_INT_DRIVER(_4enlinea_state, _4enlinea_irq, 60) //TODO
-// MCFG_CPU_PERIODIC_INT_DRIVER(_4enlinea_state, irq0_line_hold, 4*35)
-
- MCFG_CPU_ADD("audiocpu", Z80, SND_CPU_CLOCK)
- MCFG_CPU_PROGRAM_MAP(audio_map)
- MCFG_CPU_IO_MAP(audio_portmap)
- MCFG_CPU_PERIODIC_INT_DRIVER(_4enlinea_state, _4enlinea_audio_irq, 60) //TODO
-
+ MCFG_DEVICE_ADD("maincpu", Z80, PRG_CPU_CLOCK)
+ MCFG_DEVICE_PROGRAM_MAP(main_map)
+ MCFG_DEVICE_IO_MAP(main_portmap)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(_4enlinea_state, _4enlinea_irq, 60) //TODO
+// MCFG_DEVICE_PERIODIC_INT_DRIVER(_4enlinea_state, irq0_line_hold, 4*35)
+
+ MCFG_DEVICE_ADD("audiocpu", Z80, SND_CPU_CLOCK)
+ MCFG_DEVICE_PROGRAM_MAP(audio_map)
+ MCFG_DEVICE_IO_MAP(audio_portmap)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(_4enlinea_state, _4enlinea_audio_irq, 60) //TODO
+
+ // FIXME: determine ISA bus clock
MCFG_DEVICE_ADD("isa", ISA8, 0)
MCFG_ISA8_CPU("maincpu")
- MCFG_ISA8_SLOT_ADD("isa", "isa1", _4enlinea_isa8_cards, "4enlinea", true)
+ MCFG_DEVICE_ADD("isa1", ISA8_SLOT, 0, "isa", _4enlinea_isa8_cards, "4enlinea", true)
/* 6845 clock is a guess, since it's a UM6845R embedded in the UM487F.
@@ -529,7 +530,7 @@ MACHINE_CONFIG_START(_4enlinea_state::_4enlinea)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("aysnd", AY8910, SND_AY_CLOCK)
+ MCFG_DEVICE_ADD("aysnd", AY8910, SND_AY_CLOCK)
MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN-P2"))
MCFG_AY8910_PORT_B_READ_CB(IOPORT("IN-P1"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
diff --git a/src/mame/drivers/4enraya.cpp b/src/mame/drivers/4enraya.cpp
index 38e97f77ab0..22a100e519c 100644
--- a/src/mame/drivers/4enraya.cpp
+++ b/src/mame/drivers/4enraya.cpp
@@ -473,10 +473,10 @@ void _4enraya_state::machine_reset()
MACHINE_CONFIG_START(_4enraya_state::_4enraya )
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, MAIN_CLOCK/2)
- MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_CPU_IO_MAP(main_portmap)
- MCFG_CPU_PERIODIC_INT_DRIVER(_4enraya_state, irq0_line_hold, 4*60) // unknown timing
+ MCFG_DEVICE_ADD("maincpu", Z80, MAIN_CLOCK/2)
+ MCFG_DEVICE_PROGRAM_MAP(main_map)
+ MCFG_DEVICE_IO_MAP(main_portmap)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(_4enraya_state, irq0_line_hold, 4*60) // unknown timing
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -493,7 +493,7 @@ MACHINE_CONFIG_START(_4enraya_state::_4enraya )
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("aysnd", AY8910, MAIN_CLOCK/4) /* guess */
+ MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_CLOCK/4) /* guess */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.3)
MACHINE_CONFIG_END
@@ -502,14 +502,14 @@ MACHINE_CONFIG_START(_4enraya_state::unkpacg)
_4enraya(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(unkpacg_main_map)
- MCFG_CPU_IO_MAP(unkpacg_main_portmap)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(unkpacg_main_map)
+ MCFG_DEVICE_IO_MAP(unkpacg_main_portmap)
MCFG_NVRAM_ADD_0FILL("nvram")
/* sound hardware */
// MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_REPLACE("aysnd", AY8910, MAIN_CLOCK/4) /* guess */
+ MCFG_DEVICE_REPLACE("aysnd", AY8910, MAIN_CLOCK/4) /* guess */
MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/4roses.cpp b/src/mame/drivers/4roses.cpp
index b1a47fc2673..4467378a25a 100644
--- a/src/mame/drivers/4roses.cpp
+++ b/src/mame/drivers/4roses.cpp
@@ -442,9 +442,9 @@ GFXDECODE_END
MACHINE_CONFIG_START(_4roses_state::_4roses)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M65C02, MASTER_CLOCK/8) /* 2MHz, guess */
- MCFG_CPU_PROGRAM_MAP(_4roses_map)
- MCFG_CPU_OPCODES_MAP(_4roses_opcodes_map)
+ MCFG_DEVICE_ADD("maincpu", M65C02, MASTER_CLOCK/8) /* 2MHz, guess */
+ MCFG_DEVICE_PROGRAM_MAP(_4roses_map)
+ MCFG_DEVICE_OPCODES_MAP(_4roses_opcodes_map)
// MCFG_NVRAM_ADD_0FILL("nvram")
@@ -472,15 +472,15 @@ MACHINE_CONFIG_START(_4roses_state::_4roses)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("ay8910", AY8910, MASTER_CLOCK/8) /* 2MHz, guess */
+ MCFG_DEVICE_ADD("ay8910", AY8910, MASTER_CLOCK/8) /* 2MHz, guess */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.5)
MACHINE_CONFIG_END
MACHINE_CONFIG_START(_4roses_state::rugby)
_4roses(config);
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(rugby_map)
- MCFG_CPU_OPCODES_MAP(rugby_opcodes_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(rugby_map)
+ MCFG_DEVICE_OPCODES_MAP(rugby_opcodes_map)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/5clown.cpp b/src/mame/drivers/5clown.cpp
index 3ee6a443932..c091207f7b1 100644
--- a/src/mame/drivers/5clown.cpp
+++ b/src/mame/drivers/5clown.cpp
@@ -1022,24 +1022,24 @@ GFXDECODE_END
MACHINE_CONFIG_START(_5clown_state::fclown)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M6502, MASTER_CLOCK/8) /* guess, seems ok */
- MCFG_CPU_PROGRAM_MAP(fclown_map)
+ MCFG_DEVICE_ADD("maincpu", M6502, MASTER_CLOCK/8) /* guess, seems ok */
+ MCFG_DEVICE_PROGRAM_MAP(fclown_map)
- MCFG_CPU_ADD("audiocpu", M6502, MASTER_CLOCK/8) /* guess, seems ok */
- MCFG_CPU_PROGRAM_MAP(fcaudio_map)
+ MCFG_DEVICE_ADD("audiocpu", M6502, MASTER_CLOCK/8) /* guess, seems ok */
+ MCFG_DEVICE_PROGRAM_MAP(fcaudio_map)
MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_DEVICE_ADD("pia0", PIA6821, 0)
- MCFG_PIA_READPA_HANDLER(READ8(_5clown_state, mux_port_r))
- MCFG_PIA_READPB_HANDLER(READ8(_5clown_state, pia0_b_r))
- MCFG_PIA_WRITEPB_HANDLER(WRITE8(_5clown_state, counters_w))
+ MCFG_PIA_READPA_HANDLER(READ8(*this, _5clown_state, mux_port_r))
+ MCFG_PIA_READPB_HANDLER(READ8(*this, _5clown_state, pia0_b_r))
+ MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, _5clown_state, counters_w))
MCFG_DEVICE_ADD("pia1", PIA6821, 0)
MCFG_PIA_READPA_HANDLER(IOPORT("SW4"))
- MCFG_PIA_READPB_HANDLER(READ8(_5clown_state, pia1_b_r))
- MCFG_PIA_WRITEPA_HANDLER(WRITE8(_5clown_state, trigsnd_w))
- MCFG_PIA_WRITEPB_HANDLER(WRITE8(_5clown_state, mux_w))
+ MCFG_PIA_READPB_HANDLER(READ8(*this, _5clown_state, pia1_b_r))
+ MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, _5clown_state, trigsnd_w))
+ MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, _5clown_state, mux_w))
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -1062,7 +1062,7 @@ MACHINE_CONFIG_START(_5clown_state::fclown)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("ay8910", AY8910, MASTER_CLOCK/8) /* guess, seems ok */
+ MCFG_DEVICE_ADD("ay8910", AY8910, MASTER_CLOCK/8) /* guess, seems ok */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
MCFG_OKIM6295_ADD("oki6295", MASTER_CLOCK/12, PIN7_LOW) /* guess, seems ok; pin7 guessed, seems ok */
diff --git a/src/mame/drivers/68ksbc.cpp b/src/mame/drivers/68ksbc.cpp
index 354080565dd..9c90d310bdc 100644
--- a/src/mame/drivers/68ksbc.cpp
+++ b/src/mame/drivers/68ksbc.cpp
@@ -63,20 +63,20 @@ INPUT_PORTS_END
MACHINE_CONFIG_START(c68ksbc_state::c68ksbc)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M68000, 8000000) // text says 8MHz, schematic says 10MHz
- MCFG_CPU_PROGRAM_MAP(c68ksbc_mem)
+ MCFG_DEVICE_ADD("maincpu", M68000, 8000000) // text says 8MHz, schematic says 10MHz
+ MCFG_DEVICE_PROGRAM_MAP(c68ksbc_mem)
MCFG_DEVICE_ADD("acia", ACIA6850, 0)
- MCFG_ACIA6850_TXD_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_txd))
- MCFG_ACIA6850_RTS_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_rts))
+ MCFG_ACIA6850_TXD_HANDLER(WRITELINE("rs232", rs232_port_device, write_txd))
+ MCFG_ACIA6850_RTS_HANDLER(WRITELINE("rs232", rs232_port_device, write_rts))
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, "terminal")
- MCFG_RS232_RXD_HANDLER(DEVWRITELINE("acia", acia6850_device, write_rxd))
- MCFG_RS232_CTS_HANDLER(DEVWRITELINE("acia", acia6850_device, write_cts))
+ MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, "terminal")
+ MCFG_RS232_RXD_HANDLER(WRITELINE("acia", acia6850_device, write_rxd))
+ MCFG_RS232_CTS_HANDLER(WRITELINE("acia", acia6850_device, write_cts))
MCFG_DEVICE_ADD("acia_clock", CLOCK, 153600)
- MCFG_CLOCK_SIGNAL_HANDLER(DEVWRITELINE("acia", acia6850_device, write_txc))
- MCFG_DEVCB_CHAIN_OUTPUT(DEVWRITELINE("acia", acia6850_device, write_rxc))
+ MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE("acia", acia6850_device, write_txc))
+ MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("acia", acia6850_device, write_rxc))
MACHINE_CONFIG_END
/* ROM definition */
diff --git a/src/mame/drivers/8080bw.cpp b/src/mame/drivers/8080bw.cpp
index 92e3241de53..06a03a192a2 100644
--- a/src/mame/drivers/8080bw.cpp
+++ b/src/mame/drivers/8080bw.cpp
@@ -410,8 +410,8 @@ MACHINE_CONFIG_START(_8080bw_state::invadpt2)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(invadpt2_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(invadpt2_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
/* 60 Hz signal clocks two LS161. Ripple carry will */
@@ -455,8 +455,8 @@ MACHINE_CONFIG_START(_8080bw_state::spacerng)
invadpt2(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(spacerng_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(spacerng_io_map)
MACHINE_CONFIG_END
@@ -498,8 +498,8 @@ MACHINE_CONFIG_START(_8080bw_state::spcewars)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(spcewars_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(spcewars_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
/* add shifter */
@@ -509,7 +509,7 @@ MACHINE_CONFIG_START(_8080bw_state::spcewars)
invaders_samples_audio(config);
/* extra audio channel */
- MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
+ MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
/* video hardware */
@@ -540,8 +540,8 @@ void _8080bw_state::spcewarla_io_map(address_map &map)
MACHINE_CONFIG_START(_8080bw_state::spcewarla)
spcewars(config);
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(spcewarla_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(spcewarla_io_map)
MCFG_WATCHDOG_ADD("watchdog")
MCFG_WATCHDOG_VBLANK_INIT("screen", 255)
@@ -610,8 +610,8 @@ MACHINE_CONFIG_START(_8080bw_state::astropal)
invaders(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(astropal_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(astropal_io_map)
MACHINE_CONFIG_END
@@ -664,9 +664,9 @@ MACHINE_CONFIG_START(_8080bw_state::cosmo)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(cosmo_map)
- MCFG_CPU_IO_MAP(cosmo_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(cosmo_map)
+ MCFG_DEVICE_IO_MAP(cosmo_io_map)
MCFG_WATCHDOG_ADD("watchdog")
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
@@ -823,10 +823,10 @@ void _8080bw_state::spacecom_io_map(address_map &map)
MACHINE_CONFIG_START(_8080bw_state::spacecom)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", I8080A, XTAL(18'000'000) / 10) // divider guessed
+ MCFG_DEVICE_ADD("maincpu", I8080A, XTAL(18'000'000) / 10) // divider guessed
// TODO: move irq handling away from mw8080.c, this game runs on custom hardware
- MCFG_CPU_PROGRAM_MAP(spacecom_map)
- MCFG_CPU_IO_MAP(spacecom_io_map)
+ MCFG_DEVICE_PROGRAM_MAP(spacecom_map)
+ MCFG_DEVICE_IO_MAP(spacecom_io_map)
MCFG_MACHINE_START_OVERRIDE(mw8080bw_state, mw8080bw)
MCFG_MACHINE_RESET_OVERRIDE(mw8080bw_state, mw8080bw)
@@ -938,13 +938,13 @@ MACHINE_CONFIG_START(_8080bw_state::invrvnge)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(invrvnge_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(invrvnge_io_map)
MCFG_WATCHDOG_ADD("watchdog")
- MCFG_CPU_ADD("audiocpu", M6808, XTAL(4'000'000)/2) // MC6808P
- MCFG_CPU_PROGRAM_MAP(invrvnge_sound_map)
+ MCFG_DEVICE_ADD("audiocpu", M6808, XTAL(4'000'000)/2) // MC6808P
+ MCFG_DEVICE_PROGRAM_MAP(invrvnge_sound_map)
/* add shifter */
MCFG_MB14241_ADD("mb14241")
@@ -960,7 +960,7 @@ MACHINE_CONFIG_START(_8080bw_state::invrvnge)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("ay1", AY8910, XTAL(4'000'000)/2)
+ MCFG_DEVICE_ADD("ay1", AY8910, XTAL(4'000'000)/2)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
MACHINE_CONFIG_END
@@ -1076,8 +1076,8 @@ void _8080bw_state::starw1_io_map(address_map &map)
MACHINE_CONFIG_START(_8080bw_state::starw1)
invadpt2(config);
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(starw1_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(starw1_io_map)
MACHINE_CONFIG_END
/*******************************************************/
@@ -1120,8 +1120,8 @@ MACHINE_CONFIG_START(_8080bw_state::lrescue)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(lrescue_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(lrescue_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
/* add shifter */
@@ -1136,22 +1136,22 @@ MACHINE_CONFIG_START(_8080bw_state::lrescue)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("samples", SAMPLES, 0)
+ MCFG_DEVICE_ADD("samples", SAMPLES)
MCFG_SAMPLES_CHANNELS(4)
MCFG_SAMPLES_NAMES(lrescue_sample_names)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
/* extra audio channel */
- MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
+ MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MACHINE_CONFIG_END
MACHINE_CONFIG_START(_8080bw_state::escmars)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", I8080, XTAL(18'000'000) / 10) // divider guessed
- MCFG_CPU_PROGRAM_MAP(escmars_map)
- MCFG_CPU_IO_MAP(lrescue_io_map)
+ MCFG_DEVICE_ADD("maincpu", I8080, XTAL(18'000'000) / 10) // divider guessed
+ MCFG_DEVICE_PROGRAM_MAP(escmars_map)
+ MCFG_DEVICE_IO_MAP(lrescue_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state, extra_8080bw)
MCFG_MACHINE_RESET_OVERRIDE(_8080bw_state, mw8080bw)
@@ -1169,13 +1169,13 @@ MACHINE_CONFIG_START(_8080bw_state::escmars)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("samples", SAMPLES, 0)
+ MCFG_DEVICE_ADD("samples", SAMPLES)
MCFG_SAMPLES_CHANNELS(4)
MCFG_SAMPLES_NAMES(lrescue_sample_names)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
/* extra audio channel */
- MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
+ MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MACHINE_CONFIG_END
@@ -1249,9 +1249,9 @@ MACHINE_CONFIG_START(_8080bw_state::cosmicmo)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(cosmicmo_io_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", _8080bw_state, irq0_line_hold)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(cosmicmo_io_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _8080bw_state, irq0_line_hold)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
@@ -1402,9 +1402,9 @@ MACHINE_CONFIG_START(_8080bw_state::rollingc)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(rollingc_map)
- MCFG_CPU_IO_MAP(rollingc_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(rollingc_map)
+ MCFG_DEVICE_IO_MAP(rollingc_io_map)
/* add shifter */
MCFG_MB14241_ADD("mb14241")
@@ -1545,9 +1545,9 @@ MACHINE_CONFIG_START(_8080bw_state::schaser)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_REPLACE("maincpu",I8080,1996800) /* 19.968MHz / 10 */
- MCFG_CPU_PROGRAM_MAP(schaser_map)
- MCFG_CPU_IO_MAP(schaser_io_map)
+ MCFG_DEVICE_REPLACE("maincpu",I8080,1996800) /* 19.968MHz / 10 */
+ MCFG_DEVICE_PROGRAM_MAP(schaser_map)
+ MCFG_DEVICE_IO_MAP(schaser_io_map)
MCFG_WATCHDOG_ADD("watchdog")
MCFG_WATCHDOG_VBLANK_INIT("screen", 255)
@@ -1568,7 +1568,7 @@ MACHINE_CONFIG_START(_8080bw_state::schaser)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("snsnd", SN76477, 0)
+ MCFG_DEVICE_ADD("snsnd", SN76477)
MCFG_SN76477_NOISE_PARAMS(RES_K(47), RES_K(330), CAP_P(470)) // noise + filter
MCFG_SN76477_DECAY_RES(RES_M(2.2)) // decay_res
MCFG_SN76477_ATTACK_PARAMS(CAP_U(1.0), RES_K(4.7)) // attack_decay_cap + attack_res
@@ -1584,7 +1584,7 @@ MACHINE_CONFIG_START(_8080bw_state::schaser)
MCFG_SN76477_ENABLE(1) // enable
MCFG_SOUND_ROUTE(0, "discrete", 1.0, 0)
- MCFG_SOUND_ADD("discrete", DISCRETE, 0)
+ MCFG_DEVICE_ADD("discrete", DISCRETE)
MCFG_DISCRETE_INTF(schaser)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MACHINE_CONFIG_END
@@ -1682,9 +1682,9 @@ MACHINE_CONFIG_START(_8080bw_state::schasercv)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(schaser_map)
- MCFG_CPU_IO_MAP(schasercv_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(schaser_map)
+ MCFG_DEVICE_IO_MAP(schasercv_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state, schasercv)
/* add shifter */
@@ -1699,14 +1699,14 @@ MACHINE_CONFIG_START(_8080bw_state::schasercv)
/* sound hardware */
invaders_samples_audio(config);
- MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
+ MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MACHINE_CONFIG_END
MACHINE_CONFIG_START(_8080bw_state::crashrd)
schaser(config);
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(crashrd_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(crashrd_io_map)
MACHINE_CONFIG_END
@@ -1781,9 +1781,9 @@ MACHINE_CONFIG_START(_8080bw_state::sflush)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_REPLACE("maincpu",M6800,1500000) // ?
- MCFG_CPU_PROGRAM_MAP(sflush_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", _8080bw_state, irq0_line_hold)
+ MCFG_DEVICE_REPLACE("maincpu",M6800,1500000) // ?
+ MCFG_DEVICE_PROGRAM_MAP(sflush_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _8080bw_state, irq0_line_hold)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,sflush)
/* add shifter */
@@ -1886,8 +1886,8 @@ MACHINE_CONFIG_START(_8080bw_state::lupin3)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(lupin3_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(lupin3_io_map)
MCFG_WATCHDOG_ADD("watchdog")
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
@@ -1903,7 +1903,7 @@ MACHINE_CONFIG_START(_8080bw_state::lupin3)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("snsnd", SN76477, 0)
+ MCFG_DEVICE_ADD("snsnd", SN76477)
MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C
MCFG_SN76477_DECAY_RES(0) // decay_res: N/C
MCFG_SN76477_ATTACK_PARAMS(0, RES_K(100)) // attack_decay_cap + attack_res
@@ -1919,20 +1919,20 @@ MACHINE_CONFIG_START(_8080bw_state::lupin3)
MCFG_SN76477_ENABLE(1) // enable
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
- MCFG_SOUND_ADD("samples", SAMPLES, 0)
+ MCFG_DEVICE_ADD("samples", SAMPLES)
MCFG_SAMPLES_CHANNELS(4)
MCFG_SAMPLES_NAMES(lupin3_sample_names)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
- MCFG_SOUND_ADD("discrete", DISCRETE, 0)
+ MCFG_DEVICE_ADD("discrete", DISCRETE)
MCFG_DISCRETE_INTF(indianbt)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MACHINE_CONFIG_END
MACHINE_CONFIG_START(_8080bw_state::lupin3a)
lupin3(config);
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(schaser_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(schaser_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,sflush)
/* video hardware */
MCFG_SCREEN_MODIFY("screen")
@@ -2053,10 +2053,10 @@ MACHINE_CONFIG_START(_8080bw_state::polaris)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_REPLACE("maincpu",I8080,1996800) /* 19.968MHz / 10 */
- MCFG_CPU_PROGRAM_MAP(schaser_map)
- MCFG_CPU_IO_MAP(polaris_io_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", _8080bw_state, polaris_interrupt)
+ MCFG_DEVICE_REPLACE("maincpu",I8080,1996800) /* 19.968MHz / 10 */
+ MCFG_DEVICE_PROGRAM_MAP(schaser_map)
+ MCFG_DEVICE_IO_MAP(polaris_io_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _8080bw_state, polaris_interrupt)
MCFG_WATCHDOG_ADD("watchdog")
MCFG_WATCHDOG_VBLANK_INIT("screen", 255)
@@ -2075,7 +2075,7 @@ MACHINE_CONFIG_START(_8080bw_state::polaris)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("discrete", DISCRETE, 0)
+ MCFG_DEVICE_ADD("discrete", DISCRETE)
MCFG_DISCRETE_INTF(polaris)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MACHINE_CONFIG_END
@@ -2187,8 +2187,8 @@ MACHINE_CONFIG_START(_8080bw_state::ballbomb)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(ballbomb_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(ballbomb_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
/* add shifter */
@@ -2203,7 +2203,7 @@ MACHINE_CONFIG_START(_8080bw_state::ballbomb)
/* sound hardware */
invaders_samples_audio(config);
- MCFG_SOUND_ADD("discrete", DISCRETE, 0)
+ MCFG_DEVICE_ADD("discrete", DISCRETE)
MCFG_DISCRETE_INTF(ballbomb)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MACHINE_CONFIG_END
@@ -2270,9 +2270,9 @@ MACHINE_CONFIG_START(_8080bw_state::yosakdon)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(yosakdon_map)
- MCFG_CPU_IO_MAP(yosakdon_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(yosakdon_map)
+ MCFG_DEVICE_IO_MAP(yosakdon_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
/* sound hardware */
@@ -2436,8 +2436,8 @@ MACHINE_CONFIG_START(_8080bw_state::indianbt)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(indianbt_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(indianbt_io_map)
MCFG_WATCHDOG_ADD("watchdog")
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
@@ -2453,7 +2453,7 @@ MACHINE_CONFIG_START(_8080bw_state::indianbt)
/* sound hardware */
invaders_samples_audio(config);
- MCFG_SOUND_ADD("discrete", DISCRETE, 0)
+ MCFG_DEVICE_ADD("discrete", DISCRETE)
MCFG_DISCRETE_INTF(indianbt)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MACHINE_CONFIG_END
@@ -2462,9 +2462,9 @@ MACHINE_CONFIG_START(_8080bw_state::indianbtbr)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(schaser_map)
- MCFG_CPU_IO_MAP(indianbtbr_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(schaser_map)
+ MCFG_DEVICE_IO_MAP(indianbtbr_io_map)
MCFG_WATCHDOG_ADD("watchdog")
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
@@ -2539,8 +2539,8 @@ MACHINE_CONFIG_START(_8080bw_state::steelwkr)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(steelwkr_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(steelwkr_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
/* add shifter */
@@ -2758,10 +2758,10 @@ void _8080bw_state::shuttlei_io_map(address_map &map)
MACHINE_CONFIG_START(_8080bw_state::shuttlei)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", I8080, XTAL(18'000'000) / 9)
+ MCFG_DEVICE_ADD("maincpu", I8080, XTAL(18'000'000) / 9)
// TODO: move irq handling away from mw8080.cpp, this game runs on custom hardware
- MCFG_CPU_PROGRAM_MAP(shuttlei_map)
- MCFG_CPU_IO_MAP(shuttlei_io_map)
+ MCFG_DEVICE_PROGRAM_MAP(shuttlei_map)
+ MCFG_DEVICE_IO_MAP(shuttlei_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state, extra_8080bw)
MCFG_MACHINE_RESET_OVERRIDE(_8080bw_state, mw8080bw)
@@ -2885,10 +2885,10 @@ MACHINE_CONFIG_START(_8080bw_state::darthvdr)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(darthvdr_map)
- MCFG_CPU_IO_MAP(darthvdr_io_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", _8080bw_state, irq0_line_hold)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(darthvdr_map)
+ MCFG_DEVICE_IO_MAP(darthvdr_io_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _8080bw_state, irq0_line_hold)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,darthvdr)
MCFG_MACHINE_RESET_OVERRIDE(_8080bw_state,darthvdr)
@@ -2960,8 +2960,8 @@ MACHINE_CONFIG_START(_8080bw_state::vortex)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(vortex_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(vortex_io_map)
MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw)
MCFG_WATCHDOG_ADD("watchdog")
@@ -3270,8 +3270,8 @@ MACHINE_CONFIG_START(_8080bw_state::claybust)
invaders(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(claybust_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(claybust_io_map)
MCFG_TIMER_DRIVER_ADD("claybust_gun", _8080bw_state, claybust_gun_callback)
@@ -3387,8 +3387,8 @@ MACHINE_CONFIG_START(_8080bw_state::attackfc)
mw8080bw_root(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_IO_MAP(attackfc_io_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_IO_MAP(attackfc_io_map)
/* add shifter */
MCFG_MB14241_ADD("mb14241")
@@ -3527,8 +3527,8 @@ MACHINE_CONFIG_START(_8080bw_state::invmulti)
invaders(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(invmulti_map)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(invmulti_map)
MCFG_EEPROM_SERIAL_93C46_8BIT_ADD("eeprom")
diff --git a/src/mame/drivers/88games.cpp b/src/mame/drivers/88games.cpp
index 20ebb856924..f6da79fb92d 100644
--- a/src/mame/drivers/88games.cpp
+++ b/src/mame/drivers/88games.cpp
@@ -307,12 +307,12 @@ void _88games_state::machine_reset()
MACHINE_CONFIG_START(_88games_state::_88games)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", KONAMI, 3000000) /* ? */
- MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_KONAMICPU_LINE_CB(WRITE8(_88games_state, banking_callback))
+ MCFG_DEVICE_ADD("maincpu", KONAMI, 3000000) /* ? */
+ MCFG_DEVICE_PROGRAM_MAP(main_map)
+ MCFG_KONAMICPU_LINE_CB(WRITE8(*this, _88games_state, banking_callback))
- MCFG_CPU_ADD("audiocpu", Z80, 3579545)
- MCFG_CPU_PROGRAM_MAP(sound_map)
+ MCFG_DEVICE_ADD("audiocpu", Z80, 3579545)
+ MCFG_DEVICE_PROGRAM_MAP(sound_map)
MCFG_NVRAM_ADD_0FILL("nvram")
@@ -326,7 +326,7 @@ MACHINE_CONFIG_START(_88games_state::_88games)
MCFG_SCREEN_VISIBLE_AREA(12*8, (64-12)*8-1, 2*8, 30*8-1 )
MCFG_SCREEN_UPDATE_DRIVER(_88games_state, screen_update_88games)
MCFG_SCREEN_PALETTE("palette")
- MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(_88games_state, vblank_irq))
+ MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, _88games_state, vblank_irq))
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_ENABLE_SHADOWS()
@@ -354,10 +354,10 @@ MACHINE_CONFIG_START(_88games_state::_88games)
MCFG_SOUND_ROUTE(0, "mono", 0.75)
MCFG_SOUND_ROUTE(1, "mono", 0.75)
- MCFG_SOUND_ADD("upd1", UPD7759, UPD7759_STANDARD_CLOCK)
+ MCFG_DEVICE_ADD("upd1", UPD7759)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
- MCFG_SOUND_ADD("upd2", UPD7759, UPD7759_STANDARD_CLOCK)
+ MCFG_DEVICE_ADD("upd2", UPD7759)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/a2600.cpp b/src/mame/drivers/a2600.cpp
index e8f29143b64..8cb30ad84bc 100644
--- a/src/mame/drivers/a2600.cpp
+++ b/src/mame/drivers/a2600.cpp
@@ -505,15 +505,15 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(a2600_state::a2600)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M6507, MASTER_CLOCK_NTSC / 3)
+ MCFG_DEVICE_ADD("maincpu", M6507, MASTER_CLOCK_NTSC / 3)
MCFG_M6502_DISABLE_DIRECT()
- MCFG_CPU_PROGRAM_MAP(a2600_mem)
+ MCFG_DEVICE_PROGRAM_MAP(a2600_mem)
/* video hardware */
MCFG_DEVICE_ADD("tia_video", TIA_NTSC_VIDEO, 0)
- MCFG_TIA_READ_INPUT_PORT_CB(READ16(a2600_state, a2600_read_input_port))
- MCFG_TIA_DATABUS_CONTENTS_CB(READ8(a2600_state, a2600_get_databus_contents))
- MCFG_TIA_VSYNC_CB(WRITE16(a2600_state, a2600_tia_vsync_callback))
+ MCFG_TIA_READ_INPUT_PORT_CB(READ16(*this, a2600_state, a2600_read_input_port))
+ MCFG_TIA_DATABUS_CONTENTS_CB(READ8(*this, a2600_state, a2600_get_databus_contents))
+ MCFG_TIA_VSYNC_CB(WRITE16(*this, a2600_state, a2600_tia_vsync_callback))
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS( MASTER_CLOCK_NTSC, 228, 26, 26 + 160 + 16, 262, 24 , 24 + 192 + 31 )
@@ -528,18 +528,18 @@ MACHINE_CONFIG_START(a2600_state::a2600)
/* devices */
#if USE_NEW_RIOT
MCFG_DEVICE_ADD("riot", MOS6532n, MASTER_CLOCK_NTSC / 3)
- MCFG_MOS6530n_IN_PA_CB(READ8(a2600_state, switch_A_r))
- MCFG_MOS6530n_OUT_PA_CB(WRITE8(a2600_state, switch_A_w))
- MCFG_MOS6530n_IN_PB_CB(READ8(a2600_state, riot_input_port_8_r))
- MCFG_MOS6530n_OUT_PB_CB(WRITE8(a2600_state, switch_B_w))
- MCFG_MOS6530n_IRQ_CB(WRITELINE(a2600_state, irq_callback))
+ MCFG_MOS6530n_IN_PA_CB(READ8(*this, a2600_state, switch_A_r))
+ MCFG_MOS6530n_OUT_PA_CB(WRITE8(*this, a2600_state, switch_A_w))
+ MCFG_MOS6530n_IN_PB_CB(READ8(*this, a2600_state, riot_input_port_8_r))
+ MCFG_MOS6530n_OUT_PB_CB(WRITE8(*this, a2600_state, switch_B_w))
+ MCFG_MOS6530n_IRQ_CB(WRITELINE(*this, a2600_state, irq_callback))
#else
MCFG_DEVICE_ADD("riot", RIOT6532, MASTER_CLOCK_NTSC / 3)
- MCFG_RIOT6532_IN_PA_CB(READ8(a2600_state, switch_A_r))
- MCFG_RIOT6532_OUT_PA_CB(WRITE8(a2600_state, switch_A_w))
- MCFG_RIOT6532_IN_PB_CB(READ8(a2600_state, riot_input_port_8_r))
- MCFG_RIOT6532_OUT_PB_CB(WRITE8(a2600_state, switch_B_w))
- MCFG_RIOT6532_IRQ_CB(WRITELINE(a2600_state, irq_callback))
+ MCFG_RIOT6532_IN_PA_CB(READ8(*this, a2600_state, switch_A_r))
+ MCFG_RIOT6532_OUT_PA_CB(WRITE8(*this, a2600_state, switch_A_w))
+ MCFG_RIOT6532_IN_PB_CB(READ8(*this, a2600_state, riot_input_port_8_r))
+ MCFG_RIOT6532_OUT_PB_CB(WRITE8(*this, a2600_state, switch_B_w))
+ MCFG_RIOT6532_IRQ_CB(WRITELINE(*this, a2600_state, irq_callback))
#endif
MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, "joy")
@@ -552,15 +552,15 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(a2600_state::a2600p)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M6507, MASTER_CLOCK_PAL / 3)
- MCFG_CPU_PROGRAM_MAP(a2600_mem)
+ MCFG_DEVICE_ADD("maincpu", M6507, MASTER_CLOCK_PAL / 3)
+ MCFG_DEVICE_PROGRAM_MAP(a2600_mem)
MCFG_M6502_DISABLE_DIRECT()
/* video hardware */
MCFG_DEVICE_ADD("tia_video", TIA_PAL_VIDEO, 0)
- MCFG_TIA_READ_INPUT_PORT_CB(READ16(a2600_state, a2600_read_input_port))
- MCFG_TIA_DATABUS_CONTENTS_CB(READ8(a2600_state, a2600_get_databus_contents))
- MCFG_TIA_VSYNC_CB(WRITE16(a2600_state, a2600_tia_vsync_callback_pal))
+ MCFG_TIA_READ_INPUT_PORT_CB(READ16(*this, a2600_state, a2600_read_input_port))
+ MCFG_TIA_DATABUS_CONTENTS_CB(READ8(*this, a2600_state, a2600_get_databus_contents))
+ MCFG_TIA_VSYNC_CB(WRITE16(*this, a2600_state, a2600_tia_vsync_callback_pal))
MCFG_SCREEN_ADD("screen", RASTER)
@@ -576,18 +576,18 @@ MACHINE_CONFIG_START(a2600_state::a2600p)
/* devices */
#if USE_NEW_RIOT
MCFG_DEVICE_ADD("riot", MOS6532n, MASTER_CLOCK_PAL / 3)
- MCFG_MOS6530n_IN_PA_CB(READ8(a2600_state, switch_A_r))
- MCFG_MOS6530n_OUT_PA_CB(WRITE8(a2600_state, switch_A_w))
- MCFG_MOS6530n_IN_PB_CB(READ8(a2600_state, riot_input_port_8_r))
- MCFG_MOS6530n_OUT_PB_CB(WRITE8(a2600_state, switch_B_w))
- MCFG_MOS6530n_IRQ_CB(WRITELINE(a2600_state, irq_callback))
+ MCFG_MOS6530n_IN_PA_CB(READ8(*this, a2600_state, switch_A_r))
+ MCFG_MOS6530n_OUT_PA_CB(WRITE8(*this, a2600_state, switch_A_w))
+ MCFG_MOS6530n_IN_PB_CB(READ8(*this, a2600_state, riot_input_port_8_r))
+ MCFG_MOS6530n_OUT_PB_CB(WRITE8(*this, a2600_state, switch_B_w))
+ MCFG_MOS6530n_IRQ_CB(WRITELINE(*this, a2600_state, irq_callback))
#else
MCFG_DEVICE_ADD("riot", RIOT6532, MASTER_CLOCK_PAL / 3)
- MCFG_RIOT6532_IN_PA_CB(READ8(a2600_state, switch_A_r))
- MCFG_RIOT6532_OUT_PA_CB(WRITE8(a2600_state, switch_A_w))
- MCFG_RIOT6532_IN_PB_CB(READ8(a2600_state, riot_input_port_8_r))
- MCFG_RIOT6532_OUT_PB_CB(WRITE8(a2600_state, switch_B_w))
- MCFG_RIOT6532_IRQ_CB(WRITELINE(a2600_state, irq_callback))
+ MCFG_RIOT6532_IN_PA_CB(READ8(*this, a2600_state, switch_A_r))
+ MCFG_RIOT6532_OUT_PA_CB(WRITE8(*this, a2600_state, switch_A_w))
+ MCFG_RIOT6532_IN_PB_CB(READ8(*this, a2600_state, riot_input_port_8_r))
+ MCFG_RIOT6532_OUT_PB_CB(WRITE8(*this, a2600_state, switch_B_w))
+ MCFG_RIOT6532_IRQ_CB(WRITELINE(*this, a2600_state, irq_callback))
#endif
MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, "joy")
diff --git a/src/mame/drivers/a5105.cpp b/src/mame/drivers/a5105.cpp
index d7ff5e2bbd9..77eb0cf344b 100644
--- a/src/mame/drivers/a5105.cpp
+++ b/src/mame/drivers/a5105.cpp
@@ -568,9 +568,9 @@ static const z80_daisy_config a5105_daisy_chain[] =
MACHINE_CONFIG_START(a5105_state::a5105)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu",Z80, XTAL(15'000'000) / 4)
- MCFG_CPU_PROGRAM_MAP(a5105_mem)
- MCFG_CPU_IO_MAP(a5105_io)
+ MCFG_DEVICE_ADD("maincpu",Z80, XTAL(15'000'000) / 4)
+ MCFG_DEVICE_PROGRAM_MAP(a5105_mem)
+ MCFG_DEVICE_IO_MAP(a5105_io)
MCFG_Z80_DAISY_CHAIN(a5105_daisy_chain)
/* video hardware */
@@ -588,7 +588,7 @@ MACHINE_CONFIG_START(a5105_state::a5105)
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
- MCFG_SOUND_ADD("beeper", BEEP, 500)
+ MCFG_DEVICE_ADD("beeper", BEEP, 500)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
/* Devices */
@@ -599,8 +599,8 @@ MACHINE_CONFIG_START(a5105_state::a5105)
MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL(15'000'000) / 4)
MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", 0))
- MCFG_Z80CTC_ZC0_CB(DEVWRITELINE("z80ctc", z80ctc_device, trg2))
- MCFG_Z80CTC_ZC2_CB(DEVWRITELINE("z80ctc", z80ctc_device, trg3))
+ MCFG_Z80CTC_ZC0_CB(WRITELINE("z80ctc", z80ctc_device, trg2))
+ MCFG_Z80CTC_ZC2_CB(WRITELINE("z80ctc", z80ctc_device, trg3))
MCFG_DEVICE_ADD("z80pio", Z80PIO, XTAL(15'000'000) / 4)
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE("maincpu", 0))
diff --git a/src/mame/drivers/a51xx.cpp b/src/mame/drivers/a51xx.cpp
index c1a93dd266c..03001026b59 100644
--- a/src/mame/drivers/a51xx.cpp
+++ b/src/mame/drivers/a51xx.cpp
@@ -124,9 +124,9 @@ GFXDECODE_END
MACHINE_CONFIG_START(a51xx_state::a5120)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu",Z80, XTAL(4'000'000))
- MCFG_CPU_PROGRAM_MAP(a5120_mem)
- MCFG_CPU_IO_MAP(a5120_io)
+ MCFG_DEVICE_ADD("maincpu",Z80, XTAL(4'000'000))
+ MCFG_DEVICE_PROGRAM_MAP(a5120_mem)
+ MCFG_DEVICE_IO_MAP(a5120_io)
/* video hardware */
@@ -147,9 +147,9 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(a51xx_state::a5130)
a5120(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(a5130_mem)
- MCFG_CPU_IO_MAP(a5130_io)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(a5130_mem)
+ MCFG_DEVICE_IO_MAP(a5130_io)
MCFG_MACHINE_RESET_OVERRIDE(a51xx_state,a5130)
diff --git a/src/mame/drivers/a6809.cpp b/src/mame/drivers/a6809.cpp
index 5d242f43b42..5cfe9db5eb6 100644
--- a/src/mame/drivers/a6809.cpp
+++ b/src/mame/drivers/a6809.cpp
@@ -225,8 +225,8 @@ void a6809_state::kbd_put(u8 data)
MACHINE_CONFIG_START(a6809_state::a6809)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", MC6809, XTAL(4'000'000))
- MCFG_CPU_PROGRAM_MAP(a6809_mem)
+ MCFG_DEVICE_ADD("maincpu", MC6809, XTAL(4'000'000))
+ MCFG_DEVICE_PROGRAM_MAP(a6809_mem)
MCFG_MACHINE_RESET_OVERRIDE(a6809_state, a6809)
/* video hardware */
@@ -245,7 +245,7 @@ MACHINE_CONFIG_START(a6809_state::a6809)
/* Devices */
MCFG_DEVICE_ADD("via", VIA6522, XTAL(4'000'000) / 4)
- MCFG_VIA6522_CB2_HANDLER(WRITELINE(a6809_state, cass_w))
+ MCFG_VIA6522_CB2_HANDLER(WRITELINE(*this, a6809_state, cass_w))
MCFG_VIA6522_IRQ_HANDLER(INPUTLINE("maincpu", M6809_IRQ_LINE))
MCFG_MC6845_ADD("mc6845", HD6845, "screen", XTAL(4'000'000) / 2)
@@ -253,7 +253,7 @@ MACHINE_CONFIG_START(a6809_state::a6809)
MCFG_MC6845_CHAR_WIDTH(12)
MCFG_DEVICE_ADD("saa5050", SAA5050, 6000000)
- MCFG_SAA5050_D_CALLBACK(READ8(a6809_state, videoram_r))
+ MCFG_SAA5050_D_CALLBACK(READ8(*this, a6809_state, videoram_r))
MCFG_SAA5050_SCREEN_SIZE(40, 25, 40)
MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0)
diff --git a/src/mame/drivers/a7150.cpp b/src/mame/drivers/a7150.cpp
index 28100de1308..3d1e53808d0 100644
--- a/src/mame/drivers/a7150.cpp
+++ b/src/mame/drivers/a7150.cpp
@@ -435,48 +435,48 @@ static const z80_daisy_config k7070_daisy_chain[] =
* (framebuffer and terminal should be slot devices.)
*/
MACHINE_CONFIG_START(a7150_state::a7150)
- MCFG_CPU_ADD("maincpu", I8086, XTAL(9'832'000)/2)
- MCFG_CPU_PROGRAM_MAP(a7150_mem)
- MCFG_CPU_IO_MAP(a7150_io)
- MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("pic8259", pic8259_device, inta_cb)
+ MCFG_DEVICE_ADD("maincpu", I8086, XTAL(9'832'000)/2)
+ MCFG_DEVICE_PROGRAM_MAP(a7150_mem)
+ MCFG_DEVICE_IO_MAP(a7150_io)
+ MCFG_DEVICE_IRQ_ACKNOWLEDGE_DEVICE("pic8259", pic8259_device, inta_cb)
MCFG_DEVICE_ADD("pic8259", PIC8259, 0)
MCFG_PIC8259_OUT_INT_CB(INPUTLINE("maincpu", 0))
// IFSP port on processor card
MCFG_DEVICE_ADD("ppi8255", I8255, 0)
-// MCFG_I8255_IN_PORTA_CB(DEVREAD8("cent_status_in", input_buffer_device, read))
-// MCFG_I8255_OUT_PORTB_CB(DEVWRITE8("cent_data_out", output_latch_device, write))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(a7150_state, ppi_c_w))
+// MCFG_I8255_IN_PORTA_CB(READ8("cent_status_in", input_buffer_device, read))
+// MCFG_I8255_OUT_PORTB_CB(WRITE8("cent_data_out", output_latch_device, write))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, a7150_state, ppi_c_w))
MCFG_DEVICE_ADD("pit8253", PIT8253, 0)
MCFG_PIT8253_CLK0(XTAL(14'745'600)/4)
- MCFG_PIT8253_OUT0_HANDLER(DEVWRITELINE("pic8259", pic8259_device, ir2_w))
+ MCFG_PIT8253_OUT0_HANDLER(WRITELINE("pic8259", pic8259_device, ir2_w))
MCFG_PIT8253_CLK1(XTAL(14'745'600)/4)
MCFG_PIT8253_CLK2(XTAL(14'745'600)/4)
- MCFG_PIT8253_OUT2_HANDLER(WRITELINE(a7150_state, a7150_tmr2_w))
+ MCFG_PIT8253_OUT2_HANDLER(WRITELINE(*this, a7150_state, a7150_tmr2_w))
MCFG_DEVICE_ADD("uart8251", I8251, 0)
- MCFG_I8251_TXD_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_txd))
- MCFG_I8251_DTR_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_dtr))
- MCFG_I8251_RTS_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_rts))
- MCFG_I8251_RXRDY_HANDLER(DEVWRITELINE("pic8259", pic8259_device, ir4_w))
- MCFG_I8251_TXRDY_HANDLER(DEVWRITELINE("pic8259", pic8259_device, ir4_w))
+ MCFG_I8251_TXD_HANDLER(WRITELINE("rs232", rs232_port_device, write_txd))
+ MCFG_I8251_DTR_HANDLER(WRITELINE("rs232", rs232_port_device, write_dtr))
+ MCFG_I8251_RTS_HANDLER(WRITELINE("rs232", rs232_port_device, write_rts))
+ MCFG_I8251_RXRDY_HANDLER(WRITELINE("pic8259", pic8259_device, ir4_w))
+ MCFG_I8251_TXRDY_HANDLER(WRITELINE("pic8259", pic8259_device, ir4_w))
// IFSS port on processor card -- keyboard runs at 28800 8N2
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, "keyboard") // "loopback" allows ACT to pass
- MCFG_RS232_RXD_HANDLER(DEVWRITELINE("uart8251", i8251_device, write_rxd))
- MCFG_RS232_CTS_HANDLER(DEVWRITELINE("uart8251", i8251_device, write_cts))
- MCFG_RS232_DSR_HANDLER(DEVWRITELINE("uart8251", i8251_device, write_dsr))
+ MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, "keyboard") // "loopback" allows ACT to pass
+ MCFG_RS232_RXD_HANDLER(WRITELINE("uart8251", i8251_device, write_rxd))
+ MCFG_RS232_CTS_HANDLER(WRITELINE("uart8251", i8251_device, write_cts))
+ MCFG_RS232_DSR_HANDLER(WRITELINE("uart8251", i8251_device, write_dsr))
MCFG_SLOT_OPTION_DEVICE_INPUT_DEFAULTS("keyboard", kbd_rs232_defaults)
MCFG_ISBC_215_ADD("isbc_215g", 0x4a, "maincpu")
- MCFG_ISBC_215_IRQ(DEVWRITELINE("pic8259", pic8259_device, ir5_w))
+ MCFG_ISBC_215_IRQ(WRITELINE("pic8259", pic8259_device, ir5_w))
// KGS K7070 graphics terminal controlling ABG K7072 framebuffer
- MCFG_CPU_ADD("gfxcpu", Z80, XTAL(16'000'000)/4)
- MCFG_CPU_PROGRAM_MAP(k7070_cpu_mem)
- MCFG_CPU_IO_MAP(k7070_cpu_io)
+ MCFG_DEVICE_ADD("gfxcpu", Z80, XTAL(16'000'000)/4)
+ MCFG_DEVICE_PROGRAM_MAP(k7070_cpu_mem)
+ MCFG_DEVICE_IO_MAP(k7070_cpu_io)
MCFG_Z80_DAISY_CHAIN(k7070_daisy_chain)
MCFG_DEVICE_ADD("video_bankdev", ADDRESS_MAP_BANK, 0)
@@ -488,28 +488,28 @@ MACHINE_CONFIG_START(a7150_state::a7150)
MCFG_DEVICE_ADD(Z80CTC_TAG, Z80CTC, XTAL(16'000'000)/3)
MCFG_Z80CTC_INTR_CB(INPUTLINE("gfxcpu", INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(DEVWRITELINE(Z80SIO_TAG, z80sio_device, rxca_w))
- MCFG_DEVCB_CHAIN_OUTPUT(DEVWRITELINE(Z80SIO_TAG, z80sio_device, txca_w))
- MCFG_Z80CTC_ZC1_CB(DEVWRITELINE(Z80SIO_TAG, z80sio_device, rxtxcb_w))
+ MCFG_Z80CTC_ZC0_CB(WRITELINE(Z80SIO_TAG, z80sio_device, rxca_w))
+ MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(Z80SIO_TAG, z80sio_device, txca_w))
+ MCFG_Z80CTC_ZC1_CB(WRITELINE(Z80SIO_TAG, z80sio_device, rxtxcb_w))
MCFG_DEVICE_ADD(Z80SIO_TAG, Z80SIO, 4800)
MCFG_Z80SIO_OUT_INT_CB(INPUTLINE("gfxcpu", INPUT_LINE_IRQ0))
- MCFG_Z80SIO_OUT_TXDA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_txd))
- MCFG_Z80SIO_OUT_DTRA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_dtr))
- MCFG_Z80SIO_OUT_RTSA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_rts))
- MCFG_Z80SIO_OUT_TXDB_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
- MCFG_Z80SIO_OUT_DTRB_CB(WRITELINE(a7150_state, kgs_iml_w))
-// MCFG_Z80SIO_OUT_RTSB_CB(WRITELINE(a7150_state, kgs_ifss_loopback_w))
+ MCFG_Z80SIO_OUT_TXDA_CB(WRITELINE(RS232_A_TAG, rs232_port_device, write_txd))
+ MCFG_Z80SIO_OUT_DTRA_CB(WRITELINE(RS232_A_TAG, rs232_port_device, write_dtr))
+ MCFG_Z80SIO_OUT_RTSA_CB(WRITELINE(RS232_A_TAG, rs232_port_device, write_rts))
+ MCFG_Z80SIO_OUT_TXDB_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
+ MCFG_Z80SIO_OUT_DTRB_CB(WRITELINE(*this, a7150_state, kgs_iml_w))
+// MCFG_Z80SIO_OUT_RTSB_CB(WRITELINE(*this, a7150_state, kgs_ifss_loopback_w))
// V.24 port (graphics tablet)
- MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80sio_device, rxa_w))
- MCFG_RS232_DCD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80sio_device, dcda_w))
- MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80sio_device, ctsa_w))
+ MCFG_DEVICE_ADD(RS232_A_TAG, RS232_PORT, default_rs232_devices, nullptr)
+ MCFG_RS232_RXD_HANDLER(WRITELINE(Z80SIO_TAG, z80sio_device, rxa_w))
+ MCFG_RS232_DCD_HANDLER(WRITELINE(Z80SIO_TAG, z80sio_device, dcda_w))
+ MCFG_RS232_CTS_HANDLER(WRITELINE(Z80SIO_TAG, z80sio_device, ctsa_w))
// IFSS (current loop) port (keyboard)
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80sio_device, rxb_w))
+ MCFG_DEVICE_ADD(RS232_B_TAG, RS232_PORT, default_rs232_devices, nullptr)
+ MCFG_RS232_RXD_HANDLER(WRITELINE(Z80SIO_TAG, z80sio_device, rxb_w))
MCFG_SCREEN_ADD_MONOCHROME("screen", RASTER, rgb_t::green())
MCFG_SCREEN_RAW_PARAMS( XTAL(16'000'000), 737,0,640, 431,0,400 )
diff --git a/src/mame/drivers/a7800.cpp b/src/mame/drivers/a7800.cpp
index e2d60a0a130..f3436602983 100644
--- a/src/mame/drivers/a7800.cpp
+++ b/src/mame/drivers/a7800.cpp
@@ -1377,8 +1377,8 @@ void a7800_state::machine_reset()
MACHINE_CONFIG_START(a7800_state::a7800_ntsc)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M6502, A7800_NTSC_Y1/8) /* 1.79 MHz (switches to 1.19 MHz on TIA or RIOT access) */
- MCFG_CPU_PROGRAM_MAP(a7800_mem)
+ MCFG_DEVICE_ADD("maincpu", M6502, A7800_NTSC_Y1/8) /* 1.79 MHz (switches to 1.19 MHz on TIA or RIOT access) */
+ MCFG_DEVICE_PROGRAM_MAP(a7800_mem)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", a7800_state, interrupt, "screen", 0, 1)
/* video hardware */
@@ -1401,9 +1401,9 @@ MACHINE_CONFIG_START(a7800_state::a7800_ntsc)
/* devices */
MCFG_DEVICE_ADD("riot", MOS6532_NEW, A7800_NTSC_Y1/8)
- MCFG_MOS6530n_IN_PA_CB(READ8(a7800_state, riot_joystick_r))
- MCFG_MOS6530n_IN_PB_CB(READ8(a7800_state, riot_console_button_r))
- MCFG_MOS6530n_OUT_PB_CB(WRITE8(a7800_state, riot_button_pullup_w))
+ MCFG_MOS6530n_IN_PA_CB(READ8(*this, a7800_state, riot_joystick_r))
+ MCFG_MOS6530n_IN_PB_CB(READ8(*this, a7800_state, riot_console_button_r))
+ MCFG_MOS6530n_OUT_PB_CB(WRITE8(*this, a7800_state, riot_button_pullup_w))
MCFG_A78_CARTRIDGE_ADD("cartslot", a7800_cart, nullptr)
@@ -1417,8 +1417,8 @@ MACHINE_CONFIG_START(a7800_pal_state::a7800_pal)
a7800_ntsc(config);
/* basic machine hardware */
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_CLOCK(CLK_PAL)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_CLOCK(CLK_PAL)
// MCFG_TIMER_ADD_SCANLINE("scantimer", a7800_interrupt, "screen", 0, 1)
MCFG_SCREEN_MODIFY( "screen" )
@@ -1430,9 +1430,9 @@ MACHINE_CONFIG_START(a7800_pal_state::a7800_pal)
/* devices */
MCFG_DEVICE_REMOVE("riot")
MCFG_DEVICE_ADD("riot", MOS6532_NEW, CLK_PAL)
- MCFG_MOS6530n_IN_PA_CB(READ8(a7800_pal_state, riot_joystick_r))
- MCFG_MOS6530n_IN_PB_CB(READ8(a7800_pal_state, riot_console_button_r))
- MCFG_MOS6530n_OUT_PB_CB(WRITE8(a7800_pal_state, riot_button_pullup_w))
+ MCFG_MOS6530n_IN_PA_CB(READ8(*this, a7800_pal_state, riot_joystick_r))
+ MCFG_MOS6530n_IN_PB_CB(READ8(*this, a7800_pal_state, riot_console_button_r))
+ MCFG_MOS6530n_OUT_PB_CB(WRITE8(*this, a7800_pal_state, riot_button_pullup_w))
/* software lists */
MCFG_DEVICE_REMOVE("cart_list")
diff --git a/src/mame/drivers/aa310.cpp b/src/mame/drivers/aa310.cpp
index b8e69af9d66..402d0911542 100644
--- a/src/mame/drivers/aa310.cpp
+++ b/src/mame/drivers/aa310.cpp
@@ -402,13 +402,13 @@ WRITE_LINE_MEMBER( archimedes_state::a310_kart_rx_w )
MACHINE_CONFIG_START(aa310_state::aa310)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", ARM, XTAL(24'000'000) / 3) /* ARM2 8 MHz */
- MCFG_CPU_PROGRAM_MAP(aa310_mem)
+ MCFG_DEVICE_ADD("maincpu", ARM, XTAL(24'000'000) / 3) /* ARM2 8 MHz */
+ MCFG_DEVICE_PROGRAM_MAP(aa310_mem)
MCFG_ARM_COPRO(VL86C020)
MCFG_DEVICE_ADD("kart", AAKART, 8000000/256)
- MCFG_AAKART_OUT_TX_CB(WRITELINE(archimedes_state, a310_kart_tx_w))
- MCFG_AAKART_OUT_RX_CB(WRITELINE(archimedes_state, a310_kart_rx_w))
+ MCFG_AAKART_OUT_TX_CB(WRITELINE(*this, archimedes_state, a310_kart_tx_w))
+ MCFG_AAKART_OUT_RX_CB(WRITELINE(*this, archimedes_state, a310_kart_rx_w))
MCFG_I2CMEM_ADD("i2cmem")
MCFG_I2CMEM_DATA_SIZE(0x100)
@@ -425,8 +425,8 @@ MACHINE_CONFIG_START(aa310_state::aa310)
MCFG_WD1772_ADD("fdc", 8000000 / 1) // TODO: frequency
MCFG_WD_FDC_DISABLE_MOTOR_CONTROL
- MCFG_WD_FDC_INTRQ_CALLBACK(WRITELINE(aa310_state, aa310_wd177x_intrq_w))
- MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(aa310_state, aa310_wd177x_drq_w))
+ MCFG_WD_FDC_INTRQ_CALLBACK(WRITELINE(*this, aa310_state, aa310_wd177x_intrq_w))
+ MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(*this, aa310_state, aa310_wd177x_drq_w))
MCFG_FLOPPY_DRIVE_ADD("fdc:0", aa310_floppies, "35dd", aa310_state::floppy_formats)
MCFG_FLOPPY_DRIVE_SOUND(true)
MCFG_FLOPPY_DRIVE_ADD("fdc:1", aa310_floppies, nullptr, aa310_state::floppy_formats) // rarely had 2nd FDD installed, space was used for HDD
@@ -435,14 +435,14 @@ MACHINE_CONFIG_START(aa310_state::aa310)
MCFG_SOFTWARE_LIST_ADD("flop_list", "archimedes")
MCFG_SPEAKER_STANDARD_MONO("speaker")
- MCFG_SOUND_ADD("dac0", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
- MCFG_SOUND_ADD("dac1", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
- MCFG_SOUND_ADD("dac2", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
- MCFG_SOUND_ADD("dac3", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
- MCFG_SOUND_ADD("dac4", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
- MCFG_SOUND_ADD("dac5", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
- MCFG_SOUND_ADD("dac6", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
- MCFG_SOUND_ADD("dac7", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
+ MCFG_DEVICE_ADD("dac0", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
+ MCFG_DEVICE_ADD("dac1", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
+ MCFG_DEVICE_ADD("dac2", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
+ MCFG_DEVICE_ADD("dac3", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
+ MCFG_DEVICE_ADD("dac4", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
+ MCFG_DEVICE_ADD("dac5", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
+ MCFG_DEVICE_ADD("dac6", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
+ MCFG_DEVICE_ADD("dac7", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC
MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
MCFG_SOUND_ROUTE(0, "dac0", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac0", -1.0, DAC_VREF_NEG_INPUT)
MCFG_SOUND_ROUTE(0, "dac1", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac1", -1.0, DAC_VREF_NEG_INPUT)
@@ -513,8 +513,8 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(aa310_state::aa540)
aa310(config);
- MCFG_CPU_MODIFY("maincpu") // ARM3
- MCFG_CPU_CLOCK(XTAL(52'000'000) / 2)
+ MCFG_DEVICE_MODIFY("maincpu") // ARM3
+ MCFG_DEVICE_CLOCK(XTAL(52'000'000) / 2)
MCFG_RAM_MODIFY(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("4M")
@@ -527,8 +527,8 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(aa310_state::aa5000)
aa310(config);
- MCFG_CPU_MODIFY("maincpu") // ARM3
- MCFG_CPU_CLOCK(XTAL(50'000'000) / 2)
+ MCFG_DEVICE_MODIFY("maincpu") // ARM3
+ MCFG_DEVICE_CLOCK(XTAL(50'000'000) / 2)
MCFG_RAM_MODIFY(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("2M")
@@ -541,8 +541,8 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(aa310_state::aa4)
aa5000(config);
- MCFG_CPU_MODIFY("maincpu") // ARM3
- MCFG_CPU_CLOCK(XTAL(24'000'000))
+ MCFG_DEVICE_MODIFY("maincpu") // ARM3
+ MCFG_DEVICE_CLOCK(XTAL(24'000'000))
/* video hardware */
MCFG_SCREEN_MODIFY("screen")
@@ -555,14 +555,14 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(aa310_state::aa5000a)
aa5000(config);
- MCFG_CPU_MODIFY("maincpu") // ARM3
- MCFG_CPU_CLOCK(33000000)
+ MCFG_DEVICE_MODIFY("maincpu") // ARM3
+ MCFG_DEVICE_CLOCK(33000000)
MACHINE_CONFIG_END
MACHINE_CONFIG_START(aa310_state::aa3010)
aa310(config);
- MCFG_CPU_MODIFY("maincpu") // ARM250
- MCFG_CPU_CLOCK(XTAL(72'000'000) / 6)
+ MCFG_DEVICE_MODIFY("maincpu") // ARM250
+ MCFG_DEVICE_CLOCK(XTAL(72'000'000) / 6)
MCFG_RAM_MODIFY(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("1M")
diff --git a/src/mame/drivers/aaa.cpp b/src/mame/drivers/aaa.cpp
index 3b0de2545cc..128abf974bf 100644
--- a/src/mame/drivers/aaa.cpp
+++ b/src/mame/drivers/aaa.cpp
@@ -43,9 +43,9 @@ static INPUT_PORTS_START( aaa )
INPUT_PORTS_END
MACHINE_CONFIG_START(aaa_state::aaa)
- MCFG_CPU_ADD("maincpu", Z80, 2'000'000)
- MCFG_CPU_PROGRAM_MAP(mem_map)
- MCFG_CPU_IO_MAP(io_map)
+ MCFG_DEVICE_ADD("maincpu", Z80, 2'000'000)
+ MCFG_DEVICE_PROGRAM_MAP(mem_map)
+ MCFG_DEVICE_IO_MAP(io_map)
MACHINE_CONFIG_END
/**************************************************************************************************************
diff --git a/src/mame/drivers/abc1600.cpp b/src/mame/drivers/abc1600.cpp
index 1a489221a1d..6488f88c0a3 100644
--- a/src/mame/drivers/abc1600.cpp
+++ b/src/mame/drivers/abc1600.cpp
@@ -878,9 +878,9 @@ void abc1600_state::machine_reset()
MACHINE_CONFIG_START(abc1600_state::abc1600)
// basic machine hardware
- MCFG_CPU_ADD(MC68008P8_TAG, M68008, XTAL(64'000'000)/8)
- MCFG_CPU_PROGRAM_MAP(abc1600_mem)
- MCFG_CPU_IRQ_ACKNOWLEDGE_DRIVER(abc1600_state,abc1600_int_ack)
+ MCFG_DEVICE_ADD(MC68008P8_TAG, M68008, XTAL(64'000'000)/8)
+ MCFG_DEVICE_PROGRAM_MAP(abc1600_mem)
+ MCFG_DEVICE_IRQ_ACKNOWLEDGE_DRIVER(abc1600_state,abc1600_int_ack)
// video hardware
MCFG_ABC1600_MOVER_ADD()
@@ -889,33 +889,33 @@ MACHINE_CONFIG_START(abc1600_state::abc1600)
MCFG_ABC1600_MAC_ADD(MC68008P8_TAG, mac_mem)
MCFG_DEVICE_ADD(Z8410AB1_0_TAG, Z80DMA, XTAL(64'000'000)/16)
- MCFG_Z80DMA_OUT_BUSREQ_CB(WRITELINE(abc1600_state, dbrq_w))
- MCFG_Z80DMA_OUT_BAO_CB(DEVWRITELINE(Z8410AB1_1_TAG, z80dma_device, bai_w))
- MCFG_Z80DMA_IN_MREQ_CB(DEVREAD8(ABC1600_MAC_TAG, abc1600_mac_device, dma0_mreq_r))
- MCFG_Z80DMA_OUT_MREQ_CB(DEVWRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma0_mreq_w))
- MCFG_Z80DMA_IN_IORQ_CB(DEVREAD8(ABC1600_MAC_TAG, abc1600_mac_device, dma0_iorq_r))
- MCFG_Z80DMA_OUT_IORQ_CB(DEVWRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma0_iorq_w))
+ MCFG_Z80DMA_OUT_BUSREQ_CB(WRITELINE(*this, abc1600_state, dbrq_w))
+ MCFG_Z80DMA_OUT_BAO_CB(WRITELINE(Z8410AB1_1_TAG, z80dma_device, bai_w))
+ MCFG_Z80DMA_IN_MREQ_CB(READ8(ABC1600_MAC_TAG, abc1600_mac_device, dma0_mreq_r))
+ MCFG_Z80DMA_OUT_MREQ_CB(WRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma0_mreq_w))
+ MCFG_Z80DMA_IN_IORQ_CB(READ8(ABC1600_MAC_TAG, abc1600_mac_device, dma0_iorq_r))
+ MCFG_Z80DMA_OUT_IORQ_CB(WRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma0_iorq_w))
MCFG_DEVICE_ADD(Z8410AB1_1_TAG, Z80DMA, XTAL(64'000'000)/16)
- MCFG_Z80DMA_OUT_BUSREQ_CB(WRITELINE(abc1600_state, dbrq_w))
- MCFG_Z80DMA_OUT_BAO_CB(DEVWRITELINE(Z8410AB1_2_TAG, z80dma_device, bai_w))
- MCFG_Z80DMA_IN_MREQ_CB(DEVREAD8(ABC1600_MAC_TAG, abc1600_mac_device, dma1_mreq_r))
- MCFG_Z80DMA_OUT_MREQ_CB(DEVWRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma1_mreq_w))
- MCFG_Z80DMA_IN_IORQ_CB(DEVREAD8(ABC1600_MAC_TAG, abc1600_mac_device, dma1_iorq_r))
- MCFG_Z80DMA_OUT_IORQ_CB(DEVWRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma1_iorq_w))
+ MCFG_Z80DMA_OUT_BUSREQ_CB(WRITELINE(*this, abc1600_state, dbrq_w))
+ MCFG_Z80DMA_OUT_BAO_CB(WRITELINE(Z8410AB1_2_TAG, z80dma_device, bai_w))
+ MCFG_Z80DMA_IN_MREQ_CB(READ8(ABC1600_MAC_TAG, abc1600_mac_device, dma1_mreq_r))
+ MCFG_Z80DMA_OUT_MREQ_CB(WRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma1_mreq_w))
+ MCFG_Z80DMA_IN_IORQ_CB(READ8(ABC1600_MAC_TAG, abc1600_mac_device, dma1_iorq_r))
+ MCFG_Z80DMA_OUT_IORQ_CB(WRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma1_iorq_w))
MCFG_DEVICE_ADD(Z8410AB1_2_TAG, Z80DMA, XTAL(64'000'000)/16)
- MCFG_Z80DMA_OUT_BUSREQ_CB(WRITELINE(abc1600_state, dbrq_w))
- MCFG_Z80DMA_IN_MREQ_CB(DEVREAD8(ABC1600_MAC_TAG, abc1600_mac_device, dma2_mreq_r))
- MCFG_Z80DMA_OUT_MREQ_CB(DEVWRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma2_mreq_w))
- MCFG_Z80DMA_IN_IORQ_CB(DEVREAD8(ABC1600_MAC_TAG, abc1600_mac_device, dma2_iorq_r))
- MCFG_Z80DMA_OUT_IORQ_CB(DEVWRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma2_iorq_w))
+ MCFG_Z80DMA_OUT_BUSREQ_CB(WRITELINE(*this, abc1600_state, dbrq_w))
+ MCFG_Z80DMA_IN_MREQ_CB(READ8(ABC1600_MAC_TAG, abc1600_mac_device, dma2_mreq_r))
+ MCFG_Z80DMA_OUT_MREQ_CB(WRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma2_mreq_w))
+ MCFG_Z80DMA_IN_IORQ_CB(READ8(ABC1600_MAC_TAG, abc1600_mac_device, dma2_iorq_r))
+ MCFG_Z80DMA_OUT_IORQ_CB(WRITE8(ABC1600_MAC_TAG, abc1600_mac_device, dma2_iorq_w))
MCFG_DEVICE_ADD(Z8470AB1_TAG, Z80DART, XTAL(64'000'000)/16)
- MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
- MCFG_Z80DART_OUT_DTRA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
- MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
- MCFG_Z80DART_OUT_TXDB_CB(DEVWRITELINE(ABC_KEYBOARD_PORT_TAG, abc_keyboard_port_device, txd_w))
+ MCFG_Z80DART_OUT_TXDA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
+ MCFG_Z80DART_OUT_DTRA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
+ MCFG_Z80DART_OUT_RTSA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
+ MCFG_Z80DART_OUT_TXDB_CB(WRITELINE(ABC_KEYBOARD_PORT_TAG, abc_keyboard_port_device, txd_w))
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(MC68008P8_TAG, M68K_IRQ_5)) // shared with SCC
MCFG_DEVICE_ADD(Z8530B1_TAG, SCC8530, XTAL(64'000'000)/16)
@@ -923,49 +923,49 @@ MACHINE_CONFIG_START(abc1600_state::abc1600)
MCFG_DEVICE_ADD(Z8536B1_TAG, Z8536, XTAL(64'000'000)/16)
MCFG_Z8536_IRQ_CALLBACK(INPUTLINE(MC68008P8_TAG, M68K_IRQ_2))
- MCFG_Z8536_PA_IN_CALLBACK(READ8(abc1600_state, cio_pa_r))
- MCFG_Z8536_PB_IN_CALLBACK(READ8(abc1600_state, cio_pb_r))
- MCFG_Z8536_PB_OUT_CALLBACK(WRITE8(abc1600_state, cio_pb_w))
- MCFG_Z8536_PC_IN_CALLBACK(READ8(abc1600_state, cio_pc_r))
- MCFG_Z8536_PC_OUT_CALLBACK(WRITE8(abc1600_state, cio_pc_w))
+ MCFG_Z8536_PA_IN_CALLBACK(READ8(*this, abc1600_state, cio_pa_r))
+ MCFG_Z8536_PB_IN_CALLBACK(READ8(*this, abc1600_state, cio_pb_r))
+ MCFG_Z8536_PB_OUT_CALLBACK(WRITE8(*this, abc1600_state, cio_pb_w))
+ MCFG_Z8536_PC_IN_CALLBACK(READ8(*this, abc1600_state, cio_pc_r))
+ MCFG_Z8536_PC_OUT_CALLBACK(WRITE8(*this, abc1600_state, cio_pc_w))
MCFG_NMC9306_ADD(NMC9306_TAG)
MCFG_E0516_ADD(E050_C16PC_TAG, XTAL(32'768))
MCFG_FD1797_ADD(SAB1797_02P_TAG, XTAL(64'000'000)/64)
- MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pb7_w))
- MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(abc1600_state, fdc_drq_w))
+ MCFG_WD_FDC_INTRQ_CALLBACK(WRITELINE(Z8536B1_TAG, z8536_device, pb7_w))
+ MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(*this, abc1600_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(SAB1797_02P_TAG":0", abc1600_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD(SAB1797_02P_TAG":1", abc1600_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD(SAB1797_02P_TAG":2", abc1600_floppies, "525qd", floppy_image_device::default_floppy_formats)
- MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, nullptr)
+ MCFG_DEVICE_ADD(RS232_A_TAG, RS232_PORT, default_rs232_devices, nullptr)
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z8470AB1_TAG, z80dart_device, rxa_w))
+ MCFG_DEVICE_ADD(RS232_B_TAG, RS232_PORT, default_rs232_devices, nullptr)
+ MCFG_RS232_RXD_HANDLER(WRITELINE(Z8470AB1_TAG, z80dart_device, rxa_w))
MCFG_ABC_KEYBOARD_PORT_ADD(ABC_KEYBOARD_PORT_TAG, "abc99")
- MCFG_ABC_KEYBOARD_OUT_RX_HANDLER(DEVWRITELINE(Z8470AB1_TAG, z80dart_device, rxb_w))
- MCFG_ABC_KEYBOARD_OUT_TRXC_HANDLER(DEVWRITELINE(Z8470AB1_TAG, z80dart_device, rxtxcb_w))
- MCFG_ABC_KEYBOARD_OUT_KEYDOWN_HANDLER(DEVWRITELINE(Z8470AB1_TAG, z80dart_device, dcdb_w))
+ MCFG_ABC_KEYBOARD_OUT_RX_HANDLER(WRITELINE(Z8470AB1_TAG, z80dart_device, rxb_w))
+ MCFG_ABC_KEYBOARD_OUT_TRXC_HANDLER(WRITELINE(Z8470AB1_TAG, z80dart_device, rxtxcb_w))
+ MCFG_ABC_KEYBOARD_OUT_KEYDOWN_HANDLER(WRITELINE(Z8470AB1_TAG, z80dart_device, dcdb_w))
MCFG_ABCBUS_SLOT_ADD("bus0i", abc1600bus_cards, nullptr)
- MCFG_ABCBUS_SLOT_IRQ_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pa7_w))
+ MCFG_ABCBUS_SLOT_IRQ_CALLBACK(WRITELINE(Z8536B1_TAG, z8536_device, pa7_w))
MCFG_ABCBUS_SLOT_ADD("bus0x", abc1600bus_cards, nullptr)
- MCFG_ABCBUS_SLOT_IRQ_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pa6_w))
- MCFG_ABCBUS_SLOT_NMI_CALLBACK(WRITELINE(abc1600_state, nmi_w))
- MCFG_ABCBUS_SLOT_XINT2_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pa2_w))
- MCFG_ABCBUS_SLOT_XINT3_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pa3_w))
- MCFG_ABCBUS_SLOT_XINT4_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pa4_w))
- MCFG_ABCBUS_SLOT_XINT5_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pa5_w))
+ MCFG_ABCBUS_SLOT_IRQ_CALLBACK(WRITELINE(Z8536B1_TAG, z8536_device, pa6_w))
+ MCFG_ABCBUS_SLOT_NMI_CALLBACK(WRITELINE(*this, abc1600_state, nmi_w))
+ MCFG_ABCBUS_SLOT_XINT2_CALLBACK(WRITELINE(Z8536B1_TAG, z8536_device, pa2_w))
+ MCFG_ABCBUS_SLOT_XINT3_CALLBACK(WRITELINE(Z8536B1_TAG, z8536_device, pa3_w))
+ MCFG_ABCBUS_SLOT_XINT4_CALLBACK(WRITELINE(Z8536B1_TAG, z8536_device, pa4_w))
+ MCFG_ABCBUS_SLOT_XINT5_CALLBACK(WRITELINE(Z8536B1_TAG, z8536_device, pa5_w))
MCFG_ABCBUS_SLOT_ADD("bus1", abc1600bus_cards, nullptr)
- MCFG_ABCBUS_SLOT_IRQ_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pa1_w))
+ MCFG_ABCBUS_SLOT_IRQ_CALLBACK(WRITELINE(Z8536B1_TAG, z8536_device, pa1_w))
MCFG_ABCBUS_SLOT_ADD("bus2", abc1600bus_cards, "4105")
- MCFG_ABCBUS_SLOT_IRQ_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pa0_w))
- //MCFG_ABCBUS_SLOT_PREN_CALLBACK(DEVWRITELINE(Z8410AB1_2_TAG, z80dma_device, iei_w))
- MCFG_ABCBUS_SLOT_TRRQ_CALLBACK(DEVWRITELINE(Z8410AB1_2_TAG, z80dma_device, rdy_w))
+ MCFG_ABCBUS_SLOT_IRQ_CALLBACK(WRITELINE(Z8536B1_TAG, z8536_device, pa0_w))
+ //MCFG_ABCBUS_SLOT_PREN_CALLBACK(WRITELINE(Z8410AB1_2_TAG, z80dma_device, iei_w))
+ MCFG_ABCBUS_SLOT_TRRQ_CALLBACK(WRITELINE(Z8410AB1_2_TAG, z80dma_device, rdy_w))
// internal ram
MCFG_RAM_ADD(RAM_TAG)
diff --git a/src/mame/drivers/abc80.cpp b/src/mame/drivers/abc80.cpp
index 5b87fecffc9..a2b0d11702a 100644
--- a/src/mame/drivers/abc80.cpp
+++ b/src/mame/drivers/abc80.cpp
@@ -487,9 +487,9 @@ QUICKLOAD_LOAD_MEMBER( abc80_state, bac )
MACHINE_CONFIG_START(abc80_state::abc80)
// basic machine hardware
- MCFG_CPU_ADD(Z80_TAG, Z80, XTAL(11'980'800)/2/2) // 2.9952 MHz
- MCFG_CPU_PROGRAM_MAP(abc80_mem)
- MCFG_CPU_IO_MAP(abc80_io)
+ MCFG_DEVICE_ADD(Z80_TAG, Z80, XTAL(11'980'800)/2/2) // 2.9952 MHz
+ MCFG_DEVICE_PROGRAM_MAP(abc80_mem)
+ MCFG_DEVICE_IO_MAP(abc80_io)
MCFG_Z80_DAISY_CHAIN(abc80_daisy_chain)
// video hardware
@@ -497,7 +497,7 @@ MACHINE_CONFIG_START(abc80_state::abc80)
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD(SN76477_TAG, SN76477, 0)
+ MCFG_DEVICE_ADD(SN76477_TAG, SN76477)
MCFG_SN76477_NOISE_PARAMS(RES_K(47), RES_K(330), CAP_P(390)) // noise + filter: R26 47k - R24 330k - C52 390p
MCFG_SN76477_DECAY_RES(RES_K(47)) // decay_res: R23 47k
MCFG_SN76477_ATTACK_PARAMS(CAP_U(10), RES_K(2.2)) // attack_decay_cap + attack_res: C50 10u/35V - R21 2.2k
@@ -515,20 +515,20 @@ MACHINE_CONFIG_START(abc80_state::abc80)
// devices
MCFG_DEVICE_ADD(Z80PIO_TAG, Z80PIO, XTAL(11'980'800)/2/2)
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_Z80PIO_IN_PA_CB(READ8(abc80_state, pio_pa_r))
- MCFG_Z80PIO_IN_PB_CB(READ8(abc80_state, pio_pb_r))
- MCFG_Z80PIO_OUT_PB_CB(WRITE8(abc80_state, pio_pb_w))
+ MCFG_Z80PIO_IN_PA_CB(READ8(*this, abc80_state, pio_pa_r))
+ MCFG_Z80PIO_IN_PB_CB(READ8(*this, abc80_state, pio_pb_r))
+ MCFG_Z80PIO_OUT_PB_CB(WRITE8(*this, abc80_state, pio_pb_w))
MCFG_CASSETTE_ADD(CASSETTE_TAG)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("abc80_cass")
MCFG_DEVICE_ADD(ABC80_KEYBOARD_TAG, ABC80_KEYBOARD, 0)
- MCFG_ABC80_KEYBOARD_KEYDOWN_CALLBACK(WRITELINE(abc80_state, keydown_w))
+ MCFG_ABC80_KEYBOARD_KEYDOWN_CALLBACK(WRITELINE(*this, abc80_state, keydown_w))
MCFG_ABCBUS_SLOT_ADD(ABCBUS_TAG, abc80_cards, "abcexp")
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
+ MCFG_DEVICE_ADD(RS232_TAG, RS232_PORT, default_rs232_devices, nullptr)
MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0)
MCFG_GENERIC_KEYBOARD_CB(PUT(abc80_state, kbd_w))
diff --git a/src/mame/drivers/abc80x.cpp b/src/mame/drivers/abc80x.cpp
index 1b4485dbacb..8f21826e8bf 100644
--- a/src/mame/drivers/abc80x.cpp
+++ b/src/mame/drivers/abc80x.cpp
@@ -1151,61 +1151,61 @@ QUICKLOAD_LOAD_MEMBER( abc800_state, bac )
MACHINE_CONFIG_START(abc800c_state::abc800c)
// basic machine hardware
- MCFG_CPU_ADD(Z80_TAG, Z80, ABC800_X01/2/2)
+ MCFG_DEVICE_ADD(Z80_TAG, Z80, ABC800_X01/2/2)
MCFG_Z80_DAISY_CHAIN(abc800_daisy_chain)
- MCFG_CPU_OPCODES_MAP(abc800_m1)
- MCFG_CPU_PROGRAM_MAP(abc800c_mem)
- MCFG_CPU_IO_MAP(abc800c_io)
+ MCFG_DEVICE_OPCODES_MAP(abc800_m1)
+ MCFG_DEVICE_PROGRAM_MAP(abc800c_mem)
+ MCFG_DEVICE_IO_MAP(abc800c_io)
// video hardware
abc800c_video(config);
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD(DISCRETE_TAG, DISCRETE, 0)
+ MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE)
MCFG_DISCRETE_INTF(abc800)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
// peripheral hardware
MCFG_DEVICE_ADD(Z80CTC_TAG, Z80CTC, ABC800_X01/2/2)
MCFG_Z80CTC_INTR_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(WRITELINE(abc800_state, ctc_z0_w))
- MCFG_Z80CTC_ZC1_CB(WRITELINE(abc800_state, ctc_z1_w))
- MCFG_Z80CTC_ZC2_CB(WRITELINE(abc800_state, ctc_z2_w))
+ MCFG_Z80CTC_ZC0_CB(WRITELINE(*this, abc800_state, ctc_z0_w))
+ MCFG_Z80CTC_ZC1_CB(WRITELINE(*this, abc800_state, ctc_z1_w))
+ MCFG_Z80CTC_ZC2_CB(WRITELINE(*this, abc800_state, ctc_z2_w))
MCFG_DEVICE_ADD(Z80SIO_TAG, Z80SIO2, ABC800_X01/2/2)
- MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
- MCFG_Z80DART_OUT_DTRA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
- MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
- MCFG_Z80DART_OUT_TXDB_CB(WRITELINE(abc800_state, sio_txdb_w))
- MCFG_Z80DART_OUT_DTRB_CB(WRITELINE(abc800_state, sio_txdb_w))
- MCFG_Z80DART_OUT_RTSB_CB(WRITELINE(abc800_state, sio_txdb_w))
+ MCFG_Z80DART_OUT_TXDA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
+ MCFG_Z80DART_OUT_DTRA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
+ MCFG_Z80DART_OUT_RTSA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
+ MCFG_Z80DART_OUT_TXDB_CB(WRITELINE(*this, abc800_state, sio_txdb_w))
+ MCFG_Z80DART_OUT_DTRB_CB(WRITELINE(*this, abc800_state, sio_txdb_w))
+ MCFG_Z80DART_OUT_RTSB_CB(WRITELINE(*this, abc800_state, sio_txdb_w))
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
MCFG_DEVICE_ADD(Z80DART_TAG, Z80DART, ABC800_X01/2/2)
- MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_txd))
- MCFG_Z80DART_OUT_DTRA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_dtr))
- MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_rts))
- MCFG_Z80DART_OUT_TXDB_CB(DEVWRITELINE(ABC_KEYBOARD_PORT_TAG, abc_keyboard_port_device, txd_w))
+ MCFG_Z80DART_OUT_TXDA_CB(WRITELINE(RS232_A_TAG, rs232_port_device, write_txd))
+ MCFG_Z80DART_OUT_DTRA_CB(WRITELINE(RS232_A_TAG, rs232_port_device, write_dtr))
+ MCFG_Z80DART_OUT_RTSA_CB(WRITELINE(RS232_A_TAG, rs232_port_device, write_rts))
+ MCFG_Z80DART_OUT_TXDB_CB(WRITELINE(ABC_KEYBOARD_PORT_TAG, abc_keyboard_port_device, txd_w))
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
- MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxa_w))
- MCFG_RS232_DCD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, dcda_w))
- MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, ctsa_w))
+ MCFG_DEVICE_ADD(RS232_A_TAG, RS232_PORT, default_rs232_devices, nullptr)
+ MCFG_RS232_RXD_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, rxa_w))
+ MCFG_RS232_DCD_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, dcda_w))
+ MCFG_RS232_CTS_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, ctsa_w))
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, rxa_w))
- MCFG_RS232_DCD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, dcda_w))
- MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, ctsa_w))
+ MCFG_DEVICE_ADD(RS232_B_TAG, RS232_PORT, default_rs232_devices, nullptr)
+ MCFG_RS232_RXD_HANDLER(WRITELINE(Z80SIO_TAG, z80dart_device, rxa_w))
+ MCFG_RS232_DCD_HANDLER(WRITELINE(Z80SIO_TAG, z80dart_device, dcda_w))
+ MCFG_RS232_CTS_HANDLER(WRITELINE(Z80SIO_TAG, z80dart_device, ctsa_w))
MCFG_ABC_KEYBOARD_PORT_ADD(ABC_KEYBOARD_PORT_TAG, "abc800")
- MCFG_ABC_KEYBOARD_OUT_RX_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxb_w))
- MCFG_ABC_KEYBOARD_OUT_TRXC_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxtxcb_w))
- MCFG_ABC_KEYBOARD_OUT_KEYDOWN_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, dcdb_w))
+ MCFG_ABC_KEYBOARD_OUT_RX_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, rxb_w))
+ MCFG_ABC_KEYBOARD_OUT_TRXC_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, rxtxcb_w))
+ MCFG_ABC_KEYBOARD_OUT_KEYDOWN_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, dcdb_w))
// ABC bus
MCFG_ABCBUS_SLOT_ADD(ABCBUS_TAG, abcbus_cards, "abc830")
@@ -1227,61 +1227,61 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(abc800m_state::abc800m)
// basic machine hardware
- MCFG_CPU_ADD(Z80_TAG, Z80, ABC800_X01/2/2)
+ MCFG_DEVICE_ADD(Z80_TAG, Z80, ABC800_X01/2/2)
MCFG_Z80_DAISY_CHAIN(abc800_daisy_chain)
- MCFG_CPU_OPCODES_MAP(abc800_m1)
- MCFG_CPU_PROGRAM_MAP(abc800m_mem)
- MCFG_CPU_IO_MAP(abc800m_io)
+ MCFG_DEVICE_OPCODES_MAP(abc800_m1)
+ MCFG_DEVICE_PROGRAM_MAP(abc800m_mem)
+ MCFG_DEVICE_IO_MAP(abc800m_io)
// video hardware
abc800m_video(config);
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD(DISCRETE_TAG, DISCRETE, 0)
+ MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE)
MCFG_DISCRETE_INTF(abc800)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
// peripheral hardware
MCFG_DEVICE_ADD(Z80CTC_TAG, Z80CTC, ABC800_X01/2/2)
MCFG_Z80CTC_INTR_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(WRITELINE(abc800_state, ctc_z0_w))
- MCFG_Z80CTC_ZC1_CB(WRITELINE(abc800_state, ctc_z1_w))
- MCFG_Z80CTC_ZC2_CB(WRITELINE(abc800_state, ctc_z2_w))
+ MCFG_Z80CTC_ZC0_CB(WRITELINE(*this, abc800_state, ctc_z0_w))
+ MCFG_Z80CTC_ZC1_CB(WRITELINE(*this, abc800_state, ctc_z1_w))
+ MCFG_Z80CTC_ZC2_CB(WRITELINE(*this, abc800_state, ctc_z2_w))
MCFG_DEVICE_ADD(Z80SIO_TAG, Z80SIO2, ABC800_X01/2/2)
- MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
- MCFG_Z80DART_OUT_DTRA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
- MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
- MCFG_Z80DART_OUT_TXDB_CB(WRITELINE(abc800_state, sio_txdb_w))
- MCFG_Z80DART_OUT_DTRB_CB(WRITELINE(abc800_state, sio_txdb_w))
- MCFG_Z80DART_OUT_RTSB_CB(WRITELINE(abc800_state, sio_txdb_w))
+ MCFG_Z80DART_OUT_TXDA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
+ MCFG_Z80DART_OUT_DTRA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
+ MCFG_Z80DART_OUT_RTSA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
+ MCFG_Z80DART_OUT_TXDB_CB(WRITELINE(*this, abc800_state, sio_txdb_w))
+ MCFG_Z80DART_OUT_DTRB_CB(WRITELINE(*this, abc800_state, sio_txdb_w))
+ MCFG_Z80DART_OUT_RTSB_CB(WRITELINE(*this, abc800_state, sio_txdb_w))
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
MCFG_DEVICE_ADD(Z80DART_TAG, Z80DART, ABC800_X01/2/2)
- MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_txd))
- MCFG_Z80DART_OUT_DTRA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_dtr))
- MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_rts))
- MCFG_Z80DART_OUT_TXDB_CB(DEVWRITELINE(ABC_KEYBOARD_PORT_TAG, abc_keyboard_port_device, txd_w))
+ MCFG_Z80DART_OUT_TXDA_CB(WRITELINE(RS232_A_TAG, rs232_port_device, write_txd))
+ MCFG_Z80DART_OUT_DTRA_CB(WRITELINE(RS232_A_TAG, rs232_port_device, write_dtr))
+ MCFG_Z80DART_OUT_RTSA_CB(WRITELINE(RS232_A_TAG, rs232_port_device, write_rts))
+ MCFG_Z80DART_OUT_TXDB_CB(WRITELINE(ABC_KEYBOARD_PORT_TAG, abc_keyboard_port_device, txd_w))
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
- MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxa_w))
- MCFG_RS232_DCD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, dcda_w))
- MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, ctsa_w))
+ MCFG_DEVICE_ADD(RS232_A_TAG, RS232_PORT, default_rs232_devices, nullptr)
+ MCFG_RS232_RXD_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, rxa_w))
+ MCFG_RS232_DCD_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, dcda_w))
+ MCFG_RS232_CTS_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, ctsa_w))
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, rxa_w))
- MCFG_RS232_DCD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, dcda_w))
- MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, ctsa_w))
+ MCFG_DEVICE_ADD(RS232_B_TAG, RS232_PORT, default_rs232_devices, nullptr)
+ MCFG_RS232_RXD_HANDLER(WRITELINE(Z80SIO_TAG, z80dart_device, rxa_w))
+ MCFG_RS232_DCD_HANDLER(WRITELINE(Z80SIO_TAG, z80dart_device, dcda_w))
+ MCFG_RS232_CTS_HANDLER(WRITELINE(Z80SIO_TAG, z80dart_device, ctsa_w))
MCFG_ABC_KEYBOARD_PORT_ADD(ABC_KEYBOARD_PORT_TAG, "abc800")
- MCFG_ABC_KEYBOARD_OUT_RX_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxb_w))
- MCFG_ABC_KEYBOARD_OUT_TRXC_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxtxcb_w))
- MCFG_ABC_KEYBOARD_OUT_KEYDOWN_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, dcdb_w))
+ MCFG_ABC_KEYBOARD_OUT_RX_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, rxb_w))
+ MCFG_ABC_KEYBOARD_OUT_TRXC_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, rxtxcb_w))
+ MCFG_ABC_KEYBOARD_OUT_KEYDOWN_HANDLER(WRITELINE(Z80DART_TAG, z80dart_device, dcdb_w))
// ABC bus
MCFG_ABCBUS_SLOT_ADD(ABCBUS_TAG, abcbus_cards, "abc830")
@@ -1305,63 +1305,63 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(abc802_state::abc802)
// basic machine hardware
- MCFG_CPU_ADD(Z80_TAG, Z80, ABC800_X01/2/2)
+ MCFG_DEVICE_ADD(Z80_TAG, Z80, ABC800_X01/2/2)
MCFG_Z80_DAISY_CHAIN(abc800_daisy_chain)
- MCFG_CPU_OPCODES_MAP(abc800_m1)
- MCFG_CPU_PROGRAM_MAP(abc802_mem)
- MCFG_CPU_IO_MAP(abc802_io)
+ MCFG_DEVICE_OPCODES_MAP(abc800_m1)
+ MCFG_DEVICE_PROGRAM_MAP(abc802_mem)
+ MCFG_DEVICE_IO_MAP(abc802_io)
// video hardware
abc802_video(config);
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD(DISCRETE_TAG, DISCRETE, 0)
+ MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE)
MCFG_DISCRETE_INTF(abc800)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
// peripheral hardware
MCFG_DEVICE_ADD(Z80CTC_TAG, Z80CTC, ABC800_X01/2/2)
MCFG_Z80CTC_INTR_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(WRITELINE(abc800_state, ctc_z0_w))
- MCFG_Z80CTC_ZC1_CB(WRITELINE(abc800_state, ctc_z1_w))
- MCFG_Z80CTC_ZC2_CB(WRITELINE(abc800_state, ctc_z2_w))
+ MCFG_Z80CTC_ZC0_CB(WRITELINE(*this, abc800_state, ctc_z0_w))
+ MCFG_Z80CTC_ZC1_CB(WRITELINE(*this, abc800_state, ctc_z1_w))
+ MCFG_Z80CTC_ZC2_CB(WRITELINE(*this, abc800_state, ctc_z2_w))
MCFG_DEVICE_ADD(Z80SIO_TAG, Z80SIO2, ABC800_X01/2/2)
- MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
- MCFG_Z80DART_OUT_DTRA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
- MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
- MCFG_Z80DART_OUT_TXDB_CB(WRITELINE(abc800_state, sio_txdb_w))
- MCFG_Z80DART_OUT_DTRB_CB(WRITELINE(abc800_state, sio_txdb_w))
- MCFG_Z80DART_OUT_RTSB_CB(WRITELINE(abc800_state, sio_txdb_w))
+ MCFG_Z80DART_OUT_TXDA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
+ MCFG_Z80DART_OUT_DTRA_CB(WRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
+ MCFG_Z80DART_OUT_RTSA_CB(WRITELINE(RS232_B_TAG, rs232_port_dev