summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-04 07:03:38 +0100
committer 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(8d678842) SHA1(92b18ec903ec8579e7dffb40284987f1d44255b8) )
ROM_LOAD16_BYTE( "eggdlx.vc9", 0x000001, 0x020000, CRC(9db3fd23) SHA1(165a12a2d107c93cf216e755596e7457010a8f17) )
- ROM_COPY( "user1", 0x000000, 0x040000, 0x040000 ) // Program roms found as 27C010 & 27C040 with data repeated 4 times
- ROM_COPY( "user1", 0x000000, 0x080000, 0x080000 ) // Program roms found as 27C010 & 27C040 with data repeated 4 times
+ ROM_COPY( "user1", nullptr, 0x040000, 0x040000 ) // Program roms found as 27C010 & 27C040 with data repeated 4 times
+ ROM_COPY( "user1", nullptr, 0x080000, 0x080000 ) // Program roms found as 27C010 & 27C040 with data repeated 4 times
ROM_REGION16_LE( 0x600000, "gfx1", 0 ) /* graphics data */
ROM_LOAD16_BYTE( "egr1.gr1", 0x000000, 0x100000, CRC(f73f80d9) SHA1(6278b45579a256b9576ba6d4f5a15fab26797c3d) )
diff --git a/src/mame/drivers/liberate.cpp b/src/mame/drivers/liberate.cpp
index 9e0b2b7d644..a650eb1a7fe 100644
--- a/src/mame/drivers/liberate.cpp
+++ b/src/mame/drivers/liberate.cpp
@@ -877,7 +877,7 @@ ROM_START( prosoccr )
ROM_COPY( "shared_gfx", 0x4800, 0x4800, 0x1800 )
ROM_REGION( 0x6000, "sp_gfx", 0 )
- ROM_COPY( "shared_gfx", 0x0000, 0x0000, 0x2000 )
+ ROM_COPY( "shared_gfx", nullptr, 0x0000, 0x2000 )
ROM_COPY( "shared_gfx", 0x2000, 0x2000, 0x2000 )
ROM_COPY( "shared_gfx", 0x4000, 0x4000, 0x2000 )
@@ -934,7 +934,7 @@ ROM_START( prosport )
/* 8 - Pro Bowling */
ROM_REGION( 0x6000, "probowl_fg_gfx", 0 )
- ROM_COPY( "fg_gfx_src", 0x00000, 0x00000, 0x2000 )
+ ROM_COPY( "fg_gfx_src", nullptr, 0x00000, 0x2000 )
ROM_COPY( "fg_gfx_src", 0x06000, 0x02000, 0x2000 )
ROM_COPY( "fg_gfx_src", 0x0c000, 0x04000, 0x2000 )
@@ -953,7 +953,7 @@ ROM_START( prosport )
ROM_LOAD( "ic45ar17.bin", 0x01000, 0x1000, CRC(5f1c621e) SHA1(29ce85d3d5da5ee16bb67644b0555ab9bce52d05) )
ROM_REGION(0x02000, "user1", 0 )
- ROM_COPY( "gfx2", 0x0000, 0x0000, 0x2000 )
+ ROM_COPY( "gfx2", nullptr, 0x0000, 0x2000 )
ROM_END
ROM_START( prosporta )
@@ -996,7 +996,7 @@ ROM_START( prosporta )
/* 8 - Pro Bowling */
ROM_REGION( 0x6000, "probowl_fg_gfx", 0 )
- ROM_COPY( "fg_gfx_src", 0x00000, 0x00000, 0x2000 )
+ ROM_COPY( "fg_gfx_src", nullptr, 0x00000, 0x2000 )
ROM_COPY( "fg_gfx_src", 0x06000, 0x02000, 0x2000 )
ROM_COPY( "fg_gfx_src", 0x0c000, 0x04000, 0x2000 )
@@ -1015,7 +1015,7 @@ ROM_START( prosporta )
ROM_LOAD( "ar17.45", 0x01000, 0x1000, CRC(5f1c621e) SHA1(29ce85d3d5da5ee16bb67644b0555ab9bce52d05) )
ROM_REGION(0x02000, "user1", 0 )
- ROM_COPY( "gfx2", 0x0000, 0x0000, 0x2000 )
+ ROM_COPY( "gfx2", nullptr, 0x0000, 0x2000 )
ROM_END
ROM_START( boomrang )
diff --git a/src/mame/drivers/lola8a.cpp b/src/mame/drivers/lola8a.cpp
index c6f2e9a6c4f..1bed1666a07 100644
--- a/src/mame/drivers/lola8a.cpp
+++ b/src/mame/drivers/lola8a.cpp
@@ -231,8 +231,8 @@ READ8_MEMBER(lola8a_state::keyboard_r)
{
"line_0", "line_1", "line_2", "line_3",
"line_4", "line_5", "line_6", "line_7",
- "line_8", "line_9", NULL, NULL,
- NULL,NULL,NULL,NULL
+ "line_8", "line_9", nullptr, nullptr,
+ nullptr,nullptr,nullptr,nullptr
};
if( keynames[m_portb & 0x0f])
diff --git a/src/mame/drivers/m10.cpp b/src/mame/drivers/m10.cpp
index bbb08433573..ad8e5ccd3df 100644
--- a/src/mame/drivers/m10.cpp
+++ b/src/mame/drivers/m10.cpp
@@ -796,7 +796,7 @@ static const char *const m10_sample_names[] =
"8", /* UFO/saucer hit */
"9", /* bonus base */
"0", /* UFO sound */
- 0
+ nullptr
};
/*************************************
diff --git a/src/mame/drivers/m20.cpp b/src/mame/drivers/m20.cpp
index 60aa7c8bae4..52259158f2f 100644
--- a/src/mame/drivers/m20.cpp
+++ b/src/mame/drivers/m20.cpp
@@ -185,7 +185,7 @@ WRITE16_MEMBER(m20_state::port21_w)
m_floppy1->mon_w(1);
if(!(data & 3))
- m_fd1797->set_floppy(NULL);
+ m_fd1797->set_floppy(nullptr);
// density select 1 - sd, 0 - dd
m_fd1797->dden_w(data & 8);
@@ -830,7 +830,7 @@ static MACHINE_CONFIG_START( m20, m20_state )
MCFG_RS232_PORT_ADD("kbd", keyboard, "m20")
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("i8251_1", i8251_device, write_rxd))
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("i8251_2", i8251_device, write_rxd))
MCFG_DEVICE_ADD("apb", M20_8086, 0)
diff --git a/src/mame/drivers/m24.cpp b/src/mame/drivers/m24.cpp
index 154605f1349..9eafb8abbcf 100644
--- a/src/mame/drivers/m24.cpp
+++ b/src/mame/drivers/m24.cpp
@@ -260,9 +260,9 @@ static MACHINE_CONFIG_START( olivetti, m24_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "mb3", pc_isa8_cards, "lpt", true)
MCFG_ISA8_SLOT_ADD("mb:isa", "mb4", pc_isa8_cards, "com", true)
- 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", "isa3", 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)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, nullptr, false)
/* internal ram */
MCFG_RAM_ADD(RAM_TAG)
diff --git a/src/mame/drivers/m5.cpp b/src/mame/drivers/m5.cpp
index 8d7b7ec094a..91b05cf42b5 100644
--- a/src/mame/drivers/m5.cpp
+++ b/src/mame/drivers/m5.cpp
@@ -518,7 +518,7 @@ SLOT_INTERFACE_END
static const z80_daisy_config m5_daisy_chain[] =
{
{ Z80CTC_TAG },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/m63.cpp b/src/mame/drivers/m63.cpp
index 9889122e369..1222a8aac84 100644
--- a/src/mame/drivers/m63.cpp
+++ b/src/mame/drivers/m63.cpp
@@ -399,9 +399,9 @@ WRITE8_MEMBER(m63_state::snddata_w)
m_ay1->address_w(space, 0, offset);
else if ((m_p2 & 0xf0) == 0xa0)
m_ay1->data_w(space, 0, offset);
- else if (m_ay2 != NULL && (m_p1 & 0xe0) == 0x60)
+ else if (m_ay2 != nullptr && (m_p1 & 0xe0) == 0x60)
m_ay2->address_w(space, 0, offset);
- else if (m_ay2 != NULL && (m_p1 & 0xe0) == 0x40)
+ else if (m_ay2 != nullptr && (m_p1 & 0xe0) == 0x40)
m_ay2->data_w(space, 0, offset);
else if ((m_p2 & 0xf0) == 0x70 )
m_sound_status = offset;
@@ -974,7 +974,7 @@ ROM_START( fghtbskt )
ROM_REGION( 0x2000, "gfx1", 0 )
ROM_LOAD( "fb08.12f", 0x0000, 0x1000, CRC(271cd7b8) SHA1(00cfeb6ba429cf6cc59d6542dea8de2ca79155ed) )
- ROM_FILL( 0x1000, 0x1000, 0 )
+ ROM_FILL( 0x1000, 0x1000, nullptr )
ROM_REGION( 0x6000, "gfx2", 0 )
ROM_LOAD( "fb21.25e", 0x0000, 0x2000, CRC(02843591) SHA1(e38ccc97dcbd642d0ac768837f7baf1573fdb91f) )
diff --git a/src/mame/drivers/m92.cpp b/src/mame/drivers/m92.cpp
index 6f06921f32b..3233dabe95f 100644
--- a/src/mame/drivers/m92.cpp
+++ b/src/mame/drivers/m92.cpp
@@ -1577,13 +1577,13 @@ ROM_START( ppan )
ROM_LOAD( "3.u122", 0x000000, 0x080000, CRC(d0d37028) SHA1(0f58d220a1972bafa1299a19e704b7735886c8b6) )
ROM_REGION( 0x100000, "oki", 0) /* OKI Samples copied here */
- ROM_COPY( "okidata", 0x000000, 0x000000, 0x20000 )
- ROM_COPY( "okidata", 0x000000, 0x020000, 0x20000 )
- ROM_COPY( "okidata", 0x000000, 0x040000, 0x20000 )
+ ROM_COPY( "okidata", nullptr, 0x000000, 0x20000 )
+ ROM_COPY( "okidata", nullptr, 0x020000, 0x20000 )
+ ROM_COPY( "okidata", nullptr, 0x040000, 0x20000 )
ROM_COPY( "okidata", 0x020000, 0x060000, 0x20000 )
- ROM_COPY( "okidata", 0x000000, 0x080000, 0x20000 )
+ ROM_COPY( "okidata", nullptr, 0x080000, 0x20000 )
ROM_COPY( "okidata", 0x040000, 0x0a0000, 0x20000 )
- ROM_COPY( "okidata", 0x000000, 0x0c0000, 0x20000 )
+ ROM_COPY( "okidata", nullptr, 0x0c0000, 0x20000 )
ROM_COPY( "okidata", 0x060000, 0x0e0000, 0x20000 )
ROM_END
diff --git a/src/mame/drivers/macs.cpp b/src/mame/drivers/macs.cpp
index 1cd74867268..d29d9a7b577 100644
--- a/src/mame/drivers/macs.cpp
+++ b/src/mame/drivers/macs.cpp
@@ -520,7 +520,7 @@ ROM_START( macsbios )
ROM_REGION( 0x400000, "user3", ROMREGION_ERASEFF ) // Slot B
ROM_REGION( 0x1000000, "maincpu", 0 )
- ROM_COPY( "user1", 0x00000, 0x000000, 0x400000 ) // Bios
+ ROM_COPY( "user1", nullptr, 0x000000, 0x400000 ) // Bios
ROM_END
ROM_START( mac2bios )
@@ -529,7 +529,7 @@ ROM_START( mac2bios )
ROM_REGION( 0x400000, "user3", ROMREGION_ERASEFF ) // Slot B
ROM_REGION( 0x1000000, "maincpu", 0 )
- ROM_COPY( "user1", 0x00000, 0x000000, 0x400000 ) // Bios
+ ROM_COPY( "user1", nullptr, 0x000000, 0x400000 ) // Bios
ROM_END
ROM_START( kisekaem )
@@ -545,8 +545,8 @@ ROM_START( kisekaem )
ROM_REGION( 0x400000, "user3", ROMREGION_ERASEFF ) // Slot B
ROM_REGION( 0x1000000, "maincpu", 0 )
- ROM_COPY( "user1", 0x00000, 0x000000, 0x400000 ) // Bios
- ROM_COPY( "user2", 0x00000, 0x400000, 0x400000 ) // Slot A
+ ROM_COPY( "user1", nullptr, 0x000000, 0x400000 ) // Bios
+ ROM_COPY( "user2", nullptr, 0x400000, 0x400000 ) // Slot A
ROM_END
ROM_START( kisekaeh )
@@ -562,8 +562,8 @@ ROM_START( kisekaeh )
ROM_REGION( 0x400000, "user3", ROMREGION_ERASEFF ) // Slot B
ROM_REGION( 0x1000000, "maincpu", 0 )
- ROM_COPY( "user1", 0x00000, 0x000000, 0x400000 ) // Bios
- ROM_COPY( "user2", 0x00000, 0x400000, 0x400000 ) // Slot A
+ ROM_COPY( "user1", nullptr, 0x000000, 0x400000 ) // Bios
+ ROM_COPY( "user2", nullptr, 0x400000, 0x400000 ) // Slot A
ROM_END
ROM_START( cultname ) // uses printer - two different games ? (slot a - checks for printer, slot b - not)
@@ -584,9 +584,9 @@ ROM_START( cultname ) // uses printer - two different games ? (slot a - checks f
ROM_REGION( 0x1000000, "maincpu", 0 )
- ROM_COPY( "user1", 0x00000, 0x000000, 0x400000 ) // Bios
- ROM_COPY( "user2", 0x00000, 0x400000, 0x400000 ) // Slot A
- ROM_COPY( "user3", 0x00000, 0x800000, 0x400000 ) // Slot B
+ ROM_COPY( "user1", nullptr, 0x000000, 0x400000 ) // Bios
+ ROM_COPY( "user2", nullptr, 0x400000, 0x400000 ) // Slot A
+ ROM_COPY( "user3", nullptr, 0x800000, 0x400000 ) // Slot B
ROM_END
/* these are listed as MACS2 sub-boards, is it the same? - it's not ;) */
@@ -603,7 +603,7 @@ ROM_START( yuka )
ROM_REGION( 0x400000, "user3", ROMREGION_ERASE00 ) // Slot B
ROM_REGION( 0x1000000, "maincpu", 0 )
- ROM_COPY( "user2", 0x00000, 0x000000, 0x400000 ) // Slot A
+ ROM_COPY( "user2", nullptr, 0x000000, 0x400000 ) // Slot A
ROM_END
ROM_START( yujan )
@@ -618,7 +618,7 @@ ROM_START( yujan )
ROM_REGION( 0x400000, "user3", ROMREGION_ERASEFF ) // Slot B
ROM_REGION( 0x1000000, "maincpu", 0 )
- ROM_COPY( "user2", 0x00000, 0x000000, 0x400000 ) // Slot A
+ ROM_COPY( "user2", nullptr, 0x000000, 0x400000 ) // Slot A
ROM_END
#if 0
diff --git a/src/mame/drivers/magictg.cpp b/src/mame/drivers/magictg.cpp
index 03a296ed606..c74f77db497 100644
--- a/src/mame/drivers/magictg.cpp
+++ b/src/mame/drivers/magictg.cpp
@@ -930,7 +930,7 @@ static MACHINE_CONFIG_START( magictg, magictg_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0)
- MCFG_PCI_BUS_LEGACY_DEVICE(0, NULL, pci_dev0_r, pci_dev0_w)
+ MCFG_PCI_BUS_LEGACY_DEVICE(0, nullptr, pci_dev0_r, pci_dev0_w)
MCFG_PCI_BUS_LEGACY_DEVICE(7, "voodoo_0", voodoo_0_pci_r, voodoo_0_pci_w)
#if defined(USE_TWO_3DFX)
diff --git a/src/mame/drivers/mario.cpp b/src/mame/drivers/mario.cpp
index 371a078c18b..be97bf2ff1b 100644
--- a/src/mame/drivers/mario.cpp
+++ b/src/mame/drivers/mario.cpp
@@ -634,7 +634,7 @@ ROM_START( mario )
ROM_REGION( 0x1800, "audiocpu", 0 ) /* sound */
/* internal rom */
- ROM_FILL( 0x0000, 0x0800, 0x00)
+ ROM_FILL( 0x0000, 0x0800, nullptr)
/* first half banked */
ROM_LOAD( "tma1-c-6k_e.6k", 0x1000, 0x0800, CRC(06b9ff85) SHA1(111a29bcb9cda0d935675fa26eca6b099a88427f) )
/* second half always read */
@@ -668,7 +668,7 @@ ROM_START( marioe )
ROM_REGION( 0x1800, "audiocpu", 0 ) /* sound */
/* internal rom */
- ROM_FILL( 0x0000, 0x0800, 0x00)
+ ROM_FILL( 0x0000, 0x0800, nullptr)
/* first half banked */
ROM_LOAD( "tma1-c-6k_e.6k", 0x1000, 0x0800, CRC(06b9ff85) SHA1(111a29bcb9cda0d935675fa26eca6b099a88427f) )
/* second half always read */
@@ -702,7 +702,7 @@ ROM_START( marioo )
ROM_REGION( 0x1800, "audiocpu", 0 ) /* sound */
/* internal rom */
- ROM_FILL( 0x0000, 0x0800, 0x00)
+ ROM_FILL( 0x0000, 0x0800, nullptr)
/* first half banked */
ROM_LOAD( "tma1-c-6k_e.6k", 0x1000, 0x0800, CRC(06b9ff85) SHA1(111a29bcb9cda0d935675fa26eca6b099a88427f) )
/* second half always read */
@@ -736,7 +736,7 @@ ROM_START( marioj )
ROM_REGION( 0x1800, "audiocpu", 0 ) /* sound */
/* internal rom */
- ROM_FILL( 0x0000, 0x0800, 0x00)
+ ROM_FILL( 0x0000, 0x0800, nullptr)
/* first half banked */
ROM_LOAD( "tma1c-a.6k", 0x1000, 0x0800, CRC(06b9ff85) SHA1(111a29bcb9cda0d935675fa26eca6b099a88427f) )
/* second half always read */
diff --git a/src/mame/drivers/mbc200.cpp b/src/mame/drivers/mbc200.cpp
index 58ccf68eeed..a90b4533ba6 100644
--- a/src/mame/drivers/mbc200.cpp
+++ b/src/mame/drivers/mbc200.cpp
@@ -94,7 +94,7 @@ WRITE8_MEMBER( mbc200_state::pm_porta_w )
WRITE8_MEMBER( mbc200_state::pm_portb_w )
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
// to be verified
switch (data & 0x01)
diff --git a/src/mame/drivers/mbee.cpp b/src/mame/drivers/mbee.cpp
index 35cfd694d67..420aa8340f6 100644
--- a/src/mame/drivers/mbee.cpp
+++ b/src/mame/drivers/mbee.cpp
@@ -585,7 +585,7 @@ INPUT_PORTS_END
static const z80_daisy_config mbee_daisy_chain[] =
{
{ "z80pio" },
- { NULL }
+ { nullptr }
};
/**************************** F4 CHARACTER DISPLAYER */
diff --git a/src/mame/drivers/mc1502.cpp b/src/mame/drivers/mc1502.cpp
index fa3d7866d90..ade7c5accfc 100644
--- a/src/mame/drivers/mc1502.cpp
+++ b/src/mame/drivers/mc1502.cpp
@@ -285,7 +285,7 @@ static MACHINE_CONFIG_START( mc1502, mc1502_state )
MCFG_I8251_TXRDY_HANDLER(DEVWRITELINE("pic8259", pic8259_device, ir7_w))
MCFG_I8251_SYNDET_HANDLER(WRITELINE(mc1502_state, mc1502_i8251_syndet))
- MCFG_RS232_PORT_ADD("irps", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("irps", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("upd8251", i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("upd8251", i8251_device, write_dsr))
diff --git a/src/mame/drivers/mc80.cpp b/src/mame/drivers/mc80.cpp
index ee2ae44bfee..5518a87408a 100644
--- a/src/mame/drivers/mc80.cpp
+++ b/src/mame/drivers/mc80.cpp
@@ -156,7 +156,7 @@ static const z80_daisy_config mc8030_daisy_chain[] =
{ "asp_sio" }, /* sio */
{ "zve_pio" }, /* User pio */
{ "zve_ctc" }, /* User ctc */
- { NULL }
+ { nullptr }
};
static MACHINE_CONFIG_START( mc8020, mc80_state )
diff --git a/src/mame/drivers/mediagx.cpp b/src/mame/drivers/mediagx.cpp
index cf5aa01f122..92c8ce5b515 100644
--- a/src/mame/drivers/mediagx.cpp
+++ b/src/mame/drivers/mediagx.cpp
@@ -880,9 +880,9 @@ static MACHINE_CONFIG_START( mediagx, mediagx_state )
MCFG_FRAGMENT_ADD( pcat_common )
MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0)
- 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_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_TIMER_DRIVER_ADD("sound_timer", mediagx_state, sound_timer_callback)
@@ -943,9 +943,9 @@ READ32_MEMBER(mediagx_state::speedup11_r) { return generic_speedup(space, 11); }
static const struct { read32_delegate func; } speedup_handlers[] =
{
- { read32_delegate(FUNC(mediagx_state::speedup0_r),(mediagx_state*)0) }, { read32_delegate(FUNC(mediagx_state::speedup1_r),(mediagx_state*)0) }, { read32_delegate(FUNC(mediagx_state::speedup2_r),(mediagx_state*)0) }, { read32_delegate(FUNC(mediagx_state::speedup3_r),(mediagx_state*)0) },
- { read32_delegate(FUNC(mediagx_state::speedup4_r),(mediagx_state*)0) }, { read32_delegate(FUNC(mediagx_state::speedup5_r),(mediagx_state*)0) }, { read32_delegate(FUNC(mediagx_state::speedup6_r),(mediagx_state*)0) }, { read32_delegate(FUNC(mediagx_state::speedup7_r),(mediagx_state*)0) },
- { read32_delegate(FUNC(mediagx_state::speedup8_r),(mediagx_state*)0) }, { read32_delegate(FUNC(mediagx_state::speedup9_r),(mediagx_state*)0) }, { read32_delegate(FUNC(mediagx_state::speedup10_r),(mediagx_state*)0) }, { read32_delegate(FUNC(mediagx_state::speedup11_r),(mediagx_state*)0) }
+ { read32_delegate(FUNC(mediagx_state::speedup0_r),(mediagx_state*)nullptr) }, { read32_delegate(FUNC(mediagx_state::speedup1_r),(mediagx_state*)nullptr) }, { read32_delegate(FUNC(mediagx_state::speedup2_r),(mediagx_state*)nullptr) }, { read32_delegate(FUNC(mediagx_state::speedup3_r),(mediagx_state*)nullptr) },
+ { read32_delegate(FUNC(mediagx_state::speedup4_r),(mediagx_state*)nullptr) }, { read32_delegate(FUNC(mediagx_state::speedup5_r),(mediagx_state*)nullptr) }, { read32_delegate(FUNC(mediagx_state::speedup6_r),(mediagx_state*)nullptr) }, { read32_delegate(FUNC(mediagx_state::speedup7_r),(mediagx_state*)nullptr) },
+ { read32_delegate(FUNC(mediagx_state::speedup8_r),(mediagx_state*)nullptr) }, { read32_delegate(FUNC(mediagx_state::speedup9_r),(mediagx_state*)nullptr) }, { read32_delegate(FUNC(mediagx_state::speedup10_r),(mediagx_state*)nullptr) }, { read32_delegate(FUNC(mediagx_state::speedup11_r),(mediagx_state*)nullptr) }
};
#ifdef MAME_DEBUG
diff --git a/src/mame/drivers/megadriv.cpp b/src/mame/drivers/megadriv.cpp
index 927ef1db48a..1168e340be9 100644
--- a/src/mame/drivers/megadriv.cpp
+++ b/src/mame/drivers/megadriv.cpp
@@ -344,7 +344,7 @@ static MACHINE_CONFIG_START( ms_megadriv, md_cons_state )
MCFG_SCREEN_MODIFY("megadriv")
MCFG_SCREEN_VBLANK_DRIVER(md_cons_state, screen_eof_console)
- MCFG_MD_CARTRIDGE_ADD("mdslot", md_cart, NULL)
+ MCFG_MD_CARTRIDGE_ADD("mdslot", md_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","megadriv")
MACHINE_CONFIG_END
@@ -357,7 +357,7 @@ static MACHINE_CONFIG_START( ms_megadpal, md_cons_state )
MCFG_SCREEN_MODIFY("megadriv")
MCFG_SCREEN_VBLANK_DRIVER(md_cons_state, screen_eof_console)
- MCFG_MD_CARTRIDGE_ADD("mdslot", md_cart, NULL)
+ MCFG_MD_CARTRIDGE_ADD("mdslot", md_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","megadriv")
MACHINE_CONFIG_END
@@ -477,7 +477,7 @@ DEVICE_IMAGE_LOAD_MEMBER( md_cons_state, _32x_cart )
UINT32 *ROM32;
int i;
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
length = image.length();
temp_copy.resize(length);
@@ -928,7 +928,7 @@ ROM_START( 32x_scd )
ROM_LOAD( "mpr-15764-t.bin", 0x000000, 0x020000, CRC(2e49d72c) SHA1(328a3228c29fba244b9db2055adc1ec4f7a87e6b) )
ROM_REGION32_BE( 0x400000, "gamecart_sh2", 0 ) /* Copy for the SH2 */
- ROM_COPY( "gamecart", 0x0, 0x0, 0x400000)
+ ROM_COPY( "gamecart", nullptr, 0x0, 0x400000)
ROM_REGION16_BE( 0x400000, "32x_68k_bios", 0 ) /* 68000 Code */
ROM_LOAD( "32x_g_bios.bin", 0x000000, 0x000100, CRC(5c12eae8) SHA1(dbebd76a448447cb6e524ac3cb0fd19fc065d944) )
@@ -947,7 +947,7 @@ ROM_START( 32x_mcd )
ROM_LOAD( "megacd_model1_bios_1_00_e.bin", 0x000000, 0x020000, CRC(529ac15a) SHA1(f891e0ea651e2232af0c5c4cb46a0cae2ee8f356) )
ROM_REGION32_BE( 0x400000, "gamecart_sh2", 0 ) /* Copy for the SH2 */
- ROM_COPY( "gamecart", 0x0, 0x0, 0x400000)
+ ROM_COPY( "gamecart", nullptr, 0x0, 0x400000)
ROM_REGION16_BE( 0x400000, "32x_68k_bios", 0 ) /* 68000 Code */
ROM_LOAD( "32x_g_bios.bin", 0x000000, 0x000100, CRC(5c12eae8) SHA1(dbebd76a448447cb6e524ac3cb0fd19fc065d944) )
@@ -980,7 +980,7 @@ ROM_START( 32x_mcdj )
ROMX_LOAD( "epr-14088e.bin", 0x000000, 0x020000, CRC(9d2da8f2) SHA1(4846f448160059a7da0215a5df12ca160f26dd69), ROM_BIOS(5) )
ROM_REGION32_BE( 0x400000, "gamecart_sh2", 0 ) /* Copy for the SH2 */
- ROM_COPY( "gamecart", 0x0, 0x0, 0x400000)
+ ROM_COPY( "gamecart", nullptr, 0x0, 0x400000)
ROM_REGION16_BE( 0x400000, "32x_68k_bios", 0 ) /* 68000 Code */
ROM_LOAD( "32x_g_bios.bin", 0x000000, 0x000100, CRC(5c12eae8) SHA1(dbebd76a448447cb6e524ac3cb0fd19fc065d944) )
diff --git a/src/mame/drivers/megatech.cpp b/src/mame/drivers/megatech.cpp
index e3c8e8b1837..281578fd94f 100644
--- a/src/mame/drivers/megatech.cpp
+++ b/src/mame/drivers/megatech.cpp
@@ -371,7 +371,7 @@ void mtech_state::set_genz80_as_sms()
memset(sms_mainram,0x00,0x2000);
// fixed rom bank area
- sms_rom = (UINT8 *)prg.install_rom(0x0000, 0xbfff, NULL);
+ sms_rom = (UINT8 *)prg.install_rom(0x0000, 0xbfff, nullptr);
memcpy(sms_rom, m_region_maincpu->base(), 0xc000);
@@ -735,14 +735,14 @@ int mtech_state::load_cart(device_image_interface &image, generic_slot_device *s
const char *pcb_name;
UINT32 size = slot->common_get_size("rom");
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
return IMAGE_INIT_FAIL;
slot->rom_alloc(size, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
ROM = slot->get_rom_base();
memcpy(ROM, image.get_software_region("rom"), size);
- if ((pcb_name = image.get_feature("pcb_type")) == NULL)
+ if ((pcb_name = image.get_feature("pcb_type")) == nullptr)
return IMAGE_INIT_FAIL;
else
{
diff --git a/src/mame/drivers/meritm.cpp b/src/mame/drivers/meritm.cpp
index f765ac75de5..4796bc5adf2 100644
--- a/src/mame/drivers/meritm.cpp
+++ b/src/mame/drivers/meritm.cpp
@@ -1018,7 +1018,7 @@ static const z80_daisy_config meritm_daisy_chain[] =
{
{ "z80pio_0" },
{ "z80pio_1" },
- { NULL }
+ { nullptr }
};
MACHINE_START_MEMBER(meritm_state,merit_common)
diff --git a/src/mame/drivers/mexico86.cpp b/src/mame/drivers/mexico86.cpp
index a763f0f84e4..b82d086738d 100644
--- a/src/mame/drivers/mexico86.cpp
+++ b/src/mame/drivers/mexico86.cpp
@@ -424,7 +424,7 @@ void mexico86_state::machine_start()
void mexico86_state::machine_reset()
{
/*TODO: check the PCB and see how the halt / reset lines are connected. */
- if (m_subcpu != NULL)
+ if (m_subcpu != nullptr)
m_subcpu->set_input_line(INPUT_LINE_RESET, (ioport("DSW1")->read() & 0x80) ? ASSERT_LINE : CLEAR_LINE);
m_port_a_in = 0;
diff --git a/src/mame/drivers/microvsn.cpp b/src/mame/drivers/microvsn.cpp
index 6214f1cacd0..f82725bc43e 100644
--- a/src/mame/drivers/microvsn.cpp
+++ b/src/mame/drivers/microvsn.cpp
@@ -528,7 +528,7 @@ DEVICE_IMAGE_LOAD_MEMBER(microvision_state, microvsn_cart)
}
/* Read cartridge */
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
if (image.fread(rom1, file_size) != file_size)
{
diff --git a/src/mame/drivers/midqslvr.cpp b/src/mame/drivers/midqslvr.cpp
index 0e33354dbb4..fcd74e0e1a8 100644
--- a/src/mame/drivers/midqslvr.cpp
+++ b/src/mame/drivers/midqslvr.cpp
@@ -416,10 +416,10 @@ static MACHINE_CONFIG_START( midqslvr, midqslvr_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(31, 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(31, 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/midvunit.cpp b/src/mame/drivers/midvunit.cpp
index d39eb62b880..74470fbe667 100644
--- a/src/mame/drivers/midvunit.cpp
+++ b/src/mame/drivers/midvunit.cpp
@@ -1052,7 +1052,7 @@ static MACHINE_CONFIG_DERIVED( midvplus, midvcommon )
MCFG_MACHINE_RESET_OVERRIDE(midvunit_state,midvplus)
MCFG_DEVICE_REMOVE("nvram")
- MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", NULL, true)
+ MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", nullptr, true)
MCFG_DEVICE_ADD("ioasic", MIDWAY_IOASIC, 0)
MCFG_MIDWAY_IOASIC_SHUFFLE(0)
diff --git a/src/mame/drivers/mikromik.cpp b/src/mame/drivers/mikromik.cpp
index 08493f41970..79741fc137a 100644
--- a/src/mame/drivers/mikromik.cpp
+++ b/src/mame/drivers/mikromik.cpp
@@ -502,10 +502,10 @@ static MACHINE_CONFIG_START( mm1, mm1_state )
MCFG_Z80DART_OUT_RXDRQA_CB(WRITELINE(mm1_state, drq2_w))
MCFG_Z80DART_OUT_TXDRQA_CB(WRITELINE(mm1_state, drq1_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_CTS_HANDLER(DEVWRITELINE(UPD7201_TAG, z80dart_device, rxa_w))
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL)
- MCFG_RS232_PORT_ADD(RS232_C_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr)
+ MCFG_RS232_PORT_ADD(RS232_C_TAG, default_rs232_devices, nullptr)
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(UPD7201_TAG, z80dart_device, ctsb_w))
MCFG_DEVICE_ADD(KB_TAG, MM1_KEYBOARD, 2500) // actual KBCLK is XTAL_6_144MHz/2/16
diff --git a/src/mame/drivers/mirage.cpp b/src/mame/drivers/mirage.cpp
index caaccf62c47..e9971176c8f 100644
--- a/src/mame/drivers/mirage.cpp
+++ b/src/mame/drivers/mirage.cpp
@@ -376,7 +376,7 @@ ROM_START( mirage )
ROM_LOAD( "mbl-03.10a", 0x000000, 0x200000, CRC(4a599703) SHA1(b49e84faa2d6acca952740d30fc8d1a33ac47e79) )
ROM_REGION( 0x200000, "oki_bgm", 0 )
- ROM_COPY( "oki_bgm_data", 0x000000, 0x000000, 0x080000 )
+ ROM_COPY( "oki_bgm_data", nullptr, 0x000000, 0x080000 )
ROM_COPY( "oki_bgm_data", 0x100000, 0x080000, 0x080000 ) // - banks 2,3 and 4,5 are swapped, PAL address shuffle
ROM_COPY( "oki_bgm_data", 0x080000, 0x100000, 0x080000 ) // /
ROM_COPY( "oki_bgm_data", 0x180000, 0x180000, 0x080000 )
diff --git a/src/mame/drivers/missb2.cpp b/src/mame/drivers/missb2.cpp
index 93abb480bbc..85475271f05 100644
--- a/src/mame/drivers/missb2.cpp
+++ b/src/mame/drivers/missb2.cpp
@@ -332,7 +332,7 @@ static const gfx_layout bglayout =
{ 0*128, 1*128, 2*128, 3*128, 4*128, 5*128, 6*128, 7*128, 8*128, 9*128, 10*128, 11*128, 12*128, 13*128, 14*128, 15*128 },
256*128,
bglayout_xoffset,
- NULL
+ nullptr
};
static const UINT32 bglayout_xoffset_alt[256] =
@@ -386,7 +386,7 @@ static const gfx_layout bglayout_alt =
{ 0*128, 1*128, 2*128, 3*128, 4*128, 5*128, 6*128, 7*128, 8*128, 9*128, 10*128, 11*128, 12*128, 13*128, 14*128, 15*128 },
256*128,
bglayout_xoffset_alt,
- NULL
+ nullptr
};
diff --git a/src/mame/drivers/missile.cpp b/src/mame/drivers/missile.cpp
index f3cfe2b05f6..7931181910e 100644
--- a/src/mame/drivers/missile.cpp
+++ b/src/mame/drivers/missile.cpp
@@ -671,7 +671,7 @@ UINT32 missile_state::screen_update_missile(screen_device &screen, bitmap_ind16
int effy = m_flipscreen ? ((256+24 - y) & 0xff) : y;
UINT8 *src = &videoram[effy * 64];
- UINT8 *src3 = NULL;
+ UINT8 *src3 = nullptr;
/* compute the base of the 3rd pixel row */
if (effy >= 224)
@@ -684,7 +684,7 @@ UINT32 missile_state::screen_update_missile(screen_device &screen, bitmap_ind16
pix = ((pix >> 2) & 4) | ((pix << 1) & 2);
/* if we're in the lower region, get the 3rd bit */
- if (src3 != NULL)
+ if (src3 != nullptr)
pix |= (src3[(x / 8) * 2] >> (x & 7)) & 1;
dst[x] = pix;
diff --git a/src/mame/drivers/mitchell.cpp b/src/mame/drivers/mitchell.cpp
index 5f8777942cf..afd77f6dc9a 100644
--- a/src/mame/drivers/mitchell.cpp
+++ b/src/mame/drivers/mitchell.cpp
@@ -1907,13 +1907,13 @@ ROM_START( mstworld )
/* $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( "user2", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0e0000, 0x020000)
ROM_REGION( 0x80000, "gfx1", ROMREGION_INVERT ) /* GFX */
@@ -2132,7 +2132,7 @@ DRIVER_INIT_MEMBER(mitchell_state,pangb)
{
m_input_type = 0;
bootleg_decode();
- if (m_nvram != NULL)
+ if (m_nvram != nullptr)
m_nvram->set_base(&m_dummy_nvram, sizeof(m_dummy_nvram)); /* for pangba */
}
DRIVER_INIT_MEMBER(mitchell_state,cworld)
diff --git a/src/mame/drivers/model2.cpp b/src/mame/drivers/model2.cpp
index 2dbfe076114..e57eaf78641 100644
--- a/src/mame/drivers/model2.cpp
+++ b/src/mame/drivers/model2.cpp
@@ -1199,13 +1199,13 @@ WRITE32_MEMBER(model2_state::model2_serial_w)
{
if (ACCESSING_BITS_0_7 && (offset == 0))
{
- if (m_dsbz80 != NULL)
+ if (m_dsbz80 != nullptr)
{
m_dsbz80->latch_w(space, 0, data&0xff);
}
// for Manx TT DX
- if (m_m1audio != NULL)
+ if (m_m1audio != nullptr)
{
if (!m_m1audio->ready_r(space, 0))
{
diff --git a/src/mame/drivers/model3.cpp b/src/mame/drivers/model3.cpp
index e793b648ab5..b039eed9dce 100644
--- a/src/mame/drivers/model3.cpp
+++ b/src/mame/drivers/model3.cpp
@@ -1632,7 +1632,7 @@ WRITE8_MEMBER(model3_state::model3_sound_w)
// clear the interrupt
set_irq_line(0x40, CLEAR_LINE);
- if (m_dsbz80 != NULL)
+ if (m_dsbz80 != nullptr)
{
m_dsbz80->latch_w(space, 0, data&0xff);
}
@@ -2102,16 +2102,16 @@ ROM_START( lemans24 ) /* step 1.5, Sega game ID# is 833-13159, ROM board ID# 8
ROM_LOAD( "mpr-19870.24", 0x400000, 0x400000, CRC(49c70296) SHA1(9bf88a63c38d318006a9c6c6b7b4452439df876c) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( scud ) /* step 1.5, Sega game ID# is 833-13041, ROM board ID# 834-13072 SPG COMM AUS */
@@ -2181,10 +2181,10 @@ ROM_START( scud ) /* step 1.5, Sega game ID# is 833-13041, ROM board ID# 834-1
ROM_LOAD( "mpr-19606.60", 0x600000, 0x200000, CRC(adad46b2) SHA1(360b23870f1d15ab527fae1bb731da6e7a8b19c1) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
ROM_LOAD( "epr-19338a.bin", 0x000000, 0x010000, CRC(c9fac464) SHA1(47b9ab7921a685c01629afb592d597faa11d2bd6) )
@@ -2256,10 +2256,10 @@ ROM_START( scudj ) /* step 1.5, Sega game ID# is 833-13041, ROM board ID# 12934
ROM_LOAD( "mpr-19606.60", 0x600000, 0x200000, CRC(adad46b2) SHA1(360b23870f1d15ab527fae1bb731da6e7a8b19c1) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
ROM_LOAD( "epr-19338a.bin", 0x000000, 0x010000, CRC(c9fac464) SHA1(47b9ab7921a685c01629afb592d597faa11d2bd6) )
@@ -2331,10 +2331,10 @@ ROM_START( scuda ) /* step 1.5, Sega game ID# is 833-13041, ROM board ID# 834-1
ROM_LOAD( "mpr-19606.60", 0x600000, 0x200000, CRC(adad46b2) SHA1(360b23870f1d15ab527fae1bb731da6e7a8b19c1) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
ROM_LOAD( "epr-19338a.bin", 0x000000, 0x010000, CRC(c9fac464) SHA1(47b9ab7921a685c01629afb592d597faa11d2bd6) )
@@ -2412,10 +2412,10 @@ ROM_START( scudplus ) /* step 1.5, Sega game ID# is 833-13260 SCUD PLUS, ROM b
ROM_LOAD( "mpr-19606.60", 0x600000, 0x200000, CRC(adad46b2) SHA1(360b23870f1d15ab527fae1bb731da6e7a8b19c1) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
ROM_LOAD( "epr-19338.bin", 0x000000, 0x010000, CRC(dbf88de6) SHA1(8f5c83e82c26a37a1ed0476d7dfeb698b8417899) )
@@ -2493,10 +2493,10 @@ ROM_START( scudplusa ) /* step 1.5, Sega game ID# is 833-13260 SCUD PLUS, ROM b
ROM_LOAD( "mpr-19606.60", 0x600000, 0x200000, CRC(adad46b2) SHA1(360b23870f1d15ab527fae1bb731da6e7a8b19c1) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
ROM_LOAD( "epr-19338.bin", 0x000000, 0x010000, CRC(dbf88de6) SHA1(8f5c83e82c26a37a1ed0476d7dfeb698b8417899) )
@@ -2565,16 +2565,16 @@ ROM_START( vf3 ) /* step 1.0, Sega game ID# is 833-12712, ROM board ID# 834-1
ROM_LOAD( "mpr-19210.24", 0x400000, 0x400000, CRC(c03d6502) SHA1(4ca49fe5dd5105ca5f78f4740477beb64137d4be) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( vf3a ) /* step 1.0, Sega game ID# is 833-12712, ROM board ID# 834-12821 */
@@ -2640,16 +2640,16 @@ ROM_START( vf3a ) /* step 1.0, Sega game ID# is 833-12712, ROM board ID# 834-1
ROM_LOAD( "mpr-19210.24", 0x400000, 0x400000, CRC(c03d6502) SHA1(4ca49fe5dd5105ca5f78f4740477beb64137d4be) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( vf3tb ) /* step 1.0? */
@@ -2715,16 +2715,16 @@ ROM_START( vf3tb ) /* step 1.0? */
ROM_LOAD( "mpr-19210.24", 0x400000, 0x400000, CRC(c03d6502) SHA1(4ca49fe5dd5105ca5f78f4740477beb64137d4be) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( bass ) /* step 1.0, Sega game ID# is 833-13317, ROM board ID# 834-13318 BSS */
@@ -2784,16 +2784,16 @@ ROM_START( bass ) /* step 1.0, Sega game ID# is 833-13317, ROM board ID# 834-1
ROM_LOAD( "mpr-20269.24", 0x400000, 0x400000, CRC(105a3181) SHA1(022cbce1d01366461a584ff6225ded40bcb9000b) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( bassdx ) /* step 1.0, Sega game ID# is 833-13476 BSS DX JPN, ROM board ID# 834-13477 BSS DX JPN */
@@ -2853,16 +2853,16 @@ ROM_START( bassdx ) /* step 1.0, Sega game ID# is 833-13476 BSS DX JPN, ROM boar
ROM_LOAD( "mpr-20269.24", 0x400000, 0x400000, CRC(105a3181) SHA1(022cbce1d01366461a584ff6225ded40bcb9000b) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
/*
@@ -2947,16 +2947,16 @@ ROM_START( getbass ) /* step 1.0, Sega game ID# is 833-13416 GET BASS STD, RO
ROM_LOAD( "mpr-20269.24", 0x400000, 0x400000, CRC(105a3181) SHA1(022cbce1d01366461a584ff6225ded40bcb9000b) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "iocpu", 0 ) // kl5c80a16cf code
ROM_LOAD( "epr-20690.ic11", 0x00000, 0x10000, CRC(b7da201d) SHA1(7e58eb45ee6ec78250ece7b4fcc4e955b8b4f084) )
@@ -3025,16 +3025,16 @@ ROM_START( lostwsga ) /* Step 1.5, PCB cage labeled 834-13172 THE LOST WORLD U
ROM_LOAD( "mpr-19935.24", 0x400000, 0x400000, CRC(91c1b618) SHA1(36573304e9a7f19e17b31a69de9b25d9893bc2dc) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( vs2 ) /* Step 2.0 */
@@ -3100,16 +3100,16 @@ ROM_START( vs2 ) /* Step 2.0 */
ROM_LOAD( "mpr-19786.24", 0x400000, 0x400000, CRC(b08d889b) SHA1(790b5b2d62a28c39d43aeec9ffb365ccd9dc93af) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( vs215 ) /* Step 1.5 */
@@ -3175,16 +3175,16 @@ ROM_START( vs215 ) /* Step 1.5 */
ROM_LOAD( "mpr-19786.24", 0x400000, 0x400000, CRC(b08d889b) SHA1(790b5b2d62a28c39d43aeec9ffb365ccd9dc93af) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( vs215o ) /* Step 1.5, original release.. might even be for Step 1.0??? */
@@ -3250,16 +3250,16 @@ ROM_START( vs215o ) /* Step 1.5, original release.. might even be for Step 1.0??
ROM_LOAD( "mpr-19786.24", 0x400000, 0x400000, CRC(b08d889b) SHA1(790b5b2d62a28c39d43aeec9ffb365ccd9dc93af) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( vs298 ) /* Step 2.0, Sega ID# 833-13346, ROM board ID# 834-13347 */
@@ -3325,16 +3325,16 @@ ROM_START( vs298 ) /* Step 2.0, Sega ID# 833-13346, ROM board ID# 834-13347 */
ROM_LOAD( "mpr-20904.24", 0x400000, 0x400000, CRC(21a91b84) SHA1(cd2d7231b8652ff38376b672c47127ce054d1f32) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0237-COM Model 3
ROM_PARAMETER( ":315_5881:key", "29234e96" )
@@ -3403,16 +3403,16 @@ ROM_START( vs29815 ) /* Step 1.5, ROM board ID# 834-13495 VS2 VER98 STEP 1.5
ROM_LOAD( "mpr-20904.24", 0x400000, 0x400000, CRC(21a91b84) SHA1(cd2d7231b8652ff38376b672c47127ce054d1f32) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( vs2v991 ) /* Step 2.0 */
@@ -3478,16 +3478,16 @@ ROM_START( vs2v991 ) /* Step 2.0 */
ROM_LOAD( "mpr-21514.24", 0x400000, 0x400000, CRC(6cedd292) SHA1(c1f44715697a8bac9d39926bcd6558ec9a9b2319) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0245-COM Model 3
ROM_PARAMETER( ":315_5881:key", "29222ac8" )
@@ -3556,16 +3556,16 @@ ROM_START( vs299b ) /* Step 2.0 */
ROM_LOAD( "mpr-21514.24", 0x400000, 0x400000, CRC(6cedd292) SHA1(c1f44715697a8bac9d39926bcd6558ec9a9b2319) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0245-COM Model 3
ROM_PARAMETER( ":315_5881:key", "29222ac8" )
@@ -3634,16 +3634,16 @@ ROM_START( vs299a ) /* Step 2.0 */
ROM_LOAD( "mpr-21514.24", 0x400000, 0x400000, CRC(6cedd292) SHA1(c1f44715697a8bac9d39926bcd6558ec9a9b2319) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0245-COM Model 3
ROM_PARAMETER( ":315_5881:key", "09222ac8" )
@@ -3712,16 +3712,16 @@ ROM_START( vs299 ) /* Step 2.0 */
ROM_LOAD( "mpr-21514.24", 0x400000, 0x400000, CRC(6cedd292) SHA1(c1f44715697a8bac9d39926bcd6558ec9a9b2319) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0245-COM Model 3
ROM_PARAMETER( ":315_5881:key", "29222ac8" )
@@ -3791,16 +3791,16 @@ ROM_START( von2 ) /* Step 2.0 */
ROM_LOAD( "mpr-20666.25", 0xc00000, 0x400000, CRC(3ecb2606) SHA1(a38d1f61933c8873deaff0a913c657b768f9783d) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0234-COM Model 3
ROM_PARAMETER( ":315_5881:key", "292a0e97" )
@@ -3870,16 +3870,16 @@ ROM_START( von254g ) /* Step 2.0, Sega game ID# is 833-13789 */
ROM_LOAD( "mpr-20666.25", 0xc00000, 0x400000, CRC(3ecb2606) SHA1(a38d1f61933c8873deaff0a913c657b768f9783d) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0234-COM Model 3
ROM_PARAMETER( ":315_5881:key", "292a0e97" )
@@ -3945,16 +3945,16 @@ ROM_START( skichamp ) /* Step 2.0 */
ROM_LOAD( "mpr-20335.24", 0x400000, 0x400000, CRC(7300d0a2) SHA1(50aac607e4570883cfc7bd0e1765fd8dfa1f9966) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( swtrilgy ) /* Step 2.1, Sega game ID# is 833-13586, ROM board ID# 834-13587 STAR WARS TRILOGY, Security board ID# 837-13588-COM */
@@ -4020,10 +4020,10 @@ ROM_START( swtrilgy ) /* Step 2.1, Sega game ID# is 833-13586, ROM board ID# 8
ROM_LOAD( "mpr-21378.24", 0xc00000, 0x400000, CRC(1fcf715e) SHA1(9706f36e7a61d885d34a6974311a2410fe3d6760) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "ffcpu", 0 ) /* force feedback controller prg */
ROM_LOAD( "epr-21119.ic8", 0x00000, 0x10000, CRC(65082b14) SHA1(6c3c192dd6ef3780c6202dd63fc6086328928818) )
@@ -4095,10 +4095,10 @@ ROM_START( swtrilgya ) /* Step 2.1, Sega game ID# is 833-13586, ROM board ID# 8
ROM_LOAD( "mpr-21378.24", 0xc00000, 0x400000, CRC(1fcf715e) SHA1(9706f36e7a61d885d34a6974311a2410fe3d6760) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0241-COM Model 3
ROM_PARAMETER( ":315_5881:key", "31272a01" )
@@ -4153,16 +4153,16 @@ ROM_START( dirtdvls ) /* Step 2.1 - Export version, Sega game ID# is 833-13427
ROM_LOAD( "mpr-21032.23", 0x800000, 0x400000, CRC(3d3ff407) SHA1(5e298e24cb3050f8683658cef41ce59948e79166) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0238-COM Model 3
ROM_PARAMETER( ":315_5881:key", "29290f17" )
@@ -4217,16 +4217,16 @@ ROM_START( dirtdvlsa ) /* Step 2.1 - Australia version */
ROM_LOAD( "mpr-21032.23", 0x800000, 0x400000, CRC(3d3ff407) SHA1(5e298e24cb3050f8683658cef41ce59948e79166) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x800000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x800000, 0 )
+ ROM_FILL( 0x000000, 0x800000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0238-COM Model 3
ROM_PARAMETER( ":315_5881:key", "29290f17" )
@@ -4303,10 +4303,10 @@ ROM_START( daytona2 ) /* Step 2.1, ROM board ID# 834-13428 DAYTONA USA2, Secur
ROM_LOAD( "mpr-20890.ic24", 0xc00000, 0x400000, CRC(aac96fa2) SHA1(bc68cd48eae50d3558d3c5a0302a3930639e3019) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
ROM_LOAD( "epr-20985.bin", 0x000000, 0x010000, CRC(b139481d) SHA1(05fca7db7c8b084c53bd157ba3e8296f1a961a99) )
@@ -4386,10 +4386,10 @@ ROM_START( dayto2pe ) /* Step 2.1, Sega game ID# is 833-13610 DAYTONA USA2 SP,
ROM_LOAD( "mpr-20890.ic24", 0xc00000, 0x400000, CRC(aac96fa2) SHA1(bc68cd48eae50d3558d3c5a0302a3930639e3019) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
ROM_LOAD( "epr-20985.bin", 0x000000, 0x010000, CRC(b139481d) SHA1(05fca7db7c8b084c53bd157ba3e8296f1a961a99) )
@@ -4461,10 +4461,10 @@ ROM_START( srally2 ) /* Step 2.0, Sega game ID# is 833-13373, ROM board ID# 8
ROM_LOAD( "mpr-20640.60", 0xc00000, 0x400000, CRC(9eea07b7) SHA1(bdcf136f29e1435c9d82718730ef209d8cfe74d8) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
ROM_LOAD( "epr-20512.bin", 0x000000, 0x010000, CRC(cf64350d) SHA1(f30c8c7b65fb38f7dd63845f12b81388ff3b946d) )
@@ -4524,16 +4524,16 @@ ROM_START( srally2x ) /* Step 2.0 */
ROM_LOAD( "mpr-20485.24", 0x400000, 0x400000, CRC(cfd8c19b) SHA1(3b8cc045cb02b93f9d35b81a48085d4d480d6bff) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
ROM_LOAD( "epr-20512.bin", 0x000000, 0x010000, CRC(cf64350d) SHA1(f30c8c7b65fb38f7dd63845f12b81388ff3b946d) )
@@ -4595,16 +4595,16 @@ ROM_START( harley ) /* Step 2.0, Sega game ID# is 833-13325, ROM board ID# 834-1
ROM_LOAD( "mpr-20376.25", 0xc00000, 0x400000, CRC(deeed366) SHA1(6d4809960c34865374d146605bb3e009394f7a8c) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( harleya ) /* Step 2.0, Sega game ID# is 833-13325, ROM board ID# 834-13326 HARLEY DAVIDSON */
@@ -4663,16 +4663,16 @@ ROM_START( harleya ) /* Step 2.0, Sega game ID# is 833-13325, ROM board ID# 8
ROM_LOAD( "mpr-20376.25", 0xc00000, 0x400000, CRC(deeed366) SHA1(6d4809960c34865374d146605bb3e009394f7a8c) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
ROM_START( fvipers2 ) /* Step 2.0 - Japan version */
@@ -4738,16 +4738,16 @@ ROM_START( fvipers2 ) /* Step 2.0 - Japan version */
ROM_LOAD( "mpr-20579", 0xc00000, 0x400000, CRC(08788436) SHA1(6c9af2cf65e803882d6f4c0d57eb9e95cdeb5818) ) /* IC25 ?? */
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0235-COM Model 3
ROM_PARAMETER( ":315_5881:key", "29260e96" )
@@ -4824,10 +4824,10 @@ ROM_START( spikeout ) /* Step 2.1 */
ROM_LOAD( "mpr-21173.ic24", 0xc00000, 0x400000, CRC(ca7226d6) SHA1(e15c6fb9dee91a42889cef350479b1964bf1e5df) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0240-COM Model 3
ROM_PARAMETER( ":315_5881:key", "292f2b04" )
@@ -4904,10 +4904,10 @@ ROM_START( spikeofe ) /* Step 2.1, Sega game ID# is 833-13746, ROM board ID# 8
ROM_LOAD( "mpr-21652.ic24", 0xc00000, 0x400000, CRC(e7c8c9bf) SHA1(76d8fa89aed86fff4d1ba704aeef96fd2c326bc9) )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0247-COM Model 3
ROM_PARAMETER( ":315_5881:key", "29236fc8" )
@@ -4969,16 +4969,16 @@ ROM_START( eca ) /* Step 2.1 Export version */
ROM_LOAD( "mpr-22890.25", 0xc00000, 0x400000, CRC(b638bd7c) SHA1(ed9c69175fd0ca4c6f22e542b4e68398a6e4ad07) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0265-COM Model 3
ROM_PARAMETER( ":315_5881:key", "2923aa91" )
@@ -5040,16 +5040,16 @@ ROM_START( ecau ) /* Step 2.1, ROM board ID# 834-13946-01 ECA */
ROM_LOAD( "mpr-22890.25", 0xc00000, 0x400000, CRC(b638bd7c) SHA1(ed9c69175fd0ca4c6f22e542b4e68398a6e4ad07) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0265-COM Model 3
ROM_PARAMETER( ":315_5881:key", "2923aa91" )
@@ -5114,16 +5114,16 @@ ROM_START( ecap ) /* Step 2.1 - Proto or Location test - No security dongle */
ROM_LOAD( "mpr-22890.25", 0xc00000, 0x400000, CRC(b638bd7c) SHA1(ed9c69175fd0ca4c6f22e542b4e68398a6e4ad07) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0265-COM Model 3
ROM_PARAMETER( ":315_5881:key", "2923aa91" )
@@ -5173,16 +5173,16 @@ ROM_START( magtruck ) /* Step 2.1, Sega game ID# is 833-13601-01 (Export), ROM
ROM_LOAD( "mpr-21432.25", 0xc00000, 0x400000, CRC(59c0f6df) SHA1(ab1c6fbcb1244c2b56b6967018fceb82d8c5414c) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0243-COM Model 3
ROM_PARAMETER( ":315_5881:key", "29266e45" )
@@ -5244,16 +5244,16 @@ ROM_START( oceanhun ) /* Step 2.0, Sega game ID# is 833-13571, ROM board ID# 8
ROM_LOAD( "mpr-21097.25", 0xc00000, 0x400000, CRC(0d8033fc) SHA1(d849a99d5f906d3a8f07b8f14183af14fd0d96e9) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0242-COM Model 3
ROM_PARAMETER( ":315_5881:key", "292b6a01" )
@@ -5316,16 +5316,16 @@ ROM_START( lamachin ) /* Step 2.0, Sega game ID# is 833-13664, ROM board ID# 8
ROM_LOAD( "mpr-21466.25", 0xc00000, 0x400000, CRC(ca20359e) SHA1(1948f71f7eea27f757f0d508ee1390aeb576a8fa) )
ROM_REGION( 0x20000, "cpu2", 0 ) /* Z80 code */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x1000000, "dsb", 0 ) /* DSB samples */
- ROM_FILL( 0x000000, 0x1000000, 0 )
+ ROM_FILL( 0x000000, 0x1000000, nullptr )
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
// ???? 317-0244-COM Model 3
ROM_PARAMETER( ":315_5881:key", "292a2bc5" )
diff --git a/src/mame/drivers/mogura.cpp b/src/mame/drivers/mogura.cpp
index b4588d14e46..875c0391b72 100644
--- a/src/mame/drivers/mogura.cpp
+++ b/src/mame/drivers/mogura.cpp
@@ -190,7 +190,7 @@ static const gfx_layout tiles8x8_layout =
};
static GFXDECODE_START( mogura )
- GFXDECODE_ENTRY( NULL, 0, tiles8x8_layout, 0, 8 )
+ GFXDECODE_ENTRY( nullptr, 0, tiles8x8_layout, 0, 8 )
GFXDECODE_END
void mogura_state::machine_start()
diff --git a/src/mame/drivers/monty.cpp b/src/mame/drivers/monty.cpp
index 3ac595f9691..3ec54712777 100644
--- a/src/mame/drivers/monty.cpp
+++ b/src/mame/drivers/monty.cpp
@@ -270,7 +270,7 @@ ROM_START( monty )
ROM_LOAD( "monty_main.bin", 0x0000, 0x4000, CRC(720b4f55) SHA1(0106eb88d3fbbf25a745b9b6ee785ba13689d095) ) // 27128
ROM_LOAD( "monty_module1.bin", 0x4000, 0x4000, CRC(2725d8c3) SHA1(8273b9779c0915f9c7c43ea4fb460f43ce036358) ) // 27128
ROM_LOAD( "monty_module2.bin", 0x8000, 0x4000, CRC(db672e47) SHA1(bb14fe86df06cfa4b19625ba417d1a5bc8eae155) ) // 27128
- ROM_FILL(0x1193,1,0) // patch out HALT so we can type in our names
+ ROM_FILL(0x1193,1,nullptr) // patch out HALT so we can type in our names
ROM_END
ROM_START( mmonty )
@@ -278,7 +278,7 @@ ROM_START( mmonty )
ROM_LOAD( "master_monty_main.bin", 0x0000, 0x8000, CRC(bb5ef4d4) SHA1(ba2c759e429f8740df419f9abb60832eddfba8ab) ) // 27C256
ROM_LOAD( "monty_module1.bin", 0x8000, 0x4000, CRC(2725d8c3) SHA1(8273b9779c0915f9c7c43ea4fb460f43ce036358) ) // 27128
ROM_LOAD( "monty_module2.bin", 0xc000, 0x4000, CRC(db672e47) SHA1(bb14fe86df06cfa4b19625ba417d1a5bc8eae155) ) // 27128
- ROM_FILL(0x1487,1,0) // patch out HALT so we can type in our names
+ ROM_FILL(0x1487,1,nullptr) // patch out HALT so we can type in our names
ROM_END
diff --git a/src/mame/drivers/mpu4mdm.cpp b/src/mame/drivers/mpu4mdm.cpp
index 61c53be08a2..ecc6b5ac02e 100644
--- a/src/mame/drivers/mpu4mdm.cpp
+++ b/src/mame/drivers/mpu4mdm.cpp
@@ -235,7 +235,7 @@ ROM_START( m4firebld ) // looks weird, bad dump?
// reports src/mame/drivers/mpu4.c: m4firebld has ROM fba2_6 extending past the defined memory region (bug)
//ROM_LOAD( "fba2_6", 0x0000, 0x010000, CRC(cf16b2d0) SHA1(32249fb15708dfa408c4642be7a41fba7aeda657) )
//ROM_IGNORE(0x070000)
- ROM_COPY( "temp", 0x0000, 0x0000, 0x010000 )
+ ROM_COPY( "temp", nullptr, 0x0000, 0x010000 )
ROM_END
diff --git a/src/mame/drivers/mpz80.cpp b/src/mame/drivers/mpz80.cpp
index 3c72db2940b..0c42707b541 100644
--- a/src/mame/drivers/mpz80.cpp
+++ b/src/mame/drivers/mpz80.cpp
@@ -720,17 +720,17 @@ static MACHINE_CONFIG_START( mpz80, mpz80_state )
MCFG_S100_SLOT_ADD("s100_1", mpz80_s100_cards, "mm65k16s")
MCFG_S100_SLOT_ADD("s100_2", mpz80_s100_cards, "wunderbus")
MCFG_S100_SLOT_ADD("s100_3", mpz80_s100_cards, "dj2db")
- MCFG_S100_SLOT_ADD("s100_4", mpz80_s100_cards, NULL)//"hdcdma")
- MCFG_S100_SLOT_ADD("s100_5", mpz80_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_6", mpz80_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_7", mpz80_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_8", mpz80_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_9", mpz80_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_10", mpz80_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_11", mpz80_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_12", mpz80_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_13", mpz80_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_14", mpz80_s100_cards, NULL)
+ MCFG_S100_SLOT_ADD("s100_4", mpz80_s100_cards, nullptr)//"hdcdma")
+ MCFG_S100_SLOT_ADD("s100_5", mpz80_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_6", mpz80_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_7", mpz80_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_8", mpz80_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_9", mpz80_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_10", mpz80_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_11", mpz80_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_12", mpz80_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_13", mpz80_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_14", mpz80_s100_cards, nullptr)
// internal ram
MCFG_RAM_ADD(RAM_TAG)
diff --git a/src/mame/drivers/mquake.cpp b/src/mame/drivers/mquake.cpp
index 77c38c9db88..bbe0fc9cf4b 100644
--- a/src/mame/drivers/mquake.cpp
+++ b/src/mame/drivers/mquake.cpp
@@ -362,7 +362,7 @@ MACHINE_CONFIG_END
ROM_START( mquake )
ROM_REGION(0x80000, "kickstart", 0)
ROM_LOAD16_WORD_SWAP("315093-01.u2", 0x00000, 0x40000, CRC(a6ce1636) SHA1(11f9e62cf299f72184835b7b2a70a16333fc0d88))
- ROM_COPY("kickstart", 0x00000, 0x40000, 0x40000)
+ ROM_COPY("kickstart", nullptr, 0x40000, 0x40000)
ROM_REGION(0xc0000, "user2", 0)
ROM_LOAD16_BYTE( "rom0l.bin", 0x00000, 0x10000, CRC(60c35ec3) SHA1(84fe88af54903cbd46044ef52bb50e8f94a94dcd) )
diff --git a/src/mame/drivers/mrgame.cpp b/src/mame/drivers/mrgame.cpp
index d6d0b162c0f..7d03c55d687 100644
--- a/src/mame/drivers/mrgame.cpp
+++ b/src/mame/drivers/mrgame.cpp
@@ -432,7 +432,7 @@ UINT32 mrgame_state::screen_update_mrgame(screen_device &screen, bitmap_ind16 &b
}
// scroll each column as needed
- copyscrollbitmap(bitmap,*m_tile_bitmap,0,0,32,scrolly,cliprect);
+ copyscrollbitmap(bitmap,*m_tile_bitmap,0,nullptr,32,scrolly,cliprect);
// sprites
diff --git a/src/mame/drivers/msx.cpp b/src/mame/drivers/msx.cpp
index 9a73ece450d..4202b20f351 100644
--- a/src/mame/drivers/msx.cpp
+++ b/src/mame/drivers/msx.cpp
@@ -6665,7 +6665,7 @@ ROM_START (hbf900)
ROM_LOAD ("f900ext.rom", 0x8000, 0x4000, CRC(43e7a7fc) SHA1(0fbd45ef3dd7bb82d4c31f1947884f411f1ca344))
ROM_LOAD ("f900disk.rom", 0xc000, 0x4000, CRC(f83d0ea6) SHA1(fc760d1d7b16370abc7eea39955f230b95b37df6))
ROM_LOAD ("f900util.rom", 0x10000, 0x4000, CRC(bc6c7c66) SHA1(558b7383544542cf7333700ff90c3efbf93ba2a3))
- ROM_FILL (0x14000, 0x4000, 0)
+ ROM_FILL (0x14000, 0x4000, nullptr)
ROM_REGION(0x20000, "kanji", 0)
ROM_LOAD ("f900kfn.rom", 0, 0x20000, CRC(5a59926e) SHA1(6acaf2eeb57f65f7408235d5e07b7563229de799))
@@ -6699,7 +6699,7 @@ ROM_START (hbf900a)
ROM_LOAD ("f900ext.rom", 0x8000, 0x4000, CRC(43e7a7fc) SHA1(0fbd45ef3dd7bb82d4c31f1947884f411f1ca344))
ROM_LOAD ("f900disa.rom", 0xc000, 0x4000, CRC(54c73ad6) SHA1(12f2cc79b3d09723840bae774be48c0d721ec1c6))
ROM_LOAD ("f900util.rom", 0x10000, 0x4000, CRC(bc6c7c66) SHA1(558b7383544542cf7333700ff90c3efbf93ba2a3))
- ROM_FILL (0x14000, 0x4000, 0)
+ ROM_FILL (0x14000, 0x4000, nullptr)
ROM_REGION(0x20000, "kanji", 0)
ROM_LOAD ("f900kfn.rom", 0, 0x20000, CRC(5a59926e) SHA1(6acaf2eeb57f65f7408235d5e07b7563229de799))
diff --git a/src/mame/drivers/mtx.cpp b/src/mame/drivers/mtx.cpp
index 636a48b1e59..64ffb944e70 100644
--- a/src/mame/drivers/mtx.cpp
+++ b/src/mame/drivers/mtx.cpp
@@ -242,7 +242,7 @@ WRITE_LINE_MEMBER(mtx_state::ctc_trg2_w)
static const z80_daisy_config mtx_daisy_chain[] =
{
{ Z80CTC_TAG },
- { NULL }
+ { nullptr }
};
/*-------------------------------------------------
@@ -253,7 +253,7 @@ static const z80_daisy_config rs128_daisy_chain[] =
{
{ Z80CTC_TAG },
{ Z80DART_TAG },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/multigam.cpp b/src/mame/drivers/multigam.cpp
index a4b9c5d3363..32c79e404dd 100644
--- a/src/mame/drivers/multigam.cpp
+++ b/src/mame/drivers/multigam.cpp
@@ -1267,7 +1267,7 @@ ROM_START( multigam )
ROM_LOAD( "8.bin", 0x00000, 0x20000, CRC(509c0e94) SHA1(9e87c74e76afe6c3a7ba194439434f54e2c879eb) )
ROM_LOAD( "9.bin", 0x20000, 0x20000, CRC(48416f20) SHA1(f461fcbff6d2fa4774d64c26475089d1aeea7fb5) )
ROM_LOAD( "10.bin", 0x40000, 0x20000, CRC(869d1661) SHA1(ac155bd24ebfea8e064859e1a05317001286f9ae) )
- ROM_FILL( 0x60000, 0x20000, 0x00 )
+ ROM_FILL( 0x60000, 0x20000, nullptr )
ROM_END
ROM_START( multigmb )
@@ -1286,7 +1286,7 @@ ROM_START( multigmb )
ROM_LOAD( "8.bin", 0x00000, 0x20000, CRC(509c0e94) SHA1(9e87c74e76afe6c3a7ba194439434f54e2c879eb) )
ROM_LOAD( "9.bin", 0x20000, 0x20000, CRC(48416f20) SHA1(f461fcbff6d2fa4774d64c26475089d1aeea7fb5) )
ROM_LOAD( "10.bin", 0x40000, 0x20000, CRC(869d1661) SHA1(ac155bd24ebfea8e064859e1a05317001286f9ae) )
- ROM_FILL( 0x60000, 0x20000, 0x00 )
+ ROM_FILL( 0x60000, 0x20000, nullptr )
ROM_END
ROM_START( multigm2 )
@@ -1325,7 +1325,7 @@ ROM_START( multigm3 )
ROM_REGION( 0x80000, "gfx1", 0 )
ROM_LOAD( "mg3-7.bin", 0x00000, 0x20000, CRC(d8308cdb) SHA1(7bfb864611c32cf3740cfd650bfe275513d511d7) )
ROM_LOAD( "mg3-8.bin", 0x20000, 0x20000, CRC(b4a53b9d) SHA1(63d8901149d0d9b69f28bfc096f7932448542032) )
- ROM_FILL( 0x40000, 0x20000, 0x00 )
+ ROM_FILL( 0x40000, 0x20000, nullptr )
ROM_LOAD( "mg3-9.bin", 0x60000, 0x20000, CRC(a0ae2b4b) SHA1(5e026ad8a6b2a8120e386471d5178625bda04525) )
ROM_END
@@ -1351,7 +1351,7 @@ ROM_END
ROM_START( sgmt1 )
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "sg1_rom1.bin", 0x0000, 0x10000, CRC(0fcec01d) SHA1(c622fdd99827b8ff8ffc4658363d454fdfb6ec61) )
- ROM_COPY("maincpu", 0x0000, 0x10000, 0x10000)
+ ROM_COPY("maincpu", nullptr, 0x10000, 0x10000)
ROM_REGION( 0x400000, "user1", 0 )
ROM_LOAD( "sg1_rom2.bin", 0x000000, 0x80000, CRC(7ee249f0) SHA1(eeb40ec7e9cd2afd03b5da01e985c5cfe650c8f8) )
@@ -1366,7 +1366,7 @@ ROM_END
ROM_START( supergm3 )
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "sg3.ic36", 0x0000, 0x10000, CRC(f79dd9ef) SHA1(31b84097f4f14bdb6e87a7a624e9974abe680c80) )
- ROM_COPY("maincpu", 0x0000, 0x10000, 0x10000)
+ ROM_COPY("maincpu", nullptr, 0x10000, 0x10000)
ROM_REGION( 0x400000, "user1", 0 )
ROM_LOAD( "sg3.rom18", 0x000000, 0x80000, CRC(aa7b8631) SHA1(4d6695da2baef7cc5b0d3f9f620f6b49d8f89e23) )
diff --git a/src/mame/drivers/mwarr.cpp b/src/mame/drivers/mwarr.cpp
index aff1fae0552..821a4fbb790 100644
--- a/src/mame/drivers/mwarr.cpp
+++ b/src/mame/drivers/mwarr.cpp
@@ -637,13 +637,13 @@ ROM_START( mwarr )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x100000, "oki2", 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/myb3k.cpp b/src/mame/drivers/myb3k.cpp
index 96677868c1e..a040bec8d73 100644
--- a/src/mame/drivers/myb3k.cpp
+++ b/src/mame/drivers/myb3k.cpp
@@ -128,7 +128,7 @@ WRITE8_MEMBER( myb3k_state::myb3k_video_mode_w )
WRITE8_MEMBER( myb3k_state::myb3k_fdc_output_w )
{
/* TODO: complete guesswork! (it just does a 0x24 -> 0x20 in there) */
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (data & 1) floppy = m_floppy0;
if (data & 2) floppy = m_floppy1;
diff --git a/src/mame/drivers/mz2000.cpp b/src/mame/drivers/mz2000.cpp
index 688956ee405..b44ae2166a2 100644
--- a/src/mame/drivers/mz2000.cpp
+++ b/src/mame/drivers/mz2000.cpp
@@ -41,7 +41,7 @@ public:
mz2000_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_cass(*this, "cassette"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_maincpu(*this, "maincpu"),
m_mb8877a(*this, "mb8877a"),
m_floppy0(*this, "mb8877a:0"),
@@ -635,7 +635,7 @@ READ8_MEMBER(mz2000_state::mz2000_portb_r)
*/
UINT8 res = 0x80;
- if(m_cass->get_image() != NULL)
+ if(m_cass->get_image() != nullptr)
{
res |= (m_cass->input() > 0.0038) ? 0x40 : 0x00;
res |= ((m_cass->get_state() & CASSETTE_MASK_UISTATE) == CASSETTE_PLAY) ? 0x00 : 0x20;
diff --git a/src/mame/drivers/mz2500.cpp b/src/mame/drivers/mz2500.cpp
index 19448ccd16f..980b788df4b 100644
--- a/src/mame/drivers/mz2500.cpp
+++ b/src/mame/drivers/mz2500.cpp
@@ -76,7 +76,7 @@ public:
m_floppy1(*this, "mb8877a:1"),
m_floppy2(*this, "mb8877a:2"),
m_floppy3(*this, "mb8877a:3"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_palette(*this, "palette")
{ }
diff --git a/src/mame/drivers/n64.cpp b/src/mame/drivers/n64.cpp
index 645483f470a..1d4e47a4273 100644
--- a/src/mame/drivers/n64.cpp
+++ b/src/mame/drivers/n64.cpp
@@ -284,7 +284,7 @@ DEVICE_IMAGE_LOAD_MEMBER(n64_mess_state,n64_cart)
n64_periphs *periphs = machine().device<n64_periphs>("rcp");
UINT8 *cart = memregion("user2")->base();
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
length = image.fread(cart, 0x4000000);
}
diff --git a/src/mame/drivers/namcona1.cpp b/src/mame/drivers/namcona1.cpp
index a67f2a60de2..690e9926c4c 100644
--- a/src/mame/drivers/namcona1.cpp
+++ b/src/mame/drivers/namcona1.cpp
@@ -892,7 +892,7 @@ static const gfx_layout shape_layout =
static GFXDECODE_START( namcona1 )
GFXDECODE_RAM( "cgram", 0, cg_layout_8bpp, 0, 0x2000/256 )
GFXDECODE_RAM( "cgram", 0, cg_layout_4bpp, 0, 0x2000/16 )
- GFXDECODE_RAM( NULL, 0, shape_layout, 0, 0x2000/2 )
+ GFXDECODE_RAM( nullptr, 0, shape_layout, 0, 0x2000/2 )
GFXDECODE_END
/***************************************************************************/
diff --git a/src/mame/drivers/namcos10.cpp b/src/mame/drivers/namcos10.cpp
index 39e37d3b9d7..8d7607972a7 100644
--- a/src/mame/drivers/namcos10.cpp
+++ b/src/mame/drivers/namcos10.cpp
@@ -572,7 +572,7 @@ ADDRESS_MAP_END
WRITE16_MEMBER(namcos10_state::crypto_switch_w)
{
printf("crypto_switch_w: %04x\n", data);
- if (decrypter == 0)
+ if (decrypter == nullptr)
return;
if (BIT(data, 15) != 0)
@@ -633,7 +633,7 @@ READ16_MEMBER( namcos10_state::nand_data_r )
/* printf( "data<-%08x (%08x)\n", data, nand_address ); */
nand_address++;
- if (decrypter == 0)
+ if (decrypter == nullptr)
return data;
if (decrypter->is_active())
diff --git a/src/mame/drivers/namcos11.cpp b/src/mame/drivers/namcos11.cpp
index 682fccae8f0..fc70c932550 100644
--- a/src/mame/drivers/namcos11.cpp
+++ b/src/mame/drivers/namcos11.cpp
@@ -535,7 +535,7 @@ void namcos11_state::driver_start()
}
memory_region *bankedroms = memregion( "bankedroms" );
- if( bankedroms != NULL )
+ if( bankedroms != nullptr )
{
UINT8 *base = bankedroms->base();
int entries = bankedroms->bytes() / ( 1024 * 1024 );
@@ -545,7 +545,7 @@ void namcos11_state::driver_start()
for( int bank = 0; bank < 8; bank++ )
{
m_bank[ bank ] = membank( bankname[ bank ] );
- if( m_bank[ bank ] != NULL )
+ if( m_bank[ bank ] != nullptr )
{
m_bank[ bank ]->configure_entries( 0, entries, base, 1024 * 1024 );
m_bank[ bank ]->set_entry( 0 );
diff --git a/src/mame/drivers/namcos12.cpp b/src/mame/drivers/namcos12.cpp
index db8652c0ffa..e4a10d76127 100644
--- a/src/mame/drivers/namcos12.cpp
+++ b/src/mame/drivers/namcos12.cpp
@@ -2607,7 +2607,7 @@ ROM_START( sws99 )
ROM_REGION32_LE( 0x2000000, "user2", 0 ) /* main data */
ROM_LOAD( "ss91rom0.9", 0x0000000, 0x800000, CRC(db5bc50d) SHA1(b8b59f6db3a374277871c39b3657cb193525e558) )
ROM_LOAD( "ss91rom1.10", 0x0800000, 0x800000, CRC(4d71f29f) SHA1(3ccc8410d383bfd9fde44574ebb9c24a235cc734) )
- ROM_FILL( 0x1000000, 0x800000, 0 )
+ ROM_FILL( 0x1000000, 0x800000, nullptr )
ROM_LOAD16_BYTE( "ss91fl3l.7", 0x1800000, 0x200000, CRC(61efd65b) SHA1(1e97d5cd51bf778995c3e568ac7e1d3514264d48) )
ROM_LOAD16_BYTE( "ss91fl3h.8", 0x1800001, 0x200000, CRC(7f3c8c54) SHA1(b473a503cc5d532922780139ab3cab974d3df65b) )
ROM_LOAD16_BYTE( "ss91fl4l.5", 0x1c00000, 0x200000, CRC(a6af9511) SHA1(63f14f4fc2b210348e41cdfa552a7a7c86fb1b99) )
diff --git a/src/mame/drivers/namcos22.cpp b/src/mame/drivers/namcos22.cpp
index b3f8443026a..cbc60e9fca9 100644
--- a/src/mame/drivers/namcos22.cpp
+++ b/src/mame/drivers/namcos22.cpp
@@ -3344,7 +3344,7 @@ static INPUT_PORTS_START( alpiner )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START ) // Decision / View Change
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_16WAY // L Selection
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_16WAY // R Selection
- PORT_BIT( 0x80, IP_ACTIVE_HIGH,IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, namcos22_state,alpine_motor_read, (void *)0) // steps are free
+ PORT_BIT( 0x80, IP_ACTIVE_HIGH,IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, namcos22_state,alpine_motor_read, (void *)nullptr) // steps are free
PORT_START("MCUP5B")
PORT_BIT( 0x01, IP_ACTIVE_HIGH,IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, namcos22_state,alpine_motor_read, (void *)1) // steps are locked
@@ -3712,12 +3712,12 @@ static const gfx_layout namcos22_cg_layout =
#undef XOR
static GFXDECODE_START( namcos22 )
- GFXDECODE_ENTRY( NULL, 0, namcos22_cg_layout, 0, 0x800 )
+ GFXDECODE_ENTRY( nullptr, 0, namcos22_cg_layout, 0, 0x800 )
GFXDECODE_ENTRY( "textile", 0, texture_tile_layout, 0, 0x80 )
GFXDECODE_END
static GFXDECODE_START( super )
- GFXDECODE_ENTRY( NULL, 0, namcos22_cg_layout, 0, 0x800 )
+ GFXDECODE_ENTRY( nullptr, 0, namcos22_cg_layout, 0, 0x800 )
GFXDECODE_ENTRY( "textile", 0, texture_tile_layout, 0, 0x80 )
GFXDECODE_ENTRY( "sprite", 0, sprite_layout, 0, 0x80 )
GFXDECODE_END
diff --git a/src/mame/drivers/namcos23.cpp b/src/mame/drivers/namcos23.cpp
index 5bdda44220d..8b6a602b2df 100644
--- a/src/mame/drivers/namcos23.cpp
+++ b/src/mame/drivers/namcos23.cpp
@@ -3523,7 +3523,7 @@ static const gfx_layout namcos23_cg_layout =
}; /* cg_layout */
static GFXDECODE_START( namcos23 )
- GFXDECODE_ENTRY( NULL, 0, namcos23_cg_layout, 0, 0x800 )
+ GFXDECODE_ENTRY( nullptr, 0, namcos23_cg_layout, 0, 0x800 )
GFXDECODE_END
diff --git a/src/mame/drivers/namcos86.cpp b/src/mame/drivers/namcos86.cpp
index 40d9da3d67b..df44c853ff2 100644
--- a/src/mame/drivers/namcos86.cpp
+++ b/src/mame/drivers/namcos86.cpp
@@ -194,7 +194,7 @@ WRITE8_MEMBER(namcos86_state::bankswitch1_ext_w)
{
UINT8 *base = memregion("user1")->base();
- if (base == 0) return;
+ if (base == nullptr) return;
membank("bank1")->set_entry(data & 0x1f);
}
@@ -1232,11 +1232,11 @@ ROM_START( hopmappy )
ROM_REGION( 0x06000, "gfx1", 0 )
ROM_LOAD( "hm1_6.7r", 0x00000, 0x04000, CRC(fd0e8887) SHA1(b76737d22bb1c1ae4d700ea6796e8d91f6ffa275) ) /* plane 1,2 */
- ROM_FILL( 0x04000, 0x02000, 0 ) /* no plane 3 */
+ ROM_FILL( 0x04000, 0x02000, nullptr ) /* no plane 3 */
ROM_REGION( 0x06000, "gfx2", 0 )
ROM_LOAD( "hm1_5.4r", 0x00000, 0x04000, CRC(9c4f31ae) SHA1(1c7072355d6f98b8e8554da19eab0512fdd9e2e1) ) /* plane 1,2 */
- ROM_FILL( 0x04000, 0x02000, 0 ) /* no plane 3 */
+ ROM_FILL( 0x04000, 0x02000, nullptr ) /* no plane 3 */
ROM_REGION( 0x40000, "gfx3", 0 )
ROM_LOAD( "hm1_4.12h", 0x00000, 0x8000, CRC(78719c52) SHA1(06d7bb9f29ccdbf563b3bf13c0290510b26e186f) )
diff --git a/src/mame/drivers/nanos.cpp b/src/mame/drivers/nanos.cpp
index 6552b696a98..4497418a6de 100644
--- a/src/mame/drivers/nanos.cpp
+++ b/src/mame/drivers/nanos.cpp
@@ -140,7 +140,7 @@ static const z80_daisy_config nanos_daisy_chain[] =
{ "z80ctc_0" },
{ "z80sio_1" },
{ "z80ctc_1" },
- { NULL }
+ { nullptr }
};
static ADDRESS_MAP_START( nanos_io , AS_IO, 8, nanos_state)
diff --git a/src/mame/drivers/naomi.cpp b/src/mame/drivers/naomi.cpp
index 61a1fd02870..62ed9cabc61 100644
--- a/src/mame/drivers/naomi.cpp
+++ b/src/mame/drivers/naomi.cpp
@@ -2689,7 +2689,7 @@ MACHINE_CONFIG_START( naomi_aw_base, naomi_state )
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( naomi_base, naomi_aw_base )
- MCFG_MIE_ADD("mie", XTAL_32MHz/2, "maple_dc", 0, 0, 0, 0, ":MIE.3", 0, ":MIE.5", 0, 0) // Actual frequency unknown, most likely 1/2 of 32MHz XTAL or even 2/3 (yes, 21MHz Z80 core)
+ MCFG_MIE_ADD("mie", XTAL_32MHz/2, "maple_dc", 0, nullptr, nullptr, nullptr, ":MIE.3", nullptr, ":MIE.5", nullptr, nullptr) // Actual frequency unknown, most likely 1/2 of 32MHz XTAL or even 2/3 (yes, 21MHz Z80 core)
MCFG_SEGA_837_13551_DEVICE_ADD("837_13551", "mie", ":TILT", ":P1", ":P2", ":A0", ":A1", ":A2", ":A3", ":A4", ":A5", ":A6", ":A7", ":OUTPUT")
MCFG_EEPROM_SERIAL_93C46_8BIT_ADD("mie_eeprom")
diff --git a/src/mame/drivers/nascom1.cpp b/src/mame/drivers/nascom1.cpp
index 3ac6bc7c1d6..8580a4b78d7 100644
--- a/src/mame/drivers/nascom1.cpp
+++ b/src/mame/drivers/nascom1.cpp
@@ -219,7 +219,7 @@ DEVICE_IMAGE_LOAD_MEMBER( nascom_state, nascom1_cassette )
DEVICE_IMAGE_UNLOAD_MEMBER( nascom_state, nascom1_cassette )
{
- m_tape_image = NULL;
+ m_tape_image = nullptr;
m_tape_size = m_tape_index = 0;
}
@@ -261,7 +261,7 @@ SNAPSHOT_LOAD_MEMBER( nascom_state, nascom1 )
int nascom2_state::load_cart(device_image_interface &image, generic_slot_device *slot, int slot_id)
{
// loading directly from file
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
if (slot->length() > 0x1000)
{
@@ -291,19 +291,19 @@ int nascom2_state::load_cart(device_image_interface &image, generic_slot_device
UINT8 *region_c000 = image.get_software_region("c000");
UINT8 *region_d000 = image.get_software_region("d000");
- if (region_b000 != NULL)
+ if (region_b000 != nullptr)
{
UINT32 size = image.get_software_region_length("b000");
m_maincpu->space(AS_PROGRAM).install_rom(0xb000, 0xb000 + size - 1, region_b000);
}
- if (region_c000 != NULL)
+ if (region_c000 != nullptr)
{
UINT32 size = image.get_software_region_length("c000");
m_maincpu->space(AS_PROGRAM).install_rom(0xc000, 0xc000 + size - 1, region_c000);
}
- if (region_d000 != NULL)
+ if (region_d000 != nullptr)
{
UINT32 size = image.get_software_region_length("d000");
m_maincpu->space(AS_PROGRAM).install_rom(0xd000, 0xd000 + size - 1, region_d000);
@@ -705,10 +705,10 @@ static MACHINE_CONFIG_DERIVED_CLASS( nascom2, nascom1, nascom2_state )
// nasbus expansion bus
MCFG_NASBUS_ADD(NASBUS_TAG)
MCFG_NASBUS_RAM_DISABLE_HANDLER(WRITELINE(nascom2_state, ram_disable_w))
- MCFG_NASBUS_SLOT_ADD("nasbus1", nasbus_slot_cards, NULL)
- MCFG_NASBUS_SLOT_ADD("nasbus2", nasbus_slot_cards, NULL)
- MCFG_NASBUS_SLOT_ADD("nasbus3", nasbus_slot_cards, NULL)
- MCFG_NASBUS_SLOT_ADD("nasbus4", nasbus_slot_cards, NULL)
+ MCFG_NASBUS_SLOT_ADD("nasbus1", nasbus_slot_cards, nullptr)
+ MCFG_NASBUS_SLOT_ADD("nasbus2", nasbus_slot_cards, nullptr)
+ MCFG_NASBUS_SLOT_ADD("nasbus3", nasbus_slot_cards, nullptr)
+ MCFG_NASBUS_SLOT_ADD("nasbus4", nasbus_slot_cards, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED_CLASS( nascom2c, nascom2, nascom2_state )
diff --git a/src/mame/drivers/nbmj9195.cpp b/src/mame/drivers/nbmj9195.cpp
index 1c335c0bf22..c670df4dbf0 100644
--- a/src/mame/drivers/nbmj9195.cpp
+++ b/src/mame/drivers/nbmj9195.cpp
@@ -2665,13 +2665,13 @@ INPUT_PORTS_END
static const z80_daisy_config daisy_chain_main[] =
{
TMPZ84C011_DAISY_INTERNAL,
- { NULL }
+ { nullptr }
};
static const z80_daisy_config daisy_chain_sound[] =
{
TMPZ84C011_DAISY_INTERNAL,
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/nc.cpp b/src/mame/drivers/nc.cpp
index 7bf13f6d188..37901ff622d 100644
--- a/src/mame/drivers/nc.cpp
+++ b/src/mame/drivers/nc.cpp
@@ -571,7 +571,7 @@ void nc_state::nc_sound_update(int channel)
int on;
int frequency;
int period;
- beep_device *beeper_device = NULL;
+ beep_device *beeper_device = nullptr;
switch(channel)
{
@@ -1444,7 +1444,7 @@ static MACHINE_CONFIG_START( nc100, nc_state )
MCFG_RP5C01_OUT_ALARM_CB(WRITELINE(nc_state, nc100_tc8521_alarm_callback))
/* cartridge */
- MCFG_GENERIC_CARTSLOT_ADD("cardslot", generic_plain_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("cardslot", generic_plain_slot, nullptr)
MCFG_GENERIC_LOAD(nc_state, nc_pcmcia_card)
MCFG_GENERIC_UNLOAD(nc_state, nc_pcmcia_card)
@@ -1460,7 +1460,7 @@ MACHINE_CONFIG_END
static const floppy_format_type ibmpc_floppy_formats[] = {
FLOPPY_PC_FORMAT,
FLOPPY_MFI_FORMAT,
- NULL
+ nullptr
};
static SLOT_INTERFACE_START( ibmpc_floppies )
diff --git a/src/mame/drivers/neogeo_noslot.cpp b/src/mame/drivers/neogeo_noslot.cpp
index aac77ba8640..b3436446beb 100644
--- a/src/mame/drivers/neogeo_noslot.cpp
+++ b/src/mame/drivers/neogeo_noslot.cpp
@@ -222,7 +222,7 @@ static INPUT_PORTS_START( kizuna4p )
PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Players ) ) PORT_DIPLOCATION("SW:2")
PORT_DIPSETTING( 0x0002, "2" )
PORT_DIPSETTING( 0x0000, "4" )
- PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state, kizuna4p_controller_r, (void *)0)
+ PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state, kizuna4p_controller_r, (void *)nullptr)
PORT_MODIFY("P2")
PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state, kizuna4p_controller_r, (void *)1)
@@ -282,7 +282,7 @@ static INPUT_PORTS_START( irrmaze )
PORT_INCLUDE( neogeo )
PORT_MODIFY("P1/DSW")
- PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state,multiplexed_controller_r, (void *)0)
+ PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state,multiplexed_controller_r, (void *)nullptr)
PORT_MODIFY("P2")
PORT_BIT( 0x0fff, IP_ACTIVE_LOW, IPT_UNUSED )
@@ -307,7 +307,7 @@ static INPUT_PORTS_START( popbounc )
PORT_INCLUDE( neogeo )
PORT_MODIFY("P1/DSW")
- PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state,multiplexed_controller_r, (void *)0)
+ PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state,multiplexed_controller_r, (void *)nullptr)
PORT_MODIFY("P2")
PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state,multiplexed_controller_r, (void *)1)
@@ -2935,7 +2935,7 @@ ROM_START( zupapa ) /* Original Version - Encrypted GFX */ /* MVS ONLY RELEASE *
/* The Encrypted Boards do _not_ have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -5792,7 +5792,7 @@ ROM_START( kof99 ) /* Original Version - Encrypted Code & GFX */ /* MVS VERSION
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -5828,7 +5828,7 @@ ROM_START( kof99h ) /* Original Version - Encrypted Code & GFX */ /* AES VERSION
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -5867,7 +5867,7 @@ ROM_START( kof99e ) /* Original Version - Encrypted Code & GFX */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -5902,7 +5902,7 @@ ROM_START( kof99k ) /* Original Version - Encrypted GFX */ /* KOREAN VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -5974,7 +5974,7 @@ ROM_START( ganryu ) /* Original Version - Encrypted GFX */ /* MVS ONLY RELEASE *
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6011,7 +6011,7 @@ ROM_START( garou ) /* Original Version - Encrypted GFX */ /* MVS VERSION - later
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6047,7 +6047,7 @@ ROM_START( garouh ) /* Original Version - Encrypted GFX */ /* MVS AND AES VERSIO
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6116,7 +6116,7 @@ ROM_START( s1945p ) /* Original Version, Encrypted GFX Roms */ /* MVS ONLY RELEA
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6156,7 +6156,7 @@ ROM_START( preisle2 ) /* Original Version, Encrypted GFX */ /* MVS ONLY RELEASE
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6200,7 +6200,7 @@ ROM_START( mslug3 ) /* Original Version - Encrypted Code & GFX */ /* revision 20
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6237,7 +6237,7 @@ ROM_START( mslug3h ) /* Original Version - Encrypted GFX */ /* revision 2000.3.1
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6284,7 +6284,7 @@ ROM_START( kof2000 ) /* Original Version, Encrypted Code + Sound + GFX Roms */ /
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6319,7 +6319,7 @@ ROM_START( kof2000n ) /* Original Version, Encrypted Sound + GFX Roms */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6365,7 +6365,7 @@ ROM_START( bangbead ) /* Original Version - Encrypted GFX */ /* MVS ONLY RELEASE
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6397,7 +6397,7 @@ ROM_START( nitd ) /* Original Version - Encrypted GFX */ /* MVS ONLY RELEASE */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6431,7 +6431,7 @@ ROM_START( sengoku3 ) /* Original Version - Encrypted GFX */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6471,7 +6471,7 @@ ROM_START( kof2001 ) /* MVS VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6507,7 +6507,7 @@ ROM_START( kof2001h ) /* AES VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6554,7 +6554,7 @@ ROM_START( mslug4 ) /* Original Version - Encrypted GFX */ /* MVS VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6587,7 +6587,7 @@ ROM_START( mslug4h ) /* Original Version - Encrypted GFX */ /* AES VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6628,7 +6628,7 @@ ROM_START( rotd ) /* Encrypted Set */ /* MVS VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6671,7 +6671,7 @@ ROM_START( kof2002 ) /* Encrypted Set */ /* MVS AND AES VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6714,7 +6714,7 @@ ROM_START( matrim ) /* Encrypted Set */ /* MVS AND AES VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6755,7 +6755,7 @@ ROM_START( pnyaa ) /* Encrypted Set */ /* MVS ONLY RELEASE */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6791,7 +6791,7 @@ ROM_START( mslug5 ) /* Encrypted Set */ /* MVS VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6827,7 +6827,7 @@ ROM_START( mslug5h ) /* Encrypted Set */ /* AES release of the game but is also
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6870,7 +6870,7 @@ ROM_START( svc ) /* Encrypted Set */ /* MVS AND AES VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6911,7 +6911,7 @@ ROM_START( samsho5 ) /* Encrypted Set */ /* MVS VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6946,7 +6946,7 @@ ROM_START( samsho5h ) /* Encrypted Set, Alternate Set */ /* AES VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -6990,7 +6990,7 @@ ROM_START( kof2003 ) /* Encrypted Code + Sound + GFX Roms */ /* MVS VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7027,7 +7027,7 @@ ROM_START( kof2003h ) /* Encrypted Code + Sound + GFX Roms */ /* AES VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7070,7 +7070,7 @@ ROM_START( samsh5sp ) /* Encrypted Set */ /* MVS VERSION */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7118,7 +7118,7 @@ ROM_START( samsh5sph ) /* Encrypted Set */ /* AES VERSION, 2nd bugfix release */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7154,7 +7154,7 @@ ROM_START( samsh5spho ) /* Encrypted Set */ /* AES VERSION, 1st release */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7204,7 +7204,7 @@ ROM_START( jockeygp ) /* MVS ONLY RELEASE */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7232,7 +7232,7 @@ ROM_START( jockeygpa ) /* MVS ONLY RELEASE */
/* The Encrypted Boards do not have an s1 rom, data for it comes from the Cx ROMs */
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7354,7 +7354,7 @@ ROM_START( ms5pcb ) /* Encrypted Set */
ROM_LOAD32_WORD_SWAP( "268-p2r.p2", 0x000002, 0x400000, CRC(fbf6b61e) SHA1(9ec743d5988b5e3183f37f8edf45c72a8c0c893e) )
ROM_REGION( 0x20000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x20000, 0 )
+ ROM_FILL( 0x000000, 0x20000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7396,7 +7396,7 @@ ROM_START( svcpcb ) /* Encrypted Set, JAMMA PCB */
ROM_LOAD16_WORD_SWAP( "269-p1.p1", 0x000000, 0x2000000, CRC(432cfdfc) SHA1(19b40d32188a8bace6d2d570c6cf3d2f1e31e379) )
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7435,7 +7435,7 @@ ROM_START( svcpcba ) /* Encrypted Set, JAMMA PCB */
ROM_LOAD32_WORD_SWAP( "269-p2a.p1", 0x000002, 0x400000, CRC(6d13797c) SHA1(3cb71a95cea6b006b44cac0f547df88aec0007b7) )
ROM_REGION( 0x80000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -7475,7 +7475,7 @@ ROM_START( kf2k3pcb ) /* Encrypted Set, JAMMA PCB */
ROM_LOAD16_WORD_SWAP( "271-p3.p3", 0x800000, 0x100000, CRC(5cefd0d2) SHA1(cddc3164629fed4b6f715e12b109ad35d1009355) )
ROM_REGION( 0x100000, "fixed", 0 ) /* larger char set */
- ROM_FILL( 0x000000, 0x100000, 0 )
+ ROM_FILL( 0x000000, 0x100000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -8017,7 +8017,7 @@ ROM_START( kof10th )
ROM_Y_ZOOM
ROM_REGION( 0x40000, "fixed", 0 ) // modified
- ROM_FILL( 0x000000, 0x40000, 0 ) // modified
+ ROM_FILL( 0x000000, 0x40000, nullptr ) // modified
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -8153,7 +8153,7 @@ ROM_START( matrimbl )
ROM_Y_ZOOM
ROM_REGION( 0x80000, "fixed", 0 )
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x20000, "fixedbios", 0 )
ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) )
@@ -8257,7 +8257,7 @@ ROM_START( svcboot )
ROM_REGION( 0x50000, "audiocpu", 0 )
ROM_LOAD( "svc-m1.bin", 0x20000, 0x10000, CRC(804328c3) SHA1(f931636c563b0789d4812033a77b47bf663db43f) )
ROM_CONTINUE( 0x00000, 0x10000 )
- ROM_COPY( "audiocpu", 0x00000, 0x10000, 0x10000 )
+ ROM_COPY( "audiocpu", nullptr, 0x10000, 0x10000 )
ROM_Y_ZOOM
@@ -8296,7 +8296,7 @@ ROM_START( svcplus )
ROM_REGION( 0x50000, "audiocpu", 0 )
ROM_LOAD( "svc-m1.bin", 0x20000, 0x10000, CRC(804328c3) SHA1(f931636c563b0789d4812033a77b47bf663db43f) )
ROM_CONTINUE( 0x00000, 0x10000 )
- ROM_COPY( "audiocpu", 0x00000, 0x10000, 0x10000 )
+ ROM_COPY( "audiocpu", nullptr, 0x10000, 0x10000 )
ROM_REGION( 0x1000000, "ymsnd", 0 )
ROM_LOAD16_WORD_SWAP( "svc-v2.bin", 0x000000, 0x400000, CRC(b5097287) SHA1(3ba3a9b5624879616382ed40337a3d9c50a0f314) )
@@ -8336,7 +8336,7 @@ ROM_START( svcplusa )
ROM_REGION( 0x50000, "audiocpu", 0 )
ROM_LOAD( "svc-m1.bin", 0x20000, 0x10000, CRC(804328c3) SHA1(f931636c563b0789d4812033a77b47bf663db43f) )
ROM_CONTINUE( 0x00000, 0x10000 )
- ROM_COPY( "audiocpu", 0x00000, 0x10000, 0x10000 )
+ ROM_COPY( "audiocpu", nullptr, 0x10000, 0x10000 )
ROM_Y_ZOOM
@@ -8374,7 +8374,7 @@ ROM_START( svcsplus )
ROM_REGION( 0x50000, "audiocpu", 0 )
ROM_LOAD( "svc-m1.bin", 0x20000, 0x10000, CRC(804328c3) SHA1(f931636c563b0789d4812033a77b47bf663db43f) )
ROM_CONTINUE( 0x00000, 0x10000 )
- ROM_COPY( "audiocpu", 0x00000, 0x10000, 0x10000 )
+ ROM_COPY( "audiocpu", nullptr, 0x10000, 0x10000 )
ROM_REGION( 0x1000000, "ymsnd", 0 )
ROM_LOAD16_WORD_SWAP( "svc-v2.bin", 0x000000, 0x400000, CRC(b5097287) SHA1(3ba3a9b5624879616382ed40337a3d9c50a0f314) )
diff --git a/src/mame/drivers/nes.cpp b/src/mame/drivers/nes.cpp
index 3e6fcaaa880..96292db4b15 100644
--- a/src/mame/drivers/nes.cpp
+++ b/src/mame/drivers/nes.cpp
@@ -99,7 +99,7 @@ static MACHINE_CONFIG_START( nes, nes_state )
MCFG_NES_CONTROL_PORT_ADD("ctrl2", nes_control_port2_devices, "joypad")
MCFG_NESCTRL_BRIGHTPIXEL_CB(nes_state, bright_pixel)
- MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_cart, NULL)
+ MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list", "nes")
MCFG_SOFTWARE_LIST_ADD("ade_list", "nes_ade") // Camerica/Codemasters Aladdin Deck Enhancer mini-carts
MCFG_SOFTWARE_LIST_ADD("ntb_list", "nes_ntbrom") // Sunsoft Nantettate! Baseball mini-carts
@@ -158,7 +158,7 @@ static MACHINE_CONFIG_DERIVED( famicom, nes )
MCFG_DEVICE_REMOVE("ctrl2")
MCFG_NES_CONTROL_PORT_ADD("ctrl1", fc_control_port1_devices, "joypad")
MCFG_NES_CONTROL_PORT_ADD("ctrl2", fc_control_port2_devices, "joypad")
- MCFG_FC_EXPANSION_PORT_ADD("exp", fc_expansion_devices, NULL)
+ MCFG_FC_EXPANSION_PORT_ADD("exp", fc_expansion_devices, nullptr)
MCFG_NESCTRL_BRIGHTPIXEL_CB(nes_state, bright_pixel)
MCFG_SOFTWARE_LIST_ADD("flop_list", "famicom_flop")
diff --git a/src/mame/drivers/next.cpp b/src/mame/drivers/next.cpp
index 0193b80f67c..26c29072d18 100644
--- a/src/mame/drivers/next.cpp
+++ b/src/mame/drivers/next.cpp
@@ -272,10 +272,10 @@ void next_state::irq_check()
}
const char *next_state::dma_targets[0x20] = {
- 0, "scsi", 0, 0, "soundout", "disk", 0, 0,
- "soundin", "printer", 0, 0, "scc", "dsp", 0, 0,
- "s-enetx", "enetx", 0, 0, "s-enetr", "enetr", 0, 0,
- "video", 0, 0, 0, "r2m", "m2r", 0, 0
+ nullptr, "scsi", nullptr, nullptr, "soundout", "disk", nullptr, nullptr,
+ "soundin", "printer", nullptr, nullptr, "scc", "dsp", nullptr, nullptr,
+ "s-enetx", "enetx", nullptr, nullptr, "s-enetr", "enetr", nullptr, nullptr,
+ "video", nullptr, nullptr, nullptr, "r2m", "m2r", nullptr, nullptr
};
const int next_state::dma_irqs[0x20] = {
@@ -1035,11 +1035,11 @@ static MACHINE_CONFIG_START( next_base, next_state )
MCFG_NEXTKBD_INT_NMI_CALLBACK(WRITELINE(next_state, nmi_irq))
MCFG_NSCSI_ADD("scsibus:0", next_scsi_devices, "harddisk", false)
MCFG_NSCSI_ADD("scsibus:1", next_scsi_devices, "cdrom", false)
- MCFG_NSCSI_ADD("scsibus:2", next_scsi_devices, 0, false)
- MCFG_NSCSI_ADD("scsibus:3", next_scsi_devices, 0, false)
- MCFG_NSCSI_ADD("scsibus:4", next_scsi_devices, 0, false)
- MCFG_NSCSI_ADD("scsibus:5", next_scsi_devices, 0, false)
- MCFG_NSCSI_ADD("scsibus:6", next_scsi_devices, 0, false)
+ MCFG_NSCSI_ADD("scsibus:2", next_scsi_devices, nullptr, false)
+ MCFG_NSCSI_ADD("scsibus:3", next_scsi_devices, nullptr, false)
+ MCFG_NSCSI_ADD("scsibus:4", next_scsi_devices, nullptr, false)
+ MCFG_NSCSI_ADD("scsibus:5", next_scsi_devices, nullptr, false)
+ MCFG_NSCSI_ADD("scsibus:6", next_scsi_devices, nullptr, false)
MCFG_NSCSI_ADD("scsibus:7", next_scsi_devices, "ncr5390", true)
MCFG_DEVICE_CARD_MACHINE_CONFIG("ncr5390", ncr5390)
diff --git a/src/mame/drivers/ng_aes.cpp b/src/mame/drivers/ng_aes.cpp
index 0de3a9567f3..97666db8c81 100644
--- a/src/mame/drivers/ng_aes.cpp
+++ b/src/mame/drivers/ng_aes.cpp
@@ -740,7 +740,7 @@ void ng_aes_state::NeoCDDoDMA(address_space& curr_space)
// - DMA controller program[14] -> 0xFFFE (PC: 0xC0A1A0)
char* data = m_tempcdc->LC8915InitTransfer(NeoCDDMACount);
- if (data == NULL) {
+ if (data == nullptr) {
break;
}
@@ -838,7 +838,7 @@ if (NeoCDDMAAddress2 == 0x0800) {
// - DMA controller program[14] -> 0xDA92 (PC: 0xC0A1A0)
char* data = m_tempcdc->LC8915InitTransfer(NeoCDDMACount);
- if (data == NULL) {
+ if (data == nullptr) {
break;
}
@@ -1399,7 +1399,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( aes, neogeo_base, ng_aes_state )
MCFG_MACHINE_START_OVERRIDE(ng_aes_state, neogeo)
MCFG_MACHINE_RESET_OVERRIDE(ng_aes_state, neogeo)
- MCFG_NEOGEO_CARTRIDGE_ADD("cartslot1", neogeo_cart, NULL)
+ MCFG_NEOGEO_CARTRIDGE_ADD("cartslot1", neogeo_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","neogeo")
MCFG_SOFTWARE_LIST_FILTER("cart_list","AES")
diff --git a/src/mame/drivers/ngen.cpp b/src/mame/drivers/ngen.cpp
index 29f492e5f30..a0f9e2419d5 100644
--- a/src/mame/drivers/ngen.cpp
+++ b/src/mame/drivers/ngen.cpp
@@ -833,7 +833,7 @@ void ngen_state::machine_start()
memory_share* vidshare = memshare("vram");
memory_share* fontshare = memshare("fontram");
m_hd_buffer.allocate(1024*8); // 8kB buffer RAM for HD controller
- if(vidshare == NULL || fontshare == NULL)
+ if(vidshare == nullptr || fontshare == nullptr)
fatalerror("Error: VRAM not found");
m_vram.set(*vidshare,2);
m_fontram.set(*fontshare,2);
@@ -955,13 +955,13 @@ static MACHINE_CONFIG_START( ngen, ngen_state )
MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE("rs232_a", rs232_port_device, write_rts))
MCFG_Z80DART_OUT_RTSB_CB(DEVWRITELINE("rs232_b", rs232_port_device, write_rts))
- MCFG_RS232_PORT_ADD("rs232_a", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232_a", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("iouart", upd7201_device, rxa_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("iouart", upd7201_device, ctsa_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("iouart", upd7201_device, dcda_w))
MCFG_RS232_RI_HANDLER(DEVWRITELINE("iouart", upd7201_device, ria_w))
- MCFG_RS232_PORT_ADD("rs232_b", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232_b", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("iouart", upd7201_device, rxb_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("iouart", upd7201_device, ctsb_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("iouart", upd7201_device, dcdb_w))
@@ -976,7 +976,7 @@ static MACHINE_CONFIG_START( ngen, ngen_state )
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_UPDATE_DEVICE("crtc",mc6845_device, screen_update)
- MCFG_MC6845_ADD("crtc", MC6845, NULL, 19980000 / 9) // divisor unknown -- /9 gives 60Hz output, so likely correct
+ MCFG_MC6845_ADD("crtc", MC6845, nullptr, 19980000 / 9) // divisor unknown -- /9 gives 60Hz output, so likely correct
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(9)
MCFG_MC6845_UPDATE_ROW_CB(ngen_state, crtc_update_row)
@@ -1065,13 +1065,13 @@ static MACHINE_CONFIG_START( ngen386, ngen386_state )
MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE("rs232_a", rs232_port_device, write_rts))
MCFG_Z80DART_OUT_RTSB_CB(DEVWRITELINE("rs232_b", rs232_port_device, write_rts))
- MCFG_RS232_PORT_ADD("rs232_a", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232_a", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("iouart", upd7201_device, rxa_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("iouart", upd7201_device, ctsa_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("iouart", upd7201_device, dcda_w))
MCFG_RS232_RI_HANDLER(DEVWRITELINE("iouart", upd7201_device, ria_w))
- MCFG_RS232_PORT_ADD("rs232_b", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232_b", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("iouart", upd7201_device, rxb_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("iouart", upd7201_device, ctsb_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("iouart", upd7201_device, dcdb_w))
@@ -1086,7 +1086,7 @@ static MACHINE_CONFIG_START( ngen386, ngen386_state )
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_UPDATE_DEVICE("crtc",mc6845_device, screen_update)
- MCFG_MC6845_ADD("crtc", MC6845, NULL, 19980000 / 9) // divisor unknown -- /9 gives 60Hz output, so likely correct
+ MCFG_MC6845_ADD("crtc", MC6845, nullptr, 19980000 / 9) // divisor unknown -- /9 gives 60Hz output, so likely correct
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(9)
MCFG_MC6845_UPDATE_ROW_CB(ngen_state, crtc_update_row)
diff --git a/src/mame/drivers/ngp.cpp b/src/mame/drivers/ngp.cpp
index 98dcfd0f76e..9341deba7f8 100644
--- a/src/mame/drivers/ngp.cpp
+++ b/src/mame/drivers/ngp.cpp
@@ -143,11 +143,11 @@ public:
{
m_flash_chip[0].present = 0;
m_flash_chip[0].state = F_READ;
- m_flash_chip[0].data = NULL;
+ m_flash_chip[0].data = nullptr;
m_flash_chip[1].present = 0;
m_flash_chip[1].state = F_READ;
- m_flash_chip[1].data = NULL;
+ m_flash_chip[1].data = nullptr;
m_nvram_loaded = false;
}
diff --git a/src/mame/drivers/nightgal.cpp b/src/mame/drivers/nightgal.cpp
index 32cb1d6a949..59b051ec6bb 100644
--- a/src/mame/drivers/nightgal.cpp
+++ b/src/mame/drivers/nightgal.cpp
@@ -314,7 +314,7 @@ PALETTE_INIT_MEMBER(nightgal_state, nightgal)
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/ninjaw.cpp b/src/mame/drivers/ninjaw.cpp
index f42371ed561..463c7721226 100644
--- a/src/mame/drivers/ninjaw.cpp
+++ b/src/mame/drivers/ninjaw.cpp
@@ -379,7 +379,7 @@ READ16_MEMBER(ninjaw_state::sound_r)
WRITE8_MEMBER(ninjaw_state::pancontrol_w)
{
- filter_volume_device *flt = NULL;
+ filter_volume_device *flt = nullptr;
offset &= 3;
switch (offset)
@@ -997,7 +997,7 @@ ROM_START( ninjaw )
ROM_LOAD( "b31-04.173", 0x180000, 0x80000, CRC(2e1e4cb5) SHA1(4733cfc015a68e021108a9e1e8ea807b0e7eac7a) )
ROM_REGION( 0x100000, "gfx3", 0 )
- ROM_COPY( "gfx1", 0x000000, 0x000000, 0x100000 ) /* SCR (screens 2+) */
+ ROM_COPY( "gfx1", nullptr, 0x000000, 0x100000 ) /* SCR (screens 2+) */
/* The actual board duplicates the SCR gfx roms for 2nd/3rd TC0100SCN */
// ROM_LOAD( "b31-01.26", 0x00000, 0x80000, CRC(8e8237a7) SHA1(3e181a153d9b4b7f6a620614ea9022285583a5b5) ) /* SCR (screen 2) */
@@ -1052,7 +1052,7 @@ ROM_START( ninjawu )
ROM_LOAD( "b31-04.173", 0x180000, 0x80000, CRC(2e1e4cb5) SHA1(4733cfc015a68e021108a9e1e8ea807b0e7eac7a) )
ROM_REGION( 0x100000, "gfx3", 0 )
- ROM_COPY( "gfx1", 0x000000, 0x000000, 0x100000 ) /* SCR (screens 2+) */
+ ROM_COPY( "gfx1", nullptr, 0x000000, 0x100000 ) /* SCR (screens 2+) */
/* The actual board duplicates the SCR gfx roms for 2nd/3rd TC0100SCN */
// ROM_LOAD( "b31-01.26", 0x00000, 0x80000, CRC(8e8237a7) SHA1(3e181a153d9b4b7f6a620614ea9022285583a5b5) ) /* SCR (screen 2) */
@@ -1107,7 +1107,7 @@ ROM_START( ninjawj )
ROM_LOAD( "b31-04.173", 0x180000, 0x80000, CRC(2e1e4cb5) SHA1(4733cfc015a68e021108a9e1e8ea807b0e7eac7a) )
ROM_REGION( 0x100000, "gfx3", 0 )
- ROM_COPY( "gfx1", 0x000000, 0x000000, 0x100000 ) /* SCR (screens 2+) */
+ ROM_COPY( "gfx1", nullptr, 0x000000, 0x100000 ) /* SCR (screens 2+) */
/* The actual board duplicates the SCR gfx roms for 2nd/3rd TC0100SCN */
// ROM_LOAD( "b31-01.26", 0x00000, 0x80000, CRC(8e8237a7) SHA1(3e181a153d9b4b7f6a620614ea9022285583a5b5) ) /* SCR (screen 2) */
@@ -1160,7 +1160,7 @@ ROM_START( darius2 )
ROM_LOAD( "c07-02", 0x80000, 0x80000, CRC(75d16d4b) SHA1(795423278b66eca41accce1f8a4425d65af7b629) )
ROM_REGION( 0x100000, "gfx3", 0 )
- ROM_COPY( "gfx1", 0x000000, 0x000000, 0x100000 ) /* SCR (screens 2+) */
+ ROM_COPY( "gfx1", nullptr, 0x000000, 0x100000 ) /* SCR (screens 2+) */
ROM_REGION( 0x100000, "ymsnd", 0 ) /* ADPCM samples */
ROM_LOAD( "c07-10.95", 0x00000, 0x80000, CRC(4bbe0ed9) SHA1(081b73c4e4d4fa548445e5548573099bcb1e9213) )
diff --git a/src/mame/drivers/niyanpai.cpp b/src/mame/drivers/niyanpai.cpp
index ef411c20158..81bbe457dcc 100644
--- a/src/mame/drivers/niyanpai.cpp
+++ b/src/mame/drivers/niyanpai.cpp
@@ -725,7 +725,7 @@ INTERRUPT_GEN_MEMBER(niyanpai_state::interrupt)
static const z80_daisy_config daisy_chain_sound[] =
{
TMPZ84C011_DAISY_INTERNAL,
- { NULL }
+ { nullptr }
};
static MACHINE_CONFIG_START( niyanpai, niyanpai_state )
diff --git a/src/mame/drivers/nmk16.cpp b/src/mame/drivers/nmk16.cpp
index 517d912d6ac..b6fb64db249 100644
--- a/src/mame/drivers/nmk16.cpp
+++ b/src/mame/drivers/nmk16.cpp
@@ -5551,7 +5551,7 @@ ROM_START( mustangb )
ROM_REGION(0x20000, "audiocpu", 0 ) /* 64k for sound cpu code */
ROM_LOAD( "mustang.16", 0x00000, 0x8000, CRC(99ee7505) SHA1(b97c8ee5e26e8554b5de506fba3b32cc2fde53c9) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "fgtile", 0 )
ROM_LOAD( "90058-1", 0x00000, 0x20000, CRC(81ccfcad) SHA1(70a0f769c0d4588f6f17bd52cc86a745f30e9f00) )
@@ -5575,7 +5575,7 @@ ROM_START( mustangb2 )
ROM_REGION(0x20000, "audiocpu", 0 ) /* 64k for sound cpu code */
ROM_LOAD( "01.bin", 0x00000, 0x8000, CRC(90820499) SHA1(ddd43373eb1891a05159085b52bf74760824e5aa) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "fgtile", 0 )
ROM_LOAD( "06.bin", 0x00000, 0x20000, CRC(81ccfcad) SHA1(70a0f769c0d4588f6f17bd52cc86a745f30e9f00) )
@@ -5882,7 +5882,7 @@ ROM_START( tdragonb )
ROM_REGION(0x20000, "audiocpu", 0 ) /* 64k for sound cpu code */
ROM_LOAD( "td_02.bin", 0x00000, 0x8000, CRC(99ee7505) SHA1(b97c8ee5e26e8554b5de506fba3b32cc2fde53c9) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "fgtile", 0 )
ROM_LOAD( "td_08.bin", 0x000000, 0x20000, CRC(5144dc69) SHA1(e64d88dc0e7672f811868621f74ec209aeafbc6f) ) /* 8x8 tiles */
@@ -6687,7 +6687,7 @@ ROM_START( atombjt ) // based off bjtwina set
ROM_LOAD32_BYTE( "26.u45", 0x000000, 0x80000, CRC(6cc4e817) SHA1(70f2ab50e228a029d3157c94fe0a79e7aad010bd) )
ROM_REGION( 0x100000, "fgtile", 0 )
- ROM_COPY( "gfxtemp", 0x000000, 0x00000, 0x100000 )
+ ROM_COPY( "gfxtemp", nullptr, 0x00000, 0x100000 )
ROM_REGION( 0x100000, "bgtile", 0 )
ROM_COPY( "gfxtemp", 0x100000, 0x00000, 0x100000 )
diff --git a/src/mame/drivers/ob68k1a.cpp b/src/mame/drivers/ob68k1a.cpp
index e28b6234825..389a9e7f409 100644
--- a/src/mame/drivers/ob68k1a.cpp
+++ b/src/mame/drivers/ob68k1a.cpp
@@ -241,7 +241,7 @@ static MACHINE_CONFIG_START( ob68k1a, ob68k1a_state )
MCFG_ACIA6850_TXD_HANDLER(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_txd))
MCFG_ACIA6850_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(MC6850_1_TAG, acia6850_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(MC6850_1_TAG, acia6850_device, write_dcd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(MC6850_1_TAG, acia6850_device, write_cts))
diff --git a/src/mame/drivers/odyssey2.cpp b/src/mame/drivers/odyssey2.cpp
index f7b945fecbd..a87c565057e 100644
--- a/src/mame/drivers/odyssey2.cpp
+++ b/src/mame/drivers/odyssey2.cpp
@@ -665,7 +665,7 @@ GFXDECODE_END
static MACHINE_CONFIG_FRAGMENT( odyssey2_cartslot )
- MCFG_O2_CARTRIDGE_ADD("cartslot", o2_cart, NULL)
+ MCFG_O2_CARTRIDGE_ADD("cartslot", o2_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","odyssey2")
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/oric.cpp b/src/mame/drivers/oric.cpp
index 5748b412c0b..29bbebe9c55 100644
--- a/src/mame/drivers/oric.cpp
+++ b/src/mame/drivers/oric.cpp
@@ -808,7 +808,7 @@ static MACHINE_CONFIG_START( oric, oric_state )
MCFG_VIA6522_IRQ_HANDLER(WRITELINE(oric_state, via_irq_w))
/* extension port */
- MCFG_ORICEXT_ADD( "ext", oricext_intf, NULL, "maincpu", WRITELINE(oric_state, ext_irq_w))
+ MCFG_ORICEXT_ADD( "ext", oricext_intf, nullptr, "maincpu", WRITELINE(oric_state, ext_irq_w))
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( prav8d, oric )
@@ -847,9 +847,9 @@ static MACHINE_CONFIG_DERIVED_CLASS( telstrat, oric, telestrat_state )
MCFG_WD_FDC_FORCE_READY
MCFG_FLOPPY_DRIVE_ADD("fdc:0", telestrat_floppies, "3dsdd", telestrat_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fdc:1", telestrat_floppies, NULL, telestrat_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fdc:2", telestrat_floppies, NULL, telestrat_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fdc:3", telestrat_floppies, NULL, telestrat_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fdc:1", telestrat_floppies, nullptr, telestrat_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fdc:2", telestrat_floppies, nullptr, telestrat_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fdc:3", telestrat_floppies, nullptr, telestrat_state::floppy_formats)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/osbexec.cpp b/src/mame/drivers/osbexec.cpp
index 848cf8aaadc..35f903281e9 100644
--- a/src/mame/drivers/osbexec.cpp
+++ b/src/mame/drivers/osbexec.cpp
@@ -388,7 +388,7 @@ WRITE8_MEMBER(osbexec_state::osbexec_pia0_b_w)
m_floppy0->mon_w(0);
break;
default:
- m_mb8877->set_floppy(NULL);
+ m_mb8877->set_floppy(nullptr);
break;
}
@@ -520,7 +520,7 @@ void osbexec_state::machine_reset()
static const z80_daisy_config osbexec_daisy_config[] =
{
{ "sio" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/osborne1.cpp b/src/mame/drivers/osborne1.cpp
index 78f27c93e4c..19074acc235 100644
--- a/src/mame/drivers/osborne1.cpp
+++ b/src/mame/drivers/osborne1.cpp
@@ -278,7 +278,7 @@ static MACHINE_CONFIG_START( osborne1, osborne1_state )
MCFG_ACIA6850_RTS_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_rts))
MCFG_ACIA6850_IRQ_HANDLER(WRITELINE(osborne1_state, serial_acia_irq_func))
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("acia", acia6850_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("acia", acia6850_device, write_dcd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("acia", acia6850_device, write_cts))
diff --git a/src/mame/drivers/osi.cpp b/src/mame/drivers/osi.cpp
index 01e59360901..5429460ee6f 100644
--- a/src/mame/drivers/osi.cpp
+++ b/src/mame/drivers/osi.cpp
@@ -828,7 +828,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( c1pmf, c1p, c1pmf_state )
MCFG_CLOCK_SIGNAL_HANDLER(DEVWRITELINE("acia_1", acia6850_device, write_txc))
MCFG_FLOPPY_DRIVE_ADD("floppy0", osi_floppies, "ssdd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("floppy1", osi_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("floppy1", osi_floppies, nullptr, floppy_image_device::default_floppy_formats)
/* internal ram */
MCFG_RAM_MODIFY(RAM_TAG)
diff --git a/src/mame/drivers/p8k.cpp b/src/mame/drivers/p8k.cpp
index c4f326f76c7..c21f5e2654c 100644
--- a/src/mame/drivers/p8k.cpp
+++ b/src/mame/drivers/p8k.cpp
@@ -262,7 +262,7 @@ static const z80_daisy_config p8k_daisy_chain[] =
{ "z80pio_0" },
{ "z80pio_1" },
{ "z80ctc_1" },
- { NULL }
+ { nullptr }
};
/* Intel 8272 Interface */
@@ -431,7 +431,7 @@ static const z80_daisy_config p8k_16_daisy_chain[] =
{ "z80pio_0" },
{ "z80pio_1" },
{ "z80pio_2" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/palm.cpp b/src/mame/drivers/palm.cpp
index 8ed4c93a6c8..4a4d900e15c 100644
--- a/src/mame/drivers/palm.cpp
+++ b/src/mame/drivers/palm.cpp
@@ -235,7 +235,7 @@ static INPUT_PORTS_START( palm )
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Pen Button") PORT_CODE(MOUSECODE_BUTTON1) PORT_CHANGED_MEMBER(DEVICE_SELF, palm_state, pen_check, NULL)
PORT_START( "PORTD" )
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Power") PORT_CODE(KEYCODE_D) PORT_CHANGED_MEMBER(DEVICE_SELF, palm_state, button_check, (void*)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Power") PORT_CODE(KEYCODE_D) PORT_CHANGED_MEMBER(DEVICE_SELF, palm_state, button_check, (void*)nullptr)
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Up") PORT_CODE(KEYCODE_Y) PORT_CHANGED_MEMBER(DEVICE_SELF, palm_state, button_check, (void*)1)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("Down") PORT_CODE(KEYCODE_H) PORT_CHANGED_MEMBER(DEVICE_SELF, palm_state, button_check, (void*)2)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("Button 1") PORT_CODE(KEYCODE_F) PORT_CHANGED_MEMBER(DEVICE_SELF, palm_state, button_check, (void*)3)
diff --git a/src/mame/drivers/palm_dbg.inc b/src/mame/drivers/palm_dbg.inc
index d02f6117574..8c89146b955 100644
--- a/src/mame/drivers/palm_dbg.inc
+++ b/src/mame/drivers/palm_dbg.inc
@@ -1159,7 +1159,7 @@ static const char *lookup_trap(UINT16 opcode)
if (traps[i].trap == opcode)
return traps[i].name;
}
- return NULL;
+ return nullptr;
}
static offs_t palm_dasm_override(device_t &device, char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, int options)
diff --git a/src/mame/drivers/palmz22.cpp b/src/mame/drivers/palmz22.cpp
index 7228d55d288..629a47e964d 100644
--- a/src/mame/drivers/palmz22.cpp
+++ b/src/mame/drivers/palmz22.cpp
@@ -237,7 +237,7 @@ READ32_MEMBER(palmz22_state::s3c2410_adc_data_r )
INPUT_CHANGED_MEMBER(palmz22_state::palmz22_input_changed)
{
- if (param == 0)
+ if (param == nullptr)
{
m_s3c2410->s3c2410_touch_screen( (newval & 0x01) ? 1 : 0);
}
@@ -310,7 +310,7 @@ MACHINE_CONFIG_END
static INPUT_PORTS_START( palmz22 )
PORT_START( "PENB" )
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Pen Button") PORT_CHANGED_MEMBER(DEVICE_SELF, palmz22_state, palmz22_input_changed, (void *)0) PORT_PLAYER(2)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Pen Button") PORT_CHANGED_MEMBER(DEVICE_SELF, palmz22_state, palmz22_input_changed, (void *)nullptr) PORT_PLAYER(2)
PORT_START( "PENX" )
PORT_BIT( 0x3ff, 0x200, IPT_LIGHTGUN_X ) PORT_NAME("Pen X") PORT_SENSITIVITY(50) PORT_CROSSHAIR(X, 1, 0, 0) PORT_KEYDELTA(30) PORT_PLAYER(2)
PORT_START( "PENY" )
diff --git a/src/mame/drivers/pasogo.cpp b/src/mame/drivers/pasogo.cpp
index b81999ff2f7..a70314143f2 100644
--- a/src/mame/drivers/pasogo.cpp
+++ b/src/mame/drivers/pasogo.cpp
@@ -527,7 +527,7 @@ void pasogo_state::machine_reset()
membank("bank27")->set_base(m_cart_rom->base());
m_ems_index = 0;
memset(m_ems_bank, 0, sizeof(m_ems_bank));
- contrast(*color->first_field(), NULL, 0, color->read());
+ contrast(*color->first_field(), nullptr, 0, color->read());
}
static MACHINE_CONFIG_START( pasogo, pasogo_state )
diff --git a/src/mame/drivers/pasopia.cpp b/src/mame/drivers/pasopia.cpp
index 03a27a2d2fb..453903266f7 100644
--- a/src/mame/drivers/pasopia.cpp
+++ b/src/mame/drivers/pasopia.cpp
@@ -275,7 +275,7 @@ static const z80_daisy_config pasopia_daisy[] =
{ "z80ctc" },
{ "z80pio" },
// { "upd765" }, /* TODO */
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/pasopia7.cpp b/src/mame/drivers/pasopia7.cpp
index 926b4401a1a..1a53241a3db 100644
--- a/src/mame/drivers/pasopia7.cpp
+++ b/src/mame/drivers/pasopia7.cpp
@@ -767,7 +767,7 @@ static const z80_daisy_config p7_daisy[] =
{ "z80ctc" },
{ "z80pio" },
// { "fdc" }, /* TODO */
- { NULL }
+ { nullptr }
};
READ8_MEMBER( pasopia7_state::crtc_portb_r )
diff --git a/src/mame/drivers/pc.cpp b/src/mame/drivers/pc.cpp
index bbbcd20487d..b6836ab5f3a 100644
--- a/src/mame/drivers/pc.cpp
+++ b/src/mame/drivers/pc.cpp
@@ -287,7 +287,7 @@ static MACHINE_CONFIG_START( siemens, pc_state )
MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "lpt", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "com", false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "hdc", 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_IBM_PC_XT_83)
diff --git a/src/mame/drivers/pc1512.cpp b/src/mame/drivers/pc1512.cpp
index caa90c0855b..37c1212d5e8 100644
--- a/src/mame/drivers/pc1512.cpp
+++ b/src/mame/drivers/pc1512.cpp
@@ -1253,7 +1253,7 @@ static MACHINE_CONFIG_START( pc1512, pc1512_state )
MCFG_PC_FDC_INTRQ_CALLBACK(WRITELINE(pc1512_state, fdc_int_w))
MCFG_PC_FDC_DRQ_CALLBACK(WRITELINE(pc1512_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(PC_FDC_XT_TAG ":0", pc1512_floppies, "525dd", pc1512_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(PC_FDC_XT_TAG ":1", pc1512_floppies, NULL, pc1512_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(PC_FDC_XT_TAG ":1", pc1512_floppies, nullptr, pc1512_state::floppy_formats)
MCFG_DEVICE_ADD(INS8250_TAG, INS8250, XTAL_1_8432MHz)
MCFG_INS8250_OUT_TX_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd))
MCFG_INS8250_OUT_DTR_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_dtr))
@@ -1269,7 +1269,7 @@ static MACHINE_CONFIG_START( pc1512, pc1512_state )
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_RXD_HANDLER(DEVWRITELINE(INS8250_TAG, ins8250_uart_device, rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(INS8250_TAG, ins8250_uart_device, dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(INS8250_TAG, ins8250_uart_device, dsr_w))
@@ -1288,9 +1288,9 @@ static MACHINE_CONFIG_START( pc1512, pc1512_state )
MCFG_ISA_OUT_DRQ1_CB(DEVWRITELINE(I8237A5_TAG, am9517a_device, dreq1_w))
MCFG_ISA_OUT_DRQ2_CB(DEVWRITELINE(I8237A5_TAG, am9517a_device, dreq2_w))
MCFG_ISA_OUT_DRQ3_CB(DEVWRITELINE(I8237A5_TAG, am9517a_device, dreq3_w))
- MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa1", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa2", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa3", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa1", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa2", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa3", pc_isa8_cards, nullptr, false)
// internal ram
MCFG_RAM_ADD(RAM_TAG)
@@ -1373,7 +1373,7 @@ static MACHINE_CONFIG_START( pc1640, pc1640_state )
MCFG_PC_FDC_INTRQ_CALLBACK(WRITELINE(pc1512_state, fdc_int_w))
MCFG_PC_FDC_DRQ_CALLBACK(WRITELINE(pc1512_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(PC_FDC_XT_TAG ":0", pc1512_floppies, "525dd", pc1512_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(PC_FDC_XT_TAG ":1", pc1512_floppies, NULL, pc1512_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(PC_FDC_XT_TAG ":1", pc1512_floppies, nullptr, pc1512_state::floppy_formats)
MCFG_DEVICE_ADD(INS8250_TAG, INS8250, XTAL_1_8432MHz)
MCFG_INS8250_OUT_TX_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd))
MCFG_INS8250_OUT_DTR_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_dtr))
@@ -1390,7 +1390,7 @@ static MACHINE_CONFIG_START( pc1640, pc1640_state )
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_RXD_HANDLER(DEVWRITELINE(INS8250_TAG, ins8250_uart_device, rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(INS8250_TAG, ins8250_uart_device, dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(INS8250_TAG, ins8250_uart_device, dsr_w))
@@ -1409,10 +1409,10 @@ static MACHINE_CONFIG_START( pc1640, pc1640_state )
MCFG_ISA_OUT_DRQ1_CB(DEVWRITELINE(I8237A5_TAG, am9517a_device, dreq1_w))
MCFG_ISA_OUT_DRQ2_CB(DEVWRITELINE(I8237A5_TAG, am9517a_device, dreq2_w))
MCFG_ISA_OUT_DRQ3_CB(DEVWRITELINE(I8237A5_TAG, am9517a_device, dreq3_w))
- MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa1", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa2", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa3", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa4", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa1", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa2", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa3", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa4", pc_isa8_cards, nullptr, false)
MCFG_ISA8_SLOT_ADD(ISA_BUS_TAG, "isa5", pc1640_isa8_cards, "iga", false)
// internal ram
diff --git a/src/mame/drivers/pc8401a.cpp b/src/mame/drivers/pc8401a.cpp
index 0f5ccc2a0c0..80bdf86f708 100644
--- a/src/mame/drivers/pc8401a.cpp
+++ b/src/mame/drivers/pc8401a.cpp
@@ -588,7 +588,7 @@ static MACHINE_CONFIG_START( pc8401a, pc8401a_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))
@@ -596,11 +596,11 @@ static MACHINE_CONFIG_START( pc8401a, pc8401a_state )
MCFG_FRAGMENT_ADD(pc8401a_video)
/* option ROM cartridge */
- MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, nullptr)
MCFG_GENERIC_EXTENSIONS("bin,rom")
/* I/O ROM cartridge */
- MCFG_GENERIC_CARTSLOT_ADD("io_cart", generic_linear_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("io_cart", generic_linear_slot, nullptr)
MCFG_GENERIC_EXTENSIONS("bin,rom")
/* internal ram */
@@ -630,7 +630,7 @@ static MACHINE_CONFIG_START( pc8500, pc8500_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))
@@ -638,11 +638,11 @@ static MACHINE_CONFIG_START( pc8500, pc8500_state )
MCFG_FRAGMENT_ADD(pc8500_video)
/* option ROM cartridge */
- MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, nullptr)
MCFG_GENERIC_EXTENSIONS("bin,rom")
/* I/O ROM cartridge */
- MCFG_GENERIC_CARTSLOT_ADD("io_cart", generic_linear_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("io_cart", generic_linear_slot, nullptr)
MCFG_GENERIC_EXTENSIONS("bin,rom")
/* internal ram */
diff --git a/src/mame/drivers/pc88va.cpp b/src/mame/drivers/pc88va.cpp
index 2b49707efd3..54eb6404a89 100644
--- a/src/mame/drivers/pc88va.cpp
+++ b/src/mame/drivers/pc88va.cpp
@@ -1157,7 +1157,7 @@ WRITE8_MEMBER(pc88va_state::pc88va_fdc_w)
m_fdc_ctrl_2 = data;
- pc88va_fdc_update_ready(NULL, 0);
+ pc88va_fdc_update_ready(nullptr, 0);
break; // FDC control port 2
}
diff --git a/src/mame/drivers/pc9801.cpp b/src/mame/drivers/pc9801.cpp
index 27913c265ba..eb0a7b49ea3 100644
--- a/src/mame/drivers/pc9801.cpp
+++ b/src/mame/drivers/pc9801.cpp
@@ -3202,7 +3202,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_FRAGMENT( pc9801_cbus )
MCFG_PC9801CBUS_SLOT_ADD("cbus0", pc9801_cbus, "pc9801_26")
- MCFG_PC9801CBUS_SLOT_ADD("cbus1", pc9801_cbus, NULL)
+ MCFG_PC9801CBUS_SLOT_ADD("cbus1", pc9801_cbus, nullptr)
// TODO: six max slots
MACHINE_CONFIG_END
@@ -3229,7 +3229,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_FRAGMENT( pc9801_ide )
- MCFG_ATA_INTERFACE_ADD("ide", ata_devices, "hdd", NULL, false)
+ MCFG_ATA_INTERFACE_ADD("ide", ata_devices, "hdd", nullptr, false)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_slave", pic8259_device, ir1_w))
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/pcd.cpp b/src/mame/drivers/pcd.cpp
index a532aae7723..108409cf24b 100644
--- a/src/mame/drivers/pcd.cpp
+++ b/src/mame/drivers/pcd.cpp
@@ -42,7 +42,7 @@ public:
m_scsi_data_out(*this, "scsi_data_out"),
m_scsi_data_in(*this, "scsi_data_in"),
m_ram(*this, "ram"),
- m_req_hack(NULL)
+ m_req_hack(nullptr)
{ }
DECLARE_READ8_MEMBER( irq_callback );
@@ -524,9 +524,9 @@ static MACHINE_CONFIG_START( pcd, pcd_state )
MCFG_MC2661_TXRDY_HANDLER(DEVWRITELINE("pic1", pic8259_device, ir4_w))
MCFG_MC2661_TXD_HANDLER(DEVWRITELINE("rs232_2", rs232_port_device, write_txd))
- MCFG_RS232_PORT_ADD("rs232_1", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232_1", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("usart1", mc2661_device, rx_w))
- MCFG_RS232_PORT_ADD("rs232_2", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232_2", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("usart3", mc2661_device, rx_w))
// sound hardware
diff --git a/src/mame/drivers/pce.cpp b/src/mame/drivers/pce.cpp
index b95cb6c9750..4a2db078dcd 100644
--- a/src/mame/drivers/pce.cpp
+++ b/src/mame/drivers/pce.cpp
@@ -345,13 +345,13 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( pce, pce_common )
- MCFG_PCE_CARTRIDGE_ADD("cartslot", pce_cart, NULL)
+ MCFG_PCE_CARTRIDGE_ADD("cartslot", pce_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","pce")
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( tg16, pce_common )
- MCFG_TG16_CARTRIDGE_ADD("cartslot", pce_cart, NULL)
+ MCFG_TG16_CARTRIDGE_ADD("cartslot", pce_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","tg16")
MACHINE_CONFIG_END
@@ -403,7 +403,7 @@ static MACHINE_CONFIG_START( sgx, pce_state )
MCFG_SOUND_ROUTE(0, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "rspeaker", 1.00)
- MCFG_PCE_CARTRIDGE_ADD("cartslot", pce_cart, NULL)
+ MCFG_PCE_CARTRIDGE_ADD("cartslot", pce_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","sgx")
MCFG_SOFTWARE_LIST_COMPATIBLE_ADD("pce_list","pce")
diff --git a/src/mame/drivers/pcm.cpp b/src/mame/drivers/pcm.cpp
index ee4024b4b02..e0400d8f482 100644
--- a/src/mame/drivers/pcm.cpp
+++ b/src/mame/drivers/pcm.cpp
@@ -228,7 +228,7 @@ static const z80_daisy_config pcm_daisy_chain[] =
{ "z80sio" }, /* sio */
{ "z80pio_u" }, /* User pio */
{ "z80ctc_u" }, /* User ctc */
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/pcw16.cpp b/src/mame/drivers/pcw16.cpp
index d8e165d4216..ec455d8ff0f 100644
--- a/src/mame/drivers/pcw16.cpp
+++ b/src/mame/drivers/pcw16.cpp
@@ -1029,7 +1029,7 @@ static MACHINE_CONFIG_START( pcw16, pcw16_state )
MCFG_INS8250_OUT_DTR_CB(DEVWRITELINE("serport2", rs232_port_device, write_dtr))
MCFG_INS8250_OUT_RTS_CB(DEVWRITELINE("serport2", rs232_port_device, write_rts))
MCFG_INS8250_OUT_INT_CB(WRITELINE(pcw16_state, pcw16_com_interrupt_2))
- MCFG_RS232_PORT_ADD( "serport2", pcw16_com, NULL )
+ MCFG_RS232_PORT_ADD( "serport2", pcw16_com, nullptr )
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("ns16550_2", ins8250_uart_device, rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("ns16550_2", ins8250_uart_device, dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("ns16550_2", ins8250_uart_device, dsr_w))
diff --git a/src/mame/drivers/pdp1.cpp b/src/mame/drivers/pdp1.cpp
index 0e01f6d21c3..c0bc33bada2 100644
--- a/src/mame/drivers/pdp1.cpp
+++ b/src/mame/drivers/pdp1.cpp
@@ -460,21 +460,21 @@ static pdp1_reset_param_t pdp1_reset_param =
BULLETIN no. 2 (drumInstrWriteup.bin/drumInstrWriteup.txt), and are
similar to IOT documented in Parallel Drum Type 23 Instruction Manual. */
/* (iot) rpa rpb tyo tyi ppa ppb dpy */
- NULL, iot_rpa, iot_rpb, iot_tyo, iot_tyi, iot_ppa, iot_ppb, iot_dpy,
+ nullptr, iot_rpa, iot_rpb, iot_tyo, iot_tyi, iot_ppa, iot_ppb, iot_dpy,
/* spacewar */
- NULL, iot_011, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, iot_011, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
/* lag glf?/jsp? gpl?/gpr?/gcf? */
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
/* rrb rcb? rcc? cks mcs mes mel */
- iot_rrb, NULL, NULL, iot_cks, NULL, NULL, NULL, NULL,
+ iot_rrb, nullptr, nullptr, iot_cks, nullptr, nullptr, nullptr, nullptr,
/* cad? rac? rbc? pac lpr/lfb/lsp swc/sci/sdf?/shr? scv? */
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
/* (dsc) (asc) (isb) (cac) (lsm) (esm) (cbs) */
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
/* icv? dia dba dcc dra mri|rlc? mrf/inr?/ccr? */
- NULL, iot_dia, iot_dba, iot_dcc, iot_dra, NULL, NULL, NULL,
+ nullptr, iot_dia, iot_dba, iot_dcc, iot_dra, nullptr, nullptr, nullptr,
/* mcb|dur? mwc|mtf? mrc|sfc?... msm|cgo? (eem/lem) mic muf */
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
},
pdp1_tape_read_binary,
pdp1_io_sc_callback,
@@ -505,7 +505,7 @@ void pdp1_state::pdp1_machine_stop()
{
/* the core will take care of freeing the timers, BUT we must set the variables
to NULL if we don't want to risk confusing the tape image init function */
- m_tape_reader.timer = m_tape_puncher.timer = m_typewriter.tyo_timer = m_dpy_timer = NULL;
+ m_tape_reader.timer = m_tape_puncher.timer = m_typewriter.tyo_timer = m_dpy_timer = nullptr;
}
@@ -677,9 +677,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,rim"; }
- 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();
@@ -712,9 +712,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,rim"; }
- 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();
@@ -748,9 +748,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 "typ"; }
- 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();
@@ -783,9 +783,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 "drm"; }
- 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();
@@ -841,7 +841,7 @@ void pdp1_readtape_image_device::call_unload()
pdp1_state *state = machine().driver_data<pdp1_state>();
/* reader unit */
- state->m_tape_reader.fd = NULL;
+ state->m_tape_reader.fd = nullptr;
/* stop motor */
state->m_tape_reader.motor_on = 0;
@@ -1055,7 +1055,7 @@ void pdp1_punchtape_image_device::call_unload()
pdp1_state *state = machine().driver_data<pdp1_state>();
/* punch unit */
- state->m_tape_puncher.fd = NULL;
+ state->m_tape_puncher.fd = nullptr;
}
/*
@@ -1165,7 +1165,7 @@ bool pdp1_printer_image_device::call_load()
void pdp1_printer_image_device::call_unload()
{
pdp1_state *state = machine().driver_data<pdp1_state>();
- state->m_typewriter.fd = NULL;
+ state->m_typewriter.fd = nullptr;
}
/*
@@ -1499,7 +1499,7 @@ bool pdp1_cylinder_image_device::call_load()
void pdp1_cylinder_image_device::call_unload()
{
pdp1_state *state = machine().driver_data<pdp1_state>();
- state->m_parallel_drum.fd = NULL;
+ state->m_parallel_drum.fd = nullptr;
}
static void iot_dia(device_t *device, int op2, int nac, int mb, int *io, int ac)
diff --git a/src/mame/drivers/pegasus.cpp b/src/mame/drivers/pegasus.cpp
index 8563f597020..9057b0d51cb 100644
--- a/src/mame/drivers/pegasus.cpp
+++ b/src/mame/drivers/pegasus.cpp
@@ -424,7 +424,7 @@ int pegasus_state::load_cart(device_image_interface &image, generic_slot_device
return IMAGE_INIT_FAIL;
}
- if (image.software_entry() != NULL && size == 0)
+ if (image.software_entry() != nullptr && size == 0)
{
// we might be loading a cart compatible with all sockets!
// so try to get region "rom"
diff --git a/src/mame/drivers/pet.cpp b/src/mame/drivers/pet.cpp
index 969834679a9..3a25ac12358 100644
--- a/src/mame/drivers/pet.cpp
+++ b/src/mame/drivers/pet.cpp
@@ -1522,11 +1522,11 @@ static MACHINE_CONFIG_START( pet, pet_state )
MCFG_IEEE488_SRQ_CALLBACK(DEVWRITELINE(M6520_2_TAG, pia6821_device, cb1_w))
MCFG_IEEE488_ATN_CALLBACK(DEVWRITELINE(M6520_2_TAG, pia6821_device, ca1_w))
MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, "c2n", DEVWRITELINE(M6520_1_TAG, pia6821_device, ca1_w))
- MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT2_TAG, cbm_datassette_devices, NULL, DEVWRITELINE(M6522_TAG, via6522_device, write_cb1))
- MCFG_PET_EXPANSION_SLOT_ADD(PET_EXPANSION_SLOT_TAG, XTAL_8MHz/8, pet_expansion_cards, NULL)
+ MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT2_TAG, cbm_datassette_devices, nullptr, DEVWRITELINE(M6522_TAG, via6522_device, write_cb1))
+ MCFG_PET_EXPANSION_SLOT_ADD(PET_EXPANSION_SLOT_TAG, XTAL_8MHz/8, pet_expansion_cards, nullptr)
MCFG_PET_EXPANSION_SLOT_DMA_CALLBACKS(READ8(pet_state, read), WRITE8(pet_state, write))
- MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, pet_user_port_cards, NULL)
+ MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, pet_user_port_cards, nullptr)
MCFG_PET_USER_PORT_5_HANDLER(WRITELINE(pet_state, user_diag_w))
MCFG_PET_USER_PORT_B_HANDLER(DEVWRITELINE(M6522_TAG, via6522_device, write_ca1))
MCFG_PET_USER_PORT_C_HANDLER(DEVWRITELINE(M6522_TAG, via6522_device, write_pa0))
@@ -1957,11 +1957,11 @@ static MACHINE_CONFIG_START( pet80, pet80_state )
MCFG_IEEE488_SRQ_CALLBACK(DEVWRITELINE(M6520_2_TAG, pia6821_device, cb1_w))
MCFG_IEEE488_ATN_CALLBACK(DEVWRITELINE(M6520_2_TAG, pia6821_device, ca1_w))
MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, "c2n", DEVWRITELINE(M6520_1_TAG, pia6821_device, ca1_w))
- MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT2_TAG, cbm_datassette_devices, NULL, DEVWRITELINE(M6522_TAG, via6522_device, write_cb1))
- MCFG_PET_EXPANSION_SLOT_ADD(PET_EXPANSION_SLOT_TAG, XTAL_16MHz/16, pet_expansion_cards, NULL)
+ MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT2_TAG, cbm_datassette_devices, nullptr, DEVWRITELINE(M6522_TAG, via6522_device, write_cb1))
+ MCFG_PET_EXPANSION_SLOT_ADD(PET_EXPANSION_SLOT_TAG, XTAL_16MHz/16, pet_expansion_cards, nullptr)
MCFG_PET_EXPANSION_SLOT_DMA_CALLBACKS(READ8(pet_state, read), WRITE8(pet_state, write))
- MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, pet_user_port_cards, NULL)
+ MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, pet_user_port_cards, nullptr)
MCFG_PET_USER_PORT_B_HANDLER(DEVWRITELINE(M6522_TAG, via6522_device, write_ca1))
MCFG_PET_USER_PORT_C_HANDLER(DEVWRITELINE(M6522_TAG, via6522_device, write_pa0))
MCFG_PET_USER_PORT_D_HANDLER(DEVWRITELINE(M6522_TAG, via6522_device, write_pa1))
diff --git a/src/mame/drivers/photon2.cpp b/src/mame/drivers/photon2.cpp
index 6f327d4833d..e132faa7ab6 100644
--- a/src/mame/drivers/photon2.cpp
+++ b/src/mame/drivers/photon2.cpp
@@ -388,7 +388,7 @@ ROM_END
ROM_START( brod )
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "brod00.bin", 0x0000, 0x2000, CRC(cbd6653f) SHA1(18b9134529a1e56c6e90f3bcef5102d5d4b352e3) )
- ROM_FILL( 0x2000, 0x2000, 0x00 )
+ ROM_FILL( 0x2000, 0x2000, nullptr )
ROM_LOAD( "brod10.bin", 0x4000, 0x2000, CRC(9c25d44a) SHA1(f78c7e5b4e6f9fe34f81dc574ca335f70b61e68d) )
ROM_LOAD( "brod11.bin", 0x6000, 0x2000, CRC(f6505a16) SHA1(3b2ccca78fd83855003cc752766df83b19f89364) )
ROM_LOAD( "brod12.bin", 0x8000, 0x2000, CRC(94e53d47) SHA1(698415c5e25528e3b1dcab7471cc98c1dc9cb335) )
diff --git a/src/mame/drivers/photoply.cpp b/src/mame/drivers/photoply.cpp
index d1a0a758a2d..6c38e5f87eb 100644
--- a/src/mame/drivers/photoply.cpp
+++ b/src/mame/drivers/photoply.cpp
@@ -125,7 +125,7 @@ static MACHINE_CONFIG_START( photoply, photoply_state )
MCFG_GFXDECODE_ADD("gfxdecode", "palette", photoply )
- 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_FRAGMENT_ADD( pcvideo_vga )
diff --git a/src/mame/drivers/pinball2k.cpp b/src/mame/drivers/pinball2k.cpp
index 37666de9a8c..946209aeeb5 100644
--- a/src/mame/drivers/pinball2k.cpp
+++ b/src/mame/drivers/pinball2k.cpp
@@ -602,9 +602,9 @@ static MACHINE_CONFIG_START( mediagx, pinball2k_state )
MCFG_FRAGMENT_ADD( pcat_common )
MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0)
- 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_RAMDAC_ADD("ramdac", ramdac_map, "palette")
diff --git a/src/mame/drivers/pinkiri8.cpp b/src/mame/drivers/pinkiri8.cpp
index 365f47b74c4..6a90c386acb 100644
--- a/src/mame/drivers/pinkiri8.cpp
+++ b/src/mame/drivers/pinkiri8.cpp
@@ -147,7 +147,7 @@ void janshi_vdp_device::device_reset() {}
const address_space_config *janshi_vdp_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == 0) ? &m_space_config : NULL;
+ return (spacenum == 0) ? &m_space_config : nullptr;
}
void pinkiri8_state::video_start() {}
diff --git a/src/mame/drivers/pipedrm.cpp b/src/mame/drivers/pipedrm.cpp
index c349cadd7de..2f38b839d67 100644
--- a/src/mame/drivers/pipedrm.cpp
+++ b/src/mame/drivers/pipedrm.cpp
@@ -873,9 +873,9 @@ ROM_START( hatris )
ROM_REGION( 0x80000, "gfx1", 0 )
ROM_LOAD( "b0-ic56.bin", 0x00000, 0x20000, CRC(34f337a4) SHA1(ad74bb3fbfd16c9e92daa1cf5c5e522d11ba7dfb) )
- ROM_FILL( 0x20000, 0x20000, 0 )
+ ROM_FILL( 0x20000, 0x20000, nullptr )
ROM_LOAD( "b1-ic73.bin", 0x40000, 0x08000, CRC(6351d0ba) SHA1(6d6b2e23f0569e625414de11803955df60bbbd48) )
- ROM_FILL( 0x48000, 0x18000, 0 )
+ ROM_FILL( 0x48000, 0x18000, nullptr )
ROM_REGION( 0x40000, "gfx2", 0 )
ROM_LOAD( "a0-ic55.bin", 0x00000, 0x20000, CRC(7b7bc619) SHA1(b661c772e33aa7352dcdc20c4a9a84ed25ff89d7) )
@@ -895,9 +895,9 @@ ROM_START( hatrisj )
ROM_REGION( 0x80000, "gfx1", 0 )
ROM_LOAD( "b0-ic56.bin", 0x00000, 0x20000, CRC(34f337a4) SHA1(ad74bb3fbfd16c9e92daa1cf5c5e522d11ba7dfb) )
- ROM_FILL( 0x20000, 0x20000, 0 )
+ ROM_FILL( 0x20000, 0x20000, nullptr )
ROM_LOAD( "b1-ic73.bin", 0x40000, 0x08000, CRC(6351d0ba) SHA1(6d6b2e23f0569e625414de11803955df60bbbd48) )
- ROM_FILL( 0x48000, 0x18000, 0 )
+ ROM_FILL( 0x48000, 0x18000, nullptr )
ROM_REGION( 0x40000, "gfx2", 0 )
ROM_LOAD( "a0-ic55.bin", 0x00000, 0x20000, CRC(7b7bc619) SHA1(b661c772e33aa7352dcdc20c4a9a84ed25ff89d7) )
diff --git a/src/mame/drivers/pipeline.cpp b/src/mame/drivers/pipeline.cpp
index c46934f1b4b..1d779d8640e 100644
--- a/src/mame/drivers/pipeline.cpp
+++ b/src/mame/drivers/pipeline.cpp
@@ -339,7 +339,7 @@ GFXDECODE_END
static const z80_daisy_config daisy_chain_sound[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
PALETTE_INIT_MEMBER(pipeline_state, pipeline)
diff --git a/src/mame/drivers/playmark.cpp b/src/mame/drivers/playmark.cpp
index b378aa5feaa..e6438cff2da 100644
--- a/src/mame/drivers/playmark.cpp
+++ b/src/mame/drivers/playmark.cpp
@@ -1597,19 +1597,19 @@ ROM_START( wbeachvl )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x1c0000, "oki", 0 ) /* Samples */
- ROM_COPY( "user2", 0x000000, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user2", 0x080000, 0x0e0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x100000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x100000, 0x020000)
ROM_COPY( "user2", 0x0a0000, 0x120000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x140000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x140000, 0x020000)
ROM_COPY( "user2", 0x0c0000, 0x160000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x180000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x180000, 0x020000)
ROM_COPY( "user2", 0x0e0000, 0x1a0000, 0x020000)
ROM_END
@@ -1642,19 +1642,19 @@ ROM_START( wbeachvl2 )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x1c0000, "oki", 0 ) /* Samples */
- ROM_COPY( "user2", 0x000000, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user2", 0x080000, 0x0e0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x100000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x100000, 0x020000)
ROM_COPY( "user2", 0x0a0000, 0x120000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x140000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x140000, 0x020000)
ROM_COPY( "user2", 0x0c0000, 0x160000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x180000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x180000, 0x020000)
ROM_COPY( "user2", 0x0e0000, 0x1a0000, 0x020000)
ROM_END
@@ -1687,19 +1687,19 @@ ROM_START( wbeachvl3 )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x1c0000, "oki", 0 ) /* Samples */
- ROM_COPY( "user2", 0x000000, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user2", 0x080000, 0x0e0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x100000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x100000, 0x020000)
ROM_COPY( "user2", 0x0a0000, 0x120000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x140000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x140000, 0x020000)
ROM_COPY( "user2", 0x0c0000, 0x160000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x180000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x180000, 0x020000)
ROM_COPY( "user2", 0x0e0000, 0x1a0000, 0x020000)
ROM_END
@@ -1736,11 +1736,11 @@ ROM_START( excelsr )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0xc0000, "oki", 0 ) /* Samples */
- ROM_COPY( "user2", 0x000000, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0a0000, 0x020000)
ROM_END
@@ -1777,11 +1777,11 @@ ROM_START( excelsra )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0xc0000, "oki", 0 ) /* Samples */
- ROM_COPY( "user2", 0x000000, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0a0000, 0x020000)
ROM_END
@@ -1815,10 +1815,10 @@ ROM_START( hrdtimes )
ROM_CONTINUE( 0x60000, 0x20000 )
ROM_CONTINUE( 0xa0000, 0x20000 )
ROM_CONTINUE( 0xe0000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x20000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x80000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0xc0000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x20000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x80000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0xc0000, 0x20000 )
ROM_END
/* Different revision of the PCB, uses larger gfx ROMs, however the content is the same */
@@ -1849,10 +1849,10 @@ ROM_START( hrdtimesa )
ROM_CONTINUE( 0x60000, 0x20000 )
ROM_CONTINUE( 0xa0000, 0x20000 )
ROM_CONTINUE( 0xe0000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x20000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x80000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0xc0000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x20000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x80000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0xc0000, 0x20000 )
ROM_END
/*
@@ -1929,8 +1929,8 @@ ROM_START( hotmind )
ROM_REGION( 0x80000, "oki", 0 ) /* Samples */
ROM_LOAD( "20.io13", 0x00000, 0x20000, CRC(0bf3a3e5) SHA1(2ae06f37a6bcd20bc5fbaa90d970aba2ebf3cf5a) )
ROM_CONTINUE( 0x60000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x20000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x20000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000 )
ROM_REGION( 0x8000, "plds", 0 ) /* These were read protected */
ROM_LOAD( "palce16v8h-25-pc4_u58.jed", 0x0000, 0xb89, BAD_DUMP CRC(ba88c1da) SHA1(9b55e96eee44a467bdfbf760137ccb2fb3afedf0) )
@@ -1972,8 +1972,8 @@ ROM_START( luckboomh )
ROM_REGION( 0x80000, "oki", 0 ) /* Samples */
ROM_LOAD( "20.io13", 0x00000, 0x20000, CRC(0d42c0a3) SHA1(1b1d4c7dcbb063e8bf133063770b753947d1a017) )
ROM_CONTINUE( 0x60000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x20000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x20000, 0x20000 )
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000 )
ROM_END
diff --git a/src/mame/drivers/plus4.cpp b/src/mame/drivers/plus4.cpp
index 77e4116f1f6..d46753aff88 100644
--- a/src/mame/drivers/plus4.cpp
+++ b/src/mame/drivers/plus4.cpp
@@ -171,7 +171,7 @@ UINT8 plus4_state::read_memory(address_space &space, offs_t offset, int ba, int
break;
case CS0_FUNCTION_LO:
- if (m_function != NULL)
+ if (m_function != nullptr)
{
data = m_function->base()[offset & 0x7fff];
}
@@ -184,7 +184,7 @@ UINT8 plus4_state::read_memory(address_space &space, offs_t offset, int ba, int
case CS0_C2_LOW:
c2l = 0;
- if (m_c2 != NULL)
+ if (m_c2 != nullptr)
{
data = m_c2->base()[offset & 0x7fff];
}
@@ -206,7 +206,7 @@ UINT8 plus4_state::read_memory(address_space &space, offs_t offset, int ba, int
break;
case CS1_FUNCTION_HI:
- if (m_function != NULL)
+ if (m_function != nullptr)
{
data = m_function->base()[offset & 0x7fff];
}
@@ -219,7 +219,7 @@ UINT8 plus4_state::read_memory(address_space &space, offs_t offset, int ba, int
case CS1_C2_HIGH:
c2h = 0;
- if (m_c2 != NULL)
+ if (m_c2 != nullptr)
{
data = m_c2->base()[offset & 0x7fff];
}
@@ -749,7 +749,7 @@ static MACHINE_CONFIG_START( plus4, plus4_state )
// devices
MCFG_PLS100_ADD(PLA_TAG)
- MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, plus4_user_port_cards, NULL)
+ MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, plus4_user_port_cards, nullptr)
MCFG_PET_USER_PORT_4_HANDLER(DEVWRITELINE(MOS6529_USER_TAG, mos6529_device, write_p2)) // cassette sense
MCFG_PET_USER_PORT_5_HANDLER(DEVWRITELINE(MOS6529_USER_TAG, mos6529_device, write_p3))
MCFG_PET_USER_PORT_6_HANDLER(DEVWRITELINE(MOS6529_USER_TAG, mos6529_device, write_p4))
@@ -796,9 +796,9 @@ static MACHINE_CONFIG_START( plus4, plus4_state )
MCFG_CBM_IEC_ADD("c1541")
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_ADD(CONTROL2_TAG, vcs_control_port_devices, "joy")
- MCFG_PLUS4_EXPANSION_SLOT_ADD(PLUS4_EXPANSION_SLOT_TAG, XTAL_14_31818MHz/16, plus4_expansion_cards, NULL)
+ MCFG_PLUS4_EXPANSION_SLOT_ADD(PLUS4_EXPANSION_SLOT_TAG, XTAL_14_31818MHz/16, plus4_expansion_cards, nullptr)
MCFG_PLUS4_EXPANSION_SLOT_IRQ_CALLBACK(WRITELINE(plus4_state, exp_irq_w))
MCFG_PLUS4_EXPANSION_SLOT_CD_INPUT_CALLBACK(READ8(plus4_state, read))
MCFG_PLUS4_EXPANSION_SLOT_CD_OUTPUT_CALLBACK(WRITE8(plus4_state, write))
diff --git a/src/mame/drivers/poisk1.cpp b/src/mame/drivers/poisk1.cpp
index fce63ee23ac..0ac808a8553 100644
--- a/src/mame/drivers/poisk1.cpp
+++ b/src/mame/drivers/poisk1.cpp
@@ -260,9 +260,9 @@ static MACHINE_CONFIG_START( poisk1, p1_state )
MCFG_ISA_OUT_IRQ5_CB(DEVWRITELINE("pic8259", pic8259_device, ir5_w))
MCFG_ISA_OUT_IRQ7_CB(DEVWRITELINE("pic8259", pic8259_device, ir7_w))
MCFG_ISA8_SLOT_ADD("isa", "isa1", p1_isa8_cards, "fdc", false)
- MCFG_ISA8_SLOT_ADD("isa", "isa2", p1_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("isa", "isa3", p1_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("isa", "isa4", p1_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("isa", "isa2", p1_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("isa", "isa3", p1_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("isa", "isa4", p1_isa8_cards, nullptr, false)
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
diff --git a/src/mame/drivers/polyplay.cpp b/src/mame/drivers/polyplay.cpp
index bc9311a830b..f714f28dc77 100644
--- a/src/mame/drivers/polyplay.cpp
+++ b/src/mame/drivers/polyplay.cpp
@@ -250,7 +250,7 @@ static const gfx_layout charlayout_3_bit =
static GFXDECODE_START( polyplay )
GFXDECODE_ENTRY( "gfx1", 0x0000, charlayout_1_bit, 0, 1 )
- GFXDECODE_ENTRY( NULL, 0xec00, charlayout_3_bit, 2, 1 )
+ GFXDECODE_ENTRY( nullptr, 0xec00, charlayout_3_bit, 2, 1 )
GFXDECODE_END
diff --git a/src/mame/drivers/portfoli.cpp b/src/mame/drivers/portfoli.cpp
index 5102997046c..66960292fda 100644
--- a/src/mame/drivers/portfoli.cpp
+++ b/src/mame/drivers/portfoli.cpp
@@ -862,7 +862,7 @@ static MACHINE_CONFIG_START( portfolio, portfolio_state )
MCFG_TIMER_DRIVER_ADD_PERIODIC("counter", portfolio_state, counter_tick, attotime::from_hz(XTAL_32_768kHz/16384))
MCFG_TIMER_DRIVER_ADD_PERIODIC(TIMER_TICK_TAG, portfolio_state, system_tick, attotime::from_hz(XTAL_32_768kHz/32768))
- 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(M82C50A_TAG, ins8250_uart_device, rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(M82C50A_TAG, ins8250_uart_device, dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(M82C50A_TAG, ins8250_uart_device, dsr_w))
diff --git a/src/mame/drivers/powerbal.cpp b/src/mame/drivers/powerbal.cpp
index dbdf096117e..239a4628d53 100644
--- a/src/mame/drivers/powerbal.cpp
+++ b/src/mame/drivers/powerbal.cpp
@@ -626,8 +626,8 @@ ROM_START( powerbal )
ROM_LOAD( "1.u16", 0x00000, 0x40000, CRC(12776dbc) SHA1(9ab9930fd581296642834d2cb4ba65264a588af3) )
ROM_CONTINUE( 0x60000, 0x20000 )
ROM_CONTINUE( 0xa0000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000)
- ROM_COPY( "oki", 0x00000, 0x80000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x80000, 0x20000)
ROM_REGION( 0x1200, "plds", 0 )
ROM_LOAD( "palce16v8h.u102", 0x0000, 0x0117, NO_DUMP ) /* PAL is read protected */
diff --git a/src/mame/drivers/primo.cpp b/src/mame/drivers/primo.cpp
index 65e40039316..7ad1739139c 100644
--- a/src/mame/drivers/primo.cpp
+++ b/src/mame/drivers/primo.cpp
@@ -274,12 +274,12 @@ static MACHINE_CONFIG_START( primoa32, primo_state )
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED)
/* floppy from serial bus */
- MCFG_CBM_IEC_ADD(NULL)
+ MCFG_CBM_IEC_ADD(nullptr)
/* cartridge */
- MCFG_GENERIC_CARTSLOT_ADD("cartslot1", generic_plain_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("cartslot1", generic_plain_slot, nullptr)
MCFG_GENERIC_EXTENSIONS("bin,rom")
- MCFG_GENERIC_CARTSLOT_ADD("cartslot2", generic_plain_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("cartslot2", generic_plain_slot, nullptr)
MCFG_GENERIC_EXTENSIONS("bin,rom")
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/prof80.cpp b/src/mame/drivers/prof80.cpp
index 4a7d205ce32..1fb8c811930 100644
--- a/src/mame/drivers/prof80.cpp
+++ b/src/mame/drivers/prof80.cpp
@@ -512,20 +512,20 @@ static MACHINE_CONFIG_START( prof80, prof80_state )
MCFG_UPD765A_ADD(UPD765_TAG, true, true)
MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":0", prof80_floppies, "525qd", floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":1", prof80_floppies, "525qd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":2", prof80_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":3", prof80_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":2", prof80_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":3", prof80_floppies, nullptr, floppy_image_device::default_floppy_formats)
// ECB bus
MCFG_ECBBUS_ADD()
MCFG_ECBBUS_SLOT_ADD(1, "ecb_1", ecbbus_cards, "grip21")
- MCFG_ECBBUS_SLOT_ADD(2, "ecb_2", ecbbus_cards, NULL)
- MCFG_ECBBUS_SLOT_ADD(3, "ecb_3", ecbbus_cards, NULL)
- MCFG_ECBBUS_SLOT_ADD(4, "ecb_4", ecbbus_cards, NULL)
- MCFG_ECBBUS_SLOT_ADD(5, "ecb_5", ecbbus_cards, NULL)
+ MCFG_ECBBUS_SLOT_ADD(2, "ecb_2", ecbbus_cards, nullptr)
+ MCFG_ECBBUS_SLOT_ADD(3, "ecb_3", ecbbus_cards, nullptr)
+ MCFG_ECBBUS_SLOT_ADD(4, "ecb_4", ecbbus_cards, nullptr)
+ MCFG_ECBBUS_SLOT_ADD(5, "ecb_5", ecbbus_cards, nullptr)
// V24
- MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL)
- MCFG_RS232_PORT_ADD(RS232_B_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, nullptr)
// internal ram
MCFG_RAM_ADD(RAM_TAG)
diff --git a/src/mame/drivers/proteus3.cpp b/src/mame/drivers/proteus3.cpp
index dabf6d29957..34d0111d58a 100644
--- a/src/mame/drivers/proteus3.cpp
+++ b/src/mame/drivers/proteus3.cpp
@@ -376,7 +376,7 @@ ROM_START(proteus3)
ROMX_LOAD( "bas5.bin", 0xe800, 0x0800, CRC(bd81bb34) SHA1(6325735e5750a9536e63b67048f74711fae1fa42), ROM_BIOS(1) )
ROMX_LOAD( "bas6.bin", 0xf000, 0x0800, CRC(60cd006b) SHA1(28354f78490da1eb5116cbbc43eaca0670f7f398), ROM_BIOS(1) )
ROMX_LOAD( "bas7.bin", 0xf800, 0x0800, CRC(84c3dc22) SHA1(8fddba61b5f0270ca2daef32ab5edfd60300c776), ROM_BIOS(1) )
- ROM_FILL( 0xc000, 1, 0 ) // if c000 isn't 0 it assumes a rom is there and jumps to it
+ ROM_FILL( 0xc000, 1, nullptr ) // if c000 isn't 0 it assumes a rom is there and jumps to it
ROM_SYSTEM_BIOS( 1, "8k", "8k BASIC")
ROMX_LOAD( "proteus3_basic8k.m0", 0xe000, 0x2000, CRC(7d9111c2) SHA1(3c032c9c7f87d22a1a9819b3b812be84404d2ad2), ROM_BIOS(2) )
diff --git a/src/mame/drivers/psikyo.cpp b/src/mame/drivers/psikyo.cpp
index adcc50dd6c0..906bd5fd00a 100644
--- a/src/mame/drivers/psikyo.cpp
+++ b/src/mame/drivers/psikyo.cpp
@@ -1887,7 +1887,7 @@ DRIVER_INIT_MEMBER(psikyo_state,tengai)
m_maincpu->space(AS_PROGRAM).install_write_handler(0xc00004, 0xc0000b, write32_delegate(FUNC(psikyo_state::s1945_mcu_w),this));
s1945_mcu_init();
- m_s1945_mcu_table = 0;
+ m_s1945_mcu_table = nullptr;
m_ka302c_banking = 0; // Banking is controlled by mcu
diff --git a/src/mame/drivers/psikyo4.cpp b/src/mame/drivers/psikyo4.cpp
index 17e0224ef35..de33dbeb935 100644
--- a/src/mame/drivers/psikyo4.cpp
+++ b/src/mame/drivers/psikyo4.cpp
@@ -351,7 +351,7 @@ static INPUT_PORTS_START( hotgmck )
PORT_START("P1_P2")
PORT_BIT( 0x000000ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "SYSTEM")
PORT_BIT( 0x00ffff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0xff000000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_CUSTOM_MEMBER(DEVICE_SELF, psikyo4_state,mahjong_ctrl_r, (void *)0)
+ PORT_BIT( 0xff000000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_CUSTOM_MEMBER(DEVICE_SELF, psikyo4_state,mahjong_ctrl_r, (void *)nullptr)
PORT_START("P3_P4")
PORT_BIT( 0x000000ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_CUSTOM_MEMBER(DEVICE_SELF, driver_device,custom_port_read, "SYSTEM")
diff --git a/src/mame/drivers/pt68k4.cpp b/src/mame/drivers/pt68k4.cpp
index f9c840660e7..33ab39dc80c 100644
--- a/src/mame/drivers/pt68k4.cpp
+++ b/src/mame/drivers/pt68k4.cpp
@@ -193,8 +193,8 @@ WRITE8_MEMBER(pt68k4_state::fdc_select_w)
{
floppy_connector *con = machine().device<floppy_connector>(WDFDC_TAG":0");
floppy_connector *con2 = machine().device<floppy_connector>(WDFDC_TAG":1");
- floppy_image_device *floppy = con ? con->get_device() : 0;
- floppy_image_device *floppy2 = con2 ? con2->get_device() : 0;
+ floppy_image_device *floppy = con ? con->get_device() : nullptr;
+ floppy_image_device *floppy2 = con2 ? con2->get_device() : nullptr;
int drive = data & 3;
if (drive != m_lastdrive)
@@ -210,7 +210,7 @@ WRITE8_MEMBER(pt68k4_state::fdc_select_w)
break;
default:
- m_wdfdc->set_floppy(NULL);
+ m_wdfdc->set_floppy(nullptr);
break;
}
@@ -330,7 +330,7 @@ void pt68k4_state::machine_reset()
if (m_wdfdc)
{
floppy_connector *con = machine().device<floppy_connector>(WDFDC_TAG":0");
- floppy_image_device *floppy = con ? con->get_device() : 0;
+ floppy_image_device *floppy = con ? con->get_device() : nullptr;
m_wdfdc->set_floppy(floppy);
floppy->ss_w(0);
@@ -407,11 +407,11 @@ static MACHINE_CONFIG_START( pt68k2, pt68k4_state )
MCFG_ISA8_BUS_CUSTOM_SPACES()
MCFG_ISA_OUT_IRQ5_CB(WRITELINE(pt68k4_state, irq5_w))
MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa1", pt68k4_isa8_cards, "cga", false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa2", pt68k4_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa3", pt68k4_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa4", pt68k4_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa5", pt68k4_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa6", pt68k4_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa2", pt68k4_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa3", pt68k4_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa4", pt68k4_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa5", pt68k4_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa6", pt68k4_isa8_cards, nullptr, false)
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD(SPEAKER_TAG, SPEAKER_SOUND, 0)
@@ -444,11 +444,11 @@ static MACHINE_CONFIG_START( pt68k4, pt68k4_state )
MCFG_ISA8_BUS_CUSTOM_SPACES()
MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa1", pt68k4_isa8_cards, "fdc_at", false)
MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa2", pt68k4_isa8_cards, "cga", false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa3", pt68k4_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa4", pt68k4_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa5", pt68k4_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa6", pt68k4_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa7", pt68k4_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa3", pt68k4_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa4", pt68k4_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa5", pt68k4_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa6", pt68k4_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD(ISABUS_TAG, "isa7", pt68k4_isa8_cards, nullptr, false)
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD(SPEAKER_TAG, SPEAKER_SOUND, 0)
diff --git a/src/mame/drivers/pulsar.cpp b/src/mame/drivers/pulsar.cpp
index b44cc9c8e6a..48030adce83 100644
--- a/src/mame/drivers/pulsar.cpp
+++ b/src/mame/drivers/pulsar.cpp
@@ -125,7 +125,7 @@ TIMER_CALLBACK_MEMBER( pulsar_state::pulsar_reset)
static const z80_daisy_config daisy_chain_intf[] =
{
{ "z80dart" },
- { NULL }
+ { nullptr }
};
/*
@@ -137,7 +137,7 @@ d7 XMEMEX line (for external memory, not emulated)
*/
WRITE8_MEMBER( pulsar_state::ppi_pa_w )
{
- 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(BIT(data, 5));
diff --git a/src/mame/drivers/pzletime.cpp b/src/mame/drivers/pzletime.cpp
index 72d5e3ac1ed..e9ae94b024c 100644
--- a/src/mame/drivers/pzletime.cpp
+++ b/src/mame/drivers/pzletime.cpp
@@ -377,13 +377,13 @@ ROM_START( pzletime )
ROM_LOAD( "12.bin", 0x00000, 0x80000, CRC(203897c1) SHA1(c2495871c796bc7f2dabca1630317313b5aa740a) )
ROM_REGION( 0x100000, "oki", 0 )
- 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_REGION( 0x80000, "gfx1", 0 )
diff --git a/src/mame/drivers/qdrmfgp.cpp b/src/mame/drivers/qdrmfgp.cpp
index 7da7012633c..cfc4084b392 100644
--- a/src/mame/drivers/qdrmfgp.cpp
+++ b/src/mame/drivers/qdrmfgp.cpp
@@ -581,7 +581,7 @@ static MACHINE_CONFIG_START( qdrmfgp, qdrmfgp_state )
MCFG_MACHINE_START_OVERRIDE(qdrmfgp_state,qdrmfgp)
MCFG_NVRAM_ADD_1FILL("nvram")
- 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(qdrmfgp_state, ide_interrupt))
/* video hardware */
@@ -628,7 +628,7 @@ static MACHINE_CONFIG_START( qdrmfgp2, qdrmfgp_state )
MCFG_MACHINE_START_OVERRIDE(qdrmfgp_state,qdrmfgp2)
MCFG_NVRAM_ADD_1FILL("nvram")
- 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(qdrmfgp_state, gp2_ide_interrupt))
/* video hardware */
diff --git a/src/mame/drivers/ql.cpp b/src/mame/drivers/ql.cpp
index d2e0d0e17aa..9822373350b 100644
--- a/src/mame/drivers/ql.cpp
+++ b/src/mame/drivers/ql.cpp
@@ -821,17 +821,17 @@ static MACHINE_CONFIG_START( ql, ql_state )
MCFG_MICRODRIVE_COMMS_OUT_CALLBACK(DEVWRITELINE(MDV_2, microdrive_image_device, comms_in_w))
MCFG_MICRODRIVE_ADD(MDV_2)
- MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL) // wired as DCE
- MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, NULL) // wired as DTE
+ MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, nullptr) // wired as DCE
+ MCFG_RS232_PORT_ADD(RS232_B_TAG, default_rs232_devices, nullptr) // wired as DTE
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(ZX8302_TAG, zx8302_device, write_cts2))
- MCFG_QL_EXPANSION_SLOT_ADD("exp", ql_expansion_cards, NULL)
+ MCFG_QL_EXPANSION_SLOT_ADD("exp", ql_expansion_cards, nullptr)
//MCFG_QL_EXPANSION_SLOT_IPL0L_CALLBACK()
//MCFG_QL_EXPANSION_SLOT_IPL1L_CALLBACK()
//MCFG_QL_EXPANSION_SLOT_BERRL_CALLBACK()
MCFG_QL_EXPANSION_SLOT_EXTINTL_CALLBACK(WRITELINE(ql_state, exp_extintl_w))
- MCFG_QL_ROM_CARTRIDGE_SLOT_ADD("rom", ql_rom_cartridge_cards, NULL)
+ MCFG_QL_ROM_CARTRIDGE_SLOT_ADD("rom", ql_rom_cartridge_cards, nullptr)
MCFG_DEVICE_ADD(QIMI_TAG, QIMI, 0)
MCFG_QIMI_EXTINT_CALLBACK(WRITELINE(ql_state, qimi_extintl_w))
diff --git a/src/mame/drivers/queen.cpp b/src/mame/drivers/queen.cpp
index d6899a3d04d..36e2348691b 100644
--- a/src/mame/drivers/queen.cpp
+++ b/src/mame/drivers/queen.cpp
@@ -279,13 +279,13 @@ static MACHINE_CONFIG_START( queen, queen_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))
- MCFG_IDE_CONTROLLER_32_ADD("ide2", ata_devices, NULL, NULL, true)
+ MCFG_IDE_CONTROLLER_32_ADD("ide2", ata_devices, nullptr, nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_2", pic8259_device, ir7_w))
/* video hardware */
diff --git a/src/mame/drivers/qx10.cpp b/src/mame/drivers/qx10.cpp
index 1e1ca26f738..9e0b5fc4b62 100644
--- a/src/mame/drivers/qx10.cpp
+++ b/src/mame/drivers/qx10.cpp
@@ -350,7 +350,7 @@ READ8_MEMBER( qx10_state::qx10_30_r )
return m_fdcint |
/*m_fdcmotor*/ 0 << 1 |
- ((floppy1 != NULL) || (floppy2 != NULL) ? 1 : 0) << 3 |
+ ((floppy1 != nullptr) || (floppy2 != nullptr) ? 1 : 0) << 3 |
m_membank << 4;
}
@@ -749,7 +749,7 @@ static MACHINE_CONFIG_START( qx10, qx10_state )
MCFG_FLOPPY_DRIVE_ADD("upd765:0", qx10_floppies, "525dd", floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("upd765:1", qx10_floppies, "525dd", floppy_image_device::default_floppy_formats)
- 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("upd7201", upd7201_device, rxb_w))
MCFG_RS232_PORT_ADD("kbd", keyboard, "qx10")
diff --git a/src/mame/drivers/r2dx_v33.cpp b/src/mame/drivers/r2dx_v33.cpp
index 27561bbe8e5..81c2c62b9b0 100644
--- a/src/mame/drivers/r2dx_v33.cpp
+++ b/src/mame/drivers/r2dx_v33.cpp
@@ -1020,7 +1020,7 @@ ROM_START( nzeroteam ) /* V33 SYSTEM TYPE_B hardware, uses SEI333 (AKA COPX-D3)
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "sound", 0x000000, 0x08000, CRC(7ec1fbc3) SHA1(48299d6530f641b18764cc49e283c347d0918a47) ) /* Same as some of other Zero Team sets */
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "fix1", 0x000000, 0x010000, CRC(0c4895b0) SHA1(f595dbe5a19edb8a06ea60105ee26b95db4a2619) )
@@ -1050,7 +1050,7 @@ ROM_START( zerotm2k ) /* V33 SYSTEM TYPE_C VER2 hardware, uses SEI333 (AKA COPX-
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "syz-02.u019", 0x000000, 0x08000, CRC(55371073) SHA1(f6e182fa64630595dc8c25ac820e12983cfbed12) ) /* PCB silkscreened SOUND */
ROM_CONTINUE( 0x010000, 0x08000 ) /* banked stuff */
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "syz-04.u0616", 0x000000, 0x010000, CRC(3515a45f) SHA1(a25a7e23a5d9cf5a95a0d0e828848a8d223bdf51) ) /* PCB silkscreened FIX E */
diff --git a/src/mame/drivers/raiden.cpp b/src/mame/drivers/raiden.cpp
index 97b74c6c947..cc882b6d53c 100644
--- a/src/mame/drivers/raiden.cpp
+++ b/src/mame/drivers/raiden.cpp
@@ -363,7 +363,7 @@ ROM_START( raiden ) /* from a board with 2 daughter cards, no official board #s?
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "8.u212", 0x000000, 0x08000, CRC(cbe055c7) SHA1(34a06a541d059c621d87fdf41546c9d052a61963) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x010000, "gfx1", 0 ) /* Chars */
ROM_LOAD( "9", 0x00000, 0x08000, CRC(1922b25e) SHA1(da27122dd1c43770e7385ad602ef397c64d2f754) ) /* On some PCBs there is no explicit */
@@ -396,7 +396,7 @@ ROM_START( raidena )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "8.u212", 0x000000, 0x08000, CRC(cbe055c7) SHA1(34a06a541d059c621d87fdf41546c9d052a61963) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x010000, "gfx1", 0 ) /* Chars */
ROM_LOAD( "9", 0x00000, 0x08000, CRC(1922b25e) SHA1(da27122dd1c43770e7385ad602ef397c64d2f754) ) /* On some PCBs there is no explicit */
@@ -429,7 +429,7 @@ ROM_START( raident )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "8.u212", 0x000000, 0x08000, CRC(cbe055c7) SHA1(34a06a541d059c621d87fdf41546c9d052a61963) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x010000, "gfx1", 0 ) /* Chars */
ROM_LOAD( "9", 0x00000, 0x08000, CRC(1922b25e) SHA1(da27122dd1c43770e7385ad602ef397c64d2f754) ) /* On some PCBs there is no explicit */
@@ -462,7 +462,7 @@ ROM_START( raidenu )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "8.u212", 0x000000, 0x08000, CRC(cbe055c7) SHA1(34a06a541d059c621d87fdf41546c9d052a61963) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x010000, "gfx1", 0 ) /* Chars */
ROM_LOAD( "9", 0x00000, 0x08000, CRC(1922b25e) SHA1(da27122dd1c43770e7385ad602ef397c64d2f754) ) /* On some PCBs there is no explicit */
@@ -495,7 +495,7 @@ ROM_START( raidenk ) /* Same board as above. Not sure why the sound CPU would be
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "8b.u212", 0x000000, 0x08000, CRC(99ee7505) SHA1(b97c8ee5e26e8554b5de506fba3b32cc2fde53c9) ) /* Not encrypted */
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x010000, "gfx1", 0 ) /* Chars */
ROM_LOAD( "9", 0x00000, 0x08000, CRC(1922b25e) SHA1(da27122dd1c43770e7385ad602ef397c64d2f754) ) /* On some PCBs there is no explicit */
@@ -528,7 +528,7 @@ ROM_START( raidenb )/* Different hardware, Main & Sub CPU code not encrypted. */
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "rai6.u212", 0x000000, 0x08000, CRC(723a483b) SHA1(50e67945e83ea1748fb748de3287d26446d4e0a0) ) /* Should be labeled "8" ??? */
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x010000, "gfx1", 0 ) /* Chars */
ROM_LOAD( "9", 0x00000, 0x08000, CRC(1922b25e) SHA1(da27122dd1c43770e7385ad602ef397c64d2f754) ) /* On some PCBs there is no explicit */
@@ -565,7 +565,7 @@ ROM_START( raidenua )/* Different hardware, Main, Sub & sound CPU code not encry
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "8.w8", 0x00000, 0x08000, CRC(105b9c11) SHA1(eb142806f8410d584d914b91207361a15ab18e6f) )
ROM_CONTINUE( 0x10000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x18000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x18000, 0x08000 )
ROM_REGION( 0x010000, "gfx1", 0 ) /* Chars */
ROM_LOAD( "9", 0x00000, 0x08000, CRC(1922b25e) SHA1(da27122dd1c43770e7385ad602ef397c64d2f754) ) /* U016 on this PCB */
diff --git a/src/mame/drivers/raiden2.cpp b/src/mame/drivers/raiden2.cpp
index 888a9663a10..dce9db01f60 100644
--- a/src/mame/drivers/raiden2.cpp
+++ b/src/mame/drivers/raiden2.cpp
@@ -366,7 +366,7 @@ WRITE16_MEMBER(raiden2_state::tile_scroll_w)
COMBINE_DATA(scrollvals + offset);
data = scrollvals[offset];
- tilemap_t *tm = 0;
+ tilemap_t *tm = nullptr;
switch(offset/2) {
case 0: tm = background_layer; break;
case 1: tm = midground_layer; break;
@@ -1559,7 +1559,7 @@ ROM_START( raiden2 )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "snd.u1110", 0x000000, 0x08000, CRC(f51a28f9) SHA1(7ae2e2ba0c8159a544a8fd2bb0c2c694ba849302) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "seibu7.u0724", 0x000000, 0x020000, CRC(c9ec9469) SHA1(a29f480a1bee073be7a177096ef58e1887a5af24) ) /* PCB silkscreened FX0 */
@@ -1599,7 +1599,7 @@ ROM_START( raiden2sw ) // original board with serial # 0008307
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "seibu_5.u1110", 0x000000, 0x08000, CRC(c2028ba2) SHA1(f6a9322b669ff82dea6ecf52ad3bd5d0901cce1b) ) // 99.993896% match
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "seibu_7.u0724", 0x000000, 0x020000, CRC(c9ec9469) SHA1(a29f480a1bee073be7a177096ef58e1887a5af24) ) /* PCB silkscreened FX0 */
@@ -1656,7 +1656,7 @@ ROM_START( raiden2hk )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "seibu5.u1110", 0x000000, 0x08000, CRC(8f130589) SHA1(e58c8beaf9f27f063ffbcb0ab4600123c25ce6f3) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "seibu7.u0724", 0x000000, 0x020000, CRC(c9ec9469) SHA1(a29f480a1bee073be7a177096ef58e1887a5af24) ) /* PCB silkscreened FX0 */
@@ -1730,7 +1730,7 @@ ROM_START( raiden2j )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "seibu5.u1110", 0x000000, 0x08000, CRC(8f130589) SHA1(e58c8beaf9f27f063ffbcb0ab4600123c25ce6f3) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "seibu7.u0724", 0x000000, 0x020000, CRC(c9ec9469) SHA1(a29f480a1bee073be7a177096ef58e1887a5af24) ) /* PCB silkscreened FX0 */
@@ -1769,7 +1769,7 @@ ROM_START( raiden2i )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "seibu5.c.u1110", 0x000000, 0x08000, CRC(5db9f922) SHA1(8257aab98657fe44df19d2a48d85fcf65b3d98c6) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "seibu7.u0724", 0x000000, 0x020000, CRC(c9ec9469) SHA1(a29f480a1bee073be7a177096ef58e1887a5af24) ) /* PCB silkscreened FX0 */
@@ -1826,7 +1826,7 @@ ROM_START( raiden2e )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "r2_snd.u1110", 0x000000, 0x08000, CRC(6bad0a3e) SHA1(eb7ae42353e1984cd60b569c26cdbc3b025a7da6) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "r2_fx0.u0724", 0x000000, 0x020000, CRC(c709bdf6) SHA1(0468d90412b7590d67eaadc0a5e3537cd5e73943) )
@@ -1865,7 +1865,7 @@ ROM_START( raiden2ea )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "r2.5.u1110", 0x000000, 0x08000, CRC(f5f835af) SHA1(5be82ebc582d0da919e9ae1b9e64528bb295efc7) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "r2.7.u0724", 0x000000, 0x020000, CRC(c7aa4d00) SHA1(9ad99d3891598c1ea3f12318400ee67666da56dd) )
@@ -1904,7 +1904,7 @@ ROM_START( raiden2eu ) // same as raiden2ea, different region
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "r2.5.u1110", 0x000000, 0x08000, CRC(f5f835af) SHA1(5be82ebc582d0da919e9ae1b9e64528bb295efc7) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "r2.7.u0724", 0x000000, 0x020000, CRC(c7aa4d00) SHA1(9ad99d3891598c1ea3f12318400ee67666da56dd) )
@@ -1947,7 +1947,7 @@ ROM_START( raiden2eua ) // sort of a mixture of raiden2e easy set with voice rom
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "seibu__5.27c512.u1110", 0x000000, 0x08000, CRC(6d362472) SHA1(a362e500bb9492affde1f7a4da7e08dd16e755df) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "seibu__7.fx0.27c210.u0724", 0x000000, 0x020000, CRC(c7aa4d00) SHA1(9ad99d3891598c1ea3f12318400ee67666da56dd) )
@@ -1991,7 +1991,7 @@ ROM_START( raiden2g ) // this is the same code revision as raiden2eua but a germ
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "raiden_2_5.bin", 0x000000, 0x08000, CRC(6d362472) SHA1(a362e500bb9492affde1f7a4da7e08dd16e755df) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "raiden_2_7.bin", 0x000000, 0x020000, CRC(c7aa4d00) SHA1(9ad99d3891598c1ea3f12318400ee67666da56dd) )
@@ -2030,7 +2030,7 @@ ROM_START( raiden2nl )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "5_u1110.bin", 0x000000, 0x08000, CRC(8f130589) SHA1(e58c8beaf9f27f063ffbcb0ab4600123c25ce6f3) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "7_u0724.bin", 0x000000, 0x020000, CRC(c9ec9469) SHA1(a29f480a1bee073be7a177096ef58e1887a5af24) ) /* PCB silkscreened FX0 */
@@ -2069,7 +2069,7 @@ ROM_START( raiden2f ) // original board with serial # 12476 that matches raiden2
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "seibu5_u1110.bin", 0x000000, 0x08000, CRC(f51a28f9) SHA1(7ae2e2ba0c8159a544a8fd2bb0c2c694ba849302) ) // == raiden2
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "7_u0724.bin", 0x000000, 0x020000, CRC(c9ec9469) SHA1(a29f480a1bee073be7a177096ef58e1887a5af24) ) /* PCB silkscreened FX0 */
@@ -2108,7 +2108,7 @@ ROM_START( raiden2u )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "seibu5.u1110", 0x000000, 0x08000, CRC(6d362472) SHA1(a362e500bb9492affde1f7a4da7e08dd16e755df) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "seibu7.u0724", 0x000000, 0x020000, CRC(c7aa4d00) SHA1(9ad99d3891598c1ea3f12318400ee67666da56dd) )
@@ -2148,7 +2148,7 @@ ROM_START( raiden2dx ) // this set is very weird, it's Raiden II on a Raiden DX
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "u1110.bin", 0x000000, 0x08000, CRC(b8ad8fe7) SHA1(290896f811f717ef6e3ec2152d4db98a9fe9b310) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
//ROM_LOAD( "fx0_u0724.bin", 0x000000, 0x020000, CRC(ded3c718) SHA1(c722ec45cd1b2dab23aac14e9113e0e9697830d3) ) // bad dump
@@ -2186,7 +2186,7 @@ ROM_START( raidendx )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "dx_5.5b", 0x000000, 0x08000, CRC(8c46857a) SHA1(8b269cb20adf960ba4eb594d8add7739dbc9a837) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "dx_7.4s", 0x000000, 0x020000, CRC(c73986d4) SHA1(d29345077753bda53560dedc95dd23f329e521d9) )
@@ -2221,7 +2221,7 @@ ROM_START( raidendxa1 )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "dx_5.5b", 0x000000, 0x08000, CRC(8c46857a) SHA1(8b269cb20adf960ba4eb594d8add7739dbc9a837) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "dx_7.4s", 0x000000, 0x020000, CRC(c73986d4) SHA1(d29345077753bda53560dedc95dd23f329e521d9) )
@@ -2256,7 +2256,7 @@ ROM_START( raidendxa2 )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "dx_5.5b", 0x000000, 0x08000, CRC(8c46857a) SHA1(8b269cb20adf960ba4eb594d8add7739dbc9a837) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "dx_7.4s", 0x000000, 0x020000, CRC(c73986d4) SHA1(d29345077753bda53560dedc95dd23f329e521d9) )
@@ -2291,7 +2291,7 @@ ROM_START( raidendxk )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "dx_5.5b", 0x000000, 0x08000, CRC(8c46857a) SHA1(8b269cb20adf960ba4eb594d8add7739dbc9a837) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "dx_7.4s", 0x000000, 0x020000, CRC(c73986d4) SHA1(d29345077753bda53560dedc95dd23f329e521d9) )
@@ -2326,7 +2326,7 @@ ROM_START( raidendxu )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "dx_5.5b", 0x000000, 0x08000, CRC(8c46857a) SHA1(8b269cb20adf960ba4eb594d8add7739dbc9a837) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "dx_7.4s", 0x000000, 0x020000, CRC(c73986d4) SHA1(d29345077753bda53560dedc95dd23f329e521d9) )
@@ -2361,7 +2361,7 @@ ROM_START( raidendxg )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "5.u1110", 0x000000, 0x08000, CRC(8c46857a) SHA1(8b269cb20adf960ba4eb594d8add7739dbc9a837) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "7.u0724", 0x000000, 0x020000, CRC(c73986d4) SHA1(d29345077753bda53560dedc95dd23f329e521d9) )
@@ -2397,7 +2397,7 @@ ROM_START( raidendxnl )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "u1110_5b.bin", 0x000000, 0x08000, CRC(8c46857a) SHA1(8b269cb20adf960ba4eb594d8add7739dbc9a837) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "seibu_7b_u724.bin", 0x000000, 0x020000, CRC(c73986d4) SHA1(d29345077753bda53560dedc95dd23f329e521d9) )
@@ -2433,7 +2433,7 @@ ROM_START( raidendxj )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "rdxj_5.u1110", 0x000000, 0x08000, CRC(8c46857a) SHA1(8b269cb20adf960ba4eb594d8add7739dbc9a837) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "rdxj_7.u0724", 0x000000, 0x020000, CRC(ec31fa10) SHA1(e39c9d95699dbeb21e3661d863eee503c9011bbc) )
@@ -2471,7 +2471,7 @@ ROM_START( raidendxch )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "dx_5.5b", 0x000000, 0x08000, CRC(8c46857a) SHA1(8b269cb20adf960ba4eb594d8add7739dbc9a837) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD( "dx_7.4s", 0x000000, 0x020000, CRC(c73986d4) SHA1(d29345077753bda53560dedc95dd23f329e521d9) )
@@ -2599,7 +2599,7 @@ ROM_START( zeroteam ) // Fabtek, US licensee, displays 'USA' under zero team log
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "seibu__5.u1110.5b", 0x000000, 0x08000, CRC(7ec1fbc3) SHA1(48299d6530f641b18764cc49e283c347d0918a47) ) // // alternate label "5"
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "seibu__7.u072.5s", 0x000000, 0x010000, CRC(9f6aa0f0) SHA1(1caad7092c07723d12a07aa363ae2aa69cb6be0d) ) // alternate label "7"
@@ -2636,7 +2636,7 @@ ROM_START( zeroteama ) // No licensee, original japan?
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "5.a.u1110.5b", 0x000000, 0x08000, CRC(efc484ca) SHA1(c34b8e3e7f4c2967bc6414348993478ed637d338) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "7.a.u072.5s", 0x000000, 0x010000, CRC(eb10467f) SHA1(fc7d576dc41bc878ff20f0370e669e19d54fcefb) )
@@ -2680,7 +2680,7 @@ ROM_START( zeroteamb ) // No licensee, later japan?
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "5.u1110.5b", 0x000000, 0x08000, CRC(7ec1fbc3) SHA1(48299d6530f641b18764cc49e283c347d0918a47) ) // 5.5c
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "7.u072.5s", 0x000000, 0x010000, CRC(9f6aa0f0) SHA1(1caad7092c07723d12a07aa363ae2aa69cb6be0d) )
@@ -2717,7 +2717,7 @@ ROM_START( zeroteamc ) // Liang Hwa, Taiwan licensee, no special word under logo
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "5.c.u1110.5b", 0x000000, 0x08000, CRC(efc484ca) SHA1(c34b8e3e7f4c2967bc6414348993478ed637d338) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "b7.u072.5s", 0x000000, 0x010000, CRC(30ec0241) SHA1(a0d0be9458bf97cb9764fb85c988bb816710475e) )
@@ -2755,7 +2755,7 @@ ROM_START( zeroteamd ) // Dream Soft, Korea licensee, no special word under logo
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "512kb.u1110.5b", 0x000000, 0x08000, CRC(efc484ca) SHA1(c34b8e3e7f4c2967bc6414348993478ed637d338) ) // this is a soldered mask rom on this pcb version! the contents match the taiwan version eprom; the mask rom has no label
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "512kb.u072.5s", 0x000000, 0x010000, CRC(30ec0241) SHA1(a0d0be9458bf97cb9764fb85c988bb816710475e) ) // this is a soldered mask rom on this pcb version! the contents match the taiwan version eprom; the mask rom has no label
@@ -2793,7 +2793,7 @@ ROM_START( zeroteams ) // No license, displays 'Selection' under logo
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "5_sel.bin", 0x000000, 0x08000, CRC(ed91046c) SHA1(de815c999aeeb814d3f091d5a9ac34ea9a388ddb) )
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "7.u072.5s", 0x000000, 0x010000, CRC(9f6aa0f0) SHA1(1caad7092c07723d12a07aa363ae2aa69cb6be0d) )
@@ -2842,7 +2842,7 @@ ROM_START( zeroteamsr )
ROM_REGION( 0x20000, "audiocpu", ROMREGION_ERASEFF ) /* 64k code for sound Z80 */
ROM_LOAD( "5.5c", 0x000000, 0x08000, CRC(7ec1fbc3) SHA1(48299d6530f641b18764cc49e283c347d0918a47) ) // 5.5c
ROM_CONTINUE(0x10000,0x8000)
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "7.u072.5s", 0x000000, 0x010000, CRC(9f6aa0f0) SHA1(1caad7092c07723d12a07aa363ae2aa69cb6be0d) )
@@ -2918,7 +2918,7 @@ ROM_START( xsedae )
ROM_LOAD( "8.u1110", 0x000000, 0x08000, CRC(2dc2f81a) SHA1(0f6605042e0e295b4256b43dbdf5d53daebe1a9a) )
ROM_CONTINUE(0x10000,0x8000)
ROM_CONTINUE(0x20000,0x10000) // TODO
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x020000, "gfx1", 0 ) /* chars */
ROM_LOAD16_BYTE( "6.u072.5s", 0x000000, 0x010000, CRC(a788402d) SHA1(8a1ac4760cf75cd2e32c1d15f36ad15cce3d411b) )
diff --git a/src/mame/drivers/rallyx.cpp b/src/mame/drivers/rallyx.cpp
index c9556c7e0bf..25b73075293 100644
--- a/src/mame/drivers/rallyx.cpp
+++ b/src/mame/drivers/rallyx.cpp
@@ -803,7 +803,7 @@ static const char *const rallyx_sample_names[] =
{
"*rallyx",
"bang",
- 0 /* end of array */
+ nullptr /* end of array */
};
/*************************************
diff --git a/src/mame/drivers/rc759.cpp b/src/mame/drivers/rc759.cpp
index aa69efb9dd2..0c8c4654921 100644
--- a/src/mame/drivers/rc759.cpp
+++ b/src/mame/drivers/rc759.cpp
@@ -577,7 +577,7 @@ static MACHINE_CONFIG_START( rc759, rc759_state )
MCFG_CENTRONICS_SELECT_HANDLER(WRITELINE(rc759_state, centronics_select_w))
// isbx slot
- MCFG_ISBX_SLOT_ADD("isbx", 0, isbx_cards, NULL)
+ MCFG_ISBX_SLOT_ADD("isbx", 0, isbx_cards, nullptr)
MCFG_ISBX_SLOT_MINTR0_CALLBACK(DEVWRITELINE("maincpu", i80186_cpu_device, int1_w))
MCFG_ISBX_SLOT_MINTR1_CALLBACK(DEVWRITELINE("maincpu", i80186_cpu_device, int3_w))
MCFG_ISBX_SLOT_MDRQT_CALLBACK(DEVWRITELINE("maincpu", i80186_cpu_device, drq0_w))
diff --git a/src/mame/drivers/retofinv.cpp b/src/mame/drivers/retofinv.cpp
index a4376a6f082..b6eebccd332 100644
--- a/src/mame/drivers/retofinv.cpp
+++ b/src/mame/drivers/retofinv.cpp
@@ -43,7 +43,7 @@ void retofinv_state::machine_start()
save_item(NAME(m_sub_irq_mask));
save_item(NAME(m_cpu2_m6000));
- if (m_68705 != NULL) // only for the parent (with MCU)
+ if (m_68705 != nullptr) // only for the parent (with MCU)
{
save_item(NAME(m_from_main));
save_item(NAME(m_from_mcu));
@@ -74,7 +74,7 @@ WRITE8_MEMBER(retofinv_state::cpu2_reset_w)
WRITE8_MEMBER(retofinv_state::mcu_reset_w)
{
/* the bootlegs don't have a MCU, so make sure it's there before trying to reset it */
- if (m_68705 != NULL)
+ if (m_68705 != nullptr)
m_68705->set_input_line(INPUT_LINE_RESET, data ? CLEAR_LINE : ASSERT_LINE);
}
diff --git a/src/mame/drivers/rmnimbus.cpp b/src/mame/drivers/rmnimbus.cpp
index 4df84e3d92a..52248450e84 100644
--- a/src/mame/drivers/rmnimbus.cpp
+++ b/src/mame/drivers/rmnimbus.cpp
@@ -166,7 +166,7 @@ static MACHINE_CONFIG_START( nimbus, rmnimbus_state )
MCFG_RS232_PORT_ADD("rs232a", keyboard, "rmnkbd")
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, rxa_w))
- MCFG_RS232_PORT_ADD("rs232b", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232b", 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_RI_HANDLER(DEVWRITELINE(Z80SIO_TAG, z80dart_device, rib_w))
diff --git a/src/mame/drivers/rotaryf.cpp b/src/mame/drivers/rotaryf.cpp
index ff74598e930..7c9c27304e8 100644
--- a/src/mame/drivers/rotaryf.cpp
+++ b/src/mame/drivers/rotaryf.cpp
@@ -63,7 +63,7 @@ static const char *const rotaryf_sample_names[] =
"7", /* fleet move 4 */
"8", /* UFO/saucer hit */
"9", /* bonus base */
- 0
+ nullptr
};
diff --git a/src/mame/drivers/royalmah.cpp b/src/mame/drivers/royalmah.cpp
index 0d49e09ae8c..899f449e6e5 100644
--- a/src/mame/drivers/royalmah.cpp
+++ b/src/mame/drivers/royalmah.cpp
@@ -3782,7 +3782,7 @@ ROM_START( daisyari )
ROM_REGION( 0x50000, "maincpu", 0 )
ROM_LOAD( "1a.bin", 0x00000, 0x10000, CRC(7d14f90c) SHA1(742684d0785a93a45de0467e004db00531d016e2) )
/* bank switched ROMs follow */
- ROM_COPY( "maincpu", 0x00000, 0x10000, 0x10000 )
+ ROM_COPY( "maincpu", nullptr, 0x10000, 0x10000 )
ROM_LOAD( "1c.bin", 0x20000, 0x10000, CRC(edfe52b9) SHA1(704c107fc8b89f561d2031d10468c124ab3d007a) ) /*2*/
ROM_LOAD( "1d.bin", 0x30000, 0x10000, CRC(38f54a98) SHA1(d06eb851c75bfb2d8dd99bf5072c7f359f1f17e2) ) /*3*/
ROM_LOAD( "1f.bin", 0x40000, 0x10000, CRC(b635f295) SHA1(dba3a59133c33c915dba678c510f00fb476f24da) ) /*4*/
@@ -3814,7 +3814,7 @@ ROM_START( mjclub )
ROM_REGION( 0x80000, "maincpu", 0 )
ROM_LOAD( "5", 0x00000, 0x10000, CRC(cd148465) SHA1(42d1848656e461cfbf3fc0ba88ef8f4e67425f8c) )
/* bank switched ROMs follow */
- ROM_COPY( "maincpu", 0x00000, 0x10000, 0x10000 )
+ ROM_COPY( "maincpu", nullptr, 0x10000, 0x10000 )
ROM_LOAD( "1", 0x50000, 0x10000, CRC(d0131f4b) SHA1(aac40b47b48f0ebfb07aaf17cb2a080fdcaa4697) )
ROM_LOAD( "3", 0x60000, 0x10000, CRC(25628c38) SHA1(5166934c488c2f91bd6026c7896ad3536727d950) )
ROM_LOAD( "4", 0x70000, 0x10000, CRC(a6ada333) SHA1(5fd44bf298a6f327118b98641af1aa0910519ded) )
diff --git a/src/mame/drivers/rpunch.cpp b/src/mame/drivers/rpunch.cpp
index e1307464550..445e9395a61 100644
--- a/src/mame/drivers/rpunch.cpp
+++ b/src/mame/drivers/rpunch.cpp
@@ -822,7 +822,7 @@ DRIVER_INIT_MEMBER(rpunch_state,svolley)
/* the main differences between Super Volleyball and Rabbit Punch are */
/* the lack of direct-mapped bitmap and a different palette base for sprites */
m_sprite_palette = 0x080;
- m_bitmapram.set_target(NULL, 0);
+ m_bitmapram.set_target(nullptr, 0);
}
diff --git a/src/mame/drivers/rt1715.cpp b/src/mame/drivers/rt1715.cpp
index 30b2a2e43cb..fe9f22c8b30 100644
--- a/src/mame/drivers/rt1715.cpp
+++ b/src/mame/drivers/rt1715.cpp
@@ -262,7 +262,7 @@ static const z80_daisy_config rt1715_daisy_chain[] =
{ "a72" },
{ "a30" },
{ "a29" },
- { NULL }
+ { nullptr }
};
static MACHINE_CONFIG_START( rt1715, rt1715_state )
diff --git a/src/mame/drivers/safarir.cpp b/src/mame/drivers/safarir.cpp
index f04a846576d..7a912b2d191 100644
--- a/src/mame/drivers/safarir.cpp
+++ b/src/mame/drivers/safarir.cpp
@@ -294,7 +294,7 @@ static const char *const safarir_sample_names[] =
"sound6",
"sound7",
"sound8",
- 0
+ nullptr
};
diff --git a/src/mame/drivers/sage2.cpp b/src/mame/drivers/sage2.cpp
index 86b6fa4bb17..6b39a24db2e 100644
--- a/src/mame/drivers/sage2.cpp
+++ b/src/mame/drivers/sage2.cpp
@@ -232,7 +232,7 @@ WRITE8_MEMBER( sage2_state::ppi0_pc_w )
update_fdc_int();
// drive select
- m_floppy = NULL;
+ m_floppy = nullptr;
if (!BIT(data, 3)) m_floppy = m_floppy0->get_device();
if (!BIT(data, 4)) m_floppy = m_floppy1->get_device();
@@ -490,7 +490,7 @@ static MACHINE_CONFIG_START( sage2, sage2_state )
MCFG_I8251_RXRDY_HANDLER(DEVWRITELINE(I8259_TAG, pic8259_device, ir1_w))
MCFG_I8251_TXRDY_HANDLER(DEVWRITELINE(I8259_TAG, pic8259_device, ir3_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(I8251_1_TAG, i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(I8251_1_TAG, i8251_device, write_dsr))
diff --git a/src/mame/drivers/samcoupe.cpp b/src/mame/drivers/samcoupe.cpp
index ba3cb454cf6..743c76a58cf 100644
--- a/src/mame/drivers/samcoupe.cpp
+++ b/src/mame/drivers/samcoupe.cpp
@@ -76,7 +76,7 @@ READ8_MEMBER(samcoupe_state::samcoupe_disk_r)
{
/* drive and side is encoded into bit 5 and 3 */
floppy_connector *con = (BIT(offset, 4) ? m_wd1772_1 : m_wd1772_0);
- floppy_image_device *floppy = con ? con->get_device() : 0;
+ floppy_image_device *floppy = con ? con->get_device() : nullptr;
if(floppy)
floppy->ss_w(BIT(offset, 2));
@@ -98,7 +98,7 @@ WRITE8_MEMBER(samcoupe_state::samcoupe_disk_w)
{
/* drive and side is encoded into bit 5 and 3 */
floppy_connector *con = (BIT(offset, 4) ? m_wd1772_1 : m_wd1772_0);
- floppy_image_device *floppy = con ? con->get_device() : 0;
+ floppy_image_device *floppy = con ? con->get_device() : nullptr;
if(floppy)
floppy->ss_w(BIT(offset, 2));
diff --git a/src/mame/drivers/saturn.cpp b/src/mame/drivers/saturn.cpp
index 05f67b642fc..ede18d2ae0d 100644
--- a/src/mame/drivers/saturn.cpp
+++ b/src/mame/drivers/saturn.cpp
@@ -1159,7 +1159,7 @@ MACHINE_CONFIG_DERIVED( saturnus, saturn )
MCFG_SOFTWARE_LIST_ADD("cd_list","saturn")
MCFG_SOFTWARE_LIST_FILTER("cd_list","NTSC-U")
- MCFG_SATURN_CARTRIDGE_ADD("exp", saturn_cart, NULL)
+ MCFG_SATURN_CARTRIDGE_ADD("exp", saturn_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","sat_cart")
MACHINE_CONFIG_END
@@ -1170,7 +1170,7 @@ MACHINE_CONFIG_DERIVED( saturneu, saturn )
MCFG_SOFTWARE_LIST_ADD("cd_list","saturn")
MCFG_SOFTWARE_LIST_FILTER("cd_list","PAL")
- MCFG_SATURN_CARTRIDGE_ADD("exp", saturn_cart, NULL)
+ MCFG_SATURN_CARTRIDGE_ADD("exp", saturn_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","sat_cart")
MACHINE_CONFIG_END
@@ -1181,7 +1181,7 @@ MACHINE_CONFIG_DERIVED( saturnjp, saturn )
MCFG_SOFTWARE_LIST_ADD("cd_list","saturn")
MCFG_SOFTWARE_LIST_FILTER("cd_list","NTSC-J")
- MCFG_SATURN_CARTRIDGE_ADD("exp", saturn_cart, NULL)
+ MCFG_SATURN_CARTRIDGE_ADD("exp", saturn_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","sat_cart")
MACHINE_CONFIG_END
@@ -1240,7 +1240,7 @@ ROM_START(saturnjp)
ROM_SYSTEM_BIOS(2, "100", "Japan v1.00 (940921)")
ROMX_LOAD("sega_100.bin", 0x00000000, 0x00080000, CRC(2aba43c2) SHA1(2b8cb4f87580683eb4d760e4ed210813d667f0a2), ROM_BIOS(3))
ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */
- ROM_COPY( "maincpu",0,0,0x080000)
+ ROM_COPY( "maincpu",nullptr,0,0x080000)
ROM_END
/* Overseas Saturn */
@@ -1252,7 +1252,7 @@ ROM_START(saturn)
ROM_SYSTEM_BIOS(1, "100a", "Overseas v1.00a (941115)")
ROMX_LOAD("sega_100a.bin", 0x00000000, 0x00080000, CRC(f90f0089) SHA1(3bb41feb82838ab9a35601ac666de5aacfd17a58), ROM_BIOS(2))
ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */
- ROM_COPY( "maincpu",0,0,0x080000)
+ ROM_COPY( "maincpu",nullptr,0,0x080000)
ROM_END
ROM_START(saturneu)
@@ -1263,14 +1263,14 @@ ROM_START(saturneu)
ROM_SYSTEM_BIOS(1, "100a", "Overseas v1.00a (941115)")
ROMX_LOAD("sega_100a.bin", 0x00000000, 0x00080000, CRC(f90f0089) SHA1(3bb41feb82838ab9a35601ac666de5aacfd17a58), ROM_BIOS(2))
ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */
- ROM_COPY( "maincpu",0,0,0x080000)
+ ROM_COPY( "maincpu",nullptr,0,0x080000)
ROM_END
ROM_START(vsaturn)
ROM_REGION( 0x480000, "maincpu", ROMREGION_ERASEFF ) /* SH2 code */
ROM_LOAD("vsaturn.bin", 0x00000000, 0x00080000, CRC(e4d61811) SHA1(4154e11959f3d5639b11d7902b3a393a99fb5776))
ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */
- ROM_COPY( "maincpu",0,0,0x080000)
+ ROM_COPY( "maincpu",nullptr,0,0x080000)
ROM_END
ROM_START(hisaturn)
@@ -1280,7 +1280,7 @@ ROM_START(hisaturn)
ROM_SYSTEM_BIOS(1, "101", "v1.01 (950130)")
ROMX_LOAD("hisaturn.bin", 0x00000000, 0x00080000, CRC(721e1b60) SHA1(49d8493008fa715ca0c94d99817a5439d6f2c796), ROM_BIOS(2))
ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */
- ROM_COPY( "maincpu",0,0,0x080000)
+ ROM_COPY( "maincpu",nullptr,0,0x080000)
ROM_END
/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */
diff --git a/src/mame/drivers/savquest.cpp b/src/mame/drivers/savquest.cpp
index b34f8a84a95..54a5a32934e 100644
--- a/src/mame/drivers/savquest.cpp
+++ b/src/mame/drivers/savquest.cpp
@@ -808,14 +808,14 @@ static MACHINE_CONFIG_START( savquest, savquest_state )
MCFG_DS12885_ADD("rtc")
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(13, NULL, pci_3dfx_r, pci_3dfx_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_PCI_BUS_LEGACY_DEVICE(13, nullptr, pci_3dfx_r, pci_3dfx_w)
- 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_IDE_CONTROLLER_32_ADD("ide2", ata_devices, NULL, NULL, true)
+ MCFG_IDE_CONTROLLER_32_ADD("ide2", ata_devices, nullptr, nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("pic8259_2", pic8259_device, ir7_w))
/* sound hardware */
diff --git a/src/mame/drivers/sbrain.cpp b/src/mame/drivers/sbrain.cpp
index 6c760eee0fe..84439358b81 100644
--- a/src/mame/drivers/sbrain.cpp
+++ b/src/mame/drivers/sbrain.cpp
@@ -153,7 +153,7 @@ WRITE8_MEMBER( sbrain_state::port08_w )
{
m_port08 = data | 0xc0;
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (BIT(m_port08, 1)) floppy = m_floppy0->get_device();
if (BIT(m_port08, 2)) floppy = m_floppy1->get_device();
diff --git a/src/mame/drivers/scorpion.cpp b/src/mame/drivers/scorpion.cpp
index 897cd6ff054..8f8dc435c68 100644
--- a/src/mame/drivers/scorpion.cpp
+++ b/src/mame/drivers/scorpion.cpp
@@ -188,7 +188,7 @@ MACHINE_RESET_MEMBER(scorpion_state,scorpion)
address_space &space = m_maincpu->space(AS_PROGRAM);
m_p_ram = memregion("maincpu")->base();
- m_ram_0000 = NULL;
+ m_ram_0000 = nullptr;
space.install_read_bank(0x0000, 0x3fff, "bank1");
space.install_write_handler(0x0000, 0x3fff, write8_delegate(FUNC(scorpion_state::scorpion_0000_w),this));
diff --git a/src/mame/drivers/scv.cpp b/src/mame/drivers/scv.cpp
index 66b0d213c47..321be2388b5 100644
--- a/src/mame/drivers/scv.cpp
+++ b/src/mame/drivers/scv.cpp
@@ -679,7 +679,7 @@ static MACHINE_CONFIG_START( scv, scv_state )
MCFG_UPD1771_ACK_HANDLER(WRITELINE(scv_state, upd1771_ack_w))
MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 )
- MCFG_SCV_CARTRIDGE_ADD("cartslot", scv_cart, NULL)
+ MCFG_SCV_CARTRIDGE_ADD("cartslot", scv_cart, nullptr)
/* Software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","scv")
diff --git a/src/mame/drivers/sealy.cpp b/src/mame/drivers/sealy.cpp
index 00edc0730f2..00373c57a35 100644
--- a/src/mame/drivers/sealy.cpp
+++ b/src/mame/drivers/sealy.cpp
@@ -122,7 +122,7 @@ MACHINE_CONFIG_END
ROM_START( crzyddz )
ROM_REGION( 0x40000, "maincpu", 0 )
ROM_LOAD( "crzyddz_m30624.mcu", 0x00000, 0x40000, NO_DUMP )
- ROM_FILL( 0x00000, 0x40000, 0 )
+ ROM_FILL( 0x00000, 0x40000, nullptr )
ROM_REGION( 0x200000, "gfx1", 0 )
ROM_LOAD( "1", 0x000000, 0x200000, CRC(d202a278) SHA1(3ae75d6942527e58a56a703e40de22e70535b332) )
diff --git a/src/mame/drivers/seattle.cpp b/src/mame/drivers/seattle.cpp
index 6f09430432c..3a83f2d8d9d 100644
--- a/src/mame/drivers/seattle.cpp
+++ b/src/mame/drivers/seattle.cpp
@@ -611,12 +611,12 @@ void seattle_state::machine_reset()
m_cpu_stalled_on_voodoo = FALSE;
/* reset either the DCS2 board or the CAGE board */
- if (machine().device("dcs") != NULL)
+ if (machine().device("dcs") != nullptr)
{
m_dcs->reset_w(1);
m_dcs->reset_w(0);
}
- else if (machine().device("cage") != NULL)
+ else if (machine().device("cage") != nullptr)
{
m_cage->control_w(0);
m_cage->control_w(3);
@@ -2518,7 +2518,7 @@ static MACHINE_CONFIG_START( seattle_common, seattle_state )
MCFG_NVRAM_ADD_1FILL("nvram")
- MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(seattle_state, ide_interrupt))
MCFG_BUS_MASTER_IDE_CONTROLLER_SPACE("maincpu", AS_PROGRAM)
diff --git a/src/mame/drivers/segac2.cpp b/src/mame/drivers/segac2.cpp
index 56c92e7b2e1..506ed4fdc0c 100644
--- a/src/mame/drivers/segac2.cpp
+++ b/src/mame/drivers/segac2.cpp
@@ -277,7 +277,7 @@ MACHINE_RESET_MEMBER(segac2_state,segac2)
WRITE16_MEMBER(segac2_state::segac2_upd7759_w)
{
/* make sure we have a UPD chip */
- if (m_upd7759 == NULL)
+ if (m_upd7759 == nullptr)
return;
/* only works if we're accessing the low byte */
@@ -415,7 +415,7 @@ READ8_MEMBER(segac2_state::io_portc_r)
{
// D7 : From MB3773P pin 1. (/RESET output)
// D6 : From uPD7759 pin 18. (/BUSY output)
- int busy = (m_upd7759 != NULL) ? (m_upd7759->busy_r() << 6) : 0x40;
+ int busy = (m_upd7759 != nullptr) ? (m_upd7759->busy_r() << 6) : 0x40;
return 0xbf | busy;
}
@@ -1706,7 +1706,7 @@ ROM_START( ribbit ) /* Ribbit (c)1991 Sega */
ROM_REGION( 0x200000, "maincpu", 0 )
ROM_LOAD16_BYTE( "epr-13833.ic32", 0x000000, 0x040000, CRC(5347f8ce) SHA1(b95b99536157edfbf0d74a42f64235f47dca7ee1) )
ROM_LOAD16_BYTE( "epr-13832.ic31", 0x000001, 0x040000, CRC(889c42c2) SHA1(0839a50a68b64a66d995f1bfaff42fcb60bb4d45) )
- ROM_COPY( "maincpu", 0x000000, 0x080000, 0x080000 )
+ ROM_COPY( "maincpu", nullptr, 0x080000, 0x080000 )
ROM_LOAD16_BYTE( "epr-13838.ic34", 0x100000, 0x080000, CRC(a5d62ac3) SHA1(8d83a7bc4017e125ef4231278f766b2368d5fc1f) )
ROM_LOAD16_BYTE( "epr-13837.ic33", 0x100001, 0x080000, CRC(434de159) SHA1(cf2973131cabf2bc0ebb2bfe9f804ad3d7d0a733) )
@@ -1981,7 +1981,7 @@ void segac2_state::segac2_common_init(segac2_prot_delegate prot_func)
DRIVER_INIT_CALL(megadriv_c2);
m_prot_func = prot_func;
- if (m_upd7759 != NULL)
+ if (m_upd7759 != nullptr)
m_maincpu->space(AS_PROGRAM).install_write_handler(0x880000, 0x880001, 0, 0x13fefe, write16_delegate(FUNC(segac2_state::segac2_upd7759_w),this));
}
diff --git a/src/mame/drivers/segag80r.cpp b/src/mame/drivers/segag80r.cpp
index 4b3d4c86657..6eb4edb91f3 100644
--- a/src/mame/drivers/segag80r.cpp
+++ b/src/mame/drivers/segag80r.cpp
@@ -785,18 +785,18 @@ static const gfx_layout charlayout =
static GFXDECODE_START( segag80r )
- GFXDECODE_ENTRY( NULL, 0x0000, charlayout, 0, 16 )
+ GFXDECODE_ENTRY( nullptr, 0x0000, charlayout, 0, 16 )
GFXDECODE_END
static GFXDECODE_START( spaceod )
- GFXDECODE_ENTRY( NULL, 0x0000, charlayout, 0, 16 )
+ GFXDECODE_ENTRY( nullptr, 0x0000, charlayout, 0, 16 )
GFXDECODE_ENTRY( "gfx1", 0x0000, gfx_8x8x6_planar, 64, 1 )
GFXDECODE_END
static GFXDECODE_START( monsterb )
- GFXDECODE_ENTRY( NULL, 0x0000, charlayout, 0, 16 )
+ GFXDECODE_ENTRY( nullptr, 0x0000, charlayout, 0, 16 )
GFXDECODE_ENTRY( "gfx1", 0x0000, gfx_8x8x2_planar, 64, 16 )
GFXDECODE_END
diff --git a/src/mame/drivers/segag80v.cpp b/src/mame/drivers/segag80v.cpp
index 6bbbf9cb348..5410b92b122 100644
--- a/src/mame/drivers/segag80v.cpp
+++ b/src/mame/drivers/segag80v.cpp
@@ -811,7 +811,7 @@ static const char *const elim_sample_names[] =
"elim10",
"elim11",
"elim12",
- 0 /* end of array */
+ nullptr /* end of array */
};
@@ -835,7 +835,7 @@ static const char *const spacfury_sample_names[] =
"sfury8",
"sfury9",
"sfury10",
- 0 /* end of array */
+ nullptr /* end of array */
};
/*************************************
@@ -858,7 +858,7 @@ static const char *const zektor_sample_names[] =
"elim9", /* 8 small explosion */
"elim10", /* 9 med explosion */
"elim11", /* 10 big explosion */
- 0
+ nullptr
};
diff --git a/src/mame/drivers/segahang.cpp b/src/mame/drivers/segahang.cpp
index 270f2f4f442..d74a074e55e 100644
--- a/src/mame/drivers/segahang.cpp
+++ b/src/mame/drivers/segahang.cpp
@@ -372,7 +372,7 @@ void segahang_state::device_timer(emu_timer &timer, device_timer_id id, int para
case TID_INIT_I8751:
if (!m_i8751_vblank_hook.isnull())
m_mcu->suspend(SUSPEND_REASON_DISABLE, 1);
- else if (m_mcu != NULL)
+ else if (m_mcu != nullptr)
machine().scheduler().boost_interleave(attotime::zero, attotime::from_msec(10));
break;
diff --git a/src/mame/drivers/segapico.cpp b/src/mame/drivers/segapico.cpp
index cc28f00d4dd..5efbeb7ceef 100644
--- a/src/mame/drivers/segapico.cpp
+++ b/src/mame/drivers/segapico.cpp
@@ -396,7 +396,7 @@ static MACHINE_CONFIG_START( pico, pico_state )
MCFG_MACHINE_START_OVERRIDE( pico_state, pico )
MCFG_MACHINE_RESET_OVERRIDE( pico_base_state, ms_megadriv )
- MCFG_PICO_CARTRIDGE_ADD("picoslot", pico_cart, NULL)
+ MCFG_PICO_CARTRIDGE_ADD("picoslot", pico_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","pico")
MCFG_SOUND_ADD("315_5641", SEGA_315_5641_PCM, UPD7759_STANDARD_CLOCK*2)
@@ -417,7 +417,7 @@ static MACHINE_CONFIG_START( picopal, pico_state )
MCFG_MACHINE_START_OVERRIDE( pico_state, pico )
MCFG_MACHINE_RESET_OVERRIDE( pico_base_state, ms_megadriv )
- MCFG_PICO_CARTRIDGE_ADD("picoslot", pico_cart, NULL)
+ MCFG_PICO_CARTRIDGE_ADD("picoslot", pico_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","pico")
MCFG_SOUND_ADD("315_5641", SEGA_315_5641_PCM, UPD7759_STANDARD_CLOCK*2)
@@ -608,7 +608,7 @@ static MACHINE_CONFIG_START( copera, copera_state )
MCFG_MACHINE_START_OVERRIDE( copera_state, copera )
MCFG_MACHINE_RESET_OVERRIDE( pico_base_state, ms_megadriv )
- MCFG_COPERA_CARTRIDGE_ADD("coperaslot", copera_cart, NULL)
+ MCFG_COPERA_CARTRIDGE_ADD("coperaslot", copera_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","copera")
MCFG_SOUND_ADD("315_5641", SEGA_315_5641_PCM, UPD7759_STANDARD_CLOCK)
diff --git a/src/mame/drivers/segas16a.cpp b/src/mame/drivers/segas16a.cpp
index 4a1ddcce8ca..5dfa7865ca0 100644
--- a/src/mame/drivers/segas16a.cpp
+++ b/src/mame/drivers/segas16a.cpp
@@ -191,7 +191,7 @@ WRITE8_MEMBER( segas16a_state::misc_control_w )
m_sprites->set_flip(data & 0x80);
// bit 6: set 8751 interrupt line
- if (m_mcu != NULL)
+ if (m_mcu != nullptr)
m_mcu->set_input_line(MCS51_INT1_LINE, (data & 0x40) ? CLEAR_LINE : ASSERT_LINE);
// bit 4: enable display
@@ -636,7 +636,7 @@ void segas16a_state::device_timer(emu_timer &timer, device_timer_id id, int para
case TID_INIT_I8751:
if (!m_i8751_vblank_hook.isnull())
m_mcu->suspend(SUSPEND_REASON_DISABLE, 1);
- else if (m_mcu != NULL)
+ else if (m_mcu != nullptr)
machine().scheduler().boost_interleave(attotime::zero, attotime::from_msec(10));
break;
diff --git a/src/mame/drivers/segas16b.cpp b/src/mame/drivers/segas16b.cpp
index 818044b0781..923135b376b 100644
--- a/src/mame/drivers/segas16b.cpp
+++ b/src/mame/drivers/segas16b.cpp
@@ -984,7 +984,7 @@ UINT8 segas16b_state::mapper_sound_r()
void segas16b_state::mapper_sound_w(UINT8 data)
{
soundlatch_write(data & 0xff);
- if (m_soundcpu != NULL)
+ if (m_soundcpu != nullptr)
m_soundcpu->set_input_line(0, HOLD_LINE);
}
@@ -1283,7 +1283,7 @@ INTERRUPT_GEN_MEMBER( segas16b_state::i8751_main_cpu_vblank )
void segas16b_state::machine_reset()
{
// if we have a hard-coded mapping configuration, set it now
- if (m_i8751_initial_config != NULL)
+ if (m_i8751_initial_config != nullptr)
m_mapper->configure_explicit(m_i8751_initial_config);
// queue up a timer to either boost interleave or disable the MCU
@@ -1313,7 +1313,7 @@ void segas16b_state::device_timer(emu_timer &timer, device_timer_id id, int para
case TID_INIT_I8751:
if (!m_i8751_vblank_hook.isnull())
m_mcu->suspend(SUSPEND_REASON_DISABLE, 1);
- else if (m_mcu != NULL)
+ else if (m_mcu != nullptr)
machine().scheduler().boost_interleave(attotime::zero, attotime::from_msec(10));
break;
@@ -8540,7 +8540,7 @@ READ16_MEMBER( isgsm_state::cart_data_r )
WRITE16_MEMBER( isgsm_state::data_w )
{
- UINT8 *dest = 0;
+ UINT8 *dest = nullptr;
// m_data_type
// rrrp o?dd
diff --git a/src/mame/drivers/segas18.cpp b/src/mame/drivers/segas18.cpp
index 3983dbc8098..90b84b9d9e6 100644
--- a/src/mame/drivers/segas18.cpp
+++ b/src/mame/drivers/segas18.cpp
@@ -182,7 +182,7 @@ void segas18_state::machine_reset()
m_vdp->device_reset_old();
// if we are running with a real live 8751, we need to boost the interleave at startup
- if (m_mcu != NULL && m_mcu->type() == I8751)
+ if (m_mcu != nullptr && m_mcu->type() == I8751)
synchronize(TID_INITIAL_BOOST);
}
diff --git a/src/mame/drivers/segas24.cpp b/src/mame/drivers/segas24.cpp
index 644b4f723c0..729fee2197e 100644
--- a/src/mame/drivers/segas24.cpp
+++ b/src/mame/drivers/segas24.cpp
@@ -2374,7 +2374,7 @@ DRIVER_INIT_MEMBER(segas24_state,hotrod)
{
io_r = &segas24_state::hotrod_io_r;
io_w = &segas24_state::hotrod_io_w;
- mlatch_table = 0;
+ mlatch_table = nullptr;
// Sector Size
// 1 8192
@@ -2409,7 +2409,7 @@ DRIVER_INIT_MEMBER(segas24_state,sspirits)
{
io_r = &segas24_state::hotrod_io_r;
io_w = &segas24_state::hotrod_io_w;
- mlatch_table = 0;
+ mlatch_table = nullptr;
track_size = 0x2d00;
}
@@ -2417,7 +2417,7 @@ DRIVER_INIT_MEMBER(segas24_state,sspiritj)
{
io_r = &segas24_state::hotrod_io_r;
io_w = &segas24_state::hotrod_io_w;
- mlatch_table = 0;
+ mlatch_table = nullptr;
track_size = 0x2f00;
}
@@ -2434,7 +2434,7 @@ DRIVER_INIT_MEMBER(segas24_state,sgmast)
{
io_r = &segas24_state::hotrod_io_r;
io_w = &segas24_state::hotrod_io_w;
- mlatch_table = 0;
+ mlatch_table = nullptr;
track_size = 0x2d00;
}
@@ -2442,7 +2442,7 @@ DRIVER_INIT_MEMBER(segas24_state,qsww)
{
io_r = &segas24_state::hotrod_io_r;
io_w = &segas24_state::hotrod_io_w;
- mlatch_table = 0;
+ mlatch_table = nullptr;
track_size = 0x2d00;
}
@@ -2450,7 +2450,7 @@ DRIVER_INIT_MEMBER(segas24_state,gground)
{
io_r = &segas24_state::hotrod_io_r;
io_w = &segas24_state::hotrod_io_w;
- mlatch_table = 0;
+ mlatch_table = nullptr;
track_size = 0x2d00;
}
@@ -2458,7 +2458,7 @@ DRIVER_INIT_MEMBER(segas24_state,crkdown)
{
io_r = &segas24_state::hotrod_io_r;
io_w = &segas24_state::hotrod_io_w;
- mlatch_table = 0;
+ mlatch_table = nullptr;
track_size = 0x2d00;
}
@@ -2466,7 +2466,7 @@ DRIVER_INIT_MEMBER(segas24_state,roughrac)
{
io_r = &segas24_state::hotrod_io_r;
io_w = &segas24_state::hotrod_io_w;
- mlatch_table = 0;
+ mlatch_table = nullptr;
track_size = 0x2d00;
}
diff --git a/src/mame/drivers/segaxbd.cpp b/src/mame/drivers/segaxbd.cpp
index 98a709b5810..8b26b9149b5 100644
--- a/src/mame/drivers/segaxbd.cpp
+++ b/src/mame/drivers/segaxbd.cpp
@@ -284,10 +284,10 @@ segaxbd_state::segaxbd_state(const machine_config &mconfig, const char *tag, dev
m_segaic16vid(*this, "segaic16vid"),
m_segaic16road(*this, "segaic16road"),
m_road_priority(1),
- m_scanline_timer(NULL),
+ m_scanline_timer(nullptr),
m_timer_irq_state(0),
m_vblank_irq_state(0),
- m_loffire_sync(NULL),
+ m_loffire_sync(nullptr),
m_lastsurv_mux(0),
m_paletteram(*this, "paletteram"),
m_gprider_hack(false),
@@ -598,7 +598,7 @@ WRITE16_MEMBER( segaxbd_state::iochip_0_w )
m_segaic16vid->set_display_enable(data & 0x20);
m_soundcpu->set_input_line(INPUT_LINE_RESET, (data & 0x01) ? CLEAR_LINE : ASSERT_LINE);
- if (m_soundcpu2 != NULL)
+ if (m_soundcpu2 != nullptr)
m_soundcpu2->set_input_line(INPUT_LINE_RESET, (data & 0x01) ? CLEAR_LINE : ASSERT_LINE);
break;
@@ -793,7 +793,7 @@ void segaxbd_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_soundcpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
// if an extra sound board is attached, do an nmi there as well
- if (m_soundcpu2 != NULL)
+ if (m_soundcpu2 != nullptr)
m_soundcpu2->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
break;
@@ -1024,16 +1024,16 @@ void segaxbd_state::palette_init()
double weights_normal[6];
compute_resistor_weights(0, 255, -1.0,
6, resistances_normal, weights_normal, 0, 0,
- 0, NULL, NULL, 0, 0,
- 0, NULL, NULL, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
// compute weight table for shadow/hilight palette entries
static const int resistances_sh[6] = { 3900, 2000, 1000, 1000/2, 1000/4, 470 };
double weights_sh[6];
compute_resistor_weights(0, 255, -1.0,
6, resistances_sh, weights_sh, 0, 0,
- 0, NULL, NULL, 0, 0,
- 0, NULL, NULL, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
// compute R, G, B for each weight
for (int value = 0; value < 32; value++)
diff --git a/src/mame/drivers/seibuspi.cpp b/src/mame/drivers/seibuspi.cpp
index 85a8ddd99bb..27011a13ef4 100644
--- a/src/mame/drivers/seibuspi.cpp
+++ b/src/mame/drivers/seibuspi.cpp
@@ -879,7 +879,7 @@ READ8_MEMBER(seibuspi_state::sound_fifo_status_r)
// d0: fifo full flag (z80)
// d1: fifo empty flag (main)
// other bits: unused?
- int d1 = (m_soundfifo2 != NULL) ? m_soundfifo2->ef_r() << 1 : 0;
+ int d1 = (m_soundfifo2 != nullptr) ? m_soundfifo2->ef_r() << 1 : 0;
return d1 | m_soundfifo1->ff_r();
}
@@ -1060,7 +1060,7 @@ READ8_MEMBER(seibuspi_state::z80_soundfifo_status_r)
// d0: fifo full flag (main)
// d1: fifo empty flag (z80)
// other bits: unused?
- int d0 = (m_soundfifo2 != NULL) ? m_soundfifo2->ff_r() : 0;
+ int d0 = (m_soundfifo2 != nullptr) ? m_soundfifo2->ff_r() : 0;
return d0 | m_soundfifo1->ef_r() << 1;
}
@@ -1767,7 +1767,7 @@ IRQ_CALLBACK_MEMBER(seibuspi_state::spi_irq_callback)
void seibuspi_state::init_spi_common()
{
- if (m_z80_rom != NULL)
+ if (m_z80_rom != nullptr)
membank("bank1")->configure_entries(0, 8, m_z80_rom->base(), 0x8000);
}
@@ -1806,7 +1806,7 @@ void seibuspi_state::machine_start()
save_item(NAME(m_z80_lastbank));
save_item(NAME(m_sb_coin_latch));
save_item(NAME(m_ejsakura_input_port));
- if (m_z80_rom != NULL) save_pointer(NAME(m_z80_rom->base()), m_z80_rom->bytes());
+ if (m_z80_rom != nullptr) save_pointer(NAME(m_z80_rom->base()), m_z80_rom->bytes());
}
MACHINE_RESET_MEMBER(seibuspi_state,spi)
diff --git a/src/mame/drivers/sengokmj.cpp b/src/mame/drivers/sengokmj.cpp
index 1771d9515a5..8484553cab2 100644
--- a/src/mame/drivers/sengokmj.cpp
+++ b/src/mame/drivers/sengokmj.cpp
@@ -612,7 +612,7 @@ ROM_START( sengokmj )
ROM_REGION( 0x20000, "audiocpu", 0 ) /* 64k code for sound Z80 */
ROM_LOAD( "mah1-2-1.013", 0x000000, 0x08000, CRC(6a4f31b8) SHA1(5e1d7ed299c1fd65c7a43faa02831220f4251733) )
ROM_CONTINUE( 0x010000, 0x08000 )
- ROM_COPY( "audiocpu", 0, 0x018000, 0x08000 )
+ ROM_COPY( "audiocpu", nullptr, 0x018000, 0x08000 )
ROM_REGION( 0x100000, "spr_gfx", 0 ) /*Sprites gfx rom*/
ROM_LOAD( "rssengo2.72", 0x00000, 0x100000, CRC(fb215ff8) SHA1(f98c0a53ad9b97d209dd1f85c994fc17ec585bd7) )
@@ -622,7 +622,7 @@ ROM_START( sengokmj )
ROM_LOAD( "rssengo1.68", 0x100000, 0x100000, CRC(1bbd00e5) SHA1(86391323b8e0d3b7e09a5914d87fb2adc48e5af4) )
ROM_REGION( 0x080000, "bg_gfx", 0 )
- ROM_COPY( "gfx_tiles" , 0x000000, 0x00000, 0x080000)
+ ROM_COPY( "gfx_tiles" , nullptr, 0x00000, 0x080000)
ROM_REGION( 0x080000, "md_gfx", 0 )
ROM_COPY( "gfx_tiles" , 0x080000, 0x00000, 0x080000)
diff --git a/src/mame/drivers/seta.cpp b/src/mame/drivers/seta.cpp
index d3f652cfa6b..6b16f2e6ace 100644
--- a/src/mame/drivers/seta.cpp
+++ b/src/mame/drivers/seta.cpp
@@ -1397,7 +1397,7 @@ static void uPD71054_update_timer( running_machine &machine, device_t *cpu, int
} else {
uPD71054->timer[no]->adjust( attotime::never, no);
state->logerror( "CPU #0 PC %06X: uPD71054 error, timer %d duration is 0\n",
- (cpu != NULL) ? cpu->safe_pc() : -1, no );
+ (cpu != nullptr) ? cpu->safe_pc() : -1, no );
}
}
@@ -1409,7 +1409,7 @@ static void uPD71054_update_timer( running_machine &machine, device_t *cpu, int
TIMER_CALLBACK_MEMBER(seta_state::uPD71054_timer_callback)
{
m_maincpu->set_input_line(4, HOLD_LINE );
- uPD71054_update_timer( machine(), NULL, param );
+ uPD71054_update_timer( machine(), nullptr, param );
}
@@ -10316,7 +10316,7 @@ ROM_START( zingzipbl )
ROM_LOAD16_BYTE( "14", 0x100001, 0x080000, CRC(fefad62f) SHA1(13aaf6cc6af4b42a1184f3fc6c07d9d966153dc1) )
ROM_REGION( 0x200000, "gfx2", 0 ) /* Layer 1 */
- ROM_COPY( "gfxtemp", 0x000000, 0x000000, 0x80000 )
+ ROM_COPY( "gfxtemp", nullptr, 0x000000, 0x80000 )
ROM_COPY( "gfxtemp", 0x100000, 0x080000, 0x80000 )
// 2bpp of extra planes for this layer
ROM_LOAD16_BYTE( "15", 0x100000, 0x040000, CRC(af7a786f) SHA1(de67960f529ebfff0f1d55c79912685f9eca9623) )
@@ -10666,7 +10666,7 @@ ROM_START( jjsquawkb )
ROM_LOAD( "1.bin", 0x200000, 0x200000, CRC(a5d37cf7) SHA1(9573777f3cdd6b25f0bd56f65f583fddda21c900) )
ROM_REGION( 0x200000, "gfx2", 0 ) /* Layer 1 */
- ROM_COPY( "gfxtemp", 0x000000, 0x000000, 0x100000 )
+ ROM_COPY( "gfxtemp", nullptr, 0x000000, 0x100000 )
ROM_COPY( "gfxtemp", 0x200000, 0x100000, 0x100000 )
@@ -10713,7 +10713,7 @@ ROM_START( kamenrid )
ROM_LOAD( "fj001007.152", 0x000000, 0x080000, CRC(d9ffe80b) SHA1(c1f919b53cd1b9874a5e5dc5640891e1b227cfc6) )
ROM_REGION( 0x40000, "gfx2", 0 ) /* Layer 1 */
- ROM_COPY( "user1", 0x000000, 0x000000, 0x040000 )
+ ROM_COPY( "user1", nullptr, 0x000000, 0x040000 )
ROM_REGION( 0x40000, "gfx3", 0 ) /* Layer 2 */
ROM_COPY( "user1", 0x040000, 0x000000, 0x040000 )
@@ -11076,7 +11076,7 @@ ROM_START( madshark )
ROM_LOAD16_BYTE( "fq001005.205", 0x200000, 0x100000, CRC(5f6c6d4a) SHA1(eed5661738282a14ce89917335fd1b695eb7351e) )
ROM_REGION( 0x200000, "gfx2", 0 ) /* Layer 1 */
- ROM_COPY( "user1", 0x000000, 0x000000, 0x100000 )
+ ROM_COPY( "user1", nullptr, 0x000000, 0x100000 )
ROM_COPY( "user1", 0x200000, 0x100000, 0x100000 )
ROM_REGION( 0x200000, "gfx3", 0 ) /* Layer 2 */
@@ -11100,7 +11100,7 @@ ROM_START( magspeed )
ROM_LOAD( "fu001006.152", 0x000000, 0x100000, CRC(70855139) SHA1(24d635aceb823b0569169c8ecced13ac82c17d6a) )
ROM_REGION( 0x80000, "gfx2", 0 ) /* Layer 1 */
- ROM_COPY( "user1", 0x00000, 0x00000, 0x80000 )
+ ROM_COPY( "user1", nullptr, 0x00000, 0x80000 )
ROM_REGION( 0x80000, "gfx3", 0 ) /* Layer 2 */
ROM_COPY( "user1", 0x80000, 0x00000, 0x80000 )
diff --git a/src/mame/drivers/seta2.cpp b/src/mame/drivers/seta2.cpp
index 6827df7fb95..c5d810639c7 100644
--- a/src/mame/drivers/seta2.cpp
+++ b/src/mame/drivers/seta2.cpp
@@ -2720,7 +2720,7 @@ ROM_START( gundamex )
ROM_LOAD( "ka001006.u21", 0x1000000, 0x200000, CRC(6aac2f2f) SHA1(fac5478ca2941a93c57f670a058ff626e537bcde) )
ROM_LOAD( "ka001007.u22", 0x1200000, 0x200000, CRC(588f9d63) SHA1(ed5148d09d02e3bc12c50c39c5c86e6356b2dd7a) )
ROM_LOAD( "ka001008.u23", 0x1400000, 0x200000, CRC(db55a60a) SHA1(03d118c7284ca86219891c473e2a89489710ea27) )
- ROM_FILL( 0x1800000, 0x600000, 0 ) // 6bpp instead of 8bpp
+ ROM_FILL( 0x1800000, 0x600000, nullptr ) // 6bpp instead of 8bpp
ROM_REGION( 0x300000, "x1snd", 0 ) // Samples
// Leave 1MB empty (addressable by the chip)
@@ -2759,7 +2759,7 @@ ROM_START( mj4simai )
ROM_LOAD( "cha-06.u17", 0x0c00000, 0x400000, CRC(5cb0b3a9) SHA1(92fb82d45b4c46326d5796981f812e20a8ddb4f2) )
ROM_LOAD( "cha-01.u21", 0x1000000, 0x400000, CRC(35f47b37) SHA1(4a8eb088890272f2a069e2c3f00fadf6421f7b0e) )
ROM_LOAD( "cha-02.u22", 0x1400000, 0x400000, CRC(f6346860) SHA1(4eebd3fa315b97964fa39b88224f9de7622ba881) )
- ROM_FILL( 0x1800000, 0x800000, 0 ) // 6bpp instead of 8bpp
+ ROM_FILL( 0x1800000, 0x800000, nullptr ) // 6bpp instead of 8bpp
ROM_REGION( 0x500000, "x1snd", 0 ) // Samples
// Leave 1MB empty (addressable by the chip)
@@ -3035,7 +3035,7 @@ ROM_START( penbros )
ROM_LOAD( "u38.bin", 0x000000, 0x400000, CRC(4247b39e) SHA1(f273931293beced312e02c870bf35e9cf0c91a8b) )
ROM_LOAD( "u39.bin", 0x400000, 0x400000, CRC(f9f07faf) SHA1(66fc4a9ad422fb384d2c775e43619137226898fc) )
ROM_LOAD( "u40.bin", 0x800000, 0x400000, CRC(dc9e0a96) SHA1(c2c8ccf9039ee0e179b08fdd2d37f29899349cda) )
- ROM_FILL( 0xc00000, 0x400000, 0 ) // 6bpp instead of 8bpp
+ ROM_FILL( 0xc00000, 0x400000, nullptr ) // 6bpp instead of 8bpp
ROM_REGION( 0x300000, "x1snd", 0 ) // Samples
// Leave 1MB empty (addressable by the chip)
diff --git a/src/mame/drivers/sg1000.cpp b/src/mame/drivers/sg1000.cpp
index 607c56cf4b1..23790083a21 100644
--- a/src/mame/drivers/sg1000.cpp
+++ b/src/mame/drivers/sg1000.cpp
@@ -590,7 +590,7 @@ WRITE8_MEMBER( sf7000_state::ppi_pc_w )
if (!BIT(data, 0))
m_fdc->set_floppy(m_floppy0);
else
- m_fdc->set_floppy(NULL);
+ m_fdc->set_floppy(nullptr);
/* floppy motor */
m_floppy0->mon_w(BIT(data, 1));
@@ -735,7 +735,7 @@ static MACHINE_CONFIG_START( sg1000, sg1000_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
/* cartridge */
- MCFG_SG1000_CARTRIDGE_ADD(CARTSLOT_TAG, sg1000_cart, NULL)
+ MCFG_SG1000_CARTRIDGE_ADD(CARTSLOT_TAG, sg1000_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","sg1000")
@@ -755,7 +755,7 @@ static MACHINE_CONFIG_DERIVED( omv, sg1000 )
MCFG_CPU_IO_MAP(omv_io_map)
MCFG_DEVICE_REMOVE(CARTSLOT_TAG)
- MCFG_OMV_CARTRIDGE_ADD(CARTSLOT_TAG, sg1000_cart, NULL)
+ MCFG_OMV_CARTRIDGE_ADD(CARTSLOT_TAG, sg1000_cart, nullptr)
MCFG_RAM_MODIFY(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("2K")
@@ -798,7 +798,7 @@ static MACHINE_CONFIG_START( sc3000, sc3000_state )
MCFG_CASSETTE_INTERFACE("sc3000_cass")
/* cartridge */
- MCFG_SC3000_CARTRIDGE_ADD(CARTSLOT_TAG, sg1000_cart, NULL)
+ MCFG_SC3000_CARTRIDGE_ADD(CARTSLOT_TAG, sg1000_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","sg1000")
@@ -849,7 +849,7 @@ static MACHINE_CONFIG_START( sf7000, sf7000_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(UPD8251_TAG, i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(UPD8251_TAG, i8251_device, write_dsr))
diff --git a/src/mame/drivers/shangha3.cpp b/src/mame/drivers/shangha3.cpp
index 5b610aa7cce..ab41398f789 100644
--- a/src/mame/drivers/shangha3.cpp
+++ b/src/mame/drivers/shangha3.cpp
@@ -702,13 +702,13 @@ ROM_START( blocken ) /* PCB labeled KID-07 */
ROM_REGION( 0x100000, "oki", 0 )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
- ROM_COPY( "samples", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "samples", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "samples", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "samples", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "samples", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "samples", nullptr, 0x040000, 0x020000)
ROM_COPY( "samples", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "samples", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "samples", nullptr, 0x080000, 0x020000)
ROM_COPY( "samples", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "samples", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "samples", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "samples", 0x060000, 0x0e0000, 0x020000)
ROM_END
diff --git a/src/mame/drivers/sigmab98.cpp b/src/mame/drivers/sigmab98.cpp
index a4b9719bfcc..3cdbd746b38 100644
--- a/src/mame/drivers/sigmab98.cpp
+++ b/src/mame/drivers/sigmab98.cpp
@@ -2706,7 +2706,7 @@ ROM_START( sammymdl )
ROM_REGION( 0x1000000, "oki", ROMREGION_ERASEFF )
ROM_REGION( 0x40000, "maincpu", ROMREGION_ERASEFF )
- ROM_COPY( "mainbios", 0x0000, 0x0000, 0x40000 )
+ ROM_COPY( "mainbios", nullptr, 0x0000, 0x40000 )
ROM_REGION( 0x200000, "sprites", ROMREGION_ERASEFF )
ROM_END
diff --git a/src/mame/drivers/silkroad.cpp b/src/mame/drivers/silkroad.cpp
index ed80f4eebdc..d7bf3416254 100644
--- a/src/mame/drivers/silkroad.cpp
+++ b/src/mame/drivers/silkroad.cpp
@@ -342,11 +342,11 @@ ROM_START( silkroad )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0xc0000, "oki1", 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_REGION( 0x080000, "oki2", 0 )
@@ -378,11 +378,11 @@ ROM_START( silkroada )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0xc0000, "oki1", 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_REGION( 0x080000, "oki2", 0 )
diff --git a/src/mame/drivers/skykid.cpp b/src/mame/drivers/skykid.cpp
index 37172964a2d..222869725dc 100644
--- a/src/mame/drivers/skykid.cpp
+++ b/src/mame/drivers/skykid.cpp
@@ -489,7 +489,7 @@ ROM_START( skykid )
ROM_LOAD( "sk1_8.10n", 0x0000, 0x4000, CRC(44bb7375) SHA1(5b2fa6782671150bab5f3c3ac46b47bc23f3d7e0) ) /* sprites */
ROM_LOAD( "sk1_7.10m", 0x4000, 0x4000, CRC(3454671d) SHA1(723b26a0f208addc2a22736457cb4be6ab6c69cc) )
/* 0x8000-0xbfff will be unpacked from 0x4000-0x5fff */
- ROM_FILL( 0xc000, 0x4000, 0x00 ) // part of the gfx is 2bpp decoded as 3bpp
+ ROM_FILL( 0xc000, 0x4000, nullptr ) // part of the gfx is 2bpp decoded as 3bpp
ROM_REGION( 0x0700, "proms", 0 )
ROM_LOAD( "sk1-1.2n", 0x0000, 0x0100, CRC(0218e726) SHA1(8b766162a4783c058d9a1ecf8741673d7ef955fb) ) /* red component */
@@ -519,7 +519,7 @@ ROM_START( skykido )
ROM_LOAD( "sk1_8.10n", 0x0000, 0x4000, CRC(44bb7375) SHA1(5b2fa6782671150bab5f3c3ac46b47bc23f3d7e0) ) /* sprites */
ROM_LOAD( "sk1_7.10m", 0x4000, 0x4000, CRC(3454671d) SHA1(723b26a0f208addc2a22736457cb4be6ab6c69cc) )
/* 0x8000-0xbfff will be unpacked from 0x4000-0x5fff */
- ROM_FILL( 0xc000, 0x4000, 0x00 ) // part of the gfx is 2bpp decoded as 3bpp
+ ROM_FILL( 0xc000, 0x4000, nullptr ) // part of the gfx is 2bpp decoded as 3bpp
ROM_REGION( 0x0700, "proms", 0 )
ROM_LOAD( "sk1-1.2n", 0x0000, 0x0100, CRC(0218e726) SHA1(8b766162a4783c058d9a1ecf8741673d7ef955fb) ) /* red component */
@@ -549,7 +549,7 @@ ROM_START( skykidd )
ROM_LOAD( "sk1_8.10n", 0x0000, 0x4000, CRC(44bb7375) SHA1(5b2fa6782671150bab5f3c3ac46b47bc23f3d7e0) ) /* sprites */
ROM_LOAD( "sk1_7.10m", 0x4000, 0x4000, CRC(3454671d) SHA1(723b26a0f208addc2a22736457cb4be6ab6c69cc) )
/* 0x8000-0xbfff will be unpacked from 0x4000-0x5fff */
- ROM_FILL( 0xc000, 0x4000, 0x00 ) // part of the gfx is 2bpp decoded as 3bpp
+ ROM_FILL( 0xc000, 0x4000, nullptr ) // part of the gfx is 2bpp decoded as 3bpp
ROM_REGION( 0x0700, "proms", 0 )
ROM_LOAD( "sk1-1.2n", 0x0000, 0x0100, CRC(0218e726) SHA1(8b766162a4783c058d9a1ecf8741673d7ef955fb) ) /* red component */
@@ -579,7 +579,7 @@ ROM_START( skykids )
ROM_LOAD( "sk1_8.10n", 0x0000, 0x4000, CRC(44bb7375) SHA1(5b2fa6782671150bab5f3c3ac46b47bc23f3d7e0) ) /* sprites */
ROM_LOAD( "sk1_7.10m", 0x4000, 0x4000, CRC(3454671d) SHA1(723b26a0f208addc2a22736457cb4be6ab6c69cc) )
/* 0x8000-0xbfff will be unpacked from 0x4000-0x5fff */
- ROM_FILL( 0xc000, 0x4000, 0x00 ) // part of the gfx is 2bpp decoded as 3bpp
+ ROM_FILL( 0xc000, 0x4000, nullptr ) // part of the gfx is 2bpp decoded as 3bpp
ROM_REGION( 0x0700, "proms", 0 )
ROM_LOAD( "sk1-1.2n", 0x0000, 0x0100, CRC(0218e726) SHA1(8b766162a4783c058d9a1ecf8741673d7ef955fb) ) /* red component */
@@ -609,7 +609,7 @@ ROM_START( drgnbstr )
ROM_LOAD( "db1_8.10n", 0x0000, 0x4000, CRC(11942c61) SHA1(0f065cb82cf83967e90b3c7326b36956f4fa9a52) ) /* sprites */
ROM_LOAD( "db1_7.10m", 0x4000, 0x4000, CRC(cc130fe2) SHA1(4f5d4f21152b3b4e523a6d17dd5ff5cef52447f2) )
/* 0x8000-0xbfff will be unpacked from 0x4000-0x5fff */
- ROM_FILL( 0xc000, 0x4000, 0x00 ) // part of the gfx is 2bpp decoded as 3bpp
+ ROM_FILL( 0xc000, 0x4000, nullptr ) // part of the gfx is 2bpp decoded as 3bpp
ROM_REGION( 0x0700, "proms", 0 )
ROM_LOAD( "db1-1.2n", 0x0000, 0x0100, CRC(3f8cce97) SHA1(027b3fb0f322a9d68b434b207a40b31799a8a8d6) ) /* red component */
diff --git a/src/mame/drivers/slapshot.cpp b/src/mame/drivers/slapshot.cpp
index 3eeddfd1646..af6c965a493 100644
--- a/src/mame/drivers/slapshot.cpp
+++ b/src/mame/drivers/slapshot.cpp
@@ -600,7 +600,7 @@ ROM_START( slapshot )
ROM_LOAD16_BYTE( "d71-01.23", 0x000000, 0x100000, CRC(0b1e8c27) SHA1(ffa452f7414f3d61edb69bb61b29a0cc8d9176d0) ) /* OBJ 6bpp */
ROM_LOAD16_BYTE( "d71-02.24", 0x000001, 0x100000, CRC(ccaaea2d) SHA1(71b507f215f37e991abae5523642417a6b23a70d) )
ROM_LOAD ( "d71-03.25", 0x300000, 0x100000, CRC(dccef9ec) SHA1(ee7a49727b822cf4c1d7acff994b77ea6191c423) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION( 0x80000, "ymsnd", 0 ) /* ADPCM samples */
ROM_LOAD( "d71-06.37", 0x00000, 0x80000, CRC(f3324188) SHA1(70dd724441eae8614218bc7f0f51860bd2462f0c) )
@@ -634,7 +634,7 @@ ROM_START( opwolf3 )
ROM_LOAD16_BYTE( "d74_02.23", 0x000000, 0x200000, CRC(aab86332) SHA1(b9133407504e9ef4fd5ae7d284cdb0c7f78f9a99) ) /* OBJ 6bpp */
ROM_LOAD16_BYTE( "d74_03.24", 0x000001, 0x200000, CRC(3f398916) SHA1(4b6a3ee0baf5f32e24e5040f233300f1ca347fe7) )
ROM_LOAD ( "d74_04.25", 0x600000, 0x200000, CRC(2f385638) SHA1(1ba2ec7d9b1c491e1cc6d7e646e09ef2bc063f25) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION( 0x200000, "ymsnd", 0 ) /* ADPCM samples */
ROM_LOAD( "d74_01.37", 0x000000, 0x200000, CRC(115313e0) SHA1(51a69e7a26960b1328ccefeaec0fb26bdccc39f2) )
@@ -660,7 +660,7 @@ ROM_START( opwolf3u )
ROM_LOAD16_BYTE( "d74_02.23", 0x000000, 0x200000, CRC(aab86332) SHA1(b9133407504e9ef4fd5ae7d284cdb0c7f78f9a99) ) /* OBJ 6bpp */
ROM_LOAD16_BYTE( "d74_03.24", 0x000001, 0x200000, CRC(3f398916) SHA1(4b6a3ee0baf5f32e24e5040f233300f1ca347fe7) )
ROM_LOAD ( "d74_04.25", 0x600000, 0x200000, CRC(2f385638) SHA1(1ba2ec7d9b1c491e1cc6d7e646e09ef2bc063f25) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION( 0x200000, "ymsnd", 0 ) /* ADPCM samples */
ROM_LOAD( "d74_01.37", 0x000000, 0x200000, CRC(115313e0) SHA1(51a69e7a26960b1328ccefeaec0fb26bdccc39f2) )
diff --git a/src/mame/drivers/slicer.cpp b/src/mame/drivers/slicer.cpp
index ca322b43001..ce294cfcea4 100644
--- a/src/mame/drivers/slicer.cpp
+++ b/src/mame/drivers/slicer.cpp
@@ -110,16 +110,16 @@ static MACHINE_CONFIG_START( slicer, slicer_state )
MCFG_RS232_PORT_ADD("rs232_1", default_rs232_devices, "terminal")
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("sc2681", mc68681_device, rx_a_w))
- MCFG_RS232_PORT_ADD("rs232_2", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232_2", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("sc2681", mc68681_device, rx_b_w))
MCFG_FD1797_ADD("fdc", XTAL_16MHz/2/8)
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE("maincpu", i80186_cpu_device, int1_w))
MCFG_WD_FDC_DRQ_CALLBACK(DEVWRITELINE("maincpu", i80186_cpu_device, drq0_w))
MCFG_FLOPPY_DRIVE_ADD("fdc:0", slicer_floppies, "525dd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fdc:1", slicer_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fdc:2", slicer_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fdc:3", slicer_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fdc:1", slicer_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fdc:2", slicer_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fdc:3", slicer_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_DEVICE_ADD("sasi", SCSI_PORT, 0)
MCFG_SCSI_DATA_INPUT_BUFFER("sasi_data_in")
diff --git a/src/mame/drivers/smc777.cpp b/src/mame/drivers/smc777.cpp
index 6932842d06c..dc3be14211f 100644
--- a/src/mame/drivers/smc777.cpp
+++ b/src/mame/drivers/smc777.cpp
@@ -406,7 +406,7 @@ READ8_MEMBER( smc777_state::fdc_request_r )
WRITE8_MEMBER( smc777_state::floppy_select_w )
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
// ---- xxxx select floppy drive (yes, 15 of them, A to P)
switch (data & 0x01)
diff --git a/src/mame/drivers/snes.cpp b/src/mame/drivers/snes.cpp
index f92d7a5098e..9a914506d19 100644
--- a/src/mame/drivers/snes.cpp
+++ b/src/mame/drivers/snes.cpp
@@ -1355,7 +1355,7 @@ static MACHINE_CONFIG_START( snes, snes_console_state )
MCFG_SOUND_ROUTE(0, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "rspeaker", 1.00)
- MCFG_SNS_CARTRIDGE_ADD("snsslot", snes_cart, NULL)
+ MCFG_SNS_CARTRIDGE_ADD("snsslot", snes_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","snes")
MCFG_SOFTWARE_LIST_ADD("bsx_list","snes_bspack")
MCFG_SOFTWARE_LIST_ADD("st_list","snes_strom")
diff --git a/src/mame/drivers/snk.cpp b/src/mame/drivers/snk.cpp
index 1088dd68140..166866ccbe0 100644
--- a/src/mame/drivers/snk.cpp
+++ b/src/mame/drivers/snk.cpp
@@ -2962,7 +2962,7 @@ static INPUT_PORTS_START( gwar )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
- PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, snk_state,gwar_rotary, (void*)0)
+ PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, snk_state,gwar_rotary, (void*)nullptr)
PORT_START("P1ROT")
PORT_BIT( 0x0f, 0x00, IPT_POSITIONAL ) PORT_POSITIONS(12) PORT_WRAPS PORT_SENSITIVITY(15) PORT_KEYDELTA(1) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_REVERSE PORT_FULL_TURN_COUNT(12)
@@ -3043,7 +3043,7 @@ static INPUT_PORTS_START( gwarb )
// connected. If rotary is not connected, player fires in the direction he's facing.
PORT_MODIFY("IN1")
- PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, snk_state,gwarb_rotary, (void*)0)
+ PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, snk_state,gwarb_rotary, (void*)nullptr)
PORT_MODIFY("IN2")
PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, snk_state,gwarb_rotary, (void*)1)
diff --git a/src/mame/drivers/snk6502.cpp b/src/mame/drivers/snk6502.cpp
index 42aada4d580..4631b0fff65 100644
--- a/src/mame/drivers/snk6502.cpp
+++ b/src/mame/drivers/snk6502.cpp
@@ -725,17 +725,17 @@ static const gfx_layout charlayout_memory =
static GFXDECODE_START( sasuke )
- GFXDECODE_ENTRY( NULL, 0x1000, swapcharlayout, 0, 4 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x1000, swapcharlayout, 0, 4 ) /* the game dynamically modifies this */
GFXDECODE_ENTRY( "gfx1", 0x0000, swapcharlayout, 4*4, 4 )
GFXDECODE_END
static GFXDECODE_START( satansat )
- GFXDECODE_ENTRY( NULL, 0x1000, charlayout_memory, 0, 4 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x1000, charlayout_memory, 0, 4 ) /* the game dynamically modifies this */
GFXDECODE_ENTRY( "gfx1", 0x0000, charlayout, 4*4, 4 )
GFXDECODE_END
static GFXDECODE_START( vanguard )
- GFXDECODE_ENTRY( NULL, 0x1000, charlayout_memory, 0, 8 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x1000, charlayout_memory, 0, 8 ) /* the game dynamically modifies this */
GFXDECODE_ENTRY( "gfx1", 0x0000, charlayout, 8*4, 8 )
GFXDECODE_END
diff --git a/src/mame/drivers/socrates.cpp b/src/mame/drivers/socrates.cpp
index 71100467664..b18b711f1ab 100644
--- a/src/mame/drivers/socrates.cpp
+++ b/src/mame/drivers/socrates.cpp
@@ -1464,7 +1464,7 @@ static MACHINE_CONFIG_START( iqunlimz, iqunlim_state )
MCFG_SOUND_ADD("soc_snd", SOCRATES_SOUND, XTAL_21_4772MHz/(512+256))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
- MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, nullptr)
MACHINE_CONFIG_END
/******************************************************************************
diff --git a/src/mame/drivers/softbox.cpp b/src/mame/drivers/softbox.cpp
index 2e07b77f02a..c55adbcae7e 100644
--- a/src/mame/drivers/softbox.cpp
+++ b/src/mame/drivers/softbox.cpp
@@ -412,7 +412,7 @@ static MACHINE_CONFIG_START( softbox, softbox_state )
MCFG_HARDDISK_ADD("harddisk4")
MCFG_HARDDISK_INTERFACE("corvus_hdd")
- MCFG_IMI7000_BUS_ADD("imi5000h", NULL, NULL, NULL)
+ MCFG_IMI7000_BUS_ADD("imi5000h", nullptr, nullptr, nullptr)
// software lists
MCFG_SOFTWARE_LIST_ADD("flop_list", "softbox")
diff --git a/src/mame/drivers/spc1000.cpp b/src/mame/drivers/spc1000.cpp
index 8548922844f..4c1d894e016 100644
--- a/src/mame/drivers/spc1000.cpp
+++ b/src/mame/drivers/spc1000.cpp
@@ -484,7 +484,7 @@ static MACHINE_CONFIG_START( spc1000, spc1000_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MCFG_DEVICE_ADD("ext1", SPC1000_EXP_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(spc1000_exp, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(spc1000_exp, nullptr, false)
MCFG_CENTRONICS_ADD("centronics", centronics_devices, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(spc1000_state, centronics_busy_w))
diff --git a/src/mame/drivers/spectrum.cpp b/src/mame/drivers/spectrum.cpp
index 17ce768f55a..e47a9ab6e75 100644
--- a/src/mame/drivers/spectrum.cpp
+++ b/src/mame/drivers/spectrum.cpp
@@ -614,9 +614,9 @@ DRIVER_INIT_MEMBER(spectrum_state,spectrum)
switch (m_ram->size())
{
case 48*1024:
- space.install_ram(0x8000, 0xffff, NULL); // Fall through
+ space.install_ram(0x8000, 0xffff, nullptr); // Fall through
case 16*1024:
- space.install_ram(0x5b00, 0x7fff, NULL);
+ space.install_ram(0x5b00, 0x7fff, nullptr);
}
}
diff --git a/src/mame/drivers/speedatk.cpp b/src/mame/drivers/speedatk.cpp
index ddd38cf4ab1..60184fe3942 100644
--- a/src/mame/drivers/speedatk.cpp
+++ b/src/mame/drivers/speedatk.cpp
@@ -348,7 +348,7 @@ ROM_START( speedatk )
ROM_REGION( 0x6000, "gfx2", 0 )
ROM_LOAD( "cb0-5", 0x0000, 0x2000, CRC(47a966e7) SHA1(fdaa0f88656afc431bae367679ce6298fa962e0f) )
ROM_LOAD( "cb0-6", 0x2000, 0x2000, CRC(cc1da937) SHA1(1697bb008bfa5c33a282bd470ac39c324eea7509) )
- ROM_COPY( "gfx2", 0x0000, 0x4000, 0x1000 ) /* Fill the blank space with cards gfx */
+ ROM_COPY( "gfx2", nullptr, 0x4000, 0x1000 ) /* Fill the blank space with cards gfx */
ROM_COPY( "gfx1", 0x1000, 0x5000, 0x1000 ) /* Gfx from cb0-7 */
ROM_REGION( 0x0120, "proms", 0 )
diff --git a/src/mame/drivers/spoker.cpp b/src/mame/drivers/spoker.cpp
index ff0e54a0321..919dee1b898 100644
--- a/src/mame/drivers/spoker.cpp
+++ b/src/mame/drivers/spoker.cpp
@@ -348,7 +348,7 @@ static INPUT_PORTS_START( spoker )
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,spoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,spoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )
@@ -417,7 +417,7 @@ static INPUT_PORTS_START( 3super8 )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,spoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,spoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_SERVICE( 0x04, IP_ACTIVE_LOW )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 )
@@ -680,9 +680,9 @@ ROM_START( 3super8 )
ROM_LOAD( "1.bin", 0x00000, 0x40000, BAD_DUMP CRC(d9d3e21e) SHA1(2f3f07ca427d9f56f0ff143d15d95cbf15255e33) ) // sldh
ROM_LOAD( "2.bin", 0x40000, 0x40000, BAD_DUMP CRC(fbb50ab1) SHA1(50a7ef9219c38d59117c510fe6d53fb3ba1fa456) ) // sldh
ROM_LOAD( "3.bin", 0x80000, 0x40000, BAD_DUMP CRC(545aa4e6) SHA1(3348d4b692900c9e9cd4a52b20922a84e596cd35) ) // sldh
- ROM_FILL( 0x00000 ,0x20000, 0x00 )
- ROM_FILL( 0x40000 ,0x20000, 0x00 )
- ROM_FILL( 0x80000 ,0x20000, 0x00 )
+ ROM_FILL( 0x00000 ,0x20000, nullptr )
+ ROM_FILL( 0x40000 ,0x20000, nullptr )
+ ROM_FILL( 0x80000 ,0x20000, nullptr )
ROM_REGION( 0x30000, "gfx2", ROMREGION_ERASE00 )
diff --git a/src/mame/drivers/sprint2.cpp b/src/mame/drivers/sprint2.cpp
index db6bd8233a2..6117db51869 100644
--- a/src/mame/drivers/sprint2.cpp
+++ b/src/mame/drivers/sprint2.cpp
@@ -682,7 +682,7 @@ ROM_START( dominos )
ROM_LOAD_NIB_LOW ( "7440-01.r4", 0x0000, 0x0200, CRC(957dd8df) SHA1(280457392f40cd66eae34d2fcdbd4d2142793402) )
ROM_REGION( 0x200, "gfx2", 0 ) /* sprites, not used */
- ROM_FILL( 0x0000, 0x0200, 0 )
+ ROM_FILL( 0x0000, 0x0200, nullptr )
ROM_REGION( 0x0120, "proms", 0 )
ROM_LOAD( "6400-01.m2", 0x0000, 0x0100, CRC(b8094b4c) SHA1(82dc6799a19984f3b204ee3aeeb007e55afc8be3) ) /* SYNC */
@@ -705,7 +705,7 @@ ROM_START( dominos4 ) // built from original Atari source code
ROM_LOAD_NIB_LOW ( "007765-01.r4", 0x0000, 0x0200, CRC(6e4e6c75) SHA1(0fc77fecaa73eac57baf778bc51387c75883aad4) )
ROM_REGION( 0x200, "gfx2", 0 ) /* sprites, not used */
- ROM_FILL( 0x0000, 0x0200, 0 )
+ ROM_FILL( 0x0000, 0x0200, nullptr )
ROM_REGION( 0x0120, "proms", 0 )
ROM_LOAD( "6400-01.m2", 0x0000, 0x0100, CRC(b8094b4c) SHA1(82dc6799a19984f3b204ee3aeeb007e55afc8be3) ) /* SYNC */
diff --git a/src/mame/drivers/sprint4.cpp b/src/mame/drivers/sprint4.cpp
index 715a654ab21..69959caf8d0 100644
--- a/src/mame/drivers/sprint4.cpp
+++ b/src/mame/drivers/sprint4.cpp
@@ -276,7 +276,7 @@ static INPUT_PORTS_START( sprint4 )
PORT_START("COLLISION")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Player 1 Gas") PORT_PLAYER(1)
- PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_collision, (void *)0 )
+ PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_collision, (void *)nullptr )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Player 2 Gas") PORT_PLAYER(2)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_collision, (void *)1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Player 3 Gas") PORT_PLAYER(3)
@@ -313,8 +313,8 @@ static INPUT_PORTS_START( sprint4 )
PORT_DIPSETTING( 0xe0, "150 seconds" )
PORT_START("ANALOG")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_wheel, (void *)0)
- PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_lever, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_wheel, (void *)nullptr)
+ PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_lever, (void *)nullptr)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_wheel, (void *)1)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_lever, (void *)1)
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, sprint4_state, get_wheel, (void *)2)
diff --git a/src/mame/drivers/srmp5.cpp b/src/mame/drivers/srmp5.cpp
index d63eb4182ee..7f2969351e3 100644
--- a/src/mame/drivers/srmp5.cpp
+++ b/src/mame/drivers/srmp5.cpp
@@ -604,7 +604,7 @@ ROM_START( srmp5 )
ROM_LOAD( "sx008-07.bin", 0xc00000, 0x200000, CRC(3564485d) SHA1(12464de4e2b6c4df1595183996d1987f0ecffb01) )
#ifdef DEBUG_CHAR
ROM_REGION( 0x100000, "gfx1", 0)
- ROM_FILL( 0, 0x100000, 0x00)
+ ROM_FILL( 0, 0x100000, nullptr)
#endif
ROM_END
diff --git a/src/mame/drivers/ssfindo.cpp b/src/mame/drivers/ssfindo.cpp
index d9806b614fa..f7736cff78b 100644
--- a/src/mame/drivers/ssfindo.cpp
+++ b/src/mame/drivers/ssfindo.cpp
@@ -887,7 +887,7 @@ ROM_END
DRIVER_INIT_MEMBER(ssfindo_state,common)
{
- m_speedup = 0;
+ m_speedup = nullptr;
m_PS7500timer0 = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(ssfindo_state::PS7500_Timer0_callback),this));
m_PS7500timer1 = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(ssfindo_state::PS7500_Timer1_callback),this));
diff --git a/src/mame/drivers/ssingles.cpp b/src/mame/drivers/ssingles.cpp
index 4dd959a9145..fb3e6fa1749 100644
--- a/src/mame/drivers/ssingles.cpp
+++ b/src/mame/drivers/ssingles.cpp
@@ -647,7 +647,7 @@ ROM_START( atamanot )
ROM_REGION( 0x10000, "kanji_uc", 0 ) //upper case
ROM_COPY( "kanji", 0x10000, 0x08000, 0x08000 )
- ROM_COPY( "kanji", 0x00000, 0x00000, 0x08000 )
+ ROM_COPY( "kanji", nullptr, 0x00000, 0x08000 )
ROM_REGION( 0x10000, "kanji_lc", 0 ) //lower case
ROM_COPY( "kanji", 0x18000, 0x08000, 0x08000 )
diff --git a/src/mame/drivers/sslam.cpp b/src/mame/drivers/sslam.cpp
index 0d6f13e65fd..67bd6cc7596 100644
--- a/src/mame/drivers/sslam.cpp
+++ b/src/mame/drivers/sslam.cpp
@@ -813,8 +813,8 @@ ROM_START( sslam )
ROM_LOAD( "3.u13", 0x00000, 0x40000, CRC(d0a9245f) SHA1(2e840cdd7bdfe7c6f986daf88576de0559597499) )
ROM_CONTINUE( 0x60000, 0x20000 )
ROM_CONTINUE( 0xa0000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000)
- ROM_COPY( "oki", 0x00000, 0x80000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x80000, 0x20000)
ROM_END
ROM_START( sslama )
@@ -873,8 +873,8 @@ ROM_START( sslama )
ROM_LOAD( "3.u13", 0x00000, 0x40000, CRC(d0a9245f) SHA1(2e840cdd7bdfe7c6f986daf88576de0559597499) )
ROM_CONTINUE( 0x60000, 0x20000 )
ROM_CONTINUE( 0xa0000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000)
- ROM_COPY( "oki", 0x00000, 0x80000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x80000, 0x20000)
ROM_END
// it's a conversion for a sslam pcb
@@ -904,8 +904,8 @@ ROM_START( powerbals )
ROM_LOAD( "20.i013", 0x00000, 0x40000, CRC(12776dbc) SHA1(9ab9930fd581296642834d2cb4ba65264a588af3) )
ROM_CONTINUE( 0x60000, 0x20000 )
ROM_CONTINUE( 0xa0000, 0x20000 )
- ROM_COPY( "oki", 0x00000, 0x40000, 0x20000)
- ROM_COPY( "oki", 0x00000, 0x80000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x40000, 0x20000)
+ ROM_COPY( "oki", nullptr, 0x80000, 0x20000)
ROM_END
DRIVER_INIT_MEMBER(sslam_state,sslam)
diff --git a/src/mame/drivers/ssv.cpp b/src/mame/drivers/ssv.cpp
index 2ca54ab52d4..52081e94ecc 100644
--- a/src/mame/drivers/ssv.cpp
+++ b/src/mame/drivers/ssv.cpp
@@ -2444,8 +2444,8 @@ static const gfx_layout layout_16x8x6_ram =
};
static GFXDECODE_START( eaglshot )
- GFXDECODE_ENTRY( NULL, 0, layout_16x8x8_ram, 0, 0x8000/64 ) // [0] Sprites (256 colors, decoded from ram)
- GFXDECODE_ENTRY( NULL, 0, layout_16x8x6_ram, 0, 0x8000/64 ) // [1] Sprites (64 colors, decoded from ram)
+ GFXDECODE_ENTRY( nullptr, 0, layout_16x8x8_ram, 0, 0x8000/64 ) // [0] Sprites (256 colors, decoded from ram)
+ GFXDECODE_ENTRY( nullptr, 0, layout_16x8x6_ram, 0, 0x8000/64 ) // [1] Sprites (64 colors, decoded from ram)
GFXDECODE_END
static const gfx_layout layout_16x16x8 =
@@ -2964,7 +2964,7 @@ ROM_START( cairblad )
ROM_LOAD( "ac1805m0.u8", 0x1000000, 0x400000, CRC(19771f43) SHA1(d6a05392c58d3f60d666e08b3a82f06fa2c8e3a3) ) // AC1805M01.U8 32M Mask
ROM_LOAD( "ac1806m0.u11", 0x1400000, 0x400000, CRC(816b97dc) SHA1(3737cb37a4db720901661fa9b4e30c44181efb94) ) // AC1806M01.U11 32M Mask
- ROM_FILL( 0x1800000, 0x800000, 0)
+ ROM_FILL( 0x1800000, 0x800000, nullptr)
ROM_REGION16_BE( 0x400000, "ensoniq.0", 0 ) /* Samples */
ROM_LOAD16_WORD_SWAP( "ac1410m0.u41", 0x000000, 0x400000, CRC(ecf1f255) SHA1(984b1529b8f0c7d94ea713c85d71df00f54eba79) ) // AC1807M01.U41 32M Mask
@@ -3193,13 +3193,13 @@ ROM_START( eaglshot )
ROM_LOAD16_WORD_SWAP( "si003-08.u24", 0x200000, 0x200000, CRC(d0122ba2) SHA1(96230fb690cf144cd873f7d51c0304736a698316) )
ROM_REGION16_BE( 0x400000, "ensoniq.1", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.2", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.3", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_END
@@ -3231,7 +3231,7 @@ ROM_START( hypreact )
ROM_LOAD( "s14-1-11.u14", 0x0e00000, 0x200000, CRC(6d8e7bae) SHA1(93258663ceb6174917560bb66d72a42ba0f96c0e) )
ROM_LOAD( "s14-1-12.u11", 0x1000000, 0x200000, CRC(233a8e23) SHA1(0c813ec80ac63aa342c8ea57d9e38cada74456d9) )
- ROM_FILL( 0x1200000, 0x600000, 0 )
+ ROM_FILL( 0x1200000, 0x600000, nullptr )
// The chip seems to use REGION1 too, but produces no sound from there.
@@ -3271,7 +3271,7 @@ ROM_START( hypreac2 )
ROM_LOAD( "s16-1-12.u11", 0x1800000, 0x400000, CRC(87d9c748) SHA1(1332db901e50e2fd25d3323920f99e0ef0b0533d) )
ROM_LOAD( "s16-1-11.u14", 0x1c00000, 0x200000, CRC(70b3c0a0) SHA1(009e2f2f292ed6f10a9d54557861294156664e72) )
- ROM_FILL( 0x1e00000,0x0a00000, 0)
+ ROM_FILL( 0x1e00000,0x0a00000, nullptr)
ROM_REGION16_BE( 0x400000, "ensoniq.0", 0 ) /* Samples */
ROM_LOAD16_WORD_SWAP( "s16-1-06.u41", 0x000000, 0x400000, CRC(626e8a81) SHA1(45ef5b630aed575acd160ede1413e0370f4f9761) )
@@ -3433,13 +3433,13 @@ ROM_START( jsk )
ROM_LOAD16_BYTE( "jsk-s0.u65", 0x000000, 0x200000, CRC(8d1a9aeb) SHA1(37316bd3e8cbe2a84239e1a11a56d4fe4723ae1a) )
ROM_REGION16_BE( 0x400000, "ensoniq.1", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.2", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.3", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_END
@@ -3528,10 +3528,10 @@ ROM_START( koikois2 )
ROM_LOAD16_BYTE( "kk2_snd1.bin", 0x000000, 0x200000, CRC(e5a963e1) SHA1(464ffd53ac2e6db62225b18d12bfea93160771ec) )
ROM_REGION16_BE( 0x400000, "ensoniq.2", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.3", 0 ) /* Samples */
- ROM_COPY( "ensoniq.1", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.1", nullptr, 0x000000, 0x400000 )
ROM_END
@@ -3614,7 +3614,7 @@ ROM_START( mslider )
ROM_LOAD( "ms-c0.bin", 0x500000, 0x200000, CRC(f9d3e052) SHA1(4cdde756b24ee980f3c79a35a1fe071861fdeef9) )
ROM_LOAD( "ms-c1.bin", 0x700000, 0x080000, CRC(7f910c5a) SHA1(23ea13b6c07d3d31a25c21704d6a3e506578b199) )
- ROM_FILL( 0x780000, 0x280000, 0)
+ ROM_FILL( 0x780000, 0x280000, nullptr)
ROM_REGION16_BE( 0x400000, "ensoniq.0", 0 ) /* Samples */
ROM_LOAD16_WORD_SWAP( "ms-snd0.bin", 0x000000, 0x200000, CRC(cda6e3a5) SHA1(28ad8f34bc4f907654582f3522b377b97234eba8) )
@@ -3709,7 +3709,7 @@ ROM_START( srmp4 )
ROM_LOAD( "sx001-06.c1", 0x0e00000, 0x200000, CRC(6fe7229e) SHA1(e1432aa500460f79b5b78ee4b249d8fc9f566ce1) )
ROM_LOAD( "sx001-09.c2", 0x1000000, 0x200000, CRC(91dd8218) SHA1(a500dca9eefbf93187b1dfde7ddff1d22b886d44) )
- ROM_FILL( 0x1200000, 0x600000, 0)
+ ROM_FILL( 0x1200000, 0x600000, nullptr)
ROM_REGION16_BE( 0x400000, "ensoniq.0", 0 ) /* Samples */
ROM_LOAD16_WORD_SWAP( "sx001-10.sd0", 0x000000, 0x200000, CRC(45409ef1) SHA1(327d0a63deac6f0f8b9a408a321c03dd4e965569) )
@@ -3734,7 +3734,7 @@ ROM_START( srmp4o )
ROM_LOAD( "sx001-06.c1", 0x0e00000, 0x200000, CRC(6fe7229e) SHA1(e1432aa500460f79b5b78ee4b249d8fc9f566ce1) )
ROM_LOAD( "sx001-09.c2", 0x1000000, 0x200000, CRC(91dd8218) SHA1(a500dca9eefbf93187b1dfde7ddff1d22b886d44) )
- ROM_FILL( 0x1200000, 0x600000, 0)
+ ROM_FILL( 0x1200000, 0x600000, nullptr)
ROM_REGION16_BE( 0x400000, "ensoniq.0", 0 ) /* Samples */
ROM_LOAD16_WORD_SWAP( "sx001-10.sd0", 0x000000, 0x200000, CRC(45409ef1) SHA1(327d0a63deac6f0f8b9a408a321c03dd4e965569) )
@@ -3917,7 +3917,7 @@ ROM_START( survarts )
ROM_LOAD( "si001-06.u16", 0x0e00000, 0x200000, CRC(9a62f532) SHA1(7e7ba1224e52b33a9bd14058230efc871178c4f8) ) /* C1 */
ROM_LOAD( "si001-09.u15", 0x1000000, 0x200000, CRC(0955e393) SHA1(0be9134190706eaee49177034b0536b05c4bc7ac) ) /* C2 */
- ROM_FILL( 0x1200000, 0x600000, 0)
+ ROM_FILL( 0x1200000, 0x600000, nullptr)
// The chip seems to use REGION1 too, but produces no sound from there.
@@ -3949,7 +3949,7 @@ ROM_START( survartsu )
ROM_LOAD( "si001-06.u16", 0x0e00000, 0x200000, CRC(9a62f532) SHA1(7e7ba1224e52b33a9bd14058230efc871178c4f8) ) /* C1 */
ROM_LOAD( "si001-09.u15", 0x1000000, 0x200000, CRC(0955e393) SHA1(0be9134190706eaee49177034b0536b05c4bc7ac) ) /* C2 */
- ROM_FILL( 0x1200000, 0x600000, 0)
+ ROM_FILL( 0x1200000, 0x600000, nullptr)
// The chip seems to use REGION1 too, but produces no sound from there.
@@ -3978,7 +3978,7 @@ ROM_START( survartsj )
ROM_LOAD( "si001-06.u16", 0x0e00000, 0x200000, CRC(9a62f532) SHA1(7e7ba1224e52b33a9bd14058230efc871178c4f8) ) /* C1 */
ROM_LOAD( "si001-09.u15", 0x1000000, 0x200000, CRC(0955e393) SHA1(0be9134190706eaee49177034b0536b05c4bc7ac) ) /* C2 */
- ROM_FILL( 0x1200000, 0x600000, 0)
+ ROM_FILL( 0x1200000, 0x600000, nullptr)
// The chip seems to use REGION1 too, but produces no sound from there.
@@ -4048,7 +4048,7 @@ ROM_START( dynagear )
ROM_LOAD( "si002-03.u17", 0x0800000, 0x200000, CRC(4261a6b8) SHA1(df163faa84a86f126d5d405aef316ff9dd3c05eb) )
ROM_LOAD( "si002-06.u16", 0x0a00000, 0x200000, CRC(0e1f23f6) SHA1(ea35c75776b75131ef9133a16a36d95132dc6776) )
- ROM_FILL( 0xc00000, 0x400000, 0)
+ ROM_FILL( 0xc00000, 0x400000, nullptr)
// The chip seems to use REGION1 too, but produces no sound from there.
@@ -4094,7 +4094,7 @@ ROM_START( sxyreact )
ROM_LOAD( "ac1408m0.u11", 0x1800000, 0x400000, CRC(c45bab47) SHA1(d00802005e091088eabeb672a6428417db43cb66) )
ROM_LOAD( "ac1409m0.u14", 0x1c00000, 0x200000, CRC(be1c66c2) SHA1(6d7b60d3b4286a768eac122c3d163e6e5287adc3) )
- ROM_FILL( 0x1e00000, 0xa00000, 0)
+ ROM_FILL( 0x1e00000, 0xa00000, nullptr)
ROM_REGION16_BE( 0x400000, "ensoniq.0", 0 ) /* Samples */
ROM_LOAD16_WORD_SWAP( "ac1410m0.u41", 0x000000, 0x400000, CRC(2a880afc) SHA1(193235bccde28a7d693a1a1f0159260a3a63a7d5) )
@@ -4105,7 +4105,7 @@ ROM_START( sxyreact )
// a few sparse samples are played from here
ROM_REGION16_BE( 0x400000, "ensoniq.2", 0 ) /* Samples */
- ROM_COPY( "ensoniq.1", 0x000000, 0x200000, 0x200000 )
+ ROM_COPY( "ensoniq.1", nullptr, 0x200000, 0x200000 )
ROM_END
/***************************************************************************
@@ -4176,7 +4176,7 @@ ROM_START( sxyreac2 )
ROM_LOAD( "ac1705t00.u8", 0x1000000, 0x400000, CRC(2dff0652) SHA1(3c68ec3b233f248208ea80e4799a9504318b4e7c) )
ROM_LOAD( "ac1706t00.u11", 0x1400000, 0x400000, CRC(e7a168e0) SHA1(b4e19cc3a1fd0f18db7476ebe7cbb397c60e01b3) )
- ROM_FILL( 0x1800000, 0x800000, 0)
+ ROM_FILL( 0x1800000, 0x800000, nullptr)
ROM_REGION16_BE( 0x400000, "ensoniq.0", 0 ) /* Samples */
ROM_LOAD16_WORD_SWAP( "ac1707t00.u41", 0x000000, 0x400000, CRC(28999bc4) SHA1(4cddaa4a155cc03d456e6edb20dd207f7ff3d9c4) )
@@ -4186,7 +4186,7 @@ ROM_START( sxyreac2 )
ROM_CONTINUE( 0x000000, 0x200000 )
ROM_REGION16_BE( 0x400000, "ensoniq.2", 0 ) /* Samples */
- ROM_COPY( "ensoniq.1", 0x000000, 0x200000, 0x200000 )
+ ROM_COPY( "ensoniq.1", nullptr, 0x200000, 0x200000 )
ROM_END
@@ -4273,7 +4273,7 @@ ROM_START( stmblade )
ROM_LOAD( "sb-c0.u11", 0x0c00000, 0x200000, CRC(825dd8f1) SHA1(39d32f54c97e21f92598442f05fd91ae2403a0d2) )
ROM_LOAD( "sb-c1.u7", 0x0e00000, 0x200000, CRC(744afcd7) SHA1(db716a1a2ad5864ebdb4865430cb637fb94ed34f) )
ROM_LOAD( "sb-c2.u4", 0x1000000, 0x080000, CRC(fd1d2a92) SHA1(957a8a52b79e252c7f1a4b6383107ae609dce5ef) )
- ROM_FILL( 0x1200000, 0x600000, 0)
+ ROM_FILL( 0x1200000, 0x600000, nullptr)
ROM_REGION16_BE( 0x400000, "ensoniq.0", ROMREGION_ERASE | 0 ) /* Samples */
ROM_LOAD16_BYTE( "sb-snd0.u22", 0x000000, 0x200000, CRC(4efd605b) SHA1(9c97be105c923c7db847d9b9aea37025edb685a0) )
@@ -4302,7 +4302,7 @@ ROM_START( stmbladej )
ROM_LOAD( "sb-c0.u11", 0x0c00000, 0x200000, CRC(825dd8f1) SHA1(39d32f54c97e21f92598442f05fd91ae2403a0d2) )
ROM_LOAD( "sb-c1.u7", 0x0e00000, 0x200000, CRC(744afcd7) SHA1(db716a1a2ad5864ebdb4865430cb637fb94ed34f) )
ROM_LOAD( "sb-c2.u4", 0x1000000, 0x080000, CRC(fd1d2a92) SHA1(957a8a52b79e252c7f1a4b6383107ae609dce5ef) )
- ROM_FILL( 0x1200000, 0x600000, 0)
+ ROM_FILL( 0x1200000, 0x600000, nullptr)
ROM_REGION16_BE( 0x400000, "ensoniq.0", ROMREGION_ERASE | 0 ) /* Samples */
ROM_LOAD16_BYTE( "sb-snd0.u22", 0x000000, 0x200000, CRC(4efd605b) SHA1(9c97be105c923c7db847d9b9aea37025edb685a0) )
@@ -4368,7 +4368,7 @@ ROM_START( twineag2 )
ROM_LOAD( "sx002-08.u3", 0x0e00000, 0x200000, CRC(64edcefa) SHA1(55a71afe87da93e35c5ba291e970bdcd91b52a7a) ) /* C1 */
ROM_LOAD( "sx002-09.u2", 0x1000000, 0x200000, CRC(51527c56) SHA1(378155a585e5b847bd8ae1f17cb651138d844e33) ) /* C2, C3 is unpopulated */
- ROM_FILL( 0x1200000, 0x600000, 0 )
+ ROM_FILL( 0x1200000, 0x600000, nullptr )
ROM_REGION16_BE( 0x400000, "ensoniq.0", ROMREGION_ERASE | 0 ) /* Samples */
ROM_LOAD16_BYTE( "sx002-10.u14", 0x000000, 0x200000, CRC(b0669dfa) SHA1(ff805f59864ac4ccee3e249c06804d844d3df59c) )
@@ -4377,10 +4377,10 @@ ROM_START( twineag2 )
ROM_LOAD16_BYTE( "sx002-11.u7", 0x000000, 0x200000, CRC(b8dd621a) SHA1(f9b43e018f2bb121e4f4e9554419cd32b870556b) )
ROM_REGION16_BE( 0x400000, "ensoniq.2", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.3", 0 ) /* Samples */
- ROM_COPY( "ensoniq.1", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.1", nullptr, 0x000000, 0x400000 )
ROM_REGION( 0x11000, "st010", 0)
ROM_LOAD( "st010.bin", 0x000000, 0x011000, CRC(aa11ee2d) SHA1(cc1984e989cb94e3dcbb5f99e085b5414e18a017) )
@@ -4412,7 +4412,7 @@ ROM_START( ultrax )
ROM_LOAD( "71047-04.u77", 0x0500000, 0x100000, CRC(d9e710d1) SHA1(063459a247f9ff81cb558802e9943b3ea8a2ea3a) )
ROM_LOAD( "71047-05.u75", 0x0600000, 0x200000, CRC(10848193) SHA1(40b7ebb6011dc703bbf620cd22cd678c10ec67a4) )
ROM_LOAD( "71047-06.u88", 0x0800000, 0x100000, CRC(b8ac2942) SHA1(3e85e8f5669d469dd3114455248546d32a642315) )
- ROM_FILL( 0x0900000, 0x300000, 0 )
+ ROM_FILL( 0x0900000, 0x300000, nullptr )
ROM_REGION16_BE( 0x400000, "ensoniq.0", ROMREGION_ERASE | 0 ) /* Samples */
ROM_LOAD16_BYTE( "71047-07.u59", 0x000000, 0x200000, CRC(d9828b62) SHA1(f66a388d7a00b3a45d386671c061f5b840453451) )
@@ -4421,10 +4421,10 @@ ROM_START( ultrax )
ROM_LOAD16_BYTE( "71047-08.u60", 0x000000, 0x200000, CRC(30ebff6d) SHA1(53824c1fc37e22b545fd68b59722f7968f0ca1e2) )
ROM_REGION16_BE( 0x400000, "ensoniq.2", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.3", 0 ) /* Samples */
- ROM_COPY( "ensoniq.1", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.1", nullptr, 0x000000, 0x400000 )
ROM_END
@@ -4442,7 +4442,7 @@ ROM_START( ultraxg )
ROM_LOAD( "71047-04.u77", 0x0500000, 0x100000, CRC(d9e710d1) SHA1(063459a247f9ff81cb558802e9943b3ea8a2ea3a) )
ROM_LOAD( "71047-05.u75", 0x0600000, 0x200000, CRC(10848193) SHA1(40b7ebb6011dc703bbf620cd22cd678c10ec67a4) )
ROM_LOAD( "71047-06.u88", 0x0800000, 0x100000, CRC(b8ac2942) SHA1(3e85e8f5669d469dd3114455248546d32a642315) )
- ROM_FILL( 0x0900000, 0x300000, 0 )
+ ROM_FILL( 0x0900000, 0x300000, nullptr )
ROM_REGION16_BE( 0x400000, "ensoniq.0", ROMREGION_ERASE | 0 ) /* Samples */
ROM_LOAD16_BYTE( "71047-07.u59", 0x000000, 0x200000, CRC(d9828b62) SHA1(f66a388d7a00b3a45d386671c061f5b840453451) )
@@ -4451,10 +4451,10 @@ ROM_START( ultraxg )
ROM_LOAD16_BYTE( "71047-08.u60", 0x000000, 0x200000, CRC(30ebff6d) SHA1(53824c1fc37e22b545fd68b59722f7968f0ca1e2) )
ROM_REGION16_BE( 0x400000, "ensoniq.2", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.3", 0 ) /* Samples */
- ROM_COPY( "ensoniq.1", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.1", nullptr, 0x000000, 0x400000 )
ROM_END
/***************************************************************************
@@ -4693,13 +4693,13 @@ ROM_START( gdfs )
ROM_LOAD16_BYTE( "vg004-13.u5", 0x000001, 0x200000, CRC(a4ed3977) SHA1(5843d56f69789e70ce0201a693ffae322b628459) )
ROM_REGION16_BE( 0x400000, "ensoniq.1", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.2", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_REGION16_BE( 0x400000, "ensoniq.3", 0 ) /* Samples */
- ROM_COPY( "ensoniq.0", 0x000000, 0x000000, 0x400000 )
+ ROM_COPY( "ensoniq.0", nullptr, 0x000000, 0x400000 )
ROM_END
/***************************************************************************
diff --git a/src/mame/drivers/starcrus.cpp b/src/mame/drivers/starcrus.cpp
index 71998e30cd5..f855f6eb459 100644
--- a/src/mame/drivers/starcrus.cpp
+++ b/src/mame/drivers/starcrus.cpp
@@ -126,7 +126,7 @@ static const char *const starcrus_sample_names[] =
"explos1", /* explosion sound, first part, channel 1 */
"explos2", /* explosion sound, second part, channel 1 */
"launch", /* launch sound, channels 2 and 3 */
- 0
+ nullptr
};
diff --git a/src/mame/drivers/starfire.cpp b/src/mame/drivers/starfire.cpp
index a3a4b21ae3b..38bc76ccf61 100644
--- a/src/mame/drivers/starfire.cpp
+++ b/src/mame/drivers/starfire.cpp
@@ -314,7 +314,7 @@ static const char *const starfire_sample_names[] =
"lock",
"scanner",
"overheat",
- 0
+ nullptr
};
INTERRUPT_GEN_MEMBER(starfire_state::vblank_int)
diff --git a/src/mame/drivers/starshp1.cpp b/src/mame/drivers/starshp1.cpp
index 60cefc0d6b0..d52a674f60d 100644
--- a/src/mame/drivers/starshp1.cpp
+++ b/src/mame/drivers/starshp1.cpp
@@ -282,7 +282,7 @@ static const gfx_layout shiplayout =
{ STEP16(0x000, 0x080) },
0x800, /* step */
shiplayout_xoffset,
- NULL
+ nullptr
};
diff --git a/src/mame/drivers/stlforce.cpp b/src/mame/drivers/stlforce.cpp
index 102eb722f59..baea64ca1c1 100644
--- a/src/mame/drivers/stlforce.cpp
+++ b/src/mame/drivers/stlforce.cpp
@@ -312,13 +312,13 @@ ROM_START( twinbrat )
/* $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_REGION16_BE( 0x80, "eeprom", 0 )
@@ -348,13 +348,13 @@ ROM_START( twinbrata )
/* $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_REGION16_BE( 0x80, "eeprom", 0 )
diff --git a/src/mame/drivers/stratos.cpp b/src/mame/drivers/stratos.cpp
index 3ad13837193..3af3d8ed6b8 100644
--- a/src/mame/drivers/stratos.cpp
+++ b/src/mame/drivers/stratos.cpp
@@ -77,7 +77,7 @@ void stratos_state::machine_reset()
void stratos_state::show_leds()
{
static const char *led_pos[18] = {
- 0, 0, "gPawn", "gKnight", "gBishop", "gRook", "gQueen", "gKing", 0, 0, "rPawn", "rKnight", "rBishop", "rRook", "rQueen", "rKing", 0, 0
+ nullptr, nullptr, "gPawn", "gKnight", "gBishop", "gRook", "gQueen", "gKing", nullptr, nullptr, "rPawn", "rKnight", "rBishop", "rRook", "rQueen", "rKing", nullptr, nullptr
};
char str_red[64];
char str_green[64];
diff --git a/src/mame/drivers/studio2.cpp b/src/mame/drivers/studio2.cpp
index 3712fa2e65a..28080198b47 100644
--- a/src/mame/drivers/studio2.cpp
+++ b/src/mame/drivers/studio2.cpp
@@ -534,7 +534,7 @@ DEVICE_IMAGE_LOAD_MEMBER( studio2_state, studio2_cart_load )
// always alloc 3K, even if range $400-$600 is not read by the system (RAM is present there)
m_cart->rom_alloc(0xc00, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
if (!strcmp(image.filetype(), "st2"))
{
diff --git a/src/mame/drivers/stv.cpp b/src/mame/drivers/stv.cpp
index 61c6c44d2a7..c858c580bea 100644
--- a/src/mame/drivers/stv.cpp
+++ b/src/mame/drivers/stv.cpp
@@ -1273,7 +1273,7 @@ int stv_state::load_cart(device_image_interface &image, generic_slot_device *slo
UINT8 *ROM;
UINT32 size = slot->common_get_size("rom");
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
return IMAGE_INIT_FAIL;
slot->rom_alloc(size, GENERIC_ROM32_WIDTH, ENDIANNESS_BIG);
@@ -2730,7 +2730,7 @@ ROM_START( sfish2 )
ROM_REGION( 0x080000, "maincpu", 0 ) /* SH2 code */
ROM_LOAD16_WORD_SWAP( "epr18343.bin", 0x000000, 0x080000, CRC(48e2eecf) SHA1(a38bfbd5f279525e413b18b5ed3f37f6e9e31cdc) ) /* sport fishing 2 bios */
ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */
- ROM_COPY( "maincpu",0,0,0x080000)
+ ROM_COPY( "maincpu",nullptr,0,0x080000)
ROM_REGION32_BE( 0x3000000, "cart", ROMREGION_ERASE00 ) /* SH2 code */
ROM_LOAD16_BYTE( "epr-18427.ic13", 0x0000001, 0x0100000, CRC(3f25bec8) SHA1(43a5342b882d5aec0f35a8777cb475659f43b1c4) )
@@ -2752,7 +2752,7 @@ ROM_START( sfish2j )
ROM_REGION( 0x080000, "maincpu", 0 ) /* SH2 code */
ROM_LOAD16_WORD_SWAP( "epr18343.bin", 0x000000, 0x080000, CRC(48e2eecf) SHA1(a38bfbd5f279525e413b18b5ed3f37f6e9e31cdc) ) /* sport fishing 2 bios */
ROM_REGION( 0x080000, "slave", 0 ) /* SH2 code */
- ROM_COPY( "maincpu",0,0,0x080000)
+ ROM_COPY( "maincpu",nullptr,0,0x080000)
ROM_REGION32_BE( 0x3000000, "cart", ROMREGION_ERASE00 ) /* SH2 code */
ROM_LOAD16_BYTE( "epr18344.a", 0x0000001, 0x0100000, CRC(5a7de018) SHA1(88e0c2a9a9d4ebf699878c0aa9737af85f95ccf8) )
diff --git a/src/mame/drivers/suna8.cpp b/src/mame/drivers/suna8.cpp
index 0a34955cf34..a6cd117d3d2 100644
--- a/src/mame/drivers/suna8.cpp
+++ b/src/mame/drivers/suna8.cpp
@@ -2835,7 +2835,7 @@ ROM_START( starfigh )
// bitplanes 0-1
ROM_LOAD( "starfgtr.e4", 0x00000, 0x10000, CRC(54c0ca3d) SHA1(87f785502beb8a52d47bd48275d695ee303054f8) ) // banks 00-03
ROM_LOAD( "starfgtr.d4", 0x10000, 0x10000, CRC(4313ba40) SHA1(3c41f99dc40136517f172b3525987d8909f877c3) ) // banks 04-07
- ROM_COPY( "gfx1", 0x00000, 0x20000, 0x20000 ) // banks 08-0f == 00-07
+ ROM_COPY( "gfx1", nullptr, 0x20000, 0x20000 ) // banks 08-0f == 00-07
ROM_LOAD( "starfgtr.b4", 0x40000, 0x10000, CRC(ad8d0f21) SHA1(ffdb407c7fe76b5f290de6bbed2fec34e40daf3f) ) // banks 10-13
ROM_LOAD( "starfgtr.a4", 0x50000, 0x10000, CRC(6d8f74c8) SHA1(c40b77e27bd29d6c3a9b4d43189933c10543786b) ) // banks 14-17
ROM_COPY( "gfx1", 0x40000, 0x60000, 0x20000 ) // banks 18-1f == 10-17
@@ -2898,13 +2898,13 @@ ROM_START( sparkman )
ROM_REGION( 0x100000, "gfx2", ROMREGION_INVERT | ROMREGION_ERASEFF) /* Sprites (1) */
// bitplanes 0-1
ROM_LOAD( "p7.u4", 0x00000, 0x10000, CRC(17c16ce4) SHA1(b4127e9aedab69193bef1d85e68003e225913417) ) // banks 00-03 (alt gfx)
- ROM_COPY( "gfx2", 0x00000, 0x10000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x20000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x30000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x40000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x50000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x60000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x70000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x10000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x20000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x30000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x40000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x50000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x60000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x70000, 0x10000 )
// bitplanes 2-3
ROM_LOAD( "p8.u6", 0x80000, 0x10000, CRC(414222ea) SHA1(e05f0504c6e735c73027312a85cc55fc98728e53) )
ROM_COPY( "gfx2", 0x80000, 0x90000, 0x10000 )
@@ -2954,13 +2954,13 @@ ROM_START( sparkmana )
ROM_REGION( 0x100000, "gfx2", ROMREGION_INVERT | ROMREGION_ERASEFF) /* Sprites (1) */
// bitplanes 0-1
ROM_LOAD( "p7.u4", 0x00000, 0x10000, CRC(17c16ce4) SHA1(b4127e9aedab69193bef1d85e68003e225913417) ) // banks 00-03 (alt gfx)
- ROM_COPY( "gfx2", 0x00000, 0x10000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x20000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x30000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x40000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x50000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x60000, 0x10000 )
- ROM_COPY( "gfx2", 0x00000, 0x70000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x10000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x20000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x30000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x40000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x50000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x60000, 0x10000 )
+ ROM_COPY( "gfx2", nullptr, 0x70000, 0x10000 )
// bitplanes 2-3
ROM_LOAD( "p8.u6", 0x80000, 0x10000, CRC(414222ea) SHA1(e05f0504c6e735c73027312a85cc55fc98728e53) )
ROM_COPY( "gfx2", 0x80000, 0x90000, 0x10000 )
diff --git a/src/mame/drivers/super6.cpp b/src/mame/drivers/super6.cpp
index 65b7d47ce93..599aadbcdf5 100644
--- a/src/mame/drivers/super6.cpp
+++ b/src/mame/drivers/super6.cpp
@@ -222,7 +222,7 @@ WRITE8_MEMBER( super6_state::fdc_w )
*/
// disk drive select
- floppy_image_device *m_floppy = NULL;
+ floppy_image_device *m_floppy = nullptr;
if ((data & 3) == 0)
m_floppy = m_floppy0->get_device();
@@ -431,7 +431,7 @@ static const z80_daisy_config super6_daisy_chain[] =
{ Z80CTC_TAG },
{ Z80DART_TAG },
{ Z80PIO_TAG },
- { NULL }
+ { nullptr }
};
@@ -514,7 +514,7 @@ static MACHINE_CONFIG_START( super6, super6_state )
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(super6_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(WD2793_TAG":0", super6_floppies, "525dd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(WD2793_TAG":1", super6_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(WD2793_TAG":1", super6_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_Z80DART_ADD(Z80DART_TAG, XTAL_24MHz/4, 0, 0, 0, 0 )
MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_txd))
@@ -529,7 +529,7 @@ static MACHINE_CONFIG_START( super6, super6_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(BR1945_TAG, COM8116, XTAL_5_0688MHz)
diff --git a/src/mame/drivers/supercon.cpp b/src/mame/drivers/supercon.cpp
index 7c286f6b4c2..57164aae3b5 100644
--- a/src/mame/drivers/supercon.cpp
+++ b/src/mame/drivers/supercon.cpp
@@ -612,7 +612,7 @@ void supercon_state::machine_start()
{
m_timer_update_irq = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(supercon_state::update_irq),this));
m_timer_update_irq->adjust( attotime::zero, 0, attotime::from_hz(1000) );
- m_timer_mouse_click = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(supercon_state::mouse_click),this),NULL);
+ m_timer_mouse_click = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(supercon_state::mouse_click),this),nullptr);
save_item(NAME(m_save_board));
machine().save().register_postload(save_prepost_delegate(FUNC(supercon_state::board_postload),this));
machine().save().register_presave(save_prepost_delegate(FUNC(supercon_state::board_presave),this));
diff --git a/src/mame/drivers/superslave.cpp b/src/mame/drivers/superslave.cpp
index 440edac81de..11e4de4b815 100644
--- a/src/mame/drivers/superslave.cpp
+++ b/src/mame/drivers/superslave.cpp
@@ -287,7 +287,7 @@ static const z80_daisy_config superslave_daisy_chain[] =
{ Z80DART_0_TAG },
{ Z80DART_1_TAG },
{ Z80PIO_TAG },
- { NULL }
+ { nullptr }
};
@@ -352,7 +352,7 @@ static MACHINE_CONFIG_START( superslave, superslave_state )
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80DART_0_TAG, z80dart_device, ctsa_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_0_TAG, z80dart_device, rxb_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(Z80DART_0_TAG, z80dart_device, dcdb_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80DART_0_TAG, z80dart_device, ctsb_w))
@@ -366,12 +366,12 @@ static MACHINE_CONFIG_START( superslave, superslave_state )
MCFG_Z80DART_OUT_RTSB_CB(DEVWRITELINE(RS232_D_TAG, rs232_port_device, write_rts))
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
- MCFG_RS232_PORT_ADD(RS232_C_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_C_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_1_TAG, z80dart_device, rxa_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(Z80DART_1_TAG, z80dart_device, dcda_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80DART_1_TAG, z80dart_device, ctsa_w))
- MCFG_RS232_PORT_ADD(RS232_D_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_D_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_1_TAG, z80dart_device, rxb_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(Z80DART_1_TAG, z80dart_device, dcdb_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(Z80DART_1_TAG, z80dart_device, ctsb_w))
diff --git a/src/mame/drivers/system1.cpp b/src/mame/drivers/system1.cpp
index cc2e1d5fcdd..20a7f74594c 100644
--- a/src/mame/drivers/system1.cpp
+++ b/src/mame/drivers/system1.cpp
@@ -436,11 +436,11 @@ void system1_state::bank0c_custom_w(UINT8 data, UINT8 prevdata)
WRITE8_MEMBER(system1_state::videomode_w)
{
/* bit 6 is connected to the 8751 IRQ */
- if (m_mcu != NULL)
+ if (m_mcu != nullptr)
m_mcu->set_input_line(MCS51_INT1_LINE, (data & 0x40) ? CLEAR_LINE : ASSERT_LINE);
/* handle any custom banking or other stuff */
- if (m_videomode_custom != NULL)
+ if (m_videomode_custom != nullptr)
(this->*m_videomode_custom)(data, m_videomode_prev);
m_videomode_prev = data;
@@ -526,7 +526,7 @@ READ8_MEMBER(system1_state::sound_data_r)
z80pio_device *pio = machine().device<z80pio_device>("pio");
/* if we have an 8255 PPI, get the data from the port and toggle the ack */
- if (m_ppi8255 != NULL)
+ if (m_ppi8255 != nullptr)
{
m_ppi8255->pc6_w(0);
m_ppi8255->pc6_w(1);
@@ -534,7 +534,7 @@ READ8_MEMBER(system1_state::sound_data_r)
}
/* if we have a Z80 PIO, get the data from the port and toggle the strobe */
- else if (pio != NULL)
+ else if (pio != nullptr)
{
UINT8 data = pio->port_read(z80pio_device::PORT_A);
pio->strobe(z80pio_device::PORT_A, false);
@@ -4789,20 +4789,20 @@ ROM_END
DRIVER_INIT_MEMBER(system1_state,bank00)
{
- m_videomode_custom = NULL;
- m_banked_decrypted_opcodes = NULL;
+ m_videomode_custom = nullptr;
+ m_banked_decrypted_opcodes = nullptr;
}
DRIVER_INIT_MEMBER(system1_state,bank44)
{
m_videomode_custom = &system1_state::bank44_custom_w;
- m_banked_decrypted_opcodes = NULL;
+ m_banked_decrypted_opcodes = nullptr;
}
DRIVER_INIT_MEMBER(system1_state,bank0c)
{
m_videomode_custom = &system1_state::bank0c_custom_w;
- m_banked_decrypted_opcodes = NULL;
+ m_banked_decrypted_opcodes = nullptr;
}
DRIVER_INIT_MEMBER(system1_state,regulus)
diff --git a/src/mame/drivers/system16.cpp b/src/mame/drivers/system16.cpp
index 9d5bb80a0fa..c71cbeab08c 100644
--- a/src/mame/drivers/system16.cpp
+++ b/src/mame/drivers/system16.cpp
@@ -404,7 +404,7 @@ WRITE8_MEMBER(segas1x_bootleg_state::tturfbl_soundbank_w)
m_soundbank_ptr = mem;
break;
default:
- m_soundbank_ptr = NULL;
+ m_soundbank_ptr = nullptr;
logerror("Invalid bank setting %02X (%04X)\n", data, space.device().safe_pc());
break;
}
@@ -1024,7 +1024,7 @@ WRITE16_MEMBER(segas1x_bootleg_state::sys18_tilebank_w)
READ8_MEMBER(segas1x_bootleg_state::system18_bank_r)
{
- if (m_sound_bank != NULL)
+ if (m_sound_bank != nullptr)
return m_sound_bank[offset];
return 0xff;
@@ -1051,7 +1051,7 @@ WRITE8_MEMBER(segas1x_bootleg_state::sys18_soundbank_w)
if (mask)
m_sound_bank = &mem[0x10000 + offs + ((bank & mask) << 13)];
else
- m_sound_bank = NULL;
+ m_sound_bank = nullptr;
}
static ADDRESS_MAP_START( sound_18_io_map, AS_IO, 8, segas1x_bootleg_state )
@@ -1223,7 +1223,7 @@ WRITE8_MEMBER(segas1x_bootleg_state::shdancbl_bankctrl_w)
m_soundbank_ptr = &mem[0x24000]; /* IC46 4000-7FFF */
break;
default:
- m_soundbank_ptr = NULL;
+ m_soundbank_ptr = nullptr;
logerror("Invalid bank setting %02X (%04X)\n", data, space.device().safe_pc());
break;
}
@@ -3486,10 +3486,10 @@ ROM_END
DRIVER_INIT_MEMBER(segas1x_bootleg_state,common)
{
m_bg1_trans = 0;
- m_splittab_bg_x = 0;
- m_splittab_bg_y = 0;
- m_splittab_fg_x = 0;
- m_splittab_fg_y = 0;
+ m_splittab_bg_x = nullptr;
+ m_splittab_bg_y = nullptr;
+ m_splittab_fg_x = nullptr;
+ m_splittab_fg_y = nullptr;
m_spritebank_type = 0;
m_back_yscroll = 0;
@@ -3499,7 +3499,7 @@ DRIVER_INIT_MEMBER(segas1x_bootleg_state,common)
m_sample_buffer = 0;
m_sample_select = 0;
- m_soundbank_ptr = NULL;
+ m_soundbank_ptr = nullptr;
m_beautyb_unkx = 0;
diff --git a/src/mame/drivers/taito_f3.cpp b/src/mame/drivers/taito_f3.cpp
index 570034e603c..ffc5c4f25e1 100644
--- a/src/mame/drivers/taito_f3.cpp
+++ b/src/mame/drivers/taito_f3.cpp
@@ -233,8 +233,8 @@ static INPUT_PORTS_START( f3 )
PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_START3 )
PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_START4 )
- PORT_BIT( 0x00ff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taito_f3_state,eeprom_read, (void *)0)
- PORT_BIT( 0xff000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taito_f3_state,eeprom_read, (void *)0)
+ PORT_BIT( 0x00ff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taito_f3_state,eeprom_read, (void *)nullptr)
+ PORT_BIT( 0xff000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taito_f3_state,eeprom_read, (void *)nullptr)
/* MSW: Coin counters/lockouts are readable, LSW: Joysticks (Player 1 & 2) */
PORT_START("IN.1")
@@ -247,7 +247,7 @@ static INPUT_PORTS_START( f3 )
PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
PORT_BIT( 0x0000ff00, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* These must be high */
- PORT_BIT( 0xffff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taito_f3_state,f3_coin_r, (void *)0)
+ PORT_BIT( 0xffff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taito_f3_state,f3_coin_r, (void *)nullptr)
/* Player 3 & 4 fire buttons (Player 2 top fire buttons in Kaiser Knuckle) */
PORT_START("IN.4")
@@ -277,7 +277,7 @@ static INPUT_PORTS_START( f3 )
/* Analog control 1 */
PORT_START("IN.2")
- PORT_BIT( 0x0000ffff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taito_f3_state,f3_analog_r, (void*)0)
+ PORT_BIT( 0x0000ffff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taito_f3_state,f3_analog_r, (void*)nullptr)
PORT_BIT( 0xffff0000, IP_ACTIVE_LOW, IPT_UNKNOWN )
/* Analog control 2 */
@@ -386,10 +386,10 @@ static const gfx_layout tile_layout =
};
static GFXDECODE_START( taito_f3 )
- 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
/******************************************************************************/
@@ -523,10 +523,10 @@ static const gfx_layout bubsympb_tile_layout =
static GFXDECODE_START( bubsympb )
- GFXDECODE_ENTRY( NULL, 0x000000, charlayout, 0, 64 ) /* Dynamically modified */
+ GFXDECODE_ENTRY( nullptr, 0x000000, charlayout, 0, 64 ) /* Dynamically modified */
GFXDECODE_ENTRY( "gfx2", 0x000000, bubsympb_tile_layout, 0, 512 ) /* Tiles area */
GFXDECODE_ENTRY( "gfx1", 0x000000, bubsympb_sprite_layout, 4096, 256 ) /* Sprites area */
- GFXDECODE_ENTRY( NULL, 0x000000, pivotlayout, 0, 64 ) /* Dynamically modified */
+ GFXDECODE_ENTRY( nullptr, 0x000000, pivotlayout, 0, 64 ) /* Dynamically modified */
GFXDECODE_END
static MACHINE_CONFIG_START( bubsympb, taito_f3_state )
@@ -573,13 +573,13 @@ ROM_START( ringrage )
ROM_LOAD16_BYTE("d21-02.66", 0x000000, 0x200000, CRC(facd3a02) SHA1(360c6e65d01dd2c33495ba928ef9986f754b3694) )
ROM_LOAD16_BYTE("d21-03.67", 0x000001, 0x200000, CRC(6f653e68) SHA1(840905f012c37d58160cc554c036ad25218ce3e6) )
ROM_LOAD ("d21-04.68", 0x600000, 0x200000, CRC(9dcdceca) SHA1(e12bab5307ebe4c3b5f9284c91f3bf7ba4c8e9bc) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0 ) /* Tiles */
ROM_LOAD16_BYTE("d21-06.49", 0x000000, 0x080000, CRC(92d4a720) SHA1(81dc58c58d5f4f20ceeb5d6b90491f1efcbc67d3) )
ROM_LOAD16_BYTE("d21-07.50", 0x000001, 0x080000, CRC(6da696e9) SHA1(74332090b0de4193a669cd5242fd655e7b90f772) )
ROM_LOAD ("d21-08.51", 0x180000, 0x080000, CRC(a0d95be9) SHA1(1746097e827ac10906f012c5c4f93c388a30f4b3) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d21-18.5", 0x100000, 0x20000, CRC(133b55d0) SHA1(feb5c9d0b1adcae3b16eb206c8ac4e73fd88bef4) )
@@ -602,13 +602,13 @@ ROM_START( ringrageu )
ROM_LOAD16_BYTE("d21-02.66", 0x000000, 0x200000, CRC(facd3a02) SHA1(360c6e65d01dd2c33495ba928ef9986f754b3694) )
ROM_LOAD16_BYTE("d21-03.67", 0x000001, 0x200000, CRC(6f653e68) SHA1(840905f012c37d58160cc554c036ad25218ce3e6) )
ROM_LOAD ("d21-04.68", 0x600000, 0x200000, CRC(9dcdceca) SHA1(e12bab5307ebe4c3b5f9284c91f3bf7ba4c8e9bc) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0 ) /* Tiles */
ROM_LOAD16_BYTE("d21-06.49", 0x000000, 0x080000, CRC(92d4a720) SHA1(81dc58c58d5f4f20ceeb5d6b90491f1efcbc67d3) )
ROM_LOAD16_BYTE("d21-07.50", 0x000001, 0x080000, CRC(6da696e9) SHA1(74332090b0de4193a669cd5242fd655e7b90f772) )
ROM_LOAD ("d21-08.51", 0x180000, 0x080000, CRC(a0d95be9) SHA1(1746097e827ac10906f012c5c4f93c388a30f4b3) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d21-18.5", 0x100000, 0x20000, CRC(133b55d0) SHA1(feb5c9d0b1adcae3b16eb206c8ac4e73fd88bef4) )
@@ -631,13 +631,13 @@ ROM_START( ringragej )
ROM_LOAD16_BYTE("d21-02.66", 0x000000, 0x200000, CRC(facd3a02) SHA1(360c6e65d01dd2c33495ba928ef9986f754b3694) )
ROM_LOAD16_BYTE("d21-03.67", 0x000001, 0x200000, CRC(6f653e68) SHA1(840905f012c37d58160cc554c036ad25218ce3e6) )
ROM_LOAD ("d21-04.68", 0x600000, 0x200000, CRC(9dcdceca) SHA1(e12bab5307ebe4c3b5f9284c91f3bf7ba4c8e9bc) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0 ) /* Tiles */
ROM_LOAD16_BYTE("d21-06.49", 0x000000, 0x080000, CRC(92d4a720) SHA1(81dc58c58d5f4f20ceeb5d6b90491f1efcbc67d3) )
ROM_LOAD16_BYTE("d21-07.50", 0x000001, 0x080000, CRC(6da696e9) SHA1(74332090b0de4193a669cd5242fd655e7b90f772) )
ROM_LOAD ("d21-08.51", 0x180000, 0x080000, CRC(a0d95be9) SHA1(1746097e827ac10906f012c5c4f93c388a30f4b3) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d21-18.5", 0x100000, 0x20000, CRC(133b55d0) SHA1(feb5c9d0b1adcae3b16eb206c8ac4e73fd88bef4) )
@@ -660,13 +660,13 @@ ROM_START( arabianm )
ROM_LOAD16_BYTE("d29-03.ic66", 0x000000, 0x100000, CRC(aeaff456) SHA1(e70d0089e69d33d213be8195c31891f38fbcb53a) )
ROM_LOAD16_BYTE("d29-04.ic67", 0x000001, 0x100000, CRC(01711cfe) SHA1(26da4cc9dcb8d38bdf8c93015f77e58ffc9d1ba9) )
ROM_LOAD ("d29-05.ic68", 0x300000, 0x100000, CRC(9b5f7a17) SHA1(89d9faedc7b55df6237f2c2ebb43de7de685cb66) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d29-06.ic49", 0x000000, 0x080000, CRC(eea07bf3) SHA1(7860a2c0c592af000b56e59bd39d67b086fe3606) )
ROM_LOAD16_BYTE("d29-07.ic50", 0x000001, 0x080000, CRC(db3c094d) SHA1(5b60f0fa1054bf93ce51d310376b1abdb3022541) )
ROM_LOAD ("d29-08.ic51", 0x180000, 0x080000, CRC(d7562851) SHA1(91d86e75ba7a590ca298b932b4cf8fa9228f115e) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d29-18.ic5", 0x100000, 0x20000, CRC(d97780df) SHA1(d0f9d2fd7ce13f620bb44083bf012f67dda4b10b) )
@@ -700,13 +700,13 @@ ROM_START( arabianmj )
ROM_LOAD16_BYTE("d29-03.ic66", 0x000000, 0x100000, CRC(aeaff456) SHA1(e70d0089e69d33d213be8195c31891f38fbcb53a) )
ROM_LOAD16_BYTE("d29-04.ic67", 0x000001, 0x100000, CRC(01711cfe) SHA1(26da4cc9dcb8d38bdf8c93015f77e58ffc9d1ba9) )
ROM_LOAD ("d29-05.ic68", 0x300000, 0x100000, CRC(9b5f7a17) SHA1(89d9faedc7b55df6237f2c2ebb43de7de685cb66) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d29-06.ic49", 0x000000, 0x080000, CRC(eea07bf3) SHA1(7860a2c0c592af000b56e59bd39d67b086fe3606) )
ROM_LOAD16_BYTE("d29-07.ic50", 0x000001, 0x080000, CRC(db3c094d) SHA1(5b60f0fa1054bf93ce51d310376b1abdb3022541) )
ROM_LOAD ("d29-08.ic51", 0x180000, 0x080000, CRC(d7562851) SHA1(91d86e75ba7a590ca298b932b4cf8fa9228f115e) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d29-18.ic5", 0x100000, 0x20000, CRC(d97780df) SHA1(d0f9d2fd7ce13f620bb44083bf012f67dda4b10b) )
@@ -740,13 +740,13 @@ ROM_START( arabianmu )
ROM_LOAD16_BYTE("d29-03.ic66", 0x000000, 0x100000, CRC(aeaff456) SHA1(e70d0089e69d33d213be8195c31891f38fbcb53a) )
ROM_LOAD16_BYTE("d29-04.ic67", 0x000001, 0x100000, CRC(01711cfe) SHA1(26da4cc9dcb8d38bdf8c93015f77e58ffc9d1ba9) )
ROM_LOAD ("d29-05.ic68", 0x300000, 0x100000, CRC(9b5f7a17) SHA1(89d9faedc7b55df6237f2c2ebb43de7de685cb66) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d29-06.ic49", 0x000000, 0x080000, CRC(eea07bf3) SHA1(7860a2c0c592af000b56e59bd39d67b086fe3606) )
ROM_LOAD16_BYTE("d29-07.ic50", 0x000001, 0x080000, CRC(db3c094d) SHA1(5b60f0fa1054bf93ce51d310376b1abdb3022541) )
ROM_LOAD ("d29-08.ic51", 0x180000, 0x080000, CRC(d7562851) SHA1(91d86e75ba7a590ca298b932b4cf8fa9228f115e) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d29-18.ic5", 0x100000, 0x20000, CRC(d97780df) SHA1(d0f9d2fd7ce13f620bb44083bf012f67dda4b10b) )
@@ -779,12 +779,12 @@ ROM_START( ridingf )
ROM_REGION(0x800000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("d34-01.66", 0x000000, 0x200000, CRC(7974e6aa) SHA1(f3f697d0e2f52011046aa2db2df25a4b55a631d5) )
ROM_LOAD16_BYTE("d34-02.67", 0x000001, 0x200000, CRC(f4422370) SHA1(27ba051e0dc27b39652ff1d940a2dd29965c6528) )
- ROM_FILL ( 0x400000, 0x400000, 0 )
+ ROM_FILL ( 0x400000, 0x400000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d34-05.49", 0x000000, 0x080000, CRC(72e3ee4b) SHA1(2b69487338c18ced7a2ac4f280e8e22aa7209eb3) )
ROM_LOAD16_BYTE("d34-06.50", 0x000001, 0x080000, CRC(edc9b9f3) SHA1(c57bec1c8882d95388c3fae7cb5a321bdb202737) )
- ROM_FILL ( 0x100000, 0x100000, 0 )
+ ROM_FILL ( 0x100000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d34-07.5", 0x100000, 0x20000, CRC(67239e2b) SHA1(8e0268fab53d26cde5c1928326c4787533dc6ffe) )
@@ -806,12 +806,12 @@ ROM_START( ridingfj )
ROM_REGION(0x800000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("d34-01.66", 0x000000, 0x200000, CRC(7974e6aa) SHA1(f3f697d0e2f52011046aa2db2df25a4b55a631d5) )
ROM_LOAD16_BYTE("d34-02.67", 0x000001, 0x200000, CRC(f4422370) SHA1(27ba051e0dc27b39652ff1d940a2dd29965c6528) )
- ROM_FILL ( 0x400000, 0x400000, 0 )
+ ROM_FILL ( 0x400000, 0x400000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d34-05.49", 0x000000, 0x080000, CRC(72e3ee4b) SHA1(2b69487338c18ced7a2ac4f280e8e22aa7209eb3) )
ROM_LOAD16_BYTE("d34-06.50", 0x000001, 0x080000, CRC(edc9b9f3) SHA1(c57bec1c8882d95388c3fae7cb5a321bdb202737) )
- ROM_FILL ( 0x100000, 0x100000, 0 )
+ ROM_FILL ( 0x100000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d34-07.5", 0x100000, 0x20000, CRC(67239e2b) SHA1(8e0268fab53d26cde5c1928326c4787533dc6ffe) )
@@ -833,12 +833,12 @@ ROM_START( ridingfu )
ROM_REGION(0x800000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("d34-01.66", 0x000000, 0x200000, CRC(7974e6aa) SHA1(f3f697d0e2f52011046aa2db2df25a4b55a631d5) )
ROM_LOAD16_BYTE("d34-02.67", 0x000001, 0x200000, CRC(f4422370) SHA1(27ba051e0dc27b39652ff1d940a2dd29965c6528) )
- ROM_FILL ( 0x400000, 0x400000, 0 )
+ ROM_FILL ( 0x400000, 0x400000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d34-05.49", 0x000000, 0x080000, CRC(72e3ee4b) SHA1(2b69487338c18ced7a2ac4f280e8e22aa7209eb3) )
ROM_LOAD16_BYTE("d34-06.50", 0x000001, 0x080000, CRC(edc9b9f3) SHA1(c57bec1c8882d95388c3fae7cb5a321bdb202737) )
- ROM_FILL ( 0x100000, 0x100000, 0 )
+ ROM_FILL ( 0x100000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d34-07.5", 0x100000, 0x20000, CRC(67239e2b) SHA1(8e0268fab53d26cde5c1928326c4787533dc6ffe) )
@@ -864,12 +864,12 @@ ROM_START( gseeker )
ROM_LOAD16_BYTE("d40_15.rom", 0x000000, 0x080000, CRC(50555125) SHA1(587cdfb2e027c1d96ecc46d2612956deca5fd36f) )
ROM_LOAD16_BYTE("d40_16.rom", 0x000001, 0x080000, CRC(3f9bbe1e) SHA1(6d9b2d2d893257ad096c276eff4077f60a81921f) )
/* Taito manufactured mask roms 3 + 4 wrong, and later added 15 + 16 as a patch */
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d40_05.rom", 0x000000, 0x100000, CRC(be6eec8f) SHA1(725e5e09f6ee60bd4c38fa223c4dea202c56f75f) )
ROM_LOAD16_BYTE("d40_06.rom", 0x000001, 0x100000, CRC(a822abe4) SHA1(1a0dd9dcb8e24daab6eb1661307ef0e10f7e4d4e) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d40_07.rom", 0x100000, 0x20000, CRC(7e9b26c2) SHA1(d88ad39a9d70b4a5bd3f83e0d4d0725f659f1d2a) )
@@ -895,12 +895,12 @@ ROM_START( gseekerj )
ROM_LOAD16_BYTE("d40_15.rom", 0x000000, 0x080000, CRC(50555125) SHA1(587cdfb2e027c1d96ecc46d2612956deca5fd36f) )
ROM_LOAD16_BYTE("d40_16.rom", 0x000001, 0x080000, CRC(3f9bbe1e) SHA1(6d9b2d2d893257ad096c276eff4077f60a81921f) )
/* Taito manufactured mask roms 3 + 4 wrong, and later added 15 + 16 as a patch */
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d40_05.rom", 0x000000, 0x100000, CRC(be6eec8f) SHA1(725e5e09f6ee60bd4c38fa223c4dea202c56f75f) )
ROM_LOAD16_BYTE("d40_06.rom", 0x000001, 0x100000, CRC(a822abe4) SHA1(1a0dd9dcb8e24daab6eb1661307ef0e10f7e4d4e) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d40_07.rom", 0x100000, 0x20000, CRC(7e9b26c2) SHA1(d88ad39a9d70b4a5bd3f83e0d4d0725f659f1d2a) )
@@ -926,12 +926,12 @@ ROM_START( gseekeru )
ROM_LOAD16_BYTE("d40_15.rom", 0x000000, 0x080000, CRC(50555125) SHA1(587cdfb2e027c1d96ecc46d2612956deca5fd36f) )
ROM_LOAD16_BYTE("d40_16.rom", 0x000001, 0x080000, CRC(3f9bbe1e) SHA1(6d9b2d2d893257ad096c276eff4077f60a81921f) )
/* Taito manufactured mask roms 3 + 4 wrong, and later added 15 + 16 as a patch */
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d40_05.rom", 0x000000, 0x100000, CRC(be6eec8f) SHA1(725e5e09f6ee60bd4c38fa223c4dea202c56f75f) )
ROM_LOAD16_BYTE("d40_06.rom", 0x000001, 0x100000, CRC(a822abe4) SHA1(1a0dd9dcb8e24daab6eb1661307ef0e10f7e4d4e) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d40_07.rom", 0x100000, 0x20000, CRC(7e9b26c2) SHA1(d88ad39a9d70b4a5bd3f83e0d4d0725f659f1d2a) )
@@ -957,13 +957,13 @@ ROM_START( commandw )
ROM_LOAD16_BYTE("cw_objm1.bin", 0x400001, 0x200000, CRC(504b1bf5) SHA1(7b8ff7834907a9cdab5416bf713487bf71b9070e) )
ROM_LOAD ("cw_objh0.bin", 0xc00000, 0x200000, CRC(83d7e0ae) SHA1(774a07d0cadc2c8f5ec155270bf927e4462654e2) )
ROM_LOAD ("cw_objh1.bin", 0xe00000, 0x200000, CRC(324f5832) SHA1(ff91243c5d09c4c46904640fe278a7485db70577) )
- ROM_FILL ( 0x800000, 0x400000, 0 )
+ ROM_FILL ( 0x800000, 0x400000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("cw_scr_l.bin", 0x000000, 0x100000, CRC(4d202323) SHA1(0150bcba6d2bf2c3cde88bb519f57f3b58314244) )
ROM_LOAD16_BYTE("cw_scr_m.bin", 0x000001, 0x100000, CRC(537b1c7d) SHA1(bc61aa61891366cbea4b8ecb820d93e28d01f8d2) )
ROM_LOAD ("cw_scr_h.bin", 0x300000, 0x100000, CRC(001f85dd) SHA1(2532377c0b54bc964ea4e74911ff62fea2d53975) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("cw_spr1.bin", 0x100000, 0x20000, CRC(c8f81c25) SHA1(1c914053826587cc2d5d2c0220a3e29a641fe6f9) )
@@ -988,13 +988,13 @@ ROM_START( cupfinal )
ROM_LOAD16_BYTE("d49-07.7", 0x400001, 0x100000, CRC(e5655b8f) SHA1(2c21745370bfe9dbf0e95f7ce42ed34a162bff64) )
ROM_LOAD ("d49-03.4", 0x900000, 0x200000, CRC(cf9a8727) SHA1(f21787fdcdd8be2009c2d481a9b2d7fc03ce782e) )
ROM_LOAD ("d49-08.3", 0xb00000, 0x100000, CRC(7d3c6536) SHA1(289b4bf79ebd9cbdf64ab956784d226e6d546654) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d49-09.47", 0x000000, 0x080000, CRC(257ede01) SHA1(c36397d95706c5e68a7738c84829a51c5e8f5ef7) )
ROM_LOAD16_BYTE("d49-10.45", 0x000001, 0x080000, CRC(f587b787) SHA1(22db4904c134756ddd0f753f197419d27e60a827) )
ROM_LOAD ("d49-11.43", 0x180000, 0x080000, CRC(11318b26) SHA1(a7153f9f406d52189f59cbe58d65f88f4e2e6fcc) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d49-17.32", 0x100000, 0x20000, CRC(f2058eba) SHA1(7faaa94fadf02b6304287b61fb9613f9f4169fef) )
@@ -1020,13 +1020,13 @@ ROM_START( hthero93 )
ROM_LOAD16_BYTE("d49-07.7", 0x400001, 0x100000, CRC(e5655b8f) SHA1(2c21745370bfe9dbf0e95f7ce42ed34a162bff64) )
ROM_LOAD ("d49-03.4", 0x900000, 0x200000, CRC(cf9a8727) SHA1(f21787fdcdd8be2009c2d481a9b2d7fc03ce782e) )
ROM_LOAD ("d49-08.3", 0xb00000, 0x100000, CRC(7d3c6536) SHA1(289b4bf79ebd9cbdf64ab956784d226e6d546654) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d49-09.47", 0x000000, 0x080000, CRC(257ede01) SHA1(c36397d95706c5e68a7738c84829a51c5e8f5ef7) )
ROM_LOAD16_BYTE("d49-10.45", 0x000001, 0x080000, CRC(f587b787) SHA1(22db4904c134756ddd0f753f197419d27e60a827) )
ROM_LOAD ("d49-11.43", 0x180000, 0x080000, CRC(11318b26) SHA1(a7153f9f406d52189f59cbe58d65f88f4e2e6fcc) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d49-17.32", 0x100000, 0x20000, CRC(f2058eba) SHA1(7faaa94fadf02b6304287b61fb9613f9f4169fef) )
@@ -1052,13 +1052,13 @@ ROM_START( trstar )
ROM_LOAD16_BYTE("d53-07.65", 0x400001, 0x100000, CRC(2f4773c3) SHA1(17cef13de0836923743b336cc5a64f7452629486) )
ROM_LOAD ("d53-05.47", 0x900000, 0x200000, CRC(b9b68b15) SHA1(c3783b09b22954a959188b80e537fa84d827ac47) )
ROM_LOAD ("d53-08.66", 0xb00000, 0x100000, CRC(ad13a1ee) SHA1(341112055b6bee33072c262f4ea7c4d0970888a6) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d53-09.48", 0x000000, 0x100000, CRC(690554d3) SHA1(113afd8fe7b77a30c2e3c5baca3f19d74902625b) )
ROM_LOAD16_BYTE("d53-10.49", 0x000001, 0x100000, CRC(0ec05dc5) SHA1(781a6362ef963417fb6383a62dcc70d6f5b3131b) )
ROM_LOAD ("d53-11.50", 0x300000, 0x100000, CRC(39c0a546) SHA1(53f03586f6586032fc3b4f90e987c1128edbb0a7) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d53-13.10", 0x100000, 0x20000, CRC(877f0361) SHA1(eda58d71fb06f739bee1451d7aa7e7e6dee10e03) )
@@ -1083,13 +1083,13 @@ ROM_START( trstarj )
ROM_LOAD16_BYTE("d53-07.65", 0x400001, 0x100000, CRC(2f4773c3) SHA1(17cef13de0836923743b336cc5a64f7452629486) )
ROM_LOAD ("d53-05.47", 0x900000, 0x200000, CRC(b9b68b15) SHA1(c3783b09b22954a959188b80e537fa84d827ac47) )
ROM_LOAD ("d53-08.66", 0xb00000, 0x100000, CRC(ad13a1ee) SHA1(341112055b6bee33072c262f4ea7c4d0970888a6) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d53-09.48", 0x000000, 0x100000, CRC(690554d3) SHA1(113afd8fe7b77a30c2e3c5baca3f19d74902625b) )
ROM_LOAD16_BYTE("d53-10.49", 0x000001, 0x100000, CRC(0ec05dc5) SHA1(781a6362ef963417fb6383a62dcc70d6f5b3131b) )
ROM_LOAD ("d53-11.50", 0x300000, 0x100000, CRC(39c0a546) SHA1(53f03586f6586032fc3b4f90e987c1128edbb0a7) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d53-13.10", 0x100000, 0x20000, CRC(877f0361) SHA1(eda58d71fb06f739bee1451d7aa7e7e6dee10e03) )
@@ -1114,13 +1114,13 @@ ROM_START( prmtmfgt )
ROM_LOAD16_BYTE("d53-07.65", 0x400001, 0x100000, CRC(2f4773c3) SHA1(17cef13de0836923743b336cc5a64f7452629486) )
ROM_LOAD ("d53-05.47", 0x900000, 0x200000, CRC(b9b68b15) SHA1(c3783b09b22954a959188b80e537fa84d827ac47) )
ROM_LOAD ("d53-08.66", 0xb00000, 0x100000, CRC(ad13a1ee) SHA1(341112055b6bee33072c262f4ea7c4d0970888a6) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d53-09.48", 0x000000, 0x100000, CRC(690554d3) SHA1(113afd8fe7b77a30c2e3c5baca3f19d74902625b) )
ROM_LOAD16_BYTE("d53-10.49", 0x000001, 0x100000, CRC(0ec05dc5) SHA1(781a6362ef963417fb6383a62dcc70d6f5b3131b) )
ROM_LOAD ("d53-11.50", 0x300000, 0x100000, CRC(39c0a546) SHA1(53f03586f6586032fc3b4f90e987c1128edbb0a7) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d53-13.10", 0x100000, 0x20000, CRC(877f0361) SHA1(eda58d71fb06f739bee1451d7aa7e7e6dee10e03) )
@@ -1145,13 +1145,13 @@ ROM_START( trstaro )
ROM_LOAD16_BYTE("d53-07.65", 0x400001, 0x100000, CRC(2f4773c3) SHA1(17cef13de0836923743b336cc5a64f7452629486) )
ROM_LOAD ("d53-05.47", 0x900000, 0x200000, CRC(b9b68b15) SHA1(c3783b09b22954a959188b80e537fa84d827ac47) )
ROM_LOAD ("d53-08.66", 0xb00000, 0x100000, CRC(ad13a1ee) SHA1(341112055b6bee33072c262f4ea7c4d0970888a6) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d53-09.48", 0x000000, 0x100000, CRC(690554d3) SHA1(113afd8fe7b77a30c2e3c5baca3f19d74902625b) )
ROM_LOAD16_BYTE("d53-10.49", 0x000001, 0x100000, CRC(0ec05dc5) SHA1(781a6362ef963417fb6383a62dcc70d6f5b3131b) )
ROM_LOAD ("d53-11.50", 0x300000, 0x100000, CRC(39c0a546) SHA1(53f03586f6586032fc3b4f90e987c1128edbb0a7) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d53-13.10", 0x100000, 0x20000, CRC(877f0361) SHA1(eda58d71fb06f739bee1451d7aa7e7e6dee10e03) )
@@ -1176,13 +1176,13 @@ ROM_START( trstaroj )
ROM_LOAD16_BYTE("d53-07.65", 0x400001, 0x100000, CRC(2f4773c3) SHA1(17cef13de0836923743b336cc5a64f7452629486) )
ROM_LOAD ("d53-05.47", 0x900000, 0x200000, CRC(b9b68b15) SHA1(c3783b09b22954a959188b80e537fa84d827ac47) )
ROM_LOAD ("d53-08.66", 0xb00000, 0x100000, CRC(ad13a1ee) SHA1(341112055b6bee33072c262f4ea7c4d0970888a6) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d53-09.48", 0x000000, 0x100000, CRC(690554d3) SHA1(113afd8fe7b77a30c2e3c5baca3f19d74902625b) )
ROM_LOAD16_BYTE("d53-10.49", 0x000001, 0x100000, CRC(0ec05dc5) SHA1(781a6362ef963417fb6383a62dcc70d6f5b3131b) )
ROM_LOAD ("d53-11.50", 0x300000, 0x100000, CRC(39c0a546) SHA1(53f03586f6586032fc3b4f90e987c1128edbb0a7) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d53-13.10", 0x100000, 0x20000, CRC(877f0361) SHA1(eda58d71fb06f739bee1451d7aa7e7e6dee10e03) )
@@ -1207,13 +1207,13 @@ ROM_START( prmtmfgto )
ROM_LOAD16_BYTE("d53-07.65", 0x400001, 0x100000, CRC(2f4773c3) SHA1(17cef13de0836923743b336cc5a64f7452629486) )
ROM_LOAD ("d53-05.47", 0x900000, 0x200000, CRC(b9b68b15) SHA1(c3783b09b22954a959188b80e537fa84d827ac47) )
ROM_LOAD ("d53-08.66", 0xb00000, 0x100000, CRC(ad13a1ee) SHA1(341112055b6bee33072c262f4ea7c4d0970888a6) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d53-09.48", 0x000000, 0x100000, CRC(690554d3) SHA1(113afd8fe7b77a30c2e3c5baca3f19d74902625b) )
ROM_LOAD16_BYTE("d53-10.49", 0x000001, 0x100000, CRC(0ec05dc5) SHA1(781a6362ef963417fb6383a62dcc70d6f5b3131b) )
ROM_LOAD ("d53-11.50", 0x300000, 0x100000, CRC(39c0a546) SHA1(53f03586f6586032fc3b4f90e987c1128edbb0a7) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d53-13.10", 0x100000, 0x20000, CRC(877f0361) SHA1(eda58d71fb06f739bee1451d7aa7e7e6dee10e03) )
@@ -1235,13 +1235,13 @@ ROM_START( gunlock )
ROM_LOAD16_BYTE("d66-03.ic45", 0x000000, 0x100000, CRC(e7a4a491) SHA1(87837e8dd1c9a1db5e540b678233634bd52328f0) )
ROM_LOAD16_BYTE("d66-04.ic46", 0x000001, 0x100000, CRC(c1c7aaa7) SHA1(f929516cf50d82b2d1d1b4c49a0eb1dea819aae1) )
ROM_LOAD ("d66-05.ic47", 0x300000, 0x100000, CRC(a3cefe04) SHA1(dd4f47a814853f4512ce25c5f25121c53ee4ada1) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d66-06.ic48", 0x000000, 0x100000, CRC(b3d8126d) SHA1(3cbb44f396973c36abdf3fdf391becb22bb6d661) )
ROM_LOAD16_BYTE("d66-07.ic49", 0x000001, 0x100000, CRC(a6da9be7) SHA1(b528505ab925db75acf31bfbed2035cbe36e7a74) )
ROM_LOAD ("d66-08.ic49", 0x300000, 0x100000, CRC(9959f30b) SHA1(64bf2bf995c283c00d968e3c078b824de4084d3d) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 code */
ROM_LOAD16_BYTE("d66-23.ic10", 0x100000, 0x40000, CRC(57fb7c49) SHA1(f8709fd1e9ea7cee10ee2288d13339f675a7d3ae) )
@@ -1263,13 +1263,13 @@ ROM_START( rayforce )
ROM_LOAD16_BYTE("d66-03.ic45", 0x000000, 0x100000, CRC(e7a4a491) SHA1(87837e8dd1c9a1db5e540b678233634bd52328f0) )
ROM_LOAD16_BYTE("d66-04.ic46", 0x000001, 0x100000, CRC(c1c7aaa7) SHA1(f929516cf50d82b2d1d1b4c49a0eb1dea819aae1) )
ROM_LOAD ("d66-05.ic47", 0x300000, 0x100000, CRC(a3cefe04) SHA1(dd4f47a814853f4512ce25c5f25121c53ee4ada1) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d66-06.ic48", 0x000000, 0x100000, CRC(b3d8126d) SHA1(3cbb44f396973c36abdf3fdf391becb22bb6d661) )
ROM_LOAD16_BYTE("d66-07.ic49", 0x000001, 0x100000, CRC(a6da9be7) SHA1(b528505ab925db75acf31bfbed2035cbe36e7a74) )
ROM_LOAD ("d66-08.ic49", 0x300000, 0x100000, CRC(9959f30b) SHA1(64bf2bf995c283c00d968e3c078b824de4084d3d) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 code */
ROM_LOAD16_BYTE("d66-23.ic10", 0x100000, 0x40000, CRC(57fb7c49) SHA1(f8709fd1e9ea7cee10ee2288d13339f675a7d3ae) )
@@ -1291,13 +1291,13 @@ ROM_START( rayforcej )
ROM_LOAD16_BYTE("d66-03.ic45", 0x000000, 0x100000, CRC(e7a4a491) SHA1(87837e8dd1c9a1db5e540b678233634bd52328f0) )
ROM_LOAD16_BYTE("d66-04.ic46", 0x000001, 0x100000, CRC(c1c7aaa7) SHA1(f929516cf50d82b2d1d1b4c49a0eb1dea819aae1) )
ROM_LOAD ("d66-05.ic47", 0x300000, 0x100000, CRC(a3cefe04) SHA1(dd4f47a814853f4512ce25c5f25121c53ee4ada1) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d66-06.ic48", 0x000000, 0x100000, CRC(b3d8126d) SHA1(3cbb44f396973c36abdf3fdf391becb22bb6d661) )
ROM_LOAD16_BYTE("d66-07.ic49", 0x000001, 0x100000, CRC(a6da9be7) SHA1(b528505ab925db75acf31bfbed2035cbe36e7a74) )
ROM_LOAD ("d66-08.ic49", 0x300000, 0x100000, CRC(9959f30b) SHA1(64bf2bf995c283c00d968e3c078b824de4084d3d) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 code */
ROM_LOAD16_BYTE("d66-23.ic10", 0x100000, 0x40000, CRC(57fb7c49) SHA1(f8709fd1e9ea7cee10ee2288d13339f675a7d3ae) )
@@ -1322,13 +1322,13 @@ ROM_START( scfinals ) /* This is the single PCB version */
ROM_LOAD16_BYTE("d49-07.7", 0x400001, 0x100000, CRC(e5655b8f) SHA1(2c21745370bfe9dbf0e95f7ce42ed34a162bff64) )
ROM_LOAD ("d49-03.4", 0x900000, 0x200000, CRC(cf9a8727) SHA1(f21787fdcdd8be2009c2d481a9b2d7fc03ce782e) )
ROM_LOAD ("d49-08.3", 0xb00000, 0x100000, CRC(7d3c6536) SHA1(289b4bf79ebd9cbdf64ab956784d226e6d546654) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d49-09.47", 0x000000, 0x080000, CRC(257ede01) SHA1(c36397d95706c5e68a7738c84829a51c5e8f5ef7) ) /* Single PCB version locations may differ */
ROM_LOAD16_BYTE("d49-10.45", 0x000001, 0x080000, CRC(f587b787) SHA1(22db4904c134756ddd0f753f197419d27e60a827) )
ROM_LOAD ("d49-11.43", 0x180000, 0x080000, CRC(11318b26) SHA1(a7153f9f406d52189f59cbe58d65f88f4e2e6fcc) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d49-17.ic5", 0x100000, 0x20000, CRC(f2058eba) SHA1(7faaa94fadf02b6304287b61fb9613f9f4169fef) )
@@ -1357,13 +1357,13 @@ ROM_START( scfinalso ) /* Cart version */
ROM_LOAD16_BYTE("d49-07.7", 0x400001, 0x100000, CRC(e5655b8f) SHA1(2c21745370bfe9dbf0e95f7ce42ed34a162bff64) )
ROM_LOAD ("d49-03.4", 0x900000, 0x200000, CRC(cf9a8727) SHA1(f21787fdcdd8be2009c2d481a9b2d7fc03ce782e) )
ROM_LOAD ("d49-08.3", 0xb00000, 0x100000, CRC(7d3c6536) SHA1(289b4bf79ebd9cbdf64ab956784d226e6d546654) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d49-09.47", 0x000000, 0x080000, CRC(257ede01) SHA1(c36397d95706c5e68a7738c84829a51c5e8f5ef7) )
ROM_LOAD16_BYTE("d49-10.45", 0x000001, 0x080000, CRC(f587b787) SHA1(22db4904c134756ddd0f753f197419d27e60a827) )
ROM_LOAD ("d49-11.43", 0x180000, 0x080000, CRC(11318b26) SHA1(a7153f9f406d52189f59cbe58d65f88f4e2e6fcc) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d49-17.32", 0x100000, 0x20000, CRC(f2058eba) SHA1(7faaa94fadf02b6304287b61fb9613f9f4169fef) )
@@ -1392,13 +1392,13 @@ ROM_START( lightbr )
ROM_LOAD16_BYTE("d69-10.bin", 0x400001, 0x100000, CRC(36aa80c6) SHA1(aeb5f7632810564426761b5798539bf4c4a0c64c) )
ROM_LOAD ("d69-08.bin", 0x900000, 0x200000, CRC(5b68d7d8) SHA1(f2ee3dd7100a3c9d8f402fe36dae2bc66cb17be3) )
ROM_LOAD ("d69-11.bin", 0xb00000, 0x100000, CRC(c11adf92) SHA1(ee9ce49a43b419c4f44ac1aea8d0a12d7b289244) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d69-03.bin", 0x000000, 0x200000, CRC(6999c86f) SHA1(8a91930edfc0b5d23e59f8c3b43131db6edb4d37) )
ROM_LOAD16_BYTE("d69-04.bin", 0x000001, 0x200000, CRC(cc91dcb7) SHA1(97f510b1e1a3adf49efe82babdd7abce3756ce4b) )
ROM_LOAD ("d69-05.bin", 0x600000, 0x200000, CRC(f9f5433c) SHA1(d3de66385d883c72967c44bc29983d7a79f665d1) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d69-18.bin", 0x100000, 0x20000, CRC(04600d7b) SHA1(666cfab09b61fd6e0bc4ff277018ebf1cda01b0e) )
@@ -1423,13 +1423,13 @@ ROM_START( dungeonm )
ROM_LOAD16_BYTE("d69-10.bin", 0x400001, 0x100000, CRC(36aa80c6) SHA1(aeb5f7632810564426761b5798539bf4c4a0c64c) )
ROM_LOAD ("d69-08.bin", 0x900000, 0x200000, CRC(5b68d7d8) SHA1(f2ee3dd7100a3c9d8f402fe36dae2bc66cb17be3) )
ROM_LOAD ("d69-11.bin", 0xb00000, 0x100000, CRC(c11adf92) SHA1(ee9ce49a43b419c4f44ac1aea8d0a12d7b289244) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d69-03.bin", 0x000000, 0x200000, CRC(6999c86f) SHA1(8a91930edfc0b5d23e59f8c3b43131db6edb4d37) )
ROM_LOAD16_BYTE("d69-04.bin", 0x000001, 0x200000, CRC(cc91dcb7) SHA1(97f510b1e1a3adf49efe82babdd7abce3756ce4b) )
ROM_LOAD ("d69-05.bin", 0x600000, 0x200000, CRC(f9f5433c) SHA1(d3de66385d883c72967c44bc29983d7a79f665d1) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d69-18.bin", 0x100000, 0x20000, CRC(04600d7b) SHA1(666cfab09b61fd6e0bc4ff277018ebf1cda01b0e) )
@@ -1454,13 +1454,13 @@ ROM_START( dungeonmu )
ROM_LOAD16_BYTE("d69-10.bin", 0x400001, 0x100000, CRC(36aa80c6) SHA1(aeb5f7632810564426761b5798539bf4c4a0c64c) )
ROM_LOAD ("d69-08.bin", 0x900000, 0x200000, CRC(5b68d7d8) SHA1(f2ee3dd7100a3c9d8f402fe36dae2bc66cb17be3) )
ROM_LOAD ("d69-11.bin", 0xb00000, 0x100000, CRC(c11adf92) SHA1(ee9ce49a43b419c4f44ac1aea8d0a12d7b289244) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d69-03.bin", 0x000000, 0x200000, CRC(6999c86f) SHA1(8a91930edfc0b5d23e59f8c3b43131db6edb4d37) )
ROM_LOAD16_BYTE("d69-04.bin", 0x000001, 0x200000, CRC(cc91dcb7) SHA1(97f510b1e1a3adf49efe82babdd7abce3756ce4b) )
ROM_LOAD ("d69-05.bin", 0x600000, 0x200000, CRC(f9f5433c) SHA1(d3de66385d883c72967c44bc29983d7a79f665d1) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d69-18.bin", 0x100000, 0x20000, CRC(04600d7b) SHA1(666cfab09b61fd6e0bc4ff277018ebf1cda01b0e) )
@@ -1545,13 +1545,13 @@ ROM_START( lightbrj )
ROM_LOAD16_BYTE("d69-10.bin", 0x400001, 0x100000, CRC(36aa80c6) SHA1(aeb5f7632810564426761b5798539bf4c4a0c64c) )
ROM_LOAD ("d69-08.bin", 0x900000, 0x200000, CRC(5b68d7d8) SHA1(f2ee3dd7100a3c9d8f402fe36dae2bc66cb17be3) )
ROM_LOAD ("d69-11.bin", 0xb00000, 0x100000, CRC(c11adf92) SHA1(ee9ce49a43b419c4f44ac1aea8d0a12d7b289244) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d69-03.bin", 0x000000, 0x200000, CRC(6999c86f) SHA1(8a91930edfc0b5d23e59f8c3b43131db6edb4d37) )
ROM_LOAD16_BYTE("d69-04.bin", 0x000001, 0x200000, CRC(cc91dcb7) SHA1(97f510b1e1a3adf49efe82babdd7abce3756ce4b) )
ROM_LOAD ("d69-05.bin", 0x600000, 0x200000, CRC(f9f5433c) SHA1(d3de66385d883c72967c44bc29983d7a79f665d1) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d69-18.bin", 0x100000, 0x20000, CRC(04600d7b) SHA1(666cfab09b61fd6e0bc4ff277018ebf1cda01b0e) )
@@ -1576,13 +1576,13 @@ ROM_START( intcup94 )
ROM_LOAD16_BYTE("d49-07.7", 0x400001, 0x100000, CRC(e5655b8f) SHA1(2c21745370bfe9dbf0e95f7ce42ed34a162bff64) )
ROM_LOAD ("d49-03.4", 0x900000, 0x200000, CRC(cf9a8727) SHA1(f21787fdcdd8be2009c2d481a9b2d7fc03ce782e) )
ROM_LOAD ("d49-08.3", 0xb00000, 0x100000, CRC(7d3c6536) SHA1(289b4bf79ebd9cbdf64ab956784d226e6d546654) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d78-01.47", 0x000000, 0x080000, CRC(543f8967) SHA1(2efa935e7d0fd317bbbad2758a618d408a56317c) )
ROM_LOAD16_BYTE("d78-02.45", 0x000001, 0x080000, CRC(e8289394) SHA1(b9957675f868f772943678b6a19fcc21dfd97a8d) )
ROM_LOAD ("d78-03.43", 0x180000, 0x080000, CRC(a8bc36e5) SHA1(5777b9457292e8a9cbb4e8226ba939530ffab07c) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d78-08.32", 0x100000, 0x20000, CRC(a629d07c) SHA1(b2904e106633a3960ceb2bc58b600ea60034ff0b) )
@@ -1608,13 +1608,13 @@ ROM_START( hthero94 )
ROM_LOAD16_BYTE("d49-07.7", 0x400001, 0x100000, CRC(e5655b8f) SHA1(2c21745370bfe9dbf0e95f7ce42ed34a162bff64) )
ROM_LOAD ("d49-03.4", 0x900000, 0x200000, CRC(cf9a8727) SHA1(f21787fdcdd8be2009c2d481a9b2d7fc03ce782e) )
ROM_LOAD ("d49-08.3", 0xb00000, 0x100000, CRC(7d3c6536) SHA1(289b4bf79ebd9cbdf64ab956784d226e6d546654) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d78-01.47", 0x000000, 0x080000, CRC(543f8967) SHA1(2efa935e7d0fd317bbbad2758a618d408a56317c) )
ROM_LOAD16_BYTE("d78-02.45", 0x000001, 0x080000, CRC(e8289394) SHA1(b9957675f868f772943678b6a19fcc21dfd97a8d) )
ROM_LOAD ("d78-03.43", 0x180000, 0x080000, CRC(a8bc36e5) SHA1(5777b9457292e8a9cbb4e8226ba939530ffab07c) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d78-08.32", 0x100000, 0x20000, CRC(a629d07c) SHA1(b2904e106633a3960ceb2bc58b600ea60034ff0b) )
@@ -1636,12 +1636,12 @@ ROM_START( recalh )
ROM_REGION(0x400000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("rh_objl.bin", 0x000000, 0x100000, CRC(c1772b55) SHA1(f9a04b968c63e61fa8ca60d6f331f6df0d7dd10a) )
ROM_LOAD16_BYTE("rh_objm.bin", 0x000001, 0x100000, CRC(ef87c0fd) SHA1(63e99f331d05a1ff4faf0ea94019393fe2117f54) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("rh_scrl.bin", 0x000000, 0x100000, CRC(1e3f6b79) SHA1(fef029def6393a13f4a638686a7ec7c13851a5c0) )
ROM_LOAD16_BYTE("rh_scrm.bin", 0x000001, 0x100000, CRC(37200968) SHA1(4a8d5a17af7eb732f481bf174099845e8d8d6b87) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("rh_spr1.bin", 0x100000, 0x20000, CRC(504cbc1d) SHA1(35a775c1ebc8107c553e43b9d84eb735446c26fd) )
@@ -1673,7 +1673,7 @@ ROM_START( kaiserkn )
ROM_LOAD ("d84-08.rom", 0x1580000, 0x200000, CRC(07347bf1) SHA1(34bd359933acdec7fd1ce047092a30d1177afc2c) )
ROM_LOAD ("d84-11.rom", 0x1780000, 0x200000, CRC(a062c1d4) SHA1(158912aa3dd75c3961bf738f9ac9034f0b005b60) )
ROM_LOAD ("d84-21.rom", 0x1980000, 0x080000, CRC(89f68b66) SHA1(95916f02f71357324effe59da4f847f2f30ea34a) )
- ROM_FILL ( 0x0d00000, 0x680000, 0 )
+ ROM_FILL ( 0x0d00000, 0x680000, nullptr )
ROM_REGION(0xc00000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d84-12.rom", 0x000000, 0x200000, CRC(66a7a9aa) SHA1(a7d21f8b6370d16de3c1569019f2ad71d36e7a61) )
@@ -1682,7 +1682,7 @@ ROM_START( kaiserkn )
ROM_LOAD16_BYTE("d84-17.rom", 0x400001, 0x100000, CRC(0be37cc3) SHA1(b10c10b93858cad0c962ef614cfd6daea712ef6b) )
ROM_LOAD ("d84-14.rom", 0x900000, 0x200000, CRC(2b2e693e) SHA1(03eb37fa7dc68d54bf0f1800b8c0b581c344a40f) )
ROM_LOAD ("d84-18.rom", 0xb00000, 0x100000, CRC(e812bcc5) SHA1(3574e4a99232d9fc7989ec5d1e8fe76b4b30784a) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d84-26.32", 0x100000, 0x40000, CRC(4f5b8563) SHA1(1d4e06cbea7bc73a99d6e30be714fff420151bbc) )
@@ -1716,7 +1716,7 @@ ROM_START( kaiserknj )
ROM_LOAD ("d84-08.rom", 0x1580000, 0x200000, CRC(07347bf1) SHA1(34bd359933acdec7fd1ce047092a30d1177afc2c) )
ROM_LOAD ("d84-11.rom", 0x1780000, 0x200000, CRC(a062c1d4) SHA1(158912aa3dd75c3961bf738f9ac9034f0b005b60) )
ROM_LOAD ("d84-21.rom", 0x1980000, 0x080000, CRC(89f68b66) SHA1(95916f02f71357324effe59da4f847f2f30ea34a) )
- ROM_FILL ( 0x0d00000, 0x680000, 0 )
+ ROM_FILL ( 0x0d00000, 0x680000, nullptr )
ROM_REGION(0xc00000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d84-12.rom", 0x000000, 0x200000, CRC(66a7a9aa) SHA1(a7d21f8b6370d16de3c1569019f2ad71d36e7a61) )
@@ -1725,7 +1725,7 @@ ROM_START( kaiserknj )
ROM_LOAD16_BYTE("d84-17.rom", 0x400001, 0x100000, CRC(0be37cc3) SHA1(b10c10b93858cad0c962ef614cfd6daea712ef6b) )
ROM_LOAD ("d84-14.rom", 0x900000, 0x200000, CRC(2b2e693e) SHA1(03eb37fa7dc68d54bf0f1800b8c0b581c344a40f) )
ROM_LOAD ("d84-18.rom", 0xb00000, 0x100000, CRC(e812bcc5) SHA1(3574e4a99232d9fc7989ec5d1e8fe76b4b30784a) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d84-26.32", 0x100000, 0x40000, CRC(4f5b8563) SHA1(1d4e06cbea7bc73a99d6e30be714fff420151bbc) )
@@ -1759,7 +1759,7 @@ ROM_START( gblchmp )
ROM_LOAD ("d84-08.rom", 0x1580000, 0x200000, CRC(07347bf1) SHA1(34bd359933acdec7fd1ce047092a30d1177afc2c) )
ROM_LOAD ("d84-11.rom", 0x1780000, 0x200000, CRC(a062c1d4) SHA1(158912aa3dd75c3961bf738f9ac9034f0b005b60) )
ROM_LOAD ("d84-21.rom", 0x1980000, 0x080000, CRC(89f68b66) SHA1(95916f02f71357324effe59da4f847f2f30ea34a) )
- ROM_FILL ( 0x0d00000, 0x680000, 0 )
+ ROM_FILL ( 0x0d00000, 0x680000, nullptr )
ROM_REGION(0xc00000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d84-12.rom", 0x000000, 0x200000, CRC(66a7a9aa) SHA1(a7d21f8b6370d16de3c1569019f2ad71d36e7a61) )
@@ -1768,7 +1768,7 @@ ROM_START( gblchmp )
ROM_LOAD16_BYTE("d84-17.rom", 0x400001, 0x100000, CRC(0be37cc3) SHA1(b10c10b93858cad0c962ef614cfd6daea712ef6b) )
ROM_LOAD ("d84-14.rom", 0x900000, 0x200000, CRC(2b2e693e) SHA1(03eb37fa7dc68d54bf0f1800b8c0b581c344a40f) )
ROM_LOAD ("d84-18.rom", 0xb00000, 0x100000, CRC(e812bcc5) SHA1(3574e4a99232d9fc7989ec5d1e8fe76b4b30784a) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d84-26.32", 0x100000, 0x40000, CRC(4f5b8563) SHA1(1d4e06cbea7bc73a99d6e30be714fff420151bbc) )
@@ -1802,7 +1802,7 @@ ROM_START( dankuga )
ROM_LOAD ("d84-08.rom", 0x1580000, 0x200000, CRC(07347bf1) SHA1(34bd359933acdec7fd1ce047092a30d1177afc2c) )
ROM_LOAD ("d84-11.rom", 0x1780000, 0x200000, CRC(a062c1d4) SHA1(158912aa3dd75c3961bf738f9ac9034f0b005b60) )
ROM_LOAD ("d84-21.rom", 0x1980000, 0x080000, CRC(89f68b66) SHA1(95916f02f71357324effe59da4f847f2f30ea34a) )
- ROM_FILL ( 0x0d00000, 0x680000, 0 )
+ ROM_FILL ( 0x0d00000, 0x680000, nullptr )
ROM_REGION(0xc00000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d84-12.rom", 0x000000, 0x200000, CRC(66a7a9aa) SHA1(a7d21f8b6370d16de3c1569019f2ad71d36e7a61) )
@@ -1811,7 +1811,7 @@ ROM_START( dankuga )
ROM_LOAD16_BYTE("d84-17.rom", 0x400001, 0x100000, CRC(0be37cc3) SHA1(b10c10b93858cad0c962ef614cfd6daea712ef6b) )
ROM_LOAD ("d84-14.rom", 0x900000, 0x200000, CRC(2b2e693e) SHA1(03eb37fa7dc68d54bf0f1800b8c0b581c344a40f) )
ROM_LOAD ("d84-18.rom", 0xb00000, 0x100000, CRC(e812bcc5) SHA1(3574e4a99232d9fc7989ec5d1e8fe76b4b30784a) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d84-26.32", 0x100000, 0x40000, CRC(4f5b8563) SHA1(1d4e06cbea7bc73a99d6e30be714fff420151bbc) )
@@ -1836,13 +1836,13 @@ ROM_START( dariusg )
ROM_LOAD16_BYTE("d87-03.bin", 0x000000, 0x200000, CRC(4be1666e) SHA1(35ba7bcf29ec7a8f8b6944ee3544693d4df1bfc2) )
ROM_LOAD16_BYTE("d87-04.bin", 0x000001, 0x200000, CRC(2616002c) SHA1(003f98b740a697274385b8da03c78f3c6f7b5e89) )
ROM_LOAD ("d87-05.bin", 0x600000, 0x200000, CRC(4e5891a9) SHA1(fd08d848079841c9237fa359a850980fd00114d8) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d87-06.bin", 0x000000, 0x200000, CRC(3b97a07c) SHA1(72cdeffedeab0c1bd0e47f03172085390a2be393) )
ROM_LOAD16_BYTE("d87-17.bin", 0x000001, 0x200000, CRC(e601d63e) SHA1(256a6aeb5633fe1db407fad567169a9d0c911219) )
ROM_LOAD ("d87-08.bin", 0x600000, 0x200000, CRC(76d23602) SHA1(ca53ea6641182c44a4038bbeaa5effb1687f1980) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d87-13.bin", 0x100000, 0x40000, CRC(15b1fff4) SHA1(28692b731ae98a47c2c5e11a8a71b61a813d9a64) )
@@ -1864,13 +1864,13 @@ ROM_START( dariusgj )
ROM_LOAD16_BYTE("d87-03.bin", 0x000000, 0x200000, CRC(4be1666e) SHA1(35ba7bcf29ec7a8f8b6944ee3544693d4df1bfc2) )
ROM_LOAD16_BYTE("d87-04.bin", 0x000001, 0x200000, CRC(2616002c) SHA1(003f98b740a697274385b8da03c78f3c6f7b5e89) )
ROM_LOAD ("d87-05.bin", 0x600000, 0x200000, CRC(4e5891a9) SHA1(fd08d848079841c9237fa359a850980fd00114d8) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d87-06.bin", 0x000000, 0x200000, CRC(3b97a07c) SHA1(72cdeffedeab0c1bd0e47f03172085390a2be393) )
ROM_LOAD16_BYTE("d87-17.bin", 0x000001, 0x200000, CRC(e601d63e) SHA1(256a6aeb5633fe1db407fad567169a9d0c911219) )
ROM_LOAD ("d87-08.bin", 0x600000, 0x200000, CRC(76d23602) SHA1(ca53ea6641182c44a4038bbeaa5effb1687f1980) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d87-13.bin", 0x100000, 0x40000, CRC(15b1fff4) SHA1(28692b731ae98a47c2c5e11a8a71b61a813d9a64) )
@@ -1892,13 +1892,13 @@ ROM_START( dariusgu )
ROM_LOAD16_BYTE("d87-03.bin", 0x000000, 0x200000, CRC(4be1666e) SHA1(35ba7bcf29ec7a8f8b6944ee3544693d4df1bfc2) )
ROM_LOAD16_BYTE("d87-04.bin", 0x000001, 0x200000, CRC(2616002c) SHA1(003f98b740a697274385b8da03c78f3c6f7b5e89) )
ROM_LOAD ("d87-05.bin", 0x600000, 0x200000, CRC(4e5891a9) SHA1(fd08d848079841c9237fa359a850980fd00114d8) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d87-06.bin", 0x000000, 0x200000, CRC(3b97a07c) SHA1(72cdeffedeab0c1bd0e47f03172085390a2be393) )
ROM_LOAD16_BYTE("d87-17.bin", 0x000001, 0x200000, CRC(e601d63e) SHA1(256a6aeb5633fe1db407fad567169a9d0c911219) )
ROM_LOAD ("d87-08.bin", 0x600000, 0x200000, CRC(76d23602) SHA1(ca53ea6641182c44a4038bbeaa5effb1687f1980) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d87-13.bin", 0x100000, 0x40000, CRC(15b1fff4) SHA1(28692b731ae98a47c2c5e11a8a71b61a813d9a64) )
@@ -1920,13 +1920,13 @@ ROM_START( dariusgx )
ROM_LOAD16_BYTE("d87-03.bin", 0x000000, 0x200000, CRC(4be1666e) SHA1(35ba7bcf29ec7a8f8b6944ee3544693d4df1bfc2) )
ROM_LOAD16_BYTE("d87-04.bin", 0x000001, 0x200000, CRC(2616002c) SHA1(003f98b740a697274385b8da03c78f3c6f7b5e89) )
ROM_LOAD ("d87-05.bin", 0x600000, 0x200000, CRC(4e5891a9) SHA1(fd08d848079841c9237fa359a850980fd00114d8) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d87-06.bin", 0x000000, 0x200000, CRC(3b97a07c) SHA1(72cdeffedeab0c1bd0e47f03172085390a2be393) )
ROM_LOAD16_BYTE("d87-17.bin", 0x000001, 0x200000, CRC(e601d63e) SHA1(256a6aeb5633fe1db407fad567169a9d0c911219) )
ROM_LOAD ("d87-08.bin", 0x600000, 0x200000, CRC(76d23602) SHA1(ca53ea6641182c44a4038bbeaa5effb1687f1980) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d87-13.bin", 0x100000, 0x40000, CRC(15b1fff4) SHA1(28692b731ae98a47c2c5e11a8a71b61a813d9a64) )
@@ -1949,13 +1949,13 @@ ROM_START( bublbob2 )
ROM_LOAD16_BYTE("d90-03", 0x000000, 0x100000, CRC(6fa894a1) SHA1(7c33e6d41e8928029b92d66557a3712b51c49c67) )
ROM_LOAD16_BYTE("d90-02", 0x000001, 0x100000, CRC(5ab04ca2) SHA1(6d87e7ca3167ff81a041cfedbbed84d51da997de) )
ROM_LOAD ("d90-01", 0x300000, 0x100000, CRC(8aedb9e5) SHA1(fb49330f7985a829c9544ecfd0bc672494f29cf6) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d90-08", 0x000000, 0x100000, CRC(25a4fb2c) SHA1(c8bf6fe2291c05386b32cd26bfcb379da756d7b5) )
ROM_LOAD16_BYTE("d90-07", 0x000001, 0x100000, CRC(b436b42d) SHA1(559827120273733147b260e0723054d926dbea5e) )
ROM_LOAD ("d90-06", 0x300000, 0x100000, CRC(166a72b8) SHA1(7f70b8c960794322e1dc88e6600a2d13d948d873) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d90-13.ic32", 0x100000, 0x40000, CRC(6762bd90) SHA1(771db0382bc8dab2caf13d0fc20648366c685829) )
@@ -1983,13 +1983,13 @@ ROM_START( bublbob2o )
ROM_LOAD16_BYTE("d90-03", 0x000000, 0x100000, CRC(6fa894a1) SHA1(7c33e6d41e8928029b92d66557a3712b51c49c67) )
ROM_LOAD16_BYTE("d90-02", 0x000001, 0x100000, CRC(5ab04ca2) SHA1(6d87e7ca3167ff81a041cfedbbed84d51da997de) )
ROM_LOAD ("d90-01", 0x300000, 0x100000, CRC(8aedb9e5) SHA1(fb49330f7985a829c9544ecfd0bc672494f29cf6) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d90-08", 0x000000, 0x100000, CRC(25a4fb2c) SHA1(c8bf6fe2291c05386b32cd26bfcb379da756d7b5) )
ROM_LOAD16_BYTE("d90-07", 0x000001, 0x100000, CRC(b436b42d) SHA1(559827120273733147b260e0723054d926dbea5e) )
ROM_LOAD ("d90-06", 0x300000, 0x100000, CRC(166a72b8) SHA1(7f70b8c960794322e1dc88e6600a2d13d948d873) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d90-13.ic32", 0x100000, 0x40000, CRC(6762bd90) SHA1(771db0382bc8dab2caf13d0fc20648366c685829) )
@@ -2058,13 +2058,13 @@ ROM_START( bubsymphe )
ROM_LOAD16_BYTE("d90-03", 0x000000, 0x100000, CRC(6fa894a1) SHA1(7c33e6d41e8928029b92d66557a3712b51c49c67) )
ROM_LOAD16_BYTE("d90-02", 0x000001, 0x100000, CRC(5ab04ca2) SHA1(6d87e7ca3167ff81a041cfedbbed84d51da997de) )
ROM_LOAD ("d90-01", 0x300000, 0x100000, CRC(8aedb9e5) SHA1(fb49330f7985a829c9544ecfd0bc672494f29cf6) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d90-08", 0x000000, 0x100000, CRC(25a4fb2c) SHA1(c8bf6fe2291c05386b32cd26bfcb379da756d7b5) )
ROM_LOAD16_BYTE("d90-07", 0x000001, 0x100000, CRC(b436b42d) SHA1(559827120273733147b260e0723054d926dbea5e) )
ROM_LOAD ("d90-06", 0x300000, 0x100000, CRC(166a72b8) SHA1(7f70b8c960794322e1dc88e6600a2d13d948d873) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d90-13.ic32", 0x100000, 0x40000, CRC(6762bd90) SHA1(771db0382bc8dab2caf13d0fc20648366c685829) )
@@ -2086,13 +2086,13 @@ ROM_START( bubsymphj )
ROM_LOAD16_BYTE("d90-03", 0x000000, 0x100000, CRC(6fa894a1) SHA1(7c33e6d41e8928029b92d66557a3712b51c49c67) )
ROM_LOAD16_BYTE("d90-02", 0x000001, 0x100000, CRC(5ab04ca2) SHA1(6d87e7ca3167ff81a041cfedbbed84d51da997de) )
ROM_LOAD ("d90-01", 0x300000, 0x100000, CRC(8aedb9e5) SHA1(fb49330f7985a829c9544ecfd0bc672494f29cf6) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d90-08", 0x000000, 0x100000, CRC(25a4fb2c) SHA1(c8bf6fe2291c05386b32cd26bfcb379da756d7b5) )
ROM_LOAD16_BYTE("d90-07", 0x000001, 0x100000, CRC(b436b42d) SHA1(559827120273733147b260e0723054d926dbea5e) )
ROM_LOAD ("d90-06", 0x300000, 0x100000, CRC(166a72b8) SHA1(7f70b8c960794322e1dc88e6600a2d13d948d873) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d90-13.ic32", 0x100000, 0x40000, CRC(6762bd90) SHA1(771db0382bc8dab2caf13d0fc20648366c685829) )
@@ -2145,7 +2145,7 @@ ROM_START( bubsymphb )
ROM_LOAD32_BYTE("bsb_d15.bin", 0x000003, 0x40000, CRC(014cf8e0) SHA1(5e91fc6665c1d472d0651c06108ea6a8eb5ae8b4) )
ROM_REGION(0x300000, "gfx1" , 0) /* Sprites (5bpp) */
- ROM_FILL ( 0x000000, 0x080000, 0 )
+ ROM_FILL ( 0x000000, 0x080000, nullptr )
ROM_LOAD("bsb_d18.bin", 0x080000, 0x080000, CRC(22d7eeb5) SHA1(30aa4493c5bc98d9256817b9e3341b20d2b76f1f) )
ROM_LOAD("bsb_d19.bin", 0x100000, 0x080000, CRC(d36801fd) SHA1(5dc00942dbd9bb29214c206ea192f158b71b09dc) )
ROM_LOAD("bsb_d20.bin", 0x180000, 0x080000, CRC(20222e15) SHA1(41f2f94afd65d0c106752f254f20b593906cba28) )
@@ -2175,13 +2175,13 @@ ROM_START( bubsymphu )
ROM_LOAD16_BYTE("d90-03", 0x000000, 0x100000, CRC(6fa894a1) SHA1(7c33e6d41e8928029b92d66557a3712b51c49c67) )
ROM_LOAD16_BYTE("d90-02", 0x000001, 0x100000, CRC(5ab04ca2) SHA1(6d87e7ca3167ff81a041cfedbbed84d51da997de) )
ROM_LOAD ("d90-01", 0x300000, 0x100000, CRC(8aedb9e5) SHA1(fb49330f7985a829c9544ecfd0bc672494f29cf6) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d90-08", 0x000000, 0x100000, CRC(25a4fb2c) SHA1(c8bf6fe2291c05386b32cd26bfcb379da756d7b5) )
ROM_LOAD16_BYTE("d90-07", 0x000001, 0x100000, CRC(b436b42d) SHA1(559827120273733147b260e0723054d926dbea5e) )
ROM_LOAD ("d90-06", 0x300000, 0x100000, CRC(166a72b8) SHA1(7f70b8c960794322e1dc88e6600a2d13d948d873) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* sound CPU */
ROM_LOAD16_BYTE("d90-13.ic32", 0x100000, 0x40000, CRC(6762bd90) SHA1(771db0382bc8dab2caf13d0fc20648366c685829) )
@@ -2202,12 +2202,12 @@ ROM_START( spcinvdj )
ROM_REGION(0x200000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("d93-07.12", 0x000000, 0x80000, CRC(8cf5b972) SHA1(75e383aed8548f4ac7d38f1f08bf33fae2a93064) )
ROM_LOAD16_BYTE("d93-08.08", 0x000001, 0x80000, CRC(4c11af2b) SHA1(e332372ab0d1322faa8d6d98f8a6e3bbf51d2008) )
- ROM_FILL ( 0x100000, 0x100000,0 )
+ ROM_FILL ( 0x100000, 0x100000,nullptr )
ROM_REGION(0x80000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d93-09.47", 0x000000, 0x20000, CRC(9076f663) SHA1(c94e93e40926df33b6bb528e0ef30381631913d7) )
ROM_LOAD16_BYTE("d93-10.45", 0x000001, 0x20000, CRC(8a3f531b) SHA1(69f9971c45971018108a5d312d5bbcfd3caf9bd0) )
- ROM_FILL ( 0x040000, 0x40000, 0 )
+ ROM_FILL ( 0x040000, 0x40000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d93-05.bin", 0x100000, 0x20000, CRC(ff365596) SHA1(4cf2e0d6f42cf3fb69796be6092eff8a47f7f8b9) )
@@ -2237,13 +2237,13 @@ ROM_START( pwrgoal )
ROM_LOAD ("d94-03.bin", 0x1200000, 0x200000, CRC(95e32072) SHA1(9797f65ecadc6b0f209bf262396315b61855c433) )
ROM_LOAD ("d94-02.bin", 0x1400000, 0x200000, CRC(f460b9ac) SHA1(e36a812791bd0360380f397b1bc6c357391f585a) )
ROM_LOAD ("d94-01.bin", 0x1600000, 0x200000, CRC(410ffccd) SHA1(0cab00c8e9de92ad81ac61f25bbe8bfd60f45ae0) )
- ROM_FILL ( 0xc00000, 0x600000,0 )
+ ROM_FILL ( 0xc00000, 0x600000,nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d94-14.bin", 0x000000, 0x100000, CRC(b8ba5761) SHA1(7966ef3166d7d6b9913478eaef5dd4a2bf7d5a06) )
ROM_LOAD16_BYTE("d94-13.bin", 0x000001, 0x100000, CRC(cafc68ce) SHA1(5c1f49951e83d812f0c7697751f4876ab1d08141) )
ROM_LOAD ("d94-12.bin", 0x300000, 0x100000, CRC(47064189) SHA1(99ceeb326dcc2e1c3acba8ac14d94dcb17c6e032) )
- ROM_FILL ( 0x200000, 0x100000,0 )
+ ROM_FILL ( 0x200000, 0x100000,nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d94-19.bin", 0x100000, 0x40000, CRC(c93dbcf4) SHA1(413520e652d809651aff9b1b74e6353112d34c12) ) /* Over dump?? 0x20000-0x3ffff == 0xFF */
@@ -2271,13 +2271,13 @@ ROM_START( hthero95 )
ROM_LOAD ("d94-03.bin", 0x1200000, 0x200000, CRC(95e32072) SHA1(9797f65ecadc6b0f209bf262396315b61855c433) )
ROM_LOAD ("d94-02.bin", 0x1400000, 0x200000, CRC(f460b9ac) SHA1(e36a812791bd0360380f397b1bc6c357391f585a) )
ROM_LOAD ("d94-01.bin", 0x1600000, 0x200000, CRC(410ffccd) SHA1(0cab00c8e9de92ad81ac61f25bbe8bfd60f45ae0) )
- ROM_FILL ( 0xc00000, 0x600000,0 )
+ ROM_FILL ( 0xc00000, 0x600000,nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d94-14.bin", 0x000000, 0x100000, CRC(b8ba5761) SHA1(7966ef3166d7d6b9913478eaef5dd4a2bf7d5a06) )
ROM_LOAD16_BYTE("d94-13.bin", 0x000001, 0x100000, CRC(cafc68ce) SHA1(5c1f49951e83d812f0c7697751f4876ab1d08141) )
ROM_LOAD ("d94-12.bin", 0x300000, 0x100000, CRC(47064189) SHA1(99ceeb326dcc2e1c3acba8ac14d94dcb17c6e032) )
- ROM_FILL ( 0x200000, 0x100000,0 )
+ ROM_FILL ( 0x200000, 0x100000,nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d94-19.bin", 0x100000, 0x40000, CRC(c93dbcf4) SHA1(413520e652d809651aff9b1b74e6353112d34c12) ) /* Over dump?? 0x20000-0x3ffff == 0xFF */
@@ -2305,13 +2305,13 @@ ROM_START( hthero95u )
ROM_LOAD ("d94-03.bin", 0x1200000, 0x200000, CRC(95e32072) SHA1(9797f65ecadc6b0f209bf262396315b61855c433) )
ROM_LOAD ("d94-02.bin", 0x1400000, 0x200000, CRC(f460b9ac) SHA1(e36a812791bd0360380f397b1bc6c357391f585a) )
ROM_LOAD ("d94-01.bin", 0x1600000, 0x200000, CRC(410ffccd) SHA1(0cab00c8e9de92ad81ac61f25bbe8bfd60f45ae0) )
- ROM_FILL ( 0xc00000, 0x600000,0 )
+ ROM_FILL ( 0xc00000, 0x600000,nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d94-14.bin", 0x000000, 0x100000, CRC(b8ba5761) SHA1(7966ef3166d7d6b9913478eaef5dd4a2bf7d5a06) )
ROM_LOAD16_BYTE("d94-13.bin", 0x000001, 0x100000, CRC(cafc68ce) SHA1(5c1f49951e83d812f0c7697751f4876ab1d08141) )
ROM_LOAD ("d94-12.bin", 0x300000, 0x100000, CRC(47064189) SHA1(99ceeb326dcc2e1c3acba8ac14d94dcb17c6e032) )
- ROM_FILL ( 0x200000, 0x100000,0 )
+ ROM_FILL ( 0x200000, 0x100000,nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d94-19.bin", 0x100000, 0x40000, CRC(c93dbcf4) SHA1(413520e652d809651aff9b1b74e6353112d34c12) ) /* Over dump?? 0x20000-0x3ffff == 0xFF */
@@ -2332,12 +2332,12 @@ ROM_START( qtheater )
ROM_REGION(0x800000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("d95-02.12", 0x000000, 0x200000, CRC(74ce6f3e) SHA1(eb03f44889bd2d5705e9d8cda6516b39758d9554) )
ROM_LOAD16_BYTE("d95-01.8", 0x000001, 0x200000, CRC(141beb7d) SHA1(bba91f47f68367e2bb3d89298cb62fac2d4edf7b) )
- ROM_FILL ( 0x400000, 0x400000, 0 )
+ ROM_FILL ( 0x400000, 0x400000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("d95-06.47", 0x000000, 0x200000, CRC(70a0dcbb) SHA1(b1abe6a9a4afe55201229a62bae11ad1d96ca244) )
ROM_LOAD16_BYTE("d95-05.45", 0x000001, 0x200000, CRC(1a1a852b) SHA1(89827485a31af4e2457775a5d16f747a764b6d67) )
- ROM_FILL ( 0x400000, 0x400000, 0 )
+ ROM_FILL ( 0x400000, 0x400000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("d95-07.32", 0x100000, 0x40000, CRC(3c201d70) SHA1(89fe4d363f4e1a847ba7d2894a2092708b287a33) )
@@ -2359,13 +2359,13 @@ ROM_START( spcinv95u )
ROM_LOAD16_BYTE("e06-03", 0x000000, 0x100000, CRC(a24070ef) SHA1(9b6ac7852114c606e871a08cfb3b9e1081ac7030) )
ROM_LOAD16_BYTE("e06-02", 0x000001, 0x100000, CRC(8f646dea) SHA1(07cd79671f36df1a5bbf2434e92a601351a36259) )
ROM_LOAD ("e06-01", 0x300000, 0x100000, CRC(51721b15) SHA1(448a9a7f3631072d8987351f5c0b8dd2c908d266) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e06-08", 0x000000, 0x100000, CRC(72ae2fbf) SHA1(7fa7ec94a8031342a2446fb8eca0d89ecfd2fa4f) )
ROM_LOAD16_BYTE("e06-07", 0x000001, 0x100000, CRC(4b02e8f5) SHA1(02d8a97da52f9ba4033b8f0c3f455a908a9dce89) )
ROM_LOAD ("e06-06", 0x300000, 0x100000, CRC(9380db3c) SHA1(83f5a46a01b9c15499e0dc2222df496d26baa0d4) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e06-09.32", 0x100000, 0x40000, CRC(9bcafc87) SHA1(10b3f6da00a41550fe6a705232f0e33fda3c7e7c) )
@@ -2394,13 +2394,13 @@ ROM_START( spcinv95 )
ROM_LOAD16_BYTE("e06-03", 0x000000, 0x100000, CRC(a24070ef) SHA1(9b6ac7852114c606e871a08cfb3b9e1081ac7030) )
ROM_LOAD16_BYTE("e06-02", 0x000001, 0x100000, CRC(8f646dea) SHA1(07cd79671f36df1a5bbf2434e92a601351a36259) )
ROM_LOAD ("e06-01", 0x300000, 0x100000, CRC(51721b15) SHA1(448a9a7f3631072d8987351f5c0b8dd2c908d266) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e06-08", 0x000000, 0x100000, CRC(72ae2fbf) SHA1(7fa7ec94a8031342a2446fb8eca0d89ecfd2fa4f) )
ROM_LOAD16_BYTE("e06-07", 0x000001, 0x100000, CRC(4b02e8f5) SHA1(02d8a97da52f9ba4033b8f0c3f455a908a9dce89) )
ROM_LOAD ("e06-06", 0x300000, 0x100000, CRC(9380db3c) SHA1(83f5a46a01b9c15499e0dc2222df496d26baa0d4) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e06-09.32", 0x100000, 0x40000, CRC(9bcafc87) SHA1(10b3f6da00a41550fe6a705232f0e33fda3c7e7c) )
@@ -2429,13 +2429,13 @@ ROM_START( akkanvdr )
ROM_LOAD16_BYTE("e06-03", 0x000000, 0x100000, CRC(a24070ef) SHA1(9b6ac7852114c606e871a08cfb3b9e1081ac7030) )
ROM_LOAD16_BYTE("e06-02", 0x000001, 0x100000, CRC(8f646dea) SHA1(07cd79671f36df1a5bbf2434e92a601351a36259) )
ROM_LOAD ("e06-01", 0x300000, 0x100000, CRC(51721b15) SHA1(448a9a7f3631072d8987351f5c0b8dd2c908d266) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e06-08", 0x000000, 0x100000, CRC(72ae2fbf) SHA1(7fa7ec94a8031342a2446fb8eca0d89ecfd2fa4f) )
ROM_LOAD16_BYTE("e06-07", 0x000001, 0x100000, CRC(4b02e8f5) SHA1(02d8a97da52f9ba4033b8f0c3f455a908a9dce89) )
ROM_LOAD ("e06-06", 0x300000, 0x100000, CRC(9380db3c) SHA1(83f5a46a01b9c15499e0dc2222df496d26baa0d4) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e06-09.32", 0x100000, 0x40000, CRC(9bcafc87) SHA1(10b3f6da00a41550fe6a705232f0e33fda3c7e7c) )
@@ -2542,13 +2542,13 @@ ROM_START( elvactr )
ROM_LOAD16_BYTE("e02-03.12", 0x000000, 0x200000, CRC(c884ebb5) SHA1(49009056bfdc564eac0ae6b7b49f070f05dc4ee3) )
ROM_LOAD16_BYTE("e02-02.8", 0x000001, 0x200000, CRC(c8e06cfb) SHA1(071d095a4930ce18a782c577811b553a9705fbd7) )
ROM_LOAD ("e02-01.4", 0x600000, 0x200000, CRC(2ba94726) SHA1(3e9cdd076338e0e5358571ce4f97576f1a6a12a7) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2", 0 ) /* Tiles */
ROM_LOAD16_BYTE("e02-08.47", 0x000000, 0x200000, CRC(29c9bd02) SHA1(a5b552ae7ac15f514ee6105410ec3e6e34ea0adb) )
ROM_LOAD16_BYTE("e02-07.45", 0x000001, 0x200000, CRC(5eeee925) SHA1(d302da28df8ac6d406ef45f1d282ee22ce243857) )
ROM_LOAD ("e02-06.43", 0x600000, 0x200000, CRC(4c8726e9) SHA1(8ce2320a087f43c49428a39dafffec8c40d61b03) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e02-13.32", 0x100000, 0x40000, CRC(80932702) SHA1(c468234d03aa31b2aa0c3bd6bec32034216c2ae4) )
@@ -2579,13 +2579,13 @@ ROM_START( elvactrj )
ROM_LOAD16_BYTE("e02-03.12", 0x000000, 0x200000, CRC(c884ebb5) SHA1(49009056bfdc564eac0ae6b7b49f070f05dc4ee3) )
ROM_LOAD16_BYTE("e02-02.8", 0x000001, 0x200000, CRC(c8e06cfb) SHA1(071d095a4930ce18a782c577811b553a9705fbd7) )
ROM_LOAD ("e02-01.4", 0x600000, 0x200000, CRC(2ba94726) SHA1(3e9cdd076338e0e5358571ce4f97576f1a6a12a7) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2", 0 ) /* Tiles */
ROM_LOAD16_BYTE("e02-08.47", 0x000000, 0x200000, CRC(29c9bd02) SHA1(a5b552ae7ac15f514ee6105410ec3e6e34ea0adb) )
ROM_LOAD16_BYTE("e02-07.45", 0x000001, 0x200000, CRC(5eeee925) SHA1(d302da28df8ac6d406ef45f1d282ee22ce243857) )
ROM_LOAD ("e02-06.43", 0x600000, 0x200000, CRC(4c8726e9) SHA1(8ce2320a087f43c49428a39dafffec8c40d61b03) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e02-13.32", 0x100000, 0x40000, CRC(80932702) SHA1(c468234d03aa31b2aa0c3bd6bec32034216c2ae4) )
@@ -2607,13 +2607,13 @@ ROM_START( elvact2u )
ROM_LOAD16_BYTE("e02-03.12", 0x000000, 0x200000, CRC(c884ebb5) SHA1(49009056bfdc564eac0ae6b7b49f070f05dc4ee3) )
ROM_LOAD16_BYTE("e02-02.8", 0x000001, 0x200000, CRC(c8e06cfb) SHA1(071d095a4930ce18a782c577811b553a9705fbd7) )
ROM_LOAD ("e02-01.4", 0x600000, 0x200000, CRC(2ba94726) SHA1(3e9cdd076338e0e5358571ce4f97576f1a6a12a7) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2", 0 ) /* Tiles */
ROM_LOAD16_BYTE("e02-08.47", 0x000000, 0x200000, CRC(29c9bd02) SHA1(a5b552ae7ac15f514ee6105410ec3e6e34ea0adb) )
ROM_LOAD16_BYTE("e02-07.45", 0x000001, 0x200000, CRC(5eeee925) SHA1(d302da28df8ac6d406ef45f1d282ee22ce243857) )
ROM_LOAD ("e02-06.43", 0x600000, 0x200000, CRC(4c8726e9) SHA1(8ce2320a087f43c49428a39dafffec8c40d61b03) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e02-13.32", 0x100000, 0x40000, CRC(80932702) SHA1(c468234d03aa31b2aa0c3bd6bec32034216c2ae4) )
@@ -2634,7 +2634,7 @@ ROM_START( twinqix )
ROM_REGION(0x200000, "gfx1" , 0 ) /* Sprites */
ROM_LOAD16_BYTE("obj0-0.a08", 0x000000, 0x080000, CRC(c6ea845c) SHA1(9df710637e8f64f7fec232b5ebbede588e07c2db) )
ROM_LOAD16_BYTE("obj0-1.a20", 0x000001, 0x080000, CRC(8c12b7fb) SHA1(8a52870fb9f508148619763fb6f37dd74b5386ca) )
- ROM_FILL ( 0x100000, 0x100000, 0 )
+ ROM_FILL ( 0x100000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0 ) /* Tiles */
ROM_LOAD32_BYTE("scr0-0.b07", 0x000000, 0x080000, CRC(9a1b9b34) SHA1(ddf9c6ba0f9c340b580573e1d96ac76b1cd35beb) )
@@ -2678,13 +2678,13 @@ ROM_START( quizhuhu )
ROM_LOAD16_BYTE("e08-03.7", 0x400001, 0x100000, CRC(07b9ab6a) SHA1(db205822233c385e1dbe4a9d40b311df9bca7053) )
ROM_LOAD ("e08-02.4", 0x900000, 0x200000, CRC(d89eb067) SHA1(bd8e1cf4c2046894c629d927fa05806b9b73505d) )
ROM_LOAD ("e08-01.3", 0xb00000, 0x100000, CRC(90223c06) SHA1(f07dae563946908d471ae89db74a2e55c5ab5890) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e08-12.47", 0x000000, 0x100000, CRC(6c711d36) SHA1(3fbff7783323d968ade72ac53531a7bcf7b9d234) )
ROM_LOAD16_BYTE("e08-11.45", 0x000001, 0x100000, CRC(56775a60) SHA1(8bb8190101f2e8487ebb707022ff89d97bb7b39a) )
ROM_LOAD ("e08-10.43", 0x300000, 0x100000, CRC(60abc71b) SHA1(f4aa906920c6134c33a4dfb51724f3adbd3d7de4) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e08-18.32", 0x100000, 0x20000, CRC(e695497e) SHA1(9d845b4c0bd9b40471fb4b5ab2f9240058bc324f) )
@@ -2708,13 +2708,13 @@ ROM_START( pbobble2 )
ROM_REGION(0x400000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e10-02.rom", 0x000000, 0x100000, CRC(c0564490) SHA1(cbe9f880192c08f4d1db21d5ba14073b97e5f1d3) )
ROM_LOAD16_BYTE("e10-01.rom", 0x000001, 0x100000, CRC(8c26ff49) SHA1(cbb514c061106003d2ae2b6c43958b24feaad656) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e10-07.rom", 0x000000, 0x100000, CRC(dcb3c29b) SHA1(b80c3a8ce53d696c57675e654c9927ef8687759e) )
ROM_LOAD16_BYTE("e10-06.rom", 0x000001, 0x100000, CRC(1b0f20e2) SHA1(66b44d059c2896abac2f0e7fc932489dee440ba0) )
ROM_LOAD ("e10-05.rom", 0x300000, 0x100000, CRC(81266151) SHA1(aa3b144f32995425db97efce440e234a3c7a6715) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e10-12.32", 0x100000, 0x40000, CRC(b92dc8ad) SHA1(0c1428d313507b1ae5a2af3b2fbaaa5650135e1e) )
@@ -2740,13 +2740,13 @@ ROM_START( pbobble2o )
ROM_REGION(0x400000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e10-02.rom", 0x000000, 0x100000, CRC(c0564490) SHA1(cbe9f880192c08f4d1db21d5ba14073b97e5f1d3) )
ROM_LOAD16_BYTE("e10-01.rom", 0x000001, 0x100000, CRC(8c26ff49) SHA1(cbb514c061106003d2ae2b6c43958b24feaad656) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e10-07.rom", 0x000000, 0x100000, CRC(dcb3c29b) SHA1(b80c3a8ce53d696c57675e654c9927ef8687759e) )
ROM_LOAD16_BYTE("e10-06.rom", 0x000001, 0x100000, CRC(1b0f20e2) SHA1(66b44d059c2896abac2f0e7fc932489dee440ba0) )
ROM_LOAD ("e10-05.rom", 0x300000, 0x100000, CRC(81266151) SHA1(aa3b144f32995425db97efce440e234a3c7a6715) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e10-12.32", 0x100000, 0x40000, CRC(b92dc8ad) SHA1(0c1428d313507b1ae5a2af3b2fbaaa5650135e1e) )
@@ -2767,13 +2767,13 @@ ROM_START( pbobble2j )
ROM_REGION(0x400000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e10-02.rom", 0x000000, 0x100000, CRC(c0564490) SHA1(cbe9f880192c08f4d1db21d5ba14073b97e5f1d3) )
ROM_LOAD16_BYTE("e10-01.rom", 0x000001, 0x100000, CRC(8c26ff49) SHA1(cbb514c061106003d2ae2b6c43958b24feaad656) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e10-07.rom", 0x000000, 0x100000, CRC(dcb3c29b) SHA1(b80c3a8ce53d696c57675e654c9927ef8687759e) )
ROM_LOAD16_BYTE("e10-06.rom", 0x000001, 0x100000, CRC(1b0f20e2) SHA1(66b44d059c2896abac2f0e7fc932489dee440ba0) )
ROM_LOAD ("e10-05.rom", 0x300000, 0x100000, CRC(81266151) SHA1(aa3b144f32995425db97efce440e234a3c7a6715) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e10-12.32", 0x100000, 0x40000, CRC(b92dc8ad) SHA1(0c1428d313507b1ae5a2af3b2fbaaa5650135e1e) )
@@ -2794,13 +2794,13 @@ ROM_START( pbobble2u )
ROM_REGION(0x400000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e10-02.rom", 0x000000, 0x100000, CRC(c0564490) SHA1(cbe9f880192c08f4d1db21d5ba14073b97e5f1d3) )
ROM_LOAD16_BYTE("e10-01.rom", 0x000001, 0x100000, CRC(8c26ff49) SHA1(cbb514c061106003d2ae2b6c43958b24feaad656) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e10-07.rom", 0x000000, 0x100000, CRC(dcb3c29b) SHA1(b80c3a8ce53d696c57675e654c9927ef8687759e) )
ROM_LOAD16_BYTE("e10-06.rom", 0x000001, 0x100000, CRC(1b0f20e2) SHA1(66b44d059c2896abac2f0e7fc932489dee440ba0) )
ROM_LOAD ("e10-05.rom", 0x300000, 0x100000, CRC(81266151) SHA1(aa3b144f32995425db97efce440e234a3c7a6715) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e10-16.32", 0x100000, 0x40000, CRC(765ce77a) SHA1(e2723bd6238da91d28307081909a7172a1825c83) )
@@ -2821,13 +2821,13 @@ ROM_START( pbobble2x )
ROM_REGION(0x400000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e10-02.rom", 0x000000, 0x100000, CRC(c0564490) SHA1(cbe9f880192c08f4d1db21d5ba14073b97e5f1d3) )
ROM_LOAD16_BYTE("e10-01.rom", 0x000001, 0x100000, CRC(8c26ff49) SHA1(cbb514c061106003d2ae2b6c43958b24feaad656) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e10-07.rom", 0x000000, 0x100000, CRC(dcb3c29b) SHA1(b80c3a8ce53d696c57675e654c9927ef8687759e) )
ROM_LOAD16_BYTE("e10-06.rom", 0x000001, 0x100000, CRC(1b0f20e2) SHA1(66b44d059c2896abac2f0e7fc932489dee440ba0) )
ROM_LOAD ("e10-05.rom", 0x300000, 0x100000, CRC(81266151) SHA1(aa3b144f32995425db97efce440e234a3c7a6715) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e10-30.32", 0x100000, 0x40000, CRC(bb090c1e) SHA1(af2ff23d6f9bd56c25530cb9bf9f452b6f5210f5) )
@@ -2856,13 +2856,13 @@ ROM_START( gekiridn )
ROM_LOAD16_BYTE("e11-03.ic12", 0x000000, 0x200000, CRC(f73877c5) SHA1(1f6b7c0b8a0aaab3e5427d21de7fad3d3cbf737a) )
ROM_LOAD16_BYTE("e11-02.ic8", 0x000001, 0x200000, CRC(5722a83b) SHA1(823c20a33016a5506ca5415ec615c3d2546ca9ab) )
ROM_LOAD ("e11-01.ic4", 0x600000, 0x200000, CRC(c2cd1069) SHA1(9744dd3d8a6d9200cea4429dafce5620b60e2960) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e11-08.ic47", 0x000000, 0x200000, CRC(907f69d3) SHA1(0899ed58edcae22144625c349c9d2fe4d46d11e3) )
ROM_LOAD16_BYTE("e11-07.ic45", 0x000001, 0x200000, CRC(ef018607) SHA1(61b602b13754c3be21caf76acbfc10c87518ba47) )
ROM_LOAD ("e11-06.ic43", 0x600000, 0x200000, CRC(200ce305) SHA1(c80a0b96510913a6411e6763fb72bf413fb792da) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e11-13.ic32", 0x100000, 0x40000, CRC(f5c5486a) SHA1(4091f3ddb1e6cbc9dc89485e1e784a4b6fa191b7) )
@@ -2884,13 +2884,13 @@ ROM_START( gekiridnj )
ROM_LOAD16_BYTE("e11-03.ic12", 0x000000, 0x200000, CRC(f73877c5) SHA1(1f6b7c0b8a0aaab3e5427d21de7fad3d3cbf737a) )
ROM_LOAD16_BYTE("e11-02.ic8", 0x000001, 0x200000, CRC(5722a83b) SHA1(823c20a33016a5506ca5415ec615c3d2546ca9ab) )
ROM_LOAD ("e11-01.ic4", 0x600000, 0x200000, CRC(c2cd1069) SHA1(9744dd3d8a6d9200cea4429dafce5620b60e2960) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e11-08.ic47", 0x000000, 0x200000, CRC(907f69d3) SHA1(0899ed58edcae22144625c349c9d2fe4d46d11e3) )
ROM_LOAD16_BYTE("e11-07.ic45", 0x000001, 0x200000, CRC(ef018607) SHA1(61b602b13754c3be21caf76acbfc10c87518ba47) )
ROM_LOAD ("e11-06.ic43", 0x600000, 0x200000, CRC(200ce305) SHA1(c80a0b96510913a6411e6763fb72bf413fb792da) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e11-13.ic32", 0x100000, 0x40000, CRC(f5c5486a) SHA1(4091f3ddb1e6cbc9dc89485e1e784a4b6fa191b7) )
@@ -2917,14 +2917,14 @@ ROM_START( tcobra2 )
ROM_LOAD16_BYTE("e15-02.ic8", 0x000001, 0x200000, CRC(bf1232aa) SHA1(1381bae2a18ed62f4ca28bcdaf07debfc9bf21af) )
ROM_LOAD16_BYTE("e15-03.ic11", 0x400000, 0x100000, CRC(be45a52f) SHA1(5d9735a774233b43003057cbab6ae7d6e0195dd2) )
ROM_LOAD16_BYTE("e15-01.ic7", 0x400001, 0x100000, CRC(85421aac) SHA1(327e72f0107e024ec9fc9dc20d381e2e20f36248) )
- ROM_FILL ( 0x600000, 0x600000, 0 )
+ ROM_FILL ( 0x600000, 0x600000, nullptr )
ROM_REGION(0xc00000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e15-10.ic47", 0x000000, 0x200000, CRC(d8c96b00) SHA1(9cd275abb66b3475433ea2649dc872d7d35eb5b8) )
ROM_LOAD16_BYTE("e15-08.ic45", 0x000001, 0x200000, CRC(4bdb2bf3) SHA1(1146b7a5d9f26d3173a7c64768e55d53a0ab7b8e) )
ROM_LOAD16_BYTE("e15-09.ic46", 0x400000, 0x100000, CRC(07c29f60) SHA1(3ca0f632e7047cc50ee3ce24cd6c0c8c7252a278) )
ROM_LOAD16_BYTE("e15-07.ic44", 0x400001, 0x100000, CRC(8164f7ee) SHA1(4550521f820e93ec08b86d148135966d016cbf22) )
- ROM_FILL ( 0x600000, 0x600000, 0 )
+ ROM_FILL ( 0x600000, 0x600000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e15-15.ic32", 0x100000, 0x20000, CRC(22126dfb) SHA1(a1af17e5c3440f1bab50d79f92c251f1a4536ca0) )
@@ -2954,14 +2954,14 @@ ROM_START( tcobra2u )
ROM_LOAD16_BYTE("e15-02.ic8", 0x000001, 0x200000, CRC(bf1232aa) SHA1(1381bae2a18ed62f4ca28bcdaf07debfc9bf21af) )
ROM_LOAD16_BYTE("e15-03.ic11", 0x400000, 0x100000, CRC(be45a52f) SHA1(5d9735a774233b43003057cbab6ae7d6e0195dd2) )
ROM_LOAD16_BYTE("e15-01.ic7", 0x400001, 0x100000, CRC(85421aac) SHA1(327e72f0107e024ec9fc9dc20d381e2e20f36248) )
- ROM_FILL ( 0x600000, 0x600000, 0 )
+ ROM_FILL ( 0x600000, 0x600000, nullptr )
ROM_REGION(0xc00000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e15-10.ic47", 0x000000, 0x200000, CRC(d8c96b00) SHA1(9cd275abb66b3475433ea2649dc872d7d35eb5b8) )
ROM_LOAD16_BYTE("e15-08.ic45", 0x000001, 0x200000, CRC(4bdb2bf3) SHA1(1146b7a5d9f26d3173a7c64768e55d53a0ab7b8e) )
ROM_LOAD16_BYTE("e15-09.ic46", 0x400000, 0x100000, CRC(07c29f60) SHA1(3ca0f632e7047cc50ee3ce24cd6c0c8c7252a278) )
ROM_LOAD16_BYTE("e15-07.ic44", 0x400001, 0x100000, CRC(8164f7ee) SHA1(4550521f820e93ec08b86d148135966d016cbf22) )
- ROM_FILL ( 0x600000, 0x600000, 0 )
+ ROM_FILL ( 0x600000, 0x600000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e15-15.ic32", 0x100000, 0x20000, CRC(22126dfb) SHA1(a1af17e5c3440f1bab50d79f92c251f1a4536ca0) )
@@ -2991,14 +2991,14 @@ ROM_START( ktiger2 )
ROM_LOAD16_BYTE("e15-02.ic8", 0x000001, 0x200000, CRC(bf1232aa) SHA1(1381bae2a18ed62f4ca28bcdaf07debfc9bf21af) )
ROM_LOAD16_BYTE("e15-03.ic11", 0x400000, 0x100000, CRC(be45a52f) SHA1(5d9735a774233b43003057cbab6ae7d6e0195dd2) )
ROM_LOAD16_BYTE("e15-01.ic7", 0x400001, 0x100000, CRC(85421aac) SHA1(327e72f0107e024ec9fc9dc20d381e2e20f36248) )
- ROM_FILL ( 0x600000, 0x600000, 0 )
+ ROM_FILL ( 0x600000, 0x600000, nullptr )
ROM_REGION(0xc00000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e15-10.ic47", 0x000000, 0x200000, CRC(d8c96b00) SHA1(9cd275abb66b3475433ea2649dc872d7d35eb5b8) )
ROM_LOAD16_BYTE("e15-08.ic45", 0x000001, 0x200000, CRC(4bdb2bf3) SHA1(1146b7a5d9f26d3173a7c64768e55d53a0ab7b8e) )
ROM_LOAD16_BYTE("e15-09.ic46", 0x400000, 0x100000, CRC(07c29f60) SHA1(3ca0f632e7047cc50ee3ce24cd6c0c8c7252a278) )
ROM_LOAD16_BYTE("e15-07.ic44", 0x400001, 0x100000, CRC(8164f7ee) SHA1(4550521f820e93ec08b86d148135966d016cbf22) )
- ROM_FILL ( 0x600000, 0x600000, 0 )
+ ROM_FILL ( 0x600000, 0x600000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e15-15.ic32", 0x100000, 0x20000, CRC(22126dfb) SHA1(a1af17e5c3440f1bab50d79f92c251f1a4536ca0) )
@@ -3026,13 +3026,13 @@ ROM_START( bubblem )
ROM_REGION(0x800000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e21-02.rom", 0x000000, 0x200000, CRC(b7cb9232) SHA1(ba71cb98d49eadebb26d9f53bbaec1dc211077f5) )
ROM_LOAD16_BYTE("e21-01.rom", 0x000001, 0x200000, CRC(a11f2f99) SHA1(293c5996600cad05bf98f936f5f820d93d546099) )
- ROM_FILL ( 0x400000, 0x400000, 0 )
+ ROM_FILL ( 0x400000, 0x400000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e21-07.rom", 0x000000, 0x100000, CRC(7789bf7c) SHA1(bc8ef1696adac99a1fabae9b79afcd3461cf323b) )
ROM_LOAD16_BYTE("e21-06.rom", 0x000001, 0x100000, CRC(997fc0d7) SHA1(58a546f739072fedebfe7c972fe85f72107726b2) )
ROM_LOAD ("e21-05.rom", 0x300000, 0x100000, CRC(07eab58f) SHA1(ae2d7b839b39d88d11652df74804a39230674467) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* Sound CPU */
ROM_LOAD16_BYTE("e21-12.32", 0x100000, 0x40000, CRC(34093de1) SHA1(d69d6b5f10b8fe86f727d739ed5aecceb15e01f7) )
@@ -3056,13 +3056,13 @@ ROM_START( bubblemj )
ROM_REGION(0x800000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e21-02.rom", 0x000000, 0x200000, CRC(b7cb9232) SHA1(ba71cb98d49eadebb26d9f53bbaec1dc211077f5) )
ROM_LOAD16_BYTE("e21-01.rom", 0x000001, 0x200000, CRC(a11f2f99) SHA1(293c5996600cad05bf98f936f5f820d93d546099) )
- ROM_FILL ( 0x400000, 0x400000, 0 )
+ ROM_FILL ( 0x400000, 0x400000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e21-07.rom", 0x000000, 0x100000, CRC(7789bf7c) SHA1(bc8ef1696adac99a1fabae9b79afcd3461cf323b) )
ROM_LOAD16_BYTE("e21-06.rom", 0x000001, 0x100000, CRC(997fc0d7) SHA1(58a546f739072fedebfe7c972fe85f72107726b2) )
ROM_LOAD ("e21-05.rom", 0x300000, 0x100000, CRC(07eab58f) SHA1(ae2d7b839b39d88d11652df74804a39230674467) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* Sound CPU */
ROM_LOAD16_BYTE("e21-12.32", 0x100000, 0x40000, CRC(34093de1) SHA1(d69d6b5f10b8fe86f727d739ed5aecceb15e01f7) )
@@ -3086,13 +3086,13 @@ ROM_START( cleopatr )
ROM_REGION(0x200000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e28-02.bin", 0x000000, 0x080000, CRC(b20d47cb) SHA1(6888e5564688840fed1c123ab38467066cd59c7f) )
ROM_LOAD16_BYTE("e28-01.bin", 0x000001, 0x080000, CRC(4440e659) SHA1(71dece81bac8d638473c6531fed5c32798096af9) )
- ROM_FILL ( 0x100000, 0x100000, 0 )
+ ROM_FILL ( 0x100000, 0x100000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e28-06.bin", 0x000000, 0x100000, CRC(21d0c454) SHA1(f4c815984b19321cfab303fa6f21d9cad35b09f2) )
ROM_LOAD16_BYTE("e28-05.bin", 0x000001, 0x100000, CRC(2870dbbc) SHA1(4e412b90cbd9a05956cde3d8cff615ebadca9db6) )
ROM_LOAD ("e28-04.bin", 0x300000, 0x100000, CRC(57aef029) SHA1(5c07209015d4749d1ffb3e9c1a890e6cfeec8cb0) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x140000, "audiocpu", 0) /* Sound CPU */
ROM_LOAD16_BYTE("e28-11.bin", 0x100000, 0x20000, CRC(01a06950) SHA1(94d22cd839f9027e9d45264c366e0cb5d698e0b6) )
@@ -3112,13 +3112,13 @@ ROM_START( pbobble3 )
ROM_REGION(0x400000, "gfx1" , 0 ) /* Sprites */
ROM_LOAD16_BYTE("e29-02.rom", 0x000000, 0x100000, CRC(437391d3) SHA1(b3cc64c68553d37e0bd09e0dece14901d8df5866) )
ROM_LOAD16_BYTE("e29-01.rom", 0x000001, 0x100000, CRC(52547c77) SHA1(d0cc8b8915cec1506c9733a1ce1638038ea93d25) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0 ) /* Tiles */
ROM_LOAD16_BYTE("e29-08.rom", 0x000000, 0x100000, CRC(7040a3d5) SHA1(ea284ec530aac20348f84122e38a508bbc283f44) )
ROM_LOAD16_BYTE("e29-07.rom", 0x000001, 0x100000, CRC(fca2ea9b) SHA1(a87ebedd0d16657288df434a70b8933fafe0ca25) )
ROM_LOAD ("e29-06.rom", 0x300000, 0x100000, CRC(c16184f8) SHA1(ded417d9d116b5a2f7518fa404bc2dda1c6a6366) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 code */
ROM_LOAD16_BYTE("e29-13.rom", 0x100000, 0x40000, CRC(1ef551ef) SHA1(527defe8f35314304adb4b483285b08cd6ebe865) )
@@ -3141,13 +3141,13 @@ ROM_START( pbobble3u )
ROM_REGION(0x400000, "gfx1" , 0 ) /* Sprites */
ROM_LOAD16_BYTE("e29-02.rom", 0x000000, 0x100000, CRC(437391d3) SHA1(b3cc64c68553d37e0bd09e0dece14901d8df5866) )
ROM_LOAD16_BYTE("e29-01.rom", 0x000001, 0x100000, CRC(52547c77) SHA1(d0cc8b8915cec1506c9733a1ce1638038ea93d25) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0 ) /* Tiles */
ROM_LOAD16_BYTE("e29-08.rom", 0x000000, 0x100000, CRC(7040a3d5) SHA1(ea284ec530aac20348f84122e38a508bbc283f44) )
ROM_LOAD16_BYTE("e29-07.rom", 0x000001, 0x100000, CRC(fca2ea9b) SHA1(a87ebedd0d16657288df434a70b8933fafe0ca25) )
ROM_LOAD ("e29-06.rom", 0x300000, 0x100000, CRC(c16184f8) SHA1(ded417d9d116b5a2f7518fa404bc2dda1c6a6366) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 code */
ROM_LOAD16_BYTE("e29-13.rom", 0x100000, 0x40000, CRC(1ef551ef) SHA1(527defe8f35314304adb4b483285b08cd6ebe865) )
@@ -3170,13 +3170,13 @@ ROM_START( pbobble3j )
ROM_REGION(0x400000, "gfx1" , 0 ) /* Sprites */
ROM_LOAD16_BYTE("e29-02.ic8", 0x000000, 0x100000, CRC(437391d3) SHA1(b3cc64c68553d37e0bd09e0dece14901d8df5866) )
ROM_LOAD16_BYTE("e29-01.ic12", 0x000001, 0x100000, CRC(52547c77) SHA1(d0cc8b8915cec1506c9733a1ce1638038ea93d25) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0 ) /* Tiles */
ROM_LOAD16_BYTE("e29-08.ic47", 0x000000, 0x100000, CRC(7040a3d5) SHA1(ea284ec530aac20348f84122e38a508bbc283f44) )
ROM_LOAD16_BYTE("e29-07.ic45", 0x000001, 0x100000, CRC(fca2ea9b) SHA1(a87ebedd0d16657288df434a70b8933fafe0ca25) )
ROM_LOAD ("e29-06.ic43", 0x300000, 0x100000, CRC(c16184f8) SHA1(ded417d9d116b5a2f7518fa404bc2dda1c6a6366) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 code */
ROM_LOAD16_BYTE("e29-13.ic32", 0x100000, 0x40000, CRC(1ef551ef) SHA1(527defe8f35314304adb4b483285b08cd6ebe865) )
@@ -3211,13 +3211,13 @@ ROM_START( arkretrn )
ROM_LOAD16_BYTE("e36-03.12", 0x000000, 0x040000, CRC(1ea8558b) SHA1(b8ea4d6e1fb551b3c47f336a5e60ec33f7be525f) )
ROM_LOAD16_BYTE("e36-02.8", 0x000001, 0x040000, CRC(694eda31) SHA1(1a6f85057395052571491f85c633d5632ab64865) )
ROM_LOAD ("e36-01.4", 0x0c0000, 0x040000, CRC(54b9b2cd) SHA1(55ae964ea1d2cc40a6578c5339754a270096f01f) )
- ROM_FILL ( 0x080000, 0x040000, 0 )
+ ROM_FILL ( 0x080000, 0x040000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e36-07.47", 0x000000, 0x080000, CRC(266bf1c1) SHA1(489549478d7016400af2e643d4b98bf605237d34) )
ROM_LOAD16_BYTE("e36-06.45", 0x000001, 0x080000, CRC(110ab729) SHA1(0ccc0a5abbcfd79a069daf5162cd344a5fb225d5) )
ROM_LOAD ("e36-05.43", 0x180000, 0x080000, CRC(db18bce2) SHA1(b6653facc7f5c624f5710a51f2b2abfe640177e2) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION16_BE(0x400000, "ensoniq.0" , ROMREGION_ERASE00 ) // V2: 4 banks, only 1 populated
ROM_LOAD16_BYTE("e36-04.38", 0x000000, 0x200000, CRC(2250959b) SHA1(06943f1b72bdf325485356a01278d88aeae93d87) ) // C8 C9 CA CB
@@ -3245,13 +3245,13 @@ ROM_START( arkretrnu )
ROM_LOAD16_BYTE("e36-03.12", 0x000000, 0x040000, CRC(1ea8558b) SHA1(b8ea4d6e1fb551b3c47f336a5e60ec33f7be525f) )
ROM_LOAD16_BYTE("e36-02.8", 0x000001, 0x040000, CRC(694eda31) SHA1(1a6f85057395052571491f85c633d5632ab64865) )
ROM_LOAD ("e36-01.4", 0x0c0000, 0x040000, CRC(54b9b2cd) SHA1(55ae964ea1d2cc40a6578c5339754a270096f01f) )
- ROM_FILL ( 0x080000, 0x040000, 0 )
+ ROM_FILL ( 0x080000, 0x040000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e36-07.47", 0x000000, 0x080000, CRC(266bf1c1) SHA1(489549478d7016400af2e643d4b98bf605237d34) )
ROM_LOAD16_BYTE("e36-06.45", 0x000001, 0x080000, CRC(110ab729) SHA1(0ccc0a5abbcfd79a069daf5162cd344a5fb225d5) )
ROM_LOAD ("e36-05.43", 0x180000, 0x080000, CRC(db18bce2) SHA1(b6653facc7f5c624f5710a51f2b2abfe640177e2) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION16_BE(0x400000, "ensoniq.0" , ROMREGION_ERASE00 ) // V2: 4 banks, only 1 populated
ROM_LOAD16_BYTE("e36-04.38", 0x000000, 0x200000, CRC(2250959b) SHA1(06943f1b72bdf325485356a01278d88aeae93d87) ) // C8 C9 CA CB
@@ -3279,13 +3279,13 @@ ROM_START( arkretrnj )
ROM_LOAD16_BYTE("e36-03.12", 0x000000, 0x040000, CRC(1ea8558b) SHA1(b8ea4d6e1fb551b3c47f336a5e60ec33f7be525f) )
ROM_LOAD16_BYTE("e36-02.8", 0x000001, 0x040000, CRC(694eda31) SHA1(1a6f85057395052571491f85c633d5632ab64865) )
ROM_LOAD ("e36-01.4", 0x0c0000, 0x040000, CRC(54b9b2cd) SHA1(55ae964ea1d2cc40a6578c5339754a270096f01f) )
- ROM_FILL ( 0x080000, 0x040000, 0 )
+ ROM_FILL ( 0x080000, 0x040000, nullptr )
ROM_REGION(0x200000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e36-07.47", 0x000000, 0x080000, CRC(266bf1c1) SHA1(489549478d7016400af2e643d4b98bf605237d34) )
ROM_LOAD16_BYTE("e36-06.45", 0x000001, 0x080000, CRC(110ab729) SHA1(0ccc0a5abbcfd79a069daf5162cd344a5fb225d5) )
ROM_LOAD ("e36-05.43", 0x180000, 0x080000, CRC(db18bce2) SHA1(b6653facc7f5c624f5710a51f2b2abfe640177e2) )
- ROM_FILL ( 0x100000, 0x080000, 0 )
+ ROM_FILL ( 0x100000, 0x080000, nullptr )
ROM_REGION16_BE(0x400000, "ensoniq.0" , ROMREGION_ERASE00 ) // V2: 4 banks, only 1 populated
ROM_LOAD16_BYTE("e36-04.38", 0x000000, 0x200000, CRC(2250959b) SHA1(06943f1b72bdf325485356a01278d88aeae93d87) ) // C8 C9 CA CB
@@ -3312,7 +3312,7 @@ ROM_START( kirameki )
ROM_LOAD16_BYTE("e44-03.7", 0x0800001, 0x200000, CRC(d9e63fb0) SHA1(f2d8c30a4aaa2090673d5d2b1071e586a05c0236) )
ROM_LOAD ("e44-02.4", 0x1200000, 0x400000, CRC(5481efde) SHA1(560a1b8acf672781e912dca51599b5aa4d69520a) )
ROM_LOAD ("e44-01.3", 0x1600000, 0x200000, CRC(c4bdf727) SHA1(793a22a30ef44db818cfac96ff8e9d2f99cb672f) )
- ROM_FILL ( 0x0c00000, 0x600000, 0 )
+ ROM_FILL ( 0x0c00000, 0x600000, nullptr )
ROM_REGION(0xc00000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e44-14.47", 0x000000, 0x200000, CRC(4597c034) SHA1(3c16c20969df9e439d42a89e649146319df1b996) )
@@ -3321,7 +3321,7 @@ ROM_START( kirameki )
ROM_LOAD16_BYTE("e44-11.44", 0x400001, 0x100000, CRC(34d84143) SHA1(d553ab2da9188b1881f70802637d46574a42787e) )
ROM_LOAD ("e44-10.43", 0x900000, 0x200000, CRC(326f738e) SHA1(29c0c870341345eba10993446fecee08b6f13027) )
ROM_LOAD ("e44-09.42", 0xb00000, 0x100000, CRC(a8e68eb7) SHA1(843bbb8a61bd4b9cbb14c7242281ce0c83c432ff) )
- ROM_FILL ( 0x600000, 0x300000, 0 )
+ ROM_FILL ( 0x600000, 0x300000, nullptr )
ROM_REGION(0x400000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e44-20.51", 0x100000, 0x080000, CRC(4df7e051) SHA1(db0f5758458764a1c04116d5d5bbb20d4d36c875) )
@@ -3347,13 +3347,13 @@ ROM_START( puchicar )
ROM_LOAD16_BYTE("e46-03", 0x400001, 0x200000, CRC(eb768193) SHA1(1d48334c0dfb9f72484717c267ac9b9b8d887fc8) )
ROM_LOAD ("e46-02", 0xc00000, 0x200000, CRC(fb046018) SHA1(48d9c582ec9ef59dcc7538598fbd7ea2117896af) )
ROM_LOAD ("e46-01", 0xe00000, 0x200000, CRC(34fc2103) SHA1(dca199bbd0ad28a11960101cda8d110943b10822) )
- ROM_FILL ( 0x800000, 0x400000, 0 )
+ ROM_FILL ( 0x800000, 0x400000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e46-12", 0x000000, 0x100000, CRC(1f3a9851) SHA1(c8711e2ef0096b41cc9b4c41e521d44b824f7181) )
ROM_LOAD16_BYTE("e46-11", 0x000001, 0x100000, CRC(e9f10bf1) SHA1(4ee9be3846b262dc0992c904c40580353b164d46) )
ROM_LOAD ("e46-10", 0x300000, 0x100000, CRC(1999b76a) SHA1(83d6d2efe250bf3b119982bbf701f9b9d856af2d) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e46-21", 0x100000, 0x40000, CRC(b466cff6) SHA1(0757984f15a6ac9939c1e8625d5b9bfcbc788acc) )
@@ -3387,13 +3387,13 @@ ROM_START( puchicarj )
ROM_LOAD16_BYTE("e46-03", 0x400001, 0x200000, CRC(eb768193) SHA1(1d48334c0dfb9f72484717c267ac9b9b8d887fc8) )
ROM_LOAD ("e46-02", 0xc00000, 0x200000, CRC(fb046018) SHA1(48d9c582ec9ef59dcc7538598fbd7ea2117896af) )
ROM_LOAD ("e46-01", 0xe00000, 0x200000, CRC(34fc2103) SHA1(dca199bbd0ad28a11960101cda8d110943b10822) )
- ROM_FILL ( 0x800000, 0x400000, 0 )
+ ROM_FILL ( 0x800000, 0x400000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e46-12", 0x000000, 0x100000, CRC(1f3a9851) SHA1(c8711e2ef0096b41cc9b4c41e521d44b824f7181) )
ROM_LOAD16_BYTE("e46-11", 0x000001, 0x100000, CRC(e9f10bf1) SHA1(4ee9be3846b262dc0992c904c40580353b164d46) )
ROM_LOAD ("e46-10", 0x300000, 0x100000, CRC(1999b76a) SHA1(83d6d2efe250bf3b119982bbf701f9b9d856af2d) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e46-19", 0x100000, 0x40000, CRC(2624eba0) SHA1(ba0b13bda241c648c7f8520106acd8c0c888fe29) )
@@ -3423,13 +3423,13 @@ ROM_START( pbobble4 )
ROM_REGION(0x400000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e49-02", 0x000000, 0x100000, CRC(c7d2f40b) SHA1(cc6813189d6b31d7db099e49443af395f137462c) )
ROM_LOAD16_BYTE("e49-01", 0x000001, 0x100000, CRC(a3dd5f85) SHA1(2b305fdc18806bb5d7c3de0ac6a6eb07f98b4d3d) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e49-08", 0x000000, 0x100000, CRC(87408106) SHA1(6577568ab4b92d6a81f43cf9ea2f0e30e17e2742) )
ROM_LOAD16_BYTE("e49-07", 0x000001, 0x100000, CRC(1e1e8e1c) SHA1(9c3b994064c6af62b6a24cab85089a74fd92cf7f) )
ROM_LOAD ("e49-06", 0x300000, 0x100000, CRC(ec85f7ce) SHA1(9fead68c38fc9ca84d34d70343b13665978c362b) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 code */
ROM_LOAD16_BYTE("e49-13.32", 0x100000, 0x40000, CRC(83536f7f) SHA1(2252cee00ae260954cc76d92af8eb2a87d23cbfb) )
@@ -3459,13 +3459,13 @@ ROM_START( pbobble4j )
ROM_REGION(0x400000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e49-02", 0x000000, 0x100000, CRC(c7d2f40b) SHA1(cc6813189d6b31d7db099e49443af395f137462c) )
ROM_LOAD16_BYTE("e49-01", 0x000001, 0x100000, CRC(a3dd5f85) SHA1(2b305fdc18806bb5d7c3de0ac6a6eb07f98b4d3d) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e49-08", 0x000000, 0x100000, CRC(87408106) SHA1(6577568ab4b92d6a81f43cf9ea2f0e30e17e2742) )
ROM_LOAD16_BYTE("e49-07", 0x000001, 0x100000, CRC(1e1e8e1c) SHA1(9c3b994064c6af62b6a24cab85089a74fd92cf7f) )
ROM_LOAD ("e49-06", 0x300000, 0x100000, CRC(ec85f7ce) SHA1(9fead68c38fc9ca84d34d70343b13665978c362b) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 code */
ROM_LOAD16_BYTE("e49-13.32", 0x100000, 0x40000, CRC(83536f7f) SHA1(2252cee00ae260954cc76d92af8eb2a87d23cbfb) )
@@ -3495,13 +3495,13 @@ ROM_START( pbobble4u )
ROM_REGION(0x400000, "gfx1" , 0) /* Sprites */
ROM_LOAD16_BYTE("e49-02", 0x000000, 0x100000, CRC(c7d2f40b) SHA1(cc6813189d6b31d7db099e49443af395f137462c) )
ROM_LOAD16_BYTE("e49-01", 0x000001, 0x100000, CRC(a3dd5f85) SHA1(2b305fdc18806bb5d7c3de0ac6a6eb07f98b4d3d) )
- ROM_FILL ( 0x200000, 0x200000, 0 )
+ ROM_FILL ( 0x200000, 0x200000, nullptr )
ROM_REGION(0x400000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e49-08", 0x000000, 0x100000, CRC(87408106) SHA1(6577568ab4b92d6a81f43cf9ea2f0e30e17e2742) )
ROM_LOAD16_BYTE("e49-07", 0x000001, 0x100000, CRC(1e1e8e1c) SHA1(9c3b994064c6af62b6a24cab85089a74fd92cf7f) )
ROM_LOAD ("e49-06", 0x300000, 0x100000, CRC(ec85f7ce) SHA1(9fead68c38fc9ca84d34d70343b13665978c362b) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 code */
ROM_LOAD16_BYTE("e49-13.32", 0x100000, 0x40000, CRC(83536f7f) SHA1(2252cee00ae260954cc76d92af8eb2a87d23cbfb) )
@@ -3532,13 +3532,13 @@ ROM_START( popnpopj )
ROM_LOAD16_BYTE("e51-03.12",0x000000, 0x100000, CRC(a24c4607) SHA1(2396fa927446568ad8d98ad6756813e2f30523dd) )
ROM_LOAD16_BYTE("e51-02.8", 0x000001, 0x100000, CRC(6aa8b96c) SHA1(aaf7917dce5fed43c68cd3065538b58666ef3dbc) )
ROM_LOAD ("e51-01.4", 0x300000, 0x100000, CRC(70347e24) SHA1(6b4ab90f0209e50eac7bee3abcf40afb71ab950a) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e51-08.47", 0x000000, 0x200000, CRC(3ad41f02) SHA1(a4959113c01062003df41cdf6146e8a034917ee2) )
ROM_LOAD16_BYTE("e51-07.45", 0x000001, 0x200000, CRC(95873e46) SHA1(02504cbd920c8dbcb5abec6388305eff38f7efe0) )
ROM_LOAD ("e51-06.43", 0x600000, 0x200000, CRC(c240d6c8) SHA1(6f3b5224b7eb8783893375d432bbbfc37f81c230) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e51-13.32", 0x100000, 0x40000, CRC(3b9e3986) SHA1(26340bda0ad2ea580e2395135617966676a71ad5) )
@@ -3567,13 +3567,13 @@ ROM_START( popnpop )
ROM_LOAD16_BYTE("e51-03.12",0x000000, 0x100000, CRC(a24c4607) SHA1(2396fa927446568ad8d98ad6756813e2f30523dd) )
ROM_LOAD16_BYTE("e51-02.8", 0x000001, 0x100000, CRC(6aa8b96c) SHA1(aaf7917dce5fed43c68cd3065538b58666ef3dbc) )
ROM_LOAD ("e51-01.4", 0x300000, 0x100000, CRC(70347e24) SHA1(6b4ab90f0209e50eac7bee3abcf40afb71ab950a) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e51-08.47", 0x000000, 0x200000, CRC(3ad41f02) SHA1(a4959113c01062003df41cdf6146e8a034917ee2) )
ROM_LOAD16_BYTE("e51-07.45", 0x000001, 0x200000, CRC(95873e46) SHA1(02504cbd920c8dbcb5abec6388305eff38f7efe0) )
ROM_LOAD ("e51-06.43", 0x600000, 0x200000, CRC(c240d6c8) SHA1(6f3b5224b7eb8783893375d432bbbfc37f81c230) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e51-13.32", 0x100000, 0x40000, CRC(3b9e3986) SHA1(26340bda0ad2ea580e2395135617966676a71ad5) )
@@ -3602,13 +3602,13 @@ ROM_START( popnpopu )
ROM_LOAD16_BYTE("e51-03.12",0x000000, 0x100000, CRC(a24c4607) SHA1(2396fa927446568ad8d98ad6756813e2f30523dd) )
ROM_LOAD16_BYTE("e51-02.8", 0x000001, 0x100000, CRC(6aa8b96c) SHA1(aaf7917dce5fed43c68cd3065538b58666ef3dbc) )
ROM_LOAD ("e51-01.4", 0x300000, 0x100000, CRC(70347e24) SHA1(6b4ab90f0209e50eac7bee3abcf40afb71ab950a) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e51-08.47", 0x000000, 0x200000, CRC(3ad41f02) SHA1(a4959113c01062003df41cdf6146e8a034917ee2) )
ROM_LOAD16_BYTE("e51-07.45", 0x000001, 0x200000, CRC(95873e46) SHA1(02504cbd920c8dbcb5abec6388305eff38f7efe0) )
ROM_LOAD ("e51-06.43", 0x600000, 0x200000, CRC(c240d6c8) SHA1(6f3b5224b7eb8783893375d432bbbfc37f81c230) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x180000, "audiocpu", 0) /* 68000 sound CPU */
ROM_LOAD16_BYTE("e51-13.32", 0x100000, 0x40000, CRC(3b9e3986) SHA1(26340bda0ad2ea580e2395135617966676a71ad5) )
@@ -3679,13 +3679,13 @@ ROM_START( landmakr )
ROM_LOAD16_BYTE("e61-03.12",0x000000, 0x200000, CRC(e8abfc46) SHA1(fbde006f9822af3ed8debec525270d329981ea21) )
ROM_LOAD16_BYTE("e61-02.08",0x000001, 0x200000, CRC(1dc4a164) SHA1(33b412d9653099aaff8ed5e62d1ba4fc30aa9058) )
ROM_LOAD ("e61-01.04",0x600000, 0x200000, CRC(6cdd8311) SHA1(7810a5a81f3b5a730d2088c79b12fffd77659b5b) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD16_BYTE("e61-09.47", 0x000000, 0x200000, CRC(6ba29987) SHA1(b63c12523e19da66b3ca07c3548ac81bf57b59a1) )
ROM_LOAD16_BYTE("e61-08.45", 0x000001, 0x200000, CRC(76c98e14) SHA1(c021c325ab4ae410fa54e2eab61d34318867432b) )
ROM_LOAD ("e61-07.43", 0x600000, 0x200000, CRC(4a57965d) SHA1(8e80788e0f47fb242da9af3aa19077dc0ec829b8) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
@@ -3720,7 +3720,7 @@ ROM_START( landmakrp )
ROM_LOAD ("obj1-2.31",0x680000, 0x080000, CRC(c2757722) SHA1(83a921647eb0375e10c7f76c08ebe66f2a6fdcd9) )
ROM_LOAD ("obj2-2.30",0x700000, 0x080000, CRC(934556ff) SHA1(aca8585680e66635b8872259cfd38edc96e92066) )
ROM_LOAD ("obj3-2.29",0x780000, 0x080000, CRC(97f0f777) SHA1(787a33b91cb262cc3983a46ba259dd9b153d532a) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
ROM_REGION(0x800000, "gfx2" , 0) /* Tiles */
ROM_LOAD32_BYTE("scr0-0.7", 0x000000, 0x080000, CRC(da6ba562) SHA1(6aefd249d3491380837e04583a0069ed9c495d05) )
@@ -3735,7 +3735,7 @@ ROM_START( landmakrp )
ROM_LOAD16_BYTE("scr0-5.2", 0x600001, 0x080000, CRC(8e1ea0fe) SHA1(aa815d1d67bf72be6a0c4076490dfd36f28a82ab) )
ROM_LOAD16_BYTE("scr1-4.15",0x700000, 0x080000, CRC(783b6d10) SHA1(eab2c7b19890c1f6c13f0062978db5b81988499b) )
ROM_LOAD16_BYTE("scr1-5.14",0x700001, 0x080000, CRC(24aba128) SHA1(b03804c738d86bfafc1f8fb91f8e77e878d2dc83) )
- ROM_FILL ( 0x400000, 0x200000, 0 )
+ ROM_FILL ( 0x400000, 0x200000, nullptr )
diff --git a/src/mame/drivers/taito_l.cpp b/src/mame/drivers/taito_l.cpp
index 8d6e6e97aa8..41e57d48498 100644
--- a/src/mame/drivers/taito_l.cpp
+++ b/src/mame/drivers/taito_l.cpp
@@ -196,47 +196,47 @@ void taitol_state::taito_machine_reset()
MACHINE_RESET_MEMBER(taitol_state,fhawk)
{
taito_machine_reset();
- m_porte0_tag = NULL;
- m_porte1_tag = NULL;
- m_portf0_tag = NULL;
- m_portf1_tag = NULL;
+ m_porte0_tag = nullptr;
+ m_porte1_tag = nullptr;
+ m_portf0_tag = nullptr;
+ m_portf1_tag = nullptr;
}
MACHINE_RESET_MEMBER(taitol_state,raimais)
{
taito_machine_reset();
- m_porte0_tag = NULL;
- m_porte1_tag = NULL;
- m_portf0_tag = NULL;
- m_portf1_tag = NULL;
+ m_porte0_tag = nullptr;
+ m_porte1_tag = nullptr;
+ m_portf0_tag = nullptr;
+ m_portf1_tag = nullptr;
}
MACHINE_RESET_MEMBER(taitol_state,champwr)
{
taito_machine_reset();
- m_porte0_tag = NULL;
- m_porte1_tag = NULL;
- m_portf0_tag = NULL;
- m_portf1_tag = NULL;
+ m_porte0_tag = nullptr;
+ m_porte1_tag = nullptr;
+ m_portf0_tag = nullptr;
+ m_portf1_tag = nullptr;
}
MACHINE_RESET_MEMBER(taitol_state,kurikint)
{
taito_machine_reset();
- m_porte0_tag = NULL;
- m_porte1_tag = NULL;
- m_portf0_tag = NULL;
- m_portf1_tag = NULL;
+ m_porte0_tag = nullptr;
+ m_porte1_tag = nullptr;
+ m_portf0_tag = nullptr;
+ m_portf1_tag = nullptr;
}
MACHINE_RESET_MEMBER(taitol_state,evilston)
{
taito_machine_reset();
- m_porte0_tag = NULL;
- m_porte1_tag = NULL;
- m_portf0_tag = NULL;
- m_portf1_tag = NULL;
+ m_porte0_tag = nullptr;
+ m_porte1_tag = nullptr;
+ m_portf0_tag = nullptr;
+ m_portf1_tag = nullptr;
}
MACHINE_RESET_MEMBER(taitol_state,puzznic)
@@ -261,18 +261,18 @@ MACHINE_RESET_MEMBER(taitol_state,palamed)
{
taito_machine_reset();
m_porte0_tag = "DSWA";
- m_porte1_tag = NULL;
+ m_porte1_tag = nullptr;
m_portf0_tag = "DSWB";
- m_portf1_tag = NULL;
+ m_portf1_tag = nullptr;
}
MACHINE_RESET_MEMBER(taitol_state,cachat)
{
taito_machine_reset();
m_porte0_tag = "DSWA";
- m_porte1_tag = NULL;
+ m_porte1_tag = nullptr;
m_portf0_tag = "DSWB";
- m_portf1_tag = NULL;
+ m_portf1_tag = nullptr;
}
MACHINE_RESET_MEMBER(taitol_state,horshoes)
@@ -409,7 +409,7 @@ WRITE8_MEMBER(taitol_state::rambankswitch_w)
else
{
logerror("unknown rambankswitch %d, %02x (%04x)\n", offset, data, space.device().safe_pc());
- m_current_notifier[offset] = 0;
+ m_current_notifier[offset] = nullptr;
m_current_base[offset] = m_empty_ram;
}
membank(bankname[offset])->set_base(m_current_base[offset]);
@@ -1700,7 +1700,7 @@ static const gfx_layout char_layout =
static GFXDECODE_START( taito_l )
GFXDECODE_ENTRY( "gfx1", 0, bg2_layout, 0, 16 )
GFXDECODE_ENTRY( "gfx1", 0, sp2_layout, 0, 16 )
- GFXDECODE_ENTRY( NULL, 0, char_layout, 0, 16 ) // Ram-based
+ GFXDECODE_ENTRY( nullptr, 0, char_layout, 0, 16 ) // Ram-based
GFXDECODE_END
diff --git a/src/mame/drivers/taitosj.cpp b/src/mame/drivers/taitosj.cpp
index b86595aa6a6..2d6460b2afc 100644
--- a/src/mame/drivers/taitosj.cpp
+++ b/src/mame/drivers/taitosj.cpp
@@ -1607,7 +1607,7 @@ static INPUT_PORTS_START( kikstart )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )
PORT_START("IN3") /* Service */
- PORT_BIT( 0x03, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitosj_state,kikstart_gear_r, (void *)0)
+ PORT_BIT( 0x03, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitosj_state,kikstart_gear_r, (void *)nullptr)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* needs to be 0, otherwise cannot shift */
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SERVICE1 )
@@ -1703,10 +1703,10 @@ static const gfx_layout spritelayout =
static GFXDECODE_START( taitosj )
- GFXDECODE_ENTRY( NULL, 0x9000, charlayout, 0, 8 ) /* the game dynamically modifies this */
- GFXDECODE_ENTRY( NULL, 0x9000, spritelayout, 0, 8 ) /* the game dynamically modifies this */
- GFXDECODE_ENTRY( NULL, 0xa800, charlayout, 0, 8 ) /* the game dynamically modifies this */
- GFXDECODE_ENTRY( NULL, 0xa800, spritelayout, 0, 8 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x9000, charlayout, 0, 8 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x9000, spritelayout, 0, 8 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0xa800, charlayout, 0, 8 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0xa800, spritelayout, 0, 8 ) /* the game dynamically modifies this */
GFXDECODE_END
diff --git a/src/mame/drivers/taitotz.cpp b/src/mame/drivers/taitotz.cpp
index 3d8829db0a5..2acde2b420a 100644
--- a/src/mame/drivers/taitotz.cpp
+++ b/src/mame/drivers/taitotz.cpp
@@ -2628,7 +2628,7 @@ INPUT_PORTS_END
void taitotz_state::machine_reset()
{
- if (m_hdd_serial_number != NULL)
+ if (m_hdd_serial_number != nullptr)
{
ide_hdd_device *hdd = m_ata->subdevice<ata_slot_device>("0")->subdevice<ide_hdd_device>("hdd");
UINT16 *identify_device = hdd->identify_device_buffer();
@@ -2680,7 +2680,7 @@ static MACHINE_CONFIG_START( taitotz, taitotz_state )
MCFG_QUANTUM_TIME(attotime::from_hz(120))
- 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(taitotz_state, ide_interrupt))
MCFG_NVRAM_ADD_0FILL("nvram")
@@ -2746,7 +2746,7 @@ DRIVER_INIT_MEMBER(taitotz_state,batlgear)
init_taitotz_111a();
// unknown, not used by BIOS 1.11a
- m_hdd_serial_number = NULL;
+ m_hdd_serial_number = nullptr;
m_scr_base = 0x1c0000;
@@ -2780,7 +2780,7 @@ DRIVER_INIT_MEMBER(taitotz_state,pwrshovl)
init_taitotz_111a();
// unknown, not used by BIOS 1.11a
- m_hdd_serial_number = NULL;
+ m_hdd_serial_number = nullptr;
m_scr_base = 0x1c0000;
diff --git a/src/mame/drivers/taitowlf.cpp b/src/mame/drivers/taitowlf.cpp
index 24f8d5ef1be..8f2f0387fec 100644
--- a/src/mame/drivers/taitowlf.cpp
+++ b/src/mame/drivers/taitowlf.cpp
@@ -373,8 +373,8 @@ static MACHINE_CONFIG_START( taitowlf, taitowlf_state )
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_FRAGMENT_ADD( pcat_common )
diff --git a/src/mame/drivers/tandy1t.cpp b/src/mame/drivers/tandy1t.cpp
index 88acf29a4a6..3ba893c7610 100644
--- a/src/mame/drivers/tandy1t.cpp
+++ b/src/mame/drivers/tandy1t.cpp
@@ -297,11 +297,11 @@ READ8_MEMBER(tandy1000_state::tandy1000_pio_r)
void tandy1000_state::tandy1000_set_bios_bank()
{
- UINT8 *p = NULL;
+ UINT8 *p = nullptr;
- assert( m_romcs0 != NULL );
- assert( m_romcs1 != NULL );
- assert( m_biosbank != NULL );
+ assert( m_romcs0 != nullptr );
+ assert( m_romcs1 != nullptr );
+ assert( m_biosbank != nullptr );
if ( m_tandy_bios_bank & 0x10 )
{
@@ -590,17 +590,17 @@ static MACHINE_CONFIG_START( t1000hx, tandy1000_state )
MCFG_FRAGMENT_ADD(tandy1000_common)
// plus cards are isa with a nonstandard conntector
- MCFG_ISA8_SLOT_ADD("mb:isa", "plus1", pc_isa8_cards, NULL, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "plus1", pc_isa8_cards, nullptr, false)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( t1000sx, t1000hx )
MCFG_DEVICE_MODIFY("isa_fdc")
MCFG_SLOT_OPTION_MACHINE_CONFIG("fdc_xt", cfg_fdc_525)
- 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", "isa3", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", 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)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, nullptr, false)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("disk_list","ibm5150")
@@ -622,10 +622,10 @@ static MACHINE_CONFIG_DERIVED( t1000_16_8, t1000_16 )
MCFG_CPU_MODIFY( "maincpu" )
MCFG_CPU_CLOCK( XTAL_24MHz / 3 )
- 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", "isa3", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", 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)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, nullptr, false)
MACHINE_CONFIG_END
static MACHINE_CONFIG_START( t1000_286, tandy1000_state )
@@ -636,11 +636,11 @@ static MACHINE_CONFIG_START( t1000_286, tandy1000_state )
MCFG_FRAGMENT_ADD(tandy1000_common)
- 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", "isa3", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, NULL, false)
- MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", 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)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, nullptr, false)
+ MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, nullptr, false)
MACHINE_CONFIG_END
#ifdef UNUSED_DEFINITION
diff --git a/src/mame/drivers/tandy2k.cpp b/src/mame/drivers/tandy2k.cpp
index 4fca7d9d1f3..d88f3120b98 100644
--- a/src/mame/drivers/tandy2k.cpp
+++ b/src/mame/drivers/tandy2k.cpp
@@ -822,7 +822,7 @@ static MACHINE_CONFIG_START( tandy2k, tandy2k_state )
MCFG_I8251_RXRDY_HANDLER(WRITELINE(tandy2k_state, rxrdy_w))
MCFG_I8251_TXRDY_HANDLER(WRITELINE(tandy2k_state, txrdy_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(I8251A_TAG, i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(I8251A_TAG, i8251_device, write_dsr))
// TODO pin 15 external transmit clock
diff --git a/src/mame/drivers/tankbatt.cpp b/src/mame/drivers/tankbatt.cpp
index 4757c1469da..dabda547e02 100644
--- a/src/mame/drivers/tankbatt.cpp
+++ b/src/mame/drivers/tankbatt.cpp
@@ -275,7 +275,7 @@ static const char *const tankbatt_sample_names[] =
"engine1",
"engine2",
"explode1",
- 0 /* end of array */
+ nullptr /* end of array */
};
diff --git a/src/mame/drivers/thayers.cpp b/src/mame/drivers/thayers.cpp
index 26db8693aef..c481ae0c3b5 100644
--- a/src/mame/drivers/thayers.cpp
+++ b/src/mame/drivers/thayers.cpp
@@ -382,8 +382,8 @@ READ8_MEMBER(thayers_state::dsw_b_r)
READ8_MEMBER(thayers_state::laserdsc_data_r)
{
- if (m_ldv1000 != NULL) return m_ldv1000->status_r();
- if (m_pr7820 != NULL) return m_pr7820->data_r();
+ if (m_ldv1000 != nullptr) return m_ldv1000->status_r();
+ if (m_pr7820 != nullptr) return m_pr7820->data_r();
return 0;
}
@@ -413,12 +413,12 @@ WRITE8_MEMBER(thayers_state::laserdsc_control_w)
if (BIT(data, 5))
{
- if (m_ldv1000 != NULL)
+ if (m_ldv1000 != nullptr)
{
m_ldv1000->data_w(m_laserdisc_data);
m_ldv1000->enter_w(BIT(data, 7) ? CLEAR_LINE : ASSERT_LINE);
}
- if (m_pr7820 != NULL)
+ if (m_pr7820 != nullptr)
{
m_pr7820->data_w(m_laserdisc_data);
m_pr7820_enter = BIT(data, 6) ? CLEAR_LINE : ASSERT_LINE;
@@ -627,15 +627,15 @@ ADDRESS_MAP_END
CUSTOM_INPUT_MEMBER(thayers_state::laserdisc_enter_r)
{
- if (m_pr7820 != NULL) return m_pr7820_enter;
- if (m_ldv1000 != NULL) return (m_ldv1000->status_strobe_r() == ASSERT_LINE) ? 0 : 1;
+ if (m_pr7820 != nullptr) return m_pr7820_enter;
+ if (m_ldv1000 != nullptr) return (m_ldv1000->status_strobe_r() == ASSERT_LINE) ? 0 : 1;
return 0;
}
CUSTOM_INPUT_MEMBER(thayers_state::laserdisc_ready_r)
{
- if (m_pr7820 != NULL) return (m_pr7820->ready_r() == ASSERT_LINE) ? 0 : 1;
- if (m_ldv1000 != NULL) return (m_ldv1000->command_strobe_r() == ASSERT_LINE) ? 0 : 1;
+ if (m_pr7820 != nullptr) return (m_pr7820->ready_r() == ASSERT_LINE) ? 0 : 1;
+ if (m_ldv1000 != nullptr) return (m_ldv1000->command_strobe_r() == ASSERT_LINE) ? 0 : 1;
return 0;
}
diff --git a/src/mame/drivers/thief.cpp b/src/mame/drivers/thief.cpp
index 960fdd08614..86ba9f5eae9 100644
--- a/src/mame/drivers/thief.cpp
+++ b/src/mame/drivers/thief.cpp
@@ -385,7 +385,7 @@ static const char *const sharkatt_sample_names[] =
"*sharkatt",
"talk",
"crash",
- 0 /* end of array */
+ nullptr /* end of array */
};
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
@@ -395,7 +395,7 @@ static const char *const thief_sample_names[] =
"*thief",
"talk",
"crash",
- 0 /* end of array */
+ nullptr /* end of array */
};
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
@@ -405,7 +405,7 @@ static const char *const natodef_sample_names[] =
"*natodef",
"talk",
"crash",
- 0 /* end of array */
+ nullptr /* end of array */
};
diff --git a/src/mame/drivers/thomson.cpp b/src/mame/drivers/thomson.cpp
index f8a9a301e3a..dc906e196ce 100644
--- a/src/mame/drivers/thomson.cpp
+++ b/src/mame/drivers/thomson.cpp
@@ -591,7 +591,7 @@ static const floppy_interface thomson_floppy_interface =
{
FLOPPY_STANDARD_5_25_DSHD,
LEGACY_FLOPPY_OPTIONS_NAME(thomson),
- NULL
+ nullptr
};
FLOPPY_FORMATS_MEMBER( thomson_state::cd90_640_formats )
@@ -708,7 +708,7 @@ static MACHINE_CONFIG_START( to7, thomson_state )
MCFG_MOS6551_TXD_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_txd))
/// 2400 7N2
- 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/ti99_4p.cpp b/src/mame/drivers/ti99_4p.cpp
index 7122ab40a05..b1d4aea0f51 100644
--- a/src/mame/drivers/ti99_4p.cpp
+++ b/src/mame/drivers/ti99_4p.cpp
@@ -272,7 +272,7 @@ INPUT_PORTS_END
READ16_MEMBER( ti99_4p_state::memread )
{
int addroff = offset << 1;
- if (m_rom0 == NULL) return 0; // premature access
+ if (m_rom0 == nullptr) return 0; // premature access
UINT16 zone = addroff & 0xe000;
UINT16 value = 0;
diff --git a/src/mame/drivers/ti99_4x.cpp b/src/mame/drivers/ti99_4x.cpp
index 0e647f2f2cd..2d9e11f4dc2 100644
--- a/src/mame/drivers/ti99_4x.cpp
+++ b/src/mame/drivers/ti99_4x.cpp
@@ -769,28 +769,28 @@ WRITE_LINE_MEMBER( ti99_4x_state::notconnected )
*/
static const dmux_device_list_entry dmux_devices[] =
{
- { VIDEO_SYSTEM_TAG, 0x8800, 0xfc01, 0x0400, NULL, 0, 0 },
+ { VIDEO_SYSTEM_TAG, 0x8800, 0xfc01, 0x0400, nullptr, 0, 0 },
{ GROM0_TAG, 0x9800, 0xfc01, 0x0400, "GROMENA", 0x01, 0x00 },
{ GROM1_TAG, 0x9800, 0xfc01, 0x0400, "GROMENA", 0x01, 0x00 },
{ GROM2_TAG, 0x9800, 0xfc01, 0x0400, "GROMENA", 0x01, 0x00 },
- { TISOUND_TAG, 0x8400, 0xfc01, 0x0000, NULL, 0, 0 },
- { GROMPORT_TAG, 0x9800, 0xfc01, 0x0400, NULL, 0, 0 },
- { GROMPORT_TAG, 0x6000, 0xe000, 0x0000, NULL, 0, 0 },
- { PERIBOX_TAG, 0x0000, 0x0000, 0x0000, NULL, 0, 0 }, // Peribox needs all addresses
- { NULL, 0, 0, 0, NULL, 0, 0 }
+ { TISOUND_TAG, 0x8400, 0xfc01, 0x0000, nullptr, 0, 0 },
+ { GROMPORT_TAG, 0x9800, 0xfc01, 0x0400, nullptr, 0, 0 },
+ { GROMPORT_TAG, 0x6000, 0xe000, 0x0000, nullptr, 0, 0 },
+ { PERIBOX_TAG, 0x0000, 0x0000, 0x0000, nullptr, 0, 0 }, // Peribox needs all addresses
+ { nullptr, 0, 0, 0, nullptr, 0, 0 }
};
static const dmux_device_list_entry dmux_devices_ev[] =
{
- { VIDEO_SYSTEM_TAG, 0x8800, 0xfc01, 0x0400, NULL, 0, 0 },
+ { VIDEO_SYSTEM_TAG, 0x8800, 0xfc01, 0x0400, nullptr, 0, 0 },
{ GROM0_TAG, 0x9800, 0xfc01, 0x0400, "GROMENA", 0x01, 0x00 },
{ GROM1_TAG, 0x9800, 0xfc01, 0x0400, "GROMENA", 0x01, 0x00 },
{ GROM2_TAG, 0x9800, 0xfc01, 0x0400, "GROMENA", 0x01, 0x00 },
- { TISOUND_TAG, 0x8400, 0xfc01, 0x0000, NULL, 0, 0 },
- { GROMPORT_TAG, 0x9800, 0xfc01, 0x0400, NULL, 0, 0 },
- { GROMPORT_TAG, 0x6000, 0xe000, 0x0000, NULL, 0, 0 },
- { PERIBOX_TAG, 0x0000, 0x0000, 0x0000, NULL, 0, 0 }, // Peribox needs all addresses
- { NULL, 0, 0, 0, NULL, 0, 0 }
+ { TISOUND_TAG, 0x8400, 0xfc01, 0x0000, nullptr, 0, 0 },
+ { GROMPORT_TAG, 0x9800, 0xfc01, 0x0400, nullptr, 0, 0 },
+ { GROMPORT_TAG, 0x6000, 0xe000, 0x0000, nullptr, 0, 0 },
+ { PERIBOX_TAG, 0x0000, 0x0000, 0x0000, nullptr, 0, 0 }, // Peribox needs all addresses
+ { nullptr, 0, 0, 0, nullptr, 0, 0 }
};
static DMUX_CONFIG( datamux_conf )
diff --git a/src/mame/drivers/ti99_8.cpp b/src/mame/drivers/ti99_8.cpp
index eeaacff3591..278682f9bf2 100644
--- a/src/mame/drivers/ti99_8.cpp
+++ b/src/mame/drivers/ti99_8.cpp
@@ -933,7 +933,7 @@ static const mapper8_list_entry mapper_devices[] =
{ INTSNAME, PHYSIC, STOP, 0xffe000, 0xfffff0, 0x000000 }, // ffe000-ffe00f Interrupt level sense
{ PERIBOX_TAG, PHYSIC, STOP, 0x000000, 0x000000, 0x000000 }, // Peripheral Expansion Box
- { NULL, 0, 0, 0, 0, 0 }
+ { nullptr, 0, 0, 0, 0, 0 }
};
static MAPPER8_CONFIG( mapper_conf )
@@ -1111,10 +1111,10 @@ ROM_START(ti99_8)
// Built-in RAM
ROM_REGION(SRAM_SIZE, SRAM_TAG, 0)
- ROM_FILL(0x0000, SRAM_SIZE, 0x00)
+ ROM_FILL(0x0000, SRAM_SIZE, nullptr)
ROM_REGION(DRAM_SIZE, DRAM_TAG, 0)
- ROM_FILL(0x0000, DRAM_SIZE, 0x00)
+ ROM_FILL(0x0000, DRAM_SIZE, nullptr)
ROM_END
#define rom_ti99_8e rom_ti99_8
diff --git a/src/mame/drivers/tiamc1.cpp b/src/mame/drivers/tiamc1.cpp
index 7fcebb77877..7ef89edea64 100644
--- a/src/mame/drivers/tiamc1.cpp
+++ b/src/mame/drivers/tiamc1.cpp
@@ -216,7 +216,7 @@ static const gfx_layout char_layout =
};
static GFXDECODE_START( tiamc1 )
- GFXDECODE_ENTRY( NULL, 0x0000, char_layout, 0, 16 )
+ GFXDECODE_ENTRY( nullptr, 0x0000, char_layout, 0, 16 )
GFXDECODE_ENTRY( "gfx1", 0x0000, sprites16x16_layout, 0, 16 )
GFXDECODE_END
@@ -258,7 +258,7 @@ ROM_START( konek )
ROM_LOAD( "g3.d17", 0x04000, 0x2000, CRC(91301282) SHA1(cb448a1bb7a9c1768f870a8c062e37807431c9c7) )
ROM_LOAD( "g4.d17", 0x06000, 0x2000, CRC(3ff0c20b) SHA1(3d999c05b3986149e569630779ed5581fc202842) )
ROM_LOAD( "g5.d17", 0x08000, 0x2000, CRC(e3196d30) SHA1(a03d9f75926be9fcf5ee05df8b00fbf87361ea5b) )
- ROM_FILL( 0xa000, 0x2000, 0x00 ) /* g6.d17 is unpopulated */
+ ROM_FILL( 0xa000, 0x2000, nullptr ) /* g6.d17 is unpopulated */
ROM_LOAD( "g7.d17", 0x0c000, 0x2000, CRC(fe4e9fdd) SHA1(2033585a6c53455d1dafee85cbb807d424ed231d) )
ROM_REGION( 0x8000, "gfx1", 0 )
@@ -283,7 +283,7 @@ ROM_START( sosterm )
ROM_LOAD( "06.3g", 0x04000, 0x2000, CRC(34dacde6) SHA1(6c91e4dc1d3c85768a94fb4c7d38f29c23664740) )
ROM_LOAD( "07.4g", 0x06000, 0x2000, CRC(9f6f8cdd) SHA1(3fa3928935d98906fdf07ed372764456d7a9729a) )
ROM_LOAD( "08.5g", 0x08000, 0x2000, CRC(25e70da4) SHA1(ec77b0b79c0477c0939022d7f2a24ae48e4530bf) )
- ROM_FILL( 0xa000, 0x2000, 0x00 ) /* 09.6g is unpopulated */
+ ROM_FILL( 0xa000, 0x2000, nullptr ) /* 09.6g is unpopulated */
ROM_LOAD( "10.7g", 0x0c000, 0x2000, CRC(22bc9997) SHA1(fd638529e29d9fd32dd22534cb748841dde9a2c3) )
ROM_REGION( 0x8000, "gfx1", 0 )
@@ -301,7 +301,7 @@ ROM_START( koroleva )
ROM_LOAD( "06.3g", 0x04000, 0x2000, CRC(48074786) SHA1(145749053cd00c8547024c9afe3ab0ff7d8f5ff9) )
ROM_LOAD( "07.4g", 0x06000, 0x2000, CRC(41a4adb5) SHA1(cdbdf6884307dd0f1fc991e6e1bc4c4fdc351ab1) )
ROM_LOAD( "08.5g", 0x08000, 0x2000, CRC(8f379d95) SHA1(0ea70bc14c52b1f4b38b0d14e4249252a2577f2a) )
- ROM_FILL( 0xa000, 0x2000, 0x00 ) /* 09.6g is unpopulated */
+ ROM_FILL( 0xa000, 0x2000, nullptr ) /* 09.6g is unpopulated */
ROM_LOAD( "10.7g", 0x0c000, 0x2000, CRC(397f41f8) SHA1(2d07462afad39dda067114ce8d47e64d6a854283) )
ROM_REGION( 0x8000, "gfx1", 0 )
@@ -316,10 +316,10 @@ ROM_START( bilyard )
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "04.1g", 0x00000, 0x2000, CRC(a44f913d) SHA1(f01a0e931fb0f719bc7b3f1ca7802dd747c8a56f) )
ROM_LOAD( "05.2g", 0x02000, 0x2000, CRC(6e41219f) SHA1(b09a16c9bd48b503ec0f2c636f021199d7ac7924) )
- ROM_FILL( 0x04000, 0x2000, 0x00 ) /* 06.3g is unpopulated */
- ROM_FILL( 0x06000, 0x2000, 0x00 ) /* 07.4g is unpopulated */
- ROM_FILL( 0x08000, 0x2000, 0x00 ) /* 08.5g is unpopulated */
- ROM_FILL( 0x0a000, 0x2000, 0x00 ) /* 09.6g is unpopulated */
+ ROM_FILL( 0x04000, 0x2000, nullptr ) /* 06.3g is unpopulated */
+ ROM_FILL( 0x06000, 0x2000, nullptr ) /* 07.4g is unpopulated */
+ ROM_FILL( 0x08000, 0x2000, nullptr ) /* 08.5g is unpopulated */
+ ROM_FILL( 0x0a000, 0x2000, nullptr ) /* 09.6g is unpopulated */
ROM_LOAD( "10.7g", 0x0c000, 0x2000, CRC(173adb85) SHA1(53f27b45e61365907e8996c283ae70ca5b498129) )
ROM_REGION( 0x8000, "gfx1", 0 )
diff --git a/src/mame/drivers/tiki100.cpp b/src/mame/drivers/tiki100.cpp
index b9da9b4f8b4..990a4194986 100644
--- a/src/mame/drivers/tiki100.cpp
+++ b/src/mame/drivers/tiki100.cpp
@@ -273,7 +273,7 @@ WRITE8_MEMBER( tiki100_state::system_w )
*/
// 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();
@@ -655,7 +655,7 @@ static const z80_daisy_config tiki100_daisy_chain[] =
{ "slot1" },
{ "slot2" },
{ "slot3" },
- { NULL }
+ { nullptr }
};
TIMER_DEVICE_CALLBACK_MEMBER( tiki100_state::tape_tick )
@@ -722,7 +722,7 @@ static MACHINE_CONFIG_START( tiki100, tiki100_state )
MCFG_TIKI100_BUS_OUT_MREQ_CALLBACK(WRITE8(tiki100_state, mrq_w))
MCFG_TIKI100_BUS_SLOT_ADD("slot1", "8088")
MCFG_TIKI100_BUS_SLOT_ADD("slot2", "hdc")
- MCFG_TIKI100_BUS_SLOT_ADD("slot3", NULL)
+ MCFG_TIKI100_BUS_SLOT_ADD("slot3", nullptr)
/* devices */
MCFG_Z80DART_ADD(Z80DART_TAG, XTAL_8MHz/4, 0, 0, 0, 0 )
@@ -753,10 +753,10 @@ static MACHINE_CONFIG_START( tiki100, tiki100_state )
MCFG_FLOPPY_DRIVE_ADD(FD1797_TAG":0", tiki100_floppies, "525qd", tiki100_state::floppy_formats)
MCFG_FLOPPY_DRIVE_ADD(FD1797_TAG":1", tiki100_floppies, "525qd", tiki100_state::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_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxa_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(Z80DART_TAG, z80dart_device, rxb_w))
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_devices, "printer")
diff --git a/src/mame/drivers/tim011.cpp b/src/mame/drivers/tim011.cpp
index 005efa249a2..a98ef46f7a3 100644
--- a/src/mame/drivers/tim011.cpp
+++ b/src/mame/drivers/tim011.cpp
@@ -117,7 +117,7 @@ static const floppy_format_type tim011_floppy_formats[] = {
FLOPPY_IMD_FORMAT,
FLOPPY_MFI_FORMAT,
FLOPPY_MFM_FORMAT,
- NULL
+ nullptr
};
static MACHINE_CONFIG_START( tim011,tim011_state )
diff --git a/src/mame/drivers/timex.cpp b/src/mame/drivers/timex.cpp
index ad12202fae0..ee30790defb 100644
--- a/src/mame/drivers/timex.cpp
+++ b/src/mame/drivers/timex.cpp
@@ -595,7 +595,7 @@ DEVICE_IMAGE_LOAD_MEMBER( spectrum_state, timex_cart )
{
UINT32 size = m_dock->common_get_size("rom");
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
UINT8 *DOCK;
int chunks_in_file = 0;
@@ -607,7 +607,7 @@ DEVICE_IMAGE_LOAD_MEMBER( spectrum_state, timex_cart )
image.seterror(IMAGE_ERROR_UNSPECIFIED, "File corrupted");
return IMAGE_INIT_FAIL;
}
- if (image.software_entry() != NULL)
+ if (image.software_entry() != nullptr)
{
image.seterror(IMAGE_ERROR_UNSPECIFIED, "Loading from softlist is not supported yet");
return IMAGE_INIT_FAIL;
diff --git a/src/mame/drivers/tk2000.cpp b/src/mame/drivers/tk2000.cpp
index 6a5cd4a276c..f4fc8ac2730 100644
--- a/src/mame/drivers/tk2000.cpp
+++ b/src/mame/drivers/tk2000.cpp
@@ -119,7 +119,7 @@ void tk2000_state::machine_start()
// setup video pointers
m_video->m_ram_ptr = m_ram_ptr;
m_video->m_aux_ptr = m_ram_ptr;
- m_video->m_char_ptr = NULL;
+ m_video->m_char_ptr = nullptr;
m_video->m_char_size = 0;
}
diff --git a/src/mame/drivers/tmaster.cpp b/src/mame/drivers/tmaster.cpp
index 2d0ae72cf60..d4183a8b242 100644
--- a/src/mame/drivers/tmaster.cpp
+++ b/src/mame/drivers/tmaster.cpp
@@ -1739,7 +1739,7 @@ ROM_START( galgbios )
GALGAMES_BIOS_ROMS
ROM_REGION( 0x200000, "blitter", 0 )
- ROM_COPY( "maincpu", 0, 0, 0x200000 )
+ ROM_COPY( "maincpu", nullptr, 0, 0x200000 )
ROM_REGION( 0x40000, "oki", ROMREGION_ERASE )
// RAM, filled by the 68000 and fed to the OKI
@@ -1772,7 +1772,7 @@ ROM_START( galgame2 )
ROM_LOAD( "namco.u4", 0x000, 0x9db, CRC(63ec1224) SHA1(2966b2aa431e6b8d46cbba18a6fc4de7395caa04) )
ROM_REGION( 0x200000 * 2, "blitter", 0 )
- ROM_COPY( "maincpu", 0, 0, 0x200000 * 2 )
+ ROM_COPY( "maincpu", nullptr, 0, 0x200000 * 2 )
ROM_REGION( 0x40000, "oki", ROMREGION_ERASE )
// RAM, filled by the 68000 and fed to the OKI
diff --git a/src/mame/drivers/toaplan2.cpp b/src/mame/drivers/toaplan2.cpp
index 90bea610ee6..e12b8796e75 100644
--- a/src/mame/drivers/toaplan2.cpp
+++ b/src/mame/drivers/toaplan2.cpp
@@ -378,7 +378,7 @@ MACHINE_START_MEMBER(toaplan2_state,toaplan2)
WRITE_LINE_MEMBER(toaplan2_state::toaplan2_reset)
{
- if (m_audiocpu != NULL)
+ if (m_audiocpu != nullptr)
m_audiocpu->set_input_line(INPUT_LINE_RESET, PULSE_LINE);
}
@@ -3057,7 +3057,7 @@ static const gfx_layout fixeightblayout =
};
static GFXDECODE_START( truxton2 )
- GFXDECODE_ENTRY( NULL, 0, truxton2_tx_tilelayout, 64*16, 64 )
+ GFXDECODE_ENTRY( nullptr, 0, truxton2_tx_tilelayout, 64*16, 64 )
GFXDECODE_END
static GFXDECODE_START( raizing )
@@ -3065,7 +3065,7 @@ static GFXDECODE_START( raizing )
GFXDECODE_END
static GFXDECODE_START( batrider )
- GFXDECODE_ENTRY( NULL, 0, batrider_tx_tilelayout, 64*16, 64 )
+ GFXDECODE_ENTRY( nullptr, 0, batrider_tx_tilelayout, 64*16, 64 )
GFXDECODE_END
static GFXDECODE_START( fixeightbl )
diff --git a/src/mame/drivers/triforce.cpp b/src/mame/drivers/triforce.cpp
index ed68898359f..170ae357979 100644
--- a/src/mame/drivers/triforce.cpp
+++ b/src/mame/drivers/triforce.cpp
@@ -579,7 +579,7 @@ static MACHINE_CONFIG_START( triforce_base, triforce_state )
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( triforcegd, triforce_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
diff --git a/src/mame/drivers/trs80m2.cpp b/src/mame/drivers/trs80m2.cpp
index 7aa50ad6dfd..9c84301cc74 100644
--- a/src/mame/drivers/trs80m2.cpp
+++ b/src/mame/drivers/trs80m2.cpp
@@ -132,7 +132,7 @@ WRITE8_MEMBER( trs80m2_state::drvslt_w )
*/
// drive select
- m_floppy = NULL;
+ m_floppy = nullptr;
if (!BIT(data, 0)) m_floppy = m_floppy0->get_device();
if (!BIT(data, 1)) m_floppy = m_floppy1->get_device();
@@ -629,7 +629,7 @@ static const z80_daisy_config trs80m2_daisy_chain[] =
{ Z80SIO_TAG },
{ Z80DMA_TAG },
{ Z80PIO_TAG },
- { NULL }
+ { nullptr }
};
//**************************************************************************
@@ -727,9 +727,9 @@ static MACHINE_CONFIG_START( trs80m2, trs80m2_state )
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITE8(Z80PIO_TAG, z80pio_device, pa_w))
MCFG_WD_FDC_DRQ_CALLBACK(DEVWRITELINE(Z80DMA_TAG, z80dma_device, rdy_w))
MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":0", trs80m2_floppies, "8dsdd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":1", trs80m2_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":2", trs80m2_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":3", trs80m2_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":1", trs80m2_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":2", trs80m2_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":3", trs80m2_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_DEVICE_ADD(Z80CTC_TAG, Z80CTC, XTAL_8MHz/2)
MCFG_Z80CTC_INTR_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
@@ -817,9 +817,9 @@ static MACHINE_CONFIG_START( trs80m16, trs80m16_state )
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITE8(Z80PIO_TAG, z80pio_device, pa_w))
MCFG_WD_FDC_DRQ_CALLBACK(DEVWRITELINE(Z80DMA_TAG, z80dma_device, rdy_w))
MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":0", trs80m2_floppies, "8dsdd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":1", trs80m2_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":2", trs80m2_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":3", trs80m2_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":1", trs80m2_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":2", trs80m2_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FD1791_TAG":3", trs80m2_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_DEVICE_ADD(Z80CTC_TAG, Z80CTC, XTAL_8MHz/2)
MCFG_Z80CTC_INTR_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
diff --git a/src/mame/drivers/trvmadns.cpp b/src/mame/drivers/trvmadns.cpp
index fdf3f241261..85a489ea832 100644
--- a/src/mame/drivers/trvmadns.cpp
+++ b/src/mame/drivers/trvmadns.cpp
@@ -294,7 +294,7 @@ static const gfx_layout charlayout =
};
static GFXDECODE_START( trvmadns )
- GFXDECODE_ENTRY( NULL, 0x6000, charlayout, 0, 4 ) // doesn't matter where we point this, all the tiles are decoded while the game runs
+ GFXDECODE_ENTRY( nullptr, 0x6000, charlayout, 0, 4 ) // doesn't matter where we point this, all the tiles are decoded while the game runs
GFXDECODE_END
TILE_GET_INFO_MEMBER(trvmadns_state::get_bg_tile_info)
diff --git a/src/mame/drivers/tryout.cpp b/src/mame/drivers/tryout.cpp
index 37ae3318f66..aa1769db1a7 100644
--- a/src/mame/drivers/tryout.cpp
+++ b/src/mame/drivers/tryout.cpp
@@ -185,7 +185,7 @@ static const gfx_layout spritelayout =
static GFXDECODE_START( tryout )
GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 8 )
GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 0, 4 )
- GFXDECODE_ENTRY( NULL, 0, vramlayout, 0, 4 )
+ GFXDECODE_ENTRY( nullptr, 0, vramlayout, 0, 4 )
GFXDECODE_END
static MACHINE_CONFIG_START( tryout, tryout_state )
diff --git a/src/mame/drivers/turrett.cpp b/src/mame/drivers/turrett.cpp
index ba7c5cac401..9f11225e838 100644
--- a/src/mame/drivers/turrett.cpp
+++ b/src/mame/drivers/turrett.cpp
@@ -359,7 +359,7 @@ static MACHINE_CONFIG_START( turrett, turrett_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", turrett_state, vblank)
MCFG_CPU_PERIODIC_INT_DRIVER(turrett_state, adc, 60)
- MCFG_ATA_INTERFACE_ADD("ata", turrett_devices, "hdd", NULL, true)
+ MCFG_ATA_INTERFACE_ADD("ata", turrett_devices, "hdd", nullptr, true)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
diff --git a/src/mame/drivers/tvc.cpp b/src/mame/drivers/tvc.cpp
index 3a90e2344e8..0994dcb1b38 100644
--- a/src/mame/drivers/tvc.cpp
+++ b/src/mame/drivers/tvc.cpp
@@ -801,19 +801,19 @@ static MACHINE_CONFIG_START( tvc, tvc_state )
/* expansion interface */
MCFG_DEVICE_ADD("exp1", TVCEXP_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(tvc_exp , NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(tvc_exp , nullptr, false)
MCFG_TVCEXP_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_TVCEXP_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_DEVICE_ADD("exp2", TVCEXP_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(tvc_exp , NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(tvc_exp , nullptr, false)
MCFG_TVCEXP_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_TVCEXP_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_DEVICE_ADD("exp3", TVCEXP_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(tvc_exp , NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(tvc_exp , nullptr, false)
MCFG_TVCEXP_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_TVCEXP_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_DEVICE_ADD("exp4", TVCEXP_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(tvc_exp , NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(tvc_exp , nullptr, false)
MCFG_TVCEXP_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_TVCEXP_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
diff --git a/src/mame/drivers/twinkle.cpp b/src/mame/drivers/twinkle.cpp
index 1886a81481a..b96e438101c 100644
--- a/src/mame/drivers/twinkle.cpp
+++ b/src/mame/drivers/twinkle.cpp
@@ -956,7 +956,7 @@ static MACHINE_CONFIG_START( twinkle, twinkle_state )
MCFG_LEGACY_SCSI_PORT("scsi")
MCFG_AM53CF96_IRQ_HANDLER(DEVWRITELINE("maincpu:irq", psxirq_device, intin10))
- 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(twinkle_state, spu_ata_irq))
MCFG_ATA_INTERFACE_DMARQ_HANDLER(WRITELINE(twinkle_state, spu_ata_dmarq))
diff --git a/src/mame/drivers/tx0.cpp b/src/mame/drivers/tx0.cpp
index d2a2865572e..8128a31be8a 100644
--- a/src/mame/drivers/tx0.cpp
+++ b/src/mame/drivers/tx0.cpp
@@ -333,7 +333,7 @@ void tx0_state::tx0_machine_stop()
{
/* the core will take care of freeing the timers, BUT we must set the variables
to NULL if we don't want to risk confusing the tape image init function */
- m_tape_reader.timer = m_tape_puncher.timer = m_typewriter.prt_timer = m_dis_timer = NULL;
+ m_tape_reader.timer = m_tape_puncher.timer = m_typewriter.prt_timer = m_dis_timer = nullptr;
}
@@ -367,9 +367,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,rim"; }
- 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();
@@ -402,9 +402,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,rim"; }
- 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();
@@ -438,9 +438,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 "typ"; }
- 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();
@@ -473,9 +473,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; }
virtual bool call_load();
virtual void call_unload();
@@ -534,7 +534,7 @@ void tx0_readtape_image_device::call_unload()
tx0_state *state = machine().driver_data<tx0_state>();
/* reader unit */
- state->m_tape_reader.fd = NULL;
+ state->m_tape_reader.fd = nullptr;
/* stop motor */
state->m_tape_reader.motor_on = 0;
@@ -649,7 +649,7 @@ void tx0_punchtape_image_device::call_unload()
tx0_state *state = machine().driver_data<tx0_state>();
/* punch unit */
- state->m_tape_puncher.fd = NULL;
+ state->m_tape_puncher.fd = nullptr;
}
TIMER_CALLBACK_MEMBER(tx0_state::puncher_callback)
@@ -726,7 +726,7 @@ bool tx0_printer_image_device::call_load()
void tx0_printer_image_device::call_unload()
{
tx0_state *state = machine().driver_data<tx0_state>();
- state->m_typewriter.fd = NULL;
+ state->m_typewriter.fd = nullptr;
}
/*
@@ -877,7 +877,7 @@ bool tx0_magtape_image_device::call_load()
void tx0_magtape_image_device::call_unload()
{
tx0_state *state = machine().driver_data<tx0_state>();
- state->m_magtape.img = NULL;
+ state->m_magtape.img = nullptr;
if (state->m_magtape.timer)
{
diff --git a/src/mame/drivers/ultratnk.cpp b/src/mame/drivers/ultratnk.cpp
index ccb8e1b4858..82ae96aa553 100644
--- a/src/mame/drivers/ultratnk.cpp
+++ b/src/mame/drivers/ultratnk.cpp
@@ -203,7 +203,7 @@ static INPUT_PORTS_START( ultratnk )
PORT_START("COLLISION")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
- PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, ultratnk_state, get_collision, (void *)0 )
+ PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, ultratnk_state, get_collision, (void *)nullptr )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, ultratnk_state, get_collision, (void *)1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) /* VCC */
diff --git a/src/mame/drivers/univac.cpp b/src/mame/drivers/univac.cpp
index d26216c3bc5..b6bce0a65ec 100644
--- a/src/mame/drivers/univac.cpp
+++ b/src/mame/drivers/univac.cpp
@@ -163,7 +163,7 @@ static const z80_daisy_config daisy_chain[] =
{
{ "dart" },
{ "ctc" },
- { NULL }
+ { nullptr }
};
static MACHINE_CONFIG_START( uts20, univac_state )
@@ -201,7 +201,7 @@ ROM_START( uts20 )
ROM_LOAD( "uts20e.rom", 0x4000, 0x1000, CRC(0dfc8062) SHA1(cd681020bfb4829d4cebaf1b5bf618e67b55bda3) )
ROM_FILL(0x2bd,1,0xaf) // test 2
ROM_FILL(0x3c1,2,0xaf) // test 5
- ROM_FILL(0x928,1,0)
+ ROM_FILL(0x928,1,nullptr)
/* character generator not dumped, using the one from 'c10' for now */
ROM_REGION( 0x2000, "chargen", 0 )
diff --git a/src/mame/drivers/upscope.cpp b/src/mame/drivers/upscope.cpp
index 2e4d0b60eb6..366817bff63 100644
--- a/src/mame/drivers/upscope.cpp
+++ b/src/mame/drivers/upscope.cpp
@@ -317,7 +317,7 @@ MACHINE_CONFIG_END
ROM_START( upscope )
ROM_REGION(0x80000, "kickstart", 0)
ROM_LOAD16_WORD_SWAP("315093-01.u2", 0x00000, 0x40000, CRC(a6ce1636) SHA1(11f9e62cf299f72184835b7b2a70a16333fc0d88))
- ROM_COPY("kickstart", 0x00000, 0x40000, 0x40000)
+ ROM_COPY("kickstart", nullptr, 0x40000, 0x40000)
ROM_REGION(0x080000, "user2", 0)
ROM_LOAD16_BYTE( "upscope.u5", 0x000000, 0x008000, CRC(c109912e) SHA1(dcac9522e3c4818b2a02212b9173540fcf4bd463) )
diff --git a/src/mame/drivers/usgames.cpp b/src/mame/drivers/usgames.cpp
index f391ff6d2a2..892dfbc9649 100644
--- a/src/mame/drivers/usgames.cpp
+++ b/src/mame/drivers/usgames.cpp
@@ -209,7 +209,7 @@ static const gfx_layout charlayout =
};
static GFXDECODE_START( usgames )
- GFXDECODE_ENTRY( NULL, 0x2800, charlayout, 0, 256 )
+ GFXDECODE_ENTRY( nullptr, 0x2800, charlayout, 0, 256 )
GFXDECODE_END
diff --git a/src/mame/drivers/uzebox.cpp b/src/mame/drivers/uzebox.cpp
index 1df64b89fee..477765842de 100644
--- a/src/mame/drivers/uzebox.cpp
+++ b/src/mame/drivers/uzebox.cpp
@@ -247,7 +247,7 @@ DEVICE_IMAGE_LOAD_MEMBER(uzebox_state, uzebox_cart)
m_cart->rom_alloc(size, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
dynamic_buffer data(size);
image.fread(&data[0], size);
diff --git a/src/mame/drivers/v1050.cpp b/src/mame/drivers/v1050.cpp
index aa099470f2a..4c61fbecdbf 100644
--- a/src/mame/drivers/v1050.cpp
+++ b/src/mame/drivers/v1050.cpp
@@ -677,7 +677,7 @@ WRITE8_MEMBER( v1050_state::misc_ppi_pa_w )
*/
// floppy 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();
@@ -1085,7 +1085,7 @@ static MACHINE_CONFIG_START( v1050, v1050_state )
MCFG_I8251_RXRDY_HANDLER(WRITELINE(v1050_state, sio_rxrdy_w))
MCFG_I8251_TXRDY_HANDLER(WRITELINE(v1050_state, sio_txrdy_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(I8251A_SIO_TAG, i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(I8251A_SIO_TAG, i8251_device, write_dsr))
@@ -1097,8 +1097,8 @@ static MACHINE_CONFIG_START( v1050, v1050_state )
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(v1050_state, fdc_drq_w))
MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":0", v1050_floppies, "525qd", floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":1", v1050_floppies, "525qd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":2", v1050_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":3", v1050_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":2", v1050_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":3", v1050_floppies, nullptr, floppy_image_device::default_floppy_formats)
// SASI bus
MCFG_DEVICE_ADD(SASIBUS_TAG, SCSI_PORT, 0)
diff --git a/src/mame/drivers/v6809.cpp b/src/mame/drivers/v6809.cpp
index 1b408d95335..6acbf18954e 100644
--- a/src/mame/drivers/v6809.cpp
+++ b/src/mame/drivers/v6809.cpp
@@ -257,7 +257,7 @@ READ8_MEMBER( v6809_state::pb_r )
// can support 4 drives
WRITE8_MEMBER( v6809_state::pa_w )
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if ((data & 3) == 0) floppy = m_floppy0->get_device();
//if ((data & 3) == 1) floppy = m_floppy1->get_device();
//if ((data & 3) == 2) floppy = m_floppy2->get_device();
diff --git a/src/mame/drivers/vamphalf.cpp b/src/mame/drivers/vamphalf.cpp
index 9ac27ab39f5..7ca4be26787 100644
--- a/src/mame/drivers/vamphalf.cpp
+++ b/src/mame/drivers/vamphalf.cpp
@@ -644,7 +644,7 @@ void vamphalf_state::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap)
offs = (block + cnt) / 2;
// 16bit version
- if(m_tiles != NULL)
+ if(m_tiles != nullptr)
{
if(m_tiles[offs] & 0x0100) continue;
@@ -2162,13 +2162,13 @@ ROM_START( finalgdr ) /* version 2.20.5915, Korea only */
/* $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( "user2", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0e0000, 0x020000)
ROM_END
@@ -2280,13 +2280,13 @@ ROM_START( mrkickera )
/* $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( "user2", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0e0000, 0x020000)
ROM_REGION16_BE( 0x80, "eeprom", 0 ) /* Default EEPROM (it doesn't boot without and the game code crashes) (game also refuses to boot if program attempts to rewrite it, CPU bug or protection?) */
@@ -2314,13 +2314,13 @@ ROM_START( mrkicker )
/* $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( "user2", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0e0000, 0x020000)
ROM_END
@@ -2392,13 +2392,13 @@ ROM_START( aoh )
/* $00000-$20000 stays the same in all sound banks, */
/* the second half of the bank is what gets switched */
ROM_REGION( 0x100000, "oki_2", 0 ) /* Samples */
- ROM_COPY( "user2", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0e0000, 0x020000)
ROM_END
@@ -2445,21 +2445,21 @@ ROM_START( boonggab )
/* $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( "user2", 0x000000, 0x000000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x020000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x040000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x000000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x020000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x040000, 0x020000)
ROM_COPY( "user2", 0x020000, 0x060000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x080000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x080000, 0x020000)
ROM_COPY( "user2", 0x040000, 0x0a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x0c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x0c0000, 0x020000)
ROM_COPY( "user2", 0x060000, 0x0e0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x100000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x100000, 0x020000)
ROM_COPY( "user2", 0x080000, 0x120000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x140000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x140000, 0x020000)
ROM_COPY( "user2", 0x0a0000, 0x160000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x180000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x180000, 0x020000)
ROM_COPY( "user2", 0x0c0000, 0x1a0000, 0x020000)
- ROM_COPY( "user2", 0x000000, 0x1c0000, 0x020000)
+ ROM_COPY( "user2", nullptr, 0x1c0000, 0x020000)
ROM_COPY( "user2", 0x0e0000, 0x1e0000, 0x020000)
ROM_END
diff --git a/src/mame/drivers/vc4000.cpp b/src/mame/drivers/vc4000.cpp
index 37217c2d82d..d6e72d6fbec 100644
--- a/src/mame/drivers/vc4000.cpp
+++ b/src/mame/drivers/vc4000.cpp
@@ -551,7 +551,7 @@ static MACHINE_CONFIG_START( vc4000, vc4000_state )
MCFG_QUICKLOAD_ADD("quickload", vc4000_state, vc4000, "pgm,tvc", 0)
/* cartridge */
- MCFG_VC4000_CARTRIDGE_ADD("cartslot", vc4000_cart, NULL)
+ MCFG_VC4000_CARTRIDGE_ADD("cartslot", vc4000_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list", "vc4000")
@@ -579,7 +579,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( h21, vc4000 )
MCFG_DEVICE_REMOVE("cartslot")
- MCFG_H21_CARTRIDGE_ADD("cartslot", vc4000_cart, NULL)
+ MCFG_H21_CARTRIDGE_ADD("cartslot", vc4000_cart, nullptr)
MCFG_DEVICE_REMOVE("cart_list")
MCFG_SOFTWARE_LIST_ADD("cart_list", "h21")
diff --git a/src/mame/drivers/vcombat.cpp b/src/mame/drivers/vcombat.cpp
index 98818ffa0d2..baf394599a9 100644
--- a/src/mame/drivers/vcombat.cpp
+++ b/src/mame/drivers/vcombat.cpp
@@ -328,7 +328,7 @@ WRITE16_MEMBER(vcombat_state::crtc_w)
{
mc6845_device *crtc = machine().device<mc6845_device>("crtc");
- if (crtc == NULL)
+ if (crtc == nullptr)
return;
if (m_crtc_select == 0)
@@ -470,8 +470,8 @@ DRIVER_INIT_MEMBER(vcombat_state,shadfgtr)
/* Only one i860 */
m_i860_framebuffer[0][0] = auto_alloc_array(machine(), UINT16, 0x8000);
m_i860_framebuffer[0][1] = auto_alloc_array(machine(), UINT16, 0x8000);
- m_i860_framebuffer[1][0] = NULL;
- m_i860_framebuffer[1][1] = NULL;
+ m_i860_framebuffer[1][0] = nullptr;
+ m_i860_framebuffer[1][1] = nullptr;
}
diff --git a/src/mame/drivers/vectrex.cpp b/src/mame/drivers/vectrex.cpp
index 695ef55619e..2cbc763c581 100644
--- a/src/mame/drivers/vectrex.cpp
+++ b/src/mame/drivers/vectrex.cpp
@@ -124,7 +124,7 @@ static MACHINE_CONFIG_START( vectrex, vectrex_state )
MCFG_VIA6522_IRQ_HANDLER(WRITELINE(vectrex_state, vectrex_via_irq))
/* cartridge */
- MCFG_VECTREX_CARTRIDGE_ADD("cartslot", vectrex_cart, NULL)
+ MCFG_VECTREX_CARTRIDGE_ADD("cartslot", vectrex_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","vectrex")
diff --git a/src/mame/drivers/vegas.cpp b/src/mame/drivers/vegas.cpp
index 1c80c3730de..33f0c3d3d5f 100644
--- a/src/mame/drivers/vegas.cpp
+++ b/src/mame/drivers/vegas.cpp
@@ -588,9 +588,9 @@ void vegas_state::machine_start()
m_timer[3] = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(vegas_state::nile_timer_callback),this));
/* identify our sound board */
- if (machine().device("dsio") != NULL)
+ if (machine().device("dsio") != nullptr)
m_dcs_idma_cs = 6;
- else if (machine().device("denver") != NULL)
+ else if (machine().device("denver") != nullptr)
m_dcs_idma_cs = 7;
else
m_dcs_idma_cs = 0;
@@ -628,7 +628,7 @@ void vegas_state::machine_reset()
memset(m_pci_3dfx_regs, 0, sizeof(m_pci_3dfx_regs));
/* reset the DCS system if we have one */
- if (machine().device("dcs") != NULL)
+ if (machine().device("dcs") != nullptr)
{
m_dcs->reset_w(1);
m_dcs->reset_w(0);
@@ -2225,7 +2225,7 @@ static MACHINE_CONFIG_START( vegascore, vegas_state )
MCFG_M48T37_ADD("timekeeper")
- MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(vegas_state, ide_interrupt))
MCFG_BUS_MASTER_IDE_CONTROLLER_SPACE("maincpu", AS_PROGRAM)
diff --git a/src/mame/drivers/vertigo.cpp b/src/mame/drivers/vertigo.cpp
index 87b297f5165..5d38034109f 100644
--- a/src/mame/drivers/vertigo.cpp
+++ b/src/mame/drivers/vertigo.cpp
@@ -159,7 +159,7 @@ ROM_START( topgunnr )
ROM_LOAD16_BYTE( "tgl-2.9p", 0x000000, 0x002000, CRC(1d10b31e) SHA1(c66f11d2bee81a51baccf96f8e8335fc86dc20e4) )
ROM_LOAD16_BYTE( "tgl-2.10p", 0x000001, 0x002000, CRC(9c80b387) SHA1(aa7b770ddfaf65fd26959e7f9a3f15ba60979e50) )
- ROM_COPY( "maincpu", 0x000000, 0x800000,0x004000)
+ ROM_COPY( "maincpu", nullptr, 0x800000,0x004000)
ROM_LOAD16_BYTE( "tgl-2.9r", 0x804000, 0x002000, CRC(74454ac9) SHA1(4cf1e5373d5940ed81fe7d07324abb10667df097) )
ROM_LOAD16_BYTE( "tgl-2.10r", 0x804001, 0x002000, CRC(f5c28223) SHA1(16bf122f289129b50545e463f685f517cb9baca7) )
ROM_LOAD16_BYTE( "tgl-2.9t", 0x808000, 0x002000, CRC(d415d189) SHA1(3b726815292365a9206b83d1f2f5e314fcb24e73) )
diff --git a/src/mame/drivers/vic10.cpp b/src/mame/drivers/vic10.cpp
index 56c9884f7a8..73a6a9bf11c 100644
--- a/src/mame/drivers/vic10.cpp
+++ b/src/mame/drivers/vic10.cpp
@@ -641,10 +641,10 @@ static MACHINE_CONFIG_START( vic10, vic10_state )
MCFG_MOS6526_PB_INPUT_CALLBACK(READ8(vic10_state, cia_pb_r))
MCFG_MOS6526_PB_OUTPUT_CALLBACK(WRITE8(vic10_state, cia_pb_w))
MCFG_PET_DATASSETTE_PORT_ADD(PET_DATASSETTE_PORT_TAG, cbm_datassette_devices, "c1530", DEVWRITELINE(MOS6526_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(MOS6566_TAG, mos6566_device, lp_w))
MCFG_VCS_CONTROL_PORT_ADD(CONTROL2_TAG, vcs_control_port_devices, "joy")
- MCFG_VIC10_EXPANSION_SLOT_ADD(VIC10_EXPANSION_SLOT_TAG, XTAL_8MHz/8, vic10_expansion_cards, NULL)
+ MCFG_VIC10_EXPANSION_SLOT_ADD(VIC10_EXPANSION_SLOT_TAG, XTAL_8MHz/8, vic10_expansion_cards, nullptr)
MCFG_VIC10_EXPANSION_SLOT_IRQ_CALLBACK(WRITELINE(vic10_state, exp_irq_w))
MCFG_VIC10_EXPANSION_SLOT_RES_CALLBACK(WRITELINE(vic10_state, exp_reset_w))
MCFG_VIC10_EXPANSION_SLOT_CNT_CALLBACK(DEVWRITELINE(MOS6526_TAG, mos6526_device, cnt_w))
diff --git a/src/mame/drivers/vic20.cpp b/src/mame/drivers/vic20.cpp
index 43dc17e7714..1b504f877af 100644
--- a/src/mame/drivers/vic20.cpp
+++ b/src/mame/drivers/vic20.cpp
@@ -681,7 +681,7 @@ static MACHINE_CONFIG_START( vic20, vic20_state )
MCFG_VCS_CONTROL_PORT_ADD(CONTROL1_TAG, vcs_control_port_devices, "joy")
MCFG_VCS_CONTROL_PORT_TRIGGER_CALLBACK(WRITELINE(vic20_state, write_light_pen))
- MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, vic20_user_port_cards, NULL)
+ MCFG_PET_USER_PORT_ADD(PET_USER_PORT_TAG, vic20_user_port_cards, nullptr)
MCFG_PET_USER_PORT_3_HANDLER(WRITELINE(vic20_state, exp_reset_w))
MCFG_PET_USER_PORT_4_HANDLER(WRITELINE(vic20_state, write_user_joy0))
MCFG_PET_USER_PORT_5_HANDLER(WRITELINE(vic20_state, write_user_joy1))
@@ -730,7 +730,7 @@ static MACHINE_CONFIG_DERIVED( ntsc, vic20 )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
// devices
- MCFG_VIC20_EXPANSION_SLOT_ADD(VIC20_EXPANSION_SLOT_TAG, MOS6560_CLOCK, vic20_expansion_cards, NULL)
+ MCFG_VIC20_EXPANSION_SLOT_ADD(VIC20_EXPANSION_SLOT_TAG, MOS6560_CLOCK, vic20_expansion_cards, nullptr)
MCFG_VIC20_EXPANSION_SLOT_IRQ_CALLBACK(INPUTLINE(M6502_TAG, M6502_IRQ_LINE))
MCFG_VIC20_EXPANSION_SLOT_NMI_CALLBACK(INPUTLINE(M6502_TAG, M6502_NMI_LINE))
MCFG_VIC20_EXPANSION_SLOT_RES_CALLBACK(WRITELINE(vic20_state, exp_reset_w))
@@ -760,7 +760,7 @@ static MACHINE_CONFIG_DERIVED( pal, vic20 )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
// devices
- MCFG_VIC20_EXPANSION_SLOT_ADD(VIC20_EXPANSION_SLOT_TAG, MOS6561_CLOCK, vic20_expansion_cards, NULL)
+ MCFG_VIC20_EXPANSION_SLOT_ADD(VIC20_EXPANSION_SLOT_TAG, MOS6561_CLOCK, vic20_expansion_cards, nullptr)
MCFG_VIC20_EXPANSION_SLOT_IRQ_CALLBACK(INPUTLINE(M6502_TAG, M6502_IRQ_LINE))
MCFG_VIC20_EXPANSION_SLOT_NMI_CALLBACK(INPUTLINE(M6502_TAG, M6502_NMI_LINE))
MCFG_VIC20_EXPANSION_SLOT_RES_CALLBACK(WRITELINE(vic20_state, exp_reset_w))
diff --git a/src/mame/drivers/victor9k.cpp b/src/mame/drivers/victor9k.cpp
index 0684e958935..6c48143b051 100644
--- a/src/mame/drivers/victor9k.cpp
+++ b/src/mame/drivers/victor9k.cpp
@@ -539,14 +539,14 @@ static MACHINE_CONFIG_START( victor9k, victor9k_state )
MCFG_CENTRONICS_ACK_HANDLER(DEVWRITELINE(M6522_1_TAG, via6522_device, write_pb6))
MCFG_CENTRONICS_SELECT_HANDLER(DEVWRITELINE(M6522_1_TAG, via6522_device, write_pb7))
- 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(UPD7201_TAG, z80dart_device, rxa_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(UPD7201_TAG, z80dart_device, dcda_w))
MCFG_RS232_RI_HANDLER(WRITELINE(victor9k_state, write_ria))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(UPD7201_TAG, z80dart_device, ctsa_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(M6522_2_TAG, via6522_device, write_pa3))
- 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(UPD7201_TAG, z80dart_device, rxb_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(UPD7201_TAG, z80dart_device, dcdb_w))
MCFG_RS232_RI_HANDLER(WRITELINE(victor9k_state, write_ria))
diff --git a/src/mame/drivers/vip.cpp b/src/mame/drivers/vip.cpp
index f6d3ebd9a29..c9ca8d323ac 100644
--- a/src/mame/drivers/vip.cpp
+++ b/src/mame/drivers/vip.cpp
@@ -663,7 +663,7 @@ void vip_state::machine_reset()
QUICKLOAD_LOAD_MEMBER( vip_state, vip )
{
UINT8 *ram = m_ram->pointer();
- UINT8 *chip8_ptr = NULL;
+ UINT8 *chip8_ptr = nullptr;
int chip8_size = 0;
int size = image.length();
@@ -738,8 +738,8 @@ static MACHINE_CONFIG_START( vip, vip_state )
MCFG_DISCRETE_INTF(vip)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
- MCFG_VIP_BYTEIO_PORT_ADD(VIP_BYTEIO_PORT_TAG, vip_byteio_cards, NULL, WRITELINE(vip_state, byteio_inst_w))
- MCFG_VIP_EXPANSION_SLOT_ADD(VIP_EXPANSION_SLOT_TAG, XTAL_3_52128MHz/2, vip_expansion_cards, NULL)
+ MCFG_VIP_BYTEIO_PORT_ADD(VIP_BYTEIO_PORT_TAG, vip_byteio_cards, nullptr, WRITELINE(vip_state, byteio_inst_w))
+ MCFG_VIP_EXPANSION_SLOT_ADD(VIP_EXPANSION_SLOT_TAG, XTAL_3_52128MHz/2, vip_expansion_cards, nullptr)
MCFG_VIP_EXPANSION_SLOT_INT_CALLBACK(WRITELINE(vip_state, exp_int_w))
MCFG_VIP_EXPANSION_SLOT_DMA_OUT_CALLBACK(WRITELINE(vip_state, exp_dma_out_w))
MCFG_VIP_EXPANSION_SLOT_DMA_IN_CALLBACK(WRITELINE(vip_state, exp_dma_in_w))
diff --git a/src/mame/drivers/viper.cpp b/src/mame/drivers/viper.cpp
index 4abb7bd119a..11d815e74a2 100644
--- a/src/mame/drivers/viper.cpp
+++ b/src/mame/drivers/viper.cpp
@@ -2100,7 +2100,7 @@ static MACHINE_CONFIG_START( viper, viper_state )
MCFG_PCI_BUS_LEGACY_DEVICE(0, "mpc8240", mpc8240_pci_r, mpc8240_pci_w)
MCFG_PCI_BUS_LEGACY_DEVICE(12, "voodoo", voodoo3_pci_r, voodoo3_pci_w)
- MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", NULL, true)
+ MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", nullptr, true)
MCFG_DEVICE_ADD("voodoo", VOODOO_3, STD_VOODOO_3_CLOCK)
MCFG_VOODOO_FBMEM(8)
diff --git a/src/mame/drivers/vixen.cpp b/src/mame/drivers/vixen.cpp
index 5606330d627..0365076cb5f 100644
--- a/src/mame/drivers/vixen.cpp
+++ b/src/mame/drivers/vixen.cpp
@@ -526,7 +526,7 @@ WRITE8_MEMBER( vixen_state::i8155_pc_w )
*/
// 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();
@@ -773,7 +773,7 @@ static MACHINE_CONFIG_START( vixen, vixen_state )
MCFG_I8251_RXRDY_HANDLER(WRITELINE(vixen_state, rxrdy_w))
MCFG_I8251_TXRDY_HANDLER(WRITELINE(vixen_state, txrdy_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(P8251A_TAG, i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(P8251A_TAG, i8251_device, write_dsr))
diff --git a/src/mame/drivers/votrpss.cpp b/src/mame/drivers/votrpss.cpp
index 1a3a6ada714..09bf0a85a14 100644
--- a/src/mame/drivers/votrpss.cpp
+++ b/src/mame/drivers/votrpss.cpp
@@ -278,7 +278,7 @@ static MACHINE_CONFIG_START( votrpss, votrpss_state )
MCFG_I8251_DTR_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_dtr))
MCFG_I8251_RTS_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_rts))
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("uart", i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("uart", i8251_device, write_dsr))
diff --git a/src/mame/drivers/voyager.cpp b/src/mame/drivers/voyager.cpp
index 02cd1a1c96e..2cf410ed4cd 100644
--- a/src/mame/drivers/voyager.cpp
+++ b/src/mame/drivers/voyager.cpp
@@ -483,12 +483,12 @@ static MACHINE_CONFIG_START( voyager, voyager_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))
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/vtech2.cpp b/src/mame/drivers/vtech2.cpp
index d5595320b72..f2f403c87e2 100644
--- a/src/mame/drivers/vtech2.cpp
+++ b/src/mame/drivers/vtech2.cpp
@@ -406,7 +406,7 @@ static const floppy_interface vtech2_floppy_interface =
{
FLOPPY_STANDARD_5_25_SSDD_40,
LEGACY_FLOPPY_OPTIONS_NAME(default),
- NULL
+ nullptr
};
static MACHINE_CONFIG_START( laser350, vtech2_state )
diff --git a/src/mame/drivers/wangpc.cpp b/src/mame/drivers/wangpc.cpp
index 3a5d23d34dc..fc68e3586c0 100644
--- a/src/mame/drivers/wangpc.cpp
+++ b/src/mame/drivers/wangpc.cpp
@@ -42,7 +42,7 @@ enum
void wangpc_state::select_drive()
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (m_ds1) floppy = m_floppy0;
if (m_ds2) floppy = m_floppy1;
@@ -1137,7 +1137,7 @@ static MACHINE_CONFIG_START( wangpc, wangpc_state )
MCFG_DEVICE_ADD("cent_data_in", INPUT_BUFFER, 0)
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_RXD_HANDLER(DEVWRITELINE(SCN2661_TAG, mc2661_device, rx_w))
MCFG_DEVICE_ADD(WANGPC_KEYBOARD_TAG, WANGPC_KEYBOARD, 0)
@@ -1155,11 +1155,11 @@ static MACHINE_CONFIG_START( wangpc, wangpc_state )
MCFG_WANGPC_BUS_DRQ2_CALLBACK(DEVWRITELINE(AM9517A_TAG, am9517a_device, dreq2_w))
MCFG_WANGPC_BUS_DRQ3_CALLBACK(DEVWRITELINE(AM9517A_TAG, am9517a_device, dreq3_w))
MCFG_WANGPC_BUS_IOERROR_CALLBACK(INPUTLINE(I8086_TAG, INPUT_LINE_NMI))
- MCFG_WANGPC_BUS_SLOT_ADD("slot1", 1, wangpc_cards, NULL)
+ MCFG_WANGPC_BUS_SLOT_ADD("slot1", 1, wangpc_cards, nullptr)
MCFG_WANGPC_BUS_SLOT_ADD("slot2", 2, wangpc_cards, "mvc")
- MCFG_WANGPC_BUS_SLOT_ADD("slot3", 3, wangpc_cards, NULL)
- MCFG_WANGPC_BUS_SLOT_ADD("slot4", 4, wangpc_cards, NULL)
- MCFG_WANGPC_BUS_SLOT_ADD("slot5", 5, wangpc_cards, NULL)
+ MCFG_WANGPC_BUS_SLOT_ADD("slot3", 3, wangpc_cards, nullptr)
+ MCFG_WANGPC_BUS_SLOT_ADD("slot4", 4, wangpc_cards, nullptr)
+ MCFG_WANGPC_BUS_SLOT_ADD("slot5", 5, wangpc_cards, nullptr)
// internal ram
MCFG_RAM_ADD(RAM_TAG)
diff --git a/src/mame/drivers/warriorb.cpp b/src/mame/drivers/warriorb.cpp
index c93f3a6a4d7..89ed55db7c5 100644
--- a/src/mame/drivers/warriorb.cpp
+++ b/src/mame/drivers/warriorb.cpp
@@ -183,7 +183,7 @@ READ16_MEMBER(warriorb_state::sound_r)
WRITE8_MEMBER(warriorb_state::pancontrol)
{
- filter_volume_device *flt = NULL;
+ filter_volume_device *flt = nullptr;
offset &= 3;
switch (offset)
@@ -623,7 +623,7 @@ ROM_START( sagaia )
ROM_LOAD32_BYTE( "c07-07.26", 0x00003, 0x80000, CRC(fd9f9e74) SHA1(e89beb5cac844fe16662465b0c76337692591aae) )
ROM_REGION( 0x100000, "gfx3", 0 )
- ROM_COPY( "gfx1", 0x000000, 0x000000, 0x100000 ) /* SCr(screen 2) */
+ ROM_COPY( "gfx1", nullptr, 0x000000, 0x100000 ) /* SCr(screen 2) */
/* The actual board duplicates the SCR gfx roms for the 2nd TC0100SCN */
// ROM_LOAD( "c07-03.47", 0x00000, 0x80000, CRC(189bafce) SHA1(d885e444523489fe24269b90dec58e0d92cfbd6e) )
@@ -668,7 +668,7 @@ ROM_START( darius2d )
ROM_LOAD32_BYTE( "c07-07.26", 0x00003, 0x80000, CRC(fd9f9e74) SHA1(e89beb5cac844fe16662465b0c76337692591aae) )
ROM_REGION( 0x100000, "gfx3", 0 )
- ROM_COPY( "gfx1", 0x000000, 0x000000, 0x100000 ) /* SCr(screen 2) */
+ ROM_COPY( "gfx1", nullptr, 0x000000, 0x100000 ) /* SCr(screen 2) */
/* The actual board duplicates the SCR gfx roms for the 2nd TC0100SCN */
// ROM_LOAD( "c07-03.47", 0x00000, 0x80000, CRC(189bafce) SHA1(d885e444523489fe24269b90dec58e0d92cfbd6e) )
@@ -713,7 +713,7 @@ ROM_START( darius2do )
ROM_LOAD32_BYTE( "c07-07.26", 0x00003, 0x80000, CRC(fd9f9e74) SHA1(e89beb5cac844fe16662465b0c76337692591aae) )
ROM_REGION( 0x100000, "gfx3", 0 )
- ROM_COPY( "gfx1", 0x000000, 0x000000, 0x100000 ) /* SCr(screen 2) */
+ ROM_COPY( "gfx1", nullptr, 0x000000, 0x100000 ) /* SCr(screen 2) */
/* The actual board duplicates the SCR gfx roms for the 2nd TC0100SCN */
// ROM_LOAD( "c07-03.47", 0x00000, 0x80000, CRC(189bafce) SHA1(d885e444523489fe24269b90dec58e0d92cfbd6e) )
diff --git a/src/mame/drivers/wmg.cpp b/src/mame/drivers/wmg.cpp
index 53084fc46f8..aca783cc93b 100644
--- a/src/mame/drivers/wmg.cpp
+++ b/src/mame/drivers/wmg.cpp
@@ -533,7 +533,7 @@ ROM_START( wmg )
ROM_FILL( 0x2f81d, 1, 0xba )
ROM_FILL( 0x2e0b7, 1, 0x7e )
ROM_FILL( 0x2e0b8, 1, 0xf8 )
- ROM_FILL( 0x2e0b9, 1, 0x00 )
+ ROM_FILL( 0x2e0b9, 1, nullptr )
ROM_REGION( 0x18000, "soundcpu", 0 )
ROM_LOAD( "wmg.snd", 0x10000, 0x8000, CRC(1d08990e) SHA1(7bfb29426b3876f113e6ec3bc6c2fce9d2d1eb0c) )
diff --git a/src/mame/drivers/wolfpack.cpp b/src/mame/drivers/wolfpack.cpp
index dbe21b838de..093f54c5434 100644
--- a/src/mame/drivers/wolfpack.cpp
+++ b/src/mame/drivers/wolfpack.cpp
@@ -163,7 +163,7 @@ ADDRESS_MAP_END
static INPUT_PORTS_START( wolfpack )
PORT_START("INPUTS")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, wolfpack_state,wolfpack_dial_r, (void *)0) /* dial connects here */
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, wolfpack_state,wolfpack_dial_r, (void *)nullptr) /* dial connects here */
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, wolfpack_state,wolfpack_dial_r, (void *)1) /* dial connects here */
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 )
@@ -241,7 +241,7 @@ static const gfx_layout ship_layout =
},
0x800,
ship_layout_xoffset,
- NULL
+ nullptr
};
static const UINT32 pt_layout_xoffset[64] =
@@ -266,7 +266,7 @@ static const gfx_layout pt_layout =
{ 0x000, 0x040, 0x080, 0x0c0, 0x100, 0x140, 0x180, 0x1c0 },
0x200,
pt_layout_xoffset,
- NULL
+ nullptr
};
diff --git a/src/mame/drivers/wpc_95.cpp b/src/mame/drivers/wpc_95.cpp
index 1adf3d64867..0ac475f89bb 100644
--- a/src/mame/drivers/wpc_95.cpp
+++ b/src/mame/drivers/wpc_95.cpp
@@ -366,8 +366,8 @@ bool wpc_95_state::sc_aux_lamps_handler(int sid, bool state)
DRIVER_INIT_MEMBER(wpc_95_state, tf95)
{
pic->set_serial("648 123456 12345 123");
- lamp->set_names(NULL);
- out->set_names(NULL);
+ lamp->set_names(nullptr);
+ out->set_names(nullptr);
init();
}
@@ -493,7 +493,7 @@ const char *const wpc_95_state::lamps_afm[64] = {
"Attack Mars", "New York, USA", "London, England", "Light lock", "Lock 1", "Pisa, Italy", "Berlin, Germany", "Paris, France",
"MARTIA\"N\" target", "MARTI\"A\"N target", "Atomic blaster 1", "Atomic blaster 2", "Atomic blaster 3", "R loop jackpot", "Extra ball", "MART\"I\"AN target",
"Capture 1", "Capture 2", "Capture 3", "L loop jackpot", "L loop arrow", "\"M\"ARTIAN target", "M\"A\"RTIAN target", "MA\"R\"TIAN target",
- "Shoot again", "Left outlane", "Left return", "Right return", "Right outlane", "Launch button", NULL, "Start button"
+ "Shoot again", "Left outlane", "Left return", "Right return", "Right outlane", "Launch button", nullptr, "Start button"
};
const char *const wpc_95_state::outputs_afm[52] = {
@@ -501,9 +501,9 @@ const char *const wpc_95_state::outputs_afm[52] = {
"s:Left slingshot", "s:Right slingshot", "s:Left jet", "s:Bottom jet", "s:Right jet", "s:Right alien lo", "s;Saucer shake", "s:Drop target",
"f:R ramp hi (2)", "f:R ramp lo (2)", "f:R side hi (2)", "f:R side lo", "f:Center arrow", "f:Jets", "f:Saucer dome", "m:Motor bank",
"f:L ramp L (2)", "f:L ramp R (2)", "f:L side hi (2)", "f:L side lo", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:Right gate", "s:Left gate", "s:Diverter power", "s:Diverter hold", NULL, NULL, "f:Strobe light", NULL,
+ "s:Right gate", "s:Left gate", "s:Diverter power", "s:Diverter hold", nullptr, nullptr, "f:Strobe light", nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Bottom playfield", "g:Middle playfield", "g:Top playfield"
};
@@ -618,17 +618,17 @@ const char *const wpc_95_state::lamps_cc[64] = {
"R drop: badguy 4", "R standup (bot)", "R standup (top)", "C rmp: catch train", "C ramp: stop train", "C ramp: save Polly", "C ramp: jackpot", "C ramp: combo",
"L rmp: white water", "L rmp: water fall", "L ramp: save Polly", "L ramp: jackpot", "L ramp: combo", "R ret: quick draw", "R out: special", "R gunfight pin",
"Star: stampede", "Star: combo", "Star: high noon", "L loop: combo", "L loop: jackpot", "L loop: ride 'em", "L loop: wild ride", "L loop: B Bronco",
- "Star: Bart Bros", "Shoot again", "Star: show down", "LC drop: badguy 2", NULL, NULL, NULL, "Start button"
+ "Star: Bart Bros", "Shoot again", "Star: show down", "LC drop: badguy 2", nullptr, nullptr, nullptr, "Start button"
};
const char *const wpc_95_state::outputs_cc[52] = {
- "s:Autoplunger", "s:#1 (L) drop tgt", "s:#2 (LC) drop tgt", "s:#3 (RC) drop tgt", "s:#4 (R) drop tgt", "s:Mine popper", NULL, "s:Saloon popper",
+ "s:Autoplunger", "s:#1 (L) drop tgt", "s:#2 (LC) drop tgt", "s:#3 (RC) drop tgt", "s:#4 (R) drop tgt", "s:Mine popper", nullptr, "s:Saloon popper",
"s:Through eject", "s:L slingshot", "s:R slingshot", "s:Left jet", "s:Right jet", "s:L gunfight post", "s:R gunfight post", "s:Bottom jet",
- "s:Mine motor", "f:Mine flasher", "f:Front L flasher", "f:Front R flasher", "s:L loop gate", "s:R loop gate", NULL, "f:Beacon flasher",
+ "s:Mine motor", "f:Mine flasher", "f:Front L flasher", "f:Front R flasher", "s:L loop gate", "s:R loop gate", nullptr, "f:Beacon flasher",
"f:Mid R flasher", "f:Saloon flasher", "f:Back R flasher", "f:Back L flasher", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:Move bart toy", NULL, NULL, "s:Bart toy hat", "s:Train reverse", "s:Train forward", NULL, NULL,
+ "s:Move bart toy", nullptr, nullptr, "s:Bart toy hat", "s:Train reverse", "s:Train forward", nullptr, nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Illum string 1", "g:Illum string 2", "g:Illum string 3"
};
@@ -758,9 +758,9 @@ const char *const wpc_95_state::outputs_cv[52] = {
"s:Trough eject", "s:Left sling", "s:Right sling", "s:Upper jet", "s:Lower jet", "s:Left saucer", "s:Right saucer", "s:Lock post",
"f:Join flasher", "f:Ring 1 flasher", "f:Ring 2 flasher", "f:Ring 3 flasher", "f:Fl right/BB URT", "s:Motor enable", "f:Jet flasher", "f:Fl right/BB ULeft",
"f:FL upper left", "f:Fl URight/BB LLT", "f:Ringmaster FLx2", "f:FL bear/BB LRT", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:Popper", "s:Diverter hold", "s:Ringmaster mgnt", "s:Upper post", "f:Neon", NULL, "s:Motor direction", NULL,
- NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ "s:Popper", "s:Diverter hold", "s:Ringmaster mgnt", "s:Upper post", "f:Neon", nullptr, "s:Motor direction", nullptr,
+ nullptr,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Playfield right", "g:Playfield middle", "g:Playfield left"
};
@@ -883,9 +883,9 @@ const char *const wpc_95_state::outputs_congo[52] = {
"sTrough eject:", "s:Left slingshot", "s:Right slingshot", "s:Left jet", "s:Right jet", "s:Bottom jet", "s:Gorilla left", "s:Gorilla right",
"f:Amy flasher", "f:Left ramp fls", "f:2-way popper fls", "f:Skill shot fls", "f:Gray gorilla fls", "s:\"Map\" eject", "s:Left gate", "s:Right gate",
"f:Lower right fls", "f:Right ramp fls", "f:Volcano flasher", "f:\"Perimeter def\"", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:Up left post", "s:\"Mystery\" eject", "s:UL flip power", "s:UL flip hold", NULL, NULL, NULL, NULL,
+ "s:Up left post", "s:\"Mystery\" eject", "s:UL flip power", "s:UL flip hold", nullptr, nullptr, nullptr, nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Playfld gorilla", "g:Playfield top", "g:Playfield bottom"
};
@@ -997,20 +997,20 @@ const char *const wpc_95_state::lamps_jy[64] = {
"Right 3 bank top", "Right 3 bank mid", "Right 3 bank bot", "Left bank bot", "Left bank mid", "Left bank top", "Fan", "Bath tub",
"Jackpot", "Super jackpot", "Multiball", "Wrecking ball", "Radar adventure", "Jolopy race", "Toilet adventure", "ATC adventure",
"Gen bus", "Toast", "Magic bus", "Collect junk", "Coo coo clock", "Television", "Weather vane", "Fish bowl",
- "Gen toilet", "Window shopping", "Left recycle", "Left crane HU", "Shoot again", NULL, "Toaster", "Hair dryer",
+ "Gen toilet", "Window shopping", "Left recycle", "Left crane HU", "Shoot again", nullptr, "Toaster", "Hair dryer",
"Propeller", "Outerspace", "DO(G)", "(D)OG", "D(O)G", "Choose junk", "Angel sling", "Bicycles",
"Time machine", "Start adventure", "Extra ball", "Toast 2", "Gen sewer", "Toaster gun", "Gen alley", "Devil sling",
- "Fire works", "Toxic waste", "Lite extra ball", "Free game", "Lite jackpot", "Gen crane", NULL, "Start button"
+ "Fire works", "Toxic waste", "Lite extra ball", "Free game", "Lite jackpot", "Gen crane", nullptr, "Start button"
};
const char *const wpc_95_state::outputs_jy[52] = {
- "s:Auto plunger", "s:Refridge popper", "s:Power crane", NULL, "s:Scoop down", "s:Bus diverter", "s:Knocker", NULL,
- "s:Trough", "s:Left sling", "s:Right sling", NULL, NULL, NULL, "s:Hold crane", "s:Move dog",
+ "s:Auto plunger", "s:Refridge popper", "s:Power crane", nullptr, "s:Scoop down", "s:Bus diverter", "s:Knocker", nullptr,
+ "s:Trough", "s:Left sling", "s:Right sling", nullptr, nullptr, nullptr, "s:Hold crane", "s:Move dog",
"f:1 Fl dog face", "f:1 Fl window shop", "f:2 Fl autofire", "f:2 Fl left side", "s:Scoop up", "f:1 Fl under crane", "f:2 Fl back left", "f:2 Fl back rght",
"f:1 Fl shooter", "f:2 Fl scoop", "f:1 Fl dog house", "f:2 Fls cars", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
+ nullptr,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Playfld string 1", "g:Playfld string 2", "g:Logo string"
};
@@ -1133,9 +1133,9 @@ const char *const wpc_95_state::outputs_mm[52] = {
"s:Right eject", "s:Left slingshot", "s:Right slingshot", "s:Left jet", "s:Bottom jet", "s:Right jet", "s:Twr divert power", "s:Twr divert hold",
"f:L side lo (2)", "f:Left ramp (2)", "f:L side hi (2)", "f:R side hi (2)", "f:Right ramp (2)", "f:Cstl R side (2)", "f:R side lo (2)", "f:Moat (2)",
"f:Cstl L side (2)", "s:Tower lock post", "s:Right gate", "s:Left gate", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:L troll power", "s:L troll hold", "s:R troll power", "s:R troll hold", "s:Drawbridge motor", NULL, NULL, NULL,
+ "s:L troll power", "s:L troll hold", "s:R troll power", "s:R troll hold", "s:Drawbridge motor", nullptr, nullptr, nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Bottom playfield", "g:Middle playfield", "g:Top playfield"
};
@@ -1249,18 +1249,18 @@ const char *const wpc_95_state::lamps_mb[64] = {
"Left return", "Left outlane", "3/4 moon (2)", "R blue tgt", "L ramp arrow", "L primp", "L warm up", "L gargle",
"Guitar", "Drums", "Bass guitar", "Keyboard", "Microphone", "Saxophone", "C loop arrow 3", "C blue tgt",
"Creature", "Bride", "Frankenstein", "Mummy", "Wolfman", "Dracula", "Right outlane", "Shoot again",
- "L frank arm", "L frank leg", "Frank torso", "Frank head", "R frank leg", "R frank arm", "L loop arrow", NULL,
+ "L frank arm", "L frank leg", "Frank torso", "Frank head", "R frank leg", "R frank arm", "L loop arrow", nullptr,
"Muck", "Seaweed", "Algae", "Pond scum", "C loop arrow 2", "C loop arrow 1", "Launch button", "Start button"
};
const char *const wpc_95_state::outputs_mb[52] = {
- "s:Auto plunger", "s:Bride post", "s:Mummy coffin", NULL, "s:Left gate", "s:Right gate", NULL, "s:Ramp lock post",
+ "s:Auto plunger", "s:Bride post", "s:Mummy coffin", nullptr, "s:Left gate", "s:Right gate", nullptr, "s:Ramp lock post",
"s:Trough eject", "s:Left slignshot", "s:Right slingshot", "s:Left jet", "s:Right jet", "s:Bottom jet", "s:Left eject", "s:Right popper",
"f:Wolfman (2)", "f:Bride", "f:Frankenstein (2)", "f:Dracula coffin", "f:Creature (2)", "f:Jets/mummy (2)", "f:Right popper", "f:Frank arrow",
- "f:Rock CD", "f:Wolfman loop (2)", NULL, NULL, "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ "f:Rock CD", "f:Wolfman loop (2)", nullptr, nullptr, "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Bottom playfield", "g:Top R playfield", "g:Top L playfield"
};
@@ -1388,11 +1388,11 @@ const char *const wpc_95_state::lamps_nbaf[64] = {
const char *const wpc_95_state::outputs_nbaf[52] = {
"s:Autoplunger", "s:", "s:L ramp diverter", "s:R loop diverter", "s:Eject", "s:Loop gate", "s:Backbox flipper", "s:Ball catch mag",
"s:Trough eject", "s:Left sling", "s:Right sling", "s:Left jet", "s:Middle jet", "s:Right jet", "s:Pass right 2", "s:Pass left 2",
- "f:Eject kickout", "f:Left jet bumper", "f:Upper left", "f:Upper right", NULL, "f:Trophy insert", NULL, "f:Lower left/right",
+ "f:Eject kickout", "f:Left jet bumper", "f:Upper left", "f:Upper right", nullptr, "f:Trophy insert", nullptr, "f:Lower left/right",
"s:Pass right 1", "s:Pass left 3", "s:Pass right 3", "s:Pass left 4", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
"s:Shoot 1", "s:Shoot 2", "s:Shoot 3", "s:Shoot 4", "s:Motor enable", "s:Motor direction", "s:Shot clk enable", "s:Shot clk count",
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:String 1", "g:String 2", "g:String 3"
};
@@ -1506,9 +1506,9 @@ const char *const wpc_95_state::lamps_ngg[64] = {
const char *const wpc_95_state::outputs_ngg[52] = {
"s:Autofire", "s:Kickback", "s:Clubhouse kicker", "s:Left gofer up", "s:Right gofer up", "s:Jet popper", "s:Left eject", "s:Upper rgt eject",
"s:Trough eject", "s:Left slingshot", "s:Right slingshot", "s:Top jet", "s:Middle jet", "s:Bottom jet", "s:Left gofer down", "s:Rgt gofer down",
- "f:Jet flash", "f:Lower lft flash", "f:Left spinr flash", "f:Rgt spinr flash", "f:Lower rgt flash", NULL, NULL, "s:Underground pass",
+ "f:Jet flash", "f:Lower lft flash", "f:Left spinr flash", "f:Rgt spinr flash", "f:Lower rgt flash", nullptr, nullptr, "s:Underground pass",
"f:Sand trap flash", "f:Wheel flasher", "s:Left ramp down", "s:Right ramp down", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:UR flip power", "s:UR flip hold", "s:Ball launch ramp", NULL, "s:Wheel spin CCW", "s:Wheel spin CW", NULL, NULL,
+ "s:UR flip power", "s:UR flip hold", "s:Ball launch ramp", nullptr, "s:Wheel spin CCW", "s:Wheel spin CW", nullptr, nullptr,
"c:Coin meter",
"f:Upper right 1", "f:Upper right 2", "f:Upper right 3", "f:Upper pf right", "f:Upper pf left", "f:Upper left 3", "f:Upper left 2", "f:Upper left 1",
"g:Left side string", "g:Rgt side string", "g:Gofer spotlight"
@@ -1648,9 +1648,9 @@ const char *const wpc_95_state::outputs_sc[52] = {
"s:Trough eject", "s:Left slingshot", "s:Right slingshot", "s:Left jet", "s:Right jet", "s:Top jet", "s:Top L 3 bank", "s:Top R 3 bank",
"f:Back left", "f:Jets+Bk Rt (2)", "f:Right middle", "f:Right bottom", "f:Left middle", "f:Left bottom", "f:Light rope 1", "f:Light rope 2",
"s:Top popper eject", "s:Top light+motor", "s:Bot L 3 bank", "s:Bot R 3 bank", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:UR flip power", "s:UR flip hold", "s:Auto plunger", "s:Lockup release", NULL, NULL, NULL, NULL,
- NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ "s:UR flip power", "s:UR flip hold", "s:Auto plunger", "s:Lockup release", nullptr, nullptr, nullptr, nullptr,
+ nullptr,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Illum string 1", "g:Aux lamp 1 power", "g:Illum string 3"
};
@@ -1772,7 +1772,7 @@ const char *const wpc_95_state::lamps_ss[64] = {
"Ramp item", "Coffin mult item", "Leaper item", "Coffin spotlight", "Shoot again", "Lock lamp", "Left loop center", "Left loop upper",
"Laboratory item", "Crate item", "Skull item", "Web award 2", "Web award 3", "Web award 4", "Web award 5", "Web award 6",
"Web award 7", "Web award 8", "Web award 9", "Web award 10", "Web award 11", "Web award 12", "Web award 13", "Web award 14",
- "Web award 15", "Web award 16", "Web award 1", "Left skull lane", "Enter skull lane", "Right skull lane", NULL, "Start button"
+ "Web award 15", "Web award 16", "Web award 1", "Left skull lane", "Enter skull lane", "Right skull lane", nullptr, "Start button"
};
const char *const wpc_95_state::outputs_ss[52] = {
@@ -1780,9 +1780,9 @@ const char *const wpc_95_state::outputs_ss[52] = {
"s:Trough eject", "s:Left sling", "s:Right sling", "s:Center jet", "s:Upper jet", "s:Lower jet", "s:Upper slingshot", "s:Crate post hold",
"f:Top jet flasher", "f:Mid jet flasher", "f:Lower jet flash", "f:Playfield bolts", "f:Blue skull fl", "f:U right flasher", "f:Lft ramp flasher", "f:C left flasher",
"f:White skull fl", "f:Center TV", "f:U left flasher", "f:C right flasher", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:Lft divert power", "s:Lft divert hold", "f:L left flasher", "f:L right flasher", NULL, NULL, NULL, NULL,
- NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ "s:Lft divert power", "s:Lft divert hold", "f:L left flasher", "f:L right flasher", nullptr, nullptr, nullptr, nullptr,
+ nullptr,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Upper playfield", "g:Center playfield", "g:Lower playfield"
};
@@ -1907,7 +1907,7 @@ const char *const wpc_95_state::outputs_totan[52] = {
"f:Start tale fls", "f:Jet flashers", "f:Top loop flash", "f:Ramp flash", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
"s:Left div high", "s:Left div hold", "s:Vanish magnet", "s:Loop post div", "s:", "s:", "s:", "s:",
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Illum string 1", "g:Illum string 2", "g:Illum string 3"
};
@@ -2010,7 +2010,7 @@ INPUT_PORTS_END
const char *const wpc_95_state::lamps_cp[64] = {
"Heavy bag cmplt", "Jump rope cmplt", "Speed bag cmplt", "Right jab combo", "Lock", "Rgt start fight", "Right jackpot", "Right jab",
"Bout 1", "Bout 2", "Bout 3", "Bout 4", "Jump rope", "Left jab combo", "Cnt start fight", "Left jab",
- "Low blue arrow", "Left hook to win", "White arrow", "Thrown towel", "Cntr blue arrow", "Low yellow arrow", "Top yellow arrow", NULL,
+ "Low blue arrow", "Left hook to win", "White arrow", "Thrown towel", "Cntr blue arrow", "Low yellow arrow", "Top yellow arrow", nullptr,
"Left hook", "Body blow", "Right hook", "Center jackpot", "Left KO boxer", "Hurry up", "Heavy bag", "Right KO boxer",
"Jackpots cmplt", "Pub champion", "Won by KO", "Multiballs cmplt", "Training cmplt", "Speed bag", "Left jackpot", "Balcony",
"Ultimate chlng", "Poker night", "Extra ball", "Spittn gallery", "Lft start fight", "The corner", "Right return", "Rght second wind",
@@ -2025,7 +2025,7 @@ const char *const wpc_95_state::outputs_cp[52] = {
"s:Rope motor", "s:Toggle direction", "s:Motor on/off", "s:Lock pin", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
"s:Rope popper", "s:Ramp divertor", "s:Left speed bag", "s:Right speed bag", "s:", "s:", "s:", "s:",
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Illum string 1", "g:Illum string 2", "g:Illum string 3"
};
@@ -2133,24 +2133,24 @@ static INPUT_PORTS_START( cp )
INPUT_PORTS_END
const char *const wpc_95_state::lamps_ttt[64] = {
- "Hole \"5\"", "Hole \"6\"", "Hole \"7\"", "Hole \"8\"", "Hole \"9\"", NULL, NULL, NULL,
- NULL, "Grid \"1\"", "Grid \"2\"", "Grid \"3\"", "Grid \"4\"", "Grid \"5\"", "Grid \"6\"", "Grid \"7\"",
+ "Hole \"5\"", "Hole \"6\"", "Hole \"7\"", "Hole \"8\"", "Hole \"9\"", nullptr, nullptr, nullptr,
+ nullptr, "Grid \"1\"", "Grid \"2\"", "Grid \"3\"", "Grid \"4\"", "Grid \"5\"", "Grid \"6\"", "Grid \"7\"",
"Grid \"8\"", "Grid \"9\"", "Left post", "Right post", "Hole \"1\"", "Hole \"2\"", "Hole \"3\"", "Hole \"4\"",
- "Back panel 1", "Back panel 2", "Back panel 3", "Back panel 4", "Back panel 5", "Back panel 6", NULL, NULL,
+ "Back panel 1", "Back panel 2", "Back panel 3", "Back panel 4", "Back panel 5", "Back panel 6", nullptr, nullptr,
"Left sling up", "Left sling low", "Left ret left", "Left ret right", "Right sling up", "Right sling low", "Right ret right", "Right ret left",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, "Start button"
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, "Start button"
};
const char *const wpc_95_state::outputs_ttt[52] = {
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- "s:Kicker", "f:Fl left post", "f:Fl right post", "f:Fl insert 1", "f:Fl insert 2", "f:Fl insert 3", "f:Fl insert 4", NULL,
- "f:Left flasher", "f:Right flasher", "f:Fl left sling", "f:Fl left return", "f:Fl back panel 1", "f:Fl back panel 2", "f:Fl back panel 3", NULL,
- NULL, "s:Ticket lamp", "f:Fl right sling", "f:Fl right return", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:R post power", "s:R post hold", "s:L post power", "s:L post hold", NULL, NULL, NULL, NULL,
- NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
+ "s:Kicker", "f:Fl left post", "f:Fl right post", "f:Fl insert 1", "f:Fl insert 2", "f:Fl insert 3", "f:Fl insert 4", nullptr,
+ "f:Left flasher", "f:Right flasher", "f:Fl left sling", "f:Fl left return", "f:Fl back panel 1", "f:Fl back panel 2", "f:Fl back panel 3", nullptr,
+ nullptr, "s:Ticket lamp", "f:Fl right sling", "f:Fl right return", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
+ "s:R post power", "s:R post hold", "s:L post power", "s:L post hold", nullptr, nullptr, nullptr, nullptr,
+ nullptr,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Insert top", "g:Insert middle", "g:Insert bottom"
};
diff --git a/src/mame/drivers/wpc_dcs.cpp b/src/mame/drivers/wpc_dcs.cpp
index e6c2cefe1ef..e14ed6b0350 100644
--- a/src/mame/drivers/wpc_dcs.cpp
+++ b/src/mame/drivers/wpc_dcs.cpp
@@ -253,43 +253,43 @@ void wpc_dcs_state::init()
DRIVER_INIT_MEMBER(wpc_dcs_state, dm)
{
- lamp->set_names(NULL);
- out->set_names(NULL);
+ lamp->set_names(nullptr);
+ out->set_names(nullptr);
init();
}
DRIVER_INIT_MEMBER(wpc_dcs_state, ij)
{
- lamp->set_names(NULL);
- out->set_names(NULL);
+ lamp->set_names(nullptr);
+ out->set_names(nullptr);
init();
}
DRIVER_INIT_MEMBER(wpc_dcs_state, jd)
{
- lamp->set_names(NULL);
- out->set_names(NULL);
+ lamp->set_names(nullptr);
+ out->set_names(nullptr);
init();
}
DRIVER_INIT_MEMBER(wpc_dcs_state, pop)
{
- lamp->set_names(NULL);
- out->set_names(NULL);
+ lamp->set_names(nullptr);
+ out->set_names(nullptr);
init();
}
DRIVER_INIT_MEMBER(wpc_dcs_state, sttng)
{
- lamp->set_names(NULL);
- out->set_names(NULL);
+ lamp->set_names(nullptr);
+ out->set_names(nullptr);
init();
}
DRIVER_INIT_MEMBER(wpc_dcs_state, afv)
{
- lamp->set_names(NULL);
- out->set_names(NULL);
+ lamp->set_names(nullptr);
+ out->set_names(nullptr);
init();
}
diff --git a/src/mame/drivers/wpc_dot.cpp b/src/mame/drivers/wpc_dot.cpp
index 959b7a1daff..7f2aef3c0b6 100644
--- a/src/mame/drivers/wpc_dot.cpp
+++ b/src/mame/drivers/wpc_dot.cpp
@@ -657,7 +657,7 @@ ROM_START(tfdmd_l3)
ROM_REGION(0x20000, "code", 0)
ROM_LOAD("u6_l3.rom", 0x00000, 0x20000, CRC(bd43e28c) SHA1(df0a64a9fddbc59e3edde56ae12b68f76e44ba2e))
ROM_REGION(0x180000, "sound1", 0)
- ROM_FILL(0x0000,0x180000,0x00)
+ ROM_FILL(0x0000,0x180000,nullptr)
ROM_END
diff --git a/src/mame/drivers/wpc_s.cpp b/src/mame/drivers/wpc_s.cpp
index 2e197dd7121..20b4f565504 100644
--- a/src/mame/drivers/wpc_s.cpp
+++ b/src/mame/drivers/wpc_s.cpp
@@ -359,8 +359,8 @@ DRIVER_INIT_MEMBER(wpc_s_state, wcs)
DRIVER_INIT_MEMBER(wpc_s_state, tfs)
{
pic->set_serial("648 123456 12345 123");
- lamp->set_names(NULL);
- out->set_names(NULL);
+ lamp->set_names(nullptr);
+ out->set_names(nullptr);
init();
}
@@ -376,13 +376,13 @@ const char *const wpc_s_state::lamps_corv[64] = {
};
const char *const wpc_s_state::outputs_corv[54] = {
- "s:Trough eject", "s:ZR1 low rev gate", "s:Kickback", "s:Pit stop popper", "s:ZR1 up rev gate", NULL, "s:Knocker", "s:Route 66 kickout",
- "s:L slingshot", "s:R slingshot", "s:Left jet", "s:Bottom jet", "s:Right jet", NULL, "s:ZR1 lockup", "s:Loop gate",
+ "s:Trough eject", "s:ZR1 low rev gate", "s:Kickback", "s:Pit stop popper", "s:ZR1 up rev gate", nullptr, "s:Knocker", "s:Route 66 kickout",
+ "s:L slingshot", "s:R slingshot", "s:Left jet", "s:Bottom jet", "s:Right jet", nullptr, "s:ZR1 lockup", "s:Loop gate",
"s:Race direction", "s:L race enable", "s:R race enable", "f:Tenth corvette", "f:Jets", "f:R ramps", "f:U L flipper", "f:Catch me",
"f:ZR1 ramp", "f:ZR1 underside", "f:R rear panel", "f:R standup", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:Diverter power", "s:Diverter hold", "s:UL flip power", "s:UL flip hold", NULL, NULL, NULL, NULL,
- NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ "s:Diverter power", "s:Diverter hold", "s:UL flip power", "s:UL flip hold", nullptr, nullptr, nullptr, nullptr,
+ nullptr,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Upper left", "g:Upper right", "g:Lower left", "g:Lower right", "g:Back box title"
};
@@ -503,7 +503,7 @@ const char *const wpc_s_state::lamps_dh[64] = {
"Safehouse badge", "L ramp badge", "Sil 3 bullet", "Super jackpot", "L ramp generic", "Ramp start mball", "Magazine award", "Contraband",
"Safehouse arrow", "Sil 4 bullet", "Sil 5 bullet", "L loop HQ", "Whse start mball", "Feel lucky", "Right shootout", "Lite ransom",
"L loop generic", "Ricochet", "Extra ball", "HQ badge", "Ransom", "Sil 1 bullet", "HQ", "Sil 2 bullet",
- NULL, NULL, NULL, NULL, NULL, NULL, "Shhot again", "Sil 7 bullet",
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, "Shhot again", "Sil 7 bullet",
"Sil 8 bullet", "Left shootout", "Lite magna force", "L/R jets", "Bottom jet", "Body armor", "Extra ball", "Start"
};
@@ -512,9 +512,9 @@ const char *const wpc_s_state::outputs_dh[54] = {
"s:Left sling", "s:Right sling", "s:Left jet", "s:Middle jet", "s:Right jet", "s:Left popper", "s:Right diverter", "s:Trap door hold",
"f:Headquarters", "f:Top L popper", "f:Warehouse", "s:Gun motor", "f:Gun loaded", "f:Right ramp", "f:Right back", "f:Left back",
"s:Drop reset", "s:Top L popper", "s:Left diverter", "s:Right loop gate", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:UR flip power", "s:UR flip hold", "s:R loop magnet", "s:Left loop gate", NULL, NULL, NULL, NULL,
+ "s:UR flip power", "s:UR flip hold", "s:R loop magnet", "s:Left loop gate", nullptr, nullptr, nullptr, nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Right string", "g:Left string", "g:Backbox title", "g:Backbox face", "g:Bottom string"
};
@@ -634,19 +634,19 @@ const char *const wpc_s_state::lamps_i500[64] = {
"Hit the \"wall\"", "Hit \"the\" wall", "\"Hit\" the wall", "Lft ramp jackpot", "Increase boost", "Souvenir lamp", "Left flip lane", "Left outlane",
"Super jets", "Turbo boost", "Checkered flag", "Go for the pole", "Quick pit", "3X playfield", "UR flip wrench", "Right flip lane",
"Dueling drivers", "Super lightups", "Caution flag", "Extra ball flag", "Wrong turn", "Gasoline alley", "Right outlane", "Shoot again",
- "Change setup", "Award speedway", "Hit the wall", "Rt ramp jackpot", "Pit stop", "Fast laps", NULL, NULL,
+ "Change setup", "Award speedway", "Hit the wall", "Rt ramp jackpot", "Pit stop", "Fast laps", nullptr, nullptr,
"Stnd1 lower RT", "Stnd1 upper RT", "Stnd1 upper left", "Stnd1 lower left", "Stnd2 lower RT", "Stnd2 upper RT", "Stnd2 upper left", "Stnd2 lower left",
- "Stnd3 lower RT", "Stnd3 upper RT", "Stnd3 upper left", "Stnd3 lower left", NULL, "Launch button", "Buy-in button", "Start button"
+ "Stnd3 lower RT", "Stnd3 upper RT", "Stnd3 upper left", "Stnd3 lower left", nullptr, "Launch button", "Buy-in button", "Start button"
};
const char *const wpc_s_state::outputs_i500[54] = {
- "s:Auto plunger", "s:Upper popper", "s:Upper eject", "s:Lower eject", "s:Turbo popper", NULL, "s:Knocker", "s:Left jet",
- "s:Right jet", "s:Center jet", "s:Left sling", "s:Right sling", "s:Trough", NULL, "f:Upper popper fls", "f:Top left corner",
+ "s:Auto plunger", "s:Upper popper", "s:Upper eject", "s:Lower eject", "s:Turbo popper", nullptr, "s:Knocker", "s:Left jet",
+ "s:Right jet", "s:Center jet", "s:Left sling", "s:Right sling", "s:Trough", nullptr, "f:Upper popper fls", "f:Top left corner",
"f:Top right corner", "s:Race track motor", "f:Orange car", "f:Yellow car", "f:Blue car", "f:Green car", "f:Lft jet flasher", "f:Rt jet flasher",
"f:Cntr jet flasher", "f:Right side", "f:Left side (2)", "f:Rt ramp enter", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:UR flip power", "s:UR flip hold", "s:Diverter power", "s:Diverter hold", NULL, NULL, NULL, NULL,
+ "s:UR flip power", "s:UR flip hold", "s:Diverter power", "s:Diverter hold", nullptr, nullptr, nullptr, nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Upper lft plyfld", "g:Upper rt plyfld", "g:Lower playfield", "g:Backbox", "g:Title-coindoor"
};
@@ -765,13 +765,13 @@ const char *const wpc_s_state::lamps_jb[64] = {
};
const char *const wpc_s_state::outputs_jb[54] = {
- "s:Ball release", NULL, "s:Game saucer", "s:Drop targets", "s:Right eject hole", "s:Raise ramp", "s:Knocker", "s:Left eject hole",
+ "s:Ball release", nullptr, "s:Game saucer", "s:Drop targets", "s:Right eject hole", "s:Raise ramp", "s:Knocker", "s:Left eject hole",
"s:Left slingshot", "s:Right slingshot", "s:Lower jet bumper", "s:Left jet bumber", "s:Upper jet bumper", "s:Drop ramp", "f:Right visor", "f:Left visor",
"f:Center visor", "f:Pinbot face", "f:Jet bumpers", "f:Lower left", "f:Mid left", "f:Lower right", "f:Back panel 1 (L)", "f:Back panel 2",
- "f:Back panel 3", "f:Back panel 4", "f:Back panel 5 (R)", NULL, "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ "f:Back panel 3", "f:Back panel 4", "f:Back panel 5 (R)", nullptr, "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Playfield lower", "g:Playfield left", "g:Playfield upper", "g:Playfield right", "g:Insert"
};
@@ -874,7 +874,7 @@ INPUT_PORTS_END
const char *const wpc_s_state::lamps_jm[64] = {
"Mode ready", "Download", "Access code 2", "Access code 1", "Upload", "Left jet lane", "Middle jet lane", "Right jet lane",
"Power down", "NAS cure", "R ramp block 4", "Sector 6", "R ramp block 2", "Hold bonus", "R standup R blk", "R standup L blk",
- "L ramp block 4", "Extra ball", "Sector 2", "L ramp block 2", "L ramp block 1", "Sector 1", NULL, "Shoot again",
+ "L ramp block 4", "Extra ball", "Sector 2", "L ramp block 2", "L ramp block 1", "Sector 1", nullptr, "Shoot again",
"L loop top arrow", "L standup arrow", "R ramp block 1", "Lite spinner", "Big points", "Gigabytes", "Lite extra ball", "Quick multiball",
"Cyber matrix 13", "Cyber matrix 23", "Cyber matrix 33", "Right outlane", "Bonus held", "Bonus 4x", "Bonus 3x", "Bonus 2x",
"Cyber matrix 12", "Cyber matrix 22", "Cyber matrix 32", "Right flip lane", "Sector 5", "Spinner millions", "Cyber lock 2", "Inner loop top",
@@ -883,13 +883,13 @@ const char *const wpc_s_state::lamps_jm[64] = {
};
const char *const wpc_s_state::outputs_jm[54] = {
- "s:Trough eject", "s:Autoplunger", "s:Popper", NULL, "s:Clear matrix", "s:Hand magnet", "s:Knocker", NULL,
+ "s:Trough eject", "s:Autoplunger", "s:Popper", nullptr, "s:Clear matrix", "s:Hand magnet", "s:Knocker", nullptr,
"s:Left sling", "s:Right sling", "s:Left jet", "s:Bottom jet", "s:Right jet", "s:Crazy Bob's", "s:Drop target up", "s:Drop target down",
"f:Jets", "f:Crazy Bob's", "f:Left sling", "f:Right sling", "s:X mot direction", "s:X motor enable", "s:Y mot direction", "s:Y motor enable",
"f:Left ramp", "f:Right ramp", "f:Hand popper", "f:R backpanel", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:L diverter power", "s:L diverter hold", "s:R diverter power", "s:R diverter hold", NULL, NULL, NULL, NULL,
+ "s:L diverter power", "s:L diverter hold", "s:R diverter power", "s:R diverter hold", nullptr, nullptr, nullptr, nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:String 1", "g:String 2", "g:String 3", "g:String 4", "g:String 5"
};
@@ -1001,7 +1001,7 @@ const char *const wpc_s_state::lamps_nf[64] = {
"No fear", "20 million", "Light extra ball", "R over the edge", "Air", "Snow", "Fear fest", "Meet your maker",
"Skull", "R track", "Center jackpot", "Extra ball", "Start challenge", "Center lock", "R autofire (2)", "L hurry up",
"L track", "1st", "2nd", "3rd", "Skydive", "Drop jackpot", "Drop lock", "L autofire (2)",
- "Raceway", "L ramp \"turn\"", "Super spin", "L ramp \"start\"", "L ramp \"win!\"", "Hill climb", "Screamer", NULL,
+ "Raceway", "L ramp \"turn\"", "Super spin", "L ramp \"start\"", "L ramp \"win!\"", "Hill climb", "Screamer", nullptr,
"Tube", "Video mode", "R ramp \"win!\"", "R ramp \"turn\"", "R ramp \"start\"", "L flipper lane", "L outlane", "Kickback",
"Light kb top", "Light kb bottom", "R flipper lane", "R outlane", "Hairpin", "Downhill", "Summit", "R hurry up",
"Shoot again", "L skull eye", "Jump now", "Super jackpot", "R skull eye", "Ball launch", "Buy-in button", "Start button"
@@ -1009,12 +1009,12 @@ const char *const wpc_s_state::lamps_nf[64] = {
const char *const wpc_s_state::outputs_nf[54] = {
"s:Right popper", "s:Auto plunger", "s:Right magnet", "s:Kickback", "s:Center magnet", "s:Left magnet", "s:Knocker", "s:Drop target down",
- NULL, "s:Right slingshot", "s:Left slingshot", "s:Drop target up", NULL, "s:Trough", "s:Eject", "s:Skull mouth",
+ nullptr, "s:Right slingshot", "s:Left slingshot", "s:Drop target up", nullptr, "s:Trough", "s:Eject", "s:Skull mouth",
"f:Fls(2) flip rtrn", "f:Fls spinner", "f:Fls no fear", "f:Fls(3) rt ramp", "f:Fls(2) skull", "f:Fls bkbox expl", "f:Fls(3) left ramp", "f:Fls top left",
"f:Fls(2) auto-fire", "f:Fls bkbox L top", "f:Fls bkbox R top", "f:Fls rt popper", "s:R flip power", "s:R flip hold", "s:L flip power", "s:L flip hold",
- "s:UR flip power", "s:UR flip hold", NULL, NULL, NULL, NULL, NULL, NULL,
+ "s:UR flip power", "s:UR flip hold", nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Playfield top", "g:Playfield right", "g:Playfield left", "g:Insert title", "g:Insert bkground"
};
@@ -1132,7 +1132,7 @@ const char *const wpc_s_state::outputs_rs[54] = {
"s:Top jet", "s:Left jet", "s:Right jet", "s:Shaker motor", "s:", "s:", "s:", "s:",
"s:", "s:", "s:", "s:", "f:Little flipper", "f:Left ramp", "f:Back white", "f:Back yellow",
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:Playfld/insert 1", "g:Playfld/insert 2", "g:Playfld/insert 3", "g:Right playfield", "g:Left playfield"
};
@@ -1257,7 +1257,7 @@ const char *const wpc_s_state::outputs_fs[54] = {
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:", "g:", "g:", "g:", "g:"
};
@@ -1382,7 +1382,7 @@ const char *const wpc_s_state::outputs_ts[54] = {
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:", "g:", "g:", "g:", "g:"
};
@@ -1507,7 +1507,7 @@ const char *const wpc_s_state::outputs_tom[54] = {
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:", "g:", "g:", "g:", "g:"
};
@@ -1632,7 +1632,7 @@ const char *const wpc_s_state::outputs_wd[54] = {
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:", "g:", "g:", "g:", "g:"
};
@@ -1757,7 +1757,7 @@ const char *const wpc_s_state::outputs_wcs[54] = {
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:", "s:", "s:", "s:", "s:", "s:", "s:", "s:",
"s:Coin meter",
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
"g:", "g:", "g:", "g:", "g:"
};
diff --git a/src/mame/drivers/x07.cpp b/src/mame/drivers/x07.cpp
index a745bf2f2f8..08daaa4d696 100644
--- a/src/mame/drivers/x07.cpp
+++ b/src/mame/drivers/x07.cpp
@@ -1052,7 +1052,7 @@ DEVICE_IMAGE_LOAD_MEMBER( x07_state, x07_card )
UINT32 size = m_card->common_get_size("rom");
// check card type
- if (image.software_entry() != NULL)
+ if (image.software_entry() != nullptr)
{
const char *card_type = image.get_feature("card_type");
diff --git a/src/mame/drivers/x1.cpp b/src/mame/drivers/x1.cpp
index 796f676dab0..f495eab522d 100644
--- a/src/mame/drivers/x1.cpp
+++ b/src/mame/drivers/x1.cpp
@@ -761,7 +761,7 @@ void x1_state::cmt_command( UINT8 cmd )
*/
m_cmt_current_cmd = cmd;
- if(m_cassette->get_image() == NULL) //avoid a crash if a disk game tries to access this
+ if(m_cassette->get_image() == nullptr) //avoid a crash if a disk game tries to access this
return;
switch(cmd)
@@ -810,7 +810,7 @@ void x1_state::cmt_command( UINT8 cmd )
TIMER_DEVICE_CALLBACK_MEMBER(x1_state::x1_cmt_wind_timer)
{
- if(m_cassette->get_image() == NULL) //avoid a crash if a disk game tries to access this
+ if(m_cassette->get_image() == nullptr) //avoid a crash if a disk game tries to access this
return;
switch(m_cmt_current_cmd)
@@ -922,7 +922,7 @@ WRITE8_MEMBER( x1_state::x1_sub_io_w )
// bit 1 = tape inserted
// bit 2 = record status (1=OK, 0=write protect)
m_sub_val[0] = 0x05;
- if(m_cassette->get_image() != NULL)
+ if(m_cassette->get_image() != nullptr)
m_sub_val[0] |= 0x02;
m_sub_cmd_length = 1;
logerror("CMT: Command 0xEB received, returning 0x%02x.\n",m_sub_val[0]);
@@ -1023,7 +1023,7 @@ READ8_MEMBER( x1_state::x1_fdc_r )
WRITE8_MEMBER( x1_state::x1_fdc_w )
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
switch(offset+0xff8)
{
@@ -2231,7 +2231,7 @@ static const z80_daisy_config x1_daisy[] =
{
{ "x1kb" },
{ "ctc" },
- { NULL }
+ { nullptr }
};
static const z80_daisy_config x1turbo_daisy[] =
@@ -2240,7 +2240,7 @@ static const z80_daisy_config x1turbo_daisy[] =
{ "ctc" },
{ "dma" },
{ "sio" },
- { NULL }
+ { nullptr }
};
/*************************************
diff --git a/src/mame/drivers/x1twin.cpp b/src/mame/drivers/x1twin.cpp
index 3877aaa1510..b7ff8e3323e 100644
--- a/src/mame/drivers/x1twin.cpp
+++ b/src/mame/drivers/x1twin.cpp
@@ -391,7 +391,7 @@ static const z80_daisy_config x1_daisy[] =
{
{ "x1kb" },
{ "ctc" },
- { NULL }
+ { nullptr }
};
static SLOT_INTERFACE_START( x1_floppies )
@@ -526,7 +526,7 @@ ROM_START( x1twin )
ROM_REGION(0x1800, "cgrom", 0)
ROM_LOAD("ank8.rom", 0x00000, 0x00800, CRC(e3995a57) SHA1(1c1a0d8c9f4c446ccd7470516b215ddca5052fb2) )
- ROM_COPY("font", 0x00000, 0x00800, 0x1000 )
+ ROM_COPY("font", nullptr, 0x00800, 0x1000 )
ROM_REGION(0x20000, "kanji", ROMREGION_ERASEFF)
diff --git a/src/mame/drivers/xain.cpp b/src/mame/drivers/xain.cpp
index 5430585c9b8..ff10801f735 100644
--- a/src/mame/drivers/xain.cpp
+++ b/src/mame/drivers/xain.cpp
@@ -268,7 +268,7 @@ WRITE8_MEMBER(xain_state::m68705_w)
m_from_main = data;
m_mcu_accept = 0;
- if (m_mcu != NULL)
+ if (m_mcu != nullptr)
m_mcu->set_input_line(0, ASSERT_LINE);
}
@@ -358,7 +358,7 @@ CUSTOM_INPUT_MEMBER(xain_state::mcu_status_r)
{
UINT8 res = 0;
- if (m_mcu != NULL)
+ if (m_mcu != nullptr)
{
if (m_mcu_ready == 1)
res |= 0x01;
@@ -378,7 +378,7 @@ READ8_MEMBER(xain_state::mcu_comm_reset_r)
m_mcu_ready = 1;
m_mcu_accept = 1;
- if (m_mcu != NULL)
+ if (m_mcu != nullptr)
m_mcu->set_input_line(0, CLEAR_LINE);
return 0xff;
diff --git a/src/mame/drivers/xerox820.cpp b/src/mame/drivers/xerox820.cpp
index 172d1d2cd3a..891cbc7e65d 100644
--- a/src/mame/drivers/xerox820.cpp
+++ b/src/mame/drivers/xerox820.cpp
@@ -264,7 +264,7 @@ WRITE8_MEMBER( xerox820_state::kbpio_pa_w )
*/
/* 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();
@@ -371,7 +371,7 @@ static const z80_daisy_config xerox820_daisy_chain[] =
{ Z80PIO_KB_TAG },
{ Z80PIO_GP_TAG },
{ Z80CTC_TAG },
- { NULL }
+ { nullptr }
};
/* WD1771 Interface */
@@ -586,10 +586,10 @@ static MACHINE_CONFIG_START( xerox820, xerox820_state )
MCFG_Z80DART_OUT_RTSB_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
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(Z80SIO_TAG, z80sio0_device, rxa_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, z80sio0_device, rxb_w))
MCFG_DEVICE_ADD(COM8116_TAG, COM8116, XTAL_5_0688MHz)
@@ -673,10 +673,10 @@ static MACHINE_CONFIG_START( xerox820ii, xerox820ii_state )
MCFG_Z80DART_OUT_RTSB_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
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(Z80SIO_TAG, z80sio0_device, rxa_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, z80sio0_device, rxb_w))
MCFG_DEVICE_ADD(COM8116_TAG, COM8116, XTAL_5_0688MHz)
diff --git a/src/mame/drivers/xor100.cpp b/src/mame/drivers/xor100.cpp
index ae1b3fbe8be..3d85c372c7d 100644
--- a/src/mame/drivers/xor100.cpp
+++ b/src/mame/drivers/xor100.cpp
@@ -214,7 +214,7 @@ WRITE8_MEMBER( xor100_state::fdc_dcont_w )
*/
// 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();
@@ -523,7 +523,7 @@ static MACHINE_CONFIG_START( xor100, xor100_state )
MCFG_I8251_DTR_HANDLER(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_dtr))
MCFG_I8251_RTS_HANDLER(DEVWRITELINE(RS232_A_TAG, rs232_port_device, write_rts))
- 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(I8251_A_TAG, i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE(I8251_A_TAG, i8251_device, write_dsr))
@@ -556,8 +556,8 @@ static MACHINE_CONFIG_START( xor100, xor100_state )
MCFG_FD1795_ADD(WD1795_TAG, XTAL_8MHz/4)
MCFG_FLOPPY_DRIVE_ADD(WD1795_TAG":0", xor100_floppies, "8ssdd", floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD(WD1795_TAG":1", xor100_floppies, "8ssdd", floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(WD1795_TAG":2", xor100_floppies, NULL, floppy_image_device::default_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(WD1795_TAG":3", xor100_floppies, NULL, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(WD1795_TAG":2", xor100_floppies, nullptr, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(WD1795_TAG":3", xor100_floppies, nullptr, floppy_image_device::default_floppy_formats)
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_devices, "printer")
MCFG_CENTRONICS_ACK_HANDLER(DEVWRITELINE(I8255A_TAG, i8255_device, pc4_w))
@@ -569,16 +569,16 @@ static MACHINE_CONFIG_START( xor100, xor100_state )
// S-100
MCFG_S100_BUS_ADD()
MCFG_S100_RDY_CALLBACK(INPUTLINE(Z80_TAG, Z80_INPUT_LINE_WAIT))
- MCFG_S100_SLOT_ADD("s100_1", xor100_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_2", xor100_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_3", xor100_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_4", xor100_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_5", xor100_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_6", xor100_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_7", xor100_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_8", xor100_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_9", xor100_s100_cards, NULL)
- MCFG_S100_SLOT_ADD("s100_10", xor100_s100_cards, NULL)
+ MCFG_S100_SLOT_ADD("s100_1", xor100_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_2", xor100_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_3", xor100_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_4", xor100_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_5", xor100_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_6", xor100_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_7", xor100_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_8", xor100_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_9", xor100_s100_cards, nullptr)
+ MCFG_S100_SLOT_ADD("s100_10", xor100_s100_cards, nullptr)
/* internal ram */
MCFG_RAM_ADD(RAM_TAG)
diff --git a/src/mame/drivers/xtom3d.cpp b/src/mame/drivers/xtom3d.cpp
index eba0bf581b4..6e014064a85 100644
--- a/src/mame/drivers/xtom3d.cpp
+++ b/src/mame/drivers/xtom3d.cpp
@@ -404,8 +404,8 @@ static MACHINE_CONFIG_START( xtom3d, xtom3d_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)
/* video hardware */
MCFG_FRAGMENT_ADD( pcvideo_vga )
diff --git a/src/mame/drivers/z100.cpp b/src/mame/drivers/z100.cpp
index 016c86b4334..721ec1e10cf 100644
--- a/src/mame/drivers/z100.cpp
+++ b/src/mame/drivers/z100.cpp
@@ -168,7 +168,7 @@ public:
m_floppy3(*this, "z207_fdc:3"),
m_crtc(*this, "crtc"),
m_palette(*this, "palette"),
- m_floppy(NULL)
+ m_floppy(nullptr)
{ }
required_device<cpu_device> m_maincpu;
diff --git a/src/mame/drivers/z88.cpp b/src/mame/drivers/z88.cpp
index 4dcef312899..a5ac22c648d 100644
--- a/src/mame/drivers/z88.cpp
+++ b/src/mame/drivers/z88.cpp
@@ -656,13 +656,13 @@ static MACHINE_CONFIG_START( z88, z88_state )
// cartridges
MCFG_DEVICE_ADD("slot1", Z88CART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(z88_cart, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(z88_cart, nullptr, false)
MCFG_Z88CART_SLOT_OUT_FLP_CB(DEVWRITELINE("blink", upd65031_device, flp_w))
MCFG_DEVICE_ADD("slot2", Z88CART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(z88_cart, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(z88_cart, nullptr, false)
MCFG_Z88CART_SLOT_OUT_FLP_CB(DEVWRITELINE("blink", upd65031_device, flp_w))
MCFG_DEVICE_ADD("slot3", Z88CART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(z88_cart, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(z88_cart, nullptr, false)
MCFG_Z88CART_SLOT_OUT_FLP_CB(DEVWRITELINE("blink", upd65031_device, flp_w))
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/z9001.cpp b/src/mame/drivers/z9001.cpp
index 91ab13e2e03..3ef04b6520c 100644
--- a/src/mame/drivers/z9001.cpp
+++ b/src/mame/drivers/z9001.cpp
@@ -98,7 +98,7 @@ static const z80_daisy_config z9001_daisy_chain[] =
{ "z80pio2" },
{ "z80pio1" },
{ "z80ctc" },
- { NULL }
+ { nullptr }
};
//Bits0,1 not connected; 2,3,4,5 go to a connector; 6 goes to 'graphics' LED; 7 goes to speaker.
diff --git a/src/mame/drivers/zaxxon.cpp b/src/mame/drivers/zaxxon.cpp
index 8aaeb410837..e17ab41afe6 100644
--- a/src/mame/drivers/zaxxon.cpp
+++ b/src/mame/drivers/zaxxon.cpp
@@ -530,12 +530,12 @@ static INPUT_PORTS_START( zaxxon )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START2 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED )
- PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_r, (void *)0)
+ PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_r, (void *)nullptr)
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_r, (void *)1)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_r, (void *)2)
PORT_START("COIN")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_inserted, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_inserted, (void *)nullptr)
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_inserted, (void *)1)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_inserted, (void *)2)
@@ -691,7 +691,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( razmataz )
PORT_START("SW00")
- PORT_BIT( 0xff, 0x00, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,razmataz_dial_r, (void *)0)
+ PORT_BIT( 0xff, 0x00, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,razmataz_dial_r, (void *)nullptr)
PORT_START("DIAL.0")
PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) PORT_RESET PORT_PLAYER(1)
@@ -719,12 +719,12 @@ static INPUT_PORTS_START( razmataz )
PORT_START("SW100")
PORT_BIT( 0x1f, IP_ACTIVE_HIGH, IPT_UNUSED )
- PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_r, (void *)0)
+ PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_r, (void *)nullptr)
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_r, (void *)1)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_r, (void *)2)
PORT_START("COIN")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_inserted, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_inserted, (void *)nullptr)
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_inserted, (void *)1)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, zaxxon_state,zaxxon_coin_inserted, (void *)2)
@@ -784,7 +784,7 @@ static INPUT_PORTS_START( ixion )
PORT_INCLUDE(zaxxon)
PORT_MODIFY("SW00")
- PORT_BIT( 0xff, 0x00, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,razmataz_dial_r, (void *)0)
+ PORT_BIT( 0xff, 0x00, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, zaxxon_state,razmataz_dial_r, (void *)nullptr)
PORT_START("DIAL.0")
PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) PORT_RESET
diff --git a/src/mame/drivers/zn.cpp b/src/mame/drivers/zn.cpp
index d6734c5c6df..880f3a4ef0d 100644
--- a/src/mame/drivers/zn.cpp
+++ b/src/mame/drivers/zn.cpp
@@ -338,7 +338,7 @@ static const struct
{ "tps", mg01, mg02 },
{ "taitofx1", tt01, tt02 },
{ "vspsx", kn01, kn02 },
- { NULL, NULL, NULL }
+ { nullptr, nullptr, nullptr }
};
READ8_MEMBER(zn_state::znsecsel_r)
@@ -446,7 +446,7 @@ void zn_state::driver_start()
int n_game;
n_game = 0;
- while( zn_config_table[ n_game ].s_name != NULL )
+ while( zn_config_table[ n_game ].s_name != nullptr )
{
if( strcmp( machine().system().name, zn_config_table[ n_game ].s_name ) == 0 )
{
@@ -1505,7 +1505,7 @@ static MACHINE_CONFIG_DERIVED( coh1000w, zn1_2mb_vram )
MCFG_RAM_MODIFY("maincpu:ram")
MCFG_RAM_DEFAULT_SIZE("8M")
- MCFG_VT83C461_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_VT83C461_ADD("ide", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(DEVWRITELINE("maincpu:irq", psxirq_device, intin10))
MCFG_PSX_DMA_CHANNEL_READ( "maincpu", 5, psx_dma_read_delegate( FUNC( zn_state::atpsx_dma_read ), (zn_state *) owner ) )
MCFG_PSX_DMA_CHANNEL_WRITE( "maincpu", 5, psx_dma_write_delegate( FUNC( zn_state::atpsx_dma_write ), (zn_state *) owner ) )
@@ -2153,7 +2153,7 @@ static MACHINE_CONFIG_DERIVED( jdredd, zn1_2mb_vram )
MCFG_DEVICE_MODIFY("gpu")
MCFG_PSXGPU_VBLANK_CALLBACK(vblank_state_delegate( FUNC( zn_state::jdredd_vblank ), (zn_state *) owner))
- 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(DEVWRITELINE("maincpu:irq", psxirq_device, intin10))
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/zorba.cpp b/src/mame/drivers/zorba.cpp
index 2b0a9aed58d..647ef396c0f 100644
--- a/src/mame/drivers/zorba.cpp
+++ b/src/mame/drivers/zorba.cpp
@@ -265,7 +265,7 @@ WRITE8_MEMBER( zorba_state::pia0_porta_w )
m_beep->set_state(BIT(data, 7));
m_fdc->dden_w(BIT(data, 6));
- 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();
diff --git a/src/mame/includes/apollo.h b/src/mame/includes/apollo.h
index 79b884ba218..bccc6cea044 100644
--- a/src/mame/includes/apollo.h
+++ b/src/mame/includes/apollo.h
@@ -371,9 +371,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 "ani,bin"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
DECLARE_WRITE16_MEMBER(write);
DECLARE_READ16_MEMBER(read);
@@ -615,7 +615,7 @@ public:
private:
running_machine &machine() const
{
- assert(m_machine != NULL);
+ assert(m_machine != nullptr);
return *m_machine;
}
diff --git a/src/mame/includes/bullet.h b/src/mame/includes/bullet.h
index 390aac07ad8..701346156c7 100644
--- a/src/mame/includes/bullet.h
+++ b/src/mame/includes/bullet.h
@@ -46,7 +46,7 @@ public:
m_floppy5(*this, MB8877_TAG":5"),
m_floppy6(*this, MB8877_TAG":6"),
m_floppy7(*this, MB8877_TAG":7"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_centronics(*this, CENTRONICS_TAG),
m_rom(*this, Z80_TAG),
m_sw1(*this, "SW1"),
diff --git a/src/mame/includes/bw2.h b/src/mame/includes/bw2.h
index 563ce4b4acd..624a086862f 100644
--- a/src/mame/includes/bw2.h
+++ b/src/mame/includes/bw2.h
@@ -43,7 +43,7 @@ public:
m_ram(*this, RAM_TAG),
m_floppy0(*this, WD2797_TAG":0"),
m_floppy1(*this, WD2797_TAG":1"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_rom(*this, Z80_TAG),
m_y0(*this, "Y0"),
m_y1(*this, "Y1"),
diff --git a/src/mame/includes/chihiro.h b/src/mame/includes/chihiro.h
index c91a9a23fdb..a61383cd8ca 100644
--- a/src/mame/includes/chihiro.h
+++ b/src/mame/includes/chihiro.h
@@ -228,13 +228,13 @@ public:
colorformat_rendertarget = nv2a_renderer::NV2A_COLOR_FORMAT_A8R8G8B8;
bytespixel_rendertarget = 4;
antialias_control = 0;
- rendertarget = NULL;
- depthbuffer = NULL;
- displayedtarget = NULL;
+ rendertarget = nullptr;
+ depthbuffer = nullptr;
+ displayedtarget = nullptr;
puller_channel = 0;
puller_waiting = 0;
debug_grab_texttype = -1;
- debug_grab_textfile = NULL;
+ debug_grab_textfile = nullptr;
waitvblank_used = 1;
memset(vertex_attribute_words, 0, sizeof(vertex_attribute_words));
memset(vertex_attribute_offset, 0, sizeof(vertex_attribute_offset));
diff --git a/src/mame/includes/decocass.h b/src/mame/includes/decocass.h
index d395ab02aec..b0f6161a7ce 100644
--- a/src/mame/includes/decocass.h
+++ b/src/mame/includes/decocass.h
@@ -35,7 +35,7 @@ public:
m_screen(*this, "screen"),
m_palette(*this, "palette")
{
- m_type1_map = 0;
+ m_type1_map = nullptr;
}
/* devices */
diff --git a/src/mame/includes/fm7.h b/src/mame/includes/fm7.h
index 797d19657f0..00698e8cf74 100644
--- a/src/mame/includes/fm7.h
+++ b/src/mame/includes/fm7.h
@@ -135,7 +135,7 @@ public:
m_fdc(*this, "fdc"),
m_floppy0(*this, "fdc:0"),
m_floppy1(*this, "fdc:1"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_kanji(*this, "kanji1"),
m_key1(*this, "key1"),
m_key2(*this, "key2"),
diff --git a/src/mame/includes/hp48.h b/src/mame/includes/hp48.h
index 70780f2817d..e6a9533e004 100644
--- a/src/mame/includes/hp48.h
+++ b/src/mame/includes/hp48.h
@@ -191,9 +191,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 "crd"; }
- 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();
diff --git a/src/mame/includes/jaguar.h b/src/mame/includes/jaguar.h
index f57ebdd135c..3a85ceb106d 100644
--- a/src/mame/includes/jaguar.h
+++ b/src/mame/includes/jaguar.h
@@ -49,14 +49,14 @@ public:
m_using_cart(false),
m_misc_control_data(0),
m_eeprom_enable(true),
- m_gpu_jump_address(NULL),
+ m_gpu_jump_address(nullptr),
m_gpu_command_pending(false),
m_gpu_spin_pc(0),
- m_main_speedup(NULL),
+ m_main_speedup(nullptr),
m_main_speedup_hits(0),
m_main_speedup_last_cycles(0),
m_main_speedup_max_cycles(0),
- m_main_gpu_wait(NULL),
+ m_main_gpu_wait(nullptr),
m_joystick_data(0),
m_eeprom_bit_count(0),
m_protection_check(0) ,
diff --git a/src/mame/includes/msx.h b/src/mame/includes/msx.h
index d849693ec14..c52d8d7bef7 100644
--- a/src/mame/includes/msx.h
+++ b/src/mame/includes/msx.h
@@ -153,7 +153,7 @@ public:
{
for (int page = 0; page < 4; page++ )
{
- m_all_slots[prim][sec][page] = NULL;
+ m_all_slots[prim][sec][page] = nullptr;
}
}
}
@@ -210,7 +210,7 @@ public:
DECLARE_WRITE_LINE_MEMBER(msx_irq_source3) { msx_irq_source(3, state); } // sometimes expansion slot
protected:
- virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const { return (spacenum == 0) ? &m_switched_device_as_config : NULL; }
+ virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const { return (spacenum == 0) ? &m_switched_device_as_config : nullptr; }
private:
required_device<z80_device> m_maincpu;
diff --git a/src/mame/includes/namcos2.h b/src/mame/includes/namcos2.h
index 5baea40c092..47c76014fa7 100644
--- a/src/mame/includes/namcos2.h
+++ b/src/mame/includes/namcos2.h
@@ -105,7 +105,7 @@ public:
m_gametype(0),
m_c169_roz_videoram(*this, "rozvideoram", 0),
m_c169_roz_gfxbank(0),
- m_c169_roz_mask(NULL),
+ m_c169_roz_mask(nullptr),
m_c355_obj_gfxbank(0),
m_c355_obj_palxor(0),
m_maincpu(*this, "maincpu"),
diff --git a/src/mame/includes/osborne1.h b/src/mame/includes/osborne1.h
index be11edb2927..b84cf506787 100644
--- a/src/mame/includes/osborne1.h
+++ b/src/mame/includes/osborne1.h
@@ -54,10 +54,10 @@ public:
m_bank_0xxx(*this, "bank_0xxx"),
m_bank_1xxx(*this, "bank_1xxx"),
m_bank_fxxx(*this, "bank_fxxx"),
- m_video_timer(NULL),
- m_p_chargen(NULL),
- m_tilemap(NULL),
- m_acia_rxc_txc_timer(NULL)
+ m_video_timer(nullptr),
+ m_p_chargen(nullptr),
+ m_tilemap(nullptr),
+ m_acia_rxc_txc_timer(nullptr)
{ }
diff --git a/src/mame/includes/sage2.h b/src/mame/includes/sage2.h
index a8138e3c716..49a2b6249f8 100644
--- a/src/mame/includes/sage2.h
+++ b/src/mame/includes/sage2.h
@@ -39,7 +39,7 @@ public:
m_ram(*this, RAM_TAG),
m_floppy0(*this, UPD765_TAG ":0"),
m_floppy1(*this, UPD765_TAG ":1"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_centronics(*this, CENTRONICS_TAG),
m_ieee488(*this, IEEE488_TAG),
m_reset(1),
diff --git a/src/mame/includes/samcoupe.h b/src/mame/includes/samcoupe.h
index e576e32f782..ef72ffd10bf 100644
--- a/src/mame/includes/samcoupe.h
+++ b/src/mame/includes/samcoupe.h
@@ -77,14 +77,14 @@ public:
m_io_mouse_y(*this, "mouse_y"),
m_config(*this, "config")
{
- sam_bank_read_ptr[0] = NULL;
- sam_bank_write_ptr[0] = NULL;
- sam_bank_read_ptr[1] = NULL;
- sam_bank_write_ptr[1] = NULL;
- sam_bank_read_ptr[2] = NULL;
- sam_bank_write_ptr[2] = NULL;
- sam_bank_read_ptr[3] = NULL;
- sam_bank_write_ptr[3] = NULL;
+ sam_bank_read_ptr[0] = nullptr;
+ sam_bank_write_ptr[0] = nullptr;
+ sam_bank_read_ptr[1] = nullptr;
+ sam_bank_write_ptr[1] = nullptr;
+ sam_bank_read_ptr[2] = nullptr;
+ sam_bank_write_ptr[2] = nullptr;
+ sam_bank_read_ptr[3] = nullptr;
+ sam_bank_write_ptr[3] = nullptr;
}
virtual void video_start();
diff --git a/src/mame/includes/segaorun.h b/src/mame/includes/segaorun.h
index 603faccae0b..6fd0db83b74 100644
--- a/src/mame/includes/segaorun.h
+++ b/src/mame/includes/segaorun.h
@@ -37,9 +37,9 @@ public:
m_digital_ports(*this, digital_ports),
m_adc_ports(*this, "ADC"),
m_workram(*this, "workram"),
- m_custom_map(NULL),
+ m_custom_map(nullptr),
m_shangon_video(false),
- m_scanline_timer(NULL),
+ m_scanline_timer(nullptr),
m_irq2_state(0),
m_adc_select(0),
m_vblank_irq_state(0),
diff --git a/src/mame/includes/segas16b.h b/src/mame/includes/segas16b.h
index c0b241368df..7ceba71f17d 100644
--- a/src/mame/includes/segas16b.h
+++ b/src/mame/includes/segas16b.h
@@ -43,7 +43,7 @@ public:
m_romboard(ROM_BOARD_INVALID),
m_tilemap_type(SEGAIC16_TILEMAP_16B),
m_disable_screen_blanking(false),
- m_i8751_initial_config(NULL),
+ m_i8751_initial_config(nullptr),
m_atomicp_sound_divisor(0),
m_atomicp_sound_count(0),
m_hwc_input_value(0),
diff --git a/src/mame/includes/segaybd.h b/src/mame/includes/segaybd.h
index 65b7d811adc..4fa5ec131d7 100644
--- a/src/mame/includes/segaybd.h
+++ b/src/mame/includes/segaybd.h
@@ -32,7 +32,7 @@ public:
m_digital_ports(*this, digital_ports),
m_adc_ports(*this, "ADC"),
m_pdrift_bank(0),
- m_scanline_timer(NULL),
+ m_scanline_timer(nullptr),
m_irq2_scanline(0),
m_timer_irq_state(0),
m_vblank_irq_state(0),
diff --git a/src/mame/includes/sms.h b/src/mame/includes/sms.h
index 4f2efcdbbd3..541e298b4d0 100644
--- a/src/mame/includes/sms.h
+++ b/src/mame/includes/sms.h
@@ -49,7 +49,7 @@ public:
m_port_scope_binocular(*this, "SSCOPE_BINOCULAR"),
m_port_persist(*this, "PERSISTENCE"),
m_region_maincpu(*this, "maincpu"),
- m_mainram(NULL),
+ m_mainram(nullptr),
m_is_gamegear(0),
m_is_gg_region_japan(0),
m_is_smsj(0),
diff --git a/src/mame/includes/svi318.h b/src/mame/includes/svi318.h
index a699f6e9bfb..b0d851a8f2b 100644
--- a/src/mame/includes/svi318.h
+++ b/src/mame/includes/svi318.h
@@ -51,7 +51,7 @@ public:
m_joysticks(*this, "JOYSTICKS"),
m_buttons(*this, "BUTTONS"),
m_palette(*this, "palette"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_bank1(*this, "bank1"),
m_bank2(*this, "bank2"),
m_bank3(*this, "bank3"),
diff --git a/src/mame/includes/trs80.h b/src/mame/includes/trs80.h
index e4ced5999ab..f4a54afd4a3 100644
--- a/src/mame/includes/trs80.h
+++ b/src/mame/includes/trs80.h
@@ -51,24 +51,24 @@ public:
m_io_line5(*this, "LINE5"),
m_io_line6(*this, "LINE6"),
m_io_line7(*this, "LINE7"),
- m_bank1(NULL),
- m_bank2(NULL),
- m_bank3(NULL),
- m_bank4(NULL),
- m_bank5(NULL),
- m_bank6(NULL),
- m_bank7(NULL),
- m_bank8(NULL),
- m_bank9(NULL),
- m_bank11(NULL),
- m_bank12(NULL),
- m_bank13(NULL),
- m_bank14(NULL),
- m_bank15(NULL),
- m_bank16(NULL),
- m_bank17(NULL),
- m_bank18(NULL),
- m_bank19(NULL) { }
+ m_bank1(nullptr),
+ m_bank2(nullptr),
+ m_bank3(nullptr),
+ m_bank4(nullptr),
+ m_bank5(nullptr),
+ m_bank6(nullptr),
+ m_bank7(nullptr),
+ m_bank8(nullptr),
+ m_bank9(nullptr),
+ m_bank11(nullptr),
+ m_bank12(nullptr),
+ m_bank13(nullptr),
+ m_bank14(nullptr),
+ m_bank15(nullptr),
+ m_bank16(nullptr),
+ m_bank17(nullptr),
+ m_bank18(nullptr),
+ m_bank19(nullptr) { }
DECLARE_FLOPPY_FORMATS(floppy_formats);
diff --git a/src/mame/includes/trs80m2.h b/src/mame/includes/trs80m2.h
index 94a85e36038..9f533cb9a6f 100644
--- a/src/mame/includes/trs80m2.h
+++ b/src/mame/includes/trs80m2.h
@@ -52,7 +52,7 @@ public:
m_floppy1(*this, FD1791_TAG":1"),
m_floppy2(*this, FD1791_TAG":2"),
m_floppy3(*this, FD1791_TAG":3"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_ram(*this, RAM_TAG),
m_kb(*this, TRS80M2_KEYBOARD_TAG),
m_rom(*this, Z80_TAG),
diff --git a/src/mame/includes/xbox.h b/src/mame/includes/xbox.h
index 253d903b675..85e0c85af4d 100644
--- a/src/mame/includes/xbox.h
+++ b/src/mame/includes/xbox.h
@@ -203,7 +203,7 @@ class xbox_base_state : public driver_device
public:
xbox_base_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
- nvidia_nv2a(NULL),
+ nvidia_nv2a(nullptr),
debug_irq_active(false),
debug_irq_number(0),
m_maincpu(*this, "maincpu") { }
diff --git a/src/mame/machine/315-5881_crypt.cpp b/src/mame/machine/315-5881_crypt.cpp
index ec07d1c8380..96f654a44e1 100644
--- a/src/mame/machine/315-5881_crypt.cpp
+++ b/src/mame/machine/315-5881_crypt.cpp
@@ -49,7 +49,7 @@ void sega_315_5881_crypt_device::device_start()
std::string skey = parameter("key");
if(!skey.empty())
- key = strtoll(skey.c_str(), 0, 16);
+ key = strtoll(skey.c_str(), nullptr, 16);
else
{
logerror("%s: Warning: key not provided\n", tag());
diff --git a/src/mame/machine/6883sam.cpp b/src/mame/machine/6883sam.cpp
index d47fe3efe78..d912d65ea90 100644
--- a/src/mame/machine/6883sam.cpp
+++ b/src/mame/machine/6883sam.cpp
@@ -72,7 +72,7 @@ const device_type SAM6883 = &device_creator<sam6883_device>;
sam6883_device::sam6883_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SAM6883, "SAM6883", tag, owner, clock, "sam6883", __FILE__),
- m_cpu_tag(NULL),
+ m_cpu_tag(nullptr),
m_cpu_space_ref(AS_PROGRAM),
m_read_res(*this),
m_space_0000(*this),
@@ -133,7 +133,7 @@ void sam6883_device::configure_bank(int bank, UINT8 *memory, UINT32 memory_size,
void sam6883_device::configure_bank(int bank, read8_delegate rhandler, write8_delegate whandler)
{
- configure_bank(bank, NULL, 0, false, rhandler, whandler);
+ configure_bank(bank, nullptr, 0, false, rhandler, whandler);
}
@@ -454,8 +454,8 @@ template<UINT16 _addrstart, UINT16 _addrend>
sam6883_device::sam_space<_addrstart, _addrend>::sam_space(sam6883_device &owner)
: m_owner(owner)
{
- m_read_bank = NULL;
- m_write_bank = NULL;
+ m_read_bank = nullptr;
+ m_write_bank = nullptr;
m_mask = 0;
}
@@ -468,7 +468,7 @@ sam6883_device::sam_space<_addrstart, _addrend>::sam_space(sam6883_device &owner
template<UINT16 _addrstart, UINT16 _addrend>
address_space &sam6883_device::sam_space<_addrstart, _addrend>::cpu_space() const
{
- assert(m_owner.m_cpu_space != NULL);
+ assert(m_owner.m_cpu_space != nullptr);
return *m_owner.m_cpu_space;
}
@@ -506,7 +506,7 @@ void sam6883_device::sam_space<_addrstart, _addrend>::point_specific_bank(const
{
char buffer[16];
- if (bank->m_memory != NULL)
+ if (bank->m_memory != nullptr)
{
// normalize offset
if (mask != 0)
@@ -530,7 +530,7 @@ void sam6883_device::sam_space<_addrstart, _addrend>::point_specific_bank(const
}
// point the bank
- if (memory_bank != NULL)
+ if (memory_bank != nullptr)
{
if (is_write && bank->m_memory_read_only)
memory_bank->set_base(m_owner.m_dummy);
diff --git a/src/mame/machine/6883sam.h b/src/mame/machine/6883sam.h
index 772fe38d63f..d559860d313 100644
--- a/src/mame/machine/6883sam.h
+++ b/src/mame/machine/6883sam.h
@@ -31,7 +31,7 @@
class sam6883_friend_device
{
public:
- sam6883_friend_device() { m_cpu = NULL; m_sam_state = 0x0000; }
+ sam6883_friend_device() { m_cpu = nullptr; m_sam_state = 0x0000; }
protected:
// SAM state constants
diff --git a/src/mame/machine/abc1600mac.cpp b/src/mame/machine/abc1600mac.cpp
index b22f55708c6..07cc653fc2e 100644
--- a/src/mame/machine/abc1600mac.cpp
+++ b/src/mame/machine/abc1600mac.cpp
@@ -125,7 +125,7 @@ void abc1600_mac_device::device_start()
{
// get the CPU device
m_cpu = machine().device<m68000_base_device>(m_cpu_tag);
- assert(m_cpu != NULL);
+ assert(m_cpu != nullptr);
// allocate memory
m_segment_ram.allocate(0x400);
@@ -160,7 +160,7 @@ void abc1600_mac_device::device_reset()
const address_space_config *abc1600_mac_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == AS_PROGRAM) ? &m_space_config : NULL;
+ return (spacenum == AS_PROGRAM) ? &m_space_config : nullptr;
}
diff --git a/src/mame/machine/amiga.cpp b/src/mame/machine/amiga.cpp
index 6d9fcf46844..47b1d49c33f 100644
--- a/src/mame/machine/amiga.cpp
+++ b/src/mame/machine/amiga.cpp
@@ -147,7 +147,7 @@ void amiga_state::machine_start()
// set up chip RAM access
memory_share *share = memshare("chip_ram");
- if (share == NULL)
+ if (share == nullptr)
fatalerror("Unable to find Amiga chip RAM\n");
m_chip_ram.set(*share, 2);
m_chip_ram_mask = (m_chip_ram.bytes() - 1) & ~1;
@@ -380,7 +380,7 @@ TIMER_CALLBACK_MEMBER( amiga_state::amiga_irq_proc )
UINT16 amiga_state::joy0dat_r()
{
- if (m_input_device == NULL)
+ if (m_input_device == nullptr)
return m_joy0dat_port ? m_joy0dat_port->read() : 0xffff;
if (m_input_device->read() & 0x10)
@@ -391,7 +391,7 @@ UINT16 amiga_state::joy0dat_r()
UINT16 amiga_state::joy1dat_r()
{
- if (m_input_device == NULL)
+ if (m_input_device == nullptr)
return m_joy1dat_port ? m_joy1dat_port->read() : 0xffff;
if (m_input_device->read() & 0x20)
diff --git a/src/mame/machine/amigakbd.cpp b/src/mame/machine/amigakbd.cpp
index c6d1bb05d34..1120c522e6c 100644
--- a/src/mame/machine/amigakbd.cpp
+++ b/src/mame/machine/amigakbd.cpp
@@ -282,9 +282,9 @@ amigakbd_device::amigakbd_device(const machine_config &mconfig, const char *tag,
m_row_c2(*this, "row_c2"),
m_row_c1(*this, "row_c1"),
m_row_c0(*this, "row_c0"),
- m_timer(NULL),
- m_watchdog(NULL),
- m_reset(NULL),
+ m_timer(nullptr),
+ m_watchdog(nullptr),
+ m_reset(nullptr),
m_kdat(1),
m_kclk(1),
m_port_c(0xff),
@@ -307,9 +307,9 @@ void amigakbd_device::device_start()
m_write_krst.resolve_safe();
// allocate timers
- m_timer = timer_alloc(0, NULL);
- m_watchdog = timer_alloc(1, NULL);
- m_reset = timer_alloc(2, NULL);
+ m_timer = timer_alloc(0, nullptr);
+ m_watchdog = timer_alloc(1, nullptr);
+ m_reset = timer_alloc(2, nullptr);
// register for save states
save_item(NAME(m_kdat));
diff --git a/src/mame/machine/amstrad.cpp b/src/mame/machine/amstrad.cpp
index ed4a3f04d6b..eed5c0f291e 100644
--- a/src/mame/machine/amstrad.cpp
+++ b/src/mame/machine/amstrad.cpp
@@ -689,7 +689,7 @@ void amstrad_state::amstrad_update_video()
m_gate_array.line_ticks++;
if ( m_gate_array.line_ticks > m_gate_array.bitmap->width() )
{
- m_gate_array.draw_p = NULL;
+ m_gate_array.draw_p = nullptr;
cycles_passed = 0;
}
}
@@ -791,7 +791,7 @@ void amstrad_state::amstrad_plus_update_video()
m_asic.hsync_first_tick = false;
if ( m_gate_array.line_ticks >= m_gate_array.bitmap->width() )
{
- m_gate_array.draw_p = NULL;
+ m_gate_array.draw_p = nullptr;
cycles_passed = 0;
}
}
@@ -872,7 +872,7 @@ WRITE_LINE_MEMBER(amstrad_state::amstrad_hsync_changed)
}
else
{
- m_gate_array.draw_p = NULL;
+ m_gate_array.draw_p = nullptr;
}
if ( m_gate_array.hsync_after_vsync_counter != 0 ) // counters still operate regardless of PRI state
@@ -915,7 +915,7 @@ WRITE_LINE_MEMBER(amstrad_state::amstrad_plus_hsync_changed)
}
else
{
- m_gate_array.draw_p = NULL;
+ m_gate_array.draw_p = nullptr;
}
if ( m_gate_array.hsync_after_vsync_counter != 0 ) // counters still operate regardless of PRI state
@@ -1106,24 +1106,24 @@ static device_t* get_expansion_device(running_machine &machine, const char* tag)
amstrad_state *state = machine.driver_data<amstrad_state>();
cpc_expansion_slot_device* exp_port = state->m_exp;
- while(exp_port != NULL)
+ while(exp_port != nullptr)
{
device_t* temp;
// first, check if this expansion port has the device we want attached
temp = exp_port->subdevice(tag);
- if(temp != NULL)
+ if(temp != nullptr)
return temp;
// if it's not what we're looking for, then check the expansion port on this expansion device. if it exists.
temp = dynamic_cast<device_t*>(exp_port->get_card_device());
- if(temp == NULL)
- return NULL; // no device attached
+ if(temp == nullptr)
+ return nullptr; // no device attached
exp_port = temp->subdevice<cpc_expansion_slot_device>("exp");
- if(exp_port == NULL)
- return NULL; // we're at the end of the chain
+ if(exp_port == nullptr)
+ return nullptr; // we're at the end of the chain
}
- return NULL;
+ return nullptr;
}
WRITE_LINE_MEMBER(amstrad_state::cpc_romdis)
@@ -1184,7 +1184,7 @@ void amstrad_state::amstrad_setLowerRom()
space.install_write_bank(0x6000, 0x7fff, "bank12");
}
*/
- if(m_AmstradCPC_RamBanks[0] != NULL)
+ if(m_AmstradCPC_RamBanks[0] != nullptr)
{
m_bank1->set_base(m_AmstradCPC_RamBanks[0]);
m_bank2->set_base(m_AmstradCPC_RamBanks[0]+0x2000);
@@ -1241,7 +1241,7 @@ void amstrad_state::amstrad_setLowerRom()
-----------------*/
void amstrad_state::amstrad_setUpperRom()
{
- UINT8 *bank_base = NULL;
+ UINT8 *bank_base = nullptr;
/* b3 : "1" Upper rom area disable or "0" Upper rom area enable */
if ( ! ( m_gate_array.mrer & 0x08 ) && m_gate_array.romdis == 0)
@@ -2000,14 +2000,14 @@ WRITE8_MEMBER(amstrad_state::rom_select)
// expansion devices know the selected ROM by monitoring I/O writes to DFxx
// there are no signals related to which ROM is selected
cpc_expansion_slot_device* exp_port = m_exp;
- while(exp_port != NULL)
+ while(exp_port != nullptr)
{
device_cpc_expansion_card_interface* temp;
device_t* temp_dev;
temp = dynamic_cast<device_cpc_expansion_card_interface*>(exp_port->get_card_device());
temp_dev = dynamic_cast<device_t*>(exp_port->get_card_device());
- if(temp != NULL)
+ if(temp != nullptr)
{
temp->set_rom_bank(data);
}
@@ -2192,7 +2192,7 @@ The exception is the case where none of b7-b0 are reset (i.e. port &FBFF), which
}
mface2 = dynamic_cast<cpc_multiface2_device*>(get_expansion_device(machine(),"multiface2"));
- if(mface2 != NULL)
+ if(mface2 != nullptr)
{
if(mface2->multiface_io_write(offset, data) != 0)
{
@@ -2429,7 +2429,7 @@ void amstrad_state::amstrad_rethinkMemory()
/* multiface hardware enabled? */
mface2 = dynamic_cast<cpc_multiface2_device*>(get_expansion_device(machine(),"multiface2"));
- if(mface2 != NULL)
+ if(mface2 != nullptr)
{
if (mface2->multiface_hardware_enabled())
{
@@ -2463,7 +2463,7 @@ void amstrad_state::screen_eof_amstrad(screen_device &screen, bool state)
{
cpc_multiface2_device* mface2 = dynamic_cast<cpc_multiface2_device*>(get_expansion_device(machine(),"multiface2"));
- if(mface2 != NULL)
+ if(mface2 != nullptr)
{
mface2->check_button_state();
}
@@ -2948,14 +2948,14 @@ void amstrad_state::enumerate_roms()
/* find any expansion devices that have a 'exp_rom' region */
cpc_expansion_slot_device* exp_port = m_exp;
- while(exp_port != NULL)
+ while(exp_port != nullptr)
{
device_t* temp;
temp = dynamic_cast<device_t*>(exp_port->get_card_device());
- if(temp != NULL)
+ if(temp != nullptr)
{
- if(temp->memregion("exp_rom")->base() != NULL)
+ if(temp->memregion("exp_rom")->base() != nullptr)
{
int num = temp->memregion("exp_rom")->bytes() / 0x4000;
for(i=0;i<num;i++)
@@ -2977,7 +2977,7 @@ void amstrad_state::enumerate_roms()
{
sprintf(str,"rom%i",i+1);
romimage = romexp->subdevice<rom_image_device>(str);
- if(romimage->base() != NULL)
+ if(romimage->base() != nullptr)
{
m_Amstrad_ROM_Table[m_rom_count] = romimage->base();
NEXT_ROM_SLOT
@@ -3089,7 +3089,7 @@ MACHINE_RESET_MEMBER(amstrad_state,amstrad)
// amstrad_init_palette(machine());
m_gate_array.de = 0;
- m_gate_array.draw_p = NULL;
+ m_gate_array.draw_p = nullptr;
m_gate_array.hsync = 0;
m_gate_array.vsync = 0;
@@ -3190,7 +3190,7 @@ MACHINE_START_MEMBER(amstrad_state,kccomp)
m_centronics->write_data7(0);
m_gate_array.de = 0;
- m_gate_array.draw_p = NULL;
+ m_gate_array.draw_p = nullptr;
m_gate_array.hsync = 0;
m_gate_array.vsync = 0;
@@ -3260,7 +3260,7 @@ DEVICE_IMAGE_LOAD_MEMBER(amstrad_state, amstrad_plus_cartridge)
logerror("IMG: loading CPC+ cartridge file\n");
// check for .CPR header
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
image.fread(header, 12);
if (strncmp((char *)header, "RIFF", 4) != 0)
@@ -3279,7 +3279,7 @@ DEVICE_IMAGE_LOAD_MEMBER(amstrad_state, amstrad_plus_cartridge)
m_cart->rom_alloc(size, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
// actually load the cart into ROM
- if (image.software_entry() != NULL)
+ if (image.software_entry() != nullptr)
{
logerror("IMG: raw CPC+ cartridge from softlist\n");
memcpy(m_cart->get_rom_base(), image.get_software_region("rom"), size);
diff --git a/src/mame/machine/apollo.cpp b/src/mame/machine/apollo.cpp
index ecda2bdc9da..e10522756dd 100644
--- a/src/mame/machine/apollo.cpp
+++ b/src/mame/machine/apollo.cpp
@@ -1161,10 +1161,10 @@ MACHINE_CONFIG_FRAGMENT( common )
MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa1", apollo_isa_cards, "wdc", false)
MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa2", apollo_isa_cards, "ctape", false)
MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa3", apollo_isa_cards, "3c505", false)
- MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa4", apollo_isa_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa5", apollo_isa_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa6", apollo_isa_cards, NULL, false)
- MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa7", apollo_isa_cards, NULL, false)
+ MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa4", apollo_isa_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa5", apollo_isa_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa6", apollo_isa_cards, nullptr, false)
+ MCFG_ISA16_SLOT_ADD(APOLLO_ISA_TAG, "isa7", apollo_isa_cards, nullptr, false)
MCFG_SOFTWARE_LIST_ADD("ctape_list", "apollo_ctape")
MACHINE_CONFIG_END
diff --git a/src/mame/machine/apollo_dbg.cpp b/src/mame/machine/apollo_dbg.cpp
index be6b3811be7..f2991f8934c 100644
--- a/src/mame/machine/apollo_dbg.cpp
+++ b/src/mame/machine/apollo_dbg.cpp
@@ -18,37 +18,37 @@
//------------------------------------------------------
static const char* trap0[] = {
-/* 0x00 */NULL, NULL,
+/* 0x00 */nullptr, nullptr,
/* 0x01 */"FIM_$GET_FIM_ADDR", "",
-/* 0x02 */NULL, NULL,
+/* 0x02 */nullptr, nullptr,
/* 0x03 */"DTTY_$RELOAD_FONT", "",
/* 0x04 */"FILE_$UNLOCK_ALL", "",
-/* 0x05 */NULL, NULL,
-/* 0x06 */NULL, NULL,
+/* 0x05 */nullptr, nullptr,
+/* 0x06 */nullptr, nullptr,
/* 0x07 */"PROC2_$MY_PID", "",
/* 0x08 */"SMD_$OP_WAIT_U", "",
/* 0x09 */"TPAD_$RE_RANGE", "",
-/* 0x0a */NULL, NULL,
-/* 0x0b */NULL, NULL,
-/* 0x0c */NULL, NULL,
+/* 0x0a */nullptr, nullptr,
+/* 0x0b */nullptr, nullptr,
+/* 0x0c */nullptr, nullptr,
/* 0x0d */"ACL_$UP", "",
/* 0x0e */"ACL_$DOWN", "",
-/* 0x0f */NULL, NULL,
+/* 0x0f */nullptr, nullptr,
/* 0x10 */"TPAD_$INQ_DTYPE", "",
-/* 0x11 */NULL, NULL,
+/* 0x11 */nullptr, nullptr,
/* 0x12 */"CACHE_$CLEAR", "",
/* 0x13 */"RIP_$ANNOUNCE_NS", "",
-/* 0x14 */NULL, NULL,
-/* 0x15 */NULL, NULL,
-/* 0x16 */NULL, NULL,
-/* 0x17 */NULL, NULL,
+/* 0x14 */nullptr, nullptr,
+/* 0x15 */nullptr, nullptr,
+/* 0x16 */nullptr, nullptr,
+/* 0x17 */nullptr, nullptr,
/* 0x18 */"PROC2_$DELIVER_PENDING", "",
/* 0x19 */"PROC2_$COMPLETE_FORK", "",
/* 0x1a */"PACCT_$STOP", "",
/* 0x1b */"PACCT_$ON", "",
/* 0x1c */"ACL_$GET_LOCAL_LOCKSMITH", "",
/* 0x1d */"ACL_$IS_SUSER", "",
-/* 0x1e */NULL, NULL,
+/* 0x1e */nullptr, nullptr,
/* 0x1f */"SMD_$N_DEVICES", "",
/* 0x20 */"PROC1_$GET_MAXID", "",
/* 0x21 */"THREAD_$DELETE", "",
@@ -63,8 +63,8 @@ static const char* trap0[] = {
//------------------------------------------------------
static const char* trap1[] = {
-/* 0x00 */NULL, NULL,
-/* 0x01 */NULL, NULL,
+/* 0x00 */nullptr, nullptr,
+/* 0x01 */nullptr, nullptr,
/* 0x02 */"FIM_$INSTALL", "x",
/* 0x03 */"NETWORK_$READ_SERVICE", "x",
/* 0x04 */"PROC1_$GET_CPUT", "x",
@@ -77,26 +77,26 @@ static const char* trap1[] = {
/* 0x0b */"CAL_$REMOVE_LOCAL_OFFSET", "x",
/* 0x0c */"CAL_$SET_DRIFT", "x",
/* 0x0d */"DISK_$GET_ERROR_INFO", "x",
-/* 0x0e */NULL, NULL,
+/* 0x0e */nullptr, nullptr,
/* 0x0f */"MSG_$CLOSE", "x",
/* 0x10 */"PROC2_$WHO_AM_I", "u",
/* 0x11 */"SMD_$CLEAR_KBD_CURSOR", "x",
-/* 0x12 */NULL, NULL,
-/* 0x13 */NULL, NULL,
+/* 0x12 */nullptr, nullptr,
+/* 0x13 */nullptr, nullptr,
/* 0x14 */"SMD_$SEND_RESPONSE", "x",
/* 0x15 */"SMD_$STOP_TP_CURSOR", "x",
-/* 0x16 */NULL, NULL,
-/* 0x17 */NULL, NULL,
+/* 0x16 */nullptr, nullptr,
+/* 0x17 */nullptr, nullptr,
/* 0x18 */"SMD_$UNMAP_DISPLAY_U", "x",
/* 0x19 */"UID_$GEN", "x",
/* 0x1a */"TONE_$TIME", "x",
/* 0x1b */"SMD_$INQ_DISP_TYPE", "x",
-/* 0x1c */NULL, NULL,
-/* 0x1d */NULL, NULL,
-/* 0x1e */NULL, NULL,
+/* 0x1c */nullptr, nullptr,
+/* 0x1d */nullptr, nullptr,
+/* 0x1e */nullptr, nullptr,
/* 0x1f */"TPAD_$SET_CURSOR", "x",
-/* 0x20 */NULL, NULL,
-/* 0x21 */NULL, NULL,
+/* 0x20 */nullptr, nullptr,
+/* 0x21 */nullptr, nullptr,
/* 0x22 */"NAME_$GET_WDIR_UID", "u",
/* 0x23 */"NAME_$GET_NDIR_UID", "u",
/* 0x24 */"NAME_$GET_ROOT_UID", "u",
@@ -105,14 +105,14 @@ static const char* trap1[] = {
/* 0x27 */"NAME_$GET_CANNED_ROOT_UID", "u",
/* 0x28 */"MSG_$GET_MY_NET", "x",
/* 0x29 */"MSG_$GET_MY_NODE", "x",
-/* 0x2a */NULL, NULL,
-/* 0x2b */NULL, NULL,
-/* 0x2c */NULL, NULL,
-/* 0x2d */NULL, NULL,
-/* 0x2e */NULL, NULL,
-/* 0x2f */NULL, NULL,
+/* 0x2a */nullptr, nullptr,
+/* 0x2b */nullptr, nullptr,
+/* 0x2c */nullptr, nullptr,
+/* 0x2d */nullptr, nullptr,
+/* 0x2e */nullptr, nullptr,
+/* 0x2f */nullptr, nullptr,
/* 0x30 */"GPU_$INIT", "x",
-/* 0x31 */NULL, NULL,
+/* 0x31 */nullptr, nullptr,
/* 0x32 */"SMD_$INIT_STATE", "x",
/* 0x33 */"SMD_$CLR_TRK_RECT", "x",
/* 0x34 */"PROC2_$GET_SIG_MASK", "x",
@@ -120,14 +120,14 @@ static const char* trap1[] = {
/* 0x36 */"TIME_$GET_TIME_OF_DAY", "x",
/* 0x37 */"PROC1_$GET_LOADAV", "x",
/* 0x38 */"PROC2_$GET_BOOT_FLAGS", "x",
-/* 0x39 */NULL, NULL,
+/* 0x39 */nullptr, nullptr,
/* 0x3a */"PROC2_$SET_TTY", "x",
/* 0x3b */"OS_$SHUTDOWN", "x",
/* 0x3c */"PBU_$FAULTED_UNITS", "x",
/* 0x3d */"PROC2_$GET_CPU_USAGE", "x",
-/* 0x3e */NULL, NULL,
-/* 0x3f */NULL, NULL,
-/* 0x40 */NULL, NULL,
+/* 0x3e */nullptr, nullptr,
+/* 0x3f */nullptr, nullptr,
+/* 0x40 */nullptr, nullptr,
/* 0x41 */"TIME_$GET_ADJUST", "x",
/* 0x42 */"FILE_$SYNC", "x",
/* 0x43 */"XPAGE_$IS_MAPPED", "x",
@@ -139,11 +139,11 @@ static const char* trap1[] = {
//------------------------------------------------------
static const char* trap2[] = {
-/* 0x00 */NULL, NULL,
-/* 0x01 */NULL, NULL,
+/* 0x00 */nullptr, nullptr,
+/* 0x01 */nullptr, nullptr,
/* 0x02 */"FILE_$DELETE", "x,x",
/* 0x03 */"EC2_$WAKEUP", "x,x",
-/* 0x04 */NULL, NULL,
+/* 0x04 */nullptr, nullptr,
/* 0x05 */"ACL_$GET_SID", "x,x",
/* 0x06 */"FILE_$MK_PERMANENT", "x,x",
/* 0x07 */"FILE_$UNLOCK_VOL", "x,x",
@@ -156,13 +156,13 @@ static const char* trap2[] = {
/* 0x0e */"FILE_$MK_IMMUTABLE", "x,x",
/* 0x0f */"FILE_$PURIFY", "x,x",
/* 0x10 */"GET_BUILD_TIME", "x,x",
-/* 0x11 */NULL, NULL,
-/* 0x12 */NULL, NULL,
+/* 0x11 */nullptr, nullptr,
+/* 0x12 */nullptr, nullptr,
/* 0x13 */"MSG_$ALLOCATE", "x,x",
/* 0x14 */"MSG_$OPEN", "x,x",
/* 0x15 */"MSG_$WAIT", "x,x",
-/* 0x16 */NULL, NULL,
-/* 0x17 */NULL, NULL,
+/* 0x16 */nullptr, nullptr,
+/* 0x17 */nullptr, nullptr,
/* 0x18 */"PBU_$DEVICE_INTERRUPTING", "x,x",
/* 0x19 */"PBU_$DISABLE_DEVICE", "x,x",
/* 0x1a */"PBU_$ENABLE_DEVICE", "x,x",
@@ -170,23 +170,23 @@ static const char* trap2[] = {
/* 0x1c */"PROC2_$QUIT", "x,x",
/* 0x1d */"PROC2_$RESUME", "x,x",
/* 0x1e */"PROC2_$SUSPEND", "x,x",
-/* 0x1f */NULL, NULL,
-/* 0x20 */NULL, NULL,
-/* 0x21 */NULL, NULL,
-/* 0x22 */NULL, NULL,
-/* 0x23 */NULL, NULL,
-/* 0x24 */NULL, NULL,
-/* 0x25 */NULL, NULL,
+/* 0x1f */nullptr, nullptr,
+/* 0x20 */nullptr, nullptr,
+/* 0x21 */nullptr, nullptr,
+/* 0x22 */nullptr, nullptr,
+/* 0x23 */nullptr, nullptr,
+/* 0x24 */nullptr, nullptr,
+/* 0x25 */nullptr, nullptr,
/* 0x26 */"SMD_$MAP_DISPLAY_U", "x,x",
/* 0x27 */"SMD_$MOVE_KBD_CURSOR", "x,x",
-/* 0x28 */NULL, NULL,
+/* 0x28 */nullptr, nullptr,
/* 0x29 */"SMD_$RETURN_DISPLAY", "x,x",
-/* 0x2a */NULL, NULL,
-/* 0x2b */NULL, NULL,
-/* 0x2c */NULL, NULL,
-/* 0x2d */NULL, NULL,
+/* 0x2a */nullptr, nullptr,
+/* 0x2b */nullptr, nullptr,
+/* 0x2c */nullptr, nullptr,
+/* 0x2d */nullptr, nullptr,
/* 0x2e */"PEB_$GET_INFO", "x,x",
-/* 0x2f */NULL, NULL,
+/* 0x2f */nullptr, nullptr,
/* 0x30 */"EC2_$GET_VAL", "x,x",
/* 0x31 */"AST_$ADD_ASTES", "x,x",
/* 0x32 */"PBU_$DISSOC", "x,x",
@@ -194,42 +194,42 @@ static const char* trap2[] = {
/* 0x34 */"FILE_$DELETE_FORCE", "x,x",
/* 0x35 */"FILE_$DELETE_WHEN_UNLOCKED", "x,x",
/* 0x36 */"FILE_$MK_TEMPORARY", "x,x",
-/* 0x37 */NULL, NULL,
-/* 0x38 */NULL, NULL,
-/* 0x39 */NULL, NULL,
-/* 0x3a */NULL, NULL,
+/* 0x37 */nullptr, nullptr,
+/* 0x38 */nullptr, nullptr,
+/* 0x39 */nullptr, nullptr,
+/* 0x3a */nullptr, nullptr,
/* 0x3b */"SMD_$INQ_KBD_CURSOR", "x,x",
/* 0x3c */"ACL_$ENTER_SUBS", "u,x",
-/* 0x3d */NULL, NULL,
-/* 0x3e */NULL, NULL,
-/* 0x3f */NULL, NULL,
-/* 0x40 */NULL, NULL,
-/* 0x41 */NULL, NULL,
+/* 0x3d */nullptr, nullptr,
+/* 0x3e */nullptr, nullptr,
+/* 0x3f */nullptr, nullptr,
+/* 0x40 */nullptr, nullptr,
+/* 0x41 */nullptr, nullptr,
/* 0x42 */"FILE_$DELETE_FORCE_WHEN_UNLOCKED", "x,x",
-/* 0x43 */NULL, NULL,
+/* 0x43 */nullptr, nullptr,
/* 0x44 */"CT_$ACQUIRE", "x,x",
/* 0x45 */"HINT_$ADD", "x,x",
/* 0x46 */"DIR_$FIX_DIR", "x,x",
/* 0x47 */"NAME_$SET_WDIRUS", "u,x",
/* 0x48 */"NAME_$SET_NDIRUS", "u,x",
-/* 0x49 */NULL, NULL,
-/* 0x4a */NULL, NULL,
+/* 0x49 */nullptr, nullptr,
+/* 0x4a */nullptr, nullptr,
/* 0x4b */"MSG_$CLOSEI", "x,x",
/* 0x4c */"NETWORK_$ADD_PAGE_SERVERS", "x,x",
/* 0x4d */"NETWORK_$ADD_REQUEST_SERVERS", "x,x",
/* 0x4e */"ACL_$ADD_PROJ", "x,x",
/* 0x4f */"ACL_$DELETE_PROJ", "x,x",
-/* 0x50 */NULL, NULL,
-/* 0x51 */NULL, NULL,
+/* 0x50 */nullptr, nullptr,
+/* 0x51 */nullptr, nullptr,
/* 0x52 */"SMD_$SET_TP_REPORTING", "x,x",
/* 0x53 */"SMD_$DISABLE_TRACKING", "x,x",
-/* 0x54 */NULL, NULL,
-/* 0x55 */NULL, NULL,
-/* 0x56 */NULL, NULL,
-/* 0x57 */NULL, NULL,
+/* 0x54 */nullptr, nullptr,
+/* 0x55 */nullptr, nullptr,
+/* 0x56 */nullptr, nullptr,
+/* 0x57 */nullptr, nullptr,
/* 0x58 */"HINT_$ADDI", "x,x",
-/* 0x59 */NULL, NULL,
-/* 0x5a */NULL, NULL,
+/* 0x59 */nullptr, nullptr,
+/* 0x5a */nullptr, nullptr,
/* 0x5b */"PBU_$ALLOCATE_EC", "x,x",
/* 0x5c */"SMD_$SET_DISP_UNIT", "x,x",
/* 0x5d */"SMD_$VIDEO_CTL", "x,x",
@@ -253,26 +253,26 @@ static const char* trap2[] = {
/* 0x6f */"CAL_$DECODE_TIME", "x,x",
/* 0x70 */"ACL_$INHERIT_SUBSYS", "x,x",
/* 0x71 */"ACL_$SET_LOCAL_LOCKSMITH", "x,x",
-/* 0x72 */NULL, NULL,
+/* 0x72 */nullptr, nullptr,
/* 0x73 */"SMD_$DISSOC", "x,x",
/* 0x74 */"SMD_$BUSY_WAIT", "x,x",
/* 0x75 */"TTY_$K_OLD_RESET", "x,x",
-/* 0x76 */NULL, NULL,
-/* 0x77 */NULL, NULL,
-/* 0x78 */NULL, NULL,
+/* 0x76 */nullptr, nullptr,
+/* 0x77 */nullptr, nullptr,
+/* 0x78 */nullptr, nullptr,
/* 0x79 */"SCSI_$ABORT_OPERATION", "x,x",
/* 0x7a */"SCSI_$RELEASE", "x,x",
/* 0x7b */"SCSI_$RESET_DEVICE", "x,x",
-/* 0x7c */NULL, NULL,
+/* 0x7c */nullptr, nullptr,
/* 0x7d */"TPAD_$RE_RANGE_UNIT", "x,x",
/* 0x7e */"DISK_$FORMAT_WHOLE", "x,x",
-/* 0x7f */NULL, NULL,
-/* 0x80 */NULL, NULL,
-/* 0x81 */NULL, NULL,
-/* 0x82 */NULL, NULL,
-/* 0x83 */NULL, NULL,
+/* 0x7f */nullptr, nullptr,
+/* 0x80 */nullptr, nullptr,
+/* 0x81 */nullptr, nullptr,
+/* 0x82 */nullptr, nullptr,
+/* 0x83 */nullptr, nullptr,
/* 0x84 */"SMD_$SEND_UNIT_RESPONSE", "x,x",
-/* 0x85 */NULL, NULL,
+/* 0x85 */nullptr, nullptr,
/* 0x86 */"MST_$FW_XTAL", "x,x",
/* 0x87 */"THREAD_$TERMINATE", "x,x",
/* 0x88 */"THREAD_$TERMINATE_ALL", "u,x",
@@ -292,7 +292,7 @@ static const char* trap2[] = {
static const char* trap3[] = {
/* 0x00 */"PBU2_$DMA_STOP", "x,x,x",
-/* 0x01 */NULL, NULL,
+/* 0x01 */nullptr, nullptr,
/* 0x02 */"FILE_$CREATE", "x,x,x",
/* 0x03 */"FILE_$UNLOCK", "u,x,x",
/* 0x04 */"FILE_$TRUNCATE", "u,x,x",
@@ -301,10 +301,10 @@ static const char* trap3[] = {
/* 0x07 */"FILE_$ATTRIBUTES", "x,x,x",
/* 0x08 */"FILE_$SET_LEN", "x,x,x",
/* 0x09 */"FILE_$SET_TYPE", "x,x,x",
-/* 0x0a */NULL, NULL,
-/* 0x0b */NULL, NULL,
-/* 0x0c */NULL, NULL,
-/* 0x0d */NULL, NULL,
+/* 0x0a */nullptr, nullptr,
+/* 0x0b */nullptr, nullptr,
+/* 0x0c */nullptr, nullptr,
+/* 0x0d */nullptr, nullptr,
/* 0x0e */"NETWORK_$SET_SERVICE", "x,x,x",
/* 0x0f */"ASKNODE_$WHO", "s,x,x",
/* 0x10 */"FILE_$ACT_ATTRIBUTES", "x,x,x",
@@ -314,11 +314,11 @@ static const char* trap3[] = {
/* 0x14 */"FILE_$SET_ACL", "x,x,x",
/* 0x15 */"FILE_$SET_DIRPTR", "x,x,x",
/* 0x16 */"FILE_$SET_TROUBLE", "x,x,x",
-/* 0x17 */NULL, NULL,
-/* 0x18 */NULL, NULL,
-/* 0x19 */NULL, NULL,
-/* 0x1a */NULL, NULL,
-/* 0x1b */NULL, NULL,
+/* 0x17 */nullptr, nullptr,
+/* 0x18 */nullptr, nullptr,
+/* 0x19 */nullptr, nullptr,
+/* 0x1a */nullptr, nullptr,
+/* 0x1b */nullptr, nullptr,
/* 0x1c */"PBU_$DMA_STOP", "x,x,x",
/* 0x1d */"PBU_$SETDOWN", "x,x,x",
/* 0x1e */"PBU_$SETUP", "x,x,x",
@@ -326,35 +326,35 @@ static const char* trap3[] = {
/* 0x20 */"FIM_$SINGLE_STEP", "x,x,x",
/* 0x21 */"SMD_$ASSOC", "x,x,x",
/* 0x22 */"SMD_$BORROW_DISPLAY", "x,x,x",
-/* 0x23 */NULL, NULL,
-/* 0x24 */NULL, NULL,
+/* 0x23 */nullptr, nullptr,
+/* 0x24 */nullptr, nullptr,
/* 0x25 */"SMD_$SET_TP_CURSOR", "x,x,x",
/* 0x26 */"TIME_$WAIT", "x,x,x",
/* 0x27 */"RINGLOG_$CNTL", "x,x,x",
/* 0x28 */"SMD_$ALLOC_HDM", "x,x,x",
/* 0x29 */"SMD_$FREE_HDM", "x,x,x",
-/* 0x2a */NULL, NULL,
+/* 0x2a */nullptr, nullptr,
/* 0x2b */"OS_$GET_EC", "x,x,x",
/* 0x2c */"TIME_$GET_EC", "x,x,x",
-/* 0x2d */NULL, NULL,
+/* 0x2d */nullptr, nullptr,
/* 0x2e */"PROC2_$UPID_TO_UID", "x,u,x",
/* 0x2f */"MSG_$GET_EC", "x,x,x",
/* 0x30 */"DISK_$AS_OPTIONS", "x,x,x",
/* 0x31 */"SMD_$GET_EC", "x,x,x",
/* 0x32 */"NAME_$SET_ACL", "x,x,x",
/* 0x33 */"FILE_$SET_REFCNT", "x,x,x",
-/* 0x34 */NULL, NULL,
+/* 0x34 */nullptr, nullptr,
/* 0x35 */"PROC1_$GET_INFO", "x,x,x",
-/* 0x36 */NULL, NULL,
-/* 0x37 */NULL, NULL,
-/* 0x38 */NULL, NULL,
-/* 0x39 */NULL, NULL,
-/* 0x3a */NULL, NULL,
-/* 0x3b */NULL, NULL,
+/* 0x36 */nullptr, nullptr,
+/* 0x37 */nullptr, nullptr,
+/* 0x38 */nullptr, nullptr,
+/* 0x39 */nullptr, nullptr,
+/* 0x3a */nullptr, nullptr,
+/* 0x3b */nullptr, nullptr,
/* 0x3c */"AS_$GET_INFO", "x,x,x",
/* 0x3d */"FILE_$SET_DTM", "x,x,x",
/* 0x3e */"FILE_$SET_DTU", "x,x,x",
-/* 0x3f */NULL, NULL,
+/* 0x3f */nullptr, nullptr,
/* 0x40 */"LOG_$READ", "x,x,x",
/* 0x41 */"PROC2_$SET_PGROUP", "x,x,x",
/* 0x42 */"SMD_$SET_BLANK_TIMEOUT", "x,x,x",
@@ -364,12 +364,12 @@ static const char* trap3[] = {
/* 0x46 */"PROC2_$UPGID_TO_UID", "x,x,x",
/* 0x47 */"TIME_$GET_ITIMER", "x,x,x",
/* 0x48 */"DIR_$SET_DAD", "x,x,x",
-/* 0x49 */NULL, NULL,
-/* 0x4a */NULL, NULL,
-/* 0x4b */NULL, NULL,
-/* 0x4c */NULL, NULL,
-/* 0x4d */NULL, NULL,
-/* 0x4e */NULL, NULL,
+/* 0x49 */nullptr, nullptr,
+/* 0x4a */nullptr, nullptr,
+/* 0x4b */nullptr, nullptr,
+/* 0x4c */nullptr, nullptr,
+/* 0x4d */nullptr, nullptr,
+/* 0x4e */nullptr, nullptr,
/* 0x4f */"RIP_$TABLE", "x,x,x",
/* 0x50 */"FILE_$LOCATEI", "x,x,x",
/* 0x51 */"MSG_$OPENI", "x,x,x",
@@ -377,25 +377,25 @@ static const char* trap3[] = {
/* 0x53 */"MSG_$WAITI", "x,x,x",
/* 0x54 */"ACL_$SET_PROJ_LIST", "x,x,x",
/* 0x55 */"ACL_$GET_RE_SIDS", "x,x,x",
-/* 0x56 */NULL, NULL,
+/* 0x56 */nullptr, nullptr,
/* 0x57 */"MSG_$SET_HPIPC", "x,x,x",
/* 0x58 */"DIR_$VALIDATE_ROOT_ENTRY", "x,x,x",
/* 0x59 */"SMD_$ENABLE_TRACKING", "x,x,x",
/* 0x5a */"FILE_$READ_LOCK_ENTRYUI", "x,x,x",
-/* 0x5b */NULL, NULL,
+/* 0x5b */nullptr, nullptr,
/* 0x5c */"ROUTE_$SERVICE", "x,x,x",
-/* 0x5d */NULL, NULL,
-/* 0x5e */NULL, NULL,
-/* 0x5f */NULL, NULL,
+/* 0x5d */nullptr, nullptr,
+/* 0x5e */nullptr, nullptr,
+/* 0x5f */nullptr, nullptr,
/* 0x60 */"PBU_$ADVANCE_EC", "x,x,x",
/* 0x61 */"PBU_$RELEASE_EC", "x,x,x",
-/* 0x62 */NULL, NULL,
+/* 0x62 */nullptr, nullptr,
/* 0x63 */"SMD_$GET_IDM_EVENT", "x,x,x",
/* 0x64 */"MSG_$TEST_FOR_MESSAGE", "x,x,x",
/* 0x65 */"SMD_$ADD_TRK_RECT", "x,x,x",
/* 0x66 */"SMD_$DEL_TRK_RECT", "x,x,x",
/* 0x67 */"SMD_$SET_KBD_TYPE", "x,x,x",
-/* 0x68 */NULL, NULL,
+/* 0x68 */nullptr, nullptr,
/* 0x69 */"FILE_$SET_AUDITED", "x,x,x",
/* 0x6a */"PROC2_$ACKNOWLEDGE", "x,x,x",
/* 0x6b */"PROC2_$GET_MY_UPIDS", "x,x,x",
@@ -423,7 +423,7 @@ static const char* trap3[] = {
/* 0x81 */"PROC2_$PGUID_TO_UPGID", "x,x,x",
/* 0x82 */"TERM_$INQ_DISCIPLINE", "x,x,x",
/* 0x83 */"PBU_$DMA_STATUS", "x,x,x",
-/* 0x84 */NULL, NULL,
+/* 0x84 */nullptr, nullptr,
/* 0x85 */"MST_$UNMAPS_AND_FREE_AREA", "x,x,x",
/* 0x86 */"SMD_$ASSOC_CSRS", "x,x,x",
/* 0x87 */"SMD_$INQ_DISP_INFO", "x,x,x",
@@ -439,17 +439,17 @@ static const char* trap3[] = {
/* 0x91 */"TPAD_$INQ_PUNCH_IMPACT", "x,x,x",
/* 0x92 */"TTY_$K_INQ_SESSION_ID", "x,x,x",
/* 0x93 */"TTY_$K_SET_SESSION_ID", "x,x,x",
-/* 0x94 */NULL, NULL,
-/* 0x95 */NULL, NULL,
-/* 0x96 */NULL, NULL,
-/* 0x97 */NULL, NULL,
+/* 0x94 */nullptr, nullptr,
+/* 0x95 */nullptr, nullptr,
+/* 0x96 */nullptr, nullptr,
+/* 0x97 */nullptr, nullptr,
/* 0x98 */"SMD_$SHARE_DEVICE", "x,x,x",
/* 0x99 */"SMD_$SET_UNIT_CURSOR_POS", "x,x,x",
/* 0x9a */"SMD_$CLR_AND_LOAD_TRK_RECT", "x,x,x",
/* 0x9b */"PROC2_$GET_PARM", "x,x,x",
-/* 0x9c */NULL, NULL,
-/* 0x9d */NULL, NULL,
-/* 0x9e */NULL, NULL,
+/* 0x9c */nullptr, nullptr,
+/* 0x9d */nullptr, nullptr,
+/* 0x9e */nullptr, nullptr,
/* 0x9f */"FILE_$CW_READ", "x,x,x",
/* 0xa0 */"FILE_$CW_WRITE", "x,x,x",
/* 0xa1 */"MST_$TRUNC_XTAL", "x,x,x",
@@ -461,17 +461,17 @@ static const char* trap3[] = {
/* 0xa7 */"THREAD_$CLEANUP_ALL", "x,x,x",
/* 0xa8 */"DIR_$ADD_MOUNT", "x,x,x",
/* 0xa9 */"DIR_$REMOVE_MOUNT", "x,x,x",
-/* 0xaa */NULL, NULL,
+/* 0xaa */nullptr, nullptr,
/* 0xab */"TTY_$K_RESET", "x,x,x",
/* 0xac */"MST_$SHADOW_MAP", "x,x,x",
-/* 0xad */NULL, NULL };
+/* 0xad */nullptr, nullptr };
//------------------------------------------------------
// TRAP4
//------------------------------------------------------
static const char* trap4[] = {
-/* 0x00 */NULL, NULL,
+/* 0x00 */nullptr, nullptr,
/* 0x01 */"MST_$SET_GUARD", "u,x,x,x",
/* 0x02 */"MST_$UNMAP_GLOBAL", "u,x,x,x",
/* 0x03 */"MST_$GET_UID", "x,u,x,x",
@@ -479,81 +479,81 @@ static const char* trap4[] = {
/* 0x05 */"FILE_$READ_LOCK_ENTRY", "x,x,x,x",
/* 0x06 */"MST_$UNMAP", "u,x,x,x",
/* 0x07 */"MST_$GROW_AREA", "x,x,x,x",
-/* 0x08 */NULL, NULL,
-/* 0x09 */NULL, NULL,
-/* 0x0a */NULL, NULL,
-/* 0x0b */NULL, NULL,
+/* 0x08 */nullptr, nullptr,
+/* 0x09 */nullptr, nullptr,
+/* 0x0a */nullptr, nullptr,
+/* 0x0b */nullptr, nullptr,
/* 0x0c */"TERM_$CONTROL", "x,x,x,x",
/* 0x0d */"TERM_$READ", "x,s,x,x",
/* 0x0e */"TERM_$WRITE", "x,x,x,x",
/* 0x0f */"DISK_$FORMAT", "x,x,x,x",
/* 0x10 */"DISK_$LV_ASSIGN", "x,x,x,x",
/* 0x11 */"FILE_$FW_PARTIAL", "x,x,x,x",
-/* 0x12 */NULL, NULL,
-/* 0x13 */NULL, NULL,
-/* 0x14 */NULL, NULL,
-/* 0x15 */NULL, NULL,
-/* 0x16 */NULL, NULL,
-/* 0x17 */NULL, NULL,
-/* 0x18 */NULL, NULL,
-/* 0x19 */NULL, NULL,
-/* 0x1a */NULL, NULL,
-/* 0x1b */NULL, NULL,
-/* 0x1c */NULL, NULL,
-/* 0x1d */NULL, NULL,
-/* 0x1e */NULL, NULL,
-/* 0x1f */NULL, NULL,
-/* 0x20 */NULL, NULL,
-/* 0x21 */NULL, NULL,
-/* 0x22 */NULL, NULL,
+/* 0x12 */nullptr, nullptr,
+/* 0x13 */nullptr, nullptr,
+/* 0x14 */nullptr, nullptr,
+/* 0x15 */nullptr, nullptr,
+/* 0x16 */nullptr, nullptr,
+/* 0x17 */nullptr, nullptr,
+/* 0x18 */nullptr, nullptr,
+/* 0x19 */nullptr, nullptr,
+/* 0x1a */nullptr, nullptr,
+/* 0x1b */nullptr, nullptr,
+/* 0x1c */nullptr, nullptr,
+/* 0x1d */nullptr, nullptr,
+/* 0x1e */nullptr, nullptr,
+/* 0x1f */nullptr, nullptr,
+/* 0x20 */nullptr, nullptr,
+/* 0x21 */nullptr, nullptr,
+/* 0x22 */nullptr, nullptr,
/* 0x23 */"PBU_$WAIT", "x,x,x,x",
/* 0x24 */"PBU_$GET_PTR", "x,x,x,x",
/* 0x25 */"PCHIST_$CNTL", "x,x,x,x",
/* 0x26 */"PROC2_$GET_INFO", "u,x,x,x",
-/* 0x27 */NULL, NULL,
-/* 0x28 */NULL, NULL,
-/* 0x29 */NULL, NULL,
+/* 0x27 */nullptr, nullptr,
+/* 0x28 */nullptr, nullptr,
+/* 0x29 */nullptr, nullptr,
/* 0x2a */"SMD_$SIGNAL", "x,x,x,x",
-/* 0x2b */NULL, NULL,
-/* 0x2c */NULL, NULL,
+/* 0x2b */nullptr, nullptr,
+/* 0x2c */nullptr, nullptr,
/* 0x2d */"TERM_$INQUIRE", "x,x,x,x",
-/* 0x2e */NULL, NULL,
-/* 0x2f */NULL, NULL,
-/* 0x30 */NULL, NULL,
+/* 0x2e */nullptr, nullptr,
+/* 0x2f */nullptr, nullptr,
+/* 0x30 */nullptr, nullptr,
/* 0x31 */"TERM_$GET_EC", "x,x,x,x",
-/* 0x32 */NULL, NULL,
+/* 0x32 */nullptr, nullptr,
/* 0x33 */"PBU_$GET_EC", "x,x,x,x",
-/* 0x34 */NULL, NULL,
-/* 0x35 */NULL, NULL,
-/* 0x36 */NULL, NULL,
-/* 0x37 */NULL, NULL,
+/* 0x34 */nullptr, nullptr,
+/* 0x35 */nullptr, nullptr,
+/* 0x36 */nullptr, nullptr,
+/* 0x37 */nullptr, nullptr,
/* 0x38 */"TERM_$READ_COND", "x,x,x,x",
-/* 0x39 */NULL, NULL,
-/* 0x3a */NULL, NULL,
+/* 0x39 */nullptr, nullptr,
+/* 0x3a */nullptr, nullptr,
/* 0x3b */"PBU2_$WIRE", "x,x,x,x",
/* 0x3c */"PROC2_$SET_NAME", "x,x,x,x",
/* 0x3d */"PROC2_$SET_PRIORITY", "x,x,x,x",
/* 0x3e */"PROC2_$GET_EC", "u,x,x,x",
/* 0x3f */"PROC2_$LIST_PGROUP", "x,x,x,x",
-/* 0x40 */NULL, NULL,
-/* 0x41 */NULL, NULL,
-/* 0x42 */NULL, NULL,
+/* 0x40 */nullptr, nullptr,
+/* 0x41 */nullptr, nullptr,
+/* 0x42 */nullptr, nullptr,
/* 0x43 */"CT_$CONTROL", "x,x,x,x",
/* 0x44 */"CT_$WAIT", "x,x,x,x",
/* 0x45 */"DIR_$DROP_DIRU", "x,x,x,x",
/* 0x46 */"DIR_$SET_DEFAULT_ACL", "x,x,x,x",
/* 0x47 */"DIR_$GET_DEFAULT_ACL", "x,x,x,x",
/* 0x48 */"NAME_$READ_DIRS_PS", "x,x,x,x",
-/* 0x49 */NULL, NULL,
+/* 0x49 */nullptr, nullptr,
/* 0x4a */"ACL_$GET_PROJ_LIST", "x,x,x,x",
/* 0x4b */"MST_$CHANGE_RIGHTS", "x,x,x,x",
-/* 0x4c */NULL, NULL,
+/* 0x4c */nullptr, nullptr,
/* 0x4d */"FILE_$READ_LOCK_ENTRYI", "x,x,x,x",
/* 0x4e */"ROUTE_$INCOMING", "x,x,x,x",
-/* 0x4f */NULL, NULL,
+/* 0x4f */nullptr, nullptr,
/* 0x50 */"SMD_$INQ_KBD_TYPE", "x,x,x,x",
/* 0x51 */"ROUTE_$GET_EC", "x,x,x,x",
-/* 0x52 */NULL, NULL,
+/* 0x52 */nullptr, nullptr,
/* 0x53 */"SMD_$DM_COND_EVENT_WAIT", "x,x,x,x",
/* 0x54 */"DISK_$READ_MFG_BADSPOTS", "x,x,x,x",
/* 0x55 */"DISK_$GET_MNT_INFO", "x,x,x,x",
@@ -575,7 +575,7 @@ static const char* trap4[] = {
/* 0x65 */"XPD_$GET_REGISTERS", "x,x,x,x",
/* 0x66 */"XPD_$PUT_REGISTERS", "x,x,x,x",
/* 0x67 */"FILE_$RESERVE", "u,x,x,x",
-/* 0x68 */NULL, NULL,
+/* 0x68 */nullptr, nullptr,
/* 0x69 */"ACL_$GET_RES_SIDS", "x,x,x,x",
/* 0x6a */"FILE_$FW_PAGES", "x,x,x,x",
/* 0x6b */"PROC2_$SET_ACCT_INFO", "s,x,x,x",
@@ -585,13 +585,13 @@ static const char* trap4[] = {
/* 0x6f */"FILE_$TRUNCATE_D", "x,x,x,x",
/* 0x70 */"FILE_$SET_DTM_F", "x,x,x,x",
/* 0x71 */"TTY_$K_SET_FLAG", "x,x,x,x",
-/* 0x72 */NULL, NULL,
+/* 0x72 */nullptr, nullptr,
/* 0x73 */"MST_$UNMAP_AND_FREE_AREA", "x,x,x,x",
-/* 0x74 */NULL, NULL,
+/* 0x74 */nullptr, nullptr,
/* 0x75 */"PROC2_$NAME_TO_UID", "S,w,u,x",
-/* 0x76 */NULL, NULL,
-/* 0x77 */NULL, NULL,
-/* 0x78 */NULL, NULL,
+/* 0x76 */nullptr, nullptr,
+/* 0x77 */nullptr, nullptr,
+/* 0x78 */nullptr, nullptr,
/* 0x79 */"SCSI_$GET_EC", "x,x,x,x",
/* 0x7a */"SCSI_$GET_INFO", "x,x,x,x",
/* 0x7b */"SCSI_$SETUP", "x,x,x,x",
@@ -599,12 +599,12 @@ static const char* trap4[] = {
/* 0x7d */"MSG_$SHARE_SOCKET", "x,x,x,x",
/* 0x7e */"TTY_$K_INQ_DELAY", "x,x,x,x",
/* 0x7f */"TTY_$K_SET_DELAY", "x,x,x,x",
-/* 0x80 */NULL, NULL,
-/* 0x81 */NULL, NULL,
+/* 0x80 */nullptr, nullptr,
+/* 0x81 */nullptr, nullptr,
/* 0x82 */"PROC2_$PGROUP_INFO", "x,x,x,x",
/* 0x83 */"PROC2_$SET_PARM", "x,x,x,x",
-/* 0x84 */NULL, NULL,
-/* 0x85 */NULL, NULL,
+/* 0x84 */nullptr, nullptr,
+/* 0x85 */nullptr, nullptr,
/* 0x86 */"XPAGE_$PAGER_RENDEZVOUS", "x,x,x,x",
/* 0x87 */"FILE_$SET_DEVNO32", "x,x,x,x",
/* 0x88 */"MST_$SET_LIMIT", "x,x,x,x",
@@ -618,23 +618,23 @@ static const char* trap4[] = {
//------------------------------------------------------
static const char* trap5[] = {
-/* 0x00 */NULL, NULL,
+/* 0x00 */nullptr, nullptr,
/* 0x01 */"MST_$MAP_AREA", "x,x,x,u,x",
-/* 0x02 */NULL, NULL,
-/* 0x03 */NULL, NULL,
-/* 0x04 */NULL, NULL,
+/* 0x02 */nullptr, nullptr,
+/* 0x03 */nullptr, nullptr,
+/* 0x04 */nullptr, nullptr,
/* 0x05 */"ACL_$RIGHTS", "x,x,x,x,x",
-/* 0x06 */NULL, NULL,
+/* 0x06 */nullptr, nullptr,
/* 0x07 */"ASKNODE_$INFO", "x,x,x,x,x",
/* 0x08 */"DISK_$AS_READ", "x,x,x,x,x",
/* 0x09 */"DISK_$AS_WRITE", "x,x,x,x,x",
-/* 0x0a */NULL, NULL,
-/* 0x0b */NULL, NULL,
-/* 0x0c */NULL, NULL,
-/* 0x0d */NULL, NULL,
-/* 0x0e */NULL, NULL,
-/* 0x0f */NULL, NULL,
-/* 0x10 */NULL, NULL,
+/* 0x0a */nullptr, nullptr,
+/* 0x0b */nullptr, nullptr,
+/* 0x0c */nullptr, nullptr,
+/* 0x0d */nullptr, nullptr,
+/* 0x0e */nullptr, nullptr,
+/* 0x0f */nullptr, nullptr,
+/* 0x10 */nullptr, nullptr,
/* 0x11 */"PBU_$GET_DCTE", "x,x,x,x,x",
/* 0x12 */"PBU_$READ_CSR", "x,x,x,x,x",
/* 0x13 */"PBU_$CONTROL", "x,x,x,x,x",
@@ -647,8 +647,8 @@ static const char* trap5[] = {
/* 0x1a */"VTOC_$GET_UID", "x,x,x,x,x",
/* 0x1b */"NETLOG_$CNTL", "x,x,x,x,x",
/* 0x1c */"PROC2_$GET_UPIDS", "x,x,x,x,x",
-/* 0x1d */NULL, NULL,
-/* 0x1e */NULL, NULL,
+/* 0x1d */nullptr, nullptr,
+/* 0x1e */nullptr, nullptr,
/* 0x1f */"PBU2_$ALLOCATE_MAP", "x,x,x,x,x",
/* 0x20 */"PBU2_$MAP", "x,x,x,x,x",
/* 0x21 */"PBU2_$UNMAP", "x,x,x,x,x",
@@ -656,13 +656,13 @@ static const char* trap5[] = {
/* 0x23 */"MST_$GET_UID_ASID", "x,x,x,x,x",
/* 0x24 */"MST_$INVALIDATE", "x,x,u,x,x",
/* 0x25 */"FILE_$INVALIDATE", "x,x,x,x,x",
-/* 0x26 */NULL, NULL,
-/* 0x27 */NULL, NULL,
-/* 0x28 */NULL, NULL,
+/* 0x26 */nullptr, nullptr,
+/* 0x27 */nullptr, nullptr,
+/* 0x28 */nullptr, nullptr,
/* 0x29 */"MST_$SET_TOUCH_AHEAD_CNT", "x,x,x,x,x",
/* 0x2a */"OS_$CHKSUM", "x,x,x,x,x",
/* 0x2b */"FILE_$GET_SEGMENT_MAP", "x,x,x,x,x",
-/* 0x2c */NULL, NULL,
+/* 0x2c */nullptr, nullptr,
/* 0x2d */"PBU2_$ASSOC", "x,x,x,x,x",
/* 0x2e */"FILE_$UNLOCK_PROC", "x,x,x,x,x",
/* 0x2f */"CT_$READ", "x,x,x,x,x",
@@ -671,19 +671,19 @@ static const char* trap5[] = {
/* 0x32 */"DIR_$DROPU", "x,x,x,x,x",
/* 0x33 */"DIR_$CREATE_DIRU", "x,x,x,x,x",
/* 0x34 */"DIR_$ADD_BAKU", "x,x,x,x,x",
-/* 0x35 */NULL, NULL,
-/* 0x36 */NULL, NULL,
-/* 0x37 */NULL, NULL,
+/* 0x35 */nullptr, nullptr,
+/* 0x36 */nullptr, nullptr,
+/* 0x37 */nullptr, nullptr,
/* 0x38 */"DIR_$ADD_HARD_LINKU", "x,x,x,x,x",
-/* 0x39 */NULL, NULL,
+/* 0x39 */nullptr, nullptr,
/* 0x3a */"RIP_$UPDATE", "x,x,x,x,x",
/* 0x3b */"DIR_$DROP_LINKU", "x,x,x,x,x",
/* 0x3c */"ACL_$CHECK_RIGHTS", "x,x,x,x,x",
/* 0x3d */"DIR_$DROP_HARD_LINKU", "x,x,x,x,x",
/* 0x3e */"ROUTE_$OUTGOING", "x,x,x,x,x",
-/* 0x3f */NULL, NULL,
-/* 0x40 */NULL, NULL,
-/* 0x41 */NULL, NULL,
+/* 0x3f */nullptr, nullptr,
+/* 0x40 */nullptr, nullptr,
+/* 0x41 */nullptr, nullptr,
/* 0x42 */"NET_$GET_INFO", "x,x,x,x,x",
/* 0x43 */"DIR_$GET_ENTRYU", "x,x,x,x,x",
/* 0x44 */"AUDIT_$LOG_EVENT", "x,x,x,x,x",
@@ -691,7 +691,7 @@ static const char* trap5[] = {
/* 0x46 */"TTY_$K_GET", "x,x,s,x,x",
/* 0x47 */"TTY_$K_PUT", "x,x,S,w,x",
/* 0x48 */"PROC2_$ALIGN_CTL", "x,x,x,x,x",
-/* 0x49 */NULL, NULL,
+/* 0x49 */nullptr, nullptr,
/* 0x4a */"XPD_$READ_PROC", "x,x,x,x,x",
/* 0x4b */"XPD_$WRITE_PROC", "x,x,x,x,x",
/* 0x4c */"DIR_$SET_DEF_PROTECTION", "x,x,x,x,x",
@@ -705,24 +705,24 @@ static const char* trap5[] = {
/* 0x54 */"FILE_$EXPORT_LK", "x,x,x,x,x",
/* 0x55 */"FILE_$CHANGE_LOCK_D", "x,x,x,x,x",
/* 0x56 */"XPD_$READ_PROC_ASYNC", "x,x,x,x,x",
-/* 0x57 */NULL, NULL,
+/* 0x57 */nullptr, nullptr,
/* 0x58 */"SMD_$MAP_DISPLAY_MEMORY", "x,x,x,x,x",
-/* 0x59 */NULL, NULL,
-/* 0x5a */NULL, NULL,
-/* 0x5b */NULL, NULL,
-/* 0x5c */NULL, NULL,
+/* 0x59 */nullptr, nullptr,
+/* 0x5a */nullptr, nullptr,
+/* 0x5b */nullptr, nullptr,
+/* 0x5c */nullptr, nullptr,
/* 0x5d */"SCSI_$UNWIRE", "x,x,x,x,x",
/* 0x5e */"SMD_$UNMAP_DISPLAY_MEMORY", "x,x,x,x,x",
/* 0x5f */"SMD_$SET_COLOR_TABLE", "x,x,x,x,x",
/* 0x60 */"RIP_$TABLE_D", "x,x,x,x,x",
-/* 0x61 */NULL, NULL,
+/* 0x61 */nullptr, nullptr,
/* 0x62 */"SMD_$DEVICE_INFO", "x,x,x,x,x",
-/* 0x63 */NULL, NULL,
-/* 0x64 */NULL, NULL,
+/* 0x63 */nullptr, nullptr,
+/* 0x64 */nullptr, nullptr,
/* 0x65 */"THREAD_$GET_STATE", "x,x,x,p,x",
/* 0x66 */"THREAD_$SET_STATE", "x,x,x,p,x",
/* 0x67 */"THREAD_$SET_STACK", "x,u,x,x,x",
-/* 0x68 */NULL, NULL };
+/* 0x68 */nullptr, nullptr };
//------------------------------------------------------
// TRAP7
@@ -732,50 +732,50 @@ static const char* trap7[] = {
/* 0x00 */"FILE_$LOCK", "u,x,x,x,x,x,x",
/* 0x01 */"VFMT_$WRITE", "s,x,x,x,x,x,x",
/* 0x02 */"MST_$MAP_AREA_AT", "x,x,x,x,x,x,x",
-/* 0x03 */NULL, NULL,
-/* 0x04 */NULL, NULL,
-/* 0x05 */NULL, NULL,
-/* 0x06 */NULL, NULL,
-/* 0x07 */NULL, NULL,
-/* 0x08 */NULL, NULL,
-/* 0x09 */NULL, NULL,
-/* 0x0a */NULL, NULL,
-/* 0x0b */NULL, NULL,
-/* 0x0c */NULL, NULL,
+/* 0x03 */nullptr, nullptr,
+/* 0x04 */nullptr, nullptr,
+/* 0x05 */nullptr, nullptr,
+/* 0x06 */nullptr, nullptr,
+/* 0x07 */nullptr, nullptr,
+/* 0x08 */nullptr, nullptr,
+/* 0x09 */nullptr, nullptr,
+/* 0x0a */nullptr, nullptr,
+/* 0x0b */nullptr, nullptr,
+/* 0x0c */nullptr, nullptr,
/* 0x0d */"VFMT_$ENCODE/VFMT_$FORMAT", "x,x,x,x,x,x,x",
/* 0x0e */"VFMT_$ENCODE/VFMT_$FORMAT", "x,x,x,x,x,x,x",
/* 0x0f */"STOP_$WATCH", "x,x,x,x,x,x,x",
-/* 0x10 */NULL, NULL,
-/* 0x11 */NULL, NULL,
+/* 0x10 */nullptr, nullptr,
+/* 0x11 */nullptr, nullptr,
/* 0x12 */"ASKNODE_$GET_INFO", "x,x,x,x,x,x,x",
/* 0x13 */"DISK_$DIAG_IO", "x,x,x,x,x,x,x",
-/* 0x14 */NULL, NULL,
-/* 0x15 */NULL, NULL,
-/* 0x16 */NULL, NULL,
+/* 0x14 */nullptr, nullptr,
+/* 0x15 */nullptr, nullptr,
+/* 0x16 */nullptr, nullptr,
/* 0x17 */"CT_$DIAG", "x,x,x,x,x,x,x",
/* 0x18 */"TIME_$SET_ITIMER", "x,x,x,x,x,x,x",
/* 0x19 */"OSINFO_$GET_STATS", "x,x,x,x,x,x,x",
/* 0x1a */"DIR_$CNAMEU", "x,x,x,x,x,x,x",
/* 0x1b */"DIR_$DELETE_FILEU", "u,S,w,x,x,x,x",
/* 0x1c */"DIR_$ADD_LINKU", "x,x,x,x,x,x,x",
-/* 0x1d */NULL, NULL,
-/* 0x1e */NULL, NULL,
-/* 0x1f */NULL, NULL,
-/* 0x20 */NULL, NULL,
+/* 0x1d */nullptr, nullptr,
+/* 0x1e */nullptr, nullptr,
+/* 0x1f */nullptr, nullptr,
+/* 0x20 */nullptr, nullptr,
/* 0x21 */"ASKNODE_$WHO_REMOTE", "x,x,x,x,x,x,x",
/* 0x22 */"MST_$REMAP", "x,x,x,x,x,x,x",
/* 0x23 */"DIR_$ROOT_ADDU", "x,x,x,x,x,x,x",
-/* 0x24 */NULL, NULL,
-/* 0x25 */NULL, NULL,
-/* 0x26 */NULL, NULL,
-/* 0x27 */NULL, NULL,
+/* 0x24 */nullptr, nullptr,
+/* 0x25 */nullptr, nullptr,
+/* 0x26 */nullptr, nullptr,
+/* 0x27 */nullptr, nullptr,
/* 0x28 */"ASKNODE_$WHO_NOTOPO", "x,x,x,x,x,x,x",
/* 0x29 */"NET_$OPEN", "x,x,x,x,x,x,x",
/* 0x2a */"NET_$CLOSE", "x,x,x,x,x,x,x",
/* 0x2b */"NET_$IOCTL", "x,x,x,x,x,x,x",
/* 0x2c */"DIR_$FIND_UID", "u,u,x,S,w,x,x",
/* 0x2d */"FILE_$GET_ATTRIBUTES", "u,x,x,x,x,x,-",
-/* 0x2e */NULL, NULL,
+/* 0x2e */nullptr, nullptr,
/* 0x2f */"PCHIST_$UNIX_PROFIL_CNTL", "x,x,x,x,x,x,x",
/* 0x30 */"XPD_$RESTART", "x,x,x,x,x,x,x",
/* 0x31 */"FILE_$GET_ATTR_INFO", "u,x,x,x,x,x,p",
@@ -802,12 +802,12 @@ static const char* trap8[] = {
/* 0x03 - 0x0A */"VFMT_$WRITE", "s,x,x,x,x,x,x,x,x,x",
/* 0x04 - 0x06 */"VOLX_$DISMOUNT", "x,x,x,x,x,x",
/* 0x05 - 0x06 */"VOLX_$GET_UIDS", "x,x,x,x,x,x",
-/* 0x06 - 0x07 */NULL, NULL,
+/* 0x06 - 0x07 */nullptr, nullptr,
/* 0x07 - 0x07 */"DISK_$PV_ASSIGN", "x,x,x,x,x,x,x",
/* 0x08 - 0x0B */"MSG_$RCV", "x,x,x,x,x,x,x,x,x,x,x",
/* 0x09 - 0x10 */"MSG_$SAR", "x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x",
/* 0x0a - 0x0A */"MSG_$SEND", "x,x,x,x,x,x,x,x,x,x",
-/* 0x0b - 0x06 */NULL, NULL,
+/* 0x0b - 0x06 */nullptr, nullptr,
/* 0x0c - 0x07 */"SMD_$LOAD_CRSR_BITMAP", "x,x,x,x,x,x,x",
/* 0x0d - 0x07 */"SMD_$READ_CRSR_BITMAP", "x,x,x,x,x,x,x",
/* 0x0e - 0x0D */"VFMT_$ENCODE/VFMT_$FORMAT", "s,x,x,x,x,x,x,x,x,x,x,x,x",
@@ -823,22 +823,22 @@ static const char* trap8[] = {
/* 0x18 - 0x0F */"MSG_$RCVI", "x,x,x,x,x,x,x,x,x,x,x,x,x,x,x",
/* 0x19 - 0x0C */"MSG_$RCV_CONTIGI", "x,x,x,x,x,x,x,x,x,x,x,x",
/* 0x1a - 0x11 */"MSG_$SARI", "x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x",
-/* 0x1b - 0x06 */NULL, NULL,
+/* 0x1b - 0x06 */nullptr, nullptr,
/* 0x1c - 0x0E */"MSG_$SEND_HW", "x,x,x,x,x,x,x,x,x,x,x,x,x,x",
/* 0x1d - 0x07 */"PBU_$WIRE_SPECIAL", "x,x,x,x,x,x,x",
/* 0x1e - 0x06 */"PBU_$DMA_START", "x,x,x,x,x,x",
-/* 0x1f - 0x08 */NULL, NULL,
+/* 0x1f - 0x08 */nullptr, nullptr,
/* 0x20 - 0x07 */"MST_$MAP_TOP", "x,x,x,x,x,x,x",
/* 0x21 - 0x08 */"NET_$SEND", "x,x,x,x,x,x,x,x",
/* 0x22 - 0x08 */"NET_$RCV", "x,x,x,x,x,x,x,x",
/* 0x23 - 0x08 */"DIR_$DIR_READU", "u,S,w,x,x,x,x,x",
/* 0x24 - 0x07 */"DIR_$READ_LINKU", "x,x,x,x,x,x,x",
/* 0x25 - 0x07 */"PBU2_$DMA_START", "x,x,x,x,x,x,x",
-/* 0x26 - 0x09 */NULL, NULL,
-/* 0x27 - 0x09 */NULL, NULL,
+/* 0x26 - 0x09 */nullptr, nullptr,
+/* 0x27 - 0x09 */nullptr, nullptr,
/* 0x28 - 0x07 */"PROC2_$COMPLETE_VFORK", "x,x,x,x,x,x,x",
-/* 0x29 - 0x07 */NULL, NULL,
-/* 0x2a - 0x06 */NULL, NULL,
+/* 0x29 - 0x07 */nullptr, nullptr,
+/* 0x2a - 0x06 */nullptr, nullptr,
/* 0x2b - 0x0A */"DIR_$RESOLVE", "S,w,u,u,x,x,x,x,x,x",
/* 0x2c - 0x08 */"VOLX_$MOUNT", "x,x,x,x,x,x,x,x",
/* 0x2d - 0x06 */"ACL_$IMAGE", "x,x,x,x,x,x",
@@ -938,8 +938,8 @@ static const char* get_svc_call(m68000_base_device *m68k, int trap_no,
{
UINT32 sp = REG_A(m68k)[7];
UINT32 pa;
- const char * name = NULL;
- const char * param = NULL;
+ const char * name = nullptr;
+ const char * param = nullptr;
switch (trap_no)
{
@@ -1003,14 +1003,14 @@ static const char* get_svc_call(m68000_base_device *m68k, int trap_no,
sb[0] = '\0';
- if (name == NULL)
+ if (name == nullptr)
{
strcat(sb, "???");
}
else
{
strcat(sb, name);
- if (param != NULL)
+ if (param != nullptr)
{
int i;
strcat(sb, "(");
diff --git a/src/mame/machine/apollo_kbd.cpp b/src/mame/machine/apollo_kbd.cpp
index 6cb767bc67f..d646b9d70c9 100644
--- a/src/mame/machine/apollo_kbd.cpp
+++ b/src/mame/machine/apollo_kbd.cpp
@@ -146,7 +146,7 @@ const char *apollo_kbd_device::cpu_context()
int ms = (t % osd_ticks_per_second()) / 1000;
/* if we have an executing CPU, output data */
- if (cpu != NULL)
+ if (cpu != nullptr)
{
sprintf(statebuf, "%d.%03d %s pc=%08x - %s", s, ms, cpu->tag(),
cpu->safe_pcbase(), tag());
@@ -163,9 +163,9 @@ const char *apollo_kbd_device::cpu_context()
//**************************************************************************
apollo_kbd_device::beeper::beeper() :
- m_device(NULL),
- m_beeper(NULL),
- m_timer(NULL)
+ m_device(nullptr),
+ m_beeper(nullptr),
+ m_timer(nullptr)
{
}
@@ -218,7 +218,7 @@ TIMER_CALLBACK( apollo_kbd_device::beeper::static_beeper_callback )
//**************************************************************************
apollo_kbd_device::mouse::mouse() :
- m_device(NULL)
+ m_device(nullptr)
{
}
diff --git a/src/mame/machine/appldriv.cpp b/src/mame/machine/appldriv.cpp
index 86e2657cf9b..1257b720e23 100644
--- a/src/mame/machine/appldriv.cpp
+++ b/src/mame/machine/appldriv.cpp
@@ -21,7 +21,7 @@
INLINE apple525_floppy_image_device *get_device(device_t *device)
{
- assert(device != NULL);
+ assert(device != nullptr);
assert(device->type() == FLOPPY_APPLE);
return (apple525_floppy_image_device *) downcast<apple525_floppy_image_device *>(device);
@@ -37,7 +37,7 @@ legacy_floppy_image_device *apple525_get_subdevice(device_t *device, int drive)
case 2 : return device->subdevice<legacy_floppy_image_device>(PARENT_FLOPPY_2);
case 3 : return device->subdevice<legacy_floppy_image_device>(PARENT_FLOPPY_3);
}
- return NULL;
+ return nullptr;
}
device_t *apple525_get_device_by_type(device_t *device, int ftype, int drive)
@@ -53,7 +53,7 @@ device_t *apple525_get_device_by_type(device_t *device, int ftype, int drive)
cnt++;
}
}
- return NULL;
+ return nullptr;
}
void apple525_set_enable_lines(device_t *device,int enable_mask)
@@ -166,10 +166,10 @@ static void apple525_disk_set_lines(device_t *device,device_t *image, UINT8 new_
int apple525_get_count(device_t *device)
{
int cnt = 0;
- if ((device->subdevice("^" FLOPPY_0)!=NULL) && (device->subdevice<legacy_floppy_image_device>("^" FLOPPY_0)->floppy_get_drive_type() == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_0))!=NULL)) cnt++;
- if ((device->subdevice("^" FLOPPY_1)!=NULL) && (device->subdevice<legacy_floppy_image_device>("^" FLOPPY_1)->floppy_get_drive_type() == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_1))!=NULL)) cnt++;
- if ((device->subdevice("^" FLOPPY_2)!=NULL) && (device->subdevice<legacy_floppy_image_device>("^" FLOPPY_2)->floppy_get_drive_type() == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_2))!=NULL)) cnt++;
- if ((device->subdevice("^" FLOPPY_3)!=NULL) && (device->subdevice<legacy_floppy_image_device>("^" FLOPPY_3)->floppy_get_drive_type() == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_3))!=NULL)) cnt++;
+ if ((device->subdevice("^" FLOPPY_0)!=nullptr) && (device->subdevice<legacy_floppy_image_device>("^" FLOPPY_0)->floppy_get_drive_type() == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_0))!=nullptr)) cnt++;
+ if ((device->subdevice("^" FLOPPY_1)!=nullptr) && (device->subdevice<legacy_floppy_image_device>("^" FLOPPY_1)->floppy_get_drive_type() == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_1))!=nullptr)) cnt++;
+ if ((device->subdevice("^" FLOPPY_2)!=nullptr) && (device->subdevice<legacy_floppy_image_device>("^" FLOPPY_2)->floppy_get_drive_type() == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_2))!=nullptr)) cnt++;
+ if ((device->subdevice("^" FLOPPY_3)!=nullptr) && (device->subdevice<legacy_floppy_image_device>("^" FLOPPY_3)->floppy_get_drive_type() == FLOPPY_TYPE_APPLE) && (get_device(device->subdevice(PARENT_FLOPPY_3))!=nullptr)) cnt++;
return cnt;
}
@@ -253,7 +253,7 @@ static device_t *apple525_selected_image(device_t *device)
if (apple525_enable_mask & (1 << i))
return apple525_get_device_by_type(device, FLOPPY_TYPE_APPLE, i);
}
- return NULL;
+ return nullptr;
}
UINT8 apple525_read_data(device_t *device)
diff --git a/src/mame/machine/apple2.cpp b/src/mame/machine/apple2.cpp
index 765f97ad92a..88a2158ab8b 100644
--- a/src/mame/machine/apple2.cpp
+++ b/src/mame/machine/apple2.cpp
@@ -46,7 +46,7 @@ READ8_MEMBER(apple2_state::read_floatingbus)
void apple2_state::apple2_setup_memory(const apple2_memmap_config *config)
{
m_mem_config = *config;
- m_current_meminfo = NULL;
+ m_current_meminfo = nullptr;
apple2_update_memory();
}
@@ -91,11 +91,11 @@ void apple2_state::apple2_update_memory()
|| (meminfo.read_mem != m_current_meminfo[i].read_mem)
|| (meminfo.read_handler != m_current_meminfo[i].read_handler))
{
- rbase = NULL;
+ rbase = nullptr;
sprintf(rbank,"bank%d",bank);
begin = m_mem_config.memmap[i].begin;
end_r = m_mem_config.memmap[i].end;
- rh = NULL;
+ rh = nullptr;
LOG(("apple2_update_memory(): Updating RD {%06X..%06X} [#%02d] --> %08X\n",
begin, end_r, bank, meminfo.read_mem));
@@ -183,14 +183,14 @@ void apple2_state::apple2_update_memory()
|| (meminfo.write_mem != m_current_meminfo[i].write_mem)
|| (meminfo.write_handler != m_current_meminfo[i].write_handler))
{
- wbase = NULL;
+ wbase = nullptr;
if (bank_disposition == A2MEM_MONO)
sprintf(wbank,"bank%d",bank);
else if (bank_disposition == A2MEM_DUAL)
sprintf(wbank,"bank%d",bank+1);
begin = m_mem_config.memmap[i].begin;
end_w = m_mem_config.memmap[i].end;
- wh = NULL;
+ wh = nullptr;
LOG(("apple2_update_memory(): Updating WR {%06X..%06X} [#%02d] --> %08X\n",
begin, end_w, bank, meminfo.write_mem));
@@ -402,7 +402,7 @@ READ8_MEMBER(apple2_state::apple2_c080_r)
slotdevice = m_a2bus->get_a2bus_card(slot);
/* and if we can, read from the slot */
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
return slotdevice->read_c0nx(space, offset % 0x10);
}
@@ -506,7 +506,7 @@ WRITE8_MEMBER(apple2_state::apple2_c080_w)
slotdevice = m_a2bus->get_a2bus_card(slot);
/* and if we can, write to the slot */
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_c0nx(space, offset % 0x10, data);
}
@@ -539,7 +539,7 @@ READ8_MEMBER(apple2_state::apple2_c1xx_r )
slotnum = ((offset>>8) & 0xf) + 1;
slotdevice = m_a2bus->get_a2bus_card(slotnum);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
if ((slotdevice->take_c800()) && (!space.debugger_access()))
{
@@ -569,7 +569,7 @@ WRITE8_MEMBER(apple2_state::apple2_c1xx_w )
slotdevice = m_a2bus->get_a2bus_card(slotnum);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_cnxx(space, offset&0xff, data);
}
@@ -589,7 +589,7 @@ READ8_MEMBER(apple2_state::apple2_c3xx_r )
slotdevice = m_a2bus->get_a2bus_card(slotnum);
// is a card installed in this slot?
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
if ((slotdevice->take_c800()) && (!space.debugger_access()))
{
@@ -617,7 +617,7 @@ WRITE8_MEMBER(apple2_state::apple2_c3xx_w )
slotnum = 3;
slotdevice = m_a2bus->get_a2bus_card(slotnum);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
if ((slotdevice->take_c800()) && (!space.debugger_access()))
{
@@ -643,7 +643,7 @@ READ8_MEMBER(apple2_state::apple2_c4xx_r )
slotdevice = m_a2bus->get_a2bus_card(slotnum);
// is a card installed in this slot?
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
if (slotdevice->take_c800() && (m_a2_cnxx_slot != slotnum) && (!space.debugger_access()))
{
@@ -670,7 +670,7 @@ WRITE8_MEMBER ( apple2_state::apple2_c4xx_w )
slotnum = ((offset>>8) & 0xf) + 4;
slotdevice = m_a2bus->get_a2bus_card(slotnum);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
if ((slotdevice->take_c800()) && (!space.debugger_access()))
{
@@ -716,7 +716,7 @@ READ8_MEMBER(apple2_state::apple2_c800_r )
slotdevice = m_a2bus->get_a2bus_card(m_a2_cnxx_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
return slotdevice->read_c800(space, offset&0xfff);
}
@@ -730,7 +730,7 @@ WRITE8_MEMBER(apple2_state::apple2_c800_w )
slotdevice = m_a2bus->get_a2bus_card(m_a2_cnxx_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_c800(space, offset&0xfff, data);
}
@@ -742,7 +742,7 @@ READ8_MEMBER(apple2_state::apple2_ce00_r )
slotdevice = m_a2bus->get_a2bus_card(m_a2_cnxx_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
return slotdevice->read_c800(space, (offset&0xfff) + 0x600);
}
@@ -756,7 +756,7 @@ WRITE8_MEMBER(apple2_state::apple2_ce00_w )
slotdevice = m_a2bus->get_a2bus_card(m_a2_cnxx_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_c800(space, (offset&0xfff)+0x600, data);
}
@@ -768,7 +768,7 @@ READ8_MEMBER(apple2_state::apple2_inh_d000_r )
slotdevice = m_a2bus->get_a2bus_card(m_inh_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
return slotdevice->read_inh_rom(space, offset & 0xfff);
}
@@ -782,7 +782,7 @@ WRITE8_MEMBER(apple2_state::apple2_inh_d000_w )
slotdevice = m_a2bus->get_a2bus_card(m_inh_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
return slotdevice->write_inh_rom(space, offset & 0xfff, data);
}
@@ -794,7 +794,7 @@ READ8_MEMBER(apple2_state::apple2_inh_e000_r )
slotdevice = m_a2bus->get_a2bus_card(m_inh_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
return slotdevice->read_inh_rom(space, (offset & 0x1fff) + 0x1000);
}
@@ -808,7 +808,7 @@ WRITE8_MEMBER(apple2_state::apple2_inh_e000_w )
slotdevice = m_a2bus->get_a2bus_card(m_inh_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_inh_rom(space, (offset & 0x1fff) + 0x1000, data);
}
@@ -1308,8 +1308,8 @@ void apple2_state::machine_reset()
int apple2_state::a2_no_ctrl_reset()
{
- return (((m_kbrepeat != NULL) && (m_resetdip == NULL)) ||
- ((m_resetdip != NULL) && !m_resetdip->read()));
+ return (((m_kbrepeat != nullptr) && (m_resetdip == nullptr)) ||
+ ((m_resetdip != nullptr) && !m_resetdip->read()));
}
/* -----------------------------------------------------------------------
@@ -2235,9 +2235,9 @@ void apple2_state::apple2_init_common()
m_rom = memregion("maincpu")->base();
m_rom_length = memregion("maincpu")->bytes() & ~0xFFF;
m_slot_length = memregion("maincpu")->bytes() - m_rom_length;
- m_slot_ram = (m_slot_length > 0) ? &m_rom[m_rom_length] : NULL;
+ m_slot_ram = (m_slot_length > 0) ? &m_rom[m_rom_length] : nullptr;
- m_auxslotdevice = NULL;
+ m_auxslotdevice = nullptr;
if (m_machinetype == APPLE_IIE || m_machinetype == TK3000)
{
m_auxslotdevice = m_a2eauxslot->get_a2eauxslot_card();
@@ -2283,14 +2283,14 @@ MACHINE_START_MEMBER(apple2_state,apple2c)
{
m_machinetype = APPLE_IIC;
- apple2eplus_init_common((void *)NULL);
+ apple2eplus_init_common((void *)nullptr);
}
MACHINE_START_MEMBER(apple2_state,tk3000)
{
m_machinetype = TK3000; // enhanced IIe clone with Z80 keyboard scanner subcpu
- apple2eplus_init_common((void *)NULL);
+ apple2eplus_init_common((void *)nullptr);
}
MACHINE_START_MEMBER(apple2_state,apple2cp)
@@ -2322,7 +2322,7 @@ MACHINE_START_MEMBER(apple2_state,apple2e)
memset(&mem_cfg, 0, sizeof(mem_cfg));
mem_cfg.first_bank = 1;
mem_cfg.memmap = apple2_memmap_entries;
- mem_cfg.auxmem = (UINT8*)NULL;
+ mem_cfg.auxmem = (UINT8*)nullptr;
apple2_setup_memory(&mem_cfg);
}
@@ -2353,14 +2353,14 @@ MACHINE_START_MEMBER(apple2_state,laser128)
memset(&mem_cfg, 0, sizeof(mem_cfg));
mem_cfg.first_bank = 1;
mem_cfg.memmap = apple2_memmap_entries;
- mem_cfg.auxmem = (UINT8*)NULL;
+ mem_cfg.auxmem = (UINT8*)nullptr;
apple2_setup_memory(&mem_cfg);
}
MACHINE_START_MEMBER(apple2_state,apple2orig)
{
apple2_memmap_config mem_cfg;
- void *apple2cp_ce00_ram = NULL;
+ void *apple2cp_ce00_ram = nullptr;
// II and II+ have no internal ROM or internal slot 3 h/w, so don't allow these states
m_flags_mask = VAR_INTCXROM|VAR_SLOTC3ROM;
@@ -2380,7 +2380,7 @@ MACHINE_START_MEMBER(apple2_state,apple2orig)
MACHINE_START_MEMBER(apple2_state,space84)
{
apple2_memmap_config mem_cfg;
- void *apple2cp_ce00_ram = NULL;
+ void *apple2cp_ce00_ram = nullptr;
// II and II+ have no internal ROM or internal slot 3 h/w, so don't allow these states
m_flags_mask = VAR_INTCXROM|VAR_SLOTC3ROM;
@@ -2400,7 +2400,7 @@ MACHINE_START_MEMBER(apple2_state,space84)
MACHINE_START_MEMBER(apple2_state,laba2p)
{
apple2_memmap_config mem_cfg;
- void *apple2cp_ce00_ram = NULL;
+ void *apple2cp_ce00_ram = nullptr;
// II and II+ have no internal ROM or internal slot 3 h/w, so don't allow these states
m_flags_mask = VAR_INTCXROM|VAR_SLOTC3ROM;
@@ -2432,7 +2432,7 @@ MACHINE_START_MEMBER(apple2_state,tk2000)
memset(&mem_cfg, 0, sizeof(mem_cfg));
mem_cfg.first_bank = 1;
mem_cfg.memmap = tk2000_memmap_entries;
- mem_cfg.auxmem = (UINT8*)NULL;
+ mem_cfg.auxmem = (UINT8*)nullptr;
apple2_setup_memory(&mem_cfg);
}
diff --git a/src/mame/machine/apple2gs.cpp b/src/mame/machine/apple2gs.cpp
index 4f7f64f0f7c..132ed6e8dca 100644
--- a/src/mame/machine/apple2gs.cpp
+++ b/src/mame/machine/apple2gs.cpp
@@ -247,7 +247,7 @@ const char *apple2gs_state::apple2gs_irq_name(UINT16 irq_mask)
case IRQ_DOC: return "IRQ_DOC";
case IRQ_SLOT: return "IRQ_SLOT";
}
- return NULL;
+ return nullptr;
}
void apple2gs_state::apple2gs_add_irq(UINT16 irq_mask)
@@ -1638,7 +1638,7 @@ UINT8 apple2gs_state::apple2gs_xxCxxx_r(address_space &space, offs_t address)
else
{
// accessing a slot mapped to "Your Card", C800 should belong to that card
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
if (slotdevice->take_c800())
{
@@ -1655,7 +1655,7 @@ UINT8 apple2gs_state::apple2gs_xxCxxx_r(address_space &space, offs_t address)
}
else // C800-CFFF, not cards
{
- slotdevice = NULL;
+ slotdevice = nullptr;
// if CFFF accessed, reset C800 area to internal ROM
if(!space.debugger_access())
@@ -1730,7 +1730,7 @@ void apple2gs_state::apple2gs_xxCxxx_w(address_space &space, offs_t address, UIN
else
{
// accessing a slot mapped to "Your Card", C800 should belong to that card if it can take it
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
if (slotdevice->take_c800())
{
@@ -1744,7 +1744,7 @@ void apple2gs_state::apple2gs_xxCxxx_w(address_space &space, offs_t address, UIN
}
else // C800-CFFF, not cards
{
- slotdevice = NULL;
+ slotdevice = nullptr;
// if CFFF accessed, reset C800 area to internal ROM
if ((address & 0xfff) == 0xfff)
@@ -1908,7 +1908,7 @@ MACHINE_RESET_MEMBER(apple2gs_state,apple2gs)
// call "base class" machine reset to set up m_rambase and the language card
machine_reset();
- m_cur_slot6_image = NULL;
+ m_cur_slot6_image = nullptr;
m_newvideo = 0x00;
m_vgcint = 0x00;
m_langsel = 0x00;
@@ -1961,7 +1961,7 @@ MACHINE_START_MEMBER(apple2gs_state,apple2gscommon)
apple2gs_refresh_delegates();
m_machinetype = APPLE_IIGS;
- apple2eplus_init_common(NULL);
+ apple2eplus_init_common(nullptr);
/* set up Apple IIgs vectoring */
m_maincpu->set_read_vector_callback(read8_delegate(FUNC(apple2gs_state::apple2gs_read_vector),this));
diff --git a/src/mame/machine/apple3.cpp b/src/mame/machine/apple3.cpp
index 8df76e3de4a..69db605aa36 100644
--- a/src/mame/machine/apple3.cpp
+++ b/src/mame/machine/apple3.cpp
@@ -196,7 +196,7 @@ READ8_MEMBER(apple3_state::apple3_c0xx_r)
case 0x98: case 0x99: case 0x9a: case 0x9b:
case 0x9c: case 0x9d: case 0x9e: case 0x9f:
slotdevice = m_a2bus->get_a2bus_card(1);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
result = slotdevice->read_c0nx(space, offset&0xf);
}
@@ -207,7 +207,7 @@ READ8_MEMBER(apple3_state::apple3_c0xx_r)
case 0xa8: case 0xa9: case 0xaa: case 0xab:
case 0xac: case 0xad: case 0xae: case 0xaf:
slotdevice = m_a2bus->get_a2bus_card(2);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
result = slotdevice->read_c0nx(space, offset&0xf);
}
@@ -218,7 +218,7 @@ READ8_MEMBER(apple3_state::apple3_c0xx_r)
case 0xb8: case 0xb9: case 0xba: case 0xbb:
case 0xbc: case 0xbd: case 0xbe: case 0xbf:
slotdevice = m_a2bus->get_a2bus_card(3);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
result = slotdevice->read_c0nx(space, offset&0xf);
}
@@ -229,7 +229,7 @@ READ8_MEMBER(apple3_state::apple3_c0xx_r)
case 0xc8: case 0xc9: case 0xca: case 0xcb:
case 0xcc: case 0xcd: case 0xce: case 0xcf:
slotdevice = m_a2bus->get_a2bus_card(4);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
result = slotdevice->read_c0nx(space, offset&0xf);
}
@@ -351,7 +351,7 @@ WRITE8_MEMBER(apple3_state::apple3_c0xx_w)
case 0x98: case 0x99: case 0x9a: case 0x9b:
case 0x9c: case 0x9d: case 0x9e: case 0x9f:
slotdevice = m_a2bus->get_a2bus_card(1);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_c0nx(space, offset&0xf, data);
}
@@ -362,7 +362,7 @@ WRITE8_MEMBER(apple3_state::apple3_c0xx_w)
case 0xa8: case 0xa9: case 0xaa: case 0xab:
case 0xac: case 0xad: case 0xae: case 0xaf:
slotdevice = m_a2bus->get_a2bus_card(2);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_c0nx(space, offset&0xf, data);
}
@@ -373,7 +373,7 @@ WRITE8_MEMBER(apple3_state::apple3_c0xx_w)
case 0xb8: case 0xb9: case 0xba: case 0xbb:
case 0xbc: case 0xbd: case 0xbe: case 0xbf:
slotdevice = m_a2bus->get_a2bus_card(3);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_c0nx(space, offset&0xf, data);
}
@@ -384,7 +384,7 @@ WRITE8_MEMBER(apple3_state::apple3_c0xx_w)
case 0xc8: case 0xc9: case 0xca: case 0xcb:
case 0xcc: case 0xcd: case 0xce: case 0xcf:
slotdevice = m_a2bus->get_a2bus_card(4);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_c0nx(space, offset&0xf, data);
}
@@ -642,7 +642,7 @@ MACHINE_RESET_MEMBER(apple3_state,apple3)
UINT8 *apple3_state::apple3_get_indexed_addr(offs_t offset)
{
- UINT8 *result = NULL;
+ UINT8 *result = nullptr;
// m_indir_bank is guaranteed to be between 0x80 and 0x8f
if (m_indir_bank == 0x8f)
@@ -810,7 +810,7 @@ READ8_MEMBER(apple3_state::apple3_memory_r)
/* now identify the device */
device_a2bus_card_interface *slotdevice = m_a2bus->get_a2bus_card((offset>>8) & 0x7);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
if (slotdevice->take_c800())
{
@@ -842,7 +842,7 @@ READ8_MEMBER(apple3_state::apple3_memory_r)
{
device_a2bus_card_interface *slotdevice = m_a2bus->get_a2bus_card(m_cnxx_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
rv = slotdevice->read_c800(space, offset&0x7ff);
}
@@ -938,7 +938,7 @@ WRITE8_MEMBER(apple3_state::apple3_memory_w)
/* now identify the device */
device_a2bus_card_interface *slotdevice = m_a2bus->get_a2bus_card((offset>>8) & 0x7);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
if (slotdevice->take_c800())
{
@@ -976,7 +976,7 @@ WRITE8_MEMBER(apple3_state::apple3_memory_w)
{
device_a2bus_card_interface *slotdevice = m_a2bus->get_a2bus_card(m_cnxx_slot);
- if (slotdevice != NULL)
+ if (slotdevice != nullptr)
{
slotdevice->write_c800(space, offset&0x7ff, data);
}
diff --git a/src/mame/machine/applefdc.cpp b/src/mame/machine/applefdc.cpp
index dac524308ba..014546b0f85 100644
--- a/src/mame/machine/applefdc.cpp
+++ b/src/mame/machine/applefdc.cpp
@@ -174,9 +174,9 @@ void applefdc_base_device::device_timer(emu_timer &timer, device_timer_id id, in
const applefdc_interface *applefdc_base_device::get_interface()
{
- static const applefdc_interface dummy_interface = {0, };
+ static const applefdc_interface dummy_interface = {nullptr, };
- return (static_config() != NULL)
+ return (static_config() != nullptr)
? (const applefdc_interface *) static_config()
: &dummy_interface;
}
@@ -331,7 +331,7 @@ void applefdc_base_device::write_reg(UINT8 data)
logerror("applefdc_write_reg(): latch mode off not implemented\n");
}
- if (intf->write_data != NULL)
+ if (intf->write_data != nullptr)
intf->write_data(this, data);
}
break;
@@ -366,7 +366,7 @@ void applefdc_base_device::turn_motor_onoff(bool status)
}
/* invoke callback, if present */
- if (intf->set_enable_lines != NULL)
+ if (intf->set_enable_lines != nullptr)
intf->set_enable_lines(this, enable_lines);
if (LOG_APPLEFDC_EXTRA)
@@ -406,7 +406,7 @@ void applefdc_base_device::iwm_access(int offset)
(offset & 1) ? "setting" : "clearing", lines[offset >> 1], m_lines);
}
- if ((offset < 0x08) && (intf->set_lines != NULL))
+ if ((offset < 0x08) && (intf->set_lines != nullptr))
intf->set_lines(this, m_lines & 0x0f);
switch(offset)
@@ -424,13 +424,13 @@ void applefdc_base_device::iwm_access(int offset)
case 0x0A:
/* turn off IWM_DRIVE */
- if ((m_lines & IWM_MOTOR) && (intf->set_enable_lines != NULL))
+ if ((m_lines & IWM_MOTOR) && (intf->set_enable_lines != nullptr))
intf->set_enable_lines(this, 1);
break;
case 0x0B:
/* turn on IWM_DRIVE */
- if ((m_lines & IWM_MOTOR) && (intf->set_enable_lines != NULL))
+ if ((m_lines & IWM_MOTOR) && (intf->set_enable_lines != nullptr))
intf->set_enable_lines(this, 2);
break;
}
@@ -463,7 +463,7 @@ UINT8 applefdc_base_device::read(UINT8 offset)
case 0x0C:
if (m_lines & IWM_Q7)
{
- if (intf->write_data != NULL)
+ if (intf->write_data != nullptr)
intf->write_data(this, m_write_byte);
result = 0;
}
@@ -525,7 +525,7 @@ void applefdc_base_device::write(UINT8 offset, UINT8 data)
case 0x0C:
if (m_lines & IWM_Q7)
{
- if (intf->write_data != NULL)
+ if (intf->write_data != nullptr)
intf->write_data(this, m_write_byte);
}
break;
diff --git a/src/mame/machine/apricotkb_hle.cpp b/src/mame/machine/apricotkb_hle.cpp
index 6950033c79f..7bf5531454c 100644
--- a/src/mame/machine/apricotkb_hle.cpp
+++ b/src/mame/machine/apricotkb_hle.cpp
@@ -70,37 +70,37 @@ const device_type APRICOT_KEYBOARD_HLE = &device_creator<apricot_keyboard_hle_de
static INPUT_PORTS_START( keyboard )
PORT_START("keyboard_0")
PORT_BIT(1 << 0, IP_ACTIVE_HIGH, IPT_UNUSED)
- APRICOT_KEY( 1, 0) PORT_CODE(KEYCODE_F7) PORT_CHAR(UCHAR_MAMEKEY(F7)) PORT_NAME("Help")
- APRICOT_KEY( 2, 0) PORT_CODE(KEYCODE_F8) PORT_CHAR(UCHAR_MAMEKEY(F8)) PORT_NAME("Undo")
- APRICOT_KEY( 3, 0) PORT_CODE(KEYCODE_F9) PORT_CHAR(UCHAR_MAMEKEY(F9)) PORT_NAME("Repeat")
- APRICOT_KEY( 4, 0) PORT_CODE(KEYCODE_F10) PORT_CHAR(UCHAR_MAMEKEY(F10)) PORT_NAME("Calc")
- APRICOT_KEY( 5, 0) PORT_CODE(KEYCODE_PRTSCR) PORT_CHAR(UCHAR_MAMEKEY(PRTSCR)) PORT_NAME("Print")
- APRICOT_KEY( 6, 0) PORT_CODE(KEYCODE_CANCEL) PORT_CHAR(UCHAR_MAMEKEY(CANCEL)) PORT_NAME("Intr")
- APRICOT_KEY( 7, 0) PORT_CODE(KEYCODE_F11) PORT_CHAR(UCHAR_MAMEKEY(F11)) PORT_NAME("Menu")
- APRICOT_KEY( 8, 0) PORT_CODE(KEYCODE_F12) PORT_CHAR(UCHAR_MAMEKEY(F12)) PORT_NAME("Finish")
- APRICOT_KEY( 9, 0) PORT_CODE(KEYCODE_F1) PORT_CHAR(UCHAR_MAMEKEY(F1)) PORT_NAME("Function 1")
- APRICOT_KEY(10, 0) PORT_CODE(KEYCODE_F2) PORT_CHAR(UCHAR_MAMEKEY(F2)) PORT_NAME("Function 2")
- APRICOT_KEY(11, 0) PORT_CODE(KEYCODE_F3) PORT_CHAR(UCHAR_MAMEKEY(F3)) PORT_NAME("Function 3")
- APRICOT_KEY(12, 0) PORT_CODE(KEYCODE_F4) PORT_CHAR(UCHAR_MAMEKEY(F4)) PORT_NAME("Function 4")
- APRICOT_KEY(13, 0) PORT_CODE(KEYCODE_F5) PORT_CHAR(UCHAR_MAMEKEY(F5)) PORT_NAME("Function 5")
- APRICOT_KEY(14, 0) PORT_CODE(KEYCODE_F6) PORT_CHAR(UCHAR_MAMEKEY(F6)) PORT_NAME("Function 6")
- APRICOT_KEY(15, 0) PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR('\\') PORT_CHAR('^')
- APRICOT_KEY(16, 0) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!')
- APRICOT_KEY(17, 0) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@')
- APRICOT_KEY(18, 0) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#')
- APRICOT_KEY(19, 0) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR(0xa3) // pound
- APRICOT_KEY(20, 0) PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%')
- APRICOT_KEY(21, 0) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('$')
- APRICOT_KEY(22, 0) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('&')
- APRICOT_KEY(23, 0) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*')
- APRICOT_KEY(24, 0) PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR('(')
- APRICOT_KEY(25, 0) PORT_CODE(KEYCODE_0) PORT_CHAR('0') PORT_CHAR(')')
- APRICOT_KEY(26, 0) PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('_')
- APRICOT_KEY(27, 0) PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('=') PORT_CHAR('+')
- APRICOT_KEY(28, 0) PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(9)
+ APRICOT_KEY( 1, nullptr) PORT_CODE(KEYCODE_F7) PORT_CHAR(UCHAR_MAMEKEY(F7)) PORT_NAME("Help")
+ APRICOT_KEY( 2, nullptr) PORT_CODE(KEYCODE_F8) PORT_CHAR(UCHAR_MAMEKEY(F8)) PORT_NAME("Undo")
+ APRICOT_KEY( 3, nullptr) PORT_CODE(KEYCODE_F9) PORT_CHAR(UCHAR_MAMEKEY(F9)) PORT_NAME("Repeat")
+ APRICOT_KEY( 4, nullptr) PORT_CODE(KEYCODE_F10) PORT_CHAR(UCHAR_MAMEKEY(F10)) PORT_NAME("Calc")
+ APRICOT_KEY( 5, nullptr) PORT_CODE(KEYCODE_PRTSCR) PORT_CHAR(UCHAR_MAMEKEY(PRTSCR)) PORT_NAME("Print")
+ APRICOT_KEY( 6, nullptr) PORT_CODE(KEYCODE_CANCEL) PORT_CHAR(UCHAR_MAMEKEY(CANCEL)) PORT_NAME("Intr")
+ APRICOT_KEY( 7, nullptr) PORT_CODE(KEYCODE_F11) PORT_CHAR(UCHAR_MAMEKEY(F11)) PORT_NAME("Menu")
+ APRICOT_KEY( 8, nullptr) PORT_CODE(KEYCODE_F12) PORT_CHAR(UCHAR_MAMEKEY(F12)) PORT_NAME("Finish")
+ APRICOT_KEY( 9, nullptr) PORT_CODE(KEYCODE_F1) PORT_CHAR(UCHAR_MAMEKEY(F1)) PORT_NAME("Function 1")
+ APRICOT_KEY(10, nullptr) PORT_CODE(KEYCODE_F2) PORT_CHAR(UCHAR_MAMEKEY(F2)) PORT_NAME("Function 2")
+ APRICOT_KEY(11, nullptr) PORT_CODE(KEYCODE_F3) PORT_CHAR(UCHAR_MAMEKEY(F3)) PORT_NAME("Function 3")
+ APRICOT_KEY(12, nullptr) PORT_CODE(KEYCODE_F4) PORT_CHAR(UCHAR_MAMEKEY(F4)) PORT_NAME("Function 4")
+ APRICOT_KEY(13, nullptr) PORT_CODE(KEYCODE_F5) PORT_CHAR(UCHAR_MAMEKEY(F5)) PORT_NAME("Function 5")
+ APRICOT_KEY(14, nullptr) PORT_CODE(KEYCODE_F6) PORT_CHAR(UCHAR_MAMEKEY(F6)) PORT_NAME("Function 6")
+ APRICOT_KEY(15, nullptr) PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR('\\') PORT_CHAR('^')
+ APRICOT_KEY(16, nullptr) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!')
+ APRICOT_KEY(17, nullptr) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@')
+ APRICOT_KEY(18, nullptr) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#')
+ APRICOT_KEY(19, nullptr) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR(0xa3) // pound
+ APRICOT_KEY(20, nullptr) PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%')
+ APRICOT_KEY(21, nullptr) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('$')
+ APRICOT_KEY(22, nullptr) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('&')
+ APRICOT_KEY(23, nullptr) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*')
+ APRICOT_KEY(24, nullptr) PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR('(')
+ APRICOT_KEY(25, nullptr) PORT_CODE(KEYCODE_0) PORT_CHAR('0') PORT_CHAR(')')
+ APRICOT_KEY(26, nullptr) PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('_')
+ APRICOT_KEY(27, nullptr) PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('=') PORT_CHAR('+')
+ APRICOT_KEY(28, nullptr) PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(9)
PORT_BIT(1 << 29, IP_ACTIVE_HIGH, IPT_UNUSED) // actually a dedicated % key
- APRICOT_KEY(30, 0) PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR(UCHAR_MAMEKEY(ASTERISK))
- APRICOT_KEY(31, 0) PORT_CODE(KEYCODE_SLASH_PAD) PORT_CHAR(UCHAR_MAMEKEY(SLASH_PAD))
+ APRICOT_KEY(30, nullptr) PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR(UCHAR_MAMEKEY(ASTERISK))
+ APRICOT_KEY(31, nullptr) PORT_CODE(KEYCODE_SLASH_PAD) PORT_CHAR(UCHAR_MAMEKEY(SLASH_PAD))
PORT_START("keyboard_1")
APRICOT_KEY( 0, 1) PORT_CODE(KEYCODE_MINUS_PAD) PORT_CHAR(UCHAR_MAMEKEY(MINUS_PAD))
diff --git a/src/mame/machine/archimds.cpp b/src/mame/machine/archimds.cpp
index ad5b6f70f85..b22ef889e37 100644
--- a/src/mame/machine/archimds.cpp
+++ b/src/mame/machine/archimds.cpp
@@ -487,7 +487,7 @@ void archimedes_state::latch_timer_cnt(int tmr)
bool archimedes_state::check_floppy_ready()
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if(!m_fdc)
return false;
@@ -859,12 +859,12 @@ WRITE32_MEMBER(archimedes_state::archimedes_ioc_w)
/*
-x-- ---- In Use Control (floppy?)
*/
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (!(data & 1)) { m_floppy_select = 0; floppy = m_floppy0->get_device(); }
if (!(data & 2)) { m_floppy_select = 1; floppy = m_floppy1->get_device(); }
- if (!(data & 4)) { m_floppy_select = 2; floppy = NULL; } // floppy 2
- if (!(data & 8)) { m_floppy_select = 3; floppy = NULL; } // floppy 3
+ if (!(data & 4)) { m_floppy_select = 2; floppy = nullptr; } // floppy 2
+ if (!(data & 8)) { m_floppy_select = 3; floppy = nullptr; } // floppy 3
m_fdc->set_floppy(floppy);
diff --git a/src/mame/machine/asic65.cpp b/src/mame/machine/asic65.cpp
index 978443f497c..5674adfd49e 100644
--- a/src/mame/machine/asic65.cpp
+++ b/src/mame/machine/asic65.cpp
@@ -100,7 +100,7 @@ asic65_device::asic65_device(const machine_config &mconfig, const char *tag, dev
m_xflg(0),
m_68data(0),
m_tdata(0),
- m_log(NULL)
+ m_log(nullptr)
{
for (int i = 0; i < 32; i++)
{
diff --git a/src/mame/machine/asteroid.cpp b/src/mame/machine/asteroid.cpp
index 37e252e6bd0..e8e01c5f065 100644
--- a/src/mame/machine/asteroid.cpp
+++ b/src/mame/machine/asteroid.cpp
@@ -120,7 +120,7 @@ WRITE8_MEMBER(asteroid_state::astdelux_led_w)
void asteroid_state::machine_start()
{
/* configure RAM banks if present (not on llander) */
- if (m_ram1.target() != NULL)
+ if (m_ram1.target() != nullptr)
{
UINT8 *ram1 = reinterpret_cast<UINT8 *>(memshare("ram1")->ptr());
UINT8 *ram2 = reinterpret_cast<UINT8 *>(memshare("ram2")->ptr());
@@ -139,7 +139,7 @@ void asteroid_state::machine_reset()
m_dvg->reset_w(m_maincpu->space(AS_PROGRAM), 0, 0);
/* reset RAM banks if present */
- if (m_ram1.target() != NULL)
+ if (m_ram1.target() != nullptr)
{
m_ram1->set_entry(0);
m_ram2->set_entry(0);
diff --git a/src/mame/machine/atarifdc.cpp b/src/mame/machine/atarifdc.cpp
index d3c70c12543..0249ba31e7e 100644
--- a/src/mame/machine/atarifdc.cpp
+++ b/src/mame/machine/atarifdc.cpp
@@ -136,7 +136,7 @@ void atari_fdc_device::atari_load_proc(device_image_interface &image)
if( size <= 0 )
{
- m_drv[id].image = NULL;
+ m_drv[id].image = nullptr;
return;
}
@@ -147,7 +147,7 @@ void atari_fdc_device::atari_load_proc(device_image_interface &image)
ext = image.filetype();
// hack alert, this means we can only load ATR via the softlist at the moment, image.filetype reutrns NULL :/
- if (image.software_entry() != NULL) ext="ATR";
+ if (image.software_entry() != nullptr) ext="ATR";
/* no extension: assume XFD format (no header) */
if (!ext)
@@ -749,7 +749,7 @@ legacy_floppy_image_device *atari_fdc_device::atari_floppy_get_device_child(int
case 2 : return subdevice<legacy_floppy_image_device>(FLOPPY_2);
case 3 : return subdevice<legacy_floppy_image_device>(FLOPPY_3);
}
- return NULL;
+ return nullptr;
}
const device_type ATARI_FDC = &device_creator<atari_fdc_device>;
diff --git a/src/mame/machine/atarigen.cpp b/src/mame/machine/atarigen.cpp
index 639726f0528..05127cb1edd 100644
--- a/src/mame/machine/atarigen.cpp
+++ b/src/mame/machine/atarigen.cpp
@@ -44,7 +44,7 @@ inline const atarigen_screen_timer *get_screen_timer(screen_device &screen)
return &state->m_screen_timer[i];
fatalerror("Unexpected: no atarivc_eof_update_timer for screen '%s'\n", screen.tag());
- return NULL;
+ return nullptr;
}
@@ -62,9 +62,9 @@ const device_type ATARI_SOUND_COMM = &device_creator<atari_sound_comm_device>;
atari_sound_comm_device::atari_sound_comm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ATARI_SOUND_COMM, "Atari Sound Communications", tag, owner, clock, "atarscom", __FILE__),
- m_sound_cpu_tag(NULL),
+ m_sound_cpu_tag(nullptr),
m_main_int_cb(*this),
- m_sound_cpu(NULL),
+ m_sound_cpu(nullptr),
m_main_to_sound_ready(false),
m_sound_to_main_ready(false),
m_main_to_sound_data(0),
@@ -93,10 +93,10 @@ void atari_sound_comm_device::static_set_sound_cpu(device_t &device, const char
void atari_sound_comm_device::device_start()
{
// find the sound CPU
- if (m_sound_cpu_tag == NULL)
+ if (m_sound_cpu_tag == nullptr)
throw emu_fatalerror("No sound CPU specified!");
m_sound_cpu = siblingdevice<m6502_device>(m_sound_cpu_tag);
- if (m_sound_cpu == NULL)
+ if (m_sound_cpu == nullptr)
throw emu_fatalerror("Sound CPU '%s' not found!", m_sound_cpu_tag);
// resolve callbacks
@@ -362,9 +362,9 @@ atari_vad_device::atari_vad_device(const machine_config &mconfig, const char *ta
m_playfield2_tilemap(*this, "playfield2"),
m_mob(*this, "mob"),
m_eof_data(*this, "eof"),
- m_scanline_int_timer(NULL),
- m_tilerow_update_timer(NULL),
- m_eof_timer(NULL),
+ m_scanline_int_timer(nullptr),
+ m_tilerow_update_timer(nullptr),
+ m_eof_timer(nullptr),
m_palette_bank(0),
m_pf0_xscroll_raw(0),
m_pf0_yscroll(0),
@@ -431,7 +431,7 @@ WRITE16_MEMBER(atari_vad_device::alpha_w)
WRITE16_MEMBER(atari_vad_device::playfield_upper_w)
{
m_playfield_tilemap->write_ext(space, offset, data, mem_mask);
- if (m_playfield2_tilemap != NULL)
+ if (m_playfield2_tilemap != nullptr)
m_playfield2_tilemap->write_ext(space, offset, data, mem_mask);
}
@@ -485,9 +485,9 @@ WRITE16_MEMBER(atari_vad_device::playfield2_latched_msb_w)
void atari_vad_device::device_start()
{
// verify configuration
- if (m_playfield_tilemap == NULL)
+ if (m_playfield_tilemap == nullptr)
throw emu_fatalerror("Playfield tilemap not found!");
- if (m_eof_data == NULL)
+ if (m_eof_data == nullptr)
throw emu_fatalerror("EOF data not found!");
// resolve callbacks
@@ -517,7 +517,7 @@ void atari_vad_device::device_start()
void atari_vad_device::device_reset()
{
// share extended memory between the two tilemaps
- if (m_playfield2_tilemap != NULL)
+ if (m_playfield2_tilemap != nullptr)
m_playfield2_tilemap->extmem().set(m_playfield_tilemap->extmem());
// reset the state
@@ -691,7 +691,7 @@ void atari_vad_device::internal_control_write(offs_t offset, UINT16 newword)
inline void atari_vad_device::update_pf_xscrolls()
{
m_playfield_tilemap->set_scrollx(0, m_pf0_xscroll_raw + ((m_pf1_xscroll_raw) & 7));
- if (m_playfield2_tilemap != NULL)
+ if (m_playfield2_tilemap != nullptr)
m_playfield2_tilemap->set_scrollx(0, m_pf1_xscroll_raw + 4);
}
@@ -708,7 +708,7 @@ void atari_vad_device::update_parameter(UINT16 newword)
{
case 9:
m_mo_xscroll = (newword >> 7) & 0x1ff;
- if (m_mob != NULL)
+ if (m_mob != nullptr)
m_mob->set_xscroll(m_mo_xscroll);
break;
@@ -724,13 +724,13 @@ void atari_vad_device::update_parameter(UINT16 newword)
case 13:
m_mo_yscroll = (newword >> 7) & 0x1ff;
- if (m_mob != NULL)
+ if (m_mob != nullptr)
m_mob->set_yscroll(m_mo_yscroll);
break;
case 14:
m_pf1_yscroll = (newword >> 7) & 0x1ff;
- if (m_playfield2_tilemap != NULL)
+ if (m_playfield2_tilemap != nullptr)
m_playfield2_tilemap->set_scrolly(0, m_pf1_yscroll);
break;
@@ -751,7 +751,7 @@ void atari_vad_device::update_parameter(UINT16 newword)
void atari_vad_device::update_tilerow(emu_timer &timer, int scanline)
{
// skip if out of bounds, or not enabled
- if (scanline <= m_screen->visible_area().max_y && (m_control[0x0a] & 0x2000) != 0 && m_alpha_tilemap != NULL)
+ if (scanline <= m_screen->visible_area().max_y && (m_control[0x0a] & 0x2000) != 0 && m_alpha_tilemap != nullptr)
{
// iterate over non-visible alpha tiles in this row
int offset = scanline / 8 * 64 + 48 + 2 * (scanline % 8);
@@ -960,7 +960,7 @@ atarigen_state::atarigen_state(const machine_config &mconfig, device_type type,
m_xscroll(*this, "xscroll"),
m_yscroll(*this, "yscroll"),
m_slapstic_num(0),
- m_slapstic(NULL),
+ m_slapstic(nullptr),
m_slapstic_bank(0),
m_slapstic_last_pc(0),
m_slapstic_last_address(0),
@@ -987,7 +987,7 @@ void atarigen_state::machine_start()
// allocate timers for all screens
screen_device_iterator iter(*this);
assert(iter.count() <= ARRAY_LENGTH(m_screen_timer));
- for (i = 0, screen = iter.first(); screen != NULL; i++, screen = iter.next())
+ for (i = 0, screen = iter.first(); screen != nullptr; i++, screen = iter.next())
{
m_screen_timer[i].screen = screen;
m_screen_timer[i].scanline_interrupt_timer = timer_alloc(TID_SCANLINE_INTERRUPT, (void *)screen);
@@ -1016,7 +1016,7 @@ void atarigen_state::machine_reset()
m_video_int_state = m_sound_int_state = m_scanline_int_state = 0;
// reset the control latch on the EAROM, if present
- if (m_earom != NULL)
+ if (m_earom != nullptr)
m_earom->set_control(0, 1, 1, 0, 0);
// reset the slapstic
@@ -1236,7 +1236,7 @@ void atarigen_state::slapstic_configure(cpu_device &device, offs_t base, offs_t
{
// reset in case we have no state
m_slapstic_num = chipnum;
- m_slapstic = NULL;
+ m_slapstic = nullptr;
// if we have a chip, install it
if (chipnum != 0)
@@ -1314,7 +1314,7 @@ READ16_MEMBER(atarigen_state::slapstic_r)
void atarigen_state::set_volume_by_type(int volume, device_type type)
{
sound_interface_iterator iter(*this);
- for (device_sound_interface *sound = iter.first(); sound != NULL; sound = iter.next())
+ for (device_sound_interface *sound = iter.first(); sound != nullptr; sound = iter.next())
if (sound->device().type() == type)
sound->set_output_gain(ALL_OUTPUTS, volume / 100.0);
}
@@ -1463,7 +1463,7 @@ void atarigen_state::blend_gfx(int gfx0, int gfx1, int mask0, int mask1)
gx0->set_granularity(granularity);
// free the second graphics element
- m_gfxdecode->set_gfx(gfx1, NULL);
+ m_gfxdecode->set_gfx(gfx1, nullptr);
}
diff --git a/src/mame/machine/awboard.cpp b/src/mame/machine/awboard.cpp
index be4b899ef95..342ff0b18e9 100644
--- a/src/mame/machine/awboard.cpp
+++ b/src/mame/machine/awboard.cpp
@@ -167,7 +167,7 @@ ADDRESS_MAP_END
aw_rom_board::aw_rom_board(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: naomi_g1_device(mconfig, AW_ROM_BOARD, "Sammy Atomiswave ROM Board", tag, owner, clock, "aw_rom_board", __FILE__)
{
- keyregion = 0;
+ keyregion = nullptr;
}
void aw_rom_board::static_set_keyregion(device_t &device, const char *_keyregion)
@@ -389,7 +389,7 @@ void aw_rom_board::dma_get_position(UINT8 *&base, UINT32 &limit, bool to_mainram
{
if(!to_mainram) {
limit = 0;
- base = 0;
+ base = nullptr;
return;
}
diff --git a/src/mame/machine/b2m.cpp b/src/mame/machine/b2m.cpp
index 2ff9f595aa1..10e9f587c21 100644
--- a/src/mame/machine/b2m.cpp
+++ b/src/mame/machine/b2m.cpp
@@ -183,7 +183,7 @@ WRITE8_MEMBER(b2m_state::b2m_ext_8255_portc_w)
UINT8 side = (data & 1) ^ 1;
static const char *names[] = { "fd0", "fd1"};
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
floppy_connector *con = machine().device<floppy_connector>(names[drive]);
if(con)
floppy = con->get_device();
diff --git a/src/mame/machine/balsente.cpp b/src/mame/machine/balsente.cpp
index 803b5dc5325..d9bde8cb7ae 100644
--- a/src/mame/machine/balsente.cpp
+++ b/src/mame/machine/balsente.cpp
@@ -843,7 +843,7 @@ void balsente_state::set_counter_0_ff(timer_device &timer, int newstate)
{
m_counter[0].count--;
if (m_counter[0].count == 0)
- balsente_counter_callback(timer, NULL, 0);
+ balsente_counter_callback(timer, nullptr, 0);
}
}
diff --git a/src/mame/machine/bbc.cpp b/src/mame/machine/bbc.cpp
index 1c181c96030..f30c170848b 100644
--- a/src/mame/machine/bbc.cpp
+++ b/src/mame/machine/bbc.cpp
@@ -1490,7 +1490,7 @@ WRITE_LINE_MEMBER(bbc_state::fdc_drq_w)
WRITE8_MEMBER(bbc_state::bbc_wd1770_status_w)
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
m_drive_control = data;
@@ -1531,7 +1531,7 @@ READ8_MEMBER(bbc_state::bbcm_wd177xl_read)
WRITE8_MEMBER(bbc_state::bbcm_wd1770l_write)
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
m_drive_control = data;
@@ -1554,7 +1554,7 @@ WRITE8_MEMBER(bbc_state::bbcm_wd1770l_write)
WRITE8_MEMBER(bbc_state::bbcm_wd1772l_write)
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
m_drive_control = data;
@@ -1601,7 +1601,7 @@ int bbc_state::bbc_load_rom(device_image_interface &image, generic_slot_device *
int bbc_state::bbcm_load_cart(device_image_interface &image, generic_slot_device *slot)
{
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
UINT32 filesize = image.length();
diff --git a/src/mame/machine/bebox.cpp b/src/mame/machine/bebox.cpp
index d5bceceb0aa..4b89b4b6871 100644
--- a/src/mame/machine/bebox.cpp
+++ b/src/mame/machine/bebox.cpp
@@ -270,8 +270,8 @@ void bebox_state::bebox_set_irq_bit(unsigned int interrupt_bit, int val)
{
static const char *const interrupt_names[32] =
{
- NULL,
- NULL,
+ nullptr,
+ nullptr,
"GEEKPORT",
"ADC",
"IR",
@@ -298,17 +298,17 @@ void bebox_state::bebox_set_irq_bit(unsigned int interrupt_bit, int val)
"COM3",
"COM2",
"COM1",
- NULL,
+ nullptr,
"SMI1",
"SMI0",
- NULL
+ nullptr
};
UINT32 old_interrupts;
if (LOG_INTERRUPTS)
{
/* make sure that we don't shoot ourself in the foot */
- assert_always((interrupt_bit < ARRAY_LENGTH(interrupt_names)) && (interrupt_names[interrupt_bit] != NULL), "Raising invalid interrupt");
+ assert_always((interrupt_bit < ARRAY_LENGTH(interrupt_names)) && (interrupt_names[interrupt_bit] != nullptr), "Raising invalid interrupt");
logerror("bebox_set_irq_bit(): pc[0]=0x%08x pc[1]=0x%08x %s interrupt #%u (%s)\n",
(unsigned) m_ppc1->pc(),
diff --git a/src/mame/machine/bublbobl.cpp b/src/mame/machine/bublbobl.cpp
index 84a3a6c125b..3998d02f2d6 100644
--- a/src/mame/machine/bublbobl.cpp
+++ b/src/mame/machine/bublbobl.cpp
@@ -25,7 +25,7 @@ WRITE8_MEMBER(bublbobl_state::bublbobl_bankswitch_w)
m_slave->set_input_line(INPUT_LINE_RESET, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE);
/* bit 5 resets mcu */
- if (m_mcu != NULL) // only if we have a MCU
+ if (m_mcu != nullptr) // only if we have a MCU
m_mcu->set_input_line(INPUT_LINE_RESET, (data & 0x20) ? CLEAR_LINE : ASSERT_LINE);
/* bit 6 enables display */
diff --git a/src/mame/machine/c117.cpp b/src/mame/machine/c117.cpp
index de27ff06011..018fd21689b 100644
--- a/src/mame/machine/c117.cpp
+++ b/src/mame/machine/c117.cpp
@@ -38,8 +38,8 @@ namco_c117_device::namco_c117_device(const machine_config &mconfig, const char *
device_memory_interface(mconfig, *this),
m_subres_cb(*this),
m_program_config("program", ENDIANNESS_BIG, 8, 23),
- m_maincpu_tag(NULL),
- m_subcpu_tag(NULL)
+ m_maincpu_tag(nullptr),
+ m_subcpu_tag(nullptr)
{
}
diff --git a/src/mame/machine/c117.h b/src/mame/machine/c117.h
index ae5d8e4218b..99016721a54 100644
--- a/src/mame/machine/c117.h
+++ b/src/mame/machine/c117.h
@@ -50,7 +50,7 @@ protected:
virtual void device_reset();
// device_memory_interface overrides
- virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const { return (spacenum == AS_PROGRAM) ? &m_program_config : NULL; }
+ virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const { return (spacenum == AS_PROGRAM) ? &m_program_config : nullptr; }
private:
// internal helpers
diff --git a/src/mame/machine/coco.cpp b/src/mame/machine/coco.cpp
index f1177b8d9e8..ba88b004762 100644
--- a/src/mame/machine/coco.cpp
+++ b/src/mame/machine/coco.cpp
@@ -487,7 +487,7 @@ READ8_MEMBER( coco_state::pia1_pb_r )
|| (ram_size >= 0x8000 && (m_pia_0->b_output() & 0x40));
// serial in (PB0)
- bool serial_in = (m_rs232 != NULL) && (m_rs232->rxd_r() ? true : false);
+ bool serial_in = (m_rs232 != nullptr) && (m_rs232->rxd_r() ? true : false);
// composite the results
return (memory_sense ? 0x04 : 0x00)
@@ -728,7 +728,7 @@ void coco_state::update_sound(void)
coco_state::joystick_type_t coco_state::joystick_type(int index)
{
assert((index == 0) || (index == 1));
- return (m_joystick_type_control != NULL)
+ return (m_joystick_type_control != nullptr)
? (joystick_type_t) ((m_joystick_type_control->read() >> (index * 4)) & 0x0F)
: JOYSTICK_NONE;
}
@@ -741,7 +741,7 @@ coco_state::joystick_type_t coco_state::joystick_type(int index)
coco_state::hires_type_t coco_state::hires_interface_type(void)
{
- return (m_joystick_hires_control != NULL)
+ return (m_joystick_hires_control != nullptr)
? (hires_type_t) m_joystick_hires_control->read()
: HIRES_NONE;
}
@@ -984,7 +984,7 @@ void coco_state::update_prinout(bool prinout)
else
{
/* output bitbanger if present (only on CoCos) */
- if (m_rs232 != NULL)
+ if (m_rs232 != nullptr)
{
m_rs232->write_txd(prinout ? 1 : 0);
}
@@ -1122,7 +1122,7 @@ coco_vhd_image_device *coco_state::current_vhd(void)
{
case 0: return m_vhd_0;
case 1: return m_vhd_1;
- default: return NULL;
+ default: return nullptr;
}
}
@@ -1136,7 +1136,7 @@ READ8_MEMBER( coco_state::ff60_read )
{
UINT8 result;
- if ((current_vhd() != NULL) && (offset >= 32) && (offset <= 37))
+ if ((current_vhd() != nullptr) && (offset >= 32) && (offset <= 37))
{
result = current_vhd()->read(offset - 32);
}
@@ -1156,7 +1156,7 @@ READ8_MEMBER( coco_state::ff60_read )
WRITE8_MEMBER( coco_state::ff60_write )
{
- if ((current_vhd() != NULL) && (offset >= 32) && (offset <= 37))
+ if ((current_vhd() != nullptr) && (offset >= 32) && (offset <= 37))
{
current_vhd()->write(offset - 32, data);
}
@@ -1251,12 +1251,12 @@ static const char *const os9syscalls[] =
"F$SUser", /* Set User ID number */
"F$UnLoad", /* Unlink Module by name */
"F$Alarm", /* Color Computer Alarm Call (system wide) */
- NULL,
- NULL,
+ nullptr,
+ nullptr,
"F$NMLink", /* Color Computer NonMapping Link */
"F$NMLoad", /* Color Computer NonMapping Load */
- NULL,
- NULL,
+ nullptr,
+ nullptr,
"F$TPS", /* Return System's Ticks Per Second */
"F$TimAlm", /* COCO individual process alarm call */
"F$VIRQ", /* Install/Delete Virtual IRQ */
@@ -1304,50 +1304,50 @@ static const char *const os9syscalls[] =
"F$DelRAM", /* Deallocate RAM blocks */
"F$GCMDir", /* Pack module directory */
"F$AlHRam", /* Allocate HIGH RAM Blocks */
- 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,
- NULL,
+ 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,
+ nullptr,
"F$RegDmp", /* Ron Lammardo's debugging register dump call */
"F$NVRAM", /* Non Volatile RAM (RTC battery backed static) read/write */
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
"I$Attach", /* Attach I/O Device */
"I$Detach", /* Detach I/O Device */
"I$Dup", /* Duplicate Path */
diff --git a/src/mame/machine/coco_vhd.h b/src/mame/machine/coco_vhd.h
index 3d4819cb8f5..4753d055646 100644
--- a/src/mame/machine/coco_vhd.h
+++ b/src/mame/machine/coco_vhd.h
@@ -36,9 +36,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 "vhd"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
// specific implementation
DECLARE_READ8_MEMBER(read) { return read(offset); }
diff --git a/src/mame/machine/cps2crpt.cpp b/src/mame/machine/cps2crpt.cpp
index d8d41771203..35bf3d11ef8 100644
--- a/src/mame/machine/cps2crpt.cpp
+++ b/src/mame/machine/cps2crpt.cpp
@@ -747,16 +747,16 @@ DRIVER_INIT_MEMBER(cps_state,cps2crpt)
UINT32 upper;
std::string skey1 = parameter("cryptkey1");;
- key[0] = strtoll(skey1.c_str(), 0, 16);
+ key[0] = strtoll(skey1.c_str(), nullptr, 16);
std::string skey2 = parameter("cryptkey2");
- key[1] = strtoll(skey2.c_str(), 0, 16);
+ key[1] = strtoll(skey2.c_str(), nullptr, 16);
std::string slower = parameter("cryptlower");
- lower = strtoll(slower.c_str(), 0, 16);
+ lower = strtoll(slower.c_str(), nullptr, 16);
std::string supper = parameter("cryptupper");
- upper = strtoll(supper.c_str(), 0, 16);
+ upper = strtoll(supper.c_str(), nullptr, 16);
// we have a proper key so use it to decrypt
if (lower!=0xff0000) // don't run the decrypt on 'dead key' games for now
diff --git a/src/mame/machine/cuda.cpp b/src/mame/machine/cuda.cpp
index 5c4964653b1..fc79fc6b32e 100644
--- a/src/mame/machine/cuda.cpp
+++ b/src/mame/machine/cuda.cpp
@@ -415,8 +415,8 @@ void cuda_device::device_start()
write_via_clock.resolve_safe();
write_via_data.resolve_safe();
- m_timer = timer_alloc(0, NULL);
- m_prog_timer = timer_alloc(1, NULL);
+ m_timer = timer_alloc(0, nullptr);
+ m_prog_timer = timer_alloc(1, nullptr);
save_item(NAME(ddrs[0]));
save_item(NAME(ddrs[1]));
save_item(NAME(ddrs[2]));
diff --git a/src/mame/machine/dc-ctrl.cpp b/src/mame/machine/dc-ctrl.cpp
index 44bd8847c87..f2b5531b64a 100644
--- a/src/mame/machine/dc-ctrl.cpp
+++ b/src/mame/machine/dc-ctrl.cpp
@@ -74,12 +74,12 @@ void dc_controller_device::fixed_status(UINT32 *dest)
{
dest[0] = 0x20000000; // Controller
dest[1] =
- ((port[2] != NULL) ? 0x010000 : 0) |
- ((port[3] != NULL) ? 0x020000 : 0) |
- ((port[4] != NULL) ? 0x040000 : 0) |
- ((port[5] != NULL) ? 0x080000 : 0) |
- ((port[6] != NULL) ? 0x100000 : 0) |
- ((port[7] != NULL) ? 0x200000 : 0) |
+ ((port[2] != nullptr) ? 0x010000 : 0) |
+ ((port[3] != nullptr) ? 0x020000 : 0) |
+ ((port[4] != nullptr) ? 0x040000 : 0) |
+ ((port[5] != nullptr) ? 0x080000 : 0) |
+ ((port[6] != nullptr) ? 0x100000 : 0) |
+ ((port[7] != nullptr) ? 0x200000 : 0) |
((port[0] ? port[0]->active() : 0) << 8) |
(port[1] ? port[1]->active() : 0); // 1st function - controller
dest[2] = 0; // No 2nd function
diff --git a/src/mame/machine/decocass_tape.cpp b/src/mame/machine/decocass_tape.cpp
index 74d777ab91d..48c9fd310ee 100644
--- a/src/mame/machine/decocass_tape.cpp
+++ b/src/mame/machine/decocass_tape.cpp
@@ -60,7 +60,7 @@ const device_type DECOCASS_TAPE = &device_creator<decocass_tape_device>;
decocass_tape_device::decocass_tape_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DECOCASS_TAPE, "DECO Cassette Tape", tag, owner, clock, "decocass_tape", __FILE__),
- m_tape_timer(NULL),
+ m_tape_timer(nullptr),
m_speed(0),
m_region(REGION_LEADER),
m_bitnum(0),
@@ -91,7 +91,7 @@ void decocass_tape_device::device_start()
/* fetch the data pointer */
m_tape_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(decocass_tape_device::tape_clock_callback), this));
- if (region() == NULL)
+ if (region() == nullptr)
return;
UINT8 *regionbase = region()->base();
@@ -350,7 +350,7 @@ UINT8 decocass_tape_device::get_status_bits()
UINT8 decocass_tape_device::is_present()
{
- return region() != NULL;
+ return region() != nullptr;
}
diff --git a/src/mame/machine/dgn_beta.cpp b/src/mame/machine/dgn_beta.cpp
index 57de97d32f5..57b68c53879 100644
--- a/src/mame/machine/dgn_beta.cpp
+++ b/src/mame/machine/dgn_beta.cpp
@@ -104,23 +104,23 @@ struct bank_info_entry
static const struct bank_info_entry bank_info[] =
{
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b0_w),(dgn_beta_state*)0), 0x0000, 0x0fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b1_w),(dgn_beta_state*)0), 0x1000, 0x1fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b2_w),(dgn_beta_state*)0), 0x2000, 0x2fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b3_w),(dgn_beta_state*)0), 0x3000, 0x3fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b4_w),(dgn_beta_state*)0), 0x4000, 0x4fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b5_w),(dgn_beta_state*)0), 0x5000, 0x5fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b6_w),(dgn_beta_state*)0), 0x6000, 0x6fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b7_w),(dgn_beta_state*)0), 0x7000, 0x7fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b8_w),(dgn_beta_state*)0), 0x8000, 0x8fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b9_w),(dgn_beta_state*)0), 0x9000, 0x9fff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bA_w),(dgn_beta_state*)0), 0xA000, 0xAfff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bB_w),(dgn_beta_state*)0), 0xB000, 0xBfff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bC_w),(dgn_beta_state*)0), 0xC000, 0xCfff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bD_w),(dgn_beta_state*)0), 0xD000, 0xDfff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bE_w),(dgn_beta_state*)0), 0xE000, 0xEfff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bF_w),(dgn_beta_state*)0), 0xF000, 0xFBff },
- { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bG_w),(dgn_beta_state*)0), 0xFF00, 0xFfff }
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b0_w),(dgn_beta_state*)nullptr), 0x0000, 0x0fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b1_w),(dgn_beta_state*)nullptr), 0x1000, 0x1fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b2_w),(dgn_beta_state*)nullptr), 0x2000, 0x2fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b3_w),(dgn_beta_state*)nullptr), 0x3000, 0x3fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b4_w),(dgn_beta_state*)nullptr), 0x4000, 0x4fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b5_w),(dgn_beta_state*)nullptr), 0x5000, 0x5fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b6_w),(dgn_beta_state*)nullptr), 0x6000, 0x6fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b7_w),(dgn_beta_state*)nullptr), 0x7000, 0x7fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b8_w),(dgn_beta_state*)nullptr), 0x8000, 0x8fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_b9_w),(dgn_beta_state*)nullptr), 0x9000, 0x9fff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bA_w),(dgn_beta_state*)nullptr), 0xA000, 0xAfff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bB_w),(dgn_beta_state*)nullptr), 0xB000, 0xBfff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bC_w),(dgn_beta_state*)nullptr), 0xC000, 0xCfff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bD_w),(dgn_beta_state*)nullptr), 0xD000, 0xDfff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bE_w),(dgn_beta_state*)nullptr), 0xE000, 0xEfff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bF_w),(dgn_beta_state*)nullptr), 0xF000, 0xFBff },
+ { write8_delegate(FUNC(dgn_beta_state::dgnbeta_ram_bG_w),(dgn_beta_state*)nullptr), 0xFF00, 0xFfff }
};
#define is_last_page(page) (((page==LastPage) || (page==LastPage+1)) ? 1 : 0)
@@ -587,7 +587,7 @@ WRITE8_MEMBER(dgn_beta_state::d_pia1_pa_w)
}
/* Drive selects are binary encoded on PA0 & PA1 */
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
switch (~data & 0x03)
{
@@ -990,12 +990,12 @@ static const char *const os9syscalls[] =
"F$SUser", /* Set User ID number */
"F$UnLoad", /* Unlink Module by name */
"F$Alarm", /* Color Computer Alarm Call (system wide) */
- NULL,
- NULL,
+ nullptr,
+ nullptr,
"F$NMLink", /* Color Computer NonMapping Link */
"F$NMLoad", /* Color Computer NonMapping Load */
- NULL,
- NULL,
+ nullptr,
+ nullptr,
"F$TPS", /* Return System's Ticks Per Second */
"F$TimAlm", /* COCO individual process alarm call */
"F$VIRQ", /* Install/Delete Virtual IRQ */
@@ -1043,50 +1043,50 @@ static const char *const os9syscalls[] =
"F$DelRAM", /* Deallocate RAM blocks */
"F$GCMDir", /* Pack module directory */
"F$AlHRam", /* Allocate HIGH RAM Blocks */
- 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,
- NULL,
+ 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,
+ nullptr,
"F$RegDmp", /* Ron Lammardo's debugging register dump call */
"F$NVRAM", /* Non Volatile RAM (RTC battery backed static) read/write */
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
"I$Attach", /* Attach I/O Device */
"I$Detach", /* Detach I/O Device */
"I$Dup", /* Duplicate Path */
diff --git a/src/mame/machine/dgnalpha.cpp b/src/mame/machine/dgnalpha.cpp
index a146e1e3aae..20af8952b04 100644
--- a/src/mame/machine/dgnalpha.cpp
+++ b/src/mame/machine/dgnalpha.cpp
@@ -315,7 +315,7 @@ WRITE8_MEMBER( dragon_alpha_state::psg_porta_write )
/* Bit 4 is the motor on, in the real hardware these are inverted on their way to the drive */
/* Bits 5,6,7 are connected to /DDEN, ENP and 5/8 on the WD2797 */
- 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();
diff --git a/src/mame/machine/egret.cpp b/src/mame/machine/egret.cpp
index 079a2504536..736cdfd3471 100644
--- a/src/mame/machine/egret.cpp
+++ b/src/mame/machine/egret.cpp
@@ -366,7 +366,7 @@ void egret_device::device_start()
write_via_clock.resolve_safe();
write_via_data.resolve_safe();
- m_timer = timer_alloc(0, NULL);
+ m_timer = timer_alloc(0, nullptr);
save_item(NAME(ddrs[0]));
save_item(NAME(ddrs[1]));
save_item(NAME(ddrs[2]));
diff --git a/src/mame/machine/electron.cpp b/src/mame/machine/electron.cpp
index 5ed4ca1e07a..3d92206ba3e 100644
--- a/src/mame/machine/electron.cpp
+++ b/src/mame/machine/electron.cpp
@@ -379,7 +379,7 @@ void electron_state::machine_start()
DEVICE_IMAGE_LOAD_MEMBER( electron_state, electron_cart )
{
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
UINT32 filesize = image.length();
diff --git a/src/mame/machine/fd1089.cpp b/src/mame/machine/fd1089.cpp
index 456192b32e6..5f8df8b0b3d 100644
--- a/src/mame/machine/fd1089.cpp
+++ b/src/mame/machine/fd1089.cpp
@@ -253,12 +253,12 @@ void fd1089_base_device::device_start()
// find the key
m_key = memregion("key")->base();
- if (m_key == NULL)
+ if (m_key == nullptr)
throw emu_fatalerror("FD1089 key region not found!");
// get a pointer to the ROM region
UINT16 *rombase = reinterpret_cast<UINT16 *>(region()->base());
- if (rombase == NULL)
+ if (rombase == nullptr)
throw emu_fatalerror("FD1089 found no ROM data to decrypt!");
// determine length and resize our internal buffers
diff --git a/src/mame/machine/fd1094.cpp b/src/mame/machine/fd1094.cpp
index ce1abbfad92..4d0992ef30e 100644
--- a/src/mame/machine/fd1094.cpp
+++ b/src/mame/machine/fd1094.cpp
@@ -558,9 +558,9 @@ fd1094_device::fd1094_device(const machine_config &mconfig, const char *tag, dev
m_state(0x00),
m_irqmode(false),
m_cache(*this),
- m_srcbase(NULL),
+ m_srcbase(nullptr),
m_srcbytes(0),
- m_key(NULL)
+ m_key(nullptr)
{
// override the name after the m68000 initializes
m_name.assign("FD1094");
@@ -637,11 +637,11 @@ void fd1094_device::device_start()
{
// find the key
m_key = memregion("key")->base();
- if (m_key == NULL)
+ if (m_key == nullptr)
throw emu_fatalerror("FD1094 key region not found!");
// get a pointer to the ROM region
- if (region() != NULL)
+ if (region() != nullptr)
{
m_srcbase = reinterpret_cast<UINT16 *>(region()->base());
m_srcbytes = region()->bytes();
@@ -651,7 +651,7 @@ void fd1094_device::device_start()
else
{
memory_share *share = owner()->memshare(tag());
- if (share != NULL)
+ if (share != nullptr)
{
m_srcbase = reinterpret_cast<UINT16 *>(share->ptr());
m_srcbytes = share->bytes();
@@ -659,7 +659,7 @@ void fd1094_device::device_start()
}
// if we got nothing, error
- if (m_srcbase == NULL)
+ if (m_srcbase == nullptr)
throw emu_fatalerror("FD1094 found no data to decrypt!");
// determine length and configure our cache
diff --git a/src/mame/machine/gaelco3d.cpp b/src/mame/machine/gaelco3d.cpp
index 4f576eba8fe..a8fe3f32590 100644
--- a/src/mame/machine/gaelco3d.cpp
+++ b/src/mame/machine/gaelco3d.cpp
@@ -192,11 +192,11 @@ gaelco_serial_device::gaelco_serial_device(const machine_config &mconfig, const
m_status(0),
m_last_in_msg_cnt(0),
m_slack_cnt(0),
- m_sync_timer(NULL),
- m_in_ptr(NULL),
- m_out_ptr(NULL),
- m_os_shmem(NULL),
- m_shmem(NULL)
+ m_sync_timer(nullptr),
+ m_in_ptr(nullptr),
+ m_out_ptr(nullptr),
+ m_os_shmem(nullptr),
+ m_shmem(nullptr)
{
}
@@ -221,7 +221,7 @@ void gaelco_serial_device::device_start()
#endif
m_os_shmem = osd_sharedmem_alloc(PATH_NAME, 0, sizeof(shmem_t));
- if (m_os_shmem == NULL)
+ if (m_os_shmem == nullptr)
{
m_os_shmem = osd_sharedmem_alloc(PATH_NAME, 1, sizeof(shmem_t));
m_shmem = (shmem_t *) osd_sharedmem_ptr(m_os_shmem);
diff --git a/src/mame/machine/gamecom.cpp b/src/mame/machine/gamecom.cpp
index 148a0585928..259443b728e 100644
--- a/src/mame/machine/gamecom.cpp
+++ b/src/mame/machine/gamecom.cpp
@@ -22,7 +22,7 @@ void gamecom_state::machine_reset()
m_bank3->set_base(rom);
m_bank4->set_base(rom);
- m_cart_ptr = NULL;
+ m_cart_ptr = nullptr;
m_lch_reg = 0x07;
m_lcv_reg = 0x27;
m_lcdc_reg = 0xb0;
@@ -179,7 +179,7 @@ WRITE8_MEMBER( gamecom_state::gamecom_pio_w )
{
case 0x40: m_cart_ptr = m_cart1_rom->base(); break;
case 0x80: m_cart_ptr = m_cart2_rom->base(); break;
- default: m_cart_ptr = NULL; break;
+ default: m_cart_ptr = nullptr; break;
}
return;
}
diff --git a/src/mame/machine/gdrom.cpp b/src/mame/machine/gdrom.cpp
index 2909cda71db..59a11e97cc2 100644
--- a/src/mame/machine/gdrom.cpp
+++ b/src/mame/machine/gdrom.cpp
@@ -167,7 +167,7 @@ void gdrom_device::ExecCommand()
m_cur_subblock = 0;
}
- if (m_cdda != NULL)
+ if (m_cdda != nullptr)
{
m_cdda->stop_audio();
}
@@ -205,7 +205,7 @@ void gdrom_device::ExecCommand()
length = 4;
}
- if (m_cdda != NULL)
+ if (m_cdda != nullptr)
{
m_cdda->stop_audio();
}
diff --git a/src/mame/machine/genpin.h b/src/mame/machine/genpin.h
index 6dededf3b4b..5b72d09ff53 100644
--- a/src/mame/machine/genpin.h
+++ b/src/mame/machine/genpin.h
@@ -30,7 +30,7 @@ const char *const genpin_sample_names[] =
"relay_release",
"solenoid_engage",
"solenoid_release",
- 0 /* end of array */
+ nullptr /* end of array */
};
MACHINE_CONFIG_EXTERN( genpin_audio );
diff --git a/src/mame/machine/harddriv.cpp b/src/mame/machine/harddriv.cpp
index e802f2bfe09..9f4a74f8948 100644
--- a/src/mame/machine/harddriv.cpp
+++ b/src/mame/machine/harddriv.cpp
@@ -57,8 +57,8 @@ void harddriv_state::device_reset()
m_slapstic_device->slapstic_reset();
/* halt several of the DSPs to start */
- if (m_adsp != NULL) m_adsp->set_input_line(INPUT_LINE_HALT, ASSERT_LINE);
- if (m_dsp32 != NULL) m_dsp32->set_input_line(INPUT_LINE_HALT, ASSERT_LINE);
+ if (m_adsp != nullptr) m_adsp->set_input_line(INPUT_LINE_HALT, ASSERT_LINE);
+ if (m_dsp32 != nullptr) m_dsp32->set_input_line(INPUT_LINE_HALT, ASSERT_LINE);
m_last_gsp_shiftreg = 0;
@@ -72,14 +72,14 @@ void harddriv_state::device_reset()
m_adsp_br = 0;
m_adsp_xflag = 0;
- if (m_ds3sdsp != NULL)
+ if (m_ds3sdsp != nullptr)
{
m_ds3sdsp->load_boot_data(m_ds3sdsp->region()->base(), m_ds3sdsp_pgm_memory);
m_ds3sdsp_timer_en = 0;
m_ds3sdsp_internal_timer->adjust(attotime::never);
}
- if (m_ds3xdsp != NULL)
+ if (m_ds3xdsp != nullptr)
{
m_ds3xdsp->load_boot_data(m_ds3xdsp->region()->base(), m_ds3xdsp_pgm_memory);
m_ds3xdsp_timer_en = 0;
@@ -173,7 +173,7 @@ READ16_MEMBER( harddriv_state::hd68k_msp_io_r )
UINT16 result;
offset = (offset / 2) ^ 1;
m_hd34010_host_access = TRUE;
- result = (m_msp != NULL) ? m_msp->host_r(space, offset, 0xffff) : 0xffff;
+ result = (m_msp != nullptr) ? m_msp->host_r(space, offset, 0xffff) : 0xffff;
m_hd34010_host_access = FALSE;
return result;
}
@@ -182,7 +182,7 @@ READ16_MEMBER( harddriv_state::hd68k_msp_io_r )
WRITE16_MEMBER( harddriv_state::hd68k_msp_io_w )
{
offset = (offset / 2) ^ 1;
- if (m_msp != NULL)
+ if (m_msp != nullptr)
{
m_hd34010_host_access = TRUE;
m_msp->host_w(space, offset, data, 0xffff);
@@ -302,7 +302,7 @@ READ16_MEMBER( harddriv_state::hd68k_adc12_r )
READ16_MEMBER( harddriv_state::hd68k_sound_reset_r )
{
- if (m_jsa != NULL)
+ if (m_jsa != nullptr)
m_jsa->reset();
return ~0;
}
@@ -404,12 +404,12 @@ WRITE16_MEMBER( harddriv_state::hd68k_nwr_w )
break;
case 6: /* /GSPRES */
logerror("Write to /GSPRES(%d)\n", data);
- if (m_gsp != NULL)
+ if (m_gsp != nullptr)
m_gsp->set_input_line(INPUT_LINE_RESET, data ? CLEAR_LINE : ASSERT_LINE);
break;
case 7: /* /MSPRES */
logerror("Write to /MSPRES(%d)\n", data);
- if (m_msp != NULL)
+ if (m_msp != nullptr)
m_msp->set_input_line(INPUT_LINE_RESET, data ? CLEAR_LINE : ASSERT_LINE);
break;
}
diff --git a/src/mame/machine/hec2hrp.cpp b/src/mame/machine/hec2hrp.cpp
index 55db5bdfe5f..6ed49982f7f 100644
--- a/src/mame/machine/hec2hrp.cpp
+++ b/src/mame/machine/hec2hrp.cpp
@@ -104,7 +104,7 @@ TIMER_CALLBACK_MEMBER(hec2hrp_state::Callback_CK)
WRITE8_MEMBER( hec2hrp_state::minidisc_control_w )
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (BIT(data, 6)) floppy = m_floppy0->get_device();
// bit 7 = drive 2?
diff --git a/src/mame/machine/hp48.cpp b/src/mame/machine/hp48.cpp
index 6c6ad253001..e9769f159c1 100644
--- a/src/mame/machine/hp48.cpp
+++ b/src/mame/machine/hp48.cpp
@@ -940,7 +940,7 @@ void hp48_port_image_device::hp48_unfill_port()
state->m_modules[m_module].off_mask = 0x00fff; /* 2 KB */
state->m_modules[m_module].read = read8_delegate();
state->m_modules[m_module].write = write8_delegate();
- state->m_modules[m_module].data = NULL;
+ state->m_modules[m_module].data = nullptr;
state->m_modules[m_module].isnop = 1;
state->m_port_size[m_port] = 0;
}
@@ -1035,12 +1035,12 @@ DRIVER_INIT_MEMBER(hp48_state,hp48)
m_modules[i].off_mask = 0x00fff; /* 2 KB */
m_modules[i].read = read8_delegate();
m_modules[i].write = write8_delegate();
- m_modules[i].data = NULL;
+ m_modules[i].data = nullptr;
m_modules[i].isnop = 0;
}
m_port_size[0] = 0;
m_port_size[1] = 0;
- m_rom = NULL;
+ m_rom = nullptr;
}
void hp48_state::machine_reset()
diff --git a/src/mame/machine/igs022.cpp b/src/mame/machine/igs022.cpp
index 360b333d52f..6a6e45b5c79 100644
--- a/src/mame/machine/igs022.cpp
+++ b/src/mame/machine/igs022.cpp
@@ -29,7 +29,7 @@ void igs022_device::device_start()
{
// Reset stuff
memset(m_kb_regs, 0, 0x100 * sizeof(UINT32));
- m_sharedprotram = 0;
+ m_sharedprotram = nullptr;
save_item(NAME(m_kb_regs));
}
diff --git a/src/mame/machine/igs028.cpp b/src/mame/machine/igs028.cpp
index 5836d946933..5e71c2bff64 100644
--- a/src/mame/machine/igs028.cpp
+++ b/src/mame/machine/igs028.cpp
@@ -26,7 +26,7 @@ void igs028_device::device_validity_check(validity_checker &valid) const
void igs028_device::device_start()
{
- m_sharedprotram = 0;
+ m_sharedprotram = nullptr;
}
diff --git a/src/mame/machine/inder_sb.cpp b/src/mame/machine/inder_sb.cpp
index 5b62cabb5c8..bad2b30d279 100644
--- a/src/mame/machine/inder_sb.cpp
+++ b/src/mame/machine/inder_sb.cpp
@@ -120,7 +120,7 @@ WRITE_LINE_MEMBER(inder_sb_device::z80ctc_ch3)
static const z80_daisy_config daisy_chain[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/machine/isbc_215g.cpp b/src/mame/machine/isbc_215g.cpp
index 000c620d1a7..e49818ee4d6 100644
--- a/src/mame/machine/isbc_215g.cpp
+++ b/src/mame/machine/isbc_215g.cpp
@@ -358,7 +358,7 @@ static MACHINE_CONFIG_FRAGMENT( isbc_215g )
MCFG_HARDDISK_ADD("drive0")
MCFG_HARDDISK_ADD("drive1")
- MCFG_ISBX_SLOT_ADD("sbx1", 0, isbx_cards, NULL)
+ MCFG_ISBX_SLOT_ADD("sbx1", 0, isbx_cards, nullptr)
MCFG_ISBX_SLOT_MINTR0_CALLBACK(WRITELINE(isbc_215g_device, isbx_irq_00_w))
MCFG_ISBX_SLOT_MINTR1_CALLBACK(WRITELINE(isbc_215g_device, isbx_irq_01_w))
MCFG_ISBX_SLOT_ADD("sbx2", 0, isbx_cards, "fdc_218a")
@@ -387,11 +387,11 @@ void isbc_215g_device::device_reset()
if(m_hdd0->get_hard_disk_file())
m_geom[0] = hard_disk_get_info(m_hdd0->get_hard_disk_file());
else
- m_geom[0] = 0;
+ m_geom[0] = nullptr;
if(m_hdd1->get_hard_disk_file())
m_geom[1] = hard_disk_get_info(m_hdd1->get_hard_disk_file());
else
- m_geom[1] = 0;
+ m_geom[1] = nullptr;
m_reset = false;
m_fdctc = false;
diff --git a/src/mame/machine/iteagle_fpga.cpp b/src/mame/machine/iteagle_fpga.cpp
index c5e0ebaa7df..9fa7cef6da8 100644
--- a/src/mame/machine/iteagle_fpga.cpp
+++ b/src/mame/machine/iteagle_fpga.cpp
@@ -49,7 +49,7 @@ void iteagle_fpga_device::device_start()
// RAM defaults to base address 0x000e0000
bank_infos[2].adr = 0x000e0000 & (~(bank_infos[2].size - 1));
- m_timer = timer_alloc(0, NULL);
+ m_timer = timer_alloc(0, nullptr);
// virtpool nvram
memset(m_ram, 0, sizeof(m_ram));
@@ -599,10 +599,10 @@ ADDRESS_MAP_END
static MACHINE_CONFIG_FRAGMENT( iteagle_ide )
- MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", NULL, true)
+ MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(iteagle_ide_device, ide_interrupt))
MCFG_BUS_MASTER_IDE_CONTROLLER_SPACE(":maincpu", AS_PROGRAM)
- MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide2", ata_devices, NULL, "cdrom", true)
+ MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide2", ata_devices, nullptr, "cdrom", true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(iteagle_ide_device, ide2_interrupt))
MCFG_BUS_MASTER_IDE_CONTROLLER_SPACE(":maincpu", AS_PROGRAM)
MACHINE_CONFIG_END
diff --git a/src/mame/machine/kaneko_calc3.cpp b/src/mame/machine/kaneko_calc3.cpp
index e5e7a128561..10390dae679 100644
--- a/src/mame/machine/kaneko_calc3.cpp
+++ b/src/mame/machine/kaneko_calc3.cpp
@@ -1706,7 +1706,7 @@ void kaneko_calc3_device::mcu_run()
{
int length;
- length = decompress_table(commandtabl, 0, m_writeaddress_current-2);
+ length = decompress_table(commandtabl, nullptr, m_writeaddress_current-2);
if (length)
{
diff --git a/src/mame/machine/kaypro.cpp b/src/mame/machine/kaypro.cpp
index 9b9c3a7bab7..1d3cdad73bd 100644
--- a/src/mame/machine/kaypro.cpp
+++ b/src/mame/machine/kaypro.cpp
@@ -47,7 +47,7 @@ WRITE8_MEMBER( kaypro_state::kayproii_pio_system_w )
membank("bank3")->set_entry(BIT(data, 7));
m_is_motor_off = BIT(data, 6);
- m_floppy = NULL;
+ m_floppy = nullptr;
if (BIT(data, 0))
m_floppy = m_floppy0->get_device();
else
@@ -108,7 +108,7 @@ WRITE8_MEMBER( kaypro_state::kaypro2x_system_port_w )
membank("bank3")->set_entry(BIT(data, 7));
m_is_motor_off = !BIT(data, 4);
- m_floppy = NULL;
+ m_floppy = nullptr;
if (!BIT(data, 0))
m_floppy = m_floppy0->get_device();
else
diff --git a/src/mame/machine/kc.cpp b/src/mame/machine/kc.cpp
index ad707f9dbc6..1f8c0d95ed2 100644
--- a/src/mame/machine/kc.cpp
+++ b/src/mame/machine/kc.cpp
@@ -332,7 +332,7 @@ void kc_state::update_0x0c000()
{
address_space &space = m_maincpu->space( AS_PROGRAM );
- if ((m_pio_data[0] & (1<<7)) && memregion("basic")->base() != NULL)
+ if ((m_pio_data[0] & (1<<7)) && memregion("basic")->base() != nullptr)
{
/* BASIC takes next priority */
LOG(("BASIC rom 0x0c000\n"));
diff --git a/src/mame/machine/konppc.cpp b/src/mame/machine/konppc.cpp
index 76908e28411..93dbc89041b 100644
--- a/src/mame/machine/konppc.cpp
+++ b/src/mame/machine/konppc.cpp
@@ -37,7 +37,7 @@ void konppc_device::device_start()
dsp_shared_ram_bank[i] = 0;
dsp_state[i] = 0x80;
- texture_bank[i] = NULL;
+ texture_bank[i] = nullptr;
nwk_device_sel[i] = 0;
nwk_fifo_read_ptr[i] = 0;
@@ -143,7 +143,7 @@ WRITE32_MEMBER( konppc_device::cgboard_dsp_comm_w_ppc )
if (data & 0x80000000)
dsp_state[cgboard_id] |= 0x10;
- if (k033906 != NULL) /* zr107.c has no PCI and some games only have one PCI Bridge */
+ if (k033906 != nullptr) /* zr107.c has no PCI and some games only have one PCI Bridge */
k033906->set_reg((data & 0x20000000) ? 1 : 0);
if (data & 0x10000000)
@@ -236,7 +236,7 @@ void konppc_device::dsp_comm_sharc_w(address_space &space, int board, int offset
device->set_flag_input(1, ASSERT_LINE);
}
- if (texture_bank[board] != NULL)
+ if (texture_bank[board] != nullptr)
{
int offset = (data & 0x08) ? 1 : 0;
@@ -250,7 +250,7 @@ void konppc_device::dsp_comm_sharc_w(address_space &space, int board, int offset
{
if (offset == 1)
{
- if (texture_bank[board] != NULL)
+ if (texture_bank[board] != nullptr)
{
int offset = (data & 0x08) ? 1 : 0;
diff --git a/src/mame/machine/lynx.cpp b/src/mame/machine/lynx.cpp
index 14ebecf2bbf..179ac99a40f 100644
--- a/src/mame/machine/lynx.cpp
+++ b/src/mame/machine/lynx.cpp
@@ -2066,7 +2066,7 @@ DEVICE_IMAGE_LOAD_MEMBER( lynx_state, lynx_cart )
UINT32 size = m_cart->common_get_size("rom");
UINT16 gran = 0;
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
// check for lnx header
const char *filetype = image.filetype();
@@ -2099,7 +2099,7 @@ DEVICE_IMAGE_LOAD_MEMBER( lynx_state, lynx_cart )
m_cart->common_load_rom(m_cart->get_rom_base(), size, "rom");
// set-up granularity
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
const char *filetype = image.filetype();
if (!core_stricmp(filetype, "lnx")) // from header
@@ -2126,7 +2126,7 @@ DEVICE_IMAGE_LOAD_MEMBER( lynx_state, lynx_cart )
}
// set-up rotation from softlist
- if (image.software_entry() != NULL)
+ if (image.software_entry() != nullptr)
{
const char *rotate = image.get_feature("rotation");
m_rotate = 0;
diff --git a/src/mame/machine/mac.cpp b/src/mame/machine/mac.cpp
index 52e4a576808..2eb6cc9383c 100644
--- a/src/mame/machine/mac.cpp
+++ b/src/mame/machine/mac.cpp
@@ -1910,7 +1910,7 @@ void mac_state::machine_reset()
this->set_memory_overlay(1);
}
- if (m_overlay_timeout != (emu_timer *)NULL)
+ if (m_overlay_timeout != (emu_timer *)nullptr)
{
m_overlay_timeout->adjust(m_maincpu->cycles_to_attotime(8));
}
@@ -1919,7 +1919,7 @@ void mac_state::machine_reset()
this->m_screen_buffer = 1;
/* setup 'classic' sound */
- if (machine().device("custom") != NULL)
+ if (machine().device("custom") != nullptr)
{
machine().device<mac_sound_device>("custom")->set_sound_buffer(0);
}
@@ -2092,7 +2092,7 @@ void mac_state::mac_driver_init(model_t model)
}
else
{
- m_overlay_timeout = (emu_timer *)NULL;
+ m_overlay_timeout = (emu_timer *)nullptr;
}
/* setup keyboard */
@@ -2257,7 +2257,7 @@ TIMER_CALLBACK_MEMBER(mac_state::mac_scanline_tick)
{
int scanline;
- if (machine().device("custom") != NULL)
+ if (machine().device("custom") != nullptr)
{
machine().device<mac_sound_device>("custom")->sh_updatebuffer();
}
@@ -3138,7 +3138,7 @@ const char *lookup_trap(UINT16 opcode)
if (traps[i].trap == opcode)
return traps[i].name;
}
- return NULL;
+ return nullptr;
}
diff --git a/src/mame/machine/maple-dc.cpp b/src/mame/machine/maple-dc.cpp
index f866243f799..dcefe0fd84c 100644
--- a/src/mame/machine/maple-dc.cpp
+++ b/src/mame/machine/maple-dc.cpp
@@ -34,8 +34,8 @@ maple_dc_device::maple_dc_device(const machine_config &mconfig, const char *tag,
// Do not move that in device_start or there will be a race
// condition with the maple devices call to register_port.
memset(devices, 0, sizeof(devices));
- cpu = 0;
- irq_cb = 0;
+ cpu = nullptr;
+ irq_cb = nullptr;
}
void maple_dc_device::register_port(int port, maple_device *device)
diff --git a/src/mame/machine/mapledev.cpp b/src/mame/machine/mapledev.cpp
index 85906c33064..0f7630e3315 100644
--- a/src/mame/machine/mapledev.cpp
+++ b/src/mame/machine/mapledev.cpp
@@ -14,7 +14,7 @@ void maple_device::static_set_host(device_t &device, const char *_host_tag, int
maple_device::maple_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)
{
- host_tag = 0;
+ host_tag = nullptr;
host_port = 0;
}
diff --git a/src/mame/machine/mbc55x.cpp b/src/mame/machine/mbc55x.cpp
index 5ef2d32a6ed..948f40e79bf 100644
--- a/src/mame/machine/mbc55x.cpp
+++ b/src/mame/machine/mbc55x.cpp
@@ -72,7 +72,7 @@ WRITE8_MEMBER( mbc55x_state::mbc55x_ppi_portb_w )
WRITE8_MEMBER( mbc55x_state::mbc55x_ppi_portc_w )
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
switch (data & 0x03)
{
@@ -374,7 +374,7 @@ static int instruction_hook(device_t &device, offs_t curpc)
addr_ptr = (UINT8*)space.get_read_ptr(curpc);
- if ((addr_ptr !=NULL) && (addr_ptr[0]==0xCD))
+ if ((addr_ptr !=nullptr) && (addr_ptr[0]==0xCD))
{
// logerror("int %02X called\n",addr_ptr[1]);
diff --git a/src/mame/machine/mbee.cpp b/src/mame/machine/mbee.cpp
index e2f6b08a94a..18dbba0126a 100644
--- a/src/mame/machine/mbee.cpp
+++ b/src/mame/machine/mbee.cpp
@@ -115,7 +115,7 @@ WRITE8_MEMBER( mbee_state::fdc_motor_w )
d2 side (1=side 1)
d1..d0 drive select (0 to 3) */
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
floppy = m_floppy0->get_device();
floppy->mon_w(0); // motor on always
floppy = m_floppy1->get_device();
diff --git a/src/mame/machine/mcr.cpp b/src/mame/machine/mcr.cpp
index b746ed79419..0332220fb50 100644
--- a/src/mame/machine/mcr.cpp
+++ b/src/mame/machine/mcr.cpp
@@ -78,7 +78,7 @@ const gfx_layout mcr_sprite_layout =
const z80_daisy_config mcr_daisy_chain[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
@@ -88,7 +88,7 @@ const z80_daisy_config mcr_ipu_daisy_chain[] =
{ "ipu_pio1" },
{ "ipu_sio" },
{ "ipu_pio0" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/machine/megacdcd.cpp b/src/mame/machine/megacdcd.cpp
index 617d3615393..54c7d3c81a2 100644
--- a/src/mame/machine/megacdcd.cpp
+++ b/src/mame/machine/megacdcd.cpp
@@ -219,7 +219,7 @@ void lc89510_temp_device::CDD_GetPos(void)
CLEAR_CDD_RESULT
UINT32 msf;
CDD_STATUS &= 0xFF;
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
CDD_STATUS |= SCD_STATUS;
msf = lba_to_msf_alt(SCD_CURLBA+150);
@@ -235,7 +235,7 @@ void lc89510_temp_device::CDD_GetTrackPos(void)
UINT32 msf;
CDD_STATUS &= 0xFF;
// UINT32 end_msf = ;
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
CDD_STATUS |= SCD_STATUS;
elapsedlba = SCD_CURLBA - segacd.toc->tracks[ cdrom_get_track(segacd.cd, SCD_CURLBA) ].logframeofs;
@@ -250,7 +250,7 @@ void lc89510_temp_device::CDD_GetTrack(void)
{
CLEAR_CDD_RESULT
CDD_STATUS &= 0xFF;
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
CDD_STATUS |= SCD_STATUS;
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
@@ -261,7 +261,7 @@ void lc89510_temp_device::CDD_Length(void)
{
CLEAR_CDD_RESULT
CDD_STATUS &= 0xFF;
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
CDD_STATUS |= SCD_STATUS;
@@ -278,7 +278,7 @@ void lc89510_temp_device::CDD_FirstLast(void)
{
CLEAR_CDD_RESULT
CDD_STATUS &= 0xFF;
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
CDD_STATUS |= SCD_STATUS;
CDD_MIN = 1; // first
@@ -293,7 +293,7 @@ void lc89510_temp_device::CDD_GetTrackAdr(void)
int last_track = cdrom_get_last_track(segacd.cd);
CDD_STATUS &= 0xFF;
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
CDD_STATUS |= SCD_STATUS;
@@ -325,7 +325,7 @@ void lc89510_temp_device::CDD_GetTrackType(void)
int last_track = cdrom_get_last_track(segacd.cd);
CDD_STATUS &= 0xFF;
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
CDD_STATUS |= SCD_STATUS;
@@ -361,7 +361,7 @@ void lc89510_temp_device::CDD_Play(running_machine &machine)
CLEAR_CDD_RESULT
UINT32 msf = getmsf_from_regs();
SCD_CURLBA = msf_to_lba(msf)-150;
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
UINT32 end_msf = segacd.toc->tracks[ cdrom_get_track(segacd.cd, SCD_CURLBA) + 1 ].logframeofs;
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
@@ -386,7 +386,7 @@ void lc89510_temp_device::CDD_Seek(void)
CLEAR_CDD_RESULT
UINT32 msf = getmsf_from_regs();
SCD_CURLBA = msf_to_lba(msf)-150;
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
LC8951UpdateHeader();
@@ -419,7 +419,7 @@ void lc89510_temp_device::CDD_Resume(running_machine &machine)
{
CLEAR_CDD_RESULT
STOP_CDC_READ
- if(segacd.cd == NULL) // no CD is there, bail out
+ if(segacd.cd == nullptr) // no CD is there, bail out
return;
SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
SCD_STATUS = CDD_PLAYINGCDDA;
@@ -1156,16 +1156,16 @@ char* lc89510_temp_device::LC8915InitTransfer(int NeoCDDMACount)
{
if (!LC8951RegistersW[REG_W_DTTRG]) {
//bprintf(PRINT_ERROR, _T(" LC8951 DTTRG status invalid\n"));
- return NULL;
+ return nullptr;
}
if (!(LC8951RegistersW[REG_W_IFCTRL] & 0x02)) {
//bprintf(PRINT_ERROR, _T(" LC8951 DOUTEN status invalid\n"));
- return NULL;
+ return nullptr;
}
if (((LC8951RegistersW[REG_W_DACH] << 8) | LC8951RegistersW[REG_W_DACL]) + (NeoCDDMACount << 1) > LC89510_EXTERNAL_BUFFER_SIZE) {
//bprintf(PRINT_ERROR, _T(" DMA transfer exceeds current sector in LC8951 external buffer\n"));
- return NULL;
+ return nullptr;
}
char* addr = (char*)CDC_BUFFER + ((LC8951RegistersW[REG_W_DACH] << 8) | LC8951RegistersW[REG_W_DACL]);
diff --git a/src/mame/machine/mexico86.cpp b/src/mame/machine/mexico86.cpp
index c555928ee8e..dfffcf83b6a 100644
--- a/src/mame/machine/mexico86.cpp
+++ b/src/mame/machine/mexico86.cpp
@@ -18,7 +18,7 @@ WRITE8_MEMBER(mexico86_state::mexico86_f008_w)
{
m_audiocpu->set_input_line(INPUT_LINE_RESET, (data & 4) ? CLEAR_LINE : ASSERT_LINE);
- if (m_mcu != NULL)
+ if (m_mcu != nullptr)
{
// mexico 86, knight boy
m_mcu->set_input_line(INPUT_LINE_RESET, (data & 2) ? CLEAR_LINE : ASSERT_LINE);
diff --git a/src/mame/machine/mhavoc.cpp b/src/mame/machine/mhavoc.cpp
index 4c3a9dc2ab1..67453c09d87 100644
--- a/src/mame/machine/mhavoc.cpp
+++ b/src/mame/machine/mhavoc.cpp
@@ -84,7 +84,7 @@ void mhavoc_state::machine_start()
void mhavoc_state::machine_reset()
{
address_space &space = m_alpha->space(AS_PROGRAM);
- m_has_gamma_cpu = (m_gamma != NULL);
+ m_has_gamma_cpu = (m_gamma != nullptr);
membank("bank1")->configure_entry(0, m_zram0);
membank("bank1")->configure_entry(1, m_zram1);
diff --git a/src/mame/machine/microdrv.h b/src/mame/machine/microdrv.h
index 7d8913aae00..50225a3f564 100644
--- a/src/mame/machine/microdrv.h
+++ b/src/mame/machine/microdrv.h
@@ -61,7 +61,7 @@ public:
virtual bool is_reset_on_load() const { return 0; }
virtual const char *image_interface() const { return "ql_cass"; }
virtual const char *file_extensions() const { return "mdv"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
// specific implementation
DECLARE_WRITE_LINE_MEMBER( clk_w );
diff --git a/src/mame/machine/micropolis.cpp b/src/mame/machine/micropolis.cpp
index 73b1b58178e..9cf03159e18 100644
--- a/src/mame/machine/micropolis.cpp
+++ b/src/mame/machine/micropolis.cpp
@@ -80,13 +80,13 @@ micropolis_device::micropolis_device(const machine_config &mconfig, const char *
m_data_offset(0),
m_data_count(0),
m_sector_length(0),
- m_drive(NULL)
+ m_drive(nullptr)
{
for (int i = 0; i < 6144; i++)
m_buffer[i] = 0;
for (int i = 0; i < 4; i++)
- m_floppy_drive_tags[i] = NULL;
+ m_floppy_drive_tags[i] = nullptr;
}
//-------------------------------------------------
diff --git a/src/mame/machine/microtan.cpp b/src/mame/machine/microtan.cpp
index 4fca3fe18ca..158c7a9fed5 100644
--- a/src/mame/machine/microtan.cpp
+++ b/src/mame/machine/microtan.cpp
@@ -463,11 +463,11 @@ DRIVER_INIT_MEMBER(microtan_state,microtan)
space.nop_readwrite(0x0400, 0xbbff);
break;
case 1: // +7K TANEX
- space.install_ram(0x0400, 0x1fff,NULL);
+ space.install_ram(0x0400, 0x1fff,nullptr);
space.nop_readwrite(0x2000, 0xbbff);
break;
default: // +7K TANEX + 40K TANRAM
- space.install_ram(0x0400, 0xbbff, NULL);
+ space.install_ram(0x0400, 0xbbff, nullptr);
break;
}
diff --git a/src/mame/machine/midwayic.cpp b/src/mame/machine/midwayic.cpp
index 3f77308544b..783eb12ed3e 100644
--- a/src/mame/machine/midwayic.cpp
+++ b/src/mame/machine/midwayic.cpp
@@ -225,7 +225,7 @@ midway_serial_pic2_device::midway_serial_pic2_device(const machine_config &mconf
m_time_index(0),
m_time_just_written(0),
m_yearoffs(0),
- m_time_write_timer(NULL)
+ m_time_write_timer(nullptr)
{
memset(m_buffer,0,sizeof(m_buffer));
memset(m_time_buf,0,sizeof(m_time_buf));
@@ -245,7 +245,7 @@ midway_serial_pic2_device::midway_serial_pic2_device(const machine_config &mconf
m_time_index(0),
m_time_just_written(0),
m_yearoffs(0),
- m_time_write_timer(NULL)
+ m_time_write_timer(nullptr)
{
memset(m_buffer,0,sizeof(m_buffer));
memset(m_time_buf,0,sizeof(m_time_buf));
@@ -595,11 +595,11 @@ midway_ioasic_device::midway_ioasic_device(const machine_config &mconfig, const
midway_serial_pic2_device(mconfig, MIDWAY_IOASIC, "Midway IOASIC", tag, owner, clock, "midway_ioasic", __FILE__),
m_has_dcs(0),
m_has_cage(0),
- m_dcs_cpu(NULL),
+ m_dcs_cpu(nullptr),
m_shuffle_type(0),
m_shuffle_default(0),
m_shuffle_active(0),
- m_shuffle_map(NULL),
+ m_shuffle_map(nullptr),
m_irq_callback(*this),
m_irq_state(0),
m_sound_irq_state(0),
@@ -609,8 +609,8 @@ midway_ioasic_device::midway_ioasic_device(const machine_config &mconfig, const
m_fifo_out(0),
m_fifo_bytes(0),
m_fifo_force_buffer_empty_pc(0),
- m_cage(NULL),
- m_dcs(NULL)
+ m_cage(nullptr),
+ m_dcs(nullptr)
{
memset(m_fifo,0,sizeof(m_fifo));
memset(m_reg,0,sizeof(m_reg));
@@ -641,14 +641,14 @@ void midway_ioasic_device::device_start()
/* do we have a DCS2 sound chip connected? (most likely) */
m_dcs = machine().device<dcs_audio_device>("dcs");
- m_has_dcs = (m_dcs != NULL);
+ m_has_dcs = (m_dcs != nullptr);
m_cage = machine().device<atari_cage_device>("cage");
- m_has_cage = (m_cage != NULL);
+ m_has_cage = (m_cage != nullptr);
m_dcs_cpu = m_dcs->subdevice("dcs2");
- if (m_dcs_cpu == NULL)
+ if (m_dcs_cpu == nullptr)
m_dcs_cpu = m_dcs->subdevice("dsio");
- if (m_dcs_cpu == NULL)
+ if (m_dcs_cpu == nullptr)
m_dcs_cpu = m_dcs->subdevice("denver");
m_shuffle_map = &shuffle_maps[m_shuffle_type][0];
// resolve callbacks
diff --git a/src/mame/machine/mie.cpp b/src/mame/machine/mie.cpp
index 108192fd021..55bac6f038f 100644
--- a/src/mame/machine/mie.cpp
+++ b/src/mame/machine/mie.cpp
@@ -96,9 +96,9 @@ mie_device::mie_device(const machine_config &mconfig, const char *tag, device_t
: maple_device(mconfig, MIE, "Sega 315-6146 MIE", tag, owner, clock, "mie", __FILE__)
{
memset(gpio_name, 0, sizeof(gpio_name));
- jvs_name = 0;
- cpu = 0;
- jvs = 0;
+ jvs_name = nullptr;
+ cpu = nullptr;
+ jvs = nullptr;
}
void mie_device::device_start()
@@ -110,7 +110,7 @@ void mie_device::device_start()
for (int i = 0; i < ARRAY_LENGTH(gpio_name); i++)
{
- gpio_port[i] = gpio_name[i] ? ioport(gpio_name[i]) : NULL;
+ gpio_port[i] = gpio_name[i] ? ioport(gpio_name[i]) : nullptr;
}
save_item(NAME(gpiodir));
diff --git a/src/mame/machine/mm1kb.cpp b/src/mame/machine/mm1kb.cpp
index 5097eb78225..88faf286961 100644
--- a/src/mame/machine/mm1kb.cpp
+++ b/src/mame/machine/mm1kb.cpp
@@ -45,7 +45,7 @@ static const char *const mm1_kb_sample_names[] =
"*MM1_keyboard",
"beep", // beep at 2.6 kHz
"power_switch", // not actually on the keyboard, but close enough :)
- 0
+ nullptr
};
bool mm1_keyboard_t::first_time = true;
diff --git a/src/mame/machine/model1.cpp b/src/mame/machine/model1.cpp
index 2b7460b2a8b..df1e8006bbf 100644
--- a/src/mame/machine/model1.cpp
+++ b/src/mame/machine/model1.cpp
@@ -1586,15 +1586,15 @@ const struct model1_state::function model1_state::ftab_vf[] = {
{ &model1_state::fsub, 2 },
{ &model1_state::fmul, 2 },
{ &model1_state::fdiv, 2 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::matrix_push, 0 },
{ &model1_state::matrix_pop, 0 },
{ &model1_state::matrix_write, 12 },
{ &model1_state::clear_stack, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::anglev, 2 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
{ &model1_state::track_select, 1 },
{ &model1_state::f14, 4 },
{ &model1_state::anglep, 4 },
@@ -1606,9 +1606,9 @@ const struct model1_state::function model1_state::ftab_vf[] = {
{ &model1_state::matrix_rotx, 1 },
{ &model1_state::matrix_roty, 1 },
{ &model1_state::matrix_rotz, 1 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::track_read_quad, 1 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::transform_point, 3 },
{ &model1_state::fsin_m1, 1 },
{ &model1_state::fcos_m1, 1 },
@@ -1616,10 +1616,10 @@ const struct model1_state::function model1_state::ftab_vf[] = {
{ &model1_state::fcosm_m1, 2 },
{ &model1_state::distance3, 6 },
- { NULL, 0 }, /* 0x20 */
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 }, /* 0x20 */
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
{ &model1_state::acc_set, 1 },
{ &model1_state::acc_get, 0 },
{ &model1_state::acc_add, 1 },
@@ -1631,54 +1631,54 @@ const struct model1_state::function model1_state::ftab_vf[] = {
{ &model1_state::f44, 1 },
{ &model1_state::f45, 1 },
{ &model1_state::vlength, 3 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::track_read_info, 1 }, /* 0x30 */
{ &model1_state::colbox_set, 12 },
{ &model1_state::colbox_test, 3 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
{ &model1_state::track_lookup, 4 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
{ &model1_state::col_setcirc, 3 }, /* 0x40 */
{ &model1_state::col_testpt, 2 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::distance, 4 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
{ &model1_state::car_move, 4 },
{ &model1_state::cpa, 12 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::vmat_store, 1 },
{ &model1_state::vmat_restore, 1 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::vmat_mul, 2 },
{ &model1_state::vmat_read, 1 },
{ &model1_state::matrix_unrot, 0 },
{ &model1_state::f80, 0 }, /* 0x50 */
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::matrix_rtrans, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::vmat_save, 1 },
{ &model1_state::vmat_load, 1 },
{ &model1_state::ram_setadr, 1 },
{ &model1_state::groundbox_test, 3 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::f89, 4 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
{ &model1_state::f92, 4 },
{ &model1_state::f93, 1 },
{ &model1_state::f94, 1 },
@@ -1704,7 +1704,7 @@ const struct model1_state::function model1_state::ftab_swa[] = {
{ &model1_state::fsub, 2 },
{ &model1_state::fmul, 2 },
{ &model1_state::fdiv, 2 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::matrix_push, 0 },
{ &model1_state::matrix_pop, 0 },
{ &model1_state::matrix_write, 12 },
@@ -1724,9 +1724,9 @@ const struct model1_state::function model1_state::ftab_swa[] = {
{ &model1_state::matrix_rotx, 1 },
{ &model1_state::matrix_roty, 1 },
{ &model1_state::matrix_rotz, 1 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::f24_swa, 7 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::transform_point, 3 },
{ &model1_state::fsin_m1, 1 },
{ &model1_state::fcos_m1, 1 },
@@ -1734,8 +1734,8 @@ const struct model1_state::function model1_state::ftab_swa[] = {
{ &model1_state::fcosm_m1, 2 },
{ &model1_state::distance3, 6 },
- { NULL, 0 }, /* 0x20 */
- { NULL, 0 },
+ { nullptr, 0 }, /* 0x20 */
+ { nullptr, 0 },
{ &model1_state::ftoi, 1 },
{ &model1_state::itof, 1 },
{ &model1_state::acc_set, 1 },
@@ -1751,26 +1751,26 @@ const struct model1_state::function model1_state::ftab_swa[] = {
{ &model1_state::vlength, 3 },
{ &model1_state::f47, 3 },
- { NULL, 0 }, /* 0x30 */
+ { nullptr, 0 }, /* 0x30 */
{ &model1_state::f49_swa, 6 },
{ &model1_state::f50_swa, 4 },
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::f52, 0 },
{ &model1_state::matrix_rdir, 3 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
{ &model1_state::f56, 7 },
{ &model1_state::f57, 0 },
{ &model1_state::matrix_readt, 0 },
{ &model1_state::acc_geti, 0 },
{ &model1_state::f60, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
{ &model1_state::push_and_ident, 0 }, /* 0x40 */
- { NULL, 0 },
+ { nullptr, 0 },
{ &model1_state::catmull_rom, 13 }
};
@@ -1792,7 +1792,7 @@ TGP_FUNCTION( model1_state::function_get_vf )
count += FIFO_SIZE;
logerror("TGP function called with sizeout = %d\n", count);
}
- if(ARRAY_LENGTH(ftab_vf) > f && NULL != ftab_vf[f].cb) {
+ if(ARRAY_LENGTH(ftab_vf) > f && nullptr != ftab_vf[f].cb) {
m_fifoin_cbcount = ftab_vf[f].count;
m_fifoin_cb = model1_state::ftab_vf[f].cb;
// logerror("TGP function %d request, %d parameters\n", f, m_fifoin_cbcount);
@@ -1815,7 +1815,7 @@ TGP_FUNCTION( model1_state::function_get_swa )
count += FIFO_SIZE;
logerror("TGP function called with sizeout = %d\n", count);
}
- if(ARRAY_LENGTH(ftab_swa) > f && NULL != ftab_swa[f].cb) {
+ if(ARRAY_LENGTH(ftab_swa) > f && nullptr != ftab_swa[f].cb) {
m_fifoin_cbcount = ftab_swa[f].count;
m_fifoin_cb = model1_state::ftab_swa[f].cb;
// logerror("TGP function %d request, %d parameters\n", f, m_fifoin_cbcount);
diff --git a/src/mame/machine/msx.cpp b/src/mame/machine/msx.cpp
index 92add704ebe..11402a50c40 100644
--- a/src/mame/machine/msx.cpp
+++ b/src/mame/machine/msx.cpp
@@ -407,7 +407,7 @@ void msx_state::msx_memory_init()
{
for ( int page = 0; page < 4; page++ )
{
- if ( m_all_slots[prim][sec][page] == NULL )
+ if ( m_all_slots[prim][sec][page] == nullptr )
{
m_all_slots[prim][sec][page] = &m_empty_slot;
}
diff --git a/src/mame/machine/mtx.cpp b/src/mame/machine/mtx.cpp
index 0594ec6c086..26a0ae6876a 100644
--- a/src/mame/machine/mtx.cpp
+++ b/src/mame/machine/mtx.cpp
@@ -347,7 +347,7 @@ SNAPSHOT_LOAD_MEMBER( mtx_state, mtx )
// verify first byte
if (header[0] != 0xff)
{
- image.seterror(IMAGE_ERROR_INVALIDIMAGE, NULL);
+ image.seterror(IMAGE_ERROR_INVALIDIMAGE, nullptr);
return IMAGE_INIT_FAIL;
}
diff --git a/src/mame/machine/n64.cpp b/src/mame/machine/n64.cpp
index e3270364f66..91ce7e482e4 100644
--- a/src/mame/machine/n64.cpp
+++ b/src/mame/machine/n64.cpp
@@ -23,7 +23,7 @@ const device_type N64PERIPH = &device_creator<n64_periphs>;
n64_periphs::n64_periphs(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, N64PERIPH, "N64 Periphal Chips", tag, owner, clock, "n64_periphs", __FILE__)
, device_video_interface(mconfig, *this)
- , m_nvram_image(NULL)
+ , m_nvram_image(nullptr)
, dd_present(false)
, disk_present(false)
, cart_present(false)
@@ -1281,7 +1281,7 @@ n64_periphs::AUDIO_DMA *n64_periphs::ai_fifo_get_top()
}
else
{
- return NULL;
+ return nullptr;
}
}
@@ -1324,7 +1324,7 @@ void n64_periphs::ai_timer_tick()
signal_rcp_interrupt(AI_INTERRUPT);
// keep playing if there's another DMA queued
- if (ai_fifo_get_top() != NULL)
+ if (ai_fifo_get_top() != nullptr)
{
ai_dma();
}
@@ -2736,7 +2736,7 @@ void n64_state::n64_machine_stop()
{
n64_periphs *periphs = machine().device<n64_periphs>("rcp");
- if( periphs->m_nvram_image == NULL )
+ if( periphs->m_nvram_image == nullptr )
return;
device_image_interface *image = dynamic_cast<device_image_interface *>(periphs->m_nvram_image);
diff --git a/src/mame/machine/namco51.cpp b/src/mame/machine/namco51.cpp
index eb8e17cc02d..2cd77ab69b5 100644
--- a/src/mame/machine/namco51.cpp
+++ b/src/mame/machine/namco51.cpp
@@ -97,7 +97,7 @@ WRITE8_MEMBER( namco_51xx_device::write )
{
/* kludge for a possible bug in Xevious */
- static const game_driver *namcoio_51XX_driver = NULL;
+ static const game_driver *namcoio_51XX_driver = nullptr;
static int namcoio_51XX_kludge = 0;
/* Only compute namcoio_51XX_kludge when gamedrv changes */
diff --git a/src/mame/machine/namcos2.cpp b/src/mame/machine/namcos2.cpp
index 5561aac6300..7265a607d81 100644
--- a/src/mame/machine/namcos2.cpp
+++ b/src/mame/machine/namcos2.cpp
@@ -101,7 +101,7 @@ void namcos2_shared_state::reset_all_subcpus(int state)
MACHINE_START_MEMBER(namcos2_shared_state,namcos2)
{
- namcos2_kickstart = NULL;
+ namcos2_kickstart = nullptr;
m_eeprom = auto_alloc_array(machine(), UINT8, m_eeprom_size);
machine().device<nvram_device>("nvram")->set_base(m_eeprom, m_eeprom_size);
m_posirq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(namcos2_shared_state::namcos2_posirq_tick),this));
@@ -448,9 +448,9 @@ void namcos2_shared_state::init_c148()
UINT16 namcos2_shared_state::readwrite_c148( address_space &space, offs_t offset, UINT16 data, int bWrite )
{
offs_t addr = ((offset * 2) + 0x1c0000) & 0x1fe000;
- device_t *altcpu = NULL;
- UINT16 *pC148Reg = NULL;
- UINT16 *pC148RegAlt = NULL;
+ device_t *altcpu = nullptr;
+ UINT16 *pC148Reg = nullptr;
+ UINT16 *pC148RegAlt = nullptr;
UINT16 result = 0;
if (&space.device() == m_maincpu)
@@ -563,7 +563,7 @@ UINT16 namcos2_shared_state::readwrite_c148( address_space &space, offs_t offset
/* Suspend execution */
m_audiocpu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
}
- if (namcos2_kickstart != NULL)
+ if (namcos2_kickstart != nullptr)
{
//printf( "dspkick=0x%x\n", data );
if (data & 0x04)
diff --git a/src/mame/machine/naomibd.cpp b/src/mame/machine/naomibd.cpp
index be95c340f96..704c357d70f 100644
--- a/src/mame/machine/naomibd.cpp
+++ b/src/mame/machine/naomibd.cpp
@@ -68,8 +68,8 @@ ADDRESS_MAP_END
naomi_board::naomi_board(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
: naomi_g1_device(mconfig, type, name, tag, owner, clock, shortname, source)
{
- eeprom_tag = 0;
- rombdid_tag = 0;
+ eeprom_tag = nullptr;
+ rombdid_tag = nullptr;
}
void naomi_board::static_set_eeprom_tag(device_t &device, const char *_eeprom_tag, const char *_actel_tag)
@@ -94,7 +94,7 @@ void naomi_board::device_start()
if(eeprom_tag)
eeprom = machine().device<x76f100_device>(eeprom_tag);
else
- eeprom = 0;
+ eeprom = nullptr;
}
void naomi_board::device_reset()
@@ -110,7 +110,7 @@ void naomi_board::device_reset()
void naomi_board::dma_get_position(UINT8 *&base, UINT32 &limit, bool to_mainram)
{
if(!to_mainram) {
- base = 0;
+ base = nullptr;
limit = 0;
return;
}
diff --git a/src/mame/machine/naomigd.cpp b/src/mame/machine/naomigd.cpp
index fbe9cd3d32c..136d7a959b1 100644
--- a/src/mame/machine/naomigd.cpp
+++ b/src/mame/machine/naomigd.cpp
@@ -329,8 +329,8 @@ void naomi_gdrom_board::write_from_qword(UINT8 *region, UINT64 qword)
naomi_gdrom_board::naomi_gdrom_board(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: naomi_board(mconfig, NAOMI_GDROM_BOARD, "Sega NAOMI GDROM Board", tag, owner, clock, "naomi_gdrom_board", __FILE__)
{
- image_tag = 0;
- pic_tag = 0;
+ image_tag = nullptr;
+ pic_tag = nullptr;
}
void naomi_gdrom_board::static_set_tags(device_t &device, const char *_image_tag, const char *_pic_tag)
@@ -388,7 +388,7 @@ void naomi_gdrom_board::device_start()
{
naomi_board::device_start();
- dimm_data = 0;
+ dimm_data = nullptr;
dimm_data_size = 0;
char name[128];
diff --git a/src/mame/machine/naomim1.cpp b/src/mame/machine/naomim1.cpp
index 84d2db5ecef..5b16f278fb7 100644
--- a/src/mame/machine/naomim1.cpp
+++ b/src/mame/machine/naomim1.cpp
@@ -19,7 +19,7 @@ naomi_m1_board::naomi_m1_board(const machine_config &mconfig, const char *tag, d
READ16_MEMBER(naomi_m1_board::actel_id_r)
{
- if (rombdid_tag && memregion(rombdid_tag) != NULL)
+ if (rombdid_tag && memregion(rombdid_tag) != nullptr)
{
const UINT8 *bdid = memregion(rombdid_tag)->base();
return bdid[0] | (bdid[1] << 8);
@@ -34,7 +34,7 @@ void naomi_m1_board::device_start()
std::string skey = parameter("key");
if(!skey.empty())
- key = strtoll(skey.c_str(), 0, 16);
+ key = strtoll(skey.c_str(), nullptr, 16);
else
{
logerror("%s: Warning: key not provided\n", tag());
diff --git a/src/mame/machine/naomim4.cpp b/src/mame/machine/naomim4.cpp
index 2e23d76aca4..d22f7540ebc 100644
--- a/src/mame/machine/naomim4.cpp
+++ b/src/mame/machine/naomim4.cpp
@@ -49,7 +49,7 @@ ADDRESS_MAP_END
naomi_m4_board::naomi_m4_board(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: naomi_board(mconfig, NAOMI_M4_BOARD, "Sega NAOMI M4 Board", tag, owner, clock, "naomi_m4_board", __FILE__)
{
- key_tag = 0;
+ key_tag = nullptr;
}
void naomi_m4_board::static_set_tags(device_t &device, const char *_key_tag)
@@ -134,7 +134,7 @@ void naomi_m4_board::board_get_buffer(UINT8 *&base, UINT32 &limit)
if (cfi_mode) {
int fpr_num = 0;
- if (rombdid_tag && memregion(rombdid_tag) != NULL)
+ if (rombdid_tag && memregion(rombdid_tag) != nullptr)
{
fpr_num = *memregion(rombdid_tag)->base() & 0x7f;
@@ -217,7 +217,7 @@ READ16_MEMBER(naomi_m4_board::m4_id_r)
{
UINT16 epr_flag = 0;
- if (rombdid_tag && memregion(rombdid_tag) != NULL)
+ if (rombdid_tag && memregion(rombdid_tag) != nullptr)
{
epr_flag = *memregion(rombdid_tag)->base() & 0x80;
diff --git a/src/mame/machine/nb1414m4.cpp b/src/mame/machine/nb1414m4.cpp
index b860a3395cc..07fc537fd6c 100644
--- a/src/mame/machine/nb1414m4.cpp
+++ b/src/mame/machine/nb1414m4.cpp
@@ -35,7 +35,7 @@ const device_type NB1414M4 = &device_creator<nb1414m4_device>;
nb1414m4_device::nb1414m4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NB1414M4, "NB1414M4 Mahjong Custom", tag, owner, clock, "nb1414m4", __FILE__),
device_video_interface(mconfig, *this),
- m_data(NULL)
+ m_data(nullptr)
{
}
diff --git a/src/mame/machine/ng_memcard.h b/src/mame/machine/ng_memcard.h
index 9d457ddaa59..f9dfd186c92 100644
--- a/src/mame/machine/ng_memcard.h
+++ b/src/mame/machine/ng_memcard.h
@@ -41,7 +41,7 @@ public:
virtual bool must_be_loaded() const { return false; }
virtual bool is_reset_on_load() const { return false; }
virtual const char *file_extensions() const { return "neo"; }
- 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();
diff --git a/src/mame/machine/nmk112.cpp b/src/mame/machine/nmk112.cpp
index 6e925b53cc7..afe6588c000 100644
--- a/src/mame/machine/nmk112.cpp
+++ b/src/mame/machine/nmk112.cpp
@@ -22,10 +22,10 @@ const device_type NMK112 = &device_creator<nmk112_device>;
nmk112_device::nmk112_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NMK112, "NMK112", tag, owner, clock, "nmk112", __FILE__),
m_page_mask(0xff),
- m_tag0(NULL),
- m_tag1(NULL),
- m_rom0(NULL),
- m_rom1(NULL),
+ m_tag0(nullptr),
+ m_tag1(nullptr),
+ m_rom0(nullptr),
+ m_rom1(nullptr),
m_size0(0),
m_size1(0)
{
diff --git a/src/mame/machine/osborne1.cpp b/src/mame/machine/osborne1.cpp
index 5ba2a530edc..4d7856e8eb2 100644
--- a/src/mame/machine/osborne1.cpp
+++ b/src/mame/machine/osborne1.cpp
@@ -223,7 +223,7 @@ WRITE8_MEMBER( osborne1_state::video_pia_port_b_w )
}
else
{
- m_fdc->set_floppy(NULL);
+ m_fdc->set_floppy(nullptr);
}
}
diff --git a/src/mame/machine/pce220_ser.h b/src/mame/machine/pce220_ser.h
index ec52e5c0476..e1d48a02cb8 100644
--- a/src/mame/machine/pce220_ser.h
+++ b/src/mame/machine/pce220_ser.h
@@ -38,9 +38,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 "txt,ihx"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
// specific implementation
UINT8 in_xin(void) { return m_xin & 0x01; }
diff --git a/src/mame/machine/pk8020.cpp b/src/mame/machine/pk8020.cpp
index e065aac7fd7..ef70113fdcb 100644
--- a/src/mame/machine/pk8020.cpp
+++ b/src/mame/machine/pk8020.cpp
@@ -830,7 +830,7 @@ WRITE8_MEMBER(pk8020_state::pk8020_portc_w)
WRITE8_MEMBER(pk8020_state::pk8020_portb_w)
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
// Turn all motors off
if (m_floppy0->get_device()) m_floppy0->get_device()->mon_w(1);
diff --git a/src/mame/machine/playch10.cpp b/src/mame/machine/playch10.cpp
index 44d35252341..b9c6cf5d56a 100644
--- a/src/mame/machine/playch10.cpp
+++ b/src/mame/machine/playch10.cpp
@@ -47,12 +47,12 @@ void playch10_state::machine_start()
machine().device("ppu")->memory().space(AS_PROGRAM).install_readwrite_handler(0, 0x1fff, read8_delegate(FUNC(playch10_state::pc10_chr_r),this), write8_delegate(FUNC(playch10_state::pc10_chr_w),this));
machine().device("ppu")->memory().space(AS_PROGRAM).install_readwrite_handler(0x2000, 0x3eff, read8_delegate(FUNC(playch10_state::pc10_nt_r),this),write8_delegate(FUNC(playch10_state::pc10_nt_w),this));
- if (NULL != m_vram)
+ if (nullptr != m_vram)
set_videoram_bank(0, 8, 0, 8);
else pc10_set_videorom_bank(0, 8, 0, 8);
nvram_device *nvram = machine().device<nvram_device>("nvram");
- if (nvram != NULL)
+ if (nvram != nullptr)
nvram->set_base(memregion("cart" )->base() + 0x6000, 0x1000);
}
@@ -387,7 +387,7 @@ void playch10_state::set_videoram_bank( int first, int count, int bank, int size
DRIVER_INIT_MEMBER(playch10_state,playch10)
{
- m_vram = NULL;
+ m_vram = nullptr;
/* set the controller to default */
m_pc10_gun_controller = 0;
@@ -410,7 +410,7 @@ DRIVER_INIT_MEMBER(playch10_state,pc_gun)
DRIVER_INIT_CALL(playch10);
/* we have no vram, make sure switching games doesn't point to an old allocation */
- m_vram = NULL;
+ m_vram = nullptr;
/* set the control type */
m_pc10_gun_controller = 1;
@@ -567,7 +567,7 @@ DRIVER_INIT_MEMBER(playch10_state,pcaboard)
m_mirroring = PPU_MIRROR_VERT;
/* we have no vram, make sure switching games doesn't point to an old allocation */
- m_vram = NULL;
+ m_vram = nullptr;
}
/**********************************************************************************/
@@ -618,7 +618,7 @@ DRIVER_INIT_MEMBER(playch10_state,pccboard)
machine().device("cart")->memory().space(AS_PROGRAM).install_write_handler(0x6000, 0x6000, write8_delegate(FUNC(playch10_state::cboard_vrom_switch_w),this));
/* we have no vram, make sure switching games doesn't point to an old allocation */
- m_vram = NULL;
+ m_vram = nullptr;
/* common init */
DRIVER_INIT_CALL(playch10);
@@ -743,7 +743,7 @@ DRIVER_INIT_MEMBER(playch10_state,pceboard)
UINT8 *prg = memregion("cart")->base();
/* we have no vram, make sure switching games doesn't point to an old allocation */
- m_vram = NULL;
+ m_vram = nullptr;
/* We do manual banking, in case the code falls through */
/* Copy the initial banks */
@@ -771,7 +771,7 @@ DRIVER_INIT_MEMBER(playch10_state,pcfboard)
UINT32 len = memregion("cart")->bytes();
/* we have no vram, make sure switching games doesn't point to an old allocation */
- m_vram = NULL;
+ m_vram = nullptr;
/* We do manual banking, in case the code falls through */
/* Copy the initial banks */
@@ -793,7 +793,7 @@ DRIVER_INIT_MEMBER(playch10_state,pcfboard_2)
/* extra ram at $6000-$6fff */
machine().device("cart")->memory().space(AS_PROGRAM).install_ram(0x6000, 0x6fff);
- m_vram = NULL;
+ m_vram = nullptr;
/* common init */
DRIVER_INIT_CALL(pcfboard);
@@ -957,7 +957,7 @@ DRIVER_INIT_MEMBER(playch10_state,pcgboard)
{
ppu2c0x_device *ppu = machine().device<ppu2c0x_device>("ppu");
UINT8 *prg = memregion("cart")->base();
- m_vram = NULL;
+ m_vram = nullptr;
/* We do manual banking, in case the code falls through */
/* Copy the initial banks */
@@ -986,7 +986,7 @@ DRIVER_INIT_MEMBER(playch10_state,pcgboard)
DRIVER_INIT_MEMBER(playch10_state,pcgboard_type2)
{
- m_vram = NULL;
+ m_vram = nullptr;
/* common init */
DRIVER_INIT_CALL(pcgboard);
diff --git a/src/mame/machine/pmd85.cpp b/src/mame/machine/pmd85.cpp
index d5435443d26..df62cd75b69 100644
--- a/src/mame/machine/pmd85.cpp
+++ b/src/mame/machine/pmd85.cpp
@@ -402,7 +402,7 @@ WRITE8_MEMBER(pmd85_state::pmd85_ppi_2_portc_w)
READ8_MEMBER(pmd85_state::pmd85_ppi_3_porta_r)
{
- if (memregion("user1")->base() != NULL)
+ if (memregion("user1")->base() != nullptr)
return memregion("user1")->base()[m_ppi_port_outputs[3][1] | (m_ppi_port_outputs[3][2] << 8)];
else
return 0;
@@ -797,7 +797,7 @@ DRIVER_INIT_MEMBER(pmd85_state,mato)
}
for ( int i = 9; i < 16; i++ )
{
- m_io_port[i] = NULL;
+ m_io_port[i] = nullptr;
}
}
diff --git a/src/mame/machine/prof80mmu.cpp b/src/mame/machine/prof80mmu.cpp
index ebdccf33004..68bdabb7237 100644
--- a/src/mame/machine/prof80mmu.cpp
+++ b/src/mame/machine/prof80mmu.cpp
@@ -61,7 +61,7 @@ void prof80_mmu_device::device_start()
const address_space_config *prof80_mmu_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == AS_PROGRAM) ? &m_program_space_config : NULL;
+ return (spacenum == AS_PROGRAM) ? &m_program_space_config : nullptr;
}
diff --git a/src/mame/machine/psion_pack.cpp b/src/mame/machine/psion_pack.cpp
index d5ca2da2324..eef4bdc4709 100644
--- a/src/mame/machine/psion_pack.cpp
+++ b/src/mame/machine/psion_pack.cpp
@@ -128,7 +128,7 @@ void datapack_device::update()
if ((m_control & DP_LINE_OUTPUT_ENABLE) && !(m_control & DP_LINE_RESET))
{
// write data
- if (software_entry() == NULL && (m_id & DP_ID_WRITE))
+ if (software_entry() == nullptr && (m_id & DP_ID_WRITE))
{
fseek(pack_addr + OPK_HEAD_SIZE, SEEK_SET);
fwrite(&m_data, 1);
@@ -164,7 +164,7 @@ void datapack_device::update()
else if (!(m_control & DP_LINE_OUTPUT_ENABLE) && (m_control & DP_LINE_RESET))
{
// read datapack ID
- if ((m_id & DP_ID_EPROM) || software_entry() != NULL)
+ if ((m_id & DP_ID_EPROM) || software_entry() != nullptr)
m_data = m_id;
else
m_data = 0x01; // for identify RAM pack
@@ -282,7 +282,7 @@ bool datapack_device::call_create(int format_type, option_resolution *create_arg
{
static const UINT8 opk_head[6] = {'O', 'P', 'K', 0x00, 0x00, 0x00};
- if (create_args != NULL)
+ if (create_args != nullptr)
{
m_id = 0x40;
m_id |= (option_resolution_lookup_int(create_args, 'R')) ? 0x00 : 0x02;
diff --git a/src/mame/machine/psxcd.cpp b/src/mame/machine/psxcd.cpp
index 5ee9eaee9dd..552ad78b3e4 100644
--- a/src/mame/machine/psxcd.cpp
+++ b/src/mame/machine/psxcd.cpp
@@ -108,7 +108,7 @@ void psxcd_device::device_start()
m_sysclock = sysclk;
- res_queue = NULL;
+ res_queue = nullptr;
rdp = 0;
status=status_shellopen;
mode=0;
@@ -171,7 +171,7 @@ void psxcd_device::device_reset()
}
open = true;
if(m_cdrom_handle)
- add_system_event(event_change_disk, m_sysclock, NULL);
+ add_system_event(event_change_disk, m_sysclock, nullptr);
while(res_queue)
{
@@ -188,7 +188,7 @@ void psxcd_device::device_reset()
m_cursec = 0;
m_mute = false;
m_dmaload = false;
- m_int1 = NULL;
+ m_int1 = nullptr;
curpos.w = 0;
}
@@ -197,7 +197,7 @@ bool psxcd_device::call_load()
bool ret = cdrom_image_device::call_load();
open = true;
if(ret == IMAGE_INIT_PASS)
- add_system_event(event_change_disk, m_sysclock, NULL); // 1 sec to spin up the disk
+ add_system_event(event_change_disk, m_sysclock, nullptr); // 1 sec to spin up the disk
return ret;
}
@@ -361,7 +361,7 @@ WRITE8_MEMBER( psxcd_device::write )
{
command_result *res = res_queue;
if(res == m_int1)
- m_int1 = NULL;
+ m_int1 = nullptr;
res_queue = res->next;
global_free(res);
@@ -508,7 +508,7 @@ void psxcd_device::cdcmd_readn()
start_read();
} else
{
- send_result(intr_diskerror, NULL, 0, 0x80);
+ send_result(intr_diskerror, nullptr, 0, 0x80);
}
}
@@ -671,7 +671,7 @@ void psxcd_device::cdcmd_gettn()
}
else
{
- send_result(intr_diskerror, NULL, 0, 0x80);
+ send_result(intr_diskerror, nullptr, 0, 0x80);
}
}
@@ -700,7 +700,7 @@ void psxcd_device::cdcmd_gettd()
}
else
{
- send_result(intr_diskerror, NULL, 0, 0x80);
+ send_result(intr_diskerror, nullptr, 0, 0x80);
}
}
@@ -744,7 +744,7 @@ void psxcd_device::cdcmd_test()
default:
verboselog(*this, 0, "psxcd: unimplemented test cmd %02x\n", cmdbuf[0]);
- cmd_complete(prepare_result(intr_diskerror, NULL, 0, 0x10));
+ cmd_complete(prepare_result(intr_diskerror, nullptr, 0, 0x10));
break;
}
}
@@ -779,7 +779,7 @@ void psxcd_device::cdcmd_id()
}
else
{
- send_result(intr_diskerror, NULL, 0, 0x80);
+ send_result(intr_diskerror, nullptr, 0, 0x80);
}
}
@@ -795,7 +795,7 @@ void psxcd_device::cdcmd_reads()
start_read();
} else
{
- send_result(intr_diskerror, NULL, 0, 0x80);
+ send_result(intr_diskerror, nullptr, 0, 0x80);
}
}
@@ -809,7 +809,7 @@ void psxcd_device::cdcmd_readtoc()
verboselog(*this, 1, "psxcd: readtoc\n");
send_result(intr_complete);
- send_result(intr_acknowledge, NULL, 0, default_irq_delay*3); // ?
+ send_result(intr_acknowledge, nullptr, 0, default_irq_delay*3); // ?
}
void psxcd_device::cdcmd_unknown12()
@@ -819,7 +819,7 @@ void psxcd_device::cdcmd_unknown12()
if(cmdbuf[0] == 1)
send_result(intr_complete);
else
- send_result(intr_diskerror, NULL, 0, 0x40);
+ send_result(intr_diskerror, nullptr, 0, 0x40);
}
void psxcd_device::cdcmd_illegal17()
@@ -841,7 +841,7 @@ void psxcd_device::illegalcmd(UINT8 cmd)
{
verboselog(*this, 0, "psxcd: unimplemented cd command %02x\n", cmd);
- send_result(intr_diskerror, NULL, 0, 0x40);
+ send_result(intr_diskerror, nullptr, 0, 0x40);
}
void psxcd_device::cmd_complete(command_result *res)
@@ -863,12 +863,12 @@ void psxcd_device::cmd_complete(command_result *res)
m_irq_handler(1);
m_regs.sr |= 0x20;
}
- res->next = NULL;
+ res->next = nullptr;
}
psxcd_device::command_result *psxcd_device::prepare_result(UINT8 res, UINT8 *data, int sz, UINT8 errcode)
{
- command_result *cr=global_alloc(command_result);
+ auto cr=global_alloc(command_result);
cr->res=res;
if (sz)
@@ -1008,7 +1008,7 @@ void psxcd_device::read_sector()
next_sector_t+=cyc;
- next_read_event = add_system_event(event_read_sector, cyc, NULL);
+ next_read_event = add_system_event(event_read_sector, cyc, nullptr);
} else
{
verboselog(*this, 1, "psxcd: autopause xa\n");
@@ -1073,7 +1073,7 @@ void psxcd_device::play_sector()
if ((mode&mode_report) && !(sector & 15)) // slow the int rate
{
- command_result *res=global_alloc(command_result);
+ auto res=global_alloc(command_result);
UINT8 track = cdrom_get_track(m_cdrom_handle, sector) + 1;
res->res=intr_dataready;
@@ -1105,7 +1105,7 @@ void psxcd_device::play_sector()
next_sector_t+=cyc>>1;
- next_read_event = add_system_event(event_play_sector, next_sector_t - m_maincpu->total_cycles(), NULL);
+ next_read_event = add_system_event(event_play_sector, next_sector_t - m_maincpu->total_cycles(), nullptr);
}
}
@@ -1118,7 +1118,7 @@ void psxcd_device::start_read()
if(!(mode & mode_cdda) && (cdrom_get_track_type(m_cdrom_handle, cdrom_get_track(m_cdrom_handle, sector + 150)) == CD_TRACK_AUDIO))
{
stop_read();
- cmd_complete(prepare_result(intr_diskerror, NULL, 0, 0x40));
+ cmd_complete(prepare_result(intr_diskerror, nullptr, 0, 0x40));
return;
}
send_result(intr_complete);
@@ -1134,7 +1134,7 @@ void psxcd_device::start_read()
systime+=start_read_delay;
next_sector_t=systime+cyc;
- next_read_event = add_system_event(event_read_sector, start_read_delay+preread_delay, NULL);
+ next_read_event = add_system_event(event_read_sector, start_read_delay+preread_delay, nullptr);
}
void psxcd_device::start_play()
@@ -1160,7 +1160,7 @@ void psxcd_device::start_play()
next_sector_t+=cyc>>1;
- next_read_event = add_system_event(event_play_sector, next_sector_t - m_maincpu->total_cycles(), NULL);
+ next_read_event = add_system_event(event_play_sector, next_sector_t - m_maincpu->total_cycles(), nullptr);
}
void psxcd_device::stop_read()
diff --git a/src/mame/machine/psxcd.h b/src/mame/machine/psxcd.h
index be11fbdbdd6..2d9a24e7310 100644
--- a/src/mame/machine/psxcd.h
+++ b/src/mame/machine/psxcd.h
@@ -90,8 +90,8 @@ private:
void illegalcmd(UINT8 cmd);
void cmd_complete(command_result *res);
- void send_result(UINT8 res, UINT8 *data=NULL, int sz=0, int delay=default_irq_delay, UINT8 errcode = 0);
- command_result *prepare_result(UINT8 res, UINT8 *data=NULL, int sz=0, UINT8 errcode = 0);
+ void send_result(UINT8 res, UINT8 *data=nullptr, int sz=0, int delay=default_irq_delay, UINT8 errcode = 0);
+ command_result *prepare_result(UINT8 res, UINT8 *data=nullptr, int sz=0, UINT8 errcode = 0);
void start_read();
void start_play();
diff --git a/src/mame/machine/rm380z.cpp b/src/mame/machine/rm380z.cpp
index 082dbf6ff75..68636e54262 100644
--- a/src/mame/machine/rm380z.cpp
+++ b/src/mame/machine/rm380z.cpp
@@ -210,7 +210,7 @@ WRITE8_MEMBER( rm380z_state::keyboard_put )
WRITE8_MEMBER( rm380z_state::disk_0_control )
{
- 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();
diff --git a/src/mame/machine/rmnimbus.cpp b/src/mame/machine/rmnimbus.cpp
index ef41cc828ec..e2a5e3a2738 100644
--- a/src/mame/machine/rmnimbus.cpp
+++ b/src/mame/machine/rmnimbus.cpp
@@ -266,7 +266,7 @@ static int instruction_hook(device_t &device, offs_t curpc)
addr_ptr = (UINT8*)space.get_read_ptr(curpc);
- if ((addr_ptr !=NULL) && (addr_ptr[0]==0xCD))
+ if ((addr_ptr !=nullptr) && (addr_ptr[0]==0xCD))
{
if(DEBUG_SET_STATE(DECODE_BIOS) && (addr_ptr[1]==0xF0))
{
@@ -293,7 +293,7 @@ static void decode_subbios(device_t *device,offs_t pc, UINT8 raw_flag)
char drv_str[80];
char func_str[80];
- void (*dump_dssi)(device_t *,UINT16, UINT16 ,UINT8) = NULL;
+ void (*dump_dssi)(device_t *,UINT16, UINT16 ,UINT8) = nullptr;
device_t *cpu = device->machine().device(MAINCPU_TAG);
@@ -614,14 +614,14 @@ static void decode_subbios(device_t *device,offs_t pc, UINT8 raw_flag)
if(raw_flag)
{
- if(dump_dssi!=NULL)
+ if(dump_dssi!=nullptr)
dump_dssi(device,ds,si,raw_flag);
}
else
{
device->logerror("Type=%s, Driver=%s, Function=%s\n",type_str,drv_str,func_str);
- if(dump_dssi!=NULL)
+ if(dump_dssi!=nullptr)
dump_dssi(device,ds,si,raw_flag);
device->logerror("=======================================================================\n");
}
@@ -937,8 +937,8 @@ void rmnimbus_state::nimbus_bank_memory()
}
map_blocks[0] = ram;
- map_blocks[1] = (ramblocks[ramblock][1].blocksize==0) ? NULL : &ram[ramblocks[ramblock][1].blockbase*1024];
- map_blocks[2] = (ramblocks[ramblock][2].blocksize==0) ? NULL : &ram[ramblocks[ramblock][2].blockbase*1024];
+ map_blocks[1] = (ramblocks[ramblock][1].blocksize==0) ? nullptr : &ram[ramblocks[ramblock][1].blockbase*1024];
+ map_blocks[2] = (ramblocks[ramblock][2].blocksize==0) ? nullptr : &ram[ramblocks[ramblock][2].blockbase*1024];
//if(LOG_RAM) logerror("\n\nmcu_reg080=%02X, ramblock=%d, map_blocks[0]=%X, map_blocks[1]=%X, map_blocks[2]=%X\n",m_mcu_reg080,ramblock,(int)map_blocks[0],(int)map_blocks[1],(int)map_blocks[2]);
@@ -960,7 +960,7 @@ void rmnimbus_state::nimbus_bank_memory()
if(LOG_RAM) logerror("mapped %s",bank);
if((map_blockno>-1) && (block_ofs < ramblocks[ramblock][map_blockno].blocksize) &&
- (map_blocks[map_blockno]!=NULL))
+ (map_blocks[map_blockno]!=nullptr))
{
map_base=(ramsel==0x07) ? map_blocks[map_blockno] : &map_blocks[map_blockno][block_ofs*1024];
diff --git a/src/mame/machine/rx01.cpp b/src/mame/machine/rx01.cpp
index e916be7a1fb..c1889eb6a8b 100644
--- a/src/mame/machine/rx01.cpp
+++ b/src/mame/machine/rx01.cpp
@@ -17,7 +17,7 @@
#include "formats/basicdsk.h"
static LEGACY_FLOPPY_OPTIONS_START( rx01 )
- LEGACY_FLOPPY_OPTION(rx01, "img", "RX01 image", basicdsk_identify_default, basicdsk_construct_default, NULL,
+ LEGACY_FLOPPY_OPTION(rx01, "img", "RX01 image", basicdsk_identify_default, basicdsk_construct_default, nullptr,
HEADS([1])
TRACKS([77])
SECTORS([26])
diff --git a/src/mame/machine/samcoupe.cpp b/src/mame/machine/samcoupe.cpp
index 682d81d906c..15e814c659e 100644
--- a/src/mame/machine/samcoupe.cpp
+++ b/src/mame/machine/samcoupe.cpp
@@ -87,7 +87,7 @@ void samcoupe_state::samcoupe_update_bank(address_space &space, int bank_num, UI
if (!is_readonly)
sam_bank_write_ptr[bank_num-1] = memory;
else
- sam_bank_write_ptr[bank_num-1] = NULL;
+ sam_bank_write_ptr[bank_num-1] = nullptr;
// installing banks on the fly is too slow (20% speed in Manic Miner gameplay vs 300% speed)
#if 0
@@ -117,7 +117,7 @@ void samcoupe_state::samcoupe_install_ext_mem(address_space &space)
if (m_lext >> 6 < m_ram->size() >> 20)
mem = &m_ram->pointer()[(m_ram->size() & 0xfffff) + (m_lext >> 6) * 0x100000 + (m_lext & 0x3f) * 0x4000];
else
- mem = NULL;
+ mem = nullptr;
samcoupe_update_bank(space, 3, mem, FALSE);
@@ -125,7 +125,7 @@ void samcoupe_state::samcoupe_install_ext_mem(address_space &space)
if (m_hext >> 6 < m_ram->size() >> 20)
mem = &m_ram->pointer()[(m_ram->size() & 0xfffff) + (m_hext >> 6) * 0x100000 + (m_hext & 0x3f) * 0x4000];
else
- mem = NULL;
+ mem = nullptr;
samcoupe_update_bank(space, 4, mem, FALSE);
}
@@ -144,7 +144,7 @@ void samcoupe_state::samcoupe_update_memory(address_space &space)
if ((m_lmpr & 0x1F) <= PAGE_MASK)
memory = &m_ram->pointer()[(m_lmpr & PAGE_MASK) * 0x4000];
else
- memory = NULL; /* Attempt to page in non existant ram region */
+ memory = nullptr; /* Attempt to page in non existant ram region */
is_readonly = FALSE;
}
else
@@ -159,7 +159,7 @@ void samcoupe_state::samcoupe_update_memory(address_space &space)
if (((m_lmpr + 1) & 0x1f) <= PAGE_MASK)
memory = &m_ram->pointer()[((m_lmpr + 1) & PAGE_MASK) * 0x4000];
else
- memory = NULL; /* Attempt to page in non existant ram region */
+ memory = nullptr; /* Attempt to page in non existant ram region */
samcoupe_update_bank(space, 2, memory, FALSE);
/* only update bank 3 and 4 when external memory is not enabled */
@@ -173,7 +173,7 @@ void samcoupe_state::samcoupe_update_memory(address_space &space)
if ((m_hmpr & 0x1F) <= PAGE_MASK )
memory = &m_ram->pointer()[(m_hmpr & PAGE_MASK)*0x4000];
else
- memory = NULL; /* Attempt to page in non existant ram region */
+ memory = nullptr; /* Attempt to page in non existant ram region */
samcoupe_update_bank(space, 3, memory, FALSE);
@@ -188,7 +188,7 @@ void samcoupe_state::samcoupe_update_memory(address_space &space)
if (((m_hmpr + 1) & 0x1f) <= PAGE_MASK)
memory = &m_ram->pointer()[((m_hmpr + 1) & PAGE_MASK) * 0x4000];
else
- memory = NULL; /* Attempt to page in non existant ram region */
+ memory = nullptr; /* Attempt to page in non existant ram region */
is_readonly = FALSE;
}
samcoupe_update_bank(space, 4, memory, FALSE);
diff --git a/src/mame/machine/scramble.cpp b/src/mame/machine/scramble.cpp
index b0db1e359e5..af667349e1c 100644
--- a/src/mame/machine/scramble.cpp
+++ b/src/mame/machine/scramble.cpp
@@ -19,7 +19,7 @@ MACHINE_RESET_MEMBER(scramble_state,scramble)
{
MACHINE_RESET_CALL_MEMBER(galaxold);
- if (m_audiocpu != NULL)
+ if (m_audiocpu != nullptr)
sh_init();
}
diff --git a/src/mame/machine/segaic16.cpp b/src/mame/machine/segaic16.cpp
index 36e9d31ffe8..ee171e9af70 100644
--- a/src/mame/machine/segaic16.cpp
+++ b/src/mame/machine/segaic16.cpp
@@ -110,16 +110,16 @@ void sega_16bit_common_base::palette_init()
double weights_normal[6];
compute_resistor_weights(0, 255, -1.0,
6, resistances_normal, weights_normal, 0, 0,
- 0, NULL, NULL, 0, 0,
- 0, NULL, NULL, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
// compute weight table for shadow/hilight palette entries
static const int resistances_sh[6] = { 3900, 2000, 1000, 1000/2, 1000/4, 470 };
double weights_sh[6];
compute_resistor_weights(0, 255, -1.0,
6, resistances_sh, weights_sh, 0, 0,
- 0, NULL, NULL, 0, 0,
- 0, NULL, NULL, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
// compute R, G, B for each weight
for (int value = 0; value < 32; value++)
@@ -176,10 +176,10 @@ WRITE16_MEMBER( sega_16bit_common_base::paletteram_w )
sega_315_5195_mapper_device::sega_315_5195_mapper_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SEGA_315_5195_MEM_MAPPER, "Sega 315-5195 Memory Mapper", tag, owner, clock, "sega_315_5195", __FILE__),
- m_cputag(NULL),
- m_cpu(NULL),
- m_space(NULL),
- m_decrypted_space(NULL),
+ m_cputag(nullptr),
+ m_cpu(nullptr),
+ m_space(nullptr),
+ m_decrypted_space(nullptr),
m_curregion(0)
{
}
@@ -505,18 +505,18 @@ void sega_315_5195_mapper_device::device_start()
// find our CPU
m_cpu = siblingdevice<m68000_device>(m_cputag);
- if (m_cpu == NULL)
+ if (m_cpu == nullptr)
throw emu_fatalerror("Unable to find sibling device '%s'", m_cputag);
// if we are mapping an FD1089, tell all the banks
fd1089_base_device *fd1089 = dynamic_cast<fd1089_base_device *>(m_cpu);
- if (fd1089 != NULL)
+ if (fd1089 != nullptr)
for (int banknum = 0; banknum < ARRAY_LENGTH(m_banks); banknum++)
m_banks[banknum].set_decrypt(fd1089);
// if we are mapping an FD1094, register for state change notifications and tell all the banks
fd1094_device *fd1094 = dynamic_cast<fd1094_device *>(m_cpu);
- if (fd1094 != NULL)
+ if (fd1094 != nullptr)
{
fd1094->notify_state_change(fd1094_device::state_change_delegate(FUNC(sega_315_5195_mapper_device::fd1094_state_change), this));
for (int banknum = 0; banknum < ARRAY_LENGTH(m_banks); banknum++)
@@ -525,10 +525,10 @@ void sega_315_5195_mapper_device::device_start()
// find the address space that is to be mapped
m_space = &m_cpu->space(AS_PROGRAM);
- if (m_space == NULL)
+ if (m_space == nullptr)
throw emu_fatalerror("Unable to find program address space on device '%s'", m_cputag);
- m_decrypted_space = m_cpu->has_space(AS_DECRYPTED_OPCODES) ? &m_cpu->space(AS_DECRYPTED_OPCODES) : NULL;
+ m_decrypted_space = m_cpu->has_space(AS_DECRYPTED_OPCODES) ? &m_cpu->space(AS_DECRYPTED_OPCODES) : nullptr;
// register for saves
save_item(NAME(m_regs));
@@ -602,13 +602,13 @@ void sega_315_5195_mapper_device::update_mapping()
//-------------------------------------------------
sega_315_5195_mapper_device::decrypt_bank::decrypt_bank()
- : m_bank(NULL),
- m_decrypted_bank(NULL),
+ : m_bank(nullptr),
+ m_decrypted_bank(nullptr),
m_start(0),
m_end(0),
m_rgnoffs(~0),
- m_srcptr(NULL),
- m_fd1089(NULL)
+ m_srcptr(nullptr),
+ m_fd1089(nullptr)
{
// invalidate all states
reset();
@@ -644,7 +644,7 @@ void sega_315_5195_mapper_device::decrypt_bank::set_decrypt(fd1094_device *fd109
m_fd1094_cache = std::make_unique<fd1094_decryption_cache>(*fd1094);
// clear out all fd1089 stuff
- m_fd1089 = NULL;
+ m_fd1089 = nullptr;
m_fd1089_decrypted.clear();
}
@@ -657,7 +657,7 @@ void sega_315_5195_mapper_device::decrypt_bank::set_decrypt(fd1094_device *fd109
void sega_315_5195_mapper_device::decrypt_bank::set(memory_bank *bank, memory_bank *decrypted_bank, offs_t start, offs_t end, offs_t rgnoffs, UINT8 *src)
{
// ignore if not encrypted
- if (m_fd1089 == NULL && m_fd1094_cache == NULL)
+ if (m_fd1089 == nullptr && m_fd1094_cache == nullptr)
return;
// ignore if nothing is changing
@@ -676,7 +676,7 @@ void sega_315_5195_mapper_device::decrypt_bank::set(memory_bank *bank, memory_ba
m_srcptr = src;
// configure the fd1094 cache
- if (m_fd1094_cache != NULL)
+ if (m_fd1094_cache != nullptr)
m_fd1094_cache->configure(m_start, m_end + 1 - m_start, m_rgnoffs);
// force an update of what we have
@@ -692,11 +692,11 @@ void sega_315_5195_mapper_device::decrypt_bank::set(memory_bank *bank, memory_ba
void sega_315_5195_mapper_device::decrypt_bank::update()
{
// if this isn't a valid state, don't try to do anything
- if (m_bank == NULL || m_srcptr == NULL)
+ if (m_bank == nullptr || m_srcptr == nullptr)
return;
// fd1089 case
- if (m_fd1089 != NULL)
+ if (m_fd1089 != nullptr)
{
m_fd1089_decrypted.resize((m_end + 1 - m_start) / 2);
m_fd1089->decrypt(m_start, m_end + 1 - m_start, m_rgnoffs, &m_fd1089_decrypted[0], reinterpret_cast<UINT16 *>(m_srcptr));
@@ -704,7 +704,7 @@ void sega_315_5195_mapper_device::decrypt_bank::update()
}
// fd1094 case
- if (m_fd1094_cache != NULL)
+ if (m_fd1094_cache != nullptr)
m_decrypted_bank->set_base(m_fd1094_cache->decrypted_opcodes(m_fd1094_cache->fd1094().state()));
}
diff --git a/src/mame/machine/segaic16.h b/src/mame/machine/segaic16.h
index cc2a2d73c26..6e98d8b7688 100644
--- a/src/mame/machine/segaic16.h
+++ b/src/mame/machine/segaic16.h
@@ -135,12 +135,12 @@ private:
// configuration
void set_decrypt(fd1089_base_device *fd1089);
void set_decrypt(fd1094_device *fd1094);
- void clear() { set(NULL, NULL, 0, 0, ~0, NULL); }
+ void clear() { set(nullptr, nullptr, 0, 0, ~0, nullptr); }
void set(memory_bank *bank, memory_bank *decrypted_bank, offs_t start, offs_t end, offs_t rgnoffs, UINT8 *src);
// updating
void update();
- void reset() { m_fd1089_decrypted.clear(); if (m_fd1094_cache != NULL) m_fd1094_cache->reset(); }
+ void reset() { m_fd1089_decrypted.clear(); if (m_fd1094_cache != nullptr) m_fd1094_cache->reset(); }
private:
// internal state
diff --git a/src/mame/machine/seicop.cpp b/src/mame/machine/seicop.cpp
index f5868cb6c9a..d5640aa6881 100644
--- a/src/mame/machine/seicop.cpp
+++ b/src/mame/machine/seicop.cpp
@@ -24,7 +24,7 @@ const device_type SEIBU_COP_BOOTLEG = &device_creator<seibu_cop_bootleg_device>;
seibu_cop_bootleg_device::seibu_cop_bootleg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SEIBU_COP_BOOTLEG, "Seibu COP (Bootleg)", tag, owner, clock, "seibu_cop_boot", __FILE__),
- m_cop_mcu_ram(NULL),
+ m_cop_mcu_ram(nullptr),
m_raiden2cop(*this, ":raiden2cop")
{
}
diff --git a/src/mame/machine/sgi.cpp b/src/mame/machine/sgi.cpp
index 797f27eb58b..fe2259b5219 100644
--- a/src/mame/machine/sgi.cpp
+++ b/src/mame/machine/sgi.cpp
@@ -32,7 +32,7 @@ const device_type SGI_MC = &device_creator<sgi_mc_device>;
sgi_mc_device::sgi_mc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SGI_MC, "SGI Memory Controller", tag, owner, clock, "sgi_mc", __FILE__),
- m_tUpdateTimer(NULL),
+ m_tUpdateTimer(nullptr),
m_nCPUControl0(0),
m_nCPUControl1(0),
m_nWatchdog(0),
diff --git a/src/mame/machine/slapstic.cpp b/src/mame/machine/slapstic.cpp
index 5adf0c91d7f..4ff2fe4a2e3 100644
--- a/src/mame/machine/slapstic.cpp
+++ b/src/mame/machine/slapstic.cpp
@@ -716,7 +716,7 @@ static const struct slapstic_data slapstic118 =
static const struct slapstic_data *const slapstic_table[] =
{
&slapstic101, /* NOT confirmed! */
- NULL, /* never seen */
+ nullptr, /* never seen */
&slapstic103,
&slapstic104,
&slapstic105,
diff --git a/src/mame/machine/smartmed.cpp b/src/mame/machine/smartmed.cpp
index 32e9c53bcaa..b3147c49316 100644
--- a/src/mame/machine/smartmed.cpp
+++ b/src/mame/machine/smartmed.cpp
@@ -78,7 +78,7 @@ nand_device::nand_device(const machine_config &mconfig, const char *tag, device_
m_page_total_size(0),
m_num_pages(0),
m_log2_pages_per_block(0),
- m_pagereg(NULL),
+ m_pagereg(nullptr),
m_id_len(0),
m_col_address_cycles(0),
m_row_address_cycles(0),
@@ -94,7 +94,7 @@ nand_device::nand_device(const machine_config &mconfig, device_type type, const
m_page_total_size(0),
m_num_pages(0),
m_log2_pages_per_block(0),
- m_pagereg(NULL),
+ m_pagereg(nullptr),
m_id_len(0),
m_col_address_cycles(0),
m_row_address_cycles(0),
@@ -109,8 +109,8 @@ nand_device::nand_device(const machine_config &mconfig, device_type type, const
*/
void nand_device::device_start()
{
- m_data_ptr = NULL;
- m_data_uid_ptr = NULL;
+ m_data_ptr = nullptr;
+ m_data_uid_ptr = nullptr;
m_mode = SM_M_INIT;
m_pointer_mode = SM_PM_A;
m_page_addr = 0;
@@ -335,8 +335,8 @@ void smartmedia_image_device::call_unload()
m_page_total_size = 0;
m_num_pages = 0;
m_log2_pages_per_block = 0;
- m_data_ptr = NULL;
- m_data_uid_ptr = NULL;
+ m_data_ptr = nullptr;
+ m_data_uid_ptr = nullptr;
m_mode = SM_M_INIT;
m_pointer_mode = SM_PM_A;
m_page_addr = 0;
diff --git a/src/mame/machine/smartmed.h b/src/mame/machine/smartmed.h
index 4f15cf35a0f..5e5b2f1c80d 100644
--- a/src/mame/machine/smartmed.h
+++ b/src/mame/machine/smartmed.h
@@ -215,7 +215,7 @@ public:
virtual bool is_reset_on_load() const { return 0; }
virtual const char *image_interface() const { return "sm_memc"; }
virtual const char *file_extensions() const { return "smc"; }
- 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();
diff --git a/src/mame/machine/sms.cpp b/src/mame/machine/sms.cpp
index 32081091088..86fb9114bc0 100644
--- a/src/mame/machine/sms.cpp
+++ b/src/mame/machine/sms.cpp
@@ -854,9 +854,9 @@ void sms_state::setup_bios()
m_BIOS = memregion("user1")->base();
m_bios_page_count = (m_BIOS ? memregion("user1")->bytes() / 0x4000 : 0);
- if (m_BIOS == NULL || m_BIOS[0] == 0x00)
+ if (m_BIOS == nullptr || m_BIOS[0] == 0x00)
{
- m_BIOS = NULL;
+ m_BIOS = nullptr;
m_has_bios_0400 = 0;
m_has_bios_2000 = 0;
m_has_bios_full = 0;
@@ -890,7 +890,7 @@ MACHINE_START_MEMBER(sms_state,sms)
m_expslot = machine().device<sms_expansion_slot_device>("exp");
m_space = &m_maincpu->space(AS_PROGRAM);
- if (m_mainram == NULL)
+ if (m_mainram == nullptr)
{
m_mainram = auto_alloc_array_clear(machine(), UINT8, 0x2000);
save_pointer(NAME(m_mainram), 0x2000);
diff --git a/src/mame/machine/sonydriv.cpp b/src/mame/machine/sonydriv.cpp
index f53fcb77e20..3c70a4664e7 100644
--- a/src/mame/machine/sonydriv.cpp
+++ b/src/mame/machine/sonydriv.cpp
@@ -280,7 +280,7 @@ int sony_read_status(device_t *device)
f = &sony.floppy[sony.floppy_select];
cur_image = floppy_get_device_by_type(device->machine(), FLOPPY_TYPE_SONY, sony.floppy_select);
if (!cur_image->exists())
- cur_image = NULL;
+ cur_image = nullptr;
switch(action) {
case 0x00: /* Step direction */
@@ -416,7 +416,7 @@ static void sony_doaction(device_t *device)
f = &sony.floppy[sony.floppy_select];
cur_image = floppy_get_device_by_type(device->machine(), FLOPPY_TYPE_SONY, sony.floppy_select);
if (!cur_image->exists())
- cur_image = NULL;
+ cur_image = nullptr;
switch(action)
{
@@ -549,8 +549,8 @@ void sonydriv_floppy_image_device::device_start()
sony.floppy[1].is_fdhd = 0;
sony.floppy[0].is_400k = 0;
sony.floppy[1].is_400k = 0;
- sony.floppy[0].loadedtrack_data = NULL;
- sony.floppy[1].loadedtrack_data = NULL;
+ sony.floppy[0].loadedtrack_data = nullptr;
+ sony.floppy[1].loadedtrack_data = nullptr;
sony.floppy[0].head = 0;
sony.floppy[1].head = 0;
sony.rotation_speed = 0;
diff --git a/src/mame/machine/special.cpp b/src/mame/machine/special.cpp
index 4bbcdbf4dd9..bb1c7f64f31 100644
--- a/src/mame/machine/special.cpp
+++ b/src/mame/machine/special.cpp
@@ -244,7 +244,7 @@ WRITE_LINE_MEMBER( special_state::fdc_drq )
WRITE8_MEMBER( special_state::specimx_disk_ctrl_w )
{
static const char *names[] = { "fd0", "fd1"};
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
floppy_connector *con = machine().device<floppy_connector>(names[m_drive & 1]);
if(con)
floppy = con->get_device();
diff --git a/src/mame/machine/st0016.cpp b/src/mame/machine/st0016.cpp
index 5dcfb73fa0e..3abdc4eafaf 100644
--- a/src/mame/machine/st0016.cpp
+++ b/src/mame/machine/st0016.cpp
@@ -587,7 +587,7 @@ void st0016_cpu_device::startup()
/* find first empty slot to decode gfx */
for (gfx_index = 0; gfx_index < MAX_GFX_ELEMENTS; gfx_index++)
- if (m_gfxdecode->gfx(gfx_index) == 0)
+ if (m_gfxdecode->gfx(gfx_index) == nullptr)
break;
assert(gfx_index != MAX_GFX_ELEMENTS);
diff --git a/src/mame/machine/super80.cpp b/src/mame/machine/super80.cpp
index b77c04b68fd..27b6d614e7d 100644
--- a/src/mame/machine/super80.cpp
+++ b/src/mame/machine/super80.cpp
@@ -143,7 +143,7 @@ WRITE8_MEMBER( super80_state::port3f_w )
// m_fdc->58(BIT(data, 0)); 5/8 pin not emulated in wd_fdc
m_fdc->enmf_w(BIT(data,1));
- 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();
//if (BIT(data, 4)) floppy = m_floppy2->get_device();
diff --git a/src/mame/machine/svi318.cpp b/src/mame/machine/svi318.cpp
index 89ea87ce0e8..b34b6f381fc 100644
--- a/src/mame/machine/svi318.cpp
+++ b/src/mame/machine/svi318.cpp
@@ -63,7 +63,7 @@ DEVICE_IMAGE_LOAD_MEMBER( svi318_state, svi318_cart )
m_cart->rom_alloc(size, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
m_cart->common_load_rom(m_cart->get_rom_base(), size, "rom");
- if (image.software_entry() == NULL && !cart_verify(m_cart->get_rom_base()))
+ if (image.software_entry() == nullptr && !cart_verify(m_cart->get_rom_base()))
return IMAGE_INIT_FAIL;
return IMAGE_INIT_PASS;
@@ -222,7 +222,7 @@ WRITE_LINE_MEMBER(svi318_state::fdc_drq_w)
WRITE8_MEMBER(svi318_state::fdc_drive_motor_w)
{
- m_floppy = NULL;
+ m_floppy = nullptr;
if (BIT(data, 0)) m_floppy = m_floppy0->get_device();
if (BIT(data, 1)) m_floppy = m_floppy1->get_device();
diff --git a/src/mame/machine/swtpc09.cpp b/src/mame/machine/swtpc09.cpp
index 29bae501462..71613a8b8ac 100644
--- a/src/mame/machine/swtpc09.cpp
+++ b/src/mame/machine/swtpc09.cpp
@@ -126,7 +126,7 @@ WRITE8_MEMBER ( swtpc09_state::dmf2_control_reg_w )
{
LOG(("swtpc09_dmf2_control_reg_w $%02X\n", data));
- 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();
@@ -354,7 +354,7 @@ WRITE8_MEMBER ( swtpc09_state::dmf3_control_reg_w )
{
LOG(("swtpc09_dmf3_control_reg_w $%02X\n", data));
- 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();
@@ -378,7 +378,7 @@ WRITE8_MEMBER ( swtpc09_state::dc4_control_reg_w )
{
LOG(("swtpc09_dc4_control_reg_w $%02X\n", data));
- 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();
diff --git a/src/mame/machine/tait8741.cpp b/src/mame/machine/tait8741.cpp
index c6485a90dda..58df20ca4ed 100644
--- a/src/mame/machine/tait8741.cpp
+++ b/src/mame/machine/tait8741.cpp
@@ -127,7 +127,7 @@ void taito8741_4pack_device::update(int num)
st = &m_taito8741[num];
if( st->connect != -1 )
sst = &m_taito8741[st->connect];
- else sst = 0;
+ else sst = nullptr;
next = -1;
/* check pending command */
switch(st->phase)
diff --git a/src/mame/machine/taitosj.cpp b/src/mame/machine/taitosj.cpp
index 890f66f3393..f32f2fc83df 100644
--- a/src/mame/machine/taitosj.cpp
+++ b/src/mame/machine/taitosj.cpp
@@ -47,7 +47,7 @@ void taitosj_state::machine_reset()
m_zaccept = 1;
m_zready = 0;
m_busreq = 0;
- if (m_mcu != NULL)
+ if (m_mcu != nullptr)
m_mcu->set_input_line(0, CLEAR_LINE);
m_spacecr_prot_value = 0;
diff --git a/src/mame/machine/thomflop.cpp b/src/mame/machine/thomflop.cpp
index 3927f7219af..6252d2ec48a 100644
--- a/src/mame/machine/thomflop.cpp
+++ b/src/mame/machine/thomflop.cpp
@@ -296,7 +296,7 @@ WRITE8_MEMBER( thomson_state::to7_5p14_w )
else if ( offset == 8 )
{
/* drive select */
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if (BIT(data, 1)) floppy = fdc->subdevice<floppy_connector>("0")->get_device();
if (BIT(data, 2)) floppy = fdc->subdevice<floppy_connector>("1")->get_device();
@@ -925,7 +925,7 @@ legacy_floppy_image_device * thomson_state::thmfc_floppy_image()
int thomson_state::thmfc_floppy_is_qdd ( legacy_floppy_image_device *image )
{
- if (image==NULL) return 0;
+ if (image==nullptr) return 0;
if (!image->exists()) return 0;
return image->length()==51200; // idf QDD
}
@@ -1894,18 +1894,18 @@ void thomson_state::thomson_index_callback(legacy_floppy_image_device *device, i
switch ( to7_controller_type )
{
case 1:
- to7_5p14_index_pulse_callback(NULL, device, state);
+ to7_5p14_index_pulse_callback(nullptr, device, state);
break;
case 2:
break;
case 3:
- thmfc_floppy_index_pulse_cb(NULL, device, state);
+ thmfc_floppy_index_pulse_cb(nullptr, device, state);
break;
case 4:
- to7_qdd_index_pulse_cb(NULL, device, state);
+ to7_qdd_index_pulse_cb(nullptr, device, state);
break;
default:
diff --git a/src/mame/machine/thomson.cpp b/src/mame/machine/thomson.cpp
index 240b004141a..b7deec216ee 100644
--- a/src/mame/machine/thomson.cpp
+++ b/src/mame/machine/thomson.cpp
@@ -363,7 +363,7 @@ DEVICE_IMAGE_LOAD_MEMBER( thomson_state, to7_cartridge )
offs_t size;
char name[129];
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
size = image.length();
else
size = image.get_software_region_length("rom");
@@ -383,7 +383,7 @@ DEVICE_IMAGE_LOAD_MEMBER( thomson_state, to7_cartridge )
return IMAGE_INIT_FAIL;
}
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
if ( image.fread( pos, size ) != size )
{
@@ -631,7 +631,7 @@ static MACHINE_CONFIG_FRAGMENT( to7_io_line )
MCFG_PIA_IRQA_HANDLER(DEVWRITELINE("^", thomson_state, thom_firq_1))
MCFG_PIA_IRQB_HANDLER(DEVWRITELINE("^", thomson_state, thom_firq_1))
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(WRITELINE(to7_io_line_device, write_rxd))
MCFG_RS232_CTS_HANDLER(WRITELINE(to7_io_line_device, write_cts))
MCFG_RS232_DSR_HANDLER(WRITELINE(to7_io_line_device, write_dsr))
@@ -1494,7 +1494,7 @@ DEVICE_IMAGE_LOAD_MEMBER( thomson_state, mo5_cartridge )
int j;
char name[129];
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
size = image.length();
else
size = image.get_software_region_length("rom");
@@ -1514,7 +1514,7 @@ DEVICE_IMAGE_LOAD_MEMBER( thomson_state, mo5_cartridge )
return IMAGE_INIT_FAIL;
}
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
{
if ( image.fread(pos, size ) != size )
{
diff --git a/src/mame/machine/ticket.cpp b/src/mame/machine/ticket.cpp
index a80d951a973..595a22b40a9 100644
--- a/src/mame/machine/ticket.cpp
+++ b/src/mame/machine/ticket.cpp
@@ -49,7 +49,7 @@ ticket_dispenser_device::ticket_dispenser_device(const machine_config &mconfig,
m_ticketnotdispensed(0),
m_status(0),
m_power(0),
- m_timer(NULL)
+ m_timer(nullptr)
{
}
diff --git a/src/mame/machine/tnzs.cpp b/src/mame/machine/tnzs.cpp
index a855f81b9b8..108a5fa1522 100644
--- a/src/mame/machine/tnzs.cpp
+++ b/src/mame/machine/tnzs.cpp
@@ -696,7 +696,7 @@ WRITE8_MEMBER(tnzs_state::tnzs_bankswitch1_w)
/* bit 2 resets the mcu */
if (data & 0x04)
{
- if (m_mcu != NULL && m_mcu->type() == I8742)
+ if (m_mcu != nullptr && m_mcu->type() == I8742)
m_mcu->set_input_line(INPUT_LINE_RESET, PULSE_LINE);
}
/* Coin count and lockout is handled by the i8742 */
diff --git a/src/mame/machine/trs80.cpp b/src/mame/machine/trs80.cpp
index 980176e109e..b2f706028e5 100644
--- a/src/mame/machine/trs80.cpp
+++ b/src/mame/machine/trs80.cpp
@@ -503,7 +503,7 @@ WRITE8_MEMBER( trs80_state::trs80m4_ec_w )
d0 1=select drive 0 */
WRITE8_MEMBER( trs80_state::trs80m4_f4_w )
{
- 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();
@@ -731,7 +731,7 @@ READ8_MEMBER( trs80_state::trs80_irq_status_r )
WRITE8_MEMBER( trs80_state::trs80_motor_w )
{
- 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();
diff --git a/src/mame/machine/vector06.cpp b/src/mame/machine/vector06.cpp
index ba944cef8fd..1d1ff0fa417 100644
--- a/src/mame/machine/vector06.cpp
+++ b/src/mame/machine/vector06.cpp
@@ -138,7 +138,7 @@ TIMER_CALLBACK_MEMBER(vector06_state::reset_check_callback)
WRITE8_MEMBER( vector06_state::vector06_disc_w )
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
switch (data & 0x01)
{
diff --git a/src/mame/machine/volfied.cpp b/src/mame/machine/volfied.cpp
index 7776340d11d..498093a5855 100644
--- a/src/mame/machine/volfied.cpp
+++ b/src/mame/machine/volfied.cpp
@@ -259,7 +259,7 @@ static const UINT16 palette_data_11[0x50] =
static const UINT16 *const palette_data_lookup[] =
{
- 0,
+ nullptr,
palette_data_01,
palette_data_02,
palette_data_03,
diff --git a/src/mame/machine/vsnes.cpp b/src/mame/machine/vsnes.cpp
index 8e210a75c95..d07cb99b25d 100644
--- a/src/mame/machine/vsnes.cpp
+++ b/src/mame/machine/vsnes.cpp
@@ -204,7 +204,7 @@ MACHINE_START_MEMBER(vsnes_state,vsnes)
/* establish chr banks */
/* bank 1 is used already! */
/* DRIVER_INIT is called first - means we can handle this different for VRAM games! */
- if (NULL != m_vrom[0])
+ if (nullptr != m_vrom[0])
{
for (i = 0; i < 8; i++)
{
diff --git a/src/mame/machine/vtech2.cpp b/src/mame/machine/vtech2.cpp
index 5929b4aab47..bbc7d427cad 100644
--- a/src/mame/machine/vtech2.cpp
+++ b/src/mame/machine/vtech2.cpp
@@ -319,7 +319,7 @@ void vtech2_state::laser_get_track()
sprintf(m_laser_frame_message, "#%d get track %02d", m_laser_drive, m_laser_track_x2[m_laser_drive]/2);
m_laser_frame_time = 30;
/* drive selected or and image file ok? */
- if( m_laser_drive >= 0 && laser_file() != NULL )
+ if( m_laser_drive >= 0 && laser_file() != nullptr )
{
int size, offs;
device_image_interface *image = dynamic_cast<device_image_interface *>(laser_file());
@@ -337,7 +337,7 @@ void vtech2_state::laser_put_track()
{
device_image_interface *image = dynamic_cast<device_image_interface *>(laser_file());
/* drive selected and image file ok? */
- if( m_laser_drive >= 0 && laser_file() != NULL )
+ if( m_laser_drive >= 0 && laser_file() != nullptr )
{
int size, offs;
offs = TRKSIZE_VZ * m_laser_track_x2[m_laser_drive]/2;
diff --git a/src/mame/machine/wpc_lamp.cpp b/src/mame/machine/wpc_lamp.cpp
index c151bc257a0..2201ba40805 100644
--- a/src/mame/machine/wpc_lamp.cpp
+++ b/src/mame/machine/wpc_lamp.cpp
@@ -9,7 +9,7 @@ const device_type WPC_LAMP = &device_creator<wpc_lamp_device>;
wpc_lamp_device::wpc_lamp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, WPC_LAMP, "Williams Pinball Controller Lamp Control", tag, owner, clock, "wpc_lamp", __FILE__)
{
- names = NULL;
+ names = nullptr;
}
wpc_lamp_device::~wpc_lamp_device()
diff --git a/src/mame/machine/wpc_out.cpp b/src/mame/machine/wpc_out.cpp
index 4532f70581b..d9d73f7b7b2 100644
--- a/src/mame/machine/wpc_out.cpp
+++ b/src/mame/machine/wpc_out.cpp
@@ -9,7 +9,7 @@ const device_type WPC_OUT = &device_creator<wpc_out_device>;
wpc_out_device::wpc_out_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, WPC_OUT, "Williams Pinball Controller Output Control", tag, owner, clock, "wpc_out", __FILE__)
{
- names = NULL;
+ names = nullptr;
}
wpc_out_device::~wpc_out_device()
diff --git a/src/mame/machine/x68k_hdc.h b/src/mame/machine/x68k_hdc.h
index 73fc210fa63..48f21fa6f99 100644
--- a/src/mame/machine/x68k_hdc.h
+++ b/src/mame/machine/x68k_hdc.h
@@ -92,9 +92,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 "hdf"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
virtual bool call_create(int format_type, option_resolution *format_options);
DECLARE_WRITE16_MEMBER( hdc_w );
diff --git a/src/mame/machine/xbox.cpp b/src/mame/machine/xbox.cpp
index ac0b3ea2b0f..f584f62ce1d 100644
--- a/src/mame/machine/xbox.cpp
+++ b/src/mame/machine/xbox.cpp
@@ -290,7 +290,7 @@ static void grab_vprog_command(running_machine &machine, int ref, int params, co
return;
if ((param[0][0] == 0) || (strlen(param[0]) > 127))
return;
- if ((fil = fopen(param[0], "wb")) == NULL)
+ if ((fil = fopen(param[0], "wb")) == nullptr)
return;
for (int n = 0; n < 136; n++) {
chst->nvidia_nv2a->debug_grab_vertex_program_slot(n, instruction);
@@ -829,7 +829,7 @@ ohci_function_device::ohci_function_device()
address = 0;
controldir = 0;
remain = 0;
- position = NULL;
+ position = nullptr;
}
void ohci_function_device::execute_reset()
@@ -846,7 +846,7 @@ int ohci_function_device::execute_transfer(int address, int endpoint, int pid, U
controldir = p->bmRequestType & 128;
// case !=0, in data stage and out status stage
// case ==0, out data stage and in status stage
- position = NULL;
+ position = nullptr;
remain = p->wLength;
if ((p->bmRequestType & 0x60) == 0) {
switch (p->bRequest) {
@@ -871,7 +871,7 @@ int ohci_function_device::execute_transfer(int address, int endpoint, int pid, U
if (size > remain)
size = remain;
if (controldir != 0) {
- if (position != NULL)
+ if (position != nullptr)
memcpy(buffer, position, size);
position = position + size;
remain = remain - size;
@@ -883,7 +883,7 @@ int ohci_function_device::execute_transfer(int address, int endpoint, int pid, U
if (size > remain)
size = remain;
if (controldir == 0) {
- if (position != NULL)
+ if (position != nullptr)
memcpy(position, buffer, size);
position = position + size;
remain = remain - size;
diff --git a/src/mame/machine/z80ne.cpp b/src/mame/machine/z80ne.cpp
index 3e5bce4522e..657bf01fc25 100644
--- a/src/mame/machine/z80ne.cpp
+++ b/src/mame/machine/z80ne.cpp
@@ -651,7 +651,7 @@ WRITE8_MEMBER(z80ne_state::lx390_motor_w)
d1 1=select drive 1
d0 1=select drive 0 */
- 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();
diff --git a/src/mame/machine/zs01.cpp b/src/mame/machine/zs01.cpp
index 84fda99e05b..613a3cdcc1a 100644
--- a/src/mame/machine/zs01.cpp
+++ b/src/mame/machine/zs01.cpp
@@ -47,7 +47,7 @@ zs01_device::zs01_device( const machine_config &mconfig, const char *tag, device
void zs01_device::device_start()
{
m_ds2401 = siblingdevice<ds2401_device>(m_ds2401_tag);
- if( m_ds2401 == NULL )
+ if( m_ds2401 == nullptr )
{
logerror( "ds2401 '%s' not found\n", m_ds2401_tag );
}
diff --git a/src/mame/machine/zx8302.cpp b/src/mame/machine/zx8302.cpp
index 6866b61f290..16e06522aa0 100644
--- a/src/mame/machine/zx8302.cpp
+++ b/src/mame/machine/zx8302.cpp
@@ -149,7 +149,7 @@ zx8302_device::zx8302_device(const machine_config &mconfig, const char *tag, dev
m_cts2(0),
m_idr(1),
m_irq(0),
- m_ctr(time(NULL) + RTC_BASE_ADJUST),
+ m_ctr(time(nullptr) + RTC_BASE_ADJUST),
m_status(0),
m_comdata_from_ipc(1),
m_comdata_to_cpu(1),
diff --git a/src/mame/video/amiga.cpp b/src/mame/video/amiga.cpp
index 1c488f939eb..79651098c66 100644
--- a/src/mame/video/amiga.cpp
+++ b/src/mame/video/amiga.cpp
@@ -674,7 +674,7 @@ void amiga_state::render_scanline(bitmap_ind16 &bitmap, int scanline)
int pf1pri = 0, pf2pri = 0;
int planes = 0;
- UINT16 *dst = NULL;
+ UINT16 *dst = nullptr;
int ebitoffs = 0, obitoffs = 0;
int ecolmask = 0, ocolmask = 0;
int edelay = 0, odelay = 0;
@@ -779,7 +779,7 @@ void amiga_state::render_scanline(bitmap_ind16 &bitmap, int scanline)
}
/* clear the target pixels to the background color as a starting point */
- if (dst != NULL)
+ if (dst != nullptr)
dst[x*2+0] =
dst[x*2+1] = CUSTOM_REG(REG_COLOR00);
@@ -921,7 +921,7 @@ void amiga_state::render_scanline(bitmap_ind16 &bitmap, int scanline)
CUSTOM_REG(REG_CLXDAT) |= 0x001;
/* if we are within the display region, render */
- if (dst != NULL && x >= m_diw.min_x && x < m_diw.max_x)
+ if (dst != nullptr && x >= m_diw.min_x && x < m_diw.max_x)
{
int pix, pri;
@@ -1026,7 +1026,7 @@ void amiga_state::render_scanline(bitmap_ind16 &bitmap, int scanline)
CUSTOM_REG(REG_COLOR00) = save_color0;
// save
- if (dst != NULL)
+ if (dst != nullptr)
memcpy(&m_flickerfixer.pix16(save_scanline), dst, amiga_state::SCREEN_WIDTH * 2);
#if GUESS_COPPER_OFFSET
diff --git a/src/mame/video/amigaaga.cpp b/src/mame/video/amigaaga.cpp
index 953f037fa6f..6af424998e0 100644
--- a/src/mame/video/amigaaga.cpp
+++ b/src/mame/video/amigaaga.cpp
@@ -449,7 +449,7 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline)
int pf1pri = 0, pf2pri = 0;
int planes = 0;
- UINT32 *dst = NULL;
+ UINT32 *dst = nullptr;
int ebitoffs = 0, obitoffs = 0;
int ecolmask = 0, ocolmask = 0;
int edelay = 0, odelay = 0;
@@ -564,7 +564,7 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline)
}
/* clear the target pixels to the background color as a starting point */
- if (dst != NULL)
+ if (dst != nullptr)
dst[x*2+0] =
dst[x*2+1] = aga_palette[0];
@@ -706,7 +706,7 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline)
CUSTOM_REG(REG_CLXDAT) |= 0x001;
/* if we are within the display region, render */
- if (dst != NULL && x >= m_diw.min_x && x < m_diw.max_x)
+ if (dst != nullptr && x >= m_diw.min_x && x < m_diw.max_x)
{
int pix, pri;
@@ -834,7 +834,7 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline)
CUSTOM_REG(REG_COLOR00) = save_color0;
// save
- if (dst != NULL)
+ if (dst != nullptr)
memcpy(&m_flickerfixer32.pix32(save_scanline), dst, amiga_state::SCREEN_WIDTH * 4);
#if GUESS_COPPER_OFFSET
diff --git a/src/mame/video/antic.cpp b/src/mame/video/antic.cpp
index 2979a86f92a..1a8979abf6a 100644
--- a/src/mame/video/antic.cpp
+++ b/src/mame/video/antic.cpp
@@ -28,7 +28,7 @@ const device_type ATARI_ANTIC = &device_creator<antic_device>;
antic_device::antic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, ATARI_ANTIC, "Atari ANTIC", tag, owner, clock, "antic", __FILE__),
device_video_interface(mconfig, *this),
- m_gtia_tag(NULL),
+ m_gtia_tag(nullptr),
m_maincpu(*this, ":maincpu"),
m_djoy_b(*this, ":djoy_b"),
m_artifacts(*this, ":artifacts"),
@@ -1655,7 +1655,7 @@ void antic_device::linerefresh()
dst[2] = color_lookup[PBK] | color_lookup[PBK] << 16;
dst[3] = color_lookup[PBK] | color_lookup[PBK] << 16;
- draw_scanline8(*m_bitmap, 12, y, MIN(m_bitmap->width() - 12, sizeof(scanline)), (const UINT8 *) scanline, NULL);
+ draw_scanline8(*m_bitmap, 12, y, MIN(m_bitmap->width() - 12, sizeof(scanline)), (const UINT8 *) scanline, nullptr);
}
diff --git a/src/mame/video/apple1.cpp b/src/mame/video/apple1.cpp
index f6485dc7ee5..2dc880127b5 100644
--- a/src/mame/video/apple1.cpp
+++ b/src/mame/video/apple1.cpp
@@ -94,7 +94,7 @@ void apple1_state::terminal_draw(screen_device &screen, bitmap_ind16 &dest, cons
{
m_current_terminal = terminal;
terminal->tm->draw(screen, dest, cliprect, 0, 0);
- m_current_terminal = NULL;
+ m_current_terminal = nullptr;
}
void apple1_state::verify_coords(terminal_t *terminal, int x, int y)
diff --git a/src/mame/video/apple2.cpp b/src/mame/video/apple2.cpp
index bdee351796a..c62c9d02456 100644
--- a/src/mame/video/apple2.cpp
+++ b/src/mame/video/apple2.cpp
@@ -101,7 +101,7 @@ inline void apple2_state::apple2_plot_text_character(bitmap_ind16 &bitmap, int x
const UINT8 *chardata;
UINT16 color;
- if (m_sysconfig != NULL)
+ if (m_sysconfig != nullptr)
{
switch (m_sysconfig->read() & 0x03)
{
@@ -291,7 +291,7 @@ void apple2_state::apple2_hires_draw(bitmap_ind16 &bitmap, const rectangle &clip
UINT16 *artifact_map_ptr;
int mon_type = 0;
- if (m_sysconfig != NULL)
+ if (m_sysconfig != nullptr)
{
mon_type = m_sysconfig->read() & 0x03;
}
diff --git a/src/mame/video/arcadecl.cpp b/src/mame/video/arcadecl.cpp
index 19f4e744690..32edd83c8f7 100644
--- a/src/mame/video/arcadecl.cpp
+++ b/src/mame/video/arcadecl.cpp
@@ -56,7 +56,7 @@ const atari_motion_objects_config arcadecl_state::s_mob_config =
VIDEO_START_MEMBER(arcadecl_state,arcadecl)
{
- if (m_mob != NULL)
+ if (m_mob != nullptr)
m_mob->set_scroll(-12, 0x110);
}
@@ -71,17 +71,17 @@ VIDEO_START_MEMBER(arcadecl_state,arcadecl)
UINT32 arcadecl_state::screen_update_arcadecl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
// start drawing
- if (m_mob != NULL)
+ if (m_mob != nullptr)
m_mob->draw_async(cliprect);
// draw the playfield
arcadecl_bitmap_render(bitmap, cliprect);
// draw and merge the MO
- if (m_mob != NULL)
+ if (m_mob != nullptr)
{
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/argus.cpp b/src/mame/video/argus.cpp
index 868fcec2947..49577665bc4 100644
--- a/src/mame/video/argus.cpp
+++ b/src/mame/video/argus.cpp
@@ -686,7 +686,7 @@ void argus_state::bg_setting()
if (!m_flipscreen)
{
- if (m_bg0_tilemap != NULL)
+ if (m_bg0_tilemap != nullptr)
{
m_bg0_tilemap->set_scrollx(0, bg0_scrollx & 0x1ff);
m_bg0_tilemap->set_scrolly(0, bg0_scrolly & 0x1ff);
@@ -696,7 +696,7 @@ void argus_state::bg_setting()
}
else
{
- if (m_bg0_tilemap != NULL)
+ if (m_bg0_tilemap != nullptr)
{
m_bg0_tilemap->set_scrollx(0, (bg0_scrollx + 256) & 0x1ff);
m_bg0_tilemap->set_scrolly(0, (bg0_scrolly + 256) & 0x1ff);
diff --git a/src/mame/video/arkanoid.cpp b/src/mame/video/arkanoid.cpp
index a7d2fdb62da..f85b0c9ee9f 100644
--- a/src/mame/video/arkanoid.cpp
+++ b/src/mame/video/arkanoid.cpp
@@ -59,7 +59,7 @@ WRITE8_MEMBER(arkanoid_state::arkanoid_d008_w)
leaving the tilt screen (as the MCU is now out of sync with main CPU
which resets itself). This bit is the likely candidate as it is flipped
early in bootup just prior to accessing the MCU for the first time. */
- if (m_mcu != NULL) // Bootlegs don't have the MCU but still set this bit
+ if (m_mcu != nullptr) // Bootlegs don't have the MCU but still set this bit
m_mcu->set_input_line(INPUT_LINE_RESET, (data & 0x80) ? CLEAR_LINE : ASSERT_LINE);
}
diff --git a/src/mame/video/artmagic.cpp b/src/mame/video/artmagic.cpp
index f1807c8ab35..adc4a3b12ad 100644
--- a/src/mame/video/artmagic.cpp
+++ b/src/mame/video/artmagic.cpp
@@ -29,7 +29,7 @@ inline UINT16 *artmagic_state::address_to_vram(offs_t *address)
return m_vram0;
else if (original >= 0x00400000 && original < 0x005fffff)
return m_vram1;
- return NULL;
+ return nullptr;
}
diff --git a/src/mame/video/atarimo.cpp b/src/mame/video/atarimo.cpp
index ea33fcbbf2d..bb5e1927e40 100644
--- a/src/mame/video/atarimo.cpp
+++ b/src/mame/video/atarimo.cpp
@@ -145,7 +145,7 @@ atari_motion_objects_device::atari_motion_objects_device(const machine_config &m
m_xscroll(0),
m_yscroll(0),
m_slipram(*this, "slip"),
- m_activelast(NULL),
+ m_activelast(nullptr),
m_last_xpos(0),
m_next_xpos(0),
m_gfxdecode(*this)
@@ -282,7 +282,7 @@ void atari_motion_objects_device::device_start()
// verify configuration
gfx_element *gfx = m_gfxdecode->gfx(m_gfxindex);
- if (gfx == NULL)
+ if (gfx == nullptr)
throw emu_fatalerror("No gfxelement #%d!", m_gfxindex);
// determine the masks
diff --git a/src/mame/video/atarirle.cpp b/src/mame/video/atarirle.cpp
index 3184310026f..6a433d4666c 100644
--- a/src/mame/video/atarirle.cpp
+++ b/src/mame/video/atarirle.cpp
@@ -190,7 +190,7 @@ void atari_rle_objects_device::device_start()
{
// resolve our memory
memory_share *share = owner()->memshare(tag());
- if (share == NULL)
+ if (share == nullptr)
throw emu_fatalerror("Error: unable to find memory share '%s' needed for Atari RLE device", tag());
m_ram.set(*share, 2);
@@ -386,7 +386,7 @@ void atari_rle_objects_device::prescan_rle(int which)
// make sure it's valid
if (offset < which * 4 || offset >= m_romlength)
{
- info.data = NULL;
+ info.data = nullptr;
return;
}
@@ -474,7 +474,7 @@ void atari_rle_objects_device::sort_and_render()
};
// sort the motion objects into their proper priorities
- sort_entry_t *list_head[256] = { 0 };
+ sort_entry_t *list_head[256] = { nullptr };
sort_entry_t sort_entry[256];
for (int objnum = 0; objnum < 256; objnum++)
{
@@ -489,7 +489,7 @@ void atari_rle_objects_device::sort_and_render()
int count = 0;
int hilite = -1;
for (int order = 1; order < 256; order++)
- for (sort_entry_t *current = list_head[order]; current != NULL; current = current->next)
+ for (sort_entry_t *current = list_head[order]; current != nullptr; current = current->next)
{
// extract scale and code
int scale = m_scalemask.extract(m_ram, current->entry);
@@ -537,7 +537,7 @@ void atari_rle_objects_device::draw_rle(bitmap_ind16 &bitmap, const rectangle &c
{
// bail on a NULL object
const object_info &info = m_info[code];
- if (info.data == NULL)
+ if (info.data == nullptr)
return;
//
diff --git a/src/mame/video/atarisy1.cpp b/src/mame/video/atarisy1.cpp
index 36c0ecddc18..992609effa4 100644
--- a/src/mame/video/atarisy1.cpp
+++ b/src/mame/video/atarisy1.cpp
@@ -470,7 +470,7 @@ UINT32 atarisy1_state::screen_update_atarisy1(screen_device &screen, bitmap_ind1
// draw and merge the MO
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
@@ -608,7 +608,7 @@ int atarisy1_state::get_bank(UINT8 prom1, UINT8 prom2, int bpp)
/* don't have one? let's make it ... first find any empty slot */
for (gfx_index = 0; gfx_index < MAX_GFX_ELEMENTS; gfx_index++)
- if (m_gfxdecode->gfx(gfx_index) == NULL)
+ if (m_gfxdecode->gfx(gfx_index) == nullptr)
break;
assert(gfx_index != MAX_GFX_ELEMENTS);
diff --git a/src/mame/video/atarisy2.cpp b/src/mame/video/atarisy2.cpp
index 65030f97f57..74aaa7db33d 100644
--- a/src/mame/video/atarisy2.cpp
+++ b/src/mame/video/atarisy2.cpp
@@ -288,7 +288,7 @@ UINT32 atarisy2_state::screen_update_atarisy2(screen_device &screen, bitmap_ind1
/* draw and merge the MO */
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/badlands.cpp b/src/mame/video/badlands.cpp
index 98ebd1c707d..2f3d04970a2 100644
--- a/src/mame/video/badlands.cpp
+++ b/src/mame/video/badlands.cpp
@@ -111,7 +111,7 @@ UINT32 badlands_state::screen_update_badlands(screen_device &screen, bitmap_ind1
// draw and merge the MO
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/batman.cpp b/src/mame/video/batman.cpp
index a9100c1fe76..f6ec07bfea0 100644
--- a/src/mame/video/batman.cpp
+++ b/src/mame/video/batman.cpp
@@ -121,7 +121,7 @@ UINT32 batman_state::screen_update_batman(screen_device &screen, bitmap_ind16 &b
// draw and merge the MO
bitmap_ind16 &mobitmap = m_vad->mob()->bitmap();
- for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
@@ -193,7 +193,7 @@ UINT32 batman_state::screen_update_batman(screen_device &screen, bitmap_ind16 &b
m_vad->alpha()->draw(screen, bitmap, cliprect, 0, 0);
/* now go back and process the upper bit of MO priority */
- for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/bbusters.cpp b/src/mame/video/bbusters.cpp
index 7ef87f79c2c..1a090935c17 100644
--- a/src/mame/video/bbusters.cpp
+++ b/src/mame/video/bbusters.cpp
@@ -163,7 +163,7 @@ void bbusters_state::draw_block(bitmap_ind16 &dest,int x,int y,int size,int flip
if (dy>=16 && dy<240) {
UINT16 *destline = &dest.pix16(dy);
UINT8 srcline=*m_scale_table_ptr;
- const UINT8 *srcptr=0;
+ const UINT8 *srcptr=nullptr;
if (!flipy)
srcline=size-srcline-1;
diff --git a/src/mame/video/beathead.cpp b/src/mame/video/beathead.cpp
index 8237f067466..39a7d6bb6aa 100644
--- a/src/mame/video/beathead.cpp
+++ b/src/mame/video/beathead.cpp
@@ -167,7 +167,7 @@ UINT32 beathead_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
}
/* then draw it */
- draw_scanline16(bitmap, cliprect.min_x, y, cliprect.width(), &scanline[cliprect.min_x], NULL);
+ draw_scanline16(bitmap, cliprect.min_x, y, cliprect.width(), &scanline[cliprect.min_x], nullptr);
}
return 0;
}
diff --git a/src/mame/video/blstroid.cpp b/src/mame/video/blstroid.cpp
index f69a269ac1a..a04bcb83fc2 100644
--- a/src/mame/video/blstroid.cpp
+++ b/src/mame/video/blstroid.cpp
@@ -146,7 +146,7 @@ UINT32 blstroid_state::screen_update_blstroid(screen_device &screen, bitmap_ind1
/* draw and merge the MO */
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/btime.cpp b/src/mame/video/btime.cpp
index 56c68dcd5d0..8ce07c28918 100644
--- a/src/mame/video/btime.cpp
+++ b/src/mame/video/btime.cpp
@@ -38,7 +38,7 @@ PALETTE_INIT_MEMBER(btime_state,btime)
/* Burger Time doesn't have a color PROM, but Hamburge has. */
/* This function is also used by Eggs. */
- if (color_prom == 0) return;
+ if (color_prom == nullptr) return;
for (i = 0; i < palette.entries(); i++)
{
@@ -495,7 +495,7 @@ UINT32 btime_state::screen_update_bnj(screen_device &screen, bitmap_ind16 &bitma
scroll = (m_bnj_scroll1 & 0x02) * 128 + 511 - m_bnj_scroll2;
if (!flip_screen())
scroll = 767 - scroll;
- copyscrollbitmap(bitmap, *m_background_bitmap, 1, &scroll, 0, 0, cliprect);
+ copyscrollbitmap(bitmap, *m_background_bitmap, 1, &scroll, 0, nullptr, cliprect);
/* copy the low priority characters followed by the sprites
then the high priority characters */
diff --git a/src/mame/video/buggychl.cpp b/src/mame/video/buggychl.cpp
index 1bf1e0e7af0..898a85fa5cb 100644
--- a/src/mame/video/buggychl.cpp
+++ b/src/mame/video/buggychl.cpp
@@ -120,7 +120,7 @@ void buggychl_state::draw_bg( bitmap_ind16 &bitmap, const rectangle &cliprect )
for (offs = 0; offs < 256; offs++)
scroll[offs] = -m_scrollh[offs];
- copyscrollbitmap_trans(bitmap, m_tmp_bitmap2, 256, scroll, 0, 0, clip, 32);
+ copyscrollbitmap_trans(bitmap, m_tmp_bitmap2, 256, scroll, 0, nullptr, clip, 32);
}
diff --git a/src/mame/video/c45.cpp b/src/mame/video/c45.cpp
index 6df7edd2331..6860961b4b7 100644
--- a/src/mame/video/c45.cpp
+++ b/src/mame/video/c45.cpp
@@ -202,7 +202,7 @@ void namco_c45_road_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect
int pen = source_gfx[sourcex >> 16];
if (m_palette->pen_indirect(pen) != m_transparent_color)
{
- if (m_clut != NULL)
+ if (m_clut != nullptr)
pen = (pen & ~0xff) | m_clut[pen & 0xff];
dest[screenx] = pen;
}
@@ -215,7 +215,7 @@ void namco_c45_road_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect
while (numpixels-- > 0)
{
int pen = source_gfx[sourcex >> 16];
- if (m_clut != NULL)
+ if (m_clut != nullptr)
pen = (pen & ~0xff) | m_clut[pen & 0xff];
dest[screenx++] = pen;
sourcex += dsourcex;
@@ -246,7 +246,7 @@ void namco_c45_road_device::device_start()
const address_space_config *namco_c45_road_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == AS_0) ? &m_space_config : NULL;
+ return (spacenum == AS_0) ? &m_space_config : nullptr;
}
diff --git a/src/mame/video/calomega.cpp b/src/mame/video/calomega.cpp
index d0b8856c6e0..e6b0b9e4891 100644
--- a/src/mame/video/calomega.cpp
+++ b/src/mame/video/calomega.cpp
@@ -83,7 +83,7 @@ PALETTE_INIT_MEMBER(calomega_state, calomega)
const int b_pot = 0xc0;
/* 00000BGR */
- if (color_prom == 0) return;
+ if (color_prom == nullptr) return;
for (int i = 0;i < palette.entries();i++)
{
diff --git a/src/mame/video/cave.cpp b/src/mame/video/cave.cpp
index 4de649c4244..19f051c0744 100644
--- a/src/mame/video/cave.cpp
+++ b/src/mame/video/cave.cpp
@@ -363,12 +363,12 @@ WRITE16_MEMBER(cave_state::cave_vram_3_8x8_w){ vram_8x8_w(space, offset, data, m
void cave_state::cave_vh_start( int num )
{
- assert(m_palette_map != NULL);
+ assert(m_palette_map != nullptr);
- m_tilemap[0] = 0;
- m_tilemap[1] = 0;
- m_tilemap[2] = 0;
- m_tilemap[3] = 0;
+ m_tilemap[0] = nullptr;
+ m_tilemap[1] = nullptr;
+ m_tilemap[2] = nullptr;
+ m_tilemap[3] = nullptr;
m_tiledim[0] = 0;
m_tiledim[1] = 0;
@@ -793,10 +793,10 @@ void cave_state::cave_sprite_check(int chip, screen_device &screen, const rectan
sprite++;
}
- m_sprite_table[chip][0][i[0]] = 0;
- m_sprite_table[chip][1][i[1]] = 0;
- m_sprite_table[chip][2][i[2]] = 0;
- m_sprite_table[chip][3][i[3]] = 0;
+ m_sprite_table[chip][0][i[0]] = nullptr;
+ m_sprite_table[chip][1][i[1]] = nullptr;
+ m_sprite_table[chip][2][i[2]] = nullptr;
+ m_sprite_table[chip][3][i[3]] = nullptr;
switch (spritetype)
{
@@ -1630,7 +1630,7 @@ UINT32 cave_state::screen_update_cave(screen_device &screen, bitmap_rgb32 &bitma
void cave_state::cave_get_sprite_info(int chip)
{
- if (m_videoregs[chip] == NULL)
+ if (m_videoregs[chip] == nullptr)
return;
if (m_kludge == 3) /* mazinger metmqstr */
diff --git a/src/mame/video/cclimber.cpp b/src/mame/video/cclimber.cpp
index 4f63cfc5e89..b0c16ca12e3 100644
--- a/src/mame/video/cclimber.cpp
+++ b/src/mame/video/cclimber.cpp
@@ -50,7 +50,7 @@ PALETTE_INIT_MEMBER(cclimber_state,cclimber)
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/video/chihiro.cpp b/src/mame/video/chihiro.cpp
index cba362d3e52..5aa59cf0493 100644
--- a/src/mame/video/chihiro.cpp
+++ b/src/mame/video/chihiro.cpp
@@ -1286,7 +1286,7 @@ inline UINT8 *nv2a_renderer::read_pixel(int x, int y, INT32 c[4])
c[3] = 0xff;
return addr8;
}
- return NULL;
+ return nullptr;
}
void nv2a_renderer::write_pixel(int x, int y, UINT32 color, UINT32 depth)
@@ -1301,7 +1301,7 @@ void nv2a_renderer::write_pixel(int x, int y, UINT32 color, UINT32 depth)
bool depth_passed;
fb[3] = fb[2] = fb[1] = fb[0] = 0;
- addr = NULL;
+ addr = nullptr;
if (color_mask != 0)
addr = read_pixel(x, y, fb);
if (depthformat_rendertarget == NV2A_RT_DEPTH_FORMAT_Z24S8) {
@@ -1309,18 +1309,18 @@ void nv2a_renderer::write_pixel(int x, int y, UINT32 color, UINT32 depth)
deptsten = *daddr32;
dep = deptsten >> 8;
sten = deptsten & 255;
- daddr16 = NULL;
+ daddr16 = nullptr;
}
else if (depthformat_rendertarget == NV2A_RT_DEPTH_FORMAT_Z16) {
daddr16 = (UINT16 *)depthbuffer + (pitch_depthbuffer / 2) * y + x;
deptsten = *daddr16;
dep = (deptsten << 8) | 0xff;
sten = 0;
- daddr32 = NULL;
+ daddr32 = nullptr;
}
else {
- daddr32 = NULL;
- daddr16 = NULL;
+ daddr32 = nullptr;
+ daddr16 = nullptr;
dep = 0xffffff;
sten = 0;
}
@@ -3378,7 +3378,7 @@ int nv2a_renderer::toggle_wait_vblank_support()
void nv2a_renderer::debug_grab_texture(int type, const char *filename)
{
debug_grab_texttype = type;
- if (debug_grab_textfile == NULL)
+ if (debug_grab_textfile == nullptr)
debug_grab_textfile = (char *)malloc(128);
strncpy(debug_grab_textfile, filename, 127);
}
@@ -3492,13 +3492,13 @@ float *nv2a_renderer::combiner_map_output_select3(int code)
{
switch (code) {
case 0:
- return 0;
+ return nullptr;
case 1:
- return 0;
+ return nullptr;
case 2:
- return 0;
+ return nullptr;
case 3:
- return 0;
+ return nullptr;
case 4:
return combiner.register_primarycolor;
case 5:
@@ -3516,10 +3516,10 @@ float *nv2a_renderer::combiner_map_output_select3(int code)
case 13:
return combiner.register_spare1;
case 14:
- return 0;
+ return nullptr;
case 15:
default:
- return 0;
+ return nullptr;
}
}
@@ -3972,7 +3972,7 @@ void nv2a_renderer::vblank_callback(screen_device &screen, bool state)
#endif
if ((state == true) && (puller_waiting == 1)) {
puller_waiting = 0;
- puller_timer_work(NULL, 0);
+ puller_timer_work(nullptr, 0);
}
if (state == true) {
pcrtc[0x100 / 4] |= 1;
@@ -4008,7 +4008,7 @@ bool nv2a_renderer::update_interrupts()
UINT32 nv2a_renderer::screen_update_callback(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
- if (displayedtarget != NULL) {
+ if (displayedtarget != nullptr) {
bitmap_rgb32 bm(displayedtarget, 640, 480, 640);
UINT32 *dst = (UINT32 *)bitmap.raw_pixptr(0, 0);
diff --git a/src/mame/video/cloak.cpp b/src/mame/video/cloak.cpp
index 7b06f7d9efe..d0951091be2 100644
--- a/src/mame/video/cloak.cpp
+++ b/src/mame/video/cloak.cpp
@@ -56,8 +56,8 @@ void cloak_state::set_pen(int i)
/* compute the color output resistor weights */
compute_resistor_weights(0, 255, -1.0,
3, resistances, weights, 0, 1000,
- 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
int r, g, b;
int bit0, bit1, bit2;
diff --git a/src/mame/video/cps1.cpp b/src/mame/video/cps1.cpp
index a2940aa43cc..0e91647975c 100644
--- a/src/mame/video/cps1.cpp
+++ b/src/mame/video/cps1.cpp
@@ -1604,7 +1604,7 @@ static const struct CPS1config cps1_config_table[]=
{"kenseim", CPS_B_21_DEF, mapper_KNM10B }, // wrong, need to convert equations from PAL
- {0} /* End of table */
+ {nullptr} /* End of table */
};
@@ -2250,11 +2250,11 @@ VIDEO_START_MEMBER(cps_state,cps)
/* Set up old base */
- m_scroll1 = NULL;
- m_scroll2 = NULL;
- m_scroll3 = NULL;
- m_obj = NULL;
- m_other = NULL;
+ m_scroll1 = nullptr;
+ m_scroll2 = nullptr;
+ m_scroll3 = nullptr;
+ m_obj = nullptr;
+ m_other = nullptr;
cps1_get_video_base(); /* Calculate base pointers */
cps1_get_video_base(); /* Calculate old base pointers */
diff --git a/src/mame/video/crt.cpp b/src/mame/video/crt.cpp
index d075600baf7..e69fcfa9b70 100644
--- a/src/mame/video/crt.cpp
+++ b/src/mame/video/crt.cpp
@@ -51,8 +51,8 @@ const device_type CRT = &device_creator<crt_device>;
crt_device::crt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, CRT, "CRT Video", tag, owner, clock, "crt", __FILE__),
- m_list(NULL),
- m_list_head(NULL),
+ m_list(nullptr),
+ m_list_head(nullptr),
m_decay_counter(0),
m_num_intensity_levels(0),
m_window_offset_x(0),
diff --git a/src/mame/video/cvs.cpp b/src/mame/video/cvs.cpp
index 068445b6013..543d7c1c54a 100644
--- a/src/mame/video/cvs.cpp
+++ b/src/mame/video/cvs.cpp
@@ -186,8 +186,8 @@ UINT32 cvs_state::screen_update_cvs(screen_device &screen, bitmap_ind16 &bitmap,
scroll[6] = 0;
scroll[7] = 0;
- copyscrollbitmap(bitmap, m_background_bitmap, 0, 0, 8, scroll, cliprect);
- copyscrollbitmap(m_scrolled_collision_background, m_collision_background, 0, 0, 8, scroll, cliprect);
+ copyscrollbitmap(bitmap, m_background_bitmap, 0, nullptr, 8, scroll, cliprect);
+ copyscrollbitmap(m_scrolled_collision_background, m_collision_background, 0, nullptr, 8, scroll, cliprect);
/* update the S2636 chips */
bitmap_ind16 *s2636_0_bitmap = &m_s2636_0->update(cliprect);
diff --git a/src/mame/video/cyberbal.cpp b/src/mame/video/cyberbal.cpp
index 99addbfb0c4..3bd450cbbea 100644
--- a/src/mame/video/cyberbal.cpp
+++ b/src/mame/video/cyberbal.cpp
@@ -135,7 +135,7 @@ void cyberbal_state::scanline_update(screen_device &screen, int scanline)
/* loop over screens */
screen_device_iterator iter(*this);
- for (i = 0, update_screen = iter.first(); update_screen != NULL; i++, update_screen = iter.next())
+ for (i = 0, update_screen = iter.first(); update_screen != nullptr; i++, update_screen = iter.next())
{
/* need explicit target() because one is optional_device and other is required_device */
tilemap_t *curplayfield = i ? m_playfield2_tilemap.target() : m_playfield_tilemap.target();
@@ -218,7 +218,7 @@ UINT32 cyberbal_state::update_one_screen(screen_device &screen, bitmap_ind16 &bi
/* draw and merge the MO */
bitmap_ind16 &mobitmap = curmob->bitmap();
- for (const sparse_dirty_rect *rect = curmob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = curmob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/dassault.cpp b/src/mame/video/dassault.cpp
index 2a7e5711c95..992dd15bed9 100644
--- a/src/mame/video/dassault.cpp
+++ b/src/mame/video/dassault.cpp
@@ -86,8 +86,8 @@ UINT32 dassault_state::screen_update_dassault(screen_device &screen, bitmap_rgb3
/* Update tilemaps */
flip_screen_set(BIT(flip, 7));
- m_deco_tilegen1->pf_update(0, m_pf2_rowscroll);
- m_deco_tilegen2->pf_update(0, m_pf4_rowscroll);
+ m_deco_tilegen1->pf_update(nullptr, m_pf2_rowscroll);
+ m_deco_tilegen2->pf_update(nullptr, m_pf4_rowscroll);
/* Draw playfields/update priority bitmap */
screen.priority().fill(0, cliprect);
diff --git a/src/mame/video/decbac06.cpp b/src/mame/video/decbac06.cpp
index 3bbd98b9002..32c2f7c1b4c 100644
--- a/src/mame/video/decbac06.cpp
+++ b/src/mame/video/decbac06.cpp
@@ -69,9 +69,9 @@ const device_type DECO_BAC06 = &device_creator<deco_bac06_device>;
deco_bac06_device::deco_bac06_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DECO_BAC06, "DECO BAC06 Tilemap", tag, owner, clock, "deco_bac06", __FILE__),
- m_pf_data(NULL),
- m_pf_rowscroll(NULL),
- m_pf_colscroll(NULL),
+ m_pf_data(nullptr),
+ m_pf_rowscroll(nullptr),
+ m_pf_colscroll(nullptr),
m_tile_region_8(0),
m_tile_region_16(0),
m_supports_8x8(true),
@@ -315,7 +315,7 @@ void deco_bac06_device::custom_tilemap_draw(bitmap_ind16 &bitmap,
void deco_bac06_device::deco_bac06_pf_draw(bitmap_ind16 &bitmap,const rectangle &cliprect,int flags,UINT16 penmask, UINT16 pencondition,UINT16 colprimask, UINT16 colpricondition)
{
- tilemap_t* tm = 0;
+ tilemap_t* tm = nullptr;
int tm_dimensions = m_pf_control_0[3] & 0x3;
if (tm_dimensions == 3) tm_dimensions = 1; // 3 is invalid / the same as 1?
@@ -351,11 +351,11 @@ void deco_bac06_device::deco_bac06_pf_draw(bitmap_ind16 &bitmap,const rectangle
// used for pocket gal bootleg, which doesn't set registers properly and simply expects a fixed size tilemap.
void deco_bac06_device::deco_bac06_pf_draw_bootleg(bitmap_ind16 &bitmap,const rectangle &cliprect,int flags, int mode, int type)
{
- tilemap_t* tm = 0;
+ tilemap_t* tm = nullptr;
if (!mode) tm = m_pf8x8_tilemap[type];
else tm = m_pf16x16_tilemap[type];
- custom_tilemap_draw(bitmap,cliprect,tm,m_pf_rowscroll,m_pf_colscroll,0,0,flags, 0, 0, 0, 0);
+ custom_tilemap_draw(bitmap,cliprect,tm,m_pf_rowscroll,m_pf_colscroll,nullptr,nullptr,flags, 0, 0, 0, 0);
}
diff --git a/src/mame/video/deco16ic.cpp b/src/mame/video/deco16ic.cpp
index fac47cbdf1b..a792ff6fb0c 100644
--- a/src/mame/video/deco16ic.cpp
+++ b/src/mame/video/deco16ic.cpp
@@ -180,11 +180,11 @@ const device_type DECO16IC = &device_creator<deco16ic_device>;
deco16ic_device::deco16ic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DECO16IC, "DECO 55 / 56 / 74 / 141 IC", tag, owner, clock, "deco16ic", __FILE__),
device_video_interface(mconfig, *this),
- m_pf1_data(NULL),
- m_pf2_data(NULL),
- m_pf12_control(NULL),
- m_pf1_rowscroll_ptr(NULL),
- m_pf2_rowscroll_ptr(NULL),
+ m_pf1_data(nullptr),
+ m_pf2_data(nullptr),
+ m_pf12_control(nullptr),
+ m_pf1_rowscroll_ptr(nullptr),
+ m_pf2_rowscroll_ptr(nullptr),
m_use_custom_pf1(0),
m_use_custom_pf2(0),
m_pf1_bank(0),
@@ -289,8 +289,8 @@ void deco16ic_device::device_reset()
m_pf1_bank = m_pf2_bank = 0;
m_pf12_last_small = m_pf12_last_big = -1;
m_use_custom_pf1 = m_use_custom_pf2 = 0;
- m_pf1_rowscroll_ptr = 0;
- m_pf2_rowscroll_ptr = 0;
+ m_pf1_rowscroll_ptr = nullptr;
+ m_pf2_rowscroll_ptr = nullptr;
}
/*****************************************************************************************/
@@ -453,8 +453,8 @@ void deco16ic_device::custom_tilemap_draw(
{
tilemap_t *tilemap0 = BIT(control1, 7) ? tilemap0_8x8 : tilemap0_16x16;
tilemap_t *tilemap1 = BIT(control1, 7) ? tilemap1_8x8 : tilemap1_16x16;
- const bitmap_ind16 *src_bitmap0 = tilemap0 ? &tilemap0->pixmap() : NULL;
- const bitmap_ind16 *src_bitmap1 = tilemap1 ? &tilemap1->pixmap() : NULL;
+ const bitmap_ind16 *src_bitmap0 = tilemap0 ? &tilemap0->pixmap() : nullptr;
+ const bitmap_ind16 *src_bitmap1 = tilemap1 ? &tilemap1->pixmap() : nullptr;
int width_mask, height_mask, x, y, p;
int column_offset, src_x = 0, src_y = 0;
int row_type = 1 << ((control0 >> 3) & 0xf);
@@ -890,7 +890,7 @@ void deco16ic_device::tilemap_1_draw_common( screen_device &screen, _BitmapClass
{
if (m_use_custom_pf1)
{
- custom_tilemap_draw(screen, bitmap, cliprect, m_pf1_tilemap_8x8, m_pf1_tilemap_16x16, 0, 0, m_pf1_rowscroll_ptr, m_pf12_control[1], m_pf12_control[2], m_pf12_control[5] & 0xff, m_pf12_control[6] & 0xff, 0, 0, m_pf1_trans_mask, flags, priority, 0);
+ custom_tilemap_draw(screen, bitmap, cliprect, m_pf1_tilemap_8x8, m_pf1_tilemap_16x16, nullptr, nullptr, m_pf1_rowscroll_ptr, m_pf12_control[1], m_pf12_control[2], m_pf12_control[5] & 0xff, m_pf12_control[6] & 0xff, 0, 0, m_pf1_trans_mask, flags, priority, 0);
}
else
{
@@ -913,7 +913,7 @@ void deco16ic_device::tilemap_2_draw_common(screen_device &screen, _BitmapClass
{
if (m_use_custom_pf2)
{
- custom_tilemap_draw(screen, bitmap, cliprect, m_pf2_tilemap_8x8, m_pf2_tilemap_16x16, 0, 0, m_pf2_rowscroll_ptr, m_pf12_control[3], m_pf12_control[4], m_pf12_control[5] >> 8, m_pf12_control[6] >> 8, 0, 0, m_pf2_trans_mask, flags, priority, 0);
+ custom_tilemap_draw(screen, bitmap, cliprect, m_pf2_tilemap_8x8, m_pf2_tilemap_16x16, nullptr, nullptr, m_pf2_rowscroll_ptr, m_pf12_control[3], m_pf12_control[4], m_pf12_control[5] >> 8, m_pf12_control[6] >> 8, 0, 0, m_pf2_trans_mask, flags, priority, 0);
}
else
{
@@ -936,12 +936,12 @@ void deco16ic_device::tilemap_2_draw( screen_device &screen, bitmap_rgb32 &bitma
// Combines the output of two 4BPP tilemaps into an 8BPP tilemap
void deco16ic_device::tilemap_12_combine_draw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flags, UINT32 priority, int is_tattoo)
{
- custom_tilemap_draw(screen, bitmap, cliprect, 0, m_pf1_tilemap_16x16, 0, m_pf2_tilemap_16x16, m_pf1_rowscroll_ptr, m_pf12_control[1], m_pf12_control[2], m_pf12_control[5] & 0xff, m_pf12_control[6] & 0xff, 0xf, 4, 0xff, flags, priority, is_tattoo);
+ custom_tilemap_draw(screen, bitmap, cliprect, nullptr, m_pf1_tilemap_16x16, nullptr, m_pf2_tilemap_16x16, m_pf1_rowscroll_ptr, m_pf12_control[1], m_pf12_control[2], m_pf12_control[5] & 0xff, m_pf12_control[6] & 0xff, 0xf, 4, 0xff, flags, priority, is_tattoo);
}
void deco16ic_device::tilemap_12_combine_draw(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int flags, UINT32 priority, int is_tattoo)
{
- custom_tilemap_draw(screen, bitmap, cliprect, 0, m_pf1_tilemap_16x16, 0, m_pf2_tilemap_16x16, m_pf1_rowscroll_ptr, m_pf12_control[1], m_pf12_control[2], m_pf12_control[5] & 0xff, m_pf12_control[6] & 0xff, 0xf, 4, 0xff, flags, priority, is_tattoo);
+ custom_tilemap_draw(screen, bitmap, cliprect, nullptr, m_pf1_tilemap_16x16, nullptr, m_pf2_tilemap_16x16, m_pf1_rowscroll_ptr, m_pf12_control[1], m_pf12_control[2], m_pf12_control[5] & 0xff, m_pf12_control[6] & 0xff, 0xf, 4, 0xff, flags, priority, is_tattoo);
}
//-------------------------------------------------
diff --git a/src/mame/video/deco_mlc.cpp b/src/mame/video/deco_mlc.cpp
index df850940603..808b177bf91 100644
--- a/src/mame/video/deco_mlc.cpp
+++ b/src/mame/video/deco_mlc.cpp
@@ -137,7 +137,7 @@ static void mlc_drawgfxzoomline(deco_mlc_state *state,
void deco_mlc_state::draw_sprites( const rectangle &cliprect, int scanline, UINT32* dest)
{
- UINT32 *index_ptr=0;
+ UINT32 *index_ptr=nullptr;
int offs,fx=0,fy=0,x,y,color,colorOffset,sprite,indx,h,w,bx,by,fx1,fy1;
int xoffs,yoffs;
UINT8 *rom = memregion("gfx2")->base() + 0x20000, *index_ptr8;
diff --git a/src/mame/video/deco_zoomspr.cpp b/src/mame/video/deco_zoomspr.cpp
index c357f0376bf..e1b5cfdb949 100644
--- a/src/mame/video/deco_zoomspr.cpp
+++ b/src/mame/video/deco_zoomspr.cpp
@@ -399,7 +399,7 @@ void deco_zoomspr_device::dragngun_draw_sprites( bitmap_rgb32 &bitmap, const rec
colour,
fx,fy,
xpos>>16,ypos>>16,
- 15,zoomx,zoomy,NULL,0,
+ 15,zoomx,zoomy,nullptr,0,
((xpos+(zoomx<<4))>>16) - (xpos>>16), ((ypos+(zoomy<<4))>>16) - (ypos>>16), alpha,
pri_bitmap, temp_bitmap,
priority
diff --git a/src/mame/video/decocomn.cpp b/src/mame/video/decocomn.cpp
index a8646815d37..f0a5aa76c3f 100644
--- a/src/mame/video/decocomn.cpp
+++ b/src/mame/video/decocomn.cpp
@@ -15,7 +15,7 @@ const device_type DECOCOMN = &device_creator<decocomn_device>;
decocomn_device::decocomn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DECOCOMN, "DECO Common Video Functions", tag, owner, clock, "decocomn", __FILE__),
device_video_interface(mconfig, *this),
- m_dirty_palette(NULL),
+ m_dirty_palette(nullptr),
m_priority(0),
m_palette(*this),
m_generic_paletteram_16(*this, "^paletteram")
diff --git a/src/mame/video/decodmd2.cpp b/src/mame/video/decodmd2.cpp
index 75a561b4e06..48863b1c0fc 100644
--- a/src/mame/video/decodmd2.cpp
+++ b/src/mame/video/decodmd2.cpp
@@ -135,7 +135,7 @@ static MACHINE_CONFIG_FRAGMENT( decodmd2 )
MCFG_TIMER_DRIVER_ADD_PERIODIC("firq_timer",decodmd_type2_device,dmd_firq,attotime::from_hz(80))
- MCFG_MC6845_ADD("dmd6845", MC6845, NULL, XTAL_8MHz / 8) // TODO: confirm clock speed
+ MCFG_MC6845_ADD("dmd6845", MC6845, nullptr, XTAL_8MHz / 8) // TODO: confirm clock speed
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(8)
MCFG_MC6845_UPDATE_ROW_CB(decodmd_type2_device, crtc_update_row)
diff --git a/src/mame/video/decodmd3.cpp b/src/mame/video/decodmd3.cpp
index 44235f83bc1..18b41d4ce71 100644
--- a/src/mame/video/decodmd3.cpp
+++ b/src/mame/video/decodmd3.cpp
@@ -137,7 +137,7 @@ static MACHINE_CONFIG_FRAGMENT( decodmd3 )
MCFG_TIMER_DRIVER_ADD_PERIODIC("irq_timer",decodmd_type3_device,dmd_irq,attotime::from_hz(150))
- MCFG_MC6845_ADD("dmd6845", MC6845, NULL, XTAL_12MHz / 4) // TODO: confirm clock speed
+ MCFG_MC6845_ADD("dmd6845", MC6845, nullptr, XTAL_12MHz / 4) // TODO: confirm clock speed
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(16)
MCFG_MC6845_UPDATE_ROW_CB(decodmd_type3_device, crtc_update_row)
diff --git a/src/mame/video/dkong.cpp b/src/mame/video/dkong.cpp
index a17b45b527a..05630cba8e8 100644
--- a/src/mame/video/dkong.cpp
+++ b/src/mame/video/dkong.cpp
@@ -807,7 +807,7 @@ void dkong_state::radarscp_step(int line_cnt)
void dkong_state::radarscp_draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- const UINT8 *htable = NULL;
+ const UINT8 *htable = nullptr;
int x,y;
UINT8 draw_ok;
UINT16 *pixel;
@@ -890,7 +890,7 @@ void dkong_state::check_palette()
int newset;
port = ioport("VIDHW");
- if (port != NULL)
+ if (port != nullptr)
{
newset = port->read();
if (newset != m_vidhw)
diff --git a/src/mame/video/dooyong.cpp b/src/mame/video/dooyong.cpp
index 2e2376a7f82..128450d9279 100644
--- a/src/mame/video/dooyong.cpp
+++ b/src/mame/video/dooyong.cpp
@@ -10,7 +10,7 @@ inline void dooyong_state::scroll8_w(offs_t offset, UINT8 data, UINT8 *scroll, t
if (old != data)
{
scroll[offset] = data;
- if (map != NULL) switch (offset)
+ if (map != nullptr) switch (offset)
{
case 0: /* Low byte of x scroll - scroll tilemap */
map->set_scrollx(0, data);
@@ -850,7 +850,7 @@ VIDEO_START_MEMBER(dooyong_68k_state, popbingo)
/* Create tilemaps */
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dooyong_state::get_bg_tile_info),this), TILEMAP_SCAN_COLS,
32, 32, 32, 8);
- m_bg2_tilemap = m_fg_tilemap = m_fg2_tilemap = NULL; /* Stop scroll handler from crashing on these */
+ m_bg2_tilemap = m_fg_tilemap = m_fg2_tilemap = nullptr; /* Stop scroll handler from crashing on these */
memset(m_bgscroll8, 0, 0x10);
memset(m_bg2scroll8, 0, 0x10);
diff --git a/src/mame/video/dynax.cpp b/src/mame/video/dynax.cpp
index 4a4683e303a..6c179631645 100644
--- a/src/mame/video/dynax.cpp
+++ b/src/mame/video/dynax.cpp
@@ -990,7 +990,7 @@ VIDEO_START_MEMBER(dynax_state,mjdialq2)
dynax_common_reset();
m_layer_layout = LAYOUT_MJDIALQ2;
- m_update_irq_func = 0;
+ m_update_irq_func = nullptr;
save_pointer(NAME(m_pixmap[0][0]), 256 * 256);
save_pointer(NAME(m_pixmap[1][0]), 256 * 256);
diff --git a/src/mame/video/eprom.cpp b/src/mame/video/eprom.cpp
index 3deab68cbd8..83d36240ffc 100644
--- a/src/mame/video/eprom.cpp
+++ b/src/mame/video/eprom.cpp
@@ -218,7 +218,7 @@ UINT32 eprom_state::screen_update_eprom(screen_device &screen, bitmap_ind16 &bit
// draw and merge the MO
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
@@ -324,7 +324,7 @@ UINT32 eprom_state::screen_update_eprom(screen_device &screen, bitmap_ind16 &bit
m_alpha_tilemap->draw(screen, bitmap, cliprect, 0, 0);
/* now go back and process the upper bit of MO priority */
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
@@ -365,7 +365,7 @@ UINT32 eprom_state::screen_update_guts(screen_device &screen, bitmap_ind16 &bitm
// draw and merge the MO
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
@@ -390,7 +390,7 @@ UINT32 eprom_state::screen_update_guts(screen_device &screen, bitmap_ind16 &bitm
m_alpha_tilemap->draw(screen, bitmap, cliprect, 0, 0);
/* now go back and process the upper bit of MO priority */
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/exerion.cpp b/src/mame/video/exerion.cpp
index 9ec66724edd..8f1743f0ba0 100644
--- a/src/mame/video/exerion.cpp
+++ b/src/mame/video/exerion.cpp
@@ -334,7 +334,7 @@ void exerion_state::draw_background( bitmap_ind16 &bitmap, const rectangle &clip
}
/* draw the scanline */
- draw_scanline16(bitmap, cliprect.min_x, y, cliprect.width(), &scanline[cliprect.min_x], NULL);
+ draw_scanline16(bitmap, cliprect.min_x, y, cliprect.width(), &scanline[cliprect.min_x], nullptr);
}
}
diff --git a/src/mame/video/exidy440.cpp b/src/mame/video/exidy440.cpp
index 455ab6add53..5528165795a 100644
--- a/src/mame/video/exidy440.cpp
+++ b/src/mame/video/exidy440.cpp
@@ -392,7 +392,7 @@ void exidy440_state::update_screen(screen_device &screen, bitmap_ind16 &bitmap,
sy -= (VBSTART - VBEND);
/* draw line */
- draw_scanline8(bitmap, 0, y, (HBSTART - HBEND), &m_local_videoram[sy * 512], NULL);
+ draw_scanline8(bitmap, 0, y, (HBSTART - HBEND), &m_local_videoram[sy * 512], nullptr);
}
/* draw the sprites */
diff --git a/src/mame/video/exterm.cpp b/src/mame/video/exterm.cpp
index 74f57b1e1cb..a22cc152b77 100644
--- a/src/mame/video/exterm.cpp
+++ b/src/mame/video/exterm.cpp
@@ -68,7 +68,7 @@ TMS340X0_FROM_SHIFTREG_CB_MEMBER(exterm_state::from_shiftreg_slave)
TMS340X0_SCANLINE_IND16_CB_MEMBER(exterm_state::scanline_update)
{
UINT16 *bgsrc = &m_master_videoram[(params->rowaddr << 8) & 0xff00];
- UINT16 *fgsrc = NULL;
+ UINT16 *fgsrc = nullptr;
UINT16 *dest = &bitmap.pix16(scanline);
tms34010_display_params fgparams;
int coladdr = params->coladdr;
@@ -90,7 +90,7 @@ TMS340X0_SCANLINE_IND16_CB_MEMBER(exterm_state::scanline_update)
{
UINT16 bgdata, fgdata = 0;
- if (fgsrc != NULL)
+ if (fgsrc != nullptr)
fgdata = fgsrc[fgcoladdr++ & 0x7f];
bgdata = bgsrc[coladdr++ & 0xff];
diff --git a/src/mame/video/flkatck.cpp b/src/mame/video/flkatck.cpp
index bcb34111d11..64c75e17bf7 100644
--- a/src/mame/video/flkatck.cpp
+++ b/src/mame/video/flkatck.cpp
@@ -162,7 +162,7 @@ UINT32 flkatck_state::screen_update_flkatck(screen_device &screen, bitmap_ind16
/* draw the graphics */
m_k007121_tilemap[0]->draw(screen, bitmap, clip[0], 0, 0);
- m_k007121->sprites_draw(bitmap, cliprect, m_gfxdecode->gfx(0), NULL, &m_k007121_ram[0x1000], 0, 40, 0, screen.priority(), (UINT32)-1);
+ m_k007121->sprites_draw(bitmap, cliprect, m_gfxdecode->gfx(0), nullptr, &m_k007121_ram[0x1000], 0, 40, 0, screen.priority(), (UINT32)-1);
m_k007121_tilemap[1]->draw(screen, bitmap, clip[1], 0, 0);
return 0;
}
diff --git a/src/mame/video/fromanc2.cpp b/src/mame/video/fromanc2.cpp
index addee088756..0a8204d744e 100644
--- a/src/mame/video/fromanc2.cpp
+++ b/src/mame/video/fromanc2.cpp
@@ -313,11 +313,11 @@ VIDEO_START_MEMBER(fromanc2_state,fromancr)
m_tilemap[0][0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v0_l0_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64);
m_tilemap[0][1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v0_l1_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64);
m_tilemap[0][2] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v0_l2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64);
- m_tilemap[0][3] = NULL;
+ m_tilemap[0][3] = nullptr;
m_tilemap[1][0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v1_l0_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64);
m_tilemap[1][1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v1_l1_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64);
m_tilemap[1][2] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v1_l2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64);
- m_tilemap[1][3] = NULL;
+ m_tilemap[1][3] = nullptr;
for (int screen = 0; screen < 2; screen++)
{
@@ -349,11 +349,11 @@ VIDEO_START_MEMBER(fromanc2_state,fromanc4)
m_tilemap[0][0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v0_l0_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 256, 64);
m_tilemap[0][1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v0_l1_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 256, 64);
m_tilemap[0][2] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v0_l2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 256, 64);
- m_tilemap[0][3] = NULL;
+ m_tilemap[0][3] = nullptr;
m_tilemap[1][0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v1_l0_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 256, 64);
m_tilemap[1][1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v1_l1_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 256, 64);
m_tilemap[1][2] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fromanc2_state::fromancr_get_v1_l2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 256, 64);
- m_tilemap[1][3] = NULL;
+ m_tilemap[1][3] = nullptr;
for (int screen = 0; screen < 2; screen++)
{
diff --git a/src/mame/video/fuukifg2.cpp b/src/mame/video/fuukifg2.cpp
index 83b8d743736..eba3f8059ca 100644
--- a/src/mame/video/fuukifg2.cpp
+++ b/src/mame/video/fuukifg2.cpp
@@ -220,7 +220,7 @@ UINT32 fuuki16_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
draw_layer(screen, bitmap, cliprect, tm_middle, 0, 2);
draw_layer(screen, bitmap, cliprect, tm_front, 0, 4);
- m_fuukivid->draw_sprites(screen, bitmap, cliprect, flip_screen(), 0);
+ m_fuukivid->draw_sprites(screen, bitmap, cliprect, flip_screen(), nullptr);
return 0;
}
diff --git a/src/mame/video/gaiden.cpp b/src/mame/video/gaiden.cpp
index f8f1f951e26..bc302bab000 100644
--- a/src/mame/video/gaiden.cpp
+++ b/src/mame/video/gaiden.cpp
@@ -313,7 +313,7 @@ UINT32 gaiden_state::screen_update_raiga(screen_device &screen, bitmap_rgb32 &bi
m_background->draw(screen, m_tile_bitmap_bg, cliprect, 0, 0);
m_foreground->draw(screen, m_tile_bitmap_fg, cliprect, 0, 0);
- m_mixer->mix_bitmaps(screen, bitmap, cliprect, m_palette, &m_tile_bitmap_bg, &m_tile_bitmap_fg, (bitmap_ind16*)0, &m_sprite_bitmap);
+ m_mixer->mix_bitmaps(screen, bitmap, cliprect, m_palette, &m_tile_bitmap_bg, &m_tile_bitmap_fg, (bitmap_ind16*)nullptr, &m_sprite_bitmap);
// todo, this should go through the mixer!
m_text_layer->draw(screen, bitmap, cliprect, 0, 0);
diff --git a/src/mame/video/galaxian.cpp b/src/mame/video/galaxian.cpp
index e3beb486c6a..ba022af66b5 100644
--- a/src/mame/video/galaxian.cpp
+++ b/src/mame/video/galaxian.cpp
@@ -446,7 +446,7 @@ UINT32 galaxian_state::screen_update_galaxian(screen_device &screen, bitmap_rgb3
sprites_draw(bitmap, cliprect, &m_spriteram[m_sprites_base + i * 0x20]);
/* if we have bullets to draw, render them following */
- if (m_draw_bullet_ptr != NULL)
+ if (m_draw_bullet_ptr != nullptr)
bullets_draw(bitmap, cliprect, &m_spriteram[m_bullets_base]);
return 0;
@@ -469,7 +469,7 @@ TILE_GET_INFO_MEMBER(galaxian_state::bg_get_tile_info)
UINT8 attrib = m_spriteram[x*2+1];
UINT8 color = attrib & 7;
- if (m_extend_tile_info_ptr != NULL)
+ if (m_extend_tile_info_ptr != nullptr)
(this->*m_extend_tile_info_ptr)(&code, &color, attrib, x);
SET_TILE_INFO_MEMBER(0, code, color, 0);
@@ -561,7 +561,7 @@ void galaxian_state::sprites_draw(bitmap_rgb32 &bitmap, const rectangle &cliprec
UINT8 sx = base[3] + hoffset;
/* extend the sprite information */
- if (m_extend_sprite_info_ptr != NULL)
+ if (m_extend_sprite_info_ptr != nullptr)
(this->*m_extend_sprite_info_ptr)(base, &sx, &sy, &flipx, &flipy, &code, &color);
/* apply flipscreen in X direction */
diff --git a/src/mame/video/galaxold.cpp b/src/mame/video/galaxold.cpp
index bdfa8dd068c..cebfe20e687 100644
--- a/src/mame/video/galaxold.cpp
+++ b/src/mame/video/galaxold.cpp
@@ -402,12 +402,12 @@ void galaxold_state::state_save_register()
void galaxold_state::video_start_common()
{
- m_modify_charcode = 0;
- m_modify_spritecode = 0;
- m_modify_color = 0;
- m_modify_ypos = 0;
+ m_modify_charcode = nullptr;
+ m_modify_spritecode = nullptr;
+ m_modify_color = nullptr;
+ m_modify_ypos = nullptr;
- m_draw_bullets = 0;
+ m_draw_bullets = nullptr;
m_draw_background = &galaxold_state::galaxold_draw_background;
m_background_enable = 0;
diff --git a/src/mame/video/gauntlet.cpp b/src/mame/video/gauntlet.cpp
index 89ba735c88b..0d7120a627b 100644
--- a/src/mame/video/gauntlet.cpp
+++ b/src/mame/video/gauntlet.cpp
@@ -167,7 +167,7 @@ UINT32 gauntlet_state::screen_update_gauntlet(screen_device &screen, bitmap_ind1
/* draw and merge the MO */
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/gic.cpp b/src/mame/video/gic.cpp
index 994e97e16f8..6adcea87227 100644
--- a/src/mame/video/gic.cpp
+++ b/src/mame/video/gic.cpp
@@ -84,11 +84,11 @@ gic_device::gic_device(const machine_config &mconfig, const char *tag, device_t
: device_t(mconfig, GIC, "GIC", tag, owner, clock, "gic", __FILE__)
, device_sound_interface(mconfig, *this)
, device_video_interface(mconfig, *this)
- , m_cgrom(0)
+ , m_cgrom(nullptr)
, m_audiocnt(0)
, m_audioval(0)
, m_audioreset(0)
- , m_ram(0)
+ , m_ram(nullptr)
{
}
@@ -97,11 +97,11 @@ gic_device::gic_device(const machine_config &mconfig, device_type type, const ch
: device_t(mconfig, type, name, tag, owner, clock, shortname, source)
, device_sound_interface(mconfig, *this)
, device_video_interface(mconfig, *this)
- , m_cgrom(0)
+ , m_cgrom(nullptr)
, m_audiocnt(0)
, m_audioval(0)
, m_audioreset(0)
- , m_ram(0)
+ , m_ram(nullptr)
{
}
diff --git a/src/mame/video/gime.cpp b/src/mame/video/gime.cpp
index 83b78e92b25..a98cd3d83cd 100644
--- a/src/mame/video/gime.cpp
+++ b/src/mame/video/gime.cpp
@@ -113,9 +113,9 @@ gime_base_device::gime_base_device(const machine_config &mconfig, device_type ty
m_write_irq(*this),
m_write_firq(*this),
m_read_floating_bus(*this),
- m_maincpu_tag(NULL),
- m_ram_tag(NULL),
- m_ext_tag(NULL)
+ m_maincpu_tag(nullptr),
+ m_ram_tag(nullptr),
+ m_ext_tag(nullptr)
{
}
@@ -620,7 +620,7 @@ void gime_base_device::update_memory(int bank)
// are we in onboard ROM or cart ROM?
UINT8 *rom_ptr = (block & 4) ? m_cart_rom : m_rom;
// TODO: make this unmapped
- if (rom_ptr==NULL) rom_ptr = m_rom;
+ if (rom_ptr==nullptr) rom_ptr = m_rom;
// perform the look up
memory = &rom_ptr[(block & 3) * 0x2000];
is_read_only = true;
@@ -1738,7 +1738,7 @@ inline void gime_base_device::render_scanline(const scanline_record *scanline, p
int left_border, right_border;
int x, x2, pixel_position;
pixel_t border_color = resolver->lookup(scanline->m_border);
- const pixel_t *resolved_palette = NULL;
+ const pixel_t *resolved_palette = nullptr;
/* is this a wide video mode? */
bool wide = !m_legacy_video && (scanline->m_ff99_value & 0x04);
diff --git a/src/mame/video/gp9001.cpp b/src/mame/video/gp9001.cpp
index 711eb1b0199..9a8c379bf7f 100644
--- a/src/mame/video/gp9001.cpp
+++ b/src/mame/video/gp9001.cpp
@@ -228,7 +228,7 @@ gp9001vdp_device::gp9001vdp_device(const machine_config &mconfig, const char *ta
const address_space_config *gp9001vdp_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == 0) ? &m_space_config : NULL;
+ return (spacenum == 0) ? &m_space_config : nullptr;
}
TILE_GET_INFO_MEMBER(gp9001vdp_device::get_top0_tile_info)
diff --git a/src/mame/video/gyruss.cpp b/src/mame/video/gyruss.cpp
index 3f0a77465a9..f08b60fc0dd 100644
--- a/src/mame/video/gyruss.cpp
+++ b/src/mame/video/gyruss.cpp
@@ -43,7 +43,7 @@ PALETTE_INIT_MEMBER(gyruss_state, gyruss)
compute_resistor_weights(0, 255, -1.0,
3, resistances_rg, weights_rg, 470, 0,
2, resistances_b, weights_b, 470, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
/* create a lookup table for the palette */
for (i = 0; i < 0x20; i++)
diff --git a/src/mame/video/hnayayoi.cpp b/src/mame/video/hnayayoi.cpp
index 7c3d10f77c2..42470fd2c59 100644
--- a/src/mame/video/hnayayoi.cpp
+++ b/src/mame/video/hnayayoi.cpp
@@ -27,7 +27,7 @@ void hnayayoi_state::common_vh_start( int num_pixmaps )
m_pixmap[i] = auto_alloc_array(machine(), UINT8, 256 * 256);
}
else
- m_pixmap[i] = NULL;
+ m_pixmap[i] = nullptr;
}
}
diff --git a/src/mame/video/hng64.cpp b/src/mame/video/hng64.cpp
index 63bbff6e2f6..01a5709085c 100644
--- a/src/mame/video/hng64.cpp
+++ b/src/mame/video/hng64.cpp
@@ -575,7 +575,7 @@ void hng64_state::hng64_drawtilemap(screen_device &screen, bitmap_rgb32 &bitmap,
//}
// Select the proper tilemap size
- tilemap_t* tilemap = NULL;
+ tilemap_t* tilemap = nullptr;
if (global_dimensions==0)
{
if (bigTilemapBit) tilemap = m_tilemap[tm].m_tilemap_16x16;
diff --git a/src/mame/video/igs017_igs031.cpp b/src/mame/video/igs017_igs031.cpp
index 81fbdd64e57..8aa254db422 100644
--- a/src/mame/video/igs017_igs031.cpp
+++ b/src/mame/video/igs017_igs031.cpp
@@ -94,7 +94,7 @@ igs017_igs031_device::igs017_igs031_device(const machine_config &mconfig, const
const address_space_config *igs017_igs031_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == 0) ? &m_space_config : NULL;
+ return (spacenum == 0) ? &m_space_config : nullptr;
}
UINT16 igs017_igs031_device::palette_callback_straight(UINT16 bgr)
diff --git a/src/mame/video/irobot.cpp b/src/mame/video/irobot.cpp
index 628a5c480e3..418384d4f99 100644
--- a/src/mame/video/irobot.cpp
+++ b/src/mame/video/irobot.cpp
@@ -353,7 +353,7 @@ UINT32 irobot_state::screen_update_irobot(screen_device &screen, bitmap_ind16 &b
/* copy the polygon bitmap */
for (y = cliprect.min_y; y <= cliprect.max_y; y++)
- draw_scanline8(bitmap, 0, y, BITMAP_WIDTH, &bitmap_base[y * BITMAP_WIDTH], NULL);
+ draw_scanline8(bitmap, 0, y, BITMAP_WIDTH, &bitmap_base[y * BITMAP_WIDTH], nullptr);
/* redraw the non-zero characters in the alpha layer */
for (y = offs = 0; y < 32; y++)
diff --git a/src/mame/video/itech32.cpp b/src/mame/video/itech32.cpp
index 856cdf6844f..f0b9b84b8e0 100644
--- a/src/mame/video/itech32.cpp
+++ b/src/mame/video/itech32.cpp
@@ -1169,8 +1169,8 @@ void itech32_state::handle_video_command()
}
else
{
- if (m_enable_latch[0]) shiftreg_clear(m_videoplane[0], NULL);
- if (m_enable_latch[1]) shiftreg_clear(m_videoplane[1], NULL);
+ if (m_enable_latch[0]) shiftreg_clear(m_videoplane[0], nullptr);
+ if (m_enable_latch[1]) shiftreg_clear(m_videoplane[1], nullptr);
}
g_profiler.stop();
@@ -1386,12 +1386,12 @@ UINT32 itech32_state::screen_update_itech32(screen_device &screen, bitmap_ind16
}
/* draw from the buffer */
- draw_scanline16(bitmap, cliprect.min_x, y, cliprect.width(), &scanline[cliprect.min_x], NULL);
+ draw_scanline16(bitmap, cliprect.min_x, y, cliprect.width(), &scanline[cliprect.min_x], nullptr);
}
/* otherwise, draw directly from VRAM */
else
- draw_scanline16(bitmap, cliprect.min_x, y, cliprect.width(), &src1[cliprect.min_x], NULL);
+ draw_scanline16(bitmap, cliprect.min_x, y, cliprect.width(), &src1[cliprect.min_x], nullptr);
}
return 0;
}
diff --git a/src/mame/video/jalblend.cpp b/src/mame/video/jalblend.cpp
index acfeadd470e..1220d2a3d09 100644
--- a/src/mame/video/jalblend.cpp
+++ b/src/mame/video/jalblend.cpp
@@ -26,7 +26,7 @@ const device_type JALECO_BLEND = &device_creator<jaleco_blend_device>;
jaleco_blend_device::jaleco_blend_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, JALECO_BLEND, "Jaleco Blending Device", tag, owner, clock, "jaleco_blend", __FILE__),
- m_table(NULL)
+ m_table(nullptr)
{
}
diff --git a/src/mame/video/k001005.cpp b/src/mame/video/k001005.cpp
index eb15e55616f..0a6b3e535b7 100644
--- a/src/mame/video/k001005.cpp
+++ b/src/mame/video/k001005.cpp
@@ -1173,16 +1173,16 @@ const device_type K001005 = &device_creator<k001005_device>;
k001005_device::k001005_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K001005, "K001005 Polygon Renderer", tag, owner, clock, "k001005", __FILE__),
device_video_interface(mconfig, *this),
- m_k001006(NULL),
- m_fifo(NULL),
+ m_k001006(nullptr),
+ m_fifo(nullptr),
m_status(0),
m_ram_ptr(0),
m_fifo_read_ptr(0),
m_fifo_write_ptr(0),
m_reg_far_z(0)
{
- m_ram[0] = 0;
- m_ram[1] = 0;
+ m_ram[0] = nullptr;
+ m_ram[1] = nullptr;
}
//-------------------------------------------------
diff --git a/src/mame/video/k001006.cpp b/src/mame/video/k001006.cpp
index f6b5626a78d..67a55f137fc 100644
--- a/src/mame/video/k001006.cpp
+++ b/src/mame/video/k001006.cpp
@@ -16,11 +16,11 @@ const device_type K001006 = &device_creator<k001006_device>;
k001006_device::k001006_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K001006, "K001006 Texel Unit", tag, owner, clock, "k001006", __FILE__),
- m_pal_ram(NULL),
- m_unknown_ram(NULL),
+ m_pal_ram(nullptr),
+ m_unknown_ram(nullptr),
m_addr(0),
m_device_sel(0),
- m_palette(NULL),
+ m_palette(nullptr),
m_tex_layout(0)
{
}
diff --git a/src/mame/video/k001604.cpp b/src/mame/video/k001604.cpp
index 1ce897f4785..474dddce394 100644
--- a/src/mame/video/k001604.cpp
+++ b/src/mame/video/k001604.cpp
@@ -25,9 +25,9 @@ k001604_device::k001604_device(const machine_config &mconfig, const char *tag, d
m_roz_size(0),
m_txt_mem_offset(0),
m_roz_mem_offset(0),
- m_tile_ram(NULL),
- m_char_ram(NULL),
- m_reg(NULL),
+ m_tile_ram(nullptr),
+ m_char_ram(nullptr),
+ m_reg(nullptr),
m_gfxdecode(*this),
m_palette(*this)
{
diff --git a/src/mame/video/k007121.cpp b/src/mame/video/k007121.cpp
index 3bc2c4f3be8..6914945baa5 100644
--- a/src/mame/video/k007121.cpp
+++ b/src/mame/video/k007121.cpp
@@ -235,7 +235,7 @@ void k007121_device::sprites_draw( bitmap_ind16 &bitmap, const rectangle &clipre
// gfx_element *gfx = gfxs[chip];
int flipscreen = m_flipscreen;
int i, num, inc, offs[5];
- int is_flakatck = (palette == NULL);
+ int is_flakatck = (palette == nullptr);
if (is_flakatck)
{
diff --git a/src/mame/video/k007342.cpp b/src/mame/video/k007342.cpp
index bc482a5e4ad..0cc57b6c826 100644
--- a/src/mame/video/k007342.cpp
+++ b/src/mame/video/k007342.cpp
@@ -39,12 +39,12 @@ const device_type K007342 = &device_creator<k007342_device>;
k007342_device::k007342_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K007342, "K007342 Video Controller", tag, owner, clock, "k007342", __FILE__),
- m_ram(NULL),
- m_scroll_ram(NULL),
- m_videoram_0(NULL),
- m_videoram_1(NULL),
- m_colorram_0(NULL),
- m_colorram_1(NULL),
+ m_ram(nullptr),
+ m_scroll_ram(nullptr),
+ m_videoram_0(nullptr),
+ m_videoram_1(nullptr),
+ m_colorram_0(nullptr),
+ m_colorram_1(nullptr),
//m_tilemap[2];
m_flipscreen(0),
m_int_enabled(0),
diff --git a/src/mame/video/k007420.cpp b/src/mame/video/k007420.cpp
index cec62760fc8..d9806491022 100644
--- a/src/mame/video/k007420.cpp
+++ b/src/mame/video/k007420.cpp
@@ -20,7 +20,7 @@ const device_type K007420 = &device_creator<k007420_device>;
k007420_device::k007420_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K007420, "K007420 Sprite Generator", tag, owner, clock, "k007420", __FILE__),
- m_ram(NULL),
+ m_ram(nullptr),
m_flipscreen(0),
m_palette(*this),
m_banklimit(0)
diff --git a/src/mame/video/k037122.cpp b/src/mame/video/k037122.cpp
index 2a96426952e..c5e42a8c4fc 100644
--- a/src/mame/video/k037122.cpp
+++ b/src/mame/video/k037122.cpp
@@ -18,9 +18,9 @@ const device_type K037122 = &device_creator<k037122_device>;
k037122_device::k037122_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K037122, "K037122 2D Tilemap", tag, owner, clock, "k037122", __FILE__),
device_video_interface(mconfig, *this),
- m_tile_ram(NULL),
- m_char_ram(NULL),
- m_reg(NULL),
+ m_tile_ram(nullptr),
+ m_char_ram(nullptr),
+ m_reg(nullptr),
m_gfx_index(0),
m_gfxdecode(*this),
m_palette(*this)
diff --git a/src/mame/video/k051316.cpp b/src/mame/video/k051316.cpp
index a5411f463ae..958b38fab3f 100644
--- a/src/mame/video/k051316.cpp
+++ b/src/mame/video/k051316.cpp
@@ -106,7 +106,7 @@ GFXDECODE_END
k051316_device::k051316_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K051316, "K051316 PSAC", tag, owner, clock, "k051316", __FILE__),
device_gfx_interface(mconfig, *this, gfxinfo),
- m_zoom_rom(NULL),
+ m_zoom_rom(nullptr),
m_zoom_size(0),
m_dx(0),
m_dy(0),
@@ -152,7 +152,7 @@ void k051316_device::set_bpp(device_t &device, int bpp)
void k051316_device::device_start()
{
memory_region *ROM = region();
- if (ROM != NULL)
+ if (ROM != nullptr)
{
m_zoom_rom = ROM->base();
m_zoom_size = ROM->bytes();
diff --git a/src/mame/video/k051960.cpp b/src/mame/video/k051960.cpp
index 96c1acb2faf..45f634e95ca 100644
--- a/src/mame/video/k051960.cpp
+++ b/src/mame/video/k051960.cpp
@@ -128,12 +128,12 @@ GFXDECODE_END
k051960_device::k051960_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K051960, "K051960 Sprite Generator", tag, owner, clock, "k051960", __FILE__),
device_gfx_interface(mconfig, *this, gfxinfo),
- m_ram(NULL),
- m_sprite_rom(NULL),
+ m_ram(nullptr),
+ m_sprite_rom(nullptr),
m_sprite_size(0),
- m_screen_tag(NULL),
- m_screen(NULL),
- m_scanline_timer(NULL),
+ m_screen_tag(nullptr),
+ m_screen(nullptr),
+ m_scanline_timer(nullptr),
m_irq_handler(*this),
m_firq_handler(*this),
m_nmi_handler(*this),
diff --git a/src/mame/video/k052109.cpp b/src/mame/video/k052109.cpp
index ccffe5f2e89..07e4e1ef80c 100644
--- a/src/mame/video/k052109.cpp
+++ b/src/mame/video/k052109.cpp
@@ -162,25 +162,25 @@ GFXDECODE_END
k052109_device::k052109_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K052109, "K052109 Tilemap Generator", tag, owner, clock, "k052109", __FILE__),
device_gfx_interface(mconfig, *this, gfxinfo),
- m_ram(NULL),
- m_videoram_F(NULL),
- m_videoram_A(NULL),
- m_videoram_B(NULL),
- m_videoram2_F(NULL),
- m_videoram2_A(NULL),
- m_videoram2_B(NULL),
- m_colorram_F(NULL),
- m_colorram_A(NULL),
- m_colorram_B(NULL),
+ m_ram(nullptr),
+ m_videoram_F(nullptr),
+ m_videoram_A(nullptr),
+ m_videoram_B(nullptr),
+ m_videoram2_F(nullptr),
+ m_videoram2_A(nullptr),
+ m_videoram2_B(nullptr),
+ m_colorram_F(nullptr),
+ m_colorram_A(nullptr),
+ m_colorram_B(nullptr),
m_tileflip_enable(0),
m_has_extra_video_ram(0),
m_rmrd_line(0),
m_irq_enabled(0),
m_romsubbank(0),
m_scrollctrl(0),
- m_char_rom(NULL),
+ m_char_rom(nullptr),
m_char_size(0),
- m_screen_tag(NULL),
+ m_screen_tag(nullptr),
m_irq_handler(*this),
m_firq_handler(*this),
m_nmi_handler(*this)
@@ -205,7 +205,7 @@ void k052109_device::set_ram(device_t &device, bool ram)
void k052109_device::device_start()
{
- if (m_screen_tag != NULL)
+ if (m_screen_tag != nullptr)
{
// make sure our screen is started
screen_device *screen = m_owner->subdevice<screen_device>(m_screen_tag);
@@ -216,7 +216,7 @@ void k052109_device::device_start()
screen->register_vblank_callback(vblank_state_delegate(FUNC(k052109_device::vblank_callback), this));
}
- if (region() != NULL)
+ if (region() != nullptr)
{
m_char_rom = region()->base();
m_char_size = region()->bytes();
diff --git a/src/mame/video/k053244_k053245.cpp b/src/mame/video/k053244_k053245.cpp
index 4a887b8004f..23227fede07 100644
--- a/src/mame/video/k053244_k053245.cpp
+++ b/src/mame/video/k053244_k053245.cpp
@@ -84,9 +84,9 @@ GFXDECODE_END
k05324x_device::k05324x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K053244, "K053244 & 053245 Sprite Generator", tag, owner, clock, "k05324x", __FILE__),
device_gfx_interface(mconfig, *this, gfxinfo),
- m_ram(NULL),
- m_buffer(NULL),
- m_sprite_rom(NULL),
+ m_ram(nullptr),
+ m_buffer(nullptr),
+ m_sprite_rom(nullptr),
m_dx(0),
m_dy(0),
m_rombank(0),
diff --git a/src/mame/video/k053246_k053247_k055673.cpp b/src/mame/video/k053246_k053247_k055673.cpp
index dc678d36a45..27636d19001 100644
--- a/src/mame/video/k053246_k053247_k055673.cpp
+++ b/src/mame/video/k053246_k053247_k055673.cpp
@@ -49,8 +49,8 @@ The sprite RAM format is very similar to the 053245.
void k053247_device::clear_all()
{
- m_ram = 0;
- m_gfx = 0;
+ m_ram = nullptr;
+ m_gfx = nullptr;
for (int i=0;i<8;i++)
m_kx46_regs[i] = 0;
@@ -61,7 +61,7 @@ void k053247_device::clear_all()
m_objcha_line = 0;
m_z_rejection = 0;
- m_memory_region = 0;
+ m_memory_region = nullptr;
}
void k053247_device::k053247_get_ram( UINT16 **ram )
@@ -400,7 +400,7 @@ void k053247_device::k053247_sprites_draw_common( _BitmapClass &bitmap, const re
m_k053247_cb(&code, &color, &primask);
k053247_draw_single_sprite_gxcore( bitmap, cliprect,
- NULL, NULL,
+ nullptr, nullptr,
code, m_ram, offs,
color,
/* gx only */
@@ -967,7 +967,7 @@ void k055673_device::device_start()
/* find first empty slot to decode gfx */
for (gfx_index = 0; gfx_index < MAX_GFX_ELEMENTS; gfx_index++)
- if (m_gfxdecode->gfx(gfx_index) == 0)
+ if (m_gfxdecode->gfx(gfx_index) == nullptr)
break;
assert(gfx_index != MAX_GFX_ELEMENTS);
diff --git a/src/mame/video/k053246_k053247_k055673.h b/src/mame/video/k053246_k053247_k055673.h
index 9fa846f593e..951c5484cc8 100644
--- a/src/mame/video/k053246_k053247_k055673.h
+++ b/src/mame/video/k053246_k053247_k055673.h
@@ -266,7 +266,7 @@ public:
pri,
zcode, alpha, drawmode,
gx_objzbuf, gx_shdzbuf,
- 0,0
+ 0,nullptr
);
}
@@ -308,7 +308,7 @@ public:
nozoom,
0,
0, 0, 0,
- 0, 0,
+ nullptr, nullptr,
primask,whichtable
);
diff --git a/src/mame/video/k053936.cpp b/src/mame/video/k053936.cpp
index 4852e8c1a34..b7ce3aa158f 100644
--- a/src/mame/video/k053936.cpp
+++ b/src/mame/video/k053936.cpp
@@ -232,8 +232,8 @@ const device_type K053936 = &device_creator<k053936_device>;
k053936_device::k053936_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K053936, "K053936 Video Controller", tag, owner, clock, "k053936", __FILE__),
- m_ctrl(NULL),
- m_linectrl(NULL),
+ m_ctrl(nullptr),
+ m_linectrl(nullptr),
m_wrap(0),
m_xoff(0),
m_yoff(0)
diff --git a/src/mame/video/k054156_k054157_k056832.cpp b/src/mame/video/k054156_k054157_k056832.cpp
index a7c5e7954b3..3a52d677ff7 100644
--- a/src/mame/video/k054156_k054157_k056832.cpp
+++ b/src/mame/video/k054156_k054157_k056832.cpp
@@ -187,15 +187,15 @@ k056832_device::k056832_device(const machine_config &mconfig, const char *tag, d
//*m_pixmap[K056832_PAGE_COUNT],
//m_regs[0x20],
//m_regsb[4],
- m_rombase(NULL),
+ m_rombase(nullptr),
m_num_gfx_banks(0),
m_cur_gfx_banks(0),
- m_gfx_memory_region(NULL),
+ m_gfx_memory_region(nullptr),
m_gfx_num(0),
m_bpp(-1),
m_big(0),
m_djmain_hack(0),
- m_k055555_tag(NULL),
+ m_k055555_tag(nullptr),
//m_layer_assoc_with_page[K056832_PAGE_COUNT],
//m_layer_offs[8][2],
//m_lsram_page[8][2],
@@ -219,7 +219,7 @@ k056832_device::k056832_device(const machine_config &mconfig, const char *tag, d
m_use_ext_linescroll(0),
m_uses_tile_banks(0),
m_cur_tile_bank(0),
- m_k055555(NULL),
+ m_k055555(nullptr),
m_gfxdecode(*this),
m_palette(*this)
{
@@ -1452,7 +1452,7 @@ printf("\nend\n");
}
*/
last_active = m_active_layer;
- new_colorbase = (m_k055555 != NULL) ? m_k055555->K055555_get_palette_index(layer) : 0;
+ new_colorbase = (m_k055555 != nullptr) ? m_k055555->K055555_get_palette_index(layer) : 0;
for (r = 0; r < rowspan; r++)
{
@@ -1557,7 +1557,7 @@ printf("\nend\n");
m_active_layer = layer;
}
- if (m_k055555 != NULL) // are we using k055555 palette?
+ if (m_k055555 != nullptr) // are we using k055555 palette?
{
if (m_last_colorbase[pageIndex] != new_colorbase)
{
@@ -1757,7 +1757,7 @@ void k056832_device::tilemap_draw_dj( screen_device &screen, bitmap_rgb32 &bitma
sdat_adv = -sdat_adv;
last_active = m_active_layer;
- new_colorbase = (m_k055555 != NULL) ? m_k055555->K055555_get_palette_index(layer) : 0;
+ new_colorbase = (m_k055555 != nullptr) ? m_k055555->K055555_get_palette_index(layer) : 0;
for (r = 0; r <= rowspan; r++)
{
@@ -1838,7 +1838,7 @@ void k056832_device::tilemap_draw_dj( screen_device &screen, bitmap_rgb32 &bitma
m_active_layer = layer;
}
- if (m_k055555 != NULL) // are we using k055555 palette?
+ if (m_k055555 != nullptr) // are we using k055555 palette?
{
if (m_last_colorbase[pageIndex] != new_colorbase)
{
@@ -2102,7 +2102,7 @@ void k056832_device::create_gfx(const char *gfx_memory_region, int bpp, int big)
/* find first empty slot to decode gfx */
for (gfx_index = 0; gfx_index < MAX_GFX_ELEMENTS; gfx_index++)
{
- if (m_gfxdecode->gfx(gfx_index) == 0) break;
+ if (m_gfxdecode->gfx(gfx_index) == nullptr) break;
}
assert(gfx_index != MAX_GFX_ELEMENTS);
@@ -2371,7 +2371,7 @@ void k056832_device::m_tilemap_draw(screen_device &screen, bitmap_rgb32 &bitmap,
if (flipy) sdat_adv = -sdat_adv;
last_active = m_active_layer;
- new_colorbase = (m_k055555 != NULL) ? m_k055555->K055555_get_palette_index(layer) : 0;
+ new_colorbase = (m_k055555 != nullptr) ? m_k055555->K055555_get_palette_index(layer) : 0;
for (r=0; r<rowspan; r++)
{
@@ -2469,7 +2469,7 @@ void k056832_device::m_tilemap_draw(screen_device &screen, bitmap_rgb32 &bitmap,
m_active_layer = layer;
}
- if (m_k055555 != NULL)
+ if (m_k055555 != nullptr)
{
if (m_last_colorbase[pageIndex] != new_colorbase)
{
diff --git a/src/mame/video/k054156_k054157_k056832.h b/src/mame/video/k054156_k054157_k056832.h
index 71e1008002a..918b5314109 100644
--- a/src/mame/video/k054156_k054157_k056832.h
+++ b/src/mame/video/k054156_k054157_k056832.h
@@ -41,7 +41,7 @@ public:
k056832_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~k056832_device()
{
- m_k055555 = 0;
+ m_k055555 = nullptr;
}
static void set_k056832_callback(device_t &device, k056832_cb_delegate callback) { downcast<k056832_device &>(device).m_k056832_cb = callback; }
diff --git a/src/mame/video/k054338.cpp b/src/mame/video/k054338.cpp
index 5a389a4c01a..928f331991f 100644
--- a/src/mame/video/k054338.cpp
+++ b/src/mame/video/k054338.cpp
@@ -24,7 +24,7 @@ k054338_device::k054338_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, K054338, "K054338 Mixer", tag, owner, clock, "k054338", __FILE__),
device_video_interface(mconfig, *this),
m_alpha_inv(0),
- m_k055555_tag(NULL)
+ m_k055555_tag(nullptr)
{
memset(&m_regs, 0, sizeof(m_regs));
memset(&m_shd_rgb, 0, sizeof(m_shd_rgb));
@@ -36,7 +36,7 @@ k054338_device::k054338_device(const machine_config &mconfig, const char *tag, d
void k054338_device::device_start()
{
- m_k055555 = m_k055555_tag ? machine().device<k055555_device>(m_k055555_tag) : NULL;
+ m_k055555 = m_k055555_tag ? machine().device<k055555_device>(m_k055555_tag) : nullptr;
save_item(NAME(m_regs));
save_item(NAME(m_shd_rgb));
diff --git a/src/mame/video/kan_pand.cpp b/src/mame/video/kan_pand.cpp
index 5a4f94236f8..ad8777a2ff7 100644
--- a/src/mame/video/kan_pand.cpp
+++ b/src/mame/video/kan_pand.cpp
@@ -226,7 +226,7 @@ void kaneko_pandora_device::draw( bitmap_ind16 &bitmap, const rectangle &cliprec
void kaneko_pandora_device::eof( )
{
- assert(m_spriteram != NULL);
+ assert(m_spriteram != nullptr);
// the games can disable the clearing of the sprite bitmap, to leave sprite trails
if (m_clear_bitmap)
diff --git a/src/mame/video/klax.cpp b/src/mame/video/klax.cpp
index d9369f7e507..bcc0a9b49ff 100644
--- a/src/mame/video/klax.cpp
+++ b/src/mame/video/klax.cpp
@@ -103,7 +103,7 @@ UINT32 klax_state::screen_update_klax(screen_device &screen, bitmap_ind16 &bitma
// draw and merge the MO
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/konamigx.cpp b/src/mame/video/konamigx.cpp
index f87156e3b01..971972ba435 100644
--- a/src/mame/video/konamigx.cpp
+++ b/src/mame/video/konamigx.cpp
@@ -864,7 +864,7 @@ void konamigx_state::konamigx_mixer_draw(screen_device &screen, bitmap_rgb32 &bi
m_gx_objzbuf, m_gx_shdzbuf, code, m_gx_spriteram, offs,
color, alpha, drawmode, zcode, pri,
/* non-gx only */
- 0,0,NULL,NULL,0
+ 0,0,nullptr,nullptr,0
);
}
/* the rest are tilemaps of various kinda */
@@ -1411,7 +1411,7 @@ UINT32 konamigx_state::screen_update_konamigx(screen_device &screen, bitmap_rgb3
if (m_gx_specialrozenable==3)
{
- konamigx_mixer(screen, bitmap, cliprect, m_gx_psac_tilemap, GXSUB_8BPP,0,0, 0, 0, m_gx_rushingheroes_hack);
+ konamigx_mixer(screen, bitmap, cliprect, m_gx_psac_tilemap, GXSUB_8BPP,nullptr,0, 0, nullptr, m_gx_rushingheroes_hack);
}
// hack, draw the roz tilemap if W is held
// todo: fix so that it works with the mixer without crashing(!)
@@ -1426,11 +1426,11 @@ UINT32 konamigx_state::screen_update_konamigx(screen_device &screen, bitmap_rgb3
else K053936_0_zoom_draw(screen, *m_type3_roz_temp_bitmap, temprect,m_gx_psac_tilemap, 0,0,0); // soccerss playfield
- konamigx_mixer(screen, bitmap, cliprect, 0, 0, 0, 0, 0, m_type3_roz_temp_bitmap, m_gx_rushingheroes_hack);
+ konamigx_mixer(screen, bitmap, cliprect, nullptr, 0, nullptr, 0, 0, m_type3_roz_temp_bitmap, m_gx_rushingheroes_hack);
}
else
{
- konamigx_mixer(screen, bitmap, cliprect, 0, 0, 0, 0, 0, 0, m_gx_rushingheroes_hack);
+ konamigx_mixer(screen, bitmap, cliprect, nullptr, 0, nullptr, 0, 0, nullptr, m_gx_rushingheroes_hack);
}
diff --git a/src/mame/video/legionna.cpp b/src/mame/video/legionna.cpp
index 5fccd7a222e..69b591ce001 100644
--- a/src/mame/video/legionna.cpp
+++ b/src/mame/video/legionna.cpp
@@ -33,7 +33,7 @@ WRITE16_MEMBER(legionna_state::tile_scroll_w)
COMBINE_DATA(scrollvals + offset);
data = scrollvals[offset];
- tilemap_t *tm = 0;
+ tilemap_t *tm = nullptr;
switch(offset/2) {
case 0: tm = m_background_layer; break;
case 1: tm = m_midground_layer; break;
diff --git a/src/mame/video/liberatr.cpp b/src/mame/video/liberatr.cpp
index af7b50584de..74c349924bf 100644
--- a/src/mame/video/liberatr.cpp
+++ b/src/mame/video/liberatr.cpp
@@ -80,7 +80,7 @@ void liberatr_state::init_planet(planet &liberatr_planet, UINT8 *planet_rom)
UINT8 *buffer;
planet_frame frame;
- planet_frame_line *line = 0;
+ planet_frame_line *line = nullptr;
UINT16 total_segment_count = 0;
diff --git a/src/mame/video/m10.cpp b/src/mame/video/m10.cpp
index f5dd92ed91e..1d5b029c3c6 100644
--- a/src/mame/video/m10.cpp
+++ b/src/mame/video/m10.cpp
@@ -30,7 +30,7 @@ static const gfx_layout backlayout =
{ 0, 1, 2, 3, 4, 5, 6, 7 },
EXTENDED_YOFFS,
32*8*8, /* every char takes 8 consecutive bytes */
- NULL, extyoffs
+ nullptr, extyoffs
};
static const gfx_layout charlayout =
diff --git a/src/mame/video/madalien.cpp b/src/mame/video/madalien.cpp
index 7d1822ad5b7..cd9447a6478 100644
--- a/src/mame/video/madalien.cpp
+++ b/src/mame/video/madalien.cpp
@@ -361,7 +361,7 @@ static const gfx_layout tilelayout =
static GFXDECODE_START( madalien )
- GFXDECODE_ENTRY( NULL, 0, charlayout, 0x20, 2 ) /* foreground characters, stored in RAM */
+ GFXDECODE_ENTRY( nullptr, 0, charlayout, 0x20, 2 ) /* foreground characters, stored in RAM */
GFXDECODE_ENTRY( "gfx1", 0, tilelayout, 0, 4 )
GFXDECODE_ENTRY( "gfx2", 0, headlightlayout, 0, 1 )
GFXDECODE_END
diff --git a/src/mame/video/magmax.cpp b/src/mame/video/magmax.cpp
index 1683199b40d..f6279a137f6 100644
--- a/src/mame/video/magmax.cpp
+++ b/src/mame/video/magmax.cpp
@@ -163,10 +163,10 @@ UINT32 magmax_state::screen_update_magmax(screen_device &screen, bitmap_ind16 &b
UINT16 line_data_flip_x[256];
for (i=0; i<256; i++)
line_data_flip_x[i] = line_data[255-i];
- draw_scanline16(bitmap, 0, 255-v, 256, line_data_flip_x, NULL);
+ draw_scanline16(bitmap, 0, 255-v, 256, line_data_flip_x, nullptr);
}
else
- draw_scanline16(bitmap, 0, v, 256, line_data, NULL);
+ draw_scanline16(bitmap, 0, v, 256, line_data, nullptr);
}
}
diff --git a/src/mame/video/matmania.cpp b/src/mame/video/matmania.cpp
index 848a8e93d9c..3a994d02079 100644
--- a/src/mame/video/matmania.cpp
+++ b/src/mame/video/matmania.cpp
@@ -162,9 +162,9 @@ UINT32 matmania_state::screen_update_matmania(screen_device &screen, bitmap_ind1
{
int scrolly = -*m_scroll;
if (m_pageselect[0] & 0x01) // maniach sets 0x20 sometimes, which must have a different meaning
- copyscrollbitmap(bitmap, *m_tmpbitmap2, 0, 0, 1, &scrolly, cliprect);
+ copyscrollbitmap(bitmap, *m_tmpbitmap2, 0, nullptr, 1, &scrolly, cliprect);
else
- copyscrollbitmap(bitmap, *m_tmpbitmap, 0, 0, 1, &scrolly, cliprect);
+ copyscrollbitmap(bitmap, *m_tmpbitmap, 0, nullptr, 1, &scrolly, cliprect);
}
@@ -235,9 +235,9 @@ UINT32 matmania_state::screen_update_maniach(screen_device &screen, bitmap_ind16
int scrolly = -*m_scroll;
if (m_pageselect[0] & 0x01) // this sets 0x20 sometimes, which must have a different meaning
- copyscrollbitmap(bitmap, *m_tmpbitmap2, 0, 0, 1, &scrolly, cliprect);
+ copyscrollbitmap(bitmap, *m_tmpbitmap2, 0, nullptr, 1, &scrolly, cliprect);
else
- copyscrollbitmap(bitmap, *m_tmpbitmap, 0, 0, 1, &scrolly, cliprect);
+ copyscrollbitmap(bitmap, *m_tmpbitmap, 0, nullptr, 1, &scrolly, cliprect);
}
diff --git a/src/mame/video/mb60553.cpp b/src/mame/video/mb60553.cpp
index c6569ddba63..e3fd96d0d28 100644
--- a/src/mame/video/mb60553.cpp
+++ b/src/mame/video/mb60553.cpp
@@ -16,9 +16,9 @@ const device_type MB60553 = &device_creator<mb60553_zooming_tilemap_device>;
mb60553_zooming_tilemap_device::mb60553_zooming_tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MB60553, "MB60553 Zooming Tilemap", tag, owner, clock, "mb60553", __FILE__),
- m_vram(NULL),
+ m_vram(nullptr),
m_pal_base(0),
- m_lineram(NULL),
+ m_lineram(nullptr),
m_gfx_region(0),
m_gfxdecode(*this)
{
diff --git a/src/mame/video/mbee.cpp b/src/mame/video/mbee.cpp
index ce55969f6a3..fa9f884ae80 100644
--- a/src/mame/video/mbee.cpp
+++ b/src/mame/video/mbee.cpp
@@ -292,8 +292,8 @@ VIDEO_START_MEMBER( mbee_state, mono )
{
m_p_videoram = memregion("videoram")->base();
m_p_gfxram = memregion("gfx")->base()+0x1000;
- m_p_colorram = 0;
- m_p_attribram = 0;
+ m_p_colorram = nullptr;
+ m_p_attribram = nullptr;
m_is_premium = 0;
}
@@ -302,7 +302,7 @@ VIDEO_START_MEMBER( mbee_state, standard )
m_p_videoram = memregion("videoram")->base();
m_p_gfxram = memregion("gfx")->base()+0x1000;
m_p_colorram = memregion("colorram")->base();
- m_p_attribram = 0;
+ m_p_attribram = nullptr;
m_is_premium = 0;
}
diff --git a/src/mame/video/megasys1.cpp b/src/mame/video/megasys1.cpp
index ef6beea9144..ae519a2ef90 100644
--- a/src/mame/video/megasys1.cpp
+++ b/src/mame/video/megasys1.cpp
@@ -732,7 +732,7 @@ static const struct priority priorities[] =
{ 0x14032,0x04132,0x14032,0x04132,0xfffff,0xfffff,0xfffff,0xfffff,
0xfffff,0xfffff,0x01324,0xfffff,0xfffff,0xfffff,0xfffff,0xfffff }
},
- { 0 } // end of list: use the prom's data
+ { nullptr } // end of list: use the prom's data
};
diff --git a/src/mame/video/metro.cpp b/src/mame/video/metro.cpp
index 17622b68686..12127cce1a3 100644
--- a/src/mame/video/metro.cpp
+++ b/src/mame/video/metro.cpp
@@ -641,7 +641,7 @@ void metro_state::draw_layers( screen_device &screen, bitmap_ind16 &bitmap, cons
if (BIT(layers_ctrl, layer)) // for debug
{
- UINT16 *tilemapram = 0;
+ UINT16 *tilemapram = nullptr;
switch (layer)
{
diff --git a/src/mame/video/midyunit.cpp b/src/mame/video/midyunit.cpp
index cb66b1b3092..5190df267ca 100644
--- a/src/mame/video/midyunit.cpp
+++ b/src/mame/video/midyunit.cpp
@@ -563,7 +563,7 @@ TMS340X0_SCANLINE_IND16_CB_MEMBER(midyunit_state::scanline_update)
dest[x] = m_pen_map[src[coladdr++ & 0x1ff]];
/* handle autoerase on the previous line */
- autoerase_line(NULL, params->rowaddr - 1);
+ autoerase_line(nullptr, params->rowaddr - 1);
/* if this is the last update of the screen, set a timer to clear out the final line */
/* (since we update one behind) */
diff --git a/src/mame/video/mitchell.cpp b/src/mame/video/mitchell.cpp
index f4c4007bf50..0498f1bda1f 100644
--- a/src/mame/video/mitchell.cpp
+++ b/src/mame/video/mitchell.cpp
@@ -157,7 +157,7 @@ logerror("PC %04x: pang_gfxctrl_w %02x\n",space.device().safe_pc(),data);
/* bit 3 is unknown (used, e.g. marukin pulses it on the title screen) */
/* bit 4 selects OKI M6295 bank */
- if (m_oki != NULL)
+ if (m_oki != nullptr)
m_oki->set_bank_base((data & 0x10) ? 0x40000 : 0x00000);
/* bit 5 is palette RAM bank selector (doesn't apply to mgakuen) */
diff --git a/src/mame/video/model2.cpp b/src/mame/video/model2.cpp
index 4975a26fbbf..93d41b28552 100644
--- a/src/mame/video/model2.cpp
+++ b/src/mame/video/model2.cpp
@@ -451,9 +451,9 @@ static void model2_3d_process_quad( raster_state *raster, UINT32 attr )
/* get our list read to add the triangles */
ztri = raster->tri_sorted_list[object.z];
- if ( ztri != NULL )
+ if ( ztri != nullptr )
{
- while( ztri->next != NULL )
+ while( ztri->next != nullptr )
ztri = (triangle *)ztri->next;
}
@@ -492,9 +492,9 @@ static void model2_3d_process_quad( raster_state *raster, UINT32 attr )
memcpy( &tri->v[2], &verts[i], sizeof( poly_vertex ) );
/* add to our sorted list */
- tri->next = NULL;
+ tri->next = nullptr;
- if ( ztri == NULL )
+ if ( ztri == nullptr )
{
raster->tri_sorted_list[object.z] = tri;
}
@@ -688,9 +688,9 @@ static void model2_3d_process_triangle( raster_state *raster, UINT32 attr )
/* get our list read to add the triangles */
ztri = raster->tri_sorted_list[object.z];
- if ( ztri != NULL )
+ if ( ztri != nullptr )
{
- while( ztri->next != NULL )
+ while( ztri->next != nullptr )
ztri = (triangle *)ztri->next;
}
@@ -729,9 +729,9 @@ static void model2_3d_process_triangle( raster_state *raster, UINT32 attr )
memcpy( &tri->v[2], &verts[i], sizeof( poly_vertex ) );
/* add to our sorted list */
- tri->next = NULL;
+ tri->next = nullptr;
- if ( ztri == NULL )
+ if ( ztri == nullptr )
{
raster->tri_sorted_list[object.z] = tri;
}
@@ -953,13 +953,13 @@ void model2_state::model2_3d_frame_end( bitmap_rgb32 &bitmap, const rectangle &c
for( z = raster->max_z; z >= raster->min_z; z-- )
{
/* see if we have items at this z level */
- if ( raster->tri_sorted_list[z] != NULL )
+ if ( raster->tri_sorted_list[z] != nullptr )
{
/* get a pointer to the first triangle */
triangle *tri = raster->tri_sorted_list[z];
/* and loop clipping and rendering each triangle */
- while( tri != NULL )
+ while( tri != nullptr )
{
/* project and render */
model2_3d_project( tri );
@@ -2377,7 +2377,7 @@ static UINT32 * geo_end( geo_state *geo, UINT32 opcode, UINT32 *input )
model2_3d_push( raster, 0xFF000000 );
/* signal end by returning NULL */
- return NULL;
+ return nullptr;
}
/* Command 10: Dummy */
@@ -2558,7 +2558,7 @@ static void geo_parse( model2_state *state )
UINT32 *input = &state->m_bufferram[address];
UINT32 opcode;
- while( input != NULL && (input - state->m_bufferram) < 0x20000 )
+ while( input != nullptr && (input - state->m_bufferram) < 0x20000 )
{
/* read in the opcode */
opcode = *input++;
diff --git a/src/mame/video/model3.cpp b/src/mame/video/model3.cpp
index 33ed150f227..4cea4a5a2e7 100644
--- a/src/mame/video/model3.cpp
+++ b/src/mame/video/model3.cpp
@@ -548,7 +548,7 @@ void model3_state::invalidate_texture(int page, int texx, int texy, int texwidth
for (int y = 0; y < htiles; y++)
for (int x = 0; x < wtiles; x++)
- while (m_texcache[page][texy + y][texx + x] != NULL)
+ while (m_texcache[page][texy + y][texx + x] != nullptr)
{
cached_texture *freeme = m_texcache[page][texy + y][texx + x];
m_texcache[page][texy + y][texx + x] = freeme->next;
@@ -565,7 +565,7 @@ cached_texture *model3_state::get_texture(int page, int texx, int texy, int texw
int x, y;
/* if we have one already, validate it */
- for (tex = m_texcache[page][texy][texx]; tex != NULL; tex = tex->next)
+ for (tex = m_texcache[page][texy][texx]; tex != nullptr; tex = tex->next)
if (tex->width == texwidth && tex->height == texheight && tex->format == format)
return tex;
@@ -1446,7 +1446,7 @@ m3_triangle *model3_state::push_triangle(bool alpha)
if (m_tri_buffer_ptr >= TRI_BUFFER_SIZE)
{
- return NULL;
+ return nullptr;
//fatalerror("push_triangle: tri buffer max exceeded");
}
@@ -1459,7 +1459,7 @@ m3_triangle *model3_state::push_triangle(bool alpha)
if (m_tri_alpha_buffer_ptr >= TRI_ALPHA_BUFFER_SIZE)
{
- return NULL;
+ return nullptr;
//fatalerror("push_triangle: tri alpha buffer max exceeded");
}
@@ -1712,7 +1712,7 @@ void model3_state::draw_model(UINT32 addr)
}
else
{
- texture = NULL;
+ texture = nullptr;
}
for (i=2; i < num_vertices; i++)
diff --git a/src/mame/video/mystston.cpp b/src/mame/video/mystston.cpp
index ada64ddae6c..8a72fc1f416 100644
--- a/src/mame/video/mystston.cpp
+++ b/src/mame/video/mystston.cpp
@@ -81,7 +81,7 @@ void mystston_state::set_palette()
compute_resistor_weights(0, 255, -1.0,
3, resistances_rg, weights_rg, 0, 4700,
2, resistances_b, weights_b, 0, 4700,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
for (i = 0; i < 0x40; i++)
{
diff --git a/src/mame/video/mystwarr.cpp b/src/mame/video/mystwarr.cpp
index b3873916399..fee3daa0801 100644
--- a/src/mame/video/mystwarr.cpp
+++ b/src/mame/video/mystwarr.cpp
@@ -281,7 +281,7 @@ UINT32 mystwarr_state::screen_update_mystwarr(screen_device &screen, bitmap_rgb3
m_sprite_colorbase = m_k055555->K055555_get_palette_index(4)<<5;
- konamigx_mixer(screen, bitmap, cliprect, 0, 0, 0, 0, blendmode, 0, 0);
+ konamigx_mixer(screen, bitmap, cliprect, nullptr, 0, nullptr, 0, blendmode, nullptr, 0);
return 0;
}
@@ -298,7 +298,7 @@ UINT32 mystwarr_state::screen_update_metamrph(screen_device &screen, bitmap_rgb3
m_sprite_colorbase = m_k055555->K055555_get_palette_index(4)<<4;
- konamigx_mixer(screen, bitmap, cliprect, 0, GXSUB_K053250 | GXSUB_4BPP, 0, 0, 0, 0, 0);
+ konamigx_mixer(screen, bitmap, cliprect, nullptr, GXSUB_K053250 | GXSUB_4BPP, nullptr, 0, 0, nullptr, 0);
return 0;
}
@@ -321,7 +321,7 @@ UINT32 mystwarr_state::screen_update_martchmp(screen_device &screen, bitmap_rgb3
// not quite right
blendmode = (m_oinprion==0xef && m_k054338->register_r(K338_REG_PBLEND)) ? ((1<<16|GXMIX_BLEND_FORCE)<<2) : 0;
- konamigx_mixer(screen, bitmap, cliprect, 0, 0, 0, 0, blendmode, 0, 0);
+ konamigx_mixer(screen, bitmap, cliprect, nullptr, 0, nullptr, 0, blendmode, nullptr, 0);
return 0;
}
@@ -482,6 +482,6 @@ UINT32 mystwarr_state::screen_update_dadandrn(screen_device &screen, bitmap_rgb3
popmessage("K053936: PSAC colorbase changed");
}
- konamigx_mixer(screen, bitmap, cliprect, (m_roz_enable) ? m_ult_936_tilemap : 0, rozmode, 0, 0, 0, 0, 0);
+ konamigx_mixer(screen, bitmap, cliprect, (m_roz_enable) ? m_ult_936_tilemap : nullptr, rozmode, nullptr, 0, 0, nullptr, 0);
return 0;
}
diff --git a/src/mame/video/n64.cpp b/src/mame/video/n64.cpp
index 786f09f2f24..bba19f6aa56 100644
--- a/src/mame/video/n64.cpp
+++ b/src/mame/video/n64.cpp
@@ -2051,7 +2051,7 @@ void n64_rdp::draw_triangle(bool shade, bool texture, bool zbuffer, bool rect)
}
bool new_object = true;
- rdp_poly_state* object = NULL;
+ rdp_poly_state* object = nullptr;
bool valid = false;
INT32* minx = flip ? &minxhx : &minxmx;
@@ -3129,7 +3129,7 @@ n64_rdp::n64_rdp(n64_state &state) : poly_manager<UINT32, rdp_poly_state, 8, 320
ignore = false;
dolog = false;
m_aux_buf_ptr = 0;
- m_aux_buf = NULL;
+ m_aux_buf = nullptr;
m_pipe_clean = true;
m_pending_mode_block = false;
@@ -3145,9 +3145,9 @@ n64_rdp::n64_rdp(n64_state &state) : poly_manager<UINT32, rdp_poly_state, 8, 320
m_one.set(0xff, 0xff, 0xff, 0xff);
m_zero.set(0, 0, 0, 0);
- m_tmem = NULL;
+ m_tmem = nullptr;
- m_machine = NULL;
+ m_machine = nullptr;
//memset(m_hidden_bits, 3, 8388608);
diff --git a/src/mame/video/n64.h b/src/mame/video/n64.h
index 8c5a5e9f753..8f9bb174633 100644
--- a/src/mame/video/n64.h
+++ b/src/mame/video/n64.h
@@ -135,7 +135,7 @@ class n64_rdp : public poly_manager<UINT32, rdp_poly_state, 8, 32000>
public:
n64_rdp(n64_state &state);
- running_machine &machine() const { assert(m_machine != NULL); return *m_machine; }
+ running_machine &machine() const { assert(m_machine != nullptr); return *m_machine; }
void init_internal_state()
{
diff --git a/src/mame/video/namcos22.cpp b/src/mame/video/namcos22.cpp
index a5ee8803dae..aa59865c2aa 100644
--- a/src/mame/video/namcos22.cpp
+++ b/src/mame/video/namcos22.cpp
@@ -52,7 +52,7 @@ namcos22_renderer::namcos22_renderer(namcos22_state &state)
void namcos22_renderer::reset()
{
memset(&m_scenenode_root, 0, sizeof(m_scenenode_root));
- m_scenenode_cur = NULL;
+ m_scenenode_cur = nullptr;
m_clipx = 320;
m_clipy = 240;
@@ -649,7 +649,7 @@ struct namcos22_scenenode *namcos22_renderer::alloc_scenenode(running_machine &m
struct namcos22_scenenode *namcos22_renderer::new_scenenode(running_machine &machine, UINT32 zsort, namcos22_scenenode_type type)
{
struct namcos22_scenenode *node = &m_scenenode_root;
- struct namcos22_scenenode *prev = NULL;
+ struct namcos22_scenenode *prev = nullptr;
int hash = 0;
for (int i = 0; i < 24; i += NAMCOS22_RADIX_BITS)
@@ -728,7 +728,7 @@ void namcos22_renderer::render_scene(screen_device &screen, bitmap_rgb32 &bitmap
for (int i = NAMCOS22_RADIX_BUCKETS - 1; i >= 0; i--)
{
render_scene_nodes(screen, bitmap, node->data.nonleaf.next[i]);
- node->data.nonleaf.next[i] = NULL;
+ node->data.nonleaf.next[i] = nullptr;
}
m_clipx = 320;
@@ -2470,7 +2470,7 @@ void namcos22_state::init_tables()
void namcos22_state::video_start()
{
- m_is_ss22 = (m_iomcu == NULL);
+ m_is_ss22 = (m_iomcu == nullptr);
init_tables();
m_mix_bitmap = auto_bitmap_ind16_alloc(machine(), 640, 480);
diff --git a/src/mame/video/naughtyb.cpp b/src/mame/video/naughtyb.cpp
index e1114c84fe0..dba95b73a00 100644
--- a/src/mame/video/naughtyb.cpp
+++ b/src/mame/video/naughtyb.cpp
@@ -69,7 +69,7 @@ PALETTE_INIT_MEMBER(naughtyb_state, naughtyb)
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 (int i = 0;i < palette.entries(); i++)
{
@@ -246,7 +246,7 @@ UINT32 naughtyb_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
copybitmap(bitmap,m_tmpbitmap,0,0,-30*8,0,rightvisiblearea);
scrollx = ( m_cocktail ) ? *m_scrollreg - 239 : -*m_scrollreg + 16;
- copyscrollbitmap(bitmap,m_tmpbitmap,1,&scrollx,0,0,scrollvisiblearea);
+ copyscrollbitmap(bitmap,m_tmpbitmap,1,&scrollx,0,nullptr,scrollvisiblearea);
}
return 0;
}
diff --git a/src/mame/video/nbmj8891.cpp b/src/mame/video/nbmj8891.cpp
index 16c4643ba2a..56d40311475 100644
--- a/src/mame/video/nbmj8891.cpp
+++ b/src/mame/video/nbmj8891.cpp
@@ -587,11 +587,11 @@ UINT32 nbmj8891_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
if (m_gfxdraw_mode)
{
- copyscrollbitmap (bitmap, m_tmpbitmap0, 0, 0, 0, 0, cliprect);
- copyscrollbitmap_trans(bitmap, m_tmpbitmap1, 0, 0, 1, &scrolly, cliprect, 0xff);
+ copyscrollbitmap (bitmap, m_tmpbitmap0, 0, nullptr, 0, nullptr, cliprect);
+ copyscrollbitmap_trans(bitmap, m_tmpbitmap1, 0, nullptr, 1, &scrolly, cliprect, 0xff);
}
else
- copyscrollbitmap(bitmap, m_tmpbitmap0, 0, 0, 1, &scrolly, cliprect);
+ copyscrollbitmap(bitmap, m_tmpbitmap0, 0, nullptr, 1, &scrolly, cliprect);
}
else
bitmap.fill(0xff);
diff --git a/src/mame/video/nbmj8900.cpp b/src/mame/video/nbmj8900.cpp
index 1cfb31dee91..503b209249c 100644
--- a/src/mame/video/nbmj8900.cpp
+++ b/src/mame/video/nbmj8900.cpp
@@ -447,12 +447,12 @@ UINT32 nbmj8900_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
if (m_gfxdraw_mode)
{
- copyscrollbitmap(bitmap, m_tmpbitmap0, 0, 0, 0, 0, cliprect);
- copyscrollbitmap_trans(bitmap, m_tmpbitmap1, 0, 0, 1, &scrolly, cliprect, 0xff);
+ copyscrollbitmap(bitmap, m_tmpbitmap0, 0, nullptr, 0, nullptr, cliprect);
+ copyscrollbitmap_trans(bitmap, m_tmpbitmap1, 0, nullptr, 1, &scrolly, cliprect, 0xff);
}
else
{
- copyscrollbitmap(bitmap, m_tmpbitmap0, 0, 0, 1, &scrolly, cliprect);
+ copyscrollbitmap(bitmap, m_tmpbitmap0, 0, nullptr, 1, &scrolly, cliprect);
}
}
else
diff --git a/src/mame/video/neogeo.cpp b/src/mame/video/neogeo.cpp
index 013c53eae06..752853d3ab4 100644
--- a/src/mame/video/neogeo.cpp
+++ b/src/mame/video/neogeo.cpp
@@ -30,26 +30,26 @@ void neogeo_state::create_rgb_lookups()
double weights_normal[5];
double scaler = compute_resistor_weights(0, 255, -1,
5, resistances, weights_normal, 0, 0,
- 0, NULL, NULL, 0, 0,
- 0, NULL, NULL, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
double weights_dark[5];
compute_resistor_weights(0, 255, scaler,
5, resistances, weights_dark, 8200, 0,
- 0, NULL, NULL, 0, 0,
- 0, NULL, NULL, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
double weights_shadow[5];
compute_resistor_weights(0, 255, scaler,
5, resistances, weights_shadow, 150, 0,
- 0, NULL, NULL, 0, 0,
- 0, NULL, NULL, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
double weights_dark_shadow[5];
compute_resistor_weights(0, 255, scaler,
5, resistances, weights_dark_shadow, 1.0 / ((1.0 / 8200) + (1.0 / 150)), 0,
- 0, NULL, NULL, 0, 0,
- 0, NULL, NULL, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
for (int i = 0; i < 32; i++)
{
diff --git a/src/mame/video/neogeo_spr.cpp b/src/mame/video/neogeo_spr.cpp
index b0c0db6fbd8..8a8089e8f2e 100644
--- a/src/mame/video/neogeo_spr.cpp
+++ b/src/mame/video/neogeo_spr.cpp
@@ -705,7 +705,7 @@ const device_type NEOGEO_SPRITE_OPTIMZIED = &device_creator<neosprite_optimized_
neosprite_optimized_device::neosprite_optimized_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: neosprite_base_device(mconfig, tag, owner, clock, NEOGEO_SPRITE_OPTIMZIED),
- m_spritegfx8(0)
+ m_spritegfx8(nullptr)
{
}
diff --git a/src/mame/video/nick.cpp b/src/mame/video/nick.cpp
index afb16ff815b..0da67848e5e 100644
--- a/src/mame/video/nick.cpp
+++ b/src/mame/video/nick.cpp
@@ -206,7 +206,7 @@ void nick_device::device_timer(emu_timer &timer, device_timer_id id, int param,
const address_space_config *nick_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == 0) ? &m_space_config : NULL;
+ return (spacenum == 0) ? &m_space_config : nullptr;
}
@@ -300,7 +300,7 @@ void nick_device::initialize_palette()
compute_resistor_weights(0, 0xff, -1.0,
3, resistances_rg, color_weights_rg, 0, 0,
2, resistances_b, color_weights_b, 0, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
for (int i = 0; i < 256; i++)
{
diff --git a/src/mame/video/nmk16.cpp b/src/mame/video/nmk16.cpp
index f412b1f3abe..4560985cc6a 100644
--- a/src/mame/video/nmk16.cpp
+++ b/src/mame/video/nmk16.cpp
@@ -112,7 +112,7 @@ void nmk16_state::nmk16_video_init()
m_spriteram_old2 = auto_alloc_array_clear(machine(), UINT16, 0x1000/2);
m_videoshift = 0; /* 256x224 screen, no shift */
- m_background_bitmap = NULL;
+ m_background_bitmap = nullptr;
m_simple_scroll = 1;
}
diff --git a/src/mame/video/offtwall.cpp b/src/mame/video/offtwall.cpp
index d5f49ba387b..4bba555e584 100644
--- a/src/mame/video/offtwall.cpp
+++ b/src/mame/video/offtwall.cpp
@@ -91,7 +91,7 @@ UINT32 offtwall_state::screen_update_offtwall(screen_device &screen, bitmap_ind1
// draw and merge the MO
bitmap_ind16 &mobitmap = m_vad->mob()->bitmap();
- for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/pacman.cpp b/src/mame/video/pacman.cpp
index 1ddf2f42427..0020ac46eb4 100644
--- a/src/mame/video/pacman.cpp
+++ b/src/mame/video/pacman.cpp
@@ -209,7 +209,7 @@ UINT32 pacman_state::screen_update_pacman(screen_device &screen, bitmap_ind16 &b
else
m_bg_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE,0);
- if( m_spriteram != NULL )
+ if( m_spriteram != nullptr )
{
UINT8 *spriteram = m_spriteram;
UINT8 *spriteram_2 = m_spriteram2;
diff --git a/src/mame/video/pc080sn.cpp b/src/mame/video/pc080sn.cpp
index 73c74b68a3d..449cd97351a 100644
--- a/src/mame/video/pc080sn.cpp
+++ b/src/mame/video/pc080sn.cpp
@@ -52,7 +52,7 @@ const device_type PC080SN = &device_creator<pc080sn_device>;
pc080sn_device::pc080sn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, PC080SN, "Taito PC080SN", tag, owner, clock, "pc080sn", __FILE__),
- m_ram(NULL),
+ m_ram(nullptr),
m_gfxnum(0),
m_x_offset(0),
m_y_offset(0),
@@ -66,8 +66,8 @@ pc080sn_device::pc080sn_device(const machine_config &mconfig, const char *tag, d
for (int i = 0; i < 2; i++)
{
- m_bg_ram[i] = NULL;
- m_bgscroll_ram[i] = NULL;
+ m_bg_ram[i] = nullptr;
+ m_bgscroll_ram[i] = nullptr;
m_bgscrollx[i] = 0;
m_bgscrolly[i] = 0;
}
diff --git a/src/mame/video/pc090oj.cpp b/src/mame/video/pc090oj.cpp
index d9b56ff9d94..0aa609d093e 100644
--- a/src/mame/video/pc090oj.cpp
+++ b/src/mame/video/pc090oj.cpp
@@ -78,8 +78,8 @@ pc090oj_device::pc090oj_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, PC090OJ, "Taito PC090OJ", tag, owner, clock, "pc090oj", __FILE__),
m_ctrl(0),
m_sprite_ctrl(0),
- m_ram(NULL),
- m_ram_buffered(0),
+ m_ram(nullptr),
+ m_ram_buffered(nullptr),
m_gfxnum(0),
m_x_offset(0),
m_y_offset(0),
diff --git a/src/mame/video/pc_t1t.cpp b/src/mame/video/pc_t1t.cpp
index e77c5339bd0..b5931d4daba 100644
--- a/src/mame/video/pc_t1t.cpp
+++ b/src/mame/video/pc_t1t.cpp
@@ -40,8 +40,8 @@ pc_t1t_device::pc_t1t_device(const machine_config &mconfig, device_type type, co
m_status(0),
m_bank(0),
m_pc_framecnt(0),
- m_displayram(NULL),
- m_chr_gen(NULL),
+ m_displayram(nullptr),
+ m_chr_gen(nullptr),
m_chr_size(0),
m_ra_offset(0),
m_address_data_ff(0),
@@ -55,13 +55,13 @@ pc_t1t_device::pc_t1t_device(const machine_config &mconfig, device_type type, co
pcvideo_t1000_device::pcvideo_t1000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: pc_t1t_device(mconfig, PCVIDEO_T1000, "Tandy 1000 Graphics Adapter", tag, owner, clock, "tandy_1000_graphics_adapter", __FILE__),
- m_t1_displayram(NULL)
+ m_t1_displayram(nullptr)
{
}
pcvideo_pcjr_device::pcvideo_pcjr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: pc_t1t_device(mconfig, PCVIDEO_PCJR, "PC Jr Graphics Adapter", tag, owner, clock, "pcjr_graphics_adapter", __FILE__),
- m_jxkanji(NULL)
+ m_jxkanji(nullptr)
{
}
@@ -85,7 +85,7 @@ void pcvideo_pcjr_device::device_start()
if(!strncmp(machine().system().name, "ibmpcjx", 7))
m_jxkanji = machine().root_device().memregion("kanji")->base();
else
- m_jxkanji = NULL;
+ m_jxkanji = nullptr;
}
diff --git a/src/mame/video/pcw.cpp b/src/mame/video/pcw.cpp
index f4d18761636..d24c870081e 100644
--- a/src/mame/video/pcw.cpp
+++ b/src/mame/video/pcw.cpp
@@ -175,7 +175,7 @@ UINT32 pcw_state::screen_update_pcw_printer(screen_device &screen, bitmap_ind16
INT32 feed;
rectangle rect(0, PCW_PRINTER_WIDTH - 1, 0, PCW_PRINTER_HEIGHT - 1);
feed = -(m_paper_feed / 2);
- copyscrollbitmap(bitmap,*m_prn_output,0,NULL,1,&feed,rect);
+ copyscrollbitmap(bitmap,*m_prn_output,0,nullptr,1,&feed,rect);
bitmap.pix16(PCW_PRINTER_HEIGHT-1, m_printer_headpos) = 0;
bitmap.pix16(PCW_PRINTER_HEIGHT-2, m_printer_headpos) = 0;
bitmap.pix16(PCW_PRINTER_HEIGHT-3, m_printer_headpos) = 0;
diff --git a/src/mame/video/pgm.cpp b/src/mame/video/pgm.cpp
index e425a00f135..f4d923075ae 100644
--- a/src/mame/video/pgm.cpp
+++ b/src/mame/video/pgm.cpp
@@ -241,7 +241,7 @@ void pgm_state::draw_sprite_new_zoomed( int wide, int high, int xpos, int ypos,
}
else
{
- draw_sprite_line(wide, NULL, NULL, xzoom, xgrow, flip, xpos, pri, realxsize, palt, 0);
+ draw_sprite_line(wide, nullptr, nullptr, xzoom, xgrow, flip, xpos, pri, realxsize, palt, 0);
}
ycntdraw++;
@@ -263,7 +263,7 @@ void pgm_state::draw_sprite_new_zoomed( int wide, int high, int xpos, int ypos,
}
else
{
- draw_sprite_line(wide, NULL, NULL, xzoom, xgrow, flip, xpos, pri, realxsize, palt, 0);
+ draw_sprite_line(wide, nullptr, nullptr, xzoom, xgrow, flip, xpos, pri, realxsize, palt, 0);
if (!(flip & 0x02))
{
@@ -283,7 +283,7 @@ void pgm_state::draw_sprite_new_zoomed( int wide, int high, int xpos, int ypos,
else if (yzoombit == 1 && ygrow == 0)
{
/* skip this line */
- draw_sprite_line(wide, NULL, NULL, xzoom, xgrow, flip, xpos, pri, realxsize, palt, 0);
+ draw_sprite_line(wide, nullptr, nullptr, xzoom, xgrow, flip, xpos, pri, realxsize, palt, 0);
}
else /* normal line */
{
@@ -300,7 +300,7 @@ void pgm_state::draw_sprite_new_zoomed( int wide, int high, int xpos, int ypos,
}
else
{
- draw_sprite_line(wide, NULL, NULL, xzoom, xgrow, flip, xpos, pri, realxsize, palt, 0);
+ draw_sprite_line(wide, nullptr, nullptr, xzoom, xgrow, flip, xpos, pri, realxsize, palt, 0);
if (!(flip & 0x02))
{
@@ -464,7 +464,7 @@ void pgm_state::draw_sprite_new_basic( int wide, int high, int xpos, int ypos, i
}
else
{
- draw_sprite_line_basic(wide, NULL, NULL, flip, xpos, pri, realxsize, palt, 0);
+ draw_sprite_line_basic(wide, nullptr, nullptr, flip, xpos, pri, realxsize, palt, 0);
if (!(flip & 0x02))
{
diff --git a/src/mame/video/plygonet.cpp b/src/mame/video/plygonet.cpp
index ca66f22a76f..8fc07010a8e 100644
--- a/src/mame/video/plygonet.cpp
+++ b/src/mame/video/plygonet.cpp
@@ -95,7 +95,7 @@ void polygonet_state::video_start()
/* find first empty slot to decode gfx */
for (m_ttl_gfx_index = 0; m_ttl_gfx_index < MAX_GFX_ELEMENTS; m_ttl_gfx_index++)
- if (m_gfxdecode->gfx(m_ttl_gfx_index) == 0)
+ if (m_gfxdecode->gfx(m_ttl_gfx_index) == nullptr)
break;
assert(m_ttl_gfx_index != MAX_GFX_ELEMENTS);
diff --git a/src/mame/video/polepos.cpp b/src/mame/video/polepos.cpp
index ae2e5a337a0..0044de3836b 100644
--- a/src/mame/video/polepos.cpp
+++ b/src/mame/video/polepos.cpp
@@ -408,7 +408,7 @@ void polepos_state::draw_road(bitmap_ind16 &bitmap)
}
/* draw the scanline */
- draw_scanline16(bitmap, 0, y, 256, &scanline[xscroll], NULL);
+ draw_scanline16(bitmap, 0, y, 256, &scanline[xscroll], nullptr);
}
}
diff --git a/src/mame/video/policetr.cpp b/src/mame/video/policetr.cpp
index fa69085656b..ddcccad3933 100644
--- a/src/mame/video/policetr.cpp
+++ b/src/mame/video/policetr.cpp
@@ -351,7 +351,7 @@ UINT32 policetr_state::screen_update_policetr(screen_device &screen, bitmap_ind1
/* render all the scanlines from the dstbitmap to MAME's bitmap */
for (y = cliprect.min_y; y <= cliprect.max_y; y++)
- draw_scanline8(bitmap, cliprect.min_x, y, width, &m_dstbitmap[DSTBITMAP_WIDTH * y + cliprect.min_x], NULL);
+ draw_scanline8(bitmap, cliprect.min_x, y, width, &m_dstbitmap[DSTBITMAP_WIDTH * y + cliprect.min_x], nullptr);
return 0;
}
diff --git a/src/mame/video/ppu2c0x.cpp b/src/mame/video/ppu2c0x.cpp
index 2edff541ce3..17f17178d75 100644
--- a/src/mame/video/ppu2c0x.cpp
+++ b/src/mame/video/ppu2c0x.cpp
@@ -97,7 +97,7 @@ ADDRESS_MAP_END
const address_space_config *ppu2c0x_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == AS_0) ? &m_space_config : NULL;
+ return (spacenum == AS_0) ? &m_space_config : nullptr;
}
@@ -124,7 +124,7 @@ ppu2c0x_device::ppu2c0x_device(const machine_config &mconfig, device_type type,
: device_t(mconfig, type, name, tag, owner, clock, shortname, source),
device_memory_interface(mconfig, *this),
device_video_interface(mconfig, *this),
- m_space_config("videoram", ENDIANNESS_LITTLE, 8, 17, 0, NULL, *ADDRESS_MAP_NAME(ppu2c0x)),
+ m_space_config("videoram", ENDIANNESS_LITTLE, 8, 17, 0, nullptr, *ADDRESS_MAP_NAME(ppu2c0x)),
m_cpu(*this),
m_scanline(0), // reset the scanline count
m_refresh_data(0),
diff --git a/src/mame/video/punchout.cpp b/src/mame/video/punchout.cpp
index a294f9cc6ee..687ef0d8c74 100644
--- a/src/mame/video/punchout.cpp
+++ b/src/mame/video/punchout.cpp
@@ -103,7 +103,7 @@ void punchout_state::video_start()
m_spr1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(punchout_state::bs1_get_info),this), TILEMAP_SCAN_ROWS, 8,8, 16,32);
m_spr2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(punchout_state::bs2_get_info),this), TILEMAP_SCAN_ROWS, 8,8, 16,32);
- m_fg_tilemap = NULL;
+ m_fg_tilemap = nullptr;
m_spr1_tilemap->set_transparent_pen(0x07);
m_spr2_tilemap->set_transparent_pen(0x03);
diff --git a/src/mame/video/rampart.cpp b/src/mame/video/rampart.cpp
index 0c8a7f7bac6..4154b56ea0a 100644
--- a/src/mame/video/rampart.cpp
+++ b/src/mame/video/rampart.cpp
@@ -75,7 +75,7 @@ UINT32 rampart_state::screen_update_rampart(screen_device &screen, bitmap_ind16
// draw and merge the MO
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/rdpblend.h b/src/mame/video/rdpblend.h
index eb665a677b9..962017a9dcc 100644
--- a/src/mame/video/rdpblend.h
+++ b/src/mame/video/rdpblend.h
@@ -33,7 +33,7 @@ class n64_blender_t
void set_machine(running_machine& machine) { m_machine = &machine; }
void set_processor(n64_rdp* rdp) { m_rdp = rdp; }
- running_machine &machine() const { assert(m_machine != NULL); return *m_machine; }
+ running_machine &machine() const { assert(m_machine != nullptr); return *m_machine; }
private:
running_machine* m_machine;
diff --git a/src/mame/video/redalert.cpp b/src/mame/video/redalert.cpp
index 3478f298bea..288e92198bd 100644
--- a/src/mame/video/redalert.cpp
+++ b/src/mame/video/redalert.cpp
@@ -63,7 +63,7 @@ void redalert_state::get_pens(pen_t *pens)
compute_resistor_weights(0, 0xff, scaler,
1, resistances_back_r, back_r_weight, 470, 0,
1, resistances_back_gb, back_gb_weight, 470, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
/* the character layer colors come from the PROM */
for (offs = 0; offs < NUM_CHARMAP_PENS; offs++)
@@ -128,7 +128,7 @@ void redalert_state::get_panther_pens(pen_t *pens)
compute_resistor_weights(0, 0xff, scaler,
1, resistances_back_r, back_r_weight, 470, 0,
1, resistances_back_gb, back_gb_weight, 470, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
/* the character layer colors come from the PROM */
for (offs = 0; offs < NUM_CHARMAP_PENS; offs++)
diff --git a/src/mame/video/relief.cpp b/src/mame/video/relief.cpp
index 8acf0e2ac63..3b0b0047177 100644
--- a/src/mame/video/relief.cpp
+++ b/src/mame/video/relief.cpp
@@ -106,7 +106,7 @@ UINT32 relief_state::screen_update_relief(screen_device &screen, bitmap_ind16 &b
// draw and merge the MO
bitmap_ind16 &mobitmap = m_vad->mob()->bitmap();
- for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/rohga.cpp b/src/mame/video/rohga.cpp
index 1c97fea5d64..313d73717bf 100644
--- a/src/mame/video/rohga.cpp
+++ b/src/mame/video/rohga.cpp
@@ -134,7 +134,7 @@ UINT32 rohga_state::screen_update_wizdfire(screen_device &screen, bitmap_rgb32 &
/* Update playfields */
flip_screen_set(BIT(flip, 7));
- m_deco_tilegen1->pf_update(0, 0);
+ m_deco_tilegen1->pf_update(nullptr, nullptr);
m_deco_tilegen2->pf_update(m_pf3_rowscroll, m_pf4_rowscroll);
/* Draw playfields - Palette of 2nd playfield chip visible if playfields turned off */
diff --git a/src/mame/video/rungun.cpp b/src/mame/video/rungun.cpp
index 58787e9a72b..9fb6e2b62e4 100644
--- a/src/mame/video/rungun.cpp
+++ b/src/mame/video/rungun.cpp
@@ -89,7 +89,7 @@ void rungun_state::video_start()
/* find first empty slot to decode gfx */
for (gfx_index = 0; gfx_index < MAX_GFX_ELEMENTS; gfx_index++)
- if (m_gfxdecode->gfx(gfx_index) == 0)
+ if (m_gfxdecode->gfx(gfx_index) == nullptr)
break;
assert(gfx_index != MAX_GFX_ELEMENTS);
diff --git a/src/mame/video/segahang.cpp b/src/mame/video/segahang.cpp
index 9c8f8def887..11bc1b3d4f9 100644
--- a/src/mame/video/segahang.cpp
+++ b/src/mame/video/segahang.cpp
@@ -66,7 +66,7 @@ UINT32 segahang_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
diff --git a/src/mame/video/segaic16.cpp b/src/mame/video/segaic16.cpp
index 8ac02ea654b..f76ec9bebfc 100644
--- a/src/mame/video/segaic16.cpp
+++ b/src/mame/video/segaic16.cpp
@@ -1082,8 +1082,8 @@ void segaic16_video_device::tilemap_init(int which, int type, int colorbase, int
get_tile_info = tilemap_get_info_delegate(FUNC(segaic16_video_device::tilemap_16a_tile_info),this);
info->numpages = 4;
info->draw_layer = tilemap_16a_draw_layer;
- info->reset = NULL;
- info->latch_timer = NULL;
+ info->reset = nullptr;
+ info->latch_timer = nullptr;
break;
case SEGAIC16_TILEMAP_16A:
@@ -1091,8 +1091,8 @@ void segaic16_video_device::tilemap_init(int which, int type, int colorbase, int
get_tile_info = tilemap_get_info_delegate(FUNC(segaic16_video_device::tilemap_16a_tile_info),this);
info->numpages = 8;
info->draw_layer = tilemap_16a_draw_layer;
- info->reset = NULL;
- info->latch_timer = NULL;
+ info->reset = nullptr;
+ info->latch_timer = nullptr;
break;
case SEGAIC16_TILEMAP_16B:
diff --git a/src/mame/video/segaic24.cpp b/src/mame/video/segaic24.cpp
index 9de160f0c4c..27be4638793 100644
--- a/src/mame/video/segaic24.cpp
+++ b/src/mame/video/segaic24.cpp
@@ -100,7 +100,7 @@ void segas24_tile::device_start()
throw device_missing_dependencies();
for(char_gfx_index = 0; char_gfx_index < MAX_GFX_ELEMENTS; char_gfx_index++)
- if (m_gfxdecode->gfx(char_gfx_index) == 0)
+ if (m_gfxdecode->gfx(char_gfx_index) == nullptr)
break;
assert(char_gfx_index != MAX_GFX_ELEMENTS);
@@ -646,7 +646,7 @@ void segas24_sprite::draw(bitmap_ind16 &bitmap, const rectangle &cliprect, bitma
UINT8 pmt[4];
int i;
UINT16 *sprd[0x2000], *clip[0x2000];
- UINT16 *cclip = 0;
+ UINT16 *cclip = nullptr;
for(i=0; i<4; i++)
pmt[i] = 0xff << (1+spri[3-i]);
diff --git a/src/mame/video/segaorun.cpp b/src/mame/video/segaorun.cpp
index 79f72426cb5..8c6f6e991e0 100644
--- a/src/mame/video/segaorun.cpp
+++ b/src/mame/video/segaorun.cpp
@@ -71,7 +71,7 @@ UINT32 segaorun_state::screen_update_shangon(screen_device &screen, bitmap_ind16
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
@@ -138,7 +138,7 @@ UINT32 segaorun_state::screen_update_outrun(screen_device &screen, bitmap_ind16
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
diff --git a/src/mame/video/segas16a.cpp b/src/mame/video/segas16a.cpp
index adf2e089e76..561d4160388 100644
--- a/src/mame/video/segas16a.cpp
+++ b/src/mame/video/segas16a.cpp
@@ -60,7 +60,7 @@ UINT32 segas16a_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
diff --git a/src/mame/video/segas16b.cpp b/src/mame/video/segas16b.cpp
index f6010f0b8b7..c37188cfdad 100644
--- a/src/mame/video/segas16b.cpp
+++ b/src/mame/video/segas16b.cpp
@@ -60,7 +60,7 @@ UINT32 segas16b_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
diff --git a/src/mame/video/segas18.cpp b/src/mame/video/segas18.cpp
index 15953461c61..8db333c3155 100644
--- a/src/mame/video/segas18.cpp
+++ b/src/mame/video/segas18.cpp
@@ -221,7 +221,7 @@ UINT32 segas18_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
{
for (int y = rect->min_y; y <= rect->max_y; y++)
{
diff --git a/src/mame/video/segas32.cpp b/src/mame/video/segas32.cpp
index 55aa4c4dd75..ed05f3df3c6 100644
--- a/src/mame/video/segas32.cpp
+++ b/src/mame/video/segas32.cpp
@@ -222,7 +222,7 @@ void segas32_state::common_start(int multi32)
m_spriteram_32bit = auto_alloc_array(machine(), UINT32, 0x20000/4);
/* allocate the tilemap cache */
- m_cache_head = NULL;
+ m_cache_head = nullptr;
for (tmap = 0; tmap < TILEMAP_CACHE_SIZE; tmap++)
{
struct cache_entry *entry = auto_alloc(machine(), struct cache_entry);
@@ -470,7 +470,7 @@ WRITE16_MEMBER(segas32_state::system32_videoram_w)
offset %= 0x200;
/* scan the cache for a matching pages */
- for (entry = m_cache_head; entry != NULL; entry = entry->next)
+ for (entry = m_cache_head; entry != nullptr; entry = entry->next)
if (entry->page == page)
entry->tmap->mark_tile_dirty(offset);
}
@@ -671,7 +671,7 @@ tilemap_t *segas32_state::find_cache_entry(int page, int bank)
struct segas32_state::cache_entry *entry, *prev;
/* scan the list for a matching entry */
- prev = NULL;
+ prev = nullptr;
entry = m_cache_head;
while (1)
{
@@ -688,7 +688,7 @@ tilemap_t *segas32_state::find_cache_entry(int page, int bank)
}
/* stop on the last entry */
- if (entry->next == NULL)
+ if (entry->next == nullptr)
break;
prev = entry;
entry = entry->next;
@@ -1992,7 +1992,7 @@ void segas32_state::mix_all_layers(int which, int xoffs, bitmap_rgb32 &bitmap, c
UINT8 mixshift; /* shift from control reg */
UINT8 coloroffs; /* color offset index */
} layerorder[16][8], layersort[8];
- struct layer_info temp_sprite_save = { 0 };
+ struct layer_info temp_sprite_save = { nullptr };
UINT8 sprgroup_shift, sprgroup_mask, sprgroup_or;
int numlayers, laynum, groupnum;
int rgboffs[3][3];
diff --git a/src/mame/video/segaxbd.cpp b/src/mame/video/segaxbd.cpp
index 2f47959eeab..30a92aff0a0 100644
--- a/src/mame/video/segaxbd.cpp
+++ b/src/mame/video/segaxbd.cpp
@@ -73,7 +73,7 @@ UINT32 segaxbd_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
diff --git a/src/mame/video/segaybd.cpp b/src/mame/video/segaybd.cpp
index e26390982d4..80f3b3c8353 100644
--- a/src/mame/video/segaybd.cpp
+++ b/src/mame/video/segaybd.cpp
@@ -47,7 +47,7 @@ UINT32 segaybd_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
// mix in 16B sprites
bitmap_ind16 &sprites = m_bsprites->bitmap();
- for (const sparse_dirty_rect *rect = m_bsprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_bsprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
diff --git a/src/mame/video/seibu_crtc.cpp b/src/mame/video/seibu_crtc.cpp
index 92f8f1951e0..413fb5468d7 100644
--- a/src/mame/video/seibu_crtc.cpp
+++ b/src/mame/video/seibu_crtc.cpp
@@ -209,7 +209,7 @@ seibu_crtc_device::seibu_crtc_device(const machine_config &mconfig, const char *
device_video_interface(mconfig, *this),
m_layer_en_cb(*this),
m_layer_scroll_cb(*this),
- m_space_config("vregs", ENDIANNESS_LITTLE, 16, 7, 0, NULL, *ADDRESS_MAP_NAME(seibu_crtc_vregs))
+ m_space_config("vregs", ENDIANNESS_LITTLE, 16, 7, 0, nullptr, *ADDRESS_MAP_NAME(seibu_crtc_vregs))
{
}
@@ -249,7 +249,7 @@ void seibu_crtc_device::device_reset()
const address_space_config *seibu_crtc_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == AS_0) ? &m_space_config : NULL;
+ return (spacenum == AS_0) ? &m_space_config : nullptr;
}
diff --git a/src/mame/video/seibuspi.cpp b/src/mame/video/seibuspi.cpp
index 96af09eae2d..c89a5505f9d 100644
--- a/src/mame/video/seibuspi.cpp
+++ b/src/mame/video/seibuspi.cpp
@@ -470,9 +470,9 @@ UINT32 seibuspi_state::screen_update_spi(screen_device &screen, bitmap_rgb32 &bi
}
else
{
- back_rowscroll = NULL;
- midl_rowscroll = NULL;
- fore_rowscroll = NULL;
+ back_rowscroll = nullptr;
+ midl_rowscroll = nullptr;
+ fore_rowscroll = nullptr;
}
screen.priority().fill(0, cliprect);
@@ -507,7 +507,7 @@ UINT32 seibuspi_state::screen_update_spi(screen_device &screen, bitmap_rgb32 &bi
draw_sprites(bitmap, cliprect, screen.priority(), 3);
if (~m_layer_enable & 8)
- combine_tilemap(bitmap, cliprect, m_text_layer, 0, 0, 0, NULL);
+ combine_tilemap(bitmap, cliprect, m_text_layer, 0, 0, 0, nullptr);
return 0;
}
@@ -665,7 +665,7 @@ VIDEO_START_MEMBER(seibuspi_state,sys386f)
m_sprite_ram_size = 0x2000;
m_sprite_bpp = 8;
- m_tilemap_ram = NULL;
+ m_tilemap_ram = nullptr;
m_palette_ram = auto_alloc_array_clear(machine(), UINT32, m_palette_ram_size/4);
m_sprite_ram = auto_alloc_array_clear(machine(), UINT32, m_sprite_ram_size/4);
@@ -691,7 +691,7 @@ void seibuspi_state::register_video_state()
save_item(NAME(m_midl_layer_d14));
save_item(NAME(m_fore_layer_d14));
- if (m_tilemap_ram != NULL) save_pointer(NAME(m_tilemap_ram), m_tilemap_ram_size/4);
+ if (m_tilemap_ram != nullptr) save_pointer(NAME(m_tilemap_ram), m_tilemap_ram_size/4);
save_pointer(NAME(m_palette_ram), m_palette_ram_size/4);
save_pointer(NAME(m_sprite_ram), m_sprite_ram_size/4);
}
diff --git a/src/mame/video/seta.cpp b/src/mame/video/seta.cpp
index 816d7e98745..349fc743f99 100644
--- a/src/mame/video/seta.cpp
+++ b/src/mame/video/seta.cpp
@@ -209,7 +209,7 @@ static const game_offset game_offsets[] =
{ "crazyfgt", { 0, 0 }, { -2, 0 } }, // wrong (empty background column in title screen, but aligned sprites in screen select)
{ "magspeed", { 0, 0 }, { -2, 0 } }, // floating tilemap maybe 1px off in test grid
- { NULL }
+ { nullptr }
};
@@ -270,7 +270,7 @@ WRITE16_MEMBER(seta_state::seta_vregs_w)
if (ACCESSING_BITS_0_7)
{
seta_coin_lockout_w (data & 0x0f);
- if (m_x1 != NULL)
+ if (m_x1 != nullptr)
m_x1->enable_w (data & 0x20);
coin_counter_w(machine(), 0,data & 0x01);
coin_counter_w(machine(), 1,data & 0x02);
@@ -386,7 +386,7 @@ inline void seta_state::get_tile_info( tile_data &tileinfo, int tile_index, int
UINT16 code = vram[ tile_index ];
UINT16 attr = vram[ tile_index + 0x800 ];
- if(m_gfxdecode->gfx(gfx + ((vctrl[ 4/2 ] & 0x10) >> m_color_mode_shift)) != NULL)
+ if(m_gfxdecode->gfx(gfx + ((vctrl[ 4/2 ] & 0x10) >> m_color_mode_shift)) != nullptr)
{
gfx += (vctrl[ 4/2 ] & 0x10) >> m_color_mode_shift;
}
@@ -538,10 +538,10 @@ SETA001_SPRITE_GFXBANK_CB_MEMBER(seta_state::setac_gfxbank_callback)
/* NO layers, only sprites */
VIDEO_START_MEMBER(seta_state,seta_no_layers)
{
- m_tilemap_0 = 0;
- m_tilemap_1 = 0;
- m_tilemap_2 = 0;
- m_tilemap_3 = 0;
+ m_tilemap_0 = nullptr;
+ m_tilemap_1 = nullptr;
+ m_tilemap_2 = nullptr;
+ m_tilemap_3 = nullptr;
m_tilemaps_flip = 0;
@@ -722,7 +722,7 @@ void seta_state::set_pens()
m_palette->set_pen_color(i, color);
}
- if(m_paletteram2 != NULL)
+ if(m_paletteram2 != nullptr)
{
for (i = 0; i < m_paletteram2.bytes() / 2; i++)
{
@@ -848,7 +848,7 @@ void seta_state::seta_layers_update(screen_device &screen, bitmap_ind16 &bitmap,
m_tilemap_1->mark_all_dirty();
}
- if(m_tilemap_2 != NULL && m_tilemap_3 != NULL)
+ if(m_tilemap_2 != nullptr && m_tilemap_3 != nullptr)
{
if(m_current_tilemap_mode[1] != (m_vctrl_2[ 4/2 ] & 0x10))
{
@@ -976,7 +976,7 @@ if (screen.machine().input().code_pressed(KEYCODE_Z))
{
if (layers_ctrl & 8) m_seta001->draw_sprites(screen, bitmap,cliprect,sprite_bank_size, sprite_setac);
- if((order & 4) && m_paletteram2 != NULL)
+ if((order & 4) && m_paletteram2 != nullptr)
{
if(m_tilemap_2->enabled())
{
@@ -1003,7 +1003,7 @@ if (screen.machine().input().code_pressed(KEYCODE_Z))
}
else
{
- if((order & 4) && m_paletteram2 != NULL)
+ if((order & 4) && m_paletteram2 != nullptr)
{
if(m_tilemap_2->enabled())
{
diff --git a/src/mame/video/shuuz.cpp b/src/mame/video/shuuz.cpp
index 490521829ae..b8ff46f6ab2 100644
--- a/src/mame/video/shuuz.cpp
+++ b/src/mame/video/shuuz.cpp
@@ -85,7 +85,7 @@ UINT32 shuuz_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, c
// draw and merge the MO
bitmap_ind16 &mobitmap = m_vad->mob()->bitmap();
- for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/skullxbo.cpp b/src/mame/video/skullxbo.cpp
index 653c52f0849..b1d6e2e8eb3 100644
--- a/src/mame/video/skullxbo.cpp
+++ b/src/mame/video/skullxbo.cpp
@@ -244,7 +244,7 @@ UINT32 skullxbo_state::screen_update_skullxbo(screen_device &screen, bitmap_ind1
// draw and merge the MO
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/spacefb.cpp b/src/mame/video/spacefb.cpp
index 72b0c11ca05..154ba917172 100644
--- a/src/mame/video/spacefb.cpp
+++ b/src/mame/video/spacefb.cpp
@@ -80,7 +80,7 @@ void spacefb_state::video_start()
compute_resistor_weights(0, 0xff, -1.0,
3, resistances_rg, m_color_weights_rg, 470, 0,
2, resistances_b, m_color_weights_b, 470, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
width = m_screen->width();
height = m_screen->height();
diff --git a/src/mame/video/spbactn.cpp b/src/mame/video/spbactn.cpp
index 09af97f44ea..5e7f1735a1b 100644
--- a/src/mame/video/spbactn.cpp
+++ b/src/mame/video/spbactn.cpp
@@ -129,7 +129,7 @@ int spbactn_state::draw_video(screen_device &screen, bitmap_rgb32 &bitmap, const
m_bg_tilemap->draw(screen, m_tile_bitmap_bg, cliprect, 0, 0);
m_fg_tilemap->draw(screen, m_tile_bitmap_fg, cliprect, 0, 0);
- m_mixer->mix_bitmaps(screen, bitmap, cliprect, m_palette, &m_tile_bitmap_bg, &m_tile_bitmap_fg, (bitmap_ind16*)0, &m_sprite_bitmap);
+ m_mixer->mix_bitmaps(screen, bitmap, cliprect, m_palette, &m_tile_bitmap_bg, &m_tile_bitmap_fg, (bitmap_ind16*)nullptr, &m_sprite_bitmap);
return 0;
}
diff --git a/src/mame/video/spectrum.cpp b/src/mame/video/spectrum.cpp
index c663aa5b865..5379510d2c9 100644
--- a/src/mame/video/spectrum.cpp
+++ b/src/mame/video/spectrum.cpp
@@ -118,11 +118,11 @@ UINT32 spectrum_state::screen_update_spectrum(screen_device &screen, bitmap_ind1
static const rectangle rect(SPEC_LEFT_BORDER, SPEC_LEFT_BORDER + SPEC_DISPLAY_XSIZE - 1, SPEC_TOP_BORDER, SPEC_TOP_BORDER + SPEC_DISPLAY_YSIZE - 1);
if (m_border_bitmap.valid())
- copyscrollbitmap(bitmap, m_border_bitmap, 0, 0, 0, 0, cliprect);
+ copyscrollbitmap(bitmap, m_border_bitmap, 0, nullptr, 0, nullptr, cliprect);
spectrum_UpdateScreenBitmap();
if (m_screen_bitmap.valid())
- copyscrollbitmap(bitmap, m_screen_bitmap, 0, 0, 0, 0, rect);
+ copyscrollbitmap(bitmap, m_screen_bitmap, 0, nullptr, 0, nullptr, rect);
#if 0
// note, don't update borders in here, this can time travel w/regards to other timers and may end up giving you
diff --git a/src/mame/video/sshangha.cpp b/src/mame/video/sshangha.cpp
index a28b2b29c67..57d7edf11f6 100644
--- a/src/mame/video/sshangha.cpp
+++ b/src/mame/video/sshangha.cpp
@@ -35,7 +35,7 @@ UINT32 sshangha_state::screen_update_sshangha(screen_device &screen, bitmap_rgb3
m_sprgen1->draw_sprites(bitmap, cliprect, m_spriteram, 0x800, true);
// I'm pretty sure only the original has the 2nd spriteram, used for the Japanese text on the 2nd scene (non-scrolling text) in the intro of the quest (3rd in JPN) mode
- if (m_spriteram2 != NULL)
+ if (m_spriteram2 != nullptr)
m_sprgen2->draw_sprites(bitmap, cliprect, m_spriteram2, 0x800, true);
// flip screen
@@ -58,7 +58,7 @@ UINT32 sshangha_state::screen_update_sshangha(screen_device &screen, bitmap_rgb3
m_deco_tilegen1->tilemap_1_draw(screen, bitmap, cliprect, 0, 0);
}
- if (m_spriteram2 != NULL)
+ if (m_spriteram2 != nullptr)
m_sprgen2->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0000, 0, 0x1ff);
m_sprgen1->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0200, 0, 0x1ff);
diff --git a/src/mame/video/st0020.cpp b/src/mame/video/st0020.cpp
index abe62a111ac..29bcee1e161 100644
--- a/src/mame/video/st0020.cpp
+++ b/src/mame/video/st0020.cpp
@@ -78,7 +78,7 @@ void st0020_device::device_start()
m_st0020_blitram = auto_alloc_array_clear(machine(), UINT16, 0x100 / 2);
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;
m_gfxdecode->set_gfx(m_gfx_index, global_alloc(gfx_element(m_palette, layout_16x8x8_2, (UINT8 *)m_st0020_gfxram, 0, m_palette->entries() / 64, 0)));
diff --git a/src/mame/video/system1.cpp b/src/mame/video/system1.cpp
index f326cb1d5b3..85dd664f3b9 100644
--- a/src/mame/video/system1.cpp
+++ b/src/mame/video/system1.cpp
@@ -322,7 +322,7 @@ WRITE8_MEMBER(system1_state::system1_paletteram_w)
accurate to +/- .003K ohms.
*/
- if (m_color_prom != NULL)
+ if (m_color_prom != nullptr)
{
m_paletteram[offset] = data;
UINT8 val;
diff --git a/src/mame/video/system16.cpp b/src/mame/video/system16.cpp
index e2f5f756a46..f25c59d1446 100644
--- a/src/mame/video/system16.cpp
+++ b/src/mame/video/system16.cpp
@@ -643,7 +643,7 @@ UINT32 segas1x_bootleg_state::screen_update_s16a_bootleg(screen_device &screen,
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
@@ -713,7 +713,7 @@ UINT32 segas1x_bootleg_state::screen_update_s16a_bootleg_passht4b(screen_device
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
@@ -792,7 +792,7 @@ UINT32 segas1x_bootleg_state::screen_update_system16(screen_device &screen, bitm
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
@@ -855,7 +855,7 @@ UINT32 segas1x_bootleg_state::screen_update_system18old(screen_device &screen, b
// mix in sprites
bitmap_ind16 &sprites = m_sprites->bitmap();
- for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_sprites->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *dest = &bitmap.pix(y);
diff --git a/src/mame/video/taito_b.cpp b/src/mame/video/taito_b.cpp
index e4cdb0098cb..0583938da2f 100644
--- a/src/mame/video/taito_b.cpp
+++ b/src/mame/video/taito_b.cpp
@@ -41,7 +41,7 @@ VIDEO_START_MEMBER(taitob_state,taitob_core)
{
m_framebuffer[0] = auto_bitmap_ind16_alloc(machine(), 512, 256);
m_framebuffer[1] = auto_bitmap_ind16_alloc(machine(), 512, 256);
- m_pixel_bitmap = NULL; /* only hitice needs this */
+ m_pixel_bitmap = nullptr; /* only hitice needs this */
save_item(NAME(m_pixel_scroll));
diff --git a/src/mame/video/taito_f2.cpp b/src/mame/video/taito_f2.cpp
index 9c073b6891d..76672f2e0c5 100644
--- a/src/mame/video/taito_f2.cpp
+++ b/src/mame/video/taito_f2.cpp
@@ -977,7 +977,7 @@ UINT32 taitof2_state::screen_update_taitof2_ssi(screen_device &screen, bitmap_in
(they are in Majestic 12, but the tilemaps are not used anyway) */
screen.priority().fill(0, cliprect);
bitmap.fill(0, cliprect);
- draw_sprites(screen, bitmap, cliprect, NULL, 0);
+ draw_sprites(screen, bitmap, cliprect, nullptr, 0);
return 0;
}
@@ -990,7 +990,7 @@ UINT32 taitof2_state::screen_update_taitof2_yesnoj(screen_device &screen, bitmap
screen.priority().fill(0, cliprect);
bitmap.fill(0, cliprect); /* wrong color? */
- draw_sprites(screen, bitmap, cliprect, NULL, 0);
+ draw_sprites(screen, bitmap, cliprect, nullptr, 0);
m_tc0100scn->tilemap_draw(screen, bitmap, cliprect, m_tc0100scn->bottomlayer(), 0, 0);
m_tc0100scn->tilemap_draw(screen, bitmap, cliprect, m_tc0100scn->bottomlayer() ^ 1, 0, 0);
m_tc0100scn->tilemap_draw(screen, bitmap, cliprect, 2, 0, 0);
@@ -1008,7 +1008,7 @@ UINT32 taitof2_state::screen_update_taitof2(screen_device &screen, bitmap_ind16
bitmap.fill(0, cliprect); /* wrong color? */
m_tc0100scn->tilemap_draw(screen, bitmap, cliprect, m_tc0100scn->bottomlayer(), 0, 0);
m_tc0100scn->tilemap_draw(screen, bitmap, cliprect, m_tc0100scn->bottomlayer() ^ 1, 0, 0);
- draw_sprites(screen, bitmap, cliprect, NULL, 0);
+ draw_sprites(screen, bitmap, cliprect, nullptr, 0);
m_tc0100scn->tilemap_draw(screen, bitmap, cliprect, 2, 0, 0);
return 0;
}
@@ -1044,7 +1044,7 @@ UINT32 taitof2_state::screen_update_taitof2_pri(screen_device &screen, bitmap_in
m_tc0100scn->tilemap_draw(screen, bitmap, cliprect, layer[1], 0, 2);
m_tc0100scn->tilemap_draw(screen, bitmap, cliprect, layer[2], 0, 4);
- draw_sprites(screen, bitmap, cliprect, NULL, 1);
+ draw_sprites(screen, bitmap, cliprect, nullptr, 1);
return 0;
}
@@ -1052,10 +1052,10 @@ UINT32 taitof2_state::screen_update_taitof2_pri(screen_device &screen, bitmap_in
void taitof2_state::draw_roz_layer( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, UINT32 priority)
{
- if (m_tc0280grd != NULL)
+ if (m_tc0280grd != nullptr)
m_tc0280grd->tc0280grd_zoom_draw(screen, bitmap, cliprect, m_pivot_xdisp, m_pivot_ydisp, priority);
- if (m_tc0430grw != NULL)
+ if (m_tc0430grw != nullptr)
m_tc0430grw->tc0430grw_zoom_draw(screen, bitmap, cliprect, m_pivot_xdisp, m_pivot_ydisp, priority);
}
@@ -1071,10 +1071,10 @@ UINT32 taitof2_state::screen_update_taitof2_pri_roz(screen_device &screen, bitma
taitof2_handle_sprite_buffering();
- if (m_tc0280grd != NULL)
+ if (m_tc0280grd != nullptr)
m_tc0280grd->tc0280grd_tilemap_update(roz_base_color);
- if (m_tc0430grw != NULL)
+ if (m_tc0430grw != nullptr)
m_tc0430grw->tc0430grw_tilemap_update(roz_base_color);
m_tc0100scn->tilemap_update();
@@ -1121,7 +1121,7 @@ UINT32 taitof2_state::screen_update_taitof2_pri_roz(screen_device &screen, bitma
}
}
- draw_sprites(screen, bitmap, cliprect, NULL, 1);
+ draw_sprites(screen, bitmap, cliprect, nullptr, 1);
return 0;
}
@@ -1310,7 +1310,7 @@ UINT32 taitof2_state::screen_update_taitof2_metalb(screen_device &screen, bitmap
m_tc0480scp->tilemap_draw(screen, bitmap, cliprect, layer[3], 0, 8);
m_tc0480scp->tilemap_draw(screen, bitmap, cliprect, layer[4], 0, 16);
- draw_sprites(screen, bitmap, cliprect, NULL, 1);
+ draw_sprites(screen, bitmap, cliprect, nullptr, 1);
return 0;
}
diff --git a/src/mame/video/taito_f3.cpp b/src/mame/video/taito_f3.cpp
index 99622d27221..ffc66158f0e 100644
--- a/src/mame/video/taito_f3.cpp
+++ b/src/mame/video/taito_f3.cpp
@@ -547,10 +547,10 @@ VIDEO_START_MEMBER(taito_f3_state,f3)
m_tr_3a = 0;
m_tr_3b = 1;
- m_spritelist=0;
- m_spriteram16_buffered=0;
- m_pf_line_inf=0;
- m_tile_opaque_sp=0;
+ m_spritelist=nullptr;
+ m_spriteram16_buffered=nullptr;
+ m_pf_line_inf=nullptr;
+ m_tile_opaque_sp=nullptr;
/* Setup individual game */
do {
@@ -1665,7 +1665,7 @@ void taito_f3_state::calculate_clip(int y, UINT16 pri, UINT32* clip0, UINT32* cl
case 0x0310: /* Clip plane 1 & 2 enable, plane 1 inverted */
{
if (sa_line_t->clip1_l[y] > sa_line_t->clip1_r[y])
- line_enable=0;
+ line_enable=nullptr;
else
*clip0=(sa_line_t->clip1_l[y]) | (sa_line_t->clip1_r[y]<<16);
@@ -1675,7 +1675,7 @@ void taito_f3_state::calculate_clip(int y, UINT16 pri, UINT32* clip0, UINT32* cl
case 0x0320: /* Clip plane 1 & 2 enable, plane 2 inverted */
{
if (sa_line_t->clip0_l[y] > sa_line_t->clip0_r[y])
- line_enable=0;
+ line_enable=nullptr;
else
*clip0=(sa_line_t->clip0_l[y]) | (sa_line_t->clip0_r[y]<<16);
@@ -2272,10 +2272,10 @@ void taito_f3_state::scanline_draw(bitmap_rgb32 &bitmap, const rectangle &clipre
/* set sprite alpha mode */
sprite_alpha_check=0;
sprite_alpha_all_2a=1;
- m_dpix_sp[1]=0;
- m_dpix_sp[2]=0;
- m_dpix_sp[4]=0;
- m_dpix_sp[8]=0;
+ m_dpix_sp[1]=nullptr;
+ m_dpix_sp[2]=nullptr;
+ m_dpix_sp[4]=nullptr;
+ m_dpix_sp[8]=nullptr;
for(i=0;i<4;i++) /* i = sprite priority offset */
{
UINT8 sprite_alpha_mode=(sprite_alpha>>(i*2))&3;
@@ -2389,20 +2389,20 @@ void taito_f3_state::scanline_draw(bitmap_rgb32 &bitmap, const rectangle &clipre
if(alpha_mode[3]>1) alpha_mode[3]=1;
if(alpha_mode[4]>1) alpha_mode[4]=1;
sprite_alpha_check=0;
- m_dpix_sp[1]=0;
- m_dpix_sp[2]=0;
- m_dpix_sp[4]=0;
- m_dpix_sp[8]=0;
+ m_dpix_sp[1]=nullptr;
+ m_dpix_sp[2]=nullptr;
+ m_dpix_sp[4]=nullptr;
+ m_dpix_sp[8]=nullptr;
}
}
}
else
{
sprite_alpha_check=0;
- m_dpix_sp[1]=0;
- m_dpix_sp[2]=0;
- m_dpix_sp[4]=0;
- m_dpix_sp[8]=0;
+ m_dpix_sp[1]=nullptr;
+ m_dpix_sp[2]=nullptr;
+ m_dpix_sp[4]=nullptr;
+ m_dpix_sp[8]=nullptr;
}
diff --git a/src/mame/video/taitojc.cpp b/src/mame/video/taitojc.cpp
index fd9493160fd..ecca7b3ff0e 100644
--- a/src/mame/video/taitojc.cpp
+++ b/src/mame/video/taitojc.cpp
@@ -304,7 +304,7 @@ void taitojc_state::video_start()
{
/* find first empty slot to decode gfx */
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;
assert(m_gfx_index != MAX_GFX_ELEMENTS);
diff --git a/src/mame/video/tc0080vco.cpp b/src/mame/video/tc0080vco.cpp
index 97d9e2f3000..40e7bd34f41 100644
--- a/src/mame/video/tc0080vco.cpp
+++ b/src/mame/video/tc0080vco.cpp
@@ -79,19 +79,19 @@ const device_type TC0080VCO = &device_creator<tc0080vco_device>;
tc0080vco_device::tc0080vco_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0080VCO, "Taito TC0080VCO", tag, owner, clock, "tc0080vco", __FILE__),
- m_ram(NULL),
- m_bg0_ram_0(NULL),
- m_bg0_ram_1(NULL),
- m_bg1_ram_0(NULL),
- m_bg1_ram_1(NULL),
- m_tx_ram_0(NULL),
- m_tx_ram_1(NULL),
- m_char_ram(NULL),
- m_bgscroll_ram(NULL),
- m_chain_ram_0(NULL),
- m_chain_ram_1(NULL),
- m_spriteram(NULL),
- m_scroll_ram(NULL),
+ m_ram(nullptr),
+ m_bg0_ram_0(nullptr),
+ m_bg0_ram_1(nullptr),
+ m_bg1_ram_0(nullptr),
+ m_bg1_ram_1(nullptr),
+ m_tx_ram_0(nullptr),
+ m_tx_ram_1(nullptr),
+ m_char_ram(nullptr),
+ m_bgscroll_ram(nullptr),
+ m_chain_ram_0(nullptr),
+ m_chain_ram_1(nullptr),
+ m_spriteram(nullptr),
+ m_scroll_ram(nullptr),
m_bg0_scrollx(0),
m_bg0_scrolly(0),
m_bg1_scrollx(0),
diff --git a/src/mame/video/tc0100scn.cpp b/src/mame/video/tc0100scn.cpp
index dc9e16489ce..3ecbc3623d8 100644
--- a/src/mame/video/tc0100scn.cpp
+++ b/src/mame/video/tc0100scn.cpp
@@ -150,14 +150,14 @@ const device_type TC0100SCN = &device_creator<tc0100scn_device>;
tc0100scn_device::tc0100scn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0100SCN, "Taito TC0100SCN", tag, owner, clock, "tc0100scn", __FILE__),
- m_ram(NULL),
- m_bg_ram(NULL),
- m_fg_ram(NULL),
- m_tx_ram(NULL),
- m_char_ram(NULL),
- m_bgscroll_ram(NULL),
- m_fgscroll_ram(NULL),
- m_colscroll_ram(NULL),
+ m_ram(nullptr),
+ m_bg_ram(nullptr),
+ m_fg_ram(nullptr),
+ m_tx_ram(nullptr),
+ m_char_ram(nullptr),
+ m_bgscroll_ram(nullptr),
+ m_fgscroll_ram(nullptr),
+ m_colscroll_ram(nullptr),
m_bgscrollx(0),
m_bgscrolly(0),
m_fgscrollx(0),
diff --git a/src/mame/video/tc0110pcr.cpp b/src/mame/video/tc0110pcr.cpp
index f9c87099122..8c3fdf99d51 100644
--- a/src/mame/video/tc0110pcr.cpp
+++ b/src/mame/video/tc0110pcr.cpp
@@ -22,7 +22,7 @@ const device_type TC0110PCR = &device_creator<tc0110pcr_device>;
tc0110pcr_device::tc0110pcr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0110PCR, "Taito TC0110PCR", tag, owner, clock, "tc0110pcr", __FILE__),
- m_ram(NULL),
+ m_ram(nullptr),
m_type(0),
m_addr(0),
m_palette(*this)
diff --git a/src/mame/video/tc0150rod.cpp b/src/mame/video/tc0150rod.cpp
index 2e7a0ce98fa..6077df445e3 100644
--- a/src/mame/video/tc0150rod.cpp
+++ b/src/mame/video/tc0150rod.cpp
@@ -16,7 +16,7 @@ const device_type TC0150ROD = &device_creator<tc0150rod_device>;
tc0150rod_device::tc0150rod_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0150ROD, "Taito TC0150ROD", tag, owner, clock, "tc0150rod", __FILE__),
- m_roadgfx(NULL)
+ m_roadgfx(nullptr)
{
}
diff --git a/src/mame/video/tc0180vcu.cpp b/src/mame/video/tc0180vcu.cpp
index 29809218cfd..ff7a1df5ed7 100644
--- a/src/mame/video/tc0180vcu.cpp
+++ b/src/mame/video/tc0180vcu.cpp
@@ -13,7 +13,7 @@ const device_type TC0180VCU = &device_creator<tc0180vcu_device>;
tc0180vcu_device::tc0180vcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0180VCU, "Taito TC0180VCU", tag, owner, clock, "tc0180vcu", __FILE__),
- m_ram(NULL),
+ m_ram(nullptr),
//m_scrollram(NULL),
//m_bg_rambank(0),
//m_fg_rambank(0),
diff --git a/src/mame/video/tc0280grd.cpp b/src/mame/video/tc0280grd.cpp
index a4532102250..8034de45c6f 100644
--- a/src/mame/video/tc0280grd.cpp
+++ b/src/mame/video/tc0280grd.cpp
@@ -29,7 +29,7 @@ const device_type TC0280GRD = &device_creator<tc0280grd_device>;
tc0280grd_device::tc0280grd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0280GRD, "Taito TC0280GRD & TC0430GRW", tag, owner, clock, "tc0280grd", __FILE__),
- m_ram(NULL),
+ m_ram(nullptr),
//m_ctrl[8](0),
m_base_color(0),
m_gfxdecode(*this)
diff --git a/src/mame/video/tc0480scp.cpp b/src/mame/video/tc0480scp.cpp
index 1c2aa3eea2a..d50a77c6ace 100644
--- a/src/mame/video/tc0480scp.cpp
+++ b/src/mame/video/tc0480scp.cpp
@@ -153,8 +153,8 @@ const device_type TC0480SCP = &device_creator<tc0480scp_device>;
tc0480scp_device::tc0480scp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0480SCP, "Taito TC0480SCP", tag, owner, clock, "tc0480scp", __FILE__),
- m_tx_ram(NULL),
- m_char_ram(NULL),
+ m_tx_ram(nullptr),
+ m_char_ram(nullptr),
m_pri_reg(0),
m_dblwidth(0),
m_gfxnum(0),
@@ -173,10 +173,10 @@ tc0480scp_device::tc0480scp_device(const machine_config &mconfig, const char *ta
for (int i = 0; i < 4; i++)
{
- m_bg_ram[i] = NULL;
- m_bgscroll_ram[i] = NULL;
- m_rowzoom_ram[i] = NULL;
- m_bgcolumn_ram[i] = NULL;
+ m_bg_ram[i] = nullptr;
+ m_bgscroll_ram[i] = nullptr;
+ m_rowzoom_ram[i] = nullptr;
+ m_bgcolumn_ram[i] = nullptr;
m_bgscrollx[i] = 0;
m_bgscrolly[i] = 0;
}
diff --git a/src/mame/video/tceptor.cpp b/src/mame/video/tceptor.cpp
index e419140eda6..55347e4ce08 100644
--- a/src/mame/video/tceptor.cpp
+++ b/src/mame/video/tceptor.cpp
@@ -365,7 +365,7 @@ void tceptor_state::video_start()
/* find first empty slot to decode gfx */
for (gfx_index = 0; gfx_index < MAX_GFX_ELEMENTS; gfx_index++)
- if (m_gfxdecode->gfx(gfx_index) == 0)
+ if (m_gfxdecode->gfx(gfx_index) == nullptr)
break;
assert(gfx_index + 4 <= MAX_GFX_ELEMENTS);
diff --git a/src/mame/video/tecmo16.cpp b/src/mame/video/tecmo16.cpp
index 32a50cb23a2..7a49c8c705a 100644
--- a/src/mame/video/tecmo16.cpp
+++ b/src/mame/video/tecmo16.cpp
@@ -228,7 +228,7 @@ UINT32 tecmo16_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap,
m_bg_tilemap->draw(screen, m_tile_bitmap_bg, cliprect, 0, 0);
m_fg_tilemap->draw(screen, m_tile_bitmap_fg, cliprect, 0, 0);
- m_mixer->mix_bitmaps(screen, bitmap, cliprect, m_palette, &m_tile_bitmap_bg, &m_tile_bitmap_fg, (bitmap_ind16*)0, &m_sprite_bitmap);
+ m_mixer->mix_bitmaps(screen, bitmap, cliprect, m_palette, &m_tile_bitmap_bg, &m_tile_bitmap_fg, (bitmap_ind16*)nullptr, &m_sprite_bitmap);
// todo, this should go through the mixer!
m_tx_tilemap->draw(screen, bitmap, cliprect, 0, 0);
diff --git a/src/mame/video/thomson.cpp b/src/mame/video/thomson.cpp
index a258bb529da..1443fff7441 100644
--- a/src/mame/video/thomson.cpp
+++ b/src/mame/video/thomson.cpp
@@ -994,7 +994,7 @@ UINT32 thomson_state::screen_update_thom(screen_device &screen, bitmap_ind16 &bi
ypos = m_thom_bheight /* * scale */;
for ( y = 0; y < 200; v += xwidth, y++ , ypos ++ /* += scale */ )
{
- draw_scanline16( bitmap, xbleft, ypos, xwidth, v, NULL );
+ draw_scanline16( bitmap, xbleft, ypos, xwidth, v, nullptr );
#if 0
if ( thom_hires )
draw_scanline16( bitmap, xbleft, ypos+1, xwidth, v, NULL );
@@ -1166,11 +1166,11 @@ VIDEO_START_MEMBER( thomson_state, thom )
m_thom_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(thomson_state::thom_scanline_start),this));
m_thom_lightpen_nb = 0;
- m_thom_lightpen_cb = NULL;
+ m_thom_lightpen_cb = nullptr;
m_thom_lightpen_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(thomson_state::thom_lightpen_step),this));
save_item(NAME(m_thom_lightpen_nb));
- m_thom_init_cb = NULL;
+ m_thom_init_cb = nullptr;
m_thom_init_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(thomson_state::thom_set_init),this));
save_item(NAME(m_thom_bwidth));
diff --git a/src/mame/video/thunderj.cpp b/src/mame/video/thunderj.cpp
index cf5f06c87d7..34cb3485248 100644
--- a/src/mame/video/thunderj.cpp
+++ b/src/mame/video/thunderj.cpp
@@ -122,7 +122,7 @@ UINT32 thunderj_state::screen_update_thunderj(screen_device &screen, bitmap_ind1
// draw and merge the MO
bitmap_ind16 &mobitmap = m_vad->mob()->bitmap();
- for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
@@ -220,7 +220,7 @@ UINT32 thunderj_state::screen_update_thunderj(screen_device &screen, bitmap_ind1
m_vad->alpha()->draw(screen, bitmap, cliprect, 0, 0);
/* now go back and process the upper bit of MO priority */
- for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_vad->mob()->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/timex.cpp b/src/mame/video/timex.cpp
index 6b7bd460366..145b6e2131d 100644
--- a/src/mame/video/timex.cpp
+++ b/src/mame/video/timex.cpp
@@ -201,7 +201,7 @@ UINT32 spectrum_state::screen_update_ts2068(screen_device &screen, bitmap_ind16
int count;
if (m_border_bitmap.valid())
- copyscrollbitmap(bitmap, m_border_bitmap, 0, 0, 0, 0, cliprect);
+ copyscrollbitmap(bitmap, m_border_bitmap, 0, nullptr, 0, nullptr, cliprect);
if ((m_port_ff_data & 7) == 6)
{
@@ -238,7 +238,7 @@ UINT32 spectrum_state::screen_update_tc2048(screen_device &screen, bitmap_ind16
int count;
if (m_border_bitmap.valid())
- copyscrollbitmap(bitmap, m_border_bitmap, 0, 0, 0, 0, cliprect);
+ copyscrollbitmap(bitmap, m_border_bitmap, 0, nullptr, 0, nullptr, cliprect);
if ((m_port_ff_data & 7) == 6)
{
diff --git a/src/mame/video/toaplan2.cpp b/src/mame/video/toaplan2.cpp
index b47d98d2015..f1e971fc400 100644
--- a/src/mame/video/toaplan2.cpp
+++ b/src/mame/video/toaplan2.cpp
@@ -76,13 +76,13 @@ VIDEO_START_MEMBER(toaplan2_state,toaplan2)
/* our current VDP implementation needs this bitmap to work with */
m_screen->register_screen_bitmap(m_custom_priority_bitmap);
- if (m_vdp0 != NULL)
+ if (m_vdp0 != nullptr)
{
m_secondary_render_bitmap.reset();
m_vdp0->custom_priority_bitmap = &m_custom_priority_bitmap;
}
- if (m_vdp1 != NULL)
+ if (m_vdp1 != nullptr)
{
m_screen->register_screen_bitmap(m_secondary_render_bitmap);
m_vdp1->custom_priority_bitmap = &m_custom_priority_bitmap;
diff --git a/src/mame/video/tp84.cpp b/src/mame/video/tp84.cpp
index 80b3d00a95f..852f845edf4 100644
--- a/src/mame/video/tp84.cpp
+++ b/src/mame/video/tp84.cpp
@@ -53,8 +53,8 @@ PALETTE_INIT_MEMBER(tp84_state, tp84)
/* compute the color output resistor weights */
compute_resistor_weights(0, 255, -1.0,
4, resistances, weights, 470, 0,
- 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0,
+ 0, nullptr, nullptr, 0, 0);
/* create a lookup table for the palette */
for (i = 0; i < 0x100; i++)
diff --git a/src/mame/video/tubep.cpp b/src/mame/video/tubep.cpp
index 4899dde8bdf..adac17e1a65 100644
--- a/src/mame/video/tubep.cpp
+++ b/src/mame/video/tubep.cpp
@@ -168,7 +168,7 @@ PALETTE_INIT_MEMBER(tubep_state,tubep)
compute_resistor_weights(0, 255, -1.0,
3, resistors_txt_rg, weights_txt_rg, 470, 0,
2, resistors_txt_b, weights_txt_b, 470, 0,
- 0, 0, 0, 0, 0 );
+ 0, nullptr, nullptr, 0, 0 );
/* create text palette */
@@ -687,7 +687,7 @@ PALETTE_INIT_MEMBER(tubep_state,rjammer)
compute_resistor_weights(0, 255, -1.0,
3, resistors_rg, weights_rg, 470, 0,
2, resistors_b, weights_b, 470, 0,
- 0, 0, 0, 0, 0 );
+ 0, nullptr, nullptr, 0, 0 );
for (i = 0;i < palette.entries();i++)
{
diff --git a/src/mame/video/twin16.cpp b/src/mame/video/twin16.cpp
index 464bf85d8cd..5fee639712d 100644
--- a/src/mame/video/twin16.cpp
+++ b/src/mame/video/twin16.cpp
@@ -279,7 +279,7 @@ void twin16_state::draw_sprites( screen_device &screen, bitmap_ind16 &bitmap )
int pal_base = ((attributes&0xf)+0x10)*16;
int height = 16<<((attributes>>6)&0x3);
int width = 16<<((attributes>>4)&0x3);
- const UINT16 *pen_data = 0;
+ const UINT16 *pen_data = nullptr;
int flipy = attributes&0x0200;
int flipx = attributes&0x0100;
diff --git a/src/mame/video/twincobr.cpp b/src/mame/video/twincobr.cpp
index 11129fa21a7..4f602dd688a 100644
--- a/src/mame/video/twincobr.cpp
+++ b/src/mame/video/twincobr.cpp
@@ -356,7 +356,7 @@ UINT32 twincobr_state::screen_update_toaplan0(screen_device &screen, bitmap_ind1
UINT16 *buffered_spriteram16;
UINT32 bytes;
- if (m_spriteram16 != NULL)
+ if (m_spriteram16 != nullptr)
{
buffered_spriteram16 = m_spriteram16->buffer();
bytes = m_spriteram16->bytes();
diff --git a/src/mame/video/vaportra.cpp b/src/mame/video/vaportra.cpp
index c15527c6878..2d518fddc18 100644
--- a/src/mame/video/vaportra.cpp
+++ b/src/mame/video/vaportra.cpp
@@ -56,8 +56,8 @@ UINT32 vaportra_state::screen_update_vaportra(screen_device &screen, bitmap_ind1
int pri = m_priority[0] & 0x03;
flip_screen_set(!BIT(flip, 7));
- m_deco_tilegen1->pf_update(0, 0);
- m_deco_tilegen2->pf_update(0, 0);
+ m_deco_tilegen1->pf_update(nullptr, nullptr);
+ m_deco_tilegen2->pf_update(nullptr, nullptr);
m_spritegen->set_pri_type(1); // force priorities to be handled in a different way for this driver for now
diff --git a/src/mame/video/vigilant.cpp b/src/mame/video/vigilant.cpp
index 6728f37d8c2..0f95bdcde96 100644
--- a/src/mame/video/vigilant.cpp
+++ b/src/mame/video/vigilant.cpp
@@ -229,7 +229,7 @@ void vigilant_state::draw_background(bitmap_ind16 &bitmap, const rectangle &clip
m_rear_refresh=0;
}
- copyscrollbitmap(bitmap,*m_bg_bitmap,1,&scrollx,0,0,bottomvisiblearea);
+ copyscrollbitmap(bitmap,*m_bg_bitmap,1,&scrollx,0,nullptr,bottomvisiblearea);
}
diff --git a/src/mame/video/vindictr.cpp b/src/mame/video/vindictr.cpp
index e2a10874ffa..f29890764c4 100644
--- a/src/mame/video/vindictr.cpp
+++ b/src/mame/video/vindictr.cpp
@@ -212,7 +212,7 @@ UINT32 vindictr_state::screen_update_vindictr(screen_device &screen, bitmap_ind1
// draw and merge the MO
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
@@ -252,7 +252,7 @@ UINT32 vindictr_state::screen_update_vindictr(screen_device &screen, bitmap_ind1
m_alpha_tilemap->draw(screen, bitmap, cliprect, 0, 0);
/* now go back and process the upper bit of MO priority */
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/vs920a.cpp b/src/mame/video/vs920a.cpp
index b655f09a625..6e88864c216 100644
--- a/src/mame/video/vs920a.cpp
+++ b/src/mame/video/vs920a.cpp
@@ -34,7 +34,7 @@ const device_type VS920A = &device_creator<vs920a_text_tilemap_device>;
vs920a_text_tilemap_device::vs920a_text_tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VS920A, "VS920A Text Tilemap", tag, owner, clock, "vs920a", __FILE__),
- m_vram(NULL),
+ m_vram(nullptr),
m_pal_base(0),
m_gfx_region(0),
m_gfxdecode(*this)
diff --git a/src/mame/video/vtvideo.cpp b/src/mame/video/vtvideo.cpp
index 5170143d749..b4d5b40ab55 100644
--- a/src/mame/video/vtvideo.cpp
+++ b/src/mame/video/vtvideo.cpp
@@ -112,7 +112,7 @@ void vt100_video_device::device_start()
m_write_clear_video_interrupt.resolve_safe();
m_gfx = machine().root_device().memregion(m_char_rom_tag)->base();
- assert(m_gfx != NULL);
+ assert(m_gfx != nullptr);
// LBA7 is scan line frequency update
machine().scheduler().timer_pulse(attotime::from_nsec(31778), timer_expired_delegate(FUNC(vt100_video_device::lba7_change), this));
@@ -247,7 +247,7 @@ WRITE8_MEMBER(vt100_video_device::dc012_w)
if (data == 0)
{
UINT8 *rom = machine().root_device().memregion("maincpu")->base();
- if (rom != NULL)
+ if (rom != nullptr)
{
UINT32 PC = space.device().safe_pc();
if ((rom[ PC - 1] == 0xe6) &&
diff --git a/src/mame/video/williams.cpp b/src/mame/video/williams.cpp
index a63f22c35c8..84f5d7a5578 100644
--- a/src/mame/video/williams.cpp
+++ b/src/mame/video/williams.cpp
@@ -114,7 +114,7 @@ void williams_state::state_save_register()
VIDEO_START_MEMBER(williams_state,williams)
{
- blitter_init(m_blitter_config, NULL);
+ blitter_init(m_blitter_config, nullptr);
create_palette_lookup();
state_save_register();
}
@@ -132,7 +132,7 @@ VIDEO_START_MEMBER(blaster_state,blaster)
VIDEO_START_MEMBER(williams2_state,williams2)
{
- blitter_init(m_blitter_config, NULL);
+ blitter_init(m_blitter_config, nullptr);
/* create the tilemap */
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(williams2_state::get_tile_info),this), TILEMAP_SCAN_COLS, 24,16, 128,16);
diff --git a/src/mame/video/x68k.cpp b/src/mame/video/x68k.cpp
index fce9998286a..770ab644f8d 100644
--- a/src/mame/video/x68k.cpp
+++ b/src/mame/video/x68k.cpp
@@ -1079,7 +1079,7 @@ VIDEO_START_MEMBER(x68k_state,x68000)
int gfx_index;
for (gfx_index = 0; gfx_index < MAX_GFX_ELEMENTS; gfx_index++)
- if (m_gfxdecode->gfx(gfx_index) == 0)
+ if (m_gfxdecode->gfx(gfx_index) == nullptr)
break;
/* create the char set (gfx will then be updated dynamically from RAM) */
diff --git a/src/mame/video/xybots.cpp b/src/mame/video/xybots.cpp
index f67a57e10ac..6b1e1e75b8b 100644
--- a/src/mame/video/xybots.cpp
+++ b/src/mame/video/xybots.cpp
@@ -101,7 +101,7 @@ UINT32 xybots_state::screen_update_xybots(screen_device &screen, bitmap_ind16 &b
// draw and merge the MO
bitmap_ind16 &mobitmap = m_mob->bitmap();
- for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != NULL; rect = rect->next())
+ for (const sparse_dirty_rect *rect = m_mob->first_dirty_rect(cliprect); rect != nullptr; rect = rect->next())
for (int y = rect->min_y; y <= rect->max_y; y++)
{
UINT16 *mo = &mobitmap.pix16(y);
diff --git a/src/mame/video/ygv608.cpp b/src/mame/video/ygv608.cpp
index a4784c21b56..1b70da162ee 100644
--- a/src/mame/video/ygv608.cpp
+++ b/src/mame/video/ygv608.cpp
@@ -562,8 +562,8 @@ void ygv608_device::device_start()
m_tilemap_B_cache_16[1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ygv608_device::get_tile_info_B_16),this), tilemap_mapper_delegate(FUNC(ygv608_device::get_tile_offset),this), 16,16, 64,32);
m_tilemap_B_cache_16[2] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ygv608_device::get_tile_info_B_16),this), tilemap_mapper_delegate(FUNC(ygv608_device::get_tile_offset),this), 16,16, 32,64);
- m_tilemap_A = NULL;
- m_tilemap_B = NULL;
+ m_tilemap_A = nullptr;
+ m_tilemap_B = nullptr;
register_state_save();
}
diff --git a/src/mame/video/zaccaria.cpp b/src/mame/video/zaccaria.cpp
index 573a77f09e5..85d99f009d4 100644
--- a/src/mame/video/zaccaria.cpp
+++ b/src/mame/video/zaccaria.cpp
@@ -47,7 +47,7 @@ PALETTE_INIT_MEMBER(zaccaria_state, zaccaria)
compute_resistor_weights(0, 0xff, -1.0,
3, resistances_rg, weights_rg, 390, 0,
2, resistances_b, weights_b, 470, 0,
- 0, 0, 0, 0, 0);
+ 0, nullptr, nullptr, 0, 0);
for (i = 0; i < 0x200; i++)
{
diff --git a/src/mame/video/zx8301.cpp b/src/mame/video/zx8301.cpp
index a7c115e8237..708b8c4879f 100644
--- a/src/mame/video/zx8301.cpp
+++ b/src/mame/video/zx8301.cpp
@@ -66,7 +66,7 @@ ADDRESS_MAP_END
const address_space_config *zx8301_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == AS_0) ? &m_space_config : NULL;
+ return (spacenum == AS_0) ? &m_space_config : nullptr;
}
@@ -108,7 +108,7 @@ zx8301_device::zx8301_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, ZX8301, "Sinclair ZX8301", tag, owner, clock, "zx8301", __FILE__),
device_memory_interface(mconfig, *this),
device_video_interface(mconfig, *this),
- m_space_config("videoram", ENDIANNESS_LITTLE, 8, 17, 0, NULL, *ADDRESS_MAP_NAME(zx8301)),
+ m_space_config("videoram", ENDIANNESS_LITTLE, 8, 17, 0, nullptr, *ADDRESS_MAP_NAME(zx8301)),
m_cpu(*this),
m_write_vsync(*this),
m_dispoff(1),