summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2012-09-17 06:49:13 +0000
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2012-09-17 06:49:13 +0000
commite25c13f2532730ebf50d0cffa0147393fd8e0228 (patch)
treea6c25d1de7041f26afed559dbc6670fa550e6b41
parentf97e8f00818bd8d898facc206ed33ab72cf10a75 (diff)
Clean-ups and version bumpmame0147
note: hoarded dump removed too from coco_cart.xml, this will not be tolerated
-rw-r--r--hash/coco_cart.xml4
-rw-r--r--hash/fm7_disk.xml2
-rw-r--r--hash/mz2000_cass.xml4
-rw-r--r--hash/neogeo.xml2
-rw-r--r--hash/snes.xml2
-rw-r--r--hash/stv.xml118
-rw-r--r--src/emu/cpu/am29000/am29000.c2
-rw-r--r--src/emu/cpu/am29000/am29ops.h2
-rw-r--r--src/emu/cpu/apexc/apexcdsm.c2
-rw-r--r--src/emu/cpu/arm/arm.c2
-rw-r--r--src/emu/cpu/arm7/arm7core.h2
-rw-r--r--src/emu/cpu/cosmac/cosdasm.c2
-rw-r--r--src/emu/cpu/cubeqcpu/cubeqcpu.c6
-rw-r--r--src/emu/cpu/drcbec.c6
-rw-r--r--src/emu/cpu/dsp56k/dsp56k.h10
-rw-r--r--src/emu/cpu/dsp56k/dsp56pcu.c2
-rw-r--r--src/emu/cpu/esrip/esrip.c2
-rw-r--r--src/emu/cpu/g65816/g65816ds.c2
-rw-r--r--src/emu/cpu/h6280/h6280.h2
-rw-r--r--src/emu/cpu/h83002/h8priv.h8
-rw-r--r--src/emu/cpu/h83002/h8speriph.c2
-rw-r--r--src/emu/cpu/hcd62121/hcd62121d.c2
-rw-r--r--src/emu/cpu/hd61700/hd61700d.c2
-rw-r--r--src/emu/cpu/hd6309/6309dasm.c2
-rw-r--r--src/emu/cpu/i386/cycles.h4
-rw-r--r--src/emu/cpu/i386/i386priv.h6
-rw-r--r--src/emu/cpu/i86/i286.c2
-rw-r--r--src/emu/cpu/i860/i860dis.c2
-rw-r--r--src/emu/cpu/i960/i960dis.c2
-rw-r--r--src/emu/cpu/lh5801/5801dasm.c6
-rw-r--r--src/emu/cpu/m37710/m7700ds.c2
-rw-r--r--src/emu/cpu/m6502/m6502.c2
-rw-r--r--src/emu/cpu/m6502/m6502.h2
-rw-r--r--src/emu/cpu/m6502/m6509.c2
-rw-r--r--src/emu/cpu/m68000/m68k_in.c2
-rw-r--r--src/emu/cpu/m68000/m68kdasm.c2
-rw-r--r--src/emu/cpu/m68000/m68kmake.c8
-rw-r--r--src/emu/cpu/m6805/m6805.c2
-rw-r--r--src/emu/cpu/m6809/6809dasm.c2
-rw-r--r--src/emu/cpu/mb86233/mb86233.c2
-rw-r--r--src/emu/cpu/mips/mips3.c2
-rw-r--r--src/emu/cpu/nec/necpriv.h4
-rw-r--r--src/emu/cpu/nec/v25priv.h4
-rw-r--r--src/emu/cpu/powerpc/ppc_dasm.c2
-rw-r--r--src/emu/cpu/powerpc/ppccom.c4
-rw-r--r--src/emu/cpu/rsp/rsp.h4
-rw-r--r--src/emu/cpu/saturn/saturnds.c4
-rw-r--r--src/emu/cpu/sc61860/scdasm.c2
-rw-r--r--src/emu/cpu/sh2/sh2comn.h2
-rw-r--r--src/emu/cpu/sh4/sh4comn.h2
-rw-r--r--src/emu/cpu/sharc/sharc.c14
-rw-r--r--src/emu/cpu/sharc/sharc.h2
-rw-r--r--src/emu/cpu/sharc/sharcdma.c4
-rw-r--r--src/emu/cpu/sharc/sharcdsm.h2
-rw-r--r--src/emu/cpu/sharc/sharcops.h2
-rw-r--r--src/emu/cpu/spc700/spc700.c2
-rw-r--r--src/emu/cpu/spc700/spc700ds.c2
-rw-r--r--src/emu/cpu/superfx/superfx.c4
-rw-r--r--src/emu/cpu/tlcs900/900tbl.c2
-rw-r--r--src/emu/cpu/tlcs900/dasm900.c2
-rw-r--r--src/emu/cpu/tms32051/tms32051.c6
-rw-r--r--src/emu/cpu/tms9900/9900dasm.c4
-rw-r--r--src/emu/cpu/tms9900/99xxcore.h4
-rw-r--r--src/emu/cpu/tms9900/tms9900.h2
-rw-r--r--src/emu/cpu/tms9900/tms9900l.h20
-rw-r--r--src/emu/cpu/tms9900/tms9995.h2
-rw-r--r--src/emu/cpu/upd7810/upd7810.h2
-rw-r--r--src/emu/devcpu.h4
-rw-r--r--src/emu/distate.c4
-rw-r--r--src/emu/distate.h8
-rw-r--r--src/emu/drawgfx.c6
-rw-r--r--src/emu/drawgfx.h10
-rw-r--r--src/emu/emuopts.c6
-rw-r--r--src/emu/imagedev/floppy.c2
-rw-r--r--src/emu/machine/53c810.c4
-rw-r--r--src/emu/machine/6526cia.h2
-rw-r--r--src/emu/machine/68681.c4
-rw-r--r--src/emu/machine/8042kbdc.h2
-rw-r--r--src/emu/machine/latch8.h32
-rw-r--r--src/emu/machine/m6m80011ap.h2
-rw-r--r--src/emu/machine/matsucd.c2
-rw-r--r--src/emu/machine/msm6242.h2
-rw-r--r--src/emu/machine/net_lib.c6
-rw-r--r--src/emu/machine/net_lib.h8
-rw-r--r--src/emu/machine/netlist.c14
-rw-r--r--src/emu/machine/netlist.h44
-rw-r--r--src/emu/machine/pc16552d.c4
-rw-r--r--src/emu/machine/pckeybrd.h2
-rw-r--r--src/emu/machine/pic8259.c2
-rw-r--r--src/emu/machine/pit8253.c2
-rw-r--r--src/emu/machine/rp5h01.c6
-rw-r--r--src/emu/machine/rtc9701.h4
-rw-r--r--src/emu/machine/s3520cf.c2
-rw-r--r--src/emu/machine/s3520cf.h4
-rw-r--r--src/emu/machine/s3c2400.c2
-rw-r--r--src/emu/machine/s3c2400.h80
-rw-r--r--src/emu/machine/s3c2410.c2
-rw-r--r--src/emu/machine/s3c2410.h82
-rw-r--r--src/emu/machine/s3c2440.c2
-rw-r--r--src/emu/machine/s3c2440.h90
-rw-r--r--src/emu/machine/scsibus.c8
-rw-r--r--src/emu/machine/scsibus.h2
-rw-r--r--src/emu/machine/seibu_cop.c20
-rw-r--r--src/emu/machine/tms9901.h2
-rw-r--r--src/emu/machine/tms9902.h2
-rw-r--r--src/emu/machine/v3021.h2
-rw-r--r--src/emu/machine/wd33c93.c4
-rw-r--r--src/emu/romload.c4
-rw-r--r--src/emu/sound/c140.c2
-rw-r--r--src/emu/sound/c352.h2
-rw-r--r--src/emu/sound/discrete.c4
-rw-r--r--src/emu/sound/discrete.h2
-rw-r--r--src/emu/sound/es5503.h2
-rw-r--r--src/emu/sound/fm.c16
-rw-r--r--src/emu/sound/fm2612.c12
-rw-r--r--src/emu/sound/fmopl.c6
-rw-r--r--src/emu/sound/i5000.h2
-rw-r--r--src/emu/sound/k005289.c2
-rw-r--r--src/emu/sound/k007232.c2
-rw-r--r--src/emu/sound/k051649.c2
-rw-r--r--src/emu/sound/mos6560.c2
-rw-r--r--src/emu/sound/n63701x.c2
-rw-r--r--src/emu/sound/namco.c2
-rw-r--r--src/emu/sound/nes_defs.h12
-rw-r--r--src/emu/sound/s14001a.c2
-rw-r--r--src/emu/sound/sid6581.c2
-rw-r--r--src/emu/sound/sid6581.h2
-rw-r--r--src/emu/sound/sn76496.h2
-rw-r--r--src/emu/sound/tms5220.h2
-rw-r--r--src/emu/sound/upd7759.c6
-rw-r--r--src/emu/sound/ym2151.c4
-rw-r--r--src/emu/sound/ym2413.c6
-rw-r--r--src/emu/sound/ymf262.c6
-rw-r--r--src/emu/sound/ymf271.c6
-rw-r--r--src/emu/sound/ymf278b.c4
-rw-r--r--src/emu/sound/ymz770.h2
-rw-r--r--src/emu/sprite.c16
-rw-r--r--src/emu/sprite.h32
-rw-r--r--src/emu/video/cdp1862.c2
-rw-r--r--src/emu/video/huc6272.c48
-rw-r--r--src/emu/video/m50458.c22
-rw-r--r--src/emu/video/m50458.h2
-rw-r--r--src/emu/video/mb90082.c12
-rw-r--r--src/emu/video/mc6845.c40
-rw-r--r--src/emu/video/pc_vga.c12
-rw-r--r--src/emu/video/saa5050.c10
-rw-r--r--src/emu/video/saa5050.h2
-rw-r--r--src/emu/video/tlc34076.c2
-rw-r--r--src/emu/video/vector.c2
-rw-r--r--src/lib/formats/ace_tap.h2
-rw-r--r--src/lib/formats/d88_dsk.c4
-rw-r--r--src/lib/formats/flopimg.c2
-rw-r--r--src/lib/formats/xdf_dsk.h4
-rw-r--r--src/lib/util/bitmap.h6
-rw-r--r--src/lib/util/opresolv.h2
-rw-r--r--src/lib/util/options.c4
-rw-r--r--src/mame/audio/cage.c2
-rw-r--r--src/mame/audio/exidy440.c8
-rw-r--r--src/mame/audio/flower.c2
-rw-r--r--src/mame/audio/gomoku.c2
-rw-r--r--src/mame/audio/micro3d.c4
-rw-r--r--src/mame/audio/snk6502.c2
-rw-r--r--src/mame/audio/taito_en.c18
-rw-r--r--src/mame/audio/wiping.c2
-rw-r--r--src/mame/drivers/atlantis.c6
-rw-r--r--src/mame/drivers/boogwing.c2
-rw-r--r--src/mame/drivers/calchase.c6
-rw-r--r--src/mame/drivers/carpolo.c4
-rw-r--r--src/mame/drivers/chihiro.c6
-rw-r--r--src/mame/drivers/circusc.c4
-rw-r--r--src/mame/drivers/cobra.c116
-rw-r--r--src/mame/drivers/cyclemb.c2
-rw-r--r--src/mame/drivers/ddenlovr.c2
-rw-r--r--src/mame/drivers/djmain.c6
-rw-r--r--src/mame/drivers/finalizr.c4
-rw-r--r--src/mame/drivers/firebeat.c6
-rw-r--r--src/mame/drivers/funkball.c20
-rw-r--r--src/mame/drivers/g627.c4
-rw-r--r--src/mame/drivers/galaga.c16
-rw-r--r--src/mame/drivers/galaxold.c4
-rw-r--r--src/mame/drivers/gamecstl.c6
-rw-r--r--src/mame/drivers/gberet.c4
-rw-r--r--src/mame/drivers/glass.c22
-rw-r--r--src/mame/drivers/goldstar.c2
-rw-r--r--src/mame/drivers/gticlub.c28
-rw-r--r--src/mame/drivers/guab.c8
-rw-r--r--src/mame/drivers/hankin.c2
-rw-r--r--src/mame/drivers/homedata.c4
-rw-r--r--src/mame/drivers/homerun.c4
-rw-r--r--src/mame/drivers/hornet.c42
-rw-r--r--src/mame/drivers/jaguar.c6
-rw-r--r--src/mame/drivers/jpmmps.c4
-rw-r--r--src/mame/drivers/kinst.c6
-rw-r--r--src/mame/drivers/konamigx.c2
-rw-r--r--src/mame/drivers/konamim2.c18
-rw-r--r--src/mame/drivers/lasso.c6
-rw-r--r--src/mame/drivers/littlerb.c4
-rw-r--r--src/mame/drivers/magictg.c28
-rw-r--r--src/mame/drivers/majorpkr.c2
-rw-r--r--src/mame/drivers/maygayv1.c4
-rw-r--r--src/mame/drivers/mcr.c24
-rw-r--r--src/mame/drivers/mediagx.c6
-rw-r--r--src/mame/drivers/meritm.c2
-rw-r--r--src/mame/drivers/midqslvr.c6
-rw-r--r--src/mame/drivers/midvunit.c6
-rw-r--r--src/mame/drivers/mrdo.c4
-rw-r--r--src/mame/drivers/mrjong.c6
-rw-r--r--src/mame/drivers/namcoic.c22
-rw-r--r--src/mame/drivers/namcos2.c2
-rw-r--r--src/mame/drivers/namcos23.c12
-rw-r--r--src/mame/drivers/naomi.c18
-rw-r--r--src/mame/drivers/nbmj9195.c12
-rw-r--r--src/mame/drivers/nss.c98
-rw-r--r--src/mame/drivers/nwk-tr.c14
-rw-r--r--src/mame/drivers/pachifev.c4
-rw-r--r--src/mame/drivers/panicr.c2
-rw-r--r--src/mame/drivers/peplus.c46
-rw-r--r--src/mame/drivers/pingpong.c4
-rw-r--r--src/mame/drivers/polepos.c6
-rw-r--r--src/mame/drivers/pong.c48
-rw-r--r--src/mame/drivers/qdrmfgp.c12
-rw-r--r--src/mame/drivers/queen.c6
-rw-r--r--src/mame/drivers/retofinv.c6
-rw-r--r--src/mame/drivers/savquest.c6
-rw-r--r--src/mame/drivers/sbugger.c6
-rw-r--r--src/mame/drivers/seattle.c36
-rw-r--r--src/mame/drivers/segag80r.c4
-rw-r--r--src/mame/drivers/segas16b.c2
-rw-r--r--src/mame/drivers/segas32.c2
-rw-r--r--src/mame/drivers/senjyo.c4
-rw-r--r--src/mame/drivers/sfcbox.c44
-rw-r--r--src/mame/drivers/sg1000a.c4
-rw-r--r--src/mame/drivers/spaceg.c10
-rw-r--r--src/mame/drivers/spectra.c2
-rw-r--r--src/mame/drivers/sprcros2.c4
-rw-r--r--src/mame/drivers/subsino2.c8
-rw-r--r--src/mame/drivers/suna8.c2
-rw-r--r--src/mame/drivers/taitogn.c6
-rw-r--r--src/mame/drivers/taitotz.c8
-rw-r--r--src/mame/drivers/taitowlf.c6
-rw-r--r--src/mame/drivers/techno.c8
-rw-r--r--src/mame/drivers/ttchamp.c8
-rw-r--r--src/mame/drivers/tumbleb.c2
-rw-r--r--src/mame/drivers/twinkle.c6
-rw-r--r--src/mame/drivers/vegas.c40
-rw-r--r--src/mame/drivers/vertigo.c2
-rw-r--r--src/mame/drivers/viper.c26
-rw-r--r--src/mame/drivers/voyager.c6
-rw-r--r--src/mame/drivers/xtom3d.c6
-rw-r--r--src/mame/drivers/zaxxon.c6
-rw-r--r--src/mame/drivers/zn.c12
-rw-r--r--src/mame/includes/armedf.h2
-rw-r--r--src/mame/includes/asuka.h2
-rw-r--r--src/mame/includes/dec0.h2
-rw-r--r--src/mame/includes/deco32.h2
-rw-r--r--src/mame/includes/galaga.h6
-rw-r--r--src/mame/includes/gberet.h2
-rw-r--r--src/mame/includes/gstriker.h6
-rw-r--r--src/mame/includes/homerun.h2
-rw-r--r--src/mame/includes/irobot.h2
-rw-r--r--src/mame/includes/jaguar.h4
-rw-r--r--src/mame/includes/megadriv.h4
-rw-r--r--src/mame/includes/micro3d.h2
-rw-r--r--src/mame/includes/midtunit.h2
-rw-r--r--src/mame/includes/namcoic.h2
-rw-r--r--src/mame/includes/namcos1.h2
-rw-r--r--src/mame/includes/namcos2.h6
-rw-r--r--src/mame/includes/playch10.h2
-rw-r--r--src/mame/includes/qix.h2
-rw-r--r--src/mame/includes/segag80r.h4
-rw-r--r--src/mame/includes/segahang.h4
-rw-r--r--src/mame/includes/snes.h4
-rw-r--r--src/mame/includes/spcforce.h2
-rw-r--r--src/mame/includes/suna8.h2
-rw-r--r--src/mame/includes/suprnova.h2
-rw-r--r--src/mame/includes/vectrex.h2
-rw-r--r--src/mame/includes/vertigo.h6
-rw-r--r--src/mame/includes/zodiack.h2
-rw-r--r--src/mame/machine/atarigen.c4
-rw-r--r--src/mame/machine/cdi070.h16
-rw-r--r--src/mame/machine/decoprot.c2
-rw-r--r--src/mame/machine/kaneko_calc3.c2
-rw-r--r--src/mame/machine/kaneko_calc3.h2
-rw-r--r--src/mame/machine/kaneko_hit.h4
-rw-r--r--src/mame/machine/md_cart.c2
-rw-r--r--src/mame/machine/mega32x.c16
-rw-r--r--src/mame/machine/mega32x.h10
-rw-r--r--src/mame/machine/megacd.c12
-rw-r--r--src/mame/machine/megacd.h8
-rw-r--r--src/mame/machine/megavdp.c4
-rw-r--r--src/mame/machine/pckeybrd.c4
-rw-r--r--src/mame/machine/pxa255.h14
-rw-r--r--src/mame/machine/qix.c8
-rw-r--r--src/mame/machine/segaic16.c28
-rw-r--r--src/mame/machine/segaic16.h4
-rw-r--r--src/mame/machine/seicop.c28
-rw-r--r--src/mame/machine/snes.c18
-rw-r--r--src/mame/machine/snes7110.c2
-rw-r--r--src/mame/machine/snescx4.h2
-rw-r--r--src/mame/machine/snessdd1.c4
-rw-r--r--src/mame/machine/steppers.c2
-rw-r--r--src/mame/machine/stvcd.c12
-rw-r--r--src/mame/video/armedf.c2
-rw-r--r--src/mame/video/bfm_dm01.c2
-rw-r--r--src/mame/video/bwing.c20
-rw-r--r--src/mame/video/dc.c2
-rw-r--r--src/mame/video/deco16ic.h4
-rw-r--r--src/mame/video/galaxian.c2
-rw-r--r--src/mame/video/gp9001.h4
-rw-r--r--src/mame/video/hng64.c2
-rw-r--r--src/mame/video/homerun.c24
-rw-r--r--src/mame/video/jaguar.c12
-rw-r--r--src/mame/video/kaneko_spr.h2
-rw-r--r--src/mame/video/konamigx.c4
-rw-r--r--src/mame/video/konicdev.h10
-rw-r--r--src/mame/video/legionna.c20
-rw-r--r--src/mame/video/madalien.c4
-rw-r--r--src/mame/video/mcd212.h2
-rw-r--r--src/mame/video/midzeus2.c2
-rw-r--r--src/mame/video/model2.c8
-rw-r--r--src/mame/video/model3.c2
-rw-r--r--src/mame/video/namcona1.c10
-rw-r--r--src/mame/video/namcos21.c4
-rw-r--r--src/mame/video/namcos22.c4
-rw-r--r--src/mame/video/sega16sp.c352
-rw-r--r--src/mame/video/sega16sp.h20
-rw-r--r--src/mame/video/segahang.c4
-rw-r--r--src/mame/video/system16.c16
-rw-r--r--src/mame/video/taitoic.h20
-rw-r--r--src/mame/video/vdc.c2
-rw-r--r--src/mess/audio/mea8000.c6
-rw-r--r--src/mess/audio/mos7360.c18
-rw-r--r--src/mess/audio/socrates.c2
-rw-r--r--src/mess/audio/spchroms.h2
-rw-r--r--src/mess/audio/svision.c8
-rw-r--r--src/mess/devices/sonydriv.c4
-rw-r--r--src/mess/drivers/a2600.c2
-rw-r--r--src/mess/drivers/aim65.c10
-rw-r--r--src/mess/drivers/apollo.c4
-rw-r--r--src/mess/drivers/apricot.c6
-rw-r--r--src/mess/drivers/apricotp.c4
-rw-r--r--src/mess/drivers/bebox.c6
-rw-r--r--src/mess/drivers/c128.c40
-rw-r--r--src/mess/drivers/c64.c54
-rw-r--r--src/mess/drivers/cgenie.c2
-rw-r--r--src/mess/drivers/cybiko.c2
-rw-r--r--src/mess/drivers/gba.c4
-rw-r--r--src/mess/drivers/geneve.c4
-rw-r--r--src/mess/drivers/hp49gp.c2
-rw-r--r--src/mess/drivers/ht68k.c10
-rw-r--r--src/mess/drivers/ip20.c4
-rw-r--r--src/mess/drivers/ip22.c8
-rw-r--r--src/mess/drivers/juicebox.c2
-rw-r--r--src/mess/drivers/mycom.c4
-rw-r--r--src/mess/drivers/mz2000.c6
-rw-r--r--src/mess/drivers/mz700.c4
-rw-r--r--src/mess/drivers/ng_aes.c4
-rw-r--r--src/mess/drivers/pc.c4
-rw-r--r--src/mess/drivers/pc8801.c6
-rw-r--r--src/mess/drivers/pc88va.c2
-rw-r--r--src/mess/drivers/pc9801.c4
-rw-r--r--src/mess/drivers/pcfx.c24
-rw-r--r--src/mess/drivers/pcw16.c2
-rw-r--r--src/mess/drivers/pockstat.c12
-rw-r--r--src/mess/drivers/psx.c2
-rw-r--r--src/mess/drivers/pv1000.c2
-rw-r--r--src/mess/drivers/pv2000.c4
-rw-r--r--src/mess/drivers/rvoice.c4
-rw-r--r--src/mess/drivers/sgi_ip6.c2
-rw-r--r--src/mess/drivers/sitcom.c4
-rw-r--r--src/mess/drivers/smc777.c6
-rw-r--r--src/mess/drivers/ti99_4x.c6
-rw-r--r--src/mess/drivers/ti99_8.c2
-rw-r--r--src/mess/drivers/vboy.c48
-rw-r--r--src/mess/drivers/vic10.c6
-rw-r--r--src/mess/drivers/vic20.c12
-rw-r--r--src/mess/drivers/vk100.c2
-rw-r--r--src/mess/formats/spec_snqk.h2
-rw-r--r--src/mess/formats/timex_dck.h2
-rw-r--r--src/mess/includes/amstrad.h4
-rw-r--r--src/mess/includes/apple1.h2
-rw-r--r--src/mess/includes/apple2.h4
-rw-r--r--src/mess/includes/apple2gs.h4
-rw-r--r--src/mess/includes/bebox.h2
-rw-r--r--src/mess/includes/c65.h6
-rw-r--r--src/mess/includes/cgenie.h2
-rw-r--r--src/mess/includes/channelf.h2
-rw-r--r--src/mess/includes/compis.h10
-rw-r--r--src/mess/includes/concept.h2
-rw-r--r--src/mess/includes/cxhumax.h4
-rw-r--r--src/mess/includes/cybiko.h4
-rw-r--r--src/mess/includes/dgn_beta.h4
-rw-r--r--src/mess/includes/electron.h2
-rw-r--r--src/mess/includes/fm7.h8
-rw-r--r--src/mess/includes/gamecom.h6
-rw-r--r--src/mess/includes/gb.h2
-rw-r--r--src/mess/includes/gmaster.h4
-rw-r--r--src/mess/includes/gp32.h10
-rw-r--r--src/mess/includes/hp48.h2
-rw-r--r--src/mess/includes/intv.h2
-rw-r--r--src/mess/includes/kyocera.h2
-rw-r--r--src/mess/includes/lisa.h8
-rw-r--r--src/mess/includes/lynx.h10
-rw-r--r--src/mess/includes/mac.h4
-rw-r--r--src/mess/includes/macpci.h2
-rw-r--r--src/mess/includes/mbc55x.h4
-rw-r--r--src/mess/includes/nascom1.h4
-rw-r--r--src/mess/includes/nes.h4
-rw-r--r--src/mess/includes/odyssey2.h2
-rw-r--r--src/mess/includes/oric.h4
-rw-r--r--src/mess/includes/p2000t.h2
-rw-r--r--src/mess/includes/pc8401a.h2
-rw-r--r--src/mess/includes/pce.h2
-rw-r--r--src/mess/includes/pdp1.h10
-rw-r--r--src/mess/includes/pet.h2
-rw-r--r--src/mess/includes/pokemini.h4
-rw-r--r--src/mess/includes/rmnimbus.h16
-rw-r--r--src/mess/includes/spectrum.h2
-rw-r--r--src/mess/includes/ssystem3.h4
-rw-r--r--src/mess/includes/svi318.h4
-rw-r--r--src/mess/includes/svision.h6
-rw-r--r--src/mess/includes/tx0.h8
-rw-r--r--src/mess/includes/vc4000.h6
-rw-r--r--src/mess/includes/vic20.h2
-rw-r--r--src/mess/includes/wswan.h8
-rw-r--r--src/mess/includes/x07.h2
-rw-r--r--src/mess/includes/x1.h6
-rw-r--r--src/mess/includes/z80ne.h2
-rw-r--r--src/mess/machine/990_hd.c8
-rw-r--r--src/mess/machine/990_tap.c2
-rw-r--r--src/mess/machine/a2cffa.c6
-rw-r--r--src/mess/machine/amigacrt.c2
-rw-r--r--src/mess/machine/amigakbd.c2
-rw-r--r--src/mess/machine/apollo_net.c2
-rw-r--r--src/mess/machine/applefdc.c2
-rw-r--r--src/mess/machine/at45dbxx.c6
-rw-r--r--src/mess/machine/ay31015.c2
-rw-r--r--src/mess/machine/ay31015.h8
-rw-r--r--src/mess/machine/c128.c12
-rw-r--r--src/mess/machine/c1541.c16
-rw-r--r--src/mess/machine/c64_ide64.c6
-rw-r--r--src/mess/machine/cbmiec.c4
-rw-r--r--src/mess/machine/coco_fdc.h2
-rw-r--r--src/mess/machine/diag264_lb_iec.h2
-rw-r--r--src/mess/machine/diag264_lb_user.h2
-rw-r--r--src/mess/machine/ds1315.c2
-rw-r--r--src/mess/machine/i8271.c2
-rw-r--r--src/mess/machine/i8271.h2
-rw-r--r--src/mess/machine/isa_ide.c6
-rw-r--r--src/mess/machine/isa_sblaster.c38
-rw-r--r--src/mess/machine/isa_stereo_fx.c2
-rw-r--r--src/mess/machine/kay_kbd.c2
-rw-r--r--src/mess/machine/kc_d004.c6
-rw-r--r--src/mess/machine/kr2376.h4
-rw-r--r--src/mess/machine/mc68328.h4
-rw-r--r--src/mess/machine/mc6843.c2
-rw-r--r--src/mess/machine/mc6846.c2
-rw-r--r--src/mess/machine/mc6854.c2
-rw-r--r--src/mess/machine/mos8722.c6
-rw-r--r--src/mess/machine/nes_unif.c2
-rw-r--r--src/mess/machine/petcass.h4
-rw-r--r--src/mess/machine/rmnimbus.c2
-rw-r--r--src/mess/machine/s3c44b0.h64
-rw-r--r--src/mess/machine/sgi.c2
-rw-r--r--src/mess/machine/smartmed.c6
-rw-r--r--src/mess/machine/smc92x4.h2
-rw-r--r--src/mess/machine/strata.c4
-rw-r--r--src/mess/machine/thomson.c2
-rw-r--r--src/mess/machine/ti99/datamux.h4
-rw-r--r--src/mess/machine/ti99/genboard.h4
-rw-r--r--src/mess/machine/ti99/grom.h2
-rw-r--r--src/mess/machine/ti99/gromport.h4
-rw-r--r--src/mess/machine/ti99/joyport.h2
-rw-r--r--src/mess/machine/ti99/mapper8.h4
-rw-r--r--src/mess/machine/ti99/peribox.h2
-rw-r--r--src/mess/machine/ti99/speech8.h2
-rw-r--r--src/mess/machine/ti99/ti99_hd.h2
-rw-r--r--src/mess/machine/ti99/tn_ide.c6
-rw-r--r--src/mess/machine/ti99/videowrp.h2
-rw-r--r--src/mess/machine/upd765.c4
-rw-r--r--src/mess/machine/upd765.h4
-rw-r--r--src/mess/machine/vp620.c4
-rw-r--r--src/mess/machine/wangpc_mvc.c2
-rw-r--r--src/mess/tools/imgtool/charconv.h2
-rw-r--r--src/mess/tools/imgtool/imgterrs.h2
-rw-r--r--src/mess/tools/imgtool/library.h18
-rw-r--r--src/mess/tools/imgtool/modules/amiga.c4
-rw-r--r--src/mess/tools/imgtool/modules/concept.c12
-rw-r--r--src/mess/tools/imgtool/modules/fat.c4
-rw-r--r--src/mess/tools/imgtool/modules/mac.c72
-rw-r--r--src/mess/tools/imgtool/modules/macutil.h4
-rw-r--r--src/mess/tools/imgtool/modules/os9.c2
-rw-r--r--src/mess/tools/imgtool/modules/prodos.c2
-rw-r--r--src/mess/tools/imgtool/modules/ti99.c48
-rw-r--r--src/mess/tools/imgtool/modules/ti990hd.c32
-rw-r--r--src/mess/tools/imgtool/modules/vzdos.c4
-rw-r--r--src/mess/tools/imgtool/stream.c2
-rw-r--r--src/mess/video/733_asr.c2
-rw-r--r--src/mess/video/733_asr.h2
-rw-r--r--src/mess/video/911_chr.h2
-rw-r--r--src/mess/video/911_vdt.c2
-rw-r--r--src/mess/video/911_vdt.h4
-rw-r--r--src/mess/video/apollo.c2
-rw-r--r--src/mess/video/apple1.c2
-rw-r--r--src/mess/video/crt.c4
-rw-r--r--src/mess/video/dl1416.c2
-rw-r--r--src/mess/video/epnick.c4
-rw-r--r--src/mess/video/isa_vga_ati.c4
-rw-r--r--src/mess/video/isa_vga_ati.h2
-rw-r--r--src/mess/video/mos6566.c4
-rw-r--r--src/mess/video/newport.c8
-rw-r--r--src/mess/video/vic4567.h2
-rw-r--r--src/mess/video/vic6567.h2
-rw-r--r--src/osd/osdnet.h2
-rw-r--r--src/tools/jedutil.c8
-rw-r--r--src/version.c2
516 files changed, 2141 insertions, 2141 deletions
diff --git a/hash/coco_cart.xml b/hash/coco_cart.xml
index e8c67acca0b..bbe0f7e828b 100644
--- a/hash/coco_cart.xml
+++ b/hash/coco_cart.xml
@@ -52,7 +52,7 @@ Compiled by K1W1 and Cowering (from GoodCoCo)
-->
<softwarelist name="coco_cart" description="Tandy Radio Shack Color Computer cartridges">
- <software name="alphazoo">
+ <!--software name="alphazoo">
<description>Alphabet Zoo</description>
<year>1984</year>
<publisher>Tandy</publisher>
@@ -64,7 +64,7 @@ Compiled by K1W1 and Cowering (from GoodCoCo)
<rom name="alphabet zoo (1984)(26-3170)(spinnaker).rom" size="32768" crc="a8a83f53" sha1="b6c8048549c60909c6a9e8e808df342d6491eae2" status="baddump" offset="0" />
</dataarea>
</part>
- </software>
+ </software-->
<software name="amazing">
<description>A Mazing World of Malcom Mortar</description>
diff --git a/hash/fm7_disk.xml b/hash/fm7_disk.xml
index dcbf8f1e9ce..dd78537bce3 100644
--- a/hash/fm7_disk.xml
+++ b/hash/fm7_disk.xml
@@ -1550,7 +1550,7 @@ systems, for the moment they stay here!
タイトル:メイガス
メーカー:ソフトプロ 機 種 :FM-7
ジャンル:TBL 備 考 :RUN"MAGUS"で起動
-
+
タイトル:リザード
メーカー:マイクロキャビン 機 種 :FM-7
ジャンル:RPG 備 考 :RUN"LIZARD"で起動
diff --git a/hash/mz2000_cass.xml b/hash/mz2000_cass.xml
index 87dfca636d9..e30943fc11e 100644
--- a/hash/mz2000_cass.xml
+++ b/hash/mz2000_cass.xml
@@ -48,7 +48,7 @@
</part>
</software>
-<!-- This was was obtained by removing the MTW header from the available jelda.mtw.
+<!-- This was was obtained by removing the MTW header from the available jelda.mtw.
was any info lost? i.e. was the wav inside the mtw the complete content of the MZ tape? -->
<software name="jelda" supported="no">
<description>Jelda</description>
@@ -61,7 +61,7 @@
</part>
</software>
-<!-- This was was obtained by removing the MTW header from the available jelda.mtw.
+<!-- This was was obtained by removing the MTW header from the available jelda.mtw.
was any info lost? i.e. was the wav inside the mtw the complete content of the MZ tape? -->
<software name="jelda2" supported="no">
<description>Jelda 2</description>
diff --git a/hash/neogeo.xml b/hash/neogeo.xml
index 98052c185c3..30d60692779 100644
--- a/hash/neogeo.xml
+++ b/hash/neogeo.xml
@@ -6294,7 +6294,7 @@
<rom name="242-v3.v3" offset="0x800000" size="0x400000" crc="044ea4e1" sha1="062a2f2e52098d73bc31c9ad66f5db8080395ce8" /> <!-- TC5332204 -->
<rom name="242-v4.v4" offset="0xc00000" size="0x400000" crc="7985ea30" sha1="54ed5f0324de6164ea81943ebccb3e8d298368ec" /> <!-- TC5332204 -->
</dataarea>
- <dataarea name="sprites" size="0x4000000">
+ <dataarea name="sprites" size="0x4000000">
<rom loadflag="load16_byte" name="242-c1.c1" offset="0x000000" size="0x800000" crc="e564ecd6" sha1="78f22787a204f26bae9b2b1c945ddbc27143352f" /> <!-- Plane 0,1 --> <!-- TC5364205 -->
<rom loadflag="load16_byte" name="242-c2.c2" offset="0x000001" size="0x800000" crc="bd959b60" sha1="2c97c59e77c9a3fe7d664e741d37944f3d56c10b" /> <!-- Plane 2,3 --> <!-- TC5364205 -->
<rom loadflag="load16_byte" name="242-c3.c3" offset="0x1000000" size="0x800000" crc="22127b4f" sha1="bd0d00f889d9da7c6ac48f287d9ed8c605ae22cf" /> <!-- Plane 0,1 --> <!-- TC5364205 -->
diff --git a/hash/snes.xml b/hash/snes.xml
index ac7c2183c60..4a2e908a344 100644
--- a/hash/snes.xml
+++ b/hash/snes.xml
@@ -24730,7 +24730,7 @@ Alternate board (XL-1)
<!-- End of verified prototypes -->
-<!-- Unconfirmed prototypes
+<!-- Unconfirmed prototypes
ROMs labeled as prototypes without documentation or with doubts on their legitimacy -->
<software name="arcus">
diff --git a/hash/stv.xml b/hash/stv.xml
index 4c1f4f63469..dd56945fc34 100644
--- a/hash/stv.xml
+++ b/hash/stv.xml
@@ -7,7 +7,7 @@
-->
<softwarelist name="stv" description="Sega Titan Video cartridges">
-
+
<!-- Game: Astra SuperStars -->
<software name="astrass" supported="no" >
<description>Astra SuperStars (J 980514 V1.002)</description>
@@ -27,7 +27,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Baku Baku Animal -->
<software name="bakubaku">
<description>Baku Baku Animal (J 950407 V1.000)</description>
@@ -43,7 +43,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Batman Forever -->
<software name="batmanfr" supported="no" >
<description>Batman Forever (JUE 960507 V1.000)</description>
@@ -68,7 +68,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Columns '97 -->
<software name="colmns97" supported="no">
<description>Columns '97 (JET 961209 V1.000)</description>
@@ -82,7 +82,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Cotton 2 -->
<software name="cotton2">
<description>Cotton 2 (JUET 970902 V1.000)</description>
@@ -101,7 +101,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Cotton Boomerang -->
<software name="cottonbm" supported="no">
<description>Cotton Boomerang (JUET 980709 V1.000)</description>
@@ -119,7 +119,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Critter Crusher -->
<software name="critcrsh" supported="no" >
<description>Critter Crusher (EA 951204 V1.000)</description>
@@ -134,7 +134,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Danchi de Hanafuda -->
<software name="danchih" supported="no">
<description>Danchi de Hanafuda (J 990607 V1.400)</description>
@@ -150,7 +150,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Danchi de Quiz Okusan Yontaku Desuyo! -->
<software name="danchiq" supported="no">
<description>Danchi de Quiz Okusan Yontaku Desuyo! (J 001128 V1.200)</description>
@@ -171,7 +171,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Decathlete -->
<software name="decathlt" supported="no">
<description>Decathlete (JUET 960709 V1.001)</description>
@@ -188,7 +188,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Decathlete -->
<software name="decathlto" cloneof="decathlt" supported="no">
<description>Decathlete (JUET 960424 V1.000)</description>
@@ -205,7 +205,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Die Hard Arcade -->
<software name="diehard">
<description>Die Hard Arcade (UET 960515 V1.000)</description>
@@ -221,7 +221,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Dynamite Deka -->
<software name="dnmtdeka" cloneof="diehard">
<description>Dynamite Deka (J 960515 V1.000)</description>
@@ -237,7 +237,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Ejihon Tantei Jimusyo -->
<software name="ejihon">
<description>Ejihon Tantei Jimusyo (J 950613 V1.000)</description>
@@ -255,7 +255,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Touryuu Densetsu Elan-Doree / Elan Doree - Legend of Dragoon -->
<software name="elandore" supported="no">
<description>Touryuu Densetsu Elan-Doree / Elan Doree - Legend of Dragoon (JUET 980922 V1.006)</description>
@@ -274,7 +274,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Final Fight Revenge -->
<software name="ffreveng" supported="no">
<description>Final Fight Revenge (JUET 990714 V1.000)</description>
@@ -292,7 +292,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Funky Head Boxers -->
<software name="fhboxers" supported="no" >
<description>Funky Head Boxers (JUETBKAL 951218 V1.000)</description>
@@ -313,7 +313,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Find Love -->
<software name="findlove" supported="no" >
<description>Find Love (J 971212 V1.000)</description>
@@ -337,7 +337,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Final Arch -->
<software name="finlarch" cloneof="smleague">
<description>Final Arch (J 950714 V1.001)</description>
@@ -359,7 +359,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Golden Axe - The Duel -->
<software name="gaxeduel">
<description>Golden Axe - The Duel (JUETL 950117 V1.000)</description>
@@ -378,7 +378,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Guardian Force -->
<software name="grdforce" supported="no">
<description>Guardian Force (JUET 980318 V0.105)</description>
@@ -395,7 +395,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Groove on Fight - Gouketsuji Ichizoku 3 -->
<software name="groovef" supported="no">
<description>Groove on Fight - Gouketsuji Ichizoku 3 (J 970416 V1.001)</description>
@@ -415,7 +415,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Hanagumi Taisen Columns - Sakura Wars -->
<software name="hanagumi" supported="no">
<description>Hanagumi Taisen Columns - Sakura Wars (J 971007 V1.010)</description>
@@ -438,7 +438,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Karaoke Quiz Intro Don Don! -->
<software name="introdon" supported="no">
<description>Karaoke Quiz Intro Don Don! (J 960213 V1.000)</description>
@@ -458,7 +458,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Pro Mahjong Kiwame S -->
<!-- Note: you have to init it manually via test mode -->
<software name="kiwames">
@@ -475,7 +475,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Magical Zunou Power -->
<software name="magzun" supported="no" >
<description>Magical Zunou Power (J 961031 V1.000)</description>
@@ -493,7 +493,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Maru-Chan de Goo! -->
<software name="maruchan">
<description>Maru-Chan de Goo! (J 971216 V1.000)</description>
@@ -513,7 +513,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Mausuke no Ojama the World -->
<software name="mausuke">
<description>Mausuke no Ojama the World (J 960314 V1.000)</description>
@@ -534,7 +534,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Microman Battle Charge -->
<software name="micrombc" supported="no" >
<description>Microman Battle Charge (J 990326 V1.000)</description>
@@ -553,7 +553,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Virtual Mahjong 2 - My Fair Lady -->
<software name="myfairld" supported="no" >
<description>Virtual Mahjong 2 - My Fair Lady (J 980608 V1.000)</description>
@@ -572,7 +572,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Name Club Ver.3 -->
<software name="nclubv3" supported="no" >
<description>Name Club Ver.3 (J 970723 V1.000)</description>
@@ -593,7 +593,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Othello Shiyouyo -->
<software name="othellos" supported="no">
<description>Othello Shiyouyo (J 980423 V1.002)</description>
@@ -609,7 +609,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Pebble Beach - The Great Shot -->
<software name="pblbeach">
<description>Pebble Beach - The Great Shot (JUE 950913 V0.990)</description>
@@ -626,7 +626,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Print Club 2 -->
<software name="pclub2" supported="no">
<description>Print Club 2 (U 970921 V1.000)</description>
@@ -642,7 +642,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Print Club 2 Vol. 3 -->
<software name="pclub2v3" cloneof="pclub2" supported="no">
<description>Print Club 2 Vol. 3 (U 990310 V1.000)</description>
@@ -658,7 +658,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Print Club Pokemon B -->
<software name="pclubpok" supported="no">
<description>Print Club Pokemon B (U 991126 V1.000)</description>
@@ -674,7 +674,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Princess Clara Daisakusen -->
<software name="prikura">
<description>Princess Clara Daisakusen (J 960910 V1.000)</description>
@@ -690,7 +690,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Puyo Puyo Sun -->
<software name="puyosun" supported="no">
<description>Puyo Puyo Sun (J 961115 V0.001)</description>
@@ -711,7 +711,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Radiant Silvergun -->
<software name="rsgun" supported="no">
<description>Radiant Silvergun (JUET 980523 V1.000)</description>
@@ -727,7 +727,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Puzzle &amp; Action: Sando-R -->
<software name="sandor">
<description>Puzzle &amp; Action: Sando-R (J 951114 V1.000)</description>
@@ -747,7 +747,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: DaeJeon! SanJeon SuJeon -->
<software name="sanjeon" cloneof="sasissu" supported="no" >
<description>DaeJeon! SanJeon SuJeon (AJTUE 990412 V1.000)</description>
@@ -770,7 +770,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Taisen Tanto-R Sashissu!! -->
<software name="sasissu" supported="no">
<description>Taisen Tanto-R Sashissu!! (J 980216 V1.000)</description>
@@ -788,7 +788,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Sea Bass Fishing -->
<software name="seabass" supported="no" >
<description>Sea Bass Fishing (JUET 971110 V0.001)</description>
@@ -808,7 +808,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Shanghai - The Great Wall / Shanghai Triple Threat -->
<software name="shanhigw">
<description>Shanghai - The Great Wall / Shanghai Triple Threat (JUE 950623 V1.005)</description>
@@ -821,7 +821,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Shienryu -->
<software name="shienryu" supported="no" >
<description>Shienryu (JUET 961226 V1.000)</description>
@@ -836,7 +836,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Super Major League -->
<software name="smleague">
<description>Super Major League (U 960108 V1.000)</description>
@@ -854,7 +854,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Soukyugurentai / Terra Diver -->
<software name="sokyugrt" supported="no" >
<description>Soukyugurentai / Terra Diver (JUET 960821 V1.000)</description>
@@ -870,7 +870,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Steep Slope Sliders -->
<software name="sss" supported="no" >
<description>Steep Slope Sliders (JUET 981110 V1.000)</description>
@@ -888,7 +888,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Stress Busters -->
<software name="stress" supported="no" >
<description>Stress Busters (J 981020 V1.000)</description>
@@ -910,7 +910,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Suikoenbu / Outlaws of the Lost Dynasty -->
<software name="suikoenb">
<description>Suikoenbu / Outlaws of the Lost Dynasty (JUETL 950314 V2.001)</description>
@@ -930,7 +930,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Technical Bowling -->
<software name="techbowl" supported="no" >
<description>Technical Bowling (J 971212 V1.000)</description>
@@ -946,7 +946,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Puzzle &amp; Action: Treasure Hunt -->
<software name="thunt" supported="no" cloneof="sandor">
<description>Puzzle &amp; Action: Treasure Hunt (JUET 970901 V2.00E)</description>
@@ -963,7 +963,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Puzzle &amp; Action: BoMulEul Chajara -->
<software name="thuntk" supported="no" cloneof="sandor">
<description>Puzzle &amp; Action: BoMulEul Chajara (JUET 970125 V2.00K)</description>
@@ -984,7 +984,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Tecmo World Cup '98 -->
<software name="twcup98" supported="no" >
<description>Tecmo World Cup '98 (JUET 980410 V1.000)</description>
@@ -1000,7 +1000,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Virtua Fighter Kids -->
<software name="vfkids" supported="no" >
<description>Virtua Fighter Kids (JUET 960319 V0.000)</description>
@@ -1021,7 +1021,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Virtua Fighter Remix -->
<software name="vfremix">
<description>Virtua Fighter Remix (JUETBKAL 950428 V1.000)</description>
@@ -1039,7 +1039,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Virtual Mahjong -->
<software name="vmahjong" supported="no" >
<description>Virtual Mahjong (J 961214 V1.000)</description>
@@ -1058,7 +1058,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Winter Heat -->
<software name="winterht" supported="no" >
<description>Winter Heat (JUET 971012 V1.000)</description>
@@ -1077,7 +1077,7 @@
</dataarea>
</part>
</software>
-
+
<!-- Game: Zen Nippon Pro-Wrestling Featuring Virtua -->
<software name="znpwfv" supported="no" >
<description>Zen Nippon Pro-Wrestling Featuring Virtua (J 971123 V1.000)</description>
diff --git a/src/emu/cpu/am29000/am29000.c b/src/emu/cpu/am29000/am29000.c
index b4b27fd9f93..5506a668af6 100644
--- a/src/emu/cpu/am29000/am29000.c
+++ b/src/emu/cpu/am29000/am29000.c
@@ -75,7 +75,7 @@
STRUCTURES & TYPEDEFS
***************************************************************************/
-struct am29000_state
+struct am29000_state
{
INT32 icount;
UINT32 pc;
diff --git a/src/emu/cpu/am29000/am29ops.h b/src/emu/cpu/am29000/am29ops.h
index 972778904e4..d496bbb63e2 100644
--- a/src/emu/cpu/am29000/am29ops.h
+++ b/src/emu/cpu/am29000/am29ops.h
@@ -61,7 +61,7 @@
STRUCTS
***************************************************************************/
-struct op_info
+struct op_info
{
void (*opcode)(am29000_state *);
UINT32 flags;
diff --git a/src/emu/cpu/apexc/apexcdsm.c b/src/emu/cpu/apexc/apexcdsm.c
index fcc5650bffa..25a48f8a531 100644
--- a/src/emu/cpu/apexc/apexcdsm.c
+++ b/src/emu/cpu/apexc/apexcdsm.c
@@ -63,7 +63,7 @@
*/
enum format_type {branch, shiftl, shiftr, multiply, store, swap, one_address, two_address};
-struct instr_desc
+struct instr_desc
{
const char *mnemonic;
format_type format; /* -> X and Y are format */
diff --git a/src/emu/cpu/arm/arm.c b/src/emu/cpu/arm/arm.c
index 7fce7199798..cb99f0347fa 100644
--- a/src/emu/cpu/arm/arm.c
+++ b/src/emu/cpu/arm/arm.c
@@ -227,7 +227,7 @@ enum
/* Private Data */
/* sArmRegister defines the CPU state */
-struct ARM_REGS
+struct ARM_REGS
{
int icount;
UINT32 sArmRegister[kNumRegisters];
diff --git a/src/emu/cpu/arm7/arm7core.h b/src/emu/cpu/arm7/arm7core.h
index 926c83726f7..14a7a8c9195 100644
--- a/src/emu/cpu/arm7/arm7core.h
+++ b/src/emu/cpu/arm7/arm7core.h
@@ -185,7 +185,7 @@ enum
/* CPU state struct */
-struct arm_state
+struct arm_state
{
ARM7CORE_REGS // these must be included in your cpu specific register implementation
ARM7COPRO_REGS
diff --git a/src/emu/cpu/cosmac/cosdasm.c b/src/emu/cpu/cosmac/cosdasm.c
index c7a7aa31c9e..8f87d694bc1 100644
--- a/src/emu/cpu/cosmac/cosdasm.c
+++ b/src/emu/cpu/cosmac/cosdasm.c
@@ -24,7 +24,7 @@
#include "cosmac.h"
-enum Adr
+enum Adr
{
Ill,
Imm,
diff --git a/src/emu/cpu/cubeqcpu/cubeqcpu.c b/src/emu/cpu/cubeqcpu/cubeqcpu.c
index e88a5950561..bc4064093a5 100644
--- a/src/emu/cpu/cubeqcpu/cubeqcpu.c
+++ b/src/emu/cpu/cubeqcpu/cubeqcpu.c
@@ -71,7 +71,7 @@ enum alu_dst
STRUCTURES & TYPEDEFS
***************************************************************************/
-struct cquestsnd_state
+struct cquestsnd_state
{
/* AM2901 internals */
UINT16 ram[16];
@@ -104,7 +104,7 @@ struct cquestsnd_state
};
-struct cquestrot_state
+struct cquestrot_state
{
/* AM2901 internals */
UINT16 ram[16];
@@ -146,7 +146,7 @@ struct cquestrot_state
};
-struct cquestlin_state
+struct cquestlin_state
{
/* 12-bit AM2901 internals */
UINT16 ram[16];
diff --git a/src/emu/cpu/drcbec.c b/src/emu/cpu/drcbec.c
index 906ed3c5781..3a8648aa0e6 100644
--- a/src/emu/cpu/drcbec.c
+++ b/src/emu/cpu/drcbec.c
@@ -1121,7 +1121,7 @@ int drcbe_c::execute(code_handle &entry)
case MAKE_OPCODE_SHORT(OP_SHL, 4, 1):
shift = PARAM2 & 31;
temp32 = PARAM1 << shift;
- if (shift != 0)
+ if (shift != 0)
{
flags = FLAGS32_NZ(temp32);
flags |= ((PARAM1 << (shift - 1)) >> 31) & FLAG_C;
@@ -1136,7 +1136,7 @@ int drcbe_c::execute(code_handle &entry)
case MAKE_OPCODE_SHORT(OP_SHR, 4, 1):
shift = PARAM2 & 31;
temp32 = PARAM1 >> shift;
- if (shift != 0)
+ if (shift != 0)
{
flags = FLAGS32_NZ(temp32);
flags |= (PARAM1 >> (shift - 1)) & FLAG_C;
@@ -1167,7 +1167,7 @@ int drcbe_c::execute(code_handle &entry)
case MAKE_OPCODE_SHORT(OP_ROL, 4, 1):
shift = PARAM2 & 31;
temp32 = (PARAM1 << shift) | (PARAM1 >> ((32 - shift) & 31));
- if (shift != 0)
+ if (shift != 0)
{
flags = FLAGS32_NZ(temp32);
flags |= ((PARAM1 << (shift - 1)) >> 31) & FLAG_C;
diff --git a/src/emu/cpu/dsp56k/dsp56k.h b/src/emu/cpu/dsp56k/dsp56k.h
index 5a7715a5d65..7737de30d11 100644
--- a/src/emu/cpu/dsp56k/dsp56k.h
+++ b/src/emu/cpu/dsp56k/dsp56k.h
@@ -30,7 +30,7 @@ DECLARE_LEGACY_CPU_DEVICE(DSP56156, dsp56k);
STRUCTURES & TYPEDEFS
***************************************************************************/
// 5-4 Host Interface
-struct dsp56k_host_interface
+struct dsp56k_host_interface
{
// **** Dsp56k side **** //
// Host Control Register
@@ -65,7 +65,7 @@ struct dsp56k_host_interface
};
// 1-9 ALU
-struct dsp56k_data_alu
+struct dsp56k_data_alu
{
// Four 16-bit input registers (can be accessed as 2 32-bit registers)
PAIR x;
@@ -82,7 +82,7 @@ struct dsp56k_data_alu
};
// 1-10 Address Generation Unit (AGU)
-struct dsp56k_agu
+struct dsp56k_agu
{
// Four address registers
UINT16 r0;
@@ -112,7 +112,7 @@ struct dsp56k_agu
};
// 1-11 Program Control Unit (PCU)
-struct dsp56k_pcu
+struct dsp56k_pcu
{
// Program Counter
UINT16 pc;
@@ -149,7 +149,7 @@ struct dsp56k_pcu
};
// 1-8 The dsp56156 CORE
-struct dsp56k_core
+struct dsp56k_core
{
// PROGRAM CONTROLLER
dsp56k_pcu PCU;
diff --git a/src/emu/cpu/dsp56k/dsp56pcu.c b/src/emu/cpu/dsp56k/dsp56pcu.c
index cde4d69924e..be29585ec05 100644
--- a/src/emu/cpu/dsp56k/dsp56pcu.c
+++ b/src/emu/cpu/dsp56k/dsp56pcu.c
@@ -236,7 +236,7 @@ void pcu_reset(dsp56k_core* cpustate)
/***************************************************************************
INTERRUPT HANDLING
***************************************************************************/
-struct dsp56k_irq_data
+struct dsp56k_irq_data
{
UINT16 irq_vector;
char irq_source[128];
diff --git a/src/emu/cpu/esrip/esrip.c b/src/emu/cpu/esrip/esrip.c
index 6f97a70d9b9..4afe1971d52 100644
--- a/src/emu/cpu/esrip/esrip.c
+++ b/src/emu/cpu/esrip/esrip.c
@@ -61,7 +61,7 @@ CPU_DISASSEMBLE( esrip );
STRUCTURES & TYPEDEFS
***************************************************************************/
-struct esrip_state
+struct esrip_state
{
UINT16 ram[32];
UINT16 acc;
diff --git a/src/emu/cpu/g65816/g65816ds.c b/src/emu/cpu/g65816/g65816ds.c
index aefeab523cc..dd4a464e6c5 100644
--- a/src/emu/cpu/g65816/g65816ds.c
+++ b/src/emu/cpu/g65816/g65816ds.c
@@ -26,7 +26,7 @@ author (Karl Stenerud) at karl@higashiyama-unet.ocn.ne.jp.
#define ADDRESS_65816(A) ((A)&0xffffff)
-struct opcode_struct
+struct opcode_struct
{
unsigned char name;
unsigned char flag;
diff --git a/src/emu/cpu/h6280/h6280.h b/src/emu/cpu/h6280/h6280.h
index f2a3434fa45..d37253f3d8f 100644
--- a/src/emu/cpu/h6280/h6280.h
+++ b/src/emu/cpu/h6280/h6280.h
@@ -37,7 +37,7 @@ enum
/****************************************************************************
* The 6280 registers.
****************************************************************************/
-struct h6280_Regs
+struct h6280_Regs
{
int ICount;
diff --git a/src/emu/cpu/h83002/h8priv.h b/src/emu/cpu/h83002/h8priv.h
index 1453bd5ee72..9fa00488c3c 100644
--- a/src/emu/cpu/h83002/h8priv.h
+++ b/src/emu/cpu/h83002/h8priv.h
@@ -11,25 +11,25 @@
#define H8_MAX_PORTS (16) // number of I/O ports defined architecturally (1-9 and A-G = 16)
-struct H8S2XXX_TPU_ITEM
+struct H8S2XXX_TPU_ITEM
{
UINT32 tgr, irq, out;
};
-struct H8S2XXX_TPU
+struct H8S2XXX_TPU
{
emu_timer *timer;
int cycles_per_tick;
UINT64 timer_cycles;
};
-struct H8S2XXX_SCI
+struct H8S2XXX_SCI
{
emu_timer *timer;
UINT32 bitrate;
};
-struct H8S2XXX_TMR
+struct H8S2XXX_TMR
{
emu_timer *timer;
int cycles_per_tick;
diff --git a/src/emu/cpu/h83002/h8speriph.c b/src/emu/cpu/h83002/h8speriph.c
index df6ca015e65..916fa0b6d71 100644
--- a/src/emu/cpu/h83002/h8speriph.c
+++ b/src/emu/cpu/h83002/h8speriph.c
@@ -1158,7 +1158,7 @@ static TIMER_CALLBACK( h8s_tpu_callback)
// SERIAL CONTROLLER INTERFACE //
/////////////////////////////////
-struct H8S_SCI_ENTRY
+struct H8S_SCI_ENTRY
{
UINT32 reg_smr, reg_brr, reg_scr, reg_tdr, reg_ssr, reg_rdr;
UINT32 reg_pdr, reg_port;
diff --git a/src/emu/cpu/hcd62121/hcd62121d.c b/src/emu/cpu/hcd62121/hcd62121d.c
index ae7845be1fc..504d2edba49 100644
--- a/src/emu/cpu/hcd62121/hcd62121d.c
+++ b/src/emu/cpu/hcd62121/hcd62121d.c
@@ -32,7 +32,7 @@ enum
_4, /* for nibble shifts */
};
-struct hcd62121_dasm
+struct hcd62121_dasm
{
const char *str;
UINT8 arg1;
diff --git a/src/emu/cpu/hd61700/hd61700d.c b/src/emu/cpu/hd61700/hd61700d.c
index 5243649f3dc..b06a16290d6 100644
--- a/src/emu/cpu/hd61700/hd61700d.c
+++ b/src/emu/cpu/hd61700/hd61700d.c
@@ -39,7 +39,7 @@ enum
OP_RSIR,
};
-struct hd61700_dasm
+struct hd61700_dasm
{
const char *str;
UINT8 arg1;
diff --git a/src/emu/cpu/hd6309/6309dasm.c b/src/emu/cpu/hd6309/6309dasm.c
index 07b28d6efa7..37d7f7b9a54 100644
--- a/src/emu/cpu/hd6309/6309dasm.c
+++ b/src/emu/cpu/hd6309/6309dasm.c
@@ -25,7 +25,7 @@
#include "hd6309.h"
// Opcode structure
-struct opcodeinfo
+struct opcodeinfo
{
UINT8 opcode; // 8-bit opcode value
UINT8 length; // Opcode length in bytes
diff --git a/src/emu/cpu/i386/cycles.h b/src/emu/cpu/i386/cycles.h
index 5ccaa928b62..2bbb75fec5f 100644
--- a/src/emu/cpu/i386/cycles.h
+++ b/src/emu/cpu/i386/cycles.h
@@ -3,7 +3,7 @@
#ifndef __CYCLES_H__
#define __CYCLES_H__
-enum X86_CYCLES
+enum X86_CYCLES
{
CYCLES_MOV_REG_REG,
CYCLES_MOV_REG_MEM,
@@ -337,7 +337,7 @@ enum X86_CYCLES
#define CPU_CYCLES_MEDIAGX 3
-struct X86_CYCLE_TABLE
+struct X86_CYCLE_TABLE
{
X86_CYCLES op;
UINT8 cpu_cycles[X86_NUM_CPUS][2];
diff --git a/src/emu/cpu/i386/i386priv.h b/src/emu/cpu/i386/i386priv.h
index ee530363fb2..285e7fb1e17 100644
--- a/src/emu/cpu/i386/i386priv.h
+++ b/src/emu/cpu/i386/i386priv.h
@@ -19,7 +19,7 @@ extern int i386_dasm_one(char *buffer, UINT32 pc, const UINT8 *oprom, int mode);
enum SREGS { ES, CS, SS, DS, FS, GS };
-enum BREGS
+enum BREGS
{
AL = NATIVE_ENDIAN_VALUE_LE_BE(0,3),
AH = NATIVE_ENDIAN_VALUE_LE_BE(1,2),
@@ -31,7 +31,7 @@ enum BREGS
BH = NATIVE_ENDIAN_VALUE_LE_BE(13,14)
};
-enum WREGS
+enum WREGS
{
AX = NATIVE_ENDIAN_VALUE_LE_BE(0,1),
CX = NATIVE_ENDIAN_VALUE_LE_BE(2,3),
@@ -206,7 +206,7 @@ struct I386_SREG {
bool valid;
};
-struct I386_CALL_GATE
+struct I386_CALL_GATE
{
UINT16 segment;
UINT16 selector;
diff --git a/src/emu/cpu/i86/i286.c b/src/emu/cpu/i86/i286.c
index 0c3f9ab7a1b..be3832c73d2 100644
--- a/src/emu/cpu/i86/i286.c
+++ b/src/emu/cpu/i86/i286.c
@@ -26,7 +26,7 @@
/* cpu state */
/***************************************************************************/
/* I86 registers */
-union i80286basicregs
+union i80286basicregs
{ /* eight general registers */
UINT16 w[8]; /* viewed as 16 bits registers */
UINT8 b[16]; /* or as 8 bit registers */
diff --git a/src/emu/cpu/i860/i860dis.c b/src/emu/cpu/i860/i860dis.c
index 4e5b36d5649..b1386f7cefe 100644
--- a/src/emu/cpu/i860/i860dis.c
+++ b/src/emu/cpu/i860/i860dis.c
@@ -374,7 +374,7 @@ enum
};
-struct decode_tbl_t
+struct decode_tbl_t
{
/* Disassembly function for this opcode.
Call with buffer, mnemonic, pc, insn. */
diff --git a/src/emu/cpu/i960/i960dis.c b/src/emu/cpu/i960/i960dis.c
index 2523eb63278..eec297fdebd 100644
--- a/src/emu/cpu/i960/i960dis.c
+++ b/src/emu/cpu/i960/i960dis.c
@@ -8,7 +8,7 @@
#include "i960.h"
#include "i960dis.h"
-struct mnemonic_t
+struct mnemonic_t
{
const char *mnem;
unsigned short type;
diff --git a/src/emu/cpu/lh5801/5801dasm.c b/src/emu/cpu/lh5801/5801dasm.c
index 6d669000490..996d85c94ee 100644
--- a/src/emu/cpu/lh5801/5801dasm.c
+++ b/src/emu/cpu/lh5801/5801dasm.c
@@ -24,7 +24,7 @@
#include "lh5801.h"
-enum Adr
+enum Adr
{
Imp,
Reg,
@@ -46,7 +46,7 @@ enum Adr
RelM
};
-enum Regs
+enum Regs
{
RegNone,
A,
@@ -64,7 +64,7 @@ static const char *const RegNames[]= {
#undef SEC
#endif
-enum Ins
+enum Ins
{
ILL, ILL2, PREFD, NOP,
diff --git a/src/emu/cpu/m37710/m7700ds.c b/src/emu/cpu/m37710/m7700ds.c
index 001198243e7..f531de100d4 100644
--- a/src/emu/cpu/m37710/m7700ds.c
+++ b/src/emu/cpu/m37710/m7700ds.c
@@ -16,7 +16,7 @@ Based on G65C816 CPU Emulator by Karl Stenerud
#define ADDRESS_24BIT(A) ((A)&0xffffff)
-struct opcode_struct
+struct opcode_struct
{
unsigned char name;
unsigned char flag;
diff --git a/src/emu/cpu/m6502/m6502.c b/src/emu/cpu/m6502/m6502.c
index 203b07d313b..add50195952 100644
--- a/src/emu/cpu/m6502/m6502.c
+++ b/src/emu/cpu/m6502/m6502.c
@@ -147,7 +147,7 @@ static void m6502_common_init(legacy_cpu_device *device, device_irq_acknowledge_
cpustate->wrmem_id.resolve(intf->write_indexed_func, *device);
cpustate->in_port_func.resolve(intf->in_port_func, *device);
cpustate->out_port_func.resolve(intf->out_port_func, *device);
-
+
cpustate->pullup = intf->external_port_pullup;
cpustate->pulldown = intf->external_port_pulldown;
}
diff --git a/src/emu/cpu/m6502/m6502.h b/src/emu/cpu/m6502/m6502.h
index eba57128ce8..7edf5be8ffc 100644
--- a/src/emu/cpu/m6502/m6502.h
+++ b/src/emu/cpu/m6502/m6502.h
@@ -54,7 +54,7 @@ enum
/* Optional interface to set callbacks */
#define M6510_INTERFACE(name) \
- const m6502_interface (name) =
+ const m6502_interface (name) =
struct m6502_interface
{
diff --git a/src/emu/cpu/m6502/m6509.c b/src/emu/cpu/m6502/m6509.c
index 1978c7483f3..a8ed661689c 100644
--- a/src/emu/cpu/m6502/m6509.c
+++ b/src/emu/cpu/m6502/m6509.c
@@ -155,7 +155,7 @@ static CPU_INIT( m6509 )
devcb_write8 nullwcb = DEVCB_NULL;
cpustate->rdmem_id.resolve(nullrcb, *device);
- cpustate->wrmem_id.resolve(nullwcb, *device);
+ cpustate->wrmem_id.resolve(nullwcb, *device);
}
}
diff --git a/src/emu/cpu/m68000/m68k_in.c b/src/emu/cpu/m68000/m68k_in.c
index 7eb1cb6cad2..9144143b6b0 100644
--- a/src/emu/cpu/m68000/m68k_in.c
+++ b/src/emu/cpu/m68000/m68k_in.c
@@ -128,7 +128,7 @@ void (*m68ki_instruction_jump_table[NUM_CPU_TYPES][0x10000])(m68ki_cpu_core *m68
unsigned char m68ki_cycles[NUM_CPU_TYPES][0x10000]; /* Cycles used by CPU type */
/* This is used to generate the opcode handler jump table */
-struct opcode_handler_struct
+struct opcode_handler_struct
{
void (*opcode_handler)(m68ki_cpu_core *m68k); /* handler function */
unsigned int mask; /* mask on opcode */
diff --git a/src/emu/cpu/m68000/m68kdasm.c b/src/emu/cpu/m68000/m68kdasm.c
index a43310db8cd..112ebbb29d2 100644
--- a/src/emu/cpu/m68000/m68kdasm.c
+++ b/src/emu/cpu/m68000/m68kdasm.c
@@ -174,7 +174,7 @@ static int valid_ea(UINT32 opcode, UINT32 mask);
static int DECL_SPEC compare_nof_true_bits(const void *aptr, const void *bptr);
/* used to build opcode handler jump table */
-struct opcode_struct
+struct opcode_struct
{
void (*opcode_handler)(void); /* handler function */
UINT32 mask; /* mask on opcode */
diff --git a/src/emu/cpu/m68000/m68kmake.c b/src/emu/cpu/m68000/m68kmake.c
index bb3179265fc..fd3322fa631 100644
--- a/src/emu/cpu/m68000/m68kmake.c
+++ b/src/emu/cpu/m68000/m68kmake.c
@@ -175,7 +175,7 @@ enum
/* Everything we need to know about an opcode */
-struct opcode_struct
+struct opcode_struct
{
char name[MAX_NAME_LENGTH]; /* opcode handler name */
unsigned char size; /* Size of operation */
@@ -192,7 +192,7 @@ struct opcode_struct
/* All modifications necessary for a specific EA mode of an instruction */
-struct ea_info_struct
+struct ea_info_struct
{
const char* fname_add;
const char* ea_add;
@@ -202,7 +202,7 @@ struct ea_info_struct
/* Holds the body of a function */
-struct body_struct
+struct body_struct
{
char body[MAX_BODY_LENGTH][MAX_LINE_LENGTH+1];
int length;
@@ -210,7 +210,7 @@ struct body_struct
/* Holds a sequence of search / replace strings */
-struct replace_struct
+struct replace_struct
{
char replace[MAX_REPLACE_LENGTH][2][MAX_LINE_LENGTH+1];
int length;
diff --git a/src/emu/cpu/m6805/m6805.c b/src/emu/cpu/m6805/m6805.c
index eb0796693ad..0ac3fb2b549 100644
--- a/src/emu/cpu/m6805/m6805.c
+++ b/src/emu/cpu/m6805/m6805.c
@@ -45,7 +45,7 @@ enum
};
/* 6805 Registers */
-struct m6805_Regs
+struct m6805_Regs
{
/* Pre-pointerafied public globals */
int iCount;
diff --git a/src/emu/cpu/m6809/6809dasm.c b/src/emu/cpu/m6809/6809dasm.c
index b0c74e869a4..43e732add8a 100644
--- a/src/emu/cpu/m6809/6809dasm.c
+++ b/src/emu/cpu/m6809/6809dasm.c
@@ -20,7 +20,7 @@
#include "m6809.h"
// Opcode structure
-struct opcodeinfo
+struct opcodeinfo
{
UINT8 opcode; // 8-bit opcode value
UINT8 length; // Opcode length in bytes
diff --git a/src/emu/cpu/mb86233/mb86233.c b/src/emu/cpu/mb86233/mb86233.c
index 0f309f6be1a..28a69ed67bb 100644
--- a/src/emu/cpu/mb86233/mb86233.c
+++ b/src/emu/cpu/mb86233/mb86233.c
@@ -23,7 +23,7 @@ CPU_DISASSEMBLE( mb86233 );
STRUCTURES & TYPEDEFS
***************************************************************************/
-union MB86233_REG
+union MB86233_REG
{
INT32 i;
UINT32 u;
diff --git a/src/emu/cpu/mips/mips3.c b/src/emu/cpu/mips/mips3.c
index c40e7d03d30..932e659ab29 100644
--- a/src/emu/cpu/mips/mips3.c
+++ b/src/emu/cpu/mips/mips3.c
@@ -86,7 +86,7 @@
***************************************************************************/
/* MIPS3 Registers */
-struct mips3_regs
+struct mips3_regs
{
/* core state */
mips3_state core;
diff --git a/src/emu/cpu/nec/necpriv.h b/src/emu/cpu/nec/necpriv.h
index e3e3f4d6600..22a524a1074 100644
--- a/src/emu/cpu/nec/necpriv.h
+++ b/src/emu/cpu/nec/necpriv.h
@@ -19,7 +19,7 @@ enum
};
/* interrupt sources */
-enum INTSOURCES
+enum INTSOURCES
{
BRK = 0,
INT_IRQ = 1,
@@ -27,7 +27,7 @@ enum INTSOURCES
};
/* NEC registers */
-union necbasicregs
+union necbasicregs
{ /* eight general registers */
UINT16 w[8]; /* viewed as 16 bits registers */
UINT8 b[16]; /* or as 8 bit registers */
diff --git a/src/emu/cpu/nec/v25priv.h b/src/emu/cpu/nec/v25priv.h
index 5b4fe851c55..39e1bf13f8b 100644
--- a/src/emu/cpu/nec/v25priv.h
+++ b/src/emu/cpu/nec/v25priv.h
@@ -35,7 +35,7 @@ enum
};
/* interrupt sources */
-enum INTSOURCES
+enum INTSOURCES
{
BRK = 0,
INT_IRQ = 1,
@@ -60,7 +60,7 @@ enum INTSOURCES
};
/* internal RAM and register banks */
-union internalram
+union internalram
{
UINT16 w[128];
UINT8 b[256];
diff --git a/src/emu/cpu/powerpc/ppc_dasm.c b/src/emu/cpu/powerpc/ppc_dasm.c
index 0b0168efda4..35a42db092c 100644
--- a/src/emu/cpu/powerpc/ppc_dasm.c
+++ b/src/emu/cpu/powerpc/ppc_dasm.c
@@ -102,7 +102,7 @@ enum
* Describes the layout of an instruction.
*/
-struct IDESCR
+struct IDESCR
{
char mnem[32]; // mnemonic
UINT32 match; // bit pattern of instruction after it has been masked
diff --git a/src/emu/cpu/powerpc/ppccom.c b/src/emu/cpu/powerpc/ppccom.c
index 7222ab7d55f..88c6500b3f0 100644
--- a/src/emu/cpu/powerpc/ppccom.c
+++ b/src/emu/cpu/powerpc/ppccom.c
@@ -1828,7 +1828,7 @@ static int ppc4xx_dma_decrement_count(powerpc_state *ppc, int dmachan)
ppc->dcr[DCR4XX_DMASR] |= 1 << (7 - dmachan);
break;
}
-
+
ppc4xx_dma_update_irq_states(ppc);
INT64 numdata = dmaregs[DCR4XX_DMACT0];
@@ -1952,7 +1952,7 @@ static TIMER_CALLBACK( ppc4xx_buffered_dma_callback )
dmaregs[DCR4XX_DMADA0] += destinc;
} while (!ppc4xx_dma_decrement_count(ppc, dmachan));
break;
- }
+ }
}
}
diff --git a/src/emu/cpu/rsp/rsp.h b/src/emu/cpu/rsp/rsp.h
index 8b8b1f7fdb7..91a8577fb0b 100644
--- a/src/emu/cpu/rsp/rsp.h
+++ b/src/emu/cpu/rsp/rsp.h
@@ -138,7 +138,7 @@ void rspdrc_add_imem(device_t *device, UINT32 *base);
#define RSPDRC_STRICT_VERIFY 0x0001 /* verify all instructions */
-union VECTOR_REG
+union VECTOR_REG
{
UINT64 d[2];
UINT32 l[4];
@@ -146,7 +146,7 @@ union VECTOR_REG
UINT8 b[16];
};
-union ACCUMULATOR_REG
+union ACCUMULATOR_REG
{
INT64 q;
INT32 l[2];
diff --git a/src/emu/cpu/saturn/saturnds.c b/src/emu/cpu/saturn/saturnds.c
index 1acfafa36ee..0db10df7768 100644
--- a/src/emu/cpu/saturn/saturnds.c
+++ b/src/emu/cpu/saturn/saturnds.c
@@ -71,7 +71,7 @@ static const char number_2_hex[]=
// don't split branch and return, source relies on this ordering
-enum MNEMONICS
+enum MNEMONICS
{
Return, ReturnSetXM, ReturnSetCarry, ReturnClearCarry, ReturnFromInterrupt,
jump3,jump4,jump,
@@ -584,7 +584,7 @@ enum opcode_adr
AdrImmCount
};
-struct OPCODE
+struct OPCODE
{
opcode_sel sel;
opcode_adr adr;
diff --git a/src/emu/cpu/sc61860/scdasm.c b/src/emu/cpu/sc61860/scdasm.c
index 1ebe8005a73..dacdf7dcc63 100644
--- a/src/emu/cpu/sc61860/scdasm.c
+++ b/src/emu/cpu/sc61860/scdasm.c
@@ -79,7 +79,7 @@
*/
-enum Adr
+enum Adr
{
Ill,
Imp,
diff --git a/src/emu/cpu/sh2/sh2comn.h b/src/emu/cpu/sh2/sh2comn.h
index 9355d9e00ec..88a9f17a6ce 100644
--- a/src/emu/cpu/sh2/sh2comn.h
+++ b/src/emu/cpu/sh2/sh2comn.h
@@ -90,7 +90,7 @@ do { \
sh2_exception(sh2,message,irq); \
} while(0)
-struct sh2_state
+struct sh2_state
{
UINT32 ppc;
UINT32 pc;
diff --git a/src/emu/cpu/sh4/sh4comn.h b/src/emu/cpu/sh4/sh4comn.h
index b71e6fa826d..33fff77c0eb 100644
--- a/src/emu/cpu/sh4/sh4comn.h
+++ b/src/emu/cpu/sh4/sh4comn.h
@@ -49,7 +49,7 @@ class sh4_frontend;
#endif
-struct sh4_state
+struct sh4_state
{
UINT32 ppc;
UINT32 pc, spc;
diff --git a/src/emu/cpu/sharc/sharc.c b/src/emu/cpu/sharc/sharc.c
index 58a08f13e49..19522662862 100644
--- a/src/emu/cpu/sharc/sharc.c
+++ b/src/emu/cpu/sharc/sharc.c
@@ -39,7 +39,7 @@ enum
SHARC_B12, SHARC_B13, SHARC_B14, SHARC_B15,
};
-struct SHARC_DAG
+struct SHARC_DAG
{
UINT32 i[8];
UINT32 m[8];
@@ -47,13 +47,13 @@ struct SHARC_DAG
UINT32 l[8];
};
-union SHARC_REG
+union SHARC_REG
{
INT32 r;
float f;
};
-struct DMA_REGS
+struct DMA_REGS
{
UINT32 control;
UINT32 int_index;
@@ -66,14 +66,14 @@ struct DMA_REGS
UINT32 ext_count;
};
-struct LADDR
+struct LADDR
{
UINT32 addr;
UINT32 code;
UINT32 loop_type;
};
-struct DMA_OP
+struct DMA_OP
{
UINT32 src;
UINT32 dst;
@@ -580,7 +580,7 @@ static CPU_RESET( sharc )
sharc_dma_exec(cpustate, 6);
dma_op(cpustate, 6);
-
+
cpustate->dma_op[6].timer->adjust(attotime::never, 0);
break;
}
@@ -766,7 +766,7 @@ static CPU_EXECUTE( sharc )
}
}
}
-
+
sharc_op[(cpustate->opcode >> 39) & 0x1ff](cpustate);
diff --git a/src/emu/cpu/sharc/sharc.h b/src/emu/cpu/sharc/sharc.h
index 84bda15bb77..7e9f41bef8d 100644
--- a/src/emu/cpu/sharc/sharc.h
+++ b/src/emu/cpu/sharc/sharc.h
@@ -9,7 +9,7 @@
#define SHARC_INPUT_FLAG2 5
#define SHARC_INPUT_FLAG3 6
-enum SHARC_BOOT_MODE
+enum SHARC_BOOT_MODE
{
BOOT_MODE_EPROM,
BOOT_MODE_HOST,
diff --git a/src/emu/cpu/sharc/sharcdma.c b/src/emu/cpu/sharc/sharcdma.c
index 8f6abf1964c..ccae4b868bd 100644
--- a/src/emu/cpu/sharc/sharcdma.c
+++ b/src/emu/cpu/sharc/sharcdma.c
@@ -35,7 +35,7 @@ static void schedule_chained_dma_op(SHARC_REGS *cpustate, int channel, UINT32 dm
}
else // Receive from external
{
- cpustate->dma_op[channel].src = ext_index;
+ cpustate->dma_op[channel].src = ext_index;
cpustate->dma_op[channel].src_modifier = ext_modifier;
cpustate->dma_op[channel].src_count = ext_count;
cpustate->dma_op[channel].dst = int_index;
@@ -89,7 +89,7 @@ static void dma_op(SHARC_REGS *cpustate, int channel)
int src_modifier = cpustate->dma_op[channel].src_modifier;
int dst_modifier = cpustate->dma_op[channel].dst_modifier;
int src_count = cpustate->dma_op[channel].src_count;
- //int dst_count = cpustate->dma_op[channel].dst_count;
+ //int dst_count = cpustate->dma_op[channel].dst_count;
int pmode = cpustate->dma_op[channel].pmode;
//printf("dma_op: %08X, %08X, %08X, %08X, %08X, %08X, %d\n", src, dst, src_modifier, dst_modifier, src_count, dst_count, pmode);
diff --git a/src/emu/cpu/sharc/sharcdsm.h b/src/emu/cpu/sharc/sharcdsm.h
index c7edef8b7ac..9dff77fdebd 100644
--- a/src/emu/cpu/sharc/sharcdsm.h
+++ b/src/emu/cpu/sharc/sharcdsm.h
@@ -69,7 +69,7 @@ static const char mr_regnames[16][8] =
"???", "???", "???", "???", "???", "???", "???", "???"
};
-struct SHARC_DASM_OP
+struct SHARC_DASM_OP
{
UINT32 op_mask;
UINT32 op_bits;
diff --git a/src/emu/cpu/sharc/sharcops.h b/src/emu/cpu/sharc/sharcops.h
index 1152646f309..2fe5aab7fef 100644
--- a/src/emu/cpu/sharc/sharcops.h
+++ b/src/emu/cpu/sharc/sharcops.h
@@ -1,4 +1,4 @@
-struct SHARC_OP
+struct SHARC_OP
{
UINT32 op_mask;
UINT32 op_bits;
diff --git a/src/emu/cpu/spc700/spc700.c b/src/emu/cpu/spc700/spc700.c
index c35ef4ad2ec..c716d1a8aa1 100644
--- a/src/emu/cpu/spc700/spc700.c
+++ b/src/emu/cpu/spc700/spc700.c
@@ -66,7 +66,7 @@ Address Function Register R/W When Reset Remarks
#include "spc700.h"
/* CPU Structure */
-struct spc700i_cpu
+struct spc700i_cpu
{
uint a; /* Accumulator */
uint x; /* Index Register X */
diff --git a/src/emu/cpu/spc700/spc700ds.c b/src/emu/cpu/spc700/spc700ds.c
index 5073154083e..7c53abcbc86 100644
--- a/src/emu/cpu/spc700/spc700ds.c
+++ b/src/emu/cpu/spc700/spc700ds.c
@@ -20,7 +20,7 @@ author (Karl Stenerud) at karl@higashiyama-unet.ocn.ne.jp.
-struct opcode_struct
+struct opcode_struct
{
unsigned char name;
unsigned char args[2];
diff --git a/src/emu/cpu/superfx/superfx.c b/src/emu/cpu/superfx/superfx.c
index 795934e11db..ef761deddf3 100644
--- a/src/emu/cpu/superfx/superfx.c
+++ b/src/emu/cpu/superfx/superfx.c
@@ -2,14 +2,14 @@
#include "debugger.h"
#include "superfx.h"
-struct pixelcache_t
+struct pixelcache_t
{
UINT16 offset;
UINT8 bitpend;
UINT8 data[8];
};
-struct cache_t
+struct cache_t
{
UINT8 buffer[0x200];
UINT8 valid[0x20];
diff --git a/src/emu/cpu/tlcs900/900tbl.c b/src/emu/cpu/tlcs900/900tbl.c
index 40742589aa3..431b31f186a 100644
--- a/src/emu/cpu/tlcs900/900tbl.c
+++ b/src/emu/cpu/tlcs900/900tbl.c
@@ -3852,7 +3852,7 @@ static void _ZCF(tlcs900_state *cpustate)
}
-struct tlcs900inst
+struct tlcs900inst
{
void (*opfunc)(tlcs900_state *cpustate);
int operand1;
diff --git a/src/emu/cpu/tlcs900/dasm900.c b/src/emu/cpu/tlcs900/dasm900.c
index 063a9444c75..e33771bb374 100644
--- a/src/emu/cpu/tlcs900/dasm900.c
+++ b/src/emu/cpu/tlcs900/dasm900.c
@@ -88,7 +88,7 @@ enum e_operand
};
-struct tlcs900inst
+struct tlcs900inst
{
e_mnemonics mnemonic;
e_operand operand1;
diff --git a/src/emu/cpu/tms32051/tms32051.c b/src/emu/cpu/tms32051/tms32051.c
index c3429f54878..366335638c7 100644
--- a/src/emu/cpu/tms32051/tms32051.c
+++ b/src/emu/cpu/tms32051/tms32051.c
@@ -46,7 +46,7 @@ enum
TMS32051_AR7,
};
-struct PMST
+struct PMST
{
UINT16 iptr;
UINT16 avis;
@@ -58,7 +58,7 @@ struct PMST
UINT16 braf;
};
-struct ST0
+struct ST0
{
UINT16 dp;
UINT16 intm;
@@ -67,7 +67,7 @@ struct ST0
UINT16 arp;
};
-struct ST1
+struct ST1
{
UINT16 arb;
UINT16 cnf;
diff --git a/src/emu/cpu/tms9900/9900dasm.c b/src/emu/cpu/tms9900/9900dasm.c
index 2391ac660cf..19fd5f5e6d7 100644
--- a/src/emu/cpu/tms9900/9900dasm.c
+++ b/src/emu/cpu/tms9900/9900dasm.c
@@ -27,7 +27,7 @@
#define MASK 0x0000ffff
#define BITS(val,n1,n2) ((val>>(15-(n2))) & (MASK>>(15-((n2)-(n1)))))
-enum format_t
+enum format_t
{
format_1, /* 2 address instructions */
format_2a, /* jump instructions */
@@ -73,7 +73,7 @@ enum
sd_11_15 = 0x200 /* bits 11-15 should be cleared in lwpi, limi, idle, rset, rtwp, ckon, ckof, lrex */
};
-struct description_t
+struct description_t
{
const char *mnemonic;
format_t format;
diff --git a/src/emu/cpu/tms9900/99xxcore.h b/src/emu/cpu/tms9900/99xxcore.h
index 6d50dfb148b..2e8f7c06ba0 100644
--- a/src/emu/cpu/tms9900/99xxcore.h
+++ b/src/emu/cpu/tms9900/99xxcore.h
@@ -394,7 +394,7 @@ a ST_MASK */
#define R14 28
#define R15 30
-struct map_file_t
+struct map_file_t
{
UINT16 L[3], B[3]; /* actual registers */
UINT32 limit[3], bias[3]; /* equivalent in a more convenient form */
@@ -1993,7 +1993,7 @@ static void set_flag1(tms99xx_state *cpustate, int val)
#endif
-enum cru_error_code
+enum cru_error_code
{
CRU_OK = 0,
CRU_PRIVILEGE_VIOLATION = -1
diff --git a/src/emu/cpu/tms9900/tms9900.h b/src/emu/cpu/tms9900/tms9900.h
index 43f57c5e600..f80f452a5f9 100644
--- a/src/emu/cpu/tms9900/tms9900.h
+++ b/src/emu/cpu/tms9900/tms9900.h
@@ -109,7 +109,7 @@ static const char opname[][5] =
"*int"
};
-struct tms99xx_config
+struct tms99xx_config
{
devcb_write8 external_callback;
devcb_read8 irq_level;
diff --git a/src/emu/cpu/tms9900/tms9900l.h b/src/emu/cpu/tms9900/tms9900l.h
index 3ca20312bed..324d9ab02bc 100644
--- a/src/emu/cpu/tms9900/tms9900l.h
+++ b/src/emu/cpu/tms9900/tms9900l.h
@@ -61,7 +61,7 @@ DECLARE_LEGACY_CPU_DEVICE(TI990_10L, ti990_10l);
structure with the parameters ti990_10_reset wants.
*/
-struct ti990_10reset_param
+struct ti990_10reset_param
{
ti99xx_idle_func idle_callback;
ti99xx_rset_func rset_callback;
@@ -87,7 +87,7 @@ DECLARE_LEGACY_CPU_DEVICE(TMS9900L, tms9900l);
/*
structure with optional parameters for tms9900_reset.
*/
-struct tms9900reset_param
+struct tms9900reset_param
{
ti99xx_idle_func idle_callback;
};
@@ -99,7 +99,7 @@ struct tms9900reset_param
/*
structure with optional parameters for tms9940_reset.
*/
-struct tms9940reset_param
+struct tms9940reset_param
{
ti99xx_idle_func idle_callback;
};
@@ -111,7 +111,7 @@ DECLARE_LEGACY_CPU_DEVICE(TMS9980L, tms9980al);
/*
structure with optional parameters for tms9980a_reset.
*/
-struct tms9980areset_param
+struct tms9980areset_param
{
ti99xx_idle_func idle_callback;
};
@@ -123,7 +123,7 @@ struct tms9980areset_param
/*//
structure with optional parameters for tms9985_reset.
*/
-struct tms9985reset_param
+struct tms9985reset_param
{
ti99xx_idle_func idle_callback;
};
@@ -135,7 +135,7 @@ struct tms9985reset_param
/*
structure with optional parameters for tms9989_reset.
*/
-struct tms9989reset_param
+struct tms9989reset_param
{
ti99xx_idle_func idle_callback;
};
@@ -147,7 +147,7 @@ DECLARE_LEGACY_CPU_DEVICE(TMS9995L, tms9995l);
/*
structure with the parameters tms9995_reset wants.
*/
-struct tms9995reset_param
+struct tms9995reset_param
{
/* auto_wait_state : a non-zero value makes tms9995 generate a wait state automatically on each
memory access */
@@ -175,7 +175,7 @@ extern WRITE8_HANDLER(tms9995_internal2_w);
/*
structure with optional parameters for tms99000_reset.
*/
-struct tms99000reset_param
+struct tms99000reset_param
{
ti99xx_idle_func idle_callback;
};
@@ -187,7 +187,7 @@ struct tms99000reset_param
/*
structure with optional parameters for tms99105a_reset.
*/
-struct tms99105areset_param
+struct tms99105areset_param
{
ti99xx_idle_func idle_callback;
};
@@ -199,7 +199,7 @@ struct tms99105areset_param
/*
structure with optional parameters for tms99110a_reset.
*/
-struct tms99110areset_param
+struct tms99110areset_param
{
ti99xx_idle_func idle_callback;
};
diff --git a/src/emu/cpu/tms9900/tms9995.h b/src/emu/cpu/tms9900/tms9995.h
index 72933e78c02..bf084773067 100644
--- a/src/emu/cpu/tms9900/tms9995.h
+++ b/src/emu/cpu/tms9900/tms9995.h
@@ -60,7 +60,7 @@ enum
Configuration for the TMS9995. The connections are provided by the
main board which contains the processor.
*/
-struct tms9995_config
+struct tms9995_config
{
devcb_write8 external_callback;
devcb_write_line iaq_line;
diff --git a/src/emu/cpu/upd7810/upd7810.h b/src/emu/cpu/upd7810/upd7810.h
index c2da1d43f70..ff4998adeae 100644
--- a/src/emu/cpu/upd7810/upd7810.h
+++ b/src/emu/cpu/upd7810/upd7810.h
@@ -11,7 +11,7 @@
*/
// unfortunatly memory configuration differs with internal rom size
-enum UPD7810_TYPE
+enum UPD7810_TYPE
{
TYPE_7801,
TYPE_78C05,
diff --git a/src/emu/devcpu.h b/src/emu/devcpu.h
index ef4df50ee24..e0b18364ca9 100644
--- a/src/emu/devcpu.h
+++ b/src/emu/devcpu.h
@@ -78,7 +78,7 @@ enum
CPUINFO_INT_ADDRBUS_SHIFT_2 = CPUINFO_INT_ADDRBUS_SHIFT + 2,
CPUINFO_INT_ADDRBUS_SHIFT_3 = CPUINFO_INT_ADDRBUS_SHIFT + 3,
CPUINFO_INT_ADDRBUS_SHIFT_LAST = CPUINFO_INT_ADDRBUS_SHIFT + ADDRESS_SPACES - 1,
-
+
// CPU-specific additionsg
CPUINFO_INT_CONTEXT_SIZE = 0x04000, // R/O: size of CPU context in bytes
CPUINFO_INT_INPUT_LINES, // R/O: number of input lines
@@ -129,7 +129,7 @@ enum
CPUINFO_PTR_DEFAULT_MEMORY_MAP_2 = CPUINFO_PTR_DEFAULT_MEMORY_MAP + 2,
CPUINFO_PTR_DEFAULT_MEMORY_MAP_3 = CPUINFO_PTR_DEFAULT_MEMORY_MAP + 3,
CPUINFO_PTR_DEFAULT_MEMORY_MAP_LAST = CPUINFO_PTR_DEFAULT_MEMORY_MAP + ADDRESS_SPACES - 1,
-
+
// CPU-specific additions
CPUINFO_PTR_INSTRUCTION_COUNTER = 0x14000,
// R/O: int *icount
diff --git a/src/emu/distate.c b/src/emu/distate.c
index b11fb01f6bf..f2e1f708b07 100644
--- a/src/emu/distate.c
+++ b/src/emu/distate.c
@@ -464,8 +464,8 @@ int device_state_interface::state_string_max_length(int index)
//-------------------------------------------------
-// set_state_int - set the value of the given
-// piece of indexed state from a UINT64
+// set_state_int - set the value of the given
+// piece of indexed state from a UINT64
//-------------------------------------------------
void device_state_interface::set_state_int(int index, UINT64 value)
diff --git a/src/emu/distate.h b/src/emu/distate.h
index 2893fa88741..281494c2bbe 100644
--- a/src/emu/distate.h
+++ b/src/emu/distate.h
@@ -163,7 +163,7 @@ public:
void set_state_int(int index, UINT64 value);
void set_state_string(int index, const char *string);
void set_pc(offs_t pc) { set_state_int(STATE_GENPC, pc); }
-
+
// deliberately ambiguous functions; if you have the state interface
// just use it or pc() and pcbase() directly
device_state_interface &state() { return *this; }
@@ -213,7 +213,7 @@ typedef device_interface_iterator<device_state_interface> state_interface_iterat
//-------------------------------------------------
// device_t::safe_pc - return the current PC
-// or 0 if no state object exists
+// or 0 if no state object exists
//-------------------------------------------------
inline offs_t device_t::safe_pc()
@@ -223,8 +223,8 @@ inline offs_t device_t::safe_pc()
//-------------------------------------------------
-// device_t::safe_pcbase - return the current PC
-// base or 0 if no state object exists
+// device_t::safe_pcbase - return the current PC
+// base or 0 if no state object exists
//-------------------------------------------------
inline offs_t device_t::safe_pcbase()
diff --git a/src/emu/drawgfx.c b/src/emu/drawgfx.c
index ccca202a711..5051d22871a 100644
--- a/src/emu/drawgfx.c
+++ b/src/emu/drawgfx.c
@@ -348,7 +348,7 @@ void gfx_element::set_layout(const gfx_layout &gl, const UINT8 *srcdata)
m_pen_usage.resize(m_total_elements);
else
m_pen_usage.reset();
-
+
// set the source
set_source(srcdata);
}
@@ -402,7 +402,7 @@ void gfx_element::decode(UINT32 code)
// zap the data to 0
UINT8 *decode_base = m_gfxdata + code * m_char_modulo;
memset(decode_base, 0, m_char_modulo);
-
+
// iterate over planes
for (int plane = 0; plane < m_layout_planes; plane++)
{
@@ -414,7 +414,7 @@ void gfx_element::decode(UINT32 code)
{
int yoffs = planeoffs + m_layout_yoffset[y];
UINT8 *dp = decode_base + y * rowbytes();
-
+
// iterate over columns
for (int x = 0; x < m_origwidth; x++)
if (readbit(m_srcdata, yoffs + m_layout_xoffset[x]))
diff --git a/src/emu/drawgfx.h b/src/emu/drawgfx.h
index 4c6df80f1cf..c96c8570670 100644
--- a/src/emu/drawgfx.h
+++ b/src/emu/drawgfx.h
@@ -133,7 +133,7 @@ public:
UINT32 colors() const { return m_total_colors; }
UINT32 rowbytes() const { return m_line_modulo; }
bool has_pen_usage() const { return (m_pen_usage.count() > 0); }
-
+
// a bit gross that people muck with this stuff...
const UINT8 *srcdata() const { return m_srcdata; }
UINT32 dirtyseq() const { return m_dirtyseq; }
@@ -156,17 +156,17 @@ public:
const UINT8 *get_data(UINT32 code)
{
assert(code < elements());
- if (code < m_dirty.count() && m_dirty[code]) decode(code);
+ if (code < m_dirty.count() && m_dirty[code]) decode(code);
return m_gfxdata + code * m_char_modulo + m_starty * m_line_modulo + m_startx;
}
-
+
UINT32 pen_usage(UINT32 code)
{
assert(code < m_pen_usage.count());
- if (m_dirty[code]) decode(code);
+ if (m_dirty[code]) decode(code);
return m_pen_usage[code];
}
-
+
private:
// internal state
UINT16 m_width; // current pixel width of each element (changeble with source clipping)
diff --git a/src/emu/emuopts.c b/src/emu/emuopts.c
index 3b35b59afe0..97114077ab2 100644
--- a/src/emu/emuopts.c
+++ b/src/emu/emuopts.c
@@ -518,7 +518,7 @@ void emu_options::set_system_name(const char *name)
add_device_options(true);
int num = 0;
do {
- num = options_count();
+ num = options_count();
update_slot_options();
while (add_slot_options(false));
add_device_options(false);
@@ -568,7 +568,7 @@ bool emu_options::parse_one_ini(const char *basename, int priority, astring *err
const char *emu_options::main_value(astring &buffer, const char *name) const
-{
+{
buffer = value(name);
int pos = buffer.chr(0,',');
if (pos!=-1) {
@@ -578,7 +578,7 @@ const char *emu_options::main_value(astring &buffer, const char *name) const
}
const char *emu_options::sub_value(astring &buffer, const char *name, const char *subname) const
-{
+{
astring tmp = ",";
tmp.cat(subname);
tmp.cat("=");
diff --git a/src/emu/imagedev/floppy.c b/src/emu/imagedev/floppy.c
index bd4409d55d3..7395b31b3a2 100644
--- a/src/emu/imagedev/floppy.c
+++ b/src/emu/imagedev/floppy.c
@@ -444,7 +444,7 @@ attotime floppy_image_device::get_next_transition(attotime from_when)
else
next_position = 200000000 + (buf[1] & floppy_image::TIME_MASK);
- // logerror("Floppy: cuspos=%d nextpos=%d\n", position, next_position);
+ // logerror("Floppy: cuspos=%d nextpos=%d\n", position, next_position);
return base + attotime::from_nsec(UINT64(next_position)*300/rpm);
}
diff --git a/src/emu/machine/53c810.c b/src/emu/machine/53c810.c
index 3a1434ff017..95e1d60572a 100644
--- a/src/emu/machine/53c810.c
+++ b/src/emu/machine/53c810.c
@@ -393,7 +393,7 @@ void lsi53c810_device::dma_exec()
UINT8 lsi53c810_device::lsi53c810_reg_r( int offset )
{
-// logerror("53c810: read reg %d:0x%x (PC=%x)\n", offset, offset, space->device().safe_pc());
+// logerror("53c810: read reg %d:0x%x (PC=%x)\n", offset, offset, space->device().safe_pc());
switch(offset)
{
case 0x00: /* SCNTL0 */
@@ -476,7 +476,7 @@ UINT8 lsi53c810_device::lsi53c810_reg_r( int offset )
void lsi53c810_device::lsi53c810_reg_w(int offset, UINT8 data)
{
-// logerror("53c810: %02x to reg %d:0x%x (PC=%x)\n", data, offset, offset, space->device().safe_pc());
+// logerror("53c810: %02x to reg %d:0x%x (PC=%x)\n", data, offset, offset, space->device().safe_pc());
switch(offset)
{
case 0x00: /* SCNTL0 */
diff --git a/src/emu/machine/6526cia.h b/src/emu/machine/6526cia.h
index b28952c4a2b..ea17eeae9d7 100644
--- a/src/emu/machine/6526cia.h
+++ b/src/emu/machine/6526cia.h
@@ -113,7 +113,7 @@ public:
DECLARE_READ8_MEMBER( read );
DECLARE_WRITE8_MEMBER( write );
-
+
UINT8 reg_r(UINT8 offset);
void reg_w(UINT8 offset, UINT8 data);
diff --git a/src/emu/machine/68681.c b/src/emu/machine/68681.c
index 45ecfa325bf..8257d562294 100644
--- a/src/emu/machine/68681.c
+++ b/src/emu/machine/68681.c
@@ -44,7 +44,7 @@ static const char *const duart68681_reg_write_names[0x10] =
#define RX_FIFO_SIZE 3
-struct DUART68681_CHANNEL
+struct DUART68681_CHANNEL
{
/* Registers */
UINT8 CR; /* Command register */
@@ -72,7 +72,7 @@ struct DUART68681_CHANNEL
};
-struct duart68681_state
+struct duart68681_state
{
/* device */
device_t *device;
diff --git a/src/emu/machine/8042kbdc.h b/src/emu/machine/8042kbdc.h
index 607b931b727..a54c59f885b 100644
--- a/src/emu/machine/8042kbdc.h
+++ b/src/emu/machine/8042kbdc.h
@@ -10,7 +10,7 @@
#ifndef KBDC8042_H
#define KBDC8042_H
-enum kbdc8042_type_t
+enum kbdc8042_type_t
{
KBDC8042_STANDARD,
KBDC8042_PS2, /* another timing of integrated controller */
diff --git a/src/emu/machine/latch8.h b/src/emu/machine/latch8.h
index 2bd23c04ebf..a17b7a1839e 100644
--- a/src/emu/machine/latch8.h
+++ b/src/emu/machine/latch8.h
@@ -46,27 +46,27 @@ class latch8_device : public device_t
public:
latch8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~latch8_device() { global_free(m_token); }
-
+
// access to legacy token
void *token() const { assert(m_token != NULL); return m_token; }
latch8_config m_inline_config;
-
- void set_maskout(UINT32 maskout) { m_inline_config.maskout = maskout; }
- void set_xorvalue(UINT32 xorvalue) { m_inline_config.xorvalue = xorvalue; }
- void set_nosync(UINT32 nosync) { m_inline_config.nosync = nosync; }
-
- void set_discrete_node(const char *dev_tag, int bit, UINT32 node) { m_inline_config.node_device[bit] = dev_tag; m_inline_config.node_map[bit] = node; }
- void set_devread(int bit, const char *tag, read8_device_func handler, int from_bit)
+
+ void set_maskout(UINT32 maskout) { m_inline_config.maskout = maskout; }
+ void set_xorvalue(UINT32 xorvalue) { m_inline_config.xorvalue = xorvalue; }
+ void set_nosync(UINT32 nosync) { m_inline_config.nosync = nosync; }
+
+ void set_discrete_node(const char *dev_tag, int bit, UINT32 node) { m_inline_config.node_device[bit] = dev_tag; m_inline_config.node_map[bit] = node; }
+ void set_devread(int bit, const char *tag, read8_device_func handler, int from_bit)
{
- m_inline_config.devread[bit].from_bit = from_bit;
- m_inline_config.devread[bit].tag = tag;
- m_inline_config.devread[bit].devread_handler = handler;
+ m_inline_config.devread[bit].from_bit = from_bit;
+ m_inline_config.devread[bit].tag = tag;
+ m_inline_config.devread[bit].devread_handler = handler;
}
- void set_read(int bit, read8_space_func handler, int from_bit)
+ void set_read(int bit, read8_space_func handler, int from_bit)
{
- m_inline_config.devread[bit].from_bit = from_bit;
- m_inline_config.devread[bit].read_handler = handler;
- }
+ m_inline_config.devread[bit].from_bit = from_bit;
+ m_inline_config.devread[bit].read_handler = handler;
+ }
protected:
// device-level overrides
virtual void device_config_complete();
@@ -88,7 +88,7 @@ extern const device_type LATCH8;
/* Bit mask specifying bits to be masked *out* */
#define MCFG_LATCH8_MASKOUT(_maskout) \
- static_cast<latch8_device *>(device)->set_maskout(_maskout);
+ static_cast<latch8_device *>(device)->set_maskout(_maskout);
/* Bit mask specifying bits to be inverted */
#define MCFG_LATCH8_INVERT(_xor) \
diff --git a/src/emu/machine/m6m80011ap.h b/src/emu/machine/m6m80011ap.h
index 47abaf05c03..f84e7f59e12 100644
--- a/src/emu/machine/m6m80011ap.h
+++ b/src/emu/machine/m6m80011ap.h
@@ -24,7 +24,7 @@ Template for skeleton device
// TYPE DEFINITIONS
//**************************************************************************
-enum eeprom_cmd_t
+enum eeprom_cmd_t
{
EEPROM_GET_CMD = 0,
EEPROM_READ,
diff --git a/src/emu/machine/matsucd.c b/src/emu/machine/matsucd.c
index f913812822b..55476a696ed 100644
--- a/src/emu/machine/matsucd.c
+++ b/src/emu/machine/matsucd.c
@@ -27,7 +27,7 @@ can be expanded with support for the other drives as needed.
#define MATSU_STATUS_MEDIA ( 1 << 6 ) /* media present (in caddy or tray) */
#define MATSU_STATUS_DOORCLOSED ( 1 << 7 ) /* tray status */
-struct matsucd
+struct matsucd
{
UINT8 enabled; /* /ENABLE - Unit enabled */
UINT8 cmd_signal; /* /CMD - Command mode */
diff --git a/src/emu/machine/msm6242.h b/src/emu/machine/msm6242.h
index 7e6fa35ad60..47bd8ed0ad3 100644
--- a/src/emu/machine/msm6242.h
+++ b/src/emu/machine/msm6242.h
@@ -30,7 +30,7 @@ struct msm6242_interface
devcb_write_line m_out_int_cb;
};
-struct rtc_regs_t
+struct rtc_regs_t
{
UINT8 sec, min, hour, day, wday, month;
UINT16 year;
diff --git a/src/emu/machine/net_lib.c b/src/emu/machine/net_lib.c
index 6d803178a5e..cd86c529566 100644
--- a/src/emu/machine/net_lib.c
+++ b/src/emu/machine/net_lib.c
@@ -910,11 +910,11 @@ static net_device_t_base_factory *netregistry[] =
{
ENTRY(netdev_ttl_const, NETDEV_TTL_CONST)
ENTRY(netdev_analog_const, NETDEV_ANALOG_CONST)
- ENTRY(netdev_logic_input, NETDEV_LOGIC_INPUT)
+ ENTRY(netdev_logic_input, NETDEV_LOGIC_INPUT)
ENTRY(netdev_analog_input, NETDEV_ANALOG_INPUT)
ENTRY(netdev_clock, NETDEV_CLOCK)
- ENTRY(netdev_callback, NETDEV_CALLBACK)
- ENTRY(nicMultiSwitch, NETDEV_SWITCH2)
+ ENTRY(netdev_callback, NETDEV_CALLBACK)
+ ENTRY(nicMultiSwitch, NETDEV_SWITCH2)
ENTRY(nicRSFF, NETDEV_RSFF)
ENTRY(nicMixer8, NETDEV_MIXER)
ENTRY(nic7400, TTL_7400_NAND)
diff --git a/src/emu/machine/net_lib.h b/src/emu/machine/net_lib.h
index e99ec2ac05d..2b6c6801310 100644
--- a/src/emu/machine/net_lib.h
+++ b/src/emu/machine/net_lib.h
@@ -94,7 +94,7 @@
#define TTL_7402_NOR(_name, _I1, _I2) \
NET_REGISTER_DEV(nic7402, _name) \
- NET_CONNECT(_name, I1, _I1) \
+ NET_CONNECT(_name, I1, _I1) \
NET_CONNECT(_name, I2, _I2) \
#define TTL_7404_INVERT(_name, _I1) \
@@ -147,7 +147,7 @@
#define TTL_7486_XOR(_name, _I1, _I2) \
NET_REGISTER_DEV(nic7486, _name) \
- NET_CONNECT(_name, I1, _I1) \
+ NET_CONNECT(_name, I1, _I1) \
NET_CONNECT(_name, I2, _I2) \
#define TTL_7448(_name, _A0, _A1, _A2, _A3, _LTQ, _BIQ, _RBIQ) \
@@ -201,7 +201,7 @@
NET_CONNECT(_name, K, _K) \
NET_CONNECT(_name, CLRQ, _CLRQ) \
-#define TTL_74107(_name, _CLK, _J, _K, _CLRQ) \
+#define TTL_74107(_name, _CLK, _J, _K, _CLRQ) \
TTL_74107A(_name, _CLK, _J, _K, _CLRQ)
#define TTL_74153(_name, _A1, _A2, _A3, _A4, _A, _B, _GA) \
@@ -408,7 +408,7 @@ class nic74107 : public nic74107A
{
public:
nic74107()
- : nic74107A() {}
+ : nic74107A() {}
};
diff --git a/src/emu/machine/netlist.c b/src/emu/machine/netlist.c
index a0bd2065fb0..53f633a3cb0 100644
--- a/src/emu/machine/netlist.c
+++ b/src/emu/machine/netlist.c
@@ -68,7 +68,7 @@
#if KEEP_STATISTICS
#define add_to_stat(v,x) do { v += (x); } while (0)
#define inc_stat(v) add_to_stat(v, 1)
-#define begin_timing(v) do { (v) -= get_profile_ticks(); } while (0)
+#define begin_timing(v) do { (v) -= get_profile_ticks(); } while (0)
#define end_timing(v) do { (v) += get_profile_ticks(); } while (0)
#else
#define add_to_stat(v,x) do { } while (0)
@@ -386,7 +386,7 @@ ATTR_HOT ATTR_ALIGN void netlist_base_t::process_list(INT32 &atime)
while ( (atime > 0) && (m_queue.is_not_empty()))
{
queue_t::entry_t e = m_queue.pop();
- netlist_time delta = e.time() - m_time_ps + netlist_time::from_raw(m_rem);
+ netlist_time delta = e.time() - m_time_ps + netlist_time::from_raw(m_rem);
atime -= divu_64x32_rem(delta.as_raw(), m_div, &m_rem);
m_time_ps = e.time();
@@ -583,8 +583,8 @@ void netlist_setup_t::resolve_inputs(void)
if (out.object_type(net_output_t::SIGNAL_MASK) == net_output_t::SIGNAL_ANALOG
&& in->object_type(net_output_t::SIGNAL_MASK) == net_output_t::SIGNAL_DIGITAL)
{
- // fatalerror("connecting analog output %s with %s\n", out.netdev()->name(), in->netdev()->name());
- // fatalerror("connecting analog output %s with %s\n", out.netdev()->name(), in->netdev()->name());
+ // fatalerror("connecting analog output %s with %s\n", out.netdev()->name(), in->netdev()->name());
+ // fatalerror("connecting analog output %s with %s\n", out.netdev()->name(), in->netdev()->name());
netdev_a_to_d_proxy *proxy = new netdev_a_to_d_proxy(*in);
proxy->init(this, "abc");
proxy->start();
@@ -933,7 +933,7 @@ void netlist_mame_device::device_reset()
void netlist_mame_device::device_stop()
{
m_setup->print_stats();
-
+
global_free(m_setup);
global_free(m_netlist);
}
@@ -972,9 +972,9 @@ ATTR_HOT void netlist_mame_device::execute_run()
//bool check_debugger = ((device_t::machine().debug_flags & DEBUG_FLAG_ENABLED) != 0);
// debugging
- //m_ppc = m_pc; // copy PC to previous PC
+ //m_ppc = m_pc; // copy PC to previous PC
//if (check_debugger)
- // debugger_instruction_hook(this, 0); //m_pc);
+ // debugger_instruction_hook(this, 0); //m_pc);
m_netlist->process_list(m_icount);
diff --git a/src/emu/machine/netlist.h b/src/emu/machine/netlist.h
index ae50b59c058..a73ce54b65b 100644
--- a/src/emu/machine/netlist.h
+++ b/src/emu/machine/netlist.h
@@ -58,7 +58,7 @@
#define USE_DELEGATES (1)
#define USE_DELEGATES_A (0)
-#define NETLIST_CLOCK (U64(1000000000))
+#define NETLIST_CLOCK (U64(1000000000))
#define NLTIME_FROM_NS(_t) netlist_time::from_ns(_t)
#define NLTIME_FROM_US(_t) netlist_time::from_us(_t)
@@ -100,11 +100,11 @@ ATTR_COLD void NETLIST_NAME(_name)(netlist_setup_t &netlist) \
#define NETLIST_END }
-#define NETLIST_INCLUDE(_name) \
+#define NETLIST_INCLUDE(_name) \
NETLIST_NAME(_name)(netlist); \
-#define NETLIST_MEMREGION(_name) \
+#define NETLIST_MEMREGION(_name) \
netlist.parse((char *)downcast<netlist_t &>(netlist.netlist()).machine().root_device().memregion(_name)->base()); \
#if defined(__GNUC__) && (__GNUC__ >= 3)
@@ -129,7 +129,7 @@ ATTR_COLD void NETLIST_NAME(_name)(netlist_setup_t &netlist) \
#define NETLIB_SIGNAL(_name, _num_input, _check) \
class _name : public net_signal_t<_num_input, _check> \
{ \
- public: \
+ public: \
_name () : net_signal_t<_num_input, _check>() { } \
}; \
@@ -168,15 +168,15 @@ ATTR_COLD void NETLIST_NAME(_name)(netlist_setup_t &netlist) \
// MAME specific
-#define MCFG_NETLIST_ADD(_tag, _setup ) \
- MCFG_DEVICE_ADD(_tag, NETLIST, NETLIST_CLOCK) \
- MCFG_NETLIST_SETUP(_setup) \
+#define MCFG_NETLIST_ADD(_tag, _setup ) \
+ MCFG_DEVICE_ADD(_tag, NETLIST, NETLIST_CLOCK) \
+ MCFG_NETLIST_SETUP(_setup) \
-#define MCFG_NETLIST_REPLACE(_tag, _setup) \
+#define MCFG_NETLIST_REPLACE(_tag, _setup) \
MCFG_DEVICE_REPLACE(_tag, NETLIST, NETLIST_CLOCK) \
- MCFG_NETLIST_SETUP(_setup) \
+ MCFG_NETLIST_SETUP(_setup) \
-#define MCFG_NETLIST_SETUP(_setup) \
+#define MCFG_NETLIST_SETUP(_setup) \
netlist_mame_device::static_set_constructor(*device, NETLIST_NAME(_setup)); \
@@ -402,7 +402,7 @@ public:
TYPE_MASK = 0x03,
SIGNAL_DIGITAL = 0x00,
SIGNAL_ANALOG = 0x10,
- SIGNAL_MASK = 0x10,
+ SIGNAL_MASK = 0x10,
};
net_object_t(int atype)
@@ -510,8 +510,8 @@ public:
friend net_sig_t logic_input_t::Q() const;
- ATTR_HOT inline const net_sig_t last_Q() const { return m_last_Q; }
- ATTR_HOT inline const net_sig_t new_Q() const { return m_new_Q; }
+ ATTR_HOT inline const net_sig_t last_Q() const { return m_last_Q; }
+ ATTR_HOT inline const net_sig_t new_Q() const { return m_new_Q; }
ATTR_HOT inline const double Q_Analog() const
{
@@ -519,14 +519,14 @@ public:
{
case SIGNAL_DIGITAL: return m_Q ? m_high_V : m_low_V;
case SIGNAL_ANALOG: return m_Q_analog;
- default: assert(true);
+ default: assert(true);
}
return 0;
}
inline net_sig_t *Q_ptr() { return &m_Q; }
- inline net_sig_t *new_Q_ptr() { return &m_new_Q; }
+ inline net_sig_t *new_Q_ptr() { return &m_new_Q; }
ATTR_COLD void register_con(net_input_t &inp);
@@ -544,9 +544,9 @@ public:
protected:
/* prohibit use in device functions
- * current (pending) state can be inquired using new_Q()
- */
- ATTR_HOT inline const net_sig_t Q() const { return m_Q; }
+ * current (pending) state can be inquired using new_Q()
+ */
+ ATTR_HOT inline const net_sig_t Q() const { return m_Q; }
ATTR_HOT inline void register_in_listPS(const netlist_time &delay_ps);
@@ -612,8 +612,8 @@ public:
}
ATTR_COLD void initial(const net_sig_t val) { m_Q = val; m_new_Q = val; m_last_Q = !val; }
- ATTR_HOT inline void clear() { set_Q_PS(0, netlist_time::zero); }
- ATTR_HOT inline void set() { set_Q_PS(1, netlist_time::zero); }
+ ATTR_HOT inline void clear() { set_Q_PS(0, netlist_time::zero); }
+ ATTR_HOT inline void set() { set_Q_PS(1, netlist_time::zero); }
ATTR_HOT inline void setToPS(const UINT8 val, const netlist_time &delay_ps) { set_Q_PS(val, delay_ps); }
ATTR_HOT inline void setToNoCheckPS(const UINT8 val, const netlist_time &delay_ps) { set_Q_NoCheckPS(val, delay_ps); }
ATTR_COLD inline void set_levels(const double low, const double high)
@@ -768,7 +768,7 @@ public:
inline void initial(const double val) { m_param = val; }
inline void initial(const int val) { m_param = val; }
- ATTR_HOT inline double Value() const { return m_param; }
+ ATTR_HOT inline double Value() const { return m_param; }
ATTR_HOT inline int ValueInt() const { return (int) m_param; }
ATTR_HOT inline net_core_device_t &netdev() const { return *m_netdev; }
@@ -922,7 +922,7 @@ public:
protected:
netlist_time m_time_ps;
UINT32 m_rem;
- UINT32 m_div;
+ UINT32 m_div;
queue_t m_queue;
diff --git a/src/emu/machine/pc16552d.c b/src/emu/machine/pc16552d.c
index 50cbb9cc71b..02ed609ba53 100644
--- a/src/emu/machine/pc16552d.c
+++ b/src/emu/machine/pc16552d.c
@@ -34,7 +34,7 @@
#define INT_ENABLE_RX_LINE_STATUS 0x04
#define INT_ENABLE_MODEM_STATUS 0x08
-struct PC16552D_CHANNEL
+struct PC16552D_CHANNEL
{
UINT16 divisor;
UINT8 reg[8];
@@ -50,7 +50,7 @@ struct PC16552D_CHANNEL
emu_timer *tx_fifo_timer;
};
-struct PC16552D_REGS
+struct PC16552D_REGS
{
PC16552D_CHANNEL ch[2];
int frequency;
diff --git a/src/emu/machine/pckeybrd.h b/src/emu/machine/pckeybrd.h
index 28575cb151d..76c8366c505 100644
--- a/src/emu/machine/pckeybrd.h
+++ b/src/emu/machine/pckeybrd.h
@@ -12,7 +12,7 @@
#ifndef PCKEYBRD_H
#define PCKEYBRD_H
-enum AT_KEYBOARD_TYPE
+enum AT_KEYBOARD_TYPE
{
AT_KEYBOARD_TYPE_PC,
AT_KEYBOARD_TYPE_AT,
diff --git a/src/emu/machine/pic8259.c b/src/emu/machine/pic8259.c
index e0e9bda9c70..d48f527d516 100644
--- a/src/emu/machine/pic8259.c
+++ b/src/emu/machine/pic8259.c
@@ -20,7 +20,7 @@
#define LOG_OCW 0
#define LOG_GENERAL 0
-enum pic8259_state_t
+enum pic8259_state_t
{
STATE_ICW1,
STATE_ICW2,
diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c
index dfbe2b3df70..d4ba1b2ebaa 100644
--- a/src/emu/machine/pit8253.c
+++ b/src/emu/machine/pit8253.c
@@ -82,7 +82,7 @@ struct pit8253_timer
UINT32 cycles_to_output; /* cycles until output callback called */
};
-struct pit8253_t
+struct pit8253_t
{
const pit8253_config *config;
int device_type;
diff --git a/src/emu/machine/rp5h01.c b/src/emu/machine/rp5h01.c
index 35e3f3fae5b..6a5bb9e2d63 100644
--- a/src/emu/machine/rp5h01.c
+++ b/src/emu/machine/rp5h01.c
@@ -2,9 +2,9 @@
RP5H01
- TODO:
- - convert to modern and follow the datasheet better (all dumps
- presumably needs to be redone from scratch?)
+ TODO:
+ - convert to modern and follow the datasheet better (all dumps
+ presumably needs to be redone from scratch?)
2009-06 Converted to be a device
diff --git a/src/emu/machine/rtc9701.h b/src/emu/machine/rtc9701.h
index 8f08891beed..5cc6bfbd387 100644
--- a/src/emu/machine/rtc9701.h
+++ b/src/emu/machine/rtc9701.h
@@ -26,7 +26,7 @@
//**************************************************************************
-enum rtc9701_state_t
+enum rtc9701_state_t
{
RTC9701_CMD_WAIT = 0,
RTC9701_RTC_READ,
@@ -37,7 +37,7 @@ enum rtc9701_state_t
};
-struct rtc_regs_t
+struct rtc_regs_t
{
UINT8 sec, min, hour, day, wday, month, year;
};
diff --git a/src/emu/machine/s3520cf.c b/src/emu/machine/s3520cf.c
index d178f474f62..16494011520 100644
--- a/src/emu/machine/s3520cf.c
+++ b/src/emu/machine/s3520cf.c
@@ -210,7 +210,7 @@ WRITE_LINE_MEMBER( s3520cf_device::set_cs_line )
WRITE_LINE_MEMBER( s3520cf_device::write_bit )
{
m_latch = state;
-// printf("%d LATCH LINE\n",state);
+// printf("%d LATCH LINE\n",state);
}
WRITE_LINE_MEMBER( s3520cf_device::set_clock_line )
diff --git a/src/emu/machine/s3520cf.h b/src/emu/machine/s3520cf.h
index 2f231f404b1..73a2b0a6e40 100644
--- a/src/emu/machine/s3520cf.h
+++ b/src/emu/machine/s3520cf.h
@@ -23,13 +23,13 @@ Template for skeleton device
// TYPE DEFINITIONS
//**************************************************************************
-enum s3520cf_state_t
+enum s3520cf_state_t
{
RTC_SET_ADDRESS = 0,
RTC_SET_DATA
};
-struct rtc_regs_t
+struct rtc_regs_t
{
UINT8 sec, min, hour, day, wday, month, year;
};
diff --git a/src/emu/machine/s3c2400.c b/src/emu/machine/s3c2400.c
index e1a35e54ffe..bca0e4614ff 100644
--- a/src/emu/machine/s3c2400.c
+++ b/src/emu/machine/s3c2400.c
@@ -62,7 +62,7 @@ DEVICE_START( s3c2400 )
space->install_legacy_readwrite_handler( *device, 0x15800000, 0x15800007, FUNC(s3c24xx_adc_r), FUNC(s3c24xx_adc_w));
space->install_legacy_readwrite_handler( *device, 0x15900000, 0x15900017, FUNC(s3c24xx_spi_0_r), FUNC(s3c24xx_spi_0_w));
space->install_legacy_readwrite_handler( *device, 0x15a00000, 0x15a0003f, FUNC(s3c24xx_mmc_r), FUNC(s3c24xx_mmc_w));
-
+
s3c24xx_video_start( device, device->machine());
}
diff --git a/src/emu/machine/s3c2400.h b/src/emu/machine/s3c2400.h
index d59e5ee4120..f1e1ee4f4d5 100644
--- a/src/emu/machine/s3c2400.h
+++ b/src/emu/machine/s3c2400.h
@@ -38,10 +38,10 @@ class s3c2400_device : public device_t
public:
s3c2400_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~s3c2400_device() { global_free(m_token); }
-
+
// access to legacy token
void *token() const { assert(m_token != NULL); return m_token; }
-
+
// device-level overrides
virtual void device_config_complete();
virtual void device_start();
@@ -49,7 +49,7 @@ public:
private:
// internal state
void *m_token;
-public:
+public:
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
};
@@ -407,17 +407,17 @@ void s3c2400_uart_fifo_w( device_t *device, int uart, UINT8 data);
TYPE DEFINITIONS
*******************************************************************************/
-struct s3c24xx_memcon_regs_t
+struct s3c24xx_memcon_regs_t
{
UINT32 data[0x34/4];
};
-struct s3c24xx_usbhost_regs_t
+struct s3c24xx_usbhost_regs_t
{
UINT32 data[0x5C/4];
};
-struct s3c24xx_irq_regs_t
+struct s3c24xx_irq_regs_t
{
UINT32 srcpnd;
UINT32 intmod;
@@ -427,7 +427,7 @@ struct s3c24xx_irq_regs_t
UINT32 intoffset;
};
-struct s3c24xx_dma_regs_t
+struct s3c24xx_dma_regs_t
{
UINT32 disrc;
UINT32 didst;
@@ -438,7 +438,7 @@ struct s3c24xx_dma_regs_t
UINT32 dmasktrig;
};
-struct s3c24xx_clkpow_regs_t
+struct s3c24xx_clkpow_regs_t
{
UINT32 locktime;
UINT32 mpllcon;
@@ -448,7 +448,7 @@ struct s3c24xx_clkpow_regs_t
UINT32 clkdivn;
};
-struct s3c24xx_lcd_regs_t
+struct s3c24xx_lcd_regs_t
{
UINT32 lcdcon1;
UINT32 lcdcon2;
@@ -466,12 +466,12 @@ struct s3c24xx_lcd_regs_t
UINT32 tpal;
};
-struct s3c24xx_lcdpal_regs_t
+struct s3c24xx_lcdpal_regs_t
{
UINT32 data[0x400/4];
};
-struct s3c24xx_uart_regs_t
+struct s3c24xx_uart_regs_t
{
UINT32 ulcon;
UINT32 ucon;
@@ -486,7 +486,7 @@ struct s3c24xx_uart_regs_t
UINT32 ubrdiv;
};
-struct s3c24xx_pwm_regs_t
+struct s3c24xx_pwm_regs_t
{
UINT32 tcfg0;
UINT32 tcfg1;
@@ -507,19 +507,19 @@ struct s3c24xx_pwm_regs_t
UINT32 tcnto4;
};
-struct s3c24xx_usbdev_regs_t
+struct s3c24xx_usbdev_regs_t
{
UINT32 data[0xBC/4];
};
-struct s3c24xx_wdt_regs_t
+struct s3c24xx_wdt_regs_t
{
UINT32 wtcon;
UINT32 wtdat;
UINT32 wtcnt;
};
-struct s3c24xx_iic_regs_t
+struct s3c24xx_iic_regs_t
{
UINT32 iiccon;
UINT32 iicstat;
@@ -527,7 +527,7 @@ struct s3c24xx_iic_regs_t
UINT32 iicds;
};
-struct s3c24xx_iis_regs_t
+struct s3c24xx_iis_regs_t
{
UINT32 iiscon;
UINT32 iismod;
@@ -536,7 +536,7 @@ struct s3c24xx_iis_regs_t
UINT32 iisfifo;
};
-struct s3c24xx_gpio_regs_t
+struct s3c24xx_gpio_regs_t
{
UINT32 gpacon;
UINT32 gpadat;
@@ -563,7 +563,7 @@ struct s3c24xx_gpio_regs_t
UINT32 extint;
};
-struct s3c24xx_rtc_regs_t
+struct s3c24xx_rtc_regs_t
{
UINT32 rtccon;
UINT32 ticnt;
@@ -585,13 +585,13 @@ struct s3c24xx_rtc_regs_t
UINT32 bcdyear;
};
-struct s3c24xx_adc_regs_t
+struct s3c24xx_adc_regs_t
{
UINT32 adccon;
UINT32 adcdat;
};
-struct s3c24xx_spi_regs_t
+struct s3c24xx_spi_regs_t
{
UINT32 spcon;
UINT32 spsta;
@@ -601,39 +601,39 @@ struct s3c24xx_spi_regs_t
UINT32 sprdat;
};
-struct s3c24xx_mmc_regs_t
+struct s3c24xx_mmc_regs_t
{
UINT32 data[0x40/4];
};
-struct s3c24xx_memcon_t
+struct s3c24xx_memcon_t
{
s3c24xx_memcon_regs_t regs;
};
-struct s3c24xx_usbhost_t
+struct s3c24xx_usbhost_t
{
s3c24xx_usbhost_regs_t regs;
};
-struct s3c24xx_irq_t
+struct s3c24xx_irq_t
{
s3c24xx_irq_regs_t regs;
int line_irq, line_fiq;
};
-struct s3c24xx_dma_t
+struct s3c24xx_dma_t
{
s3c24xx_dma_regs_t regs;
emu_timer *timer;
};
-struct s3c24xx_clkpow_t
+struct s3c24xx_clkpow_t
{
s3c24xx_clkpow_regs_t regs;
};
-struct s3c24xx_lcd_t
+struct s3c24xx_lcd_t
{
s3c24xx_lcd_regs_t regs;
emu_timer *timer;
@@ -652,17 +652,17 @@ struct s3c24xx_lcd_t
UINT32 dma_data, dma_bits;
};
-struct s3c24xx_lcdpal_t
+struct s3c24xx_lcdpal_t
{
s3c24xx_lcdpal_regs_t regs;
};
-struct s3c24xx_uart_t
+struct s3c24xx_uart_t
{
s3c24xx_uart_regs_t regs;
};
-struct s3c24xx_pwm_t
+struct s3c24xx_pwm_t
{
s3c24xx_pwm_regs_t regs;
emu_timer *timer[5];
@@ -671,25 +671,25 @@ struct s3c24xx_pwm_t
UINT32 freq[5];
};
-struct s3c24xx_usbdev_t
+struct s3c24xx_usbdev_t
{
s3c24xx_usbdev_regs_t regs;
};
-struct s3c24xx_wdt_t
+struct s3c24xx_wdt_t
{
s3c24xx_wdt_regs_t regs;
emu_timer *timer;
};
-struct s3c24xx_iic_t
+struct s3c24xx_iic_t
{
s3c24xx_iic_regs_t regs;
emu_timer *timer;
int count;
};
-struct s3c24xx_iis_t
+struct s3c24xx_iis_t
{
s3c24xx_iis_regs_t regs;
emu_timer *timer;
@@ -697,34 +697,34 @@ struct s3c24xx_iis_t
int fifo_index;
};
-struct s3c24xx_gpio_t
+struct s3c24xx_gpio_t
{
s3c24xx_gpio_regs_t regs;
};
-struct s3c24xx_rtc_t
+struct s3c24xx_rtc_t
{
s3c24xx_rtc_regs_t regs;
emu_timer *timer_tick_count;
emu_timer *timer_update;
};
-struct s3c24xx_adc_t
+struct s3c24xx_adc_t
{
s3c24xx_adc_regs_t regs;
};
-struct s3c24xx_spi_t
+struct s3c24xx_spi_t
{
s3c24xx_spi_regs_t regs;
};
-struct s3c24xx_mmc_t
+struct s3c24xx_mmc_t
{
s3c24xx_mmc_regs_t regs;
};
-struct s3c24xx_t
+struct s3c24xx_t
{
const s3c2400_interface *iface;
s3c24xx_memcon_t memcon;
diff --git a/src/emu/machine/s3c2410.c b/src/emu/machine/s3c2410.c
index cce1a811700..6cbbad3c2c6 100644
--- a/src/emu/machine/s3c2410.c
+++ b/src/emu/machine/s3c2410.c
@@ -65,7 +65,7 @@ DEVICE_START( s3c2410 )
space->install_legacy_readwrite_handler( *device, 0x59000000, 0x59000017, FUNC(s3c24xx_spi_0_r), FUNC(s3c24xx_spi_0_w));
space->install_legacy_readwrite_handler( *device, 0x59000020, 0x59000037, FUNC(s3c24xx_spi_1_r), FUNC(s3c24xx_spi_1_w));
space->install_legacy_readwrite_handler( *device, 0x5a000000, 0x5a000043, FUNC(s3c24xx_sdi_r), FUNC(s3c24xx_sdi_w));
-
+
s3c24xx_video_start( device, device->machine());
}
diff --git a/src/emu/machine/s3c2410.h b/src/emu/machine/s3c2410.h
index 0054f2c026c..0ed2cf85c2e 100644
--- a/src/emu/machine/s3c2410.h
+++ b/src/emu/machine/s3c2410.h
@@ -46,7 +46,7 @@ class s3c2410_device : public device_t
public:
s3c2410_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~s3c2410_device() { global_free(m_token); }
-
+
// access to legacy token
void *token() const { assert(m_token != NULL); return m_token; }
// device-level overrides
@@ -56,7 +56,7 @@ public:
private:
// internal state
void *m_token;
-public:
+public:
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
};
@@ -498,17 +498,17 @@ static const UINT32 MAP_SUBINT_TO_INT[11] =
TYPE DEFINITIONS
*******************************************************************************/
-struct s3c24xx_memcon_regs_t
+struct s3c24xx_memcon_regs_t
{
UINT32 data[0x34/4];
};
-struct s3c24xx_usbhost_regs_t
+struct s3c24xx_usbhost_regs_t
{
UINT32 data[0x5C/4];
};
-struct s3c24xx_irq_regs_t
+struct s3c24xx_irq_regs_t
{
UINT32 srcpnd;
UINT32 intmod;
@@ -520,7 +520,7 @@ struct s3c24xx_irq_regs_t
UINT32 intsubmsk;
};
-struct s3c24xx_dma_regs_t
+struct s3c24xx_dma_regs_t
{
UINT32 disrc;
UINT32 disrcc;
@@ -533,7 +533,7 @@ struct s3c24xx_dma_regs_t
UINT32 dmasktrig;
};
-struct s3c24xx_clkpow_regs_t
+struct s3c24xx_clkpow_regs_t
{
UINT32 locktime;
UINT32 mpllcon;
@@ -543,7 +543,7 @@ struct s3c24xx_clkpow_regs_t
UINT32 clkdivn;
};
-struct s3c24xx_lcd_regs_t
+struct s3c24xx_lcd_regs_t
{
UINT32 lcdcon1;
UINT32 lcdcon2;
@@ -565,12 +565,12 @@ struct s3c24xx_lcd_regs_t
UINT32 lpcsel;
};
-struct s3c24xx_lcdpal_regs_t
+struct s3c24xx_lcdpal_regs_t
{
UINT32 data[0x400/4];
};
-struct s3c24xx_nand_regs_t
+struct s3c24xx_nand_regs_t
{
UINT32 nfconf;
UINT32 nfcmd;
@@ -580,7 +580,7 @@ struct s3c24xx_nand_regs_t
UINT32 nfecc;
};
-struct s3c24xx_uart_regs_t
+struct s3c24xx_uart_regs_t
{
UINT32 ulcon;
UINT32 ucon;
@@ -595,7 +595,7 @@ struct s3c24xx_uart_regs_t
UINT32 ubrdiv;
};
-struct s3c24xx_pwm_regs_t
+struct s3c24xx_pwm_regs_t
{
UINT32 tcfg0;
UINT32 tcfg1;
@@ -616,19 +616,19 @@ struct s3c24xx_pwm_regs_t
UINT32 tcnto4;
};
-struct s3c24xx_usbdev_regs_t
+struct s3c24xx_usbdev_regs_t
{
UINT32 data[0x130/4];
};
-struct s3c24xx_wdt_regs_t
+struct s3c24xx_wdt_regs_t
{
UINT32 wtcon;
UINT32 wtdat;
UINT32 wtcnt;
};
-struct s3c24xx_iic_regs_t
+struct s3c24xx_iic_regs_t
{
UINT32 iiccon;
UINT32 iicstat;
@@ -636,7 +636,7 @@ struct s3c24xx_iic_regs_t
UINT32 iicds;
};
-struct s3c24xx_iis_regs_t
+struct s3c24xx_iis_regs_t
{
UINT32 iiscon;
UINT32 iismod;
@@ -645,7 +645,7 @@ struct s3c24xx_iis_regs_t
UINT32 iisfifo;
};
-struct s3c24xx_gpio_regs_t
+struct s3c24xx_gpio_regs_t
{
UINT32 gpacon;
UINT32 gpadat;
@@ -697,7 +697,7 @@ struct s3c24xx_gpio_regs_t
UINT32 gstatus4;
};
-struct s3c24xx_rtc_regs_t
+struct s3c24xx_rtc_regs_t
{
UINT32 rtccon;
UINT32 ticnt;
@@ -719,7 +719,7 @@ struct s3c24xx_rtc_regs_t
UINT32 bcdyear;
};
-struct s3c24xx_adc_regs_t
+struct s3c24xx_adc_regs_t
{
UINT32 adccon;
UINT32 adctsc;
@@ -728,7 +728,7 @@ struct s3c24xx_adc_regs_t
UINT32 adcdat1;
};
-struct s3c24xx_spi_regs_t
+struct s3c24xx_spi_regs_t
{
UINT32 spcon;
UINT32 spsta;
@@ -738,39 +738,39 @@ struct s3c24xx_spi_regs_t
UINT32 sprdat;
};
-struct s3c24xx_sdi_regs_t
+struct s3c24xx_sdi_regs_t
{
UINT32 data[0x44/4];
};
-struct s3c24xx_memcon_t
+struct s3c24xx_memcon_t
{
s3c24xx_memcon_regs_t regs;
};
-struct s3c24xx_usbhost_t
+struct s3c24xx_usbhost_t
{
s3c24xx_usbhost_regs_t regs;
};
-struct s3c24xx_irq_t
+struct s3c24xx_irq_t
{
s3c24xx_irq_regs_t regs;
int line_irq, line_fiq;
};
-struct s3c24xx_dma_t
+struct s3c24xx_dma_t
{
s3c24xx_dma_regs_t regs;
emu_timer *timer;
};
-struct s3c24xx_clkpow_t
+struct s3c24xx_clkpow_t
{
s3c24xx_clkpow_regs_t regs;
};
-struct s3c24xx_lcd_t
+struct s3c24xx_lcd_t
{
s3c24xx_lcd_regs_t regs;
emu_timer *timer;
@@ -789,24 +789,24 @@ struct s3c24xx_lcd_t
UINT32 dma_data, dma_bits;
};
-struct s3c24xx_lcdpal_t
+struct s3c24xx_lcdpal_t
{
s3c24xx_lcdpal_regs_t regs;
};
-struct s3c24xx_nand_t
+struct s3c24xx_nand_t
{
s3c24xx_nand_regs_t regs;
UINT8 mecc[3];
int ecc_pos, data_count;
};
-struct s3c24xx_uart_t
+struct s3c24xx_uart_t
{
s3c24xx_uart_regs_t regs;
};
-struct s3c24xx_pwm_t
+struct s3c24xx_pwm_t
{
s3c24xx_pwm_regs_t regs;
emu_timer *timer[5];
@@ -815,26 +815,26 @@ struct s3c24xx_pwm_t
UINT32 freq[5];
};
-struct s3c24xx_usbdev_t
+struct s3c24xx_usbdev_t
{
s3c24xx_usbdev_regs_t regs;
};
-struct s3c24xx_wdt_t
+struct s3c24xx_wdt_t
{
s3c24xx_wdt_regs_t regs;
emu_timer *timer;
UINT32 freq, cnt;
};
-struct s3c24xx_iic_t
+struct s3c24xx_iic_t
{
s3c24xx_iic_regs_t regs;
emu_timer *timer;
int count;
};
-struct s3c24xx_iis_t
+struct s3c24xx_iis_t
{
s3c24xx_iis_regs_t regs;
emu_timer *timer;
@@ -842,34 +842,34 @@ struct s3c24xx_iis_t
int fifo_index;
};
-struct s3c24xx_gpio_t
+struct s3c24xx_gpio_t
{
s3c24xx_gpio_regs_t regs;
};
-struct s3c24xx_rtc_t
+struct s3c24xx_rtc_t
{
s3c24xx_rtc_regs_t regs;
emu_timer *timer_tick_count;
emu_timer *timer_update;
};
-struct s3c24xx_adc_t
+struct s3c24xx_adc_t
{
s3c24xx_adc_regs_t regs;
};
-struct s3c24xx_spi_t
+struct s3c24xx_spi_t
{
s3c24xx_spi_regs_t regs;
};
-struct s3c24xx_sdi_t
+struct s3c24xx_sdi_t
{
s3c24xx_sdi_regs_t regs;
};
-struct s3c24xx_t
+struct s3c24xx_t
{
const s3c2410_interface *iface;
UINT8 steppingstone[4*1024];
diff --git a/src/emu/machine/s3c2440.c b/src/emu/machine/s3c2440.c
index 2ff3405cd4d..1c84ffed35b 100644
--- a/src/emu/machine/s3c2440.c
+++ b/src/emu/machine/s3c2440.c
@@ -67,7 +67,7 @@ DEVICE_START( s3c2440 )
space->install_legacy_readwrite_handler( *device, 0x5a000000, 0x5a000043, FUNC(s3c24xx_sdi_r), FUNC(s3c24xx_sdi_w));
space->install_legacy_readwrite_handler( *device, 0x5b000000, 0x5b00001f, FUNC(s3c24xx_ac97_r), FUNC(s3c24xx_ac97_w));
DEVICE_START_CALL(s3c24xx);
-
+
s3c24xx_video_start( device, device->machine());
}
diff --git a/src/emu/machine/s3c2440.h b/src/emu/machine/s3c2440.h
index 3f386d77852..cffcd69b0d3 100644
--- a/src/emu/machine/s3c2440.h
+++ b/src/emu/machine/s3c2440.h
@@ -45,7 +45,7 @@ class s3c2440_device : public device_t
public:
s3c2440_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~s3c2440_device() { global_free(m_token); }
-
+
// access to legacy token
void *token() const { assert(m_token != NULL); return m_token; }
protected:
@@ -56,7 +56,7 @@ protected:
private:
// internal state
void *m_token;
-public:
+public:
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
};
@@ -527,17 +527,17 @@ static const UINT32 MAP_SUBINT_TO_INT[15] =
TYPE DEFINITIONS
*******************************************************************************/
-struct s3c24xx_memcon_regs_t
+struct s3c24xx_memcon_regs_t
{
UINT32 data[0x34/4];
};
-struct s3c24xx_usbhost_regs_t
+struct s3c24xx_usbhost_regs_t
{
UINT32 data[0x5C/4];
};
-struct s3c24xx_irq_regs_t
+struct s3c24xx_irq_regs_t
{
UINT32 srcpnd;
UINT32 intmod;
@@ -549,7 +549,7 @@ struct s3c24xx_irq_regs_t
UINT32 intsubmsk;
};
-struct s3c24xx_dma_regs_t
+struct s3c24xx_dma_regs_t
{
UINT32 disrc;
UINT32 disrcc;
@@ -562,7 +562,7 @@ struct s3c24xx_dma_regs_t
UINT32 dmasktrig;
};
-struct s3c24xx_clkpow_regs_t
+struct s3c24xx_clkpow_regs_t
{
UINT32 locktime;
UINT32 mpllcon;
@@ -573,7 +573,7 @@ struct s3c24xx_clkpow_regs_t
UINT32 camdivn;
};
-struct s3c24xx_lcd_regs_t
+struct s3c24xx_lcd_regs_t
{
UINT32 lcdcon1;
UINT32 lcdcon2;
@@ -595,12 +595,12 @@ struct s3c24xx_lcd_regs_t
UINT32 tconsel;
};
-struct s3c24xx_lcdpal_regs_t
+struct s3c24xx_lcdpal_regs_t
{
UINT32 data[0x400/4];
};
-struct s3c24xx_nand_regs_t
+struct s3c24xx_nand_regs_t
{
UINT32 nfconf;
UINT32 nfcont;
@@ -620,12 +620,12 @@ struct s3c24xx_nand_regs_t
UINT32 nfeblk;
};
-struct s3c24xx_cam_regs_t
+struct s3c24xx_cam_regs_t
{
UINT32 data[0xA4/4];
};
-struct s3c24xx_uart_regs_t
+struct s3c24xx_uart_regs_t
{
UINT32 ulcon;
UINT32 ucon;
@@ -640,7 +640,7 @@ struct s3c24xx_uart_regs_t
UINT32 ubrdiv;
};
-struct s3c24xx_pwm_regs_t
+struct s3c24xx_pwm_regs_t
{
UINT32 tcfg0;
UINT32 tcfg1;
@@ -661,19 +661,19 @@ struct s3c24xx_pwm_regs_t
UINT32 tcnto4;
};
-struct s3c24xx_usbdev_regs_t
+struct s3c24xx_usbdev_regs_t
{
UINT32 data[0x130/4];
};
-struct s3c24xx_wdt_regs_t
+struct s3c24xx_wdt_regs_t
{
UINT32 wtcon;
UINT32 wtdat;
UINT32 wtcnt;
};
-struct s3c24xx_iic_regs_t
+struct s3c24xx_iic_regs_t
{
UINT32 iiccon;
UINT32 iicstat;
@@ -682,7 +682,7 @@ struct s3c24xx_iic_regs_t
UINT32 iiclc;
};
-struct s3c24xx_iis_regs_t
+struct s3c24xx_iis_regs_t
{
UINT32 iiscon;
UINT32 iismod;
@@ -691,7 +691,7 @@ struct s3c24xx_iis_regs_t
UINT32 iisfifo;
};
-struct s3c24xx_gpio_regs_t
+struct s3c24xx_gpio_regs_t
{
UINT32 gpacon;
UINT32 gpadat;
@@ -750,7 +750,7 @@ struct s3c24xx_gpio_regs_t
UINT32 gpjup;
};
-struct s3c24xx_rtc_regs_t
+struct s3c24xx_rtc_regs_t
{
UINT32 rtccon;
UINT32 ticnt;
@@ -772,7 +772,7 @@ struct s3c24xx_rtc_regs_t
UINT32 bcdyear;
};
-struct s3c24xx_adc_regs_t
+struct s3c24xx_adc_regs_t
{
UINT32 adccon;
UINT32 adctsc;
@@ -782,7 +782,7 @@ struct s3c24xx_adc_regs_t
UINT32 adcupdn;
};
-struct s3c24xx_spi_regs_t
+struct s3c24xx_spi_regs_t
{
UINT32 spcon;
UINT32 spsta;
@@ -792,44 +792,44 @@ struct s3c24xx_spi_regs_t
UINT32 sprdat;
};
-struct s3c24xx_sdi_regs_t
+struct s3c24xx_sdi_regs_t
{
UINT32 data[0x44/4];
};
-struct s3c24xx_ac97_regs_t
+struct s3c24xx_ac97_regs_t
{
UINT32 data[0x20/4];
};
-struct s3c24xx_memcon_t
+struct s3c24xx_memcon_t
{
s3c24xx_memcon_regs_t regs;
};
-struct s3c24xx_usbhost_t
+struct s3c24xx_usbhost_t
{
s3c24xx_usbhost_regs_t regs;
};
-struct s3c24xx_irq_t
+struct s3c24xx_irq_t
{
s3c24xx_irq_regs_t regs;
int line_irq, line_fiq;
};
-struct s3c24xx_dma_t
+struct s3c24xx_dma_t
{
s3c24xx_dma_regs_t regs;
emu_timer *timer;
};
-struct s3c24xx_clkpow_t
+struct s3c24xx_clkpow_t
{
s3c24xx_clkpow_regs_t regs;
};
-struct s3c24xx_lcd_t
+struct s3c24xx_lcd_t
{
s3c24xx_lcd_regs_t regs;
emu_timer *timer;
@@ -848,12 +848,12 @@ struct s3c24xx_lcd_t
UINT32 dma_data, dma_bits;
};
-struct s3c24xx_lcdpal_t
+struct s3c24xx_lcdpal_t
{
s3c24xx_lcdpal_regs_t regs;
};
-struct s3c24xx_nand_t
+struct s3c24xx_nand_t
{
s3c24xx_nand_regs_t regs;
UINT8 mecc[4];
@@ -861,17 +861,17 @@ struct s3c24xx_nand_t
int ecc_pos, data_count;
};
-struct s3c24xx_cam_t
+struct s3c24xx_cam_t
{
s3c24xx_cam_regs_t regs;
};
-struct s3c24xx_uart_t
+struct s3c24xx_uart_t
{
s3c24xx_uart_regs_t regs;
};
-struct s3c24xx_pwm_t
+struct s3c24xx_pwm_t
{
s3c24xx_pwm_regs_t regs;
emu_timer *timer[5];
@@ -880,25 +880,25 @@ struct s3c24xx_pwm_t
UINT32 freq[5];
};
-struct s3c24xx_usbdev_t
+struct s3c24xx_usbdev_t
{
s3c24xx_usbdev_regs_t regs;
};
-struct s3c24xx_wdt_t
+struct s3c24xx_wdt_t
{
s3c24xx_wdt_regs_t regs;
emu_timer *timer;
};
-struct s3c24xx_iic_t
+struct s3c24xx_iic_t
{
s3c24xx_iic_regs_t regs;
emu_timer *timer;
int count;
};
-struct s3c24xx_iis_t
+struct s3c24xx_iis_t
{
s3c24xx_iis_regs_t regs;
emu_timer *timer;
@@ -906,39 +906,39 @@ struct s3c24xx_iis_t
int fifo_index;
};
-struct s3c24xx_gpio_t
+struct s3c24xx_gpio_t
{
s3c24xx_gpio_regs_t regs;
};
-struct s3c24xx_rtc_t
+struct s3c24xx_rtc_t
{
s3c24xx_rtc_regs_t regs;
emu_timer *timer_tick_count;
emu_timer *timer_update;
};
-struct s3c24xx_adc_t
+struct s3c24xx_adc_t
{
s3c24xx_adc_regs_t regs;
};
-struct s3c24xx_spi_t
+struct s3c24xx_spi_t
{
s3c24xx_spi_regs_t regs;
};
-struct s3c24xx_sdi_t
+struct s3c24xx_sdi_t
{
s3c24xx_sdi_regs_t regs;
};
-struct s3c24xx_ac97_t
+struct s3c24xx_ac97_t
{
s3c24xx_ac97_regs_t regs;
};
-struct s3c24xx_t
+struct s3c24xx_t
{
const s3c2440_interface *iface;
UINT8 steppingstone[4*1024];
diff --git a/src/emu/machine/scsibus.c b/src/emu/machine/scsibus.c
index 9d74b051a7e..94af87de044 100644
--- a/src/emu/machine/scsibus.c
+++ b/src/emu/machine/scsibus.c
@@ -1,9 +1,9 @@
/*
- SCSIBus.c
+ SCSIBus.c
- Implementation of a raw SCSI/SASI bus for machines that don't use a SCSI
- controler chip such as the RM Nimbus, which implements it as a bunch of
- 74LS series chips.
+ Implementation of a raw SCSI/SASI bus for machines that don't use a SCSI
+ controler chip such as the RM Nimbus, which implements it as a bunch of
+ 74LS series chips.
*/
diff --git a/src/emu/machine/scsibus.h b/src/emu/machine/scsibus.h
index 559507acad0..7ed35a1534d 100644
--- a/src/emu/machine/scsibus.h
+++ b/src/emu/machine/scsibus.h
@@ -100,7 +100,7 @@
#define SCSI_SENSE_SIZE 4
-struct adaptec_sense_t
+struct adaptec_sense_t
{
// parameter list
UINT8 reserved1[3];
diff --git a/src/emu/machine/seibu_cop.c b/src/emu/machine/seibu_cop.c
index 6d39755c1da..65ca18efd0d 100644
--- a/src/emu/machine/seibu_cop.c
+++ b/src/emu/machine/seibu_cop.c
@@ -1,8 +1,8 @@
/***************************************************************************
- Seibu COP protection device
+ Seibu COP protection device
- (this header needs expanding)
+ (this header needs expanding)
***************************************************************************/
@@ -116,14 +116,14 @@ WRITE16_MEMBER( seibu_cop_device::write )
case 0x074/2:
/*
- This sets up a DMA mode of some sort
- 0x0e00: grainbow, cupsoc
- 0x0a00: legionna, godzilla, denjinmk
- 0x0600: heatbrl
- 0x1e00: zeroteam, xsedae
- raiden2 and raidendx doesn't set this up, this could indicate that this is related to the non-private buffer DMAs
- (both only uses 0x14 and 0x15 as DMAs)
- */
+ This sets up a DMA mode of some sort
+ 0x0e00: grainbow, cupsoc
+ 0x0a00: legionna, godzilla, denjinmk
+ 0x0600: heatbrl
+ 0x1e00: zeroteam, xsedae
+ raiden2 and raidendx doesn't set this up, this could indicate that this is related to the non-private buffer DMAs
+ (both only uses 0x14 and 0x15 as DMAs)
+ */
COMBINE_DATA(&m_dma_unk_param);
break;
diff --git a/src/emu/machine/tms9901.h b/src/emu/machine/tms9901.h
index 6f7be85bb1e..394555003bd 100644
--- a/src/emu/machine/tms9901.h
+++ b/src/emu/machine/tms9901.h
@@ -50,7 +50,7 @@ enum
CLASS DEFINITION
***************************************************************************/
-struct tms9901_interface
+struct tms9901_interface
{
int interrupt_mask; // a bit for each input pin whose state is always notified to the TMS9901 core
devcb_read8 read_handler; // 4*8 bits, to be selected using the offset (0-3)
diff --git a/src/emu/machine/tms9902.h b/src/emu/machine/tms9902.h
index 9efb0ded5c1..16784d3aa2e 100644
--- a/src/emu/machine/tms9902.h
+++ b/src/emu/machine/tms9902.h
@@ -42,7 +42,7 @@
extern const device_type TMS9902;
-struct tms9902_interface
+struct tms9902_interface
{
devcb_write_line int_callback;
devcb_write_line rcv_callback;
diff --git a/src/emu/machine/v3021.h b/src/emu/machine/v3021.h
index e67d0d3eced..b3934441f90 100644
--- a/src/emu/machine/v3021.h
+++ b/src/emu/machine/v3021.h
@@ -27,7 +27,7 @@
// TYPE DEFINITIONS
//**************************************************************************
-struct rtc_regs_t
+struct rtc_regs_t
{
UINT8 sec, min, hour, day, wday, month, year;
};
diff --git a/src/emu/machine/wd33c93.c b/src/emu/machine/wd33c93.c
index d15b04abced..2048d68f860 100644
--- a/src/emu/machine/wd33c93.c
+++ b/src/emu/machine/wd33c93.c
@@ -419,11 +419,11 @@ void wd33c93_device::dispatch_command()
case WD_CMD_RESET:
reset_cmd();
break;
-
+
case WD_CMD_ABORT:
abort_cmd();
break;
-
+
case WD_CMD_NEGATE_ACK:
negate_ack();
break;
diff --git a/src/emu/romload.c b/src/emu/romload.c
index 4571061ce58..af6b6ee39de 100644
--- a/src/emu/romload.c
+++ b/src/emu/romload.c
@@ -1454,14 +1454,14 @@ void rom_init(running_machine &machine)
/* figure out which BIOS we are using */
device_iterator deviter(romdata->machine().config().root_device());
- for (device_t *device = deviter.first(); device != NULL; device = deviter.next()) {
+ for (device_t *device = deviter.first(); device != NULL; device = deviter.next()) {
if (device->rom_region()) {
const char *specbios;
astring temp;
if (strcmp(device->tag(),":")==0) {
specbios = romdata->machine().options().bios();
} else {
- specbios = romdata->machine().options().sub_value(temp,device->owner()->tag()+1,"bios");
+ specbios = romdata->machine().options().sub_value(temp,device->owner()->tag()+1,"bios");
}
determine_bios_rom(romdata, device, specbios);
}
diff --git a/src/emu/sound/c140.c b/src/emu/sound/c140.c
index 4c50b1f6bee..a3fbbe2a03a 100644
--- a/src/emu/sound/c140.c
+++ b/src/emu/sound/c140.c
@@ -65,7 +65,7 @@ struct voice_registers
UINT8 reserved[4];
};
-struct VOICE
+struct VOICE
{
long ptoffset;
long pos;
diff --git a/src/emu/sound/c352.h b/src/emu/sound/c352.h
index 3341884ae89..bc15db47241 100644
--- a/src/emu/sound/c352.h
+++ b/src/emu/sound/c352.h
@@ -63,7 +63,7 @@ private:
C352_FLG_REVERSE = 0x0001, // play sample backwards
};
- struct c352_ch_t
+ struct c352_ch_t
{
UINT8 vol_l;
UINT8 vol_r;
diff --git a/src/emu/sound/discrete.c b/src/emu/sound/discrete.c
index 4ff682c33ae..34668fb26aa 100644
--- a/src/emu/sound/discrete.c
+++ b/src/emu/sound/discrete.c
@@ -83,7 +83,7 @@ const device_type DISCRETE = &device_creator<discrete_sound_device>;
*
*************************************/
-struct output_buffer
+struct output_buffer
{
double *node_buf;
const double *source;
@@ -91,7 +91,7 @@ struct output_buffer
int node_num;
};
-struct input_buffer
+struct input_buffer
{
volatile const double *ptr; /* pointer into linked_outbuf.nodebuf */
output_buffer * linked_outbuf; /* what output are we connected to ? */
diff --git a/src/emu/sound/discrete.h b/src/emu/sound/discrete.h
index 46fe8c671a2..147194f03ee 100644
--- a/src/emu/sound/discrete.h
+++ b/src/emu/sound/discrete.h
@@ -4139,7 +4139,7 @@ enum {
*
*************************************/
-enum discrete_node_type
+enum discrete_node_type
{
DSS_NULL, /* Nothing, nill, zippo, only to be used as terminating node */
DSS_NOP, /* just do nothing, placeholder for potential DISCRETE_REPLACE in parent block */
diff --git a/src/emu/sound/es5503.h b/src/emu/sound/es5503.h
index 86595e6ffeb..1fa65378198 100644
--- a/src/emu/sound/es5503.h
+++ b/src/emu/sound/es5503.h
@@ -67,7 +67,7 @@ private:
MODE_SWAP = 3
};
- struct ES5503Osc
+ struct ES5503Osc
{
UINT16 freq;
UINT16 wtsize;
diff --git a/src/emu/sound/fm.c b/src/emu/sound/fm.c
index e273e937c1c..b3c292c1c22 100644
--- a/src/emu/sound/fm.c
+++ b/src/emu/sound/fm.c
@@ -519,7 +519,7 @@ static FILE *sample[1];
/* struct describing a single operator (SLOT) */
-struct FM_SLOT
+struct FM_SLOT
{
INT32 *DT; /* detune :dt_tab[DT] */
UINT8 KSR; /* key scale rate :3-KSR */
@@ -560,7 +560,7 @@ struct FM_SLOT
};
-struct FM_CH
+struct FM_CH
{
FM_SLOT SLOT[4]; /* four SLOTs (operators) */
@@ -585,7 +585,7 @@ struct FM_CH
};
-struct FM_ST
+struct FM_ST
{
device_t *device;
void * param; /* this chip parameter */
@@ -622,7 +622,7 @@ struct FM_ST
/***********************************************************/
/* OPN 3slot struct */
-struct FM_3SLOT
+struct FM_3SLOT
{
UINT32 fc[3]; /* fnum3,blk3: calculated */
UINT8 fn_h; /* freq3 latch */
@@ -631,7 +631,7 @@ struct FM_3SLOT
};
/* OPN/A/B common state */
-struct FM_OPN
+struct FM_OPN
{
UINT8 type; /* chip type */
FM_ST ST; /* general state */
@@ -2089,7 +2089,7 @@ static void OPNPrescaler_w(FM_OPN *OPN , int addr, int pre_divider)
/*****************************************************************************/
/* here's the virtual YM2203(OPN) */
-struct YM2203
+struct YM2203
{
UINT8 REGS[256]; /* registers */
FM_OPN OPN; /* OPN state */
@@ -2385,7 +2385,7 @@ int ym2203_timer_over(void *chip,int c)
#if (BUILD_YM2608||BUILD_YM2610||BUILD_YM2610B)
/* ADPCM type A channel struct */
-struct ADPCM_CH
+struct ADPCM_CH
{
UINT8 flag; /* port state */
UINT8 flagMask; /* arrived flag mask */
@@ -2405,7 +2405,7 @@ struct ADPCM_CH
};
/* here's the virtual YM2610 */
-struct YM2610
+struct YM2610
{
UINT8 REGS[512]; /* registers */
FM_OPN OPN; /* OPN state */
diff --git a/src/emu/sound/fm2612.c b/src/emu/sound/fm2612.c
index a3e6fa9b4c1..bc00afee192 100644
--- a/src/emu/sound/fm2612.c
+++ b/src/emu/sound/fm2612.c
@@ -531,7 +531,7 @@ static FILE *sample[1];
/* struct describing a single operator (SLOT) */
-struct FM_SLOT
+struct FM_SLOT
{
INT32 *DT; /* detune :dt_tab[DT] */
UINT8 KSR; /* key scale rate :3-KSR */
@@ -572,7 +572,7 @@ struct FM_SLOT
};
-struct FM_CH
+struct FM_CH
{
FM_SLOT SLOT[4]; /* four SLOTs (operators) */
@@ -597,7 +597,7 @@ struct FM_CH
};
-struct FM_ST
+struct FM_ST
{
device_t *device;
void * param; /* this chip parameter */
@@ -634,7 +634,7 @@ struct FM_ST
/***********************************************************/
/* OPN 3slot struct */
-struct FM_3SLOT
+struct FM_3SLOT
{
UINT32 fc[3]; /* fnum3,blk3: calculated */
UINT8 fn_h; /* freq3 latch */
@@ -644,7 +644,7 @@ struct FM_3SLOT
};
/* OPN/A/B common state */
-struct FM_OPN
+struct FM_OPN
{
UINT8 type; /* chip type */
FM_ST ST; /* general state */
@@ -678,7 +678,7 @@ struct FM_OPN
};
/* here's the virtual YM2612 */
-struct YM2612
+struct YM2612
{
UINT8 REGS[512]; /* registers */
FM_OPN OPN; /* OPN state */
diff --git a/src/emu/sound/fmopl.c b/src/emu/sound/fmopl.c
index 59d4bc644ad..6caf88875e0 100644
--- a/src/emu/sound/fmopl.c
+++ b/src/emu/sound/fmopl.c
@@ -198,7 +198,7 @@ static FILE * cymfile = NULL;
-struct OPL_SLOT
+struct OPL_SLOT
{
UINT32 ar; /* attack rate: AR<<2 */
UINT32 dr; /* decay rate: DR<<2 */
@@ -239,7 +239,7 @@ struct OPL_SLOT
UINT16 wavetable;
};
-struct OPL_CH
+struct OPL_CH
{
OPL_SLOT SLOT[2];
/* phase generator state */
@@ -250,7 +250,7 @@ struct OPL_CH
};
/* OPL state */
-struct FM_OPL
+struct FM_OPL
{
/* FM channel slots */
OPL_CH P_CH[9]; /* OPL/OPL2 chips have 9 channels*/
diff --git a/src/emu/sound/i5000.h b/src/emu/sound/i5000.h
index 358edd1749a..52103025bc6 100644
--- a/src/emu/sound/i5000.h
+++ b/src/emu/sound/i5000.h
@@ -47,7 +47,7 @@ protected:
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
private:
- struct channel_t
+ struct channel_t
{
bool is_playing;
oki_adpcm_state m_adpcm;
diff --git a/src/emu/sound/k005289.c b/src/emu/sound/k005289.c
index f8a52327fac..94025526d6a 100644
--- a/src/emu/sound/k005289.c
+++ b/src/emu/sound/k005289.c
@@ -31,7 +31,7 @@
#define FREQBASEBITS 16
/* this structure defines the parameters for a channel */
-struct k005289_sound_channel
+struct k005289_sound_channel
{
int frequency;
int counter;
diff --git a/src/emu/sound/k007232.c b/src/emu/sound/k007232.c
index 15aa230ceef..08c2653d55d 100644
--- a/src/emu/sound/k007232.c
+++ b/src/emu/sound/k007232.c
@@ -30,7 +30,7 @@ added external port callback, and functions to set the volume of the channels
#define KDAC_A_PCM_MAX (2) /* Channels per chip */
-struct KDAC_A_PCM
+struct KDAC_A_PCM
{
UINT8 vol[KDAC_A_PCM_MAX][2]; /* volume for the left and right channel */
UINT32 addr[KDAC_A_PCM_MAX];
diff --git a/src/emu/sound/k051649.c b/src/emu/sound/k051649.c
index 4c072b53b9b..338b5009058 100644
--- a/src/emu/sound/k051649.c
+++ b/src/emu/sound/k051649.c
@@ -30,7 +30,7 @@
/* this structure defines the parameters for a channel */
-struct k051649_sound_channel
+struct k051649_sound_channel
{
unsigned long counter;
int frequency;
diff --git a/src/emu/sound/mos6560.c b/src/emu/sound/mos6560.c
index 422b69d1687..141930fc98b 100644
--- a/src/emu/sound/mos6560.c
+++ b/src/emu/sound/mos6560.c
@@ -156,7 +156,7 @@ static const rgb_t PALETTE[] =
inline UINT8 mos6560_device::read_videoram(offs_t offset)
{
m_last_data = space(AS_0)->read_byte(offset & 0x3fff);
-
+
return m_last_data;
}
diff --git a/src/emu/sound/n63701x.c b/src/emu/sound/n63701x.c
index 65780163b71..3c60e7a284c 100644
--- a/src/emu/sound/n63701x.c
+++ b/src/emu/sound/n63701x.c
@@ -17,7 +17,7 @@ silence compression: '00 nn' must be replaced by nn+1 times '80'.
#include "n63701x.h"
-struct voice
+struct voice
{
int select;
int playing;
diff --git a/src/emu/sound/namco.c b/src/emu/sound/namco.c
index 0bc916a899f..ec595ad0271 100644
--- a/src/emu/sound/namco.c
+++ b/src/emu/sound/namco.c
@@ -36,7 +36,7 @@
/* this structure defines the parameters for a channel */
-struct sound_channel
+struct sound_channel
{
UINT32 frequency;
UINT32 counter;
diff --git a/src/emu/sound/nes_defs.h b/src/emu/sound/nes_defs.h
index 280c96d7aa2..d68151033a0 100644
--- a/src/emu/sound/nes_defs.h
+++ b/src/emu/sound/nes_defs.h
@@ -48,7 +48,7 @@ typedef UINT8 boolean;
#define QUEUE_SIZE 0x2000
#define QUEUE_MAX (QUEUE_SIZE-1)
-struct queue_t
+struct queue_t
{
int pos;
unsigned char reg,val;
@@ -84,7 +84,7 @@ struct queue_t
/* CHANNEL TYPE DEFINITIONS */
/* Square Wave */
-struct square_t
+struct square_t
{
uint8 regs[4];
int vbl_length;
@@ -99,7 +99,7 @@ struct square_t
};
/* Triangle Wave */
-struct triangle_t
+struct triangle_t
{
uint8 regs[4]; /* regs[1] unused */
int linear_length;
@@ -113,7 +113,7 @@ struct triangle_t
};
/* Noise Wave */
-struct noise_t
+struct noise_t
{
uint8 regs[4]; /* regs[1] unused */
int cur_pos;
@@ -126,7 +126,7 @@ struct noise_t
};
/* DPCM Wave */
-struct dpcm_t
+struct dpcm_t
{
uint8 regs[4];
uint32 address;
@@ -142,7 +142,7 @@ struct dpcm_t
};
/* APU type */
-struct apu_t
+struct apu_t
{
/* Sound channels */
square_t squ[2];
diff --git a/src/emu/sound/s14001a.c b/src/emu/sound/s14001a.c
index 68a78ff2fbd..caa29f74195 100644
--- a/src/emu/sound/s14001a.c
+++ b/src/emu/sound/s14001a.c
@@ -237,7 +237,7 @@ and off as it normally does during speech). Once START has gone low-high-low, th
#include "emu.h"
#include "s14001a.h"
-struct S14001AChip
+struct S14001AChip
{
sound_stream * stream;
diff --git a/src/emu/sound/sid6581.c b/src/emu/sound/sid6581.c
index 3329f574d6f..8434f8ba7d5 100644
--- a/src/emu/sound/sid6581.c
+++ b/src/emu/sound/sid6581.c
@@ -34,7 +34,7 @@ static void sid_start(device_t *device, SIDTYPE sidtype)
SID6581_t *sid = get_sid(device);
const sid6581_interface *iface = (const sid6581_interface*) device->static_config();
assert(iface);
-
+
// resolve callbacks
sid->in_potx_func.resolve(iface->in_potx_cb, *device);
sid->in_poty_func.resolve(iface->in_poty_cb, *device);
diff --git a/src/emu/sound/sid6581.h b/src/emu/sound/sid6581.h
index 53f37e713c0..752bbb2937b 100644
--- a/src/emu/sound/sid6581.h
+++ b/src/emu/sound/sid6581.h
@@ -14,7 +14,7 @@
#include "devlegcy.h"
-enum SIDTYPE
+enum SIDTYPE
{
MOS6581,
MOS8580
diff --git a/src/emu/sound/sn76496.h b/src/emu/sound/sn76496.h
index 03d7e0c97a1..1ce40acaf8b 100644
--- a/src/emu/sound/sn76496.h
+++ b/src/emu/sound/sn76496.h
@@ -176,7 +176,7 @@ extern const device_type NCR7496_NEW;
extern const device_type GAMEGEAR_NEW;
extern const device_type SEGAPSG_NEW;
-struct sn76496_config
+struct sn76496_config
{
devcb_write_line ready;
};
diff --git a/src/emu/sound/tms5220.h b/src/emu/sound/tms5220.h
index e570d4d8968..c3c102f0d3a 100644
--- a/src/emu/sound/tms5220.h
+++ b/src/emu/sound/tms5220.h
@@ -121,7 +121,7 @@ extern const device_type TMC0285N;
extern const device_type TMS5200N;
-struct tms52xx_config
+struct tms52xx_config
{
devcb_write_line irq_func; // IRQ callback function, active low, i.e. state=0 (TODO: change to ASSERT/CLEAR)
devcb_write_line readyq_func; // Ready callback function, active low, i.e. state=0
diff --git a/src/emu/sound/upd7759.c b/src/emu/sound/upd7759.c
index db6eea99d2b..23a43ab722f 100644
--- a/src/emu/sound/upd7759.c
+++ b/src/emu/sound/upd7759.c
@@ -107,7 +107,7 @@
The other chip models don't support slave mode, and have an internal ROM.
Other than that, they are thought to be nearly identical to uPD7759.
-
+
55C 18-pin DIP 96 Kbit ROM
55G 24-pin SOP 96 Kbit ROM
56C 18-pin DIP 256 Kbit ROM
@@ -174,7 +174,7 @@ struct upd7759_state
/* chip configuration */
UINT8 sample_offset_shift; /* header sample address shift (access data > 0xffff) */
-
+
/* internal clock to output sample rate mapping */
UINT32 pos; /* current output sample position */
UINT32 step; /* step value per output sample */
@@ -670,7 +670,7 @@ static DEVICE_START( upd7759 )
/* chip configuration */
chip->sample_offset_shift = (device->type() == UPD7759) ? 1 : 0;
-
+
/* allocate a stream channel */
chip->channel = device->machine().sound().stream_alloc(*device, 0, 1, device->clock()/4, chip, upd7759_update);
diff --git a/src/emu/sound/ym2151.c b/src/emu/sound/ym2151.c
index 52dda68c749..fa175e7d8c4 100644
--- a/src/emu/sound/ym2151.c
+++ b/src/emu/sound/ym2151.c
@@ -23,7 +23,7 @@ static FILE * cymfile = NULL;
/* struct describing a single operator */
-struct YM2151Operator
+struct YM2151Operator
{
UINT32 phase; /* accumulated operator phase */
UINT32 freq; /* operator frequency count */
@@ -76,7 +76,7 @@ struct YM2151Operator
};
-struct YM2151
+struct YM2151
{
signed int chanout[8];
signed int m2,c1,c2; /* Phase Modulation input for operators 2,3,4 */
diff --git a/src/emu/sound/ym2413.c b/src/emu/sound/ym2413.c
index c9966ad5d7f..ec71681fd3d 100644
--- a/src/emu/sound/ym2413.c
+++ b/src/emu/sound/ym2413.c
@@ -164,7 +164,7 @@ static FILE * cymfile = NULL;
-struct OPLL_SLOT
+struct OPLL_SLOT
{
UINT32 ar; /* attack rate: AR<<2 */
UINT32 dr; /* decay rate: DR<<2 */
@@ -209,7 +209,7 @@ struct OPLL_SLOT
unsigned int wavetable;
};
-struct OPLL_CH
+struct OPLL_CH
{
OPLL_SLOT SLOT[2];
/* phase generator state */
@@ -221,7 +221,7 @@ struct OPLL_CH
};
/* chip state */
-struct YM2413
+struct YM2413
{
OPLL_CH P_CH[9]; /* OPLL chips have 9 channels*/
UINT8 instvol_r[9]; /* instrument/volume (or volume/volume in percussive mode)*/
diff --git a/src/emu/sound/ymf262.c b/src/emu/sound/ymf262.c
index c24fd4280bf..1b5e4f3762e 100644
--- a/src/emu/sound/ymf262.c
+++ b/src/emu/sound/ymf262.c
@@ -141,7 +141,7 @@ static FILE * cymfile = NULL;
#define OPL3_TYPE_YMF262 (0) /* 36 operators, 8 waveforms */
-struct OPL3_SLOT
+struct OPL3_SLOT
{
UINT32 ar; /* attack rate: AR<<2 */
UINT32 dr; /* decay rate: DR<<2 */
@@ -192,7 +192,7 @@ unsigned char reserved[128-100];//speedup: pump up the struct size to power of 2
};
-struct OPL3_CH
+struct OPL3_CH
{
OPL3_SLOT SLOT[2];
@@ -218,7 +218,7 @@ unsigned char reserved[512-272];//speedup:pump up the struct size to power of 2
};
/* OPL3 state */
-struct OPL3
+struct OPL3
{
OPL3_CH P_CH[18]; /* OPL3 chips have 18 channels */
diff --git a/src/emu/sound/ymf271.c b/src/emu/sound/ymf271.c
index a1c8ededf21..35a278ac1f5 100644
--- a/src/emu/sound/ymf271.c
+++ b/src/emu/sound/ymf271.c
@@ -33,7 +33,7 @@
//#define log2(n) (log((float) n)/log((float) 2))
-struct YMF271Slot
+struct YMF271Slot
{
INT8 extout;
UINT8 lfoFreq;
@@ -82,12 +82,12 @@ struct YMF271Slot
double lfo_phasemod;
};
-struct YMF271Group
+struct YMF271Group
{
INT8 sync, pfm;
};
-struct YMF271Chip
+struct YMF271Chip
{
YMF271Slot slots[48];
YMF271Group groups[12];
diff --git a/src/emu/sound/ymf278b.c b/src/emu/sound/ymf278b.c
index df12602dafe..6ea6dbde17e 100644
--- a/src/emu/sound/ymf278b.c
+++ b/src/emu/sound/ymf278b.c
@@ -73,7 +73,7 @@
struct YMF278BChip;
-struct YMF278BSlot
+struct YMF278BSlot
{
INT16 wave; /* wavetable number */
INT16 F_NUMBER; /* frequency */
@@ -115,7 +115,7 @@ struct YMF278BSlot
YMF278BChip *chip; /* pointer back to parent chip */
};
-struct YMF278BChip
+struct YMF278BChip
{
UINT8 pcmregs[256];
YMF278BSlot slots[24];
diff --git a/src/emu/sound/ymz770.h b/src/emu/sound/ymz770.h
index 320d89b47c0..ea0da561a9b 100644
--- a/src/emu/sound/ymz770.h
+++ b/src/emu/sound/ymz770.h
@@ -34,7 +34,7 @@ class amm;
class ymz770_device : public device_t, public device_sound_interface
{
- struct ymz_channel
+ struct ymz_channel
{
UINT8 phrase;
UINT8 pan;
diff --git a/src/emu/sprite.c b/src/emu/sprite.c
index e7cda794096..ed9ee12634b 100644
--- a/src/emu/sprite.c
+++ b/src/emu/sprite.c
@@ -71,7 +71,7 @@ void sparse_dirty_bitmap::dirty(INT32 left, INT32 right, INT32 top, INT32 bottom
// compute a rectangle in dirty space, and fill it with 1
rectangle rect(left >> m_granularity, right >> m_granularity, top >> m_granularity, bottom >> m_granularity);
m_bitmap.fill(1, rect);
-
+
// invalidate existing rect list
invalidate_rect_list();
}
@@ -93,7 +93,7 @@ void sparse_dirty_bitmap::clean(INT32 left, INT32 right, INT32 top, INT32 bottom
// compute a rectangle in dirty space, and fill it with 0
rectangle rect((left + round) >> m_granularity, (right - round) >> m_granularity, (top + round) >> m_granularity, (bottom - round) >> m_granularity);
m_bitmap.fill(0, rect);
-
+
// invalidate existing rect list
invalidate_rect_list();
}
@@ -108,11 +108,11 @@ void sparse_dirty_bitmap::resize(int width, int height)
// set new size
m_width = width;
m_height = height;
-
+
// resize the bitmap
int round = (1 << m_granularity) - 1;
m_bitmap.resize((width + round) >> m_granularity, (height + round) >> m_granularity);
-
+
// reset everything
dirty_all();
}
@@ -120,7 +120,7 @@ void sparse_dirty_bitmap::resize(int width, int height)
//-------------------------------------------------
// first_dirty_rect -- return the first dirty
-// rectangle in the list
+// rectangle in the list
//-------------------------------------------------
sparse_dirty_rect *sparse_dirty_bitmap::first_dirty_rect(const rectangle &cliprect)
@@ -128,10 +128,10 @@ sparse_dirty_rect *sparse_dirty_bitmap::first_dirty_rect(const rectangle &clipre
// if what we have is valid, just return it again
if (m_rect_list_bounds == cliprect)
return m_rect_list.first();
-
+
// reclaim the dirty list and start over
m_rect_allocator.reclaim_all(m_rect_list);
-
+
// compute dirty space rectangle coordinates
int sx = cliprect.min_x >> m_granularity;
int ex = cliprect.max_x >> m_granularity;
@@ -156,7 +156,7 @@ sparse_dirty_rect *sparse_dirty_bitmap::first_dirty_rect(const rectangle &clipre
currect = NULL;
continue;
}
-
+
// if we can't add to an existing rect, create a new one
if (currect == NULL)
{
diff --git a/src/emu/sprite.h b/src/emu/sprite.h
index 496fff8779a..4fef306cd42 100644
--- a/src/emu/sprite.h
+++ b/src/emu/sprite.h
@@ -55,7 +55,7 @@ class sparse_dirty_rect : public rectangle
public:
// getters
const sparse_dirty_rect *next() const { return m_next; }
-
+
private:
// internal state
sparse_dirty_rect * m_next;
@@ -75,7 +75,7 @@ public:
void dirty(const rectangle &rect) { dirty(rect.left(), rect.right(), rect.top(), rect.bottom()); }
void dirty(INT32 left, INT32 right, INT32 top, INT32 bottom);
void dirty_all() { dirty(0, m_width - 1, 0, m_height - 1); }
-
+
// cleaning operations - partially intersecting tiles are NOT cleaned
void clean(const rectangle &rect) { clean(rect.left(), rect.right(), rect.top(), rect.bottom()); }
void clean(INT32 left, INT32 right, INT32 top, INT32 bottom);
@@ -85,9 +85,9 @@ public:
sparse_dirty_rect *first_dirty_rect() { rectangle fullrect(0, m_width - 1, 0, m_height - 1); return first_dirty_rect(fullrect); }
sparse_dirty_rect *first_dirty_rect(const rectangle &cliprect);
- // dynamic resizing
+ // dynamic resizing
void resize(int width, int height);
-
+
private:
// invalidate cached rect list
void invalidate_rect_list() { m_rect_list_bounds.set(0, -1, 0, -1); }
@@ -135,18 +135,18 @@ public:
UINT32 spriteram_bytes() const { return m_spriteram_bytes; }
UINT32 spriteram_elements() const { return m_spriteram_bytes / sizeof(_SpriteRAMType); }
_SpriteRAMType *buffer() { return &m_buffer[0]; }
-
+
// static configuration
static void static_set_xorigin(device_t &device, int origin) { downcast<sprite_device &>(device).m_xorigin = origin; }
static void static_set_yorigin(device_t &device, int origin) { downcast<sprite_device &>(device).m_yorigin = origin; }
static void static_set_origin(device_t &device, int xorigin, int yorigin) { static_set_xorigin(device, xorigin); static_set_yorigin(device, yorigin); }
-
+
// configuration
void set_origin(INT32 xorigin = 0, INT32 yorigin = 0) { m_xorigin = xorigin; m_yorigin = yorigin; }
-
+
// buffering
void copy_to_buffer() { memcpy(m_buffer, m_spriteram, m_spriteram_bytes); }
-
+
// clearing
void clear() { clear(m_bitmap.cliprect()); }
void clear(const rectangle &cliprect)
@@ -155,7 +155,7 @@ public:
m_bitmap.fill(~0, *rect);
m_dirty.clean(cliprect);
}
-
+
// force clear (don't use dirty rects)
void force_clear()
{
@@ -174,18 +174,18 @@ public:
m_bitmap.resize(new_width, new_height, BITMAP_SLOP, BITMAP_SLOP);
m_dirty.resize(new_width, new_height);
}
-
+
// clear out the region
if (clearit)
clear(cliprect);
-
+
// wrap the bitmap, adjusting for x/y origins
_BitmapType wrapped(&m_bitmap.pix(0) - m_xorigin - m_yorigin * m_bitmap.rowpixels(), m_xorigin + cliprect.right() + 1, m_yorigin + cliprect.bottom() + 1, m_bitmap.rowpixels());
// compute adjusted cliprect in source space
rectangle adjusted = cliprect;
adjusted.offset(m_xorigin, m_yorigin);
-
+
// render
draw(wrapped, adjusted);
}
@@ -202,21 +202,21 @@ protected:
// set up pointers
m_spriteram = reinterpret_cast<_SpriteRAMType *>(spriteram->ptr());
m_spriteram_bytes = spriteram->bytes();
-
+
// allocate the double buffer to match the RAM size
m_buffer.resize(m_spriteram_bytes / sizeof(_SpriteRAMType));
// save states
save_item(NAME(m_buffer));
}
-
+
// subclass overrides
virtual void draw(_BitmapType &bitmap, const rectangle &cliprect) = 0;
// subclass helpers
void mark_dirty(const rectangle &rect) { mark_dirty(rect.left(), rect.right(), rect.top(), rect.bottom()); }
void mark_dirty(INT32 left, INT32 right, INT32 top, INT32 bottom) { m_dirty.dirty(left - m_xorigin, right - m_xorigin, top - m_yorigin, bottom - m_yorigin); }
-
+
private:
// configuration
INT32 m_xorigin; // X origin for drawing
@@ -226,7 +226,7 @@ private:
_SpriteRAMType * m_spriteram; // pointer to spriteram pointer
INT32 m_spriteram_bytes; // size of sprite RAM in bytes
dynamic_array<_SpriteRAMType> m_buffer; // buffered spriteram for those that use it
-
+
// bitmaps
_BitmapType m_bitmap; // live bitmap
sparse_dirty_bitmap m_dirty; // dirty bitmap
diff --git a/src/emu/video/cdp1862.c b/src/emu/video/cdp1862.c
index 773db369cd5..51c922f5f6e 100644
--- a/src/emu/video/cdp1862.c
+++ b/src/emu/video/cdp1862.c
@@ -218,6 +218,6 @@ UINT32 cdp1862_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap
copybitmap(bitmap, m_bitmap, 0, 0, 0, 0, cliprect);
m_bitmap.fill(m_palette[CDP1862_BACKGROUND_COLOR_SEQUENCE[m_bgcolor] + 8], cliprect);
-
+
return 0;
}
diff --git a/src/emu/video/huc6272.c b/src/emu/video/huc6272.c
index 740f34d931e..b72c20b9ef8 100644
--- a/src/emu/video/huc6272.c
+++ b/src/emu/video/huc6272.c
@@ -112,21 +112,21 @@ READ32_MEMBER( huc6272_device::read )
if((offset & 1) == 0)
{
/*
- xxxx xxxx ---- ---- ---- ---- ---- ---- Sub Channel Buffer
- ---- ---- x--- ---- ---- ---- ---- ---- SCSI RST flag
- ---- ---- -x-- ---- ---- ---- ---- ---- SCSI BUSY flag
- ---- ---- --x- ---- ---- ---- ---- ---- SCSI REQ flag
- ---- ---- ---x ---- ---- ---- ---- ---- SCSI MSG flag
- ---- ---- ---- x--- ---- ---- ---- ---- SCSI CD flag
- ---- ---- ---- -x-- ---- ---- ---- ---- SCSI IO flag
- ---- ---- ---- --x- ---- ---- ---- ---- SCSI SEL flag
- ---- ---- ---- ---- -x-- ---- ---- ---- SCSI IRQ pending
- ---- ---- ---- ---- --x- ---- ---- ---- DMA IRQ pending
- ---- ---- ---- ---- ---x ---- ---- ---- CD Sub Channel IRQ pending
- ---- ---- ---- ---- ---- x--- ---- ---- Raster IRQ pending
- ---- ---- ---- ---- ---- -x-- ---- ---- ADPCM IRQ pending
- ---- ---- ---- ---- ---- ---- -xxx xxxx register read-back
- */
+ xxxx xxxx ---- ---- ---- ---- ---- ---- Sub Channel Buffer
+ ---- ---- x--- ---- ---- ---- ---- ---- SCSI RST flag
+ ---- ---- -x-- ---- ---- ---- ---- ---- SCSI BUSY flag
+ ---- ---- --x- ---- ---- ---- ---- ---- SCSI REQ flag
+ ---- ---- ---x ---- ---- ---- ---- ---- SCSI MSG flag
+ ---- ---- ---- x--- ---- ---- ---- ---- SCSI CD flag
+ ---- ---- ---- -x-- ---- ---- ---- ---- SCSI IO flag
+ ---- ---- ---- --x- ---- ---- ---- ---- SCSI SEL flag
+ ---- ---- ---- ---- -x-- ---- ---- ---- SCSI IRQ pending
+ ---- ---- ---- ---- --x- ---- ---- ---- DMA IRQ pending
+ ---- ---- ---- ---- ---x ---- ---- ---- CD Sub Channel IRQ pending
+ ---- ---- ---- ---- ---- x--- ---- ---- Raster IRQ pending
+ ---- ---- ---- ---- ---- -x-- ---- ---- ADPCM IRQ pending
+ ---- ---- ---- ---- ---- ---- -xxx xxxx register read-back
+ */
res = m_register & 0x7f;
res |= (0) << 16;
}
@@ -135,8 +135,8 @@ READ32_MEMBER( huc6272_device::read )
switch(m_register)
{
/*
- x--- ---- ---- ---- ----
- */
+ x--- ---- ---- ---- ----
+ */
case 0x0c: // KRAM load address
res = (m_kram_addr_r & 0x3ffff) | ((m_kram_inc_r & 0x1ff) << 18) | ((m_kram_page_r & 1) << 31);
break;
@@ -179,8 +179,8 @@ WRITE32_MEMBER( huc6272_device::write )
//printf("%08x DMA STATUS\n",data);
break;
/*
- ---- ---- ---- ---- ----
- */
+ ---- ---- ---- ---- ----
+ */
case 0x0c: // KRAM load address
m_kram_addr_r = (data & 0x0003ffff);
m_kram_inc_r = (data & 0x07fc0000) >> 18;
@@ -199,11 +199,11 @@ WRITE32_MEMBER( huc6272_device::write )
break;
/*
- ---x ---- ---- ---- ADPCM page setting
- ---- ---x ---- ---- RAINBOW page setting
- ---- ---- ---x ---- BG page setting
- ---- ---- ---- ---x SCSI page setting
- */
+ ---x ---- ---- ---- ADPCM page setting
+ ---- ---x ---- ---- RAINBOW page setting
+ ---- ---- ---x ---- BG page setting
+ ---- ---- ---- ---x SCSI page setting
+ */
case 0x0f:
m_page_setting = data;
break;
diff --git a/src/emu/video/m50458.c b/src/emu/video/m50458.c
index 4880d5f9734..2f0b66e2f00 100644
--- a/src/emu/video/m50458.c
+++ b/src/emu/video/m50458.c
@@ -1,16 +1,16 @@
/***************************************************************************
- Mitsubishi M50458 OSD chip
+ Mitsubishi M50458 OSD chip
- device by Angelo Salese
+ device by Angelo Salese
- TODO:
- - vertical scrolling needs references (might work differently and/or in
- "worse" ways, the one currently implemented guesses that the screen is
- masked at the top and the end when in scrolling mode).
- - Understand what the "vertical start position" really does (vblank?)
- - Check if the ROM source is actually 2bpp once that a redump is made
- (the shadow ROM copy doesn't convince me 100%);
+ TODO:
+ - vertical scrolling needs references (might work differently and/or in
+ "worse" ways, the one currently implemented guesses that the screen is
+ masked at the top and the end when in scrolling mode).
+ - Understand what the "vertical start position" really does (vblank?)
+ - Check if the ROM source is actually 2bpp once that a redump is made
+ (the shadow ROM copy doesn't convince me 100%);
***************************************************************************/
@@ -46,7 +46,7 @@ ROM_END
WRITE16_MEMBER( m50458_device::vreg_120_w)
{
-// printf("%04x\n",data);
+// printf("%04x\n",data);
}
WRITE16_MEMBER( m50458_device::vreg_121_w)
@@ -85,7 +85,7 @@ WRITE16_MEMBER( m50458_device::vreg_123_w)
/* char part of vertical scrolling */
m_scrr = (data & 0x0f00) >> 8;
-// printf("%02x %02x %02x\n",m_scrr,m_scrf,m_space);
+// printf("%02x %02x %02x\n",m_scrr,m_scrf,m_space);
}
WRITE16_MEMBER( m50458_device::vreg_124_w)
diff --git a/src/emu/video/m50458.h b/src/emu/video/m50458.h
index bce73ccd5c0..0699c777222 100644
--- a/src/emu/video/m50458.h
+++ b/src/emu/video/m50458.h
@@ -28,7 +28,7 @@ Mitsubishi M50458 OSD chip
// TYPE DEFINITIONS
//**************************************************************************
-enum m50458_state_t
+enum m50458_state_t
{
OSD_SET_ADDRESS = 0,
OSD_SET_DATA
diff --git a/src/emu/video/mb90082.c b/src/emu/video/mb90082.c
index 19bedfc3371..491e3111ebf 100644
--- a/src/emu/video/mb90082.c
+++ b/src/emu/video/mb90082.c
@@ -1,11 +1,11 @@
/***************************************************************************
- Fujitsu MB90082 OSD
+ Fujitsu MB90082 OSD
- preliminary device by Angelo Salese
+ preliminary device by Angelo Salese
- TODO:
- - get a real charset ROM;
+ TODO:
+ - get a real charset ROM;
***************************************************************************/
@@ -24,8 +24,8 @@ const device_type MB90082 = &device_creator<mb90082_device>;
static ADDRESS_MAP_START( mb90082_vram, AS_0, 16, mb90082_device )
AM_RANGE(0x0000, 0x023f) AM_RAM // main screen vram
AM_RANGE(0x0400, 0x063f) AM_RAM // main screen attr
-// AM_RANGE(0x0800, 0x0a3f) AM_RAM // sub screen vram
-// AM_RANGE(0x0c00, 0x0e3f) AM_RAM // sub screen attr
+// AM_RANGE(0x0800, 0x0a3f) AM_RAM // sub screen vram
+// AM_RANGE(0x0c00, 0x0e3f) AM_RAM // sub screen attr
ADDRESS_MAP_END
/* charset is undumped, but apparently a normal ASCII one is enough for the time being (for example "fnt0808.x1" in Sharp X1) */
diff --git a/src/emu/video/mc6845.c b/src/emu/video/mc6845.c
index 2e2c5e35dab..1a05a77aa5b 100644
--- a/src/emu/video/mc6845.c
+++ b/src/emu/video/mc6845.c
@@ -24,15 +24,15 @@
/*
- TODO:
+ TODO:
- - mos8563
+ - mos8563
- - horizontal scroll
- - vertical scroll
- - pixel double width
- - bitmap modes
- - display enable begin/end
+ - horizontal scroll
+ - vertical scroll
+ - pixel double width
+ - bitmap modes
+ - display enable begin/end
*/
@@ -77,10 +77,10 @@ const device_type MOS8568 = &device_creator<mos8568_device>;
#define HSS_ATTR BIT(m_horiz_scroll, 6)
#define HSS_TEXT BIT(m_horiz_scroll, 7)
-#define ATTR_COLOR (attr & 0x0f)
-#define ATTR_BLINK BIT(attr, 4)
-#define ATTR_UNDERLINE BIT(attr, 5)
-#define ATTR_REVERSE BIT(attr, 6)
+#define ATTR_COLOR (attr & 0x0f)
+#define ATTR_BLINK BIT(attr, 4)
+#define ATTR_UNDERLINE BIT(attr, 5)
+#define ATTR_REVERSE BIT(attr, 6)
#define ATTR_ALTERNATE_CHARSET BIT(attr, 7)
@@ -377,21 +377,21 @@ WRITE8_MEMBER( mos8563_device::register_w )
case 0x0f: m_cursor_addr = ((data & 0xff) << 0) | (m_cursor_addr & 0xff00); break;
case 0x10: /* read-only */ break;
case 0x11: /* read-only */ break;
- case 0x12: m_update_addr = ((data & 0xff) << 8) | (m_update_addr & 0x00ff); break;
- case 0x13: m_update_addr = ((data & 0xff) << 0) | (m_update_addr & 0xff00); break;
+ case 0x12: m_update_addr = ((data & 0xff) << 8) | (m_update_addr & 0x00ff); break;
+ case 0x13: m_update_addr = ((data & 0xff) << 0) | (m_update_addr & 0xff00); break;
case 0x14: m_attribute_addr = ((data & 0xff) << 8) | (m_attribute_addr & 0x00ff); break;
case 0x15: m_attribute_addr = ((data & 0xff) << 0) | (m_attribute_addr & 0xff00); break;
- case 0x16: m_horiz_char = data & 0xff; break;
+ case 0x16: m_horiz_char = data & 0xff; break;
case 0x17: m_vert_char_disp = data & 0x1f; break;
case 0x18: m_vert_scroll = data & 0xff; break;
case 0x19: m_horiz_scroll = data & 0xff; break;
- case 0x1a: m_color = data & 0xff; break;
+ case 0x1a: m_color = data & 0xff; break;
case 0x1b: m_row_addr_incr = data & 0xff; break;
case 0x1c: m_char_base_addr = data & 0xf0; break;
case 0x1d: m_underline_ras = data & 0x1f; break;
case 0x1e:
m_word_count = data & 0xff;
-
+
do
{
UINT8 byte = VSS_COPY ? read_videoram(m_block_addr++) : m_data;
@@ -404,10 +404,10 @@ WRITE8_MEMBER( mos8563_device::register_w )
write_videoram(m_update_addr++, m_data);
break;
- case 0x20: m_block_addr = ((data & 0xff) << 8) | (m_block_addr & 0x00ff); break;
- case 0x21: m_block_addr = ((data & 0xff) << 0) | (m_block_addr & 0xff00); break;
- case 0x22: m_de_begin = ((data & 0xff) << 8) | (m_de_begin & 0x00ff); break;
- case 0x23: m_de_begin = ((data & 0xff) << 0) | (m_de_begin & 0xff00); break;
+ case 0x20: m_block_addr = ((data & 0xff) << 8) | (m_block_addr & 0x00ff); break;
+ case 0x21: m_block_addr = ((data & 0xff) << 0) | (m_block_addr & 0xff00); break;
+ case 0x22: m_de_begin = ((data & 0xff) << 8) | (m_de_begin & 0x00ff); break;
+ case 0x23: m_de_begin = ((data & 0xff) << 0) | (m_de_begin & 0xff00); break;
case 0x24: m_dram_refresh = data & 0x0f; break;
case 0x25: m_sync_polarity = data & 0xc0; break;
}
diff --git a/src/emu/video/pc_vga.c b/src/emu/video/pc_vga.c
index d6ce4d68033..5da7d50ce85 100644
--- a/src/emu/video/pc_vga.c
+++ b/src/emu/video/pc_vga.c
@@ -992,8 +992,8 @@ SCREEN_UPDATE_RGB32( pc_video_s3 )
return 0; // cursor only works in VGA or SVGA modes
src = s3.cursor_start_addr * 1024; // start address is in units of 1024 bytes
-// for(x=0;x<64;x++)
-// printf("%08x: %02x %02x %02x %02x\n",src+x*4,vga.memory[src+x*4],vga.memory[src+x*4+1],vga.memory[src+x*4+2],vga.memory[src+x*4+3]);
+// for(x=0;x<64;x++)
+// printf("%08x: %02x %02x %02x %02x\n",src+x*4,vga.memory[src+x*4],vga.memory[src+x*4+1],vga.memory[src+x*4+2],vga.memory[src+x*4+3]);
for(y=0;y<64;y++)
{
dst = &bitmap.pix32(cy + y, cx);
@@ -4940,7 +4940,7 @@ static void ati_define_video_mode(running_machine &machine)
clock = XTAL_42_9545MHz;
logerror("Invalid dot clock %i selected.\n",clock_type);
}
-// logerror("ATI: Clock select type %i (%iHz / %i)\n",clock_type,clock,div);
+// logerror("ATI: Clock select type %i (%iHz / %i)\n",clock_type,clock,div);
recompute_params_clock(machine,divisor,clock / div);
}
@@ -5138,7 +5138,7 @@ WRITE16_HANDLER(mach8_subcontrol_w)
{
ibm8514.subctrl = data;
ibm8514.substatus &= ~(data & 0x0f); // reset interrupts
-// logerror("8514/A: Subsystem control write %04x\n",data);
+// logerror("8514/A: Subsystem control write %04x\n",data);
}
READ16_HANDLER(mach8_subcontrol_r)
@@ -5159,7 +5159,7 @@ READ16_HANDLER(mach8_vtotal_r)
WRITE16_HANDLER(mach8_vtotal_w)
{
ibm8514.vtotal = data;
-// vga.crtc.vert_total = data;
+// vga.crtc.vert_total = data;
logerror("8514/A: Vertical total write %04x\n",data);
}
@@ -5171,7 +5171,7 @@ READ16_HANDLER(mach8_vdisp_r)
WRITE16_HANDLER(mach8_vdisp_w)
{
ibm8514.vdisp = data;
-// vga.crtc.vert_disp_end = data >> 3;
+// vga.crtc.vert_disp_end = data >> 3;
logerror("8514/A: Vertical Displayed write %04x\n",data);
}
diff --git a/src/emu/video/saa5050.c b/src/emu/video/saa5050.c
index aae31597654..b5265b04649 100644
--- a/src/emu/video/saa5050.c
+++ b/src/emu/video/saa5050.c
@@ -13,9 +13,9 @@
TODO:
- - character rounding
- - remote controller input
- - boxing
+ - character rounding
+ - remote controller input
+ - boxing
*/
@@ -237,7 +237,7 @@ void saa5050_device::process_control_character(UINT8 data)
case STEADY:
m_flash = false;
break;
-
+
case END_BOX:
case START_BOX:
// TODO
@@ -336,7 +336,7 @@ WRITE_LINE_MEMBER( saa5050_device::dew_w )
{
m_ra = 19;
m_double_height_top_row = false;
-
+
m_frame_count++;
if (m_frame_count > 50) m_frame_count = 0;
}
diff --git a/src/emu/video/saa5050.h b/src/emu/video/saa5050.h
index ce992a4145a..92cafbc26ec 100644
--- a/src/emu/video/saa5050.h
+++ b/src/emu/video/saa5050.h
@@ -89,7 +89,7 @@ public:
// NOTE: the following are provided for convenience only, SAA5050 is not a display controller
// this emulates the common setup where bit 7 of data inverts the display, and the
- // bottom half of a double height row gets the same character data as the top half
+ // bottom half of a double height row gets the same character data as the top half
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
protected:
diff --git a/src/emu/video/tlc34076.c b/src/emu/video/tlc34076.c
index 6593cae8cf4..00799fcbe74 100644
--- a/src/emu/video/tlc34076.c
+++ b/src/emu/video/tlc34076.c
@@ -34,7 +34,7 @@ struct tlc34076_state
rgb_t pens[0x100];
};
-const tlc34076_config tlc34076_6_bit_intf =
+const tlc34076_config tlc34076_6_bit_intf =
{
TLC34076_6_BIT
};
diff --git a/src/emu/video/vector.c b/src/emu/video/vector.c
index af3e2e5b0a8..2d36386fa93 100644
--- a/src/emu/video/vector.c
+++ b/src/emu/video/vector.c
@@ -127,7 +127,7 @@ static render_texture *get_vector_texture(float dx, float dy, float intensity)
#define VCLIP 2
/* The vertices are buffered here */
-struct point
+struct point
{
int x; int y;
rgb_t col;
diff --git a/src/lib/formats/ace_tap.h b/src/lib/formats/ace_tap.h
index 8b286473e48..382d97697a4 100644
--- a/src/lib/formats/ace_tap.h
+++ b/src/lib/formats/ace_tap.h
@@ -11,7 +11,7 @@
#include "cassimg.h"
-struct ace_tape_t
+struct ace_tape_t
{
UINT8 hdr_type;
UINT8 hdr_name[10];
diff --git a/src/lib/formats/d88_dsk.c b/src/lib/formats/d88_dsk.c
index 950e04495b4..3595384a191 100644
--- a/src/lib/formats/d88_dsk.c
+++ b/src/lib/formats/d88_dsk.c
@@ -446,7 +446,7 @@ int d88_format::identify(io_generic *io, UINT32 form_factor)
{
int size = io_generic_size(io);
UINT8 h[32];
-
+
io_generic_read(io, h, 0, 32);
if((LITTLE_ENDIANIZE_INT32(*(UINT32 *)(h+0x1c)) == size) &&
(h[0x1b] == 0x00 || h[0x1b] == 0x10 || h[0x1b] == 0x20 || h[0x1b] == 0x30 || h[0x1b] == 0x40))
@@ -458,7 +458,7 @@ int d88_format::identify(io_generic *io, UINT32 form_factor)
bool d88_format::load(io_generic *io, UINT32 form_factor, floppy_image *image)
{
UINT8 h[32];
-
+
io_generic_read(io, h, 0, 32);
int cell_count = 0;
diff --git a/src/lib/formats/flopimg.c b/src/lib/formats/flopimg.c
index c1ab25eb1d6..46eb16a7c56 100644
--- a/src/lib/formats/flopimg.c
+++ b/src/lib/formats/flopimg.c
@@ -2449,4 +2449,4 @@ void floppy_image_format_t::get_track_data_fm_pc(int track, int head, floppy_ima
} else
memset(sd, 0, sector_size);
}
-} \ No newline at end of file
+}
diff --git a/src/lib/formats/xdf_dsk.h b/src/lib/formats/xdf_dsk.h
index 3b01cdd6d2d..64e02732df9 100644
--- a/src/lib/formats/xdf_dsk.h
+++ b/src/lib/formats/xdf_dsk.h
@@ -1,8 +1,8 @@
/*********************************************************************
- formats/xdf_dsk.h
+ formats/xdf_dsk.h
- x68k bare-bones formats
+ x68k bare-bones formats
*********************************************************************/
diff --git a/src/lib/util/bitmap.h b/src/lib/util/bitmap.h
index ee2cc33f3d9..91f393d37fb 100644
--- a/src/lib/util/bitmap.h
+++ b/src/lib/util/bitmap.h
@@ -76,7 +76,7 @@ public:
rectangle() { }
rectangle(INT32 minx, INT32 maxx, INT32 miny, INT32 maxy)
: min_x(minx), max_x(maxx), min_y(miny), max_y(maxy) { }
-
+
// getters
INT32 left() const { return min_x; }
INT32 right() const { return max_x; }
@@ -102,7 +102,7 @@ public:
if (src.max_y > max_y) max_y = src.max_y;
return *this;
}
-
+
// comparisons
bool operator==(const rectangle &rhs) const { return min_x == rhs.min_x && max_x == rhs.max_x && min_y == rhs.min_y && max_y == rhs.max_y; }
bool operator!=(const rectangle &rhs) const { return min_x != rhs.min_x || max_x != rhs.max_x || min_y != rhs.min_y || max_y != rhs.max_y; }
@@ -128,7 +128,7 @@ public:
void set_height(INT32 height) { max_y = min_y + height - 1; }
void set_origin(INT32 x, INT32 y) { max_x += x - min_x; max_y += y - min_y; min_x = x; min_y = y; }
void set_size(INT32 width, INT32 height) { set_width(width); set_height(height); }
-
+
// offset helpers
void offset(INT32 xdelta, INT32 ydelta) { min_x += xdelta; max_x += xdelta; min_y += ydelta; max_y += ydelta; }
void offsetx(INT32 delta) { min_x += delta; max_x += delta; }
diff --git a/src/lib/util/opresolv.h b/src/lib/util/opresolv.h
index dbd891181ea..87066bb89af 100644
--- a/src/lib/util/opresolv.h
+++ b/src/lib/util/opresolv.h
@@ -91,7 +91,7 @@ struct option_guide
#define OPTION_ENUM_END
-enum optreserr_t
+enum optreserr_t
{
OPTIONRESOLUTION_ERROR_SUCCESS,
OPTIONRESOLUTION_ERROR_OUTOFMEMORY,
diff --git a/src/lib/util/options.c b/src/lib/util/options.c
index 5e46d0e98b2..bd50ff45fdc 100644
--- a/src/lib/util/options.c
+++ b/src/lib/util/options.c
@@ -813,7 +813,7 @@ bool core_options::validate_and_set_data(core_options::entry &curentry, const ch
}
//-------------------------------------------------
-// options_count - take number of existing
+// options_count - take number of existing
// number of options in structure
//-------------------------------------------------
@@ -822,4 +822,4 @@ int core_options::options_count()
int number = 0;
for (entry *curentry = m_entrylist; curentry != NULL; curentry = curentry->next()) number++;
return number;
-} \ No newline at end of file
+}
diff --git a/src/mame/audio/cage.c b/src/mame/audio/cage.c
index b894c636e48..65e694a9692 100644
--- a/src/mame/audio/cage.c
+++ b/src/mame/audio/cage.c
@@ -34,7 +34,7 @@
*************************************/
-struct cage_t
+struct cage_t
{
cpu_device *cpu;
attotime cpu_h1_clock_period;
diff --git a/src/mame/audio/exidy440.c b/src/mame/audio/exidy440.c
index 488c2fea2d0..2d0252a89c1 100644
--- a/src/mame/audio/exidy440.c
+++ b/src/mame/audio/exidy440.c
@@ -38,7 +38,7 @@
/* channel_data structure holds info about each 6844 DMA channel */
-struct m6844_channel_data
+struct m6844_channel_data
{
int active;
int address;
@@ -50,7 +50,7 @@ struct m6844_channel_data
/* channel_data structure holds info about each active sound channel */
-struct sound_channel_data
+struct sound_channel_data
{
INT16 *base;
int offset;
@@ -59,7 +59,7 @@ struct sound_channel_data
/* sound_cache_entry structure contains info on each decoded sample */
-struct sound_cache_entry
+struct sound_cache_entry
{
struct sound_cache_entry *next;
int address;
@@ -71,7 +71,7 @@ struct sound_cache_entry
-struct exidy440_audio_state
+struct exidy440_audio_state
{
UINT8 sound_command;
UINT8 sound_command_ack;
diff --git a/src/mame/audio/flower.c b/src/mame/audio/flower.c
index f49968c07cd..53986a4b1d4 100644
--- a/src/mame/audio/flower.c
+++ b/src/mame/audio/flower.c
@@ -20,7 +20,7 @@ TODO:
/* this structure defines the parameters for a channel */
-struct sound_channel
+struct sound_channel
{
UINT32 start;
UINT32 pos;
diff --git a/src/mame/audio/gomoku.c b/src/mame/audio/gomoku.c
index 8c2443c192c..45be0d123fa 100644
--- a/src/mame/audio/gomoku.c
+++ b/src/mame/audio/gomoku.c
@@ -19,7 +19,7 @@ static const int defgain = 48;
/* this structure defines the parameters for a channel */
-struct sound_channel
+struct sound_channel
{
int channel;
int frequency;
diff --git a/src/mame/audio/micro3d.c b/src/mame/audio/micro3d.c
index 8787b8a2e72..6dcab28d934 100644
--- a/src/mame/audio/micro3d.c
+++ b/src/mame/audio/micro3d.c
@@ -20,13 +20,13 @@
*
*************************************/
-struct biquad
+struct biquad
{
double a0, a1, a2; /* Numerator coefficients */
double b0, b1, b2; /* Denominator coefficients */
};
-struct lp_filter
+struct lp_filter
{
float *history;
float *coef;
diff --git a/src/mame/audio/snk6502.c b/src/mame/audio/snk6502.c
index 0e32bf2a3fe..7b26bce34dc 100644
--- a/src/mame/audio/snk6502.c
+++ b/src/mame/audio/snk6502.c
@@ -29,7 +29,7 @@
#define FRAC_ONE (1 << FRAC_BITS)
#define FRAC_MASK (FRAC_ONE - 1)
-struct TONE
+struct TONE
{
int mute;
int offset;
diff --git a/src/mame/audio/taito_en.c b/src/mame/audio/taito_en.c
index 2bed52e6179..5233244e394 100644
--- a/src/mame/audio/taito_en.c
+++ b/src/mame/audio/taito_en.c
@@ -284,15 +284,15 @@ static void taito_en_duart_irq_handler(device_t *device, int state, UINT8 vector
*************************************/
/*
- 68681 I/O pin assignments
- (according to Gun Buster schematics):
-
- IP0: 5V OP0-OP5: N/C
- IP1: 5V OP6: ESPHALT
- IP2: 1MHz OP7: N/C
- IP3: 0.5MHz
- IP4: 0.5MHz
- IP5: 1MHz
+ 68681 I/O pin assignments
+ (according to Gun Buster schematics):
+
+ IP0: 5V OP0-OP5: N/C
+ IP1: 5V OP6: ESPHALT
+ IP2: 1MHz OP7: N/C
+ IP3: 0.5MHz
+ IP4: 0.5MHz
+ IP5: 1MHz
*/
static const duart68681_config taito_en_duart68681_config =
{
diff --git a/src/mame/audio/wiping.c b/src/mame/audio/wiping.c
index cbed8707844..84d2a1a5195 100644
--- a/src/mame/audio/wiping.c
+++ b/src/mame/audio/wiping.c
@@ -19,7 +19,7 @@ static const int defgain = 48;
/* this structure defines the parameters for a channel */
-struct sound_channel
+struct sound_channel
{
int frequency;
int counter;
diff --git a/src/mame/drivers/atlantis.c b/src/mame/drivers/atlantis.c
index cfec190a0c7..9f2ee47543a 100644
--- a/src/mame/drivers/atlantis.c
+++ b/src/mame/drivers/atlantis.c
@@ -141,10 +141,10 @@ static const mips3_config r4310_config =
16384 /* data cache size */
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/boogwing.c b/src/mame/drivers/boogwing.c
index 7bc6501d96c..b44b95605e5 100644
--- a/src/mame/drivers/boogwing.c
+++ b/src/mame/drivers/boogwing.c
@@ -580,7 +580,7 @@ DRIVER_INIT_MEMBER(boogwing_state,boogwing)
deco56_remap_gfx(machine(), "gfx6");
deco102_decrypt_cpu(machine(), "maincpu", 0x42ba, 0x00, 0x18);
memcpy(dst, src, 0x100000);
-
+
decoprot_reset(machine());
}
diff --git a/src/mame/drivers/calchase.c b/src/mame/drivers/calchase.c
index 61f36b29f5b..a73e434cc98 100644
--- a/src/mame/drivers/calchase.c
+++ b/src/mame/drivers/calchase.c
@@ -918,10 +918,10 @@ static void calchase_set_keyb_int(running_machine &machine, int state)
pic8259_ir1_w(drvstate->m_pic8259_1, state);
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/carpolo.c b/src/mame/drivers/carpolo.c
index 91db6b1802b..708a434970e 100644
--- a/src/mame/drivers/carpolo.c
+++ b/src/mame/drivers/carpolo.c
@@ -223,12 +223,12 @@ static GFXDECODE_START( carpolo )
GFXDECODE_ENTRY( "gfx3", 0, alphalayout, 12*2+2*16, 4 )
GFXDECODE_END
-static const ttl74148_config carpolo_ttl74148_intf =
+static const ttl74148_config carpolo_ttl74148_intf =
{
carpolo_74148_3s_cb
};
-static const ttl74153_config carpolo_ttl74153_intf =
+static const ttl74153_config carpolo_ttl74153_intf =
{
NULL
};
diff --git a/src/mame/drivers/chihiro.c b/src/mame/drivers/chihiro.c
index 1291314f03e..287e246f545 100644
--- a/src/mame/drivers/chihiro.c
+++ b/src/mame/drivers/chihiro.c
@@ -1822,10 +1822,10 @@ static SLOT_INTERFACE_START(ide_baseboard)
SLOT_INTERFACE("bb", IDE_BASEBOARD)
SLOT_INTERFACE_END
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- "maincpu",
+ ide_interrupt,
+ "maincpu",
AS_PROGRAM
};
diff --git a/src/mame/drivers/circusc.c b/src/mame/drivers/circusc.c
index a50bcd5a117..e240384ad0f 100644
--- a/src/mame/drivers/circusc.c
+++ b/src/mame/drivers/circusc.c
@@ -303,8 +303,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/cobra.c b/src/mame/drivers/cobra.c
index b0542d1a6e8..35a5d884020 100644
--- a/src/mame/drivers/cobra.c
+++ b/src/mame/drivers/cobra.c
@@ -1,6 +1,6 @@
/* Konami Cobra System
- Driver by Ville Linde
+ Driver by Ville Linde
Games on this hardware
@@ -160,14 +160,14 @@
0x0011c: Same as above?
- 0x00454: (mask 0xff) 0x80000000 Tex related
+ 0x00454: (mask 0xff) 0x80000000 Tex related
0x00458: Set to 0x02100000 (0xff) by texselect()
- ------xx -------- -------- -------- Texture select (0-3)
- -------- ---x---- -------- -------- ?
+ ------xx -------- -------- -------- Texture select (0-3)
+ -------- ---x---- -------- -------- ?
- 0x02900: -------- -------- -------- -------- Texture[0] ?
+ 0x02900: -------- -------- -------- -------- Texture[0] ?
0x02904: -------- ------xx xx------ -------- Texture[0] mag filter?
-------- -------- --xxxx-- -------- Texture[0] min filter?
@@ -184,28 +184,28 @@
0x02914: xxxxxxxx xxxxxxxx xxxx---- -------- Texture[0] address
- 0x02980: Texture[1] ?
- 0x02984: Texture[1] min/mag filter
- 0x02988: Texture[1] wrap
- 0x02990: Texture[1] width/height/format
- 0x02994: Texture[1] address
+ 0x02980: Texture[1] ?
+ 0x02984: Texture[1] min/mag filter
+ 0x02988: Texture[1] wrap
+ 0x02990: Texture[1] width/height/format
+ 0x02994: Texture[1] address
- 0x02a00: Texture[2] ?
- 0x02a04: Texture[2] min/mag filter
- 0x02a08: Texture[2] wrap
- 0x02a10: Texture[2] width/height/format
- 0x02a14: Texture[2] address
+ 0x02a00: Texture[2] ?
+ 0x02a04: Texture[2] min/mag filter
+ 0x02a08: Texture[2] wrap
+ 0x02a10: Texture[2] width/height/format
+ 0x02a14: Texture[2] address
- 0x02a80: Texture[3] ?
- 0x02a84: Texture[3] min/mag filter
- 0x02a88: Texture[3] wrap
- 0x02a90: Texture[3] width/height/format
- 0x02a94: Texture[3] address
+ 0x02a80: Texture[3] ?
+ 0x02a84: Texture[3] min/mag filter
+ 0x02a88: Texture[3] wrap
+ 0x02a90: Texture[3] width/height/format
+ 0x02a94: Texture[3] address
0x40018: Set to 0x0001040a (0xc0) by mode_stipple() (bits 24..27 = stipple pattern?)
0x400d0: Set to 0x80000000 (0x80) by mode_stipple()
- 0x400f4: xxx----- -------- -------- -------- Texture select (0-3)
+ 0x400f4: xxx----- -------- -------- -------- Texture select (0-3)
0x40114: -------- ----x--- -------- -------- Scissor enable
@@ -226,14 +226,14 @@
0x40198: x------- -------- -------- -------- Alpha test enable?
-------- xxx----- -------- -------- Alpha test function (0 = never, 1 = less, 2 = lequal, 3 = greater,
4 = gequal, 5 = equal, 6 = notequal, 7 = always)
- -------- -------- xxxxxxxx xxxxxxxx Alpha test reference value?
+ -------- -------- xxxxxxxx xxxxxxxx Alpha test reference value?
0x4019c: x------- -------- -------- -------- Fog enable
----x--- -------- -------- -------- 0 = table fog, 1 = linear fog
- 0x401a8: (mask 0xff): 0x2CAB34FD ?
- 0x401ac: (mask 0xf0): 0x48C70000 ?
- 0x401b8: (mask 0x20): 0x00400000 ?
+ 0x401a8: (mask 0xff): 0x2CAB34FD ?
+ 0x401ac: (mask 0xf0): 0x48C70000 ?
+ 0x401b8: (mask 0x20): 0x00400000 ?
0x401bc: Texture env mode
xxx----- -------- -------- -------- ?
@@ -249,15 +249,15 @@
0xa92b0100 = (equal, 16)
-------- -------- xxxxxxxx xxxx---- Stencil reference value?
- ----xxxx xxxxxxxx -------- -------- Stencil fill value?
+ ----xxxx xxxxxxxx -------- -------- Stencil fill value?
xxx----- -------- -------- -------- Stencil function?
0x80020: -------- ----xxx- -------- -------- Depth test function (7 = always?)
- 0x80040: (mask 0x0f) 0x00002CAB (same value as 0x401a8)
- 0x80044: (mask 0x0f) 0x000034FD (same value as 0x401a8)
- 0x80048: (mask 0x0f) 0x000048C7 (same value as 0x401ac)
+ 0x80040: (mask 0x0f) 0x00002CAB (same value as 0x401a8)
+ 0x80044: (mask 0x0f) 0x000034FD (same value as 0x401a8)
+ 0x80048: (mask 0x0f) 0x000048C7 (same value as 0x401ac)
0x80050: (mask 0x7c) 0x04445500 = (As, 1-As) Blend register
0x04111100 = (1, 1)
@@ -407,7 +407,7 @@ private:
UINT32 *m_gfx_gram;
UINT32 *m_gfx_regmask;
-
+
UINT32 m_gfx_register_select;
UINT64 *m_gfx_register;
@@ -582,7 +582,7 @@ void cobra_jvs_host::write(UINT8 data, const UINT8 *&rec_data, UINT32 &rec_size)
commit_encoded();
get_encoded_reply(rec_data, rec_size);
-
+
m_send_ptr = 0;
return;
}
@@ -882,7 +882,7 @@ void cobra_renderer::render_texture_scan(INT32 scanline, const extent_t &extent,
UINT32 gour = (int)(gr);
UINT32 goug = (int)(gg);
UINT32 goub = (int)(gb);
-
+
int r = (RGB_RED(texel) * gour) >> 8;
int g = (RGB_GREEN(texel) * goug) >> 8;
int b = (RGB_BLUE(texel) * goub) >> 8;
@@ -1926,15 +1926,15 @@ static void sub_sound_dma_w(device_t *device, int width, UINT32 data)
//printf("DMA write to unknown: size %d, data %08X\n", width, data);
/*
- static FILE *out;
- if (out == NULL)
- out = fopen("sound.bin", "wb");
-
- fputc((data >> 24) & 0xff, out);
- fputc((data >> 16) & 0xff, out);
- fputc((data >> 8) & 0xff, out);
- fputc((data >> 0) & 0xff, out);
- */
+ static FILE *out;
+ if (out == NULL)
+ out = fopen("sound.bin", "wb");
+
+ fputc((data >> 24) & 0xff, out);
+ fputc((data >> 16) & 0xff, out);
+ fputc((data >> 8) & 0xff, out);
+ fputc((data >> 0) & 0xff, out);
+ */
cobra_state *cobra = device->machine().driver_data<cobra_state>();
@@ -1948,7 +1948,7 @@ static void sub_sound_dma_w(device_t *device, int width, UINT32 data)
if (cobra->m_sound_dma_ptr >= DMA_SOUND_BUFFER_SIZE)
{
cobra->m_sound_dma_ptr = 0;
-
+
dmadac_transfer(&cobra->m_dmadac[0], 1, 0, 1, DMA_SOUND_BUFFER_SIZE, cobra->m_sound_dma_buffer_l);
dmadac_transfer(&cobra->m_dmadac[1], 1, 0, 1, DMA_SOUND_BUFFER_SIZE, cobra->m_sound_dma_buffer_r);
}
@@ -2077,7 +2077,7 @@ void cobra_renderer::gfx_exit(running_machine &machine)
fputc((UINT8)(m_texture_ram[i] >> 0), file);
}
fclose(file);
- */
+ */
}
void cobra_renderer::gfx_reset(running_machine &machine)
@@ -2367,7 +2367,7 @@ void cobra_renderer::gfx_fifo_exec(running_machine &machine)
}
-
+
float vp_width = u2f(m_gfx_gram[0x00090/4]);
float vp_height = u2f(m_gfx_gram[0x000a4/4]);
float vp_center_x = u2f(m_gfx_gram[0x0009c/4]);
@@ -2382,7 +2382,7 @@ void cobra_renderer::gfx_fifo_exec(running_machine &machine)
#if LOG_DRAW_COMMANDS
printf("--- Draw command %08X %08X ---\n", w1, w2);
#endif
-
+
// extract vertex data
for (int i=0; i < units; i++)
@@ -3223,10 +3223,10 @@ void cobra_state::machine_reset()
dmadac_set_frequency(&m_dmadac[1], 1, 44100);
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
@@ -3383,7 +3383,7 @@ DRIVER_INIT_MEMBER(cobra_state,bujutsu)
{
UINT8 *rom = (UINT8*)machine().root_device().memregion("m48t58")->base();
rom[0x00] = 0x47; // G
- rom[0x01] = 0x4e; // N // N = 2-player, Q = 1-player?
+ rom[0x01] = 0x4e; // N // N = 2-player, Q = 1-player?
rom[0x02] = 0x36; // 6
rom[0x03] = 0x34; // 4
rom[0x04] = 0x35; // 5
@@ -3412,13 +3412,13 @@ DRIVER_INIT_MEMBER(cobra_state,bujutsu)
// hd patches
// (gfx)
- // 0x18932c = 0x38600000 skips check_one_scene()
+ // 0x18932c = 0x38600000 skips check_one_scene()
// (sub)
- // 0x2d3568 = 0x60000000 [0x4082001c] skip IRQ fail
+ // 0x2d3568 = 0x60000000 [0x4082001c] skip IRQ fail
// (main)
- // 0x5025ac = 0x60000000 [0x4082055c] skip IRQ fail...
+ // 0x5025ac = 0x60000000 [0x4082055c] skip IRQ fail...
// 0x503ec4 = 0x60000000 [0x4186fff8]
// 0x503f00 = 0x60000000 [0x4186fff8]
@@ -3503,16 +3503,16 @@ DRIVER_INIT_MEMBER(cobra_state,racjamdx)
// hd patches
// (gfx)
- // 0x144354 = 0x38600000 [0x4bfffb91] skips check_one_scene()
+ // 0x144354 = 0x38600000 [0x4bfffb91] skips check_one_scene()
// (sub)
- // 0x2a5394 = 0x4800001c [0x4182001c] sound chip check?
- // 0x2a53f4 = 0x4800001c [0x4082001c] ?
- // 0x2a546c = 0x60000000 [0x48001a0d] ?
- // 0x2a5510 = 0x48000014 [0x419e0014] ?
+ // 0x2a5394 = 0x4800001c [0x4182001c] sound chip check?
+ // 0x2a53f4 = 0x4800001c [0x4082001c] ?
+ // 0x2a546c = 0x60000000 [0x48001a0d] ?
+ // 0x2a5510 = 0x48000014 [0x419e0014] ?
// (main)
- // 0x14aa48 = 0x60000000 [0x4182fff4] ?
+ // 0x14aa48 = 0x60000000 [0x4182fff4] ?
m_has_psac = true;
}
diff --git a/src/mame/drivers/cyclemb.c b/src/mame/drivers/cyclemb.c
index d4c898a7bc3..1a94a9c4f86 100644
--- a/src/mame/drivers/cyclemb.c
+++ b/src/mame/drivers/cyclemb.c
@@ -12,7 +12,7 @@
- sound (controlled by three i8741);
- add flipscreen;
- color prom resistor network is guessed, cyclemb yellows are more reddish on pcb video and photos;
-
+
BTANB verified on pcb: cyclemb standing cones are reddish-yellow/black instead of red/white
=====================================================================================================
diff --git a/src/mame/drivers/ddenlovr.c b/src/mame/drivers/ddenlovr.c
index e69e001c04e..8cafa9fba83 100644
--- a/src/mame/drivers/ddenlovr.c
+++ b/src/mame/drivers/ddenlovr.c
@@ -1981,7 +1981,7 @@ static ADDRESS_MAP_START( quizchq_map, AS_PROGRAM, 8, dynax_state )
AM_RANGE(0x6000, 0x6fff) AM_RAM // RAM
AM_RANGE(0x7000, 0x7fff) AM_RAMBANK("bank2") // RAM (Banked)
AM_RANGE(0x8000, 0xffff) AM_ROMBANK("bank1") // ROM (Banked)
- AM_RANGE(0x8000, 0x81ff) AM_WRITE(rongrong_palette_w)
+ AM_RANGE(0x8000, 0x81ff) AM_WRITE(rongrong_palette_w)
ADDRESS_MAP_END
static ADDRESS_MAP_START( quizchq_portmap, AS_IO, 8, dynax_state )
diff --git a/src/mame/drivers/djmain.c b/src/mame/drivers/djmain.c
index e43ee07fa80..cc905036ccf 100644
--- a/src/mame/drivers/djmain.c
+++ b/src/mame/drivers/djmain.c
@@ -1446,10 +1446,10 @@ static const k056832_interface djmain_k056832_intf =
djmain_tile_callback, "none"
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/finalizr.c b/src/mame/drivers/finalizr.c
index 400801c8fe6..5de9bdb2ceb 100644
--- a/src/mame/drivers/finalizr.c
+++ b/src/mame/drivers/finalizr.c
@@ -240,8 +240,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/firebeat.c b/src/mame/drivers/firebeat.c
index ba7523954db..134ee49a208 100644
--- a/src/mame/drivers/firebeat.c
+++ b/src/mame/drivers/firebeat.c
@@ -121,7 +121,7 @@
#include "firebeat.lh"
-struct GCU_REGS
+struct GCU_REGS
{
UINT32 *vram;
UINT32 vram_read_address;
@@ -129,14 +129,14 @@ struct GCU_REGS
UINT32 visible_area;
};
-struct IBUTTON_SUBKEY
+struct IBUTTON_SUBKEY
{
UINT8 identifier[8];
UINT8 password[8];
UINT8 data[0x30];
};
-struct IBUTTON
+struct IBUTTON
{
IBUTTON_SUBKEY subkey[3];
};
diff --git a/src/mame/drivers/funkball.c b/src/mame/drivers/funkball.c
index 7f90aa7e8fb..54813ac8ff5 100644
--- a/src/mame/drivers/funkball.c
+++ b/src/mame/drivers/funkball.c
@@ -1140,22 +1140,22 @@ SCREEN_UPDATE_RGB32( funkball )
return 0;
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
static const voodoo_config voodoo_intf =
{
- 2, // fbmem;
- 4,// tmumem0;
- 0,// tmumem1;
- "screen",// screen;
- "maincpu",// cputag;
- NULL,// vblank;
- NULL,// stall;
+ 2, // fbmem;
+ 4,// tmumem0;
+ 0,// tmumem1;
+ "screen",// screen;
+ "maincpu",// cputag;
+ NULL,// vblank;
+ NULL,// stall;
};
static MACHINE_CONFIG_START( funkball, funkball_state )
diff --git a/src/mame/drivers/g627.c b/src/mame/drivers/g627.c
index bcd81593349..d5d1209e6ea 100644
--- a/src/mame/drivers/g627.c
+++ b/src/mame/drivers/g627.c
@@ -167,8 +167,8 @@ static INPUT_PORTS_START( g627 )
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Test 4") PORT_CODE(KEYCODE_N)
PORT_START("Y5")
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("END") PORT_CODE(KEYCODE_END)
- PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Test 10")
- PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Test 9")
+ PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Test 10")
+ PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Test 9")
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Test 8") PORT_CODE(KEYCODE_STOP)
INPUT_PORTS_END
diff --git a/src/mame/drivers/galaga.c b/src/mame/drivers/galaga.c
index 94990523f11..d40b8c4b89a 100644
--- a/src/mame/drivers/galaga.c
+++ b/src/mame/drivers/galaga.c
@@ -1653,17 +1653,17 @@ static INTERRUPT_GEN( sub_vblank_irq )
device->execute().set_input_line(0, ASSERT_LINE);
}
-const namco_06xx_config bosco_namco_06xx_0_intf =
+const namco_06xx_config bosco_namco_06xx_0_intf =
{
"maincpu", "51xx", NULL, "50xx_1", "54xx"
};
-const namco_06xx_config bosco_namco_06xx_1_intf =
+const namco_06xx_config bosco_namco_06xx_1_intf =
{
"sub", "50xx_2", "52xx", NULL, NULL
};
-const namco_54xx_config namco_54xx_intf =
+const namco_54xx_config namco_54xx_intf =
{
"discrete", NODE_01
};
@@ -1723,7 +1723,7 @@ static MACHINE_CONFIG_START( bosco, bosco_state )
MACHINE_CONFIG_END
-const namco_06xx_config galaga_namco_06xx_intf =
+const namco_06xx_config galaga_namco_06xx_intf =
{
"maincpu", "51xx", NULL, NULL, "54xx"
};
@@ -1778,7 +1778,7 @@ static MACHINE_CONFIG_START( galaga, galaga_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90)
MACHINE_CONFIG_END
-const namco_06xx_config galagab_namco_06xx_intf =
+const namco_06xx_config galagab_namco_06xx_intf =
{
"maincpu", "51xx", NULL, NULL, NULL
};
@@ -1800,7 +1800,7 @@ static MACHINE_CONFIG_DERIVED( galagab, galaga )
MCFG_DEVICE_REMOVE("discrete")
MACHINE_CONFIG_END
-const namco_06xx_config xevious_namco_06xx_intf =
+const namco_06xx_config xevious_namco_06xx_intf =
{
"maincpu", "51xx", NULL, "50xx", "54xx"
};
@@ -1855,7 +1855,7 @@ static MACHINE_CONFIG_START( xevious, xevious_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90)
MACHINE_CONFIG_END
-const namco_06xx_config battles_namco_06xx_intf =
+const namco_06xx_config battles_namco_06xx_intf =
{
"maincpu", "51xx", NULL, NULL, NULL
};
@@ -1889,7 +1889,7 @@ static MACHINE_CONFIG_DERIVED( battles, xevious )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
MACHINE_CONFIG_END
-const namco_06xx_config digdug_namco_06xx_intf =
+const namco_06xx_config digdug_namco_06xx_intf =
{
"maincpu", "51xx", "53xx", NULL, NULL
};
diff --git a/src/mame/drivers/galaxold.c b/src/mame/drivers/galaxold.c
index 1cb224147c4..ecb7aca6dcf 100644
--- a/src/mame/drivers/galaxold.c
+++ b/src/mame/drivers/galaxold.c
@@ -2145,8 +2145,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/gamecstl.c b/src/mame/drivers/gamecstl.c
index 5c007a1468a..bf300a82986 100644
--- a/src/mame/drivers/gamecstl.c
+++ b/src/mame/drivers/gamecstl.c
@@ -687,10 +687,10 @@ static const struct pit8253_config gamecstl_pit8254_config =
}
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/gberet.c b/src/mame/drivers/gberet.c
index 150144f3f02..f6ae1b37649 100644
--- a/src/mame/drivers/gberet.c
+++ b/src/mame/drivers/gberet.c
@@ -384,8 +384,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/glass.c b/src/mame/drivers/glass.c
index 77a03b6603a..6b90ff4905b 100644
--- a/src/mame/drivers/glass.c
+++ b/src/mame/drivers/glass.c
@@ -308,7 +308,7 @@ static void glass_ROM16_split_gfx( running_machine &machine, const char *src_reg
/* How does the protection work?
We know in World Rally it shares the whole of main RAM with the Dallas, with subtle reads and writes / values being checked.. so I guess this will be similar at least
- and thus very hard to figure out if done properly
+ and thus very hard to figure out if done properly
*/
@@ -323,14 +323,14 @@ READ16_MEMBER( glass_state::glass_mainram_r )
// there are also various code segments like the one below
/*
- start:
- tst.b this address
- bne end
- tst.b $fede1d.l
- nop << why?
- bne start
- end:
- */
+ start:
+ tst.b this address
+ bne end
+ tst.b $fede1d.l
+ nop << why?
+ bne start
+ end:
+ */
return 0x0000;
//printf("%06x read %06x - %04x %04x\n", pc , (offset*2 + 0xfec000), ret, mem_mask);
}
@@ -354,7 +354,7 @@ WRITE16_MEMBER( glass_state::glass_mainram_w )
if (offset == (0xfede02 - 0xfec000)>>1)
{
-// printf("%06x write %06x - %04x %04x\n", pc, (offset*2 + 0xfec000), data, mem_mask);
+// printf("%06x write %06x - %04x %04x\n", pc, (offset*2 + 0xfec000), data, mem_mask);
// several checks write here then expect it to appear mirrored, might be some kind of command + command ack
if (mem_mask & 0xff00) // sometimes mask 0xff00, but not in cases which poll for change
{
@@ -390,7 +390,7 @@ WRITE16_MEMBER( glass_state::glass_mainram_w )
}
}
-
+
DRIVER_INIT_MEMBER(glass_state,glass)
{
diff --git a/src/mame/drivers/goldstar.c b/src/mame/drivers/goldstar.c
index 397a64da6ca..89e01b4cf49 100644
--- a/src/mame/drivers/goldstar.c
+++ b/src/mame/drivers/goldstar.c
@@ -6046,7 +6046,7 @@ static MACHINE_CONFIG_START( chrygld, goldstar_state )
MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
MCFG_SOUND_CONFIG(psg_intf)
-
+
MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK)
MCFG_SOUND_CONFIG(ay8910_config)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
diff --git a/src/mame/drivers/gticlub.c b/src/mame/drivers/gticlub.c
index a5d92dc9e6d..7ee53ac59bb 100644
--- a/src/mame/drivers/gticlub.c
+++ b/src/mame/drivers/gticlub.c
@@ -885,24 +885,24 @@ MACHINE_RESET_MEMBER(gticlub_state,hangplt)
static const voodoo_config voodoo_l_intf =
{
- 2, // fbmem;
- 2,// tmumem0;
- 2,// tmumem1;
- "lscreen",// screen;
- "dsp",// cputag;
- voodoo_vblank_0,// vblank;
- NULL,// stall;
+ 2, // fbmem;
+ 2,// tmumem0;
+ 2,// tmumem1;
+ "lscreen",// screen;
+ "dsp",// cputag;
+ voodoo_vblank_0,// vblank;
+ NULL,// stall;
};
static const voodoo_config voodoo_r_intf =
{
- 2, // fbmem;
- 2,// tmumem0;
- 2,// tmumem1;
- "rscreen",// screen;
- "dsp2",// cputag;
- voodoo_vblank_1,// vblank;
- NULL,// stall;
+ 2, // fbmem;
+ 2,// tmumem0;
+ 2,// tmumem1;
+ "rscreen",// screen;
+ "dsp2",// cputag;
+ voodoo_vblank_1,// vblank;
+ NULL,// stall;
};
static MACHINE_CONFIG_START( hangplt, gticlub_state )
diff --git a/src/mame/drivers/guab.c b/src/mame/drivers/guab.c
index dd6d6cf2b9d..fec1fcf027c 100644
--- a/src/mame/drivers/guab.c
+++ b/src/mame/drivers/guab.c
@@ -78,10 +78,10 @@ public:
guab_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_sn(*this, "snsnd") { }
-
+
/* devices */
required_device<sn76489_new_device> m_sn;
-
+
struct ef9369 m_pal;
emu_timer *m_fdc_timer;
struct wd1770 m_fdc;
@@ -784,8 +784,8 @@ INPUT_PORTS_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/hankin.c b/src/mame/drivers/hankin.c
index 1806556fce3..e53696617c7 100644
--- a/src/mame/drivers/hankin.c
+++ b/src/mame/drivers/hankin.c
@@ -68,7 +68,7 @@ ROM_START(fjholden)
ROM_REGION(0x10000, "maincpu", 0)
ROM_LOAD( "fj_ic2.mpu", 0x1000, 0x0800, CRC(b47bc2c7) SHA1(42c985d83a9454fcd08b87e572e5563ebea0d052))
ROM_LOAD( "fj_ic3.mpu", 0x1800, 0x0800, CRC(ceaeb7d3) SHA1(9e479b985f8500983e71d6ff33ee94160e99650d))
-
+
ROM_REGION(0x10000, "cpu2", 0)
ROM_LOAD("fj_ic14.snd", 0x1000, 0x0800, CRC(34fe3587) SHA1(132714675a23c101ceb5a4d544818650ae5ccea2))
ROM_RELOAD( 0xf800, 0x0800)
diff --git a/src/mame/drivers/homedata.c b/src/mame/drivers/homedata.c
index 7df2f96a32d..2d541c13fb0 100644
--- a/src/mame/drivers/homedata.c
+++ b/src/mame/drivers/homedata.c
@@ -1128,8 +1128,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/homerun.c b/src/mame/drivers/homerun.c
index 10d9693661e..6558033d171 100644
--- a/src/mame/drivers/homerun.c
+++ b/src/mame/drivers/homerun.c
@@ -10,9 +10,9 @@
*weird* hardware - based on NES version
(gfx bank changed in the middle of screen,
sprites in NES format etc)
-
+
homerun and ganjaja use an extra soundchip for playing voice/samples
-
+
Todo :
- dump homerun sample rom
- improve controls/dips
diff --git a/src/mame/drivers/hornet.c b/src/mame/drivers/hornet.c
index 993154ba896..310b6d1b171 100644
--- a/src/mame/drivers/hornet.c
+++ b/src/mame/drivers/hornet.c
@@ -979,13 +979,13 @@ static const k037122_interface hornet_k037122_intf_r =
static const voodoo_config hornet_voodoo_intf =
{
- 2, // fbmem;
- 4,// tmumem0;
- 0,// tmumem1;
- "screen",// screen;
- "dsp",// cputag;
- voodoo_vblank_0,// vblank;
- NULL,// stall;
+ 2, // fbmem;
+ 4,// tmumem0;
+ 0,// tmumem1;
+ "screen",// screen;
+ "dsp",// cputag;
+ voodoo_vblank_0,// vblank;
+ NULL,// stall;
};
static MACHINE_CONFIG_START( hornet, hornet_state )
@@ -1058,24 +1058,24 @@ MACHINE_RESET_MEMBER(hornet_state,hornet_2board)
static const voodoo_config voodoo_l_intf =
{
- 2, // fbmem;
- 4,// tmumem0;
- 0,// tmumem1;
- "lscreen",// screen;
- "dsp",// cputag;
- voodoo_vblank_0,// vblank;
- NULL,// stall;
+ 2, // fbmem;
+ 4,// tmumem0;
+ 0,// tmumem1;
+ "lscreen",// screen;
+ "dsp",// cputag;
+ voodoo_vblank_0,// vblank;
+ NULL,// stall;
};
static const voodoo_config voodoo_r_intf =
{
- 2, // fbmem;
- 4,// tmumem0;
- 0,// tmumem1;
- "rscreen",// screen;
- "dsp2",// cputag;
- voodoo_vblank_1,// vblank;
- NULL,// stall;
+ 2, // fbmem;
+ 4,// tmumem0;
+ 0,// tmumem1;
+ "rscreen",// screen;
+ "dsp2",// cputag;
+ voodoo_vblank_1,// vblank;
+ NULL,// stall;
};
static MACHINE_CONFIG_DERIVED( hornet_2board, hornet )
diff --git a/src/mame/drivers/jaguar.c b/src/mame/drivers/jaguar.c
index 70fc464eab1..8c5c1d22602 100644
--- a/src/mame/drivers/jaguar.c
+++ b/src/mame/drivers/jaguar.c
@@ -1564,10 +1564,10 @@ static const jaguar_cpu_config dsp_config =
&jaguar_state::dsp_cpu_int
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- &jaguar_state::external_int,
- NULL,
+ &jaguar_state::external_int,
+ NULL,
0
};
diff --git a/src/mame/drivers/jpmmps.c b/src/mame/drivers/jpmmps.c
index 8a9ac38a49b..b6d3ff19b97 100644
--- a/src/mame/drivers/jpmmps.c
+++ b/src/mame/drivers/jpmmps.c
@@ -152,8 +152,8 @@ static const tms9902_interface tms9902_uart2_ic5_params =
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/kinst.c b/src/mame/drivers/kinst.c
index f177af51c55..cebdf9b47b9 100644
--- a/src/mame/drivers/kinst.c
+++ b/src/mame/drivers/kinst.c
@@ -662,10 +662,10 @@ static const mips3_config r4600_config =
16384 /* data cache size */
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/konamigx.c b/src/mame/drivers/konamigx.c
index 21d8edbb37a..e1650d98c0e 100644
--- a/src/mame/drivers/konamigx.c
+++ b/src/mame/drivers/konamigx.c
@@ -3660,7 +3660,7 @@ MACHINE_RESET_MEMBER(konamigx_state,konamigx)
}
}
-struct GXGameInfoT
+struct GXGameInfoT
{
const char *romname;
UINT32 cfgport;
diff --git a/src/mame/drivers/konamim2.c b/src/mame/drivers/konamim2.c
index c6fde52df7a..fd24a938eb6 100644
--- a/src/mame/drivers/konamim2.c
+++ b/src/mame/drivers/konamim2.c
@@ -191,7 +191,7 @@ Notes:
#include "cpu/powerpc/ppc.h"
-struct CDE_DMA
+struct CDE_DMA
{
UINT32 dst_addr;
int length;
@@ -498,14 +498,14 @@ static void cde_init(running_machine &machine)
memcpy(&state->m_cde_toc, toc, sizeof(cdrom_toc));
/*
- printf("%d tracks\n", toc->numtrks);
- for (int i=0; i < toc->numtrks; i++)
- {
- const cdrom_track_info *track = &toc->tracks[i];
- printf("Track %d: type %d, subtype %d, datasize %d, subsize %d, frames %d, extraframes %d, physframeofs %d\n",
- i, track->trktype, track->subtype, track->datasize, track->subsize,track->frames, track->extraframes, track->physframeofs);
- }
- */
+ printf("%d tracks\n", toc->numtrks);
+ for (int i=0; i < toc->numtrks; i++)
+ {
+ const cdrom_track_info *track = &toc->tracks[i];
+ printf("Track %d: type %d, subtype %d, datasize %d, subsize %d, frames %d, extraframes %d, physframeofs %d\n",
+ i, track->trktype, track->subtype, track->datasize, track->subsize,track->frames, track->extraframes, track->physframeofs);
+ }
+ */
cdrom_close(cdfile);
}
diff --git a/src/mame/drivers/lasso.c b/src/mame/drivers/lasso.c
index cec0848b25c..802145af66e 100644
--- a/src/mame/drivers/lasso.c
+++ b/src/mame/drivers/lasso.c
@@ -463,8 +463,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
@@ -480,7 +480,7 @@ void lasso_state::machine_start()
m_maincpu = machine().device<cpu_device>("maincpu");
m_audiocpu = machine().device<cpu_device>("audiocpu");
-
+
save_item(NAME(m_gfxbank));
}
diff --git a/src/mame/drivers/littlerb.c b/src/mame/drivers/littlerb.c
index dd5c48afbfd..e979073bed0 100644
--- a/src/mame/drivers/littlerb.c
+++ b/src/mame/drivers/littlerb.c
@@ -594,8 +594,8 @@ static TIMER_DEVICE_CALLBACK( littlerb_scanline )
void littlerb_state::video_start()
{
-// machine().primary_screen->register_screen_bitmap(m_temp_bitmap_sprites_back);
-// machine().primary_screen->register_screen_bitmap(m_temp_bitmap_sprites);
+// machine().primary_screen->register_screen_bitmap(m_temp_bitmap_sprites_back);
+// machine().primary_screen->register_screen_bitmap(m_temp_bitmap_sprites);
m_temp_bitmap_sprites_back = auto_bitmap_ind16_alloc(machine(),512,512);
m_temp_bitmap_sprites = auto_bitmap_ind16_alloc(machine(),512,512);
diff --git a/src/mame/drivers/magictg.c b/src/mame/drivers/magictg.c
index 0decfd571a2..e4729ab344e 100644
--- a/src/mame/drivers/magictg.c
+++ b/src/mame/drivers/magictg.c
@@ -901,24 +901,24 @@ static const adsp21xx_config adsp_config =
static const voodoo_config voodoo_1_intf =
{
- 2, // fbmem;
- 4,// tmumem0;
- 0,// tmumem1;
- "screen",// screen;
- "mips",// cputag;
- NULL,// vblank;
- NULL,// stall;
+ 2, // fbmem;
+ 4,// tmumem0;
+ 0,// tmumem1;
+ "screen",// screen;
+ "mips",// cputag;
+ NULL,// vblank;
+ NULL,// stall;
};
static const voodoo_config voodoo_2_intf =
{
- 2, // fbmem;
- 4,// tmumem0;
- 0,// tmumem1;
- "screen",// screen;
- "mips",// cputag;
- NULL,//vblank_assert vblank;
- NULL,// voodoo_stall stall;
+ 2, // fbmem;
+ 4,// tmumem0;
+ 0,// tmumem1;
+ "screen",// screen;
+ "mips",// cputag;
+ NULL,//vblank_assert vblank;
+ NULL,// voodoo_stall stall;
};
/*************************************
*
diff --git a/src/mame/drivers/majorpkr.c b/src/mame/drivers/majorpkr.c
index 26b88b2a993..eff210fd8d0 100644
--- a/src/mame/drivers/majorpkr.c
+++ b/src/mame/drivers/majorpkr.c
@@ -461,7 +461,7 @@ class majorpkr_state : public driver_device
{
public:
majorpkr_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ : driver_device(mconfig, type, tag),
oki(*this, "oki") { }
int m_mux_data;
diff --git a/src/mame/drivers/maygayv1.c b/src/mame/drivers/maygayv1.c
index 0536b1473c3..e1dbdeb2593 100644
--- a/src/mame/drivers/maygayv1.c
+++ b/src/mame/drivers/maygayv1.c
@@ -193,7 +193,7 @@ static const UINT32 banks[4] = { 0, 0x40000/2, 0x20000/2, 0x60000/2 };
#define DRAM_BANK_SEL (banks[(VREG(DSBA) >> 7) & 3])
-struct i82716_t
+struct i82716_t
{
UINT16 r[16];
UINT16 *dram;
@@ -202,7 +202,7 @@ struct i82716_t
};
-struct i8279_t
+struct i8279_t
{
UINT8 command;
UINT8 mode;
diff --git a/src/mame/drivers/mcr.c b/src/mame/drivers/mcr.c
index 3d58c837705..f77fd90aeba 100644
--- a/src/mame/drivers/mcr.c
+++ b/src/mame/drivers/mcr.c
@@ -391,7 +391,7 @@ TIMER_DEVICE_CALLBACK( dpoker_hopper_callback )
{
dpoker_coin_status &= ~8;
}
-
+
coin_counter_w(timer.machine(), 3, dpoker_coin_status & 8);
}
@@ -443,11 +443,11 @@ WRITE8_MEMBER(mcr_state::dpoker_lamps2_w)
{
// d5: button lamp: service or change
output_set_lamp_value(8, data >> 5 & 1);
-
+
// d0-d4: marquee lamps: coin 1 to 5 --> output lamps 9 to 13
for (int i = 0; i < 5; i++)
output_set_lamp_value(9 + i, data >> i & 1);
-
+
// d6, d7: unused?
}
@@ -456,12 +456,12 @@ WRITE8_MEMBER(mcr_state::dpoker_output_w)
// d0: ? coin return
// d1: ? divertor (active low)
// d3: coin counter?
-
+
// d6: assume hopper coin flow
// d7: assume hopper motor
if (data & 0x40 & ~dpoker_output)
m_dpoker_hopper_timer->adjust(attotime::from_msec(500));
-
+
// other bits: unused?
dpoker_output = data;
@@ -1051,12 +1051,12 @@ static INPUT_PORTS_START( dpoker )
PORT_DIPNAME( 0x80, 0x00, "Background Color" ) PORT_DIPLOCATION("B3:8")
PORT_DIPSETTING( 0x80, "Green" )
PORT_DIPSETTING( 0x00, "Blue" )
-// PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("B3:9")
-// PORT_DIPSETTING( 0x01, DEF_STR( On ) )
-// PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
-// PORT_DIPNAME( 0x01, 0x00, "Freeze" ) PORT_DIPLOCATION("B3:10")
-// PORT_DIPSETTING( 0x01, DEF_STR( On ) )
-// PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
+// PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("B3:9")
+// PORT_DIPSETTING( 0x01, DEF_STR( On ) )
+// PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
+// PORT_DIPNAME( 0x01, 0x00, "Freeze" ) PORT_DIPLOCATION("B3:10")
+// PORT_DIPSETTING( 0x01, DEF_STR( On ) )
+// PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_START("ssio:IP4")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
@@ -2811,7 +2811,7 @@ DRIVER_INIT_MEMBER(mcr_state,dpoker)
machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x30, 0x30, write8_delegate(FUNC(mcr_state::dpoker_lamps2_w),this));
machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x34, 0x34, write8_delegate(FUNC(mcr_state::dpoker_output_w),this));
machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x3f, 0x3f, write8_delegate(FUNC(mcr_state::dpoker_meters_w),this));
-
+
dpoker_coin_status = 0;
dpoker_output = 0;
diff --git a/src/mame/drivers/mediagx.c b/src/mame/drivers/mediagx.c
index eaa95d40f6b..aa90258a903 100644
--- a/src/mame/drivers/mediagx.c
+++ b/src/mame/drivers/mediagx.c
@@ -1151,10 +1151,10 @@ static RAMDAC_INTERFACE( ramdac_intf )
0
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/meritm.c b/src/mame/drivers/meritm.c
index 5bfbd1f48a4..ab9ec09dd64 100644
--- a/src/mame/drivers/meritm.c
+++ b/src/mame/drivers/meritm.c
@@ -164,7 +164,7 @@ Not all regional versions are available for each Megatouch series
#include "machine/nvram.h"
-struct ds1204_t
+struct ds1204_t
{
int state;
int read_ptr;
diff --git a/src/mame/drivers/midqslvr.c b/src/mame/drivers/midqslvr.c
index 49a59902d34..39fd77be878 100644
--- a/src/mame/drivers/midqslvr.c
+++ b/src/mame/drivers/midqslvr.c
@@ -686,10 +686,10 @@ void midqslvr_state::machine_reset()
machine().root_device().membank("video_bank2")->set_base(machine().root_device().memregion("video_bios")->base() + 0x4000);
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/midvunit.c b/src/mame/drivers/midvunit.c
index 3d972b1bbaa..63286540608 100644
--- a/src/mame/drivers/midvunit.c
+++ b/src/mame/drivers/midvunit.c
@@ -1037,10 +1037,10 @@ static MACHINE_CONFIG_DERIVED( midvunit, midvcommon )
MCFG_FRAGMENT_ADD(dcs_audio_2k)
MACHINE_CONFIG_END
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- NULL,
- NULL,
+ NULL,
+ NULL,
0
};
diff --git a/src/mame/drivers/mrdo.c b/src/mame/drivers/mrdo.c
index 841c2af5b84..416ff575471 100644
--- a/src/mame/drivers/mrdo.c
+++ b/src/mame/drivers/mrdo.c
@@ -169,8 +169,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/mrjong.c b/src/mame/drivers/mrjong.c
index f2149362172..22e718ce728 100644
--- a/src/mame/drivers/mrjong.c
+++ b/src/mame/drivers/mrjong.c
@@ -177,8 +177,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
@@ -221,7 +221,7 @@ static MACHINE_CONFIG_START( mrjong, mrjong_state )
MCFG_SOUND_ADD("sn1", SN76489_NEW, 15468000/6)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MCFG_SOUND_CONFIG(psg_intf)
-
+
MCFG_SOUND_ADD("sn2", SN76489_NEW, 15468000/6)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MCFG_SOUND_CONFIG(psg_intf)
diff --git a/src/mame/drivers/namcoic.c b/src/mame/drivers/namcoic.c
index bda14a94146..bd6d4c3cb42 100644
--- a/src/mame/drivers/namcoic.c
+++ b/src/mame/drivers/namcoic.c
@@ -911,7 +911,7 @@ void namcos2_shared_state::c355_obj_draw(bitmap_ind16 &bitmap, const rectangle &
if (pri == 0)
machine().priority_bitmap.fill(0, cliprect);
-// if (offs == 0) // boot
+// if (offs == 0) // boot
c355_obj_draw_list(bitmap, cliprect, pri, &m_c355_obj_ram[0x02000/2], &m_c355_obj_ram[0x00000/2]);
// else
c355_obj_draw_list(bitmap, cliprect, pri, &m_c355_obj_ram[0x14000/2], &m_c355_obj_ram[0x10000/2]);
@@ -923,7 +923,7 @@ void namcos2_shared_state::c355_obj_draw(bitmap_rgb32 &bitmap, const rectangle &
if (pri == 0)
machine().priority_bitmap.fill(0, cliprect);
-// if (offs == 0) // boot
+// if (offs == 0) // boot
c355_obj_draw_list(bitmap, cliprect, pri, &m_c355_obj_ram[0x02000/2], &m_c355_obj_ram[0x00000/2]);
// else
c355_obj_draw_list(bitmap, cliprect, pri, &m_c355_obj_ram[0x14000/2], &m_c355_obj_ram[0x10000/2]);
@@ -1167,13 +1167,13 @@ void namcos2_shared_state::c169_roz_draw_scanline(bitmap_ind16 &bitmap, int line
int row = line / 8;
int offs = row * 0x100 + (line & 7) * 0x10 + 0xe080;
UINT16 *source = &m_c169_roz_videoram[offs / 2];
-
+
// if enabled
if ((source[1] & 0x8000) == 0)
{
roz_parameters params;
c169_roz_unpack_params(source, params);
-
+
// check priority
if (pri == params.priority)
{
@@ -1194,7 +1194,7 @@ void namcos2_shared_state::c169_roz_draw(bitmap_ind16 &bitmap, const rectangle &
{
const UINT16 *source = &m_c169_roz_control[which * 8];
UINT16 attrs = source[1];
-
+
// if enabled
if ((attrs & 0x8000) == 0)
{
@@ -1212,7 +1212,7 @@ void namcos2_shared_state::c169_roz_draw(bitmap_ind16 &bitmap, const rectangle &
c169_roz_draw_helper(bitmap, *m_c169_roz_tilemap[which], cliprect, params);
}
}
- }
+ }
}
READ16_MEMBER( namcos2_shared_state::c169_roz_control_r )
@@ -1334,11 +1334,11 @@ READ16_MEMBER( namco_c45_road_device::read )
WRITE16_MEMBER( namco_c45_road_device::write )
{
COMBINE_DATA(&m_ram[offset]);
-
+
// first half maps to the tilemap
if (offset < 0x10000/2)
m_tilemap->mark_tile_dirty(offset);
-
+
// second half maps to the gfx elements
else
{
@@ -1379,7 +1379,7 @@ void namco_c45_road_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect
continue;
// mask off priority bits and sign-extend
- screenx &= 0x0fff;
+ screenx &= 0x0fff;
if (screenx & 0x0800)
screenx |= ~0x7ff;
@@ -1388,7 +1388,7 @@ void namco_c45_road_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect
int numpixels = (44 * ROAD_TILE_SIZE << 16) / dsourcex;
unsigned sourcex = 0;
-
+
// crop left
int clip_pixels = cliprect.min_x - screenx;
if (clip_pixels > 0)
@@ -1449,7 +1449,7 @@ void namco_c45_road_device::device_start()
// create a tilemap for the road
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namco_c45_road_device::get_road_info), this),
TILEMAP_SCAN_ROWS, ROAD_TILE_SIZE, ROAD_TILE_SIZE, ROAD_COLS, ROAD_ROWS);
-}
+}
//-------------------------------------------------
diff --git a/src/mame/drivers/namcos2.c b/src/mame/drivers/namcos2.c
index 6abce45eb02..84a2b7c35e7 100644
--- a/src/mame/drivers/namcos2.c
+++ b/src/mame/drivers/namcos2.c
@@ -1760,7 +1760,7 @@ static MACHINE_CONFIG_START( finallap, namcos2_state )
MCFG_PALETTE_LENGTH(0x2000)
MCFG_VIDEO_START_OVERRIDE(namcos2_state, finallap)
-
+
MCFG_NAMCO_C45_ROAD_ADD("c45_road")
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
diff --git a/src/mame/drivers/namcos23.c b/src/mame/drivers/namcos23.c
index 13d48fec898..83e02a4bd01 100644
--- a/src/mame/drivers/namcos23.c
+++ b/src/mame/drivers/namcos23.c
@@ -1269,14 +1269,14 @@ struct namcos23_poly_entry {
enum { RENDER_MAX_ENTRIES = 1000, POLY_MAX_ENTRIES = 10000 };
-struct c417_t
+struct c417_t
{
UINT16 ram[0x10000];
UINT16 adr;
UINT32 pointrom_adr;
};
-struct c412_t
+struct c412_t
{
UINT16 sdram_a[0x100000]; // Framebuffers, probably
UINT16 sdram_b[0x100000];
@@ -1285,7 +1285,7 @@ struct c412_t
UINT32 adr;
};
-struct c421_t
+struct c421_t
{
UINT16 dram_a[0x40000];
UINT16 dram_b[0x40000];
@@ -1293,18 +1293,18 @@ struct c421_t
UINT32 adr;
};
-struct c422_t
+struct c422_t
{
INT16 regs[0x10];
};
-struct c361_t
+struct c361_t
{
emu_timer *timer;
int scanline;
};
-struct render_t
+struct render_t
{
poly_manager *polymgr;
int cur;
diff --git a/src/mame/drivers/naomi.c b/src/mame/drivers/naomi.c
index 98126f9aa3c..aac838a54d4 100644
--- a/src/mame/drivers/naomi.c
+++ b/src/mame/drivers/naomi.c
@@ -7862,17 +7862,17 @@ ROM_START( claychal )
AW_BIOS
ROM_REGION( 0x8000100, "rom_board", ROMREGION_ERASE)
- ROM_LOAD( "u3.bin", 0x0000000, 0x1000100, CRC(5bb65194) SHA1(5fa8c38e6aadf5d999e260da24b001c0c7805d48) )
- ROM_LOAD( "u1.bin", 0x1000000, 0x1000100, CRC(526fc1af) SHA1(dd8a37fa73a9ef193b6f4fb962345bdfc4854b5d) )
- ROM_LOAD( "u4.bin", 0x2000000, 0x1000100, CRC(55f4e762) SHA1(a11f7d69458e647dd2b8d86c98a54f309b1f1bbc) )
- ROM_LOAD( "u2.bin", 0x3000000, 0x1000100, CRC(c40dae68) SHA1(29ec47c76373eeaa686684f10907d551de7d9c59) )
- ROM_LOAD( "u15.bin", 0x4000000, 0x1000100, CRC(b82dcb0a) SHA1(36dc89a388ac0c7e0a0e72428c8149cbda12805a) )
- ROM_LOAD( "u17.bin", 0x5000000, 0x1000100, CRC(2f973eb4) SHA1(45409b5517cda119315f198892224889ac3a0f53) )
- ROM_LOAD( "u14.bin", 0x6000000, 0x1000100, CRC(2e7d966f) SHA1(3304fd0c5140a13f6fe2ea9aaa74d7885e1505e1) )
- ROM_LOAD( "u16.bin", 0x7000000, 0x1000100, CRC(14f8ca87) SHA1(778c048da9434ffda600e35ad5aca29e02cc98c0) )
+ ROM_LOAD( "u3.bin", 0x0000000, 0x1000100, CRC(5bb65194) SHA1(5fa8c38e6aadf5d999e260da24b001c0c7805d48) )
+ ROM_LOAD( "u1.bin", 0x1000000, 0x1000100, CRC(526fc1af) SHA1(dd8a37fa73a9ef193b6f4fb962345bdfc4854b5d) )
+ ROM_LOAD( "u4.bin", 0x2000000, 0x1000100, CRC(55f4e762) SHA1(a11f7d69458e647dd2b8d86c98a54f309b1f1bbc) )
+ ROM_LOAD( "u2.bin", 0x3000000, 0x1000100, CRC(c40dae68) SHA1(29ec47c76373eeaa686684f10907d551de7d9c59) )
+ ROM_LOAD( "u15.bin", 0x4000000, 0x1000100, CRC(b82dcb0a) SHA1(36dc89a388ac0c7e0a0e72428c8149cbda12805a) )
+ ROM_LOAD( "u17.bin", 0x5000000, 0x1000100, CRC(2f973eb4) SHA1(45409b5517cda119315f198892224889ac3a0f53) )
+ ROM_LOAD( "u14.bin", 0x6000000, 0x1000100, CRC(2e7d966f) SHA1(3304fd0c5140a13f6fe2ea9aaa74d7885e1505e1) )
+ ROM_LOAD( "u16.bin", 0x7000000, 0x1000100, CRC(14f8ca87) SHA1(778c048da9434ffda600e35ad5aca29e02cc98c0) )
ROM_REGION( 4, "rom_key", 0 )
- ROM_LOAD( "cckey.bin", 0x000000, 0x000004, CRC(553dd361) SHA1(a60a26b5ee786cf0bb3d09bb6f00374598fbd7cc) )
+ ROM_LOAD( "cckey.bin", 0x000000, 0x000004, CRC(553dd361) SHA1(a60a26b5ee786cf0bb3d09bb6f00374598fbd7cc) )
ROM_END
/* All games have the regional titles at the start of the IC22 rom in the following order
diff --git a/src/mame/drivers/nbmj9195.c b/src/mame/drivers/nbmj9195.c
index a4c8928b399..87a7e5b738b 100644
--- a/src/mame/drivers/nbmj9195.c
+++ b/src/mame/drivers/nbmj9195.c
@@ -1177,18 +1177,18 @@ TODO: it probably doesn't belong in here. Both CPUs are certainly tmpz84c011 tho
static ADDRESS_MAP_START( shabdama_map, AS_PROGRAM, 8, nbmj9195_state )
AM_RANGE(0x0000, 0x7fff) AM_ROM
AM_RANGE(0xe000, 0xe7ff) AM_RAM
-// AM_RANGE(0xd000, 0xd1ff) AM_READWRITE(nbmj9195_palette_r,nbmj9195_palette_w)
-// AM_RANGE(0xd800, 0xdfff) AM_RAM
+// AM_RANGE(0xd000, 0xd1ff) AM_READWRITE(nbmj9195_palette_r,nbmj9195_palette_w)
+// AM_RANGE(0xd800, 0xdfff) AM_RAM
ADDRESS_MAP_END
static ADDRESS_MAP_START( shabdama_io_map, AS_IO, 8, nbmj9195_state )
-// ADDRESS_MAP_UNMAP_HIGH
+// ADDRESS_MAP_UNMAP_HIGH
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_IMPORT_FROM( tmpz84c011_regs )
-// AM_RANGE(0x60, 0x61) AM_READ(nbmj9195_blitter_0_r)
-// AM_RANGE(0x60, 0x6f) AM_WRITE(nbmj9195_blitter_0_w)
-// AM_RANGE(0x70, 0x7f) AM_WRITE(nbmj9195_clut_0_w)
+// AM_RANGE(0x60, 0x61) AM_READ(nbmj9195_blitter_0_r)
+// AM_RANGE(0x60, 0x6f) AM_WRITE(nbmj9195_blitter_0_w)
+// AM_RANGE(0x70, 0x7f) AM_WRITE(nbmj9195_clut_0_w)
ADDRESS_MAP_END
/********************************************************************************
diff --git a/src/mame/drivers/nss.c b/src/mame/drivers/nss.c
index 21fb05a3300..c5bec5f234b 100644
--- a/src/mame/drivers/nss.c
+++ b/src/mame/drivers/nss.c
@@ -1,20 +1,20 @@
/***************************************************************************
- Nintendo Super System
+ Nintendo Super System
- driver by Angelo Salese, based off info from Noca$h
+ driver by Angelo Salese, based off info from Noca$h
- TODO:
- - EEPROM doesn't save?
- - Fix sound CPU halt / reset lines, particularly needed by this to work
- correctly;
- - Fix continue behaviour, might be the same issue as the one above.
- - Various M50458 bits
- - OSD should actually super-impose with the SNES video somehow;
+ TODO:
+ - EEPROM doesn't save?
+ - Fix sound CPU halt / reset lines, particularly needed by this to work
+ correctly;
+ - Fix continue behaviour, might be the same issue as the one above.
+ - Various M50458 bits
+ - OSD should actually super-impose with the SNES video somehow;
- Notes:
- - Multi-Cart BIOS works only with F-Zero, Super Tennis and Super Mario
- World;
+ Notes:
+ - Multi-Cart BIOS works only with F-Zero, Super Tennis and Super Mario
+ World;
***************************************************************************
@@ -505,14 +505,14 @@ ADDRESS_MAP_END
READ8_MEMBER(nss_state::port_00_r)
{
/*
- x--- ---- SNES Watchdog (0=SNES did read Joypads, 1=Didn't do so) (ack via 07h.W)
- -x-- ---- Vblank or Vsync or so (0=What, 1=What?)
- --x- ---- Button "Joypad Button B?" (0=Released, 1=Pressed)
- ---x ---- Button "Joypad Button A" (0=Released, 1=Pressed)
- ---- x--- Button "Joypad Down" (0=Released, 1=Pressed)
- ---- -x-- Button "Joypad Up" (0=Released, 1=Pressed)
- ---- --x- Button "Joypad Left" (0=Released, 1=Pressed)
- ---- ---x Button "Joypad Right" (0=Released, 1=Pressed)
+ x--- ---- SNES Watchdog (0=SNES did read Joypads, 1=Didn't do so) (ack via 07h.W)
+ -x-- ---- Vblank or Vsync or so (0=What, 1=What?)
+ --x- ---- Button "Joypad Button B?" (0=Released, 1=Pressed)
+ ---x ---- Button "Joypad Button A" (0=Released, 1=Pressed)
+ ---- x--- Button "Joypad Down" (0=Released, 1=Pressed)
+ ---- -x-- Button "Joypad Up" (0=Released, 1=Pressed)
+ ---- --x- Button "Joypad Left" (0=Released, 1=Pressed)
+ ---- ---x Button "Joypad Right" (0=Released, 1=Pressed)
*/
UINT8 res;
@@ -531,11 +531,11 @@ READ8_MEMBER(nss_state::port_00_r)
WRITE8_MEMBER(nss_state::port_00_w)
{
/*
- xxxx ---- Unknown/unused (should be always 0)
- ---- x--- Maybe SNES CPU/PPU reset (usually same as Port 01h.W.Bit1)
- ---- -x-- RAM at 9000h-9FFFh (0=Disable/Protect, 1=Enable/Unlock)
- ---- --x- Looks like maybe somehow NMI Related ? ;\or one of these is PC10-style
- ---- ---x Looks like NMI Enable ;/hardware-watchdog reload?
+ xxxx ---- Unknown/unused (should be always 0)
+ ---- x--- Maybe SNES CPU/PPU reset (usually same as Port 01h.W.Bit1)
+ ---- -x-- RAM at 9000h-9FFFh (0=Disable/Protect, 1=Enable/Unlock)
+ ---- --x- Looks like maybe somehow NMI Related ? ;\or one of these is PC10-style
+ ---- ---x Looks like NMI Enable ;/hardware-watchdog reload?
*/
m_wram_wp_flag = (data & 4) >> 2;
m_nmi_enable = data & 1;
@@ -545,13 +545,13 @@ WRITE8_MEMBER(nss_state::port_00_w)
WRITE8_MEMBER(nss_state::port_01_w)
{
/*
- x--- ---- Maybe SNES Joypad Enable? (0=Disable/Demo, 1=Enable/Game)
- -x-- ---- Unknown/unused (should be always 0)
- --x- ---- SNES Sound Mute (0=Normal, 1=Mute) (for optional mute in demo mode)
- ---x ---- Unknown ;from INST-ROM flag! (Lo/HiROM, 2-player, zapper, volume or so?)
- ---- xx-- Slot Select (0..2 for Slot 1..3) (mapping to both SNES and Z80)
- ---- --x- Maybe SNES CPU pause? (cleared on deposit coin to continue) (1=Run)
- ---- ---x Maybe SNES CPU/PPU reset? (0=Reset, 1=Run)
+ x--- ---- Maybe SNES Joypad Enable? (0=Disable/Demo, 1=Enable/Game)
+ -x-- ---- Unknown/unused (should be always 0)
+ --x- ---- SNES Sound Mute (0=Normal, 1=Mute) (for optional mute in demo mode)
+ ---x ---- Unknown ;from INST-ROM flag! (Lo/HiROM, 2-player, zapper, volume or so?)
+ ---- xx-- Slot Select (0..2 for Slot 1..3) (mapping to both SNES and Z80)
+ ---- --x- Maybe SNES CPU pause? (cleared on deposit coin to continue) (1=Run)
+ ---- ---x Maybe SNES CPU/PPU reset? (0=Reset, 1=Run)
*/
m_input_disabled = ((data & 0x80) >> 7) ^ 1;
spc700_set_volume(machine().device("spc700"),data & 0x20 ? 0.0 : 100.0);
@@ -570,32 +570,32 @@ WRITE8_MEMBER(nss_state::port_01_w)
WRITE8_MEMBER(nss_state::port_02_w)
{
/*
- x--- ---- OSD Clock ? (usually same as Bit6) ;\Chip Select when Bit6=Bit7 ?
- -x-- ---- OSD Clock ? (usually same as Bit7) ;/
- --x- ---- OSD Data Out (0=Low=Zero, 1=High=One)
- ---x ---- OSD Special (?) ... or just /CS ? (or software index DC3F/DD3F?)
- ---- x--- RTC /CLK (0=Low=Clock, 1=High=Idle) ;S-3520
- ---- -x-- RTC Data Out (0=Low=Zero, 1=High=One)
- ---- --x- RTC Direction (0=Low=Write, 1=High=Read)
- ---- ---x RTC /CS (0=Low/Select, 1=High/No)
+ x--- ---- OSD Clock ? (usually same as Bit6) ;\Chip Select when Bit6=Bit7 ?
+ -x-- ---- OSD Clock ? (usually same as Bit7) ;/
+ --x- ---- OSD Data Out (0=Low=Zero, 1=High=One)
+ ---x ---- OSD Special (?) ... or just /CS ? (or software index DC3F/DD3F?)
+ ---- x--- RTC /CLK (0=Low=Clock, 1=High=Idle) ;S-3520
+ ---- -x-- RTC Data Out (0=Low=Zero, 1=High=One)
+ ---- --x- RTC Direction (0=Low=Write, 1=High=Read)
+ ---- ---x RTC /CS (0=Low/Select, 1=High/No)
*/
-// printf("%02x\n",data & 0xf);
+// printf("%02x\n",data & 0xf);
ioport("RTC_OSD")->write(data, 0xff);
}
WRITE8_MEMBER(nss_state::port_03_w)
{
/*
- x--- ---- Layer SNES Enable? (used by token proc, see 7A46h) SNES?
- -x-- ---- Layer OSD Enable?
- --xx ---- Unknown/unused (should be always 0)
- ---- x--- LED Instructions (0=Off, 1=On) ;-glows in demo (prompt for INST button)
- ---- -x-- LED Game 3 (0=Off, 1=On) ;\
- ---- --x- LED Game 2 (0=Off, 1=On) ; blinked when enough credits inserted
- ---- ---x LED Game 1 (0=Off, 1=On) ;/
+ x--- ---- Layer SNES Enable? (used by token proc, see 7A46h) SNES?
+ -x-- ---- Layer OSD Enable?
+ --xx ---- Unknown/unused (should be always 0)
+ ---- x--- LED Instructions (0=Off, 1=On) ;-glows in demo (prompt for INST button)
+ ---- -x-- LED Game 3 (0=Off, 1=On) ;\
+ ---- --x- LED Game 2 (0=Off, 1=On) ; blinked when enough credits inserted
+ ---- ---x LED Game 1 (0=Off, 1=On) ;/
*/
-// popmessage("%02x",data);
+// popmessage("%02x",data);
}
WRITE8_MEMBER(nss_state::port_04_w)
diff --git a/src/mame/drivers/nwk-tr.c b/src/mame/drivers/nwk-tr.c
index f4f93f17a15..b95173afc30 100644
--- a/src/mame/drivers/nwk-tr.c
+++ b/src/mame/drivers/nwk-tr.c
@@ -711,13 +711,13 @@ void nwktr_state::machine_reset()
static const voodoo_config voodoo_intf =
{
- 2, // fbmem;
- 2,// tmumem0;
- 2,// tmumem1;
- "screen",// screen;
- "dsp",// cputag;
- voodoo_vblank_0,// vblank;
- NULL,// stall;
+ 2, // fbmem;
+ 2,// tmumem0;
+ 2,// tmumem1;
+ "screen",// screen;
+ "dsp",// cputag;
+ voodoo_vblank_0,// vblank;
+ NULL,// stall;
};
static MACHINE_CONFIG_START( nwktr, nwktr_state )
diff --git a/src/mame/drivers/pachifev.c b/src/mame/drivers/pachifev.c
index 10bea16902a..125556931a0 100644
--- a/src/mame/drivers/pachifev.c
+++ b/src/mame/drivers/pachifev.c
@@ -253,8 +253,8 @@ INPUT_PORTS_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/panicr.c b/src/mame/drivers/panicr.c
index 77f3a94b9be..bd83bde872b 100644
--- a/src/mame/drivers/panicr.c
+++ b/src/mame/drivers/panicr.c
@@ -304,7 +304,7 @@ WRITE8_MEMBER(panicr_state::panicr_output_w)
// d6, d7: play counter? (it only triggers on 1st coin)
coin_counter_w(machine(), 0, (data & 0x40) ? 1 : 0);
coin_counter_w(machine(), 1, (data & 0x80) ? 1 : 0);
-
+
// other bits: ?
}
diff --git a/src/mame/drivers/peplus.c b/src/mame/drivers/peplus.c
index bb749741987..47b790f06ad 100644
--- a/src/mame/drivers/peplus.c
+++ b/src/mame/drivers/peplus.c
@@ -583,41 +583,41 @@ READ8_MEMBER(peplus_state::peplus_watchdog_r)
READ8_MEMBER(peplus_state::peplus_input0_r)
{
/*
- PE+ bill validators have a dip switch setting to switch between ID-022 and ID-023 protocols.
+ PE+ bill validators have a dip switch setting to switch between ID-022 and ID-023 protocols.
Emulating IGT IDO22 Pulse Protocol (IGT Smoke 2.2)
- ID022 protocol requires a 20ms on/off pulse x times for denomination followed by a 50ms stop pulse.
- The DBV then waits for at least 3 toggling (ACK) pulses of alternating 20ms each from the game.
- If no toggling received within 200ms, the bill was rejected by the game (e.g. Max Credits reached).
- Once toggling received, the DBV stacks the bill and sends a 10ms stacked pulses.
+ ID022 protocol requires a 20ms on/off pulse x times for denomination followed by a 50ms stop pulse.
+ The DBV then waits for at least 3 toggling (ACK) pulses of alternating 20ms each from the game.
+ If no toggling received within 200ms, the bill was rejected by the game (e.g. Max Credits reached).
+ Once toggling received, the DBV stacks the bill and sends a 10ms stacked pulses.
Emulating IGT IDO23 Pulse Protocol (IGT 2.5)
- ID023 protocol requires a start pulse of 50ms ON followed by a 20ms pause. Next a 15-bit data stream
- is sent based on the country code and denomination (see table below). And finally a 90ms stop pulse.
- There is then a 200ms pause and the entire sequence is transmitted again two more times.
- The DBV then waits for the toggling much like the ID-022 protocol above, however ends with two 10ms
- stack pulses instead of one.
+ ID023 protocol requires a start pulse of 50ms ON followed by a 20ms pause. Next a 15-bit data stream
+ is sent based on the country code and denomination (see table below). And finally a 90ms stop pulse.
+ There is then a 200ms pause and the entire sequence is transmitted again two more times.
+ The DBV then waits for the toggling much like the ID-022 protocol above, however ends with two 10ms
+ stack pulses instead of one.
- Ticket handling has not been emulated.
+ Ticket handling has not been emulated.
- IDO23 Country Codes
+ IDO23 Country Codes
-------------------
- 0x07 = Canada
+ 0x07 = Canada
0x25 = USA
IDO23 USA 15-bit Data Samples:
- ---------+--------------+--------------+-----------+
- Bill Amt | Country Code | Denom Code | Checksum |
+ ---------+--------------+--------------+-----------+
+ Bill Amt | Country Code | Denom Code | Checksum |
---------+--------------+--------------+-----------+
$1 | 1 0 0 1 0 1 | 0 0 1 1 0 | 1 1 0 0 |
- $2 | 1 0 0 1 0 1 | 0 0 1 1 1 | 1 0 1 1 |
+ $2 | 1 0 0 1 0 1 | 0 0 1 1 1 | 1 0 1 1 |
$5 | 1 0 0 1 0 1 | 0 0 1 0 0 | 1 0 1 1 |
$10 | 1 0 0 1 0 1 | 0 0 1 0 1 | 1 0 1 0 |
$20 | 1 0 0 1 0 1 | 0 0 0 1 0 | 1 0 1 1 |
$50 | 1 0 0 1 0 1 | 0 0 0 0 0 | 1 0 1 0 |
$100 | 1 0 0 1 0 1 | 0 0 0 0 1 | 1 0 0 1 |
- Ticket | 1 0 0 1 0 1 | 0 0 0 1 1 | 1 0 1 0 |
- ---------+--------------+--------------+-----------+
+ Ticket | 1 0 0 1 0 1 | 0 0 0 1 1 | 1 0 1 0 |
+ ---------+--------------+--------------+-----------+
Direction Data
--------------
@@ -643,7 +643,7 @@ READ8_MEMBER(peplus_state::peplus_input0_r)
if (m_bv_protocol == 0) {
// ID-022
m_bv_denomination = id_022[m_bv_denomination];
-
+
if (m_bv_denomination == 0)
m_bv_state = 0x03; // $1 So Skip Credit Pulse
else
@@ -657,8 +657,8 @@ READ8_MEMBER(peplus_state::peplus_input0_r)
m_bv_state = 0x11;
}
-
- m_bv_cycles = curr_cycles;
+
+ m_bv_cycles = curr_cycles;
m_bv_pulse = 1;
m_bv_enable_count = 0;
}
@@ -682,7 +682,7 @@ READ8_MEMBER(peplus_state::peplus_input0_r)
m_bv_pulse = 1;
m_bv_denomination--;
-
+
if (m_bv_denomination == 0)
m_bv_state++; // Done with Credit Pulse
else
@@ -1130,7 +1130,7 @@ static INPUT_PORTS_START( peplus )
PORT_CONFSETTING( 0x04, "$20" )
PORT_CONFSETTING( 0x05, "$50" )
PORT_CONFSETTING( 0x06, "$100" )
-
+
PORT_START("BP")
PORT_CONFNAME( 0x1f, 0x00, "Bill Protocol" )
PORT_CONFSETTING( 0x00, "ID-022" )
diff --git a/src/mame/drivers/pingpong.c b/src/mame/drivers/pingpong.c
index 2e7bbb2afe5..6502e6d55ec 100644
--- a/src/mame/drivers/pingpong.c
+++ b/src/mame/drivers/pingpong.c
@@ -447,8 +447,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/polepos.c b/src/mame/drivers/polepos.c
index 2d443a7ca13..cd8237d435a 100644
--- a/src/mame/drivers/polepos.c
+++ b/src/mame/drivers/polepos.c
@@ -862,12 +862,12 @@ static const namco_interface namco_config =
1 /* stereo */
};
-const namco_06xx_config polepos_namco_06xx_intf =
+const namco_06xx_config polepos_namco_06xx_intf =
{
"maincpu", "51xx", "53xx", "52xx", "54xx"
};
-const namco_54xx_config polepos_namco_54xx_intf =
+const namco_54xx_config polepos_namco_54xx_intf =
{
"discrete", NODE_01
};
@@ -953,7 +953,7 @@ static const namco_51xx_interface namco_51xx_bl_intf =
}
};
-const namco_06xx_config topracern_namco_06xx_intf =
+const namco_06xx_config topracern_namco_06xx_intf =
{
"maincpu", "51xx", NULL, NULL, NULL
};
diff --git a/src/mame/drivers/pong.c b/src/mame/drivers/pong.c
index 9e2c75ebb47..a33588ec823 100644
--- a/src/mame/drivers/pong.c
+++ b/src/mame/drivers/pong.c
@@ -131,7 +131,7 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(256H, ic_f6b.Q)
NET_ALIAS(256HQ, ic_f6b.QQ)
- // vertical counter
+ // vertical counter
TTL_7493(ic_e8, hreset, ic_e8.QA, ic_e7a.QQ, ic_e7a.QQ) // e8, e9, d9b
TTL_7493(ic_e9, ic_e8.QD,ic_e9.QA, ic_e7a.QQ, ic_e7a.QQ) // e8, e9, d9b
TTL_74107(ic_d9b, ic_e9.QD, high, high, ic_e7a.Q)
@@ -149,11 +149,11 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(256VQ, ic_d9b.QQ)
- // hblank flip flop
+ // hblank flip flop
TTL_7400_NAND(ic_g5b, 16H, 64H)
- // the time critical one
+ // the time critical one
TTL_7400_NAND(ic_h5c, ic_h5b.Q, hresetQ)
TTL_7400_NAND(ic_h5b, ic_h5c.Q, ic_g5b.Q)
@@ -161,7 +161,7 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(hblankQ, ic_h5b.Q)
TTL_7400_NAND(hsyncQ, hblank, 32H)
- // vblank flip flop
+ // vblank flip flop
TTL_7402_NOR(ic_f5c, ic_f5d.Q, vreset)
TTL_7402_NOR(ic_f5d, ic_f5c.Q, 16V)
@@ -172,7 +172,7 @@ static NETLIST_START(pong_schematics)
TTL_7410_NAND(ic_g5a, vblank, 4V, ic_h5a.Q)
NET_ALIAS(vsyncQ, ic_g5a.Q)
- // move logic
+ // move logic
TTL_7400_NAND(ic_e1d, hit_sound, ic_e1c.Q)
TTL_7400_NAND(ic_e1c, ic_f1.QC, ic_f1.QD)
@@ -201,7 +201,7 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(Aa, ic_h4c.Q)
NET_ALIAS(Ba, ic_h4b.Q)
- // hvid circuit
+ // hvid circuit
TTL_7400_NAND(hball_resetQ, Serve, attractQ)
@@ -212,19 +212,19 @@ static NETLIST_START(pong_schematics)
TTL_7420_NAND(ic_h6b, ic_g6b.Q, ic_h7.RC, ic_g7.QC, ic_g7.QD)
NET_ALIAS(hvidQ, ic_h6b.Q)
- // vvid circuit
+ // vvid circuit
TTL_9316(ic_b3, hsyncQ, high, vblankQ, high, ic_b2b.Q, a6, b6, c6, d6)
TTL_9316(ic_a3, hsyncQ, ic_b3.RC, high, high, ic_b2b.Q, low, low, low, low)
TTL_7400_NAND(ic_b2b, ic_a3.RC, ic_b3.RC)
TTL_7410_NAND(ic_e2b, ic_a3.RC, ic_b3.QC, ic_b3.QD)
NET_ALIAS(vvidQ, ic_e2b.Q)
- TTL_7404_INVERT(vvid, vvidQ) // D2D
+ TTL_7404_INVERT(vvid, vvidQ) // D2D
NET_ALIAS(vpos256, ic_a3.RC)
NET_ALIAS(vpos32, ic_a3.QB)
NET_ALIAS(vpos16, ic_a3.QA)
- // vball ctrl circuit
+ // vball ctrl circuit
TTL_7450_ANDORINVERT(ic_a6a, b1, 256HQ, b2, 256H)
TTL_7450_ANDORINVERT(ic_a6b, c1, 256HQ, c2, 256H)
@@ -233,7 +233,7 @@ static NETLIST_START(pong_schematics)
TTL_7474(ic_a5b, hit, ic_a6a, attractQ, high)
TTL_7474(ic_a5a, hit, ic_a6b, attractQ, high)
TTL_7474(ic_b5a, hit, ic_b6b, attractQ, high)
- TTL_74107(ic_h2x, vblank, vvid, vvid, hitQ) // two marked at position h2a ==> this h2x
+ TTL_74107(ic_h2x, vblank, vvid, vvid, hitQ) // two marked at position h2a ==> this h2x
TTL_7486_XOR(ic_a4c, ic_a5b.Q, ic_h2x.Q)
TTL_7486_XOR(ic_a4b, ic_a5a.Q, ic_h2x.Q)
@@ -248,7 +248,7 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(c6, ic_b4.SC)
NET_ALIAS(d6, ic_b4.SD)
- // serve monoflop
+ // serve monoflop
TTL_7404_INVERT(f4_trig, rstspeed)
NE555N_MSTABLE(ic_f4_serve, f4_trig, NC)
NETDEV_PARAM(ic_f4_serve.R, RES_K(330))
@@ -260,15 +260,15 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(Serve, ic_b5b_serve.QQ)
NET_ALIAS(ServeQ, ic_b5b_serve.Q)
- // score logic
+ // score logic
TTL_7474(ic_h3a, 4H, 128H, high, attractQ)
- // sound logic
+ // sound logic
TTL_7474(ic_c2a, vpos256, high, hitQ, high)
TTL_74107(ic_f3_topbot, vblank, vvid, vvidQ, ServeQ)
NE555N_MSTABLE(ic_g4_sc, MissQ, NC)
- NET_ALIAS(SC, ic_g4_sc.Q) // monoflop with NE555 determines score sound
+ NET_ALIAS(SC, ic_g4_sc.Q) // monoflop with NE555 determines score sound
NETDEV_PARAM(ic_g4_sc.R, RES_K(220))
NETDEV_PARAM(ic_g4_sc.C, CAP_U(1))
@@ -282,7 +282,7 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(sound, ic_c1b.Q)
- // paddle1 logic 1
+ // paddle1 logic 1
NE555N_MSTABLE(ic_b9, 256VQ, P1)
NETDEV_PARAM(ic_b9.R, RES_K(90))
@@ -299,7 +299,7 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(c1, ic_b8.QC)
NET_ALIAS(d1, ic_b8.QD)
- // paddle1 logic 2
+ // paddle1 logic 2
NE555N_MSTABLE(ic_a9, 256VQ, P2)
NETDEV_PARAM(ic_a9.R, RES_K(90))
@@ -316,7 +316,7 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(c2, ic_a8.QC)
NET_ALIAS(d2, ic_a8.QD)
- // C5-EN Logic
+ // C5-EN Logic
TTL_7404_INVERT(ic_e3a, 128H)
TTL_7427_NOR( ic_e3b, 256H, 64H, ic_e3a.Q)
@@ -327,14 +327,14 @@ static NETLIST_START(pong_schematics)
TTL_7425_NOR(ic_f2a, ic_g1a.Q, 64V, 128V, ic_d2c.Q)
NET_ALIAS(c5-en, ic_f2a.Q)
- // Score logic ...
+ // Score logic ...
TTL_7402_NOR(ic_f5b, L, Missed)
TTL_7490(ic_c7, ic_f5b, SRST, SRST, low, low)
TTL_74107(ic_c8a, ic_c7.QD, high, high, SRSTQ)
NETDEV_SWITCH2(sw1a, high, ic_c7.QC)
NETDEV_PARAM(sw1a.POS, 0)
- TTL_7410_NAND(ic_d8a, ic_c7.QA, sw1a.Q, ic_c8a.Q) // would be nand2 for 11 instead of 15 points, need a switch dev!
+ TTL_7410_NAND(ic_d8a, ic_c7.QA, sw1a.Q, ic_c8a.Q) // would be nand2 for 11 instead of 15 points, need a switch dev!
NET_ALIAS(StopG1Q, ic_d8a.Q)
NET_ALIAS(score1_1, ic_c7.QA)
@@ -349,7 +349,7 @@ static NETLIST_START(pong_schematics)
TTL_74107(ic_c8b, ic_d7.QD, high, high, SRSTQ)
NETDEV_SWITCH2(sw1b, high, ic_d7.QC)
NETDEV_PARAM(sw1b.POS, 0)
- TTL_7410_NAND(ic_d8b, ic_d7.QA, sw1b.Q, ic_c8b.Q) // would be nand2 for 11 instead of 15 points, need a switch dev!
+ TTL_7410_NAND(ic_d8b, ic_d7.QA, sw1b.Q, ic_c8b.Q) // would be nand2 for 11 instead of 15 points, need a switch dev!
NET_ALIAS(StopG2Q, ic_d8b.Q)
NET_ALIAS(score2_1, ic_d7.QA)
@@ -359,7 +359,7 @@ static NETLIST_START(pong_schematics)
NET_ALIAS(score2_10, ic_c8b.Q)
NET_ALIAS(score2_10Q, ic_c8b.QQ)
- // Score display
+ // Score display
TTL_74153(ic_d6a, score1_10Q, score1_4, score2_10Q, score2_4, 32H, 64H, low)
TTL_74153(ic_d6b, score1_10Q, score1_8, score2_10Q, score2_8, 32H, 64H, low)
@@ -397,13 +397,13 @@ static NETLIST_START(pong_schematics)
TTL_7430_NAND(ic_d3, ic_d4a, ic_d5c, ic_c4c, ic_d5a, ic_d4c, ic_d4b, ic_d5b, high)
NET_ALIAS(score, ic_d3.Q) //FIXME
- // net
+ // net
TTL_74107(ic_f3b, clk, 256H, 256HQ, high)
TTL_7400_NAND(ic_g3b, ic_f3b.QQ, 256H)
TTL_7427_NOR(ic_g2b, ic_g3b.Q, vblank, 4V)
NET_ALIAS(net, ic_g2b.Q)
- // video
+ // video
TTL_7402_NOR(ic_g1b, hvidQ, vvidQ)
TTL_7425_NOR(ic_f2b, ic_g1b.Q, pad1, pad2, net)
TTL_7404_INVERT(ic_e4e, ic_f2b.Q)
@@ -675,7 +675,7 @@ static INPUT_PORTS_START( pong )
PORT_START("VR2")
PORT_ADJUSTER( 63, "VR2 - 50k, Paddle 2 adjustment" ) PORT_CHANGED_MEMBER(DEVICE_SELF, pong_state, input_changed, IC_VR2)
//PORT_START("GATESPEED")
- //PORT_ADJUSTER( 100, "Logic Gate Delay" ) PORT_MINMAX(10, 200) PORT_CHANGED_MEMBER(DEVICE_SELF, pong_state, input_changed, IC_GATEDELAY)
+ //PORT_ADJUSTER( 100, "Logic Gate Delay" ) PORT_MINMAX(10, 200) PORT_CHANGED_MEMBER(DEVICE_SELF, pong_state, input_changed, IC_GATEDELAY)
INPUT_PORTS_END
diff --git a/src/mame/drivers/qdrmfgp.c b/src/mame/drivers/qdrmfgp.c
index 3bdcf2f0501..b84dfa6b0b3 100644
--- a/src/mame/drivers/qdrmfgp.c
+++ b/src/mame/drivers/qdrmfgp.c
@@ -665,10 +665,10 @@ void qdrmfgp_state::machine_reset()
* Machine driver
*
*************************************/
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
@@ -707,10 +707,10 @@ static MACHINE_CONFIG_START( qdrmfgp, qdrmfgp_state )
MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
MACHINE_CONFIG_END
-static const ide_config qdrmfgp2_ide_intf =
+static const ide_config qdrmfgp2_ide_intf =
{
- gp2_ide_interrupt,
- NULL,
+ gp2_ide_interrupt,
+ NULL,
0
};
static MACHINE_CONFIG_START( qdrmfgp2, qdrmfgp_state )
diff --git a/src/mame/drivers/queen.c b/src/mame/drivers/queen.c
index 81aabc6722b..d98349271af 100644
--- a/src/mame/drivers/queen.c
+++ b/src/mame/drivers/queen.c
@@ -672,10 +672,10 @@ void queen_state::machine_reset()
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/retofinv.c b/src/mame/drivers/retofinv.c
index 4e216d39573..d463414c6c3 100644
--- a/src/mame/drivers/retofinv.c
+++ b/src/mame/drivers/retofinv.c
@@ -350,8 +350,8 @@ static INTERRUPT_GEN( sub_vblank_irq )
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
@@ -400,7 +400,7 @@ static MACHINE_CONFIG_START( retofinv, retofinv_state )
MCFG_SOUND_ADD("sn1", SN76496_NEW, 18432000/6)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
MCFG_SOUND_CONFIG(psg_intf)
-
+
MCFG_SOUND_ADD("sn2", SN76496_NEW, 18432000/6)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
MCFG_SOUND_CONFIG(psg_intf)
diff --git a/src/mame/drivers/savquest.c b/src/mame/drivers/savquest.c
index 6eb91074114..c7a7ece6e0d 100644
--- a/src/mame/drivers/savquest.c
+++ b/src/mame/drivers/savquest.c
@@ -537,10 +537,10 @@ void savquest_state::machine_reset()
machine().root_device().membank("bank1")->set_base(machine().root_device().memregion("bios")->base() + 0x20000);
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/sbugger.c b/src/mame/drivers/sbugger.c
index 9997b8348d6..2f3954343e4 100644
--- a/src/mame/drivers/sbugger.c
+++ b/src/mame/drivers/sbugger.c
@@ -228,8 +228,8 @@ static I8156_INTERFACE(i8156_intf)
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
@@ -265,7 +265,7 @@ static MACHINE_CONFIG_START( sbugger, sbugger_state )
MCFG_SOUND_ADD("sn76489.1", SN76489_NEW, 3000000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MCFG_SOUND_CONFIG(psg_intf)
-
+
MCFG_SOUND_ADD("sn76489.2", SN76489_NEW, 3000000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MCFG_SOUND_CONFIG(psg_intf)
diff --git a/src/mame/drivers/seattle.c b/src/mame/drivers/seattle.c
index 5492bd59a13..bde28244997 100644
--- a/src/mame/drivers/seattle.c
+++ b/src/mame/drivers/seattle.c
@@ -2520,22 +2520,22 @@ static const mips3_config r5000_config =
SYSTEM_CLOCK /* system clock rate */
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- "maincpu",
+ ide_interrupt,
+ "maincpu",
AS_PROGRAM
};
static const voodoo_config voodoo_intf =
{
- 2, // fbmem;
- 4,// tmumem0;
- 0,// tmumem1;
- "screen",// screen;
- "maincpu",// cputag;
- vblank_assert,// vblank;
- voodoo_stall,// stall;
+ 2, // fbmem;
+ 4,// tmumem0;
+ 0,// tmumem1;
+ "screen",// screen;
+ "maincpu",// cputag;
+ vblank_assert,// vblank;
+ voodoo_stall,// stall;
};
static MACHINE_CONFIG_START( seattle_common, seattle_state )
@@ -2579,7 +2579,7 @@ static MACHINE_CONFIG_DERIVED( seattle150, seattle_common )
MCFG_CPU_PROGRAM_MAP(seattle_map)
MACHINE_CONFIG_END
-static const smc91c9x_config ethernet_intf =
+static const smc91c9x_config ethernet_intf =
{
ethernet_interrupt
};
@@ -2604,13 +2604,13 @@ MACHINE_CONFIG_END
static const voodoo_config voodoo_2_intf =
{
- 2, // fbmem;
- 4,// tmumem0;
- 4,// tmumem1;
- "screen",// screen;
- "maincpu",// cputag;
- vblank_assert,// vblank;
- voodoo_stall,// stall;
+ 2, // fbmem;
+ 4,// tmumem0;
+ 4,// tmumem1;
+ "screen",// screen;
+ "maincpu",// cputag;
+ vblank_assert,// vblank;
+ voodoo_stall,// stall;
};
static MACHINE_CONFIG_DERIVED( flagstaff, seattle_common )
diff --git a/src/mame/drivers/segag80r.c b/src/mame/drivers/segag80r.c
index 44e4419927a..b8818607630 100644
--- a/src/mame/drivers/segag80r.c
+++ b/src/mame/drivers/segag80r.c
@@ -819,8 +819,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/segas16b.c b/src/mame/drivers/segas16b.c
index e28163cc728..34e3291c856 100644
--- a/src/mame/drivers/segas16b.c
+++ b/src/mame/drivers/segas16b.c
@@ -7123,7 +7123,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( isgsm, system16b, isgsm_state )
MCFG_CPU_ADD("maincpu", M68000, 16000000) // no obvious CPU, but seems to be clocked faster than an original system16 based on the boot times
MCFG_CPU_PROGRAM_MAP(isgsm_map)
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
-
+
MACHINE_CONFIG_END
DRIVER_INIT_MEMBER(isgsm_state,isgsm)
diff --git a/src/mame/drivers/segas32.c b/src/mame/drivers/segas32.c
index 8ee1713e490..1fed4c3430e 100644
--- a/src/mame/drivers/segas32.c
+++ b/src/mame/drivers/segas32.c
@@ -4292,7 +4292,7 @@ DRIVER_INIT_MEMBER(segas32_state,f1lap)
machine().device("maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0x800000, 0x800fff, read16_delegate(FUNC(segas32_state::dual_pcb_comms_r),this), write16_delegate(FUNC(segas32_state::dual_pcb_comms_w),this));
machine().device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0x801000, 0x801003, read16_delegate(FUNC(segas32_state::dual_pcb_masterslave),this));
-// machine().device("maincpu")->memory().space(AS_PROGRAM)->install_write_handler(0x800048, 0x800049, write16_delegate(FUNC(segas32_state::f1en_comms_echo_w),this));
+// machine().device("maincpu")->memory().space(AS_PROGRAM)->install_write_handler(0x800048, 0x800049, write16_delegate(FUNC(segas32_state::f1en_comms_echo_w),this));
m_system32_prot_vblank = f1lap_fd1149_vblank;
m_sw1_output = f1lap_sw1_output;
diff --git a/src/mame/drivers/senjyo.c b/src/mame/drivers/senjyo.c
index a1c3b720192..b8094121fd7 100644
--- a/src/mame/drivers/senjyo.c
+++ b/src/mame/drivers/senjyo.c
@@ -555,8 +555,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/sfcbox.c b/src/mame/drivers/sfcbox.c
index 5d1a041a169..3217dfd26f8 100644
--- a/src/mame/drivers/sfcbox.c
+++ b/src/mame/drivers/sfcbox.c
@@ -196,14 +196,14 @@ ADDRESS_MAP_END
WRITE8_MEMBER( sfcbox_state::port_80_w )
{
/*
- x--- ---- (often same as bit5)
- -x-- ---- Unknown/unused
- --x- ---- ?? PLENTY used (often same as bit7)
- ---x ---- ?? pulsed while [C094] is nonzero (0370h timer0 steps)
- ---- x--- Unknown/unused
- ---- -x-- SNES Transfer DATA to SNES (Bit1 of WRIO/RDIO on SNES side)
- ---- --x- SNES Transfer CLOCK to SNES (Bit5 of WRIO/RDIO on SNES side)
- ---- ---x SNES Transfer STAT to SNES (Bit2 of WRIO/RDIO on SNES side)
+ x--- ---- (often same as bit5)
+ -x-- ---- Unknown/unused
+ --x- ---- ?? PLENTY used (often same as bit7)
+ ---x ---- ?? pulsed while [C094] is nonzero (0370h timer0 steps)
+ ---- x--- Unknown/unused
+ ---- -x-- SNES Transfer DATA to SNES (Bit1 of WRIO/RDIO on SNES side)
+ ---- --x- SNES Transfer CLOCK to SNES (Bit5 of WRIO/RDIO on SNES side)
+ ---- ---x SNES Transfer STAT to SNES (Bit2 of WRIO/RDIO on SNES side)
*/
snes_ram[WRIO] = ((data & 4) >> 1) | (snes_ram[WRIO] & ~0x02); // DATA
snes_ram[WRIO] = ((data & 2) << 4) | (snes_ram[WRIO] & ~0x20); // CLOCK
@@ -214,14 +214,14 @@ WRITE8_MEMBER( sfcbox_state::port_80_w )
READ8_MEMBER( sfcbox_state::port_81_r )
{
/*
- x--- ---- Vblank, Vsync, or Whatever flag (must toggle on/off at whatever speed)
- -x-- ---- Int1 Request (Joypad is/was accessed by SNES or so?) (0=IRQ, 1=No)
- --x- ---- Unknown/unused ;/(for "joy2/slot1" or so, use [A0].4-5)
- ---x ---- Unknown/unused ;\joy1/slot0 or so, used by an UNUSED function (08A0h)
- ---- x--- Boot mode or so (maybe a jumper, or watchdog-flag, or Bit0 of WRIO/RDIO?)
- ---- -x-- SNES Transfer DATA from SNES (Bit4 of WRIO/RDIO on SNES side)
- ---- --x- SNES Transfer ACK from SNES (Bit3 of WRIO/RDIO on SNES side)
- ---- ---x Int0 Request (Coin-Input, Low for 44ms..80ms) (0=IRQ, 1=No)
+ x--- ---- Vblank, Vsync, or Whatever flag (must toggle on/off at whatever speed)
+ -x-- ---- Int1 Request (Joypad is/was accessed by SNES or so?) (0=IRQ, 1=No)
+ --x- ---- Unknown/unused ;/(for "joy2/slot1" or so, use [A0].4-5)
+ ---x ---- Unknown/unused ;\joy1/slot0 or so, used by an UNUSED function (08A0h)
+ ---- x--- Boot mode or so (maybe a jumper, or watchdog-flag, or Bit0 of WRIO/RDIO?)
+ ---- -x-- SNES Transfer DATA from SNES (Bit4 of WRIO/RDIO on SNES side)
+ ---- --x- SNES Transfer ACK from SNES (Bit3 of WRIO/RDIO on SNES side)
+ ---- ---x Int0 Request (Coin-Input, Low for 44ms..80ms) (0=IRQ, 1=No)
*/
UINT8 res;
@@ -285,11 +285,11 @@ static ADDRESS_MAP_START( sfcbox_io, AS_IO, 8, sfcbox_state )
AM_RANGE(0x00, 0x3f) AM_RAM // internal i/o
AM_RANGE(0x80, 0x80) AM_READ_PORT("KEY") AM_WRITE(port_80_w) // Keyswitch and Button Inputs / SNES Transfer and Misc Output
AM_RANGE(0x81, 0x81) AM_READWRITE(port_81_r,port_81_w) // SNES Transfer and Misc Input / Misc Output
-// AM_RANGE(0x82, 0x82) // Unknown/unused
+// AM_RANGE(0x82, 0x82) // Unknown/unused
AM_RANGE(0x83, 0x83) AM_READWRITE(port_83_r,port_83_w) // Joypad Input/Status / Joypad Output/Control
-// AM_RANGE(0x84, 0x84) // Joypad 1, MSB (1st 8 bits) (eg. Bit7=ButtonB, 0=Low=Pressed)
-// AM_RANGE(0x85, 0x85) // Joypad 1, LSB (2nd 8 bits) (eg. Bit0=LSB of ID, 0=Low=One)
-// AM_RANGE(0x86, 0x86) // Joypad 2, MSB (1st 8 bits) (eg. Bit7=ButtonB, 0=Low=Pressed)
+// AM_RANGE(0x84, 0x84) // Joypad 1, MSB (1st 8 bits) (eg. Bit7=ButtonB, 0=Low=Pressed)
+// AM_RANGE(0x85, 0x85) // Joypad 1, LSB (2nd 8 bits) (eg. Bit0=LSB of ID, 0=Low=One)
+// AM_RANGE(0x86, 0x86) // Joypad 2, MSB (1st 8 bits) (eg. Bit7=ButtonB, 0=Low=Pressed)
// AM_RANGE(0x87, 0x87) // Joypad 2, LSB (2nd 8 bits) (eg. Bit0=LSB of ID, 0=Low=One)
AM_RANGE(0xa0, 0xa0) AM_READ_PORT("RTC_R") AM_WRITE_PORT("RTC_W") // Real Time Clock
AM_RANGE(0xc0, 0xc0) AM_WRITE(snes_map_0_w) // SNES Mapping Register 0
@@ -500,8 +500,8 @@ static MACHINE_CONFIG_DERIVED( sfcbox, snes )
MCFG_SCREEN_ADD("osd", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
-// MCFG_SCREEN_SIZE(24*12+22, 12*18+22)
-// MCFG_SCREEN_VISIBLE_AREA(0*8, 24*12-1, 0*8, 12*18-1)
+// MCFG_SCREEN_SIZE(24*12+22, 12*18+22)
+// MCFG_SCREEN_VISIBLE_AREA(0*8, 24*12-1, 0*8, 12*18-1)
MCFG_SCREEN_SIZE(24*16+22, 12*16+22)
MCFG_SCREEN_VISIBLE_AREA(0*8, 24*16-1, 0*8, 12*16-1)
MCFG_SCREEN_UPDATE_DRIVER(sfcbox_state,screen_update)
diff --git a/src/mame/drivers/sg1000a.c b/src/mame/drivers/sg1000a.c
index 8595deca2f0..e9bf7b9292b 100644
--- a/src/mame/drivers/sg1000a.c
+++ b/src/mame/drivers/sg1000a.c
@@ -271,8 +271,8 @@ static I8255_INTERFACE( ppi8255_intf )
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/spaceg.c b/src/mame/drivers/spaceg.c
index e552ee114fa..2288c6931cb 100644
--- a/src/mame/drivers/spaceg.c
+++ b/src/mame/drivers/spaceg.c
@@ -405,8 +405,8 @@ INPUT_PORTS_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
@@ -445,15 +445,15 @@ static MACHINE_CONFIG_START( spaceg, spaceg_state )
// MCFG_SOUND_ADD("sn1", SN76496_NEW, 15468480/4)
// MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
-// MCFG_SOUND_CONFIG(psg_intf)
+// MCFG_SOUND_CONFIG(psg_intf)
// MCFG_SOUND_ADD("sn2", SN76496_NEW, 15468480/4)
// MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
-// MCFG_SOUND_CONFIG(psg_intf)
+// MCFG_SOUND_CONFIG(psg_intf)
// MCFG_SOUND_ADD("sn3", SN76496_NEW, 15468480/4)
// MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
-// MCFG_SOUND_CONFIG(psg_intf)
+// MCFG_SOUND_CONFIG(psg_intf)
// MCFG_DAC_ADD("dac")
// MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
diff --git a/src/mame/drivers/spectra.c b/src/mame/drivers/spectra.c
index e53069a93f9..9428a1034f9 100644
--- a/src/mame/drivers/spectra.c
+++ b/src/mame/drivers/spectra.c
@@ -1,5 +1,5 @@
/******************************************************************************************
- Pinball
+ Pinball
Valley Spectra IV
-----------------
Rotating game, like Midway's "Rotation VIII".
diff --git a/src/mame/drivers/sprcros2.c b/src/mame/drivers/sprcros2.c
index 945007ca35b..ab0e6cccd63 100644
--- a/src/mame/drivers/sprcros2.c
+++ b/src/mame/drivers/sprcros2.c
@@ -233,8 +233,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mame/drivers/subsino2.c b/src/mame/drivers/subsino2.c
index bda84f70a5b..38281c5f06b 100644
--- a/src/mame/drivers/subsino2.c
+++ b/src/mame/drivers/subsino2.c
@@ -900,10 +900,10 @@ static TIMER_DEVICE_CALLBACK( h8_timer_irq )
WRITE16_MEMBER(subsino2_state::bishjan_sel_w)
{
/*
- sound writes in service mode:
- 01 88 04 00 (coin in)
- 02 89 04 0v (v = voice = 0..3)
- */
+ sound writes in service mode:
+ 01 88 04 00 (coin in)
+ 02 89 04 0v (v = voice = 0..3)
+ */
if (ACCESSING_BITS_8_15)
m_bishjan_sel = data >> 8;
}
diff --git a/src/mame/drivers/suna8.c b/src/mame/drivers/suna8.c
index 90c54115524..cbdd8742c5b 100644
--- a/src/mame/drivers/suna8.c
+++ b/src/mame/drivers/suna8.c
@@ -706,7 +706,7 @@ WRITE8_MEMBER(suna8_state::brickzn_prot_w)
m_spritebank = (data >> 1) & 1;
logerror("CPU #0 - PC %04X: protection_val = %02X\n",space.device().safe_pc(),data);
-// if (data & ~0x03) logerror("CPU #0 - PC %04X: unknown spritebank bits: %02X\n",space.device().safe_pc(),data);
+// if (data & ~0x03) logerror("CPU #0 - PC %04X: unknown spritebank bits: %02X\n",space.device().safe_pc(),data);
}
/*
diff --git a/src/mame/drivers/taitogn.c b/src/mame/drivers/taitogn.c
index 87a7b102163..01c5cf818c9 100644
--- a/src/mame/drivers/taitogn.c
+++ b/src/mame/drivers/taitogn.c
@@ -938,10 +938,10 @@ static void spu_irq(device_t *device, UINT32 data)
}
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- NULL,
- NULL,
+ NULL,
+ NULL,
0
};
diff --git a/src/mame/drivers/taitotz.c b/src/mame/drivers/taitotz.c
index 986ceefd6ce..784764b70cf 100644
--- a/src/mame/drivers/taitotz.c
+++ b/src/mame/drivers/taitotz.c
@@ -373,7 +373,7 @@ struct taitotz_polydata
int specular_r, specular_g, specular_b;
};
-struct PLANE
+struct PLANE
{
float x, y, z, d;
};
@@ -2470,10 +2470,10 @@ static const tlcs900_interface taitotz_tlcs900_interface =
DEVCB_DRIVER_MEMBER(taitotz_state, tlcs900_port_write),
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/taitowlf.c b/src/mame/drivers/taitowlf.c
index ff6a918f143..0074351a509 100644
--- a/src/mame/drivers/taitowlf.c
+++ b/src/mame/drivers/taitowlf.c
@@ -618,10 +618,10 @@ void taitowlf_state::palette_init()
}
#endif
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/techno.c b/src/mame/drivers/techno.c
index cb804fb69db..7149302d636 100644
--- a/src/mame/drivers/techno.c
+++ b/src/mame/drivers/techno.c
@@ -69,10 +69,10 @@ ADDRESS_MAP_END
//static ADDRESS_MAP_START( techno_sub_map, AS_IO, 8, techno_state )
// no ram here, must be internal to the cpu
-// AM_RANGE(0x0000, 0x3fff) AM_READ(rd_r) // to TKY2016A audio processor which has its own 3.58MHz clock
-// AM_RANGE(0x4000, 0x7fff) AM_WRITE(wr_w) // A11=LED;A12=WR2 (DAC) ;A13=WR1 (TKY2016A as above)
-// AM_RANGE(0x4000, 0xbfff) AM_ROM // 4000-7FFF is same as 8000-BFFF; 4x 16k ROMS bankswitched
-// AM_RANGE(0xc000, 0xffff) AM_ROM // another 16k ROM
+// AM_RANGE(0x0000, 0x3fff) AM_READ(rd_r) // to TKY2016A audio processor which has its own 3.58MHz clock
+// AM_RANGE(0x4000, 0x7fff) AM_WRITE(wr_w) // A11=LED;A12=WR2 (DAC) ;A13=WR1 (TKY2016A as above)
+// AM_RANGE(0x4000, 0xbfff) AM_ROM // 4000-7FFF is same as 8000-BFFF; 4x 16k ROMS bankswitched
+// AM_RANGE(0xc000, 0xffff) AM_ROM // another 16k ROM
//ADDRESS_MAP_END
WRITE16_MEMBER( techno_state::disp1_w )
diff --git a/src/mame/drivers/ttchamp.c b/src/mame/drivers/ttchamp.c
index 3ce896b7b2f..b419a787ba0 100644
--- a/src/mame/drivers/ttchamp.c
+++ b/src/mame/drivers/ttchamp.c
@@ -73,12 +73,12 @@ public:
{
return m_peno_mainram[offset];
}
-
+
DECLARE_WRITE16_MEMBER( penocup_mainram_w )
{
offset &=0x7fff;
COMBINE_DATA(&m_peno_mainram[offset]);
-// COMBINE_DATA(&m_peno_vram[offset]);
+// COMBINE_DATA(&m_peno_vram[offset]);
}
@@ -93,7 +93,7 @@ void ttchamp_state::video_start()
m_peno_vram = (UINT16*)auto_alloc_array_clear(machine(), UINT16, 0x10000/2);
m_peno_mainram = (UINT16*)auto_alloc_array_clear(machine(), UINT16, 0x10000/2);
-
+
}
@@ -173,7 +173,7 @@ static ADDRESS_MAP_START( ttchamp_map, AS_PROGRAM, 16, ttchamp_state )
/* 0x10000 - 0x1ffff is where it writes most image stuff, but other address get written to 0 where the left edge of 'sprites' would be? why? bad code execution, or some kind of write address based blitter?
see for example the lines written down the side of where the (not displayed) CREDIT text would go, as well as beside the actual credit number.. also ingame if you can get it to start
*/
-
+
AM_RANGE(0x10000, 0xfffff) AM_WRITE(penocup_vid_w)
// how are these banked? what are the bank sizes? data needed for startup is at 0x20000-0x2ffff (strings) and 0x30000-0x3ffff (code) the rest seems to be graphics..
diff --git a/src/mame/drivers/tumbleb.c b/src/mame/drivers/tumbleb.c
index c4b7e4c5ba8..abb8cb4260a 100644
--- a/src/mame/drivers/tumbleb.c
+++ b/src/mame/drivers/tumbleb.c
@@ -3377,7 +3377,7 @@ GAME( 1994, suprtrio, 0, suprtrio, suprtrio, tumbleb_state, suprtrio, R
GAME( 1996, fncywld, 0, fncywld, fncywld, tumbleb_state, fncywld, ROT0, "Unico", "Fancy World - Earth of Crisis" , GAME_SUPPORTS_SAVE ) // game says 1996, testmode 1995?
// Unico - Magic Purple almost certainly goes here
-/* First Amusement / Mijin / SemiCom hardware (MCU protected) */
+/* First Amusement / Mijin / SemiCom hardware (MCU protected) */
GAME( 1994, metlsavr, 0, metlsavr, metlsavr, tumbleb_state, chokchok, ROT0, "First Amusement", "Metal Saver", GAME_SUPPORTS_SAVE )
GAME( 1994, magicbal, 0, metlsavr, magicbal, tumbleb_state, chokchok, ROT0, "SemiCom", "Magicball Fighting (Korea)", GAME_SUPPORTS_SAVE) // also still has the Metal Saver (c)1994 First Amusement tiles in the GFX
GAME( 1995, chokchok, 0, cookbib, chokchok, tumbleb_state, chokchok, ROT0, "SemiCom", "Choky! Choky!", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
diff --git a/src/mame/drivers/twinkle.c b/src/mame/drivers/twinkle.c
index 48173504381..c93c1b765e6 100644
--- a/src/mame/drivers/twinkle.c
+++ b/src/mame/drivers/twinkle.c
@@ -898,10 +898,10 @@ static const rtc65271_interface twinkle_rtc =
DEVCB_NULL
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/vegas.c b/src/mame/drivers/vegas.c
index 47399eebb07..14ff7b1720d 100644
--- a/src/mame/drivers/vegas.c
+++ b/src/mame/drivers/vegas.c
@@ -442,7 +442,7 @@
-struct dynamic_address
+struct dynamic_address
{
offs_t start;
offs_t end;
@@ -2222,27 +2222,27 @@ static const mips3_config r5000_config =
SYSTEM_CLOCK /* system clock rate */
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- "maincpu",
+ ide_interrupt,
+ "maincpu",
AS_PROGRAM
};
-static const smc91c9x_config ethernet_intf =
+static const smc91c9x_config ethernet_intf =
{
ethernet_interrupt
};
static const voodoo_config voodoo_intf =
{
- 2, // fbmem;
- 4,// tmumem0;
- 4,// tmumem1;
- "screen",// screen;
- "maincpu",// cputag;
- vblank_assert,// vblank;
- NULL,// stall;
+ 2, // fbmem;
+ 4,// tmumem0;
+ 4,// tmumem1;
+ "screen",// screen;
+ "maincpu",// cputag;
+ vblank_assert,// vblank;
+ NULL,// stall;
};
static MACHINE_CONFIG_START( vegascore, vegas_state )
@@ -2292,13 +2292,13 @@ MACHINE_CONFIG_END
static const voodoo_config vegasban_voodoo_intf =
{
- 16, // fbmem;
- 0,// tmumem0;
- 0,// tmumem1;
- "screen",// screen;
- "maincpu",// cputag;
- vblank_assert,// vblank;
- NULL,// stall;
+ 16, // fbmem;
+ 0,// tmumem0;
+ 0,// tmumem1;
+ "screen",// screen;
+ "maincpu",// cputag;
+ vblank_assert,// vblank;
+ NULL,// stall;
};
static MACHINE_CONFIG_DERIVED( vegasban, vegascore )
MCFG_FRAGMENT_ADD(dcs2_audio_2104)
@@ -2307,7 +2307,7 @@ static MACHINE_CONFIG_DERIVED( vegasban, vegascore )
MCFG_CPU_PROGRAM_MAP(vegas_map_32mb)
MCFG_DEVICE_REMOVE("voodoo")
- MCFG_3DFX_VOODOO_BANSHEE_ADD("voodoo", STD_VOODOO_BANSHEE_CLOCK, vegasban_voodoo_intf)
+ MCFG_3DFX_VOODOO_BANSHEE_ADD("voodoo", STD_VOODOO_BANSHEE_CLOCK, vegasban_voodoo_intf)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/vertigo.c b/src/mame/drivers/vertigo.c
index bb6378f5657..a28ab9dbb9e 100644
--- a/src/mame/drivers/vertigo.c
+++ b/src/mame/drivers/vertigo.c
@@ -110,7 +110,7 @@ static INPUT_PORTS_START( vertigo )
INPUT_PORTS_END
-static const ttl74148_config vertigo_ttl74148_intf =
+static const ttl74148_config vertigo_ttl74148_intf =
{
vertigo_update_irq
};
diff --git a/src/mame/drivers/viper.c b/src/mame/drivers/viper.c
index 6bc41e85839..1e00dfdd0fd 100644
--- a/src/mame/drivers/viper.c
+++ b/src/mame/drivers/viper.c
@@ -447,7 +447,7 @@ static void mpc8240_interrupt(running_machine &machine, int irq);
#define I2C_STATE_DATA_TRANSFER 2
-struct MPC8240_IRQ
+struct MPC8240_IRQ
{
UINT32 vector;
int priority;
@@ -457,7 +457,7 @@ struct MPC8240_IRQ
int mask;
};
-struct MPC8240_GLOBAL_TIMER
+struct MPC8240_GLOBAL_TIMER
{
UINT32 base_count;
int enable;
@@ -466,7 +466,7 @@ struct MPC8240_GLOBAL_TIMER
-struct MPC8240_EPIC
+struct MPC8240_EPIC
{
UINT32 iack;
UINT32 eicr;
@@ -1968,22 +1968,22 @@ void viper_state::machine_reset()
ide_features[67*2+1] = 0x00;
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
static const voodoo_config voodoo_intf =
{
- 8, // fbmem;
- 0,// tmumem0;
- 0,// tmumem1;
- "screen",// screen;
- "maincpu",// cputag;
- voodoo_vblank,// vblank;
- NULL,// stall;
+ 8, // fbmem;
+ 0,// tmumem0;
+ 0,// tmumem1;
+ "screen",// screen;
+ "maincpu",// cputag;
+ voodoo_vblank,// vblank;
+ NULL,// stall;
};
static MACHINE_CONFIG_START( viper, viper_state )
diff --git a/src/mame/drivers/voyager.c b/src/mame/drivers/voyager.c
index 4ba086990b4..7c515287393 100644
--- a/src/mame/drivers/voyager.c
+++ b/src/mame/drivers/voyager.c
@@ -764,10 +764,10 @@ static void voyager_set_keyb_int(running_machine &machine, int state)
pic8259_ir1_w(drvstate->m_pic8259_1, state);
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/xtom3d.c b/src/mame/drivers/xtom3d.c
index c427fbc15f9..474d2d5b961 100644
--- a/src/mame/drivers/xtom3d.c
+++ b/src/mame/drivers/xtom3d.c
@@ -678,10 +678,10 @@ void xtom3d_state::machine_reset()
machine().root_device().membank("video_bank2")->set_base(machine().root_device().memregion("video_bios")->base() + 0x4000);
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/drivers/zaxxon.c b/src/mame/drivers/zaxxon.c
index 362089f68fe..0fecd7b7380 100644
--- a/src/mame/drivers/zaxxon.c
+++ b/src/mame/drivers/zaxxon.c
@@ -939,8 +939,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
@@ -1040,7 +1040,7 @@ static MACHINE_CONFIG_DERIVED( congo, root )
MCFG_SOUND_ADD("sn1", SN76496_NEW, SOUND_CLOCK)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MCFG_SOUND_CONFIG(psg_intf)
-
+
MCFG_SOUND_ADD("sn2", SN76496_NEW, SOUND_CLOCK/4)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MCFG_SOUND_CONFIG(psg_intf)
diff --git a/src/mame/drivers/zn.c b/src/mame/drivers/zn.c
index a54c52ccda1..c33546c6757 100644
--- a/src/mame/drivers/zn.c
+++ b/src/mame/drivers/zn.c
@@ -1532,10 +1532,10 @@ MACHINE_RESET_MEMBER(zn_state,coh1000w)
machine().device("ide")->reset();
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- atpsx_interrupt,
- NULL,
+ atpsx_interrupt,
+ NULL,
0
};
@@ -2213,10 +2213,10 @@ static MACHINE_CONFIG_DERIVED( coh1000a, zn1_2mb_vram )
MCFG_MACHINE_RESET_OVERRIDE(zn_state, coh1000a )
MACHINE_CONFIG_END
-static const ide_config jdredd_ide_intf =
+static const ide_config jdredd_ide_intf =
{
- jdredd_ide_interrupt,
- NULL,
+ jdredd_ide_interrupt,
+ NULL,
0
};
diff --git a/src/mame/includes/armedf.h b/src/mame/includes/armedf.h
index 183f6759aba..4edf87ae762 100644
--- a/src/mame/includes/armedf.h
+++ b/src/mame/includes/armedf.h
@@ -100,7 +100,7 @@ public:
DECLARE_READ16_MEMBER(sharedram_r);
DECLARE_DRIVER_INIT(bigfghtr);
DECLARE_MACHINE_START(bigfghtr);
- DECLARE_MACHINE_RESET(bigfghtr);
+ DECLARE_MACHINE_RESET(bigfghtr);
};
/*----------- defined in video/armedf.c -----------*/
diff --git a/src/mame/includes/asuka.h b/src/mame/includes/asuka.h
index 12564a98b97..67a0c7765af 100644
--- a/src/mame/includes/asuka.h
+++ b/src/mame/includes/asuka.h
@@ -29,7 +29,7 @@ public:
/* misc */
int m_adpcm_pos;
int m_adpcm_data;
-
+
optional_shared_ptr<UINT8> m_cadash_shared_ram;
/* devices */
diff --git a/src/mame/includes/dec0.h b/src/mame/includes/dec0.h
index 233a1b8767d..8c7046cbfdd 100644
--- a/src/mame/includes/dec0.h
+++ b/src/mame/includes/dec0.h
@@ -94,7 +94,7 @@ public:
COMBINE_DATA(&m_automat_scroll_regs[offset]);
}
UINT16 m_automat_scroll_regs[4];
-
+
DECLARE_VIDEO_START(automat);
};
diff --git a/src/mame/includes/deco32.h b/src/mame/includes/deco32.h
index 43ae08312d9..66f6db682c2 100644
--- a/src/mame/includes/deco32.h
+++ b/src/mame/includes/deco32.h
@@ -130,7 +130,7 @@ public:
DECLARE_DRIVER_INIT(dragngun);
DECLARE_DRIVER_INIT(lockload);
DECLARE_VIDEO_START(dragngun);
- DECLARE_VIDEO_START(lockload);
+ DECLARE_VIDEO_START(lockload);
};
diff --git a/src/mame/includes/galaga.h b/src/mame/includes/galaga.h
index 9961977afcc..582afef5cb4 100644
--- a/src/mame/includes/galaga.h
+++ b/src/mame/includes/galaga.h
@@ -89,7 +89,7 @@ public:
DECLARE_PALETTE_INIT(xevious);
DECLARE_MACHINE_RESET(xevios);
DECLARE_PALETTE_INIT(battles);
- DECLARE_MACHINE_RESET(battles);
+ DECLARE_MACHINE_RESET(battles);
};
@@ -118,7 +118,7 @@ public:
TILE_GET_INFO_MEMBER(bg_get_tile_info);
TILE_GET_INFO_MEMBER(fg_get_tile_info);
DECLARE_VIDEO_START(bosco);
- DECLARE_PALETTE_INIT(bosco);
+ DECLARE_PALETTE_INIT(bosco);
};
class digdug_state : public galaga_state
@@ -143,7 +143,7 @@ public:
TILE_GET_INFO_MEMBER(bg_get_tile_info);
TILE_GET_INFO_MEMBER(tx_get_tile_info);
DECLARE_VIDEO_START(digdug);
- DECLARE_PALETTE_INIT(digdug);
+ DECLARE_PALETTE_INIT(digdug);
};
diff --git a/src/mame/includes/gberet.h b/src/mame/includes/gberet.h
index 8c9c8b1a324..6734ee77b53 100644
--- a/src/mame/includes/gberet.h
+++ b/src/mame/includes/gberet.h
@@ -26,7 +26,7 @@ public:
required_shared_ptr<UINT8> m_spriteram;
optional_shared_ptr<UINT8> m_scrollram;
optional_shared_ptr<UINT8> m_soundlatch;
-
+
/* devices */
required_device<sn76489a_new_device> m_sn;
diff --git a/src/mame/includes/gstriker.h b/src/mame/includes/gstriker.h
index 5a7503f83c2..01f3c225519 100644
--- a/src/mame/includes/gstriker.h
+++ b/src/mame/includes/gstriker.h
@@ -5,7 +5,7 @@
#define MAX_VS920A 2
-struct sVS920A
+struct sVS920A
{
tilemap_t* tmap;
UINT16* vram;
@@ -18,7 +18,7 @@ struct sVS920A
#define MAX_MB60553 2
-struct tMB60553
+struct tMB60553
{
tilemap_t* tmap;
UINT16* vram;
@@ -33,7 +33,7 @@ struct tMB60553
#define MAX_CG10103 2
-struct tCG10103
+struct tCG10103
{
UINT16* vram;
UINT16 pal_base;
diff --git a/src/mame/includes/homerun.h b/src/mame/includes/homerun.h
index 19a157e136f..47f98b53781 100644
--- a/src/mame/includes/homerun.h
+++ b/src/mame/includes/homerun.h
@@ -34,7 +34,7 @@ public:
int m_gfx_ctrl;
int m_scrollx;
int m_scrolly;
-
+
DECLARE_WRITE8_MEMBER(homerun_control_w);
DECLARE_WRITE8_MEMBER(homerun_d7756_sample_w);
DECLARE_WRITE8_MEMBER(homerun_videoram_w);
diff --git a/src/mame/includes/irobot.h b/src/mame/includes/irobot.h
index 257d03d585d..9cd46e6260f 100644
--- a/src/mame/includes/irobot.h
+++ b/src/mame/includes/irobot.h
@@ -6,7 +6,7 @@
#define IR_TIMING 1 /* try to emulate MB and VG running time */
-struct irmb_ops
+struct irmb_ops
{
const struct irmb_ops *nxtop;
UINT32 func;
diff --git a/src/mame/includes/jaguar.h b/src/mame/includes/jaguar.h
index 994d8e53d94..95db4d74d90 100644
--- a/src/mame/includes/jaguar.h
+++ b/src/mame/includes/jaguar.h
@@ -98,7 +98,7 @@ public:
UINT16 m_serial_frequency;
UINT8 m_gpu_irq_state;
emu_timer *m_serial_timer;
-
+
// blitter variables
UINT32 m_blitter_regs[40];
UINT16 m_gpu_regs[0x100/2];
@@ -114,7 +114,7 @@ public:
static void (jaguar_state::*const bitmap8[8])(UINT16 *, INT32, INT32, UINT32 *, INT32, UINT16 *);
static void (jaguar_state::*const bitmap16[8])(UINT16 *, INT32, INT32, UINT32 *, INT32);
static void (jaguar_state::*const bitmap32[8])(UINT16 *, INT32, INT32, UINT32 *, INT32);
-
+
DECLARE_WRITE32_MEMBER(eeprom_w);
DECLARE_READ32_MEMBER(eeprom_clk);
DECLARE_READ32_MEMBER(eeprom_cs);
diff --git a/src/mame/includes/megadriv.h b/src/mame/includes/megadriv.h
index 77445f101f7..efd0f2dbeee 100644
--- a/src/mame/includes/megadriv.h
+++ b/src/mame/includes/megadriv.h
@@ -117,7 +117,7 @@ public:
DECLARE_DRIVER_INIT(megadriv);
DECLARE_DRIVER_INIT(megadrij);
DECLARE_DRIVER_INIT(mpnew);
-
+
TILE_GET_INFO_MEMBER( get_stampmap_16x16_1x1_tile_info );
TILE_GET_INFO_MEMBER( get_stampmap_32x32_1x1_tile_info );
TILE_GET_INFO_MEMBER( get_stampmap_16x16_16x16_tile_info );
@@ -449,7 +449,7 @@ public:
segacd_state(const machine_config &mconfig, device_type type, const char *tag)
: _32x_state(mconfig, type, tag),
m_font_bits(*this,"segacd_font") { }
-
+
required_shared_ptr<UINT16> m_font_bits;
};
diff --git a/src/mame/includes/micro3d.h b/src/mame/includes/micro3d.h
index 1aa83afb5a3..5f0d5253202 100644
--- a/src/mame/includes/micro3d.h
+++ b/src/mame/includes/micro3d.h
@@ -116,7 +116,7 @@ public:
virtual void video_reset();
};
-struct micro3d_vtx
+struct micro3d_vtx
{
INT32 x, y, z;
};
diff --git a/src/mame/includes/midtunit.h b/src/mame/includes/midtunit.h
index 39b7bb3f024..3fda8e63987 100644
--- a/src/mame/includes/midtunit.h
+++ b/src/mame/includes/midtunit.h
@@ -21,7 +21,7 @@ public:
required_memory_region m_gfxrom;
optional_device<williams_cvsd_sound_device> m_cvsd_sound;
optional_device<williams_adpcm_sound_device> m_adpcm_sound;
-
+
DECLARE_WRITE16_MEMBER(midtunit_cmos_enable_w);
DECLARE_WRITE16_MEMBER(midtunit_cmos_w);
DECLARE_READ16_MEMBER(midtunit_cmos_r);
diff --git a/src/mame/includes/namcoic.h b/src/mame/includes/namcoic.h
index 12ebe0fd445..e35b578be62 100644
--- a/src/mame/includes/namcoic.h
+++ b/src/mame/includes/namcoic.h
@@ -142,7 +142,7 @@ protected:
TILE_GET_INFO_MEMBER( get_road_info );
// internal state
- pen_t m_transparent_color;
+ pen_t m_transparent_color;
gfx_element * m_gfx;
tilemap_t * m_tilemap;
UINT16 m_ram[0x20000/2]; // at 0x880000 in Final Lap; at 0xa00000 in Lucky&Wild
diff --git a/src/mame/includes/namcos1.h b/src/mame/includes/namcos1.h
index 7c55c78928b..5d2170e7a46 100644
--- a/src/mame/includes/namcos1.h
+++ b/src/mame/includes/namcos1.h
@@ -1,7 +1,7 @@
#define NAMCOS1_MAX_BANK 0x400
/* Bank handler definitions */
-struct bankhandler
+struct bankhandler
{
read8_space_func bank_handler_r;
write8_space_func bank_handler_w;
diff --git a/src/mame/includes/namcos2.h b/src/mame/includes/namcos2.h
index 3f74d382d3c..f58fdd1e6ac 100644
--- a/src/mame/includes/namcos2.h
+++ b/src/mame/includes/namcos2.h
@@ -101,7 +101,7 @@ public:
m_c355_obj_gfxbank(0),
m_c355_obj_palxor(0)
{ }
-
+
// game type helpers
bool is_system21();
int m_gametype;
@@ -231,7 +231,7 @@ public:
DECLARE_DRIVER_INIT(ordyne);
DECLARE_DRIVER_INIT(marvland);
DECLARE_DRIVER_INIT(rthun2);
-
+
virtual void video_start();
void video_start_finallap();
void video_start_luckywld();
@@ -245,7 +245,7 @@ public:
UINT32 screen_update_sgunner(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
TILE_GET_INFO_MEMBER( roz_tile_info );
-
+
DECLARE_READ16_MEMBER( paletteram_word_r );
DECLARE_WRITE16_MEMBER( paletteram_word_w );
DECLARE_WRITE16_MEMBER( rozram_word_w );
diff --git a/src/mame/includes/playch10.h b/src/mame/includes/playch10.h
index 1e1c50f53df..14633125296 100644
--- a/src/mame/includes/playch10.h
+++ b/src/mame/includes/playch10.h
@@ -1,4 +1,4 @@
-struct chr_bank
+struct chr_bank
{
int writable; // 1 for RAM, 0 for ROM
UINT8* chr; // direct access to the memory
diff --git a/src/mame/includes/qix.h b/src/mame/includes/qix.h
index 394c287f792..86cc8369366 100644
--- a/src/mame/includes/qix.h
+++ b/src/mame/includes/qix.h
@@ -38,7 +38,7 @@ public:
/* devices */
optional_device<sn76489_new_device> m_sn1;
optional_device<sn76489_new_device> m_sn2;
-
+
/* machine state */
optional_shared_ptr<UINT8> m_68705_port_out;
optional_shared_ptr<UINT8> m_68705_ddr;
diff --git a/src/mame/includes/segag80r.h b/src/mame/includes/segag80r.h
index 603ff41f14e..b5aa11eb586 100644
--- a/src/mame/includes/segag80r.h
+++ b/src/mame/includes/segag80r.h
@@ -16,10 +16,10 @@ public:
m_videoram(*this, "videoram"),
m_sn1(*this, "sn1"),
m_sn2(*this, "sn2"){ }
-
+
required_shared_ptr<UINT8> m_mainram;
required_shared_ptr<UINT8> m_videoram;
-
+
optional_device<sn76496_new_device> m_sn1;
optional_device<sn76496_new_device> m_sn2;
diff --git a/src/mame/includes/segahang.h b/src/mame/includes/segahang.h
index 7c2767132c8..703105700d5 100644
--- a/src/mame/includes/segahang.h
+++ b/src/mame/includes/segahang.h
@@ -89,7 +89,7 @@ public:
DECLARE_DRIVER_INIT(enduror);
DECLARE_DRIVER_INIT(endurobl);
DECLARE_DRIVER_INIT(endurob2);
-
+
// video updates
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -120,7 +120,7 @@ protected:
required_device<i8255_device> m_i8255_1;
required_device<i8255_device> m_i8255_2;
required_device<sega_16bit_sprite_device> m_sprites;
-
+
// memory pointers
required_shared_ptr<UINT16> m_workram;
diff --git a/src/mame/includes/snes.h b/src/mame/includes/snes.h
index 6a6d662e298..df77df9bade 100644
--- a/src/mame/includes/snes.h
+++ b/src/mame/includes/snes.h
@@ -439,8 +439,8 @@ public:
emu_timer *m_hblank_timer;
emu_timer *m_nmi_timer;
emu_timer *m_hirq_timer;
-// emu_timer *m_div_timer;
-// emu_timer *m_mult_timer;
+// emu_timer *m_div_timer;
+// emu_timer *m_mult_timer;
emu_timer *m_io_timer;
/* DMA/HDMA-related */
diff --git a/src/mame/includes/spcforce.h b/src/mame/includes/spcforce.h
index 500bb505269..4255860cdfc 100644
--- a/src/mame/includes/spcforce.h
+++ b/src/mame/includes/spcforce.h
@@ -17,7 +17,7 @@ public:
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_colorram;
- required_device<sn76496_new_device> m_sn1;
+ required_device<sn76496_new_device> m_sn1;
required_device<sn76496_new_device> m_sn2;
required_device<sn76496_new_device> m_sn3;
diff --git a/src/mame/includes/suna8.h b/src/mame/includes/suna8.h
index ae8e8e020de..f0342c6d8b5 100644
--- a/src/mame/includes/suna8.h
+++ b/src/mame/includes/suna8.h
@@ -39,7 +39,7 @@ public:
int m_trombank;
int m_page;
- TILE_GET_INFO_MEMBER(get_tile_info);
+ TILE_GET_INFO_MEMBER(get_tile_info);
#endif
INT16 *m_samplebuf;
diff --git a/src/mame/includes/suprnova.h b/src/mame/includes/suprnova.h
index 88a0f3ad654..6804d35abb2 100644
--- a/src/mame/includes/suprnova.h
+++ b/src/mame/includes/suprnova.h
@@ -1,4 +1,4 @@
-struct hit_t
+struct hit_t
{
UINT16 x1p, y1p, z1p, x1s, y1s, z1s;
UINT16 x2p, y2p, z2p, x2s, y2s, z2s;
diff --git a/src/mame/includes/vectrex.h b/src/mame/includes/vectrex.h
index c34f4c308cf..a5e009c859c 100644
--- a/src/mame/includes/vectrex.h
+++ b/src/mame/includes/vectrex.h
@@ -11,7 +11,7 @@
#define NVECT 10000
-struct vectrex_point
+struct vectrex_point
{
int x; int y;
rgb_t col;
diff --git a/src/mame/includes/vertigo.h b/src/mame/includes/vertigo.h
index ea8d6f8e636..9e19837e05d 100644
--- a/src/mame/includes/vertigo.h
+++ b/src/mame/includes/vertigo.h
@@ -12,7 +12,7 @@
#define MC_LENGTH 512
-struct am2901
+struct am2901
{
UINT32 ram[16]; /* internal ram */
UINT32 d; /* direct data D input */
@@ -50,7 +50,7 @@ private:
running_machine *m_machine;
};
-struct microcode
+struct microcode
{
UINT32 x;
UINT32 a;
@@ -70,7 +70,7 @@ struct microcode
UINT32 ma;
};
-struct vproc
+struct vproc
{
UINT16 sram[64]; /* external sram */
UINT16 ramlatch; /* latch between 2901 and sram */
diff --git a/src/mame/includes/zodiack.h b/src/mame/includes/zodiack.h
index 2b0d6eed9fe..bd8afaae454 100644
--- a/src/mame/includes/zodiack.h
+++ b/src/mame/includes/zodiack.h
@@ -63,7 +63,7 @@ protected:
virtual void machine_start();
virtual void machine_reset();
public:
- virtual void video_start();
+ virtual void video_start();
TILE_GET_INFO_MEMBER(get_bg_tile_info);
TILE_GET_INFO_MEMBER(get_fg_tile_info);
DECLARE_PALETTE_INIT(zodiack);
diff --git a/src/mame/machine/atarigen.c b/src/mame/machine/atarigen.c
index 1764dfc2831..8b3e179c255 100644
--- a/src/mame/machine/atarigen.c
+++ b/src/mame/machine/atarigen.c
@@ -1537,8 +1537,8 @@ void atarigen_blend_gfx(running_machine &machine, int gfx0, int gfx1, int mask0,
c1base += gx1->rowbytes();
}
}
-
-// int newdepth = gx0->depth() * gx1->depth();
+
+// int newdepth = gx0->depth() * gx1->depth();
int granularity = gx0->granularity();
gx0->set_raw_layout(srcdata, gx0->width(), gx0->height(), gx0->elements(), 8 * gx0->width(), 8 * gx0->width() * gx0->height());
gx0->set_granularity(granularity);
diff --git a/src/mame/machine/cdi070.h b/src/mame/machine/cdi070.h
index fa708904cc1..53691e21f90 100644
--- a/src/mame/machine/cdi070.h
+++ b/src/mame/machine/cdi070.h
@@ -24,7 +24,7 @@ TODO:
#include "emu.h"
-struct scc68070_i2c_regs_t
+struct scc68070_i2c_regs_t
{
UINT8 reserved0;
UINT8 data_register;
@@ -47,7 +47,7 @@ struct scc68070_i2c_regs_t
#define ISR_AD0 0x02 // Address Zero
#define ISR_LRB 0x01 // Last Received Bit
-struct scc68070_uart_regs_t
+struct scc68070_uart_regs_t
{
UINT8 reserved0;
UINT8 mode_register;
@@ -90,7 +90,7 @@ struct scc68070_uart_regs_t
#define USR_TXRDY 0x04
#define USR_RXRDY 0x01
-struct scc68070_timer_regs_t
+struct scc68070_timer_regs_t
{
UINT8 timer_status_register;
UINT8 timer_control_register;
@@ -130,7 +130,7 @@ struct scc68070_timer_regs_t
#define TCR_M2_CAPTURE 0x02
#define TCR_M2_COUNT 0x03
-struct scc68070_dma_channel_t
+struct scc68070_dma_channel_t
{
UINT8 channel_status;
UINT8 channel_error;
@@ -193,12 +193,12 @@ struct scc68070_dma_channel_t
#define CCR_INE 0x08
#define CCR_IPL 0x07
-struct scc68070_dma_regs_t
+struct scc68070_dma_regs_t
{
scc68070_dma_channel_t channel[2];
};
-struct scc68070_mmu_desc_t
+struct scc68070_mmu_desc_t
{
UINT16 attr;
UINT16 length;
@@ -207,7 +207,7 @@ struct scc68070_mmu_desc_t
UINT16 base;
};
-struct scc68070_mmu_regs_t
+struct scc68070_mmu_regs_t
{
UINT8 status;
UINT8 control;
@@ -217,7 +217,7 @@ struct scc68070_mmu_regs_t
scc68070_mmu_desc_t desc[8];
};
-struct scc68070_regs_t
+struct scc68070_regs_t
{
UINT16 lir;
UINT8 picr1;
diff --git a/src/mame/machine/decoprot.c b/src/mame/machine/decoprot.c
index c1396da7e05..b283b1b308d 100644
--- a/src/mame/machine/decoprot.c
+++ b/src/mame/machine/decoprot.c
@@ -94,7 +94,7 @@ void decoprot_reset(running_machine &machine)
deco16_mask=0xffff;
decoprot_last_write=decoprot_last_write_val=0;
decoprot_buffer_ram_selected=0;
-
+
deco16_prot_ram = reinterpret_cast<UINT16 *>(machine.root_device().memshare("prot16ram")->ptr());
deco32_prot_ram = reinterpret_cast<UINT32 *>(machine.root_device().memshare("prot32ram")->ptr());
diff --git a/src/mame/machine/kaneko_calc3.c b/src/mame/machine/kaneko_calc3.c
index fc0e313962d..23cf251f59a 100644
--- a/src/mame/machine/kaneko_calc3.c
+++ b/src/mame/machine/kaneko_calc3.c
@@ -70,7 +70,7 @@ void kaneko_calc3_device::device_start()
-struct calc3_t
+struct calc3_t
{
int data_header[2];
diff --git a/src/mame/machine/kaneko_calc3.h b/src/mame/machine/kaneko_calc3.h
index 9e3afcd0668..b2a12eae4f1 100644
--- a/src/mame/machine/kaneko_calc3.h
+++ b/src/mame/machine/kaneko_calc3.h
@@ -3,7 +3,7 @@
#define CALC3_VERBOSE_OUTPUT 0
-struct calc3_t
+struct calc3_t
{
int mcu_status;
int mcu_command_offset;
diff --git a/src/mame/machine/kaneko_hit.h b/src/mame/machine/kaneko_hit.h
index 3cdd4bd981e..90140c03c9a 100644
--- a/src/mame/machine/kaneko_hit.h
+++ b/src/mame/machine/kaneko_hit.h
@@ -1,7 +1,7 @@
/* Kaneko Hit protection */
-struct calc1_hit_t
+struct calc1_hit_t
{
UINT16 x1p, y1p, x1s, y1s;
UINT16 x2p, y2p, x2s, y2s;
@@ -11,7 +11,7 @@ struct calc1_hit_t
UINT16 mult_a, mult_b;
};
-struct calc3_hit_t
+struct calc3_hit_t
{
int x1p, y1p, z1p, x1s, y1s, z1s;
int x2p, y2p, z2p, x2s, y2s, z2s;
diff --git a/src/mame/machine/md_cart.c b/src/mame/machine/md_cart.c
index 209c3a739c6..ddbef4295f8 100644
--- a/src/mame/machine/md_cart.c
+++ b/src/mame/machine/md_cart.c
@@ -1044,7 +1044,7 @@ static WRITE16_HANDLER( codemasters_eeprom_w )
/* ST M95320 32Kbit serial EEPROM implementation */
#define M95320_SIZE 0x1000
-enum STMSTATE
+enum STMSTATE
{
IDLE = 0,
CMD_WRSR,
diff --git a/src/mame/machine/mega32x.c b/src/mame/machine/mega32x.c
index 86f377d8fde..ea0877153fa 100644
--- a/src/mame/machine/mega32x.c
+++ b/src/mame/machine/mega32x.c
@@ -224,19 +224,19 @@ sega_32x_device::sega_32x_device(const machine_config &mconfig, const char *tag,
m_lch_pwm(*this, "lch_pwm"),
m_rch_pwm(*this, "rch_pwm")
{
-
+
}
sega_32x_ntsc_device::sega_32x_ntsc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_NTSC)
{
-
+
}
sega_32x_pal_device::sega_32x_pal_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_PAL)
{
-
+
}
TIMER_CALLBACK( _32x_pwm_callback );
@@ -1520,7 +1520,7 @@ ADDRESS_MAP_START( sh2_main_map, AS_PROGRAM, 32, sega_32x_device )
AM_RANGE(0x00004100, 0x0000410b) AM_READWRITE16(_32x_common_vdp_regs_r, _32x_common_vdp_regs_w , 0xffffffff)
AM_RANGE(0x00004200, 0x000043ff) AM_READWRITE16(_32x_68k_palette_r, _32x_68k_palette_w, 0xffffffff)
-
+
AM_RANGE(0x04000000, 0x0401ffff) AM_READWRITE16(_32x_68k_dram_r, _32x_68k_dram_w, 0xffffffff)
AM_RANGE(0x04020000, 0x0403ffff) AM_READWRITE16(_32x_68k_dram_overwrite_r, _32x_68k_dram_overwrite_w, 0xffffffff)
@@ -1735,7 +1735,7 @@ static const sh2_cpu_core sh2_conf_slave = { 1, NULL, _32x_fifo_available_callb
#if 0
// for now we just use the regular loading because we have 2 different BIOS roms, and you can't use -bios within a device for obvious reasons
-ROM_START( 32x )
+ROM_START( 32x )
ROM_REGION( 0x400000, "32x_master_sh2", 0 )
ROM_REGION( 0x400000, "32x_slave_sh2", 0 )
ROM_END
@@ -1778,7 +1778,7 @@ static MACHINE_CONFIG_FRAGMENT( _32x_ntsc )
MCFG_CPU_PROGRAM_MAP(sh2_main_map)
MCFG_CPU_CONFIG(sh2_conf_master)
#endif
-
+
MCFG_DAC_ADD("lch_pwm")
MCFG_SOUND_ROUTE(ALL_OUTPUTS, ":lspeaker", 0.40)
@@ -1805,7 +1805,7 @@ static MACHINE_CONFIG_FRAGMENT( _32x_pal )
MCFG_CPU_PROGRAM_MAP(sh2_main_map)
MCFG_CPU_CONFIG(sh2_conf_master)
#endif
-
+
MCFG_DAC_ADD("lch_pwm")
MCFG_SOUND_ROUTE(ALL_OUTPUTS, ":lspeaker", 0.40)
@@ -1900,7 +1900,7 @@ void sega_32x_device::device_reset()
machine().device(":maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa15104, 0xa15105, read16_delegate(FUNC(sega_32x_device::_32x_68k_a15104_r),this), write16_delegate(FUNC(sega_32x_device::_32x_68k_a15104_w),this)); // 68k BANK rom set
machine().device(":maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa15106, 0xa15107, read16_delegate(FUNC(sega_32x_device::_32x_68k_a15106_r),this), write16_delegate(FUNC(sega_32x_device::_32x_68k_a15106_w),this)); // dreq stuff
machine().device(":maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa15108, 0xa15113, read16_delegate(FUNC(sega_32x_device::_32x_dreq_common_r),this), write16_delegate(FUNC(sega_32x_device::_32x_dreq_common_w),this)); // dreq src / dst / length /fifo
-
+
machine().device(":maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa1511a, 0xa1511b, read16_delegate(FUNC(sega_32x_device::_32x_68k_a1511a_r),this), write16_delegate(FUNC(sega_32x_device::_32x_68k_a1511a_w),this)); // SEGA TV
machine().device(":maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa15120, 0xa1512f, read16_delegate(FUNC(sega_32x_device::_32x_68k_m_commsram_r),this), write16_delegate(FUNC(sega_32x_device::_32x_68k_m_commsram_w),this)); // comms reg 0-7
diff --git a/src/mame/machine/mega32x.h b/src/mame/machine/mega32x.h
index e8afc6a7428..b76d98ea8de 100644
--- a/src/mame/machine/mega32x.h
+++ b/src/mame/machine/mega32x.h
@@ -33,7 +33,7 @@ public:
required_device<dac_device> m_lch_pwm;
required_device<dac_device> m_rch_pwm;
-
+
DECLARE_READ32_MEMBER( _32x_sh2_master_4000_common_4002_r );
DECLARE_READ32_MEMBER( _32x_sh2_slave_4000_common_4002_r );
DECLARE_READ32_MEMBER( _32x_sh2_common_4004_common_4006_r );
@@ -46,7 +46,7 @@ public:
DECLARE_WRITE32_MEMBER( _32x_sh2_slave_4014_slave_4016_w );
DECLARE_WRITE32_MEMBER( _32x_sh2_slave_4018_slave_401a_w );
DECLARE_WRITE32_MEMBER( _32x_sh2_slave_401c_slave_401e_w );
-
+
DECLARE_READ16_MEMBER( _32x_68k_palette_r );
DECLARE_WRITE16_MEMBER( _32x_68k_palette_w );
@@ -98,7 +98,7 @@ public:
DECLARE_WRITE16_MEMBER( _32x_sh2_slave_401c_w );
DECLARE_WRITE16_MEMBER( _32x_sh2_master_401e_w );
DECLARE_WRITE16_MEMBER( _32x_sh2_slave_401e_w );
-
+
UINT32* _32x_render_videobuffer_to_screenbuffer_helper(running_machine &machine, int scanline);
int sh2_master_pwmint_enable, sh2_slave_pwmint_enable;
@@ -138,10 +138,10 @@ protected:
virtual void device_reset();
// optional information overrides
-// virtual const rom_entry *device_rom_region() const;
+// virtual const rom_entry *device_rom_region() const;
virtual machine_config_constructor device_mconfig_additions() const;
private:
-// virtual void device_config_complete();
+// virtual void device_config_complete();
int m_32x_adapter_enabled;
int m_32x_access_auth;
int m_32x_screenshift;
diff --git a/src/mame/machine/megacd.c b/src/mame/machine/megacd.c
index 76f53a53554..ebf5622ce7d 100644
--- a/src/mame/machine/megacd.c
+++ b/src/mame/machine/megacd.c
@@ -19,25 +19,25 @@ const device_type SEGA_SEGACD_EUROPE = &device_creator<sega_segacd_europe_device
sega_segacd_device::sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type)
: device_t(mconfig, type, "sega_segacd_device", tag, owner, clock)
{
-
+
}
sega_segacd_us_device::sega_segacd_us_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_US)
{
-
+
}
sega_segacd_japan_device::sega_segacd_japan_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_JAPAN)
{
-
+
}
sega_segacd_europe_device::sega_segacd_europe_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_EUROPE)
{
-
+
}
@@ -2305,13 +2305,13 @@ READ16_HANDLER( segacd_stopwatch_timer_r )
void segacd_init_main_cpu( running_machine& machine )
{
address_space* space = machine.device("maincpu")->memory().space(AS_PROGRAM);
-
+
segacd_font_bits = reinterpret_cast<UINT16 *>(machine.root_device().memshare(":segacd:segacd_font")->ptr());
segacd_backupram = reinterpret_cast<UINT16 *>(machine.root_device().memshare(":segacd:backupram")->ptr());
segacd_dataram = reinterpret_cast<UINT16 *>(machine.root_device().memshare(":segacd:dataram")->ptr());
segacd_dataram2 = reinterpret_cast<UINT16 *>(machine.root_device().memshare(":segacd:dataram2")->ptr());
segacd_4meg_prgram = reinterpret_cast<UINT16 *>(machine.root_device().memshare(":segacd:segacd_program")->ptr());
-
+
segacd_4meg_prgbank = 0;
diff --git a/src/mame/machine/megacd.h b/src/mame/machine/megacd.h
index 7e65c1d9dc1..7b27ce850eb 100644
--- a/src/mame/machine/megacd.h
+++ b/src/mame/machine/megacd.h
@@ -13,10 +13,10 @@ protected:
virtual void device_reset();
// optional information overrides
-// virtual const rom_entry *device_rom_region() const;
+// virtual const rom_entry *device_rom_region() const;
virtual machine_config_constructor device_mconfig_additions() const;
private:
-// virtual void device_config_complete();
+// virtual void device_config_complete();
};
@@ -34,7 +34,7 @@ class sega_segacd_japan_device : public sega_segacd_device
public:
sega_segacd_japan_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
protected:
-// virtual machine_config_constructor device_mconfig_additions() const;
+// virtual machine_config_constructor device_mconfig_additions() const;
};
class sega_segacd_europe_device : public sega_segacd_device
@@ -42,7 +42,7 @@ class sega_segacd_europe_device : public sega_segacd_device
public:
sega_segacd_europe_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
protected:
-// virtual machine_config_constructor device_mconfig_additions() const;
+// virtual machine_config_constructor device_mconfig_additions() const;
};
diff --git a/src/mame/machine/megavdp.c b/src/mame/machine/megavdp.c
index e08b1b84f7e..dd0540532c2 100644
--- a/src/mame/machine/megavdp.c
+++ b/src/mame/machine/megavdp.c
@@ -2657,7 +2657,7 @@ void sega_genesis_vdp_device::genesis_render_videobuffer_to_screenbuffer(running
}
}
}
-
+
if (!(dat&0x20000))
m_render_line_raw[x] = 0x100;
else
@@ -2819,7 +2819,7 @@ void sega_genesis_vdp_device::vdp_handle_scanline_callback(running_machine &mach
//if (genesis_get_scanline_counter(machine)==0) irq4_on_timer->adjust(attotime::from_usec(2));
-
+
if (_32xdev) _32xdev->_32x_scanline_cb1();
diff --git a/src/mame/machine/pckeybrd.c b/src/mame/machine/pckeybrd.c
index 9617a3ea034..65e2430f1a7 100644
--- a/src/mame/machine/pckeybrd.c
+++ b/src/mame/machine/pckeybrd.c
@@ -167,7 +167,7 @@ static const int at_keyboard_scancode_set_2_3[]=
#define AT_KEYBOARD_QUEUE_MAXSIZE 256
-struct at_keyboard
+struct at_keyboard
{
AT_KEYBOARD_TYPE type;
int on;
@@ -188,7 +188,7 @@ struct at_keyboard
static at_keyboard keyboard;
-struct extended_keyboard_code
+struct extended_keyboard_code
{
const char *pressed;
const char *released;
diff --git a/src/mame/machine/pxa255.h b/src/mame/machine/pxa255.h
index 7c643d101c6..2fc61b0d887 100644
--- a/src/mame/machine/pxa255.h
+++ b/src/mame/machine/pxa255.h
@@ -163,7 +163,7 @@
#define PXA255_DCMD_WIDTH_2 (0x00008000)
#define PXA255_DCMD_WIDTH_4 (0x0000c000)
-struct PXA255_DMA_Regs
+struct PXA255_DMA_Regs
{
UINT32 dcsr[16];
@@ -230,7 +230,7 @@ struct PXA255_DMA_Regs
#define PXA255_SADIV (PXA255_I2S_BASE_ADDR + 0x00000060)
#define PXA255_SADR (PXA255_I2S_BASE_ADDR + 0x00000080)
-struct PXA255_I2S_Regs
+struct PXA255_I2S_Regs
{
UINT32 sacr0;
UINT32 sacr1;
@@ -279,7 +279,7 @@ struct PXA255_I2S_Regs
#define PXA255_OIER_E2 (0x00000004)
#define PXA255_OIER_E3 (0x00000008)
-struct PXA255_OSTMR_Regs
+struct PXA255_OSTMR_Regs
{
UINT32 osmr[4];
UINT32 oscr;
@@ -331,7 +331,7 @@ struct PXA255_OSTMR_Regs
#define PXA255_INT_RTC_HZ (1 << 30)
#define PXA255_INT_RTC_ALARM (1 << 31)
-struct PXA255_INTC_Regs
+struct PXA255_INTC_Regs
{
UINT32 icip;
UINT32 icmr;
@@ -378,7 +378,7 @@ struct PXA255_INTC_Regs
#define PXA255_GAFR2_L (PXA255_GPIO_BASE_ADDR + 0x00000064)
#define PXA255_GAFR2_U (PXA255_GPIO_BASE_ADDR + 0x00000068)
-struct PXA255_GPIO_Regs
+struct PXA255_GPIO_Regs
{
UINT32 gplr0; // GPIO Pin-Leve
UINT32 gplr1;
@@ -476,7 +476,7 @@ struct PXA255_GPIO_Regs
#define PXA255_FIDR1 (PXA255_LCD_BASE_ADDR + 0x00000218)
#define PXA255_LDCMD1 (PXA255_LCD_BASE_ADDR + 0x0000021c)
-struct PXA255_LCD_DMA_Regs
+struct PXA255_LCD_DMA_Regs
{
UINT32 fdadr;
UINT32 fsadr;
@@ -485,7 +485,7 @@ struct PXA255_LCD_DMA_Regs
emu_timer *eof;
};
-struct PXA255_LCD_Regs
+struct PXA255_LCD_Regs
{
UINT32 lccr0;
UINT32 lccr1;
diff --git a/src/mame/machine/qix.c b/src/mame/machine/qix.c
index f7ad3d695ac..7ba08f3eaee 100644
--- a/src/mame/machine/qix.c
+++ b/src/mame/machine/qix.c
@@ -14,8 +14,8 @@
-
-
+
+
/*************************************
*
* Static function prototypes
@@ -501,7 +501,7 @@ static WRITE8_DEVICE_HANDLER( qix_coinctl_w )
static WRITE8_DEVICE_HANDLER( slither_76489_0_w )
{
qix_state *state = device->machine().driver_data<qix_state>();
-
+
/* write to the sound chip */
state->m_sn1->write(*device->machine().device<legacy_cpu_device>("maincpu")->space(), 0, data);
@@ -515,7 +515,7 @@ static WRITE8_DEVICE_HANDLER( qix_coinctl_w )
static WRITE8_DEVICE_HANDLER( slither_76489_1_w )
{
qix_state *state = device->machine().driver_data<qix_state>();
-
+
/* write to the sound chip */
state->m_sn2->write(*device->machine().device<legacy_cpu_device>("maincpu")->space(), 0, data);
diff --git a/src/mame/machine/segaic16.c b/src/mame/machine/segaic16.c
index 44cc8e5f611..6327b5239a3 100644
--- a/src/mame/machine/segaic16.c
+++ b/src/mame/machine/segaic16.c
@@ -83,7 +83,7 @@ sega_16bit_common_base::sega_16bit_common_base(const machine_config &mconfig, de
//-------------------------------------------------
// open_bus_r - return value from reading an
-// unmapped address
+// unmapped address
//-------------------------------------------------
READ16_MEMBER( sega_16bit_common_base::open_bus_r )
@@ -110,28 +110,28 @@ READ16_MEMBER( sega_16bit_common_base::open_bus_r )
//-------------------------------------------------
// palette_init - precompute weighted RGB values
-// for each input value 0-31
+// for each input value 0-31
//-------------------------------------------------
void sega_16bit_common_base::palette_init()
{
//
- // Color generation details
+ // Color generation details
//
- // Each color is made up of 5 bits, connected through one or more resistors like so:
+ // Each color is made up of 5 bits, connected through one or more resistors like so:
//
- // Bit 0 = 1 x 3.9K ohm
- // Bit 1 = 1 x 2.0K ohm
- // Bit 2 = 1 x 1.0K ohm
- // Bit 3 = 2 x 1.0K ohm
- // Bit 4 = 4 x 1.0K ohm
+ // Bit 0 = 1 x 3.9K ohm
+ // Bit 1 = 1 x 2.0K ohm
+ // Bit 2 = 1 x 1.0K ohm
+ // Bit 3 = 2 x 1.0K ohm
+ // Bit 4 = 4 x 1.0K ohm
//
- // Another data bit is connected by a tristate buffer to the color output through a
- // 470 ohm resistor. The buffer allows the resistor to have no effect (tristate),
- // halve brightness (pull-down) or double brightness (pull-up). The data bit source
- // is bit 15 of each color RAM entry.
+ // Another data bit is connected by a tristate buffer to the color output through a
+ // 470 ohm resistor. The buffer allows the resistor to have no effect (tristate),
+ // halve brightness (pull-down) or double brightness (pull-up). The data bit source
+ // is bit 15 of each color RAM entry.
//
-
+
// compute weight table for regular palette entries
static const int resistances_normal[6] = { 3900, 2000, 1000, 1000/2, 1000/4, 0 };
double weights_normal[6];
diff --git a/src/mame/machine/segaic16.h b/src/mame/machine/segaic16.h
index 8e6286647e5..724df5fedb3 100644
--- a/src/mame/machine/segaic16.h
+++ b/src/mame/machine/segaic16.h
@@ -90,7 +90,7 @@ public:
// open bus read helpers
DECLARE_READ16_MEMBER( open_bus_r );
-
+
// palette helpers
DECLARE_WRITE16_MEMBER( paletteram_w );
@@ -102,7 +102,7 @@ public: // -- stupid system16.c
// memory pointers
required_shared_ptr<UINT16> m_paletteram;
protected:
-
+
// internal state
bool m_open_bus_recurse; // flag to track recursion through open_bus_r
UINT32 m_palette_entries; // number of palette entries
diff --git a/src/mame/machine/seicop.c b/src/mame/machine/seicop.c
index 3ed02d815b3..2c7131bdfaf 100644
--- a/src/mame/machine/seicop.c
+++ b/src/mame/machine/seicop.c
@@ -1408,7 +1408,7 @@ commands 0x8100/0x8900:
status always 0x8007 (doesn't seem to care)
raw | amp | scale | sin | cos |
------------------------------------------
-y 0x00 x 0x00000000 0x00000000 (i.e. if amp is 0 then sin/cos are zero too)
+y 0x00 x 0x00000000 0x00000000 (i.e. if amp is 0 then sin/cos are zero too)
0 0x40 0 0x00000000 0x00020000
0 0x40 1 0x00000000 0x00040000
0 0x40 2 0x00000000 0x00080000
@@ -2058,11 +2058,11 @@ static WRITE16_HANDLER( generic_cop_w )
case (0x03c/2): { cop_43c = data; break; }
case (0x03e/2):
/*
- 0 in all 68k based games
- 0xffff in raiden2 / raidendx
- 0x2000 in zeroteam / xsedae
- it's always setted up just before the 0x474 register
- */
+ 0 in all 68k based games
+ 0xffff in raiden2 / raidendx
+ 0x2000 in zeroteam / xsedae
+ it's always setted up just before the 0x474 register
+ */
break;
/* brightness control */
@@ -2072,14 +2072,14 @@ static WRITE16_HANDLER( generic_cop_w )
/* DMA / layer clearing section */
case (0x074/2):
/*
- This sets up a DMA mode of some sort
- 0x0e00: grainbow, cupsoc
- 0x0a00: legionna, godzilla, denjinmk
- 0x0600: heatbrl
- 0x1e00: zeroteam, xsedae
- raiden2 and raidendx doesn't set this up, this could indicate that this is related to the non-private buffer DMAs
- (both only uses 0x14 and 0x15 as DMAs)
- */
+ This sets up a DMA mode of some sort
+ 0x0e00: grainbow, cupsoc
+ 0x0a00: legionna, godzilla, denjinmk
+ 0x0600: heatbrl
+ 0x1e00: zeroteam, xsedae
+ raiden2 and raidendx doesn't set this up, this could indicate that this is related to the non-private buffer DMAs
+ (both only uses 0x14 and 0x15 as DMAs)
+ */
break;
/* used in palette DMAs, for fading effects */
diff --git a/src/mame/machine/snes.c b/src/mame/machine/snes.c
index e7d069e8864..265d821c8cf 100644
--- a/src/mame/machine/snes.c
+++ b/src/mame/machine/snes.c
@@ -577,7 +577,7 @@ READ8_HANDLER( snes_r_io )
break;
}
-// printf("unsupported read: offset == %08x\n", offset);
+// printf("unsupported read: offset == %08x\n", offset);
/* Unsupported reads returns open bus */
// printf("%02x %02x\n",offset,snes_open_bus_r(space, 0));
@@ -735,10 +735,10 @@ WRITE8_HANDLER( snes_w_io )
case MPYM: /* Multiplication result (mid) */
case MPYH: /* Multiplication result (high) */
case RDIO:
-// case RDDIVL:
-// case RDDIVH:
-// case RDMPYL:
-// case RDMPYH:
+// case RDDIVL:
+// case RDDIVH:
+// case RDMPYL:
+// case RDMPYH:
case JOY1L:
case JOY1H:
case JOY2L:
@@ -1681,13 +1681,13 @@ MACHINE_START( snes )
state->m_superfx = machine.device<cpu_device>("superfx");
state->m_maincpu->space(AS_PROGRAM)->set_direct_update_handler(direct_update_delegate(FUNC(snes_state::snes_direct), state));
-// state->m_soundcpu->space(AS_PROGRAM)->set_direct_update_handler(direct_update_delegate(FUNC(snes_state::snes_spc_direct), state));
+// state->m_soundcpu->space(AS_PROGRAM)->set_direct_update_handler(direct_update_delegate(FUNC(snes_state::snes_spc_direct), state));
// power-on sets these registers like this
snes_ram[WRIO] = 0xff;
-// snes_ram[WRMPYA] = 0xff;
-// snes_ram[WRDIVL] = 0xff;
-// snes_ram[WRDIVH] = 0xff;
+// snes_ram[WRMPYA] = 0xff;
+// snes_ram[WRDIVL] = 0xff;
+// snes_ram[WRDIVH] = 0xff;
switch (state->m_has_addon_chip)
{
diff --git a/src/mame/machine/snes7110.c b/src/mame/machine/snes7110.c
index 214e6acbbe9..1b30c51d28c 100644
--- a/src/mame/machine/snes7110.c
+++ b/src/mame/machine/snes7110.c
@@ -788,7 +788,7 @@ enum RTC_Mode
static const UINT32 spc7110_months[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
-struct snes_spc7110_t
+struct snes_spc7110_t
{
//==================
//decompression unit
diff --git a/src/mame/machine/snescx4.h b/src/mame/machine/snescx4.h
index e780c7ffa48..a5bd4688d8f 100644
--- a/src/mame/machine/snescx4.h
+++ b/src/mame/machine/snescx4.h
@@ -8,7 +8,7 @@
***************************************************************************/
-struct CX4
+struct CX4
{
UINT8 ram[0x0c00];
UINT8 reg[0x0100];
diff --git a/src/mame/machine/snessdd1.c b/src/mame/machine/snessdd1.c
index 5d3dbd45b5e..e2e07f19583 100644
--- a/src/mame/machine/snessdd1.c
+++ b/src/mame/machine/snessdd1.c
@@ -178,7 +178,7 @@ static UINT8 SDD1_BG_getBit(SDD1_BG* thisptr, UINT8* endOfRun)
}
-struct SDD1_PEM_state
+struct SDD1_PEM_state
{
UINT8 code_num;
UINT8 nextIfMPS;
@@ -222,7 +222,7 @@ static const SDD1_PEM_state SDD1_PEM_evolution_table[33] =
{ 7,24,22}
};
-struct SDD1_PEM_ContextInfo
+struct SDD1_PEM_ContextInfo
{
UINT8 status;
UINT8 MPS;
diff --git a/src/mame/machine/steppers.c b/src/mame/machine/steppers.c
index e95d44a4be6..d8cc660a8ef 100644
--- a/src/mame/machine/steppers.c
+++ b/src/mame/machine/steppers.c
@@ -47,7 +47,7 @@ static void update_optic(int which);
/* local vars */
-struct stepper
+struct stepper
{
const stepper_interface *intf;
UINT8 pattern, /* coil pattern */
diff --git a/src/mame/machine/stvcd.c b/src/mame/machine/stvcd.c
index 0631dcc6641..679f4c6b8bc 100644
--- a/src/mame/machine/stvcd.c
+++ b/src/mame/machine/stvcd.c
@@ -46,7 +46,7 @@ static void cd_playdata(running_machine &machine);
#define MAX_BLOCKS (200)
#define MAX_DIR_SIZE (256*1024)
-struct direntryT
+struct direntryT
{
UINT8 record_size;
UINT8 xa_record_size;
@@ -66,7 +66,7 @@ struct direntryT
UINT8 name[128];
};
-struct filterT
+struct filterT
{
UINT8 mode;
UINT8 chan;
@@ -81,7 +81,7 @@ struct filterT
UINT32 range;
};
-struct blockT
+struct blockT
{
INT32 size; // size of block
INT32 FAD; // FAD on disc
@@ -92,7 +92,7 @@ struct blockT
UINT8 cinf; // coding information
};
-struct partitionT
+struct partitionT
{
INT32 size;
blockT *blocks[MAX_BLOCKS];
@@ -101,7 +101,7 @@ struct partitionT
};
// 16-bit transfer types
-enum transT
+enum transT
{
XFERTYPE_INVALID,
XFERTYPE_TOC,
@@ -112,7 +112,7 @@ enum transT
};
// 32-bit transfer types
-enum trans32T
+enum trans32T
{
XFERTYPE32_INVALID,
XFERTYPE32_GETSECTOR,
diff --git a/src/mame/video/armedf.c b/src/mame/video/armedf.c
index 90a9896d464..ec56cc7a8d7 100644
--- a/src/mame/video/armedf.c
+++ b/src/mame/video/armedf.c
@@ -121,7 +121,7 @@ VIDEO_START_MEMBER(armedf_state,terraf)
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(armedf_state::get_bg_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 32);
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(armedf_state::get_fg_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 32);
- m_tx_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(armedf_state::get_nb1414m4_tx_tile_info),this),
+ m_tx_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(armedf_state::get_nb1414m4_tx_tile_info),this),
(m_scroll_type == 2) ? tilemap_mapper_delegate(FUNC(armedf_state::armedf_scan_type3),this) : tilemap_mapper_delegate(FUNC(armedf_state::armedf_scan_type2),this), 8, 8, 64, 32);
m_bg_tilemap->set_transparent_pen(0xf);
diff --git a/src/mame/video/bfm_dm01.c b/src/mame/video/bfm_dm01.c
index a9c608c79bd..4750f91b01a 100644
--- a/src/mame/video/bfm_dm01.c
+++ b/src/mame/video/bfm_dm01.c
@@ -52,7 +52,7 @@ Standard dm01 memorymap
#define LOG(x) do { if (VERBOSE) logerror x; } while (0)
-struct bfmdm01
+struct bfmdm01
{
const bfmdm01_interface *intf;
int data_avail,
diff --git a/src/mame/video/bwing.c b/src/mame/video/bwing.c
index 69fa184658a..ad4332ec5f3 100644
--- a/src/mame/video/bwing.c
+++ b/src/mame/video/bwing.c
@@ -195,7 +195,7 @@ TILEMAP_MAPPER_MEMBER(bwing_state::bwing_scan_cols)
void bwing_state::video_start()
{
-// UINT32 *dwptr;
+// UINT32 *dwptr;
int i;
m_charmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bwing_state::get_charinfo),this), TILEMAP_SCAN_COLS, 8, 8, 32, 32);
@@ -225,15 +225,15 @@ void bwing_state::video_start()
// m_bgfx = machine().gfx[3];
machine().gfx[3]->set_source(m_srbase[1] + 0x1000);
/*
- WTF??
-
- dwptr = machine().gfx[2]->pen_usage();
- if (dwptr)
- {
- dwptr[0] = 0;
- for(i = 1; i < BW_NTILES; i++)
- dwptr[i] = -1;
- }
+ WTF??
+
+ dwptr = machine().gfx[2]->pen_usage();
+ if (dwptr)
+ {
+ dwptr[0] = 0;
+ for(i = 1; i < BW_NTILES; i++)
+ dwptr[i] = -1;
+ }
*/
}
diff --git a/src/mame/video/dc.c b/src/mame/video/dc.c
index 2ed7a7f74d6..2aba2cf3f88 100644
--- a/src/mame/video/dc.c
+++ b/src/mame/video/dc.c
@@ -150,7 +150,7 @@ typedef struct
float x, y, w, u, v;
} vert;
-struct strip
+struct strip
{
int svert, evert;
texinfo ti;
diff --git a/src/mame/video/deco16ic.h b/src/mame/video/deco16ic.h
index 0ebe52f9ce4..755e118ebae 100644
--- a/src/mame/video/deco16ic.h
+++ b/src/mame/video/deco16ic.h
@@ -41,7 +41,7 @@ public:
~deco16ic_device() { global_free(m_token); }
// access to legacy token
- void *token() const { assert(m_token != NULL); return m_token; }
+ void *token() const { assert(m_token != NULL); return m_token; }
protected:
// device-level overrides
virtual void device_config_complete();
@@ -55,7 +55,7 @@ private:
TILE_GET_INFO_MEMBER(get_pf2_tile_info);
TILE_GET_INFO_MEMBER(get_pf1_tile_info);
TILE_GET_INFO_MEMBER(get_pf2_tile_info_b);
- TILE_GET_INFO_MEMBER(get_pf1_tile_info_b);
+ TILE_GET_INFO_MEMBER(get_pf1_tile_info_b);
};
extern const device_type DECO16IC;
diff --git a/src/mame/video/galaxian.c b/src/mame/video/galaxian.c
index 348f36b0493..09d535b22a8 100644
--- a/src/mame/video/galaxian.c
+++ b/src/mame/video/galaxian.c
@@ -554,7 +554,7 @@ static void sprites_draw(running_machine &machine, bitmap_rgb32 &bitmap, const r
/* the existence of +1 (sprite vs tile layer) is supported by a LOT of games */
const int hoffset = 1;
-
+
/* 16 of the 256 pixels of the sprites are hard-clipped at the line buffer */
/* according to the schematics, it should be the first 16 pixels */
clip.min_x = MAX(clip.min_x, (!state->m_flipscreen_x) * (16 + hoffset) * GALAXIAN_XSCALE);
diff --git a/src/mame/video/gp9001.h b/src/mame/video/gp9001.h
index ba461445957..ad7fee05899 100644
--- a/src/mame/video/gp9001.h
+++ b/src/mame/video/gp9001.h
@@ -72,10 +72,10 @@ protected:
address_space_config m_space_config;
UINT8 m_gfxregion;
-
+
TILE_GET_INFO_MEMBER(get_top0_tile_info);
TILE_GET_INFO_MEMBER(get_fg0_tile_info);
- TILE_GET_INFO_MEMBER(get_bg0_tile_info);
+ TILE_GET_INFO_MEMBER(get_bg0_tile_info);
};
extern const device_type GP9001_VDP;
diff --git a/src/mame/video/hng64.c b/src/mame/video/hng64.c
index 2053434cce4..5360ce91fc2 100644
--- a/src/mame/video/hng64.c
+++ b/src/mame/video/hng64.c
@@ -681,7 +681,7 @@ WRITE32_MEMBER(hng64_state::hng64_videoram_w)
}
/* internal set of transparency states for rendering */
-enum hng64trans_t
+enum hng64trans_t
{
HNG64_TILEMAP_NORMAL = 1,
HNG64_TILEMAP_ADDITIVE,
diff --git a/src/mame/video/homerun.c b/src/mame/video/homerun.c
index 1067887e0b8..c1c4e1ce460 100644
--- a/src/mame/video/homerun.c
+++ b/src/mame/video/homerun.c
@@ -32,11 +32,11 @@ WRITE8_MEMBER(homerun_state::homerun_scrollx_w)
WRITE8_DEVICE_HANDLER(homerun_banking_w)
{
homerun_state *state = device->machine().driver_data<homerun_state>();
-
+
// games do mid-screen gfx bank switching
int vpos = device->machine().primary_screen->vpos();
device->machine().primary_screen->update_partial(vpos);
-
+
// d0-d1: gfx bank
// d2-d4: ?
// d5-d7: prg bank
@@ -56,15 +56,15 @@ WRITE8_MEMBER(homerun_state::homerun_color_w)
m_colorram[offset] = data;
/* from PCB photo:
- bit 7: 470 ohm resistor \
- bit 6: 220 ohm resistor - --> 470 ohm resistor --> blue
- bit 5: 470 ohm resistor \
- bit 4: 220 ohm resistor - --> 470 ohm resistor --> green
- bit 3: 1 kohm resistor /
- bit 2: 470 ohm resistor \
- bit 1: 220 ohm resistor - --> 470 ohm resistor --> red
- bit 0: 1 kohm resistor /
- */
+ bit 7: 470 ohm resistor \
+ bit 6: 220 ohm resistor - --> 470 ohm resistor --> blue
+ bit 5: 470 ohm resistor \
+ bit 4: 220 ohm resistor - --> 470 ohm resistor --> green
+ bit 3: 1 kohm resistor /
+ bit 2: 470 ohm resistor \
+ bit 1: 220 ohm resistor - --> 470 ohm resistor --> red
+ bit 0: 1 kohm resistor /
+ */
// let's implement it the old fashioned way until it's found out how exactly the resnet is hooked up
int r, g, b;
@@ -124,7 +124,7 @@ static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap, const
color,
flipx,flipy,
sx,sy,0);
-
+
// wraparound
drawgfx_transpen(bitmap, cliprect, machine.gfx[1],
code,
diff --git a/src/mame/video/jaguar.c b/src/mame/video/jaguar.c
index f68c9746c37..96c0f31d719 100644
--- a/src/mame/video/jaguar.c
+++ b/src/mame/video/jaguar.c
@@ -151,9 +151,9 @@
#define LOG_UNHANDLED_BLITS 0
-// FIXME: this should be 1, but then MAME performance will be s*** with this
+// FIXME: this should be 1, but then MAME performance will be s*** with this
// (i.e. it drops the performance from 400% to 6% on an i5 machine).
-// But the PIT irq is definitely needed by some games (for example Pitfall refuses
+// But the PIT irq is definitely needed by some games (for example Pitfall refuses
// to enter into gameplay without this enabled).
const int PIT_MULT_DBG_HACK = 64;
@@ -715,11 +715,11 @@ void jaguar_state::device_timer(emu_timer &timer, device_timer_id id, int param,
case TID_SCANLINE:
scanline_update(param);
break;
-
+
case TID_BLITTER_DONE:
m_blitter_status = 1;
break;
-
+
case TID_PIT:
m_cpu_irq_state |= 4;
update_cpu_irq();
@@ -729,11 +729,11 @@ void jaguar_state::device_timer(emu_timer &timer, device_timer_id id, int param,
timer_set(sample_period, TID_PIT);
}
break;
-
+
case TID_SERIAL:
serial_update();
break;
-
+
case TID_GPU_SYNC:
// if a command is still pending, and we haven't maxed out our timer, set a new one
if (m_gpu_command_pending && param < 1000)
diff --git a/src/mame/video/kaneko_spr.h b/src/mame/video/kaneko_spr.h
index 8a5e2df629e..36120acfcc0 100644
--- a/src/mame/video/kaneko_spr.h
+++ b/src/mame/video/kaneko_spr.h
@@ -11,7 +11,7 @@
-struct kaneko16_priority_t
+struct kaneko16_priority_t
{
int sprite[4];
};
diff --git a/src/mame/video/konamigx.c b/src/mame/video/konamigx.c
index 023ec16c492..3b1be296883 100644
--- a/src/mame/video/konamigx.c
+++ b/src/mame/video/konamigx.c
@@ -355,8 +355,8 @@ static void K053936GP_0_zoom_draw(running_machine &machine, bitmap_rgb32 &bitmap
static void K053936GP_1_zoom_draw(running_machine &machine, bitmap_rgb32 &bitmap, const rectangle &cliprect,
tilemap_t *tmap, int tilebpp, int blend, int alpha, int pixeldouble_output)
{
-// konamigx_state *state = machine.driver_data<konamigx_state>();
-// K053936GP_zoom_draw(machine, 1,K053936_1_ctrl,K053936_1_linectrl,bitmap,cliprect,tmap,tilebpp,blend,alpha, pixeldouble_output);
+// konamigx_state *state = machine.driver_data<konamigx_state>();
+// K053936GP_zoom_draw(machine, 1,K053936_1_ctrl,K053936_1_linectrl,bitmap,cliprect,tmap,tilebpp,blend,alpha, pixeldouble_output);
}
diff --git a/src/mame/video/konicdev.h b/src/mame/video/konicdev.h
index bfe9dcb3e48..aa2671d1f42 100644
--- a/src/mame/video/konicdev.h
+++ b/src/mame/video/konicdev.h
@@ -180,7 +180,7 @@ protected:
private:
// internal state
void *m_token;
-
+
TILEMAP_MAPPER_MEMBER(k007342_scan);
TILE_GET_INFO_MEMBER(k007342_get_tile_info0);
TILE_GET_INFO_MEMBER(k007342_get_tile_info1);
@@ -224,7 +224,7 @@ protected:
private:
// internal state
void *m_token;
-
+
TILE_GET_INFO_MEMBER(k052109_get_tile_info0);
TILE_GET_INFO_MEMBER(k052109_get_tile_info1);
TILE_GET_INFO_MEMBER(k052109_get_tile_info2);
@@ -330,7 +330,7 @@ protected:
private:
// internal state
void *m_token;
-
+
TILE_GET_INFO_MEMBER(k051316_get_tile_info0);
};
@@ -549,7 +549,7 @@ protected:
private:
// internal state
void *m_token;
-
+
TILEMAP_MAPPER_MEMBER(k001604_scan_layer_8x8_0_size0);
TILEMAP_MAPPER_MEMBER(k001604_scan_layer_8x8_0_size1);
TILEMAP_MAPPER_MEMBER(k001604_scan_layer_8x8_1_size0);
@@ -582,7 +582,7 @@ protected:
private:
// internal state
void *m_token;
-
+
TILE_GET_INFO_MEMBER(k037122_tile_info_layer0);
TILE_GET_INFO_MEMBER(k037122_tile_info_layer1);
};
diff --git a/src/mame/video/legionna.c b/src/mame/video/legionna.c
index bf331d10278..6c596913bcd 100644
--- a/src/mame/video/legionna.c
+++ b/src/mame/video/legionna.c
@@ -2,15 +2,15 @@
Legionnaire / Heated Barrel video hardware (derived from D-Con)
- priority test (preliminary):
- - OBJ 0
- - TXT
- - OBJ 1
- - BK3
- - OBJ 2
- - MBK
- - OBJ 3
- - LBK
+ priority test (preliminary):
+ - OBJ 0
+ - TXT
+ - OBJ 1
+ - BK3
+ - OBJ 2
+ - MBK
+ - OBJ 3
+ - LBK
***************************************************************************/
@@ -175,7 +175,7 @@ VIDEO_START_MEMBER(legionna_state,denjinmk)
m_has_extended_banking = 1;
m_has_extended_priority = 0;
-// m_background_layer->set_transparent_pen(15);
+// m_background_layer->set_transparent_pen(15);
m_midground_layer->set_transparent_pen(15);
m_foreground_layer->set_transparent_pen(15);
m_text_layer->set_transparent_pen(7);//?
diff --git a/src/mame/video/madalien.c b/src/mame/video/madalien.c
index 8f5d740380c..fc47557d7af 100644
--- a/src/mame/video/madalien.c
+++ b/src/mame/video/madalien.c
@@ -123,8 +123,8 @@ VIDEO_START_MEMBER(madalien_state,madalien)
static const tilemap_mapper_delegate scan_functions[4] =
{
- tilemap_mapper_delegate(FUNC(madalien_state::scan_mode0),this),
- tilemap_mapper_delegate(FUNC(madalien_state::scan_mode1),this),
+ tilemap_mapper_delegate(FUNC(madalien_state::scan_mode0),this),
+ tilemap_mapper_delegate(FUNC(madalien_state::scan_mode1),this),
tilemap_mapper_delegate(FUNC(madalien_state::scan_mode2),this),
tilemap_mapper_delegate(FUNC(madalien_state::scan_mode3),this)
};
diff --git a/src/mame/video/mcd212.h b/src/mame/video/mcd212.h
index 396ea504cfc..55b0303138b 100644
--- a/src/mame/video/mcd212.h
+++ b/src/mame/video/mcd212.h
@@ -24,7 +24,7 @@ TODO:
#include "emu.h"
-struct mcd212_channel_t
+struct mcd212_channel_t
{
UINT8 csrr;
UINT16 csrw;
diff --git a/src/mame/video/midzeus2.c b/src/mame/video/midzeus2.c
index e8e624c10a9..e08768524b5 100644
--- a/src/mame/video/midzeus2.c
+++ b/src/mame/video/midzeus2.c
@@ -77,7 +77,7 @@ static int texel_width;
static float zbase;
#if TRACK_REG_USAGE
-struct reg_info
+struct reg_info
{
struct reg_info *next;
UINT32 value;
diff --git a/src/mame/video/model2.c b/src/mame/video/model2.c
index 39d8878b318..75fde2fd856 100644
--- a/src/mame/video/model2.c
+++ b/src/mame/video/model2.c
@@ -104,13 +104,13 @@
*
*******************************************/
-struct plane
+struct plane
{
poly_vertex normal;
float distance;
};
-struct texture_parameter
+struct texture_parameter
{
float diffuse;
float ambient;
@@ -118,7 +118,7 @@ struct texture_parameter
float specular_scale;
};
-struct triangle
+struct triangle
{
void * next;
poly_vertex v[3];
@@ -129,7 +129,7 @@ struct triangle
INT16 center[2];
};
-struct quad_m2
+struct quad_m2
{
poly_vertex v[4];
UINT16 z;
diff --git a/src/mame/video/model3.c b/src/mame/video/model3.c
index 10d6265e55e..38e0c4abbd3 100644
--- a/src/mame/video/model3.c
+++ b/src/mame/video/model3.c
@@ -12,7 +12,7 @@
-struct TRIANGLE
+struct TRIANGLE
{
poly_vertex v[3];
UINT8 texture_x, texture_y;
diff --git a/src/mame/video/namcona1.c b/src/mame/video/namcona1.c
index 36563f09815..f3945109fe8 100644
--- a/src/mame/video/namcona1.c
+++ b/src/mame/video/namcona1.c
@@ -277,11 +277,11 @@ static void UpdateGfx(running_machine &machine)
void namcona1_state::video_start()
{
- static const tilemap_get_info_delegate get_info[4] = {
- tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info0),this),
- tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info1),this),
- tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info2),this),
- tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info3),this)
+ static const tilemap_get_info_delegate get_info[4] = {
+ tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info0),this),
+ tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info1),this),
+ tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info2),this),
+ tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info3),this)
};
int i;
diff --git a/src/mame/video/namcos21.c b/src/mame/video/namcos21.c
index 16fa39a0b18..81a734cef16 100644
--- a/src/mame/video/namcos21.c
+++ b/src/mame/video/namcos21.c
@@ -233,13 +233,13 @@ SCREEN_UPDATE_IND16( namcos21 )
/*********************************************************************************************/
-struct vertex
+struct vertex
{
double x,y;
double z;
};
-struct edge
+struct edge
{
double x;
double z;
diff --git a/src/mame/video/namcos22.c b/src/mame/video/namcos22.c
index f51af55e499..7d8b1b98210 100644
--- a/src/mame/video/namcos22.c
+++ b/src/mame/video/namcos22.c
@@ -317,7 +317,7 @@ poly3d_NoClip( void )
mClip.scissor.set(0, 639, 0, 479);
}
-struct Poly3dVertex
+struct Poly3dVertex
{
float x,y,z;
int u,v; /* 0..0xfff */
@@ -953,7 +953,7 @@ static struct
int power; /* 0.0..1.0 */
} mCamera;
-enum SceneNodeType
+enum SceneNodeType
{
eSCENENODE_NONLEAF,
eSCENENODE_QUAD3D,
diff --git a/src/mame/video/sega16sp.c b/src/mame/video/sega16sp.c
index c9eb594631b..3518d931c67 100644
--- a/src/mame/video/sega16sp.c
+++ b/src/mame/video/sega16sp.c
@@ -137,36 +137,36 @@ sega_hangon_sprite_device::sega_hangon_sprite_device(const machine_config &mconf
void sega_hangon_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
//
- // Hang On-style sprites
+ // Hang On-style sprites
//
- // Offs Bits Usage
- // +0 bbbbbbbb -------- Bottom scanline of sprite - 1
- // +0 -------- tttttttt Top scanline of sprite - 1
- // +2 bbbb---- -------- Sprite bank
- // +2 -------x xxxxxxxx X position of sprite (position $BD is screen position 0)
- // +4 pppppppp pppppppp Signed 16-bit pitch value between scanlines
- // +6 -ooooooo oooooooo Offset within selected sprite bank
- // +6 f------- -------- Horizontal flip: read the data backwards if set
- // +8 --cccccc -------- Sprite color palette
- // +8 -------- zzzzzz-- Zoom factor
- // +8 -------- ------pp Sprite priority
- // +E dddddddd dddddddd Scratch space for current address
+ // Offs Bits Usage
+ // +0 bbbbbbbb -------- Bottom scanline of sprite - 1
+ // +0 -------- tttttttt Top scanline of sprite - 1
+ // +2 bbbb---- -------- Sprite bank
+ // +2 -------x xxxxxxxx X position of sprite (position $BD is screen position 0)
+ // +4 pppppppp pppppppp Signed 16-bit pitch value between scanlines
+ // +6 -ooooooo oooooooo Offset within selected sprite bank
+ // +6 f------- -------- Horizontal flip: read the data backwards if set
+ // +8 --cccccc -------- Sprite color palette
+ // +8 -------- zzzzzz-- Zoom factor
+ // +8 -------- ------pp Sprite priority
+ // +E dddddddd dddddddd Scratch space for current address
//
- // Final bitmap format:
+ // Final bitmap format:
//
- // ----pp-- -------- Sprite priority
- // ------cc cccc---- Sprite color palette
- // -------- ----llll 4-bit pixel data
+ // ----pp-- -------- Sprite priority
+ // ------cc cccc---- Sprite color palette
+ // -------- ----llll 4-bit pixel data
//
- // Special notes:
+ // Special notes:
//
- // There is an interaction between the horizonal flip bit and the offset.
- // The offset is maintained as a 16-bit value, even though only the lower
- // 15 bits are used for the address. The top bit is used to control flipping.
- // This means that if the low 15 bits overflow during rendering, the sprite
- // data will be read backwards after the overflow. This is important to
- // emulate correctly as many games make use of this feature to render sprites
- // at the beginning of a bank.
+ // There is an interaction between the horizonal flip bit and the offset.
+ // The offset is maintained as a 16-bit value, even though only the lower
+ // 15 bits are used for the address. The top bit is used to control flipping.
+ // This means that if the low 15 bits overflow during rendering, the sprite
+ // data will be read backwards after the overflow. This is important to
+ // emulate correctly as many games make use of this feature to render sprites
+ // at the beginning of a bank.
//
// render the sprites in order
@@ -275,14 +275,14 @@ void sega_hangon_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
break;
}
}
-
+
// update bounds
if (x > maxx) maxx = x;
if (miny == -1) miny = y;
maxy = y;
}
}
-
+
// mark dirty
if (miny != -1)
mark_dirty(minx, maxx, miny, maxy);
@@ -313,41 +313,41 @@ sega_sharrier_sprite_device::sega_sharrier_sprite_device(const machine_config &m
void sega_sharrier_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
//
- // Space Harrier-style sprites
+ // Space Harrier-style sprites
//
- // Offs Bits Usage
- // +0 bbbbbbbb -------- Bottom scanline of sprite - 1
- // +0 -------- tttttttt Top scanline of sprite - 1
- // +2 bbbb---- -------- Sprite bank
- // +2 -------x xxxxxxxx X position of sprite (position $BD is screen position 0)
- // +4 s------- -------- Sprite shadow disable (0=enable, 1=disable)
- // +4 -p------ -------- Sprite priority
- // +4 --cccccc -------- Sprite color palette
- // +4 -------- -ppppppp Signed 7-bit pitch value between scanlines
- // +6 f------- -------- Horizontal flip: read the data backwards if set
- // +6 -ooooooo oooooooo Offset within selected sprite bank
- // +8 --zzzzzz -------- Horizontal zoom factor
- // +8 -------- --zzzzzz Vertical zoom factor
- // +E dddddddd dddddddd Scratch space for current address
+ // Offs Bits Usage
+ // +0 bbbbbbbb -------- Bottom scanline of sprite - 1
+ // +0 -------- tttttttt Top scanline of sprite - 1
+ // +2 bbbb---- -------- Sprite bank
+ // +2 -------x xxxxxxxx X position of sprite (position $BD is screen position 0)
+ // +4 s------- -------- Sprite shadow disable (0=enable, 1=disable)
+ // +4 -p------ -------- Sprite priority
+ // +4 --cccccc -------- Sprite color palette
+ // +4 -------- -ppppppp Signed 7-bit pitch value between scanlines
+ // +6 f------- -------- Horizontal flip: read the data backwards if set
+ // +6 -ooooooo oooooooo Offset within selected sprite bank
+ // +8 --zzzzzz -------- Horizontal zoom factor
+ // +8 -------- --zzzzzz Vertical zoom factor
+ // +E dddddddd dddddddd Scratch space for current address
//
- // Final bitmap format:
+ // Final bitmap format:
//
- // ----s--- -------- Sprite shadow disable
- // -----p-- -------- Sprite priority
- // ------cc cccc---- Sprite color palette
- // -------- ----llll 4-bit pixel data
+ // ----s--- -------- Sprite shadow disable
+ // -----p-- -------- Sprite priority
+ // ------cc cccc---- Sprite color palette
+ // -------- ----llll 4-bit pixel data
//
- // Special notes:
+ // Special notes:
//
- // There is an interaction between the horizonal flip bit and the offset.
- // The offset is maintained as a 16-bit value, even though only the lower
- // 15 bits are used for the address. The top bit is used to control flipping.
- // This means that if the low 15 bits overflow during rendering, the sprite
- // data will be read backwards after the overflow. This is important to
- // emulate correctly as many games make use of this feature to render sprites
- // at the beginning of a bank.
+ // There is an interaction between the horizonal flip bit and the offset.
+ // The offset is maintained as a 16-bit value, even though only the lower
+ // 15 bits are used for the address. The top bit is used to control flipping.
+ // This means that if the low 15 bits overflow during rendering, the sprite
+ // data will be read backwards after the overflow. This is important to
+ // emulate correctly as many games make use of this feature to render sprites
+ // at the beginning of a bank.
//
-
+
// render the sprites in order
const UINT32 *spritebase = reinterpret_cast<const UINT32 *>(region()->base());
UINT8 numbanks = region()->bytes() / 0x20000;
@@ -462,14 +462,14 @@ void sega_sharrier_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &cl
break;
}
}
-
+
// update bounds
if (x > maxx) maxx = x;
if (miny == -1) miny = y;
maxy = y;
}
}
-
+
// mark dirty
if (miny != -1)
mark_dirty(minx, maxx, miny, maxy);
@@ -500,35 +500,35 @@ sega_sys16a_sprite_device::sega_sys16a_sprite_device(const machine_config &mconf
void sega_sys16a_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
//
- // System 16A-style sprites
+ // System 16A-style sprites
//
- // Offs Bits Usage
- // +0 bbbbbbbb -------- Bottom scanline of sprite - 1
- // +0 -------- tttttttt Top scanline of sprite - 1
- // +2 -------x xxxxxxxx X position of sprite (position $BD is screen position 0)
- // +4 pppppppp pppppppp Signed 16-bit pitch value between scanlines
- // +6 -ooooooo oooooooo Offset within selected sprite bank
- // +6 f------- -------- Horizontal flip: read the data backwards if set
- // +8 --cccccc -------- Sprite color palette
- // +8 -------- -bbb---- Sprite bank
- // +8 -------- ------pp Sprite priority
- // +E dddddddd dddddddd Scratch space for current address
+ // Offs Bits Usage
+ // +0 bbbbbbbb -------- Bottom scanline of sprite - 1
+ // +0 -------- tttttttt Top scanline of sprite - 1
+ // +2 -------x xxxxxxxx X position of sprite (position $BD is screen position 0)
+ // +4 pppppppp pppppppp Signed 16-bit pitch value between scanlines
+ // +6 -ooooooo oooooooo Offset within selected sprite bank
+ // +6 f------- -------- Horizontal flip: read the data backwards if set
+ // +8 --cccccc -------- Sprite color palette
+ // +8 -------- -bbb---- Sprite bank
+ // +8 -------- ------pp Sprite priority
+ // +E dddddddd dddddddd Scratch space for current address
//
- // Final bitmap format:
+ // Final bitmap format:
//
- // ----pp-- -------- Sprite priority
- // ------cc cccc---- Sprite color palette
- // -------- ----llll 4-bit pixel data
+ // ----pp-- -------- Sprite priority
+ // ------cc cccc---- Sprite color palette
+ // -------- ----llll 4-bit pixel data
//
- // Special notes:
+ // Special notes:
//
- // There is an interaction between the horizonal flip bit and the offset.
- // The offset is maintained as a 16-bit value, even though only the lower
- // 15 bits are used for the address. The top bit is used to control flipping.
- // This means that if the low 15 bits overflow during rendering, the sprite
- // data will be read backwards after the overflow. This is important to
- // emulate correctly as many games make use of this feature to render sprites
- // at the beginning of a bank.
+ // There is an interaction between the horizonal flip bit and the offset.
+ // The offset is maintained as a 16-bit value, even though only the lower
+ // 15 bits are used for the address. The top bit is used to control flipping.
+ // This means that if the low 15 bits overflow during rendering, the sprite
+ // data will be read backwards after the overflow. This is important to
+ // emulate correctly as many games make use of this feature to render sprites
+ // at the beginning of a bank.
//
// render the sprites in order
@@ -636,7 +636,7 @@ void sega_sys16a_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
break;
}
}
-
+
// update bounds
if (x > maxx) maxx = x;
if (x < minx) minx = x;
@@ -644,7 +644,7 @@ void sega_sys16a_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
maxy = y;
}
}
-
+
// mark dirty
if (miny != -1)
mark_dirty(minx, maxx, miny, maxy);
@@ -677,7 +677,7 @@ bootleg_sys16a_sprite_device::bootleg_sys16a_sprite_device(const machine_config
//-------------------------------------------------
// static_set_remap -- configure sprite address
-// remapping
+// remapping
//-------------------------------------------------
void bootleg_sys16a_sprite_device::static_set_remap(device_t &device, UINT8 offs0, UINT8 offs1, UINT8 offs2, UINT8 offs3, UINT8 offs4, UINT8 offs5, UINT8 offs6, UINT8 offs7)
@@ -701,15 +701,15 @@ void bootleg_sys16a_sprite_device::static_set_remap(device_t &device, UINT8 offs
void bootleg_sys16a_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
//
- // Bootleg System 16A-style sprites
+ // Bootleg System 16A-style sprites
//
- // These are identical to regular System 16A sprites (see above), with two exceptions:
+ // These are identical to regular System 16A sprites (see above), with two exceptions:
//
- // 1. Addresses within each sprite entry are generally shuffled relative
- // to the original, and
+ // 1. Addresses within each sprite entry are generally shuffled relative
+ // to the original, and
//
- // 2. The pitch increment happens at the end, not at the beginning of
- // the loop.
+ // 2. The pitch increment happens at the end, not at the beginning of
+ // the loop.
//
// render the sprites in order
@@ -815,7 +815,7 @@ void bootleg_sys16a_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &c
break;
}
}
-
+
// update bounds
if (x > maxx) maxx = x;
if (x < minx) minx = x;
@@ -826,7 +826,7 @@ void bootleg_sys16a_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &c
// advance a row - must be done at the end on the bootlegs!
addr += pitch;
}
-
+
// mark dirty
if (miny != -1)
mark_dirty(minx, maxx, miny, maxy);
@@ -848,7 +848,7 @@ sega_sys16b_sprite_device::sega_sys16b_sprite_device(const machine_config &mconf
{
set_origin(184, 0x00);
}
-
+
//-------------------------------------------------
// draw -- render the sprites within the cliprect
@@ -857,33 +857,33 @@ sega_sys16b_sprite_device::sega_sys16b_sprite_device(const machine_config &mconf
void sega_sys16b_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
//
- // System 16B-style sprites
+ // System 16B-style sprites
//
- // Offs Bits Usage
- // +0 bbbbbbbb -------- Bottom scanline of sprite - 1
- // +0 -------- tttttttt Top scanline of sprite - 1
- // +2 -------x xxxxxxxx X position of sprite (position $BD is screen position 0)
- // +2 ---iiii- -------- Sprite/sprite priority for Y-board
- // +4 e------- -------- Signify end of sprite list
- // +4 -h------ -------- Hide this sprite
- // +4 -------f -------- Horizontal flip: read the data backwards if set
- // +4 -------- pppppppp Signed 8-bit pitch value between scanlines
- // +6 oooooooo oooooooo Offset within selected sprite bank
- // +8 ----bbbb -------- Sprite bank
- // +8 -------- pp------ Sprite priority, relative to tilemaps
- // +8 -------- --cccccc Sprite color palette
- // +A ------vv vvv----- Vertical zoom factor (0 = full size, 0x10 = half size)
- // +A -------- ---hhhhh Horizontal zoom factor (0 = full size, 0x10 = half size)
- // +E dddddddd dddddddd Scratch space for current address
+ // Offs Bits Usage
+ // +0 bbbbbbbb -------- Bottom scanline of sprite - 1
+ // +0 -------- tttttttt Top scanline of sprite - 1
+ // +2 -------x xxxxxxxx X position of sprite (position $BD is screen position 0)
+ // +2 ---iiii- -------- Sprite/sprite priority for Y-board
+ // +4 e------- -------- Signify end of sprite list
+ // +4 -h------ -------- Hide this sprite
+ // +4 -------f -------- Horizontal flip: read the data backwards if set
+ // +4 -------- pppppppp Signed 8-bit pitch value between scanlines
+ // +6 oooooooo oooooooo Offset within selected sprite bank
+ // +8 ----bbbb -------- Sprite bank
+ // +8 -------- pp------ Sprite priority, relative to tilemaps
+ // +8 -------- --cccccc Sprite color palette
+ // +A ------vv vvv----- Vertical zoom factor (0 = full size, 0x10 = half size)
+ // +A -------- ---hhhhh Horizontal zoom factor (0 = full size, 0x10 = half size)
+ // +E dddddddd dddddddd Scratch space for current address
//
- // Final bitmap format:
+ // Final bitmap format:
//
- // iiii---- -------- Sprite/sprite priority for Y-board
- // ----pp-- -------- Sprite priority
- // ------cc cccc---- Sprite color palette
- // -------- ----llll 4-bit pixel data
+ // iiii---- -------- Sprite/sprite priority for Y-board
+ // ----pp-- -------- Sprite priority
+ // ------cc cccc---- Sprite color palette
+ // -------- ----llll 4-bit pixel data
//
- // Note that the zooming described below is 100% accurate to the real board.
+ // Note that the zooming described below is 100% accurate to the real board.
//
// render the sprites in order
@@ -1008,7 +1008,7 @@ void sega_sys16b_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
break;
}
}
-
+
// update bounds
if (x > maxx) maxx = x;
if (x < minx) minx = x;
@@ -1016,7 +1016,7 @@ void sega_sys16b_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
maxy = y;
}
}
-
+
// mark dirty
if (miny != -1)
mark_dirty(minx, maxx, miny, maxy);
@@ -1065,39 +1065,39 @@ sega_xboard_sprite_device::sega_xboard_sprite_device(const machine_config &mconf
void sega_outrun_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
//
- // Out Run/X-Board-style sprites
+ // Out Run/X-Board-style sprites
//
- // Offs Bits Usage
- // +0 e------- -------- Signify end of sprite list
- // +0 -h-h---- -------- Hide this sprite if either bit is set
- // +0 ----bbb- -------- Sprite bank
- // +0 -------t tttttttt Top scanline of sprite + 256
- // +2 oooooooo oooooooo Offset within selected sprite bank
- // +4 ppppppp- -------- Signed 7-bit pitch value between scanlines
- // +4 -------x xxxxxxxx X position of sprite (position $BE is screen position 0)
- // +6 -s------ -------- Enable shadows
- // +6 --pp---- -------- Sprite priority, relative to tilemaps
- // +6 ------vv vvvvvvvv Vertical zoom factor (0x200 = full size, 0x100 = half size, 0x300 = 2x size)
- // +8 y------- -------- Render from top-to-bottom (1) or bottom-to-top (0) on screen
- // +8 -f------ -------- Horizontal flip: read the data backwards if set
- // +8 --x----- -------- Render from left-to-right (1) or right-to-left (0) on screen
- // +8 ------hh hhhhhhhh Horizontal zoom factor (0x200 = full size, 0x100 = half size, 0x300 = 2x size)
- // +E dddddddd dddddddd Scratch space for current address
+ // Offs Bits Usage
+ // +0 e------- -------- Signify end of sprite list
+ // +0 -h-h---- -------- Hide this sprite if either bit is set
+ // +0 ----bbb- -------- Sprite bank
+ // +0 -------t tttttttt Top scanline of sprite + 256
+ // +2 oooooooo oooooooo Offset within selected sprite bank
+ // +4 ppppppp- -------- Signed 7-bit pitch value between scanlines
+ // +4 -------x xxxxxxxx X position of sprite (position $BE is screen position 0)
+ // +6 -s------ -------- Enable shadows
+ // +6 --pp---- -------- Sprite priority, relative to tilemaps
+ // +6 ------vv vvvvvvvv Vertical zoom factor (0x200 = full size, 0x100 = half size, 0x300 = 2x size)
+ // +8 y------- -------- Render from top-to-bottom (1) or bottom-to-top (0) on screen
+ // +8 -f------ -------- Horizontal flip: read the data backwards if set
+ // +8 --x----- -------- Render from left-to-right (1) or right-to-left (0) on screen
+ // +8 ------hh hhhhhhhh Horizontal zoom factor (0x200 = full size, 0x100 = half size, 0x300 = 2x size)
+ // +E dddddddd dddddddd Scratch space for current address
//
- // Out Run only:
- // +A hhhhhhhh -------- Height in scanlines - 1
- // +A -------- -ccccccc Sprite color palette
+ // Out Run only:
+ // +A hhhhhhhh -------- Height in scanlines - 1
+ // +A -------- -ccccccc Sprite color palette
//
// X-Board only:
- // +A ----hhhh hhhhhhhh Height in scanlines - 1
- // +C -------- cccccccc Sprite color palette
+ // +A ----hhhh hhhhhhhh Height in scanlines - 1
+ // +C -------- cccccccc Sprite color palette
//
- // Final bitmap format:
+ // Final bitmap format:
//
- // -s------ -------- Shadow control
- // --pp---- -------- Sprite priority
- // ----cccc cccc---- Sprite color palette
- // -------- ----llll 4-bit pixel data
+ // -s------ -------- Shadow control
+ // --pp---- -------- Sprite priority
+ // ----cccc cccc---- Sprite color palette
+ // -------- ----llll 4-bit pixel data
//
// render the sprites in order
@@ -1214,7 +1214,7 @@ void sega_outrun_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
break;
}
}
-
+
// update bounds
if (x > maxx) maxx = x;
if (x < minx) minx = x;
@@ -1227,7 +1227,7 @@ void sega_outrun_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
addr += pitch * (yacc >> 9);
yacc &= 0x1ff;
}
-
+
// mark dirty
if (miny != -1)
mark_dirty(minx, maxx, miny, maxy);
@@ -1258,36 +1258,36 @@ sega_yboard_sprite_device::sega_yboard_sprite_device(const machine_config &mconf
void sega_yboard_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
//
- // Y-Board-style sprites
+ // Y-Board-style sprites
//
- // Offs Bits Usage
- // +0 e------- -------- Signify end of sprite list
- // +0 -----iii iiiiiiii Address of indirection table (/16)
- // +2 bbbb---- -------- Upper 4 bits of bank index
- // +2 ----xxxx xxxxxxxx X position of sprite (position $600 is screen position 0)
- // +4 bbbb---- -------- Lower 4 bits of bank index
- // +4 ----yyyy yyyyyyyy Y position of sprite (position $600 is screen position 0)
- // +6 oooooooo oooooooo Offset within selected sprite bank
- // +8 hhhhhhhh hhhhhhhh Height of sprite
- // +A -y------ -------- Render from top-to-bottom (1) or bottom-to-top (0) on screen
- // +A --f----- -------- Horizontal flip: read the data backwards if set
- // +A ---x---- -------- Render from left-to-right (1) or right-to-left (0) on screen
- // +A -----zzz zzzzzzzz Zoom factor
- // +C -ccc---- -------- Sprite color
- // +C ----rrrr -------- Sprite priority
- // +C -------- pppppppp Signed 8-bit pitch value between scanlines
- // +E ----nnnn nnnnnnnn Index of next sprite
+ // Offs Bits Usage
+ // +0 e------- -------- Signify end of sprite list
+ // +0 -----iii iiiiiiii Address of indirection table (/16)
+ // +2 bbbb---- -------- Upper 4 bits of bank index
+ // +2 ----xxxx xxxxxxxx X position of sprite (position $600 is screen position 0)
+ // +4 bbbb---- -------- Lower 4 bits of bank index
+ // +4 ----yyyy yyyyyyyy Y position of sprite (position $600 is screen position 0)
+ // +6 oooooooo oooooooo Offset within selected sprite bank
+ // +8 hhhhhhhh hhhhhhhh Height of sprite
+ // +A -y------ -------- Render from top-to-bottom (1) or bottom-to-top (0) on screen
+ // +A --f----- -------- Horizontal flip: read the data backwards if set
+ // +A ---x---- -------- Render from left-to-right (1) or right-to-left (0) on screen
+ // +A -----zzz zzzzzzzz Zoom factor
+ // +C -ccc---- -------- Sprite color
+ // +C ----rrrr -------- Sprite priority
+ // +C -------- pppppppp Signed 8-bit pitch value between scanlines
+ // +E ----nnnn nnnnnnnn Index of next sprite
//
- // Final bitmap format:
+ // Final bitmap format:
//
- // ccc----- -------- Sprite color
- // ---rrrr- -------- Sprite priority
- // -------i iiiiiiii Indirected color data
+ // ccc----- -------- Sprite color
+ // ---rrrr- -------- Sprite priority
+ // -------i iiiiiiii Indirected color data
//
- // In addition to these parameters, the sprite area is clipped using scanline extents
- // stored for every pair of scanlines in the rotation RAM. It's a bit of a cheat for us
- // to poke our nose into the rotation structure, but there are no known cases of Y-board
- // sprites without rotation RAM.
+ // In addition to these parameters, the sprite area is clipped using scanline extents
+ // stored for every pair of scanlines in the rotation RAM. It's a bit of a cheat for us
+ // to poke our nose into the rotation structure, but there are no known cases of Y-board
+ // sprites without rotation RAM.
//
// clear out any scanlines we might be using
@@ -1439,7 +1439,7 @@ void sega_yboard_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
break;
}
}
-
+
// update bounds
if (x > dmaxx) dmaxx = x;
if (x < dminx) dminx = x;
@@ -1453,7 +1453,7 @@ void sega_yboard_sprite_device::draw(bitmap_ind16 &bitmap, const rectangle &clip
addr += pitch * (yacc >> 9);
yacc &= 0x1ff;
}
-
+
// mark dirty
if (dminy != -1)
mark_dirty(dminx, dmaxx, dminy, dmaxy);
diff --git a/src/mame/video/sega16sp.h b/src/mame/video/sega16sp.h
index 162306f6bba..307f348ab91 100644
--- a/src/mame/video/sega16sp.h
+++ b/src/mame/video/sega16sp.h
@@ -72,10 +72,10 @@
#define MCFG_BOOTLEG_SYS16A_SPRITES_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, BOOTLEG_SYS16A_SPRITES, 0) \
-
+
#define MCFG_BOOTLEG_SYS16A_SPRITES_REMAP(_0,_1,_2,_3,_4,_5,_6,_7) \
bootleg_sys16a_sprite_device::static_set_remap(*device, _0,_1,_2,_3,_4,_5,_6,_7);
-
+
#define MCFG_BOOTLEG_SYS16A_SPRITES_XORIGIN(_xorigin) \
bootleg_sys16a_sprite_device::static_set_xorigin(*device, _xorigin);
@@ -85,7 +85,7 @@
#define MCFG_BOOTLEG_SYS16B_SPRITES_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, SEGA_SYS16B_SPRITES, 0) \
-
+
#define MCFG_BOOTLEG_SYS16B_SPRITES_XORIGIN(_xorigin) \
bootleg_sys16a_sprite_device::static_set_xorigin(*device, _xorigin);
@@ -129,7 +129,7 @@ class sega_hangon_sprite_device : public sega_16bit_sprite_device
public:
// construction/destruction
sega_hangon_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
protected:
// subclass overrides
virtual void draw(bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -143,7 +143,7 @@ class sega_sharrier_sprite_device : public sega_16bit_sprite_device
public:
// construction/destruction
sega_sharrier_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
protected:
// subclass overrides
virtual void draw(bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -162,7 +162,7 @@ protected:
// subclass overrides
virtual void draw(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
+
// configuration
bool m_is_xboard;
};
@@ -196,14 +196,14 @@ class bootleg_sys16a_sprite_device : public sega_16bit_sprite_device
public:
// construction/destruction
bootleg_sys16a_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
// configuration
static void static_set_remap(device_t &device, UINT8 offs0, UINT8 offs1, UINT8 offs2, UINT8 offs3, UINT8 offs4, UINT8 offs5, UINT8 offs6, UINT8 offs7);
protected:
// subclass overrides
virtual void draw(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
+
// internal state
UINT8 m_addrmap[8];
};
@@ -216,7 +216,7 @@ class sega_sys16b_sprite_device : public sega_16bit_sprite_device
public:
// construction/destruction
sega_sys16b_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
protected:
// subclass overrides
virtual void draw(bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -230,7 +230,7 @@ class sega_yboard_sprite_device : public sega_16bit_sprite_device
public:
// construction/destruction
sega_yboard_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
protected:
// subclass overrides
virtual void draw(bitmap_ind16 &bitmap, const rectangle &cliprect);
diff --git a/src/mame/video/segahang.c b/src/mame/video/segahang.c
index a3f1e9909b7..35f95be7747 100644
--- a/src/mame/video/segahang.c
+++ b/src/mame/video/segahang.c
@@ -101,7 +101,7 @@ UINT32 segahang_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
UINT16 *dest = &bitmap.pix(y);
UINT16 *src = &sprites.pix(y);
UINT8 *pri = &machine().priority_bitmap.pix(y);
-
+
// hangon mixing
if (!m_sharrier_video)
{
@@ -126,7 +126,7 @@ UINT32 segahang_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
}
}
}
-
+
// sharrier mixing
else
{
diff --git a/src/mame/video/system16.c b/src/mame/video/system16.c
index 8c0cac79484..2ef891a9d23 100644
--- a/src/mame/video/system16.c
+++ b/src/mame/video/system16.c
@@ -665,7 +665,7 @@ SCREEN_UPDATE_IND16( s16a_bootleg )
{
UINT16 *dest = &bitmap.pix(y);
UINT16 *src = &sprites.pix(y);
-// UINT8 *pri = &screen.machine().priority_bitmap.pix(y);
+// UINT8 *pri = &screen.machine().priority_bitmap.pix(y);
for (int x = rect->min_x; x <= rect->max_x; x++)
{
// only process written pixels
@@ -673,7 +673,7 @@ SCREEN_UPDATE_IND16( s16a_bootleg )
if (pix != 0xffff)
{
// compare sprite priority against tilemap priority
-// int priority = (pix >> 12) & 3;
+// int priority = (pix >> 12) & 3;
if (1)
{
// if the color is set to maximum, shadow pixels underneath us
@@ -737,7 +737,7 @@ SCREEN_UPDATE_IND16( s16a_bootleg_passht4b )
{
UINT16 *dest = &bitmap.pix(y);
UINT16 *src = &sprites.pix(y);
-// UINT8 *pri = &screen.machine().priority_bitmap.pix(y);
+// UINT8 *pri = &screen.machine().priority_bitmap.pix(y);
for (int x = rect->min_x; x <= rect->max_x; x++)
{
// only process written pixels
@@ -745,7 +745,7 @@ SCREEN_UPDATE_IND16( s16a_bootleg_passht4b )
if (pix != 0xffff)
{
// compare sprite priority against tilemap priority
-// int priority = (pix >> 12) & 3;
+// int priority = (pix >> 12) & 3;
if (1)
{
// if the color is set to maximum, shadow pixels underneath us
@@ -818,7 +818,7 @@ SCREEN_UPDATE_IND16( system16 )
{
UINT16 *dest = &bitmap.pix(y);
UINT16 *src = &sprites.pix(y);
-// UINT8 *pri = &screen.machine().priority_bitmap.pix(y);
+// UINT8 *pri = &screen.machine().priority_bitmap.pix(y);
for (int x = rect->min_x; x <= rect->max_x; x++)
{
// only process written pixels
@@ -826,7 +826,7 @@ SCREEN_UPDATE_IND16( system16 )
if (pix != 0xffff)
{
// compare sprite priority against tilemap priority
-// int priority = (pix >> 12) & 3;
+// int priority = (pix >> 12) & 3;
if (1)
{
// if the color is set to maximum, shadow pixels underneath us
@@ -883,7 +883,7 @@ SCREEN_UPDATE_IND16( system18old )
{
UINT16 *dest = &bitmap.pix(y);
UINT16 *src = &sprites.pix(y);
-// UINT8 *pri = &screen.machine().priority_bitmap.pix(y);
+// UINT8 *pri = &screen.machine().priority_bitmap.pix(y);
for (int x = rect->min_x; x <= rect->max_x; x++)
{
// only process written pixels
@@ -891,7 +891,7 @@ SCREEN_UPDATE_IND16( system18old )
if (pix != 0xffff)
{
// compare sprite priority against tilemap priority
-// int priority = (pix >> 12) & 3;
+// int priority = (pix >> 12) & 3;
if (1)
{
// if the color is set to maximum, shadow pixels underneath us
diff --git a/src/mame/video/taitoic.h b/src/mame/video/taitoic.h
index 6a1e130bd8b..dfa5377fa96 100644
--- a/src/mame/video/taitoic.h
+++ b/src/mame/video/taitoic.h
@@ -112,7 +112,7 @@ protected:
private:
// internal state
void *m_token;
-
+
TILE_GET_INFO_MEMBER(pc080sn_get_bg_tile_info);
TILE_GET_INFO_MEMBER(pc080sn_get_fg_tile_info);
};
@@ -154,10 +154,10 @@ protected:
private:
// internal state
void *m_token;
-
+
TILE_GET_INFO_MEMBER(tc0080vco_get_bg0_tile_info);
TILE_GET_INFO_MEMBER(tc0080vco_get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(tc0080vco_get_tx_tile_info);
+ TILE_GET_INFO_MEMBER(tc0080vco_get_tx_tile_info);
};
extern const device_type TC0080VCO;
@@ -178,10 +178,10 @@ protected:
private:
// internal state
void *m_token;
-
+
TILE_GET_INFO_MEMBER(tc0100scn_get_bg_tile_info);
TILE_GET_INFO_MEMBER(tc0100scn_get_fg_tile_info);
- TILE_GET_INFO_MEMBER(tc0100scn_get_tx_tile_info);
+ TILE_GET_INFO_MEMBER(tc0100scn_get_tx_tile_info);
};
extern const device_type TC0100SCN;
@@ -202,7 +202,7 @@ protected:
private:
// internal state
void *m_token;
-
+
TILE_GET_INFO_MEMBER(tc0280grd_get_tile_info);
};
@@ -245,12 +245,12 @@ protected:
private:
// internal state
void *m_token;
-
+
TILE_GET_INFO_MEMBER(tc0480scp_get_bg0_tile_info);
TILE_GET_INFO_MEMBER(tc0480scp_get_bg1_tile_info);
TILE_GET_INFO_MEMBER(tc0480scp_get_bg2_tile_info);
TILE_GET_INFO_MEMBER(tc0480scp_get_bg3_tile_info);
- TILE_GET_INFO_MEMBER(tc0480scp_get_tx_tile_info);
+ TILE_GET_INFO_MEMBER(tc0480scp_get_tx_tile_info);
};
extern const device_type TC0480SCP;
@@ -310,10 +310,10 @@ protected:
private:
// internal state
void *m_token;
-
+
TILE_GET_INFO_MEMBER(get_bg_tile_info);
TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
+ TILE_GET_INFO_MEMBER(get_tx_tile_info);
};
extern const device_type TC0180VCU;
diff --git a/src/mame/video/vdc.c b/src/mame/video/vdc.c
index 99915c8c55d..39eaf7eb332 100644
--- a/src/mame/video/vdc.c
+++ b/src/mame/video/vdc.c
@@ -20,7 +20,7 @@ union pair
/* the VDC context */
-struct VDC
+struct VDC
{
int dvssr_write; /* Set when the DVSSR register has been written to */
int physical_width; /* Width of the display */
diff --git a/src/mess/audio/mea8000.c b/src/mess/audio/mea8000.c
index 2f289939a20..5281137b433 100644
--- a/src/mess/audio/mea8000.c
+++ b/src/mess/audio/mea8000.c
@@ -44,7 +44,7 @@
/* finite machine state controling frames */
-enum mea8000_state
+enum mea8000_state
{
MEA8000_STOPPED, /* nothing to do, timer disabled */
MEA8000_WAIT_FIRST, /* received pitch, wait for first full trame, timer disabled */
@@ -55,7 +55,7 @@ enum mea8000_state
ALLOW_SAVE_TYPE( mea8000_state );
-struct filter_t
+struct filter_t
{
#ifdef FLOAT_MODE
double fm, last_fm; /* frequency, in Hz */
@@ -70,7 +70,7 @@ struct filter_t
-struct mea8000_t
+struct mea8000_t
{
/* configuration parameters */
diff --git a/src/mess/audio/mos7360.c b/src/mess/audio/mos7360.c
index 777405a0c95..bf087986852 100644
--- a/src/mess/audio/mos7360.c
+++ b/src/mess/audio/mos7360.c
@@ -240,7 +240,7 @@ inline UINT8 mos7360_device::read_ram(offs_t offset)
m_last_data = space(AS_0)->read_byte(offset);
m_rom = rom;
-
+
return m_last_data;
}
@@ -252,7 +252,7 @@ inline UINT8 mos7360_device::read_rom(offs_t offset)
m_last_data = space(AS_0)->read_byte(offset);
m_rom = rom;
-
+
return m_last_data;
}
@@ -550,7 +550,7 @@ void mos7360_device::draw_bitmap(int ybegin, int yend, int ch, int yoff, int xof
for (y = ybegin; y <= yend; y++)
{
code = read_ram(m_bitmapaddr + ch * 8 + y);
-
+
m_bitmap.pix32(y + yoff, 0 + xoff) = PALETTE[m_c16_bitmap[code >> 7]];
m_bitmap.pix32(y + yoff, 1 + xoff) = PALETTE[m_c16_bitmap[(code >> 6) & 1]];
m_bitmap.pix32(y + yoff, 2 + xoff) = PALETTE[m_c16_bitmap[(code >> 5) & 1]];
@@ -569,7 +569,7 @@ void mos7360_device::draw_bitmap_multi(int ybegin, int yend, int ch, int yoff, i
for (y = ybegin; y <= yend; y++)
{
code = read_ram(m_bitmapaddr + ch * 8 + y);
-
+
m_bitmap.pix32(y + yoff, 0 + xoff) =
m_bitmap.pix32(y + yoff, 1 + xoff) = PALETTE[m_bitmapmulti[code >> 6]];
m_bitmap.pix32(y + yoff, 2 + xoff) =
@@ -589,7 +589,7 @@ void mos7360_device::draw_cursor(int ybegin, int yend, int yoff, int xoff, int c
{
for (int x = 0; x < 8; x++)
{
- m_bitmap.pix32(y + yoff, x + xoff) = PALETTE[color];
+ m_bitmap.pix32(y + yoff, x + xoff) = PALETTE[color];
}
}
}
@@ -617,7 +617,7 @@ void mos7360_device::drawlines(int first, int last)
{
for (int x = 0; x < m_bitmap.width(); x++)
{
- m_bitmap.pix32(line, x) = PALETTE[0];
+ m_bitmap.pix32(line, x) = PALETTE[0];
}
}
return;
@@ -637,7 +637,7 @@ void mos7360_device::drawlines(int first, int last)
{
for (int x = 0; x < m_bitmap.width(); x++)
{
- m_bitmap.pix32(line, x) = PALETTE[FRAMECOLOR];
+ m_bitmap.pix32(line, x) = PALETTE[FRAMECOLOR];
}
}
}
@@ -733,7 +733,7 @@ void mos7360_device::drawlines(int first, int last)
{
for (int x = 0; x < xbegin; x++)
{
- m_bitmap.pix32(yoff + i, x) = PALETTE[FRAMECOLOR];
+ m_bitmap.pix32(yoff + i, x) = PALETTE[FRAMECOLOR];
}
for (int x = xend; x < m_bitmap.width(); x++)
@@ -752,7 +752,7 @@ void mos7360_device::drawlines(int first, int last)
{
for (int x = 0; x < m_bitmap.width(); x++)
{
- m_bitmap.pix32(line, x) = PALETTE[FRAMECOLOR];
+ m_bitmap.pix32(line, x) = PALETTE[FRAMECOLOR];
}
}
}
diff --git a/src/mess/audio/socrates.c b/src/mess/audio/socrates.c
index 347c7ee3ea8..e7eac40f0a5 100644
--- a/src/mess/audio/socrates.c
+++ b/src/mess/audio/socrates.c
@@ -10,7 +10,7 @@
#include "emu.h"
#include "socrates.h"
-struct SocratesASIC
+struct SocratesASIC
{
sound_stream *stream;
UINT8 freq[2]; /* channel 1,2 frequencies */
diff --git a/src/mess/audio/spchroms.h b/src/mess/audio/spchroms.h
index c10ce25ee04..453dc9825fd 100644
--- a/src/mess/audio/spchroms.h
+++ b/src/mess/audio/spchroms.h
@@ -1,7 +1,7 @@
#ifndef __SPCHROMS_H
#define __SPCHROMS_H
-struct spchroms_interface
+struct spchroms_interface
{
const char *memory_region; /* memory region where the speech ROM is. NULL means no speech ROM */
};
diff --git a/src/mess/audio/svision.c b/src/mess/audio/svision.c
index ad0be994e8b..8c9298e5166 100644
--- a/src/mess/audio/svision.c
+++ b/src/mess/audio/svision.c
@@ -7,13 +7,13 @@
#include "emu.h"
#include "includes/svision.h"
-enum SVISION_NOISE_Type
+enum SVISION_NOISE_Type
{
SVISION_NOISE_Type7Bit,
SVISION_NOISE_Type14Bit
};
-struct SVISION_NOISE
+struct SVISION_NOISE
{
UINT8 reg[3];
int on, right, left, play;
@@ -25,7 +25,7 @@ struct SVISION_NOISE
int value; // currently simple random function
};
-struct SVISION_DMA
+struct SVISION_DMA
{
UINT8 reg[5];
int on, right, left;
@@ -35,7 +35,7 @@ struct SVISION_DMA
int finished;
};
-struct SVISION_CHANNEL
+struct SVISION_CHANNEL
{
UINT8 reg[4];
int on;
diff --git a/src/mess/devices/sonydriv.c b/src/mess/devices/sonydriv.c
index 2fa59a61ae0..b34f51a1ddd 100644
--- a/src/mess/devices/sonydriv.c
+++ b/src/mess/devices/sonydriv.c
@@ -60,7 +60,7 @@ enum
Structure that describes the state of a floppy drive, and the associated
disk image
*/
-struct floppy_t
+struct floppy_t
{
device_t *img;
emu_file *fd;
@@ -80,7 +80,7 @@ struct floppy_t
int is_400k; /* drive is single-sided, which means 400K */
};
-struct sonydriv_t
+struct sonydriv_t
{
int lines; /* four lines SONY_CA0 - SONY_LSTRB */
diff --git a/src/mess/drivers/a2600.c b/src/mess/drivers/a2600.c
index 17352fd7388..eb611cfda71 100644
--- a/src/mess/drivers/a2600.c
+++ b/src/mess/drivers/a2600.c
@@ -25,7 +25,7 @@ struct df_t {
UINT8 osc_clk; /* Only used by data fetchers 5,6, and 7 */
};
-struct dpc_t
+struct dpc_t
{
df_t df[8];
UINT8 movamt;
diff --git a/src/mess/drivers/aim65.c b/src/mess/drivers/aim65.c
index 2123098f29b..929475589f3 100644
--- a/src/mess/drivers/aim65.c
+++ b/src/mess/drivers/aim65.c
@@ -226,27 +226,27 @@ static const cassette_interface aim65_2_cassette_interface =
NULL
};
-const dl1416_interface aim65_ds1_intf =
+const dl1416_interface aim65_ds1_intf =
{
aim65_update_ds1
};
-const dl1416_interface aim65_ds2_intf =
+const dl1416_interface aim65_ds2_intf =
{
aim65_update_ds2
};
-const dl1416_interface aim65_ds3_intf =
+const dl1416_interface aim65_ds3_intf =
{
aim65_update_ds3
};
-const dl1416_interface aim65_ds4_intf =
+const dl1416_interface aim65_ds4_intf =
{
aim65_update_ds4
};
-const dl1416_interface aim65_ds5_intf =
+const dl1416_interface aim65_ds5_intf =
{
aim65_update_ds5
};
diff --git a/src/mess/drivers/apollo.c b/src/mess/drivers/apollo.c
index f4e36fc2679..c43d38e52ee 100644
--- a/src/mess/drivers/apollo.c
+++ b/src/mess/drivers/apollo.c
@@ -1020,12 +1020,12 @@ void apollo_state::machine_reset()
memcmp (db+0x22, "APOLLO", 6) == 0 &&
omti8621_get_sector(machine().device(APOLLO_WDC_TAG), sector1, db, sizeof(db), 0) == sizeof(db))
{
-// MLOG2(("machine_reset_dn3500: node ID is %06X (from ROM)", node_id));
+// MLOG2(("machine_reset_dn3500: node ID is %06X (from ROM)", node_id));
// set node_id from UID of logical volume 1 of logical unit 0
node_id = (((db[0x49] << 8) | db[0x4a]) << 8) | db[0x4b];
-// MLOG2(("machine_reset_dn3500: node ID is %06X (from disk)", node_id));
+// MLOG2(("machine_reset_dn3500: node ID is %06X (from disk)", node_id));
}
}
diff --git a/src/mess/drivers/apricot.c b/src/mess/drivers/apricot.c
index 91ff09783c0..711cde54797 100644
--- a/src/mess/drivers/apricot.c
+++ b/src/mess/drivers/apricot.c
@@ -319,10 +319,10 @@ void apricot_state::palette_init()
/***************************************************************************
- SOUND INTERFACE
+ SOUND INTERFACE
**************************************************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mess/drivers/apricotp.c b/src/mess/drivers/apricotp.c
index 5aed9a8cad7..388dae4a334 100644
--- a/src/mess/drivers/apricotp.c
+++ b/src/mess/drivers/apricotp.c
@@ -534,8 +534,8 @@ static const centronics_interface centronics_intf =
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mess/drivers/bebox.c b/src/mess/drivers/bebox.c
index b6f75dc9c07..bcef26276c5 100644
--- a/src/mess/drivers/bebox.c
+++ b/src/mess/drivers/bebox.c
@@ -149,10 +149,10 @@ static SLOT_INTERFACE_START( pci_devices )
SLOT_INTERFACE("cirrus", CIRRUS)
SLOT_INTERFACE_END
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- bebox_ide_interrupt,
- NULL,
+ bebox_ide_interrupt,
+ NULL,
0
};
diff --git a/src/mess/drivers/c128.c b/src/mess/drivers/c128.c
index f6b0fa3dd99..1f3ab967e3a 100644
--- a/src/mess/drivers/c128.c
+++ b/src/mess/drivers/c128.c
@@ -171,15 +171,15 @@ to use an EEPROM reader, in order to obtain a dump of the whole content.
/*
- TODO:
+ TODO:
- - connect to PLA
- - clean up ROMs
- - wire up function ROM softlist
- - remove banking code from machine/c128.h
- - inherit from c64_state and use common members from there
- - clean up inputs
- - fix fast serial
+ - connect to PLA
+ - clean up ROMs
+ - wire up function ROM softlist
+ - remove banking code from machine/c128.h
+ - inherit from c64_state and use common members from there
+ - clean up inputs
+ - fix fast serial
*/
@@ -281,14 +281,14 @@ void c128_state::bankswitch_pla(offs_t offset, offs_t ta, offs_t vma, int ba, in
UINT8 c128_state::read_memory(address_space &space, offs_t offset, offs_t vma, int ba, int aec, int z80io)
{
int rw = 1, ms0 = 1, ms1 = 1, ms2 = 1, ms3 = 1, cas0 = 1, cas1 = 1;
- int sden = 1, dir = 1, gwe = 1, rom1 = 1, rom2 = 1, rom3 = 1, rom4 = 1, charom = 1, colorram = 1, vic = 1,
+ int sden = 1, dir = 1, gwe = 1, rom1 = 1, rom2 = 1, rom3 = 1, rom4 = 1, charom = 1, colorram = 1, vic = 1,
from1 = 1, romh = 1, roml = 1, dwe = 1, ioacc = 1, clrbank = 1, iocs = 1, casenb = 1;
int io1 = 1, io2 = 1;
offs_t ta = m_mmu->ta_r(offset, aec, &ms0, &ms1, &ms2, &ms3, &cas0, &cas1);
bankswitch_pla(offset, ta, vma, ba, rw, aec, z80io, ms3, ms2, ms1, ms0,
- &sden, &dir, &gwe, &rom1, &rom2, &rom3, &rom4, &charom, &colorram, &vic,
+ &sden, &dir, &gwe, &rom1, &rom2, &rom3, &rom4, &charom, &colorram, &vic,
&from1, &romh, &roml, &dwe, &ioacc, &clrbank, &iocs, &casenb);
UINT8 data = 0xff;
@@ -400,14 +400,14 @@ UINT8 c128_state::read_memory(address_space &space, offs_t offset, offs_t vma, i
void c128_state::write_memory(address_space &space, offs_t offset, offs_t vma, UINT8 data, int ba, int aec, int z80io)
{
int rw = 0, ms0 = 1, ms1 = 1, ms2 = 1, ms3 = 1, cas0 = 1, cas1 = 1;
- int sden = 1, dir = 1, gwe = 1, rom1 = 1, rom2 = 1, rom3 = 1, rom4 = 1, charom = 1, colorram = 1, vic = 1,
+ int sden = 1, dir = 1, gwe = 1, rom1 = 1, rom2 = 1, rom3 = 1, rom4 = 1, charom = 1, colorram = 1, vic = 1,
from1 = 1, romh = 1, roml = 1, dwe = 1, ioacc = 1, clrbank = 1, iocs = 1, casenb = 1;
int io1 = 1, io2 = 1;
offs_t ta = m_mmu->ta_r(offset, aec, &ms0, &ms1, &ms2, &ms3, &cas0, &cas1);
bankswitch_pla(offset, ta, vma, ba, rw, aec, z80io, ms3, ms2, ms1, ms0,
- &sden, &dir, &gwe, &rom1, &rom2, &rom3, &rom4, &charom, &colorram, &vic,
+ &sden, &dir, &gwe, &rom1, &rom2, &rom3, &rom4, &charom, &colorram, &vic,
&from1, &romh, &roml, &dwe, &ioacc, &clrbank, &iocs, &casenb);
if (!casenb && !dwe)
@@ -483,7 +483,7 @@ WRITE8_MEMBER( c128_state::z80_w )
{
int ba = 1, aec = 1, z80io = 1;
offs_t vma = 0;
-
+
write_memory(space, offset, vma, data, ba, aec, z80io);
}
@@ -491,7 +491,7 @@ READ8_MEMBER( c128_state::z80_io_r )
{
int ba = 1, aec = 1, z80io = 0;
offs_t vma = 0;
-
+
return read_memory(space, offset, vma, ba, aec, z80io);
}
@@ -499,7 +499,7 @@ WRITE8_MEMBER( c128_state::z80_io_w )
{
int ba = 1, aec = 1, z80io = 0;
offs_t vma = 0;
-
+
write_memory(space, offset, vma, data, ba, aec, z80io);
}
@@ -507,7 +507,7 @@ READ8_MEMBER( c128_state::read )
{
int ba = 1, aec = 1, z80io = 1;
offs_t vma = 0;
-
+
return read_memory(space, vma, offset, ba, aec, z80io);
}
@@ -515,7 +515,7 @@ WRITE8_MEMBER( c128_state::write )
{
int ba = 1, aec = 1, z80io = 1;
offs_t vma = 0;
-
+
write_memory(space, offset, vma, data, ba, aec, z80io);
}
@@ -523,7 +523,7 @@ READ8_MEMBER( c128_state::vic_videoram_r )
{
int ba = 0, aec = 0, z80io = 1;
offs_t vma = 0;
-
+
return read_memory(space, offset, vma, ba, aec, z80io);
}
@@ -969,7 +969,7 @@ static const mc6845_interface vdc_intf =
READ8_MEMBER( c128_state::sid_potx_r )
{
UINT8 cia1_pa = mos6526_pa_r(m_cia1, 0);
-
+
int sela = BIT(cia1_pa, 6);
int selb = BIT(cia1_pa, 7);
@@ -984,7 +984,7 @@ READ8_MEMBER( c128_state::sid_potx_r )
READ8_MEMBER( c128_state::sid_poty_r )
{
UINT8 cia1_pa = mos6526_pa_r(m_cia1, 0);
-
+
int sela = BIT(cia1_pa, 6);
int selb = BIT(cia1_pa, 7);
diff --git a/src/mess/drivers/c64.c b/src/mess/drivers/c64.c
index 64f84cb65e9..32f91a30017 100644
--- a/src/mess/drivers/c64.c
+++ b/src/mess/drivers/c64.c
@@ -2,8 +2,8 @@
TODO:
- - floating bus writes to peripheral registers in m6502.c
- - sort out kernals between PAL/NTSC
+ - floating bus writes to peripheral registers in m6502.c
+ - sort out kernals between PAL/NTSC
- tsuit215 test failures
- IRQ (WRONG $DC0D)
- NMI (WRONG $DD0D)
@@ -428,7 +428,7 @@ static MOS6567_INTERFACE( vic_intf )
READ8_MEMBER( c64_state::sid_potx_r )
{
UINT8 cia1_pa = mos6526_pa_r(m_cia1, 0);
-
+
int sela = BIT(cia1_pa, 6);
int selb = BIT(cia1_pa, 7);
@@ -443,7 +443,7 @@ READ8_MEMBER( c64_state::sid_potx_r )
READ8_MEMBER( c64_state::sid_poty_r )
{
UINT8 cia1_pa = mos6526_pa_r(m_cia1, 0);
-
+
int sela = BIT(cia1_pa, 6);
int selb = BIT(cia1_pa, 7);
@@ -646,9 +646,9 @@ READ8_MEMBER( c64_state::cpu_r )
P0 1
P1 1
P2 1
- P3
+ P3
P4 CASS SENS
- P5 0
+ P5 0
*/
@@ -710,9 +710,9 @@ READ8_MEMBER( sx64_state::cpu_r )
P0 1
P1 1
P2 1
- P3
- P4
- P5
+ P3
+ P4
+ P5
*/
@@ -764,9 +764,9 @@ READ8_MEMBER( c64gs_state::cpu_r )
P0 1
P1 1
P2 1
- P3
- P4
- P5
+ P3
+ P4
+ P5
*/
@@ -1489,20 +1489,20 @@ ROM_END
//**************************************************************************
// YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS
-COMP( 1982, c64n, 0, 0, ntsc, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (NTSC)", GAME_SUPPORTS_SAVE )
-COMP( 1982, c64j, c64n, 0, ntsc, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (Japan)", GAME_SUPPORTS_SAVE )
-COMP( 1982, c64p, c64n, 0, pal, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (PAL)", GAME_SUPPORTS_SAVE )
-COMP( 1982, c64sw, c64n, 0, pal, c64sw, driver_device, 0, "Commodore Business Machines", "Commodore 64 / VIC-64S (Sweden/Finland)", GAME_SUPPORTS_SAVE )
-COMP( 1983, pet64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)", GAME_SUPPORTS_SAVE | GAME_WRONG_COLORS )
-COMP( 1983, edu64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "Educator 64 (NTSC)", GAME_SUPPORTS_SAVE | GAME_WRONG_COLORS )
-COMP( 1984, sx64n, c64n, 0, ntsc_sx, c64, driver_device, 0, "Commodore Business Machines", "SX-64 / Executive 64 (NTSC)", GAME_SUPPORTS_SAVE )
-COMP( 1984, sx64p, c64n, 0, pal_sx, c64, driver_device, 0, "Commodore Business Machines", "SX-64 / Executive 64 (PAL)", GAME_SUPPORTS_SAVE )
-COMP( 1984, vip64, c64n, 0, pal_sx, c64sw, driver_device, 0, "Commodore Business Machines", "VIP-64 (Sweden/Finland)", GAME_SUPPORTS_SAVE )
-COMP( 1984, dx64, c64n, 0, ntsc_dx, c64, driver_device, 0, "Commodore Business Machines", "DX-64 (NTSC)", GAME_SUPPORTS_SAVE )
+COMP( 1982, c64n, 0, 0, ntsc, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (NTSC)", GAME_SUPPORTS_SAVE )
+COMP( 1982, c64j, c64n, 0, ntsc, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (Japan)", GAME_SUPPORTS_SAVE )
+COMP( 1982, c64p, c64n, 0, pal, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (PAL)", GAME_SUPPORTS_SAVE )
+COMP( 1982, c64sw, c64n, 0, pal, c64sw, driver_device, 0, "Commodore Business Machines", "Commodore 64 / VIC-64S (Sweden/Finland)", GAME_SUPPORTS_SAVE )
+COMP( 1983, pet64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)", GAME_SUPPORTS_SAVE | GAME_WRONG_COLORS )
+COMP( 1983, edu64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "Educator 64 (NTSC)", GAME_SUPPORTS_SAVE | GAME_WRONG_COLORS )
+COMP( 1984, sx64n, c64n, 0, ntsc_sx, c64, driver_device, 0, "Commodore Business Machines", "SX-64 / Executive 64 (NTSC)", GAME_SUPPORTS_SAVE )
+COMP( 1984, sx64p, c64n, 0, pal_sx, c64, driver_device, 0, "Commodore Business Machines", "SX-64 / Executive 64 (PAL)", GAME_SUPPORTS_SAVE )
+COMP( 1984, vip64, c64n, 0, pal_sx, c64sw, driver_device, 0, "Commodore Business Machines", "VIP-64 (Sweden/Finland)", GAME_SUPPORTS_SAVE )
+COMP( 1984, dx64, c64n, 0, ntsc_dx, c64, driver_device, 0, "Commodore Business Machines", "DX-64 (NTSC)", GAME_SUPPORTS_SAVE )
//COMP(1983, clipper, c64, 0, c64pal, clipper, XXX_CLASS, c64pal, "PDC", "Clipper", GAME_NOT_WORKING) // C64 in a briefcase with 3" floppy, electroluminescent flat screen, thermal printer
//COMP(1983, tesa6240, c64, 0, c64pal, c64, XXX_CLASS, c64pal, "Tesa", "6240", GAME_NOT_WORKING) // modified SX64 with label printer
-COMP( 1986, c64cn, c64n, 0, ntsc_c, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64C (NTSC)", GAME_SUPPORTS_SAVE )
-COMP( 1986, c64cp, c64n, 0, pal_c, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64C (PAL)", GAME_SUPPORTS_SAVE )
-COMP( 1986, c64csw, c64n, 0, pal_c, c64sw, driver_device, 0, "Commodore Business Machines", "Commodore 64C (Sweden/Finland)", GAME_SUPPORTS_SAVE )
-COMP( 1986, c64g, c64n, 0, pal_c, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64G (PAL)", GAME_SUPPORTS_SAVE )
-CONS( 1990, c64gs, c64n, 0, pal_gs, c64gs, driver_device, 0, "Commodore Business Machines", "Commodore 64 Games System (PAL)", GAME_SUPPORTS_SAVE )
+COMP( 1986, c64cn, c64n, 0, ntsc_c, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64C (NTSC)", GAME_SUPPORTS_SAVE )
+COMP( 1986, c64cp, c64n, 0, pal_c, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64C (PAL)", GAME_SUPPORTS_SAVE )
+COMP( 1986, c64csw, c64n, 0, pal_c, c64sw, driver_device, 0, "Commodore Business Machines", "Commodore 64C (Sweden/Finland)", GAME_SUPPORTS_SAVE )
+COMP( 1986, c64g, c64n, 0, pal_c, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64G (PAL)", GAME_SUPPORTS_SAVE )
+CONS( 1990, c64gs, c64n, 0, pal_gs, c64gs, driver_device, 0, "Commodore Business Machines", "Commodore 64 Games System (PAL)", GAME_SUPPORTS_SAVE )
diff --git a/src/mess/drivers/cgenie.c b/src/mess/drivers/cgenie.c
index fd1895a1146..540ebfa8628 100644
--- a/src/mess/drivers/cgenie.c
+++ b/src/mess/drivers/cgenie.c
@@ -626,7 +626,7 @@ ROM_END
// GATL GAT Length
// GATM GAT Mask
// DDGA Disk Directory Granule Allocation
-struct PDRIVE
+struct PDRIVE
{
UINT8 DDSL; // Disk Directory Start Lump (lump number of GAT)
UINT8 GATL; // # of bytes used in the Granule Allocation Table sector
diff --git a/src/mess/drivers/cybiko.c b/src/mess/drivers/cybiko.c
index 6debfea06ab..9ab29604d74 100644
--- a/src/mess/drivers/cybiko.c
+++ b/src/mess/drivers/cybiko.c
@@ -342,7 +342,7 @@ static MACHINE_CONFIG_START( cybikov1, cybiko_state )
MCFG_RAM_EXTRA_OPTIONS("1M")
MACHINE_CONFIG_END
-const sst39vfx_config cybyko_sst39vfx_intf =
+const sst39vfx_config cybyko_sst39vfx_intf =
{
16, ENDIANNESS_BIG
};
diff --git a/src/mess/drivers/gba.c b/src/mess/drivers/gba.c
index ad32ae03e15..48420d4a171 100644
--- a/src/mess/drivers/gba.c
+++ b/src/mess/drivers/gba.c
@@ -2474,7 +2474,7 @@ static astring gba_chip_string( UINT32 chip)
return str.trimspace();
}
-struct gba_chip_fix_conflict_item
+struct gba_chip_fix_conflict_item
{
char game_code[5];
UINT32 chip;
@@ -2518,7 +2518,7 @@ static const gba_chip_fix_conflict_item gba_chip_fix_conflict_list[] =
{ "BYUJ", GBA_CHIP_EEPROM_64K }, // 2322 - Yggdra Union (JPN)
};
-struct gba_chip_fix_eeprom_item
+struct gba_chip_fix_eeprom_item
{
char game_code[5];
};
diff --git a/src/mess/drivers/geneve.c b/src/mess/drivers/geneve.c
index b9dc2d9a315..804d2e7da38 100644
--- a/src/mess/drivers/geneve.c
+++ b/src/mess/drivers/geneve.c
@@ -258,9 +258,9 @@ public:
WRITE_LINE_MEMBER( mapper_ready );
DECLARE_DRIVER_INIT(geneve);
- virtual void machine_start();
+ virtual void machine_start();
virtual void machine_reset();
-
+
void set_tms9901_INT2_from_v9938(v99x8_device &vdp, int state);
line_state m_inta;
diff --git a/src/mess/drivers/hp49gp.c b/src/mess/drivers/hp49gp.c
index 536155da7e1..26099ed7ad6 100644
--- a/src/mess/drivers/hp49gp.c
+++ b/src/mess/drivers/hp49gp.c
@@ -24,7 +24,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog( running_machine &machine, int n_level,
}
}
-struct lcd_spi_t
+struct lcd_spi_t
{
int l1;
int data;
diff --git a/src/mess/drivers/ht68k.c b/src/mess/drivers/ht68k.c
index ba6110b8209..608dd27ff6f 100644
--- a/src/mess/drivers/ht68k.c
+++ b/src/mess/drivers/ht68k.c
@@ -45,9 +45,9 @@ public:
,
m_p_ram(*this, "p_ram"){ }
-
+
static const floppy_format_type floppy_formats[];
-
+
required_device<cpu_device> m_maincpu;
required_device<generic_terminal_device> m_terminal;
required_device<device_t> m_duart;
@@ -117,10 +117,10 @@ static void duart_output(device_t *device, UINT8 data)
if(con)
floppy = con->get_device();
break;
- }
+ }
}
if (floppy) floppy->ss_w(BIT(data,3) ? 0 : 1);
- state->m_fdc->set_floppy(floppy);
+ state->m_fdc->set_floppy(floppy);
}
WRITE8_MEMBER( ht68k_state::kbd_put )
@@ -162,7 +162,7 @@ static MACHINE_CONFIG_START( ht68k, ht68k_state )
MCFG_FLOPPY_DRIVE_ADD("fd0", ht68k_floppies, "525dd", 0, ht68k_state::floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("fd1", ht68k_floppies, "525dd", 0, ht68k_state::floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("fd2", ht68k_floppies, "525dd", 0, ht68k_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("fd3", ht68k_floppies, "525dd", 0, ht68k_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("fd3", ht68k_floppies, "525dd", 0, ht68k_state::floppy_formats)
MACHINE_CONFIG_END
/* ROM definition */
diff --git a/src/mess/drivers/ip20.c b/src/mess/drivers/ip20.c
index eca05f899ee..317a9327f1a 100644
--- a/src/mess/drivers/ip20.c
+++ b/src/mess/drivers/ip20.c
@@ -26,7 +26,7 @@
#include "machine/scsicd.h"
#include "machine/wd33c93.h"
-struct HPC_t
+struct HPC_t
{
UINT8 nMiscStatus;
UINT32 nParBufPtr;
@@ -38,7 +38,7 @@ struct HPC_t
UINT32 nSCSI0DMACtrl;
};
-struct RTC_t
+struct RTC_t
{
UINT8 nRAM[32];
UINT8 nTemp;
diff --git a/src/mess/drivers/ip22.c b/src/mess/drivers/ip22.c
index 232a7a4cb10..a4d6607be23 100644
--- a/src/mess/drivers/ip22.c
+++ b/src/mess/drivers/ip22.c
@@ -57,14 +57,14 @@
#include "machine/scsihd.h"
#include "machine/wd33c93.h"
-struct RTC_t
+struct RTC_t
{
UINT8 nRegs[0x80];
UINT8 nUserRAM[0x200];
UINT8 nRAM[0x800];
};
-struct HPC3_t
+struct HPC3_t
{
UINT32 nenetr_nbdp;
UINT32 nenetr_cbp;
@@ -75,13 +75,13 @@ struct HPC3_t
UINT32 nSCSI0DMACtrl;
};
-struct HAL2_t
+struct HAL2_t
{
UINT32 nIAR;
UINT32 nIDR[4];
};
-struct PBUS_DMA_t
+struct PBUS_DMA_t
{
UINT8 nActive;
UINT32 nCurPtr;
diff --git a/src/mess/drivers/juicebox.c b/src/mess/drivers/juicebox.c
index 40719159f82..1de8be61351 100644
--- a/src/mess/drivers/juicebox.c
+++ b/src/mess/drivers/juicebox.c
@@ -31,7 +31,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog( running_machine &machine, int n_level,
}
}
-struct smc_t
+struct smc_t
{
int add_latch;
int cmd_latch;
diff --git a/src/mess/drivers/mycom.c b/src/mess/drivers/mycom.c
index 3cb3cc213b4..a13e39ae837 100644
--- a/src/mess/drivers/mycom.c
+++ b/src/mess/drivers/mycom.c
@@ -551,8 +551,8 @@ static const wd17xx_interface wd1771_intf =
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mess/drivers/mz2000.c b/src/mess/drivers/mz2000.c
index a0ce520c6e4..73ba9293621 100644
--- a/src/mess/drivers/mz2000.c
+++ b/src/mess/drivers/mz2000.c
@@ -10,8 +10,8 @@
TODO:
- cassette interface, basically any program that's bigger than 8kb fails to load;
- implement remaining video capabilities
- - add 80b compatibility support;
- - Vosque (color): keyboard doesn't work properly;
+ - add 80b compatibility support;
+ - Vosque (color): keyboard doesn't work properly;
****************************************************************************/
@@ -607,7 +607,7 @@ static READ8_DEVICE_HANDLER( mz2000_portc_r )
static WRITE8_DEVICE_HANDLER( mz2000_porta_w )
{
/*
- These are enabled thru a 0->1 transition
+ These are enabled thru a 0->1 transition
x--- ---- tape "APSS"
-x-- ---- tape "APLAY"
--x- ---- tape "AREW"
diff --git a/src/mess/drivers/mz700.c b/src/mess/drivers/mz700.c
index 2b6ae33b3cc..1f8ca1cfa4e 100644
--- a/src/mess/drivers/mz700.c
+++ b/src/mess/drivers/mz700.c
@@ -321,8 +321,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mess/drivers/ng_aes.c b/src/mess/drivers/ng_aes.c
index cb1c22eb33d..c0935068eca 100644
--- a/src/mess/drivers/ng_aes.c
+++ b/src/mess/drivers/ng_aes.c
@@ -44,7 +44,7 @@ static const char *audio_banks[4] =
};
// CD-ROM / DMA control registers
-struct neocd_ctrl_t
+struct neocd_ctrl_t
{
UINT8 area_sel;
UINT8 pcm_bank_sel;
@@ -91,7 +91,7 @@ public:
DECLARE_MACHINE_START(neocd);
DECLARE_MACHINE_START(neogeo);
DECLARE_MACHINE_RESET(neogeo);
-
+
};
diff --git a/src/mess/drivers/pc.c b/src/mess/drivers/pc.c
index 13c4de8d8b5..8f6d77e9442 100644
--- a/src/mess/drivers/pc.c
+++ b/src/mess/drivers/pc.c
@@ -933,8 +933,8 @@ GFXDECODE_END
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mess/drivers/pc8801.c b/src/mess/drivers/pc8801.c
index dbb18c49024..e29e295ff8c 100644
--- a/src/mess/drivers/pc8801.c
+++ b/src/mess/drivers/pc8801.c
@@ -271,14 +271,14 @@
#define UPD1990A_TAG "upd1990a"
#define I8251_TAG "i8251"
-struct crtc_t
+struct crtc_t
{
UINT8 cmd,param_count,cursor_on,status,irq_mask;
UINT8 param[8][5];
UINT8 inverse;
};
-struct mouse_t
+struct mouse_t
{
UINT8 phase;
UINT8 x,y;
@@ -450,7 +450,7 @@ protected:
public:
DECLARE_MACHINE_RESET(pc8801_clock_speed);
DECLARE_MACHINE_RESET(pc8801_dic);
- DECLARE_MACHINE_RESET(pc8801_cdrom);
+ DECLARE_MACHINE_RESET(pc8801_cdrom);
};
diff --git a/src/mess/drivers/pc88va.c b/src/mess/drivers/pc88va.c
index 85d3a5bf768..621a9ed4746 100644
--- a/src/mess/drivers/pc88va.c
+++ b/src/mess/drivers/pc88va.c
@@ -29,7 +29,7 @@
#include "sound/2203intf.h"
#include "formats/basicdsk.h"
-struct tsp_t
+struct tsp_t
{
UINT16 tvram_vreg_offset;
UINT16 attr_offset;
diff --git a/src/mess/drivers/pc9801.c b/src/mess/drivers/pc9801.c
index 1360ab58d2f..4d0c6a4ed59 100644
--- a/src/mess/drivers/pc9801.c
+++ b/src/mess/drivers/pc9801.c
@@ -8,7 +8,7 @@
- floppy interface doesn't seem to work at all with either floppy inserted or not, missing DMA irq?
- proper 8251 uart hook-up on keyboard
- boot is too slow right now, might be due of the floppy / HDD devices
- - investigate on POR bit
+ - investigate on POR bit
TODO (PC-9801RS):
- floppy disk hook-up;
@@ -17,7 +17,7 @@
TODO (PC-9821):
- fix CPU for some clones;
- - PARITY ERROR, presumably it needs a far better emulation of the i8251 ports
+ - PARITY ERROR, presumably it needs a far better emulation of the i8251 ports
TODO: (PC-486MU)
- Tries to read port C of i8255_sys (-> 0x35) at boot without setting up the control
diff --git a/src/mess/drivers/pcfx.c b/src/mess/drivers/pcfx.c
index 51a0fa4e35a..cb3a403d99c 100644
--- a/src/mess/drivers/pcfx.c
+++ b/src/mess/drivers/pcfx.c
@@ -79,7 +79,7 @@ WRITE8_MEMBER(pcfx_state::extio_w)
static ADDRESS_MAP_START( pcfx_mem, AS_PROGRAM, 32, pcfx_state )
AM_RANGE( 0x00000000, 0x001FFFFF ) AM_RAM /* RAM */
-// AM_RANGE( 0x80000000, 0x807FFFFF ) AM_READWRITE8(extio_r,extio_w,0xffffffff) /* EXTIO */
+// AM_RANGE( 0x80000000, 0x807FFFFF ) AM_READWRITE8(extio_r,extio_w,0xffffffff) /* EXTIO */
AM_RANGE( 0xE0000000, 0xE7FFFFFF ) AM_NOP /* BackUp RAM */
AM_RANGE( 0xE8000000, 0xE9FFFFFF ) AM_NOP /* Extended BackUp RAM */
AM_RANGE( 0xF8000000, 0xF8000007 ) AM_NOP /* PIO */
@@ -95,9 +95,9 @@ READ16_MEMBER( pcfx_state::pad_r )
{
// status
/*
- ---- x---
- ---- ---x incoming data state (0=available)
- */
+ ---- x---
+ ---- ---x incoming data state (0=available)
+ */
res = m_pad.status[port_type];
//printf("STATUS %d\n",port_type);
}
@@ -126,7 +126,7 @@ static TIMER_CALLBACK(pad_func)
state->m_pad.status[param] |= 8;
state->m_pad.ctrl[param] &= ~1; // ack TX line
// TODO: pad IRQ
-// state->set_irq_line(11, 1);
+// state->set_irq_line(11, 1);
}
WRITE16_MEMBER( pcfx_state::pad_w )
@@ -137,10 +137,10 @@ WRITE16_MEMBER( pcfx_state::pad_w )
{
// control
/*
- ---- -x-- receiver enable
- ---- --x- enable multi-tap
- ---- ---x enable send (0->1 transition)
- */
+ ---- -x-- receiver enable
+ ---- --x- enable multi-tap
+ ---- ---x enable send (0->1 transition)
+ */
if(data & 1 && (!(m_pad.ctrl[port_type] & 1)))
{
machine().scheduler().timer_set(attotime::from_msec(1), FUNC(pad_func), port_type); // TODO: time
@@ -168,7 +168,7 @@ static ADDRESS_MAP_START( pcfx_io, AS_IO, 32, pcfx_state )
AM_RANGE( 0x00000C80, 0x00000C83 ) AM_NOP
AM_RANGE( 0x00000E00, 0x00000EFF ) AM_READWRITE16( irq_read, irq_write, 0xffff ) /* Interrupt controller */
AM_RANGE( 0x00000F00, 0x00000FFF ) AM_NOP
-// AM_RANGE( 0x00600000, 0x006FFFFF ) AM_READ(scsi_ctrl_r)
+// AM_RANGE( 0x00600000, 0x006FFFFF ) AM_READ(scsi_ctrl_r)
AM_RANGE( 0x00780000, 0x007FFFFF ) AM_ROM AM_REGION("scsi_rom", 0 )
AM_RANGE( 0x80500000, 0x805000FF ) AM_NOP /* HuC6273 */
ADDRESS_MAP_END
@@ -176,8 +176,8 @@ ADDRESS_MAP_END
static INPUT_PORTS_START( pcfx )
/*
- xxxx ---- ---- ---- ID (0xf = 6 button pad, 0xe = tap, 0xd = ?)
- */
+ xxxx ---- ---- ---- ID (0xf = 6 button pad, 0xe = tap, 0xd = ?)
+ */
PORT_START("P1")
PORT_BIT( 0xf0000000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // ID
PORT_DIPNAME( 0x01000000, 0x01000000, "1" )
diff --git a/src/mess/drivers/pcw16.c b/src/mess/drivers/pcw16.c
index ae545256695..2e386866607 100644
--- a/src/mess/drivers/pcw16.c
+++ b/src/mess/drivers/pcw16.c
@@ -347,7 +347,7 @@ static const struct { write8_space_func func; const char *name; } pcw16_flash1_b
{ FUNC(pcw16_flash1_bank_handler3_w) }
};
-enum PCW16_RAM_TYPE
+enum PCW16_RAM_TYPE
{
/* rom which is really first block of flash0 */
PCW16_MEM_ROM,
diff --git a/src/mess/drivers/pockstat.c b/src/mess/drivers/pockstat.c
index 3f7d6849ec4..4d000405022 100644
--- a/src/mess/drivers/pockstat.c
+++ b/src/mess/drivers/pockstat.c
@@ -36,7 +36,7 @@
#define MAX_PS_TIMERS 3
-struct ps_ftlb_regs_t
+struct ps_ftlb_regs_t
{
UINT32 control;
UINT32 stat;
@@ -47,7 +47,7 @@ struct ps_ftlb_regs_t
UINT32 serial;
};
-struct ps_intc_regs_t
+struct ps_intc_regs_t
{
UINT32 hold;
UINT32 status;
@@ -55,7 +55,7 @@ struct ps_intc_regs_t
UINT32 mask;
};
-struct ps_timer_t
+struct ps_timer_t
{
UINT32 period;
UINT32 count;
@@ -63,12 +63,12 @@ struct ps_timer_t
emu_timer *timer;
};
-struct ps_timer_regs_t
+struct ps_timer_regs_t
{
ps_timer_t timer[MAX_PS_TIMERS];
};
-struct ps_clock_regs_t
+struct ps_clock_regs_t
{
UINT32 mode;
UINT32 control;
@@ -76,7 +76,7 @@ struct ps_clock_regs_t
#define PS_CLOCK_STEADY 0x10
-struct ps_rtc_regs_t
+struct ps_rtc_regs_t
{
UINT32 mode;
UINT32 control;
diff --git a/src/mess/drivers/psx.c b/src/mess/drivers/psx.c
index a25e78d59b3..3c642b1dd44 100644
--- a/src/mess/drivers/psx.c
+++ b/src/mess/drivers/psx.c
@@ -19,7 +19,7 @@
#include "machine/psxcd.h"
#include "machine/psxcard.h"
-struct pad_t
+struct pad_t
{
UINT8 n_shiftin;
UINT8 n_shiftout;
diff --git a/src/mess/drivers/pv1000.c b/src/mess/drivers/pv1000.c
index 5ae95a1a752..e89ca985fe4 100644
--- a/src/mess/drivers/pv1000.c
+++ b/src/mess/drivers/pv1000.c
@@ -15,7 +15,7 @@ class pv1000_sound_device : public device_t,
public:
pv1000_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
protected:
- // device-level overrides
+ // device-level overrides
virtual void device_config_complete();
virtual void device_start();
diff --git a/src/mess/drivers/pv2000.c b/src/mess/drivers/pv2000.c
index 66cc6b5f48f..904258d9f36 100644
--- a/src/mess/drivers/pv2000.c
+++ b/src/mess/drivers/pv2000.c
@@ -351,8 +351,8 @@ static TMS9928A_INTERFACE(pv2000_tms9928a_interface)
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mess/drivers/rvoice.c b/src/mess/drivers/rvoice.c
index 92e36b2955c..cf165b32f1c 100644
--- a/src/mess/drivers/rvoice.c
+++ b/src/mess/drivers/rvoice.c
@@ -18,7 +18,7 @@
/* Components */
-struct hd63701y0_t
+struct hd63701y0_t
{
UINT8 data[8];
UINT8 P1DDR;
@@ -57,7 +57,7 @@ struct hd63701y0_t
UINT8 P6CSR;
};
-struct rvoicepc_t
+struct rvoicepc_t
{
UINT8 data[8];
UINT8 port1;
diff --git a/src/mess/drivers/sgi_ip6.c b/src/mess/drivers/sgi_ip6.c
index 253b0f82b04..af936d02fa8 100644
--- a/src/mess/drivers/sgi_ip6.c
+++ b/src/mess/drivers/sgi_ip6.c
@@ -17,7 +17,7 @@
#include "cpu/mips/r3000.h"
-struct ip6_regs_t
+struct ip6_regs_t
{
UINT16 unknown_half_0;
UINT8 unknown_byte_0;
diff --git a/src/mess/drivers/sitcom.c b/src/mess/drivers/sitcom.c
index a19a64fb898..801e01c4ac2 100644
--- a/src/mess/drivers/sitcom.c
+++ b/src/mess/drivers/sitcom.c
@@ -91,12 +91,12 @@ void sitcom_update_ds1(device_t *device, int digit, int data)
output_set_digit_value(4 + digit, data);
}
-const dl1416_interface sitcom_ds0_intf =
+const dl1416_interface sitcom_ds0_intf =
{
sitcom_update_ds0
};
-const dl1416_interface sitcom_ds1_intf =
+const dl1416_interface sitcom_ds1_intf =
{
sitcom_update_ds1
};
diff --git a/src/mess/drivers/smc777.c b/src/mess/drivers/smc777.c
index 99d1034e905..23e45ee8740 100644
--- a/src/mess/drivers/smc777.c
+++ b/src/mess/drivers/smc777.c
@@ -35,7 +35,7 @@ public:
: driver_device(mconfig, type, tag),
m_sn(*this, "sn1")
{ }
-
+
optional_device<sn76489a_new_device> m_sn;
UINT16 m_cursor_addr;
UINT16 m_cursor_raster;
@@ -1060,8 +1060,8 @@ static INTERRUPT_GEN( smc777_vblank_irq )
* Sound interface
*
*************************************/
-
-
+
+
//-------------------------------------------------
// sn76496_config psg_intf
//-------------------------------------------------
diff --git a/src/mess/drivers/ti99_4x.c b/src/mess/drivers/ti99_4x.c
index a33cf1c2669..8b8b9143c24 100644
--- a/src/mess/drivers/ti99_4x.c
+++ b/src/mess/drivers/ti99_4x.c
@@ -967,15 +967,15 @@ MACHINE_START_MEMBER(ti99_4x,ti99_4a)
m_cpu = static_cast<tms9900_device*>(machine().device("maincpu"));
m_tms9901 = static_cast<tms9901_device*>(machine().device(TMS9901_TAG));
-
+
m_gromport = static_cast<gromport_device*>(machine().device(GROMPORT_TAG));
m_peribox = static_cast<peribox_device*>(machine().device(PERIBOX_TAG));
-
+
m_datamux = static_cast<ti99_datamux_device*>(machine().device(DATAMUX_TAG));
m_joyport = static_cast<joyport_device*>(machine().device(JOYPORT_TAG));
m_video = static_cast<ti_video_device*>(machine().device(VIDEO_SYSTEM_TAG));
m_firstjoy = 6;
-
+
m_peribox->senila(CLEAR_LINE);
m_peribox->senilb(CLEAR_LINE);
m_ready_line = m_ready_line_dmux = ASSERT_LINE;
diff --git a/src/mess/drivers/ti99_8.c b/src/mess/drivers/ti99_8.c
index bd5d7b2dc4c..3d622a91f87 100644
--- a/src/mess/drivers/ti99_8.c
+++ b/src/mess/drivers/ti99_8.c
@@ -252,7 +252,7 @@ public:
DECLARE_WRITE8_MEMBER(tms9901_interrupt);
DECLARE_WRITE_LINE_MEMBER( clock_out );
- virtual void machine_start();
+ virtual void machine_start();
virtual void machine_reset();
// Some values to keep
diff --git a/src/mess/drivers/vboy.c b/src/mess/drivers/vboy.c
index 573511b8594..260376a645e 100644
--- a/src/mess/drivers/vboy.c
+++ b/src/mess/drivers/vboy.c
@@ -8,10 +8,10 @@
and http://www.vr32.de/modules/dokuwiki/doku.php?
TODO:
- - 3dtetris: missing gfxs on gameplay (writes to framebuffer)
+ - 3dtetris: missing gfxs on gameplay (writes to framebuffer)
- boundh: game is way too fast
- galactic: ball goes out of bounds sometimes?
- - golf: missing gfxs on gameplay (writes to framebuffer)
+ - golf: missing gfxs on gameplay (writes to framebuffer)
- marioten: title screen logo is misplaced if Mario completes his animation
- nesterfb: once that you hit the pins, animation phase takes a while to start
- redalarm: gameplay doesn't work
@@ -19,7 +19,7 @@
- spaceinv: missing shots
- telerobo: crashes if you die
- telerobo: hangs after winning first match;
- - vlab: doesn't boot (irq issue?)
+ - vlab: doesn't boot (irq issue?)
- wariolnd: brightness gets suddently darker during intro.
\
****************************************************************************/
@@ -699,7 +699,7 @@ void vboy_state::m_set_brightness(void)
if(b > 0xff) { b = 0xff; }
if(c > 0xff) { c = 0xff; }
-// popmessage("%02x %02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC,m_vip_regs.REST);
+// popmessage("%02x %02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC,m_vip_regs.REST);
palette_set_color_rgb(machine(), 1, a,0,0);
palette_set_color_rgb(machine(), 2, b,0,0);
palette_set_color_rgb(machine(), 3, c,0,0);
@@ -716,17 +716,17 @@ READ16_MEMBER( vboy_state::vip_r )
logerror("Error reading INTCLR\n");
break;
/*
- ---- -x-- ---- ---- LOCK (status column table address (CTA) lock)
- ---- --x- ---- ---- SYNCE (status of sync signal enable)
- ---- ---x ---- ---- RE (status of memory refresh cycle)
- ---- ---- x--- ---- FCLK
+ ---- -x-- ---- ---- LOCK (status column table address (CTA) lock)
+ ---- --x- ---- ---- SYNCE (status of sync signal enable)
+ ---- ---x ---- ---- RE (status of memory refresh cycle)
+ ---- ---- x--- ---- FCLK
---- ---- -x-- ---- SCANRDY (active low)
- ---- ---- --xx xx-- DPBSY (current framebuffer displayed)
- ---- ---- --10 00-- RFB1
- ---- ---- --01 00-- LFB1
- ---- ---- --00 10-- RFB0
- ---- ---- --00 01-- LFB0
- ---- ---- ---- --x- DISP
+ ---- ---- --xx xx-- DPBSY (current framebuffer displayed)
+ ---- ---- --10 00-- RFB1
+ ---- ---- --01 00-- LFB1
+ ---- ---- --00 10-- RFB0
+ ---- ---- --00 01-- LFB0
+ ---- ---- ---- --x- DISP
*/
case 0x20: //DPSTTS
{
@@ -767,9 +767,9 @@ READ16_MEMBER( vboy_state::vip_r )
case 0x40: //XPSTTS, piXel Processor STaTuS
{
/*
- x--- ---- ---- ---- SBOUT
- ---x xxxx ---- ---- SBCOUNT
- ---- ---- ---x ---- OVERTIME (process overflow)
+ x--- ---- ---- ---- SBOUT
+ ---x xxxx ---- ---- SBCOUNT
+ ---- ---- ---x ---- OVERTIME (process overflow)
---- ---- ---- x--- XPBSY1 (second framebuffer busy flag)
---- ---- ---- -x-- XPBSY0 (first framebfuffer busy flag)
---- ---- ---- --x- XPEN (starts drawing at beginning of game frame)
@@ -862,11 +862,11 @@ WRITE16_MEMBER( vboy_state::vip_w )
logerror("Error writing DPSTTS\n");
break;
/*
- ---- -x-- ---- ---- LOCK (status column table address (CTA) lock)
- ---- --x- ---- ---- SYNCE (status of sync signal enable)
- ---- ---x ---- ---- RE (status of memory refresh cycle)
- ---- ---- ---- --x- DISP
- ---- ---- ---- ---x DPRST (Resets the VIP internal counter)
+ ---- -x-- ---- ---- LOCK (status column table address (CTA) lock)
+ ---- --x- ---- ---- SYNCE (status of sync signal enable)
+ ---- ---x ---- ---- RE (status of memory refresh cycle)
+ ---- ---- ---- --x- DISP
+ ---- ---- ---- ---x DPRST (Resets the VIP internal counter)
*/
case 0x22: //DPCTRL
m_vip_regs.DPCTRL = data & 0x0702;
@@ -1085,7 +1085,7 @@ static ADDRESS_MAP_START( vboy_mem, AS_PROGRAM, 32, vboy_state )
AM_RANGE( 0x02000000, 0x0200002b ) AM_MIRROR(0x0ffff00) AM_READWRITE(io_r, io_w) // Hardware control registers mask 0xff
//AM_RANGE( 0x04000000, 0x04ffffff ) // Expansion area
AM_RANGE( 0x05000000, 0x0500ffff ) AM_MIRROR(0x0ff0000) AM_RAM AM_SHARE("wram")// Main RAM - 64K mask 0xffff
-// AM_RANGE( 0x06000000, 0x06003fff ) AM_RAM AM_SHARE("nvram") // Cart RAM - 8K NVRAM
+// AM_RANGE( 0x06000000, 0x06003fff ) AM_RAM AM_SHARE("nvram") // Cart RAM - 8K NVRAM
AM_RANGE( 0x07000000, 0x071fffff ) AM_MIRROR(0x0e00000) AM_ROM AM_REGION("cartridge", 0) /* ROM */
ADDRESS_MAP_END
@@ -1157,7 +1157,7 @@ void vboy_state::machine_start()
/* add a hook for battery save */
machine().add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(vboy_machine_stop),&machine()));
-// m_vboy_sram = auto_alloc_array(machine(), UINT32, 0x10000/4);
+// m_vboy_sram = auto_alloc_array(machine(), UINT32, 0x10000/4);
}
void vboy_state::machine_reset()
diff --git a/src/mess/drivers/vic10.c b/src/mess/drivers/vic10.c
index 40ae406ef7e..815829dfa38 100644
--- a/src/mess/drivers/vic10.c
+++ b/src/mess/drivers/vic10.c
@@ -480,11 +480,11 @@ READ8_MEMBER( vic10_state::cpu_r )
bit description
P0 EXPANSION PORT
- P1
- P2
+ P1
+ P2
P3
P4 CASS SENS
- P5 0
+ P5 0
*/
diff --git a/src/mess/drivers/vic20.c b/src/mess/drivers/vic20.c
index d898be32c5e..0eb7e8a3567 100644
--- a/src/mess/drivers/vic20.c
+++ b/src/mess/drivers/vic20.c
@@ -463,7 +463,7 @@ WRITE8_MEMBER( vic20_state::via0_pa_w )
PA2
PA3
PA4
- PA5 LITE PEN (FIRE)
+ PA5 LITE PEN (FIRE)
PA6
PA7 SERIAL ATN OUT
@@ -550,7 +550,7 @@ READ8_MEMBER( vic20_state::via1_pb_r )
// joystick
UINT8 joy = m_joy1->joy_r();
-
+
data &= BIT(joy, 3) << 7;
return data;
@@ -881,7 +881,7 @@ ROM_END
//**************************************************************************
// YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS
-COMP( 1980, vic1001, 0, 0, ntsc, vic1001, driver_device, 0, "Commodore Business Machines", "VIC-1001 (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
-COMP( 1981, vic20, vic1001, 0, ntsc, vic20, driver_device, 0, "Commodore Business Machines", "VIC-20 (NTSC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
-COMP( 1981, vic20p, vic1001, 0, pal, vic20, driver_device, 0, "Commodore Business Machines", "VIC-20 / VC-20 (PAL)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
-COMP( 1981, vic20s, vic1001, 0, pal, vic20s, driver_device, 0, "Commodore Business Machines", "VIC-20 (Sweden/Finland)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
+COMP( 1980, vic1001, 0, 0, ntsc, vic1001, driver_device, 0, "Commodore Business Machines", "VIC-1001 (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
+COMP( 1981, vic20, vic1001, 0, ntsc, vic20, driver_device, 0, "Commodore Business Machines", "VIC-20 (NTSC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
+COMP( 1981, vic20p, vic1001, 0, pal, vic20, driver_device, 0, "Commodore Business Machines", "VIC-20 / VC-20 (PAL)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
+COMP( 1981, vic20s, vic1001, 0, pal, vic20s, driver_device, 0, "Commodore Business Machines", "VIC-20 (Sweden/Finland)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
diff --git a/src/mess/drivers/vk100.c b/src/mess/drivers/vk100.c
index 80416b6ed46..46ebcc3f320 100644
--- a/src/mess/drivers/vk100.c
+++ b/src/mess/drivers/vk100.c
@@ -576,7 +576,7 @@ READ8_MEMBER(vk100_state::SYSTAT_A)
* write command -> 0x05 (normal, normal, /RTS is 1, normal, normal, recieve ON, /DTR is 0, transmit off)
* read SYSTAT B (and xor with 0xe), expect d7 to be SET or jump to error
* after this it does something and waits for an rxrdy interrupt
-
+
shows the results of:
* ACTS (/CTS) ? ? ? ? ? ? ?
* d7 d6 d5 d4 d3 d2 d1 d0
diff --git a/src/mess/formats/spec_snqk.h b/src/mess/formats/spec_snqk.h
index 8894e58713e..529b45101a8 100644
--- a/src/mess/formats/spec_snqk.h
+++ b/src/mess/formats/spec_snqk.h
@@ -141,7 +141,7 @@ void spectrum_setup_raw(running_machine &machine, UINT8 *quickdata, UINT32 quick
#define FRZ_HDR 42
#define FRZ_SIZE (FRZ_HDR + 8*SPECTRUM_BANK)
-enum SPECTRUM_SNAPSHOT_TYPE
+enum SPECTRUM_SNAPSHOT_TYPE
{
SPECTRUM_SNAPSHOT_NONE,
SPECTRUM_SNAPSHOT_SNA,
diff --git a/src/mess/formats/timex_dck.h b/src/mess/formats/timex_dck.h
index d05c49cb650..a7cc6142a4d 100644
--- a/src/mess/formats/timex_dck.h
+++ b/src/mess/formats/timex_dck.h
@@ -18,7 +18,7 @@ enum
TIMEX_CART_HOME
};
-struct timex_cart_t
+struct timex_cart_t
{
int type;
UINT8 chunks;
diff --git a/src/mess/includes/amstrad.h b/src/mess/includes/amstrad.h
index ab3f7fa5406..b4ad39a488a 100644
--- a/src/mess/includes/amstrad.h
+++ b/src/mess/includes/amstrad.h
@@ -23,7 +23,7 @@
/****************************
* Gate Array data (CPC) -
****************************/
-struct gate_array_t
+struct gate_array_t
{
bitmap_ind16 *bitmap; /* The bitmap we work on */
UINT8 pen_selected; /* Pen selection */
@@ -60,7 +60,7 @@ struct gate_array_t
/****************************
* ASIC data (CPC plus)
****************************/
-struct asic_t
+struct asic_t
{
UINT8 *ram; /* pointer to RAM used for the CPC+ ASIC memory-mapped registers */
UINT8 enabled; /* Are CPC plus features enabled/unlocked */
diff --git a/src/mess/includes/apple1.h b/src/mess/includes/apple1.h
index 727adf972e2..61966536e40 100644
--- a/src/mess/includes/apple1.h
+++ b/src/mess/includes/apple1.h
@@ -12,7 +12,7 @@
typedef short termchar_t;
-struct terminal_t
+struct terminal_t
{
tilemap_t *tm;
int gfx;
diff --git a/src/mess/includes/apple2.h b/src/mess/includes/apple2.h
index a75e950df5c..f2d46921146 100644
--- a/src/mess/includes/apple2.h
+++ b/src/mess/includes/apple2.h
@@ -72,7 +72,7 @@
#define APPLE2_MEM_FLOATING 0xFFFFFFFF
#define APPLE2_MEM_MASK 0x00FFFFFF
-enum machine_type_t
+enum machine_type_t
{
APPLE_II, // Apple II/II+
APPLE_IIEPLUS, // Apple IIe/IIc/IIgs/IIc+
@@ -81,7 +81,7 @@ enum machine_type_t
SPACE84 // "Space 84" with flipped text mode
};
-enum bank_disposition_t
+enum bank_disposition_t
{
A2MEM_IO = 0, /* this is always handlers; never banked memory */
A2MEM_MONO = 1, /* this is a bank where read and write are always in unison */
diff --git a/src/mess/includes/apple2gs.h b/src/mess/includes/apple2gs.h
index cd97d72b184..ec5a3abe91f 100644
--- a/src/mess/includes/apple2gs.h
+++ b/src/mess/includes/apple2gs.h
@@ -24,7 +24,7 @@
#define BORDER_TOP (16) // (plus bottom)
-enum apple2gs_clock_mode
+enum apple2gs_clock_mode
{
CLOCKMODE_IDLE,
CLOCKMODE_TIME,
@@ -34,7 +34,7 @@ enum apple2gs_clock_mode
};
-enum adbstate_t
+enum adbstate_t
{
ADBSTATE_IDLE,
ADBSTATE_INCOMMAND,
diff --git a/src/mess/includes/bebox.h b/src/mess/includes/bebox.h
index b26cdc07caa..a3b942c07e1 100644
--- a/src/mess/includes/bebox.h
+++ b/src/mess/includes/bebox.h
@@ -13,7 +13,7 @@
#include "machine/8237dma.h"
#include "machine/53c810.h"
-struct bebox_devices_t
+struct bebox_devices_t
{
device_t *pic8259_master;
device_t *pic8259_slave;
diff --git a/src/mess/includes/c65.h b/src/mess/includes/c65.h
index f29335bc808..e1547718fc2 100644
--- a/src/mess/includes/c65.h
+++ b/src/mess/includes/c65.h
@@ -10,13 +10,13 @@
#include "includes/c64_legacy.h"
#include "machine/6526cia.h"
-struct dma_t
+struct dma_t
{
int version;
UINT8 data[4];
};
-struct fdc_t
+struct fdc_t
{
int state;
@@ -32,7 +32,7 @@ struct fdc_t
int head,track,sector;
};
-struct expansion_ram_t
+struct expansion_ram_t
{
UINT8 reg;
};
diff --git a/src/mess/includes/cgenie.h b/src/mess/includes/cgenie.h
index e5d88a615ca..294560a8a09 100644
--- a/src/mess/includes/cgenie.h
+++ b/src/mess/includes/cgenie.h
@@ -10,7 +10,7 @@
#include "machine/wd17xx.h"
// CRTC 6845
-struct CRTC6845
+struct CRTC6845
{
UINT8 cursor_address_lo;
UINT8 cursor_address_hi;
diff --git a/src/mess/includes/channelf.h b/src/mess/includes/channelf.h
index 17d6996d1d9..d49cd3879fa 100644
--- a/src/mess/includes/channelf.h
+++ b/src/mess/includes/channelf.h
@@ -13,7 +13,7 @@
/* SKR - 2102 RAM chip on carts 10 and 18 I/O ports */
-struct r2102_t
+struct r2102_t
{
UINT8 d; /* data bit:inverted logic, but reading/writing cancel out */
UINT8 r_w; /* inverted logic: 0 means read, 1 means write */
diff --git a/src/mess/includes/compis.h b/src/mess/includes/compis.h
index e49a5947bdb..7375fbd68ec 100644
--- a/src/mess/includes/compis.h
+++ b/src/mess/includes/compis.h
@@ -73,7 +73,7 @@ struct intr_state
UINT16 ext[4];
};
-struct i186_state
+struct i186_state
{
struct timer_state timer[3];
struct dma_state dma[2];
@@ -83,7 +83,7 @@ struct i186_state
/* Keyboard */
-struct TYP_COMPIS_KEYBOARD
+struct TYP_COMPIS_KEYBOARD
{
UINT8 nationality; /* Character set, keyboard layout (Swedish) */
UINT8 release_time; /* Autorepeat release time (0.8) */
@@ -102,14 +102,14 @@ struct TYP_COMPIS_KEYBOARD
};
/* USART 8251 */
-struct TYP_COMPIS_USART
+struct TYP_COMPIS_USART
{
UINT8 status;
UINT8 bytes_sent;
};
/* Printer */
-struct TYP_COMPIS_PRINTER
+struct TYP_COMPIS_PRINTER
{
UINT8 data;
UINT8 strobe;
@@ -117,7 +117,7 @@ struct TYP_COMPIS_PRINTER
/* Main emulation */
-struct TYP_COMPIS
+struct TYP_COMPIS
{
TYP_COMPIS_PRINTER printer; /* Printer */
TYP_COMPIS_USART usart; /* USART 8251 */
diff --git a/src/mess/includes/concept.h b/src/mess/includes/concept.h
index 42196b979ca..7cbd5a4d935 100644
--- a/src/mess/includes/concept.h
+++ b/src/mess/includes/concept.h
@@ -21,7 +21,7 @@ enum
MaxKeyMessageLen = 1
};
-struct expansion_slot_t
+struct expansion_slot_t
{
read8_space_func reg_read;
write8_space_func reg_write;
diff --git a/src/mess/includes/cxhumax.h b/src/mess/includes/cxhumax.h
index d00fe40f37b..ca5da0d57b8 100644
--- a/src/mess/includes/cxhumax.h
+++ b/src/mess/includes/cxhumax.h
@@ -9,7 +9,7 @@
#define MAX_CX_TIMERS 16
-struct cx_timer_t
+struct cx_timer_t
{
UINT32 value;
UINT32 limit;
@@ -18,7 +18,7 @@ struct cx_timer_t
emu_timer *timer;
};
-struct cx_timer_regs_t
+struct cx_timer_regs_t
{
cx_timer_t timer[MAX_CX_TIMERS];
UINT32 timer_irq;
diff --git a/src/mess/includes/cybiko.h b/src/mess/includes/cybiko.h
index 769d1208a41..a200a60a644 100644
--- a/src/mess/includes/cybiko.h
+++ b/src/mess/includes/cybiko.h
@@ -28,14 +28,14 @@
#include "machine/sst39vfx.h"
#include "machine/ram.h"
-struct CYBIKO_RS232_PINS
+struct CYBIKO_RS232_PINS
{
int sck; // serial clock
int txd; // transmit data
int rxd; // receive data
};
-struct CYBIKO_RS232
+struct CYBIKO_RS232
{
CYBIKO_RS232_PINS pin;
UINT8 rx_bits, rx_byte, tx_byte, tx_bits;
diff --git a/src/mess/includes/dgn_beta.h b/src/mess/includes/dgn_beta.h
index f9077d09910..f3bbe4bc70d 100644
--- a/src/mess/includes/dgn_beta.h
+++ b/src/mess/includes/dgn_beta.h
@@ -63,7 +63,7 @@
/***** Video Modes *****/
-enum BETA_VID_MODES
+enum BETA_VID_MODES
{
TEXT_40x25, /* Text mode 40x25 */
TEXT_80x25, /* Text mode 80x25 */
@@ -74,7 +74,7 @@ enum BETA_VID_MODES
#define iosize (0xfEFF-0xfc00)
-struct PageReg
+struct PageReg
{
int value; /* Value of the page register */
UINT8 *memory; /* The memory it actually points to */
diff --git a/src/mess/includes/electron.h b/src/mess/includes/electron.h
index e86692f8685..62a857d866e 100644
--- a/src/mess/includes/electron.h
+++ b/src/mess/includes/electron.h
@@ -23,7 +23,7 @@
/* ULA context */
-struct ULA
+struct ULA
{
UINT8 interrupt_status;
UINT8 interrupt_control;
diff --git a/src/mess/includes/fm7.h b/src/mess/includes/fm7.h
index c41d0302310..693f1693715 100644
--- a/src/mess/includes/fm7.h
+++ b/src/mess/includes/fm7.h
@@ -30,7 +30,7 @@
#define KEY_MODE_FM16B 1 // FM-16B (FM-77AV and later only)
#define KEY_MODE_SCAN 2 // Scancode Make/Break (PC-like)
-struct fm7_encoder_t
+struct fm7_encoder_t
{
UINT8 buffer[12];
UINT8 tx_count;
@@ -42,7 +42,7 @@ struct fm7_encoder_t
UINT8 position;
};
-struct fm7_mmr_t
+struct fm7_mmr_t
{
UINT8 bank_addr[8][16];
UINT8 segment;
@@ -51,7 +51,7 @@ struct fm7_mmr_t
UINT8 mode;
};
-struct fm7_video_t
+struct fm7_video_t
{
UINT8 sub_busy;
UINT8 sub_halt;
@@ -77,7 +77,7 @@ struct fm7_video_t
UINT8 vsync_flag;
};
-struct fm7_alu_t
+struct fm7_alu_t
{
UINT8 command;
UINT8 lcolour;
diff --git a/src/mess/includes/gamecom.h b/src/mess/includes/gamecom.h
index a10b95567de..64725c648e3 100644
--- a/src/mess/includes/gamecom.h
+++ b/src/mess/includes/gamecom.h
@@ -149,7 +149,7 @@ enum
SM8521_SG1W15 = 0x7F
};
-struct GAMECOM_DMA
+struct GAMECOM_DMA
{
int enabled;
int transfer_mode;
@@ -182,7 +182,7 @@ struct GAMECOM_DMA
unsigned int dest_mask;
};
-struct GAMECOM_TIMER
+struct GAMECOM_TIMER
{
int enabled;
int state_count;
@@ -190,7 +190,7 @@ struct GAMECOM_TIMER
int check_value;
};
-struct gamecom_sound_t
+struct gamecom_sound_t
{
UINT8 sgc;
UINT8 sg0l;
diff --git a/src/mess/includes/gb.h b/src/mess/includes/gb.h
index f7a348a6d83..54a3dda6534 100644
--- a/src/mess/includes/gb.h
+++ b/src/mess/includes/gb.h
@@ -241,7 +241,7 @@ public:
DECLARE_MACHINE_RESET(gbpocket);
DECLARE_PALETTE_INIT(gbp);
DECLARE_MACHINE_START(gbc);
- DECLARE_MACHINE_RESET(gbc);
+ DECLARE_MACHINE_RESET(gbc);
DECLARE_PALETTE_INIT(gbc);
DECLARE_MACHINE_START(gb_video);
DECLARE_MACHINE_START(gbc_video);
diff --git a/src/mess/includes/gmaster.h b/src/mess/includes/gmaster.h
index f1d5a91d166..1f1b5960a08 100644
--- a/src/mess/includes/gmaster.h
+++ b/src/mess/includes/gmaster.h
@@ -1,7 +1,7 @@
#ifndef __GMASTER_H__
#define __GMASTER_H__
-struct GMASTER_VIDEO
+struct GMASTER_VIDEO
{
UINT8 data[8];
int index;
@@ -11,7 +11,7 @@ struct GMASTER_VIDEO
UINT8 pixels[8][64/*>=62 sure*/];
};
-struct GMASTER_MACHINE
+struct GMASTER_MACHINE
{
UINT8 ports[5];
};
diff --git a/src/mess/includes/gp32.h b/src/mess/includes/gp32.h
index e6fbb8ff291..048bca837cd 100644
--- a/src/mess/includes/gp32.h
+++ b/src/mess/includes/gp32.h
@@ -34,7 +34,7 @@
#define INT_EINT1 1
#define INT_EINT0 0
-struct s3c240x_lcd_t
+struct s3c240x_lcd_t
{
UINT32 vramaddr_cur;
UINT32 vramaddr_max;
@@ -47,7 +47,7 @@ struct s3c240x_lcd_t
int vpos, hpos;
};
-struct smc_t
+struct smc_t
{
int add_latch;
int chip;
@@ -61,21 +61,21 @@ struct smc_t
UINT8 datatx;
};
-struct i2s_t
+struct i2s_t
{
int l3d;
int l3m;
int l3c;
};
-struct s3c240x_iic_t
+struct s3c240x_iic_t
{
UINT8 data[4];
int data_index;
UINT16 address;
};
-struct s3c240x_iis_t
+struct s3c240x_iis_t
{
UINT16 fifo[16/2];
int fifo_index;
diff --git a/src/mess/includes/hp48.h b/src/mess/includes/hp48.h
index fc4e13b7364..d70054ebba5 100644
--- a/src/mess/includes/hp48.h
+++ b/src/mess/includes/hp48.h
@@ -20,7 +20,7 @@ enum hp48_models {
};
/* memory module configuration */
-struct hp48_module
+struct hp48_module
{
/* static part */
UINT32 off_mask; /* offset bit-mask, indicates the real size */
diff --git a/src/mess/includes/intv.h b/src/mess/includes/intv.h
index 1192688187c..33ff2ab93ae 100644
--- a/src/mess/includes/intv.h
+++ b/src/mess/includes/intv.h
@@ -7,7 +7,7 @@
#ifndef INTV_H_
#define INTV_H_
-struct intv_sprite_type
+struct intv_sprite_type
{
int visible;
int xpos;
diff --git a/src/mess/includes/kyocera.h b/src/mess/includes/kyocera.h
index 6a004b53061..b788cd618ea 100644
--- a/src/mess/includes/kyocera.h
+++ b/src/mess/includes/kyocera.h
@@ -113,7 +113,7 @@ public:
/* sound state */
int m_buzzer; /* buzzer select */
int m_bell; /* bell output */
-
+
DECLARE_PALETTE_INIT(kc85);
};
diff --git a/src/mess/includes/lisa.h b/src/mess/includes/lisa.h
index 10cc368119b..3c56892ed96 100644
--- a/src/mess/includes/lisa.h
+++ b/src/mess/includes/lisa.h
@@ -16,7 +16,7 @@
#define KB_COP421_TAG "kbcop"
/* lisa MMU segment regs */
-struct real_mmu_entry
+struct real_mmu_entry
{
UINT16 sorg;
UINT16 slim;
@@ -25,7 +25,7 @@ struct real_mmu_entry
/* MMU regs translated into a more efficient format */
enum mmu_entry_t { RAM_stack_r, RAM_r, RAM_stack_rw, RAM_rw, IO, invalid, special_IO };
-struct mmu_entry
+struct mmu_entry
{
offs_t sorg; /* (real_sorg & 0x0fff) << 9 */
mmu_entry_t type; /* <-> (real_slim & 0x0f00) */
@@ -48,7 +48,7 @@ enum clock_mode_t
}; /* clock mode */
/* clock registers */
-struct clock_regs_t
+struct clock_regs_t
{
long alarm; /* alarm (20-bit binary) */
int years; /* years (4-bit binary ) */
@@ -68,7 +68,7 @@ struct clock_regs_t
enum clock_mode_t clock_mode;
};
-struct lisa_features_t
+struct lisa_features_t
{
unsigned int has_fast_timers : 1; /* I/O board VIAs are clocked at 1.25 MHz (?) instead of .5 MHz (?) (Lisa 2/10, Mac XL) */
/* Note that the beep routine in boot ROMs implies that
diff --git a/src/mess/includes/lynx.h b/src/mess/includes/lynx.h
index bc803c04f61..0af7f9fbefa 100644
--- a/src/mess/includes/lynx.h
+++ b/src/mess/includes/lynx.h
@@ -15,7 +15,7 @@
class lynx_state;
-struct BLITTER
+struct BLITTER
{
UINT8 *mem;
// global
@@ -54,7 +54,7 @@ struct BLITTER
int busy;
};
-struct UART
+struct UART
{
UINT8 serctl;
UINT8 data_received, data_to_send, buffer;
@@ -63,7 +63,7 @@ struct UART
int buffer_loaded;
};
-struct SUZY
+struct SUZY
{
UINT8 data[0x100];
UINT8 high;
@@ -73,14 +73,14 @@ struct SUZY
int accumulate_overflow;
};
-struct MIKEY
+struct MIKEY
{
UINT8 data[0x100];
UINT16 disp_addr;
UINT8 vb_rest;
};
-struct LYNX_TIMER
+struct LYNX_TIMER
{
UINT8 bakup;
UINT8 cntrl1;
diff --git a/src/mess/includes/mac.h b/src/mess/includes/mac.h
index 1fae2a49aaf..803be472ea8 100644
--- a/src/mess/includes/mac.h
+++ b/src/mess/includes/mac.h
@@ -37,7 +37,7 @@
#define ADB_IS_PM_CLASS ((m_model >= MODEL_MAC_PORTABLE && m_model <= MODEL_MAC_PB100) || (m_model >= MODEL_MAC_PB140 && m_model <= MODEL_MAC_PBDUO_270c))
/* for Egret and CUDA streaming MCU commands, command types */
-enum mac_streaming_t
+enum mac_streaming_t
{
MCU_STREAMING_NONE = 0,
MCU_STREAMING_PRAMRD,
@@ -55,7 +55,7 @@ enum
};
/* tells which model is being emulated (set by macxxx_init) */
-enum model_t
+enum model_t
{
MODEL_MAC_128K512K, // 68000 machines
MODEL_MAC_512KE,
diff --git a/src/mess/includes/macpci.h b/src/mess/includes/macpci.h
index 17832aab5c3..03449d28fed 100644
--- a/src/mess/includes/macpci.h
+++ b/src/mess/includes/macpci.h
@@ -24,7 +24,7 @@
#define MAC_539X_2_TAG "539x_2"
/* tells which model is being emulated (set by macxxx_init) */
-enum model_t
+enum model_t
{
PCIMODEL_MAC_PM5200,
PCIMODEL_MAC_PM6200,
diff --git a/src/mess/includes/mbc55x.h b/src/mess/includes/mbc55x.h
index 9b7dc32e41f..3f4a5b74c89 100644
--- a/src/mess/includes/mbc55x.h
+++ b/src/mess/includes/mbc55x.h
@@ -75,7 +75,7 @@
#define FDC_TAG "wd1793"
-struct keyboard_t
+struct keyboard_t
{
UINT8 keyrows[MBC55X_KEYROWS];
emu_timer *keyscan_timer;
@@ -161,7 +161,7 @@ public:
/* IO chips */
-struct msm_rx_t
+struct msm_rx_t
{
};
diff --git a/src/mess/includes/nascom1.h b/src/mess/includes/nascom1.h
index 3f6abe0ed2b..33582481413 100644
--- a/src/mess/includes/nascom1.h
+++ b/src/mess/includes/nascom1.h
@@ -10,13 +10,13 @@
#include "imagedev/snapquik.h"
#include "machine/wd17xx.h"
-struct nascom1_portstat_t
+struct nascom1_portstat_t
{
UINT8 stat_flags;
UINT8 stat_count;
};
-struct nascom2_fdc_t
+struct nascom2_fdc_t
{
UINT8 select;
UINT8 irq;
diff --git a/src/mess/includes/nes.h b/src/mess/includes/nes.h
index 5e4c271ff7a..029eab0e6da 100644
--- a/src/mess/includes/nes.h
+++ b/src/mess/includes/nes.h
@@ -35,7 +35,7 @@ struct nes_input
#define CHRROM 0
#define CHRRAM 1
-struct chr_bank
+struct chr_bank
{
int source; //defines source of base pointer
int origin; //defines offset of 0x400 byte segment at base pointer
@@ -53,7 +53,7 @@ struct chr_bank
#define NES_BATTERY 0
#define NES_WRAM 1
-struct name_table
+struct name_table
{
int source; /* defines source of base pointer */
int origin; /* defines offset of 0x400 byte segment at base pointer */
diff --git a/src/mess/includes/odyssey2.h b/src/mess/includes/odyssey2.h
index 93e00f109ed..b0077fa6251 100644
--- a/src/mess/includes/odyssey2.h
+++ b/src/mess/includes/odyssey2.h
@@ -54,7 +54,7 @@ union o2_vdc_t {
} s;
};
-struct ef9341_t
+struct ef9341_t
{
UINT8 X;
UINT8 Y;
diff --git a/src/mess/includes/oric.h b/src/mess/includes/oric.h
index 3646d382459..6d5d75a9531 100644
--- a/src/mess/includes/oric.h
+++ b/src/mess/includes/oric.h
@@ -30,7 +30,7 @@ enum
TELESTRAT_MEM_BLOCK_ROM
};
-struct telestrat_mem_block
+struct telestrat_mem_block
{
int MemType;
unsigned char *ptr;
@@ -40,7 +40,7 @@ struct telestrat_mem_block
/* current state of the display */
/* some attributes persist until they are turned off.
This structure holds this persistant information */
-struct oric_vh_state
+struct oric_vh_state
{
/* foreground and background colour used for rendering */
/* if flash attribute is set, these two will both be equal to background colour */
diff --git a/src/mess/includes/p2000t.h b/src/mess/includes/p2000t.h
index 57ab913327e..b9c5a5dc995 100644
--- a/src/mess/includes/p2000t.h
+++ b/src/mess/includes/p2000t.h
@@ -40,7 +40,7 @@ public:
UINT8 m_port_202f;
UINT8 m_port_303f;
UINT8 m_port_707f;
- INT8 m_frame_count;
+ INT8 m_frame_count;
DECLARE_VIDEO_START(p2000m);
DECLARE_PALETTE_INIT(p2000m);
};
diff --git a/src/mess/includes/pc8401a.h b/src/mess/includes/pc8401a.h
index ef421c9ae18..902236b69a4 100644
--- a/src/mess/includes/pc8401a.h
+++ b/src/mess/includes/pc8401a.h
@@ -65,7 +65,7 @@ public:
DECLARE_READ8_MEMBER( ppi_pc_r );
DECLARE_WRITE8_MEMBER( ppi_pc_w );
DECLARE_PALETTE_INIT(pc8401a);
-
+
void scan_keyboard();
void bankswitch(UINT8 data);
diff --git a/src/mess/includes/pce.h b/src/mess/includes/pce.h
index 9df0e86b795..b2beec59a35 100644
--- a/src/mess/includes/pce.h
+++ b/src/mess/includes/pce.h
@@ -31,7 +31,7 @@
/* the largest possible cartridge image (street fighter 2 - 2.5MB) */
#define PCE_ROM_MAXSIZE 0x280000
-struct pce_cd_t
+struct pce_cd_t
{
UINT8 regs[16];
UINT8 *bram;
diff --git a/src/mess/includes/pdp1.h b/src/mess/includes/pdp1.h
index 3f66c5e18c3..216076b13ab 100644
--- a/src/mess/includes/pdp1.h
+++ b/src/mess/includes/pdp1.h
@@ -164,7 +164,7 @@ enum
};
/* tape reader registers */
-struct tape_reader_t
+struct tape_reader_t
{
device_image_interface *fd; /* file descriptor of tape image */
@@ -182,7 +182,7 @@ struct tape_reader_t
/* tape puncher registers */
-struct tape_puncher_t
+struct tape_puncher_t
{
device_image_interface *fd; /* file descriptor of tape image */
@@ -192,7 +192,7 @@ struct tape_puncher_t
/* typewriter registers */
-struct typewriter_t
+struct typewriter_t
{
device_image_interface *fd; /* file descriptor of output image */
@@ -202,7 +202,7 @@ struct typewriter_t
};
/* MIT parallel drum (mostly similar to type 23) */
-struct parallel_drum_t
+struct parallel_drum_t
{
device_image_interface *fd; /* file descriptor of drum image */
@@ -219,7 +219,7 @@ struct parallel_drum_t
};
-struct lightpen_t
+struct lightpen_t
{
char active;
char down;
diff --git a/src/mess/includes/pet.h b/src/mess/includes/pet.h
index 0c1d3b2d2fa..ed3f92a4895 100644
--- a/src/mess/includes/pet.h
+++ b/src/mess/includes/pet.h
@@ -13,7 +13,7 @@
#include "machine/ieee488.h"
#include "imagedev/cartslot.h"
-struct spet_t
+struct spet_t
{
int bank; /* rambank to be switched in 0x9000 */
int rom; /* rom socket 6502? at 0x9000 */
diff --git a/src/mess/includes/pokemini.h b/src/mess/includes/pokemini.h
index 0e549d2a3c2..1e1b90ffc2a 100644
--- a/src/mess/includes/pokemini.h
+++ b/src/mess/includes/pokemini.h
@@ -14,7 +14,7 @@
#include "rendlay.h"
-struct PRC
+struct PRC
{
UINT8 colors_inverted;
UINT8 background_enabled;
@@ -31,7 +31,7 @@ struct PRC
};
-struct TIMERS
+struct TIMERS
{
emu_timer *seconds_timer;
emu_timer *hz256_timer;
diff --git a/src/mess/includes/rmnimbus.h b/src/mess/includes/rmnimbus.h
index e59a469c762..e70dd9d6b83 100644
--- a/src/mess/includes/rmnimbus.h
+++ b/src/mess/includes/rmnimbus.h
@@ -26,7 +26,7 @@
/* Nimbus sub-bios structures for debugging */
-struct t_area_params
+struct t_area_params
{
UINT16 ofs_brush;
UINT16 seg_brush;
@@ -35,7 +35,7 @@ struct t_area_params
UINT16 count;
};
-struct t_plot_string_params
+struct t_plot_string_params
{
UINT16 ofs_font;
UINT16 seg_font;
@@ -46,7 +46,7 @@ struct t_plot_string_params
UINT16 length;
};
-struct t_nimbus_brush
+struct t_nimbus_brush
{
UINT16 style;
UINT16 style_index;
@@ -110,7 +110,7 @@ struct intr_state
UINT16 ext_vector[2]; // external vectors, when in cascade mode
};
-struct i186_state
+struct i186_state
{
struct timer_state timer[3];
struct dma_state dma[2];
@@ -118,7 +118,7 @@ struct i186_state
struct mem_state mem;
};
-struct keyboard_t
+struct keyboard_t
{
UINT8 keyrows[NIMBUS_KEYROWS];
emu_timer *keyscan_timer;
@@ -128,7 +128,7 @@ struct keyboard_t
};
// Static data related to Floppy and SCSI hard disks
-struct nimbus_drives_t
+struct nimbus_drives_t
{
UINT8 reg400;
UINT8 reg410_in;
@@ -140,7 +140,7 @@ struct nimbus_drives_t
};
/* 8031 Peripheral controler */
-struct ipc_interface_t
+struct ipc_interface_t
{
UINT8 ipc_in;
UINT8 ipc_out;
@@ -152,7 +152,7 @@ struct ipc_interface_t
};
/* Mouse/Joystick */
-struct mouse_joy_state
+struct mouse_joy_state
{
UINT8 m_mouse_px;
UINT8 m_mouse_py;
diff --git a/src/mess/includes/spectrum.h b/src/mess/includes/spectrum.h
index 5aa120b689b..c06f582ba88 100644
--- a/src/mess/includes/spectrum.h
+++ b/src/mess/includes/spectrum.h
@@ -51,7 +51,7 @@
#define TS2068_RIGHT_BORDER 96 /* Number of right hand border pixels */
#define TS2068_SCREEN_WIDTH (TS2068_LEFT_BORDER + TS2068_DISPLAY_XSIZE + TS2068_RIGHT_BORDER)
-struct EVENT_LIST_ITEM
+struct EVENT_LIST_ITEM
{
/* driver defined ID for this write */
int Event_ID;
diff --git a/src/mess/includes/ssystem3.h b/src/mess/includes/ssystem3.h
index 9cf33903358..41955981c84 100644
--- a/src/mess/includes/ssystem3.h
+++ b/src/mess/includes/ssystem3.h
@@ -8,7 +8,7 @@
#define SSYSTEM3_H_
-struct playfield_t
+struct playfield_t
{
int signal;
// int on;
@@ -26,7 +26,7 @@ struct playfield_t
} u;
};
-struct lcd_t
+struct lcd_t
{
UINT8 data[5];
int clock;
diff --git a/src/mess/includes/svi318.h b/src/mess/includes/svi318.h
index 9689851b8df..61baa943be8 100644
--- a/src/mess/includes/svi318.h
+++ b/src/mess/includes/svi318.h
@@ -13,7 +13,7 @@
#include "machine/ins8250.h"
#include "machine/wd17xx.h"
-struct SVI_318
+struct SVI_318
{
/* general */
UINT8 svi318; /* Are we dealing with an SVI-318 or a SVI-328 model. 0 = 328, 1 = 318 */
@@ -37,7 +37,7 @@ struct SVI_318
UINT8 *svi806_gfx;
};
-struct SVI318_FDC_STRUCT
+struct SVI318_FDC_STRUCT
{
UINT8 driveselect;
int drq;
diff --git a/src/mess/includes/svision.h b/src/mess/includes/svision.h
index 68defb725d7..7c685dd8c94 100644
--- a/src/mess/includes/svision.h
+++ b/src/mess/includes/svision.h
@@ -7,13 +7,13 @@
#ifndef SVISION_H_
#define SVISION_H_
-struct svision_t
+struct svision_t
{
emu_timer *timer1;
int timer_shot;
};
-struct svision_pet_t
+struct svision_pet_t
{
int state;
int on, clock, data;
@@ -21,7 +21,7 @@ struct svision_pet_t
emu_timer *timer;
};
-struct tvlink_t
+struct tvlink_t
{
UINT32 palette[4/*0x40?*/]; /* rgb8 */
int palette_on;
diff --git a/src/mess/includes/tx0.h b/src/mess/includes/tx0.h
index 67a7c38d88d..9b96d1872c0 100644
--- a/src/mess/includes/tx0.h
+++ b/src/mess/includes/tx0.h
@@ -55,7 +55,7 @@ enum irg_pos_t
/* tape reader registers */
-struct tape_reader_t
+struct tape_reader_t
{
device_image_interface *fd; /* file descriptor of tape image */
@@ -70,7 +70,7 @@ struct tape_reader_t
/* tape puncher registers */
-struct tape_puncher_t
+struct tape_puncher_t
{
device_image_interface *fd; /* file descriptor of tape image */
@@ -80,7 +80,7 @@ struct tape_puncher_t
/* typewriter registers */
-struct typewriter_t
+struct typewriter_t
{
device_image_interface *fd; /* file descriptor of output image */
@@ -89,7 +89,7 @@ struct typewriter_t
/* magnetic tape unit registers */
-struct magtape_t
+struct magtape_t
{
device_image_interface *img; /* image descriptor */
diff --git a/src/mess/includes/vc4000.h b/src/mess/includes/vc4000.h
index 391124593eb..3610a15669b 100644
--- a/src/mess/includes/vc4000.h
+++ b/src/mess/includes/vc4000.h
@@ -19,12 +19,12 @@
#define ANALOG_HACK
-struct SPRITE_HELPER
+struct SPRITE_HELPER
{
UINT8 bitmap[10],x1,x2,y1,y2, res1, res2;
};
-struct SPRITE
+struct SPRITE
{
const SPRITE_HELPER *data;
int mask;
@@ -37,7 +37,7 @@ struct SPRITE
int finished_now;
};
-struct vc4000_video_t
+struct vc4000_video_t
{
SPRITE sprites[4];
int line;
diff --git a/src/mess/includes/vic20.h b/src/mess/includes/vic20.h
index bc790709f62..c8d762fb058 100644
--- a/src/mess/includes/vic20.h
+++ b/src/mess/includes/vic20.h
@@ -69,7 +69,7 @@ public:
DECLARE_READ8_MEMBER( vic_lightx_cb );
DECLARE_READ8_MEMBER( vic_lighty_cb );
DECLARE_READ8_MEMBER( vic_lightbut_cb );
-
+
DECLARE_READ8_MEMBER( via0_pa_r );
DECLARE_WRITE8_MEMBER( via0_pa_w );
diff --git a/src/mess/includes/wswan.h b/src/mess/includes/wswan.h
index cea55dc27cb..f134e1a8018 100644
--- a/src/mess/includes/wswan.h
+++ b/src/mess/includes/wswan.h
@@ -40,7 +40,7 @@
#include "machine/nvram.h"
-struct EEPROM
+struct EEPROM
{
UINT8 mode; /* eeprom mode */
UINT16 address; /* Read/write address */
@@ -52,7 +52,7 @@ struct EEPROM
UINT8 *page; /* pointer to current sram/eeprom page */
};
-struct RTC
+struct RTC
{
UINT8 present; /* Is an RTC present */
UINT8 setting; /* Timer setting byte */
@@ -66,14 +66,14 @@ struct RTC
UINT8 index; /* index for reading/writing of current of alarm time */
};
-struct SoundDMA
+struct SoundDMA
{
UINT32 source; /* Source address */
UINT16 size; /* Size */
UINT8 enable; /* Enabled */
};
-struct VDP
+struct VDP
{
UINT8 layer_bg_enable; /* Background layer on/off */
UINT8 layer_fg_enable; /* Foreground layer on/off */
diff --git a/src/mess/includes/x07.h b/src/mess/includes/x07.h
index 99f63fbcbfd..8d4a0fbedbc 100644
--- a/src/mess/includes/x07.h
+++ b/src/mess/includes/x07.h
@@ -86,7 +86,7 @@ static const UINT8 t6834_cmd_len[0x47] =
0x01, 0x09, 0x01, 0x03, 0x03, 0x01, 0x01
};
-struct x07_kb
+struct x07_kb
{
const char *tag; //input port tag
UINT8 mask; //bit mask
diff --git a/src/mess/includes/x1.h b/src/mess/includes/x1.h
index cbf251285cf..a87a96ba33c 100644
--- a/src/mess/includes/x1.h
+++ b/src/mess/includes/x1.h
@@ -44,7 +44,7 @@ private:
virtual void z80daisy_irq_reti();
};
-struct scrn_reg_t
+struct scrn_reg_t
{
UINT8 gfx_bank;
UINT8 disp_bank;
@@ -56,7 +56,7 @@ struct scrn_reg_t
UINT8 blackclip; // x1 turbo specific
};
-struct turbo_reg_t
+struct turbo_reg_t
{
UINT8 pal;
UINT8 gfx_pal;
@@ -64,7 +64,7 @@ struct turbo_reg_t
UINT8 txt_disp;
};
-struct x1_rtc_t
+struct x1_rtc_t
{
UINT8 sec, min, hour, day, wday, month, year;
};
diff --git a/src/mess/includes/z80ne.h b/src/mess/includes/z80ne.h
index 26925192abc..59e31b98b4d 100644
--- a/src/mess/includes/z80ne.h
+++ b/src/mess/includes/z80ne.h
@@ -26,7 +26,7 @@
#define LX385_TAPE_SAMPLE_FREQ 38400
/* wave duration threshold */
-enum z80netape_speed
+enum z80netape_speed
{
TAPE_300BPS = 300, /* 300 bps */
TAPE_600BPS = 600, /* 600 bps */
diff --git a/src/mess/machine/990_hd.c b/src/mess/machine/990_hd.c
index 27aa6cab4ba..495829c28d0 100644
--- a/src/mess/machine/990_hd.c
+++ b/src/mess/machine/990_hd.c
@@ -40,7 +40,7 @@ for TI990. */
/* We can use MAME's harddisk.c image format instead. */
/* machine-independent big-endian 32-bit integer */
-struct UINT32BE
+struct UINT32BE
{
UINT8 bytes[4];
};
@@ -61,7 +61,7 @@ INLINE void set_UINT32BE(UINT32BE *word, UINT32 data)
#endif
/* disk image header */
-struct disk_image_header
+struct disk_image_header
{
UINT32BE cylinders; /* number of cylinders on hard disk (big-endian) */
UINT32BE heads; /* number of heads on hard disk (big-endian) */
@@ -81,7 +81,7 @@ enum format_t
};
/* disk drive unit descriptor */
-struct hd_unit_t
+struct hd_unit_t
{
device_image_interface *img; /* image descriptor */
format_t format;
@@ -94,7 +94,7 @@ struct hd_unit_t
};
/* disk controller */
-struct hdc_t
+struct hdc_t
{
UINT16 w[8];
diff --git a/src/mess/machine/990_tap.c b/src/mess/machine/990_tap.c
index ccc280f8e59..ad47cdc98e2 100644
--- a/src/mess/machine/990_tap.c
+++ b/src/mess/machine/990_tap.c
@@ -36,7 +36,7 @@ static void update_interrupt(device_t *device);
#define MAX_TAPE_UNIT 4
-struct tape_unit_t
+struct tape_unit_t
{
device_image_interface *img; /* image descriptor */
unsigned int bot : 1; /* TRUE if we are at the beginning of tape */
diff --git a/src/mess/machine/a2cffa.c b/src/mess/machine/a2cffa.c
index f18caa8e7a6..b8f7b5c8994 100644
--- a/src/mess/machine/a2cffa.c
+++ b/src/mess/machine/a2cffa.c
@@ -31,10 +31,10 @@ const device_type A2BUS_CFFA2_6502 = &device_creator<a2bus_cffa2_6502_device>;
#define CFFA2_ROM_REGION "cffa2_rom"
#define CFFA2_IDE_TAG "cffa2_ide"
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- NULL,
- NULL,
+ NULL,
+ NULL,
0
};
diff --git a/src/mess/machine/amigacrt.c b/src/mess/machine/amigacrt.c
index 258c5f029b1..cccaa5f24b5 100644
--- a/src/mess/machine/amigacrt.c
+++ b/src/mess/machine/amigacrt.c
@@ -24,7 +24,7 @@ enum
ACTION_REPLAY_MKIII
};
-struct amigacrt_t
+struct amigacrt_t
{
int cart_type;
int ar1_spurious;
diff --git a/src/mess/machine/amigakbd.c b/src/mess/machine/amigakbd.c
index 9ff1fd6718b..3e80467efbb 100644
--- a/src/mess/machine/amigakbd.c
+++ b/src/mess/machine/amigakbd.c
@@ -13,7 +13,7 @@
#define KEYBOARD_BUFFER_SIZE 256
-struct amigakbd_t
+struct amigakbd_t
{
UINT8 *buf;
int buf_pos;
diff --git a/src/mess/machine/apollo_net.c b/src/mess/machine/apollo_net.c
index a16c3b8771f..bf3775d4199 100644
--- a/src/mess/machine/apollo_net.c
+++ b/src/mess/machine/apollo_net.c
@@ -27,7 +27,7 @@ struct ethernet_header {
UINT16 proto;
};
-struct ip_header
+struct ip_header
{
UINT8 version;
UINT8 tos;
diff --git a/src/mess/machine/applefdc.c b/src/mess/machine/applefdc.c
index a5300b02d1c..f7401326636 100644
--- a/src/mess/machine/applefdc.c
+++ b/src/mess/machine/applefdc.c
@@ -58,7 +58,7 @@
#define IWM_Q6 0x40
#define IWM_Q7 0x80
-enum applefdc_t
+enum applefdc_t
{
APPLEFDC_APPLE2, /* classic Apple II disk controller (pre-IWM) */
APPLEFDC_IWM, /* Integrated Woz Machine */
diff --git a/src/mess/machine/at45dbxx.c b/src/mess/machine/at45dbxx.c
index b97d0468e55..d9c1c67921f 100644
--- a/src/mess/machine/at45dbxx.c
+++ b/src/mess/machine/at45dbxx.c
@@ -36,7 +36,7 @@ enum
TYPE DEFINITIONS
***************************************************************************/
-struct AT45DBXX_PINS
+struct AT45DBXX_PINS
{
int cs; // chip select
int sck; // serial clock
@@ -47,12 +47,12 @@ struct AT45DBXX_PINS
int busy; // busy
};
-struct AT45DBXX_CMD
+struct AT45DBXX_CMD
{
UINT8 data[8], size;
};
-struct AT45DBXX_IO
+struct AT45DBXX_IO
{
UINT8 *data;
UINT32 size, pos;
diff --git a/src/mess/machine/ay31015.c b/src/mess/machine/ay31015.c
index 30dbb2a8d5f..7a2867895d7 100644
--- a/src/mess/machine/ay31015.c
+++ b/src/mess/machine/ay31015.c
@@ -72,7 +72,7 @@ Start bit (low), Bit 0, Bit 1... highest bit, Parity bit (if enabled), 1-2 stop
#include "emu.h"
#include "ay31015.h"
-enum state_t
+enum state_t
{
IDLE,
START_BIT,
diff --git a/src/mess/machine/ay31015.h b/src/mess/machine/ay31015.h
index b7b8dbc18e1..d36d13597ff 100644
--- a/src/mess/machine/ay31015.h
+++ b/src/mess/machine/ay31015.h
@@ -12,7 +12,7 @@
***************************************************************************/
-enum ay31015_type_t
+enum ay31015_type_t
{
/* For AY-3-1014A, AY-3-1015(D) and HD6402 variants */
AY_3_1015,
@@ -22,7 +22,7 @@ enum ay31015_type_t
};
-enum ay31015_input_pin_t
+enum ay31015_input_pin_t
{
AY31015_SWE=16, /* -SWE - Pin 16 - Status word enable */
AY31015_RDAV=18, /* -RDAV - Pin 18 - Reset data available */
@@ -37,7 +37,7 @@ enum ay31015_input_pin_t
};
-enum ay31015_output_pin_t
+enum ay31015_output_pin_t
{
AY31015_PE=13, /* PE - Pin 13 - Parity error */
AY31015_FE=14, /* FE - Pin 14 - Framing error */
@@ -49,7 +49,7 @@ enum ay31015_output_pin_t
};
-struct ay31015_config
+struct ay31015_config
{
ay31015_type_t type; /* Type of chip */
double transmitter_clock; /* TCP - pin 40 */
diff --git a/src/mess/machine/c128.c b/src/mess/machine/c128.c
index cbaa6f38d38..809efae4107 100644
--- a/src/mess/machine/c128.c
+++ b/src/mess/machine/c128.c
@@ -139,12 +139,12 @@ READ8_MEMBER( c128_state::cia1_pb_r )
value &= cbm_common_cia0_port_b_r(m_cia1, cia0porta);
/*
- if (!intf->k0_r())
- value &= m_keyline[0];
- if (!intf->k1_r())
- value &= m_keyline[1];
- if (!intf->k2_r())
- value &= m_keyline[2];
+ if (!intf->k0_r())
+ value &= m_keyline[0];
+ if (!intf->k1_r())
+ value &= m_keyline[1];
+ if (!intf->k2_r())
+ value &= m_keyline[2];
*/
return value;
}
diff --git a/src/mess/machine/c1541.c b/src/mess/machine/c1541.c
index a1588ee014c..a2a7c10e5d6 100644
--- a/src/mess/machine/c1541.c
+++ b/src/mess/machine/c1541.c
@@ -810,18 +810,18 @@ WRITE8_MEMBER( c1541_prologic_dos_classic_device::pia_w )
WRITE8_MEMBER( c1541_prologic_dos_classic_device::pia_pa_w )
{
/*
-
+
bit description
-
+
0 1/2 MHz
- 1
- 2
+ 1
+ 2
3 35/40 tracks
- 4
- 5
- 6
+ 4
+ 5
+ 6
7 Hi
-
+
*/
}
diff --git a/src/mess/machine/c64_ide64.c b/src/mess/machine/c64_ide64.c
index 349cc59fc02..95f76b4890b 100644
--- a/src/mess/machine/c64_ide64.c
+++ b/src/mess/machine/c64_ide64.c
@@ -45,10 +45,10 @@ const device_type C64_IDE64 = &device_creator<c64_ide64_cartridge_device>;
//-------------------------------------------------
// MACHINE_CONFIG_FRAGMENT( c64_ide64 )
//-------------------------------------------------
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- NULL,
- NULL,
+ NULL,
+ NULL,
0
};
diff --git a/src/mess/machine/cbmiec.c b/src/mess/machine/cbmiec.c
index a0d90c40d1e..96ac04001e8 100644
--- a/src/mess/machine/cbmiec.c
+++ b/src/mess/machine/cbmiec.c
@@ -192,9 +192,9 @@ C64 SERIAL BUS
/*
- TODO:
+ TODO:
- - refactor into an actual daisy chain instead of this convenient hack
+ - refactor into an actual daisy chain instead of this convenient hack
*/
diff --git a/src/mess/machine/coco_fdc.h b/src/mess/machine/coco_fdc.h
index 0200ed1c359..3a96e1e2f06 100644
--- a/src/mess/machine/coco_fdc.h
+++ b/src/mess/machine/coco_fdc.h
@@ -13,7 +13,7 @@
// ======================> coco_rtc_type_t
-enum coco_rtc_type_t
+enum coco_rtc_type_t
{
RTC_DISTO = 0x00,
RTC_CLOUD9 = 0x01,
diff --git a/src/mess/machine/diag264_lb_iec.h b/src/mess/machine/diag264_lb_iec.h
index d9be2dc568b..57abd0c9adf 100644
--- a/src/mess/machine/diag264_lb_iec.h
+++ b/src/mess/machine/diag264_lb_iec.h
@@ -25,7 +25,7 @@
// ======================> diag264_serial_loopback_device
class diag264_serial_loopback_device : public device_t,
- public device_cbm_iec_interface
+ public device_cbm_iec_interface
{
public:
// construction/destruction
diff --git a/src/mess/machine/diag264_lb_user.h b/src/mess/machine/diag264_lb_user.h
index 75eae2b04a1..24cb6c621d6 100644
--- a/src/mess/machine/diag264_lb_user.h
+++ b/src/mess/machine/diag264_lb_user.h
@@ -25,7 +25,7 @@
// ======================> diag264_user_port_loopback_device
class diag264_user_port_loopback_device : public device_t,
- public device_plus4_user_port_interface
+ public device_plus4_user_port_interface
{
public:
// construction/destruction
diff --git a/src/mess/machine/ds1315.c b/src/mess/machine/ds1315.c
index a6f0023a0ed..1faf507def5 100644
--- a/src/mess/machine/ds1315.c
+++ b/src/mess/machine/ds1315.c
@@ -15,7 +15,7 @@
TYPE DEFINITIONS
***************************************************************************/
-enum ds1315_mode_t
+enum ds1315_mode_t
{
DS_SEEK_MATCHING,
DS_CALENDAR_IO
diff --git a/src/mess/machine/i8271.c b/src/mess/machine/i8271.c
index 4ee54be8e0d..dcce3878156 100644
--- a/src/mess/machine/i8271.c
+++ b/src/mess/machine/i8271.c
@@ -89,7 +89,7 @@ struct i8271_t
emu_timer *command_complete_timer;
};
-enum I8271_STATE_t
+enum I8271_STATE_t
{
I8271_STATE_EXECUTION_READ = 0,
I8271_STATE_EXECUTION_WRITE
diff --git a/src/mess/machine/i8271.h b/src/mess/machine/i8271.h
index 7bcefc6e2cd..6e942c5989b 100644
--- a/src/mess/machine/i8271.h
+++ b/src/mess/machine/i8271.h
@@ -36,7 +36,7 @@ extern const device_type I8271;
TYPE DEFINITIONS
***************************************************************************/
-struct i8271_interface
+struct i8271_interface
{
void (*interrupt)(device_t *device, int state);
void (*dma_request)(device_t *device, int state, int read_);
diff --git a/src/mess/machine/isa_ide.c b/src/mess/machine/isa_ide.c
index d77c4f7e922..b410a361644 100644
--- a/src/mess/machine/isa_ide.c
+++ b/src/mess/machine/isa_ide.c
@@ -40,10 +40,10 @@ static void ide_interrupt(device_t *device, int state)
}
}
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt,
- NULL,
+ ide_interrupt,
+ NULL,
0
};
diff --git a/src/mess/machine/isa_sblaster.c b/src/mess/machine/isa_sblaster.c
index 181f4f89e04..eedec5cb56b 100644
--- a/src/mess/machine/isa_sblaster.c
+++ b/src/mess/machine/isa_sblaster.c
@@ -497,7 +497,7 @@ void sb_device::process_fifo(UINT8 cmd)
m_dsp.dma_throttled = false;
drq_w(1);
m_dsp.flags = ADPCM3;
- break;
+ break;
case 0xda: // stop 8-bit autoinit
m_dsp.dma_autoinit = 0;
break;
@@ -911,7 +911,7 @@ void sb_device::device_reset()
m_dsp.fifo_r_ptr = 0;
m_dsp.wbuf_status = 0;
m_dsp.rbuf_status = 0;
- m_dsp.frequency = 8000; // per stereo-fx
+ m_dsp.frequency = 8000; // per stereo-fx
m_dsp.irq_active = 0;
m_mixer_index = 0;
m_dsp.dma_no_irq = false;
@@ -919,7 +919,7 @@ void sb_device::device_reset()
UINT8 sb_device::dack_r(int line)
{
- m_dsp.adc_transferred++;
+ m_dsp.adc_transferred++;
if(m_dsp.adc_transferred >= m_dsp.adc_length)
{
drq_w(0);
@@ -1057,12 +1057,12 @@ void sb_device::device_timer(emu_timer &timer, device_timer_id tid, int param, v
case 0: // 8-bit unsigned mono
m_dacl->write_unsigned8(m_dsp.data[m_dsp.d_rptr]);
m_dacr->write_unsigned8(m_dsp.data[m_dsp.d_rptr]);
- m_dsp.data[m_dsp.d_rptr++] = 0x80;
+ m_dsp.data[m_dsp.d_rptr++] = 0x80;
break;
case SIGNED: // 8-bit signed mono
m_dacl->write_unsigned8(m_dsp.data[m_dsp.d_rptr] + 128);
m_dacr->write_unsigned8(m_dsp.data[m_dsp.d_rptr] + 128);
- m_dsp.data[m_dsp.d_rptr++] = 0x00;
+ m_dsp.data[m_dsp.d_rptr++] = 0x00;
break;
case STEREO: // 8-bit unsigned stereo
m_dacl->write_unsigned8(m_dsp.data[m_dsp.d_rptr]);
@@ -1078,37 +1078,37 @@ void sb_device::device_timer(emu_timer &timer, device_timer_id tid, int param, v
break;
case SIXTEENBIT: // 16-bit unsigned mono
lsample = m_dsp.data[m_dsp.d_rptr] | (m_dsp.data[m_dsp.d_rptr+1] << 8);
- m_dsp.data[m_dsp.d_rptr++] = 0x00;
- m_dsp.data[m_dsp.d_rptr++] = 0x80;
+ m_dsp.data[m_dsp.d_rptr++] = 0x00;
+ m_dsp.data[m_dsp.d_rptr++] = 0x80;
m_dacl->write_unsigned16(lsample);
m_dacr->write_unsigned16(lsample);
break;
case SIXTEENBIT | SIGNED: // 16-bit signed mono
lsample = m_dsp.data[m_dsp.d_rptr] | (m_dsp.data[m_dsp.d_rptr+1] << 8);
- m_dsp.data[m_dsp.d_rptr++] = 0x00;
- m_dsp.data[m_dsp.d_rptr++] = 0x00;
+ m_dsp.data[m_dsp.d_rptr++] = 0x00;
+ m_dsp.data[m_dsp.d_rptr++] = 0x00;
m_dacl->write_unsigned16(lsample + 32768);
m_dacr->write_unsigned16(lsample + 32768);
break;
case SIXTEENBIT | STEREO: // 16-bit unsigned stereo
lsample = m_dsp.data[m_dsp.d_rptr] | (m_dsp.data[m_dsp.d_rptr+1] << 8);
m_dsp.data[m_dsp.d_rptr++] = 0x00;
- m_dsp.data[m_dsp.d_rptr++] = 0x80;
+ m_dsp.data[m_dsp.d_rptr++] = 0x80;
m_dsp.d_rptr %= 128;
rsample = m_dsp.data[m_dsp.d_rptr] | (m_dsp.data[m_dsp.d_rptr+1] << 8);
- m_dsp.data[m_dsp.d_rptr++] = 0x00;
- m_dsp.data[m_dsp.d_rptr++] = 0x80;
+ m_dsp.data[m_dsp.d_rptr++] = 0x00;
+ m_dsp.data[m_dsp.d_rptr++] = 0x80;
m_dacl->write_unsigned16(lsample);
m_dacr->write_unsigned16(rsample);
break;
- case SIXTEENBIT | SIGNED | STEREO: // 16-bit signed stereo
+ case SIXTEENBIT | SIGNED | STEREO: // 16-bit signed stereo
lsample = m_dsp.data[m_dsp.d_rptr] | (m_dsp.data[m_dsp.d_rptr+1] << 8);
m_dsp.data[m_dsp.d_rptr++] = 0x00;
- m_dsp.data[m_dsp.d_rptr++] = 0x00;
- m_dsp.d_rptr %= 128;
+ m_dsp.data[m_dsp.d_rptr++] = 0x00;
+ m_dsp.d_rptr %= 128;
rsample = m_dsp.data[m_dsp.d_rptr] | (m_dsp.data[m_dsp.d_rptr+1] << 8);
- m_dsp.data[m_dsp.d_rptr++] = 0x00;
- m_dsp.data[m_dsp.d_rptr++] = 0x00;
+ m_dsp.data[m_dsp.d_rptr++] = 0x00;
+ m_dsp.data[m_dsp.d_rptr++] = 0x00;
m_dacl->write_unsigned16(lsample + 32768);
m_dacr->write_unsigned16(rsample + 32768);
break;
@@ -1148,7 +1148,7 @@ void sb_device::device_timer(emu_timer &timer, device_timer_id tid, int param, v
m_dacl->write_unsigned8(m_dsp.adpcm_ref);
m_dacr->write_unsigned8(m_dsp.adpcm_ref);
break;
- }
+ }
lsample = m_dsp.data[m_dsp.d_rptr];
switch(m_dsp.adpcm_count++)
{
@@ -1173,7 +1173,7 @@ void sb_device::device_timer(emu_timer &timer, device_timer_id tid, int param, v
m_dacl->write_unsigned8(m_dsp.adpcm_ref);
m_dacr->write_unsigned8(m_dsp.adpcm_ref);
break;
- }
+ }
lsample = m_dsp.data[m_dsp.d_rptr];
switch(m_dsp.adpcm_count++)
{
diff --git a/src/mess/machine/isa_stereo_fx.c b/src/mess/machine/isa_stereo_fx.c
index 791d39c47ff..d735bc569a5 100644
--- a/src/mess/machine/isa_stereo_fx.c
+++ b/src/mess/machine/isa_stereo_fx.c
@@ -56,7 +56,7 @@ WRITE8_MEMBER( stereo_fx_device::raise_drq_w )
}
/* port 0x20 - in ROM (usually) stored in RAM 0x22
- * bit0 -
+ * bit0 -
* bit1 -
* bit2 -
* bit3 -
diff --git a/src/mess/machine/kay_kbd.c b/src/mess/machine/kay_kbd.c
index 1a12077e8a0..7ac43f62248 100644
--- a/src/mess/machine/kay_kbd.c
+++ b/src/mess/machine/kay_kbd.c
@@ -64,7 +64,7 @@
* - "Keypad ," is not mapped
*/
-struct kay_kbd_t
+struct kay_kbd_t
{
device_t *beeper;
UINT8 buff[16];
diff --git a/src/mess/machine/kc_d004.c b/src/mess/machine/kc_d004.c
index 6842ae1d98a..95508996fe3 100644
--- a/src/mess/machine/kc_d004.c
+++ b/src/mess/machine/kc_d004.c
@@ -122,10 +122,10 @@ static MACHINE_CONFIG_FRAGMENT(kc_d004)
MCFG_LEGACY_FLOPPY_4_DRIVES_ADD(kc_d004_floppy_interface)
MACHINE_CONFIG_END
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- NULL,
- NULL,
+ NULL,
+ NULL,
0
};
diff --git a/src/mess/machine/kr2376.h b/src/mess/machine/kr2376.h
index 0b53c5760f3..c847343bdd1 100644
--- a/src/mess/machine/kr2376.h
+++ b/src/mess/machine/kr2376.h
@@ -66,13 +66,13 @@ extern const device_type KR2376;
/*
* Input pins
*/
-enum kr2376_input_pin_t
+enum kr2376_input_pin_t
{
KR2376_DSII=20, /* DSII - Pin 20 - Data & Strobe Invert Input */
KR2376_PII=6 /* PII - Pin 6 - Parity Invert Input */
};
-enum kr2376_output_pin_t
+enum kr2376_output_pin_t
{
KR2376_SO=16, /* SO - Pin 16 - Strobe Output */
KR2376_PO=7 /* PO - Pin 7 - Parity Output */
diff --git a/src/mess/machine/mc68328.h b/src/mess/machine/mc68328.h
index 4d004b7343b..0750b2c5475 100644
--- a/src/mess/machine/mc68328.h
+++ b/src/mess/machine/mc68328.h
@@ -10,7 +10,7 @@
#ifndef __MC68328_PRIVATE_H_
#define __MC68328_PRIVATE_H_
-struct mc68328_regs_t
+struct mc68328_regs_t
{
// $(FF)FFF000
UINT8 scr; // System Control Register
@@ -203,7 +203,7 @@ struct mc68328_regs_t
UINT8 unused42[1260];
};
-struct mc68328_t
+struct mc68328_t
{
const mc68328_interface* iface;
diff --git a/src/mess/machine/mc6843.c b/src/mess/machine/mc6843.c
index 08ea6f6afed..d5788a07b33 100644
--- a/src/mess/machine/mc6843.c
+++ b/src/mess/machine/mc6843.c
@@ -42,7 +42,7 @@
/******************* internal chip data structure ******************/
-struct mc6843_t
+struct mc6843_t
{
/* interface */
diff --git a/src/mess/machine/mc6846.c b/src/mess/machine/mc6846.c
index 23c9c712ec3..320b65e1084 100644
--- a/src/mess/machine/mc6846.c
+++ b/src/mess/machine/mc6846.c
@@ -28,7 +28,7 @@
/******************* internal chip data structure ******************/
-struct mc6846_t
+struct mc6846_t
{
const mc6846_interface* iface;
diff --git a/src/mess/machine/mc6854.c b/src/mess/machine/mc6854.c
index d2d10a5e710..918ac72c583 100644
--- a/src/mess/machine/mc6854.c
+++ b/src/mess/machine/mc6854.c
@@ -57,7 +57,7 @@
/******************* internal chip data structure ******************/
-struct mc6854_t
+struct mc6854_t
{
devcb_resolved_write_line out_irq_func;
devcb_resolved_read_line in_rxd_func;
diff --git a/src/mess/machine/mos8722.c b/src/mess/machine/mos8722.c
index 0c1cf2ec6cd..5c80c12ee64 100644
--- a/src/mess/machine/mos8722.c
+++ b/src/mess/machine/mos8722.c
@@ -24,7 +24,7 @@ enum
CR = 0,
PCRA, LCRA = PCRA,
PCRB, LCRB = PCRB,
- PCRC, LCRC = PCRC,
+ PCRC, LCRC = PCRC,
PCRD, LCRD = PCRD,
MCR,
RCR,
@@ -69,7 +69,7 @@ enum
// RAM configuration register
static const offs_t RCR_BOTTOM_ADDRESS[4] = { 0x0400, 0x1000, 0x0400, 0x1000 };
-static const offs_t RCR_TOP_ADDRESS[4] = { 0xf000, 0xf000, 0xe000, 0xc000 };
+static const offs_t RCR_TOP_ADDRESS[4] = { 0xf000, 0xf000, 0xe000, 0xc000 };
enum
{
@@ -337,7 +337,7 @@ offs_t mos8722_device::ta_r(offs_t offset, int aec, int *ms0, int *ms1, int *ms2
*cas1 = P1H_A16 ? 0 : 1;
}
}
-
+
if ((RCR_BOTTOM && offset < RCR_BOTTOM_ADDRESS[RCR_SHARE]) ||
(RCR_TOP && offset >= RCR_TOP_ADDRESS[RCR_SHARE]))
{
diff --git a/src/mess/machine/nes_unif.c b/src/mess/machine/nes_unif.c
index 3a374983d99..318698edd12 100644
--- a/src/mess/machine/nes_unif.c
+++ b/src/mess/machine/nes_unif.c
@@ -9,7 +9,7 @@
****************************************************************************************/
-struct unif
+struct unif
{
const char *board; /* UNIF board */
diff --git a/src/mess/machine/petcass.h b/src/mess/machine/petcass.h
index d915c2c68f1..98e2d97dba3 100644
--- a/src/mess/machine/petcass.h
+++ b/src/mess/machine/petcass.h
@@ -65,8 +65,8 @@ struct pet_datassette_port_interface
class device_pet_datassette_port_interface;
class pet_datassette_port_device : public device_t,
- public pet_datassette_port_interface,
- public device_slot_interface
+ public pet_datassette_port_interface,
+ public device_slot_interface
{
public:
// construction/destruction
diff --git a/src/mess/machine/rmnimbus.c b/src/mess/machine/rmnimbus.c
index fd621684400..73780c9d6a4 100644
--- a/src/mess/machine/rmnimbus.c
+++ b/src/mess/machine/rmnimbus.c
@@ -1970,7 +1970,7 @@ static const struct nimbus_meminfo memmap[] =
{ 0xE0000, 0xEFFFF }
};
-struct nimbus_block
+struct nimbus_block
{
int blockbase;
int blocksize;
diff --git a/src/mess/machine/s3c44b0.h b/src/mess/machine/s3c44b0.h
index 98b741f5c3c..2fdfba2a832 100644
--- a/src/mess/machine/s3c44b0.h
+++ b/src/mess/machine/s3c44b0.h
@@ -373,12 +373,12 @@ void s3c44b0_request_eint( device_t *device, UINT32 number);
TYPE DEFINITIONS
*******************************************************************************/
-struct s3c44b0_memcon_regs_t
+struct s3c44b0_memcon_regs_t
{
UINT32 data[0x34/4];
};
-struct s3c44b0_irq_regs_t
+struct s3c44b0_irq_regs_t
{
UINT32 intcon;
UINT32 intpnd;
@@ -395,7 +395,7 @@ struct s3c44b0_irq_regs_t
UINT32 f_ispc;
};
-struct s3c44b0_dma_regs_t
+struct s3c44b0_dma_regs_t
{
UINT32 dcon;
UINT32 disrc;
@@ -406,7 +406,7 @@ struct s3c44b0_dma_regs_t
UINT32 dccnt;
};
-struct s3c44b0_clkpow_regs_t
+struct s3c44b0_clkpow_regs_t
{
UINT32 pllcon;
UINT32 clkcon;
@@ -414,7 +414,7 @@ struct s3c44b0_clkpow_regs_t
UINT32 locktime;
};
-struct s3c44b0_lcd_regs_t
+struct s3c44b0_lcd_regs_t
{
UINT32 lcdcon1;
UINT32 lcdcon2;
@@ -429,7 +429,7 @@ struct s3c44b0_lcd_regs_t
UINT32 dithmode;
};
-struct s3c44b0_uart_regs_t
+struct s3c44b0_uart_regs_t
{
UINT32 ulcon;
UINT32 ucon;
@@ -444,7 +444,7 @@ struct s3c44b0_uart_regs_t
UINT32 ubrdiv;
};
-struct s3c44b0_sio_regs_t
+struct s3c44b0_sio_regs_t
{
UINT32 siocon;
UINT32 siodat;
@@ -453,7 +453,7 @@ struct s3c44b0_sio_regs_t
UINT32 dcntz;
};
-struct s3c44b0_pwm_regs_t
+struct s3c44b0_pwm_regs_t
{
UINT32 tcfg0;
UINT32 tcfg1;
@@ -477,14 +477,14 @@ struct s3c44b0_pwm_regs_t
UINT32 tcnto5;
};
-struct s3c44b0_wdt_regs_t
+struct s3c44b0_wdt_regs_t
{
UINT32 wtcon;
UINT32 wtdat;
UINT32 wtcnt;
};
-struct s3c44b0_iic_regs_t
+struct s3c44b0_iic_regs_t
{
UINT32 iiccon;
UINT32 iicstat;
@@ -492,7 +492,7 @@ struct s3c44b0_iic_regs_t
UINT32 iicds;
};
-struct s3c44b0_iis_regs_t
+struct s3c44b0_iis_regs_t
{
UINT32 iiscon;
UINT32 iismod;
@@ -501,7 +501,7 @@ struct s3c44b0_iis_regs_t
UINT32 iisfifo;
};
-struct s3c44b0_gpio_regs_t
+struct s3c44b0_gpio_regs_t
{
UINT32 gpacon;
UINT32 gpadat;
@@ -527,7 +527,7 @@ struct s3c44b0_gpio_regs_t
UINT32 extintpnd;
};
-struct s3c44b0_rtc_regs_t
+struct s3c44b0_rtc_regs_t
{
UINT32 rtccon;
UINT32 reserved[3];
@@ -549,48 +549,48 @@ struct s3c44b0_rtc_regs_t
UINT32 ticnt;
};
-struct s3c44b0_adc_regs_t
+struct s3c44b0_adc_regs_t
{
UINT32 adccon;
UINT32 adcpsr;
UINT32 adcdat;
};
-struct s3c44b0_cpuwrap_regs_t
+struct s3c44b0_cpuwrap_regs_t
{
UINT32 syscfg;
UINT32 ncachbe0;
UINT32 ncachbe1;
};
-struct s3c44b0_memcon_t
+struct s3c44b0_memcon_t
{
s3c44b0_memcon_regs_t regs;
};
-struct s3c44b0_irq_t
+struct s3c44b0_irq_t
{
s3c44b0_irq_regs_t regs;
int line_irq, line_fiq;
};
-struct s3c44b0_dma_t
+struct s3c44b0_dma_t
{
s3c44b0_dma_regs_t regs;
emu_timer *timer;
};
-struct s3c44b0_clkpow_t
+struct s3c44b0_clkpow_t
{
s3c44b0_clkpow_regs_t regs;
};
-struct rectangle_t
+struct rectangle_t
{
int x1, y1, x2, y2;
};
-struct s3c44b0_lcd_t
+struct s3c44b0_lcd_t
{
s3c44b0_lcd_regs_t regs;
emu_timer *timer;
@@ -609,19 +609,19 @@ struct s3c44b0_lcd_t
attoseconds_t frame_period, pixeltime, scantime;
};
-struct s3c44b0_uart_t
+struct s3c44b0_uart_t
{
s3c44b0_uart_regs_t regs;
emu_timer *timer;
};
-struct s3c44b0_sio_t
+struct s3c44b0_sio_t
{
s3c44b0_sio_regs_t regs;
emu_timer *timer;
};
-struct s3c44b0_pwm_t
+struct s3c44b0_pwm_t
{
s3c44b0_pwm_regs_t regs;
emu_timer *timer[6];
@@ -630,20 +630,20 @@ struct s3c44b0_pwm_t
UINT32 freq[6];
};
-struct s3c44b0_wdt_t
+struct s3c44b0_wdt_t
{
s3c44b0_wdt_regs_t regs;
emu_timer *timer;
};
-struct s3c44b0_iic_t
+struct s3c44b0_iic_t
{
s3c44b0_iic_regs_t regs;
emu_timer *timer;
int count;
};
-struct s3c44b0_iis_t
+struct s3c44b0_iis_t
{
s3c44b0_iis_regs_t regs;
emu_timer *timer;
@@ -651,30 +651,30 @@ struct s3c44b0_iis_t
int fifo_index;
};
-struct s3c44b0_gpio_t
+struct s3c44b0_gpio_t
{
s3c44b0_gpio_regs_t regs;
};
-struct s3c44b0_rtc_t
+struct s3c44b0_rtc_t
{
s3c44b0_rtc_regs_t regs;
emu_timer *timer_tick_count;
emu_timer *timer_update;
};
-struct s3c44b0_adc_t
+struct s3c44b0_adc_t
{
s3c44b0_adc_regs_t regs;
emu_timer *timer;
};
-struct s3c44b0_cpuwrap_t
+struct s3c44b0_cpuwrap_t
{
s3c44b0_cpuwrap_regs_t regs;
};
-struct s3c44b0_t
+struct s3c44b0_t
{
const s3c44b0_interface *iface;
address_space* space;
diff --git a/src/mess/machine/sgi.c b/src/mess/machine/sgi.c
index 1b446969662..bf4e9611a62 100644
--- a/src/mess/machine/sgi.c
+++ b/src/mess/machine/sgi.c
@@ -24,7 +24,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog( running_machine &machine, int n_level,
}
}
-struct MC_t
+struct MC_t
{
emu_timer *tUpdateTimer;
UINT32 nCPUControl0;
diff --git a/src/mess/machine/smartmed.c b/src/mess/machine/smartmed.c
index 1d1251dfdc2..adcaa4f4a6b 100644
--- a/src/mess/machine/smartmed.c
+++ b/src/mess/machine/smartmed.c
@@ -27,7 +27,7 @@
#define MAX_SMARTMEDIA 1
/* machine-independent big-endian 32-bit integer */
-struct UINT32BE
+struct UINT32BE
{
UINT8 bytes[4];
};
@@ -48,7 +48,7 @@ INLINE void set_UINT32BE(UINT32BE *word, UINT32 data)
#endif
/* SmartMedia image header */
-struct disk_image_header
+struct disk_image_header
{
UINT8 version;
UINT32BE page_data_size;
@@ -57,7 +57,7 @@ struct disk_image_header
UINT32BE log2_pages_per_block;
};
-struct disk_image_format_2_header
+struct disk_image_format_2_header
{
UINT8 data1[3];
UINT8 padding1[256-3];
diff --git a/src/mess/machine/smc92x4.h b/src/mess/machine/smc92x4.h
index 3c3b73832e9..0d942fd8773 100644
--- a/src/mess/machine/smc92x4.h
+++ b/src/mess/machine/smc92x4.h
@@ -36,7 +36,7 @@ extern const device_type SMC92X4;
#define DS_READY 0x02 /* drive ready bit */
#define DS_WRFAULT 0x01 /* write fault */
-struct smc92x4_interface
+struct smc92x4_interface
{
// Disk format support. This flag allows to choose between the full
// FM/MFM format and an abbreviated track layout. The difference results
diff --git a/src/mess/machine/strata.c b/src/mess/machine/strata.c
index 06dad0ab893..772eee3368b 100644
--- a/src/mess/machine/strata.c
+++ b/src/mess/machine/strata.c
@@ -44,7 +44,7 @@ enum fm_mode_t
FM_CONFPART1, // first half of configuration, awaiting second
FM_WRPROTPART1 // first half of protection program, awaiting second
};
-struct strata_t
+struct strata_t
{
fm_mode_t mode; // current operation mode
int hard_unlock; // 1 if RP* pin is at Vhh (not fully implemented)
@@ -229,7 +229,7 @@ int strataflash_save(device_t *device, emu_file *file)
}
/* bus width for 8/16-bit handlers */
-enum bus_width_t
+enum bus_width_t
{
bw_8,
bw_16
diff --git a/src/mess/machine/thomson.c b/src/mess/machine/thomson.c
index d9ffb02d6db..a2030b70dc5 100644
--- a/src/mess/machine/thomson.c
+++ b/src/mess/machine/thomson.c
@@ -681,7 +681,7 @@ const pia6821_interface to7_pia6821_sys =
-enum to7_io_dev
+enum to7_io_dev
{
TO7_IO_NONE,
TO7_IO_CENTRONICS,
diff --git a/src/mess/machine/ti99/datamux.h b/src/mess/machine/ti99/datamux.h
index 3575f2c2ce7..1ea731fac3f 100644
--- a/src/mess/machine/ti99/datamux.h
+++ b/src/mess/machine/ti99/datamux.h
@@ -23,7 +23,7 @@ extern const device_type DATAMUX;
if the HGSPL expansion card is used, the GROMs in the console must be
removed.
*/
-struct dmux_device_list_entry
+struct dmux_device_list_entry
{
const char *name; // Name of the device (used for looking up the device)
UINT16 select; // State of the address line bits when addressing this device
@@ -37,7 +37,7 @@ struct dmux_device_list_entry
#define DMUX_CONFIG(name) \
const datamux_config(name) =
-struct datamux_config
+struct datamux_config
{
devcb_write_line ready;
const dmux_device_list_entry *devlist;
diff --git a/src/mess/machine/ti99/genboard.h b/src/mess/machine/ti99/genboard.h
index 0d55611f071..5e991aa002e 100644
--- a/src/mess/machine/ti99/genboard.h
+++ b/src/mess/machine/ti99/genboard.h
@@ -44,7 +44,7 @@ private:
/*****************************************************************************/
-struct geneve_keyboard_config
+struct geneve_keyboard_config
{
devcb_write_line interrupt;
};
@@ -110,7 +110,7 @@ private:
/*****************************************************************************/
-struct geneve_mapper_config
+struct geneve_mapper_config
{
devcb_write_line ready;
};
diff --git a/src/mess/machine/ti99/grom.h b/src/mess/machine/ti99/grom.h
index d8b5b864db5..2c33aecd093 100644
--- a/src/mess/machine/ti99/grom.h
+++ b/src/mess/machine/ti99/grom.h
@@ -13,7 +13,7 @@
#include "ti99defs.h"
-struct ti99grom_config
+struct ti99grom_config
{
bool writable;
int ident;
diff --git a/src/mess/machine/ti99/gromport.h b/src/mess/machine/ti99/gromport.h
index 43df56c3a01..80d21cd6897 100644
--- a/src/mess/machine/ti99/gromport.h
+++ b/src/mess/machine/ti99/gromport.h
@@ -18,7 +18,7 @@ extern const device_type GROMPORT;
#define GROMPORT_CONFIG(name) \
const gromport_config(name) =
-struct gromport_config
+struct gromport_config
{
devcb_write_line ready;
devcb_write_line reset;
@@ -366,7 +366,7 @@ private:
};
-struct pcb_type
+struct pcb_type
{
int id;
const char* name;
diff --git a/src/mess/machine/ti99/joyport.h b/src/mess/machine/ti99/joyport.h
index 9e9a2caa78a..5d6de759713 100644
--- a/src/mess/machine/ti99/joyport.h
+++ b/src/mess/machine/ti99/joyport.h
@@ -22,7 +22,7 @@
extern const device_type JOYPORT;
-struct joyport_config
+struct joyport_config
{
devcb_write_line interrupt;
int vdp_clock;
diff --git a/src/mess/machine/ti99/mapper8.h b/src/mess/machine/ti99/mapper8.h
index 53bf2a1ca67..035637d1ebe 100644
--- a/src/mess/machine/ti99/mapper8.h
+++ b/src/mess/machine/ti99/mapper8.h
@@ -36,7 +36,7 @@ extern const device_type MAPPER8;
#define SRAM_SIZE 2048
#define DRAM_SIZE 65536
-struct mapper8_list_entry
+struct mapper8_list_entry
{
const char* name; // Name of the device (used for looking up the device)
int mode; // Mode of the system which applies to this entry
@@ -49,7 +49,7 @@ struct mapper8_list_entry
#define MAPPER8_CONFIG(name) \
const mapper8_config(name) =
-struct mapper8_config
+struct mapper8_config
{
devcb_write_line ready;
const mapper8_list_entry *devlist;
diff --git a/src/mess/machine/ti99/peribox.h b/src/mess/machine/ti99/peribox.h
index 2ba6bb47b5d..6b5c7deb2f0 100644
--- a/src/mess/machine/ti99/peribox.h
+++ b/src/mess/machine/ti99/peribox.h
@@ -23,7 +23,7 @@ extern const device_type PERIBOX_GEN;
#define DSRROM "dsrrom"
-struct peribox_config
+struct peribox_config
{
devcb_write_line inta;
devcb_write_line intb;
diff --git a/src/mess/machine/ti99/speech8.h b/src/mess/machine/ti99/speech8.h
index c50324c6428..30c4af9dd71 100644
--- a/src/mess/machine/ti99/speech8.h
+++ b/src/mess/machine/ti99/speech8.h
@@ -21,7 +21,7 @@ extern const device_type TI99_SPEECH8;
#define SPEECH8_CONFIG(name) \
const speech8_config(name) =
-struct speech8_config
+struct speech8_config
{
devcb_write_line ready;
};
diff --git a/src/mess/machine/ti99/ti99_hd.h b/src/mess/machine/ti99/ti99_hd.h
index 1457eb25299..bde3d1bd641 100644
--- a/src/mess/machine/ti99/ti99_hd.h
+++ b/src/mess/machine/ti99/ti99_hd.h
@@ -25,7 +25,7 @@ extern const device_type TI99_MFMHD;
Needed to adapt to higher cylinder numbers. Floppies do not have such
high numbers.
*/
-struct chrn_id_hd
+struct chrn_id_hd
{
UINT16 C;
UINT8 H;
diff --git a/src/mess/machine/ti99/tn_ide.c b/src/mess/machine/ti99/tn_ide.c
index 558fe5f76e8..5b532dfc363 100644
--- a/src/mess/machine/ti99/tn_ide.c
+++ b/src/mess/machine/ti99/tn_ide.c
@@ -334,10 +334,10 @@ static const rtc65271_interface ide_rtc_cfg =
DEVCB_DEVICE_LINE_MEMBER(DEVICE_SELF_OWNER, nouspikel_ide_interface_device, clock_interrupt_callback)
};
-static const ide_config ide_intf =
+static const ide_config ide_intf =
{
- ide_interrupt_callback,
- NULL,
+ ide_interrupt_callback,
+ NULL,
0
};
diff --git a/src/mess/machine/ti99/videowrp.h b/src/mess/machine/ti99/videowrp.h
index f0e765eb42f..1cc9feea7ff 100644
--- a/src/mess/machine/ti99/videowrp.h
+++ b/src/mess/machine/ti99/videowrp.h
@@ -77,7 +77,7 @@ extern const device_type V9938VIDEO;
extern const device_type TISOUND_94624;
extern const device_type TISOUND_76496;
-struct ti_sound_config
+struct ti_sound_config
{
devcb_write_line ready;
};
diff --git a/src/mess/machine/upd765.c b/src/mess/machine/upd765.c
index 74615c56119..d8abaa3c81f 100644
--- a/src/mess/machine/upd765.c
+++ b/src/mess/machine/upd765.c
@@ -30,7 +30,7 @@
#include "machine/upd765.h"
-enum UPD765_PHASE
+enum UPD765_PHASE
{
UPD765_COMMAND_PHASE_FIRST_BYTE,
UPD765_COMMAND_PHASE_BYTES,
@@ -40,7 +40,7 @@ enum UPD765_PHASE
};
/* supported versions */
-enum UPD765_VERSION
+enum UPD765_VERSION
{
TYPE_UPD765A = 0,
TYPE_UPD765B = 1,
diff --git a/src/mess/machine/upd765.h b/src/mess/machine/upd765.h
index 23ce05cf78f..291dda6868a 100644
--- a/src/mess/machine/upd765.h
+++ b/src/mess/machine/upd765.h
@@ -78,7 +78,7 @@ extern const device_type UPD72065;
***************************************************************************/
/* RDY pin connected state */
-enum UPD765_RDY_PIN
+enum UPD765_RDY_PIN
{
UPD765_RDY_PIN_NOT_CONNECTED = 0,
UPD765_RDY_PIN_CONNECTED = 1
@@ -91,7 +91,7 @@ typedef device_t *(*upd765_get_image_func)(device_t *device, int floppy_index);
#define UPD765_GET_IMAGE(name) device_t *name(device_t *device, int floppy_index )
-struct upd765_interface
+struct upd765_interface
{
/* interrupt issued */
devcb_write_line out_int_func;
diff --git a/src/mess/machine/vp620.c b/src/mess/machine/vp620.c
index df2d6595bff..10f89981145 100644
--- a/src/mess/machine/vp620.c
+++ b/src/mess/machine/vp620.c
@@ -25,10 +25,10 @@ const device_type VP620 = &device_creator<vp620_device>;
WRITE8_MEMBER( vp620_device::kb_w )
{
m_keydata = data;
-
+
m_slot->inst_w(0);
m_slot->inst_w(1);