summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2015-12-04 07:03:38 +0100
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2015-12-04 07:03:38 +0100
commit41681c1703244abe68cbcf3096ca259bd061cc08 (patch)
tree85d24789ff864e1b0f35fb87f0c58bad5925e27d
parent0c56ac848dd0eba359500d444ecbb51f215ff5b9 (diff)
clang-modernize part 4
-rw-r--r--src/mame/audio/8080bw.cpp4
-rw-r--r--src/mame/audio/astrof.cpp2
-rw-r--r--src/mame/audio/atarijsa.cpp40
-rw-r--r--src/mame/audio/beezer.cpp2
-rw-r--r--src/mame/audio/blockade.cpp2
-rw-r--r--src/mame/audio/bzone.cpp4
-rw-r--r--src/mame/audio/cage.cpp78
-rw-r--r--src/mame/audio/carnival.cpp2
-rw-r--r--src/mame/audio/cclimber.cpp2
-rw-r--r--src/mame/audio/channelf.cpp2
-rw-r--r--src/mame/audio/cinemat.cpp28
-rw-r--r--src/mame/audio/circus.cpp8
-rw-r--r--src/mame/audio/copsnrob.cpp6
-rw-r--r--src/mame/audio/cps3.cpp4
-rw-r--r--src/mame/audio/dave.cpp2
-rw-r--r--src/mame/audio/dcs.cpp52
-rw-r--r--src/mame/audio/depthch.cpp2
-rw-r--r--src/mame/audio/dkong.cpp4
-rw-r--r--src/mame/audio/exidy.cpp20
-rw-r--r--src/mame/audio/exidy440.cpp14
-rw-r--r--src/mame/audio/gamate.cpp2
-rw-r--r--src/mame/audio/geebee.cpp6
-rw-r--r--src/mame/audio/gomoku.cpp14
-rw-r--r--src/mame/audio/gorf.cpp6
-rw-r--r--src/mame/audio/gottlieb.cpp14
-rw-r--r--src/mame/audio/gridlee.cpp4
-rw-r--r--src/mame/audio/invinco.cpp2
-rw-r--r--src/mame/audio/leland.cpp2
-rw-r--r--src/mame/audio/m72.cpp2
-rw-r--r--src/mame/audio/mac.cpp2
-rw-r--r--src/mame/audio/mario.cpp6
-rw-r--r--src/mame/audio/micro3d.cpp2
-rw-r--r--src/mame/audio/midway.cpp2
-rw-r--r--src/mame/audio/mw8080bw.cpp14
-rw-r--r--src/mame/audio/pleiads.cpp4
-rw-r--r--src/mame/audio/polepos.cpp2
-rw-r--r--src/mame/audio/pulsar.cpp2
-rw-r--r--src/mame/audio/redbaron.cpp4
-rw-r--r--src/mame/audio/scramble.cpp2
-rw-r--r--src/mame/audio/segag80r.cpp12
-rw-r--r--src/mame/audio/segasnd.cpp6
-rw-r--r--src/mame/audio/seibu.cpp10
-rw-r--r--src/mame/audio/senjyo.cpp2
-rw-r--r--src/mame/audio/skyraid.cpp2
-rw-r--r--src/mame/audio/snes_snd.cpp2
-rw-r--r--src/mame/audio/snk6502.cpp10
-rw-r--r--src/mame/audio/spacefb.cpp2
-rw-r--r--src/mame/audio/specimx_snd.cpp2
-rw-r--r--src/mame/audio/svis_snd.cpp2
-rw-r--r--src/mame/audio/t5182.cpp2
-rw-r--r--src/mame/audio/targ.cpp2
-rw-r--r--src/mame/audio/tiamc1.cpp2
-rw-r--r--src/mame/audio/trackfld.cpp2
-rw-r--r--src/mame/audio/triplhnt.cpp2
-rw-r--r--src/mame/audio/turbo.cpp6
-rw-r--r--src/mame/audio/turrett.cpp4
-rw-r--r--src/mame/audio/tx1.cpp6
-rw-r--r--src/mame/audio/vboy.cpp2
-rw-r--r--src/mame/audio/vc4000snd.cpp2
-rw-r--r--src/mame/audio/vicdual.cpp6
-rw-r--r--src/mame/audio/warpwarp.cpp8
-rw-r--r--src/mame/audio/wiping.cpp16
-rw-r--r--src/mame/audio/wow.cpp6
-rw-r--r--src/mame/audio/wswan_snd.cpp2
-rw-r--r--src/mame/audio/zaxxon.cpp4
-rw-r--r--src/mame/drivers/2mindril.cpp4
-rw-r--r--src/mame/drivers/4enlinea.cpp4
-rw-r--r--src/mame/drivers/5clown.cpp8
-rw-r--r--src/mame/drivers/a2600.cpp6
-rw-r--r--src/mame/drivers/a5105.cpp2
-rw-r--r--src/mame/drivers/a7800.cpp2
-rw-r--r--src/mame/drivers/abc1600.cpp16
-rw-r--r--src/mame/drivers/abc80.cpp4
-rw-r--r--src/mame/drivers/abc80x.cpp24
-rw-r--r--src/mame/drivers/ac1.cpp6
-rw-r--r--src/mame/drivers/adam.cpp28
-rw-r--r--src/mame/drivers/aerofgt.cpp30
-rw-r--r--src/mame/drivers/altos5.cpp4
-rw-r--r--src/mame/drivers/amiga.cpp36
-rw-r--r--src/mame/drivers/ampro.cpp4
-rw-r--r--src/mame/drivers/amstr_pc.cpp6
-rw-r--r--src/mame/drivers/amstrad.cpp16
-rw-r--r--src/mame/drivers/apc.cpp2
-rw-r--r--src/mame/drivers/apexc.cpp12
-rw-r--r--src/mame/drivers/apf.cpp4
-rw-r--r--src/mame/drivers/apple2.cpp22
-rw-r--r--src/mame/drivers/apple2e.cpp38
-rw-r--r--src/mame/drivers/apple2gs.cpp14
-rw-r--r--src/mame/drivers/apple3.cpp10
-rw-r--r--src/mame/drivers/applix.cpp2
-rw-r--r--src/mame/drivers/apricot.cpp8
-rw-r--r--src/mame/drivers/arcadia.cpp2
-rw-r--r--src/mame/drivers/aristmk5.cpp2
-rw-r--r--src/mame/drivers/arsystems.cpp2
-rw-r--r--src/mame/drivers/astinvad.cpp2
-rw-r--r--src/mame/drivers/astrohome.cpp4
-rw-r--r--src/mame/drivers/at.cpp56
-rw-r--r--src/mame/drivers/atari400.cpp18
-rw-r--r--src/mame/drivers/atarig1.cpp2
-rw-r--r--src/mame/drivers/atarigx2.cpp8
-rw-r--r--src/mame/drivers/atarist.cpp18
-rw-r--r--src/mame/drivers/atlantis.cpp2
-rw-r--r--src/mame/drivers/attache.cpp4
-rw-r--r--src/mame/drivers/aussiebyte.cpp4
-rw-r--r--src/mame/drivers/avt.cpp2
-rw-r--r--src/mame/drivers/badlands.cpp2
-rw-r--r--src/mame/drivers/battlane.cpp6
-rw-r--r--src/mame/drivers/bbcbc.cpp2
-rw-r--r--src/mame/drivers/bcs3.cpp2
-rw-r--r--src/mame/drivers/bebox.cpp2
-rw-r--r--src/mame/drivers/bestleag.cpp12
-rw-r--r--src/mame/drivers/bigbord2.cpp4
-rw-r--r--src/mame/drivers/binbug.cpp4
-rw-r--r--src/mame/drivers/blitz.cpp6
-rw-r--r--src/mame/drivers/bloodbro.cpp10
-rw-r--r--src/mame/drivers/bmcpokr.cpp2
-rw-r--r--src/mame/drivers/bml3.cpp8
-rw-r--r--src/mame/drivers/bnstars.cpp4
-rw-r--r--src/mame/drivers/br8641.cpp2
-rw-r--r--src/mame/drivers/btime.cpp4
-rw-r--r--src/mame/drivers/bullet.cpp42
-rw-r--r--src/mame/drivers/bw12.cpp4
-rw-r--r--src/mame/drivers/bw2.cpp8
-rw-r--r--src/mame/drivers/c128.cpp14
-rw-r--r--src/mame/drivers/c64.cpp22
-rw-r--r--src/mame/drivers/calchase.cpp12
-rw-r--r--src/mame/drivers/camplynx.cpp2
-rw-r--r--src/mame/drivers/casloopy.cpp2
-rw-r--r--src/mame/drivers/cbm2.cpp36
-rw-r--r--src/mame/drivers/cchasm.cpp2
-rw-r--r--src/mame/drivers/ccs2810.cpp2
-rw-r--r--src/mame/drivers/cgenie.cpp4
-rw-r--r--src/mame/drivers/channelf.cpp2
-rw-r--r--src/mame/drivers/chihiro.cpp14
-rw-r--r--src/mame/drivers/clcd.cpp4
-rw-r--r--src/mame/drivers/cninja.cpp2
-rw-r--r--src/mame/drivers/cobra.cpp104
-rw-r--r--src/mame/drivers/coleco.cpp18
-rw-r--r--src/mame/drivers/compis.cpp8
-rw-r--r--src/mame/drivers/compucolor.cpp4
-rw-r--r--src/mame/drivers/concept.cpp10
-rw-r--r--src/mame/drivers/cosmic.cpp6
-rw-r--r--src/mame/drivers/cps1.cpp20
-rw-r--r--src/mame/drivers/cps2.cpp124
-rw-r--r--src/mame/drivers/crvision.cpp4
-rw-r--r--src/mame/drivers/csplayh5.cpp2
-rw-r--r--src/mame/drivers/ct486.cpp8
-rw-r--r--src/mame/drivers/cubo.cpp4
-rw-r--r--src/mame/drivers/cvs.cpp6
-rw-r--r--src/mame/drivers/cyberbal.cpp2
-rw-r--r--src/mame/drivers/czk80.cpp2
-rw-r--r--src/mame/drivers/dacholer.cpp2
-rw-r--r--src/mame/drivers/dai3wksi.cpp2
-rw-r--r--src/mame/drivers/dcon.cpp4
-rw-r--r--src/mame/drivers/ddenlovr.cpp14
-rw-r--r--src/mame/drivers/dec0.cpp4
-rw-r--r--src/mame/drivers/decocass.cpp8
-rw-r--r--src/mame/drivers/dectalk.cpp6
-rw-r--r--src/mame/drivers/deshoros.cpp2
-rw-r--r--src/mame/drivers/djmain.cpp10
-rw-r--r--src/mame/drivers/dkong.cpp4
-rw-r--r--src/mame/drivers/dragon.cpp2
-rw-r--r--src/mame/drivers/dreambal.cpp2
-rw-r--r--src/mame/drivers/drtomy.cpp10
-rw-r--r--src/mame/drivers/dwarfd.cpp16
-rw-r--r--src/mame/drivers/dynax.cpp8
-rw-r--r--src/mame/drivers/dynduke.cpp12
-rw-r--r--src/mame/drivers/ec184x.cpp22
-rw-r--r--src/mame/drivers/einstein.cpp4
-rw-r--r--src/mame/drivers/eolithsp.cpp4
-rw-r--r--src/mame/drivers/ep64.cpp4
-rw-r--r--src/mame/drivers/eprom.cpp4
-rw-r--r--src/mame/drivers/equites.cpp16
-rw-r--r--src/mame/drivers/esd16.cpp12
-rw-r--r--src/mame/drivers/esq5505.cpp6
-rw-r--r--src/mame/drivers/ettrivia.cpp2
-rw-r--r--src/mame/drivers/excali64.cpp8
-rw-r--r--src/mame/drivers/exerion.cpp2
-rw-r--r--src/mame/drivers/exidy440.cpp4
-rw-r--r--src/mame/drivers/f1gp.cpp2
-rw-r--r--src/mame/drivers/fantland.cpp6
-rw-r--r--src/mame/drivers/fastfred.cpp6
-rw-r--r--src/mame/drivers/fcrash.cpp8
-rw-r--r--src/mame/drivers/fm7.cpp2
-rw-r--r--src/mame/drivers/fmtowns.cpp18
-rw-r--r--src/mame/drivers/fruitpc.cpp2
-rw-r--r--src/mame/drivers/funkball.cpp4
-rw-r--r--src/mame/drivers/gaelco2.cpp56
-rw-r--r--src/mame/drivers/gaelco3d.cpp6
-rw-r--r--src/mame/drivers/galaga.cpp18
-rw-r--r--src/mame/drivers/galaxian.cpp76
-rw-r--r--src/mame/drivers/gamecstl.cpp6
-rw-r--r--src/mame/drivers/gaplus.cpp20
-rw-r--r--src/mame/drivers/gb.cpp6
-rw-r--r--src/mame/drivers/gba.cpp4
-rw-r--r--src/mame/drivers/gcpinbal.cpp2
-rw-r--r--src/mame/drivers/gei.cpp2
-rw-r--r--src/mame/drivers/geneve.cpp4
-rw-r--r--src/mame/drivers/geniusiq.cpp2
-rw-r--r--src/mame/drivers/genpc.cpp10
-rw-r--r--src/mame/drivers/gimix.cpp6
-rw-r--r--src/mame/drivers/goodejan.cpp6
-rw-r--r--src/mame/drivers/gottlieb.cpp22
-rw-r--r--src/mame/drivers/gotya.cpp2
-rw-r--r--src/mame/drivers/gridlee.cpp2
-rw-r--r--src/mame/drivers/groundfx.cpp2
-rw-r--r--src/mame/drivers/gstream.cpp2
-rw-r--r--src/mame/drivers/gunpey.cpp2
-rw-r--r--src/mame/drivers/hideseek.cpp6
-rw-r--r--src/mame/drivers/homerun.cpp8
-rw-r--r--src/mame/drivers/horizon.cpp22
-rw-r--r--src/mame/drivers/hornet.cpp6
-rw-r--r--src/mame/drivers/hp64k.cpp6
-rw-r--r--src/mame/drivers/ht68k.cpp6
-rw-r--r--src/mame/drivers/huebler.cpp2
-rw-r--r--src/mame/drivers/hunter2.cpp2
-rw-r--r--src/mame/drivers/hx20.cpp2
-rw-r--r--src/mame/drivers/ibmpc.cpp10
-rw-r--r--src/mame/drivers/ibmpcjr.cpp8
-rw-r--r--src/mame/drivers/igs009.cpp4
-rw-r--r--src/mame/drivers/igs011.cpp22
-rw-r--r--src/mame/drivers/imds2.cpp6
-rw-r--r--src/mame/drivers/intv.cpp2
-rw-r--r--src/mame/drivers/iq151.cpp8
-rw-r--r--src/mame/drivers/isbc.cpp12
-rw-r--r--src/mame/drivers/iskr103x.cpp16
-rw-r--r--src/mame/drivers/itech32.cpp2
-rw-r--r--src/mame/drivers/itech8.cpp2
-rw-r--r--src/mame/drivers/itt3030.cpp18
-rw-r--r--src/mame/drivers/jack.cpp16
-rw-r--r--src/mame/drivers/jackie.cpp2
-rw-r--r--src/mame/drivers/jaguar.cpp8
-rw-r--r--src/mame/drivers/jalmah.cpp12
-rw-r--r--src/mame/drivers/jangou.cpp2
-rw-r--r--src/mame/drivers/jclub2.cpp4
-rw-r--r--src/mame/drivers/jollyjgr.cpp2
-rw-r--r--src/mame/drivers/juicebox.cpp10
-rw-r--r--src/mame/drivers/jupiter.cpp4
-rw-r--r--src/mame/drivers/kaneko16.cpp52
-rw-r--r--src/mame/drivers/kaypro.cpp4
-rw-r--r--src/mame/drivers/kc.cpp14
-rw-r--r--src/mame/drivers/kickgoal.cpp12
-rw-r--r--src/mame/drivers/kinst.cpp2
-rw-r--r--src/mame/drivers/koikoi.cpp4
-rw-r--r--src/mame/drivers/konamigx.cpp2
-rw-r--r--src/mame/drivers/ksys573.cpp8
-rw-r--r--src/mame/drivers/kyocera.cpp8
-rw-r--r--src/mame/drivers/legionna.cpp122
-rw-r--r--src/mame/drivers/lemmings.cpp6
-rw-r--r--src/mame/drivers/lethalj.cpp16
-rw-r--r--src/mame/drivers/liberate.cpp10
-rw-r--r--src/mame/drivers/lola8a.cpp4
-rw-r--r--src/mame/drivers/m10.cpp2
-rw-r--r--src/mame/drivers/m20.cpp4
-rw-r--r--src/mame/drivers/m24.cpp6
-rw-r--r--src/mame/drivers/m5.cpp2
-rw-r--r--src/mame/drivers/m63.cpp6
-rw-r--r--src/mame/drivers/m92.cpp10
-rw-r--r--src/mame/drivers/macs.cpp22
-rw-r--r--src/mame/drivers/magictg.cpp2
-rw-r--r--src/mame/drivers/mario.cpp8
-rw-r--r--src/mame/drivers/mbc200.cpp2
-rw-r--r--src/mame/drivers/mbee.cpp2
-rw-r--r--src/mame/drivers/mc1502.cpp2
-rw-r--r--src/mame/drivers/mc80.cpp2
-rw-r--r--src/mame/drivers/mediagx.cpp10
-rw-r--r--src/mame/drivers/megadriv.cpp12
-rw-r--r--src/mame/drivers/megatech.cpp6
-rw-r--r--src/mame/drivers/meritm.cpp2
-rw-r--r--src/mame/drivers/mexico86.cpp2
-rw-r--r--src/mame/drivers/microvsn.cpp2
-rw-r--r--src/mame/drivers/midqslvr.cpp6
-rw-r--r--src/mame/drivers/midvunit.cpp2
-rw-r--r--src/mame/drivers/mikromik.cpp6
-rw-r--r--src/mame/drivers/mirage.cpp2
-rw-r--r--src/mame/drivers/missb2.cpp4
-rw-r--r--src/mame/drivers/missile.cpp4
-rw-r--r--src/mame/drivers/mitchell.cpp12
-rw-r--r--src/mame/drivers/model2.cpp4
-rw-r--r--src/mame/drivers/model3.cpp306
-rw-r--r--src/mame/drivers/mogura.cpp2
-rw-r--r--src/mame/drivers/monty.cpp4
-rw-r--r--src/mame/drivers/mpu4mdm.cpp2
-rw-r--r--src/mame/drivers/mpz80.cpp22
-rw-r--r--src/mame/drivers/mquake.cpp2
-rw-r--r--src/mame/drivers/mrgame.cpp2
-rw-r--r--src/mame/drivers/msx.cpp4
-rw-r--r--src/mame/drivers/mtx.cpp4
-rw-r--r--src/mame/drivers/multigam.cpp10
-rw-r--r--src/mame/drivers/mwarr.cpp10
-rw-r--r--src/mame/drivers/myb3k.cpp2
-rw-r--r--src/mame/drivers/mz2000.cpp4
-rw-r--r--src/mame/drivers/mz2500.cpp2
-rw-r--r--src/mame/drivers/n64.cpp2
-rw-r--r--src/mame/drivers/namcona1.cpp2
-rw-r--r--src/mame/drivers/namcos10.cpp4
-rw-r--r--src/mame/drivers/namcos11.cpp4
-rw-r--r--src/mame/drivers/namcos12.cpp2
-rw-r--r--src/mame/drivers/namcos22.cpp6
-rw-r--r--src/mame/drivers/namcos23.cpp2
-rw-r--r--src/mame/drivers/namcos86.cpp6
-rw-r--r--src/mame/drivers/nanos.cpp2
-rw-r--r--src/mame/drivers/naomi.cpp2
-rw-r--r--src/mame/drivers/nascom1.cpp18
-rw-r--r--src/mame/drivers/nbmj9195.cpp4
-rw-r--r--src/mame/drivers/nc.cpp6
-rw-r--r--src/mame/drivers/neogeo_noslot.cpp100
-rw-r--r--src/mame/drivers/nes.cpp4
-rw-r--r--src/mame/drivers/next.cpp18
-rw-r--r--src/mame/drivers/ng_aes.cpp6
-rw-r--r--src/mame/drivers/ngen.cpp14
-rw-r--r--src/mame/drivers/ngp.cpp4
-rw-r--r--src/mame/drivers/nightgal.cpp2
-rw-r--r--src/mame/drivers/ninjaw.cpp10
-rw-r--r--src/mame/drivers/niyanpai.cpp2
-rw-r--r--src/mame/drivers/nmk16.cpp8
-rw-r--r--src/mame/drivers/ob68k1a.cpp2
-rw-r--r--src/mame/drivers/odyssey2.cpp2
-rw-r--r--src/mame/drivers/oric.cpp8
-rw-r--r--src/mame/drivers/osbexec.cpp4
-rw-r--r--src/mame/drivers/osborne1.cpp2
-rw-r--r--src/mame/drivers/osi.cpp2
-rw-r--r--src/mame/drivers/p8k.cpp4
-rw-r--r--src/mame/drivers/palm.cpp2
-rw-r--r--src/mame/drivers/palm_dbg.inc2
-rw-r--r--src/mame/drivers/palmz22.cpp4
-rw-r--r--src/mame/drivers/pasogo.cpp2
-rw-r--r--src/mame/drivers/pasopia.cpp2
-rw-r--r--src/mame/drivers/pasopia7.cpp2
-rw-r--r--src/mame/drivers/pc.cpp2
-rw-r--r--src/mame/drivers/pc1512.cpp22
-rw-r--r--src/mame/drivers/pc8401a.cpp12
-rw-r--r--src/mame/drivers/pc88va.cpp2
-rw-r--r--src/mame/drivers/pc9801.cpp4
-rw-r--r--src/mame/drivers/pcd.cpp6
-rw-r--r--src/mame/drivers/pce.cpp6
-rw-r--r--src/mame/drivers/pcm.cpp2
-rw-r--r--src/mame/drivers/pcw16.cpp2
-rw-r--r--src/mame/drivers/pdp1.cpp42
-rw-r--r--src/mame/drivers/pegasus.cpp2
-rw-r--r--src/mame/drivers/pet.cpp12
-rw-r--r--src/mame/drivers/photon2.cpp2
-rw-r--r--src/mame/drivers/photoply.cpp2
-rw-r--r--src/mame/drivers/pinball2k.cpp4
-rw-r--r--src/mame/drivers/pinkiri8.cpp2
-rw-r--r--src/mame/drivers/pipedrm.cpp8
-rw-r--r--src/mame/drivers/pipeline.cpp2
-rw-r--r--src/mame/drivers/playmark.cpp78
-rw-r--r--src/mame/drivers/plus4.cpp14
-rw-r--r--src/mame/drivers/poisk1.cpp6
-rw-r--r--src/mame/drivers/polyplay.cpp2
-rw-r--r--src/mame/drivers/portfoli.cpp2
-rw-r--r--src/mame/drivers/powerbal.cpp4
-rw-r--r--src/mame/drivers/primo.cpp6
-rw-r--r--src/mame/drivers/prof80.cpp16
-rw-r--r--src/mame/drivers/proteus3.cpp2
-rw-r--r--src/mame/drivers/psikyo.cpp2
-rw-r--r--src/mame/drivers/psikyo4.cpp2
-rw-r--r--src/mame/drivers/pt68k4.cpp28
-rw-r--r--src/mame/drivers/pulsar.cpp4
-rw-r--r--src/mame/drivers/pzletime.cpp10
-rw-r--r--src/mame/drivers/qdrmfgp.cpp4
-rw-r--r--src/mame/drivers/ql.cpp8
-rw-r--r--src/mame/drivers/queen.cpp8
-rw-r--r--src/mame/drivers/qx10.cpp4
-rw-r--r--src/mame/drivers/r2dx_v33.cpp4
-rw-r--r--src/mame/drivers/raiden.cpp14
-rw-r--r--src/mame/drivers/raiden2.cpp64
-rw-r--r--src/mame/drivers/rallyx.cpp2
-rw-r--r--src/mame/drivers/rc759.cpp2
-rw-r--r--src/mame/drivers/retofinv.cpp4
-rw-r--r--src/mame/drivers/rmnimbus.cpp2
-rw-r--r--src/mame/drivers/rotaryf.cpp2
-rw-r--r--src/mame/drivers/royalmah.cpp4
-rw-r--r--src/mame/drivers/rpunch.cpp2
-rw-r--r--src/mame/drivers/rt1715.cpp2
-rw-r--r--src/mame/drivers/safarir.cpp2
-rw-r--r--src/mame/drivers/sage2.cpp4
-rw-r--r--src/mame/drivers/samcoupe.cpp4
-rw-r--r--src/mame/drivers/saturn.cpp16
-rw-r--r--src/mame/drivers/savquest.cpp10
-rw-r--r--src/mame/drivers/sbrain.cpp2
-rw-r--r--src/mame/drivers/scorpion.cpp2
-rw-r--r--src/mame/drivers/scv.cpp2
-rw-r--r--src/mame/drivers/sealy.cpp2
-rw-r--r--src/mame/drivers/seattle.cpp6
-rw-r--r--src/mame/drivers/segac2.cpp8
-rw-r--r--src/mame/drivers/segag80r.cpp6
-rw-r--r--src/mame/drivers/segag80v.cpp6
-rw-r--r--src/mame/drivers/segahang.cpp2
-rw-r--r--src/mame/drivers/segapico.cpp6
-rw-r--r--src/mame/drivers/segas16a.cpp4
-rw-r--r--src/mame/drivers/segas16b.cpp8
-rw-r--r--src/mame/drivers/segas18.cpp2
-rw-r--r--src/mame/drivers/segas24.cpp16
-rw-r--r--src/mame/drivers/segaxbd.cpp16
-rw-r--r--src/mame/drivers/seibuspi.cpp8
-rw-r--r--src/mame/drivers/sengokmj.cpp4
-rw-r--r--src/mame/drivers/seta.cpp14
-rw-r--r--src/mame/drivers/seta2.cpp6
-rw-r--r--src/mame/drivers/sg1000.cpp10
-rw-r--r--src/mame/drivers/shangha3.cpp10
-rw-r--r--src/mame/drivers/sigmab98.cpp2
-rw-r--r--src/mame/drivers/silkroad.cpp12
-rw-r--r--src/mame/drivers/skykid.cpp10
-rw-r--r--src/mame/drivers/slapshot.cpp6
-rw-r--r--src/mame/drivers/slicer.cpp8
-rw-r--r--src/mame/drivers/smc777.cpp2
-rw-r--r--src/mame/drivers/snes.cpp2
-rw-r--r--src/mame/drivers/snk.cpp4
-rw-r--r--src/mame/drivers/snk6502.cpp6
-rw-r--r--src/mame/drivers/socrates.cpp2
-rw-r--r--src/mame/drivers/softbox.cpp2
-rw-r--r--src/mame/drivers/spc1000.cpp2
-rw-r--r--src/mame/drivers/spectrum.cpp4
-rw-r--r--src/mame/drivers/speedatk.cpp2
-rw-r--r--src/mame/drivers/spoker.cpp10
-rw-r--r--src/mame/drivers/sprint2.cpp4
-rw-r--r--src/mame/drivers/sprint4.cpp6
-rw-r--r--src/mame/drivers/srmp5.cpp2
-rw-r--r--src/mame/drivers/ssfindo.cpp2
-rw-r--r--src/mame/drivers/ssingles.cpp2
-rw-r--r--src/mame/drivers/sslam.cpp12
-rw-r--r--src/mame/drivers/ssv.cpp76
-rw-r--r--src/mame/drivers/starcrus.cpp2
-rw-r--r--src/mame/drivers/starfire.cpp2
-rw-r--r--src/mame/drivers/starshp1.cpp2
-rw-r--r--src/mame/drivers/stlforce.cpp20
-rw-r--r--src/mame/drivers/stratos.cpp2
-rw-r--r--src/mame/drivers/studio2.cpp2
-rw-r--r--src/mame/drivers/stv.cpp6
-rw-r--r--src/mame/drivers/suna8.cpp30
-rw-r--r--src/mame/drivers/super6.cpp8
-rw-r--r--src/mame/drivers/supercon.cpp2
-rw-r--r--src/mame/drivers/superslave.cpp8
-rw-r--r--src/mame/drivers/system1.cpp16
-rw-r--r--src/mame/drivers/system16.cpp18
-rw-r--r--src/mame/drivers/taito_f3.cpp372
-rw-r--r--src/mame/drivers/taito_l.cpp52
-rw-r--r--src/mame/drivers/taitosj.cpp10
-rw-r--r--src/mame/drivers/taitotz.cpp8
-rw-r--r--src/mame/drivers/taitowlf.cpp4
-rw-r--r--src/mame/drivers/tandy1t.cpp36
-rw-r--r--src/mame/drivers/tandy2k.cpp2
-rw-r--r--src/mame/drivers/tankbatt.cpp2
-rw-r--r--src/mame/drivers/thayers.cpp16
-rw-r--r--src/mame/drivers/thief.cpp6
-rw-r--r--src/mame/drivers/thomson.cpp4
-rw-r--r--src/mame/drivers/ti99_4p.cpp2
-rw-r--r--src/mame/drivers/ti99_4x.cpp24
-rw-r--r--src/mame/drivers/ti99_8.cpp6
-rw-r--r--src/mame/drivers/tiamc1.cpp16
-rw-r--r--src/mame/drivers/tiki100.cpp10
-rw-r--r--src/mame/drivers/tim011.cpp2
-rw-r--r--src/mame/drivers/timex.cpp4
-rw-r--r--src/mame/drivers/tk2000.cpp2
-rw-r--r--src/mame/drivers/tmaster.cpp4
-rw-r--r--src/mame/drivers/toaplan2.cpp6
-rw-r--r--src/mame/drivers/triforce.cpp2
-rw-r--r--src/mame/drivers/trs80m2.cpp16
-rw-r--r--src/mame/drivers/trvmadns.cpp2
-rw-r--r--src/mame/drivers/tryout.cpp2
-rw-r--r--src/mame/drivers/turrett.cpp2
-rw-r--r--src/mame/drivers/tvc.cpp8
-rw-r--r--src/mame/drivers/twinkle.cpp2
-rw-r--r--src/mame/drivers/tx0.cpp26
-rw-r--r--src/mame/drivers/ultratnk.cpp2
-rw-r--r--src/mame/drivers/univac.cpp4
-rw-r--r--src/mame/drivers/upscope.cpp2
-rw-r--r--src/mame/drivers/usgames.cpp2
-rw-r--r--src/mame/drivers/uzebox.cpp2
-rw-r--r--src/mame/drivers/v1050.cpp8
-rw-r--r--src/mame/drivers/v6809.cpp2
-rw-r--r--src/mame/drivers/vamphalf.cpp60
-rw-r--r--src/mame/drivers/vc4000.cpp4
-rw-r--r--src/mame/drivers/vcombat.cpp6
-rw-r--r--src/mame/drivers/vectrex.cpp2
-rw-r--r--src/mame/drivers/vegas.cpp8
-rw-r--r--src/mame/drivers/vertigo.cpp2
-rw-r--r--src/mame/drivers/vic10.cpp4
-rw-r--r--src/mame/drivers/vic20.cpp6
-rw-r--r--src/mame/drivers/victor9k.cpp4
-rw-r--r--src/mame/drivers/vip.cpp6
-rw-r--r--src/mame/drivers/viper.cpp2
-rw-r--r--src/mame/drivers/vixen.cpp4
-rw-r--r--src/mame/drivers/votrpss.cpp2
-rw-r--r--src/mame/drivers/voyager.cpp6
-rw-r--r--src/mame/drivers/vtech2.cpp2
-rw-r--r--src/mame/drivers/wangpc.cpp12
-rw-r--r--src/mame/drivers/warriorb.cpp8
-rw-r--r--src/mame/drivers/wmg.cpp2
-rw-r--r--src/mame/drivers/wolfpack.cpp6
-rw-r--r--src/mame/drivers/wpc_95.cpp112
-rw-r--r--src/mame/drivers/wpc_dcs.cpp24
-rw-r--r--src/mame/drivers/wpc_dot.cpp2
-rw-r--r--src/mame/drivers/wpc_s.cpp68
-rw-r--r--src/mame/drivers/x07.cpp2
-rw-r--r--src/mame/drivers/x1.cpp12
-rw-r--r--src/mame/drivers/x1twin.cpp4
-rw-r--r--src/mame/drivers/xain.cpp6
-rw-r--r--src/mame/drivers/xerox820.cpp12
-rw-r--r--src/mame/drivers/xor100.cpp28
-rw-r--r--src/mame/drivers/xtom3d.cpp4
-rw-r--r--src/mame/drivers/z100.cpp2
-rw-r--r--src/mame/drivers/z88.cpp6
-rw-r--r--src/mame/drivers/z9001.cpp2
-rw-r--r--src/mame/drivers/zaxxon.cpp12
-rw-r--r--src/mame/drivers/zn.cpp8
-rw-r--r--src/mame/drivers/zorba.cpp2
-rw-r--r--src/mame/includes/apollo.h6
-rw-r--r--src/mame/includes/bullet.h2
-rw-r--r--src/mame/includes/bw2.h2
-rw-r--r--src/mame/includes/chihiro.h8
-rw-r--r--src/mame/includes/decocass.h2
-rw-r--r--src/mame/includes/fm7.h2
-rw-r--r--src/mame/includes/hp48.h4
-rw-r--r--src/mame/includes/jaguar.h6
-rw-r--r--src/mame/includes/msx.h4
-rw-r--r--src/mame/includes/namcos2.h2
-rw-r--r--src/mame/includes/osborne1.h8
-rw-r--r--src/mame/includes/sage2.h2
-rw-r--r--src/mame/includes/samcoupe.h16
-rw-r--r--src/mame/includes/segaorun.h4
-rw-r--r--src/mame/includes/segas16b.h2
-rw-r--r--src/mame/includes/segaybd.h2
-rw-r--r--src/mame/includes/sms.h2
-rw-r--r--src/mame/includes/svi318.h2
-rw-r--r--src/mame/includes/trs80.h36
-rw-r--r--src/mame/includes/trs80m2.h2
-rw-r--r--src/mame/includes/xbox.h2
-rw-r--r--src/mame/machine/315-5881_crypt.cpp2
-rw-r--r--src/mame/machine/6883sam.cpp14
-rw-r--r--src/mame/machine/6883sam.h2
-rw-r--r--src/mame/machine/abc1600mac.cpp4
-rw-r--r--src/mame/machine/amiga.cpp6
-rw-r--r--src/mame/machine/amigakbd.cpp12
-rw-r--r--src/mame/machine/amstrad.cpp52
-rw-r--r--src/mame/machine/apollo.cpp8
-rw-r--r--src/mame/machine/apollo_dbg.cpp516
-rw-r--r--src/mame/machine/apollo_kbd.cpp10
-rw-r--r--src/mame/machine/appldriv.cpp16
-rw-r--r--src/mame/machine/apple2.cpp66
-rw-r--r--src/mame/machine/apple2gs.cpp14
-rw-r--r--src/mame/machine/apple3.cpp26
-rw-r--r--src/mame/machine/applefdc.cpp18
-rw-r--r--src/mame/machine/apricotkb_hle.cpp60
-rw-r--r--src/mame/machine/archimds.cpp8
-rw-r--r--src/mame/machine/asic65.cpp2
-rw-r--r--src/mame/machine/asteroid.cpp4
-rw-r--r--src/mame/machine/atarifdc.cpp6
-rw-r--r--src/mame/machine/atarigen.cpp46
-rw-r--r--src/mame/machine/awboard.cpp4
-rw-r--r--src/mame/machine/b2m.cpp2
-rw-r--r--src/mame/machine/balsente.cpp2
-rw-r--r--src/mame/machine/bbc.cpp8
-rw-r--r--src/mame/machine/bebox.cpp10
-rw-r--r--src/mame/machine/bublbobl.cpp2
-rw-r--r--src/mame/machine/c117.cpp4
-rw-r--r--src/mame/machine/c117.h2
-rw-r--r--src/mame/machine/coco.cpp106
-rw-r--r--src/mame/machine/coco_vhd.h4
-rw-r--r--src/mame/machine/cps2crpt.cpp8
-rw-r--r--src/mame/machine/cuda.cpp4
-rw-r--r--src/mame/machine/dc-ctrl.cpp12
-rw-r--r--src/mame/machine/decocass_tape.cpp6
-rw-r--r--src/mame/machine/dgn_beta.cpp128
-rw-r--r--src/mame/machine/dgnalpha.cpp2
-rw-r--r--src/mame/machine/egret.cpp2
-rw-r--r--src/mame/machine/electron.cpp2
-rw-r--r--src/mame/machine/fd1089.cpp4
-rw-r--r--src/mame/machine/fd1094.cpp12
-rw-r--r--src/mame/machine/gaelco3d.cpp12
-rw-r--r--src/mame/machine/gamecom.cpp4
-rw-r--r--src/mame/machine/gdrom.cpp4
-rw-r--r--src/mame/machine/genpin.h2
-rw-r--r--src/mame/machine/harddriv.cpp18
-rw-r--r--src/mame/machine/hec2hrp.cpp2
-rw-r--r--src/mame/machine/hp48.cpp6
-rw-r--r--src/mame/machine/igs022.cpp2
-rw-r--r--src/mame/machine/igs028.cpp2
-rw-r--r--src/mame/machine/inder_sb.cpp2
-rw-r--r--src/mame/machine/isbc_215g.cpp6
-rw-r--r--src/mame/machine/iteagle_fpga.cpp6
-rw-r--r--src/mame/machine/kaneko_calc3.cpp2
-rw-r--r--src/mame/machine/kaypro.cpp4
-rw-r--r--src/mame/machine/kc.cpp2
-rw-r--r--src/mame/machine/konppc.cpp8
-rw-r--r--src/mame/machine/lynx.cpp6
-rw-r--r--src/mame/machine/mac.cpp10
-rw-r--r--src/mame/machine/maple-dc.cpp4
-rw-r--r--src/mame/machine/mapledev.cpp2
-rw-r--r--src/mame/machine/mbc55x.cpp4
-rw-r--r--src/mame/machine/mbee.cpp2
-rw-r--r--src/mame/machine/mcr.cpp4
-rw-r--r--src/mame/machine/megacdcd.cpp26
-rw-r--r--src/mame/machine/mexico86.cpp2
-rw-r--r--src/mame/machine/mhavoc.cpp2
-rw-r--r--src/mame/machine/microdrv.h2
-rw-r--r--src/mame/machine/micropolis.cpp4
-rw-r--r--src/mame/machine/microtan.cpp4
-rw-r--r--src/mame/machine/midwayic.cpp20
-rw-r--r--src/mame/machine/mie.cpp8
-rw-r--r--src/mame/machine/mm1kb.cpp2
-rw-r--r--src/mame/machine/model1.cpp100
-rw-r--r--src/mame/machine/msx.cpp2
-rw-r--r--src/mame/machine/mtx.cpp2
-rw-r--r--src/mame/machine/n64.cpp8
-rw-r--r--src/mame/machine/namco51.cpp2
-rw-r--r--src/mame/machine/namcos2.cpp10
-rw-r--r--src/mame/machine/naomibd.cpp8
-rw-r--r--src/mame/machine/naomigd.cpp6
-rw-r--r--src/mame/machine/naomim1.cpp4
-rw-r--r--src/mame/machine/naomim4.cpp6
-rw-r--r--src/mame/machine/nb1414m4.cpp2
-rw-r--r--src/mame/machine/ng_memcard.h2
-rw-r--r--src/mame/machine/nmk112.cpp8
-rw-r--r--src/mame/machine/osborne1.cpp2
-rw-r--r--src/mame/machine/pce220_ser.h4
-rw-r--r--src/mame/machine/pk8020.cpp2
-rw-r--r--src/mame/machine/playch10.cpp22
-rw-r--r--src/mame/machine/pmd85.cpp4
-rw-r--r--src/mame/machine/prof80mmu.cpp2
-rw-r--r--src/mame/machine/psion_pack.cpp6
-rw-r--r--src/mame/machine/psxcd.cpp44
-rw-r--r--src/mame/machine/psxcd.h4
-rw-r--r--src/mame/machine/rm380z.cpp2
-rw-r--r--src/mame/machine/rmnimbus.cpp14
-rw-r--r--src/mame/machine/rx01.cpp2
-rw-r--r--src/mame/machine/samcoupe.cpp14
-rw-r--r--src/mame/machine/scramble.cpp2
-rw-r--r--src/mame/machine/segaic16.cpp46
-rw-r--r--src/mame/machine/segaic16.h4
-rw-r--r--src/mame/machine/seicop.cpp2
-rw-r--r--src/mame/machine/sgi.cpp2
-rw-r--r--src/mame/machine/slapstic.cpp2
-rw-r--r--src/mame/machine/smartmed.cpp12
-rw-r--r--src/mame/machine/smartmed.h2
-rw-r--r--src/mame/machine/sms.cpp6
-rw-r--r--src/mame/machine/sonydriv.cpp8
-rw-r--r--src/mame/machine/special.cpp2
-rw-r--r--src/mame/machine/st0016.cpp2
-rw-r--r--src/mame/machine/super80.cpp2
-rw-r--r--src/mame/machine/svi318.cpp4
-rw-r--r--src/mame/machine/swtpc09.cpp6
-rw-r--r--src/mame/machine/tait8741.cpp2
-rw-r--r--src/mame/machine/taitosj.cpp2
-rw-r--r--src/mame/machine/thomflop.cpp10
-rw-r--r--src/mame/machine/thomson.cpp10
-rw-r--r--src/mame/machine/ticket.cpp2
-rw-r--r--src/mame/machine/tnzs.cpp2
-rw-r--r--src/mame/machine/trs80.cpp4
-rw-r--r--src/mame/machine/vector06.cpp2
-rw-r--r--src/mame/machine/volfied.cpp2
-rw-r--r--src/mame/machine/vsnes.cpp2
-rw-r--r--src/mame/machine/vtech2.cpp4
-rw-r--r--src/mame/machine/wpc_lamp.cpp2
-rw-r--r--src/mame/machine/wpc_out.cpp2
-rw-r--r--src/mame/machine/x68k_hdc.h4
-rw-r--r--src/mame/machine/xbox.cpp10
-rw-r--r--src/mame/machine/z80ne.cpp2
-rw-r--r--src/mame/machine/zs01.cpp2
-rw-r--r--src/mame/machine/zx8302.cpp2
-rw-r--r--src/mame/video/amiga.cpp8
-rw-r--r--src/mame/video/amigaaga.cpp8
-rw-r--r--src/mame/video/antic.cpp4
-rw-r--r--src/mame/video/apple1.cpp2
-rw-r--r--src/mame/video/apple2.cpp4
-rw-r--r--src/mame/video/arcadecl.cpp8
-rw-r--r--src/mame/video/argus.cpp4
-rw-r--r--src/mame/video/arkanoid.cpp2
-rw-r--r--src/mame/video/artmagic.cpp2
-rw-r--r--src/mame/video/atarimo.cpp4
-rw-r--r--src/mame/video/atarirle.cpp10
-rw-r--r--src/mame/video/atarisy1.cpp4
-rw-r--r--src/mame/video/atarisy2.cpp2
-rw-r--r--src/mame/video/badlands.cpp2
-rw-r--r--src/mame/video/batman.cpp4
-rw-r--r--src/mame/video/bbusters.cpp2
-rw-r--r--src/mame/video/beathead.cpp2
-rw-r--r--src/mame/video/blstroid.cpp2
-rw-r--r--src/mame/video/btime.cpp4
-rw-r--r--src/mame/video/buggychl.cpp2
-rw-r--r--src/mame/video/c45.cpp6
-rw-r--r--src/mame/video/calomega.cpp2
-rw-r--r--src/mame/video/cave.cpp20
-rw-r--r--src/mame/video/cclimber.cpp2
-rw-r--r--src/mame/video/chihiro.cpp30
-rw-r--r--src/mame/video/cloak.cpp4
-rw-r--r--src/mame/video/cps1.cpp12
-rw-r--r--src/mame/video/crt.cpp4
-rw-r--r--src/mame/video/cvs.cpp4
-rw-r--r--src/mame/video/cyberbal.cpp4
-rw-r--r--src/mame/video/dassault.cpp4
-rw-r--r--src/mame/video/decbac06.cpp12
-rw-r--r--src/mame/video/deco16ic.cpp26
-rw-r--r--src/mame/video/deco_mlc.cpp2
-rw-r--r--src/mame/video/deco_zoomspr.cpp2
-rw-r--r--src/mame/video/decocomn.cpp2
-rw-r--r--src/mame/video/decodmd2.cpp2
-rw-r--r--src/mame/video/decodmd3.cpp2
-rw-r--r--src/mame/video/dkong.cpp4
-rw-r--r--src/mame/video/dooyong.cpp4
-rw-r--r--src/mame/video/dynax.cpp2
-rw-r--r--src/mame/video/eprom.cpp8
-rw-r--r--src/mame/video/exerion.cpp2
-rw-r--r--src/mame/video/exidy440.cpp2
-rw-r--r--src/mame/video/exterm.cpp4
-rw-r--r--src/mame/video/flkatck.cpp2
-rw-r--r--src/mame/video/fromanc2.cpp8
-rw-r--r--src/mame/video/fuukifg2.cpp2
-rw-r--r--src/mame/video/gaiden.cpp2
-rw-r--r--src/mame/video/galaxian.cpp6
-rw-r--r--src/mame/video/galaxold.cpp10
-rw-r--r--src/mame/video/gauntlet.cpp2
-rw-r--r--src/mame/video/gic.cpp8
-rw-r--r--src/mame/video/gime.cpp10
-rw-r--r--src/mame/video/gp9001.cpp2
-rw-r--r--src/mame/video/gyruss.cpp2
-rw-r--r--src/mame/video/hnayayoi.cpp2
-rw-r--r--src/mame/video/hng64.cpp2
-rw-r--r--src/mame/video/igs017_igs031.cpp2
-rw-r--r--src/mame/video/irobot.cpp2
-rw-r--r--src/mame/video/itech32.cpp8
-rw-r--r--src/mame/video/jalblend.cpp2
-rw-r--r--src/mame/video/k001005.cpp8
-rw-r--r--src/mame/video/k001006.cpp6
-rw-r--r--src/mame/video/k001604.cpp6
-rw-r--r--src/mame/video/k007121.cpp2
-rw-r--r--src/mame/video/k007342.cpp12
-rw-r--r--src/mame/video/k007420.cpp2
-rw-r--r--src/mame/video/k037122.cpp6
-rw-r--r--src/mame/video/k051316.cpp4
-rw-r--r--src/mame/video/k051960.cpp10
-rw-r--r--src/mame/video/k052109.cpp28
-rw-r--r--src/mame/video/k053244_k053245.cpp6
-rw-r--r--src/mame/video/k053246_k053247_k055673.cpp10
-rw-r--r--src/mame/video/k053246_k053247_k055673.h4
-rw-r--r--src/mame/video/k053936.cpp4
-rw-r--r--src/mame/video/k054156_k054157_k056832.cpp22
-rw-r--r--src/mame/video/k054156_k054157_k056832.h2
-rw-r--r--src/mame/video/k054338.cpp4
-rw-r--r--src/mame/video/kan_pand.cpp2
-rw-r--r--src/mame/video/klax.cpp2
-rw-r--r--src/mame/video/konamigx.cpp8
-rw-r--r--src/mame/video/legionna.cpp2
-rw-r--r--src/mame/video/liberatr.cpp2
-rw-r--r--src/mame/video/m10.cpp2
-rw-r--r--src/mame/video/madalien.cpp2
-rw-r--r--src/mame/video/magmax.cpp4
-rw-r--r--src/mame/video/matmania.cpp8
-rw-r--r--src/mame/video/mb60553.cpp4
-rw-r--r--src/mame/video/mbee.cpp6
-rw-r--r--src/mame/video/megasys1.cpp2
-rw-r--r--src/mame/video/metro.cpp2
-rw-r--r--src/mame/video/midyunit.cpp2
-rw-r--r--src/mame/video/mitchell.cpp2
-rw-r--r--src/mame/video/model2.cpp24
-rw-r--r--src/mame/video/model3.cpp10
-rw-r--r--src/mame/video/mystston.cpp2
-rw-r--r--src/mame/video/mystwarr.cpp8
-rw-r--r--src/mame/video/n64.cpp8
-rw-r--r--src/mame/video/n64.h2
-rw-r--r--src/mame/video/namcos22.cpp8
-rw-r--r--src/mame/video/naughtyb.cpp4
-rw-r--r--src/mame/video/nbmj8891.cpp6
-rw-r--r--src/mame/video/nbmj8900.cpp6
-rw-r--r--src/mame/video/neogeo.cpp16
-rw-r--r--src/mame/video/neogeo_spr.cpp2
-rw-r--r--src/mame/video/nick.cpp4
-rw-r--r--src/mame/video/nmk16.cpp2
-rw-r--r--src/mame/video/offtwall.cpp2
-rw-r--r--src/mame/video/pacman.cpp2
-rw-r--r--src/mame/video/pc080sn.cpp6
-rw-r--r--src/mame/video/pc090oj.cpp4
-rw-r--r--src/mame/video/pc_t1t.cpp10
-rw-r--r--src/mame/video/pcw.cpp2
-rw-r--r--src/mame/video/pgm.cpp10
-rw-r--r--src/mame/video/plygonet.cpp2
-rw-r--r--src/mame/video/polepos.cpp2
-rw-r--r--src/mame/video/policetr.cpp2
-rw-r--r--src/mame/video/ppu2c0x.cpp4
-rw-r--r--src/mame/video/punchout.cpp2
-rw-r--r--src/mame/video/rampart.cpp2
-rw-r--r--src/mame/video/rdpblend.h2
-rw-r--r--src/mame/video/redalert.cpp4
-rw-r--r--src/mame/video/relief.cpp2
-rw-r--r--src/mame/video/rohga.cpp2
-rw-r--r--src/mame/video/rungun.cpp2
-rw-r--r--src/mame/video/segahang.cpp2
-rw-r--r--src/mame/video/segaic16.cpp8
-rw-r--r--src/mame/video/segaic24.cpp4
-rw-r--r--src/mame/video/segaorun.cpp4
-rw-r--r--src/mame/video/segas16a.cpp2
-rw-r--r--src/mame/video/segas16b.cpp2
-rw-r--r--src/mame/video/segas18.cpp2
-rw-r--r--src/mame/video/segas32.cpp10
-rw-r--r--src/mame/video/segaxbd.cpp2
-rw-r--r--src/mame/video/segaybd.cpp2
-rw-r--r--src/mame/video/seibu_crtc.cpp4
-rw-r--r--src/mame/video/seibuspi.cpp12
-rw-r--r--src/mame/video/seta.cpp22
-rw-r--r--src/mame/video/shuuz.cpp2
-rw-r--r--src/mame/video/skullxbo.cpp2
-rw-r--r--src/mame/video/spacefb.cpp2
-rw-r--r--src/mame/video/spbactn.cpp2
-rw-r--r--src/mame/video/spectrum.cpp4
-rw-r--r--src/mame/video/sshangha.cpp4
-rw-r--r--src/mame/video/st0020.cpp2
-rw-r--r--src/mame/video/system1.cpp2
-rw-r--r--src/mame/video/system16.cpp8
-rw-r--r--src/mame/video/taito_b.cpp2
-rw-r--r--src/mame/video/taito_f2.cpp20
-rw-r--r--src/mame/video/taito_f3.cpp36
-rw-r--r--src/mame/video/taitojc.cpp2
-rw-r--r--src/mame/video/tc0080vco.cpp26
-rw-r--r--src/mame/video/tc0100scn.cpp16
-rw-r--r--src/mame/video/tc0110pcr.cpp2
-rw-r--r--src/mame/video/tc0150rod.cpp2
-rw-r--r--src/mame/video/tc0180vcu.cpp2
-rw-r--r--src/mame/video/tc0280grd.cpp2
-rw-r--r--src/mame/video/tc0480scp.cpp12
-rw-r--r--src/mame/video/tceptor.cpp2
-rw-r--r--src/mame/video/tecmo16.cpp2
-rw-r--r--src/mame/video/thomson.cpp6
-rw-r--r--src/mame/video/thunderj.cpp4
-rw-r--r--src/mame/video/timex.cpp4
-rw-r--r--src/mame/video/toaplan2.cpp4
-rw-r--r--src/mame/video/tp84.cpp4
-rw-r--r--src/mame/video/tubep.cpp4
-rw-r--r--src/mame/video/twin16.cpp2
-rw-r--r--src/mame/video/twincobr.cpp2
-rw-r--r--src/mame/video/vaportra.cpp4
-rw-r--r--src/mame/video/vigilant.cpp2
-rw-r--r--src/mame/video/vindictr.cpp4
-rw-r--r--src/mame/video/vs920a.cpp2
-rw-r--r--src/mame/video/vtvideo.cpp4
-rw-r--r--src/mame/video/williams.cpp4
-rw-r--r--src/mame/video/x68k.cpp2
-rw-r--r--src/mame/video/xybots.cpp2
-rw-r--r--src/mame/video/ygv608.cpp4
-rw-r--r--src/mame/video/zaccaria.cpp2
-rw-r--r--src/mame/video/zx8301.cpp4
842 files changed, 4115 insertions, 4115 deletions
diff --git a/src/mame/audio/8080bw.cpp b/src/mame/audio/8080bw.cpp
index 187aeea1afb..3b12f867ef4 100644
--- a/src/mame/audio/8080bw.cpp
+++ b/src/mame/audio/8080bw.cpp
@@ -133,7 +133,7 @@ const char *const lrescue_sample_names[] =
"shootingstar",
"stepl",
"steph",
- 0
+ nullptr
};
WRITE8_MEMBER(_8080bw_state::lrescue_sh_port_1_w)
@@ -1054,7 +1054,7 @@ const char *const lupin3_sample_names[] =
"warp", /* translocate, deposit money */
"extend", /* bonus man */
"kick", /* lands on top of building, wife kicks man */
- 0
+ nullptr
};
WRITE8_MEMBER( _8080bw_state::lupin3_00_w )
diff --git a/src/mame/audio/astrof.cpp b/src/mame/audio/astrof.cpp
index cd308d88203..98c1b62cc9a 100644
--- a/src/mame/audio/astrof.cpp
+++ b/src/mame/audio/astrof.cpp
@@ -135,7 +135,7 @@ static const char *const astrof_sample_names[] =
"death",
"bosshit",
"bosskill",
- 0
+ nullptr
};
MACHINE_CONFIG_FRAGMENT( astrof_audio )
diff --git a/src/mame/audio/atarijsa.cpp b/src/mame/audio/atarijsa.cpp
index b4a8cc67501..99fe02bbdb3 100644
--- a/src/mame/audio/atarijsa.cpp
+++ b/src/mame/audio/atarijsa.cpp
@@ -433,11 +433,11 @@ atari_jsa_oki_base_device::atari_jsa_oki_base_device(const machine_config &mconf
READ8_MEMBER( atari_jsa_oki_base_device::oki_r )
{
// JSA IIIs selects the 2nd OKI via the low bit, so select it
- if (m_oki2 != NULL && offset == 1)
+ if (m_oki2 != nullptr && offset == 1)
return m_oki2->read(space, offset);
// OKI may not be populated at all
- else if (m_oki1 != NULL)
+ else if (m_oki1 != nullptr)
return m_oki1->read(space, offset);
// if not present, return all 0xff
@@ -453,11 +453,11 @@ READ8_MEMBER( atari_jsa_oki_base_device::oki_r )
WRITE8_MEMBER( atari_jsa_oki_base_device::oki_w )
{
// JSA IIIs selects the 2nd OKI via the low bit, so select it
- if (m_oki2 != NULL && offset == 1)
+ if (m_oki2 != nullptr && offset == 1)
m_oki2->write(space, offset, data);
// OKI may not be populated at all
- else if (m_oki1 != NULL)
+ else if (m_oki1 != nullptr)
m_oki1->write(space, offset, data);
}
@@ -487,7 +487,7 @@ WRITE8_MEMBER( atari_jsa_oki_base_device::wrio_w )
coin_counter_w(space.machine(), 0, (data >> 4) & 1);
// update the OKI frequency
- if (m_oki1 != NULL)
+ if (m_oki1 != nullptr)
{
m_oki1->set_pin7(data & 8);
if ((data & 4) == 0)
@@ -495,7 +495,7 @@ WRITE8_MEMBER( atari_jsa_oki_base_device::wrio_w )
}
// same for the 2nd OKI (JSA IIIs only)
- if (m_oki2 != NULL)
+ if (m_oki2 != nullptr)
{
m_oki2->set_pin7(data & 8);
if ((data & 4) == 0)
@@ -503,7 +503,7 @@ WRITE8_MEMBER( atari_jsa_oki_base_device::wrio_w )
}
// update the (left) OKI bank (JSA III/IIIs only)
- if (m_oki1_banklo != NULL)
+ if (m_oki1_banklo != nullptr)
m_oki1_banklo->set_entry((m_oki1_banklo->entry() & 2) | ((data >> 1) & 1));
// reset the YM2151 if needed
@@ -528,11 +528,11 @@ WRITE8_MEMBER( atari_jsa_oki_base_device::mix_w )
//
// update the right OKI bank (JSA IIIs only)
- if (m_oki2_banklo != NULL)
+ if (m_oki2_banklo != nullptr)
m_oki2_banklo->set_entry((data >> 6) & 3);
// update the (left) OKI bank (JSA III/IIIs only)
- if (m_oki1_banklo != NULL)
+ if (m_oki1_banklo != nullptr)
m_oki1_banklo->set_entry((m_oki1_banklo->entry() & 1) | ((data >> 3) & 2));
// update the volumes
@@ -568,7 +568,7 @@ void atari_jsa_oki_base_device::device_start()
save_item(NAME(m_overall_volume));
// configure JSA III ADPCM banking
- if (m_oki1_banklo != NULL && m_oki1_bankhi != NULL && m_oki1->region()->bytes() >= 0x80000)
+ if (m_oki1_banklo != nullptr && m_oki1_bankhi != nullptr && m_oki1->region()->bytes() >= 0x80000)
{
m_oki1_banklo->configure_entries(0, 2, m_oki1->region()->base() + 0x00000, 0x00000);
m_oki1_banklo->configure_entries(2, 2, m_oki1->region()->base() + 0x20000, 0x20000);
@@ -576,7 +576,7 @@ void atari_jsa_oki_base_device::device_start()
}
// configure JSA IIIs ADPCM banking
- if (m_oki2_banklo != NULL && m_oki2_bankhi != NULL && m_oki2->region()->bytes() >= 0x80000)
+ if (m_oki2_banklo != nullptr && m_oki2_bankhi != nullptr && m_oki2->region()->bytes() >= 0x80000)
{
m_oki2_banklo->configure_entries(0, 2, m_oki2->region()->base() + 0x00000, 0x00000);
m_oki2_banklo->configure_entries(2, 2, m_oki2->region()->base() + 0x20000, 0x20000);
@@ -608,9 +608,9 @@ void atari_jsa_oki_base_device::device_reset()
void atari_jsa_oki_base_device::update_all_volumes()
{
- if (m_oki1 != NULL)
+ if (m_oki1 != nullptr)
m_oki1->set_output_gain(ALL_OUTPUTS, m_overall_volume * m_oki6295_volume * m_ym2151_ct1);
- if (m_oki2 != NULL)
+ if (m_oki2 != nullptr)
m_oki2->set_output_gain(ALL_OUTPUTS, m_overall_volume * m_oki6295_volume * m_ym2151_ct1);
m_ym2151->set_output_gain(ALL_OUTPUTS, m_overall_volume * m_ym2151_volume);
}
@@ -657,7 +657,7 @@ READ8_MEMBER( atari_jsa_i_device::rdio_r )
UINT8 result = m_jsai->read();
if (!m_test_read_cb())
result ^= 0x80;
- if (m_tms5220 != NULL && m_tms5220->readyq_r() == 0)
+ if (m_tms5220 != nullptr && m_tms5220->readyq_r() == 0)
result |= 0x10;
else
result &= ~0x10;
@@ -691,7 +691,7 @@ WRITE8_MEMBER( atari_jsa_i_device::wrio_w )
coin_counter_w(machine(), 0, (data >> 4) & 1);
// handle TMS5220 I/O
- if (m_tms5220 != NULL)
+ if (m_tms5220 != nullptr)
{
int count = 5 | ((data >> 2) & 2);
m_tms5220->set_frequency(JSA_MASTER_CLOCK*2 / (16 - count));
@@ -733,7 +733,7 @@ WRITE8_MEMBER( atari_jsa_i_device::mix_w )
WRITE8_MEMBER( atari_jsa_i_device::tms5220_voice )
{
- if (m_tms5220 != NULL)
+ if (m_tms5220 != nullptr)
m_tms5220->data_w(space, 0, data);
}
@@ -745,7 +745,7 @@ WRITE8_MEMBER( atari_jsa_i_device::tms5220_voice )
READ8_MEMBER( atari_jsa_i_device::pokey_r )
{
- if (m_pokey != NULL)
+ if (m_pokey != nullptr)
return m_pokey->read(space, offset);
return 0xff;
}
@@ -758,7 +758,7 @@ READ8_MEMBER( atari_jsa_i_device::pokey_r )
WRITE8_MEMBER( atari_jsa_i_device::pokey_w )
{
- if (m_pokey != NULL)
+ if (m_pokey != nullptr)
m_pokey->write(space, offset, data);
}
@@ -823,9 +823,9 @@ void atari_jsa_i_device::device_reset()
void atari_jsa_i_device::update_all_volumes()
{
- if (m_tms5220 != NULL)
+ if (m_tms5220 != nullptr)
m_tms5220->set_output_gain(ALL_OUTPUTS, m_tms5220_volume * m_ym2151_ct1);
- if (m_pokey != NULL)
+ if (m_pokey != nullptr)
m_pokey->set_output_gain(ALL_OUTPUTS, m_pokey_volume * m_ym2151_ct1);
m_ym2151->set_output_gain(ALL_OUTPUTS, m_ym2151_volume);
}
diff --git a/src/mame/audio/beezer.cpp b/src/mame/audio/beezer.cpp
index 2df7d424b5f..f026b480f1b 100644
--- a/src/mame/audio/beezer.cpp
+++ b/src/mame/audio/beezer.cpp
@@ -83,7 +83,7 @@ beezer_sound_device::beezer_sound_device(const machine_config &mconfig, const ch
m_sh6840_latchwriteold(0),
m_sh6840_noiselatch1(0),
m_sh6840_noiselatch3(0),
- m_stream(NULL)/*,
+ m_stream(nullptr)/*,
m_freq_to_step(0)*/
{
memset(m_sh6840_timer, 0, sizeof(m_sh6840_timer));
diff --git a/src/mame/audio/blockade.cpp b/src/mame/audio/blockade.cpp
index 42a820c8f2c..1741dc111a0 100644
--- a/src/mame/audio/blockade.cpp
+++ b/src/mame/audio/blockade.cpp
@@ -61,5 +61,5 @@ const char *const blockade_sample_names[] =
{
"*blockade",
"boom",
- 0
+ nullptr
};
diff --git a/src/mame/audio/bzone.cpp b/src/mame/audio/bzone.cpp
index d0da4c0a682..26bd5321a67 100644
--- a/src/mame/audio/bzone.cpp
+++ b/src/mame/audio/bzone.cpp
@@ -317,7 +317,7 @@ static DISCRETE_SOUND_START(bzone)
BZ_R12, BZ_R13, BZ_R14, BZ_R15, BZ_R32,
BZ_C21,
22, /* B+ of op-amp */
- NULL)
+ nullptr)
/************************************************/
/* Explosion */
@@ -331,7 +331,7 @@ static DISCRETE_SOUND_START(bzone)
BZ_R19, BZ_R18, BZ_R17, BZ_R16, BZ_R33,
BZ_C22,
22, /* B+ of op-amp */
- NULL)
+ nullptr)
/************************************************/
/* Engine */
/************************************************/
diff --git a/src/mame/audio/cage.cpp b/src/mame/audio/cage.cpp
index 7253f46de74..62387ef1e0d 100644
--- a/src/mame/audio/cage.cpp
+++ b/src/mame/audio/cage.cpp
@@ -56,45 +56,45 @@
static const char *const register_names[] =
{
- "TMS32031-DMA global control", NULL, NULL, NULL,
- "TMS32031-DMA source address", NULL, "TMS32031-DMA destination address", NULL,
- "TMS32031-DMA transfer counter", NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
-
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
-
- "TMS32031-Timer 0 global control", NULL, NULL, NULL,
- "TMS32031-Timer 0 counter", NULL, NULL, NULL,
- "TMS32031-Timer 0 period", NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
-
- "TMS32031-Timer 1 global control", NULL, NULL, NULL,
- "TMS32031-Timer 1 counter", NULL, NULL, NULL,
- "TMS32031-Timer 1 period", NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
-
- "TMS32031-Serial port global control", NULL, "TMS32031-Serial port TX control", "TMS32031-Serial port RX control",
- "TMS32031-Serial port timer control", "TMS32031-Serial port timer counter", "TMS32031-Serial port timer period", NULL,
- "TMS32031-Serial port data TX", NULL, NULL, NULL,
- "TMS32031-Serial port data RX", NULL, NULL, NULL,
-
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
-
- NULL, NULL, NULL, NULL,
- "TMS32031-Primary bus control", NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
-
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL
+ "TMS32031-DMA global control", nullptr, nullptr, nullptr,
+ "TMS32031-DMA source address", nullptr, "TMS32031-DMA destination address", nullptr,
+ "TMS32031-DMA transfer counter", nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+
+ "TMS32031-Timer 0 global control", nullptr, nullptr, nullptr,
+ "TMS32031-Timer 0 counter", nullptr, nullptr, nullptr,
+ "TMS32031-Timer 0 period", nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+
+ "TMS32031-Timer 1 global control", nullptr, nullptr, nullptr,
+ "TMS32031-Timer 1 counter", nullptr, nullptr, nullptr,
+ "TMS32031-Timer 1 period", nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+
+ "TMS32031-Serial port global control", nullptr, "TMS32031-Serial port TX control", "TMS32031-Serial port RX control",
+ "TMS32031-Serial port timer control", "TMS32031-Serial port timer counter", "TMS32031-Serial port timer period", nullptr,
+ "TMS32031-Serial port data TX", nullptr, nullptr, nullptr,
+ "TMS32031-Serial port data RX", nullptr, nullptr, nullptr,
+
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+
+ nullptr, nullptr, nullptr, nullptr,
+ "TMS32031-Primary bus control", nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr
};
diff --git a/src/mame/audio/carnival.cpp b/src/mame/audio/carnival.cpp
index 3847299b025..e65c0aa8567 100644
--- a/src/mame/audio/carnival.cpp
+++ b/src/mame/audio/carnival.cpp
@@ -92,7 +92,7 @@ static const char *const carnival_sample_names[] =
"pipehit",
"ranking",
"rifle",
- 0
+ nullptr
};
/* sample IDs - must match sample file name table above */
diff --git a/src/mame/audio/cclimber.cpp b/src/mame/audio/cclimber.cpp
index ce8d11832ea..cce1cc98d36 100644
--- a/src/mame/audio/cclimber.cpp
+++ b/src/mame/audio/cclimber.cpp
@@ -45,7 +45,7 @@ const device_type CCLIMBER_AUDIO = &device_creator<cclimber_audio_device>;
cclimber_audio_device::cclimber_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, CCLIMBER_AUDIO, "Crazy Climber Sound Board", tag, owner, clock, "cclimber_audio", __FILE__),
- m_sample_buf(NULL),
+ m_sample_buf(nullptr),
m_sample_num(0),
m_sample_freq(0),
m_sample_volume(0),
diff --git a/src/mame/audio/channelf.cpp b/src/mame/audio/channelf.cpp
index c9e07cbd43c..2cf03d70aa0 100644
--- a/src/mame/audio/channelf.cpp
+++ b/src/mame/audio/channelf.cpp
@@ -11,7 +11,7 @@ const device_type CHANNELF_SOUND = &device_creator<channelf_sound_device>;
channelf_sound_device::channelf_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, CHANNELF_SOUND, "Channel F Sound", tag, owner, clock, "channelf_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_channel(NULL),
+ m_channel(nullptr),
m_sound_mode(0),
m_incr(0),
m_decay_mult(0),
diff --git a/src/mame/audio/cinemat.cpp b/src/mame/audio/cinemat.cpp
index fa3b269fbac..9f144915f47 100644
--- a/src/mame/audio/cinemat.cpp
+++ b/src/mame/audio/cinemat.cpp
@@ -126,7 +126,7 @@ static const char *const spacewar_sample_names[] =
"pop",
"explode2",
"fire2",
- 0
+ nullptr
};
void cinemat_state::spacewar_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -198,7 +198,7 @@ static const char *const barrier_sample_names[] =
"playrdie",
"playmove",
"enemmove",
- 0
+ nullptr
};
void cinemat_state::barrier_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -244,7 +244,7 @@ static const char *const speedfrk_sample_names[] =
{
"*speedfrk",
"offroad",
- NULL
+ nullptr
};
void cinemat_state::speedfrk_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -302,7 +302,7 @@ static const char *const starhawk_sample_names[] =
"k",
"master",
"kexit",
- NULL
+ nullptr
};
void cinemat_state::starhawk_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -371,7 +371,7 @@ static const char *const sundance_sample_names[] =
"ping1",
"ping2",
"hatch",
- 0
+ nullptr
};
void cinemat_state::sundance_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -434,7 +434,7 @@ static const char *const tailg_sample_names[] =
"shield",
"bounce",
"hypersp",
- NULL
+ nullptr
};
void cinemat_state::tailg_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -515,7 +515,7 @@ static const char *const warrior_sample_names[] =
"killed",
"fall",
"appear",
- NULL
+ nullptr
};
void cinemat_state::warrior_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -579,7 +579,7 @@ static const char *const armora_sample_names[] =
"tankeng",
"beep",
"chopper",
- NULL
+ nullptr
};
void cinemat_state::armora_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -673,7 +673,7 @@ static const char *const ripoff_sample_names[] =
"bg6",
"bg7",
"bg8",
- NULL
+ nullptr
};
void cinemat_state::ripoff_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -753,7 +753,7 @@ static const char *const starcas_sample_names[] =
"lexplode",
"sexplode",
"pfire",
- 0
+ nullptr
};
void cinemat_state::starcas_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -860,7 +860,7 @@ static const char *const solarq_sample_names[] =
"nuke2",
"nuke1",
"music",
- NULL
+ nullptr
};
void cinemat_state::solarq_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -992,7 +992,7 @@ static const char *const boxingb_sample_names[] =
"cannon",
"bounce",
"bell",
- NULL
+ nullptr
};
void cinemat_state::boxingb_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -1116,7 +1116,7 @@ static const char *const wotw_sample_names[] =
"lexplode",
"sexplode",
"pfire",
- 0
+ nullptr
};
void cinemat_state::wotw_sound_w(UINT8 sound_val, UINT8 bits_changed)
@@ -1303,7 +1303,7 @@ ADDRESS_MAP_END
static const z80_daisy_config daisy_chain[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/audio/circus.cpp b/src/mame/audio/circus.cpp
index 0b9eac7a306..c8bc072f69d 100644
--- a/src/mame/audio/circus.cpp
+++ b/src/mame/audio/circus.cpp
@@ -10,14 +10,14 @@ const char *const circus_sample_names[] =
"pop",
"miss",
"bounce",
- 0
+ nullptr
};
const char *const crash_sample_names[] =
{
"*crash",
"crash",
- 0
+ nullptr
};
const char *const ripcord_sample_names[] =
@@ -27,7 +27,7 @@ const char *const ripcord_sample_names[] =
"scream",
"chute",
"whistle",
- 0
+ nullptr
};
const char *const robotbwl_sample_names[] =
@@ -38,7 +38,7 @@ const char *const robotbwl_sample_names[] =
"balldrop",
"demerit",
"reward",
- 0
+ nullptr
};
diff --git a/src/mame/audio/copsnrob.cpp b/src/mame/audio/copsnrob.cpp
index 162e263da91..eaee183f1bc 100644
--- a/src/mame/audio/copsnrob.cpp
+++ b/src/mame/audio/copsnrob.cpp
@@ -628,7 +628,7 @@ DISCRETE_SOUND_START(copsnrob)
************************************************/
DISCRETE_CUSTOM1(COPSNROB_NOISE_1, copsnrob_custom_noise, /* IC J2, pin 10 */
COPSNROB_2V, /* CLK */
- NULL)
+ nullptr)
/* COPSNROB_NOISE_2 derived from sub out of above custom module - IC J2, pin 11 */
/* We use the measured 555 timer frequency (IC M3) for speed */
DISCRETE_COUNTER(NODE_40, /* IC L2 */
@@ -656,12 +656,12 @@ DISCRETE_SOUND_START(copsnrob)
/* We can ignore R47 & R48 */
COPSNROB_ZINGS_INV, /* IC D3, pin 6 */
COPSNROB_R38, COPSNROB_C19,
- NULL)
+ nullptr)
DISCRETE_CUSTOM5(NODE_61, copsnrob_zings_555_astable, /* IC D3, pin 8 & 12 */
NODE_60, /* IC D3, pin 10 */
COPSNROB_R36, COPSNROB_R37,
COPSNROB_C3, COPSNROB_C13,
- NULL)
+ nullptr)
/* FIX - do a better implemetation of IC L4 */
DISCRETE_CRFILTER_VREF(NODE_62, /* IC L4, pin 9 */
NODE_61, /* IN0 */
diff --git a/src/mame/audio/cps3.cpp b/src/mame/audio/cps3.cpp
index 08451c88beb..7038ec5adf8 100644
--- a/src/mame/audio/cps3.cpp
+++ b/src/mame/audio/cps3.cpp
@@ -25,9 +25,9 @@ const device_type CPS3 = &device_creator<cps3_sound_device>;
cps3_sound_device::cps3_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, CPS3, "CPS3 Audio Custom", tag, owner, clock, "cps3_custom", __FILE__),
device_sound_interface(mconfig, *this),
- m_stream(NULL),
+ m_stream(nullptr),
m_key(0),
- m_base(NULL)
+ m_base(nullptr)
{
}
diff --git a/src/mame/audio/dave.cpp b/src/mame/audio/dave.cpp
index 4adae892e16..b3a2fd4b1f0 100644
--- a/src/mame/audio/dave.cpp
+++ b/src/mame/audio/dave.cpp
@@ -178,7 +178,7 @@ const address_space_config *dave_device::memory_space_config(address_spacenum sp
{
case AS_PROGRAM: return &m_program_space_config;
case AS_IO: return &m_io_space_config;
- default: return NULL;
+ default: return nullptr;
}
}
diff --git a/src/mame/audio/dcs.cpp b/src/mame/audio/dcs.cpp
index 3e41f761ade..356314adeee 100644
--- a/src/mame/audio/dcs.cpp
+++ b/src/mame/audio/dcs.cpp
@@ -712,7 +712,7 @@ TIMER_CALLBACK_MEMBER( dcs_audio_device::dcs_reset )
m_internal_timer->reset();
/* start the SPORT0 timer */
- if (m_sport_timer != NULL)
+ if (m_sport_timer != nullptr)
m_sport_timer->adjust(attotime::from_hz(1000), 0, attotime::from_hz(1000));
/* reset the HLE transfer states */
@@ -773,7 +773,7 @@ void dcs_audio_device::dcs_register_state()
save_item(NAME(m_transfer.sum));
save_item(NAME(m_transfer.fifo_entries));
- if (m_sram != NULL)
+ if (m_sram != nullptr)
save_pointer(NAME(m_sram), 0x8000*4 / sizeof(m_sram[0]));
if (m_rev == 2)
@@ -787,23 +787,23 @@ void dcs_audio_device::dcs_register_state()
dcs_audio_device::dcs_audio_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int rev) :
device_t(mconfig, type, name, tag, owner, clock, shortname, source),
- m_cpu(NULL),
- m_program(NULL),
- m_data(NULL),
+ m_cpu(nullptr),
+ m_program(nullptr),
+ m_data(nullptr),
m_rev(rev),
m_polling_offset(0),
m_polling_count(0),
m_channels(0),
m_size(0),
m_incs(0),
- m_reg_timer(NULL),
- m_sport_timer(NULL),
- m_internal_timer(NULL),
+ m_reg_timer(nullptr),
+ m_sport_timer(nullptr),
+ m_internal_timer(nullptr),
m_ireg(0),
m_ireg_base(0),
- m_bootrom(NULL),
+ m_bootrom(nullptr),
m_bootrom_words(0),
- m_sounddata(NULL),
+ m_sounddata(nullptr),
m_sounddata_words(0),
m_sounddata_banks(0),
m_sounddata_bank(0),
@@ -823,13 +823,13 @@ dcs_audio_device::dcs_audio_device(const machine_config &mconfig, device_type ty
m_timer_scale(0),
m_timer_period(0),
m_timers_fired(0),
- m_sram(NULL),
- m_polling_base(NULL),
- m_internal_program_ram(NULL),
- m_external_program_ram(NULL),
+ m_sram(nullptr),
+ m_polling_base(nullptr),
+ m_internal_program_ram(nullptr),
+ m_external_program_ram(nullptr),
m_dram_in_mb(0)
{
- m_dmadac[0] = m_dmadac[1] = m_dmadac[2] = m_dmadac[3] = m_dmadac[4] = m_dmadac[5] = NULL;
+ m_dmadac[0] = m_dmadac[1] = m_dmadac[2] = m_dmadac[3] = m_dmadac[4] = m_dmadac[5] = nullptr;
memset(m_control_regs, 0, sizeof(m_control_regs));
memset(&m_sdrc, 0, sizeof(m_sdrc));
memset(&m_dsio, 0, sizeof(m_dsio));
@@ -838,19 +838,19 @@ dcs_audio_device::dcs_audio_device(const machine_config &mconfig, device_type ty
void dcs_audio_device::device_reset()
{
- dcs_reset(NULL, 0);
+ dcs_reset(nullptr, 0);
}
void dcs_audio_device::device_start()
{
- m_sram = NULL;
+ m_sram = nullptr;
m_internal_program_ram = (UINT32 *)memshare("dcsint")->ptr();
m_external_program_ram = (UINT32 *)memshare("dcsext")->ptr();
/* find the DCS CPU and the sound ROMs */
m_cpu = subdevice<adsp21xx_device>("dcs");
- if (m_cpu != NULL && !m_cpu->started())
+ if (m_cpu != nullptr && !m_cpu->started())
throw device_missing_dependencies();
m_program = &m_cpu->space(AS_PROGRAM);
@@ -883,7 +883,7 @@ void dcs_audio_device::device_start()
/* register for save states */
dcs_register_state();
/* reset the system */
- dcs_reset(NULL, 0);
+ dcs_reset(nullptr, 0);
}
@@ -898,19 +898,19 @@ void dcs2_audio_device::device_start()
m_cpu = subdevice<adsp21xx_device>("dcs2");
m_rev = 2;
soundbank_words = 0x1000;
- if (m_cpu == NULL)
+ if (m_cpu == nullptr)
{
m_cpu = subdevice<adsp21xx_device>("dsio");
m_rev = 3;
soundbank_words = 0x400;
}
- if (m_cpu == NULL)
+ if (m_cpu == nullptr)
{
m_cpu = subdevice<adsp21xx_device>("denver");
m_rev = 4;
soundbank_words = 0x800;
}
- if (m_cpu != NULL && !m_cpu->started())
+ if (m_cpu != nullptr && !m_cpu->started())
throw device_missing_dependencies();
m_program = &m_cpu->space(AS_PROGRAM);
@@ -963,7 +963,7 @@ void dcs2_audio_device::device_start()
dcs_register_state();
/* reset the system */
- dcs_reset(NULL, 0);
+ dcs_reset(nullptr, 0);
}
@@ -1528,7 +1528,7 @@ void dcs_audio_device::data_w(UINT16 data)
return;
/* if we are DCS1, set a timer to latch the data */
- if (m_sport_timer == NULL)
+ if (m_sport_timer == nullptr)
machine().scheduler().synchronize(timer_expired_delegate(FUNC(dcs_audio_device::dcs_delayed_data_w_callback),this), data);
else
dcs_delayed_data_w(data);
@@ -2074,7 +2074,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( dcs_audio_device::transfer_watchdog_callback )
for ( ; transfer.fifo_entries; transfer.fifo_entries--)
preprocess_write(m_fifo_data_r(machine().driver_data()->generic_space(),0, 0xffff));
}
- if (transfer.watchdog != NULL)
+ if (transfer.watchdog != nullptr)
transfer.watchdog->adjust(attotime::from_msec(1), transfer.writes_left);
}
@@ -2352,7 +2352,7 @@ int dcs_audio_device::preprocess_write(UINT16 data)
int result;
/* if we're not DCS2, skip */
- if (m_sport_timer == NULL)
+ if (m_sport_timer == nullptr)
return 0;
/* state 0 - initialization phase */
diff --git a/src/mame/audio/depthch.cpp b/src/mame/audio/depthch.cpp
index 07e55d48e98..cdaae0ad108 100644
--- a/src/mame/audio/depthch.cpp
+++ b/src/mame/audio/depthch.cpp
@@ -26,7 +26,7 @@ static const char *const depthch_sample_names[] =
"shortex",
"spray",
"sonar",
- 0
+ nullptr
};
diff --git a/src/mame/audio/dkong.cpp b/src/mame/audio/dkong.cpp
index 215cfa99f57..305198e255e 100644
--- a/src/mame/audio/dkong.cpp
+++ b/src/mame/audio/dkong.cpp
@@ -388,7 +388,7 @@ static DISCRETE_SOUND_START(dkong2b)
#if DK_USE_CUSTOM
/* custom mixer for 555 CV voltage */
DISCRETE_CUSTOM8(NODE_28, dkong_custom_mixer, DS_SOUND1_INV, NODE_25,
- DK_R32, DK_R50, DK_R51, DK_R49, DK_C24, DK_SUP_V, NULL)
+ DK_R32, DK_R50, DK_R51, DK_R49, DK_C24, DK_SUP_V, nullptr)
#else
DISCRETE_LOGIC_INVERT(DS_SOUND1,DS_SOUND1_INV)
DISCRETE_MULTIPLY(NODE_24,DS_SOUND1,DK_SUP_V)
@@ -420,7 +420,7 @@ static DISCRETE_SOUND_START(dkong2b)
#if DK_USE_CUSTOM
/* custom mixer for 555 CV voltage */
DISCRETE_CUSTOM8(NODE_54, dkong_custom_mixer, DS_SOUND0_INV, NODE_51,
- DK_R36, DK_R45, DK_R46, DK_R44, DK_C29, DK_SUP_V, NULL)
+ DK_R36, DK_R45, DK_R46, DK_R44, DK_C29, DK_SUP_V, nullptr)
#else
DISCRETE_LOGIC_INVERT(DS_SOUND0,DS_SOUND0_INV)
DISCRETE_MULTIPLY(NODE_50,DS_SOUND0,DK_SUP_V)
diff --git a/src/mame/audio/exidy.cpp b/src/mame/audio/exidy.cpp
index 03465e0b263..16de53a8dd3 100644
--- a/src/mame/audio/exidy.cpp
+++ b/src/mame/audio/exidy.cpp
@@ -215,7 +215,7 @@ exidy_sound_device::exidy_sound_device(const machine_config &mconfig, device_typ
: device_t(mconfig, type, name, tag, owner, clock, shortname, source),
device_sound_interface(mconfig, *this),
m_riot_irq_state(0),
- m_stream(NULL),
+ m_stream(nullptr),
m_freq_to_step(0),
m_sh6840_MSB_latch(0),
m_sh6840_LSB_latch(0),
@@ -248,8 +248,8 @@ void exidy_sound_device::device_start()
{
/* indicate no additional hardware */
m_has_sh8253 = FALSE;
- m_tms = NULL;
- m_cvsd = NULL;
+ m_tms = nullptr;
+ m_cvsd = nullptr;
common_sh_start();
}
@@ -413,10 +413,10 @@ void exidy_sound_device::r6532_irq(int state)
WRITE8_MEMBER( exidy_sound_device::r6532_porta_w )
{
- if (m_cvsd != NULL)
+ if (m_cvsd != nullptr)
space.machine().device("cvsdcpu")->execute().set_input_line(INPUT_LINE_RESET, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE);
- if (m_tms != NULL)
+ if (m_tms != nullptr)
{
logerror("(%f)%s:TMS5220 data write = %02X\n", space.machine().time().as_double(), space.machine().describe_context(), m_riot->porta_out_get());
m_tms->data_w(space, 0, data);
@@ -425,7 +425,7 @@ WRITE8_MEMBER( exidy_sound_device::r6532_porta_w )
READ8_MEMBER( exidy_sound_device::r6532_porta_r )
{
- if (m_tms != NULL)
+ if (m_tms != nullptr)
{
logerror("(%f)%s:TMS5220 status read = %02X\n", space.machine().time().as_double(), space.machine().describe_context(), m_tms->status_r(space, 0));
return m_tms->status_r(space, 0);
@@ -436,7 +436,7 @@ READ8_MEMBER( exidy_sound_device::r6532_porta_r )
WRITE8_MEMBER( exidy_sound_device::r6532_portb_w )
{
- if (m_tms != NULL)
+ if (m_tms != nullptr)
{
m_tms->rsq_w(data & 0x01);
m_tms->wsq_w((data >> 1) & 0x01);
@@ -447,7 +447,7 @@ WRITE8_MEMBER( exidy_sound_device::r6532_portb_w )
READ8_MEMBER( exidy_sound_device::r6532_portb_r )
{
UINT8 newdata = m_riot->portb_in_get();
- if (m_tms != NULL)
+ if (m_tms != nullptr)
{
newdata &= ~0x0c;
if (m_tms->readyq_r()) newdata |= 0x04;
@@ -695,7 +695,7 @@ void venture_sound_device::device_start()
m_riot = machine().device<riot6532_device>("riot");
m_has_sh8253 = TRUE;
- m_tms = NULL;
+ m_tms = nullptr;
m_pia0 = machine().device<pia6821_device>("pia0");
m_pia1 = machine().device<pia6821_device>("pia1");
@@ -955,7 +955,7 @@ void victory_sound_device::device_start()
m_riot = machine().device<riot6532_device>("riot");
m_has_sh8253 = TRUE;
- m_tms = NULL;
+ m_tms = nullptr;
m_pia0 = machine().device<pia6821_device>("pia0");
m_pia1 = machine().device<pia6821_device>("pia1");
diff --git a/src/mame/audio/exidy440.cpp b/src/mame/audio/exidy440.cpp
index 33d50f5ede2..8ca9e5972e2 100644
--- a/src/mame/audio/exidy440.cpp
+++ b/src/mame/audio/exidy440.cpp
@@ -53,21 +53,21 @@ exidy440_sound_device::exidy440_sound_device(const machine_config &mconfig, cons
device_sound_interface(mconfig, *this),
m_sound_command(0),
m_sound_command_ack(0),
- m_mixer_buffer_left(NULL),
- m_mixer_buffer_right(NULL),
- m_sound_cache(NULL),
- m_sound_cache_end(NULL),
- m_sound_cache_max(NULL),
+ m_mixer_buffer_left(nullptr),
+ m_mixer_buffer_right(nullptr),
+ m_sound_cache(nullptr),
+ m_sound_cache_end(nullptr),
+ m_sound_cache_max(nullptr),
m_m6844_priority(0x00),
m_m6844_interrupt(0x00),
m_m6844_chain(0x00),
- m_stream(NULL)
+ m_stream(nullptr)
{
m_sound_banks[0] = m_sound_banks[1] = m_sound_banks[2] = m_sound_banks[3] = 0;
for (int i = 0; i < 4; i++)
{
- m_sound_channel[i].base = NULL;
+ m_sound_channel[i].base = nullptr;
m_sound_channel[i].offset = 0;
m_sound_channel[i].remaining = 0;
}
diff --git a/src/mame/audio/gamate.cpp b/src/mame/audio/gamate.cpp
index 19555dd7c44..79913845058 100644
--- a/src/mame/audio/gamate.cpp
+++ b/src/mame/audio/gamate.cpp
@@ -30,7 +30,7 @@ const int EnvelopeVolumes[]={ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
gamate_sound_device::gamate_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, GAMATE_SND, "Gamate Audio Custom", tag, owner, clock, "gamate_sound", __FILE__)
, device_sound_interface(mconfig, *this)
- , m_mixer_channel(NULL)
+ , m_mixer_channel(nullptr)
{}
//-------------------------------------------------
diff --git a/src/mame/audio/geebee.cpp b/src/mame/audio/geebee.cpp
index 8105b65ac41..58103b0b7f2 100644
--- a/src/mame/audio/geebee.cpp
+++ b/src/mame/audio/geebee.cpp
@@ -18,12 +18,12 @@ const device_type GEEBEE = &device_creator<geebee_sound_device>;
geebee_sound_device::geebee_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, GEEBEE, "Gee Bee Audio Custom", tag, owner, clock, "geebee_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_decay(NULL),
- m_channel(NULL),
+ m_decay(nullptr),
+ m_channel(nullptr),
m_sound_latch(0),
m_sound_signal(0),
m_volume(0),
- m_volume_timer(NULL),
+ m_volume_timer(nullptr),
m_noise(0),
m_vcount(0)
{
diff --git a/src/mame/audio/gomoku.cpp b/src/mame/audio/gomoku.cpp
index e4253038649..9362bc25fe1 100644
--- a/src/mame/audio/gomoku.cpp
+++ b/src/mame/audio/gomoku.cpp
@@ -30,15 +30,15 @@ const device_type GOMOKU = &device_creator<gomoku_sound_device>;
gomoku_sound_device::gomoku_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, GOMOKU, "Gomoku Narabe Renju Audio Custom", tag, owner, clock, "gomoku_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_last_channel(NULL),
- m_sound_rom(NULL),
+ m_last_channel(nullptr),
+ m_sound_rom(nullptr),
m_num_voices(0),
m_sound_enable(0),
- m_stream(NULL),
- m_mixer_table(NULL),
- m_mixer_lookup(NULL),
- m_mixer_buffer(NULL),
- m_mixer_buffer_2(NULL)
+ m_stream(nullptr),
+ m_mixer_table(nullptr),
+ m_mixer_lookup(nullptr),
+ m_mixer_buffer(nullptr),
+ m_mixer_buffer_2(nullptr)
{
memset(m_channel_list, 0, sizeof(gomoku_sound_channel)*GOMOKU_MAX_VOICES);
memset(m_soundregs1, 0, sizeof(UINT8)*0x20);
diff --git a/src/mame/audio/gorf.cpp b/src/mame/audio/gorf.cpp
index 0114cb5afb3..fba308b391d 100644
--- a/src/mame/audio/gorf.cpp
+++ b/src/mame/audio/gorf.cpp
@@ -38,7 +38,7 @@ static const char *const PhonemeTable[65] =
"U" ,"Y" ,"T" ,"R" ,"E" ,"W" ,"AE" ,"AE1",
"AW2","UH2","UH1","UH" ,"O2" ,"O1" ,"IU" ,"U1",
"THV","TH" ,"ER" ,"EH" ,"E1" ,"AW" ,"PA1","STOP",
- 0
+ nullptr
};
static const char *const GorfWordTable[] =
@@ -73,7 +73,7 @@ static const char *const GorfWordTable[] =
"UH1TAEEH3K","BAH2I3Y1T","KAH1NKER","DYVAH1U1ER","DUHST","GAE1LUH1KSY","GAH1EH3T",
"PAH1I1R","TRAH2I1Y","SU1PRE1N","AWL","HA2AYL",
"EH1MPAH1I1R",
-0
+nullptr
};
#define num_samples (sizeof(GorfWordTable)/sizeof(char *))
@@ -106,7 +106,7 @@ const char *const gorf_sample_names[] =
"coin", "attack","bite","conquer","devour","dust",
"galaxy","got","power","try","supreme","all",
"hail","emperor",
- 0
+ nullptr
};
diff --git a/src/mame/audio/gottlieb.cpp b/src/mame/audio/gottlieb.cpp
index 4feab28f889..6a5eb46f0e8 100644
--- a/src/mame/audio/gottlieb.cpp
+++ b/src/mame/audio/gottlieb.cpp
@@ -177,7 +177,7 @@ static const char *const reactor_sample_names[] =
"fx_39j", /* "45000" */
"fx_39k", /* "50000" */
"fx_39l", /* "55000" */
- 0 /* end of array */
+ nullptr /* end of array */
};
static const char *const qbert_sample_names[] =
@@ -227,7 +227,7 @@ static const char *const qbert_sample_names[] =
"fx_23", /* O1 with varying voice clock */
"fx_28",
"fx_36",
- 0 /* end of array */
+ nullptr /* end of array */
};
MACHINE_CONFIG_FRAGMENT( reactor_samples )
@@ -429,7 +429,7 @@ WRITE8_MEMBER( gottlieb_sound_r1_device::write )
m_riot->porta_in_set(pa0_5 | (pa7 << 7), 0xbf);
#if USE_FAKE_VOTRAX
- if (pa7 && m_samples != NULL)
+ if (pa7 && m_samples != nullptr)
trigger_sample(pa0_5);
#endif
}
@@ -464,7 +464,7 @@ WRITE8_MEMBER( gottlieb_sound_r1_device::r6532_portb_w )
WRITE8_MEMBER( gottlieb_sound_r1_device::votrax_data_w )
{
- if (m_votrax != NULL)
+ if (m_votrax != nullptr)
{
m_votrax->inflection_w(space, offset, data >> 6);
m_votrax->write(space, offset, ~data & 0x3f);
@@ -486,7 +486,7 @@ WRITE8_MEMBER( gottlieb_sound_r1_device::speech_clock_dac_w )
// prevent negative clock values (and possible crash)
if (data < 0x65) data = 0x65;
- if (m_votrax != NULL)
+ if (m_votrax != nullptr)
{
// nominal clock is 0xa0
if (data != m_last_speech_clock)
@@ -494,7 +494,7 @@ WRITE8_MEMBER( gottlieb_sound_r1_device::speech_clock_dac_w )
osd_printf_debug("clock = %02X\n", data);
// totally random guesswork; would like to get real measurements on a board
- if (m_votrax != NULL)
+ if (m_votrax != nullptr)
m_votrax->set_unscaled_clock(600000 + (data - 0xa0) * 10000);
m_last_speech_clock = data;
}
@@ -672,7 +672,7 @@ gottlieb_sound_r2_device::gottlieb_sound_r2_device(const machine_config &mconfig
m_ay2(*this, "ay2"),
m_sp0250(*this, "spsnd"),
m_cobram3_mod(false),
- m_nmi_timer(NULL),
+ m_nmi_timer(nullptr),
m_nmi_state(0),
m_audiocpu_latch(0),
m_speechcpu_latch(0),
diff --git a/src/mame/audio/gridlee.cpp b/src/mame/audio/gridlee.cpp
index e91a0e38758..b7575c2c34f 100644
--- a/src/mame/audio/gridlee.cpp
+++ b/src/mame/audio/gridlee.cpp
@@ -28,8 +28,8 @@ gridlee_sound_device::gridlee_sound_device(const machine_config &mconfig, const
m_tone_step(0),
m_tone_fraction(0),
m_tone_volume(0),
- m_stream(NULL),
- m_samples(NULL),
+ m_stream(nullptr),
+ m_samples(nullptr),
m_freq_to_step(0.0)
{
memset(m_sound_data, 0, sizeof(UINT8)*24);
diff --git a/src/mame/audio/invinco.cpp b/src/mame/audio/invinco.cpp
index 3181ddf8048..4aaed4c1f89 100644
--- a/src/mame/audio/invinco.cpp
+++ b/src/mame/audio/invinco.cpp
@@ -32,7 +32,7 @@ static const char *const invinco_sample_names[] =
"shiphit",
"move3", /* currently not used */
"move4", /* currently not used */
- 0
+ nullptr
};
diff --git a/src/mame/audio/leland.cpp b/src/mame/audio/leland.cpp
index d860cf43a2a..237f17b7b64 100644
--- a/src/mame/audio/leland.cpp
+++ b/src/mame/audio/leland.cpp
@@ -308,7 +308,7 @@ void leland_80186_sound_device::device_start()
m_ext_start = 0;
m_ext_stop = 0;
m_ext_active = 0;
- m_ext_base = NULL;
+ m_ext_base = nullptr;
m_audiocpu = downcast<i80186_cpu_device *>(machine().device("audiocpu"));
diff --git a/src/mame/audio/m72.cpp b/src/mame/audio/m72.cpp
index 9bf76c979aa..69566d713b8 100644
--- a/src/mame/audio/m72.cpp
+++ b/src/mame/audio/m72.cpp
@@ -53,7 +53,7 @@ m72_audio_device::m72_audio_device(const machine_config &mconfig, const char *ta
device_sound_interface(mconfig, *this),
m_irqvector(0),
m_sample_addr(0),
- m_samples(NULL),
+ m_samples(nullptr),
m_samples_size(0)
{
}
diff --git a/src/mame/audio/mac.cpp b/src/mame/audio/mac.cpp
index 7a0b7a93a62..57ad49aa96f 100644
--- a/src/mame/audio/mac.cpp
+++ b/src/mame/audio/mac.cpp
@@ -36,7 +36,7 @@ mac_sound_device::mac_sound_device(const machine_config &mconfig, const char *ta
: device_t(mconfig, MAC_SOUND, "Mac Audio Custom", tag, owner, clock, "mac_sound", __FILE__),
device_sound_interface(mconfig, *this),
m_sample_enable(0),
- m_mac_snd_buf_ptr(NULL),
+ m_mac_snd_buf_ptr(nullptr),
m_snd_cache_len(0),
m_snd_cache_head(0),
m_snd_cache_tail(0),
diff --git a/src/mame/audio/mario.cpp b/src/mame/audio/mario.cpp
index 3958aa8d743..ba8c797f147 100644
--- a/src/mame/audio/mario.cpp
+++ b/src/mame/audio/mario.cpp
@@ -645,7 +645,7 @@ static void set_ea(address_space &space, int ea)
mario_state *state = space.machine().driver_data<mario_state>();
//printf("ea: %d\n", ea);
//machine.device("audiocpu")->execute().set_input_line(MCS48_INPUT_EA, (ea) ? ASSERT_LINE : CLEAR_LINE);
- if (state->m_eabank != NULL)
+ if (state->m_eabank != nullptr)
state->membank(state->m_eabank)->set_entry(ea);
}
@@ -667,8 +667,8 @@ void mario_state::sound_start()
SND[0x1001] = 0x01;
#endif
- m_eabank = NULL;
- if (audiocpu != NULL && audiocpu->type() != Z80)
+ m_eabank = nullptr;
+ if (audiocpu != nullptr && audiocpu->type() != Z80)
{
m_eabank = "bank1";
audiocpu->memory().space(AS_PROGRAM).install_read_bank(0x000, 0x7ff, "bank1");
diff --git a/src/mame/audio/micro3d.cpp b/src/mame/audio/micro3d.cpp
index b2bd2cb09ec..0a53160f017 100644
--- a/src/mame/audio/micro3d.cpp
+++ b/src/mame/audio/micro3d.cpp
@@ -174,7 +174,7 @@ micro3d_sound_device::micro3d_sound_device(const machine_config &mconfig, const
m_noise_shift(0),
m_noise_value(0),
m_noise_subcount(0),
- m_stream(NULL)
+ m_stream(nullptr)
{
memset(m_dac, 0, sizeof(UINT8)*4);
diff --git a/src/mame/audio/midway.cpp b/src/mame/audio/midway.cpp
index ba7d9008087..4aea1c337ad 100644
--- a/src/mame/audio/midway.cpp
+++ b/src/mame/audio/midway.cpp
@@ -437,7 +437,7 @@ machine_config_constructor midway_ssio_device::device_mconfig_additions() const
ioport_constructor midway_ssio_device::device_input_ports() const
{
- return NULL;
+ return nullptr;
// return INPUT_PORTS_NAME( midway_ssio );
}
diff --git a/src/mame/audio/mw8080bw.cpp b/src/mame/audio/mw8080bw.cpp
index 8cebf140197..f1bcd852e94 100644
--- a/src/mame/audio/mw8080bw.cpp
+++ b/src/mame/audio/mw8080bw.cpp
@@ -139,7 +139,7 @@ static const char *const seawolf_sample_names[] =
"dive",
"sonar",
"minehit",
- 0
+ nullptr
};
MACHINE_CONFIG_FRAGMENT( seawolf_audio )
@@ -192,7 +192,7 @@ static const char *const gunfight_sample_names[] =
"*gunfight",
"gunshot",
"killed",
- 0
+ nullptr
};
@@ -1542,7 +1542,7 @@ static const char *const gmissile_sample_names[] =
"*gmissile",
"1", /* missle */
"2", /* explosion */
- 0
+ nullptr
};
MACHINE_CONFIG_FRAGMENT( gmissile_audio )
@@ -1634,7 +1634,7 @@ static const char *const m4_sample_names[] =
"*m4",
"1", /* missle */
"2", /* explosion */
- 0
+ nullptr
};
@@ -1890,7 +1890,7 @@ static const char *const clowns_sample_names[] =
{
"*clowns",
"miss",
- 0
+ nullptr
};
MACHINE_CONFIG_FRAGMENT( clowns_audio )
@@ -3263,7 +3263,7 @@ static const char *const phantom2_sample_names[] =
"*phantom2",
"1", /* shot */
"2", /* explosion */
- 0
+ nullptr
};
MACHINE_CONFIG_FRAGMENT( phantom2_audio )
@@ -3506,7 +3506,7 @@ static const char *const invaders_sample_names[] =
"7", /* fleet move 4 */
"8", /* UFO/saucer hit */
"9", /* bonus base */
- 0
+ nullptr
};
diff --git a/src/mame/audio/pleiads.cpp b/src/mame/audio/pleiads.cpp
index 19c5d694774..f5c00fc3fdf 100644
--- a/src/mame/audio/pleiads.cpp
+++ b/src/mame/audio/pleiads.cpp
@@ -29,11 +29,11 @@ pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, const
pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
: device_t(mconfig, type, name, tag, owner, clock, shortname, source),
device_sound_interface(mconfig, *this),
- m_channel(NULL),
+ m_channel(nullptr),
m_sound_latch_a(0),
m_sound_latch_b(0),
m_sound_latch_c(0),
- m_poly18(NULL),
+ m_poly18(nullptr),
m_polybit(0),
m_pa5_resistor(0),
m_pc5_resistor(0),
diff --git a/src/mame/audio/polepos.cpp b/src/mame/audio/polepos.cpp
index 29456da2fa3..ac48f57574e 100644
--- a/src/mame/audio/polepos.cpp
+++ b/src/mame/audio/polepos.cpp
@@ -58,7 +58,7 @@ polepos_sound_device::polepos_sound_device(const machine_config &mconfig, const
m_sample_msb(0),
m_sample_lsb(0),
m_sample_enable(0),
- m_stream(NULL)
+ m_stream(nullptr)
{
}
diff --git a/src/mame/audio/pulsar.cpp b/src/mame/audio/pulsar.cpp
index ee5e25260d6..b17a4413feb 100644
--- a/src/mame/audio/pulsar.cpp
+++ b/src/mame/audio/pulsar.cpp
@@ -49,7 +49,7 @@ static const char *const pulsar_sample_names[] =
"birth",
"hbeat",
"movmaze",
- 0
+ nullptr
};
diff --git a/src/mame/audio/redbaron.cpp b/src/mame/audio/redbaron.cpp
index b9ada2027de..ff50862cf7a 100644
--- a/src/mame/audio/redbaron.cpp
+++ b/src/mame/audio/redbaron.cpp
@@ -38,8 +38,8 @@ const device_type REDBARON = &device_creator<redbaron_sound_device>;
redbaron_sound_device::redbaron_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, REDBARON, "Red Baron Audio Custom", tag, owner, clock, "redbaron_custom", __FILE__),
device_sound_interface(mconfig, *this),
- m_vol_lookup(NULL),
- m_channel(NULL),
+ m_vol_lookup(nullptr),
+ m_channel(nullptr),
m_latch(0),
m_poly_counter(0),
m_poly_shift(0),
diff --git a/src/mame/audio/scramble.cpp b/src/mame/audio/scramble.cpp
index b91d363bf2b..bafc07653cb 100644
--- a/src/mame/audio/scramble.cpp
+++ b/src/mame/audio/scramble.cpp
@@ -134,7 +134,7 @@ static void filter_w(device_t *device, int data)
C += 220000; /* 220000pF = 0.220uF */
if (data & 2)
C += 47000; /* 47000pF = 0.047uF */
- if (device != NULL)
+ if (device != nullptr)
dynamic_cast<filter_rc_device*>(device)->filter_rc_set_RC(FLT_RC_LOWPASS, 1000, 5100, 0, CAP_P(C));
}
diff --git a/src/mame/audio/segag80r.cpp b/src/mame/audio/segag80r.cpp
index 2836ed897f5..60cdcc7a93a 100644
--- a/src/mame/audio/segag80r.cpp
+++ b/src/mame/audio/segag80r.cpp
@@ -33,8 +33,8 @@ const device_type SEGA005 = &device_creator<sega005_sound_device>;
sega005_sound_device::sega005_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SEGA005, "Sega 005 Audio Custom", tag, owner, clock, "sega005_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_sega005_sound_timer(NULL),
- m_sega005_stream(NULL)
+ m_sega005_sound_timer(nullptr),
+ m_sega005_stream(nullptr)
{
}
@@ -235,7 +235,7 @@ static const char *const astrob_sample_names[] =
"pexplode", /* 13 */
"deedle", /* 14 */
"sonar", /* 15 */
- 0
+ nullptr
};
@@ -422,7 +422,7 @@ static const char *const sega005_sample_names[] =
"missile", /* 4 */
"helicopt", /* 5 */
"whistle", /* 6 */
- 0
+ nullptr
};
@@ -584,7 +584,7 @@ static const char *const spaceod_sample_names[] =
"accel", /* 8 */
"damaged", /* 9 */
"erocket", /* 10 */
- 0
+ nullptr
};
@@ -676,7 +676,7 @@ static const char *const monsterb_sample_names[] =
"*monsterb",
"zap",
"jumpdown",
- 0
+ nullptr
};
diff --git a/src/mame/audio/segasnd.cpp b/src/mame/audio/segasnd.cpp
index 97fdf3a1f41..72d58d8fa51 100644
--- a/src/mame/audio/segasnd.cpp
+++ b/src/mame/audio/segasnd.cpp
@@ -73,7 +73,7 @@ speech_sound_device::speech_sound_device(const machine_config &mconfig, const ch
m_latch(0),
m_t0(0),
m_p2(0),
- m_speech(NULL)
+ m_speech(nullptr)
{
}
@@ -243,7 +243,7 @@ usb_sound_device::usb_sound_device(const machine_config &mconfig, device_type ty
: device_t(mconfig, type, name, tag, owner, clock, shortname, source),
device_sound_interface(mconfig, *this),
m_ourcpu(*this, "ourcpu"),
- m_stream(NULL),
+ m_stream(nullptr),
m_in_latch(0),
m_out_latch(0),
m_last_p2_value(0),
@@ -278,7 +278,7 @@ void usb_sound_device::device_start()
/* find the CPU we are associated with */
m_maincpu = machine().device("maincpu");
- assert(m_maincpu != NULL);
+ assert(m_maincpu != nullptr);
/* create a sound stream */
m_stream = machine().sound().stream_alloc(*this, 0, 1, SAMPLE_RATE);
diff --git a/src/mame/audio/seibu.cpp b/src/mame/audio/seibu.cpp
index 0d23c437afa..b78e142a99a 100644
--- a/src/mame/audio/seibu.cpp
+++ b/src/mame/audio/seibu.cpp
@@ -84,7 +84,7 @@ seibu_sound_device::seibu_sound_device(const machine_config &mconfig, const char
m_rst18_irq(0xff)
{
m_encryption_mode = 0;
- m_decrypted_opcodes = NULL;
+ m_decrypted_opcodes = nullptr;
}
void seibu_sound_device::set_encryption(int mode)
@@ -234,7 +234,7 @@ void seibu_sound_device::update_irq_lines(int param)
break;
}
- if (m_sound_cpu != NULL)
+ if (m_sound_cpu != nullptr)
{
if ((m_rst10_irq & m_rst18_irq) == 0xff) /* no IRQs pending */
m_sound_cpu->execute().set_input_line(0, CLEAR_LINE);
@@ -509,13 +509,13 @@ const device_type SEIBU_ADPCM = &device_creator<seibu_adpcm_device>;
seibu_adpcm_device::seibu_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SEIBU_ADPCM, "Seibu ADPCM (MSM5205)", tag, owner, clock, "seibu_adpcm", __FILE__),
device_sound_interface(mconfig, *this),
- m_stream(NULL),
+ m_stream(nullptr),
m_current(0),
m_end(0),
m_nibble(0),
m_playing(0),
- m_rom_tag(NULL),
- m_base(NULL)
+ m_rom_tag(nullptr),
+ m_base(nullptr)
{
}
diff --git a/src/mame/audio/senjyo.cpp b/src/mame/audio/senjyo.cpp
index a8f92fedbe5..1b0c938a295 100644
--- a/src/mame/audio/senjyo.cpp
+++ b/src/mame/audio/senjyo.cpp
@@ -8,7 +8,7 @@ const z80_daisy_config senjyo_daisy_chain[] =
{
{ "z80ctc" },
{ "z80pio" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/audio/skyraid.cpp b/src/mame/audio/skyraid.cpp
index 1d872d8d1e5..b86e9bc64be 100644
--- a/src/mame/audio/skyraid.cpp
+++ b/src/mame/audio/skyraid.cpp
@@ -248,7 +248,7 @@ DISCRETE_SOUND_START( skyraid )
/************************************************
* Missle sound
************************************************/
- DISCRETE_CUSTOM5(NODE_40, skyraid_missle_custom_charge, SKYRAID_MISSILE_EN, SKYRAID_R12, SKYRAID_R14, SKYRAID_R13, SKYRAID_C44, NULL)
+ DISCRETE_CUSTOM5(NODE_40, skyraid_missle_custom_charge, SKYRAID_MISSILE_EN, SKYRAID_R12, SKYRAID_R14, SKYRAID_R13, SKYRAID_C44, nullptr)
DISCRETE_566(NODE_41, /* IC K6, pin 3 */
NODE_40, /* VMOD */
SKYRAID_R16, SKYRAID_C45,
diff --git a/src/mame/audio/snes_snd.cpp b/src/mame/audio/snes_snd.cpp
index 02a73c798e7..c37020bc504 100644
--- a/src/mame/audio/snes_snd.cpp
+++ b/src/mame/audio/snes_snd.cpp
@@ -703,7 +703,7 @@ void snes_sound_device::dsp_update( short *sound_ptr )
}
#endif /* !defined( NO_ECHO ) */
- if (sound_ptr != NULL)
+ if (sound_ptr != nullptr)
{
if (m_dsp_regs[0x6c] & 0x40)
{
diff --git a/src/mame/audio/snk6502.cpp b/src/mame/audio/snk6502.cpp
index 1f2afed4216..61a5bc8e959 100644
--- a/src/mame/audio/snk6502.cpp
+++ b/src/mame/audio/snk6502.cpp
@@ -39,7 +39,7 @@ const char *const sasuke_sample_names[] =
"shot",
"boss_attack",
- 0
+ nullptr
};
const char *const vanguard_sample_names[] =
@@ -68,7 +68,7 @@ const char *const vanguard_sample_names[] =
"vg_voi-e",
"vg_voi-f",
- 0
+ nullptr
};
@@ -90,7 +90,7 @@ const char *const fantasy_sample_names[] =
"ft_voi-a",
"ft_voi-b",
- 0
+ nullptr
};
@@ -136,9 +136,9 @@ snk6502_sound_device::snk6502_sound_device(const machine_config &mconfig, const
//m_tone_channels[CHANNELS],
m_tone_clock_expire(0),
m_tone_clock(0),
- m_tone_stream(NULL),
+ m_tone_stream(nullptr),
m_samples(*this, ":samples"),
- m_ROM(NULL),
+ m_ROM(nullptr),
m_Sound0StopOnRollover(0),
m_LastPort1(0),
m_hd38880_cmd(0),
diff --git a/src/mame/audio/spacefb.cpp b/src/mame/audio/spacefb.cpp
index 16df34c04bf..9e846d04904 100644
--- a/src/mame/audio/spacefb.cpp
+++ b/src/mame/audio/spacefb.cpp
@@ -70,7 +70,7 @@ static const char *const spacefb_sample_names[] =
"shipfire",
"explode1",
"explode2",
- 0
+ nullptr
};
diff --git a/src/mame/audio/specimx_snd.cpp b/src/mame/audio/specimx_snd.cpp
index 2b56c6b25f8..ec64bc096cc 100644
--- a/src/mame/audio/specimx_snd.cpp
+++ b/src/mame/audio/specimx_snd.cpp
@@ -27,7 +27,7 @@ const device_type SPECIMX_SND = &device_creator<specimx_sound_device>;
specimx_sound_device::specimx_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SPECIMX_SND, "Specialist MX Audio Custom", tag, owner, clock, "specimx_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_mixer_channel(NULL)
+ m_mixer_channel(nullptr)
{
memset(m_specimx_input, 0, sizeof(int)*3);
}
diff --git a/src/mame/audio/svis_snd.cpp b/src/mame/audio/svis_snd.cpp
index 86408d26820..cc2bec2b821 100644
--- a/src/mame/audio/svis_snd.cpp
+++ b/src/mame/audio/svis_snd.cpp
@@ -25,7 +25,7 @@ const device_type SVISION_SND = &device_creator<svision_sound_device>;
svision_sound_device::svision_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SVISION_SND, "Super Vision Audio Custom", tag, owner, clock, "svision_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_mixer_channel(NULL)
+ m_mixer_channel(nullptr)
{
}
diff --git a/src/mame/audio/t5182.cpp b/src/mame/audio/t5182.cpp
index e5c84cc6c68..a40349de0d0 100644
--- a/src/mame/audio/t5182.cpp
+++ b/src/mame/audio/t5182.cpp
@@ -212,7 +212,7 @@ TIMER_CALLBACK_MEMBER( t5182_device::setirq_callback )
break;
}
- if (m_ourcpu == NULL)
+ if (m_ourcpu == nullptr)
return;
if (m_irqstate == 0) /* no IRQs pending */
diff --git a/src/mame/audio/targ.cpp b/src/mame/audio/targ.cpp
index 52aec287409..440678e1113 100644
--- a/src/mame/audio/targ.cpp
+++ b/src/mame/audio/targ.cpp
@@ -131,7 +131,7 @@ static const char *const sample_names[] =
"sexpl",
"spslow",
"spfast",
- 0
+ nullptr
};
diff --git a/src/mame/audio/tiamc1.cpp b/src/mame/audio/tiamc1.cpp
index 6c7f2555623..9c896429fcd 100644
--- a/src/mame/audio/tiamc1.cpp
+++ b/src/mame/audio/tiamc1.cpp
@@ -60,7 +60,7 @@ const device_type TIAMC1 = &device_creator<tiamc1_sound_device>;
tiamc1_sound_device::tiamc1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TIAMC1, "TIA-MC1 Audio Custom", tag, owner, clock, "tiamc1_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_channel(NULL),
+ m_channel(nullptr),
m_timer1_divider(0)
{
}
diff --git a/src/mame/audio/trackfld.cpp b/src/mame/audio/trackfld.cpp
index b73a5d708fe..6f78f861712 100644
--- a/src/mame/audio/trackfld.cpp
+++ b/src/mame/audio/trackfld.cpp
@@ -101,7 +101,7 @@ READ8_MEMBER( trackfld_audio_device::hyperspt_sh_timer_r )
{
UINT32 clock = m_audiocpu->total_cycles() / TIMER_RATE;
- if (m_vlm != NULL)
+ if (m_vlm != nullptr)
return (clock & 0x3) | (m_vlm->bsy() ? 0x04 : 0);
else
return (clock & 0x3);
diff --git a/src/mame/audio/triplhnt.cpp b/src/mame/audio/triplhnt.cpp
index defe51527d2..f7dd84cf5e8 100644
--- a/src/mame/audio/triplhnt.cpp
+++ b/src/mame/audio/triplhnt.cpp
@@ -15,7 +15,7 @@ const char *const triplhnt_sample_names[] =
"*triplhnt",
"bear_rac",
"witch",
- 0
+ nullptr
};
/************************************************************************/
diff --git a/src/mame/audio/turbo.cpp b/src/mame/audio/turbo.cpp
index 4b5fa108ce0..cb24f3234a9 100644
--- a/src/mame/audio/turbo.cpp
+++ b/src/mame/audio/turbo.cpp
@@ -178,7 +178,7 @@ static const char *const turbo_sample_names[] =
"skidding", /* 6: Spin */
"idle", /* 7: Idle */
"ambulanc", /* 8: Ambulance */
- 0
+ nullptr
};
@@ -425,7 +425,7 @@ static const char *const subroc3d_sample_names[] =
"09", /* 8: prolog sound */
"11", /* 9: alarm 0 */
"12", /* 10: alarm 1 */
- 0
+ nullptr
};
MACHINE_CONFIG_FRAGMENT( subroc3d_samples )
@@ -569,7 +569,7 @@ static const char *const buckrog_sample_names[]=
"shipsnd1", /* 8 */
"shipsnd2", /* 9 */
"shipsnd3", /* 10 */
- 0
+ nullptr
};
diff --git a/src/mame/audio/turrett.cpp b/src/mame/audio/turrett.cpp
index 6a2fc150c7b..69c8b784c3f 100644
--- a/src/mame/audio/turrett.cpp
+++ b/src/mame/audio/turrett.cpp
@@ -19,7 +19,7 @@ turrett_device::turrett_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, TURRETT, "Turret Tower Sound", tag, owner, clock, "ttsnd", __FILE__),
device_sound_interface(mconfig, *this),
device_memory_interface(mconfig, *this),
- m_space_config("ttsound", ENDIANNESS_LITTLE, 16, 28, 0, NULL)
+ m_space_config("ttsound", ENDIANNESS_LITTLE, 16, 28, 0, nullptr)
{
}
@@ -30,7 +30,7 @@ turrett_device::turrett_device(const machine_config &mconfig, const char *tag, d
const address_space_config *turrett_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == 0) ? &m_space_config : NULL;
+ return (spacenum == 0) ? &m_space_config : nullptr;
}
diff --git a/src/mame/audio/tx1.cpp b/src/mame/audio/tx1.cpp
index 7891d97e29b..4628f529a59 100644
--- a/src/mame/audio/tx1.cpp
+++ b/src/mame/audio/tx1.cpp
@@ -62,7 +62,7 @@ tx1_sound_device::tx1_sound_device(const machine_config &mconfig, const char *ta
tx1_sound_device::tx1_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
: device_t(mconfig, type, name, tag, owner, clock, shortname, source),
device_sound_interface(mconfig, *this),
- m_stream(NULL),
+ m_stream(nullptr),
m_freq_to_step(0),
m_step0(0),
m_step1(0),
@@ -377,8 +377,8 @@ void buggyboy_sound_device::device_start()
compute_resistor_weights(0, 16384, -1.0,
4, &resistors[0], aweights, 0, 0,
- 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0 );
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0 );
for (i = 0; i < 16; i++)
m_eng_voltages[i] = combine_4_weights(aweights, BIT(tmp[i], 0), BIT(tmp[i], 1), BIT(tmp[i], 2), BIT(tmp[i], 3));
diff --git a/src/mame/audio/vboy.cpp b/src/mame/audio/vboy.cpp
index b808ee8a333..eb9947e9806 100644
--- a/src/mame/audio/vboy.cpp
+++ b/src/mame/audio/vboy.cpp
@@ -224,7 +224,7 @@ void vboysnd_device::device_start()
memset(m_aram, 0, 0x600);
- m_timer = timer_alloc(0, NULL);
+ m_timer = timer_alloc(0, nullptr);
m_timer->adjust(attotime::zero, 0, attotime::from_hz(AUDIO_FREQ/4));
}
diff --git a/src/mame/audio/vc4000snd.cpp b/src/mame/audio/vc4000snd.cpp
index 00b33d308ae..72a8e46b349 100644
--- a/src/mame/audio/vc4000snd.cpp
+++ b/src/mame/audio/vc4000snd.cpp
@@ -15,7 +15,7 @@ const device_type VC4000_SND = &device_creator<vc4000_sound_device>;
vc4000_sound_device::vc4000_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VC4000_SND, "Intertion Electronic VC 4000 Audio Custom", tag, owner, clock, "vc4000_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_channel(NULL),
+ m_channel(nullptr),
m_size(0),
m_pos(0),
m_level(0)
diff --git a/src/mame/audio/vicdual.cpp b/src/mame/audio/vicdual.cpp
index 8576db9bf66..a1219121101 100644
--- a/src/mame/audio/vicdual.cpp
+++ b/src/mame/audio/vicdual.cpp
@@ -107,7 +107,7 @@ static const char *const frogs_sample_names[] =
"hop",
"splash",
"zip",
- 0
+ nullptr
};
@@ -454,7 +454,7 @@ MACHINE_CONFIG_END
WRITE8_MEMBER( vicdual_state::headon_audio_w )
{
- if (m_discrete == NULL)
+ if (m_discrete == nullptr)
return;
m_discrete->write(space, HEADON_HISPEED_PC_EN, data & 0x01);
m_discrete->write(space, HEADON_SCREECH1_EN, data & 0x02);
@@ -468,7 +468,7 @@ WRITE8_MEMBER( vicdual_state::headon_audio_w )
WRITE8_MEMBER( vicdual_state::invho2_audio_w )
{
- if (m_discrete == NULL)
+ if (m_discrete == nullptr)
return;
m_discrete->write(space, HEADON_HISPEED_PC_EN, data & 0x10);
m_discrete->write(space, HEADON_SCREECH1_EN, data & 0x08);
diff --git a/src/mame/audio/warpwarp.cpp b/src/mame/audio/warpwarp.cpp
index 1c3f42f9de4..728ac384e33 100644
--- a/src/mame/audio/warpwarp.cpp
+++ b/src/mame/audio/warpwarp.cpp
@@ -21,17 +21,17 @@ const device_type WARPWARP = &device_creator<warpwarp_sound_device>;
warpwarp_sound_device::warpwarp_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, WARPWARP, "Warp Warp Audio Custom", tag, owner, clock, "warpwarp_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_decay(NULL),
- m_channel(NULL),
+ m_decay(nullptr),
+ m_channel(nullptr),
m_sound_latch(0),
m_music1_latch(0),
m_music2_latch(0),
m_sound_signal(0),
m_sound_volume(0),
- m_sound_volume_timer(NULL),
+ m_sound_volume_timer(nullptr),
m_music_signal(0),
m_music_volume(0),
- m_music_volume_timer(NULL),
+ m_music_volume_timer(nullptr),
m_noise(0),
m_vcarry(0),
m_vcount(0),
diff --git a/src/mame/audio/wiping.cpp b/src/mame/audio/wiping.cpp
index 0eb743b1653..9fb41a4ce0c 100644
--- a/src/mame/audio/wiping.cpp
+++ b/src/mame/audio/wiping.cpp
@@ -19,16 +19,16 @@ const device_type WIPING = &device_creator<wiping_sound_device>;
wiping_sound_device::wiping_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, WIPING, "Wiping Audio Custom", tag, owner, clock, "wiping_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_last_channel(NULL),
- m_sound_prom(NULL),
- m_sound_rom(NULL),
+ m_last_channel(nullptr),
+ m_sound_prom(nullptr),
+ m_sound_rom(nullptr),
m_num_voices(0),
m_sound_enable(0),
- m_stream(NULL),
- m_mixer_table(NULL),
- m_mixer_lookup(NULL),
- m_mixer_buffer(NULL),
- m_mixer_buffer_2(NULL)
+ m_stream(nullptr),
+ m_mixer_table(nullptr),
+ m_mixer_lookup(nullptr),
+ m_mixer_buffer(nullptr),
+ m_mixer_buffer_2(nullptr)
{
memset(m_channel_list, 0, sizeof(wp_sound_channel)*MAX_VOICES);
memset(m_soundregs, 0, sizeof(UINT8)*0x4000);
diff --git a/src/mame/audio/wow.cpp b/src/mame/audio/wow.cpp
index e6a1b8888bd..7ff86ef10a1 100644
--- a/src/mame/audio/wow.cpp
+++ b/src/mame/audio/wow.cpp
@@ -39,7 +39,7 @@ static const char *const PhonemeTable[65] =
"U" ,"Y" ,"T" ,"R" ,"E" ,"W" ,"AE" ,"AE1",
"AW2","UH2","UH1","UH" ,"O2" ,"O1" ,"IU" ,"U1",
"THV","TH" ,"ER" ,"EH" ,"E1" ,"AW" ,"PA1","STOP",
- 0
+ nullptr
};
/* Missing samples : ready, from, one, bite, youl, explode, if, myself, back,
@@ -69,7 +69,7 @@ static const char *const wowWordTable[] =
"WOO1R", "WORYER", "watch.wav", "WE1Y", "WEHLKUHM",
"WERR", "WAH1EH3I3L", "WIL", "WITH", "WIZERD", "wont.wav",
"WO1O2R", "WO1ERLD", "WORLINGS", "WORLUHK",
-"YI3U", "Y1IUU", "YIUUI", "Y1IUU1U1", "YI3U1", "Y1IUUL", "YIUU1L", "Y1IUUD", "YO2O2R",0
+"YI3U", "Y1IUU", "YIUUI", "Y1IUU1U1", "YI3U1", "Y1IUUL", "YIUU1L", "Y1IUUD", "YO2O2R",nullptr
};
#define num_samples (sizeof(wowWordTable)/sizeof(char *))
@@ -97,7 +97,7 @@ const char *const wow_sample_names[] =
"war", "warrior", "watch", "we", "welcome",
"were", "while", "will", "with", "wizard", "wont",
"wor", "world", "worlings", "worlock",
- "you", "you", "you", "you", "you", "youl", "youl", "youd", "your",0
+ "you", "you", "you", "you", "you", "youl", "youl", "youd", "your",nullptr
};
diff --git a/src/mame/audio/wswan_snd.cpp b/src/mame/audio/wswan_snd.cpp
index 77a21d7cb3b..42918fb191b 100644
--- a/src/mame/audio/wswan_snd.cpp
+++ b/src/mame/audio/wswan_snd.cpp
@@ -31,7 +31,7 @@ const device_type WSWAN_SND = &device_creator<wswan_sound_device>;
wswan_sound_device::wswan_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, WSWAN_SND, "WonderSwan Audio Custom", tag, owner, clock, "wswan_sound", __FILE__),
device_sound_interface(mconfig, *this),
- m_channel(NULL),
+ m_channel(nullptr),
m_sweep_step(0),
m_sweep_time(0),
m_sweep_count(0),
diff --git a/src/mame/audio/zaxxon.cpp b/src/mame/audio/zaxxon.cpp
index 1e3205bf138..720c510b50d 100644
--- a/src/mame/audio/zaxxon.cpp
+++ b/src/mame/audio/zaxxon.cpp
@@ -88,7 +88,7 @@ static const char *const zaxxon_sample_names[] =
"20", /* 9 - Alarm 3 (low fuel) */
"05", /* 10 - initial background noise */
"04", /* 11 - looped asteroid noise */
- 0
+ nullptr
};
@@ -188,7 +188,7 @@ static const char *const congo_sample_names[] =
"congal", /* 2 */
"congah", /* 3 */
"rim", /* 4 */
- 0
+ nullptr
};
diff --git a/src/mame/drivers/2mindril.cpp b/src/mame/drivers/2mindril.cpp
index 758fb4518ce..24492ebd5f3 100644
--- a/src/mame/drivers/2mindril.cpp
+++ b/src/mame/drivers/2mindril.cpp
@@ -403,10 +403,10 @@ static const gfx_layout tile_layout =
};
static GFXDECODE_START( 2mindril )
- GFXDECODE_ENTRY( NULL, 0x000000, charlayout, 0x0000, 0x0400>>4 ) /* Dynamically modified */
+ GFXDECODE_ENTRY( nullptr, 0x000000, charlayout, 0x0000, 0x0400>>4 ) /* Dynamically modified */
GFXDECODE_ENTRY( "gfx2", 0x000000, tile_layout, 0x0000, 0x2000>>4 ) /* Tiles area */
GFXDECODE_ENTRY( "gfx1", 0x000000, spriteram_layout, 0x1000, 0x1000>>4 ) /* Sprites area */
- GFXDECODE_ENTRY( NULL, 0x000000, pivotlayout, 0x0000, 0x400>>4 ) /* Dynamically modified */
+ GFXDECODE_ENTRY( nullptr, 0x000000, pivotlayout, 0x0000, 0x400>>4 ) /* Dynamically modified */
GFXDECODE_END
diff --git a/src/mame/drivers/4enlinea.cpp b/src/mame/drivers/4enlinea.cpp
index 338d8e37c01..181562bea3b 100644
--- a/src/mame/drivers/4enlinea.cpp
+++ b/src/mame/drivers/4enlinea.cpp
@@ -254,7 +254,7 @@ public:
const rom_entry *isa8_cga_4enlinea_device::device_rom_region() const
{
- return NULL;
+ return nullptr;
}
const device_type ISA8_CGA_4ENLINEA = &device_creator<isa8_cga_4enlinea_device>;
@@ -290,7 +290,7 @@ WRITE8_MEMBER( isa8_cga_4enlinea_device::_4enlinea_mode_control_w )
void isa8_cga_4enlinea_device::device_start()
{
- if (m_palette != NULL && !m_palette->started())
+ if (m_palette != nullptr && !m_palette->started())
throw device_missing_dependencies();
set_isa_device();
diff --git a/src/mame/drivers/5clown.cpp b/src/mame/drivers/5clown.cpp
index 5d301b6aa7f..07745268a40 100644
--- a/src/mame/drivers/5clown.cpp
+++ b/src/mame/drivers/5clown.cpp
@@ -583,7 +583,7 @@ PALETTE_INIT_MEMBER(_5clown_state, _5clown)
/* 0000KBGR */
- if (color_prom == 0) return;
+ if (color_prom == nullptr) return;
for (i = 0;i < m_palette->entries();i++)
{
@@ -1085,7 +1085,7 @@ ROM_START( 5clown )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the remaining bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the remaining bitplanes */
ROM_COPY( "gfxbanks", 0x7000, 0x2000, 0x1000 )
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -1117,7 +1117,7 @@ ROM_START( 5clowna )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the remaining bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the remaining bitplanes */
ROM_COPY( "gfxbanks", 0x7000, 0x2000, 0x1000 )
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -1148,7 +1148,7 @@ ROM_START( 5clownsp )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the remaining bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the remaining bitplanes */
ROM_COPY( "gfxbanks", 0x7000, 0x2000, 0x1000 )
ROM_REGION( 0x3000, "gfx2", 0 )
diff --git a/src/mame/drivers/a2600.cpp b/src/mame/drivers/a2600.cpp
index 4e001da3f26..6c61d71b60f 100644
--- a/src/mame/drivers/a2600.cpp
+++ b/src/mame/drivers/a2600.cpp
@@ -563,7 +563,7 @@ static SLOT_INTERFACE_START(a2600_cart)
SLOT_INTERFACE_END
static MACHINE_CONFIG_FRAGMENT(a2600_cartslot)
- MCFG_VCS_CARTRIDGE_ADD("cartslot", a2600_cart, NULL)
+ MCFG_VCS_CARTRIDGE_ADD("cartslot", a2600_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","a2600")
@@ -612,7 +612,7 @@ static MACHINE_CONFIG_START( a2600, a2600_state )
#endif
MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, "joy")
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, NULL)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, nullptr)
MCFG_FRAGMENT_ADD(a2600_cartslot)
MCFG_SOFTWARE_LIST_FILTER("cart_list", "NTSC")
@@ -662,7 +662,7 @@ static MACHINE_CONFIG_START( a2600p, a2600_state )
#endif
MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, "joy")
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, NULL)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, nullptr)
MCFG_FRAGMENT_ADD(a2600_cartslot)
MCFG_SOFTWARE_LIST_FILTER("cart_list", "PAL")
diff --git a/src/mame/drivers/a5105.cpp b/src/mame/drivers/a5105.cpp
index 03be992da60..f7f55880dea 100644
--- a/src/mame/drivers/a5105.cpp
+++ b/src/mame/drivers/a5105.cpp
@@ -550,7 +550,7 @@ static const z80_daisy_config a5105_daisy_chain[] =
{
{ "z80ctc" },
{ "z80pio" },
- { NULL }
+ { nullptr }
};
static MACHINE_CONFIG_START( a5105, a5105_state )
diff --git a/src/mame/drivers/a7800.cpp b/src/mame/drivers/a7800.cpp
index 350a69550f2..cfe3411b9d4 100644
--- a/src/mame/drivers/a7800.cpp
+++ b/src/mame/drivers/a7800.cpp
@@ -1381,7 +1381,7 @@ static MACHINE_CONFIG_START( a7800_ntsc, a7800_state )
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_A78_CARTRIDGE_ADD("cartslot", a7800_cart, NULL)
+ MCFG_A78_CARTRIDGE_ADD("cartslot", a7800_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","a7800")
diff --git a/src/mame/drivers/abc1600.cpp b/src/mame/drivers/abc1600.cpp
index 8f8f20f4060..f1c95f0b1fc 100644
--- a/src/mame/drivers/abc1600.cpp
+++ b/src/mame/drivers/abc1600.cpp
@@ -350,7 +350,7 @@ WRITE8_MEMBER( abc1600_state::fw0_w )
if (LOG) logerror("FW0 %02x\n", data);
// drive select
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (BIT(data, 0)) floppy = m_floppy0->get_device();
if (BIT(data, 1)) floppy = m_floppy1->get_device();
@@ -899,13 +899,13 @@ static MACHINE_CONFIG_START( abc1600, abc1600_state )
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pb7_w))
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(abc1600_state, fdc_drq_w))
- MCFG_FLOPPY_DRIVE_ADD(SAB1797_02P_TAG":0", abc1600_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(SAB1797_02P_TAG":1", abc1600_floppies, NULL, floppy_image_device::default_floppy_formats)
+ 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, NULL)
+ MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, nullptr)
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z8470AB1_TAG, z80dart_device, rxa_w))
MCFG_ABC_KEYBOARD_PORT_ADD(ABC_KEYBOARD_PORT_TAG, "abc99")
@@ -913,16 +913,16 @@ static MACHINE_CONFIG_START( abc1600, abc1600_state )
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_ABCBUS_SLOT_ADD("bus0i", abc1600bus_cards, NULL)
+ MCFG_ABCBUS_SLOT_ADD("bus0i", abc1600bus_cards, nullptr)
MCFG_ABCBUS_SLOT_IRQ_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pa7_w))
- MCFG_ABCBUS_SLOT_ADD("bus0x", abc1600bus_cards, NULL)
+ 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_ADD("bus1", abc1600bus_cards, NULL)
+ MCFG_ABCBUS_SLOT_ADD("bus1", abc1600bus_cards, nullptr)
MCFG_ABCBUS_SLOT_IRQ_CALLBACK(DEVWRITELINE(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))
diff --git a/src/mame/drivers/abc80.cpp b/src/mame/drivers/abc80.cpp
index ce911133067..35a0bc0d9ca 100644
--- a/src/mame/drivers/abc80.cpp
+++ b/src/mame/drivers/abc80.cpp
@@ -366,7 +366,7 @@ WRITE8_MEMBER( abc80_state::pio_pb_w )
static const z80_daisy_config abc80_daisy_chain[] =
{
{ Z80PIO_TAG },
- { NULL }
+ { nullptr }
};
@@ -562,7 +562,7 @@ static MACHINE_CONFIG_START( abc80, abc80_state )
MCFG_ABCBUS_SLOT_ADD(ABCBUS_TAG, abc80_cards, "abcexp")
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0)
MCFG_GENERIC_KEYBOARD_CB(WRITE8(abc80_state, kbd_w))
diff --git a/src/mame/drivers/abc80x.cpp b/src/mame/drivers/abc80x.cpp
index 99bd292c536..eb171c990fd 100644
--- a/src/mame/drivers/abc80x.cpp
+++ b/src/mame/drivers/abc80x.cpp
@@ -677,7 +677,7 @@ WRITE_LINE_MEMBER( abc800_state::ctc_z2_w )
void abc800_state::clock_cassette(int state)
{
- if (m_cassette == NULL) return;
+ if (m_cassette == nullptr) return;
if (m_ctc_z0 && !state)
{
@@ -708,7 +708,7 @@ WRITE_LINE_MEMBER( abc800_state::sio_txdb_w )
WRITE_LINE_MEMBER( abc800_state::sio_dtrb_w )
{
- if (m_cassette == NULL) return;
+ if (m_cassette == nullptr) return;
if (state)
{
@@ -724,7 +724,7 @@ WRITE_LINE_MEMBER( abc800_state::sio_dtrb_w )
WRITE_LINE_MEMBER( abc800_state::sio_rtsb_w )
{
- if (m_cassette == NULL) return;
+ if (m_cassette == nullptr) return;
m_sio_rtsb = state;
@@ -770,7 +770,7 @@ static const z80_daisy_config abc800_daisy_chain[] =
{ Z80CTC_TAG },
{ Z80SIO_TAG },
{ Z80DART_TAG },
- { NULL }
+ { nullptr }
};
@@ -1054,12 +1054,12 @@ static MACHINE_CONFIG_START( abc800c, abc800c_state )
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, NULL)
+ 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_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ 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))
@@ -1129,12 +1129,12 @@ static MACHINE_CONFIG_START( abc800m, abc800m_state )
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, NULL)
+ 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_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ 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))
@@ -1206,12 +1206,12 @@ static MACHINE_CONFIG_START( abc802, abc802_state )
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, NULL)
+ 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_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ 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))
@@ -1274,12 +1274,12 @@ static MACHINE_CONFIG_START( abc806, abc806_state )
MCFG_Z80DART_OUT_DTRB_CB(WRITELINE(abc806_state, keydtr_w))
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL)
+ 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_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ 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))
diff --git a/src/mame/drivers/ac1.cpp b/src/mame/drivers/ac1.cpp
index bf67bbfff9e..733fc70fbb2 100644
--- a/src/mame/drivers/ac1.cpp
+++ b/src/mame/drivers/ac1.cpp
@@ -177,9 +177,9 @@ ROM_START( ac1 )
ROM_REGION(0x0800, "gfx1",0)
// 64 chars - U402 BM513
ROM_LOAD ("u402.bin", 0x0000, 0x0200, CRC(cfb67f28) SHA1(e3a62a3a8bce0d098887e31fd16410f38832fd18))
- ROM_COPY("gfx1", 0x0000, 0x0200, 0x0200)
- ROM_COPY("gfx1", 0x0000, 0x0400, 0x0200)
- ROM_COPY("gfx1", 0x0000, 0x0600, 0x0200)
+ ROM_COPY("gfx1", nullptr, 0x0200, 0x0200)
+ ROM_COPY("gfx1", nullptr, 0x0400, 0x0200)
+ ROM_COPY("gfx1", nullptr, 0x0600, 0x0200)
ROM_END
ROM_START( ac1_32 )
diff --git a/src/mame/drivers/adam.cpp b/src/mame/drivers/adam.cpp
index 46fdf71b4e3..a52eb37e567 100644
--- a/src/mame/drivers/adam.cpp
+++ b/src/mame/drivers/adam.cpp
@@ -1077,27 +1077,27 @@ static MACHINE_CONFIG_START( adam, adam_state )
MCFG_ADAMNET_SLOT_ADD("net4", adamnet_devices, "fdc")
MCFG_ADAMNET_SLOT_ADD("net5", adamnet_devices, "fdc")
MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fdc", drive2)
- MCFG_ADAMNET_SLOT_ADD("net6", adamnet_devices, NULL)
- MCFG_ADAMNET_SLOT_ADD("net7", adamnet_devices, NULL)
- MCFG_ADAMNET_SLOT_ADD("net8", adamnet_devices, NULL)
- MCFG_ADAMNET_SLOT_ADD("net9", adamnet_devices, NULL)
- MCFG_ADAMNET_SLOT_ADD("net10", adamnet_devices, NULL)
- MCFG_ADAMNET_SLOT_ADD("net11", adamnet_devices, NULL)
- MCFG_ADAMNET_SLOT_ADD("net12", adamnet_devices, NULL)
- MCFG_ADAMNET_SLOT_ADD("net13", adamnet_devices, NULL)
- MCFG_ADAMNET_SLOT_ADD("net14", adamnet_devices, NULL)
- MCFG_ADAMNET_SLOT_ADD("net15", adamnet_devices, NULL)
-
- MCFG_COLECOVISION_CARTRIDGE_SLOT_ADD(COLECOVISION_CARTRIDGE_SLOT_TAG, colecovision_cartridges, NULL)
+ MCFG_ADAMNET_SLOT_ADD("net6", adamnet_devices, nullptr)
+ MCFG_ADAMNET_SLOT_ADD("net7", adamnet_devices, nullptr)
+ MCFG_ADAMNET_SLOT_ADD("net8", adamnet_devices, nullptr)
+ MCFG_ADAMNET_SLOT_ADD("net9", adamnet_devices, nullptr)
+ MCFG_ADAMNET_SLOT_ADD("net10", adamnet_devices, nullptr)
+ MCFG_ADAMNET_SLOT_ADD("net11", adamnet_devices, nullptr)
+ MCFG_ADAMNET_SLOT_ADD("net12", adamnet_devices, nullptr)
+ MCFG_ADAMNET_SLOT_ADD("net13", adamnet_devices, nullptr)
+ MCFG_ADAMNET_SLOT_ADD("net14", adamnet_devices, nullptr)
+ MCFG_ADAMNET_SLOT_ADD("net15", adamnet_devices, nullptr)
+
+ MCFG_COLECOVISION_CARTRIDGE_SLOT_ADD(COLECOVISION_CARTRIDGE_SLOT_TAG, colecovision_cartridges, nullptr)
MCFG_ADAM_EXPANSION_SLOT_ADD(ADAM_LEFT_EXPANSION_SLOT_TAG, XTAL_7_15909MHz/2, adam_slot1_devices, "adamlink")
MCFG_ADAM_EXPANSION_SLOT_IRQ_CALLBACK(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_ADAM_EXPANSION_SLOT_ADD(ADAM_CENTER_EXPANSION_SLOT_TAG, XTAL_7_15909MHz/2, adam_slot2_devices, NULL)
+ MCFG_ADAM_EXPANSION_SLOT_ADD(ADAM_CENTER_EXPANSION_SLOT_TAG, XTAL_7_15909MHz/2, adam_slot2_devices, nullptr)
MCFG_ADAM_EXPANSION_SLOT_IRQ_CALLBACK(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
MCFG_ADAM_EXPANSION_SLOT_ADD(ADAM_RIGHT_EXPANSION_SLOT_TAG, XTAL_7_15909MHz/2, adam_slot3_devices, "ram")
MCFG_COLECOVISION_CONTROL_PORT_ADD(CONTROL1_TAG, colecovision_control_port_devices, "hand")
MCFG_COLECOVISION_CONTROL_PORT_IRQ_CALLBACK(WRITELINE(adam_state, joy1_irq_w))
- MCFG_COLECOVISION_CONTROL_PORT_ADD(CONTROL2_TAG, colecovision_control_port_devices, NULL)
+ MCFG_COLECOVISION_CONTROL_PORT_ADD(CONTROL2_TAG, colecovision_control_port_devices, nullptr)
MCFG_COLECOVISION_CONTROL_PORT_IRQ_CALLBACK(WRITELINE(adam_state, joy2_irq_w))
// internal ram
diff --git a/src/mame/drivers/aerofgt.cpp b/src/mame/drivers/aerofgt.cpp
index 8cfd233520d..9f222fa5314 100644
--- a/src/mame/drivers/aerofgt.cpp
+++ b/src/mame/drivers/aerofgt.cpp
@@ -2005,13 +2005,13 @@ ROM_START( pspikesb )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x100000, "oki", 0 ) /* Samples */
- ROM_COPY( "user1", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x040000, 0x020000)
ROM_COPY( "user1", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x080000, 0x020000)
ROM_COPY( "user1", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user1", 0x060000, 0x0e0000, 0x020000)
ROM_END
@@ -2038,13 +2038,13 @@ ROM_START( pspikesba )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x100000, "oki", 0 ) /* Samples */
- ROM_COPY( "user1", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x040000, 0x020000)
ROM_COPY( "user1", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x080000, 0x020000)
ROM_COPY( "user1", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user1", 0x060000, 0x0e0000, 0x020000)
ROM_END
@@ -2178,13 +2178,13 @@ ROM_START( pspikesc )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x100000, "oki", 0 ) /* Samples */
- ROM_COPY( "user1", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x040000, 0x020000)
ROM_COPY( "user1", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x080000, 0x020000)
ROM_COPY( "user1", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user1", 0x060000, 0x0e0000, 0x020000)
ROM_END
diff --git a/src/mame/drivers/altos5.cpp b/src/mame/drivers/altos5.cpp
index 1edfaafb293..974d062f374 100644
--- a/src/mame/drivers/altos5.cpp
+++ b/src/mame/drivers/altos5.cpp
@@ -201,7 +201,7 @@ static const z80_daisy_config daisy_chain_intf[] =
{ "z80ctc" },
{ "z80dart" },
{ "z80sio" },
- { NULL }
+ { nullptr }
};
@@ -298,7 +298,7 @@ WRITE8_MEMBER( altos5_state::port08_w )
{
m_port08 = data & 0x70;
- m_floppy = NULL;
+ m_floppy = nullptr;
if (BIT(data, 5))
m_floppy = m_floppy1->get_device();
else
diff --git a/src/mame/drivers/amiga.cpp b/src/mame/drivers/amiga.cpp
index f3692c279d3..f616059cbf3 100644
--- a/src/mame/drivers/amiga.cpp
+++ b/src/mame/drivers/amiga.cpp
@@ -1329,12 +1329,12 @@ static MACHINE_CONFIG_START( amiga_base, amiga_state )
// floppy drives
MCFG_DEVICE_ADD("fdc", AMIGA_FDC, amiga_state::CLK_7M_PAL)
MCFG_FLOPPY_DRIVE_ADD("fdc:0", amiga_floppies, "35dd", amiga_fdc::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fdc:1", amiga_floppies, 0, amiga_fdc::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fdc:2", amiga_floppies, 0, amiga_fdc::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fdc:3", amiga_floppies, 0, amiga_fdc::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fdc:1", amiga_floppies, nullptr, amiga_fdc::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fdc:2", amiga_floppies, nullptr, amiga_fdc::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fdc:3", amiga_floppies, nullptr, amiga_fdc::floppy_formats)
// rs232
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(WRITELINE(amiga_state, rs232_rx_w))
MCFG_RS232_DCD_HANDLER(WRITELINE(amiga_state, rs232_dcd_w))
MCFG_RS232_DSR_HANDLER(WRITELINE(amiga_state, rs232_dsr_w))
@@ -1414,17 +1414,17 @@ static MACHINE_CONFIG_DERIVED_CLASS( a2000, amiga_base, a2000_state )
MCFG_DEVICE_ADD("u65", MSM6242, XTAL_32_768kHz)
// cpu slot
- MCFG_EXPANSION_SLOT_ADD("maincpu", a2000_expansion_cards, NULL)
+ MCFG_EXPANSION_SLOT_ADD("maincpu", a2000_expansion_cards, nullptr)
// zorro slots
MCFG_ZORRO2_ADD("maincpu")
MCFG_ZORRO2_INT2_HANDLER(WRITELINE(a2000_state, zorro2_int2_w))
MCFG_ZORRO2_INT6_HANDLER(WRITELINE(a2000_state, zorro2_int6_w))
- MCFG_ZORRO2_SLOT_ADD("zorro1", zorro2_cards, NULL)
- MCFG_ZORRO2_SLOT_ADD("zorro2", zorro2_cards, NULL)
- MCFG_ZORRO2_SLOT_ADD("zorro3", zorro2_cards, NULL)
- MCFG_ZORRO2_SLOT_ADD("zorro4", zorro2_cards, NULL)
- MCFG_ZORRO2_SLOT_ADD("zorro5", zorro2_cards, NULL)
+ MCFG_ZORRO2_SLOT_ADD("zorro1", zorro2_cards, nullptr)
+ MCFG_ZORRO2_SLOT_ADD("zorro2", zorro2_cards, nullptr)
+ MCFG_ZORRO2_SLOT_ADD("zorro3", zorro2_cards, nullptr)
+ MCFG_ZORRO2_SLOT_ADD("zorro4", zorro2_cards, nullptr)
+ MCFG_ZORRO2_SLOT_ADD("zorro5", zorro2_cards, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED_CLASS( a2000n, a2000, a2000_state )
@@ -1456,7 +1456,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( a500, amiga_base, a500_state )
MCFG_ADDRESS_MAP_BANK_STRIDE(0x200000)
// cpu slot
- MCFG_EXPANSION_SLOT_ADD("maincpu", a500_expansion_cards, NULL)
+ MCFG_EXPANSION_SLOT_ADD("maincpu", a500_expansion_cards, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED_CLASS( a500n, a500, a500_state )
@@ -1594,7 +1594,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( a500p, amiga_base, a500p_state )
MCFG_DEVICE_ADD("u9", MSM6242, XTAL_32_768kHz)
// cpu slot
- MCFG_EXPANSION_SLOT_ADD("maincpu", a500_expansion_cards, NULL)
+ MCFG_EXPANSION_SLOT_ADD("maincpu", a500_expansion_cards, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED_CLASS( a500pn, a500p, a500p_state )
@@ -1631,7 +1631,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( a600, amiga_base, a600_state )
MCFG_GAYLE_CS1_READ_HANDLER(DEVREAD16("ata", ata_interface_device, read_cs1))
MCFG_GAYLE_CS1_WRITE_HANDLER(DEVWRITE16("ata", ata_interface_device, write_cs1))
- MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", NULL, false)
+ MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", nullptr, false)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("gayle", gayle_device, ide_interrupt_w))
// todo: pcmcia
@@ -1680,7 +1680,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( a1200, amiga_base, a1200_state )
MCFG_GAYLE_CS1_READ_HANDLER(DEVREAD16("ata", ata_interface_device, read_cs1))
MCFG_GAYLE_CS1_WRITE_HANDLER(DEVWRITE16("ata", ata_interface_device, write_cs1))
- MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", NULL, false)
+ MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", nullptr, false)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("gayle", gayle_device, ide_interrupt_w))
// todo: pcmcia
@@ -1728,7 +1728,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( a4000, amiga_base, a4000_state )
MCFG_DEVICE_ADD("rtc", RP5C01, XTAL_32_768kHz)
// ide
- MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", NULL, false)
+ MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", nullptr, false)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(a4000_state, ide_interrupt_w))
// todo: zorro3
@@ -1896,10 +1896,10 @@ ROM_START( a2000 )
ROM_DEFAULT_BIOS("kick13")
ROM_SYSTEM_BIOS(0, "kick12", "Kickstart 1.2 (33.180)")
ROMX_LOAD("315093-01.u2", 0x00000, 0x40000, CRC(a6ce1636) SHA1(11f9e62cf299f72184835b7b2a70a16333fc0d88), ROM_GROUPWORD | ROM_BIOS(1))
- ROM_COPY("kickstart", 0x00000, 0x40000, 0x40000)
+ ROM_COPY("kickstart", nullptr, 0x40000, 0x40000)
ROM_SYSTEM_BIOS(1, "kick13", "Kickstart 1.3 (34.5)")
ROMX_LOAD("315093-02.u2", 0x00000, 0x40000, CRC(c4f0f55f) SHA1(891e9a547772fe0c6c19b610baf8bc4ea7fcb785), ROM_GROUPWORD | ROM_BIOS(2))
- ROM_COPY("kickstart", 0x00000, 0x40000, 0x40000)
+ ROM_COPY("kickstart", nullptr, 0x40000, 0x40000)
ROM_SYSTEM_BIOS(2, "kick204", "Kickstart 2.04 (37.175)")
ROMX_LOAD("390979-01.u2", 0x00000, 0x80000, CRC(c3bdb240) SHA1(c5839f5cb98a7a8947065c3ed2f14f5f42e334a1), ROM_GROUPWORD | ROM_BIOS(3))
ROM_SYSTEM_BIOS(3, "kick31", "Kickstart 3.1 (40.63)")
@@ -1946,7 +1946,7 @@ ROM_START( cdtv )
// standard amiga kickstart 1.3
ROM_REGION16_BE(0x80000, "kickstart", 0)
ROMX_LOAD("315093-02.u13", 0x00000, 0x40000, CRC(c4f0f55f) SHA1(891e9a547772fe0c6c19b610baf8bc4ea7fcb785), ROM_GROUPWORD)
- ROM_COPY("kickstart", 0x00000, 0x40000, 0x40000)
+ ROM_COPY("kickstart", nullptr, 0x40000, 0x40000)
// remote control input converter, mos 6500/1 mcu
ROM_REGION(0x800, "rcmcu", 0)
diff --git a/src/mame/drivers/ampro.cpp b/src/mame/drivers/ampro.cpp
index d3507dc7349..6aef2a6f984 100644
--- a/src/mame/drivers/ampro.cpp
+++ b/src/mame/drivers/ampro.cpp
@@ -67,7 +67,7 @@ WRITE8_MEMBER( ampro_state::port00_w )
{
membank("bankr0")->set_entry(BIT(data, 6));
m_fdc->dden_w(BIT(data, 5));
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (BIT(data, 0)) floppy = m_floppy0->get_device();
m_fdc->set_floppy(floppy);
if (floppy)
@@ -114,7 +114,7 @@ static const z80_daisy_config daisy_chain_intf[] =
{
{ "z80ctc" },
{ "z80dart" },
- { NULL }
+ { nullptr }
};
// Baud rate generator. All inputs are 2MHz.
diff --git a/src/mame/drivers/amstr_pc.cpp b/src/mame/drivers/amstr_pc.cpp
index 8ba877cd182..d33fa47a6b3 100644
--- a/src/mame/drivers/amstr_pc.cpp
+++ b/src/mame/drivers/amstr_pc.cpp
@@ -488,7 +488,7 @@ INPUT_PORTS_END
// has it's own mouse
static MACHINE_CONFIG_FRAGMENT( cfg_com )
MCFG_DEVICE_MODIFY("serport0")
- MCFG_SLOT_DEFAULT_OPTION(NULL)
+ MCFG_SLOT_DEFAULT_OPTION(nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_START( pc200, amstrad_pc_state )
@@ -505,8 +505,8 @@ static MACHINE_CONFIG_START( pc200, amstrad_pc_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "com", pc_isa8_cards, "com", true)
MCFG_SLOT_OPTION_MACHINE_CONFIG("com", cfg_com)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, nullptr, false)
/* printer */
MCFG_DEVICE_ADD("lpt_0", PC_LPT, 0)
diff --git a/src/mame/drivers/amstrad.cpp b/src/mame/drivers/amstrad.cpp
index 3e97e5e49ce..d6e45da8c0d 100644
--- a/src/mame/drivers/amstrad.cpp
+++ b/src/mame/drivers/amstrad.cpp
@@ -911,7 +911,7 @@ static MACHINE_CONFIG_START( amstrad_base, amstrad_state )
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_INIT_OWNER(amstrad_state,amstrad_cpc)
- MCFG_MC6845_ADD("mc6845", HD6845, NULL, XTAL_16MHz / 16)
+ MCFG_MC6845_ADD("mc6845", HD6845, nullptr, XTAL_16MHz / 16)
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(16)
MCFG_MC6845_OUT_DE_CB(WRITELINE(amstrad_state, amstrad_de_changed))
@@ -947,7 +947,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( cpc464, amstrad_base )
MCFG_DEVICE_ADD("exp", CPC_EXPANSION_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(cpc464_exp_cards, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(cpc464_exp_cards, nullptr, false)
MCFG_CPC_EXPANSION_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_CPC_EXPANSION_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_CPC_EXPANSION_SLOT_OUT_ROMDIS_CB(WRITELINE(amstrad_state, cpc_romdis)) // ROMDIS
@@ -966,7 +966,7 @@ static MACHINE_CONFIG_DERIVED( cpc664, amstrad_base )
MCFG_SOFTWARE_LIST_ADD("flop_list","cpc_flop")
MCFG_DEVICE_ADD("exp", CPC_EXPANSION_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(cpc_exp_cards, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(cpc_exp_cards, nullptr, false)
MCFG_CPC_EXPANSION_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_CPC_EXPANSION_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_CPC_EXPANSION_SLOT_OUT_ROMDIS_CB(WRITELINE(amstrad_state, cpc_romdis)) // ROMDIS
@@ -985,7 +985,7 @@ static MACHINE_CONFIG_DERIVED( cpc6128, amstrad_base )
MCFG_SOFTWARE_LIST_ADD("flop_list","cpc_flop")
MCFG_DEVICE_ADD("exp", CPC_EXPANSION_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(cpc_exp_cards, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(cpc_exp_cards, nullptr, false)
MCFG_CPC_EXPANSION_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_CPC_EXPANSION_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_CPC_EXPANSION_SLOT_OUT_ROMDIS_CB(WRITELINE(amstrad_state, cpc_romdis)) // ROMDIS
@@ -1036,7 +1036,7 @@ static MACHINE_CONFIG_START( cpcplus, amstrad_state )
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_INIT_OWNER(amstrad_state,amstrad_plus)
- MCFG_MC6845_ADD("mc6845", AMS40489, NULL, XTAL_40MHz / 40)
+ MCFG_MC6845_ADD("mc6845", AMS40489, nullptr, XTAL_40MHz / 40)
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(16)
MCFG_MC6845_OUT_DE_CB(WRITELINE(amstrad_state, amstrad_plus_de_changed))
@@ -1073,7 +1073,7 @@ static MACHINE_CONFIG_START( cpcplus, amstrad_state )
MCFG_FLOPPY_DRIVE_ADD("upd765:1", amstrad_floppies, "35ssdd", floppy_image_device::default_floppy_formats)
MCFG_DEVICE_ADD("exp", CPC_EXPANSION_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(cpcplus_exp_cards, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(cpcplus_exp_cards, nullptr, false)
MCFG_CPC_EXPANSION_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_CPC_EXPANSION_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_CPC_EXPANSION_SLOT_OUT_ROMDIS_CB(WRITELINE(amstrad_state, cpc_romdis)) // ROMDIS
@@ -1115,7 +1115,7 @@ static MACHINE_CONFIG_START( gx4000, amstrad_state )
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_INIT_OWNER(amstrad_state,amstrad_plus)
- MCFG_MC6845_ADD("mc6845", AMS40489, NULL, XTAL_40MHz / 40)
+ MCFG_MC6845_ADD("mc6845", AMS40489, nullptr, XTAL_40MHz / 40)
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(16)
MCFG_MC6845_OUT_DE_CB(WRITELINE(amstrad_state, amstrad_plus_de_changed))
@@ -1156,7 +1156,7 @@ static MACHINE_CONFIG_DERIVED( aleste, cpc6128 )
MCFG_DEVICE_REMOVE("exp")
MCFG_DEVICE_ADD("exp", CPC_EXPANSION_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(aleste_exp_cards, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(aleste_exp_cards, nullptr, false)
MCFG_CPC_EXPANSION_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_CPC_EXPANSION_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_CPC_EXPANSION_SLOT_OUT_ROMDIS_CB(WRITELINE(amstrad_state, cpc_romdis)) // ROMDIS
diff --git a/src/mame/drivers/apc.cpp b/src/mame/drivers/apc.cpp
index 813479f062b..007f7920d13 100644
--- a/src/mame/drivers/apc.cpp
+++ b/src/mame/drivers/apc.cpp
@@ -900,7 +900,7 @@ static const floppy_format_type apc_floppy_formats[] = {
FLOPPY_D88_FORMAT,
FLOPPY_IMD_FORMAT,
FLOPPY_MFI_FORMAT,
- NULL
+ nullptr
};
static SLOT_INTERFACE_START( apc_floppies )
diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp
index afeeae693bc..eb275bcf037 100644
--- a/src/mame/drivers/apexc.cpp
+++ b/src/mame/drivers/apexc.cpp
@@ -84,9 +84,9 @@ public:
virtual bool is_creatable() const { return 0; }
virtual bool must_be_loaded() const { return 0; }
virtual bool is_reset_on_load() const { return 1; }
- virtual const char *image_interface() const { return NULL; }
+ virtual const char *image_interface() const { return nullptr; }
virtual const char *file_extensions() const { return "apc"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
virtual bool call_load();
virtual void call_unload();
@@ -213,9 +213,9 @@ public:
virtual bool is_creatable() const { return 1; }
virtual bool must_be_loaded() const { return 0; }
virtual bool is_reset_on_load() const { return 0; }
- virtual const char *image_interface() const { return NULL; }
+ virtual const char *image_interface() const { return nullptr; }
virtual const char *file_extensions() const { return "tap"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
protected:
// device-level overrides
virtual void device_config_complete() { update_names(); }
@@ -247,9 +247,9 @@ public:
virtual bool is_creatable() const { return 0; }
virtual bool must_be_loaded() const { return 0; }
virtual bool is_reset_on_load() const { return 0; }
- virtual const char *image_interface() const { return NULL; }
+ virtual const char *image_interface() const { return nullptr; }
virtual const char *file_extensions() const { return "tap"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
protected:
// device-level overrides
virtual void device_config_complete() { update_names(); }
diff --git a/src/mame/drivers/apf.cpp b/src/mame/drivers/apf.cpp
index dc94ed31c69..5595a1b67ee 100644
--- a/src/mame/drivers/apf.cpp
+++ b/src/mame/drivers/apf.cpp
@@ -279,7 +279,7 @@ WRITE8_MEMBER( apf_state::apf_dischw_w)
/* bit 3 is index of drive to select */
UINT8 drive = BIT(data, 3);
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (drive)
floppy = m_floppy1->get_device();
else
@@ -534,7 +534,7 @@ static MACHINE_CONFIG_START( apfm1000, apf_state )
MCFG_PIA_IRQA_HANDLER(DEVWRITELINE("maincpu", m6800_cpu_device, irq_line))
MCFG_PIA_IRQB_HANDLER(DEVWRITELINE("maincpu", m6800_cpu_device, irq_line))
- MCFG_APF_CARTRIDGE_ADD("cartslot", apf_cart, NULL)
+ MCFG_APF_CARTRIDGE_ADD("cartslot", apf_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list", "apfm1000")
diff --git a/src/mame/drivers/apple2.cpp b/src/mame/drivers/apple2.cpp
index 09dc4cc510f..0807f9ee53d 100644
--- a/src/mame/drivers/apple2.cpp
+++ b/src/mame/drivers/apple2.cpp
@@ -603,7 +603,7 @@ READ8_MEMBER(napple2_state::c080_r)
offset &= 0x7F;
slot = offset / 0x10;
- if (m_slotdevice[slot] != NULL)
+ if (m_slotdevice[slot] != nullptr)
{
return m_slotdevice[slot]->read_c0nx(space, offset % 0x10);
}
@@ -619,7 +619,7 @@ WRITE8_MEMBER(napple2_state::c080_w)
offset &= 0x7F;
slot = offset / 0x10;
- if (m_slotdevice[slot] != NULL)
+ if (m_slotdevice[slot] != nullptr)
{
m_slotdevice[slot]->write_c0nx(space, offset % 0x10, data);
}
@@ -631,7 +631,7 @@ READ8_MEMBER(napple2_state::c100_r)
slotnum = ((offset>>8) & 0xf) + 1;
- if (m_slotdevice[slotnum] != NULL)
+ if (m_slotdevice[slotnum] != nullptr)
{
if ((m_slotdevice[slotnum]->take_c800()) && (!space.debugger_access()))
{
@@ -650,7 +650,7 @@ WRITE8_MEMBER(napple2_state::c100_w)
slotnum = ((offset>>8) & 0xf) + 1;
- if (m_slotdevice[slotnum] != NULL)
+ if (m_slotdevice[slotnum] != nullptr)
{
if ((m_slotdevice[slotnum]->take_c800()) && (!space.debugger_access()))
{
@@ -669,7 +669,7 @@ READ8_MEMBER(napple2_state::c800_r)
return 0xff;
}
- if ((m_cnxx_slot != -1) && (m_slotdevice[m_cnxx_slot] != NULL))
+ if ((m_cnxx_slot != -1) && (m_slotdevice[m_cnxx_slot] != nullptr))
{
return m_slotdevice[m_cnxx_slot]->read_c800(space, offset&0xfff);
}
@@ -685,7 +685,7 @@ WRITE8_MEMBER(napple2_state::c800_w)
return;
}
- if ((m_cnxx_slot != -1) && (m_slotdevice[m_cnxx_slot] != NULL))
+ if ((m_cnxx_slot != -1) && (m_slotdevice[m_cnxx_slot] != nullptr))
{
m_slotdevice[m_cnxx_slot]->write_c800(space, offset&0xfff, data);
}
@@ -1318,13 +1318,13 @@ static MACHINE_CONFIG_START( apple2_common, napple2_state )
MCFG_A2BUS_OUT_NMI_CB(WRITELINE(napple2_state, a2bus_nmi_w))
MCFG_A2BUS_OUT_INH_CB(WRITELINE(napple2_state, a2bus_inh_w))
MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl0", apple2_slot0_cards, "lang")
- MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl1", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl2", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl3", apple2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl1", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl2", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl3", apple2_cards, nullptr)
MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl4", apple2_cards, "mockingboard")
- MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl5", apple2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl5", apple2_cards, nullptr)
MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl6", apple2_cards, "diskiing")
- MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl7", apple2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD(A2_BUS_TAG, "sl7", apple2_cards, nullptr)
MCFG_SOFTWARE_LIST_ADD("flop525_list","apple2")
diff --git a/src/mame/drivers/apple2e.cpp b/src/mame/drivers/apple2e.cpp
index 3938d375848..a295c1a7cb1 100644
--- a/src/mame/drivers/apple2e.cpp
+++ b/src/mame/drivers/apple2e.cpp
@@ -593,7 +593,7 @@ void apple2e_state::machine_start()
else // no expansion
{
m_exp_addrmask = 0;
- m_exp_ram = NULL;
+ m_exp_ram = nullptr;
}
// precalculate joystick time constants
@@ -607,8 +607,8 @@ void apple2e_state::machine_start()
}
// and aux slot device if any
- m_aux_ptr = NULL;
- m_aux_bank_ptr = NULL;
+ m_aux_ptr = nullptr;
+ m_aux_bank_ptr = nullptr;
if (m_a2eauxslot)
{
m_auxslotdevice = m_a2eauxslot->get_a2eauxslot_card();
@@ -620,7 +620,7 @@ void apple2e_state::machine_start()
}
else // IIc has 128K right on the motherboard
{
- m_auxslotdevice = NULL;
+ m_auxslotdevice = nullptr;
if (m_ram_size >= (128*1024))
{
@@ -1853,7 +1853,7 @@ READ8_MEMBER(apple2e_state::c080_r)
}
else
{
- if (m_slotdevice[slot] != NULL)
+ if (m_slotdevice[slot] != nullptr)
{
return m_slotdevice[slot]->read_c0nx(space, offset % 0x10);
}
@@ -1876,7 +1876,7 @@ WRITE8_MEMBER(apple2e_state::c080_w)
}
else
{
- if (m_slotdevice[slot] != NULL)
+ if (m_slotdevice[slot] != nullptr)
{
m_slotdevice[slot]->write_c0nx(space, offset % 0x10, data);
}
@@ -1887,7 +1887,7 @@ UINT8 apple2e_state::read_slot_rom(address_space &space, int slotbias, int offse
{
int slotnum = ((offset>>8) & 0xf) + slotbias;
- if (m_slotdevice[slotnum] != NULL)
+ if (m_slotdevice[slotnum] != nullptr)
{
if ((m_cnxx_slot == CNXX_UNCLAIMED) && (m_slotdevice[slotnum]->take_c800()) && (!space.debugger_access()))
{
@@ -1905,7 +1905,7 @@ void apple2e_state::write_slot_rom(address_space &space, int slotbias, int offse
{
int slotnum = ((offset>>8) & 0xf) + slotbias;
- if (m_slotdevice[slotnum] != NULL)
+ if (m_slotdevice[slotnum] != nullptr)
{
if ((m_cnxx_slot == CNXX_UNCLAIMED) && (m_slotdevice[slotnum]->take_c800()) && (!space.debugger_access()))
{
@@ -1955,7 +1955,7 @@ READ8_MEMBER(apple2e_state::c800_r)
return 0xff;
}
- if ((m_cnxx_slot > 0) && (m_slotdevice[m_cnxx_slot] != NULL))
+ if ((m_cnxx_slot > 0) && (m_slotdevice[m_cnxx_slot] != nullptr))
{
return m_slotdevice[m_cnxx_slot]->read_c800(space, offset&0xfff);
}
@@ -1978,7 +1978,7 @@ WRITE8_MEMBER(apple2e_state::c800_w)
return;
}
- if ((m_cnxx_slot > 0) && (m_slotdevice[m_cnxx_slot] != NULL))
+ if ((m_cnxx_slot > 0) && (m_slotdevice[m_cnxx_slot] != nullptr))
{
m_slotdevice[m_cnxx_slot]->write_c800(space, offset&0xfff, data);
}
@@ -3174,13 +3174,13 @@ static MACHINE_CONFIG_START( apple2e, apple2e_state )
MCFG_A2BUS_OUT_IRQ_CB(WRITELINE(apple2e_state, a2bus_irq_w))
MCFG_A2BUS_OUT_NMI_CB(WRITELINE(apple2e_state, a2bus_nmi_w))
MCFG_A2BUS_OUT_INH_CB(WRITELINE(apple2e_state, a2bus_inh_w))
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl1", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl2", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl3", apple2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl1", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl2", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl3", apple2_cards, nullptr)
MCFG_A2BUS_SLOT_ADD("a2bus", "sl4", apple2_cards, "mockingboard")
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl5", apple2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl5", apple2_cards, nullptr)
MCFG_A2BUS_SLOT_ADD("a2bus", "sl6", apple2_cards, "diskiing")
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl7", apple2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl7", apple2_cards, nullptr)
MCFG_DEVICE_ADD(A2_AUXSLOT_TAG, A2EAUXSLOT, 0)
MCFG_A2EAUXSLOT_CPU("maincpu")
@@ -3241,13 +3241,13 @@ static MACHINE_CONFIG_DERIVED( apple2c, apple2ee )
MCFG_MOS6551_XTAL(XTAL_1_8432MHz) // matches SSC so modem software is compatible
MCFG_MOS6551_TXD_HANDLER(DEVWRITELINE("modem", rs232_port_device, write_txd))
- MCFG_RS232_PORT_ADD(PRINTER_PORT_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(PRINTER_PORT_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(IIC_ACIA1_TAG, mos6551_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(IIC_ACIA1_TAG, mos6551_device, write_dcd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(IIC_ACIA1_TAG, mos6551_device, write_dsr))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(IIC_ACIA1_TAG, mos6551_device, write_cts))
- MCFG_RS232_PORT_ADD(MODEM_PORT_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(MODEM_PORT_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(IIC_ACIA2_TAG, mos6551_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(IIC_ACIA2_TAG, mos6551_device, write_dcd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(IIC_ACIA2_TAG, mos6551_device, write_dsr))
@@ -3335,9 +3335,9 @@ static MACHINE_CONFIG_DERIVED( laser128, apple2c )
MCFG_A2BUS_ONBOARD_ADD("a2bus", "sl2", A2BUS_LASER128, NULL)
MCFG_A2BUS_ONBOARD_ADD("a2bus", "sl3", A2BUS_LASER128, NULL)
MCFG_A2BUS_ONBOARD_ADD("a2bus", "sl4", A2BUS_LASER128, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl5", apple2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl5", apple2_cards, nullptr)
MCFG_A2BUS_ONBOARD_ADD("a2bus", "sl6", A2BUS_LASER128, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl7", apple2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl7", apple2_cards, nullptr)
MCFG_RAM_MODIFY(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("128K")
diff --git a/src/mame/drivers/apple2gs.cpp b/src/mame/drivers/apple2gs.cpp
index 8916f4f0747..6a9d42a7dac 100644
--- a/src/mame/drivers/apple2gs.cpp
+++ b/src/mame/drivers/apple2gs.cpp
@@ -374,13 +374,13 @@ static MACHINE_CONFIG_START( apple2gs, apple2gs_state )
MCFG_A2BUS_OUT_NMI_CB(WRITELINE(apple2gs_state, a2bus_nmi_w))
MCFG_A2BUS_OUT_INH_CB(WRITELINE(apple2gs_state, a2bus_inh_w))
MCFG_A2BUS_ONBOARD_ADD("a2bus", "sl0", A2BUS_LANG, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl1", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl2", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl3", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl4", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl5", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl6", apple2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl7", apple2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl1", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl2", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl3", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl4", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl5", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl6", apple2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl7", apple2_cards, nullptr)
MCFG_IWM_ADD("fdc", apple2_fdc_interface)
diff --git a/src/mame/drivers/apple3.cpp b/src/mame/drivers/apple3.cpp
index 5c59679b9d6..6608ca3a34f 100644
--- a/src/mame/drivers/apple3.cpp
+++ b/src/mame/drivers/apple3.cpp
@@ -94,10 +94,10 @@ static MACHINE_CONFIG_START( apple3, apple3_state )
MCFG_A2BUS_OUT_IRQ_CB(WRITELINE(apple3_state, a2bus_irq_w))
MCFG_A2BUS_OUT_NMI_CB(WRITELINE(apple3_state, a2bus_nmi_w))
//MCFG_A2BUS_OUT_INH_CB(WRITELINE(apple3_state, a2bus_inh_w))
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl1", apple3_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl2", apple3_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl3", apple3_cards, NULL)
- MCFG_A2BUS_SLOT_ADD("a2bus", "sl4", apple3_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl1", apple3_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl2", apple3_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl3", apple3_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD("a2bus", "sl4", apple3_cards, nullptr)
/* fdc */
MCFG_DEVICE_ADD("fdc", APPLEIII_FDC, 1021800*2)
@@ -117,7 +117,7 @@ static MACHINE_CONFIG_START( apple3, apple3_state )
MCFG_MOS6551_RTS_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_rts))
MCFG_MOS6551_DTR_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_dtr))
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("acia", mos6551_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("acia", mos6551_device, write_dcd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("acia", mos6551_device, write_dsr))
diff --git a/src/mame/drivers/applix.cpp b/src/mame/drivers/applix.cpp
index 2b5097470ee..8fa5419e48f 100644
--- a/src/mame/drivers/applix.cpp
+++ b/src/mame/drivers/applix.cpp
@@ -349,7 +349,7 @@ WRITE8_MEMBER( applix_state::port08_w )
m_port08 = data;
membank("bank1")->set_entry(BIT(data, 6));
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (BIT(data, 2)) floppy = m_floppy0->get_device();
if (BIT(data, 3)) floppy = m_floppy1->get_device();
diff --git a/src/mame/drivers/apricot.cpp b/src/mame/drivers/apricot.cpp
index f06dd418037..9bdec9865bd 100644
--- a/src/mame/drivers/apricot.cpp
+++ b/src/mame/drivers/apricot.cpp
@@ -173,7 +173,7 @@ WRITE8_MEMBER( apricot_state::i8255_portb_w )
m_display_on = BIT(data, 3);
m_video_mode = BIT(data, 4);
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
// bit 5, enable disk select
// bit 6, disk select
@@ -440,7 +440,7 @@ static MACHINE_CONFIG_START( apricot, apricot_state )
MCFG_Z80DART_OUT_INT_CB(DEVWRITELINE("ic31", pic8259_device, ir5_w))
// rs232 port
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
// note: missing a receive clock callback to support external clock mode
// (m_data_selector_rts == 1 and m_data_selector_dtr == 0)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("ic15", z80sio0_device, rxa_w))
@@ -474,8 +474,8 @@ static MACHINE_CONFIG_START( apricot, apricot_state )
// expansion bus
MCFG_EXPANSION_ADD("exp", "ic91")
MCFG_EXPANSION_IOP_ADD("ic71")
- MCFG_EXPANSION_SLOT_ADD("exp:1", apricot_expansion_cards, NULL)
- MCFG_EXPANSION_SLOT_ADD("exp:2", apricot_expansion_cards, NULL)
+ MCFG_EXPANSION_SLOT_ADD("exp:1", apricot_expansion_cards, nullptr)
+ MCFG_EXPANSION_SLOT_ADD("exp:2", apricot_expansion_cards, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( apricotxi, apricot )
diff --git a/src/mame/drivers/arcadia.cpp b/src/mame/drivers/arcadia.cpp
index 651301405c9..541a184b93a 100644
--- a/src/mame/drivers/arcadia.cpp
+++ b/src/mame/drivers/arcadia.cpp
@@ -499,7 +499,7 @@ static MACHINE_CONFIG_START( arcadia, arcadia_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
/* cartridge */
- MCFG_ARCADIA_CARTRIDGE_ADD("cartslot", arcadia_cart, NULL)
+ MCFG_ARCADIA_CARTRIDGE_ADD("cartslot", arcadia_cart, nullptr)
/* Software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","arcadia")
diff --git a/src/mame/drivers/aristmk5.cpp b/src/mame/drivers/aristmk5.cpp
index b1de7170c1a..1d60d5d8f5d 100644
--- a/src/mame/drivers/aristmk5.cpp
+++ b/src/mame/drivers/aristmk5.cpp
@@ -513,7 +513,7 @@ void aristmk5_state::machine_reset()
PRG = memregion(rom_region[op_mode & 3])->base();
- if(PRG!=NULL)
+ if(PRG!=nullptr)
for(i=0;i<0x400000;i++)
ROM[i] = PRG[i];
diff --git a/src/mame/drivers/arsystems.cpp b/src/mame/drivers/arsystems.cpp
index c017004843f..05ab344fb31 100644
--- a/src/mame/drivers/arsystems.cpp
+++ b/src/mame/drivers/arsystems.cpp
@@ -845,7 +845,7 @@ ROM_END
ROM_START( ar_argh ) // this plugs directly into the a500 motherboard, no arcadia bios, just the a500 kickstart and game ROMs
ROM_REGION16_BE(0x80000, "kickstart", 0 )
ROM_LOAD16_WORD("315093-01.u2", 0x00000, 0x40000, CRC(a6ce1636) SHA1(11f9e62cf299f72184835b7b2a70a16333fc0d88))
- ROM_COPY("kickstart", 0x00000, 0x40000, 0x40000 )
+ ROM_COPY("kickstart", nullptr, 0x40000, 0x40000 )
ROM_REGION16_BE( 0x180000, "user3", ROMREGION_ERASEFF )
ROM_LOAD16_BYTE( "argh-1-hi-11-28-87.u12", 0x000000, 0x10000, CRC(3b1f8075) SHA1(61aeff9f6a2dff6efe4276cb0bcbb80b495e26b6) )
diff --git a/src/mame/drivers/astinvad.cpp b/src/mame/drivers/astinvad.cpp
index d1f612cc9c1..7e0c83d538b 100644
--- a/src/mame/drivers/astinvad.cpp
+++ b/src/mame/drivers/astinvad.cpp
@@ -618,7 +618,7 @@ static const char *const astinvad_sample_names[] =
"6",
"7",
"8",
- 0
+ nullptr
};
diff --git a/src/mame/drivers/astrohome.cpp b/src/mame/drivers/astrohome.cpp
index f453befaa2e..7b08a693956 100644
--- a/src/mame/drivers/astrohome.cpp
+++ b/src/mame/drivers/astrohome.cpp
@@ -208,10 +208,10 @@ static MACHINE_CONFIG_START( astrocde, astrocde_mess_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
/* expansion port */
- MCFG_ASTROCADE_EXPANSION_SLOT_ADD("exp", astrocade_exp, NULL)
+ MCFG_ASTROCADE_EXPANSION_SLOT_ADD("exp", astrocade_exp, nullptr)
/* cartridge */
- MCFG_ASTROCADE_CARTRIDGE_ADD("cartslot", astrocade_cart, NULL)
+ MCFG_ASTROCADE_CARTRIDGE_ADD("cartslot", astrocade_cart, nullptr)
/* Software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","astrocde")
diff --git a/src/mame/drivers/at.cpp b/src/mame/drivers/at.cpp
index 17503480020..4aa38b66c50 100644
--- a/src/mame/drivers/at.cpp
+++ b/src/mame/drivers/at.cpp
@@ -643,10 +643,10 @@ static MACHINE_CONFIG_START( at386, at_state )
MCFG_ISA16_SLOT_ADD("isabus","board4", pc_isa16_cards, "lpt", true)
// ISA cards
MCFG_ISA16_SLOT_ADD("isabus","isa1", pc_isa16_cards, "svga_et4k", false)
- MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa3", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa4", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa5", pc_isa16_cards, NULL, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa3", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa4", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa5", pc_isa16_cards, nullptr, false)
MCFG_PC_KBDC_SLOT_ADD("pc_kbdc", "kbd", pc_at_keyboards, STR_KBD_MICROSOFT_NATURAL)
/* internal ram */
@@ -682,11 +682,11 @@ static MACHINE_CONFIG_START( k286i, at_state )
MCFG_ISA16_SLOT_ADD("isabus","isa1", pc_isa16_cards, "cga", false)
MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, "fdc", false)
MCFG_ISA16_SLOT_ADD("isabus","isa3", pc_isa16_cards, "comat", false)
- MCFG_ISA16_SLOT_ADD("isabus","isa4", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa5", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa6", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa7", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa8", pc_isa16_cards, NULL, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa4", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa5", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa6", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa7", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa8", pc_isa16_cards, nullptr, false)
MCFG_PC_KBDC_SLOT_ADD("pc_kbdc", "kbd", pc_at_keyboards, STR_KBD_MICROSOFT_NATURAL)
/* internal ram */
@@ -728,10 +728,10 @@ static MACHINE_CONFIG_START( at586, at586_state )
MCFG_PCI_BUS_DEVICE("pcibus:1", pci_devices, "i82371ab", true)
MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371ab:isabus","isa1", pc_isa16_cards, "svga_et4k", false)
- MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371ab:isabus","isa2", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371ab:isabus","isa3", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371ab:isabus","isa4", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371ab:isabus","isa5", pc_isa16_cards, NULL, false)
+ MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371ab:isabus","isa2", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371ab:isabus","isa3", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371ab:isabus","isa4", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371ab:isabus","isa5", pc_isa16_cards, nullptr, false)
MCFG_PC_KBDC_SLOT_ADD("pc_kbdc", "kbd", pc_at_keyboards, STR_KBD_MICROSOFT_NATURAL)
MCFG_FRAGMENT_ADD( at_softlists )
@@ -754,10 +754,10 @@ static MACHINE_CONFIG_START( at586x3, at586_state )
MCFG_PCI_BUS_DEVICE("pcibus:1", pci_devices, "i82371sb", true)
MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371sb:isabus","isa1", pc_isa16_cards, "svga_et4k", false)
- MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371sb:isabus","isa2", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371sb:isabus","isa3", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371sb:isabus","isa4", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371sb:isabus","isa5", pc_isa16_cards, NULL, false)
+ MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371sb:isabus","isa2", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371sb:isabus","isa3", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371sb:isabus","isa4", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD(":pcibus:1:i82371sb:isabus","isa5", pc_isa16_cards, nullptr, false)
MCFG_PC_KBDC_SLOT_ADD("pc_kbdc", "kbd", pc_at_keyboards, STR_KBD_MICROSOFT_NATURAL)
MCFG_FRAGMENT_ADD( at_softlists )
@@ -824,7 +824,7 @@ static MACHINE_CONFIG_START( megapc, megapc_state )
MCFG_ISA16_SLOT_ADD("isabus","board4", pc_isa16_cards, "lpt", true)
MCFG_ISA16_SLOT_ADD("isabus","board5", pc_isa16_cards, "vga", true)
// ISA cards
- MCFG_ISA16_SLOT_ADD("isabus","isa1", pc_isa16_cards, NULL, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa1", pc_isa16_cards, nullptr, false)
MCFG_DEVICE_ADD("keybc", AT_KEYBOARD_CONTROLLER, XTAL_12MHz)
MCFG_AT_KEYBOARD_CONTROLLER_SYSTEM_RESET_CB(DEVWRITELINE("wd7600", wd7600_device, kbrst_w))
@@ -878,10 +878,10 @@ static MACHINE_CONFIG_START( megapcpla, at_state )
MCFG_ISA16_SLOT_ADD("isabus","board4", pc_isa16_cards, "lpt", true)
// ISA cards
MCFG_ISA16_SLOT_ADD("isabus","isa1", pc_isa16_cards, "svga_dm", false) // closest to the CL-GD5420
- MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa3", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa4", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa5", pc_isa16_cards, NULL, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa3", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa4", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa5", pc_isa16_cards, nullptr, false)
MCFG_PC_KBDC_SLOT_ADD("pc_kbdc", "kbd", pc_at_keyboards, STR_KBD_MICROSOFT_NATURAL)
/* internal ram */
@@ -916,17 +916,17 @@ static MACHINE_CONFIG_START( ficpio2, at_state )
MCFG_ISA16_SLOT_ADD("isabus","board2", pc_isa16_cards, "comat", true)
MCFG_ISA16_SLOT_ADD("isabus","board3", pc_isa16_cards, "lpt", true)
- MCFG_IDE_CONTROLLER_32_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_IDE_CONTROLLER_32_ADD("ide", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_slave", pic8259_device, ir6_w))
- MCFG_IDE_CONTROLLER_32_ADD("ide2", ata_devices, "cdrom", NULL, true)
+ MCFG_IDE_CONTROLLER_32_ADD("ide2", ata_devices, "cdrom", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_slave", pic8259_device, ir7_w))
MCFG_PCI_BUS_ADD("pcibus", 0)
MCFG_PCI_BUS_DEVICE("pcibus:0", pci_devices, "vt82c505", true)
MCFG_ISA16_SLOT_ADD("isabus","isa1", pc_isa16_cards, "svga_et4k", false)
- MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa3", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus","isa4", pc_isa16_cards, NULL, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa3", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus","isa4", pc_isa16_cards, nullptr, false)
MCFG_PC_KBDC_SLOT_ADD("pc_kbdc", "kbd", pc_at_keyboards, STR_KBD_MICROSOFT_NATURAL)
MCFG_VT82C496_ADD("chipset")
@@ -1341,7 +1341,7 @@ ROM_START( ct386sx )
ROM_SYSTEM_BIOS(0, "neatsx", "NEATsx 386sx")
ROMX_LOAD("012l-u25.bin", 0xf0000, 0x8000, CRC(4ab1862d) SHA1(d4e8d0ff43731270478ca7671a129080ff350a4f),ROM_SKIP(1) | ROM_BIOS(1) )
ROMX_LOAD("012h-u24.bin", 0xf0001, 0x8000, CRC(17472521) SHA1(7588c148fe53d9dc4cb2d0ab6e0fd51a39bb5d1a),ROM_SKIP(1) | ROM_BIOS(1) )
- ROM_FILL(0xfe2c9, 1, 0) // skip incompatible keyboard controller test
+ ROM_FILL(0xfe2c9, 1, nullptr) // skip incompatible keyboard controller test
ROM_FILL(0xfe2cb, 1, 0xbb) // fix checksum
ROM_END
diff --git a/src/mame/drivers/atari400.cpp b/src/mame/drivers/atari400.cpp
index d45d4b30683..6be7bc28c37 100644
--- a/src/mame/drivers/atari400.cpp
+++ b/src/mame/drivers/atari400.cpp
@@ -1711,7 +1711,7 @@ void a400_state::setup_ram(int bank, UINT32 size)
case 0: // 0x0000-0x7fff
ram_top = MIN(size, 0x8000) - 1;
m_maincpu->space(AS_PROGRAM).install_readwrite_bank(0x0000, ram_top, "0000");
- if (m_0000 == NULL)
+ if (m_0000 == nullptr)
m_0000.findit();
m_0000->set_base(m_ram->pointer());
break;
@@ -1720,7 +1720,7 @@ void a400_state::setup_ram(int bank, UINT32 size)
if (ram_top > 0x8000)
{
m_maincpu->space(AS_PROGRAM).install_readwrite_bank(0x8000, ram_top, "8000");
- if (m_8000 == NULL)
+ if (m_8000 == nullptr)
m_8000.findit();
m_8000->set_base(m_ram->pointer() + 0x8000);
}
@@ -1730,7 +1730,7 @@ void a400_state::setup_ram(int bank, UINT32 size)
if (ram_top > 0xa000)
{
m_maincpu->space(AS_PROGRAM).install_readwrite_bank(0xa000, ram_top, "a000");
- if (m_a000 == NULL)
+ if (m_a000 == nullptr)
m_a000.findit();
m_a000->set_base(m_ram->pointer() + 0xa000);
}
@@ -2103,7 +2103,7 @@ static MACHINE_CONFIG_START( atari_common_nodac, a400_state )
MCFG_DEVICE_ADD("a8sio", A8SIO, 0)
MCFG_A8SIO_DATA_IN_CB(DEVWRITELINE("pokey", pokey_device, sid_w))
- MCFG_A8SIO_SLOT_ADD("a8sio", "sio", NULL)
+ MCFG_A8SIO_SLOT_ADD("a8sio", "sio", nullptr)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
@@ -2142,7 +2142,7 @@ static MACHINE_CONFIG_DERIVED( atari_common, atari_common_nodac )
/* devices */
MCFG_DEVICE_ADD("fdc", ATARI_FDC, 0)
- MCFG_A800_CARTRIDGE_ADD("cartleft", a800_left, NULL)
+ MCFG_A800_CARTRIDGE_ADD("cartleft", a800_left, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("flop_list","a800_flop")
@@ -2194,7 +2194,7 @@ static MACHINE_CONFIG_DERIVED( a800, atari_common )
MCFG_SCREEN_REFRESH_RATE(FRAME_RATE_60HZ)
MCFG_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ)
- MCFG_A800_CARTRIDGE_ADD("cartright", a800_right, NULL)
+ MCFG_A800_CARTRIDGE_ADD("cartright", a800_right, nullptr)
MACHINE_CONFIG_END
@@ -2211,7 +2211,7 @@ static MACHINE_CONFIG_DERIVED( a800pal, atari_common )
MCFG_SCREEN_REFRESH_RATE(FRAME_RATE_50HZ)
MCFG_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_50HZ)
- MCFG_A800_CARTRIDGE_ADD("cartright", a800_right, NULL)
+ MCFG_A800_CARTRIDGE_ADD("cartright", a800_right, nullptr)
MACHINE_CONFIG_END
@@ -2303,7 +2303,7 @@ static MACHINE_CONFIG_DERIVED( xegs, a800xl )
MCFG_DEVICE_REMOVE("cartleft")
MCFG_DEVICE_REMOVE("cart_list")
- MCFG_XEGS_CARTRIDGE_ADD("cartleft", xegs_carts, NULL)
+ MCFG_XEGS_CARTRIDGE_ADD("cartleft", xegs_carts, nullptr)
MACHINE_CONFIG_END
@@ -2339,7 +2339,7 @@ static MACHINE_CONFIG_DERIVED( a5200, atari_common_nodac )
MCFG_SCREEN_REFRESH_RATE(FRAME_RATE_60HZ)
MCFG_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ)
- MCFG_A5200_CARTRIDGE_ADD("cartleft", a5200_carts, NULL)
+ MCFG_A5200_CARTRIDGE_ADD("cartleft", a5200_carts, nullptr)
/* Software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","a5200")
diff --git a/src/mame/drivers/atarig1.cpp b/src/mame/drivers/atarig1.cpp
index 45bb3e8af4a..ddb2f038808 100644
--- a/src/mame/drivers/atarig1.cpp
+++ b/src/mame/drivers/atarig1.cpp
@@ -130,7 +130,7 @@ void atarig1_state::update_bank(int bank)
void atarig1_state::device_post_load()
{
- if (m_bslapstic_base != NULL)
+ if (m_bslapstic_base != nullptr)
{
int bank = m_bslapstic_bank;
m_bslapstic_bank = -1;
diff --git a/src/mame/drivers/atarigx2.cpp b/src/mame/drivers/atarigx2.cpp
index 847d4747c4b..003a143635e 100644
--- a/src/mame/drivers/atarigx2.cpp
+++ b/src/mame/drivers/atarigx2.cpp
@@ -1519,7 +1519,7 @@ ROM_START( spclords )
ROM_REGION( 0x60000, "gfx1", 0 )
ROM_LOAD( "136095.30a", 0x00000, 0x20000, CRC(27e0cfec) SHA1(03df57757d091f9a0b8c8d98d091dd759f570788) ) /* playfield, planes 0-1 */
ROM_LOAD( "136095.31a", 0x20000, 0x20000, CRC(5529cdc7) SHA1(8aff8a42fb2a86b7e4666940da4c1ee19dab6281) ) /* playfield, planes 2-3 */
- ROM_FILL( 0x40000, 0x20000, 0 ) /* playfield, planes 4-5 */
+ ROM_FILL( 0x40000, 0x20000, nullptr ) /* playfield, planes 4-5 */
ROM_REGION( 0x020000, "gfx2", 0 )
ROM_LOAD( "136095.25a", 0x000000, 0x20000, CRC(1669496e) SHA1(005deaafd6156505e3a27966123e58928837ad9f) ) /* alphanumerics */
@@ -1565,7 +1565,7 @@ ROM_START( spclordsb )
ROM_REGION( 0x60000, "gfx1", 0 )
ROM_LOAD( "136095.30a", 0x00000, 0x20000, CRC(27e0cfec) SHA1(03df57757d091f9a0b8c8d98d091dd759f570788) ) /* playfield, planes 0-1 */
ROM_LOAD( "136095.31a", 0x20000, 0x20000, CRC(5529cdc7) SHA1(8aff8a42fb2a86b7e4666940da4c1ee19dab6281) ) /* playfield, planes 2-3 */
- ROM_FILL( 0x40000, 0x20000, 0 ) /* playfield, planes 4-5 */
+ ROM_FILL( 0x40000, 0x20000, nullptr ) /* playfield, planes 4-5 */
ROM_REGION( 0x020000, "gfx2", 0 )
ROM_LOAD( "136095.25a", 0x000000, 0x20000, CRC(1669496e) SHA1(005deaafd6156505e3a27966123e58928837ad9f) ) /* alphanumerics */
@@ -1611,7 +1611,7 @@ ROM_START( spclordsg )
ROM_REGION( 0x60000, "gfx1", 0 )
ROM_LOAD( "136095.30a", 0x00000, 0x20000, CRC(27e0cfec) SHA1(03df57757d091f9a0b8c8d98d091dd759f570788) ) /* playfield, planes 0-1 */
ROM_LOAD( "136095.31a", 0x20000, 0x20000, CRC(5529cdc7) SHA1(8aff8a42fb2a86b7e4666940da4c1ee19dab6281) ) /* playfield, planes 2-3 */
- ROM_FILL( 0x40000, 0x20000, 0 ) /* playfield, planes 4-5 */
+ ROM_FILL( 0x40000, 0x20000, nullptr ) /* playfield, planes 4-5 */
ROM_REGION( 0x020000, "gfx2", 0 )
ROM_LOAD( "136095.25a", 0x000000, 0x20000, CRC(1669496e) SHA1(005deaafd6156505e3a27966123e58928837ad9f) ) /* alphanumerics */
@@ -1657,7 +1657,7 @@ ROM_START( spclordsa )
ROM_REGION( 0x60000, "gfx1", 0 )
ROM_LOAD( "136095.30a", 0x00000, 0x20000, CRC(27e0cfec) SHA1(03df57757d091f9a0b8c8d98d091dd759f570788) ) /* playfield, planes 0-1 */
ROM_LOAD( "136095.31a", 0x20000, 0x20000, CRC(5529cdc7) SHA1(8aff8a42fb2a86b7e4666940da4c1ee19dab6281) ) /* playfield, planes 2-3 */
- ROM_FILL( 0x40000, 0x20000, 0 ) /* playfield, planes 4-5 */
+ ROM_FILL( 0x40000, 0x20000, nullptr ) /* playfield, planes 4-5 */
ROM_REGION( 0x020000, "gfx2", 0 )
ROM_LOAD( "136095.25a", 0x000000, 0x20000, CRC(1669496e) SHA1(005deaafd6156505e3a27966123e58928837ad9f) ) /* alphanumerics */
diff --git a/src/mame/drivers/atarist.cpp b/src/mame/drivers/atarist.cpp
index dcb4de5e82a..46dcf99df03 100644
--- a/src/mame/drivers/atarist.cpp
+++ b/src/mame/drivers/atarist.cpp
@@ -1743,7 +1743,7 @@ WRITE8_MEMBER( st_state::psg_pa_w )
*/
// drive select
- floppy_image_device *floppy = 0;
+ floppy_image_device *floppy = nullptr;
if (!BIT(data, 1))
floppy = floppy_devices[0];
else if(!BIT(data, 2))
@@ -1787,7 +1787,7 @@ WRITE8_MEMBER( stbook_state::psg_pa_w )
*/
// drive select
- floppy_image_device *floppy = 0;
+ floppy_image_device *floppy = nullptr;
if (!BIT(data, 1))
floppy = floppy_devices[0];
else if(!BIT(data, 2))
@@ -1955,7 +1955,7 @@ void st_state::machine_start()
if(con)
floppy_devices[i] = con->get_device();
else
- floppy_devices[i] = 0;
+ floppy_devices[i] = nullptr;
}
/// TODO: get callbacks to trigger these.
@@ -2104,7 +2104,7 @@ static MACHINE_CONFIG_START( st, st_state )
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE(MC68901_TAG, mc68901_device, i5_w)) MCFG_DEVCB_INVERT
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(st_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(WD1772_TAG ":0", atari_floppies, "35dd", st_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(WD1772_TAG ":1", atari_floppies, 0, st_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(WD1772_TAG ":1", atari_floppies, nullptr, st_state::floppy_formats)
MCFG_CENTRONICS_ADD("centronics", centronics_devices, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, i0_w))
@@ -2119,7 +2119,7 @@ static MACHINE_CONFIG_START( st, st_state )
MCFG_MC68901_OUT_TDO_CB(WRITELINE(st_state, mfp_tdo_w))
MCFG_MC68901_OUT_SO_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, write_rx))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, i1_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, i2_w))
@@ -2195,7 +2195,7 @@ static MACHINE_CONFIG_START( megast, megast_state )
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE(MC68901_TAG, mc68901_device, i5_w)) MCFG_DEVCB_INVERT
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(st_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(WD1772_TAG ":0", atari_floppies, "35dd", st_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(WD1772_TAG ":1", atari_floppies, 0, st_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(WD1772_TAG ":1", atari_floppies, nullptr, st_state::floppy_formats)
MCFG_CENTRONICS_ADD("centronics", centronics_devices, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, i0_w))
@@ -2210,7 +2210,7 @@ static MACHINE_CONFIG_START( megast, megast_state )
MCFG_MC68901_OUT_TDO_CB(WRITELINE(st_state, mfp_tdo_w))
MCFG_MC68901_OUT_SO_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, write_rx))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, i1_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, i2_w))
@@ -2293,7 +2293,7 @@ static MACHINE_CONFIG_START( ste, ste_state )
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE(MC68901_TAG, mc68901_device, i5_w)) MCFG_DEVCB_INVERT
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(st_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(WD1772_TAG ":0", atari_floppies, "35dd", st_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(WD1772_TAG ":1", atari_floppies, 0, st_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(WD1772_TAG ":1", atari_floppies, nullptr, st_state::floppy_formats)
MCFG_CENTRONICS_ADD("centronics", centronics_devices, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, i0_w))
@@ -2308,7 +2308,7 @@ static MACHINE_CONFIG_START( ste, ste_state )
MCFG_MC68901_OUT_TDO_CB(WRITELINE(st_state, mfp_tdo_w))
MCFG_MC68901_OUT_SO_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, write_rx))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, i1_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(MC68901_TAG, mc68901_device, i2_w))
diff --git a/src/mame/drivers/atlantis.cpp b/src/mame/drivers/atlantis.cpp
index 70312ac53fd..fa003cbfdda 100644
--- a/src/mame/drivers/atlantis.cpp
+++ b/src/mame/drivers/atlantis.cpp
@@ -186,7 +186,7 @@ static MACHINE_CONFIG_START( mwskins, atlantis_state )
MCFG_PCI9050_SET_MAP(1, map1) // 2 skipped for testing
MCFG_PCI9050_SET_MAP(3, map3)
- MCFG_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", nullptr, true)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/attache.cpp b/src/mame/drivers/attache.cpp
index 7cfdc459595..5221559ab36 100644
--- a/src/mame/drivers/attache.cpp
+++ b/src/mame/drivers/attache.cpp
@@ -868,7 +868,7 @@ static const z80_daisy_config attache_daisy_chain[] =
{ "ctc" },
{ "sio" },
// expansion
- { NULL }
+ { nullptr }
};
static SLOT_INTERFACE_START( attache_floppies )
@@ -986,7 +986,7 @@ MACHINE_CONFIG_END
ROM_START( attache )
ROM_REGION(0x10000, "maincpu", 0)
- ROM_FILL(0x0000,0x10000,0x00)
+ ROM_FILL(0x0000,0x10000,nullptr)
ROM_REGION(0x1000, "boot", 0)
ROM_SYSTEM_BIOS(0, "u252revg", "Boot Rev.G")
diff --git a/src/mame/drivers/aussiebyte.cpp b/src/mame/drivers/aussiebyte.cpp
index 4980be8204d..5cf1b650dea 100644
--- a/src/mame/drivers/aussiebyte.cpp
+++ b/src/mame/drivers/aussiebyte.cpp
@@ -112,7 +112,7 @@ WRITE8_MEMBER( aussiebyte_state::port15_w )
7 Enable write precompensation on WD2797 controller. */
WRITE8_MEMBER( aussiebyte_state::port16_w )
{
- floppy_image_device *m_floppy = NULL;
+ floppy_image_device *m_floppy = nullptr;
if ((data & 15) == 0)
m_floppy = m_floppy0->get_device();
else
@@ -330,7 +330,7 @@ static const z80_daisy_config daisy_chain_intf[] =
{ "sio2" },
{ "pio1" },
{ "ctc" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/avt.cpp b/src/mame/drivers/avt.cpp
index 552245ff1d6..54b5648e948 100644
--- a/src/mame/drivers/avt.cpp
+++ b/src/mame/drivers/avt.cpp
@@ -551,7 +551,7 @@ PALETTE_INIT_MEMBER(avt_state, avt)
int j;
/* 0000BGRI */
- if (color_prom == 0) return;
+ if (color_prom == nullptr) return;
for (j = 0; j < palette.entries(); j++)
{
diff --git a/src/mame/drivers/badlands.cpp b/src/mame/drivers/badlands.cpp
index 0159c213cdc..e8157cedee2 100644
--- a/src/mame/drivers/badlands.cpp
+++ b/src/mame/drivers/badlands.cpp
@@ -187,7 +187,7 @@ void badlands_state::update_interrupts()
void badlands_state::scanline_update(screen_device &screen, int scanline)
{
- if (m_audiocpu != 0)
+ if (m_audiocpu != nullptr)
{
address_space &space = m_audiocpu->space(AS_PROGRAM);
diff --git a/src/mame/drivers/battlane.cpp b/src/mame/drivers/battlane.cpp
index bacf394c722..53f158c2fbc 100644
--- a/src/mame/drivers/battlane.cpp
+++ b/src/mame/drivers/battlane.cpp
@@ -313,7 +313,7 @@ ROM_START( battlane )
ROM_REGION( 0x10000, "maincpu", 0 )
/* first half of da00-5 will be copied at 0x4000-0x7fff */
- ROM_COPY( "user1", 0x0000, 0x4000, 0x4000 )
+ ROM_COPY( "user1", nullptr, 0x4000, 0x4000 )
ROM_LOAD( "da01-5", 0x8000, 0x8000, CRC(7a6c3f02) SHA1(bee1ee858f81453a53afc2d016f549924801b090) )
ROM_REGION( 0x10000, "sub", 0 ) /* 64K for slave CPU */
@@ -341,7 +341,7 @@ ROM_START( battlane2 )
ROM_REGION( 0x10000, "maincpu", 0 )
/* first half of da00-3 will be copied at 0x4000-0x7fff */
- ROM_COPY( "user1", 0x0000, 0x4000, 0x4000 )
+ ROM_COPY( "user1", nullptr, 0x4000, 0x4000 )
ROM_LOAD( "da01-3", 0x8000, 0x8000, CRC(d9e40800) SHA1(dc87ae0d8631c220dbbddbf0e49b6bdaeb635269) )
ROM_REGION( 0x10000, "sub", 0 ) /* 64K for slave CPU */
@@ -369,7 +369,7 @@ ROM_START( battlane3 )
ROM_REGION( 0x10000, "maincpu", 0 )
/* first half of bl_04.rom will be copied at 0x4000-0x7fff */
- ROM_COPY( "user1", 0x0000, 0x4000, 0x4000 )
+ ROM_COPY( "user1", nullptr, 0x4000, 0x4000 )
ROM_LOAD( "bl_05.rom", 0x8000, 0x8000, CRC(001c4bbe) SHA1(4320c0a85b5b3505ac7292673759e5288cf4187f) )
ROM_REGION( 0x10000, "sub", 0 ) /* 64K for slave CPU */
diff --git a/src/mame/drivers/bbcbc.cpp b/src/mame/drivers/bbcbc.cpp
index a236fa87793..97eb93f62e3 100644
--- a/src/mame/drivers/bbcbc.cpp
+++ b/src/mame/drivers/bbcbc.cpp
@@ -112,7 +112,7 @@ WRITE_LINE_MEMBER(bbcbc_state::tms_interrupt)
static const z80_daisy_config bbcbc_daisy_chain[] =
{
{ "z80pio" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/bcs3.cpp b/src/mame/drivers/bcs3.cpp
index 8292aedd270..cd885352dba 100644
--- a/src/mame/drivers/bcs3.cpp
+++ b/src/mame/drivers/bcs3.cpp
@@ -337,7 +337,7 @@ WRITE_LINE_MEMBER( bcs3_state::ctc_z1_w )
static const z80_daisy_config daisy_chain_intf[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
DRIVER_INIT_MEMBER( bcs3_state, bcs3a )
diff --git a/src/mame/drivers/bebox.cpp b/src/mame/drivers/bebox.cpp
index cd3aec4c163..33fafdee7f2 100644
--- a/src/mame/drivers/bebox.cpp
+++ b/src/mame/drivers/bebox.cpp
@@ -200,7 +200,7 @@ static MACHINE_CONFIG_START( bebox, bebox_state )
MCFG_LSI53C810_FETCH_CB(bebox_state, scsi_fetch)
MCFG_LEGACY_SCSI_PORT("scsi")
- MCFG_IDE_CONTROLLER_ADD( "ide", ata_devices, "hdd", NULL, false ) /* FIXME */
+ MCFG_IDE_CONTROLLER_ADD( "ide", ata_devices, "hdd", nullptr, false ) /* FIXME */
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(bebox_state, bebox_ide_interrupt))
/* pci */
diff --git a/src/mame/drivers/bestleag.cpp b/src/mame/drivers/bestleag.cpp
index e3d2d7511cb..07923d16c83 100644
--- a/src/mame/drivers/bestleag.cpp
+++ b/src/mame/drivers/bestleag.cpp
@@ -426,11 +426,11 @@ ROM_START( bestleag )
ROM_LOAD( "20_27c040.u16", 0x00000, 0x80000, CRC(e152138e) SHA1(9d41b61b98414e1d5804b5a9edf4acb4c5f31615) )
ROM_REGION( 0xc0000, "oki", 0 )
- ROM_COPY( "oki_rom", 0x000000, 0x000000, 0x020000)
+ ROM_COPY( "oki_rom", nullptr, 0x000000, 0x020000)
ROM_COPY( "oki_rom", 0x020000, 0x020000, 0x020000)
- ROM_COPY( "oki_rom", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "oki_rom", nullptr, 0x040000, 0x020000)
ROM_COPY( "oki_rom", 0x040000, 0x060000, 0x020000)
- ROM_COPY( "oki_rom", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "oki_rom", nullptr, 0x080000, 0x020000)
ROM_COPY( "oki_rom", 0x060000, 0x0a0000, 0x020000)
ROM_END
@@ -455,11 +455,11 @@ ROM_START( bestleaw )
ROM_LOAD( "20_27c040.u16", 0x00000, 0x80000, CRC(e152138e) SHA1(9d41b61b98414e1d5804b5a9edf4acb4c5f31615) )
ROM_REGION( 0xc0000, "oki", 0 )
- ROM_COPY( "oki_rom", 0x000000, 0x000000, 0x020000)
+ ROM_COPY( "oki_rom", nullptr, 0x000000, 0x020000)
ROM_COPY( "oki_rom", 0x020000, 0x020000, 0x020000)
- ROM_COPY( "oki_rom", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "oki_rom", nullptr, 0x040000, 0x020000)
ROM_COPY( "oki_rom", 0x040000, 0x060000, 0x020000)
- ROM_COPY( "oki_rom", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "oki_rom", nullptr, 0x080000, 0x020000)
ROM_COPY( "oki_rom", 0x060000, 0x0a0000, 0x020000)
ROM_REGION( 0x2000, "plds", 0 )
diff --git a/src/mame/drivers/bigbord2.cpp b/src/mame/drivers/bigbord2.cpp
index 7f8612a2806..b13039aa0b2 100644
--- a/src/mame/drivers/bigbord2.cpp
+++ b/src/mame/drivers/bigbord2.cpp
@@ -334,7 +334,7 @@ WRITE8_MEMBER( bigbord2_state::portcc_w )
*/
/* drive select */
- m_floppy = NULL;
+ m_floppy = nullptr;
if BIT(data, 7) m_floppy = m_floppy0->get_device();
if BIT(data, 6) m_floppy = m_floppy1->get_device();
//if BIT(data, 5) m_floppy = m_floppy2->get_device();
@@ -440,7 +440,7 @@ static const z80_daisy_config bigbord2_daisy_chain[] =
{ Z80CTCA_TAG },
{ Z80CTCB_TAG },
{ Z80SIO_TAG },
- { NULL }
+ { nullptr }
};
/* WD1793 Interface */
diff --git a/src/mame/drivers/binbug.cpp b/src/mame/drivers/binbug.cpp
index 14c079e6156..a5752258181 100644
--- a/src/mame/drivers/binbug.cpp
+++ b/src/mame/drivers/binbug.cpp
@@ -330,7 +330,7 @@ ROM_START( binbug )
ROM_REGION( 0x0800, "chargen", 0 )
ROM_LOAD( "6574.bin", 0x0000, 0x0800, CRC(fd75df4f) SHA1(4d09aae2f933478532b7d3d1a2dee7123d9828ca) )
- ROM_FILL(0, 16, 0)
+ ROM_FILL(0, 16, nullptr)
ROM_END
/* Driver */
@@ -462,7 +462,7 @@ static const z80_daisy_config dg680_daisy_chain[] =
{
{ "z80ctc" },
{ "z80pio" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/blitz.cpp b/src/mame/drivers/blitz.cpp
index bba164a5343..5cfa05309ee 100644
--- a/src/mame/drivers/blitz.cpp
+++ b/src/mame/drivers/blitz.cpp
@@ -360,7 +360,7 @@ PALETTE_INIT_MEMBER(blitz_state, blitz)
/* 0000KBGR */
- if (color_prom == 0) return;
+ if (color_prom == nullptr) return;
for (i = 0;i < palette.entries();i++)
{
@@ -764,7 +764,7 @@ ROM_START( megadpkr )
ROM_LOAD( "mega-1.u1", 0x0000, 0x0800, NO_DUMP )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "car1.5a", 0x2000, 0x1000, CRC(29e244d2) SHA1(c309a5ee6922bf2752d218c134edb3ef5f808afa) ) /* text chars / cards deck gfx, bitplane3 */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -813,7 +813,7 @@ ROM_START( megadpkrb )
ROM_LOAD( "u11.bin", 0x0000, 0x0800, NO_DUMP )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "car1_5a.bin", 0x2000, 0x1000, CRC(29e244d2) SHA1(c309a5ee6922bf2752d218c134edb3ef5f808afa) ) /* text chars / cards deck gfx, bitplane3 */
ROM_REGION( 0x3000, "gfx2", 0 )
diff --git a/src/mame/drivers/bloodbro.cpp b/src/mame/drivers/bloodbro.cpp
index 61fa573f078..525992d6681 100644
--- a/src/mame/drivers/bloodbro.cpp
+++ b/src/mame/drivers/bloodbro.cpp
@@ -521,7 +521,7 @@ ROM_START( bloodbro )
ROM_REGION( 0x20000, "audiocpu", 0 )
ROM_LOAD( "bb_07.u1016.6a", 0x000000, 0x08000, CRC(411b94e8) SHA1(6968441f64212c0935afeca68f07deaadf86d614) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x20000, "gfx1", 0 )
ROM_LOAD( "bb_05.u061.6f", 0x00000, 0x10000, CRC(04ba6d19) SHA1(7333075c3323756d51917418b5234d785a9bee00) ) /* characters */
@@ -547,7 +547,7 @@ ROM_START( bloodbroa )
ROM_REGION( 0x20000, "audiocpu", 0 )
ROM_LOAD( "bb_07.u1016.6a", 0x000000, 0x08000, CRC(411b94e8) SHA1(6968441f64212c0935afeca68f07deaadf86d614) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x20000, "gfx1", 0 )
ROM_LOAD( "bb_05.u061.6f", 0x00000, 0x10000, CRC(04ba6d19) SHA1(7333075c3323756d51917418b5234d785a9bee00) ) /* characters */
@@ -573,7 +573,7 @@ ROM_START( bloodbrob )
ROM_REGION( 0x20000, "audiocpu", 0 )
ROM_LOAD( "bb_07.u1016.6a", 0x000000, 0x08000, CRC(411b94e8) SHA1(6968441f64212c0935afeca68f07deaadf86d614) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x20000, "gfx1", 0 )
ROM_LOAD( "bb_05.u061.6f", 0x00000, 0x10000, CRC(04ba6d19) SHA1(7333075c3323756d51917418b5234d785a9bee00) ) /* characters */
@@ -600,7 +600,7 @@ ROM_START( weststry )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k for sound cpu code */
ROM_LOAD( "ws17.bin", 0x000000, 0x08000, CRC(e00a8f09) SHA1(e7247ce0ab99d0726f31dee5de5ba33f4ebd183e) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x20000, "gfx1", 0 ) // first half of these is blank
ROM_LOAD( "ws09.bin", 0x00000, 0x08000, CRC(f05b2b3e) SHA1(6570d795d68655ace9668f32dc0bf5c2d2372411) ) /* characters */
@@ -646,7 +646,7 @@ ROM_START( skysmash )
ROM_REGION( 0x20000, "audiocpu", 0 )
ROM_LOAD( "rom2", 0x000000, 0x08000, CRC(75b194cf) SHA1(6aaf36cdab06c0aa5328f5176557387a5d3f7d26) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x20000, "gfx1", 0 )
ROM_LOAD( "rom3", 0x00000, 0x10000, CRC(fbb241be) SHA1(cd94c328891538bbd8c062d90a47ddf3d7d05bb0) ) /* characters */
diff --git a/src/mame/drivers/bmcpokr.cpp b/src/mame/drivers/bmcpokr.cpp
index ae65392d227..5a0bfb17347 100644
--- a/src/mame/drivers/bmcpokr.cpp
+++ b/src/mame/drivers/bmcpokr.cpp
@@ -215,7 +215,7 @@ void bmcpokr_state::draw_layer(screen_device &screen, bitmap_ind16 &bitmap, cons
{
case 1: tmap = m_tilemap_1; scroll = m_scrollram_1; ctrl = (m_layerctrl[0] >> 8) & 0xff; break;
case 2: tmap = m_tilemap_2; scroll = m_scrollram_2; ctrl = (m_layerctrl[0] >> 0) & 0xff; break;
- default: tmap = 0; scroll = m_scrollram_3; ctrl = (m_layerctrl[1] >> 8) & 0xff; break;
+ default: tmap = nullptr; scroll = m_scrollram_3; ctrl = (m_layerctrl[1] >> 8) & 0xff; break;
}
if (ctrl == 0x00)
diff --git a/src/mame/drivers/bml3.cpp b/src/mame/drivers/bml3.cpp
index 9b8b5eff66b..de950a105e0 100644
--- a/src/mame/drivers/bml3.cpp
+++ b/src/mame/drivers/bml3.cpp
@@ -1021,10 +1021,10 @@ static MACHINE_CONFIG_START( bml3_common, bml3_state )
Note it isn't feasible to use both, as they each place boot ROM at F800.
*/
MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl1", bml3_cards, "bml3mp1805")
- MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl2", bml3_cards, NULL)
- MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl3", bml3_cards, NULL)
- MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl4", bml3_cards, NULL)
- MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl5", bml3_cards, NULL)
+ MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl2", bml3_cards, nullptr)
+ MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl3", bml3_cards, nullptr)
+ MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl4", bml3_cards, nullptr)
+ MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl5", bml3_cards, nullptr)
MCFG_BML3BUS_SLOT_ADD("bml3bus", "sl6", bml3_cards, "bml3kanji")
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/bnstars.cpp b/src/mame/drivers/bnstars.cpp
index 8bb33dcb387..e575043267e 100644
--- a/src/mame/drivers/bnstars.cpp
+++ b/src/mame/drivers/bnstars.cpp
@@ -546,7 +546,7 @@ UINT32 bnstars_state::screen_update_bnstars_right(screen_device &screen, bitmap_
static INPUT_PORTS_START( bnstars )
PORT_START("P1")
- PORT_BIT( 0x000000ff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, bnstars_state, mahjong_ctrl_r, (void *)0)
+ PORT_BIT( 0x000000ff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, bnstars_state, mahjong_ctrl_r, (void *)nullptr)
PORT_BIT( 0x0000ff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_UNKNOWN )
@@ -708,7 +708,7 @@ GFXDECODE_END
CUSTOM_INPUT_MEMBER(bnstars_state::mahjong_ctrl_r)
{
- required_ioport_array<4> &keys = (param == 0) ? m_p1_keys : m_p2_keys;
+ required_ioport_array<4> &keys = (param == nullptr) ? m_p1_keys : m_p2_keys;
switch (m_bnstars1_mahjong_select & 0x2080)
{
diff --git a/src/mame/drivers/br8641.cpp b/src/mame/drivers/br8641.cpp
index 671aeab491d..df76c9ee91b 100644
--- a/src/mame/drivers/br8641.cpp
+++ b/src/mame/drivers/br8641.cpp
@@ -153,7 +153,7 @@ static const z80_daisy_config daisy_chain_intf[] =
{ "pio2" },
{ "pio3" },
{ "ctc" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/btime.cpp b/src/mame/drivers/btime.cpp
index b1524a4fce1..c8b701f5518 100644
--- a/src/mame/drivers/btime.cpp
+++ b/src/mame/drivers/btime.cpp
@@ -1142,8 +1142,8 @@ static GFXDECODE_START( zoar )
GFXDECODE_END
static GFXDECODE_START( disco )
- GFXDECODE_ENTRY( NULL, 0, disco_tile8layout, 0, 4 ) /* char set #1 */
- GFXDECODE_ENTRY( NULL, 0, disco_tile16layout, 0, 4 ) /* sprites */
+ GFXDECODE_ENTRY( nullptr, 0, disco_tile8layout, 0, 4 ) /* char set #1 */
+ GFXDECODE_ENTRY( nullptr, 0, disco_tile16layout, 0, 4 ) /* sprites */
GFXDECODE_END
/***************************************************************************
diff --git a/src/mame/drivers/bullet.cpp b/src/mame/drivers/bullet.cpp
index acc5d04c882..97a7d5ef81f 100644
--- a/src/mame/drivers/bullet.cpp
+++ b/src/mame/drivers/bullet.cpp
@@ -212,7 +212,7 @@ WRITE8_MEMBER( bullet_state::exdsk_w )
if (m_exdsk_sw)
{
// drive select
- m_floppy = NULL;
+ m_floppy = nullptr;
switch (data & 0x07)
{
@@ -462,7 +462,7 @@ WRITE8_MEMBER( bulletf_state::xfdc_w )
*/
// drive select
- m_floppy = NULL;
+ m_floppy = nullptr;
switch (data & 0x0f)
{
@@ -985,7 +985,7 @@ static const z80_daisy_config daisy_chain[] =
{ Z80DART_TAG },
{ Z80PIO_TAG },
{ Z80CTC_TAG },
- { NULL }
+ { nullptr }
};
@@ -1141,13 +1141,13 @@ static MACHINE_CONFIG_START( bullet, bullet_state )
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE(Z80DART_TAG, z80dart_device, dcda_w))
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(bullet_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":0", bullet_525_floppies, "525qd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":1", bullet_525_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":2", bullet_525_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":3", bullet_525_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":4", bullet_8_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":5", bullet_8_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":6", bullet_8_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":7", bullet_8_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":1", bullet_525_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":2", bullet_525_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":3", bullet_525_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":4", bullet_8_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":5", bullet_8_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":6", bullet_8_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":7", bullet_8_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_devices, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(bullet_state, write_centronics_busy))
@@ -1161,7 +1161,7 @@ static MACHINE_CONFIG_START( bullet, bullet_state )
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxa_w))
MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("terminal", terminal)
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxb_w))
// software lists
@@ -1223,15 +1223,15 @@ static MACHINE_CONFIG_START( bulletf, bulletf_state )
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE(Z80DART_TAG, z80dart_device, rib_w))
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(bullet_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":0", bullet_525_floppies, "525qd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":1", bullet_525_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":2", bullet_525_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":3", bullet_525_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":4", bullet_8_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":5", bullet_8_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":6", bullet_8_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":7", bullet_8_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":8", bullet_35_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":9", bullet_35_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":1", bullet_525_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":2", bullet_525_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":3", bullet_525_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":4", bullet_8_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":5", bullet_8_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":6", bullet_8_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":7", bullet_8_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":8", bullet_35_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":9", bullet_35_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_devices, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(bullet_state, write_centronics_busy))
@@ -1242,7 +1242,7 @@ static MACHINE_CONFIG_START( bulletf, bulletf_state )
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxa_w))
MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("terminal", terminal)
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxb_w))
MCFG_DEVICE_ADD(SCSIBUS_TAG, SCSI_PORT, 0)
diff --git a/src/mame/drivers/bw12.cpp b/src/mame/drivers/bw12.cpp
index 20234365c0f..3f2db33ab16 100644
--- a/src/mame/drivers/bw12.cpp
+++ b/src/mame/drivers/bw12.cpp
@@ -608,12 +608,12 @@ static MACHINE_CONFIG_START( common, bw12_state )
MCFG_AY3600_CONTROL_CB(READLINE(bw12_state, ay3600_control_r))
MCFG_AY3600_DATA_READY_CB(WRITELINE(bw12_state, ay3600_data_ready_w))
- MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_A_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_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, rxb_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, dcdb_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, ctsb_w))
diff --git a/src/mame/drivers/bw2.cpp b/src/mame/drivers/bw2.cpp
index 573c011f72d..3cf623fbc02 100644
--- a/src/mame/drivers/bw2.cpp
+++ b/src/mame/drivers/bw2.cpp
@@ -415,7 +415,7 @@ WRITE8_MEMBER( bw2_state::ppi_pa_w )
m_kb = data & 0x0f;
// drive select
- m_floppy = NULL;
+ m_floppy = nullptr;
if (BIT(data, 4)) m_floppy = m_floppy0->get_device();
if (BIT(data, 5)) m_floppy = m_floppy1->get_device();
@@ -628,7 +628,7 @@ static MACHINE_CONFIG_START( bw2, bw2_state )
MCFG_I8251_DTR_HANDLER(DEVWRITELINE(RS232_TAG, rs232_port_device, write_dtr))
MCFG_I8251_RTS_HANDLER(DEVWRITELINE(RS232_TAG, rs232_port_device, write_rts))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(I8251_TAG, i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(I8251_TAG, i8251_device, write_dsr))
@@ -637,8 +637,8 @@ static MACHINE_CONFIG_START( bw2, bw2_state )
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(bw2_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(WD2797_TAG":0", bw2_floppies, "35dd", bw2_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(WD2797_TAG":1", bw2_floppies, NULL, bw2_state::floppy_formats)
- MCFG_BW2_EXPANSION_SLOT_ADD(BW2_EXPANSION_SLOT_TAG, XTAL_16MHz, bw2_expansion_cards, NULL)
+ MCFG_FLOPPY_DRIVE_ADD(WD2797_TAG":1", bw2_floppies, nullptr, bw2_state::floppy_formats)
+ MCFG_BW2_EXPANSION_SLOT_ADD(BW2_EXPANSION_SLOT_TAG, XTAL_16MHz, bw2_expansion_cards, nullptr)
// software list
MCFG_SOFTWARE_LIST_ADD("flop_list","bw2")
diff --git a/src/mame/drivers/c128.cpp b/src/mame/drivers/c128.cpp
index 91c83f0aa1b..a9d937ad7b5 100644
--- a/src/mame/drivers/c128.cpp
+++ b/src/mame/drivers/c128.cpp
@@ -1523,10 +1523,10 @@ static MACHINE_CONFIG_START( ntsc, c128_state )
MCFG_MOS6526_PB_OUTPUT_CALLBACK(WRITE8(c128_state, cia2_pb_w))
MCFG_MOS6526_PC_CALLBACK(DEVWRITELINE(PET_USER_PORT_TAG, pet_user_port_device, write_8))
MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, "c1530", DEVWRITELINE(MOS6526_2_TAG, mos6526_device, flag_w))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, NULL)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, nullptr)
MCFG_VCS_CONTROL_PORT_TRIGGER_CALLBACK(DEVWRITELINE(MOS8564_TAG, mos8564_device, lp_w))
MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, "joy")
- MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_14_31818MHz*2/3.5/8, c64_expansion_cards, NULL)
+ MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_14_31818MHz*2/3.5/8, c64_expansion_cards, nullptr)
MCFG_C64_EXPANSION_SLOT_IRQ_CALLBACK(WRITELINE(c128_state, exp_irq_w))
MCFG_C64_EXPANSION_SLOT_NMI_CALLBACK(WRITELINE(c128_state, exp_nmi_w))
MCFG_C64_EXPANSION_SLOT_RESET_CALLBACK(WRITELINE(c128_state, exp_reset_w))
@@ -1534,7 +1534,7 @@ static MACHINE_CONFIG_START( ntsc, c128_state )
MCFG_C64_EXPANSION_SLOT_CD_OUTPUT_CALLBACK(WRITE8(c128_state, exp_dma_cd_w))
MCFG_C64_EXPANSION_SLOT_DMA_CALLBACK(WRITELINE(c128_state, exp_dma_w))
- MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, NULL)
+ MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, nullptr)
MCFG_PET_USER_PORT_3_HANDLER(WRITELINE(c128_state, exp_reset_w))
MCFG_PET_USER_PORT_4_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, cnt_w))
MCFG_PET_USER_PORT_5_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, sp_w))
@@ -1607,7 +1607,7 @@ MACHINE_CONFIG_END
//-------------------------------------------------
static MACHINE_CONFIG_DERIVED( c128d81, ntsc )
- MCFG_CBM_IEC_ADD(NULL)
+ MCFG_CBM_IEC_ADD(nullptr)
MCFG_CBM_IEC_BUS_SRQ_CALLBACK(WRITELINE(c128_state, iec_srq_w))
MCFG_CBM_IEC_BUS_DATA_CALLBACK(WRITELINE(c128_state, iec_data_w))
@@ -1696,10 +1696,10 @@ static MACHINE_CONFIG_START( pal, c128_state )
MCFG_MOS6526_PB_OUTPUT_CALLBACK(WRITE8(c128_state, cia2_pb_w))
MCFG_MOS6526_PC_CALLBACK(DEVWRITELINE(PET_USER_PORT_TAG, pet_user_port_device, write_8))
MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, "c1530", DEVWRITELINE(MOS6526_2_TAG, mos6526_device, flag_w))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, NULL)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, nullptr)
MCFG_VCS_CONTROL_PORT_TRIGGER_CALLBACK(DEVWRITELINE(MOS8566_TAG, mos8566_device, lp_w))
MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, "joy")
- MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_17_734472MHz*2/4.5/8, c64_expansion_cards, NULL)
+ MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_17_734472MHz*2/4.5/8, c64_expansion_cards, nullptr)
MCFG_C64_EXPANSION_SLOT_IRQ_CALLBACK(WRITELINE(c128_state, exp_irq_w))
MCFG_C64_EXPANSION_SLOT_NMI_CALLBACK(WRITELINE(c128_state, exp_nmi_w))
MCFG_C64_EXPANSION_SLOT_RESET_CALLBACK(WRITELINE(c128_state, exp_reset_w))
@@ -1707,7 +1707,7 @@ static MACHINE_CONFIG_START( pal, c128_state )
MCFG_C64_EXPANSION_SLOT_CD_OUTPUT_CALLBACK(WRITE8(c128_state, exp_dma_cd_w))
MCFG_C64_EXPANSION_SLOT_DMA_CALLBACK(WRITELINE(c128_state, exp_dma_w))
- MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, NULL)
+ MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, nullptr)
MCFG_PET_USER_PORT_3_HANDLER(WRITELINE(c128_state, exp_reset_w))
MCFG_PET_USER_PORT_4_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, cnt_w))
MCFG_PET_USER_PORT_5_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, sp_w))
diff --git a/src/mame/drivers/c64.cpp b/src/mame/drivers/c64.cpp
index bdbfb0ef1dc..5df87c29896 100644
--- a/src/mame/drivers/c64.cpp
+++ b/src/mame/drivers/c64.cpp
@@ -1051,7 +1051,7 @@ SLOT_INTERFACE_END
void c64_state::machine_start()
{
// get pointers to ROMs
- if (memregion("basic") != NULL)
+ if (memregion("basic") != nullptr)
{
m_basic = memregion("basic")->base();
m_kernal = memregion("kernal")->base();
@@ -1171,10 +1171,10 @@ static MACHINE_CONFIG_START( ntsc, c64_state )
MCFG_CBM_IEC_ADD("c1541")
MCFG_CBM_IEC_BUS_SRQ_CALLBACK(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, flag_w))
MCFG_CBM_IEC_BUS_ATN_CALLBACK(DEVWRITELINE(PET_USER_PORT_TAG, pet_user_port_device, write_9))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, NULL)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, nullptr)
MCFG_VCS_CONTROL_PORT_TRIGGER_CALLBACK(DEVWRITELINE(MOS6567_TAG, mos6567_device, lp_w))
MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, "joy")
- MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_14_31818MHz/14, c64_expansion_cards, NULL)
+ MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_14_31818MHz/14, c64_expansion_cards, nullptr)
MCFG_C64_EXPANSION_SLOT_IRQ_CALLBACK(WRITELINE(c64_state, exp_irq_w))
MCFG_C64_EXPANSION_SLOT_NMI_CALLBACK(WRITELINE(c64_state, exp_nmi_w))
MCFG_C64_EXPANSION_SLOT_RESET_CALLBACK(WRITELINE(c64_state, exp_reset_w))
@@ -1182,7 +1182,7 @@ static MACHINE_CONFIG_START( ntsc, c64_state )
MCFG_C64_EXPANSION_SLOT_CD_OUTPUT_CALLBACK(WRITE8(c64_state, write))
MCFG_C64_EXPANSION_SLOT_DMA_CALLBACK(WRITELINE(c64_state, exp_dma_w))
- MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, NULL)
+ MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, nullptr)
MCFG_PET_USER_PORT_3_HANDLER(WRITELINE(c64_state, exp_reset_w))
MCFG_PET_USER_PORT_4_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, cnt_w))
MCFG_PET_USER_PORT_5_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, sp_w))
@@ -1328,10 +1328,10 @@ static MACHINE_CONFIG_START( pal, c64_state )
MCFG_CBM_IEC_ADD("c1541")
MCFG_CBM_IEC_BUS_SRQ_CALLBACK(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, flag_w))
MCFG_CBM_IEC_BUS_ATN_CALLBACK(DEVWRITELINE(PET_USER_PORT_TAG, pet_user_port_device, write_9))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, NULL)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, nullptr)
MCFG_VCS_CONTROL_PORT_TRIGGER_CALLBACK(DEVWRITELINE(MOS6569_TAG, mos6569_device, lp_w))
MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, "joy")
- MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_17_734472MHz/18, c64_expansion_cards, NULL)
+ MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_17_734472MHz/18, c64_expansion_cards, nullptr)
MCFG_C64_EXPANSION_SLOT_IRQ_CALLBACK(WRITELINE(c64_state, exp_irq_w))
MCFG_C64_EXPANSION_SLOT_NMI_CALLBACK(WRITELINE(c64_state, exp_nmi_w))
MCFG_C64_EXPANSION_SLOT_RESET_CALLBACK(WRITELINE(c64_state, exp_reset_w))
@@ -1339,7 +1339,7 @@ static MACHINE_CONFIG_START( pal, c64_state )
MCFG_C64_EXPANSION_SLOT_CD_OUTPUT_CALLBACK(WRITE8(c64_state, write))
MCFG_C64_EXPANSION_SLOT_DMA_CALLBACK(WRITELINE(c64_state, exp_dma_w))
- MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, NULL)
+ MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, nullptr)
MCFG_PET_USER_PORT_3_HANDLER(WRITELINE(c64_state, exp_reset_w))
MCFG_PET_USER_PORT_4_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, cnt_w))
MCFG_PET_USER_PORT_5_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, sp_w))
@@ -1459,13 +1459,13 @@ static MACHINE_CONFIG_START( pal_gs, c64gs_state )
MCFG_MOS6526_PB_INPUT_CALLBACK(READ8(c64_state, cia2_pb_r))
MCFG_MOS6526_PB_OUTPUT_CALLBACK(WRITE8(c64_state, cia2_pb_w))
MCFG_MOS6526_PC_CALLBACK(DEVWRITELINE(PET_USER_PORT_TAG, pet_user_port_device, write_8))
- MCFG_CBM_IEC_ADD(NULL)
+ MCFG_CBM_IEC_ADD(nullptr)
MCFG_CBM_IEC_BUS_SRQ_CALLBACK(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, flag_w))
MCFG_CBM_IEC_BUS_ATN_CALLBACK(DEVWRITELINE(PET_USER_PORT_TAG, pet_user_port_device, write_9))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, NULL)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, nullptr)
MCFG_VCS_CONTROL_PORT_TRIGGER_CALLBACK(DEVWRITELINE(MOS6569_TAG, mos6569_device, lp_w))
MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, "joy")
- MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_17_734472MHz/18, c64_expansion_cards, NULL)
+ MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, XTAL_17_734472MHz/18, c64_expansion_cards, nullptr)
MCFG_C64_EXPANSION_SLOT_IRQ_CALLBACK(WRITELINE(c64_state, exp_irq_w))
MCFG_C64_EXPANSION_SLOT_NMI_CALLBACK(WRITELINE(c64_state, exp_nmi_w))
MCFG_C64_EXPANSION_SLOT_RESET_CALLBACK(WRITELINE(c64_state, exp_reset_w))
@@ -1473,7 +1473,7 @@ static MACHINE_CONFIG_START( pal_gs, c64gs_state )
MCFG_C64_EXPANSION_SLOT_CD_OUTPUT_CALLBACK(WRITE8(c64_state, write))
MCFG_C64_EXPANSION_SLOT_DMA_CALLBACK(WRITELINE(c64_state, exp_dma_w))
- MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, NULL)
+ MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, c64_user_port_cards, nullptr)
MCFG_PET_USER_PORT_3_HANDLER(WRITELINE(c64_state, exp_reset_w))
MCFG_PET_USER_PORT_4_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, cnt_w))
MCFG_PET_USER_PORT_5_HANDLER(DEVWRITELINE(MOS6526_1_TAG, mos6526_device, sp_w))
diff --git a/src/mame/drivers/calchase.cpp b/src/mame/drivers/calchase.cpp
index f7ac71d950c..d9908799d25 100644
--- a/src/mame/drivers/calchase.cpp
+++ b/src/mame/drivers/calchase.cpp
@@ -660,12 +660,12 @@ static MACHINE_CONFIG_START( calchase, calchase_state )
MCFG_FRAGMENT_ADD( pcat_common )
- MCFG_IDE_CONTROLLER_32_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_IDE_CONTROLLER_32_ADD("ide", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_2", pic8259_device, ir6_w))
MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0)
- MCFG_PCI_BUS_LEGACY_DEVICE(0, NULL, intel82439tx_pci_r, intel82439tx_pci_w)
- MCFG_PCI_BUS_LEGACY_DEVICE(7, NULL, intel82371ab_pci_r, intel82371ab_pci_w)
+ MCFG_PCI_BUS_LEGACY_DEVICE(0, nullptr, intel82439tx_pci_r, intel82439tx_pci_w)
+ MCFG_PCI_BUS_LEGACY_DEVICE(7, nullptr, intel82371ab_pci_r, intel82371ab_pci_w)
/* video hardware */
MCFG_FRAGMENT_ADD( pcvideo_trident_vga )
@@ -691,12 +691,12 @@ static MACHINE_CONFIG_START( hostinv, calchase_state )
MCFG_FRAGMENT_ADD( pcat_common )
- MCFG_IDE_CONTROLLER_32_ADD("ide", ata_devices, "cdrom", NULL, true)
+ MCFG_IDE_CONTROLLER_32_ADD("ide", ata_devices, "cdrom", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_2", pic8259_device, ir6_w))
MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0)
- MCFG_PCI_BUS_LEGACY_DEVICE(0, NULL, intel82439tx_pci_r, intel82439tx_pci_w)
- MCFG_PCI_BUS_LEGACY_DEVICE(7, NULL, intel82371ab_pci_r, intel82371ab_pci_w)
+ MCFG_PCI_BUS_LEGACY_DEVICE(0, nullptr, intel82439tx_pci_r, intel82439tx_pci_w)
+ MCFG_PCI_BUS_LEGACY_DEVICE(7, nullptr, intel82371ab_pci_r, intel82371ab_pci_w)
/* video hardware */
MCFG_FRAGMENT_ADD( pcvideo_trident_vga )
diff --git a/src/mame/drivers/camplynx.cpp b/src/mame/drivers/camplynx.cpp
index aa8d605a2b2..96cc919dfb9 100644
--- a/src/mame/drivers/camplynx.cpp
+++ b/src/mame/drivers/camplynx.cpp
@@ -760,7 +760,7 @@ d7 = 125ns or 250ns */
port7f_w(space, 0, m_bankdata);
}
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if ((data & 3) == 0) floppy = m_floppy0->get_device();
else
if ((data & 3) == 1) floppy = m_floppy1->get_device();
diff --git a/src/mame/drivers/casloopy.cpp b/src/mame/drivers/casloopy.cpp
index 6895ad0c2fc..255c4b7fcd4 100644
--- a/src/mame/drivers/casloopy.cpp
+++ b/src/mame/drivers/casloopy.cpp
@@ -230,7 +230,7 @@ void casloopy_state::video_start()
m_bitmap_vram = auto_alloc_array_clear(machine(), UINT8, 0x20000);
for (m_gfx_index = 0; m_gfx_index < MAX_GFX_ELEMENTS; m_gfx_index++)
- if (m_gfxdecode->gfx(m_gfx_index) == 0)
+ if (m_gfxdecode->gfx(m_gfx_index) == nullptr)
break;
for(int i=0;i<0x10000;i++)
diff --git a/src/mame/drivers/cbm2.cpp b/src/mame/drivers/cbm2.cpp
index fbefb7b7c29..4fe040e64f2 100644
--- a/src/mame/drivers/cbm2.cpp
+++ b/src/mame/drivers/cbm2.cpp
@@ -2073,17 +2073,17 @@ static MACHINE_CONFIG_START( p500_ntsc, p500_state )
MCFG_DS75161A_OUT_SRQ_CB(DEVWRITELINE(IEEE488_TAG, ieee488_device, srq_w))
MCFG_CBM_IEEE488_ADD("c8050")
MCFG_IEEE488_SRQ_CALLBACK(DEVWRITELINE(MOS6525_1_TAG, tpi6525_device, i1_w))
- MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, NULL, DEVWRITELINE(MOS6526_TAG, mos6526_device, flag_w))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, NULL)
+ MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, nullptr, DEVWRITELINE(MOS6526_TAG, mos6526_device, flag_w))
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, nullptr)
MCFG_VCS_CONTROL_PORT_TRIGGER_CALLBACK(DEVWRITELINE(MOS6567_TAG, mos6567_device, lp_w))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, NULL)
- MCFG_CBM2_EXPANSION_SLOT_ADD(CBM2_EXPANSION_SLOT_TAG, XTAL_14_31818MHz/14, cbm2_expansion_cards, NULL)
- MCFG_CBM2_USER_PORT_ADD(CBM2_USER_PORT_TAG, cbm2_user_port_cards, NULL)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, nullptr)
+ MCFG_CBM2_EXPANSION_SLOT_ADD(CBM2_EXPANSION_SLOT_TAG, XTAL_14_31818MHz/14, cbm2_expansion_cards, nullptr)
+ MCFG_CBM2_USER_PORT_ADD(CBM2_USER_PORT_TAG, cbm2_user_port_cards, nullptr)
MCFG_CBM2_USER_PORT_IRQ_CALLBACK(WRITELINE(p500_state, user_irq_w))
MCFG_CBM2_USER_PORT_SP_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, sp_w))
MCFG_CBM2_USER_PORT_CNT_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, cnt_w))
MCFG_CBM2_USER_PORT_FLAG_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, flag_w))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(MOS6551A_TAG, mos6551_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(MOS6551A_TAG, mos6551_device, write_dcd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(MOS6551A_TAG, mos6551_device, write_dsr))
@@ -2186,17 +2186,17 @@ static MACHINE_CONFIG_START( p500_pal, p500_state )
MCFG_DS75161A_OUT_SRQ_CB(DEVWRITELINE(IEEE488_TAG, ieee488_device, srq_w))
MCFG_CBM_IEEE488_ADD("c8050")
MCFG_IEEE488_SRQ_CALLBACK(DEVWRITELINE(MOS6525_1_TAG, tpi6525_device, i1_w))
- MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, NULL, DEVWRITELINE(MOS6526_TAG, mos6526_device, flag_w))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, NULL)
+ MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, nullptr, DEVWRITELINE(MOS6526_TAG, mos6526_device, flag_w))
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, nullptr)
MCFG_VCS_CONTROL_PORT_TRIGGER_CALLBACK(DEVWRITELINE(MOS6569_TAG, mos6569_device, lp_w))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, NULL)
- MCFG_CBM2_EXPANSION_SLOT_ADD(CBM2_EXPANSION_SLOT_TAG, XTAL_17_734472MHz/18, cbm2_expansion_cards, NULL)
- MCFG_CBM2_USER_PORT_ADD(CBM2_USER_PORT_TAG, cbm2_user_port_cards, NULL)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, nullptr)
+ MCFG_CBM2_EXPANSION_SLOT_ADD(CBM2_EXPANSION_SLOT_TAG, XTAL_17_734472MHz/18, cbm2_expansion_cards, nullptr)
+ MCFG_CBM2_USER_PORT_ADD(CBM2_USER_PORT_TAG, cbm2_user_port_cards, nullptr)
MCFG_CBM2_USER_PORT_IRQ_CALLBACK(WRITELINE(p500_state, user_irq_w))
MCFG_CBM2_USER_PORT_SP_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, sp_w))
MCFG_CBM2_USER_PORT_CNT_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, cnt_w))
MCFG_CBM2_USER_PORT_FLAG_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, flag_w))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(MOS6551A_TAG, mos6551_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(MOS6551A_TAG, mos6551_device, write_dcd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(MOS6551A_TAG, mos6551_device, write_dsr))
@@ -2299,16 +2299,16 @@ static MACHINE_CONFIG_START( cbm2lp_ntsc, cbm2_state )
MCFG_DS75161A_OUT_SRQ_CB(DEVWRITELINE(IEEE488_TAG, ieee488_device, srq_w))
MCFG_CBM_IEEE488_ADD("c8050")
MCFG_IEEE488_SRQ_CALLBACK(DEVWRITELINE(MOS6525_1_TAG, tpi6525_device, i1_w))
- MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, NULL,DEVWRITELINE(MOS6526_TAG, mos6526_device, flag_w))
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, NULL)
- MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, NULL)
- MCFG_CBM2_EXPANSION_SLOT_ADD(CBM2_EXPANSION_SLOT_TAG, XTAL_18MHz/9, cbm2_expansion_cards, NULL)
- MCFG_CBM2_USER_PORT_ADD(CBM2_USER_PORT_TAG, cbm2_user_port_cards, NULL)
+ MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, nullptr,DEVWRITELINE(MOS6526_TAG, mos6526_device, flag_w))
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, nullptr)
+ MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, nullptr)
+ MCFG_CBM2_EXPANSION_SLOT_ADD(CBM2_EXPANSION_SLOT_TAG, XTAL_18MHz/9, cbm2_expansion_cards, nullptr)
+ MCFG_CBM2_USER_PORT_ADD(CBM2_USER_PORT_TAG, cbm2_user_port_cards, nullptr)
MCFG_CBM2_USER_PORT_IRQ_CALLBACK(WRITELINE(cbm2_state, user_irq_w))
MCFG_CBM2_USER_PORT_SP_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, sp_w))
MCFG_CBM2_USER_PORT_CNT_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, cnt_w))
MCFG_CBM2_USER_PORT_FLAG_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, flag_w))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(MOS6551A_TAG, mos6551_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(MOS6551A_TAG, mos6551_device, write_dcd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(MOS6551A_TAG, mos6551_device, write_dsr))
diff --git a/src/mame/drivers/cchasm.cpp b/src/mame/drivers/cchasm.cpp
index 4f75476305f..78a34741514 100644
--- a/src/mame/drivers/cchasm.cpp
+++ b/src/mame/drivers/cchasm.cpp
@@ -130,7 +130,7 @@ INPUT_PORTS_END
static const z80_daisy_config daisy_chain[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/ccs2810.cpp b/src/mame/drivers/ccs2810.cpp
index 5a38e72d9d6..54be00bab5b 100644
--- a/src/mame/drivers/ccs2810.cpp
+++ b/src/mame/drivers/ccs2810.cpp
@@ -252,7 +252,7 @@ WRITE8_MEMBER( ccs_state::port34_w )
m_dsize = BIT(data, 4);
m_dden = BIT(data, 6);
- m_floppy = NULL;
+ m_floppy = nullptr;
if (BIT(data, 0)) m_floppy = m_floppy0->get_device();
m_fdc->set_floppy(m_floppy);
m_fdc->dden_w(!m_dden);
diff --git a/src/mame/drivers/cgenie.cpp b/src/mame/drivers/cgenie.cpp
index fbc52ffdd65..5c541d6155b 100644
--- a/src/mame/drivers/cgenie.cpp
+++ b/src/mame/drivers/cgenie.cpp
@@ -43,7 +43,7 @@ public:
m_color_ram(*this, "colorram"),
m_font_ram(*this, "fontram"),
m_keyboard(*this, "KEY"),
- m_palette(NULL),
+ m_palette(nullptr),
m_control(0xff),
m_rs232_rx(1),
m_rs232_dcd(1)
@@ -464,7 +464,7 @@ static MACHINE_CONFIG_START( cgenie, cgenie_state )
MCFG_SOFTWARE_LIST_ADD("cass_list", "cgenie_cass")
// serial port
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(WRITELINE(cgenie_state, rs232_rx_w))
MCFG_RS232_DCD_HANDLER(WRITELINE(cgenie_state, rs232_dcd_w))
diff --git a/src/mame/drivers/channelf.cpp b/src/mame/drivers/channelf.cpp
index 722101a981b..e38e938b2ff 100644
--- a/src/mame/drivers/channelf.cpp
+++ b/src/mame/drivers/channelf.cpp
@@ -198,7 +198,7 @@ SLOT_INTERFACE_END
static MACHINE_CONFIG_FRAGMENT( channelf_cart )
/* cartridge */
- MCFG_CHANNELF_CARTRIDGE_ADD("cartslot", cf_cart, NULL)
+ MCFG_CHANNELF_CARTRIDGE_ADD("cartslot", cf_cart, nullptr)
/* Software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","channelf")
diff --git a/src/mame/drivers/chihiro.cpp b/src/mame/drivers/chihiro.cpp
index 4c89e9e0972..091b1093217 100644
--- a/src/mame/drivers/chihiro.cpp
+++ b/src/mame/drivers/chihiro.cpp
@@ -388,7 +388,7 @@ public:
xbox_base_state(mconfig, type, tag),
usbhack_index(-1),
usbhack_counter(0),
- dimm_board_memory(NULL),
+ dimm_board_memory(nullptr),
dimm_board_memory_size(0) { }
DECLARE_READ32_MEMBER(mediaboard_r);
@@ -703,7 +703,7 @@ int ide_baseboard_device::read_sector(UINT32 lba, void *buffer)
}
// in a type 1 chihiro this gets data from the dimm board memory
data = chihirosystem->baseboard_ide_dimmboard(lba);
- if (data != NULL)
+ if (data != nullptr)
memcpy(buffer, data, 512);
return 1;
}
@@ -795,9 +795,9 @@ void chihiro_state::baseboard_ide_event(int type, UINT8 *read_buffer, UINT8 *wri
UINT8 *chihiro_state::baseboard_ide_dimmboard(UINT32 lba)
{
// return pointer to memory containing decrypted gdrom data (contains an image of a fatx partition)
- if (chihiro_devs.dimmboard != NULL)
+ if (chihiro_devs.dimmboard != nullptr)
return dimm_board_memory + lba * 512;
- return NULL;
+ return nullptr;
}
READ32_MEMBER(chihiro_state::mediaboard_r)
@@ -846,7 +846,7 @@ void chihiro_state::machine_start()
xbox_base_state::machine_start();
chihiro_devs.ide = machine().device<bus_master_ide_controller_device>("ide");
chihiro_devs.dimmboard = machine().device<naomi_gdrom_board>("rom_board");
- if (chihiro_devs.dimmboard != NULL) {
+ if (chihiro_devs.dimmboard != nullptr) {
dimm_board_memory = chihiro_devs.dimmboard->memory(dimm_board_memory_size);
}
if (machine().debug_flags & DEBUG_FLAG_ENABLED)
@@ -873,13 +873,13 @@ static MACHINE_CONFIG_DERIVED_CLASS(chihiro_base, xbox_base, chihiro_state)
//MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide", ide_baseboard, NULL, "bb", true)
MCFG_DEVICE_MODIFY("ide:0")
- MCFG_DEVICE_SLOT_INTERFACE(ide_baseboard, NULL, true)
+ MCFG_DEVICE_SLOT_INTERFACE(ide_baseboard, nullptr, true)
MCFG_DEVICE_MODIFY("ide:1")
MCFG_DEVICE_SLOT_INTERFACE(ide_baseboard, "bb", true)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED(chihirogd, chihiro_base)
- MCFG_NAOMI_GDROM_BOARD_ADD("rom_board", ":gdrom", ":pic", NULL, NOOP)
+ MCFG_NAOMI_GDROM_BOARD_ADD("rom_board", ":gdrom", ":pic", nullptr, NOOP)
MACHINE_CONFIG_END
#define ROM_LOAD16_WORD_SWAP_BIOS(bios,name,offset,length,hash) \
diff --git a/src/mame/drivers/clcd.cpp b/src/mame/drivers/clcd.cpp
index ed56c2e82ea..e0726b4230f 100644
--- a/src/mame/drivers/clcd.cpp
+++ b/src/mame/drivers/clcd.cpp
@@ -763,13 +763,13 @@ static MACHINE_CONFIG_START(clcd, clcd_state)
MCFG_MOS6551_RTS_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_rts))
MCFG_MOS6551_DTR_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_dtr))
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("acia", mos6551_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("acia", mos6551_device, write_dcd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("acia", mos6551_device, write_dsr))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("via1", via6522_device, write_pb4))
- MCFG_CENTRONICS_ADD("centronics", centronics_devices, NULL)
+ MCFG_CENTRONICS_ADD("centronics", centronics_devices, nullptr)
MCFG_CENTRONICS_BUSY_HANDLER(DEVWRITELINE("via1", via6522_device, write_pb6)) MCFG_DEVCB_XOR(1)
MCFG_DEVICE_ADD("bank1", ADDRESS_MAP_BANK, 0)
diff --git a/src/mame/drivers/cninja.cpp b/src/mame/drivers/cninja.cpp
index 5e0e6c64183..aaab83afadc 100644
--- a/src/mame/drivers/cninja.cpp
+++ b/src/mame/drivers/cninja.cpp
@@ -1609,7 +1609,7 @@ ROM_START( cninjabl )
// split larger bootleg GFX roms into required regions
ROM_REGION( 0x020000, "gfx1", ROMREGION_INVERT ) // chars
- ROM_COPY( "gfxtemp", 0x000000, 0x000000, 0x020000 )
+ ROM_COPY( "gfxtemp", nullptr, 0x000000, 0x020000 )
ROM_REGION( 0x080000, "gfx2", ROMREGION_INVERT ) // tiles 3
ROM_COPY( "gfxtemp", 0x080000, 0x000000, 0x080000 )
diff --git a/src/mame/drivers/cobra.cpp b/src/mame/drivers/cobra.cpp
index b53e655ec6c..3f591830ad2 100644
--- a/src/mame/drivers/cobra.cpp
+++ b/src/mame/drivers/cobra.cpp
@@ -595,7 +595,7 @@ void cobra_jvs_host::write(UINT8 data, const UINT8 *&rec_data, UINT32 &rec_size)
m_send_ptr = 0;
}
- rec_data = NULL;
+ rec_data = nullptr;
rec_size = 0;
}
@@ -1071,7 +1071,7 @@ void cobra_fifo::push(const device_t *cpu, UINT64 data)
if (m_verbose)
{
char accessor_location[50];
- if (cpu != NULL)
+ if (cpu != nullptr)
{
// cpu has a name and a PC
sprintf(accessor_location, "(%s) %08X", cpu->tag(), const_cast<device_t *>(cpu)->safe_pc());
@@ -1091,7 +1091,7 @@ void cobra_fifo::push(const device_t *cpu, UINT64 data)
{
int i, j;
char accessor_location[50];
- if (cpu != NULL)
+ if (cpu != nullptr)
{
// cpu has a name and a PC
sprintf(accessor_location, "(%s) %08X", cpu->tag(), const_cast<device_t *>(cpu)->safe_pc());
@@ -1148,7 +1148,7 @@ bool cobra_fifo::pop(const device_t *cpu, UINT64 *result)
if (m_verbose)
{
char accessor_location[50];
- if (cpu != NULL)
+ if (cpu != nullptr)
{
// cpu has a name and a PC
sprintf(accessor_location, "(%s) %08X", cpu->tag(), const_cast<device_t *>(cpu)->safe_pc());
@@ -1169,7 +1169,7 @@ bool cobra_fifo::pop(const device_t *cpu, UINT64 *result)
if (m_verbose)
{
char accessor_location[50];
- if (cpu != NULL)
+ if (cpu != nullptr)
{
// cpu has a name and a PC
sprintf(accessor_location, "(%s) %08X", cpu->tag(), const_cast<device_t *>(cpu)->safe_pc());
@@ -2199,8 +2199,8 @@ void cobra_renderer::gfx_fifo_exec()
if (cobra->m_gfx_re_status == RE_STATUS_IDLE)
{
- fifo_in->pop(NULL, &in1);
- fifo_in->pop(NULL, &in2);
+ fifo_in->pop(nullptr, &in1);
+ fifo_in->pop(nullptr, &in2);
w1 = (UINT32)(in1);
w2 = (UINT32)(in2);
@@ -2233,12 +2233,12 @@ void cobra_renderer::gfx_fifo_exec()
return;
}
- fifo_in->pop(NULL, &param[0]);
- fifo_in->pop(NULL, &param[1]);
- fifo_in->pop(NULL, &param[2]);
- fifo_in->pop(NULL, &param[3]);
- fifo_in->pop(NULL, &param[4]);
- fifo_in->pop(NULL, &param[5]);
+ fifo_in->pop(nullptr, &param[0]);
+ fifo_in->pop(nullptr, &param[1]);
+ fifo_in->pop(nullptr, &param[2]);
+ fifo_in->pop(nullptr, &param[3]);
+ fifo_in->pop(nullptr, &param[4]);
+ fifo_in->pop(nullptr, &param[5]);
w[0] = (UINT32)param[0]; w[1] = (UINT32)param[1]; w[2] = (UINT32)param[2];
w[3] = (UINT32)param[3]; w[4] = (UINT32)param[4]; w[5] = (UINT32)param[5];
@@ -2294,19 +2294,19 @@ void cobra_renderer::gfx_fifo_exec()
//printf("gfxfifo_exec: unhandled %08X %08X\n", w1, w2);
- fifo_in->pop(NULL, &in3);
- fifo_in->pop(NULL, &in4);
- fifo_in->pop(NULL, &ignore);
- fifo_in->pop(NULL, &ignore);
- fifo_in->pop(NULL, &ignore);
- fifo_in->pop(NULL, &ignore);
+ fifo_in->pop(nullptr, &in3);
+ fifo_in->pop(nullptr, &in4);
+ fifo_in->pop(nullptr, &ignore);
+ fifo_in->pop(nullptr, &ignore);
+ fifo_in->pop(nullptr, &ignore);
+ fifo_in->pop(nullptr, &ignore);
if (w1 == 0x0f600000 && w2 == 0x10520c00)
{
- fifo_out->push(NULL, w1);
- fifo_out->push(NULL, w2);
- fifo_out->push(NULL, in3);
- fifo_out->push(NULL, in4);
+ fifo_out->push(nullptr, w1);
+ fifo_out->push(nullptr, w2);
+ fifo_out->push(nullptr, in3);
+ fifo_out->push(nullptr, in4);
}
cobra->m_gfx_re_status = RE_STATUS_IDLE;
@@ -2391,34 +2391,34 @@ void cobra_renderer::gfx_fifo_exec()
UINT64 in[4];
if (w2 & 0x40000000) // line flags
{
- fifo_in->pop(NULL, &in[0]);
+ fifo_in->pop(nullptr, &in[0]);
}
if (w2 & 0x20000000) // unknown float (0.0f ... 1.0f)
{
- fifo_in->pop(NULL, &in[1]);
+ fifo_in->pop(nullptr, &in[1]);
}
- fifo_in->pop(NULL, &x); // X coord
- fifo_in->pop(NULL, &y); // Y coord
- fifo_in->pop(NULL, &in[2]); // coord?
- fifo_in->pop(NULL, &z); // Z coord
+ fifo_in->pop(nullptr, &x); // X coord
+ fifo_in->pop(nullptr, &y); // Y coord
+ fifo_in->pop(nullptr, &in[2]); // coord?
+ fifo_in->pop(nullptr, &z); // Z coord
if (w2 & 0x00200000) // texture coords
{
- fifo_in->pop(NULL, &w); // W coord (1 / Z)
- fifo_in->pop(NULL, &vert[i].p[POLY_U]); // U/Z coord
- fifo_in->pop(NULL, &vert[i].p[POLY_V]); // V/Z coord
+ fifo_in->pop(nullptr, &w); // W coord (1 / Z)
+ fifo_in->pop(nullptr, &vert[i].p[POLY_U]); // U/Z coord
+ fifo_in->pop(nullptr, &vert[i].p[POLY_V]); // V/Z coord
}
- fifo_in->pop(NULL, &a); // Gouraud Color Alpha
- fifo_in->pop(NULL, &r); // Gouraud Color R
- fifo_in->pop(NULL, &g); // Gouraud Color G
- fifo_in->pop(NULL, &b); // Gouraud Color B
+ fifo_in->pop(nullptr, &a); // Gouraud Color Alpha
+ fifo_in->pop(nullptr, &r); // Gouraud Color R
+ fifo_in->pop(nullptr, &g); // Gouraud Color G
+ fifo_in->pop(nullptr, &b); // Gouraud Color B
if (w2 & 0x00000001) // unknown float (0.0f ... 1.0f)
{
- fifo_in->pop(NULL, &in[3]);
+ fifo_in->pop(nullptr, &in[3]);
}
vert[i].x = ((x / z) * vp_width) + vp_center_x;
@@ -2579,10 +2579,10 @@ void cobra_renderer::gfx_fifo_exec()
UINT64 param[4];
param[0] = param[1] = param[2] = param[3] = 0;
- fifo_in->pop(NULL, &param[0]);
- fifo_in->pop(NULL, &param[1]);
- fifo_in->pop(NULL, &param[2]);
- fifo_in->pop(NULL, &param[3]);
+ fifo_in->pop(nullptr, &param[0]);
+ fifo_in->pop(nullptr, &param[1]);
+ fifo_in->pop(nullptr, &param[2]);
+ fifo_in->pop(nullptr, &param[3]);
buffer[x+0] = (UINT32)(param[0]);
buffer[x+1] = (UINT32)(param[1]);
@@ -2625,10 +2625,10 @@ void cobra_renderer::gfx_fifo_exec()
// flush fifo_out so we have fresh data at top
fifo_out->flush();
- fifo_out->push(NULL, buffer[x+0]);
- fifo_out->push(NULL, buffer[x+1]);
- fifo_out->push(NULL, buffer[x+2]);
- fifo_out->push(NULL, buffer[x+3]);
+ fifo_out->push(nullptr, buffer[x+0]);
+ fifo_out->push(nullptr, buffer[x+1]);
+ fifo_out->push(nullptr, buffer[x+2]);
+ fifo_out->push(nullptr, buffer[x+3]);
cobra->m_gfx_re_status = RE_STATUS_IDLE;
break;
@@ -2728,7 +2728,7 @@ void cobra_renderer::gfx_fifo_exec()
for (i = 0; i < num; i++)
{
UINT64 value = 0;
- fifo_in->pop(NULL, &value);
+ fifo_in->pop(nullptr, &value);
gfx_write_gram(reg + (i*4), 0xffffffff, value);
}
@@ -2749,7 +2749,7 @@ void cobra_renderer::gfx_fifo_exec()
int reg = (w1 >> 8) & 0xfffff;
UINT32 ret = gfx_read_gram(reg);
- fifo_out->push(NULL, ret);
+ fifo_out->push(nullptr, ret);
// printf("GFX: reg read %08X\n", reg);
@@ -2776,7 +2776,7 @@ void cobra_renderer::gfx_fifo_exec()
{
UINT32 value = gfx_read_gram(reg + (i*4));
- fifo_out->push(NULL, value);
+ fifo_out->push(nullptr, value);
}
cobra->m_gfx_re_status = RE_STATUS_IDLE;
@@ -2804,7 +2804,7 @@ void cobra_renderer::gfx_fifo_exec()
for (int i=0; i < num_left; i++)
{
UINT64 param = 0;
- fifo_in->pop(NULL, &param);
+ fifo_in->pop(nullptr, &param);
cobra->m_gfx_re_word_count++;
m_texture_ram[m_texram_ptr] = (UINT32)(param);
@@ -2832,7 +2832,7 @@ void cobra_renderer::gfx_fifo_exec()
while (fifo_in->current_num() > 0)
{
UINT64 param;
- fifo_in->pop(NULL, &param);
+ fifo_in->pop(nullptr, &param);
if (c == 0)
printf(" ");
@@ -3208,9 +3208,9 @@ static MACHINE_CONFIG_START( cobra, cobra_state )
MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0)
- MCFG_PCI_BUS_LEGACY_DEVICE(0, NULL, mpc106_pci_r, mpc106_pci_w)
+ MCFG_PCI_BUS_LEGACY_DEVICE(0, nullptr, mpc106_pci_r, mpc106_pci_w)
- MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", NULL, true)
+ MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(cobra_state, ide_interrupt))
/* video hardware */
diff --git a/src/mame/drivers/coleco.cpp b/src/mame/drivers/coleco.cpp
index e9caa33fc6e..fc9c429680d 100644
--- a/src/mame/drivers/coleco.cpp
+++ b/src/mame/drivers/coleco.cpp
@@ -231,18 +231,18 @@ READ8_MEMBER( coleco_state::cart_r )
UINT8 coleco_state::coleco_scan_paddles(UINT8 *joy_status0, UINT8 *joy_status1)
{
- UINT8 ctrl_sel = (m_ctrlsel != NULL) ? m_ctrlsel->read() : 0;
+ UINT8 ctrl_sel = (m_ctrlsel != nullptr) ? m_ctrlsel->read() : 0;
/* which controller shall we read? */
if ((ctrl_sel & 0x07) == 0x02) // Super Action Controller P1
- *joy_status0 = (m_sac_slide1 != NULL) ? m_sac_slide1->read() : 0;
+ *joy_status0 = (m_sac_slide1 != nullptr) ? m_sac_slide1->read() : 0;
else if ((ctrl_sel & 0x07) == 0x03) // Driving Controller P1
- *joy_status0 = (m_driv_wheel1 != NULL) ? m_driv_wheel1->read() : 0;
+ *joy_status0 = (m_driv_wheel1 != nullptr) ? m_driv_wheel1->read() : 0;
if ((ctrl_sel & 0x70) == 0x20) // Super Action Controller P2
- *joy_status1 = (m_sac_slide2 != NULL) ? m_sac_slide2->read() : 0;
+ *joy_status1 = (m_sac_slide2 != nullptr) ? m_sac_slide2->read() : 0;
else if ((ctrl_sel & 0x70) == 0x30) // Driving Controller P2
- *joy_status1 = (m_driv_wheel2 != NULL) ? m_driv_wheel2->read() : 0;
+ *joy_status1 = (m_driv_wheel2 != nullptr) ? m_driv_wheel2->read() : 0;
/* In principle, even if not supported by any game, I guess we could have two Super
Action Controllers plugged into the Roller controller ports. Since I found no info
@@ -250,8 +250,8 @@ UINT8 coleco_state::coleco_scan_paddles(UINT8 *joy_status0, UINT8 *joy_status1)
the Roller trackball inputs and actually use the latter ones, when both are selected. */
if (ctrl_sel & 0x80) // Roller controller
{
- *joy_status0 = (m_roller_x != NULL) ? m_roller_x->read() : 0;
- *joy_status1 = (m_roller_y != NULL) ? m_roller_y->read() : 0;
+ *joy_status0 = (m_roller_x != nullptr) ? m_roller_x->read() : 0;
+ *joy_status1 = (m_roller_y != nullptr) ? m_roller_y->read() : 0;
}
return *joy_status0 | *joy_status1;
@@ -260,7 +260,7 @@ UINT8 coleco_state::coleco_scan_paddles(UINT8 *joy_status0, UINT8 *joy_status1)
UINT8 coleco_state::coleco_paddle_read(int port, int joy_mode, UINT8 joy_status)
{
- UINT8 ctrl_sel = (m_ctrlsel != NULL ) ? m_ctrlsel->read() : 0;
+ UINT8 ctrl_sel = (m_ctrlsel != nullptr ) ? m_ctrlsel->read() : 0;
UINT8 ctrl_extra = ctrl_sel & 0x80;
ctrl_sel = ctrl_sel >> (port*4) & 7;
@@ -388,7 +388,7 @@ static MACHINE_CONFIG_START( coleco, coleco_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
/* cartridge */
- MCFG_COLECOVISION_CARTRIDGE_SLOT_ADD(COLECOVISION_CARTRIDGE_SLOT_TAG, colecovision_cartridges, NULL)
+ MCFG_COLECOVISION_CARTRIDGE_SLOT_ADD(COLECOVISION_CARTRIDGE_SLOT_TAG, colecovision_cartridges, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","coleco")
diff --git a/src/mame/drivers/compis.cpp b/src/mame/drivers/compis.cpp
index cb0ff6d9ee8..5286bbe7707 100644
--- a/src/mame/drivers/compis.cpp
+++ b/src/mame/drivers/compis.cpp
@@ -600,7 +600,7 @@ void compis_state::machine_start()
{
if (m_ram->size() == 256*1024)
{
- m_maincpu->space(AS_PROGRAM).install_ram(0x20000, 0x3ffff, NULL);
+ m_maincpu->space(AS_PROGRAM).install_ram(0x20000, 0x3ffff, nullptr);
}
}
@@ -698,12 +698,12 @@ static MACHINE_CONFIG_START( compis, compis_state )
MCFG_TIMER_DRIVER_ADD_PERIODIC("tape", compis_state, tape_tick, attotime::from_hz(44100))
- MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(I8274_TAG, z80dart_device, rxa_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(I8274_TAG, z80dart_device, dcda_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(I8274_TAG, z80dart_device, ctsa_w))
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(I8274_TAG, z80dart_device, rxb_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(I8274_TAG, z80dart_device, dcdb_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(I8274_TAG, z80dart_device, ctsb_w))
@@ -717,7 +717,7 @@ static MACHINE_CONFIG_START( compis, compis_state )
MCFG_ISBX_SLOT_MINTR0_CALLBACK(DEVWRITELINE(I80130_TAG, i80130_device, ir1_w))
MCFG_ISBX_SLOT_MINTR1_CALLBACK(DEVWRITELINE(I80130_TAG, i80130_device, ir0_w))
MCFG_ISBX_SLOT_MDRQT_CALLBACK(DEVWRITELINE(I80186_TAG, i80186_cpu_device, drq0_w))
- MCFG_ISBX_SLOT_ADD(ISBX_1_TAG, 0, isbx_cards, NULL)
+ MCFG_ISBX_SLOT_ADD(ISBX_1_TAG, 0, isbx_cards, nullptr)
MCFG_ISBX_SLOT_MINTR0_CALLBACK(DEVWRITELINE(I80130_TAG, i80130_device, ir6_w))
MCFG_ISBX_SLOT_MINTR1_CALLBACK(DEVWRITELINE(I80130_TAG, i80130_device, ir5_w))
MCFG_ISBX_SLOT_MDRQT_CALLBACK(DEVWRITELINE(I80186_TAG, i80186_cpu_device, drq1_w))
diff --git a/src/mame/drivers/compucolor.cpp b/src/mame/drivers/compucolor.cpp
index 4de6390e1b9..c5b2df216b4 100644
--- a/src/mame/drivers/compucolor.cpp
+++ b/src/mame/drivers/compucolor.cpp
@@ -463,13 +463,13 @@ static MACHINE_CONFIG_START( compucolor2, compucolor2_state )
MCFG_TMS5501_XI_CALLBACK(READ8(compucolor2_state, xi_r))
MCFG_TMS5501_XO_CALLBACK(WRITE8(compucolor2_state, xo_w))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(TMS5501_TAG, tms5501_device, rcv_w))
MCFG_COMPUCOLOR_FLOPPY_PORT_ADD("cd0", compucolor_floppy_port_devices, "floppy")
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(TMS5501_TAG, tms5501_device, rcv_w))
- MCFG_COMPUCOLOR_FLOPPY_PORT_ADD("cd1", compucolor_floppy_port_devices, NULL)
+ MCFG_COMPUCOLOR_FLOPPY_PORT_ADD("cd1", compucolor_floppy_port_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(TMS5501_TAG, tms5501_device, rcv_w))
// internal ram
diff --git a/src/mame/drivers/concept.cpp b/src/mame/drivers/concept.cpp
index 947d4bfcfa7..5d10bf4e2f9 100644
--- a/src/mame/drivers/concept.cpp
+++ b/src/mame/drivers/concept.cpp
@@ -257,19 +257,19 @@ static MACHINE_CONFIG_START( concept, concept_state )
/* Apple II bus */
MCFG_DEVICE_ADD(A2BUS_TAG, A2BUS, 0)
MCFG_A2BUS_CPU("maincpu")
- MCFG_A2BUS_SLOT_ADD(A2BUS_TAG, "sl1", concept_a2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD(A2BUS_TAG, "sl2", concept_a2_cards, NULL)
- MCFG_A2BUS_SLOT_ADD(A2BUS_TAG, "sl3", concept_a2_cards, NULL)
+ MCFG_A2BUS_SLOT_ADD(A2BUS_TAG, "sl1", concept_a2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD(A2BUS_TAG, "sl2", concept_a2_cards, nullptr)
+ MCFG_A2BUS_SLOT_ADD(A2BUS_TAG, "sl3", concept_a2_cards, nullptr)
MCFG_A2BUS_SLOT_ADD(A2BUS_TAG, "sl4", concept_a2_cards, "fdc01")
/* 2x RS232 ports */
- MCFG_RS232_PORT_ADD("rs232a", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232a", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(ACIA_0_TAG, mos6551_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(ACIA_0_TAG, mos6551_device, write_dcd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(ACIA_0_TAG, mos6551_device, write_dsr))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(ACIA_0_TAG, mos6551_device, write_cts))
- MCFG_RS232_PORT_ADD("rs232b", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232b", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(ACIA_1_TAG, mos6551_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(ACIA_1_TAG, mos6551_device, write_dcd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(ACIA_1_TAG, mos6551_device, write_dsr))
diff --git a/src/mame/drivers/cosmic.cpp b/src/mame/drivers/cosmic.cpp
index 1eae0404888..58b92a19d39 100644
--- a/src/mame/drivers/cosmic.cpp
+++ b/src/mame/drivers/cosmic.cpp
@@ -899,7 +899,7 @@ static const char *const cosmica_sample_names[] =
"loudexp",
"smallexp",
"coin",
- 0 /* end of array */
+ nullptr /* end of array */
};
@@ -917,7 +917,7 @@ static const char *const panic_sample_names[] =
"extral",
"oxygen",
"coin",
- 0
+ nullptr
};
@@ -939,7 +939,7 @@ static const char *const cosmicg_sample_names[] =
"cg_gun", /* Gun Shot */
"cg_gotm", /* Got Monster */
"cg_ext", /* Coin Extend */
- 0
+ nullptr
};
diff --git a/src/mame/drivers/cps1.cpp b/src/mame/drivers/cps1.cpp
index a47323fad2f..e2614fcd1f5 100644
--- a/src/mame/drivers/cps1.cpp
+++ b/src/mame/drivers/cps1.cpp
@@ -3940,7 +3940,7 @@ ROM_START( strider )
ROMX_LOAD( "st-8.5a", 0x200006, 0x80000, CRC(6b4713b4) SHA1(759b8b1fc7a5c4b00d74a27c2dd11667db44b09e) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "3" socket
ROM_REGION( 0x8000, "stars", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 )
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 )
ROM_REGION( 0x18000, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "09.12b", 0x00000, 0x08000, CRC(2ed403bc) SHA1(4ce863ea40d789db5a7cfce91d2c7c720deb9be5) )
@@ -3982,7 +3982,7 @@ ROM_START( striderua )
ROMX_LOAD( "st-8.5a", 0x200006, 0x80000, CRC(6b4713b4) SHA1(759b8b1fc7a5c4b00d74a27c2dd11667db44b09e) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "3" socket
ROM_REGION( 0x8000, "stars", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 )
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 )
ROM_REGION( 0x18000, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "09.12b", 0x00000, 0x08000, CRC(08d63519) SHA1(c120ecfe25c3c50bc51bc7d5a9ef1c8ca6591240) ) /* different CRC from strider, pcb verified */
@@ -4051,7 +4051,7 @@ ROM_START( striderj )
ROMX_LOAD( "sth_22.11c", 0x300007, 0x20000, CRC(78dd9c48) SHA1(35fbf3ca21f56c9899283ba08c89c0faf7a8f717) , ROM_SKIP(7) ) // == st-8.5a
ROM_REGION( 0x8000, "stars", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 )
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 )
ROM_REGION( 0x18000, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "sth_23.13c", 0x00000, 0x08000, CRC(2ed403bc) SHA1(4ce863ea40d789db5a7cfce91d2c7c720deb9be5) ) // == 09.12b
@@ -4090,7 +4090,7 @@ ROM_START( striderjr )
ROMX_LOAD( "sth_08.10a", 0x200006, 0x80000, CRC(6b4713b4) SHA1(759b8b1fc7a5c4b00d74a27c2dd11667db44b09e) , ROM_GROUPWORD | ROM_SKIP(6) ) // == st-8.5a
ROM_REGION( 0x8000, "stars", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 )
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 )
ROM_REGION( 0x18000, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "sth_09.12a", 0x00000, 0x08000, CRC(08d63519) SHA1(c120ecfe25c3c50bc51bc7d5a9ef1c8ca6591240) )
@@ -10771,7 +10771,7 @@ ROM_START( slammast )
ROM_CONTINUE( 0x10000, 0x18000 )
ROM_REGION( 0x8000, "user1", 0 )
- ROM_COPY( "audiocpu", 0x00000, 0x00000, 0x8000 )
+ ROM_COPY( "audiocpu", nullptr, 0x00000, 0x8000 )
ROM_REGION( 0x400000, "qsound", 0 ) /* QSound samples */
ROM_LOAD( "mb-q1.1k", 0x000000, 0x80000, CRC(0630c3ce) SHA1(520fc74c5c3638f611fa2f1b5efb08b91747e29b) )
@@ -10834,7 +10834,7 @@ ROM_START( slammastu )
ROM_CONTINUE( 0x10000, 0x18000 )
ROM_REGION( 0x8000, "user1", 0 )
- ROM_COPY( "audiocpu", 0x00000, 0x00000, 0x8000 )
+ ROM_COPY( "audiocpu", nullptr, 0x00000, 0x8000 )
ROM_REGION( 0x400000, "qsound", 0 ) /* QSound samples */
ROM_LOAD( "mb-q1.1k", 0x000000, 0x80000, CRC(0630c3ce) SHA1(520fc74c5c3638f611fa2f1b5efb08b91747e29b) )
@@ -10894,7 +10894,7 @@ ROM_START( mbomberj )
ROM_CONTINUE( 0x10000, 0x18000 )
ROM_REGION( 0x8000, "user1", 0 )
- ROM_COPY( "audiocpu", 0x00000, 0x00000, 0x8000 )
+ ROM_COPY( "audiocpu", nullptr, 0x00000, 0x8000 )
ROM_REGION( 0x400000, "qsound", 0 ) /* QSound samples */
ROM_LOAD( "mb-q1.1k", 0x000000, 0x80000, CRC(0630c3ce) SHA1(520fc74c5c3638f611fa2f1b5efb08b91747e29b) )
@@ -11568,7 +11568,7 @@ ROM_START( sfach )
ROMX_LOAD( "sfz17", 0x600006, 0x80000, CRC(248b3b73) SHA1(95810a17b1caf6372b33ed3e4ee8a7e51482c70d) , ROM_GROUPWORD | ROM_SKIP(6) )
ROM_REGION( 0x8000, "stars", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 ) /* stars */
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 ) /* stars */
ROM_REGION( 0x18000, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "sfz09", 0x00000, 0x08000, CRC(c772628b) SHA1(ebc5b7c173caf1e151f733f23c1b20abec24e16d) )
@@ -11606,7 +11606,7 @@ ROM_START( sfzch )
ROMX_LOAD( "sfz_17.10c", 0x600006, 0x80000, CRC(248b3b73) SHA1(95810a17b1caf6372b33ed3e4ee8a7e51482c70d), ROM_GROUPWORD | ROM_SKIP(6) )
ROM_REGION( 0x8000, "stars", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 )
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 )
ROM_REGION( 0x18000, "audiocpu",0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "sfz_09.12a", 0x00000, 0x08000, CRC(c772628b) SHA1(ebc5b7c173caf1e151f733f23c1b20abec24e16d))
@@ -11644,7 +11644,7 @@ ROM_START( sfzbch )
ROMX_LOAD( "sfz_17.10c", 0x600006, 0x80000, CRC(248b3b73) SHA1(95810a17b1caf6372b33ed3e4ee8a7e51482c70d), ROM_GROUPWORD | ROM_SKIP(6) )
ROM_REGION( 0x8000, "stars", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 ) /* stars */
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 ) /* stars */
ROM_REGION( 0x18000, "audiocpu",0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "sfz_09.12a", 0x00000, 0x08000, CRC(c772628b) SHA1(ebc5b7c173caf1e151f733f23c1b20abec24e16d))
diff --git a/src/mame/drivers/cps2.cpp b/src/mame/drivers/cps2.cpp
index eb2b4239cac..3f3024d2741 100644
--- a/src/mame/drivers/cps2.cpp
+++ b/src/mame/drivers/cps2.cpp
@@ -742,7 +742,7 @@ WRITE16_MEMBER( cps_state::cps2_eeprom_port_w )
/* bit 7 - */
/* Z80 Reset */
- if (m_audiocpu != NULL)
+ if (m_audiocpu != nullptr)
m_audiocpu->set_input_line(INPUT_LINE_RESET, (data & 0x0008) ? CLEAR_LINE : ASSERT_LINE);
coin_counter_w(machine(), 0, data & 0x0001);
@@ -1209,7 +1209,7 @@ INPUT_PORTS_END
MACHINE_START_MEMBER(cps_state,cps2)
{
- if (m_audiocpu != NULL) // gigaman2 has an AT89C4051 (8051) MCU as an audio cpu, no qsound.
+ if (m_audiocpu != nullptr) // gigaman2 has an AT89C4051 (8051) MCU as an audio cpu, no qsound.
membank("bank1")->configure_entries(0, (QSOUND_SIZE - 0x10000) / 0x4000, memregion("audiocpu")->base() + 0x10000, 0x4000);
}
@@ -2108,7 +2108,7 @@ ROM_START( csclub )
ROM_LOAD16_WORD_SWAP( "csce.07a", 0x200000, 0x80000, CRC(003968fd) SHA1(95f59a29a404a1c1e86d5f43526a80aa97f25621) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "csc.73", 0x800000, 0x080000, CRC(335f07c3) SHA1(44e0385120e2c81fd1072e19b7e3ff05d42be226) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.74", 0xa00000, 0x080000, CRC(ab215357) SHA1(c2600b5ba62a570f8a32de9c06f93ea8ae6cd854) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.75", 0xc00000, 0x080000, CRC(a2367381) SHA1(49d562be42c10cdf4e55e3b76c388f0b0121a967) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -2152,7 +2152,7 @@ ROM_START( csclub1 )
ROM_LOAD16_WORD_SWAP( "csc.07", 0x200000, 0x80000, CRC(01b05caa) SHA1(5b84487da68e6b6f2889c76bf9e070e25941988c) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "csc.14m", 0x800000, 0x200000, CRC(e8904afa) SHA1(39713ffca4e3a754c7c44c0ef4d99fb5a77d8da7) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.16m", 0x800002, 0x200000, CRC(c98c8079) SHA1(22d68ba2ef62b51981bb3e99ec2cde8d1b36514b) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.18m", 0x800004, 0x200000, CRC(c030df5a) SHA1(6d5e5a05531e168d0d44c591f9185ae300908fc2) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -2178,7 +2178,7 @@ ROM_START( csclubj )
ROM_LOAD16_WORD_SWAP( "csc.07", 0x200000, 0x80000, CRC(01b05caa) SHA1(5b84487da68e6b6f2889c76bf9e070e25941988c) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "csc.14m", 0x800000, 0x200000, CRC(e8904afa) SHA1(39713ffca4e3a754c7c44c0ef4d99fb5a77d8da7) , ROM_GROUPWORD | ROM_SKIP(6) ) /* roms 73 to 76 joined in all eprom version */
ROMX_LOAD( "csc.16m", 0x800002, 0x200000, CRC(c98c8079) SHA1(22d68ba2ef62b51981bb3e99ec2cde8d1b36514b) , ROM_GROUPWORD | ROM_SKIP(6) ) /* roms 63 to 66 joined in all eprom version */
ROMX_LOAD( "csc.18m", 0x800004, 0x200000, CRC(c030df5a) SHA1(6d5e5a05531e168d0d44c591f9185ae300908fc2) , ROM_GROUPWORD | ROM_SKIP(6) ) /* roms 83 to 86 joined in all eprom version */
@@ -2204,7 +2204,7 @@ ROM_START( csclubjy ) // this is fairly redundant, same code as csclubj, same gf
ROM_LOAD16_WORD_SWAP( "csc.07", 0x200000, 0x80000, CRC(01b05caa) SHA1(5b84487da68e6b6f2889c76bf9e070e25941988c) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "csc.73", 0x800000, 0x080000, CRC(335f07c3) SHA1(44e0385120e2c81fd1072e19b7e3ff05d42be226) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.74", 0xa00000, 0x080000, CRC(ab215357) SHA1(c2600b5ba62a570f8a32de9c06f93ea8ae6cd854) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.75", 0xc00000, 0x080000, CRC(a2367381) SHA1(49d562be42c10cdf4e55e3b76c388f0b0121a967) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -2249,7 +2249,7 @@ ROM_START( cscluba )
ROM_LOAD16_WORD_SWAP( "csc.07", 0x200000, 0x80000, CRC(01b05caa) SHA1(5b84487da68e6b6f2889c76bf9e070e25941988c) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "csc.14m", 0x800000, 0x200000, CRC(e8904afa) SHA1(39713ffca4e3a754c7c44c0ef4d99fb5a77d8da7) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.16m", 0x800002, 0x200000, CRC(c98c8079) SHA1(22d68ba2ef62b51981bb3e99ec2cde8d1b36514b) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.18m", 0x800004, 0x200000, CRC(c030df5a) SHA1(6d5e5a05531e168d0d44c591f9185ae300908fc2) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -2275,7 +2275,7 @@ ROM_START( csclubh )
ROM_LOAD16_WORD_SWAP( "csc.07", 0x200000, 0x80000, CRC(01b05caa) SHA1(5b84487da68e6b6f2889c76bf9e070e25941988c) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "csc.14m", 0x800000, 0x200000, CRC(e8904afa) SHA1(39713ffca4e3a754c7c44c0ef4d99fb5a77d8da7) , ROM_GROUPWORD | ROM_SKIP(6) ) /* roms 73 to 76 joined in all eprom version */
ROMX_LOAD( "csc.16m", 0x800002, 0x200000, CRC(c98c8079) SHA1(22d68ba2ef62b51981bb3e99ec2cde8d1b36514b) , ROM_GROUPWORD | ROM_SKIP(6) ) /* roms 63 to 66 joined in all eprom version */
ROMX_LOAD( "csc.18m", 0x800004, 0x200000, CRC(c030df5a) SHA1(6d5e5a05531e168d0d44c591f9185ae300908fc2) , ROM_GROUPWORD | ROM_SKIP(6) ) /* roms 83 to 86 joined in all eprom version */
@@ -3874,7 +3874,7 @@ ROM_START( megaman2 )
ROM_LOAD16_WORD_SWAP( "rm2.05", 0x100000, 0x80000, CRC(02ee9efc) SHA1(1b80c40389b51a03b930051f232630616c12e6c5) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "rm2.14m", 0x800000, 0x200000, CRC(9b1f00b4) SHA1(c1c5c2d9d00121425ae6598444d704f420ef4eef) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.16m", 0x800002, 0x200000, CRC(c2bb0c24) SHA1(38724c49d9db49765a4ed9bc2dc8f57cec45ec7c) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.18m", 0x800004, 0x200000, CRC(12257251) SHA1(20cb58afda0e6200991277817485340a6a41ae2b) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -3899,7 +3899,7 @@ ROM_START( megaman2a )
ROM_LOAD16_WORD_SWAP( "rm2.05", 0x100000, 0x80000, CRC(02ee9efc) SHA1(1b80c40389b51a03b930051f232630616c12e6c5) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "rm2.14m", 0x800000, 0x200000, CRC(9b1f00b4) SHA1(c1c5c2d9d00121425ae6598444d704f420ef4eef) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.16m", 0x800002, 0x200000, CRC(c2bb0c24) SHA1(38724c49d9db49765a4ed9bc2dc8f57cec45ec7c) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.18m", 0x800004, 0x200000, CRC(12257251) SHA1(20cb58afda0e6200991277817485340a6a41ae2b) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -3924,7 +3924,7 @@ ROM_START( rockman2j )
ROM_LOAD16_WORD_SWAP( "rm2.05", 0x100000, 0x80000, CRC(02ee9efc) SHA1(1b80c40389b51a03b930051f232630616c12e6c5) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "rm2.14m", 0x800000, 0x200000, CRC(9b1f00b4) SHA1(c1c5c2d9d00121425ae6598444d704f420ef4eef) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.16m", 0x800002, 0x200000, CRC(c2bb0c24) SHA1(38724c49d9db49765a4ed9bc2dc8f57cec45ec7c) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.18m", 0x800004, 0x200000, CRC(12257251) SHA1(20cb58afda0e6200991277817485340a6a41ae2b) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -3949,7 +3949,7 @@ ROM_START( megaman2h )
ROM_LOAD16_WORD_SWAP( "rm2.05", 0x100000, 0x80000, CRC(02ee9efc) SHA1(1b80c40389b51a03b930051f232630616c12e6c5) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "rm2.14m", 0x800000, 0x200000, CRC(9b1f00b4) SHA1(c1c5c2d9d00121425ae6598444d704f420ef4eef) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.16m", 0x800002, 0x200000, CRC(c2bb0c24) SHA1(38724c49d9db49765a4ed9bc2dc8f57cec45ec7c) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.18m", 0x800004, 0x200000, CRC(12257251) SHA1(20cb58afda0e6200991277817485340a6a41ae2b) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -5095,7 +5095,7 @@ ROM_START( mpangu )
ROM_LOAD16_WORD_SWAP( "mpnu.04", 0x080000, 0x80000, CRC(de079131) SHA1(95da2a03cb642963aabfebd8337003961ca4db71) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "mpn.13m", 0x800000, 0x200000, CRC(c5f123dc) SHA1(e459571416ab64f0280cda7dfa0d8836faa745c9) , ROM_GROUPWORD | ROM_SKIP(6) ) /* This version uses roms chips */
ROMX_LOAD( "mpn.15m", 0x800002, 0x200000, CRC(8e033265) SHA1(d05ca8fb825423ff6b099c06aaa500c0a947454a) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "mpn.17m", 0x800004, 0x200000, CRC(cfcd73d2) SHA1(3415c063ac3632159df0fa74899bde8c90f4a2a1) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -5613,7 +5613,7 @@ ROM_START( qndream )
ROM_LOAD16_WORD_SWAP( "tqzj.06", 0x180000, 0x80000, CRC(c371e8a5) SHA1(5a93e46e46acfdc93fcb069e2426627e948655bf) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "tqz.14m", 0x800000, 0x200000, CRC(98af88a2) SHA1(d3620faf2162a1f3a62a238715da4da429376d3c) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "tqz.16m", 0x800002, 0x200000, CRC(df82d491) SHA1(fd3c8303cbcacb132a90398ff61f47d2d68157ae) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "tqz.18m", 0x800004, 0x200000, CRC(42f132ff) SHA1(0e0a128524010dba033a9b9ab2c56fe92a1767da) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -5777,7 +5777,7 @@ ROM_START( mmancp2u )
ROM_LOAD16_WORD_SWAP( "rcm.05b", 0x100000, 0x80000, CRC(4376ea95) SHA1(7370ceffca513aa9f68a74f6869d561476589200) ) // == rcma_21a.rom from CPS1 version
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "rcm.73", 0x800000, 0x080000, CRC(774c6e04) SHA1(6bd14960218e31d5a043b20a1b9d2d69cace761e) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rcm.63", 0x800002, 0x080000, CRC(acad7c62) SHA1(eec10990339c9fd8fdae896a5fd98d5bf0220ed1) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rcm.83", 0x800004, 0x080000, CRC(6af30499) SHA1(a97bf2f382b6edc1e920e18d8ad5ca18131a2f21) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -5819,7 +5819,7 @@ ROM_START( mmancp2ur1 )
ROM_LOAD16_WORD_SWAP( "rcmu.05a", 0x100000, 0x80000, CRC(4376ea95) SHA1(7370ceffca513aa9f68a74f6869d561476589200) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "rcm.73", 0x800000, 0x080000, CRC(774c6e04) SHA1(6bd14960218e31d5a043b20a1b9d2d69cace761e) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rcm.63", 0x800002, 0x080000, CRC(acad7c62) SHA1(eec10990339c9fd8fdae896a5fd98d5bf0220ed1) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rcm.83", 0x800004, 0x080000, CRC(6af30499) SHA1(a97bf2f382b6edc1e920e18d8ad5ca18131a2f21) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -5862,7 +5862,7 @@ ROM_START( rmancp2j )
ROM_LOAD16_WORD_SWAP( "rcm.05a", 0x100000, 0x80000, CRC(517ccde2) SHA1(492256c192f0c4814efa1ee1dd390453dd2e5865) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "rcm.73", 0x800000, 0x080000, CRC(774c6e04) SHA1(6bd14960218e31d5a043b20a1b9d2d69cace761e) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rcm.63", 0x800002, 0x080000, CRC(acad7c62) SHA1(eec10990339c9fd8fdae896a5fd98d5bf0220ed1) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rcm.83", 0x800004, 0x080000, CRC(6af30499) SHA1(a97bf2f382b6edc1e920e18d8ad5ca18131a2f21) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -5905,7 +5905,7 @@ ROM_START( sfa )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -5931,7 +5931,7 @@ ROM_START( sfar1 )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -5957,7 +5957,7 @@ ROM_START( sfar2 )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -5983,7 +5983,7 @@ ROM_START( sfar3 )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6009,7 +6009,7 @@ ROM_START( sfau )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6035,7 +6035,7 @@ ROM_START( sfza )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6061,7 +6061,7 @@ ROM_START( sfzar1 )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6087,7 +6087,7 @@ ROM_START( sfzj )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6113,7 +6113,7 @@ ROM_START( sfzjr1 )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6139,7 +6139,7 @@ ROM_START( sfzjr2 )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6165,7 +6165,7 @@ ROM_START( sfzh )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6191,7 +6191,7 @@ ROM_START( sfzhr1 )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6217,7 +6217,7 @@ ROM_START( sfzb )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -6243,7 +6243,7 @@ ROM_START( sfzbr1 )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -7218,7 +7218,7 @@ ROM_START( spf2t )
ROM_LOAD16_WORD_SWAP( "pzf.04", 0x080000, 0x80000, CRC(b80649e2) SHA1(5bfccd656aea7ff82e9a20bb5856f4ab99b5a007) ) // marked pzfe.04 but same as pzf.04
ROM_REGION( 0xC00000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "pzf.14m", 0x800000, 0x100000, CRC(2d4881cb) SHA1(fd3baa183c25bed153b19c251980e2fb761600e2) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.16m", 0x800002, 0x100000, CRC(4b0fd1be) SHA1(377aafdcdb7a866b1c8487670e3598d8197976e4) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.18m", 0x800004, 0x100000, CRC(e43aac33) SHA1(d041e0688c3807d3363861a7f216de43b34d846c) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -7242,7 +7242,7 @@ ROM_START( spf2tu )
ROM_LOAD16_WORD_SWAP( "pzf.04", 0x080000, 0x80000, CRC(b80649e2) SHA1(5bfccd656aea7ff82e9a20bb5856f4ab99b5a007) )
ROM_REGION( 0xC00000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "pzf.14m", 0x800000, 0x100000, CRC(2d4881cb) SHA1(fd3baa183c25bed153b19c251980e2fb761600e2) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.16m", 0x800002, 0x100000, CRC(4b0fd1be) SHA1(377aafdcdb7a866b1c8487670e3598d8197976e4) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.18m", 0x800004, 0x100000, CRC(e43aac33) SHA1(d041e0688c3807d3363861a7f216de43b34d846c) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -7267,7 +7267,7 @@ ROM_START( spf2xj )
ROM_LOAD16_WORD_SWAP( "pzf.04", 0x080000, 0x80000, CRC(b80649e2) SHA1(5bfccd656aea7ff82e9a20bb5856f4ab99b5a007) )
ROM_REGION( 0xC00000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "pzf.14m", 0x800000, 0x100000, CRC(2d4881cb) SHA1(fd3baa183c25bed153b19c251980e2fb761600e2) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.16m", 0x800002, 0x100000, CRC(4b0fd1be) SHA1(377aafdcdb7a866b1c8487670e3598d8197976e4) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.18m", 0x800004, 0x100000, CRC(e43aac33) SHA1(d041e0688c3807d3363861a7f216de43b34d846c) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -7291,7 +7291,7 @@ ROM_START( spf2ta )
ROM_LOAD16_WORD_SWAP( "pzf.04", 0x080000, 0x80000, CRC(b80649e2) SHA1(5bfccd656aea7ff82e9a20bb5856f4ab99b5a007) )
ROM_REGION( 0xC00000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "pzf.14m", 0x800000, 0x100000, CRC(2d4881cb) SHA1(fd3baa183c25bed153b19c251980e2fb761600e2) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.16m", 0x800002, 0x100000, CRC(4b0fd1be) SHA1(377aafdcdb7a866b1c8487670e3598d8197976e4) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.18m", 0x800004, 0x100000, CRC(e43aac33) SHA1(d041e0688c3807d3363861a7f216de43b34d846c) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -7315,7 +7315,7 @@ ROM_START( spf2th )
ROM_LOAD16_WORD_SWAP( "pzf.04", 0x080000, 0x80000, CRC(b80649e2) SHA1(5bfccd656aea7ff82e9a20bb5856f4ab99b5a007) )
ROM_REGION( 0xC00000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "pzf.14m", 0x800000, 0x100000, CRC(2d4881cb) SHA1(fd3baa183c25bed153b19c251980e2fb761600e2) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.16m", 0x800002, 0x100000, CRC(4b0fd1be) SHA1(377aafdcdb7a866b1c8487670e3598d8197976e4) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.18m", 0x800004, 0x100000, CRC(e43aac33) SHA1(d041e0688c3807d3363861a7f216de43b34d846c) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9564,7 +9564,7 @@ ROM_START( 1944d )
ROM_LOAD16_WORD_SWAP( "nffu.05", 0x100000, 0x80000, CRC(ea813eb7) SHA1(34e0175a5f22d08c3538369b4bfd077a7427a128) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x2000000, "gfx", 0 )
ROMX_LOAD( "nff.13m", 0x0000000, 0x400000, CRC(c9fca741) SHA1(1781d4fc18b6d6f79b7b39d9bcace750fb61a5cf) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9596,7 +9596,7 @@ ROM_START( 19xxd )
ROM_LOAD16_WORD_SWAP( "19x.07", 0x200000, 0x80000, CRC(61c0296c) SHA1(9e225beccffd14bb53a32f8c0f2aef7f331dae30) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1000000, "gfx", 0 )
ROMX_LOAD( "19x.13m", 0x0000000, 0x080000, CRC(427aeb18) SHA1(901029b5423e4bda85f592735036c06b7d426680) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9658,7 +9658,7 @@ ROM_START( avspd )
ROM_LOAD16_WORD_SWAP( "avpd.06", 0x180000, 0x80000, CRC(63094539) SHA1(f1b776cf4334fa7fa1ee0e5ce81a5996b930996b) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1000000, "gfx", 0 )
ROMX_LOAD( "avp.13m", 0x0000000, 0x200000, CRC(8f8b5ae4) SHA1(457ce959aa5db3a003de7dda2b3799b2f1ae279b) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9692,7 +9692,7 @@ ROM_START( batcird )
ROM_LOAD16_WORD_SWAP( "btc.09", 0x300000, 0x80000, CRC(1203db08) SHA1(fdbea14618b277132f9e010ef36c134a8ea42162) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1000000, "gfx", 0 )
ROMX_LOAD( "btc.13m", 0x000000, 0x400000, CRC(dc705bad) SHA1(96e37147674bf9cd21c770897da59daac25d921a) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9721,7 +9721,7 @@ ROM_START( ddtodd )
ROM_LOAD16_WORD_SWAP( "dadd.07a", 0x200000, 0x80000, CRC(0f0df6cc) SHA1(5da5f989ed71faf5e2950fdf9650d94918616ae4) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0xc00000, "gfx", 0 )
ROMX_LOAD( "dad.13m", 0x000000, 0x200000, CRC(da3cb7d6) SHA1(d59bb53d5f32889eb6eb7f8b1c8781948c97283d) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9756,7 +9756,7 @@ ROM_START( ddsomud )
ROM_LOAD16_WORD_SWAP( "dd2d.10", 0x380000, 0x80000, CRC(0c172f8f) SHA1(4f0ad9ab401f9f2d7d8f605a5ef78add4f4ced38) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1800000, "gfx", 0 )
ROMX_LOAD( "dd2.13m", 0x0000000, 0x400000, CRC(a46b4e6e) SHA1(fb90f42868c581c481b4ceff9f692753fb186b30) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9815,7 +9815,7 @@ ROM_START( gigawingjd )
ROM_LOAD16_WORD_SWAP( "ggwjd.05a", 0x100000, 0x80000, CRC(1c5bc4e7) SHA1(7f338cb45686b24b9136dd1e575fd842f9fd0b05) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1000000, "gfx", 0 )
ROMX_LOAD( "ggw.13m", 0x000000, 0x400000, CRC(105530a4) SHA1(3be06c032985ea6bd3805d73a407bf748385087b) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9841,7 +9841,7 @@ ROM_START( gigawingd )
ROM_LOAD16_WORD_SWAP( "ggw_d.05", 0x100000, 0x80000, CRC(722d0042) SHA1(8587e42d4781c503bc8871b88d3f85e21659c50e) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1000000, "gfx", 0 )
ROMX_LOAD( "ggw.13m", 0x000000, 0x400000, CRC(105530a4) SHA1(3be06c032985ea6bd3805d73a407bf748385087b) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9872,7 +9872,7 @@ ROM_START( hsf2d )
ROM_LOAD16_WORD_SWAP( "hs2.10", 0x380000, 0x80000, CRC(20d0f9e4) SHA1(80a5eeef9472e327b0d4ee26434bad109a9434ea) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x2000000, "gfx", 0 )
ROMX_LOAD( "hs2.13m", 0x0000000, 0x800000, CRC(a6ecab17) SHA1(6749a4c8dc81f4b10f910c31c82cf6674e2a44eb) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9898,10 +9898,10 @@ ROM_START( megamn2d )
ROM_LOAD16_WORD_SWAP( "rm2.05", 0x100000, 0x80000, CRC(02ee9efc) SHA1(1b80c40389b51a03b930051f232630616c12e6c5) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "rm2.14m", 0x800000, 0x200000, CRC(9b1f00b4) SHA1(c1c5c2d9d00121425ae6598444d704f420ef4eef) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.16m", 0x800002, 0x200000, CRC(c2bb0c24) SHA1(38724c49d9db49765a4ed9bc2dc8f57cec45ec7c) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "rm2.18m", 0x800004, 0x200000, CRC(12257251) SHA1(20cb58afda0e6200991277817485340a6a41ae2b) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9931,7 +9931,7 @@ ROM_START( mvscud )
ROM_LOAD16_WORD_SWAP( "mvc.10", 0x380000, 0x80000, CRC(0fdd1e26) SHA1(5fa684d823b4f4eec61ed9e9b8938af5272ae1ed) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x2000000, "gfx", 0 )
ROMX_LOAD( "mvc.13m", 0x0000000, 0x400000, CRC(fa5f74bc) SHA1(79a619248938a85ce4f7794a704647b9cf564fbc) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -9967,7 +9967,7 @@ ROM_START( nwarrud )
ROM_LOAD16_WORD_SWAP( "vphud.10b", 0x380000, 0x80000, CRC(9619adad) SHA1(abbbe28659c031f34be23a38950d9b56f7f7ca86) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x2000000, "gfx", 0 )
ROMX_LOAD( "vph.13m", 0x0000000, 0x400000, CRC(c51baf99) SHA1(2fb6642908e542e404391eb17392f8270e87bf48) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10001,7 +10001,7 @@ ROM_START( ringdstd )
ROM_LOAD16_WORD_SWAP( "smb.08", 0x280000, 0x80000, CRC(f931b76b) SHA1(0b7e8d1278dcba89f0063bd09cda96d6ae1bc282) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1200000, "gfx", 0 )
ROMX_LOAD( "smb.13m", 0x0000000, 0x200000, CRC(d9b2d1de) SHA1(e8658983070dadcd1300a680a42c8431579e2b4f) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10037,10 +10037,10 @@ ROM_START( sfad )
ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10101,7 +10101,7 @@ ROM_START( sfz2ald )
ROM_LOAD16_WORD_SWAP( "szaa.08", 0x280000, 0x80000, CRC(6eb6d412) SHA1(c858fec9c1dfea70dfcca629c1c24306f8ae6d81) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x1400000, "gfx", 0 )
ROMX_LOAD( "sz2.13m", 0x0000000, 0x400000, CRC(4d1f1f22) SHA1(659fb4305bcf0cbbbbec97ede6e68a8323b13308) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10137,7 +10137,7 @@ ROM_START( sfa3ud )
ROM_LOAD16_WORD_SWAP( "sz3.10b", 0x380000, 0x80000, CRC(deb2ff52) SHA1(0aa4722aad68a04164946c78bf05752f947b4322) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x2000000, "gfx", 0 )
ROMX_LOAD( "sz3.13m", 0x0000000, 0x400000, CRC(0f7a60d9) SHA1(c69e0ee22537312909dacc86d2e4be319d54e426) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10167,10 +10167,10 @@ ROM_START( spf2xjd )
ROM_LOAD16_WORD_SWAP( "pzf.04", 0x080000, 0x80000, CRC(b80649e2) SHA1(5bfccd656aea7ff82e9a20bb5856f4ab99b5a007) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0xC00000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "pzf.14m", 0x800000, 0x100000, CRC(2d4881cb) SHA1(fd3baa183c25bed153b19c251980e2fb761600e2) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.16m", 0x800002, 0x100000, CRC(4b0fd1be) SHA1(377aafdcdb7a866b1c8487670e3598d8197976e4) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.18m", 0x800004, 0x100000, CRC(e43aac33) SHA1(d041e0688c3807d3363861a7f216de43b34d846c) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10200,7 +10200,7 @@ ROM_START( vsavd )
ROM_LOAD16_WORD_SWAP( "vm3.10b", 0x380000, 0x80000, CRC(fffbb5b8) SHA1(38aecb820bd1cbd17287848c3ffb013e1d464ddf) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x2000000, "gfx", 0 )
ROMX_LOAD( "vm3.13m", 0x0000000, 0x400000, CRC(fd8a11eb) SHA1(21b9773959e17976ff46b75a6a405042836b2c5f) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10236,7 +10236,7 @@ ROM_START( xmcotar1d )
ROM_LOAD16_WORD_SWAP( "xmn.10a", 0x380000, 0x80000, CRC(53c0eab9) SHA1(e3b1ec1fd517735f7801cfebb257c43185c6d3fb) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x2000000, "gfx", 0 )
ROMX_LOAD( "xmn.13m", 0x0000000, 0x400000, CRC(bf4df073) SHA1(4d2740c3a827f0ec2cf75ad99c65e393c6a11c23) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10273,7 +10273,7 @@ ROM_START( xmvsfu1d )
ROM_LOAD16_WORD_SWAP( "xvs.09", 0x300000, 0x80000, CRC(9641f36b) SHA1(dcba3482d1ba37ccfb30d402793ee063c6621aed) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x2000000, "gfx", 0 )
ROMX_LOAD( "xvs.13m", 0x0000000, 0x400000, CRC(f6684efd) SHA1(c0a2f3a9e82ab8b084a500aec71ac633e947328c) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10740,7 +10740,7 @@ ROM_START( csclub1d )
ROM_LOAD16_WORD_SWAP( "csc_d.07", 0x200000, 0x80000, CRC(77478e25) SHA1(d2648a8d57a156c5a0416007dedb4c65af8403d5) )
ROM_REGION( 0x1000000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "csc.73", 0x800000, 0x080000, CRC(335f07c3) SHA1(44e0385120e2c81fd1072e19b7e3ff05d42be226) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.74", 0xa00000, 0x080000, CRC(ab215357) SHA1(c2600b5ba62a570f8a32de9c06f93ea8ae6cd854) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "csc.75", 0xc00000, 0x080000, CRC(a2367381) SHA1(49d562be42c10cdf4e55e3b76c388f0b0121a967) , ROM_GROUPWORD | ROM_SKIP(6) )
@@ -10880,10 +10880,10 @@ ROM_START( spf2td )
ROM_LOAD16_WORD_SWAP( "pzf.04", 0x080000, 0x80000, CRC(b80649e2) SHA1(5bfccd656aea7ff82e9a20bb5856f4ab99b5a007) )
ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0xC00000, "gfx", 0 )
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROMX_LOAD( "pzf.14m", 0x800000, 0x100000, CRC(2d4881cb) SHA1(fd3baa183c25bed153b19c251980e2fb761600e2) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.16m", 0x800002, 0x100000, CRC(4b0fd1be) SHA1(377aafdcdb7a866b1c8487670e3598d8197976e4) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "pzf.18m", 0x800004, 0x100000, CRC(e43aac33) SHA1(d041e0688c3807d3363861a7f216de43b34d846c) , ROM_GROUPWORD | ROM_SKIP(6) )
diff --git a/src/mame/drivers/crvision.cpp b/src/mame/drivers/crvision.cpp
index f87d197ab50..a9246a76f70 100644
--- a/src/mame/drivers/crvision.cpp
+++ b/src/mame/drivers/crvision.cpp
@@ -765,7 +765,7 @@ static MACHINE_CONFIG_START( creativision, crvision_state )
MCFG_SOUND_ROUTE(1, "mono", 0.25)
// cartridge
- MCFG_CRVISION_CARTRIDGE_ADD("cartslot", crvision_cart, NULL)
+ MCFG_CRVISION_CARTRIDGE_ADD("cartslot", crvision_cart, nullptr)
// internal ram
MCFG_RAM_ADD(RAM_TAG)
@@ -847,7 +847,7 @@ static MACHINE_CONFIG_START( lasr2001, laser2001_state )
MCFG_SOUND_ROUTE(1, "mono", 0.25)
// cartridge
- MCFG_CRVISION_CARTRIDGE_ADD("cartslot", crvision_cart, NULL)
+ MCFG_CRVISION_CARTRIDGE_ADD("cartslot", crvision_cart, nullptr)
// internal ram
MCFG_RAM_ADD(RAM_TAG)
diff --git a/src/mame/drivers/csplayh5.cpp b/src/mame/drivers/csplayh5.cpp
index 0d016cea4d0..2573efcd969 100644
--- a/src/mame/drivers/csplayh5.cpp
+++ b/src/mame/drivers/csplayh5.cpp
@@ -446,7 +446,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(csplayh5_state::csplayh5_irq)
static const z80_daisy_config daisy_chain_sound[] =
{
TMPZ84C011_DAISY_INTERNAL,
- { NULL }
+ { nullptr }
};
static MACHINE_CONFIG_START( csplayh5, csplayh5_state )
diff --git a/src/mame/drivers/ct486.cpp b/src/mame/drivers/ct486.cpp
index 243d93b0386..b8d89dafdce 100644
--- a/src/mame/drivers/ct486.cpp
+++ b/src/mame/drivers/ct486.cpp
@@ -159,10 +159,10 @@ static MACHINE_CONFIG_START( ct486, ct486_state )
MCFG_ISA16_SLOT_ADD("isabus", "board3", pc_isa16_cards, "ide", true)
MCFG_ISA16_SLOT_ADD("isabus", "board4", pc_isa16_cards, "lpt", true)
MCFG_ISA16_SLOT_ADD("isabus", "isa1", pc_isa16_cards, "svga_et4k", false)
- MCFG_ISA16_SLOT_ADD("isabus", "isa2", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus", "isa3", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus", "isa4", pc_isa16_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD("isabus", "isa5", pc_isa16_cards, NULL, false)
+ MCFG_ISA16_SLOT_ADD("isabus", "isa2", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus", "isa3", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus", "isa4", pc_isa16_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD("isabus", "isa5", pc_isa16_cards, nullptr, false)
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
diff --git a/src/mame/drivers/cubo.cpp b/src/mame/drivers/cubo.cpp
index 5038877b6c7..42fa0541bf4 100644
--- a/src/mame/drivers/cubo.cpp
+++ b/src/mame/drivers/cubo.cpp
@@ -441,7 +441,7 @@ void cubo_state::potgo_w(UINT16 data)
{
int i;
- if (m_input_hack != NULL)
+ if (m_input_hack != nullptr)
(this->*m_input_hack)();
m_potgo_value = m_potgo_value & 0x5500;
@@ -1105,7 +1105,7 @@ DRIVER_INIT_MEMBER( cubo_state, cubo )
{
m_agnus_id = ALICE_PAL_NEW;
m_denise_id = LISA;
- m_input_hack = NULL;
+ m_input_hack = nullptr;
}
diff --git a/src/mame/drivers/cvs.cpp b/src/mame/drivers/cvs.cpp
index 7c9ed5a81d3..4c013254dfa 100644
--- a/src/mame/drivers/cvs.cpp
+++ b/src/mame/drivers/cvs.cpp
@@ -291,7 +291,7 @@ TIMER_CALLBACK_MEMBER(cvs_state::cvs_393hz_timer_cb)
m_cvs_393hz_clock = !m_cvs_393hz_clock;
/* quasar.c games use this timer but have no dac3! */
- if (m_dac3 != NULL)
+ if (m_dac3 != nullptr)
{
if (m_dac3_state[2])
m_dac3->write_unsigned8(m_cvs_393hz_clock * 0xff);
@@ -924,7 +924,7 @@ static const gfx_layout charlayout =
static GFXDECODE_START( cvs )
GFXDECODE_ENTRY( "gfx1", 0x0000, charlayout, 0, 256+4 )
- GFXDECODE_ENTRY( NULL, 0x0000, charlayout, 0, 256+4 )
+ GFXDECODE_ENTRY( nullptr, 0x0000, charlayout, 0, 256+4 )
GFXDECODE_END
@@ -938,7 +938,7 @@ GFXDECODE_END
MACHINE_START_MEMBER(cvs_state,cvs)
{
/* allocate memory */
- if (m_gfxdecode->gfx(1) != NULL)
+ if (m_gfxdecode->gfx(1) != nullptr)
m_gfxdecode->gfx(1)->set_source(m_character_ram);
start_393hz_timer();
diff --git a/src/mame/drivers/cyberbal.cpp b/src/mame/drivers/cyberbal.cpp
index 138bdb6d9b6..0a1a01a4ebc 100644
--- a/src/mame/drivers/cyberbal.cpp
+++ b/src/mame/drivers/cyberbal.cpp
@@ -35,7 +35,7 @@
void cyberbal_state::update_interrupts()
{
- if (m_extracpu != NULL)
+ if (m_extracpu != nullptr)
{
m_maincpu->set_input_line(1, m_sound_int_state ? ASSERT_LINE : CLEAR_LINE);
m_extracpu->set_input_line(1, m_video_int_state ? ASSERT_LINE : CLEAR_LINE);
diff --git a/src/mame/drivers/czk80.cpp b/src/mame/drivers/czk80.cpp
index 913d07d693f..1b0415d9b4f 100644
--- a/src/mame/drivers/czk80.cpp
+++ b/src/mame/drivers/czk80.cpp
@@ -133,7 +133,7 @@ static const z80_daisy_config daisy_chain[] =
{ "z80pio" },
{ "z80dart" },
{ "z80ctc" },
- { NULL }
+ { nullptr }
};
/* Z80-CTC Interface */
diff --git a/src/mame/drivers/dacholer.cpp b/src/mame/drivers/dacholer.cpp
index 665d96b67d4..301e6ac05d8 100644
--- a/src/mame/drivers/dacholer.cpp
+++ b/src/mame/drivers/dacholer.cpp
@@ -615,7 +615,7 @@ PALETTE_INIT_MEMBER(dacholer_state, dacholer)
compute_resistor_weights(0, 255, -1.0,
3, resistances_rg, weights_rg, 0, 0,
2, resistances_b, weights_b, 0, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
for (i = 0;i < palette.entries(); i++)
{
diff --git a/src/mame/drivers/dai3wksi.cpp b/src/mame/drivers/dai3wksi.cpp
index 9ef942150e4..700262ee9d4 100644
--- a/src/mame/drivers/dai3wksi.cpp
+++ b/src/mame/drivers/dai3wksi.cpp
@@ -274,7 +274,7 @@ static const char *const dai3wksi_sample_names[] =
"5",
"6",
"6-2",
- 0
+ nullptr
};
diff --git a/src/mame/drivers/dcon.cpp b/src/mame/drivers/dcon.cpp
index c0b9061f1ca..bae5b7e0d92 100644
--- a/src/mame/drivers/dcon.cpp
+++ b/src/mame/drivers/dcon.cpp
@@ -331,7 +331,7 @@ ROM_START( dcon )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "fmsnd", 0x000000, 0x08000, CRC(50450faa) SHA1(d4add7d357951b51d53ed7f143ece7f3bde7f4cb) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 )
ROM_LOAD( "fix0", 0x000000, 0x10000, CRC(ab30061f) SHA1(14dba37fef7bd13c827fd542b24cc593dcdc9f99) ) /* chars */
@@ -366,7 +366,7 @@ ROM_START( sdgndmps )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "911-a05.010", 0x00000, 0x08000, CRC(90455406) SHA1(dd2c5b96ac4b51251a3d34d97cc9af360afaa38c) )
ROM_CONTINUE( 0x10000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x18000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x18000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 )
ROM_LOAD( "911-a08.66", 0x000000, 0x10000, CRC(e7e04823) SHA1(d9b1ace5cd8218d5a4767cf5adbc267dce7c0668) ) /* chars */
diff --git a/src/mame/drivers/ddenlovr.cpp b/src/mame/drivers/ddenlovr.cpp
index e1c0ec92d2b..54df62b7ec4 100644
--- a/src/mame/drivers/ddenlovr.cpp
+++ b/src/mame/drivers/ddenlovr.cpp
@@ -11614,13 +11614,13 @@ ROM_START( kotbinsp )
ROM_LOAD16_BYTE( "909033.6c", 0x200001, 0x080000, CRC(9388b85d) SHA1(a35fe0b585cba256bb5575f7b539b33dd0ca3aa0) )
ROM_FILL( 0x300000, 0x100000, 0xff )
// mirror the whole address space (25 bits)
- ROM_COPY( "blitter", 0, 0x0400000, 0x400000 )
- ROM_COPY( "blitter", 0, 0x0800000, 0x400000 )
- ROM_COPY( "blitter", 0, 0x0c00000, 0x400000 )
- ROM_COPY( "blitter", 0, 0x1000000, 0x400000 )
- ROM_COPY( "blitter", 0, 0x1400000, 0x400000 )
- ROM_COPY( "blitter", 0, 0x1800000, 0x400000 )
- ROM_COPY( "blitter", 0, 0x1c00000, 0x400000 )
+ ROM_COPY( "blitter", nullptr, 0x0400000, 0x400000 )
+ ROM_COPY( "blitter", nullptr, 0x0800000, 0x400000 )
+ ROM_COPY( "blitter", nullptr, 0x0c00000, 0x400000 )
+ ROM_COPY( "blitter", nullptr, 0x1000000, 0x400000 )
+ ROM_COPY( "blitter", nullptr, 0x1400000, 0x400000 )
+ ROM_COPY( "blitter", nullptr, 0x1800000, 0x400000 )
+ ROM_COPY( "blitter", nullptr, 0x1c00000, 0x400000 )
ROM_REGION( 0x80000, "oki", 0 ) /* Samples */
ROM_LOAD( "909031.1c", 0x00000, 0x80000, CRC(9f20a531) SHA1(1b43edd70c4c958cbbcd6c051ea6ba5e6fb41e77) )
diff --git a/src/mame/drivers/dec0.cpp b/src/mame/drivers/dec0.cpp
index 4bb0c6ad27d..4a46df27266 100644
--- a/src/mame/drivers/dec0.cpp
+++ b/src/mame/drivers/dec0.cpp
@@ -2258,7 +2258,7 @@ ROM_START( automat )
/* copy out the chars */
ROM_REGION( 0x20000, "gfx1", ROMREGION_INVERT ) /* chars */
- ROM_COPY( "gfxload1", 0x00000, 0x00000, 0x8000 )
+ ROM_COPY( "gfxload1", nullptr, 0x00000, 0x8000 )
ROM_COPY( "gfxload1", 0x10000, 0x08000, 0x8000 )
ROM_COPY( "gfxload1", 0x20000, 0x10000, 0x8000 )
ROM_COPY( "gfxload1", 0x30000, 0x18000, 0x8000 )
@@ -2706,7 +2706,7 @@ ROM_START( secretab )
ROM_LOAD( "sa_14.bin", 0x30000, 0x10000,CRC(3dac9128) SHA1(f3a2068e90973c1f04f1bbaa209111e3f9669ee0) )
ROM_REGION( 0x20000, "gfx1", ROMREGION_INVERT ) /* chars */
- ROM_COPY( "charset", 0x00000, 0x00000, 0x8000 )
+ ROM_COPY( "charset", nullptr, 0x00000, 0x8000 )
ROM_COPY( "charset", 0x10000, 0x08000, 0x8000 )
ROM_COPY( "charset", 0x20000, 0x10000, 0x8000 )
ROM_COPY( "charset", 0x30000, 0x18000, 0x8000 )
diff --git a/src/mame/drivers/decocass.cpp b/src/mame/drivers/decocass.cpp
index 0ebd94feab6..31f18fc6083 100644
--- a/src/mame/drivers/decocass.cpp
+++ b/src/mame/drivers/decocass.cpp
@@ -680,10 +680,10 @@ static const gfx_layout objlayout =
};
static GFXDECODE_START( decocass )
- GFXDECODE_ENTRY( NULL, 0x6000, charlayout, 0, 4 ) /* char set #1 */
- GFXDECODE_ENTRY( NULL, 0x6000, spritelayout, 0, 4 ) /* sprites */
- GFXDECODE_ENTRY( NULL, 0xd000, tilelayout, 32, 2 ) /* background tiles */
- GFXDECODE_ENTRY( NULL, 0xd800, objlayout, 48, 4 ) /* object */
+ GFXDECODE_ENTRY( nullptr, 0x6000, charlayout, 0, 4 ) /* char set #1 */
+ GFXDECODE_ENTRY( nullptr, 0x6000, spritelayout, 0, 4 ) /* sprites */
+ GFXDECODE_ENTRY( nullptr, 0xd000, tilelayout, 32, 2 ) /* background tiles */
+ GFXDECODE_ENTRY( nullptr, 0xd800, objlayout, 48, 4 ) /* object */
GFXDECODE_END
PALETTE_INIT_MEMBER(decocass_state, decocass)
diff --git a/src/mame/drivers/dectalk.cpp b/src/mame/drivers/dectalk.cpp
index 506895e05ed..2aa828d6a25 100644
--- a/src/mame/drivers/dectalk.cpp
+++ b/src/mame/drivers/dectalk.cpp
@@ -982,9 +982,9 @@ ROM_START( dectalk )
// TODO: load this as default if the nvram file is missing, OR get the setup page working enough that it can be saved properly to the chip from an NVR FAULT state!
// NOTE: this nvram image is ONLY VALID for v2.0; v1.8 expects a different image.
ROM_REGION(0x100,"nvram", 0) // default nvram image is at 0x1A7AE in main rom, read lsn first so 0x0005 in rom becomes 05 00 00 00 etc for all words of main rom
- ROM_FILL(0x00, 0xff, 0x00) // blank it first;
+ ROM_FILL(0x00, 0xff, nullptr) // blank it first;
ROM_FILL(0x00, 0x01, 0x05)
- ROM_FILL(0x04, 0x01, 0x00)
+ ROM_FILL(0x04, 0x01, nullptr)
ROM_FILL(0x08, 0x01, 0x06)
ROM_FILL(0x0C, 0x01, 0x01)
ROM_FILL(0x10, 0x01, 0x06)
@@ -993,7 +993,7 @@ ROM_START( dectalk )
ROM_FILL(0x1C, 0x01, 0x02)
ROM_FILL(0x20, 0x01, 0x01)
ROM_FILL(0x24, 0x01, 0x01)
- ROM_FILL(0x28, 0x01, 0x00)
+ ROM_FILL(0x28, 0x01, nullptr)
ROM_FILL(0x2C, 0x01, 0x01)
ROM_FILL(0xFC, 0x01, 0x0D) // checksum, calculated some weird way which I haven't figured out yet
ROM_FILL(0xFD, 0x01, 0x02) // "
diff --git a/src/mame/drivers/deshoros.cpp b/src/mame/drivers/deshoros.cpp
index 59fd301d032..10937a5251e 100644
--- a/src/mame/drivers/deshoros.cpp
+++ b/src/mame/drivers/deshoros.cpp
@@ -235,7 +235,7 @@ static INPUT_PORTS_START( destiny )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED )
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, destiny_state, coin_inserted, (void *)0)
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, destiny_state, coin_inserted, (void *)nullptr)
PORT_START("SERVICE")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CHANGED_MEMBER(DEVICE_SELF, destiny_state, coin_inserted, (void *)1)
diff --git a/src/mame/drivers/djmain.cpp b/src/mame/drivers/djmain.cpp
index 7a8c4dad84b..aa47b3e4f02 100644
--- a/src/mame/drivers/djmain.cpp
+++ b/src/mame/drivers/djmain.cpp
@@ -1342,10 +1342,10 @@ GFXDECODE_END
void djmain_state::machine_start()
{
ide_hdd_device *hdd = m_ata->subdevice<ata_slot_device>("0")->subdevice<ide_hdd_device>("hdd");
- if (m_ata_master_password != NULL)
+ if (m_ata_master_password != nullptr)
hdd->set_master_password(m_ata_master_password);
- if (m_ata_user_password != NULL)
+ if (m_ata_user_password != nullptr)
hdd->set_user_password(m_ata_user_password);
save_item(NAME(m_sndram_bank));
@@ -1386,7 +1386,7 @@ static MACHINE_CONFIG_START( djmainj, djmain_state )
MCFG_CPU_PROGRAM_MAP(maincpu_djmainj)
MCFG_CPU_VBLANK_INT_DRIVER("screen", djmain_state, vb_interrupt)
- MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", NULL, true)
+ MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(djmain_state, ide_interrupt))
/* video hardware */
@@ -1967,8 +1967,8 @@ ROM_END
DRIVER_INIT_MEMBER(djmain_state,beatmania)
{
- m_ata_master_password = NULL;
- m_ata_user_password = NULL;
+ m_ata_master_password = nullptr;
+ m_ata_user_password = nullptr;
}
static const UINT8 beatmania_master_password[2 + 32] =
diff --git a/src/mame/drivers/dkong.cpp b/src/mame/drivers/dkong.cpp
index e6d81e7d2a6..c87f6bf5625 100644
--- a/src/mame/drivers/dkong.cpp
+++ b/src/mame/drivers/dkong.cpp
@@ -1891,7 +1891,7 @@ ROM_START( radarscp )
ROM_REGION( 0x1800, "soundcpu", 0 ) /* sound */
ROM_LOAD( "trs2s3i", 0x0000, 0x0800, CRC(78034f14) SHA1(548b44ac69f39df6687da1c0f60968009b1e0767) )
ROM_RELOAD( 0x0800, 0x0800 )
- ROM_FILL( 0x1000, 0x0800, 0x00 )
+ ROM_FILL( 0x1000, 0x0800, nullptr )
/* socket 3J is empty */
ROM_REGION( 0x1000, "gfx1", 0 )
@@ -2998,7 +2998,7 @@ ROM_START( drakton )
ROM_REGION( 0x1800, "soundcpu", 0 ) /* sound */
ROM_LOAD( "2716.3h", 0x0000, 0x0800, CRC(3489a35b) SHA1(9ebcf4b20b212d54e6b1a6d9abbda3109298631b) ) /* dkong */
ROM_RELOAD( 0x0800, 0x0800 )
- ROM_FILL( 0x1000, 0x0800, 0x00 )
+ ROM_FILL( 0x1000, 0x0800, nullptr )
ROM_REGION( 0x1000, "gfx1", 0 )
ROM_LOAD( "2716.3n", 0x0000, 0x0800, CRC(ea0e7f9a) SHA1(a8e2b43e15281d45e414eaae98e5248bad79c41b) )
diff --git a/src/mame/drivers/dragon.cpp b/src/mame/drivers/dragon.cpp
index 61375867d28..4495f78dcf2 100644
--- a/src/mame/drivers/dragon.cpp
+++ b/src/mame/drivers/dragon.cpp
@@ -235,7 +235,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( dgnalpha, dragon_base, dragon_alpha_state )
MCFG_RAM_DEFAULT_SIZE("64K")
// cartridge
- MCFG_COCO_CARTRIDGE_ADD(CARTRIDGE_TAG, dragon_cart, NULL)
+ MCFG_COCO_CARTRIDGE_ADD(CARTRIDGE_TAG, dragon_cart, nullptr)
MCFG_COCO_CARTRIDGE_CART_CB(WRITELINE(coco_state, cart_w))
MCFG_COCO_CARTRIDGE_NMI_CB(INPUTLINE(MAINCPU_TAG, INPUT_LINE_NMI))
MCFG_COCO_CARTRIDGE_HALT_CB(INPUTLINE(MAINCPU_TAG, INPUT_LINE_HALT))
diff --git a/src/mame/drivers/dreambal.cpp b/src/mame/drivers/dreambal.cpp
index 2f860fc31f6..bb3df8963da 100644
--- a/src/mame/drivers/dreambal.cpp
+++ b/src/mame/drivers/dreambal.cpp
@@ -80,7 +80,7 @@ UINT32 dreambal_state::screen_update_dreambal(screen_device &screen, bitmap_ind1
UINT16 flip = m_deco_tilegen1->pf_control_r(space, 0, 0xffff);
flip_screen_set(BIT(flip, 7));
- m_deco_tilegen1->pf_update(NULL, NULL);
+ m_deco_tilegen1->pf_update(nullptr, nullptr);
bitmap.fill(0, cliprect); /* not Confirmed */
screen.priority().fill(0);
diff --git a/src/mame/drivers/drtomy.cpp b/src/mame/drivers/drtomy.cpp
index 1f86b1df772..1ce7915ba99 100644
--- a/src/mame/drivers/drtomy.cpp
+++ b/src/mame/drivers/drtomy.cpp
@@ -342,13 +342,13 @@ ROM_START( drtomy )
ROM_LOAD( "14.u23", 0x00000, 0x80000, CRC(479614ec) SHA1(b6300b344422f0a64146b853411f5285eaaada28) )
ROM_REGION( 0x100000, "oki", 0 )
- ROM_COPY( "user1", 0x00000, 0x00000, 0x20000)
- ROM_COPY( "user1", 0x00000, 0x20000, 0x20000)
- ROM_COPY( "user1", 0x00000, 0x40000, 0x20000)
+ ROM_COPY( "user1", nullptr, 0x00000, 0x20000)
+ ROM_COPY( "user1", nullptr, 0x20000, 0x20000)
+ ROM_COPY( "user1", nullptr, 0x40000, 0x20000)
ROM_COPY( "user1", 0x20000, 0x60000, 0x20000)
- ROM_COPY( "user1", 0x00000, 0x80000, 0x20000)
+ ROM_COPY( "user1", nullptr, 0x80000, 0x20000)
ROM_COPY( "user1", 0x40000, 0xa0000, 0x20000)
- ROM_COPY( "user1", 0x00000, 0xc0000, 0x20000)
+ ROM_COPY( "user1", nullptr, 0xc0000, 0x20000)
ROM_COPY( "user1", 0x60000, 0xe0000, 0x20000)
ROM_END
diff --git a/src/mame/drivers/dwarfd.cpp b/src/mame/drivers/dwarfd.cpp
index 0d9a11f3770..63c4c6cee4d 100644
--- a/src/mame/drivers/dwarfd.cpp
+++ b/src/mame/drivers/dwarfd.cpp
@@ -843,7 +843,7 @@ ROM_START( dwarfd )
ROM_LOAD16_BYTE( "6d_pd_50-1994_tms2732ajl.bin",0x2001, 0x1000, CRC(ef52b88c) SHA1(3405152da3194a71f6dac6492f275c746e781ee7) )
ROM_REGION( 0x4000*2, "gfx2", 0 )
- ROM_FILL(0, 0x4000*2, 0)
+ ROM_FILL(0, 0x4000*2, nullptr)
ROM_REGION( 0x40, "proms", 0 )
/* ??? colors */
@@ -866,7 +866,7 @@ ROM_START( dwarfda )
ROM_LOAD16_BYTE( "50-1815-tms2732ajl.6d",0x2001, 0x1000, CRC(303d2d16) SHA1(885df57f253d92f96692256325ffcf2ca71dc64f) )
ROM_REGION( 0x4000*2, "gfx2", 0 )
- ROM_FILL(0, 0x4000*2, 0)
+ ROM_FILL(0, 0x4000*2, nullptr)
ROM_REGION( 0x40, "proms", 0 )
/* ??? colors */
@@ -893,7 +893,7 @@ ROM_START( quarterh )
ROM_LOAD16_BYTE( "6d_qh_01-2398_11193.bin",0x0001, 0x0800, CRC(1db80656) SHA1(5cbfc2e4ba0c8028ff5e0ba2ec6220d8afb8cfc2) )
ROM_REGION( 0x4000*2, "gfx2", 0 )
- ROM_FILL(0, 0x4000*2, 0)
+ ROM_FILL(0, 0x4000*2, nullptr)
ROM_REGION( 0x800, "ld_data", 0 )
ROM_LOAD( "-g_l-.bin", 0x0000, 0x0800, CRC(05c09fa6) SHA1(92ec4c225e477194d2c134403d9ebf922149b51c) )
@@ -922,7 +922,7 @@ ROM_START( quarterha )
ROM_LOAD16_BYTE( "6d_qh_01-2398_11193.bin",0x0001, 0x0800, CRC(1db80656) SHA1(5cbfc2e4ba0c8028ff5e0ba2ec6220d8afb8cfc2) )
ROM_REGION( 0x4000*2, "gfx2", 0 )
- ROM_FILL(0, 0x4000*2, 0)
+ ROM_FILL(0, 0x4000*2, nullptr)
ROM_REGION( 0x800, "ld_data", 0 )
ROM_LOAD( "-g_l-.bin", 0x0000, 0x0800, CRC(05c09fa6) SHA1(92ec4c225e477194d2c134403d9ebf922149b51c) )
@@ -946,13 +946,13 @@ ROM_START( quarterhb )
ROM_LOAD16_BYTE( "a3.bin",0x0000, 0x4000, CRC(8b5296b1) SHA1(9d27d85f2edb44b96acce3c3f3e611217dcef70d) ) // /
ROM_REGION16_LE( 0x4000, "gfx1", 0 )
- ROM_COPY("gfx_data", 0x0000, 0x1000, 0x0800 )
+ ROM_COPY("gfx_data", nullptr, 0x1000, 0x0800 )
ROM_COPY("gfx_data", 0x0800, 0x0000, 0x0800 )
ROM_COPY("gfx_data", 0x1000, 0x1800, 0x0800 )
ROM_COPY("gfx_data", 0x1800, 0x0800, 0x0800 )
ROM_REGION( 0x4000*2, "gfx2", 0 )
- ROM_FILL(0, 0x4000*2, 0)
+ ROM_FILL(0, 0x4000*2, nullptr)
ROM_REGION( 0x800, "ld_data", ROMREGION_ERASEFF )
@@ -980,10 +980,10 @@ ROM_START( qc )
ROM_COPY("gfx_data", 0x6800, 0x0000, 0x800 )
ROM_COPY("gfx_data", 0x7000, 0x1800, 0x800 )
ROM_COPY("gfx_data", 0x7800, 0x0800, 0x800 )
- ROM_COPY("gfx1", 0x0000, 0x2000, 0x2000 )
+ ROM_COPY("gfx1", nullptr, 0x2000, 0x2000 )
ROM_REGION( 0x4000*2, "gfx2", 0 )
- ROM_FILL(0, 0x4000*2, 0)
+ ROM_FILL(0, 0x4000*2, nullptr)
// borrowed from above and slightly edited
ROM_REGION( 0x40, "proms", 0 )
diff --git a/src/mame/drivers/dynax.cpp b/src/mame/drivers/dynax.cpp
index bdd48788764..3c04638cf06 100644
--- a/src/mame/drivers/dynax.cpp
+++ b/src/mame/drivers/dynax.cpp
@@ -4287,7 +4287,7 @@ MACHINE_START_MEMBER(dynax_state,dynax)
MACHINE_RESET_MEMBER(dynax_state,dynax)
{
- if (m_msm != NULL)
+ if (m_msm != nullptr)
MACHINE_RESET_CALL_MEMBER(adpcm);
m_sound_irq = 0;
@@ -5068,7 +5068,7 @@ ROM_START( cdracula )
ROM_LOAD( "escape.uc", 0x40000, 0x20000, CRC(393fa285) SHA1(654ab2fb92efa28f65bcc7c70a9fae2e43657309) )
ROM_LOAD( "escape.ud", 0x60000, 0x20000, CRC(eff474af) SHA1(7ab1f0079d051c9b0c4aa566a4d92032c7060d8e) )
ROM_LOAD( "escape.ue", 0x80000, 0x20000, CRC(0f9dc93b) SHA1(a3b33795cf07882ecc80d9afa5174e771ee0df08) )
- ROM_FILL( 0xa0000, 0x20000, 0 )
+ ROM_FILL( 0xa0000, 0x20000, nullptr )
ROM_REGION( 0x400, "proms", 0 ) // Color PROMs
ROM_LOAD( "82s147an.u26", 0x000, 0x200, CRC(1a3fe146) SHA1(7d1b4dd66fc95ea5ed584f0bb571cca09fe519b0) ) // FIXED BITS (00xxxxxx)
@@ -6913,7 +6913,7 @@ ROM_START( tenkai2b )
ROM_LOAD( "mc2.u21", 0x000000, 0x100000, CRC(713f79d7) SHA1(6e518b3127b232cc280b172dedbbc708987f9325) )
ROM_REGION( 0x100000, "gfx3", 0 ) // blitter data
- ROM_COPY( "gfx1", 0, 0, 0x100000 )
+ ROM_COPY( "gfx1", nullptr, 0, 0x100000 )
ROM_LOAD( "mc3.u15", 0x00000, 0x20000, CRC(5b552cdf) SHA1(86aaa02dcf8dab670d818287c91c8cb296362401) ) // 1xxxxxxxxxxxxxxxx = 0xFF
ROM_END
@@ -6985,7 +6985,7 @@ ROM_START( tenkaibb )
ROM_LOAD( "lzc-02.u19", 0x000000, 0x100000, CRC(90a19443) SHA1(8f593c00e39dd5acc76b058591019d117967a17b) )
ROM_REGION( 0x100000, "gfx3", 0 ) // blitter data
- ROM_COPY( "gfx1", 0, 0, 0x100000 )
+ ROM_COPY( "gfx1", nullptr, 0, 0x100000 )
ROM_LOAD( "lzc-03.u15", 0x000000, 0x020000, CRC(5b552cdf) SHA1(86aaa02dcf8dab670d818287c91c8cb296362401) ) // 1xxxxxxxxxxxxxxxx = 0xFF
ROM_END
diff --git a/src/mame/drivers/dynduke.cpp b/src/mame/drivers/dynduke.cpp
index 803e2c501fa..4f4bd4a8487 100644
--- a/src/mame/drivers/dynduke.cpp
+++ b/src/mame/drivers/dynduke.cpp
@@ -330,7 +330,7 @@ ROM_START( dynduke )
ROM_REGION( 0x20000*2, "audiocpu", 0 ) /* sound Z80 */
ROM_LOAD( "8.w8", 0x000000, 0x08000, CRC(3c29480b) SHA1(031a0b808df32b5ae4f722c9e9f69554d30505c1) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 )
ROM_LOAD( "9.5k", 0x000000, 0x04000, CRC(f2bc9af4) SHA1(9092ebe9dced243c3a7f63198a1180143dd42cea) ) /* chars */
@@ -378,7 +378,7 @@ ROM_START( dyndukea )
ROM_REGION( 0x20000*2, "audiocpu", 0 ) /* sound Z80 */
ROM_LOAD( "8.w8", 0x000000, 0x08000, CRC(3c29480b) SHA1(031a0b808df32b5ae4f722c9e9f69554d30505c1) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 )
ROM_LOAD( "9.5k", 0x000000, 0x04000, CRC(f2bc9af4) SHA1(9092ebe9dced243c3a7f63198a1180143dd42cea) ) /* chars */
@@ -426,7 +426,7 @@ ROM_START( dyndukej )
ROM_REGION( 0x20000*2, "audiocpu", 0 ) /* sound Z80 */
ROM_LOAD( "8.w8", 0x000000, 0x08000, CRC(3c29480b) SHA1(031a0b808df32b5ae4f722c9e9f69554d30505c1) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 )
ROM_LOAD( "9.5k", 0x000000, 0x04000, CRC(f2bc9af4) SHA1(9092ebe9dced243c3a7f63198a1180143dd42cea) ) /* chars */
@@ -474,7 +474,7 @@ ROM_START( dyndukeu )
ROM_REGION( 0x20000*2, "audiocpu", 0 ) /* sound Z80 */
ROM_LOAD( "8.w8", 0x000000, 0x08000, CRC(3c29480b) SHA1(031a0b808df32b5ae4f722c9e9f69554d30505c1) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 )
ROM_LOAD( "9.5k", 0x000000, 0x04000, CRC(f2bc9af4) SHA1(9092ebe9dced243c3a7f63198a1180143dd42cea) ) /* chars */
@@ -522,7 +522,7 @@ ROM_START( dbldynj )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* sound Z80 */
ROM_LOAD( "8x.w8", 0x000000, 0x08000, CRC(f4066081) SHA1(0e5246f4f5513be11e6ed3ea26aada7e0a17a448) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 )
ROM_LOAD( "9x.5k", 0x000000, 0x04000, CRC(913709e3) SHA1(a469043a09718409f7af835f7c045baedad92061) ) /* chars */
@@ -570,7 +570,7 @@ ROM_START( dbldynu )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* sound Z80 */
ROM_LOAD( "8x.w8", 0x000000, 0x08000, CRC(f4066081) SHA1(0e5246f4f5513be11e6ed3ea26aada7e0a17a448) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 )
ROM_LOAD( "9x.5k", 0x000000, 0x04000, CRC(913709e3) SHA1(a469043a09718409f7af835f7c045baedad92061) ) /* chars */
diff --git a/src/mame/drivers/ec184x.cpp b/src/mame/drivers/ec184x.cpp
index f85a1aa8219..e0a1ed23348 100644
--- a/src/mame/drivers/ec184x.cpp
+++ b/src/mame/drivers/ec184x.cpp
@@ -237,10 +237,10 @@ static MACHINE_CONFIG_START( ec1840, ec184x_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", ec184x_isa8_cards, "ec1840.0002", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", ec184x_isa8_cards, "ec1841.0003", false) // actually ec1840.0003 -- w/o mouse port
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", ec184x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", ec184x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", ec184x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", ec184x_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", ec184x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", ec184x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", ec184x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", ec184x_isa8_cards, nullptr, false)
MCFG_SOFTWARE_LIST_ADD("flop_list","ec1841")
@@ -264,9 +264,9 @@ static MACHINE_CONFIG_START( ec1841, ec184x_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", ec184x_isa8_cards, "ec1841.0002", false) // cga
MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", ec184x_isa8_cards, "ec1841.0003", false) // fdc + mouse port
MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", ec184x_isa8_cards, "hdc", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", ec184x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", ec184x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", ec184x_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", ec184x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", ec184x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", ec184x_isa8_cards, nullptr, false)
MCFG_SOFTWARE_LIST_ADD("flop_list","ec1841")
@@ -289,10 +289,10 @@ static MACHINE_CONFIG_START( ec1847, ec184x_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, "hercules", false) // cga, ega and vga(?) are options too
MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "fdc_xt", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, NULL, false) // native variant (wd1010 + z80) not emulated
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, NULL, false) // native serial (2x8251) not emulated
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, nullptr, false) // native variant (wd1010 + z80) not emulated
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, nullptr, false) // native serial (2x8251) not emulated
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, nullptr, false)
MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270)
diff --git a/src/mame/drivers/einstein.cpp b/src/mame/drivers/einstein.cpp
index 1da33669927..41cd632f51f 100644
--- a/src/mame/drivers/einstein.cpp
+++ b/src/mame/drivers/einstein.cpp
@@ -144,7 +144,7 @@ static const z80_daisy_config einstein_daisy_chain[] =
{ "adc_daisy" },
{ IC_I063 },
{ "fire_daisy" },
- { NULL }
+ { nullptr }
};
@@ -222,7 +222,7 @@ WRITE8_MEMBER(einstein_state::einstein_drsel_w)
/* bit 0 to 3 select the drive */
static const char *names[] = { IC_I042 ":0", IC_I042 ":1", IC_I042 ":2", IC_I042 ":3" };
- floppy_image_device *floppy = 0;
+ floppy_image_device *floppy = nullptr;
for(int i=0; i<4; i++) {
if(BIT(data, i)) {
floppy_connector *con = machine().device<floppy_connector>(names[i]);
diff --git a/src/mame/drivers/eolithsp.cpp b/src/mame/drivers/eolithsp.cpp
index ace5a16201a..cf625b726ba 100644
--- a/src/mame/drivers/eolithsp.cpp
+++ b/src/mame/drivers/eolithsp.cpp
@@ -63,7 +63,7 @@ static const struct
{ "klondkp", 0x0001a046, -1, 240 },
/* vegaeo.c */
{ "crazywar", 0x00008cf8, -1, 240 },
- { NULL, 0, 0 }
+ { nullptr, 0, 0 }
};
@@ -76,7 +76,7 @@ void eolith_state::init_speedup()
m_speedup_vblank = 0;
m_speedup_scanline = 0;
- while( eolith_speedup_table[ n_game ].s_name != NULL )
+ while( eolith_speedup_table[ n_game ].s_name != nullptr )
{
if( strcmp( machine().system().name, eolith_speedup_table[ n_game ].s_name ) == 0 )
{
diff --git a/src/mame/drivers/ep64.cpp b/src/mame/drivers/ep64.cpp
index 1857ede0231..eb537de944b 100644
--- a/src/mame/drivers/ep64.cpp
+++ b/src/mame/drivers/ep64.cpp
@@ -512,7 +512,7 @@ static MACHINE_CONFIG_START( ep64, ep64_state )
MCFG_DAVE_IRQ_CALLBACK(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
// devices
- MCFG_EP64_EXPANSION_BUS_SLOT_ADD(EP64_EXPANSION_BUS_TAG, NULL)
+ MCFG_EP64_EXPANSION_BUS_SLOT_ADD(EP64_EXPANSION_BUS_TAG, nullptr)
MCFG_EP64_EXPANSION_BUS_SLOT_DAVE(DAVE_TAG)
MCFG_EP64_EXPANSION_BUS_SLOT_IRQ_CALLBACK(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
MCFG_EP64_EXPANSION_BUS_SLOT_NMI_CALLBACK(INPUTLINE(Z80_TAG, INPUT_LINE_NMI))
@@ -522,7 +522,7 @@ static MACHINE_CONFIG_START( ep64, ep64_state )
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(ep64_state, write_centronics_busy))
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG)
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(DAVE_TAG, dave_device, int2_w))
MCFG_CASSETTE_ADD(CASSETTE1_TAG)
diff --git a/src/mame/drivers/eprom.cpp b/src/mame/drivers/eprom.cpp
index 87f9fb4063e..6a5644ea313 100644
--- a/src/mame/drivers/eprom.cpp
+++ b/src/mame/drivers/eprom.cpp
@@ -41,7 +41,7 @@ void eprom_state::update_interrupts()
{
m_maincpu->set_input_line(4, m_video_int_state ? ASSERT_LINE : CLEAR_LINE);
- if (m_extra != NULL)
+ if (m_extra != nullptr)
m_extra->set_input_line(4, m_video_int_state ? ASSERT_LINE : CLEAR_LINE);
m_maincpu->set_input_line(6, m_sound_int_state ? ASSERT_LINE : CLEAR_LINE);
@@ -89,7 +89,7 @@ READ16_MEMBER(eprom_state::adc_r)
WRITE16_MEMBER(eprom_state::eprom_latch_w)
{
- if (ACCESSING_BITS_0_7 && (m_extra != NULL))
+ if (ACCESSING_BITS_0_7 && (m_extra != nullptr))
{
/* bit 0: reset extra CPU */
if (data & 1)
diff --git a/src/mame/drivers/equites.cpp b/src/mame/drivers/equites.cpp
index a6aab2c34dc..236a97a73ef 100644
--- a/src/mame/drivers/equites.cpp
+++ b/src/mame/drivers/equites.cpp
@@ -616,7 +616,7 @@ READ16_MEMBER(equites_state::equites_spriteram_kludge_r)
READ8_MEMBER(equites_state::mcu_ram_r)
{
- if (m_fakemcu == NULL)
+ if (m_fakemcu == nullptr)
return m_alpha_8201->ext_ram_r(space, offset);
else
return m_mcuram[offset];
@@ -624,7 +624,7 @@ READ8_MEMBER(equites_state::mcu_ram_r)
WRITE8_MEMBER(equites_state::mcu_ram_w)
{
- if (m_fakemcu == NULL)
+ if (m_fakemcu == nullptr)
m_alpha_8201->ext_ram_w(space, offset, data);
else
m_mcuram[offset] = data;
@@ -633,7 +633,7 @@ WRITE8_MEMBER(equites_state::mcu_ram_w)
WRITE16_MEMBER(equites_state::mcu_start_w)
{
// data bit is A16 (offset)
- if (m_fakemcu == NULL)
+ if (m_fakemcu == nullptr)
m_alpha_8201->mcu_start_w(offset != 0);
else
m_fakemcu->set_input_line(INPUT_LINE_HALT, (offset != 0) ? ASSERT_LINE : CLEAR_LINE);
@@ -642,7 +642,7 @@ WRITE16_MEMBER(equites_state::mcu_start_w)
WRITE16_MEMBER(equites_state::mcu_switch_w)
{
// data bit is A16 (offset)
- if (m_fakemcu == NULL)
+ if (m_fakemcu == nullptr)
m_alpha_8201->bus_dir_w(offset == 0);
}
@@ -1036,7 +1036,7 @@ static const char *const alphamc07_sample_names[] =
"bongo1",
"bongo2",
"bongo3",
- 0
+ nullptr
};
@@ -1366,7 +1366,7 @@ ROM_START( bullfgtr )
ROM_LOAD16_BYTE( "hp6vr.bin", 0x04000, 0x2000, CRC(3dfadcf4) SHA1(724d45df0be7073bbe2767f3c0d050c8b45c9d27) )
ROM_LOAD16_BYTE( "hp3vr.bin", 0x08001, 0x2000, CRC(d3a21f8a) SHA1(2b3135aaae798eeee5850e616ed6ad8987fbc01b) )
ROM_LOAD16_BYTE( "hp7vr.bin", 0x08000, 0x2000, CRC(665cc015) SHA1(17fe18c8f22808a102f48bc4cbc8e4a1f6f9eaf1) )
- ROM_FILL( 0x0c000, 0x4000, 0 )
+ ROM_FILL( 0x0c000, 0x4000, nullptr )
ROM_REGION( 0x10000, "audiocpu", 0 ) // 8085A ROMs
ROM_LOAD( "hv1vr.bin", 0x00000, 0x2000, CRC(2a8e6fcf) SHA1(866903408e05938a982ffef4c9b849203c6cc060) )
@@ -1448,7 +1448,7 @@ ROM_START( bullfgtrs )
ROM_LOAD16_BYTE( "m_b12.bin", 0x04000, 0x2000, CRC(d98390ef) SHA1(17006503325627055c8b22052d7ed94e474f4ef7) )
ROM_LOAD16_BYTE( "m_d10.bin", 0x08001, 0x2000, CRC(21875752) SHA1(016db4125b1a4584ae277af427370780d96a17c5) )
ROM_LOAD16_BYTE( "m_b10.bin", 0x08000, 0x2000, CRC(9d84f678) SHA1(32584d54788cb570bd5210992836f28ba9c87aac) )
- ROM_FILL( 0x0c000, 0x4000, 0 )
+ ROM_FILL( 0x0c000, 0x4000, nullptr )
ROM_REGION( 0x10000, "audiocpu", 0 ) // 8085A ROMs
ROM_LOAD( "hv1vr.bin", 0x00000, 0x2000, CRC(2a8e6fcf) SHA1(866903408e05938a982ffef4c9b849203c6cc060) )
@@ -1516,7 +1516,7 @@ ROM_START( kouyakyu )
ROM_LOAD16_BYTE( "epr-6708.bin", 0x04000, 0x2000, CRC(f8863dc5) SHA1(bfdd294d51420dd70aa97942909a9b8a95ffc05c) )
ROM_LOAD16_BYTE( "epr-6706.bin", 0x08001, 0x2000, BAD_DUMP CRC(79e94cd2) SHA1(f44c2292614b46116818fad9a7eb48cceeb3b819) ) // was bad, manually patched
ROM_LOAD16_BYTE( "epr-6709.bin", 0x08000, 0x2000, CRC(f41cb58c) SHA1(f0d1048e949d51432739755f985e4df65b8e918b) )
- ROM_FILL( 0x0c000, 0x4000, 0 )
+ ROM_FILL( 0x0c000, 0x4000, nullptr )
ROM_REGION( 0x10000, "audiocpu", 0 ) // 8085A ROMs
ROM_LOAD( "epr-6703.bin", 0x00000, 0x2000, CRC(fbff3a86) SHA1(4ed2887b1e4509ded853a230f735d4d2aa475886) )
diff --git a/src/mame/drivers/esd16.cpp b/src/mame/drivers/esd16.cpp
index badd4bd76d5..656c7a615dc 100644
--- a/src/mame/drivers/esd16.cpp
+++ b/src/mame/drivers/esd16.cpp
@@ -892,7 +892,7 @@ ROM_START( mchampdx )
ROM_LOAD( "ver0106_ju02.bin", 0x000000, 0x200000, CRC(b27a4977) SHA1(b7f94bb04d0046538b3938335e6b0cce330ad79c) )
/* expand this to take up 0x200000 bytes too so we can decode it */
ROM_LOAD16_BYTE( "ver0106_esd5.ju07", 0x400000, 0x040000, CRC(7a3ac887) SHA1(3c759f9bed396bbaf6bd7298a8bd2bd76df3aa6f) )
- ROM_FILL( 0x500000, 0x100000, 0 )
+ ROM_FILL( 0x500000, 0x100000, nullptr )
ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */
ROM_LOAD16_BYTE( "rom.fu35", 0x000000, 0x200000, CRC(ba46f3dc) SHA1(4ac7695bdf4237654481f7f74f8650d70a51e691) )
@@ -915,7 +915,7 @@ ROM_START( mchampdxa )
ROM_LOAD( "rom.ju02", 0x000000, 0x200000, CRC(7e87e332) SHA1(f90aa00a64a940846d99053c7aa023e3fd5d070b) )
/* expand this to take up 0x200000 bytes too so we can decode it */
ROM_LOAD16_BYTE( "esd5.ju07", 0x400000, 0x080000, CRC(6cc871cc) SHA1(710b9695c864e4234686993b88d24590d60e1cb9) )
- ROM_FILL( 0x500000, 0x100000, 0 )
+ ROM_FILL( 0x500000, 0x100000, nullptr )
ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */
ROM_LOAD16_BYTE( "rom.fu35", 0x000000, 0x200000, CRC(ba46f3dc) SHA1(4ac7695bdf4237654481f7f74f8650d70a51e691) )
@@ -938,7 +938,7 @@ ROM_START( mchampdxb )
ROM_LOAD( "ver1114_ju02", 0x000000, 0x200000, CRC(2f9ccff8) SHA1(176240cd247cc5d3efd58fe0630726a8633be2a4) )
/* expand this to take up 0x200000 bytes too so we can decode it */
ROM_LOAD16_BYTE( "ver1114_esd5.ju07", 0x400000, 0x040000, CRC(8175939f) SHA1(cd0132ae0d2e35dc656434989b1f0f255ad562ab) )
- ROM_FILL( 0x500000, 0x100000, 0 )
+ ROM_FILL( 0x500000, 0x100000, nullptr )
ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */
ROM_LOAD16_BYTE( "ver1114_fu35", 0x000000, 0x200000, CRC(c515c704) SHA1(c1657534314e66a25c38f70a12f14d2225ab89cc) ) // SMT Flash MX chips
@@ -1048,7 +1048,7 @@ ROM_START( hedpanic ) /* Story line & game instructions in English */
ROM_LOAD( "esd7.ju02", 0x000000, 0x200000, CRC(055d525f) SHA1(85ad474691f96e47311a1904015d1c92d3b2d607) )
/* expand this to take up 0x200000 bytes too so we can decode it */
ROM_LOAD16_BYTE( "esd5.ju07", 0x400000, 0x080000, CRC(bd785921) SHA1(c8bcb38d5aa6f5a27f0dedf7efd1d6737d59b4ca) )
- ROM_FILL( 0x500000, 0x100000, 0 )
+ ROM_FILL( 0x500000, 0x100000, nullptr )
ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */
ROM_LOAD16_BYTE( "esd8.fu35", 0x000000, 0x200000, CRC(23aceb4f) SHA1(35d9ebc33b9e1515e47750cfcdfc0bf8bf44b71d) )
@@ -1075,7 +1075,7 @@ ROM_START( hedpanicf ) /* Story line in Japanese, game instructions in English *
ROM_LOAD( "esd7.ju02", 0x000000, 0x200000, CRC(055d525f) SHA1(85ad474691f96e47311a1904015d1c92d3b2d607) )
/* expand this to take up 0x200000 bytes too so we can decode it */
ROM_LOAD16_BYTE( "esd5.ju07", 0x400000, 0x080000, CRC(bd785921) SHA1(c8bcb38d5aa6f5a27f0dedf7efd1d6737d59b4ca) )
- ROM_FILL( 0x500000, 0x100000, 0 )
+ ROM_FILL( 0x500000, 0x100000, nullptr )
ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */
ROM_LOAD16_BYTE( "esd8.fu35", 0x000000, 0x200000, CRC(23aceb4f) SHA1(35d9ebc33b9e1515e47750cfcdfc0bf8bf44b71d) )
@@ -1102,7 +1102,7 @@ ROM_START( hedpanico ) /* Story line & game instructions in English, copyright y
ROM_LOAD( "sm2.ju02", 0x200000, 0x200000, CRC(7a9610e4) SHA1(21ae3ec3fbddfc66416c109b091bd885d5ba0558) )
/* expand this to take up 0x200000 bytes too so we can decode it */
ROM_LOAD16_BYTE( "esd5.rom", 0x400000, 0x080000, CRC(82c5727f) SHA1(017f1d0c94475c51d17f12e24895f47a273a2dbb) ) /* JU07 */
- ROM_FILL( 0x500000, 0x100000, 0 )
+ ROM_FILL( 0x500000, 0x100000, nullptr )
ROM_REGION( 0x400000, "bgs", 0 ) /* Layers, 16x16x8 */
ROM_LOAD16_BYTE( "sm3.fu35", 0x000000, 0x200000, CRC(94dd4cfc) SHA1(a3f9c49611f0bc9d26166dafb44e2c5ebbb31127) )
diff --git a/src/mame/drivers/esq5505.cpp b/src/mame/drivers/esq5505.cpp
index aaca4b127da..ce63ecf4b7b 100644
--- a/src/mame/drivers/esq5505.cpp
+++ b/src/mame/drivers/esq5505.cpp
@@ -277,7 +277,7 @@ void esq5505_state::machine_start()
void esq5505_state::machine_reset()
{
floppy_connector *con = machine().device<floppy_connector>("wd1772:0");
- floppy_image_device *floppy = con ? con->get_device() : 0;
+ floppy_image_device *floppy = con ? con->get_device() : nullptr;
m_rom = (UINT16 *)(void *)memregion("osrom")->base();
m_ram = (UINT16 *)(void *)memshare("osram")->ptr();
@@ -453,7 +453,7 @@ WRITE_LINE_MEMBER(esq5505_state::duart_irq_handler)
WRITE8_MEMBER(esq5505_state::duart_output)
{
floppy_connector *con = machine().device<floppy_connector>("wd1772:0");
- floppy_image_device *floppy = con ? con->get_device() : 0;
+ floppy_image_device *floppy = con ? con->get_device() : nullptr;
m_duart_io = data;
@@ -905,7 +905,7 @@ DRIVER_INIT_MEMBER(esq5505_state,common)
m_duart_io = 0;
floppy_connector *con = machine().device<floppy_connector>("wd1772:0");
- floppy_image_device *floppy = con ? con->get_device() : 0;
+ floppy_image_device *floppy = con ? con->get_device() : nullptr;
if (floppy)
{
m_fdc->set_floppy(floppy);
diff --git a/src/mame/drivers/ettrivia.cpp b/src/mame/drivers/ettrivia.cpp
index 0d4337afd49..4bee0fbe9c6 100644
--- a/src/mame/drivers/ettrivia.cpp
+++ b/src/mame/drivers/ettrivia.cpp
@@ -234,7 +234,7 @@ PALETTE_INIT_MEMBER(ettrivia_state, ettrivia)
compute_resistor_weights(0, 255, -1.0,
2, resistances, weights, 0, 0,
2, resistances, weights, 0, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
for (i = 0;i < palette.entries(); i++)
{
diff --git a/src/mame/drivers/excali64.cpp b/src/mame/drivers/excali64.cpp
index 3e4664ca913..c59c188e9e6 100644
--- a/src/mame/drivers/excali64.cpp
+++ b/src/mame/drivers/excali64.cpp
@@ -249,7 +249,7 @@ READ8_MEMBER( excali64_state::porte8_r )
WRITE8_MEMBER( excali64_state::porte4_w )
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (BIT(data, 0))
floppy = m_floppy0->get_device();
@@ -626,12 +626,12 @@ ROM_START( excali64 )
ROM_LOAD( "rom_1.ic17", 0x0000, 0x4000, CRC(e129a305) SHA1(e43ec7d040c2b2e548d22fd6bbc7df8b45a26e5a) )
ROM_LOAD( "rom_2.ic24", 0x4000, 0x2000, CRC(916d9f5a) SHA1(91c527cce963481b7bebf077e955ca89578bb553) )
// fix a bug that causes screen to be filled with 'p'
- ROM_FILL(0x4ee, 1, 0)
+ ROM_FILL(0x4ee, 1, nullptr)
ROM_FILL(0x4ef, 1, 8)
- ROM_FILL(0x4f6, 1, 0)
+ ROM_FILL(0x4f6, 1, nullptr)
ROM_FILL(0x4f7, 1, 8)
// patch out the protection
- ROM_FILL(0x3ce7, 1, 0)
+ ROM_FILL(0x3ce7, 1, nullptr)
ROM_REGION(0x10000, "rambank", ROMREGION_ERASE00)
ROM_REGION(0xA000, "videoram", ROMREGION_ERASE00)
diff --git a/src/mame/drivers/exerion.cpp b/src/mame/drivers/exerion.cpp
index 611a6d4c5d9..6cee2544726 100644
--- a/src/mame/drivers/exerion.cpp
+++ b/src/mame/drivers/exerion.cpp
@@ -232,7 +232,7 @@ ADDRESS_MAP_END
/* verified from Z80 code */
static INPUT_PORTS_START( exerion )
PORT_START("IN0")
- PORT_BIT( 0x3f, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, exerion_state,exerion_controls_r, (void *)0)
+ PORT_BIT( 0x3f, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, exerion_state,exerion_controls_r, (void *)nullptr)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )
diff --git a/src/mame/drivers/exidy440.cpp b/src/mame/drivers/exidy440.cpp
index b35de1fe770..7c4b1d9814b 100644
--- a/src/mame/drivers/exidy440.cpp
+++ b/src/mame/drivers/exidy440.cpp
@@ -298,7 +298,7 @@ CUSTOM_INPUT_MEMBER(exidy440_state::hitnmiss_button1_r)
void exidy440_state::exidy440_bank_select(UINT8 bank)
{
/* for the showdown case, bank 0 is a PLD */
- if (m_showdown_bank_data[0] != NULL)
+ if (m_showdown_bank_data[0] != nullptr)
{
if (bank == 0 && m_bank != 0)
m_maincpu->space(AS_PROGRAM).install_read_handler(0x4000, 0x7fff, read8_delegate(FUNC(exidy440_state::showdown_bank0_r),this));
@@ -1994,7 +1994,7 @@ ROM_END
DRIVER_INIT_MEMBER(exidy440_state,exidy440)
{
- m_showdown_bank_data[0] = m_showdown_bank_data[1] = NULL;
+ m_showdown_bank_data[0] = m_showdown_bank_data[1] = nullptr;
}
diff --git a/src/mame/drivers/f1gp.cpp b/src/mame/drivers/f1gp.cpp
index 201fd3fdb57..4d41c1159e7 100644
--- a/src/mame/drivers/f1gp.cpp
+++ b/src/mame/drivers/f1gp.cpp
@@ -621,7 +621,7 @@ ROM_START( f1gpb )
ROMX_LOAD( "18.ic140", 0x000000, 0x80000, CRC(9b2a4325) SHA1(b2020e08251366686c4c0045f3fd523fa327badf), ROM_SKIP(3) )
ROM_REGION( 0x100000, "gfx2", 0 )
- ROM_COPY("user3", 0, 0, 0x100000)
+ ROM_COPY("user3", nullptr, 0, 0x100000)
ROM_REGION( 0x080000, "gfx3", 0 )
ROM_COPY("user3", 0x100000, 0, 0x80000)
diff --git a/src/mame/drivers/fantland.cpp b/src/mame/drivers/fantland.cpp
index 9153a4cb5a9..f6f0f08643b 100644
--- a/src/mame/drivers/fantland.cpp
+++ b/src/mame/drivers/fantland.cpp
@@ -736,7 +736,7 @@ static INPUT_PORTS_START( wheelrun )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, fantland_state,wheelrun_wheel_r, (void *)0)
+ PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, fantland_state,wheelrun_wheel_r, (void *)nullptr)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("53001") /* 53001 */
@@ -1085,7 +1085,7 @@ ROM_START( fantland )
ROM_REGION( 0x100000, "maincpu", 0 ) // Main CPU
ROM_LOAD16_BYTE( "fantasyl.ev2", 0x00000, 0x20000, CRC(f5bdca0e) SHA1(d05cf6f68d4d1a3dcc0171f7cf220c4920bd47bb) )
ROM_LOAD16_BYTE( "fantasyl.od2", 0x00001, 0x20000, CRC(9db35023) SHA1(81e2accd67dcf8563a68b2c4e35526f23a40150c) )
- ROM_COPY( "maincpu", 0x00000, 0x40000, 0x40000 )
+ ROM_COPY( "maincpu", nullptr, 0x40000, 0x40000 )
ROM_LOAD16_BYTE( "fantasyl.ev1", 0xe0000, 0x10000, CRC(70e0ee30) SHA1(5253213da56b3f97e2811f2b10927d0e542447f0) )
ROM_LOAD16_BYTE( "fantasyl.od1", 0xe0001, 0x10000, CRC(577b4bd7) SHA1(1f08202d99c3e39e0dd1ed4947b928b695a5b411) )
@@ -1114,7 +1114,7 @@ ROM_START( fantlanda )
ROM_REGION( 0x100000, "maincpu", 0 ) // Main CPU
ROM_LOAD16_BYTE( "fantasyl.ev2", 0x00000, 0x20000, CRC(f5bdca0e) SHA1(d05cf6f68d4d1a3dcc0171f7cf220c4920bd47bb) ) // 04.bin (was first half only)
ROM_LOAD16_BYTE( "fantasyl.od2", 0x00001, 0x20000, CRC(9db35023) SHA1(81e2accd67dcf8563a68b2c4e35526f23a40150c) ) // 03.bin (was first half only)
- ROM_COPY( "maincpu", 0x00000, 0x40000, 0x40000 )
+ ROM_COPY( "maincpu", nullptr, 0x40000, 0x40000 )
ROM_LOAD16_BYTE( "02.bin", 0xe0000, 0x10000, CRC(8b835eed) SHA1(6a6b3fe116145f685b91dcd5301165f17973697c) )
ROM_LOAD16_BYTE( "01.bin", 0xe0001, 0x10000, CRC(4fa3eb8b) SHA1(56da42a4e2972a696ef28811116cbc20bb5ba3e8) )
diff --git a/src/mame/drivers/fastfred.cpp b/src/mame/drivers/fastfred.cpp
index 3165a2bfb66..b2a0ef046e6 100644
--- a/src/mame/drivers/fastfred.cpp
+++ b/src/mame/drivers/fastfred.cpp
@@ -626,7 +626,7 @@ GFXDECODE_END
static GFXDECODE_START( imago )
GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 32 )
- GFXDECODE_ENTRY( NULL, 0xb800, imago_spritelayout, 0, 32 )
+ GFXDECODE_ENTRY( nullptr, 0xb800, imago_spritelayout, 0, 32 )
GFXDECODE_ENTRY( "gfx3", 0, charlayout, 0, 32 )
GFXDECODE_ENTRY( "gfx4", 0, imago_char_1bpp, 0x140, 1 )
GFXDECODE_END
@@ -955,7 +955,7 @@ ROM_START( imago )
ROM_REGION( 0x3000, "gfx3", 0 )
ROM_LOAD( "imago14.170", 0x0000, 0x1000, CRC(eded37f6) SHA1(c2ff5d4c1b001740ec4453467f879035db196a9b) )
- ROM_FILL( 0x1000, 0x2000, 0 )
+ ROM_FILL( 0x1000, 0x2000, nullptr )
ROM_REGION( 0x1000, "gfx4", 0 )
ROM_LOAD( "imago15.191", 0x0000, 0x1000, CRC(85fcc195) SHA1(a76f24201c037d1e6f909fb0ea4ad59b1d6ddd57) )
@@ -992,7 +992,7 @@ ROM_START( imagoa )
ROM_REGION( 0x3000, "gfx3", 0 )
ROM_LOAD( "imago14.170", 0x0000, 0x1000, CRC(eded37f6) SHA1(c2ff5d4c1b001740ec4453467f879035db196a9b) )
- ROM_FILL( 0x1000, 0x2000, 0 )
+ ROM_FILL( 0x1000, 0x2000, nullptr )
ROM_REGION( 0x1000, "gfx4", 0 )
ROM_LOAD( "imago15.191", 0x0000, 0x1000, CRC(85fcc195) SHA1(a76f24201c037d1e6f909fb0ea4ad59b1d6ddd57) )
diff --git a/src/mame/drivers/fcrash.cpp b/src/mame/drivers/fcrash.cpp
index 06d4f59beb8..3272849c8de 100644
--- a/src/mame/drivers/fcrash.cpp
+++ b/src/mame/drivers/fcrash.cpp
@@ -1792,7 +1792,7 @@ ROM_START( fcrash )
ROMX_LOAD( "17.bin", 0x180003, 0x20000, CRC(c59a4d6c) SHA1(59e49c7d24dd333007de4bb621050011a5392bcc) , ROM_SKIP(3) )
ROM_REGION( 0x8000, "gfx2", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 ) /* stars */
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 ) /* stars */
ROM_END
ROM_START( ffightbl )
@@ -1811,7 +1811,7 @@ ROM_START( ffightbl )
ROMX_LOAD( "fg-a.bin", 0x000003, 0x80000, CRC(16a89b2c) SHA1(4d0e1ec6ae9a2bd31fa77140532bbce64d3874e9) , ROM_SKIP(3) )
ROM_REGION( 0x8000, "gfx2", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 ) /* stars */
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 ) /* stars */
ROM_END
// this is identical to the Final Crash bootleg but without the modified gfx.
@@ -1852,7 +1852,7 @@ ROM_START( ffightbla )
ROMX_LOAD( "17.bin", 0x180003, 0x20000, CRC(c59a4d6c) SHA1(59e49c7d24dd333007de4bb621050011a5392bcc) , ROM_SKIP(3) )
ROM_REGION( 0x8000, "gfx2", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 ) /* stars */
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 ) /* stars */
ROM_END
@@ -1914,7 +1914,7 @@ ROM_START( kodb )
ROMX_LOAD( "bi.ic94", 0x000007, 0x80000, CRC(4a1b43fe) SHA1(7957f45b2862825c9509043c63c7da7108bd251b), ROM_SKIP(7) )
ROM_REGION( 0x8000, "gfx2", 0 )
- ROM_COPY( "gfx", 0x000000, 0x000000, 0x8000 ) /* stars */
+ ROM_COPY( "gfx", nullptr, 0x000000, 0x8000 ) /* stars */
ROM_REGION( 0x40000, "oki", 0 ) /* Samples */
ROM_LOAD( "2.ic19", 0x00000, 0x40000, CRC(a2db1575) SHA1(1a4a29e4b045af50700adf1665697feab12cc234) )
diff --git a/src/mame/drivers/fm7.cpp b/src/mame/drivers/fm7.cpp
index 261e3172c20..4442882d215 100644
--- a/src/mame/drivers/fm7.cpp
+++ b/src/mame/drivers/fm7.cpp
@@ -1160,7 +1160,7 @@ void fm7_state::fm7_mmr_refresh(address_space& space)
if(m_basic_rom_en)
{
UINT8* ROM = memregion("fbasic")->base();
- if(ROM != NULL)
+ if(ROM != nullptr)
membank("fbasic_bank_r")->set_base(ROM);
}
else
diff --git a/src/mame/drivers/fmtowns.cpp b/src/mame/drivers/fmtowns.cpp
index 4f4386d153a..d4ca82081ce 100644
--- a/src/mame/drivers/fmtowns.cpp
+++ b/src/mame/drivers/fmtowns.cpp
@@ -222,7 +222,7 @@ void towns_state::init_serial_rom()
// TODO: init serial ROM contents
int x;
static const UINT8 code[8] = { 0x04,0x65,0x54,0xA4,0x95,0x45,0x35,0x5F };
- UINT8* srom = NULL;
+ UINT8* srom = nullptr;
if(m_serial)
srom = m_serial->base();
@@ -553,7 +553,7 @@ READ8_MEMBER(towns_state::towns_floppy_r)
WRITE8_MEMBER(towns_state::towns_floppy_w)
{
- floppy_image_device* sel[4] = { m_flop0->get_device(), m_flop1->get_device(), NULL, NULL };
+ floppy_image_device* sel[4] = { m_flop0->get_device(), m_flop1->get_device(), nullptr, nullptr };
switch(offset)
{
@@ -582,7 +582,7 @@ WRITE8_MEMBER(towns_state::towns_floppy_w)
// bit 5 - CLKSEL
if(m_towns_selected_drive != 0)
{
- if(sel[m_towns_selected_drive-1] != NULL)
+ if(sel[m_towns_selected_drive-1] != nullptr)
{
sel[m_towns_selected_drive-1]->mon_w((~data & 0x10)>>4);
sel[m_towns_selected_drive-1]->ss_w((data & 0x04)>>2);
@@ -602,22 +602,22 @@ WRITE8_MEMBER(towns_state::towns_floppy_w)
break;
case 0x01:
m_towns_selected_drive = 1;
- if(sel[0] != NULL)
+ if(sel[0] != nullptr)
m_fdc->set_floppy(sel[0]);
break;
case 0x02:
m_towns_selected_drive = 2;
- if(sel[1] != NULL)
+ if(sel[1] != nullptr)
m_fdc->set_floppy(sel[1]);
break;
case 0x04:
m_towns_selected_drive = 3;
- if(sel[2] != NULL)
+ if(sel[2] != nullptr)
m_fdc->set_floppy(sel[2]);
break;
case 0x08:
m_towns_selected_drive = 4;
- if(sel[3] != NULL)
+ if(sel[3] != nullptr)
m_fdc->set_floppy(sel[3]);
break;
}
@@ -1590,7 +1590,7 @@ void towns_state::towns_delay_cdda(cdrom_image_device* dev)
void towns_state::towns_cdrom_execute_command(cdrom_image_device* device)
{
- if(device->get_cdrom_file() == NULL)
+ if(device->get_cdrom_file() == nullptr)
{ // No CD in drive
if(m_towns_cd.command & 0x20)
{
@@ -2584,7 +2584,7 @@ void towns_state::driver_start()
// CD-ROM init
m_towns_cd.read_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(towns_state::towns_cdrom_read_byte),this), (void*)machine().device("dma_1"));
- m_maincpu->space(AS_PROGRAM).install_ram(0x100000,m_ram->size()-1,0xffffffff,0,NULL);
+ m_maincpu->space(AS_PROGRAM).install_ram(0x100000,m_ram->size()-1,0xffffffff,0,nullptr);
}
void marty_state::driver_start()
diff --git a/src/mame/drivers/fruitpc.cpp b/src/mame/drivers/fruitpc.cpp
index 42db7c23f89..8eb9445fe6f 100644
--- a/src/mame/drivers/fruitpc.cpp
+++ b/src/mame/drivers/fruitpc.cpp
@@ -125,7 +125,7 @@ static MACHINE_CONFIG_START( fruitpc, fruitpc_state )
MCFG_FRAGMENT_ADD( pcat_common )
- MCFG_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_2", pic8259_device, ir6_w))
/* video hardware */
diff --git a/src/mame/drivers/funkball.cpp b/src/mame/drivers/funkball.cpp
index 47d7b339457..ac148b8bbd9 100644
--- a/src/mame/drivers/funkball.cpp
+++ b/src/mame/drivers/funkball.cpp
@@ -811,9 +811,9 @@ static MACHINE_CONFIG_START( funkball, funkball_state )
MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0)
MCFG_PCI_BUS_LEGACY_DEVICE(7, "voodoo_0", voodoo_0_pci_r, voodoo_0_pci_w)
- MCFG_PCI_BUS_LEGACY_DEVICE(18, NULL, cx5510_pci_r, cx5510_pci_w)
+ MCFG_PCI_BUS_LEGACY_DEVICE(18, nullptr, cx5510_pci_r, cx5510_pci_w)
- MCFG_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_2", pic8259_device, ir6_w))
MCFG_DEVICE_ADD("flashbank", ADDRESS_MAP_BANK, 0)
diff --git a/src/mame/drivers/gaelco2.cpp b/src/mame/drivers/gaelco2.cpp
index f11ebe45a23..f0cef3bf46d 100644
--- a/src/mame/drivers/gaelco2.cpp
+++ b/src/mame/drivers/gaelco2.cpp
@@ -192,10 +192,10 @@ ROM_START( maniacsq )
ROM_LOAD( "d0-d7.4m", 0x0000000, 0x0080000, CRC(d8551b2f) SHA1(78b5b07112bd89fed18055180e7cc64f8e0bd0b1) ) /* GFX + Sound */
ROM_LOAD( "d8-d15.4m", 0x0080000, 0x0080000, CRC(b269c427) SHA1(b7f9501529fbb7ee82700cff82740ba5770cf3c5) ) /* GFX + Sound */
ROM_LOAD( "d16-d23.1m", 0x0100000, 0x0020000, CRC(af4ea5e7) SHA1(ffaf09dc2588e32c124e7dd2f86ba009f1b8b176) ) /* GFX only */
- ROM_FILL( 0x0120000, 0x0060000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0120000, 0x0060000, nullptr ) /* Empty */
ROM_LOAD( "d24-d31.1m", 0x0180000, 0x0020000, CRC(578c3588) SHA1(c2e1fba29f21d6822677886fb2d26e050b336c14) ) /* GFX only */
- ROM_FILL( 0x01a0000, 0x0060000, 0x0 ) /* Empty */
- ROM_FILL( 0x0200000, 0x0080000, 0x0 ) /* to decode GFX as 5bpp */
+ ROM_FILL( 0x01a0000, 0x0060000, nullptr ) /* Empty */
+ ROM_FILL( 0x0200000, 0x0080000, nullptr ) /* to decode GFX as 5bpp */
ROM_END
@@ -357,22 +357,22 @@ ROM_START( bang )
ROM_LOAD( "bang16.ic16", 0x0000000, 0x0080000, CRC(6ee4b878) SHA1(f646380d95650a60b5a17973bdfd3b80450a4d3b) ) /* GFX only */
ROM_LOAD( "bang17.ic17", 0x0080000, 0x0080000, CRC(0c35aa6f) SHA1(df0474b1b9466d3c199e5aade39b7233f0cb45ee) ) /* GFX only */
ROM_LOAD( "bang18.ic18", 0x0100000, 0x0080000, CRC(2056b1ad) SHA1(b796f92eef4bbb0efa12c53580e429b8a0aa394c) ) /* Sound only */
- ROM_FILL( 0x0180000, 0x0080000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0180000, 0x0080000, nullptr ) /* Empty */
ROM_LOAD( "bang9.ic9", 0x0200000, 0x0080000, CRC(078195dc) SHA1(362ff194e2579346dfc7af88559b0718bc36ec8a) ) /* GFX only */
ROM_LOAD( "bang10.ic10", 0x0280000, 0x0080000, CRC(06711eeb) SHA1(3662ffe730fb54ee48925de9765f88be1abd5e4e) ) /* GFX only */
ROM_LOAD( "bang11.ic11", 0x0300000, 0x0080000, CRC(2088d15c) SHA1(0c043ab9fd33836fa4b7ad60fd8e7cb96ffb6121) ) /* Sound only */
- ROM_FILL( 0x0380000, 0x0080000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0380000, 0x0080000, nullptr ) /* Empty */
ROM_LOAD( "bang1.ic1", 0x0400000, 0x0080000, CRC(e7b97b0f) SHA1(b5503687ae3ca0a0faa4b867a267d89dac788d6d) ) /* GFX only */
ROM_LOAD( "bang2.ic2", 0x0480000, 0x0080000, CRC(ff297a8f) SHA1(28819a9d7b3cb177e7a7db3fe23a94f5cba33049) ) /* GFX only */
ROM_LOAD( "bang3.ic3", 0x0500000, 0x0080000, CRC(d3da5d4f) SHA1(b9bea0b4d20ab0bfda3fac2bb1fab974c007aaf0) ) /* Sound only */
- ROM_FILL( 0x0580000, 0x0080000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0580000, 0x0080000, nullptr ) /* Empty */
ROM_LOAD( "bang20.ic20", 0x0600000, 0x0080000, CRC(a1145df8) SHA1(305cda041a6f201cb011982f1bf1fc6a4153a669) ) /* GFX only */
ROM_LOAD( "bang13.ic13", 0x0680000, 0x0080000, CRC(fe3e8d07) SHA1(7a37561b1cf422b47cddb8751a6b6d57dec8baae) ) /* GFX only */
ROM_LOAD( "bang5.ic5", 0x0700000, 0x0080000, CRC(9bee444c) SHA1(aebaa3306e7e5aada99ed469da9bf64507808cff) ) /* Sound only */
- ROM_FILL( 0x0780000, 0x0080000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0780000, 0x0080000, nullptr ) /* Empty */
ROM_LOAD( "bang21.ic21", 0x0800000, 0x0080000, CRC(fd93d7f2) SHA1(ff9d8eb5ac8d9757132aa6d79d2f7662c14cd650) ) /* GFX only */
ROM_LOAD( "bang14.ic14", 0x0880000, 0x0080000, CRC(858fcbf9) SHA1(1e67431c8775666f4839bdc427fabf59ffc708c0) ) /* GFX only */
- ROM_FILL( 0x0900000, 0x0100000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0900000, 0x0100000, nullptr ) /* Empty */
ROM_END
@@ -386,22 +386,22 @@ ROM_START( bangj )
ROM_LOAD( "bang-a.ic16", 0x0000000, 0x0080000, CRC(3b63acfc) SHA1(48f5598cdbc70f342d6b75909166571271920a8f) ) /* GFX only */
ROM_LOAD( "bang-a.ic17", 0x0080000, 0x0080000, CRC(72865b80) SHA1(ec7753ea7961015149b9e6386fdeb9bd59aa962a) ) /* GFX only */
ROM_LOAD( "bang18.ic18", 0x0100000, 0x0080000, CRC(2056b1ad) SHA1(b796f92eef4bbb0efa12c53580e429b8a0aa394c) ) /* Sound only */
- ROM_FILL( 0x0180000, 0x0080000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0180000, 0x0080000, nullptr ) /* Empty */
ROM_LOAD( "bang-a.ic9", 0x0200000, 0x0080000, CRC(3cb86360) SHA1(c803b3add253a552a1554714218740bdfca91764) ) /* GFX only */
ROM_LOAD( "bang-a.ic10", 0x0280000, 0x0080000, CRC(03fdd777) SHA1(9eec194239f93d961ee9902a585c872dcdc7728f) ) /* GFX only */
ROM_LOAD( "bang11.ic11", 0x0300000, 0x0080000, CRC(2088d15c) SHA1(0c043ab9fd33836fa4b7ad60fd8e7cb96ffb6121) ) /* Sound only */
- ROM_FILL( 0x0380000, 0x0080000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0380000, 0x0080000, nullptr ) /* Empty */
ROM_LOAD( "bang-a.ic1", 0x0400000, 0x0080000, CRC(965d0ad9) SHA1(eff521735129b7dd9366855c6312ed568950233c) ) /* GFX only */
ROM_LOAD( "bang-a.ic2", 0x0480000, 0x0080000, CRC(8ea261a7) SHA1(50b59cf058ca03c0b8c888f6ddb40c720a210ece) ) /* GFX only */
ROM_LOAD( "bang3.ic3", 0x0500000, 0x0080000, CRC(d3da5d4f) SHA1(b9bea0b4d20ab0bfda3fac2bb1fab974c007aaf0) ) /* Sound only */
- ROM_FILL( 0x0580000, 0x0080000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0580000, 0x0080000, nullptr ) /* Empty */
ROM_LOAD( "bang-a.ic20", 0x0600000, 0x0080000, CRC(4b828f3c) SHA1(5227a89c05c659a85d33f092c6778ce9d57a0236) ) /* GFX only */
ROM_LOAD( "bang-a.ic13", 0x0680000, 0x0080000, CRC(d1146b92) SHA1(2b28d49fbffea6c038160fdab177bc0045195ca8) ) /* GFX only */
ROM_LOAD( "bang5.ic5", 0x0700000, 0x0080000, CRC(9bee444c) SHA1(aebaa3306e7e5aada99ed469da9bf64507808cff) ) /* Sound only */
- ROM_FILL( 0x0780000, 0x0080000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0780000, 0x0080000, nullptr ) /* Empty */
ROM_LOAD( "bang-a.ic21", 0x0800000, 0x0080000, CRC(531ce3b6) SHA1(196bb720591acc082f815b609a7cf1609510c8c1) ) /* GFX only */
ROM_LOAD( "bang-a.ic14", 0x0880000, 0x0080000, CRC(f8e1cf84) SHA1(559c08584094e605635c5ef3a25534ea0bcfa199) ) /* GFX only */
- ROM_FILL( 0x0900000, 0x0100000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0900000, 0x0100000, nullptr ) /* Empty */
ROM_END
@@ -579,7 +579,7 @@ ROM_START( aligator )
ROM_REGION( 0x1400000, "gfx1", 0 ) /* GFX + Sound */
/* 0x0000000-0x0ffffff filled in in the DRIVER_INIT */
- ROM_FILL( 0x1000000, 0x0400000, 0x0 ) /* to decode GFX as 5 bpp */
+ ROM_FILL( 0x1000000, 0x0400000, nullptr ) /* to decode GFX as 5 bpp */
ROM_REGION( 0x1000000, "gfx2", 0 ) /* Temporary storage */
ROM_LOAD( "u48", 0x0000000, 0x0400000, CRC(19e03bf1) SHA1(2b3a4bb438b0aebf4f6a9fd26b071e5c9dd222b8) ) /* GFX only */
@@ -595,7 +595,7 @@ ROM_START( aligatorun )
ROM_REGION( 0x1400000, "gfx1", 0 ) /* GFX + Sound */
/* 0x0000000-0x0ffffff filled in in the DRIVER_INIT */
- ROM_FILL( 0x1000000, 0x0400000, 0x0 ) /* to decode GFX as 5 bpp */
+ ROM_FILL( 0x1000000, 0x0400000, nullptr ) /* to decode GFX as 5 bpp */
ROM_REGION( 0x1000000, "gfx2", 0 ) /* Temporary storage */
ROM_LOAD( "u48", 0x0000000, 0x0400000, CRC(19e03bf1) SHA1(2b3a4bb438b0aebf4f6a9fd26b071e5c9dd222b8) ) /* GFX only */
@@ -838,7 +838,7 @@ ROM_START( touchgo ) /* REF: 950906 */
ROM_REGION( 0x0c00000, "gfx2", 0 ) /* Temporary storage */
ROM_LOAD( "ic65", 0x0000000, 0x0400000, CRC(91b89c7c) SHA1(1c24b494b56845b0f21be40ab737f251d7683c7d) ) /* GFX only */
ROM_LOAD( "ic66", 0x0400000, 0x0200000, CRC(52682953) SHA1(82cde061bdd827ed4a47a9a4256cd0e887ebc29d) ) /* Sound only */
- ROM_FILL( 0x0600000, 0x0200000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0600000, 0x0200000, nullptr ) /* Empty */
ROM_LOAD( "ic67", 0x0800000, 0x0400000, CRC(c0a2ce5b) SHA1(94b024373c7c546c0f4fe9737639f02e9c7ebbdb) ) /* GFX only */
ROM_END
@@ -854,7 +854,7 @@ ROM_START( touchgon ) /* REF 950906, no plug-in daughterboard, Non North America
ROM_REGION( 0x0c00000, "gfx2", 0 ) /* Temporary storage */
ROM_LOAD( "ic65", 0x0000000, 0x0400000, CRC(91b89c7c) SHA1(1c24b494b56845b0f21be40ab737f251d7683c7d) ) /* GFX only */
ROM_LOAD( "ic66", 0x0400000, 0x0200000, CRC(52682953) SHA1(82cde061bdd827ed4a47a9a4256cd0e887ebc29d) ) /* Sound only */
- ROM_FILL( 0x0600000, 0x0200000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0600000, 0x0200000, nullptr ) /* Empty */
ROM_LOAD( "ic67", 0x0800000, 0x0400000, CRC(c0a2ce5b) SHA1(94b024373c7c546c0f4fe9737639f02e9c7ebbdb) ) /* GFX only */
ROM_END
@@ -870,7 +870,7 @@ ROM_START( touchgoe ) /* REF: 950510-1 */
ROM_REGION( 0x0c00000, "gfx2", 0 ) /* Temporary storage */
ROM_LOAD( "ic65", 0x0000000, 0x0400000, CRC(91b89c7c) SHA1(1c24b494b56845b0f21be40ab737f251d7683c7d) ) /* GFX only */
ROM_LOAD( "ic66", 0x0400000, 0x0200000, CRC(52682953) SHA1(82cde061bdd827ed4a47a9a4256cd0e887ebc29d) ) /* Sound only */
- ROM_FILL( 0x0600000, 0x0200000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0600000, 0x0200000, nullptr ) /* Empty */
ROM_LOAD( "ic67", 0x0800000, 0x0400000, CRC(c0a2ce5b) SHA1(94b024373c7c546c0f4fe9737639f02e9c7ebbdb) ) /* GFX only */
ROM_END
@@ -1009,7 +1009,7 @@ ROM_START( snowboara )
ROM_REGION( 0x1400000, "gfx1", 0 ) /* GFX + Sound */
/* 0x0000000-0x0ffffff filled in in the DRIVER_INIT */
ROM_LOAD( "sb43", 0x1000000, 0x0200000, CRC(afce54ed) SHA1(1d2933d64790612918adbaabcd2a82dad79953c9) ) /* GFX only */
- ROM_FILL( 0x1200000, 0x0200000, 0x0 ) /* Empty */
+ ROM_FILL( 0x1200000, 0x0200000, nullptr ) /* Empty */
ROM_REGION( 0x0c00000, "gfx2", 0 ) /* Temporary storage */
ROM_LOAD( "sb44", 0x0000000, 0x0400000, CRC(1bbe88bc) SHA1(15bce9ada2b742ba4d537fa8efc0f29f661bff00) ) /* GFX only */
@@ -1029,29 +1029,29 @@ ROM_START( snowboar )
ROM_LOAD( "sb.a3", 0x0180000, 0x0080000, CRC(17ed9cf8) SHA1(c6cab61bbba3b2b1d06b64a68313946299205cc5) ) /* GFX only */
ROM_LOAD( "sb.a4", 0x0200000, 0x0080000, CRC(2ba3a5c8) SHA1(93de0382cbb41806ae3349ce7cfecdc1404bfb88) ) /* Sound only */
ROM_LOAD( "sb.a5", 0x0280000, 0x0080000, CRC(ae011eb3) SHA1(17223404640c55637364fa6e51cf07d8e64df085) ) /* Sound only */
- ROM_FILL( 0x0300000, 0x0100000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0300000, 0x0100000, nullptr ) /* Empty */
ROM_LOAD( "sb.b0", 0x0400000, 0x0080000, CRC(96c714cd) SHA1(c6225c43b88531a70436cc8a631b8ba401903e45) ) /* GFX only */
ROM_LOAD( "sb.b1", 0x0480000, 0x0080000, CRC(39a4c30c) SHA1(4598a68ef41483ba372aa3a40383de8eb70d706e) ) /* GFX only */
ROM_LOAD( "sb.b2", 0x0500000, 0x0080000, CRC(b58fcdd6) SHA1(21a8c00778be77165f89421fb2e3123244cf02c6) ) /* GFX only */
ROM_LOAD( "sb.b3", 0x0580000, 0x0080000, CRC(96afdebf) SHA1(880cfb365efa93bbee882aeb483ad6d75d8b7430) ) /* GFX only */
ROM_LOAD( "sb.b4", 0x0600000, 0x0080000, CRC(e62cf8df) SHA1(8df8df45d99967e52dcec5b589246799f7a39601) ) /* Sound only */
ROM_LOAD( "sb.b5", 0x0680000, 0x0080000, CRC(caa90856) SHA1(a8f18a878b211366faaf66911c09d0452770cc3f) ) /* Sound only */
- ROM_FILL( 0x0700000, 0x0100000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0700000, 0x0100000, nullptr ) /* Empty */
ROM_LOAD( "sb.c0", 0x0800000, 0x0080000, CRC(c9d57a71) SHA1(4e8b7d821e31afc0750db283470f9c76bceb54da) ) /* GFX only */
ROM_LOAD( "sb.c1", 0x0880000, 0x0080000, CRC(1d14a3d4) SHA1(eb89cadfe331f77dbc0463151574ba801c248238) ) /* GFX only */
ROM_LOAD( "sb.c2", 0x0900000, 0x0080000, CRC(55026352) SHA1(7b92f45624dbd122c29e44f82c3c2ffded190efa) ) /* GFX only */
ROM_LOAD( "sb.c3", 0x0980000, 0x0080000, CRC(d9b62dee) SHA1(409ab4d9a6f9341cf59510c130c705d1ec42d1b3) ) /* GFX only */
- ROM_FILL( 0x0a00000, 0x0200000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0a00000, 0x0200000, nullptr ) /* Empty */
ROM_LOAD( "sb.d0", 0x0c00000, 0x0080000, CRC(7434c1ae) SHA1(8e0e6567a461c694a8ba2de5d4cf9ad73e0c83c8) ) /* GFX only */
ROM_LOAD( "sb.d1", 0x0c80000, 0x0080000, CRC(f00cc6c8) SHA1(b4835e2187e1a985993471d09495cbc1f5cd9417) ) /* GFX only */
ROM_LOAD( "sb.d2", 0x0d00000, 0x0080000, CRC(019f9aec) SHA1(1a97b84ebbf57e860792ef7a7dc6f51553ae3e26) ) /* GFX only */
ROM_LOAD( "sb.d3", 0x0d80000, 0x0080000, CRC(d05bd286) SHA1(9eff6f5a4755375b7a16b9d4967a0df933e1b9c4) ) /* GFX only */
- ROM_FILL( 0x0e00000, 0x0200000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0e00000, 0x0200000, nullptr ) /* Empty */
ROM_LOAD( "sb.e0", 0x1000000, 0x0080000, CRC(e6195323) SHA1(5ba1cb750dd8cfd0721905174bda6cfbf8c8e694) ) /* GFX only */
ROM_LOAD( "sb.e1", 0x1080000, 0x0080000, CRC(9f38910b) SHA1(0243c19c7b1bdd3361fc6e177c64528bacafcc33) ) /* GFX only */
ROM_LOAD( "sb.e2", 0x1100000, 0x0080000, CRC(f5948c6c) SHA1(91bba817ced194b02885ce84b7a8132ef5ca631a) ) /* GFX only */
ROM_LOAD( "sb.e3", 0x1180000, 0x0080000, CRC(4baa678f) SHA1(a7fbbd687e2d8d7e96207c8ace0799a3cc9c3272) ) /* GFX only */
- ROM_FILL( 0x1200000, 0x0200000, 0x0 ) /* Empty */
+ ROM_FILL( 0x1200000, 0x0200000, nullptr ) /* Empty */
ROM_END
@@ -1086,7 +1086,7 @@ static INPUT_PORTS_START( wrally2 )
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Acc.")
PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("P1 Gear") PORT_TOGGLE
- PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, wrally2_state,wrally2_analog_bit_r, (void *)0) /* ADC_1 serial input */
+ PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, wrally2_state,wrally2_analog_bit_r, (void *)nullptr) /* ADC_1 serial input */
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 )
PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:1" )
PORT_DIPNAME( 0x0200, 0x0000, "Coin mechanism" ) PORT_DIPLOCATION("SW2:2")
@@ -1330,13 +1330,13 @@ ROM_START( wrally2 )
ROM_LOAD( "wr2.12d", 0x0380000, 0x0080000, CRC(6dbdaa95) SHA1(f23df65e3df92d79f7b1e99d611c067a79fc849a) ) /* Sound only */
ROM_LOAD( "wr2.01d", 0x0400000, 0x0080000, CRC(753a138d) SHA1(b05348af6d25e95208fc39007eb2082b759384e8) ) /* GFX only */
ROM_LOAD( "wr2.02d", 0x0480000, 0x0080000, CRC(9c2a723c) SHA1(5259c8fa1ad73518e89a8df6e76a565b8f8799e3) ) /* GFX only */
- ROM_FILL( 0x0500000, 0x0100000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0500000, 0x0100000, nullptr ) /* Empty */
ROM_LOAD( "wr2.20d", 0x0600000, 0x0080000, CRC(4f7ade84) SHA1(c8efcd4bcb1f2ad6ab8104ec0daea8324cefd3fd) ) /* GFX only */
ROM_LOAD( "wr2.13d", 0x0680000, 0x0080000, CRC(a4cd32f8) SHA1(bc4cc73b7a58aecd735bf55bb5062baa6dd22f83) ) /* GFX only */
- ROM_FILL( 0x0700000, 0x0100000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0700000, 0x0100000, nullptr ) /* Empty */
ROM_LOAD( "wr2.21d", 0x0800000, 0x0080000, CRC(899b0583) SHA1(a313e679980cc4da22bc70f2c7c9685af4f3d6df) ) /* GFX only */
ROM_LOAD( "wr2.14d", 0x0880000, 0x0080000, CRC(6eb781d5) SHA1(d5c13db88e6de606b34805391cef9f3fbf09fac4) ) /* GFX only */
- ROM_FILL( 0x0900000, 0x0100000, 0x0 ) /* Empty */
+ ROM_FILL( 0x0900000, 0x0100000, nullptr ) /* Empty */
ROM_END
/*
diff --git a/src/mame/drivers/gaelco3d.cpp b/src/mame/drivers/gaelco3d.cpp
index 0170d609e85..208a33a5504 100644
--- a/src/mame/drivers/gaelco3d.cpp
+++ b/src/mame/drivers/gaelco3d.cpp
@@ -852,7 +852,7 @@ static INPUT_PORTS_START( speedup )
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) // checked after reading analog from port 1
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) // checked after reading analog from port 2
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) // checked after reading analog from port 3
- PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)0)
+ PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)nullptr)
PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)1)
PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)2)
PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)3)
@@ -891,7 +891,7 @@ static INPUT_PORTS_START( surfplnt )
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_SERVICE_NO_TOGGLE( 0x0800, IP_ACTIVE_LOW )
- PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)0)
+ PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)nullptr)
PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)1)
PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)2)
PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)3)
@@ -928,7 +928,7 @@ static INPUT_PORTS_START( radikalb )
PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_SERVICE_NO_TOGGLE( 0x08000000, IP_ACTIVE_LOW )
- PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)0)
+ PORT_BIT( 0x10000000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)nullptr)
PORT_BIT( 0x20000000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)1)
PORT_BIT( 0x40000000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)2)
PORT_BIT( 0x80000000, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, gaelco3d_state,analog_bit_r, (void *)3)
diff --git a/src/mame/drivers/galaga.cpp b/src/mame/drivers/galaga.cpp
index b03a0b5c4e1..f350250d906 100644
--- a/src/mame/drivers/galaga.cpp
+++ b/src/mame/drivers/galaga.cpp
@@ -1582,7 +1582,7 @@ static const char *const battles_sample_names[] =
"*battles",
"explo1", /* ground target explosion */
"explo2", /* Solvalou explosion */
- 0 /* end of array */
+ nullptr /* end of array */
};
INTERRUPT_GEN_MEMBER(galaga_state::main_vblank_irq)
@@ -2585,7 +2585,7 @@ ROM_START( xevious )
ROM_LOAD( "xvi_16.4n", 0x4000, 0x1000, CRC(605ca889) SHA1(3bf380ef76c03822a042ecc73b5edd4543c268ce) ) /* sprite set #3, planes 0/1 */
ROM_LOAD( "xvi_18.4r", 0x5000, 0x2000, CRC(02417d19) SHA1(b5f830dd2cf25cf154308d2e640f0ecdcda5d8cd) ) /* sprite set #1, plane 2, set #2, plane 2 */
/* 0x7000-0x8fff will be unpacked from 0x5000-0x6fff */
- ROM_FILL( 0x9000, 0x1000, 0x00 ) // empty space to decode sprite set #3 as 3 bits per pixel
+ ROM_FILL( 0x9000, 0x1000, nullptr ) // empty space to decode sprite set #3 as 3 bits per pixel
ROM_REGION( 0x4000, "gfx4", 0 ) /* background tilemaps */
ROM_LOAD( "xvi_9.2a", 0x0000, 0x1000, CRC(57ed9879) SHA1(3106d1aacff06cf78371bd19967141072b32b7d7) )
@@ -2640,7 +2640,7 @@ ROM_START( xeviousa )
ROM_LOAD( "xvi_16.4n", 0x4000, 0x1000, CRC(605ca889) SHA1(3bf380ef76c03822a042ecc73b5edd4543c268ce) ) /* sprite set #3, planes 0/1 */
ROM_LOAD( "xvi_18.4r", 0x5000, 0x2000, CRC(02417d19) SHA1(b5f830dd2cf25cf154308d2e640f0ecdcda5d8cd) ) /* sprite set #1, plane 2, set #2, plane 2 */
/* 0x7000-0x8fff will be unpacked from 0x5000-0x6fff */
- ROM_FILL( 0x9000, 0x1000, 0x00 ) // empty space to decode sprite set #3 as 3 bits per pixel
+ ROM_FILL( 0x9000, 0x1000, nullptr ) // empty space to decode sprite set #3 as 3 bits per pixel
ROM_REGION( 0x4000, "gfx4", 0 ) /* background tilemaps */
ROM_LOAD( "xvi_9.2a", 0x0000, 0x1000, CRC(57ed9879) SHA1(3106d1aacff06cf78371bd19967141072b32b7d7) )
@@ -2688,7 +2688,7 @@ ROM_START( xeviousb )
ROM_LOAD( "xvi_16.4n", 0x4000, 0x1000, CRC(605ca889) SHA1(3bf380ef76c03822a042ecc73b5edd4543c268ce) ) /* sprite set #3, planes 0/1 */
ROM_LOAD( "xvi_18.4r", 0x5000, 0x2000, CRC(02417d19) SHA1(b5f830dd2cf25cf154308d2e640f0ecdcda5d8cd) ) /* sprite set #1, plane 2, set #2, plane 2 */
/* 0x7000-0x8fff will be unpacked from 0x5000-0x6fff */
- ROM_FILL( 0x9000, 0x1000, 0x00 ) // empty space to decode sprite set #3 as 3 bits per pixel
+ ROM_FILL( 0x9000, 0x1000, nullptr ) // empty space to decode sprite set #3 as 3 bits per pixel
ROM_REGION( 0x4000, "gfx4", 0 ) /* background tilemaps */
ROM_LOAD( "xvi_9.2a", 0x0000, 0x1000, CRC(57ed9879) SHA1(3106d1aacff06cf78371bd19967141072b32b7d7) )
@@ -2739,7 +2739,7 @@ ROM_START( xeviousc )
ROM_LOAD( "xvi_16.4n", 0x4000, 0x1000, CRC(605ca889) SHA1(3bf380ef76c03822a042ecc73b5edd4543c268ce) ) /* sprite set #3, planes 0/1 */
ROM_LOAD( "xvi_18.4r", 0x5000, 0x2000, CRC(02417d19) SHA1(b5f830dd2cf25cf154308d2e640f0ecdcda5d8cd) ) /* sprite set #1, plane 2, set #2, plane 2 */
/* 0x7000-0x8fff will be unpacked from 0x5000-0x6fff */
- ROM_FILL( 0x9000, 0x1000, 0x00 ) // empty space to decode sprite set #3 as 3 bits per pixel
+ ROM_FILL( 0x9000, 0x1000, nullptr ) // empty space to decode sprite set #3 as 3 bits per pixel
ROM_REGION( 0x4000, "gfx4", 0 ) /* background tilemaps */
ROM_LOAD( "xvi_9.2a", 0x0000, 0x1000, CRC(57ed9879) SHA1(3106d1aacff06cf78371bd19967141072b32b7d7) )
@@ -2796,7 +2796,7 @@ ROM_START( xevios )
ROM_LOAD( "14.6d", 0x4000, 0x1000, CRC(605ca889) SHA1(3bf380ef76c03822a042ecc73b5edd4543c268ce) ) /* sprite set #3, planes 0/1 */
ROM_LOAD( "16.8d", 0x5000, 0x2000, CRC(44262c04) SHA1(4291f83193d11064c2ba6a9af27951b93bb945c3) ) /* sprite set #1, plane 2, set #2, plane 2 */
/* 0x7000-0x8fff will be unpacked from 0x5000-0x6fff */
- ROM_FILL( 0x9000, 0x1000, 0x00 ) // empty space to decode sprite set #3 as 3 bits per pixel
+ ROM_FILL( 0x9000, 0x1000, nullptr ) // empty space to decode sprite set #3 as 3 bits per pixel
ROM_REGION( 0x4000, "gfx4", 0 ) /* background tilemaps */
ROM_LOAD( "10.1d", 0x0000, 0x1000, CRC(10baeebb) SHA1(c544c9e0bb7a1ef93b3f2c2c1397f659d5334373) )
@@ -2859,7 +2859,7 @@ ROM_START( battles )
ROM_LOAD( "bg12.c8", 0x4000, 0x1000, CRC(605ca889) SHA1(3bf380ef76c03822a042ecc73b5edd4543c268ce) ) /* sprite set #3, planes 0/1 */
ROM_LOAD( "bg15.c2", 0x5000, 0x2000, CRC(02417d19) SHA1(b5f830dd2cf25cf154308d2e640f0ecdcda5d8cd) ) /* sprite set #1, plane 2, set #2, plane 2 */
/* 0x7000-0x8fff will be unpacked from 0x5000-0x6fff */
- ROM_FILL( 0x9000, 0x1000, 0x00 ) // empty space to decode sprite set #3 as 3 bits per pixel
+ ROM_FILL( 0x9000, 0x1000, nullptr ) // empty space to decode sprite set #3 as 3 bits per pixel
ROM_REGION( 0x4000, "gfx4", 0 ) /* background tilemaps (Located on the middle board) */
ROM_LOAD( "bg6.b14", 0x0000, 0x1000, CRC(57ed9879) SHA1(3106d1aacff06cf78371bd19967141072b32b7d7) )
@@ -2907,7 +2907,7 @@ ROM_START( sxevious )
ROM_LOAD( "xvi_16.4n", 0x4000, 0x1000, CRC(605ca889) SHA1(3bf380ef76c03822a042ecc73b5edd4543c268ce) ) /* sprite set #3, planes 0/1 */
ROM_LOAD( "xvi_18.4r", 0x5000, 0x2000, CRC(02417d19) SHA1(b5f830dd2cf25cf154308d2e640f0ecdcda5d8cd) ) /* sprite set #1, plane 2, set #2, plane 2 */
/* 0x7000-0x8fff will be unpacked from 0x5000-0x6fff */
- ROM_FILL( 0x9000, 0x1000, 0x00 ) // empty space to decode sprite set #3 as 3 bits per pixel
+ ROM_FILL( 0x9000, 0x1000, nullptr ) // empty space to decode sprite set #3 as 3 bits per pixel
ROM_REGION( 0x4000, "gfx4", 0 ) /* background tilemaps */
ROM_LOAD( "xvi_9.2a", 0x0000, 0x1000, CRC(57ed9879) SHA1(3106d1aacff06cf78371bd19967141072b32b7d7) )
@@ -2955,7 +2955,7 @@ ROM_START( sxeviousj )
ROM_LOAD( "xvi_16.4n", 0x4000, 0x1000, CRC(605ca889) SHA1(3bf380ef76c03822a042ecc73b5edd4543c268ce) ) /* sprite set #3, planes 0/1 */
ROM_LOAD( "xvi_18.4r", 0x5000, 0x2000, CRC(02417d19) SHA1(b5f830dd2cf25cf154308d2e640f0ecdcda5d8cd) ) /* sprite set #1, plane 2, set #2, plane 2 */
/* 0x7000-0x8fff will be unpacked from 0x5000-0x6fff */
- ROM_FILL( 0x9000, 0x1000, 0x00 ) // empty space to decode sprite set #3 as 3 bits per pixel
+ ROM_FILL( 0x9000, 0x1000, nullptr ) // empty space to decode sprite set #3 as 3 bits per pixel
ROM_REGION( 0x4000, "gfx4", 0 ) /* background tilemaps */
ROM_LOAD( "xvi_9.2a", 0x0000, 0x1000, CRC(57ed9879) SHA1(3106d1aacff06cf78371bd19967141072b32b7d7) )
diff --git a/src/mame/drivers/galaxian.cpp b/src/mame/drivers/galaxian.cpp
index 45b20a08663..5337e4e841d 100644
--- a/src/mame/drivers/galaxian.cpp
+++ b/src/mame/drivers/galaxian.cpp
@@ -833,7 +833,7 @@ WRITE8_MEMBER(galaxian_state::konami_sound_filter_w)
/* AV0 .. AV5 ==> AY8910 #2 */
/* AV6 .. AV11 ==> AY8910 #1 */
for (which = 0; which < 2; which++)
- if (machine().device(ayname[which]) != NULL)
+ if (machine().device(ayname[which]) != nullptr)
for (chan = 0; chan < 3; chan++)
{
UINT8 bits = (offset >> (2 * chan + 6 * (1 - which))) & 3;
@@ -2448,7 +2448,7 @@ static INPUT_PORTS_START( azurian )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxian_state, azurian_port_r, (void *)0) /* "linked" with bit 2 of IN2 */
+ PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxian_state, azurian_port_r, (void *)nullptr) /* "linked" with bit 2 of IN2 */
PORT_DIPNAME( 0x80, 0x00, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x00, "3" )
PORT_DIPSETTING( 0x80, "5" )
@@ -4279,7 +4279,7 @@ static INPUT_PORTS_START( scramble )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxian_state, scramble_protection_alt_r, (void *)0) /* protection bit */
+ PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxian_state, scramble_protection_alt_r, (void *)nullptr) /* protection bit */
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxian_state, scramble_protection_alt_r, (void *)1) /* protection bit */
@@ -4732,7 +4732,7 @@ CUSTOM_INPUT_MEMBER(galaxian_state::moonwar_dial_r)
/* verified from Z80 code */
static INPUT_PORTS_START( moonwar )
PORT_START("IN0")
- PORT_BIT( 0x1f, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxian_state, moonwar_dial_r, (void *)0)
+ PORT_BIT( 0x1f, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxian_state, moonwar_dial_r, (void *)nullptr)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL // cocktail: p2 shield
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
@@ -6127,8 +6127,8 @@ void galaxian_state::common_init(galaxian_draw_bullet_func draw_bullet,galaxian_
m_sprites_base = 0x40;
m_frogger_adjust = FALSE;
m_sfx_tilemap = FALSE;
- m_draw_bullet_ptr = (draw_bullet != NULL) ? draw_bullet : &galaxian_state::galaxian_draw_bullet;
- m_draw_background_ptr = (draw_background != NULL) ? draw_background : &galaxian_state::galaxian_draw_background;
+ m_draw_bullet_ptr = (draw_bullet != nullptr) ? draw_bullet : &galaxian_state::galaxian_draw_bullet;
+ m_draw_background_ptr = (draw_background != nullptr) ? draw_background : &galaxian_state::galaxian_draw_background;
m_extend_tile_info_ptr = extend_tile_info;
m_extend_sprite_info_ptr = extend_sprite_info;
}
@@ -6153,7 +6153,7 @@ void galaxian_state::unmap_galaxian_sound(offs_t base)
DRIVER_INIT_MEMBER(galaxian_state,galaxian)
{
- common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, NULL);
+ common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, nullptr);
}
@@ -6174,7 +6174,7 @@ DRIVER_INIT_MEMBER(galaxian_state,azurian)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* yellow bullets instead of white ones */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, nullptr);
/* coin lockout disabled */
space.unmap_write(0x6002, 0x6002, 0, 0x7f8);
@@ -6193,7 +6193,7 @@ DRIVER_INIT_MEMBER(galaxian_state,gmgalax)
membank("bank1")->configure_entries(0, 2, memregion("maincpu")->base() + 0x10000, 0x4000);
/* callback when the game select is toggled */
- gmgalax_game_changed(*machine().ioport().first_port()->first_field(), NULL, 0, 0);
+ gmgalax_game_changed(*machine().ioport().first_port()->first_field(), nullptr, 0, 0);
save_item(NAME(m_gmgalax_selected_game));
}
@@ -6373,7 +6373,7 @@ DRIVER_INIT_MEMBER(galaxian_state,tenspot)
DRIVER_INIT_MEMBER(galaxian_state,devilfsg)
{
/* video extensions */
- common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, NULL);
+ common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, nullptr);
/* IRQ line is INT, not NMI */
m_irq_line = 0;
@@ -6385,8 +6385,8 @@ DRIVER_INIT_MEMBER(galaxian_state,zigzag)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* video extensions */
- common_init(NULL, &galaxian_state::galaxian_draw_background, NULL, NULL);
- m_draw_bullet_ptr = NULL;
+ common_init(nullptr, &galaxian_state::galaxian_draw_background, nullptr, nullptr);
+ m_draw_bullet_ptr = nullptr;
/* two sprite generators */
m_numspritegens = 2;
@@ -6449,7 +6449,7 @@ DRIVER_INIT_MEMBER(galaxian_state,checkmaj)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* video extensions */
- common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, NULL);
+ common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, nullptr);
/* attach the sound command handler */
space.install_write_handler(0x7800, 0x7800, 0, 0x7ff, write8_delegate(FUNC(galaxian_state::checkman_sound_command_w),this));
@@ -6464,7 +6464,7 @@ DRIVER_INIT_MEMBER(galaxian_state,dingo)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* video extensions */
- common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, NULL);
+ common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, nullptr);
/* attach the sound command handler */
space.install_write_handler(0x7800, 0x7800, 0, 0x7ff, write8_delegate(FUNC(galaxian_state::checkman_sound_command_w),this));
@@ -6519,7 +6519,7 @@ DRIVER_INIT_MEMBER(galaxian_state,kong)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* video extensions */
- common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, &galaxian_state::upper_extend_sprite_info);
+ common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, &galaxian_state::upper_extend_sprite_info);
/* needs a full 2k of RAM */
space.install_ram(0x8000, 0x87ff);
@@ -6605,7 +6605,7 @@ DRIVER_INIT_MEMBER(galaxian_state,mshuttlj)
DRIVER_INIT_MEMBER(galaxian_state,fantastc)
{
/* video extensions */
- common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, &galaxian_state::upper_extend_sprite_info);
+ common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, &galaxian_state::upper_extend_sprite_info);
/* two sprite generators */
m_numspritegens = 2;
@@ -6644,7 +6644,7 @@ DRIVER_INIT_MEMBER(galaxian_state,timefgtr)
m_bullets_base = 0xc0;
/* video extensions */
- common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, &galaxian_state::upper_extend_sprite_info);
+ common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, &galaxian_state::upper_extend_sprite_info);
}
@@ -6653,7 +6653,7 @@ DRIVER_INIT_MEMBER(galaxian_state,kingball)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* video extensions */
- common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, NULL);
+ common_init(&galaxian_state::galaxian_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, nullptr);
/* disable the stars */
space.unmap_write(0xb004, 0xb004, 0, 0x07f8);
@@ -6718,7 +6718,7 @@ DRIVER_INIT_MEMBER(galaxian_state,theend)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* video extensions */
- common_init(&galaxian_state::theend_draw_bullet, &galaxian_state::galaxian_draw_background, NULL, NULL);
+ common_init(&galaxian_state::theend_draw_bullet, &galaxian_state::galaxian_draw_background, nullptr, nullptr);
/* coin counter on the upper bit of port C */
space.unmap_write(0x6802, 0x6802, 0, 0x7f8);
@@ -6728,7 +6728,7 @@ DRIVER_INIT_MEMBER(galaxian_state,theend)
DRIVER_INIT_MEMBER(galaxian_state,scramble)
{
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, nullptr, nullptr);
}
@@ -6737,7 +6737,7 @@ DRIVER_INIT_MEMBER(galaxian_state,explorer)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, nullptr, nullptr);
/* watchdog works for writes as well? (or is it just disabled?) */
space.install_write_handler(0x7000, 0x7000, 0, 0x7ff, write8_delegate(FUNC(galaxian_state::watchdog_reset_w),this));
@@ -6756,7 +6756,7 @@ DRIVER_INIT_MEMBER(galaxian_state,explorer)
DRIVER_INIT_MEMBER(galaxian_state,sfx)
{
/* basic configuration */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, &galaxian_state::upper_extend_tile_info, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, &galaxian_state::upper_extend_tile_info, nullptr);
m_sfx_tilemap = TRUE;
/* sound board has space for extra ROM */
@@ -6770,7 +6770,7 @@ DRIVER_INIT_MEMBER(galaxian_state,atlantis)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, nullptr, nullptr);
/* watchdog is at $7800? (or is it just disabled?) */
space.unmap_read(0x7000, 0x7000, 0, 0x7ff);
@@ -6784,7 +6784,7 @@ DRIVER_INIT_MEMBER(galaxian_state,atlantis)
DRIVER_INIT_MEMBER(galaxian_state,scobra)
{
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, nullptr, nullptr);
}
@@ -6813,14 +6813,14 @@ DRIVER_INIT_MEMBER(galaxian_state,scobrae)
}
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, nullptr, nullptr);
}
DRIVER_INIT_MEMBER(galaxian_state,losttomb)
{
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, nullptr, nullptr);
/* decrypt */
decode_losttomb_gfx();
@@ -6830,7 +6830,7 @@ DRIVER_INIT_MEMBER(galaxian_state,losttomb)
DRIVER_INIT_MEMBER(galaxian_state,frogger)
{
/* video extensions */
- common_init(NULL, &galaxian_state::frogger_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
+ common_init(nullptr, &galaxian_state::frogger_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
m_frogger_adjust = TRUE;
/* decrypt */
@@ -6842,7 +6842,7 @@ DRIVER_INIT_MEMBER(galaxian_state,frogger)
DRIVER_INIT_MEMBER(galaxian_state,quaak)
{
/* video extensions */
- common_init(NULL, &galaxian_state::quaak_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
+ common_init(nullptr, &galaxian_state::quaak_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
}
@@ -6851,7 +6851,7 @@ DRIVER_INIT_MEMBER(galaxian_state,froggermc)
address_space &space = m_maincpu->space(AS_PROGRAM);
/* video extensions */
- common_init(NULL, &galaxian_state::frogger_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
+ common_init(nullptr, &galaxian_state::frogger_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
space.install_write_handler(0xa800, 0xa800, 0, 0x7ff, write8_delegate(FUNC(galaxian_state::soundlatch_byte_w),this));
space.install_write_handler(0xb001, 0xb001, 0, 0x7f8, write8_delegate(FUNC(galaxian_state::froggermc_sound_control_w),this));
@@ -6867,7 +6867,7 @@ DRIVER_INIT_MEMBER(galaxian_state,froggermc)
DRIVER_INIT_MEMBER(galaxian_state,froggers)
{
/* video extensions */
- common_init(NULL, &galaxian_state::frogger_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
+ common_init(nullptr, &galaxian_state::frogger_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
/* decrypt */
decode_frogger_sound();
@@ -6877,7 +6877,7 @@ DRIVER_INIT_MEMBER(galaxian_state,froggers)
DRIVER_INIT_MEMBER(galaxian_state,turtles)
{
/* video extensions */
- common_init(NULL, &galaxian_state::turtles_draw_background, NULL, NULL);
+ common_init(nullptr, &galaxian_state::turtles_draw_background, nullptr, nullptr);
}
@@ -6933,7 +6933,7 @@ DRIVER_INIT_MEMBER(galaxian_state,scorpion)
DRIVER_INIT_MEMBER(galaxian_state,anteater)
{
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::anteater_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::anteater_draw_background, nullptr, nullptr);
/* decode graphics */
decode_anteater_gfx();
@@ -6943,14 +6943,14 @@ DRIVER_INIT_MEMBER(galaxian_state,anteater)
DRIVER_INIT_MEMBER(galaxian_state,anteateruk)
{
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::anteater_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::anteater_draw_background, nullptr, nullptr);
}
DRIVER_INIT_MEMBER(galaxian_state,superbon)
{
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, nullptr, nullptr);
/* decode code */
decode_superbon();
@@ -6960,14 +6960,14 @@ DRIVER_INIT_MEMBER(galaxian_state,superbon)
DRIVER_INIT_MEMBER(galaxian_state,calipso)
{
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, &galaxian_state::calipso_extend_sprite_info);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, nullptr, &galaxian_state::calipso_extend_sprite_info);
}
DRIVER_INIT_MEMBER(galaxian_state,moonwar)
{
/* video extensions */
- common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, NULL);
+ common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, nullptr, nullptr);
save_item(NAME(m_moonwar_port_select));
}
@@ -6986,7 +6986,7 @@ DRIVER_INIT_MEMBER( galaxian_state, ghostmun )
DRIVER_INIT_MEMBER( galaxian_state, froggrs )
{
/* video extensions */
- common_init(NULL, &galaxian_state::frogger_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
+ common_init(nullptr, &galaxian_state::frogger_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
/* decrypt */
decode_frogger_sound();
@@ -8226,7 +8226,7 @@ ROM_START( pacmanbla ) /* content is the same as the above bootleg, but arranged
ROM_COPY( "tempgfx", 0x1800, 0x0800, 0x0800 )
ROM_REGION( 0x1000, "gfx2", 0 )
- ROM_COPY( "tempgfx", 0x0000, 0x0000, 0x0800 )
+ ROM_COPY( "tempgfx", nullptr, 0x0000, 0x0800 )
ROM_COPY( "tempgfx", 0x1000, 0x0800, 0x0800 )
ROM_REGION( 0x0020, "proms", 0 )
diff --git a/src/mame/drivers/gamecstl.cpp b/src/mame/drivers/gamecstl.cpp
index 4c6e764bf3d..33f3e7edfb5 100644
--- a/src/mame/drivers/gamecstl.cpp
+++ b/src/mame/drivers/gamecstl.cpp
@@ -437,10 +437,10 @@ static MACHINE_CONFIG_START( gamecstl, gamecstl_state )
MCFG_FRAGMENT_ADD( pcat_common )
MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0)
- MCFG_PCI_BUS_LEGACY_DEVICE(0, NULL, intel82439tx_pci_r, intel82439tx_pci_w)
- MCFG_PCI_BUS_LEGACY_DEVICE(7, NULL, intel82371ab_pci_r, intel82371ab_pci_w)
+ MCFG_PCI_BUS_LEGACY_DEVICE(0, nullptr, intel82439tx_pci_r, intel82439tx_pci_w)
+ MCFG_PCI_BUS_LEGACY_DEVICE(7, nullptr, intel82371ab_pci_r, intel82371ab_pci_w)
- MCFG_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_2", pic8259_device, ir6_w))
/* video hardware */
diff --git a/src/mame/drivers/gaplus.cpp b/src/mame/drivers/gaplus.cpp
index 9bd60dcf29c..85a49598835 100644
--- a/src/mame/drivers/gaplus.cpp
+++ b/src/mame/drivers/gaplus.cpp
@@ -463,7 +463,7 @@ static const char *const gaplus_sample_names[] =
{
"*gaplus",
"bang",
- 0
+ nullptr
};
/***************************************************************************
@@ -633,7 +633,7 @@ ROM_START( gaplus ) /* Version 2 or 3 PCB */
ROM_LOAD( "gp2-12.11r", 0x4000, 0x2000, CRC(7316a1f1) SHA1(368e4541a5151e906a189712bc05192c2ceec8ae) ) /* objects */
ROM_LOAD( "gp2-9.11m", 0x6000, 0x2000, CRC(e6a9ae67) SHA1(99c1e67c3b216aa1b63f199e21c73cdedde80e1b) ) /* objects */
/* 0x8000-0x9fff will be unpacked from 0x6000-0x7fff */
- ROM_FILL( 0xa000, 0x2000, 0x00 ) // optional ROM, not used
+ ROM_FILL( 0xa000, 0x2000, nullptr ) // optional ROM, not used
ROM_REGION( 0x0800, "proms", 0 )
ROM_LOAD( "gp2-3.1p", 0x0000, 0x0100, CRC(a5091352) SHA1(dcd6dfbfbd5281ba0c7b7c189d6fde23617ed3e3) ) /* red palette ROM (4 bits) */
@@ -674,7 +674,7 @@ ROM_START( gaplusa ) /* Version 2 or 3 PCB */
ROM_LOAD( "gp2-12.11r", 0x4000, 0x2000, CRC(7316a1f1) SHA1(368e4541a5151e906a189712bc05192c2ceec8ae) ) /* objects */
ROM_LOAD( "gp2-9.11m", 0x6000, 0x2000, CRC(e6a9ae67) SHA1(99c1e67c3b216aa1b63f199e21c73cdedde80e1b) ) /* objects */
/* 0x8000-0x9fff will be unpacked from 0x6000-0x7fff */
- ROM_FILL( 0xa000, 0x2000, 0x00 ) // optional ROM, not used
+ ROM_FILL( 0xa000, 0x2000, nullptr ) // optional ROM, not used
ROM_REGION( 0x0800, "proms", 0 )
ROM_LOAD( "gp2-3.1p", 0x0000, 0x0100, CRC(a5091352) SHA1(dcd6dfbfbd5281ba0c7b7c189d6fde23617ed3e3) ) /* red palette ROM (4 bits) */
@@ -715,7 +715,7 @@ ROM_START( gaplusd ) /* Alternate hardware */
ROM_LOAD( "gp2-12.11r", 0x4000, 0x2000, CRC(7316a1f1) SHA1(368e4541a5151e906a189712bc05192c2ceec8ae) ) /* objects */
ROM_LOAD( "gp2-9.11m", 0x6000, 0x2000, CRC(e6a9ae67) SHA1(99c1e67c3b216aa1b63f199e21c73cdedde80e1b) ) /* objects */
/* 0x8000-0x9fff will be unpacked from 0x6000-0x7fff */
- ROM_FILL( 0xa000, 0x2000, 0x00 ) // optional ROM, not used
+ ROM_FILL( 0xa000, 0x2000, nullptr ) // optional ROM, not used
ROM_REGION( 0x0800, "proms", 0 )
ROM_LOAD( "gp2-3.1p", 0x0000, 0x0100, CRC(a5091352) SHA1(dcd6dfbfbd5281ba0c7b7c189d6fde23617ed3e3) ) /* red palette ROM (4 bits) */
@@ -756,7 +756,7 @@ ROM_START( gaplust ) /* Tecfri PCB */
ROM_LOAD( "gp2-12.11r", 0x4000, 0x2000, CRC(7316a1f1) SHA1(368e4541a5151e906a189712bc05192c2ceec8ae) ) /* objects */
ROM_LOAD( "gp2-9.11m", 0x6000, 0x2000, CRC(e6a9ae67) SHA1(99c1e67c3b216aa1b63f199e21c73cdedde80e1b) ) /* objects */
/* 0x8000-0x9fff will be unpacked from 0x6000-0x7fff */
- ROM_FILL( 0xa000, 0x2000, 0x00 ) // optional ROM, not used
+ ROM_FILL( 0xa000, 0x2000, nullptr ) // optional ROM, not used
ROM_REGION( 0x0800, "proms", 0 )
ROM_LOAD( "gp2-3.1p", 0x0000, 0x0100, CRC(a5091352) SHA1(dcd6dfbfbd5281ba0c7b7c189d6fde23617ed3e3) ) /* red palette ROM (4 bits) */
@@ -797,7 +797,7 @@ ROM_START( galaga3 ) /* Version 2 or 3 PCB */
ROM_LOAD( "gp2-12.11r", 0x4000, 0x2000, CRC(7316a1f1) SHA1(368e4541a5151e906a189712bc05192c2ceec8ae) ) /* objects */
ROM_LOAD( "gp2-9.11m", 0x6000, 0x2000, CRC(e6a9ae67) SHA1(99c1e67c3b216aa1b63f199e21c73cdedde80e1b) ) /* objects */
/* 0x8000-0x9fff will be unpacked from 0x6000-0x7fff */
- ROM_FILL( 0xa000, 0x2000, 0x00 ) // optional ROM, not used
+ ROM_FILL( 0xa000, 0x2000, nullptr ) // optional ROM, not used
ROM_REGION( 0x0800, "proms", 0 )
ROM_LOAD( "gp2-3.1p", 0x0000, 0x0100, CRC(a5091352) SHA1(dcd6dfbfbd5281ba0c7b7c189d6fde23617ed3e3) ) /* red palette ROM (4 bits) */
@@ -838,7 +838,7 @@ ROM_START( galaga3a ) /* Version 2 or 3 PCB */
ROM_LOAD( "gp2-12.11r", 0x4000, 0x2000, CRC(7316a1f1) SHA1(368e4541a5151e906a189712bc05192c2ceec8ae) ) /* objects */
ROM_LOAD( "gp2-9.11m", 0x6000, 0x2000, CRC(e6a9ae67) SHA1(99c1e67c3b216aa1b63f199e21c73cdedde80e1b) ) /* objects */
/* 0x8000-0x9fff will be unpacked from 0x6000-0x7fff */
- ROM_FILL( 0xa000, 0x2000, 0x00 ) // optional ROM, not used
+ ROM_FILL( 0xa000, 0x2000, nullptr ) // optional ROM, not used
ROM_REGION( 0x0800, "proms", 0 )
ROM_LOAD( "gp2-3.1p", 0x0000, 0x0100, CRC(a5091352) SHA1(dcd6dfbfbd5281ba0c7b7c189d6fde23617ed3e3) ) /* red palette ROM (4 bits) */
@@ -879,7 +879,7 @@ ROM_START( galaga3b ) /* Version 2 or 3 PCB */
ROM_LOAD( "gp2-12.11r", 0x4000, 0x2000, CRC(7316a1f1) SHA1(368e4541a5151e906a189712bc05192c2ceec8ae) ) /* objects */
ROM_LOAD( "gp2-9.11m", 0x6000, 0x2000, CRC(e6a9ae67) SHA1(99c1e67c3b216aa1b63f199e21c73cdedde80e1b) ) /* objects */
/* 0x8000-0x9fff will be unpacked from 0x6000-0x7fff */
- ROM_FILL( 0xa000, 0x2000, 0x00 ) // optional ROM, not used
+ ROM_FILL( 0xa000, 0x2000, nullptr ) // optional ROM, not used
ROM_REGION( 0x0800, "proms", 0 )
ROM_LOAD( "gp2-3.1p", 0x0000, 0x0100, CRC(a5091352) SHA1(dcd6dfbfbd5281ba0c7b7c189d6fde23617ed3e3) ) /* red palette ROM (4 bits) */
@@ -921,7 +921,7 @@ ROM_START( galaga3c ) /* Version (AKA Midway) 1 PCB */
ROM_LOAD( "gp2-12.5k", 0x4000, 0x2000, CRC(7316a1f1) SHA1(368e4541a5151e906a189712bc05192c2ceec8ae) ) /* objects */
ROM_LOAD( "gp2-9.5n", 0x6000, 0x2000, CRC(e6a9ae67) SHA1(99c1e67c3b216aa1b63f199e21c73cdedde80e1b) ) /* objects */
/* 0x8000-0x9fff will be unpacked from 0x6000-0x7fff */
- ROM_FILL( 0xa000, 0x2000, 0x00 ) // optional ROM, not used
+ ROM_FILL( 0xa000, 0x2000, nullptr ) // optional ROM, not used
ROM_REGION( 0x0800, "proms", 0 )
ROM_LOAD( "gp2-3.1c", 0x0000, 0x0100, CRC(a5091352) SHA1(dcd6dfbfbd5281ba0c7b7c189d6fde23617ed3e3) ) /* red palette ROM (4 bits) */
@@ -959,7 +959,7 @@ ROM_START( galaga3m ) /* Version (AKA Midway) 1 PCB */
ROM_LOAD( "gp2-12.5k", 0x4000, 0x2000, CRC(7316a1f1) SHA1(368e4541a5151e906a189712bc05192c2ceec8ae) ) /* objects */
ROM_LOAD( "gp2-9.5n", 0x6000, 0x2000, CRC(e6a9ae67) SHA1(99c1e67c3b216aa1b63f199e21c73cdedde80e1b) ) /* objects */
/* 0x8000-0x9fff will be unpacked from 0x6000-0x7fff */
- ROM_FILL( 0xa000, 0x2000, 0x00 ) // optional ROM, not used
+ ROM_FILL( 0xa000, 0x2000, nullptr ) // optional ROM, not used
ROM_REGION( 0x0800, "proms", 0 )
ROM_LOAD( "gp2-3.1c", 0x0000, 0x0100, CRC(a5091352) SHA1(dcd6dfbfbd5281ba0c7b7c189d6fde23617ed3e3) ) /* red palette ROM (4 bits) */
diff --git a/src/mame/drivers/gb.cpp b/src/mame/drivers/gb.cpp
index 54872914d4e..d5f7331e43b 100644
--- a/src/mame/drivers/gb.cpp
+++ b/src/mame/drivers/gb.cpp
@@ -779,7 +779,7 @@ static MACHINE_CONFIG_START( gameboy, gb_state )
MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
/* cartslot */
- MCFG_GB_CARTRIDGE_ADD("gbslot", gb_cart, NULL)
+ MCFG_GB_CARTRIDGE_ADD("gbslot", gb_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","gameboy")
MCFG_SOFTWARE_LIST_COMPATIBLE_ADD("gbc_list","gbcolor")
@@ -890,7 +890,7 @@ static MACHINE_CONFIG_START( gbcolor, gb_state )
MCFG_RAM_DEFAULT_SIZE("48K") /* 2 pages of 8KB VRAM, 8 pages of 4KB RAM */
/* cartslot */
- MCFG_GB_CARTRIDGE_ADD("gbslot", gb_cart, NULL)
+ MCFG_GB_CARTRIDGE_ADD("gbslot", gb_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","gbcolor")
MCFG_SOFTWARE_LIST_COMPATIBLE_ADD("gb_list","gameboy")
@@ -932,7 +932,7 @@ static MACHINE_CONFIG_START( megaduck, megaduck_state )
MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
/* cartslot */
- MCFG_MEGADUCK_CARTRIDGE_ADD("duckslot", megaduck_cart, NULL)
+ MCFG_MEGADUCK_CARTRIDGE_ADD("duckslot", megaduck_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list", "megaduck")
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/gba.cpp b/src/mame/drivers/gba.cpp
index 328e8e918cc..3f8ae3f392a 100644
--- a/src/mame/drivers/gba.cpp
+++ b/src/mame/drivers/gba.cpp
@@ -240,7 +240,7 @@ void gba_state::dma_exec(FPTR ch)
// printf("settng DMA timer %d for %d cycs (tmr %x)\n", ch, cnt, (UINT32)m_dma_timer[ch]);
// m_dma_timer[ch]->adjust(ATTOTIME_IN_CYCLES(0, cnt), ch);
- dma_complete(NULL, ch);
+ dma_complete(nullptr, ch);
}
void gba_state::audio_tick(int ref)
@@ -2279,7 +2279,7 @@ static MACHINE_CONFIG_START( gbadv, gba_state )
MCFG_SOUND_ADD("direct_b_right", DAC, 0) // GBA direct sound B right
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "spkright", 0.50)
- MCFG_GBA_CARTRIDGE_ADD("cartslot", gba_cart, NULL)
+ MCFG_GBA_CARTRIDGE_ADD("cartslot", gba_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","gba")
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/gcpinbal.cpp b/src/mame/drivers/gcpinbal.cpp
index c7a3a40650c..5ff65a0ed55 100644
--- a/src/mame/drivers/gcpinbal.cpp
+++ b/src/mame/drivers/gcpinbal.cpp
@@ -503,7 +503,7 @@ MACHINE_CONFIG_END
ROM_START( gcpinbal )
ROM_REGION( 0x200000, "maincpu", 0 ) /* 512k for 68000 program */
ROM_LOAD16_WORD_SWAP( "2_excellent.u43", 0x000000, 0x80000, CRC(d174bd7f) SHA1(0e6c17265e1400de941e3e2ca3be835aaaff6695) ) /* Red line across label */
- ROM_FILL ( 0x80000, 0x080000, 0x0 ) /* unpopulated 27C4096 socket at U44 */
+ ROM_FILL ( 0x80000, 0x080000, nullptr ) /* unpopulated 27C4096 socket at U44 */
ROM_LOAD16_WORD_SWAP( "3_excellent.u45", 0x100000, 0x80000, CRC(0511ad56) SHA1(e0602ece514126ce719ebc9de6649ebe907be904) )
ROM_LOAD16_WORD_SWAP( "4_excellent.u46", 0x180000, 0x80000, CRC(e0f3a1b4) SHA1(761dddf374a92c1a1e4a211ead215d5be461a082) )
diff --git a/src/mame/drivers/gei.cpp b/src/mame/drivers/gei.cpp
index 60d60384c01..e922652ac6b 100644
--- a/src/mame/drivers/gei.cpp
+++ b/src/mame/drivers/gei.cpp
@@ -209,7 +209,7 @@ WRITE8_MEMBER(gei_state::sound_w)
set_led_status(machine(), 9,data & 0x08);
/* bit 5 - ticket out in trivia games */
- if (m_ticket != NULL)
+ if (m_ticket != nullptr)
m_ticket->write(machine().driver_data()->generic_space(), 0, (data & 0x20)<< 2);
/* bit 6 enables NMI */
diff --git a/src/mame/drivers/geneve.cpp b/src/mame/drivers/geneve.cpp
index c366b70b2e7..0a0d6e3303f 100644
--- a/src/mame/drivers/geneve.cpp
+++ b/src/mame/drivers/geneve.cpp
@@ -756,10 +756,10 @@ ROM_START(geneve)
ROM_LOAD_OPTIONAL("gnmbt100.bin", 0x8000, 0x4000, CRC(19b89479) SHA1(6ef297eda78dc705946f6494e9d7e95e5216ec47)) /* CPU ROMs GenMod */
ROM_REGION(SRAM_SIZE, SRAM_TAG, 0)
- ROM_FILL(0x0000, SRAM_SIZE, 0)
+ ROM_FILL(0x0000, SRAM_SIZE, nullptr)
ROM_REGION(DRAM_SIZE, DRAM_TAG, 0)
- ROM_FILL(0x0000, DRAM_SIZE, 0)
+ ROM_FILL(0x0000, DRAM_SIZE, nullptr)
ROM_END
/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME */
diff --git a/src/mame/drivers/geniusiq.cpp b/src/mame/drivers/geniusiq.cpp
index 516788899c5..f26da7f8952 100644
--- a/src/mame/drivers/geniusiq.cpp
+++ b/src/mame/drivers/geniusiq.cpp
@@ -770,7 +770,7 @@ DEVICE_IMAGE_LOAD_MEMBER(geniusiq_state,iq128_cart)
m_cart_state = IQ128_ROM_CART;
- if (image.software_entry() != NULL)
+ if (image.software_entry() != nullptr)
{
const char *pcb_type = image.get_feature("pcb_type");
if (pcb_type)
diff --git a/src/mame/drivers/genpc.cpp b/src/mame/drivers/genpc.cpp
index edf7297b96b..72d267b69af 100644
--- a/src/mame/drivers/genpc.cpp
+++ b/src/mame/drivers/genpc.cpp
@@ -85,7 +85,7 @@ static MACHINE_CONFIG_START( pcmda, genpc_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "fdc_xt", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "hdc", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "adlib", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, nullptr, false)
/* keyboard */
MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270)
@@ -113,7 +113,7 @@ static MACHINE_CONFIG_START( pcherc, genpc_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "fdc_xt", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "hdc", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "adlib", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, nullptr, false)
/* keyboard */
MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270)
@@ -142,7 +142,7 @@ static MACHINE_CONFIG_START( pccga, genpc_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "fdc_xt", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "hdc", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "sblaster1_0", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, nullptr, false)
/* keyboard */
MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270)
@@ -171,7 +171,7 @@ static MACHINE_CONFIG_START( pcega, genpc_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "hdc", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "sblaster1_0", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "ega", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, nullptr, false)
/* keyboard */
MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270)
@@ -200,7 +200,7 @@ static MACHINE_CONFIG_START( xtvga, genpc_state )
MCFG_ISA8_SLOT_ADD("mb:isa","isa3", pc_isa8_cards, "hdc", false)
MCFG_ISA8_SLOT_ADD("mb:isa","isa4", pc_isa8_cards, "sblaster1_0", false)
MCFG_ISA8_SLOT_ADD("mb:isa","isa5", pc_isa8_cards, "svga_et4k", false)
- MCFG_ISA8_SLOT_ADD("mb:isa","isa6", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa","isa6", pc_isa8_cards, nullptr, false)
/* keyboard */
MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270)
diff --git a/src/mame/drivers/gimix.cpp b/src/mame/drivers/gimix.cpp
index e695ab827f6..efd62e1a1f4 100644
--- a/src/mame/drivers/gimix.cpp
+++ b/src/mame/drivers/gimix.cpp
@@ -619,7 +619,7 @@ static MACHINE_CONFIG_START( gimix, gimix_state )
MCFG_ACIA6850_TXD_HANDLER(DEVWRITELINE("serial4",rs232_port_device,write_txd))
MCFG_ACIA6850_RTS_HANDLER(DEVWRITELINE("serial4",rs232_port_device,write_rts))
- MCFG_RS232_PORT_ADD("serial1",default_rs232_devices,NULL)
+ MCFG_RS232_PORT_ADD("serial1",default_rs232_devices,nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("acia1",acia6850_device,write_rxd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("acia1",acia6850_device,write_cts))
@@ -627,11 +627,11 @@ static MACHINE_CONFIG_START( gimix, gimix_state )
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("acia2",acia6850_device,write_rxd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("acia2",acia6850_device,write_cts))
- MCFG_RS232_PORT_ADD("serial3",default_rs232_devices,NULL)
+ MCFG_RS232_PORT_ADD("serial3",default_rs232_devices,nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("acia3",acia6850_device,write_rxd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("acia3",acia6850_device,write_cts))
- MCFG_RS232_PORT_ADD("serial4",default_rs232_devices,NULL)
+ MCFG_RS232_PORT_ADD("serial4",default_rs232_devices,nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("acia4",acia6850_device,write_rxd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("acia4",acia6850_device,write_cts))
diff --git a/src/mame/drivers/goodejan.cpp b/src/mame/drivers/goodejan.cpp
index b8e66f4608b..8cf6a298b90 100644
--- a/src/mame/drivers/goodejan.cpp
+++ b/src/mame/drivers/goodejan.cpp
@@ -668,7 +668,7 @@ ROM_START( totmejan )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "5.1016", 0x000000, 0x08000, CRC(8bfdb304) SHA1(454fd84eb7d9338f0b5f8de0ffae541d17b958d5) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x080000, "spr_gfx", 0 )
ROM_LOAD( "e-jan.078", 0x000000, 0x080000, CRC(ff9ee9d8) SHA1(5e49e9a666630ca9867ee96b9d2b8d6f503b25df) )
@@ -700,7 +700,7 @@ ROM_START( goodejan )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "5.1016", 0x000000, 0x08000, CRC(732e9eae) SHA1(d306610f08630708bbbb97d71e9ed4d7e027579a) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x080000, "spr_gfx", 0 )
ROM_LOAD( "e_jan2obj.078", 0x000000, 0x080000, CRC(0f892ef2) SHA1(188ae43db1c48fb6870aa45c64718e901831499b) )
@@ -732,7 +732,7 @@ ROM_START( goodejana )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "5.1016", 0x000000, 0x08000, CRC(732e9eae) SHA1(d306610f08630708bbbb97d71e9ed4d7e027579a) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x080000, "spr_gfx", 0 )
ROM_LOAD( "e_jan2obj.078", 0x000000, 0x080000, CRC(0f892ef2) SHA1(188ae43db1c48fb6870aa45c64718e901831499b) )
diff --git a/src/mame/drivers/gottlieb.cpp b/src/mame/drivers/gottlieb.cpp
index ef6232a3b0a..d9913f744d8 100644
--- a/src/mame/drivers/gottlieb.cpp
+++ b/src/mame/drivers/gottlieb.cpp
@@ -224,7 +224,7 @@ void gottlieb_state::machine_start()
save_item(NAME(m_track));
/* see if we have a laserdisc */
- if (m_laserdisc != NULL)
+ if (m_laserdisc != nullptr)
{
/* attach to the I/O ports */
m_maincpu->space(AS_PROGRAM).install_read_handler(0x05805, 0x05807, 0, 0x07f8, read8_delegate(FUNC(gottlieb_state::laserdisc_status_r),this));
@@ -259,7 +259,7 @@ void gottlieb_state::machine_start()
void gottlieb_state::machine_reset()
{
/* if we have a laserdisc, reset our philips code callback for the next line 17 */
- if (m_laserdisc != NULL)
+ if (m_laserdisc != nullptr)
m_laserdisc_philips_timer->adjust(m_screen->time_until_pos(17), 17);
}
@@ -290,8 +290,8 @@ WRITE8_MEMBER(gottlieb_state::gottlieb_analog_reset_w)
CUSTOM_INPUT_MEMBER(gottlieb_state::stooges_joystick_r)
{
- static const char *const joyport[] = { "P2JOY", "P3JOY", "P1JOY", NULL };
- return (joyport[m_joystick_select & 3] != NULL) ? ioport(joyport[m_joystick_select & 3])->read() : 0xff;
+ static const char *const joyport[] = { "P2JOY", "P3JOY", "P1JOY", nullptr };
+ return (joyport[m_joystick_select & 3] != nullptr) ? ioport(joyport[m_joystick_select & 3])->read() : 0xff;
}
@@ -305,7 +305,7 @@ CUSTOM_INPUT_MEMBER(gottlieb_state::stooges_joystick_r)
WRITE8_MEMBER(gottlieb_state::general_output_w)
{
/* bits 0-3 control video features, and are different for laserdisc games */
- if (m_laserdisc == NULL)
+ if (m_laserdisc == nullptr)
gottlieb_video_control_w(space, offset, data);
else
gottlieb_laserdisc_video_control_w(space, offset, data);
@@ -589,7 +589,7 @@ void gottlieb_state::laserdisc_audio_process(laserdisc_device &device, int sampl
logerror("--------------\n");
/* if no data, reset it all */
- if (ch1 == NULL)
+ if (ch1 == nullptr)
{
m_laserdisc_last_time = curtime + time_per_sample * samples;
return;
@@ -665,7 +665,7 @@ static const char *const qbert_knocker_names[] =
{
"*qbert",
"knocker",
- 0 /* end of array */
+ nullptr /* end of array */
};
MACHINE_CONFIG_FRAGMENT( qbert_knocker )
@@ -719,7 +719,7 @@ INTERRUPT_GEN_MEMBER(gottlieb_state::gottlieb_interrupt)
timer_set(m_screen->time_until_pos(0), TIMER_NMI_CLEAR);
/* if we have a laserdisc, update it */
- if (m_laserdisc != NULL)
+ if (m_laserdisc != nullptr)
{
/* set the "disc ready" bit, which basically indicates whether or not we have a proper video frame */
if (!m_laserdisc->video_active())
@@ -739,9 +739,9 @@ INTERRUPT_GEN_MEMBER(gottlieb_state::gottlieb_interrupt)
WRITE8_MEMBER(gottlieb_state::gottlieb_sh_w)
{
- if (m_r1_sound != NULL)
+ if (m_r1_sound != nullptr)
m_r1_sound->write(space, offset, data);
- if (m_r2_sound != NULL)
+ if (m_r2_sound != nullptr)
m_r2_sound->write(space, offset, data);
}
@@ -1747,7 +1747,7 @@ static const gfx_layout fg_layout =
};
static GFXDECODE_START( gfxdecode )
- GFXDECODE_ENTRY( NULL, 0x4000, bg_ram_layout, 0, 1 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x4000, bg_ram_layout, 0, 1 ) /* the game dynamically modifies this */
GFXDECODE_ENTRY( "bgtiles", 0x0000, bg_rom_layout, 0, 1 )
GFXDECODE_ENTRY( "sprites", 0x0000, fg_layout, 0, 1 )
GFXDECODE_END
diff --git a/src/mame/drivers/gotya.cpp b/src/mame/drivers/gotya.cpp
index cdae400d0bb..2bf64918c6e 100644
--- a/src/mame/drivers/gotya.cpp
+++ b/src/mame/drivers/gotya.cpp
@@ -166,7 +166,7 @@ static const char *const sample_names[] =
"18", /* 'Come on!' */ // 194a
"19", /* 'I love you!' */ // 194a
"1a", /* 'See you again!' */ // 194a
- 0
+ nullptr
};
void gotya_state::machine_start()
diff --git a/src/mame/drivers/gridlee.cpp b/src/mame/drivers/gridlee.cpp
index 6bd0ea52280..54f67139cbe 100644
--- a/src/mame/drivers/gridlee.cpp
+++ b/src/mame/drivers/gridlee.cpp
@@ -397,7 +397,7 @@ static const char *const sample_names[] =
"*gridlee",
"bounce1",
"bounce2",
- 0 /* end of array */
+ nullptr /* end of array */
};
/*************************************
diff --git a/src/mame/drivers/groundfx.cpp b/src/mame/drivers/groundfx.cpp
index ef3386c9985..f67256ea3e2 100644
--- a/src/mame/drivers/groundfx.cpp
+++ b/src/mame/drivers/groundfx.cpp
@@ -380,7 +380,7 @@ ROM_START( groundfx )
ROM_LOAD16_BYTE( "d51-10.95", 0x000000, 0x100000, CRC(d5910604) SHA1(8efe13884cfdef208394ddfe19f43eb1b9f78ff3) ) /* SCC 8x8 tiles, 6bpp */
ROM_LOAD16_BYTE( "d51-11.96", 0x000001, 0x100000, CRC(fee5f5c6) SHA1(1be88747f9c71c348dd61a8f0040007df3a3e6a6) )
ROM_LOAD ( "d51-12.97", 0x300000, 0x100000, CRC(d630287b) SHA1(2fa09e1821b7280d193ca9a2a270759c3c3189d1) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION16_LE( 0x80000, "user1", 0 )
ROM_LOAD16_WORD( "d51-13.7", 0x00000, 0x80000, CRC(36921b8b) SHA1(2130120f78a3b984618a53054fc937cf727177b9) ) /* STY, spritemap */
diff --git a/src/mame/drivers/gstream.cpp b/src/mame/drivers/gstream.cpp
index c56a9c4cc6e..9ef25ea9f54 100644
--- a/src/mame/drivers/gstream.cpp
+++ b/src/mame/drivers/gstream.cpp
@@ -612,7 +612,7 @@ void drawgfx_transpen_x2222(bitmap_rgb32 &dest, const rectangle &cliprect, gfx_e
INT32 dy;
assert(dest.valid());
- assert(gfx != NULL);
+ assert(gfx != nullptr);
assert(dest.cliprect().contains(cliprect));
assert(code < gfx->elements());
diff --git a/src/mame/drivers/gunpey.cpp b/src/mame/drivers/gunpey.cpp
index ec8995be89e..0b2332a36f4 100644
--- a/src/mame/drivers/gunpey.cpp
+++ b/src/mame/drivers/gunpey.cpp
@@ -1471,7 +1471,7 @@ ROM_START( gunpey )
ROM_REGION( 0x400000, "blit_data", 0 )
ROM_LOAD( "gp_rom3.025", 0x00000, 0x400000, CRC(f2d1f9f0) SHA1(0d20301fd33892074508b9d127456eae80cc3a1c) )
ROM_REGION( 0x400000, "blit_data2", 0 ) // debug test
- ROM_COPY( "blit_data", 0x00000, 0x00000, 0x400000 )
+ ROM_COPY( "blit_data", nullptr, 0x00000, 0x400000 )
ROM_REGION( 0x400000, "vram", ROMREGION_ERASEFF )
diff --git a/src/mame/drivers/hideseek.cpp b/src/mame/drivers/hideseek.cpp
index d17b244a4fb..687dcd1b931 100644
--- a/src/mame/drivers/hideseek.cpp
+++ b/src/mame/drivers/hideseek.cpp
@@ -123,10 +123,10 @@ MACHINE_CONFIG_END
ROM_START( hideseek )
ROM_REGION( 0x200000, "maincpu", ROMREGION_ERASE00)
ROM_LOAD( "hd64f7045f28_internal_rom.bin", 0x000000, 0x040000, NO_DUMP ) // on chip ROM
- ROM_FILL( 0, 1, 0x00 )
+ ROM_FILL( 0, 1, nullptr )
ROM_FILL( 1, 1, 0x40 )
- ROM_FILL( 2, 1, 0x00 )
- ROM_FILL( 3, 1, 0x00 )
+ ROM_FILL( 2, 1, nullptr )
+ ROM_FILL( 3, 1, nullptr )
ROM_FILL( 4, 1, 0x01 )
ROM_FILL( 5, 1, 0xff )
ROM_FILL( 6, 1, 0xff )
diff --git a/src/mame/drivers/homerun.cpp b/src/mame/drivers/homerun.cpp
index 5dfe6ecba4d..65b3c851fb4 100644
--- a/src/mame/drivers/homerun.cpp
+++ b/src/mame/drivers/homerun.cpp
@@ -70,12 +70,12 @@ WRITE8_MEMBER(homerun_state::homerun_control_w)
// d4: d7756 start pin
// d5: d7756 reset pin(?)
- if (m_d7756 != NULL)
+ if (m_d7756 != nullptr)
{
m_d7756->reset_w(~data & 0x20);
m_d7756->start_w(~data & 0x10);
}
- if (m_samples != NULL)
+ if (m_samples != nullptr)
{
// play MAME sample if a dump of the internal rom does not exist
if (data & 0x20 & ~m_control)
@@ -97,7 +97,7 @@ WRITE8_MEMBER(homerun_state::homerun_d7756_sample_w)
{
m_sample = data;
- if (m_d7756 != NULL)
+ if (m_d7756 != nullptr)
m_d7756->port_w(space, 0, data);
}
@@ -285,7 +285,7 @@ static const char *const homerun_sample_names[] =
"13", // aho (be called a fool by supervisor)
"14", // bat hits ball
"15", // crowd cheers
- 0
+ nullptr
};
/**************************************************************************/
diff --git a/src/mame/drivers/horizon.cpp b/src/mame/drivers/horizon.cpp
index 4d9c0b4172e..11076e517f2 100644
--- a/src/mame/drivers/horizon.cpp
+++ b/src/mame/drivers/horizon.cpp
@@ -162,7 +162,7 @@ static MACHINE_CONFIG_START( horizon, horizon_state )
MCFG_I8251_DTR_HANDLER(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
MCFG_I8251_RTS_HANDLER(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(I8251_R_TAG, i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(I8251_R_TAG, i8251_device, write_dsr))
@@ -170,17 +170,17 @@ static MACHINE_CONFIG_START( horizon, horizon_state )
MCFG_S100_BUS_ADD()
MCFG_S100_RDY_CALLBACK(INPUTLINE(Z80_TAG, Z80_INPUT_LINE_WAIT))
//MCFG_S100_SLOT_ADD("s100_1", horizon_s100_cards, NULL, NULL) // CPU
- MCFG_S100_SLOT_ADD("s100_2", horizon_s100_cards, NULL) // RAM
+ MCFG_S100_SLOT_ADD("s100_2", horizon_s100_cards, nullptr) // RAM
MCFG_S100_SLOT_ADD("s100_3", horizon_s100_cards, "mdsad") // MDS
- MCFG_S100_SLOT_ADD("s100_4", horizon_s100_cards, NULL) // FPB
- MCFG_S100_SLOT_ADD("s100_5", horizon_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_6", horizon_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_7", horizon_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_8", horizon_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_9", horizon_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_10", horizon_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_11", horizon_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_12", horizon_s100_cards, NULL)
+ MCFG_S100_SLOT_ADD("s100_4", horizon_s100_cards, nullptr) // FPB
+ MCFG_S100_SLOT_ADD("s100_5", horizon_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_6", horizon_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_7", horizon_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_8", horizon_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_9", horizon_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_10", horizon_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_11", horizon_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_12", horizon_s100_cards, nullptr)
// software list
MCFG_SOFTWARE_LIST_ADD("flop_list", "horizon")
diff --git a/src/mame/drivers/hornet.cpp b/src/mame/drivers/hornet.cpp
index e76de3256c8..047b62190c0 100644
--- a/src/mame/drivers/hornet.cpp
+++ b/src/mame/drivers/hornet.cpp
@@ -652,7 +652,7 @@ WRITE32_MEMBER(hornet_state::comm_rombank_w)
{
int bank = data >> 24;
UINT8 *usr3 = memregion("user3")->base();
- if (usr3 != NULL)
+ if (usr3 != nullptr)
membank("bank1")->set_entry(bank & 0x7f);
}
@@ -948,7 +948,7 @@ void hornet_state::machine_reset()
{
UINT8 *usr3 = memregion("user3")->base();
UINT8 *usr5 = memregion("user5")->base();
- if (usr3 != NULL)
+ if (usr3 != nullptr)
{
membank("bank1")->configure_entries(0, memregion("user3")->bytes() / 0x10000, usr3, 0x10000);
membank("bank1")->set_entry(0);
@@ -1041,7 +1041,7 @@ MACHINE_RESET_MEMBER(hornet_state,hornet_2board)
UINT8 *usr3 = memregion("user3")->base();
UINT8 *usr5 = memregion("user5")->base();
- if (usr3 != NULL)
+ if (usr3 != nullptr)
{
membank("bank1")->configure_entries(0, memregion("user3")->bytes() / 0x10000, usr3, 0x10000);
membank("bank1")->set_entry(0);
diff --git a/src/mame/drivers/hp64k.cpp b/src/mame/drivers/hp64k.cpp
index e56ce89f62b..722b27c304d 100644
--- a/src/mame/drivers/hp64k.cpp
+++ b/src/mame/drivers/hp64k.cpp
@@ -402,7 +402,7 @@ void hp64k_state::machine_reset()
m_floppy_intrq = false;
m_floppy_drv_ctrl = ~0;
m_floppy_if_state = HP64K_FLPST_IDLE;
- m_current_floppy = NULL;
+ m_current_floppy = nullptr;
m_floppy0_wpt = false;
m_floppy1_wpt = false;
m_beeper->set_state(0);
@@ -858,7 +858,7 @@ void hp64k_state::hp64k_update_drv_ctrl(void)
} else if (!BIT(m_floppy_drv_ctrl , 0)) {
new_drive = m_floppy0->get_device();
} else {
- new_drive = NULL;
+ new_drive = nullptr;
}
if (new_drive != m_current_floppy) {
@@ -1398,7 +1398,7 @@ static MACHINE_CONFIG_START(hp64k , hp64k_state)
MCFG_I8251_DTR_HANDLER(WRITELINE(hp64k_state , hp64k_dtr_w));
MCFG_I8251_RTS_HANDLER(WRITELINE(hp64k_state , hp64k_rts_w));
- MCFG_RS232_PORT_ADD("rs232" , default_rs232_devices , NULL)
+ MCFG_RS232_PORT_ADD("rs232" , default_rs232_devices , nullptr)
MCFG_RS232_RXD_HANDLER(WRITELINE(hp64k_state , hp64k_rs232_rxd_w))
MCFG_RS232_DCD_HANDLER(WRITELINE(hp64k_state , hp64k_rs232_dcd_w))
MCFG_RS232_CTS_HANDLER(WRITELINE(hp64k_state , hp64k_rs232_cts_w))
diff --git a/src/mame/drivers/ht68k.cpp b/src/mame/drivers/ht68k.cpp
index 155e3865621..09b743644b0 100644
--- a/src/mame/drivers/ht68k.cpp
+++ b/src/mame/drivers/ht68k.cpp
@@ -46,7 +46,7 @@ public:
m_floppy1(*this, "wd1770:1"),
m_floppy2(*this, "wd1770:2"),
m_floppy3(*this, "wd1770:3"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_p_ram(*this, "p_ram")
{
}
@@ -90,7 +90,7 @@ void ht68k_state::machine_reset()
m_maincpu->reset();
m_fdc->reset();
- m_fdc->set_floppy(NULL);
+ m_fdc->set_floppy(nullptr);
}
WRITE_LINE_MEMBER(ht68k_state::duart_irq_handler)
@@ -105,7 +105,7 @@ WRITE_LINE_MEMBER(ht68k_state::duart_txb)
WRITE8_MEMBER(ht68k_state::duart_output)
{
- m_floppy = NULL;
+ m_floppy = nullptr;
if ((BIT(data, 7)) == 0) { m_floppy = m_floppy0->get_device(); }
if ((BIT(data, 6)) == 0) { m_floppy = m_floppy1->get_device(); }
diff --git a/src/mame/drivers/huebler.cpp b/src/mame/drivers/huebler.cpp
index c97f5aafefc..b3a3be497ce 100644
--- a/src/mame/drivers/huebler.cpp
+++ b/src/mame/drivers/huebler.cpp
@@ -271,7 +271,7 @@ static const z80_daisy_config amu880_daisy_chain[] =
{ Z80SIO_TAG },
{ Z80PIO1_TAG },
{ Z80PIO2_TAG },
- { NULL }
+ { nullptr }
};
/* Machine Initialization */
diff --git a/src/mame/drivers/hunter2.cpp b/src/mame/drivers/hunter2.cpp
index 75eb60c6115..48e8f68e5fd 100644
--- a/src/mame/drivers/hunter2.cpp
+++ b/src/mame/drivers/hunter2.cpp
@@ -400,7 +400,7 @@ static MACHINE_CONFIG_START( hunter2, hunter2_state )
MCFG_NSC810_TIMER0_OUT(WRITELINE(hunter2_state,timer0_out))
MCFG_NSC810_TIMER1_OUT(WRITELINE(hunter2_state,timer1_out))
- MCFG_RS232_PORT_ADD("serial",default_rs232_devices,NULL)
+ MCFG_RS232_PORT_ADD("serial",default_rs232_devices,nullptr)
MCFG_RS232_CTS_HANDLER(WRITELINE(hunter2_state,cts_w))
MCFG_RS232_RXD_HANDLER(WRITELINE(hunter2_state,rxd_w))
diff --git a/src/mame/drivers/hx20.cpp b/src/mame/drivers/hx20.cpp
index d1849d1c7e9..56d705e96bd 100644
--- a/src/mame/drivers/hx20.cpp
+++ b/src/mame/drivers/hx20.cpp
@@ -852,7 +852,7 @@ static MACHINE_CONFIG_START( hx20, hx20_state )
// devices
MCFG_MC146818_ADD(MC146818_TAG, XTAL_4_194304Mhz)
MCFG_MC146818_IRQ_HANDLER(WRITELINE(hx20_state, rtc_irq_w))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_CASSETTE_ADD(CASSETTE_TAG)
MCFG_EPSON_SIO_ADD("sio", "tf20")
MCFG_EPSON_SIO_RX(WRITELINE(hx20_state, sio_rx_w))
diff --git a/src/mame/drivers/ibmpc.cpp b/src/mame/drivers/ibmpc.cpp
index 0e698be4b90..f49d500e829 100644
--- a/src/mame/drivers/ibmpc.cpp
+++ b/src/mame/drivers/ibmpc.cpp
@@ -315,7 +315,7 @@ static MACHINE_CONFIG_START( ibm5150, ibmpc_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "com", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "fdc_xt", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "hdc", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, nullptr, false)
/* keyboard */
MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270)
@@ -351,10 +351,10 @@ static MACHINE_CONFIG_START( ibm5160, ibmpc_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "com", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "fdc_xt", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "hdc", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa7", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa8", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa7", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa8", pc_isa8_cards, nullptr, false)
/* keyboard */
MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_IBM_PC_XT_83)
diff --git a/src/mame/drivers/ibmpcjr.cpp b/src/mame/drivers/ibmpcjr.cpp
index 8b3bccc4485..a6ebd5fbaa2 100644
--- a/src/mame/drivers/ibmpcjr.cpp
+++ b/src/mame/drivers/ibmpcjr.cpp
@@ -372,7 +372,7 @@ WRITE8_MEMBER(pcjr_state::pcjr_fdc_dor_w)
logerror("fdc: dor = %02x\n", data);
UINT8 pdor = m_pcjr_dor;
floppy_image_device *floppy0 = m_fdc->subdevice<floppy_connector>("0")->get_device();
- floppy_image_device *floppy1 = NULL;
+ floppy_image_device *floppy1 = nullptr;
if(m_fdc->subdevice("1"))
floppy1 = m_fdc->subdevice<floppy_connector>("1")->get_device();
@@ -388,7 +388,7 @@ WRITE8_MEMBER(pcjr_state::pcjr_fdc_dor_w)
else if(m_pcjr_dor & 2)
m_fdc->set_floppy(floppy1);
else
- m_fdc->set_floppy(NULL);
+ m_fdc->set_floppy(nullptr);
if((pdor^m_pcjr_dor) & 0x80)
m_fdc->reset();
@@ -442,7 +442,7 @@ int pcjr_state::load_cart(device_image_interface &image, generic_slot_device *sl
UINT32 size = slot->common_get_size("rom");
bool imagic_hack = false;
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
int header_size = 0;
@@ -603,7 +603,7 @@ static MACHINE_CONFIG_START( ibmpcjr, pcjr_state)
MCFG_INS8250_OUT_RTS_CB(DEVWRITELINE("serport", rs232_port_device, write_rts))
MCFG_INS8250_OUT_INT_CB(DEVWRITELINE("pic8259", pic8259_device, ir3_w))
- MCFG_RS232_PORT_ADD( "serport", pcjr_com, NULL )
+ MCFG_RS232_PORT_ADD( "serport", pcjr_com, nullptr )
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("ins8250", ins8250_uart_device, rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("ins8250", ins8250_uart_device, dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("ins8250", ins8250_uart_device, dsr_w))
diff --git a/src/mame/drivers/igs009.cpp b/src/mame/drivers/igs009.cpp
index b94f9b163c8..8c6c8446b5d 100644
--- a/src/mame/drivers/igs009.cpp
+++ b/src/mame/drivers/igs009.cpp
@@ -647,7 +647,7 @@ static INPUT_PORTS_START( jingbell )
PORT_START("SERVICE")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Memory Clear") // stats, memory
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igs009_state,hopper_r, (void *)0 ) // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igs009_state,hopper_r, (void *)nullptr ) // hopper sensor
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT ) PORT_NAME("Pay Out")
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW ) // test (press during boot)
@@ -952,7 +952,7 @@ ROM_START( gp98 )
ROM_LOAD( "51", 0x100000, 0x80000, CRC(30a2ef85) SHA1(38ea637acd83b175eccd2969ef21879265b88992) )
ROM_REGION( 0xc0000, "reels", 0 )
- ROM_COPY( "tempgfx", 0x000000, 0x00000, 0x40000 )
+ ROM_COPY( "tempgfx", nullptr, 0x00000, 0x40000 )
ROM_COPY( "tempgfx", 0x080000, 0x40000, 0x40000 )
ROM_COPY( "tempgfx", 0x100000, 0x80000, 0x40000 )
diff --git a/src/mame/drivers/igs011.cpp b/src/mame/drivers/igs011.cpp
index 1e0f0c825d4..f2f7804ba04 100644
--- a/src/mame/drivers/igs011.cpp
+++ b/src/mame/drivers/igs011.cpp
@@ -3126,7 +3126,7 @@ static INPUT_PORTS_START( lhb2 )
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) // data clear
PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) // keep pressed while booting
- PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)0) // hopper switch
+ PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)nullptr) // hopper switch
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 ) // stats
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Pay Out") PORT_CODE(KEYCODE_O) // clear coin
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
@@ -3256,7 +3256,7 @@ static INPUT_PORTS_START( nkishusp )
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) // data clear
PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) // keep pressed while booting
- PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)0) // hopper switch
+ PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)nullptr) // hopper switch
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 ) // stats
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Pay Out") PORT_CODE(KEYCODE_O) // clear coin
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
@@ -3385,7 +3385,7 @@ static INPUT_PORTS_START( wlcc )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 ) // shown in test mode
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Pay Out") PORT_CODE(KEYCODE_O) // clear coin
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)0) // hopper switch
+ PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)nullptr) // hopper switch
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
@@ -3514,7 +3514,7 @@ static INPUT_PORTS_START( lhb )
PORT_DIPUNKNOWN( 0x80, 0x80 )
PORT_START("COIN")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)0) // hopper switch
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)nullptr) // hopper switch
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE2 ) // system reset
PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) // keep pressed while booting
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 ) // stats
@@ -3841,7 +3841,7 @@ static INPUT_PORTS_START( xymg )
PORT_DIPUNKNOWN( 0x80, 0x80 )
PORT_START("COIN")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)0) // hopper switch
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, igs011_state,igs_hopper_r, (void *)nullptr) // hopper switch
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) // keep pressed while booting
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 ) // stats
@@ -4739,9 +4739,9 @@ ROM_START( vbowl )
ROM_REGION( 0x400000, "ics", 0 )
ROM_LOAD( "vrbowlng.u67", 0x00000, 0x80000, CRC(53000936) SHA1(e50c6216f559a9248c095bdfae05c3be4be79ff3) ) // 8 bit signed mono & u-law
ROM_LOAD( "vrbowlng.u66", 0x80000, 0x80000, CRC(f62cf8ed) SHA1(c53e47e2c619ed974ad40ee4aaa4a35147ea8311) ) // 8 bit signed mono
- ROM_COPY( "ics", 0, 0x100000,0x100000)
- ROM_COPY( "ics", 0, 0x200000,0x100000)
- ROM_COPY( "ics", 0, 0x300000,0x100000)
+ ROM_COPY( "ics", nullptr, 0x100000,0x100000)
+ ROM_COPY( "ics", nullptr, 0x200000,0x100000)
+ ROM_COPY( "ics", nullptr, 0x300000,0x100000)
ROM_END
ROM_START( vbowlj )
@@ -4758,9 +4758,9 @@ ROM_START( vbowlj )
ROM_REGION( 0x400000, "ics", 0 )
ROM_LOAD( "vrbowlng.u67", 0x00000, 0x80000, CRC(53000936) SHA1(e50c6216f559a9248c095bdfae05c3be4be79ff3) ) // 8 bit signed mono & u-law
ROM_LOAD( "vrbowlng.u66", 0x80000, 0x80000, CRC(f62cf8ed) SHA1(c53e47e2c619ed974ad40ee4aaa4a35147ea8311) ) // 8 bit signed mono
- ROM_COPY( "ics", 0, 0x100000,0x100000)
- ROM_COPY( "ics", 0, 0x200000,0x100000)
- ROM_COPY( "ics", 0, 0x300000,0x100000)
+ ROM_COPY( "ics", nullptr, 0x100000,0x100000)
+ ROM_COPY( "ics", nullptr, 0x200000,0x100000)
+ ROM_COPY( "ics", nullptr, 0x300000,0x100000)
ROM_END
/***************************************************************************
diff --git a/src/mame/drivers/imds2.cpp b/src/mame/drivers/imds2.cpp
index 4cd79a5daab..7a579f7a89b 100644
--- a/src/mame/drivers/imds2.cpp
+++ b/src/mame/drivers/imds2.cpp
@@ -578,7 +578,7 @@ void imds2_state::driver_start()
m_ipc_ram.resize(0x10000);
memory_region *ipcrom = memregion("ipcrom");
- if (ipcrom == NULL) {
+ if (ipcrom == nullptr) {
fatalerror("Unable to find IPC ROM region\n");
} else {
m_ipc_rom = ipcrom->base();
@@ -794,11 +794,11 @@ static MACHINE_CONFIG_START(imds2 , imds2_state)
MCFG_I8251_RTS_HANDLER(DEVWRITELINE("serial1" , rs232_port_device , write_rts))
MCFG_I8251_DTR_HANDLER(DEVWRITELINE("serial1" , rs232_port_device , write_dtr))
- MCFG_RS232_PORT_ADD("serial0" , default_rs232_devices , NULL)
+ MCFG_RS232_PORT_ADD("serial0" , default_rs232_devices , nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("ipcusart0" , i8251_device , write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("ipcusart0" , i8251_device , write_dsr))
- MCFG_RS232_PORT_ADD("serial1" , default_rs232_devices , NULL)
+ MCFG_RS232_PORT_ADD("serial1" , default_rs232_devices , nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("ipcusart1" , i8251_device , write_rxd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("ipcusart1" , i8251_device , write_cts))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("ipcusart1" , i8251_device , write_dsr))
diff --git a/src/mame/drivers/intv.cpp b/src/mame/drivers/intv.cpp
index ee2a2b1bc2d..d1d6f8eab6b 100644
--- a/src/mame/drivers/intv.cpp
+++ b/src/mame/drivers/intv.cpp
@@ -582,7 +582,7 @@ static MACHINE_CONFIG_START( intv, intv_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33)
/* cartridge */
- MCFG_INTV_CARTRIDGE_ADD("cartslot", intv_cart, NULL)
+ MCFG_INTV_CARTRIDGE_ADD("cartslot", intv_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list", "intv")
diff --git a/src/mame/drivers/iq151.cpp b/src/mame/drivers/iq151.cpp
index 404f503cb70..afee4573fcd 100644
--- a/src/mame/drivers/iq151.cpp
+++ b/src/mame/drivers/iq151.cpp
@@ -416,28 +416,28 @@ static MACHINE_CONFIG_START( iq151, iq151_state )
/* cartridge */
MCFG_DEVICE_ADD("slot1", IQ151CART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(iq151_cart, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(iq151_cart, nullptr, false)
MCFG_IQ151CART_SLOT_OUT_IRQ0_CB(DEVWRITELINE("pic8259", pic8259_device, ir0_w))
MCFG_IQ151CART_SLOT_OUT_IRQ1_CB(DEVWRITELINE("pic8259", pic8259_device, ir1_w))
MCFG_IQ151CART_SLOT_OUT_IRQ2_CB(DEVWRITELINE("pic8259", pic8259_device, ir2_w))
MCFG_IQ151CART_SLOT_OUT_IRQ3_CB(DEVWRITELINE("pic8259", pic8259_device, ir3_w))
MCFG_IQ151CART_SLOT_OUT_IRQ4_CB(DEVWRITELINE("pic8259", pic8259_device, ir4_w))
MCFG_DEVICE_ADD("slot2", IQ151CART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(iq151_cart, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(iq151_cart, nullptr, false)
MCFG_IQ151CART_SLOT_OUT_IRQ0_CB(DEVWRITELINE("pic8259", pic8259_device, ir0_w))
MCFG_IQ151CART_SLOT_OUT_IRQ1_CB(DEVWRITELINE("pic8259", pic8259_device, ir1_w))
MCFG_IQ151CART_SLOT_OUT_IRQ2_CB(DEVWRITELINE("pic8259", pic8259_device, ir2_w))
MCFG_IQ151CART_SLOT_OUT_IRQ3_CB(DEVWRITELINE("pic8259", pic8259_device, ir3_w))
MCFG_IQ151CART_SLOT_OUT_IRQ4_CB(DEVWRITELINE("pic8259", pic8259_device, ir4_w))
MCFG_DEVICE_ADD("slot3", IQ151CART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(iq151_cart, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(iq151_cart, nullptr, false)
MCFG_IQ151CART_SLOT_OUT_IRQ0_CB(DEVWRITELINE("pic8259", pic8259_device, ir0_w))
MCFG_IQ151CART_SLOT_OUT_IRQ1_CB(DEVWRITELINE("pic8259", pic8259_device, ir1_w))
MCFG_IQ151CART_SLOT_OUT_IRQ2_CB(DEVWRITELINE("pic8259", pic8259_device, ir2_w))
MCFG_IQ151CART_SLOT_OUT_IRQ3_CB(DEVWRITELINE("pic8259", pic8259_device, ir3_w))
MCFG_IQ151CART_SLOT_OUT_IRQ4_CB(DEVWRITELINE("pic8259", pic8259_device, ir4_w))
MCFG_DEVICE_ADD("slot4", IQ151CART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(iq151_cart, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(iq151_cart, nullptr, false)
MCFG_IQ151CART_SLOT_OUT_IRQ0_CB(DEVWRITELINE("pic8259", pic8259_device, ir0_w))
MCFG_IQ151CART_SLOT_OUT_IRQ1_CB(DEVWRITELINE("pic8259", pic8259_device, ir1_w))
MCFG_IQ151CART_SLOT_OUT_IRQ2_CB(DEVWRITELINE("pic8259", pic8259_device, ir2_w))
diff --git a/src/mame/drivers/isbc.cpp b/src/mame/drivers/isbc.cpp
index d7a9ba149e0..600b0886b74 100644
--- a/src/mame/drivers/isbc.cpp
+++ b/src/mame/drivers/isbc.cpp
@@ -250,12 +250,12 @@ static MACHINE_CONFIG_START( rpc86, isbc_state )
MCFG_I8251_RXRDY_HANDLER(DEVWRITELINE("pic_0", pic8259_device, ir6_w))
/* video hardware */
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
- MCFG_ISBX_SLOT_ADD("sbx1", 0, isbx_cards, NULL)
+ MCFG_ISBX_SLOT_ADD("sbx1", 0, isbx_cards, nullptr)
//MCFG_ISBX_SLOT_MINTR0_CALLBACK(DEVWRITELINE("pic_0", pic8259_device, ir3_w))
//MCFG_ISBX_SLOT_MINTR1_CALLBACK(DEVWRITELINE("pic_0", pic8259_device, ir4_w))
- MCFG_ISBX_SLOT_ADD("sbx2", 0, isbx_cards, NULL)
+ MCFG_ISBX_SLOT_ADD("sbx2", 0, isbx_cards, nullptr)
//MCFG_ISBX_SLOT_MINTR0_CALLBACK(DEVWRITELINE("pic_0", pic8259_device, ir5_w))
//MCFG_ISBX_SLOT_MINTR1_CALLBACK(DEVWRITELINE("pic_0", pic8259_device, ir6_w))
MACHINE_CONFIG_END
@@ -301,7 +301,7 @@ static MACHINE_CONFIG_START( isbc286, isbc_state )
MCFG_Z80DART_OUT_RTSB_CB(DEVWRITELINE("rs232b", rs232_port_device, write_rts))
MCFG_Z80DART_OUT_INT_CB(WRITELINE(isbc_state, isbc_uart8274_irq))
- MCFG_RS232_PORT_ADD("rs232a", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232a", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("uart8274", z80dart_device, rxa_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("uart8274", z80dart_device, dcda_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("uart8274", z80dart_device, ctsa_w))
@@ -312,10 +312,10 @@ static MACHINE_CONFIG_START( isbc286, isbc_state )
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("uart8274", z80dart_device, ctsb_w))
MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("terminal", isbc286_terminal)
- MCFG_ISBX_SLOT_ADD("sbx1", 0, isbx_cards, NULL)
+ MCFG_ISBX_SLOT_ADD("sbx1", 0, isbx_cards, nullptr)
MCFG_ISBX_SLOT_MINTR0_CALLBACK(DEVWRITELINE("pic_1", pic8259_device, ir3_w))
MCFG_ISBX_SLOT_MINTR1_CALLBACK(DEVWRITELINE("pic_1", pic8259_device, ir4_w))
- MCFG_ISBX_SLOT_ADD("sbx2", 0, isbx_cards, NULL)
+ MCFG_ISBX_SLOT_ADD("sbx2", 0, isbx_cards, nullptr)
MCFG_ISBX_SLOT_MINTR0_CALLBACK(DEVWRITELINE("pic_1", pic8259_device, ir5_w))
MCFG_ISBX_SLOT_MINTR1_CALLBACK(DEVWRITELINE("pic_1", pic8259_device, ir6_w))
diff --git a/src/mame/drivers/iskr103x.cpp b/src/mame/drivers/iskr103x.cpp
index ba273e44cd7..945415f676b 100644
--- a/src/mame/drivers/iskr103x.cpp
+++ b/src/mame/drivers/iskr103x.cpp
@@ -82,10 +82,10 @@ static MACHINE_CONFIG_START( iskr1030m, iskr103x_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", iskr103x_isa8_cards, "cga_iskr1030m", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", iskr103x_isa8_cards, "fdc_xt", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", iskr103x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", iskr103x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", iskr103x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", iskr103x_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", iskr103x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", iskr103x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", iskr103x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", iskr103x_isa8_cards, nullptr, false)
MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_EC_1841)
// MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_ISKR_1030)
@@ -106,10 +106,10 @@ static MACHINE_CONFIG_START( iskr1031, iskr103x_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", iskr103x_isa8_cards, "cga_iskr1031", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", iskr103x_isa8_cards, "fdc_xt", false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", iskr103x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", iskr103x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", iskr103x_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", iskr103x_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", iskr103x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", iskr103x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", iskr103x_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", iskr103x_isa8_cards, nullptr, false)
// MCFG_SOFTWARE_LIST_ADD("flop_list", "iskr1031")
diff --git a/src/mame/drivers/itech32.cpp b/src/mame/drivers/itech32.cpp
index fc7e178745f..f484f36f101 100644
--- a/src/mame/drivers/itech32.cpp
+++ b/src/mame/drivers/itech32.cpp
@@ -4161,7 +4161,7 @@ ROM_END
void itech32_state::init_program_rom()
{
- if (m_main_ram == NULL)
+ if (m_main_ram == nullptr)
m_main_ram.set_target(m_nvram, m_nvram.bytes());
memcpy(m_main_ram, m_main_rom, 0x80);
}
diff --git a/src/mame/drivers/itech8.cpp b/src/mame/drivers/itech8.cpp
index 4c275d7ceb8..f327fb5051f 100644
--- a/src/mame/drivers/itech8.cpp
+++ b/src/mame/drivers/itech8.cpp
@@ -2537,7 +2537,7 @@ ROM_START( ninclown )
ROM_REGION( 0x80000, "maincpu", 0 )
ROM_LOAD16_BYTE( "prog1", 0x00000, 0x20000, CRC(fabfdcd2) SHA1(7a9852838cf7772d8f8f956b03823c4222520a5a) )
ROM_LOAD16_BYTE( "prog0", 0x00001, 0x20000, CRC(eca63db5) SHA1(b86d75ee81e155a21de18c2e0fa898f15d61560d) )
- ROM_COPY( "maincpu", 0x00000, 0x40000, 0x40000 )
+ ROM_COPY( "maincpu", nullptr, 0x40000, 0x40000 )
ROM_REGION( 0x10000, "soundcpu", 0 )
ROM_LOAD( "nc-snd", 0x08000, 0x8000, CRC(f9d5b4e1) SHA1(e5c3774db349b60baf11baecf55ac432871e612c) )
diff --git a/src/mame/drivers/itt3030.cpp b/src/mame/drivers/itt3030.cpp
index 2a006a84259..7a5875dc559 100644
--- a/src/mame/drivers/itt3030.cpp
+++ b/src/mame/drivers/itt3030.cpp
@@ -447,9 +447,9 @@ WRITE_LINE_MEMBER(itt3030_state::fdchld_w)
READ8_MEMBER(itt3030_state::fdc_stat_r)
{
UINT8 res = 0;
- floppy_image_device *floppy1 = m_con1 ? m_con1->get_device() : 0;
- floppy_image_device *floppy2 = m_con2 ? m_con2->get_device() : 0;
- floppy_image_device *floppy3 = m_con3 ? m_con3->get_device() : 0;
+ floppy_image_device *floppy1 = m_con1 ? m_con1->get_device() : nullptr;
+ floppy_image_device *floppy2 = m_con2 ? m_con2->get_device() : nullptr;
+ floppy_image_device *floppy3 = m_con3 ? m_con3->get_device() : nullptr;
res = m_fdc_drq ? 0x80 : 0x00;
res |= m_fdc_irq ? 0x40 : 0x00;
@@ -485,22 +485,22 @@ WRITE8_MEMBER(itt3030_state::fdc_w)
*/
WRITE8_MEMBER(itt3030_state::fdc_cmd_w)
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
logerror("%02x to fdc_cmd_w: motor %d side %d\n", data, (data & 0x10)>>4, (data & 4)>>2);
// select drive
if (data & 0x80)
{
- floppy = m_con1 ? m_con1->get_device() : 0;
+ floppy = m_con1 ? m_con1->get_device() : nullptr;
}
else if (data & 0x40)
{
- floppy = m_con2 ? m_con2->get_device() : 0;
+ floppy = m_con2 ? m_con2->get_device() : nullptr;
}
else if (data & 0x20)
{
- floppy = m_con3 ? m_con3->get_device() : 0;
+ floppy = m_con3 ? m_con3->get_device() : nullptr;
}
// selecting a new drive?
@@ -510,7 +510,7 @@ WRITE8_MEMBER(itt3030_state::fdc_cmd_w)
m_curfloppy = floppy;
}
- if (floppy != NULL)
+ if (floppy != nullptr)
{
// side select
floppy->ss_w((data & 4) ? 1 : 0);
@@ -729,7 +729,7 @@ void itt3030_state::machine_reset()
m_kbdrow = m_kbdcol = 0;
m_kbdclk = 1;
m_fdc_irq = m_fdc_drq = m_fdc_hld = 0;
- m_curfloppy = NULL;
+ m_curfloppy = nullptr;
m_keyskip = false;
// look up floppies in advance
diff --git a/src/mame/drivers/jack.cpp b/src/mame/drivers/jack.cpp
index c8f3340e2d6..01f1c88a2a7 100644
--- a/src/mame/drivers/jack.cpp
+++ b/src/mame/drivers/jack.cpp
@@ -1204,16 +1204,16 @@ ROM_START( sucasino )
ROM_REGION( 0x4000, "gfx1", 0 )
ROM_LOAD( "11", 0x0000, 0x1000, CRC(f92c4c5b) SHA1(a415c8f55d1792e79d05ece223ef423f8578f896) )
- ROM_FILL( 0x1000, 0x1000, 0 )
+ ROM_FILL( 0x1000, 0x1000, nullptr )
ROM_LOAD( "10", 0x2000, 0x1000, CRC(3b0783ce) SHA1(880f258351a8b0d76abe433cc77d95b991ae1adc) )
- ROM_FILL( 0x3000, 0x1000, 0 )
+ ROM_FILL( 0x3000, 0x1000, nullptr )
ROM_END
ROM_START( tripool )
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "tri73a.bin", 0x0000, 0x1000, CRC(96893aa7) SHA1(ea1dc5824d89c1bb131850625a65d018a9127179) )
- ROM_FILL( 0x1000, 0x1000, 0 )
+ ROM_FILL( 0x1000, 0x1000, nullptr )
ROM_LOAD( "tri62a.bin", 0x2000, 0x1000, CRC(3299dc65) SHA1(8f93247e2f49be6b601006be62f4ad539ec899fe) )
ROM_LOAD( "tri52b.bin", 0x3000, 0x1000, CRC(27ef765e) SHA1(2a18a9b74fd4d9f3a724270cd3a98adbfdf22a5e) )
ROM_LOAD( "tri33c.bin", 0xc000, 0x1000, CRC(d7ef061d) SHA1(3ea3a136ecb3b5753a1dd929212b93ad8c7e9157) )
@@ -1226,16 +1226,16 @@ ROM_START( tripool )
ROM_REGION( 0x4000, "gfx1", 0 )
ROM_LOAD( "tri105a.bin", 0x0000, 0x1000, CRC(366a753c) SHA1(30fa8d80e42287e3e8677aefd15beab384265728) )
- ROM_FILL( 0x1000, 0x1000, 0 )
+ ROM_FILL( 0x1000, 0x1000, nullptr )
ROM_LOAD( "tri93a.bin", 0x2000, 0x1000, CRC(35213782) SHA1(05d5a67ffa3d26377c54777917d3ba51677ebd28) )
- ROM_FILL( 0x3000, 0x1000, 0 )
+ ROM_FILL( 0x3000, 0x1000, nullptr )
ROM_END
ROM_START( tripoola )
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "tri73a.bin", 0x0000, 0x1000, CRC(96893aa7) SHA1(ea1dc5824d89c1bb131850625a65d018a9127179) )
- ROM_FILL( 0x1000, 0x1000, 0 )
+ ROM_FILL( 0x1000, 0x1000, nullptr )
ROM_LOAD( "tri62a.bin", 0x2000, 0x1000, CRC(3299dc65) SHA1(8f93247e2f49be6b601006be62f4ad539ec899fe) )
ROM_LOAD( "tri52b.bin", 0x3000, 0x1000, CRC(27ef765e) SHA1(2a18a9b74fd4d9f3a724270cd3a98adbfdf22a5e) )
ROM_LOAD( "tri33c.bin", 0xc000, 0x1000, CRC(d7ef061d) SHA1(3ea3a136ecb3b5753a1dd929212b93ad8c7e9157) )
@@ -1248,9 +1248,9 @@ ROM_START( tripoola )
ROM_REGION( 0x4000, "gfx1", 0 )
ROM_LOAD( "tri105a.bin", 0x0000, 0x1000, CRC(366a753c) SHA1(30fa8d80e42287e3e8677aefd15beab384265728) )
- ROM_FILL( 0x1000, 0x1000, 0 )
+ ROM_FILL( 0x1000, 0x1000, nullptr )
ROM_LOAD( "tri93a.bin", 0x2000, 0x1000, CRC(35213782) SHA1(05d5a67ffa3d26377c54777917d3ba51677ebd28) )
- ROM_FILL( 0x3000, 0x1000, 0 )
+ ROM_FILL( 0x3000, 0x1000, nullptr )
ROM_END
diff --git a/src/mame/drivers/jackie.cpp b/src/mame/drivers/jackie.cpp
index 2f59c1c42b3..8097667267f 100644
--- a/src/mame/drivers/jackie.cpp
+++ b/src/mame/drivers/jackie.cpp
@@ -497,7 +497,7 @@ static INPUT_PORTS_START( jackie )
PORT_START("SERVICE")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_9) PORT_NAME("Attendent")
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,jackie_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,jackie_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW ) // test (press during boot)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
diff --git a/src/mame/drivers/jaguar.cpp b/src/mame/drivers/jaguar.cpp
index aed17fa95db..db34f98c898 100644
--- a/src/mame/drivers/jaguar.cpp
+++ b/src/mame/drivers/jaguar.cpp
@@ -428,7 +428,7 @@ void jaguar_state::machine_reset()
/* configure banks for gfx/sound ROMs */
UINT8 *romboard = memregion("romboard")->base();
- if (romboard != NULL)
+ if (romboard != nullptr)
{
/* graphics banks */
if (m_is_r3000)
@@ -1815,7 +1815,7 @@ static MACHINE_CONFIG_START( cojagr3k, jaguar_state )
MCFG_NVRAM_ADD_1FILL("nvram")
- MCFG_VT83C461_ADD("ide", cojag_devices, "hdd", NULL, true)
+ MCFG_VT83C461_ADD("ide", cojag_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(jaguar_state, external_int))
/* video hardware */
@@ -1836,7 +1836,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( cojagr3k_rom, cojagr3k )
MCFG_DEVICE_MODIFY("ide:0")
- MCFG_SLOT_DEFAULT_OPTION(NULL)
+ MCFG_SLOT_DEFAULT_OPTION(nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( cojag68k, cojagr3k )
@@ -2052,7 +2052,7 @@ DEVICE_IMAGE_LOAD_MEMBER( jaguar_state, jaguar_cart )
{
UINT32 size, load_offset = 0;
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
size = image.length();
diff --git a/src/mame/drivers/jalmah.cpp b/src/mame/drivers/jalmah.cpp
index 80fee509cf9..37afe098d4c 100644
--- a/src/mame/drivers/jalmah.cpp
+++ b/src/mame/drivers/jalmah.cpp
@@ -1480,13 +1480,13 @@ ROM_START ( urashima )
ROM_REGION( 0x200000, "gfx4", 0 ) /* BG3 */
/*0*/
- ROM_COPY( "gfx2" , 0x000000, 0x000000, 0x40000 )
+ ROM_COPY( "gfx2" , nullptr, 0x000000, 0x40000 )
ROM_COPY( "gfx2", 0x040000, 0x040000, 0x40000 )
/*1*/
- ROM_COPY( "gfx2", 0x000000, 0x080000, 0x40000 )
- ROM_COPY( "gfx3", 0x000000, 0x0c0000, 0x40000 )
+ ROM_COPY( "gfx2", nullptr, 0x080000, 0x40000 )
+ ROM_COPY( "gfx3", nullptr, 0x0c0000, 0x40000 )
/*2*/
- ROM_COPY( "gfx2", 0x000000, 0x100000, 0x40000 )
+ ROM_COPY( "gfx2", nullptr, 0x100000, 0x40000 )
ROM_COPY( "gfx3", 0x040000, 0x140000, 0x40000 )
ROM_REGION( 0x0240, "user1", 0 )
@@ -1710,13 +1710,13 @@ ROM_START( suchipi )
ROM_LOAD( "4.bin", 0x80000, 0x80000, CRC(3fe932a1) SHA1(9e768b901738ee9eba207a67c4fd19efb0035a68) )
ROM_REGION( 0x140000, "oki", ROMREGION_ERASEFF ) /* Samples */
- ROM_COPY( "oki_data" , 0x00000, 0x000000+0x00000, 0x40000 )
+ ROM_COPY( "oki_data" , nullptr, 0x000000+0x00000, 0x40000 )
/* PAL address shuffling for the BGM data (TODO: check this with a side-by-side test)*/
ROM_COPY( "oki_data" , 0x20000, 0x000000+0x40000, 0x20000 ) // 0
ROM_COPY( "oki_data" , 0x40000, 0x020000+0x40000, 0x20000 ) // 1
ROM_COPY( "oki_data" , 0x60000, 0x040000+0x40000, 0x20000 ) // 2
- ROM_COPY( "oki_data" , 0x00000, 0x060000+0x40000, 0x20000 ) // 3
+ ROM_COPY( "oki_data" , nullptr, 0x060000+0x40000, 0x20000 ) // 3
ROM_COPY( "oki_data" , 0x80000, 0x080000+0x40000, 0x40000 )
ROM_COPY( "oki_data" , 0xc0000, 0x0c0000+0x40000, 0x40000 )
diff --git a/src/mame/drivers/jangou.cpp b/src/mame/drivers/jangou.cpp
index e15d5c232d5..9902efbee75 100644
--- a/src/mame/drivers/jangou.cpp
+++ b/src/mame/drivers/jangou.cpp
@@ -127,7 +127,7 @@ PALETTE_INIT_MEMBER(jangou_state, jangou)
compute_resistor_weights(0, 255, -1.0,
3, resistances_rg, weights_rg, 0, 0,
2, resistances_b, weights_b, 0, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
for (i = 0;i < palette.entries(); i++)
{
diff --git a/src/mame/drivers/jclub2.cpp b/src/mame/drivers/jclub2.cpp
index daffa87c69e..54a827f4b18 100644
--- a/src/mame/drivers/jclub2.cpp
+++ b/src/mame/drivers/jclub2.cpp
@@ -1136,7 +1136,7 @@ ROM_START( darkhors )
ROM_LOAD( "gfx5", 0x200000, 0x80000, CRC(281402cd) SHA1(77f8e5e02c6e7161299c06e65a078c1cdda1ba66) )
ROM_LOAD( "gfx6", 0x280000, 0x80000, CRC(8ea0149b) SHA1(7792fd7e07a7baa4e15f50b6528c78fb15b40b40) )
ROM_LOAD( "gfx7", 0x300000, 0x80000, BAD_DUMP CRC(504bf849) SHA1(13a184ec9e176371808938015111f8918cb4df7d) ) // FIXED BITS (11111111)
- ROM_FILL( 0x300000, 0x80000, 0 ) // a zero-fill seems fine
+ ROM_FILL( 0x300000, 0x80000, nullptr ) // a zero-fill seems fine
ROM_LOAD( "gfx8", 0x380000, 0x80000, CRC(590bec2a) SHA1(7fdbb21f1a3eccde65e91eb2443a0e01487c59c3) ) // 000xxxxxxxxxxxxxxxx = 0x00
ROM_REGION( 0x80000, "oki", 0 ) // Samples
@@ -1314,7 +1314,7 @@ DRIVER_INIT_MEMBER(darkhors_state,darkhors)
// is there a way (key sequence) to reprogram it??
// I bet the original sets need similar get further in their boot sequence
UINT8 *eeprom = (UINT8 *) memregion("eeprom")->base();
- if (eeprom != NULL)
+ if (eeprom != nullptr)
{
size_t len = memregion("eeprom")->bytes();
dynamic_buffer temp(len);
diff --git a/src/mame/drivers/jollyjgr.cpp b/src/mame/drivers/jollyjgr.cpp
index c02763727e2..a9dd7d59955 100644
--- a/src/mame/drivers/jollyjgr.cpp
+++ b/src/mame/drivers/jollyjgr.cpp
@@ -733,7 +733,7 @@ ROM_START( fspiderb )
ROM_LOAD( "11.7h", 0x3000, 0x1000, CRC(7ab56309) SHA1(b43f542a7359c3a4ccf6f116e3a84bd13af6876f) )
ROM_REGION( 0x1000, "gfx1", 0 )
- ROM_COPY( "gfx_bank", 0x0000, 0x0000, 0x800)
+ ROM_COPY( "gfx_bank", nullptr, 0x0000, 0x800)
ROM_COPY( "gfx_bank", 0x1000, 0x0800, 0x800)
ROM_REGION( 0x1000, "gfx2", 0 )
diff --git a/src/mame/drivers/juicebox.cpp b/src/mame/drivers/juicebox.cpp
index a754668af40..2bb08b77ff5 100644
--- a/src/mame/drivers/juicebox.cpp
+++ b/src/mame/drivers/juicebox.cpp
@@ -339,11 +339,11 @@ MACHINE_CONFIG_END
static INPUT_PORTS_START( juicebox )
PORT_START( "PORTG" )
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)0) PORT_NAME("RETURN") PORT_PLAYER(1)
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)0) PORT_NAME("PLAY") PORT_PLAYER(1)
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)0) PORT_NAME("FORWARD") PORT_PLAYER(1)
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)0) PORT_NAME("REVERSE") PORT_PLAYER(1)
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)0) PORT_NAME("STAR") PORT_PLAYER(1)
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)nullptr) PORT_NAME("RETURN") PORT_PLAYER(1)
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)nullptr) PORT_NAME("PLAY") PORT_PLAYER(1)
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)nullptr) PORT_NAME("FORWARD") PORT_PLAYER(1)
+ PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)nullptr) PORT_NAME("REVERSE") PORT_PLAYER(1)
+ PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CHANGED_MEMBER(DEVICE_SELF, juicebox_state, port_changed, (void *)nullptr) PORT_NAME("STAR") PORT_PLAYER(1)
INPUT_PORTS_END
/***************************************************************************
diff --git a/src/mame/drivers/jupiter.cpp b/src/mame/drivers/jupiter.cpp
index 7d0fc11250a..e7e545ebd74 100644
--- a/src/mame/drivers/jupiter.cpp
+++ b/src/mame/drivers/jupiter.cpp
@@ -227,7 +227,7 @@ static MACHINE_CONFIG_START( jupiter, jupiter2_state )
// devices
MCFG_DEVICE_ADD(INS1771N1_TAG, FD1771, 1000000)
MCFG_FLOPPY_DRIVE_ADD(INS1771N1_TAG":0", jupiter_floppies, "525ssdd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(INS1771N1_TAG":1", jupiter_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(INS1771N1_TAG":1", jupiter_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0)
@@ -261,7 +261,7 @@ static MACHINE_CONFIG_START( jupiter3, jupiter3_state )
// devices
MCFG_DEVICE_ADD(INS1771N1_TAG, FD1771, 1000000)
MCFG_FLOPPY_DRIVE_ADD(INS1771N1_TAG":0", jupiter_floppies, "525ssdd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(INS1771N1_TAG":1", jupiter_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(INS1771N1_TAG":1", jupiter_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0)
MCFG_GENERIC_KEYBOARD_CB(WRITE8(jupiter3_state, kbd_put))
diff --git a/src/mame/drivers/kaneko16.cpp b/src/mame/drivers/kaneko16.cpp
index 9f28195f9ce..e9832179c94 100644
--- a/src/mame/drivers/kaneko16.cpp
+++ b/src/mame/drivers/kaneko16.cpp
@@ -2319,7 +2319,7 @@ void kaneko16_state::kaneko16_unscramble_tiles(const char *region)
int size = memregion(region)->bytes();
int i;
- if (RAM == NULL) return;
+ if (RAM == nullptr) return;
for (i = 0; i < size; i ++)
{
@@ -2456,22 +2456,22 @@ ROM_START( explbrkr )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x200000, "oki", 0 ) /* Samples */
- ROM_COPY( "user1", 0x000000, 0x000000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x000000, 0x020000)
ROM_COPY( "user1", 0x020000, 0x020000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x040000, 0x020000)
ROM_COPY( "user1", 0x040000, 0x060000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x080000, 0x020000)
ROM_COPY( "user1", 0x060000, 0x0a0000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user1", 0x080000, 0x0e0000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x100000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x100000, 0x020000)
ROM_COPY( "user1", 0x0a0000, 0x120000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x140000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x140000, 0x020000)
ROM_COPY( "user1", 0x0c0000, 0x160000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x180000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x180000, 0x020000)
ROM_COPY( "user1", 0x0e0000, 0x1a0000, 0x020000)
- ROM_FILL( 0x1c0000, 0x020000, 0x00 )
- ROM_FILL( 0x1e0000, 0x020000, 0x00 )
+ ROM_FILL( 0x1c0000, 0x020000, nullptr )
+ ROM_FILL( 0x1e0000, 0x020000, nullptr )
ROM_END
ROM_START( bakubrkr )
@@ -2498,22 +2498,22 @@ ROM_START( bakubrkr )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x200000, "oki", 0 ) /* Samples */
- ROM_COPY( "user1", 0x000000, 0x000000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x000000, 0x020000)
ROM_COPY( "user1", 0x020000, 0x020000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x040000, 0x020000)
ROM_COPY( "user1", 0x040000, 0x060000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x080000, 0x020000)
ROM_COPY( "user1", 0x060000, 0x0a0000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user1", 0x080000, 0x0e0000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x100000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x100000, 0x020000)
ROM_COPY( "user1", 0x0a0000, 0x120000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x140000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x140000, 0x020000)
ROM_COPY( "user1", 0x0c0000, 0x160000, 0x020000)
- ROM_COPY( "user1", 0x000000, 0x180000, 0x020000)
+ ROM_COPY( "user1", nullptr, 0x180000, 0x020000)
ROM_COPY( "user1", 0x0e0000, 0x1a0000, 0x020000)
- ROM_FILL( 0x1c0000, 0x020000, 0x00 )
- ROM_FILL( 0x1e0000, 0x020000, 0x00 )
+ ROM_FILL( 0x1c0000, 0x020000, nullptr )
+ ROM_FILL( 0x1e0000, 0x020000, nullptr )
ROM_END
@@ -3057,7 +3057,7 @@ ROM_START( gtmr )
ROM_LOAD( "mm-300-406-a0.bin", 0x000000, 0x200000, CRC(b15f6b7f) SHA1(5e84919d788add53fc87f4d85f437df413b1dbc5) )
ROM_REGION( 0x200000, "gfx3", 0 ) /* Tiles (scrambled) */
- ROM_COPY("gfx2",0,0,0x200000) // it isn't on the board twice.
+ ROM_COPY("gfx2",nullptr,0,0x200000) // it isn't on the board twice.
ROM_REGION( 0x400000, "oki1", 0 ) /* Samples, plus room for expansion */
ROM_LOAD( "mm-100-401-e0.bin", 0x000000, 0x100000, CRC(b9cbfbee) SHA1(051d48a68477ef9c29bd5cc0bb7955d513a0ab94) ) // 16 x $10000
@@ -3086,7 +3086,7 @@ ROM_START( gtmra )
ROM_LOAD( "mm-300-406-a0.bin", 0x000000, 0x200000, CRC(b15f6b7f) SHA1(5e84919d788add53fc87f4d85f437df413b1dbc5) )
ROM_REGION( 0x200000, "gfx3", 0 ) /* Tiles (scrambled) */
- ROM_COPY("gfx2",0,0,0x200000) // it isn't on the board twice.
+ ROM_COPY("gfx2",nullptr,0,0x200000) // it isn't on the board twice.
ROM_REGION( 0x400000, "oki1", 0 ) /* Samples, plus room for expansion */
ROM_LOAD( "mm-100-401-e0.bin", 0x000000, 0x100000, CRC(b9cbfbee) SHA1(051d48a68477ef9c29bd5cc0bb7955d513a0ab94) ) // 16 x $10000
@@ -3126,7 +3126,7 @@ ROM_START( gtmre )
ROM_LOAD( "gmmu52.bin", 0x000000, 0x200000, CRC(b15f6b7f) SHA1(5e84919d788add53fc87f4d85f437df413b1dbc5) )
ROM_REGION( 0x200000, "gfx3", 0 ) /* Tiles (scrambled) */
- ROM_COPY("gfx2",0,0,0x200000) // it isn't on the board twice.
+ ROM_COPY("gfx2",nullptr,0,0x200000) // it isn't on the board twice.
ROM_REGION( 0x400000, "oki1", 0 ) /* Samples, plus room for expansion */
ROM_LOAD( "gmmu23.bin", 0x000000, 0x100000, CRC(b9cbfbee) SHA1(051d48a68477ef9c29bd5cc0bb7955d513a0ab94) ) // 16 x $10000
@@ -3163,7 +3163,7 @@ ROM_START( gtmrusa )
ROM_LOAD( "mm-300-406-a0.bin", 0x000000, 0x200000, CRC(b15f6b7f) SHA1(5e84919d788add53fc87f4d85f437df413b1dbc5) )
ROM_REGION( 0x200000, "gfx3", 0 ) /* Tiles (scrambled) */
- ROM_COPY("gfx2",0,0,0x200000) // it isn't on the board twice.
+ ROM_COPY("gfx2",nullptr,0,0x200000) // it isn't on the board twice.
ROM_REGION( 0x400000, "oki1", 0 ) /* Samples, plus room for expansion */
ROM_LOAD( "mm-100-401-a0.bin", 0x000000, 0x100000, CRC(b9cbfbee) SHA1(051d48a68477ef9c29bd5cc0bb7955d513a0ab94) ) // 16 x $10000
@@ -3352,7 +3352,7 @@ ROM_START( gtmr2 )
ROM_LOAD16_BYTE( "m2b1x0.u94", 0x400001, 0x020000, CRC(03c48bdb) SHA1(f5ba45d026530d46f760cf06d02a1ffcca89aa3c) )
ROM_REGION( 0x440000, "gfx3", 0 ) /* Tiles (scrambled) */
- ROM_COPY("gfx2",0,0,0x440000) // it isn't on the board twice.
+ ROM_COPY("gfx2",nullptr,0,0x440000) // it isn't on the board twice.
ROM_REGION( 0x400000, "oki1", 0 ) /* Samples, plus room for expansion */
ROM_LOAD( "m2-100-0.u48", 0x000000, 0x100000, CRC(5250fa45) SHA1(b1ad4660906997faea0aa89866de01a0e9f2b61d) )
@@ -3383,7 +3383,7 @@ ROM_START( gtmr2a )
ROM_LOAD16_BYTE( "m2b1x0.u94", 0x400001, 0x020000, CRC(03c48bdb) SHA1(f5ba45d026530d46f760cf06d02a1ffcca89aa3c) )
ROM_REGION( 0x440000, "gfx3", 0 ) /* Tiles (scrambled) */
- ROM_COPY("gfx2",0,0,0x440000) // it isn't on the board twice.
+ ROM_COPY("gfx2",nullptr,0,0x440000) // it isn't on the board twice.
ROM_REGION( 0x400000, "oki1", 0 ) /* Samples, plus room for expansion */
ROM_LOAD( "m2-100-0.u48", 0x000000, 0x100000, CRC(5250fa45) SHA1(b1ad4660906997faea0aa89866de01a0e9f2b61d) )
@@ -3414,7 +3414,7 @@ ROM_START( gtmr2u )
ROM_LOAD16_BYTE( "m2b1x0.u94", 0x400001, 0x020000, CRC(03c48bdb) SHA1(f5ba45d026530d46f760cf06d02a1ffcca89aa3c) )
ROM_REGION( 0x440000, "gfx3", 0 ) /* Tiles (scrambled) */
- ROM_COPY("gfx2",0,0,0x440000) // it isn't on the board twice.
+ ROM_COPY("gfx2",nullptr,0,0x440000) // it isn't on the board twice.
ROM_REGION( 0x400000, "oki1", 0 ) /* Samples, plus room for expansion */
ROM_LOAD( "m2-100-0.u48", 0x000000, 0x100000, CRC(5250fa45) SHA1(b1ad4660906997faea0aa89866de01a0e9f2b61d) )
diff --git a/src/mame/drivers/kaypro.cpp b/src/mame/drivers/kaypro.cpp
index 4886f21359f..56bd657f8ff 100644
--- a/src/mame/drivers/kaypro.cpp
+++ b/src/mame/drivers/kaypro.cpp
@@ -150,14 +150,14 @@ static const z80_daisy_config kayproii_daisy_chain[] =
{ "z80sio" }, /* sio */
{ "z80pio_s" }, /* System pio */
{ "z80pio_g" }, /* General purpose pio */
- { NULL }
+ { nullptr }
};
static const z80_daisy_config kaypro2x_daisy_chain[] =
{
{ "z80sio" }, /* sio for RS232C and keyboard */
{ "z80sio_2x" }, /* sio for serial printer and inbuilt modem */
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/kc.cpp b/src/mame/drivers/kc.cpp
index 3fab3b54d88..09afbd06209 100644
--- a/src/mame/drivers/kc.cpp
+++ b/src/mame/drivers/kc.cpp
@@ -65,7 +65,7 @@ static const z80_daisy_config kc85_daisy_chain[] =
{
{ "z80ctc" },
{ "z80pio" },
- { NULL }
+ { nullptr }
};
extern SLOT_INTERFACE_START(kc85_cart)
@@ -146,7 +146,7 @@ static MACHINE_CONFIG_START( kc85_3, kc_state )
MCFG_KCCART_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_KCCART_SLOT_OUT_HALT_CB(INPUTLINE("maincpu", INPUT_LINE_HALT))
MCFG_DEVICE_ADD("mc", KCCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(kc85_cart, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(kc85_cart, nullptr, false)
MCFG_KCCART_SLOT_NEXT_SLOT("exp")
MCFG_KCCART_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_KCCART_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
@@ -154,8 +154,8 @@ static MACHINE_CONFIG_START( kc85_3, kc_state )
/* expansion interface */
MCFG_DEVICE_ADD("exp", KCEXP_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(kc85_exp, NULL, false)
- MCFG_KCCART_SLOT_NEXT_SLOT(NULL)
+ MCFG_DEVICE_SLOT_INTERFACE(kc85_exp, nullptr, false)
+ MCFG_KCCART_SLOT_NEXT_SLOT(nullptr)
MCFG_KCCART_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_KCCART_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_KCCART_SLOT_OUT_HALT_CB(INPUTLINE("maincpu", INPUT_LINE_HALT))
@@ -230,7 +230,7 @@ static MACHINE_CONFIG_START( kc85_4, kc85_4_state )
MCFG_KCCART_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_KCCART_SLOT_OUT_HALT_CB(INPUTLINE("maincpu", INPUT_LINE_HALT))
MCFG_DEVICE_ADD("mc", KCCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(kc85_cart, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(kc85_cart, nullptr, false)
MCFG_KCCART_SLOT_NEXT_SLOT("exp")
MCFG_KCCART_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_KCCART_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
@@ -238,8 +238,8 @@ static MACHINE_CONFIG_START( kc85_4, kc85_4_state )
/* expansion interface */
MCFG_DEVICE_ADD("exp", KCEXP_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(kc85_exp, NULL, false)
- MCFG_KCCART_SLOT_NEXT_SLOT(NULL)
+ MCFG_DEVICE_SLOT_INTERFACE(kc85_exp, nullptr, false)
+ MCFG_KCCART_SLOT_NEXT_SLOT(nullptr)
MCFG_KCCART_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_KCCART_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_KCCART_SLOT_OUT_HALT_CB(INPUTLINE("maincpu", INPUT_LINE_HALT))
diff --git a/src/mame/drivers/kickgoal.cpp b/src/mame/drivers/kickgoal.cpp
index fc22ff78c23..ed09ccdbc3c 100644
--- a/src/mame/drivers/kickgoal.cpp
+++ b/src/mame/drivers/kickgoal.cpp
@@ -720,9 +720,9 @@ ROM_START( kickgoal )
ROM_LOAD( "ic13", 0x00000, 0x40000, BAD_DUMP CRC(c6cb56e9) SHA1(835773b3f0647d3c553180bcf10e57ad44d68353) ) // BAD ADDRESS LINES (mask=010000)
ROM_CONTINUE( 0x60000, 0x20000 )
ROM_CONTINUE( 0xa0000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000)
- ROM_COPY( "oki", 0x00000, 0x80000, 0x20000)
- ROM_COPY( "oki", 0x00000, 0xc0000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x80000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0xc0000, 0x20000)
ROM_END
ROM_START( actionhw )
@@ -750,9 +750,9 @@ ROM_START( actionhw )
ROM_LOAD( "3.ic13", 0x00000, 0x40000, CRC(b8f6705d) SHA1(55116e14aba6dac7334e26f704b3e6b0b9f856c2) )
ROM_CONTINUE( 0x60000, 0x20000 )
ROM_CONTINUE( 0xa0000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000)
- ROM_COPY( "oki", 0x00000, 0x80000, 0x20000)
- ROM_COPY( "oki", 0x00000, 0xc0000, 0x20000) /* Last bank used in Test Mode */
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x80000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0xc0000, 0x20000) /* Last bank used in Test Mode */
ROM_END
/* GAME drivers **************************************************************/
diff --git a/src/mame/drivers/kinst.cpp b/src/mame/drivers/kinst.cpp
index 0a404706fbe..ecb0be8f83c 100644
--- a/src/mame/drivers/kinst.cpp
+++ b/src/mame/drivers/kinst.cpp
@@ -679,7 +679,7 @@ static MACHINE_CONFIG_START( kinst, kinst_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", kinst_state, irq0_start)
- MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", NULL, true)
+ MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(kinst_state, ide_interrupt))
/* video hardware */
diff --git a/src/mame/drivers/koikoi.cpp b/src/mame/drivers/koikoi.cpp
index 4da01a94adf..0c2aae0c7f2 100644
--- a/src/mame/drivers/koikoi.cpp
+++ b/src/mame/drivers/koikoi.cpp
@@ -409,10 +409,10 @@ ROM_START( koikoi )
ROM_FILL( 0x08, 1, 0x8b )
ROM_FILL( 0x09, 1, 0x3f )
ROM_FILL( 0x0a, 1, 0x07 )
- ROM_FILL( 0x0b, 1, 0x00 ) // unused
+ ROM_FILL( 0x0b, 1, nullptr ) // unused
ROM_FILL( 0x0c, 1, 0x2f )
ROM_FILL( 0x0d, 1, 0xff )
- ROM_FILL( 0x0e, 1, 0x00 )
+ ROM_FILL( 0x0e, 1, nullptr )
ROM_FILL( 0x0f, 1, 0x0b )
ROM_LOAD( "prom.ic23", 0x020, 0x100, CRC(f1d169a6) SHA1(5ee4b1dfe61e8b97a90cc113ba234298189f1a73) )
diff --git a/src/mame/drivers/konamigx.cpp b/src/mame/drivers/konamigx.cpp
index 756f35e2bea..1f981b40e00 100644
--- a/src/mame/drivers/konamigx.cpp
+++ b/src/mame/drivers/konamigx.cpp
@@ -3747,7 +3747,7 @@ DRIVER_INIT_MEMBER(konamigx_state,konamigx)
m_last_prot_op = -1;
m_last_prot_clk = 0;
- m_esc_cb = NULL;
+ m_esc_cb = nullptr;
m_resume_trigger = 0;
m_dmadelay_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(konamigx_state::dmaend_callback),this));
diff --git a/src/mame/drivers/ksys573.cpp b/src/mame/drivers/ksys573.cpp
index 6a9a22bdf3d..c95b9e19a42 100644
--- a/src/mame/drivers/ksys573.cpp
+++ b/src/mame/drivers/ksys573.cpp
@@ -696,7 +696,7 @@ void ksys573_state::update_disc()
int cd = m_cd->read();
cdrom_file *new_cdrom;
- if( m_available_cdroms[ 1 ] != NULL )
+ if( m_available_cdroms[ 1 ] != nullptr )
{
new_cdrom = m_available_cdroms[ cd ];
}
@@ -706,9 +706,9 @@ void ksys573_state::update_disc()
}
atapi_hle_device *image = machine().device<atapi_hle_device>( "ata:0:cr589" );
- if( image != NULL )
+ if( image != nullptr )
{
- void *current_cdrom = NULL;
+ void *current_cdrom = nullptr;
image->GetDevice( &current_cdrom );
if( current_cdrom != new_cdrom )
@@ -941,7 +941,7 @@ READ16_MEMBER( ksys573_state::gx700pwbf_io_r )
void ksys573_state::gx700pwbf_output( int offset, UINT8 data )
{
- if( m_gx700pwfbf_output_callback != NULL )
+ if( m_gx700pwfbf_output_callback != nullptr )
{
int i;
static const int shift[] = { 7, 6, 1, 0, 5, 4, 3, 2 };
diff --git a/src/mame/drivers/kyocera.cpp b/src/mame/drivers/kyocera.cpp
index 23cea619578..40c17efd990 100644
--- a/src/mame/drivers/kyocera.cpp
+++ b/src/mame/drivers/kyocera.cpp
@@ -1374,7 +1374,7 @@ static MACHINE_CONFIG_START( kc85, kc85_state )
MCFG_IM6402_ADD(IM6402_TAG, 0, 0)
MCFG_IM6402_TRO_CALLBACK(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(IM6402_TAG, im6402_device, write_rri))
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_devices, "printer")
@@ -1424,7 +1424,7 @@ static MACHINE_CONFIG_START( pc8201, pc8201_state )
MCFG_IM6402_ADD(IM6402_TAG, 0, 0)
MCFG_IM6402_TRO_CALLBACK(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(IM6402_TAG, im6402_device, write_rri))
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_devices, "printer")
@@ -1484,7 +1484,7 @@ static MACHINE_CONFIG_START( trsm100, trsm100_state )
MCFG_IM6402_ADD(IM6402_TAG, 0, 0)
MCFG_IM6402_TRO_CALLBACK(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(IM6402_TAG, im6402_device, write_rri))
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_devices, "printer")
@@ -1546,7 +1546,7 @@ static MACHINE_CONFIG_START( tandy200, tandy200_state )
MCFG_I8251_DTR_HANDLER(DEVWRITELINE(RS232_TAG, rs232_port_device, write_dtr))
MCFG_I8251_RTS_HANDLER(DEVWRITELINE(RS232_TAG, rs232_port_device, write_rts))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(I8251_TAG, i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(I8251_TAG, i8251_device, write_dsr))
diff --git a/src/mame/drivers/legionna.cpp b/src/mame/drivers/legionna.cpp
index 240ad9b5400..8633a386edc 100644
--- a/src/mame/drivers/legionna.cpp
+++ b/src/mame/drivers/legionna.cpp
@@ -1492,7 +1492,7 @@ ROM_START( legionna )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "6.u1110", 0x000000, 0x08000, CRC(fe7b8d06) SHA1(1e5b52ea4b4042940e2ee2db75c7c0f24973422a) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "user1", 0 ) /* load the tiles here so we can split them up into the required regions by hand */
ROM_LOAD16_BYTE( "7.u077", 0x000000, 0x10000, CRC(88e26809) SHA1(40ee55d3b5329b6f657e0621d93c4caf6a035fdf) )
@@ -1502,7 +1502,7 @@ ROM_START( legionna )
ROM_COPY( "user1", 0x010000, 0x000000, 0x010000 )
ROM_REGION( 0x010000, "gfx5", 0 ) /* BK3 */
- ROM_COPY( "user1", 0x000000, 0x000000, 0x010000 ) /* decrambled in INIT */
+ ROM_COPY( "user1", nullptr, 0x000000, 0x010000 ) /* decrambled in INIT */
ROM_REGION( 0x200000, "sprite", 0 )
ROM_LOAD( "legionnire_obj1.u0815", 0x000000, 0x100000, CRC(d35602f5) SHA1(79379abf1c8131df47f81f42b2dc6876926a4e9d) ) /* sprites */
@@ -1512,7 +1512,7 @@ ROM_START( legionna )
ROM_LOAD( "legionnire_back.u075", 0x000000, 0x100000, CRC(58280989) SHA1(e3eef1f52829a91b8f87cfe27776a1f12679b3ca) ) /* 3 sets of tiles ('MBK','LBK','BK3') */
ROM_REGION( 0x80000, "gfx3", 0 ) /* MBK */
- ROM_COPY( "user2", 0x000000, 0x000000, 0x80000 )
+ ROM_COPY( "user2", nullptr, 0x000000, 0x80000 )
ROM_REGION( 0x100000, "gfx4", ROMREGION_ERASEFF )
/* Not Used */
@@ -1540,7 +1540,7 @@ ROM_START( legionnau )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "6.u1110", 0x000000, 0x08000, CRC(fe7b8d06) SHA1(1e5b52ea4b4042940e2ee2db75c7c0f24973422a) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "user1", 0 ) /* load the tiles here so we can split them up into the required regions by hand */
ROM_LOAD16_BYTE( "7.u077", 0x000000, 0x10000, CRC(88e26809) SHA1(40ee55d3b5329b6f657e0621d93c4caf6a035fdf) )
@@ -1550,7 +1550,7 @@ ROM_START( legionnau )
ROM_COPY( "user1", 0x010000, 0x000000, 0x010000 )
ROM_REGION( 0x010000, "gfx5", 0 ) /* BK3 */
- ROM_COPY( "user1", 0x000000, 0x000000, 0x010000 ) /* decrambled in INIT */
+ ROM_COPY( "user1", nullptr, 0x000000, 0x010000 ) /* decrambled in INIT */
ROM_REGION( 0x200000, "sprite", 0 )
ROM_LOAD( "legionnire_obj1.u0815", 0x000000, 0x100000, CRC(d35602f5) SHA1(79379abf1c8131df47f81f42b2dc6876926a4e9d) ) /* sprites */
@@ -1560,7 +1560,7 @@ ROM_START( legionnau )
ROM_LOAD( "legionnire_back.u075", 0x000000, 0x100000, CRC(58280989) SHA1(e3eef1f52829a91b8f87cfe27776a1f12679b3ca) ) /* 3 sets of tiles ('MBK','LBK','BK3') */
ROM_REGION( 0x80000, "gfx3", 0 ) /* MBK */
- ROM_COPY( "user2", 0x000000, 0x000000, 0x80000 )
+ ROM_COPY( "user2", nullptr, 0x000000, 0x80000 )
ROM_REGION( 0x100000, "gfx4", ROMREGION_ERASEFF )
/* Not Used */
@@ -1588,7 +1588,7 @@ ROM_START( heatbrl )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "barrel_7.u1110", 0x00000, 0x08000, CRC(0784dbd8) SHA1(bdf7f8a3a3eb346eb2aeaf4f9bfc49af059d04c9) )
ROM_CONTINUE( 0x10000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x18000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x18000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 ) /* chars */
ROM_LOAD16_BYTE( "barrel_6.u077", 0x000000, 0x10000, CRC(bea3c581) SHA1(7f7f0a74bf106acaf57c182d47f0c707da2011bd) )
@@ -1630,7 +1630,7 @@ ROM_START( heatbrl2 )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "barrel_7.u1110", 0x00000, 0x08000, CRC(0784dbd8) SHA1(bdf7f8a3a3eb346eb2aeaf4f9bfc49af059d04c9) )
ROM_CONTINUE( 0x10000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x18000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x18000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 ) /* chars */
ROM_LOAD16_BYTE( "barrel_6.u077", 0x000000, 0x10000, CRC(bea3c581) SHA1(7f7f0a74bf106acaf57c182d47f0c707da2011bd) )
@@ -1672,7 +1672,7 @@ ROM_START( heatbrlo )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "barrel_7.u1110", 0x00000, 0x08000, CRC(0784dbd8) SHA1(bdf7f8a3a3eb346eb2aeaf4f9bfc49af059d04c9) )
ROM_CONTINUE( 0x10000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x18000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x18000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 ) /* chars */
ROM_LOAD16_BYTE( "barrel_6.u077", 0x000000, 0x10000, CRC(bea3c581) SHA1(7f7f0a74bf106acaf57c182d47f0c707da2011bd) )
@@ -1718,7 +1718,7 @@ ROM_START( heatbrlu )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "barrel_7.u1110", 0x00000, 0x08000, CRC(0784dbd8) SHA1(bdf7f8a3a3eb346eb2aeaf4f9bfc49af059d04c9) )
ROM_CONTINUE( 0x10000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x18000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x18000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 ) /* chars */
ROM_LOAD16_BYTE( "barrel_6.u077", 0x000000, 0x10000, CRC(bea3c581) SHA1(7f7f0a74bf106acaf57c182d47f0c707da2011bd) )
@@ -1763,7 +1763,7 @@ ROM_START( heatbrle )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "barrel_7.u1110", 0x00000, 0x08000, CRC(0784dbd8) SHA1(bdf7f8a3a3eb346eb2aeaf4f9bfc49af059d04c9) )
ROM_CONTINUE( 0x10000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x18000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x18000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 ) /* chars */
ROM_LOAD16_BYTE( "barrel_6.u077", 0x000000, 0x10000, CRC(bea3c581) SHA1(7f7f0a74bf106acaf57c182d47f0c707da2011bd) )
@@ -1855,7 +1855,7 @@ ROM_START( godzilla )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "8.016", 0x000000, 0x08000, CRC(4ab76e43) SHA1(40c34fade03161c4b50f9f6a2ae61078b8d8ea6d) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "11.620", 0x000000, 0x010000, CRC(58e0e41f) SHA1(563c633eb3d4df41e467c93957c74b540a0ae43c) )
@@ -1973,7 +1973,7 @@ ROM_START( denjinmk )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "rom5.016", 0x000000, 0x08000, CRC(7fe7e352) SHA1(1ceae22186751ca91dfffab7bd11f275e693451f) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "rom7.620", 0x000000, 0x010000, CRC(e1f759b1) SHA1(ddc60e78e7791a59c59403dd4089b3f6e1ecf8cb) )
@@ -1995,7 +1995,7 @@ ROM_START( denjinmk )
ROM_LOAD( "bg-3-ab.619", 0x000000, 0x100000, CRC(de7366ee) SHA1(0c3969d15f3cd963e579d4164b6e0a6b4012c9c6) )
ROM_REGION( 0x100000, "gfx6", 0 ) /* LBK tiles */
- ROM_COPY( "gfx4", 0x00000, 0x00000, 0x100000 )
+ ROM_COPY( "gfx4", nullptr, 0x00000, 0x100000 )
ROM_REGION( 0x080000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "rom6.922", 0x000000, 0x040000, CRC(09e13213) SHA1(9500e057104c6b83da0467938e46d9efa2f49f4c) )
@@ -2069,7 +2069,7 @@ ROM_START( grainbow )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "rb-s.016", 0x000000, 0x08000, CRC(8439bf5b) SHA1(089009b91768d64edef6639e7694723d2d1c46ff) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "rb-f1.620", 0x000000, 0x010000, CRC(792c403d) SHA1(3c606af696fe8f3d6edefdab3940bd5eb341bca9) )
@@ -2109,7 +2109,7 @@ ROM_START( cupsoc )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "seibu7.8a", 0x000000, 0x08000, CRC(f63329f9) SHA1(51736de48efc14415cfdf169b43623d4c95fde2b) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "scc_06.bin", 0x000000, 0x010000, CRC(f1a18ec6) SHA1(43f8ec3fc541b8dc2a17533329dd3448afadcb3b) )
@@ -2127,7 +2127,7 @@ ROM_START( cupsoc )
ROM_LOAD( "back-2.6y", 0x000000, 0x080000, CRC(e07712af) SHA1(2a0285d6a1e0141838e898252b8d922a6263b05f) )
ROM_REGION( 0x080000, "gfx6", 0 ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x040000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "seibu8.7a", 0x000000, 0x040000, CRC(6f594808) SHA1(218aa12068aa587c7656355f6a6b86d97c868774) )
@@ -2146,7 +2146,7 @@ ROM_START( cupsoca )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "seibu7.8a", 0x000000, 0x08000, CRC(f63329f9) SHA1(51736de48efc14415cfdf169b43623d4c95fde2b) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "soca_6.bin", 0x000000, 0x010000, CRC(a9e15910) SHA1(305541b16a87d0e38871240fa2e111bb9332e93c) )
@@ -2164,7 +2164,7 @@ ROM_START( cupsoca )
ROM_LOAD( "back-2.6y", 0x000000, 0x080000, CRC(e07712af) SHA1(2a0285d6a1e0141838e898252b8d922a6263b05f) )
ROM_REGION( 0x080000, "gfx6", 0 ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x040000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "seibu8.7a", 0x000000, 0x040000, CRC(6f594808) SHA1(218aa12068aa587c7656355f6a6b86d97c868774) )
@@ -2183,7 +2183,7 @@ ROM_START( cupsocb )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "seibu7.8a", 0x000000, 0x08000, CRC(f63329f9) SHA1(51736de48efc14415cfdf169b43623d4c95fde2b) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "soca_6.bin", 0x000000, 0x010000, CRC(a9e15910) SHA1(305541b16a87d0e38871240fa2e111bb9332e93c) )
@@ -2201,7 +2201,7 @@ ROM_START( cupsocb )
ROM_LOAD( "back-2.6y", 0x000000, 0x080000, CRC(e07712af) SHA1(2a0285d6a1e0141838e898252b8d922a6263b05f) )
ROM_REGION( 0x080000, "gfx6", 0 ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x040000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "seibu8.7a", 0x000000, 0x040000, CRC(6f594808) SHA1(218aa12068aa587c7656355f6a6b86d97c868774) )
@@ -2220,7 +2220,7 @@ ROM_START( cupsocs )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "seibu7.8a", 0x000000, 0x08000, CRC(f63329f9) SHA1(51736de48efc14415cfdf169b43623d4c95fde2b) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "6_7x.bin", 0x000000, 0x010000, CRC(7981366e) SHA1(b859bf23c5ae466f4020958a06935192fa68ee8d) )
@@ -2238,7 +2238,7 @@ ROM_START( cupsocs )
ROM_LOAD( "back-2.6y", 0x000000, 0x080000, CRC(e07712af) SHA1(2a0285d6a1e0141838e898252b8d922a6263b05f) )
ROM_REGION( 0x080000, "gfx6", 0 ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x040000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "8_7a.bin", 0x000000, 0x040000, CRC(6f594808) SHA1(218aa12068aa587c7656355f6a6b86d97c868774) )
@@ -2259,7 +2259,7 @@ ROM_START( cupsocs2 )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "seibu7.8a", 0x000000, 0x08000, CRC(f63329f9) SHA1(51736de48efc14415cfdf169b43623d4c95fde2b) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "seibu6.7x", 0x000000, 0x010000, CRC(21c1e1b8) SHA1(30928c8ef98bf32ba0bf795ddadba1c95fcffe9d) )
@@ -2277,7 +2277,7 @@ ROM_START( cupsocs2 )
ROM_LOAD( "back-2.6y", 0x000000, 0x080000, CRC(e07712af) SHA1(2a0285d6a1e0141838e898252b8d922a6263b05f) )
ROM_REGION( 0x080000, "gfx6", 0 ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x040000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "seibu8.7a", 0x000000, 0x040000, CRC(6f594808) SHA1(218aa12068aa587c7656355f6a6b86d97c868774) )
@@ -2296,7 +2296,7 @@ ROM_START( olysoc92 )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "seibu7.8a", 0x000000, 0x08000, CRC(f63329f9) SHA1(51736de48efc14415cfdf169b43623d4c95fde2b) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "seibu6.7x", 0x000000, 0x010000, CRC(21c1e1b8) SHA1(30928c8ef98bf32ba0bf795ddadba1c95fcffe9d) )
@@ -2314,7 +2314,7 @@ ROM_START( olysoc92 )
ROM_LOAD( "back-2.6y", 0x000000, 0x080000, CRC(e07712af) SHA1(2a0285d6a1e0141838e898252b8d922a6263b05f) )
ROM_REGION( 0x080000, "gfx6", 0 ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x040000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "seibu8.7a", 0x000000, 0x040000, CRC(6f594808) SHA1(218aa12068aa587c7656355f6a6b86d97c868774) )
@@ -2333,7 +2333,7 @@ ROM_START( olysoc92a )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "seibu7.8a", 0x000000, 0x08000, CRC(f63329f9) SHA1(51736de48efc14415cfdf169b43623d4c95fde2b) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "6_7x.bin", 0x000000, 0x010000, CRC(7981366e) SHA1(b859bf23c5ae466f4020958a06935192fa68ee8d) )
@@ -2351,7 +2351,7 @@ ROM_START( olysoc92a )
ROM_LOAD( "back-2.6y", 0x000000, 0x080000, CRC(e07712af) SHA1(2a0285d6a1e0141838e898252b8d922a6263b05f) )
ROM_REGION( 0x080000, "gfx6", 0 ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x040000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "seibu8.7a", 0x000000, 0x040000, CRC(6f594808) SHA1(218aa12068aa587c7656355f6a6b86d97c868774) )
@@ -2371,7 +2371,7 @@ ROM_START( olysoc92b )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 code, banked data */
ROM_LOAD( "7", 0x000000, 0x08000, CRC(f63329f9) SHA1(51736de48efc14415cfdf169b43623d4c95fde2b) )
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "char", 0 )
ROM_LOAD16_BYTE( "6", 0x000000, 0x010000, CRC(7edb1700) SHA1(db30c01fc0e5b9f3c2d6139f89ec88936bc75b38) )
@@ -2389,7 +2389,7 @@ ROM_START( olysoc92b )
ROM_LOAD( "back-2.6y", 0x000000, 0x080000, CRC(e07712af) SHA1(2a0285d6a1e0141838e898252b8d922a6263b05f) )
ROM_REGION( 0x080000, "gfx6", 0 ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x040000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "8", 0x000000, 0x040000, CRC(6f594808) SHA1(218aa12068aa587c7656355f6a6b86d97c868774) )
@@ -2440,7 +2440,7 @@ ROM_START( cupsocsb )
ROM_REGION( 0x200000, "sprite", ROMREGION_INVERT ) /* bootleg sprite gfx */
ROM_LOAD( "sc_07.bin", 0x000000, 0x080000, CRC(dcb29d01) SHA1(72b4234622605f0ab03f21fdb6a61c6dac36000d) )
ROM_LOAD( "sc_06.bin", 0x080000, 0x080000, CRC(2dc70e05) SHA1(f1d0beb8428a7e1d7c7818e6719abdc543b2fa80) )
- ROM_COPY( "sprite", 0x00000, 0x100000, 0x100000 )
+ ROM_COPY( "sprite", nullptr, 0x100000, 0x100000 )
ROM_REGION( 0x200000, "test1", 0 ) /* bootleg tile gfx */
ROM_LOAD16_BYTE( "sc_09.bin", 0x000000, 0x080000, CRC(695b6342) SHA1(dfccb43789021ba2568b9284ae61e64f7f89b152) )
@@ -2452,32 +2452,32 @@ ROM_START( cupsocsb )
ROM_COPY( "test1", 0x080000, 0x00000, 0x020000 )
ROM_REGION( 0x100000, "gfx3", ROMREGION_INVERT ) /* MBK tiles */
- ROM_COPY( "test1", 0x000000, 0x00000, 0x080000 )
+ ROM_COPY( "test1", nullptr, 0x00000, 0x080000 )
ROM_COPY( "test1", 0x100000, 0x80000, 0x080000 )
ROM_REGION( 0x100000, "gfx4", ROMREGION_INVERT ) /* not used */
- ROM_COPY("gfx3",0x00000,0x00000,0x100000)
+ ROM_COPY("gfx3",nullptr,0x00000,0x100000)
ROM_REGION( 0x080000, "gfx5", ROMREGION_INVERT ) /* BK3 tiles */
ROM_COPY( "test1", 0x180000, 0x00000, 0x080000 )
ROM_REGION( 0x080000, "gfx6", ROMREGION_INVERT ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x100000, "adpcm", ROMREGION_ERASEFF ) /* ADPCM samples */
ROM_LOAD( "sc_02.bin", 0x000000, 0x020000, CRC(a70d4f03) SHA1(c2482e624c8a828a94206a36d10c1021ad8ca1d0) )
ROM_LOAD( "sc_03.bin", 0x080000, 0x080000, CRC(6e254d12) SHA1(857779dbd276b688201a8ea3afd5817e38acad2e) )
ROM_REGION( 0x200000, "oki", ROMREGION_ERASEFF )
- ROM_COPY( "adpcm", 0x00000, 0x000000, 0x20000 ) //bank 0
- ROM_COPY( "adpcm", 0x00000, 0x020000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x100000, 0x20000 ) //bank 4
+ ROM_COPY( "adpcm", nullptr, 0x000000, 0x20000 ) //bank 0
+ ROM_COPY( "adpcm", nullptr, 0x020000, 0x20000 )
+ ROM_COPY( "adpcm", nullptr, 0x100000, 0x20000 ) //bank 4
ROM_COPY( "adpcm", 0x80000, 0x120000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x140000, 0x20000 ) //bank 5
+ ROM_COPY( "adpcm", nullptr, 0x140000, 0x20000 ) //bank 5
ROM_COPY( "adpcm", 0xa0000, 0x160000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x180000, 0x20000 ) //bank 6
+ ROM_COPY( "adpcm", nullptr, 0x180000, 0x20000 ) //bank 6
ROM_COPY( "adpcm", 0xc0000, 0x1a0000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x1c0000, 0x20000 ) //bank 7
+ ROM_COPY( "adpcm", nullptr, 0x1c0000, 0x20000 ) //bank 7
ROM_COPY( "adpcm", 0xe0000, 0x1e0000, 0x20000 )
@@ -2503,7 +2503,7 @@ ROM_START( cupsocsb2 )
ROM_REGION( 0x200000, "sprite", ROMREGION_INVERT ) /* bootleg sprite gfx */
ROM_LOAD( "sc_07.bin", 0x000000, 0x080000, CRC(dcb29d01) SHA1(72b4234622605f0ab03f21fdb6a61c6dac36000d) )
ROM_LOAD( "sc_06.bin", 0x080000, 0x080000, CRC(2dc70e05) SHA1(f1d0beb8428a7e1d7c7818e6719abdc543b2fa80) )
- ROM_COPY( "sprite", 0x00000, 0x100000, 0x100000 )
+ ROM_COPY( "sprite", nullptr, 0x100000, 0x100000 )
ROM_REGION( 0x200000, "test1", 0 ) /* bootleg tile gfx */
ROM_LOAD16_BYTE( "sc_09.bin", 0x000000, 0x080000, CRC(695b6342) SHA1(dfccb43789021ba2568b9284ae61e64f7f89b152) )
@@ -2515,32 +2515,32 @@ ROM_START( cupsocsb2 )
ROM_COPY( "test1", 0x080000, 0x00000, 0x020000 )
ROM_REGION( 0x100000, "gfx3", ROMREGION_INVERT ) /* MBK tiles */
- ROM_COPY( "test1", 0x000000, 0x00000, 0x080000 )
+ ROM_COPY( "test1", nullptr, 0x00000, 0x080000 )
ROM_COPY( "test1", 0x100000, 0x80000, 0x080000 )
ROM_REGION( 0x100000, "gfx4", ROMREGION_INVERT ) /* not used */
- ROM_COPY("gfx3",0x00000,0x00000,0x100000)
+ ROM_COPY("gfx3",nullptr,0x00000,0x100000)
ROM_REGION( 0x080000, "gfx5", ROMREGION_INVERT ) /* BK3 tiles */
ROM_COPY( "test1", 0x180000, 0x00000, 0x080000 )
ROM_REGION( 0x080000, "gfx6", ROMREGION_INVERT ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x100000, "adpcm", ROMREGION_ERASEFF ) /* ADPCM samples */
ROM_LOAD( "sc_02.bin", 0x000000, 0x020000, CRC(a70d4f03) SHA1(c2482e624c8a828a94206a36d10c1021ad8ca1d0) )
ROM_LOAD( "sc_03.bin", 0x080000, 0x080000, CRC(6e254d12) SHA1(857779dbd276b688201a8ea3afd5817e38acad2e) )
ROM_REGION( 0x200000, "oki", ROMREGION_ERASEFF )
- ROM_COPY( "adpcm", 0x00000, 0x000000, 0x20000 ) //bank 0
- ROM_COPY( "adpcm", 0x00000, 0x020000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x100000, 0x20000 ) //bank 4
+ ROM_COPY( "adpcm", nullptr, 0x000000, 0x20000 ) //bank 0
+ ROM_COPY( "adpcm", nullptr, 0x020000, 0x20000 )
+ ROM_COPY( "adpcm", nullptr, 0x100000, 0x20000 ) //bank 4
ROM_COPY( "adpcm", 0x80000, 0x120000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x140000, 0x20000 ) //bank 5
+ ROM_COPY( "adpcm", nullptr, 0x140000, 0x20000 ) //bank 5
ROM_COPY( "adpcm", 0xa0000, 0x160000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x180000, 0x20000 ) //bank 6
+ ROM_COPY( "adpcm", nullptr, 0x180000, 0x20000 ) //bank 6
ROM_COPY( "adpcm", 0xc0000, 0x1a0000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x1c0000, 0x20000 ) //bank 7
+ ROM_COPY( "adpcm", nullptr, 0x1c0000, 0x20000 ) //bank 7
ROM_COPY( "adpcm", 0xe0000, 0x1e0000, 0x20000 )
@@ -2565,7 +2565,7 @@ ROM_START( cupsocsb3 )
ROM_REGION( 0x200000, "sprite", ROMREGION_INVERT ) /* bootleg sprite gfx */
ROM_LOAD( "sc_07.bin", 0x000000, 0x080000, CRC(dcb29d01) SHA1(72b4234622605f0ab03f21fdb6a61c6dac36000d) )
ROM_LOAD( "sc_06.bin", 0x080000, 0x080000, CRC(2dc70e05) SHA1(f1d0beb8428a7e1d7c7818e6719abdc543b2fa80) )
- ROM_COPY( "sprite", 0x00000, 0x100000, 0x100000 )
+ ROM_COPY( "sprite", nullptr, 0x100000, 0x100000 )
ROM_REGION( 0x200000, "test1", 0 ) /* bootleg tile gfx */
ROM_LOAD16_BYTE( "sc_09.bin", 0x000000, 0x080000, CRC(695b6342) SHA1(dfccb43789021ba2568b9284ae61e64f7f89b152) )
@@ -2577,32 +2577,32 @@ ROM_START( cupsocsb3 )
ROM_COPY( "test1", 0x080000, 0x00000, 0x020000 )
ROM_REGION( 0x100000, "gfx3", ROMREGION_INVERT ) /* MBK tiles */
- ROM_COPY( "test1", 0x000000, 0x00000, 0x080000 )
+ ROM_COPY( "test1", nullptr, 0x00000, 0x080000 )
ROM_COPY( "test1", 0x100000, 0x80000, 0x080000 )
ROM_REGION( 0x100000, "gfx4", ROMREGION_INVERT ) /* not used */
- ROM_COPY("gfx3",0x00000,0x00000,0x100000)
+ ROM_COPY("gfx3",nullptr,0x00000,0x100000)
ROM_REGION( 0x080000, "gfx5", ROMREGION_INVERT ) /* BK3 tiles */
ROM_COPY( "test1", 0x180000, 0x00000, 0x080000 )
ROM_REGION( 0x080000, "gfx6", ROMREGION_INVERT ) /* LBK tiles */
- ROM_COPY( "gfx5", 0x00000, 0x00000, 0x080000 )
+ ROM_COPY( "gfx5", nullptr, 0x00000, 0x080000 )
ROM_REGION( 0x100000, "adpcm", ROMREGION_ERASEFF ) /* ADPCM samples */
ROM_LOAD( "sc_02.bin", 0x000000, 0x020000, CRC(a70d4f03) SHA1(c2482e624c8a828a94206a36d10c1021ad8ca1d0) )
ROM_LOAD( "sc_03.bin", 0x080000, 0x080000, CRC(6e254d12) SHA1(857779dbd276b688201a8ea3afd5817e38acad2e) )
ROM_REGION( 0x200000, "oki", ROMREGION_ERASEFF )
- ROM_COPY( "adpcm", 0x00000, 0x000000, 0x20000 ) //bank 0
- ROM_COPY( "adpcm", 0x00000, 0x020000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x100000, 0x20000 ) //bank 4
+ ROM_COPY( "adpcm", nullptr, 0x000000, 0x20000 ) //bank 0
+ ROM_COPY( "adpcm", nullptr, 0x020000, 0x20000 )
+ ROM_COPY( "adpcm", nullptr, 0x100000, 0x20000 ) //bank 4
ROM_COPY( "adpcm", 0x80000, 0x120000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x140000, 0x20000 ) //bank 5
+ ROM_COPY( "adpcm", nullptr, 0x140000, 0x20000 ) //bank 5
ROM_COPY( "adpcm", 0xa0000, 0x160000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x180000, 0x20000 ) //bank 6
+ ROM_COPY( "adpcm", nullptr, 0x180000, 0x20000 ) //bank 6
ROM_COPY( "adpcm", 0xc0000, 0x1a0000, 0x20000 )
- ROM_COPY( "adpcm", 0x00000, 0x1c0000, 0x20000 ) //bank 7
+ ROM_COPY( "adpcm", nullptr, 0x1c0000, 0x20000 ) //bank 7
ROM_COPY( "adpcm", 0xe0000, 0x1e0000, 0x20000 )
/* these are maths tables, for whatever COP replacement the bootlegs use */
diff --git a/src/mame/drivers/lemmings.cpp b/src/mame/drivers/lemmings.cpp
index 321e88e1665..a3aa70f3465 100644
--- a/src/mame/drivers/lemmings.cpp
+++ b/src/mame/drivers/lemmings.cpp
@@ -220,7 +220,7 @@ static const gfx_layout sprite_layout =
static GFXDECODE_START( lemmings )
GFXDECODE_ENTRY( "gfx1", 0, sprite_layout, 0, 16 ) /* Sprites 16x16 */
GFXDECODE_ENTRY( "gfx2", 0, sprite_layout, 0, 16 ) /* Sprites 16x16 */
- GFXDECODE_ENTRY( NULL, 0, charlayout, 0, 16 ) /* Dynamically modified */
+ GFXDECODE_ENTRY( nullptr, 0, charlayout, 0, 16 ) /* Dynamically modified */
GFXDECODE_END
/******************************************************************************/
@@ -304,13 +304,13 @@ ROM_START( lemmings )
ROM_LOAD( "lemmings.9", 0x000000, 0x10000, CRC(e06442f5) SHA1(d9c8b681cce1d0257a0446bc820c7d679e2a1168) )
ROM_LOAD( "lemmings.10", 0x010000, 0x10000, CRC(36398848) SHA1(6c6956607f889c35367e6df4a32359042fad695e) )
ROM_LOAD( "lemmings.11", 0x020000, 0x10000, CRC(b46a54e5) SHA1(53b053346f80357aecff4ab888a8562f99cb318f) )
- ROM_FILL( 0x030000, 0x10000, 0 ) /* 3bpp data but sprite chip expects 4 */
+ ROM_FILL( 0x030000, 0x10000, nullptr ) /* 3bpp data but sprite chip expects 4 */
ROM_REGION( 0x40000, "gfx2", 0 )
ROM_LOAD( "lemmings.12", 0x000000, 0x10000, CRC(dc9047ff) SHA1(1bbe573fa51127a9e8b970a353f3cceab00f486a) )
ROM_LOAD( "lemmings.13", 0x010000, 0x10000, CRC(7cc15491) SHA1(73c1c11b2738f6679c70cae8ac4c55cdc9b8fc27) )
ROM_LOAD( "lemmings.14", 0x020000, 0x10000, CRC(c162788f) SHA1(e1f669efa59699cd1b7da71b112701ee79240c18) )
- ROM_FILL( 0x030000, 0x10000, 0 ) /* 3bpp data but sprite chip expects 4 */
+ ROM_FILL( 0x030000, 0x10000, nullptr ) /* 3bpp data but sprite chip expects 4 */
ROM_REGION( 0x40000, "oki", 0 ) /* ADPCM samples */
ROM_LOAD( "lemmings.16", 0x00000, 0x20000, CRC(f747847c) SHA1(00880fa6dff979e5d15daea61938bd18c768c92f) )
diff --git a/src/mame/drivers/lethalj.cpp b/src/mame/drivers/lethalj.cpp
index 7968fe4efed..c49a6a0b26e 100644
--- a/src/mame/drivers/lethalj.cpp
+++ b/src/mame/drivers/lethalj.cpp
@@ -707,8 +707,8 @@ ROM_START( eggventr )
ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */
ROM_LOAD16_BYTE( "evc8.10.vc8", 0x000000, 0x020000, CRC(225d1164) SHA1(b0dc55f2e8ded1fe7874de05987fcf879772289e) ) /* Labeled as EVC8.10 */
ROM_LOAD16_BYTE( "evc9.10.vc9", 0x000001, 0x020000, CRC(42f6e904) SHA1(11be8e7383a218aac0e1a63236bbdb7cca0993bf) ) /* Labeled as EVC9.10 */
- ROM_COPY( "user1", 0x000000, 0x040000, 0x040000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
- ROM_COPY( "user1", 0x000000, 0x080000, 0x080000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
+ ROM_COPY( "user1", nullptr, 0x040000, 0x040000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
+ ROM_COPY( "user1", nullptr, 0x080000, 0x080000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
ROM_REGION16_LE( 0x600000, "gfx1", 0 ) /* graphics data */
ROM_LOAD16_BYTE( "egr1.gr1", 0x000000, 0x100000, CRC(f73f80d9) SHA1(6278b45579a256b9576ba6d4f5a15fab26797c3d) )
@@ -733,8 +733,8 @@ ROM_START( eggventr8 )
ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */
ROM_LOAD16_BYTE( "evc8.8.vc8", 0x000000, 0x020000, CRC(5a130c04) SHA1(00408912b436efa003bb02dce90fae4fe33a0180) ) /* Labeled as EVC8.8 */
ROM_LOAD16_BYTE( "evc9.8.vc9", 0x000001, 0x020000, CRC(3ac0a95b) SHA1(7f3bd0e6d2d790af4aa6881ea8de8b296a64164a) ) /* Labeled as EVC9.8 */
- ROM_COPY( "user1", 0x000000, 0x040000, 0x040000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
- ROM_COPY( "user1", 0x000000, 0x080000, 0x080000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
+ ROM_COPY( "user1", nullptr, 0x040000, 0x040000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
+ ROM_COPY( "user1", nullptr, 0x080000, 0x080000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
ROM_REGION16_LE( 0x600000, "gfx1", 0 ) /* graphics data */
ROM_LOAD16_BYTE( "egr1.gr1", 0x000000, 0x100000, CRC(f73f80d9) SHA1(6278b45579a256b9576ba6d4f5a15fab26797c3d) )
@@ -759,8 +759,8 @@ ROM_START( eggventr7 )
ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */
ROM_LOAD16_BYTE( "evc8.7.vc8", 0x000000, 0x020000, CRC(99999899) SHA1(e3908600fa711baa7f7562f86498ec7e988a5bea) ) /* Labeled as EVC8.7 */
ROM_LOAD16_BYTE( "evc9.7.vc9", 0x000001, 0x020000, CRC(1b608155) SHA1(256dd981515d57f806a3770bdc6ff46b9000f7f3) ) /* Labeled as EVC9.7 */
- ROM_COPY( "user1", 0x000000, 0x040000, 0x040000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
- ROM_COPY( "user1", 0x000000, 0x080000, 0x080000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
+ ROM_COPY( "user1", nullptr, 0x040000, 0x040000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
+ ROM_COPY( "user1", nullptr, 0x080000, 0x080000 ) // Program roms found as 27C010 & 27C040 with 0xff filled 0x20000-0x7ffff
ROM_REGION16_LE( 0x600000, "gfx1", 0 ) /* graphics data */
ROM_LOAD16_BYTE( "egr1.gr1", 0x000000, 0x100000, CRC(f73f80d9) SHA1(6278b45579a256b9576ba6d4f5a15fab26797c3d) )
@@ -833,8 +833,8 @@ ROM_START( eggventrd )
ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */
ROM_LOAD16_BYTE( "eggdlx.vc8", 0x000000, 0x020000, CRC(