summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes')
-rw-r--r--src/mame/includes/1942.h110
-rw-r--r--src/mame/includes/1943.h105
-rw-r--r--src/mame/includes/20pacgal.h118
-rw-r--r--src/mame/includes/3do.h201
-rw-r--r--src/mame/includes/40love.h119
-rw-r--r--src/mame/includes/4enraya.h87
-rw-r--r--src/mame/includes/8080bw.h347
-rw-r--r--src/mame/includes/88games.h80
-rw-r--r--src/mame/includes/a2600.h110
-rw-r--r--src/mame/includes/abc1600.h170
-rw-r--r--src/mame/includes/abc80.h193
-rw-r--r--src/mame/includes/abc80x.h343
-rw-r--r--src/mame/includes/actfancr.h53
-rw-r--r--src/mame/includes/adam.h121
-rw-r--r--src/mame/includes/advision.h92
-rw-r--r--src/mame/includes/aeroboto.h87
-rw-r--r--src/mame/includes/aerofgt.h182
-rw-r--r--src/mame/includes/aim65.h133
-rw-r--r--src/mame/includes/airbustr.h99
-rw-r--r--src/mame/includes/ajax.h79
-rw-r--r--src/mame/includes/alesis.h234
-rw-r--r--src/mame/includes/aliens.h63
-rw-r--r--src/mame/includes/alpha68k.h425
-rw-r--r--src/mame/includes/amiga.h720
-rw-r--r--src/mame/includes/ampoker2.h61
-rw-r--r--src/mame/includes/amspdwy.h84
-rw-r--r--src/mame/includes/amstrad.h323
-rw-r--r--src/mame/includes/angelkds.h85
-rw-r--r--src/mame/includes/apexc.h85
-rw-r--r--src/mame/includes/apollo.h721
-rw-r--r--src/mame/includes/apple2e.h14
-rw-r--r--src/mame/includes/apple3.h173
-rw-r--r--src/mame/includes/appoooh.h91
-rw-r--r--src/mame/includes/aquarium.h89
-rw-r--r--src/mame/includes/aquarius.h98
-rw-r--r--src/mame/includes/arabian.h81
-rw-r--r--src/mame/includes/arcadecl.h68
-rw-r--r--src/mame/includes/arcadia.h140
-rw-r--r--src/mame/includes/argus.h186
-rw-r--r--src/mame/includes/arkanoid.h122
-rw-r--r--src/mame/includes/armedf.h181
-rw-r--r--src/mame/includes/artmagic.h98
-rw-r--r--src/mame/includes/ashnojoe.h85
-rw-r--r--src/mame/includes/asterix.h74
-rw-r--r--src/mame/includes/asteroid.h88
-rw-r--r--src/mame/includes/astrocde.h276
-rw-r--r--src/mame/includes/astrof.h112
-rw-r--r--src/mame/includes/asuka.h120
-rw-r--r--src/mame/includes/atari400.h67
-rw-r--r--src/mame/includes/atarifb.h137
-rw-r--r--src/mame/includes/atarig1.h81
-rw-r--r--src/mame/includes/atarig42.h105
-rw-r--r--src/mame/includes/atarigt.h129
-rw-r--r--src/mame/includes/atarigx2.h89
-rw-r--r--src/mame/includes/atarist.h485
-rw-r--r--src/mame/includes/atarisy1.h167
-rw-r--r--src/mame/includes/atarisy2.h163
-rw-r--r--src/mame/includes/atetris.h112
-rw-r--r--src/mame/includes/atom.h146
-rw-r--r--src/mame/includes/aussiebyte.h157
-rw-r--r--src/mame/includes/avalnche.h47
-rw-r--r--src/mame/includes/avigo.h121
-rw-r--r--src/mame/includes/aztarac.h61
-rw-r--r--src/mame/includes/b2m.h96
-rw-r--r--src/mame/includes/badlands.h130
-rw-r--r--src/mame/includes/bagman.h141
-rw-r--r--src/mame/includes/balsente.h210
-rw-r--r--src/mame/includes/bankp.h64
-rw-r--r--src/mame/includes/baraduke.h79
-rw-r--r--src/mame/includes/batman.h56
-rw-r--r--src/mame/includes/battlane.h64
-rw-r--r--src/mame/includes/battlera.h51
-rw-r--r--src/mame/includes/battlex.h60
-rw-r--r--src/mame/includes/battlnts.h54
-rw-r--r--src/mame/includes/bbc.h465
-rw-r--r--src/mame/includes/beathead.h92
-rw-r--r--src/mame/includes/bebox.h145
-rw-r--r--src/mame/includes/bfm_ad5.h33
-rw-r--r--src/mame/includes/bfm_sc4.h3378
-rw-r--r--src/mame/includes/bfm_sc5.h44
-rw-r--r--src/mame/includes/bigevglf.h84
-rw-r--r--src/mame/includes/bigstrkb.h59
-rw-r--r--src/mame/includes/bishi.h69
-rw-r--r--src/mame/includes/bk.h62
-rw-r--r--src/mame/includes/bking.h110
-rw-r--r--src/mame/includes/bladestl.h85
-rw-r--r--src/mame/includes/blktiger.h93
-rw-r--r--src/mame/includes/blmbycar.h87
-rw-r--r--src/mame/includes/blockout.h61
-rw-r--r--src/mame/includes/bloodbro.h94
-rw-r--r--src/mame/includes/blstroid.h68
-rw-r--r--src/mame/includes/blueprnt.h74
-rw-r--r--src/mame/includes/bogeyman.h82
-rw-r--r--src/mame/includes/bombjack.h74
-rw-r--r--src/mame/includes/boogwing.h70
-rw-r--r--src/mame/includes/bosco.h53
-rw-r--r--src/mame/includes/bottom9.h75
-rw-r--r--src/mame/includes/brkthru.h75
-rw-r--r--src/mame/includes/bsktball.h97
-rw-r--r--src/mame/includes/btime.h163
-rw-r--r--src/mame/includes/btoads.h128
-rw-r--r--src/mame/includes/bublbobl.h208
-rw-r--r--src/mame/includes/buggychl.h114
-rw-r--r--src/mame/includes/bullet.h189
-rw-r--r--src/mame/includes/busicom.h65
-rw-r--r--src/mame/includes/bw12.h146
-rw-r--r--src/mame/includes/bw2.h101
-rw-r--r--src/mame/includes/bwidow.h62
-rw-r--r--src/mame/includes/bwing.h100
-rw-r--r--src/mame/includes/bzone.h93
-rw-r--r--src/mame/includes/c65.h2
-rw-r--r--src/mame/includes/c80.h61
-rw-r--r--src/mame/includes/cabal.h116
-rw-r--r--src/mame/includes/calomega.h145
-rw-r--r--src/mame/includes/canyon.h82
-rw-r--r--src/mame/includes/capbowl.h91
-rw-r--r--src/mame/includes/carpolo.h162
-rw-r--r--src/mame/includes/cave.h360
-rw-r--r--src/mame/includes/cbasebal.h68
-rw-r--r--src/mame/includes/cbuster.h70
-rw-r--r--src/mame/includes/ccastles.h97
-rw-r--r--src/mame/includes/cchasm.h85
-rw-r--r--src/mame/includes/cclimber.h159
-rw-r--r--src/mame/includes/cdi.h122
-rw-r--r--src/mame/includes/centiped.h188
-rw-r--r--src/mame/includes/cgc7900.h130
-rw-r--r--src/mame/includes/chaknpop.h76
-rw-r--r--src/mame/includes/champbas.h139
-rw-r--r--src/mame/includes/changela.h109
-rw-r--r--src/mame/includes/channelf.h63
-rw-r--r--src/mame/includes/cheekyms.h78
-rw-r--r--src/mame/includes/chqflag.h80
-rw-r--r--src/mame/includes/cidelsa.h140
-rw-r--r--src/mame/includes/cinemat.h233
-rw-r--r--src/mame/includes/circus.h92
-rw-r--r--src/mame/includes/circusc.h89
-rw-r--r--src/mame/includes/cischeat.h254
-rw-r--r--src/mame/includes/citycon.h66
-rw-r--r--src/mame/includes/ckingbase.h73
-rw-r--r--src/mame/includes/cloak.h78
-rw-r--r--src/mame/includes/cloud9.h88
-rw-r--r--src/mame/includes/clshroad.h73
-rw-r--r--src/mame/includes/cninja.h118
-rw-r--r--src/mame/includes/coco.h275
-rw-r--r--src/mame/includes/coco12.h87
-rw-r--r--src/mame/includes/coco3.h64
-rw-r--r--src/mame/includes/coleco.h140
-rw-r--r--src/mame/includes/combatsc.h130
-rw-r--r--src/mame/includes/commando.h82
-rw-r--r--src/mame/includes/compgolf.h67
-rw-r--r--src/mame/includes/comquest.h35
-rw-r--r--src/mame/includes/comx35.h108
-rw-r--r--src/mame/includes/concept.h79
-rw-r--r--src/mame/includes/contra.h98
-rw-r--r--src/mame/includes/coolpool.h110
-rw-r--r--src/mame/includes/cop01.h95
-rw-r--r--src/mame/includes/copsnrob.h73
-rw-r--r--src/mame/includes/cosmic.h122
-rw-r--r--src/mame/includes/cosmicos.h147
-rw-r--r--src/mame/includes/cps1.h431
-rw-r--r--src/mame/includes/cps3.h194
-rw-r--r--src/mame/includes/crbaloon.h83
-rw-r--r--src/mame/includes/crgolf.h94
-rw-r--r--src/mame/includes/crimfght.h72
-rw-r--r--src/mame/includes/crospang.h83
-rw-r--r--src/mame/includes/crshrace.h81
-rw-r--r--src/mame/includes/crvision.h116
-rw-r--r--src/mame/includes/cvs.h164
-rw-r--r--src/mame/includes/cxgbase.h76
-rw-r--r--src/mame/includes/cxhumax.h284
-rw-r--r--src/mame/includes/cyberbal.h149
-rw-r--r--src/mame/includes/cybiko.h103
-rw-r--r--src/mame/includes/cybstorm.h68
-rw-r--r--src/mame/includes/dai.h82
-rw-r--r--src/mame/includes/darius.h128
-rw-r--r--src/mame/includes/darkmist.h87
-rw-r--r--src/mame/includes/darkseal.h63
-rw-r--r--src/mame/includes/dassault.h73
-rw-r--r--src/mame/includes/dbz.h98
-rw-r--r--src/mame/includes/dc.h293
-rw-r--r--src/mame/includes/dccons.h64
-rw-r--r--src/mame/includes/dcheese.h105
-rw-r--r--src/mame/includes/dcon.h77
-rw-r--r--src/mame/includes/dday.h87
-rw-r--r--src/mame/includes/ddragon.h205
-rw-r--r--src/mame/includes/ddragon3.h159
-rw-r--r--src/mame/includes/ddribble.h96
-rw-r--r--src/mame/includes/deadang.h119
-rw-r--r--src/mame/includes/dec0.h222
-rw-r--r--src/mame/includes/dec8.h260
-rw-r--r--src/mame/includes/deco32.h292
-rw-r--r--src/mame/includes/deco_mlc.h105
-rw-r--r--src/mame/includes/decocass.h450
-rw-r--r--src/mame/includes/deniam.h95
-rw-r--r--src/mame/includes/dgn_beta.h233
-rw-r--r--src/mame/includes/dgnalpha.h85
-rw-r--r--src/mame/includes/dietgo.h59
-rw-r--r--src/mame/includes/digdug.h56
-rw-r--r--src/mame/includes/divebomb.h98
-rw-r--r--src/mame/includes/djboy.h120
-rw-r--r--src/mame/includes/djmain.h107
-rw-r--r--src/mame/includes/dkong.h362
-rw-r--r--src/mame/includes/dm7000.h98
-rw-r--r--src/mame/includes/docastle.h103
-rw-r--r--src/mame/includes/dogfgt.h90
-rw-r--r--src/mame/includes/dragon.h145
-rw-r--r--src/mame/includes/dragrace.h91
-rw-r--r--src/mame/includes/drgnmst.h147
-rw-r--r--src/mame/includes/dribling.h74
-rw-r--r--src/mame/includes/drmicro.h64
-rw-r--r--src/mame/includes/dynax.h350
-rw-r--r--src/mame/includes/dynduke.h83
-rw-r--r--src/mame/includes/efdt.h78
-rw-r--r--src/mame/includes/electron.h198
-rw-r--r--src/mame/includes/elf.h81
-rw-r--r--src/mame/includes/eolith.h103
-rw-r--r--src/mame/includes/epos.h70
-rw-r--r--src/mame/includes/eprom.h83
-rw-r--r--src/mame/includes/equites.h129
-rw-r--r--src/mame/includes/esd16.h108
-rw-r--r--src/mame/includes/espial.h90
-rw-r--r--src/mame/includes/esripsys.h144
-rw-r--r--src/mame/includes/exedexes.h79
-rw-r--r--src/mame/includes/exerion.h103
-rw-r--r--src/mame/includes/exidy.h156
-rw-r--r--src/mame/includes/exidy440.h126
-rw-r--r--src/mame/includes/exp85.h54
-rw-r--r--src/mame/includes/exprraid.h87
-rw-r--r--src/mame/includes/exterm.h84
-rw-r--r--src/mame/includes/exzisus.h54
-rw-r--r--src/mame/includes/f1gp.h138
-rw-r--r--src/mame/includes/fantland.h114
-rw-r--r--src/mame/includes/fastfred.h109
-rw-r--r--src/mame/includes/fastlane.h84
-rw-r--r--src/mame/includes/fcombat.h102
-rw-r--r--src/mame/includes/fcrash.h131
-rw-r--r--src/mame/includes/fgoal.h93
-rw-r--r--src/mame/includes/finalizr.h86
-rw-r--r--src/mame/includes/firetrap.h123
-rw-r--r--src/mame/includes/firetrk.h182
-rw-r--r--src/mame/includes/fitfight.h95
-rw-r--r--src/mame/includes/flkatck.h78
-rw-r--r--src/mame/includes/flstory.h127
-rw-r--r--src/mame/includes/fm7.h424
-rw-r--r--src/mame/includes/fmtowns.h466
-rw-r--r--src/mame/includes/foodf.h76
-rw-r--r--src/mame/includes/freekick.h101
-rw-r--r--src/mame/includes/fromanc2.h134
-rw-r--r--src/mame/includes/fromance.h125
-rw-r--r--src/mame/includes/funkybee.h60
-rw-r--r--src/mame/includes/funkyjet.h65
-rw-r--r--src/mame/includes/funworld.h211
-rw-r--r--src/mame/includes/funybubl.h76
-rw-r--r--src/mame/includes/fuukifg2.h97
-rw-r--r--src/mame/includes/fuukifg3.h115
-rw-r--r--src/mame/includes/gaelco.h82
-rw-r--r--src/mame/includes/gaelco2.h169
-rw-r--r--src/mame/includes/gaelco3d.h183
-rw-r--r--src/mame/includes/gaelcrpt.h5
-rw-r--r--src/mame/includes/gaiden.h156
-rw-r--r--src/mame/includes/galaga.h110
-rw-r--r--src/mame/includes/galastrm.h111
-rw-r--r--src/mame/includes/galaxia.h54
-rw-r--r--src/mame/includes/galaxian.h580
-rw-r--r--src/mame/includes/galaxold.h320
-rw-r--r--src/mame/includes/galaxy.h69
-rw-r--r--src/mame/includes/galivan.h126
-rw-r--r--src/mame/includes/galpani2.h85
-rw-r--r--src/mame/includes/galpanic.h59
-rw-r--r--src/mame/includes/galpnipt.h159
-rw-r--r--src/mame/includes/galspnbl.h72
-rw-r--r--src/mame/includes/gamecom.h306
-rw-r--r--src/mame/includes/gameplan.h135
-rw-r--r--src/mame/includes/gamepock.h55
-rw-r--r--src/mame/includes/gaplus.h163
-rw-r--r--src/mame/includes/gatron.h37
-rw-r--r--src/mame/includes/gauntlet.h110
-rw-r--r--src/mame/includes/gb.h167
-rw-r--r--src/mame/includes/gba.h128
-rw-r--r--src/mame/includes/gberet.h92
-rw-r--r--src/mame/includes/gcpinbal.h93
-rw-r--r--src/mame/includes/generalplus_gpl16250.h144
-rw-r--r--src/mame/includes/generalplus_gpl16250_nand.h90
-rw-r--r--src/mame/includes/generalplus_gpl16250_romram.h137
-rw-r--r--src/mame/includes/gijoe.h83
-rw-r--r--src/mame/includes/ginganin.h81
-rw-r--r--src/mame/includes/gladiatr.h219
-rw-r--r--src/mame/includes/glass.h84
-rw-r--r--src/mame/includes/gng.h73
-rw-r--r--src/mame/includes/goal92.h89
-rw-r--r--src/mame/includes/goindol.h75
-rw-r--r--src/mame/includes/goldstar.h419
-rw-r--r--src/mame/includes/gomoku.h62
-rw-r--r--src/mame/includes/gotcha.h85
-rw-r--r--src/mame/includes/gottlieb.h173
-rw-r--r--src/mame/includes/gotya.h67
-rw-r--r--src/mame/includes/gp32.h254
-rw-r--r--src/mame/includes/gradius3.h78
-rw-r--r--src/mame/includes/grchamp.h150
-rw-r--r--src/mame/includes/gridlee.h124
-rw-r--r--src/mame/includes/groundfx.h72
-rw-r--r--src/mame/includes/gstriker.h102
-rw-r--r--src/mame/includes/gsword.h174
-rw-r--r--src/mame/includes/gumbo.h56
-rw-r--r--src/mame/includes/gunbustr.h83
-rw-r--r--src/mame/includes/gundealr.h72
-rw-r--r--src/mame/includes/gunsmoke.h68
-rw-r--r--src/mame/includes/gyruss.h90
-rw-r--r--src/mame/includes/hanaawas.h60
-rw-r--r--src/mame/includes/harddriv.h746
-rw-r--r--src/mame/includes/hcastle.h88
-rw-r--r--src/mame/includes/hec2hrp.h213
-rw-r--r--src/mame/includes/hexion.h67
-rw-r--r--src/mame/includes/hh_sm510.h109
-rw-r--r--src/mame/includes/hh_tms1k.h72
-rw-r--r--src/mame/includes/higemaru.h55
-rw-r--r--src/mame/includes/himesiki.h72
-rw-r--r--src/mame/includes/hitme.h75
-rw-r--r--src/mame/includes/hnayayoi.h83
-rw-r--r--src/mame/includes/hng64.h538
-rw-r--r--src/mame/includes/holeland.h74
-rw-r--r--src/mame/includes/homedata.h193
-rw-r--r--src/mame/includes/homerun.h79
-rw-r--r--src/mame/includes/hp48.h214
-rw-r--r--src/mame/includes/hp9845.h143
-rw-r--r--src/mame/includes/huebler.h86
-rw-r--r--src/mame/includes/hx20.h127
-rw-r--r--src/mame/includes/hyhoo.h56
-rw-r--r--src/mame/includes/hyperspt.h95
-rw-r--r--src/mame/includes/ikki.h68
-rw-r--r--src/mame/includes/intv.h155
-rw-r--r--src/mame/includes/inufuku.h81
-rw-r--r--src/mame/includes/iqblock.h61
-rw-r--r--src/mame/includes/iremipt.h324
-rw-r--r--src/mame/includes/irobot.h130
-rw-r--r--src/mame/includes/ironhors.h101
-rw-r--r--src/mame/includes/itech32.h307
-rw-r--r--src/mame/includes/itech8.h265
-rw-r--r--src/mame/includes/jack.h112
-rw-r--r--src/mame/includes/jackal.h76
-rw-r--r--src/mame/includes/jaguar.h415
-rw-r--r--src/mame/includes/jailbrek.h77
-rw-r--r--src/mame/includes/jedi.h126
-rw-r--r--src/mame/includes/jpmimpct.h217
-rw-r--r--src/mame/includes/jpmsys5.h195
-rw-r--r--src/mame/includes/kaneko16.h253
-rw-r--r--src/mame/includes/kangaroo.h49
-rw-r--r--src/mame/includes/karnov.h118
-rw-r--r--src/mame/includes/kaypro.h126
-rw-r--r--src/mame/includes/kc.h201
-rw-r--r--src/mame/includes/kchamp.h107
-rw-r--r--src/mame/includes/kickgoal.h124
-rw-r--r--src/mame/includes/kikikai.h169
-rw-r--r--src/mame/includes/kingobox.h105
-rw-r--r--src/mame/includes/klax.h95
-rw-r--r--src/mame/includes/kncljoe.h85
-rw-r--r--src/mame/includes/konamigx.h343
-rw-r--r--src/mame/includes/konamipt.h441
-rw-r--r--src/mame/includes/kopunch.h72
-rw-r--r--src/mame/includes/ksayakyu.h74
-rw-r--r--src/mame/includes/kyocera.h267
-rw-r--r--src/mame/includes/kyugo.h103
-rw-r--r--src/mame/includes/labyrunr.h72
-rw-r--r--src/mame/includes/ladybug.h135
-rw-r--r--src/mame/includes/ladyfrog.h97
-rw-r--r--src/mame/includes/laserbat.h195
-rw-r--r--src/mame/includes/lasso.h116
-rw-r--r--src/mame/includes/lastduel.h89
-rw-r--r--src/mame/includes/lazercmd.h97
-rw-r--r--src/mame/includes/legionna.h137
-rw-r--r--src/mame/includes/leland.h324
-rw-r--r--src/mame/includes/lemmings.h73
-rw-r--r--src/mame/includes/lethal.h76
-rw-r--r--src/mame/includes/lethalj.h88
-rw-r--r--src/mame/includes/liberate.h116
-rw-r--r--src/mame/includes/liberatr.h129
-rw-r--r--src/mame/includes/lisa.h254
-rw-r--r--src/mame/includes/lkage.h94
-rw-r--r--src/mame/includes/lockon.h161
-rw-r--r--src/mame/includes/lordgun.h114
-rw-r--r--src/mame/includes/lsasquad.h77
-rw-r--r--src/mame/includes/lucky74.h78
-rw-r--r--src/mame/includes/lvcards.h76
-rw-r--r--src/mame/includes/lviv.h100
-rw-r--r--src/mame/includes/lwings.h114
-rw-r--r--src/mame/includes/lynx.h314
-rw-r--r--src/mame/includes/m10.h161
-rw-r--r--src/mame/includes/m107.h106
-rw-r--r--src/mame/includes/m52.h106
-rw-r--r--src/mame/includes/m57.h49
-rw-r--r--src/mame/includes/m58.h72
-rw-r--r--src/mame/includes/m62.h188
-rw-r--r--src/mame/includes/m72.h269
-rw-r--r--src/mame/includes/m79amb.h58
-rw-r--r--src/mame/includes/m90.h94
-rw-r--r--src/mame/includes/m92.h136
-rw-r--r--src/mame/includes/mac.h391
-rw-r--r--src/mame/includes/macpci.h169
-rw-r--r--src/mame/includes/macrossp.h122
-rw-r--r--src/mame/includes/madalien.h112
-rw-r--r--src/mame/includes/magmax.h79
-rw-r--r--src/mame/includes/mainevt.h84
-rw-r--r--src/mame/includes/mainsnk.h66
-rw-r--r--src/mame/includes/malzak.h83
-rw-r--r--src/mame/includes/mappy.h112
-rw-r--r--src/mame/includes/marineb.h83
-rw-r--r--src/mame/includes/mario.h160
-rw-r--r--src/mame/includes/markham.h132
-rw-r--r--src/mame/includes/matmania.h83
-rw-r--r--src/mame/includes/maygay1b.h150
-rw-r--r--src/mame/includes/mbc55x.h188
-rw-r--r--src/mame/includes/mbee.h194
-rw-r--r--src/mame/includes/mc1502.h101
-rw-r--r--src/mame/includes/mcatadv.h70
-rw-r--r--src/mame/includes/mcr.h235
-rw-r--r--src/mame/includes/mcr3.h142
-rw-r--r--src/mame/includes/mcr68.h110
-rw-r--r--src/mame/includes/meadows.h98
-rw-r--r--src/mame/includes/megadriv.h250
-rw-r--r--src/mame/includes/megadriv_acbl.h77
-rw-r--r--src/mame/includes/megadriv_rad.h107
-rw-r--r--src/mame/includes/megasys1.h218
-rw-r--r--src/mame/includes/megazone.h88
-rw-r--r--src/mame/includes/mermaid.h122
-rw-r--r--src/mame/includes/metalmx.h72
-rw-r--r--src/mame/includes/metlclsh.h72
-rw-r--r--src/mame/includes/metro.h231
-rw-r--r--src/mame/includes/mhavoc.h103
-rw-r--r--src/mame/includes/micro3d.h214
-rw-r--r--src/mame/includes/micronic.h108
-rw-r--r--src/mame/includes/microtan.h136
-rw-r--r--src/mame/includes/midtunit.h108
-rw-r--r--src/mame/includes/midvunit.h202
-rw-r--r--src/mame/includes/midwunit.h91
-rw-r--r--src/mame/includes/midxunit.h84
-rw-r--r--src/mame/includes/midyunit.h184
-rw-r--r--src/mame/includes/midzeus.h210
-rw-r--r--src/mame/includes/mikie.h70
-rw-r--r--src/mame/includes/mikro80.h75
-rw-r--r--src/mame/includes/mikromik.h153
-rw-r--r--src/mame/includes/mitchell.h162
-rw-r--r--src/mame/includes/mjkjidai.h68
-rw-r--r--src/mame/includes/model1.h355
-rw-r--r--src/mame/includes/model2.h859
-rw-r--r--src/mame/includes/model3.h396
-rw-r--r--src/mame/includes/momoko.h89
-rw-r--r--src/mame/includes/moo.h105
-rw-r--r--src/mame/includes/mosaic.h67
-rw-r--r--src/mame/includes/mouser.h68
-rw-r--r--src/mame/includes/mpf1.h88
-rw-r--r--src/mame/includes/mpu4.h436
-rw-r--r--src/mame/includes/mpu5.h59
-rw-r--r--src/mame/includes/mpz80.h103
-rw-r--r--src/mame/includes/mrdo.h65
-rw-r--r--src/mame/includes/mrflea.h67
-rw-r--r--src/mame/includes/mrjong.h56
-rw-r--r--src/mame/includes/ms32.h207
-rw-r--r--src/mame/includes/msisaac.h113
-rw-r--r--src/mame/includes/msx.h515
-rw-r--r--src/mame/includes/mtx.h131
-rw-r--r--src/mame/includes/mugsmash.h54
-rw-r--r--src/mame/includes/multfish.h114
-rw-r--r--src/mame/includes/munchmo.h96
-rw-r--r--src/mame/includes/mustache.h61
-rw-r--r--src/mame/includes/mw8080bw.h434
-rw-r--r--src/mame/includes/mystston.h80
-rw-r--r--src/mame/includes/mystwarr.h117
-rw-r--r--src/mame/includes/mz2500.h214
-rw-r--r--src/mame/includes/mz700.h152
-rw-r--r--src/mame/includes/mz80.h80
-rw-r--r--src/mame/includes/n64.h408
-rw-r--r--src/mame/includes/n8080.h203
-rw-r--r--src/mame/includes/namcofl.h107
-rw-r--r--src/mame/includes/namcona1.h221
-rw-r--r--src/mame/includes/namconb1.h161
-rw-r--r--src/mame/includes/namcond1.h57
-rw-r--r--src/mame/includes/namcos1.h159
-rw-r--r--src/mame/includes/namcos2.h294
-rw-r--r--src/mame/includes/namcos22.h606
-rw-r--r--src/mame/includes/namcos86.h123
-rw-r--r--src/mame/includes/naomi.h168
-rw-r--r--src/mame/includes/naughtyb.h78
-rw-r--r--src/mame/includes/nbmj8688.h164
-rw-r--r--src/mame/includes/nbmj8891.h159
-rw-r--r--src/mame/includes/nbmj8900.h86
-rw-r--r--src/mame/includes/nbmj8991.h120
-rw-r--r--src/mame/includes/nbmj9195.h198
-rw-r--r--src/mame/includes/nc.h209
-rw-r--r--src/mame/includes/nds.h116
-rw-r--r--src/mame/includes/nemesis.h185
-rw-r--r--src/mame/includes/neogeo.h283
-rw-r--r--src/mame/includes/nes.h137
-rw-r--r--src/mame/includes/newbrain.h148
-rw-r--r--src/mame/includes/news.h50
-rw-r--r--src/mame/includes/next.h212
-rw-r--r--src/mame/includes/nforcepc.h331
-rw-r--r--src/mame/includes/ninjakd2.h205
-rw-r--r--src/mame/includes/ninjaw.h86
-rw-r--r--src/mame/includes/nitedrvr.h85
-rw-r--r--src/mame/includes/niyanpai.h113
-rw-r--r--src/mame/includes/nmk16.h308
-rw-r--r--src/mame/includes/norautp.h100
-rw-r--r--src/mame/includes/nova2001.h97
-rw-r--r--src/mame/includes/nycaptor.h122
-rw-r--r--src/mame/includes/ob68k1a.h63
-rw-r--r--src/mame/includes/offtwall.h61
-rw-r--r--src/mame/includes/ohmygod.h67
-rw-r--r--src/mame/includes/ojankohs.h163
-rw-r--r--src/mame/includes/ondra.h65
-rw-r--r--src/mame/includes/oneshot.h93
-rw-r--r--src/mame/includes/orbit.h93
-rw-r--r--src/mame/includes/orion.h170
-rw-r--r--src/mame/includes/osborne1.h222
-rw-r--r--src/mame/includes/osi.h164
-rw-r--r--src/mame/includes/othunder.h104
-rw-r--r--src/mame/includes/overdriv.h90
-rw-r--r--src/mame/includes/p2000t.h99
-rw-r--r--src/mame/includes/pacland.h88
-rw-r--r--src/mame/includes/pacman.h330
-rw-r--r--src/mame/includes/pandoras.h87
-rw-r--r--src/mame/includes/paradise.h115
-rw-r--r--src/mame/includes/parodius.h75
-rw-r--r--src/mame/includes/partner.h63
-rw-r--r--src/mame/includes/pasopia.h106
-rw-r--r--src/mame/includes/pass.h50
-rw-r--r--src/mame/includes/pastelg.h114
-rw-r--r--src/mame/includes/patinhofeio.h61
-rw-r--r--src/mame/includes/pbaction.h139
-rw-r--r--src/mame/includes/pc1251.h83
-rw-r--r--src/mame/includes/pc1350.h60
-rw-r--r--src/mame/includes/pc1401.h66
-rw-r--r--src/mame/includes/pc1403.h86
-rw-r--r--src/mame/includes/pc1512.h240
-rw-r--r--src/mame/includes/pc4.h86
-rw-r--r--src/mame/includes/pc6001.h290
-rw-r--r--src/mame/includes/pc8001.h100
-rw-r--r--src/mame/includes/pc8401a.h127
-rw-r--r--src/mame/includes/pc8801.h261
-rw-r--r--src/mame/includes/pc88va.h213
-rw-r--r--src/mame/includes/pc9801.h444
-rw-r--r--src/mame/includes/pce.h94
-rw-r--r--src/mame/includes/pcktgal.h62
-rw-r--r--src/mame/includes/pcw.h172
-rw-r--r--src/mame/includes/pcw16.h156
-rw-r--r--src/mame/includes/pdp1.h489
-rw-r--r--src/mame/includes/pecom.h75
-rw-r--r--src/mame/includes/pgm.h157
-rw-r--r--src/mame/includes/pgm2.h197
-rw-r--r--src/mame/includes/phc25.h63
-rw-r--r--src/mame/includes/phoenix.h92
-rw-r--r--src/mame/includes/pingpong.h59
-rw-r--r--src/mame/includes/pirates.h76
-rw-r--r--src/mame/includes/pitnrun.h103
-rw-r--r--src/mame/includes/pk8000.h51
-rw-r--r--src/mame/includes/pk8020.h115
-rw-r--r--src/mame/includes/pktgaldx.h81
-rw-r--r--src/mame/includes/playch10.h196
-rw-r--r--src/mame/includes/playmark.h193
-rw-r--r--src/mame/includes/plygonet.h124
-rw-r--r--src/mame/includes/pmd85.h155
-rw-r--r--src/mame/includes/pocketc.h68
-rw-r--r--src/mame/includes/pokechmp.h54
-rw-r--r--src/mame/includes/polepos.h137
-rw-r--r--src/mame/includes/policetr.h173
-rw-r--r--src/mame/includes/poly.h184
-rw-r--r--src/mame/includes/poly88.h88
-rw-r--r--src/mame/includes/polyplay.h89
-rw-r--r--src/mame/includes/poolshrk.h79
-rw-r--r--src/mame/includes/pooyan.h65
-rw-r--r--src/mame/includes/popeye.h161
-rw-r--r--src/mame/includes/portrait.h68
-rw-r--r--src/mame/includes/powerins.h49
-rw-r--r--src/mame/includes/pp01.h91
-rw-r--r--src/mame/includes/prehisle.h80
-rw-r--r--src/mame/includes/primo.h98
-rw-r--r--src/mame/includes/prof180x.h61
-rw-r--r--src/mame/includes/prof80.h105
-rw-r--r--src/mame/includes/psikyo.h170
-rw-r--r--src/mame/includes/psikyo4.h84
-rw-r--r--src/mame/includes/psikyosh.h129
-rw-r--r--src/mame/includes/psion.h126
-rw-r--r--src/mame/includes/psion5.h219
-rw-r--r--src/mame/includes/psychic5.h109
-rw-r--r--src/mame/includes/punchout.h112
-rw-r--r--src/mame/includes/px8.h94
-rw-r--r--src/mame/includes/qdrmfgp.h92
-rw-r--r--src/mame/includes/qix.h212
-rw-r--r--src/mame/includes/quasar.h54
-rw-r--r--src/mame/includes/quizdna.h63
-rw-r--r--src/mame/includes/quizpani.h50
-rw-r--r--src/mame/includes/radio86.h121
-rw-r--r--src/mame/includes/raiden.h123
-rw-r--r--src/mame/includes/raiden2.h180
-rw-r--r--src/mame/includes/rallyx.h130
-rw-r--r--src/mame/includes/rampart.h66
-rw-r--r--src/mame/includes/rastan.h71
-rw-r--r--src/mame/includes/rbisland.h87
-rw-r--r--src/mame/includes/realbrk.h97
-rw-r--r--src/mame/includes/redalert.h142
-rw-r--r--src/mame/includes/redclash.h74
-rw-r--r--src/mame/includes/relief.h66
-rw-r--r--src/mame/includes/renegade.h99
-rw-r--r--src/mame/includes/retofinv.h92
-rw-r--r--src/mame/includes/rltennis.h57
-rw-r--r--src/mame/includes/rm380z.h150
-rw-r--r--src/mame/includes/rmnimbus.h259
-rw-r--r--src/mame/includes/rockrage.h72
-rw-r--r--src/mame/includes/rocnrope.h63
-rw-r--r--src/mame/includes/rohga.h90
-rw-r--r--src/mame/includes/rollerg.h68
-rw-r--r--src/mame/includes/rollrace.h81
-rw-r--r--src/mame/includes/route16.h84
-rw-r--r--src/mame/includes/rpunch.h96
-rw-r--r--src/mame/includes/runaway.h65
-rw-r--r--src/mame/includes/rungun.h125
-rw-r--r--src/mame/includes/s11.h166
-rw-r--r--src/mame/includes/s11a.h30
-rw-r--r--src/mame/includes/s11b.h41
-rw-r--r--src/mame/includes/s11c.h30
-rw-r--r--src/mame/includes/sage2.h100
-rw-r--r--src/mame/includes/saitek_stratos.h62
-rw-r--r--src/mame/includes/saturn.h466
-rw-r--r--src/mame/includes/sauro.h99
-rw-r--r--src/mame/includes/sbasketb.h90
-rw-r--r--src/mame/includes/sbugger.h46
-rw-r--r--src/mame/includes/scotrsht.h69
-rw-r--r--src/mame/includes/scramble.h153
-rw-r--r--src/mame/includes/sderby.h78
-rw-r--r--src/mame/includes/segag80r.h231
-rw-r--r--src/mame/includes/segag80v.h163
-rw-r--r--src/mame/includes/segahang.h157
-rw-r--r--src/mame/includes/segaipt.h149
-rw-r--r--src/mame/includes/segaorun.h171
-rw-r--r--src/mame/includes/segas16a.h211
-rw-r--r--src/mame/includes/segas16b.h414
-rw-r--r--src/mame/includes/segas18.h189
-rw-r--r--src/mame/includes/segas24.h204
-rw-r--r--src/mame/includes/segas32.h397
-rw-r--r--src/mame/includes/segasp.h38
-rw-r--r--src/mame/includes/segaxbd.h250
-rw-r--r--src/mame/includes/segaybd.h146
-rw-r--r--src/mame/includes/seibuspi.h195
-rw-r--r--src/mame/includes/seicross.h86
-rw-r--r--src/mame/includes/senjyo.h137
-rw-r--r--src/mame/includes/seta.h557
-rw-r--r--src/mame/includes/seta2.h251
-rw-r--r--src/mame/includes/sg1000.h129
-rw-r--r--src/mame/includes/shadfrce.h109
-rw-r--r--src/mame/includes/shangha3.h91
-rw-r--r--src/mame/includes/shangkid.h130
-rw-r--r--src/mame/includes/shaolins.h58
-rw-r--r--src/mame/includes/shisen.h56
-rw-r--r--src/mame/includes/shootout.h76
-rw-r--r--src/mame/includes/shuuz.h56
-rw-r--r--src/mame/includes/sidearms.h103
-rw-r--r--src/mame/includes/sidepckt.h87
-rw-r--r--src/mame/includes/silkroad.h57
-rw-r--r--src/mame/includes/simpl156.h81
-rw-r--r--src/mame/includes/simpsons.h87
-rw-r--r--src/mame/includes/skullxbo.h74
-rw-r--r--src/mame/includes/skydiver.h114
-rw-r--r--src/mame/includes/skyfox.h63
-rw-r--r--src/mame/includes/skykid.h80
-rw-r--r--src/mame/includes/skyraid.h67
-rw-r--r--src/mame/includes/slapfght.h156
-rw-r--r--src/mame/includes/slapshot.h115
-rw-r--r--src/mame/includes/sms.h340
-rw-r--r--src/mame/includes/sms_bootleg.h20
-rw-r--r--src/mame/includes/snes.h468
-rw-r--r--src/mame/includes/snk.h292
-rw-r--r--src/mame/includes/snk6502.h142
-rw-r--r--src/mame/includes/snk68.h118
-rw-r--r--src/mame/includes/snookr10.h67
-rw-r--r--src/mame/includes/snowbros.h124
-rw-r--r--src/mame/includes/softbox.h70
-rw-r--r--src/mame/includes/solomon.h69
-rw-r--r--src/mame/includes/sonson.h63
-rw-r--r--src/mame/includes/sorcerer.h193
-rw-r--r--src/mame/includes/spacefb.h103
-rw-r--r--src/mame/includes/spbactn.h101
-rw-r--r--src/mame/includes/spcforce.h79
-rw-r--r--src/mame/includes/spdheat.h103
-rw-r--r--src/mame/includes/spdodgeb.h101
-rw-r--r--src/mame/includes/spec128.h17
-rw-r--r--src/mame/includes/special.h145
-rw-r--r--src/mame/includes/specpls3.h53
-rw-r--r--src/mame/includes/spectrum.h277
-rw-r--r--src/mame/includes/speedatk.h64
-rw-r--r--src/mame/includes/speedbal.h69
-rw-r--r--src/mame/includes/speedspn.h70
-rw-r--r--src/mame/includes/spg2xx.h361
-rw-r--r--src/mame/includes/spiders.h65
-rw-r--r--src/mame/includes/splash.h174
-rw-r--r--src/mame/includes/sprint2.h113
-rw-r--r--src/mame/includes/sprint4.h85
-rw-r--r--src/mame/includes/sprint8.h87
-rw-r--r--src/mame/includes/spy.h77
-rw-r--r--src/mame/includes/srmp2.h102
-rw-r--r--src/mame/includes/srumbler.h54
-rw-r--r--src/mame/includes/sshangha.h75
-rw-r--r--src/mame/includes/sslam.h116
-rw-r--r--src/mame/includes/ssozumo.h77
-rw-r--r--src/mame/includes/sspeedr.h99
-rw-r--r--src/mame/includes/ssrj.h68
-rw-r--r--src/mame/includes/ssv.h258
-rw-r--r--src/mame/includes/stactics.h130
-rw-r--r--src/mame/includes/stadhero.h56
-rw-r--r--src/mame/includes/starcrus.h88
-rw-r--r--src/mame/includes/starfire.h203
-rw-r--r--src/mame/includes/starshp1.h163
-rw-r--r--src/mame/includes/starwars.h104
-rw-r--r--src/mame/includes/stfight.h113
-rw-r--r--src/mame/includes/stlforce.h46
-rw-r--r--src/mame/includes/stv.h190
-rw-r--r--src/mame/includes/sub.h86
-rw-r--r--src/mame/includes/subs.h84
-rw-r--r--src/mame/includes/suna16.h108
-rw-r--r--src/mame/includes/suna8.h223
-rw-r--r--src/mame/includes/supbtime.h64
-rw-r--r--src/mame/includes/super6.h91
-rw-r--r--src/mame/includes/super80.h185
-rw-r--r--src/mame/includes/superchs.h76
-rw-r--r--src/mame/includes/superqix.h215
-rw-r--r--src/mame/includes/suprloco.h60
-rw-r--r--src/mame/includes/suprnova.h195
-rw-r--r--src/mame/includes/suprridr.h85
-rw-r--r--src/mame/includes/suprslam.h83
-rw-r--r--src/mame/includes/surpratk.h63
-rw-r--r--src/mame/includes/svision.h128
-rw-r--r--src/mame/includes/swtpc09.h241
-rw-r--r--src/mame/includes/system1.h247
-rw-r--r--src/mame/includes/system16.h317
-rw-r--r--src/mame/includes/tagteam.h71
-rw-r--r--src/mame/includes/tail2nos.h84
-rw-r--r--src/mame/includes/taito_b.h175
-rw-r--r--src/mame/includes/taito_f2.h294
-rw-r--r--src/mame/includes/taito_f3.h402
-rw-r--r--src/mame/includes/taito_h.h76
-rw-r--r--src/mame/includes/taito_l.h228
-rw-r--r--src/mame/includes/taito_o.h52
-rw-r--r--src/mame/includes/taito_x.h61
-rw-r--r--src/mame/includes/taito_z.h195
-rw-r--r--src/mame/includes/taitoair.h155
-rw-r--r--src/mame/includes/taitoipt.h380
-rw-r--r--src/mame/includes/taitojc.h155
-rw-r--r--src/mame/includes/taitosj.h171
-rw-r--r--src/mame/includes/tandy2k.h278
-rw-r--r--src/mame/includes/tank8.h115
-rw-r--r--src/mame/includes/tankbatt.h81
-rw-r--r--src/mame/includes/tankbust.h83
-rw-r--r--src/mame/includes/taotaido.h80
-rw-r--r--src/mame/includes/targeth.h76
-rw-r--r--src/mame/includes/tatsumi.h264
-rw-r--r--src/mame/includes/taxidriv.h89
-rw-r--r--src/mame/includes/tbowl.h101
-rw-r--r--src/mame/includes/tceptor.h119
-rw-r--r--src/mame/includes/tdv2324.h92
-rw-r--r--src/mame/includes/tecmo.h112
-rw-r--r--src/mame/includes/tecmo16.h105
-rw-r--r--src/mame/includes/tecmosys.h125
-rw-r--r--src/mame/includes/tehkanwc.h113
-rw-r--r--src/mame/includes/tek405x.h176
-rw-r--r--src/mame/includes/terracre.h84
-rw-r--r--src/mame/includes/tetrisp2.h272
-rw-r--r--src/mame/includes/thedeep.h91
-rw-r--r--src/mame/includes/thepit.h99
-rw-r--r--src/mame/includes/thief.h71
-rw-r--r--src/mame/includes/thomson.h732
-rw-r--r--src/mame/includes/thoop2.h69
-rw-r--r--src/mame/includes/thunderj.h59
-rw-r--r--src/mame/includes/thunderx.h99
-rw-r--r--src/mame/includes/ti85.h255
-rw-r--r--src/mame/includes/ti89.h110
-rw-r--r--src/mame/includes/tiamc1.h82
-rw-r--r--src/mame/includes/tigeroad.h153
-rw-r--r--src/mame/includes/tiki100.h165
-rw-r--r--src/mame/includes/timelimt.h71
-rw-r--r--src/mame/includes/timeplt.h102
-rw-r--r--src/mame/includes/timex.h104
-rw-r--r--src/mame/includes/tmc1800.h211
-rw-r--r--src/mame/includes/tmc2000e.h77
-rw-r--r--src/mame/includes/tmc600.h100
-rw-r--r--src/mame/includes/tmnt.h269
-rw-r--r--src/mame/includes/tnzs.h302
-rw-r--r--src/mame/includes/toaplan1.h258
-rw-r--r--src/mame/includes/toaplan2.h250
-rw-r--r--src/mame/includes/toaplipt.h188
-rw-r--r--src/mame/includes/toki.h101
-rw-r--r--src/mame/includes/toobin.h83
-rw-r--r--src/mame/includes/topspeed.h115
-rw-r--r--src/mame/includes/tp84.h88
-rw-r--r--src/mame/includes/trackfld.h135
-rw-r--r--src/mame/includes/tranz330.h76
-rw-r--r--src/mame/includes/travrusa.h60
-rw-r--r--src/mame/includes/triplhnt.h114
-rw-r--r--src/mame/includes/trs80.h130
-rw-r--r--src/mame/includes/trs80m2.h176
-rw-r--r--src/mame/includes/trs80m3.h157
-rw-r--r--src/mame/includes/truco.h57
-rw-r--r--src/mame/includes/trucocl.h64
-rw-r--r--src/mame/includes/tryout.h76
-rw-r--r--src/mame/includes/tsamurai.h178
-rw-r--r--src/mame/includes/tubep.h166
-rw-r--r--src/mame/includes/tumbleb.h215
-rw-r--r--src/mame/includes/tunhunt.h94
-rw-r--r--src/mame/includes/turbo.h223
-rw-r--r--src/mame/includes/turrett.h148
-rw-r--r--src/mame/includes/tutankhm.h101
-rw-r--r--src/mame/includes/twin16.h155
-rw-r--r--src/mame/includes/twincobr.h154
-rw-r--r--src/mame/includes/tx0.h340
-rw-r--r--src/mame/includes/tx1.h246
-rw-r--r--src/mame/includes/ultraman.h60
-rw-r--r--src/mame/includes/ultratnk.h90
-rw-r--r--src/mame/includes/undrfire.h104
-rw-r--r--src/mame/includes/unico.h126
-rw-r--r--src/mame/includes/usgames.h53
-rw-r--r--src/mame/includes/ut88.h127
-rw-r--r--src/mame/includes/v1050.h238
-rw-r--r--src/mame/includes/vaportra.h77
-rw-r--r--src/mame/includes/vastar.h109
-rw-r--r--src/mame/includes/vball.h72
-rw-r--r--src/mame/includes/vc4000.h171
-rw-r--r--src/mame/includes/vector06.h120
-rw-r--r--src/mame/includes/vectrex.h195
-rw-r--r--src/mame/includes/vendetta.h97
-rw-r--r--src/mame/includes/vertigo.h147
-rw-r--r--src/mame/includes/vicdual.h333
-rw-r--r--src/mame/includes/victory.h113
-rw-r--r--src/mame/includes/vidbrain.h97
-rw-r--r--src/mame/includes/videopin.h96
-rw-r--r--src/mame/includes/vigilant.h82
-rw-r--r--src/mame/includes/vindictr.h70
-rw-r--r--src/mame/includes/vip.h135
-rw-r--r--src/mame/includes/vixen.h140
-rw-r--r--src/mame/includes/volfied.h77
-rw-r--r--src/mame/includes/vp415.h281
-rw-r--r--src/mame/includes/vsmile.h182
-rw-r--r--src/mame/includes/vsnes.h158
-rw-r--r--src/mame/includes/vtech2.h119
-rw-r--r--src/mame/includes/vulgus.h70
-rw-r--r--src/mame/includes/warpwarp.h129
-rw-r--r--src/mame/includes/warriorb.h75
-rw-r--r--src/mame/includes/wc90.h105
-rw-r--r--src/mame/includes/wc90b.h122
-rw-r--r--src/mame/includes/wecleman.h203
-rw-r--r--src/mame/includes/welltris.h74
-rw-r--r--src/mame/includes/wgp.h129
-rw-r--r--src/mame/includes/williams.h510
-rw-r--r--src/mame/includes/wiping.h58
-rw-r--r--src/mame/includes/witch.h143
-rw-r--r--src/mame/includes/wiz.h105
-rw-r--r--src/mame/includes/wolfpack.h114
-rw-r--r--src/mame/includes/wpc_dot.h73
-rw-r--r--src/mame/includes/wpc_flip1.h29
-rw-r--r--src/mame/includes/wpc_flip2.h29
-rw-r--r--src/mame/includes/wrally.h81
-rw-r--r--src/mame/includes/wwfsstar.h74
-rw-r--r--src/mame/includes/x07.h297
-rw-r--r--src/mame/includes/x1.h344
-rw-r--r--src/mame/includes/x68k.h390
-rw-r--r--src/mame/includes/xain.h103
-rw-r--r--src/mame/includes/xavix.h976
-rw-r--r--src/mame/includes/xavix_2000.h27
-rw-r--r--src/mame/includes/xavix_2002.h55
-rw-r--r--src/mame/includes/xbox.h175
-rw-r--r--src/mame/includes/xbox_nv2a.h895
-rw-r--r--src/mame/includes/xbox_pci.h490
-rw-r--r--src/mame/includes/xbox_usb.h534
-rw-r--r--src/mame/includes/xerox820.h190
-rw-r--r--src/mame/includes/xevious.h110
-rw-r--r--src/mame/includes/xexex.h119
-rw-r--r--src/mame/includes/xmen.h89
-rw-r--r--src/mame/includes/xor100.h113
-rw-r--r--src/mame/includes/xorworld.h55
-rw-r--r--src/mame/includes/xxmissio.h74
-rw-r--r--src/mame/includes/xybots.h63
-rw-r--r--src/mame/includes/yiear.h78
-rw-r--r--src/mame/includes/yunsun16.h119
-rw-r--r--src/mame/includes/yunsung8.h74
-rw-r--r--src/mame/includes/z80ne.h253
-rw-r--r--src/mame/includes/z88.h117
-rw-r--r--src/mame/includes/zac2650.h64
-rw-r--r--src/mame/includes/zaccaria.h71
-rw-r--r--src/mame/includes/zaxxon.h141
-rw-r--r--src/mame/includes/zerozone.h69
-rw-r--r--src/mame/includes/zn.h584
-rw-r--r--src/mame/includes/zodiack.h45
-rw-r--r--src/mame/includes/zorba.h131
-rw-r--r--src/mame/includes/zx.h134
890 files changed, 0 insertions, 127330 deletions
diff --git a/src/mame/includes/1942.h b/src/mame/includes/1942.h
deleted file mode 100644
index b8278d7dfe6..00000000000
--- a/src/mame/includes/1942.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Leaman, Couriersud
-/***************************************************************************
-
- 1942
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_1942_H
-#define MAME_INCLUDES_1942_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-#include "screen.h"
-
-class _1942_state : public driver_device
-{
-public:
- _1942_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_screen(*this, "screen")
- , m_spriteram(*this, "spriteram")
- , m_fg_videoram(*this, "fg_videoram")
- , m_bg_videoram(*this, "bg_videoram")
- , m_audiocpu(*this, "audiocpu")
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- { }
-
- void driver_init() override;
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- void _1942(machine_config &config);
-
-protected:
- void machine_start() override;
- void machine_reset() override;
- void video_start() override;
-
- void _1942_map(address_map &map);
- void sound_map(address_map &map);
-
- void _1942_bankswitch_w(uint8_t data);
- void _1942_fgvideoram_w(offs_t offset, uint8_t data);
- void _1942_bgvideoram_w(offs_t offset, uint8_t data);
- void _1942_palette_bank_w(uint8_t data);
- void _1942_scroll_w(offs_t offset, uint8_t data);
- void _1942_c804_w(uint8_t data);
- void _1942_palette(palette_device &palette) const;
- TIMER_DEVICE_CALLBACK_MEMBER(_1942_scanline);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- virtual void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_device<screen_device> m_screen;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_bg_videoram;
-
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_palette_bank;
- uint8_t m_scroll[2];
- void create_palette(palette_device &palette) const;
- uint8_t m_sprite_bufs[2][512];
-};
-
-class _1942p_state : public _1942_state
-{
-public:
- _1942p_state(const machine_config &mconfig, device_type type, const char *tag)
- : _1942_state(mconfig, type, tag)
- , m_protopal(*this, "protopal")
- { }
-
- void _1942p(machine_config &config);
-
-protected:
- void video_start() override;
-
- void _1942p_map(address_map &map);
- void _1942p_sound_io(address_map &map);
- void _1942p_sound_map(address_map &map);
-
- void _1942p_f600_w(uint8_t data);
- void _1942p_palette_w(offs_t offset, uint8_t data);
-
- void _1942p_palette(palette_device &palette) const;
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) override;
-
- required_shared_ptr<uint8_t> m_protopal;
-};
-
-#endif // MAME_INCLUDES_1942_H
diff --git a/src/mame/includes/1943.h b/src/mame/includes/1943.h
deleted file mode 100644
index 208b1bbdf7b..00000000000
--- a/src/mame/includes/1943.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Leaman
-/***************************************************************************
-
- 1943
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_1943_H
-#define MAME_INCLUDES_1943_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class _1943_state : public driver_device
-{
-public:
- _1943_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_scrollx(*this, "scrollx"),
- m_scrolly(*this, "scrolly"),
- m_bgscrollx(*this, "bgscrollx"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_tilerom(*this, "tilerom"),
- m_proms(*this, "proms"),
- m_mainbank(*this, "mainbank")
- { }
-
- void _1943(machine_config &config);
- void _1943b(machine_config &config);
-
- void init_1943();
-
-private:
- /* devices / memory pointers */
- required_device<cpu_device> m_maincpu;
- optional_device<i8751_device> m_mcu;
- required_shared_ptr<u8> m_videoram;
- required_shared_ptr<u8> m_colorram;
- required_shared_ptr<u8> m_scrollx;
- required_shared_ptr<u8> m_scrolly;
- required_shared_ptr<u8> m_bgscrollx;
- required_shared_ptr<u8> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_region_ptr<u8> m_tilerom;
- required_region_ptr<u8> m_proms;
- required_memory_bank m_mainbank;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_bg2_tilemap;
- int m_char_on;
- int m_obj_on;
- int m_bg1_on;
- int m_bg2_on;
-
- /* protection */
- u8 m_cpu_to_mcu; // ls374 at 5k
- u8 m_mcu_to_cpu; // ls374 at 6k
- u8 m_audiocpu_to_mcu; // ls374 at 5l
- u8 m_mcu_to_audiocpu; // ls374 at 6l
- u8 m_mcu_p0;
- u8 m_mcu_p2;
- u8 m_mcu_p3;
-
- INTERRUPT_GEN_MEMBER(mcu_irq);
- void mcu_p3_w(u8 data);
-
- void videoram_w(offs_t offset, u8 data);
- void colorram_w(offs_t offset, u8 data);
- void c804_w(u8 data);
- void d806_w(u8 data);
-
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void _1943_palette(palette_device &palette) const;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void _1943_drawgfx(bitmap_ind16 &dest_bmp,const rectangle &clip,gfx_element *gfx,
- u32 code,u32 color,bool flipx,bool flipy,int offsx,int offsy,
- u8 transparent_color);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void c1943_map(address_map &map);
- void c1943b_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_1943_H
diff --git a/src/mame/includes/20pacgal.h b/src/mame/includes/20pacgal.h
deleted file mode 100644
index bc4d1eb2177..00000000000
--- a/src/mame/includes/20pacgal.h
+++ /dev/null
@@ -1,118 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Ms.Pac-Man/Galaga - 20 Year Reunion hardware
-
- driver by Nicola Salmoria
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_20PACGAL_H
-#define MAME_INCLUDES_20PACGAL_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "machine/intelfsh.h"
-#include "sound/namco.h"
-#include "emupal.h"
-
-class _20pacgal_state : public driver_device
-{
-public:
- _20pacgal_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_video_ram(*this, "video_ram"),
- m_char_gfx_ram(*this, "char_gfx_ram"),
- m_stars_seed(*this, "stars_seed"),
- m_stars_ctrl(*this, "stars_ctrl"),
- m_flip(*this, "flip"),
- m_proms(*this, "proms"),
- m_mainbank(*this, "mainbank"),
- m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom"),
- m_palette(*this, "palette")
- { }
-
- void _20pacgal(machine_config &config);
- void _20pacgal_video(machine_config &config);
-
- void init_25pacman();
- void init_20pacgal();
-
-protected:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_video_ram;
- required_shared_ptr<uint8_t> m_char_gfx_ram;
- required_shared_ptr<uint8_t> m_stars_seed;
- required_shared_ptr<uint8_t> m_stars_ctrl;
- required_shared_ptr<uint8_t> m_flip;
-
- optional_memory_region m_proms;
- optional_memory_bank m_mainbank;
-
- /* machine state */
- uint8_t m_game_selected; /* 0 = Ms. Pac-Man, 1 = Galaga */
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<palette_device> m_palette;
-
- /* memory */
- std::unique_ptr<uint8_t[]> m_sprite_gfx_ram;
- std::unique_ptr<uint8_t[]> m_sprite_ram;
- std::unique_ptr<uint8_t[]> m_sprite_color_lookup;
- std::unique_ptr<uint8_t[]> m_ram_48000;
-
- /* 25pacman and 20pacgal store the sprite palette at a different address, this is a hardware difference and confirmed NOT to be a register */
- uint8_t m_sprite_pal_base;
-
- uint8_t m_irq_mask;
- void irqack_w(uint8_t data);
- void timer_pulse_w(uint8_t data);
- void _20pacgal_coin_counter_w(uint8_t data);
- void ram_bank_select_w(uint8_t data);
- void ram_48000_w(offs_t offset, uint8_t data);
- void sprite_gfx_w(offs_t offset, uint8_t data);
- void sprite_ram_w(offs_t offset, uint8_t data);
- void sprite_lookup_w(offs_t offset, uint8_t data);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- uint32_t screen_update_20pacgal(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void starpal_init(palette_device &palette) const;
- void get_pens();
- void do_pen_lookup(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_chars(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_stars(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_sprite(bitmap_rgb32 &bitmap, const rectangle &cliprect, int y, int x,
- uint8_t code, uint8_t color, int flip_y, int flip_x);
- void common_save_state();
-
- void _20pacgal_io_map(address_map &map);
- void _20pacgal_map(address_map &map);
-};
-
-
-class _25pacman_state : public _20pacgal_state
-{
-public:
- _25pacman_state(const machine_config &mconfig, device_type type, const char *tag) :
- _20pacgal_state(mconfig, type, tag)
- { }
-
- void _25pacman(machine_config &config);
-
-private:
- uint8_t _25pacman_io_87_r();
-
- virtual void machine_start() override;
-
- void _25pacman_io_map(address_map &map);
- void _25pacman_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_20PACGAL_H
diff --git a/src/mame/includes/3do.h b/src/mame/includes/3do.h
deleted file mode 100644
index 2b1ca6dc337..00000000000
--- a/src/mame/includes/3do.h
+++ /dev/null
@@ -1,201 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:Angelo Salese, Wilbert Pol
-/*****************************************************************************
- *
- * includes/3do.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_3DO_H
-#define MAME_INCLUDES_3DO_H
-
-#include "machine/nvram.h"
-#include "machine/timer.h"
-#include "screen.h"
-
-
-class _3do_state : public driver_device
-{
-public:
- _3do_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_dram(*this, "dram", 0x200000, ENDIANNESS_BIG),
- m_vram(*this, "vram"),
- m_nvram(*this, "nvram"),
- m_screen(*this, "screen"),
- m_bank1(*this, "bank1") { }
-
- void _3do(machine_config &config);
- void _3do_pal(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- struct SLOW2 {
- /* 03180000 - 0318003f - configuration group */
- /* 03180040 - 0318007f - diagnostic UART */
-
- uint8_t cg_r_count;
- uint8_t cg_w_count;
- uint32_t cg_input;
- uint32_t cg_output;
- };
-
-
- struct MADAM {
- uint32_t revision; /* 03300000 */
- uint32_t msysbits; /* 03300004 */
- uint32_t mctl; /* 03300008 */
- uint32_t sltime; /* 0330000c */
- uint32_t abortbits; /* 03300020 */
- uint32_t privbits; /* 03300024 */
- uint32_t statbits; /* 03300028 */
- uint32_t diag; /* 03300040 */
-
- uint32_t ccobctl0; /* 03300110 */
- uint32_t ppmpc; /* 03300120 */
-
- uint32_t regctl0; /* 03300130 */
- uint32_t regctl1; /* 03300134 */
- uint32_t regctl2; /* 03300138 */
- uint32_t regctl3; /* 0330013c */
- uint32_t xyposh; /* 03300140 */
- uint32_t xyposl; /* 03300144 */
- uint32_t linedxyh; /* 03300148 */
- uint32_t linedxyl; /* 0330014c */
- uint32_t dxyh; /* 03300150 */
- uint32_t dxyl; /* 03300154 */
- uint32_t ddxyh; /* 03300158 */
- uint32_t ddxyl; /* 0330015c */
-
- uint32_t pip[16]; /* 03300180-033001bc (W); 03300180-033001fc (R) */
- uint32_t fence[16]; /* 03300200-0330023c (W); 03300200-0330027c (R) */
- uint32_t mmu[64]; /* 03300300-033003fc */
- uint32_t dma[32][4]; /* 03300400-033005fc */
- uint32_t mult[40]; /* 03300600-0330069c */
- uint32_t mult_control; /* 033007f0-033007f4 */
- uint32_t mult_status; /* 033007f8 */
- };
-
-
- struct CLIO {
- screen_device *screen;
-
- uint32_t revision; /* 03400000 */
- uint32_t csysbits; /* 03400004 */
- uint32_t vint0; /* 03400008 */
- uint32_t vint1; /* 0340000c */
- uint32_t audin; /* 03400020 */
- uint32_t audout; /* 03400024 */
- uint32_t cstatbits; /* 03400028 */
- uint32_t wdog; /* 0340002c */
- uint32_t hcnt; /* 03400030 */
- uint32_t vcnt; /* 03400034 */
- uint32_t seed; /* 03400038 */
- uint32_t random; /* 0340004c */
- uint32_t irq0; /* 03400040 / 03400044 */
- uint32_t irq0_enable; /* 03400048 / 0340004c */
- uint32_t mode; /* 03400050 / 03400054 */
- uint32_t badbits; /* 03400058 */
- uint32_t spare; /* 0340005c */
- uint32_t irq1; /* 03400060 / 03400064 */
- uint32_t irq1_enable; /* 03400068 / 0340006c */
- uint32_t hdelay; /* 03400080 */
- uint32_t adbio; /* 03400084 */
- uint32_t adbctl; /* 03400088 */
- /* Timers */
- uint32_t timer_count[16];/* 034001** & 8 */
- uint32_t timer_backup[16]; /* 034001**+4 & 8 */
- uint64_t timer_ctrl; /* 03400200 */
- uint32_t slack; /* 03400220 */
- /* DMA */
- uint32_t dmareqdis; /* 03400308 */
- /* Expansion bus */
- uint32_t expctl; /* 03400400/03400404 */
- uint32_t type0_4; /* 03400408 */
- uint32_t dipir1; /* 03400410 */
- uint32_t dipir2; /* 03400414 */
- /* Bus signals */
- uint32_t sel; /* 03400500 - 0340053f */
- uint32_t poll; /* 03400540 - 0340057f */
- uint32_t cmdstat; /* 03400580 - 034005bf */
- uint32_t data; /* 034005c0 - 034005ff */
- /* DSPP */
- uint32_t semaphore; /* 034017d0 */
- uint32_t semaack; /* 034017d4 */
- uint32_t dsppdma; /* 034017e0 */
- uint32_t dspprst0; /* 034017e4 */
- uint32_t dspprst1; /* 034017e8 */
- uint32_t dspppc; /* 034017f4 */
- uint32_t dsppnr; /* 034017f8 */
- uint32_t dsppgw; /* 034017fc */
- uint32_t dsppn[0x400]; /* 03401800 - 03401bff DSPP N stack (32bit writes) */
- /* 03402000 - 034027ff DSPP N stack (16bit writes) */
- uint32_t dsppei[0x100]; /* 03403000 - 034030ff DSPP EI stack (32bit writes) */
- /* 03403400 - 034035ff DSPP EI stack (16bit writes) */
- uint32_t dsppeo[0x1f]; /* 03403800 - 0340381f DSPP EO stack (32bit reads) */
- /* 03403c00 - 03403c3f DSPP EO stack (32bit reads) */
- uint32_t dsppclkreload; /* 034039dc / 03403fbc */
- /* UNCLE */
- uint32_t unclerev; /* 0340c000 */
- uint32_t uncle_soft_rev; /* 0340c004 */
- uint32_t uncle_addr; /* 0340c008 */
- uint32_t uncle_rom; /* 0340c00c */
- };
-
-
- struct SVF {
- uint32_t sport[512];
- uint32_t color;
- };
-
- struct DSPP {
- std::unique_ptr<uint16_t[]> N;
- std::unique_ptr<uint16_t[]> EI;
- std::unique_ptr<uint16_t[]> EO;
- };
-
- required_device<cpu_device> m_maincpu;
- memory_share_creator<uint32_t> m_dram;
- required_shared_ptr<uint32_t> m_vram;
- required_device<nvram_device> m_nvram;
- required_device<screen_device> m_screen;
- required_memory_bank m_bank1;
-
- SLOW2 m_slow2;
- MADAM m_madam;
- CLIO m_clio;
- SVF m_svf;
- DSPP m_dspp;
- uint8_t m_nvmem[0x8000];
-
-// uint8_t m_video_bits[512];
- uint8_t nvarea_r(offs_t offset);
- void nvarea_w(offs_t offset, uint8_t data);
- uint32_t slow2_r(offs_t offset);
- void slow2_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t svf_r(offs_t offset);
- void svf_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t madam_r(offs_t offset);
- void madam_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t clio_r(offs_t offset);
- void clio_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER( timer_x16_cb );
-
- void main_mem(address_map &map);
-
- void m_slow2_init( void );
- void m_madam_init( void );
- void m_clio_init( void );
-
- void m_request_fiq(uint32_t irq_req, uint8_t type);
-};
-
-
-#endif // MAME_INCLUDES_3DO_H
diff --git a/src/mame/includes/40love.h b/src/mame/includes/40love.h
deleted file mode 100644
index 9e2df777733..00000000000
--- a/src/mame/includes/40love.h
+++ /dev/null
@@ -1,119 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Jarek Burczynski
-#ifndef MAME_INCLUDES_40LOVE_H
-#define MAME_INCLUDES_40LOVE_H
-
-#pragma once
-
-#include "machine/taito68705interface.h"
-#include "machine/gen_latch.h"
-#include "sound/msm5232.h"
-#include "sound/ay8910.h"
-#include "sound/ta7630.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class fortyl_state : public driver_device
-{
-public:
- fortyl_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_audiocpu(*this, "audiocpu")
- , m_maincpu(*this, "maincpu")
- , m_bmcu(*this, "bmcu")
- , m_msm(*this, "msm")
- , m_ay(*this,"aysnd")
- , m_ta7630(*this,"ta7630")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_soundlatch2(*this, "soundlatch2")
- , m_videoram(*this, "videoram")
- , m_video_ctrl(*this, "video_ctrl")
- , m_spriteram(*this, "spriteram")
- , m_colorram(*this, "colorram")
- , m_spriteram2(*this, "spriteram2")
- , m_mcu_ram(*this, "mcu_ram")
- { }
-
- virtual void driver_init() override;
-
- uint32_t screen_update_fortyl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void redraw_pixels();
- void fortyl_set_scroll_x( int offset );
- void fortyl_plot_pix( int offset );
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_pixram( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void common(machine_config &config);
- void _40love(machine_config &config);
- void undoukai(machine_config &config);
-
- void _40love_map(address_map &map);
- void sound_map(address_map &map);
- void undoukai_map(address_map &map);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void bank_select_w(uint8_t data);
- uint8_t snd_flag_r();
- uint8_t fortyl_mcu_status_r();
- void fortyl_pixram_sel_w(uint8_t data);
- uint8_t fortyl_pixram_r(offs_t offset);
- void fortyl_pixram_w(offs_t offset, uint8_t data);
- void fortyl_bg_videoram_w(offs_t offset, uint8_t data);
- uint8_t fortyl_bg_videoram_r(offs_t offset);
- void fortyl_bg_colorram_w(offs_t offset, uint8_t data);
- uint8_t fortyl_bg_colorram_r(offs_t offset);
- void sound_control_0_w(uint8_t data);
- void sound_control_1_w(uint8_t data);
- void sound_control_2_w(uint8_t data);
- void sound_control_3_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_maincpu;
- optional_device<taito68705_mcu_device> m_bmcu;
- required_device<msm5232_device> m_msm;
- required_device<ym2149_device> m_ay;
- required_device<ta7630_device> m_ta7630;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch2;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_video_ctrl;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram2;
- optional_shared_ptr<uint8_t> m_mcu_ram;
-
- /* video-related */
- std::unique_ptr<bitmap_ind16> m_tmp_bitmap1;
- std::unique_ptr<bitmap_ind16> m_tmp_bitmap2;
- tilemap_t *m_bg_tilemap;
- uint8_t m_flipscreen;
- uint8_t m_pix_redraw;
- uint8_t m_xoffset;
- std::unique_ptr<uint8_t[]> m_pixram1;
- std::unique_ptr<uint8_t[]> m_pixram2;
- bitmap_ind16 *m_pixel_bitmap1;
- bitmap_ind16 *m_pixel_bitmap2;
- int m_pixram_sel;
- bool m_color_bank;
- bool m_screen_disable;
-
- /* misc */
- int m_pix_color[4];
- int m_vol_ctrl[16];
- uint8_t m_snd_ctrl0;
- uint8_t m_snd_ctrl1;
- uint8_t m_snd_ctrl2;
- uint8_t m_snd_ctrl3;
-};
-
-#endif // MAME_INCLUDES_40LOVE_H
diff --git a/src/mame/includes/4enraya.h b/src/mame/includes/4enraya.h
deleted file mode 100644
index 99500685ab3..00000000000
--- a/src/mame/includes/4enraya.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina, Roberto Fresca
-/*************************************************************************
-
- IDSA 4 En Raya
-
-*************************************************************************/
-
-#ifndef MAME_INCLUDES_4ENRAYA_H
-#define MAME_INCLUDES_4ENRAYA_H
-
-#pragma once
-
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class _4enraya_state : public driver_device
-{
-public:
- _4enraya_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_ay(*this, "aysnd")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_prom(*this, "pal_prom")
- , m_rom(*this, "maincpu")
- {
- }
-
- void _4enraya(machine_config &config);
-
- void fenraya_videoram_w(offs_t offset, uint8_t data);
-
-protected:
- void sound_data_w(uint8_t data);
- uint8_t fenraya_custom_map_r(offs_t offset);
- void fenraya_custom_map_w(offs_t offset, uint8_t data);
- void sound_control_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update_4enraya(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
- void main_portmap(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<ay8910_device> m_ay;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- uint8_t m_videoram[0x1000];
- uint8_t m_workram[0x1000];
-
- optional_region_ptr<uint8_t> m_prom;
- optional_region_ptr<uint8_t> m_rom;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* sound-related */
- uint8_t m_soundlatch;
-};
-
-class unk_gambl_state : public _4enraya_state
-{
-public:
- unk_gambl_state(const machine_config &mconfig, device_type type, const char *tag)
- : _4enraya_state(mconfig, type, tag)
- {
- }
-
- void unkpacg(machine_config &config);
-
-private:
- void unkpacg_main_map(address_map &map);
- void unkpacg_main_portmap(address_map &map);
-
- void driver_init() override;
-};
-
-#endif // MAME_INCLUDES_4ENRAYA_H
diff --git a/src/mame/includes/8080bw.h b/src/mame/includes/8080bw.h
deleted file mode 100644
index eb83dd8ad5d..00000000000
--- a/src/mame/includes/8080bw.h
+++ /dev/null
@@ -1,347 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Tormod Tjaberg, Mirko Buffoni,Lee Taylor, Valerio Verrando, Zsolt Vasvari
-// thanks-to:Michael Strutts, Marco Cassili
-/***************************************************************************
-
- 8080-based black and white hardware
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_8080BW_H
-#define MAME_INCLUDES_8080BW_H
-
-#pragma once
-
-#include "audio/8080bw.h"
-#include "includes/mw8080bw.h"
-
-#include "machine/eepromser.h"
-#include "machine/timer.h"
-#include "sound/samples.h"
-#include "sound/sn76477.h"
-#include "sound/spkrdev.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-
-/* for games in 8080bw.c */
-#define CABINET_PORT_TAG "CAB"
-
-
-class _8080bw_state : public mw8080bw_state
-{
-public:
- _8080bw_state(const machine_config &mconfig, device_type type, const char *tag)
- : mw8080bw_state(mconfig, type, tag)
- , m_audiocpu(*this, "audiocpu")
- , m_schaser_effect_555_timer(*this, "schaser_sh_555")
- , m_claybust_gun_on(*this, "claybust_gun")
- , m_sn(*this, "snsnd")
- , m_samples(*this, "samples")
- , m_speaker(*this, "speaker")
- , m_eeprom(*this, "eeprom")
- , m_palette(*this, "palette")
- , m_colorram(*this, "colorram")
- , m_gunx(*this, "GUNX")
- , m_guny(*this, "GUNY")
- , m_timer_state(1)
- { }
-
- void indianbtbr(machine_config &config);
- void claybust(machine_config &config);
- void shuttlei(machine_config &config);
- void spcewarla(machine_config &config);
- void escmars(machine_config &config);
- void lrescue(machine_config &config);
- void invmulti(machine_config &config);
- void yosakdon(machine_config &config);
- void polaris(machine_config &config);
- void attackfc(machine_config &config);
- void astropal(machine_config &config);
- void rollingc(machine_config &config);
- void vortex(machine_config &config);
- void invrvnge(machine_config &config);
- void sflush(machine_config &config);
- void invadpt2(machine_config &config);
- void lupin3a(machine_config &config);
- void indianbt(machine_config &config);
- void starw1(machine_config &config);
- void cosmo(machine_config &config);
- void spcewars(machine_config &config);
- void cosmicmo(machine_config &config);
- void darthvdr(machine_config &config);
- void ballbomb(machine_config &config);
- void spacecom(machine_config &config);
- void crashrd(machine_config &config);
- void schasercv(machine_config &config);
- void lupin3(machine_config &config);
- void spacerng(machine_config &config);
- void steelwkr(machine_config &config);
- void schaser(machine_config &config);
-
- void init_invmulti();
- void init_spacecom();
- void init_vortex();
- void init_attackfc();
- void init_invrvnge();
-
- DECLARE_READ_LINE_MEMBER(sflush_80_r);
- uint8_t sflush_in0_r();
- DECLARE_INPUT_CHANGED_MEMBER(claybust_gun_trigger);
- DECLARE_READ_LINE_MEMBER(claybust_gun_on_r);
-
-protected:
- virtual void video_start() override { m_color_map = m_screen_red = m_flip_screen = 0; }
- void clear_extra_columns( bitmap_rgb32 &bitmap, int color );
- inline void set_8_pixels( bitmap_rgb32 &bitmap, uint8_t y, uint8_t x, uint8_t data, int fore_color, int back_color );
-
- /* devices/memory pointers */
- optional_device<cpu_device> m_audiocpu;
- optional_device<timer_device> m_schaser_effect_555_timer;
- optional_device<timer_device> m_claybust_gun_on;
- optional_device<sn76477_device> m_sn;
- optional_device<samples_device> m_samples;
- optional_device<speaker_sound_device> m_speaker;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<palette_device> m_palette;
- optional_shared_ptr<uint8_t> m_colorram;
-
-private:
- /* misc game specific */
- optional_ioport m_gunx;
- optional_ioport m_guny;
-
- uint8_t m_color_map;
- uint8_t m_screen_red;
- uint8_t m_fleet_step;
-
- std::unique_ptr<uint8_t[]> m_scattered_colorram;
- std::unique_ptr<uint8_t[]> m_scattered_colorram2;
-
- /* sound-related */
- uint8_t m_port_1_last_extra;
- uint8_t m_port_2_last_extra;
- uint8_t m_port_3_last_extra;
-
- attotime m_schaser_effect_555_time_remain;
- int32_t m_schaser_effect_555_time_remain_savable;
- int m_schaser_effect_555_is_low;
- int m_schaser_explosion;
- int m_schaser_last_effect;
- uint8_t m_polaris_cloud_speed;
- uint8_t m_polaris_cloud_pos;
- uint8_t m_schaser_background_disable;
- uint8_t m_schaser_background_select;
- uint16_t m_claybust_gun_pos;
- u8 m_sound_data;
- bool m_timer_state;
-
- TIMER_DEVICE_CALLBACK_MEMBER(nmi_timer);
- uint8_t indianbt_r();
- uint8_t polaris_port00_r();
- void steelwkr_sh_port_3_w(uint8_t data);
- void invadpt2_sh_port_1_w(uint8_t data);
- void invadpt2_sh_port_2_w(uint8_t data);
- void spacerng_sh_port_2_w(uint8_t data);
- void spcewars_sh_port_w(uint8_t data);
- void lrescue_sh_port_1_w(uint8_t data);
- void lrescue_sh_port_2_w(uint8_t data);
- void cosmo_sh_port_2_w(uint8_t data);
- uint8_t darthvdr_01_r();
- void darthvdr_00_w(uint8_t data);
- void darthvdr_08_w(uint8_t data);
- IRQ_CALLBACK_MEMBER(darthvdr_interrupt_vector);
- void ballbomb_01_w(uint8_t data);
- void ballbomb_sh_port_1_w(uint8_t data);
- void ballbomb_sh_port_2_w(uint8_t data);
- void indianbt_sh_port_1_w(uint8_t data);
- void indianbt_sh_port_2_w(uint8_t data);
- void indianbtbr_sh_port_1_w(uint8_t data);
- void indianbtbr_sh_port_2_w(uint8_t data);
- uint8_t indianbtbr_01_r();
- void schaser_sh_port_1_w(uint8_t data);
- void schaser_sh_port_2_w(uint8_t data);
- void rollingc_sh_port_w(uint8_t data);
- uint8_t invrvnge_02_r();
- void invrvnge_port03_w(uint8_t data);
- void invrvnge_port05_w(uint8_t data);
- void lupin3_00_w(uint8_t data);
- void lupin3_sh_port_1_w(uint8_t data);
- void lupin3_sh_port_2_w(uint8_t data);
- uint8_t schasercv_02_r();
- void schasercv_sh_port_1_w(uint8_t data);
- void schasercv_sh_port_2_w(uint8_t data);
- void crashrd_port03_w(uint8_t data);
- void crashrd_port05_w(uint8_t data);
- void yosakdon_sh_port_1_w(uint8_t data);
- void yosakdon_sh_port_2_w(uint8_t data);
- uint8_t shuttlei_ff_r();
- void shuttlei_ff_w(uint8_t data);
- void shuttlei_sh_port_1_w(uint8_t data);
- void shuttlei_sh_port_2_w(uint8_t data);
- uint8_t claybust_gun_lo_r();
- uint8_t claybust_gun_hi_r();
- uint8_t invmulti_eeprom_r();
- void invmulti_eeprom_w(uint8_t data);
- void invmulti_bank_w(uint8_t data);
-
- uint8_t rollingc_scattered_colorram_r(offs_t offset);
- void rollingc_scattered_colorram_w(offs_t offset, uint8_t data);
- uint8_t rollingc_scattered_colorram2_r(offs_t offset);
- void rollingc_scattered_colorram2_w(offs_t offset, uint8_t data);
- uint8_t schaser_scattered_colorram_r(offs_t offset);
- void schaser_scattered_colorram_w(offs_t offset, uint8_t data);
-
- DECLARE_MACHINE_START(extra_8080bw);
- DECLARE_MACHINE_START(rollingc);
- DECLARE_MACHINE_START(sflush);
- DECLARE_MACHINE_START(schaser);
- DECLARE_MACHINE_START(schasercv);
- DECLARE_MACHINE_RESET(schaser);
- DECLARE_MACHINE_START(polaris);
- DECLARE_MACHINE_START(darthvdr);
- DECLARE_MACHINE_RESET(darthvdr);
- DECLARE_MACHINE_START(extra_8080bw_sh);
- DECLARE_MACHINE_START(extra_8080bw_vh);
- DECLARE_MACHINE_START(schaser_sh);
- DECLARE_MACHINE_RESET(schaser_sh);
- DECLARE_MACHINE_START(claybust);
-
- void rollingc_palette(palette_device &palette) const;
- void sflush_palette(palette_device &palette) const;
-
- uint32_t screen_update_invadpt2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cosmo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_rollingc(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_schaser(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_schasercv(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_sflush(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_indianbt(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_lupin3(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_polaris(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ballbomb(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_shuttlei(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_spacecom(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(polaris_60hz_w);
- TIMER_DEVICE_CALLBACK_MEMBER(claybust_gun_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(schaser_effect_555_cb);
- void indianbt_sh_port_3_w(uint8_t data);
- void polaris_sh_port_1_w(uint8_t data);
- void polaris_sh_port_2_w(uint8_t data);
- void polaris_sh_port_3_w(uint8_t data);
-
- void schaser_reinit_555_time_remain();
- inline void set_pixel( bitmap_rgb32 &bitmap, uint8_t y, uint8_t x, int color );
-
- void invaders_samples_audio(machine_config &config);
-
- void astropal_io_map(address_map &map);
- void attackfc_io_map(address_map &map);
- void ballbomb_io_map(address_map &map);
- void claybust_io_map(address_map &map);
- void cosmicmo_io_map(address_map &map);
- void cosmo_io_map(address_map &map);
- void cosmo_map(address_map &map);
- void crashrd_io_map(address_map &map);
- void darthvdr_io_map(address_map &map);
- void darthvdr_map(address_map &map);
- void escmars_map(address_map &map);
- void indianbt_io_map(address_map &map);
- void indianbtbr_io_map(address_map &map);
- void invadpt2_io_map(address_map &map);
- void invmulti_map(address_map &map);
- void invrvnge_io_map(address_map &map);
- void invrvnge_sound_map(address_map &map);
- void lrescue_io_map(address_map &map);
- void lupin3_io_map(address_map &map);
- void polaris_io_map(address_map &map);
- void rollingc_io_map(address_map &map);
- void rollingc_map(address_map &map);
- void schaser_io_map(address_map &map);
- void schaser_map(address_map &map);
- void schasercv_io_map(address_map &map);
- void sflush_map(address_map &map);
- void shuttlei_io_map(address_map &map);
- void shuttlei_map(address_map &map);
- void spacecom_io_map(address_map &map);
- void spacecom_map(address_map &map);
- void spacerng_io_map(address_map &map);
- void spcewarla_io_map(address_map &map);
- void spcewars_io_map(address_map &map);
- void starw1_io_map(address_map &map);
- void steelwkr_io_map(address_map &map);
- void vortex_io_map(address_map &map);
- void yosakdon_io_map(address_map &map);
- void yosakdon_map(address_map &map);
-};
-
-
-/*----------- defined in audio/8080bw.cpp -----------*/
-extern const char *const lrescue_sample_names[];
-extern const char *const lupin3_sample_names[];
-
-DISCRETE_SOUND_EXTERN( ballbomb_discrete );
-DISCRETE_SOUND_EXTERN( indianbt_discrete );
-DISCRETE_SOUND_EXTERN( polaris_discrete );
-DISCRETE_SOUND_EXTERN( schaser_discrete );
-
-/*******************************************************/
-/* */
-/* Cane (Model Racing) */
-/* */
-/*******************************************************/
-class cane_state : public _8080bw_state
-{
-public:
- cane_state(machine_config const &mconfig, device_type type, char const *tag) :
- _8080bw_state(mconfig, type, tag)
- {
- }
-
- void cane(machine_config &config);
- void cane_audio(machine_config &config);
-
-protected:
- void cane_unknown_port0_w(u8 data);
-
-private:
- void cane_io_map(address_map &map);
- void cane_map(address_map &map);
-};
-
-DISCRETE_SOUND_EXTERN( cane_discrete );
-
-/*******************************************************/
-/* */
-/* Model Racing "Orbite" */
-/* */
-/*******************************************************/
-class orbite_state : public _8080bw_state
-{
-public:
- orbite_state(machine_config const &mconfig, device_type type, char const *tag) :
- _8080bw_state(mconfig, type, tag),
- m_main_ram(*this, "main_ram")
- {
- }
-
- void orbite(machine_config &config);
-
-protected:
- required_shared_ptr<uint8_t> m_main_ram;
- std::unique_ptr<uint8_t[]> m_scattered_colorram;
-
- virtual void machine_start() override;
-
- u8 orbite_scattered_colorram_r(address_space &space, offs_t offset, u8 mem_mask = 0xff);
- void orbite_scattered_colorram_w(address_space &space, offs_t offset, u8 data, u8 mem_mask = 0xff);
-
-private:
- void orbite_io_map(address_map &map);
- void orbite_map(address_map &map);
-
- u32 screen_update_orbite(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-};
-
-#endif // MAME_INCLUDES_8080BW_H
diff --git a/src/mame/includes/88games.h b/src/mame/includes/88games.h
deleted file mode 100644
index f4086c6fbb2..00000000000
--- a/src/mame/includes/88games.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- 88 Games
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_88GAMES_H
-#define MAME_INCLUDES_88GAMES_H
-
-#pragma once
-
-#include "cpu/m6809/konami.h"
-#include "sound/upd7759.h"
-#include "video/k051316.h"
-#include "video/k051960.h"
-#include "video/k052109.h"
-#include "video/konami_helper.h"
-
-class _88games_state : public driver_device
-{
-public:
- _88games_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960"),
- m_k051316(*this, "k051316"),
- m_upd7759(*this, "upd%d", 1),
- m_bank0000(*this, "bank0000"),
- m_bank1000(*this, "bank1000"),
- m_ram(*this, "ram")
- { }
-
- void _88games(machine_config &config);
-
-private:
- /* video-related */
- int m_k88games_priority;
- int m_videobank;
- int m_zoomreadroms;
- int m_speech_chip;
-
- /* devices */
- required_device<konami_cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k052109_device> m_k052109;
- required_device<k051960_device> m_k051960;
- required_device<k051316_device> m_k051316;
- required_device_array<upd7759_device, 2> m_upd7759;
-
- /* memory banks */
- required_memory_bank m_bank0000;
- required_memory_bank m_bank1000;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_ram;
-
- uint8_t bankedram_r(offs_t offset);
- void bankedram_w(offs_t offset, uint8_t data);
- void k88games_5f84_w(uint8_t data);
- void k88games_sh_irqtrigger_w(uint8_t data);
- void speech_control_w(uint8_t data);
- void speech_msg_w(uint8_t data);
- uint8_t k052109_051960_r(offs_t offset);
- void k052109_051960_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_88games(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- K051316_CB_MEMBER(zoom_callback);
- K052109_CB_MEMBER(tile_callback);
- K051960_CB_MEMBER(sprite_callback);
- void banking_callback(uint8_t data);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_88GAMES_H
diff --git a/src/mame/includes/a2600.h b/src/mame/includes/a2600.h
deleted file mode 100644
index 285d3d36fc6..00000000000
--- a/src/mame/includes/a2600.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods, Wilbert Pol, David Shah
-/*****************************************************************************
-
- a2600.h
-
- Atari 2600
-
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_A2600_H
-#define MAME_INCLUDES_A2600_H
-
-#pragma once
-
-#include "bus/vcs/compumat.h"
-#include "bus/vcs/dpc.h"
-#include "bus/vcs/harmony_melody.h"
-#include "bus/vcs/rom.h"
-#include "bus/vcs/scharger.h"
-#include "bus/vcs/vcs_slot.h"
-#include "bus/vcs_ctrl/ctrl.h"
-#include "cpu/m6502/m6507.h"
-#include "sound/tiaintf.h"
-#include "video/tia.h"
-
-#define USE_NEW_RIOT 0
-
-#if USE_NEW_RIOT
-#include "machine/mos6530n.h"
-#else
-#include "machine/6532riot.h"
-#endif
-
-#define CONTROL1_TAG "joyport1"
-#define CONTROL2_TAG "joyport2"
-
-
-class a2600_base_state : public driver_device
-{
-protected:
- a2600_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_riot_ram(*this, "riot_ram"),
- m_tia(*this, "tia_video"),
- m_maincpu(*this, "maincpu"),
- m_riot(*this, "riot"),
- m_joy1(*this, CONTROL1_TAG),
- m_joy2(*this, CONTROL2_TAG),
- m_screen(*this, "screen")
- { }
-
- virtual void machine_start() override;
-
- void switch_A_w(uint8_t data);
- uint8_t switch_A_r();
- void switch_B_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(irq_callback);
- uint16_t a2600_read_input_port(offs_t offset);
- uint8_t a2600_get_databus_contents(offs_t offset);
- void a2600_tia_vsync_callback(uint16_t data);
- void a2600_tia_vsync_callback_pal(uint16_t data);
-
- void a2600_mem(address_map &map);
-
- required_shared_ptr<uint8_t> m_riot_ram;
- required_device<tia_video_device> m_tia;
- required_device<m6507_device> m_maincpu;
-#if USE_NEW_RIOT
- required_device<mos6532_new_device> m_riot;
-#else
- required_device<riot6532_device> m_riot;
-#endif
- required_device<vcs_control_port_device> m_joy1;
- required_device<vcs_control_port_device> m_joy2;
- required_device<screen_device> m_screen;
-
-private:
- uint16_t m_current_screen_height;
-};
-
-
-class a2600_state : public a2600_base_state
-{
-public:
- a2600_state(const machine_config &mconfig, device_type type, const char *tag) :
- a2600_base_state(mconfig, type, tag),
- m_cart(*this, "cartslot")
- { }
-
- void a2600(machine_config &config);
- void a2600p(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- void cart_over_tia_w(address_space &space, offs_t offset, uint8_t data);
- // investigate how the carts mapped here (Mapper JVP) interact with the RIOT device
- uint8_t cart_over_riot_r(address_space &space, offs_t offset);
- void cart_over_riot_w(address_space &space, offs_t offset, uint8_t data);
- uint8_t cart_over_all_r(address_space &space, offs_t offset);
- void cart_over_all_w(address_space &space, offs_t offset, uint8_t data);
-
- void a2600_cartslot(machine_config &config);
-
-private:
- required_device<vcs_cart_slot_device> m_cart;
-};
-
-#endif // MAME_INCLUDES_A2600_H
diff --git a/src/mame/includes/abc1600.h b/src/mame/includes/abc1600.h
deleted file mode 100644
index d3036015b81..00000000000
--- a/src/mame/includes/abc1600.h
+++ /dev/null
@@ -1,170 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#pragma once
-
-#ifndef MAME_INCLUDES_ABC1600_H
-#define MAME_INCLUDES_ABC1600_H
-
-#include "bus/abcbus/abcbus.h"
-#include "bus/abckb/abckb.h"
-#include "bus/rs232/rs232.h"
-#include "cpu/m68000/m68000.h"
-#include "imagedev/floppy.h"
-#include "machine/abc1600mac.h"
-#include "machine/e0516.h"
-#include "machine/nmc9306.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80dma.h"
-#include "machine/z80scc.h"
-#include "machine/z80sio.h"
-#include "machine/z8536.h"
-#include "video/abc1600.h"
-
-
-
-//**************************************************************************
-// MACROS / CONSTANTS
-//**************************************************************************
-
-#define MC68008P8_TAG "3f"
-#define Z8410AB1_0_TAG "5g"
-#define Z8410AB1_1_TAG "7g"
-#define Z8410AB1_2_TAG "9g"
-#define Z8470AB1_TAG "17b"
-#define Z8530B1_TAG "2a"
-#define Z8536B1_TAG "15b"
-#define SAB1797_02P_TAG "5a"
-#define FDC9229BT_TAG "7a"
-#define E050_C16PC_TAG "13b"
-#define NMC9306_TAG "14c"
-#define SCREEN_TAG "screen"
-#define BUS0I_TAG "bus0i"
-#define BUS0X_TAG "bus0x"
-#define BUS1_TAG "bus1"
-#define BUS2_TAG "bus2"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-#define RS232_PR_TAG "rs232pr"
-#define ABC_KEYBOARD_PORT_TAG "kb"
-
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-// ======================> abc1600_state
-
-class abc1600_state : public driver_device
-{
-public:
- abc1600_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, MC68008P8_TAG),
- m_mac(*this, ABC1600_MAC_TAG),
- m_dma0(*this, Z8410AB1_0_TAG),
- m_dma1(*this, Z8410AB1_1_TAG),
- m_dma2(*this, Z8410AB1_2_TAG),
- m_dart(*this, Z8470AB1_TAG),
- m_scc(*this, Z8530B1_TAG),
- m_cio(*this, Z8536B1_TAG),
- m_fdc(*this, SAB1797_02P_TAG),
- m_rtc(*this, E050_C16PC_TAG),
- m_nvram(*this, NMC9306_TAG),
- m_ram(*this, RAM_TAG),
- m_floppy0(*this, SAB1797_02P_TAG":0"),
- m_floppy1(*this, SAB1797_02P_TAG":1"),
- m_floppy2(*this, SAB1797_02P_TAG":2"),
- m_bus0i(*this, BUS0I_TAG),
- m_bus0x(*this, BUS0X_TAG),
- m_bus1(*this, BUS1_TAG),
- m_bus2(*this, BUS2_TAG)
- { }
-
- required_device<m68000_base_device> m_maincpu;
- required_device<abc1600_mac_device> m_mac;
- required_device<z80dma_device> m_dma0;
- required_device<z80dma_device> m_dma1;
- required_device<z80dma_device> m_dma2;
- required_device<z80dart_device> m_dart;
- required_device<scc8530_device> m_scc;
- required_device<z8536_device> m_cio;
- required_device<fd1797_device> m_fdc;
- required_device<e0516_device> m_rtc;
- required_device<nmc9306_device> m_nvram;
- required_device<ram_device> m_ram;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<floppy_connector> m_floppy2;
- required_device<abcbus_slot_device> m_bus0i;
- required_device<abcbus_slot_device> m_bus0x;
- required_device<abcbus_slot_device> m_bus1;
- required_device<abcbus_slot_device> m_bus2;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t fc_r();
- uint8_t bus_r(offs_t offset);
- void bus_w(offs_t offset, uint8_t data);
- uint8_t dart_r(offs_t offset);
- void dart_w(offs_t offset, uint8_t data);
- uint8_t scc_r(offs_t offset);
- void scc_w(offs_t offset, uint8_t data);
- uint8_t cio_r(offs_t offset);
- void cio_w(offs_t offset, uint8_t data);
- void fw0_w(uint8_t data);
- void fw1_w(uint8_t data);
- void spec_contr_reg_w(uint8_t data);
-
- void dbrq_w(int state);
- uint8_t dma0_iorq_r(offs_t offset) { return m_sysfs ? m_mac->dma0_iorq_r(offset) : (m_bus0i->read_tren() & m_bus0x->read_tren()); }
- void dma0_iorq_w(offs_t offset, uint8_t data) { if (m_sysfs) m_mac->dma0_iorq_w(offset, data); else { m_bus0i->write_tren(data); m_bus0x->write_tren(data); }; }
- uint8_t dma1_iorq_r(offs_t offset) { return m_sysscc ? m_mac->dma1_iorq_r(offset) : m_bus1->read_tren(); }
- void dma1_iorq_w(offs_t offset, uint8_t data) { if (m_sysscc) m_mac->dma1_iorq_w(offset, data); else m_bus1->write_tren(data); }
-
- uint8_t cio_pa_r();
- uint8_t cio_pb_r();
- void cio_pb_w(uint8_t data);
- uint8_t cio_pc_r();
- void cio_pc_w(uint8_t data);
-
- void nmi_w(int state);
-
- void cpu_space_map(address_map &map);
-
- void update_pren0(int state);
- void update_pren1(int state);
- void update_drdy0(int state);
- void update_drdy1(int state);
- void sccrq_a_w(int state) { m_sccrq_a = state; update_drdy1(0); }
- void sccrq_b_w(int state) { m_sccrq_b = state; update_drdy1(0); }
- void dart_irq_w(int state) { m_dart_irq = state; m_maincpu->set_input_line(M68K_IRQ_5, (m_dart_irq || m_scc_irq) ? ASSERT_LINE : CLEAR_LINE); }
- void scc_irq_w(int state) { m_scc_irq = state; m_maincpu->set_input_line(M68K_IRQ_5, (m_dart_irq || m_scc_irq) ? ASSERT_LINE : CLEAR_LINE); }
-
- // DMA
- int m_dmadis;
- int m_sysscc;
- int m_sysfs;
- uint8_t m_cause;
- int m_partst; // parity test
-
- void abc1600(machine_config &config);
- void abc1600_mem(address_map &map);
- void mac_mem(address_map &map);
- // peripherals
- int m_cs7; // card select address bit 7
- int m_bus0; // BUS 0 selected
- uint8_t m_csb; // card select
- int m_atce; // V.24 channel A external clock enable
- int m_btce; // V.24 channel B external clock enable
- bool m_sccrq_a;
- bool m_sccrq_b;
- int m_dart_irq;
- int m_scc_irq;
-};
-
-
-
-#endif
diff --git a/src/mame/includes/abc80.h b/src/mame/includes/abc80.h
deleted file mode 100644
index 6ec3a5cd7e2..00000000000
--- a/src/mame/includes/abc80.h
+++ /dev/null
@@ -1,193 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-/*****************************************************************************
- *
- * includes/abc80.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_ABC80_H
-#define MAME_INCLUDES_ABC80_H
-
-#pragma once
-
-#include "bus/abcbus/abcbus.h"
-#include "bus/rs232/rs232.h"
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "machine/abc80kb.h"
-#include "machine/keyboard.h"
-#include "machine/ram.h"
-#include "machine/z80pio.h"
-#include "sound/sn76477.h"
-#include "emupal.h"
-
-#define ABC80_HTOTAL 384
-#define ABC80_HBEND 30
-#define ABC80_HBSTART 384
-#define ABC80_VTOTAL 313
-#define ABC80_VBEND 15
-#define ABC80_VBSTART 313
-
-#define ABC80_K5_HSYNC 0x01
-#define ABC80_K5_DH 0x02
-#define ABC80_K5_LINE_END 0x04
-#define ABC80_K5_ROW_START 0x08
-
-#define ABC80_K2_VSYNC 0x01
-#define ABC80_K2_DV 0x02
-#define ABC80_K2_FRAME_END 0x04
-#define ABC80_K2_FRAME_RESET 0x08
-
-#define ABC80_J3_BLANK 0x01
-#define ABC80_J3_TEXT 0x02
-#define ABC80_J3_GRAPHICS 0x04
-#define ABC80_J3_VERSAL 0x08
-
-#define ABC80_E7_VIDEO_RAM 0x01
-#define ABC80_E7_INT_RAM 0x02
-#define ABC80_E7_31K_EXT_RAM 0x04
-#define ABC80_E7_16K_INT_RAM 0x08
-
-#define ABC80_CHAR_CURSOR 0x80
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "ab67"
-#define Z80PIO_TAG "cd67"
-#define SN76477_TAG "g8"
-#define RS232_TAG "ser"
-#define CASSETTE_TAG "cassette"
-#define KEYBOARD_TAG "keyboard"
-#define TIMER_CASSETTE_TAG "cass"
-
-class abc80_state : public driver_device
-{
-public:
- abc80_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_pio(*this, Z80PIO_TAG),
- m_csg(*this, SN76477_TAG),
- m_cassette(*this, "cassette"),
- m_bus(*this, "bus"),
- m_kb(*this, ABC80_KEYBOARD_TAG),
- m_ram(*this, RAM_TAG),
- m_rs232(*this, RS232_TAG),
- m_palette(*this, "palette"),
- m_screen(*this, SCREEN_TAG),
- m_rom(*this, Z80_TAG),
- m_mmu_rom(*this, "mmu"),
- m_char_rom(*this, "chargen"),
- m_hsync_prom(*this, "hsync"),
- m_vsync_prom(*this, "vsync"),
- m_line_prom(*this, "line"),
- m_attr_prom(*this, "attr"),
- m_video_ram(*this, "video_ram", 0x400, ENDIANNESS_LITTLE),
- m_motor(false),
- m_tape_in(1),
- m_tape_in_latch(1)
- { }
-
- static constexpr feature_type imperfect_features() { return feature::KEYBOARD; }
-
- required_device<z80_device> m_maincpu;
- required_device<z80pio_device> m_pio;
- required_device<sn76477_device> m_csg;
- required_device<cassette_image_device> m_cassette;
- required_device<abcbus_slot_device> m_bus;
- required_device<abc80_keyboard_device> m_kb;
- required_device<ram_device> m_ram;
- required_device<rs232_port_device> m_rs232;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_memory_region m_rom;
- required_memory_region m_mmu_rom;
- required_memory_region m_char_rom;
- required_memory_region m_hsync_prom;
- required_memory_region m_vsync_prom;
- required_memory_region m_line_prom;
- required_memory_region m_attr_prom;
- memory_share_creator<uint8_t> m_video_ram;
-
- enum
- {
- TIMER_ID_SCANLINE,
- TIMER_ID_CASSETTE,
- TIMER_ID_BLINK,
- TIMER_ID_VSYNC_ON,
- TIMER_ID_VSYNC_OFF,
- TIMER_ID_FAKE_KEYBOARD_CLEAR
- };
-
- enum
- {
- BOFA = 0xfe1c,
- EOFA = 0xfe1e,
- HEAD = 0xfe20
- };
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- virtual void machine_start() override;
-
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void draw_scanline(bitmap_rgb32 &bitmap, int y);
-
- u8 read(offs_t offset);
- void write(offs_t offset, u8 data);
-
- DECLARE_WRITE_LINE_MEMBER( vco_voltage_w );
-
- u8 pio_pa_r();
- u8 pio_pb_r();
- void pio_pb_w(u8 data);
-
- DECLARE_WRITE_LINE_MEMBER( keydown_w );
- void kbd_w(u8 data);
- void csg_w(u8 data);
-
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- enum
- {
- MMU_XM = 0x01,
- MMU_ROM = 0x02,
- MMU_VRAMS = 0x04,
- MMU_RAM = 0x08
- };
-
- // keyboard state
- int m_key_data;
- int m_key_strobe;
- int m_pio_astb;
-
- // video state
- bitmap_rgb32 m_bitmap;
- u8 m_latch;
- int m_blink;
- int m_c;
- int m_r;
- int m_mode;
-
- // cassette state
- bool m_motor;
- int m_tape_in;
- int m_tape_in_latch;
-
- // timers
- emu_timer *m_scanline_timer;
- emu_timer *m_cassette_timer;
- emu_timer *m_blink_timer;
- emu_timer *m_vsync_on_timer;
- emu_timer *m_vsync_off_timer;
- void abc80(machine_config &config);
- void abc80_video(machine_config &config);
- void abc80_io(address_map &map);
- void abc80_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ABC80_H
diff --git a/src/mame/includes/abc80x.h b/src/mame/includes/abc80x.h
deleted file mode 100644
index afe62b30efd..00000000000
--- a/src/mame/includes/abc80x.h
+++ /dev/null
@@ -1,343 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_ABC800_H
-#define MAME_INCLUDES_ABC800_H
-
-#pragma once
-
-#include "bus/abcbus/abcbus.h"
-#include "bus/rs232/rs232.h"
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "cpu/mcs48/mcs48.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "bus/abckb/abckb.h"
-#include "bus/abckb/abc800kb.h"
-#include "machine/e0516.h"
-#include "machine/z80ctc.h"
-#include "machine/z80sio.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "sound/discrete.h"
-#include "video/mc6845.h"
-#include "video/saa5050.h"
-#include "emupal.h"
-#include "softlist.h"
-#include "speaker.h"
-
-//**************************************************************************
-// MACROS / CONSTANTS
-//**************************************************************************
-
-#define ABC800_X01 XTAL(12'000'000)
-#define ABC806_X02 XTAL(32'768)
-
-#define ABC802_AT0 0x01
-#define ABC802_AT1 0x02
-#define ABC802_ATD 0x40
-#define ABC802_ATE 0x80
-#define ABC802_INV 0x80
-
-#define ABC800C_CHAR_RAM_SIZE 0x400
-#define ABC800M_CHAR_RAM_SIZE 0x800
-#define ABC800_VIDEO_RAM_SIZE 0x4000
-#define ABC802_CHAR_RAM_SIZE 0x800
-#define ABC806_CHAR_RAM_SIZE 0x800
-#define ABC806_VIDEO_RAM_SIZE 0x20000
-
-#define ABC800_CHAR_WIDTH 6
-#define ABC800_CCLK ABC800_X01/ABC800_CHAR_WIDTH
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "z80"
-#define E0516_TAG "j13"
-#define MC6845_TAG "b12"
-#define SAA5052_TAG "5c"
-#define Z80CTC_TAG "z80ctc"
-#define Z80SIO_TAG "z80sio"
-#define Z80DART_TAG "z80dart"
-#define DISCRETE_TAG "discrete"
-#define CASSETTE_TAG "cassette"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-#define ABC_KEYBOARD_PORT_TAG "kb"
-#define TIMER_CTC_TAG "timer_ctc"
-#define TIMER_CASSETTE_TAG "timer_cass"
-
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-// ======================> abc800_state
-
-class abc800_state : public driver_device
-{
-public:
- abc800_state(const machine_config &mconfig, device_type type, const char *tag, size_t char_ram_size) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_ctc(*this, Z80CTC_TAG),
- m_dart(*this, Z80DART_TAG),
- m_sio(*this, Z80SIO_TAG),
- m_discrete(*this, DISCRETE_TAG),
- m_cassette(*this, CASSETTE_TAG),
- m_ram(*this, RAM_TAG),
- m_rom(*this, Z80_TAG),
- m_video_ram(*this, "video_ram", 0x4000, ENDIANNESS_LITTLE),
- m_char_ram(*this, "char_ram", 0x800, ENDIANNESS_LITTLE),
- m_io_sb(*this, "SB"),
- m_ctc_z0(0),
- m_sio_txcb(0),
- m_sio_txdb(1),
- m_sio_rtsb(1),
- m_dfd_out(0),
- m_tape_ctr(4),
- m_char_ram_size(char_ram_size)
- { }
-
- required_device<z80_device> m_maincpu;
- required_device<z80ctc_device> m_ctc;
- required_device<z80dart_device> m_dart;
- required_device<z80sio_device> m_sio;
- optional_device<discrete_sound_device> m_discrete;
- optional_device<cassette_image_device> m_cassette;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- memory_share_creator<uint8_t> m_video_ram;
- memory_share_creator<uint8_t> m_char_ram;
- required_ioport m_io_sb;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void cassette_output_tick(int state);
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
- virtual uint8_t m1_r(offs_t offset);
- uint8_t pling_r();
- void hrs_w(uint8_t data);
- void hrc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( ctc_z0_w );
- DECLARE_WRITE_LINE_MEMBER( ctc_z1_w );
- DECLARE_WRITE_LINE_MEMBER( sio_txdb_w );
- DECLARE_WRITE_LINE_MEMBER( sio_dtrb_w );
- DECLARE_WRITE_LINE_MEMBER( sio_rtsb_w );
- DECLARE_WRITE_LINE_MEMBER( keydtr_w );
- TIMER_DEVICE_CALLBACK_MEMBER( ctc_tick );
- TIMER_DEVICE_CALLBACK_MEMBER( cassette_input_tick );
-
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- // memory state
- int m_keydtr; // keyboard DTR
- bool m_fetch_charram; // opcode fetched from character RAM region (0x7800-0x7fff)
-
- // serial state
- uint8_t m_sb;
- int m_ctc_z0;
- int m_sio_txcb;
- int m_sio_txdb;
- int m_sio_rtsb;
- int m_dfd_out;
- int m_dfd_in;
- int m_tape_ctr;
-
- // video state
- size_t m_char_ram_size;
- uint8_t m_hrs; // HR picture start scanline
- uint8_t m_fgctl; // HR foreground control
-
- // timers
- emu_timer *m_cassette_timer;
- void common(machine_config &config);
- void abc800_m1(address_map &map);
- void abc800_mem(address_map &map);
- void abc800_io(address_map &map);
- void abc800m_io(address_map &map);
- void abc800c_io(address_map &map);
-};
-
-
-// ======================> abc800m_state
-
-class abc800m_state : public abc800_state
-{
-public:
- abc800m_state(const machine_config &mconfig, device_type type, const char *tag) :
- abc800_state(mconfig, type, tag, ABC800M_CHAR_RAM_SIZE),
- m_crtc(*this, MC6845_TAG),
- m_palette(*this, "palette"),
- m_fgctl_prom(*this, "hru2"),
- m_char_rom(*this, MC6845_TAG)
- { }
-
- required_device<mc6845_device> m_crtc;
- required_device<palette_device> m_palette;
- required_memory_region m_fgctl_prom;
- required_memory_region m_char_rom;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void hr_update(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- MC6845_UPDATE_ROW( abc800m_update_row );
- void abc800m(machine_config &config);
- void abc800m_video(machine_config &config);
-};
-
-
-// ======================> abc800c_state
-
-class abc800c_state : public abc800_state
-{
-public:
- abc800c_state(const machine_config &mconfig, device_type type, const char *tag) :
- abc800_state(mconfig, type, tag, ABC800C_CHAR_RAM_SIZE),
- m_trom(*this, SAA5052_TAG),
- m_palette(*this, "palette"),
- m_fgctl_prom(*this, "hru2")
- { }
-
- required_device<saa5052_device> m_trom;
- required_device<palette_device> m_palette;
- required_memory_region m_fgctl_prom;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void hr_update(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t char_ram_r(offs_t offset);
- void abc800c_palette(palette_device &palette) const;
- void abc800c(machine_config &config);
- void abc800c_video(machine_config &config);
-};
-
-
-// ======================> abc802_state
-
-class abc802_state : public abc800_state
-{
-public:
- abc802_state(const machine_config &mconfig, device_type type, const char *tag) :
- abc800_state(mconfig, type, tag, ABC802_CHAR_RAM_SIZE),
- m_crtc(*this, MC6845_TAG),
- m_palette(*this, "palette"),
- m_char_rom(*this, MC6845_TAG),
- m_config(*this, "CONFIG")
- { }
-
- required_device<mc6845_device> m_crtc;
- required_device<palette_device> m_palette;
- required_memory_region m_char_rom;
- required_ioport m_config;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( lrs_w );
- DECLARE_WRITE_LINE_MEMBER( mux80_40_w );
- DECLARE_WRITE_LINE_MEMBER( vs_w );
- MC6845_UPDATE_ROW( abc802_update_row );
-
- // cpu state
- int m_lrs; // low RAM select
-
- // video state
- int m_flshclk_ctr; // flash clock counter
- int m_flshclk; // flash clock
- int m_80_40_mux; // 40/80 column mode
-
- void abc802(machine_config &config);
- void abc802_video(machine_config &config);
- void abc802_m1(address_map &map);
- void abc802_mem(address_map &map);
- void abc802_io(address_map &map);
-};
-
-
-// ======================> abc806_state
-
-class abc806_state : public abc800_state
-{
-public:
- abc806_state(const machine_config &mconfig, device_type type, const char *tag) :
- abc800_state(mconfig, type, tag, ABC806_CHAR_RAM_SIZE),
- m_crtc(*this, MC6845_TAG),
- m_palette(*this, "palette"),
- m_rtc(*this, E0516_TAG),
- m_rad_prom(*this, "rad"),
- m_hru2_prom(*this, "hru"),
- m_char_rom(*this, MC6845_TAG),
- m_attr_ram(*this, "attr_ram", 0x800, ENDIANNESS_LITTLE)
- { }
-
- required_device<mc6845_device> m_crtc;
- required_device<palette_device> m_palette;
- required_device<e0516_device> m_rtc;
- required_memory_region m_rad_prom;
- required_memory_region m_hru2_prom;
- required_memory_region m_char_rom;
- memory_share_creator<uint8_t> m_attr_ram;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void read_pal_p4(offs_t offset, bool m1l, bool xml, offs_t &m, bool &romd, bool &ramd, bool &hre, bool &vr);
- void hr_update(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
- uint8_t m1_r(offs_t offset) override;
- uint8_t mai_r(offs_t offset);
- void mao_w(offs_t offset, uint8_t data);
- void hrs_w(uint8_t data);
- void hrc_w(offs_t offset, uint8_t data);
- uint8_t charram_r(offs_t offset);
- void charram_w(offs_t offset, uint8_t data);
- uint8_t ami_r();
- void amo_w(uint8_t data);
- uint8_t cli_r(offs_t offset);
- void sso_w(uint8_t data);
- uint8_t sti_r();
- void sto_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( hs_w );
- DECLARE_WRITE_LINE_MEMBER( vs_w );
- void abc806_palette(palette_device &palette) const;
- MC6845_UPDATE_ROW( abc806_update_row );
-
- // memory state
- int m_eme; // extended memory enable
- uint8_t m_map[16]; // memory page register
-
- // video state
- int m_txoff; // text display enable
- int m_40; // 40/80 column mode
- int m_flshclk_ctr; // flash clock counter
- int m_flshclk; // flash clock
- uint8_t m_attr_data; // attribute data latch
- uint8_t m_hrc[16]; // HR palette
- uint8_t m_sync; // line synchronization delay
- uint8_t m_v50_addr; // vertical sync PROM address
- int m_hru2_a8; // HRU II PROM address line 8
- uint32_t m_vsync_shift; // vertical sync shift register
- int m_vsync; // vertical sync
- int m_d_vsync; // delayed vertical sync
-
- void abc806(machine_config &config);
- void abc806_video(machine_config &config);
- void abc806_io(address_map &map);
- void abc806_mem(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/actfancr.h b/src/mame/includes/actfancr.h
deleted file mode 100644
index 43640d7063e..00000000000
--- a/src/mame/includes/actfancr.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-
-#include "machine/gen_latch.h"
-#include "video/decbac06.h"
-#include "video/decmxc06.h"
-#include "cpu/h6280/h6280.h"
-
-/*************************************************************************
-
- Act Fancer
-
-*************************************************************************/
-
-class actfancr_state : public driver_device
-{
-public:
- actfancr_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_tilegen(*this, "tilegen%u", 1U),
- m_spritegen(*this, "spritegen"),
- m_soundlatch(*this, "soundlatch") { }
-
- /* memory pointers */
- std::unique_ptr<uint16_t[]> m_spriteram16; // a 16-bit copy of spriteram for use with the MXC06 code
-
- /* misc */
- int m_trio_control_select;
-
- /* devices */
- required_device<h6280_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device_array<deco_bac06_device, 2> m_tilegen;
- required_device<deco_mxc06_device> m_spritegen;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void triothep_control_select_w(uint8_t data);
- uint8_t triothep_control_r();
- void buffer_spriteram_w(uint8_t data);
- DECLARE_MACHINE_START(triothep);
- DECLARE_MACHINE_RESET(triothep);
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void triothep(machine_config &config);
- void actfancr(machine_config &config);
- void actfan_map(address_map &map);
- void dec0_s_map(address_map &map);
- void triothep_map(address_map &map);
-};
diff --git a/src/mame/includes/adam.h b/src/mame/includes/adam.h
deleted file mode 100644
index e4f74309486..00000000000
--- a/src/mame/includes/adam.h
+++ /dev/null
@@ -1,121 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#pragma once
-
-#ifndef MAME_INCLUDES_ADAM_H
-#define MAME_INCLUDES_ADAM_H
-
-#include "bus/adam/exp.h"
-#include "bus/adamnet/adamnet.h"
-#include "bus/coleco/controller/ctrl.h"
-#include "bus/coleco/cartridge/exp.h"
-#include "cpu/z80/z80.h"
-#include "cpu/m6800/m6801.h"
-#include "machine/coleco.h"
-#include "machine/ram.h"
-#include "sound/sn76496.h"
-#include "video/tms9928a.h"
-
-#define Z80_TAG "u1"
-#define M6801_TAG "u6"
-#define SN76489A_TAG "u20"
-#define TMS9928A_TAG "tms9928a"
-#define SCREEN_TAG "screen"
-#define CONTROL1_TAG "joy1"
-#define CONTROL2_TAG "joy2"
-
-class adam_state : public driver_device
-{
-public:
- adam_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_netcpu(*this, M6801_TAG),
- m_vdc(*this, TMS9928A_TAG),
- m_psg(*this, SN76489A_TAG),
- m_ram(*this, RAM_TAG),
- m_adamnet(*this, "adamnet"),
- m_slot1(*this, ADAM_LEFT_EXPANSION_SLOT_TAG),
- m_slot2(*this, ADAM_CENTER_EXPANSION_SLOT_TAG),
- m_slot3(*this, ADAM_RIGHT_EXPANSION_SLOT_TAG),
- m_cart(*this, COLECOVISION_CARTRIDGE_SLOT_TAG),
- m_joy1(*this, CONTROL1_TAG),
- m_joy2(*this, CONTROL2_TAG),
- m_boot_rom(*this, "boot"),
- m_os7_rom(*this, "os7"),
- m_mioc(0),
- m_game(0),
- m_an(0),
- m_dma(1),
- m_bwr(1),
- m_spindis(1)
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<m6801_cpu_device> m_netcpu;
- required_device<tms9928a_device> m_vdc;
- required_device<sn76489a_device> m_psg;
- required_device<ram_device> m_ram;
- required_device<adamnet_device> m_adamnet;
- required_device<adam_expansion_slot_device> m_slot1;
- required_device<adam_expansion_slot_device> m_slot2;
- required_device<adam_expansion_slot_device> m_slot3;
- required_device<colecovision_cartridge_slot_device> m_cart;
- required_device<colecovision_control_port_device> m_joy1;
- required_device<colecovision_control_port_device> m_joy2;
- required_memory_region m_boot_rom;
- required_memory_region m_os7_rom;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t mreq_r(offs_t offset);
- void mreq_w(offs_t offset, uint8_t data);
- uint8_t iorq_r(offs_t offset);
- void iorq_w(offs_t offset, uint8_t data);
-
- uint8_t adamnet_r();
- void adamnet_w(uint8_t data);
- uint8_t mioc_r();
- void mioc_w(uint8_t data);
-
- void m6801_p1_w(uint8_t data);
- uint8_t m6801_p2_r();
- void m6801_p2_w(uint8_t data);
- uint8_t m6801_p3_r();
- void m6801_p3_w(uint8_t data);
- void m6801_p4_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER( vdc_int_w );
-
- DECLARE_WRITE_LINE_MEMBER( os3_w );
-
- DECLARE_WRITE_LINE_MEMBER( joy1_irq_w );
- DECLARE_WRITE_LINE_MEMBER( joy2_irq_w );
-
- // memory state
- uint8_t m_mioc;
- int m_game;
-
- // ADAMnet state
- uint8_t m_an;
-
- // DMA state
- uint16_t m_ba;
- int m_dma;
- int m_bwr;
- uint8_t m_data_in;
- uint8_t m_data_out;
-
- // paddle state
- int m_spindis;
-
- // video state
- int m_vdp_nmi;
- void adam(machine_config &config);
- void adam_io(address_map &map);
- void adam_mem(address_map &map);
- void m6801_mem(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/advision.h b/src/mame/includes/advision.h
deleted file mode 100644
index 98ff4ee0fca..00000000000
--- a/src/mame/includes/advision.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Dan Boris
-
-#ifndef MAME_INCLUDES_ADVISION_H
-#define MAME_INCLUDES_ADVISION_H
-
-#pragma once
-
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "cpu/cop400/cop400.h"
-#include "cpu/mcs48/mcs48.h"
-#include "sound/dac.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-#define I8048_TAG "i8048"
-#define COP411_TAG "cop411"
-
-class advision_state : public driver_device
-{
-public:
- advision_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, I8048_TAG)
- , m_soundcpu(*this, COP411_TAG)
- , m_dac(*this, "dac")
- , m_cart(*this, "cartslot")
- , m_bank1(*this, "bank1")
- , m_joy(*this, "joystick")
- , m_palette(*this, "palette")
- { }
-
- required_device<i8048_device> m_maincpu;
- required_device<cop411_cpu_device> m_soundcpu;
- required_device<dac_byte_interface> m_dac;
- required_device<generic_slot_device> m_cart;
- required_memory_bank m_bank1;
- required_ioport m_joy;
- required_device<palette_device> m_palette;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void update_dac();
- void vh_write(int data);
- void vh_update(int x);
-
- uint8_t rom_r(offs_t offset);
- uint8_t ext_ram_r(offs_t offset);
- void ext_ram_w(offs_t offset, uint8_t data);
- uint8_t controller_r();
- void bankswitch_w(uint8_t data);
- void av_control_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( vsync_r );
-
- TIMER_CALLBACK_MEMBER( sound_cmd_sync );
- uint8_t sound_cmd_r();
- void sound_g_w(uint8_t data);
- void sound_d_w(uint8_t data);
-
- memory_region *m_cart_rom;
-
- int m_ea_bank;
-
- /* external RAM state */
- std::vector<uint8_t> m_ext_ram;
- int m_rambank;
-
- /* video state */
- int m_frame_count;
- int m_frame_start;
- int m_video_enable;
- int m_video_bank;
- int m_video_hpos;
- uint8_t m_led_latch[8];
- std::unique_ptr<uint8_t []> m_display;
-
- /* sound state */
- int m_sound_cmd;
- int m_sound_d;
- int m_sound_g;
- void advision_palette(palette_device &palette) const;
- void advision(machine_config &config);
- void io_map(address_map &map);
- void program_map(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/aeroboto.h b/src/mame/includes/aeroboto.h
deleted file mode 100644
index c5bf0c830a2..00000000000
--- a/src/mame/includes/aeroboto.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Carlos A. Lozano, Uki
-/***************************************************************************
-
- Aeroboto
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_AEROBOTO_H
-#define MAME_INCLUDES_AEROBOTO_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class aeroboto_state : public driver_device
-{
-public:
- aeroboto_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_mainram(*this, "mainram"),
- m_videoram(*this, "videoram"),
- m_hscroll(*this, "hscroll"),
- m_tilecolor(*this, "tilecolor"),
- m_spriteram(*this, "spriteram"),
- m_vscroll(*this, "vscroll"),
- m_starx(*this, "starx"),
- m_stary(*this, "stary"),
- m_bgcolor(*this, "bgcolor"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_mainram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_hscroll;
- required_shared_ptr<uint8_t> m_tilecolor;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_vscroll;
- required_shared_ptr<uint8_t> m_starx;
- required_shared_ptr<uint8_t> m_stary;
- required_shared_ptr<uint8_t> m_bgcolor;
-
- /* stars layout */
- uint8_t * m_stars_rom;
- int m_stars_length;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_charbank;
- int m_starsoff;
- int m_sx;
- int m_sy;
- uint8_t m_ox;
- uint8_t m_oy;
-
- /* misc */
- int m_count;
- int m_disable_irq;
- uint8_t aeroboto_201_r();
- uint8_t aeroboto_irq_ack_r();
- uint8_t aeroboto_2973_r();
- void aeroboto_1a2_w(uint8_t data);
- uint8_t aeroboto_in0_r();
- void aeroboto_3000_w(uint8_t data);
- void aeroboto_videoram_w(offs_t offset, uint8_t data);
- void aeroboto_tilecolor_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_aeroboto(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void formatz(machine_config &config);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_AEROBOTO_H
diff --git a/src/mame/includes/aerofgt.h b/src/mame/includes/aerofgt.h
deleted file mode 100644
index c444a3fa007..00000000000
--- a/src/mame/includes/aerofgt.h
+++ /dev/null
@@ -1,182 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_AEROFGT_H
-#define MAME_INCLUDES_AEROFGT_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "video/vsystem_spr.h"
-#include "video/vsystem_spr2.h"
-#include "sound/okim6295.h"
-#include "sound/upd7759.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class aerofgt_state : public driver_device
-{
-public:
- aerofgt_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_vram(*this, "vram.%u", 0)
- , m_rasterram(*this, "rasterram")
- , m_bitmapram(*this, "bitmapram")
- , m_sprlookupram(*this, "sprlookupram%u", 1)
- , m_spriteram(*this, "spriteram")
- , m_tx_tilemap_ram(*this, "tx_tilemap_ram")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_oki(*this, "oki")
- , m_upd7759(*this, "upd")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_spr(*this, "vsystem_spr")
- , m_spr_old(*this, "vsystem_spr_old%u", 1)
- , m_soundlatch(*this, "soundlatch")
- , m_sprlookuprom(*this, "sprlookuprom")
- , m_soundbank(*this, "soundbank")
- , m_okibank(*this, "okibank")
- { }
-
- /* memory pointers */
- optional_shared_ptr_array<uint16_t, 2> m_vram;
- optional_shared_ptr<uint16_t> m_rasterram;
- optional_shared_ptr<uint16_t> m_bitmapram;
- optional_shared_ptr_array<uint16_t, 2> m_sprlookupram;
- required_shared_ptr<uint16_t> m_spriteram;
- optional_shared_ptr<uint16_t> m_tx_tilemap_ram;
-
- /* devices referenced above */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<okim6295_device> m_oki;
- optional_device<upd7759_device> m_upd7759; // karatblzbl
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<vsystem_spr_device> m_spr; // only the aerofgt parent uses this chip
- optional_device_array<vsystem_spr2_device, 2> m_spr_old; // every other (non-bootleg) uses this or a pair of them..
- optional_device<generic_latch_8_device> m_soundlatch;
-
- optional_region_ptr<uint16_t> m_sprlookuprom;
- optional_memory_bank m_soundbank;
- optional_memory_bank m_okibank;
-
- /* video-related */
- tilemap_t *m_tilemap[2];
- uint8_t m_gfxbank[8];
- uint16_t m_bank[4];
- uint16_t m_scrollx[2];
- uint16_t m_scrolly[2];
- bool m_flip_screen;
- uint16_t m_wbbc97_bitmap_enable;
- int m_charpalettebank;
- int m_spritepalettebank;
- int m_sprite_gfx;
- int m_spikes91_lookup;
- uint32_t aerofgt_tile_callback( uint32_t code );
-
- uint32_t aerofgt_old_tile_callback( uint32_t code );
- uint32_t aerofgt_ol2_tile_callback( uint32_t code );
- uint32_t spinbrk_tile_callback( uint32_t code );
-
- /* handlers */
- void karatblzbl_soundlatch_w(uint8_t data);
- uint8_t pending_command_r();
- void aerofgt_sh_bankswitch_w(uint8_t data);
- void spinlbrk_sh_bankswitch_w(uint8_t data);
- void aerfboot_okim6295_banking_w(uint8_t data);
- template<int Layer> void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void pspikes_gfxbank_w(uint8_t data);
- void pspikesb_gfxbank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void spikes91_lookup_w(uint16_t data);
- void karatblz_gfxbank_w(uint8_t data);
- void spinlbrk_gfxbank_w(uint8_t data);
- void kickball_gfxbank_w(uint8_t data);
- void turbofrc_gfxbank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void aerofgt_gfxbank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- template<int Layer> void scrollx_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- template<int Layer> void scrolly_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void pspikes_palette_bank_w(uint8_t data);
- void spinlbrk_flip_screen_w(uint8_t data);
- void turbofrc_flip_screen_w(uint8_t data);
- void wbbc97_bitmap_enable_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void pspikesb_oki_banking_w(uint16_t data);
- void aerfboo2_okim6295_banking_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void karatblzbl_d7759_write_port_0_w(uint8_t data);
- void karatblzbl_d7759_reset_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_pspikes_tile_info);
- template<int Layer> TILE_GET_INFO_MEMBER(karatblz_tile_info);
- template<int Layer> TILE_GET_INFO_MEMBER(spinlbrk_tile_info);
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- DECLARE_MACHINE_START(aerofgt);
- DECLARE_MACHINE_START(spinlbrk);
- DECLARE_MACHINE_RESET(aerofgt);
- DECLARE_VIDEO_START(pspikes);
- DECLARE_MACHINE_START(common);
- DECLARE_MACHINE_RESET(common);
- DECLARE_VIDEO_START(karatblz);
- DECLARE_VIDEO_START(spinlbrk);
- DECLARE_VIDEO_START(turbofrc);
- DECLARE_VIDEO_START(wbbc97);
- void init_banked_oki();
- void init_kickball();
- uint32_t screen_update_pspikes(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_spikes91(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_pspikesb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_karatblz(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_spinlbrk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_turbofrc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_aerofgt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_aerfboot(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_aerfboo2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_wbbc97(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void aerofgt_register_state_globals( );
- void setbank( int layer, int num, int bank );
- void aerfboo2_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int chip, int chip_disabled_pri );
- void pspikesb_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void spikes91_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void aerfboot_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void wbbc97_draw_bitmap( bitmap_rgb32 &bitmap );
- void spinlbrk(machine_config &config);
- void aerofgt(machine_config &config);
- void karatblz(machine_config &config);
- void pspikesb(machine_config &config);
- void aerfboo2(machine_config &config);
- void pspikes(machine_config &config);
- void wbbc97(machine_config &config);
- void aerfboot(machine_config &config);
- void pspikesc(machine_config &config);
- void karatblzbl(machine_config &config);
- void spikes91(machine_config &config);
- void aerofgtb(machine_config &config);
- void turbofrc(machine_config &config);
- void kickball(machine_config &config);
- void aerfboo2_map(address_map &map);
- void aerfboot_map(address_map &map);
- void aerfboot_sound_map(address_map &map);
- void aerofgt_map(address_map &map);
- void aerofgt_sound_portmap(address_map &map);
- void aerofgtb_map(address_map &map);
- void karatblz_map(address_map &map);
- void karatblzbl_map(address_map &map);
- void karatblzbl_sound_map(address_map &map);
- void karatblzbl_sound_portmap(address_map &map);
- void kickball_map(address_map &map);
- void kickball_sound_map(address_map &map);
- void kickball_sound_portmap(address_map &map);
- void oki_map(address_map &map);
- void pspikes_map(address_map &map);
- void pspikesb_map(address_map &map);
- void pspikesc_map(address_map &map);
- void sound_map(address_map &map);
- void spikes91_map(address_map &map);
- void spikes91_sound_map(address_map &map);
- void spinlbrk_map(address_map &map);
- void spinlbrk_sound_portmap(address_map &map);
- void turbofrc_map(address_map &map);
- void turbofrc_sound_portmap(address_map &map);
- void wbbc97_map(address_map &map);
- void wbbc97_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_AEROFGT_H
diff --git a/src/mame/includes/aim65.h b/src/mame/includes/aim65.h
deleted file mode 100644
index 9172154495f..00000000000
--- a/src/mame/includes/aim65.h
+++ /dev/null
@@ -1,133 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner, Dan Boris, Dirk Best, Robbbert
-/*****************************************************************************
- *
- * includes/aim65.h
- *
- * Rockwell AIM-65
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_AIM65_H
-#define MAME_INCLUDES_AIM65_H
-
-#pragma once
-
-#include "bus/generic/carts.h"
-#include "bus/generic/slot.h"
-#include "cpu/m6502/m6502.h"
-#include "imagedev/cassette.h"
-#include "bus/rs232/rs232.h"
-#include "machine/6522via.h"
-#include "machine/6821pia.h"
-#include "machine/mos6530n.h"
-#include "machine/ram.h"
-#include "video/dl1416.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-class aim65_state : public driver_device
-{
-public:
- aim65_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_palette(*this, "palette")
- , m_riot_port_a(0)
- , m_pb_save(0)
- , m_kb_en(true)
- , m_ca2(true)
- , m_cb2(true)
- , m_printer_x(0)
- , m_printer_y(0)
- , m_printer_flag(0)
- , m_printer_level(0)
- , m_maincpu(*this, "maincpu")
- , m_cassette1(*this, "cassette")
- , m_cassette2(*this, "cassette2")
- , m_z24(*this, "z24")
- , m_z25(*this, "z25")
- , m_z26(*this, "z26")
- , m_z12(*this, "z12")
- , m_z13(*this, "z13")
- , m_z14(*this, "z14")
- , m_z15(*this, "z15")
- , m_ram(*this, RAM_TAG)
- , m_ds(*this, "ds%u", 1)
- , m_digits(*this, "digit%u", 0U)
- , m_rs232(*this, "rs232")
- , m_via0(*this, "via0")
- , m_via1(*this, "via1")
- , m_pia(*this, "pia")
- , m_riot(*this, "riot")
- , m_io_keyboard(*this, "KEY.%u", 0)
- {
- }
-
- void aim65(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(reset_button);
-
-private:
- virtual void machine_start() override;
-
- void aim65_palette(palette_device &palette) const;
- void u1_pa_w(u8 data);
- void u1_pb_w(u8 data);
- u8 z33_pb_r();
- void z32_pa_w(u8 data);
- void z32_pb_w(u8 data);
- void z32_cb2_w(bool state);
- u8 z32_pb_r();
-
- template <unsigned D> void update_ds(offs_t offset, u16 data);
-
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(z24_load) { return load_cart(image, m_z24, "z24"); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(z25_load) { return load_cart(image, m_z25, "z25"); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(z26_load) { return load_cart(image, m_z26, "z26"); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(z12_load) { return load_cart(image, m_z12, "z12"); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(z13_load) { return load_cart(image, m_z13, "z13"); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(z14_load) { return load_cart(image, m_z14, "z14"); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(z15_load) { return load_cart(image, m_z15, "z15"); }
- emu_timer *m_print_timer;
- TIMER_CALLBACK_MEMBER(printer_timer);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- image_init_result load_cart(device_image_interface &image, generic_slot_device *slot, const char *slot_tag);
-
- void mem_map(address_map &map);
-
- optional_device<palette_device> m_palette;
- uint8_t m_riot_port_a;
- uint8_t m_pb_save;
- bool m_kb_en;
- bool m_ca2;
- bool m_cb2;
- u8 m_printer_x;
- u8 m_printer_y;
- u8 m_printer_flag;
- bool m_printer_level;
- std::unique_ptr<uint16_t[]> m_printerRAM;
-
- required_device<cpu_device> m_maincpu;
- required_device<cassette_image_device> m_cassette1;
- required_device<cassette_image_device> m_cassette2;
- required_device<generic_slot_device> m_z24;
- required_device<generic_slot_device> m_z25;
- required_device<generic_slot_device> m_z26;
- required_device<generic_slot_device> m_z12;
- required_device<generic_slot_device> m_z13;
- required_device<generic_slot_device> m_z14;
- required_device<generic_slot_device> m_z15;
- required_device<ram_device> m_ram;
- required_device_array<dl1416_device, 5> m_ds;
- output_finder<20> m_digits;
- required_device<rs232_port_device> m_rs232;
- required_device<via6522_device> m_via0;
- required_device<via6522_device> m_via1;
- required_device<pia6821_device> m_pia;
- required_device<mos6532_new_device> m_riot;
- required_ioport_array<8> m_io_keyboard;
-};
-
-
-#endif // MAME_INCLUDES_AIM65_H
diff --git a/src/mame/includes/airbustr.h b/src/mame/includes/airbustr.h
deleted file mode 100644
index 0deb971ef52..00000000000
--- a/src/mame/includes/airbustr.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/*************************************************************************
-
- Air Buster
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_AIRBUSTR_H
-#define MAME_INCLUDES_AIRBUSTR_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "video/kan_pand.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class airbustr_state : public driver_device
-{
-public:
- airbustr_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_devram(*this, "devram")
- , m_videoram(*this, "videoram%u", 1)
- , m_colorram(*this, "colorram%u", 1)
- , m_masterbank(*this, "masterbank")
- , m_slavebank(*this, "slavebank")
- , m_audiobank(*this, "audiobank")
- , m_master(*this, "master")
- , m_slave(*this, "slave")
- , m_audiocpu(*this, "audiocpu")
- , m_pandora(*this, "pandora")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_watchdog(*this, "watchdog")
- , m_soundlatch(*this, "soundlatch%u", 1)
- {
- }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_devram;
- required_shared_ptr_array<uint8_t, 2> m_videoram;
- required_shared_ptr_array<uint8_t, 2> m_colorram;
-
- required_memory_bank m_masterbank;
- required_memory_bank m_slavebank;
- required_memory_bank m_audiobank;
-
- /* video-related */
- tilemap_t *m_tilemap[2];
- int m_scrollx[2];
- int m_scrolly[2];
- int m_highbits;
-
- /* devices */
- required_device<cpu_device> m_master;
- required_device<cpu_device> m_slave;
- required_device<cpu_device> m_audiocpu;
- required_device<kaneko_pandora_device> m_pandora;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<watchdog_timer_device> m_watchdog;
- required_device_array<generic_latch_8_device, 2> m_soundlatch;
-
- uint8_t devram_r(address_space &space, offs_t offset);
- void master_nmi_trigger_w(uint8_t data);
- void master_bankswitch_w(uint8_t data);
- void slave_bankswitch_w(uint8_t data);
- void sound_bankswitch_w(uint8_t data);
- uint8_t soundcommand_status_r();
- void coin_counter_w(uint8_t data);
- template<int Layer> void videoram_w(offs_t offset, uint8_t data);
- template<int Layer> void colorram_w(offs_t offset, uint8_t data);
- void scrollregs_w(offs_t offset, uint8_t data);
- void init_airbustr();
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- INTERRUPT_GEN_MEMBER(slave_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(airbustr_scanline);
- void airbustr(machine_config &config);
- void airbustrb(machine_config &config);
- void master_io_map(address_map &map);
- void master_map(address_map &map);
- void slave_io_map(address_map &map);
- void slave_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_AIRBUSTR_H
diff --git a/src/mame/includes/ajax.h b/src/mame/includes/ajax.h
deleted file mode 100644
index 105ad24ff37..00000000000
--- a/src/mame/includes/ajax.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-#ifndef MAME_INCLUDES_AJAX_H
-#define MAME_INCLUDES_AJAX_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/watchdog.h"
-#include "sound/k007232.h"
-#include "video/k052109.h"
-#include "video/k051960.h"
-#include "video/k051316.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-
-class ajax_state : public driver_device
-{
-public:
- ajax_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_subcpu(*this, "sub"),
- m_watchdog(*this, "watchdog"),
- m_k007232_1(*this, "k007232_1"),
- m_k007232_2(*this, "k007232_2"),
- m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960"),
- m_k051316(*this, "k051316"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void sound_bank_w(uint8_t data);
- uint8_t ls138_f10_r(offs_t offset);
- void ls138_f10_w(offs_t offset, uint8_t data);
- void bankswitch_2_w(uint8_t data);
- void bankswitch_w(uint8_t data);
- void lamps_w(uint8_t data);
- void k007232_extvol_w(uint8_t data);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void volume_callback0(uint8_t data);
- void volume_callback1(uint8_t data);
- K051316_CB_MEMBER(zoom_callback);
- K052109_CB_MEMBER(tile_callback);
- K051960_CB_MEMBER(sprite_callback);
- void ajax(machine_config &config);
- void ajax_main_map(address_map &map);
- void ajax_sound_map(address_map &map);
- void ajax_sub_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- /* video-related */
- uint8_t m_priority;
-
- /* misc */
- int m_firq_enable;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<k007232_device> m_k007232_1;
- required_device<k007232_device> m_k007232_2;
- required_device<k052109_device> m_k052109;
- required_device<k051960_device> m_k051960;
- required_device<k051316_device> m_k051316;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- output_finder<8> m_lamps;
-};
-
-#endif // MAME_INCLUDES_AJAX_H
diff --git a/src/mame/includes/alesis.h b/src/mame/includes/alesis.h
deleted file mode 100644
index 9efc395235e..00000000000
--- a/src/mame/includes/alesis.h
+++ /dev/null
@@ -1,234 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sandro Ronco
-/***************************************************************************
-
- Alesis HR-16 and SR-16 drum machines
-
-****************************************************************************/
-
-#ifndef MAME_INCLUDES_ALESIS_H
-#define MAME_INCLUDES_ALESIS_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/nvram.h"
-#include "sound/dac.h"
-#include "video/hd44780.h"
-#include "imagedev/cassette.h"
-#include "emupal.h"
-
-
-// ======================> alesis_dm3ag_device
-
-class alesis_dm3ag_device : public device_t
-{
-public:
- // construction/destruction
- alesis_dm3ag_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- // device interface
- void write(uint8_t data);
-
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void device_add_mconfig(machine_config &config) override;
-
-private:
- static const device_timer_id TIMER_DAC_UPDATE = 1;
- required_device<dac_word_interface> m_dac;
- required_region_ptr<int8_t> m_samples;
-
- emu_timer * m_dac_update_timer;
- bool m_output_active;
- int m_count;
- int m_shift;
- uint32_t m_cur_sample;
- uint8_t m_cmd[5];
-};
-
-
-// ======================> alesis_state
-
-class alesis_state : public driver_device
-{
-public:
- alesis_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_lcdc(*this, "hd44780"),
- m_cassette(*this, "cassette"),
- m_maincpu(*this, "maincpu"),
- m_col(*this, "COL%u", 1U),
- m_select(*this, "SELECT"),
- m_digit(*this, "digit%u", 0U),
- m_pattern(*this, "pattern"),
- m_track_led(*this, "track_led%u", 1U),
- m_patt_led(*this, "patt_led"),
- m_song_led(*this, "song_led"),
- m_play_led(*this, "play_led"),
- m_record_led(*this, "record_led"),
- m_voice_led(*this, "voice_led"),
- m_tune_led(*this, "tune_led"),
- m_mix_led(*this, "mix_led"),
- m_tempo_led(*this, "tempo_led"),
- m_midi_led(*this, "midi_led"),
- m_part_led(*this, "part_led"),
- m_edit_led(*this, "edit_led"),
- m_echo_led(*this, "echo_led"),
- m_loop_led(*this, "loop_led"),
- m_a_next(*this, "a_next"),
- m_b_next(*this, "b_next"),
- m_fill_next(*this, "fill_next"),
- m_user_next(*this, "user_next"),
- m_play(*this, "play"),
- m_record(*this, "record"),
- m_compose(*this, "compose"),
- m_perform(*this, "perform"),
- m_song(*this, "song"),
- m_b(*this, "b"),
- m_a(*this, "a"),
- m_fill(*this, "fill"),
- m_user(*this, "user"),
- m_edited(*this, "edited"),
- m_set(*this, "set"),
- m_drum(*this, "drum"),
- m_press_play(*this, "press_play"),
- m_metronome(*this, "metronome"),
- m_tempo(*this, "tempo"),
- m_page(*this, "page"),
- m_step_edit(*this, "step_edit"),
- m_swing_off(*this, "swing_off"),
- m_swing_62(*this, "swing_62"),
- m_click_l1(*this, "click_l1"),
- m_click_note(*this, "click_note"),
- m_click_l2(*this, "click_l2"),
- m_click_3(*this, "click_3"),
- m_backup(*this, "backup"),
- m_drum_set(*this, "drum_set"),
- m_swing(*this, "swing"),
- m_swing_58(*this, "swing_58"),
- m_click_off(*this, "click_off"),
- m_click(*this, "click"),
- m_quantize_off(*this, "quantize_off"),
- m_quantize_3(*this, "quantize_3"),
- m_midi_setup(*this, "midi_setup"),
- m_record_setup(*this, "record_setup"),
- m_quantize(*this, "quantize"),
- m_swing_54(*this, "swing_54"),
- m_quantize_l1(*this, "quantize_l1"),
- m_quantize_l2(*this, "quantize_l2"),
- m_quantize_l3(*this, "quantize_l3"),
- m_quantize_note(*this, "quantize_note"),
- m_setup(*this, "setup")
- { }
-
- void init_hr16();
- void mmt8(machine_config &config);
- void hr16(machine_config &config);
- void sr16(machine_config &config);
-
-protected:
- void alesis_palette(palette_device &palette) const;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void update_lcd_symbols(bitmap_ind16 &bitmap, uint8_t pos, uint8_t y, uint8_t x, int state);
- void led_w(uint8_t data);
- void mmt8_led_w(uint8_t data);
- uint8_t mmt8_led_r();
- void track_led_w(uint8_t data);
- void kb_matrix_w(uint8_t data);
- uint8_t kb_r();
- uint8_t p3_r();
- void p3_w(uint8_t data);
- uint8_t mmt8_p3_r();
- void mmt8_p3_w(uint8_t data);
- void sr16_lcd_w(uint8_t data);
- HD44780_PIXEL_UPDATE(sr16_pixel_update);
-
- void hr16_io(address_map &map);
- void hr16_mem(address_map &map);
- void mmt8_io(address_map &map);
- void sr16_io(address_map &map);
- void sr16_mem(address_map &map);
-
-private:
- uint8_t m_kb_matrix;
- uint8_t m_leds;
- uint8_t m_lcd_digits[5];
-
- required_device<hd44780_device> m_lcdc;
- optional_device<cassette_image_device> m_cassette;
- required_device<mcs51_cpu_device> m_maincpu;
-
- required_ioport_array<6> m_col;
- optional_ioport m_select;
- output_finder<5> m_digit;
- output_finder<> m_pattern;
- output_finder<8> m_track_led;
- output_finder<> m_patt_led;
- output_finder<> m_song_led;
- output_finder<> m_play_led;
- output_finder<> m_record_led;
- output_finder<> m_voice_led;
- output_finder<> m_tune_led;
- output_finder<> m_mix_led;
- output_finder<> m_tempo_led;
- output_finder<> m_midi_led;
- output_finder<> m_part_led;
- output_finder<> m_edit_led;
- output_finder<> m_echo_led;
- output_finder<> m_loop_led;
- output_finder<> m_a_next;
- output_finder<> m_b_next;
- output_finder<> m_fill_next;
- output_finder<> m_user_next;
- output_finder<> m_play;
- output_finder<> m_record;
- output_finder<> m_compose;
- output_finder<> m_perform;
- output_finder<> m_song;
- output_finder<> m_b;
- output_finder<> m_a;
- output_finder<> m_fill;
- output_finder<> m_user;
- output_finder<> m_edited;
- output_finder<> m_set;
- output_finder<> m_drum;
- output_finder<> m_press_play;
- output_finder<> m_metronome;
- output_finder<> m_tempo;
- output_finder<> m_page;
- output_finder<> m_step_edit;
- output_finder<> m_swing_off;
- output_finder<> m_swing_62;
- output_finder<> m_click_l1;
- output_finder<> m_click_note;
- output_finder<> m_click_l2;
- output_finder<> m_click_3;
- output_finder<> m_backup;
- output_finder<> m_drum_set;
- output_finder<> m_swing;
- output_finder<> m_swing_58;
- output_finder<> m_click_off;
- output_finder<> m_click;
- output_finder<> m_quantize_off;
- output_finder<> m_quantize_3;
- output_finder<> m_midi_setup;
- output_finder<> m_record_setup;
- output_finder<> m_quantize;
- output_finder<> m_swing_54;
- output_finder<> m_quantize_l1;
- output_finder<> m_quantize_l2;
- output_finder<> m_quantize_l3;
- output_finder<> m_quantize_note;
- output_finder<> m_setup;
-};
-
-// device type definition
-DECLARE_DEVICE_TYPE(ALESIS_DM3AG, alesis_dm3ag_device)
-
-#endif // MAME_INCLUDES_ALESIS_H
diff --git a/src/mame/includes/aliens.h b/src/mame/includes/aliens.h
deleted file mode 100644
index a02f6a10c68..00000000000
--- a/src/mame/includes/aliens.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Aliens
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ALIENS_H
-#define MAME_INCLUDES_ALIENS_H
-
-#pragma once
-
-#include "cpu/m6809/konami.h" /* for the callback and the firq irq definition */
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "sound/k007232.h"
-#include "video/k051960.h"
-#include "video/k052109.h"
-
-class aliens_state : public driver_device
-{
-public:
- aliens_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_bank0000(*this, "bank0000"),
- m_k007232(*this, "k007232"),
- m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960"),
- m_soundlatch(*this, "soundlatch"),
- m_rombank(*this, "rombank")
- { }
-
- /* devices */
- required_device<konami_cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<address_map_bank_device> m_bank0000;
- required_device<k007232_device> m_k007232;
- required_device<k052109_device> m_k052109;
- required_device<k051960_device> m_k051960;
- required_device<generic_latch_8_device> m_soundlatch;
- required_memory_bank m_rombank;
-
- void aliens_coin_counter_w(uint8_t data);
- void aliens_sh_irqtrigger_w(uint8_t data);
- uint8_t k052109_051960_r(offs_t offset);
- void k052109_051960_w(offs_t offset, uint8_t data);
- void aliens_snd_bankswitch_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_aliens(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void volume_callback(uint8_t data);
- K052109_CB_MEMBER(tile_callback);
- K051960_CB_MEMBER(sprite_callback);
- void banking_callback(uint8_t data);
- void aliens(machine_config &config);
- void aliens_map(address_map &map);
- void aliens_sound_map(address_map &map);
- void bank0000_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ALIENS_H
diff --git a/src/mame/includes/alpha68k.h b/src/mame/includes/alpha68k.h
deleted file mode 100644
index 4d28ccc00fd..00000000000
--- a/src/mame/includes/alpha68k.h
+++ /dev/null
@@ -1,425 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli, Bryan McPhail
-/*************************************************************************
-
- SNK/Alpha 68000 based games
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ALPHA68K_H
-#define MAME_INCLUDES_ALPHA68K_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/mcs48/mcs48.h"
-#include "cpu/z80/z80.h"
-#include "sound/ay8910.h"
-#include "sound/dac.h"
-#include "sound/ym2203.h"
-#include "sound/ym2413.h"
-#include "sound/ym3812.h"
-#include "machine/74259.h"
-#include "machine/gen_latch.h"
-#include "video/snk68_spr.h"
-#include "video/alpha68k_palette.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-#include "speaker.h"
-
-
-class alpha68k_state : public driver_device
-{
-public:
- alpha68k_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_outlatch(*this, "outlatch"),
- m_soundlatch(*this, "soundlatch"),
- m_shared_ram(*this, "shared_ram"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_in(*this, "IN%u", 0U),
- m_audiobank(*this, "audiobank")
- { }
-
-protected:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- optional_device<ls259_device> m_outlatch;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- optional_shared_ptr<u16> m_shared_ram;
- required_shared_ptr<u16> m_spriteram;
- optional_shared_ptr<u16> m_videoram;
-
- optional_ioport_array<7> m_in;
- optional_memory_bank m_audiobank;
-
- int m_flipscreen;
-
- // MCU sims
- void alpha_microcontroller_w(offs_t offset, u16 data, u16 mem_mask);
- int m_invert_controls;
- int m_microcontroller_id;
- unsigned m_game_id; // see below
- unsigned m_deposits1;
- unsigned m_deposits2;
- unsigned m_credits;
- unsigned m_coinvalue;
- int m_coin_id;
- unsigned m_microcontroller_data;
- unsigned m_trigstate;
- int m_latch;
-
- void set_screen_raw_params(machine_config &config);
-
- DECLARE_MACHINE_START(common);
- DECLARE_MACHINE_RESET(common);
-
-};
-
-class alpha68k_II_state : public alpha68k_state
-{
-public:
- alpha68k_II_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_state(mconfig, type, tag)
- , m_sprites(*this, "sprites")
- , m_palette(*this, "palette")
- {}
-
- void alpha68k_II(machine_config &config);
- void btlfieldb(machine_config &config);
-
- void init_skysoldr();
- void init_timesold();
- void init_timesold1();
- void init_btlfield();
- void init_btlfieldb();
-protected:
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<snk68_spr_device> m_sprites;
- required_device<alpha68k_palette_device> m_palette;
-
- void base_config(machine_config &config);
- DECLARE_VIDEO_START(alpha68k);
- void video_config(machine_config &config, u16 num_pens);
- void tile_callback(int &tile, int& fx, int& fy, int& region);
- void tile_callback_noflipx(int &tile, int& fx, int& fy, int& region);
- void tile_callback_noflipy(int &tile, int& fx, int& fy, int& region);
-
- INTERRUPT_GEN_MEMBER(sound_nmi);
- void sound_bank_w(u8 data);
- void flipscreen_w(int flip);
- void porta_w(u8 data);
- u8 m_sound_nmi_mask;
- u8 m_sound_pa_latch;
-
- DECLARE_MACHINE_START(alpha68k_II);
- DECLARE_MACHINE_RESET(alpha68k_II);
- void video_bank_w(u8 data);
- void alpha68k_II_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
-
- u16 alpha_II_trigger_r(offs_t offset);
-
- /* video-related */
- tilemap_t *m_fix_tilemap;
- int m_bank_base;
-
- void outlatch_w(offs_t offset, u8 data = 0);
- u16 control_1_r();
- u16 control_2_r();
- u16 control_3_r();
- u16 control_4_r();
- void videoram_w(offs_t offset, u16 data);
- DECLARE_WRITE_LINE_MEMBER(video_control2_w);
- DECLARE_WRITE_LINE_MEMBER(video_control3_w);
-private:
- TILE_GET_INFO_MEMBER(get_tile_info);
-};
-
-class goldmedal_II_state : public alpha68k_II_state
-{
-public:
- goldmedal_II_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_II_state(mconfig, type, tag)
- {}
-
- void init_goldmedl();
- void goldmedal(machine_config &config);
-};
-
-class alpha68k_III_state : public alpha68k_II_state
-{
-public:
- alpha68k_III_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_II_state(mconfig, type, tag)
- {}
-
- void alpha68k_III(machine_config &config);
-protected:
- DECLARE_MACHINE_START(alpha68k_V);
- DECLARE_MACHINE_RESET(alpha68k_V);
- void alpha68k_III_map(address_map &map);
- void alpha68k_V_map(address_map &map);
- u16 alpha_V_trigger_r(offs_t offset);
-};
-
-class goldmedal_III_state : public alpha68k_III_state
-{
-public:
- goldmedal_III_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_III_state(mconfig, type, tag)
- {}
-
- void init_goldmedla();
- void goldmedal(machine_config &config);
-};
-
-class alpha68k_V_state : public alpha68k_III_state
-{
-public:
- alpha68k_V_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_III_state(mconfig, type, tag)
- {}
-
- void init_skyadvnt();
- void init_skyadvntu();
- void init_sbasebal();
- void init_sbasebalj();
- void init_gangwarsu();
- void init_gangwars();
- void alpha68k_V(machine_config &config);
-};
-
-class skyadventure_state : public alpha68k_V_state
-{
-public:
- skyadventure_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_V_state(mconfig, type, tag)
- {}
-
- void skyadventure(machine_config &config);
-};
-
-class gangwars_state : public alpha68k_V_state
-{
-public:
- gangwars_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_V_state(mconfig, type, tag)
- {}
-
- void gangwars(machine_config &config);
-};
-
-/*
- * Base class for HWs with 4bpp PROMs for colors
- */
-
-class alpha68k_prom_state : public alpha68k_state
-{
-public:
- alpha68k_prom_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_state(mconfig, type, tag),
- m_palette(*this, "palette"),
- m_color_proms(*this, "color_proms")
- {}
-
-protected:
- void palette_init(palette_device &palette) const;
-
- required_device<palette_device> m_palette;
- optional_region_ptr<u8> m_color_proms;
-};
-
-/*
- *
- * Alpha68k N games
- *
- */
-class alpha68k_N_state : public alpha68k_prom_state
-{
-public:
- alpha68k_N_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_prom_state(mconfig, type, tag)
- {}
-
-protected:
- void main_map(address_map &map);
-
- void base_config(machine_config &config);
- void video_config(machine_config &config, u8 tile_transchar, u8 tile_bankshift, bool is_super_stingray);
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int c, int d);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- u16 kyros_alpha_trigger_r(offs_t offset);
- void sound_map(address_map &map);
- void sound_iomap(address_map &map);
-
-private:
- u16 m_tile_transchar;
- int m_tile_bankshift;
- bool m_is_super_stingray;
-};
-
-class sstingray_state : public alpha68k_N_state
-{
-public:
- sstingray_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_N_state(mconfig, type, tag)
- , m_alpha8511(*this, "alpha8511")
- {}
-
- void init_sstingry();
- void sstingry(machine_config &config);
-
-private:
- u8 alpha8511_command_r(offs_t offset);
- void alpha8511_command_w(offs_t offset, u8 data);
- TIMER_CALLBACK_MEMBER(alpha8511_sync);
- u8 alpha8511_bus_r();
- void alpha8511_bus_w(u8 data);
- u8 alpha8511_address_r();
- u8 alpha8511_rw_r();
- void alpha8511_control_w(u8 data);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-
- required_device<mcs48_cpu_device> m_alpha8511;
- u8 m_alpha8511_address;
- u8 m_alpha8511_control;
- bool m_alpha8511_read_mode;
- emu_timer *m_alpha8511_sync_timer;
-};
-
-class kyros_state : public alpha68k_N_state
-{
-public:
- kyros_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_N_state(mconfig, type, tag)
- {}
-
- void kyros(machine_config &config);
- void init_kyros();
-};
-
-class jongbou_state : public alpha68k_N_state
-{
-public:
- jongbou_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_N_state(mconfig, type, tag)
- {}
-
- void jongbou(machine_config &config);
- void init_jongbou();
-
-private:
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_iomap(address_map &map);
- u16 dial_inputs_r();
-};
-
-/*
- *
- * Alpha68k I games
- *
- */
-class alpha68k_I_state : public alpha68k_prom_state
-{
-public:
- alpha68k_I_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_prom_state(mconfig, type, tag)
- {}
-
-
-protected:
- void base_config(machine_config &config);
- void video_config(machine_config &config, int yshift);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int c, int d);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- int m_yshift;
-};
-
-class paddlemania_state : public alpha68k_I_state
-{
-public:
- paddlemania_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_I_state(mconfig, type, tag)
- {}
-
- void paddlema(machine_config &config);
- void init_paddlema();
-
-private:
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-class thenextspace_state : public alpha68k_I_state
-{
-public:
- thenextspace_state(const machine_config &mconfig, device_type type, const char *tag)
- : alpha68k_I_state(mconfig, type, tag)
- {}
-
- void tnextspc(machine_config &config);
- void init_tnextspc();
-
-private:
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_iomap(address_map &map);
-
- void tnextspc_coin_counters_w(offs_t offset, u16 data);
- void tnextspc_unknown_w(offs_t offset, u16 data);
- void tnextspc_soundlatch_w(u8 data);
- u16 sound_cpu_r();
-};
-
-/* game_id - used to deal with a few game specific situations */
-enum
-{
- ALPHA68K_BTLFIELDB = 1, // used in alpha_II_trigger_r
- ALPHA68K_JONGBOU, // used in kyros_alpha_trigger_r & kyros_draw_sprites
- ALPHA68K_KYROS // used in kyros_draw_sprites
-};
-
-#define ALPHA68K_PLAYER_INPUT_LSB( player, button3, start, active ) \
- PORT_BIT( 0x0001, active, IPT_JOYSTICK_UP ) PORT_PLAYER(player) \
- PORT_BIT( 0x0002, active, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) \
- PORT_BIT( 0x0004, active, IPT_JOYSTICK_LEFT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0008, active, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0010, active, IPT_BUTTON1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x0020, active, IPT_BUTTON2 ) PORT_PLAYER(player) \
- PORT_BIT( 0x0040, active, button3 ) PORT_PLAYER(player) \
- PORT_BIT( 0x0080, active, start )
-
-#define ALPHA68K_PLAYER_INPUT_MSB( player, button3, start, active ) \
- PORT_BIT( 0x0100, active, IPT_JOYSTICK_UP ) PORT_PLAYER(player) \
- PORT_BIT( 0x0200, active, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) \
- PORT_BIT( 0x0400, active, IPT_JOYSTICK_LEFT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0800, active, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(player) \
- PORT_BIT( 0x1000, active, IPT_BUTTON1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x2000, active, IPT_BUTTON2 ) PORT_PLAYER(player) \
- PORT_BIT( 0x4000, active, button3 ) PORT_PLAYER(player) \
- PORT_BIT( 0x8000, active, start )
-
-#define ALPHA68K_MCU \
- PORT_START("IN2") /* Coin input to microcontroller */\
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )\
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
-
-#endif // MAME_INCLUDES_ALPHA68K_H
diff --git a/src/mame/includes/amiga.h b/src/mame/includes/amiga.h
deleted file mode 100644
index 1b5f389d04a..00000000000
--- a/src/mame/includes/amiga.h
+++ /dev/null
@@ -1,720 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi, Mariusz Wojcieszek
-/***************************************************************************
-Amiga Computer / Arcadia Game System
-
-Driver by:
-
-Ernesto Corvi & Mariusz Wojcieszek
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_AMIGA_H
-#define MAME_INCLUDES_AMIGA_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "machine/bankdev.h"
-#include "bus/rs232/rs232.h"
-#include "bus/centronics/ctronics.h"
-#include "machine/mos6526.h"
-#include "machine/amigafdc.h"
-#include "machine/msm6242.h"
-#include "machine/akiko.h"
-#include "machine/i2cmem.h"
-#include "machine/8364_paula.h"
-#include "video/amigaaga.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-/*
- A = Angus
- D = Denise
- P = Paula
-
- R = read-only
- ER = early read
- W = write-only
- S = strobe
-*/
-#define REG_BLTDDAT (0x000/2) /* ER A Blitter destination early read (dummy address) */
-#define REG_DMACONR (0x002/2) /* R A P DMA control (and blitter status) read */
-#define REG_VPOSR (0x004/2) /* R A Read vert most signif. bit (and frame flop) */
-#define REG_VHPOSR (0x006/2) /* R A Read vert and horiz. position of beam */
-#define REG_DSKDATR (0x008/2) /* ER P Disk data early read (dummy address) */
-#define REG_JOY0DAT (0x00A/2) /* R D Joystick-mouse 0 data (vert,horiz) */
-#define REG_JOY1DAT (0x00C/2) /* R D Joystick-mouse 1 data (vert,horiz) */
-#define REG_CLXDAT (0x00E/2) /* R D Collision data register (read and clear) */
-#define REG_ADKCONR (0x010/2) /* R P Audio, disk control register read */
-#define REG_POT0DAT (0x012/2) /* R P Pot counter pair 0 data (vert,horiz) */
-#define REG_POT1DAT (0x014/2) /* R P Pot counter pair 1 data (vert,horiz) */
-#define REG_POTGOR (0x016/2) /* R P Pot port data read (formerly POTINP) */
-#define REG_SERDATR (0x018/2) /* R P Serial port data and status read */
-#define REG_DSKBYTR (0x01A/2) /* R P Disk data byte and status read */
-#define REG_INTENAR (0x01C/2) /* R P Interrupt enable bits read */
-#define REG_INTREQR (0x01E/2) /* R P Interrupt request bits read */
-#define REG_DSKPTH (0x020/2) /* W A Disk pointer (high 3 bits) */
-#define REG_DSKPTL (0x022/2) /* W A Disk pointer (low 15 bits) */
-#define REG_DSKLEN (0x024/2) /* W P Disk length */
-#define REG_DSKDAT (0x026/2) /* W P Disk DMA data write */
-#define REG_REFPTR (0x028/2) /* W A Refresh pointer */
-#define REG_VPOSW (0x02A/2) /* W A Write vert most signif. bit (and frame flop) */
-#define REG_VHPOSW (0x02C/2) /* W A Write vert and horiz position of beam */
-#define REG_COPCON (0x02E/2) /* W A Coprocessor control register (CDANG) */
-#define REG_SERDAT (0x030/2) /* W P Serial port data and stop bits write */
-#define REG_SERPER (0x032/2) /* W P Serial port period and control */
-#define REG_POTGO (0x034/2) /* W P Pot port data write and start */
-#define REG_JOYTEST (0x036/2) /* W D Write to all 4 joystick-mouse counters at once */
-#define REG_STREQU (0x038/2) /* S D Strobe for horiz sync with VB and EQU */
-#define REG_STRVBL (0x03A/2) /* S D Strobe for horiz sync with VB (vert. blank) */
-#define REG_STRHOR (0x03C/2) /* S D P Strobe for horiz sync */
-#define REG_STRLONG (0x03E/2) /* S D Strobe for identification of long horiz. line. */
-#define REG_BLTCON0 (0x040/2) /* W A Blitter control register 0 */
-#define REG_BLTCON1 (0x042/2) /* W A Blitter control register 1 */
-#define REG_BLTAFWM (0x044/2) /* W A Blitter first word mask for source A */
-#define REG_BLTALWM (0x046/2) /* W A Blitter last word mask for source A */
-#define REG_BLTCPTH (0x048/2) /* W A Blitter pointer to source C (high 3 bits) */
-#define REG_BLTCPTL (0x04A/2) /* W A Blitter pointer to source C (low 15 bits) */
-#define REG_BLTBPTH (0x04C/2) /* W A Blitter pointer to source B (high 3 bits) */
-#define REG_BLTBPTL (0x04E/2) /* W A Blitter pointer to source B (low 15 bits) */
-#define REG_BLTAPTH (0x050/2) /* W A Blitter pointer to source A (high 3 bits) */
-#define REG_BLTAPTL (0x052/2) /* W A Blitter pointer to source A (low 15 bits) */
-#define REG_BLTDPTH (0x054/2) /* W A Blitter pointer to destination D (high 3 bits) */
-#define REG_BLTDPTL (0x056/2) /* W A Blitter pointer to destination D (low 15 bits) */
-#define REG_BLTSIZE (0x058/2) /* W A Blitter start and size (window width, height) */
-#define REG_BLTCON0L (0x05A/2) /* W A Blitter control 0, lower 8 bits (minterms) */
-#define REG_BLTSIZV (0x05C/2) /* W A Blitter V size (for 15 bit vertical size) (ECS) */
-#define REG_BLTSIZH (0x05E/2) /* W A Blitter H size and start (for 11 bit H size) (ECS) */
-#define REG_BLTCMOD (0x060/2) /* W A Blitter modulo for source C */
-#define REG_BLTBMOD (0x062/2) /* W A Blitter modulo for source B */
-#define REG_BLTAMOD (0x064/2) /* W A Blitter modulo for source A */
-#define REG_BLTDMOD (0x066/2) /* W A Blitter modulo for destination D */
-#define REG_BLTCDAT (0x070/2) /* W A Blitter source C data register */
-#define REG_BLTBDAT (0x072/2) /* W A Blitter source B data reglster */
-#define REG_BLTADAT (0x074/2) /* W A Blitter source A data register */
-#define REG_DENISEID (0x07C/2) /* R D Denise ID: OCS = 0xFF, ECS = 0xFC, AGA = 0xF8 */
-#define REG_DSKSYNC (0x07E/2) /* W P Disk sync pattern register for disk read */
-#define REG_COP1LCH (0x080/2) /* W A Coprocessor first location register (high 3 bits) */
-#define REG_COP1LCL (0x082/2) /* W A Coprocessor first location register (low 15 bits) */
-#define REG_COP2LCH (0x084/2) /* W A Coprocessor second location register (high 3 bits) */
-#define REG_COP2LCL (0x086/2) /* W A Coprocessor second location register (low 15 bits) */
-#define REG_COPJMP1 (0x088/2) /* S A Coprocessor restart at first location */
-#define REG_COPJMP2 (0x08A/2) /* S A Coprocessor restart at second location */
-#define REG_COPINS (0x08C/2) /* W A Coprocessor instruction fetch identify */
-#define REG_DIWSTRT (0x08E/2) /* W A Display window start (upper left vert-horiz position) */
-#define REG_DIWSTOP (0x090/2) /* W A Display window stop (lower right vert.-horiz. position) */
-#define REG_DDFSTRT (0x092/2) /* W A Display bit plane data fetch start (horiz. position) */
-#define REG_DDFSTOP (0x094/2) /* W A Display bit plane data fetch stop (horiz. position) */
-#define REG_DMACON (0x096/2) /* W A D P DMA control write (clear or set) */
-#define REG_CLXCON (0x098/2) /* W D Collision control */
-#define REG_INTENA (0x09A/2) /* W P Interrupt enable bits (clear or set bits) */
-#define REG_INTREQ (0x09C/2) /* W P Interrupt request bits (clear or set bits) */
-#define REG_ADKCON (0x09E/2) /* W P Audio, disk, UART control */
-#define REG_AUD0LCH (0x0A0/2) /* W A Audio channel 0 location (high 3 bits) */
-#define REG_AUD0LCL (0x0A2/2) /* W A Audio channel 0 location (low 15 bits) */
-#define REG_AUD0LEN (0x0A4/2) /* W P Audio channel 0 length */
-#define REG_AUD0PER (0x0A6/2) /* W P Audio channel 0 period */
-#define REG_AUD0VOL (0x0A8/2) /* W P Audio channel 0 volume */
-#define REG_AUD0DAT (0x0AA/2) /* W P Audio channel 0 data */
-#define REG_AUD1LCH (0x0B0/2) /* W A Audio channel 1 location (high 3 bits) */
-#define REG_AUD1LCL (0x0B2/2) /* W A Audio channel 1 location (low 15 bits) */
-#define REG_AUD1LEN (0x0B4/2) /* W P Audio channel 1 length */
-#define REG_AUD1PER (0x0B6/2) /* W P Audio channel 1 period */
-#define REG_AUD1VOL (0x0B8/2) /* W P Audio channel 1 volume */
-#define REG_AUD1DAT (0x0BA/2) /* W P Audio channel 1 data */
-#define REG_AUD2LCH (0x0C0/2) /* W A Audio channel 2 location (high 3 bits) */
-#define REG_AUD2LCL (0x0C2/2) /* W A Audio channel 2 location (low 15 bits) */
-#define REG_AUD2LEN (0x0C4/2) /* W P Audio channel 2 length */
-#define REG_AUD2PER (0x0C6/2) /* W P Audio channel 2 period */
-#define REG_AUD2VOL (0x0C8/2) /* W P Audio channel 2 volume */
-#define REG_AUD2DAT (0x0CA/2) /* W P Audio channel 2 data */
-#define REG_AUD3LCH (0x0D0/2) /* W A Audio channel 3 location (high 3 bits) */
-#define REG_AUD3LCL (0x0D2/2) /* W A Audio channel 3 location (low 15 bits) */
-#define REG_AUD3LEN (0x0D4/2) /* W P Audio channel 3 length */
-#define REG_AUD3PER (0x0D6/2) /* W P Audio channel 3 period */
-#define REG_AUD3VOL (0x0D8/2) /* W P Audio channel 3 volume */
-#define REG_AUD3DAT (0x0DA/2) /* W P Audio channel 3 data */
-#define REG_BPL1PTH (0x0E0/2) /* W A Bit plane 1 pointer (high 3 bits) */
-#define REG_BPL1PTL (0x0E2/2) /* W A Bit plane 1 pointer (low 15 bits) */
-#define REG_BPL2PTH (0x0E4/2) /* W A Bit plane 2 pointer (high 3 bits) */
-#define REG_BPL2PTL (0x0E6/2) /* W A Bit plane 2 pointer (low 15 bits) */
-#define REG_BPL3PTH (0x0E8/2) /* W A Bit plane 3 pointer (high 3 bits) */
-#define REG_BPL3PTL (0x0EA/2) /* W A Bit plane 3 pointer (low 15 bits) */
-#define REG_BPL4PTH (0x0EC/2) /* W A Bit plane 4 pointer (high 3 bits) */
-#define REG_BPL4PTL (0x0EE/2) /* W A Bit plane 4 pointer (low 15 bits) */
-#define REG_BPL5PTH (0x0F0/2) /* W A Bit plane 5 pointer (high 3 bits) */
-#define REG_BPL5PTL (0x0F2/2) /* W A Bit plane 5 pointer (low 15 bits) */
-#define REG_BPL6PTH (0x0F4/2) /* W A Bit plane 6 pointer (high 3 bits) */
-#define REG_BPL6PTL (0x0F6/2) /* W A Bit plane 6 pointer (low 15 bits) */
-#define REG_BPLCON0 (0x100/2) /* W A D Bit plane control register (misc. control bits) */
-#define REG_BPLCON1 (0x102/2) /* W D Bit plane control reg. (scroll value PF1, PF2) */
-#define REG_BPLCON2 (0x104/2) /* W D Bit plane control reg. (priority control) */
-#define REG_BPLCON3 (0x106/2) /* W D Bit plane control reg (enhanced features) */
-#define REG_BPL1MOD (0x108/2) /* W A Bit plane modulo (odd planes) */
-#define REG_BPL2MOD (0x10A/2) /* W A Bit Plane modulo (even planes) */
-#define REG_BPLCON4 (0x10C/2) /* W D Bit plane control reg. (display masks) */
-#define REG_BPL1DAT (0x110/2) /* W D Bit plane 1 data (parallel-to-serial convert) */
-#define REG_BPL2DAT (0x112/2) /* W D Bit plane 2 data (parallel-to-serial convert) */
-#define REG_BPL3DAT (0x114/2) /* W D Bit plane 3 data (parallel-to-serial convert) */
-#define REG_BPL4DAT (0x116/2) /* W D Bit plane 4 data (parallel-to-serial convert) */
-#define REG_BPL5DAT (0x118/2) /* W D Bit plane 5 data (parallel-to-serial convert) */
-#define REG_BPL6DAT (0x11A/2) /* W D Bit plane 6 data (parallel-to-serial convert) */
-#define REG_BPL7DAT (0x11C/2) /* W D Bit plane 7 data (parallel-to-serial convert) */
-#define REG_BPL8DAT (0x11E/2) /* W D Bit plane 8 data (parallel-to-serial convert) */
-#define REG_SPR0PTH (0x120/2) /* W A Sprite 0 pointer (high 3 bits) */
-#define REG_SPR0PTL (0x122/2) /* W A Sprite 0 pointer (low 15 bits) */
-#define REG_SPR1PTH (0x124/2) /* W A Sprite 1 pointer (high 3 bits) */
-#define REG_SPR1PTL (0x126/2) /* W A Sprite 1 pointer (low 15 bits) */
-#define REG_SPR2PTH (0x128/2) /* W A Sprite 2 pointer (high 3 bits) */
-#define REG_SPR2PTL (0x12A/2) /* W A Sprite 2 pointer (low 15 bits) */
-#define REG_SPR3PTH (0x12C/2) /* W A Sprite 3 pointer (high 3 bits) */
-#define REG_SPR3PTL (0x12E/2) /* W A Sprite 3 pointer (low 15 bits) */
-#define REG_SPR4PTH (0x130/2) /* W A Sprite 4 pointer (high 3 bits) */
-#define REG_SPR4PTL (0x132/2) /* W A Sprite 4 pointer (low 15 bits) */
-#define REG_SPR5PTH (0x134/2) /* W A Sprite 5 pointer (high 3 bits) */
-#define REG_SPR5PTL (0x136/2) /* W A Sprite 5 pointer (low 15 bits) */
-#define REG_SPR6PTH (0x138/2) /* W A Sprite 6 pointer (high 3 bits) */
-#define REG_SPR6PTL (0x13A/2) /* W A Sprite 6 pointer (low 15 bits) */
-#define REG_SPR7PTH (0x13C/2) /* W A Sprite 7 pointer (high 3 bits) */
-#define REG_SPR7PTL (0x13E/2) /* W A Sprite 7 pointer (low 15 bits) */
-#define REG_SPR0POS (0x140/2) /* W A D Sprite 0 vert-horiz start position data */
-#define REG_SPR0CTL (0x142/2) /* W A D Sprite 0 vert stop position and control data */
-#define REG_SPR0DATA (0x144/2) /* W D Sprite 0 image data register A */
-#define REG_SPR0DATB (0x146/2) /* W D Sprite 0 image data register B */
-#define REG_SPR1POS (0x148/2) /* W A D Sprite 1 vert-horiz start position data */
-#define REG_SPR1CTL (0x14A/2) /* W A D Sprite 1 vert stop position and control data */
-#define REG_SPR1DATA (0x14C/2) /* W D Sprite 1 image data register A */
-#define REG_SPR1DATB (0x14E/2) /* W D Sprite 1 image data register B */
-#define REG_SPR2POS (0x150/2) /* W A D Sprite 2 vert-horiz start position data */
-#define REG_SPR2CTL (0x152/2) /* W A D Sprite 2 vert stop position and control data */
-#define REG_SPR2DATA (0x154/2) /* W D Sprite 2 image data register A */
-#define REG_SPR2DATB (0x156/2) /* W D Sprite 2 image data register B */
-#define REG_SPR3POS (0x158/2) /* W A D Sprite 3 vert-horiz start position data */
-#define REG_SPR3CTL (0x15A/2) /* W A D Sprite 3 vert stop position and control data */
-#define REG_SPR3DATA (0x15C/2) /* W D Sprite 3 image data register A */
-#define REG_SPR3DATB (0x15E/2) /* W D Sprite 3 image data register B */
-#define REG_SPR4POS (0x160/2) /* W A D Sprite 4 vert-horiz start position data */
-#define REG_SPR4CTL (0x162/2) /* W A D Sprite 4 vert stop position and control data */
-#define REG_SPR4DATA (0x164/2) /* W D Sprite 4 image data register A */
-#define REG_SPR4DATB (0x166/2) /* W D Sprite 4 image data register B */
-#define REG_SPR5POS (0x168/2) /* W A D Sprite 5 vert-horiz start position data */
-#define REG_SPR5CTL (0x16A/2) /* W A D Sprite 5 vert stop position and control data */
-#define REG_SPR5DATA (0x16C/2) /* W D Sprite 5 image data register A */
-#define REG_SPR5DATB (0x16E/2) /* W D Sprite 5 image data register B */
-#define REG_SPR6POS (0x170/2) /* W A D Sprite 6 vert-horiz start position data */
-#define REG_SPR6CTL (0x172/2) /* W A D Sprite 6 vert stop position and control data */
-#define REG_SPR6DATA (0x174/2) /* W D Sprite 6 image data register A */
-#define REG_SPR6DATB (0x176/2) /* W D Sprite 6 image data register B */
-#define REG_SPR7POS (0x178/2) /* W A D Sprite 7 vert-horiz start position data */
-#define REG_SPR7CTL (0x17A/2) /* W A D Sprite 7 vert stop position and control data */
-#define REG_SPR7DATA (0x17C/2) /* W D Sprite 7 image data register A */
-#define REG_SPR7DATB (0x17E/2) /* W D Sprite 7 image data register B */
-#define REG_COLOR00 (0x180/2) /* W D Color table 00 */
-#define REG_COLOR01 (0x182/2) /* W D Color table 01 */
-#define REG_COLOR02 (0x184/2) /* W D Color table 02 */
-#define REG_COLOR03 (0x186/2) /* W D Color table 03 */
-#define REG_COLOR04 (0x188/2) /* W D Color table 04 */
-#define REG_COLOR05 (0x18A/2) /* W D Color table 05 */
-#define REG_COLOR06 (0x18C/2) /* W D Color table 06 */
-#define REG_COLOR07 (0x18E/2) /* W D Color table 07 */
-#define REG_COLOR08 (0x190/2) /* W D Color table 08 */
-#define REG_COLOR09 (0x192/2) /* W D Color table 09 */
-#define REG_COLOR10 (0x194/2) /* W D Color table 10 */
-#define REG_COLOR11 (0x196/2) /* W D Color table 11 */
-#define REG_COLOR12 (0x198/2) /* W D Color table 12 */
-#define REG_COLOR13 (0x19A/2) /* W D Color table 13 */
-#define REG_COLOR14 (0x19C/2) /* W D Color table 14 */
-#define REG_COLOR15 (0x19E/2) /* W D Color table 15 */
-#define REG_COLOR16 (0x1A0/2) /* W D Color table 16 */
-#define REG_COLOR17 (0x1A2/2) /* W D Color table 17 */
-#define REG_COLOR18 (0x1A4/2) /* W D Color table 18 */
-#define REG_COLOR19 (0x1A6/2) /* W D Color table 19 */
-#define REG_COLOR20 (0x1A8/2) /* W D Color table 20 */
-#define REG_COLOR21 (0x1AA/2) /* W D Color table 21 */
-#define REG_COLOR22 (0x1AC/2) /* W D Color table 22 */
-#define REG_COLOR23 (0x1AE/2) /* W D Color table 23 */
-#define REG_COLOR24 (0x1B0/2) /* W D Color table 24 */
-#define REG_COLOR25 (0x1B2/2) /* W D Color table 25 */
-#define REG_COLOR26 (0x1B4/2) /* W D Color table 26 */
-#define REG_COLOR27 (0x1B6/2) /* W D Color table 27 */
-#define REG_COLOR28 (0x1B8/2) /* W D Color table 28 */
-#define REG_COLOR29 (0x1BA/2) /* W D Color table 29 */
-#define REG_COLOR30 (0x1BC/2) /* W D Color table 30 */
-#define REG_COLOR31 (0x1BE/2) /* W D Color table 31 */
-#define REG_BEAMCON0 (0x1dc/2) // W A Programmable signal generator (ECS Agnus)
-#define REG_DIWHIGH (0x1E4/2) /* W A D Display window upper bits for start/stop */
-#define REG_FMODE (0x1FC/2) /* W A D Fetch mode */
-
-/* DMACON bit layout */
-#define DMACON_AUD0EN 0x0001
-#define DMACON_AUD1EN 0x0002
-#define DMACON_AUD2EN 0x0004
-#define DMACON_AUD3EN 0x0008
-#define DMACON_DSKEN 0x0010
-#define DMACON_SPREN 0x0020
-#define DMACON_BLTEN 0x0040
-#define DMACON_COPEN 0x0080
-#define DMACON_BPLEN 0x0100
-#define DMACON_DMAEN 0x0200
-#define DMACON_BLTPRI 0x0400
-#define DMACON_RSVED1 0x0800
-#define DMACON_RSVED2 0x1000
-#define DMACON_BZERO 0x2000
-#define DMACON_BBUSY 0x4000
-#define DMACON_SETCLR 0x8000
-
-/* BPLCON0 bit layout */
-#define BPLCON0_RSVED1 0x0001
-#define BPLCON0_ERSY 0x0002
-#define BPLCON0_LACE 0x0004
-#define BPLCON0_LPEN 0x0008
-#define BPLCON0_BPU3 0x0010
-#define BPLCON0_RSVED3 0x0020
-#define BPLCON0_RSVED4 0x0040
-#define BPLCON0_RSVED5 0x0080
-#define BPLCON0_GAUD 0x0100
-#define BPLCON0_COLOR 0x0200
-#define BPLCON0_DBLPF 0x0400
-#define BPLCON0_HOMOD 0x0800
-#define BPLCON0_BPU0 0x1000
-#define BPLCON0_BPU1 0x2000
-#define BPLCON0_BPU2 0x4000
-#define BPLCON0_HIRES 0x8000
-
-/* INTENA/INTREQ bit layout */
-#define INTENA_TBE 0x0001
-#define INTENA_DSKBLK 0x0002
-#define INTENA_SOFT 0x0004
-#define INTENA_PORTS 0x0008
-#define INTENA_COPER 0x0010
-#define INTENA_VERTB 0x0020
-#define INTENA_BLIT 0x0040
-#define INTENA_AUD0 0x0080
-#define INTENA_AUD1 0x0100
-#define INTENA_AUD2 0x0200
-#define INTENA_AUD3 0x0400
-#define INTENA_RBF 0x0800
-#define INTENA_DSKSYN 0x1000
-#define INTENA_EXTER 0x2000
-#define INTENA_INTEN 0x4000
-#define INTENA_SETCLR 0x8000
-
-#define MAX_PLANES 6 /* 0 to 6, inclusive ( but we count from 0 to 5 ) */
-
-
-class amiga_state : public driver_device
-{
-public:
- amiga_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_agnus_id(AGNUS_NTSC),
- m_denise_id(DENISE),
- m_maincpu(*this, "maincpu"),
- m_cia_0(*this, "cia_0"),
- m_cia_1(*this, "cia_1"),
- m_rs232(*this, "rs232"),
- m_centronics(*this, "centronics"),
- m_paula(*this, "amiga"),
- m_fdc(*this, "fdc"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_overlay(*this, "overlay"),
- m_input_device(*this, "input"),
- m_joy0dat_port(*this, "joy_0_dat"),
- m_joy1dat_port(*this, "joy_1_dat"),
- m_potgo_port(*this, "potgo"),
- m_pot0dat_port(*this, "POT0DAT"),
- m_pot1dat_port(*this, "POT1DAT"),
- m_joy_ports(*this, "p%u_joy", 1),
- m_p1_mouse_x(*this, "p1_mouse_x"),
- m_p1_mouse_y(*this, "p1_mouse_y"),
- m_p2_mouse_x(*this, "p2_mouse_x"),
- m_p2_mouse_y(*this, "p2_mouse_y"),
- m_hvpos(*this, "HVPOS"),
- m_power_led(*this, "power_led"),
- m_chip_ram_mask(0),
- m_cia_0_irq(0),
- m_cia_1_irq(0),
- m_pot0x(0), m_pot1x(0), m_pot0y(0), m_pot1y(0),
- m_pot0dat(0x0000),
- m_pot1dat(0x0000),
- m_centronics_busy(0),
- m_centronics_perror(0),
- m_centronics_select(0),
- m_gayle_reset(false),
- m_diw(),
- m_diwhigh_valid(false),
- m_previous_lof(true),
- m_rx_shift(0),
- m_tx_shift(0),
- m_rx_state(0),
- m_tx_state(0),
- m_rx_previous(1)
- {
- std::fill(std::begin(m_custom_regs), std::end(m_custom_regs), 0);
- }
-
- /* chip RAM access */
- uint16_t read_chip_ram(offs_t byteoffs)
- {
- return EXPECTED(byteoffs < m_chip_ram.bytes()) ? m_chip_ram.read(byteoffs >> 1) : 0xffff;
- }
-
- void write_chip_ram(offs_t byteoffs, uint16_t data)
- {
- if (EXPECTED(byteoffs < m_chip_ram.bytes()))
- m_chip_ram.write(byteoffs >> 1, data);
- }
-
- uint16_t chip_ram_r(offs_t offset, uint16_t mem_mask = ~0)
- {
- return read_chip_ram(offset & ~1) & mem_mask;
- }
-
- void chip_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0)
- {
- uint16_t val = read_chip_ram(offset & ~1) & ~mem_mask;
- write_chip_ram(offset & ~1, val | data);
- }
-
- /* sprite states */
- uint8_t m_sprite_comparitor_enable_mask;
- uint8_t m_sprite_dma_reload_mask;
- uint8_t m_sprite_dma_live_mask;
- uint8_t m_sprite_ctl_written;
- uint32_t m_sprite_shiftreg[8];
- uint8_t m_sprite_remain[8];
-
- /* copper states */
- uint32_t m_copper_pc;
- uint8_t m_copper_waiting;
- uint8_t m_copper_waitblit;
- uint16_t m_copper_waitval;
- uint16_t m_copper_waitmask;
- uint16_t m_copper_pending_offset;
- uint16_t m_copper_pending_data;
- int m_wait_offset;
-
- /* playfield states */
- int m_last_scanline;
- rgb_t m_ham_color;
-
- /* misc states */
- uint16_t m_genlock_color;
-
- /* separate 6 in-order bitplanes into 2 x 3-bit bitplanes in two nibbles */
- uint8_t m_separate_bitplanes[2][64];
-
- /* aga */
- int m_aga_diwhigh_written;
- rgb_t m_aga_palette[256];
- uint64_t m_aga_bpldat[8];
- uint16_t m_aga_sprdata[8][4];
- uint16_t m_aga_sprdatb[8][4];
- int m_aga_sprite_fetched_words;
- int m_aga_sprite_dma_used_words[8];
-
- DECLARE_VIDEO_START( amiga );
- DECLARE_VIDEO_START( amiga_aga );
- void amiga_palette(palette_device &palette) const;
-
- uint32_t screen_update_amiga(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_amiga_aga(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void update_screenmode();
-
- TIMER_CALLBACK_MEMBER( scanline_callback );
- TIMER_CALLBACK_MEMBER (amiga_irq_proc );
- TIMER_CALLBACK_MEMBER( amiga_blitter_proc );
- void update_irqs();
-
- template <int P> DECLARE_CUSTOM_INPUT_MEMBER( amiga_joystick_convert );
- DECLARE_CUSTOM_INPUT_MEMBER( floppy_drive_status );
-
- DECLARE_WRITE_LINE_MEMBER( m68k_reset );
- DECLARE_WRITE_LINE_MEMBER( kbreset_w );
-
- uint16_t cia_r(offs_t offset, uint16_t mem_mask = ~0);
- void cia_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gayle_cia_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cia_0_port_a_write(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( cia_0_irq );
- uint8_t cia_1_port_a_read();
- void cia_1_port_a_write(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( cia_1_irq );
-
- DECLARE_WRITE_LINE_MEMBER( rs232_rx_w );
- DECLARE_WRITE_LINE_MEMBER( rs232_dcd_w );
- DECLARE_WRITE_LINE_MEMBER( rs232_dsr_w );
- DECLARE_WRITE_LINE_MEMBER( rs232_ri_w );
- DECLARE_WRITE_LINE_MEMBER( rs232_cts_w );
-
- DECLARE_WRITE_LINE_MEMBER( centronics_ack_w );
- DECLARE_WRITE_LINE_MEMBER( centronics_busy_w );
- DECLARE_WRITE_LINE_MEMBER( centronics_perror_w );
- DECLARE_WRITE_LINE_MEMBER( centronics_select_w );
-
- uint16_t custom_chip_r(offs_t offset);
- void custom_chip_w(offs_t offset, uint16_t data);
-
- DECLARE_WRITE_LINE_MEMBER( paula_int_w );
-
- uint16_t rom_mirror_r(offs_t offset, uint16_t mem_mask = ~0);
- uint32_t rom_mirror32_r(offs_t offset, uint32_t mem_mask = ~0);
-
- DECLARE_WRITE_LINE_MEMBER(fdc_dskblk_w);
- DECLARE_WRITE_LINE_MEMBER(fdc_dsksyn_w);
-
- // standard clocks
- static constexpr XTAL CLK_28M_PAL = XTAL(28'375'160);
- static constexpr XTAL CLK_7M_PAL = CLK_28M_PAL / 4;
- static constexpr XTAL CLK_C1_PAL = CLK_28M_PAL / 8;
- static constexpr XTAL CLK_E_PAL = CLK_7M_PAL / 10;
-
- static constexpr XTAL CLK_28M_NTSC = XTAL(28'636'363);
- static constexpr XTAL CLK_7M_NTSC = CLK_28M_NTSC / 4;
- static constexpr XTAL CLK_C1_NTSC = CLK_28M_NTSC / 8;
- static constexpr XTAL CLK_E_NTSC = CLK_7M_NTSC / 10;
-
- // screen layout
- enum
- {
- SCREEN_WIDTH = 910,
- SCREEN_HEIGHT_PAL = 625,
- SCREEN_HEIGHT_NTSC = 525,
- VBLANK_PAL = 58, // 52
- VBLANK_NTSC = 42,
- HBLANK = 186
- };
-
- emu_timer *m_blitter_timer;
-
- uint16_t m_agnus_id;
- uint16_t m_denise_id;
-
- void blitter_setup();
-
- void amiga_base(machine_config &config);
- void pal_video(machine_config &config);
- void ntsc_video(machine_config &config);
- void overlay_1mb_map(address_map &map);
- void overlay_1mb_map32(address_map &map);
- void overlay_2mb_map16(address_map &map);
- void overlay_2mb_map32(address_map &map);
- void overlay_512kb_map(address_map &map);
-protected:
- // A bit of a trick here: some registers are 32-bit. In order to efficiently
- // read them on both big-endian and little-endian systems, we store the custom
- // registers in 32-bit natural order. This means we need to XOR the register
- // address with 1 on little-endian systems.
- uint16_t &CUSTOM_REG(offs_t x) { return m_custom_regs[BYTE_XOR_BE(x)]; }
- int16_t &CUSTOM_REG_SIGNED(offs_t x) { return (int16_t &)CUSTOM_REG(x); }
- uint32_t &CUSTOM_REG_LONG(offs_t x) { return *(uint32_t *)&m_custom_regs[x]; }
-
- // agnus/alice chip id
- enum
- {
- AGNUS_PAL = 0x00,
- AGNUS_NTSC = 0x10,
- AGNUS_HR_PAL = 0x20,
- AGNUS_HR_PAL_NEW = 0x21,
- AGNUS_HR_NTSC = 0x30,
- AGNUS_HR_NTSC_NEW = 0x31,
- ALICE_PAL = 0x22,
- ALICE_PAL_NEW = 0x23,
- ALICE_NTSC = 0x32,
- ALICE_NTSC_NEW = 0x33
- };
-
- // denise/lisa chip id
- enum
- {
- DENISE = 0xffff, // actually this register doesn't exist on ocs
- DENISE_HR = 0x00fc,
- LISA = 0x00f8
- };
-
- // chipset
- bool IS_OCS() const { return m_denise_id == 0xff; }
- bool IS_ECS() const { return m_denise_id == 0xfc; }
- bool IS_AGA() const { return m_denise_id == 0xf8; }
-
- // driver_device overrides
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- // device_t overrides
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- void custom_chip_reset();
-
- // interrupts
- void set_interrupt(int interrupt);
- virtual bool int2_pending();
- virtual bool int6_pending();
- void update_int2();
- void update_int6();
-
- virtual void vblank();
-
- virtual void potgo_w(uint16_t data) {};
-
- // joystick/mouse
- virtual uint16_t joy0dat_r();
- virtual uint16_t joy1dat_r();
-
- // serial
- virtual void rs232_tx(int state);
-
- // devices
- required_device<m68000_base_device> m_maincpu;
- required_device<mos8520_device> m_cia_0;
- required_device<mos8520_device> m_cia_1;
- optional_device<rs232_port_device> m_rs232;
- optional_device<centronics_device> m_centronics;
- required_device<paula_8364_device> m_paula;
- optional_device<amiga_fdc_device> m_fdc;
- required_device<screen_device> m_screen;
- optional_device<palette_device> m_palette;
- required_device<address_map_bank_device> m_overlay;
-
-
- // i/o ports
- optional_ioport m_input_device;
- optional_ioport m_joy0dat_port;
- optional_ioport m_joy1dat_port;
- optional_ioport m_potgo_port;
- optional_ioport m_pot0dat_port;
- optional_ioport m_pot1dat_port;
- optional_ioport_array<2> m_joy_ports;
- optional_ioport m_p1_mouse_x;
- optional_ioport m_p1_mouse_y;
- optional_ioport m_p2_mouse_x;
- optional_ioport m_p2_mouse_y;
- optional_ioport m_hvpos;
-
- output_finder<> m_power_led;
- memory_array m_chip_ram;
- uint32_t m_chip_ram_mask;
-
- int m_cia_0_irq;
- int m_cia_1_irq;
-
- uint16_t m_custom_regs[256];
- static const char *const s_custom_reg_names[0x100];
-
-private:
- // blitter helpers
- uint32_t blit_ascending();
- uint32_t blit_descending();
- uint32_t blit_line();
-
- // video helpers
-protected:
- void set_genlock_color(uint16_t color);
-private:
- void copper_setpc(uint32_t pc);
- int copper_execute_next(int xpos);
- void sprite_dma_reset(int which);
- void sprite_enable_comparitor(int which, int enable);
- void fetch_sprite_data(int scanline, int sprite);
- void update_sprite_dma(int scanline);
- uint32_t interleave_sprite_data(uint16_t lobits, uint16_t hibits);
- int get_sprite_pixel(int x);
- uint8_t assemble_odd_bitplanes(int planes, int ebitoffs);
- uint8_t assemble_even_bitplanes(int planes, int ebitoffs);
- void fetch_bitplane_data(int plane);
- int update_ham(int newpix);
- void update_display_window();
- void render_scanline(bitmap_rgb32 &bitmap, int scanline);
-
- // AGA video helpers
- void aga_palette_write(int color_reg, uint16_t data);
- void aga_fetch_sprite_data(int scanline, int sprite);
- void aga_render_scanline(bitmap_rgb32 &bitmap, int scanline);
- void aga_update_sprite_dma(int scanline);
- int aga_get_sprite_pixel(int x);
- uint8_t aga_assemble_odd_bitplanes(int planes, int obitoffs);
- uint8_t aga_assemble_even_bitplanes(int planes, int ebitoffs);
- void aga_fetch_bitplane_data(int plane);
- rgb_t aga_update_ham(int newpix);
-
- enum
- {
- TIMER_SCANLINE,
- TIMER_AMIGA_IRQ,
- TIMER_AMIGA_BLITTER,
- TIMER_SERIAL
- };
-
- enum
- {
- VPOSR_LOF = 0x8000 // long frame
- };
-
- enum
- {
- ADKCON_UARTBRK = 0x800 // send break
- };
-
- // serial port flags
- enum
- {
- SERDATR_RXD = 0x0800, // serial data
- SERDATR_TSRE = 0x1000, // transmit ready
- SERDATR_TBE = 0x2000, // transmit buffer empty
- SERDATR_RBF = 0x4000, // receive buffer full
- SERDATR_OVRUN = 0x8000 // receive buffer overrun
- };
-
- enum
- {
- SERPER_LONG = 0x8000 // 9-bit mode
- };
-
- static const uint16_t s_expand_byte[256];
-
- // pot counters
- int m_pot0x, m_pot1x, m_pot0y, m_pot1y;
-
- uint16_t m_pot0dat;
- uint16_t m_pot1dat;
-
- int m_centronics_busy;
- int m_centronics_perror;
- int m_centronics_select;
-
- emu_timer *m_irq_timer;
- emu_timer *m_serial_timer;
- emu_timer *m_scanline_timer;
-
- bool m_gayle_reset;
-
- // display window
- rectangle m_diw;
- bool m_diwhigh_valid;
-
- bool m_previous_lof;
- bitmap_rgb32 m_flickerfixer;
-
- uint16_t m_rx_shift;
- uint16_t m_tx_shift;
-
- int m_rx_state;
- int m_tx_state;
- int m_rx_previous;
-
- int m_rs232_dcd;
- int m_rs232_dsr;
- int m_rs232_ri;
- int m_rs232_cts;
-
- void serial_adjust();
- void serial_shift();
- void rx_write(int level);
-
- uint32_t amiga_gethvpos();
-};
-
-#endif // MAME_INCLUDES_AMIGA_H
diff --git a/src/mame/includes/ampoker2.h b/src/mame/includes/ampoker2.h
deleted file mode 100644
index 66d1d7bbd62..00000000000
--- a/src/mame/includes/ampoker2.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Roberto Fresca, Grull Osgo
-#ifndef MAME_INCLUDES_AMPOKER2_H
-#define MAME_INCLUDES_AMPOKER2_H
-
-#pragma once
-
-#include "machine/watchdog.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class ampoker2_state : public driver_device
-{
-public:
- ampoker2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_gfxdecode(*this, "gfxdecode"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void sigma2k(machine_config &config);
- void ampoker2(machine_config &config);
-
- void init_rabbitpk();
-
-protected:
- virtual void video_start() override;
- virtual void machine_start() override;
-
-private:
- void port30_w(uint8_t data);
- void port31_w(uint8_t data);
- void port32_w(uint8_t data);
- void port33_w(uint8_t data);
- void port34_w(uint8_t data);
- void port35_w(uint8_t data);
- void port36_w(uint8_t data);
- void watchdog_reset_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(s2k_get_bg_tile_info);
- void ampoker2_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(sigma2k);
-
- void io_map(address_map &map);
- void program_map(address_map &map);
-
- required_shared_ptr<uint8_t> m_videoram;
- tilemap_t *m_bg_tilemap;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- output_finder<10> m_lamps;
-};
-
-#endif // MAME_INCLUDES_AMPOKER2_H
diff --git a/src/mame/includes/amspdwy.h b/src/mame/includes/amspdwy.h
deleted file mode 100644
index 50346d8da64..00000000000
--- a/src/mame/includes/amspdwy.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/*************************************************************************
-
- American Speedway
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_AMSPDWY_H
-#define MAME_INCLUDES_AMSPDWY_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/ym2151.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class amspdwy_state : public driver_device
-{
-public:
- amspdwy_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_ym2151(*this, "ymsnd"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void amspdwy(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<ym2151_device> m_ym2151;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_flipscreen;
-
- /* misc */
- uint8_t m_wheel_old[2];
- uint8_t m_wheel_return[2];
-
- uint8_t amspdwy_wheel_0_r();
- uint8_t amspdwy_wheel_1_r();
- void amspdwy_flipscreen_w(uint8_t data);
- void amspdwy_videoram_w(offs_t offset, uint8_t data);
- void amspdwy_colorram_w(offs_t offset, uint8_t data);
- uint8_t amspdwy_sound_r();
- TILE_GET_INFO_MEMBER(get_tile_info);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_cols_back);
-
- uint32_t screen_update_amspdwy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint8_t amspdwy_wheel_r(int index);
-
- void amspdwy_map(address_map &map);
- void amspdwy_portmap(address_map &map);
- void amspdwy_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_AMSPDWY_H
diff --git a/src/mame/includes/amstrad.h b/src/mame/includes/amstrad.h
deleted file mode 100644
index 8e01700a185..00000000000
--- a/src/mame/includes/amstrad.h
+++ /dev/null
@@ -1,323 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker, Barry Rodewald
-/*****************************************************************************
- *
- * includes/amstrad.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_AMSTRAD_H
-#define MAME_INCLUDES_AMSTRAD_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "sound/ay8910.h"
-#include "machine/upd765.h"
-#include "video/mc6845.h"
-#include "machine/i8255.h"
-#include "machine/mc146818.h"
-#include "imagedev/floppy.h"
-#include "imagedev/snapquik.h"
-#include "bus/cpc/cpcexp.h"
-#include "bus/cpc/ddi1.h"
-#include "bus/cpc/cpc_ssa1.h"
-#include "bus/cpc/cpc_rom.h"
-#include "bus/cpc/mface2.h"
-#include "bus/cpc/cpc_pds.h"
-#include "bus/cpc/cpc_rs232.h"
-#include "bus/cpc/symbfac2.h"
-#include "bus/cpc/amdrum.h"
-#include "bus/cpc/playcity.h"
-#include "bus/cpc/smartwatch.h"
-#include "bus/cpc/brunword4.h"
-#include "bus/cpc/hd20.h"
-#include "bus/cpc/magicsound.h"
-#include "bus/cpc/doubler.h"
-#include "bus/cpc/transtape.h"
-#include "bus/cpc/musicmachine.h"
-#include "machine/ram.h"
-#include "imagedev/cassette.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/centronics/comxpl80.h"
-#include "bus/centronics/epson_ex800.h"
-#include "bus/centronics/epson_lx800.h"
-#include "bus/centronics/epson_lx810l.h"
-#include "bus/centronics/printer.h"
-#include "bus/centronics/digiblst.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-class amstrad_state : public driver_device
-{
-public:
- amstrad_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_exp(*this, "exp"),
- m_maincpu(*this, "maincpu"),
- m_ay(*this, "ay"),
- m_fdc(*this, "upd765"),
- m_floppy(*this, "upd765:%u", 0U),
- m_crtc(*this, "mc6845"),
- m_ppi(*this, "ppi8255"),
- m_centronics(*this, "centronics"),
- m_cassette(*this, "cassette"),
- m_cart(*this, "cartslot"),
- m_ram(*this, RAM_TAG),
- m_rtc(*this, "rtc"),
- m_region_maincpu(*this, "maincpu"),
- m_region_user1(*this, "user1"),
- m_banks(*this, "bank%u", 1U),
- m_io_kbrow(*this, "kbrow.%u", 0U),
- m_io_analog(*this, "analog.%u", 0U),
- m_io_mouse(*this,"mouse_input%u", 1U),
- m_io_solder_links(*this, "solder_links"),
- m_io_green_display(*this, "green_display"),
- m_io_cheetah(*this, "cheetah"),
- m_io_ctrltype(*this,"controller_type"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void cpcplus_cartslot(machine_config &config);
- void amstrad_base(machine_config &config);
- void cpc664(machine_config &config);
- void cpcplus(machine_config &config);
- void gx4000(machine_config &config);
- void cpc6128(machine_config &config);
- void aleste(machine_config &config);
- void kccomp(machine_config &config);
- void cpc464(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(cpc_monitor_changed);
-
- optional_device<cpc_expansion_slot_device> m_exp; // not on a GX4000; accessed by a static function in machine/amstrad.cpp
-
-protected:
- enum
- {
- TIMER_PC2_LOW,
- TIMER_VIDEO_UPDATE,
- TIMER_SET_RESOLUTION
- };
-
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- required_device<z80_device> m_maincpu;
- required_device<ay8910_device> m_ay;
- optional_device<upd765_family_device> m_fdc; // not on a GX4000
- optional_device_array<floppy_connector, 2> m_floppy;
- required_device<mc6845_device> m_crtc;
- required_device<i8255_device> m_ppi;
- optional_device<centronics_device> m_centronics; // not on a GX4000
- optional_device<cassette_image_device> m_cassette; // not on a GX4000, (or technically, the 6128+)
- optional_device<generic_slot_device> m_cart; // only on 664+, 6128+ and GX4000
- required_device<ram_device> m_ram;
- optional_device<mc146818_device> m_rtc; // Aleste 520EX only
-
- int m_system_type;
- uint8_t m_aleste_mode;
- int m_plus_irq_cause;
-
-/****************************
- * Gate Array data (CPC) -
- ****************************/
- struct gate_array_t
- {
- std::unique_ptr<bitmap_ind16> bitmap; /* The bitmap we work on */
- uint8_t pen_selected; /* Pen selection */
- uint8_t mrer; /* Mode and ROM Enable Register */
- uint8_t upper_bank;
- uint8_t romdis; // ROMDIS signal from the expansion port
-
- /* input signals from CRTC */
- int vsync;
- int hsync;
- int de;
- int ma;
- int ra;
-
- /* used for timing */
- int hsync_after_vsync_counter;
- int hsync_counter; /* The gate array counts CRTC HSYNC pulses using an internal 6-bit counter. */
-
- /* used for drawing the screen */
- attotime last_draw_time;
- int y;
- uint16_t *draw_p; /* Position in the bitmap where we are currently drawing */
- uint16_t colour;
- uint16_t address;
- uint8_t *mode_lookup;
- uint8_t data;
- uint8_t ticks;
- uint8_t ticks_increment;
- uint16_t line_ticks;
- uint8_t colour_ticks;
- uint8_t max_colour_ticks;
- };
-
- gate_array_t m_gate_array;
-
-/****************************
- * ASIC data (CPC plus)
- ****************************/
- struct asic_t
- {
- uint8_t *ram; /* pointer to RAM used for the CPC+ ASIC memory-mapped registers */
- uint8_t enabled; /* Are CPC plus features enabled/unlocked */
- uint8_t pri; /* Programmable raster interrupt */
- uint8_t seqptr; /* Current position in the ASIC unlocking sequence */
- uint8_t rmr2; /* ROM mapping register 2 */
- uint16_t split_ma_base; /* Used to handle split screen support */
- uint16_t split_ma_started; /* Used to handle split screen support */
- uint16_t vpos; /* Current logical scanline */
- uint16_t h_start; /* Position where DE became active */
- uint16_t h_end; /* Position where DE became inactive */
- uint8_t addr_6845; /* We need these to store a shadow copy of R1 of the mc6845 */
- uint8_t horiz_disp;
- uint8_t hscroll;
- uint8_t de_start; /* flag to check if DE is been enabled this frame yet */
- bool hsync_first_tick; /* flag to check in first CRTC tick, used for knowing when to cover left side of screen to cover horizontal softscroll mess */
- uint8_t hsync_tick_count;
-
- /* DMA */
- uint8_t dma_status;
- uint8_t dma_clear; /* Set if DMA interrupts are to be cleared automatically */
- uint8_t dma_prescaler[3]; /* DMA channel prescaler */
- uint16_t dma_repeat[3]; /* Location of the DMA channel's last repeat */
- uint16_t dma_addr[3]; /* DMA channel address */
- uint16_t dma_loopcount[3]; /* Count loops taken on this channel */
- uint16_t dma_pause[3]; /* DMA pause count */
- };
-
- asic_t m_asic;
- int m_GateArray_RamConfiguration;
- unsigned char *m_AmstradCPC_RamBanks[4];
- unsigned char *m_Aleste_RamBanks[4];
- int m_aleste_active_page[4];
- unsigned char *m_Amstrad_ROM_Table[256];
- uint8_t m_ppi_port_inputs[3];
- uint8_t m_ppi_port_outputs[3];
- int m_aleste_rtc_function;
- int m_prev_reg;
- uint16_t m_GateArray_render_colours[17];
- uint8_t m_mode0_lookup[256];
- uint8_t m_mode1_lookup[256];
- uint8_t m_mode2_lookup[256];
- int m_prev_data;
- int m_printer_bit8_selected;
- unsigned char m_Psg_FunctionSelected;
- int m_previous_ppi_portc_w;
- uint8_t m_amx_mouse_data;
- void amstrad_plus_asic_4000_w(offs_t offset, uint8_t data);
- void amstrad_plus_asic_6000_w(offs_t offset, uint8_t data);
- uint8_t amstrad_plus_asic_4000_r(offs_t offset);
- uint8_t amstrad_plus_asic_6000_r(offs_t offset);
- void aleste_msx_mapper(offs_t offset, uint8_t data);
- uint8_t amstrad_cpc_io_r(offs_t offset);
- void amstrad_cpc_io_w(offs_t offset, uint8_t data);
- uint8_t amstrad_psg_porta_read();
- void amstrad_plus_seqcheck(int data);
- DECLARE_MACHINE_START(amstrad);
- DECLARE_MACHINE_RESET(amstrad);
- void amstrad_cpc_palette(palette_device &palette) const;
- void amstrad_cpc_green_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(plus);
- DECLARE_MACHINE_RESET(plus);
- void amstrad_plus_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(gx4000);
- DECLARE_MACHINE_RESET(gx4000);
- DECLARE_MACHINE_START(kccomp);
- DECLARE_MACHINE_RESET(kccomp);
- void kccomp_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(aleste);
- DECLARE_MACHINE_RESET(aleste);
- void aleste_palette(palette_device &palette) const;
- uint32_t screen_update_amstrad(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_amstrad);
- TIMER_CALLBACK_MEMBER(amstrad_pc2_low);
- TIMER_CALLBACK_MEMBER(amstrad_video_update_timer);
- TIMER_CALLBACK_MEMBER(cb_set_resolution);
- DECLARE_WRITE_LINE_MEMBER(amstrad_hsync_changed);
- DECLARE_WRITE_LINE_MEMBER(amstrad_plus_hsync_changed);
- DECLARE_WRITE_LINE_MEMBER(amstrad_vsync_changed);
- DECLARE_WRITE_LINE_MEMBER(amstrad_plus_vsync_changed);
- DECLARE_WRITE_LINE_MEMBER(amstrad_de_changed);
- DECLARE_WRITE_LINE_MEMBER(amstrad_plus_de_changed);
- uint8_t amstrad_ppi_porta_r();
- void amstrad_ppi_porta_w(uint8_t data);
- uint8_t amstrad_ppi_portb_r();
- void amstrad_ppi_portc_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER( cpc_romdis );
- void rom_select(uint8_t data);
-
- static void aleste_floppy_formats(format_registration &fr);
-
- IRQ_CALLBACK_MEMBER(amstrad_cpu_acknowledge_int);
-
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( amstrad_plus_cartridge );
-
- void amstrad_handle_snapshot(unsigned char *pSnapshot);
- void amstrad_rethinkMemory();
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
-
- void amstrad_io(address_map &map);
- void amstrad_mem(address_map &map);
-
- required_memory_region m_region_maincpu;
- optional_memory_region m_region_user1;
- required_memory_bank_array<16> m_banks;
- optional_ioport_array<11> m_io_kbrow;
- optional_ioport_array<4> m_io_analog;
- optional_ioport_array<3> m_io_mouse;
- required_ioport m_io_solder_links;
- required_ioport m_io_green_display;
- optional_ioport m_io_cheetah;
- optional_ioport m_io_ctrltype;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- memory_region *m_region_cart;
-
- void amstrad_init_lookups();
- void amstrad_vh_update_mode();
- void amstrad_plus_dma_parse(int channel);
- void amstrad_plus_handle_dma();
- void amstrad_vh_update_colour(int PenIndex, uint16_t hw_colour_index);
- void aleste_vh_update_colour(int PenIndex, uint16_t hw_colour_index);
- void amstrad_gate_array_get_video_data();
- void amstrad_update_video();
- void amstrad_plus_gate_array_get_video_data();
- void amstrad_plus_update_video();
- void amstrad_plus_update_video_sprites();
- void amstrad_setLowerRom();
- void amstrad_setUpperRom();
- void AmstradCPC_GA_SetRamConfiguration();
- void AmstradCPC_PALWrite(int data);
- void amstrad_GateArray_write(uint8_t dataToGateArray);
- void amstrad_reset_machine();
- void kccomp_reset_machine();
- void update_psg();
- void amstrad_common_init();
- void enumerate_roms();
- static uint8_t kccomp_get_colour_element(int colour_value);
-
- int m_centronics_busy;
- uint8_t m_last_write;
-};
-
-
-/*----------- defined in machine/amstrad.cpp -----------*/
-
-
-void cpc_exp_cards(device_slot_interface &device);
-void cpcplus_exp_cards(device_slot_interface &device);
-
-#endif // MAME_INCLUDES_AMSTRAD_H
diff --git a/src/mame/includes/angelkds.h b/src/mame/includes/angelkds.h
deleted file mode 100644
index 72787df8cd1..00000000000
--- a/src/mame/includes/angelkds.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-/*************************************************************************
-
- Angel Kids
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ANGELKDS_H
-#define MAME_INCLUDES_ANGELKDS_H
-
-#pragma once
-
-#include "tilemap.h"
-
-class angelkds_state : public driver_device
-{
-public:
- angelkds_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bgtopvideoram(*this, "bgtopvideoram"),
- m_bgbotvideoram(*this, "bgbotvideoram"),
- m_txvideoram(*this, "txvideoram"),
- m_spriteram(*this, "spriteram"),
- m_subcpu(*this, "sub"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_bgtopvideoram;
- required_shared_ptr<uint8_t> m_bgbotvideoram;
- required_shared_ptr<uint8_t> m_txvideoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bgbot_tilemap;
- tilemap_t *m_bgtop_tilemap;
- int m_txbank;
- int m_bgbotbank;
- int m_bgtopbank;
-
- uint8_t m_sound[4];
- uint8_t m_sound2[4];
- uint8_t m_layer_ctrl;
-
- /* devices */
- required_device<cpu_device> m_subcpu;
- uint8_t angeklds_ff_r() { return 0xff; };
- void angelkds_cpu_bank_write(uint8_t data);
- void angelkds_main_sound_w(offs_t offset, uint8_t data);
- uint8_t angelkds_main_sound_r(offs_t offset);
- void angelkds_sub_sound_w(offs_t offset, uint8_t data);
- uint8_t angelkds_sub_sound_r(offs_t offset);
- void angelkds_txvideoram_w(offs_t offset, uint8_t data);
- void angelkds_txbank_write(uint8_t data);
- void angelkds_bgtopvideoram_w(offs_t offset, uint8_t data);
- void angelkds_bgtopbank_write(uint8_t data);
- void angelkds_bgtopscroll_write(uint8_t data);
- void angelkds_bgbotvideoram_w(offs_t offset, uint8_t data);
- void angelkds_bgbotbank_write(uint8_t data);
- void angelkds_bgbotscroll_write(uint8_t data);
- void angelkds_layer_ctrl_write(uint8_t data);
- void init_angelkds();
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_bgtop_tile_info);
- TILE_GET_INFO_MEMBER(get_bgbot_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_angelkds(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int enable_n);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
- void angelkds(machine_config &config);
- void spcpostn(machine_config &config);
- void decrypted_opcodes_map(address_map &map);
- void main_map(address_map &map);
- void main_portmap(address_map &map);
- void sub_map(address_map &map);
- void sub_portmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ANGELKDS_H
diff --git a/src/mame/includes/apexc.h b/src/mame/includes/apexc.h
deleted file mode 100644
index e57c59f91f2..00000000000
--- a/src/mame/includes/apexc.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Raphael Nabet, Robbbert
-#ifndef MAME_INCLUDES_APEXC
-#define MAME_INCLUDES_APEXC
-
-#pragma once
-
-#include "cpu/apexc/apexc.h"
-#include "machine/apexc.h"
-#include "emupal.h"
-#include "screen.h"
-
-class apexc_state : public driver_device
-{
-public:
- apexc_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_chargen_region(*this, "chargen")
- , m_cylinder(*this, "cylinder")
- , m_tape_puncher(*this, "tape_puncher")
- , m_tape_reader(*this, "tape_reader")
- , m_panel_port(*this, "panel")
- , m_data_port(*this, "data")
- , m_input_timer(nullptr)
- { }
-
- void init_apexc();
-
- void apexc(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- void check_inputs();
-
-private:
- void apexc_palette(palette_device &palette) const;
- uint32_t screen_update_apexc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(apexc_interrupt);
- void tape_write(uint8_t data);
- void draw_led(bitmap_ind16 &bitmap, int x, int y, int state);
- void draw_char(bitmap_ind16 &bitmap, char character, int x, int y, int color);
- void draw_string(bitmap_ind16 &bitmap, const char *buf, int x, int y, int color);
- void teletyper_init();
- void teletyper_linefeed();
- void teletyper_putchar(int character);
-
- void mem(address_map &map);
-
- uint32_t m_panel_data_reg; /* value of a data register on the control panel which can
- be edited - the existence of this register is a personnal
- guess */
-
- std::unique_ptr<bitmap_ind16> m_bitmap;
-
- uint32_t m_old_edit_keys;
- int m_old_control_keys;
-
- int m_letters;
- int m_pos;
-
- required_device<apexc_cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_memory_region m_chargen_region;
- required_device<apexc_cylinder_image_device> m_cylinder;
- required_device<apexc_tape_puncher_image_device> m_tape_puncher;
- required_device<apexc_tape_reader_image_device> m_tape_reader;
- required_ioport m_panel_port;
- required_ioport m_data_port;
-
- emu_timer *m_input_timer;
-
- static const device_timer_id TIMER_POLL_INPUTS;
- static const rgb_t palette_table[4];
-};
-
-#endif // MAME_INCLUDES_APEXC
diff --git a/src/mame/includes/apollo.h b/src/mame/includes/apollo.h
deleted file mode 100644
index 47f9548b31f..00000000000
--- a/src/mame/includes/apollo.h
+++ /dev/null
@@ -1,721 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Hans Ostermeyer, R. Belmont
-/*
- * apollo.h - APOLLO DN3500/DN3000 driver includes
- *
- * Created on: May 12, 2010
- * Author: Hans Ostermeyer
- *
- */
-
-#ifndef MAME_INCLUDES_APOLLO_H
-#define MAME_INCLUDES_APOLLO_H
-
-#pragma once
-
-
-#include "machine/apollo_kbd.h"
-
-#include "cpu/m68000/m68000.h"
-
-#include "machine/6840ptm.h"
-#include "machine/am9517a.h"
-#include "machine/clock.h"
-#include "machine/mc146818.h"
-#include "machine/mc68681.h"
-#include "machine/pic8259.h"
-#include "machine/ram.h"
-#include "machine/terminal.h"
-
-#include "bus/isa/isa.h"
-#include "bus/isa/isa_cards.h"
-#include "bus/isa/3c505.h"
-#include "bus/isa/omti8621.h"
-
-#include "bus/rs232/rs232.h"
-
-#include "diserial.h"
-#include "screen.h"
-
-#ifndef VERBOSE
-#define VERBOSE 0
-#endif
-
-#define LOG(x) { logerror x; logerror ("\n"); apollo_check_log(); }
-#define LOG1(x) { if (VERBOSE > 0) LOG(x) }
-#define LOG2(x) { if (VERBOSE > 1) LOG(x) }
-#define CLOG(x) { machine().logerror ("%s - %s: ", apollo_cpu_context(machine()), tag()); machine().logerror x; machine().logerror ("\n"); apollo_check_log(); }
-#define CLOG1(x) { if (VERBOSE > 0) CLOG(x) }
-#define CLOG2(x) { if (VERBOSE > 1) CLOG(x) }
-#define DLOG(x) { device->logerror ("%s - %s: ", apollo_cpu_context(device->machine()), device->tag()); device->logerror x; device->logerror ("\n"); apollo_check_log(); }
-#define DLOG1(x) { if (VERBOSE > 0) DLOG(x) }
-#define DLOG2(x) { if (VERBOSE > 1) DLOG(x) }
-#define MLOG(x) { machine().logerror ("%s: ", apollo_cpu_context(machine())); machine().logerror x; machine().logerror ("\n"); apollo_check_log(); }
-#define MLOG1(x) { if (VERBOSE > 0) MLOG(x) }
-#define MLOG2(x) { if (VERBOSE > 1) MLOG(x) }
-#define SLOG(x) { machine().logerror ("%s: ", apollo_cpu_context(machine()));machine().logerror x; machine().logerror ("\n"); apollo_check_log(); }
-#define SLOG1(x) { if (VERBOSE > 0) SLOG(x) }
-#define SLOG2(x) { if (VERBOSE > 1) SLOG(x) }
-
-#define MAINCPU "maincpu"
-
-// Enabling this is >NOT< supported by MESSdev
-// Do *not* report any issues on Mametesters if this is enabled!
-// #define APOLLO_XXL
-
-/*----------- drivers/apollo.cpp -----------*/
-
-// return the current CPU context for log file entries
-std::string apollo_cpu_context(running_machine &machine);
-
-// enable/disable the FPU
-void apollo_set_cpu_has_fpu(m68000_base_device *device, int onoff);
-
-// check for excessive logging
-void apollo_check_log();
-
-// return 1 if node is DN3000 or DSP3000, 0 otherwise
-int apollo_is_dn3000(void);
-
-// return 1 if node is DN5500 or DSP5500, 0 otherwise
-int apollo_is_dn5500(void);
-
-// return 1 if node is DSP3000 or DSP3500, 0 otherwise
-int apollo_is_dsp3x00(void);
-
-// get the ram configuration byte
-uint8_t apollo_get_ram_config_byte(void);
-
-//apollo_get_node_id - get the node id
-uint32_t apollo_get_node_id(void);
-
-void apollo_set_cache_status_register(device_t *device,uint8_t mask, uint8_t data);
-
-/*----------- machine/apollo.cpp -----------*/
-
-#define APOLLO_CONF_TAG "conf"
-#define APOLLO_DMA1_TAG "dma8237_1"
-#define APOLLO_DMA2_TAG "dma8237_2"
-#define APOLLO_STDIO_TAG "stdio"
-#define APOLLO_PIC1_TAG "pic8259_master"
-#define APOLLO_PIC2_TAG "pic8259_slave"
-#define APOLLO_PTM_TAG "ptm"
-#define APOLLO_RTC_TAG "rtc"
-#define APOLLO_SIO_TAG "sio"
-#define APOLLO_SIO2_TAG "sio2"
-#define APOLLO_ETH_TAG "3c505"
-#define APOLLO_NI_TAG "node_id"
-#define APOLLO_ISA_TAG "isabus"
-#define APOLLO_SCREEN_TAG "apollo_screen"
-#define APOLLO_KBD_TAG "kbd"
-
-
-// forward declaration
-class apollo_sio;
-class apollo_ni;
-class apollo_graphics_15i;
-class apollo_kbd_device;
-
-class apollo_state : public driver_device
-{
-public:
- apollo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, MAINCPU),
- m_ram(*this, RAM_TAG),
- m_messram_ptr(*this, RAM_TAG),
- m_dma8237_1(*this, APOLLO_DMA1_TAG),
- m_dma8237_2(*this, APOLLO_DMA2_TAG),
- m_pic8259_master(*this, APOLLO_PIC1_TAG),
- m_pic8259_slave(*this, APOLLO_PIC2_TAG),
- m_ptm(*this, APOLLO_PTM_TAG),
- m_sio(*this, APOLLO_SIO_TAG),
- m_sio2(*this, APOLLO_SIO2_TAG),
- m_rtc(*this, APOLLO_RTC_TAG),
- m_node_id(*this, APOLLO_NI_TAG),
- m_isa(*this, APOLLO_ISA_TAG),
- m_graphics(*this, APOLLO_SCREEN_TAG),
- m_keyboard(*this, APOLLO_KBD_TAG),
- m_internal_leds(*this, "internal_led_%u", 1U),
- m_external_leds(*this, "external_led_%c", unsigned('a'))
- { }
-
- void dn3500(machine_config &config);
- void dn5500_19i(machine_config &config);
- void dn3000(machine_config &config);
- void dn3000_15i(machine_config &config);
- void dn3000_19i(machine_config &config);
- void dn3500_15i(machine_config &config);
- void dsp3000(machine_config &config);
- void dsp3500(machine_config &config);
- void dsp5500(machine_config &config);
- void dn5500(machine_config &config);
- void dn5500_15i(machine_config &config);
- void dn3500_19i(machine_config &config);
-
- void init_dsp3000();
- void init_dsp5500();
- void init_dn3500();
- void init_dn3000();
- void init_dsp3500();
- void init_dn5500();
- void init_apollo();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_device<m68000_base_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_shared_ptr<uint32_t> m_messram_ptr;
-
- required_device<am9517a_device> m_dma8237_1;
- required_device<am9517a_device> m_dma8237_2;
- required_device<pic8259_device> m_pic8259_master;
- required_device<pic8259_device> m_pic8259_slave;
- required_device<ptm6840_device> m_ptm;
- required_device<apollo_sio> m_sio;
- optional_device<apollo_sio> m_sio2;
- required_device<mc146818_device> m_rtc;
- required_device<apollo_ni> m_node_id;
- required_device<isa16_device> m_isa;
- optional_device<apollo_graphics_15i> m_graphics;
- optional_device<apollo_kbd_device> m_keyboard;
- output_finder<4> m_internal_leds;
- output_finder<4> m_external_leds;
-
- void apollo_csr_status_register_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t apollo_csr_status_register_r(offs_t offset, uint16_t mem_mask = ~0);
- void apollo_csr_control_register_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t apollo_csr_control_register_r(offs_t offset, uint16_t mem_mask = ~0);
- void apollo_dma_1_w(offs_t offset, uint8_t data);
- uint8_t apollo_dma_1_r(offs_t offset);
- void apollo_dma_2_w(offs_t offset, uint8_t data);
- uint8_t apollo_dma_2_r(offs_t offset);
- void apollo_dma_page_register_w(offs_t offset, uint8_t data);
- uint8_t apollo_dma_page_register_r(offs_t offset);
- void apollo_address_translation_map_w(offs_t offset, uint16_t data);
- uint16_t apollo_address_translation_map_r(offs_t offset);
- uint8_t apollo_dma_read_byte(offs_t offset);
- void apollo_dma_write_byte(offs_t offset, uint8_t data);
- uint8_t apollo_dma_read_word(offs_t offset);
- void apollo_dma_write_word(offs_t offset, uint8_t data);
- void apollo_rtc_w(offs_t offset, uint8_t data);
- uint8_t apollo_rtc_r(offs_t offset);
- void cache_control_register_w(offs_t offset, uint8_t data);
- uint8_t cache_status_register_r(offs_t offset);
- void task_alias_register_w(offs_t offset, uint8_t data);
- uint8_t task_alias_register_r(offs_t offset);
- void latch_page_on_parity_error_register_w(offs_t offset, uint16_t data);
- uint16_t latch_page_on_parity_error_register_r(offs_t offset);
- void master_req_register_w(offs_t offset, uint8_t data);
- uint8_t master_req_register_r(offs_t offset);
- void selective_clear_locations_w(offs_t offset, uint16_t data);
- uint16_t selective_clear_locations_r(offs_t offset);
- uint32_t ram_with_parity_r(offs_t offset, uint32_t mem_mask = ~0);
- void ram_with_parity_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t apollo_unmapped_r(offs_t offset, uint32_t mem_mask = ~0);
- void apollo_unmapped_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void apollo_rom_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint16_t apollo_atbus_io_r(offs_t offset, uint16_t mem_mask = ~0);
- void apollo_atbus_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t apollo_atbus_memory_r(offs_t offset, uint16_t mem_mask = ~0);
- void apollo_atbus_memory_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t apollo_atbus_unmap_io_r(offs_t offset, uint16_t mem_mask = ~0);
- void apollo_atbus_unmap_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t apollo_atbus_unmap_r(offs_t offset, uint8_t mem_mask = ~0);
- void apollo_atbus_unmap_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- void dn5500_memory_present_register_w(offs_t offset, uint8_t data);
- uint8_t dn5500_memory_present_register_r(offs_t offset);
- void dn5500_11500_w(offs_t offset, uint8_t data);
- uint8_t dn5500_11500_r(offs_t offset);
- void dn5500_io_protection_map_w(offs_t offset, uint8_t data);
- uint8_t dn5500_io_protection_map_r(offs_t offset);
-
- DECLARE_MACHINE_RESET(apollo);
- DECLARE_MACHINE_START(apollo);
-
- void cpu_space_map(address_map &map);
- u16 apollo_irq_acknowledge(offs_t offset);
- u16 apollo_pic_get_vector();
- void apollo_bus_error();
- DECLARE_READ_LINE_MEMBER( apollo_kbd_is_german );
- DECLARE_WRITE_LINE_MEMBER( apollo_dma8237_out_eop );
- DECLARE_WRITE_LINE_MEMBER( apollo_dma_1_hrq_changed );
- DECLARE_WRITE_LINE_MEMBER( apollo_dma_2_hrq_changed );
- DECLARE_WRITE_LINE_MEMBER( apollo_pic8259_master_set_int_line );
- DECLARE_WRITE_LINE_MEMBER( apollo_pic8259_slave_set_int_line );
- DECLARE_WRITE_LINE_MEMBER( sio_irq_handler );
- void sio_output(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( sio2_irq_handler );
- DECLARE_WRITE_LINE_MEMBER( apollo_ptm_irq_function );
- DECLARE_WRITE_LINE_MEMBER( apollo_ptm_timer_tick );
- uint8_t apollo_pic8259_get_slave_ack(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER( apollo_rtc_irq_function );
-
- uint8_t pc_dma8237_0_dack_r();
- uint8_t pc_dma8237_1_dack_r();
- uint8_t pc_dma8237_2_dack_r();
- uint8_t pc_dma8237_3_dack_r();
- uint8_t pc_dma8237_5_dack_r();
- uint8_t pc_dma8237_6_dack_r();
- uint8_t pc_dma8237_7_dack_r();
- void pc_dma8237_0_dack_w(uint8_t data);
- void pc_dma8237_1_dack_w(uint8_t data);
- void pc_dma8237_2_dack_w(uint8_t data);
- void pc_dma8237_3_dack_w(uint8_t data);
- void pc_dma8237_5_dack_w(uint8_t data);
- void pc_dma8237_6_dack_w(uint8_t data);
- void pc_dma8237_7_dack_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pc_dack0_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack1_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack2_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack3_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack4_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack5_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack6_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack7_w);
-
- void apollo_pic_set_irq_line(int irq, int state);
- void select_dma_channel(int channel, bool state);
-
- DECLARE_WRITE_LINE_MEMBER(apollo_reset_instr_callback);
-
- void common(machine_config &config);
- void apollo(machine_config &config);
- void apollo_terminal(machine_config &config);
-
- void dn3000_map(address_map &map);
- void dn3500_map(address_map &map);
- void dn5500_map(address_map &map);
- void dsp3000_map(address_map &map);
- void dsp3500_map(address_map &map);
- void dsp5500_map(address_map &map);
-
- uint32_t ptm_counter;
- uint8_t sio_output_data;
- int m_dma_channel;
- bool m_cur_eop;
-};
-
-/*----------- machine/apollo_config.cpp -----------*/
-
-// configuration bit definitions
-
-#define APOLLO_CONF_SERVICE_MODE 0x0001
-#define APOLLO_CONF_DISPLAY 0x001e
-#define APOLLO_CONF_8_PLANES 0x0002
-#define APOLLO_CONF_4_PLANES 0x0004
-#define APOLLO_CONF_MONO_15I 0x0008
-#define APOLLO_CONF_MONO_19I 0x0010
-#define APOLLO_CONF_GERMAN_KBD 0x0020
-#define APOLLO_CONF_30_YEARS_AGO 0x0040
-#define APOLLO_CONF_25_YEARS_AGO 0x0080
-#define APOLLO_CONF_NODE_ID 0x0100
-#define APOLLO_CONF_IDLE_SLEEP 0x0200
-#define APOLLO_CONF_TRAP_TRACE 0x0400
-#define APOLLO_CONF_FPU_TRACE 0x0800
-#define APOLLO_CONF_DISK_TRACE 0x1000
-#define APOLLO_CONF_NET_TRACE 0x2000
-
-// check configuration setting
-int apollo_config(int mask);
-
-INPUT_PORTS_EXTERN(apollo_config);
-
-/*----------- machine/apollo_csr.cpp -----------*/
-
-#define APOLLO_CSR_SR_SERVICE 0x0001
-#define APOLLO_CSR_SR_ATBUS_IO_TIMEOUT 0x0002
-#define APOLLO_CSR_SR_FP_TRAP 0x0004
-#define APOLLO_CSR_SR_INTERRUPT_PENDING 0x0008 // DN3000 only
-#define APOLLO_CSR_SR_PARITY_BYTE_MASK 0x00f0
-#define APOLLO_CSR_SR_CPU_TIMEOUT 0x0100
-#define APOLLO_CSR_SR_ATBUS_MEM_TIMEOUT 0x2000
-#define APOLLO_CSR_SR_BIT15 0x8000
-#define APOLLO_CSR_SR_CLEAR_ALL 0x3ffe
-
-#define APOLLO_CSR_CR_INTERRUPT_ENABLE 0x0001
-#define APOLLO_CSR_CR_RESET_DEVICES 0x0002
-#define APOLLO_CSR_CR_FPU_TRAP_ENABLE 0x0004
-#define APOLLO_CSR_CR_FORCE_BAD_PARITY 0x0008
-#define APOLLO_CSR_CR_PARITY_BYTE_MASK 0x00f0
-
-uint16_t apollo_csr_get_control_register(void);
-uint16_t apollo_csr_get_status_register(void);
-void apollo_csr_set_status_register(uint16_t mask, uint16_t data);
-
-/*----------- machine/apollo_sio.cpp -----------*/
-
-class apollo_sio: public duart_base_device
-{
-public:
- apollo_sio(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- virtual uint8_t read(offs_t offset) override;
- virtual void write(offs_t offset, uint8_t data) override;
-
-protected:
- virtual void device_reset() override;
-
-private:
- uint8_t m_csrb;
-};
-
-DECLARE_DEVICE_TYPE(APOLLO_SIO, apollo_sio)
-
-/*----------- machine/apollo_ni.cpp -----------*/
-
-
-/*** Apollo Node ID device ***/
-
-class apollo_ni: public device_t, public device_image_interface
-{
-public:
- // construction/destruction
- apollo_ni(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual ~apollo_ni();
-
- // image-level overrides
- virtual iodevice_t image_type() const noexcept override { return IO_ROM; }
-
- virtual bool is_readable() const noexcept override { return true; }
- virtual bool is_writeable() const noexcept override { return true; }
- virtual bool is_creatable() const noexcept override { return true; }
- virtual bool must_be_loaded() const noexcept override { return false; }
- virtual bool is_reset_on_load() const noexcept override { return false; }
- virtual bool support_command_line_image_creation() const noexcept override { return true; }
- virtual const char *file_extensions() const noexcept override { return "ani,bin"; }
-
- virtual image_init_result call_load() override;
- virtual image_init_result call_create(int format_type, util::option_resolution *format_options) override;
- virtual void call_unload() override;
- virtual const char *custom_instance_name() const noexcept override { return "node_id"; }
- virtual const char *custom_brief_instance_name() const noexcept override { return "ni"; }
-
- void write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t read(offs_t offset, uint16_t mem_mask = ~0);
-
- void set_node_id_from_disk();
-
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
- optional_device<omti8621_apollo_device> m_wdc;
- void set_node_id(uint32_t node_id);
- uint32_t m_node_id;
-};
-
-// device type definition
-DECLARE_DEVICE_TYPE(APOLLO_NI, apollo_ni)
-
-/*----------- video/apollo.cpp -----------*/
-
-class apollo_graphics_15i : public device_t
-{
-public:
- apollo_graphics_15i(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- ~apollo_graphics_15i();
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- // monochrome control
- uint8_t apollo_mcr_r(offs_t offset);
- void apollo_mcr_w(offs_t offset, uint8_t data);
-
- // monochrome and color memory
- uint16_t apollo_mem_r(offs_t offset, uint16_t mem_mask = ~0);
- void apollo_mem_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- // color control
- uint8_t apollo_ccr_r(offs_t offset);
- void apollo_ccr_w(offs_t offset, uint8_t data);
-
- uint16_t apollo_mgm_r(offs_t offset, uint16_t mem_mask = ~0);
- void apollo_mgm_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t apollo_cgm_r(offs_t offset, uint16_t mem_mask = ~0);
- void apollo_cgm_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void vblank_state_changed(screen_device &screen, bool vblank_state);
-
- int is_mono() { return m_n_planes == 1; }
-
-protected:
- required_device<screen_device> m_screen;
-
- apollo_graphics_15i(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_add_mconfig(machine_config &config) override;
-
-protected:
- class lut_fifo;
- class bt458;
-
- const char *cr_text(offs_t offset, uint8_t data, uint8_t rw);
-
- void increment_h_clock();
- void increment_v_clock();
- void increment_p_clock();
-
- void log_cr1(const char * text);
- void set_cr1(uint8_t data);
- void set_cr3a(uint8_t data);
- void set_cr3b(uint8_t data);
- void set_lut_cr(uint8_t data);
-
- void register_vblank_callback();
-
- uint32_t set_msb0(uint32_t value, uint8_t data)
- {
- return (value & 0xffffff00) | data;
- }
- uint32_t set_lsb0(uint32_t value, uint8_t data)
- {
- return (value & 0xffff00ff) | (data << 8);
- }
- uint32_t set_msb1(uint32_t value, uint8_t data)
- {
- return (value & 0xff00ffff) | (data << 16);
- }
- uint32_t set_lsb1(uint32_t value, uint8_t data)
- {
- return (value & 0x00ffffff) | (data << 24);
- }
- uint8_t get_msb1(uint32_t value)
- {
- return (value >> 16) & 0xff;
- }
- uint8_t get_lsb1(uint32_t value)
- {
- return (value >> 24) & 0xff;
- }
-
- void set_status_rmw();
- uint16_t rop(uint16_t dest_data, uint16_t src_data, uint8_t plane);
- void set_source_data(uint32_t offset);
- uint32_t get_source_data(uint8_t plane);
- void blt(uint32_t dest_addr, uint16_t mem_mask);
-
- uint8_t get_pixel(uint32_t offset, uint16_t mask);
- uint8_t c4p_read_adc(uint8_t data);
- uint8_t c8p_read_adc(uint8_t data);
-
- void screen_update1(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-protected:
- uint16_t m_n_planes;
- uint16_t m_width;
- uint16_t m_height;
- uint16_t m_buffer_width;
- uint16_t m_buffer_height;
-
- uint8_t m_sr;
- uint8_t m_device_id;
- uint16_t m_write_enable_register;
- uint32_t m_rop_register;
- uint16_t m_diag_mem_request;
- uint8_t m_cr0;
- uint8_t m_cr1;
- uint8_t m_cr2;
- uint8_t m_cr2b;
- uint8_t m_cr2_s_data;
- uint8_t m_cr2_s_plane;
- uint8_t m_cr2_d_plane;
- uint8_t m_cr3a;
- uint8_t m_cr3b;
- uint8_t m_ad_result;
- uint8_t m_ad_pending;
-
- uint8_t m_lut_control;
- uint8_t m_lut_data;
-
- uint8_t m_update_flag;
- uint8_t m_update_pending;
-
- uint8_t m_blt_cycle_count;
- uint32_t m_image_offset;
- uint32_t m_guard_latch[8];
-
- int m_h_clock;
- int m_v_clock;
- int m_p_clock;
- int m_data_clock;
-
- std::unique_ptr<uint16_t[]> m_image_memory;
- int m_image_plane_size;
- int m_image_memory_size;
-
- uint32_t m_color_lookup_table[16];
-
- std::unique_ptr<lut_fifo> m_lut_fifo;
- std::unique_ptr<bt458> m_bt458;
-};
-
-
-#define LUT_FIFO_SIZE 1024
-
-
-//**************************************************************************
-// class LUT Fifo
-//**************************************************************************
-
-class apollo_graphics_15i::lut_fifo
-{
-public:
- lut_fifo()
- {
- reset();
- }
-
- void reset()
- {
- m_size = LUT_FIFO_SIZE;
- m_get_index = 0;
- m_put_index = 0;
- }
-
- void put(const uint8_t data)
- {
- if (!is_full())
- {
- m_data[m_put_index] = data;
- m_put_index = (m_put_index + 1) % m_size;
- }
- }
-
- uint8_t get()
- {
- uint8_t data = is_empty() ? 0xff : m_data[m_get_index];
- m_get_index = (m_get_index + 1) % m_size;
- return data;
- }
-
- int is_empty()
- {
- return m_get_index == m_put_index;
- }
-
- int is_full()
- {
- return ((m_put_index + 1) % m_size) == m_get_index;
- }
-
-private:
- uint16_t m_size;
- uint16_t m_get_index;
- uint16_t m_put_index;
- uint8_t m_data[LUT_FIFO_SIZE];
-};
-
-//**************************************************************************
-// class Brooktree Bt458
-//**************************************************************************
-
-class apollo_graphics_15i::bt458
-{
-public:
- bt458(running_machine &running_machine);
- void start();
- void reset();
- uint8_t read(uint8_t c10);
- void write(uint8_t data, uint8_t c10);
- uint32_t get_rgb(uint8_t index);
-
-private:
- running_machine &machine() const
- {
- assert(m_machine != nullptr);
- return *m_machine;
- }
-
- uint8_t m_color_counter;
- uint8_t m_red;
- uint8_t m_green;
-
- uint8_t m_address_register;
- uint32_t m_color_palette_RAM[256];
- uint32_t m_overlay_color[4];
- uint8_t m_read_mask_register;
- uint8_t m_blink_mask_register;
- uint8_t m_command_register;
- uint8_t m_control_test_register;
-
- running_machine *m_machine;
-};
-
-DECLARE_DEVICE_TYPE(APOLLO_GRAPHICS, apollo_graphics_15i)
-
-
-class apollo_graphics_19i : public apollo_graphics_15i
-{
-public:
- apollo_graphics_19i(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_add_mconfig(machine_config &config) override;
-
-private:
- // internal state
-};
-
-DECLARE_DEVICE_TYPE(APOLLO_MONO19I, apollo_graphics_19i)
-
-#ifdef APOLLO_XXL
-
-/*----------- machine/apollo_stdio.cpp -----------*/
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-// ======================> apollo_stdio_device
-
-class apollo_stdio_device: public device_t, public device_serial_interface
-{
-public:
- // construction/destruction
- apollo_stdio_device(const machine_config &mconfig, const char *tag,
- device_t *owner, uint32_t clock);
-
- auto tx_cb() { return m_tx_w.bind(); }
-
-private:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // serial overrides
- virtual void rcv_complete() override; // Rx completed receiving byte
- virtual void tra_complete() override; // Tx completed sending byte
- virtual void tra_callback() override; // Tx send bit
-
- TIMER_CALLBACK_MEMBER( poll_timer );
- void xmit_char(uint8_t data);
-
- static const int XMIT_RING_SIZE = 64;
-
- uint8_t m_xmitring[XMIT_RING_SIZE];
- int m_xmit_read, m_xmit_write;
- bool m_tx_busy;
-
- emu_timer* m_poll_timer;
-
- devcb_write_line m_tx_w;
-};
-
-// device type definition
-DECLARE_DEVICE_TYPE(APOLLO_STDIO, apollo_stdio_device)
-#endif /* APOLLO_XXL */
-
-#endif // MAME_INCLUDES_APOLLO_H
diff --git a/src/mame/includes/apple2e.h b/src/mame/includes/apple2e.h
deleted file mode 100644
index daf8fecb873..00000000000
--- a/src/mame/includes/apple2e.h
+++ /dev/null
@@ -1,14 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont
-/***************************************************************************
-
- includes/apple2e.h
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_APPLE2E_H
-#define MAME_INCLUDES_APPLE2E_H
-
-INPUT_PORTS_EXTERN( apple2ep );
-
-#endif // MAME_INCLUDES_APPLE2E_H
diff --git a/src/mame/includes/apple3.h b/src/mame/includes/apple3.h
deleted file mode 100644
index f03ecf0e02b..00000000000
--- a/src/mame/includes/apple3.h
+++ /dev/null
@@ -1,173 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods,R. Belmont
-/*****************************************************************************
- *
- * includes/apple3.h
- *
- * Apple ///
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_APPLE3_H
-#define MAME_INCLUDES_APPLE3_H
-
-#pragma once
-
-#include "cpu/m6502/m6502.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "bus/a2bus/a2bus.h"
-#include "machine/mos6551.h"
-#include "machine/6522via.h"
-#include "machine/kb3600.h"
-#include "machine/mm58167.h"
-#include "sound/dac.h"
-#include "machine/wozfdc.h"
-#include "imagedev/floppy.h"
-#include "formats/flopimg.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define VAR_VM0 0x0001
-#define VAR_VM1 0x0002
-#define VAR_VM2 0x0004
-#define VAR_VM3 0x0008
-#define VAR_EXTA0 0x0010
-#define VAR_EXTA1 0x0020
-#define VAR_EXTPOWER 0x0040
-#define VAR_EXTSIDE 0x0080
-
-class apple3_state : public driver_device
-{
-public:
- apple3_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ram(*this, RAM_TAG),
- m_via(*this, "via6522_%u", 0),
- m_acia(*this, "acia"),
- m_fdc(*this, "fdc"),
- m_ay3600(*this, "ay3600"),
- m_a2bus(*this, "a2bus"),
- m_rtc(*this, "rtc"),
- m_bell(*this, "bell"),
- m_dac(*this, "dac"),
- m_kbspecial(*this, "keyb_special"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_joy1x(*this, "joy_1_x"),
- m_joy1y(*this, "joy_1_y"),
- m_joy2x(*this, "joy_2_x"),
- m_joy2y(*this, "joy_2_y"),
- m_joybuttons(*this, "joy_buttons"),
- m_pdltimer(*this, "pdltimer"),
- floppy0(*this, "0"),
- floppy1(*this, "1"),
- floppy2(*this, "2"),
- floppy3(*this, "3")
- {
- }
-
- required_device<m6502_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_device_array<via6522_device, 2> m_via;
- required_device<mos6551_device> m_acia;
- required_device<appleiii_fdc_device> m_fdc;
- required_device<ay3600_device> m_ay3600;
- required_device<a2bus_device> m_a2bus;
- required_device<mm58167_device> m_rtc;
- required_device<dac_bit_interface> m_bell;
- required_device<dac_byte_interface> m_dac;
- required_ioport m_kbspecial;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_ioport m_joy1x, m_joy1y, m_joy2x, m_joy2y, m_joybuttons;
- required_device<timer_device> m_pdltimer;
- required_device<floppy_connector> floppy0;
- required_device<floppy_connector> floppy1;
- required_device<floppy_connector> floppy2;
- required_device<floppy_connector> floppy3;
-
- uint8_t apple3_memory_r(offs_t offset);
- void apple3_memory_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(apple3_sync_w);
- uint8_t apple3_c0xx_r(offs_t offset);
- void apple3_c0xx_w(offs_t offset, uint8_t data);
- void init_apple3();
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(scanstart_cb);
- TIMER_CALLBACK_MEMBER(scanend_cb);
- void apple3_via_0_out_a(uint8_t data);
- void apple3_via_0_out_b(uint8_t data);
- void apple3_via_1_out_a(uint8_t data);
- void apple3_via_1_out_b(uint8_t data);
- void apple3_write_charmem();
- void text40(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void text80(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void graphics_hgr(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void graphics_chgr(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void graphics_shgr(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void graphics_chires(bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint8_t *apple3_bankaddr(uint16_t bank, offs_t offset);
- uint8_t *apple3_get_zpa_addr(offs_t offset);
- void apple3_update_memory();
- void apple3_via_out(uint8_t *var, uint8_t data);
- uint8_t *apple3_get_indexed_addr(offs_t offset);
- TIMER_DEVICE_CALLBACK_MEMBER(apple3_c040_tick);
- void palette_init(palette_device &palette) const;
- DECLARE_READ_LINE_MEMBER(ay3600_shift_r);
- DECLARE_READ_LINE_MEMBER(ay3600_control_r);
- DECLARE_WRITE_LINE_MEMBER(ay3600_data_ready_w);
- virtual void device_post_load() override;
- TIMER_DEVICE_CALLBACK_MEMBER(paddle_timer);
- void pdl_handler(int offset);
- static void floppy_formats(format_registration &fr);
- DECLARE_WRITE_LINE_MEMBER(a2bus_irq_w);
- DECLARE_WRITE_LINE_MEMBER(a2bus_nmi_w);
- DECLARE_WRITE_LINE_MEMBER(vbl_w);
- DECLARE_WRITE_LINE_MEMBER(a2bus_inh_w);
-
- // these need to be public for now
- uint32_t m_flags;
- int m_enable_mask;
-
- void apple3(machine_config &config);
- void apple3_map(address_map &map);
-private:
- uint8_t m_via_0_a;
- uint8_t m_via_0_b;
- uint8_t m_via_1_a;
- uint8_t m_via_1_b;
- offs_t m_zpa;
- uint8_t m_last_n;
- uint8_t m_char_mem[0x800];
- std::unique_ptr<uint32_t[]> m_hgr_map;
-
- bool m_sync;
- bool m_rom_has_been_disabled;
- int m_cnxx_slot;
- uint8_t m_indir_bank;
-
- uint8_t *m_bank2, *m_bank3, *m_bank4, *m_bank5, *m_bank8, *m_bank9;
- uint8_t *m_bank10, *m_bank11;
- uint8_t *m_bank6, *m_bank7rd, *m_bank7wr;
- int m_bell_state;
- int m_c040_time;
- uint16_t m_lastchar, m_strobe;
- uint8_t m_transchar;
- bool m_charwrt;
-
- emu_timer *m_scanstart, *m_scanend;
-
- int m_analog_sel;
- bool m_ramp_active;
- int m_pdl_charge;
- int m_va, m_vb, m_vc;
- int m_smoothscr;
-
- int m_inh_state;
-};
-
-#endif // MAME_INCLUDES_APPLE3_H
diff --git a/src/mame/includes/appoooh.h b/src/mame/includes/appoooh.h
deleted file mode 100644
index 31f5c587605..00000000000
--- a/src/mame/includes/appoooh.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tatsuyuki Satoh
-#ifndef MAME_INCLUDES_APPOOOH_H
-#define MAME_INCLUDES_APPOOOH_H
-
-#pragma once
-
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class appoooh_state : public driver_device
-{
-public:
- appoooh_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_fg_colorram(*this, "fg_colorram"),
- m_spriteram_2(*this, "spriteram_2"),
- m_bg_videoram(*this, "bg_videoram"),
- m_bg_colorram(*this, "bg_colorram"),
- m_decrypted_opcodes(*this, "decrypted_opcodes"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_msm(*this, "msm")
- { }
-
- void init_robowresb();
- void appoooh(machine_config &config);
- void robowres(machine_config &config);
- void robowrese(machine_config &config);
-
-protected:
- void adpcm_w(uint8_t data);
- void scroll_w(uint8_t data);
- void fg_videoram_w(offs_t offset, uint8_t data);
- void fg_colorram_w(offs_t offset, uint8_t data);
- void bg_videoram_w(offs_t offset, uint8_t data);
- void bg_colorram_w(offs_t offset, uint8_t data);
- void out_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void appoooh_palette(palette_device &palette) const;
- void robowres_palette(palette_device &palette) const;
- uint32_t screen_update_appoooh(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_robowres(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vblank_irq);
- void appoooh_draw_sprites( bitmap_ind16 &dest_bmp, const rectangle &cliprect, gfx_element *gfx, uint8_t *sprite );
- void robowres_draw_sprites( bitmap_ind16 &dest_bmp, const rectangle &cliprect, gfx_element *gfx, uint8_t *sprite );
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
-
- void appoooh_common(machine_config &config);
- void decrypted_opcodes_map(address_map &map);
- void main_map(address_map &map);
- void main_portmap(address_map &map);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_fg_colorram;
- required_shared_ptr<uint8_t> m_spriteram_2;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_bg_colorram;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_scroll_x;
- int m_priority;
-
- /* sound-related */
- uint32_t m_adpcm_data;
- uint32_t m_adpcm_address;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<msm5205_device> m_msm;
-
- uint8_t m_nmi_mask;
-};
-
-#endif // MAME_INCLUDES_APPOOOH_H
diff --git a/src/mame/includes/aquarium.h b/src/mame/includes/aquarium.h
deleted file mode 100644
index cf2c03e4f48..00000000000
--- a/src/mame/includes/aquarium.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_AQUARIUM_H
-#define MAME_INCLUDES_AQUARIUM_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/mb3773.h"
-#include "sound/okim6295.h"
-#include "video/excellent_spr.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class aquarium_state : public driver_device
-{
-public:
- aquarium_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_mid_videoram(*this, "mid_videoram"),
- m_bak_videoram(*this, "bak_videoram"),
- m_txt_videoram(*this, "txt_videoram"),
- m_scroll(*this, "scroll"),
- m_audiobank(*this, "bank1"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sprgen(*this, "spritegen"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch"),
- m_watchdog(*this, "watchdog")
- { }
-
- void init_aquarium();
-
- void aquarium(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_mid_videoram;
- required_shared_ptr<u16> m_bak_videoram;
- required_shared_ptr<u16> m_txt_videoram;
- required_shared_ptr<u16> m_scroll;
- required_memory_bank m_audiobank;
-
- /* video-related */
- tilemap_t *m_txt_tilemap;
- tilemap_t *m_mid_tilemap;
- tilemap_t *m_bak_tilemap;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<excellent_spr_device> m_sprgen;
- required_device<screen_device> m_screen;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<mb3773_device> m_watchdog;
-
- void watchdog_w(u8 data);
- void z80_bank_w(u8 data);
- u8 oki_r();
- void oki_w(u8 data);
-
- void expand_gfx(int low, int hi);
- void txt_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void mid_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bak_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_txt_tile_info);
- TILE_GET_INFO_MEMBER(get_mid_tile_info);
- TILE_GET_INFO_MEMBER(get_bak_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u8 snd_bitswap(u8 scrambled_data);
- void aquarium_colpri_cb(u32 &colour, u32 &pri_mask);
-
- void main_map(address_map &map);
- void snd_map(address_map &map);
- void snd_portmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_AQUARIUM_H
diff --git a/src/mame/includes/aquarius.h b/src/mame/includes/aquarius.h
deleted file mode 100644
index ce2315127a4..00000000000
--- a/src/mame/includes/aquarius.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods,Nigel Barnes
-/*****************************************************************************
- *
- * includes/aquarius.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_AQUARIUS_H
-#define MAME_INCLUDES_AQUARIUS_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "imagedev/cassette.h"
-#include "machine/bankdev.h"
-#include "sound/spkrdev.h"
-#include "video/tea1002.h"
-
-#include "bus/aquarius/slot.h"
-#include "bus/rs232/rs232.h"
-
-#include "formats/aquarius_caq.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class aquarius_state : public driver_device
-{
-public:
- aquarius_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_cassette(*this, "cassette")
- , m_speaker(*this, "speaker")
- , m_exp(*this, "exp")
- , m_printer(*this, "printer")
- , m_mapper(*this, "mapper")
- , m_videoram(*this, "videoram")
- , m_colorram(*this, "colorram")
- , m_y(*this, "Y%u", 0U)
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_tea1002(*this, "encoder")
- , m_palette(*this, "palette")
- { }
-
- DECLARE_INPUT_CHANGED_MEMBER(aquarius_reset);
-
- void aquarius(machine_config &config);
- void aquariusp(machine_config &config);
-
- static void cfg_ram16(device_t* device);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_device<speaker_sound_device> m_speaker;
- required_device<aquarius_cartridge_slot_device> m_exp;
- required_device<rs232_port_device> m_printer;
- required_device<address_map_bank_device> m_mapper;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_ioport_array<8> m_y;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<tea1002_device> m_tea1002;
- required_device<palette_device> m_palette;
-
- uint8_t m_scrambler;
- tilemap_t *m_tilemap;
-
- void aquarius_videoram_w(offs_t offset, uint8_t data);
- void aquarius_colorram_w(offs_t offset, uint8_t data);
- uint8_t cassette_r();
- void cassette_w(uint8_t data);
- uint8_t vsync_r();
- void mapper_w(uint8_t data);
- uint8_t printer_r();
- void printer_w(uint8_t data);
- uint8_t keyboard_r(offs_t offset);
- void scrambler_w(uint8_t data);
- TILE_GET_INFO_MEMBER(aquarius_gettileinfo);
- void aquarius_palette(palette_device &palette) const;
- uint32_t screen_update_aquarius(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void aquarius_io(address_map &map);
- void aquarius_mem(address_map &map);
- void aquarius_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_AQUARIUS_H
diff --git a/src/mame/includes/arabian.h b/src/mame/includes/arabian.h
deleted file mode 100644
index 3142cf04773..00000000000
--- a/src/mame/includes/arabian.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Dan Boris
-/***************************************************************************
-
- Sun Electronics Arabian hardware
-
- driver by Dan Boris
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_ARABIAN_H
-#define MAME_INCLUDES_ARABIAN_H
-
-#pragma once
-
-#include "cpu/mb88xx/mb88xx.h"
-#include "emupal.h"
-
-class arabian_state : public driver_device
-{
-public:
- arabian_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_custom_cpu_ram(*this, "custom_cpu_ram"),
- m_blitter(*this, "blitter"),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_palette(*this, "palette")
- { }
-
- void arabian(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void main_io_map(address_map &map);
- void main_map(address_map &map);
-
-private:
- uint8_t mcu_port_r0_r();
- uint8_t mcu_port_r1_r();
- uint8_t mcu_port_r2_r();
- uint8_t mcu_port_r3_r();
- void mcu_port_r0_w(uint8_t data);
- void mcu_port_r1_w(uint8_t data);
- void mcu_port_r2_w(uint8_t data);
- void mcu_port_r3_w(uint8_t data);
- uint8_t mcu_portk_r();
- void mcu_port_o_w(uint8_t data);
- void mcu_port_p_w(uint8_t data);
- void arabian_blitter_w(offs_t offset, uint8_t data);
- void arabian_videoram_w(offs_t offset, uint8_t data);
- void ay8910_porta_w(uint8_t data);
- void ay8910_portb_w(uint8_t data);
- void arabian_palette(palette_device &palette) const;
- uint32_t screen_update_arabian(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void blit_area(uint8_t plane, uint16_t src, uint8_t x, uint8_t y, uint8_t sx, uint8_t sy);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_custom_cpu_ram;
- required_shared_ptr<uint8_t> m_blitter;
-
- std::unique_ptr<uint8_t[]> m_main_bitmap;
- std::unique_ptr<uint8_t[]> m_converted_gfx;
-
- /* video-related */
- uint8_t m_video_control;
- uint8_t m_flip_screen;
-
- /* MCU */
- uint8_t m_mcu_port_o;
- uint8_t m_mcu_port_p;
- uint8_t m_mcu_port_r[4];
-
- required_device<cpu_device> m_maincpu;
- required_device<mb8841_cpu_device> m_mcu;
- required_device<palette_device> m_palette;
-};
-
-#endif // MAME_INCLUDES_ARABIAN_H
diff --git a/src/mame/includes/arcadecl.h b/src/mame/includes/arcadecl.h
deleted file mode 100644
index bd692281c2d..00000000000
--- a/src/mame/includes/arcadecl.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Arcade Classics hardware (prototypes)
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ARCADECL_H
-#define MAME_INCLUDES_ARCADECL_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "video/atarimo.h"
-#include "sound/okim6295.h"
-#include "screen.h"
-
-class sparkz_state : public driver_device
-{
-public:
- sparkz_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_oki(*this, "oki")
- , m_bitmap(*this, "bitmap")
- { }
-
- void sparkz(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_interrupt);
- void scanline_int_ack_w(uint16_t data);
- void latch_w(uint8_t data);
- virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<okim6295_device> m_oki;
- required_shared_ptr<uint16_t> m_bitmap;
-};
-
-
-class arcadecl_state : public sparkz_state
-{
-public:
- arcadecl_state(const machine_config &mconfig, device_type type, const char *tag)
- : sparkz_state(mconfig, type, tag)
- , m_mob(*this, "mob")
- { }
-
- void arcadecl(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override;
-
-private:
- required_device<atari_motion_objects_device> m_mob;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_ARCADECL_H
diff --git a/src/mame/includes/arcadia.h b/src/mame/includes/arcadia.h
deleted file mode 100644
index 3354fb9fc5f..00000000000
--- a/src/mame/includes/arcadia.h
+++ /dev/null
@@ -1,140 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/arcadia.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_ARCADIA_H
-#define MAME_INCLUDES_ARCADIA_H
-
-#pragma once
-
-#include "cpu/s2650/s2650.h"
-#include "audio/arcadia.h"
-
-#include "bus/arcadia/slot.h"
-#include "bus/arcadia/rom.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-// space vultures sprites above
-// combat below and invisible
-#define YPOS 0
-//#define YBOTTOM_SIZE 24
-// grand slam sprites left and right
-// space vultures left
-// space attack left
-#define XPOS 32
-
-
-class arcadia_state : public driver_device
-{
-public:
- arcadia_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_custom(*this, "custom"),
- m_panel(*this, "panel"),
- m_controller1_col1(*this, "controller1_col1"),
- m_controller1_col2(*this, "controller1_col2"),
- m_controller1_col3(*this, "controller1_col3"),
- m_controller1_extra(*this, "controller1_extra"),
- m_controller2_col1(*this, "controller2_col1"),
- m_controller2_col2(*this, "controller2_col2"),
- m_controller2_col3(*this, "controller2_col3"),
- m_controller2_extra(*this, "controller2_extra"),
- m_joysticks(*this, "joysticks") ,
- m_maincpu(*this, "maincpu"),
- m_cart(*this, "cartslot"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen")
- { }
-
- void init_arcadia();
- void arcadia(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- int m_line;
- int m_charline;
- int m_shift;
- int m_ad_delay;
- int m_ad_select;
- int m_ypos;
- int m_graphics;
- int m_doublescan;
- int m_lines26;
- int m_multicolor;
- struct { int x, y; } m_pos[4];
- uint8_t m_bg[262][16+2*XPOS/8];
- uint8_t m_rectangle[0x40][8];
- uint8_t m_chars[0x40][8];
- int m_breaker;
- union
- {
- uint8_t data[0x400];
- struct
- {
- // 0x1800
- uint8_t chars1[13][16];
- uint8_t ram1[2][16];
- struct { uint8_t y,x; } pos[4];
- uint8_t ram2[4];
- uint8_t vpos;
- uint8_t sound1, sound2;
- uint8_t char_line;
- // 0x1900
- uint8_t pad1a, pad1b, pad1c, pad1d;
- uint8_t pad2a, pad2b, pad2c, pad2d;
- uint8_t keys, unmapped3[0x80-9];
- uint8_t chars[8][8];
- uint8_t unknown[0x38];
- uint8_t pal[4];
- uint8_t collision_bg,
- collision_sprite;
- uint8_t ad[2];
- // 0x1a00
- uint8_t chars2[13][16];
- uint8_t ram3[3][16];
- } d;
- } m_reg;
- std::unique_ptr<bitmap_ind16> m_bitmap;
-
- required_device<arcadia_sound_device> m_custom;
- required_ioport m_panel;
- required_ioport m_controller1_col1;
- required_ioport m_controller1_col2;
- required_ioport m_controller1_col3;
- required_ioport m_controller1_extra;
- required_ioport m_controller2_col1;
- required_ioport m_controller2_col2;
- required_ioport m_controller2_col3;
- required_ioport m_controller2_extra;
- required_ioport m_joysticks;
-
- required_device<s2650_device> m_maincpu;
- required_device<arcadia_cart_slot_device> m_cart;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- DECLARE_READ_LINE_MEMBER(vsync_r);
- uint8_t video_r(offs_t offset);
- void video_w(offs_t offset, uint8_t data);
- void palette_init(palette_device &palette) const;
- uint32_t screen_update_arcadia(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(video_line);
- void arcadia_mem(address_map &map);
-
- void draw_char(uint8_t *ch, int charcode, int y, int x);
- void vh_draw_line(int y, uint8_t chars1[16]);
- int sprite_collision(int n1, int n2);
- void draw_sprites();
-};
-
-#endif // MAME_INCLUDES_ARCADIA_H
diff --git a/src/mame/includes/argus.h b/src/mame/includes/argus.h
deleted file mode 100644
index de288be53f2..00000000000
--- a/src/mame/includes/argus.h
+++ /dev/null
@@ -1,186 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Yochizo
-
-#include "machine/timer.h"
-#include "video/jalblend.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class argus_common_state : public driver_device
-{
-protected:
- argus_common_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_blend(*this, "blend")
- , m_bg_scrollx(*this, "bg%u_scrollx", 0U)
- , m_bg_scrolly(*this, "bg%u_scrolly", 0U)
- , m_paletteram(*this, "paletteram")
- , m_txram(*this, "txram")
- , m_bg1ram(*this, "bg1ram")
- , m_spriteram(*this, "spriteram")
- , m_vrom(*this, "vrom%u", 1U)
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<jaleco_blend_device> m_blend;
-
- optional_shared_ptr_array<u8, 2> m_bg_scrollx;
- optional_shared_ptr_array<u8, 2> m_bg_scrolly;
- required_shared_ptr<u8> m_paletteram;
- optional_shared_ptr<u8> m_txram;
- optional_shared_ptr<u8> m_bg1ram;
- required_shared_ptr<u8> m_spriteram;
- optional_region_ptr_array<u8, 2> m_vrom;
-
- // common
- u8 m_bg_status;
- u8 m_flipscreen;
- u16 m_palette_intensity;
-
- // argus specific
- u8 m_vrom_offset;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bg_tilemap[2];
-
- // common
- void bankselect_w(u8 data);
- void txram_w(offs_t offset, u8 data);
- void bg1ram_w(offs_t offset, u8 data);
- void flipscreen_w(u8 data);
-
- template<int Gfx> TILE_GET_INFO_MEMBER(get_tx_tile_info);
-
- virtual void machine_start() override;
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
-
- void reset_common();
- void change_palette(int color, int lo_offs, int hi_offs);
- void change_bg_palette(int color, int lo_offs, int hi_offs);
- void bg_setting();
-
- void sound_map_a(address_map &map);
- void sound_map_b(address_map &map);
- void sound_portmap_1(address_map &map);
- void sound_portmap_2(address_map &map);
-};
-
-class argus_state : public argus_common_state
-{
-public:
- argus_state(const machine_config &mconfig, device_type type, const char *tag)
- : argus_common_state(mconfig, type, tag)
- { }
-
- void argus(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void video_reset() override;
-
-private:
- void bg_status_w(u8 data);
- void paletteram_w(offs_t offset, u8 data);
-
- TILE_GET_INFO_MEMBER(get_bg0_tile_info);
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
-
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, int priority);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void argus_map(address_map &map);
-};
-
-class valtric_state : public argus_common_state
-{
-public:
- valtric_state(const machine_config &mconfig, device_type type, const char *tag)
- : argus_common_state(mconfig, type, tag)
- { }
-
- void valtric(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void video_reset() override;
-
-private:
- void mosaic_w(u8 data);
- void bg_status_w(u8 data);
- void paletteram_w(offs_t offset, u8 data);
- void unknown_w(u8 data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- void draw_mosaic(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void valtric_map(address_map &map);
-
- u8 m_valtric_mosaic;
- bitmap_rgb32 m_mosaicbitmap;
- u8 m_valtric_unknown;
- int m_mosaic;
-};
-
-class butasan_state : public argus_common_state
-{
-public:
- butasan_state(const machine_config &mconfig, device_type type, const char *tag)
- : argus_common_state(mconfig, type, tag)
- , m_butasan_bg1ram(*this, "butasan_bg1ram")
- { }
-
- void butasan(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void video_reset() override;
-
-private:
- void bg0_status_w(u8 data);
- void bg1_status_w(u8 data);
- void paletteram_w(offs_t offset, u8 data);
- void bg1ram_w(offs_t offset, u8 data);
- void pageselect_w(u8 data);
- u8 pagedram_r(offs_t offset);
- void pagedram_w(offs_t offset, u8 data);
- void unknown_w(u8 data);
-
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_bg0_tile_info);
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
- TILEMAP_MAPPER_MEMBER(bg_scan);
- TILEMAP_MAPPER_MEMBER(tx_scan);
-
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void log_vram();
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
-
- void butasan_map(address_map &map);
-
- required_shared_ptr<u8> m_butasan_bg1ram;
-
- u8 *m_butasan_txram;
- u8 *m_butasan_bg0ram;
- u8 *m_butasan_bg0backram;
- u8 *m_butasan_txbackram;
- std::unique_ptr<u8[]> m_butasan_pagedram[2];
- u8 m_butasan_page_latch;
- u8 m_butasan_bg1_status;
- u8 m_butasan_unknown;
-};
diff --git a/src/mame/includes/arkanoid.h b/src/mame/includes/arkanoid.h
deleted file mode 100644
index 491efd6ca03..00000000000
--- a/src/mame/includes/arkanoid.h
+++ /dev/null
@@ -1,122 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver,Stephane Humbert
-#ifndef MAME_INCLUDES_ARKANOID_H
-#define MAME_INCLUDES_ARKANOID_H
-
-#pragma once
-
-#include "machine/taito68705interface.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-/* This it the best way to allow game specific kludges until the system is fully understood */
-enum {
- ARKUNK = 0, /* unknown bootlegs for inclusion of possible new sets */
- ARKANGC,
- ARKANGC2,
- BLOCK2,
- ARKBLOCK,
- ARKBLOC2,
- ARKGCBL,
- PADDLE2
-};
-
-class arkanoid_state : public driver_device
-{
-public:
- arkanoid_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_videoram(*this, "videoram")
- , m_spriteram(*this, "spriteram")
- , m_protram(*this, "protram")
- , m_muxports(*this, "P%u", 1)
- , m_maincpu(*this, "maincpu")
- , m_mcuintf(*this, "mcu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- {
- }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_protram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- uint8_t m_gfxbank;
- uint8_t m_palettebank;
-
- /* input-related */
- uint8_t m_paddle_select; // selected by d008 bit 2
-
- /* bootleg related */
- int m_bootleg_id;
- uint8_t m_bootleg_cmd;
-
- /* hexaa */
- uint8_t m_hexaa_from_main;
- uint8_t m_hexaa_from_sub;
-
- /* devices */
- optional_ioport_array<2> m_muxports;
- required_device<cpu_device> m_maincpu;
- optional_device<arkanoid_mcu_device_base> m_mcuintf;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
-
- uint8_t arkanoid_bootleg_f000_r();
- uint8_t arkanoid_bootleg_f002_r();
- void arkanoid_bootleg_d018_w(uint8_t data);
- uint8_t arkanoid_bootleg_d008_r();
- void arkanoid_videoram_w(offs_t offset, uint8_t data);
- void arkanoid_d008_w(uint8_t data);
- void tetrsark_d008_w(uint8_t data);
- void brixian_d008_w(uint8_t data);
- void hexa_d008_w(uint8_t data);
- uint8_t hexaa_f000_r();
- void hexaa_f000_w(uint8_t data);
- void hexaa_sub_80_w(uint8_t data);
- uint8_t hexaa_sub_90_r();
- DECLARE_CUSTOM_INPUT_MEMBER(arkanoid_semaphore_input_r);
- uint8_t input_mux_r();
- void init_block2();
- void init_arkblock();
- void init_hexa();
- void init_hexaa();
- void init_paddle2();
- void init_tetrsark();
- void init_tetrsark2();
- void init_arkgcbl();
- void init_arkangc2();
- void init_arkbloc2();
- void init_arkangc();
- void init_brixian();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_arkanoid(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_hexa(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void arkanoid_bootleg_init( );
-
- void bootleg(machine_config &config);
- void p3mcuay(machine_config &config);
- void aysnd(machine_config &config);
- void hexa(machine_config &config);
- void brixian(machine_config &config);
- void hexaa(machine_config &config);
- void p3mcu(machine_config &config);
- void arkanoid(machine_config &config);
- void arkanoid_map(address_map &map);
- void bootleg_map(address_map &map);
- void brixian_map(address_map &map);
- void hexa_map(address_map &map);
- void hexaa_map(address_map &map);
- void hexaa_sub_iomap(address_map &map);
- void hexaa_sub_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ARKANOID_H
diff --git a/src/mame/includes/armedf.h b/src/mame/includes/armedf.h
deleted file mode 100644
index c05a8e53918..00000000000
--- a/src/mame/includes/armedf.h
+++ /dev/null
@@ -1,181 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Phil Stroffolino, Carlos A. Lozano
-#ifndef MAME_INCLUDES_ARMEDF_H
-#define MAME_INCLUDES_ARMEDF_H
-
-#pragma once
-
-#include "machine/nb1414m4.h"
-#include "machine/gen_latch.h"
-#include "video/bufsprite.h"
-#include "screen.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class armedf_state : public driver_device
-{
-public:
- armedf_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_extra(*this, "extra")
- , m_nb1414m4(*this, "nb1414m4")
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_spriteram(*this, "spriteram")
- , m_soundlatch(*this, "soundlatch")
- , m_text_videoram(*this, "text_videoram", 0x1000, ENDIANNESS_BIG)
- , m_spr_pal_clut(*this, "spr_pal_clut")
- , m_fg_videoram(*this, "fg_videoram")
- , m_bg_videoram(*this, "bg_videoram")
- { }
-
- void init_cclimbr2();
- void init_armedf();
- void init_legion();
- void init_terraf();
- void init_legionjb();
- void init_kozure();
-
- void terraf(machine_config &config);
- void terrafb(machine_config &config);
- void legion_common(machine_config &config);
- void legion(machine_config &config);
- void legionjb(machine_config &config);
- void legionjb2(machine_config &config);
- void cclimbr2(machine_config &config);
- void terrafjb(machine_config &config);
- void armedf(machine_config &config);
- void kozure(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void video_config(machine_config &config, int hchar_start, int vstart, int vend);
- void sound_config(machine_config &config);
-
- // devices
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_extra;
- optional_device<nb1414m4_device> m_nb1414m4;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram16_device> m_spriteram;
- required_device<generic_latch_8_device> m_soundlatch;
-
- // memory pointers
- memory_share_creator<u8> m_text_videoram;
- required_shared_ptr<u16> m_spr_pal_clut;
- required_shared_ptr<u16> m_fg_videoram;
- required_shared_ptr<u16> m_bg_videoram;
- u16 m_legion_cmd[4]; // legionjb only!
-
- // video-related
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
- u16 m_scroll_msb;
- u16 m_vreg;
- u16 m_fg_scrollx;
- u16 m_fg_scrolly;
- u16 m_bg_scrollx;
- u16 m_bg_scrolly;
- int m_scroll_type;
- int m_sprite_offy;
- int m_old_mcu_mode;
- int m_waiting_msb;
-
- // read/write handlers
- void terraf_io_w(offs_t offset, u16 data, u16 mem_mask);
- void terrafjb_io_w(offs_t offset, u16 data, u16 mem_mask);
- void armedf_io_w(offs_t offset, u16 data, u16 mem_mask);
- void sound_command_w(u8 data);
- u8 soundlatch_clear_r();
- void irq_lv1_ack_w(u16 data);
- void irq_lv2_ack_w(u16 data);
-
- // video handlers
- void legionjb_fg_scroll_w(offs_t offset, u8 data);
- void blitter_txram_w(offs_t offset, u8 data);
- void terrafjb_fg_scrollx_w(u8 data);
- void terrafjb_fg_scrolly_w(u8 data);
- void terrafjb_fg_scroll_msb_w(u8 data);
- u8 text_videoram_r(offs_t offset);
- void text_videoram_w(offs_t offset, u8 data);
- void fg_videoram_w(offs_t offset, u16 data, u16 mem_mask);
- void bg_videoram_w(offs_t offset, u16 data, u16 mem_mask);
- void terrafb_fg_scrolly_w(u8 data);
- void terrafb_fg_scrollx_w(u8 data);
- void terrafb_fg_scroll_msb_arm_w(u8 data);
- void fg_scrollx_w(offs_t offset, u16 data, u16 mem_mask);
- void fg_scrolly_w(offs_t offset, u16 data, u16 mem_mask);
- void bg_scrollx_w(offs_t offset, u16 data, u16 mem_mask);
- void bg_scrolly_w(offs_t offset, u16 data, u16 mem_mask);
-
- TILEMAP_MAPPER_MEMBER(armedf_scan_type1);
- TILEMAP_MAPPER_MEMBER(armedf_scan_type2);
- TILEMAP_MAPPER_MEMBER(armedf_scan_type3);
-
- TILE_GET_INFO_MEMBER(get_nb1414m4_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_armedf_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- DECLARE_VIDEO_START(terraf);
- DECLARE_VIDEO_START(armedf);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &primap);
- void armedf_drawgfx(bitmap_ind16 &dest_bmp, const rectangle &clip, gfx_element *gfx,
- u32 code, u32 color, u32 clut, int flipx, int flipy, int offsx, int offsy,
- bitmap_ind8 &primap, u32 pmask, int transparent_color);
- void common_map(address_map &map);
- void armedf_map(address_map &map);
- void cclimbr2_map(address_map &map);
- void cclimbr2_soundmap(address_map &map);
- void kozure_map(address_map &map);
- void legion_common_map(address_map &map);
- void legion_map(address_map &map);
- void legionjb_map(address_map &map);
- void legionjb2_map(address_map &map);
- void sound_3526_portmap(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
- void terraf_common_map(address_map &map);
- void terraf_map(address_map &map);
- void terrafb_map(address_map &map);
- void terrafjb_map(address_map &map);
- void terrafjb_extraz80_map(address_map &map);
- void terrafjb_extraz80_portmap(address_map &map);
-};
-
-class bigfghtr_state : public armedf_state
-{
-public:
- bigfghtr_state(const machine_config &mconfig, device_type type, const char *tag)
- : armedf_state(mconfig, type, tag)
- , m_mcu(*this, "mcu")
- , m_sharedram(*this, "sharedram")
- { }
-
- void bigfghtr(machine_config &config);
-
-private:
- required_device<cpu_device> m_mcu;
- required_shared_ptr<u8> m_sharedram;
-
- // mcu interfaces
- u16 latch_r();
- void main_sharedram_w(offs_t offset, u8 data);
- u8 main_sharedram_r(offs_t offset);
- void mcu_spritelist_w(offs_t offset, u8 data);
-
- void bigfghtr_map(address_map &map);
- void bigfghtr_mcu_io_map(address_map &map);
- void bigfghtr_mcu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ARMEDF_H
diff --git a/src/mame/includes/artmagic.h b/src/mame/includes/artmagic.h
deleted file mode 100644
index cda9dc3195a..00000000000
--- a/src/mame/includes/artmagic.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles,Nicola Salmoria
-/*************************************************************************
-
- Art & Magic hardware
-
-**************************************************************************/
-#include "cpu/tms34010/tms34010.h"
-#include "sound/okim6295.h"
-#include "video/tlc34076.h"
-
-class artmagic_state : public driver_device
-{
-public:
- enum
- {
- TIMER_IRQ_OFF
- };
-
- artmagic_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_oki(*this, "oki")
- , m_tms(*this, "tms")
- , m_tlc34076(*this, "tlc34076")
- , m_control(*this, "control")
- , m_vram(*this, "vram%u", 0U)
- , m_blitter_base(*this, "gfx")
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<okim6295_device> m_oki;
- required_device<tms34010_device> m_tms;
- required_device<tlc34076_device> m_tlc34076;
-
- required_shared_ptr<uint16_t> m_control;
- required_shared_ptr_array<uint16_t, 2> m_vram;
- required_region_ptr<uint16_t> m_blitter_base;
-
- uint8_t m_tms_irq;
- uint8_t m_hack_irq;
- uint8_t m_prot_input[16];
- uint8_t m_prot_input_index;
- uint8_t m_prot_output[16];
- uint8_t m_prot_output_index;
- uint8_t m_prot_output_bit;
- uint8_t m_prot_bit_index;
- uint16_t m_prot_save;
- typedef void (artmagic_state::*prot_func)();
- prot_func m_protection_handler;
- void ultennis_protection();
- void cheesech_protection();
- void stonebal_protection();
-
- int m_xor[16];
- int m_is_stoneball;
- uint16_t m_blitter_data[8];
- uint8_t m_blitter_page;
- attotime m_blitter_busy_until;
- emu_timer * m_irq_off_timer;
- void control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t ultennis_hack_r();
- void protection_bit_w(offs_t offset, uint16_t data);
- uint16_t blitter_r();
- void blitter_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(m68k_gen_int);
- TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg);
- TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg);
- TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline);
- DECLARE_READ_LINE_MEMBER(prot_r);
- void init_shtstar();
- void init_cheesech();
- void init_ultennis();
- void init_stonebal();
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void decrypt_cheesech();
- void decrypt_ultennis();
- void execute_blit();
- void update_irq_state();
- inline uint16_t *address_to_vram(offs_t *address);
-
- void cheesech(machine_config &config);
- void artmagic(machine_config &config);
- void shtstar(machine_config &config);
- void stonebal(machine_config &config);
- void main_map(address_map &map);
- void shtstar_guncpu_io_map(address_map &map);
- void shtstar_guncpu_map(address_map &map);
- void shtstar_map(address_map &map);
- void shtstar_subcpu_map(address_map &map);
- void stonebal_map(address_map &map);
- void stonebal_tms_map(address_map &map);
- void tms_map(address_map &map);
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
diff --git a/src/mame/includes/ashnojoe.h b/src/mame/includes/ashnojoe.h
deleted file mode 100644
index e5b5e669594..00000000000
--- a/src/mame/includes/ashnojoe.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-
-/*************************************************************************
-
- Success Joe / Ashita no Joe
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ASHNOJOE_H
-#define MAME_INCLUDES_ASHNOJOE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "tilemap.h"
-
-class ashnojoe_state : public driver_device
-{
-public:
- ashnojoe_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_tileram(*this, "tileram_%u", 1U),
- m_tilemap_reg(*this, "tilemap_reg"),
- m_audiobank(*this, "audiobank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void init_ashnojoe();
-
- void ashnojoe(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr_array<u16, 7> m_tileram;
- required_shared_ptr<u16> m_tilemap_reg;
- required_memory_bank m_audiobank;
-
- /* video-related */
- tilemap_t *m_tilemap[7];
-
- /* sound-related */
- u8 m_adpcm_byte;
- int m_msm5205_vclk_toggle;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<msm5205_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<generic_latch_8_device> m_soundlatch;
-
- u16 fake_4a00a_r();
- void adpcm_w(u8 data);
- u8 sound_latch_status_r();
- template<unsigned Which> void tileram_8x8_w(offs_t offset, u16 data);
- template<unsigned Which> void tileram_16x16_w(offs_t offset, u16 data);
- void tilemaps_xscroll_w(offs_t offset, u16 data);
- void tilemaps_yscroll_w(offs_t offset, u16 data);
- void tilemap_regs_w(offs_t offset, u16 data, u16 mem_mask);
- void ym2203_write_a(u8 data);
- void ym2203_write_b(u8 data);
- TILE_GET_INFO_MEMBER(get_tile_info_highest);
- TILE_GET_INFO_MEMBER(get_tile_info_midlow);
- TILE_GET_INFO_MEMBER(get_tile_info_high);
- TILE_GET_INFO_MEMBER(get_tile_info_low);
- TILE_GET_INFO_MEMBER(get_tile_info_midhigh);
- TILE_GET_INFO_MEMBER(get_tile_info_lowest);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(ashnojoe_vclk_cb);
- void ashnojoe_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ASHNOJOE_H
diff --git a/src/mame/includes/asterix.h b/src/mame/includes/asterix.h
deleted file mode 100644
index fd9dcd43459..00000000000
--- a/src/mame/includes/asterix.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Olivier Galibert
-/*************************************************************************
-
- Asterix
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ASTERIX_H
-#define MAME_INCLUDES_ASTERIX_H
-
-#pragma once
-
-#include "video/k053251.h"
-#include "video/k054156_k054157_k056832.h"
-#include "video/k053244_k053245.h"
-#include "video/konami_helper.h"
-
-class asterix_state : public driver_device
-{
-public:
- enum
- {
- TIMER_NMI
- };
-
- asterix_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k056832(*this, "k056832"),
- m_k053244(*this, "k053244"),
- m_k053251(*this, "k053251")
- { }
-
- /* video-related */
- int m_sprite_colorbase;
- int m_layer_colorbase[4];
- int m_layerpri[3];
- uint16_t m_spritebank;
- int m_tilebanks[4];
- int m_spritebanks[4];
-
- /* misc */
- uint8_t m_cur_control2;
- uint16_t m_prot[2];
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k056832_device> m_k056832;
- required_device<k05324x_device> m_k053244;
- required_device<k053251_device> m_k053251;
- void control2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_arm_nmi_w(uint8_t data);
- void sound_irq_w(uint16_t data);
- void protection_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void asterix_spritebank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void init_asterix();
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_asterix(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(asterix_interrupt);
- K05324X_CB_MEMBER(sprite_callback);
- K056832_CB_MEMBER(tile_callback);
- void reset_spritebank();
-
- void asterix(machine_config &config);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_ASTERIX_H
diff --git a/src/mame/includes/asteroid.h b/src/mame/includes/asteroid.h
deleted file mode 100644
index bfe0c1e4c22..00000000000
--- a/src/mame/includes/asteroid.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver, Bernd Wiebelt, Allard van der Bas
-/*************************************************************************
-
- Atari Asteroids hardware
-
-*************************************************************************/
-
-#include "sound/discrete.h"
-#include "video/avgdvg.h"
-#include "machine/74153.h"
-#include "machine/er2055.h"
-
-class asteroid_state : public driver_device
-{
-public:
- asteroid_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_dvg(*this, "dvg"),
- m_earom(*this, "earom"),
- m_discrete(*this, "discrete"),
- m_dsw1(*this, "DSW1"),
- m_dsw_sel(*this, "dsw_sel"),
- m_cocktail(*this, "COCKTAIL"),
- m_ram1(*this, "ram1"),
- m_ram2(*this, "ram2"),
- m_sram1(*this, "ram1", 0x100, ENDIANNESS_LITTLE),
- m_sram2(*this, "ram2", 0x100, ENDIANNESS_LITTLE)
- { }
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<dvg_device> m_dvg;
- optional_device<er2055_device> m_earom;
- required_device<discrete_device> m_discrete;
- required_ioport m_dsw1;
- required_device<ttl153_device> m_dsw_sel;
- optional_ioport m_cocktail;
-
- /* memory banks */
- optional_memory_bank m_ram1;
- optional_memory_bank m_ram2;
- memory_share_creator<u8> m_sram1;
- memory_share_creator<u8> m_sram2;
-
- DECLARE_WRITE_LINE_MEMBER(coin_counter_left_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_center_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_right_w);
- uint8_t asteroid_IN0_r(offs_t offset);
- uint8_t asterock_IN0_r(offs_t offset);
- uint8_t asteroid_IN1_r(offs_t offset);
- uint8_t asteroid_DSW1_r(offs_t offset);
- void asteroid_explode_w(uint8_t data);
- void asteroid_thump_w(uint8_t data);
- void asteroid_noise_reset_w(uint8_t data);
- void llander_snd_reset_w(uint8_t data);
- void llander_sounds_w(uint8_t data);
-
- uint8_t earom_read();
- void earom_write(offs_t offset, uint8_t data);
- void earom_control_w(uint8_t data);
-
- DECLARE_READ_LINE_MEMBER(clock_r);
-
- INTERRUPT_GEN_MEMBER(asteroid_interrupt);
- INTERRUPT_GEN_MEMBER(asterock_interrupt);
- INTERRUPT_GEN_MEMBER(llander_interrupt);
-
- DECLARE_WRITE_LINE_MEMBER(cocktail_inv_w);
-
- void init_asterock();
- void init_asteroidb();
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void asteroid_base(machine_config &config);
- void asterock(machine_config &config);
- void asteroid(machine_config &config);
- void llander(machine_config &config);
- void astdelux(machine_config &config);
- void asteroid_sound(machine_config &config);
- void astdelux_sound(machine_config &config);
- void llander_sound(machine_config &config);
- void astdelux_map(address_map &map);
- void asteroid_map(address_map &map);
- void llander_map(address_map &map);
-};
diff --git a/src/mame/includes/astrocde.h b/src/mame/includes/astrocde.h
deleted file mode 100644
index fe42331227b..00000000000
--- a/src/mame/includes/astrocde.h
+++ /dev/null
@@ -1,276 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Mike Coates, Frank Palazzolo, Aaron Giles
-/***************************************************************************
-
- Bally Astrocade-based hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_ASTROCDE_H
-#define MAME_INCLUDES_ASTROCDE_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "sound/astrocde.h"
-#include "sound/samples.h"
-#include "sound/votrax.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define ASTROCADE_CLOCK (XTAL(14'318'181)/2)
-
-#define AC_SOUND_PRESENT (0x01)
-#define AC_LIGHTPEN_INTS (0x02)
-#define AC_STARS (0x04)
-#define AC_MONITOR_BW (0x08)
-
-
-class astrocde_state : public driver_device
-{
-public:
- enum
- {
- TIMER_INTERRUPT_OFF,
- TIMER_SCANLINE
- };
-
- astrocde_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_votrax(*this, "votrax"),
- m_astrocade_sound1(*this, "astrocade1"),
- m_videoram(*this, "videoram"),
- m_protected_ram(*this, "protected_ram"),
- m_nvram(*this, "nvram"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_bank4000(*this, "bank4000"),
- m_bank8000(*this, "bank8000"),
- m_handle(*this, "P%uHANDLE", 1U),
- m_interrupt_scanline(0xff)
- { }
-
- required_device<cpu_device> m_maincpu;
- optional_device<votrax_sc01_device> m_votrax;
- optional_device<astrocade_io_device> m_astrocade_sound1;
- optional_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_protected_ram;
- optional_shared_ptr<uint8_t> m_nvram;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<address_map_bank_device> m_bank4000;
- optional_memory_bank m_bank8000;
- optional_ioport_array<4> m_handle;
-
- uint8_t m_video_config;
- uint8_t m_sparkle[4];
- char m_totalword[256];
- char *m_totalword_ptr;
- char m_oldword[256];
- int m_plural;
- uint8_t m_ram_write_enable;
- uint8_t m_input_select;
- std::unique_ptr<uint8_t[]> m_sparklestar;
- uint8_t m_interrupt_enabl;
- uint8_t m_interrupt_vector;
- uint8_t m_interrupt_scanline;
- uint8_t m_vertical_feedback;
- uint8_t m_horizontal_feedback;
- emu_timer *m_scanline_timer;
- emu_timer *m_intoff_timer;
- uint8_t m_colors[8];
- uint8_t m_colorsplit;
- uint8_t m_bgdata;
- uint8_t m_vblank;
- uint8_t m_video_mode;
- uint8_t m_funcgen_expand_color[2];
- uint8_t m_funcgen_control;
- uint8_t m_funcgen_expand_count;
- uint8_t m_funcgen_rotate_count;
- uint8_t m_funcgen_rotate_data[4];
- uint8_t m_funcgen_shift_prev_data;
- uint8_t m_funcgen_intercept;
- uint16_t m_pattern_source;
- uint8_t m_pattern_mode;
- uint16_t m_pattern_dest;
- uint8_t m_pattern_skip;
- uint8_t m_pattern_width;
- uint8_t m_pattern_height;
- std::unique_ptr<uint16_t[]> m_profpac_videoram;
- uint16_t m_profpac_palette[16];
- uint8_t m_profpac_colormap[4];
- uint8_t m_profpac_intercept;
- uint8_t m_profpac_vispage;
- uint8_t m_profpac_readpage;
- uint8_t m_profpac_readshift;
- uint8_t m_profpac_writepage;
- uint8_t m_profpac_writemode;
- uint16_t m_profpac_writemask;
- uint8_t m_profpac_vw;
- void protected_ram_enable_w(uint8_t data);
- uint8_t protected_ram_r(offs_t offset);
- void protected_ram_w(offs_t offset, uint8_t data);
- uint8_t input_mux_r(offs_t offset);
- template<int Coin> DECLARE_WRITE_LINE_MEMBER(coin_counter_w);
- template<int Bit> DECLARE_WRITE_LINE_MEMBER(sparkle_w);
- DECLARE_WRITE_LINE_MEMBER(gorf_sound_switch_w);
- void profpac_banksw_w(uint8_t data);
- void demndrgn_banksw_w(uint8_t data);
- uint8_t video_register_r(offs_t offset);
- void video_register_w(offs_t offset, uint8_t data);
- void astrocade_funcgen_w(address_space &space, offs_t offset, uint8_t data);
- void expand_register_w(uint8_t data);
- void astrocade_pattern_board_w(offs_t offset, uint8_t data);
- void profpac_page_select_w(uint8_t data);
- uint8_t profpac_intercept_r();
- void profpac_screenram_ctrl_w(offs_t offset, uint8_t data);
- uint8_t profpac_videoram_r(offs_t offset);
- void profpac_videoram_w(offs_t offset, uint8_t data);
- DECLARE_INPUT_CHANGED_MEMBER(spacezap_monitor);
- DECLARE_WRITE_LINE_MEMBER(lightpen_trigger_w);
- void init_profpac();
- void init_spacezap();
- void init_robby();
- void init_wow();
- void init_tenpindx();
- void init_seawolf2();
- void init_demndrgn();
- void init_ebases();
- void init_gorf();
- void astrocade_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(profpac);
- void profpac_palette(palette_device &palette) const;
- uint32_t screen_update_astrocde(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_profpac(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(scanline_callback);
- inline int mame_vpos_to_astrocade_vpos(int scanline);
- void init_savestate();
- void astrocade_trigger_lightpen(uint8_t vfeedback, uint8_t hfeedback);
- inline void increment_source(uint8_t curwidth, uint8_t *u13ff);
- inline void increment_dest(uint8_t curwidth);
- void execute_blit();
- void init_sparklestar();
-
- void votrax_speech_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( votrax_speech_status_r );
-
- void astrocade_base(machine_config &config);
- void astrocade_16color_base(machine_config &config);
- void astrocade_mono_sound(machine_config &config);
- void astrocade_stereo_sound(machine_config &config);
- void spacezap(machine_config &config);
- void gorf(machine_config &config);
- void profpac(machine_config &config);
- void robby(machine_config &config);
- void wow(machine_config &config);
- void bank4000_map(address_map &map);
- void demndrgn_map(address_map &map);
- void port_map(address_map &map);
- void port_map_16col_pattern(address_map &map);
- void port_map_16col_pattern_nosound(address_map &map);
- void port_map_mono_pattern(address_map &map);
- void port_map_stereo_pattern(address_map &map);
- void profpac_bank4000_map(address_map &map);
- void profpac_map(address_map &map);
- void robby_map(address_map &map);
- void seawolf2_map(address_map &map);
- void spacezap_map(address_map &map);
- void wow_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-class seawolf2_state : public astrocde_state
-{
-public:
- seawolf2_state(const machine_config &mconfig, device_type type, const char *tag) :
- astrocde_state(mconfig, type, tag),
- m_samples(*this, "samples")
- { }
-
- void seawolf2(machine_config &config);
-private:
- void sound_1_w(uint8_t data);
- void sound_2_w(uint8_t data);
-
- void port_map_discrete(address_map &map);
-
- virtual void machine_start() override;
-
- required_device<samples_device> m_samples;
- uint8_t m_port_1_last;
- uint8_t m_port_2_last;
-};
-
-class ebases_state : public astrocde_state
-{
-public:
- ebases_state(const machine_config &mconfig, device_type type, const char *tag) :
- astrocde_state(mconfig, type, tag),
- m_trackball(*this, {"TRACKX2", "TRACKY2", "TRACKX1", "TRACKY1"})
- { }
-
- void ebases(machine_config &config);
- DECLARE_CUSTOM_INPUT_MEMBER(trackball_r);
-private:
- void trackball_select_w(uint8_t data);
- void coin_w(uint8_t data);
-
- void ebases_map(address_map &map);
- void port_map_ebases(address_map &map);
-
- required_ioport_array<4> m_trackball;
-};
-
-class demndrgn_state : public astrocde_state
-{
-public:
- demndrgn_state(const machine_config &mconfig, device_type type, const char *tag)
- : astrocde_state(mconfig, type, tag)
- , m_joystick(*this, {"MOVEX", "MOVEY"})
- { }
-
- void demndrgn(machine_config &config);
- DECLARE_CUSTOM_INPUT_MEMBER(joystick_r);
-private:
- DECLARE_WRITE_LINE_MEMBER(input_select_w);
- void sound_w(uint8_t data);
-
- void port_map_16col_pattern_demndrgn(address_map &map);
-
- required_ioport_array<2> m_joystick;
-};
-
-class tenpindx_state : public astrocde_state
-{
-public:
- tenpindx_state(const machine_config &mconfig, device_type type, const char *tag) :
- astrocde_state(mconfig, type, tag),
- m_subcpu(*this, "sub"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void tenpindx(machine_config &config);
-private:
- void lamp_w(offs_t offset, uint8_t data);
- void counter_w(uint8_t data);
- void lights_w(uint8_t data);
-
- virtual void machine_start() override;
-
- void port_map_16col_pattern_tenpindx(address_map &map);
- void sub_io_map(address_map &map);
- void sub_map(address_map &map);
-
- required_device<z80_device> m_subcpu;
- output_finder<19> m_lamps;
-};
-
-#endif // MAME_INCLUDES_ASTROCDE_H
diff --git a/src/mame/includes/astrof.h b/src/mame/includes/astrof.h
deleted file mode 100644
index a7310bc85e9..00000000000
--- a/src/mame/includes/astrof.h
+++ /dev/null
@@ -1,112 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Lee Taylor
-/***************************************************************************
-
- Astro Fighter hardware
-
-****************************************************************************/
-
-#include "machine/timer.h"
-#include "sound/samples.h"
-#include "sound/sn76477.h"
-#include "screen.h"
-
-class astrof_state : public driver_device
-{
-public:
- astrof_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_astrof_color(*this, "astrof_color"),
- m_tomahawk_protection(*this, "tomahawk_prot"),
- m_fake_port(*this, "FAKE"),
- m_maincpu(*this, "maincpu"),
- m_samples(*this, "samples"),
- m_sn(*this, "snsnd"),
- m_screen(*this, "screen") { }
-
- void init_afire();
- void init_abattle();
- void init_sstarbtl();
- void init_acombat3();
- void init_asterion();
-
- void astrof(machine_config &config);
- void abattle(machine_config &config);
- void spfghmk2(machine_config &config);
- void tomahawk(machine_config &config);
- void astrof_audio(machine_config &config);
- void spfghmk2_audio(machine_config &config);
- void tomahawk_audio(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(astrof_p1_controls_r);
- DECLARE_CUSTOM_INPUT_MEMBER(astrof_p2_controls_r);
- DECLARE_CUSTOM_INPUT_MEMBER(tomahawk_controls_r);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
- DECLARE_INPUT_CHANGED_MEMBER(service_coin_inserted);
-
-protected:
- virtual void video_start() override;
-
-private:
- /* video-related */
- required_shared_ptr<uint8_t> m_videoram;
-
- std::unique_ptr<uint8_t[]> m_colorram;
- required_shared_ptr<uint8_t> m_astrof_color;
- optional_shared_ptr<uint8_t> m_tomahawk_protection;
- optional_ioport m_fake_port;
-
- uint8_t m_astrof_palette_bank;
- uint8_t m_red_on;
- uint8_t m_flipscreen;
- uint8_t m_screen_off;
- uint16_t m_abattle_count;
-
- /* sound-related */
- uint8_t m_port_1_last;
- uint8_t m_port_2_last;
- uint8_t m_astrof_start_explosion;
- uint8_t m_astrof_death_playing;
- uint8_t m_astrof_bosskill_playing;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<samples_device> m_samples; // astrof & abattle
- optional_device<sn76477_device> m_sn; // tomahawk
- required_device<screen_device> m_screen;
- uint8_t irq_clear_r();
- void astrof_videoram_w(offs_t offset, uint8_t data);
- void tomahawk_videoram_w(offs_t offset, uint8_t data);
- void video_control_1_w(uint8_t data);
- void astrof_video_control_2_w(uint8_t data);
- void spfghmk2_video_control_2_w(uint8_t data);
- void tomahawk_video_control_2_w(uint8_t data);
- uint8_t shoot_r();
- uint8_t abattle_coin_prot_r();
- uint8_t afire_coin_prot_r();
- uint8_t tomahawk_protection_r();
- void astrof_audio_1_w(uint8_t data);
- void astrof_audio_2_w(uint8_t data);
- void spfghmk2_audio_w(uint8_t data);
- void tomahawk_audio_w(uint8_t data);
- DECLARE_MACHINE_START(astrof);
- DECLARE_MACHINE_START(abattle);
- DECLARE_MACHINE_RESET(abattle);
- DECLARE_MACHINE_START(spfghmk2);
- DECLARE_MACHINE_START(tomahawk);
- uint32_t screen_update_astrof(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tomahawk(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(irq_callback);
- rgb_t make_pen( uint8_t data );
- void astrof_get_pens( pen_t *pens );
- void tomahawk_get_pens( pen_t *pens );
- void astrof_set_video_control_2( uint8_t data );
- void spfghmk2_set_video_control_2( uint8_t data );
- void tomahawk_set_video_control_2( uint8_t data );
- void video_update_common( bitmap_rgb32 &bitmap, const rectangle &cliprect, pen_t *pens, int num_pens );
- void base(machine_config &config);
- void astrof_map(address_map &map);
- void spfghmk2_map(address_map &map);
- void tomahawk_map(address_map &map);
-};
diff --git a/src/mame/includes/asuka.h b/src/mame/includes/asuka.h
deleted file mode 100644
index 0369ebb122c..00000000000
--- a/src/mame/includes/asuka.h
+++ /dev/null
@@ -1,120 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves, Brian Troha
-/*************************************************************************
-
- Asuka & Asuka (+ Taito/Visco games on similar hardware)
-
-*************************************************************************/
-
-#ifndef MAME_INCLUDES_ASUKA_H
-#define MAME_INCLUDES_ASUKA_H
-
-#pragma once
-
-
-#include "machine/taitocchip.h"
-#include "machine/taitoio.h"
-
-#include "sound/msm5205.h"
-#include "machine/74157.h"
-#include "video/pc090oj.h"
-#include "video/tc0100scn.h"
-#include "video/tc0110pcr.h"
-#include "machine/timer.h"
-
-
-class asuka_state : public driver_device
-{
-public:
- enum
- {
- TIMER_CADASH_INTERRUPT5
- };
-
- asuka_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_cadash_shared_ram(*this, "sharedram")
- , m_audiobank(*this, "audiobank")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_cchip(*this, "cchip")
- , m_msm(*this, "msm")
- , m_adpcm_select(*this, "adpcm_select")
- , m_sound_data(*this, "msm")
- , m_pc090oj(*this, "pc090oj")
- , m_tc0100scn(*this, "tc0100scn")
- , m_tc0110pcr(*this, "tc0110pcr")
- , m_tc0220ioc(*this, "tc0220ioc")
- , m_cchip_irq_clear(*this, "cchip_irq_clear")
- { }
-
- void init_cadash();
- void init_earthjkr();
-
- void mofflott(machine_config &config);
- void asuka(machine_config &config);
- void cadash(machine_config &config);
- void eto(machine_config &config);
- void bonzeadv(machine_config &config);
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- // memory pointers
- optional_shared_ptr<u8> m_cadash_shared_ram;
-
- required_memory_bank m_audiobank;
-
- /* misc */
- u16 m_adpcm_pos;
- bool m_adpcm_ff;
-
- emu_timer *m_cadash_int5_timer;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<taito_cchip_device> m_cchip;
- optional_device<msm5205_device> m_msm;
- optional_device<ls157_device> m_adpcm_select;
- optional_region_ptr<u8> m_sound_data;
- required_device<pc090oj_device> m_pc090oj;
- required_device<tc0100scn_device> m_tc0100scn;
- required_device<tc0110pcr_device> m_tc0110pcr;
- optional_device<tc0220ioc_device> m_tc0220ioc;
-
- optional_device<timer_device> m_cchip_irq_clear;
-
- void coin_control_w(u8 data);
- void sound_bankswitch_w(u8 data);
- void msm5205_address_w(u8 data);
- u16 cadash_share_r(offs_t offset);
- void cadash_share_w(offs_t offset, u16 data);
- void msm5205_start_w(u8 data);
- void msm5205_stop_w(u8 data);
- void counters_w(u8 data);
- void asuka_colpri_cb(u32 &sprite_colbank, u32 &pri_mask, u16 sprite_ctrl);
- void bonzeadv_colpri_cb(u32 &sprite_colbank, u32 &pri_mask, u16 sprite_ctrl);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- INTERRUPT_GEN_MEMBER(cadash_interrupt);
- INTERRUPT_GEN_MEMBER(bonze_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(cchip_irq_clear_cb);
-
- DECLARE_WRITE_LINE_MEMBER(asuka_msm5205_vck);
-
- void asuka_map(address_map &map);
- void bonzeadv_map(address_map &map);
- void bonzeadv_z80_map(address_map &map);
- void cadash_map(address_map &map);
- void cadash_sub_io(address_map &map);
- void cadash_sub_map(address_map &map);
- void cadash_z80_map(address_map &map);
- void eto_map(address_map &map);
- void z80_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ASUKA_H
diff --git a/src/mame/includes/atari400.h b/src/mame/includes/atari400.h
deleted file mode 100644
index 4dc151c9f5c..00000000000
--- a/src/mame/includes/atari400.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Juergen Buchmueller
-/******************************************************************************
-
- Atari 400/800
-
- ANTIC video controller
- GTIA graphics television interface adapter
-
- Juergen Buchmueller, June 1998
-
-******************************************************************************/
-
-#ifndef MAME_INCLUDES_ATARI400_H
-#define MAME_INCLUDES_ATARI400_H
-
-#pragma once
-
-#include "machine/6821pia.h"
-#include "machine/ram.h"
-#include "sound/pokey.h"
-#include "video/antic.h"
-#include "video/gtia.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-#include <algorithm>
-
-
-class atari_common_state : public driver_device
-{
-public:
- atari_common_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gtia(*this, "gtia")
- , m_antic(*this, "antic")
- , m_pokey(*this, "pokey")
- , m_screen(*this, "screen")
- , m_keyboard(*this, "keyboard.%u", 0)
- , m_keypad(*this, "keypad.%u", 0)
- , m_djoy_b(*this, "djoy_b")
- , m_fake(*this, "fake")
- { }
-
-protected:
- virtual void video_start() override;
-
- void atari_palette(palette_device &palette) const;
-
- POKEY_INTERRUPT_CB_MEMBER(interrupt_cb);
- POKEY_KEYBOARD_CB_MEMBER(a5200_keypads);
- POKEY_KEYBOARD_CB_MEMBER(a800_keyboard);
-
- required_device<cpu_device> m_maincpu;
- required_device<gtia_device> m_gtia;
- required_device<antic_device> m_antic;
- required_device<pokey_device> m_pokey;
- required_device<screen_device> m_screen;
- optional_ioport_array<8> m_keyboard;
- optional_ioport_array<4> m_keypad;
- optional_ioport m_djoy_b;
- optional_ioport m_fake;
-};
-
-#endif // MAME_INCLUDES_ATARI400_H
diff --git a/src/mame/includes/atarifb.h b/src/mame/includes/atarifb.h
deleted file mode 100644
index 00a3fc05032..00000000000
--- a/src/mame/includes/atarifb.h
+++ /dev/null
@@ -1,137 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour, Patrick Lawrence, Brad Oliver
-/*************************************************************************
-
- Atari Football hardware
-
-*************************************************************************/
-
-#ifndef MAME_INCLUDES_ATARIFB_H
-#define MAME_INCLUDES_ATARIFB_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/discrete.h"
-#include "video/pwm.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-/* Discrete Sound Input Nodes */
-#define ATARIFB_WHISTLE_EN NODE_01
-#define ATARIFB_CROWD_DATA NODE_02
-#define ATARIFB_ATTRACT_EN NODE_03
-#define ATARIFB_NOISE_EN NODE_04
-#define ATARIFB_HIT_EN NODE_05
-
-
-class atarifb_state : public driver_device
-{
-public:
- atarifb_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_led_pwm(*this, "led_pwm"),
- m_leds(*this, "led%u", 0U),
- m_alphap1_videoram(*this, "p1_videoram"),
- m_alphap2_videoram(*this, "p2_videoram"),
- m_field_videoram(*this, "field_videoram"),
- m_spriteram(*this, "spriteram"),
- m_scroll_register(*this, "scroll_register")
- { }
-
- void intack_w(uint8_t data);
- void atarifb_out1_w(uint8_t data);
- void atarifb4_out1_w(uint8_t data);
- void abaseb_out1_w(uint8_t data);
- void soccer_out1_w(uint8_t data);
- void atarifb_out2_w(uint8_t data);
- void soccer_out2_w(uint8_t data);
- void atarifb_out3_w(uint8_t data);
- uint8_t atarifb_in0_r();
- uint8_t atarifb_in2_r();
- uint8_t atarifb4_in0_r();
- uint8_t atarifb4_in2_r();
- void atarifb_alpha1_videoram_w(offs_t offset, uint8_t data);
- void atarifb_alpha2_videoram_w(offs_t offset, uint8_t data);
- void atarifb_field_videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(alpha1_get_tile_info);
- TILE_GET_INFO_MEMBER(alpha2_get_tile_info);
- TILE_GET_INFO_MEMBER(field_get_tile_info);
- void atarifb_palette(palette_device &palette) const;
- uint32_t screen_update_atarifb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_abaseb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_soccer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void get_tile_info_common( tile_data &tileinfo, tilemap_memory_index tile_index, uint8_t *alpha_videoram );
- void draw_playfield_and_alpha( bitmap_ind16 &bitmap, const rectangle &cliprect, int playfield_x_offset, int playfield_y_offset );
- void draw_sprites_atarifb( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_sprites_soccer( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void atarifb4(machine_config &config);
- void atarifb(machine_config &config);
- void soccer(machine_config &config);
- void abaseb(machine_config &config);
- void abaseb_map(address_map &map);
- void atarifb4_map(address_map &map);
- void atarifb_map(address_map &map);
- void soccer_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<pwm_display_device> m_led_pwm;
-
- output_finder<2> m_leds;
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
-
- /* video-related */
- required_shared_ptr<uint8_t> m_alphap1_videoram;
- required_shared_ptr<uint8_t> m_alphap2_videoram;
- required_shared_ptr<uint8_t> m_field_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scroll_register;
-
- tilemap_t *m_alpha1_tilemap;
- tilemap_t *m_alpha2_tilemap;
- tilemap_t *m_field_tilemap;
-
- /* sound-related */
- int m_ctrld;
- int m_sign_x_1;
- int m_sign_y_1;
- int m_sign_x_2;
- int m_sign_y_2;
- int m_sign_x_3;
- int m_sign_y_3;
- int m_sign_x_4;
- int m_sign_y_4;
- int m_counter_x_in0;
- int m_counter_y_in0;
- int m_counter_x_in0b;
- int m_counter_y_in0b;
- int m_counter_x_in2;
- int m_counter_y_in2;
- int m_counter_x_in2b;
- int m_counter_y_in2b;
-};
-
-//----------- defined in audio/atarifb.cpp -----------
-DISCRETE_SOUND_EXTERN( atarifb_discrete );
-DISCRETE_SOUND_EXTERN( abaseb_discrete );
-
-#endif // MAME_INCLUDES_ATARIFB_H
diff --git a/src/mame/includes/atarig1.h b/src/mame/includes/atarig1.h
deleted file mode 100644
index 9b59f019db3..00000000000
--- a/src/mame/includes/atarig1.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari G1 hardware
-
-*************************************************************************/
-
-#include "audio/atarijsa.h"
-#include "machine/adc0808.h"
-#include "machine/atarigen.h"
-#include "machine/slapstic.h"
-#include "machine/timer.h"
-#include "video/atarirle.h"
-#include "cpu/m68000/m68000.h"
-#include "tilemap.h"
-
-class atarig1_state : public atarigen_state
-{
-public:
- atarig1_state(const machine_config &mconfig, device_type type, const char *tag)
- : atarigen_state(mconfig, type, tag),
- m_slapstic(*this, "slapstic"),
- m_slapstic_bank(*this, "slapstic_bank"),
- m_jsa(*this, "jsa"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_rle(*this, "rle"),
- m_adc(*this, "adc"),
- m_in1(*this, "IN1"),
- m_mo_command(*this, "mo_command") { }
-
- optional_device<atari_slapstic_device> m_slapstic;
- optional_memory_bank m_slapstic_bank;
- required_device<atari_jsa_ii_device> m_jsa;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_rle_objects_device> m_rle;
-
- optional_device<adc0808_device> m_adc;
- optional_ioport m_in1;
-
- bool m_is_pitfight;
-
- required_shared_ptr<uint16_t> m_mo_command;
-
- bool m_bslapstic_primed;
-
- int m_pfscroll_xoffset;
- uint16_t m_current_control;
- uint8_t m_playfield_tile_bank;
- uint16_t m_playfield_xscroll;
- uint16_t m_playfield_yscroll;
-
- void video_int_ack_w(uint16_t data = 0);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
- void mo_command_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void a2d_select_w(offs_t offset, uint16_t data);
- uint16_t a2d_data_r();
- void pitfightb_cheap_slapstic_tweak(offs_t offset);
- void update_bank(int bank);
- void init_hydrap();
- void init_hydra();
- void init_pitfight();
- void init_pitfightb();
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- DECLARE_VIDEO_START(atarig1);
- uint32_t screen_update_atarig1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void atarig1(machine_config &config);
- void pfslap111(machine_config &config);
- void pfslap112(machine_config &config);
- void pfslap113(machine_config &config);
- void pfslap114(machine_config &config);
- void pitfightb(machine_config &config);
- void hydrap(machine_config &config);
- void hydra(machine_config &config);
- void main_map(address_map &map);
- void pitfight_map(address_map &map);
- void hydra_map(address_map &map);
-};
diff --git a/src/mame/includes/atarig42.h b/src/mame/includes/atarig42.h
deleted file mode 100644
index 155585e2d5e..00000000000
--- a/src/mame/includes/atarig42.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari G42 hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ATARIG42_H
-#define MAME_INCLUDES_ATARIG42_H
-
-#pragma once
-
-#include "audio/atarijsa.h"
-#include "machine/atarigen.h"
-#include "video/atarirle.h"
-#include "cpu/m68000/m68000.h"
-#include "machine/adc0808.h"
-#include "machine/asic65.h"
-#include "machine/timer.h"
-#include "tilemap.h"
-
-class atarig42_state : public atarigen_state
-{
-public:
- atarig42_state(const machine_config &mconfig, device_type type, const char *tag) :
- atarigen_state(mconfig, type, tag),
- m_jsa(*this, "jsa"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_rle(*this, "rle"),
- m_asic65(*this, "asic65"),
- m_adc(*this, "adc"),
- m_mo_command(*this, "mo_command")
- { }
-
-protected:
- virtual void machine_start() override;
- void video_int_ack_w(uint16_t data = 0);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
- void a2d_select_w(offs_t offset, uint8_t data);
- uint8_t a2d_data_r(offs_t offset);
- void io_latch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void mo_command_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- TILEMAP_MAPPER_MEMBER(atarig42_playfield_scan);
- DECLARE_VIDEO_START(atarig42);
- uint32_t screen_update_atarig42(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void atarig42(machine_config &config);
- void main_map(address_map &map);
-
- required_device<atari_jsa_iii_device> m_jsa;
-
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_rle_objects_device> m_rle;
- required_device<asic65_device> m_asic65;
- optional_device<adc0808_device> m_adc;
-
- uint16_t m_playfield_base;
-
- uint16_t m_current_control;
- uint8_t m_playfield_tile_bank;
- uint8_t m_playfield_color_bank;
- uint16_t m_playfield_xscroll;
- uint16_t m_playfield_yscroll;
-
- required_shared_ptr<uint16_t> m_mo_command;
-
- int m_sloop_bank;
- int m_sloop_next_bank;
- int m_sloop_offset;
- int m_sloop_state;
- uint16_t * m_sloop_base;
-
- uint32_t m_last_accesses[8];
-};
-
-class atarig42_0x200_state : public atarig42_state
-{
-public:
- using atarig42_state::atarig42_state;
- void init_roadriot();
- void atarig42_0x200(machine_config &config);
-
-protected:
- uint16_t roadriot_sloop_data_r(offs_t offset);
- void roadriot_sloop_data_w(offs_t offset, uint16_t data);
- void roadriot_sloop_tweak(int offset);
-};
-
-class atarig42_0x400_state : public atarig42_state
-{
-public:
- using atarig42_state::atarig42_state;
- void init_guardian();
- void atarig42_0x400(machine_config &config);
-
-protected:
- uint16_t guardians_sloop_data_r(offs_t offset);
- void guardians_sloop_data_w(offs_t offset, uint16_t data);
- void guardians_sloop_tweak(int offset);
-};
-
-#endif // MAME_INCLUDES_ATARIG42_H
diff --git a/src/mame/includes/atarigt.h b/src/mame/includes/atarigt.h
deleted file mode 100644
index 16764a7fc12..00000000000
--- a/src/mame/includes/atarigt.h
+++ /dev/null
@@ -1,129 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari GT hardware
-
-*************************************************************************/
-
-#include "audio/cage.h"
-#include "machine/adc0808.h"
-#include "machine/atarigen.h"
-#include "machine/timer.h"
-#include "video/atarirle.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#define CRAM_ENTRIES 0x4000
-#define TRAM_ENTRIES 0x4000
-#define MRAM_ENTRIES 0x8000
-
-#define ADDRSEQ_COUNT 4
-
-class atarigt_state : public atarigen_state
-{
-public:
- atarigt_state(const machine_config &mconfig, device_type type, const char *tag) :
- atarigen_state(mconfig, type, tag),
- m_palette(*this, "palette"),
- m_colorram(*this, "colorram", 0x80000, ENDIANNESS_BIG),
- m_adc(*this, "adc"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_rle(*this, "rle"),
- m_service_io(*this, "SERVICE"),
- m_coin_io(*this, "COIN"),
- m_fake_io(*this, "FAKE"),
- m_mo_command(*this, "mo_command"),
- m_cage(*this, "cage")
- { }
-
- void atarigt(machine_config &config);
- void tmek(machine_config &config);
- void primrage20(machine_config &config);
- void primrage(machine_config &config);
-
- void init_primrage();
- void init_tmek();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
-
- bool m_is_primrage;
- required_device<palette_device> m_palette;
- memory_share_creator<uint16_t> m_colorram;
-
- optional_device<adc0808_device> m_adc;
-
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_rle_objects_device> m_rle;
-
- optional_ioport m_service_io;
- optional_ioport m_coin_io;
- optional_ioport m_fake_io;
-
- bool m_scanline_int_state;
- bool m_video_int_state;
-
- bitmap_ind16 m_pf_bitmap;
- bitmap_ind16 m_an_bitmap;
-
- uint8_t m_playfield_tile_bank;
- uint8_t m_playfield_color_bank;
- uint16_t m_playfield_xscroll;
- uint16_t m_playfield_yscroll;
-
- uint32_t m_tram_checksum;
-
- required_shared_ptr<uint32_t> m_mo_command;
- required_device<atari_cage_device> m_cage;
-
- void (atarigt_state::*m_protection_w)(address_space &space, offs_t offset, uint16_t data);
- void (atarigt_state::*m_protection_r)(address_space &space, offs_t offset, uint16_t *data);
-
- bool m_ignore_writes;
- offs_t m_protaddr[ADDRSEQ_COUNT];
- uint8_t m_protmode;
- uint16_t m_protresult;
- std::unique_ptr<uint8_t[]> m_protdata;
-
- INTERRUPT_GEN_MEMBER(scanline_int_gen);
- DECLARE_WRITE_LINE_MEMBER(video_int_write_line);
- void scanline_int_ack_w(uint32_t data = 0);
- void video_int_ack_w(uint32_t data = 0);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
- uint32_t special_port2_r();
- uint32_t special_port3_r();
- uint8_t analog_port_r(offs_t offset);
- void latch_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void mo_command_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void led_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t sound_data_r(offs_t offset, uint32_t mem_mask = ~0);
- void sound_data_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t colorram_protection_r(address_space &space, offs_t offset, uint32_t mem_mask = ~0);
- void colorram_protection_w(address_space &space, offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void tmek_pf_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- void cage_irq_callback(uint8_t data);
-
- void colorram_w(offs_t address, uint16_t data, uint16_t mem_mask);
- uint16_t colorram_r(offs_t address);
-
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- TILEMAP_MAPPER_MEMBER(playfield_scan);
- uint32_t screen_update_atarigt(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
-
- void tmek_update_mode(offs_t offset);
- void tmek_protection_w(address_space &space, offs_t offset, uint16_t data);
- void tmek_protection_r(address_space &space, offs_t offset, uint16_t *data);
- void primrage_update_mode(offs_t offset);
- void primrage_protection_w(address_space &space, offs_t offset, uint16_t data);
- void primrage_protection_r(address_space &space, offs_t offset, uint16_t *data);
- void compute_fake_pots(int *pots);
-};
diff --git a/src/mame/includes/atarigx2.h b/src/mame/includes/atarigx2.h
deleted file mode 100644
index 0a7c65d2f98..00000000000
--- a/src/mame/includes/atarigx2.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari GX2 hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ATARIGX2_H
-#define MAME_INCLUDES_ATARIGX2_H
-
-#pragma once
-
-#include "audio/atarijsa.h"
-#include "machine/adc0808.h"
-#include "machine/atarigen.h"
-#include "machine/atarixga.h"
-#include "machine/timer.h"
-#include "video/atarirle.h"
-#include "tilemap.h"
-
-
-class atarigx2_state : public atarigen_state
-{
-public:
- atarigx2_state(const machine_config &mconfig, device_type type, const char *tag)
- : atarigen_state(mconfig, type, tag)
- , m_jsa(*this, "jsa")
- , m_xga(*this, "xga")
- , m_mo_command(*this, "mo_command")
- , m_playfield_tilemap(*this, "playfield")
- , m_alpha_tilemap(*this, "alpha")
- , m_rle(*this, "rle")
- , m_adc(*this, "adc")
- { }
-
- void init_spclords();
- void init_rrreveng();
- void init_motofren();
- void atarigx2_0x200(machine_config &config);
- void atarigx2_0x400(machine_config &config);
-
-protected:
- virtual void video_start() override;
- void video_int_ack_w(uint32_t data = 0);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
- uint32_t special_port2_r();
- uint32_t special_port3_r();
- uint8_t a2d_data_r(offs_t offset);
- void latch_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void mo_command_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void atarigx2_protection_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t atarigx2_protection_r(offs_t offset, uint32_t mem_mask = ~0);
- uint32_t rrreveng_prot_r();
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- TILEMAP_MAPPER_MEMBER(atarigx2_playfield_scan);
- uint32_t screen_update_atarigx2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void atarigx2_mo_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void atarigx2(machine_config &config);
- void main_map(address_map &map);
-
-private:
- uint16_t m_playfield_base;
-
- required_device<atari_jsa_iiis_device> m_jsa;
- optional_device<atari_xga_device> m_xga;
-
- required_shared_ptr<uint32_t> m_mo_command;
-
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_rle_objects_device> m_rle;
-
- required_device<adc0808_device> m_adc;
-
- uint16_t m_current_control;
- uint8_t m_playfield_tile_bank;
- uint8_t m_playfield_color_bank;
- uint16_t m_playfield_xscroll;
- uint16_t m_playfield_yscroll;
-
- // LEGACY PROTECTION
- uint16_t m_last_write;
- uint16_t m_last_write_offset;
- uint32_t m_protection_ram[0x1000];
-};
-
-#endif // MAME_INCLUDES_ATARIGX2_H
diff --git a/src/mame/includes/atarist.h b/src/mame/includes/atarist.h
deleted file mode 100644
index 74edcfe33c8..00000000000
--- a/src/mame/includes/atarist.h
+++ /dev/null
@@ -1,485 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder, Olivier Galibert
-#ifndef MAME_INCLUDES_ATARI_ST_H
-#define MAME_INCLUDES_ATARI_ST_H
-
-#pragma once
-
-#include "bus/rs232/rs232.h"
-#include "cpu/m68000/m68000.h"
-#include "cpu/m6800/m6801.h"
-#include "machine/6850acia.h"
-#include "machine/8530scc.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "imagedev/floppy.h"
-#include "machine/mc68901.h"
-#include "machine/ram.h"
-#include "machine/rescap.h"
-#include "machine/rp5c15.h"
-#include "machine/wd_fdc.h"
-#include "sound/ay8910.h"
-#include "sound/lmc1992.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define M68000_TAG "m68000"
-#define HD6301V1_TAG "hd6301"
-#define YM2149_TAG "ym2149"
-#define MC6850_0_TAG "mc6850_0"
-#define MC6850_1_TAG "mc6850_1"
-#define Z8530_TAG "z8530"
-#define COP888_TAG "u703"
-#define RP5C15_TAG "rp5c15"
-#define YM3439_TAG "ym3439"
-#define MC68901_TAG "mc68901"
-#define LMC1992_TAG "lmc1992"
-#define WD1772_TAG "wd1772"
-#define SCREEN_TAG "screen"
-#define CENTRONICS_TAG "centronics"
-#define RS232_TAG "rs232"
-
-// Atari ST
-
-#define Y1 XTAL(2'457'600)
-
-// STBook
-
-#define U517 XTAL(16'000'000)
-#define Y200 XTAL(2'457'600)
-#define Y700 XTAL(10'000'000)
-
-#define DMA_STATUS_DRQ 0x04
-#define DMA_STATUS_SECTOR_COUNT 0x02
-#define DMA_STATUS_ERROR 0x01
-
-#define DMA_MODE_READ_WRITE 0x100
-#define DMA_MODE_FDC_HDC_ACK 0x080
-#define DMA_MODE_ENABLED 0x040
-#define DMA_MODE_SECTOR_COUNT 0x010
-#define DMA_MODE_FDC_HDC_CS 0x008
-#define DMA_MODE_A1 0x004
-#define DMA_MODE_A0 0x002
-#define DMA_MODE_ADDRESS_MASK 0x006
-
-#define DMA_SECTOR_SIZE 512
-
-enum
-{
- IKBD_MOUSE_PHASE_STATIC = 0,
- IKBD_MOUSE_PHASE_POSITIVE,
- IKBD_MOUSE_PHASE_NEGATIVE
-};
-
-class st_state : public driver_device
-{
-public:
- enum
- {
- TIMER_MOUSE_TICK,
- TIMER_SHIFTER_TICK,
- TIMER_GLUE_TICK,
- TIMER_BLITTER_TICK
- };
-
- st_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, M68000_TAG),
- m_ikbd(*this, HD6301V1_TAG),
- m_fdc(*this, WD1772_TAG),
- m_floppy(*this, WD1772_TAG ":%u", 0U),
- m_mfp(*this, MC68901_TAG),
- m_acia(*this, {MC6850_0_TAG, MC6850_1_TAG}),
- m_centronics(*this, CENTRONICS_TAG),
- m_cart(*this, "cartslot"),
- m_ram(*this, RAM_TAG),
- m_rs232(*this, RS232_TAG),
- m_ymsnd(*this, YM2149_TAG),
- m_p31(*this, "P31"),
- m_p32(*this, "P32"),
- m_p33(*this, "P33"),
- m_p34(*this, "P34"),
- m_p35(*this, "P35"),
- m_p36(*this, "P36"),
- m_p37(*this, "P37"),
- m_p40(*this, "P40"),
- m_p41(*this, "P41"),
- m_p42(*this, "P42"),
- m_p43(*this, "P43"),
- m_p44(*this, "P44"),
- m_p45(*this, "P45"),
- m_p46(*this, "P46"),
- m_p47(*this, "P47"),
- m_joy0(*this, "IKBD_JOY0"),
- m_joy1(*this, "IKBD_JOY1"),
- m_mousex(*this, "IKBD_MOUSEX"),
- m_mousey(*this, "IKBD_MOUSEY"),
- m_config(*this, "config"),
- m_ikbd_mouse_x(0),
- m_ikbd_mouse_y(0),
- m_ikbd_mouse_px(IKBD_MOUSE_PHASE_STATIC),
- m_ikbd_mouse_py(IKBD_MOUSE_PHASE_STATIC),
- m_ikbd_mouse_pc(0),
- m_ikbd_joy(1),
- m_monochrome(1),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_led(*this, "led1")
- { }
-
- DECLARE_WRITE_LINE_MEMBER( write_monochrome );
-
- void st(machine_config &config);
-
-protected:
- required_device<m68000_base_device> m_maincpu;
- required_device<cpu_device> m_ikbd;
- required_device<wd1772_device> m_fdc;
- required_device_array<floppy_connector, 2> m_floppy;
- required_device<mc68901_device> m_mfp;
- required_device_array<acia6850_device, 2> m_acia;
- required_device<centronics_device> m_centronics;
- required_device<generic_slot_device> m_cart;
- required_device<ram_device> m_ram;
- required_device<rs232_port_device> m_rs232;
- required_device<ym2149_device> m_ymsnd;
- required_ioport m_p31;
- required_ioport m_p32;
- required_ioport m_p33;
- required_ioport m_p34;
- required_ioport m_p35;
- required_ioport m_p36;
- required_ioport m_p37;
- required_ioport m_p40;
- required_ioport m_p41;
- required_ioport m_p42;
- required_ioport m_p43;
- required_ioport m_p44;
- required_ioport m_p45;
- required_ioport m_p46;
- required_ioport m_p47;
- optional_ioport m_joy0;
- optional_ioport m_joy1;
- optional_ioport m_mousex;
- optional_ioport m_mousey;
- optional_ioport m_config;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- // video
- uint8_t shifter_base_r(offs_t offset);
- uint8_t shifter_counter_r(offs_t offset);
- uint8_t shifter_sync_r();
- uint16_t shifter_palette_r(offs_t offset);
- uint8_t shifter_mode_r();
-
- void shifter_base_w(offs_t offset, uint8_t data);
- void shifter_sync_w(uint8_t data);
- void shifter_palette_w(offs_t offset, uint16_t data);
- void shifter_mode_w(uint8_t data);
-
- uint16_t blitter_halftone_r(offs_t offset);
- uint16_t blitter_src_inc_x_r();
- uint16_t blitter_src_inc_y_r();
- uint16_t blitter_src_r(offs_t offset);
- uint16_t blitter_end_mask_r(offs_t offset);
- uint16_t blitter_dst_inc_x_r();
- uint16_t blitter_dst_inc_y_r();
- uint16_t blitter_dst_r(offs_t offset);
- uint16_t blitter_count_x_r();
- uint16_t blitter_count_y_r();
- uint16_t blitter_op_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t blitter_ctrl_r(offs_t offset, uint16_t mem_mask = ~0);
-
- void blitter_halftone_w(offs_t offset, uint16_t data);
- void blitter_src_inc_x_w(uint16_t data);
- void blitter_src_inc_y_w(uint16_t data);
- void blitter_src_w(offs_t offset, uint16_t data);
- void blitter_end_mask_w(offs_t offset, uint16_t data);
- void blitter_dst_inc_x_w(uint16_t data);
- void blitter_dst_inc_y_w(uint16_t data);
- void blitter_dst_w(offs_t offset, uint16_t data);
- void blitter_count_x_w(uint16_t data);
- void blitter_count_y_w(uint16_t data);
- void blitter_op_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void blitter_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void mouse_tick();
- inline pen_t shift_mode_0();
- inline pen_t shift_mode_1();
- inline pen_t shift_mode_2();
- void shifter_tick();
- inline void shifter_load();
- inline void draw_pixel(int x, int y, u32 pen);
- void glue_tick();
- void set_screen_parameters();
- void blitter_source();
- uint16_t blitter_hop();
- void blitter_op(uint16_t s, uint32_t dstaddr, uint16_t mask);
- void blitter_tick();
-
- // driver
- uint16_t fdc_data_r(offs_t offset);
- void fdc_data_w(offs_t offset, uint16_t data);
- uint16_t dma_status_r();
- void dma_mode_w(uint16_t data);
- uint8_t dma_counter_r(offs_t offset);
- void dma_base_w(offs_t offset, uint8_t data);
- uint8_t mmu_r();
- void mmu_w(uint8_t data);
- uint16_t berr_r();
- void berr_w(uint16_t data);
- uint8_t ikbd_port1_r();
- uint8_t ikbd_port2_r();
- void ikbd_port2_w(uint8_t data);
- void ikbd_port3_w(uint8_t data);
- uint8_t ikbd_port4_r();
- void ikbd_port4_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
-
- void psg_pa_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER( ikbd_tx_w );
-
- DECLARE_WRITE_LINE_MEMBER( reset_w );
-
- void toggle_dma_fifo();
- void flush_dma_fifo();
- void fill_dma_fifo();
- void fdc_dma_transfer();
-
- void configure_memory();
- void state_save();
-
- /* memory state */
- uint8_t m_mmu;
-
- /* keyboard state */
- uint16_t m_ikbd_keylatch;
- uint8_t m_ikbd_mouse;
- uint8_t m_ikbd_mouse_x;
- uint8_t m_ikbd_mouse_y;
- uint8_t m_ikbd_mouse_px;
- uint8_t m_ikbd_mouse_py;
- uint8_t m_ikbd_mouse_pc;
- int m_ikbd_tx;
- int m_ikbd_joy;
- int m_midi_tx;
-
- /* floppy state */
- uint32_t m_dma_base;
- uint16_t m_dma_error;
- uint16_t m_fdc_mode;
- uint8_t m_fdc_sectors;
- uint16_t m_fdc_fifo[2][8];
- int m_fdc_fifo_sel;
- int m_fdc_fifo_index;
- int m_fdc_fifo_msb;
- int m_fdc_fifo_empty[2];
- int m_fdc_dmabytes;
-
- /* shifter state */
- uint32_t m_shifter_base;
- uint32_t m_shifter_ofs;
- uint8_t m_shifter_sync;
- uint8_t m_shifter_mode;
- uint16_t m_shifter_palette[16];
- uint16_t m_shifter_rr[4];
- uint16_t m_shifter_ir[4];
- int m_shifter_bitplane;
- int m_shifter_shift;
- int m_shifter_h;
- int m_shifter_v;
- int m_shifter_de;
- int m_shifter_x_start;
- int m_shifter_x_end;
- int m_shifter_y_start;
- int m_shifter_y_end;
- int m_shifter_hblank_start;
- int m_shifter_vblank_start;
-
- /* blitter state */
- uint16_t m_blitter_halftone[16];
- int16_t m_blitter_src_inc_x;
- int16_t m_blitter_src_inc_y;
- int16_t m_blitter_dst_inc_x;
- int16_t m_blitter_dst_inc_y;
- uint32_t m_blitter_src;
- uint32_t m_blitter_dst;
- uint16_t m_blitter_endmask1;
- uint16_t m_blitter_endmask2;
- uint16_t m_blitter_endmask3;
- uint16_t m_blitter_xcount;
- uint16_t m_blitter_ycount;
- uint16_t m_blitter_xcountl;
- uint8_t m_blitter_hop;
- uint8_t m_blitter_op;
- uint8_t m_blitter_ctrl;
- uint8_t m_blitter_skew;
- uint32_t m_blitter_srcbuf;
-
- /* timers */
- emu_timer *m_mouse_timer;
- emu_timer *m_glue_timer;
- emu_timer *m_shifter_timer;
-
- bitmap_rgb32 m_bitmap;
-
- static void floppy_formats(format_registration &fr);
-
- int m_monochrome;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- void common(machine_config &config);
- void ikbd_map(address_map &map);
- void cpu_space_map(address_map &map);
- void st_map(address_map &map);
- void keyboard(machine_config &config);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void video_start() override;
-
- output_finder<> m_led;
-};
-
-class megast_state : public st_state
-{
-public:
- megast_state(const machine_config &mconfig, device_type type, const char *tag)
- : st_state(mconfig, type, tag)
- { }
-
- uint16_t fpu_r();
- void fpu_w(uint16_t data);
- void megast(machine_config &config);
- void megast_map(address_map &map);
-};
-
-class ste_state : public st_state
-{
-public:
- enum
- {
- TIMER_DMASOUND_TICK,
- TIMER_MICROWIRE_TICK
- };
-
- ste_state(const machine_config &mconfig, device_type type, const char *tag)
- : st_state(mconfig, type, tag),
- m_lmc1992(*this, LMC1992_TAG)
- { }
-
- optional_device<lmc1992_device> m_lmc1992;
-
- uint8_t shifter_base_low_r();
- void shifter_base_low_w(uint8_t data);
- uint8_t shifter_counter_r(offs_t offset);
- void shifter_counter_w(offs_t offset, uint8_t data);
- void shifter_palette_w(offs_t offset, uint16_t data);
- uint8_t shifter_lineofs_r();
- void shifter_lineofs_w(uint8_t data);
- uint8_t shifter_pixelofs_r();
- void shifter_pixelofs_w(uint8_t data);
-
- uint8_t sound_dma_control_r();
- uint8_t sound_dma_base_r(offs_t offset);
- uint8_t sound_dma_counter_r(offs_t offset);
- uint8_t sound_dma_end_r(offs_t offset);
- uint8_t sound_mode_r();
- void sound_dma_control_w(uint8_t data);
- void sound_dma_base_w(offs_t offset, uint8_t data);
- void sound_dma_end_w(offs_t offset, uint8_t data);
- void sound_mode_w(uint8_t data);
- uint16_t microwire_data_r();
- void microwire_data_w(uint16_t data);
- uint16_t microwire_mask_r();
- void microwire_mask_w(uint16_t data);
-
- DECLARE_WRITE_LINE_MEMBER( write_monochrome );
-
- void dmasound_set_state(int level);
- void dmasound_tick();
- void microwire_shift();
- void microwire_tick();
- void state_save();
-
- // shifter state
- uint8_t m_shifter_lineofs;
- uint8_t m_shifter_pixelofs;
-
- /* microwire state */
- uint16_t m_mw_data;
- uint16_t m_mw_mask;
- int m_mw_shift;
-
- /* DMA sound state */
- uint32_t m_dmasnd_base;
- uint32_t m_dmasnd_end;
- uint32_t m_dmasnd_cntr;
- uint32_t m_dmasnd_baselatch;
- uint32_t m_dmasnd_endlatch;
- uint8_t m_dmasnd_ctrl;
- uint8_t m_dmasnd_mode;
- uint8_t m_dmasnd_fifo[8];
- uint8_t m_dmasnd_samples;
- int m_dmasnd_active;
-
- // timers
- emu_timer *m_microwire_timer;
- emu_timer *m_dmasound_timer;
-
- void falcon40(machine_config &config);
- void tt030(machine_config &config);
- void falcon(machine_config &config);
- void ste(machine_config &config);
- void ste_map(address_map &map);
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void video_start() override;
-};
-
-class megaste_state : public ste_state
-{
-public:
- megaste_state(const machine_config &mconfig, device_type type, const char *tag)
- : ste_state(mconfig, type, tag)
- { }
-
- uint16_t cache_r();
- void cache_w(uint16_t data);
-
- uint16_t m_cache;
- void megaste(machine_config &config);
- void megaste_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
-};
-
-class stbook_state : public ste_state
-{
-public:
- stbook_state(const machine_config &mconfig, device_type type, const char *tag)
- : ste_state(mconfig, type, tag),
- m_sw400(*this, "SW400")
- { }
-
- required_ioport m_sw400;
-
- uint16_t config_r();
- void lcd_control_w(uint16_t data);
-
- void psg_pa_w(uint8_t data);
- uint8_t mfp_gpio_r();
- void stbook_map(address_map &map);
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-};
-
-#endif // MAME_INCLUDES_ATARI_ST_H
diff --git a/src/mame/includes/atarisy1.h b/src/mame/includes/atarisy1.h
deleted file mode 100644
index 32247fee4cb..00000000000
--- a/src/mame/includes/atarisy1.h
+++ /dev/null
@@ -1,167 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari System 1 hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ATARISY1_H
-#define MAME_INCLUDES_ATARISY1_H
-
-#pragma once
-
-#include "machine/6522via.h"
-#include "machine/74259.h"
-#include "machine/adc0808.h"
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "machine/slapstic.h"
-#include "machine/timer.h"
-#include "sound/tms5220.h"
-#include "sound/ym2151.h"
-#include "video/atarimo.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class atarisy1_state : public driver_device
-{
-public:
- atarisy1_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_soundlatch(*this, "soundlatch")
- , m_mainlatch(*this, "mainlatch")
- , m_slapstic(*this, "slapstic")
- , m_slapstic_bank(*this, "slapstic_bank")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_mob(*this, "mob")
- , m_palette(*this, "palette")
- , m_adc(*this, "adc")
- , m_ajsint(*this, "ajsint")
- , m_playfield_tilemap(*this, "playfield")
- , m_alpha_tilemap(*this, "alpha")
- , m_xscroll(*this, "xscroll")
- , m_yscroll(*this, "yscroll")
- , m_yscroll_reset_timer(*this, "yreset_timer")
- , m_scanline_timer(*this, "scan_timer")
- , m_int3off_timer(*this, "int3off_timer")
- , m_tms(*this, "tms")
- , m_outlatch(*this, "outlatch")
- , m_via(*this, "via")
- { }
-
- void indytemp(machine_config &config);
- void roadb110(machine_config &config);
- void peterpak(machine_config &config);
- void roadrunn(machine_config &config);
- void roadb109(machine_config &config);
- void marble(machine_config &config);
-
- void init_roadblst();
- void init_peterpak();
- void init_marble();
- void init_roadrunn();
- void init_indytemp();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_mainlatch;
- required_device<atari_slapstic_device> m_slapstic;
- required_memory_bank m_slapstic_bank;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<atari_motion_objects_device> m_mob;
- required_device<palette_device> m_palette;
-
- uint8_t m_joystick_type;
- uint8_t m_trackball_type;
-
- optional_device<adc0808_device> m_adc;
- optional_device<input_merger_device> m_ajsint;
-
- // playfield parameters
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_shared_ptr<uint16_t> m_xscroll;
- required_shared_ptr<uint16_t> m_yscroll;
- uint16_t m_playfield_lookup[256];
- uint8_t m_playfield_tile_bank;
- uint16_t m_playfield_priority_pens;
- required_device<timer_device> m_yscroll_reset_timer;
-
- // INT3 tracking
- int m_next_timer_scanline;
- required_device<timer_device> m_scanline_timer;
- required_device<timer_device> m_int3off_timer;
- uint8_t m_scanline_int_state;
-
- // speech
- optional_device<tms5220_device> m_tms;
-
- required_device<ls259_device> m_outlatch;
- optional_device<via6522_device> m_via;
-
- // graphics bank tracking
- uint8_t m_bank_gfx[3][8];
- uint8_t m_bank_color_shift[MAX_GFX_ELEMENTS];
- uint8_t m_bankselect;
-
- uint8_t m_cur[2][2];
-
- void video_int_ack_w(uint8_t data = 0);
- template<int Input> uint8_t digital_joystick_r();
- uint8_t adc_r(offs_t offset);
- void adc_w(offs_t offset, uint8_t data);
- uint16_t trakball_r(offs_t offset);
- uint8_t switch_6502_r();
- DECLARE_WRITE_LINE_MEMBER(coin_counter_right_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_left_w);
- void via_pb_w(uint8_t data);
- uint8_t via_pb_r();
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- uint32_t screen_update_atarisy1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(reset_yscroll_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(int3off_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(int3_callback);
- virtual void update_timers(int scanline);
- void decode_gfx(uint16_t *pflookup, uint16_t *molookup);
- int get_bank(uint8_t prom1, uint8_t prom2, int bpp);
- uint16_t atarisy1_int3state_r();
- void atarisy1_spriteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bankselect_w(uint8_t data);
- void atarisy1_xscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void atarisy1_yscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void atarisy1_priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- static const atari_motion_objects_config s_mob_config;
- void add_adc(machine_config &config);
- void add_speech(machine_config &config);
- void atarisy1(machine_config &config);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_ext_map(address_map &map);
-
- void init_slapstic();
-};
-
-class atarisy1r_state : public atarisy1_state
-{
-public:
- using atarisy1_state::atarisy1_state;
-
- virtual void update_timers(int scanline) override;
-};
-
-#endif // MAME_INCLUDES_ATARISY1_H
diff --git a/src/mame/includes/atarisy2.h b/src/mame/includes/atarisy2.h
deleted file mode 100644
index 428ea47baba..00000000000
--- a/src/mame/includes/atarisy2.h
+++ /dev/null
@@ -1,163 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari System 2 hardware
-
-*************************************************************************/
-
-#include "cpu/m6502/m6502.h"
-#include "cpu/t11/t11.h"
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "machine/slapstic.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "sound/pokey.h"
-#include "sound/tms5220.h"
-#include "sound/ym2151.h"
-#include "video/atarimo.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class atarisy2_state : public driver_device
-{
-public:
- atarisy2_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_mob(*this, "mob")
- , m_slapstic_region(*this, "maincpu")
- , m_playfield_tilemap(*this, "playfield")
- , m_alpha_tilemap(*this, "alpha")
- , m_xscroll(*this, "xscroll")
- , m_yscroll(*this, "yscroll")
- , m_soundlatch(*this, "soundlatch")
- , m_mainlatch(*this, "mainlatch")
- , m_ym2151(*this, "ymsnd")
- , m_pokey(*this, "pokey%u", 1U)
- , m_tms5220(*this, "tms")
- , m_rombank(*this, "rombank%u", 1U)
- , m_slapstic(*this, "slapstic")
- , m_vmmu(*this, "vmmu")
- , m_playfieldt(*this, "playfieldt")
- , m_playfieldb(*this, "playfieldb")
- , m_leds(*this, "led%u", 0U)
- { }
-
- void init_ssprint();
- void init_apb();
- void init_csprint();
- void init_paperboy();
- void init_720();
-
- void atarisy2(machine_config &config);
- void apb(machine_config &config);
- void paperboy(machine_config &config);
- void ssprint(machine_config &config);
- void _720(machine_config &config);
- void csprint(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void device_post_load() override;
- virtual void video_start() override;
-
-private:
- void update_interrupts();
-
- required_device<t11_device> m_maincpu;
- required_device<m6502_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<atari_motion_objects_device> m_mob;
- required_region_ptr<uint16_t> m_slapstic_region;
-
- uint8_t m_interrupt_enable;
-
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_shared_ptr<uint16_t> m_xscroll;
- required_shared_ptr<uint16_t> m_yscroll;
-
- int8_t m_pedal_count;
-
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_mainlatch;
- required_device<ym2151_device> m_ym2151;
- required_device_array<pokey_device, 2> m_pokey;
- optional_device<tms5220_device> m_tms5220;
-
- bool m_scanline_int_state;
- bool m_video_int_state;
- bool m_p2portwr_state;
- bool m_p2portrd_state;
-
- required_memory_bank_array<2> m_rombank;
- required_device<atari_slapstic_device> m_slapstic;
- memory_view m_vmmu;
- required_shared_ptr<uint16_t> m_playfieldt;
- required_shared_ptr<uint16_t> m_playfieldb;
-
- uint8_t m_sound_reset_state;
-
- emu_timer * m_yscroll_reset_timer;
- uint32_t m_playfield_tile_bank[2];
-
- // 720 fake joystick
- double m_joy_last_angle;
- int m_joy_rotations;
-
- // 720 fake spinner
- uint32_t m_spin_last_rotate_count;
- int32_t m_spin_pos; /* track fake position of spinner */
- uint32_t m_spin_center_count;
-
- output_finder<2> m_leds;
-
- void scanline_int_ack_w(uint8_t data);
- void video_int_ack_w(uint8_t data);
- void int0_ack_w(uint8_t data);
- void sound_reset_w(uint8_t data);
- void int_enable_w(uint8_t data);
- INTERRUPT_GEN_MEMBER(sound_irq_gen);
- void sound_irq_ack_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(boost_interleave_hack);
- void bankselect_w(offs_t offset, uint16_t data);
- uint16_t switch_r();
- uint8_t switch_6502_r();
- void switch_6502_w(uint8_t data);
- uint8_t leta_r(offs_t offset);
- void mixer_w(uint8_t data);
- void sndrst_6502_w(uint8_t data);
- uint16_t sound_r();
- void sound_6502_w(uint8_t data);
- uint8_t sound_6502_r();
- void tms5220_w(uint8_t data);
- void tms5220_strobe_w(offs_t offset, uint8_t data);
- void coincount_w(uint8_t data);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
-
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- uint32_t screen_update_atarisy2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_int);
- TIMER_CALLBACK_MEMBER(delayed_int_enable_w);
- TIMER_CALLBACK_MEMBER(reset_yscroll_callback);
- void yscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void xscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void spriteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void playfieldt_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void playfieldb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- static rgb_t RRRRGGGGBBBBIIII(uint32_t raw);
-
- static const atari_motion_objects_config s_mob_config;
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/atetris.h b/src/mame/includes/atetris.h
deleted file mode 100644
index 52b57c075bc..00000000000
--- a/src/mame/includes/atetris.h
+++ /dev/null
@@ -1,112 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari, Aaron Giles
-/*************************************************************************
-
- Atari Tetris hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ATETRIS_H
-#define MAME_INCLUDES_ATETRIS_H
-
-#pragma once
-
-#include "cpu/mcs48/mcs48.h"
-#include "machine/gen_latch.h"
-#include "machine/slapstic.h"
-#include "sound/sn76496.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class atetris_state : public driver_device
-{
-public:
- atetris_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_slapstic(*this, "slapstic"),
- m_slapstic_bank(*this, "slapstic_bank"),
- m_slapstic_region(*this, "maincpu"),
- m_videoram(*this, "videoram")
- {
- }
-
- void atetris_base(machine_config &config);
- void atetris_pokey(machine_config &config);
- void atetris(machine_config &config);
- void atetrisb2(machine_config &config);
-
- void init_atetris();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- optional_device<atari_slapstic_device> m_slapstic;
- optional_memory_bank m_slapstic_bank;
- required_region_ptr<uint8_t> m_slapstic_region;
-
- required_shared_ptr<uint8_t> m_videoram;
-
- emu_timer *m_interrupt_timer;
- tilemap_t *m_bg_tilemap;
-
- void irq_ack_w(uint8_t data);
- void coincount_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(interrupt_gen);
- void reset_bank();
-
- void atetrisb2_map(address_map &map);
- void main_map(address_map &map);
-};
-
-class atetris_bartop_state : public atetris_state
-{
-public:
- atetris_bartop_state(const machine_config &mconfig, device_type type, const char *tag) :
- atetris_state(mconfig, type, tag)
- {
- }
-
- void atetrisbp(machine_config &config);
-
-private:
- void output_w(uint8_t data);
-
- void atetrisbp_map(address_map &map);
-};
-
-class atetris_mcu_state : public atetris_state
-{
-public:
- atetris_mcu_state(const machine_config &mconfig, device_type type, const char *tag) :
- atetris_state(mconfig, type, tag),
- m_mcu(*this, "mcu"),
- m_soundlatch(*this, "soundlatch%u", 1U),
- m_sn(*this, "sn%u", 1U)
- {
- }
-
- void atetrisb3(machine_config &config);
-
-private:
- uint8_t mcu_bus_r();
- void mcu_p2_w(uint8_t data);
- void mcu_reg_w(offs_t offset, uint8_t data);
-
- void atetrisb3_map(address_map &map);
-
- required_device<i8749_device> m_mcu;
- required_device_array<generic_latch_8_device, 2> m_soundlatch;
- required_device_array<sn76496_base_device, 4> m_sn;
-};
-
-#endif // MAME_INCLUDES_ATETRIS_H
diff --git a/src/mame/includes/atom.h b/src/mame/includes/atom.h
deleted file mode 100644
index f208daec2f7..00000000000
--- a/src/mame/includes/atom.h
+++ /dev/null
@@ -1,146 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods
-#ifndef MAME_INCLUDES_ATOM_H
-#define MAME_INCLUDES_ATOM_H
-
-#pragma once
-
-
-#include "cpu/m6502/m6502.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "imagedev/snapquik.h"
-#include "machine/6522via.h"
-#include "machine/i8255.h"
-#include "machine/i8271.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "sound/spkrdev.h"
-#include "video/mc6847.h"
-
-#include "bus/centronics/ctronics.h"
-#include "bus/generic/carts.h"
-#include "bus/generic/slot.h"
-
-#include "formats/atom_dsk.h"
-#include "formats/atom_tap.h"
-#include "formats/uef_cas.h"
-
-
-#define SY6502_TAG "ic22"
-#define INS8255_TAG "ic25"
-#define MC6847_TAG "ic31"
-#define R6522_TAG "ic1"
-#define I8271_TAG "ic13"
-#define MC6854_TAG "econet_ic1"
-#define CENTRONICS_TAG "centronics"
-#define BASERAM_TAG "baseram"
-
-
-#define X1 XTAL(3'579'545) // MC6847 Clock
-#define X2 XTAL(4'000'000) // CPU Clock - a divider reduces it to 1MHz
-
-class atom_state : public driver_device
-{
-public:
- atom_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, SY6502_TAG)
- , m_vdg(*this, MC6847_TAG)
- , m_cassette(*this, "cassette")
- , m_fdc(*this, I8271_TAG)
- , m_centronics(*this, CENTRONICS_TAG)
- , m_speaker(*this, "speaker")
- , m_cart(*this, "cartslot")
- , m_vram(*this, "videoram")
- , m_io_keyboard(*this, "Y%u", 0U)
- , m_ppi(*this, INS8255_TAG)
- , m_via(*this, R6522_TAG)
- { }
-
- void atombb(machine_config &config);
- void atom(machine_config &config);
- void atom_common(machine_config &config);
- DECLARE_INPUT_CHANGED_MEMBER( trigger_reset );
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<mc6847_base_device> m_vdg;
- required_device<cassette_image_device> m_cassette;
- optional_device<i8271_device> m_fdc;
- required_device<centronics_device> m_centronics;
- required_device<speaker_sound_device> m_speaker;
- optional_device<generic_slot_device> m_cart;
- required_shared_ptr<uint8_t> m_vram;
- required_ioport_array<12> m_io_keyboard;
- required_device<i8255_device> m_ppi;
- required_device<via6522_device> m_via;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void ppi_pa_w(uint8_t data);
- uint8_t ppi_pb_r();
- uint8_t ppi_pc_r();
- void ppi_pc_w(uint8_t data);
- uint8_t vdg_videoram_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER( atom_8271_interrupt_callback );
- DECLARE_WRITE_LINE_MEMBER( motor_w );
-
- /* keyboard state */
- u8 m_keylatch;
-
- /* cassette state */
- bool m_hz2400;
- bool m_pc0;
- bool m_pc1;
-
- /* devices */
- bool m_previous_i8271_int_state;
- static void floppy_formats(format_registration &fr);
- DECLARE_WRITE_LINE_MEMBER(cassette_output_tick);
-
- image_init_result load_cart(device_image_interface &image, generic_slot_device &slot);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load) { return load_cart(image, *m_cart); }
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
- void atom_mem(address_map &map);
- void atombb_mem(address_map &map);
- void prophet_mem(address_map &map);
-};
-
-class atomeb_state : public atom_state
-{
-public:
- atomeb_state(const machine_config &mconfig, device_type type, const char *tag)
- : atom_state(mconfig, type, tag)
- , m_ext(*this, "rom_a%x", 0)
- , m_e0(*this, "rom_e0")
- , m_e1(*this, "rom_e1")
- {
- }
-
- void atomeb(machine_config &config);
-
-private:
- void machine_start() override;
- void machine_reset() override;
-
- uint8_t eprom_r();
- void eprom_w(uint8_t data);
- uint8_t ext_r(offs_t offset);
- uint8_t dos_r(offs_t offset);
-
- /* eprom state */
- u8 m_eprom;
-
- required_device_array<generic_slot_device, 16> m_ext;
- required_device<generic_slot_device> m_e0;
- required_device<generic_slot_device> m_e1;
-
- template<int I> DECLARE_DEVICE_IMAGE_LOAD_MEMBER(ext_load) { return load_cart(image, *m_ext[I]); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(e0_load) { return load_cart(image, *m_e0); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(e1_load) { return load_cart(image, *m_e1); }
- void atomeb_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ATOM_H
diff --git a/src/mame/includes/aussiebyte.h b/src/mame/includes/aussiebyte.h
deleted file mode 100644
index c5f6053d2f1..00000000000
--- a/src/mame/includes/aussiebyte.h
+++ /dev/null
@@ -1,157 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Robbbert
-#ifndef MAME_INCLUDES_AUSSIEBYTE_H
-#define MAME_INCLUDES_AUSSIEBYTE_H
-
-#pragma once
-
-/***********************************************************
-
- Includes
-
-************************************************************/
-#include "bus/centronics/ctronics.h"
-#include "bus/rs232/rs232.h"
-
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-
-#include "imagedev/floppy.h"
-#include "machine/msm5832.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80ctc.h"
-#include "machine/z80sio.h"
-#include "machine/z80dma.h"
-#include "machine/z80pio.h"
-
-#include "sound/spkrdev.h"
-#include "sound/votrax.h"
-
-#include "video/mc6845.h"
-
-#include "imagedev/snapquik.h"
-
-#include "emupal.h"
-
-
-
-/***********************************************************
-
- Class
-
-************************************************************/
-class aussiebyte_state : public driver_device
-{
-public:
- aussiebyte_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_palette(*this, "palette")
- , m_maincpu(*this, "maincpu")
- , m_bankr0(*this, "bankr0")
- , m_bankw0(*this, "bankw0")
- , m_bank1(*this, "bank1")
- , m_bank2(*this, "bank2")
- , m_p_chargen(*this, "chargen")
- , m_p_mram(*this, "mram", 0x40000, ENDIANNESS_LITTLE)
- , m_p_videoram(*this, "vram", 0x10000, ENDIANNESS_LITTLE)
- , m_p_attribram(*this, "aram", 0x800, ENDIANNESS_LITTLE)
- , m_ctc(*this, "ctc")
- , m_dma(*this, "dma")
- , m_pio1(*this, "pio1")
- , m_pio2(*this, "pio2")
- , m_centronics(*this, "centronics")
- , m_rs232(*this, "rs232")
- , m_fdc(*this, "fdc")
- , m_floppy0(*this, "fdc:0")
- , m_floppy1(*this, "fdc:1")
- , m_crtc(*this, "crtc")
- , m_speaker(*this, "speaker")
- , m_votrax(*this, "votrax")
- , m_rtc(*this, "rtc")
- { }
-
- void aussiebyte(machine_config &config);
-
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- u8 memory_read_byte(offs_t offset);
- void memory_write_byte(offs_t offset, u8 data);
- u8 io_read_byte(offs_t offset);
- void io_write_byte(offs_t offset, u8 data);
- void port15_w(u8 data);
- void port16_w(u8 data);
- void port17_w(u8 data);
- void port18_w(u8 data);
- u8 port19_r();
- void port1a_w(u8 data);
- void port1b_w(u8 data);
- void port1c_w(u8 data);
- void port20_w(u8 data);
- u8 port28_r();
- u8 port33_r();
- void port34_w(u8 data);
- void port35_w(u8 data);
- u8 port36_r();
- u8 port37_r();
- u8 rtc_r(offs_t offset);
- void rtc_w(offs_t offset, u8 data);
- DECLARE_WRITE_LINE_MEMBER(fdc_intrq_w);
- DECLARE_WRITE_LINE_MEMBER(fdc_drq_w);
- DECLARE_WRITE_LINE_MEMBER(busreq_w);
- DECLARE_WRITE_LINE_MEMBER(sio1_rdya_w);
- DECLARE_WRITE_LINE_MEMBER(sio1_rdyb_w);
- DECLARE_WRITE_LINE_MEMBER(sio2_rdya_w);
- DECLARE_WRITE_LINE_MEMBER(sio2_rdyb_w);
- void address_w(u8 data);
- void register_w(u8 data);
- MC6845_UPDATE_ROW(crtc_update_row);
- MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr);
-
- void io_map(address_map &map);
- void mem_map(address_map &map);
-
- u8 crt8002(u8 ac_ra, u8 ac_chr, u8 ac_attr, u16 ac_cnt, bool ac_curs);
- bool m_port15; // rom switched in (0), out (1)
- u8 m_port17;
- u8 m_port17_rdy;
- u8 m_port19;
- u8 m_port1a; // bank to switch to when write to port 15 happens
- u8 m_port28;
- u8 m_port34;
- u8 m_port35; // byte to be written to vram or aram
- u8 m_video_index;
- u16 m_cnt;
- u16 m_alpha_address;
- u16 m_graph_address;
- bool m_centronics_busy;
- std::unique_ptr<u8[]> m_vram; // video ram, 64k dynamic
- std::unique_ptr<u8[]> m_aram; // attribute ram, 2k static
- std::unique_ptr<u8[]> m_ram; // main ram, 256k dynamic
- required_device<palette_device> m_palette;
- required_device<z80_device> m_maincpu;
- required_memory_bank m_bankr0, m_bankw0, m_bank1, m_bank2;
- required_region_ptr<u8> m_p_chargen;
- memory_share_creator<u8> m_p_mram;
- memory_share_creator<u8> m_p_videoram;
- memory_share_creator<u8> m_p_attribram;
- required_device<z80ctc_device> m_ctc;
- required_device<z80dma_device> m_dma;
- required_device<z80pio_device> m_pio1;
- required_device<z80pio_device> m_pio2;
- required_device<centronics_device> m_centronics;
- required_device<rs232_port_device> m_rs232;
- required_device<wd2797_device> m_fdc;
- required_device<floppy_connector> m_floppy0;
- optional_device<floppy_connector> m_floppy1;
- required_device<mc6845_device> m_crtc;
- required_device<speaker_sound_device> m_speaker;
- required_device<votrax_sc01_device> m_votrax;
- required_device<msm5832_device> m_rtc;
-};
-
-#endif // MAME_INCLUDES_AUSSIEBYTE_H
diff --git a/src/mame/includes/avalnche.h b/src/mame/includes/avalnche.h
deleted file mode 100644
index 124fe10a1b2..00000000000
--- a/src/mame/includes/avalnche.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-/*************************************************************************
-
- Atari Avalanche hardware
-
-*************************************************************************/
-
-#include "machine/74259.h"
-#include "sound/discrete.h"
-
-class avalnche_state : public driver_device
-{
-public:
- avalnche_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_discrete(*this, "discrete"),
- m_maincpu(*this, "maincpu"),
- m_latch(*this, "latch") { }
-
- required_shared_ptr<uint8_t> m_videoram;
- optional_device<discrete_device> m_discrete;
- required_device<cpu_device> m_maincpu;
- required_device<f9334_device> m_latch;
-
- uint8_t m_avalance_video_inverted;
-
- DECLARE_WRITE_LINE_MEMBER(video_invert_w);
- void catch_coin_counter_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(credit_1_lamp_w);
- DECLARE_WRITE_LINE_MEMBER(credit_2_lamp_w);
- DECLARE_WRITE_LINE_MEMBER(start_lamp_w);
- virtual void machine_start() override;
- uint32_t screen_update_avalnche(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void avalnche_noise_amplitude_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(catch_aud0_w);
- DECLARE_WRITE_LINE_MEMBER(catch_aud1_w);
- DECLARE_WRITE_LINE_MEMBER(catch_aud2_w);
- void avalnche_base(machine_config &config);
- void acatch(machine_config &config);
- void acatch_sound(machine_config &config);
- void avalnche(machine_config &config);
- void avalnche_sound(machine_config &config);
- void catch_map(address_map &map);
- void main_map(address_map &map);
-};
diff --git a/src/mame/includes/avigo.h b/src/mame/includes/avigo.h
deleted file mode 100644
index aa9390808a1..00000000000
--- a/src/mame/includes/avigo.h
+++ /dev/null
@@ -1,121 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker,Sandro Ronco
-/*****************************************************************************
- *
- * includes/avigo.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_AVIGO_H
-#define MAME_INCLUDES_AVIGO_H
-
-#pragma once
-
-#include "bus/rs232/rs232.h"
-#include "cpu/z80/z80.h"
-#include "imagedev/snapquik.h"
-#include "machine/bankdev.h"
-#include "machine/ins8250.h"
-#include "machine/intelfsh.h"
-#include "machine/nvram.h"
-#include "machine/ram.h"
-#include "machine/rp5c01.h"
-#include "machine/timer.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-
-#define AVIGO_SCREEN_WIDTH 160
-#define AVIGO_SCREEN_HEIGHT 240
-#define AVIGO_PANEL_HEIGHT 26
-
-
-class avigo_state : public driver_device
-{
-public:
- avigo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_ram(*this, RAM_TAG)
- , m_speaker(*this, "speaker")
- , m_uart(*this, "ns16550")
- , m_serport(*this, "serport")
- , m_palette(*this, "palette")
- , m_bankdev1(*this, "bank0")
- , m_bankdev2(*this, "bank1")
- , m_flash1(*this, "flash1")
- , m_nvram(*this, "nvram")
- { }
-
- void avigo(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(pen_irq);
- DECLARE_INPUT_CHANGED_MEMBER(pen_move_irq);
- DECLARE_INPUT_CHANGED_MEMBER(kb_irq);
- DECLARE_INPUT_CHANGED_MEMBER(power_down_irq);
-
-protected:
- // defined in drivers/avigo.cpp
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void refresh_ints();
- void nvram_init(nvram_device &nvram, void *base, size_t size);
-
- DECLARE_WRITE_LINE_MEMBER( tc8521_alarm_int );
- DECLARE_WRITE_LINE_MEMBER( com_interrupt );
-
- uint8_t key_data_read_r();
- void set_key_line_w(uint8_t data);
- void port2_w(uint8_t data);
- uint8_t irq_r();
- void irq_w(uint8_t data);
- uint8_t bank1_r(offs_t offset);
- uint8_t bank2_r(offs_t offset);
- void bank1_w(offs_t offset, uint8_t data);
- void bank2_w(offs_t offset, uint8_t data);
- uint8_t ad_control_status_r();
- void ad_control_status_w(uint8_t data);
- uint8_t ad_data_r();
- void speaker_w(uint8_t data);
- uint8_t port_04_r();
-
- // defined in video/avigo.cpp
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint8_t vid_memory_r(offs_t offset);
- void vid_memory_w(offs_t offset, uint8_t data);
-
- TIMER_DEVICE_CALLBACK_MEMBER(avigo_scan_timer);
- TIMER_DEVICE_CALLBACK_MEMBER(avigo_1hz_timer);
-
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
- void avigo_banked_map(address_map &map);
- void avigo_io(address_map &map);
- void avigo_mem(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_device<speaker_sound_device> m_speaker;
- required_device<ns16550_device> m_uart;
- required_device<rs232_port_device> m_serport;
- required_device<palette_device> m_palette;
- required_device<address_map_bank_device> m_bankdev1;
- required_device<address_map_bank_device> m_bankdev2;
- required_device<intelfsh8_device> m_flash1;
- required_shared_ptr<uint8_t> m_nvram;
-
- // driver state
- uint8_t m_key_line;
- uint8_t m_irq;
- uint8_t m_port2;
- uint8_t m_bank2_l;
- uint8_t m_bank2_h;
- uint8_t m_bank1_l;
- uint8_t m_bank1_h;
- uint8_t m_ad_control_status;
- uint16_t m_ad_value;
- std::unique_ptr<uint8_t[]> m_video_memory;
- uint8_t m_screen_column;
- uint8_t m_warm_start;
-};
-
-#endif // MAME_INCLUDES_AVIGO_H
diff --git a/src/mame/includes/aztarac.h b/src/mame/includes/aztarac.h
deleted file mode 100644
index 53895de975f..00000000000
--- a/src/mame/includes/aztarac.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mathis Rosenhauer
-/*************************************************************************
-
- Centuri Aztarac hardware
-
-*************************************************************************/
-
-#include "cpu/m68000/m68000.h"
-#include "machine/gen_latch.h"
-#include "machine/x2212.h"
-#include "video/vector.h"
-#include "screen.h"
-
-class aztarac_state : public driver_device
-{
-public:
- aztarac_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_nvram(*this, "nvram"),
- m_vector(*this, "vector"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch"),
- m_vectorram(*this, "vectorram") { }
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<x2212_device> m_nvram;
- required_device<vector_device> m_vector;
- required_device<screen_device> m_screen;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_vectorram;
-
- int m_sound_status;
- int m_xcenter;
- int m_ycenter;
-
- void nvram_store_w(uint16_t data);
- uint16_t joystick_r();
- void ubr_w(uint8_t data);
- uint16_t sound_r();
- void sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t snd_command_r();
- uint8_t snd_status_r();
- void snd_status_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- DECLARE_WRITE_LINE_MEMBER(video_interrupt);
- INTERRUPT_GEN_MEMBER(snd_timed_irq);
-
- inline void read_vectorram(uint16_t *vectorram, int addr, int *x, int *y, int *c);
- void aztarac(machine_config &config);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/b2m.h b/src/mame/includes/b2m.h
deleted file mode 100644
index 78c9ce3ba0f..00000000000
--- a/src/mame/includes/b2m.h
+++ /dev/null
@@ -1,96 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/b2m.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_B2M_H
-#define MAME_INCLUDES_B2M_H
-
-#pragma once
-
-#include "imagedev/floppy.h"
-#include "machine/i8255.h"
-#include "machine/pic8259.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-
-class b2m_state : public driver_device
-{
-public:
- b2m_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_speaker(*this, "speaker")
- , m_pit(*this, "pit")
- , m_ram(*this, RAM_TAG)
- , m_palette(*this, "palette")
- , m_fdc(*this, "fdc")
- , m_fd(*this, "fdc:%u", 0U)
- , m_pic(*this, "pic")
- { }
-
- void b2mrom(machine_config &config);
- void b2m(machine_config &config);
-
-private:
- uint8_t keyboard_r(offs_t offset);
- void palette_w(offs_t offset, uint8_t data);
- uint8_t palette_r(offs_t offset);
- void localmachine_w(uint8_t data);
- uint8_t localmachine_r();
-
- void b2m_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vblank_interrupt);
- DECLARE_WRITE_LINE_MEMBER(pit_out1);
- void ppi1_porta_w(uint8_t data);
- void ppi1_portb_w(uint8_t data);
- void ppi1_portc_w(uint8_t data);
- uint8_t ppi1_portb_r();
- void ppi2_portc_w(uint8_t data);
- uint8_t romdisk_porta_r();
- void romdisk_portb_w(uint8_t data);
- void romdisk_portc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(fdc_drq);
- static void b2m_floppy_formats(format_registration &fr);
-
- void b2m_io(address_map &map);
- void b2m_mem(address_map &map);
- void b2m_rom_io(address_map &map);
- void machine_start() override;
- void machine_reset() override;
-
- void postload();
- void set_bank(int bank);
-
- uint8_t m_porta;
- uint8_t m_video_scroll;
- uint8_t m_portc;
-
- uint8_t m_video_page;
-
- uint8_t m_romdisk_lsb;
- uint8_t m_romdisk_msb;
-
- uint8_t m_color[4];
- uint8_t m_localmachine;
- uint8_t m_vblank_state;
- required_device<cpu_device> m_maincpu;
- required_device<speaker_sound_device> m_speaker;
- required_device<pit8253_device> m_pit;
- required_device<ram_device> m_ram;
- required_device<palette_device> m_palette;
-
- /* devices */
- optional_device<fd1793_device> m_fdc;
- optional_device_array<floppy_connector, 2> m_fd;
- optional_device<pic8259_device> m_pic;
-};
-
-#endif // MAME_INCLUDES_B2M_H
diff --git a/src/mame/includes/badlands.h b/src/mame/includes/badlands.h
deleted file mode 100644
index 48e36f05434..00000000000
--- a/src/mame/includes/badlands.h
+++ /dev/null
@@ -1,130 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Bad Lands hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BADLANDS_H
-#define MAME_INCLUDES_BADLANDS_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "cpu/m68000/m68000.h"
-#include "cpu/m6502/m6502.h"
-#include "machine/eeprompar.h"
-#include "machine/gen_latch.h"
-#include "machine/watchdog.h"
-#include "machine/timer.h"
-#include "sound/ym2151.h"
-#include "video/atarimo.h"
-
-#include "speaker.h"
-#include "tilemap.h"
-
-/*----------- defined in machine/badlands.cpp -----------*/
-
-//extern const gfx_layout badlands_molayout;
-
-INPUT_PORTS_EXTERN(badlands);
-
-
-class badlands_state : public driver_device
-{
-public:
- badlands_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_playfield_tilemap(*this, "playfield")
- , m_screen(*this, "screen")
- , m_soundlatch(*this, "soundlatch")
- , m_mainlatch(*this, "mainlatch")
- , m_ymsnd(*this, "ymsnd")
- , m_mob(*this, "mob")
- { }
-
- void badlands(machine_config &config);
- void init_badlands();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<screen_device> m_screen;
-
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- void video_int_ack_w(uint16_t data);
- void badlands_pf_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
-private:
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<generic_latch_8_device> m_mainlatch;
- optional_device<ym2151_device> m_ymsnd;
- optional_device<atari_motion_objects_device> m_mob;
-
- uint16_t sound_busy_r();
- void sound_reset_w(uint16_t data);
- uint16_t pedal_0_r();
- uint16_t pedal_1_r();
-
- uint8_t audio_io_r();
- void audio_io_w(uint8_t data);
- uint8_t audio_irqack_r();
- void audio_irqack_w(uint8_t data);
-
- uint32_t screen_update_badlands(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vblank_int);
- TIMER_DEVICE_CALLBACK_MEMBER(sound_scanline);
-
- static const atari_motion_objects_config s_mob_config;
- void audio_map(address_map &map);
- void main_map(address_map &map);
-
-private:
- uint8_t m_pedal_value[2];
- uint8_t m_playfield_tile_bank;
-};
-
-class badlandsbl_state : public badlands_state
-{
-public:
- badlandsbl_state(const machine_config &mconfig, device_type type, const char *tag)
- : badlands_state(mconfig, type, tag),
- m_b_sharedram(*this, "b_sharedram"),
- m_spriteram(*this, "spriteram")
- {}
-
- uint8_t bootleg_shared_r(offs_t offset);
- void bootleg_shared_w(offs_t offset, uint8_t data);
- void bootleg_main_irq_w(uint8_t data);
- uint16_t badlandsb_unk_r();
- uint8_t sound_response_r();
- TIMER_DEVICE_CALLBACK_MEMBER(bootleg_sound_scanline);
-
- void badlandsb(machine_config &config);
- void bootleg_map(address_map &map);
- void bootleg_audio_map(address_map &map);
- uint32_t screen_update_badlandsbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-protected:
- virtual void machine_reset() override;
-
-private:
- required_shared_ptr<uint8_t> m_b_sharedram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- uint8_t m_sound_response;
-};
-
-
-#endif // MAME_INCLUDES_BADLANDS_H
-
-
diff --git a/src/mame/includes/bagman.h b/src/mame/includes/bagman.h
deleted file mode 100644
index db5d786a530..00000000000
--- a/src/mame/includes/bagman.h
+++ /dev/null
@@ -1,141 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_BAGMAN_H
-#define MAME_INCLUDES_BAGMAN_H
-
-#pragma once
-
-
-#include "machine/74259.h"
-#include "sound/tms5110.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class bagman_state : public driver_device
-{
-public:
- bagman_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mainlatch(*this, "mainlatch"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_tmsprom(*this, "tmsprom"),
- m_tmslatch(*this, "tmslatch"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram")
- { }
-
- void botanic(machine_config &config);
- void sbagman(machine_config &config);
- void bagman(machine_config &config);
- void pickin(machine_config &config);
- void sbagmani(machine_config &config);
-
- void init_bagmans3();
-
-protected:
- // common
- DECLARE_WRITE_LINE_MEMBER(coin_counter_w);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_y_w);
- DECLARE_WRITE_LINE_MEMBER(video_enable_w);
-
- // bagman
- void ls259_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(tmsprom_bit_w);
- DECLARE_WRITE_LINE_MEMBER(tmsprom_csq0_w);
- DECLARE_WRITE_LINE_MEMBER(tmsprom_csq1_w);
- void pal16r6_w(offs_t offset, uint8_t data);
- uint8_t pal16r6_r();
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void bagman_palette(palette_device &palette) const;
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void update_pal();
- void bagman_base(machine_config &config);
- void main_map(address_map &map);
- void main_portmap(address_map &map);
- void pickin_map(address_map &map);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_mainlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<tmsprom_device> m_tmsprom;
- optional_device<ls259_device> m_tmslatch;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- bool m_irq_mask;
- bool m_video_enable;
-
- /*table holds outputs of all ANDs (after AND map)*/
- uint8_t m_andmap[64];
-
- /*table holds inputs (ie. not x, x, not q, q) to the AND map*/
- uint8_t m_columnvalue[32];
-
- /*8 output pins (actually 6 output and 2 input/output)*/
- uint8_t m_outvalue[8];
-
- tilemap_t *m_bg_tilemap;
-};
-
-
-class squaitsa_state : public bagman_state
-{
-public:
- squaitsa_state(const machine_config &mconfig, device_type type, const char *tag) :
- bagman_state(mconfig, type, tag),
- m_dial(*this, "DIAL_P%u", 1),
- m_res{ 0, 0 },
- m_old_val{ 0, 0 }
- { }
-
- template <unsigned N> DECLARE_CUSTOM_INPUT_MEMBER(dial_input_r);
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_ioport_array<2> m_dial;
- uint8_t m_res[2];
- uint8_t m_old_val[2];
-};
-
-
-/*----------- timings -----------*/
-
-#define BAGMAN_MAIN_CLOCK XTAL(18'432'000)
-#define BAGMAN_HCLK (BAGMAN_MAIN_CLOCK / 3)
-#define BAGMAN_H0 (BAGMAN_HCLK / 2)
-#define BAGMAN_H1 (BAGMAN_H0 / 2)
-#define HTOTAL ((0x100-0x40)*2)
-#define HBEND (0x00)
-#define HBSTART (0x100)
-#define VTOTAL ((0x100-0x7c)*2)
-
-/* the following VBEND/VBSTART are used for compsync
- * #define VBEND (0x08)
- * #define VBSTART (0x100)
- *
- * However VBSYQ (and INTQ) is generated using the following values:
- */
-#define VBEND (0x10)
-#define VBSTART (0xf0)
-
-#endif // MAME_INCLUDES_BAGMAN_H
diff --git a/src/mame/includes/balsente.h b/src/mame/includes/balsente.h
deleted file mode 100644
index 3f7fbd35f48..00000000000
--- a/src/mame/includes/balsente.h
+++ /dev/null
@@ -1,210 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Bally/Sente SAC-1 system
-
- driver by Aaron Giles
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_BALSENTE_H
-#define MAME_INCLUDES_BALSENTE_H
-
-#pragma once
-
-#include "machine/6850acia.h"
-#include "machine/timer.h"
-#include "machine/x2212.h"
-#include "machine/74259.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define BALSENTE_MASTER_CLOCK (20000000)
-#define BALSENTE_CPU_CLOCK (BALSENTE_MASTER_CLOCK / 16)
-#define BALSENTE_PIXEL_CLOCK (BALSENTE_MASTER_CLOCK / 4)
-#define BALSENTE_HTOTAL (0x140)
-#define BALSENTE_HBEND (0x000)
-#define BALSENTE_HBSTART (0x100)
-#define BALSENTE_VTOTAL (0x108)
-#define BALSENTE_VBEND (0x010)
-#define BALSENTE_VBSTART (0x100)
-
-
-class balsente_state : public driver_device
-{
- static constexpr unsigned POLY17_BITS = 17;
- static constexpr size_t POLY17_SIZE = (1 << POLY17_BITS) - 1;
- static constexpr unsigned POLY17_SHL = 7;
- static constexpr unsigned POLY17_SHR = 10;
- static constexpr uint32_t POLY17_ADD = 0x18000;
-
-public:
- balsente_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_scanline_timer(*this, "scan_timer")
- , m_spriteram(*this, "spriteram")
- , m_videoram(*this, "videoram")
- , m_shrike_io(*this, "shrike_io")
- , m_shrike_shared(*this, "shrike_shared")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_68k(*this, "68k")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_outlatch(*this, "outlatch")
- , m_novram(*this, "nov%u", 0U)
- , m_acia(*this, "acia")
- , m_generic_paletteram_8(*this, "paletteram")
- , m_bankab(*this, "bankab")
- , m_bankcd(*this, "bankcd")
- , m_bankef(*this, "bankef")
- { }
-
- void shrike(machine_config &config);
- void rescraid(machine_config &config);
- void balsente(machine_config &config);
- void teamht(machine_config &config);
- void grudge(machine_config &config);
- void st1002(machine_config &config);
- void spiker(machine_config &config);
- void triviamb(machine_config &config);
- DECLARE_CUSTOM_INPUT_MEMBER(nstocker_bits_r);
- void init_otwalls();
- void init_triviaes();
- void init_triviaes2();
- void init_nstocker();
- void init_sentetst();
- void init_rescraid();
- void init_minigolf();
- void init_stompin();
- void init_snakepit();
- void init_spiker();
- void init_hattrick();
- void init_toggle();
- void init_snakjack();
- void init_grudge();
- void init_sfootbal();
- void init_triviag2();
- void init_cshift();
- void init_gimeabrk();
- void init_stocker();
- void init_triviag1();
- void init_shrike();
- void init_minigolf2();
- void init_nametune();
- void init_gghost();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- void random_reset_w(uint8_t data);
- uint8_t random_num_r();
- void rombank_select_w(uint8_t data);
- void rombank2_select_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(out0_w);
- DECLARE_WRITE_LINE_MEMBER(out1_w);
- DECLARE_WRITE_LINE_MEMBER(out2_w);
- DECLARE_WRITE_LINE_MEMBER(out3_w);
- DECLARE_WRITE_LINE_MEMBER(out4_w);
- DECLARE_WRITE_LINE_MEMBER(out5_w);
- DECLARE_WRITE_LINE_MEMBER(out6_w);
- DECLARE_WRITE_LINE_MEMBER(nvrecall_w);
- uint8_t novram_8bit_r(address_space &space, offs_t offset);
- void novram_8bit_w(offs_t offset, uint8_t data);
- uint8_t adc_data_r();
- void adc_select_w(offs_t offset, uint8_t data);
- void spiker_expand_w(offs_t offset, uint8_t data);
- uint8_t spiker_expand_r();
- uint8_t grudge_steering_r();
- uint8_t shrike_shared_6809_r(offs_t offset);
- void shrike_shared_6809_w(offs_t offset, uint8_t data);
- void shrike_io_68k_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t shrike_io_68k_r(offs_t offset, uint16_t mem_mask = ~0);
- uint8_t teamht_extra_r();
- void teamht_multiplex_select_w(offs_t offset, uint8_t data);
-
- void videoram_w(offs_t offset, uint8_t data);
- void palette_select_w(uint8_t data);
- void paletteram_w(offs_t offset, uint8_t data);
- void shrike_sprite_select_w(uint8_t data);
-
- uint32_t screen_update_balsente(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(update_analog_inputs);
- TIMER_CALLBACK_MEMBER(irq_off);
- TIMER_CALLBACK_MEMBER(adc_finished);
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt_timer);
- void draw_one_sprite(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *sprite);
- void poly17_init();
- void update_grudge_steering();
- void expand_roms(uint8_t cd_rom_mask);
- inline void config_shooter_adc(uint8_t shooter, uint8_t adc_shift);
-
- void cpu1_base_map(address_map &map);
- void cpu1_map(address_map &map);
- void cpu1_teamht_map(address_map &map);
- void cpu1_grudge_map(address_map &map);
- void cpu1_st1002_map(address_map &map);
- void cpu1_spiker_map(address_map &map);
- void cpu1_shrike_map(address_map &map);
- void cpu1_smudge_map(address_map &map);
- void cpu1_triviamb_map(address_map &map);
- void cpu2_triviamb_io_map(address_map &map);
- void cpu2_triviamb_map(address_map &map);
- void shrike68k_map(address_map &map);
-
- required_device<timer_device> m_scanline_timer;
-
-
- /* global data */
- uint8_t m_shooter;
- uint8_t m_shooter_x;
- uint8_t m_shooter_y;
- uint8_t m_adc_shift;
-
- /* random number generator states */
- uint8_t m_rand17[POLY17_SIZE + 1];
-
- /* ADC I/O states */
- int8_t m_analog_input_data[4];
- uint8_t m_adc_value;
-
- /* game-specific states */
- uint8_t m_nstocker_bits;
- uint8_t m_spiker_expand_color;
- uint8_t m_spiker_expand_bgcolor;
- uint8_t m_spiker_expand_bits;
- uint8_t m_grudge_steering_result;
- uint8_t m_grudge_last_steering[3];
- uint8_t m_teamht_input;
-
- /* video data */
- uint8_t m_expanded_videoram[256*256];
- uint8_t *m_sprite_data;
- uint32_t m_sprite_mask;
- uint8_t *m_sprite_bank[2];
-
- uint8_t m_palettebank_vis;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint16_t> m_shrike_io;
- optional_shared_ptr<uint16_t> m_shrike_shared;
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<cpu_device> m_68k;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<ls259_device> m_outlatch;
- optional_device_array<x2212_device, 2> m_novram;
- optional_device<acia6850_device> m_acia;
- optional_shared_ptr<uint8_t> m_generic_paletteram_8;
-
- required_memory_bank m_bankab;
- required_memory_bank m_bankcd;
- required_memory_bank m_bankef;
-};
-
-#endif // MAME_INCLUDES_BALSENTE_H
diff --git a/src/mame/includes/bankp.h b/src/mame/includes/bankp.h
deleted file mode 100644
index b1750f95f6b..00000000000
--- a/src/mame/includes/bankp.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Bank Panic
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_BANKP_H
-#define MAME_INCLUDES_BANKP_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class bankp_state : public driver_device
-{
-public:
- bankp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_videoram2(*this, "videoram2"),
- m_colorram2(*this, "colorram2"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram2;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- int m_scroll_x;
- int m_priority;
-
- uint8_t m_nmi_mask;
- void scroll_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void videoram2_w(offs_t offset, uint8_t data);
- void colorram2_w(offs_t offset, uint8_t data);
- void out_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_reset() override;
- virtual void video_start() override;
- void bankp_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vblank_irq);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void bankp(machine_config &config);
- void bankp_io_map(address_map &map);
- void bankp_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BANKP_H
diff --git a/src/mame/includes/baraduke.h b/src/mame/includes/baraduke.h
deleted file mode 100644
index 4cd1216a85d..00000000000
--- a/src/mame/includes/baraduke.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-#ifndef MAME_INCLUDES_BARADUKE_H
-#define MAME_INCLUDES_BARADUKE_H
-
-#pragma once
-
-#include "cpu/m6800/m6801.h"
-#include "sound/namco.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class baraduke_state : public driver_device
-{
-public:
- baraduke_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_textram(*this, "textram"),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_cus30(*this, "namco"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void inputport_select_w(uint8_t data);
- uint8_t inputport_r();
- void baraduke_lamps_w(uint8_t data);
- void baraduke_irq_ack_w(uint8_t data);
- uint8_t soundkludge_r();
- uint8_t baraduke_videoram_r(offs_t offset);
- void baraduke_videoram_w(offs_t offset, uint8_t data);
- uint8_t baraduke_textram_r(offs_t offset);
- void baraduke_textram_w(offs_t offset, uint8_t data);
- void baraduke_scroll0_w(offs_t offset, uint8_t data);
- void baraduke_scroll1_w(offs_t offset, uint8_t data);
- uint8_t baraduke_spriteram_r(offs_t offset);
- void baraduke_spriteram_w(offs_t offset, uint8_t data);
- void init_baraduke();
- TILEMAP_MAPPER_MEMBER(tx_tilemap_scan);
- TILE_GET_INFO_MEMBER(tx_get_tile_info);
- TILE_GET_INFO_MEMBER(get_tile_info0);
- TILE_GET_INFO_MEMBER(get_tile_info1);
- virtual void video_start() override;
- void baraduke_palette(palette_device &palette) const;
- uint32_t screen_update_baraduke(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_baraduke);
- void scroll_w(int layer, int offset, int data);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int sprite_priority);
- void set_scroll(int layer);
- void baraduke(machine_config &config);
- void baraduke_map(address_map &map);
- void mcu_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
-
- int m_inputport_selected;
- int m_counter;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_textram;
- required_device<cpu_device> m_maincpu;
- required_device<hd63701v0_cpu_device> m_mcu;
- required_device<namco_cus30_device> m_cus30;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bg_tilemap[2];
- int m_xscroll[2];
- int m_yscroll[2];
- int m_copy_sprites;
- output_finder<2> m_lamps;
-};
-
-#endif // MAME_INCLUDES_BARADUKE_H
diff --git a/src/mame/includes/batman.h b/src/mame/includes/batman.h
deleted file mode 100644
index 219118a7e8a..00000000000
--- a/src/mame/includes/batman.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Batman hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BATMAN_H
-#define MAME_INCLUDES_BATMAN_H
-
-#pragma once
-
-#include "audio/atarijsa.h"
-#include "video/atarimo.h"
-#include "video/atarivad.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class batman_state : public driver_device
-{
-public:
- batman_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_jsa(*this, "jsa"),
- m_vad(*this, "vad")
- { }
-
- void init_batman();
- void batman(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- void latch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield2_tile_info);
- uint32_t screen_update_batman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<atari_jsa_iii_device> m_jsa;
- required_device<atari_vad_device> m_vad;
-
- uint16_t m_latch_data;
- uint8_t m_alpha_tile_bank;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_BATMAN_H
diff --git a/src/mame/includes/battlane.h b/src/mame/includes/battlane.h
deleted file mode 100644
index 9e8705c337c..00000000000
--- a/src/mame/includes/battlane.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Leaman
-/***************************************************************************
-
- Battle Lane Vol. 5
-
-***************************************************************************/
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class battlane_state : public driver_device
-{
-public:
- battlane_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_tileram(*this, "tileram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void battlane(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_tileram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- bitmap_ind8 m_screen_bitmap;
- int m_video_ctrl;
- int m_cpu_control; /* CPU interrupt control register */
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- void battlane_cpu_command_w(uint8_t data);
- void battlane_palette_w(offs_t offset, uint8_t data);
- void battlane_scrollx_w(uint8_t data);
- void battlane_scrolly_w(uint8_t data);
- void battlane_tileram_w(offs_t offset, uint8_t data);
- void battlane_spriteram_w(offs_t offset, uint8_t data);
- void battlane_bitmap_w(offs_t offset, uint8_t data);
- void battlane_video_ctrl_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info_bg);
- TILEMAP_MAPPER_MEMBER(battlane_tilemap_scan_rows_2x2);
- uint32_t screen_update_battlane(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(battlane_cpu1_interrupt);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_fg_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void battlane_map(address_map &map);
-};
diff --git a/src/mame/includes/battlera.h b/src/mame/includes/battlera.h
deleted file mode 100644
index 2a367aff57f..00000000000
--- a/src/mame/includes/battlera.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-
-#include "machine/gen_latch.h"
-#include "cpu/h6280/h6280.h"
-#include "sound/msm5205.h"
-#include "video/huc6260.h"
-#include "video/huc6270.h"
-#include "screen.h"
-
-#define MAIN_CLOCK 21477270
-
-class battlera_state : public driver_device
-{
-public:
- battlera_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_msm(*this, "msm")
- , m_screen(*this, "screen")
- , m_huc6260(*this, "huc6260")
- , m_soundlatch(*this, "soundlatch")
- { }
-
- required_device<h6280_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device<msm5205_device> m_msm;
- required_device<screen_device> m_screen;
- required_device<huc6260_device> m_huc6260;
- required_device<generic_latch_8_device> m_soundlatch;
-
- int m_control_port_select;
- int m_msm5205next;
- int m_toggle;
-
- void control_data_w(uint8_t data);
- uint8_t control_data_r();
- void adpcm_data_w(uint8_t data);
- void adpcm_reset_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void battlera(machine_config &config);
- void battlera_map(address_map &map);
- void battlera_portmap(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/battlex.h b/src/mame/includes/battlex.h
deleted file mode 100644
index b8ac7a1dee9..00000000000
--- a/src/mame/includes/battlex.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-/***************************************************************************
-
- Battle Cross
-
-***************************************************************************/
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class battlex_state : public driver_device
-{
-public:
- battlex_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette") { }
-
- uint8_t m_in0_b4;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- uint8_t m_scroll_lsb;
- uint8_t m_scroll_msb;
- uint8_t m_starfield_enabled;
- void battlex_palette_w(offs_t offset, uint8_t data);
- void battlex_scroll_x_lsb_w(uint8_t data);
- void battlex_scroll_x_msb_w(uint8_t data);
- void battlex_scroll_starfield_w(uint8_t data);
- void battlex_videoram_w(offs_t offset, uint8_t data);
- void battlex_flipscreen_w(uint8_t data);
- DECLARE_CUSTOM_INPUT_MEMBER(battlex_in0_b4_r);
- void init_battlex();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_battlex(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(battlex_interrupt);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- DECLARE_VIDEO_START(dodgeman);
- TILE_GET_INFO_MEMBER(get_dodgeman_bg_tile_info);
- void dodgeman(machine_config &config);
- void battlex(machine_config &config);
- void battlex_map(address_map &map);
- void dodgeman_io_map(address_map &map);
- void io_map(address_map &map);
-};
diff --git a/src/mame/includes/battlnts.h b/src/mame/includes/battlnts.h
deleted file mode 100644
index 8580e7bf8f6..00000000000
--- a/src/mame/includes/battlnts.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Konami Battlantis Hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BATTLNTS_H
-#define MAME_INCLUDES_BATTLNTS_H
-
-#pragma once
-
-#include "video/k007342.h"
-#include "video/k007420.h"
-
-class battlnts_state : public driver_device
-{
-public:
- battlnts_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k007342(*this, "k007342"),
- m_k007420(*this, "k007420"),
- m_gfxdecode(*this, "gfxdecode"),
- m_rombank(*this, "rombank")
- { }
-
- /* video-related */
- int m_spritebank;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k007342_device> m_k007342;
- required_device<k007420_device> m_k007420;
- required_device<gfxdecode_device> m_gfxdecode;
- required_memory_bank m_rombank;
-
- void battlnts_sh_irqtrigger_w(uint8_t data);
- void battlnts_bankswitch_w(uint8_t data);
- void battlnts_spritebank_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_battlnts(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- K007342_CALLBACK_MEMBER(battlnts_tile_callback);
- K007420_CALLBACK_MEMBER(battlnts_sprite_callback);
- void battlnts(machine_config &config);
- void battlnts_map(address_map &map);
- void battlnts_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BATTLNTS_H
diff --git a/src/mame/includes/bbc.h b/src/mame/includes/bbc.h
deleted file mode 100644
index 396ec8a1a77..00000000000
--- a/src/mame/includes/bbc.h
+++ /dev/null
@@ -1,465 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Gordon Jefferyes, Nigel Barnes
-/*****************************************************************************
- *
- * BBC Model B/B+/Master/Compact
- *
- * Driver by Gordon Jefferyes <mess_bbc@romvault.com>
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_BBC_H
-#define MAME_INCLUDES_BBC_H
-
-#pragma once
-
-#include "cpu/m6502/m6502.h"
-#include "cpu/m6502/m65sc02.h"
-#include "imagedev/floppy.h"
-#include "machine/74259.h"
-#include "machine/6522via.h"
-#include "machine/6850acia.h"
-#include "machine/clock.h"
-#include "machine/mc6854.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-#include "machine/upd7002.h"
-#include "machine/mc146818.h"
-#include "machine/i2cmem.h"
-#include "machine/bankdev.h"
-#include "machine/input_merger.h"
-#include "video/mc6845.h"
-#include "video/saa5050.h"
-#include "sound/sn76496.h"
-#include "sound/tms5220.h"
-#include "sound/samples.h"
-#include "imagedev/cassette.h"
-
-#include "bus/rs232/rs232.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/econet/econet.h"
-#include "bus/bbc/rom/slot.h"
-#include "bus/bbc/fdc/fdc.h"
-#include "bus/bbc/analogue/analogue.h"
-#include "bus/bbc/1mhzbus/1mhzbus.h"
-#include "bus/bbc/modem/modem.h"
-#include "bus/bbc/internal/internal.h"
-#include "bus/bbc/tube/tube.h"
-#include "bus/bbc/userport/userport.h"
-#include "bus/bbc/exp/exp.h"
-#include "bus/bbc/joyport/joyport.h"
-#include "bus/bbc/cart/slot.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-
-class bbc_state : public driver_device
-{
-public:
- bbc_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_ram(*this, RAM_TAG)
- , m_hd6845(*this, "hd6845")
- , m_screen(*this, "screen")
- , m_irqs(*this, "irqs")
- , m_palette(*this, "palette")
- , m_adlc(*this, "mc6854")
- , m_sn(*this, "sn76489")
- , m_samples(*this, "samples")
- , m_keyboard(*this, "COL%u", 0)
- , m_trom(*this, "saa5050")
- , m_tms(*this, "tms5220")
- , m_cassette(*this, "cassette")
- , m_acia(*this, "acia6850")
- , m_acia_clock(*this, "acia_clock")
- , m_latch(*this, "latch")
- , m_rs232(*this, "rs423")
- , m_via6522_0(*this, "via6522_0")
- , m_via6522_1(*this, "via6522_1")
- , m_upd7002(*this, "upd7002")
- , m_analog(*this, "analogue")
- , m_joyport(*this, "joyport")
- , m_tube(*this, "tube")
- , m_intube(*this, "intube")
- , m_extube(*this, "extube")
- , m_1mhzbus(*this, "1mhzbus")
- , m_modem(*this, "modem")
- , m_userport(*this, "userport")
- , m_internal(*this, "internal")
- , m_exp(*this, "exp")
- , m_rtc(*this, "rtc")
- , m_i2cmem(*this, "i2cmem")
- , m_fdc(*this, "fdc")
- , m_wd_fdc(*this, "wd_fdc")
- , m_rom(*this, "romslot%u", 0U)
- , m_cart(*this, "cartslot%u", 1U)
- , m_region_mos(*this, "mos")
- , m_region_swr(*this, "swr")
- , m_bank1(*this, "bank1")
- , m_bank2(*this, "bank2")
- , m_bankdev(*this, "bankdev")
- , m_bbcconfig(*this, "BBCCONFIG")
- , m_motor_led(*this, "motor_led")
- { }
-
- enum class monitor_type
- {
- COLOUR,
- BLACKWHITE,
- GREEN,
- AMBER
- };
-
- static void floppy_formats(format_registration &fr);
-
- uint8_t bbc_ram_r(offs_t offset);
- void bbc_ram_w(offs_t offset, uint8_t data);
- uint8_t bbc_romsel_r(offs_t offset);
- void bbc_romsel_w(offs_t offset, uint8_t data);
- uint8_t bbc_paged_r(offs_t offset);
- void bbc_paged_w(offs_t offset, uint8_t data);
- uint8_t bbc_mos_r(offs_t offset);
- void bbc_mos_w(offs_t offset, uint8_t data);
- uint8_t bbc_fred_r(offs_t offset);
- void bbc_fred_w(offs_t offset, uint8_t data);
- uint8_t bbc_jim_r(offs_t offset);
- void bbc_jim_w(offs_t offset, uint8_t data);
- uint8_t bbcbp_fetch_r(offs_t offset);
- void bbcbp_romsel_w(offs_t offset, uint8_t data);
- uint8_t bbcbp_paged_r(offs_t offset);
- void bbcbp_paged_w(offs_t offset, uint8_t data);
- uint8_t bbcm_fetch_r(offs_t offset);
- uint8_t bbcm_acccon_r();
- void bbcm_acccon_w(uint8_t data);
- void bbcm_romsel_w(offs_t offset, uint8_t data);
- uint8_t bbcm_paged_r(offs_t offset);
- void bbcm_paged_w(offs_t offset, uint8_t data);
- uint8_t bbcm_hazel_r(offs_t offset);
- void bbcm_hazel_w(offs_t offset, uint8_t data);
- uint8_t bbcm_tube_r(offs_t offset);
- void bbcm_tube_w(offs_t offset, uint8_t data);
- uint8_t bbcmc_paged_r(offs_t offset);
- void bbcmc_paged_w(offs_t offset, uint8_t data);
- void bbcbp_drive_control_w(uint8_t data);
- void bbcm_drive_control_w(uint8_t data);
- void serial_ula_w(uint8_t data);
- void video_ula_w(offs_t offset, uint8_t data);
- uint8_t bbc_fe_r() { return 0xfe; };
-
- DECLARE_VIDEO_START(bbc);
-
- INTERRUPT_GEN_MEMBER(bbcb_keyscan);
- TIMER_CALLBACK_MEMBER(tape_timer_cb);
- TIMER_CALLBACK_MEMBER(reset_timer_cb);
- DECLARE_WRITE_LINE_MEMBER(write_acia_clock);
- DECLARE_WRITE_LINE_MEMBER(adlc_irq_w);
- DECLARE_WRITE_LINE_MEMBER(bus_nmi_w);
- DECLARE_WRITE_LINE_MEMBER(snd_enable_w);
- DECLARE_WRITE_LINE_MEMBER(speech_rsq_w);
- DECLARE_WRITE_LINE_MEMBER(speech_wsq_w);
- DECLARE_WRITE_LINE_MEMBER(kbd_enable_w);
- uint8_t via_system_porta_r();
- void via_system_porta_w(uint8_t data);
- uint8_t via_system_portb_r();
- void via_system_portb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(lpstb_w);
- DECLARE_WRITE_LINE_MEMBER(bbc_hsync_changed);
- DECLARE_WRITE_LINE_MEMBER(bbc_vsync_changed);
- DECLARE_WRITE_LINE_MEMBER(bbc_de_changed);
- DECLARE_INPUT_CHANGED_MEMBER(reset_palette);
- void update_palette(monitor_type monitor_type);
-
- void update_acia_rxd();
- void update_acia_dcd();
- void update_acia_cts();
- DECLARE_WRITE_LINE_MEMBER(write_rts);
- DECLARE_WRITE_LINE_MEMBER(write_txd);
- DECLARE_WRITE_LINE_MEMBER(write_rxd);
- DECLARE_WRITE_LINE_MEMBER(write_dcd);
- DECLARE_WRITE_LINE_MEMBER(write_cts);
-
- DECLARE_INPUT_CHANGED_MEMBER(trigger_reset);
- DECLARE_WRITE_LINE_MEMBER(fdc_intrq_w);
- DECLARE_WRITE_LINE_MEMBER(fdc_drq_w);
-
- int get_analogue_input(int channel_number);
- void upd7002_eoc(int data);
-
- std::string get_rom_name(uint8_t* header);
- void insert_device_rom(memory_region *rom);
- void setup_device_roms();
-
- MC6845_UPDATE_ROW(crtc_update_row);
-
- void bbca(machine_config &config);
- void bbcb(machine_config &config);
- void bbcb_de(machine_config &config);
- void bbcb_us(machine_config &config);
-
- void bbca_mem(address_map &map);
- void bbc_base(address_map &map);
- void bbcb_mem(address_map &map);
-
- void init_bbc();
- void init_ltmp();
- void init_cfa();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void video_start() override;
- virtual void video_reset() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_device<mc6845_device> m_hd6845;
- required_device<screen_device> m_screen;
- required_device<input_merger_device> m_irqs;
- required_device<palette_device> m_palette;
- optional_device<mc6854_device> m_adlc;
- optional_device<sn76489a_device> m_sn;
- optional_device<samples_device> m_samples;
- required_ioport_array<16> m_keyboard;
- optional_device<saa5050_device> m_trom;
- optional_device<tms5220_device> m_tms;
- optional_device<cassette_image_device> m_cassette;
- optional_device<acia6850_device> m_acia;
- optional_device<clock_device> m_acia_clock;
- required_device<ls259_device> m_latch;
- optional_device<rs232_port_device> m_rs232;
- required_device<via6522_device> m_via6522_0;
- optional_device<via6522_device> m_via6522_1;
- optional_device<upd7002_device> m_upd7002;
- optional_device<bbc_analogue_slot_device> m_analog;
- optional_device<bbc_joyport_slot_device> m_joyport;
- optional_device<bbc_tube_slot_device> m_tube;
- optional_device<bbc_tube_slot_device> m_intube;
- optional_device<bbc_tube_slot_device> m_extube;
- optional_device<bbc_1mhzbus_slot_device> m_1mhzbus;
- optional_device<bbc_modem_slot_device> m_modem;
- optional_device<bbc_userport_slot_device> m_userport;
- optional_device<bbc_internal_slot_device> m_internal;
- optional_device<bbc_exp_slot_device> m_exp;
- optional_device<mc146818_device> m_rtc;
- optional_device<i2cmem_device> m_i2cmem;
- optional_device<bbc_fdc_slot_device> m_fdc;
- optional_device<wd_fdc_digital_device_base> m_wd_fdc;
- optional_device_array<bbc_romslot_device, 16> m_rom;
- optional_device_array<bbc_cartslot_device, 2> m_cart;
-
- required_memory_region m_region_mos;
- required_memory_region m_region_swr;
- optional_memory_bank m_bank1; // bbcbp bbcbp128 bbcm
- optional_memory_bank m_bank2; // bbcbp bbcbp128 bbcm
- optional_device<address_map_bank_device> m_bankdev; // bbcm
- optional_ioport m_bbcconfig;
-
- output_finder<> m_motor_led;
-
- int m_romsel; // This is the latch that holds the sideways ROM bank to read
- int m_paged_ram; // BBC B+ memory handling
- int m_vdusel; // BBC B+ memory handling
-
- /*
- ACCCON
- b7 IRR 1=Causes an IRQ to the processor
- b6 TST 1=Selects &FC00-&FEFF read from OS-ROM
- b5 IFJ 1=Internal 1 MHz bus
- 0=External 1MHz bus
- b4 ITU 1=Internal Tube
- 0=External Tube
- b3 Y 1=Read/Write HAZEL &C000-&DFFF RAM
- 0=Read/Write ROM &C000-&DFFF OS-ROM
- b2 X 1=Read/Write LYNNE
- 0=Read/WRITE main memory &3000-&8000
- b1 E 1=Causes shadow if VDU code
- 0=Main all the time
- b0 D 1=Display LYNNE as screen
- 0=Display main RAM screen
- ACCCON is a read/write register
- */
-
- int m_acccon;
- int m_acccon_irr;
- int m_acccon_tst;
- int m_acccon_ifj;
- int m_acccon_itu;
- int m_acccon_y;
- int m_acccon_x;
- int m_acccon_e;
- int m_acccon_d;
-
- void mc146818_set();
- int m_mc146818_as; // 6522 port b bit 7
- int m_mc146818_ce; // 6522 port b bit 6
-
- int m_via_system_porta;
-
- // interrupt state
- int m_adlc_irq;
- int m_bus_nmi;
-
- int m_column; // this is a counter in the keyboard circuit
-
- /***************************************
- BBC 2C199 Serial Interface Cassette
- ****************************************/
-
- double m_last_dev_val;
- int m_wav_len;
- int m_len0;
- int m_len1;
- int m_len2;
- int m_len3;
- uint8_t m_serproc_data;
- int m_rxd_serial;
- int m_dcd_serial;
- int m_cts_serial;
- int m_dcd_cass;
- int m_rxd_cass;
- int m_cass_out_enabled;
- int m_txd;
- uint32_t m_nr_high_tones;
- int m_cass_out_samples_to_go;
- int m_cass_out_bit;
- int m_cass_out_phase;
- emu_timer *m_tape_timer;
-
-
- /**************************************
- WD1770 disc control
- ***************************************/
-
- int m_fdc_irq;
- int m_fdc_drq;
-
- /**************************************
- Video Code
- ***************************************/
-
-// this is the real location of the start of the BBC's ram in the emulation
-// it can be changed if shadow ram is being used to point at the upper 32K of RAM
- uint8_t *m_video_ram;
- uint8_t m_pixel_bits[256];
- int m_hsync;
- int m_vsync;
-
- uint8_t m_teletext_latch;
- uint8_t m_vula_ctrl;
-
- struct video_nula {
- uint8_t palette_mode;
- uint8_t horiz_offset;
- uint8_t left_blank;
- uint8_t disable;
- uint8_t attr_mode;
- uint8_t attr_text;
- uint8_t flash[8];
- uint8_t palette_byte;
- uint8_t palette_write;
- } m_vnula;
-
- int m_pixels_per_byte;
- int m_cursor_size;
-
- uint8_t m_vula_palette[16];
- uint8_t m_vula_palette_lookup[16];
-
- void setvideoshadow(int vdusel);
- void set_pixel_lookup();
- uint8_t bus_video_data();
- int bbc_keyboard(int data);
-
- void mc6850_receive_clock(int new_clock);
- void cassette_motor(bool state);
- void update_nmi();
- uint16_t calculate_video_address(uint16_t ma, uint8_t ra);
-
-private:
- emu_timer *m_reset_timer;
-};
-
-
-class torch_state : public bbc_state
-{
-public:
- using bbc_state::bbc_state;
- static constexpr feature_type imperfect_features() { return feature::KEYBOARD; }
-
- void torchf(machine_config &config);
- void torchh(machine_config &config);
- void torch301(machine_config &config);
- void torch725(machine_config &config);
-};
-
-
-class bbcbp_state : public bbc_state
-{
-public:
- using bbc_state::bbc_state;
-
- void bbcbp(machine_config &config);
- void bbcbp128(machine_config &config);
- void abc110(machine_config &config);
- void acw443(machine_config &config);
- void abc310(machine_config &config);
- void cfa3000bp(machine_config &config);
- void econx25(machine_config &config);
- void reutapm(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bbcbp_mem(address_map &map);
- void reutapm_mem(address_map &map);
- void bbcbp_fetch(address_map &map);
-};
-
-
-class bbcm_state : public bbc_state
-{
-public:
- bbcm_state(const machine_config &mconfig, device_type type, const char *tag)
- : bbc_state(mconfig, type, tag)
- , m_power_led(*this, "power_led")
- { }
-
- void bbcm(machine_config &config);
- void bbcmt(machine_config &config);
- void bbcmet(machine_config &config);
- void bbcmaiv(machine_config &config);
- void bbcm512(machine_config &config);
- void bbcmarm(machine_config &config);
- void cfa3000(machine_config &config);
- void daisy(machine_config &config);
- void discmon(machine_config &config);
- void discmate(machine_config &config);
- void mpc800(machine_config& config);
- void mpc900(machine_config& config);
- void mpc900gx(machine_config& config);
- void bbcmc(machine_config &config);
- void pro128s(machine_config &config);
- void autoc15(machine_config &config);
-
- static void mpc_prisma_default(device_t *device);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bbcm_mem(address_map &map);
- void bbcm_bankdev(address_map &map);
- void bbcmet_bankdev(address_map &map);
- void bbcmc_mem(address_map &map);
- void bbcmc_bankdev(address_map &map);
- void autoc15_bankdev(address_map &map);
- void bbcm_fetch(address_map &map);
-
- output_finder<> m_power_led;
-};
-
-
-#endif // MAME_INCLUDES_BBC_H
diff --git a/src/mame/includes/beathead.h b/src/mame/includes/beathead.h
deleted file mode 100644
index eec461e13b1..00000000000
--- a/src/mame/includes/beathead.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Atari "Stella on Steroids" hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_BEATHEAD_H
-#define MAME_INCLUDES_BEATHEAD_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "cpu/asap/asap.h"
-#include "audio/atarijsa.h"
-#include "emupal.h"
-#include "screen.h"
-
-class beathead_state : public driver_device
-{
-public:
- beathead_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_jsa(*this, "jsa"),
- m_scan_timer(*this, "scan_timer"),
- m_videoram(*this, "videoram"),
- m_vram_bulk_latch(*this, "vram_bulk_latch"),
- m_palette_select(*this, "palette_select"),
- m_ram_base(*this, "ram_base"),
- m_rom_base(*this, "user1")
- { }
-
- void beathead(machine_config &config);
-
-protected:
- // in drivers/beathead.cpp
- void update_interrupts();
- void interrupt_control_w(offs_t offset, uint32_t data);
- uint32_t interrupt_control_r();
- void sound_reset_w(offs_t offset, uint32_t data);
- void coin_count_w(offs_t offset, uint32_t data);
-
- // in video/beathead.cpp
- void vram_transparent_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void vram_bulk_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void vram_latch_w(offs_t offset, uint32_t data);
- void vram_copy_w(offs_t offset, uint32_t data);
- void finescroll_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t hsync_ram_r(offs_t offset);
- void hsync_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_callback);
-
- virtual void machine_reset() override;
- virtual void video_start() override;
- void main_map(address_map &map);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- required_device<atari_jsa_iii_device> m_jsa;
- required_device<timer_device> m_scan_timer;
-
- required_shared_ptr<uint32_t> m_videoram;
-
- required_shared_ptr<uint32_t> m_vram_bulk_latch;
- required_shared_ptr<uint32_t> m_palette_select;
-
- uint32_t m_finescroll;
- offs_t m_vram_latch_offset;
-
- offs_t m_hsyncram_offset;
- offs_t m_hsyncram_start;
- uint8_t m_hsyncram[0x800];
-
- required_shared_ptr<uint32_t> m_ram_base;
- required_region_ptr<uint32_t> m_rom_base;
-
- attotime m_hblank_offset;
-
- uint8_t m_irq_line_state;
- uint8_t m_irq_enable[3];
- uint8_t m_irq_state[3];
-};
-
-#endif // MAME_INCLUDES_BEATHEAD_H
diff --git a/src/mame/includes/bebox.h b/src/mame/includes/bebox.h
deleted file mode 100644
index 8d5c6aa8100..00000000000
--- a/src/mame/includes/bebox.h
+++ /dev/null
@@ -1,145 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods, R. Belmont
-/*****************************************************************************
- *
- * includes/bebox.h
- *
- * BeBox
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_BEBOX_H
-#define MAME_INCLUDES_BEBOX_H
-
-#include "cpu/powerpc/ppc.h"
-
-#include "imagedev/floppy.h"
-#include "machine/53c810.h"
-#include "machine/am9517a.h"
-#include "machine/idectrl.h"
-#include "machine/ins8250.h"
-#include "machine/pic8259.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/upd765.h"
-#include "machine/intelfsh.h"
-#include "video/pc_vga.h"
-
-#include "bus/lpci/pci.h"
-
-
-class bebox_state : public driver_device
-{
-public:
- bebox_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_ppc(*this, "ppc%u", 1U)
- , m_lsi53c810(*this, "lsi53c810")
- , m_dma8237(*this, "dma8237_%u", 1U)
- , m_pic8259(*this, "pic8259_%u", 1U)
- , m_pit8254(*this, "pit8254")
- , m_ram(*this, RAM_TAG)
- , m_smc37c78(*this, "smc37c78")
- , m_flash(*this, "flash")
- , m_pcibus(*this, "pcibus")
- , m_vga(*this, "vga")
- {
- }
-
-
- void bebox_peripherals(machine_config &config);
- void bebox(machine_config &config);
- void bebox2(machine_config &config);
-
- void init_bebox();
-
- int m_dma_channel; // TODO: move to private once possible
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- enum
- {
- TIMER_GET_DEVICES
- };
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- required_device_array<ppc_device, 2> m_ppc;
- required_device<lsi53c810_device> m_lsi53c810;
- required_device_array<am9517a_device, 2> m_dma8237;
- required_device_array<pic8259_device, 2> m_pic8259;
- required_device<pit8254_device> m_pit8254;
- required_device<ram_device> m_ram;
- required_device<smc37c78_device> m_smc37c78;
- required_device<fujitsu_29f016a_device> m_flash;
- required_device<pci_bus_device> m_pcibus;
- required_device<vga_device> m_vga;
- uint32_t m_cpu_imask[2];
- uint32_t m_interrupts;
- uint32_t m_crossproc_interrupts;
- uint16_t m_dma_offset[2][4];
- uint8_t m_at_pages[0x10];
- uint32_t m_scsi53c810_data[0x100 / 4];
- DECLARE_WRITE_LINE_MEMBER(bebox_pic8259_master_set_int_line);
- DECLARE_WRITE_LINE_MEMBER(bebox_pic8259_slave_set_int_line);
- DECLARE_WRITE_LINE_MEMBER(bebox_dma_hrq_changed);
- DECLARE_WRITE_LINE_MEMBER(bebox_dma8237_out_eop);
- DECLARE_WRITE_LINE_MEMBER(pc_dack0_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack1_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack2_w);
- DECLARE_WRITE_LINE_MEMBER(pc_dack3_w);
- DECLARE_WRITE_LINE_MEMBER(bebox_timer0_w);
- uint64_t bebox_cpu0_imask_r();
- uint64_t bebox_cpu1_imask_r();
- uint64_t bebox_interrupt_sources_r();
- uint64_t bebox_crossproc_interrupts_r(address_space &space);
- uint64_t bebox_interrupt_ack_r();
- uint8_t bebox_page_r(offs_t offset);
- uint8_t bebox_80000480_r();
- uint8_t bebox_flash_r(offs_t offset);
-
- void bebox_cpu0_imask_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- void bebox_cpu1_imask_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- void bebox_crossproc_interrupts_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- void bebox_processor_resets_w(uint64_t data);
- void bebox_page_w(offs_t offset, uint8_t data);
- void bebox_80000480_w(offs_t offset, uint8_t data);
- void bebox_flash_w(offs_t offset, uint8_t data);
- uint8_t at_dma8237_1_r(offs_t offset);
- void at_dma8237_1_w(offs_t offset, uint8_t data);
- uint8_t bebox_dma_read_byte(offs_t offset);
- void bebox_dma_write_byte(offs_t offset, uint8_t data);
- uint64_t scsi53c810_r(offs_t offset, uint64_t mem_mask = ~0);
- void scsi53c810_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t bb_slave_64be_r(offs_t offset, uint64_t mem_mask = ~0);
-
- DECLARE_WRITE_LINE_MEMBER(bebox_ide_interrupt);
-
- DECLARE_WRITE_LINE_MEMBER(bebox_keyboard_interrupt);
-
- DECLARE_WRITE_LINE_MEMBER( fdc_interrupt );
-
- uint32_t scsi_fetch(uint32_t dsp);
- void scsi_irq_callback(int state);
- void scsi_dma_callback(uint32_t src, uint32_t dst, int length, int byteswap);
-
- void bebox_set_irq_bit(unsigned int interrupt_bit, int val);
- void bebox_update_interrupts();
-
- void mpc105_config(device_t *device);
- void cirrus_config(device_t *device);
-
- pci_connector_device & add_pci_slot(machine_config &config, const char *tag, size_t index, const char *default_tag);
-
- void main_mem(address_map &map);
- void slave_mem(address_map &map);
-
- [[maybe_unused]] uint32_t scsi53c810_pci_read(int function, int offset, uint32_t mem_mask);
- [[maybe_unused]] void scsi53c810_pci_write(int function, int offset, uint32_t data, uint32_t mem_mask);
-};
-
-
-#endif // MAME_INCLUDES_BEBOX_H
diff --git a/src/mame/includes/bfm_ad5.h b/src/mame/includes/bfm_ad5.h
deleted file mode 100644
index d2bb9f29744..00000000000
--- a/src/mame/includes/bfm_ad5.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_BFM_AD5_H
-#define MAME_INCLUDES_BFM_AD5_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-
-
-class adder5_state : public driver_device
-{
-public:
- adder5_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- { }
-
- void init_ad5();
- void bfm_ad5(machine_config &config);
-
-protected:
- INTERRUPT_GEN_MEMBER(ad5_fake_timer_int);
- void ad5_map(address_map &map);
-
-private:
- // devices
- required_device<cpu_device> m_maincpu;
-};
-
-INPUT_PORTS_EXTERN( bfm_ad5 );
-
-#endif // MAME_INCLUDES_BFM_AD5_H
diff --git a/src/mame/includes/bfm_sc4.h b/src/mame/includes/bfm_sc4.h
deleted file mode 100644
index 1c722adfaa1..00000000000
--- a/src/mame/includes/bfm_sc4.h
+++ /dev/null
@@ -1,3378 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-/* Scorpion 4 + 5 driver related includes */
-/* mainly used for stuff which is currently shared between sc4 / 5 sets to avoid duplication */
-#ifndef MAME_INCLUDES_BFP_SC4_H
-#define MAME_INCLUDES_BFP_SC4_H
-
-#pragma once
-
-#include "machine/sec.h"
-#include "machine/steppers.h" // stepper motor
-
-#include "machine/bfm_bda.h"
-
-#include "sound/ymz280b.h"
-#include "machine/mc68681.h"
-#include "machine/nvram.h"
-#include "machine/68307.h"
-#include "machine/68340.h"
-#include "video/bfm_dm01.h"
-
-#define SC45_BUTTON_MATRIX_1_0 IPT_BUTTON1
-#define SC45_BUTTON_MATRIX_1_1 IPT_BUTTON2
-#define SC45_BUTTON_MATRIX_1_2 IPT_BUTTON3
-#define SC45_BUTTON_MATRIX_1_3 IPT_BUTTON4
-#define SC45_BUTTON_MATRIX_1_4 IPT_BUTTON5
-#define SC45_BUTTON_MATRIX_1_5 IPT_BUTTON6
-
-#define SC45_BUTTON_MATRIX_2_0 IPT_BUTTON7
-#define SC45_BUTTON_MATRIX_2_1 IPT_BUTTON8
-#define SC45_BUTTON_MATRIX_2_2 IPT_BUTTON9
-#define SC45_BUTTON_MATRIX_2_3 IPT_BUTTON10
-#define SC45_BUTTON_MATRIX_2_4 IPT_BUTTON11
-#define SC45_BUTTON_MATRIX_2_5 IPT_BUTTON12
-
-#define SC45_BUTTON_MATRIX_7_0 IPT_BUTTON13
-#define SC45_BUTTON_MATRIX_7_1 IPT_BUTTON14
-#define SC45_BUTTON_MATRIX_7_2 IPT_BUTTON15
-#define SC45_BUTTON_MATRIX_7_3 IPT_BUTTON16
-#define SC45_BUTTON_MATRIX_7_4 IPT_MAHJONG_A // having more buttons would make sense and be cleaner but as a temporary solution (these are meant to be driven more by the clickable layouts anyway).....
-#define SC45_BUTTON_MATRIX_7_5 IPT_MAHJONG_B
-
-#define SC45_BUTTON_MATRIX_8_0 IPT_MAHJONG_C
-#define SC45_BUTTON_MATRIX_8_1 IPT_MAHJONG_D
-#define SC45_BUTTON_MATRIX_8_2 IPT_MAHJONG_E
-#define SC45_BUTTON_MATRIX_8_3 IPT_MAHJONG_F
-#define SC45_BUTTON_MATRIX_8_4 IPT_MAHJONG_G
-#define SC45_BUTTON_MATRIX_8_5 IPT_MAHJONG_H
-
-#define SC45_BUTTON_MATRIX_9_0 IPT_MAHJONG_I
-#define SC45_BUTTON_MATRIX_9_1 IPT_MAHJONG_J
-#define SC45_BUTTON_MATRIX_9_2 IPT_MAHJONG_K
-#define SC45_BUTTON_MATRIX_9_3 IPT_MAHJONG_L
-#define SC45_BUTTON_MATRIX_9_4 IPT_MAHJONG_M
-#define SC45_BUTTON_MATRIX_9_5 IPT_MAHJONG_N
-
-#define SC45_BUTTON_MATRIX_10_0 IPT_HANAFUDA_A
-#define SC45_BUTTON_MATRIX_10_1 IPT_HANAFUDA_B
-#define SC45_BUTTON_MATRIX_10_2 IPT_HANAFUDA_C
-#define SC45_BUTTON_MATRIX_10_3 IPT_HANAFUDA_D
-#define SC45_BUTTON_MATRIX_10_4 IPT_HANAFUDA_E
-#define SC45_BUTTON_MATRIX_10_5 IPT_HANAFUDA_F
-
-#define SC45_BUTTON_MATRIX_20_0 IPT_SERVICE1 // green / test
-
-static const uint8_t SEGMENT_34_ENCODING_LOOKUP[16] =
-{
- 63, // 0
- 6, // 1
- 91, // 2
- 79, // 3
- 102,// 4
- 109,// 5
- 125,// 6
- 7, // 7
- 127,// 8
- 103,// 9
- 0, // 10
- 121,// 11
- 121,// 12
- 121,// 13
- 121,// 14
- 121,// 15
-};
-
-// common base class for things shared between sc4 and sc5
-class bfm_sc45_state : public driver_device
-{
-protected:
- bfm_sc45_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_duart(*this, "duart68681")
- , m_vfd0(*this, "vfd0")
- , m_dm01(*this, "dm01")
- , m_ymz(*this, "ymz")
- , m_lamps(*this, "lamp%u", 0U)
- , m_matrix(*this, "matrix%u", 0U)
- , m_digits(*this, "digit%u", 0U)
- {
- }
-
- required_device<mc68681_device> m_duart;
- optional_device<bfm_bda_device> m_vfd0;
- optional_device<bfm_dm01_device> m_dm01;
- required_device<ymz280b_device> m_ymz;
- output_finder<0x20 * 8> m_lamps;
- output_finder<0x20 * 8> m_matrix;
- output_finder<32 + 2> m_digits;
-
- // serial vfd
- int vfd_enabled;
- bool vfd_old_clock;
-
- uint8_t vfd_ser_value;
- int vfd_ser_count;
-
- // 34 segment custom encoding used by some sc4/5 machines such as Box Clever, Break The Bank, The Big Deal, The Crazy Chair, The Perfect Game
- bool m_segment_34_encoding;
- uint8_t m_segment_34_cache[32];
-
- virtual void machine_start() override;
-
- void mux_output_w(offs_t offset, uint8_t data);
- void mux_output2_w(offs_t offset, uint8_t data);
- void bfm_sc4_reset_serial_vfd();
- void bfm_sc45_write_serial_vfd(bool cs, bool clock, bool data);
-};
-
-void bfm_sc45_write_serial_vfd(running_machine &machine, bool cs, bool clock, bool data);
-
-// sc4 specifics
-class sc4_state : public bfm_sc45_state
-{
-public:
- sc4_state(const machine_config &mconfig, device_type type, const char *tag)
- : bfm_sc45_state(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_cpuregion(*this, "maincpu")
- , m_nvram(*this, "nvram")
- , m_sec(*this, "sec")
- , m_in(*this, "IN-%u", 0U)
- , m_in_coin(*this, "IN-COIN")
- , m_reel(*this, "reel%u", 1U)
- , m_io_ports(*this, "IN-%u", 0)
- {
- m_chk41addr = -1;
- m_dochk41 = false;
- }
-
- required_device<m68307_cpu_device> m_maincpu;
- required_memory_region m_cpuregion;
- // devices
- required_device<nvram_device> m_nvram;
- required_device<sec_device> m_sec;
- optional_ioport_array<21> m_in;
- required_ioport m_in_coin;
- optional_device_array<stepper_device, 6> m_reel;
-
- int m_reel12_latch;
- int m_reel3_latch;
- int m_reel4_latch;
- int m_reel56_latch;
- int m_optic_pattern;
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(reel_optic_cb) { if (state) m_optic_pattern |= (1 << N); else m_optic_pattern &= ~(1 << N); }
-
- int m_meterstatus;
-
- int m_chk41addr;
- bool m_dochk41;
-
- uint16_t m_mainram[0x10000/2];
-
- uint8_t read_input_matrix(int row);
-
-
- DECLARE_WRITE_LINE_MEMBER(bfmdm01_busy);
-
- uint16_t sc4_mem_r(offs_t offset, uint16_t mem_mask = ~0);
- void sc4_mem_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t sc4_cs1_r(offs_t offset, uint16_t mem_mask = ~0);
-
- DECLARE_WRITE_LINE_MEMBER(bfm_sc4_duart_irq_handler);
- DECLARE_WRITE_LINE_MEMBER(bfm_sc4_duart_txa);
- uint8_t bfm_sc4_duart_input_r();
- void bfm_sc4_duart_output_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(m68307_duart_txa);
- uint8_t m68307_duart_input_r();
- void m68307_duart_output_w(uint8_t data);
-
- void init_sc4();
- void init_sc4mbus();
- void init_sc4cvani();
- void init_sc4cvclb();
- void init_sc4bonbxm();
- void init_sc4bonbx();
- void init_sc4crcc();
- void init_sc4fcc();
- void init_sc4luckb();
- void init_sc4luckb_mbus();
- void init_sc4mgr();
- void init_sc4mgrm();
- void init_sc4pgold();
- void init_sc4royle();
- void init_sc4ticlb();
- void init_sc4clbtm();
- void init_sc4bull();
- void init_sc4dnd();
- void init_sc4dndcs();
- void init_sc4dndbb();
- void init_sc4dndcl();
- void init_sc4dnddd();
- void init_sc4dndhf();
- void init_sc4dndys();
- void init_sc4dndlp();
- void init_sc4dndra();
- void init_sc4dndbd();
- void init_sc4dndbr();
- void init_sc4dndcc();
- void init_sc4dnddw();
- void init_sc4dnddf();
- void init_sc4dndpg();
- void init_sc4dndtp();
- void init_sc4dndww();
- void init_sc4dndcw();
- void init_sc4dndtr();
- void init_sc4dndwb();
- void init_sc4dndbe();
- void init_sc4dndbc();
- void init_sc4fguy();
- void init_sc4gd();
- void init_sc4gdclb();
- void init_sc4gbcas();
- void init_sc4gball();
- void init_sc4gunp();
- void init_sc4hapnt();
- void init_sc4hntcsm();
- void init_sc4hntcs();
- void init_sc4hill();
- void init_sc4bwow();
- void init_sc4ggamem();
- void init_sc4ggame();
- void init_sc4gggtb();
- void init_sc4ggg();
- void init_sc4pstat();
- void init_sc4pstat_mbus();
- void init_sc4abra();
- void init_sc4botn();
- void init_sc4broll();
- void init_sc4bigdl();
- void init_sc4bbclb();
- void init_sc4bbclb_mbus();
- void init_sc4blast();
- void init_sc4brix();
- void init_sc4bugs();
- void init_sc4canca();
- void init_sc4captn();
- void init_sc4cmous();
- void init_sc4hotpr();
- void init_sc4cnfr();
- void init_sc4cad();
- void init_sc4cad_mbus();
- void init_sc4cadcl();
- void init_sc4cconx();
- void init_sc4cconxd();
- void init_sc4ccrus();
- void init_sc4chand();
- void init_sc4cinv();
- void init_sc4ckxtb();
- void init_sc4ckx3p();
- void init_sc4cla7();
- void init_sc4disco();
- void init_sc4ghost();
- void init_sc4ghosttb();
- void init_sc4gx();
- void init_sc4gx3();
- void init_sc4rhx();
- void init_sc4rhx_mbus();
- void init_sc4rhxcs();
- void init_sc4rovrt();
- void init_sc4showt();
- void init_sc4swywm();
- void init_sc4sumit();
- void init_sc4swbak();
- void init_sc4bsp();
- void init_sc4clown();
- void init_sc4nunsm();
- void init_sc4acesh();
- void init_sc4pp();
- void init_sc4mrh();
- void init_sc4mhn();
- void init_sc4inspn();
- void init_sc4hiss();
- void init_sc4glad();
- void init_sc4fmj();
- void init_sc4fbspn();
- void init_sc4ddosh();
- void init_sc4ddosh_mbus();
- void init_sc4ctl();
- void init_sc4cmani();
- void init_sc4casxt();
- void init_sc4cari();
- void init_sc4cabin();
- void init_sc4butch();
- void init_sc4bullcs();
- void init_sc4bantm();
- void init_sc4adjb();
- void init_sc4onup();
- void init_sc4blokq();
- void init_sc4xmark();
- void init_sc4wondw();
- void init_sc4wwys();
- void init_sc4wspin();
- void init_sc4tri7tb();
- void init_sc4tri7();
- void init_sc4tri7_mbus();
- void init_sc4tub();
- void init_sc4vrgcl();
- void init_sc4vrgcl_mbus();
- void init_sc4wadzl();
- void init_sc4cleg();
- void init_sc4cleg_mbus();
- void init_sc4leg();
- void init_sc4msclb();
- void init_sc4mspid();
- void init_sc4mspid_mbus();
- void init_sc4maxcc();
- void init_sc4luck7();
- void init_sc4luck7tb();
- void init_sc4ltr2c();
- void init_sc4ltr2c_mbus();
- void init_sc4lotr2();
- void init_sc4lotr2_mbus();
- void init_sc4knok();
- void init_sc4knokb();
- void init_sc4jjc();
- void init_sc4quidv();
- void init_sc4pony();
- void init_sc4popey();
- void init_sc4boomb();
- void init_sc4derby();
- void init_sc4cfgcl();
- void init_sc4cfdu();
- void init_sc4cfcla();
- void init_sc4mmad();
- void init_sc4manic();
- void init_sc4evol();
- void init_sc4emmer();
- void init_sc4dough();
- void init_sc4count();
- void init_sc4ttomb();
- void init_sc4tbana();
- void init_sc4mtb();
- void init_sc4mtbcl();
- void init_sc4monob();
- void init_sc4mont();
- void init_sc4opses();
- void init_sc4nmtj();
- void init_sc4rt();
- void init_sc4rbank();
- void init_sc4sslam();
- void init_sc4sus();
- void init_sc4spice();
- void init_sc4cjcl();
- void init_sc4clclo();
- void init_sc4bobcl();
- void init_sc4bankb();
- void init_sc4bed();
- void init_sc4bedcl();
- void init_sc4bblas();
- void init_sc4bblas_mbus();
- void init_sc4aztec();
- void init_sc4helrd();
- void init_sc4heatw();
- void init_sc4colos();
- void init_sc4fevdt();
- void init_sc4fevnx();
- void init_sc4game();
- void init_sc4goud();
- void init_sc4lasv();
- void init_sc4miljo();
- void init_sc4paytm();
- void init_sc4pglcs();
- void init_sc4redad();
- void init_sc4rvl();
- void init_sc4rvlnx();
- void init_sc4rio();
- void init_sc4strbr();
- void init_sc4twilt();
- void init_sc4monsp();
- void init_sc4ivply();
- void init_sc4ccc();
- void init_sc4valqp();
- void init_sc4winxp();
- void init_sc4xcash();
- void init_sc4helld();
- void init_sc4cashn();
- void init_sc4chain();
- void init_sc4vivam();
- void init_sc4trail();
- void init_sc4typ();
- void init_sc4ttpie();
- void init_sc4rosts();
- void init_sc4redsq();
- void init_sc4pwrbl();
- void init_sc4ppctc();
- void init_sc4potp();
- void init_sc4nmare();
- void init_sc4mr2r();
- void init_sc4mmb();
- void init_sc4mhp();
- void init_sc4mdm();
- void init_sc4mmm();
- void init_sc4bpb();
- void init_sc4ijclb();
- void init_sc4jack();
- void init_sc4jjunc();
- void init_sc4jolly();
- void init_sc4juicy();
- void init_sc4juicy_mbus();
- void init_sc4jjf();
- void init_sc4kalei();
- void init_sc4lir();
- void init_sc4lined();
- void init_sc4lined_mbus();
- void init_sc4ldvcl();
- void init_sc4lockb();
- void init_sc4lkbcl();
- void init_sc4lkbcl_mbus();
- void init_sc4lotrf();
- void init_sc4magic();
- void init_sc4maxim();
- void init_sc4mono5();
- void init_sc4monoa();
- void init_sc4monoa_mbus();
- void init_sc4mondx();
- void init_sc4mou();
- void init_sc4oyf();
- void init_sc4pacqp();
- void init_sc4pacmn();
- void init_sc4paccs();
- void init_sc4paccs_mbus();
- void init_sc4paccl();
- void init_sc4pacpl();
- void init_sc4party();
- void init_sc4pmani();
- void init_sc4ppclb();
- void init_sc4pipe();
- void init_sc4plumb();
- void init_sc4polem();
- void init_sc4polen();
- void init_sc4polic();
- void init_sc4potsh();
- void init_sc4pogbl();
- void init_sc4pwrsg();
- void init_sc4pir();
- void init_sc4pen1();
- void init_sc4quidr();
- void init_sc4qmodo();
- void init_sc4rdrag();
- void init_sc4rdrcl();
- void init_sc4relcz();
- void init_sc4rotc();
- void init_sc4rich();
- void init_sc4rttt();
- void init_sc4rttt_mbus();
- void init_sc4roksc();
- void init_sc4rogds();
- void init_sc4srrmz();
- void init_sc4srrmz_mbus();
- void init_sc4sidsp();
- void init_sc4sirpz();
- void init_sc4smk7();
- void init_sc4srr();
- void init_sc4slc();
- void init_sc4slc_mbus();
- void init_sc4solgl();
- void init_sc4sace();
- void init_sc4sbust();
- void init_sc4starp();
- void init_sc4stirc();
- void init_sc4strk();
- void init_sc4sahed();
- void init_sc4strx();
- void init_sc4suscl();
- void init_sc4suscl_mbus();
- void init_sc4s6c();
- void init_sc4taekw();
- void init_sc4taekw_mbus();
- void init_sc4taknt();
- void init_sc4takcl();
- void init_sc4takcl_mbus();
- void init_sc4tetri();
- void init_sc4tic2();
- void init_sc4tic2_mbus();
- void init_sc4tgear();
- void init_sc4tload();
- void init_sc4tridn();
- void init_sc4trist();
- void init_sc4tristtb();
- void init_sc4valnv();
- void init_sc4vmclb();
- void init_sc4wernr();
- void init_sc4waw();
- void init_sc4winsptb();
- void init_sc4winsp();
- void init_sc4gcclb();
- void init_sc4gcclb_mbus();
- void init_sc4cvclb_mbus();
- void init_sc4spark();
- void init_sc4brkfs();
- void init_sc4gslam();
- void init_sc4cr();
- void init_sc4crcl();
- void init_sc4crcl_mbus();
- void init_sc4cashm();
- void init_sc4chick();
- void init_sc4ccogs();
- void init_sc4cclas();
- void init_sc4cclas_mbus();
- void init_sc4cclim();
- void init_sc4cclim_mbus();
- void init_sc4czfra();
- void init_sc4cfqps();
- void init_sc4cfqps_alt();
- void init_sc4cfcas();
- void init_sc4cfcas_mbus();
- void init_sc4cfclb();
- void init_sc4daylt();
- void init_sc4deepi();
- void init_sc4dblfr();
- void init_sc4darw();
- void init_sc4sstep();
- void init_sc4duckq();
- void init_sc4eascs();
- void init_sc4fastf();
- void init_sc4ffru();
- void init_sc4fpitc();
- void init_sc4fire();
- void init_sc4fwp();
- void init_sc4fd7th();
- void init_sc4frenz();
- void init_sc4ftopi();
- void init_sc4frsu();
- void init_sc4czfr();
- void init_sc4cccsh();
- void init_sc4fullt();
- void init_sc4ziggy();
- void init_sc4gldcl();
- void init_sc4ggrid();
- void init_sc4ggrid_mbus();
- void init_sc4ggcl();
- void init_sc4ggcl_mbus();
- void init_sc4goldo();
- void init_sc4goldw();
- void init_sc4gag();
- void init_sc4greed();
- void init_sc4hf();
- void init_sc4hfcl();
- void init_sc4himi();
- void init_sc4hi5();
- void init_sc4sprng();
- void init_sc4hilo();
- void init_sc4hitsh();
- void init_sc4holyw();
- void init_sc4h6cl();
- void init_sc4jjucl();
- void init_sc4jjucl_mbus();
- void init_sc4monop();
- void init_sc4pglcl();
- void init_sc4po8();
- void init_sc4po8_mbus();
- void init_sc4a40();
- void init_sc4a40cl();
- void init_sc4adwta();
- void init_sc4bar7();
- void init_sc4batl();
- void init_sc4cariq();
- void init_sc4cblas();
- void init_sc4chavi();
- void init_sc4chavy();
- void init_sc4dmine();
- void init_sc4hotsh();
- void init_sc4hotrd();
- void init_sc4hotwd();
- void init_sc4lotrr();
- void init_sc4ldvl();
- void init_sc4ijob();
- void init_sc4vivcs();
- void init_sc4brksp();
- void init_sc4bulcl();
- void init_sc4carry();
- void init_sc4celeb();
- void init_sc4crzky();
- void init_sc4crzky_mbus();
- void init_sc4fever();
- void init_sc4corcl();
- void init_sc4coro();
- void init_sc4corod();
- void init_sc4corotb();
- void init_sc4hyper();
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bfm_sc4_68307_porta_w(address_space &space, bool dedicated, uint8_t data, uint8_t line_mask);
- void bfm_sc4_reel3_w(uint8_t data);
- void bfm_sc4_reel4_w(uint8_t data);
- void bfm_sc4_68307_portb_w(address_space &space, bool dedicated, uint16_t data, uint16_t line_mask);
- uint8_t bfm_sc4_68307_porta_r(address_space &space, bool dedicated, uint8_t line_mask);
- uint16_t bfm_sc4_68307_portb_r(address_space &space, bool dedicated, uint16_t line_mask);
-
- void find_mbus(uint16_t* rom);
-
-
- void sc4_common(machine_config &config);
- void sc4(machine_config &config);
- void sc4_200_4r(machine_config &config);
- void sc4_200_4ra(machine_config &config);
- void sc4_200_4rb(machine_config &config);
- void sc4_200_5r(machine_config &config);
- void sc4_200_5ra(machine_config &config);
- void sc4_200_5rb(machine_config &config);
- void sc4_200_5rc(machine_config &config);
- void sc4_200_alt(machine_config &config);
- void sc4_200_alta(machine_config &config);
- void sc4_200_altb(machine_config &config);
- void sc4_200_std(machine_config &config);
- void sc4_3reel(machine_config &config);
- void sc4_3reel_200(machine_config &config);
- void sc4_3reel_200_48(machine_config &config);
- void sc4_4reel(machine_config &config);
- void sc4_4reel_200(machine_config &config);
- void sc4_4reel_alt(machine_config &config);
- void sc4_5reel(machine_config &config);
- void sc4_5reel_alt(machine_config &config);
- void sc4_adder4(machine_config &config);
- void sc4_no_reels(machine_config &config);
- void sc4dmd(machine_config &config);
- void sc4_map(address_map &map);
-
-protected:
- optional_ioport_array<16> m_io_ports;
-};
-
-class sc4_adder4_state : public sc4_state
-{
-public:
- sc4_adder4_state(const machine_config &mconfig, device_type type, const char *tag)
- : sc4_state(mconfig, type, tag)
- , m_adder4cpuregion(*this, "adder4")
- , m_adder4cpu(*this, "adder4")
- { }
-
- required_region_ptr<uint32_t> m_adder4cpuregion;
- std::unique_ptr<uint32_t[]> m_adder4ram;
-
- uint32_t adder4_mem_r(offs_t offset, uint32_t mem_mask = ~0);
- void adder4_mem_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- virtual void machine_start() override;
-
- // devices
- required_device<m68340_cpu_device> m_adder4cpu;
- void sc4_adder4(machine_config &config);
- void sc4_adder4_map(address_map &map);
-};
-
-
-
-
-INPUT_PORTS_EXTERN( sc4_base );
-INPUT_PORTS_EXTERN( sc4_raw );
-
-#define SC4_JACKPOT_KEY_SETTINGS \
- PORT_DIPSETTING( 0x00, "No Key" ) \
- PORT_DIPSETTING( 0x01, "75GBP (club)" ) \
- PORT_DIPSETTING( 0x02, "100GBP (club)" ) \
- PORT_DIPSETTING( 0x03, "250GBP (club)" ) \
- PORT_DIPSETTING( 0x04, "150GBP (club)" ) \
- PORT_DIPSETTING( 0x05, "5" ) \
- PORT_DIPSETTING( 0x06, "6" ) \
- PORT_DIPSETTING( 0x07, "500GBP (club)" ) \
- PORT_DIPSETTING( 0x08, "5GBP" ) \
- PORT_DIPSETTING( 0x09, "15GBP" ) \
- PORT_DIPSETTING( 0x0a, "25GBP (4GBP, Maz)" ) \
- PORT_DIPSETTING( 0x0b, "11" ) \
- PORT_DIPSETTING( 0x0c, "35GBP" ) \
- PORT_DIPSETTING( 0x0d, "70GBP" ) \
- PORT_DIPSETTING( 0x0e, "14" ) \
- PORT_DIPSETTING( 0x0f, "15" )
-
-
-#define SC4_STANDARD_STAKE_KEY \
- PORT_MODIFY("IN-3") /* the Stake key */ \
- PORT_DIPNAME( 0x1c, 0x00, "IN 3-2:4 (Stake Key)" ) \
- PORT_DIPSETTING( 0x00, "0" ) \
- PORT_DIPSETTING( 0x04, "1" ) \
- PORT_DIPSETTING( 0x08, "2" ) \
- PORT_DIPSETTING( 0x0c, "3" ) \
- PORT_DIPSETTING( 0x10, "4" ) \
- PORT_DIPSETTING( 0x14, "5" ) \
- PORT_DIPSETTING( 0x18, "6" ) \
- PORT_DIPSETTING( 0x1c, "7" )
-
-#define SC4_STANDARD_SYSBUTS \
- PORT_MODIFY("IN-20") \
- PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_SERVICE1) PORT_NAME("Green Button (Service?)") /* next to the dips on the MB */ \
- PORT_DIPNAME( 0x0002, 0x0000, "Door Lock" ) /* DORLOK20.1 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0004, 0x0000, "Service Door" ) /* SERDOR20.2 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0008, 0x0000, "Cashbox Door" ) /* CSHDOR20.3 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0010, 0x0000, "Hopper DMP" ) /* HOPDMP20.4 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0010, DEF_STR( On ) )
-
-
-#define SC4_STANDARD_PERCENT_KEY \
- PORT_MODIFY("IN-6") /* the %age key */ \
- PORT_DIPNAME( 0x0f, 0x00, "IN 6-0:3 (Percentage Key)" ) \
- PORT_DIPSETTING( 0x00, "0" ) \
- PORT_DIPSETTING( 0x01, "1" ) \
- PORT_DIPSETTING( 0x02, "2" ) \
- PORT_DIPSETTING( 0x03, "3" ) \
- PORT_DIPSETTING( 0x04, "4" ) \
- PORT_DIPSETTING( 0x05, "5" ) \
- PORT_DIPSETTING( 0x06, "6" ) \
- PORT_DIPSETTING( 0x07, "7" ) \
- PORT_DIPSETTING( 0x08, "8" ) \
- PORT_DIPSETTING( 0x09, "9" ) \
- PORT_DIPSETTING( 0x0a, "a" ) \
- PORT_DIPSETTING( 0x0b, "b" ) \
- PORT_DIPSETTING( 0x0c, "c" ) \
- PORT_DIPSETTING( 0x0d, "d" ) \
- PORT_DIPSETTING( 0x0e, "e" ) \
- PORT_DIPSETTING( 0x0f, "f" )
-
-#define SC4_STANDARD_BLANK_DIPS \
- PORT_MODIFY("IN-16") \
- PORT_DIPNAME( 0x0001, 0x0000, "IN 16-0 (DSW1)" ) /* DIL1 16.0 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0001, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0002, 0x0000, "IN 16-1 (DSW2)" ) /* DIL2 16.1 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0004, 0x0000, "IN 16-2 (DSW3)" ) /* DIL3 16.2 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0008, 0x0000, "IN 16-3 (DSW4)" ) /* DIL4 16.3 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0010, 0x0000, "IN 16-4 (DSW5)" ) /* DIL5 16.4 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) \
- PORT_MODIFY("IN-17") \
- PORT_DIPNAME( 0x0001, 0x0000, "IN 17-0 (DSW6)" ) /* DIL6 17.0 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0001, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0002, 0x0000, "IN 17-1 (DSW7)" ) /* DIL7 17.1 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0004, 0x0000, "IN 17-2 (DSW8)" ) /* DIL8 17.2 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0008, 0x0000, "IN 17-3 (DSW9)" ) /* DIL9 17.3 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0010, 0x0000, "IN 17-4 (DSW10)" ) /* DIL10 17.4 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) \
- PORT_MODIFY("IN-18") \
- PORT_DIPNAME( 0x0001, 0x0000, "IN 18-0 (DSW11)" ) /* DIL11 18.0 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0001, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0002, 0x0000, "IN 18-1 (DSW12)" ) /* DIL12 18.1 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0004, 0x0000, "IN 18-2 (DSW13)" ) /* DIL13 18.2 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0008, 0x0000, "IN 18-3 (DSW14)" ) /* DIL14 18.3 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) \
- PORT_DIPNAME( 0x0010, 0x0000, "IN 18-4 (DSW15)" ) /* DIL15 18.4 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) \
- PORT_MODIFY("IN-19") \
- PORT_DIPNAME( 0x0001, 0x0000, "IN 19-0 (DSW16)" ) /* DIL9 19.0 */ \
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x0001, DEF_STR( On ) )
-
-
-
-#define sc_ivply_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* 95004313 4PLAY PR1227 */ \
- ROM_LOAD( "95004313.snd", 0x0000, 0x080000, CRC(28faed9e) SHA1(624d6cfcc97dd1950b5d908cde2e4d2eb6ea1dc6) )
-#define sc_plays_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891106.bin", 0x0000, 0x5000, CRC(1f616820) SHA1(c0b19d4243f250c3159564c65e9a2247e61e315f) ) \
- ROM_LOAD( "95891107.bin", 0x0000, 0x5000, CRC(6af72c14) SHA1(4666e338fc629a32178f617c8536e7f11d703b14) ) \
- ROM_LOAD( "95891108.bin", 0x0000, 0x5000, CRC(f44de048) SHA1(783ae2b12e8e548a90f626a2050968e3f38b6042) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* TEDL SOUNDS */ \
- ROM_LOAD( "95009013.bin", 0x0000, 0x0f3ee2, CRC(f324a590) SHA1(0533af3304100c99af5fdeba2773d92384101f43) )
-#define sc_a40_others \
- ROM_REGION( 0x1000000, "ymz", ROMREGION_ERASE00 ) /* AROU SOUNDS */ \
- ROM_LOAD( "95008511.bin", 0x0000, 0x0ff5c3, CRC(6fac2014) SHA1(5b364406f7b5d8f4c54561e3977571e4a47273a0) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890123.bin", 0x0000, 0x5000, CRC(e3f5466e) SHA1(ae2f45f79d0113e651b8cf5f655a9ceb32a3ddaa) ) \
- ROM_LOAD( "95890124.bin", 0x0000, 0x5000, CRC(9663025a) SHA1(097246412fd4084c1185d8dfd91e884abc5a3f8a) ) \
- ROM_LOAD( "95890125.bin", 0x0000, 0x5000, CRC(08d9ce06) SHA1(9087170d6c6edad735ab5a2abbc0a2191aabfd03) )
-#define sc_a40cl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* AROU SOUNDS */ \
- ROM_LOAD( "95008527.bin", 0x0000, 0x0ff5c3, CRC(6fac2014) SHA1(5b364406f7b5d8f4c54561e3977571e4a47273a0) )
-#define sc_acesh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* ACEHI SOUNDS */ \
- ROM_LOAD( "95008292.bin", 0x0000, 0x100000, CRC(1c238098) SHA1(e2e2cb52ea84a7dc5e557b61b3ee21bd5a063833) )
-#define sc_adjb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR3009 JIGGY BANK SOUNDS11 */ \
- ROM_LOAD( "95008699.bin", 0x000000, 0x100000, CRC(6d49b54a) SHA1(d64caa1dae40c3bf536f8739d6995b589c7184b7) ) \
- ROM_LOAD( "95008700.bin", 0x100000, 0x100000, CRC(49c37b2a) SHA1(5a59a540becb8c83288ae3a15cfac069fd792e74) )
-
-
-#define sc_adsnt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1611 ANT AND DECS SOUNDS11 */ \
- ROM_LOAD( "95008478.bin", 0x000000, 0x100000, CRC(d8aa3daf) SHA1(dafeb014f04179882921622df9b5c9917279bd02) ) \
- ROM_LOAD( "95008479.bin", 0x100000, 0x100000, CRC(f1ec9928) SHA1(cd2eb8115217c205f248564c9340353c84db2ac5) )
-
-#define sc_adwta_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1940 ADSNT SHOWTIME SOUNDS11 */ \
- ROM_LOAD( "95008656.bin", 0x000000, 0x100000, CRC(632a4cbb) SHA1(455e6242f5c5c1a0d84aadfdda33873e8e7b2418) ) \
- ROM_LOAD( "95008657.bin", 0x100000, 0x100000, CRC(aa68db50) SHA1(52ee314549fac989dd9ee494144ee3bbb99ee283) )
-#define sc_aztec_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* 95004286 AZTEC PR1155 */ \
- ROM_LOAD( "95004286.snd", 0x0000, 0x080000, CRC(20de4ebe) SHA1(0ea12d0c46f90efd8b040c2374d749fb7b15698e) )
-#define sc_bjob_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR000053 BANKJOB 1 */ \
- ROM_LOAD( "95009126.bin", 0x000000, 0x100000, CRC(55940c44) SHA1(e4f2f36ccf28446011e43f5c8a72fa9d15f72df0) ) \
- ROM_LOAD( "95009127.bin", 0x100000, 0x100000, CRC(0d3ee6d9) SHA1(a40bffaf631010d53ce9228758bbf5dba8423f6e) )
-
-#define sc_bucc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR3216 BUCKANEERS SOUNDS11 */ \
- ROM_LOAD( "95008806.bin", 0x000000, 0x100000, CRC(16ee0143) SHA1(0890da3b2108ec67db1cc8ed2dc40f2eac2a5fbc) ) \
- ROM_LOAD( "95008807.bin", 0x100000, 0x100000, CRC(7141737f) SHA1(74607352f32df2a27f0724f243532c98ca315910) )
-#define sc_bunny_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* BUNN SOUNDS */ \
- ROM_LOAD( "95008907.bin", 0x0000, 0x08b8c3, CRC(2b4911fd) SHA1(7ccdb5e5accb548c10ef288fd901825505559866) )
-#define sc_bantm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* BANTAM SOUNDS */ \
- ROM_LOAD( "95008962.bin", 0x000000, 0x100000, CRC(3c10480f) SHA1(67c86228b6199e336beaa21b2982ce3cf5867ed1) ) \
- ROM_LOAD( "95008963.bin", 0x100000, 0x100000, CRC(8ceb0bf8) SHA1(b5712f145ff515c10b0a3b131d0c215a31adbb42) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890434.bin", 0x0000, 0x5000, CRC(37740955) SHA1(c7a9839a4f7f01c916b696a8baedf33d0c146fa3) ) \
- ROM_LOAD( "95890435.bin", 0x0000, 0x5000, CRC(42e24d61) SHA1(dd915ccf979d61cdb0ff7598d35cdceb43d6d8e9) ) \
- ROM_LOAD( "95890436.bin", 0x0000, 0x5000, CRC(dc58813d) SHA1(9bad2c6cdacaa016f5239e578600f1ff03f1ed63) )
-#define sc_bar7_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1433 BAR SEVENS SOUNDS11 */ \
- ROM_LOAD( "95008409.bin", 0x0000, 0x080000, CRC(ec29c758) SHA1(ceb99fb6edcab5c5e1b0ec46d622ee0f2cdb20be) )
-#define PR1492_CAS_BAR_SEVENS_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1492 CAS BAR SEVENS SOUNDS11 */ \
- ROM_LOAD( "95008502.bin", 0x0000, 0x080000, CRC(d9bc2c75) SHA1(b9e637d47287a844a6ff1f0b1d1a34b48a806aad) )
-#define sc_batl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008541.bin", 0x000000, 0x100000, CRC(a739cba8) SHA1(b968cfa18c671aaf027909961a843fc01101d68a) ) \
- ROM_LOAD( "95008542.bin", 0x100000, 0x100000, CRC(686bb7cc) SHA1(4e809f2d1401030127d7afa853189c4fca9742e5) )
-#define sc_bedcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008397.bin", 0x0000, 0x0fe1b3, CRC(d59cd40d) SHA1(585e42b66e691ab9a3df5bb7dae4368226861b04) )
-#define sc_bblas_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008302", 0x0000, 0x0fea01, CRC(ef880aee) SHA1(00177f6a0bfe2006d8545834ea4fb22427be97c4) )
-#define sc_bbust_others \
- ROM_REGION( 0x100000, "ymz", 0 ) \
- ROM_LOAD( "95008050.bin", 0x0000, 0x0fc8a1, CRC(8f1a49b5) SHA1(9d75e7118c628b3665a31376a3e35797b7058f6b) )
-
-
-#define sc_bobcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008967.bin", 0x0000, 0x0f64c6, CRC(cf1e1c59) SHA1(f7ccbc6ed20aed329c2a199a489686bb8e87edfb) )
-#define sc_bonbx_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008992.bin", 0x0000, 0x0aa536, CRC(aad10089) SHA1(d8a32f66432ee901be05435e8930d3897f4b4e33) ) /* BARX - right header, wrong sounds? */ \
- ROM_LOAD( "95009015.bin", 0x0000, 0x0b7821, CRC(8b6ca362) SHA1(4c50935b6d1038738ce631fbdc359416197b8c03) ) /* BARX - right header, wrong sounds? */
-#define sc_brksp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008210.bin", 0x0000, 0x1aea2f, CRC(da15a50e) SHA1(2f068526992358789e5f2c347a5adf56a1bfde52) )
-
-
-#define sc_bpfpb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008771.bin", 0x000000, 0x100000, CRC(121b6db2) SHA1(634f435635fcb08013729629fc8f56a4180c2034) ) \
- ROM_LOAD( "95008772.bin", 0x100000, 0x100000, CRC(c8813870) SHA1(5c4571a3ca9a06c49e80c5e10e9fd288de560324) )
-
-#define sc_bpb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008553.bin", 0x000000, 0x100000, CRC(f8019fb2) SHA1(aa5baed73538ebc6e39c6e35437b77a5cc22135e) ) \
- ROM_LOAD( "95008554.bin", 0x100000, 0x100000, CRC(8e00a011) SHA1(821686d96ee6fb45ab0b771934ce25ab7a230c0c) )
-#define sc_bull_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008520.bin", 0x000000, 0x100000, CRC(ab418ce0) SHA1(39afbd449a21a31016acaffcfb4f6d684db300e7) ) \
- ROM_LOAD( "95008521.bin", 0x100000, 0x100000, CRC(7fd0f70c) SHA1(e6bf85b9e2528dac5811277ee89599e58e6358b0) )
-#define PR1743_CASINO_BULLSEYE_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008544.bin", 0x000000, 0x100000, CRC(19777f20) SHA1(da0cc08b00f9ab565a0e559761adbf7bcd7c327b) )
-#define PR1758_BULLSEYE_TRIPLE_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008575.bin", 0x000000, 0x100000, CRC(715901d2) SHA1(a7d3d0c7b9fc3eefb0df372cdf0cae7abe8bd959) )
-#define PR3318_BULLSEYE_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009116.bin", 0x000000, 0x100000, CRC(5a01e206) SHA1(38ee3706d9edb68d17c90bb627aa17b4f908d721) ) \
- ROM_LOAD( "95009117.bin", 0x100000, 0x100000, CRC(c3623829) SHA1(92b0cf89678023bb02394699e2e214389317ec6c) )
-
-
-#define sc_butch_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008604.bin", 0x000000, 0x100000, CRC(dede59e0) SHA1(de56b80d0a53fbb18acce2b907f48801e8fced12) ) \
- ROM_LOAD( "95008605.bin", 0x100000, 0x100000, CRC(3db1a818) SHA1(2c20d39dc0d7eb3996209a0b34afae3cd2eebbdc) )
-
-#define sc_cfact_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008508.bin", 0x000000, 0x100000, CRC(97d26d77) SHA1(828e3797184b39e1b8fd788253071f323f2d890e) ) \
- ROM_LOAD( "95008509.bin", 0x100000, 0x100000, CRC(8d1e1f36) SHA1(8976a74c050158fc63fbcbfbadd3f41fca187a24) )
-#define sc_ctit_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008762.bin", 0x000000, 0x100000, CRC(cf7fc030) SHA1(0c34d9b35eb6229ae48b27f2f88ff682b4601816) ) \
- ROM_LOAD( "95008763.bin", 0x100000, 0x100000, CRC(767b94d9) SHA1(5cac6831e54af03eea065143c04bda54f44fec7d) )
-#define sc_craid_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890715.bin", 0x0000, 0x5000, CRC(60af654b) SHA1(ec714992a41b154f534aac0a515e1ef490dad0db) ) \
- ROM_LOAD( "95890716.bin", 0x0000, 0x5000, CRC(1539217f) SHA1(bc766636048c720ac5df55bbf643e2801536e58f) ) \
- ROM_LOAD( "95890717.bin", 0x0000, 0x5000, CRC(8b83ed23) SHA1(43d56d728fbbb81c9e660e537746cd2aa01aadd1) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008851.bin", 0x0000, 0x0fa2fc, CRC(ec82c860) SHA1(7806065db24c13208c77009c64de91a3fb0f4311) )
-#define sc_cvega_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008477.bin", 0x0000, 0x100000, CRC(74607f2f) SHA1(8ce25e6af2fa8b2b4acd794dd78511983d10f7f5) )
-#define sc_chopc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008908.bin", 0x0000, 0x0fa18a, CRC(78e8e1cf) SHA1(0211fffcaab36d88610525c85efb5ea7835fb641) )
-#define sc_cbar7_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891086.bin", 0x0000, 0x5000, CRC(64066892) SHA1(acdf17a6fec87c3094b4b363d5f5a21d58e6260a) ) \
- ROM_LOAD( "95891087.bin", 0x0000, 0x5000, CRC(11902ca6) SHA1(2c7fbf5ec8f22cf1d29d7eb437b8e0403ebbfb13) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009002.bin", 0x0000, 0x05dab2, CRC(7763eeea) SHA1(946ec95a75e3ffdba98c67d58162f7d2e456480e) )
-#define sc_clu70_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891124.bin", 0x0000, 0x5000, CRC(efb25e7e) SHA1(f1da25d6f6c2fe9953c0f95e889b845e65a1fe27) ) \
- ROM_LOAD( "95891125.bin", 0x0000, 0x5000, CRC(9a241a4a) SHA1(3383c31a1de5f4a0ced5e3346de7b7e1f7fdbe04) ) \
- ROM_LOAD( "95891126.bin", 0x0000, 0x5000, CRC(049ed616) SHA1(2c29271dfebff92b3f537dd3cc89aea53decf978) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009017.bin", 0x000000, 0x100000, CRC(4df62a63) SHA1(1d3b7927683d45bf81c038527b57881a58657e21) ) \
- ROM_LOAD( "95009018.bin", 0x100000, 0x030022, CRC(90c95f34) SHA1(a63d52b7ec202f6757ed24251e542be2409ba2a9) )
-#define sc_clcas_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890486.bin", 0x0000, 0x5000, CRC(52bab0b5) SHA1(2144c1c9b980f6dbc1948e94c34fc2213fc5aa70) ) \
- ROM_LOAD( "95890487.bin", 0x0000, 0x5000, CRC(4e6c4009) SHA1(44ae2ce42ff9b91174e214213ccf52c281827434) ) \
- ROM_LOAD( "95890488.bin", 0x0000, 0x5000, CRC(8d366299) SHA1(1d0cd59dfb39ca3a78ae2398992a992d34b2e61a) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008985.bin", 0x0000, 0x0b57f9, CRC(63366697) SHA1(cdab5d0aa1bf738e4e326ed31f78f2a797bd8bd6) )
-#define sc_clnot_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009135.bin", 0x000000, 0x100000, CRC(af699e46) SHA1(e8f685847f4eb83a67074cae92ed59e96f37653b) ) \
- ROM_LOAD( "95009136.bin", 0x100000, 0x100000, CRC(cd1ea94c) SHA1(8010ba1490c656f870230611d15255db175a5a49) )
-#define sc_clus_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890495.bin", 0x0000, 0x5000, CRC(a475b60f) SHA1(4f02f0e0c19be7378736d6d4707f7b4a3068be9b) ) \
- ROM_LOAD( "95890496.bin", 0x0000, 0x5000, CRC(d1e3f23b) SHA1(6f9032c000bcc0cd61180193d85d0a4623026d14) ) \
- ROM_LOAD( "95890497.bin", 0x0000, 0x5000, CRC(4f593e67) SHA1(3a4591ae8ca140dff54d5e74143359fbecc14bfc) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008988.bin", 0x0000, 0x0d23ea, CRC(b33581a0) SHA1(667bf4e499b50fd072313bad671ffcbd299fd97b) )
-#define PR3502_C_OF_M_TEN_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009031.bin", 0x000000, 0x100000, CRC(58ded502) SHA1(27c05614b03b51fe4a168b8c64535ec3ca9e85c1) ) \
- ROM_LOAD( "95009032.bin", 0x100000, 0x100000, CRC(e1eb711a) SHA1(f6c0c10992f2aacd6f9fadc4e15d8ad5ba5b4ed8) )
-#define PR3317_COLOUR_OF_MONEY_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009124.bin", 0x000000, 0x100000, CRC(798d8d5a) SHA1(931bfca5d204c62fc834959d9babcd9488fc7f07) ) \
- ROM_LOAD( "95009125.bin", 0x100000, 0x100000, CRC(d6090812) SHA1(16ca4868725eff0cc4bd056d751dc7861c1e53a1) )
-#define sc_cfnc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009178.bin", 0x000000, 0x100000, CRC(eb938e0a) SHA1(978fa5554462d5d2cbf6a696c6c754318e950223) ) \
- ROM_LOAD( "95009179.bin", 0x100000, 0x100000, CRC(baf8b8b7) SHA1(43b967f3909270b99b563dab4bd1035079a5cb78) )
-#define sc_cfcp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009035.bin", 0x000000, 0x100000, CRC(8138c442) SHA1(ceaeb84a27d0e3eba8d3a9a7c76e86b4214178c9) ) \
- ROM_LOAD( "95009036.bin", 0x100000, 0x100000, CRC(757f44b9) SHA1(61fe15024f7c7f97f865b1b666a5f837a57446a5) )
-#define sc_cfpt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1359 CRAZY F PARTY SOUNDS11 */ \
- ROM_LOAD( "95008348.bin", 0x000000, 0x100000, CRC(9c6db3d1) SHA1(f2f613326d0a8c0a1c2e1eea1e91ed34cd344f41) ) \
- ROM_REGION( 0x400000, "others1", ROMREGION_ERASE00 ) /* PR1359 TB CRAZY F P SOUNDS11 (topbox rom?)*/ \
- ROM_LOAD( "95008349.bin", 0x100000, 0x100000, CRC(6f7716a0) SHA1(75f8fbee605b96e36e8596068dd4570928a5a02d) ) \
- ROM_REGION( 0x400000, "others2", ROMREGION_ERASE00 ) /* PR1359 TB CRAZY F P SOUNDS11 (alt topbox rom?) */ \
- ROM_LOAD( "95008363.bin", 0x000000, 0x100000, CRC(6d211d7b) SHA1(59dbb6201aa355a585253d17302e4f8ceed9a220) )
-#define sc_cknig_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009193.bin", 0x000000, 0x100000, CRC(6c3cb54b) SHA1(a140209d19f9cbd18ede08924b94718264ba4118) ) \
- ROM_LOAD( "95009194.bin", 0x100000, 0x100000, CRC(44229686) SHA1(eda0481282614e6bd82985486ef4eea0eb0ddccd) )
-#define sc_cpays_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008528.bin", 0x0000, 0x100000, CRC(eccde2dc) SHA1(83fc283269fea98ea1b2c0b846bb790bf84d3053) )
-#define sc_canca \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004270.bin", 0x0000, 0x0d4379, CRC(c0db303d) SHA1(8929e4901d517e6063dc75ff40cbcd478bb0be8a) )
-#define sc_carry_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008240.bin", 0x0000, 0x100000, CRC(7c693111) SHA1(6807d78d32e817babd4e1ed2c0b7313d7cc8ebc2) )
-#define sc_cmous_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008439.bin", 0x0000, 0x0e94e0, CRC(9bcded46) SHA1(9f1b431ac010f2ab9a8d393b167ff81baf7f86a5) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890395.bin", 0x0000, 0x5000, CRC(31480d43) SHA1(9ac6254b539d57f79fbb2483948db393ca4823eb) ) \
- ROM_LOAD( "95890396.bin", 0x0000, 0x5000, CRC(2d9efdff) SHA1(0b6642bb202092eb1ef8791a3a1f2b79ad1b5fff) ) \
- ROM_LOAD( "95890397.bin", 0x0000, 0x5000, CRC(eec4df6f) SHA1(b4fd028f28fa43d54c6aaf6062ba79a37f232025) ) \
- ROM_REGION( 0x400000, "others", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008947.bin", 0x0000, 0x0fc44b, CRC(457a86c3) SHA1(e36ba57a981bb0f8b581c4b8e1ddd6e55c24bf00) ) /* cash & mouse s16 sounds */
-
-#define sc_cnfr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004130.lo", 0x000000, 0x080000, CRC(223e2bd4) SHA1(f8e187cc74e524496c9e5b35260ac56b93e6e83b) ) \
- ROM_LOAD( "95004131.hi", 0x080000, 0x080000, CRC(3840ffd6) SHA1(d72901b08c11d1f5b16fdb1a8fe57625cc25bd44) )
-#define sc_cad_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008396.bin", 0x0000, 0x0ff641, CRC(f24c5ef6) SHA1(83395f64b79efbd4f3153e5d0a2d2b0d0183f857) )
-#define sc_cadcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008486.bin", 0x0000, 0x0ff641, CRC(05e8cba2) SHA1(7a99ab3f45588cff0e54a94ffd75df337cff7351) )
-
-#define sc_clash_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008374.bin", 0x0000, 0x0feb46, CRC(47ea13e2) SHA1(f9b6e23b3857da5f1f364469c8d4deb4f8d836a6) )
-#define sc_cr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008245.bin", 0x0000, 0x0ffadf, CRC(6528bb5c) SHA1(d54e1f0a18dbbc91316d57be25e0cf5236e856e6) )
-#define sc_crcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008338.bin", 0x0000, 0x0ffadf, CRC(b26edbfe) SHA1(9f5c7a8e6781bad6448f767d19474bbad8024df5) )
-#define sc_cckey_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008425.bin", 0x0000, 0x100000, CRC(99bf2289) SHA1(596fe427dd7abf2779e12e3f20a5ba2eda553f2e) )
-#define sc_chub_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004109", 0x000000, 0x080000, CRC(2e3e2f6e) SHA1(217197bdbcd27271afce7809de7c49cca4ef3656) ) \
- ROM_LOAD( "95004110", 0x080000, 0x080000, CRC(29f3caef) SHA1(dddf38b3da4b9756103b32de4d5d12d612223298) )
-#define sc_cla7_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004334.bin", 0x0000, 0x080000, CRC(bd8a3d25) SHA1(9dd5d124ce467293417575bf316dc1b371bc3169) )
-#define sc_clclo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008889.bin", 0x0000, 0x0edfec, CRC(fb894b4f) SHA1(60b3f28efda4ecb9f7804540291c8c3b8bead27a) )
-
-#define sc_colos_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004235.sn1", 0x000000, 0x080000, CRC(e543f4ab) SHA1(7d72f1392fbd43afe390d4f3059b06cd789528d4) ) \
- ROM_LOAD( "95004236.sn2", 0x080000, 0x080000, CRC(0f26a957) SHA1(b0949534d44dd22b6f676203f52fad978b36d04b) )
-
-
-
-
-#define sc_cccsh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004173", 0x000000, 0x080000, CRC(67970fed) SHA1(938414921a0956841ce4447471b7663f5c2c2d4f) ) \
- ROM_LOAD( "95004174", 0x080000, 0x080000, CRC(1f1dd01f) SHA1(6ed312c1e50056bf3cae156e595b26374d7d4816) )
-#define sc_ckx_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008995.bin", 0x0000, 0x0931b3, CRC(e874bd15) SHA1(8adb32532dd053ca2c4e0987352013310ce197a0) )
-#define sc_chick_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008291.bin", 0x0000, 0x0b2877, CRC(8e9f53d4) SHA1(7c91e64d7214e1c08b0976f901713228bb64ee49) )
-#define sc_cabin_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008902.bin", 0x0000, 0x0e7fd3, CRC(c7b0f675) SHA1(e19d4e65d73329a58b9cbc6828c7e0c287f2906a) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890306.bin", 0x0000, 0x5000, CRC(eff2e8d8) SHA1(0749d543bf760b2037330ade671c7ce7ed64b275) ) \
- ROM_LOAD( "95890307.bin", 0x0000, 0x5000, CRC(9a64acec) SHA1(51c49e8d415d99e61fda99ade43bb925d99f3825) ) \
- ROM_LOAD( "95890308.bin", 0x0000, 0x5000, CRC(04de60b0) SHA1(cee280d9528f9e167be1c373e7a99f1f2f1bc1c0) )
-#define sc_cari_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* CABC SOUNDS */ \
- ROM_LOAD( "95008981.bin", 0x000000, 0x0ff245, CRC(3a888f98) SHA1(b113c17acda287200fdcd734a1b384879a5e7101) ) \
- ROM_REGION( 0x5000, "pics", 0 ) /* do these belong to this, or the QPS game? */ \
- ROM_LOAD( "95890474.bin", 0x0000, 0x5000, CRC(bcb54114) SHA1(0236171b34f3e47db9aa253f9605ff6bd21b1460) ) \
- ROM_LOAD( "95890475.bin", 0x0000, 0x5000, CRC(c9230520) SHA1(5cf9c3d130f114dac633d696e0bf1bda94afb9ee) ) \
- ROM_LOAD( "95890476.bin", 0x0000, 0x5000, CRC(5799c97c) SHA1(5dab858e61815c04f874f231848c376d8fce1c3d) )
-#define sc_cariq_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* CARIBBEANSND */ \
- ROM_LOAD( "97000070.bin", 0x000000, 0x0f8526, CRC(27ba6768) SHA1(708e836f3fc35fabd0a5c8dc9cd8e9327d7bcdc7) ) \
- ROM_REGION( 0x400000, "others1", ROMREGION_ERASE00 ) /* CARIBBEANSND (same data?) */ \
- ROM_LOAD( "caribbeancashsnd1.bin", 0x000000, 0x080000, CRC(89da9fc4) SHA1(d56364e2e71d03d7d8888966b64ff1fab4bfc3e9) ) \
- ROM_LOAD( "caribbeancashsnd2.bin", 0x080000, 0x080000, CRC(99d33f61) SHA1(7caf3b9540372900e90a7141f14383fe06936a2e) )
-#define sc_cblas_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008539.bin", 0x0000, 0x0e0033, CRC(068349f4) SHA1(b27cba3217122397eb7aea0d9a382fda9ee6a43b) )
-
-#define sc_casxt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008854.bin", 0x0000, 0x08cba2, CRC(f7b3ad12) SHA1(08108745f7e048e9aa27777bdc6edeb5d5836a6d) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890718.bin", 0x0000, 0x5000, CRC(dd65993f) SHA1(db2af897e36d7b55ed1d1d2efe350f4802449945) ) \
- ROM_LOAD( "95890719.bin", 0x0000, 0x5000, CRC(c1b36983) SHA1(2b74336915c7156723e2554f152ed34f6c88a16a) ) \
- ROM_LOAD( "95890720.bin", 0x0000, 0x5000, CRC(02e94b13) SHA1(2d8fffc631e1a590774131bdea1f0b5ec8c6e8f3) )
-
-#define sc_cmani_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008295.bin", 0x0000, 0x100000, CRC(a5646d3b) SHA1(9aca69f103f959a85026fd0d0ffb3bd65eebae34) )
-#define sc_cj_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008427.bin", 0x0000, 0x100000, CRC(a6093378) SHA1(30a64e8857da269cbc0b3febf30a62f5647d10b9) )
-#define sc_ctl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008225.bin", 0x0000, 0x100000, CRC(b185224e) SHA1(a4b4c618903c4c207de8dae74b55fd2c85a5e4ff) )
-#define sc_crsc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008681.bin", 0x0000, 0x100000, CRC(7a459110) SHA1(51f0a51af485a0f4e447ee0c22f488a924e45117) )
-#define sc_cfqps_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR6813 CRAZY FRUITS SOUNDS11 */ \
- ROM_LOAD( "95004101.bin", 0x000000, 0x080000, CRC(31e5785a) SHA1(8da2bd3571640b0ae23e9fdcc2235dcf9d2de122) ) \
- ROM_LOAD( "95004102.bin", 0x080000, 0x080000, CRC(bf059b21) SHA1(89a96c593e5385e9b40f694768986691eed4b5c5) ) \
- ROM_REGION( 0x400000, "others", ROMREGION_ERASE00 ) /* PR6813 CRAZY FRUITS SOUNDS11 (same data?) */ \
- ROM_LOAD( "95008339.bin", 0x000000, 0x100000, CRC(bae07fa8) SHA1(a86a5d9ff6ac802bd15275f46894374317627e23) )
-#define sc_czfr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR6813 CRAZY FRUITS SOUNDS11 */ \
- ROM_LOAD( "crazy sound 1.bin", 0x000000, 0x080000, CRC(31e5785a) SHA1(8da2bd3571640b0ae23e9fdcc2235dcf9d2de122) ) \
- ROM_LOAD( "crazy sound 2.bin", 0x080000, 0x080000, CRC(bf059b21) SHA1(89a96c593e5385e9b40f694768986691eed4b5c5) ) \
- \
- ROM_REGION( 0x400000, "others", ROMREGION_ERASE00 ) \
- ROM_LOAD( "oki_sound_rom--ccfsnd.bin", 0x0000, 0x02196a, CRC(15e542c2) SHA1(9bd9218b7392c882f68e330619bea7996afd001e) ) /* oki sound rom, doubt it belongs here */
-#define SOUND_95004150_CRAZY_FRUITS_PR6982 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004150.bin", 0x000000, 0x080000, CRC(7707ea0d) SHA1(efe187a4c64a3a5f8d10e21c269afbb603186ae7) ) \
- ROM_LOAD( "95004151.bin", 0x080000, 0x080000, CRC(54845756) SHA1(e53dfa8f836044232ee1a8006051ef586ac24d8c) )
-#define PR1152_CRAZY_FRUITS_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004280.sn1", 0x000000, 0x080000, CRC(44d1b0d9) SHA1(2e361a1b65955acecbc26ba47000e4ef6316a22d) ) \
- ROM_LOAD( "95004281.sn2", 0x080000, 0x080000, CRC(31f057f3) SHA1(a6415eee8499ada43225901dee2d12c93d494658) )
-
-#define sc_crnjw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008469.bin", 0x0000, 0x100000, CRC(07df5a41) SHA1(56dacba05e26258e50085f78dfe965196917addf) ) /* PR1608 CROWN JEWELS SOUNDS11 */
-#define PR000055_CJEWELS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009176.bin", 0x000000, 0x100000, CRC(d1db2564) SHA1(641f94108df9dffde599012018d944e3848f50ed) ) \
- ROM_LOAD( "95009177.bin", 0x100000, 0x100000, CRC(e574cc1c) SHA1(760284d60d336571495da921ff666ac5725d7c19) )
-#define sc_cclim_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008243.bin", 0x0000, 0x100000, CRC(b21e073b) SHA1(dfe309490c5c69052041c2121258c17b974f88ed) )
-#define sc_chavi_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008563.bin", 0x0000, 0x100000, CRC(e4d30521) SHA1(70a2d88842ee40c77011a2ed8ca45f71316d2579) )
-#define sc_chavy_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008964.bin", 0x0000, 0x0fc821, CRC(597bc1c8) SHA1(f28d3fe1dd5ccf4d5ff6e1088a392b4713e6d1b5) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890437.bin", 0x0000, 0x5000, CRC(e4c29dae) SHA1(5e81acde46a489b8a9056167e33efec3d2d1b95a) ) \
- ROM_LOAD( "95890438.bin", 0x0000, 0x5000, CRC(9154d99a) SHA1(61ef137e6db5f8394b948c589c0cee506a48f9ed) ) \
- ROM_LOAD( "95890439.bin", 0x0000, 0x5000, CRC(0fee15c6) SHA1(3d24e9861c2c7a67a3d4d156b9281e857de30a55) )
-
-#define sc_crotr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009049.bin", 0x000000, 0x100000, CRC(10c94788) SHA1(8fb5113036a0122a4dbc9af15b600ffe99e51094) ) \
- ROM_LOAD( "95009050.bin", 0x100000, 0x100000, CRC(5e47e86c) SHA1(9aaca1390852f9079cd355c48b889fb5962c5c09) )
-
-#define sc_crsgr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009139.bin", 0x000000, 0x100000, CRC(f2e4fa3c) SHA1(1909de32f232e5bfb3ee3c624f29c585cca254c2) ) \
- ROM_LOAD( "95009140.bin", 0x100000, 0x100000, CRC(81bdf47f) SHA1(49c02fb87a4ffc1be4c748c469f5518c314b1391) )
-#define sc_copsr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1412 */ \
- ROM_LOAD( "95008393.bin", 0x0000, 0x100000, CRC(693cd9be) SHA1(e965b2dcd6d6619815c919b7d2c372c726abfea3) ) \
- ROM_REGION( 0x400000, "others1", ROMREGION_ERASE00 ) /* PR3206 */ \
- ROM_LOAD( "95008787.bin", 0x0000, 0x100000, CRC(82713d8b) SHA1(317cb1c482bd13e1cad2e5739c99f6e3ca163684) ) \
- ROM_REGION( 0x400000, "others2", ROMREGION_ERASE00 ) /* PR3255 */ \
- ROM_LOAD( "95008846.bin", 0x0000, 0x080000, CRC(44f9eaab) SHA1(394bd36121c33aba97bc957b3d46d2944c1daeed) ) \
- ROM_REGION( 0x400000, "others3", ROMREGION_ERASE00 ) /* PR3255 (alt checksum, many more sounds) */ \
- ROM_LOAD( "95009130.bin", 0x0000, 0x100000, CRC(f6813371) SHA1(bd9e5d009c7870d50149d9de396f363fb19b183c) ) \
- ROM_REGION( 0x400000, "others4", ROMREGION_ERASE00 ) /* bad? no header */ \
- ROM_LOAD( "cops_rob_snd.bin", 0x0000, 0x080000, CRC(e25bddb7) SHA1(96d6be2407bf876ad685bdc13d96585782ad4a50) )
-
-#define sc_corst_others \
- /* PR3521 CORRONATION ST SOUNDS11 */ \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009037.bin", 0x000000, 0x100000, CRC(c2d3b6ee) SHA1(36e7e9c956ab91fd1b2e52800b4482ce3a3597f5) ) \
- ROM_LOAD( "95009038.bin", 0x100000, 0x100000, CRC(45dc4df3) SHA1(7710a0ba9bbe7ae6f590b61bbc1395cd408926d2) )
-#define sc_coro_others \
- /* CORRY SOUNDS */ \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008939.bin", 0x000000, 0x100000, CRC(02c9a21d) SHA1(7f27a8d706a7d66feafc5faab23ee28ebfa02b53) ) \
- ROM_LOAD( "95008940.bin", 0x100000, 0x05fdb4, CRC(09c8a19a) SHA1(21a58f8183c29d61c0132c2fc7339e459521a16e) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890365.bin", 0x0000, 0x5000, CRC(12f90bc7) SHA1(09cdfddfa7fb430eccd87d677673f203120bef51) ) \
- ROM_LOAD( "95890366.bin", 0x0000, 0x5000, CRC(676f4ff3) SHA1(c6a3c2b01b79e9abaa249b548fb59584c63fc682) ) \
- ROM_LOAD( "95890367.bin", 0x0000, 0x5000, CRC(f9d583af) SHA1(f22e3ed7c4d954a98cec9dc077113761fdcef858) ) \
- ROM_LOAD( "95890377.bin", 0x0000, 0x5000, CRC(edbf2523) SHA1(8165c2c2f12fd85f706aed31bc3cbd51648440de) ) \
- ROM_LOAD( "95890378.bin", 0x0000, 0x5000, CRC(f169d59f) SHA1(fa8116f43c25de7af05f1cf8a379a24cce489f21) ) \
- ROM_LOAD( "95890379.bin", 0x0000, 0x5000, CRC(3233f70f) SHA1(df485c4df31872921c3d97973a7b3e7d4a58446d) )
-#define sc_corcl_others \
- /* CCORO SOUNDS */ \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008867.bin", 0x000000, 0x100000, CRC(b11779d2) SHA1(720d30445232baa18e613259bded1a6827777de6) ) \
- ROM_LOAD( "95008868.bin", 0x100000, 0x05fdb4, CRC(424b08e5) SHA1(fc0fe01516c0c6bb20adcf2bf8b1263ff59657e8) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890770.bin", 0x0000, 0x5000, CRC(551ab279) SHA1(39e4c16f3cc708d84762ba5b80c720cbbc123f0d) ) /* why is this in an sc4 set? */
-
-#define sc_count_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008615.bin", 0x000000, 0x100000, CRC(97c602c0) SHA1(cd71c062df3ac700ab72fc992542e08651270ec8) ) \
- ROM_LOAD( "95008616.bin", 0x100000, 0x100000, CRC(2b80b1a5) SHA1(a94b4402ba738a6369f58c73a5b9d66e0476eeb1) )
-
-#define sc_devil_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890464.bin", 0x0000, 0x5000, CRC(35e24491) SHA1(e762854ac074df67db843fed4c6c7cfe1d8f754b) ) \
- ROM_LOAD( "95890465.bin", 0x0000, 0x5000, CRC(407400a5) SHA1(dba6f4204a27f26056ffc3d9b512c0f4a8f17562) ) \
- ROM_LOAD( "95890466.bin", 0x0000, 0x5000, CRC(dececcf9) SHA1(6ebaec58330b7ce8bb166d2aefd203147c4823fa) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008978.bin", 0x0000, 0x0ff462, CRC(b0dac89b) SHA1(afdc4fec96849b81e52aa03d9df821e336001c74) )
-#define sc_daylt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "daylsnd1.bin", 0x000000, 0x080000, CRC(4510d156) SHA1(b001bdf3bfad6124647f640065b411c07c8cf555) ) \
- ROM_LOAD( "daylsnd2.bin", 0x080000, 0x080000, CRC(71a1428f) SHA1(029ae979f192bcd7704ae78aba14815acdabe60f) )
-#define sc_derby_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008129.bin", 0x000000, 0x100000, CRC(4892cf07) SHA1(9ce745f4b3aee623a7855e2fee4cc35de20646a3) ) \
- ROM_LOAD( "95008130.bin", 0x100000, 0x100000, CRC(b9bfde2a) SHA1(25329d5b93318586095715111fbbb854bba394b9) )
-#define sc_deepi_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008329.bin", 0x0000, 0x100000, CRC(427dad17) SHA1(f8834dfbe6608abb08d6214cd87ec809df963805) )
-#define sc_ddosh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008299.bin", 0x0000, 0x100000, CRC(fee81425) SHA1(188cb7275963193a39571d3e4da3b9f6693a79d0) )
-#define sc_dhh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008586.bin", 0x000000, 0x100000, CRC(43fde3ad) SHA1(662402449b025bbf75a10c3b1ac746d9359b0b0d) ) \
- ROM_LOAD( "95008587.bin", 0x100000, 0x100000, CRC(6f7a607f) SHA1(da3c8aaa69b30f10f122a9bde49d987dd0950474) )
-#define sc_dmine_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008293.bin", 0x0000, 0x100000, CRC(acbed8e1) SHA1(607dafa2215632d02c34e65b79bf1341b981f63b) )
-/* PR1954 */
-
-#define PR1954_CASINO_DOND_R_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008631.bin", 0x000000, 0x100000, CRC(7208854a) SHA1(a02de60cfcbafe5da4f67596ab65237f5b5f41b7) )
-/* PR1945 */
-
-#define PR1945_CASINO_DOND_R_SOUNDS12 \
- ROM_LOAD( "95008661.bin", 0x000000, 0x100000, CRC(2d9ebcd5) SHA1(d824a227420cbe616aca6e2fd279af691ddfd87a) )
-#define PR1945_CASINO_D_O_N_D_SOUNDS11 \
- ROM_LOAD( "95008632.bin", 0x000000, 0x100000, CRC(fd81a317) SHA1(1e597fd58aab5a7a8321dc4daf138ee07b42c094) ) \
- ROM_LOAD( "95008633.bin", 0x100000, 0x100000, CRC(a7a445d4) SHA1(dbb1938c33ce654c2d4aa3b6af8c210f5aad2ae3) )
-/* PR1964 */
-
-#define PR1964_CASINO_DOND_SOUNDS11 \
- ROM_LOAD( "95008680.bin", 0x000000, 0x100000, CRC(9bd439d1) SHA1(5e71d04e5697e92998bae28f7352ea7742cafe07) )
-#define PR1964_CASINO_DOND_SOUNDS12 \
- ROM_LOAD( "95008698.bin", 0x000000, 0x100000, CRC(8eea7754) SHA1(7612c128d6c062bba3477d55aee3089e1255f61e) )
-#define PR1964_DND \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- PR1964_CASINO_DOND_SOUNDS11 \
- PR1964_CASINO_DOND_SOUNDS12
-/* PR1907 */
-
-#define PR1907_DEAL_OR_NO_DEAL_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008606.bin", 0x000000, 0x100000, CRC(c63c8663) SHA1(4718baf87340fe93ccfe642a1a0cdb9d9dcac57f) ) \
- ROM_LOAD( "95008607.bin", 0x100000, 0x100000, CRC(a615514f) SHA1(d4ff7d4fe6f1dd1d7b00cc504f90b2921aa5e8fb) )
-
-
-#define sc_dndbb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008788.bin", 0x000000, 0x100000, CRC(51384d64) SHA1(3af87bcc7fb4881ae671d9cbb484fb6a2a534cce) ) \
- ROM_LOAD( "95008789.bin", 0x100000, 0x100000, CRC(4f2d72c3) SHA1(f167ad8d7178682833e7e9efcc393b5826108d70) )
-#define sc_dndbo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009158.bin", 0x000000, 0x100000, CRC(27f11b81) SHA1(f2690c2828ad09d73cb14c5c1cb53c2ad1fc7b53) ) \
- ROM_LOAD( "95009159.bin", 0x100000, 0x100000, CRC(95e278c8) SHA1(7d85b6dbe3ccacd6c5a5b4eb475598a3d5548ce0) )
-
-#define sc_dndbq_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891057.bin", 0x0000, 0x5000, CRC(75c0cf91) SHA1(20e7fb3a279cc127cec08a78b6633852b0a950f7) ) \
- ROM_LOAD( "95891058.bin", 0x0000, 0x5000, CRC(69163f2d) SHA1(66b6b593126c452f01b36c03e82d003860340025) ) \
- ROM_LOAD( "95891059.bin", 0x0000, 0x5000, CRC(aa4c1dbd) SHA1(4ebd1b132a4125bdcf58d5867cffb821e3e7b1a3) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008887.bin", 0x0000, 0x100000, CRC(53cb9dc5) SHA1(66cdf8624736ea5a4e239bdb81fc96366ec4623e) )
-#define PR3068_BEAT_THE_BANKER_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008713.bin", 0x000000, 0x100000, CRC(7311db5e) SHA1(24a4b3f44fa6dbbe756b0acac2b513c6e92cdf26) ) \
- ROM_LOAD( "95008714.bin", 0x100000, 0x100000, CRC(c6ebc845) SHA1(6a135f42940b8c44422736650e369fa12b51e0df) )
-
-#define sc_dndcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008629.bin", 0x000000, 0x100000, CRC(6f7cf500) SHA1(bf3db728872251116b32aa2c44f72a87d29b13d2) ) \
- ROM_LOAD( "95008630.bin", 0x100000, 0x100000, CRC(5dfda41e) SHA1(6d61d0eedc6a1599777f47d3880689f954f326c9) )
-#define sc_dndcr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009033.bin", 0x000000, 0x100000, CRC(4e167844) SHA1(d0e7101fe033bc9fc0e279c3d457a7da8e8aab00) ) \
- ROM_LOAD( "95009034.bin", 0x100000, 0x100000, CRC(a3e7b40a) SHA1(09f1fde693750f15e78da91c796e8593d06d19e9) )
-#define sc_dnddd_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* dond double */ \
- ROM_LOAD( "95008804.bin", 0x000000, 0x100000, CRC(19fd19fa) SHA1(db68a40d8bb3de130c6d5777217fb3c3a4c13d17) ) \
- ROM_LOAD( "95008805.bin", 0x100000, 0x100000, CRC(f497337d) SHA1(9e827116f8b1d882cfcd0b56aaede9de14b2e943) )
-#define sc_dndde_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009053.bin", 0x000000, 0x100000, CRC(f06acb47) SHA1(043756eda04d193f7365f2fd0fafc36c3b6b0bd9) ) \
- ROM_LOAD( "95009054.bin", 0x100000, 0x100000, CRC(595baae8) SHA1(9aa03b265294eaed0051b0a25cc9a0e1481b4390) )
-#define sc_dnddi_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009191.bin", 0x000000, 0x100000, CRC(2f3cda1a) SHA1(017533caadf86d0d70e1b57b697621e0b4a8fef2) ) \
- ROM_LOAD( "95009192.bin", 0x100000, 0x100000, CRC(eb9b6b0b) SHA1(127bb283b32a997c04a1b29c18f4093f4d969151) )
-#define sc_dnddt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009106.bin", 0x000000, 0x100000, CRC(afa266cf) SHA1(adc80bc677a7524bec4bbd102a4a5ff293571abc) ) \
- ROM_LOAD( "95009107.bin", 0x100000, 0x100000, CRC(493981a8) SHA1(77308e453848d092d63330e10e3b1e88caeb4fb5) )
-#define sc_dnddo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009120.bin", 0x000000, 0x100000, CRC(327c01a0) SHA1(9b7fa28ff6ecc83c2e9ee73aac0af98be170b28f) ) \
- ROM_LOAD( "95009121.bin", 0x100000, 0x100000, CRC(d7991c7e) SHA1(4f4e4043f272ff2325b0fa64c66b34cb1aefb97c) )
-#define sc_dndfl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008847.bin", 0x000000, 0x100000, CRC(7f3eae56) SHA1(f5d25c87caf76fc1961c8fb5c389bb73cefbcb28) ) \
- ROM_LOAD( "95008848.bin", 0x100000, 0x100000, CRC(ba00c16d) SHA1(f2e55441857e5f036e19d2ee29dfad97b99134b8) )
-#define sc_dndgo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009197.bin", 0x000000, 0x100000, CRC(bdf253cb) SHA1(6f046f1c27bae1141919874b27a8d87295b39261) ) \
- ROM_LOAD( "95009198.bin", 0x100000, 0x100000, CRC(420105d4) SHA1(23e4eac4146a3985c3a7dc5f80f1b5900a116303) )
-#define sc_dndgl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009102.bin", 0x000000, 0x100000, CRC(9d03cd95) SHA1(e062c816a19af0dc86bfa5a66f69342e69fffcfa) ) \
- ROM_LOAD( "95009103.bin", 0x100000, 0x100000, CRC(51ae4095) SHA1(b397984d3b0beb4ca95050ff595648a80e5ea87a) )
-#define sc_dndld_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009184.bin", 0x000000, 0x100000, CRC(25a36077) SHA1(92c05f410456414b825b09338a474c52f7c1bd9b) ) \
- ROM_LOAD( "95009185.bin", 0x100000, 0x100000, CRC(eacdfc26) SHA1(8ab462e7f49ca9374b9245d9d97cf909ea979ae3) )
-#define sc_dndmb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009156.bin", 0x000000, 0x100000, CRC(7c68c70c) SHA1(eb4006e185f3cd4e7d66999b3ff064a7903f5bc8) ) \
- ROM_LOAD( "95009157.bin", 0x100000, 0x100000, CRC(a0541504) SHA1(689ba32fd1b1a9592a9cd7039424655a652b1bcd) )
-#define sc_dndmd_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009170.bin", 0x000000, 0x100000, CRC(6ab363a5) SHA1(1a98566161aec187074cbbdb7372ed8484202639) ) \
- ROM_LOAD( "95009171.bin", 0x100000, 0x100000, CRC(bc5d3113) SHA1(836eff78265f6d0371be18467c5edc6d32aba6d5) )
-#define sc_dndpa_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009150.bin", 0x000000, 0x100000, CRC(54d9f01a) SHA1(6d62ca07443c42e16243a843dee6a11c7a1383fc) ) \
- ROM_LOAD( "95009151.bin", 0x100000, 0x100000, CRC(89bb7543) SHA1(e8bea8a00798329af590be5e2ccbfcc54f70f98d) )
-#define sc_ddptg_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009041.bin", 0x000000, 0x100000, CRC(143d05fb) SHA1(f3d2735dc5b1bdc4e3f4205521f1b614d4b4c4b0) ) \
- ROM_LOAD( "95009042.bin", 0x100000, 0x100000, CRC(65efd8fd) SHA1(c7f2d1f6b31767a56269f53e9327de3abe64218f) )
-#define sc_ddply_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008830.bin", 0x000000, 0x100000, CRC(bb66ae0c) SHA1(4a7df180dd67aa96059a83986cb98721a81963d8) ) \
- ROM_LOAD( "95008831.bin", 0x100000, 0x100000, CRC(8a632940) SHA1(e955b05a82312ab356117f348903292d6f26a5a5) )
-#define sc_dndrr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009188.bin", 0x000000, 0x100000, CRC(a2dceadd) SHA1(af1696bf32f37005c6a01bb209f38b90daab4e29) ) \
- ROM_LOAD( "95009189.bin", 0x100000, 0x100000, CRC(02b0d336) SHA1(7713212ebf59fa2464110b0238a870e81d43be05) )
-#define sc_dndsi_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008838.bin", 0x000000, 0x100000, CRC(34e9d2eb) SHA1(140f9ccf287e24e3917b1a6bb8d8118bf20f232c) ) \
- ROM_LOAD( "95008839.bin", 0x100000, 0x100000, CRC(4475bb6b) SHA1(864575f9b35495bfe0d8f7563e2d4b5e35b6a396) )
-#define sc_dndrt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009141.bin", 0x000000, 0x100000, CRC(e53f8ba3) SHA1(10eea3246352bf65e1ca7b4cd6e1a873d6a2f7fe) ) \
- ROM_LOAD( "95009142.bin", 0x100000, 0x100000, CRC(54b47cbd) SHA1(71e8f49b0d031fcc8c5450279dc26d39b90af678) )
-#define sc_dndpd_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009172.bin", 0x000000, 0x100000, CRC(f124785f) SHA1(2291dca731bb6037d655dc8bbdfa7f35f6a4d4d1) ) \
- ROM_LOAD( "95009173.bin", 0x100000, 0x100000, CRC(aae9318c) SHA1(4b53bec7284950fbca4650117e727ab9a01b5509) )
-
-#define sc_dndtb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009186.bin", 0x000000, 0x100000, CRC(1da5489b) SHA1(b282e523b52e34a625502ec99ca42f059e701448) ) \
- ROM_LOAD( "95009187.bin", 0x100000, 0x100000, CRC(2c3ea82c) SHA1(50ade918503e224288407abf60b3d53e5334aadb) )
-#define sc_dndhf_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008705.bin", 0x000000, 0x100000, CRC(09e02843) SHA1(a6ac658c857eca2aca0bacda423dd012434e93bc) ) \
- ROM_LOAD( "95008706.bin", 0x100000, 0x100000, CRC(805e7eb8) SHA1(107c6ba26e37d8f2eec81b62c3edf3efb7e44ca2) )
-#define sc_dndys_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008779.bin", 0x000000, 0x100000, CRC(cf04d115) SHA1(3255b58cd4fba7d231ca35c00d1cb70da1f6cfbd) ) \
- ROM_LOAD( "95008780.bin", 0x100000, 0x100000, CRC(ec270dbe) SHA1(f649ffd4530feed491dc050f40aa0205f4bfdd89) )
-#define sc_dndww_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008688.bin", 0x000000, 0x100000, CRC(9a5c8ac0) SHA1(988a26b042acd1462927c1b8ad300fe67c8d7c00) ) \
- ROM_LOAD( "95008689.bin", 0x100000, 0x100000, CRC(5c1cf5fb) SHA1(c05b819158622ab96c265c85072b48ae3593b962) ) \
- ROM_REGION( 0x400000, "others", ROMREGION_ERASE00 ) /* casino set */ \
- ROM_LOAD( "95008730.bin", 0x0000, 0x100000, CRC(e2aebdb0) SHA1(d22fee7ff3d5912ea9a7440ec82de52a7d016090) ) /* casino wow */
-#define sc_dndtr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008832.bin", 0x000000, 0x100000, CRC(1d2aa204) SHA1(52ad7a6ea369198b48d593de508f317ed11e84de) ) \
- ROM_LOAD( "95008833.bin", 0x100000, 0x100000, CRC(92f462f6) SHA1(c0782639d4cd2653a3d14e1b422c2d6117dac029) )
-#define sc_dndwb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1962 */ \
- ROM_LOAD( "95008651.bin", 0x000000, 0x100000, CRC(c3738d54) SHA1(bf3c62e196a2cea144868729f136000a7b924c3d) ) /* wiyb */ \
- ROM_LOAD( "95008652.bin", 0x100000, 0x100000, CRC(ba8f5b62) SHA1(2683623e8b90d5e9586295d720aa1d985b416117) ) \
- ROM_REGION( 0x400000, "others1", ROMREGION_ERASE00 ) /* PR3071 */ \
- ROM_LOAD( "95008715.bin", 0x000000, 0x100000, CRC(1796b604) SHA1(9045f9424e6447d696a6fdd7f5bdcbfda4b57c90) ) /* wiyb */ \
- ROM_REGION( 0x400000, "others2", ROMREGION_ERASE00 ) /* PR3071 (alt checksum, extra sound??) */ \
- ROM_LOAD( "95008766.bin", 0x000000, 0x100000, CRC(62accb81) SHA1(ed0456cefed2fbf9a1cfd911f871262e892a4ce8) ) /* wiyb */ \
- ROM_REGION( 0x400000, "others3", ROMREGION_ERASE00 ) /* PR3084 (wrong game?) */ \
- ROM_LOAD( "95008767.bin", 0x000000, 0x100000, CRC(0aa49d8a) SHA1(a2baffc495656f0b5426b720cac298a78774b7fa) ) /* super slam?? */
-#define sc_dndpg_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008822.bin", 0x000000, 0x100000, CRC(16411f05) SHA1(11f2d17b6647b9d9e713e38bab6604e4feb51432) ) \
- ROM_LOAD( "95008823.bin", 0x100000, 0x100000, CRC(4f7bab89) SHA1(bbb203cff3212571c313e8f22f9083980baf2566) )
-#define sc_dndtp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008673.bin", 0x000000, 0x100000, CRC(4b8d1e0b) SHA1(8cba9632abb2800f8e9a45d1bf0abbc9abe8cb8c) ) \
- ROM_LOAD( "95008674.bin", 0x100000, 0x100000, CRC(66236e20) SHA1(222fefdeddb22eb290302528a8f937468ccd5698) )
-
-#define sc_dndbe_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008624.bin", 0x000000, 0x100000, CRC(bf9620ea) SHA1(63f5a209da3d0117fcb579364a53b23d2b02cfe5) ) \
- ROM_LOAD( "95008625.bin", 0x100000, 0x100000, CRC(2e1a1db0) SHA1(41ebad0615d0ad3fea6f2c00e2bb170d5e417e4a) )
-#define sc_dndbc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009100.bin", 0x000000, 0x100000, CRC(b06110c0) SHA1(84289721a8c71124cc4df79fc90d0ded8d43fd07) ) \
- ROM_LOAD( "95009101.bin", 0x100000, 0x100000, CRC(53b38d0a) SHA1(1da40cbee8a18713864e3a578ac49c2108585e44) )
-#define sc_dndlp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008792.bin", 0x000000, 0x100000, CRC(2e7e1a5a) SHA1(000cb48c67b7f23d00318d37206c2df426c79281) ) \
- ROM_LOAD( "95008793.bin", 0x100000, 0x100000, CRC(4b91b638) SHA1(b97cb1d22f91a791fc4d47bbae8965882898a317) )
-#define sc_dndra_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008752.bin", 0x000000, 0x100000, CRC(82bfd510) SHA1(857f294d46d64275b15c56187bbbc19e2aa0f5bc) ) \
- ROM_LOAD( "95008753.bin", 0x100000, 0x100000, CRC(ee0b5da9) SHA1(f6cb6037f525df504c1ba8106f19990ecf8d1bd2) )
-#define sc_dndbd_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008790.bin", 0x000000, 0x100000, CRC(3c56a8b6) SHA1(8c06aa725233f4feb7c2e703f203cf9b0c6669a1) ) \
- ROM_LOAD( "95008791.bin", 0x100000, 0x100000, CRC(7378a4a8) SHA1(af9dd1fcbd8b77fab4afc85a325c0eb011f35e3a) )
-#define sc_dndbr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008723.bin", 0x000000, 0x100000, CRC(6e1d9bd5) SHA1(92b2fd0b75a195af6ddfbdee3316f8af4bc4eb1a) ) \
- ROM_LOAD( "95008724.bin", 0x100000, 0x100000, CRC(309c1bf1) SHA1(82811b503a06e30a915eebdbdbcd63b567f241c1) )
-#define sc_dndcc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008746.bin", 0x000000, 0x100000, CRC(ef3c39b9) SHA1(21b9788080de68acd436608d7d46fd9663d1589b) ) /* crazy chair */ \
- ROM_LOAD( "95008747.bin", 0x100000, 0x100000, CRC(9f9b638f) SHA1(5eae49f8a9571f8fade9acf0fc80ea3d70cc9e18) ) \
- \
- ROM_REGION( 0x400000, "others", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008840.bin", 0x000000, 0x100000, CRC(2aa17d67) SHA1(43bdee1b3d0a0bf28f672620867fa3dc95727fbc) ) /* crazy chair */ \
- ROM_LOAD( "95008841.bin", 0x100000, 0x100000, CRC(594a9cd7) SHA1(667fa3106327ce4ff23877f2d48d3e3e360848d0) ) \
- \
- ROM_LOAD( "95009131.bin", 0x000000, 0x100000, CRC(59a9e50a) SHA1(15d79b177a1e926cd5aee0f969f5ef8b30fac203) ) /* crazy chair */ \
- ROM_LOAD( "95009132.bin", 0x100000, 0x100000, CRC(5e8a7ca6) SHA1(419ecc6ac15004bdd83bcd5b3e00d9dcd0d24936) )
-#define sc_dnddw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008754.bin", 0x000000, 0x100000, CRC(d2c3e3e5) SHA1(3d21c812456618471a331d596760ea8746afc036) ) \
- ROM_LOAD( "95008755.bin", 0x100000, 0x100000, CRC(e6906180) SHA1(81215fd3dfe315123d5b028047a93e30baa52b5d) )
-#define sc_dnddf_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008738.bin", 0x000000, 0x100000, CRC(2a06f488) SHA1(666bd9c8091edda4b003fa586e5ae270831c119f) ) \
- ROM_LOAD( "95008739.bin", 0x100000, 0x100000, CRC(33d677b0) SHA1(5283d23671e340e3fda4eb4c6795d1d56b073206) )
-#define sc_disco_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004220", 0x000000, 0x080000, CRC(530be6ac) SHA1(eede25d9d8a429dace91c1dc37ce4da7152b1836) ) \
- ROM_LOAD( "95004221", 0x080000, 0x080000, CRC(0b2020c9) SHA1(75c7af9312ea1b84df66a640fac903aedac5a0eb) )
-#define sc_dbldm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008540.bin", 0x0000, 0x0ff77d, CRC(752628b0) SHA1(42b07736549b0e5e9d15cccd4922fac1e4135687) )
-#define sc_dblfr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004307.bin", 0x0000, 0x080000, CRC(69b55ce9) SHA1(c635add8001dc7c5c81ffcae05b2b83bb37e9e72) )
-#define sc_dough_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008505.bin", 0x0000, 0x100000, CRC(e18549be) SHA1(7062f05b6245c4188ed68a51dc7fbc8b138698f4) )
-
-#define sc_emmer_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008973.bin", 0x0000, 0x0fc2ce, CRC(a6ef4f4c) SHA1(4749e008e8cd0a7f92da85fcbf1a9dfd9fd5e721) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890452.bin", 0x0000, 0x5000, CRC(193927ce) SHA1(fe02d1d1519139199fbb743ce0e67b810261e9a2) ) \
- ROM_LOAD( "95890453.bin", 0x0000, 0x5000, CRC(6caf63fa) SHA1(86657e0e14eac91f91bd4da4c04b88c8ee28de45) ) \
- ROM_LOAD( "95890454.bin", 0x0000, 0x5000, CRC(f215afa6) SHA1(0e28affa6557474856087dbeeb0a3127616b7fe6) )
-#define sc_evol_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "evolsnd.p1", 0x000000, 0x100000, CRC(13e18cc3) SHA1(114301af1abf86cdd9c2f01b316d257bb1ca086d) ) \
- ROM_LOAD( "evolsnd.p2", 0x100000, 0x08399a, CRC(345f3f11) SHA1(dd4d4f0f32650304cc6010b8f059c23dd5535919) )
-#define sc_fgbh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009118.bin", 0x000000, 0x100000, CRC(f6ce47b9) SHA1(bb3917a3eed718e23dc37b1ffe93f2e349990d3c) ) \
- ROM_LOAD( "95009119.bin", 0x100000, 0x100000, CRC(9d96e3fd) SHA1(5d2d3939a2f1f765c2272f7747a0eea7d0cf1bf8) )
-#define sc_fggp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008824.bin", 0x000000, 0x100000, CRC(58119c7f) SHA1(40f6376b5e1caf0c3231a9b870f584e9b2362676) ) \
- ROM_LOAD( "95008825.bin", 0x100000, 0x100000, CRC(7fdae5e2) SHA1(57bcb01b66bdd7ad68dc601f67bc13229ad604f8) )
-#define sc_fast_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008453.bin", 0x0000, 0x0a5c12, CRC(bc1d0d4b) SHA1(1a6de68ead3287b32741dd596ca23b64e2a47925) )
-#define sc_fnclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008670.bin", 0x000000, 0x100000, CRC(345c0993) SHA1(9fdc586c415c5f4586b8395d4a8d93d87792d43e) ) \
- ROM_LOAD( "95008671.bin", 0x100000, 0x100000, CRC(11dd3c77) SHA1(f125c510a10819dac3391a582277f99b53c131fa) )
-
-#define sc_fires_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008442.bin", 0x0000, 0x100000, CRC(8b815735) SHA1(8374c706a5378bb8923fd331b96dd07f0204b2e7) )
-#define sc_ftcas_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008894.bin", 0x0000, 0x0ff163, CRC(9a25809f) SHA1(8be16ac75056be025b4881d50493650c8e290183) )
-#define sc_floop_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890455.bin", 0x0000, 0x5000, CRC(e69028e8) SHA1(4b2f2daf0f0cda3fb9c48fe04eaedce3a1bb1bcd) ) \
- ROM_LOAD( "95890456.bin", 0x0000, 0x5000, CRC(93066cdc) SHA1(6bae40c87d083d11ec3b920637c10427ab30d0e2) ) \
- ROM_LOAD( "95890457.bin", 0x0000, 0x5000, CRC(0dbca080) SHA1(3855987a78f1110741ed8580999c3eceb9126378) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008974.bin", 0x0000, 0x0fdd10, CRC(22b0f002) SHA1(df0e66b693ea5587b6cb54847adafc4720dddaa6) )
-#define sc_fbspn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008526.bin", 0x0000, 0x100000, CRC(81890751) SHA1(1e9cedc07c9028eb65620371d9fcf73ae84ad274) )
-#define sc_fire_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008307.bin", 0x0000, 0x100000, CRC(e1b9b37c) SHA1(96bc9cb530f94b77c3243b2d9d743aeed209d64d) )
-#define sc_fguy_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008813.bin", 0x000000, 0x100000, CRC(e5548d68) SHA1(ac20af71cedd0c6d61d6a28afa8d700c1446e442) ) \
- ROM_LOAD( "95008814.bin", 0x100000, 0x100000, CRC(06f3165c) SHA1(936a8c1d31bca93a5b985e89c48a1faaef602ae0) )
-#define sc_fmj_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008982.bin", 0x0000, 0x0fe74c, CRC(c5ce4a41) SHA1(abbecddba4dd4691240df112138fa95f1e125a85) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890477.bin", 0x0000, 0x5000, CRC(a7dd60c5) SHA1(dfa3a89939cec2225d975984caf4703d83708b85) ) \
- ROM_LOAD( "95890478.bin", 0x0000, 0x5000, CRC(d24b24f1) SHA1(0c3a9c9579bb1066ea3e82e58b65d3bcac7fe900) ) \
- ROM_LOAD( "95890479.bin", 0x0000, 0x5000, CRC(4cf1e8ad) SHA1(924b454aa9c7340374b98201fbbaf922b836d779) )
-#define sc_fwp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "5wayssnd.bin", 0x0000, 0x0f0833, CRC(0f165ccb) SHA1(709c91845cbe6b17c888e143eb121d649a221418) )
-
-#define sc_grq_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008357.bin", 0x0000, 0x100000, CRC(c5d8c1ba) SHA1(b017c0b616b5ad2e54f111571b16067269a0e69f) )
-#define sc_gldfv_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008347.bin", 0x0000, 0x100000, CRC(1d24f3ed) SHA1(01c7a8d2c8811cccee3748305681df75361f2254) )
-#define sc_gldgo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009166.bin", 0x000000, 0x100000, CRC(06ae879f) SHA1(b4357306f4361bd26532e3db399f105f09fdf5be) ) \
- ROM_LOAD( "95009167.bin", 0x100000, 0x100000, CRC(5e34266d) SHA1(35fa153ccb7fd9001cd23dc0c9e683291615e9e0) )
-#define sc_gldsp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008543.bin", 0x0000, 0x0d877c, CRC(eabb0fd5) SHA1(260807cf2ce23e02bfaa7d880823e606f8240bee) )
-#define sc_gmclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009112.bin", 0x000000, 0x100000, CRC(80be159b) SHA1(2e6d19f97613152fcb17d027efc886815102fd56) ) \
- ROM_LOAD( "95009113.bin", 0x100000, 0x100000, CRC(edd3d30e) SHA1(94a56fda349d998b8571c271041d11cc79afaec2) )
-#define sc_gamcs_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004285.snd", 0x0000, 0x080000, CRC(034a84a6) SHA1(f5b815d943fe9f7eaff4358657426be5260753bf) )
-#define sc_game_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004285.snd", 0x0000, 0x080000, CRC(034a84a6) SHA1(f5b815d943fe9f7eaff4358657426be5260753bf) )
-#define sc_ziggy_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008472.bin", 0x0000, 0x0ece7a, CRC(12a9ec95) SHA1(1c3634b27718b1ce496c02c7dd6ef29800d1d2ee) )
-#define sc_gldcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008968.bin", 0x0000, 0x0f4e4e, CRC(23e718a6) SHA1(1c781380d6b4fb307af6cb81be830159ce610352) )
-#define sc_ghost_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008594.bin", 0x0000, 0x0b2ad7, CRC(3f7767d0) SHA1(b7ca39a42b59d1ac2088412fbb5f987b68f0189a) )
-#define sc_ggrid_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008346.bin", 0x0000, 0x0e486b, CRC(1ec79154) SHA1(d6aff554e882e6f689caed383db79c752c9e672b) )
-#define sc4ggcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008400.bin", 0x0000, 0x0e486b, CRC(78704d20) SHA1(c5f62434785b10d2bff5bcf415c2236b4f1ee551) )
-#define sc4goldo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004165.bin", 0x000000, 0x080000, CRC(c52f4218) SHA1(2648f3ef35d68bdd14a0a773151157dae0271067) ) \
- ROM_LOAD( "95004166.bin", 0x080000, 0x080000, CRC(a77f1337) SHA1(e292c87fa8e643846cc0ddd7b9a585429b7efdd6) )
-
-
-#define sc_gshot_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008904.bin", 0x0000, 0x0b32a1, CRC(6e11054e) SHA1(45ff06ce84cf1675747976b11e144a43d96977ac) )
-#define sc_goldw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008356.bin", 0x0000, 0x080000, CRC(c8f1ca20) SHA1(13136df35c09fea102c5176e249436f9e64616a5) ) /* golden winner */
-#define PR1436_TRIPLE_CASINO_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008423.bin", 0x0000, 0x100000, CRC(4cab20ee) SHA1(e27221a94e54db340eaf7fc30e722b354c85686d) ) /* triple casino */
-
-#define sc_gx_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004185", 0x0000, 0x080000, CRC(86756ea2) SHA1(86180e038a9bb3a3a700af1ddc571794e6948165) )
-#define sc_gxcas_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004185", 0x0000, 0x080000, CRC(86756ea2) SHA1(86180e038a9bb3a3a700af1ddc571794e6948165) )
-
-#define sc_gd_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR1016 GOLD DIG SOUNDS11 (game header actually lists PR1016 GOLD DIGGER SOUNDS11 but it accepts these) */ \
- ROM_LOAD( "95008187.bin", 0x000000, 0x100000, CRC(1fbbc7cc) SHA1(6e19b582a3654bbbcf65b8f42bd556029f43e8cb) ) \
- ROM_LOAD( "95008188.bin", 0x100000, 0x100000, CRC(a74b23a7) SHA1(f7948edfb5524eaf80039c07ca7a9f76883f5a6f) )
-#define PR3509_GOLD_DIGGER_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR3509 GOLD DIGGER SOUNDS11 */ \
- ROM_LOAD( "95009061.bin", 0x000000, 0x100000, CRC(c4cad720) SHA1(ce67af8d9e0b2f4f79d38b7a01dfc5ff7323e162) ) \
- ROM_LOAD( "95009062.bin", 0x100000, 0x100000, CRC(509761d3) SHA1(6a133cc33bac6a1696de98a4961572a86cefc1c8) )
-
-#define sc_gdmz_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008980.bin", 0x0000, 0x0fe431, CRC(c09277a0) SHA1(227609194f7d7e8b00cbd5cb94f8679f8fff71c6) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890471.bin", 0x0000, 0x5000, CRC(98fce599) SHA1(559534c3b33c6390a06b2e97e4c595055c8c4fea) ) \
- ROM_LOAD( "95890472.bin", 0x0000, 0x5000, CRC(ed6aa1ad) SHA1(83b69606398a30cb9c2ebc2f7406ef3215afab9e) ) \
- ROM_LOAD( "95890473.bin", 0x0000, 0x5000, CRC(73d06df1) SHA1(6959ee1b1c05398bc95430fea3590e5a86dd4312) )
-#define sc_gdclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008248.bin", 0x0000, 0x100000, CRC(abfba7ee) SHA1(95b61b34080196d745cc00ae32a333edb111da89) )
-
-#define sc_gunp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008744.bin", 0x000000, 0x100000, CRC(be8313a2) SHA1(247ec0b2140d261bf5e7ab21cedb4ad2fd708ca7) ) \
- ROM_LOAD( "95008745.bin", 0x100000, 0x100000, CRC(355caf88) SHA1(82951c00efd27533ccbc78b46cd5b69be5c3e26d) )
-#define sc_gag_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004132.1_1", 0x000000, 0x080000, CRC(17320a32) SHA1(113ab1db5227fe17053969dd98f94f0b3b7555f5) ) \
- ROM_LOAD( "95004132.1_2", 0x080000, 0x080000, CRC(03593875) SHA1(a5f6730664b1bbfdb7b98b41379e9b240f43c53c) )
-#define sc_goud_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004288.sn1", 0x000000, 0x080000, CRC(ae6d0680) SHA1(467d0127e2a63ca031ebf2816dde99273b513913) ) \
- ROM_LOAD( "95004289.sn2", 0x080000, 0x080000, CRC(9c88f3c8) SHA1(1152077f59cc28726f1428a9fdaf2c92ddef6c73) )
-#define sc_hirol_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890458.bin", 0x0000, 0x5000, CRC(237fc19f) SHA1(41c0dad102e8345c568f6178b13a17acedcbe1b3) ) \
- ROM_LOAD( "95890459.bin", 0x0000, 0x5000, CRC(56e985ab) SHA1(48c425f85a8feba6775f2b34be8c91c78c233d66) ) \
- ROM_LOAD( "95890460.bin", 0x0000, 0x5000, CRC(c85349f7) SHA1(7be87d120dc5d5972663ede3df6c9221deddff9b) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008977.bin", 0x0000, 0x0d9fcb, CRC(99173f54) SHA1(86d6432a37453865f6ee3b80bf8e1c1c84c6e3f9) )
-#define sc_hulk_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008367.bin", 0x000000, 0x100000, CRC(37eea219) SHA1(e612b2c0bca83d742b35fbaf487b6805cfac024d) ) \
- ROM_LOAD( "95008368.bin", 0x100000, 0x100000, CRC(06549054) SHA1(923a320f9689361802dc82db467b294f7bc85147) )
-#define PR1327_CAS_HAPPY_NOTES_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008312.bin", 0x000000, 0x100000, CRC(cf33e14d) SHA1(33382be257a145784d9de7050b5c90f725241de4) )
-#define sc_hapnt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR1306 HAPPY NOTES SOUNDS11 */ \
- ROM_LOAD( "95008290.bin", 0x000000, 0x100000, CRC(427fc43d) SHA1(c63154c7f2bb3e7ec78e31268a8040d0eb131f2f) )
-#define sc_hfcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004272.bin", 0x000000, 0x080000, CRC(843cea31) SHA1(1d3a524600c8a0b7d6e3a32cad71f7f53c8190a1) ) \
- ROM_LOAD( "95004273.bin", 0x080000, 0x080000, CRC(c0782f35) SHA1(d763f7f8377c97129485522b201413e35c9c5760) )
-#define sc_hill_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008494.bin", 0x0000, 0x100000, CRC(b2a2d2ca) SHA1(f9cd50c043dd58e4c92f94e4255c2fcb47963d39) )
-#define sc_himi_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008268.bin", 0x0000, 0x0ff264, CRC(6d5e7041) SHA1(bcc7b5c000aa8c25818aa063cd74f998484224a2) )
-
-#define sc_hiss_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008910.bin", 0x0000, 0x0fff2c, CRC(e5079d76) SHA1(0c44060d695e44720e7c34a9a142bdccd86ee943) )
-
-#define sc_hotrd_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008571.bin", 0x0000, 0x100000, CRC(50331772) SHA1(84aa448320210bfa8ea656f59cc4a320a0a46a32) )
-#define sc_hotsh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR3211 HOT SHOT SOUNDS11 */ \
- ROM_LOAD( "95008794.bin", 0x000000, 0x100000, CRC(2bbe0adc) SHA1(1d5fb724ced3dbe8d744c2befae33fff69fbecba) ) \
- ROM_LOAD( "95008795.bin", 0x100000, 0x100000, CRC(0affc9f9) SHA1(0eea59a9e8293fb68172a9389d23488be508dda5) )
-
-#define sc_hotwd_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR1311 HOT WAD SOUNDS11 */ \
- ROM_LOAD( "95008309.bin", 0x000000, 0x100000, CRC(8cd75778) SHA1(5d75c10b32477faa24c73ad03de75914385787f6) )
-#define sc_celeb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008440.bin", 0x000000, 0x100000, CRC(72a98e5d) SHA1(5f3e441d6c3fa2373284cee704630028cf7800ad) ) \
- ROM_LOAD( "95008441.bin", 0x100000, 0x100000, CRC(d7382975) SHA1(f5a4d92f243ec745f91d008d623b43dfa024635c) )
-#define sc_iab_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890446.bin", 0x0000, 0x5000, CRC(8fbf0046) SHA1(5e121f73fcf1777041995c9891465e17c37c8163) ) \
- ROM_LOAD( "95890447.bin", 0x0000, 0x5000, CRC(fa294472) SHA1(71fa4cfaf8ba81f446d9f3504123e3c0c9a9af90) ) \
- ROM_LOAD( "95890448.bin", 0x0000, 0x5000, CRC(6493882e) SHA1(c69401b35ef710d0df51541e615818dbd259c7f7) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008969.bin", 0x0000, 0x0fe101, CRC(798c9559) SHA1(4afb21a78be73353741b5903099d3c48e44fcebb) )
-#define sc_ijbdo_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891076.bin", 0x0000, 0x5000, CRC(d535ed90) SHA1(0e349023bec422b356d7b9cf7f892a10fabbdedd) ) \
- ROM_LOAD( "95891077.bin", 0x0000, 0x5000, CRC(a0a3a9a4) SHA1(e74ec6d2729bbef737300a014e83409ef034f605) ) \
- ROM_LOAD( "95891078.bin", 0x0000, 0x5000, CRC(3e1965f8) SHA1(b37c73edf7f4b17fe3554fa394846929ad2031c0) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008896.bin", 0x0000, 0x0eeaef, CRC(d581cb00) SHA1(16b44ba6cf4008109792a016d7aef12e6d6329d7) )
-#define sc_inspn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008909.bin", 0x0000, 0x0face9, CRC(e79bdfa0) SHA1(b31362a2d14c17b1367b45ea8734e408a2899fc2) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890327.bin", 0x0000, 0x5000, CRC(f63a2e4f) SHA1(2982130035f122a3d9a4f4a277bc272c9613562b) ) \
- ROM_LOAD( "95890328.bin", 0x0000, 0x5000, CRC(83ac6a7b) SHA1(e4aae883b1070278314c6d388a132d362a059c5b) ) \
- ROM_LOAD( "95890329.bin", 0x0000, 0x5000, CRC(1d16a627) SHA1(985d526178de176869fdad3c4264f47de14d4d7f) )
-#define sc_ijob_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008764.bin", 0x000000, 0x100000, CRC(995c0c63) SHA1(7459e92ad80d4eb61008a011bf5ae3a1d5cb8f9d) ) \
- /* ROM_LOAD( "95008765.bin", 0x100000, 0x0fb251, CRC(3c2feab2) SHA1(797ef43d2166c0522f6da5dd17bf4443f08891a5) ) */ \
- ROM_LOAD( "95008765.bin", 0x100000, 0x100000, CRC(72702540) SHA1(72525c65d4d49ed311e14ba5fc476296e5dbfc8a) )
-#define sc_jjok_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008470.bin", 0x000000, 0x100000, CRC(b5162561) SHA1(28feebc4de68264b92325e58bbf95458533bde7f) )
-#define sc_kingx_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890374.bin", 0x0000, 0x5000, CRC(87f2ca06) SHA1(480be8b0a42c9be55cb9e4c264438667734eb644) ) \
- ROM_LOAD( "95890375.bin", 0x0000, 0x5000, CRC(9b243aba) SHA1(537783dff8f155921a378224f2a8fe754c4947a5) ) \
- ROM_LOAD( "95890376.bin", 0x0000, 0x5000, CRC(587e182a) SHA1(23de9e8b4d2631e53917346d4902813d474e64a0) ) \
- ROM_LOAD( "95890700.bin", 0x0000, 0x5000, CRC(fab9a6f1) SHA1(a7901e76e96f083ca65ffbd847b36e1140c6caaf) ) \
- ROM_LOAD( "95890701.bin", 0x0000, 0x5000, CRC(e66f564d) SHA1(7267fd9d4ad1b1886870eb89c940f59a8f84c014) ) \
- ROM_LOAD( "95890702.bin", 0x0000, 0x5000, CRC(253574dd) SHA1(15b9aac5e9a176f792eefcbd7de2ad8df38ff67b) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008995.bin", 0x0000, 0x0931b3, CRC(e874bd15) SHA1(8adb32532dd053ca2c4e0987352013310ce197a0) ) /* = 95008995.bin sc4ckx Casino King X (Mazooma) (Scorpion 4) */
-#define sc_ldvl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008866.bin", 0x0000, 0x0ff4f6, CRC(de0f7488) SHA1(dc9d546efa940f0cc69afb296bda0f07f82a4258) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890764.bin", 0x0000, 0x5000, CRC(15baa871) SHA1(9d3f021cfde738bc68d99f072160aee3eeaf8798) ) \
- ROM_LOAD( "95890765.bin", 0x0000, 0x5000, CRC(602cec45) SHA1(94f97824a90c4771e8c1fbab2cb41723b786f7be) ) \
- ROM_LOAD( "95890766.bin", 0x0000, 0x5000, CRC(fe962019) SHA1(e7283db78ac104bb47a37e5e81d50cd81db477f5) )
-#define sc_lotrf_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008251.bin", 0x000000, 0x100000, CRC(2af25e80) SHA1(fb606e434ac99eee6e114d6639f28f0fa1e7ffb3) ) \
- ROM_LOAD( "95008252.bin", 0x100000, 0x100000, CRC(fbca1cfb) SHA1(27c610af14b10d1d72774186fd3afc12d5db925e) )
-#define sc_lotr2_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008320.bin", 0x000000, 0x100000, CRC(8ba801e3) SHA1(4d6a009c2f4f4478276f1227af6315b4be90fc87) ) \
- ROM_LOAD( "95008321.bin", 0x100000, 0x100000, CRC(42482ddc) SHA1(304961f267b85bc599dd64c97c14f34b2913dd59) )
-#define sc_ltr2c_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008342.bin", 0x000000, 0x100000, CRC(44f48bf6) SHA1(2b36fb9ca6eb9cb35cf67e580d736c711d96ea25) ) \
- ROM_LOAD( "95008343.bin", 0x100000, 0x100000, CRC(f35a7927) SHA1(f2a93c8ff4699c7e6572a7a43b6b2bc50683594c) )
-#define sc_lotrt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008251.bin", 0x000000, 0x100000, CRC(2af25e80) SHA1(fb606e434ac99eee6e114d6639f28f0fa1e7ffb3) ) \
- ROM_LOAD( "95008252.bin", 0x100000, 0x100000, CRC(fbca1cfb) SHA1(27c610af14b10d1d72774186fd3afc12d5db925e) )
-#define sc_lotrr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008413.bin", 0x000000, 0x100000, CRC(66d6fd58) SHA1(dff5cc3f09fb4082fde4d5d4a9ecfe00cbce7242) ) \
- ROM_LOAD( "95008414.bin", 0x100000, 0x100000, CRC(8ec846ac) SHA1(3f66cbe5bc7190406425488beccb3e1d15356b1a) )
-#define sc_luck7_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "lucky7s.bin", 0x0000, 0x200000, CRC(93002e7d) SHA1(50edf9064fb3bc9fd13efc65be6b12a4329fdb41) )
-#define sc_monky_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890706.bin", 0x0000, 0x5000, CRC(4b2c5ee0) SHA1(e5bdcc4f076cc5550e51f3f4d4de5d8c59a4f545) ) \
- ROM_LOAD( "95890707.bin", 0x0000, 0x5000, CRC(3eba1ad4) SHA1(c780a4813c6b507a7e21ef2d7a401f3d764fd0f7) ) \
- ROM_LOAD( "95890708.bin", 0x0000, 0x5000, CRC(a000d688) SHA1(bcc197af2596b9c81cc56926fefc5854d7a94a27) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008998.bin", 0x0000, 0x0f0a3e, CRC(cc0dd8f2) SHA1(c99c54ce1289604f57ce2345ec5cb69be91b69d6) )
-#define sc_mobob_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008842.bin", 0x000000, 0x100000, CRC(3205f4c9) SHA1(a8b92e1558911e02281b1c38c64c5e04836794b0) ) \
- ROM_LOAD( "95008843.bin", 0x100000, 0x100000, CRC(95057e16) SHA1(6c26451dd336f908ce0fcea0c56176b589111868) )
-#define sc_momil_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009110.bin", 0x000000, 0x100000, CRC(8ec67890) SHA1(ba7f8cd4315a4ca8d2adeedc40c50e9e9a9b38f6) ) \
- ROM_LOAD( "95009111.bin", 0x100000, 0x100000, CRC(de68000c) SHA1(be69779ccb213a95698c2eafafe1f4a339febc4f) )
-#define sc_moms_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891135.bin", 0x0000, 0x5000, CRC(3fdecc78) SHA1(271699c347bcd2b40282d22f9e1a4e36713845e1) ) \
- ROM_LOAD( "95891136.bin", 0x0000, 0x5000, CRC(4a48884c) SHA1(d641295cdcc0226c64797d24799d8508ef13f204) ) \
- ROM_LOAD( "95891137.bin", 0x0000, 0x5000, CRC(d4f24410) SHA1(a35803e69aa8a45d46409baebbcbc20a35c1ac5d) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009023.bin", 0x0000, 0x0ffbf6, CRC(a10e8614) SHA1(85fc093f176cb81660717eb84301e9204402e83e) )
-
-#define sc_mor2r_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891090.bin", 0x0000, 0x5000, CRC(a5009c47) SHA1(38b08c39ded1f1baef8a01373f19694b49d032b7) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009004.bin", 0x0000, 0x0ffe87, CRC(2403a082) SHA1(cd69739b2249724e3a88ea1c0b61151aeae0ea01) )
-#define sc_monwa_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891094.bin", 0x0000, 0x5000, CRC(a241259b) SHA1(94dfcc7371593d983c8b62dba085b3ec51a33ed1) ) \
- ROM_LOAD( "95891095.bin", 0x0000, 0x5000, CRC(d7d761af) SHA1(a7adda6fe7bcec0f40587273a9a1d16a220f400a) ) \
- ROM_LOAD( "95891096.bin", 0x0000, 0x5000, CRC(496dadf3) SHA1(997f91c4c96b8971cc3ccfcaaaa42af6aac42ddd) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008010.bin", 0x0000, 0x0d5d57, CRC(1a75f403) SHA1(3bb5ca732d27aa4b8a2c96945be7e32c2abfe1c4) )
-#define sc_cmcob_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891127.bin", 0x0000, 0x5000, CRC(7e7d858c) SHA1(8fe2b07275ad36ae80149e091582f729c8a1d240) ) \
- ROM_LOAD( "95891128.bin", 0x0000, 0x5000, CRC(acfcec9c) SHA1(270b9ae893016d6272f599fa29402d911650b85f) ) \
- ROM_LOAD( "95891129.bin", 0x0000, 0x5000, CRC(c7299792) SHA1(f6279d507091d257a74b2419ec883c363b3c548f) ) \
- ROM_LOAD( "95891130.bin", 0x0000, 0x5000, CRC(15a8fe82) SHA1(7fb448b5559d8248a302b7b0cfaa7dfa07dc16dd) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009021.bin", 0x0000, 0x0ff73b, CRC(068c715c) SHA1(25f80da3b548b9b0b6331d402d732a312985993b) )
-#define sc_mogta_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009039.bin", 0x000000, 0x100000, CRC(0756b1b7) SHA1(82a8f9bf4c70a492ae2d4f478ecc73cccf9aecdd) ) \
- ROM_LOAD( "95009040.bin", 0x100000, 0x100000, CRC(9a928ef4) SHA1(5b19f70d067540aef3dc140115c12601d2b8176e) )
-#define sc_monsp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* 95004291 MONEYSPINNER PR1158 */ \
- ROM_LOAD( "95004291.snd", 0x000000, 0x080000, CRC(0ea304f7) SHA1(3d524e108cd12e83956fec3997316a92a9e0898d) )
-
-
-#define sc_monop_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* MPDX SOUNDS */ \
- ROM_LOAD( "95008514.bin", 0x0000, 0x0ed840, CRC(2608cbde) SHA1(4831570fbc825592781e6473173d6ec911a0054d) )
-#define sc_mmm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008944.bin", 0x0000, 0x0c76af, CRC(d2683fa2) SHA1(ebccd3da695cc69826493ac9e745b8dc2ce2ab8c) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890425.bin", 0x0000, 0x5000, CRC(fde2f6d4) SHA1(e62c28175138ed7d92c1e00c0a07a8e1f4a41ad2) ) \
- ROM_LOAD( "95890426.bin", 0x0000, 0x5000, CRC(8874b2e0) SHA1(0ba474cd47a65a5120df20b0f1ffcfe0aa51b0c5) ) \
- ROM_LOAD( "95890427.bin", 0x0000, 0x5000, CRC(16ce7ebc) SHA1(8561cf7808f09a92af8715999000684c1bef11bb) )
-#define sc_mmad_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008519.bin", 0x0000, 0x0fe4d6, CRC(e16efe22) SHA1(144e93e01967f343607ee8cee6add3d8ac8f5f28) )
-#define sc_mdm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008844.bin", 0x000000, 0x100000, CRC(807916aa) SHA1(d266cdb2c4961337b1b1f5b6325a0b0bec934bad) ) \
- ROM_LOAD( "95008845.bin", 0x100000, 0x100000, CRC(e1e74669) SHA1(32cb963c3698a0659c23c0662da04a97539a3c28) )
-#define sc_mhn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008857.bin", 0x0000, 0x0f2fe8, CRC(a7f64802) SHA1(8a667ebf29feaffb2676ebd770b570c1015f3c2a) ) /* r2r sounds */
-#define sc_mhp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008707.bin", 0x000000, 0x100000, CRC(88ffdb28) SHA1(724a2fe6703d4e5aab7d3989be9d3ae4dc8ab057) ) \
- ROM_LOAD( "95008708.bin", 0x100000, 0x100000, CRC(fa8aa99e) SHA1(bd4dd726b0af371d9b8589de461316990c3232dc) )
-#define sc_mmb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1911 MPOLY MONEYBAGS SOUNDS11 */ \
- ROM_LOAD( "95008612.bin", 0x000000, 0x100000, CRC(5f76152c) SHA1(c9f0ac000ec0b11ac3ba5eb5ff7e3dc2084f6744) ) \
- ROM_LOAD( "95008613.bin", 0x100000, 0x100000, CRC(df266121) SHA1(ece6b5a42ec3d18d97cffe3e6c98c6e6cd34682b) )
-#define PR3413_MPOLY_MB_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR3413 MPOLY MB SOUNDS11 */ \
- ROM_LOAD( "95009168.bin", 0x000000, 0x100000, CRC(1ad311a5) SHA1(bd7728423cd855ea58fe21097d3d3db5a7e08339) ) \
- ROM_LOAD( "95009169.bin", 0x100000, 0x100000, CRC(23a8705f) SHA1(a36e71706cee64b56958fe4aefba8b85d2369e38) )
-#define sc_mrh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008852.bin", 0x0000, 0x0c845b, CRC(265db01b) SHA1(6b9b62eded887ec528bb53b255d539122124eccc) ) \
- \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890721.bin", 0x0000, 0x5000, CRC(766aaa4d) SHA1(bd1bfd7209e4d54e1fc798b720b749dd7ce8f9e6) ) \
- ROM_LOAD( "95890722.bin", 0x0000, 0x5000, CRC(6abc5af1) SHA1(61ef7254ab948899df9de693227e0eff2ad22e74) ) \
- ROM_LOAD( "95890723.bin", 0x0000, 0x5000, CRC(a9e67861) SHA1(2ce81fb21e709438c63d5eb74d107e6dc1905dd2) )
-#define sc_mr2r_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008893.bin", 0x0000, 0x0f2fe8, CRC(a7f64802) SHA1(8a667ebf29feaffb2676ebd770b570c1015f3c2a) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890480.bin", 0x0000, 0x5000, CRC(3618777f) SHA1(97ab5be3bcdbe1c94e638c4dceac69bbfe359a0e) ) \
- ROM_LOAD( "95890481.bin", 0x0000, 0x5000, CRC(438e334b) SHA1(69b132ea3cbe31d31fd6fa6b915ddc2f4e66f068) ) \
- ROM_LOAD( "95890482.bin", 0x0000, 0x5000, CRC(dd34ff17) SHA1(b057c4a70066e8e8f9657e16adc4e0bfb6f00494) )
-#define sc_mcas_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* MONO SOUNDS */ \
- ROM_LOAD( "95008991.bin", 0x0000, 0x0ec7b3, CRC(fad36ca8) SHA1(67918353945429183befba56ab891a1d138f2e8b) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890727.bin", 0x0000, 0x5000, CRC(10ec3f00) SHA1(986bfce992e113bab26eea8d1981905a54367b94) ) \
- ROM_LOAD( "95890728.bin", 0x0000, 0x5000, CRC(0c3acfbc) SHA1(ff39c8236d5bd44c7d238edd1827af5aebc46e5c) ) \
- ROM_LOAD( "95890729.bin", 0x0000, 0x5000, CRC(cf60ed2c) SHA1(df015b71567d6762b4c8ea6ad6d719cefdfdc60f) )
-#define sc_mono_alt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* MONO SOUNDS */ \
- ROM_LOAD( "95008436.bin", 0x0000, 0x0e6369, CRC(32e8df77) SHA1(fa044287970d4e54af53ff492eabc50afa9a7a92) )
-
-#define PR1706_WHEEL_OF_WEALTH_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008550.bin", 0x000000, 0x100000, CRC(db6343bf) SHA1(e4d702020af67aa5be0560027706c1cbf34296fa) )
-#define WHEEL_OF_WEALTH_WOWT_SOUNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008869.bin", 0x000000, 0x0b9d9d, CRC(f3ef3bbb) SHA1(92f9835e96c4fc444a451e97b2b8a7b66e5794b7) )
-
-#define sc_mowow_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* WOW SOUNDS - wrong for this game, wants "WOTW SOUNDS" */ \
- ROM_LOAD( "95008850.bin", 0x000000, 0x0af41f, CRC(8ca16e09) SHA1(9b494ad6946c2c7bbfad6591e62fa699fd53b6dc) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890712.bin", 0x0000, 0x5000, CRC(ec6db00b) SHA1(d16a1527caa3c115e3326c897ce0fa66e3a0420d) ) \
- ROM_LOAD( "95890713.bin", 0x0000, 0x5000, CRC(f0bb40b7) SHA1(33c19dab3086cdeae4f503fbf3f3cc5f0dad98c4) ) \
- ROM_LOAD( "95890714.bin", 0x0000, 0x5000, CRC(33e16227) SHA1(87efc1a046ef6af0b72cc76a6ee393a4d1ddbce3) )
-
-/* the game accepts either of these pairs, what's the difference? */
-#define sc_nmare_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR3002 ELM STREET SOUNDS11 (alt checksum..) */ \
- ROM_LOAD( "95008703.bin", 0x000000, 0x100000, CRC(5c095089) SHA1(ffba71efccf4679c2b29ab620e67f3fa45ff19d4) ) \
- ROM_LOAD( "95008704.bin", 0x100000, 0x100000, CRC(61e5d6f4) SHA1(6d221e0b3dce7507253bb7f07d99d03025d813cb) ) \
- ROM_REGION( 0x400000, "altymz", ROMREGION_ERASE00 ) \
- /* PR3002 ELM STREET SOUNDS11 */ \
- ROM_LOAD( "95008664.bin", 0x000000, 0x100000, CRC(54d245d7) SHA1(503db10681bc1d6cf1cffb2a6f818c5d912a7f56) ) \
- ROM_LOAD( "95008665.bin", 0x100000, 0x100000, CRC(79a00527) SHA1(b8207d3a81e97b2233fea1df883a4128388570e4) )
-
-
-
-#define sc_nunsm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008522.bin", 0x0000, 0x0f9907, CRC(df612d06) SHA1(cbca56230c4ad4c6411aa5c2e2ca2ae8152b5297) )
-#define sc_rainb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009122.bin", 0x000000, 0x100000, CRC(7197027f) SHA1(216e43135c00452556ad5e7647891f14641840ed) ) \
- ROM_LOAD( "95009123.bin", 0x100000, 0x100000, CRC(3454f17d) SHA1(fc45d2653a0f260702a94663939b0d0176fc1c87) )
-#define sc_parot_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008736.bin", 0x000000, 0x100000, CRC(148a7600) SHA1(d57f4a667151e78715d617b3d1e963d29d83b538) ) \
- ROM_LOAD( "95008737.bin", 0x100000, 0x100000, CRC(4e61167f) SHA1(6faa7a395bd2d9067b88a9c9c365198ea26ebb39) )
-#define sc_pilep_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891066.bin", 0x0000, 0x5000, CRC(c058097e) SHA1(f6940ac1fe02498d13d62bd4318fd7445880c9a9) ) \
- ROM_LOAD( "95891067.bin", 0x0000, 0x5000, CRC(b5ce4d4a) SHA1(918009698696ce6bd9d0d68b4dc3e4234ff552bb) ) \
- ROM_LOAD( "95891068.bin", 0x0000, 0x5000, CRC(2b748116) SHA1(f6100c3ce79b4456d2f7fcda8e48734aad48141c) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008892.bin", 0x0000, 0x0fe398, CRC(e59abfb2) SHA1(fbe9ec614774a46f93ffb3ef9b8d4ee430d0aeed) )
-#define sc_potsm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008966.bin", 0x0000, 0x0ff8c9, CRC(1cc159e9) SHA1(f7f5a027806c561825656c5741166e0893a30b10) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890443.bin", 0x0000, 0x5000, CRC(d6ee4a71) SHA1(f638c1e150ae089533ea43ca66010cb7190eb646) ) \
- ROM_LOAD( "95890444.bin", 0x0000, 0x5000, CRC(a3780e45) SHA1(4babae846051a0199f0e0baa6de0c7b16c73a185) ) \
- ROM_LOAD( "95890445.bin", 0x0000, 0x5000, CRC(3dc2c219) SHA1(acad92fd6d5112a5366b609761fbd2907bbce91a) )
-#define sc_cpen1_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009057.bin", 0x000000, 0x100000, CRC(7b83611b) SHA1(6163ab8e848f019190af446710b31e3516386c57) ) \
- ROM_LOAD( "95009058.bin", 0x100000, 0x100000, CRC(43858a26) SHA1(fdb831e6a2ba161e72883100c22e2e9eee335fe6) )
-#define sc_potp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008483.bin", 0x0000, 0x100000, CRC(d208755d) SHA1(f87b9b7dc077f4a1bf141ae8ca1e985796c4bada) )
-
-// these 3 are for the adder 5 game
-#define SD_PANTHER_SNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* SD_PANTHER SNDS */ \
- ROM_LOAD( "95008948.bin", 0x0000, 0x08b98b, CRC(35e995c5) SHA1(9d12a3002423e9434bcd76fe13f9fc0891354e40) )
-#define PINK_PANTHER_SOUNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PINK PANTHER SOUNDS */ \
- ROM_LOAD( "95008942.bin", 0x0000, 0x0ebc96, CRC(42765fbc) SHA1(ab5b9240a8e71695897fd55a1385b64f63ce52c8) )
-#define PINKP_SOUNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PINKP_SOUNDS */ \
- ROM_LOAD( "95008953.bin", 0x0000, 0x0fabc8, CRC(12d96e7a) SHA1(4f5179b5817e471b891f377f0bec81dcb4a2077c) )
-
-
-#define sc_ppcr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008950.bin", 0x0000, 0x0fabc8, CRC(291b1b0d) SHA1(9d4149d2eb1303742dcba6e0e6d1b914f8a4019e) )
-#define sc_ppctc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008785.bin", 0x000000, 0x100000, CRC(4f2284e6) SHA1(4a85bce29d9ae7181aef8874d46928e397ba915a) ) \
- ROM_LOAD( "95008786.bin", 0x100000, 0x100000, CRC(2c96e78e) SHA1(feab56483b6075ffcf8f60f8c573198ee91e7d64) )
-#define sc_ppdym_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* DYMN SOUNDS */ \
- ROM_LOAD( "95008984.bin", 0x0000, 0x0e6770, CRC(8257c559) SHA1(9088fd4d28ad9701767a2a255164e7201410c33a) ) \
- /* DYMT SOUNDS */ \
- ROM_LOAD( "95008989.bin", 0x0000, 0x0e6770, CRC(fb60e407) SHA1(50f7ed9d2106db2f1e746081d7ca768177e7680c) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890483.bin", 0x0000, 0x5000, CRC(0ee68077) SHA1(163a46b16da238123cd542a62119dbaa726fca1b) ) \
- ROM_LOAD( "95890484.bin", 0x0000, 0x5000, CRC(123070cb) SHA1(4f3b313c3f7bd43120dd390fd9a187523838f559) ) \
- ROM_LOAD( "95890485.bin", 0x0000, 0x5000, CRC(d16a525b) SHA1(7358a180b1db0e2c5f4442481e9483a1170974a1) )
-#define sc_ppsag_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008975.bin", 0x0000, 0x100000, CRC(0203bef7) SHA1(01b1f3225eb97303a3ddc678ad51aef90d2bb84a) )
-#define sc_pony_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008408.bin", 0x0000, 0x100000, CRC(a28ef50e) SHA1(c5080418585a37ea63372b427c7e67b8c010f40c) )
-#define sc_popey_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008798.bin", 0x000000, 0x100000, CRC(916cb144) SHA1(c75fa7a27be4e8dbd85fa074f6228877b5c86fc9) ) \
- ROM_LOAD( "95008799.bin", 0x100000, 0x100000, CRC(2f4c8eb6) SHA1(ca02b32705352735c4217aa20e9bc82eac8c3645) )
-
-#define sc_pwrbl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008496.bin", 0x0000, 0x100000, CRC(66b32a17) SHA1(3adaa7067f91c071ca70e4c8b1c3d07f0402e1bb) )
-#define sc_qual_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008354.bin", 0x0000, 0x100000, CRC(1fb18180) SHA1(c21456253b670ce140efeaff6a590f8a50112bd4) )
-#define sc_quidv_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008993.bin", 0x0000, 0x0fab1c, CRC(e99defa5) SHA1(43954ec9acfedc86794d577d1e3058320264471e) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890703.bin", 0x0000, 0x5000, CRC(c87e0232) SHA1(c8de2c6b4f327ffd5b6bdb1248df1ba5573b21f0) ) \
- ROM_LOAD( "95890704.bin", 0x0000, 0x5000, CRC(bde84606) SHA1(0fe8285d862b97fee2a5a43082294a061b01bb16) ) \
- ROM_LOAD( "95890705.bin", 0x0000, 0x5000, CRC(23528a5a) SHA1(ac5b5a16a1e96a600be3760bd82cae2903459c24) )
-
-#define sc_rhog_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008783.bin", 0x000000, 0x100000, CRC(50d2c89b) SHA1(f3e592f009765118009f97bd7d0951b72ffc2898) ) \
- ROM_LOAD( "95008784.bin", 0x100000, 0x100000, CRC(88185c65) SHA1(b3a6d06aca91dc04d9efbc1e4ff89b37bcf87a57) )
-#define sc_rhclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008802.bin", 0x000000, 0x100000, CRC(36647f4a) SHA1(ffa0cdf4f2b8ccc9afda67160a50e603b2a41ae6) ) \
- ROM_LOAD( "95008803.bin", 0x100000, 0x100000, CRC(2d26ff8a) SHA1(b9c797dfb2b06b3558e9a02d197e046244f4f2fc) )
-#define sc_rdrag_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008485.bin", 0x0000, 0x0e7e1d, CRC(037269cd) SHA1(7b528427740c9f1b28e00d9b45ebeb5e77ca9ead) ) /* red dragon */
-#define sc_rdrcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008525.bin", 0x0000, 0x0e7e1d, CRC(0c7aa11d) SHA1(3d028d2d5558056e84626ba66f7c22286be34bd9) ) /* club red dragon */
-
-
-#define sc_rhx_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* REDX SOUNDS */ \
- ROM_LOAD( "95008331.bin", 0x000000, 0x100000, CRC(b41748dd) SHA1(458409a4d2f6444af564ebe28d80e110fdb845b6) )
-#define RHRL_SOUNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* RHRL SOUNDS */ \
- ROM_LOAD( "95008927.bin", 0x000000, 0x0f1c08, CRC(38fccc48) SHA1(9ef11b3fbe3bbd3c5b74cee2c35581f3e41cb372) )
-#define sc_rhxcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008313.bin", 0x0000, 0x0c8958, CRC(4850fb2b) SHA1(9dde245c5b4afd6dbfd33372dff35fcbeefc2fe4) )
-
-
-#define sc_relcz_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008185.bin", 0x000000, 0x100000, CRC(d41a9b86) SHA1(9269000ec8d81b24e04a98b63e3294d56439820d) ) \
- ROM_LOAD( "95008186.bin", 0x100000, 0x100000, CRC(8f5bfdaf) SHA1(ecba8cacc83224d75b8076c6fd5fe46863a0689e) )
-#define sc_rotc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "rotcsnd.bin", 0x0000, 0x100000, CRC(301147a2) SHA1(49a31e1e3c8af19e524f4f4b68533e4b2cc5e03d) )
-
-
-
-#define sc_rttt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008306.bin", 0x0000, 0x100000, CRC(9c61f2ff) SHA1(5f000dcb2ec694fa8578f32fa485e61ad065e3d5) )
-/* used by Rocket Science and Blast Off */
-#define sc_roksc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* ROCKETSCIENCESND */ \
- ROM_LOAD( "95008405.bin", 0x0000, 0x0fec18, CRC(847c5cbb) SHA1(cd304c31bd1f87e6b2444b50450ab9dd42ca79eb) )
-
-
-
-#define sc_rhxcs_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008853.bin", 0x0000, 0x0d11f1, CRC(c055b73c) SHA1(0c668e1733a089f95c61d1fe50fde2d4217e0e5f) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890724.bin", 0x0000, 0x5000, CRC(118e80ca) SHA1(9cd3dc111710224a8916f7b0f24e8997a9d98a8c) ) \
- ROM_LOAD( "95890725.bin", 0x0000, 0x5000, CRC(0d587076) SHA1(b470b3f1c1c82526c9dd08ae7dedbdc38bfb334d) ) \
- ROM_LOAD( "95890726.bin", 0x0000, 0x5000, CRC(ce0252e6) SHA1(9d6f69de70647e12d8352bc73922393006602797) )
-#define sc_redsq_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008920.bin", 0x0000, 0x0f8d12, CRC(ac69f283) SHA1(4b62d2759f82effea988310df5ca92dd9f417a6d) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890350.bin", 0x0000, 0x5000, CRC(3e015e16) SHA1(c3a180d3611f46c9d7e93309d751b2422ec672cc) ) \
- ROM_LOAD( "95890351.bin", 0x0000, 0x5000, CRC(4b971a22) SHA1(205feec301bb69bf461fc4377704f675b5664944) ) \
- ROM_LOAD( "95890352.bin", 0x0000, 0x5000, CRC(d52dd67e) SHA1(8e5623d1fe4e096b1a19a153b0d2184424642469) )
-#define sc_rich_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008085.hi", 0x000000, 0x100000, CRC(eb748aa3) SHA1(b81acfbceb5ff9df8bb30d3da82deea70bfce2fe) ) \
- ROM_LOAD( "95008084.lo", 0x100000, 0x100000, CRC(2231c842) SHA1(2180109949281b053313c8a8de33496d31d4279e) )
-
-#define sc_rosts_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008820.bin", 0x000000, 0x100000, CRC(31c0d215) SHA1(7d0172de75e54a7c00b7c28e21d738e64597f4f5) ) \
- ROM_LOAD( "95008821.bin", 0x100000, 0x100000, CRC(9c934f26) SHA1(2598870f724a2b070c5f791a2d30e582f87c06da) )
-#define sc_rovrt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008961.bin", 0x0000, 0x0feba0, CRC(174f22f8) SHA1(e96c7019a48f1499c4b766e1fb700b2d4db59d5e) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890431.bin", 0x0000, 0x5000, CRC(a3d4624e) SHA1(4d66727af8cd1f10708635655777d80fe99e02af) ) \
- ROM_LOAD( "95890432.bin", 0x0000, 0x5000, CRC(d642267a) SHA1(9f2d0cd87e6acfebd855a7669c862dc20f1a52e3) ) \
- ROM_LOAD( "95890433.bin", 0x0000, 0x5000, CRC(48f8ea26) SHA1(156a83c1980483b12577fdb680d85a3f0f7bfdbd) )
-#define sc_sharp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008561.bin", 0x000000, 0x100000, CRC(98d21491) SHA1(e06156dbe83fc26968da1a2432d697d68e6b88ee) ) \
- ROM_LOAD( "95008562.bin", 0x100000, 0x100000, CRC(fb3a25e7) SHA1(e8a60e4e870438fd4a330453ce1bdf8ad836fbc0) )
-
-#define sc_srrqp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891091.bin", 0x0000, 0x5000, CRC(e8a89f86) SHA1(0260292e43320b4d7a7cd93c9c058be6250a1441) ) \
- ROM_LOAD( "95891092.bin", 0x0000, 0x5000, CRC(9d3edbb2) SHA1(6a1f3030dc6438da5e83f1d9144bd7f4fab98c97) ) \
- ROM_LOAD( "95891093.bin", 0x0000, 0x5000, CRC(038417ee) SHA1(5e4234bf9b7d698b0f82af702209789948456e32) )
-#define sc_witwi_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008756.bin", 0x000000, 0x100000, CRC(bde21cff) SHA1(fc8945e66416447d690515161acf9260620d7768) ) \
- ROM_LOAD( "95008757.bin", 0x100000, 0x100000, CRC(7c33cf90) SHA1(f3ad90c5623d97e3bf013927945383115042b84b) )
-#define sc_spnrn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008538.bin", 0x0000, 0x0de67f, CRC(5f689b5c) SHA1(a0469987b93fdd0c661ef622403e03c6edbc561a) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890178.bin", 0x0000, 0x5000, CRC(bb0186be) SHA1(575f212b555035a6a30fea7f49836f4ad72868d2) ) \
- ROM_LOAD( "95890179.bin", 0x0000, 0x5000, CRC(ea390914) SHA1(ac34e41f6e277115e5fc2ea2bb1675c1d7df0dfe) ) \
- ROM_LOAD( "95890180.bin", 0x0000, 0x5000, CRC(7483c548) SHA1(06675caa6e0e4f136995d542210bddbb2e9e2ba4) )
-
-
-#define sc_sleut_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008870.bin", 0x0000, 0x0fa9dd, CRC(9b219ee5) SHA1(a488919d305bc8a2f8d92ea73054ea9e467dbb4e) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890777.bin", 0x0000, 0x5000, CRC(12e0a0db) SHA1(f7360b7f7086111dd951c9742f4b0402dfdd988c) ) \
- ROM_LOAD( "95890778.bin", 0x0000, 0x5000, CRC(6776e4ef) SHA1(a39e7aefb57521e4782dd0a8b37c904b7b76ff29) ) \
- ROM_LOAD( "95890779.bin", 0x0000, 0x5000, CRC(f9cc28b3) SHA1(031df3658b5aec9f318f42f04e8041fd9ae1b761) )
-
-
-#define sc_showt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR3013 SHOWTIME SOUNDS11 */ \
- ROM_LOAD( "95008734.bin", 0x000000, 0x100000, CRC(8b469657) SHA1(514b3f4cbbafb3cee618b9ce0bae572f1a4fcf7b) ) \
- ROM_LOAD( "95008735.bin", 0x100000, 0x100000, CRC(fa614cc1) SHA1(e5ecce4936a8db267b08b938ab5bc7500cf98f99) ) \
- ROM_REGION( 0x400000, "others2", ROMREGION_ERASE00 ) /* PR3243 SHOWTIME SOUNDS11 */ \
- ROM_LOAD( "95008777.bin", 0x000000, 0x100000, CRC(1ff19229) SHA1(6db08982ee923ef4568caf76e05088574f99fc36) ) \
- ROM_LOAD( "95008778.bin", 0x100000, 0x100000, CRC(2f2f3ee1) SHA1(cade826fec6c07a1fffa548c96404da83db14dd7) )
-#define sc_slad_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008375.bin", 0x0000, 0x100000, CRC(967e41ec) SHA1(4ca9eb1db89b6f918b416f1c68805c4306850c7a) )
-#define sc_srrmz_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008155.bin", 0x000000, 0x100000, CRC(2c12d323) SHA1(78199130f15b90f2c8f932f40d7e1e0e0646ce57) ) \
- ROM_LOAD( "95008156.bin", 0x100000, 0x100000, CRC(775dd1cd) SHA1(2b0ffa326ae53b60dbda6eb1f066b2ea29e6dd26) )
-
-
-#define sc_sahed_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008353.bin", 0x0000, 0x0fbc01, CRC(593626e0) SHA1(f348d6ea347efa706b1587235241231562c447d3) )
-#define sc_sirpz_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "sound_1", 0x000000, 0x080000, CRC(e5e1b0d5) SHA1(bfdc90e09534b97d9a6b6804284c80800db1aff7) ) \
- ROM_LOAD( "sound_2", 0x080000, 0x080000, CRC(3f8c71ed) SHA1(3bab20e8f6af2cfb8c7bba04b29f5aec4c692c1b) )
-#define sc_smk7_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004163.lo", 0x000000, 0x080000, CRC(fd8fd1a9) SHA1(a6c1bfefc7200f9ad429bf166d0deeb6092e9e4d) ) \
- ROM_LOAD( "95004164.hi", 0x080000, 0x080000, CRC(9d8d69d3) SHA1(345ea1b517828cd4b140ec91e7014176cd45f6ad) )
-#define sc_smtm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95416744.bin", 0x0000, 0x100000, CRC(3aa90fed) SHA1(d399f67bbe1d6f58d4c0a9e322156055cf3dccdc) )
-#define sc_spice_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008585.bin", 0x0000, 0x100000, CRC(2f15c4a4) SHA1(df543cd6ebecbbd3922bb8550e4bf349fd8eb45c) )
-
-
-#define sc_sus_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008960.bin", 0x0000, 0x0f4505, CRC(a3279a7d) SHA1(da3cc1f3c0b9301e9b4d9f5253cafa3a9385be56) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890413.bin", 0x0000, 0x5000, CRC(5cdcd7cc) SHA1(7eaf28a20ca68c7edda1ee0cb5efefd00831c024) ) \
- ROM_LOAD( "95890414.bin", 0x0000, 0x5000, CRC(294a93f8) SHA1(f81f4cdb1b7e9107835f54702772c4e5f18d9731) ) \
- ROM_LOAD( "95890415.bin", 0x0000, 0x5000, CRC(b7f05fa4) SHA1(4cfbb0c7752edc6a0df8f9b6ab77f3fb9cd8db8e) )
-
-
-#define sc_srr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008213.bin", 0x0000, 0x100000, CRC(e8f82b1d) SHA1(9357f587d638289b2cd5029e5895f69097d69089) )
-#define sc_sslam_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008731.bin", 0x0000, 0x100000, CRC(b6f92b76) SHA1(69be21d12940dc415816dd3c77f4eb2c1bd1a555) )
-#define sc_swbak_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008929.bin", 0x0000, 0x0f973a, CRC(016f4cc0) SHA1(763c6bf389e0c1e83d903d7aec23ac1a53261e7c) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890368.bin", 0x0000, 0x5000, CRC(01900e28) SHA1(c3e86b917b48249bdf0f1072f0cf5fa4b749d834) ) \
- ROM_LOAD( "95890369.bin", 0x0000, 0x5000, CRC(74064a1c) SHA1(0c254916fd56026dfd0df2abb4dc1c0b2dff1a7d) ) \
- ROM_LOAD( "95890370.bin", 0x0000, 0x5000, CRC(eabc8640) SHA1(41a5f5530289672563210d3ef71eb896cf6b3d5d) )
-#define sc_tempt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR1963 TEMPTATION SOUNDS11 */ \
- ROM_LOAD( "95008654.bin", 0x000000, 0x100000, CRC(9963724c) SHA1(90d22b11934e95fd2bfda026dcde51dcd74f93cc) ) \
- ROM_LOAD( "95008655.bin", 0x100000, 0x100000, CRC(12735319) SHA1(166fbcc5828fd26ace63eed127427cbd0c81570d) )
-
-#define sc_typ_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008662.bin", 0x000000, 0x100000, CRC(51959c94) SHA1(8a4b68460da4223071e33158747ae0ea18b83a52) ) \
- ROM_LOAD( "95008663.bin", 0x100000, 0x100000, CRC(839687b2) SHA1(a9fd3645eb903cb52b348dd8313f0d953d5a5ec0) )
-
-
-#define sc_vamp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008890.bin", 0x0000, 0x0ffd25, CRC(bdf5491b) SHA1(231264d83a84fcc54bf45a43a37464fc5c604d9b) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891062.bin", 0x0000, 0x5000, CRC(3816210d) SHA1(890eed46cf9d7285887d0fe422ff6c8d8bf35820) ) \
- ROM_LOAD( "95891063.bin", 0x0000, 0x5000, CRC(4d806539) SHA1(73958733c49fa020f6425aef511489965df13907) )
-
-
-#define sc_viz_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008859.bin", 0x000000, 0x100000, CRC(86e4b4a1) SHA1(21344c9e5757d8d9ad7f1cd5ce5deb9f93d18fcc) ) \
- ROM_LOAD( "95008860.bin", 0x100000, 0x0ae3ea, CRC(0e49df2c) SHA1(629b90f91e8840560ea6eaf0e94d6b2fb6aba71c) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890742.bin", 0x0000, 0x5000, CRC(247f75ec) SHA1(92d63123aabf6932b283bbbd581c1bbe526318ce) ) \
- ROM_LOAD( "95890743.bin", 0x0000, 0x5000, CRC(51e931d8) SHA1(91ceb930eac97e090de5471c8a789ddd31c65a10) ) \
- ROM_LOAD( "95890744.bin", 0x0000, 0x5000, CRC(cf53fd84) SHA1(0de52e4ce83f41f2928866fc914ed36023415a4f) )
-#define sc_wacky_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR3330 WACKY RACES SOUNDS11 */ \
- ROM_LOAD( "95008834.bin", 0x000000, 0x100000, CRC(def73602) SHA1(681aafa4c035fdbb0f03e92fa56d31c13e27ca59) ) \
- ROM_LOAD( "95008835.bin", 0x100000, 0x100000, CRC(9a10ff4f) SHA1(903e43d9db726dc5ee92abaf23b61454611064b1) ) \
- /* PR3330 WACKY RACES SOUNDS12 */ \
- ROM_LOAD( "95009128.bin", 0x000000, 0x100000, CRC(d9883f0c) SHA1(3cfeb470248a9d5d6b653175c16f88c54d51fceb) ) \
- ROM_LOAD( "95009129.bin", 0x100000, 0x100000, CRC(969f418a) SHA1(ca65dfa23f9e6a516bc65baa8ddd80faa530af1f) )
-#define sc_wotw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008925.bin", 0x0000, 0x0eea8c, CRC(9cb8a972) SHA1(9b99eea5264fa0764f4598330f442335a8024cdb) )
-#define sc_wca_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008524.bin", 0x0000, 0x0ec9a6, CRC(a585c613) SHA1(dbe4f3b8584b92012e84d48c232b31a0fba6e20c) )
-#define sc_wok_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008811.bin", 0x000000, 0x100000, CRC(0aae3aea) SHA1(a13ca57b4ff95022392b6bf06065593c3271637a) ) \
- ROM_LOAD( "95008812.bin", 0x100000, 0x100000, CRC(4a48eabd) SHA1(30dc0cccc636c1472b7577353c1db8e88242bba4) )
-#define sc_pircl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009200.bin", 0x000000, 0x100000, CRC(45392f4b) SHA1(9a71834e52480f87ab303c22efe15157b8f25b5c) ) \
- ROM_LOAD( "95009201.bin", 0x100000, 0x100000, CRC(3aece97c) SHA1(fc469870fef892da0a4aa49077c7746315933d40) )
-
-#define PR1034_GOLDEN_BALLS_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008161.bin", 0x000000, 0x080000, CRC(ecd13fd9) SHA1(51d11b9133d4e840ce9afd7cf716520ea0fc0343) ) \
- ROM_LOAD( "95008162.bin", 0x080000, 0x080000, CRC(b4b4a5c5) SHA1(d0748decfaee7da52d2f6a4bc0877be4243ed6fb) )
-#define sc_gball_pthers \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR1604 GOLDEN BALLS SOUNDS12 */ \
- ROM_LOAD( "95008465.bin", 0x000000, 0x100000, CRC(5d1fa2c9) SHA1(c12de2b89f0bcb8f1b35630fffd205fd9d5b9777) ) \
- ROM_LOAD( "95008466.bin", 0x100000, 0x100000, CRC(418068ab) SHA1(342939e9bcc1d213bc2f52666cc3765442e18635) )
-#define sc_gfev_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95416146.bin", 0x0000, 0x100000, CRC(17e92fa0) SHA1(7dea5166f3f70e5d249da56f01bbe2267ce43d6a) )
-#define sc_ggame_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008992.bin", 0x0000, 0x0aa536, CRC(aad10089) SHA1(d8a32f66432ee901be05435e8930d3897f4b4e33) ) /* BARX */ \
- ROM_REGION( 0x400000, "others", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008515.bin", 0x0000, 0x0ab5c3, CRC(70cd8480) SHA1(2da34a0c1d9d84471005f5d6491499e707c0b0d4) ) /* KGXDX */ \
- ROM_LOAD( "95008958.bin", 0x0000, 0x0435d3, CRC(31ffdb64) SHA1(e48cfa2e5b158555b4ba204fc1175810b81cbbed) ) /* MULTIGG */ \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890410.bin", 0x0000, 0x5000, CRC(9588ae1d) SHA1(ae45d9e0272b2b048b99e337def1acfb2524597e) ) \
- ROM_LOAD( "95890411.bin", 0x0000, 0x5000, CRC(895e5ea1) SHA1(070df49baca709f69fa1e522b21e42b716af0ba5) ) \
- ROM_LOAD( "95890412.bin", 0x0000, 0x5000, CRC(4a047c31) SHA1(aeb969801c89b60a644b4ffc2e1bbb73f6d61643) )
-#define sc_ggg_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95009015.bin", 0x0000, 0x0b7821, CRC(8b6ca362) SHA1(4c50935b6d1038738ce631fbdc359416197b8c03) ) /* BARX SOUNDS */ \
- ROM_REGION( 0x400000, "others", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008992.bin", 0x0000, 0x0aa536, CRC(aad10089) SHA1(d8a32f66432ee901be05435e8930d3897f4b4e33) ) /* BARX SOUNDS */ \
- ROM_REGION( 0x400000, "pivs", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95890730.bin", 0x0000, 0x5000, CRC(9673d1ce) SHA1(fee90139fc8de5e7b6dfe741b4852a363c17eb93) ) \
- ROM_LOAD( "95890731.bin", 0x0000, 0x5000, CRC(8aa52172) SHA1(441a649e3da00556a8ea966a88ee9b58b4943d3b) ) \
- ROM_LOAD( "95890732.bin", 0x0000, 0x5000, CRC(49ff03e2) SHA1(f8b77c97f2b1bb5de06f4c9835275ae9b83d0988) )
-
-#define SC4_95004211_HELLS_BELLS_PR6945 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004211.bin", 0x0000, 0x080000, CRC(2e729642) SHA1(c8dcdce52f930b3fa894c46907691a28a5499a16) )
-#define sc_hellb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1402 HELLS BELLS SOUNDS11 */ \
- ROM_LOAD( "95008341.bin", 0x0000, 0x100000, CRC(486e5395) SHA1(0ad68f271f4839d50a790b7f4427e1f1f1933bd4) )
-#define sc_leg_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008093.bin", 0x000000, 0x100000, CRC(86e27465) SHA1(1d27358fe795286676a8031382387ff4225f7118) ) \
- ROM_LOAD( "95008094.bin", 0x100000, 0x100000, CRC(08909b00) SHA1(3e5b3da186036d7fe67ed2739de6fba79d4a978a) )
-#define sc_legcb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008197.bin", 0x000000, 0x100000, CRC(234ff677) SHA1(571c2fa2b5a24d07e90e43061d9947f64874e482) ) \
- ROM_LOAD( "95008198.bin", 0x100000, 0x100000, CRC(4b03df47) SHA1(13c24cc90a618ebc7c150ab3694a1b787fb049d6) )
-#define sc_luckb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008167.bin", 0x000000, 0x080000, CRC(13aaf063) SHA1(70ab005c867c0c8f63b16722f4fc3ba0c935a96f) ) /* lucky balls */ \
- ROM_LOAD( "95008168.bin", 0x080000, 0x080000, CRC(71aebb68) SHA1(479b3915552be029d459d3f05ccf668c21f05554) )
-#define sc_mww_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008593.bin", 0x0000, 0x06a118, CRC(e4aee21b) SHA1(bda104a05bd2c0d4506f389c54e8842dc20d84b0) ) \
- \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890162.bin", 0x0000, 0x5000, CRC(acf9118a) SHA1(b2c9073f0496de62d66edbc1da5546b9239ac1ba) ) \
- ROM_LOAD( "95890163.bin", 0x0000, 0x5000, CRC(b02fe136) SHA1(ac52b411f8117564a8dae25b19c9395e9030bfa0) ) \
- ROM_LOAD( "95890164.bin", 0x0000, 0x5000, CRC(7375c3a6) SHA1(8e5340e201261ccd8b47334f5d23e8adb33d031f) ) \
- ROM_LOAD( "95890387.bin", 0x0000, 0x5000, CRC(7e8703c6) SHA1(139dab5081ce9bdfade8c2a188562d98a15f8bb2) ) \
- ROM_LOAD( "95890388.bin", 0x0000, 0x5000, CRC(6251f37a) SHA1(3c8beafa021b6f4d32bd46f3fd755a7f877414ea) ) \
- ROM_LOAD( "95890389.bin", 0x0000, 0x5000, CRC(a10bd1ea) SHA1(e575a7cd0d40a7282aee2b7cd9f4801408ff846d) )
-#define sc_manic_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008684.bin", 0x000000, 0x100000, CRC(52b7d26e) SHA1(ba6629dbad8d00c132c0ddf6a8a41ddc99231c75) ) \
- ROM_LOAD( "95008685.bin", 0x100000, 0x100000, CRC(dc9717c0) SHA1(27234bb7c7e7bd1f395972ce2958d55e84005313) )
-#define QPS_PACP_SOUNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PACP SOUNDS */ \
- ROM_LOAD( "97000000.evn", 0x000000, 0x080000, CRC(5b13fe7b) SHA1(1bd32e577914ab4e3bc3282261f8c3cdf015b85d) ) /* pacp */ \
- ROM_LOAD( "97000000.odd", 0x080000, 0x080000, CRC(8bab1c78) SHA1(ddc915a8c56473ba4d67d8c62c66105dd622b593) )
-#define PACMAN_SOUNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PACMAN SOUNDS */ \
- ROM_LOAD( "95004183", 0x000000, 0x080000, CRC(4b28f610) SHA1(fff01c890a8c109bb4b522ee2391c15abdc2758c) ) \
- ROM_LOAD( "95004184", 0x080000, 0x080000, CRC(bee11fdd) SHA1(b5ce97108812e296c92a000444c1fb7a11286de4) )
-
-#define sc_paccs_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004199.lo", 0x000000, 0x080000, CRC(3a9605c8) SHA1(ce1c94fe26eac9e145e94539f62f2bde740e5b9a) ) \
- ROM_LOAD( "95004199.hi", 0x080000, 0x080000, CRC(0ecfc531) SHA1(15e20eedf4b7d9102c40834612d111559b4dcbca) )
-#define sc_paccl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008145.bin", 0x0000, 0x100000, CRC(e2ec54f8) SHA1(bb1c40b13151ed1e3c7ba603506701457392bb8b) ) \
- ROM_LOAD( "pacmancsnd.bin", 0x0000, 0x0bbb33, CRC(c505aa18) SHA1(a99bd1c4101269e2eb2b6becf210d9991fee1da1) ) /* identical but cut at 0xff bytes */
-#define sc_pacpl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008049", 0x0000, 0x0ff7f5, CRC(efb3c1aa) SHA1(345ad862a329eedf7c016ddd809c8b60185d9962) )
-#define sc_pmani_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008201.bin", 0x0000, 0x100000, CRC(4e0358c5) SHA1(b9d8b78c77f87eebb9408a4ea1b9fd3a64ae724d) )
-#define sc_polem_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "pole_p.sn1", 0x000000, 0x080000, CRC(cbb7b019) SHA1(1404ff5fe2c3e54370a79ea141617e58e56217e9) ) \
- ROM_LOAD( "pole_p.sn2", 0x080000, 0x080000, CRC(95d9939b) SHA1(29d03f2f2d33a807df002271e14b614bae3d10e4) )
-#define sc_polen_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "polesnd1.bin", 0x000000, 0x080000, CRC(09f720e3) SHA1(1a5c581b16b974e949679c3d71696984755f3c7c) ) \
- ROM_LOAD( "polesnd2.bin", 0x080000, 0x080000, CRC(80c2702b) SHA1(6c7b1d535d8f1eeb25a1a84ccf9e97b3e453af6d) )
-
-#define PR3082_C_POTS_OF_GOLD_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008750.bin", 0x000000, 0x100000, CRC(25a94ab7) SHA1(9ee3a1acb2734a5663d925fa050c15d154f79678) ) \
- ROM_LOAD( "95008751.bin", 0x100000, 0x100000, CRC(53c97577) SHA1(5ec3868967073b4ed429fed943fbcd568a85b4f3) )
-#define PR000050_POTOFGLD_1 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASEFF) \
- ROM_LOAD( "95008836.bin", 0x000000, 0x100000, CRC(45105fca) SHA1(3c603726bb9f4a01113a225868e864106da9fa35) ) \
- ROM_LOAD( "95008837.bin", 0x100000, 0x100000, CRC(3db8829c) SHA1(e8de259afd2797279154252cfeb6682b482b54a9) )
-
-#define sc_rt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008203_1.bin", 0x000000, 0x100000, CRC(778a18e5) SHA1(2ad4d0259f08786f50928064a4d345ffa6bb52e2) ) \
- ROM_LOAD( "95008204_2.bin", 0x100000, 0x100000, CRC(ef036383) SHA1(cb26a334fe043c6aba312dc6d3fe91bd93e0cb2f) )
-
-#define sc_sace_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008270.bin", 0x0000, 0x0fde91, CRC(5c87d4ce) SHA1(6fce212a89334a9595411aa2d20bde5e3fae4710) )
-
-
-#define sc_starp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "star prize snd1.bin", 0x000000, 0x080000, CRC(9f7f7442) SHA1(576e5e92455455ad18ae596a9dae500a17912faa) ) \
- ROM_LOAD( "star prize snd2.bin", 0x080000, 0x080000, CRC(0ae992b5) SHA1(b3a8ba472aa3a6785678a554a7fe789f9f3dc6c0) ) \
- ROM_REGION( 0x400000, "altymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "sprizesn.1", 0x0000, 0x080000, CRC(5a9a9903) SHA1(ac79fedeaa1b37661d0ec28bf6c5b141c7fcc328) )
-#define sc_tetri_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008097_1.bin", 0x000000, 0x100000, CRC(01a251eb) SHA1(0cb63736065b97956f02710867ac11609b1f282c) ) \
- ROM_LOAD( "95008098_2.bin", 0x100000, 0x100000, CRC(5ebcfd20) SHA1(be415d965732b3fde47684dacdfe93711182faf4) )
-#define sc_trail_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "trailblazer.bin", 0x0000, 0x0f6a6c, CRC(c27b5f9d) SHA1(24ac4ae0bec9a898690dfa2a78f765026d58255b) )
-#define sc_ttpie_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008579.bin", 0x0000, 0x100000, CRC(b3741823) SHA1(77890bf89b848fa2222e885aeb51f05f033143ba) )
-#define PR6927_CASINO_VMEXICO_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004209.lo", 0x00001, 0x080000, CRC(40247425) SHA1(54c8540f9ce45b8b02f6616233b81e33af804f63) ) \
- ROM_LOAD( "95004210.hi", 0x00000, 0x080000, CRC(6f6ce2c8) SHA1(7e9ce336a1307b8290196d58c7419996d0758ab9) )
-#define PR3010_VIVA_MEXICO_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008719.bin", 0x000000, 0x100000, CRC(f99eafef) SHA1(7a7dedf5bf8292b94ac6da78478441335bfcb66f) ) \
- ROM_LOAD( "95008720.bin", 0x100000, 0x100000, CRC(6419033f) SHA1(3d222696dd9f4f201596fd444a031690cc8c1b0d) )
-#define PR6927_CASINO_VMEXICO_SOUNDS21 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004246.bin", 0x000000, 0x080000, CRC(4e5a0143) SHA1(a9e668aceb21671a78b584fd55c21d5501ea1f8a) ) \
- ROM_LOAD( "95004247.bin", 0x080000, 0x080000, CRC(4a35b6a1) SHA1(24e4ed93149b7f6caf785ecaa5a4685585a36f5b) )
-#define PR6907_VIVA_MEXICO_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "viva_mex.sn1", 0x000000, 0x080000, CRC(ed357575) SHA1(610047e83062fd4a6d23d9b9281a3a6c04d63f7d) ) \
- ROM_LOAD( "viva_mex.sn2", 0x080000, 0x080000, CRC(aab9421d) SHA1(db2941e013597be3fe05a2b002aebdfb0f7a2b41) )
-#define PR7132_CLUB_VIVA_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008101.bin", 0x000000, 0x100000, CRC(751a433f) SHA1(36aaf1b2425c58bd49671fc6bd61addc33a082f1) ) \
- ROM_LOAD( "95008102.bin", 0x100000, 0x100000, CRC(155ec8ab) SHA1(5f38fb49facab94d041f315178a3d2adf9d95853) )
-
-#define sc_vrgcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008143.bin", 0x000000, 0x100000, CRC(8bf35d69) SHA1(0a5017d02ba839f2f21402df99e7684ce559d931) ) \
- ROM_LOAD( "95008144.bin", 0x100000, 0x100000, CRC(1ce7f671) SHA1(ccca34515217e72ef1879a3cbad77c7adea3a665) )
-#define sc_wldjk_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008999.bin", 0x0000, 0x0b4dd9, CRC(0fa36a2e) SHA1(0168a326fd50c15e8f48293dff45e1411e5044f8) ) \
- ROM_REGION( 0x400000, "pics", 0 ) \
- ROM_LOAD( "95890709.bin", 0x0000, 0x5000, CRC(4b3ba87a) SHA1(6ec85bc6d14825ea0a497e6ee6e38d17c0c7b79f) ) \
- ROM_LOAD( "95890710.bin", 0x0000, 0x5000, CRC(3eadec4e) SHA1(bbb80a6325fd561ca762a0261b68b550285bb8f6) ) \
- ROM_LOAD( "95890711.bin", 0x0000, 0x5000, CRC(a0172012) SHA1(07ceb089ec88801700ea12f52e4cc49e8c1d5d36) )
-#define sc_bsp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008725.bin", 0x000000, 0x100000, CRC(e0a46426) SHA1(f6bc41c48ec1c4f113968a6ccc7a7dc81a7674b2) ) \
- ROM_LOAD( "95008726.bin", 0x100000, 0x100000, CRC(f01062bb) SHA1(a75937e85010ff4da01277336ad37bcbb8d0ba9f) )
-#define sc_chain_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008318.bin", 0x0000, 0x100000, CRC(d4fb4702) SHA1(b6cdeb8e34d081a403d5918ec95e2eb387102538) )
-#define sc_clown_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008552.bin", 0x0000, 0x100000, CRC(89173513) SHA1(7c332b6c14725897b0ae1ed33d38a384eae9cfdd) )
-
-
-#define sc_bb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008350.bin", 0x0000, 0x0e3be3, CRC(b19e617c) SHA1(46eb761ac44fef0ff0f1731b098b067ce6843461) )
-#define sc_bbclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008383.bin", 0x0000, 0x0f350f, CRC(a93300db) SHA1(4f2864cc71b3fe7ac1b323dfd226c18be83d301f) )
-#define sc_botn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008484.bin", 0x0000, 0x0f8e5a, CRC(83e34402) SHA1(e90c3ef784dfce7df2d60b06bc84ec9a21ff9a12) )
-#define sc_brkfs_others \
- ROM_REGION( 0x200000, "ymz", 0 ) \
- ROM_LOAD( "95008013.lo", 0x000000, 0x100000, CRC(286e59da) SHA1(e43901f4ad9fc7f083cbb7ef5cd7e4ad6289833b) ) \
- ROM_LOAD( "95008014.hi", 0x100000, 0x100000, CRC(1b9936ad) SHA1(0c98618d1ca30fa4f9913a5214a5f431e520917c) )
-
-#define sc_bulcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008547.bin", 0x000000, 0x100000, CRC(33d997ba) SHA1(22c28360757bad350907b145e18a8e438d68f2b1) ) \
- ROM_LOAD( "95008548.bin", 0x100000, 0x100000, CRC(896bae80) SHA1(264127b6d22c048a0a54e7a63433c3aed6f053e2) )
-#define sc_bankb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008350.bin", 0x0000, 0x0e3be3, CRC(b19e617c) SHA1(46eb761ac44fef0ff0f1731b098b067ce6843461) )
-#define sc_bed_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008315.bin", 0x0000, 0x100000, CRC(5098077e) SHA1(8ecba67e3585dc7851f8bacb7c5235959f883143) )
-#define sc_captn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008139.bin", 0x0000, 0x0c076f, CRC(8c87abf8) SHA1(2dfdf9202378723db267ed9d8f2abd076b5214d6) )
-#define sc_cashn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004292.sn1", 0x000000, 0x080000, CRC(e7efab30) SHA1(b2587c14e427fdb51cb5c96e5e017c69f5c134e8) ) \
- ROM_LOAD( "95004293.sn2", 0x080000, 0x080000, CRC(89584d87) SHA1(935b6e873342aefd1c39bb474c6b780799a0e049) )
-#define sc_cashm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008123_1.bin", 0x000000, 0x100000, CRC(9f1fc98b) SHA1(9233ef6a82f8b23066f959957a7561fb33120d46) ) \
- ROM_LOAD( "95008124_2.bin", 0x100000, 0x100000, CRC(4795c128) SHA1(7b55b39f335b81f6a895ed9beb123464e10a48ee) )
-
-
-#define sc_cbaz_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008317.bin", 0x0000, 0x100000, CRC(05ef55b5) SHA1(5130b9243647b9724998600b5f2ef2bbe7b5b1e5) )
-#define sc_ccc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004282.snd", 0x0000, 0x080000, CRC(e17fb009) SHA1(27fa336c8576bd4a2414f4d71857e9113102cb3d) )
-#define sc_ccogs_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008361.bin", 0x0000, 0x0ff54f, CRC(d1cc7b58) SHA1(32328e0e56bbf65e91e32de8802edce38f0abc65) )
-
-#define sc_cclas_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004250.bin", 0x000000, 0x080000, CRC(5250f18b) SHA1(bbdc556df845753f9ce15dd7dfb2347539dfa00f) ) \
- ROM_LOAD( "95004251.bin", 0x080000, 0x080000, CRC(7a0a7876) SHA1(f172c8a1fbe214f201e6bf671c2f0534b6d9d395) )
-#define sc_cjcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008435.bin", 0x0000, 0x100000, CRC(f0b58825) SHA1(124132a510e7473ade3d03fb63f24f120d3a08e4) )
-#define sc_ctlcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008181.bin", 0x000000, 0x100000, CRC(9eb3e51e) SHA1(95e90e9574cba0526e495a8b17150a5081c13df8) ) \
- ROM_LOAD( "95008182.bin", 0x100000, 0x100000, CRC(5d31955a) SHA1(49dbb4f3efc7e03d1763abb3c6db21c81e961735) )
-#define PR6923_CRAZY_FRUITS_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR6923 CRAZY FRUITS SOUNDS11 */ \
- ROM_LOAD( "ccfsnd1.bin", 0x000000, 0x080000, CRC(d389aeb3) SHA1(855f3d4bba4922026b1fa963e60c5e58556739c3) ) \
- ROM_LOAD( "ccfsnd2.bin", 0x080000, 0x080000, CRC(6fbda954) SHA1(812c2c96a9e750daf5ac4a878c63847bfd5a2593) )
-
-#define sc_cfcla_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR1396 CLSIC CRAZY FRUITS SND11 */ \
- ROM_LOAD( "95008316.bin", 0x00000, 0x100000, CRC(3b08ccac) SHA1(d71805a424b1af3d54406374a0d1ca95c4bc594c) )
-#define PR1430_CRAZY_F_SIT_D_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008381.bin", 0x00000, 0x100000, CRC(78c97785) SHA1(5ac40b2850c25699f65ee08c173d194ddb4a3846) )
-#define sc_cfclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004144.lo", 0x000000, 0x080000, CRC(9d861825) SHA1(4b8776a014e31f5041f7e172ae69cb172f42fae5) ) \
- ROM_LOAD( "95004145.hi", 0x080000, 0x080000, CRC(9570fbbc) SHA1(34bdca9ef125e5304b238dd8f1421a888c9ba33e) )
-#define sc_cfdu_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008184.bin", 0x0000, 0x100000, CRC(dc98ec1b) SHA1(6b600d7790bb0a90c5309d7e7684e4cca26c5a50) )
-#define sc_cfgcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008577.bin", 0x0000, 0x100000, CRC(f18f1116) SHA1(ba47360e7b489c1bcded786dd1efe518b62b039e) )
-#define sc_crcp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008743.bin", 0x0000, 0x100000, CRC(d44e91bf) SHA1(f42a8c8b0ee5f233cddb4b6084a37e45e2490dd9) )
-#define sc_crcc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004120.lo", 0x000000, 0x080000, CRC(770a9c0f) SHA1(2d06e32b1d07bc9dc51f39f9ba22c9fe8a678ef3) ) \
- ROM_LOAD( "95004121.hi", 0x080000, 0x080000, CRC(239f389c) SHA1(75d6f9f500aab5f114f8b86c4ca1f8dce6ea2ca4) )
-
-#define sc_crcc_matrix \
- ROM_REGION( 0x400000, "dm01:matrix", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95000611.p1", 0x0000, 0x010000, CRC(3f40a2c9) SHA1(f73731171c56add1329f3a9d2f84303311d87884) )
-
-
-#define sc_crgc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008323.bin", 0x0000, 0x100000, CRC(461dd238) SHA1(cab717b285fb217bf47ebe07bd6e7737cf0517c9) )
-#define sc_crzky_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008242.bin", 0x0000, 0x100000, CRC(7d5c1356) SHA1(efab297024650c95a0abb1296b2ebabd09b299a8) )
-#define sc_crzgn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004248.lo", 0x000000, 0x080000, CRC(4fff74c5) SHA1(2704a15e3afd73848c8f3963920f606310b86963) ) \
- ROM_LOAD( "95004249.hi", 0x080000, 0x080000, CRC(2c8cdeb1) SHA1(771bcc907be91be2d178b87a76b72bd3cc07fe30) )
-#define sc_cvani_others \
- ROM_REGION( 0x400000, "ymz", 0 ) \
- ROM_LOAD( "95008237.bin", 0x0000, 0x0fdb37, CRC(ce0a3555) SHA1(7ba0c53709236d41f9e73b3a5151174ca2bf3fae) )
-#define sc_cvclb_others \
- ROM_REGION( 0x400000, "ymz", 0 ) \
- ROM_LOAD( "95008345.bin", 0x0000, 0x0fdb37, CRC(1e01057c) SHA1(f54cd2b59b1b4901b972b8b33c85defc975b0fac) )
-#define sc_druby_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008423.bin", 0x0000, 0x100000, CRC(4cab20ee) SHA1(e27221a94e54db340eaf7fc30e722b354c85686d) ) /* triple casino */
-#define sc_darw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008214.bin", 0x0000, 0x0e7add, CRC(423575e6) SHA1(52d9a22824b0ee828095f99dcc5209787f5a2c32) )
-#define sc_duckq_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008337.bin", 0x0000, 0x0fd2ce, CRC(d452995e) SHA1(3a8196f44078a4730ec18f16ce3a68b647205a29) )
-#define sc_dyna_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008209.bin", 0x0000, 0x100000, CRC(7845c5e7) SHA1(14cd505e11149b6bdfa0e8a92236f3229f7a2a0e) )
-#define sc_easy_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008195.bin", 0x000000, 0x100000, CRC(e032e67a) SHA1(062f48bd2c38b51ffba8cda7860bb37abad40c71) ) \
- ROM_LOAD( "95008196.bin", 0x100000, 0x100000, CRC(4a23e184) SHA1(2d1c1d92c9cdccd95ca4f466a2d7765def7d990b) )
-
-#define PR1326_CAS_EASY_STREAK_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008288.bin", 0x000000, 0x100000, CRC(da74e2d3) SHA1(a16b3d6c0590b0ccc7b2488a2f23383a332c332a) )
-#define sc_fastf_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008272.bin", 0x0000, 0x0fafac, CRC(a9bdc1e2) SHA1(60ff02ff4906d8b0f6392cccb96976b912c61e2d) )
-
-#define sc_fd7th_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "frankie snd1.bin", 0x000000, 0x080000, CRC(5d74001e) SHA1(f157706c0970af9b396c2973774c828ed1c0d275) ) \
- ROM_LOAD( "frankie snd2.bin", 0x080000, 0x080000, CRC(8863c8e6) SHA1(0e852155cb2d50d8f0b892c055b37e9955fd8da4) ) \
- \
- ROM_REGION( 0x400000, "altymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "frdesnd1", 0x0000, 0x080000, CRC(deb93ffa) SHA1(5a549b6bde6f92561952584e3184c1985903464f) )
-
-#define sc_frenz_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008052.bin", 0x0000, 0x100000, CRC(36b422b2) SHA1(1ee085393922b46588a604c5e88ad454357711bb) )
-#define sc_ftopi_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "frtsnd.bin", 0x0000, 0x0a6326, CRC(f718f2f0) SHA1(eccedf4eda8eda34633b917165e063d2fbb03abf) )
-#define sc_ffru_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "ff_snd.bin", 0x0000, 0x0e54bf, CRC(9d1b711d) SHA1(29386915460b8be92fc5f79177efaf05b7f613cd) ) \
- ROM_LOAD( "ff_snd1.bin", 0x000000, 0x080000, CRC(3f0cb386) SHA1(a400177b1e3b986ba5ddfa5f549180b006ced5a2) ) \
- ROM_LOAD( "ff_snd2.bin", 0x080000, 0x080000, CRC(88d7cc1a) SHA1(7cb45ccc41f0c4a842595598f6f30b78e6c42480) )
-
-// the set header says it wants FEVER SOUNDS11, but it accept FEVER SOUNDS12, production error?
-#define sc_fever_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* PR1007 FEVER SOUNDS12 */ \
- ROM_LOAD( "95008137.bin", 0x000000, 0x100000, CRC(f74f3916) SHA1(659b160db41e46a53149688f8677e73a78f22e63) ) \
- ROM_LOAD( "95008138.bin", 0x100000, 0x100000, CRC(68563cdd) SHA1(df92dadecf9242bfa147e3134039266e9016faea) )
-#define sc_fever7157_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* 95004239 FEVER PR7157 */ \
- ROM_LOAD( "95004239.sn1", 0x000000, 0x080000, CRC(12c4d8eb) SHA1(a404bce7eb1a1148cba4a4d8326ea36e31e881b4) ) \
- ROM_LOAD( "95004240.sn2", 0x080000, 0x080000, CRC(a990a2c4) SHA1(2630dc0408359f32d05ecfd5bcc81789854e5229) )
-
-#define sc_fevnx_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004318.sn1", 0x000000, 0x080000, CRC(bb5d74bd) SHA1(104dd8b2faedce3382533c755ca05d03ec2bc50a) ) \
- ROM_LOAD( "95004319.sn2", 0x080000, 0x080000, CRC(73dc297e) SHA1(a826e7d0b88b9e01ceab21a2a92f69f15b402acb) )
-#define sc_fpitc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008091.bin", 0x000000, 0x100000, CRC(81a28437) SHA1(99b9e5c04c2ab7e9aba0b9b8a0bacee424a079de) ) \
- ROM_LOAD( "95008092.bin", 0x100000, 0x100000, CRC(0987737f) SHA1(bab6bf1ffd3df5465c87996795b1c25f5e863beb) )
-#define sc_fcc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004103.lo", 0x000000, 0x080000, CRC(9926f103) SHA1(f29a0d25eebd0a0990cd165116b425b795ed62e0) ) \
- ROM_LOAD( "95004104.hi", 0x080000, 0x080000, CRC(bec75a23) SHA1(cdf895081ebf3afb52d5bfaab29f713800c85fc9) )
-#define sc_fcc_matrix \
- ROM_REGION( 0x200000, "dm01:matrix", ROMREGION_ERASEFF )\
- ROM_LOAD( "club-firecracker_mtx_ass.bin", 0x0000, 0x010000, CRC(c23ffee9) SHA1(b4f2542e8ed0b282a439e523baa6cd43c5b2cb50) )
-#define sc_frsu_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004229.bin", 0x000000, 0x080000, CRC(fe94f724) SHA1(6cebd17d277f1fa88982158d5ac9422f6f16bc3b) ) \
- ROM_LOAD( "95004230.bin", 0x080000, 0x080000, CRC(4b0a6a18) SHA1(6df706b4431cc97318df612c9533c34085cd341d) )
-#define sc_fullt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008449.bin", 0x0000, 0x0fde7d, CRC(9e3ce927) SHA1(00ce43a0ca94e81ac90f53c647e40ac6cb454937) )
-
-#define sc_greed_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008325.bin", 0x0000, 0x100000, CRC(82356c95) SHA1(bbf9dc2e4ca20a35a8bc581e322956e17f220022) )
-#define sc_gslam_others \
- ROM_REGION( 0x200000, "ymz", 0 ) \
- ROM_LOAD( "95004169.bin", 0x000000, 0x080000, CRC(d2293b2f) SHA1(e3eed38a15885c5a6d63fc79d95f77c5225e9168) ) \
- ROM_LOAD( "95004170.bin", 0x080000, 0x080000, CRC(1da0db8f) SHA1(b3c37b5e02efe7267556d8603c362298ed55bb88) )
-#define sc_heatw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004287.snd", 0x0000, 0x080000, CRC(7a86c853) SHA1(60a5582f43cda30e9c48a1207ee1a4cafdce0276) )
-#define sc_helrd_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004326.snd", 0x0000, 0x080000, CRC(193851ca) SHA1(de71622b6d50d039bd625189303191d316bdc671) )
-#define sc_helrs_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004326.snd", 0x0000, 0x080000, CRC(193851ca) SHA1(de71622b6d50d039bd625189303191d316bdc671) )
-
-#define sc_hi5_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008107.bin", 0x000000, 0x100000, CRC(f2b5a284) SHA1(c2b427aa59a233eedefff55d3afdc120f486af83) ) \
- ROM_LOAD( "95008108.bin", 0x100000, 0x100000, CRC(c8bd435d) SHA1(cc78030ae92424db3ba572f355d12db7f9291bd7) )
-#define sc_sprng_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008276.bin", 0x0000, 0x0f7b99, CRC(e13380bd) SHA1(f4ec3f2d4d8f20e82324fda89e5383a9689bf02a) )
-#define sc_hilo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008177.bin", 0x000000, 0x100000, CRC(4dad5ea3) SHA1(efa226af2bae5bab25deb3507a635412b0f031e8) ) \
- ROM_LOAD( "95008178.bin", 0x100000, 0x100000, CRC(3a59e427) SHA1(7d530426a57dd9651aef51730b0b8a5324f81024) )
-#define sc_hitsh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008239.bin", 0x0000, 0x100000, CRC(cc12346b) SHA1(dd3656a3024c3d26348482c3aa04e0f6638053f7) )
-#define sc_holyw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008071.bin", 0x000000, 0x100000, CRC(005c5847) SHA1(9d8a801e70f5b1c07d46a4f6e9fab22adf5a9415) ) \
- ROM_LOAD( "95008072.bin", 0x100000, 0x100000, CRC(78756706) SHA1(56b744ec5cb431b30c13bc748d323ebe14727546) )
-#define sc_h6cl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008576.bin", 0x0000, 0x100000, CRC(15d77734) SHA1(db314df1dc558ce66d3c4d62895ab699d36bdf46) )
-
-#define sc_hf_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008163.bin", 0x0000, 0x100000, CRC(0d8abe3c) SHA1(e3dc45ca8aea3113c5884ae3af9216f627ce71ba) )
-#define sc_hotpr_others \
- ROM_REGION( 0x800000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "97000034.p1", 0x000000, 0x100000, CRC(f06cb0f1) SHA1(856bdd31a35e93e6f52f88f2ac738cc3fab09c11) ) \
- ROM_LOAD( "97000034.p2", 0x100000, 0x100000, CRC(cce5a2a7) SHA1(4884e8abe2dde81f70ddc13a3a68d690fc097dae) ) \
- ROM_REGION( 0x800000, "others", ROMREGION_ERASE00 ) \
- /* bad dumps of snd1? */ \
- ROM_LOAD( "95008015.lo", 0x00000, 0x800000, CRC(6553f5b9) SHA1(17ab5162f4fd3fa5a56641f0b1cbc31c0fe1a52c) ) \
- ROM_LOAD( "95008016.lo", 0x00000, 0x800000, CRC(6553f5b9) SHA1(17ab5162f4fd3fa5a56641f0b1cbc31c0fe1a52c) ) \
- /* bad dumps (2nd half of regular roms) */ \
- /* ROM_LOAD( "hot_p.sn1", 0x0000, 0x080000, CRC(c918da0e) SHA1(7eebd41c70be65b1455bafd4087246f41a8b3622) ) */ \
- /* ROM_LOAD( "hot_p.sn2", 0x0000, 0x080000, CRC(31fa3827) SHA1(aa099bfda63d3627cab2b5f12fe0ec7d8600f90e) ) */
-#define sc_ijclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008888.bin", 0x0000, 0x0fc30c, CRC(71ad9f31) SHA1(40d42bbe7e3d38cab48006a4f0d4d25d2b56a647) ) \
- ROM_REGION( 0x5000, "pics", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95891060.bin", 0x0000, 0x5000, CRC(791ebcf2) SHA1(88298c6d1eec718b84e51aae447ffd74493a27f4) )
-#define sc_jack_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008289.bin", 0x0000, 0x0ffb45, CRC(76d2af0f) SHA1(0460ecc4f80cceb6861b8b0ebf59f0e87bf2b38c) ) \
- ROM_LOAD( "jack the kipper sound 1 maz fc64.bin", 0x0000, 0x100000, CRC(f31090f9) SHA1(4e9edfdf6472b4229d4393cb3033134f6b27920b) )
-#define sc_jjunc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008284.bin", 0x0000, 0x100000, CRC(f90feeb8) SHA1(672abc79a88b2237fa584d12b9123a2baeec83b8) )
-#define sc_jjucl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008395.bin", 0x0000, 0x100000, CRC(619865d6) SHA1(9e76267140709ae2ca09ea0866fc0b27b94d26af) )
-#define sc_jiggn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004179", 0x000000, 0x080000, CRC(fd2521e8) SHA1(58027efa8110004fc4d823dc19d4de115a925711) ) \
- ROM_LOAD( "95004180", 0x080000, 0x080000, CRC(7750b004) SHA1(4c6cb7a5c4b69ca1d65b57271798ac17cd06ce61) )
-
-#define sc_jolly_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008254.bin", 0x0000, 0x0f9355, CRC(4742beac) SHA1(2f060a5f54719fdf5aea1077d8d5de6534b41f0c) )
-#define sc_juicy_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008216.bin", 0x000000, 0x100000, CRC(1fcf52e3) SHA1(0e585678cb928e107343ebc64f77434ac6a62555) ) \
- ROM_LOAD( "95008217.bin", 0x100000, 0x100000, CRC(995f77f6) SHA1(ac964bc58490448cd3b5a1ed0c7636c2354c8c7d) )
-
-#define sc_jjf_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004085.lo", 0x000000, 0x080000, CRC(1b1f3455) SHA1(8733193640b907cf0aae3bc474dd4f1766c6e74c) ) \
- ROM_LOAD( "95004086.hi", 0x080000, 0x080000, CRC(5b678da4) SHA1(05c3760b35e77ea70401e47762dcbf0cc779ea3c) )
-#define sc_kalei_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008444.bin", 0x0000, 0x0f8d34, CRC(a6a6c950) SHA1(97b9859a8795a5890156ce68f71b3f67707efdd2) )
-
-#define sc_lasv_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004261.snd", 0x0000, 0x080000, CRC(a2fbd1f1) SHA1(7ae7108235f4b9758282506558054b056d92abed) )
-#define sc_lined_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004241.bin", 0x000000, 0x080000, CRC(e524fd19) SHA1(af0bcf9cf75592beb928f78a915875f3e3ecedac) ) \
- ROM_LOAD( "95004242.bin", 0x080000, 0x080000, CRC(6d86611e) SHA1(2ec6a6745446502a77c10c487b75b59be1fc266e) )
-
-#define sc_ldvcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008897.bin", 0x0000, 0x0ff4f6, CRC(3b459b50) SHA1(ba4aa9bcf42cd95f366fbe51c343680cd3fbcd47) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95891079.bin", 0x0000, 0x5000, CRC(378bb888) SHA1(054cdcad83a3909c8c17852f3848c7a7c4daae31) )
-#define sc4lockb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008223.bin", 0x0000, 0x100000, CRC(1b938782) SHA1(501567017e5097c616b90623b16e503b5ab941fd) )
-#define sc_lkbcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008285.bin", 0x0000, 0x100000, CRC(c6a5033b) SHA1(9c7abea9052f606dd501e359a4fc4b69860c5269) )
-#define sc_lir_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008103.bin", 0x000000, 0x100000, CRC(74ec1e6c) SHA1(1636192a63afcb060ee9453d24d7deb3a6776f51) ) \
- ROM_LOAD( "95008104.bin", 0x100000, 0x100000, CRC(b11bd959) SHA1(1739035495a14fedcbc67b724e7595693425d15f) )
-#define sc_miljo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004305.sn1", 0x000000, 0x080000, CRC(1fffefe8) SHA1(e4dd8ee3ac82c598b50fe49afeddf11bcca96581) ) \
- ROM_LOAD( "95004306.sn2", 0x080000, 0x080000, CRC(afc501d4) SHA1(9a28381a7c1c047d6e7bb70736d2c8308c8911a3) )
-#define sc_milja_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004305.sn1", 0x000000, 0x080000, CRC(1fffefe8) SHA1(e4dd8ee3ac82c598b50fe49afeddf11bcca96581) ) \
- ROM_LOAD( "95004306.sn2", 0x080000, 0x080000, CRC(afc501d4) SHA1(9a28381a7c1c047d6e7bb70736d2c8308c8911a3) )
-
-#define PR1132_MONEY_GO_ROUND_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "snd_mgo.p1", 0x0000, 0x100000, CRC(b2f8dd11) SHA1(2db747a0c422d7dd18972f80ba94570c69564c9b) )
-
-#define PR1132_MONEY_GO_ROUND_SOUNDS11_ALT \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008212.bin", 0x0000, 0x100000, CRC(1d0fffb3) SHA1(da7e10479b1ba9e67af94feaa20702bae687168f) )
-#define sc_mspid_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008278.bin", 0x0000, 0x100000, CRC(8fc20733) SHA1(6ede5578fa11cb3322291958d6e1ef8f6cd99da0) )
-#define sc_msclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008191.bin", 0x0000, 0x100000, CRC(4d392e0c) SHA1(798ba07fdb0bebe5367f58b1e13226827153e0e8) )
-#define sc_mtb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "mtb_snd1.bin", 0x000000, 0x080000, CRC(4abca575) SHA1(8f0e3fd169cbf0876368dac335bf81ab0601c923) ) \
- ROM_LOAD( "mtb_snd2.bin", 0x080000, 0x080000, CRC(034a49dc) SHA1(aac70d867856f13f5948e81ed3ca7f2746edf134) )
-#define sc_mtbcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008009.lo", 0x000000, 0x100000, CRC(b9334137) SHA1(e7481688e18b56bddee4a2eff219f83ac5180082) ) \
- ROM_LOAD( "95008010.hi", 0x100000, 0x100000, CRC(cb197b7e) SHA1(56fb416a98bc2875df11024518babf4a07418a79) )
-
-#define sc_magci_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008480.bin", 0x0000, 0x0c4846, CRC(025a1417) SHA1(6f522e71b4707829c98f77551f7cd4f2910f15b5) )
-#define sc_magic_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008340.bin", 0x0000, 0x0ff5d7, CRC(1371b0d9) SHA1(aa8c23a86cbd5e8274bb035c1132da11d71fd2f8) )
-#define sc_maxim_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008151.bin", 0x0000, 0x184af2, CRC(775d8471) SHA1(d784e25f52e6df18da9eabf93e6b50de5217c374) )
-#define sc_monob_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* both of these are the same, one is just padded */ \
- ROM_LOAD( "95008359.bin", 0x0000, 0x0e89fa, CRC(763e4367) SHA1(c44b70f8336c2d6c00cd0dde9b6ca014667c59a6) ) \
- ROM_LOAD( "monopoly95008359_sound1.bin", 0x0000, 0x100000, CRC(93f005f2) SHA1(d2351982d6352d9793efac617ac9fb9569f229c6) )
-
-#define sc_mou_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008364.bin", 0x0000, 0x0e98ac, CRC(47aae23d) SHA1(0964a4f68c3688ebd65daf317b17e1341fcd3ceb) )
-#define sc_nmtj_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008472.bin", 0x0000, 0x0fe798, CRC(a522157a) SHA1(f1fea963579cb8caddd5fcbfa36e33dc35c6e2a0) )
-#define sc_mclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "cwow sounds", 0x000000, 0x100000, NO_DUMP )
-#define sc_mdlx_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008514.bin", 0x0000, 0x0ed840, CRC(2608cbde) SHA1(4831570fbc825592781e6473173d6ec911a0054d) )
-
-#define sc_mont_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004314.bin", 0x0000, 0x0ccf04, CRC(0faba601) SHA1(1f21e39c2a9a18dd74292e68456c725ec2631aac) ) /* lotech sounds? */
-
-#define sc_nudit_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95404303.bin", 0x000000, 0x080000, CRC(adb71c93) SHA1(e91165b0280da9f79415b1cd7bb2ff8c1ea974fe) ) \
- ROM_LOAD( "95404304.bin", 0x080000, 0x080000, CRC(96190422) SHA1(0e3192d959f1ea4296474684f04847c50a983400) )
-#define sc_pen1_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "pub-en.s1", 0x000000, 0x080000, CRC(7e3f4295) SHA1(b7a2c538d79663a3d21f89311195619158fa7197) ) /* need testing */ \
- ROM_LOAD( "pub-en.s2", 0x080000, 0x080000, CRC(637d3c0f) SHA1(193964efc28e56b05f39099a696dd3e9119b80dd) ) \
- \
- ROM_REGION( 0x400000, "dm01:matrix", 0 ) \
- /* I don't think the SC4 version uses a DMD */ \
- ROM_LOAD( "pbemydot", 0x0000, 0x010000, CRC(b056d3d4) SHA1(6c1dbc6fcb4761c25f9cc8123e9f0fe791488c19) ) /* DMD rom? Possibly SC2 DM01 */
-#define sc_oyf_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008301.bin", 0x0000, 0x100000, CRC(0e042883) SHA1(2e73e5a49bcc525edfddf56e0d4ef5137116eec2) )
-#define sc_opses_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008211.bin", 0x0000, 0x100000, CRC(535fbad0) SHA1(25804a47e20dcfe364f49195da0ab057bce31266) )
-
-
-#define sc_party_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008113.bin", 0x000000, 0x100000, CRC(7e54f87c) SHA1(b64e4da7c088ba2f328d6adcfd0a3824d98a5f31) ) \
- ROM_LOAD( "95008114.bin", 0x100000, 0x100000, CRC(594fef43) SHA1(8549d372ffb0194823afc11992d8a16f6caed2ff) )
-#define sc_paytm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004224.sn1", 0x000000, 0x080000, CRC(74382d29) SHA1(bd0323b7208e9b03e2d8468f7d4603fb4a3fe394) ) \
- ROM_LOAD( "95004225.sn2", 0x080000, 0x080000, CRC(23efa88d) SHA1(af52ec3dcb45a2ea26eaa273c783134402105168) )
-#define SC4_95004316_CAS_PHAR_GOLD_PR1261 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004316.snd", 0x000000, 0x080000, CRC(94a9ec9c) SHA1(bab1a431e2857b9db9fa3f3ef28f150e19c4ae50) ) /* casino */
-#define sc_pgold_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008141.bin", 0x000000, 0x100000, CRC(e1b214dc) SHA1(811f6ec42961496f8cd9fb3434ab6a07457ca61a) ) \
- ROM_LOAD( "95008142.bin", 0x100000, 0x100000, CRC(faa84d52) SHA1(f5139df5e9ff95fab3c01ac2b1aa44b1d939bf7a) )
-#define sc_polic_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008327.bin", 0x0000, 0x0d24fe, CRC(767251af) SHA1(9cc9f4f2c6f6762a1929b845521549256e9b9f4f) )
-#define sc_potsh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008431.bin", 0x0000, 0x0ffeaf, CRC(400843fd) SHA1(35a0195b120e61c40e8f5e193b44f9fcb5b7d99d) )
-
-#define sc_pwrsg_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008257.bin", 0x0000, 0x0dc608, CRC(ac648ab0) SHA1(58c919be129388ca9c34cad177520175ef08cfaa) )
-
-#define sc_pir_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008264.bin", 0x0000, 0x100000, CRC(c3301cf1) SHA1(59e3c5c8ab7be1901800d493fe98e72dd24c181c) )
-#define sc_ppclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008934.bin", 0x000000, 0x100000, CRC(87290522) SHA1(27deddd66b0ac9a0f4fe526f0eda7f6b2e73a8b6) ) \
- ROM_LOAD( "95008935.bin", 0x100000, 0x100000, CRC(7517053c) SHA1(d83019c52b8c78539359e9277864717c76fae0ce) )
-#define sc_pipe_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "pipingsnd.bin", 0x0000, 0x0c50d9, CRC(ff240faa) SHA1(f0961b3207c0c8779479c773d1453ac4ff376bd2) )
-#define sc_plumb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008430.bin", 0x0000, 0x0c690f, CRC(29059625) SHA1(4e46f794726b778e03f67ab3ec3cd4cb71be0b64) )
-
-
-#define sc_qmodo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "97000080.bin", 0x0000, 0x0ea2e7, CRC(060bf37a) SHA1(732fa84ed0145f931557e3fef66276370dde6884) )
-#define sc_quidr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008269.bin", 0x0000, 0x0e5ee2, CRC(b61e664a) SHA1(9ee423015b5532cc4c06ddb76846800fa325074c) )
-
-
-#define sc_redad_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004266.snd", 0x0000, 0x080000, CRC(457fffbf) SHA1(ede2adc836ba4904cdf3d1ed825f9128c27b2b58) )
-#define sc_redal_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004266.snd", 0x0000, 0x080000, CRC(457fffbf) SHA1(ede2adc836ba4904cdf3d1ed825f9128c27b2b58) )
-#define sc_rio_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004309.snd", 0x0000, 0x080000, CRC(60eb25fc) SHA1(66f3ac8bc1be99eda07c71f63ebc818014ef7800) )
-#define sc_rvlnx_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004320.snd", 0x0000, 0x080000, CRC(b20c0557) SHA1(f61df4a80751571caf4d44add753b5477c13b7f0) )
-#define sc_rvl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004259.sn1", 0x000000, 0x080000, CRC(c26ed994) SHA1(da336ab76c1c148906c734d7239b2b83a05ec083) ) \
- ROM_LOAD( "95004260.sn2", 0x080000, 0x080000, CRC(1a32d1bd) SHA1(e88ba7b8b353ea168a689e1d2be8c753a56f8f1d) )
-#define sc_rogds_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008256.bin", 0x0000, 0x0fafa4, CRC(6d70436f) SHA1(adf7d18d9fcbb216ee461183951c1ab2972b8ef7) )
-
-#define sc_royle_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008207.bin", 0x000000, 0x100000, CRC(269f845f) SHA1(eaddeaebdafd3f237b6af5c3539da407a6782210) ) \
- ROM_LOAD( "95008208.bin", 0x100000, 0x100000, CRC(07d4d9fa) SHA1(841fead29de19da0436f937614de50e1f07ebc8b) )
-#define sc_rbank_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008233.bin", 0x000000, 0x100000, CRC(ebdb6017) SHA1(ca723483f6a7ae6512fa4abc4437c1f8eb606784) ) \
- ROM_LOAD( "95008234.bin", 0x100000, 0x100000, CRC(4b7ac02a) SHA1(29c51906e5ca1e0c9c70db86e3a24f08be06b7e0) )
-#define sc_pstat_others \
- ROM_REGION( 0x100000, "ymz", 0 ) \
- ROM_LOAD( "95008294", 0x0000, 0x100000, CRC(0d87f9af) SHA1(7b00cbe3ba69f646fd692bfd6f002bd37801325e) )
-#define sc_po8_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008416.bin", 0x0000, 0x0fe66d, CRC(9ae69b6a) SHA1(7bb94d7c941c64c1ea53e391b3f66a6e1b483417) )
-#define sc_sidsp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008369.bin", 0x0000, 0x100000, CRC(76ea0074) SHA1(6cc4f320d8e331477569dfc7e961afd30a4ce7b2) )
-
-#define sc_sbust_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008255.bin", 0x0000, 0x0d55db, CRC(feef5ac9) SHA1(83b7de3bd3a1fa3f5ae17f102cc54467d564740f) )
-#define sc_strbr_others \
- ROM_REGION( 0x400000, "unk", ROMREGION_ERASE00 ) \
- /* this looks encrypted, or like samples.. I don't think it belongs here, check */ \
- ROM_LOAD16_BYTE( "sbar713.bin", 0x0000, 0x010000, CRC(c7e26d6e) SHA1(1e270d4f5de92083f54cc3fe246b2bc1d2f441b3) ) \
- ROM_LOAD16_BYTE( "sbar714.bin", 0x0000, 0x010000, CRC(57dbca5f) SHA1(22a6fcf1e11dd9ba2b3f73cd7520e2b4a740a893) ) \
- ROM_LOAD16_BYTE( "sbar715.bin", 0x0000, 0x010000, CRC(e9192085) SHA1(a030e81f54338bcb8667c59bad9a6b35a41bbd9f) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004290.snd", 0x0000, 0x080000, CRC(488972c2) SHA1(4cd9bbb6df0fbaf9b8dd93294046c71c82bf4b5b) )
-#define sc_strx_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008247.bin", 0x0000, 0x100000, CRC(0817596f) SHA1(250db171d1f7893883ffbcfdd3fd3f6e62524bdc) )
-#define sc_s6c_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004095.p1", 0x000000, 0x080000, CRC(d9d7b876) SHA1(fdd9b5f07665b7b7edd198e00d3b005b32d1609c) ) \
- ROM_LOAD( "95004096.p1", 0x080000, 0x080000, CRC(fb8e103f) SHA1(fd8e2c8ae1e459f7426aa6b5de20f91dfae7bec9) )
-
-
-#define sc_slc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008412.bin", 0x0000, 0x100000, CRC(197edb63) SHA1(f1851029f6870d41d6aaf2df0a49fc54f5c79e4c) )
-#define sc_sstep_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "97000120.bin", 0x0000, 0x080000, CRC(d887ca0a) SHA1(b1fd4633ca47fe1d99c9938af48768cd0cf451c6) )
-#define sc_solgl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008159.bin", 0x000000, 0x100000, CRC(e6ad55e4) SHA1(4bea205a9e6e2832cd06d0d5c96599f2a83f8fec) ) \
- ROM_LOAD( "95008160.bin", 0x100000, 0x100000, CRC(d52329ca) SHA1(e0feebe0d0ec13cd15cf4af1023246a1a3a9adc7) )
-
-#define sc_spark_others \
- ROM_REGION( 0x200000, "ymz", 0 ) \
- ROM_LOAD( "95008031.bin", 0x000000, 0x100000, CRC(445d3cf7) SHA1(ded74e46b4fb4ef405eb74027a63d301efce1f45) ) \
- ROM_LOAD( "95008032.bin", 0x100000, 0x0fd082, CRC(88781139) SHA1(e8e972032664c314f5263d7acb5a3f0769c7fb2a) )
-#define sc_stirc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008117.bin", 0x0000, 0x197791, CRC(9d555ddf) SHA1(753b838fa7f64317b64fe0ae0ee7e6484f2a5af3) )
-#define sc_suscl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008865.bin", 0x0000, 0x0f4505, CRC(8e375291) SHA1(d7563adf330023f4fe47c11eb9ef77d593c3eaab) ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890751.bin", 0x0000, 0x5000, CRC(57c944b0) SHA1(5f9aadffda6e83780e89c64315c8289a7d364ef6) ) /* does this belong with an sc5 set? */
-#define sc_strk_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008492.bin", 0x0000, 0x0fa055, CRC(4f37c766) SHA1(352dc95bb1f0fe31db233ac731618acb3046681e) )
-#define sc_taekw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008283.bin", 0x0000, 0x0fd772, CRC(59a3924c) SHA1(ceba9236db0b26eb79feabc9564eb6dec10c4ab9) )
-#define sc_taknt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008273.bin", 0x0000, 0x100000, CRC(c8695859) SHA1(5998d1f3467e522d4fa5ad6cf75b86ae1760fdd6) )
-#define sc_takcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008314.bin", 0x0000, 0x100000, CRC(64d2a26a) SHA1(f01944363e77bf33b44a06224e44828b065fdee4) )
-#define sc_tbana_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008229.bin", 0x0000, 0x100000, CRC(003f9c3d) SHA1(38ea111096e84e77e727fb784992b525767f5b0c) )
-#define sc_ticlb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004082.p1", 0x000000, 0x080000, CRC(b7caba0f) SHA1(777afdb6a2f78edad5f4df506eb4cd571f9f357b) ) \
- ROM_LOAD( "95004083.p2", 0x080000, 0x080000, CRC(c0cc21b7) SHA1(d0b22db4c1faeef34b794ac4c31bc9fd386493ea) )
-#define sc_ticlb_matrix \
- ROM_REGION( 0x400000, "dm01:matrix", 0 ) \
- ROM_LOAD( "club-treasure-island_mtx_ass.bin", 0x0000, 0x010000, CRC(74f97b29) SHA1(9334bf1e4b4e2bcbbfaa5ae32201ceaab0641d83) ) /* DMD */
-#define sc_tri7_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1328 TRIPLE 7S SOUNDS11 */ \
- ROM_LOAD( "95008308.bin", 0x0000, 0x100000, CRC(87a25bc3) SHA1(bf3d6b86f8f217131c33b681787f4a6fe84b8b8d) )
-
-
-
-#define sc_tic2_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* TTTWO SOUNDS */ \
- ROM_LOAD( "95004231_1.bin", 0x000000, 0x080000, CRC(af1512be) SHA1(4196820fa06b5e09f7108894ca89fc43e4ac3da5) ) \
- ROM_LOAD( "95004232_2.bin", 0x080000, 0x080000, CRC(bddddec8) SHA1(3dd7dab9ad3e4475cd10c675bbc5a5fd28cf953e) )
-#define sc_tgear_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* GEARS SOUNDS */ \
- ROM_LOAD( "95008063.1", 0x000000, 0x100000, CRC(f87314dc) SHA1(00528243bd58e50ab24dde879f352feec2721019) ) \
- ROM_LOAD( "95008063.2", 0x100000, 0x100000, CRC(5d25d9e8) SHA1(a7f1abcf4bdb5ced2b414d43a13568d13ac334de) )
-#define sc_tload_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* LOAD SOUNDS */ \
- ROM_LOAD( "95008362.bin", 0x0000, 0x100000, CRC(fb14b937) SHA1(c8cbdda6184cc3d5b837a3cda105a39cf745bd4d) )
-#define sc_trist_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* STR3 SOUNDS */ \
- ROM_LOAD( "95008499.bin", 0x0000, 0x0efbd7, CRC(90710d1f) SHA1(923f6396941b713d3f55bb002c36b0e42063ae4d) )
-#define sc_ttomb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1305 TRES TOMB SOUNDS11 */ \
- ROM_LOAD( "95008287.bin", 0x0000, 0x100000, CRC(9a3f47f9) SHA1(5844f3be0fe4febe04d924afc00f2f55273c15f1) )
-#define sc_tridn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* TRID SOUNDS */ \
- ROM_LOAD( "95008335.bin", 0x0000, 0x0fd5ab, CRC(f0fed8d5) SHA1(dd974c70adfb9a5fb37a069eb736d5ef23b43ddf) )
-#define sc_tub_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1103 TUBULAR BELLS SOUNDS11 */ \
- ROM_LOAD( "95008164.bin", 0x0000, 0x100000, CRC(37fb6004) SHA1(d171223dd4a4162bfb1e63e4af26ea012a2de5ea) )
-#define sc_twilt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* 95004299 TWILIGHT PR1154 */ \
- ROM_LOAD( "95004299.snd", 0x0000, 0x080000, CRC(f4837e10) SHA1(78c4455b1585ca60ed15734dac517f5f1ef4d237) )
-
-
-#define sc_valnv_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* 7025 VER1 SOUNDS */ \
- ROM_LOAD( "sound1.bin", 0x000000, 0x080000, CRC(cedee498) SHA1(311ab99746cff8f72ec8ffb9ac386a713fc300dd) ) \
- ROM_LOAD( "sound2.bin", 0x080000, 0x080000, CRC(0994b7bb) SHA1(ad79998467fee8fd95c944ea6a33450fcf6d3d56) )
-#define sc_valqp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR2040 SOUNDS V1 */ \
- ROM_LOAD( "95004296.sn1", 0x000000, 0x080000, CRC(aecc8138) SHA1(64fd18666c2c753899bff971227b9358c2bf22f1) ) \
- ROM_LOAD( "95004297.sn2", 0x080000, 0x080000, CRC(2c8b698b) SHA1(7b8dd1f2215579b5ad69a2a1f11bfcd04e3d07f9) )
-
-
-#define sc_wernr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR7027 SOUNDS V11 */ \
- ROM_LOAD( "gw_snd_1.8mb", 0x000000, 0x100000, CRC(990a3471) SHA1(356120558681440cac8252223c31fb9eca2572db) ) \
- ROM_LOAD( "gw_snd_2.8mb", 0x100000, 0x100000, CRC(468431e6) SHA1(90e8dd52b1ce752672b0a02d3cb7715cfa3fb49d) )
-#define sc_waw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* WILD SOUNDS */ \
- ROM_LOAD( "95004292.bin", 0x0000, 0x17ba49, CRC(a5a03ead) SHA1(f1319d0e254b980262e3d404410e6ddbf18057b6) ) \
- \
- /* this is just 0x80000 - 0xfffff of the above */ \
- /* ROM_REGION( 0x400000, "altymz", ROMREGION_ERASE00 ) */ \
- /* ROM_LOAD( "wetsnd1", 0x0000, 0x080000, BAD_DUMP CRC(5fb985b3) SHA1(19f85535b5082546a6098a751a2e2244ed4373ec) ) */
-
-#define sc_winsp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* WINNINGSPINSND */ \
- ROM_LOAD( "95008504.bin", 0x0000, 0x0bd369, CRC(c27f88ca) SHA1(bfc34cc433b68dc6377af7ee464cbdb74a6e0e8d) )
-
-#define sc_wspin_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* WINSPINNERSND */ \
- ROM_LOAD( "95008516.bin", 0x0000, 0x0c35e4, CRC(b8deeea9) SHA1(5bc5f96e5f1b994448d90f05eea2e1c01e17ab66) )
-#define sc_wwys_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1301 WIN W Y S SOUNDS11 */ \
- ROM_LOAD( "95008277.bin", 0x0000, 0x100000, CRC(19051eb6) SHA1(accc9b452dd80e6ca40e79dcc7d4fc6d4f234243) )
-#define sc_winxp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* 95004265 WINXPLOSION PR1053 */ \
- ROM_LOAD( "95004265.snd", 0x0000, 0x080000, CRC(1e3e761d) SHA1(81c1e1af72836b25a053cf62c52341a0f8837e3e) )
-#define sc_wondw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1314 WONDERWH SOUNDS11 */ \
- ROM_LOAD( "95008330.bin", 0x0000, 0x100000, CRC(15e80096) SHA1(da02a8afc83400fdf1ead9dad8a461eb9e911586) )
-#define sc_xmark_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1116 X MARKS T S SOUNDS11 */ \
- ROM_LOAD( "95008263.bin", 0x0000, 0x100000, CRC(43507f43) SHA1(a5eb9e142847a338bf18f4b26da7fe5a2807a027) )
-#define sc_xcash_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* 95004321 XTRACASH PR1264 */ \
- ROM_LOAD( "95004321.snd", 0x0000, 0x080000, CRC(97682381) SHA1(b1ef910e7b2e3574576fb6583a088c3de61e6019) )
-
-
-
-
-#define sc_clbtm_matrix \
- ROM_REGION( 0x400000, "dm01:matrix", ROMREGION_ERASE00 ) \
- ROM_LOAD( "clubtempdot.bin", 0x0000, 0x010000, CRC(283d2d9c) SHA1(5b76a13ad674f8a40c270e5dbc61dac04d411d02) ) /* DM01 */ \
- ROM_REGION( 0x400000, "matrixhex", ROMREGION_ERASE00 ) /* can probably be removed, need to verify it matches first tho */ \
- ROM_LOAD( "club-temptation_mtx,ihex,ss.hex", 0x0000, 0x01d0da, CRC(08ebee96) SHA1(2e87d734c966abab1d4a59c9481ebea161f77286) )
-
-#define sc_dcrls_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* DCRZYSND */ \
- ROM_LOAD( "95008482.bin", 0x0000, 0x04c048, CRC(e0b13788) SHA1(e364ccedd31e1fe0560312a28ad6d5cfaac5bfaa) )
-#define sc_gcclb_others \
- ROM_REGION( 0x400000, "altymz", ROMREGION_ERASE00 ) \
- /* original files */ \
- /* ROM_LOAD( "95004252.bin", 0x0000, 0x134084, CRC(b05844f8) SHA1(e2a2f3ad69cc9a66ca703e9e07ac008300d4139d) ) */ \
- /* ROM_LOAD( "95004253.bin", 0x0000, 0x134084, CRC(a546da40) SHA1(fead6e4f8dab919f65c48cf04100a7742432b1f4) ) */ \
- /* converted to binary from intel hex */ \
- /* GRAND`CASINO`SOUND */ \
- ROM_LOAD( "95004252.bin", 0x000000, 0x080000, BAD_DUMP CRC(2b5e88d5) SHA1(2ec98e569a185d0ce72bc09aedabbcaa1d4a7c9c) ) /* 'fixed bits' */ \
- ROM_LOAD( "95004253.bin", 0x080000, 0x080000, CRC(dcea501a) SHA1(c1fdcaa3f0a6143d26389d3f614af63cc48a2e58) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* However the game we have wants the Grand Slam sounds? */ \
- ROM_LOAD( "95004169.bin", 0x000000, 0x080000, CRC(d2293b2f) SHA1(e3eed38a15885c5a6d63fc79d95f77c5225e9168) ) \
- ROM_LOAD( "95004170.bin", 0x080000, 0x080000, CRC(1da0db8f) SHA1(b3c37b5e02efe7267556d8603c362298ed55bb88) )
-/* both 'On The Up' and 'Hyperactive' look for 'HYPE SOUNDS', do they both use this rom? */
-#define sc_onup_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* HYPE SOUNDS */ \
- ROM_LOAD( "95008298.bin", 0x0000, 0x100000, CRC(6dcdcbfa) SHA1(1742f54ddd74d7513e8efb8cecfff574263c65df) )
-#define sc_phgcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1623 CLASS PHAR GOLD SOUNDS11 */ \
- ROM_LOAD( "95008475.bin", 0x0000, 0x100000, CRC(30f77b7e) SHA1(bbb16020f33c8440344670beec8b13dd554be858) )
-#define sc_clbmn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR1955 C M MONEYBAGS SOUNDS11 */ \
- ROM_LOAD( "95008666.bin", 0x000000, 0x100000, CRC(6dcb4a96) SHA1(844dc67bacb7136a3c0f897a69ac5bcacaa4968a) ) \
- ROM_LOAD( "95008667.bin", 0x100000, 0x100000, CRC(5243784c) SHA1(771248de9fa3446ad6fe1bd35b240ad6ae23f008) )
-#define sc_mopl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR3408 MPOLY PROP LAD SOUNDS11 */ \
- ROM_LOAD( "95009160.bin", 0x000000, 0x100000, CRC(797bf91a) SHA1(e467a07b512bf753e212665367fcca481e27da54) ) \
- ROM_LOAD( "95009161.bin", 0x100000, 0x100000, CRC(5ea75d9c) SHA1(eb6d96b8a5af879b3eff5b5d501ed81e46b1e1af) )
-#define MAZOOMA_POWERBALL_SOUNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* POWERBALL SOUNDS */ \
- ROM_LOAD( "95004218", 0x000000, 0x080000, CRC(4e90206c) SHA1(475fe57a4f08b17acaf63f0863a705fd70b910db) ) \
- ROM_LOAD( "95004219", 0x080000, 0x080000, CRC(f7e344a2) SHA1(7f2411373fdd49d7ef3c6990fb3cc1fe93ca3348) )
-
-
-/* missing ROMs below */
-
-#define sc_bkngx_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890139.bin", 0x0000, 0x5000, CRC(03d69c54) SHA1(9e1e79378874092a19eb31af8d8b5b2422364086) ) \
- ROM_LOAD( "95890140.bin", 0x0000, 0x5000, CRC(1f006ce8) SHA1(4ce346e7b72546d5d6d9137a5fa6c449c6da292d) ) \
- ROM_LOAD( "95890141.bin", 0x0000, 0x5000, CRC(dc5a4e78) SHA1(31aefb5dcf67eafdd9fc83e086fc00e678f0093a) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_bob_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890312.bin", 0x0000, 0x5000, CRC(9dfc2404) SHA1(c35f4197c0e0cd45b35f70cce166497de385b212) ) \
- ROM_LOAD( "95890313.bin", 0x0000, 0x5000, CRC(e86a6030) SHA1(c7fd1ae68aa60c448a31eb9d4103aa0a8c1892d0) ) \
- ROM_LOAD( "95890314.bin", 0x0000, 0x5000, CRC(76d0ac6c) SHA1(83d150737f942abf19a480b06dc09e1063bb0e64) )
-#define sc_clue_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "clue sounds", 0x0000, 0x100000, NO_DUMP ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890356.bin", 0x0000, 0x5000, CRC(fd78e03f) SHA1(029e2fd7e9cff3793d905d192c889873ad2a0d26) ) \
- ROM_LOAD( "95890357.bin", 0x0000, 0x5000, CRC(88eea40b) SHA1(5a730add3f9941dfcbfa5cd8f6a6142d19065482) ) \
- ROM_LOAD( "95890358.bin", 0x0000, 0x5000, CRC(16546857) SHA1(d8b81b3df5e041c83c4f359c487165a6a2d5c513) )
-#define sc_ducks_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890347.bin", 0x0000, 0x5000, CRC(9faa9c11) SHA1(5e2add80ad17a27dd7b5b0a298ea6753b6adca11) ) \
- ROM_LOAD( "95890348.bin", 0x0000, 0x5000, CRC(ea3cd825) SHA1(0ecef82b32b0166ef5f8deecd7a85fd52fc66bf8) ) \
- ROM_LOAD( "95890349.bin", 0x0000, 0x5000, CRC(74861479) SHA1(7ba29931336985b96995688afdfe2b83a7602a84) )
-#define sc_pp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "pink sounds", 0x0000, 0x100000, NO_DUMP ) \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890380.bin", 0x0000, 0x5000, CRC(1ba73039) SHA1(6f07fa6f412e92c5a55be15f8cce7aa6f5e8dca0) ) \
- ROM_LOAD( "95890381.bin", 0x0000, 0x5000, CRC(0771c085) SHA1(5eb89b14c03cac0f56d057dc2c0c7210cc9443ea) ) \
- ROM_LOAD( "95890382.bin", 0x0000, 0x5000, CRC(c42be215) SHA1(4da4820ee08a102a2a49ce64a49f66c9548b8ab1) ) \
- ROM_LOAD( "95890398.bin", 0x0000, 0x5000, CRC(007c15b3) SHA1(8330f7e8d2dc062118016d8f003df48930a5aeb8) ) \
- ROM_LOAD( "95890399.bin", 0x0000, 0x5000, CRC(1caae50f) SHA1(1e978f7f4851384cd800ebecd9beeff1a5df8156) ) \
- ROM_LOAD( "95890400.bin", 0x0000, 0x5000, CRC(dff0c79f) SHA1(aae28c245a672417962cd19388e4d5c401708911) )
-
-#define sc_gcb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_hdd_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_hyde_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_jiggr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_jive_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_jbuck_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_jjc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_kkong_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_knok_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_mbags_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_m2m_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_maxcc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_monod_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_mwwcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_motor_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_outlw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_pwrbq_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_pwcrz_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_ibiza_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-
-#define sc_quart_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc5tbox_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_rmo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define PR1918_POTS_OF_GOLD_SOUNDS11 \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "pr1918 pots of gold sounds11", 0x000000, 0x100000, NO_DUMP )
-#define sc_rtclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_sf_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_vmnv_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95008095_viva_mexico_pr6984", 0x000000, 0x100000, NO_DUMP )
-#define sc_abra_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "abra.snd", 0x0000, 0x100000, NO_DUMP )
-#define sc_broll_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "rol sounds", 0x0000, 0x100000, NO_DUMP )
-#define sc_cashm_german_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "cash german sounds", 0x000000, 0x100000, NO_DUMP )
-#define sc_frboo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_supst_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_ufi_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_wadzl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_wag_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_wldbn_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_wthng_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_wthnm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_wtc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc4s16_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_bgold_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_cconx_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "mtom sounds", 0x000000, 0x100000, NO_DUMP )
-#define sc_ccrus_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "cash sounds", 0x000000, 0x100000, NO_DUMP )
-#define sc_cerup_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "cash erruption sounds", 0x000000, 0x100000, NO_DUMP )
-#define sc_cexpl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "cash explosion sounds", 0x000000, 0x100000, NO_DUMP )
-#define sc_chand_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "pr7108 cash in hand sounds11", 0x000000, 0x100000, NO_DUMP )
-#define sc_crzwl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "crazy world sounds", 0x0000, 0x100000, NO_DUMP )
-#define sc_cinv_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "pr6809 cashinvaders sounds", 0x0000, 0x100000, NO_DUMP )
-#define sc_crsgc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_crcpt_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_dracp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_dndpc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_fdice_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_gx3_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_glad_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_hotdg_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_monl_sounds \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "monl sounds", 0x0000, 0x100000, NO_DUMP )
-#define sc_nunsb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_pwrpl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_rssh_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_r2r_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_rollo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_r66_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_sfts_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_srace_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_s2k_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_splgb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_spred_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_swywm_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_sumit_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "sumit sounds", 0x0000, 0x100000, NO_DUMP )
-#define sc_tsmp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_tpsht_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc5pompa_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_viper_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* 95008474.bin = 95008910.bin sc4hiss Hissing Quid (Qps) (Scorpion 4) */
-#define sc_srrcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_mrrcl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_ggcas_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_gnc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_adga_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_adgtc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_adren_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_bigdl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "bigdealsnd", 0x0000, 0x100000, NO_DUMP )
-#define sc_bingb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_blue_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "brinse sounds", 0x0000, 0x100000, NO_DUMP )
-#define sc_cbrun_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_brix_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "brix sounds", 0x0000, 0x100000, NO_DUMP )
-#define sc_bugs_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "pr7109 bugs money sounds11", 0x0000, 0x100000, NO_DUMP )
-#define sc_btiab_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_btrip_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define COROST_TRIPLE_SOUNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "corost_triple_sounds", 0x0000, 0x100000, NO_DUMP )
-
-#define sc_clucl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "clucl sounds", 0x000000, 0x100000, NO_DUMP )
-
-#define sc_mombc_others \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890597.bin", 0x0000, 0x5000, CRC(0d24f414) SHA1(85912d9e07995ffd6682d1ef65e4d71090b6584f) ) \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-
-#define sc_revo_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "rev sounds", 0x0000, 0x100000, NO_DUMP )
-#define sc_wild_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- \
- ROM_REGION( 0x5000, "pics", 0 ) \
- ROM_LOAD( "95890339.bin", 0x0000, 0x5000, CRC(e3fbc85c) SHA1(8fc235f53b9359d378f86819e04377e7c102428c) ) \
- ROM_LOAD( "95890340.bin", 0x0000, 0x5000, CRC(ff2d38e0) SHA1(3b62d6c6448312f999502c244d483df8a60be77a) ) \
- ROM_LOAD( "95890341.bin", 0x0000, 0x5000, CRC(3c771a70) SHA1(bf47ecdea05757d9636526308f4aeabe3748d307) )
-
-#define sc_fbcrz_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_sdr_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-#define sc_wdw_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 )
-/* only the parent set wants 'WILD SOUNDS' but not the same as Wet N Wild */
-#define sc_nudit_wild_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "wild sounds", 0x000000, 0x080000, NO_DUMP )
-
-/* confirmed bad / incomplete dumps */
-
-#define sc_slih_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* missing first half of ROM, has sample table at the end with 'SLIH SOUNDS' */ \
- ROM_LOAD( "s_l_i_ho.snd", 0x0000, 0x080000, BAD_DUMP CRC(13abf434) SHA1(99d7a323c03448827d16bcfb4358c09ab691b500) )
-// missing first half of both roms
-#define sc_stl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR6905 SKYS SOUNDS11 */ \
- ROM_LOAD( "sk_t_lim.sn1", 0x000000, 0x080000, BAD_DUMP CRC(1b88bf7d) SHA1(76a8453fd2f8375030f69a3a569b45daceb3e4f7) ) \
- ROM_LOAD( "sk_t_lim.sn2", 0x080000, 0x080000, BAD_DUMP CRC(b3ecf658) SHA1(bf4ce85a3662df6dacfa42e3b4f9dfd6bba43b24) )
-#define sc_stag_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR6915 STAG SOUNDS11 */ \
- ROM_LOAD( "95008017.lo", 0x000000, 0x100000, BAD_DUMP CRC(dab74220) SHA1(321f765e1908b65ec9d3e64bb33533d78c9cc58a) ) /* start of rom is blank?! */ \
- ROM_LOAD( "95008018.hi", 0x100000, 0x100000, CRC(ba328f08) SHA1(99880f22c2cac61b32c3e2a574b9b30daefefb3e) )
-#define sc_tfclb_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR6938 TUTTI FRUTTI SOUNDS11 */ \
- ROM_LOAD( "95008043.bin", 0x000000, 0x100000, BAD_DUMP CRC(b168cec4) SHA1(42b891ba918c7063420688c99dc72609801a1987) ) /* start of rom is blank?! */ \
- ROM_LOAD( "95008044.bin", 0x100000, 0x100000, CRC(6074fa77) SHA1(1d4fa88a7ba2b020042ef3681e0f8eb732705d55) )
-#define sc_crzcs_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR6906 CRCS SOUNDS11 */ \
- ROM_LOAD( "95008005.lo", 0x00000, 0x100000, BAD_DUMP CRC(0b10db9f) SHA1(e0ea7b4f2dd98ef23ab42ffe7a7892e5327f646e) ) /* start of rom is blank?! */ \
- ROM_LOAD( "95008006.hi", 0x100000, 0x100000, CRC(be2cdfd5) SHA1(87e25d6e26052dca8d79fbda705b2df1c06e2c67) )
-
-// I don't think there is a good / complete set of sound roms in here, all the sets we have reject any configuration of this
-// and the dumps are a mess - we the header says sound table is at 0x001E33FB which would put it in the final (4th) 512kb block,
-// however we only have 3 valid blocks of sound data
-#define sc_clbtm_others \
- ROM_REGION( 0x1000000, "others2", ROMREGION_ERASE00 ) \
- /* first 512kb of this = first 512kb of 95008055.bin, rest is garbage? */ \
- ROM_LOAD( "95008055.p1", 0x00000, 0x80000, BAD_DUMP CRC(ef474fd3) SHA1(e7427184683603b57a3a8b37452fa6ec7a41e34c) ) \
- ROM_IGNORE(0x780000) \
- \
- ROM_REGION( 0x1000000, "ymz", ROMREGION_ERASE00 ) \
- /* both halves of this valid sound data? */ \
- ROM_LOAD( "95008055.bin", 0x0000, 0x100000, CRC(df9ae6e3) SHA1(5766cb1749aa92c34a76270a641f7a9302cc44d7) ) \
- /* first 512kb of this = unique sound data? rest is garbage? */ \
- ROM_LOAD( "95008056.p2", 0x100000, 0x800000, BAD_DUMP CRC(39b1b566) SHA1(937ec27964124b92b75d4b37d09a35585baa68c6) )
-
-// header lists sound table as being at 0x001FEDBF indicating this should be 2 * 0x100000 roms?
-#define sc_alad_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* CAVE SOUNDS */ \
- ROM_LOAD( "95008075.bin", 0x0000, 0x080000, BAD_DUMP CRC(c9306583) SHA1(8bccb9529e7d24be7b4f3ffda0d35780a170be43) )
-/* header says sound table is at 0x0FF65F so we're either missing a ROM or this is half size */
-#define sc_ufg_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004167.bin", 0x0000, 0x080000, BAD_DUMP CRC(9dcd31cc) SHA1(2ce9e167debbc2315b4be964116fdc35e19b6046) )
-/* header says sound table is at 0x0FE876 so we're either missing a ROM or this is half size */
-#define sc_ttp_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004148.bin", 0x0000, 0x080000, BAD_DUMP CRC(6b352d5b) SHA1(b32f08828aad1c8cf0281faa387c9a1536fbd382) )
-/* header says sound table is at 0x0FE7A6 so we're either missing a ROM or this is half size */
-#define sc_lions_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- ROM_LOAD( "95004142.bin", 0x0000, 0x080000, BAD_DUMP CRC(aee399f7) SHA1(54c9683f2f3159122ef35855fe19380f1a2771ca) )
-/* header says sound table is at 0x1F7D58 so we're either missing a ROM or this is half size */
-#define sc_cyccl_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* CLCC SOUNDS */ \
- ROM_LOAD( "95008310.bin", 0x0000, 0x100000, BAD_DUMP CRC(4dddf82d) SHA1(4bab8cdc5f6bf59c3686dfd01f2f96858f776df3) )
-/* header says sound table is at 0x1E8460 so we're either missing a ROM or this is half size */
-#define sc_cyc_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) /* PR2058 COUNT Y CASH SOUNDS11 */ \
- ROM_LOAD( "95008249.bin", 0x0000, 0x100000, BAD_DUMP CRC(e8eac90a) SHA1(f79dc6912a8fbeb12c577c402d84ef4780bf4333) )
-
-/* wrong hardware below */
-
-#define QPS_GOLDENPALCE_SOUNDS \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* Golden Palace (QPS) No Header? looks like a UPD rom instead */ \
- ROM_LOAD( "61000120.bin", 0x0000, 0x080000, CRC(a2cdc045) SHA1(5f2534683f2399e2fe0e8686be0f2e42e1b04a74) )
-#define sc_casry_others \
- ROM_REGION( 0x400000, "ymz", ROMREGION_ERASE00 ) \
- /* not for either of these games? */ \
- ROM_LOAD( "casroysnd.bin", 0x00000, 0x80000, CRC(cf1d4b59) SHA1(1b2bc74c6fcc43197a6f295bc34554da01f7b517) )
-
-#endif // MAME_INCLUDES_BFP_SC4_H
diff --git a/src/mame/includes/bfm_sc5.h b/src/mame/includes/bfm_sc5.h
deleted file mode 100644
index 2f461a33fcd..00000000000
--- a/src/mame/includes/bfm_sc5.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_BFM_SC5_H
-#define MAME_INCLUDES_BFM_SC5_H
-
-#pragma once
-
-#include "includes/bfm_sc4.h"
-#include "cpu/m68000/m68000.h"
-
-class bfm_sc5_state : public bfm_sc45_state
-{
-public:
- bfm_sc5_state(const machine_config &mconfig, device_type type, const char *tag)
- : bfm_sc45_state(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- { }
-
- void init_sc5();
-
- void bfm_sc5(machine_config &config);
-
-protected:
- void sc5_map(address_map &map);
-
- required_device<m68000_base_device> m_maincpu;
-
- uint8_t sc5_10202F0_r(offs_t offset);
- void sc5_10202F0_w(offs_t offset, uint8_t data);
- void sc5_duart_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint8_t sc5_mux1_r(offs_t offset);
- void sc5_mux1_w(offs_t offset, uint8_t data);
- void sc5_mux2_w(offs_t offset, uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(bfm_sc5_duart_irq_handler);
- DECLARE_WRITE_LINE_MEMBER(bfm_sc5_duart_txa);
- uint8_t bfm_sc5_duart_input_r();
- void bfm_sc5_duart_output_w(uint8_t data);
-};
-
-INPUT_PORTS_EXTERN( bfm_sc5 );
-
-#endif // MAME_INCLUDES_BFM_SC5_H
diff --git a/src/mame/includes/bigevglf.h b/src/mame/includes/bigevglf.h
deleted file mode 100644
index 727d2a51e1a..00000000000
--- a/src/mame/includes/bigevglf.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Jarek Burczynski, Tomasz Slanina
-#include "sound/msm5232.h"
-#include "machine/gen_latch.h"
-#include "machine/taito68705interface.h"
-#include "emupal.h"
-#include "screen.h"
-
-class bigevglf_state : public driver_device
-{
-public:
- bigevglf_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_paletteram(*this, "paletteram"),
- m_spriteram1(*this, "spriteram1"),
- m_spriteram2(*this, "spriteram2"),
- m_audiocpu(*this, "audiocpu"),
- m_bmcu(*this, "bmcu"),
- m_maincpu(*this, "maincpu"),
- m_msm(*this, "msm"),
- m_soundlatch(*this, "soundlatch%u", 1),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette") { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_paletteram;
- required_shared_ptr<uint8_t> m_spriteram1;
- required_shared_ptr<uint8_t> m_spriteram2;
-
- /* video-related */
- bitmap_ind16 m_tmp_bitmap[4];
- std::unique_ptr<uint8_t[]> m_vidram;
- uint32_t m_vidram_bank;
- uint32_t m_plane_selected;
- uint32_t m_plane_visible;
-
- /* MCU related */
- int m_mcu_coin_bit5;
-
- /* misc */
- uint32_t m_beg_bank;
- uint8_t m_beg13_ls74[2];
- uint8_t m_port_select; /* for muxed controls */
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- optional_device<taito68705_mcu_device> m_bmcu;
- void beg_banking_w(uint8_t data);
- uint8_t soundstate_r();
- void beg13_a_clr_w(uint8_t data);
- void beg13_b_clr_w(uint8_t data);
- void beg13_a_set_w(uint8_t data);
- void beg13_b_set_w(uint8_t data);
- uint8_t beg_status_r();
- uint8_t beg_trackball_x_r();
- uint8_t beg_trackball_y_r();
- void beg_port08_w(uint8_t data);
- uint8_t sub_cpu_mcu_coin_port_r();
- void bigevglf_palette_w(offs_t offset, uint8_t data);
- void bigevglf_gfxcontrol_w(uint8_t data);
- void bigevglf_vidram_addr_w(uint8_t data);
- void bigevglf_vidram_w(offs_t offset, uint8_t data);
- uint8_t bigevglf_vidram_r(offs_t offset);
- void init_bigevglf();
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_bigevglf(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(deferred_ls74_w);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<msm5232_device> m_msm;
- required_device_array<generic_latch_8_device, 2> m_soundlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- void bigevglf(machine_config &config);
- void bigevglf_portmap(address_map &map);
- void bigevglf_sub_portmap(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sub_map(address_map &map);
-};
diff --git a/src/mame/includes/bigstrkb.h b/src/mame/includes/bigstrkb.h
deleted file mode 100644
index 2339443675d..00000000000
--- a/src/mame/includes/bigstrkb.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_BIGSTRKB_H
-#define MAME_INCLUDES_BIGSTRKB_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class bigstrkb_state : public driver_device
-{
-public:
- bigstrkb_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram2(*this, "videoram2"),
- m_videoram3(*this, "videoram3"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_vidreg1(*this, "vidreg1"),
- m_vidreg2(*this, "vidreg2")
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint16_t> m_videoram2;
- required_shared_ptr<uint16_t> m_videoram3;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_vidreg1;
- required_shared_ptr<uint16_t> m_vidreg2;
-
- tilemap_t *m_tilemap;
- tilemap_t *m_tilemap2;
- tilemap_t *m_tilemap3;
-
- void videoram_w(offs_t offset, uint16_t data);
- void videoram2_w(offs_t offset, uint16_t data);
- void videoram3_w(offs_t offset, uint16_t data);
-
- TILEMAP_MAPPER_MEMBER(bg_scan);
- TILE_GET_INFO_MEMBER(get_tile_info);
- TILE_GET_INFO_MEMBER(get_tile2_info);
- TILE_GET_INFO_MEMBER(get_tile3_info);
-
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void bigstrkb(machine_config &config);
- void bigstrkb_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BIGSTRKB_H
diff --git a/src/mame/includes/bishi.h b/src/mame/includes/bishi.h
deleted file mode 100644
index bd317073b7b..00000000000
--- a/src/mame/includes/bishi.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont
-/*************************************************************************
-
- Bishi Bashi Champ Mini Game Senshuken
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BISHI_H
-#define MAME_INCLUDES_BISHI_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "video/k054156_k054157_k056832.h"
-#include "video/k055555.h"
-#include "video/k054338.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define CPU_CLOCK (XTAL(24'000'000) / 2) /* 68000 clock */
-#define SOUND_CLOCK XTAL(16'934'400) /* YMZ280 clock */
-
-class bishi_state : public driver_device
-{
-public:
- bishi_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_k056832(*this, "k056832"),
- m_k054338(*this, "k054338"),
- m_k055555(*this, "k055555"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen")
- { }
-
- uint16_t control_r();
- void control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void control2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t bishi_mirror_r(offs_t offset);
- uint16_t bishi_K056832_rom_r(offs_t offset);
- uint32_t screen_update_bishi(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(bishi_scanline);
- K056832_CB_MEMBER(tile_callback);
-
- void bishi(machine_config &config);
- void main_map(address_map &map);
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-private:
- /* misc */
- uint16_t m_cur_control;
- uint16_t m_cur_control2;
-
- /* video-related */
- int m_layer_colorbase[4];
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<k056832_device> m_k056832;
- required_device<k054338_device> m_k054338;
- required_device<k055555_device> m_k055555;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-};
-
-#endif // MAME_INCLUDES_BISHI_H
diff --git a/src/mame/includes/bk.h b/src/mame/includes/bk.h
deleted file mode 100644
index 97acde35725..00000000000
--- a/src/mame/includes/bk.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/bk.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_BK_H
-#define MAME_INCLUDES_BK_H
-
-#pragma once
-
-#include "cpu/t11/t11.h"
-#include "imagedev/cassette.h"
-
-class bk_state : public driver_device
-{
-public:
- bk_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_vram(*this, "videoram")
- , m_maincpu(*this, "maincpu")
- , m_cassette(*this, "cassette")
- , m_io_keyboard(*this, "LINE%u", 0U)
- { }
-
- void bk0010(machine_config &config);
- void bk0010fd(machine_config &config);
-
-private:
- uint16_t m_scroll;
- uint16_t m_kbd_state;
- uint16_t m_key_code;
- uint16_t m_key_pressed;
- uint16_t m_key_irq_vector;
- uint16_t m_drive;
- emu_timer *m_kbd_timer;
- uint16_t key_state_r();
- uint16_t key_code_r();
- uint16_t vid_scroll_r();
- uint16_t key_press_r();
- void key_state_w(uint16_t data);
- void vid_scroll_w(uint16_t data);
- void key_press_w(uint16_t data);
- uint16_t floppy_cmd_r();
- void floppy_cmd_w(uint16_t data);
- uint16_t floppy_data_r();
- void floppy_data_w(uint16_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(keyboard_callback);
- uint8_t irq_callback(offs_t offset);
- required_shared_ptr<uint16_t> m_vram;
- required_device<t11_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_ioport_array<12> m_io_keyboard;
- void bk0010_mem(address_map &map);
- void bk0010fd_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BK_H
diff --git a/src/mame/includes/bking.h b/src/mame/includes/bking.h
deleted file mode 100644
index 4b35e8e0265..00000000000
--- a/src/mame/includes/bking.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour, Zsolt Vasvari
-#ifndef MAME_INCLUDES_BKING_H
-#define MAME_INCLUDES_BKING_H
-
-#pragma once
-
-#include "machine/taito68705interface.h"
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class bking_state : public driver_device
-{
-public:
- bking_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_playfield_ram(*this, "playfield_ram"),
- m_audiocpu(*this, "audiocpu"),
- m_bmcu(*this, "bmcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_soundnmi(*this, "soundnmi")
- {
- }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_playfield_ram;
-
- /* video-related */
- bitmap_ind16 m_colmap_bg;
- bitmap_ind16 m_colmap_ball;
- tilemap_t *m_bg_tilemap;
- int m_pc3259_output[4];
- int m_pc3259_mask;
- uint8_t m_xld1;
- uint8_t m_xld2;
- uint8_t m_xld3;
- uint8_t m_yld1;
- uint8_t m_yld2;
- uint8_t m_yld3;
- int m_ball1_pic;
- int m_ball2_pic;
- int m_crow_pic;
- int m_crow_flip;
- int m_palette_bank;
- int m_controller;
- int m_hit;
-
- /* misc */
- int m_addr_h;
- int m_addr_l;
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- optional_device<taito68705_mcu_device> m_bmcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<input_merger_device> m_soundnmi;
-
- uint8_t bking_sndnmi_disable_r();
- void bking_sndnmi_enable_w(uint8_t data);
- void bking_soundlatch_w(uint8_t data);
- void bking3_addr_l_w(uint8_t data);
- void bking3_addr_h_w(uint8_t data);
- uint8_t bking3_extrarom_r();
- uint8_t bking3_ext_check_r();
- uint8_t bking3_mcu_status_r();
- void bking_xld1_w(uint8_t data);
- void bking_yld1_w(uint8_t data);
- void bking_xld2_w(uint8_t data);
- void bking_yld2_w(uint8_t data);
- void bking_xld3_w(uint8_t data);
- void bking_yld3_w(uint8_t data);
- void bking_cont1_w(uint8_t data);
- void bking_cont2_w(uint8_t data);
- void bking_cont3_w(uint8_t data);
- void bking_msk_w(uint8_t data);
- void bking_hitclr_w(uint8_t data);
- void bking_playfield_w(offs_t offset, uint8_t data);
- uint8_t bking_input_port_5_r();
- uint8_t bking_input_port_6_r();
- uint8_t bking_pos_r(offs_t offset);
- void unk_w(uint8_t data);
- void port_b_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void bking_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(bking3);
- DECLARE_MACHINE_RESET(bking3);
- DECLARE_MACHINE_RESET(common);
- uint32_t screen_update_bking(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_bking);
- void bking(machine_config &config);
- void bking3(machine_config &config);
- void bking3_io_map(address_map &map);
- void bking_audio_map(address_map &map);
- void bking_io_map(address_map &map);
- void bking_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BKING_H
diff --git a/src/mame/includes/bladestl.h b/src/mame/includes/bladestl.h
deleted file mode 100644
index 8bbb13efc93..00000000000
--- a/src/mame/includes/bladestl.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Blades of Steel
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BLADESTL_H
-#define MAME_INCLUDES_BLADESTL_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/flt_rc.h"
-#include "sound/upd7759.h"
-#include "video/k007342.h"
-#include "video/k007420.h"
-#include "video/k051733.h"
-#include "emupal.h"
-
-class bladestl_state : public driver_device
-{
-public:
- bladestl_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k007342(*this, "k007342"),
- m_k007420(*this, "k007420"),
- m_upd7759(*this, "upd"),
- m_filter1(*this, "filter1"),
- m_filter2(*this, "filter2"),
- m_filter3(*this, "filter3"),
- m_gfxdecode(*this, "gfxdecode"),
- m_soundlatch(*this, "soundlatch"),
- m_trackball(*this, "TRACKBALL.%u", 0),
- m_rombank(*this, "rombank"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- /* devices */
- uint8_t trackball_r(offs_t offset);
- void bladestl_bankswitch_w(uint8_t data);
- void bladestl_port_B_w(uint8_t data);
- uint8_t bladestl_speech_busy_r();
- void bladestl_speech_ctrl_w(uint8_t data);
- void bladestl_palette(palette_device &palette) const;
- uint32_t screen_update_bladestl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(bladestl_scanline);
- K007342_CALLBACK_MEMBER(bladestl_tile_callback);
- K007420_CALLBACK_MEMBER(bladestl_sprite_callback);
- void bladestl(machine_config &config);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k007342_device> m_k007342;
- required_device<k007420_device> m_k007420;
- required_device<upd7759_device> m_upd7759;
- required_device<filter_rc_device> m_filter1;
- required_device<filter_rc_device> m_filter2;
- required_device<filter_rc_device> m_filter3;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<generic_latch_8_device> m_soundlatch;
- required_ioport_array<4> m_trackball;
-
- /* memory pointers */
- required_memory_bank m_rombank;
-
- /* video-related */
- int m_spritebank;
-
- /* misc */
- int m_last_track[4];
-
- output_finder<2> m_lamps;
-};
-
-#endif // MAME_INCLUDES_BLADESTL_H
diff --git a/src/mame/includes/blktiger.h b/src/mame/includes/blktiger.h
deleted file mode 100644
index 0c3b92bd972..00000000000
--- a/src/mame/includes/blktiger.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Leaman
-/***************************************************************************
-
- Black Tiger
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_BLKTIGER_H
-#define MAME_INCLUDES_BLKTIGER_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class blktiger_state : public driver_device
-{
-public:
- blktiger_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_txvideoram(*this, "txvideoram"),
- m_mcu(*this, "mcu"),
- m_audiocpu(*this, "audiocpu"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- /* memory pointers */
- required_device<buffered_spriteram8_device> m_spriteram;
- required_shared_ptr<uint8_t> m_txvideoram;
-
- /* video-related */
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bg_tilemap8x4;
- tilemap_t *m_bg_tilemap4x8;
- uint32_t m_scroll_bank;
- uint8_t m_scroll_x[2];
- uint8_t m_scroll_y[2];
- std::unique_ptr<uint8_t[]> m_scroll_ram;
- uint8_t m_screen_layout;
- uint8_t m_chon;
- uint8_t m_objon;
- uint8_t m_bgon;
-
- /* mcu-related */
- uint8_t m_z80_latch;
- uint8_t m_i8751_latch;
-
- /* devices */
- optional_device<i8751_device> m_mcu;
- required_device<cpu_device> m_audiocpu;
- uint8_t blktiger_from_mcu_r();
- void blktiger_to_mcu_w(uint8_t data);
- uint8_t blktiger_from_main_r();
- void blktiger_to_main_w(uint8_t data);
- void blktiger_bankswitch_w(uint8_t data);
- void blktiger_coinlockout_w(uint8_t data);
- void blktiger_txvideoram_w(offs_t offset, uint8_t data);
- uint8_t blktiger_bgvideoram_r(offs_t offset);
- void blktiger_bgvideoram_w(offs_t offset, uint8_t data);
- void blktiger_bgvideoram_bank_w(uint8_t data);
- void blktiger_scrolly_w(offs_t offset, uint8_t data);
- void blktiger_scrollx_w(offs_t offset, uint8_t data);
- void blktiger_video_control_w(uint8_t data);
- void blktiger_video_enable_w(uint8_t data);
- void blktiger_screen_layout_w(uint8_t data);
- TILEMAP_MAPPER_MEMBER(bg8x4_scan);
- TILEMAP_MAPPER_MEMBER(bg4x8_scan);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_blktiger(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- void init_blktigerb3();
- void blktiger(machine_config &config);
- void blktigerbl(machine_config &config);
- void blktiger_io_map(address_map &map);
- void blktiger_map(address_map &map);
- void blktiger_sound_map(address_map &map);
- void blktigerbl_io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BLKTIGER_H
diff --git a/src/mame/includes/blmbycar.h b/src/mame/includes/blmbycar.h
deleted file mode 100644
index f324137c431..00000000000
--- a/src/mame/includes/blmbycar.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/***************************************************************************
-
- Blomby Car
-
-***************************************************************************/
-
-#include "video/gaelco_wrally_sprites.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class blmbycar_state : public driver_device
-{
-public:
- blmbycar_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sprites(*this, "sprites"),
- m_vram(*this, "vram_%u", 0U),
- m_scroll(*this, "scroll_%u", 0U),
- m_spriteram(*this, "spriteram"),
- m_okibank(*this, "okibank"),
- m_pot_wheel_io(*this, "POT_WHEEL"),
- m_opt_wheel_io(*this, "OPT_WHEEL")
- {
- }
-
- void watrball(machine_config &config);
- void blmbycar(machine_config &config);
-
- void init_blmbycar();
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<gaelco_wrally_sprites_device> m_sprites;
-
- /* memory pointers */
- required_shared_ptr_array<uint16_t, 2> m_vram;
- required_shared_ptr_array<uint16_t, 2> m_scroll;
- required_shared_ptr<uint16_t> m_spriteram;
-
- required_memory_bank m_okibank;
- optional_ioport m_pot_wheel_io;
- optional_ioport m_opt_wheel_io;
-
- /* video-related */
- tilemap_t *m_tilemap[2];
-
- /* input-related */
- uint8_t m_pot_wheel; // blmbycar
- uint8_t m_old_val; // blmbycar
- int m_retvalue; // waterball
-
- // common
- void okibank_w(uint8_t data);
- template<int Layer> void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- // blmbycar
- void blmbycar_pot_wheel_reset_w(uint8_t data);
- void blmbycar_pot_wheel_shift_w(uint8_t data);
- uint16_t blmbycar_pot_wheel_r();
- uint16_t blmbycar_opt_wheel_r();
-
- // waterball
- uint16_t waterball_unk_r();
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
-
- virtual void video_start() override;
- DECLARE_MACHINE_START(blmbycar);
- DECLARE_MACHINE_RESET(blmbycar);
- DECLARE_MACHINE_START(watrball);
- DECLARE_MACHINE_RESET(watrball);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void blmbycar_map(address_map &map);
- void blmbycar_oki_map(address_map &map);
- void common_map(address_map &map);
- void watrball_map(address_map &map);
-};
diff --git a/src/mame/includes/blockout.h b/src/mame/includes/blockout.h
deleted file mode 100644
index 9ee231b8b9c..00000000000
--- a/src/mame/includes/blockout.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-
-/***************************************************************************
-
- Blockout
-
-***************************************************************************/
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-class blockout_state : public driver_device
-{
-public:
- blockout_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram", 0x40000, ENDIANNESS_BIG),
- m_frontvideoram(*this, "frontvideoram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch") { }
-
- /* memory pointers */
- memory_share_creator<u8> m_videoram;
- required_shared_ptr<u16> m_frontvideoram;
-
- /* video-related */
- bitmap_ind16 m_tmpbitmap;
- u16 m_color;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- DECLARE_WRITE_LINE_MEMBER(irq_handler);
- void blockout_irq6_ack_w(uint16_t data);
- void blockout_irq5_ack_w(uint16_t data);
- void frontcolor_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u8 videoram_r(offs_t offset);
- void videoram_w(offs_t offset, u8 data);
- void init_agress();
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(blockout_scanline);
- static rgb_t blockout_xBGR_444(u32 raw);
- void blockout(machine_config &config);
- void agress(machine_config &config);
- void agress_map(address_map &map);
- void audio_map(address_map &map);
- void main_map(address_map &map);
-};
diff --git a/src/mame/includes/bloodbro.h b/src/mame/includes/bloodbro.h
deleted file mode 100644
index 03eafa6fad5..00000000000
--- a/src/mame/includes/bloodbro.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Carlos A. Lozano
-#ifndef MAME_INCLUDES_BLOODBRO_H
-#define MAME_INCLUDES_BLOODBRO_H
-
-#pragma once
-
-#include "audio/seibu.h"
-#include "sound/ym3812.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class bloodbro_state : public driver_device, public seibu_sound_common
-{
-public:
- bloodbro_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_audiocpu(*this, "audiocpu"),
- m_seibu_sound(*this, "seibu_sound"),
- m_ymsnd(*this, "ymsnd"),
- m_spriteram(*this, "spriteram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_txvideoram(*this, "txvideoram")
- { }
-
- void init_weststry();
-
- void bloodbro(machine_config &config);
- void skysmash(machine_config &config);
- void weststry(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<cpu_device> m_audiocpu;
- required_device<seibu_sound_device> m_seibu_sound;
- required_device<ym3812_device> m_ymsnd;
-
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_bgvideoram;
- required_shared_ptr<uint16_t> m_fgvideoram;
- required_shared_ptr<uint16_t> m_txvideoram;
-
- uint16_t m_scrollram[6];
- uint16_t m_layer_en;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
-
- bool m_weststry_opl_irq;
- bool m_weststry_soundnmi_mask;
-
- void bgvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fgvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void txvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void layer_en_w(uint16_t data);
- void layer_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void weststry_layer_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void weststry_soundlatch_w(offs_t offset, u8 data);
- DECLARE_WRITE_LINE_MEMBER(weststry_opl_irq_w);
- void weststry_opl_w(offs_t offset, uint8_t data);
- void weststry_soundnmi_ack_w(uint8_t data);
- void weststry_soundnmi_update();
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
-
- uint32_t screen_update_bloodbro(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_weststry(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_skysmash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void bloodbro_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void weststry_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void bloodbro_map(address_map &map);
- void common_map(address_map &map);
- void skysmash_map(address_map &map);
- void weststry_map(address_map &map);
- void weststry_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BLOODBRO_H
diff --git a/src/mame/includes/blstroid.h b/src/mame/includes/blstroid.h
deleted file mode 100644
index d4e1cefa6ac..00000000000
--- a/src/mame/includes/blstroid.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Blasteroids hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BLSTROID_H
-#define MAME_INCLUDES_BLSTROID_H
-
-#pragma once
-
-#include "machine/atarigen.h"
-#include "machine/timer.h"
-#include "audio/atarijsa.h"
-#include "video/atarimo.h"
-#include "tilemap.h"
-
-class blstroid_state : public atarigen_state
-{
-public:
- enum
- {
- TIMER_IRQ_OFF = TID_ATARIGEN_LAST,
- TIMER_IRQ_ON
- };
-
- blstroid_state(const machine_config &mconfig, device_type type, const char *tag) :
- atarigen_state(mconfig, type, tag),
- m_playfield_tilemap(*this, "playfield"),
- m_jsa(*this, "jsa"),
- m_mob(*this, "mob"),
- m_priorityram(*this, "priorityram")
- { }
-
- void init_blstroid();
- void blstroid(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
- void scanline_int_ack_w(uint16_t data = 0);
- void video_int_ack_w(uint16_t data = 0);
- void halt_until_hblank_0_w(uint16_t data = 0);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- DECLARE_VIDEO_START(blstroid);
- uint32_t screen_update_blstroid(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
-
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<atari_jsa_i_device> m_jsa;
- required_device<atari_motion_objects_device> m_mob;
- required_shared_ptr<uint16_t> m_priorityram;
-
- emu_timer *m_irq_off_timer;
- emu_timer *m_irq_on_timer;
-
- static const atari_motion_objects_config s_mob_config;
-
- bool m_scanline_int_state;
-};
-
-#endif // MAME_INCLUDES_BLSTROID_H
diff --git a/src/mame/includes/blueprnt.h b/src/mame/includes/blueprnt.h
deleted file mode 100644
index ffaf731db18..00000000000
--- a/src/mame/includes/blueprnt.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Blue Print
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_BLUEPRNT_H
-#define MAME_INCLUDES_BLUEPRNT_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class blueprnt_state : public driver_device
-{
-public:
- blueprnt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_videoram(*this, "videoram"),
- m_scrollram(*this, "scrollram"),
- m_spriteram(*this, "spriteram"),
- m_colorram(*this, "colorram")
- { }
-
- /* device/memory pointers */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_scrollram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_gfx_bank;
-
- /* misc */
- int m_dipsw;
-
- uint8_t blueprnt_sh_dipsw_r();
- uint8_t grasspin_sh_dipsw_r();
- void blueprnt_sound_command_w(uint8_t data);
- void blueprnt_coin_counter_w(uint8_t data);
- void blueprnt_videoram_w(offs_t offset, uint8_t data);
- void blueprnt_colorram_w(offs_t offset, uint8_t data);
- void blueprnt_flipscreen_w(uint8_t data);
- void dipsw_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- DECLARE_VIDEO_START(blueprnt);
- void blueprnt_palette(palette_device &palette) const;
- uint32_t screen_update_blueprnt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void blueprnt(machine_config &config);
- void grasspin(machine_config &config);
- void blueprnt_map(address_map &map);
- void grasspin_map(address_map &map);
- void sound_io(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BLUEPRNT_H
diff --git a/src/mame/includes/bogeyman.h b/src/mame/includes/bogeyman.h
deleted file mode 100644
index 647c5a77a24..00000000000
--- a/src/mame/includes/bogeyman.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Bogey Manor
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BOGEYMAN_H
-#define MAME_INCLUDES_BOGEYMAN_H
-
-#pragma once
-
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class bogeyman_state : public driver_device
-{
-public:
- bogeyman_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_ay1(*this, "ay1"),
- m_ay2(*this, "ay2"),
- m_videoram(*this, "videoram"),
- m_videoram2(*this, "videoram2"),
- m_colorram(*this, "colorram"),
- m_colorram2(*this, "colorram2"),
- m_spriteram(*this, "spriteram")
- { }
-
- void bogeyman(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<ay8910_device> m_ay1;
- required_device<ay8910_device> m_ay2;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_colorram2;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- /* misc */
- int m_psg_latch;
- int m_last_write;
- int m_colbank;
-
- void ay8910_latch_w(uint8_t data);
- void ay8910_control_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void videoram2_w(offs_t offset, uint8_t data);
- void colorram2_w(offs_t offset, uint8_t data);
- void colbank_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- void bogeyman_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void bogeyman_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BOGEYMAN_H
diff --git a/src/mame/includes/bombjack.h b/src/mame/includes/bombjack.h
deleted file mode 100644
index 8234037c5f2..00000000000
--- a/src/mame/includes/bombjack.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni
-/*************************************************************************
-
- Bomb Jack
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BOMBJACK_H
-#define MAME_INCLUDES_BOMBJACK_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class bombjack_state : public driver_device
-{
-public:
- bombjack_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void bombjack(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- uint8_t soundlatch_read_and_clear();
- void irq_mask_w(uint8_t data);
- void bombjack_videoram_w(offs_t offset, uint8_t data);
- void bombjack_colorram_w(offs_t offset, uint8_t data);
- void bombjack_background_w(uint8_t data);
- void bombjack_flipscreen_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- uint32_t screen_update_bombjack(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- TIMER_CALLBACK_MEMBER(soundlatch_callback);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void audio_io_map(address_map &map);
- void audio_map(address_map &map);
- void main_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- uint8_t m_background_image;
-
- bool m_nmi_mask;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-};
-
-#endif // MAME_INCLUDES_BOMBJACK_H
diff --git a/src/mame/includes/boogwing.h b/src/mame/includes/boogwing.h
deleted file mode 100644
index dc28c12ee82..00000000000
--- a/src/mame/includes/boogwing.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, David Haywood
-/*************************************************************************
-
- Boogie Wings
-
-*************************************************************************/
-
-#include "cpu/h6280/h6280.h"
-#include "sound/okim6295.h"
-#include "video/deco16ic.h"
-#include "video/deco_ace.h"
-#include "video/bufsprite.h"
-#include "video/decospr.h"
-#include "machine/deco104.h"
-#include "screen.h"
-
-class boogwing_state : public driver_device
-{
-public:
- boogwing_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_deco104(*this, "ioprot")
- , m_deco_ace(*this, "deco_ace")
- , m_screen(*this, "screen")
- , m_deco_tilegen(*this, "tilegen%u", 1)
- , m_oki(*this, "oki%u", 1)
- , m_sprgen(*this, "spritegen%u", 1)
- , m_spriteram(*this, "spriteram%u", 1)
- , m_pf_rowscroll(*this, "pf%u_rowscroll", 1)
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device<deco104_device> m_deco104;
- required_device<deco_ace_device> m_deco_ace;
- required_device<screen_device> m_screen;
- required_device_array<deco16ic_device, 2> m_deco_tilegen;
- required_device_array<okim6295_device, 2> m_oki;
- required_device_array<decospr_device, 2> m_sprgen;
- required_device_array<buffered_spriteram16_device, 2> m_spriteram;
- /* memory pointers */
- required_shared_ptr_array<uint16_t, 4> m_pf_rowscroll;
- required_shared_ptr<uint16_t> m_decrypted_opcodes;
-
- uint16_t m_priority;
- bitmap_ind16 m_temp_bitmap;
- bitmap_ind16 m_alpha_tmap_bitmap;
-
- void sound_bankswitch_w(uint8_t data);
- void priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void init_boogwing();
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_boogwing(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void mix_boogwing(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint16_t boogwing_protection_region_0_104_r(offs_t offset);
- void boogwing_protection_region_0_104_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- DECO16IC_BANK_CB_MEMBER(bank_callback2);
- void boogwing(machine_config &config);
- void audio_map(address_map &map);
- void boogwing_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
-};
diff --git a/src/mame/includes/bosco.h b/src/mame/includes/bosco.h
deleted file mode 100644
index 439e142dcd2..00000000000
--- a/src/mame/includes/bosco.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_BOSCO_H
-#define MAME_INCLUDES_BOSCO_H
-
-#pragma once
-
-#include "galaga.h"
-#include "tilemap.h"
-
-class bosco_state : public galaga_state
-{
-public:
- bosco_state(const machine_config &mconfig, device_type type, const char *tag)
- : galaga_state(mconfig, type, tag)
- , m_bosco_radarattr(*this, "bosco_radarattr")
- , m_bosco_starcontrol(*this, "starcontrol")
- {
- }
-
- required_shared_ptr<uint8_t> m_bosco_radarattr;
-
- required_shared_ptr<uint8_t> m_bosco_starcontrol;
-
- uint8_t *m_bosco_radarx;
- uint8_t *m_bosco_radary;
-
- uint8_t m_bosco_starclr;
-
- uint8_t *m_spriteram;
- uint8_t *m_spriteram2;
- uint32_t m_spriteram_size;
- TILEMAP_MAPPER_MEMBER(fg_tilemap_scan);
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- TILE_GET_INFO_MEMBER(fg_get_tile_info);
- DECLARE_VIDEO_START(bosco);
- void bosco_palette(palette_device &palette) const;
- uint32_t screen_update_bosco(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_bosco);
-
- inline void get_tile_info_bosco(tile_data &tileinfo,int tile_index,int ram_offs);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int flip);
- void draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect, int flip);
- void draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect, int flip);
- void bosco_videoram_w(offs_t offset, uint8_t data);
- void bosco_scrollx_w(uint8_t data);
- void bosco_scrolly_w(uint8_t data);
- void bosco_starclr_w(uint8_t data);
- void bosco(machine_config &config);
- void bosco_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BOSCO_H
diff --git a/src/mame/includes/bottom9.h b/src/mame/includes/bottom9.h
deleted file mode 100644
index 7f912617590..00000000000
--- a/src/mame/includes/bottom9.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Bottom of the Ninth
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BOTTOM9_H
-#define MAME_INCLUDES_BOTTOM9_H
-
-#pragma once
-
-#include "sound/k007232.h"
-#include "video/k052109.h"
-#include "video/k051960.h"
-#include "video/k051316.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-
-class bottom9_state : public driver_device
-{
-public:
- bottom9_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k007232_1(*this, "k007232_1"),
- m_k007232_2(*this, "k007232_2"),
- m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960"),
- m_k051316(*this, "k051316"),
- m_palette(*this, "palette")
- { }
-
- /* misc */
- int m_video_enable;
- int m_zoomreadroms;
- int m_k052109_selected;
- int m_nmienable;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k007232_device> m_k007232_1;
- required_device<k007232_device> m_k007232_2;
- required_device<k052109_device> m_k052109;
- required_device<k051960_device> m_k051960;
- required_device<k051316_device> m_k051316;
- required_device<palette_device> m_palette;
- uint8_t k052109_051960_r(offs_t offset);
- void k052109_051960_w(offs_t offset, uint8_t data);
- uint8_t bottom9_bankedram1_r(offs_t offset);
- void bottom9_bankedram1_w(offs_t offset, uint8_t data);
- uint8_t bottom9_bankedram2_r(offs_t offset);
- void bottom9_bankedram2_w(offs_t offset, uint8_t data);
- void bankswitch_w(uint8_t data);
- void bottom9_1f90_w(uint8_t data);
- void bottom9_sh_irqtrigger_w(uint8_t data);
- void nmi_enable_w(uint8_t data);
- void sound_bank_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_bottom9(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(bottom9_sound_interrupt);
- void volume_callback0(uint8_t data);
- void volume_callback1(uint8_t data);
- K051316_CB_MEMBER(zoom_callback);
- K052109_CB_MEMBER(tile_callback);
- K051960_CB_MEMBER(sprite_callback);
- void bottom9(machine_config &config);
- void audio_map(address_map &map);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BOTTOM9_H
diff --git a/src/mame/includes/brkthru.h b/src/mame/includes/brkthru.h
deleted file mode 100644
index 41754832569..00000000000
--- a/src/mame/includes/brkthru.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-/***************************************************************************
-
- Break Thru
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_BRKTRHU_H
-#define MAME_INCLUDES_BRKTRHU_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class brkthru_state : public driver_device
-{
-public:
- brkthru_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_fg_videoram(*this, "fg_videoram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_bgscroll;
- int m_bgbasecolor;
- int m_flipscreen;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- uint8_t m_nmi_mask;
- void brkthru_1803_w(uint8_t data);
- void darwin_0803_w(uint8_t data);
- void brkthru_bgram_w(offs_t offset, uint8_t data);
- void brkthru_fgram_w(offs_t offset, uint8_t data);
- void brkthru_1800_w(offs_t offset, uint8_t data);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
- void init_brkthru();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void brkthru_palette(palette_device &palette) const;
- uint32_t screen_update_brkthru(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int prio );
- void brkthru(machine_config &config);
- void darwin(machine_config &config);
- void brkthru_map(address_map &map);
- void darwin_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BRKTRHU_H
diff --git a/src/mame/includes/bsktball.h b/src/mame/includes/bsktball.h
deleted file mode 100644
index f02d3217b13..00000000000
--- a/src/mame/includes/bsktball.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-/*************************************************************************
-
- Atari Basketball hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BSKTBALL_H
-#define MAME_INCLUDES_BSKTBALL_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/discrete.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-#define BSKTBALL_NOTE_DATA NODE_01
-#define BSKTBALL_CROWD_DATA NODE_02
-#define BSKTBALL_NOISE_EN NODE_03
-#define BSKTBALL_BOUNCE_EN NODE_04
-
-
-class bsktball_state : public driver_device
-{
-public:
- bsktball_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_discrete(*this, "discrete"),
- m_videoram(*this, "videoram"),
- m_motion(*this, "motion")
- { }
-
- void bsktball(machine_config &config);
-
-protected:
- DECLARE_WRITE_LINE_MEMBER(nmion_w);
- DECLARE_WRITE_LINE_MEMBER(ld1_w);
- DECLARE_WRITE_LINE_MEMBER(ld2_w);
- uint8_t bsktball_in0_r();
- void bsktball_videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void bsktball_palette(palette_device &palette) const;
- uint32_t screen_update_bsktball(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(bsktball_scanline);
- void bsktball_bounce_w(uint8_t data);
- void bsktball_note_w(uint8_t data);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void main_map(address_map &map);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<discrete_device> m_discrete;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_motion;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* misc */
- uint32_t m_nmi_on;
-
- /* input-related */
- int m_ld1;
- int m_ld2;
- int m_dir0;
- int m_dir1;
- int m_dir2;
- int m_dir3;
- int m_last_p1_horiz;
- int m_last_p1_vert;
- int m_last_p2_horiz;
- int m_last_p2_vert;
-};
-
-/*----------- defined in audio/bsktball.c -----------*/
-
-DISCRETE_SOUND_EXTERN( bsktball_discrete );
-
-#endif // MAME_INCLUDES_BSKTBALL_H
diff --git a/src/mame/includes/btime.h b/src/mame/includes/btime.h
deleted file mode 100644
index 4a744791185..00000000000
--- a/src/mame/includes/btime.h
+++ /dev/null
@@ -1,163 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari, Couriersud
-/***************************************************************************
-
- Burger Time hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_BTIME_H
-#define MAME_INCLUDES_BTIME_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-class btime_state : public driver_device
-{
-public:
- btime_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_rambase(*this, "rambase")
- , m_videoram(*this, "videoram")
- , m_colorram(*this, "colorram")
- , m_bnj_backgroundram(*this, "bnj_bgram")
- , m_zoar_scrollram(*this, "zoar_scrollram")
- , m_lnc_charbank(*this, "lnc_charbank")
- , m_deco_charram(*this, "deco_charram")
- , m_spriteram(*this, "spriteram")
- , m_audio_rambase(*this, "audio_rambase")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_audionmi(*this, "audionmi")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_prom_region(*this, "proms")
- {
- }
-
- /* memory pointers */
- optional_shared_ptr<uint8_t> m_rambase;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- optional_shared_ptr<uint8_t> m_bnj_backgroundram;
- optional_shared_ptr<uint8_t> m_zoar_scrollram;
- optional_shared_ptr<uint8_t> m_lnc_charbank;
- optional_shared_ptr<uint8_t> m_deco_charram;
- optional_shared_ptr<uint8_t> m_spriteram; // used by disco
-// uint8_t * m_decrypted;
- optional_shared_ptr<uint8_t> m_audio_rambase;
-
- /* video-related */
- std::unique_ptr<bitmap_ind16> m_background_bitmap;
- uint8_t m_btime_palette;
- uint8_t m_bnj_scroll1;
- uint8_t m_bnj_scroll2;
- uint8_t m_btime_tilemap[4];
-
- /* audio-related */
- uint8_t m_audio_nmi_enable_type;
-
- /* protection-related (for mmonkey) */
- int m_protection_command;
- int m_protection_status;
- int m_protection_value;
- int m_protection_ret;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<input_merger_device> m_audionmi;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_memory_region m_prom_region;
-
- void audio_nmi_enable_w(uint8_t data);
- uint8_t zoar_dsw1_read();
- uint8_t wtennis_reset_hack_r();
- uint8_t mmonkey_protection_r(offs_t offset);
- void mmonkey_protection_w(offs_t offset, uint8_t data);
- void lnc_videoram_w(offs_t offset, uint8_t data);
- uint8_t btime_mirrorvideoram_r(offs_t offset);
- uint8_t btime_mirrorcolorram_r(offs_t offset);
- void btime_mirrorvideoram_w(offs_t offset, uint8_t data);
- void lnc_mirrorvideoram_w(offs_t offset, uint8_t data);
- void btime_mirrorcolorram_w(offs_t offset, uint8_t data);
- void deco_charram_w(offs_t offset, uint8_t data);
- void bnj_background_w(offs_t offset, uint8_t data);
- void bnj_scroll1_w(uint8_t data);
- void bnj_scroll2_w(uint8_t data);
- void btime_video_control_w(uint8_t data);
- void bnj_video_control_w(uint8_t data);
- void zoar_video_control_w(uint8_t data);
- void disco_video_control_w(uint8_t data);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted_irq_hi);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted_irq_lo);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted_nmi_lo);
- void ay_audio_nmi_enable_w(uint8_t data);
-
- void init_btime();
- void init_tisland();
- void init_cookrace();
- void init_zoar();
- void init_sdtennis();
- void init_wtennis();
- void init_bnj();
- void init_protennb();
- void init_disco();
- void init_lnc();
- DECLARE_MACHINE_START(btime);
- DECLARE_MACHINE_RESET(btime);
- void btime_palette(palette_device &palette) const;
- DECLARE_MACHINE_RESET(lnc);
- void lnc_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(mmonkey);
- DECLARE_MACHINE_RESET(mmonkey);
- DECLARE_VIDEO_START(bnj);
- DECLARE_VIDEO_START(disco);
- uint32_t screen_update_btime(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cookrace(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_lnc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_eggs(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_bnj(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_zoar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_disco(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(audio_nmi_gen);
- void draw_chars( bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t transparency, uint8_t color, int priority );
- void draw_background( bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* tmap, uint8_t color );
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t color,
- uint8_t sprite_y_adjust, uint8_t sprite_y_adjust_flip_screen,
- uint8_t *sprite_ram, offs_t interleave );
-
- void lnc(machine_config &config);
- void disco(machine_config &config);
- void mmonkey(machine_config &config);
- void bnj(machine_config &config);
- void cookrace(machine_config &config);
- void protenn(machine_config &config);
- void wtennis(machine_config &config);
- void sdtennis(machine_config &config);
- void tisland(machine_config &config);
- void zoar(machine_config &config);
- void btime(machine_config &config);
- void audio_map(address_map &map);
- void bnj_map(address_map &map);
- void btime_map(address_map &map);
- void cookrace_map(address_map &map);
- void disco_audio_map(address_map &map);
- void disco_map(address_map &map);
- void lnc_map(address_map &map);
- void mmonkey_map(address_map &map);
- void protenn_map(address_map &map);
- void tisland_map(address_map &map);
- void zoar_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BTIME_H
diff --git a/src/mame/includes/btoads.h b/src/mame/includes/btoads.h
deleted file mode 100644
index 11f842bc16d..00000000000
--- a/src/mame/includes/btoads.h
+++ /dev/null
@@ -1,128 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- BattleToads
-
- Common definitions
-
-*************************************************************************/
-
-#include "cpu/tms34010/tms34010.h"
-#include "cpu/z80/z80.h"
-#include "video/tlc34076.h"
-#include "sound/bsmt2000.h"
-#include "machine/nvram.h"
-#include "emupal.h"
-#include "screen.h"
-
-class btoads_state : public driver_device
-{
-public:
- btoads_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_vram_fg0(*this, "vram_fg0", 0x200000, ENDIANNESS_LITTLE),
- m_vram_fg1(*this, "vram_fg1", 0x200000, ENDIANNESS_LITTLE),
- m_vram_fg_data(*this, "vram_fg_data"),
- m_vram_bg0(*this, "vram_bg0", 0x400000, ENDIANNESS_LITTLE),
- m_vram_bg1(*this, "vram_bg1", 0x400000, ENDIANNESS_LITTLE),
- m_sprite_scale(*this, "sprite_scale"),
- m_sprite_control(*this, "sprite_control"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_bsmt(*this, "bsmt"),
- m_tlc34076(*this, "tlc34076"),
- m_screen(*this, "screen") { }
-
- DECLARE_READ_LINE_MEMBER( main_to_sound_r );
- DECLARE_READ_LINE_MEMBER( sound_to_main_r );
-
- void btoads(machine_config &config);
-
-protected:
- // device overrides
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // driver_device overrides
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- // timer IDs
- enum
- {
- TIMER_ID_NOP,
- TIMER_ID_DELAYED_SOUND
- };
-
- // shared pointers
- memory_share_creator<uint8_t> m_vram_fg0;
- memory_share_creator<uint8_t> m_vram_fg1;
- required_shared_ptr<uint32_t> m_vram_fg_data;
- memory_share_creator<uint16_t> m_vram_bg0;
- memory_share_creator<uint16_t> m_vram_bg1;
- required_shared_ptr<uint32_t> m_sprite_scale;
- required_shared_ptr<uint32_t> m_sprite_control;
-
- // state
- uint8_t m_main_to_sound_data;
- uint8_t m_main_to_sound_ready;
- uint8_t m_sound_to_main_data;
- uint8_t m_sound_to_main_ready;
- uint8_t m_sound_int_state;
- uint8_t *m_vram_fg_draw;
- uint8_t *m_vram_fg_display;
- int32_t m_xscroll0;
- int32_t m_yscroll0;
- int32_t m_xscroll1;
- int32_t m_yscroll1;
- uint8_t m_screen_control;
- uint16_t m_sprite_source_offs;
- uint8_t *m_sprite_dest_base;
- uint16_t m_sprite_dest_offs;
- uint16_t m_misc_control;
- int m_xcount;
- std::unique_ptr<uint8_t[]> m_nvram_data;
-
- // in drivers/btoads
- void nvram_w(offs_t offset, uint8_t data);
- uint8_t nvram_r(offs_t offset);
- void main_sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t main_sound_r();
- void sound_data_w(uint8_t data);
- uint8_t sound_data_r();
- uint8_t sound_ready_to_send_r();
- uint8_t sound_data_ready_r();
- void sound_int_state_w(uint8_t data);
- uint8_t bsmt_ready_r();
- void bsmt2000_port_w(offs_t offset, uint8_t data);
-
- // in video/btoads
- void misc_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void display_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scroll0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scroll1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void vram_bg0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void vram_bg1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t vram_bg0_r(offs_t offset);
- uint16_t vram_bg1_r(offs_t offset);
- void vram_fg_display_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void vram_fg_draw_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t vram_fg_display_r(offs_t offset);
- uint16_t vram_fg_draw_r(offs_t offset);
- void render_sprite_row(uint16_t *sprite_source, uint32_t address);
- TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg);
- TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg);
- TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline_update);
-
- // devices
- required_device<tms34020_device> m_maincpu;
- required_device<z80_device> m_audiocpu;
- required_device<bsmt2000_device> m_bsmt;
- required_device<tlc34076_device> m_tlc34076;
- required_device<screen_device> m_screen;
-
- void main_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/bublbobl.h b/src/mame/includes/bublbobl.h
deleted file mode 100644
index ad9662cbc43..00000000000
--- a/src/mame/includes/bublbobl.h
+++ /dev/null
@@ -1,208 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Chris Moore, Nicola Salmoria
-#ifndef MAME_INCLUDES_BUBLBOBL_H
-#define MAME_INCLUDES_BUBLBOBL_H
-
-#pragma once
-
-#include "cpu/m6805/m68705.h"
-#include "cpu/mcs48/mcs48.h"
-#include "machine/input_merger.h"
-#include "machine/gen_latch.h"
-#include "sound/ym2203.h"
-#include "sound/ym3526.h"
-#include "emupal.h"
-#include "screen.h"
-
-#include "machine/taito68705interface.h"
-
-
-class bublbobl_state : public driver_device
-{
-public:
- enum
- {
- TIMER_M68705_IRQ_ACK
- };
-
- bublbobl_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_videoram(*this, "videoram")
- , m_objectram(*this, "objectram")
- , m_mcu_sharedram(*this, "mcu_sharedram")
- , m_maincpu(*this, "maincpu")
- , m_mcu(*this, "mcu")
- , m_audiocpu(*this, "audiocpu")
- , m_subcpu(*this, "subcpu")
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_ym2203(*this, "ym2203")
- , m_ym3526(*this, "ym3526")
- , m_soundirq(*this, "soundirq")
- , m_soundnmi(*this, "soundnmi")
- , m_main_to_sound(*this, "main_to_sound")
- , m_sound_to_main(*this, "sound_to_main")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_objectram;
- optional_shared_ptr<uint8_t> m_mcu_sharedram;
-
- /* video-related */
- bool m_video_enable;
-
- /* sound-related */
- int m_sreset_old;
-
- /* mcu-related */
-
- /* Bubble Bobble MCU */
- uint8_t m_ddr1;
- uint8_t m_ddr2;
- uint8_t m_ddr3;
- uint8_t m_ddr4;
- uint8_t m_port1_in;
- uint8_t m_port2_in;
- uint8_t m_port3_in;
- uint8_t m_port4_in;
- uint8_t m_port1_out;
- uint8_t m_port2_out;
- uint8_t m_port3_out;
- uint8_t m_port4_out;
- /* Bobble Bobble */
- int m_ic43_a;
- int m_ic43_b;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_mcu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<ym2203_device> m_ym2203;
- optional_device<ym3526_device> m_ym3526;
- optional_device<input_merger_device> m_soundirq;
- required_device<input_merger_device> m_soundnmi;
- required_device<generic_latch_8_device> m_main_to_sound;
- required_device<generic_latch_8_device> m_sound_to_main;
-
-
- void common_sreset(int state);
- void bublbobl_bankswitch_w(uint8_t data);
- void tokio_bankswitch_w(uint8_t data);
- void tokio_videoctrl_w(uint8_t data);
- void bublbobl_nmitrigger_w(uint8_t data);
- uint8_t tokiob_mcu_r();
- void bublbobl_soundcpu_reset_w(uint8_t data);
- uint8_t common_sound_semaphores_r();
- IRQ_CALLBACK_MEMBER(mcram_vect_r);
- uint8_t bublbobl_mcu_ddr1_r();
- void bublbobl_mcu_ddr1_w(uint8_t data);
- uint8_t bublbobl_mcu_ddr2_r();
- void bublbobl_mcu_ddr2_w(uint8_t data);
- uint8_t bublbobl_mcu_ddr3_r();
- void bublbobl_mcu_ddr3_w(uint8_t data);
- uint8_t bublbobl_mcu_ddr4_r();
- void bublbobl_mcu_ddr4_w(uint8_t data);
- uint8_t bublbobl_mcu_port1_r();
- void bublbobl_mcu_port1_w(uint8_t data);
- uint8_t bublbobl_mcu_port2_r();
- void bublbobl_mcu_port2_w(uint8_t data);
- uint8_t bublbobl_mcu_port3_r();
- void bublbobl_mcu_port3_w(uint8_t data);
- uint8_t bublbobl_mcu_port4_r();
- void bublbobl_mcu_port4_w(uint8_t data);
- uint8_t boblbobl_ic43_a_r(offs_t offset);
- void boblbobl_ic43_a_w(offs_t offset, uint8_t data);
- void boblbobl_ic43_b_w(offs_t offset, uint8_t data);
- uint8_t boblbobl_ic43_b_r(offs_t offset);
-
- void init_dland();
- void init_common();
- DECLARE_MACHINE_START(tokio);
- DECLARE_MACHINE_RESET(tokio);
- DECLARE_MACHINE_START(bublbobl);
- DECLARE_MACHINE_RESET(bublbobl);
- DECLARE_MACHINE_START(boblbobl);
- DECLARE_MACHINE_RESET(boblbobl);
- DECLARE_MACHINE_START(common);
- DECLARE_MACHINE_RESET(common);
- uint32_t screen_update_bublbobl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void configure_banks();
-
- void tokio(machine_config &config);
- void boblbobl(machine_config &config);
- void bublbobl(machine_config &config);
- void bublbobl_nomcu(machine_config &config);
- void bublboblp(machine_config &config);
- void tokiob(machine_config &config);
- void bootleg_map(address_map &map);
- void bublbobl_maincpu_map(address_map &map);
- void common_maincpu_map(address_map &map);
- void mcu_map(address_map &map);
- void sound_map(address_map &map);
- void subcpu_map(address_map &map);
- void tokio_map(address_map &map);
- void tokio_map_bootleg(address_map &map);
- void tokio_map_mcu(address_map &map);
- void tokio_sound_map(address_map &map);
- void tokio_subcpu_map(address_map &map);
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-
-class bub68705_state : public bublbobl_state
-{
-public:
- bub68705_state(const machine_config &mconfig, device_type type, const char *tag)
- : bublbobl_state(mconfig, type, tag)
- , m_mcu(*this, "mcu")
- , m_mux_ports(*this, { "DSW0", "DSW1", "IN1", "IN2" })
- , m_port_a_out(0xff)
- , m_port_b_out(0xff)
- , m_address(0)
- , m_latch(0)
- {
- }
-
- void port_a_w(uint8_t data);
- void port_b_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
-
- INTERRUPT_GEN_MEMBER(bublbobl_m68705_interrupt);
-
- DECLARE_MACHINE_START(bub68705);
- DECLARE_MACHINE_RESET(bub68705);
-
- void bub68705(machine_config &config);
-protected:
- required_device<m68705p_device> m_mcu;
- required_ioport_array<4> m_mux_ports;
-
- uint8_t m_port_a_out;
- uint8_t m_port_b_out;
- uint16_t m_address;
- uint8_t m_latch;
-};
-
-
-class bub8749_state : public bublbobl_state
-{
-public:
- bub8749_state(const machine_config &mconfig, device_type type, const char *tag)
- : bublbobl_state(mconfig, type, tag)
- , m_mcu(*this, "mcu")
- {
- }
-
- void bub8749(machine_config &config);
-
-protected:
- required_device<i8749_device> m_mcu;
-};
-
-#endif // MAME_INCLUDES_BUBLBOBL_H
diff --git a/src/mame/includes/buggychl.h b/src/mame/includes/buggychl.h
deleted file mode 100644
index 15b5e5febcb..00000000000
--- a/src/mame/includes/buggychl.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi, Nicola Salmoria
-/*
- buggychl
-*/
-#ifndef MAME_INCLUDES_BUGGYCHL_H
-#define MAME_INCLUDES_BUGGYCHL_H
-
-#pragma once
-
-#include "machine/taito68705interface.h"
-#include "machine/input_merger.h"
-#include "machine/gen_latch.h"
-#include "sound/msm5232.h"
-#include "sound/ta7630.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "screen.h"
-
-class buggychl_state : public driver_device
-{
-public:
- buggychl_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_charram(*this, "charram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_scrollv(*this, "scrollv"),
- m_scrollh(*this, "scrollh"),
- m_audiocpu(*this, "audiocpu"),
- m_maincpu(*this, "maincpu"),
- m_bmcu(*this, "bmcu"),
- m_ta7630(*this, "ta7630"),
- m_msm(*this, "msm"),
- m_ay1(*this, "ay1"),
- m_ay2(*this, "ay2"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundnmi(*this, "soundnmi"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_pedal_input(*this, "PEDAL"),
- m_led(*this, "led%u", 0U)
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_charram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scrollv;
- required_shared_ptr<uint8_t> m_scrollh;
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_maincpu;
- required_device<taito68705_mcu_device> m_bmcu;
- required_device<ta7630_device> m_ta7630;
- required_device<msm5232_device> m_msm;
- required_device<ay8910_device> m_ay1;
- required_device<ay8910_device> m_ay2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<input_merger_device> m_soundnmi;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
- required_ioport m_pedal_input;
-
- output_finder<1> m_led;
-
- void bankswitch_w(uint8_t data);
- void sound_enable_w(uint8_t data);
- uint8_t mcu_status_r();
- uint8_t sound_status_main_r();
- uint8_t sound_status_sound_r();
- void buggychl_chargen_w(offs_t offset, uint8_t data);
- void buggychl_sprite_lookup_bank_w(uint8_t data);
- void buggychl_sprite_lookup_w(offs_t offset, uint8_t data);
- void buggychl_ctrl_w(uint8_t data);
- void buggychl_bg_scrollx_w(uint8_t data);
- void ta7630_volbal_ay1_w(uint8_t data);
- void port_b_0_w(uint8_t data);
- void ta7630_volbal_ay2_w(uint8_t data);
- void port_b_1_w(uint8_t data);
- void ta7630_volbal_msm_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void buggychl_palette(palette_device &palette) const;
- uint32_t screen_update_buggychl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_CUSTOM_INPUT_MEMBER( pedal_in_r );
-
- void buggychl(machine_config &config);
- void buggychl_map(address_map &map);
- void sound_map(address_map &map);
-private:
- void draw_sky( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_bg( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_fg( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- /* video-related */
- bitmap_ind16 m_tmp_bitmap1;
- bitmap_ind16 m_tmp_bitmap2;
- int m_sl_bank;
- int m_bg_clip_on;
- int m_sky_on;
- int m_sprite_color_base;
- int m_bg_scrollx;
- bool m_sound_irq_enable;
- uint8_t m_sprite_lookup[0x2000];
-};
-
-#endif // MAME_INCLUDES_BUGGYCHL_H
diff --git a/src/mame/includes/bullet.h b/src/mame/includes/bullet.h
deleted file mode 100644
index ca3f3e4c705..00000000000
--- a/src/mame/includes/bullet.h
+++ /dev/null
@@ -1,189 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_BULLET_H
-#define MAME_INCLUDES_BULLET_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/scsi/scsi.h"
-#include "imagedev/floppy.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80ctc.h"
-#include "machine/z80dma.h"
-#include "machine/z80pio.h"
-#include "machine/z80sio.h"
-
-#define Z80_TAG "u20"
-#define Z80CTC_TAG "u1"
-#define Z80DMA_TAG "u50"
-#define Z80DART_TAG "u45"
-#define Z80PIO_TAG "z80pio"
-#define MB8877_TAG "u55"
-#define CENTRONICS_TAG "centronics"
-#define SCSIBUS_TAG "scsi"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-
-class bullet_state : public driver_device
-{
-public:
- bullet_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_ctc(*this, Z80CTC_TAG),
- m_dart(*this, Z80DART_TAG),
- m_dmac(*this, Z80DMA_TAG),
- m_fdc(*this, MB8877_TAG),
- m_ram(*this, RAM_TAG),
- m_floppy0(*this, MB8877_TAG":0"),
- m_floppy1(*this, MB8877_TAG":1"),
- m_floppy2(*this, MB8877_TAG":2"),
- m_floppy3(*this, MB8877_TAG":3"),
- m_floppy4(*this, MB8877_TAG":4"),
- m_floppy5(*this, MB8877_TAG":5"),
- m_floppy6(*this, MB8877_TAG":6"),
- m_floppy7(*this, MB8877_TAG":7"),
- m_floppy(nullptr),
- m_centronics(*this, CENTRONICS_TAG),
- m_rom(*this, Z80_TAG),
- m_sw1(*this, "SW1"),
- m_fdrdy(0),
- m_exdsk_sw(false),
- m_hdcon_sw(false)
- {
- }
-
- uint8_t mreq_r(offs_t offset);
- void mreq_w(offs_t offset, uint8_t data);
- uint8_t info_r();
- uint8_t brom_r();
- void brom_w(uint8_t data);
- uint8_t win_r();
- void wstrobe_w(uint8_t data);
- void exdsk_w(uint8_t data);
- void exdma_w(uint8_t data);
- void hdcon_w(uint8_t data);
- void segst_w(uint8_t data);
- uint8_t dma_mreq_r(offs_t offset);
- void dma_mreq_w(offs_t offset, uint8_t data);
- uint8_t pio_pb_r();
- DECLARE_WRITE_LINE_MEMBER( dartardy_w );
- DECLARE_WRITE_LINE_MEMBER( dartbrdy_w );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_busy );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_perror );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_select );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_fault );
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
-
- TIMER_DEVICE_CALLBACK_MEMBER(ctc_tick);
- DECLARE_WRITE_LINE_MEMBER(dart_rxtxca_w);
- uint8_t io_read_byte(offs_t offset);
- void io_write_byte(offs_t offset, uint8_t data);
-
- void bullet(machine_config &config);
- void bullet_io(address_map &map);
- void bullet_mem(address_map &map);
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void update_dma_rdy();
-
- required_device<z80_device> m_maincpu;
- required_device<z80ctc_device> m_ctc;
- required_device<z80dart_device> m_dart;
- required_device<z80dma_device> m_dmac;
- required_device<mb8877_device> m_fdc;
- required_device<ram_device> m_ram;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<floppy_connector> m_floppy2;
- required_device<floppy_connector> m_floppy3;
- required_device<floppy_connector> m_floppy4;
- required_device<floppy_connector> m_floppy5;
- required_device<floppy_connector> m_floppy6;
- required_device<floppy_connector> m_floppy7;
- floppy_image_device *m_floppy;
- required_device<centronics_device> m_centronics;
- required_memory_region m_rom;
- required_ioport m_sw1;
-
- // memory state
- int m_segst;
- int m_brom;
-
- // DMA state
- uint8_t m_exdma;
- int m_buf;
- bool m_fdrdy;
- int m_dartardy;
- int m_dartbrdy;
- int m_winrdy;
- int m_exrdy1;
- int m_exrdy2;
- bool m_exdsk_sw;
- bool m_hdcon_sw;
-
- int m_centronics_busy;
- int m_centronics_perror;
- int m_centronics_select;
- int m_centronics_fault;
-};
-
-class bulletf_state : public bullet_state
-{
-public:
- bulletf_state(const machine_config &mconfig, device_type type, const char *tag) :
- bullet_state(mconfig, type, tag),
- m_floppy8(*this, MB8877_TAG":8"),
- m_floppy9(*this, MB8877_TAG":9"),
- m_scsibus(*this, SCSIBUS_TAG),
- m_scsi_data_in(*this, "scsi_data_in"),
- m_scsi_data_out(*this, "scsi_data_out"),
- m_scsi_ctrl_in(*this, "scsi_ctrl_in")
- {
- }
-
- uint8_t mreq_r(offs_t offset);
- void mreq_w(offs_t offset, uint8_t data);
- void xdma0_w(uint8_t data);
- void xfdc_w(uint8_t data);
- void mbank_w(uint8_t data);
- uint8_t hwsts_r();
- uint8_t scsi_r();
- void scsi_w(uint8_t data);
-
- uint8_t dma_mreq_r(offs_t offset);
- void dma_mreq_w(offs_t offset, uint8_t data);
- void pio_pa_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( cstrb_w );
- DECLARE_WRITE_LINE_MEMBER( req_w );
-
- void bulletf(machine_config &config);
- void bulletf_io(address_map &map);
- void bulletf_mem(address_map &map);
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void update_dma_rdy();
-
- required_device<floppy_connector> m_floppy8;
- required_device<floppy_connector> m_floppy9;
- required_device<scsi_port_device> m_scsibus;
- required_device<input_buffer_device> m_scsi_data_in;
- required_device<output_latch_device> m_scsi_data_out;
- required_device<input_buffer_device> m_scsi_ctrl_in;
-
- int m_rome;
- uint8_t m_xdma0;
- uint8_t m_mbank;
- int m_wack;
- int m_wrdy;
-};
-
-#endif // MAME_INCLUDES_BULLET_H
diff --git a/src/mame/includes/busicom.h b/src/mame/includes/busicom.h
deleted file mode 100644
index 17472c538e9..00000000000
--- a/src/mame/includes/busicom.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/busicom.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_BUSICOM_H
-#define MAME_INCLUDES_BUSICOM_H
-
-#pragma once
-
-#include "cpu/mcs40/mcs40.h"
-#include "machine/timer.h"
-#include "emupal.h"
-
-class busicom_state : public driver_device
-{
-public:
- busicom_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_palette(*this, "palette")
- , m_input_lines(*this, "LINE%u", 0)
- {
- }
-
- void busicom(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- uint8_t keyboard_r();
- uint8_t printer_r();
- void shifter_w(uint8_t data);
- void printer_w(uint8_t data);
- void status_w(uint8_t data);
- void printer_ctrl_w(uint8_t data);
- void busicom_palette(palette_device &palette) const;
- uint32_t screen_update_busicom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(timer_callback);
- uint8_t get_bit_selected(uint32_t val,int num);
-
- void busicom_mem(address_map &map);
- void busicom_mp(address_map &map);
- void busicom_rom(address_map &map);
- void busicom_rp(address_map &map);
- void busicom_stat(address_map &map);
-
- uint8_t m_drum_index;
- uint16_t m_keyboard_shifter;
- uint32_t m_printer_shifter;
- uint8_t m_timer;
- uint8_t m_printer_line[11][17];
- uint8_t m_printer_line_color[11];
-
- required_device<i4004_cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- required_ioport_array<10> m_input_lines;
-};
-
-#endif // MAME_INCLUDES_BUSICOM_H
diff --git a/src/mame/includes/bw12.h b/src/mame/includes/bw12.h
deleted file mode 100644
index 56f47d24d91..00000000000
--- a/src/mame/includes/bw12.h
+++ /dev/null
@@ -1,146 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-
-#ifndef MAME_INCLUDES_BW12_H
-#define MAME_INCLUDES_BW12_H
-
-#include "cpu/z80/z80.h"
-#include "machine/ram.h"
-#include "formats/bw12_dsk.h"
-#include "imagedev/floppy.h"
-#include "machine/74259.h"
-#include "machine/6821pia.h"
-#include "bus/centronics/ctronics.h"
-#include "machine/kb3600.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/rescap.h"
-#include "machine/timer.h"
-#include "machine/upd765.h"
-#include "machine/z80sio.h"
-#include "video/mc6845.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "ic35"
-#define MC6845_TAG "ic14"
-#define UPD765_TAG "ic45"
-#define Z80SIO_TAG "ic15"
-#define PIT8253_TAG "ic34"
-#define PIA6821_TAG "ic16"
-#define AY3600PRO002_TAG "ic74"
-#define CENTRONICS_TAG "centronics"
-#define FLOPPY_TIMER_TAG "motor_off"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-
-#define BW12_VIDEORAM_MASK 0x7ff
-#define BW12_CHARROM_MASK 0xfff
-
-class bw12_state : public driver_device
-{
-public:
- bw12_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, Z80_TAG)
- , m_latch(*this, "latch")
- , m_pia(*this, PIA6821_TAG)
- , m_sio(*this, Z80SIO_TAG)
- , m_fdc(*this, UPD765_TAG)
- , m_kbc(*this, AY3600PRO002_TAG)
- , m_crtc(*this, MC6845_TAG)
- , m_pit(*this, PIT8253_TAG)
- , m_palette(*this, "palette")
- , m_centronics(*this, CENTRONICS_TAG)
- , m_ram(*this, RAM_TAG)
- , m_floppy0(*this, UPD765_TAG ":1:525dd")
- , m_floppy1(*this, UPD765_TAG ":2:525dd")
- , m_floppy_timer(*this, FLOPPY_TIMER_TAG)
- , m_rom(*this, Z80_TAG)
- , m_char_rom(*this, "chargen")
- , m_video_ram(*this, "video_ram")
- , m_modifiers(*this, "MODIFIERS")
- , m_bank(*this, "bank")
- { }
-
- void bw14(machine_config &config);
- void bw12(machine_config &config);
-
-private:
- void bankswitch();
-
- DECLARE_WRITE_LINE_MEMBER( ls138_a0_w );
- DECLARE_WRITE_LINE_MEMBER( ls138_a1_w );
- DECLARE_WRITE_LINE_MEMBER( init_w );
- DECLARE_WRITE_LINE_MEMBER( motor0_w );
- DECLARE_WRITE_LINE_MEMBER( motor1_w );
-
- uint8_t ls259_r(offs_t offset);
- uint8_t pia_pa_r();
- DECLARE_WRITE_LINE_MEMBER( pia_cb2_w );
- DECLARE_WRITE_LINE_MEMBER( pit_out2_w );
- DECLARE_READ_LINE_MEMBER( ay3600_shift_r );
- DECLARE_READ_LINE_MEMBER( ay3600_control_r );
- DECLARE_WRITE_LINE_MEMBER( ay3600_data_ready_w );
- MC6845_UPDATE_ROW( crtc_update_row );
-
- void floppy_motor_on_off();
- TIMER_DEVICE_CALLBACK_MEMBER(floppy_motor_off_tick);
- static void bw12_floppy_formats(format_registration &fr);
- static void bw14_floppy_formats(format_registration &fr);
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_fault);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
-
- void common(machine_config &config);
- void bw12_io(address_map &map);
- void bw12_mem(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_latch;
- required_device<pia6821_device> m_pia;
- required_device<z80sio_device> m_sio;
- required_device<upd765a_device> m_fdc;
- required_device<ay3600_device> m_kbc;
- required_device<mc6845_device> m_crtc;
- required_device<pit8253_device> m_pit;
- required_device<palette_device> m_palette;
- required_device<centronics_device> m_centronics;
- required_device<ram_device> m_ram;
- required_device<floppy_image_device> m_floppy0;
- required_device<floppy_image_device> m_floppy1;
- required_device<timer_device> m_floppy_timer;
- required_memory_region m_rom;
- required_memory_region m_char_rom;
- required_shared_ptr<uint8_t> m_video_ram;
- required_ioport m_modifiers;
- required_memory_bank m_bank;
-
- /* memory state */
- int m_curbank;
-
- /* PIT state */
- int m_pit_out2;
-
- /* keyboard state */
- int m_key_data[9];
- int m_key_sin;
- int m_key_stb;
- int m_key_shift;
-
- /* floppy state */
- int m_motor_on;
- int m_motor0;
- int m_motor1;
-
- int m_centronics_busy;
- int m_centronics_fault;
- int m_centronics_perror;
-};
-
-#endif
diff --git a/src/mame/includes/bw2.h b/src/mame/includes/bw2.h
deleted file mode 100644
index d4d64e68388..00000000000
--- a/src/mame/includes/bw2.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_BW2_H
-#define MAME_INCLUDES_BW2_H
-
-#pragma once
-
-#include "bus/bw2/exp.h"
-#include "cpu/z80/z80.h"
-#include "formats/bw2_dsk.h"
-#include "imagedev/floppy.h"
-#include "bus/centronics/ctronics.h"
-#include "machine/i8251.h"
-#include "machine/i8255.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-#include "video/msm6255.h"
-#include "emupal.h"
-
-#define Z80_TAG "ic1"
-#define I8255A_TAG "ic4"
-#define WD2797_TAG "ic5"
-#define MSM6255_TAG "ic49"
-#define CENTRONICS_TAG "centronics"
-#define RS232_TAG "rs232"
-#define SCREEN_TAG "screen"
-
-class bw2_state : public driver_device
-{
-public:
- bw2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_uart(*this, "ic7"),
- m_fdc(*this, WD2797_TAG),
- m_lcdc(*this, MSM6255_TAG),
- m_pit(*this, "ic6"),
- m_centronics(*this, CENTRONICS_TAG),
- m_exp(*this, BW2_EXPANSION_SLOT_TAG),
- m_ram(*this, RAM_TAG),
- m_floppy0(*this, WD2797_TAG":0"),
- m_floppy1(*this, WD2797_TAG":1"),
- m_floppy(nullptr),
- m_rom(*this, Z80_TAG),
- m_y(*this, "Y%u", 0),
- m_video_ram(*this, "videoram")
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<i8251_device> m_uart;
- required_device<wd2797_device> m_fdc;
- required_device<msm6255_device> m_lcdc;
- required_device<pit8253_device> m_pit;
- required_device<centronics_device> m_centronics;
- required_device<bw2_expansion_slot_device> m_exp;
- required_device<ram_device> m_ram;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- floppy_image_device *m_floppy;
- required_memory_region m_rom;
- required_ioport_array<10> m_y;
-
- virtual void machine_start() override;
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
-
- void ppi_pa_w(uint8_t data);
- uint8_t ppi_pb_r();
- void ppi_pc_w(uint8_t data);
- uint8_t ppi_pc_r();
-
- DECLARE_WRITE_LINE_MEMBER( mtron_w );
-
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
- static void floppy_formats(format_registration &fr);
-
- // keyboard state
- uint8_t m_kb;
-
- // memory state
- uint8_t m_bank;
-
- // floppy state
- int m_mtron;
- int m_mfdbk;
-
- // video state
- optional_shared_ptr<uint8_t> m_video_ram;
- void bw2_palette(palette_device &palette) const;
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- int m_centronics_busy;
- void bw2(machine_config &config);
- void bw2_io(address_map &map);
- void bw2_mem(address_map &map);
- void lcdc_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BW2_H
diff --git a/src/mame/includes/bwidow.h b/src/mame/includes/bwidow.h
deleted file mode 100644
index 4bcbb74868e..00000000000
--- a/src/mame/includes/bwidow.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver, Bernd Wiebelt, Allard van der Bas
-
-#ifndef MAME_INCLUDES_BWIDOW_H
-#define MAME_INCLUDES_BWIDOW_H
-
-#include "machine/er2055.h"
-
-#define MASTER_CLOCK (XTAL(12'096'000))
-#define CLOCK_3KHZ (MASTER_CLOCK / 4096)
-
-
-class bwidow_state : public driver_device
-{
-public:
- bwidow_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_earom(*this, "earom")
- , m_in3(*this, "IN3")
- , m_in4(*this, "IN4")
- , m_dsw2(*this, "DSW2")
- , m_leds(*this, "led%u", 0U)
- { }
-
- void spacduel(machine_config &config);
- void gravitar(machine_config &config);
- void bwidowp(machine_config &config);
- void bwidow(machine_config &config);
- void lunarbat(machine_config &config);
- void bwidow_audio(machine_config &config);
- void gravitar_audio(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(clock_r);
-
-protected:
- uint8_t spacduel_IN3_r(offs_t offset);
- uint8_t bwidowp_in_r();
- void bwidow_misc_w(uint8_t data);
- void spacduel_coin_counter_w(uint8_t data);
- void irq_ack_w(uint8_t data);
- uint8_t earom_read();
- void earom_write(offs_t offset, uint8_t data);
- void earom_control_w(uint8_t data);
-
- void bwidow_map(address_map &map);
- void bwidowp_map(address_map &map);
- void spacduel_map(address_map &map);
-
- virtual void machine_start() override { m_leds.resolve(); }
- virtual void machine_reset() override;
-
- int m_lastdata;
- required_device<cpu_device> m_maincpu;
- required_device<er2055_device> m_earom;
- optional_ioport m_in3;
- optional_ioport m_in4;
- optional_ioport m_dsw2;
- output_finder<2> m_leds;
-};
-
-#endif // MAME_INCLUDES_BWIDOW_H
diff --git a/src/mame/includes/bwing.h b/src/mame/includes/bwing.h
deleted file mode 100644
index 6675aca703a..00000000000
--- a/src/mame/includes/bwing.h
+++ /dev/null
@@ -1,100 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Acho A. Tang, Alex W. Jackson
-/***************************************************************************
-
- B-Wings
-
-***************************************************************************/
-
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#define BW_DEBUG 0
-
-class bwing_state : public driver_device
-{
-public:
- bwing_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_vrambank(*this, "vrambank"),
- m_soundlatch(*this, "soundlatch"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "paletteram"),
- m_fgscrollram(*this, "fgscrollram"),
- m_bgscrollram(*this, "bgscrollram"),
- m_gfxram(*this, "gfxram") { }
-
- /* device */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<address_map_bank_device> m_vrambank;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_paletteram;
- required_shared_ptr<uint8_t> m_fgscrollram;
- required_shared_ptr<uint8_t> m_bgscrollram;
- required_shared_ptr<uint8_t> m_gfxram;
-
- /* video-related */
- tilemap_t *m_charmap;
- tilemap_t *m_fgmap;
- tilemap_t *m_bgmap;
- unsigned m_sreg[8];
- unsigned m_palatch;
- unsigned m_mapmask;
-
- /* sound-related */
- int m_bwp3_nmimask;
- int m_bwp3_u8F_d;
-
- void bwp3_u8F_w(uint8_t data);
- void bwp3_nmimask_w(uint8_t data);
- void bwp3_nmiack_w(uint8_t data);
- void bwp1_ctrl_w(offs_t offset, uint8_t data);
- void bwp2_ctrl_w(offs_t offset, uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void fgscrollram_w(offs_t offset, uint8_t data);
- void bgscrollram_w(offs_t offset, uint8_t data);
- void gfxram_w(offs_t offset, uint8_t data);
- void scrollreg_w(offs_t offset, uint8_t data);
- void paletteram_w(offs_t offset, uint8_t data);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
- DECLARE_INPUT_CHANGED_MEMBER(tilt_pressed);
-
- TILE_GET_INFO_MEMBER(get_fgtileinfo);
- TILE_GET_INFO_MEMBER(get_bgtileinfo);
- TILE_GET_INFO_MEMBER(get_charinfo);
- TILEMAP_MAPPER_MEMBER(scan_cols);
-
- void init_bwing();
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void bwing_postload();
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bmp, const rectangle &clip, uint8_t *ram, int pri );
-
- INTERRUPT_GEN_MEMBER(bwp3_interrupt);
- void bwing(machine_config &config);
- void bank_map(address_map &map);
- void bwp1_map(address_map &map);
- void bwp2_map(address_map &map);
- void bwp3_io_map(address_map &map);
- void bwp3_map(address_map &map);
-};
diff --git a/src/mame/includes/bzone.h b/src/mame/includes/bzone.h
deleted file mode 100644
index e414bbbc05f..00000000000
--- a/src/mame/includes/bzone.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver, Nicola Salmoria
-/*************************************************************************
-
- Atari Battle Zone hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BZONE_H
-#define MAME_INCLUDES_BZONE_H
-
-#pragma once
-
-#include "audio/redbaron.h"
-#include "machine/er2055.h"
-#include "machine/mathbox.h"
-#include "sound/discrete.h"
-#include "screen.h"
-
-#define BZONE_MASTER_CLOCK (XTAL(12'096'000))
-#define BZONE_CLOCK_3KHZ (BZONE_MASTER_CLOCK / 4096)
-
-class bzone_state : public driver_device
-{
-public:
- bzone_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mathbox(*this, "mathbox"),
- m_discrete(*this, "discrete"),
- m_screen(*this, "screen"),
- m_startled(*this, "startled")
- { }
-
- DECLARE_READ_LINE_MEMBER(clock_r);
- void bzone(machine_config &config);
- void bradley(machine_config &config);
-
-protected:
- void bzone_coin_counter_w(offs_t offset, uint8_t data);
- uint8_t analog_data_r();
- void analog_select_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- INTERRUPT_GEN_MEMBER(bzone_interrupt);
- void bzone_sounds_w(uint8_t data);
-
- void bzone_base(machine_config &config);
- void bzone_audio(machine_config &config);
- void bzone_map(address_map &map);
- void bradley_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<mathbox_device> m_mathbox;
- optional_device<discrete_device> m_discrete;
- required_device<screen_device> m_screen;
- output_finder<> m_startled;
-
-private:
- uint8_t m_analog_data;
-};
-
-
-class redbaron_state : public bzone_state
-{
-public:
- redbaron_state(const machine_config &mconfig, device_type type, const char *tag) :
- bzone_state(mconfig, type, tag),
- m_earom(*this, "earom"),
- m_redbaronsound(*this, "custom"),
- m_fake_ports(*this, "FAKE%u", 1U)
- { }
-
- void redbaron(machine_config &config);
-
-protected:
- uint8_t redbaron_joy_r();
- void redbaron_joysound_w(uint8_t data);
- uint8_t earom_read();
- void earom_write(offs_t offset, uint8_t data);
- void earom_control_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void redbaron_map(address_map &map);
-
-private:
- required_device<er2055_device> m_earom;
- required_device<redbaron_sound_device> m_redbaronsound;
- required_ioport_array<2> m_fake_ports;
- uint8_t m_rb_input_select;
-};
-
-#endif // MAME_INCLUDES_BZONE_H
diff --git a/src/mame/includes/c65.h b/src/mame/includes/c65.h
deleted file mode 100644
index e8771e83fc1..00000000000
--- a/src/mame/includes/c65.h
+++ /dev/null
@@ -1,2 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders: Angelo Salese
diff --git a/src/mame/includes/c80.h b/src/mame/includes/c80.h
deleted file mode 100644
index 05122066232..00000000000
--- a/src/mame/includes/c80.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-
-#ifndef MAME_INCLUDES_C80_H
-#define MAME_INCLUDES_C80_H
-
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "machine/z80pio.h"
-#include "imagedev/cassette.h"
-#include "machine/ram.h"
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "d2"
-#define Z80PIO1_TAG "d11"
-#define Z80PIO2_TAG "d12"
-
-class c80_state : public driver_device
-{
-public:
- c80_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, Z80_TAG)
- , m_pio1(*this, Z80PIO1_TAG)
- , m_cassette(*this, "cassette")
- , m_row0(*this, "ROW0")
- , m_row1(*this, "ROW1")
- , m_row2(*this, "ROW2")
- , m_digits(*this, "digit%u", 0U)
- { }
-
- required_device<z80_device> m_maincpu;
- required_device<z80pio_device> m_pio1;
- required_device<cassette_image_device> m_cassette;
- required_ioport m_row0;
- required_ioport m_row1;
- required_ioport m_row2;
- output_finder<9> m_digits;
-
- virtual void machine_start() override;
-
- uint8_t pio1_pa_r();
- void pio1_pa_w(uint8_t data);
- void pio1_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( pio1_brdy_w );
- DECLARE_INPUT_CHANGED_MEMBER( trigger_reset );
- DECLARE_INPUT_CHANGED_MEMBER( trigger_nmi );
-
- /* keyboard state */
- int m_keylatch;
-
- /* display state */
- int m_digit;
- int m_pio1_a5;
- int m_pio1_brdy;
- void c80(machine_config &config);
- void c80_io(address_map &map);
- void c80_mem(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/cabal.h b/src/mame/includes/cabal.h
deleted file mode 100644
index 31d594ab827..00000000000
--- a/src/mame/includes/cabal.h
+++ /dev/null
@@ -1,116 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Carlos A. Lozano
-#ifndef MAME_INCLUDES_CABAL_H
-#define MAME_INCLUDES_CABAL_H
-
-#pragma once
-
-#include "audio/seibu.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class cabal_base_state : public driver_device
-{
-public:
- cabal_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_msm(*this, "msm%u", 1U),
- m_spriteram(*this, "spriteram"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram")
- { }
-
-protected:
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device_array<msm5205_device, 2> m_msm;
-
- void flipscreen_w(uint8_t data);
- void background_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void text_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-private:
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_colorram;
- required_shared_ptr<uint16_t> m_videoram;
-
- tilemap_t *m_background_layer;
- tilemap_t *m_text_layer;
-
- TILE_GET_INFO_MEMBER(get_back_tile_info);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-class cabal_state : public cabal_base_state
-{
-public:
- cabal_state(const machine_config &mconfig, device_type type, const char *tag) :
- cabal_base_state(mconfig, type, tag),
- m_seibu_sound(*this, "seibu_sound"),
- m_adpcm(*this, "adpcm%u", 1U)
- { }
-
- void cabal(machine_config &config);
- void cabalbl2(machine_config &config);
- void cabalt(machine_config &config);
-
- void init_cabal();
-
-private:
- required_device<seibu_sound_device> m_seibu_sound;
- required_device_array<seibu_adpcm_device, 2> m_adpcm;
-
- void sound_irq_trigger_word_w(offs_t, u16 data, u16 mem_mask);
-
- void main_map(address_map &map);
- void sound_decrypted_opcodes_map(address_map &map);
- void sound_map(address_map &map);
- void trackball_main_map(address_map &map);
- void cabalbl2_predecrypted_opcodes_map(address_map &map);
- void cabalbl2_sound_map(address_map &map);
-};
-
-class cabalbl_state : public cabal_base_state
-{
-public:
- cabalbl_state(const machine_config &mconfig, device_type type, const char *tag) :
- cabal_base_state(mconfig, type, tag)
- { }
-
- void cabalbl(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- int m_sound_command[2];
-
- void sndcmd_w(offs_t offset, uint16_t data);
- void sound_irq_trigger_word_w(uint16_t data);
- template<uint8_t Which> uint8_t snd_r();
- void coin_w(uint8_t data);
- template<uint8_t Which> void adpcm_w(uint8_t data);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void talk1_map(address_map &map);
- void talk1_portmap(address_map &map);
- void talk2_map(address_map &map);
- void talk2_portmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CABAL_H
diff --git a/src/mame/includes/calomega.h b/src/mame/includes/calomega.h
deleted file mode 100644
index 43ee91a0ff9..00000000000
--- a/src/mame/includes/calomega.h
+++ /dev/null
@@ -1,145 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders: Roberto Fresca, Grull Osgo
-
-#ifndef MAME_INCLUDES_CALOMEGA_H
-#define MAME_INCLUDES_CALOMEGA_H
-
-#pragma once
-
-#include "cpu/m6502/m6502.h"
-#include "cpu/m6502/r65c02.h"
-#include "machine/nvram.h"
-#include "machine/timer.h"
-#include "machine/6821pia.h"
-#include "machine/6850acia.h"
-#include "machine/clock.h"
-#include "machine/ticket.h"
-#include "sound/ay8910.h"
-#include "video/mc6845.h"
-#include "screen.h"
-#include "speaker.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class calomega_state : public driver_device
-{
-public:
- calomega_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_pia(*this, "pia%u", 0U),
- m_maincpu(*this, "maincpu"),
- m_acia6850_0(*this, "acia6850_0"),
- m_aciabaud(*this, "aciabaud"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_hopper(*this, "hopper"),
- m_in0(*this, "IN0"),
- m_in0_0(*this, "IN0-0"),
- m_in0_1(*this, "IN0-1"),
- m_in0_2(*this, "IN0-2"),
- m_in0_3(*this, "IN0-3"),
- m_frq(*this, "FRQ"),
- m_sw2(*this, "SW2"),
- m_lamps(*this, "lamp%u", 1U)
- {
- }
-
- void init_sys903();
- void init_s903mod();
- void init_sys905();
- void init_comg079();
- void init_comg080();
- void init_comg176();
- void init_any();
-
- void sys905(machine_config &config);
- void s903mod(machine_config &config);
- void sys906(machine_config &config);
- void sys903(machine_config &config);
-
-protected:
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
-
-private:
- void calomega_videoram_w(offs_t offset, uint8_t data);
- void calomega_colorram_w(offs_t offset, uint8_t data);
- uint8_t s903_mux_port_r();
- void s903_mux_w(uint8_t data);
- uint8_t s905_mux_port_r();
- void s905_mux_w(uint8_t data);
- uint8_t pia0_bin_r();
- void pia0_aout_w(uint8_t data);
- void pia0_bout_w(uint8_t data);
- uint8_t pia1_ain_r();
- uint8_t pia1_bin_r();
- uint8_t dummy_pia_r();
- void pia1_aout_w(uint8_t data);
- void pia1_bout_w(uint8_t data);
- void lamps_903a_w(uint8_t data);
- void lamps_903b_w(uint8_t data);
- void lamps_905_w(uint8_t data);
- void dummy_pia_w(uint8_t data);
-
- DECLARE_READ_LINE_MEMBER(timer_r);
- DECLARE_READ_LINE_MEMBER(vblank_r);
- DECLARE_READ_LINE_MEMBER(dummy_pia_line_r);
-
- DECLARE_WRITE_LINE_MEMBER(pia1_cb2_w);
- DECLARE_WRITE_LINE_MEMBER(vblank0_w);
- DECLARE_WRITE_LINE_MEMBER(vblank1_w);
- DECLARE_WRITE_LINE_MEMBER(vblank2_w);
- DECLARE_WRITE_LINE_MEMBER(dummy_pia_line_w);
- DECLARE_WRITE_LINE_MEMBER(write_acia_tx);
- DECLARE_WRITE_LINE_MEMBER(write_acia_clock);
- DECLARE_WRITE_LINE_MEMBER(update_aciabaud_scale);
-
- TIMER_DEVICE_CALLBACK_MEMBER(timer_0);
- TIMER_DEVICE_CALLBACK_MEMBER(timer_1);
- TIMER_DEVICE_CALLBACK_MEMBER(timer_2);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- uint32_t screen_update_calomega(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void calomega_palette(palette_device &palette) const;
-
- void s903mod_map(address_map &map);
- void sys903_map(address_map &map);
- void sys905_map(address_map &map);
- void sys906_map(address_map &map);
-
- optional_device_array<pia6821_device, 2> m_pia;
-
- required_device<m6502_device> m_maincpu;
- optional_device<acia6850_device> m_acia6850_0;
- optional_device<clock_device> m_aciabaud;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- required_device<ticket_dispenser_device> m_hopper;
-
- optional_ioport m_in0;
- optional_ioport m_in0_0;
- optional_ioport m_in0_1;
- optional_ioport m_in0_2;
- optional_ioport m_in0_3;
- optional_ioport m_frq;
- optional_ioport m_sw2;
- output_finder<9> m_lamps;
-
- uint8_t m_vblank, m_timer, m_tx_line;
- int m_s903_mux_data;
- int m_s905_mux_data;
- int m_pia_data;
- bool m_lockout = false;
- bool m_diverter;
- tilemap_t *m_bg_tilemap;
-};
-
-#endif // MAME_INCLUDES_CALOMEGA_H
diff --git a/src/mame/includes/canyon.h b/src/mame/includes/canyon.h
deleted file mode 100644
index f54b2002a85..00000000000
--- a/src/mame/includes/canyon.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-/*************************************************************************
-
- Atari Canyon Bomber hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CANYON_H
-#define MAME_INCLUDES_CANYON_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-#define CANYON_MOTOR1_DATA NODE_01
-#define CANYON_MOTOR2_DATA NODE_02
-#define CANYON_EXPLODE_DATA NODE_03
-#define CANYON_WHISTLE1_EN NODE_04
-#define CANYON_WHISTLE2_EN NODE_05
-#define CANYON_ATTRACT1_EN NODE_06
-#define CANYON_ATTRACT2_EN NODE_07
-
-
-
-class canyon_state : public driver_device
-{
-public:
- canyon_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_outlatch(*this, "outlatch"),
- m_discrete(*this, "discrete"),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void canyon(machine_config &config);
-
-protected:
- uint8_t canyon_switches_r(offs_t offset);
- uint8_t canyon_options_r(offs_t offset);
- void output_latch_w(offs_t offset, uint8_t data);
- void canyon_videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void canyon_palette(palette_device &palette) const;
- uint32_t screen_update_canyon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void canyon_motor_w(offs_t offset, uint8_t data);
- void canyon_explode_w(uint8_t data);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_bombs( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- virtual void video_start() override;
- void main_map(address_map &map);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
-
- required_device<f9334_device> m_outlatch;
- required_device<discrete_sound_device> m_discrete;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-};
-
-
-/*----------- defined in audio/canyon.c -----------*/
-DISCRETE_SOUND_EXTERN( canyon_discrete );
-
-#endif // MAME_INCLUDES_CANYON_H
diff --git a/src/mame/includes/capbowl.h b/src/mame/includes/capbowl.h
deleted file mode 100644
index 74b2f787de0..00000000000
--- a/src/mame/includes/capbowl.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/*************************************************************************
-
- Coors Light Bowling/Bowl-O-Rama hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CAPBOWL_H
-#define MAME_INCLUDES_CAPBOWL_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/nvram.h"
-#include "machine/watchdog.h"
-#include "video/tms34061.h"
-#include "screen.h"
-
-class capbowl_state : public driver_device
-{
-public:
- enum
- {
- TIMER_UPDATE
- };
-
- capbowl_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_audiocpu(*this, "audiocpu"),
- m_tms34061(*this, "tms34061"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch"),
- m_rowaddress(*this, "rowaddress")
- { }
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<cpu_device> m_audiocpu;
- required_device<tms34061_device> m_tms34061;
- required_device<screen_device> m_screen;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_rowaddress;
-
- /* video-related */
- offs_t m_blitter_addr;
-
- /* input-related */
- uint8_t m_last_trackball_val[2];
-
- emu_timer *m_update_timer;
-
- // common
- uint8_t track_0_r();
- uint8_t track_1_r();
- void track_reset_w(uint8_t data);
- void sndcmd_w(uint8_t data);
- void tms34061_w(offs_t offset, uint8_t data);
- uint8_t tms34061_r(offs_t offset);
-
- // capbowl specific
- void capbowl_rom_select_w(uint8_t data);
-
- // bowlrama specific
- void bowlrama_blitter_w(offs_t offset, uint8_t data);
- uint8_t bowlrama_blitter_r(offs_t offset);
-
- void init_capbowl();
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- INTERRUPT_GEN_MEMBER(interrupt);
- TIMER_CALLBACK_MEMBER(update);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- inline rgb_t pen_for_pixel( uint8_t const *src, uint8_t pix );
-
- void bowlrama(machine_config &config);
- void capbowl(machine_config &config);
- void bowlrama_map(address_map &map);
- void capbowl_map(address_map &map);
- void sound_map(address_map &map);
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_CAPBOWL_H
diff --git a/src/mame/includes/carpolo.h b/src/mame/includes/carpolo.h
deleted file mode 100644
index bd5b0cb860c..00000000000
--- a/src/mame/includes/carpolo.h
+++ /dev/null
@@ -1,162 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/***************************************************************************
-
- Exidy Car Polo hardware
-
- driver by Zsolt Vasvari
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_CARPOLO_H
-#define MAME_INCLUDES_CARPOLO_H
-
-#pragma once
-
-#include "cpu/m6502/m6502.h"
-#include "machine/6821pia.h"
-#include "machine/7474.h"
-#include "machine/74148.h"
-#include "machine/74153.h"
-#include "machine/netlist.h"
-#include "netlist/nl_setup.h"
-#include "audio/nl_carpolo.h"
-#include "emupal.h"
-
-class carpolo_state : public driver_device
-{
-public:
- carpolo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_ttl74148_3s(*this, "74148_3s")
- , m_ttl74153_1k(*this, "74153_1k")
- , m_ttl7474_2s_1(*this, "7474_2s_1")
- , m_ttl7474_2s_2(*this, "7474_2s_2")
- , m_ttl7474_2u_1(*this, "7474_2u_1")
- , m_ttl7474_2u_2(*this, "7474_2u_2")
- , m_ttl7474_1f_1(*this, "7474_1f_1")
- , m_ttl7474_1f_2(*this, "7474_1f_2")
- , m_ttl7474_1d_1(*this, "7474_1d_1")
- , m_ttl7474_1d_2(*this, "7474_1d_2")
- , m_ttl7474_1c_1(*this, "7474_1c_1")
- , m_ttl7474_1c_2(*this, "7474_1c_2")
- , m_ttl7474_1a_1(*this, "7474_1a_1")
- , m_ttl7474_1a_2(*this, "7474_1a_2")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_alpharam(*this, "alpharam")
- , m_spriteram(*this, "spriteram")
- , m_user1(*this, "user1")
- , m_dial(*this, "DIAL%u", 0U)
- , m_in(*this, "IN%u", 0U)
- , m_pedals(*this, "PEDALS")
- , m_player_crash(*this, "sound_nl:player_crash%u", 1U)
- { }
-
- void init_carpolo();
- void carpolo(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- uint8_t m_ball_screen_collision_cause;
- uint8_t m_car_ball_collision_x;
- uint8_t m_car_ball_collision_y;
- uint8_t m_car_car_collision_cause;
- uint8_t m_car_goal_collision_cause;
- uint8_t m_car_ball_collision_cause;
- uint8_t m_car_border_collision_cause;
- uint8_t m_priority_0_extension;
- uint8_t m_last_wheel_value[4];
- int m_ls153_za;
- int m_ls153_zb;
- required_device<m6502_device> m_maincpu;
- required_device<ttl74148_device> m_ttl74148_3s;
- required_device<ttl153_device> m_ttl74153_1k;
- required_device<ttl7474_device> m_ttl7474_2s_1;
- required_device<ttl7474_device> m_ttl7474_2s_2;
- required_device<ttl7474_device> m_ttl7474_2u_1;
- required_device<ttl7474_device> m_ttl7474_2u_2;
- required_device<ttl7474_device> m_ttl7474_1f_1;
- required_device<ttl7474_device> m_ttl7474_1f_2;
- required_device<ttl7474_device> m_ttl7474_1d_1;
- required_device<ttl7474_device> m_ttl7474_1d_2;
- required_device<ttl7474_device> m_ttl7474_1c_1;
- required_device<ttl7474_device> m_ttl7474_1c_2;
- required_device<ttl7474_device> m_ttl7474_1a_1;
- required_device<ttl7474_device> m_ttl7474_1a_2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_shared_ptr<uint8_t> m_alpharam;
- required_shared_ptr<uint8_t> m_spriteram;
- required_memory_region m_user1;
- required_ioport_array<4> m_dial;
- required_ioport_array<3> m_in;
- required_ioport m_pedals;
-
- std::unique_ptr<bitmap_ind16> m_sprite_sprite_collision_bitmap1;
- std::unique_ptr<bitmap_ind16> m_sprite_sprite_collision_bitmap2;
- std::unique_ptr<bitmap_ind16> m_sprite_goal_collision_bitmap1;
- std::unique_ptr<bitmap_ind16> m_sprite_goal_collision_bitmap2;
- std::unique_ptr<bitmap_ind16> m_sprite_border_collision_bitmap;
-
- uint8_t ball_screen_collision_cause_r();
- uint8_t car_ball_collision_x_r();
- uint8_t car_ball_collision_y_r();
- uint8_t car_car_collision_cause_r();
- uint8_t car_goal_collision_cause_r();
- uint8_t car_ball_collision_cause_r();
- uint8_t car_border_collision_cause_r();
- uint8_t interrupt_cause_r();
- void ball_screen_interrupt_clear_w(uint8_t data);
- void car_car_interrupt_clear_w(uint8_t data);
- void car_goal_interrupt_clear_w(uint8_t data);
- void car_ball_interrupt_clear_w(uint8_t data);
- void car_border_interrupt_clear_w(uint8_t data);
- void timer_interrupt_clear_w(uint8_t data);
- void carpolo_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- DECLARE_WRITE_LINE_MEMBER(coin1_interrupt_clear_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_interrupt_clear_w);
- DECLARE_WRITE_LINE_MEMBER(coin3_interrupt_clear_w);
- DECLARE_WRITE_LINE_MEMBER(coin4_interrupt_clear_w);
- void pia_0_port_a_w(uint8_t data);
- void pia_0_port_b_w(uint8_t data);
- uint8_t pia_0_port_b_r();
- uint8_t pia_1_port_a_r();
- uint8_t pia_1_port_b_r();
- DECLARE_WRITE_LINE_MEMBER(ttl7474_2s_1_q_cb);
- DECLARE_WRITE_LINE_MEMBER(ttl7474_2s_2_q_cb);
- DECLARE_WRITE_LINE_MEMBER(ttl7474_2u_1_q_cb);
- DECLARE_WRITE_LINE_MEMBER(ttl7474_2u_2_q_cb);
- DECLARE_WRITE_LINE_MEMBER(ls153_za_w);
- DECLARE_WRITE_LINE_MEMBER(ls153_zb_w);
-
- void ttl74148_3s_cb(uint8_t data);
-
- void timer_tick();
- void remap_sprite_code(int bank, int code, int *remapped_code, int *flipy);
- void normalize_coordinates(int *x1, int *y1, int *x2, int *y2);
- int check_sprite_left_goal_collision(int x1, int y1, int code1, int flipy1, int goalpost_only);
- int check_sprite_right_goal_collision(int x1, int y1, int code1, int flipy1, int goalpost_only);
- int check_sprite_border_collision(uint8_t x1, uint8_t y1, int code1, int flipy1);
- void generate_ball_screen_interrupt(uint8_t cause);
- void generate_car_car_interrupt(int car1, int car2);
- void generate_car_goal_interrupt(int car, int right_goal);
- void generate_car_ball_interrupt(int car, int car_x, int car_y);
- void generate_car_border_interrupt(int car, int horizontal_border);
- void draw_alpha_line(bitmap_ind16 &bitmap, const rectangle &cliprect, int alpha_line, int video_line);
- void draw_sprite(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t x, uint8_t y, int bank, int code, int col);
- int check_sprite_sprite_collision(int x1, int y1, int code1, int flipy1,
- int x2, int y2, int code2, int flipy2,
- int *col_x, int *col_y);
- void main_map(address_map &map);
-
- required_device_array<netlist_mame_logic_input_device, 4> m_player_crash;
-};
-
-#endif // MAME_INCLUDES_CARPOLO_H
diff --git a/src/mame/includes/cave.h b/src/mame/includes/cave.h
deleted file mode 100644
index c1d31c76ede..00000000000
--- a/src/mame/includes/cave.h
+++ /dev/null
@@ -1,360 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_CAVE_H
-#define MAME_INCLUDES_CAVE_H
-
-#pragma once
-
-/***************************************************************************
-
- Cave hardware
-
-***************************************************************************/
-
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/okim6295.h"
-#include "video/tmap038.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class cave_state : public driver_device
-{
-public:
- cave_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_videoregs(*this, "videoregs.%u", 0)
- , m_spriteram(*this, "spriteram.%u", 0)
- , m_io_in0(*this, "IN0")
- , m_touch_x(*this, "TOUCH%u_X", 1U)
- , m_touch_y(*this, "TOUCH%u_Y", 1U)
- , m_spriteregion(*this, "sprites%u", 0)
- , m_tileregion(*this, "layer%u", 0)
- , m_okiregion(*this, "oki%u", 1)
- , m_z80region(*this, "audiocpu")
- , m_z80bank(*this, "z80bank")
- , m_okibank_lo(*this, "oki%u_banklo", 1)
- , m_okibank_hi(*this, "oki%u_bankhi", 1)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_oki(*this, "oki%u", 1)
- , m_int_timer(*this, "int_timer")
- , m_int_timer_left(*this, "int_timer_left")
- , m_int_timer_right(*this, "int_timer_right")
- , m_eeprom(*this, "eeprom")
- , m_gfxdecode(*this, "gfxdecode.%u", 0U)
- , m_spr_gfxdecode(*this, "spr_gfxdecode.%u", 0U)
- , m_screen(*this, "screen.%u", 0U)
- , m_palette(*this, "palette.%u", 0U)
- , m_tilemap(*this, "tilemap.%u", 0U)
- , m_soundlatch(*this, "soundlatch")
- , m_startup(*this, "startup")
- , m_led_outputs(*this, "led%u", 0U)
- { }
-
- DECLARE_READ_LINE_MEMBER(korokoro_hopper_r);
- DECLARE_READ_LINE_MEMBER(tjumpman_hopper_r);
-
- void init_uopoko();
- void init_donpachi();
- void init_mazinger();
- void init_gaia();
- void init_pwrinst2();
- void init_ddonpach();
- void init_agallet();
- void init_hotdogst();
- void init_tjumpman();
- void init_korokoro();
- void init_esprade();
- void init_pwrinst2j();
- void init_guwange();
- void init_feversos();
- void init_sailormn();
- void init_dfeveron();
- void init_metmqstr();
- void init_ppsatan();
-
- void uopoko(machine_config &config);
- void sailormn(machine_config &config);
- void paceight(machine_config &config);
- void pacslot(machine_config &config);
- void paccarn(machine_config &config);
- void hotdogst(machine_config &config);
- void crusherm(machine_config &config);
- void donpachi(machine_config &config);
- void tekkencw(machine_config &config);
- void korokoro(machine_config &config);
- void esprade(machine_config &config);
- void mazinger(machine_config &config);
- void tjumpman(machine_config &config);
- void tekkenbs(machine_config &config);
- void gaia(machine_config &config);
- void metmqstr(machine_config &config);
- void ppsatan(machine_config &config);
- void guwange(machine_config &config);
- void dfeveron(machine_config &config);
- void ddonpach(machine_config &config);
- void pwrinst2(machine_config &config);
-
-protected:
- virtual void device_post_load() override;
-
-private:
-
- enum
- {
- TYPE_ZOOM = 0,
- TYPE_NOZOOM = 1,
- TYPE_ISPWRINST2 = 2
- };
-
- void (cave_state::*m_get_sprite_info)(int chip);
- void (cave_state::*m_sprite_draw)(int chip, int priority);
-
- void add_base_config(machine_config &config, int layer);
- void add_ymz(machine_config &config);
-
- u16 irq_cause_r(offs_t offset);
- u8 soundflags_r();
- u16 soundflags_ack_r();
- void sound_cmd_w(u16 data);
- u8 soundlatch_lo_r();
- u8 soundlatch_hi_r();
- u16 soundlatch_ack_r();
- void soundlatch_ack_w(u8 data);
- void gaia_coin_w(u8 data);
- u16 donpachi_videoregs_r(offs_t offset);
- template<int Chip> void videoregs_w(offs_t offset, u16 data, u16 mem_mask);
- void korokoro_leds_w(offs_t offset, u16 data, u16 mem_mask);
- template<int Chip> void pwrinst2_vctrl_w(offs_t offset, u16 data, u16 mem_mask);
- u16 sailormn_input0_r();
- void tjumpman_leds_w(u8 data);
- void pacslot_leds_w(u8 data);
- template<int Mask> void z80_rombank_w(u8 data);
- template<int Mask> void oki1_bank_w(u8 data);
- template<int Mask> void oki2_bank_w(u8 data);
- void eeprom_w(u8 data);
- void sailormn_eeprom_w(u8 data);
- void hotdogst_eeprom_w(u8 data);
- void guwange_eeprom_w(u8 data);
- void metmqstr_eeprom_w(u8 data);
- void korokoro_eeprom_w(offs_t offset, u16 data, u16 mem_mask);
- u16 pwrinst2_eeprom_r();
- void tjumpman_eeprom_w(u8 data);
- void ppsatan_eeprom_w(offs_t offset, u16 data, u16 mem_mask);
- void ppsatan_io_mux_w(offs_t offset, u16 data, u16 mem_mask);
- template<int Player> u16 ppsatan_touch_r();
- void ppsatan_out_w(offs_t offset, u16 data, u16 mem_mask);
- void sailormn_get_banked_code(bool tiledim, u32 &color, u32 &pri, u32 &code);
- DECLARE_MACHINE_RESET(sailormn);
- DECLARE_VIDEO_START(spr_4bpp);
- DECLARE_VIDEO_START(spr_8bpp);
- DECLARE_VIDEO_START(ppsatan);
- void cave_palette(palette_device &palette);
- void dfeveron_palette(palette_device &palette);
- void korokoro_palette(palette_device &palette);
- void mazinger_palette(palette_device &palette);
- void pwrinst2_palette(palette_device &palette);
- void sailormn_palette(palette_device &palette);
- void ppsatan_palette(palette_device &palette);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_ppsatan_core (screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int chip);
- u32 screen_update_ppsatan_top (screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_ppsatan_left (screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_ppsatan_right(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(interrupt);
- INTERRUPT_GEN_MEMBER(interrupt_ppsatan);
- TIMER_CALLBACK_MEMBER(vblank_end);
- TIMER_DEVICE_CALLBACK_MEMBER(vblank_start);
- TIMER_DEVICE_CALLBACK_MEMBER(vblank_start_left);
- TIMER_DEVICE_CALLBACK_MEMBER(vblank_start_right);
- TIMER_DEVICE_CALLBACK_MEMBER(timer_lev2_cb);
- TIMER_DEVICE_CALLBACK_MEMBER(sailormn_startup);
- void get_sprite_info(int chip);
- void sailormn_tilebank_w(int bank);
- DECLARE_WRITE_LINE_MEMBER(sound_irq_gen);
- void update_irq_state();
- void unpack_sprites(int chip);
- void sailormn_unpack_tiles(int chip);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- /* memory pointers */
- optional_shared_ptr_array<u16, 4> m_videoregs;
- optional_shared_ptr_array<u16, 4> m_spriteram;
-
- optional_ioport m_io_in0;
- optional_ioport_array<2> m_touch_x;
- optional_ioport_array<2> m_touch_y;
-
- /* memory regions */
- optional_memory_region_array<4> m_spriteregion;
- optional_memory_region_array<4> m_tileregion;
- optional_memory_region_array<2> m_okiregion;
- optional_memory_region m_z80region;
- optional_memory_bank m_z80bank;
- optional_memory_bank_array<2> m_okibank_lo;
- optional_memory_bank_array<2> m_okibank_hi;
-
- /* video-related */
- enum
- {
- MAX_PRIORITY = 4,
- MAX_SPRITE_NUM = 0x400
- };
-
- struct sprite_cave
- {
- sprite_cave() { }
-
- int priority = 0, flags = 0;
-
- const u8 *pen_data = nullptr; /* points to top left corner of tile data */
- int line_offset = 0;
-
- pen_t base_pen = 0;
- int tile_width = 0, tile_height = 0;
- int total_width = 0, total_height = 0; /* in screen coordinates */
- int x = 0, y = 0, xcount0 = 0, ycount0 = 0;
- int zoomx_re = 0, zoomy_re = 0;
- };
-
- struct
- {
- int clip_left, clip_right, clip_top, clip_bottom;
- u8 *baseaddr;
- int line_offset;
- u8 *baseaddr_zbuf;
- int line_offset_zbuf;
- } m_blit;
-
- std::unique_ptr<sprite_cave []> m_sprite[4];
- sprite_cave *m_sprite_table[4][MAX_PRIORITY][MAX_SPRITE_NUM + 1];
-
- bitmap_ind16 m_sprite_zbuf[4];
- u16 m_sprite_zbuf_baseval;
-
- std::unique_ptr<u8[]> m_sprite_gfx[4];
- offs_t m_sprite_gfx_mask[4];
-
- int m_num_sprites[4];
-
- int m_spriteram_bank[4];
- int m_spriteram_bank_delay[4];
-
- int m_layers_offs_x;
- int m_layers_offs_y;
- int m_row_effect_offs_n;
- int m_row_effect_offs_f;
- u16 m_background_pen[4];
-
- int m_spritetype[2];
- int m_kludge;
- emu_timer *m_vblank_end_timer;
-
- u16 m_sprite_granularity;
- u32 m_max_sprite_clk[4]; // max usable clock for sprites
-
- /* misc */
- int m_time_vblank_irq;
- u8 m_irq_level;
- u8 m_vblank_irq;
- u8 m_sound_irq;
- u8 m_unknown_irq;
- u8 m_agallet_vblank_irq;
-
- /* sound related */
- int m_soundbuf_wptr;
- int m_soundbuf_rptr;
- u8 m_soundbuf_data[32];
- bool m_soundbuf_empty;
- //u8 m_sound_flag[2];
-
- /* game specific */
- // sailormn
- int m_sailormn_tilebank;
- // korokoro
- u16 m_leds[2];
- int m_hopper;
- // ppsatan
- u16 m_ppsatan_io_mux;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device_array<okim6295_device, 2> m_oki;
- required_device<timer_device> m_int_timer;
- optional_device<timer_device> m_int_timer_left;
- optional_device<timer_device> m_int_timer_right;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device_array<gfxdecode_device, 4> m_gfxdecode;
- optional_device_array<gfxdecode_device, 4> m_spr_gfxdecode;
- optional_device_array<screen_device, 4> m_screen;
- optional_device_array<palette_device, 4> m_palette;
- optional_device_array<tilemap038_device, 4> m_tilemap;
- optional_device<generic_latch_16_device> m_soundlatch;
- optional_device<timer_device> m_startup;
- output_finder<9> m_led_outputs;
-
- int m_rasflag;
- int m_old_rasflag;
-
- inline void tilemap_draw(int chip, screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, u32 flags, u32 priority, u32 priority2, int GFX);
- void set_pens(int chip);
- void vh_start(u16 sprcol_granularity);
- void get_sprite_info_cave(int chip);
- void get_sprite_info_donpachi(int chip);
- void sprite_init();
- void sprite_check(int chip, int screen_no, screen_device &screen, const rectangle &clip);
- void do_blit_zoom32(int chip, const sprite_cave *sprite);
- void do_blit_zoom32_zb(int chip, const sprite_cave *sprite);
- void do_blit_32(int chip, const sprite_cave *sprite);
- void do_blit_32_zb(int chip, const sprite_cave *sprite);
- void sprite_draw_cave(int chip, int priority);
- void sprite_draw_cave_zbuf(int chip, int priority);
- void sprite_draw_donpachi(int chip, int priority);
- void sprite_draw_donpachi_zbuf(int chip, int priority);
- void init_cave();
- void init_z80_bank();
- void init_oki_bank(int chip);
- void show_leds();
-
- void crusherm_map(address_map &map);
- void ddonpach_map(address_map &map);
- void dfeveron_map(address_map &map);
- void donpachi_map(address_map &map);
- void esprade_map(address_map &map);
- void gaia_map(address_map &map);
- void guwange_map(address_map &map);
- void hotdogst_map(address_map &map);
- void hotdogst_sound_map(address_map &map);
- void hotdogst_sound_portmap(address_map &map);
- void korokoro_map(address_map &map);
- void mazinger_map(address_map &map);
- void mazinger_sound_map(address_map &map);
- void mazinger_sound_portmap(address_map &map);
- void metmqstr_map(address_map &map);
- void metmqstr_sound_map(address_map &map);
- void metmqstr_sound_portmap(address_map &map);
- void oki2_map(address_map &map);
- void oki_map(address_map &map);
- void paccarn_map(address_map &map);
- void paceight_map(address_map &map);
- void pacslot_map(address_map &map);
- void ppsatan_map(address_map &map);
- void pwrinst2_map(address_map &map);
- void pwrinst2_sound_map(address_map &map);
- void pwrinst2_sound_portmap(address_map &map);
- void sailormn_map(address_map &map);
- void sailormn_sound_map(address_map &map);
- void sailormn_sound_portmap(address_map &map);
- void tekkenbs_map(address_map &map);
- void tekkencw_map(address_map &map);
- void tjumpman_map(address_map &map);
- void uopoko_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CAVE_H
diff --git a/src/mame/includes/cbasebal.h b/src/mame/includes/cbasebal.h
deleted file mode 100644
index c6c1e95c1b6..00000000000
--- a/src/mame/includes/cbasebal.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Capcom Baseball
-
-*************************************************************************/
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class cbasebal_state : public driver_device
-{
-public:
- cbasebal_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette") { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- std::unique_ptr<uint8_t[]> m_textram;
- std::unique_ptr<uint8_t[]> m_scrollram;
- std::unique_ptr<uint8_t[]> m_decoded;
- uint8_t m_scroll_x[2];
- uint8_t m_scroll_y[2];
- int m_tilebank;
- int m_spritebank;
- int m_text_on;
- int m_bg_on;
- int m_obj_on;
- int m_flipscreen;
-
- /* misc */
- uint8_t m_rambank;
- void cbasebal_bankswitch_w(uint8_t data);
- uint8_t bankedram_r(offs_t offset);
- void bankedram_w(offs_t offset, uint8_t data);
- void cbasebal_coinctrl_w(uint8_t data);
- void cbasebal_textram_w(offs_t offset, uint8_t data);
- uint8_t cbasebal_textram_r(offs_t offset);
- void cbasebal_scrollram_w(offs_t offset, uint8_t data);
- uint8_t cbasebal_scrollram_r(offs_t offset);
- void cbasebal_gfxctrl_w(uint8_t data);
- void cbasebal_scrollx_w(offs_t offset, uint8_t data);
- void cbasebal_scrolly_w(offs_t offset, uint8_t data);
- void init_cbasebal();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_cbasebal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void cbasebal(machine_config &config);
- void cbasebal_map(address_map &map);
- void cbasebal_portmap(address_map &map);
- void decrypted_opcodes_map(address_map &map);
-};
diff --git a/src/mame/includes/cbuster.h b/src/mame/includes/cbuster.h
deleted file mode 100644
index 660028ce6f7..00000000000
--- a/src/mame/includes/cbuster.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Crude Buster
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CBUSTER_H
-#define MAME_INCLUDES_CBUSTER_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "cpu/h6280/h6280.h"
-#include "video/bufsprite.h"
-#include "video/decospr.h"
-#include "video/deco16ic.h"
-#include "emupal.h"
-
-class cbuster_state : public driver_device
-{
-public:
- cbuster_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_deco_tilegen(*this, "tilegen%u", 1U)
- , m_palette(*this, "palette")
- , m_spriteram(*this, "spriteram")
- , m_soundlatch(*this, "soundlatch")
- , m_sprgen(*this, "spritegen")
- , m_pf_rowscroll(*this, "pf%u_rowscroll", 1U)
- { }
-
- void init_twocrude();
-
- void twocrude(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device_array<deco16ic_device, 2> m_deco_tilegen;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram16_device> m_spriteram;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<decospr_device> m_sprgen;
-
- /* memory pointers */
- required_shared_ptr_array<u16, 4> m_pf_rowscroll;
-
- /* misc */
- u16 m_prot;
- int m_pri;
-
- void prot_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 prot_r();
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- static rgb_t cbuster_XBGR_888(u32 raw);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CBUSTER_H
diff --git a/src/mame/includes/ccastles.h b/src/mame/includes/ccastles.h
deleted file mode 100644
index f67243d9115..00000000000
--- a/src/mame/includes/ccastles.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Crystal Castles hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CCASTLES_H
-#define MAME_INCLUDES_CCASTLES_H
-
-#pragma once
-
-#include "cpu/m6502/m6502.h"
-#include "machine/74259.h"
-#include "machine/x2212.h"
-#include "emupal.h"
-#include "screen.h"
-
-class ccastles_state : public driver_device
-{
-public:
- ccastles_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_nvram_4b(*this, "nvram_4b"),
- m_nvram_4a(*this, "nvram_4a"),
- m_outlatch(*this, "outlatch%u", 0U),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- DECLARE_READ_LINE_MEMBER(vblank_r);
- void ccastles(machine_config &config);
-
-protected:
- void irq_ack_w(uint8_t data);
- uint8_t leta_r(offs_t offset);
- void nvram_recall_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(nvram_store_w);
- uint8_t nvram_r(address_space &space, offs_t offset);
- void nvram_w(offs_t offset, uint8_t data);
- void ccastles_hscroll_w(uint8_t data);
- void ccastles_vscroll_w(uint8_t data);
- void ccastles_video_control_w(offs_t offset, uint8_t data);
- void ccastles_paletteram_w(offs_t offset, uint8_t data);
- void ccastles_videoram_w(offs_t offset, uint8_t data);
- uint8_t ccastles_bitmode_r();
- void ccastles_bitmode_w(uint8_t data);
- void ccastles_bitmode_addr_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_ccastles(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(clock_irq);
- inline void ccastles_write_vram( uint16_t addr, uint8_t data, uint8_t bitmd, uint8_t pixba );
- inline void bitmode_autoinc( );
- inline void schedule_next_irq( int curscanline );
- void main_map(address_map &map);
-
-private:
- /* devices */
- required_device<m6502_device> m_maincpu;
- required_device<x2212_device> m_nvram_4b;
- required_device<x2212_device> m_nvram_4a;
- required_device_array<ls259_device, 2> m_outlatch;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* video-related */
- const uint8_t *m_syncprom;
- const uint8_t *m_wpprom;
- const uint8_t *m_priprom;
- bitmap_ind16 m_spritebitmap;
- double m_rweights[3];
- double m_gweights[3];
- double m_bweights[3];
- uint8_t m_bitmode_addr[2];
- uint8_t m_hscroll;
- uint8_t m_vscroll;
-
- /* misc */
- int m_vblank_start;
- int m_vblank_end;
- emu_timer *m_irq_timer;
- uint8_t m_irq_state;
-};
-
-#endif // MAME_INCLUDES_CCASTLES_H
diff --git a/src/mame/includes/cchasm.h b/src/mame/includes/cchasm.h
deleted file mode 100644
index b4f20542a0e..00000000000
--- a/src/mame/includes/cchasm.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mathis Rosenhauer
-
-/*************************************************************************
-
- Cinematronics Cosmic Chasm hardware
-
-*************************************************************************/
-
-#include "cpu/z80/z80.h"
-#include "machine/gen_latch.h"
-#include "machine/z80ctc.h"
-#include "sound/dac.h"
-#include "video/vector.h"
-#include "screen.h"
-
-class cchasm_state : public driver_device
-{
-public:
- enum
- {
- TIMER_REFRESH_END
- };
-
- cchasm_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ctc(*this, "ctc"),
- m_audiocpu(*this, "audiocpu"),
- m_dac1(*this, "dac1"),
- m_dac2(*this, "dac2"),
- m_vector(*this, "vector"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_soundlatch3(*this, "soundlatch3"),
- m_soundlatch4(*this, "soundlatch4"),
- m_ram(*this, "ram") { }
-
- required_device<cpu_device> m_maincpu;
- required_device<z80ctc_device> m_ctc;
- required_device<z80_device> m_audiocpu;
- required_device<dac_bit_interface> m_dac1;
- required_device<dac_bit_interface> m_dac2;
- required_device<vector_device> m_vector;
- required_device<screen_device> m_screen;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
- required_device<generic_latch_8_device> m_soundlatch3;
- required_device<generic_latch_8_device> m_soundlatch4;
-
- required_shared_ptr<uint16_t> m_ram;
-
- int m_sound_flags;
- int m_coin_flag;
- int m_output[2];
- int m_xcenter;
- int m_ycenter;
- emu_timer *m_refresh_end_timer;
-
- void led_w(offs_t offset, uint16_t data);
- void refresh_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void reset_coin_flag_w(uint8_t data);
- uint8_t coin_sound_r();
- uint8_t soundlatch2_r();
- void soundlatch4_w(uint8_t data);
- void io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t io_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(ctc_timer_1_w);
- DECLARE_WRITE_LINE_MEMBER(ctc_timer_2_w);
-
- INPUT_CHANGED_MEMBER(set_coin_flag);
-
- virtual void video_start() override;
- virtual void sound_start() override;
-
- void refresh();
-
- void cchasm(machine_config &config);
- void memmap(address_map &map);
- void sound_memmap(address_map &map);
- void sound_portmap(address_map &map);
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
diff --git a/src/mame/includes/cclimber.h b/src/mame/includes/cclimber.h
deleted file mode 100644
index 28f14eabdda..00000000000
--- a/src/mame/includes/cclimber.h
+++ /dev/null
@@ -1,159 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_CCLIMBER_H
-#define MAME_INCLUDES_CCLIMBER_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/gen_latch.h"
-#include "machine/segacrpt_device.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class cclimber_state : public driver_device
-{
-public:
- cclimber_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_mainlatch(*this, "mainlatch"),
- m_soundlatch(*this, "soundlatch"),
- m_bigsprite_videoram(*this, "bigspriteram"),
- m_videoram(*this, "videoram"),
- m_column_scroll(*this, "column_scroll"),
- m_spriteram(*this, "spriteram"),
- m_bigsprite_control(*this, "bigspritectrl"),
- m_colorram(*this, "colorram"),
- m_swimmer_background_color(*this, "bgcolor"),
- m_toprollr_bg_videoram(*this, "bg_videoram"),
- m_toprollr_bg_coloram(*this, "bg_coloram"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void init_cannonb();
- void init_cannonb2();
- void init_cclimber();
- void init_cclimberj();
- void init_ckongb();
- void init_dking();
- void init_rpatrol();
- void init_toprollr();
- void init_yamato();
-
- void root(machine_config &config);
- void bagmanf(machine_config &config);
- void cannonb(machine_config &config);
- void cclimber(machine_config &config);
- void cclimberx(machine_config &config);
- void ckongb(machine_config &config);
- void guzzler(machine_config &config);
- void rpatrol(machine_config &config);
- void swimmer(machine_config &config);
- void toprollr(machine_config &config);
- void yamato(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<ls259_device> m_mainlatch;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_bigsprite_videoram;
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_column_scroll;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_bigsprite_control;
- required_shared_ptr<uint8_t> m_colorram;
- optional_shared_ptr<uint8_t> m_swimmer_background_color;
- optional_shared_ptr<uint8_t> m_toprollr_bg_videoram;
- optional_shared_ptr<uint8_t> m_toprollr_bg_coloram;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- bool m_flip_x;
- bool m_flip_y;
- bool m_swimmer_side_background_enabled;
- bool m_swimmer_palettebank;
-
- uint8_t m_yamato_p0;
- uint8_t m_yamato_p1;
- uint8_t m_toprollr_rombank;
- bool m_nmi_mask;
- tilemap_t *m_pf_tilemap;
- tilemap_t *m_bs_tilemap;
- tilemap_t *m_toproller_bg_tilemap;
- std::unique_ptr<uint8_t[]> m_opcodes;
-
- void swimmer_sh_soundlatch_w(uint8_t data);
- void yamato_p0_w(uint8_t data);
- void yamato_p1_w(uint8_t data);
- uint8_t yamato_p0_r();
- uint8_t yamato_p1_r();
- void toprollr_rombank_w(int state);
- void nmi_mask_w(int state);
- uint8_t bagmanf_a000_r();
- void cclimber_colorram_w(offs_t offset, uint8_t data);
- void flip_screen_x_w(int state);
- void flip_screen_y_w(int state);
- void sidebg_enable_w(int state);
- void palette_bank_w(int state);
- void vblank_irq(int state);
- void bagmanf_vblank_irq(int state);
-
- DECLARE_VIDEO_START(cclimber);
- void cclimber_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(swimmer);
- void swimmer_palette(palette_device &palette) const;
- void yamato_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(toprollr);
- void toprollr_palette(palette_device &palette) const;
-
- TILE_GET_INFO_MEMBER(cclimber_get_pf_tile_info);
- TILE_GET_INFO_MEMBER(swimmer_get_pf_tile_info);
- TILE_GET_INFO_MEMBER(toprollr_get_pf_tile_info);
- TILE_GET_INFO_MEMBER(cclimber_get_bs_tile_info);
- TILE_GET_INFO_MEMBER(toprollr_get_bs_tile_info);
- TILE_GET_INFO_MEMBER(toproller_get_bg_tile_info);
-
- uint32_t screen_update_cclimber(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_swimmer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_yamato(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_toprollr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void swimmer_set_background_pen();
- void draw_playfield(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void cclimber_draw_bigsprite(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void toprollr_draw_bigsprite(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void cclimber_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx);
- void toprollr_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx);
- void swimmer_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx);
- void cclimber_decode(const uint8_t convtable[8][16]);
-
- void bagmanf_map(address_map &map);
- void cannonb_map(address_map &map);
- void cclimber_map(address_map &map);
- void cclimber_portmap(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void guzzler_map(address_map &map);
- void rpatrol_map(address_map &map);
- void rpatrol_portmap(address_map &map);
- void swimmer_audio_map(address_map &map);
- void swimmer_audio_portmap(address_map &map);
- void swimmer_map(address_map &map);
- void toprollr_decrypted_opcodes_map(address_map &map);
- void toprollr_map(address_map &map);
- void yamato_audio_map(address_map &map);
- void yamato_audio_portmap(address_map &map);
- void yamato_decrypted_opcodes_map(address_map &map);
- void yamato_map(address_map &map);
- void yamato_portmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CCLIMBER_H
diff --git a/src/mame/includes/cdi.h b/src/mame/includes/cdi.h
deleted file mode 100644
index a77b8390b27..00000000000
--- a/src/mame/includes/cdi.h
+++ /dev/null
@@ -1,122 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz
-
-#ifndef MAME_INCLUDES_CDI_H
-#define MAME_INCLUDES_CDI_H
-
-#include "machine/scc68070.h"
-#include "machine/cdislavehle.h"
-#include "machine/cdicdic.h"
-#include "sound/dmadac.h"
-#include "video/mcd212.h"
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/m6805/m68hc05.h"
-#include "screen.h"
-
-/*----------- driver state -----------*/
-
-class cdi_state : public driver_device
-{
-public:
- cdi_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_planea(*this, "mcd212:planea")
- , m_slave_hle(*this, "slave_hle")
- , m_servo(*this, "servo")
- , m_slave(*this, "slave")
- , m_cdic(*this, "cdic")
- , m_cdda(*this, "cdda")
- , m_mcd212(*this, "mcd212")
- , m_lcd(*this, "lcd")
- , m_dmadac(*this, "dac%u", 1U)
- { }
-
- void cdimono1_base(machine_config &config);
- void cdimono1(machine_config &config);
- void cdimono2(machine_config &config);
- void cdi910(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
- void cdimono1_mem(address_map &map);
-
- required_device<scc68070_device> m_maincpu;
-
-private:
- virtual void video_start() override;
-
- enum servo_portc_bit_t
- {
- INV_JUC_OUT = (1 << 2),
- INV_DIV4_IN = (1 << 5),
- INV_CADDYSWITCH_IN = (1 << 7)
- };
-
- void draw_lcd(int y);
- uint32_t screen_update_cdimono1_lcd(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void cdi910_mem(address_map &map);
- void cdimono2_mem(address_map &map);
- void cdi070_cpuspace(address_map &map);
-
- uint16_t dvc_r(offs_t offset, uint16_t mem_mask = ~0);
- void dvc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- required_shared_ptr<uint16_t> m_planea;
- optional_device<cdislave_hle_device> m_slave_hle;
- optional_device<m68hc05c8_device> m_servo;
- optional_device<m68hc05c8_device> m_slave;
- optional_device<cdicdic_device> m_cdic;
- required_device<cdda_device> m_cdda;
- required_device<mcd212_device> m_mcd212;
- optional_device<screen_device> m_lcd;
-
- required_device_array<dmadac_sound_device, 2> m_dmadac;
-
- bitmap_rgb32 m_lcdbitmap;
-};
-
-class quizard_state : public cdi_state
-{
-public:
- quizard_state(const machine_config &mconfig, device_type type, const char *tag)
- : cdi_state(mconfig, type, tag)
- , m_mcu(*this, "mcu")
- , m_inputs(*this, "P%u", 0U)
- { }
-
- void quizard(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t mcu_p0_r();
- uint8_t mcu_p1_r();
- uint8_t mcu_p2_r();
- uint8_t mcu_p3_r();
- void mcu_p0_w(uint8_t data);
- void mcu_p1_w(uint8_t data);
- void mcu_p2_w(uint8_t data);
- void mcu_p3_w(uint8_t data);
- void mcu_tx(uint8_t data);
- uint8_t mcu_rx();
-
- void mcu_rx_from_cpu(uint8_t data);
- void mcu_rtsn_from_cpu(int state);
-
- required_device<i8751_device> m_mcu;
- required_ioport_array<3> m_inputs;
-
- uint8_t m_mcu_rx_from_cpu;
- bool m_mcu_initial_byte;
-};
-
-// Quizard 2 language values:
-// 0x2b1: Italian
-// 0x001: French
-// 0x188: German
-
-#endif // MAME_INCLUDES_CDI_H
diff --git a/src/mame/includes/centiped.h b/src/mame/includes/centiped.h
deleted file mode 100644
index 833cc5838a8..00000000000
--- a/src/mame/includes/centiped.h
+++ /dev/null
@@ -1,188 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Atari Centipede hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CENTIPED_H
-#define MAME_INCLUDES_CENTIPED_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/eepromser.h"
-#include "machine/er2055.h"
-#include "machine/timer.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class centiped_state : public driver_device
-{
-public:
- centiped_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_rambase(*this, "rambase"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "paletteram"),
- m_bullsdrt_tiles_bankram(*this, "bullsdrt_bank"),
- m_outlatch(*this, "outlatch"),
- m_earom(*this, "earom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_aysnd(*this, "aysnd")
- { }
-
- void centiped_base(machine_config &config);
- void milliped(machine_config &config);
- void bullsdrt(machine_config &config);
- void centipdb(machine_config &config);
- void magworm(machine_config &config);
- void caterplr(machine_config &config);
- void centiped(machine_config &config);
- void centipedj(machine_config &config);
- void mazeinv(machine_config &config);
- void warlords(machine_config &config);
-
- void init_bullsdrt();
-
-protected:
- required_device<cpu_device> m_maincpu;
-
- uint8_t m_gfx_bank;
- tilemap_t *m_bg_tilemap;
-
- // drivers/centiped.cpp
- virtual void machine_start() override;
-
- void irq_ack_w(uint8_t data);
- uint8_t centiped_IN0_r();
- uint8_t centiped_IN2_r();
- uint8_t milliped_IN1_r();
- uint8_t milliped_IN2_r();
-
- // video/centiped.cpp
- void centiped_videoram_w(offs_t offset, uint8_t data);
- void milliped_paletteram_w(offs_t offset, uint8_t data);
-
-private:
- optional_shared_ptr<uint8_t> m_rambase;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_paletteram;
- optional_shared_ptr<uint8_t> m_bullsdrt_tiles_bankram;
-
- required_device<ls259_device> m_outlatch;
- optional_device<er2055_device> m_earom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<ay8910_device> m_aysnd;
-
- uint8_t m_oldpos[4];
- uint8_t m_sign[4];
- uint8_t m_dsw_select;
- uint8_t m_control_select;
- uint8_t m_flipscreen;
- uint8_t m_bullsdrt_sprites_bank;
- uint8_t m_penmask[64];
-
- // drivers/centiped.cpp
- DECLARE_WRITE_LINE_MEMBER(input_select_w);
- DECLARE_WRITE_LINE_MEMBER(control_select_w);
- uint8_t mazeinv_input_r();
- void mazeinv_input_select_w(offs_t offset, uint8_t data);
- uint8_t bullsdrt_data_port_r();
- DECLARE_WRITE_LINE_MEMBER(coin_counter_left_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_center_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_right_w);
- DECLARE_WRITE_LINE_MEMBER(bullsdrt_coin_count_w);
- uint8_t earom_read();
- void earom_write(offs_t offset, uint8_t data);
- void earom_control_w(uint8_t data);
- uint8_t caterplr_unknown_r();
- void caterplr_AY8910_w(offs_t offset, uint8_t data);
- uint8_t caterplr_AY8910_r(offs_t offset);
-
- // video/centiped.cpp
- DECLARE_WRITE_LINE_MEMBER(flip_screen_w);
- void bullsdrt_tilesbank_w(offs_t offset, uint8_t data);
- void bullsdrt_sprites_bank_w(uint8_t data);
- void centiped_paletteram_w(offs_t offset, uint8_t data);
- void mazeinv_paletteram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(centiped_get_tile_info);
- TILE_GET_INFO_MEMBER(warlords_get_tile_info);
- TILE_GET_INFO_MEMBER(milliped_get_tile_info);
- TILE_GET_INFO_MEMBER(bullsdrt_get_tile_info);
- DECLARE_MACHINE_RESET(centiped);
- DECLARE_VIDEO_START(centiped);
- DECLARE_VIDEO_START(bullsdrt);
- DECLARE_MACHINE_RESET(magworm);
- DECLARE_VIDEO_START(milliped);
- DECLARE_VIDEO_START(warlords);
- void warlords_palette(palette_device &palette) const;
- uint32_t screen_update_centiped(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_bullsdrt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_milliped(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_warlords(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(generate_interrupt);
- void init_penmask();
- void init_common();
- void milliped_set_color(offs_t offset, uint8_t data);
- inline int read_trackball(int idx, int switch_port);
- void bullsdrt_data_map(address_map &map);
- void bullsdrt_map(address_map &map);
- void bullsdrt_port_map(address_map &map);
- void caterplr_map(address_map &map);
- void centipdb_map(address_map &map);
- void centiped_base_map(address_map &map);
- void centiped_map(address_map &map);
- void centipedj_map(address_map &map);
- void magworm_map(address_map &map);
- void mazeinv_map(address_map &map);
- void milliped_map(address_map &map);
- void warlords_map(address_map &map);
-};
-
-
-class multiped_state : public centiped_state
-{
-public:
- multiped_state(const machine_config &mconfig, device_type type, const char *tag) :
- centiped_state(mconfig, type, tag),
- m_eeprom(*this, "eeprom"),
- m_rombank(*this, "rombank")
- { }
-
- void multiped(machine_config &config);
-
- void init_multiped();
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_memory_bank m_rombank;
-
- uint8_t m_prg_bank;
- uint16_t m_0xxx_base;
-
- uint8_t multiped_0xxx_r(offs_t offset);
- void multiped_0xxx_w(offs_t offset, uint8_t data);
- uint8_t multiped_2xxx_r(offs_t offset);
- uint8_t multiped_eeprom_r();
- void multiped_eeprom_w(offs_t offset, uint8_t data);
- void multiped_prgbank_w(uint8_t data);
-
- void multiped_gfxbank_w(uint8_t data);
-
- void multiped_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CENTIPED_H
diff --git a/src/mame/includes/cgc7900.h b/src/mame/includes/cgc7900.h
deleted file mode 100644
index 554d4605f52..00000000000
--- a/src/mame/includes/cgc7900.h
+++ /dev/null
@@ -1,130 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_CGC7900_H
-#define MAME_INCLUDES_CGC7900_H
-
-#pragma once
-
-
-#include "bus/rs232/rs232.h"
-#include "cpu/m68000/m68000.h"
-#include "cpu/mcs48/mcs48.h"
-#include "machine/ram.h"
-#include "machine/i8251.h"
-#include "machine/com8116.h"
-#include "machine/mm58167.h"
-#include "machine/keyboard.h"
-#include "machine/timer.h"
-#include "sound/ay8910.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-#define M68000_TAG "uh8"
-#define INS8251_0_TAG "uc10"
-#define INS8251_1_TAG "uc8"
-#define MM58167_TAG "uc6"
-#define AY8910_TAG "uc4"
-#define K1135A_TAG "uc11"
-#define I8035_TAG "i8035"
-#define AM2910_TAG "11d"
-#define SCREEN_TAG "screen"
-
-class cgc7900_state : public driver_device
-{
-public:
- cgc7900_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, M68000_TAG)
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_char_rom(*this, "gfx1")
- , m_chrom_ram(*this, "chrom_ram")
- , m_plane_ram(*this, "plane_ram")
- , m_clut_ram(*this, "clut_ram")
- , m_overlay_ram(*this, "overlay_ram")
- , m_roll_bitmap(*this, "roll_bitmap")
- , m_pan_x(*this, "pan_x")
- , m_pan_y(*this, "pan_y")
- , m_zoom(*this, "zoom")
- , m_blink_select(*this, "blink_select")
- , m_plane_select(*this, "plane_select")
- , m_plane_switch(*this, "plane_switch")
- , m_color_status_fg(*this, "color_status_fg")
- , m_color_status_bg(*this, "color_status_bg")
- , m_roll_overlay(*this, "roll_overlay")
- , m_i8251_0(*this, INS8251_0_TAG)
- , m_i8251_1(*this, INS8251_1_TAG)
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_memory_region m_char_rom;
- required_shared_ptr<u16> m_chrom_ram;
- required_shared_ptr<u16> m_plane_ram;
- required_shared_ptr<u16> m_clut_ram;
- required_shared_ptr<u16> m_overlay_ram;
- required_shared_ptr<u16> m_roll_bitmap;
- required_shared_ptr<u16> m_pan_x;
- required_shared_ptr<u16> m_pan_y;
- required_shared_ptr<u16> m_zoom;
- required_shared_ptr<u16> m_blink_select;
- required_shared_ptr<u16> m_plane_select;
- required_shared_ptr<u16> m_plane_switch;
- required_shared_ptr<u16> m_color_status_fg;
- required_shared_ptr<u16> m_color_status_bg;
- required_shared_ptr<u16> m_roll_overlay;
- required_device<i8251_device> m_i8251_0;
- required_device<i8251_device> m_i8251_1;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void cgc7900_palette(palette_device &palette) const;
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- u16 keyboard_r();
- void keyboard_w(u16 data);
- void interrupt_mask_w(u16 data);
- u16 disk_data_r();
- void disk_data_w(u16 data);
- u16 disk_status_r();
- void disk_command_w(u16 data);
- u16 z_mode_r();
- void z_mode_w(u16 data);
- void color_status_w(u16 data);
- u16 sync_r();
- u16 unmapped_r();
-
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(irq) { irq_encoder(N, state); }
-
- void update_clut();
- void draw_bitmap(screen_device *screen, bitmap_rgb32 &bitmap);
- void draw_overlay(screen_device *screen, bitmap_rgb32 &bitmap);
-
- /* interrupt state */
- u16 m_int_mask, m_int_active;
-
- /* video state */
- rgb_t m_clut[256];
- int m_blink;
-
- TIMER_DEVICE_CALLBACK_MEMBER(blink_tick);
-
- void kbd_put(u8 data);
-
- void cgc7900(machine_config &config);
- void cgc7900_video(machine_config &config);
- void cgc7900_mem(address_map &map);
- void keyboard_mem(address_map &map);
- void cpu_space_map(address_map &map);
-private:
- u16 kbd_mods;
- u8 kbd_data;
- bool kbd_ready;
-
- void irq_encoder(int pin, int state);
-};
-
-#endif
diff --git a/src/mame/includes/chaknpop.h b/src/mame/includes/chaknpop.h
deleted file mode 100644
index 58385b3bc22..00000000000
--- a/src/mame/includes/chaknpop.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:BUT
-#ifndef MAME_INCLUDES_CHAKNPOP_H
-#define MAME_INCLUDES_CHAKNPOP_H
-
-#pragma once
-
-#include "machine/taito68705interface.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class chaknpop_state : public driver_device
-{
-public:
- chaknpop_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_bmcu(*this, "bmcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_tx_ram(*this, "tx_ram"),
- m_attr_ram(*this, "attr_ram"),
- m_spr_ram(*this, "spr_ram"),
- m_vram_bank(*this, "vram_bank"),
- m_vram(*this, "vram", 0x8000, ENDIANNESS_LITTLE)
- { }
-
- void chaknpop(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<taito68705_mcu_device> m_bmcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_tx_ram;
- required_shared_ptr<uint8_t> m_attr_ram;
- required_shared_ptr<uint8_t> m_spr_ram;
- required_memory_bank m_vram_bank;
- memory_share_creator<uint8_t> m_vram;
-
- /* video-related */
- tilemap_t *m_tx_tilemap;
- uint8_t m_gfxmode;
- uint8_t m_flip_x;
- uint8_t m_flip_y;
-
- void coinlock_w(uint8_t data);
- uint8_t gfxmode_r();
- void gfxmode_w(uint8_t data);
- void txram_w(offs_t offset, uint8_t data);
- void attrram_w(offs_t offset, uint8_t data);
- void unknown_port_1_w(uint8_t data);
- void unknown_port_2_w(uint8_t data);
- void unknown_port_3_w(uint8_t data);
- uint8_t mcu_status_r();
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
-
- void chaknpop_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void tx_tilemap_mark_all_dirty();
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void chaknpop_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CHAKNPOP_H
diff --git a/src/mame/includes/champbas.h b/src/mame/includes/champbas.h
deleted file mode 100644
index 70d82340623..00000000000
--- a/src/mame/includes/champbas.h
+++ /dev/null
@@ -1,139 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi, Jarek Parchanski, Nicola Salmoria, hap
-/*************************************************************************
-
- Talbot - Champion Base Ball - Exciting Soccer
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CHAMPBAS_H
-#define MAME_INCLUDES_CHAMPBAS_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/alpha8201.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class champbas_state : public driver_device
-{
-public:
- champbas_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mainlatch(*this, "mainlatch"),
- m_alpha_8201(*this, "alpha_8201"),
- m_watchdog(*this, "watchdog"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_mainram(*this, "mainram"),
- m_vram(*this, "vram"),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2")
- {
- }
-
- DECLARE_READ_LINE_MEMBER(watchdog_bit2);
-
- void init_champbas();
-
- void champbas(machine_config &config);
- void champbb2(machine_config &config);
- void champbb2j(machine_config &config);
- void talbot(machine_config &config);
- void tbasebal(machine_config &config);
- void champbasjb(machine_config &config);
- void champbasj(machine_config &config);
- void champbasja(machine_config &config);
-
-protected:
- // handlers
- DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
- uint8_t champbja_protection_r(offs_t offset);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- void tilemap_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(gfxbank_w);
- DECLARE_WRITE_LINE_MEMBER(palette_bank_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
-
- void champbas_palette(palette_device &palette) const;
- TILE_GET_INFO_MEMBER(champbas_get_bg_tile_info);
-
- uint32_t screen_update_champbas(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void champbas_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- void champbas_map(address_map &map);
- void champbasj_map(address_map &map);
- void champbasja_map(address_map &map);
- void champbasjb_map(address_map &map);
- void champbb2_map(address_map &map);
- void champbb2j_map(address_map &map);
- void tbasebal_map(address_map &map);
- void champbas_sound_map(address_map &map);
-
- // devices, memory pointers
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_mainlatch;
- optional_device<alpha_8201_device> m_alpha_8201;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_mainram;
- required_shared_ptr<uint8_t> m_vram;
- required_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_spriteram2;
-
- // internal state
- uint8_t m_irq_mask;
- tilemap_t *m_bg_tilemap;
- uint8_t m_gfx_bank;
- uint8_t m_palette_bank;
-};
-
-class exctsccr_state : public champbas_state
-{
-public:
- exctsccr_state(const machine_config &mconfig, device_type type, const char *tag) :
- champbas_state(mconfig, type, tag),
- m_audiocpu(*this, "audiocpu")
- {
- }
-
- void init_exctsccr();
-
- void exctsccr(machine_config &config);
- void exctsccrb(machine_config &config);
- void exctscc2(machine_config &config);
-
-protected:
- TIMER_DEVICE_CALLBACK_MEMBER(exctsccr_sound_irq);
-
- void exctsccr_palette(palette_device &palette) const;
- TILE_GET_INFO_MEMBER(exctsccr_get_bg_tile_info);
-
- uint32_t screen_update_exctsccr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void exctsccr_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- virtual void video_start() override;
-
- void exctsccr_map(address_map &map);
- void exctsccrb_map(address_map &map);
- void exctsccr_sound_map(address_map &map);
- void exctsccr_sound_io_map(address_map &map);
- void exctscc2_sound_io_map(address_map &map);
-
-private:
- required_device<cpu_device> m_audiocpu;
-};
-
-#endif // MAME_INCLUDES_CHAMPBAS_H
diff --git a/src/mame/includes/changela.h b/src/mame/includes/changela.h
deleted file mode 100644
index 54c7c7c6d56..00000000000
--- a/src/mame/includes/changela.h
+++ /dev/null
@@ -1,109 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Jarek Burczynski, Phil Stroffolino, Tomasz Slanina
-
-#include "cpu/m6805/m68705.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-class changela_state : public driver_device
-{
-public:
- changela_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_spriteram(*this, "spriteram")
- , m_videoram(*this, "videoram")
- , m_colorram(*this, "colorram")
- , m_mcu(*this, "mcu")
- , m_maincpu(*this, "maincpu")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_port_a_out(0xff)
- , m_port_c_out(0xff)
- , m_mcu_out(0xff)
- , m_mcu_in(0xff)
- {
- }
-
- /* video-related */
- bitmap_ind16 m_obj0_bitmap;
- bitmap_ind16 m_river_bitmap;
- bitmap_ind16 m_tree0_bitmap;
- bitmap_ind16 m_tree1_bitmap;
- std::unique_ptr<uint8_t[]> m_tree_ram;
- std::unique_ptr<uint8_t[]> m_memory_devices;
- uint32_t m_mem_dev_selected; /* an offset within memory_devices area */
- uint32_t m_slopeROM_bank;
- uint8_t m_tree_en;
- uint8_t m_horizon;
- uint8_t m_v_count_river;
- uint8_t m_v_count_tree;
- int m_tree_on[2];
- emu_timer* m_scanline_timer;
-
- /* misc */
- uint8_t m_tree0_col;
- uint8_t m_tree1_col;
- uint8_t m_left_bank_col;
- uint8_t m_right_bank_col;
- uint8_t m_boat_shore_col;
- uint8_t m_collision_reset;
- uint8_t m_tree_collision_reset;
- uint8_t m_prev_value_31;
- int m_dir_31;
-
- /* devices */
- uint8_t mcu_r();
- void mcu_w(uint8_t data);
- void changela_68705_port_a_w(uint8_t data);
- void changela_68705_port_c_w(uint8_t data);
- uint8_t changela_24_r();
- uint8_t changela_25_r();
- uint8_t changela_30_r();
- uint8_t changela_31_r();
- uint8_t changela_2c_r();
- uint8_t changela_2d_r();
- DECLARE_WRITE_LINE_MEMBER(mcu_pc_0_w);
- DECLARE_WRITE_LINE_MEMBER(collision_reset_0_w);
- DECLARE_WRITE_LINE_MEMBER(collision_reset_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- void changela_colors_w(offs_t offset, uint8_t data);
- void changela_mem_device_select_w(uint8_t data);
- void changela_mem_device_w(offs_t offset, uint8_t data);
- uint8_t changela_mem_device_r(offs_t offset);
- void changela_slope_rom_addr_hi_w(uint8_t data);
- void changela_slope_rom_addr_lo_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_changela(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(chl_mcu_irq);
- TIMER_CALLBACK_MEMBER(changela_scanline_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(changela_scanline);
- void draw_obj0( bitmap_ind16 &bitmap, int sy );
- void draw_obj1( bitmap_ind16 &bitmap );
- void draw_river( bitmap_ind16 &bitmap, int sy );
- void draw_tree( bitmap_ind16 &bitmap, int sy, int tree_num );
-
- void changela(machine_config &config);
- void changela_map(address_map &map);
-protected:
- // memory pointers
- required_shared_ptr<u8> m_spriteram;
- required_shared_ptr<u8> m_videoram;
- required_shared_ptr<u8> m_colorram;
-
- // devices
- required_device<m68705p_device> m_mcu;
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- // mcu-related
- u8 m_port_a_out;
- u8 m_port_c_out;
- u8 m_mcu_out;
- u8 m_mcu_in;
-};
diff --git a/src/mame/includes/channelf.h b/src/mame/includes/channelf.h
deleted file mode 100644
index 37b9390eda8..00000000000
--- a/src/mame/includes/channelf.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Juergen Buchmueller, Frank Palazzolo, Sean Riddle
-/*****************************************************************************
- *
- * includes/channelf.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_CHANNELF_H
-#define MAME_INCLUDES_CHANNELF_H
-
-#pragma once
-
-#include "cpu/f8/f8.h"
-#include "audio/channelf.h"
-
-#include "bus/chanf/slot.h"
-#include "bus/chanf/rom.h"
-
-#include "emupal.h"
-
-
-class channelf_state : public driver_device
-{
-public:
- channelf_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_custom(*this,"custom")
- , m_cart(*this, "cartslot")
- { }
-
- uint8_t port_0_r();
- uint8_t port_1_r();
- uint8_t port_4_r();
- uint8_t port_5_r();
- void port_0_w(uint8_t data);
- void port_1_w(uint8_t data);
- void port_4_w(uint8_t data);
- void port_5_w(uint8_t data);
- uint8_t *m_p_videoram;
- uint8_t m_latch[6];
- uint8_t m_val_reg;
- uint8_t m_row_reg;
- uint8_t m_col_reg;
- uint8_t port_read_with_latch(uint8_t ext, uint8_t latch_state);
- virtual void video_start() override;
- virtual void machine_start() override;
- void channelf_palette(palette_device &palette) const;
- uint32_t screen_update_channelf(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<channelf_sound_device> m_custom;
- required_device<channelf_cart_slot_device> m_cart;
- int recalc_palette_offset(int reg1, int reg2);
- void channelf_cart(machine_config &config);
- void channelf(machine_config &config);
- void sabavpl2(machine_config &config);
- void sabavdpl(machine_config &config);
- void channlf2(machine_config &config);
- void channelf_io(address_map &map);
- void channelf_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CHANNELF_H
diff --git a/src/mame/includes/cheekyms.h b/src/mame/includes/cheekyms.h
deleted file mode 100644
index 66a1afc2823..00000000000
--- a/src/mame/includes/cheekyms.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Lee Taylor, Chris Moore
-/*************************************************************************
-
- Cheeky Mouse
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CHEEKYMS_H
-#define MAME_INCLUDES_CHEEKYMS_H
-
-#pragma once
-
-#include "audio/cheekyms.h"
-#include "sound/dac.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class cheekyms_state : public driver_device
-{
-public:
- cheekyms_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_sound_board(*this, "soundboard")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_videoram(*this, "videoram")
- , m_spriteram(*this, "spriteram")
- , m_port_80(*this, "port_80")
- {
- }
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
- void cheekyms(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- void port_40_w(uint8_t data);
- void port_80_w(uint8_t data);
-
- INTERRUPT_GEN_MEMBER(vblank_irq);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- void cheekyms_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx, int flip);
-
- void io_map(address_map &map);
- void main_map(address_map &map);
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<cheekyms_audio_device> m_sound_board;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- // memory pointers
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_port_80;
-
- // video-related
- tilemap_t *m_cm_tilemap;
- std::unique_ptr<bitmap_ind16> m_bitmap_buffer;
-
- uint8_t m_irq_mask;
-};
-
-#endif // MAME_INCLUDES_CHEEKYMS_H
diff --git a/src/mame/includes/chqflag.h b/src/mame/includes/chqflag.h
deleted file mode 100644
index 0775d127f94..00000000000
--- a/src/mame/includes/chqflag.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Manuel Abadia
-/*************************************************************************
-
- Chequered Flag
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CHQFLAG_H
-#define MAME_INCLUDES_CHQFLAG_H
-
-#pragma once
-
-#include "machine/bankdev.h"
-#include "sound/k007232.h"
-#include "video/k051960.h"
-#include "video/k051316.h"
-#include "video/k051733.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-
-class chqflag_state : public driver_device
-{
-public:
- chqflag_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_bank1000(*this, "bank1000")
- , m_k007232(*this, "k007232_%u", 1)
- , m_k051960(*this, "k051960")
- , m_k051316(*this, "k051316_%u", 1)
- , m_palette(*this, "palette")
- , m_rombank(*this, "rombank")
- {
- }
-
- template<int Chip> uint8_t k051316_ramrom_r(offs_t offset);
- void chqflag_bankswitch_w(uint8_t data);
- void chqflag_vreg_w(uint8_t data);
- void select_analog_ctrl_w(uint8_t data);
- uint8_t analog_read_r();
- void k007232_bankswitch_w(uint8_t data);
- void k007232_extvolume_w(uint8_t data);
- void volume_callback0(uint8_t data);
- void volume_callback1(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(background_brt_w);
- K051316_CB_MEMBER(zoom_callback_1);
- K051316_CB_MEMBER(zoom_callback_2);
- K051960_CB_MEMBER(sprite_callback);
- uint32_t screen_update_chqflag(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void chqflag(machine_config &config);
- void bank1000_map(address_map &map);
- void chqflag_map(address_map &map);
- void chqflag_sound_map(address_map &map);
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-private:
- /* misc */
- int m_k051316_readroms;
- int m_last_vreg;
- int m_analog_ctrl;
- int m_accel;
- int m_wheel;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<address_map_bank_device> m_bank1000;
- required_device_array<k007232_device, 2> m_k007232;
- required_device<k051960_device> m_k051960;
- required_device_array<k051316_device, 2> m_k051316;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_memory_bank m_rombank;
- void update_background_shadows(uint8_t data);
-};
-
-#endif // MAME_INCLUDES_CHQFLAG_H
diff --git a/src/mame/includes/cidelsa.h b/src/mame/includes/cidelsa.h
deleted file mode 100644
index a75e93eb298..00000000000
--- a/src/mame/includes/cidelsa.h
+++ /dev/null
@@ -1,140 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_CIDELSA_H
-#define MAME_INCLUDES_CIDELSA_H
-
-#pragma once
-
-
-#include "cpu/cosmac/cosmac.h"
-#include "cpu/cop400/cop400.h"
-#include "sound/cdp1869.h"
-#include "sound/ay8910.h"
-#include "machine/cdp1852.h"
-#include "machine/nvram.h"
-
-
-#define SCREEN_TAG "screen"
-#define CDP1802_TAG "cdp1802"
-#define CDP1869_TAG "cdp1869"
-#define COP402N_TAG "cop402n"
-#define AY8910_TAG "ay8910"
-
-#define DESTRYER_CHR1 3579000.0 // unverified
-#define DESTRYER_CHR2 XTAL(5'714'300)
-#define ALTAIR_CHR1 3579000.0 // unverified
-#define ALTAIR_CHR2 cdp1869_device::DOT_CLK_PAL // unverified
-#define DRACO_CHR1 XTAL(4'433'610)
-#define DRACO_CHR2 cdp1869_device::DOT_CLK_PAL // unverified
-#define DRACO_SND_CHR1 XTAL(2'012'160)
-
-#define CIDELSA_PAGERAM_SIZE 0x400
-#define DRACO_PAGERAM_SIZE 0x800
-#define CIDELSA_CHARRAM_SIZE 0x800
-
-#define CIDELSA_PAGERAM_MASK 0x3ff
-#define DRACO_PAGERAM_MASK 0x7ff
-#define CIDELSA_CHARRAM_MASK 0x7ff
-
-
-class cidelsa_state : public driver_device
-{
-public:
- enum
- {
- TIMER_SET_CPU_MODE
- };
-
- cidelsa_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, CDP1802_TAG)
- , m_vis(*this, CDP1869_TAG)
- , m_leds(*this, "led%u", 0U)
- { }
-
- void cdp1869_w(offs_t offset, uint8_t data);
- void destryer_out1_w(uint8_t data);
- void altair_out1_w(uint8_t data);
-
- DECLARE_READ_LINE_MEMBER( clear_r );
-
- DECLARE_WRITE_LINE_MEMBER( q_w );
- DECLARE_WRITE_LINE_MEMBER( prd_w );
- DECLARE_READ_LINE_MEMBER( cdp1869_pcb_r );
-
- CDP1869_CHAR_RAM_READ_MEMBER(cidelsa_charram_r);
- CDP1869_CHAR_RAM_WRITE_MEMBER(cidelsa_charram_w);
- CDP1869_PCB_READ_MEMBER(cidelsa_pcb_r);
-
- void destryera(machine_config &config);
- void altair(machine_config &config);
- void destryer(machine_config &config);
- void destryer_video(machine_config &config);
- void altair_video(machine_config &config);
- void altair_io_map(address_map &map);
- void altair_map(address_map &map);
- void cidelsa_page_ram(address_map &map);
- void destryer_io_map(address_map &map);
- void destryer_map(address_map &map);
- void destryera_map(address_map &map);
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void video_start() override;
-
- required_device<cosmac_device> m_maincpu;
- required_device<cdp1869_device> m_vis;
- output_finder<3> m_leds;
-
- // cpu state
- int m_reset;
-
- // video state
- int m_cdp1802_q;
- int m_cdp1869_pcb;
-
- uint8_t *m_pageram;
- std::unique_ptr<uint8_t[]> m_pcbram;
- std::unique_ptr<uint8_t[]> m_charram;
-};
-
-class draco_state : public cidelsa_state
-{
-public:
- draco_state(const machine_config &mconfig, device_type type, const char *tag)
- : cidelsa_state(mconfig, type, tag),
- m_psg(*this, AY8910_TAG)
- { }
-
- uint8_t sound_in_r();
- uint8_t psg_r();
- void sound_bankswitch_w(uint8_t data);
- void sound_g_w(uint8_t data);
- void psg_w(uint8_t data);
- void out1_w(uint8_t data);
- void psg_pb_w(uint8_t data);
-
- CDP1869_CHAR_RAM_READ_MEMBER(draco_charram_r);
- CDP1869_CHAR_RAM_WRITE_MEMBER(draco_charram_w);
- CDP1869_PCB_READ_MEMBER(draco_pcb_r);
-
- void draco(machine_config &config);
- void draco_video(machine_config &config);
- void draco_io_map(address_map &map);
- void draco_map(address_map &map);
- void draco_page_ram(address_map &map);
- void draco_sound_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
-
- required_device<ay8910_device> m_psg;
- // sound state
- int m_sound;
- int m_psg_latch;
-};
-
-#endif // MAME_INCLUDES_CIDELSA_H
diff --git a/src/mame/includes/cinemat.h b/src/mame/includes/cinemat.h
deleted file mode 100644
index f09279fa8c1..00000000000
--- a/src/mame/includes/cinemat.h
+++ /dev/null
@@ -1,233 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Cinematronics vector hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CINEMAT_H
-#define MAME_INCLUDES_CINEMAT_H
-
-#pragma once
-
-#include "cpu/ccpu/ccpu.h"
-#include "audio/cinemat.h"
-#include "machine/74259.h"
-#include "sound/ay8910.h"
-#include "sound/samples.h"
-#include "video/vector.h"
-#include "screen.h"
-
-class cinemat_state : public driver_device
-{
-public:
- cinemat_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_ay1(*this, "ay1")
- , m_outlatch(*this, "outlatch")
- , m_vector(*this, "vector")
- , m_screen(*this, "screen")
- , m_rambase(*this, "rambase")
- , m_inputs(*this, "INPUTS")
- , m_switches(*this, "SWITCHES")
- , m_wheel(*this, "WHEEL")
- , m_analog_x(*this, "ANALOGX")
- , m_analog_y(*this, "ANALOGY")
- , m_led(*this, "led")
- , m_pressed(*this, "pressed%u", 0U)
- , m_coin_detected(0)
- , m_coin_last_reset(0)
- , m_mux_select(0)
- , m_gear(0)
- , m_vector_color(255, 255, 255)
- , m_lastx(0)
- , m_lasty(0)
- { }
-
- required_device<ccpu_cpu_device> m_maincpu;
- optional_device<ay8910_device> m_ay1;
- required_device<ls259_device> m_outlatch;
- required_device<vector_device> m_vector;
- required_device<screen_device> m_screen;
- optional_shared_ptr<s16> m_rambase;
-
- required_ioport m_inputs;
- required_ioport m_switches;
- optional_ioport m_wheel;
- optional_ioport m_analog_x;
- optional_ioport m_analog_y;
-
- output_finder<> m_led;
- output_finder<10> m_pressed;
-
- u8 m_coin_detected;
- u8 m_coin_last_reset;
- u8 m_mux_select;
- u8 m_gear;
- rgb_t m_vector_color;
- s16 m_lastx;
- s16 m_lasty;
- u8 inputs_r(offs_t offset);
- u8 switches_r(offs_t offset);
- u8 coin_input_r();
- WRITE_LINE_MEMBER(coin_reset_w);
- WRITE_LINE_MEMBER(mux_select_w);
- u8 speedfrk_wheel_r(offs_t offset);
- u8 speedfrk_gear_r(offs_t offset);
- virtual DECLARE_WRITE_LINE_MEMBER(vector_control_w);
- u8 joystick_read();
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
- void init_speedfrk();
- u32 screen_update_cinemat(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_spacewar(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void cinemat_vector_callback(s16 sx, s16 sy, s16 ex, s16 ey, u8 shift);
- void ripoff(machine_config &config);
- void wotw(machine_config &config);
- void speedfrk(machine_config &config);
- void starcas(machine_config &config);
- void spacewar(machine_config &config);
- void tailg(machine_config &config);
- void warrior(machine_config &config);
- void starhawk(machine_config &config);
- void barrier(machine_config &config);
- void armora(machine_config &config);
-
- template<int Index>
- DECLARE_WRITE_LINE_MEMBER(speedfrk_gear_change_w)
- {
- if (state)
- m_gear = Index;
- }
-
- ioport_value speedfrk_gear_number_r()
- {
- return m_gear;
- }
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- DECLARE_WRITE_LINE_MEMBER(speedfrk_start_led_w);
-
- void cinemat_nojmi_4k(machine_config &config);
- void cinemat_jmi_4k(machine_config &config);
- void cinemat_nojmi_8k(machine_config &config);
- void cinemat_jmi_8k(machine_config &config);
- void cinemat_jmi_16k(machine_config &config);
- void cinemat_jmi_32k(machine_config &config);
-
- void program_map_4k(address_map &map);
- void program_map_8k(address_map &map);
- void program_map_16k(address_map &map);
- void program_map_32k(address_map &map);
- void data_map(address_map &map);
- void io_map(address_map &map);
-};
-
-
-class cinemat_16level_state : public cinemat_state
-{
-public:
- using cinemat_state::cinemat_state;
-
- void init_sundance();
-
- void sundance(machine_config &config);
-
-protected:
- virtual DECLARE_WRITE_LINE_MEMBER(vector_control_w) override;
- u8 sundance_inputs_r(offs_t offset);
-};
-
-
-class cinemat_64level_state : public cinemat_state
-{
-public:
- using cinemat_state::cinemat_state;
-
- void solarq(machine_config &config);
-
- void init_solarq();
-
-protected:
- virtual DECLARE_WRITE_LINE_MEMBER(vector_control_w) override;
-};
-
-
-class cinemat_color_state : public cinemat_state
-{
-public:
- using cinemat_state::cinemat_state;
-
- void init_boxingb();
-
- void boxingb(machine_config &config);
- void wotwc(machine_config &config);
-
-protected:
- virtual DECLARE_WRITE_LINE_MEMBER(vector_control_w) override;
- u8 boxingb_dial_r(offs_t offset);
-};
-
-
-class demon_state : public cinemat_state
-{
-public:
- using cinemat_state::cinemat_state;
-
- void demon(machine_config &config);
-
-protected:
- TIMER_CALLBACK_MEMBER(synced_sound_w);
- DECLARE_WRITE_LINE_MEMBER(demon_sound4_w);
- u8 sound_porta_r();
- u8 sound_portb_r();
- void sound_portb_w(u8 data);
- void sound_output_w(u8 data);
-
- virtual void sound_start() override;
- virtual void sound_reset() override;
-
- void demon_sound(machine_config &config);
-
- void demon_sound_map(address_map &map);
- void demon_sound_ports(address_map &map);
-
-private:
- u8 m_sound_fifo[16];
- u8 m_sound_fifo_in;
- u8 m_sound_fifo_out;
- u8 m_last_portb_write;
-};
-
-
-class qb3_state : public demon_state
-{
-public:
- using demon_state::demon_state;
-
- void init_qb3();
-
- void qb3(machine_config &config);
-
-protected:
- virtual DECLARE_WRITE_LINE_MEMBER(vector_control_w) override;
- u8 qb3_frame_r();
- void qb3_ram_bank_w(u8 data);
- void qb3_sound_fifo_w(u8 data);
-
- virtual void sound_reset() override;
-
- void qb3_sound(machine_config &config);
-
- void data_map_qb3(address_map &map);
- void io_map_qb3(address_map &map);
-
-private:
- int m_qb3_lastx;
- int m_qb3_lasty;
-};
-
-#endif // MAME_INCLUDES_CINEMAT_H
diff --git a/src/mame/includes/circus.h b/src/mame/includes/circus.h
deleted file mode 100644
index 80b439aee0e..00000000000
--- a/src/mame/includes/circus.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Coates
-#ifndef MAME_INCLUDES_CIRCUS_H
-#define MAME_INCLUDES_CIRCUS_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/discrete.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class circus_state : public driver_device
-{
-public:
- circus_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_samples(*this, "samples"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void robotbwl(machine_config &config);
- void ripcord(machine_config &config);
- void crash(machine_config &config);
- void circus(machine_config &config);
-
- void init_ripcord();
- void init_circus();
- void init_robotbwl();
- void init_crash();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_clown_x;
- int m_clown_y;
- int m_clown_z;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<samples_device> m_samples;
- required_device<discrete_sound_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* game id */
- int m_game_id;
- uint8_t circus_paddle_r();
- void circus_videoram_w(offs_t offset, uint8_t data);
- void circus_clown_x_w(uint8_t data);
- void circus_clown_y_w(uint8_t data);
- void circus_clown_z_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- uint32_t screen_update_circus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_robotbwl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_crash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ripcord(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(crash_scanline);
- void draw_line( bitmap_ind16 &bitmap, const rectangle &cliprect, int x1, int y1, int x2, int y2, int dotted );
- void draw_sprite_collision( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void circus_draw_fg( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void robotbwl_draw_box( bitmap_ind16 &bitmap, const rectangle &cliprect, int x, int y );
- void robotbwl_draw_scoreboard( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void robotbwl_draw_bowling_alley( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void robotbwl_draw_ball( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void crash_draw_car( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void circus_map(address_map &map);
-};
-/*----------- defined in audio/circus.c -----------*/
-
-DISCRETE_SOUND_EXTERN( circus_discrete );
-DISCRETE_SOUND_EXTERN( robotbwl_discrete );
-DISCRETE_SOUND_EXTERN( crash_discrete );
-extern const char *const circus_sample_names[];
-extern const char *const crash_sample_names[];
-extern const char *const ripcord_sample_names[];
-extern const char *const robotbwl_sample_names[];
-
-#endif // MAME_INCLUDES_CIRCUS_H
diff --git a/src/mame/includes/circusc.h b/src/mame/includes/circusc.h
deleted file mode 100644
index a4af97a1f9f..00000000000
--- a/src/mame/includes/circusc.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria,Chris Hardy, Couriersud
-/*************************************************************************
-
- Circus Charlie
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CIRCUSC_H
-#define MAME_INCLUDES_CIRCUSC_H
-
-#pragma once
-
-#include "sound/dac.h"
-#include "sound/sn76496.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class circusc_state : public driver_device
-{
-public:
- circusc_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_scroll(*this, "scroll"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram_2(*this, "spriteram_2"),
- m_spriteram(*this, "spriteram"),
- m_audiocpu(*this, "audiocpu"),
- m_sn_1(*this, "sn1"),
- m_sn_2(*this, "sn2"),
- m_dac(*this, "dac"),
- m_discrete(*this, "fltdisc"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram_2;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- bool m_spritebank;
-
- /* sound-related */
- uint8_t m_sn_latch;
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<sn76496_device> m_sn_1;
- required_device<sn76496_device> m_sn_2;
- required_device<dac_byte_interface> m_dac;
- required_device<discrete_device> m_discrete;
-
- bool m_irq_mask;
-
- uint8_t circusc_sh_timer_r();
- void circusc_sh_irqtrigger_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- void circusc_sound_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- void circusc_videoram_w(offs_t offset, uint8_t data);
- void circusc_colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(spritebank_w);
- void init_circusc();
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void circusc_palette(palette_device &palette) const;
- uint32_t screen_update_circusc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void circusc(machine_config &config);
- void circusc_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CIRCUSC_H
diff --git a/src/mame/includes/cischeat.h b/src/mame/includes/cischeat.h
deleted file mode 100644
index 506a63e1580..00000000000
--- a/src/mame/includes/cischeat.h
+++ /dev/null
@@ -1,254 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_CISCHEAT_H
-#define MAME_INCLUDES_CISCHEAT_H
-
-#pragma once
-
-// TODO: better inheritance, eventually split individual driver files
-
-#include "sound/okim6295.h"
-#include "machine/gen_latch.h"
-#include "machine/ticket.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "video/ms1_tmap.h"
-#include "emupal.h"
-#include "screen.h"
-
-class cischeat_state : public driver_device
-{
-public:
- cischeat_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_tmap(*this, "scroll%u", 0)
- , m_ram(*this, "ram")
- , m_roadram(*this, "roadram.%u", 0)
- , m_f1gpstr2_ioready(*this, "ioready")
- , m_maincpu(*this, "maincpu")
- , m_cpu1(*this, "cpu1")
- , m_cpu2(*this, "cpu2")
- , m_cpu3(*this, "cpu3")
- , m_cpu5(*this, "cpu5")
- , m_soundcpu(*this, "soundcpu")
- , m_screen(*this, "screen")
- , m_watchdog(*this, "watchdog")
- , m_oki1(*this, "oki1")
- , m_oki2(*this, "oki2")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_soundlatch2(*this, "soundlatch2")
- , m_leds(*this, "led%u", 0U)
- {}
-
- void scudhamm_motor_command_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scudhamm_leds_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scudhamm_enable_w(uint16_t data);
- void scudhamm_oki_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bigrun_soundbank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t scudhamm_motor_status_r();
- uint16_t scudhamm_motor_pos_r();
- uint8_t scudhamm_analog_r();
- uint16_t bigrun_ip_select_r();
- void leds_out_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void unknown_out_w(uint16_t data);
- void motor_out_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void wheel_out_w(uint16_t data);
- void ip_select_w(uint16_t data);
- void ip_select_plus1_w(uint16_t data);
- void bigrun_comms_w(uint16_t data);
- void active_layers_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t cischeat_ip_select_r();
- void cischeat_soundlatch_w(uint16_t data);
- void cischeat_comms_w(uint16_t data);
- uint16_t f1gpstar_wheel_r();
- uint16_t f1gpstr2_ioready_r();
- uint16_t wildplt_xy_r();
- uint16_t wildplt_mux_r();
- void wildplt_mux_w(uint16_t data);
- void f1gpstar_motor_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void f1gpstar_soundint_w(uint16_t data);
- void f1gpstar_comms_w(uint16_t data);
- void f1gpstr2_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cischeat_soundbank_1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cischeat_soundbank_2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(sound_irq);
- void init_cischeat();
- void init_bigrun();
- void init_f1gpstar();
- uint32_t screen_update_bigrun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_scudhamm(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cischeat(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_f1gpstar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(bigrun_scanline);
- TIMER_DEVICE_CALLBACK_MEMBER(scudhamm_scanline);
- void prepare_shadows();
- void cischeat_draw_road(bitmap_ind16 &bitmap, const rectangle &cliprect, int road_num, int priority1, int priority2, int transparency);
- void f1gpstar_draw_road(bitmap_ind16 &bitmap, const rectangle &cliprect, int road_num, int priority1, int priority2, int transparency);
- void cischeat_draw_sprites(bitmap_ind16 &bitmap , const rectangle &cliprect, int priority1, int priority2);
- void bigrun_draw_sprites(bitmap_ind16 &bitmap , const rectangle &cliprect, int priority1, int priority2);
- void cischeat_untangle_sprites(const char *region);
-
- void scudhamm(machine_config &config);
- void cischeat(machine_config &config);
- void f1gpstr2(machine_config &config);
- void f1gpstar(machine_config &config);
- void bigrun(machine_config &config);
- void bigrun_map(address_map &map);
- void bigrun_map2(address_map &map);
- void bigrun_map3(address_map &map);
- void bigrun_sound_map(address_map &map);
- void cischeat_map(address_map &map);
- void cischeat_map2(address_map &map);
- void cischeat_map3(address_map &map);
- void cischeat_sound_map(address_map &map);
- void f1gpstar_map(address_map &map);
- void f1gpstar_map2(address_map &map);
- void f1gpstar_map3(address_map &map);
- void f1gpstar_sound_map(address_map &map);
- void f1gpstr2_io_map(address_map &map);
- void f1gpstr2_map(address_map &map);
- void f1gpstr2_sound_map(address_map &map);
- void scudhamm_map(address_map &map);
-
-protected:
- virtual void machine_start() override { m_leds.resolve(); m_scudhamm_motor_command = 0; }
- virtual void video_start() override;
-
- optional_device_array<megasys1_tilemap_device, 3> m_tmap;
- required_shared_ptr<uint16_t> m_ram;
- optional_shared_ptr_array<uint16_t,2> m_roadram;
- optional_shared_ptr<uint16_t> m_f1gpstr2_ioready;
-
- uint16_t m_active_layers;
-
- int m_prev;
- uint16_t m_scudhamm_motor_command;
- int m_ip_select;
- uint16_t m_wildplt_output;
- uint8_t m_drawmode_table[16];
-#ifdef MAME_DEBUG
- int m_debugsprites = 0;
-#endif
- int m_show_unknown;
- uint16_t *m_spriteram;
-
- uint8_t m_motor_value;
- uint8_t m_io_value;
-
- // TODO: make these to have a more meaningful name
- optional_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_cpu1;
- optional_device<cpu_device> m_cpu2;
- optional_device<cpu_device> m_cpu3;
- optional_device<cpu_device> m_cpu5;
- optional_device<cpu_device> m_soundcpu;
- required_device<screen_device> m_screen;
- optional_device<watchdog_timer_device> m_watchdog;
- required_device<okim6295_device> m_oki1;
- required_device<okim6295_device> m_oki2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_16_device> m_soundlatch;
- optional_device<generic_latch_16_device> m_soundlatch2;
-
- output_finder<5> m_leds;
-};
-
-class armchamp2_state : public cischeat_state
-{
-public:
- armchamp2_state(const machine_config &mconfig, device_type type, const char *tag)
- : cischeat_state(mconfig, type, tag)
- {
- m_arm_motor_command = 0;
- m_armold = 0;
- }
-
- uint16_t motor_status_r();
- void motor_command_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t analog_r();
- void output_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void armchmp2(machine_config &config);
- void armchmp2_map(address_map &map);
- TIMER_DEVICE_CALLBACK_MEMBER(armchamp2_scanline);
- DECLARE_CUSTOM_INPUT_MEMBER(left_sensor_r);
- DECLARE_CUSTOM_INPUT_MEMBER(right_sensor_r);
- DECLARE_CUSTOM_INPUT_MEMBER(center_sensor_r);
-
-private:
- u16 m_arm_motor_command;
- int m_armold;
-};
-
-class wildplt_state : public cischeat_state
-{
-public:
- wildplt_state(const machine_config &mconfig, device_type type, const char *tag)
- : cischeat_state(mconfig, type, tag)
- {}
-
- uint16_t *m_buffer_spriteram;
- std::unique_ptr<uint16_t[]> m_allocated_spriteram;
- void wildplt_map(address_map &map);
- void wildplt(machine_config &config);
- void sprite_dma_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
-protected:
- virtual void video_start() override;
-
-private:
- uint16_t m_sprite_dma_reg;
-};
-
-class captflag_state : public cischeat_state
-{
-public:
- captflag_state(const machine_config &mconfig, device_type type, const char *tag)
- : cischeat_state(mconfig, type, tag)
- , m_hopper(*this, "hopper")
- , m_motor_left(*this, "motor_left")
- , m_motor_right(*this, "motor_right")
- , m_oki1_bank(*this, "oki1_bank")
- , m_oki2_bank(*this, "oki2_bank")
- {
- for (int side = 0; side < 2; ++side)
- m_motor_command[side] = m_motor_pos[side] = 0;
- m_captflag_leds = 0;
- }
-
- void captflag(machine_config &config);
- template <int N> DECLARE_READ_LINE_MEMBER(motor_busy_r);
- template <int N> DECLARE_CUSTOM_INPUT_MEMBER(motor_pos_r);
- void init_captflag();
-
-private:
- void motor_command_right_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void motor_command_left_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void motor_move(int side, uint16_t data);
- void oki_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void leds_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TIMER_DEVICE_CALLBACK_MEMBER(captflag_scanline);
-
- void captflag_map(address_map &map);
- void oki1_map(address_map &map);
- void oki2_map(address_map &map);
-
- required_device<ticket_dispenser_device> m_hopper;
-
- required_device<timer_device> m_motor_left;
- required_device<timer_device> m_motor_right;
-
- required_memory_bank m_oki1_bank;
- required_memory_bank m_oki2_bank;
-
- uint16_t m_captflag_leds;
- uint16_t m_motor_command[2];
- uint16_t m_motor_pos[2];
-};
-
-#endif
diff --git a/src/mame/includes/citycon.h b/src/mame/includes/citycon.h
deleted file mode 100644
index 246424f4fe7..00000000000
--- a/src/mame/includes/citycon.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni
-/*************************************************************************
-
- City Connection
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CITYCON_H
-#define MAME_INCLUDES_CITYCON_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class citycon_state : public driver_device
-{
-public:
- citycon_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_linecolor(*this, "linecolor"),
- m_spriteram(*this, "spriteram"),
- m_scroll(*this, "scroll"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_linecolor;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scroll;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- int m_bg_image;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- uint8_t citycon_in_r();
- uint8_t citycon_irq_ack_r();
- void citycon_videoram_w(offs_t offset, uint8_t data);
- void citycon_linecolor_w(offs_t offset, uint8_t data);
- void citycon_background_w(uint8_t data);
- void init_citycon();
- TILEMAP_MAPPER_MEMBER(citycon_scan);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_citycon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- inline void changecolor_RRRRGGGGBBBBxxxx( int color, int indx );
- void citycon(machine_config &config);
- void citycon_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CITYCON_H
diff --git a/src/mame/includes/ckingbase.h b/src/mame/includes/ckingbase.h
deleted file mode 100644
index 62ddaf60400..00000000000
--- a/src/mame/includes/ckingbase.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:hap
-/******************************************************************************
-*
-* Chess King chess computer driver base class
-*
-******************************************************************************/
-
-#pragma once
-
-#ifndef MAME_INCLUDES_CKINGBASE_H
-#define MAME_INCLUDES_CKINGBASE_H
-
-#include "machine/timer.h"
-
-class ckingbase_state : public driver_device
-{
-public:
- ckingbase_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_irq_on(*this, "irq_on"),
- m_inp_matrix(*this, "IN.%u", 0),
- m_out_x(*this, "%u.%u", 0U, 0U),
- m_out_a(*this, "%u.a", 0U),
- m_out_digit(*this, "digit%u", 0U),
- m_display_wait(33),
- m_display_maxy(1),
- m_display_maxx(0)
- { }
-
- // devices/pointers
- required_device<cpu_device> m_maincpu;
- optional_device<timer_device> m_irq_on;
- optional_ioport_array<10> m_inp_matrix; // max 10
- output_finder<0x20, 0x20> m_out_x;
- output_finder<0x20> m_out_a;
- output_finder<0x20> m_out_digit;
-
- // misc common
- u16 m_inp_mux; // multiplexed keypad mask
- u16 m_led_select;
- u16 m_led_data;
-
- u16 read_inputs(int columns);
-
- // periodic interrupts
- template<int Line> TIMER_DEVICE_CALLBACK_MEMBER(irq_on) { m_maincpu->set_input_line(Line, ASSERT_LINE); }
- template<int Line> TIMER_DEVICE_CALLBACK_MEMBER(irq_off) { m_maincpu->set_input_line(Line, CLEAR_LINE); }
-
- // display common
- int m_display_wait; // led/lamp off-delay in milliseconds (default 33ms)
- int m_display_maxy; // display matrix number of rows
- int m_display_maxx; // display matrix number of columns (max 31 for now)
-
- u32 m_display_state[0x20]; // display matrix rows data (last bit is used for always-on)
- u16 m_display_segmask[0x20]; // if not 0, display matrix row is a digit, mask indicates connected segments
- u8 m_display_decay[0x20][0x20]; // (internal use)
-
- TIMER_DEVICE_CALLBACK_MEMBER(display_decay_tick);
- void display_update();
- void set_display_size(int maxx, int maxy);
- void display_matrix(int maxx, int maxy, u32 setx, u32 sety, bool update = true);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-};
-
-
-INPUT_PORTS_EXTERN( cking_cb_buttons );
-
-#endif // MAME_INCLUDES_CKINGBASE_H
diff --git a/src/mame/includes/cloak.h b/src/mame/includes/cloak.h
deleted file mode 100644
index 0ea34881c72..00000000000
--- a/src/mame/includes/cloak.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Dan Boris, Mirko Buffoni
-/*************************************************************************
-
- Atari Cloak & Dagger hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CLOAK_H
-#define MAME_INCLUDES_CLOAK_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class cloak_state : public driver_device
-{
-public:
- cloak_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_slave(*this, "slave"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void cloak(machine_config &config);
-
-protected:
- DECLARE_WRITE_LINE_MEMBER(coin_counter_l_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_r_w);
- void cloak_custom_w(uint8_t data);
- void cloak_irq_reset_0_w(uint8_t data);
- void cloak_irq_reset_1_w(uint8_t data);
- void cloak_nvram_enable_w(uint8_t data);
- void cloak_paletteram_w(offs_t offset, uint8_t data);
- void cloak_clearbmp_w(uint8_t data);
- uint8_t graph_processor_r(offs_t offset);
- void graph_processor_w(offs_t offset, uint8_t data);
- void cloak_videoram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(cocktail_w);
- void set_current_bitmap_videoram_pointer();
- void adjust_xy(int offset);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void video_start() override;
- uint32_t screen_update_cloak(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void set_pen(int i);
- void draw_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void master_map(address_map &map);
- void slave_map(address_map &map);
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- int m_nvram_enabled;
- uint8_t m_bitmap_videoram_selected;
- uint8_t m_bitmap_videoram_address_x;
- uint8_t m_bitmap_videoram_address_y;
- std::unique_ptr<uint8_t[]> m_bitmap_videoram1;
- std::unique_ptr<uint8_t[]> m_bitmap_videoram2;
- uint8_t *m_current_bitmap_videoram_accessed;
- uint8_t *m_current_bitmap_videoram_displayed;
- std::unique_ptr<uint16_t[]> m_palette_ram;
- tilemap_t *m_bg_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_slave;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-};
-
-#endif // MAME_INCLUDES_CLOAK_H
diff --git a/src/mame/includes/cloud9.h b/src/mame/includes/cloud9.h
deleted file mode 100644
index 42548c2d434..00000000000
--- a/src/mame/includes/cloud9.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour, Aaron Giles
-/*************************************************************************
-
- Atari Cloud 9 (prototype) hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CLOUD9_H
-#define MAME_INCLUDES_CLOUD9_H
-
-#pragma once
-
-#include "cpu/m6502/m6502.h"
-#include "machine/74259.h"
-#include "machine/x2212.h"
-#include "emupal.h"
-#include "screen.h"
-
-class cloud9_state : public driver_device
-{
-public:
- cloud9_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_nvram(*this, "nvram") ,
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "paletteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videolatch(*this, "videolatch")
- { }
-
- DECLARE_READ_LINE_MEMBER(vblank_r);
- void cloud9(machine_config &config);
-
-protected:
- void irq_ack_w(uint8_t data);
- uint8_t leta_r(offs_t offset);
- void nvram_recall_w(uint8_t data);
- void nvram_store_w(uint8_t data);
- void cloud9_paletteram_w(offs_t offset, uint8_t data);
- void cloud9_videoram_w(offs_t offset, uint8_t data);
- uint8_t cloud9_bitmode_r();
- void cloud9_bitmode_w(uint8_t data);
- void cloud9_bitmode_addr_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_cloud9(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(clock_irq);
- inline void cloud9_write_vram( uint16_t addr, uint8_t data, uint8_t bitmd, uint8_t pixba );
- inline void bitmode_autoinc();
- inline void schedule_next_irq(int curscanline);
- void cloud9_map(address_map &map);
-
-private:
- /* devices */
- required_device<m6502_device> m_maincpu;
- required_device<x2212_device> m_nvram;
- /* memory pointers */
- std::unique_ptr<uint8_t[]> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_paletteram;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<ls259_device> m_videolatch;
-
- /* video-related */
- const uint8_t *m_syncprom;
- const uint8_t *m_wpprom;
- const uint8_t *m_priprom;
- bitmap_ind16 m_spritebitmap;
- double m_rweights[3];
- double m_gweights[3];
- double m_bweights[3];
- uint8_t m_bitmode_addr[2];
-
- /* misc */
- int m_vblank_start;
- int m_vblank_end;
- emu_timer *m_irq_timer;
- uint8_t m_irq_state;
-};
-
-#endif // MAME_INCLUDES_CLOUD9_H
diff --git a/src/mame/includes/clshroad.h b/src/mame/includes/clshroad.h
deleted file mode 100644
index 946873909f8..00000000000
--- a/src/mame/includes/clshroad.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_CLSHROAD_H
-#define MAME_INCLUDES_CLSHROAD_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class clshroad_state : public driver_device
-{
-public:
- clshroad_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_vram_0(*this, "vram_0"),
- m_vram_1(*this, "vram_1"),
- m_vregs(*this, "vregs")
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_vram_0;
- required_shared_ptr<uint8_t> m_vram_1;
- required_shared_ptr<uint8_t> m_vregs;
-
- uint8_t m_main_irq_mask;
- uint8_t m_sound_irq_mask;
-
- tilemap_t *m_tilemap_0a;
- tilemap_t *m_tilemap_0b;
- tilemap_t *m_tilemap_1;
-
- uint8_t input_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(main_irq_mask_w);
- DECLARE_WRITE_LINE_MEMBER(sound_irq_mask_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- void vram_0_w(offs_t offset, uint8_t data);
- void vram_1_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info_0a);
- TILE_GET_INFO_MEMBER(get_tile_info_0b);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_rows_extra);
- TILE_GET_INFO_MEMBER(get_tile_info_fb1);
- TILE_GET_INFO_MEMBER(get_tile_info_1);
-
- void init_firebatl();
- virtual void machine_reset() override;
- DECLARE_VIDEO_START(firebatl);
- void firebatl_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(clshroad);
- void clshroad_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(sound_timer_irq);
- void firebatl(machine_config &config);
- void clshroad(machine_config &config);
- void clshroad_map(address_map &map);
- void clshroad_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CLSHROAD_H
diff --git a/src/mame/includes/cninja.h b/src/mame/includes/cninja.h
deleted file mode 100644
index e2c303f281f..00000000000
--- a/src/mame/includes/cninja.h
+++ /dev/null
@@ -1,118 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Caveman Ninja (and other DECO 16bit titles)
-
-*************************************************************************/
-
-#include "cpu/h6280/h6280.h"
-#include "sound/okim6295.h"
-#include "video/deco16ic.h"
-#include "video/bufsprite.h"
-#include "video/decospr.h"
-#include "machine/deco_irq.h"
-#include "machine/deco146.h"
-#include "machine/deco104.h"
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "screen.h"
-
-class cninja_state : public driver_device
-{
-public:
- cninja_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_ioprot(*this, "ioprot")
- , m_deco_tilegen(*this, "tilegen%u", 1U)
- , m_oki2(*this, "oki2")
- , m_sprgen(*this, "spritegen%u", 1U)
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_spriteram(*this, "spriteram%u", 1U)
- , m_pf_rowscroll(*this, "pf%u_rowscroll", 1U)
- , m_okibank(*this, "okibank")
- { }
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<deco_146_base_device> m_ioprot;
- required_device_array<deco16ic_device, 2> m_deco_tilegen;
- optional_device<okim6295_device> m_oki2;
- optional_device_array<decospr_device, 2> m_sprgen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device_array<buffered_spriteram16_device, 2> m_spriteram;
-
- /* memory pointers */
- required_shared_ptr_array<uint16_t, 4> m_pf_rowscroll;
- optional_memory_bank m_okibank;
-
- uint16_t m_priority;
-
- template<int Chip> void cninja_pf_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_bankswitch_w(uint8_t data);
- void cninjabl2_oki_bank_w(uint8_t data);
- void init_mutantf();
- void init_cninjabl2();
- DECLARE_MACHINE_START(robocop2);
- DECLARE_MACHINE_RESET(robocop2);
- DECLARE_VIDEO_START(cninja);
- DECLARE_VIDEO_START(stoneage);
- DECLARE_VIDEO_START(mutantf);
- uint32_t screen_update_cninja(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cninjabl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cninjabl2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_edrandy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_robocop2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mutantf(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void cninjabl_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- DECO16IC_BANK_CB_MEMBER(cninja_bank_callback);
- DECO16IC_BANK_CB_MEMBER(robocop2_bank_callback);
- DECO16IC_BANK_CB_MEMBER(mutantf_1_bank_callback);
- DECO16IC_BANK_CB_MEMBER(mutantf_2_bank_callback);
-
- DECOSPR_PRIORITY_CB_MEMBER(pri_callback);
- u16 robocop2_mix_callback(u16 p, u16 p2);
-
- uint16_t edrandy_protection_region_6_146_r(offs_t offset);
- void edrandy_protection_region_6_146_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t edrandy_protection_region_8_146_r(offs_t offset);
- void edrandy_protection_region_8_146_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t mutantf_protection_region_0_146_r(offs_t offset);
- void mutantf_protection_region_0_146_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t cninja_protection_region_0_104_r(offs_t offset);
- void cninja_protection_region_0_104_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t cninjabl2_sprite_dma_r();
- void robocop2_priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mutantf_71_r();
- void cninjabl(machine_config &config);
- void edrandy(machine_config &config);
- void cninja(machine_config &config);
- void robocop2(machine_config &config);
- void stoneage(machine_config &config);
- void cninjabl2(machine_config &config);
- void mutantf(machine_config &config);
- void cninja_map(address_map &map);
- void cninjabl2_map(address_map &map);
- void cninjabl2_oki_map(address_map &map);
- void cninjabl2_s_map(address_map &map);
- void cninjabl_map(address_map &map);
- void cninjabl_sound_map(address_map &map);
- void edrandy_map(address_map &map);
- void mutantf_map(address_map &map);
- void robocop2_map(address_map &map);
- void sound_map(address_map &map);
- void sound_map_mutantf(address_map &map);
- void stoneage_s_map(address_map &map);
-};
diff --git a/src/mame/includes/coco.h b/src/mame/includes/coco.h
deleted file mode 100644
index 9b01c681a9d..00000000000
--- a/src/mame/includes/coco.h
+++ /dev/null
@@ -1,275 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods
-/***************************************************************************
-
- coco.h
-
- TRS-80 Radio Shack Color Computer Family
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_COCO_H
-#define MAME_INCLUDES_COCO_H
-
-#pragma once
-
-#include "imagedev/cassette.h"
-#include "bus/rs232/rs232.h"
-#include "machine/6821pia.h"
-#include "bus/coco/cococart.h"
-#include "machine/coco_vhd.h"
-#include "bus/coco/coco_dwsock.h"
-#include "machine/ram.h"
-#include "machine/bankdev.h"
-#include "sound/dac.h"
-#include "screen.h"
-#include "machine/input_merger.h"
-
-//**************************************************************************
-// MACROS / CONSTANTS
-//**************************************************************************
-
-INPUT_PORTS_EXTERN( coco_analog_control );
-INPUT_PORTS_EXTERN( coco_joystick );
-INPUT_PORTS_EXTERN( coco_rtc );
-INPUT_PORTS_EXTERN( coco_beckerport );
-INPUT_PORTS_EXTERN( coco_beckerport_dw );
-
-void coco_cart(device_slot_interface &device);
-
-// constants
-#define JOYSTICK_DELTA 10
-#define JOYSTICK_SENSITIVITY 100
-
-// devices
-#define MAINCPU_TAG "maincpu"
-#define PIA0_TAG "pia0"
-#define PIA1_TAG "pia1"
-#define SAM_TAG "sam"
-#define VDG_TAG "vdg"
-#define SCREEN_TAG "screen"
-#define CARTRIDGE_TAG "ext"
-#define RS232_TAG "rs232"
-#define DWSOCK_TAG "dwsock"
-#define VHD0_TAG "vhd0"
-#define VHD1_TAG "vhd1"
-#define FLOATING_TAG "floating"
-
-// inputs
-#define CTRL_SEL_TAG "ctrl_sel"
-#define HIRES_INTF_TAG "hires_intf"
-#define BECKERPORT_TAG "beckerport"
-#define JOYSTICK_RX_TAG "joystick_rx"
-#define JOYSTICK_RY_TAG "joystick_ry"
-#define JOYSTICK_LX_TAG "joystick_lx"
-#define JOYSTICK_LY_TAG "joystick_ly"
-#define JOYSTICK_BUTTONS_TAG "joystick_buttons"
-#define RAT_MOUSE_RX_TAG "rat_mouse_rx"
-#define RAT_MOUSE_RY_TAG "rat_mouse_ry"
-#define RAT_MOUSE_LX_TAG "rat_mouse_lx"
-#define RAT_MOUSE_LY_TAG "rat_mouse_ly"
-#define RAT_MOUSE_BUTTONS_TAG "rat_mouse_buttons"
-#define DIECOM_LIGHTGUN_RX_TAG "dclg_rx"
-#define DIECOM_LIGHTGUN_RY_TAG "dclg_ry"
-#define DIECOM_LIGHTGUN_LX_TAG "dclg_lx"
-#define DIECOM_LIGHTGUN_LY_TAG "dclg_ly"
-#define DIECOM_LIGHTGUN_BUTTONS_TAG "dclg_triggers"
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-class coco_state : public driver_device, public device_cococart_host_interface
-{
-public:
- coco_state(const machine_config &mconfig, device_type type, const char *tag);
-
- // driver update handlers
- DECLARE_INPUT_CHANGED_MEMBER(keyboard_changed);
- DECLARE_INPUT_CHANGED_MEMBER(joystick_mode_changed);
-
- // IO
- virtual void ff20_write(offs_t offset, uint8_t data);
- virtual uint8_t ff40_read(offs_t offset);
- virtual void ff40_write(offs_t offset, uint8_t data);
- uint8_t ff60_read(offs_t offset);
- void ff60_write(offs_t offset, uint8_t data);
-
- // PIA0
- void pia0_pa_w(uint8_t data);
- void pia0_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( pia0_ca2_w );
- DECLARE_WRITE_LINE_MEMBER( pia0_cb2_w );
-
- // PIA1
- uint8_t pia1_pa_r();
- uint8_t pia1_pb_r();
- void pia1_pa_w(uint8_t data);
- void pia1_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( pia1_ca2_w );
- DECLARE_WRITE_LINE_MEMBER( pia1_cb2_w );
-
- // floating bus & "space"
- uint8_t floating_bus_r() { return floating_bus_read(); }
- uint8_t floating_space_read(offs_t offset);
- void floating_space_write(offs_t offset, uint8_t data);
-
- // cartridge stuff
- DECLARE_WRITE_LINE_MEMBER( cart_w ) { cart_w((bool) state); }
- virtual address_space &cartridge_space() override;
-
- // disassembly override
- static offs_t os9_dasm_override(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const util::disasm_interface::data_buffer &params);
- offs_t dasm_override(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const util::disasm_interface::data_buffer &params);
-
- void coco_sound(machine_config &config);
- void coco_floating(machine_config &config);
-
- void coco_floating_map(address_map &map);
-
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // changed handlers
- virtual void pia1_pa_changed(uint8_t data);
- virtual void pia1_pb_changed(uint8_t data);
-
- // accessors
- pia6821_device &pia_0() { return *m_pia_0; }
- pia6821_device &pia_1() { return *m_pia_1; }
- cococart_slot_device &cococart() { return *m_cococart; }
- ram_device &ram() { return *m_ram; }
-
- // miscellaneous
- virtual void update_keyboard_input(uint8_t value);
- virtual void cart_w(bool state);
- virtual void update_cart_base(uint8_t *cart_base) { };
-
-protected:
- // timer constants
- static const device_timer_id TIMER_HIRES_JOYSTICK_X = 0;
- static const device_timer_id TIMER_HIRES_JOYSTICK_Y = 1;
- static const device_timer_id TIMER_DIECOM_LIGHTGUN = 2;
-
- enum soundmux_status_t
- {
- SOUNDMUX_SEL1 = 1,
- SOUNDMUX_SEL2 = 2,
- SOUNDMUX_ENABLE = 4
- };
-
- enum joystick_type_t
- {
- JOYSTICK_NONE = 0x00,
- JOYSTICK_NORMAL = 0x01,
- JOYSTICK_RAT_MOUSE = 0x02,
- JOYSTICK_DIECOM_LIGHT_GUN = 0x03
- };
-
- enum hires_type_t
- {
- HIRES_NONE = 0x00,
- HIRES_RIGHT = 0x01,
- HIRES_RIGHT_COCOMAX3 = 0x02,
- HIRES_LEFT = 0x03,
- HIRES_LEFT_COCOMAX3 = 0x04
- };
-
- struct analog_input_t
- {
- ioport_port *m_input[2][2];
- ioport_port *m_buttons;
-
- uint32_t input(int joystick, int axis) const { return m_input[joystick][axis] ? m_input[joystick][axis]->read() : 0x00; }
- uint8_t buttons(void) const { return m_buttons ? m_buttons->read() : 0x00; }
- };
-
- void analog_port_start(analog_input_t *analog, const char *rx_tag, const char *ry_tag, const char *lx_tag, const char *ly_tag, const char *buttons_tag);
-
- // wrappers for configuration
- joystick_type_t joystick_type(int index);
- hires_type_t hires_interface_type(void);
- bool is_joystick_hires(int joystick_index);
-
- soundmux_status_t soundmux_status(void);
- void update_sound(void);
- void poll_joystick(bool *joyin, uint8_t *buttons);
- void poll_keyboard(void);
- void poll_hires_joystick(void);
- void update_cassout(int cassout);
- void update_prinout(bool prinout);
- void diecom_lightgun_clock(void);
-
- // thin wrappers for PIA output
- uint8_t dac_output(void) { return m_dac_output; } // PA drives the DAC
- bool sel1(void) { return m_pia_0->ca2_output() ? true : false; }
- bool sel2(void) { return m_pia_0->cb2_output() ? true : false; }
- bool snden(void) { return m_pia_1->cb2_output() ? true : false; }
-
- // VHD selection
- coco_vhd_image_device *current_vhd();
-
- // floating bus
- uint8_t floating_bus_read();
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<pia6821_device> m_pia_0;
- required_device<pia6821_device> m_pia_1;
- required_device<dac_byte_interface> m_dac;
- required_device<dac_1bit_device> m_sbs;
- optional_device<screen_device> m_screen;
- required_device<cococart_slot_device> m_cococart;
- required_device<ram_device> m_ram;
- required_device<cassette_image_device> m_cassette;
- required_device<address_map_bank_device> m_floating;
- optional_device<rs232_port_device> m_rs232;
- optional_device<coco_vhd_image_device> m_vhd_0;
- optional_device<coco_vhd_image_device> m_vhd_1;
- optional_device<beckerport_device> m_beckerport;
- optional_ioport m_beckerportconfig;
- required_device<input_merger_device> m_irqs;
- required_device<input_merger_device> m_firqs;
-
- // input ports
- required_ioport_array<7> m_keyboard;
- optional_ioport m_joystick_type_control;
- optional_ioport m_joystick_hires_control;
- analog_input_t m_joystick;
- analog_input_t m_rat_mouse;
- analog_input_t m_diecom_lightgun;
-
- // DAC output
- uint8_t m_dac_output;
-
- // remember the last audio sample level from the analog sources (DAC, cart, cassette) so that we don't
- // introduce step changes when the audio output is enabled/disabled via PIA1 CB2
- uint8_t m_analog_audio_level;
-
- // hires interface
- emu_timer *m_hiresjoy_transition_timer[2];
- bool m_hiresjoy_ca;
-
- // diecom lightgun
- emu_timer *m_diecom_lightgun_timer;
- bool m_dclg_previous_bit;
- uint8_t m_dclg_output_h;
- uint8_t m_dclg_output_v;
- uint8_t m_dclg_state;
- uint16_t m_dclg_timer;
-
- // VHD selection
- uint8_t m_vhd_select;
-
- // address space for "floating access"
- //address_space m_floating_space;
-
- // safety to prevent stack overflow when reading floating bus
- bool m_in_floating_bus_read;
-};
-
-#endif // MAME_INCLUDES_COCO_H
diff --git a/src/mame/includes/coco12.h b/src/mame/includes/coco12.h
deleted file mode 100644
index 3ba12823d1a..00000000000
--- a/src/mame/includes/coco12.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods
-/***************************************************************************
-
- coco12.h
-
- TRS-80 Radio Shack Color Computer 1/2 Family
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_COCO12_H
-#define MAME_INCLUDES_COCO12_H
-
-#pragma once
-
-#include "includes/coco.h"
-#include "machine/6883sam.h"
-#include "video/mc6847.h"
-
-
-
-//**************************************************************************
-// MACROS / CONSTANTS
-//**************************************************************************
-
-#define SAM_TAG "sam"
-#define VDG_TAG "vdg"
-
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-class coco12_state : public coco_state
-{
-public:
- coco12_state(const machine_config &mconfig, device_type type, const char *tag)
- : coco_state(mconfig, type, tag)
- , m_sam(*this, SAM_TAG)
- , m_vdg(*this, VDG_TAG)
- {
- }
-
- uint8_t sam_read(offs_t offset);
-
- DECLARE_WRITE_LINE_MEMBER( horizontal_sync );
- DECLARE_WRITE_LINE_MEMBER( field_sync );
-
- void coco2bh(machine_config &config);
- void coco2h(machine_config &config);
- void cocoeh(machine_config &config);
- void cocoh(machine_config &config);
- void coco2b(machine_config &config);
- void cd6809(machine_config &config);
- void coco2(machine_config &config);
- void t4426(machine_config &config);
- void cp400(machine_config &config);
- void cocoe(machine_config &config);
- void coco(machine_config &config);
-protected:
- virtual void device_start() override;
-
- // PIA1
- virtual void pia1_pb_changed(uint8_t data) override;
-
- sam6883_device &sam() { return *m_sam; }
- required_device<sam6883_device> m_sam;
-
- void coco_mem(address_map &map);
- void coco_ram(address_map &map);
- void coco_rom0(address_map &map);
- void coco_rom1(address_map &map);
- void coco_rom2(address_map &map);
- void coco_io0(address_map &map);
- void coco_io1(address_map &map);
- void coco_io2(address_map &map);
- void coco_ff60(address_map &map);
-
-private:
- void configure_sam(void);
-
-protected:
- required_device<mc6847_base_device> m_vdg;
-};
-
-#endif // MAME_INCLUDES_COCO12_H
diff --git a/src/mame/includes/coco3.h b/src/mame/includes/coco3.h
deleted file mode 100644
index 8ef5786f105..00000000000
--- a/src/mame/includes/coco3.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods
-/***************************************************************************
-
- coco3.h
-
- TRS-80 Radio Shack Color Computer 1/2 Family
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_COCO3_H
-#define MAME_INCLUDES_COCO3_H
-
-#pragma once
-
-#include "includes/coco12.h"
-#include "video/gime.h"
-
-
-//**************************************************************************
-// MACROS / CONSTANTS
-//**************************************************************************
-
-#define GIME_TAG "gime"
-#define VDG_TAG "vdg"
-#define COMPOSITE_SCREEN_TAG "composite"
-#define RGB_SCREEN_TAG "rgb"
-
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-class coco3_state : public coco_state
-{
-public:
- coco3_state(const machine_config &mconfig, device_type type, const char *tag)
- : coco_state(mconfig, type, tag)
- , m_gime(*this, GIME_TAG) { }
-
- virtual void ff20_write(offs_t offset, uint8_t data) override;
- virtual uint8_t ff40_read(offs_t offset) override;
- virtual void ff40_write(offs_t offset, uint8_t data) override;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void coco3p(machine_config &config);
- void coco3h(machine_config &config);
- void coco3dw1(machine_config &config);
- void coco3(machine_config &config);
- void coco3_mem(address_map &map);
-protected:
- virtual void update_cart_base(uint8_t *cart_base) override;
-
- // miscellaneous
- virtual void update_keyboard_input(uint8_t value) override;
- virtual void cart_w(bool line) override;
-
-private:
- required_device<gime_device> m_gime;
-};
-
-#endif // MAME_INCLUDES_COCO3_H
diff --git a/src/mame/includes/coleco.h b/src/mame/includes/coleco.h
deleted file mode 100644
index 186fe97cf1b..00000000000
--- a/src/mame/includes/coleco.h
+++ /dev/null
@@ -1,140 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour, Ben Bruscella, Sean Young, Frank Palazzolo
-#pragma once
-
-#ifndef MAME_INCLUDES_COLECO_H
-#define MAME_INCLUDES_COLECO_H
-
-
-#include "cpu/z80/z80.h"
-#include "machine/timer.h"
-#include "machine/ram.h"
-#include "sound/sn76496.h"
-#include "video/tms9928a.h"
-#include "machine/coleco.h"
-#include "bus/coleco/cartridge/exp.h"
-
-class coleco_state : public driver_device
-{
-public:
- coleco_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_cart(*this, COLECOVISION_CARTRIDGE_SLOT_TAG),
- m_ctrlsel(*this, "CTRLSEL"),
- m_std_keypad1(*this, "STD_KEYPAD1"),
- m_std_joy1(*this, "STD_JOY1"),
- m_std_keypad2(*this, "STD_KEYPAD2"),
- m_std_joy2(*this, "STD_JOY2"),
- m_sac_keypad1(*this, "SAC_KEYPAD1"),
- m_sac_joy1(*this, "SAC_JOY1"),
- m_sac_slide1(*this, "SAC_SLIDE1"),
- m_sac_keypad2(*this, "SAC_KEYPAD2"),
- m_sac_joy2(*this, "SAC_JOY2"),
- m_sac_slide2(*this, "SAC_SLIDE2"),
- m_driv_wheel1(*this, "DRIV_WHEEL1"),
- m_driv_pedal1(*this, "DRIV_PEDAL1"),
- m_driv_wheel2(*this, "DRIV_WHEEL2"),
- m_driv_pedal2(*this, "DRIV_PEDAL2"),
- m_roller_x(*this, "ROLLER_X"),
- m_roller_y(*this, "ROLLER_Y")
- { }
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t cart_r(offs_t offset);
- uint8_t paddle_1_r();
- uint8_t paddle_2_r();
- void paddle_off_w(uint8_t data);
- void paddle_on_w(uint8_t data);
-
- TIMER_CALLBACK_MEMBER(paddle_d7reset_callback);
- TIMER_CALLBACK_MEMBER(paddle_irqreset_callback);
- TIMER_CALLBACK_MEMBER(paddle_pulse_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(paddle_update_callback);
- DECLARE_WRITE_LINE_MEMBER(coleco_vdp_interrupt);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(czz50_cart);
-
- uint8_t coleco_paddle_read(int port, int joy_mode, uint8_t joy_status);
- uint8_t coleco_scan_paddles(uint8_t *joy_status0, uint8_t *joy_status1);
-
- void colecop(machine_config &config);
- void coleco(machine_config &config);
- void czz50(machine_config &config);
- void dina(machine_config &config);
- void coleco_io_map(address_map &map);
- void coleco_map(address_map &map);
- void czz50_map(address_map &map);
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<colecovision_cartridge_slot_device> m_cart;
-
- int m_joy_mode;
- int m_last_nmi_state;
-
- // analog controls
- attotime m_joy_pulse_reload[2];
- emu_timer *m_joy_pulse_timer[2];
- emu_timer *m_joy_irq_timer[2];
- emu_timer *m_joy_d7_timer[2];
- int m_joy_irq_state[2];
- int m_joy_d7_state[2];
- uint8_t m_joy_analog_state[2];
- uint8_t m_joy_analog_reload[2];
-
- optional_ioport m_ctrlsel;
- required_ioport m_std_keypad1;
- required_ioport m_std_joy1;
- required_ioport m_std_keypad2;
- required_ioport m_std_joy2;
- optional_ioport m_sac_keypad1;
- optional_ioport m_sac_joy1;
- optional_ioport m_sac_slide1;
- optional_ioport m_sac_keypad2;
- optional_ioport m_sac_joy2;
- optional_ioport m_sac_slide2;
- optional_ioport m_driv_wheel1;
- optional_ioport m_driv_pedal1;
- optional_ioport m_driv_wheel2;
- optional_ioport m_driv_pedal2;
- optional_ioport m_roller_x;
- optional_ioport m_roller_y;
-};
-
-class bit90_state : public coleco_state
-{
-public:
- bit90_state(const machine_config &mconfig, device_type type, const char *tag)
- : coleco_state(mconfig, type, tag),
- m_bank(*this, "bank"),
- m_ram(*this, RAM_TAG),
- m_io_keyboard(*this, {"ROW0", "ROW1", "ROW2", "ROW3", "ROW4", "ROW5", "ROW6", "ROW7"})
- {}
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bit90(machine_config &config);
-
- uint8_t bankswitch_u4_r(address_space &space);
- uint8_t bankswitch_u3_r(address_space &space);
- uint8_t keyboard_r(address_space &space);
- void u32_w(uint8_t data);
-
- void init();
-
-protected:
- required_memory_bank m_bank;
- required_device<ram_device> m_ram;
- required_ioport_array<8> m_io_keyboard;
-
-private:
- void bit90_map(address_map &map);
- void bit90_io_map(address_map &map);
-
- uint8_t m_keyselect;
- uint8_t m_unknown;
-};
-
-#endif
diff --git a/src/mame/includes/combatsc.h b/src/mame/includes/combatsc.h
deleted file mode 100644
index 6cd256c1454..00000000000
--- a/src/mame/includes/combatsc.h
+++ /dev/null
@@ -1,130 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino, Manuel Abadia
-/*************************************************************************
-
- Combat School
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_COMBATSC_H
-#define MAME_INCLUDES_COMBATSC_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/upd7759.h"
-#include "sound/msm5205.h"
-#include "video/k007121.h"
-#include "machine/k007452.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class combatsc_state : public driver_device
-{
-public:
- combatsc_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k007121_1(*this, "k007121_1"),
- m_k007121_2(*this, "k007121_2"),
- m_k007452(*this, "k007452"),
- m_upd7759(*this, "upd"),
- m_msm(*this, "msm"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_track_ports(*this, {"TRACK0_Y", "TRACK0_X", "TRACK1_Y", "TRACK1_X"})
- {
- }
-
- /* memory pointers */
- uint8_t * m_videoram;
- uint8_t * m_scrollram;
- uint8_t * m_io_ram;
- std::unique_ptr<uint8_t[]> m_spriteram[2];
-
- /* video-related */
- tilemap_t *m_bg_tilemap[2];
- tilemap_t *m_textlayer;
- uint8_t m_scrollram0[0x40];
- uint8_t m_scrollram1[0x40];
- int m_priority;
-
- int m_vreg;
- int m_bank_select; /* 0x00..0x1f */
- int m_video_circuit; /* 0 or 1 */
- bool m_textflip;
- uint8_t *m_page[2];
-
- /* misc */
- uint8_t m_pos[4];
- uint8_t m_sign[4];
- int m_boost;
- emu_timer *m_interleave_timer;
-
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<k007121_device> m_k007121_1;
- optional_device<k007121_device> m_k007121_2;
- optional_device<k007452_device> m_k007452;
- optional_device<upd7759_device> m_upd7759;
- optional_device<msm5205_device> m_msm;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- optional_ioport_array<4> m_track_ports;
-
- void combatsc_vreg_w(uint8_t data);
- uint8_t combatscb_io_r(offs_t offset);
- void combatscb_priority_w(uint8_t data);
- void combatsc_bankselect_w(uint8_t data);
- void combatscb_io_w(offs_t offset, uint8_t data);
- void combatscb_bankselect_w(address_space &space, uint8_t data);
- void combatsc_coin_counter_w(uint8_t data);
- uint8_t trackball_r(offs_t offset);
- uint8_t unk_r();
- void combatsc_sh_irqtrigger_w(uint8_t data);
- uint8_t combatsc_video_r(offs_t offset);
- void combatsc_video_w(offs_t offset, uint8_t data);
- void combatsc_pf_control_w(offs_t offset, uint8_t data);
- uint8_t combatsc_scrollram_r(offs_t offset);
- void combatsc_scrollram_w(offs_t offset, uint8_t data);
- uint8_t combatsc_busy_r();
- void combatsc_play_w(uint8_t data);
- void combatsc_voice_reset_w(uint8_t data);
- void combatsc_portA_w(uint8_t data);
- void combatscb_msm_w(uint8_t data);
- void combatscb_sound_irq_ack(uint8_t data);
- void init_combatsc();
- TILE_GET_INFO_MEMBER(get_tile_info0);
- TILE_GET_INFO_MEMBER(get_tile_info1);
- TILE_GET_INFO_MEMBER(get_text_info);
- TILE_GET_INFO_MEMBER(get_tile_info0_bootleg);
- TILE_GET_INFO_MEMBER(get_tile_info1_bootleg);
- TILE_GET_INFO_MEMBER(get_text_info_bootleg);
- virtual void machine_reset() override;
- DECLARE_MACHINE_START(combatsc);
- DECLARE_VIDEO_START(combatsc);
- void combatsc_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(combatscb);
- DECLARE_VIDEO_START(combatscb);
- void combatscb_palette(palette_device &palette) const;
- uint32_t screen_update_combatsc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_combatscb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, const uint8_t *source, int circuit, bitmap_ind8 &priority_bitmap, uint32_t pri_mask );
- void bootleg_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, const uint8_t *source, int circuit );
- void combatscb(machine_config &config);
- void combatsc(machine_config &config);
- void combatsc_map(address_map &map);
- void combatsc_sound_map(address_map &map);
- void combatscb_map(address_map &map);
- void combatscb_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_COMBATSC_H
diff --git a/src/mame/includes/commando.h b/src/mame/includes/commando.h
deleted file mode 100644
index 57756047162..00000000000
--- a/src/mame/includes/commando.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Commando
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_COMMANDO_H
-#define MAME_INCLUDES_COMMANDO_H
-
-#pragma once
-
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class commando_state : public driver_device
-{
-public:
- commando_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_videoram2(*this, "videoram2"),
- m_colorram2(*this, "colorram2"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_audiocpu(*this, "audiocpu"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void init_spaceinv();
- void init_commando();
-
- void commando(machine_config &config);
-
-protected:
- void commando_videoram_w(offs_t offset, uint8_t data);
- void commando_colorram_w(offs_t offset, uint8_t data);
- void commando_videoram2_w(offs_t offset, uint8_t data);
- void commando_colorram2_w(offs_t offset, uint8_t data);
- void commando_scrollx_w(offs_t offset, uint8_t data);
- void commando_scrolly_w(offs_t offset, uint8_t data);
- void commando_c804_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_commando(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void commando_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void sound_map(address_map &map);
-
-private:
- /* memory pointers */
- required_device<buffered_spriteram8_device> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram2;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_scroll_x[2];
- uint8_t m_scroll_y[2];
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-};
-
-#endif // MAME_INCLUDES_COMMANDO_H
diff --git a/src/mame/includes/compgolf.h b/src/mame/includes/compgolf.h
deleted file mode 100644
index 3b18e5fb190..00000000000
--- a/src/mame/includes/compgolf.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese, Pierpaolo Prazzoli, Bryan McPhail
-/*************************************************************************
-
- Competition Golf Final Round
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_COMPGOLF_H
-#define MAME_INCLUDES_COMPGOLF_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class compgolf_state : public driver_device
-{
-public:
- compgolf_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_bg_ram(*this, "bg_ram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_bg_ram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_text_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_scrollx_lo;
- int m_scrollx_hi;
- int m_scrolly_lo;
- int m_scrolly_hi;
-
- /* misc */
- int m_bank;
- void compgolf_ctrl_w(uint8_t data);
- void compgolf_video_w(offs_t offset, uint8_t data);
- void compgolf_back_w(offs_t offset, uint8_t data);
- void compgolf_scrollx_lo_w(uint8_t data);
- void compgolf_scrolly_lo_w(uint8_t data);
- void init_compgolf();
- TILE_GET_INFO_MEMBER(get_text_info);
- TILEMAP_MAPPER_MEMBER(back_scan);
- TILE_GET_INFO_MEMBER(get_back_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void compgolf_palette(palette_device &palette) const;
- uint32_t screen_update_compgolf(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void compgolf_expand_bg();
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void compgolf(machine_config &config);
- void compgolf_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_COMPGOLF_H
diff --git a/src/mame/includes/comquest.h b/src/mame/includes/comquest.h
deleted file mode 100644
index ff9e76525f8..00000000000
--- a/src/mame/includes/comquest.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/comquest.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_COMQUEST_H
-#define MAME_INCLUDES_COMQUEST_H
-
-
-class comquest_state : public driver_device
-{
-public:
- comquest_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- { }
-
- uint8_t m_data[128][8];
- void *m_timer;
- int m_line;
- int m_dma_activ;
- int m_state;
- int m_count;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_comquest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- void comquest(machine_config &config);
- void comquest_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_COMQUEST_H
diff --git a/src/mame/includes/comx35.h b/src/mame/includes/comx35.h
deleted file mode 100644
index 1cff50e38bb..00000000000
--- a/src/mame/includes/comx35.h
+++ /dev/null
@@ -1,108 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#pragma once
-
-#ifndef MAME_INCLUDES_COMX35_H
-#define MAME_INCLUDES_COMX35_H
-
-#include "bus/comx35/exp.h"
-#include "cpu/cosmac/cosmac.h"
-#include "imagedev/cassette.h"
-#include "imagedev/printer.h"
-#include "imagedev/snapquik.h"
-#include "machine/cdp1871.h"
-#include "machine/ram.h"
-#include "machine/rescap.h"
-#include "sound/cdp1869.h"
-
-#define SCREEN_TAG "screen"
-
-#define CDP1870_TAG "u1"
-#define CDP1869_TAG "u2"
-#define CDP1802_TAG "u3"
-#define CDP1871_TAG "u4"
-#define EXPANSION_TAG "exp"
-
-#define COMX35_CHARRAM_SIZE 0x800
-#define COMX35_CHARRAM_MASK 0x7ff
-
-class comx35_state : public driver_device
-{
-public:
- comx35_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, CDP1802_TAG),
- m_vis(*this, CDP1869_TAG),
- m_kbe(*this, CDP1871_TAG),
- m_cassette(*this, "cassette"),
- m_ram(*this, RAM_TAG),
- m_exp(*this, EXPANSION_TAG),
- m_rom(*this, CDP1802_TAG),
- m_char_ram(*this, "char_ram", COMX35_CHARRAM_SIZE, ENDIANNESS_LITTLE),
- m_d6(*this, "D6"),
- m_modifiers(*this, "MODIFIERS")
- { }
-
- required_device<cosmac_device> m_maincpu;
- required_device<cdp1869_device> m_vis;
- required_device<cdp1871_device> m_kbe;
- required_device<cassette_image_device> m_cassette;
- required_device<ram_device> m_ram;
- required_device<comx_expansion_slot_device> m_exp;
- required_memory_region m_rom;
- memory_share_creator<uint8_t> m_char_ram;
- required_ioport m_d6;
- required_ioport m_modifiers;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void video_start() override;
-
- enum
- {
- TIMER_ID_RESET
- };
-
- void check_interrupt();
-
- uint8_t mem_r(offs_t offset);
- void mem_w(offs_t offset, uint8_t data);
- uint8_t io_r(offs_t offset);
- void io_w(offs_t offset, uint8_t data);
- void cdp1869_w(offs_t offset, uint8_t data);
- DECLARE_READ_LINE_MEMBER( clear_r );
- DECLARE_READ_LINE_MEMBER( ef2_r );
- DECLARE_READ_LINE_MEMBER( ef4_r );
- DECLARE_WRITE_LINE_MEMBER( q_w );
- void sc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( irq_w );
- DECLARE_WRITE_LINE_MEMBER( prd_w );
- DECLARE_INPUT_CHANGED_MEMBER( trigger_reset );
- DECLARE_QUICKLOAD_LOAD_MEMBER( quickload_cb );
- void image_fread_memory(device_image_interface &image, uint16_t addr, uint32_t count);
- CDP1869_CHAR_RAM_READ_MEMBER(comx35_charram_r);
- CDP1869_CHAR_RAM_WRITE_MEMBER(comx35_charram_w);
- CDP1869_PCB_READ_MEMBER(comx35_pcb_r);
-
- void base(machine_config &config, const XTAL clock);
- void pal(machine_config &config);
- void ntsc(machine_config &config);
- void comx35_pal_video(machine_config &config);
- void comx35_ntsc_video(machine_config &config);
-
- void cdp1869_page_ram(address_map &map);
- void comx35_io(address_map &map);
- void comx35_mem(address_map &map);
- // processor state
- int m_clear; // CPU mode
- int m_q; // Q flag
- int m_iden; // interrupt/DMA enable
- int m_dma; // memory refresh DMA
- int m_int; // interrupt request
- int m_prd; // predisplay
- int m_cr1; // interrupt enable
-};
-
-#endif
diff --git a/src/mame/includes/concept.h b/src/mame/includes/concept.h
deleted file mode 100644
index 6df7630a23c..00000000000
--- a/src/mame/includes/concept.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Raphael Nabet, Brett Wyer
-/*****************************************************************************
- *
- * includes/concept.h
- *
- * Corvus Concept driver
- *
- * Raphael Nabet, 2003
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_CONCEPT_H
-#define MAME_INCLUDES_CONCEPT_H
-
-#include "cpu/m68000/m68000.h"
-#include "machine/6522via.h"
-#include "machine/mos6551.h"
-#include "machine/mm58174.h"
-#include "sound/spkrdev.h"
-#include "bus/a2bus/a2bus.h"
-
-#define ACIA_0_TAG "acia0"
-#define ACIA_1_TAG "acia1"
-#define VIA_0_TAG "via6522_0"
-#define KBD_ACIA_TAG "kbacia"
-
-class concept_state : public driver_device
-{
-public:
- concept_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_acia0(*this, ACIA_0_TAG),
- m_acia1(*this, ACIA_1_TAG),
- m_via0(*this, VIA_0_TAG),
- m_kbdacia(*this, KBD_ACIA_TAG),
- m_speaker(*this, "spkr"),
- m_mm58174(*this, "mm58174"),
- m_a2bus(*this, "a2bus"),
- m_videoram(*this,"videoram")
- { }
-
- void concept(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<mos6551_device> m_acia0;
- required_device<mos6551_device> m_acia1;
- required_device<via6522_device> m_via0;
- required_device<mos6551_device> m_kbdacia;
- required_device<speaker_sound_device> m_speaker;
- required_device<mm58174_device> m_mm58174;
- required_device<a2bus_device> m_a2bus;
- required_shared_ptr<uint16_t> m_videoram;
-
- uint8_t m_pending_interrupts;
- bool m_clock_enable;
- uint8_t m_clock_address;
- uint8_t io_r(offs_t offset);
- void io_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint8_t via_in_a();
- void via_out_a(uint8_t data);
- uint8_t via_in_b();
- void via_out_b(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(via_out_cb2);
- DECLARE_WRITE_LINE_MEMBER(via_irq_func);
- DECLARE_WRITE_LINE_MEMBER(ioc_interrupt);
- void concept_set_interrupt(int level, int state);
-
- void concept_memmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CONCEPT_H
diff --git a/src/mame/includes/contra.h b/src/mame/includes/contra.h
deleted file mode 100644
index 48fb41e2194..00000000000
--- a/src/mame/includes/contra.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Carlos A. Lozano, Phil Stroffolino
-/*************************************************************************
-
- Contra / Gryzor
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CONTRA_H
-#define MAME_INCLUDES_CONTRA_H
-
-#pragma once
-
-#include "video/k007121.h"
-#include "machine/k007452.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class contra_state : public driver_device
-{
-public:
- contra_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_fg_cram(*this, "fg_cram"),
- m_fg_vram(*this, "fg_vram"),
- m_tx_cram(*this, "tx_cram"),
- m_tx_vram(*this, "tx_vram"),
- m_spriteram(*this, "spriteram"),
- m_spriteram_2(*this, "spriteram_2"),
- m_bg_cram(*this, "bg_cram"),
- m_bg_vram(*this, "bg_vram"),
- m_audiocpu(*this, "audiocpu"),
- m_k007121_1(*this, "k007121_1"),
- m_k007121_2(*this, "k007121_2"),
- m_k007452(*this, "k007452"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- /* memory pointers */
- std::unique_ptr<uint8_t[]> m_buffered_spriteram;
- std::unique_ptr<uint8_t[]> m_buffered_spriteram_2;
- required_shared_ptr<uint8_t> m_fg_cram;
- required_shared_ptr<uint8_t> m_fg_vram;
- required_shared_ptr<uint8_t> m_tx_cram;
- required_shared_ptr<uint8_t> m_tx_vram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_spriteram_2;
- required_shared_ptr<uint8_t> m_bg_cram;
- required_shared_ptr<uint8_t> m_bg_vram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
- rectangle m_bg_clip;
- rectangle m_fg_clip;
- rectangle m_tx_clip;
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<k007121_device> m_k007121_1;
- required_device<k007121_device> m_k007121_2;
- required_device<k007452_device> m_k007452;
- void contra_bankswitch_w(uint8_t data);
- void contra_sh_irqtrigger_w(uint8_t data);
- void sirq_clear_w(uint8_t data);
- void contra_coin_counter_w(uint8_t data);
- void contra_fg_vram_w(offs_t offset, uint8_t data);
- void contra_fg_cram_w(offs_t offset, uint8_t data);
- void contra_bg_vram_w(offs_t offset, uint8_t data);
- void contra_bg_cram_w(offs_t offset, uint8_t data);
- void contra_text_vram_w(offs_t offset, uint8_t data);
- void contra_text_cram_w(offs_t offset, uint8_t data);
- void contra_K007121_ctrl_0_w(offs_t offset, uint8_t data);
- void contra_K007121_ctrl_1_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void contra_palette(palette_device &palette) const;
- uint32_t screen_update_contra(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(contra_interrupt);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, int bank );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- void contra(machine_config &config);
- void contra_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CONTRA_H
diff --git a/src/mame/includes/coolpool.h b/src/mame/includes/coolpool.h
deleted file mode 100644
index 23f0926de7f..00000000000
--- a/src/mame/includes/coolpool.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles,Nicola Salmoria
-#ifndef MAME_INCLUDES_COOLPOOL_H
-#define MAME_INCLUDES_COOLPOOL_H
-
-#pragma once
-
-#include "cpu/tms34010/tms34010.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "video/tlc34076.h"
-
-class coolpool_state : public driver_device
-{
-public:
- coolpool_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_dsp(*this, "dsp")
- , m_tlc34076(*this, "tlc34076")
- , m_main2dsp(*this, "main2dsp")
- , m_dsp2main(*this, "dsp2main")
- , m_nvram_timer(*this, "nvram_timer")
- , m_vram_base(*this, "vram_base")
- , m_nvram(*this, "nvram")
- , m_dsp_rom(*this, "dspdata")
- { }
-
- void _9ballsht(machine_config &config);
- void coolpool(machine_config &config);
- void amerdart(machine_config &config);
-
- void init_amerdart();
- void init_9ballsht();
-
-protected:
- virtual void machine_start() override;
-
-private:
- static constexpr unsigned NVRAM_UNLOCK_SEQ_LEN = 10;
-
- required_device<tms34010_device> m_maincpu;
- required_device<cpu_device> m_dsp;
- optional_device<tlc34076_device> m_tlc34076;
-
- required_device<generic_latch_16_device> m_main2dsp;
- required_device<generic_latch_16_device> m_dsp2main;
-
- required_device<timer_device> m_nvram_timer;
-
- required_shared_ptr<uint16_t> m_vram_base;
- required_shared_ptr<uint16_t> m_nvram;
- required_region_ptr<uint8_t> m_dsp_rom;
-
- int m_iop_romaddr;
-
- uint8_t m_newx[3];
- uint8_t m_newy[3];
- uint8_t m_oldx[3];
- uint8_t m_oldy[3];
- int m_dx[3];
- int m_dy[3];
-
- uint16_t m_result;
- uint16_t m_lastresult;
-
- uint16_t m_nvram_write_seq[NVRAM_UNLOCK_SEQ_LEN];
- uint8_t m_nvram_write_enable;
- bool m_old_cmd;
- uint8_t m_same_cmd_count;
-
- void nvram_thrash_w(offs_t offset, uint16_t data);
- void nvram_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void nvram_thrash_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void amerdart_misc_w(uint16_t data);
- DECLARE_READ_LINE_MEMBER(amerdart_dsp_bio_line_r);
- uint16_t amerdart_trackball_r(offs_t offset);
- void coolpool_misc_w(uint16_t data);
- uint16_t dsp_bio_line_r();
- uint16_t dsp_hold_line_r();
- uint16_t dsp_rom_r();
- void dsp_romaddr_w(offs_t offset, uint16_t data);
- uint16_t coolpool_input_r(offs_t offset);
-
- TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg);
- TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg);
- TMS340X0_SCANLINE_RGB32_CB_MEMBER(amerdart_scanline);
- TMS340X0_SCANLINE_RGB32_CB_MEMBER(coolpool_scanline);
-
- DECLARE_MACHINE_RESET(amerdart);
- DECLARE_MACHINE_RESET(coolpool);
-
- TIMER_DEVICE_CALLBACK_MEMBER(nvram_write_timeout);
- TIMER_DEVICE_CALLBACK_MEMBER(amerdart_audio_int_gen);
-
- int amerdart_trackball_direction(int num, int data);
-
- void amerdart_dsp_io_map(address_map &map);
- void amerdart_dsp_pgm_map(address_map &map);
- void amerdart_map(address_map &map);
- void coolpool_dsp_io_map(address_map &map);
- void coolpool_dsp_io_base_map(address_map &map);
- void coolpool_dsp_pgm_map(address_map &map);
- void coolpool_map(address_map &map);
- void nballsht_dsp_io_map(address_map &map);
- void nballsht_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_COOLPOOL_H
diff --git a/src/mame/includes/cop01.h b/src/mame/includes/cop01.h
deleted file mode 100644
index 09c58b6adda..00000000000
--- a/src/mame/includes/cop01.h
+++ /dev/null
@@ -1,95 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Carlos A. Lozano
-/*************************************************************************
-
- Cops 01
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_COP01_H
-#define MAME_INCLUDES_COP01_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/nb1412m2.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class cop01_state : public driver_device
-{
-public:
- cop01_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bgvideoram(*this, "bgvideoram"),
- m_spriteram(*this, "spriteram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_fgvideoram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_vreg[4];
-
- /* sound-related */
- int m_pulse;
- int m_timer; // kludge for ym3526 in mightguy
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void cop01_sound_command_w(uint8_t data);
- uint8_t cop01_sound_command_r();
- void cop01_irq_ack_w(uint8_t data);
- uint8_t cop01_sound_irq_ack_w();
- void cop01_background_w(offs_t offset, uint8_t data);
- void cop01_foreground_w(offs_t offset, uint8_t data);
- void cop01_vreg_w(offs_t offset, uint8_t data);
- template <int Mask> DECLARE_READ_LINE_MEMBER(mightguy_area_r);
- void init_mightguy();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void cop01_palette(palette_device &palette) const;
- uint32_t screen_update_cop01(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void cop01(machine_config &config);
- void audio_io_map(address_map &map);
- void cop01_map(address_map &map);
- void io_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-class mightguy_state : public cop01_state
-{
-public:
- mightguy_state(const machine_config &mconfig, device_type type, const char *tag) :
- cop01_state(mconfig, type, tag),
- m_prot(*this, "prot_chip")
- { }
-
- void mightguy(machine_config &config);
-
-private:
- void mightguy_io_map(address_map &map);
- void mightguy_audio_io_map(address_map &map);
-
- required_device<nb1412m2_device> m_prot;
-};
-
-#endif // MAME_INCLUDES_COP01_H
diff --git a/src/mame/includes/copsnrob.h b/src/mame/includes/copsnrob.h
deleted file mode 100644
index 418a7d6b92a..00000000000
--- a/src/mame/includes/copsnrob.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/*************************************************************************
-
- Atari Cops'n Robbers hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_COPSNROB_H
-#define MAME_INCLUDES_COPSNROB_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-class copsnrob_state : public driver_device
-{
-public:
- copsnrob_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_trucky(*this, "trucky"),
- m_truckram(*this, "truckram"),
- m_bulletsram(*this, "bulletsram"),
- m_carimage(*this, "carimage"),
- m_cary(*this, "cary"),
- m_videoram(*this, "videoram"),
- m_discrete(*this, "discrete"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_leds(*this, "led%u", 0U)
- { }
-
- void copsnrob(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void copsnrob_audio(machine_config &config);
- void main_map(address_map &map);
-
- uint8_t copsnrob_misc_r();
- void copsnrob_misc2_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(one_start_w);
- uint32_t screen_update_copsnrob(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_trucky;
- required_shared_ptr<uint8_t> m_truckram;
- required_shared_ptr<uint8_t> m_bulletsram;
- required_shared_ptr<uint8_t> m_carimage;
- required_shared_ptr<uint8_t> m_cary;
- required_shared_ptr<uint8_t> m_videoram;
- required_device<discrete_device> m_discrete;
-
- /* misc */
- uint8_t m_misc;
- uint8_t m_ic_h3_data;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- output_finder<2> m_leds;
-};
-
-#endif // MAME_INCLUDES_COPSNROB_H
diff --git a/src/mame/includes/cosmic.h b/src/mame/includes/cosmic.h
deleted file mode 100644
index 79cf44b2089..00000000000
--- a/src/mame/includes/cosmic.h
+++ /dev/null
@@ -1,122 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Lee Taylor
-/*************************************************************************
-
- Cosmic Guerilla & other Universal boards (in cosmic.c)
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_COSMIC_H
-#define MAME_INCLUDES_COSMIC_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/samples.h"
-#include "sound/dac.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define Z80_MASTER_CLOCK XTAL(10'816'000)
-
-
-class cosmic_state : public driver_device
-{
-public:
- cosmic_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_sound_enabled(0),
- m_in_ports(*this, "IN%u", 0),
- m_dsw(*this, "DSW"),
- m_maincpu(*this, "maincpu"),
- m_samples(*this, "samples"),
- m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void cosmic(machine_config &config);
- void cosmica(machine_config &config);
- void nomnlnd(machine_config &config);
- void devzone(machine_config &config);
- void panic(machine_config &config);
- void magspot(machine_config &config);
-
- void init_devzone();
- void init_nomnlnd();
- void init_cosmica();
- void init_panic();
-
- DECLARE_WRITE_LINE_MEMBER(panic_coin_inserted);
- DECLARE_INPUT_CHANGED_MEMBER(cosmica_coin_inserted);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted_irq0);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted_nmi);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- typedef pen_t (cosmic_state::*color_func)(uint8_t x, uint8_t y);
- color_func m_map_color;
- int m_color_registers[3];
- int m_background_enable;
- int m_magspot_pen_mask;
-
- /* sound-related */
- int m_sound_enabled;
- int m_dive_bomb_b_select;
-
- /* misc */
- optional_ioport_array<4> m_in_ports;
- optional_ioport m_dsw;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<samples_device> m_samples;
- optional_device<dac_bit_interface> m_dac;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- void panic_sound_output_w(offs_t offset, uint8_t data);
- void panic_sound_output2_w(offs_t offset, uint8_t data);
- void cosmica_sound_output_w(offs_t offset, uint8_t data);
- void dac_w(uint8_t data);
- uint8_t cosmica_pixel_clock_r();
- uint8_t magspot_coinage_dip_r(offs_t offset);
- uint8_t nomnlnd_port_0_1_r(offs_t offset);
- void flip_screen_w(uint8_t data);
- void cosmic_color_register_w(offs_t offset, uint8_t data);
- void cosmic_background_enable_w(uint8_t data);
- void panic_palette(palette_device &palette);
- void cosmica_palette(palette_device &palette);
- void magspot_palette(palette_device &palette);
- void nomnlnd_palette(palette_device &palette);
- uint32_t screen_update_panic(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cosmica(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_magspot(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_devzone(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_nomnlnd(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(panic_scanline);
- void draw_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int color_mask, int extra_sprites);
- void cosmica_draw_starfield(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void devzone_draw_grid(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void nomnlnd_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- pen_t panic_map_color(uint8_t x, uint8_t y);
- pen_t cosmica_map_color(uint8_t x, uint8_t y);
- pen_t magspot_map_color(uint8_t x, uint8_t y);
- void cosmica_map(address_map &map);
- void magspot_map(address_map &map);
- void panic_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_COSMIC_H
diff --git a/src/mame/includes/cosmicos.h b/src/mame/includes/cosmicos.h
deleted file mode 100644
index de67ba76e37..00000000000
--- a/src/mame/includes/cosmicos.h
+++ /dev/null
@@ -1,147 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_COSMICOS_H
-#define MAME_INCLUDES_COSMICOS_H
-
-#pragma once
-
-#include "cpu/cosmac/cosmac.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "machine/ram.h"
-#include "machine/rescap.h"
-#include "machine/timer.h"
-#include "sound/cdp1864.h"
-#include "sound/spkrdev.h"
-#include "video/dm9368.h"
-
-#define CDP1802_TAG "ic19"
-#define CDP1864_TAG "ic3"
-#define DM9368_TAG "ic10"
-#define SCREEN_TAG "screen"
-
-enum
-{
- LED_RUN = 0,
- LED_LOAD,
- LED_PAUSE,
- LED_RESET,
- LED_D7,
- LED_D6,
- LED_D5,
- LED_D4,
- LED_D3,
- LED_D2,
- LED_D1,
- LED_D0,
- LED_Q,
- LED_CASSETTE
-};
-
-class cosmicos_state : public driver_device
-{
-public:
- cosmicos_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_digit(0),
- m_maincpu(*this, CDP1802_TAG),
- m_cti(*this, CDP1864_TAG),
- m_led(*this, DM9368_TAG),
- m_cassette(*this, "cassette"),
- m_speaker(*this, "speaker"),
- m_ram(*this, RAM_TAG),
- m_rom(*this, CDP1802_TAG),
- m_key_row(*this, {"Y1", "Y2", "Y3", "Y4"}),
- m_io_data(*this, "DATA"),
- m_special(*this, "SPECIAL"),
- m_buttons(*this, "BUTTONS"),
- m_digits(*this, "digit%u", 0U),
- m_leds(*this, "led%u", 0U)
- { }
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
- uint8_t video_off_r();
- uint8_t video_on_r();
- void audio_latch_w(uint8_t data);
- uint8_t hex_keyboard_r();
- void hex_keylatch_w(uint8_t data);
- uint8_t reset_counter_r();
- void segment_w(uint8_t data);
- uint8_t data_r();
- void display_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( dmaout_w );
- DECLARE_WRITE_LINE_MEMBER( efx_w );
- DECLARE_READ_LINE_MEMBER( wait_r );
- DECLARE_READ_LINE_MEMBER( clear_r );
- DECLARE_READ_LINE_MEMBER( ef1_r );
- DECLARE_READ_LINE_MEMBER( ef2_r );
- DECLARE_READ_LINE_MEMBER( ef3_r );
- DECLARE_READ_LINE_MEMBER( ef4_r );
- DECLARE_WRITE_LINE_MEMBER( q_w );
- uint8_t dma_r();
- void sc_w(uint8_t data);
- DECLARE_INPUT_CHANGED_MEMBER( data );
- DECLARE_INPUT_CHANGED_MEMBER( enter );
- DECLARE_INPUT_CHANGED_MEMBER( single_step );
- DECLARE_INPUT_CHANGED_MEMBER( run );
- DECLARE_INPUT_CHANGED_MEMBER( load );
- DECLARE_INPUT_CHANGED_MEMBER( cosmicos_pause );
- DECLARE_INPUT_CHANGED_MEMBER( reset );
- DECLARE_INPUT_CHANGED_MEMBER( clear_data );
- DECLARE_INPUT_CHANGED_MEMBER( memory_protect );
- DECLARE_INPUT_CHANGED_MEMBER( memory_disable );
-
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
- void init_cosmicos();
- TIMER_DEVICE_CALLBACK_MEMBER(digit_tick);
- TIMER_DEVICE_CALLBACK_MEMBER(int_tick);
- void cosmicos(machine_config &config);
- void cosmicos_io(address_map &map);
- void cosmicos_mem(address_map &map);
-
-private:
- void set_cdp1802_mode(int mode);
- void clear_input_data();
-
- /* CPU state */
- int m_wait;
- int m_clear;
- int m_sc1;
-
- /* memory state */
- uint8_t m_data;
- int m_boot;
- int m_ram_protect;
- int m_ram_disable;
-
- /* keyboard state */
- uint8_t m_keylatch;
-
- /* display state */
- uint8_t m_segment;
- int m_digit;
- int m_counter;
- int m_q;
- int m_dmaout;
- int m_efx;
- int m_video_on;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- required_device<cosmac_device> m_maincpu;
- required_device<cdp1864_device> m_cti;
- required_device<dm9368_device> m_led;
- required_device<cassette_image_device> m_cassette;
- required_device<speaker_sound_device> m_speaker;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- required_ioport_array<4> m_key_row;
- required_ioport m_io_data;
- required_ioport m_special;
- required_ioport m_buttons;
- output_finder<10> m_digits;
- output_finder<14> m_leds;
-};
-
-#endif // MAME_INCLUDES_COSMICOS_H
diff --git a/src/mame/includes/cps1.h b/src/mame/includes/cps1.h
deleted file mode 100644
index c4265f9ec5f..00000000000
--- a/src/mame/includes/cps1.h
+++ /dev/null
@@ -1,431 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Leaman
-/***************************************************************************
-
- Capcom CPS1/2 hardware
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_CPS1_H
-#define MAME_INCLUDES_CPS1_H
-
-#pragma once
-
-#include "sound/msm5205.h"
-#include "sound/qsound.h"
-#include "sound/okim6295.h"
-#include "machine/gen_latch.h"
-#include "machine/74157.h"
-#include "machine/timekpr.h"
-#include "machine/timer.h"
-#include "cpu/m68000/m68000.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-// Video raw params
-// measured clocks:
-// CPS2(Guru): V = 59.6376Hz, H = 15,4445kHz *H is probably measured too low!
-// CPS1 GNG: V = 59.61Hz
-/* CPS1(Charles MacDonald):
- Pixel clock: 8.00 MHz
- Total pixel clocks per scanline: 512 clocks
- Horizontal sync pulse width : 36 clocks
- Horizontal display and blanking period: 476 clocks
- Frame size: 262 scanlines
- Refresh rate: 59.63 MHz.
-*/
-#define CPS_PIXEL_CLOCK (XTAL(16'000'000)/2)
-
-#define CPS_HTOTAL (512)
-#define CPS_HBEND (64)
-#define CPS_HBSTART (448)
-
-#define CPS_VTOTAL (262)
-#define CPS_VBEND (16)
-#define CPS_VBSTART (240)
-
-
-struct gfx_range
-{
- // start and end are as passed by the game (shift adjusted to be all
- // in the same scale a 8x8 tiles): they don't necessarily match the
- // position in ROM.
- int type;
- int start;
- int end;
- int bank;
-};
-
-struct CPS1config
-{
- const char *name; /* game driver name */
-
- /* Some games interrogate a couple of registers on bootup. */
- /* These are CPS1 board B self test checks. They wander from game to */
- /* game. */
- int cpsb_addr; /* CPS board B test register address */
- int cpsb_value; /* CPS board B test register expected value */
-
- /* some games use as a protection check the ability to do 16-bit multiplies */
- /* with a 32-bit result, by writing the factors to two ports and reading the */
- /* result from two other ports. */
- /* It looks like this feature was introduced with 3wonders (CPSB ID = 08xx) */
- int mult_factor1;
- int mult_factor2;
- int mult_result_lo;
- int mult_result_hi;
-
- /* unknown registers which might be related to the multiply protection */
- int unknown1;
- int unknown2;
- int unknown3;
-
- int layer_control;
- int priority[4];
- int palette_control;
-
- /* ideally, the layer enable masks should consist of only one bit, */
- /* but in many cases it is unknown which bit is which. */
- int layer_enable_mask[5];
-
- /* these depend on the B-board model and PAL */
- int bank_sizes[4];
- const struct gfx_range *bank_mapper;
-
- /* some C-boards have additional I/O for extra buttons/extra players */
- int in2_addr;
- int in3_addr;
- int out2_addr;
-
- int bootleg_kludge;
-};
-
-
-class cps_state : public driver_device
-{
-public:
- cps_state(const machine_config &mconfig, device_type type, const char *tag)
- : cps_state(mconfig, type, tag, 1)
- { }
-
-protected:
- cps_state(const machine_config &mconfig, device_type type, const char *tag, int version)
- : driver_device(mconfig, type, tag)
- , m_mainram(*this, "mainram")
- , m_gfxram(*this, "gfxram")
- , m_cps_a_regs(*this, "cps_a_regs")
- , m_cps_b_regs(*this, "cps_b_regs")
- , m_qsound_sharedram1(*this, "qsound_ram1")
- , m_qsound_sharedram2(*this, "qsound_ram2")
- , m_cps_version(version)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_oki(*this, "oki")
- , m_m48t35(*this,"m48t35")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_soundlatch2(*this, "soundlatch2")
- , m_region_stars(*this, "stars")
- , m_led_cboard(*this, "led_cboard%u", 0U)
- { }
-
-public:
- void cps1_10MHz(machine_config &config);
- void forgottn(machine_config &config);
- void cps1_12MHz(machine_config &config);
- void pang3(machine_config &config);
- void ganbare(machine_config &config);
- void qsound(machine_config &config);
- void wofhfh(machine_config &config);
- void sf2m3(machine_config &config);
- void sf2cems6(machine_config &config);
- void sf2m10(machine_config &config);
- void varthb2(machine_config &config);
-
- void init_cps1();
- void init_sf2ee();
- void init_wof();
- void init_dino();
- void init_punisher();
- void init_slammast();
- void init_pang3();
- void init_ganbare();
- void init_pang3b();
- void init_sf2rb();
- void init_sf2rb2();
- void init_sf2thndr();
- void init_sf2hack();
- void init_sf2rk();
- void init_sf2dongb();
- void init_sf2ceblp();
- void init_sf2m8();
- void init_dinohunt();
-
-protected:
- DECLARE_MACHINE_START(common);
- DECLARE_MACHINE_START(cps1);
- DECLARE_MACHINE_START(qsound);
- DECLARE_MACHINE_START(ganbare);
- DECLARE_MACHINE_RESET(cps);
-
- uint16_t cps1_dsw_r(offs_t offset);
- uint16_t cps1_in1_r();
- uint16_t cps1_in2_r();
- uint16_t cps1_in3_r();
- void cps1_coinctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cpsq_coinctrl2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cps1_cps_a_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t cps1_cps_b_r(offs_t offset);
- void cps1_cps_b_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cps1_gfxram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cps1_soundlatch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cps1_soundlatch2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cps1_snd_bankswitch_w(uint8_t data);
- void cps1_oki_pin7_w(uint8_t data);
- uint16_t qsound_rom_r(offs_t offset);
- uint16_t qsound_sharedram1_r(offs_t offset);
- void qsound_sharedram1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t qsound_sharedram2_r(offs_t offset);
- void qsound_sharedram2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void qsound_banksw_w(uint8_t data);
- uint16_t ganbare_ram_r(offs_t offset, uint16_t mem_mask = ~0);
- void ganbare_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t cps1_hack_dsw_r(offs_t offset);
- uint16_t sf2rb_prot_r(offs_t offset);
- uint16_t sf2rb2_prot_r(offs_t offset);
- uint16_t sf2dongb_prot_r(offs_t offset);
- uint16_t sf2ceblp_prot_r();
- void sf2ceblp_prot_w(uint16_t data);
- void sf2m3_layer_w(offs_t offset, uint16_t data);
- uint16_t dinohunt_sound_r();
- void varthb2_cps_a_w(offs_t offset, uint16_t data);
-
- TILEMAP_MAPPER_MEMBER(tilemap0_scan);
- TILEMAP_MAPPER_MEMBER(tilemap1_scan);
- TILEMAP_MAPPER_MEMBER(tilemap2_scan);
- TILE_GET_INFO_MEMBER(get_tile0_info);
- TILE_GET_INFO_MEMBER(get_tile1_info);
- TILE_GET_INFO_MEMBER(get_tile2_info);
- virtual void video_start() override;
-
- INTERRUPT_GEN_MEMBER(cps1_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(ganbare_interrupt);
-
- virtual void render_layers(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cps1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_cps1);
-
- void kabuki_setup(void (*decode)(uint8_t *src, uint8_t *dst));
-
- /* maps */
- void cpu_space_map(address_map &map);
- void main_map(address_map &map);
- void forgottn_map(address_map &map);
- void qsound_main_map(address_map &map);
- void qsound_decrypted_opcodes_map(address_map &map);
- void sub_map(address_map &map);
- void qsound_sub_map(address_map &map);
- void sf2m3_map(address_map &map);
- void sf2cems6_map(address_map &map);
- void sf2m10_map(address_map &map);
- void varthb2_map(address_map &map);
-
- // game-specific
- uint16_t sf2ceblp_prot;
-
- /* video-related */
- tilemap_t *m_bg_tilemap[3];
- int m_scanline1;
- int m_scanline2;
- int m_scancalls;
-
- int m_scroll1x;
- int m_scroll1y;
- int m_scroll2x;
- int m_scroll2y;
- int m_scroll3x;
- int m_scroll3y;
-
- int m_stars_enabled[2]; /* Layer enabled [Y/N] */
- int m_stars1x;
- int m_stars1y;
- int m_stars2x;
- int m_stars2y;
- int m_last_sprite_offset; /* Offset of the last sprite */
-
- bitmap_ind16 m_dummy_bitmap;
-
- /* video config (never changed after video_start) */
- const struct CPS1config *m_game_config;
- int m_scroll_size;
- int m_obj_size;
- int m_other_size;
- int m_palette_align;
- int m_palette_size;
- int m_stars_rom_size;
- uint8_t m_empty_tile[32*32];
-
- /* video/cps1.cpp */
- inline uint16_t *cps1_base( int offset, int boundary );
- void cps1_get_video_base();
- int gfxrom_bank_mapper(int type, int code);
- void cps1_update_transmasks();
- void cps1_build_palette(const uint16_t* const palette_base);
- virtual void find_last_sprite();
- void cps1_render_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void cps1_render_stars(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void cps1_render_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer, int primask);
- void cps1_render_high_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer);
-
- /* memory pointers */
- optional_shared_ptr<uint16_t> m_mainram;
- required_shared_ptr<uint16_t> m_gfxram;
- required_shared_ptr<uint16_t> m_cps_a_regs;
- required_shared_ptr<uint16_t> m_cps_b_regs;
- uint16_t * m_scroll1;
- uint16_t * m_scroll2;
- uint16_t * m_scroll3;
- uint16_t * m_obj;
- uint16_t * m_other;
- std::unique_ptr<uint16_t[]> m_buffered_obj;
- optional_shared_ptr<uint8_t> m_qsound_sharedram1;
- optional_shared_ptr<uint8_t> m_qsound_sharedram2;
- std::unique_ptr<uint8_t[]> m_decrypt_kabuki;
- int m_cps_version;
-
- /* devices */
- required_device<m68000_base_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<okim6295_device> m_oki;
- optional_device<m48t35_device> m_m48t35;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<generic_latch_8_device> m_soundlatch2;
- optional_memory_region m_region_stars;
- output_finder<3> m_led_cboard;
-};
-
-class cps2_state : public cps_state
-{
-public:
- cps2_state(const machine_config &mconfig, device_type type, const char *tag)
- : cps_state(mconfig, type, tag, 2)
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- , m_region_key(*this, "key")
- , m_qsound(*this, "qsound")
- , m_objram1(*this, "objram1")
- , m_objram2(*this, "objram2")
- , m_output(*this, "output")
- , m_io_in0(*this, "IN0")
- , m_io_in1(*this, "IN1")
- , m_cps2_dial_type(0)
- , m_ecofghtr_dial_direction0(0)
- , m_ecofghtr_dial_direction1(0)
- , m_ecofghtr_dial_last0(0)
- , m_ecofghtr_dial_last1(0)
- { }
-
- void cps2(machine_config &config);
- void gigaman2(machine_config &config);
- void dead_cps2(machine_config &config);
- void init_cps2_video();
- void init_cps2();
- void init_cps2nc();
- void init_cps2crypt();
- void init_gigaman2();
- void init_ssf2tb();
- void init_pzloop2();
- void init_singbrd();
- void init_ecofghtr();
-
-private:
- void init_digital_volume();
- uint16_t gigaman2_dummyqsound_r(offs_t offset);
- void gigaman2_dummyqsound_w(offs_t offset, uint16_t data);
- void gigaman2_gfx_reorder();
- void cps2_eeprom_port_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t cps2_qsound_volume_r();
- uint16_t kludge_r();
- uint16_t joy_or_paddle_r();
- uint16_t joy_or_paddle_ecofghtr_r();
- TIMER_DEVICE_CALLBACK_MEMBER(cps2_interrupt);
- TIMER_CALLBACK_MEMBER(cps2_update_digital_volume);
-
- void cps2_objram_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t cps2_objram1_r(offs_t offset);
- uint16_t cps2_objram2_r(offs_t offset);
- void cps2_objram1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cps2_objram2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void unshuffle(uint64_t *buf, int len);
- void cps2_gfx_decode();
- virtual void find_last_sprite() override;
- void cps2_render_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int *primasks);
- void cps2_set_sprite_priorities();
- void cps2_objram_latch();
- uint16_t *cps2_objbase();
- virtual void render_layers(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override;
- uint32_t screen_update_cps2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- DECLARE_MACHINE_START(cps2);
- virtual void video_start() override;
-
- void cps2_map(address_map &map);
- void dead_cps2_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
-
- optional_shared_ptr<uint16_t> m_decrypted_opcodes;
- optional_memory_region m_region_key;
-
- optional_device<qsound_device> m_qsound;
-
- required_shared_ptr<uint16_t> m_objram1;
- required_shared_ptr<uint16_t> m_objram2;
- required_shared_ptr<uint16_t> m_output;
-
- optional_ioport m_io_in0;
- optional_ioport m_io_in1;
-
- std::unique_ptr<uint16_t[]> m_cps2_buffered_obj;
- std::unique_ptr<uint16_t[]> m_gigaman2_dummyqsound_ram;
-
- /* video-related */
- int m_cps2_last_sprite_offset; /* Offset of the last sprite */
- int m_pri_ctrl; /* Sprite layer priorities */
- int m_objram_bank;
- int m_cps2_obj_size;
-
- /* misc */
- int m_readpaddle; // pzloop2
- int m_cps2networkpresent;
- int m_cps2digitalvolumelevel;
- int m_cps2disabledigitalvolume;
- emu_timer *m_digital_volume_timer;
- int m_cps2_dial_type;
- int m_ecofghtr_dial_direction0;
- int m_ecofghtr_dial_direction1;
- int m_ecofghtr_dial_last0;
- int m_ecofghtr_dial_last1;
-};
-
-
-/*----------- defined in drivers/cps1.cpp -----------*/
-
-extern gfx_decode_entry const gfx_cps1[];
-
-INPUT_PORTS_EXTERN( dino );
-INPUT_PORTS_EXTERN( knights );
-INPUT_PORTS_EXTERN( mtwins );
-INPUT_PORTS_EXTERN( punisher );
-INPUT_PORTS_EXTERN( sf2 );
-INPUT_PORTS_EXTERN( slammast );
-INPUT_PORTS_EXTERN( varth );
-INPUT_PORTS_EXTERN( captcomm );
-INPUT_PORTS_EXTERN( wof );
-
-#endif // MAME_INCLUDES_CPS1_H
diff --git a/src/mame/includes/cps3.h b/src/mame/includes/cps3.h
deleted file mode 100644
index 1db58e099dd..00000000000
--- a/src/mame/includes/cps3.h
+++ /dev/null
@@ -1,194 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Andreas Naive, Tomasz Slanina, ElSemi
-#ifndef MAME_INCLUDES_CPS3_H
-#define MAME_INCLUDES_CPS3_H
-
-#pragma once
-
-/***************************************************************************
-
- Capcom CPS-3 Hardware
-
-****************************************************************************/
-
-#include "machine/intelfsh.h"
-#include "cpu/sh/sh2.h"
-#include "audio/cps3.h"
-#include "machine/timer.h"
-#include "emupal.h"
-
-
-class cps3_state : public driver_device
-{
-public:
- cps3_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_cps3sound(*this, "cps3sound")
- , m_dma_timer(*this, "dma_timer")
- , m_spritelist_dma_timer(*this, "spritelist_dma_timer")
- , m_simm{{*this, "simm1.%u", 0U},
- {*this, "simm2.%u", 0U},
- {*this, "simm3.%u", 0U},
- {*this, "simm4.%u", 0U},
- {*this, "simm5.%u", 0U},
- {*this, "simm6.%u", 0U},
- {*this, "simm7.%u", 0U}}
- , m_mainram(*this, "mainram")
- , m_spriteram(*this, "spriteram")
- , m_colourram(*this, "colourram", 0x40000, ENDIANNESS_BIG)
- , m_ppu_gscroll(*this, "ppu_gscroll_regs")
- , m_tilemap_regs(*this, "ppu_tmap_regs")
- , m_ppu_crtc_zoom(*this, "ppu_crtc_zoom")
- , m_sh2cache_ram(*this, "sh2cache_ram")
- , m_decrypted_gamerom(*this, "decrypted_gamerom")
- , m_sh2cache_ram_decrypted(*this, "sh2cache_ram_decrypted")
- , m_user4_region(*this, "user4")
- , m_user5_region(*this, "user5")
- {
- }
-
- void init_sfiii3();
- void init_sfiii();
- void init_redearth();
- void init_jojo();
- void init_jojoba();
- void init_sfiii2();
- void init_cps3boot();
-
- void cps3(machine_config &config);
- void jojo(machine_config &config);
- void redearth(machine_config &config);
- void sfiii2(machine_config &config);
- void sfiii3(machine_config &config);
- void sfiii(machine_config &config);
- void jojoba(machine_config &config);
- void simm_config(machine_config &config, unsigned slot, unsigned count);
- void simm1_64mbit(machine_config &config);
- void simm2_64mbit(machine_config &config);
- void simm3_128mbit(machine_config &config);
- void simm4_128mbit(machine_config &config);
- void simm5_128mbit(machine_config &config);
- void simm5_32mbit(machine_config &config);
- void simm6_128mbit(machine_config &config);
-
-protected:
- virtual void device_post_load() override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void copy_from_nvram();
- u32 m_current_table_address;
- required_device<sh2_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<cps3_sound_device> m_cps3sound;
- required_device<timer_device> m_dma_timer;
- required_device<timer_device> m_spritelist_dma_timer;
- optional_device_array<fujitsu_29f016a_device, 8> m_simm[7];
-
- required_shared_ptr<u32> m_mainram;
- required_shared_ptr<u32> m_spriteram;
- memory_share_creator<u16> m_colourram;
- required_shared_ptr<u32> m_ppu_gscroll;
- required_shared_ptr<u32> m_tilemap_regs;
- required_shared_ptr<u32> m_ppu_crtc_zoom;
- required_shared_ptr<u32> m_sh2cache_ram;
- required_shared_ptr<u32> m_decrypted_gamerom;
- required_shared_ptr<u32> m_sh2cache_ram_decrypted;
-
- optional_memory_region m_user4_region;
- optional_memory_region m_user5_region;
-
-private:
- u32 m_cram_gfxflash_bank;
- std::unique_ptr<u32[]> m_char_ram;
- std::unique_ptr<u32[]> m_eeprom;
- std::unique_ptr<u8[]> m_ss_ram;
- std::unique_ptr<u32[]> m_spritelist;
- u32 m_ppu_gscroll_buff[0x20/4];
- s16 m_ss_hscroll;
- s16 m_ss_vscroll;
- u8 m_ss_pal_base;
- u32 m_screenwidth;
- std::unique_ptr<u32[]> m_mame_colours;
- bitmap_rgb32 m_renderbuffer_bitmap;
- rectangle m_renderbuffer_clip;
- u8* m_user4;
- u32 m_key1;
- u32 m_key2;
- int m_altEncryption;
- u16 m_dma_status;
- u16 m_spritelist_dma;
- u32 m_cram_bank;
- u16 m_current_eeprom_read;
- u32 m_paldma_source;
- u32 m_paldma_realsource;
- u32 m_paldma_dest;
- u32 m_paldma_fade;
- u32 m_paldma_other2;
- u32 m_paldma_length;
- u32 m_chardma_source;
- u32 m_chardma_other;
- int m_rle_length;
- int m_last_normal_byte;
- u16 m_lastb;
- u16 m_lastb2;
- u8* m_user5;
-
- u8 ssram_r(offs_t offset);
- void ssram_w(offs_t offset, u8 data);
- void ssregs_w(offs_t offset, u8 data);
- void sh2cache_ram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void cram_bank_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 cram_data_r(offs_t offset);
- void cram_data_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 gfxflash_r(offs_t offset, u32 mem_mask = ~0);
- void gfxflash_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 flash1_r(offs_t offset, u32 mem_mask = ~0);
- u32 flash2_r(offs_t offset, u32 mem_mask = ~0);
- void flash1_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void flash2_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void cram_gfxflash_bank_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u16 dma_status_r();
- u16 dev_dipsw_r();
- u32 eeprom_r(offs_t offset, u32 mem_mask = ~0);
- void eeprom_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void palettedma_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void characterdma_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u16 colourram_r(offs_t offset);
- void colourram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void outport_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void spritedma_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- SH2_DMA_KLUDGE_CB(dma_callback);
- void draw_fg_layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- WRITE_LINE_MEMBER(vbl_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(dma_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(sprite_dma_cb);
- u16 rotate_left(u16 value, int n);
- u16 rotxor(u16 val, u16 xorval);
- u32 cps3_mask(u32 address, u32 key1, u32 key2);
- void decrypt_bios();
- void init_crypt(u32 key1, u32 key2, int altEncryption);
- void set_mame_colours(int colournum, u16 data, u32 fadeval);
- void draw_tilemapsprite_line(u32* regs, int drawline, bitmap_rgb32 &bitmap, const rectangle &cliprect );
- u32 flashmain_r(int which, u32 offset, u32 mem_mask);
- void flashmain_w(int which, u32 offset, u32 data, u32 mem_mask);
- u32 process_byte( u8 real_byte, u32 destination, int max_length );
- void do_char_dma( u32 real_source, u32 real_destination, u32 real_length );
- u32 ProcessByte8(u8 b,u32 dst_offset);
- void do_alt_char_dma( u32 src, u32 real_dest, u32 real_length );
- void process_character_dma(u32 address);
- inline void cps3_drawgfxzoom(bitmap_rgb32 &dest_bmp, const rectangle &clip, gfx_element *gfx,
- u32 code, u32 color, int flipx, int flipy, int sx, int sy,
- int transparency, int transparent_color,
- int scalex, int scaley);
- void cps3_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CPS3_H
diff --git a/src/mame/includes/crbaloon.h b/src/mame/includes/crbaloon.h
deleted file mode 100644
index a3044c8fe5c..00000000000
--- a/src/mame/includes/crbaloon.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
-Crazy Ballooon
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CRBALOON_H
-#define MAME_INCLUDES_CRBALOON_H
-
-#pragma once
-
-#include "sound/discrete.h"
-#include "sound/sn76477.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-constexpr XTAL CRBALOON_MASTER_XTAL = 9.987_MHz_XTAL;
-
-
-class crbaloon_state : public driver_device
-{
-public:
- crbaloon_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram"),
- m_pc3092_data(*this, "pc3092_data"),
- m_maincpu(*this, "maincpu"),
- m_sn(*this, "snsnd"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode")
- { }
-
- void crbaloon(machine_config &config);
- DECLARE_CUSTOM_INPUT_MEMBER(pc3092_r);
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_pc3092_data;
- required_device<cpu_device> m_maincpu;
- required_device<sn76477_device> m_sn;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
-
- uint16_t m_collision_address;
- uint8_t m_collision_address_clear;
- tilemap_t *m_bg_tilemap;
- uint8_t m_irq_mask;
- void pc3092_w(offs_t offset, uint8_t data);
- uint8_t pc3259_r(offs_t offset);
- void port_sound_w(uint8_t data);
- void crbaloon_videoram_w(offs_t offset, uint8_t data);
- void crbaloon_colorram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void crbaloon_palette(palette_device &palette) const;
- uint32_t screen_update_crbaloon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vbl_int_w);
- void crbaloon_audio_set_music_freq(uint8_t data);
- void crbaloon_audio_set_music_enable(uint8_t data);
- void crbaloon_audio_set_laugh_enable(uint8_t data);
- uint16_t crbaloon_get_collision_address();
- void crbaloon_set_clear_collision_address(int _crbaloon_collision_address_clear);
- void draw_sprite_and_check_collision(bitmap_ind16 &bitmap);
- void pc3092_reset(void);
- void pc3092_update();
- void pc3259_update(void);
- void crbaloon_audio_set_explosion_enable(int enabled);
- void crbaloon_audio_set_breath_enable(int enabled);
- void crbaloon_audio_set_appear_enable(int enabled);
- void crbaloon_audio(machine_config &config);
- void main_io_map(address_map &map);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CRBALOON_H
diff --git a/src/mame/includes/crgolf.h b/src/mame/includes/crgolf.h
deleted file mode 100644
index 4b95ca4ea8f..00000000000
--- a/src/mame/includes/crgolf.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Kitco Crowns Golf hardware
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_CRGOLF_H
-#define MAME_INCLUDES_CRGOLF_H
-
-#pragma once
-
-#include "sound/msm5205.h"
-#include "machine/bankdev.h"
-#include "emupal.h"
-
-#define MASTER_CLOCK XTAL(18'432'000)
-
-
-class crgolf_state : public driver_device
-{
-public:
- crgolf_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
-
- m_videoram_a(*this, "vrama"),
- m_videoram_b(*this, "vramb"),
-
- m_vrambank(*this, "vrambank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_palette(*this, "palette")
- { }
-
-
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram_a;
- required_shared_ptr<uint8_t> m_videoram_b;
-
- bool m_color_select;
- bool m_screen_flip;
- bool m_screena_enable;
- bool m_screenb_enable;
-
- /* misc */
- uint8_t m_port_select;
- uint16_t m_sample_offset;
- uint8_t m_sample_count;
-
- /* devices */
- required_device<address_map_bank_device> m_vrambank;
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<msm5205_device> m_msm;
- required_device<palette_device> m_palette;
- void rom_bank_select_w(uint8_t data);
- uint8_t switch_input_r();
- uint8_t analog_input_r();
- void switch_input_select_w(uint8_t data);
- void unknown_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(color_select_w);
- DECLARE_WRITE_LINE_MEMBER(screen_flip_w);
- DECLARE_WRITE_LINE_MEMBER(screen_select_w);
- DECLARE_WRITE_LINE_MEMBER(screena_enable_w);
- DECLARE_WRITE_LINE_MEMBER(screenb_enable_w);
- void crgolfhi_sample_w(offs_t offset, uint8_t data);
- uint8_t unk_sub_02_r();
- uint8_t unk_sub_05_r();
- uint8_t unk_sub_07_r();
- void unk_sub_0c_w(uint8_t data);
- void init_crgolfhi();
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void crgolf_palette(palette_device &palette) const;
- void mastrglf_palette(palette_device &palette) const;
- uint32_t screen_update_crgolf(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void get_pens( pen_t *pens );
- DECLARE_WRITE_LINE_MEMBER(vck_callback);
- void crgolfhi(machine_config &config);
- void crgolf(machine_config &config);
- void crgolf_video(machine_config &config);
- void mastrglf(machine_config &config);
- void main_map(address_map &map);
- void mastrglf_io(address_map &map);
- void mastrglf_map(address_map &map);
- void mastrglf_subio(address_map &map);
- void mastrglf_submap(address_map &map);
- void sound_map(address_map &map);
- void vrambank_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CRGOLF_H
diff --git a/src/mame/includes/crimfght.h b/src/mame/includes/crimfght.h
deleted file mode 100644
index 6c32182f3e2..00000000000
--- a/src/mame/includes/crimfght.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Crime Fighters
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CRIMFGHT_H
-#define MAME_INCLUDES_CRIMFGHT_H
-
-#pragma once
-
-#include "cpu/m6809/konami.h" /* for the callback and the firq irq definition */
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "sound/k007232.h"
-#include "video/k052109.h"
-#include "video/k051960.h"
-#include "emupal.h"
-
-class crimfght_state : public driver_device
-{
-public:
- crimfght_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_bank0000(*this, "bank0000"),
- m_k007232(*this, "k007232"),
- m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_rombank(*this, "rombank")
- { }
-
- /* devices */
- required_device<konami_cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<address_map_bank_device> m_bank0000;
- required_device<k007232_device> m_k007232;
- required_device<k052109_device> m_k052109;
- required_device<k051960_device> m_k051960;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_memory_bank m_rombank;
-
- void crimfght_coin_w(uint8_t data);
- void sound_w(uint8_t data);
- uint8_t k052109_051960_r(offs_t offset);
- void k052109_051960_w(offs_t offset, uint8_t data);
- IRQ_CALLBACK_MEMBER(audiocpu_irq_ack);
- void ym2151_ct_w(uint8_t data);
- virtual void machine_start() override;
- uint32_t screen_update_crimfght(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void volume_callback(uint8_t data);
- K052109_CB_MEMBER(tile_callback);
- K051960_CB_MEMBER(sprite_callback);
- void banking_callback(uint8_t data);
- DECLARE_CUSTOM_INPUT_MEMBER(system_r);
-
- void crimfght(machine_config &config);
- void bank0000_map(address_map &map);
- void crimfght_map(address_map &map);
- void crimfght_sound_map(address_map &map);
-private:
- int m_woco;
- int m_rmrd;
- int m_init;
-};
-
-#endif // MAME_INCLUDES_CRIMFGHT_H
diff --git a/src/mame/includes/crospang.h b/src/mame/includes/crospang.h
deleted file mode 100644
index e350ebf037d..00000000000
--- a/src/mame/includes/crospang.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli, David Haywood
-/*************************************************************************
-
- Cross Pang
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CROSPANG_H
-#define MAME_INCLUDES_CROSPANG_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "video/decospr.h"
-#include "tilemap.h"
-
-class crospang_state : public driver_device
-{
-public:
- crospang_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_fg_videoram(*this, "fg_videoram")
- , m_bg_videoram(*this, "bg_videoram")
- , m_spriteram(*this, "spriteram")
- , m_maincpu(*this, "maincpu")
- , m_sprgen(*this, "spritegen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_soundlatch(*this, "soundlatch")
- { }
-
- void crospang(machine_config &config);
- void bestri(machine_config &config);
- void bestria(machine_config &config);
- void pitapat(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_fg_videoram;
- required_shared_ptr<u16> m_bg_videoram;
- required_shared_ptr<u16> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_layer;
- tilemap_t *m_fg_layer;
- u8 m_tilebank[4];
- u8 m_tilebankselect;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<decospr_device> m_sprgen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void tilebank_data_w(u16 data);
- void tilebank_select_w(u16 data);
- void bestri_bg_scrolly_w(u16 data);
- void bestri_fg_scrolly_w(u16 data);
- void bestri_fg_scrollx_w(u16 data);
- void bestri_bg_scrollx_w(u16 data);
- void fg_scrolly_w(u16 data);
- void bg_scrolly_w(u16 data);
- void fg_scrollx_w(u16 data);
- void bg_scrollx_w(u16 data);
- void fg_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bg_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void base_map(address_map &map);
- void bestri_map(address_map &map);
- void bestria_map(address_map &map);
- void crospang_map(address_map &map);
- void pitapat_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CROSPANG_H
diff --git a/src/mame/includes/crshrace.h b/src/mame/includes/crshrace.h
deleted file mode 100644
index 4f5f1a880de..00000000000
--- a/src/mame/includes/crshrace.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_CRSHRACE_H
-#define MAME_INCLUDES_CRSHRACE_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/gen_latch.h"
-#include "video/bufsprite.h"
-#include "video/vsystem_spr.h"
-#include "video/k053936.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class crshrace_state : public driver_device
-{
-public:
- crshrace_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram.%u", 0U),
- m_z80bank(*this, "bank1"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_spr(*this, "vsystem_spr"),
- m_k053936(*this, "k053936"),
- m_spriteram(*this, "spriteram.%u", 0U),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void crshrace(machine_config &config);
-
- void init_crshrace2();
- void init_crshrace();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- // memory pointers
- required_shared_ptr_array<uint16_t, 2> m_videoram;
-
- required_memory_bank m_z80bank;
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<z80_device> m_audiocpu;
- required_device<vsystem_spr_device> m_spr;
- required_device<k053936_device> m_k053936;
- required_device_array<buffered_spriteram16_device, 2> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- // video-related
- tilemap_t *m_tilemap[2];
- uint8_t m_roz_bank;
- uint8_t m_gfxctrl;
- uint8_t m_flipscreen;
-
- uint32_t tile_callback(uint32_t code);
- void sh_bankswitch_w(uint8_t data);
- template<uint8_t Which> void videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) { COMBINE_DATA(&m_videoram[Which][offset]); m_tilemap[Which]->mark_tile_dirty(offset); }
- void roz_bank_w(offs_t offset, uint8_t data);
- void gfxctrl_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info1);
- TILE_GET_INFO_MEMBER(get_tile_info2);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_bg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_fg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CRSHRACE_H
diff --git a/src/mame/includes/crvision.h b/src/mame/includes/crvision.h
deleted file mode 100644
index 79d35beb558..00000000000
--- a/src/mame/includes/crvision.h
+++ /dev/null
@@ -1,116 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol, Curt Coder
-
-#ifndef MAME_INCLUDES_CRVISION_H
-#define MAME_INCLUDES_CRVISION_H
-
-#include "cpu/m6502/m6502.h"
-#include "imagedev/cassette.h"
-#include "machine/6821pia.h"
-#include "machine/buffer.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/crvision/slot.h"
-#include "bus/crvision/rom.h"
-#include "machine/ram.h"
-#include "sound/sn76496.h"
-#include "video/tms9928a.h"
-
-#define SCREEN_TAG "screen"
-#define M6502_TAG "u2"
-#define TMS9929_TAG "u3"
-#define PIA6821_TAG "u21"
-#define SN76489_TAG "u22"
-#define CENTRONICS_TAG "centronics"
-
-#define BANK_ROM1 "bank1"
-#define BANK_ROM2 "bank2"
-
-class crvision_state : public driver_device
-{
-public:
- crvision_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, M6502_TAG)
- , m_pia(*this, PIA6821_TAG)
- , m_psg(*this, SN76489_TAG)
- , m_cassette(*this, "cassette")
- , m_cart(*this, "cartslot")
- , m_centronics(*this, CENTRONICS_TAG)
- , m_cent_data_out(*this, "cent_data_out")
- , m_ram(*this, RAM_TAG)
- , m_io_keypad{{*this, "PA0.%u", 0U},{*this, "PA1.%u", 0U},{*this, "PA2.%u", 0U},{*this, "PA3.%u", 0U}}
- { }
-
- void creativision(machine_config &config);
- void ntsc(machine_config &config);
- DECLARE_INPUT_CHANGED_MEMBER( trigger_nmi );
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<pia6821_device> m_pia;
- required_device<sn76496_base_device> m_psg;
- required_device<cassette_image_device> m_cassette;
- required_device<crvision_cart_slot_device> m_cart;
- required_device<centronics_device> m_centronics;
- required_device<output_latch_device> m_cent_data_out;
- required_device<ram_device> m_ram;
- optional_ioport_array<8> m_io_keypad[4];
-
- virtual void machine_start() override;
- uint8_t m_keylatch;
-
-private:
- void crvision_map(address_map &map);
- uint8_t read_keyboard(u8 pa);
-
- void pia_pa_w(uint8_t data);
- uint8_t pia_pa_r();
- uint8_t pia_pb_r();
-};
-
-class crvision_pal_state : public crvision_state
-{
-public:
- crvision_pal_state(const machine_config &mconfig, device_type type, const char *tag)
- : crvision_state(mconfig, type, tag)
- { }
- void pal(machine_config &config);
-};
-
-class laser2001_state : public crvision_state
-{
-public:
- laser2001_state(const machine_config &mconfig, device_type type, const char *tag)
- : crvision_state(mconfig, type, tag)
- , m_centronics(*this, CENTRONICS_TAG)
- , m_inp_y(*this, "Y.%u", 0U)
- , m_inp_joy(*this, "JOY.%u", 0U)
- { }
-
- void lasr2001(machine_config &config);
-
-private:
- required_device<centronics_device> m_centronics;
- required_ioport_array<8> m_inp_y;
- required_ioport_array<4> m_inp_joy;
-
- uint8_t m_joylatch;
- int m_centronics_busy;
- int m_psg_ready;
-
- DECLARE_WRITE_LINE_MEMBER( write_centronics_busy );
- DECLARE_WRITE_LINE_MEMBER( write_psg_ready );
- uint8_t pia_pa_r();
- void pia_pa_w(uint8_t data);
- uint8_t pia_pb_r();
- void pia_pb_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( pia_ca1_r );
- DECLARE_WRITE_LINE_MEMBER( pia_ca2_w );
- DECLARE_READ_LINE_MEMBER( pia_cb1_r );
- DECLARE_WRITE_LINE_MEMBER( pia_cb2_w );
-
- void lasr2001_map(address_map &map);
- virtual void machine_start() override;
-};
-
-#endif // MAME_INCLUDES_CRVISION_H
diff --git a/src/mame/includes/cvs.h b/src/mame/includes/cvs.h
deleted file mode 100644
index 2eaec5b9965..00000000000
--- a/src/mame/includes/cvs.h
+++ /dev/null
@@ -1,164 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Coates, Couriersud
-/***************************************************************************
-
- Century CVS System
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_CVS_H
-#define MAME_INCLUDES_CVS_H
-
-#pragma once
-
-#include "cpu/s2650/s2650.h"
-#include "machine/gen_latch.h"
-#include "machine/s2636.h"
-#include "sound/dac.h"
-#include "sound/tms5110.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define CVS_S2636_Y_OFFSET (-5)
-#define CVS_S2636_X_OFFSET (-26)
-#define CVS_MAX_STARS 250
-
-class cvs_state : public driver_device
-{
-public:
- cvs_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_video_ram(*this, "video_ram")
- , m_bullet_ram(*this, "bullet_ram")
- , m_cvs_4_bit_dac_data(*this, "4bit_dac")
- , m_tms5110_ctl_data(*this, "tms5110_ctl")
- , m_dac3_state(*this, "dac3_state")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_speechcpu(*this, "speechcpu")
- , m_dac2(*this, "dac2")
- , m_dac3(*this, "dac3")
- , m_tms5110(*this, "tms")
- , m_s2636(*this, "s2636%u", 0U)
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_lamps(*this, "lamp%u", 1U)
- , m_color_ram(*this, "color_ram", 0x400, ENDIANNESS_BIG)
- , m_palette_ram(*this, "palette_ram", 0x10, ENDIANNESS_BIG)
- , m_character_ram(*this, "character_ram", 3 * 0x800, ENDIANNESS_BIG)
- { }
-
- void init_raiders();
- void init_huncholy();
- void init_hero();
- void init_superbik();
- void init_hunchbaka();
- void cvs(machine_config &config);
-
-protected:
- DECLARE_WRITE_LINE_MEMBER(write_s2650_flag); // used by galaxia_state
- uint8_t huncholy_prot_r(offs_t offset);
- uint8_t superbik_prot_r();
- uint8_t hero_prot_r(offs_t offset);
- DECLARE_READ_LINE_MEMBER(speech_rom_read_bit);
- DECLARE_WRITE_LINE_MEMBER(cvs_slave_cpu_interrupt);
- uint8_t cvs_input_r(offs_t offset);
- void cvs_speech_rom_address_lo_w(uint8_t data);
- void cvs_speech_rom_address_hi_w(uint8_t data);
- uint8_t cvs_speech_command_r();
- void audio_command_w(uint8_t data);
- uint8_t cvs_video_or_color_ram_r(offs_t offset);
- void cvs_video_or_color_ram_w(offs_t offset, uint8_t data);
- uint8_t cvs_bullet_ram_or_palette_r(offs_t offset);
- void cvs_bullet_ram_or_palette_w(offs_t offset, uint8_t data);
- uint8_t cvs_s2636_0_or_character_ram_r(offs_t offset);
- void cvs_s2636_0_or_character_ram_w(offs_t offset, uint8_t data);
- uint8_t cvs_s2636_1_or_character_ram_r(offs_t offset);
- void cvs_s2636_1_or_character_ram_w(offs_t offset, uint8_t data);
- uint8_t cvs_s2636_2_or_character_ram_r(offs_t offset);
- void cvs_s2636_2_or_character_ram_w(offs_t offset, uint8_t data);
- void cvs_video_fx_w(uint8_t data);
- uint8_t cvs_collision_r();
- uint8_t cvs_collision_clear();
- void cvs_scroll_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER(tms_clock_r);
- void cvs_4_bit_dac_data_w(offs_t offset, uint8_t data);
- void cvs_unknown_w(offs_t offset, uint8_t data);
- void cvs_tms5110_ctl_w(offs_t offset, uint8_t data);
- void cvs_tms5110_pdc_w(offs_t offset, uint8_t data);
- void cvs_palette(palette_device &palette) const;
- uint32_t screen_update_cvs(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(cvs_main_cpu_interrupt);
- TIMER_CALLBACK_MEMBER(cvs_393hz_timer_cb);
- void set_pens();
- void cvs_scroll_stars();
- void cvs_init_stars();
- void cvs_update_stars(bitmap_ind16 &bitmap, const rectangle &cliprect, const pen_t star_pen, bool update_always);
- void start_393hz_timer();
- void cvs_dac_cpu_map(address_map &map);
- void cvs_main_cpu_data_map(address_map &map);
- void cvs_main_cpu_io_map(address_map &map);
- void cvs_main_cpu_map(address_map &map);
- void cvs_speech_cpu_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_video_ram;
- required_shared_ptr<uint8_t> m_bullet_ram;
- optional_shared_ptr<uint8_t> m_cvs_4_bit_dac_data;
- optional_shared_ptr<uint8_t> m_tms5110_ctl_data;
- optional_shared_ptr<uint8_t> m_dac3_state;
-
- /* video-related */
- struct cvs_star
- {
- int x, y, code;
- };
-
- cvs_star m_stars[CVS_MAX_STARS];
- bitmap_ind16 m_collision_background;
- bitmap_ind16 m_background_bitmap;
- bitmap_ind16 m_scrolled_collision_background;
- int m_collision_register;
- int m_total_stars;
- int m_stars_on;
- uint8_t m_scroll_reg;
- int m_stars_scroll;
-
- /* misc */
- int m_s2650_flag;
- emu_timer *m_cvs_393hz_timer;
- uint8_t m_cvs_393hz_clock;
- uint8_t m_protection_counter;
-
- uint8_t m_character_banking_mode;
- uint16_t m_character_ram_page_start;
- uint16_t m_speech_rom_bit_address;
-
- /* devices */
- required_device<s2650_device> m_maincpu;
- optional_device<s2650_device> m_audiocpu;
- optional_device<s2650_device> m_speechcpu;
- optional_device<dac_byte_interface> m_dac2;
- optional_device<dac_bit_interface> m_dac3;
- optional_device<tms5110_device> m_tms5110;
- optional_device_array<s2636_device, 3> m_s2636;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
- output_finder<2> m_lamps;
-
- /* memory */
- memory_share_creator<uint8_t> m_color_ram;
- memory_share_creator<uint8_t> m_palette_ram;
- memory_share_creator<uint8_t> m_character_ram; /* only half is used, but
- by allocating twice the amount,
- we can use the same gfx_layout */
-};
-
-#endif // MAME_INCLUDES_CVS_H
diff --git a/src/mame/includes/cxgbase.h b/src/mame/includes/cxgbase.h
deleted file mode 100644
index d543d1b7d28..00000000000
--- a/src/mame/includes/cxgbase.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:hap
-/******************************************************************************
-*
-* CXG chess computer driver base class
-*
-******************************************************************************/
-
-#pragma once
-
-#ifndef MAME_INCLUDES_CXGBASE_H
-#define MAME_INCLUDES_CXGBASE_H
-
-#include "machine/timer.h"
-#include "sound/dac.h"
-
-class cxgbase_state : public driver_device
-{
-public:
- cxgbase_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_irq_on(*this, "irq_on"),
- m_dac(*this, "dac"),
- m_inp_matrix(*this, "IN.%u", 0),
- m_out_x(*this, "%u.%u", 0U, 0U),
- m_out_a(*this, "%u.a", 0U),
- m_out_digit(*this, "digit%u", 0U),
- m_display_wait(33),
- m_display_maxy(1),
- m_display_maxx(0)
- { }
-
- // devices/pointers
- required_device<cpu_device> m_maincpu;
- optional_device<timer_device> m_irq_on;
- optional_device<dac_bit_interface> m_dac;
- optional_ioport_array<10> m_inp_matrix; // max 10
- output_finder<0x20, 0x20> m_out_x;
- output_finder<0x20> m_out_a;
- output_finder<0x20> m_out_digit;
-
- // misc common
- u16 m_inp_mux; // multiplexed keypad mask
- u16 m_led_select;
- u16 m_led_data;
-
- u16 read_inputs(int columns);
-
- // periodic interrupts
- template<int Line> TIMER_DEVICE_CALLBACK_MEMBER(irq_on) { m_maincpu->set_input_line(Line, ASSERT_LINE); }
- template<int Line> TIMER_DEVICE_CALLBACK_MEMBER(irq_off) { m_maincpu->set_input_line(Line, CLEAR_LINE); }
-
- // display common
- int m_display_wait; // led/lamp off-delay in milliseconds (default 33ms)
- int m_display_maxy; // display matrix number of rows
- int m_display_maxx; // display matrix number of columns (max 31 for now)
-
- u32 m_display_state[0x20]; // display matrix rows data (last bit is used for always-on)
- u16 m_display_segmask[0x20]; // if not 0, display matrix row is a digit, mask indicates connected segments
- u8 m_display_decay[0x20][0x20]; // (internal use)
-
- TIMER_DEVICE_CALLBACK_MEMBER(display_decay_tick);
- void display_update();
- void set_display_size(int maxx, int maxy);
- void display_matrix(int maxx, int maxy, u32 setx, u32 sety, bool update = true);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-};
-
-
-INPUT_PORTS_EXTERN( cxg_cb_magnets );
-
-#endif // MAME_INCLUDES_CXGBASE_H
diff --git a/src/mame/includes/cxhumax.h b/src/mame/includes/cxhumax.h
deleted file mode 100644
index 627d5107814..00000000000
--- a/src/mame/includes/cxhumax.h
+++ /dev/null
@@ -1,284 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Lukasz Markowski
-#ifndef MAME_INCLUDES_CXHUMAX_H
-#define MAME_INCLUDES_CXHUMAX_H
-
-#pragma once
-
-#include "cpu/arm7/arm7.h"
-#include "cpu/arm7/arm7core.h"
-#include "machine/intelfsh.h"
-#include "machine/i2cmem.h"
-#include "machine/terminal.h"
-
-
-class cxhumax_state : public driver_device
-{
-public:
- static constexpr unsigned MAX_CX_TIMERS = 16;
-
- struct cx_timer_t
- {
- uint32_t value;
- uint32_t limit;
- uint32_t mode;
- uint32_t timebase;
- emu_timer *timer;
- };
-
- struct cx_timer_regs_t
- {
- cx_timer_t timer[MAX_CX_TIMERS];
- uint32_t timer_irq;
- };
-
- cxhumax_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_flash(*this, "flash"),
- m_ram(*this, "ram"),
- m_terminal(*this, "terminal"),
- m_i2cmem(*this, "eeprom")
- {
- }
-
- required_device<cpu_device> m_maincpu;
- required_device<intel_28f320j3d_device> m_flash;
- required_shared_ptr<uint32_t> m_ram;
- required_device<generic_terminal_device> m_terminal;
-
- void flash_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t flash_r(offs_t offset, uint32_t mem_mask = ~0);
-
- void cx_hsx_w(offs_t offset, uint32_t data);
- uint32_t cx_hsx_r(offs_t offset);
-
- void cx_romdescr_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_romdescr_r(offs_t offset);
- void cx_isaromdescr_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_isaromdescr_r(offs_t offset);
- void cx_isadescr_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_isadescr_r(offs_t offset);
- void cx_rommap_w(offs_t offset, uint32_t data);
- uint32_t cx_rommap_r(offs_t offset);
- void cx_rommode_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_rommode_r(offs_t offset);
- void cx_xoemask_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_xoemask_r(offs_t offset);
- void cx_pci_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_pci_r(offs_t offset);
- void cx_extdesc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_extdesc_r(offs_t offset);
-
- void cx_remap_w(offs_t offset, uint32_t data);
- void cx_scratch_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_scratch_r(offs_t offset);
-
- void cx_timers_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_timers_r(offs_t offset);
-
- void cx_uart2_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_uart2_r(offs_t offset);
-
- void cx_pll_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_pll_r(offs_t offset);
- void cx_clkdiv_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_clkdiv_r(offs_t offset);
- void cx_pllprescale_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_pllprescale_r(offs_t offset);
-
- void cx_chipcontrol_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_chipcontrol_r(offs_t offset);
-
- void cx_intctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_intctrl_r(offs_t offset);
-
- void cx_ss_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_ss_r(offs_t offset);
-
- void cx_i2c0_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_i2c0_r(offs_t offset);
- void cx_i2c1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_i2c1_r(offs_t offset);
- void cx_i2c2_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_i2c2_r(offs_t offset);
-
- void cx_mc_cfg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_mc_cfg_r(offs_t offset);
-
- void cx_drm0_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_drm0_r(offs_t offset);
- void cx_drm1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_drm1_r(offs_t offset);
-
- void cx_hdmi_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_hdmi_r(offs_t offset);
-
- void cx_gxa_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cx_gxa_r(offs_t offset);
-
- uint32_t dummy_flash_r();
-
- uint32_t m_romdescr_reg;
- uint32_t m_isaromdescr_regs[0x0C/4];
- uint32_t m_isadescr_regs[0x10/4];
- uint32_t m_rommode_reg;
- uint32_t m_xoemask_reg;
- uint32_t m_pci_regs[0x08/4];
- uint32_t m_extdesc_regs[0x80/4];
-
- uint32_t m_scratch_reg;
- cx_timer_regs_t m_timer_regs;
-
- uint32_t m_uart2_regs[0x30/4];
-
- uint32_t m_pll_regs[0x14/4];
- uint32_t m_clkdiv_regs[0x18/4];
- uint32_t m_pllprescale_reg;
-
- uint32_t m_intctrl_regs[0x38/4];
-
- uint32_t m_ss_regs[0x18/4];
- uint8_t m_ss_tx_fifo[8]; // 8 entries (size hardcoded to 8 bits per entry - TODO)
-
- uint32_t m_i2c0_regs[0x20/4];
- uint32_t m_i2c1_regs[0x20/4];
- required_device<i2cmem_device> m_i2cmem;
- uint32_t m_i2c2_regs[0x20/4];
-
- void i2cmem_start();
- void i2cmem_stop();
- uint8_t i2cmem_read_byte(int last);
- void i2cmem_write_byte(uint8_t data);
-
- uint32_t m_mccfg_regs[0x0C/4];
-
- uint32_t m_chipcontrol_regs[0x74/4];
-
- uint32_t m_drm0_regs[0xfc/4];
- uint32_t m_drm1_regs[0xfc/4];
-
- uint32_t m_hdmi_regs[0x400/4];
-
- uint32_t m_gxa_cmd_regs[0x130/4];
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_cxhumax(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(timer_tick);
- void cxhumax(machine_config &config);
- void cxhumax_map(address_map &map);
-};
-
-#define INTDEST 0 // Interrupt destination (1=IRQ, 0=FIQ)
-#define INTENABLE 1 // Enables the interrupt generation
-#define INTIRQ 2 // Normal interrupt
-#define INTFIQ 3 // Fast interrupt
-#define INTSTATCLR 4 // Read: interrupt status, Write: clear pending interrupt
-#define INTSTATSET 5 // Read: interrupt status, Write: sets a pending interrupt
-#define INTGROUP1 0
-#define INTGROUP2 1
-
-#define INTREG(group, index) (((group) << 3) | (index))
-
-#define GXA_CMD_RW_REGISTER 0x00
-#define GXA_CMD_QMARK 0x02
-#define GXA_CMD_PALETTE_FETCH 0x03
-#define GXA_CMD_VFILTER_COEFF_FETCH 0x04
-#define GXA_CMD_HFILTER_COEFF_FETCH 0x05
-#define GXA_CMD_BLT_21 0x21
-#define GXA_CMD_BLT_23 0x23
-#define GXA_CMD_BLT_25 0x25
-#define GXA_CMD_BLT_27 0x27
-#define GXA_CMD_BLT_2B 0x2b
-#define GXA_CMD_BLT_2F 0x2f
-#define GXA_CMD_LINE_30 0x30
-#define GXA_CMD_LINE_32 0x32
-#define GXA_CMD_BLT_31 0x31
-#define GXA_CMD_BLT 0x33
-#define GXA_CMD_LINE_34 0x34
-#define GXA_CMD_LINE_36 0x36
-#define GXA_CMD_BLT_35 0x35
-#define GXA_CMD_BLT_37 0x37
-#define GXA_CMD_LINE_3A 0x3a
-#define GXA_CMD_BLT_3B 0x3b
-#define GXA_CMD_LINE_3E 0x3e
-#define GXA_CMD_BLT_3F 0x3f
-#define GXA_CMD_SBLT_ABLEND 0x71
-#define GXA_CMD_SBLT_ROP 0x7b
-
-#define GXA_CMD_REG 0x07
-
-#define GXA_CFG2_REG 0x3f
-#define IRQ_STAT_QMARK 21
-#define IRQ_EN_QMARK 17
-
-#define INT_UART2_BIT (1<<1)
-#define INT_TIMER_BIT (1<<7)
-#define INT_PWM_BIT (1 << 14)
-#define INT_PIO103_BIT (1 << 15)
-
-#define PCI_CFG_ADDR_REG 0
-#define PCI_CFG_DATA_REG 1
-
-#define TIMER_VALUE 0
-#define TIMER_LIMIT 1
-#define TIMER_MODE 2
-#define TIMER_TIMEBASE 3
-
-#define UART_FIFO_REG 0
-#define UART_IRQE_REG 1
-#define UART_IRQE_TIDE_BIT (1<<6)
-#define UART_BRDL_REG 0
-#define UART_BRDU_REG 1
-#define UART_FIFC_REG 2
-#define UART_FRMC_REG 3
-#define UART_FRMC_BDS_BIT (1<<7)
-#define UART_STAT_REG 5
-#define UART_STAT_TSR_BIT (1<<5)
-#define UART_STAT_TID_BIT (1<<6)
-
-#define SREG_MPG_0_INTFRAC_REG 0
-#define SREG_MPG_1_INTFRAC_REG 1
-#define SREG_ARM_INTFRAC_REG 2
-#define SREG_MEM_INTFRAC_REG 3
-#define SREG_USB_INTFRAC_REG 4
-
-#define SREG_DIV_0_REG 0
-#define SREG_DIV_1_REG 1
-#define SREG_DIV_2_REG 2
-#define SREG_DIV_3_REG 3
-#define SREG_DIV_4_REG 4
-#define SREG_DIV_5_REG 5
-
-#define PIN_CONFIG_0_REG 0 // Pin Configuration 0 Register
-#define SREG_MODE_REG 3 // SREG Mode Register
-#define PIN_ALT_FUNC_REG 4 // Alternate Pin Function Select Register
-#define PLL_LOCK_STAT_0_REG 9 // Resource Lock Register
-#define PLL_IO_CTL_REG 20 // IO Control Register
-#define SREG_TEST_REG 28 // Test Register
-
-#define I2C_MODE_REG 0
-#define I2C_CTRL_REG 1
-#define I2C_STAT_REG 2
-#define I2C_RDATA_REG 3
-
-#define I2C_WACK_BIT (1<<1)
-#define I2C_INT_BIT (1<<0)
-
-#define SS_CNTL_REG 0
-#define SS_FIFC_REG 1
-#define SS_BAUD_REG 2
-#define SS_FIFO_REG 4
-#define SS_STAT_REG 5
-
-#define MC_CFG0 0
-#define MC_CFG1 1
-#define MC_CFG2 2
-
-#define DRM_ACTIVE_X_REG 1
-#define DRM_ACTIVE_Y_REG 2
-#define DRM_BCKGND_REG 3
-#define DRM_OSD_PTR_REG 32
-
-#endif // MAME_INCLUDES_CXHUMAX_H
diff --git a/src/mame/includes/cyberbal.h b/src/mame/includes/cyberbal.h
deleted file mode 100644
index b6de3991a9e..00000000000
--- a/src/mame/includes/cyberbal.h
+++ /dev/null
@@ -1,149 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Cyberball hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CYBERBAL_H
-#define MAME_INCLUDES_CYBERBAL_H
-
-#pragma once
-
-#include "machine/slapstic.h"
-#include "audio/atarijsa.h"
-#include "audio/atarisac.h"
-#include "video/atarimo.h"
-#include "cpu/m68000/m68000.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class cyberbal_base_state : public driver_device
-{
-protected:
- cyberbal_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_playfield(*this, "playfield"),
- m_alpha(*this, "alpha"),
- m_mob(*this, "mob")
- { }
-
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
-
- virtual void video_start() override;
-
- void scanline_update_one(screen_device &screen, int scanline, int i, tilemap_t &curplayfield, tilemap_device &curalpha);
- uint32_t update_one_screen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, atari_motion_objects_device &curmob, tilemap_t &curplayfield, tilemap_t &curalpha);
-
- static const atari_motion_objects_config s_mob_config;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<tilemap_device> m_playfield;
- required_device<tilemap_device> m_alpha;
- required_device<atari_motion_objects_device> m_mob;
-
- uint16_t m_current_slip[2];
-
-private:
- uint8_t m_playfield_palette_bank[2];
- uint16_t m_playfield_xscroll[2];
- uint16_t m_playfield_yscroll[2];
-};
-
-
-class cyberbal2p_state : public cyberbal_base_state
-{
-public:
- cyberbal2p_state(const machine_config &mconfig, device_type type, const char *tag) :
- cyberbal_base_state(mconfig, type, tag),
- m_screen(*this, "screen"),
- m_jsa(*this, "jsa")
- { }
-
- void cyberbal2p(machine_config &config);
-
-protected:
- uint16_t sound_state_r();
-
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_cyberbal2p(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- // memory maps
- void cyberbal2p_map(address_map &map);
-
-private:
- DECLARE_WRITE_LINE_MEMBER(video_int_write_line);
- void video_int_ack_w(uint16_t data = 0);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
-
- required_device<screen_device> m_screen;
- required_device<atari_jsa_ii_device> m_jsa;
-};
-
-
-class cyberbal_state : public cyberbal_base_state
-{
-public:
- cyberbal_state(const machine_config &mconfig, device_type type, const char *tag) :
- cyberbal_base_state(mconfig, type, tag),
- m_slapstic(*this, "slapstic"),
- m_slapstic_bank(*this, "slapstic_bank"),
- m_extracpu(*this, "extra"),
- m_sac(*this, "sac"),
- m_playfield2(*this, "playfield2"),
- m_alpha2(*this, "alpha2"),
- m_mob2(*this, "mob2"),
- m_rpalette(*this, "rpalette"),
- m_lscreen(*this, "lscreen"),
- m_rscreen(*this, "rscreen")
- { }
-
- void init_cyberbalt();
- void cyberbal(machine_config &config);
- void cyberbal_base(machine_config &config);
- void cyberbalt(machine_config &config);
-
-protected:
- void p2_reset_w(uint16_t data);
- TILE_GET_INFO_MEMBER(get_alpha2_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield2_tile_info);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_cyberbal_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cyberbal_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- // memory maps
- void main_map(address_map &map);
- void tournament_map(address_map &map);
- void extra_map(address_map &map);
-
-private:
- DECLARE_WRITE_LINE_MEMBER(video_int_write_line);
- void video_int_ack_w(uint16_t data = 0);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
-
- optional_device<atari_slapstic_device> m_slapstic;
- optional_memory_bank m_slapstic_bank;
- required_device<cpu_device> m_extracpu;
- required_device<atari_sac_device> m_sac;
- required_device<tilemap_device> m_playfield2;
- required_device<tilemap_device> m_alpha2;
- required_device<atari_motion_objects_device> m_mob2;
- required_device<palette_device> m_rpalette;
- required_device<screen_device> m_lscreen;
- required_device<screen_device> m_rscreen;
-
-};
-
-#endif // MAME_INCLUDES_CYBERBAL_H
diff --git a/src/mame/includes/cybiko.h b/src/mame/includes/cybiko.h
deleted file mode 100644
index e82bc7f27d6..00000000000
--- a/src/mame/includes/cybiko.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tim Schuerewegen
-/*****************************************************************************
- *
- * includes/cybiko.h
- *
- * Cybiko Wireless Inter-tainment System
- *
- * (c) 2001-2007 Tim Schuerewegen
- *
- * Cybiko Classic (V1)
- * Cybiko Classic (V2)
- * Cybiko Xtreme
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_CYBIKO_H
-#define MAME_INCLUDES_CYBIKO_H
-
-#include "bus/rs232/rs232.h"
-
-#include "cpu/h8/h8s2245.h"
-#include "cpu/h8/h8s2320.h"
-
-#include "imagedev/snapquik.h"
-
-#include "machine/at45dbxx.h"
-#include "machine/intelfsh.h"
-#include "machine/nvram.h"
-#include "machine/pcf8593.h"
-#include "machine/ram.h"
-
-#include "sound/spkrdev.h"
-
-#include "video/hd66421.h"
-
-
-class cybiko_state : public driver_device
-{
-public:
- cybiko_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_crtc(*this, "hd66421")
- , m_speaker(*this, "speaker")
- , m_rtc(*this, "rtc")
- , m_ram(*this, RAM_TAG)
- , m_flash1(*this, "flash1")
- , m_nvram(*this, "nvram")
- , m_input(*this, "A.%u", 0)
- , m_debug_serial(*this, "debug_serial")
- { }
-
- void serflash_w(uint16_t data);
- uint16_t clock_r();
- void clock_w(uint16_t data);
- uint16_t xtclock_r();
- void xtclock_w(uint16_t data);
- uint16_t xtpower_r();
- uint16_t adc1_r();
- uint16_t adc2_r();
- uint16_t port0_r();
-
- uint16_t cybiko_lcd_r(offs_t offset, uint16_t mem_mask = ~0);
- void cybiko_lcd_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t cybikov1_key_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t cybikov2_key_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t cybikoxt_key_r(offs_t offset, uint16_t mem_mask = ~0);
- void cybiko_usb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- int cybiko_key_r(offs_t offset, int mem_mask);
-
- required_device<h8_device> m_maincpu;
- required_device<hd66421_device> m_crtc;
- required_device<speaker_sound_device> m_speaker;
- required_device<pcf8593_device> m_rtc;
- required_device<ram_device> m_ram;
- optional_device<at45db041_device> m_flash1;
- required_device<nvram_device> m_nvram;
- optional_ioport_array<15> m_input;
- required_device<rs232_port_device> m_debug_serial;
- void init_cybikoxt();
- void init_cybiko();
- virtual void machine_start() override;
- virtual void machine_reset() override;
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cybiko);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cybikoxt);
-
- void cybikov1_base(machine_config &config);
- void cybikov1_flash(machine_config &config);
- void cybikov1_debug_serial(machine_config &config);
- void cybikov1(machine_config &config);
- void cybikov2(machine_config &config);
- void cybikoxt(machine_config &config);
-
- void cybikov1_io(address_map &map);
- void cybikov1_mem(address_map &map);
- void cybikov2_io(address_map &map);
- void cybikov2_mem(address_map &map);
- void cybikoxt_io(address_map &map);
- void cybikoxt_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_CYBIKO_H
diff --git a/src/mame/includes/cybstorm.h b/src/mame/includes/cybstorm.h
deleted file mode 100644
index 05aa4bcace2..00000000000
--- a/src/mame/includes/cybstorm.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles, Phil Bennett
-/*************************************************************************
-
- Atari Cyberstorm hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_CYBSTORM_H
-#define MAME_INCLUDES_CYBSTORM_H
-
-#pragma once
-
-#include "audio/atarijsa.h"
-#include "machine/bankdev.h"
-#include "video/atarivad.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class cybstorm_state : public driver_device
-{
-public:
- cybstorm_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_jsa(*this, "jsa")
- , m_vad(*this, "vad")
- , m_vadbank(*this, "vadbank")
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- { }
-
- void init_cybstorm();
- void cybstorm(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- uint32_t special_port1_r();
- void latch_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield2_tile_info);
- TILEMAP_MAPPER_MEMBER(playfield_scan);
-
- uint32_t screen_update_cybstorm(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void round2(machine_config &config);
- void main_map(address_map &map);
- void vadbank_map(address_map &map);
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<atari_jsa_iiis_device> m_jsa;
- required_device<atari_vad_device> m_vad;
- required_device<address_map_bank_device> m_vadbank;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
-
- uint32_t m_latch_data;
- uint8_t m_alpha_tile_bank;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_CYBSTORM_H
diff --git a/src/mame/includes/dai.h b/src/mame/includes/dai.h
deleted file mode 100644
index 00dfdf79bf3..00000000000
--- a/src/mame/includes/dai.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Krzysztof Strzecha, Nathan Woods
-/*****************************************************************************
- *
- * includes/dai.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_DAI_H
-#define MAME_INCLUDES_DAI_H
-
-#include "cpu/i8085/i8085.h"
-#include "audio/dai_snd.h"
-#include "machine/i8255.h"
-#include "machine/pit8253.h"
-#include "machine/tms5501.h"
-#include "imagedev/cassette.h"
-#include "machine/timer.h"
-#include "emupal.h"
-
-
-class dai_state : public driver_device
-{
-public:
- dai_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_pit(*this, "pit")
- , m_tms5501(*this, "tms5501")
- , m_sound(*this, "custom")
- , m_cassette(*this, "cassette")
- , m_rom(*this, "maincpu")
- , m_ram(*this, "mainram")
- , m_palette(*this, "palette")
- , m_io_keyboard(*this, "IN%u", 0U)
- , m_tms_timer(*this, "tms_timer")
- { }
-
- void dai(machine_config &config);
-
-private:
- u8 m_paddle_select;
- u8 m_paddle_enable;
- u8 m_cassette_motor[2];
- u8 m_keyboard_scan_mask;
- u8 m_4_colours_palette[4];
- void stack_interrupt_circuit_w(u8 data);
- u8 io_discrete_devices_r(offs_t offset);
- void io_discrete_devices_w(offs_t offset, u8 data);
- u8 amd9511_r();
- void amd9511_w(offs_t offset, u8 data);
- u8 pit_r(offs_t offset);
- void pit_w(offs_t offset, u8 data);
- u8 keyboard_r();
- void keyboard_w(u8 data);
- void dai_palette(palette_device &palette) const;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- IRQ_CALLBACK_MEMBER(int_ack);
- TIMER_DEVICE_CALLBACK_MEMBER(tms_timer);
-
- void mem_map(address_map &map);
-
- static const rgb_t s_palette[16];
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- memory_passthrough_handler *m_rom_shadow_tap;
- required_device<cpu_device> m_maincpu;
- required_device<pit8253_device> m_pit;
- required_device<tms5501_device> m_tms5501;
- required_device<dai_sound_device> m_sound;
- required_device<cassette_image_device> m_cassette;
- required_region_ptr<u8> m_rom;
- required_shared_ptr<u8> m_ram;
- required_device<palette_device> m_palette;
- required_ioport_array<9> m_io_keyboard;
- required_device<timer_device> m_tms_timer;
-};
-
-
-#endif // MAME_INCLUDES_DAI_H
diff --git a/src/mame/includes/darius.h b/src/mame/includes/darius.h
deleted file mode 100644
index 500c2ea9bdc..00000000000
--- a/src/mame/includes/darius.h
+++ /dev/null
@@ -1,128 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:David Graves, Jarek Burczynski
-/*************************************************************************
-
- Darius
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DARIUS_H
-#define MAME_INCLUDES_DARIUS_H
-
-#pragma once
-
-#include "sound/flt_vol.h"
-#include "sound/msm5205.h"
-#include "video/pc080sn.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#define VOL_MAX (3 * 2 + 2)
-#define PAN_MAX (2 + 2 + 1) /* FM 2port + PSG 2port + DA 1port */
-
-class darius_state : public driver_device
-{
-public:
- darius_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_fg_ram(*this, "fg_ram"),
- m_audiobank(*this, "audiobank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_cpub(*this, "cpub"),
- m_adpcm(*this, "adpcm"),
- m_pc080sn(*this, "pc080sn"),
- m_filter_l{{*this, "filter0.%ul", 0U},
- {*this, "filter1.%ul", 0U}},
- m_filter_r{{*this, "filter0.%ur", 0U},
- {*this, "filter1.%ur", 0U}},
- m_msm5205_l(*this, "msm5205.l"),
- m_msm5205_r(*this, "msm5205.r"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void darius(machine_config &config);
-
-protected:
- virtual void device_post_load() override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr<u16> m_fg_ram;
- required_memory_bank m_audiobank;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
-
- /* misc */
- u16 m_cpua_ctrl;
- u16 m_coin_word;
- u8 m_adpcm_command;
- u8 m_nmi_enable;
- u32 m_def_vol[0x10];
- u8 m_vol[VOL_MAX];
- u8 m_pan[PAN_MAX];
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<msm5205_device> m_msm;
- required_device<cpu_device> m_cpub;
- required_device<cpu_device> m_adpcm;
- required_device<pc080sn_device> m_pc080sn;
-
- required_device_array<filter_volume_device, 4> m_filter_l[2];
- required_device_array<filter_volume_device, 4> m_filter_r[2];
- required_device<filter_volume_device> m_msm5205_l;
- required_device<filter_volume_device> m_msm5205_r;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- void cpua_ctrl_w(u16 data);
- u16 coin_r();
- void coin_w(u16 data);
- void sound_bankswitch_w(u8 data);
- void adpcm_command_w(u8 data);
- void fm0_pan_w(u8 data);
- void fm1_pan_w(u8 data);
- void psg0_pan_w(u8 data);
- void psg1_pan_w(u8 data);
- void da_pan_w(u8 data);
- u8 adpcm_command_r();
- u8 readport2();
- u8 readport3();
- void adpcm_nmi_disable(u8 data);
- void adpcm_nmi_enable(u8 data);
- void fg_layer_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void write_portA0(u8 data);
- void write_portA1(u8 data);
- void write_portB0(u8 data);
- void write_portB1(u8 data);
- void adpcm_data_w(u8 data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- u32 screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_middle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int x_offs, int y_offs);
- u32 update_screen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int xoffs);
- void parse_control(); // assumes Z80 sandwiched between 68Ks
- void update_fm0();
- void update_fm1();
- void update_psg0(int port);
- void update_psg1(int port);
- void update_da();
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
- void darius_cpub_map(address_map &map);
- void darius_map(address_map &map);
- void darius_sound2_io_map(address_map &map);
- void darius_sound2_map(address_map &map);
- void darius_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DARIUS_H
diff --git a/src/mame/includes/darkmist.h b/src/mame/includes/darkmist.h
deleted file mode 100644
index 019fcfc9bc7..00000000000
--- a/src/mame/includes/darkmist.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Nicola Salmoria, Tomasz Slanina
-#ifndef MAME_INCLUDES_DARKMIST_H
-#define MAME_INCLUDES_DARKMIST_H
-
-#pragma once
-
-#include "audio/t5182.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class darkmist_state : public driver_device
-{
-public:
- darkmist_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_t5182(*this, "t5182"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spritebank(*this, "spritebank"),
- m_scroll(*this, "scroll"),
- m_videoram(*this, "videoram"),
- m_workram(*this, "workram"),
- m_spriteram(*this, "spriteram"),
- m_bg_clut(*this, "bg_clut"),
- m_fg_clut(*this, "fg_clut"),
- m_spr_clut(*this, "spr_clut"),
- m_tx_clut(*this, "tx_clut"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void darkmist(machine_config &config);
-
- void init_darkmist();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<t5182_device> m_t5182;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_spritebank;
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_workram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_region_ptr<uint8_t> m_bg_clut;
- required_region_ptr<uint8_t> m_fg_clut;
- required_region_ptr<uint8_t> m_spr_clut;
- required_region_ptr<uint8_t> m_tx_clut;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- int m_hw;
- tilemap_t *m_bgtilemap;
- tilemap_t *m_fgtilemap;
- tilemap_t *m_txtilemap;
-
- void hw_w(uint8_t data);
- void tx_vram_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bgtile_info);
- TILE_GET_INFO_MEMBER(get_fgtile_info);
- TILE_GET_INFO_MEMBER(get_txttile_info);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- void darkmist_palette(palette_device &palette) const;
-
- bitmap_ind16 m_temp_bitmap;
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void mix_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* clut);
- void decrypt_fgbgtiles(uint8_t* rgn, int size);
- void decrypt_gfx();
- void decrypt_snd();
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
- void decrypted_opcodes_map(address_map &map);
- void memmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DARKMIST_H
diff --git a/src/mame/includes/darkseal.h b/src/mame/includes/darkseal.h
deleted file mode 100644
index ea5ec8eed56..00000000000
--- a/src/mame/includes/darkseal.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_DARKSEAL_H
-#define MAME_INCLUDES_DARKSEAL_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "cpu/h6280/h6280.h"
-#include "video/deco16ic.h"
-#include "video/bufsprite.h"
-#include "video/decospr.h"
-#include "emupal.h"
-
-class darkseal_state : public driver_device
-{
-public:
- darkseal_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_palette(*this, "colors")
- , m_deco_tilegen(*this, "tilegen%u", 1U)
- , m_sprgen(*this, "spritegen")
- , m_spriteram(*this, "spriteram")
- , m_soundlatch(*this, "soundlatch")
- , m_pf1_rowscroll(*this, "pf1_rowscroll")
- , m_pf3_rowscroll(*this, "pf3_rowscroll")
- , m_paletteram(*this, "palette")
- , m_paletteram_ext(*this, "palette_ext")
- { }
-
- void darkseal(machine_config &config);
-
- void init_darkseal();
-
-private:
- void irq_ack_w(uint16_t data);
- void palette_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void palette_ext_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void update_palette(int offset);
- void darkseal_map(address_map &map);
- void sound_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device<palette_device> m_palette;
- required_device_array<deco16ic_device, 2> m_deco_tilegen;
- required_device<decospr_device> m_sprgen;
- required_device<buffered_spriteram16_device> m_spriteram;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_pf1_rowscroll;
- //uint16_t *m_pf2_rowscroll;
- required_shared_ptr<uint16_t> m_pf3_rowscroll;
- //uint16_t *m_pf4_rowscroll;
- required_shared_ptr<uint16_t> m_paletteram;
- required_shared_ptr<uint16_t> m_paletteram_ext;
-};
-
-#endif // MAME_INCLUDES_DARKSEAL_H
diff --git a/src/mame/includes/dassault.h b/src/mame/includes/dassault.h
deleted file mode 100644
index c81ea54563b..00000000000
--- a/src/mame/includes/dassault.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Desert Assault
-
-*************************************************************************/
-
-#include "machine/gen_latch.h"
-#include "cpu/h6280/h6280.h"
-#include "sound/okim6295.h"
-#include "video/deco16ic.h"
-#include "video/decocomn.h"
-#include "video/bufsprite.h"
-#include "video/decospr.h"
-#include "emupal.h"
-
-class dassault_state : public driver_device
-{
-public:
- dassault_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_subcpu(*this, "sub")
- , m_deco_tilegen(*this, "tilegen%u", 1U)
- , m_oki2(*this, "oki2")
- , m_spriteram(*this, "spriteram%u", 1U)
- , m_sprgen(*this, "spritegen%u", 1U)
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_pf2_rowscroll(*this, "pf2_rowscroll")
- , m_pf4_rowscroll(*this, "pf4_rowscroll")
- { }
-
- void dassault(machine_config &config);
-
- void init_dassault();
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device_array<deco16ic_device, 2> m_deco_tilegen;
- required_device<okim6295_device> m_oki2;
- required_device_array<buffered_spriteram16_device, 2> m_spriteram;
- required_device_array<decospr_device, 2> m_sprgen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_pf2_rowscroll;
- required_shared_ptr<uint16_t> m_pf4_rowscroll;
-
- uint16_t m_priority;
-
- void priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void main_irq_ack_w(uint16_t data);
- void sub_irq_ack_w(uint16_t data);
- uint16_t dassault_control_r(offs_t offset);
- void dassault_control_w(uint16_t data);
- uint16_t dassault_sub_control_r();
- void sound_bankswitch_w(uint8_t data);
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_dassault(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void mixdassaultlayer(bitmap_rgb32 &bitmap, bitmap_ind16* sprite_bitmap, const rectangle &cliprect, uint16_t pri, uint16_t primask, uint16_t penbase, uint8_t alpha);
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- void dassault_map(address_map &map);
- void dassault_sub_map(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/dbz.h b/src/mame/includes/dbz.h
deleted file mode 100644
index 6ec3e9765d2..00000000000
--- a/src/mame/includes/dbz.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, R. Belmont, Pierpaolo Prazzoli
-/*************************************************************************
-
- Dragon Ball Z
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DBZ_H
-#define MAME_INCLUDES_DBZ_H
-
-#pragma once
-
-#include "machine/k053252.h"
-#include "machine/timer.h"
-#include "video/k054156_k054157_k056832.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/k053936.h"
-#include "video/k053251.h"
-#include "video/konami_helper.h"
-#include "tilemap.h"
-
-class dbz_state : public driver_device
-{
-public:
- dbz_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bg1_videoram(*this, "bg1_videoram"),
- m_bg2_videoram(*this, "bg2_videoram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k053246(*this, "k053246"),
- m_k053251(*this, "k053251"),
- m_k053252(*this, "k053252"),
- m_k056832(*this, "k056832"),
- m_k053936_1(*this, "k053936_1"),
- m_k053936_2(*this, "k053936_2"),
- m_gfxdecode(*this, "gfxdecode"),
- m_dsw2(*this, "DSW2")
- { }
-
- void dbz(machine_config &config);
- void dbz2bl(machine_config &config);
-
- void init_dbza();
- void init_dbz();
- void init_dbz2();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_bg1_videoram;
- required_shared_ptr<uint16_t> m_bg2_videoram;
-
- /* video-related */
- tilemap_t *m_bg1_tilemap;
- tilemap_t *m_bg2_tilemap;
- int m_layer_colorbase[6];
- int m_layerpri[5];
- int m_sprite_colorbase;
-
- /* misc */
- int m_control;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k053247_device> m_k053246;
- required_device<k053251_device> m_k053251;
- required_device<k053252_device> m_k053252;
- required_device<k056832_device> m_k056832;
- required_device<k053936_device> m_k053936_1;
- required_device<k053936_device> m_k053936_2;
- required_device<gfxdecode_device> m_gfxdecode;
-
- required_ioport m_dsw2;
-
- void dbzcontrol_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void dbz_sound_cause_nmi(uint16_t data);
- void dbz_bg2_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void dbz_bg1_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(dbz_irq2_ack_w);
- TILE_GET_INFO_MEMBER(get_dbz_bg2_tile_info);
- TILE_GET_INFO_MEMBER(get_dbz_bg1_tile_info);
- uint32_t screen_update_dbz(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(dbz_scanline);
- K056832_CB_MEMBER(tile_callback);
- K053246_CB_MEMBER(sprite_callback);
- void dbz_map(address_map &map);
- void dbz2bl_map(address_map &map);
- void dbz_sound_io_map(address_map &map);
- void dbz_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DBZ_H
diff --git a/src/mame/includes/dc.h b/src/mame/includes/dc.h
deleted file mode 100644
index 4a6e8208601..00000000000
--- a/src/mame/includes/dc.h
+++ /dev/null
@@ -1,293 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:Angelo Salese, Olivier Galibert, David Haywood, Samuele Zannoli, R. Belmont, ElSemi
-/*
-
- dc.h - Sega Dreamcast includes
-
-*/
-#ifndef MAME_INCLUDES_DC_H
-#define MAME_INCLUDES_DC_H
-
-#pragma once
-
-#include "video/powervr2.h"
-#include "machine/naomig1.h"
-#include "machine/maple-dc.h"
-#include "machine/timer.h"
-#include "sound/aica.h"
-
-class dc_state : public driver_device
-{
- public:
- dc_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- dc_framebuffer_ram(*this, "frameram"),
- dc_texture_ram(*this, "dc_texture_ram"),
- dc_sound_ram(*this, "dc_sound_ram"),
- dc_ram(*this, "dc_ram"),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_powervr2(*this, "powervr2"),
- m_maple(*this, "maple_dc"),
- m_naomig1(*this, "rom_board"),
- m_aica(*this, "aica") { }
-
- required_shared_ptr<uint64_t> dc_framebuffer_ram; // '32-bit access area'
- required_shared_ptr<uint64_t> dc_texture_ram; // '64-bit access area'
-
- required_shared_ptr<uint16_t> dc_sound_ram;
- required_shared_ptr<uint64_t> dc_ram;
-
- /* machine related */
- uint32_t dc_sysctrl_regs[0x200/4];
- uint32_t g1bus_regs[0x100/4]; // DC-only
- uint32_t g2bus_regs[0x100/4];
- uint8_t m_armrst;
-
- struct {
- uint32_t g2_addr;
- uint32_t root_addr;
- uint32_t size;
- uint8_t dir;
- uint8_t flag;
- uint8_t indirect;
- uint8_t start;
- uint8_t sel;
- } m_g2_dma[4];
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- TIMER_CALLBACK_MEMBER(g2_dma_irq);
- TIMER_CALLBACK_MEMBER(ch2_dma_irq);
- uint32_t dc_aica_reg_r(offs_t offset, uint32_t mem_mask = ~0);
- void dc_aica_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t dc_arm_aica_r(offs_t offset);
- void dc_arm_aica_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void g2_dma_execute(address_space &space, int channel);
- inline int decode_reg32_64(uint32_t offset, uint64_t mem_mask, uint64_t *shift);
- inline int decode_reg3216_64(uint32_t offset, uint64_t mem_mask, uint64_t *shift);
- int dc_compute_interrupt_level();
- void dc_update_interrupt_status();
- inline int decode_reg_64(uint32_t offset, uint64_t mem_mask, uint64_t *shift);
- uint64_t dc_sysctrl_r(offs_t offset, uint64_t mem_mask = ~0);
- void dc_sysctrl_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t dc_gdrom_r(offs_t offset, uint64_t mem_mask = ~0);
- void dc_gdrom_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t dc_g2_ctrl_r(offs_t offset, uint64_t mem_mask = ~0);
- void dc_g2_ctrl_w(address_space &space, offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t dc_modem_r(offs_t offset, uint64_t mem_mask = ~0);
- void dc_modem_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- void g1_irq(uint8_t data);
- void pvr_irq(uint8_t data);
- void maple_irq(uint8_t data);
- uint16_t soundram_r(offs_t offset);
- void soundram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(aica_irq);
- DECLARE_WRITE_LINE_MEMBER(sh4_aica_irq);
- DECLARE_WRITE_LINE_MEMBER(external_irq);
-
-
- required_device<sh4_base_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<powervr2_device> m_powervr2;
- required_device<maple_dc_device> m_maple;
- optional_device<naomi_g1_device> m_naomig1;
- required_device<aica_device> m_aica;
-
- void generic_dma(uint32_t main_adr, void *dma_ptr, uint32_t length, uint32_t size, bool to_mainram);
- TIMER_DEVICE_CALLBACK_MEMBER(dc_scanline);
- DECLARE_MACHINE_RESET(dc_console);
-
- void naomi_aw_base(machine_config &config);
- void aica_map(address_map &map);
- void dc_audio_map(address_map &map);
-};
-
-/*--------- Ch2-DMA Control Registers ----------*/
-#define SB_C2DSTAT ((0x005f6800-0x005f6800)/4)
-#define SB_C2DLEN ((0x005f6804-0x005f6800)/4)
-#define SB_C2DST ((0x005f6808-0x005f6800)/4)
-/*-------- Sort-DMA Control Registers ----------*/
-#define SB_SDSTAW ((0x005f6810-0x005f6800)/4)
-#define SB_SDBAAW ((0x005f6814-0x005f6800)/4)
-#define SB_SDWLT ((0x005f6818-0x005f6800)/4)
-#define SB_SDLAS ((0x005f681c-0x005f6800)/4)
-#define SB_SDST ((0x005f6820-0x005f6800)/4)
-/*-- DDT I/F Block & System Control Registers --*/
-#define SB_DBREQM ((0x005f6840-0x005f6800)/4)
-#define SB_BAVLWC ((0x005f6844-0x005f6800)/4)
-#define SB_C2DPRYC ((0x005f6848-0x005f6800)/4)
-#define SB_C2DMAXL ((0x005f684c-0x005f6800)/4)
-#define SB_TFREM ((0x005f6880-0x005f6800)/4)
-#define SB_LMMODE0 ((0x005f6884-0x005f6800)/4)
-#define SB_LMMODE1 ((0x005f6888-0x005f6800)/4)
-#define SB_FFST ((0x005f688c-0x005f6800)/4)
-#define SB_SFRES ((0x005f6890-0x005f6800)/4)
-#define SB_SBREV ((0x005f689c-0x005f6800)/4)
-#define SB_RBSPLT ((0x005f68a0-0x005f6800)/4)
-/*-------- Interrupt Control Registers ---------*/
-#define SB_ISTNRM ((0x005f6900-0x005f6800)/4)
-#define SB_ISTEXT ((0x005f6904-0x005f6800)/4)
-#define SB_ISTERR ((0x005f6908-0x005f6800)/4)
-#define SB_IML2NRM ((0x005f6910-0x005f6800)/4)
-#define SB_IML2EXT ((0x005f6914-0x005f6800)/4)
-#define SB_IML2ERR ((0x005f6918-0x005f6800)/4)
-#define SB_IML4NRM ((0x005f6920-0x005f6800)/4)
-#define SB_IML4EXT ((0x005f6924-0x005f6800)/4)
-#define SB_IML4ERR ((0x005f6928-0x005f6800)/4)
-#define SB_IML6NRM ((0x005f6930-0x005f6800)/4)
-#define SB_IML6EXT ((0x005f6934-0x005f6800)/4)
-#define SB_IML6ERR ((0x005f6938-0x005f6800)/4)
-#define SB_PDTNRM ((0x005f6940-0x005f6800)/4)
-#define SB_PDTEXT ((0x005f6944-0x005f6800)/4)
-#define SB_G2DTNRM ((0x005f6950-0x005f6800)/4)
-#define SB_G2DTEXT ((0x005f6954-0x005f6800)/4)
-
-
-/*-------- Maple-DMA Control Registers ---------*/
-#define SB_MDSTAR ((0x005f6c04-0x005f6c00)/4)
-#define SB_MDTSEL ((0x005f6c10-0x005f6c00)/4)
-#define SB_MDEN ((0x005f6c14-0x005f6c00)/4)
-#define SB_MDST ((0x005f6c18-0x005f6c00)/4)
-/*---- Maple I/F Block HW Control Registers ----*/
-#define SB_MSYS ((0x005f6c80-0x005f6c00)/4)
-#define SB_MST ((0x005f6c84-0x005f6c00)/4)
-#define SB_MSHTCL ((0x005f6c88-0x005f6c00)/4)
-#define SB_MDAPRO ((0x005f6c8c-0x005f6c00)/4)
-#define SB_MMSEL ((0x005f6ce8-0x005f6c00)/4)
-/*-------- Maple-DMA Debug Registers -----------*/
-#define SB_MTXDAD ((0x005f6cf4-0x005f6c00)/4)
-#define SB_MRXDAD ((0x005f6cf8-0x005f6c00)/4)
-#define SB_MRXDBD ((0x005f6cfc-0x005f6c00)/4)
-
-/*--------- GD-DMA Control Registers -----------*/
-#define SB_GDSTAR ((0x005f7404-0x005f7400)/4)
-#define SB_GDLEN ((0x005f7408-0x005f7400)/4)
-#define SB_GDDIR ((0x005f740c-0x005f7400)/4)
-#define SB_GDEN ((0x005f7414-0x005f7400)/4)
-#define SB_GDST ((0x005f7418-0x005f7400)/4)
-/*----- G1 I/F Block HW Control Registers ------*/
-#define SB_G1RRC ((0x005f7480-0x005f7400)/4)
-#define SB_G1RWC ((0x005f7484-0x005f7400)/4)
-#define SB_G1FRC ((0x005f7488-0x005f7400)/4)
-#define SB_G1FWC ((0x005f748c-0x005f7400)/4)
-#define SB_G1CRC ((0x005f7490-0x005f7400)/4)
-#define SB_G1CWC ((0x005f7494-0x005f7400)/4)
-#define SB_G1GDRC ((0x005f74a0-0x005f7400)/4)
-#define SB_G1GDWC ((0x005f74a4-0x005f7400)/4)
-#define SB_G1SYSM ((0x005f74b0-0x005f7400)/4)
-#define SB_G1CRDYC ((0x005f74b4-0x005f7400)/4)
-#define SB_GDAPRO ((0x005f74b8-0x005f7400)/4)
-
-/*-------- BIOS security Registers ---------*/
-#define SB_SECUR_EADR ((0x005f74e4-0x005f7400)/4)
-#define SB_SECUR_STATE ((0x005f74ec-0x005f7400)/4)
-/*---------- GD-DMA Debug Registers ------------*/
-#define SB_GDSTARD ((0x005f74f4-0x005f7400)/4)
-#define SB_GDLEND ((0x005f74f8-0x005f7400)/4)
-
-/*-------- Wave DMA Control Registers ----------*/
-#define SB_ADSTAG ((0x005f7800-0x005f7800)/4)
-#define SB_ADSTAR ((0x005f7804-0x005f7800)/4)
-#define SB_ADLEN ((0x005f7808-0x005f7800)/4)
-#define SB_ADDIR ((0x005f780c-0x005f7800)/4)
-#define SB_ADTSEL ((0x005f7810-0x005f7800)/4)
-#define SB_ADTRG SB_ADTSEL
-#define SB_ADEN ((0x005f7814-0x005f7800)/4)
-#define SB_ADST ((0x005f7818-0x005f7800)/4)
-#define SB_ADSUSP ((0x005f781c-0x005f7800)/4)
-
-/*----- External 1 DMA Control Registers -------*/
-#define SB_E1STAG ((0x005f7820-0x005f7800)/4)
-#define SB_E1STAR ((0x005f7824-0x005f7800)/4)
-#define SB_E1LEN ((0x005f7828-0x005f7800)/4)
-#define SB_E1DIR ((0x005f782c-0x005f7800)/4)
-#define SB_E1TSEL ((0x005f7830-0x005f7800)/4)
-#define SB_E1TRG SB_E1TSEL
-#define SB_E1EN ((0x005f7834-0x005f7800)/4)
-#define SB_E1ST ((0x005f7838-0x005f7800)/4)
-#define SB_E1SUSP ((0x005f783c-0x005f7800)/4)
-
-/*----- External 2 DMA Control Registers -------*/
-#define SB_E2STAG ((0x005f7840-0x005f7800)/4)
-#define SB_E2STAR ((0x005f7844-0x005f7800)/4)
-#define SB_E2LEN ((0x005f7848-0x005f7800)/4)
-#define SB_E2DIR ((0x005f784c-0x005f7800)/4)
-#define SB_E2TSEL ((0x005f7850-0x005f7800)/4)
-#define SB_E2TRG SB_E2TSEL
-#define SB_E2EN ((0x005f7854-0x005f7800)/4)
-#define SB_E2ST ((0x005f7858-0x005f7800)/4)
-#define SB_E2SUSP ((0x005f785c-0x005f7800)/4)
-
-/*------- Debug DMA Control Registers ----------*/
-#define SB_DDSTAG ((0x005f7860-0x005f7800)/4)
-#define SB_DDSTAR ((0x005f7864-0x005f7800)/4)
-#define SB_DDLEN ((0x005f7868-0x005f7800)/4)
-#define SB_DDDIR ((0x005f786c-0x005f7800)/4)
-#define SB_DDTSEL ((0x005f7870-0x005f7800)/4)
-#define SB_DDTRG SB_DDTSEL
-#define SB_DDEN ((0x005f7874-0x005f7800)/4)
-#define SB_DDST ((0x005f7878-0x005f7800)/4)
-#define SB_DDSUSP ((0x005f787c-0x005f7800)/4)
-/*----- G2 I/F Block HW Control Registers ------*/
-#define SB_G2ID ((0x005f7880-0x005f7800)/4)
-#define SB_G2DSTO ((0x005f7890-0x005f7800)/4)
-#define SB_G2TRTO ((0x005f7894-0x005f7800)/4)
-#define SB_G2MDMTO ((0x005f7898-0x005f7800)/4)
-#define SB_G2MDMW ((0x005f789c-0x005f7800)/4)
-#define SB_G2APRO ((0x005f78bc-0x005f7800)/4)
-
-/*---------- G2 DMA Debug Registers ------------*/
-#define SB_ADSTAGD ((0x005f78c0-0x005f7800)/4)
-#define SB_ADSTARD ((0x005f78c4-0x005f7800)/4)
-#define SB_ADLEND ((0x005f78c8-0x005f7800)/4)
-#define SB_E1STAGD ((0x005f78d0-0x005f7800)/4)
-#define SB_E1STARD ((0x005f78d4-0x005f7800)/4)
-#define SB_E1LEND ((0x005f78d8-0x005f7800)/4)
-#define SB_E2STAGD ((0x005f78e0-0x005f7800)/4)
-#define SB_E2STARD ((0x005f78e4-0x005f7800)/4)
-#define SB_E2LEND ((0x005f78e8-0x005f7800)/4)
-#define SB_DDSTAGD ((0x005f78f0-0x005f7800)/4)
-#define SB_DDSTARD ((0x005f78f4-0x005f7800)/4)
-#define SB_DDLEND ((0x005f78f8-0x005f7800)/4)
-
-#define RTC1 ((0x00710000-0x00710000)/4)
-#define RTC2 ((0x00710004-0x00710000)/4)
-#define RTC3 ((0x00710008-0x00710000)/4)
-
-
-/* ------------- normal interrupts ------------- */
-#define IST_EOR_VIDEO 0x00000001
-#define IST_EOR_ISP 0x00000002
-#define IST_EOR_TSP 0x00000004
-#define IST_VBL_IN 0x00000008
-#define IST_VBL_OUT 0x00000010
-#define IST_HBL_IN 0x00000020
-#define IST_EOXFER_YUV 0x00000040
-#define IST_EOXFER_OPLST 0x00000080
-#define IST_EOXFER_OPMV 0x00000100
-#define IST_EOXFER_TRLST 0x00000200
-#define IST_EOXFER_TRMV 0x00000400
-#define IST_DMA_PVR 0x00000800
-#define IST_DMA_MAPLE 0x00001000
-#define IST_DMA_MAPLEVB 0x00002000
-#define IST_DMA_GDROM 0x00004000
-#define IST_DMA_AICA 0x00008000
-#define IST_DMA_EXT1 0x00010000
-#define IST_DMA_EXT2 0x00020000
-#define IST_DMA_DEV 0x00040000
-#define IST_DMA_CH2 0x00080000
-#define IST_DMA_SORT 0x00100000
-#define IST_EOXFER_PTLST 0x00200000
-#define IST_G1G2EXTSTAT 0x40000000
-#define IST_ERROR 0x80000000
-/* ------------ external interrupts ------------ */
-#define IST_EXT_EXTERNAL 0x00000008
-#define IST_EXT_MODEM 0x00000004
-#define IST_EXT_AICA 0x00000002
-#define IST_EXT_GDROM 0x00000001
-/* -------------- error interrupts ------------- */
-#define IST_ERR_ISP_LIMIT 0x00000004
-#define IST_ERR_PVRIF_ILL_ADDR 0x00000040
-
-#endif // MAME_INCLUDES_DC_H
diff --git a/src/mame/includes/dccons.h b/src/mame/includes/dccons.h
deleted file mode 100644
index 02a829f0b31..00000000000
--- a/src/mame/includes/dccons.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:Angelo Salese, R. Belmont
-#ifndef MAME_INCLUDES_DCCONS_H
-#define MAME_INCLUDES_DCCONS_H
-
-#pragma once
-
-#include "dc.h"
-
-#include "bus/ata/ataintf.h"
-#include "imagedev/chd_cd.h"
-#include "machine/gdrom.h"
-#include "machine/intelfsh.h"
-
-class dc_cons_state : public dc_state
-{
-public:
- dc_cons_state(const machine_config &mconfig, device_type type, const char *tag)
- : dc_state(mconfig, type, tag)
- , m_ata(*this, "ata")
- , m_dcflash(*this, "dcflash")
- , atapi_xfercomplete(0)
- { }
-
- required_device<ata_interface_device> m_ata;
- required_device<fujitsu_29lv002tc_device> m_dcflash;
-
- void init_dc();
- void init_dcus();
- void init_dcjp();
- void init_tream();
-
- uint64_t dcus_idle_skip_r();
- uint64_t dcjp_idle_skip_r();
-
- uint64_t dc_pdtra_r();
- void dc_pdtra_w(uint64_t data);
- DECLARE_WRITE_LINE_MEMBER(aica_irq);
- DECLARE_WRITE_LINE_MEMBER(sh4_aica_irq);
- DECLARE_WRITE_LINE_MEMBER(ata_interrupt);
-
- TIMER_CALLBACK_MEMBER( atapi_xfer_end );
-
- void dreamcast_atapi_init();
- uint32_t dc_mess_g1_ctrl_r(offs_t offset);
- void dc_mess_g1_ctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint8_t dc_flash_r(offs_t offset);
- void dc_flash_w(offs_t offset, uint8_t data);
-
- static void gdrom_config(device_t *device);
- void dc_base(machine_config &config);
- void dc(machine_config &config);
- void dc_fish(machine_config &config);
- void aica_map(address_map &map);
- void dc_audio_map(address_map &map);
- void dc_map(address_map &map);
- void dc_port(address_map &map);
-private:
- uint64_t PDTRA, PCTRA;
- emu_timer *atapi_timer;
- int atapi_xferlen, atapi_xferbase, atapi_xfercomplete;
-};
-
-#endif // MAME_INCLUDES_DCCONS_H
diff --git a/src/mame/includes/dcheese.h b/src/mame/includes/dcheese.h
deleted file mode 100644
index fc9e190e7af..00000000000
--- a/src/mame/includes/dcheese.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-
-/***************************************************************************
-
- HAR MadMax hardware
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_DCHEESE_H
-#define MAME_INCLUDES_DCHEESE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/bsmt2000.h"
-#include "emupal.h"
-#include "screen.h"
-
-class dcheese_state : public driver_device
-{
-public:
- dcheese_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_palrom(*this, "palrom"),
- m_gfxrom(*this, "gfx"),
- m_eepromout_io(*this, "EEPROMOUT"),
- m_2a0002_io(*this, "2a0002"),
- m_2a000e_io(*this, "2a000e"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_screen(*this, "screen"),
- m_bsmt(*this, "bsmt"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void fredmem(machine_config &config);
- void dcheese(machine_config &config);
-
-protected:
- enum
- {
- TIMER_BLITTER_SCANLINE,
- TIMER_SIGNAL_IRQ
- };
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- required_region_ptr<u16> m_palrom;
- required_region_ptr<u8> m_gfxrom;
- required_ioport m_eepromout_io;
- required_ioport m_2a0002_io;
- required_ioport m_2a000e_io;
-
- /* video-related */
- u16 m_blitter_color[2];
- u16 m_blitter_xparam[16];
- u16 m_blitter_yparam[16];
- u16 m_blitter_vidparam[32];
-
- std::unique_ptr<bitmap_ind16> m_dstbitmap;
- emu_timer *m_blitter_timer;
- emu_timer *m_signal_irq_timer;
-
- /* misc */
- u8 m_irq_state[5];
- u8 m_sound_control;
- u8 m_sound_msb_latch;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<screen_device> m_screen;
- required_device<bsmt2000_device> m_bsmt;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void eeprom_control_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u8 sound_status_r();
- void sound_control_w(u8 data);
- void bsmt_data_w(offs_t offset, u8 data);
- void blitter_color_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void blitter_xparam_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void blitter_yparam_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void blitter_vidparam_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void blitter_unknown_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 blitter_vidparam_r(offs_t offset);
- void dcheese_palette(palette_device &palette) const;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank);
- void signal_irq(u8 which);
- void update_irq_state();
- uint8_t iack_r(offs_t offset);
- void update_scanline_irq();
- void do_clear();
- void do_blit();
-
- void main_cpu_map(address_map &map);
- void main_fc7_map(address_map &map);
- void sound_cpu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DCHEESE_H
diff --git a/src/mame/includes/dcon.h b/src/mame/includes/dcon.h
deleted file mode 100644
index a4040e52b2d..00000000000
--- a/src/mame/includes/dcon.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_DCON_H
-#define MAME_INCLUDES_DCON_H
-
-#pragma once
-
-#include "audio/seibu.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class dcon_state : public driver_device, public seibu_sound_common
-{
-public:
- dcon_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_seibu_sound(*this, "seibu_sound"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_back_data(*this, "back_data"),
- m_fore_data(*this, "fore_data"),
- m_mid_data(*this, "mid_data"),
- m_textram(*this, "textram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void dcon(machine_config &config);
- void sdgndmps(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<seibu_sound_device> m_seibu_sound;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint16_t> m_back_data;
- required_shared_ptr<uint16_t> m_fore_data;
- required_shared_ptr<uint16_t> m_mid_data;
- required_shared_ptr<uint16_t> m_textram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- tilemap_t *m_background_layer;
- tilemap_t *m_foreground_layer;
- tilemap_t *m_midground_layer;
- tilemap_t *m_text_layer;
-
- int m_gfx_bank_select;
- int m_last_gfx_bank;
- uint16_t m_scroll_ram[6];
- uint16_t m_layer_en;
-
- u8 sdgndmps_sound_comms_r(offs_t offset);
-
- void layer_en_w(uint16_t data);
- void layer_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gfxbank_w(uint16_t data);
- void background_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void foreground_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void midground_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void text_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_back_tile_info);
- TILE_GET_INFO_MEMBER(get_fore_tile_info);
- TILE_GET_INFO_MEMBER(get_mid_tile_info);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
-
- virtual void video_start() override;
-
- uint32_t screen_update_dcon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_sdgndmps(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
- void dcon_map(address_map &map);
- void sdgndmps_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DCON_H
diff --git a/src/mame/includes/dday.h b/src/mame/includes/dday.h
deleted file mode 100644
index ed424d3bdad..00000000000
--- a/src/mame/includes/dday.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/*************************************************************************
-
- D-Day
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DDAY_H
-#define MAME_INCLUDES_DDAY_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-#include "sound/ay8910.h"
-#include "tilemap.h"
-
-
-class dday_state : public driver_device
-{
-public:
- dday_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_textvideoram(*this, "textvideoram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_ay1(*this, "ay1")
- { }
-
- void dday(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_textvideoram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_text_tilemap;
- tilemap_t *m_sl_tilemap;
- bitmap_ind16 m_main_bitmap;
- int m_control;
- int m_sl_image;
- int m_sl_enable;
- int m_timer_value;
- emu_timer *m_countdown_timer;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<ay8912_device> m_ay1;
-
- uint8_t dday_countdown_timer_r();
- void dday_bgvideoram_w(offs_t offset, uint8_t data);
- void dday_fgvideoram_w(offs_t offset, uint8_t data);
- void dday_textvideoram_w(offs_t offset, uint8_t data);
- void dday_colorram_w(offs_t offset, uint8_t data);
- uint8_t dday_colorram_r(offs_t offset);
- void dday_sl_control_w(uint8_t data);
- void dday_control_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- TILE_GET_INFO_MEMBER(get_sl_tile_info);
- void dday_palette(palette_device &palette) const;
- uint32_t screen_update_dday(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(countdown_timer_callback);
- void start_countdown_timer();
- void dday_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DDAY_H
diff --git a/src/mame/includes/ddragon.h b/src/mame/includes/ddragon.h
deleted file mode 100644
index 31b1ef43dcd..00000000000
--- a/src/mame/includes/ddragon.h
+++ /dev/null
@@ -1,205 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett,Carlos A. Lozano, Rob Rosenbrock, Phil Stroffolino, Ernesto Corvi, David Haywood, R. Belmont
-/*************************************************************************
-
- Double Dragon & Double Dragon II (but also China Gate)
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DDRAGON_H
-#define MAME_INCLUDES_DDRAGON_H
-
-#pragma once
-
-#include "cpu/m6805/m68705.h"
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class ddragon_state : public driver_device
-{
-public:
- ddragon_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_subcpu(*this, "sub")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_gfxdecode(*this, "gfxdecode")
- , m_soundlatch(*this, "soundlatch")
- , m_mainbank(*this, "mainbank")
- , m_bgvideoram(*this, "bgvideoram")
- , m_fgvideoram(*this, "fgvideoram")
- , m_comram(*this, "comram")
- , m_spriteram(*this, "spriteram")
- , m_scrollx_lo(*this, "scrollx_lo")
- , m_scrolly_lo(*this, "scrolly_lo")
- , m_adpcm(*this, "adpcm%u", 1U)
- , m_adpcm_rom(*this, "adpcm%u", 1U)
- {
- }
-
- void ddragon(machine_config &config);
- void ddragon6809(machine_config &config);
- void ddragonb(machine_config &config);
- void ddragonba(machine_config &config);
- void ddragon2(machine_config &config);
-
- void init_ddragon2();
- void init_ddragon();
- void init_ddragon6809();
-
- DECLARE_READ_LINE_MEMBER(subcpu_bus_free_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<cpu_device> m_subcpu;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<generic_latch_8_device> m_soundlatch;
-
- optional_memory_bank m_mainbank;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- uint8_t m_technos_video_hw;
- uint8_t m_scrollx_hi;
- uint8_t m_scrolly_hi;
-
- /* misc */
- uint8_t m_ddragon_sub_port;
- uint8_t m_sprite_irq;
- uint8_t m_adpcm_sound_irq;
- uint32_t m_adpcm_pos[2];
- uint32_t m_adpcm_end[2];
- bool m_adpcm_idle[2];
- int m_adpcm_data[2];
-
- void ddragon_bgvideoram_w(offs_t offset, uint8_t data);
- void ddragon_fgvideoram_w(offs_t offset, uint8_t data);
-
- TILEMAP_MAPPER_MEMBER(background_scan);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_16color_tile_info);
-
- int scanline_to_vcount(int scanline);
-
- uint32_t screen_update_ddragon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void ddragon_base_map(address_map &map);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- optional_shared_ptr<uint8_t> m_comram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scrollx_lo;
- required_shared_ptr<uint8_t> m_scrolly_lo;
-
- /* devices */
- optional_device_array<msm5205_device, 2> m_adpcm;
-
- optional_region_ptr_array<uint8_t, 2> m_adpcm_rom;
-
- void ddragon_interrupt_ack(offs_t offset, uint8_t data);
- void dd_adpcm_int(int chip);
-
- /* video/ddragon.cpp */
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(ddragon_scanline);
-
- void ddragon_bankswitch_w(uint8_t data);
- uint8_t ddragon_interrupt_r(offs_t offset);
- void ddragon_interrupt_w(offs_t offset, uint8_t data);
- void ddragon2_sub_irq_ack_w(uint8_t data);
- void ddragon2_sub_irq_w(uint8_t data);
- void sub_port6_w(uint8_t data);
- uint8_t ddragon_comram_r(offs_t offset);
- void ddragon_comram_w(offs_t offset, uint8_t data);
- void dd_adpcm_w(offs_t offset, uint8_t data);
- uint8_t dd_adpcm_status_r();
- void ddragonba_port_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(dd_adpcm_int_1);
- DECLARE_WRITE_LINE_MEMBER(dd_adpcm_int_2);
-
- void dd2_map(address_map &map);
- void dd2_sound_map(address_map &map);
- void dd2_sub_map(address_map &map);
- void ddragon_map(address_map &map);
- void ddragonba_sub_map(address_map &map);
- void sound_map(address_map &map);
- void ddragon6809_sound_map(address_map &map);
- void sub_map(address_map &map);
- void sub_6309_map(address_map &map);
- void sub_6809_map(address_map &map);
-};
-
-
-class darktowr_state : public ddragon_state
-{
-public:
- darktowr_state(const machine_config &mconfig, device_type type, const char *tag)
- : ddragon_state(mconfig, type, tag)
- , m_mcu(*this, "mcu")
- , m_darktowr_bank(*this, "darktowr_bank")
- , m_rambase(*this, "rambase")
- , m_mcu_port_a_out(0xff)
- {
- }
-
- void darktowr(machine_config &config);
-
- void init_darktowr();
-
-private:
- uint8_t darktowr_mcu_bank_r(offs_t offset);
- void darktowr_mcu_bank_w(offs_t offset, uint8_t data);
- void darktowr_bankswitch_w(uint8_t data);
- void mcu_port_a_w(offs_t offset, uint8_t data);
-
- void darktowr_map(address_map &map);
- void darktowr_banked_map(address_map &map);
-
- required_device<m68705p_device> m_mcu;
- required_device<address_map_bank_device> m_darktowr_bank;
- required_shared_ptr<uint8_t> m_rambase;
-
- uint8_t m_mcu_port_a_out;
-};
-
-
-class toffy_state : public ddragon_state
-{
-public:
- toffy_state(const machine_config &mconfig, device_type type, const char *tag)
- : ddragon_state(mconfig, type, tag)
- {
- }
-
- void toffy(machine_config &config);
-
- void init_toffy();
-
-private:
- void toffy_bankswitch_w(uint8_t data);
-
- void toffy_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DDRAGON_H
diff --git a/src/mame/includes/ddragon3.h b/src/mame/includes/ddragon3.h
deleted file mode 100644
index 13355d261c7..00000000000
--- a/src/mame/includes/ddragon3.h
+++ /dev/null
@@ -1,159 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, David Haywood
-
-/*************************************************************************
-
- Double Dragon 3 & The Combatribes
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DDRAGON3_H
-#define MAME_INCLUDES_DDRAGON3_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/okim6295.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class ddragon3_state : public driver_device
-{
-public:
- ddragon3_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_bg_videoram(*this, "bg_videoram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_spriteram(*this, "spriteram"),
- m_oki(*this, "oki"),
- m_screen(*this, "screen")
- {
- vblank_level = 6;
- raster_level = 5;
- }
-
- void ctribe(machine_config &config);
- void ddragon3b(machine_config &config);
- void ddragon3(machine_config &config);
-
- TIMER_DEVICE_CALLBACK_MEMBER(ddragon3_scanline);
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* misc */
- uint8_t m_pri;
- int vblank_level;
- int raster_level;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- uint16_t m_vreg;
- uint16_t m_bg_scrollx;
- uint16_t m_bg_scrolly;
- uint16_t m_fg_scrollx;
- uint16_t m_fg_scrolly;
- uint16_t m_bg_tilebase;
-
- uint16_t m_bg0_dx;
- uint16_t m_bg1_dx[2];
- uint16_t m_sprite_xoff;
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_bg_videoram;
- required_shared_ptr<uint16_t> m_fg_videoram;
-// required_shared_ptr<uint16_t> m_spriteram;
- required_device<buffered_spriteram16_device> m_spriteram;
-
- /* devices */
- required_device<okim6295_device> m_oki;
- required_device<screen_device> m_screen;
-
- void ddragon3_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t ddragon3_scroll_r(offs_t offset);
- void ddragon3_bg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ddragon3_fg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void sound_map(address_map &map);
-
- virtual void video_start() override;
-
-private:
- void ddragon3_vreg_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void irq6_ack_w(uint16_t data);
- void irq5_ack_w(uint16_t data);
- void oki_bankswitch_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_ddragon3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ctribe(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void ctribe_map(address_map &map);
- void ctribe_sound_map(address_map &map);
- void dd3b_map(address_map &map);
- void ddragon3_map(address_map &map);
-};
-
-
-class wwfwfest_state : public ddragon3_state
-{
-public:
- wwfwfest_state(const machine_config &mconfig, device_type type, const char *tag) :
- ddragon3_state(mconfig, type, tag),
- m_fg0_videoram(*this, "fg0_videoram"),
- m_paletteram(*this, "palette"),
- m_dsw(*this, "DSW%u", 1U)
- {
- vblank_level = 3;
- raster_level = 2;
- }
-
- void wwfwfest(machine_config &config);
- void wwfwfstb(machine_config &config);
-
- template <int N> DECLARE_CUSTOM_INPUT_MEMBER(dsw_3f_r);
- template <int N> DECLARE_CUSTOM_INPUT_MEMBER(dsw_c0_r);
-
-private:
- /* wwfwfest has an extra layer */
- required_shared_ptr<uint16_t> m_fg0_videoram;
- required_shared_ptr<uint16_t> m_paletteram;
- required_ioport_array<2> m_dsw;
- tilemap_t *m_fg0_tilemap;
- void wwfwfest_fg0_videoram_w(offs_t offset, uint16_t data);
-
- //required_device<buffered_spriteram16_device> m_spriteram;
- void wwfwfest_priority_w(uint8_t data);
- void wwfwfest_irq_ack_w(offs_t offset, uint16_t data);
- void wwfwfest_flipscreen_w(uint16_t data);
- uint16_t wwfwfest_paletteram_r(offs_t offset);
- void wwfwfest_paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void wwfwfest_soundwrite(uint16_t data);
-
- TILE_GET_INFO_MEMBER(get_fg0_tile_info);
-
- virtual void video_start() override;
- DECLARE_VIDEO_START(wwfwfstb);
- uint32_t screen_update_wwfwfest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DDRAGON3_H
diff --git a/src/mame/includes/ddribble.h b/src/mame/includes/ddribble.h
deleted file mode 100644
index d40df1f9228..00000000000
--- a/src/mame/includes/ddribble.h
+++ /dev/null
@@ -1,96 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/***************************************************************************
-
- Double Dribble
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_DDRIBBLE_H
-#define MAME_INCLUDES_DDRIBBLE_H
-
-#pragma once
-
-#include "sound/flt_rc.h"
-#include "sound/vlm5030.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class ddribble_state : public driver_device
-{
-public:
- ddribble_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_fg_videoram(*this, "fg_videoram"),
- m_spriteram_1(*this, "spriteram_1"),
- m_sharedram(*this, "sharedram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_spriteram_2(*this, "spriteram_2"),
- m_snd_sharedram(*this, "snd_sharedram"),
- m_maincpu(*this, "maincpu"),
- m_cpu1(*this, "cpu1"),
- m_vlm(*this, "vlm"),
- m_filter1(*this, "filter1"),
- m_filter2(*this, "filter2"),
- m_filter3(*this, "filter3"),
- m_gfxdecode(*this, "gfxdecode")
- { }
-
- void ddribble(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_spriteram_1;
- required_shared_ptr<uint8_t> m_sharedram;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_spriteram_2;
- required_shared_ptr<uint8_t> m_snd_sharedram;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_vregs[2][5];
- int m_charbank[2];
-
- /* misc */
- int m_int_enable_0;
- int m_int_enable_1;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_cpu1;
- required_device<vlm5030_device> m_vlm;
- required_device<filter_rc_device> m_filter1;
- required_device<filter_rc_device> m_filter2;
- required_device<filter_rc_device> m_filter3;
- required_device<gfxdecode_device> m_gfxdecode;
-
- void ddribble_bankswitch_w(uint8_t data);
- uint8_t ddribble_sharedram_r(offs_t offset);
- void ddribble_sharedram_w(offs_t offset, uint8_t data);
- uint8_t ddribble_snd_sharedram_r(offs_t offset);
- void ddribble_snd_sharedram_w(offs_t offset, uint8_t data);
- void ddribble_coin_counter_w(uint8_t data);
- void K005885_0_w(offs_t offset, uint8_t data);
- void K005885_1_w(offs_t offset, uint8_t data);
- void ddribble_fg_videoram_w(offs_t offset, uint8_t data);
- void ddribble_bg_videoram_w(offs_t offset, uint8_t data);
- uint8_t ddribble_vlm5030_busy_r();
- void ddribble_vlm5030_ctrl_w(uint8_t data);
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void ddribble_palette(palette_device &palette) const;
- uint32_t screen_update_ddribble(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* source, int lenght, int gfxset, int flipscreen );
- void cpu0_map(address_map &map);
- void cpu1_map(address_map &map);
- void cpu2_map(address_map &map);
- void vlm_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DDRIBBLE_H
diff --git a/src/mame/includes/deadang.h b/src/mame/includes/deadang.h
deleted file mode 100644
index 22562f751e9..00000000000
--- a/src/mame/includes/deadang.h
+++ /dev/null
@@ -1,119 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, David Haywood
-#ifndef MAME_INCLUDES_DEADANG_H
-#define MAME_INCLUDES_DEADANG_H
-
-#pragma once
-
-#include "audio/seibu.h"
-#include "machine/timer.h"
-#include "sound/ym2151.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class deadang_state : public driver_device
-{
-public:
- deadang_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_scroll_ram(*this, "scroll_ram"),
- m_videoram(*this, "videoram"),
- m_video_data(*this, "video_data"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_seibu_sound(*this, "seibu_sound"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_audiocpu(*this, "audiocpu"),
- m_adpcm1(*this, "adpcm1"),
- m_adpcm2(*this, "adpcm2")
- { }
-
- void deadang(machine_config &config);
-
- void init_deadang();
- void init_ghunter();
-
- void foreground_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILEMAP_MAPPER_MEMBER(bg_scan);
- TILE_GET_INFO_MEMBER(get_pf1_tile_info);
- TILE_GET_INFO_MEMBER(get_pf3_tile_info);
- TILE_GET_INFO_MEMBER(get_pf2_tile_info);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
-
-protected:
- virtual void video_start() override;
-
- void main_map(address_map &map);
-
- required_shared_ptr<uint16_t> m_scroll_ram;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_video_data;
- required_shared_ptr<uint16_t> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<seibu_sound_device> m_seibu_sound;
-
- int m_tilebank;
- int m_oldtilebank;
-
- tilemap_t *m_pf3_layer;
- tilemap_t *m_pf2_layer;
- tilemap_t *m_pf1_layer;
- tilemap_t *m_text_layer;
-
- void text_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void sound_decrypted_opcodes_map(address_map &map);
- void sound_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<seibu_adpcm_device> m_adpcm1;
- optional_device<seibu_adpcm_device> m_adpcm2;
-
- uint16_t ghunter_trackball_low_r();
- uint16_t ghunter_trackball_high_r();
-
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(main_scanline);
- TIMER_DEVICE_CALLBACK_MEMBER(sub_scanline);
- void sub_map(address_map &map);
-};
-
-class popnrun_state : public deadang_state
-{
-public:
- popnrun_state(const machine_config &mconfig, device_type type, const char *tag) :
- deadang_state(mconfig, type, tag)
- { }
-
- void popnrun(machine_config &config);
-
- void init_popnrun();
-
-protected:
- virtual void video_start() override;
-
-private:
- TILE_GET_INFO_MEMBER(get_popnrun_text_tile_info);
- void popnrun_text_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void popnrun_main_map(address_map &map);
- void popnrun_sub_map(address_map &map);
- void popnrun_sound_map(address_map &map);
-
- uint32_t popnrun_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void popnrun_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-#endif // MAME_INCLUDES_DEADANG_H
diff --git a/src/mame/includes/dec0.h b/src/mame/includes/dec0.h
deleted file mode 100644
index a9b51c26750..00000000000
--- a/src/mame/includes/dec0.h
+++ /dev/null
@@ -1,222 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_DEC0_H
-#define MAME_INCLUDES_DEC0_H
-
-#pragma once
-
-#include "cpu/h6280/h6280.h"
-#include "cpu/mcs51/mcs51.h"
-#include "machine/74157.h"
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "video/bufsprite.h"
-#include "video/decbac06.h"
-#include "video/decmxc06.h"
-#include "emupal.h"
-#include "screen.h"
-
-class dec0_state : public driver_device
-{
-public:
- dec0_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_tilegen(*this, "tilegen%u", 1U),
- m_spritegen(*this, "spritegen"),
- m_spriteram(*this, "spriteram"),
- m_palette(*this, "palette"),
- m_paletteram(*this, "palette"),
- m_subcpu(*this, "sub"),
- m_mcu(*this, "mcu"),
- m_pfprotect(*this, "pfprotect"),
- m_sndprotect(*this, "sndprotect"),
- m_ram(*this, "ram"),
- m_robocop_shared_ram(*this, "robocop_shared"),
- m_hippodrm_shared_ram(*this, "hippodrm_shared")
- { }
-
- void dec0_base(machine_config &config);
- void dec0(machine_config &config);
- void dec1(machine_config &config);
- void midres(machine_config &config);
- void birdtry(machine_config &config);
- void baddudes(machine_config &config);
- void midresbj(machine_config &config);
- void slyspy(machine_config &config);
- void hbarrel(machine_config &config);
- void bandit(machine_config &config);
- void midresb(machine_config &config);
- void ffantasybl(machine_config &config);
- void drgninjab(machine_config &config);
- void robocop(machine_config &config);
- void robocopb(machine_config &config);
- void hippodrm(machine_config &config);
-
- void init_hippodrm();
- void init_hbarrel();
- void init_slyspy();
- void init_drgninja();
- void init_midresb();
- void init_ffantasybl();
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_device_array<deco_bac06_device, 3> m_tilegen;
- optional_device<deco_mxc06_device> m_spritegen;
- required_device<buffered_spriteram16_device> m_spriteram;
- required_device<palette_device> m_palette;
- required_shared_ptr<uint16_t> m_paletteram;
-
- uint16_t *m_buffered_spriteram;
- uint16_t m_pri;
-
- uint16_t dec0_controls_r(offs_t offset);
- uint16_t slyspy_controls_r(offs_t offset);
- void priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- DECLARE_VIDEO_START(dec0_nodma);
- DECLARE_VIDEO_START(slyspy);
-
- void robocop_colpri_cb(u32 &colour, u32 &pri_mask);
- void baddudes_tile_cb(tile_data &tileinfo, u32 &tile, u32 &colour, u32 &flags);
-
- void set_screen_raw_params_data_east(machine_config &config);
-
-private:
- enum class mcu_type {
- EMULATED,
- BADDUDES_SIM
- };
-
- optional_device<h6280_device> m_subcpu;
- optional_device<cpu_device> m_mcu;
- optional_device<address_map_bank_device> m_pfprotect;
- optional_device<address_map_bank_device> m_sndprotect;
- required_shared_ptr<uint16_t> m_ram;
- optional_shared_ptr<uint8_t> m_robocop_shared_ram;
- optional_shared_ptr<uint8_t> m_hippodrm_shared_ram;
-
- mcu_type m_game;
- uint16_t m_i8751_return;
- uint16_t m_i8751_command;
- int m_slyspy_state;
- int m_slyspy_sound_state;
- int m_hippodrm_msb;
- int m_hippodrm_lsb;
- uint8_t m_i8751_ports[4];
-
- void dec0_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void midres_sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t slyspy_protection_r(offs_t offset);
- void slyspy_state_w(uint16_t data);
- uint16_t slyspy_state_r();
- uint16_t midres_controls_r(offs_t offset);
- uint8_t hippodrm_prot_r(offs_t offset);
- void hippodrm_prot_w(offs_t offset, uint8_t data);
- uint8_t dec0_mcu_port0_r();
- void dec0_mcu_port0_w(uint8_t data);
- void dec0_mcu_port1_w(uint8_t data);
- void dec0_mcu_port2_w(uint8_t data);
- void dec0_mcu_port3_w(uint8_t data);
- uint16_t hippodrm_68000_share_r(offs_t offset);
- void hippodrm_68000_share_w(offs_t offset, uint16_t data);
- void sprite_mirror_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t robocop_68000_share_r(offs_t offset);
- void robocop_68000_share_w(offs_t offset, uint16_t data);
- uint16_t ffantasybl_242024_r();
-
- uint8_t slyspy_sound_state_r();
- uint8_t slyspy_sound_state_reset_r();
-
- virtual void machine_start() override;
- DECLARE_MACHINE_RESET(slyspy);
- DECLARE_VIDEO_START(dec0);
- DECLARE_VIDEO_START(baddudes);
-
- uint32_t screen_update_hbarrel(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_baddudes(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_birdtry(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_robocop(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_slyspy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void hbarrel_colpri_cb(u32 &colour, u32 &pri_mask);
- void bandit_colpri_cb(u32 &colour, u32 &pri_mask);
- void midres_colpri_cb(u32 &colour, u32 &pri_mask);
-
- void baddudes_i8751_write(int data);
- void dec0_i8751_write(int data);
- void dec0_i8751_reset();
- void h6280_decrypt(const char *cputag);
- void dec0_map(address_map &map);
- void ffantasybl_map(address_map &map);
- void dec0_tb_map(address_map &map);
- void dec0_s_map(address_map &map);
- void hippodrm_map(address_map &map);
- void hippodrm_sub_map(address_map &map);
- void midres_map(address_map &map);
- void midres_s_map(address_map &map);
- void midresb_map(address_map &map);
- void robocop_map(address_map &map);
- void robocop_sub_map(address_map &map);
- void slyspy_map(address_map &map);
- void slyspy_protection_map(address_map &map);
- void slyspy_s_map(address_map &map);
- void slyspy_sound_protection_map(address_map &map);
-};
-
-
-class dec0_automat_state : public dec0_state
-{
-public:
- dec0_automat_state(const machine_config &mconfig, device_type type, const char *tag) :
- dec0_state(mconfig, type, tag),
- m_msm(*this, "msm%u", 1U),
- m_adpcm_select(*this, "adpcm_select%u", 1U),
- m_soundbank(*this, "soundbank")
- {
- std::fill(std::begin(m_automat_scroll_regs), std::end(m_automat_scroll_regs), 0);
- }
-
- void secretab(machine_config &config);
- void automat(machine_config &config);
-
-private:
- required_device_array<msm5205_device, 2> m_msm;
- required_device_array<ls157_device, 2> m_adpcm_select;
- required_memory_bank m_soundbank;
-
- bool m_adpcm_toggle[2];
- uint16_t m_automat_scroll_regs[4];
-
- void automat_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t automat_palette_r(offs_t offset);
- void automat_palette_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void automat_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0)
- {
- COMBINE_DATA(&m_automat_scroll_regs[offset]);
- }
- void sound_bankswitch_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(msm1_vclk_cb);
- DECLARE_WRITE_LINE_MEMBER(msm2_vclk_cb);
-
- virtual void machine_start() override;
-
- uint32_t screen_update_automat(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_secretab(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void automat_map(address_map &map);
- void automat_s_map(address_map &map);
- void secretab_map(address_map &map);
- void secretab_s_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DEC0_H
diff --git a/src/mame/includes/dec8.h b/src/mame/includes/dec8.h
deleted file mode 100644
index 9a6a34a9185..00000000000
--- a/src/mame/includes/dec8.h
+++ /dev/null
@@ -1,260 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_DEC8_H
-#define MAME_INCLUDES_DEC8_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "sound/msm5205.h"
-#include "video/bufsprite.h"
-#include "video/decbac06.h"
-#include "video/deckarn.h"
-#include "video/decmxc06.h"
-#include "video/decrmc3.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class dec8_state : public driver_device
-{
-public:
- enum
- {
- TIMER_DEC8_I8751,
- TIMER_DEC8_M6502
- };
-
- dec8_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_audiocpu(*this, "audiocpu"),
- m_mcu(*this, "mcu"),
- m_spritegen_krn(*this, "spritegen_krn"),
- m_spriteram(*this, "spriteram") ,
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_mainbank(*this, "mainbank"),
- m_nmigate(*this, "nmigate"),
- m_tilegen(*this, "tilegen%u", 1),
- m_spritegen_mxc(*this, "spritegen_mxc"),
- m_videoram(*this, "videoram"),
- m_bg_data(*this, "bg_data"),
- m_coin_port(*this, "I8751")
- { }
-
- void shackled(machine_config &config);
- void meikyuh(machine_config &config);
- void lastmisn(machine_config &config);
- void cobracom(machine_config &config);
- void garyoret(machine_config &config);
- void srdarwin(machine_config &config);
- void ghostb(machine_config &config);
- void oscar(machine_config &config);
- void gondo(machine_config &config);
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t i8751_h_r();
- uint8_t i8751_l_r();
- void dec8_i8751_w(offs_t offset, uint8_t data);
-
- void dec8_mxc06_karn_buffer_spriteram_w(uint8_t data);
- void dec8_sound_w(uint8_t data);
- void main_irq_on_w(uint8_t data);
- void main_irq_off_w(uint8_t data);
- void main_firq_off_w(uint8_t data);
- void sub_irq_on_w(uint8_t data);
- void sub_irq_off_w(uint8_t data);
- void flip_screen_w(uint8_t data);
- void dec8_bg_data_w(offs_t offset, uint8_t data);
- uint8_t dec8_bg_data_r(offs_t offset);
- void dec8_videoram_w(offs_t offset, uint8_t data);
- void dec8_scroll2_w(offs_t offset, uint8_t data);
-
- uint8_t i8751_port0_r();
- void i8751_port0_w(uint8_t data);
- uint8_t i8751_port1_r();
- void i8751_port1_w(uint8_t data);
-
- DECLARE_VIDEO_START(lastmisn);
- uint32_t screen_update_lastmisn(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void set_screen_raw_params_data_east(machine_config &config);
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<i8751_device> m_mcu;
- optional_device<deco_karnovsprites_device> m_spritegen_krn;
- required_device<buffered_spriteram8_device> m_spriteram;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<deco_rmc3_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory regions */
- required_memory_bank m_mainbank;
-
- // MCU communication
- uint8_t m_i8751_p2;
- int m_i8751_port0;
- int m_i8751_port1;
- int m_i8751_return;
- int m_i8751_value;
-
-private:
- optional_device<input_merger_device> m_nmigate;
- optional_device_array<deco_bac06_device, 2> m_tilegen;
- optional_device<deco_mxc06_device> m_spritegen_mxc;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_bg_data;
-
- uint8_t * m_pf1_data;
- uint8_t * m_row;
- std::unique_ptr<uint16_t[]> m_buffered_spriteram16; // for the mxc06 sprite chip emulation (oscar, cobra)
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_pf1_tilemap;
- tilemap_t *m_fix_tilemap;
- //int m_scroll1[4];
- int m_scroll2[4];
- int m_bg_control[0x20];
- int m_pf1_control[0x20];
- int m_game_uses_priority;
-
- /* misc */
- bool m_secclr;
- bool m_nmi_enable;
- int m_coinage_id;
- int m_coin1;
- int m_coin2;
- int m_need1;
- int m_need2;
- int m_cred1;
- int m_cred2;
- int m_credits;
- int m_latch;
- bool m_coin_state;
- int m_snd;
-
- emu_timer *m_i8751_timer;
- emu_timer *m_m6502_timer;
-
- void i8751_reset_w(uint8_t data);
- uint8_t gondo_player_1_r(offs_t offset);
- uint8_t gondo_player_2_r(offs_t offset);
- void dec8_bank_w(uint8_t data);
- void ghostb_bank_w(uint8_t data);
- void sub_firq_off_w(uint8_t data);
- void gondo_mcu_to_main_w(uint8_t data);
- void shackled_mcu_to_main_w(uint8_t data);
- void srdarwin_mcu_to_main_w(uint8_t data);
- void srdarwin_videoram_w(offs_t offset, uint8_t data);
- void srdarwin_control_w(offs_t offset, uint8_t data);
- void lastmisn_control_w(uint8_t data);
- void shackled_control_w(uint8_t data);
- void lastmisn_scrollx_w(uint8_t data);
- void lastmisn_scrolly_w(uint8_t data);
- void gondo_scroll_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_cobracom_fix_tile_info);
- TILE_GET_INFO_MEMBER(get_ghostb_fix_tile_info);
- TILE_GET_INFO_MEMBER(get_oscar_fix_tile_info);
- TILEMAP_MAPPER_MEMBER(lastmisn_scan_rows);
- TILE_GET_INFO_MEMBER(get_lastmisn_tile_info);
- TILE_GET_INFO_MEMBER(get_lastmisn_fix_tile_info);
- TILE_GET_INFO_MEMBER(get_srdarwin_fix_tile_info);
- TILE_GET_INFO_MEMBER(get_srdarwin_tile_info);
- TILE_GET_INFO_MEMBER(get_gondo_fix_tile_info);
- TILE_GET_INFO_MEMBER(get_gondo_tile_info);
- DECLARE_VIDEO_START(shackled);
- DECLARE_VIDEO_START(gondo);
- DECLARE_VIDEO_START(garyoret);
- DECLARE_VIDEO_START(ghostb);
- DECLARE_VIDEO_START(oscar);
- DECLARE_VIDEO_START(srdarwin);
- DECLARE_VIDEO_START(cobracom);
- void allocate_buffered_spriteram16();
- uint32_t screen_update_shackled(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_gondo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_garyoret(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ghostb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_oscar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_srdarwin(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cobracom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_dec8);
- DECLARE_WRITE_LINE_MEMBER(oscar_coin_irq);
- void oscar_coin_clear_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(shackled_coin_irq);
- void srdarwin_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &primap);
- void gondo_colpri_cb(u32 &colour, u32 &pri_mask);
- void cobracom_colpri_cb(u32 &colour, u32 &pri_mask);
- void oscar_tile_cb(tile_data &tileinfo, u32 &tile, u32 &colour, u32 &flags);
-
- void cobra_map(address_map &map);
- void dec8_s_map(address_map &map);
- void garyoret_map(address_map &map);
- void gondo_map(address_map &map);
- void lastmisn_map(address_map &map);
- void lastmisn_sub_map(address_map &map);
- void meikyuh_map(address_map &map);
- void oscar_map(address_map &map);
- void oscar_s_map(address_map &map);
- void oscar_sub_map(address_map &map);
- void shackled_map(address_map &map);
- void shackled_sub_map(address_map &map);
- void srdarwin_map(address_map &map);
- void ym3526_s_map(address_map &map);
-
- /* ports */
- optional_ioport m_coin_port;
-};
-
-
-class csilver_state : public dec8_state
-{
-public:
- csilver_state(const machine_config &mconfig, device_type type, const char *tag) :
- dec8_state(mconfig, type, tag),
- m_msm(*this, "msm"),
- m_soundbank(*this, "soundbank")
- {
- }
-
- void csilver(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- void csilver_control_w(uint8_t data);
- void csilver_adpcm_data_w(uint8_t data);
- void csilver_sound_bank_w(uint8_t data);
- void csilver_mcu_to_main_w(uint8_t data);
- uint8_t csilver_adpcm_reset_r();
- DECLARE_WRITE_LINE_MEMBER(csilver_adpcm_int);
-
- void csilver_map(address_map &map);
- void csilver_s_map(address_map &map);
- void csilver_sub_map(address_map &map);
-
- required_device<msm5205_device> m_msm;
- required_memory_bank m_soundbank;
-
- int m_toggle;
- int m_msm5205next;
-};
-
-#endif // MAME_INCLUDES_DEC8_H
diff --git a/src/mame/includes/deco32.h b/src/mame/includes/deco32.h
deleted file mode 100644
index 1a1bbd34669..00000000000
--- a/src/mame/includes/deco32.h
+++ /dev/null
@@ -1,292 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#include "cpu/h6280/h6280.h"
-#include "audio/decobsmt.h"
-#include "video/bufsprite.h"
-#include "video/decospr.h"
-#include "video/deco16ic.h"
-#include "video/deco_ace.h"
-#include "machine/deco_irq.h"
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "sound/lc7535.h"
-#include "sound/okim6295.h"
-#include "sound/ym2151.h"
-#include "machine/deco146.h"
-#include "machine/deco104.h"
-#include "video/deco_zoomspr.h"
-#include "emupal.h"
-#include "screen.h"
-
-class deco32_state : public driver_device
-{
-public:
- deco32_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_audiocpu(*this, "audiocpu")
- , m_sprgen(*this, "spritegen%u", 1)
- , m_deco_tilegen(*this, "tilegen%u", 1)
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_deco_irq(*this, "irq")
- , m_decobsmt(*this, "decobsmt")
- , m_eeprom(*this, "eeprom")
- , m_ioprot(*this, "ioprot")
- , m_ym2151(*this, "ymsnd")
- , m_oki(*this, "oki%u", 1)
- , m_soundlatch(*this, "soundlatch")
- , m_maincpu(*this, "maincpu")
- , m_pf_rowscroll32(*this, "pf%u_rowscroll32", 1)
- , m_paletteram(*this, "paletteram")
- { }
-
- void sound_bankswitch_w(u8 data);
-
-protected:
- void h6280_sound_custom_latch_map(address_map &map);
- void h6280_sound_map(address_map &map);
- void z80_sound_io(address_map &map);
- void z80_sound_map(address_map &map);
-
- // common
- u16 ioprot_r(offs_t offset);
- void ioprot_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u8 eeprom_r();
- void eeprom_w(u8 data);
- void volume_w(u8 data);
- void vblank_ack_w(u32 data);
-
- template<int Chip> void pf_rowscroll_w(offs_t offset, u32 data, u32 mem_mask = ~0);
-
- // captaven, fghthist, nslasher and tattass
- template<int Chip> u32 spriteram_r(offs_t offset);
- template<int Chip> void spriteram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- template<int Chip> void buffer_spriteram_w(u32 data);
- void pri_w(u32 data);
-
- // all but captaven
- void buffered_palette_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void palette_dma_w(u32 data);
-
- optional_device<cpu_device> m_audiocpu;
- optional_device_array<decospr_device, 2> m_sprgen;
- required_device_array<deco16ic_device, 2> m_deco_tilegen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- optional_device<palette_device> m_palette;
- optional_device<deco_irq_device> m_deco_irq;
- optional_device<decobsmt_device> m_decobsmt;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<deco_146_base_device> m_ioprot;
- optional_device<ym2151_device> m_ym2151;
- optional_device_array<okim6295_device, 3> m_oki;
- optional_device<generic_latch_8_device> m_soundlatch;
- required_device<cpu_device> m_maincpu;
-
- void allocate_spriteram(int chip);
- void allocate_buffered_palette();
- void allocate_rowscroll(int size1, int size2, int size3, int size4);
-
- virtual void video_start() override;
-
- std::unique_ptr<u8[]> m_dirty_palette; // all but captaven
- int m_pri; // all but dragngun
- std::unique_ptr<u16[]> m_spriteram16[2]; // all but dragngun
- std::unique_ptr<u16[]> m_spriteram16_buffered[2]; // all but dragngun
- std::unique_ptr<u16[]> m_pf_rowscroll[4]; // common
-
-private:
- // we use the pointers below to store a 32-bit copy..
- required_shared_ptr_array<u32, 4> m_pf_rowscroll32;
- optional_shared_ptr<u32> m_paletteram;
-};
-
-class captaven_state : public deco32_state
-{
-public:
- captaven_state(const machine_config &mconfig, device_type type, const char *tag)
- : deco32_state(mconfig, type, tag)
- , m_io_dsw(*this, "DSW%u", 1U)
- { }
-
- void captaven(machine_config &config);
-
- void init_captaven();
-
-private:
- required_ioport_array<3> m_io_dsw;
- u32 _71_r();
- u8 captaven_soundcpu_status_r();
-
- virtual void video_start() override;
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void tile_callback(u32 &tile, u32 &colour, int layer, bool is_8x8);
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- DECOSPR_PRIORITY_CB_MEMBER(captaven_pri_callback);
-
- void captaven_map(address_map &map);
-};
-
-class fghthist_state : public deco32_state
-{
-public:
- fghthist_state(const machine_config &mconfig, device_type type, const char *tag)
- : deco32_state(mconfig, type, tag)
- , m_io_in(*this, "IN%u", 0U)
- { }
-
- void fghthist(machine_config &config);
- void fghthistu(machine_config &config);
- void fghthsta(machine_config &config);
-
- void init_fghthist();
-
-private:
- required_ioport_array<2> m_io_in;
-// void sound_w(u32 data);
- u32 unk_status_r();
-
- virtual void video_start() override;
-
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- DECOSPR_PRIORITY_CB_MEMBER(fghthist_pri_callback);
-
- void fghthist_map(address_map &map);
- void fghthsta_memmap(address_map &map);
-private:
-};
-
-// nslasher, tattass
-class nslasher_state : public deco32_state
-{
-public:
- nslasher_state(const machine_config &mconfig, device_type type, const char *tag)
- : deco32_state(mconfig, type, tag)
- , m_deco_ace(*this, "deco_ace")
- { }
-
- void nslasheru(machine_config &config);
- void tattass(machine_config &config);
- void nslasher(machine_config &config);
-
- void init_tattass();
- void init_nslasher();
-
-private:
- required_device<deco_ace_device> m_deco_ace;
-
- void tilemap_color_bank_w(u8 data);
- void sprite1_color_bank_w(u8 data);
- void sprite2_color_bank_w(u8 data);
- void tattass_control_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(tattass_sound_irq_w);
- u16 nslasher_debug_r();
-
- virtual void video_start() override;
-
- u32 screen_update_nslasher(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_tattass(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- u16 port_b_tattass();
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- u16 mix_callback(u16 p, u16 p2);
-
- void nslasher_map(address_map &map);
- void tattass_map(address_map &map);
-
- void mix_nslasher(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, gfx_element *gfx0, gfx_element *gfx1, int mixAlphaTilemap);
- void mix_tattass(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, gfx_element *gfx0, gfx_element *gfx1, int mixAlphaTilemap);
-
- std::unique_ptr<bitmap_ind16> m_tilemap_alpha_bitmap;
-
- int m_tattass_eprom_bit;
- int m_last_clock;
- u32 m_buffer;
- int m_buf_ptr;
- int m_pending_command;
- int m_read_bit_count;
- int m_byte_addr;
-};
-
-class dragngun_state : public deco32_state
-{
-public:
- dragngun_state(const machine_config &mconfig, device_type type, const char *tag)
- : deco32_state(mconfig, type, tag)
- , m_sprgenzoom(*this, "spritegen_zoom")
- , m_spriteram(*this, "spriteram")
- , m_sprite_layout_ram(*this, "lay%u", 0)
- , m_sprite_lookup_ram(*this, "look%u", 0)
- , m_vol_main(*this, "vol_main")
- , m_vol_gun(*this, "vol_gun")
- , m_io_inputs(*this, "INPUTS")
- , m_io_light_x(*this, "LIGHT%u_X", 0U)
- , m_io_light_y(*this, "LIGHT%u_Y", 0U)
- , m_gun_speaker_disabled(true)
- { }
-
- void dragngun(machine_config &config);
- void lockload(machine_config &config);
- void lockloadu(machine_config &config);
-
- void init_dragngun();
- void init_dragngunj();
- void init_lockload();
-
- DECLARE_INPUT_CHANGED_MEMBER(lockload_gun_trigger);
-
-private:
- required_device<deco_zoomspr_device> m_sprgenzoom;
- required_device<buffered_spriteram32_device> m_spriteram;
-
- required_shared_ptr_array<u32, 2> m_sprite_layout_ram;
- required_shared_ptr_array<u32, 2> m_sprite_lookup_ram;
- required_device<lc7535_device> m_vol_main;
- optional_device<lc7535_device> m_vol_gun;
-
- optional_ioport m_io_inputs;
- optional_ioport_array<2> m_io_light_x;
- optional_ioport_array<2> m_io_light_y;
-
- u32 m_sprite_ctrl;
- int m_lightgun_port;
- int m_oki2_bank; // lockload
- bitmap_rgb32 m_temp_render_bitmap;
-
- u32 lightgun_r();
- void lightgun_w(offs_t offset, u32 data = 0);
- void sprite_control_w(u32 data);
- void spriteram_dma_w(u32 data);
- void gun_irq_ack_w(u32 data);
- u32 unk_video_r();
- void eeprom_w(u8 data);
- u32 lockload_gun_mirror_r(offs_t offset);
-
- void volume_w(u32 data);
- void speaker_switch_w(u32 data);
- LC7535_VOLUME_CHANGED(volume_main_changed);
- LC7535_VOLUME_CHANGED(volume_gun_changed);
-
- void lockload_okibank_lo_w(u8 data);
- void lockload_okibank_hi_w(u8 data); // lockload
-
- virtual void video_start() override;
- void dragngun_init_common();
-
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- DECO16IC_BANK_CB_MEMBER(bank_1_callback);
- DECO16IC_BANK_CB_MEMBER(bank_2_callback);
-
- void dragngun_map(address_map &map);
- void lockload_map(address_map &map);
- void lockloadu_map(address_map &map);
- void lockload_sound_map(address_map &map);
- void lockloadu_sound_map(address_map &map);
- bool m_gun_speaker_disabled;
-};
diff --git a/src/mame/includes/deco_mlc.h b/src/mame/includes/deco_mlc.h
deleted file mode 100644
index c7d45063872..00000000000
--- a/src/mame/includes/deco_mlc.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-
-#include "machine/eepromser.h"
-#include "machine/deco146.h"
-#include "machine/timer.h"
-#include "sound/ymz280b.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-class deco_mlc_state : public driver_device
-{
-public:
- deco_mlc_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom"),
- m_ymz(*this, "ymz"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_deco146(*this, "ioprot"),
- m_raster_irq_timer(*this, "int_timer"),
- m_mainram(*this, "mainram"),
- m_irq_ram(*this, "irq_ram"),
- m_clip_ram(*this, "clip_ram"),
- m_vram(*this, "vram"),
- m_gfx2(*this,"gfx2")
- { }
-
- void init_mlc();
- void init_acchi();
- void init_avengrgs();
-
- void acchi(machine_config &config);
- void avengrgs(machine_config &config);
- void mlc(machine_config &config);
- void mlc_5bpp(machine_config &config);
- void mlc_6bpp(machine_config &config);
- void stadhr96(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<ymz280b_device> m_ymz;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<deco146_device> m_deco146;
- required_device<timer_device> m_raster_irq_timer;
-
- required_shared_ptr<u32> m_mainram;
- required_shared_ptr<u32> m_irq_ram;
- required_shared_ptr<u32> m_clip_ram;
- required_shared_ptr<u32> m_vram;
-
- required_region_ptr<u8> m_gfx2;
-
- int m_irqLevel;
- u32 m_vbl_i;
- u32 m_colour_mask;
- u32 m_shadow_mask;
- u32 m_shadow_shift;
-
- std::unique_ptr<u16[]> m_spriteram;
- std::unique_ptr<u16[]> m_spriteram_spare;
- std::unique_ptr<u16[]> m_buffered_spriteram;
-
- u32 mlc_440008_r();
- u32 mlc_44001c_r(offs_t offset);
- void mlc_44001c_w(u32 data);
-
- u32 mlc_200000_r();
- u32 mlc_200004_r();
- u32 mlc_200070_r();
- u32 mlc_20007c_r();
- u32 mlc_scanline_r();
- void irq_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- u32 avengrgs_speedup_r();
- void eeprom_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- u32 spriteram_r(offs_t offset, uint32_t mem_mask = ~0);
- void spriteram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- u16 sh96_protection_region_0_146_r(offs_t offset);
- void sh96_protection_region_0_146_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_mlc);
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt_gen);
- void draw_sprites( const rectangle &cliprect, int scanline, u32* dest, u8* pri);
- void drawgfxzoomline(u32* dest, u8* pri,const rectangle &clip,gfx_element *gfx,
- u32 code1,u32 code2, u32 color,int flipx,int sx,
- int transparent_color,int use8bpp,
- int scalex, int srcline, int shadowMode);
- void descramble_sound();
-
- void avengrgs_map(address_map &map);
- void decomlc_146_map(address_map &map);
- void decomlc_no146_map(address_map &map);
-};
diff --git a/src/mame/includes/decocass.h b/src/mame/includes/decocass.h
deleted file mode 100644
index 32ba9fc5bb5..00000000000
--- a/src/mame/includes/decocass.h
+++ /dev/null
@@ -1,450 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Juergen Buchmueller, David Haywood
-#ifndef MAME_INCLUDES_DECOCASS_H
-#define MAME_INCLUDES_DECOCASS_H
-
-#pragma once
-
-#ifdef MAME_DEBUG
-#define LOGLEVEL 5
-#else
-#define LOGLEVEL 0
-#endif
-#define LOG(n,x) do { if (LOGLEVEL >= n) logerror x; } while (0)
-
-#include "machine/decocass_tape.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "cpu/mcs48/mcs48.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#define T1PROM 1
-#define T1DIRECT 2
-#define T1LATCH 4
-#define T1LATCHINV 8
-
-class decocass_state : public driver_device
-{
-public:
- decocass_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_mcu(*this, "mcu")
- , m_dongle_r(*this)
- , m_dongle_w(*this)
- , m_audiocpu(*this, "audiocpu")
- , m_watchdog(*this, "watchdog")
- , m_cassette(*this, "cassette")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_soundlatch2(*this, "soundlatch2")
- , m_rambase(*this, "rambase")
- , m_charram(*this, "charram")
- , m_fgvideoram(*this, "fgvideoram")
- , m_colorram(*this, "colorram")
- , m_tileram(*this, "tileram")
- , m_objectram(*this, "objectram")
- , m_paletteram(*this, "paletteram")
- , m_bank1(*this, "bank1")
- {
- }
-
- void decocass(machine_config &config);
- void decocrom(machine_config &config);
-
- void init_decocass();
- void init_decocrom();
- void init_cdsteljn();
-
-protected:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<upi41_cpu_device> m_mcu;
-
- /* dongles-related */
- read8sm_delegate m_dongle_r; // TODO: why isn't this a virtual method?
- write8sm_delegate m_dongle_w; // TODO: why isn't this a virtual method?
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- int32_t m_firsttime;
- uint8_t m_latch1;
-
-private:
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<decocass_tape_device> m_cassette;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_rambase;
- required_shared_ptr<uint8_t> m_charram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_colorram;
- uint8_t * m_bgvideoram; /* shares bits D0-3 with tileram! */
- required_shared_ptr<uint8_t> m_tileram;
- required_shared_ptr<uint8_t> m_objectram;
- required_shared_ptr<uint8_t> m_paletteram;
- optional_memory_bank m_bank1;
-
- size_t m_bgvideoram_size;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap_l;
- tilemap_t *m_bg_tilemap_r;
- uint8_t m_empty_tile[16*16];
- int32_t m_watchdog_count;
- int32_t m_watchdog_flip;
- int32_t m_color_missiles;
- int32_t m_color_center_bot;
- int32_t m_mode_set;
- int32_t m_back_h_shift;
- int32_t m_back_vl_shift;
- int32_t m_back_vr_shift;
- int32_t m_part_h_shift;
- int32_t m_part_v_shift;
- int32_t m_center_h_shift_space;
- int32_t m_center_v_shift;
- rectangle m_bg_tilemap_l_clip;
- rectangle m_bg_tilemap_r_clip;
-
- /* sound-related */
- uint8_t m_sound_ack; /* sound latches, ACK status bits and NMI timer */
- uint8_t m_audio_nmi_enabled;
- uint8_t m_audio_nmi_state;
-
- /* misc */
- uint8_t m_decocass_reset;
- int32_t m_de0091_enable; /* DE-0091xx daughter board enable */
- uint8_t m_quadrature_decoder[4]; /* four inputs from the quadrature decoder (H1, V1, H2, V2) */
- int m_showmsg; // for debugging purposes
-
- /* i8041 */
- uint8_t m_i8041_p1;
- uint8_t m_i8041_p2;
- int m_i8041_p1_write_latch;
- int m_i8041_p1_read_latch;
- int m_i8041_p2_write_latch;
- int m_i8041_p2_read_latch;
-
- /* DS Telejan */
- uint8_t m_mux_data;
-
- TILEMAP_MAPPER_MEMBER(fgvideoram_scan_cols);
- TILEMAP_MAPPER_MEMBER(bgvideoram_scan_cols);
- TILE_GET_INFO_MEMBER(get_bg_l_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_r_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void video_start() override;
- void decocass_palette(palette_device &palette) const;
-
- uint32_t screen_update_decocass(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void decocass_coin_counter_w(uint8_t data);
- void decocass_sound_command_w(uint8_t data);
- uint8_t decocass_sound_command_main_r();
- uint8_t decocass_sound_data_r();
- uint8_t decocass_sound_ack_r();
- void decocass_sound_data_w(uint8_t data);
- uint8_t decocass_sound_command_r();
- void decocass_sound_nmi_enable_w(uint8_t data);
- uint8_t decocass_sound_nmi_enable_r();
- uint8_t decocass_sound_data_ack_reset_r();
- void decocass_sound_data_ack_reset_w(uint8_t data);
- void decocass_nmi_reset_w(uint8_t data);
- void decocass_quadrature_decoder_reset_w(uint8_t data);
- void decocass_adc_w(uint8_t data);
- uint8_t decocass_input_r(offs_t offset);
-
- void decocass_reset_w(offs_t offset, uint8_t data);
-
- uint8_t decocass_e5xx_r(offs_t offset);
- void decocass_e5xx_w(offs_t offset, uint8_t data);
- void decocass_de0091_w(offs_t offset, uint8_t data);
- void decocass_e900_w(uint8_t data);
-
-
- void i8041_p1_w(uint8_t data);
- uint8_t i8041_p1_r();
- void i8041_p2_w(uint8_t data);
- uint8_t i8041_p2_r();
-
- void decocass_machine_state_save_init();
-
- void decocass_paletteram_w(offs_t offset, uint8_t data);
- void decocass_charram_w(offs_t offset, uint8_t data);
- void decocass_fgvideoram_w(offs_t offset, uint8_t data);
- void decocass_colorram_w(offs_t offset, uint8_t data);
- void decocass_bgvideoram_w(offs_t offset, uint8_t data);
- void decocass_tileram_w(offs_t offset, uint8_t data);
- void decocass_objectram_w(offs_t offset, uint8_t data);
-
- void decocass_watchdog_count_w(uint8_t data);
- void decocass_watchdog_flip_w(uint8_t data);
- void decocass_color_missiles_w(uint8_t data);
- void decocass_mode_set_w(uint8_t data);
- void decocass_color_center_bot_w(uint8_t data);
- void decocass_back_h_shift_w(uint8_t data);
- void decocass_back_vl_shift_w(uint8_t data);
- void decocass_back_vr_shift_w(uint8_t data);
- void decocass_part_h_shift_w(uint8_t data);
- void decocass_part_v_shift_w(uint8_t data);
- void decocass_center_h_shift_space_w(uint8_t data);
- void decocass_center_v_shift_w(uint8_t data);
-
- void decocass_video_state_save_init();
-
- void mirrorvideoram_w(offs_t offset, uint8_t data);
- void mirrorcolorram_w(offs_t offset, uint8_t data);
- uint8_t mirrorvideoram_r(offs_t offset);
- uint8_t mirrorcolorram_r(offs_t offset);
- uint8_t cdsteljn_input_r(offs_t offset);
- void cdsteljn_mux_w(uint8_t data);
- TIMER_DEVICE_CALLBACK_MEMBER(decocass_audio_nmi_gen);
- void decocass_map(address_map &map);
- void decocrom_map(address_map &map);
- void decocass_sound_map(address_map &map);
-
- void draw_edge(bitmap_ind16 &bitmap, const rectangle &cliprect, int which, bool opaque);
- void draw_special_priority(bitmap_ind16 &bitmap, bitmap_ind8 &priority, const rectangle &cliprect);
- void draw_center(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void mark_bg_tile_dirty(offs_t offset);
- void draw_sprites(bitmap_ind16 &bitmap, bitmap_ind8 &priority, const rectangle &cliprect, int color,
- int sprite_y_adjust, int sprite_y_adjust_flip_screen,
- uint8_t *sprite_ram, int interleave);
-
- void draw_missiles(bitmap_ind16 &bitmap, bitmap_ind8 &priority, const rectangle &cliprect,
- int missile_y_adjust, int missile_y_adjust_flip_screen,
- uint8_t *missile_ram, int interleave);
-protected:
- void decocass_fno( offs_t offset, uint8_t data );
-};
-
-class decocass_type1_state : public decocass_state
-{
-public:
- decocass_type1_state(const machine_config &mconfig, device_type type, const char *tag)
- : decocass_state(mconfig, type, tag)
- {
- m_type1_map = nullptr;
- }
-
- void cprogolfj(machine_config &config);
- void cfboy0a1(machine_config &config);
- void cdsteljn(machine_config &config);
- void csuperas(machine_config &config);
- void clocknch(machine_config &config);
- void cterrani(machine_config &config);
- void chwy(machine_config &config);
- void ctisland3(machine_config &config);
- void cocean1a(machine_config &config);
- void cluckypo(machine_config &config);
- void cexplore(machine_config &config);
- void cmanhat(machine_config &config);
- void clocknchj(machine_config &config);
- void cprogolf(machine_config &config);
- void ctsttape(machine_config &config);
- void castfant(machine_config &config);
- void ctisland(machine_config &config);
-
-private:
- DECLARE_MACHINE_RESET(ctsttape);
- DECLARE_MACHINE_RESET(chwy);
- DECLARE_MACHINE_RESET(cdsteljn);
- DECLARE_MACHINE_RESET(cterrani);
- DECLARE_MACHINE_RESET(castfant);
- DECLARE_MACHINE_RESET(csuperas);
- DECLARE_MACHINE_RESET(cmanhat);
- DECLARE_MACHINE_RESET(clocknch);
- DECLARE_MACHINE_RESET(cprogolf);
- DECLARE_MACHINE_RESET(cprogolfj);
- DECLARE_MACHINE_RESET(cluckypo);
- DECLARE_MACHINE_RESET(ctisland);
- DECLARE_MACHINE_RESET(ctisland3);
- DECLARE_MACHINE_RESET(cexplore);
- DECLARE_MACHINE_RESET(cocean1a); /* 10 */
- DECLARE_MACHINE_RESET(cfboy0a1); /* 12 */
- DECLARE_MACHINE_RESET(clocknchj); /* 11 */
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t decocass_type1_r(offs_t offset);
-
- /* dongle type #1 */
- uint32_t m_type1_inmap;
- uint32_t m_type1_outmap;
- uint8_t* m_type1_map;
-};
-
-
-class decocass_type2_state : public decocass_state
-{
-public:
- decocass_type2_state(const machine_config &mconfig, device_type type, const char *tag)
- : decocass_state(mconfig, type, tag)
- {
- }
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t decocass_type2_r(offs_t offset);
- void decocass_type2_w(offs_t offset, uint8_t data);
-
- /* dongle type #2: status of the latches */
- int32_t m_type2_d2_latch; /* latched 8041-STATUS D2 value */
- int32_t m_type2_xx_latch; /* latched value (D7-4 == 0xc0) ? 1 : 0 */
- int32_t m_type2_promaddr; /* latched PROM address A0-A7 */
-};
-
-
-class decocass_type3_state : public decocass_state
-{
-public:
- decocass_type3_state(const machine_config &mconfig, device_type type, const char *tag)
- : decocass_state(mconfig, type, tag)
- {
- }
-
-
- void csdtenis(machine_config &config);
- void cburnrub(machine_config &config);
- void cppicf(machine_config &config);
- void cgraplop2(machine_config &config);
- void cfghtice(machine_config &config);
- void cpsoccer(machine_config &config);
- void cnightst(machine_config &config);
- void cprobowl(machine_config &config);
- void cskater(machine_config &config);
- void cbtime(machine_config &config);
- void cgraplop(machine_config &config);
- void clapapa(machine_config &config);
- void cfishing(machine_config &config);
- void czeroize(machine_config &config);
-
-private:
- DECLARE_MACHINE_RESET(cfishing);
- DECLARE_MACHINE_RESET(cbtime);
- DECLARE_MACHINE_RESET(cburnrub);
- DECLARE_MACHINE_RESET(cgraplop);
- DECLARE_MACHINE_RESET(cgraplop2);
- DECLARE_MACHINE_RESET(clapapa);
- DECLARE_MACHINE_RESET(cskater);
- DECLARE_MACHINE_RESET(cprobowl);
- DECLARE_MACHINE_RESET(cnightst);
- DECLARE_MACHINE_RESET(cpsoccer);
- DECLARE_MACHINE_RESET(csdtenis);
- DECLARE_MACHINE_RESET(czeroize);
- DECLARE_MACHINE_RESET(cppicf);
- DECLARE_MACHINE_RESET(cfghtice);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t decocass_type3_r(offs_t offset);
- void decocass_type3_w(offs_t offset, uint8_t data);
-
- /* dongle type #3: status and patches */
- int32_t m_type3_ctrs; /* 12 bit counter stage */
- int32_t m_type3_d0_latch; /* latched 8041-D0 value */
- int32_t m_type3_pal_19; /* latched 1 for PAL input pin-19 */
- int32_t m_type3_swap;
-};
-
-
-
-class decocass_type4_state : public decocass_state
-{
-public:
- decocass_type4_state(const machine_config &mconfig, device_type type, const char *tag)
- : decocass_state(mconfig, type, tag)
- {
- }
-
-private:
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t decocass_type4_r(offs_t offset);
- void decocass_type4_w(offs_t offset, uint8_t data);
-
- /* dongle type #4: status */
- int32_t m_type4_ctrs; /* latched PROM address (E5x0 LSB, E5x1 MSB) */
- int32_t m_type4_latch; /* latched enable PROM (1100xxxx written to E5x1) */
-};
-
-
-class decocass_type5_state : public decocass_state
-{
-public:
- decocass_type5_state(const machine_config &mconfig, device_type type, const char *tag)
- : decocass_state(mconfig, type, tag)
- {
- }
-
-private:
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t decocass_type5_r(offs_t offset);
- void decocass_type5_w(offs_t offset, uint8_t data);
-
- /* dongle type #5: status */
- int32_t m_type5_latch; /* latched enable PROM (1100xxxx written to E5x1) */
-};
-
-
-class decocass_nodong_state : public decocass_state
-{
-public:
- decocass_nodong_state(const machine_config &mconfig, device_type type, const char *tag)
- : decocass_state(mconfig, type, tag)
- {
- }
-
-private:
-
- //virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t decocass_nodong_r(offs_t offset);
-};
-
-
-class decocass_widel_state : public decocass_state
-{
-public:
- decocass_widel_state(const machine_config &mconfig, device_type type, const char *tag)
- : decocass_state(mconfig, type, tag)
- {
- }
-
-private:
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t decocass_widel_r(offs_t offset);
- void decocass_widel_w(offs_t offset, uint8_t data);
-
- /* dongle type widel: status */
- int32_t m_widel_ctrs; /* latched PROM address (E5x0 LSB, E5x1 MSB) */
- int32_t m_widel_latch; /* latched enable PROM (1100xxxx written to E5x1) */
-};
-
-#endif // MAME_INCLUDES_DECOCASS_H
diff --git a/src/mame/includes/deniam.h b/src/mame/includes/deniam.h
deleted file mode 100644
index b491d49133d..00000000000
--- a/src/mame/includes/deniam.h
+++ /dev/null
@@ -1,95 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-
-/*************************************************************************
-
- Deniam games
-
-*************************************************************************/
-
-#include "machine/gen_latch.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class deniam_state : public driver_device
-{
-public:
- deniam_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_textram(*this, "textram"),
- m_spriteram(*this, "spriteram"),
- m_spritegfx(*this, "spritegfx"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void deniam16c(machine_config &config);
- void deniam16b(machine_config &config);
-
- void init_karianx();
- void init_logicpro();
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_videoram;
- required_shared_ptr<u16> m_textram;
- required_shared_ptr<u16> m_spriteram;
-
- required_memory_region m_spritegfx;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_tx_tilemap;
- int m_display_enable;
- int m_bg_scrollx_offs;
- int m_bg_scrolly_offs;
- int m_fg_scrollx_offs;
- int m_fg_scrolly_offs;
- int m_bg_scrollx_reg;
- int m_bg_scrolly_reg;
- int m_bg_page_reg;
- int m_fg_scrollx_reg;
- int m_fg_scrolly_reg;
- int m_fg_page_reg;
- int m_bg_page[4];
- int m_fg_page[4];
- u16 m_coinctrl;
-
- /* devices */
- void irq_ack_w(u16 data);
- void videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void textram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 coinctrl_r();
- void coinctrl_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void deniam16b_oki_rom_bank_w(u8 data);
- void deniam16c_oki_rom_bank_w(u8 data);
- TILEMAP_MAPPER_MEMBER(scan_pages);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void deniam_common_init( );
- void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void set_bg_page( int page, int value );
- void set_fg_page( int page, int value );
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu; // system 16c does not have sound CPU
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
- void deniam16b_map(address_map &map);
- void deniam16c_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/dgn_beta.h b/src/mame/includes/dgn_beta.h
deleted file mode 100644
index 5ede56d130e..00000000000
--- a/src/mame/includes/dgn_beta.h
+++ /dev/null
@@ -1,233 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods
-/*****************************************************************************
- *
- * includes/dgn_beta.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_DGN_BETA_H
-#define MAME_INCLUDES_DGN_BETA_H
-
-#pragma once
-
-#include "video/mc6845.h"
-#include "imagedev/floppy.h"
-#include "machine/wd_fdc.h"
-#include "machine/6821pia.h"
-#include "machine/ram.h"
-#include "emupal.h"
-
-/* Tags */
-
-#define DMACPU_TAG "dmacpu"
-#define PIA_0_TAG "pia_0"
-#define PIA_1_TAG "pia_1"
-#define PIA_2_TAG "pia_2"
-#define FDC_TAG "wd2797"
-
-
-#define DGNBETA_CPU_SPEED_HZ 2000000 /* 2MHz */
-#define DGNBETA_FRAMES_PER_SECOND 50
-
-#define RamSize 256 /* 256K by default */
-#define RamPageSize 4096 /* ram pages are 4096 bytes */
-
-#define MaxTasks 16 /* Tasks 0..15 */
-#define MaxPage 16 /* 16 4K pages */
-#define NoPagingTask MaxTasks /* Task registers to use when paging disabled 16 */
-
-#define RAMPage 0 /* Page with RAM in at power on */
-#define VideoPage 6 /* Page where video ram mapped */
-#define IOPage MaxPage-1 /* Page for I/O */
-#define ROMPage MaxPage-2 /* Page for ROM */
-#define LastPage MaxPage-1
-
-#define RAMPageValue 0x00 /* page with RAM at power on */
-#define VideoPageValue 0x1F /* Default page for video ram */
-#define NoMemPageValue 0xC0 /* Page guaranteed not to have memory in */
-#define ROMPageValue 0xFE /* Page with boot ROM */
-#define IOPageValue 0xFF /* Page with I/O & Boot ROM */
-
-#define TextVidBasePage 0x18 /* Base page of text video ram */
-
-/***** Keyboard stuff *****/
-#define NoKeyrows 0x0a /* Number of rows in keyboard */
-
-/* From Dragon Beta OS9 keyboard driver */
-#define KAny 0x04 /* Any key pressed mask PB2 */
-#define KOutClk 0x08 /* Output shift register clock */
-#define KInClk 0x10 /* Input shift register clock */
-#define KOutDat KInClk /* Also used for data into output shifter */
-#define KInDat 0x20 /* Keyboard data in from keyboard (serial stream) */
-
-/***** Video Modes *****/
-
-enum BETA_VID_MODES
-{
- TEXT_40x25, /* Text mode 40x25 */
- TEXT_80x25, /* Text mode 80x25 */
- GRAPH_320x256x4, /* Graphics 320x256x4 */
- GRAPH_320x256x16, /* Graphics 320x256x16 */
- GRAPH_640x512x2 /* Graphics 640X512X2 */
-};
-
-#define iosize (0xfEFF-0xfc00)
-
-struct PageReg
-{
- int value; /* Value of the page register */
- uint8_t *memory; /* The memory it actually points to */
-};
-
-
-class dgn_beta_state : public driver_device
-{
-public:
- dgn_beta_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_mc6845(*this, "crtc"),
- m_maincpu(*this, "maincpu"),
- m_dmacpu(*this, DMACPU_TAG),
- m_ram(*this, RAM_TAG),
- m_pia_0(*this, PIA_0_TAG),
- m_pia_1(*this, PIA_1_TAG),
- m_pia_2(*this, PIA_2_TAG),
- m_fdc(*this, FDC_TAG),
- m_floppy0(*this, FDC_TAG ":0"),
- m_floppy1(*this, FDC_TAG ":1"),
- m_floppy2(*this, FDC_TAG ":2"),
- m_floppy3(*this, FDC_TAG ":3"),
- m_palette(*this, "palette"),
- m_system_rom(*this, "maincpu")
- { }
-
- void dgnbeta(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- static void floppy_formats(format_registration &fr);
-
- required_device<mc6845_device> m_mc6845;
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_dmacpu;
- required_device<ram_device> m_ram;
- required_device<pia6821_device> m_pia_0;
- required_device<pia6821_device> m_pia_1;
- required_device<pia6821_device> m_pia_2;
- required_device<wd2797_device> m_fdc;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<floppy_connector> m_floppy2;
- required_device<floppy_connector> m_floppy3;
- required_device<palette_device> m_palette;
-
- required_region_ptr<uint8_t> m_system_rom;
- int m_LogDatWrites;
- int m_Keyboard[NoKeyrows];
- int m_RowShifter;
- int m_Keyrow;
- int m_d_pia0_pb_last;
- int m_d_pia0_cb2_last;
- int m_KInDat_next;
- int m_KAny_next;
- int m_d_pia1_pa_last;
- int m_d_pia1_pb_last;
- int m_DMA_NMI_LAST;
- int m_wd2797_written;
- int m_TaskReg;
- int m_PIATaskReg;
- int m_EnableMapRegs;
- PageReg m_PageRegs[MaxTasks+1][MaxPage+1];
- int m_beta_6845_RA; // TODO: most of the variables from here on aren't used anywhere. Left-over or reminder of things to be implemented?
- int m_beta_scr_x;
- int m_beta_scr_y;
- int m_beta_HSync;
- int m_beta_VSync;
- int m_beta_DE;
- int m_LogRegWrites;
- int m_BoxColour;
- int m_BoxMinX;
- int m_BoxMinY;
- int m_BoxMaxX;
- int m_BoxMaxY;
- int m_HSyncMin;
- int m_VSyncMin;
- int m_DEPos;
- int m_NoScreen;
- bitmap_ind16 *m_bit;
- int m_MinAddr;
- int m_MaxAddr;
- int m_MinX;
- int m_MaxX;
- int m_MinY;
- int m_MaxY;
- int m_VidAddr;
- int m_ClkMax;
- int m_GCtrl;
- int m_FlashCount;
- int m_FlashBit;
- int m_s_DoubleY;
- int m_DoubleHL;
- int m_ColourRAM[4];
- int m_Field;
- int m_DrawInterlace;
- void dgn_beta_palette(palette_device &palette) const;
-
- uint8_t d_pia0_pa_r();
- void d_pia0_pa_w(uint8_t data);
- uint8_t d_pia0_pb_r();
- void d_pia0_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(d_pia0_cb2_w);
- DECLARE_WRITE_LINE_MEMBER(d_pia0_irq_a);
- DECLARE_WRITE_LINE_MEMBER(d_pia0_irq_b);
- uint8_t d_pia1_pa_r();
- void d_pia1_pa_w(uint8_t data);
- uint8_t d_pia1_pb_r();
- void d_pia1_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(d_pia1_irq_a);
- DECLARE_WRITE_LINE_MEMBER(d_pia1_irq_b);
- uint8_t d_pia2_pa_r();
- void d_pia2_pa_w(uint8_t data);
- uint8_t d_pia2_pb_r();
- void d_pia2_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(d_pia2_irq_a);
- DECLARE_WRITE_LINE_MEMBER(d_pia2_irq_b);
- DECLARE_WRITE_LINE_MEMBER(dgnbeta_fdc_intrq_w);
- DECLARE_WRITE_LINE_MEMBER(dgnbeta_fdc_drq_w);
- DECLARE_WRITE_LINE_MEMBER(dgnbeta_vsync_changed);
- /* 74HC670 4x4bit colour ram */
- void dgnbeta_colour_ram_w(offs_t offset, uint8_t data);
- // Page IO at FE00
- uint8_t dgn_beta_page_r(offs_t offset);
- void dgn_beta_page_w(offs_t offset, uint8_t data);
- MC6845_UPDATE_ROW(crtc_update_row);
-
- /* WD2797 FDC */
- uint8_t dgnbeta_wd2797_r(offs_t offset);
- void dgnbeta_wd2797_w(offs_t offset, uint8_t data);
-
- void dgnbeta_vid_set_gctrl(int data);
- void UpdateBanks(int first, int last);
- void SetDefaultTask();
- void dgn_beta_bank_memory(int offset, int data, int bank);
- int SelectedKeyrow(dgn_beta_state *state, int Rows);
- int GetKeyRow(dgn_beta_state *state, int RowNo);
- void cpu0_recalc_irq(int state);
- void cpu0_recalc_firq(int state);
- void cpu1_recalc_firq(int state);
- void ScanInKeyboard(void);
- void dgn_beta_frame_interrupt (int data);
-
- offs_t dgnbeta_dasm_override(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const util::disasm_interface::data_buffer &params);
-
- void dgnbeta_map(address_map &map);
-
- void execute_beta_key_dump(int ref, const std::vector<std::string> &params);
- void execute_beta_dat_log(int ref, const std::vector<std::string> &params);
-};
-
-#endif // MAME_INCLUDES_DGN_BETA_H
diff --git a/src/mame/includes/dgnalpha.h b/src/mame/includes/dgnalpha.h
deleted file mode 100644
index c0b3cbaf785..00000000000
--- a/src/mame/includes/dgnalpha.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods
-/***************************************************************************
-
- dgnalpha.h
-
- Dragon Alpha
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_DGNALPHA_H
-#define MAME_INCLUDES_DGNALPHA_H
-
-#pragma once
-
-
-#include "includes/dragon.h"
-#include "imagedev/floppy.h"
-#include "sound/ay8910.h"
-#include "machine/wd_fdc.h"
-
-
-
-//**************************************************************************
-// MACROS / CONSTANTS
-//**************************************************************************
-
-/* devices */
-#define PIA2_TAG "pia2"
-#define AY8912_TAG "ay8912"
-#define WD2797_TAG "wd2797"
-
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-class dragon_alpha_state : public dragon64_state
-{
-public:
- dragon_alpha_state(const machine_config &mconfig, device_type type, const char *tag)
- : dragon64_state(mconfig, type, tag),
- m_pia_2(*this, PIA2_TAG),
- m_ay8912(*this, AY8912_TAG),
- m_fdc(*this, WD2797_TAG),
- m_floppy(*this, WD2797_TAG ":%u", 0U),
- m_nmis(*this, "nmis")
- {
- }
-
- void dgnalpha(machine_config &config);
-
-private:
- static void dragon_formats(format_registration &fr);
-
- /* pia2 */
- void pia2_pa_w(uint8_t data);
-
- /* psg */
- uint8_t psg_porta_read();
- void psg_porta_write(uint8_t data);
-
- /* fdc */
- DECLARE_WRITE_LINE_MEMBER( fdc_intrq_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
-
- /* driver overrides */
- virtual void device_start(void) override;
- virtual void device_reset(void) override;
-
- void dgnalpha_io1(address_map &map);
-
- required_device<pia6821_device> m_pia_2;
- required_device<ay8912_device> m_ay8912;
- required_device<wd2797_device> m_fdc;
- required_device_array<floppy_connector, 4> m_floppy;
- required_device<input_merger_device> m_nmis;
-
- /* modem */
- uint8_t modem_r(offs_t offset);
- void modem_w(offs_t offset, uint8_t data);
-};
-
-#endif // MAME_INCLUDES_DGNALPHA_H
diff --git a/src/mame/includes/dietgo.h b/src/mame/includes/dietgo.h
deleted file mode 100644
index 7a6196eb70f..00000000000
--- a/src/mame/includes/dietgo.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, David Haywood
-/*************************************************************************
-
- Diet Go Go
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DIETGO_H
-#define MAME_INCLUDES_DIETGO_H
-
-#pragma once
-
-#include "cpu/h6280/h6280.h"
-#include "video/decospr.h"
-#include "video/deco16ic.h"
-#include "machine/deco104.h"
-
-class dietgo_state : public driver_device
-{
-public:
- dietgo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_deco104(*this, "ioprot104")
- , m_pf_rowscroll(*this, "pf%u_rowscroll", 1)
- , m_spriteram(*this, "spriteram")
- , m_sprgen(*this, "spritegen")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_deco_tilegen(*this, "tilegen")
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void dietgo(machine_config &config);
-
- void init_dietgo();
-
-private:
- optional_device<deco104_device> m_deco104;
- /* memory pointers */
- required_shared_ptr_array<uint16_t, 2> m_pf_rowscroll;
- required_shared_ptr<uint16_t> m_spriteram;
- optional_device<decospr_device> m_sprgen;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device<deco16ic_device> m_deco_tilegen;
- required_shared_ptr<uint16_t> m_decrypted_opcodes;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECO16IC_BANK_CB_MEMBER(bank_callback);
-
- uint16_t dietgo_protection_region_0_104_r(offs_t offset);
- void dietgo_protection_region_0_104_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void decrypted_opcodes_map(address_map &map);
- void dietgo_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DIETGO_H
diff --git a/src/mame/includes/digdug.h b/src/mame/includes/digdug.h
deleted file mode 100644
index 11b061a204f..00000000000
--- a/src/mame/includes/digdug.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_DIGDUG_H
-#define MAME_INCLUDES_DIGDUG_H
-
-#pragma once
-
-#include "machine/er2055.h"
-#include "tilemap.h"
-
-class digdug_state : public galaga_state
-{
-public:
- digdug_state(const machine_config &mconfig, device_type type, const char *tag) :
- galaga_state(mconfig, type, tag),
- m_earom(*this, "earom"),
- m_digdug_objram(*this, "digdug_objram"),
- m_digdug_posram(*this, "digdug_posram"),
- m_digdug_flpram(*this, "digdug_flpram")
- { }
-
- void dzigzag(machine_config &config);
- void digdug(machine_config &config);
-
-private:
- required_device<er2055_device> m_earom;
- required_shared_ptr<uint8_t> m_digdug_objram;
- required_shared_ptr<uint8_t> m_digdug_posram;
- required_shared_ptr<uint8_t> m_digdug_flpram;
-
- uint8_t m_bg_select;
- uint8_t m_tx_color_mode;
- uint8_t m_bg_disable;
- uint8_t m_bg_color_bank;
-
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- TILE_GET_INFO_MEMBER(tx_get_tile_info);
- DECLARE_VIDEO_START(digdug);
- void digdug_palette(palette_device &palette) const;
- uint32_t screen_update_digdug(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void digdug_videoram_w(offs_t offset, uint8_t data);
- void bg_select_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(tx_color_mode_w);
- DECLARE_WRITE_LINE_MEMBER(bg_disable_w);
-
- uint8_t earom_read();
- void earom_write(offs_t offset, uint8_t data);
- void earom_control_w(uint8_t data);
- virtual void machine_start() override;
-
- void digdug_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DIGDUG_H
diff --git a/src/mame/includes/divebomb.h b/src/mame/includes/divebomb.h
deleted file mode 100644
index 01beecc17c8..00000000000
--- a/src/mame/includes/divebomb.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Phil Bennett
-/*************************************************************************
-
- Kyuukoukabakugekitai - Dive Bomber Squad
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DIVEBOMB_H
-#define MAME_INCLUDES_DIVEBOMB_H
-
-#pragma once
-
-
-#include "cpu/z80/z80.h"
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "sound/sn76496.h"
-#include "video/k051316.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#define XTAL1 XTAL(24'000'000)
-
-class divebomb_state : public driver_device
-{
-public:
- divebomb_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_spritecpu(*this, "spritecpu")
- , m_fgcpu(*this, "fgcpu")
- , m_rozcpu(*this, "rozcpu")
- , m_rozbank(*this, "rozbank")
- , m_fgram(*this, "fgram")
- , m_spriteram(*this, "spriteram")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_k051316(*this, "k051316_%u", 1)
- , m_fgcpu_irq(*this, "fgcpu_irq")
- , m_spr2fg_latch(*this, "spr2fg")
- , m_roz2fg_latch(*this, "roz2fg")
- {
- }
-
- void divebomb(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_spritecpu;
- required_device<cpu_device> m_fgcpu;
- required_device<cpu_device> m_rozcpu;
- required_memory_bank m_rozbank;
- required_shared_ptr<uint8_t> m_fgram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device_array<k051316_device, 2> m_k051316;
- required_device<input_merger_any_high_device> m_fgcpu_irq;
- required_device<generic_latch_8_device> m_spr2fg_latch;
- required_device<generic_latch_8_device> m_roz2fg_latch;
-
- tilemap_t *m_fg_tilemap;
-
- uint8_t m_roz_pal;
- bool m_roz_enable[2];
-
- void divebomb_palette(palette_device &palette) const;
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- static void decode_proms(palette_device &palette, const uint8_t* rgn, int size, int index, bool inv);
- uint32_t screen_update_divebomb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- K051316_CB_MEMBER(zoom_callback_1);
- K051316_CB_MEMBER(zoom_callback_2);
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- uint8_t fgcpu_comm_flags_r();
- void fgram_w(offs_t offset, uint8_t data);
-
- void spritecpu_port00_w(uint8_t data);
-
- void rozcpu_bank_w(uint8_t data);
- template<int Chip> void rozcpu_wrap_enable_w(uint8_t data);
- template<int Chip> void rozcpu_enable_w(uint8_t data);
- void rozcpu_pal_w(uint8_t data);
- void divebomb_fgcpu_iomap(address_map &map);
- void divebomb_fgcpu_map(address_map &map);
- void divebomb_rozcpu_iomap(address_map &map);
- void divebomb_rozcpu_map(address_map &map);
- void divebomb_spritecpu_iomap(address_map &map);
- void divebomb_spritecpu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DIVEBOMB_H
diff --git a/src/mame/includes/djboy.h b/src/mame/includes/djboy.h
deleted file mode 100644
index 448e6de113e..00000000000
--- a/src/mame/includes/djboy.h
+++ /dev/null
@@ -1,120 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-/*************************************************************************
-
- DJ Boy
-
-*************************************************************************/
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "video/kan_pand.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#define PROT_OUTPUT_BUFFER_SIZE 8
-
-class djboy_state : public driver_device
-{
-public:
- djboy_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_videoram(*this, "videoram")
- , m_paletteram(*this, "paletteram")
- , m_masterbank(*this, "master_bank")
- , m_slavebank(*this, "slave_bank")
- , m_soundbank(*this, "sound_bank")
- , m_masterbank_l(*this, "master_bank_l")
- , m_port_in(*this, "IN%u", 0)
- , m_port_dsw(*this, "DSW%u", 1)
- , m_mastercpu(*this, "mastercpu")
- , m_slavecpu(*this, "slavecpu")
- , m_soundcpu(*this, "soundcpu")
- , m_beast(*this, "beast")
- , m_pandora(*this, "pandora")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_slavelatch(*this, "slavelatch")
- , m_beastlatch(*this, "beastlatch")
- {
- }
-
- void djboy(machine_config &config);
-
- void init_djboy();
- void init_djboyj();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_paletteram;
-
- /* ROM banking */
- uint8_t m_bankxor;
-
- required_memory_bank m_masterbank;
- required_memory_bank m_slavebank;
- required_memory_bank m_soundbank;
- required_memory_bank m_masterbank_l;
-
- required_ioport_array<3> m_port_in;
- required_ioport_array<2> m_port_dsw;
-
- /* video-related */
- tilemap_t *m_background;
- uint8_t m_videoreg;
- uint8_t m_scrollx;
- uint8_t m_scrolly;
-
- /* Kaneko BEAST state */
- uint8_t m_beast_p0;
- uint8_t m_beast_p1;
- uint8_t m_beast_p2;
- uint8_t m_beast_p3;
-
- /* devices */
- required_device<cpu_device> m_mastercpu;
- required_device<cpu_device> m_slavecpu;
- required_device<cpu_device> m_soundcpu;
- required_device<i80c51_device> m_beast;
- required_device<kaneko_pandora_device> m_pandora;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_slavelatch;
- required_device<generic_latch_8_device> m_beastlatch;
-
- uint8_t beast_status_r();
- void trigger_nmi_on_mastercpu(uint8_t data);
- void mastercpu_bankswitch_w(uint8_t data);
- void slavecpu_bankswitch_w(uint8_t data);
- void coin_count_w(uint8_t data);
- void soundcpu_bankswitch_w(uint8_t data);
- uint8_t beast_p0_r();
- void beast_p0_w(uint8_t data);
- uint8_t beast_p1_r();
- void beast_p1_w(uint8_t data);
- uint8_t beast_p2_r();
- void beast_p2_w(uint8_t data);
- uint8_t beast_p3_r();
- void beast_p3_w(uint8_t data);
- void djboy_scrollx_w(uint8_t data);
- void djboy_scrolly_w(uint8_t data);
- void djboy_videoram_w(offs_t offset, uint8_t data);
- void djboy_paletteram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_djboy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_djboy);
- TIMER_DEVICE_CALLBACK_MEMBER(djboy_scanline);
- void mastercpu_am(address_map &map);
- void mastercpu_port_am(address_map &map);
- void slavecpu_am(address_map &map);
- void slavecpu_port_am(address_map &map);
- void soundcpu_am(address_map &map);
- void soundcpu_port_am(address_map &map);
-};
diff --git a/src/mame/includes/djmain.h b/src/mame/includes/djmain.h
deleted file mode 100644
index d16ff3c28ef..00000000000
--- a/src/mame/includes/djmain.h
+++ /dev/null
@@ -1,107 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:smf
-#ifndef MAME_INCLUDES_DJMAIN_H
-#define MAME_INCLUDES_DJMAIN_H
-
-#pragma once
-
-#include "bus/ata/ataintf.h"
-#include "video/konami_helper.h"
-#include "video/k054156_k054157_k056832.h"
-#include "video/k055555.h"
-#include "emupal.h"
-
-class djmain_state : public driver_device
-{
-public:
- djmain_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_obj_ram(*this, "obj_ram")
- , m_maincpu(*this, "maincpu")
- , m_k056832(*this, "k056832")
- , m_k055555(*this, "k055555")
- , m_ata(*this, "ata")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_turntable(*this, "TT%u", 1U)
- , m_sndram(*this, "sndram")
- , m_leds(*this, "led%u", 0U)
- {
- }
-
- void djmainj(machine_config &config);
- void djmainu(machine_config &config);
- void djmaina(machine_config &config);
-
- void init_bm7thmix();
- void init_bm6thmix();
- void init_hmcompmx();
- void init_bmfinal();
- void init_hmcompm2();
- void init_bm5thmix();
- void init_bm4thmix();
- void init_bs4thmix();
- void init_beatmania();
- void init_bmdct();
- void init_bmcompm2();
- void init_bmcorerm();
- void init_bmclubmx();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- void sndram_bank_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t sndram_r(offs_t offset, uint32_t mem_mask = ~0);
- void sndram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t obj_ctrl_r(offs_t offset);
- void obj_ctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t obj_rom_r(offs_t offset, uint32_t mem_mask = ~0);
- void v_ctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t v_rom_r(offs_t offset, uint32_t mem_mask = ~0);
- uint8_t inp1_r(offs_t offset);
- uint8_t inp2_r(offs_t offset);
- uint32_t turntable_r(offs_t offset, uint32_t mem_mask = ~0);
- void turntable_select_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void light_ctrl_1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void light_ctrl_2_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void unknown590000_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void unknown802000_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void unknownc02000_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t screen_update_djmain(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vb_interrupt);
- DECLARE_WRITE_LINE_MEMBER(ide_interrupt);
- void draw_sprites( bitmap_rgb32 &bitmap, const rectangle &cliprect);
- K056832_CB_MEMBER(tile_callback);
- void k054539_map(address_map &map);
- void maincpu_djmain(address_map &map);
- void maincpu_djmaina(address_map &map);
- void maincpu_djmainj(address_map &map);
- void maincpu_djmainu(address_map &map);
-
- required_shared_ptr<uint32_t> m_obj_ram;
- required_device<cpu_device> m_maincpu;
- required_device<k056832_device> m_k056832;
- required_device<k055555_device> m_k055555;
- required_device<ata_interface_device> m_ata;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_ioport_array<2> m_turntable;
- required_shared_ptr<uint8_t> m_sndram;
- output_finder<3> m_leds;
-
- int m_sndram_bank;
- int m_turntable_select;
- uint8_t m_turntable_last_pos[2];
- uint16_t m_turntable_pos[2];
- uint8_t m_pending_vb_int;
- uint16_t m_v_ctrl;
- uint32_t m_obj_regs[0xa0/4];
- const uint8_t *m_ata_user_password;
- const uint8_t *m_ata_master_password;
-};
-
-#endif // MAME_INCLUDES_DJMAIN_H
diff --git a/src/mame/includes/dkong.h b/src/mame/includes/dkong.h
deleted file mode 100644
index d1e22797f4d..00000000000
--- a/src/mame/includes/dkong.h
+++ /dev/null
@@ -1,362 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Couriersud
-/***************************************************************************
-
- Nintendo Donkey Kong hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_DKONG_H
-#define MAME_INCLUDES_DKONG_H
-
-#pragma once
-
-#include "cpu/m6502/n2a03.h"
-#include "cpu/mcs48/mcs48.h"
-#include "machine/eepromser.h"
-#include "machine/i8257.h"
-#include "machine/latch8.h"
-#include "machine/tms6100.h"
-#include "machine/watchdog.h"
-#include "machine/z80dma.h"
-#include "sound/discrete.h"
-#include "sound/tms5110.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-/*
- * From the schematics:
- *
- * XTAL is 61,44 MHZ. There is some oscillator logic around it. The oscillating circuit
- * transfers the signal with a transformator. Onwards, it is fed through a M(B/C)10136. This
- * is a programmable counter which is used as a divisor by 5.
- * Cascaded 74LS161 further divide the signal. The following signals are generated:
- * 1/2H: 61,44MHZ/5/2 - pixel clock
- * 1H : 61,44MHZ/5/4 - cpu-clock
- * 2H : 61,44MHZ/5/8
- * ....
- * 128H: 61,44MHZ/5/512
- * The horizontal circuit counts till 384=256+128, thus 256H only being high for 128H/2
- *
- * Signal 16H,32H,64H and 256H are combined using a LS00, LS04 and a D-Flipflop to produce
- * a signal with Freq 16H/12. This is only possible because a 220pf capacitor with the
- * impedance of the LS-Family of 10K delays the 16H signal by about half a cycle.
- * This signal is divided by two by another D-Flipflop(74LS74) to give:
- * 1VF: 61,44MHZ/5/64/12/2 = 8KHZ
- * 2VF: 1VF/2 - Noise frequency: 4Khz
- * ...
- * The vertical circuit counts from 248 till 512 giving 264 lines.
- * 256VF is not being used, so counting is from 248...255, 0...255, ....
- */
-
-#define MASTER_CLOCK XTAL(61'440'000)
-#define CLOCK_1H (MASTER_CLOCK / 5 / 4)
-#define CLOCK_16H (CLOCK_1H / 16)
-#define CLOCK_1VF ((CLOCK_16H) / 12 / 2)
-#define CLOCK_2VF ((CLOCK_1VF) / 2)
-
-#define PIXEL_CLOCK (MASTER_CLOCK/10)
-#define HTOTAL (384)
-#define HBSTART (256)
-#define HBEND (0)
-#define VTOTAL (264)
-#define VBSTART (240)
-#define VBEND (16)
-
-#define I8035_CLOCK (XTAL(6'000'000))
-
-/****************************************************************************
- * CONSTANTS
- ****************************************************************************/
-
-#define HARDWARE_TYPE_TAG "HARDWARE_TYPE"
-
-enum
-{
- HARDWARE_TKG04 = 0,
- HARDWARE_TRS01,
- HARDWARE_TRS02,
- HARDWARE_TKG02
-};
-
-enum
-{
- DKONG_RADARSCP_CONVERSION = 0,
- DKONG_BOARD = 1
-};
-
-enum
-{
- DK2650_HERBIEDK = 0,
- DK2650_HUNCHBKD,
- DK2650_EIGHTACT,
- DK2650_SHOOTGAL,
- DK2650_SPCLFORC
-};
-
-#define DK2B_PALETTE_LENGTH (256+256+8+1) /* (256) */
-#define DK4B_PALETTE_LENGTH (256+256+8+1) /* (256) */
-#define DK3_PALETTE_LENGTH (256+256+8+1) /* (256) */
-#define RS_PALETTE_LENGTH (256+256+8+1)
-
-class dkong_state : public driver_device
-{
-public:
- dkong_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_eeprom(*this, "eeprom")
- , m_dev_n2a03a(*this, "n2a03a")
- , m_dev_n2a03b(*this, "n2a03b")
- , m_dev_vp2(*this, "virtual_p2")
- , m_dev_6h(*this, "ls259.6h")
- , m_ls175_3d(*this, "ls175.3d")
- , m_discrete(*this, "discrete")
- , m_m58817(*this, "tms")
- , m_watchdog(*this, "watchdog")
- , m_video_ram(*this,"video_ram")
- , m_sprite_ram(*this,"sprite_ram")
- , m_snd_rom(*this, "soundcpu")
- , m_vidhw(DKONG_BOARD)
- , m_sig30Hz(0)
- , m_star_ff(0)
- , m_blue_level(0)
- , m_cv1(0)
- , m_cv2(0)
- , m_vg1(0)
- , m_vg2(0)
- , m_vg3(0)
- , m_cv3(0)
- , m_cv4(0)
- , m_vc17(0)
- , m_pixelcnt(0)
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_z80dma(*this, "z80dma")
- , m_dma8257(*this, "dma8257")
- , m_bank1(*this, "bank1")
- , m_bank2(*this, "bank2")
- {
- }
-
- void dkong_base(machine_config &config);
- void dk_braze(machine_config &config);
- void dkj_braze(machine_config &config);
- void ddk_braze(machine_config &config);
- void dk3_braze(machine_config &config);
- void strtheat(machine_config &config);
- void spclforc(machine_config &config);
- void s2650(machine_config &config);
- void dkongjr(machine_config &config);
- void radarscp1(machine_config &config);
- void drktnjr(machine_config &config);
- void dkong2b(machine_config &config);
- void drakton(machine_config &config);
- void radarscp(machine_config &config);
- void pestplce(machine_config &config);
- void herbiedk(machine_config &config);
- void dkong3(machine_config &config);
- void dkong3b(machine_config &config);
- void radarscp_audio(machine_config &config);
- void dkong2b_audio(machine_config &config);
- void dkongjr_audio(machine_config &config);
- void dkong3_audio(machine_config &config);
- void radarscp1_audio(machine_config &config);
-
- void init_strtheat();
- void init_herodk();
- void init_dkingjr();
- void init_drakton();
- void init_dkonghs();
- void init_dkongx();
- void init_dkong3hs();
-
- DECLARE_WRITE_LINE_MEMBER(dk_braze_a15);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<mcs48_cpu_device> m_soundcpu;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<n2a03_device> m_dev_n2a03a; /* dkong3 */
- optional_device<n2a03_device> m_dev_n2a03b; /* dkong3 */
- optional_device<latch8_device> m_dev_vp2; /* dkong2, virtual port 2 */
- optional_device<latch8_device> m_dev_6h; /* dkong2 */
- optional_device<latch8_device> m_ls175_3d; /* dkong2b_audio */
- optional_device<discrete_device> m_discrete;
- optional_device<m58817_device> m_m58817; /* radarscp1 */
- optional_device<watchdog_timer_device> m_watchdog;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_video_ram;
- required_shared_ptr<uint8_t> m_sprite_ram;
-
- /* machine states */
- uint8_t m_hardware_type;
- uint8_t m_nmi_mask;
-
- std::unique_ptr<uint8_t[]> m_decrypted;
-
- /* sound state */
- optional_region_ptr<uint8_t> m_snd_rom;
-
- /* video state */
- tilemap_t *m_bg_tilemap;
-
- bitmap_ind16 m_bg_bits;
- const uint8_t * m_color_codes;
- emu_timer * m_scanline_timer;
- int8_t m_vidhw; /* Selected video hardware RS Conversion / TKG04 */
-
- /* radar scope */
-
- uint8_t * m_gfx4;
- uint8_t * m_gfx3;
- int m_gfx3_len;
-
- uint8_t m_sig30Hz;
- uint8_t m_lfsr_5I;
- uint8_t m_grid_sig;
- uint8_t m_rflip_sig;
- uint8_t m_star_ff;
- uint8_t m_blue_level;
- double m_cd4049_a;
- double m_cd4049_b;
-
- /* Specific states */
- int8_t m_decrypt_counter;
-
- /* 2650 protection */
- uint8_t m_protect_type;
- uint8_t m_hunchloopback;
- uint8_t m_prot_cnt;
- uint8_t m_main_fo;
-
- /* Save state relevant */
- uint8_t m_gfx_bank;
- uint8_t m_palette_bank;
- uint8_t m_grid_on;
- uint16_t m_grid_col;
- uint8_t m_sprite_bank;
- uint8_t m_dma_latch;
- uint8_t m_flip;
-
- /* radarscp_step */
- double m_cv1;
- double m_cv2;
- double m_vg1;
- double m_vg2;
- double m_vg3;
- double m_cv3;
- double m_cv4;
- double m_vc17;
- int m_pixelcnt;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<z80dma_device> m_z80dma;
- optional_device<i8257_device> m_dma8257;
- memory_bank_creator m_bank1;
- memory_bank_creator m_bank2;
-
- /* radarscp_scanline */
- int m_counter;
-
- /* reverse address lookup map - hunchbkd */
- int16_t m_rev_map[0x200];
- uint8_t hb_dma_read_byte(offs_t offset);
- void hb_dma_write_byte(offs_t offset, uint8_t data);
- void dkong3_coin_counter_w(offs_t offset, uint8_t data);
- uint8_t dkong_in2_r(offs_t offset);
- uint8_t epos_decrypt_rom(offs_t offset);
- void s2650_data_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(s2650_fo_w);
- uint8_t s2650_port0_r();
- uint8_t s2650_port1_r();
- void dkong3_2a03_reset_w(uint8_t data);
- uint8_t strtheat_inputport_0_r();
- uint8_t strtheat_inputport_1_r();
- void nmi_mask_w(uint8_t data);
- void dk_braze_a15_w(uint8_t data);
- void dkong_videoram_w(offs_t offset, uint8_t data);
- void dkongjr_gfxbank_w(uint8_t data);
- void dkong3_gfxbank_w(uint8_t data);
- void dkong_palettebank_w(offs_t offset, uint8_t data);
- void radarscp_grid_enable_w(uint8_t data);
- void radarscp_grid_color_w(uint8_t data);
- void dkong_flipscreen_w(uint8_t data);
- void dkong_spritebank_w(uint8_t data);
- void dkong_voice_w(uint8_t data);
- void dkong_audio_irq_w(uint8_t data);
- uint8_t p8257_ctl_r();
- void p8257_ctl_w(uint8_t data);
- void p8257_drq_w(uint8_t data);
- void dkong_z80dma_rdy_w(uint8_t data);
- uint8_t braze_eeprom_r();
- void braze_eeprom_w(uint8_t data);
- TILE_GET_INFO_MEMBER(dkong_bg_tile_info);
- TILE_GET_INFO_MEMBER(radarscp1_bg_tile_info);
- DECLARE_MACHINE_START(dkong2b);
- DECLARE_MACHINE_RESET(dkong);
- DECLARE_MACHINE_RESET(ddk);
- DECLARE_VIDEO_START(dkong);
- DECLARE_VIDEO_START(dkong_base);
- void dkong2b_palette(palette_device &palette);
- DECLARE_MACHINE_START(dkong3);
- void dkong3_palette(palette_device &palette);
- DECLARE_MACHINE_START(radarscp);
- void radarscp_palette(palette_device &palette);
- DECLARE_MACHINE_START(radarscp1);
- void radarscp1_palette(palette_device &palette);
- DECLARE_MACHINE_START(s2650);
- DECLARE_MACHINE_RESET(strtheat);
- DECLARE_MACHINE_RESET(drakton);
- void m58817_command_w(uint8_t data);
- uint8_t dkong_voice_status_r();
- uint8_t dkong_tune_r(offs_t offset);
- void dkong_p1_w(uint8_t data);
- uint32_t screen_update_dkong(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_pestplce(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_spclforc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(s2650_interrupt);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- TIMER_CALLBACK_MEMBER(scanline_callback);
- DECLARE_WRITE_LINE_MEMBER(busreq_w);
-
- void braze_decrypt_rom(uint8_t *dest);
- void dk_braze_decrypt();
- void drakton_decrypt_rom(uint8_t mod, int offs, int *bs);
- uint8_t memory_read_byte(offs_t offset);
- void memory_write_byte(offs_t offset, uint8_t data);
- double CD4049(double x);
-
- void dkong3_io_map(address_map &map);
- void dkong3_map(address_map &map);
- void dkong3_sound1_map(address_map &map);
- void dkong3_sound2_map(address_map &map);
- void dkong_map(address_map &map);
- void dkong_sound_io_map(address_map &map);
- void dkong_sound_map(address_map &map);
- void dkongjr_map(address_map &map);
- void dkongjr_sound_io_map(address_map &map);
- void epos_readport(address_map &map);
- void radarscp1_sound_io_map(address_map &map);
- void s2650_data_map(address_map &map);
- void s2650_io_map(address_map &map);
- void s2650_map(address_map &map);
-
-private:
- // video/dkong.c
- void radarscp_step(int line_cnt);
- void radarscp_scanline(int scanline);
- void check_palette(void);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint32_t mask_bank, uint32_t shift_bits);
- void radarscp_draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-};
-
-#endif // MAME_INCLUDES_DKONG_H
diff --git a/src/mame/includes/dm7000.h b/src/mame/includes/dm7000.h
deleted file mode 100644
index 508513d365c..00000000000
--- a/src/mame/includes/dm7000.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Lukasz Markowski
-#ifndef MAME_INCLUDES_DM7000_H
-#define MAME_INCLUDES_DM7000_H
-
-#pragma once
-
-#include "cpu/powerpc/ppc.h"
-#include "machine/terminal.h"
-
-
-class dm7000_state : public driver_device
-{
-public:
- dm7000_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_terminal(*this, "terminal")
- {
- }
-
- void dm7000(machine_config &config);
-
-private:
- required_device<ppc4xx_device> m_maincpu;
- required_device<generic_terminal_device> m_terminal;
-
- void dm7000_iic0_w(offs_t offset, uint8_t data);
- uint8_t dm7000_iic0_r(offs_t offset);
- void dm7000_iic1_w(offs_t offset, uint8_t data);
- uint8_t dm7000_iic1_r(offs_t offset);
-
- void dm7000_scc0_w(offs_t offset, uint8_t data);
- uint8_t dm7000_scc0_r(offs_t offset);
- void kbd_put(u8 data);
- uint8_t m_scc0_lcr;
- uint8_t m_scc0_lsr;
- uint8_t m_term_data;
-
-
- void dm7000_gpio0_w(offs_t offset, uint8_t data);
- uint8_t dm7000_gpio0_r(offs_t offset);
-
- void dm7000_scp0_w(offs_t offset, uint8_t data);
- uint8_t dm7000_scp0_r(offs_t offset);
-
- void dm7000_enet_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t dm7000_enet_r(offs_t offset);
-
- uint32_t dcr_r(offs_t offset);
- void dcr_w(offs_t offset, uint32_t data);
-
-
- uint16_t m_enet_regs[32];
-
- uint32_t dcr[1024];
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_dm7000(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void dm7000_mem(address_map &map);
-};
-
-/* */
-#define UART_DLL 0
-#define UART_RBR 0
-#define UART_THR 0
-#define UART_DLH 1
-#define UART_IER 1
-#define UART_IIR 2
-#define UART_FCR 2
-#define UART_LCR 3
-#define UART_LCR_DLAB 0x80
-#define UART_MCR 4
-#define UART_LSR 5
-#define UART_LSR_TEMT 0x20
-#define UART_LSR_THRE 0x40
-#define UART_MSR 6
-#define UART_SCR 7
-
-/* */
-#define SCP_SPMODE 0
-#define SCP_RXDATA 1
-#define SCP_TXDATA 2
-#define SCP_SPCOM 3
-#define SCP_STATUS 4
-#define SCP_STATUS_RXRDY 1
-#define SCP_CDM 6
-
-/* STB045xxx DCRs */
-
-#define DCRSTB045_CICVCR 0x033 /* CIC Video Control Register */
-#define DCRSTB045_SCCR 0x120 /* Serial Clock Control Register */
-#define DCRSTB045_VIDEO_CNTL 0x140 /* Video Control Register */
-#define DCRSTB045_CMD_STAT 0x14a /* Command status */
-#define DCRSTB045_DISP_MODE 0x154 /* Display Mode Register */
-#define DCRSTB045_FRAME_BUFR_BASE 0x179 /* Frame Buffers Base Address Register */
-
-#endif // MAME_INCLUDES_DM7000_H
diff --git a/src/mame/includes/docastle.h b/src/mame/includes/docastle.h
deleted file mode 100644
index b58fe16c7a4..00000000000
--- a/src/mame/includes/docastle.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver
-/***************************************************************************
-
- Mr. Do's Castle hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_DOCASTLE_H
-#define MAME_INCLUDES_DOCASTLE_H
-
-#pragma once
-
-#include "machine/tms1024.h"
-#include "video/mc6845.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class docastle_state : public driver_device
-{
-public:
- docastle_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_slave(*this, "slave"),
- m_cpu3(*this, "cpu3"),
- m_crtc(*this, "crtc"),
- m_msm(*this, "msm"),
- m_inp(*this, "inp%u", 1),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void dorunrun(machine_config &config);
- void idsoccer(machine_config &config);
- void docastle(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_slave;
- required_device<cpu_device> m_cpu3;
- required_device<hd6845s_device> m_crtc;
- optional_device<msm5205_device> m_msm;
- required_device_array<tms1025_device, 2> m_inp;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* video-related */
- tilemap_t *m_do_tilemap;
-
- /* misc */
- int m_prev_ma6;
- int m_adpcm_pos;
- int m_adpcm_idle;
- int m_adpcm_data;
- int m_adpcm_status;
- uint8_t m_buffer0[9];
- uint8_t m_buffer1[9];
-
- uint8_t docastle_shared0_r(offs_t offset);
- uint8_t docastle_shared1_r(offs_t offset);
- void docastle_shared0_w(offs_t offset, uint8_t data);
- void docastle_shared1_w(offs_t offset, uint8_t data);
- void docastle_nmitrigger_w(uint8_t data);
- void docastle_videoram_w(offs_t offset, uint8_t data);
- void docastle_colorram_w(offs_t offset, uint8_t data);
- uint8_t inputs_flipscreen_r(offs_t offset);
- void flipscreen_w(offs_t offset, uint8_t data);
- uint8_t idsoccer_adpcm_status_r();
- void idsoccer_adpcm_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- void docastle_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(dorunrun);
- uint32_t screen_update_docastle(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void video_start_common( uint32_t tile_transmask );
- void draw_sprites( screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect );
- DECLARE_WRITE_LINE_MEMBER(docastle_tint);
- DECLARE_WRITE_LINE_MEMBER(idsoccer_adpcm_int);
- void docastle_io_map(address_map &map);
- void docastle_map(address_map &map);
- void docastle_map2(address_map &map);
- void docastle_map3(address_map &map);
- void dorunrun_map(address_map &map);
- void dorunrun_map2(address_map &map);
- void idsoccer_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DOCASTLE_H
diff --git a/src/mame/includes/dogfgt.h b/src/mame/includes/dogfgt.h
deleted file mode 100644
index 1b8cfb99265..00000000000
--- a/src/mame/includes/dogfgt.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_DOGFGT_H
-#define MAME_INCLUDES_DOGFGT_H
-
-#pragma once
-
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#define PIXMAP_COLOR_BASE (16 + 32)
-#define BITMAPRAM_SIZE 0x6000
-
-
-class dogfgt_state : public driver_device
-{
-public:
- dogfgt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bgvideoram(*this, "bgvideoram"),
- m_spriteram(*this, "spriteram"),
- m_sharedram(*this, "sharedram"),
- m_subcpu(*this, "sub") ,
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_ay(*this, "ay%u", 0U)
- { }
-
- void dogfgt(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_sharedram;
-
- /* devices */
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device_array<ay8910_device, 2> m_ay;
-
- /* video-related */
- bitmap_ind16 m_pixbitmap;
- tilemap_t *m_bg_tilemap;
- std::unique_ptr<uint8_t[]> m_bitmapram;
- int m_bm_plane;
- int m_pixcolor;
- int m_scroll[4];
- int m_lastflip;
- int m_lastpixcolor;
-
- /* sound-related */
- int m_soundlatch;
- int m_last_snd_ctrl;
-
- void subirqtrigger_w(uint8_t data);
- void sub_irqack_w(uint8_t data);
- void soundlatch_w(uint8_t data);
- void soundcontrol_w(uint8_t data);
- void plane_select_w(uint8_t data);
- uint8_t bitmapram_r(offs_t offset);
- void internal_bitmapram_w(offs_t offset, uint8_t data);
- void bitmapram_w(offs_t offset, uint8_t data);
- void bgvideoram_w(offs_t offset, uint8_t data);
- void scroll_w(offs_t offset, uint8_t data);
- void _1800_w(uint8_t data);
-
-
- TILE_GET_INFO_MEMBER(get_tile_info);
- void dogfgt_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- void main_map(address_map &map);
- void sub_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DOGFGT_H
diff --git a/src/mame/includes/dragon.h b/src/mame/includes/dragon.h
deleted file mode 100644
index 6ebacd1e658..00000000000
--- a/src/mame/includes/dragon.h
+++ /dev/null
@@ -1,145 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods
-/***************************************************************************
-
- dragon.h
-
- Dragon Family
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_DRAGON_H
-#define MAME_INCLUDES_DRAGON_H
-
-#pragma once
-
-
-#include "includes/coco12.h"
-#include "imagedev/printer.h"
-#include "machine/mos6551.h"
-#include "video/mc6845.h"
-#include "emupal.h"
-
-
-//**************************************************************************
-// MACROS / CONSTANTS
-//**************************************************************************
-
-#define PRINTER_TAG "printer"
-#define ACIA_TAG "acia"
-
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-class dragon_state : public coco12_state
-{
-public:
- dragon_state(const machine_config &mconfig, device_type type, const char *tag)
- : coco12_state(mconfig, type, tag)
- , m_printer(*this, PRINTER_TAG)
- {
- }
-
- void dragon_base(machine_config &config);
- void dragon32(machine_config &config);
- void dragon_mem(address_map &map);
-protected:
- virtual void pia1_pa_changed(uint8_t data) override;
-
-private:
- required_device<printer_image_device> m_printer;
-};
-
-
-// dragon64 has an ACIA chip
-class dragon64_state : public dragon_state
-{
-public:
- dragon64_state(const machine_config &mconfig, device_type type, const char *tag)
- : dragon_state(mconfig, type, tag)
- , m_acia(*this, ACIA_TAG)
- , m_rombank(*this, "rombank%u", 0U)
- {
- }
-
- void tanodr64(machine_config &config);
- void dragon64(machine_config &config);
- void tanodr64h(machine_config &config);
- void dragon64h(machine_config &config);
-
-protected:
- void d64_rom0(address_map &map);
- void d64_rom1(address_map &map);
- void d64_io0(address_map &map);
-
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void pia1_pb_changed(uint8_t data) override;
- void page_rom(bool romswitch);
-
-private:
- required_device<mos6551_device> m_acia;
- required_memory_bank_array<2> m_rombank;
-};
-
-
-// dragon200e has a character generator
-class dragon200e_state : public dragon64_state
-{
-public:
- dragon200e_state(const machine_config &mconfig, device_type type, const char *tag)
- : dragon64_state(mconfig, type, tag)
- , m_char_rom(*this, "chargen")
- , m_lk1(*this, "LK1")
- {
- }
-
- uint8_t sam_read(offs_t offset);
- MC6847_GET_CHARROM_MEMBER(char_rom_r);
-
- void dragon200e(machine_config &config);
-private:
- required_memory_region m_char_rom;
- required_ioport m_lk1;
-};
-
-
-// d64plus has a HD6845 and character generator
-class d64plus_state : public dragon64_state
-{
-public:
- d64plus_state(const machine_config &mconfig, device_type type, const char *tag)
- : dragon64_state(mconfig, type, tag)
- , m_crtc(*this, "crtc")
- , m_palette(*this, "palette")
- , m_plus_ram(*this, "plus_ram", 0x10000, ENDIANNESS_BIG)
- , m_video_ram(*this, "video_ram", 0x800, ENDIANNESS_BIG)
- , m_pram_bank(*this, "pram_bank")
- , m_vram_bank(*this, "vram_bank")
- , m_char_rom(*this, "chargen")
- {
- }
-
- uint8_t d64plus_6845_disp_r();
- void d64plus_bank_w(uint8_t data);
- MC6845_UPDATE_ROW(crtc_update_row);
-
- void d64plus(machine_config &config);
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
- required_device<hd6845s_device> m_crtc;
- required_device<palette_device> m_palette;
- memory_share_creator<uint8_t> m_plus_ram;
- memory_share_creator<uint8_t> m_video_ram;
- memory_bank_creator m_pram_bank;
- memory_bank_creator m_vram_bank;
- required_memory_region m_char_rom;
-};
-
-#endif // MAME_INCLUDES_DRAGON_H
diff --git a/src/mame/includes/dragrace.h b/src/mame/includes/dragrace.h
deleted file mode 100644
index f2440d851ed..00000000000
--- a/src/mame/includes/dragrace.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-/*************************************************************************
-
- Atari Drag Race hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DRAGRACE_H
-#define MAME_INCLUDES_DRAGRACE_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-#define DRAGRACE_SCREECH1_EN NODE_01
-#define DRAGRACE_SCREECH2_EN NODE_02
-#define DRAGRACE_LOTONE_EN NODE_03
-#define DRAGRACE_HITONE_EN NODE_04
-#define DRAGRACE_EXPLODE1_EN NODE_05
-#define DRAGRACE_EXPLODE2_EN NODE_06
-#define DRAGRACE_MOTOR1_DATA NODE_07
-#define DRAGRACE_MOTOR2_DATA NODE_08
-#define DRAGRACE_MOTOR1_EN NODE_80
-#define DRAGRACE_MOTOR2_EN NODE_81
-#define DRAGRACE_KLEXPL1_EN NODE_82
-#define DRAGRACE_KLEXPL2_EN NODE_83
-#define DRAGRACE_ATTRACT_EN NODE_09
-
-
-class dragrace_state : public driver_device
-{
-public:
- dragrace_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_playfield_ram(*this, "playfield_ram"),
- m_position_ram(*this, "position_ram"),
- m_discrete(*this, "discrete"),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen")
- {
- }
-
- void dragrace(machine_config &config);
-
-private:
- void speed1_w(uint8_t data);
- void speed2_w(uint8_t data);
- uint8_t dragrace_input_r(offs_t offset);
- uint8_t dragrace_steering_r();
- uint8_t dragrace_scanline_r();
- TILE_GET_INFO_MEMBER(get_tile_info);
- void dragrace_palette(palette_device &palette) const;
- uint32_t screen_update_dragrace(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(dragrace_frame_callback);
- void dragrace_update_misc_flags( address_space &space );
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void dragrace_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_playfield_ram;
- required_shared_ptr<uint8_t> m_position_ram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* misc */
- int m_gear[2];
-
- /* devices */
- required_device<discrete_sound_device> m_discrete;
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
-};
-
-/*----------- defined in audio/dragrace.c -----------*/
-DISCRETE_SOUND_EXTERN( dragrace_discrete );
-
-#endif // MAME_INCLUDES_DRAGRACE_H
diff --git a/src/mame/includes/drgnmst.h b/src/mame/includes/drgnmst.h
deleted file mode 100644
index 2cf2fc54dbf..00000000000
--- a/src/mame/includes/drgnmst.h
+++ /dev/null
@@ -1,147 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_DRGNMST_H
-#define MAME_INCLUDES_DRGNMST_H
-
-#pragma once
-
-#include "cpu/pic16c5x/pic16c5x.h"
-#include "sound/okim6295.h"
-#include "sound/ym2151.h"
-#include "emupal.h"
-#include "tilemap.h"
-#include "video/bufsprite.h"
-
-class drgnmst_base_state : public driver_device
-{
-public:
- drgnmst_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_alt_scrolling(false),
- m_vidregs(*this, "vidregs"),
- m_fg_videoram(*this, "fg_videoram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_md_videoram(*this, "md_videoram"),
- m_rowscrollram(*this, "rowscrollram"),
- m_vidregs2(*this, "vidregs2"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void drgnmst(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void drgnmst_main_map(address_map &map);
- required_device<cpu_device> m_maincpu;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_md_tilemap;
-
- bool m_alt_scrolling;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_vidregs;
- required_shared_ptr<uint16_t> m_fg_videoram;
- required_shared_ptr<uint16_t> m_bg_videoram;
- required_shared_ptr<uint16_t> m_md_videoram;
- required_shared_ptr<uint16_t> m_rowscrollram;
- required_shared_ptr<uint16_t> m_vidregs2;
- required_device<buffered_spriteram16_device> m_spriteram;
-
- /* devices */
- void coin_w(uint16_t data);
- void fg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void md_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_md_tile_info);
- TILEMAP_MAPPER_MEMBER(fg_tilemap_scan_cols);
- TILEMAP_MAPPER_MEMBER(md_tilemap_scan_cols);
- TILEMAP_MAPPER_MEMBER(bg_tilemap_scan_cols);
- static rgb_t drgnmst_IIIIRRRRGGGGBBBB(uint32_t raw);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
-};
-
-class drgnmst_pic_state : public drgnmst_base_state
-{
-public:
- drgnmst_pic_state(const machine_config& mconfig, device_type type, const char* tag) :
- drgnmst_base_state(mconfig, type, tag),
- m_audiocpu(*this, "audiocpu"),
- m_oki1bank(*this, "oki1bank"),
- m_oki(*this, "oki%u", 1U)
- { }
-
- void init_drgnmst();
-
- void drgnmst_with_pic(machine_config& config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- optional_device<pic16c55_device> m_audiocpu;
-
- uint8_t drgnmst_asciitohex(uint8_t data);
-
- required_memory_bank m_oki1bank;
- optional_device_array<okim6295_device, 2> m_oki;
-
- /* misc */
- uint8_t m_snd_command;
- uint16_t m_snd_flag;
- uint8_t m_oki_control;
- uint8_t m_oki_command;
- uint8_t m_pic16c5x_port0;
- uint8_t m_oki_bank[2];
-
- void snd_command_w(uint8_t data);
- void snd_flag_w(uint8_t data);
- uint8_t pic16c5x_port0_r();
- uint8_t snd_command_r();
- uint8_t snd_flag_r();
- void pcm_banksel_w(uint8_t data);
- void oki_w(uint8_t data);
- void snd_control_w(uint8_t data);
-
- void drgnmst_main_map_with_pic(address_map& map);
-
- void drgnmst_oki1_map(address_map &map);
-};
-
-class drgnmst_ym_state : public drgnmst_base_state
-{
-public:
- drgnmst_ym_state(const machine_config& mconfig, device_type type, const char* tag) :
- drgnmst_base_state(mconfig, type, tag),
- m_oki(*this, "oki")
- { }
-
- void drgnmst_ym(machine_config& config);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<okim6295_device> m_oki;
-
- void drgnmst_main_map_with_ym(address_map& map);
-};
-
-
-#endif // MAME_INCLUDES_DRGNMST_H
diff --git a/src/mame/includes/dribling.h b/src/mame/includes/dribling.h
deleted file mode 100644
index dd91eed7043..00000000000
--- a/src/mame/includes/dribling.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Model Racing Dribbling hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DRIBLING_H
-#define MAME_INCLUDES_DRIBLING_H
-
-#pragma once
-
-#include "machine/i8255.h"
-#include "machine/watchdog.h"
-#include "emupal.h"
-
-class dribling_state : public driver_device
-{
-public:
- dribling_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_ppi8255(*this, "ppi8255%d", 0),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_mux(*this, "MUX%u", 0),
- m_proms(*this, "proms"),
- m_gfxroms(*this, "gfx")
- { }
-
- void dribling(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device_array<i8255_device, 2> m_ppi8255;
- // memory pointers
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_ioport_array<3> m_mux;
- required_region_ptr<uint8_t> m_proms;
- required_region_ptr<uint8_t> m_gfxroms;
-
- // misc
- uint8_t m_abca;
- uint8_t m_dr;
- uint8_t m_ds;
- uint8_t m_sh;
- uint8_t m_input_mux;
- uint8_t m_di;
-
- uint8_t ioread(offs_t offset);
- void iowrite(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- uint8_t dsr_r();
- uint8_t input_mux0_r();
- void misc_w(uint8_t data);
- void sound_w(uint8_t data);
- void pb_w(uint8_t data);
- void shr_w(uint8_t data);
- void palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(irq_gen);
- void prg_map(address_map &map);
- void io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DRIBLING_H
diff --git a/src/mame/includes/drmicro.h b/src/mame/includes/drmicro.h
deleted file mode 100644
index c539caf45c8..00000000000
--- a/src/mame/includes/drmicro.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Uki
-/*************************************************************************
-
- Dr. Micro
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_DRMICRO_H
-#define MAME_INCLUDES_DRMICRO_H
-
-#pragma once
-
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class drmicro_state : public driver_device
-{
-public:
- drmicro_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_msm(*this, "msm"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void drmicro(machine_config &config);
-
-private:
- /* memory pointers */
- std::unique_ptr<uint8_t[]> m_videoram;
-
- /* video-related */
- tilemap_t *m_bg1;
- tilemap_t *m_bg2;
- int m_flipscreen;
-
- /* misc */
- int m_nmi_enable;
- int m_pcm_adr;
-
- /* devices */
- required_device<msm5205_device> m_msm;
- void nmi_enable_w(uint8_t data);
- void pcm_set_w(uint8_t data);
- void drmicro_videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void drmicro_palette(palette_device &palette) const;
- uint32_t screen_update_drmicro(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(drmicro_interrupt);
- DECLARE_WRITE_LINE_MEMBER(pcm_w);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void drmicro_map(address_map &map);
- void io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DRMICRO_H
diff --git a/src/mame/includes/dynax.h b/src/mame/includes/dynax.h
deleted file mode 100644
index d3c852d88e9..00000000000
--- a/src/mame/includes/dynax.h
+++ /dev/null
@@ -1,350 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia, Nicola Salmoria
-/***************************************************************************
-
- Dynax hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_DYNAX_H
-#define MAME_INCLUDES_DYNAX_H
-
-#pragma once
-
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "machine/rstbuf.h"
-#include "sound/msm5205.h"
-#include "sound/okim6295.h"
-#include "machine/74259.h"
-#include "video/dynax_blitter_rev2.h"
-#include "emupal.h"
-#include "screen.h"
-
-class dynax_state : public driver_device
-{
-public:
- dynax_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_oki(*this, "oki")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_mainlatch(*this, "mainlatch")
- , m_bankdev(*this, "bankdev")
- , m_blitter(*this, "blitter")
- , m_msm(*this, "msm")
- , m_mainirq(*this, "mainirq")
- , m_soundirq(*this, "soundirq")
- , m_soundlatch(*this, "soundlatch")
- , m_blitter2(*this, "blitter2")
- , m_blitter_gfx(*this, "blitter")
- , m_led(*this, "led0")
- {
- }
-
- void mjfriday(machine_config &config);
- void yarunara(machine_config &config);
- void janyuki(machine_config &config);
- void hnoridur(machine_config &config);
- void gekisha(machine_config &config);
- void majrjhdx(machine_config &config);
- void mcnpshnt(machine_config &config);
- void nanajign(machine_config &config);
- void cdracula(machine_config &config);
- void tenkai(machine_config &config);
- void hjingi(machine_config &config);
- void mjreach(machine_config &config);
- void neruton(machine_config &config);
- void mjdialq2(machine_config &config);
- void jantouki(machine_config &config);
- void quiztvqq(machine_config &config);
- void mjelctrn(machine_config &config);
- void mjembase(machine_config &config);
- void mjangels(machine_config &config);
- void hanamai(machine_config &config);
- void sprtmtch(machine_config &config);
-
- void init_mjelct3();
- void init_blktouch();
- void init_mjelct3a();
- void init_maya_common();
- void init_mayac();
- void init_maya();
-
- DECLARE_WRITE_LINE_MEMBER(blitter_ack_w);
- DECLARE_WRITE_LINE_MEMBER(sprtmtch_blitter_irq_w);
- DECLARE_WRITE_LINE_MEMBER(sprtmtch_vblank_w);
- DECLARE_WRITE_LINE_MEMBER(layer_half_w);
- DECLARE_WRITE_LINE_MEMBER(layer_half2_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
-
- void hnoridur_blit_pixel_w(offs_t offset, uint8_t data);
- void dynax_blit_scrollx_w(uint8_t data);
- void dynax_blit_scrolly_w(uint8_t data);
-
-protected:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_soundcpu;
- optional_device<okim6295_device> m_oki;
- optional_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<ls259_device> m_mainlatch;
- optional_device<address_map_bank_device> m_bankdev;
- optional_device<dynax_blitter_rev2_device> m_blitter;
-
- /* input / output */
- uint8_t m_input_sel;
- uint8_t m_dsw_sel;
- uint8_t m_keyb;
- uint8_t m_coins;
- uint8_t m_hopper;
-
- DECLARE_VIDEO_START(hnoridur);
-
- void dynax_vblank_ack_w(uint8_t data);
- void dynax_blit_dest_w(uint8_t data);
- void dynax_blit_romregion_w(uint8_t data);
- void dynax_extra_scrollx_w(uint8_t data);
- void dynax_extra_scrolly_w(uint8_t data);
-
- void hanamai_copylayer(bitmap_ind16 &bitmap, const rectangle &cliprect, int i );
-
- DECLARE_MACHINE_START(dynax);
- DECLARE_MACHINE_RESET(dynax);
-
- void htengoku_banked_map(address_map &map);
-
-private:
- void jantouki_vblank_ack_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(jantouki_blitter_ack_w);
- DECLARE_WRITE_LINE_MEMBER(jantouki_blitter_irq_w);
- DECLARE_WRITE_LINE_MEMBER(jantouki_blitter2_ack_w);
- DECLARE_WRITE_LINE_MEMBER(jantouki_blitter2_irq_w);
- void jantouki_sound_vblank_ack_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coincounter_0_w);
- DECLARE_WRITE_LINE_MEMBER(coincounter_1_w);
- uint8_t ret_ff();
- uint8_t hanamai_keyboard_0_r();
- uint8_t hanamai_keyboard_1_r();
- void hanamai_keyboard_w(uint8_t data);
- void dynax_rombank_w(uint8_t data);
- void jantouki_sound_rombank_w(uint8_t data);
- void cdracula_sound_rombank_w(uint8_t data);
- void hnoridur_rombank_w(uint8_t data);
- void hnoridur_palbank_w(uint8_t data);
- void hnoridur_palette_lo_w(offs_t offset, uint8_t data);
- void hnoridur_palette_hi_w(offs_t offset, uint8_t data);
- void hnoridur_palette_update(offs_t offset);
- void nanajign_palette_lo_w(offs_t offset, uint8_t data);
- void nanajign_palette_hi_w(offs_t offset, uint8_t data);
- void nanajign_palette_update(offs_t offset);
- void adpcm_data_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(hjingi_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(hjingi_hopper_w);
- uint8_t hjingi_hopper_bit();
- uint8_t hjingi_keyboard_0_r();
- uint8_t hjingi_keyboard_1_r();
- void yarunara_input_w(offs_t offset, uint8_t data);
- uint8_t yarunara_input_r(offs_t offset);
- void yarunara_rombank_w(uint8_t data);
- void yarunara_blit_romregion_w(uint8_t data);
- uint8_t jantouki_soundlatch_ack_r();
- void jantouki_soundlatch_w(uint8_t data);
- uint8_t jantouki_blitter_busy_r();
- void jantouki_rombank_w(uint8_t data);
- uint8_t jantouki_soundlatch_status_r();
- uint8_t mjelctrn_keyboard_1_r();
- uint8_t mjelctrn_dsw_r();
- void tenkai_ipsel_w(offs_t offset, uint8_t data);
- void tenkai_ip_w(uint8_t data);
- uint8_t tenkai_ip_r(offs_t offset);
- uint8_t tenkai_palette_r(offs_t offset);
- void tenkai_palette_w(offs_t offset, uint8_t data);
- uint8_t tenkai_p3_r();
- void tenkai_p3_w(uint8_t data);
- void tenkai_p4_w(uint8_t data);
- uint8_t tenkai_p5_r();
- void tenkai_p6_w(uint8_t data);
- void tenkai_p7_w(uint8_t data);
- void tenkai_p8_w(uint8_t data);
- uint8_t tenkai_p8_r();
- DECLARE_WRITE_LINE_MEMBER(tenkai_6c_w);
- DECLARE_WRITE_LINE_MEMBER(tenkai_70_w);
- void tenkai_blit_romregion_w(uint8_t data);
- uint8_t gekisha_keyboard_0_r();
- uint8_t gekisha_keyboard_1_r();
- void gekisha_hopper_w(offs_t offset, uint8_t data);
- void gekisha_p4_w(uint8_t data);
- //void dynax_blit_pen_w(uint8_t data);
- void dynax_blit2_dest_w(uint8_t data);
- void tenkai_blit_dest_w(uint8_t data);
- void mjembase_blit_dest_w(uint8_t data);
- void dynax_blit_backpen_w(uint8_t data);
- void dynax_blit_palette01_w(uint8_t data);
- void tenkai_blit_palette01_w(uint8_t data);
- void dynax_blit_palette45_w(uint8_t data);
- void dynax_blit_palette23_w(uint8_t data);
- void tenkai_blit_palette23_w(uint8_t data);
- void mjembase_blit_palette23_w(uint8_t data);
- void dynax_blit_palette67_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(blit_palbank_w);
- DECLARE_WRITE_LINE_MEMBER(blit2_palbank_w);
- DECLARE_WRITE_LINE_MEMBER(mjdialq2_blit_dest0_w);
- DECLARE_WRITE_LINE_MEMBER(mjdialq2_blit_dest1_w);
- void dynax_layer_enable_w(uint8_t data);
- void jantouki_layer_enable_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(mjdialq2_layer0_enable_w);
- DECLARE_WRITE_LINE_MEMBER(mjdialq2_layer1_enable_w);
- void dynax_blit2_romregion_w(uint8_t data);
- void hanamai_blit_pixel_w(offs_t offset, uint8_t data);
- void cdracula_blit_pixel_w(offs_t offset, uint8_t data);
- void drgpunch_blit_pixel_w(offs_t offset, uint8_t data);
- void jantouki_blit_pixel_w(offs_t offset, uint8_t data);
- void jantouki_blit2_pixel_w(offs_t offset, uint8_t data);
- void mjdialq2_blit_pixel_w(offs_t offset, uint8_t data);
- void dynax_blit2_scrollx_w(uint8_t data);
- void dynax_blit2_scrolly_w(uint8_t data);
- void tenkai_blit_scrollx_w(uint8_t data);
- void tenkai_blit_scrolly_w(uint8_t data);
- void hanamai_priority_w(uint8_t data);
- void tenkai_priority_w(uint8_t data);
- void mjembase_priority_w(uint8_t data);
-
- uint32_t screen_update_hanamai(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_hnoridur(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_sprtmtch(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mjdialq2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_jantouki_top(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_jantouki_bottom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cdracula(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(jantouki_vblank_w);
- DECLARE_WRITE_LINE_MEMBER(mjfriday_vblank_w);
-
- void tenkai_update_rombank();
-
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int_cpu1);
-
- DECLARE_MACHINE_RESET(adpcm);
- void adpcm_reset_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_reset_kludge_w);
- void tenkai_dswsel_w(uint8_t data);
- uint8_t tenkai_dsw_r();
- DECLARE_WRITE_LINE_MEMBER(tenkai_blitter_irq_w);
- DECLARE_WRITE_LINE_MEMBER(tenkai_blitter_ack_w);
- DECLARE_MACHINE_START(hanamai);
- DECLARE_MACHINE_START(hjingi);
- DECLARE_VIDEO_START(hanamai);
- void sprtmtch_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(sprtmtch);
- DECLARE_MACHINE_START(jantouki);
- DECLARE_VIDEO_START(jantouki);
- DECLARE_VIDEO_START(mjelctrn);
- DECLARE_VIDEO_START(mjembase);
- DECLARE_VIDEO_START(mjdialq2);
- DECLARE_VIDEO_START(mcnpshnt);
- void janyuki_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(neruton);
-
- //int blitter_drawgfx( int layer, int mask, memory_region *gfx, int src, int pen, int x, int y, int wrap, int flags );
- void jantouki_copylayer( bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int y );
- void mjdialq2_copylayer( bitmap_ind16 &bitmap, const rectangle &cliprect, int i );
- int debug_mask();
- int debug_viewer( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void dynax_common_reset();
- void tenkai_show_6c();
- void cdracula_io_map(address_map &map);
- void cdracula_mem_map(address_map &map);
- void gekisha_banked_map(address_map &map);
- void gekisha_map(address_map &map);
- void hanamai_io_map(address_map &map);
- void hjingi_banked_map(address_map &map);
- void hjingi_io_map(address_map &map);
- void hjingi_mem_map(address_map &map);
- void hnoridur_banked_map(address_map &map);
- void hnoridur_io_map(address_map &map);
- void hnoridur_mem_map(address_map &map);
- void jantouki_io_map(address_map &map);
- void jantouki_mem_map(address_map &map);
- void jantouki_sound_io_map(address_map &map);
- void jantouki_sound_mem_map(address_map &map);
- void mcnpshnt_io_map(address_map &map);
- void mcnpshnt_mem_map(address_map &map);
- void mjangels_banked_map(address_map &map);
- void mjdialq2_mem_map(address_map &map);
- void mjelctrn_banked_map(address_map &map);
- void mjelctrn_io_map(address_map &map);
- void mjembase_io_map(address_map &map);
- void mjfriday_io_map(address_map &map);
- void nanajign_banked_map(address_map &map);
- void nanajign_io_map(address_map &map);
- void nanajign_mem_map(address_map &map);
- void quiztvqq_mem_map(address_map &map);
- void sprtmtch_io_map(address_map &map);
- void sprtmtch_mem_map(address_map &map);
- void tenkai_banked_map(address_map &map);
- void tenkai_map(address_map &map);
- void yarunara_banked_map(address_map &map);
- void yarunara_io_map(address_map &map);
- void yarunara_mem_map(address_map &map);
-
- /* devices */
- optional_device<msm5205_device> m_msm;
- optional_device<rst_pos_buffer_device> m_mainirq;
- optional_device<rst_pos_buffer_device> m_soundirq;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<dynax_blitter_rev2_device> m_blitter2;
- optional_region_ptr<uint8_t> m_blitter_gfx;
- output_finder<> m_led;
-
- // up to 8 layers, 2 images per layer (interleaved on screen)
- std::unique_ptr<uint8_t[]> m_pixmap[8][2];
-
- /* irq */
- bool m_blitter_irq_mask;
- bool m_blitter2_irq_mask;
-
- /* blitters */
- int m_blit_scroll_x;
- int m_blit2_scroll_x;
- int m_blit_scroll_y;
- int m_blit2_scroll_y;
- int m_blit_dest;
- int m_blit2_dest;
- int m_blit_palbank;
- int m_blit2_palbank;
- int m_blit_palettes;
- int m_blit2_palettes;
- int m_layer_enable;
- int m_blit_backpen;
-
- int m_hanamai_layer_half;
- int m_hnoridur_layer_half2;
-
- int m_extra_scroll_x;
- int m_extra_scroll_y;
- int m_flipscreen;
-
- int m_layer_layout;
-
- const int *m_priority_table;
- int m_hanamai_priority;
-
- /* misc */
- uint8_t m_palette_ram[16*256*2];
- int m_palbank;
- int m_msm5205next;
- int m_resetkludge;
- int m_toggle;
- int m_toggle_cpu1;
- int m_rombank;
- uint8_t m_tenkai_p5_val;
- int m_tenkai_6c;
- int m_tenkai_70;
- uint8_t m_gekisha_val[2];
-
-};
-
-#endif // MAME_INCLUDES_DYNAX_H
diff --git a/src/mame/includes/dynduke.h b/src/mame/includes/dynduke.h
deleted file mode 100644
index 49f963c366a..00000000000
--- a/src/mame/includes/dynduke.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, David Haywood
-#ifndef MAME_INCLUDES_DYNDUKE_H
-#define MAME_INCLUDES_DYNDUKE_H
-
-#pragma once
-
-#include "audio/seibu.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class dynduke_state : public driver_device
-{
-public:
- dynduke_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_slave(*this, "slave"),
- m_seibu_sound(*this, "seibu_sound"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram") ,
- m_scroll_ram(*this, "scroll_ram"),
- m_videoram(*this, "videoram"),
- m_back_data(*this, "back_data"),
- m_fore_data(*this, "fore_data")
- { }
-
- void dynduke(machine_config &config);
- void dbldyn(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_slave;
- required_device<seibu_sound_device> m_seibu_sound;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram16_device> m_spriteram;
-
- required_shared_ptr<uint16_t> m_scroll_ram;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_back_data;
- required_shared_ptr<uint16_t> m_fore_data;
-
- tilemap_t *m_bg_layer;
- tilemap_t *m_fg_layer;
- tilemap_t *m_tx_layer;
- int m_back_bankbase;
- int m_fore_bankbase;
- int m_back_enable;
- int m_fore_enable;
- int m_sprite_enable;
- int m_txt_enable;
- int m_old_back;
- int m_old_fore;
-
- void background_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void foreground_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void text_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gfxbank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
-
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect,int pri);
- void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri );
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void master_map(address_map &map);
- void masterj_map(address_map &map);
- void sei80bu_encrypted_full_map(address_map &map);
- void slave_map(address_map &map);
- void sound_decrypted_opcodes_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_DYNDUKE_H
diff --git a/src/mame/includes/efdt.h b/src/mame/includes/efdt.h
deleted file mode 100644
index 083650c11c7..00000000000
--- a/src/mame/includes/efdt.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders: ElSemi, Roberto Fresca.
-#ifndef MAME_INCLUDES_EFDT_H
-#define MAME_INCLUDES_EFDT_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class efdt_state : public driver_device
-{
-public:
- efdt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_audiocpu(*this, "audiocpu"),
- m_vlatch(*this, "vlatch%u", 1U),
- m_videoram(*this, "videoram")
- { }
-
- void efdt(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<cpu_device> m_audiocpu;
- required_device_array<ls259_device, 2> m_vlatch;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- uint8_t m_soundlatch[4];
- uint8_t m_soundCommand;
- uint8_t m_soundControl;
-
-
- /* video-related */
- tilemap_t *m_tilemap[2];
- int m_tilebank;
-
- TILE_GET_INFO_MEMBER(get_tile_info_0);
- TILE_GET_INFO_MEMBER(get_tile_info_1);
-
- void efdt_palette(palette_device &palette) const;
-
- DECLARE_WRITE_LINE_MEMBER(vblank_nmi_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_clear_w);
-
- uint8_t main_soundlatch_r(offs_t offset);
- void main_soundlatch_w(offs_t offset, uint8_t data);
-
- uint8_t soundlatch_0_r();
- uint8_t soundlatch_1_r();
- uint8_t soundlatch_2_r();
- uint8_t soundlatch_3_r();
-
- void soundlatch_0_w(uint8_t data);
- void soundlatch_1_w(uint8_t data);
- void soundlatch_2_w(uint8_t data);
- void soundlatch_3_w(uint8_t data);
-
- uint32_t screen_update_efdt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void efdt_map(address_map &map);
- void efdt_snd_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_EFDT_H
diff --git a/src/mame/includes/electron.h b/src/mame/includes/electron.h
deleted file mode 100644
index 77752b9a38e..00000000000
--- a/src/mame/includes/electron.h
+++ /dev/null
@@ -1,198 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol, Nigel Barnes
-/*****************************************************************************
- *
- * includes/electron.h
- *
- * Acorn Electron
- *
- * Driver by Wilbert Pol
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_ELECTRON_H
-#define MAME_INCLUDES_ELECTRON_H
-
-#pragma once
-
-#include "machine/ram.h"
-#include "machine/6522via.h"
-#include "machine/input_merger.h"
-#include "imagedev/cassette.h"
-#include "sound/beep.h"
-#include "emupal.h"
-
-#include "bus/electron/exp.h"
-#include "bus/bbc/userport/userport.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-/* Interrupts */
-#define INT_HIGH_TONE 0x40
-#define INT_TRANSMIT_EMPTY 0x20
-#define INT_RECEIVE_FULL 0x10
-#define INT_RTC 0x08
-#define INT_DISPLAY_END 0x04
-#define INT_SET 0x100
-#define INT_CLEAR 0x200
-
-class electron_state : public driver_device
-{
-public:
- electron_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_irqs(*this, "irqs")
- , m_screen(*this, "screen")
- , m_cassette(*this, "cassette")
- , m_beeper(*this, "beeper")
- , m_region_mos(*this, "mos")
- , m_keybd(*this, "LINE.%u", 0)
- , m_exp(*this, "exp")
- , m_ram(*this, RAM_TAG)
- , m_mrb(*this, "MRB")
- , m_capslock_led(*this, "capslock_led")
- { }
-
- void electron(machine_config &config);
- void btm2105(machine_config &config);
-
- void electron64(machine_config &config);
-
- static void plus3_default(device_t* device);
-
- DECLARE_INPUT_CHANGED_MEMBER( trigger_reset );
-
-protected:
- enum
- {
- TIMER_TAPE_HANDLER,
- TIMER_SETUP_BEEP,
- TIMER_SCANLINE_INTERRUPT
- };
-
- emu_timer *m_tape_timer;
- int m_map4[256];
- int m_map16[256];
- emu_timer *m_scanline_timer;
- uint8_t electron64_fetch_r(offs_t offset);
- uint8_t electron_mem_r(offs_t offset);
- void electron_mem_w(offs_t offset, uint8_t data);
- virtual uint8_t electron_paged_r(offs_t offset);
- virtual void electron_paged_w(offs_t offset, uint8_t data);
- uint8_t electron_mos_r(offs_t offset);
- void electron_mos_w(offs_t offset, uint8_t data);
- virtual uint8_t electron_fred_r(offs_t offset);
- virtual void electron_fred_w(offs_t offset, uint8_t data);
- uint8_t electron_jim_r(offs_t offset);
- void electron_jim_w(offs_t offset, uint8_t data);
- uint8_t electron_sheila_r(offs_t offset);
- void electron_sheila_w(offs_t offset, uint8_t data);
-
- void electron_colours(palette_device &palette) const;
- uint32_t screen_update_electron(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(electron_tape_timer_handler);
- TIMER_CALLBACK_MEMBER(setup_beep);
- TIMER_CALLBACK_MEMBER(electron_scanline_interrupt);
-
- inline uint8_t read_vram( uint16_t addr );
- inline void electron_plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color);
- void electron_interrupt_handler(int mode, int interrupt);
-
- void electron_mem(address_map &map);
-
- void electron64_opcodes(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- required_device<cpu_device> m_maincpu;
- required_device<input_merger_device> m_irqs;
- required_device<screen_device> m_screen;
- required_device<cassette_image_device> m_cassette;
- required_device<beep_device> m_beeper;
- required_memory_region m_region_mos;
- required_ioport_array<14> m_keybd;
- required_device<electron_expansion_slot_device> m_exp;
- required_device<ram_device> m_ram;
- optional_ioport m_mrb;
- output_finder<> m_capslock_led;
-
- void waitforramsync();
- void electron_tape_start();
- void electron_tape_stop();
-
- /* ULA context */
- struct ULA
- {
- uint8_t interrupt_status;
- uint8_t interrupt_control;
- uint8_t rompage;
- uint16_t screen_start;
- uint16_t screen_base;
- uint16_t screen_size;
- uint16_t screen_addr;
- int screen_dispend;
- int current_pal[16];
- int communication_mode;
- int screen_mode;
- int cassette_motor_mode;
- int capslock_mode;
- /* tape reading related */
- uint32_t tape_value;
- int tape_steps;
- int bit_count;
- int high_tone_set;
- int start_bit;
- int stop_bit;
- int tape_running;
- uint8_t tape_byte;
- };
-
- ULA m_ula;
- bool m_mrb_mapped;
- bool m_vdu_drivers;
-};
-
-
-class electronsp_state : public electron_state
-{
-public:
- electronsp_state(const machine_config &mconfig, device_type type, const char *tag)
- : electron_state(mconfig, type, tag)
- , m_region_sp64(*this, "sp64")
- , m_via(*this, "via6522")
- , m_userport(*this, "userport")
- , m_romi(*this, "romi%u", 1)
- , m_rompages(*this, "ROMPAGES")
- { }
-
- void electronsp(machine_config &config);
-
-protected:
- virtual uint8_t electron_paged_r(offs_t offset) override;
- virtual void electron_paged_w(offs_t offset, uint8_t data) override;
- virtual uint8_t electron_fred_r(offs_t offset) override;
- virtual void electron_fred_w(offs_t offset, uint8_t data) override;
-
- virtual void machine_start() override;
-
-private:
- required_memory_region m_region_sp64;
- required_device<via6522_device> m_via;
- required_device<bbc_userport_slot_device> m_userport;
- required_device_array<generic_slot_device, 2> m_romi;
- required_ioport m_rompages;
-
- uint8_t m_sp64_bank;
- std::unique_ptr<uint8_t[]> m_sp64_ram;
-
- image_init_result load_rom(device_image_interface &image, generic_slot_device *slot);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(rom1_load) { return load_rom(image, m_romi[0]); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(rom2_load) { return load_rom(image, m_romi[1]); }
-};
-
-
-#endif // MAME_INCLUDES_ELECTRON_H
diff --git a/src/mame/includes/elf.h b/src/mame/includes/elf.h
deleted file mode 100644
index 0e2d02b4a20..00000000000
--- a/src/mame/includes/elf.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_ELF_H
-#define MAME_INCLUDES_ELF_H
-
-#pragma once
-
-
-#include "cpu/cosmac/cosmac.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "machine/mm74c922.h"
-#include "video/cdp1861.h"
-#include "video/dm9368.h"
-#include "machine/rescap.h"
-#include "machine/ram.h"
-
-#define SCREEN_TAG "screen"
-#define CDP1802_TAG "a6"
-#define CDP1861_TAG "a14"
-#define MM74C923_TAG "a10"
-#define DM9368_L_TAG "a12"
-#define DM9368_H_TAG "a8"
-
-class elf2_state : public driver_device
-{
-public:
- elf2_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, CDP1802_TAG)
- , m_vdc(*this, CDP1861_TAG)
- , m_kb(*this, MM74C923_TAG)
- , m_led_l(*this, DM9368_L_TAG)
- , m_led_h(*this, DM9368_H_TAG)
- , m_cassette(*this, "cassette")
- , m_ram(*this, RAM_TAG)
- , m_special(*this, "SPECIAL")
- , m_7segs(*this, "digit%u", 0U)
- , m_led(*this, "led0")
- { }
-
- void elf2(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER( input_w );
-
-private:
- uint8_t dispon_r();
- uint8_t data_r();
- void data_w(uint8_t data);
- void memory_w(offs_t offset, uint8_t data);
- DECLARE_READ_LINE_MEMBER( wait_r );
- DECLARE_READ_LINE_MEMBER( clear_r );
- DECLARE_READ_LINE_MEMBER( ef4_r );
- DECLARE_WRITE_LINE_MEMBER( q_w );
- uint8_t dma_r();
- void sc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( da_w );
- template <unsigned N> void digit_w(uint8_t data) { m_7segs[N] = data; }
-
- DECLARE_QUICKLOAD_LOAD_MEMBER( quickload_cb );
- void elf2_io(address_map &map);
- void elf2_mem(address_map &map);
-
- virtual void machine_start() override;
-
- required_device<cosmac_device> m_maincpu;
- required_device<cdp1861_device> m_vdc;
- required_device<mm74c922_device> m_kb;
- required_device<dm9368_device> m_led_l;
- required_device<dm9368_device> m_led_h;
- required_device<cassette_image_device> m_cassette;
- required_device<ram_device> m_ram;
- required_ioport m_special;
- output_finder<2> m_7segs;
- output_finder<> m_led;
-
- // display state
- uint8_t m_data;
-};
-
-#endif
diff --git a/src/mame/includes/eolith.h b/src/mame/includes/eolith.h
deleted file mode 100644
index 5a7a8cd8ad9..00000000000
--- a/src/mame/includes/eolith.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina,Pierpaolo Prazzoli
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/timer.h"
-#include "sound/qs1000.h"
-#include "emupal.h"
-#include "screen.h"
-
-class eolith_state : public driver_device
-{
-public:
- eolith_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_qs1000(*this, "qs1000")
- , m_eepromoutport(*this, "EEPROMOUT")
- , m_soundcpu(*this, "soundcpu")
- , m_in0(*this, "IN0")
- , m_penxport(*this, "PEN_X_P%u", 1)
- , m_penyport(*this, "PEN_Y_P%u", 1)
- , m_led(*this, "led0")
- , m_sndbank(*this, "sound_bank")
- {
- }
-
- void ironfort(machine_config &config);
- void eolith50(machine_config &config);
- void eolith45(machine_config &config);
- void hidctch3(machine_config &config);
-
- void init_eolith();
- void init_landbrk();
- void init_hidctch2();
- void init_hidnc2k();
- void init_landbrka();
- void init_landbrkb();
-
- DECLARE_READ_LINE_MEMBER(speedup_vblank_r);
- DECLARE_READ_LINE_MEMBER(stealsee_speedup_vblank_r);
-
- void speedup_read();
- void init_speedup();
-
-protected:
-
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<qs1000_device> m_qs1000;
- optional_ioport m_eepromoutport;
- TIMER_DEVICE_CALLBACK_MEMBER(eolith_speedup);
-
-private:
-
- uint32_t eolith_custom_r();
- void systemcontrol_w(uint32_t data);
- template<int Player> uint32_t hidctch3_pen_r();
- void eolith_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t eolith_vram_r(offs_t offset);
- void sound_p1_w(uint8_t data);
- uint8_t qs1000_p1_r();
- void qs1000_p1_w(uint8_t data);
- void soundcpu_to_qs1000(uint8_t data);
-
- DECLARE_MACHINE_RESET(eolith);
- DECLARE_VIDEO_START(eolith);
-
-
- uint32_t screen_update_eolith(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void eolith_map(address_map &map);
- void hidctch3_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_prg_map(address_map &map);
-
- virtual void machine_start() override;
- // shared with eolith16.cpp, vegaeo.cpp
-
- void patch_mcu_protection(uint32_t address);
-
- optional_device<i8032_device> m_soundcpu;
-
- optional_ioport m_in0; // klondkp doesn't have it
- optional_ioport_array<2> m_penxport;
- optional_ioport_array<2> m_penyport;
- output_finder<> m_led;
-
- optional_memory_bank m_sndbank;
-
- int m_coin_counter_bit;
- std::unique_ptr<uint16_t[]> m_vram;
- int m_buffer;
-
- // speedups - see machine/eolithsp.c
- int m_speedup_address;
- int m_speedup_address2;
- int m_speedup_resume_scanline;
- int m_speedup_vblank;
- int m_speedup_scanline;
-};
diff --git a/src/mame/includes/epos.h b/src/mame/includes/epos.h
deleted file mode 100644
index 21c76698d99..00000000000
--- a/src/mame/includes/epos.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/*************************************************************************
-
- Epos games
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_EPOS_H
-#define MAME_INCLUDES_EPOS_H
-
-#pragma once
-
-#include "emupal.h"
-
-class epos_state : public driver_device
-{
-public:
- epos_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_inputs(*this, { "INPUTS", "INPUTS2" }),
- m_maincpu(*this, "maincpu"),
- m_palette(*this, "palette"),
- m_leds(*this, "led%u", 0U)
- { }
-
- void epos(machine_config &config);
- void dealer(machine_config &config);
-
- void init_dealer();
-
-protected:
- virtual void machine_start() override { m_leds.resolve(); }
- virtual void machine_reset() override;
-
-private:
- void dealer_decrypt_rom(offs_t offset, uint8_t data);
- void port_1_w(uint8_t data);
- uint8_t i8255_porta_r();
- void i8255_portc_w(uint8_t data);
- uint8_t ay_porta_mpx_r();
- void flip_screen_w(uint8_t data);
- void dealer_pal_w(offs_t offset, uint8_t data);
- DECLARE_MACHINE_START(epos);
- DECLARE_MACHINE_START(dealer);
- void epos_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- static void set_pal_color(palette_device &palette, uint8_t offset, uint8_t data); // TODO: convert to an RGB converter and set_format
- void dealer_io_map(address_map &map);
- void dealer_map(address_map &map);
- void epos_io_map(address_map &map);
- void epos_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- optional_ioport_array<2> m_inputs;
-
- /* video-related */
- uint8_t m_palette_bank;
-
- /* misc */
- int m_counter;
- int m_input_multiplex;
- bool m_ay_porta_multiplex;
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- output_finder<2> m_leds;
-};
-
-#endif // MAME_INCLUDES_EPOS_H
diff --git a/src/mame/includes/eprom.h b/src/mame/includes/eprom.h
deleted file mode 100644
index bb28cf411f1..00000000000
--- a/src/mame/includes/eprom.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Escape hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_EPROM_H
-#define MAME_INCLUDES_EPROM_H
-
-#pragma once
-
-#include "machine/adc0808.h"
-#include "machine/timer.h"
-#include "audio/atarijsa.h"
-#include "video/atarimo.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class eprom_state : public driver_device
-{
-public:
- eprom_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_mob(*this, "mob"),
- m_jsa(*this, "jsa"),
- m_share1(*this, "share1"),
- m_adc(*this, "adc"),
- m_extra(*this, "extra"),
- m_palette(*this, "palette"),
- m_paletteram(*this, "paletteram")
- { }
-
- void guts(machine_config &config);
- void eprom(machine_config &config);
- void klaxp(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_motion_objects_device> m_mob;
- required_device<atari_jsa_base_device> m_jsa;
- required_shared_ptr<uint16_t> m_share1;
- uint8_t m_screen_intensity;
- uint8_t m_video_disable;
- optional_device<adc0808_device> m_adc;
- optional_device<cpu_device> m_extra;
- required_device<palette_device> m_palette;
- optional_shared_ptr<uint16_t> m_paletteram;
- static const atari_motion_objects_config s_mob_config;
- static const atari_motion_objects_config s_guts_mob_config;
-
- void video_int_ack_w(uint16_t data);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
- uint8_t adc_r(offs_t offset);
- void eprom_latch_w(uint8_t data);
- template<bool maincpu> void sync_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- TILE_GET_INFO_MEMBER(guts_get_playfield_tile_info);
- uint32_t screen_update_eprom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_guts(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void update_palette();
- void extra_map(address_map &map);
- void guts_map(address_map &map);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_EPROM_H
diff --git a/src/mame/includes/equites.h b/src/mame/includes/equites.h
deleted file mode 100644
index 9aa233912e6..00000000000
--- a/src/mame/includes/equites.h
+++ /dev/null
@@ -1,129 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Acho A. Tang, Nicola Salmoria
-/*************************************************************************
-
- Equites, Splendor Blast driver
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_EQUITES_H
-#define MAME_INCLUDES_EQUITES_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/alpha8201.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class equites_state : public driver_device
-{
-public:
- equites_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bg_videoram(*this, "bg_videoram"),
- m_spriteram(*this, "spriteram"),
- m_spriteram_2(*this, "spriteram_2"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_alpha_8201(*this, "alpha_8201"),
- m_mainlatch(*this, "mainlatch")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_bg_videoram;
- std::unique_ptr<uint8_t[]> m_fg_videoram; // 8bits
- required_shared_ptr<uint16_t> m_spriteram;
- optional_shared_ptr<uint16_t> m_spriteram_2;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- uint8_t m_bgcolor;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_device<alpha_8201_device> m_alpha_8201;
- required_device<ls259_device> m_mainlatch;
-
- uint16_t equites_spriteram_kludge_r();
- uint8_t equites_fg_videoram_r(offs_t offset);
- void equites_fg_videoram_w(offs_t offset, uint8_t data);
- void equites_bg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void equites_bgcolor_w(offs_t offset, uint8_t data);
- void equites_scrollreg_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_w);
- void init_equites();
- TILE_GET_INFO_MEMBER(equites_fg_info);
- TILE_GET_INFO_MEMBER(equites_bg_info);
- DECLARE_VIDEO_START(equites);
- void equites_palette(palette_device &palette) const;
- uint32_t screen_update_equites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(equites_scanline);
- void equites_draw_sprites_block(bitmap_ind16 &bitmap, const rectangle &cliprect, int start, int end);
- void equites_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void unpack_block(const char *region, int offset, int size);
- void unpack_region(const char *region);
- void equites(machine_config &config);
- void bngotime(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- void bngotime_map(address_map &map);
- void equites_map(address_map &map);
- void equites_common_map(address_map &map);
-};
-
-class gekisou_state : public equites_state
-{
-public:
- using equites_state::equites_state;
- DECLARE_READ_LINE_MEMBER(gekisou_unknown_bit_r);
- void gekisou(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- void gekisou_map(address_map &map);
- void gekisou_unknown_bit_w(offs_t offset, uint16_t data);
-
-private:
- int m_gekisou_unknown_bit;
-};
-
-
-class splndrbt_state : public equites_state
-{
-public:
- using equites_state::equites_state;
- void init_splndrbt();
- void splndrbt(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- void splndrbt_map(address_map &map);
- DECLARE_WRITE_LINE_MEMBER(splndrbt_selchar_w);
- void splndrbt_bg_scrollx_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void splndrbt_bg_scrolly_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(splndrbt_fg_info);
- TILE_GET_INFO_MEMBER(splndrbt_bg_info);
- DECLARE_VIDEO_START(splndrbt);
- void splndrbt_palette(palette_device &palette) const;
- uint32_t screen_update_splndrbt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(splndrbt_scanline);
- void splndrbt_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void splndrbt_copy_bg(bitmap_ind16 &dst_bitmap, const rectangle &cliprect);
-
-private:
- int m_fg_char_bank;
- uint16_t m_splndrbt_bg_scrollx;
- uint16_t m_splndrbt_bg_scrolly;
-};
-
-#endif // MAME_INCLUDES_EQUITES_H
diff --git a/src/mame/includes/esd16.h b/src/mame/includes/esd16.h
deleted file mode 100644
index 60638cee7f3..00000000000
--- a/src/mame/includes/esd16.h
+++ /dev/null
@@ -1,108 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia, David Haywood
-/***************************************************************************
-
- ESD 16 Bit Games
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_ESD16_H
-#define MAME_INCLUDES_ESD16_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "video/decospr.h"
-#include "tilemap.h"
-
-class esd16_state : public driver_device
-{
-public:
- esd16_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_vram(*this, "vram_%u", 0U),
- m_scroll(*this, "scroll_%u", 0U),
- m_spriteram(*this, "spriteram"),
- m_head_layersize(*this, "head_layersize"),
- m_headpanic_platform_x(*this, "platform_x"),
- m_headpanic_platform_y(*this, "platform_y"),
- m_audiobank(*this, "audiobank"),
- m_io_eepromout(*this, "EEPROMOUT"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_sprgen(*this, "spritegen"),
- m_eeprom(*this, "eeprom"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void jumppop(machine_config &config);
- void esd16_nosound(machine_config &config);
- void esd16(machine_config &config);
- void tangtang(machine_config &config);
- void mchampdx(machine_config &config);
- void hedpanio(machine_config &config);
- void hedpanic(machine_config &config);
- void fantstry(machine_config &config);
- void fantstrya(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr_array<u16, 2> m_vram;
- required_shared_ptr_array<u16, 2> m_scroll;
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr<u16> m_head_layersize;
- required_shared_ptr<u16> m_headpanic_platform_x;
- required_shared_ptr<u16> m_headpanic_platform_y;
-
- optional_memory_bank m_audiobank;
- optional_ioport m_io_eepromout;
-
- /* video-related */
- tilemap_t *m_tilemap_16x16[2];
- tilemap_t *m_tilemap[2];
- int m_tilemap_color[2];
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_device<decospr_device> m_sprgen;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- void sound_command_w(u8 data);
- void hedpanic_platform_w(u16 data);
- u8 eeprom_r();
- void eeprom_w(u8 data);
- void sound_rombank_w(u8 data);
- template<unsigned Layer> void vram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tilemap0_color_w(u16 data);
- void tilemap0_color_jumppop_w(u16 data);
- template<unsigned Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- template<unsigned Layer> TILE_GET_INFO_MEMBER(get_tile_info_16x16);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECOSPR_PRIORITY_CB_MEMBER(pri_callback);
- void fantstrya_map(address_map &map);
- void hedpanic_map(address_map &map);
- void jumppop_map(address_map &map);
- void mchampdx_map(address_map &map);
- void multchmp_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
- void tangtang_map(address_map &map);
-
- void io_area_dsw(address_map &map, u32 base);
- void io_area_eeprom(address_map &map, u32 base);
- void palette_area(address_map &map, u32 base);
- void sprite_area(address_map &map, u32 base);
- void vid_attr_area(address_map &map, u32 base);
- void vram_area(address_map &map, u32 base);
-};
-
-#endif // MAME_INCLUDES_ESD16_H
diff --git a/src/mame/includes/espial.h b/src/mame/includes/espial.h
deleted file mode 100644
index 76d1780953a..00000000000
--- a/src/mame/includes/espial.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver
-
-/***************************************************************************
-
- Espial hardware games (drivers: espial.cpp)
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_ESPIAL_H
-#define MAME_INCLUDES_ESPIAL_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class espial_state : public driver_device
-{
-public:
- espial_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_attributeram(*this, "attributeram"),
- m_scrollram(*this, "scrollram"),
- m_spriteram_1(*this, "spriteram_1"),
- m_spriteram_2(*this, "spriteram_2"),
- m_spriteram_3(*this, "spriteram_3"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void espial(machine_config &config);
- void netwars(machine_config &config);
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_attributeram;
- required_shared_ptr<uint8_t> m_scrollram;
- required_shared_ptr<uint8_t> m_spriteram_1;
- required_shared_ptr<uint8_t> m_spriteram_2;
- required_shared_ptr<uint8_t> m_spriteram_3;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- int m_flipscreen;
-
- /* sound-related */
- uint8_t m_main_nmi_enabled;
- uint8_t m_sound_nmi_enabled;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void espial_master_interrupt_mask_w(uint8_t data);
- void espial_master_soundlatch_w(uint8_t data);
- void espial_sound_nmi_mask_w(uint8_t data);
- void espial_videoram_w(offs_t offset, uint8_t data);
- void espial_colorram_w(offs_t offset, uint8_t data);
- void espial_attributeram_w(offs_t offset, uint8_t data);
- void espial_scrollram_w(offs_t offset, uint8_t data);
- void espial_flipscreen_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void espial_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(netwars);
- uint32_t screen_update_espial(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(espial_sound_nmi_gen);
- TIMER_DEVICE_CALLBACK_MEMBER(espial_scanline);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void espial_map(address_map &map);
- void espial_sound_io_map(address_map &map);
- void espial_sound_map(address_map &map);
- void netwars_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ESPIAL_H
diff --git a/src/mame/includes/esripsys.h b/src/mame/includes/esripsys.h
deleted file mode 100644
index 37667360e27..00000000000
--- a/src/mame/includes/esripsys.h
+++ /dev/null
@@ -1,144 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett
-/*************************************************************************
-
- Entertainment Sciences RIP System hardware
-
-*************************************************************************/
-
-#ifndef MAME_INCLUDES_ESRIPSYS_H
-#define MAME_INCLUDES_ESRIPSYS_H
-
-#pragma once
-
-#include "cpu/esrip/esrip.h"
-#include "sound/dac.h"
-#include "sound/tms5220.h"
-#include "screen.h"
-
-/* TODO */
-#define ESRIPSYS_PIXEL_CLOCK (XTAL(25'000'000) / 2)
-#define ESRIPSYS_HTOTAL (512 + 141 + 2)
-#define ESRIPSYS_HBLANK_START (512)
-#define ESRIPSYS_HBLANK_END (0)
-#define ESRIPSYS_VTOTAL (384 + 20)
-#define ESRIPSYS_VBLANK_START (384)
-#define ESRIPSYS_VBLANK_END (0)
-
-#define CMOS_RAM_SIZE (2048)
-#define FDT_RAM_SIZE (2048 * sizeof(uint16_t))
-
-
-class esripsys_state : public driver_device
-{
-public:
- esripsys_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_framecpu(*this, "frame_cpu"),
- m_videocpu(*this, "video_cpu"),
- m_gamecpu(*this, "game_cpu"),
- m_soundcpu(*this, "sound_cpu"),
- m_tms(*this, "tms5220nl"),
- m_pal_ram(*this, "pal_ram"),
- m_dac(*this, "dac"),
- m_screen(*this, "screen") { }
-
- void esripsys(machine_config &config);
-
- void init_esripsys();
-
- DECLARE_INPUT_CHANGED_MEMBER(keypad_interrupt);
- DECLARE_INPUT_CHANGED_MEMBER(coin_interrupt);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_framecpu;
- required_device<esrip_device> m_videocpu;
- required_device<cpu_device> m_gamecpu;
- required_device<cpu_device> m_soundcpu;
- required_device<tms5220_device> m_tms;
-
- uint8_t m_g_iodata;
- uint8_t m_g_ioaddr;
- uint8_t m_coin_latch;
- uint8_t m_keypad_status;
- uint8_t m_g_status;
- uint8_t m_f_status;
- int m_io_firq_status;
- uint8_t m_cmos_ram_a2_0;
- uint8_t m_cmos_ram_a10_3;
- std::unique_ptr<uint8_t[]> m_cmos_ram;
- uint8_t m_u56a;
- uint8_t m_u56b;
- uint8_t m_g_to_s_latch1;
- uint8_t m_g_to_s_latch2;
- uint8_t m_s_to_g_latch1;
- uint8_t m_s_to_g_latch2;
- uint8_t m_dac_msb;
- uint8_t m_tms_data;
- std::unique_ptr<uint8_t[]> m_fdt_a;
- std::unique_ptr<uint8_t[]> m_fdt_b;
-
- struct line_buffer_t
- {
- std::unique_ptr<uint8_t[]> colour_buf;
- std::unique_ptr<uint8_t[]> intensity_buf;
- std::unique_ptr<uint8_t[]> priority_buf;
- };
-
- struct line_buffer_t m_line_buffer[2];
- int m_fasel;
- int m_fbsel;
- int m_hblank;
- required_shared_ptr<uint8_t> m_pal_ram;
- int m_frame_vbl;
- int m_12sel;
- int m_video_firq_en;
- emu_timer *m_hblank_end_timer;
- emu_timer *m_hblank_start_timer;
- std::unique_ptr<uint8_t[]> m_fig_scale_table;
- std::unique_ptr<uint8_t[]> m_scale_table;
- int m_video_firq;
- uint8_t m_bg_intensity;
- void uart_w(offs_t offset, uint8_t data);
- uint8_t uart_r();
- uint8_t g_status_r();
- void g_status_w(uint8_t data);
- uint8_t f_status_r();
- void f_status_w(uint8_t data);
- void frame_w(uint8_t data);
- uint8_t fdt_r(offs_t offset);
- void fdt_w(offs_t offset, uint8_t data);
- uint16_t fdt_rip_r(offs_t offset);
- void fdt_rip_w(offs_t offset, uint16_t data);
- uint8_t rip_status_in();
- void g_iobus_w(uint8_t data);
- uint8_t g_iobus_r();
- void g_ioadd_w(uint8_t data);
- uint8_t s_200e_r();
- void s_200e_w(uint8_t data);
- void s_200f_w(uint8_t data);
- uint8_t s_200f_r();
- uint8_t tms5220_r(offs_t offset);
- void tms5220_w(offs_t offset, uint8_t data);
- void control_w(uint8_t data);
- void esripsys_bg_intensity_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(ptm_irq);
- void esripsys_dac_w(offs_t offset, uint8_t data);
- uint32_t screen_update_esripsys(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(esripsys_vblank_irq);
- TIMER_CALLBACK_MEMBER(delayed_bank_swap);
- TIMER_CALLBACK_MEMBER(hblank_start_callback);
- TIMER_CALLBACK_MEMBER(hblank_end_callback);
- required_device<dac_word_interface> m_dac;
- required_device<screen_device> m_screen;
- ESRIP_DRAW(esripsys_draw);
- void frame_cpu_map(address_map &map);
- void game_cpu_map(address_map &map);
- void sound_cpu_map(address_map &map);
- void video_cpu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ESRIPSYS_H
diff --git a/src/mame/includes/exedexes.h b/src/mame/includes/exedexes.h
deleted file mode 100644
index 6892ca4d757..00000000000
--- a/src/mame/includes/exedexes.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Richard Davies
-/*************************************************************************
-
- Exed Exes
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_EXEDEXES_H
-#define MAME_INCLUDES_EXEDEXES_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class exedexes_state : public driver_device
-{
-public:
- exedexes_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_nbg_yscroll(*this, "nbg_yscroll"),
- m_nbg_xscroll(*this, "nbg_xscroll"),
- m_bg_scroll(*this, "bg_scroll"),
- m_tilerom(*this, "tilerom"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void exedexes(machine_config &config);
-
-private:
- /* memory pointers */
- required_device<buffered_spriteram8_device> m_spriteram;
- required_shared_ptr<u8> m_videoram;
- required_shared_ptr<u8> m_colorram;
- required_shared_ptr<u8> m_nbg_yscroll;
- required_shared_ptr<u8> m_nbg_xscroll;
- required_shared_ptr<u8> m_bg_scroll;
- required_region_ptr<u8> m_tilerom;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
- int m_chon;
- int m_objon;
- int m_sc1on;
- int m_sc2on;
-
- void videoram_w(offs_t offset, u8 data);
- void colorram_w(offs_t offset, u8 data);
- void c804_w(u8 data);
- void gfxctrl_w(u8 data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- TILEMAP_MAPPER_MEMBER(bg_tilemap_scan);
- TILEMAP_MAPPER_MEMBER(fg_tilemap_scan);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void exedexes_palette(palette_device &palette) const;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void exedexes_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_EXEDEXES_H
diff --git a/src/mame/includes/exerion.h b/src/mame/includes/exerion.h
deleted file mode 100644
index 50d1d5cc4f0..00000000000
--- a/src/mame/includes/exerion.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Jaleco Exerion
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_EXERION_H
-#define MAME_INCLUDES_EXERION_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-
-
-#define EXERION_MASTER_CLOCK (XTAL(19'968'000)) /* verified on pcb */
-#define EXERION_CPU_CLOCK (EXERION_MASTER_CLOCK / 6)
-#define EXERION_AY8910_CLOCK (EXERION_CPU_CLOCK / 2)
-#define EXERION_PIXEL_CLOCK (EXERION_MASTER_CLOCK / 3)
-#define EXERION_HCOUNT_START (0x58)
-#define EXERION_HTOTAL (512-EXERION_HCOUNT_START)
-#define EXERION_HBEND (12*8) /* ?? */
-#define EXERION_HBSTART (52*8) /* ?? */
-#define EXERION_VTOTAL (256)
-#define EXERION_VBEND (16)
-#define EXERION_VBSTART (240)
-
-
-class exerion_state : public driver_device
-{
-public:
- exerion_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_main_ram(*this, "main_ram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu_region(*this, "maincpu"),
- m_background_mixer(*this, "bg_char_mixer_prom"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_inputs(*this, "P%u", 1U)
- { }
-
- void exerion(machine_config &config);
- void irion(machine_config &config);
-
- void init_exerion();
- void init_exerionb();
- void init_irion();
-
- DECLARE_CUSTOM_INPUT_MEMBER(controls_r);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- // memory pointers
- required_shared_ptr<uint8_t> m_main_ram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_region_ptr<uint8_t> m_maincpu_region;
- required_region_ptr<uint8_t> m_background_mixer;
-
- // video-related
- uint8_t m_cocktail_flip;
- uint8_t m_char_palette;
- uint8_t m_sprite_palette;
- uint8_t m_char_bank;
- std::unique_ptr<uint16_t[]> m_background_gfx[4];
- uint8_t m_background_latches[13];
-
- // protection?
- uint8_t m_porta;
- uint8_t m_portb;
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_ioport_array<2> m_inputs;
-
- uint8_t protection_r(offs_t offset);
- void videoreg_w(uint8_t data);
- void video_latch_w(offs_t offset, uint8_t data);
- uint8_t video_timing_r();
- uint8_t porta_r();
- void portb_w(uint8_t data);
- void palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_background( bitmap_ind16 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
- void sub_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_EXERION_H
diff --git a/src/mame/includes/exidy.h b/src/mame/includes/exidy.h
deleted file mode 100644
index 227d51a635a..00000000000
--- a/src/mame/includes/exidy.h
+++ /dev/null
@@ -1,156 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Exidy 6502 hardware
-
-*************************************************************************/
-
-#include "sound/dac.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define EXIDY_MASTER_CLOCK (XTAL(11'289'000))
-#define EXIDY_CPU_CLOCK (EXIDY_MASTER_CLOCK / 16)
-#define EXIDY_PIXEL_CLOCK (EXIDY_MASTER_CLOCK / 2)
-#define EXIDY_HTOTAL (0x150)
-#define EXIDY_HBEND (0x000)
-#define EXIDY_HBSTART (0x100)
-#define EXIDY_HSEND (0x140)
-#define EXIDY_HSSTART (0x120)
-#define EXIDY_VTOTAL (0x118)
-#define EXIDY_VBEND (0x000)
-#define EXIDY_VBSTART (0x100)
-#define EXIDY_VSEND (0x108)
-#define EXIDY_VSSTART (0x100)
-
-
-class exidy_state : public driver_device
-{
-public:
- enum
- {
- TIMER_COLLISION_IRQ
- };
-
- exidy_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_dac(*this, "dac"),
- m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_sprite1_xpos(*this, "sprite1_xpos"),
- m_sprite1_ypos(*this, "sprite1_ypos"),
- m_sprite2_xpos(*this, "sprite2_xpos"),
- m_sprite2_ypos(*this, "sprite2_ypos"),
- m_spriteno(*this, "spriteno"),
- m_sprite_enable(*this, "sprite_enable"),
- m_color_latch(*this, "color_latch"),
- m_characterram(*this, "characterram") { }
-
- void base(machine_config &config);
- void mtrap(machine_config &config);
- void venture(machine_config &config);
- void fax(machine_config &config);
- void teetert(machine_config &config);
- void sidetrac(machine_config &config);
- void spectar(machine_config &config);
- void spectar_audio(machine_config &config);
- void rallys(machine_config &config);
- void pepper2(machine_config &config);
- void targ(machine_config &config);
- void targ_audio(machine_config &config);
-
- void init_fax();
- void init_sidetrac();
- void init_pepper2();
- void init_targ();
- void init_rallys();
- void init_mtrap();
- void init_teetert();
- void init_venture();
- void init_spectar();
- void init_phantoma();
-
- DECLARE_CUSTOM_INPUT_MEMBER(teetert_input_r);
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<dac_bit_interface> m_dac;
- optional_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_sprite1_xpos;
- required_shared_ptr<uint8_t> m_sprite1_ypos;
- required_shared_ptr<uint8_t> m_sprite2_xpos;
- required_shared_ptr<uint8_t> m_sprite2_ypos;
- required_shared_ptr<uint8_t> m_spriteno;
- required_shared_ptr<uint8_t> m_sprite_enable;
- required_shared_ptr<uint8_t> m_color_latch;
- optional_shared_ptr<uint8_t> m_characterram;
-
- uint8_t m_last_dial;
- uint8_t m_collision_mask;
- uint8_t m_collision_invert;
- int m_is_2bpp;
- uint8_t m_int_condition;
- bitmap_ind16 m_background_bitmap;
- bitmap_ind16 m_motion_object_1_vid;
- bitmap_ind16 m_motion_object_2_vid;
- bitmap_ind16 m_motion_object_2_clip;
-
- void fax_bank_select_w(uint8_t data);
- uint8_t exidy_interrupt_r();
- void mtrap_ocl_w(uint8_t data);
-
- virtual void video_start() override;
- DECLARE_MACHINE_START(teetert);
-
- uint32_t screen_update_exidy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(exidy_vblank_interrupt);
-
- void exidy_video_config(uint8_t _collision_mask, uint8_t _collision_invert, int _is_2bpp);
- inline void latch_condition(int collision);
- inline void set_1_color(int index, int which);
- void set_colors();
- void draw_background();
- inline int sprite_1_enabled();
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void check_collision();
-
- /* Targ and Spectar samples */
- int m_max_freq;
- uint8_t m_port_1_last;
- uint8_t m_port_2_last;
- uint8_t m_tone_freq;
- uint8_t m_tone_active;
- uint8_t m_tone_pointer;
- void targ_audio_1_w(uint8_t data);
- void targ_audio_2_w(uint8_t data);
- void spectar_audio_2_w(uint8_t data);
- void adjust_sample(uint8_t freq);
- void common_audio_start(int freq);
- SAMPLES_START_CB_MEMBER(spectar_audio_start);
- SAMPLES_START_CB_MEMBER(targ_audio_start);
-
- void exidy_map(address_map &map);
- void fax_map(address_map &map);
- void mtrap_map(address_map &map);
- void pepper2_map(address_map &map);
- void rallys_map(address_map &map);
- void sidetrac_map(address_map &map);
- void spectar_map(address_map &map);
- void targ_map(address_map &map);
- void venture_map(address_map &map);
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
diff --git a/src/mame/includes/exidy440.h b/src/mame/includes/exidy440.h
deleted file mode 100644
index 7272d977d1f..00000000000
--- a/src/mame/includes/exidy440.h
+++ /dev/null
@@ -1,126 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Exidy 440 hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_EXIDY440_H
-#define MAME_INCLUDES_EXIDY440_H
-
-#pragma once
-
-#include "audio/exidy440.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define EXIDY440_MASTER_CLOCK (XTAL(12'979'200))
-
-
-class exidy440_state : public driver_device
-{
-public:
- exidy440_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_imageram(*this, "imageram"),
- m_spriteram(*this, "spriteram"),
- m_scanline(*this, "scanline"),
- m_maincpu(*this, "maincpu"),
- m_custom(*this, "440audio"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- DECLARE_READ_LINE_MEMBER(firq_beam_r);
- DECLARE_READ_LINE_MEMBER(firq_vblank_r);
- DECLARE_CUSTOM_INPUT_MEMBER(hitnmiss_button1_r);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
- void init_showdown();
- void init_yukon();
- void init_exidy440();
- void init_claypign();
- void exidy440(machine_config &config);
-
-protected:
- void bankram_w(offs_t offset, uint8_t data);
- uint8_t exidy440_input_port_3_r();
- uint8_t sound_command_ack_r();
- void sound_command_w(uint8_t data);
- void exidy440_input_port_3_w(uint8_t data);
- void exidy440_coin_counter_w(uint8_t data);
- uint8_t showdown_bank0_r(offs_t offset);
- uint8_t claypign_protection_r();
- uint8_t exidy440_videoram_r(offs_t offset);
- void exidy440_videoram_w(offs_t offset, uint8_t data);
- uint8_t exidy440_paletteram_r(offs_t offset);
- void exidy440_paletteram_w(offs_t offset, uint8_t data);
- uint8_t exidy440_horizontal_pos_r();
- uint8_t exidy440_vertical_pos_r();
- void exidy440_spriteram_w(offs_t offset, uint8_t data);
- void exidy440_control_w(offs_t offset, uint8_t data);
- void exidy440_interrupt_clear_w(uint8_t data);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int scroll_offset, int check_collision);
- void update_screen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int scroll_offset, int check_collision);
- uint32_t screen_update_exidy440(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_interrupt_w);
- TIMER_CALLBACK_MEMBER(delayed_sound_command_w);
- TIMER_CALLBACK_MEMBER(beam_firq_callback);
- TIMER_CALLBACK_MEMBER(collide_firq_callback);
- void exidy440_update_firq();
- void exidy440_bank_select(uint8_t bank);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void exidy440_video(machine_config &config);
- void exidy440_map(address_map &map);
-
- required_shared_ptr<uint8_t> m_imageram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scanline;
-
- required_device<cpu_device> m_maincpu;
- required_device<exidy440_sound_device> m_custom;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
-private:
- uint8_t m_bank;
- const uint8_t *m_showdown_bank_data[2];
- int8_t m_showdown_bank_select;
- uint8_t m_showdown_bank_offset;
- uint8_t m_firq_vblank;
- uint8_t m_firq_beam;
- uint8_t m_latched_x;
- std::unique_ptr<uint8_t[]> m_local_videoram;
- std::unique_ptr<uint8_t[]> m_local_paletteram;
- uint8_t m_firq_enable;
- uint8_t m_firq_select;
- uint8_t m_palettebank_io;
- uint8_t m_palettebank_vis;
- emu_timer *m_beam_firq_timer;
- emu_timer *m_collide_firq_timer;
- uint8_t m_beam_firq_count;
-};
-
-
-class topsecex_state : public exidy440_state
-{
-public:
- using exidy440_state::exidy440_state;
- void init_topsecex();
- void topsecex(machine_config &config);
-
-protected:
- void topsecex_video(machine_config &config);
- uint8_t topsecex_input_port_5_r();
- void topsecex_yscroll_w(uint8_t data);
- uint32_t screen_update_topsecex(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- virtual void video_start() override;
-
-private:
- uint8_t m_topsecex_yscroll;
-};
-
-#endif // MAME_INCLUDES_EXIDY440_H
diff --git a/src/mame/includes/exp85.h b/src/mame/includes/exp85.h
deleted file mode 100644
index ed621213306..00000000000
--- a/src/mame/includes/exp85.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_EXP85_H
-#define MAME_INCLUDES_EXP85_H
-
-#include "bus/rs232/rs232.h"
-#include "cpu/i8085/i8085.h"
-#include "imagedev/cassette.h"
-#include "sound/spkrdev.h"
-
-#define SCREEN_TAG "screen"
-#define I8085A_TAG "u100"
-#define I8155_TAG "u106"
-#define I8355_TAG "u105"
-
-class exp85_state : public driver_device
-{
-public:
- exp85_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, I8085A_TAG),
- m_rs232(*this, "rs232"),
- m_cassette(*this, "cassette"),
- m_speaker(*this, "speaker"),
- m_rom(*this, I8085A_TAG),
- m_tape_control(0)
- { }
-
- void exp85(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER( trigger_reset );
- DECLARE_INPUT_CHANGED_MEMBER( trigger_rst75 );
-
-private:
- required_device<i8085a_cpu_device> m_maincpu;
- required_device<rs232_port_device> m_rs232;
- required_device<cassette_image_device> m_cassette;
- required_device<speaker_sound_device> m_speaker;
- required_memory_region m_rom;
-
- virtual void machine_start() override;
-
- uint8_t i8355_a_r();
- void i8355_a_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( sid_r );
- DECLARE_WRITE_LINE_MEMBER( sod_w );
-
- /* cassette state */
- int m_tape_control;
- void exp85_io(address_map &map);
- void exp85_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_EXP85_H
diff --git a/src/mame/includes/exprraid.h b/src/mame/includes/exprraid.h
deleted file mode 100644
index 46a0b297eeb..00000000000
--- a/src/mame/includes/exprraid.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-/*************************************************************************
-
- Express Raider
-
-*************************************************************************/
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class exprraid_state : public driver_device
-{
-public:
- exprraid_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_slave(*this, "slave"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_main_ram(*this, "main_ram"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram")
- { }
-
- void exprraid(machine_config &config);
- void exprboot(machine_config &config);
-
- void init_exprraid();
- void init_wexpressb();
- void init_wexpressb2();
- void init_wexpressb3();
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted_deco16);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted_nmi);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_slave;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_main_ram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* protection */
- uint8_t m_prot_value;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- int m_bg_index[4];
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void exprraid_int_clear_w(uint8_t data);
- uint8_t exprraid_prot_status_r();
- uint8_t exprraid_prot_data_r();
- void exprraid_prot_data_w(uint8_t data);
- uint8_t vblank_r();
- void exprraid_videoram_w(offs_t offset, uint8_t data);
- void exprraid_colorram_w(offs_t offset, uint8_t data);
- void exprraid_flipscreen_w(uint8_t data);
- void exprraid_bgselect_w(offs_t offset, uint8_t data);
- void exprraid_scrollx_w(offs_t offset, uint8_t data);
- void exprraid_scrolly_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- uint32_t screen_update_exprraid(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void exprraid_gfx_expand();
- void master_io_map(address_map &map);
- void master_map(address_map &map);
- void slave_map(address_map &map);
-};
diff --git a/src/mame/includes/exterm.h b/src/mame/includes/exterm.h
deleted file mode 100644
index 647262638af..00000000000
--- a/src/mame/includes/exterm.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Alex Pasadyn,Zsolt Vasvari,Aaron Giles
-/*************************************************************************
-
- Gottlieb Exterminator hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_EXTERM_H
-#define MAME_INCLUDES_EXTERM_H
-
-#pragma once
-
-#include "cpu/tms34010/tms34010.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/ym2151.h"
-#include "emupal.h"
-
-class exterm_state : public driver_device
-{
-public:
- exterm_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_audioslave(*this, "audioslave"),
- m_soundlatch(*this, "soundlatch%u", 1),
- m_slave(*this, "slave"),
- m_ym2151(*this, "ymsnd"),
- m_nmi_timer(*this, "snd_nmi_timer"),
- m_master_videoram(*this, "master_videoram"),
- m_slave_videoram(*this, "slave_videoram"),
- m_dial(*this, "DIAL%u", 0U),
- m_input(*this, "P%u", 1U)
- { }
-
- void exterm(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_device<tms34010_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_audioslave;
- required_device_array<generic_latch_8_device, 2> m_soundlatch;
- required_device<tms34010_device> m_slave;
- required_device<ym2151_device> m_ym2151;
- required_device<timer_device> m_nmi_timer;
-
- required_shared_ptr<uint16_t> m_master_videoram;
- required_shared_ptr<uint16_t> m_slave_videoram;
-
- required_ioport_array<2> m_dial;
- required_ioport_array<2> m_input;
-
- uint8_t m_aimpos[2];
- uint8_t m_trackball_old[2];
- uint8_t m_sound_control;
- uint16_t m_last;
-
- void host_data_w(offs_t offset, uint16_t data);
- uint16_t host_data_r(offs_t offset);
- template<uint8_t Which> uint16_t trackball_port_r();
- void output_port_0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_latch_w(uint8_t data);
- void sound_nmi_rate_w(uint8_t data);
- uint8_t sound_nmi_to_slave_r();
- void sound_control_w(uint8_t data);
- void ym2151_data_latch_w(uint8_t data);
- void exterm_palette(palette_device &palette) const;
- TIMER_DEVICE_CALLBACK_MEMBER(master_sound_nmi_callback);
- TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_update);
- TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg_master);
- TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg_master);
- TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg_slave);
- TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg_slave);
- void master_map(address_map &map);
- void slave_map(address_map &map);
- void sound_master_map(address_map &map);
- void sound_slave_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_EXTERM_H
diff --git a/src/mame/includes/exzisus.h b/src/mame/includes/exzisus.h
deleted file mode 100644
index ee3275c2fea..00000000000
--- a/src/mame/includes/exzisus.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Yochizo
-#ifndef MAME_INCLUDES_EXZIUS_H
-#define MAME_INCLUDES_EXZIUS_H
-
-#pragma once
-
-#include "emupal.h"
-
-class exzisus_state : public driver_device
-{
-public:
- exzisus_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_cpuc(*this, "cpuc"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_objectram1(*this, "objectram1"),
- m_videoram1(*this, "videoram1"),
- m_sharedram_ac(*this, "sharedram_ac"),
- m_sharedram_ab(*this, "sharedram_ab"),
- m_objectram0(*this, "objectram0"),
- m_videoram0(*this, "videoram0")
- { }
-
- void exzisus(machine_config &config);
-
-private:
- required_device<cpu_device> m_cpuc;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_objectram1;
- required_shared_ptr<uint8_t> m_videoram1;
- required_shared_ptr<uint8_t> m_sharedram_ac;
- required_shared_ptr<uint8_t> m_sharedram_ab;
- required_shared_ptr<uint8_t> m_objectram0;
- required_shared_ptr<uint8_t> m_videoram0;
-
- void cpua_bankswitch_w(uint8_t data);
- void cpub_bankswitch_w(uint8_t data);
- void coincounter_w(uint8_t data);
- void cpub_reset_w(uint8_t data);
-
- virtual void machine_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void cpua_map(address_map &map);
- void cpub_map(address_map &map);
- void cpuc_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_EXZIUS_H
diff --git a/src/mame/includes/f1gp.h b/src/mame/includes/f1gp.h
deleted file mode 100644
index e9ec7bc4d38..00000000000
--- a/src/mame/includes/f1gp.h
+++ /dev/null
@@ -1,138 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_F1GP_H
-#define MAME_INCLUDES_F1GP_H
-
-#pragma once
-
-#include "machine/6850acia.h"
-#include "machine/gen_latch.h"
-#include "video/vsystem_spr.h"
-#include "video/vsystem_spr2.h"
-#include "video/k053936.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class f1gp_state : public driver_device
-{
-public:
- f1gp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_sharedram(*this, "sharedram"),
- m_sprvram(*this, "spr%uvram", 1U),
- m_sprcgram(*this, "spr%ucgram", 1U),
- m_fgvideoram(*this, "fgvideoram"),
- m_rozvideoram(*this, "rozvideoram"),
- m_spriteram(*this, "spriteram"),
- m_fgregs(*this, "fgregs"),
- m_rozregs(*this, "rozregs"),
- m_z80bank(*this, "z80bank"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_audiocpu(*this, "audiocpu"),
- m_k053936(*this, "k053936"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_acia(*this, "acia"),
- m_rozgfxram(*this, "rozgfxram"),
- m_spr_old(*this, "vsystem_spr_old%u", 1U)
- { }
-
- void f1gpb(machine_config &config);
- void f1gp(machine_config &config);
-
-protected:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_sharedram;
- optional_shared_ptr_array<uint16_t, 2> m_sprvram;
- optional_shared_ptr_array<uint16_t, 2> m_sprcgram;
- required_shared_ptr<uint16_t> m_fgvideoram;
- required_shared_ptr<uint16_t> m_rozvideoram;
- optional_shared_ptr<uint16_t> m_spriteram;
- optional_shared_ptr<uint16_t> m_fgregs;
- optional_shared_ptr<uint16_t> m_rozregs;
-
- optional_memory_bank m_z80bank;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_roz_tilemap;
- int m_flipscreen;
- int m_gfxctrl;
- int m_scroll[2];
- template<int Chip> uint32_t tile_callback( uint32_t code );
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_device<cpu_device> m_audiocpu;
- optional_device<k053936_device> m_k053936;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch; // not f1gpb
- required_device<acia6850_device> m_acia;
-
- void sh_bankswitch_w(uint8_t data);
- uint8_t command_pending_r();
- void rozvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fgvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fgscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gfxctrl_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void f1gp_cpu2_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-
-private:
- /* memory pointers */
- optional_shared_ptr<uint16_t> m_rozgfxram;
-
- /* devices */
- optional_device_array<vsystem_spr2_device, 2> m_spr_old; // f1gp
-
- void f1gpb_misc_w(uint16_t data);
- void rozgfxram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_roz_tile_info);
-
- virtual void video_start() override;
-
- uint32_t screen_update_f1gp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_f1gpb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void f1gpb_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect );
- void f1gp_cpu1_map(address_map &map);
- void f1gpb_cpu1_map(address_map &map);
- void f1gpb_cpu2_map(address_map &map);
-};
-
-class f1gp2_state : public f1gp_state
-{
-public:
- f1gp2_state(const machine_config &mconfig, device_type type, const char *tag) :
- f1gp_state(mconfig, type, tag),
- m_spr(*this, "vsystem_spr")
- { }
-
- void f1gp2(machine_config &config);
-
-private:
- /* video-related */
- int m_roz_bank;
-
- /* devices */
- optional_device<vsystem_spr_device> m_spr; // f1gp2
-
- void rozbank_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_roz_tile_info);
-
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void f1gp2_cpu1_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_F1GP_H
diff --git a/src/mame/includes/fantland.h b/src/mame/includes/fantland.h
deleted file mode 100644
index 9c4698f66bb..00000000000
--- a/src/mame/includes/fantland.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_FANTLAND_H
-#define MAME_INCLUDES_FANTLAND_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "screen.h"
-
-class fantland_state : public driver_device
-{
-public:
- fantland_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram", 0x2800, ENDIANNESS_LITTLE),
- m_spriteram2(*this, "spriteram2", 0x10000, ENDIANNESS_LITTLE),
- m_wheel(*this, "WHEEL%u", 0U)
- { }
-
- void fantland(machine_config &config);
- void wheelrun(machine_config &config);
- void galaxygn(machine_config &config);
-
- template <int Player> DECLARE_CUSTOM_INPUT_MEMBER(wheelrun_wheel_r);
-
-protected:
- /* misc */
- uint8_t m_nmi_enable;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- memory_share_creator<uint8_t> m_spriteram;
- memory_share_creator<uint8_t> m_spriteram2;
-
- optional_ioport_array<2> m_wheel;
-
- void nmi_enable_w(uint8_t data);
- void soundlatch_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
-private:
- uint8_t spriteram_r(offs_t offset);
- uint8_t spriteram2_r(offs_t offset);
- void spriteram_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- void spriteram2_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(galaxygn_sound_irq);
- INTERRUPT_GEN_MEMBER(fantland_sound_irq);
- void fantland_map(address_map &map);
- void fantland_sound_iomap(address_map &map);
- void fantland_sound_map(address_map &map);
- void galaxygn_map(address_map &map);
- void galaxygn_sound_iomap(address_map &map);
- void wheelrun_map(address_map &map);
- void wheelrun_sound_map(address_map &map);
-};
-
-class borntofi_state : public fantland_state
-{
-public:
- borntofi_state(const machine_config &mconfig, device_type type, const char *tag) :
- fantland_state(mconfig, type, tag),
- m_msm(*this, "msm%u", 1U),
- m_adpcm_rom(*this, "adpcm")
- {
- }
-
- void borntofi(machine_config &config);
-
-private:
- /* misc */
- int m_old_x[2];
- int m_old_y[2];
- int m_old_f[2];
- uint8_t m_input_ret[2];
- int m_adpcm_playing[4];
- int m_adpcm_addr[2][4];
- int m_adpcm_nibble[4];
-
- /* devices */
- required_device_array<msm5205_device, 4> m_msm;
- required_region_ptr<uint8_t> m_adpcm_rom;
-
- uint8_t inputs_r(offs_t offset);
- void msm5205_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- template<int Voice> DECLARE_WRITE_LINE_MEMBER(adpcm_int);
- void adpcm_start(int voice);
- void adpcm_stop(int voice);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FANTLAND_H
diff --git a/src/mame/includes/fastfred.h b/src/mame/includes/fastfred.h
deleted file mode 100644
index 26b3a3c4143..00000000000
--- a/src/mame/includes/fastfred.h
+++ /dev/null
@@ -1,109 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/***************************************************************************
-
- Fast Freddie/Jump Coaster hardware
- driver by Zsolt Vasvari
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_FASTFRED_H
-#define MAME_INCLUDES_FASTFRED_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "includes/galaxold.h"
-#include "tilemap.h"
-
-class fastfred_state : public galaxold_state
-{
-public:
- fastfred_state(const machine_config &mconfig, device_type type, const char *tag)
- : galaxold_state(mconfig, type, tag)
- , m_outlatch(*this, "outlatch")
- , m_videoram(*this, "videoram")
- , m_spriteram(*this, "spriteram")
- , m_attributesram(*this, "attributesram")
- , m_background_color(*this, "bgcolor")
- , m_imago_fg_videoram(*this, "imago_fg_vram")
- { }
-
- void jumpcoas(machine_config &config);
- void imago(machine_config &config);
- void fastfred(machine_config &config);
-
- void init_fastfred();
- void init_flyboy();
- void init_flyboyb();
- void init_imago();
- void init_boggy84();
- void init_jumpcoas();
- void init_boggy84b();
-
-private:
- required_device<ls259_device> m_outlatch;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_attributesram;
- optional_shared_ptr<uint8_t> m_background_color;
- optional_shared_ptr<uint8_t> m_imago_fg_videoram;
-
- int m_hardware_type;
- uint16_t m_charbank;
- uint8_t m_colorbank;
- uint8_t m_nmi_mask;
- uint8_t m_sound_nmi_mask;
- uint8_t m_imago_sprites[0x800*3];
- uint16_t m_imago_sprites_address;
- uint8_t m_imago_sprites_bank;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_web_tilemap;
-
- uint8_t fastfred_custom_io_r(offs_t offset);
- uint8_t flyboy_custom1_io_r(offs_t offset);
- uint8_t flyboy_custom2_io_r(offs_t offset);
- uint8_t jumpcoas_custom_io_r(offs_t offset);
- uint8_t boggy84_custom_io_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(imago_dma_irq_w);
- void imago_sprites_bank_w(uint8_t data);
- void imago_sprites_dma_w(offs_t offset, uint8_t data);
- uint8_t imago_sprites_offset_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- void sound_nmi_mask_w(uint8_t data);
- void fastfred_videoram_w(offs_t offset, uint8_t data);
- void fastfred_attributes_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(charbank1_w);
- DECLARE_WRITE_LINE_MEMBER(charbank2_w);
- DECLARE_WRITE_LINE_MEMBER(colorbank1_w);
- DECLARE_WRITE_LINE_MEMBER(colorbank2_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
- void imago_fg_videoram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(imago_charbank_w);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
- TILE_GET_INFO_MEMBER(imago_get_tile_info_bg);
- TILE_GET_INFO_MEMBER(imago_get_tile_info_fg);
- TILE_GET_INFO_MEMBER(imago_get_tile_info_web);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(sound_timer_irq);
-
- virtual void machine_start() override;
- void fastfred_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(imago);
- DECLARE_VIDEO_START(fastfred);
- DECLARE_VIDEO_START(imago);
-
- uint32_t screen_update_fastfred(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_imago(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void fastfred_map(address_map &map);
- void imago_map(address_map &map);
- void jumpcoas_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FASTFRED_H
diff --git a/src/mame/includes/fastlane.h b/src/mame/includes/fastlane.h
deleted file mode 100644
index e7b8d9ad2ce..00000000000
--- a/src/mame/includes/fastlane.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Fast Lane
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_FASTLANE_H
-#define MAME_INCLUDES_FASTLANE_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/k007232.h"
-#include "video/k007121.h"
-#include "video/k051733.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class fastlane_state : public driver_device
-{
-public:
- fastlane_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_k007121_regs(*this, "k007121_regs"),
- m_videoram1(*this, "videoram1"),
- m_videoram2(*this, "videoram2"),
- m_spriteram(*this, "spriteram"),
- m_k007232_1(*this, "k007232_1"),
- m_k007232_2(*this, "k007232_2"),
- m_k007121(*this, "k007121"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void fastlane(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_k007121_regs;
- required_shared_ptr<uint8_t> m_videoram1;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_layer0;
- tilemap_t *m_layer1;
- rectangle m_clip0;
- rectangle m_clip1;
-
- /* devices */
- required_device<k007232_device> m_k007232_1;
- required_device<k007232_device> m_k007232_2;
- required_device<k007121_device> m_k007121;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- void k007121_registers_w(offs_t offset, uint8_t data);
- void fastlane_bankswitch_w(uint8_t data);
- void fastlane_vram1_w(offs_t offset, uint8_t data);
- void fastlane_vram2_w(offs_t offset, uint8_t data);
- uint8_t fastlane_k1_k007232_r(offs_t offset);
- void fastlane_k1_k007232_w(offs_t offset, uint8_t data);
- uint8_t fastlane_k2_k007232_r(offs_t offset);
- void fastlane_k2_k007232_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info0);
- TILE_GET_INFO_MEMBER(get_tile_info1);
- virtual void machine_start() override;
- virtual void video_start() override;
- void fastlane_palette(palette_device &palette) const;
- uint32_t screen_update_fastlane(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(fastlane_scanline);
- void volume_callback0(uint8_t data);
- void volume_callback1(uint8_t data);
- void fastlane_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FASTLANE_H
diff --git a/src/mame/includes/fcombat.h b/src/mame/includes/fcombat.h
deleted file mode 100644
index 160c3188016..00000000000
--- a/src/mame/includes/fcombat.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-#ifndef MAME_INCLUDES_FCOMBAT_H
-#define MAME_INCLUDES_FCOMBAT_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-
-// this is copied from Exerion, but it should be correct
-#define FCOMBAT_MASTER_CLOCK (20000000)
-#define FCOMBAT_CPU_CLOCK (FCOMBAT_MASTER_CLOCK / 6)
-#define FCOMBAT_AY8910_CLOCK (FCOMBAT_CPU_CLOCK / 2)
-#define FCOMBAT_PIXEL_CLOCK (FCOMBAT_MASTER_CLOCK / 3)
-#define FCOMBAT_HCOUNT_START (0x58)
-#define FCOMBAT_HTOTAL (512-FCOMBAT_HCOUNT_START)
-#define FCOMBAT_HBEND (12*8) // ??
-#define FCOMBAT_HBSTART (52*8) //
-#define FCOMBAT_VTOTAL (256)
-#define FCOMBAT_VBEND (16)
-#define FCOMBAT_VBSTART (240)
-
-#define BACKGROUND_X_START 32
-#define BACKGROUND_X_START_FLIP 72
-
-#define VISIBLE_X_MIN (12*8)
-#define VISIBLE_X_MAX (52*8)
-#define VISIBLE_Y_MIN (2*8)
-#define VISIBLE_Y_MAX (30*8)
-
-
-class fcombat_state : public driver_device
-{
-public:
- fcombat_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_bgdata_rom(*this, "bgdata"),
- m_user2_region(*this, "user2"),
- m_io_in(*this, "IN%u", 0U),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void fcombat(machine_config &config);
-
- void init_fcombat();
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-private:
- /* memory pointers */
- required_shared_ptr<u8> m_videoram;
- required_shared_ptr<u8> m_spriteram;
- required_region_ptr<u8> m_bgdata_rom;
- required_region_ptr<u8> m_user2_region;
-
- required_ioport_array<2> m_io_in;
-
- /* video-related */
- tilemap_t *m_bgmap;
- u8 m_cocktail_flip;
- u8 m_char_palette;
- u8 m_sprite_palette;
- u8 m_char_bank;
-
- /* misc */
- int m_fcombat_sh;
- int m_fcombat_sv;
- int m_tx;
- int m_ty;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- u8 protection_r();
- u8 port01_r();
- void e900_w(u8 data);
- void ea00_w(u8 data);
- void eb00_w(u8 data);
- void ec00_w(u8 data);
- void ed00_w(u8 data);
- u8 e300_r();
- void ee00_w(u8 data);
- void videoreg_w(u8 data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void fcombat_palette(palette_device &palette) const;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void audio_map(address_map &map);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FCOMBAT_H
diff --git a/src/mame/includes/fcrash.h b/src/mame/includes/fcrash.h
deleted file mode 100644
index 03752241622..00000000000
--- a/src/mame/includes/fcrash.h
+++ /dev/null
@@ -1,131 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-/***************************************************************************
-
- CPS1 bootleg "Final Crash" hardware
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_FCRASH_H
-#define MAME_INCLUDES_FCRASH_H
-
-#pragma once
-
-#include "includes/cps1.h"
-
-class fcrash_state : public cps_state
-{
-public:
- fcrash_state(const machine_config &mconfig, device_type type, const char *tag)
- : cps_state(mconfig, type, tag, 1)
- , m_msm_1(*this, "msm1")
- , m_msm_2(*this, "msm2")
- , m_okibank(*this, "okibank")
- , m_sgyxz_dsw(*this, { "DSWA", "DSWB", "DSWC" })
- { }
-
- void fcrash(machine_config &config);
- void cawingbl(machine_config &config);
- void ffightblb(machine_config &config);
- void kodb(machine_config &config);
- void mtwinsb(machine_config &config);
- void sf2m1(machine_config &config);
- void sgyxz(machine_config &config);
- void wofabl(machine_config &config);
- void wofr1bl(machine_config &config);
- void varthb(machine_config &config);
-
- void init_cawingbl();
- void init_kodb();
- void init_mtwinsb();
- void init_sf2m1();
- void init_wofr1bl();
-
-protected:
- DECLARE_MACHINE_START(fcrash);
- DECLARE_MACHINE_RESET(fcrash);
- DECLARE_MACHINE_START(cawingbl);
- DECLARE_MACHINE_START(ffightblb);
- DECLARE_MACHINE_START(kodb);
- DECLARE_MACHINE_START(mtwinsb);
- DECLARE_MACHINE_START(sf2m1);
- DECLARE_MACHINE_START(sgyxz);
- DECLARE_MACHINE_RESET(sgyxz);
- DECLARE_MACHINE_START(wofr1bl);
-
- void fcrash_soundlatch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fcrash_snd_bankswitch_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(m5205_int1);
- DECLARE_WRITE_LINE_MEMBER(m5205_int2);
- void fcrash_msm5205_0_data_w(uint8_t data);
- void fcrash_msm5205_1_data_w(uint8_t data);
- void cawingbl_soundlatch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void kodb_layer_w(offs_t offset, uint16_t data);
- void mtwinsb_layer_w(offs_t offset, uint16_t data);
- void sf2m1_layer_w(offs_t offset, uint16_t data);
- void varthb_layer_w(offs_t offset, uint16_t data);
- void varthb_layer2_w(uint16_t data);
- uint16_t sgyxz_dsw_r(offs_t offset);
- void wofr1bl_layer_w(offs_t offset, uint16_t data);
- void wofr1bl_layer2_w(uint16_t data);
- void wofr1bl_spr_base_w(uint16_t data);
-
- uint32_t screen_update_fcrash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void fcrash_update_transmasks();
- virtual void bootleg_render_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void fcrash_render_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer, int primask);
- void fcrash_render_high_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer);
- virtual void fcrash_build_palette();
-
- void fcrash_map(address_map &map);
- void mtwinsb_map(address_map &map);
- void sf2m1_map(address_map &map);
- void sgyxz_map(address_map &map);
- void wofabl_map(address_map &map);
- void wofr1bl_map(address_map &map);
- void varthb_map(address_map &map);
-
- void fcrash_sound_map(address_map &map);
- void ffightblb_sound_map(address_map &map);
- void ffightblb_oki_map(address_map &map);
- void kodb_sound_map(address_map &map);
- void sgyxz_sound_map(address_map &map);
-
- /* sound hw */
- int m_sample_buffer1;
- int m_sample_buffer2;
- int m_sample_select1;
- int m_sample_select2;
-
- /* video config */
- uint8_t m_layer_enable_reg;
- uint8_t m_layer_mask_reg[4];
- int m_layer_scroll1x_offset;
- int m_layer_scroll2x_offset;
- int m_layer_scroll3x_offset;
- int m_sprite_base;
- int m_sprite_list_end_marker;
- int m_sprite_x_offset;
- std::unique_ptr<uint16_t[]> m_bootleg_sprite_ram;
- std::unique_ptr<uint16_t[]> m_bootleg_work_ram;
-
- optional_device<msm5205_device> m_msm_1;
- optional_device<msm5205_device> m_msm_2;
-
- optional_memory_bank m_okibank;
-
- optional_ioport_array<3> m_sgyxz_dsw;
-};
-
-class cps1bl_no_brgt : public fcrash_state
-{
-public:
- cps1bl_no_brgt(const machine_config &mconfig, device_type type, const char *tag)
- : fcrash_state(mconfig, type, tag)
- { }
-
-private:
- void fcrash_build_palette() override;
-};
-
-#endif // MAME_INCLUDES_FCRASH_H
diff --git a/src/mame/includes/fgoal.h b/src/mame/includes/fgoal.h
deleted file mode 100644
index f78fe681830..00000000000
--- a/src/mame/includes/fgoal.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-#ifndef MAME_INCLUDES_FGOAL_H
-#define MAME_INCLUDES_FGOAL_H
-
-#pragma once
-
-#include "machine/mb14241.h"
-#include "emupal.h"
-#include "screen.h"
-
-class fgoal_state : public driver_device
-{
-public:
- fgoal_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mb14241(*this, "mb14241"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_video_ram(*this, "video_ram")
- { }
-
- void fgoal(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(_80_r);
-
-protected:
- enum
- {
- TIMER_INTERRUPT
- };
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<mb14241_device> m_mb14241;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_video_ram;
-
- /* video-related */
- bitmap_ind16 m_bgbitmap;
- bitmap_ind16 m_fgbitmap;
- uint8_t m_xpos;
- uint8_t m_ypos;
- int m_current_color;
-
- /* misc */
- int m_player;
- uint8_t m_row;
- uint8_t m_col;
- int m_prev_coin;
- emu_timer *m_interrupt_timer;
-
- uint8_t analog_r();
- uint8_t nmi_reset_r();
- uint8_t irq_reset_r();
- uint8_t row_r();
- void row_w(uint8_t data);
- void col_w(uint8_t data);
- uint8_t address_hi_r();
- uint8_t address_lo_r();
- uint8_t shifter_r();
- uint8_t shifter_reverse_r();
- void sound1_w(uint8_t data);
- void sound2_w(uint8_t data);
- void color_w(uint8_t data);
- void ypos_w(uint8_t data);
- void xpos_w(uint8_t data);
-
- TIMER_CALLBACK_MEMBER(interrupt_callback);
-
- void fgoal_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- static int intensity(int bits);
- unsigned video_ram_address();
-
- void cpu_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_FGOAL_H
diff --git a/src/mame/includes/finalizr.h b/src/mame/includes/finalizr.h
deleted file mode 100644
index dee2693accc..00000000000
--- a/src/mame/includes/finalizr.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Konami Finalizer
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_FINALIZR_H
-#define MAME_INCLUDES_FINALIZR_H
-
-#pragma once
-
-#include "cpu/mcs48/mcs48.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class finalizr_state : public driver_device
-{
-public:
- finalizr_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_scroll(*this, "scroll"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_colorram2(*this, "colorram2"),
- m_videoram2(*this, "videoram2"),
- m_spriteram(*this, "spriteram"),
- m_spriteram_2(*this, "spriteram_2")
- { }
-
- void finalizr(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<i8039_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram2;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_spriteram_2;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_spriterambank;
- int m_charbank;
-
- /* misc */
- int m_T1_line;
- uint8_t m_nmi_enable;
- uint8_t m_irq_enable;
-
- void finalizr_coin_w(uint8_t data);
- void finalizr_flipscreen_w(uint8_t data);
- void finalizr_i8039_irq_w(uint8_t data);
- void i8039_irqen_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER(i8039_t1_r);
- void i8039_t0_w(uint8_t data);
- void finalizr_videoctrl_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void finalizr_palette(palette_device &palette) const;
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_finalizr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(finalizr_scanline);
- void main_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FINALIZR_H
diff --git a/src/mame/includes/firetrap.h b/src/mame/includes/firetrap.h
deleted file mode 100644
index def48ddd1d8..00000000000
--- a/src/mame/includes/firetrap.h
+++ /dev/null
@@ -1,123 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Fire Trap
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_FIRETRAP_H
-#define MAME_INCLUDES_FIRETRAP_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/74157.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class firetrap_state : public driver_device
-{
-public:
- firetrap_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bg1videoram(*this, "bg1videoram"),
- m_bg2videoram(*this, "bg2videoram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_mcu(*this, "mcu"),
- m_msm(*this, "msm"),
- m_adpcm_select(*this, "adpcm_select"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_coins(*this, "COINS")
- { }
-
- void firetrapbl(machine_config &config);
- void firetrap(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_bg1videoram;
- required_shared_ptr<uint8_t> m_bg2videoram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg1_tilemap;
- tilemap_t *m_bg2_tilemap;
- uint8_t m_scroll1_x[2];
- uint8_t m_scroll1_y[2];
- uint8_t m_scroll2_x[2];
- uint8_t m_scroll2_y[2];
-
- /* misc */
- int m_sound_irq_enable;
- int m_nmi_enable;
- int m_adpcm_toggle;
- int m_coin_command_pending;
-
- uint8_t m_mcu_p3;
- uint8_t m_maincpu_to_mcu;
- uint8_t m_mcu_to_maincpu;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<i8751_device> m_mcu;
- required_device<msm5205_device> m_msm;
- required_device<ls157_device> m_adpcm_select;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- optional_ioport m_coins;
-
- void nmi_disable_w(uint8_t data);
- void firetrap_bankselect_w(uint8_t data);
- void irqack_w(uint8_t data);
- uint8_t mcu_r();
- void mcu_w(uint8_t data);
- uint8_t mcu_p0_r();
- void mcu_p3_w(uint8_t data);
- uint8_t firetrap_8751_bootleg_r();
- void sound_command_w(uint8_t data);
- void sound_flip_flop_w(uint8_t data);
- void sound_bankselect_w(uint8_t data);
- void adpcm_data_w(uint8_t data);
- void flip_screen_w(uint8_t data);
- void firetrap_fgvideoram_w(offs_t offset, uint8_t data);
- void firetrap_bg1videoram_w(offs_t offset, uint8_t data);
- void firetrap_bg2videoram_w(offs_t offset, uint8_t data);
- void firetrap_bg1_scrollx_w(offs_t offset, uint8_t data);
- void firetrap_bg1_scrolly_w(offs_t offset, uint8_t data);
- void firetrap_bg2_scrollx_w(offs_t offset, uint8_t data);
- void firetrap_bg2_scrolly_w(offs_t offset, uint8_t data);
- TILEMAP_MAPPER_MEMBER(get_fg_memory_offset);
- TILEMAP_MAPPER_MEMBER(get_bg_memory_offset);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- void firetrap_palette(palette_device &palette) const;
- uint32_t screen_update_firetrap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
- inline void get_bg_tile_info(tile_data &tileinfo, int tile_index, uint8_t *bgvideoram, int gfx_region);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- DECLARE_WRITE_LINE_MEMBER(firetrap_adpcm_int);
- void firetrap_map(address_map &map);
- void firetrap_bootleg_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FIRETRAP_H
diff --git a/src/mame/includes/firetrk.h b/src/mame/includes/firetrk.h
deleted file mode 100644
index 53dcf701690..00000000000
--- a/src/mame/includes/firetrk.h
+++ /dev/null
@@ -1,182 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-/*************************************************************************
-
-Atari Fire Truck + Super Bug + Monte Carlo driver
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_FIRETRK_H
-#define MAME_INCLUDES_FIRETRK_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#define FIRETRUCK_MOTOR_DATA NODE_01
-#define FIRETRUCK_HORN_EN NODE_02
-#define FIRETRUCK_SIREN_DATA NODE_03
-#define FIRETRUCK_CRASH_DATA NODE_04
-#define FIRETRUCK_SKID_EN NODE_05
-#define FIRETRUCK_BELL_EN NODE_06
-#define FIRETRUCK_ATTRACT_EN NODE_07
-#define FIRETRUCK_XTNDPLY_EN NODE_08
-
-#define SUPERBUG_SPEED_DATA FIRETRUCK_MOTOR_DATA
-#define SUPERBUG_CRASH_DATA FIRETRUCK_CRASH_DATA
-#define SUPERBUG_SKID_EN FIRETRUCK_SKID_EN
-#define SUPERBUG_ASR_EN FIRETRUCK_XTNDPLY_EN
-#define SUPERBUG_ATTRACT_EN FIRETRUCK_ATTRACT_EN
-
-#define MONTECAR_MOTOR_DATA FIRETRUCK_MOTOR_DATA
-#define MONTECAR_CRASH_DATA FIRETRUCK_CRASH_DATA
-#define MONTECAR_DRONE_MOTOR_DATA FIRETRUCK_SIREN_DATA
-#define MONTECAR_SKID_EN FIRETRUCK_SKID_EN
-#define MONTECAR_DRONE_LOUD_DATA FIRETRUCK_BELL_EN
-#define MONTECAR_BEEPER_EN FIRETRUCK_XTNDPLY_EN
-#define MONTECAR_ATTRACT_INV FIRETRUCK_ATTRACT_EN
-
-
-class firetrk_state : public driver_device
-{
-public:
- firetrk_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_watchdog(*this, "watchdog")
- , m_discrete(*this, "discrete")
- , m_alpha_num_ram(*this, "alpha_num_ram")
- , m_playfield_ram(*this, "playfield_ram")
- , m_scroll_y(*this, "scroll_y")
- , m_scroll_x(*this, "scroll_x")
- , m_car_rot(*this, "car_rot")
- , m_blink(*this, "blink")
- , m_drone_x(*this, "drone_x")
- , m_drone_y(*this, "drone_y")
- , m_drone_rot(*this, "drone_rot")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_bit_0(*this, "BIT_0")
- , m_bit_6(*this, "BIT_6")
- , m_bit_7(*this, "BIT_7")
- , m_dips(*this, {"DIP_0", "DIP_1"})
- , m_steer(*this, "STEER_%u", 1U)
- , m_leds(*this, "led%u", 0U)
- { }
-
- void firetrk(machine_config &config);
- void montecar(machine_config &config);
- void superbug(machine_config &config);
-
- template <int P> DECLARE_READ_LINE_MEMBER(steer_dir_r);
- template <int P> DECLARE_READ_LINE_MEMBER(steer_flag_r);
- template <int P> DECLARE_READ_LINE_MEMBER(skid_r);
- template <int P> DECLARE_READ_LINE_MEMBER(crash_r);
- template <int P> DECLARE_READ_LINE_MEMBER(gear_r);
- DECLARE_INPUT_CHANGED_MEMBER(service_mode_switch_changed);
- DECLARE_INPUT_CHANGED_MEMBER(firetrk_horn_changed);
- DECLARE_INPUT_CHANGED_MEMBER(gear_changed);
-
-private:
- void firetrk_output_w(uint8_t data);
- void superbug_output_w(offs_t offset, uint8_t data);
- void montecar_output_1_w(uint8_t data);
- void montecar_output_2_w(uint8_t data);
- uint8_t firetrk_dip_r(offs_t offset);
- uint8_t montecar_dip_r(offs_t offset);
- uint8_t firetrk_input_r(offs_t offset);
- uint8_t montecar_input_r(offs_t offset);
- void blink_on_w(uint8_t data);
- void montecar_car_reset_w(uint8_t data);
- void montecar_drone_reset_w(uint8_t data);
- void steer_reset_w(uint8_t data);
- void crash_reset_w(uint8_t data);
- TILE_GET_INFO_MEMBER(firetrk_get_tile_info1);
- TILE_GET_INFO_MEMBER(superbug_get_tile_info1);
- TILE_GET_INFO_MEMBER(montecar_get_tile_info1);
- TILE_GET_INFO_MEMBER(firetrk_get_tile_info2);
- TILE_GET_INFO_MEMBER(superbug_get_tile_info2);
- TILE_GET_INFO_MEMBER(montecar_get_tile_info2);
- void firetrk_palette(palette_device &palette);
- DECLARE_VIDEO_START(superbug);
- DECLARE_VIDEO_START(montecar);
- void montecar_palette(palette_device &palette);
- uint32_t screen_update_firetrk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_superbug(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_montecar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(firetrk_scanline);
- void firetrk_skid_reset_w(uint8_t data);
- void montecar_skid_reset_w(uint8_t data);
- void firetrk_crash_snd_w(uint8_t data);
- void firetrk_skid_snd_w(uint8_t data);
- void firetrk_motor_snd_w(uint8_t data);
- void superbug_motor_snd_w(uint8_t data);
- void firetrk_xtndply_w(uint8_t data);
- void prom_to_palette(int number, uint8_t val);
- void firetrk_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, int which, int flash);
- void superbug_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, int flash);
- void montecar_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, int which, int is_collision_detection);
- void check_collision(int which);
- void set_service_mode(int enable);
- void draw_text(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *alpha_ram, int x, int count, int height);
- void firetrk_map(address_map &map);
- void montecar_map(address_map &map);
- void superbug_map(address_map &map);
-
- virtual void machine_start() override { m_leds.resolve(); }
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<discrete_device> m_discrete;
- required_shared_ptr<uint8_t> m_alpha_num_ram;
- required_shared_ptr<uint8_t> m_playfield_ram;
- required_shared_ptr<uint8_t> m_scroll_y;
- required_shared_ptr<uint8_t> m_scroll_x;
- required_shared_ptr<uint8_t> m_car_rot;
- optional_shared_ptr<uint8_t> m_blink;
- optional_shared_ptr<uint8_t> m_drone_x;
- optional_shared_ptr<uint8_t> m_drone_y;
- optional_shared_ptr<uint8_t> m_drone_rot;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- optional_ioport m_bit_0;
- optional_ioport m_bit_6;
- optional_ioport m_bit_7;
- required_ioport_array<2> m_dips;
- optional_ioport_array<2> m_steer;
- output_finder<4> m_leds;
-
- uint8_t m_in_service_mode;
- uint32_t m_dial[2];
- uint8_t m_steer_dir[2];
- uint8_t m_steer_flag[2];
- uint8_t m_gear;
-
- uint8_t m_flash;
- uint8_t m_crash[2];
- uint8_t m_skid[2];
- bitmap_ind16 m_helper1;
- bitmap_ind16 m_helper2;
- uint32_t m_color1_mask;
- uint32_t m_color2_mask;
- tilemap_t *m_tilemap1;
- tilemap_t *m_tilemap2;
-};
-
-
-/*----------- defined in audio/firetrk.c -----------*/
-
-DISCRETE_SOUND_EXTERN( firetrk_discrete );
-DISCRETE_SOUND_EXTERN( superbug_discrete );
-DISCRETE_SOUND_EXTERN( montecar_discrete );
-
-#endif // MAME_INCLUDES_FIRETRK_H
diff --git a/src/mame/includes/fitfight.h b/src/mame/includes/fitfight.h
deleted file mode 100644
index 1fbe592c52b..00000000000
--- a/src/mame/includes/fitfight.h
+++ /dev/null
@@ -1,95 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_FITFIGHT_H
-#define MAME_INCLUDES_FITFIGHT_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class fitfight_state : public driver_device
-{
-public:
- fitfight_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_fof_100000(*this, "fof_100000"),
- m_fof_600000(*this, "fof_600000"),
- m_fof_700000(*this, "fof_700000"),
- m_fof_800000(*this, "fof_800000"),
- m_fof_900000(*this, "fof_900000"),
- m_fof_a00000(*this, "fof_a00000"),
- m_fof_bak_tileram(*this, "fof_bak_tileram"),
- m_fof_mid_tileram(*this, "fof_mid_tileram"),
- m_fof_txt_tileram(*this, "fof_txt_tileram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void bbprot(machine_config &config);
- void fitfight(machine_config &config);
-
- void init_hotmindff();
- void init_fitfight();
- void init_histryma();
- void init_bbprot();
-
-private:
- uint16_t fitfight_700000_r();
- uint16_t histryma_700000_r();
- uint16_t bbprot_700000_r();
- void fitfight_700000_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t snd_porta_r();
- uint8_t snd_portb_r();
- uint8_t snd_portc_r();
- void snd_porta_w(uint8_t data);
- void snd_portb_w(uint8_t data);
- void snd_portc_w(uint8_t data);
- void fof_bak_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fof_mid_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fof_txt_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t hotmindff_unk_r();
- TILE_GET_INFO_MEMBER(get_fof_bak_tile_info);
- TILE_GET_INFO_MEMBER(get_fof_mid_tile_info);
- TILE_GET_INFO_MEMBER(get_fof_txt_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_fitfight(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int layer );
- void bbprot_main_map(address_map &map);
- void fitfight_main_map(address_map &map);
- void snd_mem(address_map &map);
-
- // memory pointers
- required_shared_ptr<uint16_t> m_fof_100000;
- required_shared_ptr<uint16_t> m_fof_600000;
- required_shared_ptr<uint16_t> m_fof_700000;
- required_shared_ptr<uint16_t> m_fof_800000;
- required_shared_ptr<uint16_t> m_fof_900000;
- required_shared_ptr<uint16_t> m_fof_a00000;
- required_shared_ptr<uint16_t> m_fof_bak_tileram;
- required_shared_ptr<uint16_t> m_fof_mid_tileram;
- required_shared_ptr<uint16_t> m_fof_txt_tileram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- // video-related
- tilemap_t *m_fof_bak_tilemap;
- tilemap_t *m_fof_mid_tilemap;
- tilemap_t *m_fof_txt_tilemap;
-
- // misc
- int m_bbprot_kludge;
- uint16_t m_fof_700000_data;
-
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-};
-
-#endif // MAME_INCLUDES_FITFIGHT_H
diff --git a/src/mame/includes/flkatck.h b/src/mame/includes/flkatck.h
deleted file mode 100644
index 4f2d01a8516..00000000000
--- a/src/mame/includes/flkatck.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Flak Attack / MX5000
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_FLKATCK_H
-#define MAME_INCLUDES_FLKATCK_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/watchdog.h"
-#include "machine/k007452.h"
-#include "sound/k007232.h"
-#include "video/k007121.h"
-#include "tilemap.h"
-
-class flkatck_state : public driver_device
-{
-public:
- flkatck_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_vram(*this, "vram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k007121(*this, "k007121"),
- m_k007232(*this, "k007232"),
- m_k007452(*this, "k007452"),
- m_watchdog(*this, "watchdog"),
- m_gfxdecode(*this, "gfxdecode"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void flkatck(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_vram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_k007121_tilemap[2];
- int m_flipscreen;
-
- /* misc */
- int m_irq_enabled;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k007121_device> m_k007121;
- required_device<k007232_device> m_k007232;
- required_device<k007452_device> m_k007452;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void flkatck_bankswitch_w(uint8_t data);
- uint8_t flkatck_ls138_r(offs_t offset);
- void flkatck_ls138_w(offs_t offset, uint8_t data);
- void vram_w(offs_t offset, uint8_t data);
- void flkatck_k007121_regs_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info_A);
- TILE_GET_INFO_MEMBER(get_tile_info_B);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_flkatck(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(flkatck_interrupt);
- void volume_callback(uint8_t data);
- void flkatck_map(address_map &map);
- void flkatck_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FLKATCK_H
diff --git a/src/mame/includes/flstory.h b/src/mame/includes/flstory.h
deleted file mode 100644
index 0b78de87c6b..00000000000
--- a/src/mame/includes/flstory.h
+++ /dev/null
@@ -1,127 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_FLSTORY_H
-#define MAME_INCLUDES_FLSTORY_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "sound/msm5232.h"
-#include "machine/taito68705interface.h"
-#include "sound/ta7630.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class flstory_state : public driver_device
-{
-public:
- flstory_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_scrlram(*this, "scrlram"),
- m_workram(*this, "workram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_bmcu(*this, "bmcu"),
- m_msm(*this, "msm"),
- m_ay(*this, "aysnd"),
- m_ta7630(*this, "ta7630"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_soundnmi(*this, "soundnmi"),
- m_extraio1(*this, "EXTRA_P1")
- { }
-
- void common(machine_config &config);
- void flstory(machine_config &config);
- void rumba(machine_config &config);
- void onna34ro(machine_config &config);
- void victnine(machine_config &config);
- void onna34ro_mcu(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scrlram;
- optional_shared_ptr<uint8_t> m_workram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- std::vector<uint8_t> m_paletteram;
- std::vector<uint8_t> m_paletteram_ext;
- uint8_t m_gfxctrl;
- uint8_t m_char_bank;
- uint8_t m_palette_bank;
-
- /* sound-related */
- uint8_t m_snd_ctrl0;
- uint8_t m_snd_ctrl1;
- uint8_t m_snd_ctrl2;
- uint8_t m_snd_ctrl3;
-
- /* protection sims */
- uint8_t m_from_mcu;
- int m_mcu_select;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<taito68705_mcu_device> m_bmcu;
- required_device<msm5232_device> m_msm;
- required_device<ay8910_device> m_ay;
- required_device<ta7630_device> m_ta7630;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
- required_device<input_merger_device> m_soundnmi;
- optional_ioport m_extraio1;
-
- uint8_t snd_flag_r();
- void snd_reset_w(uint8_t data);
- uint8_t flstory_mcu_status_r();
- uint8_t victnine_mcu_status_r();
- void flstory_videoram_w(offs_t offset, uint8_t data);
- void flstory_palette_w(offs_t offset, uint8_t data);
- uint8_t flstory_palette_r(offs_t offset);
- void flstory_gfxctrl_w(uint8_t data);
- uint8_t victnine_gfxctrl_r();
- void victnine_gfxctrl_w(uint8_t data);
- void flstory_scrlram_w(offs_t offset, uint8_t data);
- void sound_control_0_w(uint8_t data);
- void sound_control_1_w(uint8_t data);
- void sound_control_2_w(uint8_t data);
- void sound_control_3_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- TILE_GET_INFO_MEMBER(victnine_get_tile_info);
- TILE_GET_INFO_MEMBER(get_rumba_tile_info);
- DECLARE_MACHINE_RESET(flstory);
- DECLARE_VIDEO_START(flstory);
- DECLARE_VIDEO_START(victnine);
- DECLARE_MACHINE_RESET(rumba);
- DECLARE_VIDEO_START(rumba);
- DECLARE_MACHINE_RESET(ta7630);
- uint32_t screen_update_flstory(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_victnine(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_rumba(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void flstory_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int pri );
- void victnine_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void base_map(address_map &map);
- void flstory_map(address_map &map);
- void onna34ro_map(address_map &map);
- void onna34ro_mcu_map(address_map &map);
- void rumba_map(address_map &map);
- void sound_map(address_map &map);
- void victnine_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FLSTORY_H
diff --git a/src/mame/includes/fm7.h b/src/mame/includes/fm7.h
deleted file mode 100644
index 77f88e12720..00000000000
--- a/src/mame/includes/fm7.h
+++ /dev/null
@@ -1,424 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Barry Rodewald
-/*
- *
- * FM-7 header file
- *
- */
-#ifndef MAME_INCLUDES_FM7_H
-#define MAME_INCLUDES_FM7_H
-
-#pragma once
-
-
-#include "machine/buffer.h"
-#include "bus/centronics/ctronics.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "sound/beep.h"
-#include "sound/ym2203.h"
-#include "machine/wd_fdc.h"
-#include "machine/bankdev.h"
-#include "emupal.h"
-
-
-class fm7_state : public driver_device
-{
-public:
- fm7_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_shared_ram(*this, "shared_ram"),
- m_a15_ram(*this, "a15_ram"),
- m_vectors(*this, "vectors"),
- m_maincpu(*this, "maincpu"),
- m_sub(*this, "sub"),
- m_cassette(*this, "cassette"),
- m_beeper(*this, "beeper"),
- m_psg(*this, "psg"),
- m_screen(*this, "screen"),
- m_centronics(*this, "centronics"),
- m_cent_data_out(*this, "cent_data_out"),
- m_fdc(*this, "fdc"),
- m_floppy0(*this, "fdc:0"),
- m_floppy1(*this, "fdc:1"),
- m_floppy(nullptr),
- m_rom_ptr(*this, "init"),
- m_btrom_ptr(*this, "boot"),
- m_basic_ptr(*this, "fbasic"),
- m_kanji(*this, "kanji1"),
- m_kb_ports(*this, "key%u", 1),
- m_keymod(*this, "key_modifiers"),
- m_joy1(*this, "joy1"),
- m_dsw(*this, "DSW"),
- m_palette(*this, "palette"),
- m_av_palette(*this, "av_palette")
- {
- }
-
- void fm16beta(machine_config &config);
- void fm8(machine_config &config);
- void fm7(machine_config &config);
-
- void init_fm7();
-
-protected:
- // Interrupt flags
- enum : uint8_t
- {
- IRQ_FLAG_KEY = 0x01,
- IRQ_FLAG_PRINTER = 0x02,
- IRQ_FLAG_TIMER = 0x04,
- IRQ_FLAG_OTHER = 0x08,
- // the following are not read in port 0xfd03
- IRQ_FLAG_MFD = 0x10,
- IRQ_FLAG_TXRDY = 0x20,
- IRQ_FLAG_RXRDY = 0x40,
- IRQ_FLAG_SYNDET = 0x80
- };
-
- // system types
- enum
- {
- SYS_FM7 = 1,
- SYS_FM77AV = 2,
- SYS_FM77AV40EX = 3,
- SYS_FM11 = 4,
- SYS_FM16 = 5
- };
-
- // keyboard scancode formats
- enum
- {
- KEY_MODE_FM7 = 0, // FM-7 ASCII type code
- KEY_MODE_FM16B = 1, // FM-16B (FM-77AV and later only)
- KEY_MODE_SCAN = 2 // Scancode Make/Break (PC-like)
- };
-
- struct fm7_video_t
- {
- uint8_t sub_busy;
- uint8_t sub_halt;
- uint8_t sub_reset; // high if reset caused by subrom change
- uint8_t attn_irq;
- uint8_t vram_access; // VRAM access flag
- uint8_t crt_enable;
- uint16_t vram_offset;
- uint16_t vram_offset2;
- uint8_t fm7_pal[8];
- uint16_t fm77av_pal_selected;
- uint8_t subrom; // currently active sub CPU ROM (AV only)
- uint8_t cgrom; // currently active CGROM (AV only)
- uint8_t modestatus;
- uint8_t multi_page;
- uint8_t fine_offset;
- uint8_t nmi_mask;
- uint8_t active_video_page;
- uint8_t display_video_page;
- uint8_t vsync_flag;
- };
-
- struct fm7_alu_t
- {
- uint8_t command;
- uint8_t lcolour;
- uint8_t mask;
- uint8_t compare_data;
- uint8_t compare[8];
- uint8_t bank_disable;
- uint8_t tilepaint_b;
- uint8_t tilepaint_r;
- uint8_t tilepaint_g;
- uint16_t addr_offset;
- uint16_t line_style;
- uint16_t x0;
- uint16_t x1;
- uint16_t y0;
- uint16_t y1;
- uint8_t busy;
- };
-
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- virtual void fm7_alu_function(uint32_t offset) { }
- virtual void fm7_mmr_refresh(address_space &space) { }
-
- DECLARE_MACHINE_START(fm7);
- DECLARE_MACHINE_START(fm16);
-
- DECLARE_WRITE_LINE_MEMBER(fdc_intrq_w);
- DECLARE_WRITE_LINE_MEMBER(fdc_drq_w);
-
- uint8_t subintf_r();
- void subintf_w(uint8_t data);
- uint8_t sub_busyflag_r();
- void sub_busyflag_w(uint8_t data);
- uint8_t cancel_ack();
- uint8_t attn_irq_r();
- uint8_t vram_access_r();
- void vram_access_w(uint8_t data);
- uint8_t vram_r(offs_t offset);
- void vram_w(offs_t offset, uint8_t data);
- uint8_t crt_r();
- void crt_w(uint8_t data);
- void vram_offset_w(offs_t offset, uint8_t data);
- void multipage_w(uint8_t data);
- uint8_t palette_r(offs_t offset);
- void palette_w(offs_t offset, uint8_t data);
- void irq_mask_w(uint8_t data);
- uint8_t irq_cause_r();
- void beeper_w(uint8_t data);
- uint8_t sub_beeper_r();
- uint8_t fd04_r();
- uint8_t rom_en_r(address_space &space);
- void rom_en_w(address_space &space, uint8_t data);
- uint8_t fdc_r(offs_t offset);
- void fdc_w(offs_t offset, uint8_t data);
- uint8_t keyboard_r(offs_t offset);
- uint8_t sub_keyboard_r(offs_t offset);
- uint8_t cassette_printer_r();
- void cassette_printer_w(offs_t offset, uint8_t data);
- uint8_t psg_select_r();
- void psg_select_w(uint8_t data);
- uint8_t psg_data_r();
- void psg_data_w(uint8_t data);
- uint8_t main_shared_r(offs_t offset);
- void main_shared_w(offs_t offset, uint8_t data);
- uint8_t unknown_r();
- uint8_t kanji_r(offs_t offset);
- void kanji_w(offs_t offset, uint8_t data);
-
- IRQ_CALLBACK_MEMBER(irq_ack);
- IRQ_CALLBACK_MEMBER(sub_irq_ack);
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_fault);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_ack);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
-
- uint32_t screen_update_fm7(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void fm16_io(address_map &map);
- void fm16_mem(address_map &map);
- void fm16_sub_mem(address_map &map);
- void fm7_mem(address_map &map);
- void fm7_sub_mem(address_map &map);
- void fm8_mem(address_map &map);
-
- optional_shared_ptr<uint8_t> m_shared_ram;
- optional_shared_ptr<uint8_t> m_a15_ram;
- optional_shared_ptr<uint8_t> m_vectors;
-
- uint8_t m_irq_flags;
- uint8_t m_irq_mask;
- emu_timer* m_beeper_off_timer;
- emu_timer* m_timer;
- emu_timer* m_subtimer;
- emu_timer* m_keyboard_timer;
- bool m_basic_rom_en;
- bool m_init_rom_en;
-
- unsigned int m_key_delay;
- unsigned int m_key_repeat;
- uint16_t m_current_scancode;
- uint32_t m_key_data[4];
- uint32_t m_mod_data;
- uint8_t m_key_scan_mode;
- uint8_t m_break_flag;
-
- uint8_t m_psg_regsel;
- uint8_t m_psg_data;
-
- uint8_t m_fdc_side;
- uint8_t m_fdc_drive;
- uint8_t m_fdc_irq_flag;
- uint8_t m_fdc_drq_flag;
-
- uint8_t m_speaker_active;
-
- uint16_t m_kanji_address;
- uint8_t m_cp_prev;
-
- std::unique_ptr<uint8_t[]> m_video_ram;
- uint8_t m_type;
- fm7_video_t m_video;
- fm7_alu_t m_alu;
- int m_sb_prev;
-
- TIMER_CALLBACK_MEMBER(beeper_off);
- TIMER_CALLBACK_MEMBER(timer_irq);
- TIMER_CALLBACK_MEMBER(subtimer_irq);
- TIMER_CALLBACK_MEMBER(keyboard_poll);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_sub;
- required_device<cassette_image_device> m_cassette;
- required_device<beep_device> m_beeper;
- optional_device<ay8910_device> m_psg;
- required_device<screen_device> m_screen;
-
- required_device<centronics_device> m_centronics;
- required_device<output_latch_device> m_cent_data_out;
-
- required_device<mb8877_device> m_fdc;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- floppy_image_device *m_floppy;
-
- optional_region_ptr<uint8_t> m_rom_ptr;
- optional_region_ptr<uint8_t> m_btrom_ptr;
- optional_region_ptr<uint8_t> m_basic_ptr;
-
- void main_irq_set_flag(uint8_t flag);
- void main_irq_clear_flag(uint8_t flag);
- virtual void fm7_update_psg();
- void key_press(uint16_t scancode);
- void keyboard_poll_scan();
-
- int m_centronics_busy;
- int m_centronics_fault;
- int m_centronics_ack;
- int m_centronics_perror;
-
- optional_memory_region m_kanji;
- required_ioport_array<3> m_kb_ports;
- required_ioport m_keymod;
- required_ioport m_joy1;
- required_ioport m_dsw;
- required_device<palette_device> m_palette;
- optional_device<palette_device> m_av_palette;
-};
-
-class fm77_state : public fm7_state
-{
-public:
- fm77_state(const machine_config &mconfig, device_type type, const char *tag) :
- fm7_state(mconfig, type, tag),
- m_avbank(*this, "av_bank%u", 1),
- m_ym(*this, "ym"),
- m_boot_ram(*this, "boot_ram"),
- m_extended_ram(*this, "extended_ram"),
- m_fbasic_bank_ram(*this, "fbasic_bank_w"),
- m_init_bank_ram(*this, "init_bank_w")
- {
- }
-
- void fm77av(machine_config &config);
-
-protected:
- struct fm7_encoder_t
- {
- uint8_t buffer[12];
- uint8_t tx_count;
- uint8_t rx_count;
- uint8_t command_length;
- uint8_t answer_length;
- uint8_t latch; // 0=ready to receive
- uint8_t ack;
- uint8_t position;
- };
-
- struct fm7_mmr_t
- {
- uint8_t bank_addr[8][16];
- uint8_t segment;
- uint8_t window_offset;
- uint8_t enabled;
- uint8_t mode;
- };
-
- virtual void machine_reset() override;
-
- DECLARE_MACHINE_START(fm77av);
-
- void av_encoder_setup_command();
- void av_encoder_handle_command();
- TIMER_CALLBACK_MEMBER(av_encoder_ack);
- TIMER_CALLBACK_MEMBER(av_alu_task_end);
- TIMER_CALLBACK_MEMBER(av_vsync);
-
- DECLARE_WRITE_LINE_MEMBER(av_fmirq);
-
- void av_analog_palette_w(offs_t offset, uint8_t data);
- uint8_t av_video_flags_r();
- void av_video_flags_w(uint8_t data);
- uint8_t av_sub_modestatus_r();
- void av_sub_modestatus_w(uint8_t data);
- void av_sub_bank_w(uint8_t data);
- uint8_t av_alu_r(offs_t offset);
- void av_alu_w(offs_t offset, uint8_t data);
- void av_bootram_w(offs_t offset, uint8_t data);
- uint8_t av_key_encoder_r(offs_t offset);
- void av_key_encoder_w(offs_t offset, uint8_t data);
- uint8_t av_boot_mode_r();
- void av_ym_select_w(uint8_t data);
- uint8_t vector_r(offs_t offset);
- void init_en_w(address_space &space, uint8_t data);
- uint8_t fmirq_r();
- virtual void fm7_update_psg() override;
-
- uint8_t mmr_r(offs_t offset);
- void mmr_w(address_space &space, offs_t offset, uint8_t data);
- void fm7_update_bank(int bank, uint8_t physical);
- virtual void fm7_mmr_refresh(address_space &space) override;
-
- void alu_mask_write(uint32_t offset, int bank, uint8_t dat);
- void alu_function_compare(uint32_t offset);
- void alu_function_pset(uint32_t offset);
- void alu_function_or(uint32_t offset);
- void alu_function_and(uint32_t offset);
- void alu_function_xor(uint32_t offset);
- void alu_function_not(uint32_t offset);
- void alu_function_invalid(uint32_t offset);
- void alu_function_tilepaint(uint32_t offset);
- virtual void fm7_alu_function(uint32_t offset) override;
- uint32_t av_line_set_pixel(int x, int y);
- void av_line_draw();
-
- void fm77av_mem(address_map &map);
- void fm77av_sub_mem(address_map &map);
- void fm7_banked_mem(address_map &map);
-
- required_device_array<address_map_bank_device, 16> m_avbank;
- optional_device<ym2203_device> m_ym;
- required_shared_ptr<uint8_t> m_boot_ram;
- required_shared_ptr<uint8_t> m_extended_ram;
- required_shared_ptr<uint8_t> m_fbasic_bank_ram;
- required_shared_ptr<uint8_t> m_init_bank_ram;
-
- fm7_encoder_t m_encoder;
- fm7_mmr_t m_mmr;
-
- emu_timer *m_encoder_ack_timer;
- emu_timer *m_alu_task_end_timer;
- emu_timer *m_vsync_timer;
-
- uint8_t m_fm77av_ym_irq;
-};
-
-class fm11_state : public fm77_state
-{
-public:
- fm11_state(const machine_config &mconfig, device_type type, const char *tag) :
- fm77_state(mconfig, type, tag),
- m_x86(*this, "x86")
- {
- }
-
- void fm11(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
-private:
- DECLARE_MACHINE_START(fm11);
-
- void fm11_mem(address_map &map);
- void fm11_sub_mem(address_map &map);
- void fm11_x86_io(address_map &map);
- void fm11_x86_mem(address_map &map);
-
- required_device<cpu_device> m_x86;
-};
-
-#endif // MAME_INCLUDES_FM7_H
diff --git a/src/mame/includes/fmtowns.h b/src/mame/includes/fmtowns.h
deleted file mode 100644
index 9c48c9c1f4e..00000000000
--- a/src/mame/includes/fmtowns.h
+++ /dev/null
@@ -1,466 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Barry Rodewald
-#ifndef MAME_INCLUDES_FMTOWNS_H
-#define MAME_INCLUDES_FMTOWNS_H
-
-#pragma once
-
-#include "cpu/i386/i386.h"
-#include "imagedev/chd_cd.h"
-#include "imagedev/floppy.h"
-#include "machine/fm_scsi.h"
-#include "machine/fmt_icmem.h"
-#include "machine/nvram.h"
-#include "machine/pic8259.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/upd71071.h"
-#include "machine/wd_fdc.h"
-#include "machine/i8251.h"
-#include "machine/msm58321.h"
-#include "sound/cdda.h"
-#include "sound/rf5c68.h"
-#include "sound/spkrdev.h"
-#include "sound/ym2612.h"
-
-#include "bus/generic/carts.h"
-#include "bus/generic/slot.h"
-#include "bus/rs232/rs232.h"
-#include "bus/fmt_scsi/fmt_scsi.h"
-#include "bus/fmt_scsi/fmt121.h"
-
-#include "formats/fmtowns_dsk.h"
-
-#include "emupal.h"
-
-
-#define IRQ_LOG 0 // set to 1 to log IRQ line activity
-
-struct towns_cdrom_controller
-{
- uint8_t command;
- uint8_t status;
- uint8_t cmd_status[4];
- uint8_t cmd_status_ptr;
- uint8_t extra_status;
- uint8_t parameter[8];
- uint8_t mpu_irq_enable;
- uint8_t dma_irq_enable;
- uint8_t buffer[2048];
- int32_t buffer_ptr;
- uint32_t lba_current;
- uint32_t lba_last;
- uint32_t cdda_current;
- uint32_t cdda_length;
- bool software_tx;
- emu_timer* read_timer;
-};
-
-struct towns_video_controller
-{
- uint8_t towns_vram_wplane;
- uint8_t towns_vram_rplane;
- uint8_t towns_vram_page_sel;
- uint8_t towns_palette_select;
- uint8_t towns_palette_r[256];
- uint8_t towns_palette_g[256];
- uint8_t towns_palette_b[256];
- uint8_t towns_degipal[8];
- uint8_t towns_dpmd_flag;
- uint8_t towns_crtc_mix;
- uint8_t towns_crtc_sel; // selected CRTC register
- uint16_t towns_crtc_reg[32];
- uint8_t towns_video_sel; // selected video register
- uint8_t towns_video_reg[2];
- uint8_t towns_sprite_sel; // selected sprite register
- uint8_t towns_sprite_reg[8];
- uint8_t towns_sprite_flag; // sprite drawing flag
- uint8_t towns_sprite_page; // VRAM page (not layer) sprites are drawn to
- uint8_t towns_tvram_enable;
- uint16_t towns_kanji_offset;
- uint8_t towns_kanji_code_h;
- uint8_t towns_kanji_code_l;
- rectangle towns_crtc_layerscr[2]; // each layer has independent sizes
- uint8_t towns_display_plane;
- uint8_t towns_display_page_sel;
- uint8_t towns_vblank_flag;
- uint8_t towns_layer_ctrl;
- emu_timer* sprite_timer;
-};
-
-class towns_state : public driver_device
-{
- public:
- towns_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_ram(*this, RAM_TAG)
- , m_maincpu(*this, "maincpu")
- , m_dma(*this, "dma_%u", 1U)
- , m_scsi(*this, "fmscsi")
- , m_flop(*this, "fdc:%u", 0U)
- , m_speaker(*this, "speaker")
- , m_pic_master(*this, "pic8259_master")
- , m_pic_slave(*this, "pic8259_slave")
- , m_pit(*this, "pit")
- , m_palette(*this, "palette256")
- , m_palette16(*this, "palette16_%u", 0U)
- , m_fdc(*this, "fdc")
- , m_icmemcard(*this, "icmemcard")
- , m_i8251(*this, "i8251")
- , m_rs232(*this, "rs232c")
- , m_screen(*this, "screen")
- , m_rtc(*this, "rtc58321")
- , m_dma_1(*this, "dma_1")
- , m_cdrom(*this, "cdrom")
- , m_cdda(*this, "cdda")
- , m_scsi_slot(*this, "scsislot")
- , m_bank_cb000_r(*this, "bank_cb000_r")
- , m_bank_cb000_w(*this, "bank_cb000_w")
- , m_bank_f8000_r(*this, "bank_f8000_r")
- , m_bank_f8000_w(*this, "bank_f8000_w")
- , m_nvram(*this, "nvram")
- , m_nvram16(*this, "nvram16")
- , m_ctrltype(*this, "ctrltype")
- , m_kb_ports(*this, "key%u", 1U)
- , m_joy1(*this, "joy1")
- , m_joy2(*this, "joy2")
- , m_joy1_ex(*this, "joy1_ex")
- , m_joy2_ex(*this, "joy2_ex")
- , m_6b_joy1(*this, "6b_joy1")
- , m_6b_joy2(*this, "6b_joy2")
- , m_6b_joy1_ex(*this, "6b_joy1_ex")
- , m_6b_joy2_ex(*this, "6b_joy2_ex")
- , m_mouse1(*this, "mouse1")
- , m_mouse2(*this, "mouse2")
- , m_mouse3(*this, "mouse3")
- , m_user(*this,"user")
- , m_serial(*this,"serial")
- { }
-
- void towns_base(machine_config &config);
- void towns(machine_config &config);
- void townsftv(machine_config &config);
- void townshr(machine_config &config);
- void townsmx(machine_config &config);
- void townssj(machine_config &config);
-
- INTERRUPT_GEN_MEMBER(towns_vsync_irq);
-
-protected:
- uint16_t m_towns_machine_id; // default is 0x0101
-
- void marty_mem(address_map &map);
- void pcm_mem(address_map &map);
- void towns16_io(address_map &map);
- void towns_io(address_map &map);
- void towns_1g_io(address_map &map);
- void towns2_io(address_map &map);
- void townsux_io(address_map &map);
- void towns_mem(address_map &map);
- void ux_mem(address_map &map);
-
- virtual void driver_start() override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<ram_device> m_ram;
- required_device<cpu_device> m_maincpu;
-
- required_device_array<upd71071_device, 2> m_dma;
- optional_device<fmscsi_device> m_scsi;
- required_device_array<floppy_connector, 2> m_flop;
- static void floppy_formats(format_registration &fr);
-
- DECLARE_WRITE_LINE_MEMBER(towns_scsi_irq);
- DECLARE_WRITE_LINE_MEMBER(towns_scsi_drq);
-
-private:
- /* devices */
- required_device<speaker_sound_device> m_speaker;
- required_device<pic8259_device> m_pic_master;
- required_device<pic8259_device> m_pic_slave;
- required_device<pit8253_device> m_pit;
- required_device<palette_device> m_palette;
- required_device_array<palette_device, 2> m_palette16;
- required_device<mb8877_device> m_fdc;
- required_device<fmt_icmem_device> m_icmemcard;
- required_device<i8251_device> m_i8251;
- required_device<rs232_port_device> m_rs232;
- required_device<screen_device> m_screen;
- required_device<msm58321_device> m_rtc;
- required_device<upd71071_device> m_dma_1;
- required_device<cdrom_image_device> m_cdrom;
- required_device<cdda_device> m_cdda;
- optional_device<fmt_scsi_slot_device> m_scsi_slot;
-
- required_memory_bank m_bank_cb000_r;
- required_memory_bank m_bank_cb000_w;
- required_memory_bank m_bank_f8000_r;
- required_memory_bank m_bank_f8000_w;
-
- uint16_t m_ftimer;
- uint16_t m_freerun_timer;
- emu_timer* m_towns_freerun_counter;
- uint16_t m_intervaltimer2_period;
- uint8_t m_intervaltimer2_irqmask;
- uint8_t m_intervaltimer2_timeout_flag;
- uint8_t m_intervaltimer2_timeout_flag2;
- emu_timer* m_towns_intervaltimer2;
- uint8_t m_nmi_mask;
- uint8_t m_compat_mode;
- uint8_t m_towns_system_port;
- uint32_t m_towns_ankcg_enable;
- uint32_t m_towns_mainmem_enable;
- uint32_t m_towns_ram_enable;
- std::unique_ptr<uint32_t[]> m_towns_vram;
- std::unique_ptr<uint8_t[]> m_towns_gfxvram;
- std::unique_ptr<uint8_t[]> m_towns_txtvram;
- int m_towns_selected_drive;
- uint8_t m_towns_fdc_irq6mask;
- std::unique_ptr<uint8_t[]> m_towns_serial_rom;
- int m_towns_srom_position;
- uint8_t m_towns_srom_clk;
- uint8_t m_towns_srom_reset;
- uint8_t m_towns_rtc_select;
- uint8_t m_towns_rtc_data;
- uint8_t m_towns_timer_mask;
- uint8_t m_towns_kb_status;
- uint8_t m_towns_kb_irq1_enable;
- uint8_t m_towns_kb_output; // key output
- uint8_t m_towns_kb_extend; // extended key output
- emu_timer* m_towns_kb_timer;
- emu_timer* m_towns_mouse_timer;
- uint8_t m_towns_fm_irq_flag;
- uint8_t m_towns_pcm_irq_flag;
- uint8_t m_towns_pcm_channel_flag;
- uint8_t m_towns_pcm_channel_mask;
- uint8_t m_towns_pad_mask;
- uint8_t m_towns_mouse_output;
- uint8_t m_towns_mouse_x;
- uint8_t m_towns_mouse_y;
- uint8_t m_towns_volume[4]; // volume ports
- uint8_t m_towns_volume_select;
- uint8_t m_towns_scsi_control;
- uint8_t m_towns_scsi_status;
- uint8_t m_towns_spkrdata;
- uint8_t m_pit_out0;
- uint8_t m_pit_out1;
- uint8_t m_pit_out2;
- uint8_t m_timer0;
- uint8_t m_timer1;
-
- uint8_t m_serial_irq_source;
- uint8_t m_serial_irq_enable; // RS232 interrupt control
-
- enum
- {
- TXC_EXTERNAL = 0x80,
- RXC_EXTERNAL = 0x40,
- ER_CONTROL = 0x20,
- CI_IRQ_ENABLE = 0x10,
- CS_IRQ_ENABLE = 0x08,
- SYNDET_IRQ_ENABLE = 0x04,
- RXRDY_IRQ_ENABLE = 0x02,
- TXRDY_IRQ_ENABLE = 0x01
- };
-
- emu_timer* m_towns_wait_timer;
- emu_timer* m_towns_status_timer;
- emu_timer* m_towns_cdda_timer;
- struct towns_cdrom_controller m_towns_cd;
- struct towns_video_controller m_video;
-
- uint32_t m_kb_prev[4];
- uint8_t m_prev_pad_mask;
- uint8_t m_prev_x;
- uint8_t m_prev_y;
-
- optional_shared_ptr<uint32_t> m_nvram;
- optional_shared_ptr<uint16_t> m_nvram16;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- uint8_t towns_system_r(offs_t offset);
- void towns_system_w(offs_t offset, uint8_t data);
- uint8_t towns_intervaltimer2_r(offs_t offset);
- void towns_intervaltimer2_w(offs_t offset, uint8_t data);
- uint8_t towns_sys6c_r();
- void towns_sys6c_w(uint8_t data);
- template<int Chip> uint8_t towns_dma_r(offs_t offset);
- template<int Chip> void towns_dma_w(offs_t offset, uint8_t data);
- uint8_t towns_floppy_r(offs_t offset);
- void towns_floppy_w(offs_t offset, uint8_t data);
- uint8_t towns_keyboard_r(offs_t offset);
- void towns_keyboard_w(offs_t offset, uint8_t data);
- uint8_t towns_port60_r();
- void towns_port60_w(uint8_t data);
- uint8_t towns_sys5e8_r(offs_t offset);
- void towns_sys5e8_w(offs_t offset, uint8_t data);
- uint8_t towns_sound_ctrl_r(offs_t offset);
- void towns_sound_ctrl_w(offs_t offset, uint8_t data);
- uint8_t towns_padport_r(offs_t offset);
- void towns_pad_mask_w(uint8_t data);
- uint8_t towns_cmos_low_r(offs_t offset);
- void towns_cmos_low_w(offs_t offset, uint8_t data);
- uint8_t towns_cmos_r(offs_t offset);
- void towns_cmos_w(offs_t offset, uint8_t data);
- uint8_t towns_sys480_r();
- void towns_sys480_w(uint8_t data);
- uint8_t towns_video_404_r();
- void towns_video_404_w(uint8_t data);
- uint8_t towns_cdrom_r(offs_t offset);
- void towns_cdrom_w(offs_t offset, uint8_t data);
- uint8_t towns_rtc_r();
- void towns_rtc_w(uint8_t data);
- void towns_rtc_select_w(uint8_t data);
- uint8_t towns_volume_r(offs_t offset);
- void towns_volume_w(offs_t offset, uint8_t data);
- uint8_t unksnd_r();
- uint8_t towns_41ff_r();
-
- uint8_t towns_gfx_high_r(offs_t offset);
- void towns_gfx_high_w(offs_t offset, uint8_t data);
- uint8_t towns_gfx_packed_r(offs_t offset);
- void towns_gfx_packed_w(offs_t offset, uint8_t data);
- uint8_t towns_gfx_r(offs_t offset);
- void towns_gfx_w(offs_t offset, uint8_t data);
- uint8_t towns_video_cff80_r(offs_t offset);
- void towns_video_cff80_w(offs_t offset, uint8_t data);
- uint8_t towns_video_cff80_mem_r(offs_t offset);
- void towns_video_cff80_mem_w(offs_t offset, uint8_t data);
- uint8_t towns_video_440_r(offs_t offset);
- void towns_video_440_w(offs_t offset, uint8_t data);
- uint8_t towns_video_5c8_r(offs_t offset);
- void towns_video_5c8_w(offs_t offset, uint8_t data);
- uint8_t towns_video_fd90_r(offs_t offset);
- void towns_video_fd90_w(offs_t offset, uint8_t data);
- uint8_t towns_video_ff81_r();
- uint8_t towns_video_unknown_r();
- void towns_video_ff81_w(uint8_t data);
- uint8_t towns_spriteram_low_r(offs_t offset);
- void towns_spriteram_low_w(offs_t offset, uint8_t data);
- uint8_t towns_spriteram_r(offs_t offset);
- void towns_spriteram_w(offs_t offset, uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(mb8877a_irq_w);
- DECLARE_WRITE_LINE_MEMBER(mb8877a_drq_w);
- DECLARE_WRITE_LINE_MEMBER(pit_out2_changed);
-
- DECLARE_WRITE_LINE_MEMBER(towns_serial_irq);
- DECLARE_WRITE_LINE_MEMBER(towns_rxrdy_irq);
- DECLARE_WRITE_LINE_MEMBER(towns_txrdy_irq);
- DECLARE_WRITE_LINE_MEMBER(towns_syndet_irq);
- uint8_t towns_serial_r(offs_t offset);
- void towns_serial_w(offs_t offset, uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(rtc_d0_w);
- DECLARE_WRITE_LINE_MEMBER(rtc_d1_w);
- DECLARE_WRITE_LINE_MEMBER(rtc_d2_w);
- DECLARE_WRITE_LINE_MEMBER(rtc_d3_w);
- DECLARE_WRITE_LINE_MEMBER(rtc_busy_w);
-
- RF5C68_SAMPLE_END_CB_MEMBER(towns_pcm_irq);
-
- void towns_update_video_banks();
- void init_serial_rom();
- void kb_sendcode(uint8_t scancode, int release);
- uint8_t speaker_get_spk();
- void speaker_set_spkrdata(uint8_t data);
- uint8_t towns_cdrom_read_byte_software();
- void cdda_db_to_gain(float db);
-
- required_ioport m_ctrltype;
- required_ioport_array<4> m_kb_ports;
- required_ioport m_joy1;
- required_ioport m_joy2;
- required_ioport m_joy1_ex;
- required_ioport m_joy2_ex;
- required_ioport m_6b_joy1;
- required_ioport m_6b_joy2;
- required_ioport m_6b_joy1_ex;
- required_ioport m_6b_joy2_ex;
- required_ioport m_mouse1;
- required_ioport m_mouse2;
- required_ioport m_mouse3;
- required_memory_region m_user;
- optional_memory_region m_serial;
-
- static const device_timer_id TIMER_FREERUN = 1;
- static const device_timer_id TIMER_INTERVAL2 = 2;
- static const device_timer_id TIMER_KEYBOARD = 3;
- static const device_timer_id TIMER_MOUSE = 4;
- static const device_timer_id TIMER_WAIT = 5;
- static const device_timer_id TIMER_CDSTATUS = 6;
- static const device_timer_id TIMER_CDDA = 7;
- void freerun_inc();
- void intervaltimer2_timeout();
- void poll_keyboard();
- void mouse_timeout();
- void wait_end();
- void towns_cd_set_status(uint8_t st0, uint8_t st1, uint8_t st2, uint8_t st3);
- void towns_cdrom_execute_command(cdrom_image_device* device);
- void towns_cdrom_play_cdda(cdrom_image_device* device);
- void towns_cdrom_read(cdrom_image_device* device);
- void towns_cd_status_ready();
- void towns_delay_cdda(cdrom_image_device* dev);
-
- u8 m_rtc_d;
- bool m_rtc_busy;
- u8 m_vram_mask[4];
- u8 m_vram_mask_addr;
-
- TIMER_CALLBACK_MEMBER(towns_cdrom_read_byte);
- TIMER_CALLBACK_MEMBER(towns_sprite_done);
- TIMER_CALLBACK_MEMBER(towns_vblank_end);
- DECLARE_WRITE_LINE_MEMBER(towns_pit_out0_changed);
- DECLARE_WRITE_LINE_MEMBER(towns_pit_out1_changed);
- DECLARE_WRITE_LINE_MEMBER(pit2_out1_changed);
- uint8_t get_slave_ack(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(towns_fm_irq);
- void towns_crtc_refresh_mode();
- void towns_update_kanji_offset();
- void towns_update_palette();
- void render_sprite_4(uint32_t poffset, uint32_t coffset, uint16_t x, uint16_t y, bool xflip, bool yflip, bool xhalfsize, bool yhalfsize, bool rotation, const rectangle* rect);
- void render_sprite_16(uint32_t poffset, uint16_t x, uint16_t y, bool xflip, bool yflip, bool xhalfsize, bool yhalfsize, bool rotation, const rectangle* rect);
- void draw_sprites(const rectangle* rect);
- void towns_crtc_draw_scan_layer_hicolour(bitmap_rgb32 &bitmap,const rectangle* rect,int layer,int line,int scanline);
- void towns_crtc_draw_scan_layer_256(bitmap_rgb32 &bitmap,const rectangle* rect,int line,int scanline);
- void towns_crtc_draw_scan_layer_16(bitmap_rgb32 &bitmap,const rectangle* rect,int layer,int line,int scanline);
- void towns_crtc_draw_layer(bitmap_rgb32 &bitmap,const rectangle* rect,int layer);
- void render_text_char(uint8_t x, uint8_t y, uint8_t ascii, uint16_t jis, uint8_t attr);
- void draw_text_layer();
- inline uint8_t byte_to_bcd(uint8_t val);
- inline uint8_t bcd_to_byte(uint8_t val);
- inline uint32_t msf_to_lbafm(uint32_t val); // because the CDROM core doesn't provide this;
- uint16_t towns_fdc_dma_r();
- void towns_fdc_dma_w(uint16_t data);
- void towns_cdrom_set_irq(int line,int state);
- uint8_t towns_cd_get_track();
- uint16_t towns_cdrom_dma_r();
-};
-
-class towns16_state : public towns_state
-{
- public:
- towns16_state(const machine_config &mconfig, device_type type, const char *tag)
- : towns_state(mconfig, type, tag)
- { }
- void townsux(machine_config &config);
-};
-
-class marty_state : public towns_state
-{
- public:
- marty_state(const machine_config &mconfig, device_type type, const char *tag)
- : towns_state(mconfig, type, tag)
- { }
-
- void marty(machine_config &config);
-
-protected:
- virtual void driver_start() override;
-};
-
-#endif // MAME_INCLUDES_FMTOWNS_H
diff --git a/src/mame/includes/foodf.h b/src/mame/includes/foodf.h
deleted file mode 100644
index 44624d8c9b1..00000000000
--- a/src/mame/includes/foodf.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Food Fight hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_FOODF_H
-#define MAME_INCLUDES_FOODF_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "machine/x2212.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class foodf_state : public driver_device
-{
-public:
- foodf_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_nvram(*this, "nvram"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_paletteram(*this, "paletteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_playfield_tilemap(*this, "playfield"),
- m_scan_timer(*this, "scan_timer"),
- m_spriteram(*this, "spriteram"),
- m_leds(*this, "led%u", 0U)
- { }
-
- void foodf(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void update_interrupts();
- void nvram_recall_w(uint16_t data);
- void digital_w(uint8_t data);
- void foodf_paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void foodf_set_flip(int flip);
- uint8_t pot_r(offs_t offset);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- uint32_t screen_update_foodf(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update_timer);
- DECLARE_WRITE_LINE_MEMBER(video_int_write_line);
-
- void main_map(address_map &map);
-
- bool m_scanline_int_state;
- bool m_video_int_state;
-
- required_device<cpu_device> m_maincpu;
- required_device<x2212_device> m_nvram;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_shared_ptr<uint16_t> m_paletteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<timer_device> m_scan_timer;
-
- double m_rweights[3];
- double m_gweights[3];
- double m_bweights[2];
- uint8_t m_playfield_flip;
-
- required_shared_ptr<uint16_t> m_spriteram;
- output_finder<2> m_leds;
-};
-
-#endif // MAME_INCLUDES_FOODF_H
diff --git a/src/mame/includes/freekick.h b/src/mame/includes/freekick.h
deleted file mode 100644
index d841a3051c2..00000000000
--- a/src/mame/includes/freekick.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina,David Haywood
-
-#include "machine/74259.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class freekick_state : public driver_device
-{
-public:
- freekick_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_outlatch(*this, "outlatch"),
- m_bank1(*this, "bank1"),
- m_bank1d(*this, "bank1d") { }
-
- void base(machine_config &config);
- void oigas(machine_config &config);
- void pbillrd(machine_config &config);
- void pbillrdbl(machine_config &config);
- void gigas(machine_config &config);
- void gigasm(machine_config &config);
- void pbillrdm(machine_config &config);
- void omega(machine_config &config);
- void freekick(machine_config &config);
-
- void init_gigas();
- void init_gigasb();
- void init_pbillrdbl();
- void init_pbillrds();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_freek_tilemap;
-
- /* misc */
- int m_inval;
- int m_outval;
- int m_cnt; // used by oigas
- int m_romaddr;
- int m_spinner;
- int m_nmi_en;
- int m_ff_data;
- DECLARE_WRITE_LINE_MEMBER(flipscreen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_y_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_w);
- DECLARE_WRITE_LINE_MEMBER(spinner_select_w);
- void gigas_spinner_select_w(uint8_t data);
- uint8_t spinner_r();
- void pbillrd_bankswitch_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- void oigas_5_w(uint8_t data);
- uint8_t oigas_3_r();
- uint8_t oigas_2_r();
- uint8_t freekick_ff_r();
- void freekick_ff_w(uint8_t data);
- void freek_videoram_w(offs_t offset, uint8_t data);
- void snd_rom_addr_l_w(uint8_t data);
- void snd_rom_addr_h_w(uint8_t data);
- uint8_t snd_rom_r();
- TILE_GET_INFO_MEMBER(get_freek_tile_info);
- virtual void video_start() override;
- DECLARE_MACHINE_START(pbillrd);
- DECLARE_MACHINE_RESET(freekick);
- DECLARE_MACHINE_START(freekick);
- DECLARE_MACHINE_START(oigas);
- DECLARE_MACHINE_RESET(oigas);
- uint32_t screen_update_pbillrd(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_freekick(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_gigas(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void gigas_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void pbillrd_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void freekick_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<ls259_device> m_outlatch;
- optional_memory_bank m_bank1, m_bank1d;
- void decrypted_opcodes_map(address_map &map);
- void freekick_io_map(address_map &map);
- void freekick_map(address_map &map);
- void gigas_io_map(address_map &map);
- void gigas_map(address_map &map);
- void oigas_io_map(address_map &map);
- void omega_io_map(address_map &map);
- void omega_map(address_map &map);
- void pbillrd_map(address_map &map);
- void pbillrdbl_map(address_map &map);
-};
diff --git a/src/mame/includes/fromanc2.h b/src/mame/includes/fromanc2.h
deleted file mode 100644
index 46bbb870d6b..00000000000
--- a/src/mame/includes/fromanc2.h
+++ /dev/null
@@ -1,134 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi, Uki
-#ifndef MAME_INCLUDES_FROMANC2_H
-#define MAME_INCLUDES_FROMANC2_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/eepromser.h"
-#include "machine/ins8250.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class fromanc2_state : public driver_device
-{
-public:
- fromanc2_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_subcpu(*this, "sub"),
- m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_lpalette(*this, "lpalette"),
- m_rpalette(*this, "rpalette"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_uart(*this, "uart")
- { }
-
- void fromanc2(machine_config &config);
- void fromancr(machine_config &config);
- void fromanc4(machine_config &config);
-
- void init_fromanc4();
- void init_fromanc2();
-
- DECLARE_READ_LINE_MEMBER(subcpu_int_r);
- DECLARE_READ_LINE_MEMBER(sndcpu_nmi_r);
- DECLARE_READ_LINE_MEMBER(subcpu_nmi_r);
-
-protected:
- virtual void machine_reset() override;
-
-private:
- /* memory pointers */
- std::unique_ptr<uint16_t[]> m_videoram[2][4];
- std::unique_ptr<uint8_t[]> m_bankedram;
-
- /* video-related */
- tilemap_t *m_tilemap[2][4];
- int m_scrollx[2][4];
- int m_scrolly[2][4];
- int m_gfxbank[2][4];
-
- /* misc */
- int m_portselect;
- uint8_t m_subcpu_int_flag;
- uint8_t m_subcpu_nmi_flag;
- uint8_t m_sndcpu_nmi_flag;
- uint16_t m_datalatch1;
- uint8_t m_datalatch_2h;
- uint8_t m_datalatch_2l;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<cpu_device> m_subcpu;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_lpalette;
- required_device<palette_device> m_rpalette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
- optional_device<ns16550_device> m_uart;
-
- void sndcmd_w(uint16_t data);
- void portselect_w(uint16_t data);
- uint16_t keymatrix_r();
- void fromancr_gfxbank_eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void subcpu_w(uint16_t data);
- uint16_t subcpu_r();
- uint8_t maincpu_r_l();
- uint8_t maincpu_r_h();
- void maincpu_w_l(uint8_t data);
- void maincpu_w_h(uint8_t data);
- void subcpu_nmi_clr(uint8_t data);
- uint8_t sndcpu_nmi_clr();
- void subcpu_rombank_w(uint8_t data);
- void fromanc2_videoram_0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromanc2_videoram_1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromanc2_videoram_2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromanc2_videoram_3_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromanc2_gfxreg_0_w(offs_t offset, uint16_t data);
- void fromanc2_gfxreg_1_w(offs_t offset, uint16_t data);
- void fromanc2_gfxreg_2_w(offs_t offset, uint16_t data);
- void fromanc2_gfxreg_3_w(offs_t offset, uint16_t data);
- void fromanc2_gfxbank_0_w(uint16_t data);
- void fromanc2_gfxbank_1_w(uint16_t data);
- void fromancr_videoram_0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromancr_videoram_1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromancr_videoram_2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromancr_gfxreg_0_w(offs_t offset, uint16_t data);
- void fromancr_gfxreg_1_w(offs_t offset, uint16_t data);
- void fromanc4_videoram_0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromanc4_videoram_1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromanc4_videoram_2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fromanc4_gfxreg_0_w(offs_t offset, uint16_t data);
- void fromanc4_gfxreg_1_w(offs_t offset, uint16_t data);
- void fromanc4_gfxreg_2_w(offs_t offset, uint16_t data);
-
- template<int VRAM, int Layer> TILE_GET_INFO_MEMBER(fromanc2_get_tile_info);
- template<int VRAM, int Layer> TILE_GET_INFO_MEMBER(fromancr_get_tile_info);
- DECLARE_MACHINE_START(fromanc2);
- DECLARE_VIDEO_START(fromanc2);
- DECLARE_VIDEO_START(fromancr);
- DECLARE_MACHINE_START(fromanc4);
- DECLARE_VIDEO_START(fromanc4);
- uint32_t screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline void fromanc2_dispvram_w( offs_t offset, uint16_t data, uint16_t mem_mask, int vram, int layer );
- inline void fromancr_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask, int layer );
- void fromancr_gfxbank_w( int data );
- inline void fromanc4_vram_w( offs_t offset, uint16_t data, uint16_t mem_mask, int layer );
- void fromanc2_main_map(address_map &map);
- void fromanc2_sound_io_map(address_map &map);
- void fromanc2_sound_map(address_map &map);
- void fromanc2_sub_io_map(address_map &map);
- void fromanc2_sub_map(address_map &map);
- void fromanc4_main_map(address_map &map);
- void fromancr_main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FROMANC2_H
diff --git a/src/mame/includes/fromance.h b/src/mame/includes/fromance.h
deleted file mode 100644
index 4882cd897f0..00000000000
--- a/src/mame/includes/fromance.h
+++ /dev/null
@@ -1,125 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi. Bryan McPhail, Nicola Salmoria, Aaron Giles
-/***************************************************************************
-
- Game Driver for Video System Mahjong series and Pipe Dream.
-
- Driver by Takahiro Nogi <nogi@kt.rim.or.jp> 2001/02/04 -
- and Bryan McPhail, Nicola Salmoria, Aaron Giles
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_FROMANCE_H
-#define MAME_INCLUDES_FROMANCE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "video/vsystem_gga.h"
-#include "video/vsystem_spr2.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class fromance_state : public driver_device
-{
-public:
- fromance_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_gga(*this, "gga"),
- m_rombank(*this, "rombank"),
- m_sublatch(*this, "sublatch"),
- m_msm(*this, "msm")
- { }
-
- void nekkyoku(machine_config &config);
- void fromance(machine_config &config);
- void idolmj(machine_config &config);
-
- void init_common();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- DECLARE_VIDEO_START(fromance);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<vsystem_gga_device> m_gga;
- required_memory_bank m_rombank;
-
- void fromance_gfxreg_w(uint8_t data);
- uint8_t fromance_videoram_r(offs_t offset);
- void fromance_videoram_w(offs_t offset, uint8_t data);
- void fromance_scroll_w(offs_t offset, uint8_t data);
- void fromance_gga_data_w(offs_t offset, uint8_t data);
-
- uint32_t m_scrolly_ofs;
- uint32_t m_scrollx_ofs;
- uint32_t m_scrollx[2];
- uint32_t m_scrolly[2];
- uint8_t m_gfxreg;
- uint8_t m_flipscreen;
- uint8_t m_flipscreen_old;
- uint8_t m_selected_videoram;
- uint8_t m_selected_paletteram;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- uint32_t screen_update_fromance(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-private:
- optional_device<generic_latch_8_device> m_sublatch;
- optional_device<msm5205_device> m_msm;
-
- /* video-related */
- std::unique_ptr<uint8_t[]> m_local_videoram[2];
- std::unique_ptr<uint8_t[]> m_local_paletteram;
-
- emu_timer *m_crtc_timer;
-
- /* misc */
- uint8_t m_portselect;
- uint8_t m_adpcm_reset;
- uint8_t m_adpcm_data;
- uint8_t m_vclk_left;
-
- /* devices */
- uint8_t fromance_busycheck_main_r();
- uint8_t fromance_busycheck_sub_r();
- void fromance_rombank_w(uint8_t data);
- void fromance_adpcm_w(uint8_t data);
- void fromance_portselect_w(uint8_t data);
- uint8_t fromance_keymatrix_r();
- void fromance_coinctr_w(uint8_t data);
- uint8_t fromance_paletteram_r(offs_t offset);
- void fromance_paletteram_w(offs_t offset, uint8_t data);
- void fromance_adpcm_reset_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_fromance_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fromance_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_nekkyoku_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_nekkyoku_fg_tile_info);
- DECLARE_VIDEO_START(nekkyoku);
- TIMER_CALLBACK_MEMBER(crtc_interrupt_gen);
- inline void get_fromance_tile_info(tile_data &tileinfo, int tile_index, int layer);
- inline void get_nekkyoku_tile_info(tile_data &tileinfo, int tile_index, int layer);
- void crtc_refresh();
- DECLARE_WRITE_LINE_MEMBER(fromance_adpcm_int);
- void fromance_main_map(address_map &map);
- void fromance_sub_io_map(address_map &map);
- void fromance_sub_map(address_map &map);
- void idolmj_sub_io_map(address_map &map);
- void nekkyoku_main_map(address_map &map);
- void nekkyoku_sub_io_map(address_map &map);
- void nekkyoku_sub_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FROMANCE_H
diff --git a/src/mame/includes/funkybee.h b/src/mame/includes/funkybee.h
deleted file mode 100644
index 34d44494a0b..00000000000
--- a/src/mame/includes/funkybee.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-#ifndef MAME_INCLUDES_FUNKYBEE_H
-#define MAME_INCLUDES_FUNKYBEE_H
-
-#pragma once
-
-#include "machine/watchdog.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class funkybee_state : public driver_device
-{
-public:
- funkybee_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void funkybee(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_gfx_bank;
- uint8_t funkybee_input_port_0_r();
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- void funkybee_videoram_w(offs_t offset, uint8_t data);
- void funkybee_colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(gfx_bank_w);
- void funkybee_scroll_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILEMAP_MAPPER_MEMBER(funkybee_tilemap_scan);
- virtual void machine_start() override;
- virtual void video_start() override;
- void funkybee_palette(palette_device &palette) const;
- uint32_t screen_update_funkybee(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_columns( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void funkybee_map(address_map &map);
- void io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FUNKYBEE_H
diff --git a/src/mame/includes/funkyjet.h b/src/mame/includes/funkyjet.h
deleted file mode 100644
index 73dce7d7c81..00000000000
--- a/src/mame/includes/funkyjet.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Funky Jet
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_FUNKYJET_H
-#define MAME_INCLUDES_FUNKYJET_H
-
-#pragma once
-
-// mame
-#include "machine/deco146.h"
-#include "video/deco16ic.h"
-#include "video/decospr.h"
-
-// devices
-#include "cpu/h6280/h6280.h"
-
-// emu
-#include "screen.h"
-
-
-class funkyjet_state : public driver_device
-{
-public:
- funkyjet_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_spriteram(*this, "spriteram")
- , m_pf_rowscroll(*this, "pf%u_rowscroll", 1)
- , m_screen(*this, "screen")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_deco146(*this, "ioprot")
- , m_sprgen(*this, "spritegen")
- , m_deco_tilegen(*this, "tilegen")
- { }
-
- void funkyjet(machine_config &config);
-
- void init_funkyjet();
-
-private:
- // memory pointers
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr_array<uint16_t, 2> m_pf_rowscroll;
-
- // devices
- required_device<screen_device> m_screen;
- required_device<cpu_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device<deco146_device> m_deco146;
- required_device<decospr_device> m_sprgen;
- required_device<deco16ic_device> m_deco_tilegen;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint16_t funkyjet_protection_region_0_146_r(offs_t offset);
- void funkyjet_protection_region_0_146_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void funkyjet_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FUNKYJET_H
diff --git a/src/mame/includes/funworld.h b/src/mame/includes/funworld.h
deleted file mode 100644
index 5e9a7c689b4..00000000000
--- a/src/mame/includes/funworld.h
+++ /dev/null
@@ -1,211 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Roberto Fresca, Peter Ferrie
-#ifndef MAME_INCLUDES_FUNWORLD_H
-#define MAME_INCLUDES_FUNWORLD_H
-
-#pragma once
-
-#include "emupal.h"
-#include "machine/i2cmem.h"
-#include "sound/ay8910.h"
-#include "video/mc6845.h"
-#include "tilemap.h"
-
-class funworld_state : public driver_device
-{
-public:
- funworld_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_palette(*this, "palette"),
- m_i2cmem(*this, "i2cmem"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void royalcd1(machine_config &config);
- void royalcd2(machine_config &config);
- void fw1stpal(machine_config &config);
- void fw2ndpal(machine_config &config);
- void saloon(machine_config &config);
- void clubcard(machine_config &config);
- void cuoreuno(machine_config &config);
- void funquiz(machine_config &config);
- void witchryl(machine_config &config);
- void fw_brick_1(machine_config &config);
- void fw_brick_2(machine_config &config);
- void gratispk(machine_config &config);
-
- void init_saloon();
- void init_mongolnw();
- void init_soccernw();
- void init_tabblue();
- void init_dino4();
- void init_ctunk();
- void init_jolycdig();
- void init_impera16();
-
-protected:
- void funworld_videoram_w(offs_t offset, uint8_t data);
- void funworld_colorram_w(offs_t offset, uint8_t data);
- void funworld_lamp_a_w(uint8_t data);
- void funworld_lamp_b_w(uint8_t data);
-
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
- void funworld_palette(palette_device &palette) const;
- uint32_t screen_update_funworld(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- void magicrd2_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- tilemap_t *m_bg_tilemap = nullptr;
-
-private:
- uint8_t questions_r(offs_t offset);
- void question_bank_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pia1_ca2_w);
- uint8_t funquiz_ay8910_a_r();
- uint8_t funquiz_ay8910_b_r();
-
- void clubcard_map(address_map &map);
- void cuoreuno_map(address_map &map);
- void funquiz_map(address_map &map);
- void funworld_map(address_map &map);
- void fw_brick_map(address_map &map);
- void gratispk_map(address_map &map);
- void saloon_map(address_map &map);
- void witchryl_map(address_map &map);
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_device<palette_device> m_palette;
- optional_device<i2cmem_device> m_i2cmem;
- output_finder<8> m_lamps;
-};
-
-
-class magicrd2_state : public funworld_state
-{
-public:
- using funworld_state::funworld_state;
-
- void magicrd2(machine_config &config);
-
- void init_magicd2b();
- void init_magicd2c();
-
-protected:
- virtual void video_start() override;
-};
-
-
-class lunapark_state : public funworld_state
-{
-public:
- using funworld_state::funworld_state;
-
- void lunapark(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- void lunapark_map(address_map &map);
-};
-
-
-class chinatow_state : public funworld_state
-{
-public:
- using funworld_state::funworld_state;
-
- void chinatow(machine_config &config);
- void rcdino4(machine_config &config);
-
- void init_rcdino4();
- void init_rcdinch();
-
-protected:
- virtual void video_start() override;
-
-private:
- uint8_t chinatow_r_32f0(offs_t offset);
-
- void chinatow_map(address_map &map);
-};
-
-
-class multiwin_state : public funworld_state
-{
-public:
-
- using funworld_state::funworld_state;
-
- void multiwin(machine_config& config);
-
- void driver_init() override;
-
-protected:
- virtual void video_start() override;
-
-private:
- cpu_device* _maincpu {};
- uint8_t multiwin_opcode_r(offs_t offset);
-
- void multiwin_opcodes_map(address_map& map);
-};
-
-class royalcrdf_state : public funworld_state
-{
-public:
- using funworld_state::funworld_state;
-
- void royalcrdf(machine_config& config);
-
- void driver_init() override;
-
-private:
- cpu_device* _maincpu {};
- uint8_t royalcrdf_opcode_r(offs_t offset);
-
- void royalcrdf_map(address_map& map);
- void royalcrdf_opcodes_map(address_map& map);
-};
-
-class intergames_state : public funworld_state
-{
-public:
- intergames_state(const machine_config &mconfig, device_type type, const char *tag) :
- funworld_state(mconfig, type, tag),
- m_crtc(*this, "crtc"),
- m_ay8910(*this, "ay8910"),
- m_crtc_selected(false)
- { }
-
- void intrgmes(machine_config &config);
-
-protected:
- virtual void driver_init() override;
- virtual void machine_reset() override;
-
-private:
- uint8_t crtc_or_psg_r(offs_t offset);
- void crtc_or_psg_w(offs_t offset, uint8_t data);
- uint8_t prot_r(offs_t offset);
- void prot_w(offs_t offset, uint8_t data);
-
- void intergames_map(address_map &map);
-
- required_device<mc6845_device> m_crtc;
- required_device<ay8910_device> m_ay8910;
-
- bool m_crtc_selected;
-};
-
-#endif // MAME_INCLUDES_FUNWORLD_H
diff --git a/src/mame/includes/funybubl.h b/src/mame/includes/funybubl.h
deleted file mode 100644
index b6fdab988cc..00000000000
--- a/src/mame/includes/funybubl.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_FUNYBUBL_H
-#define MAME_INCLUDES_FUNYBUBL_H
-
-#pragma once
-
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class funybubl_state : public driver_device
-{
-public:
- funybubl_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_tilemapram(*this, "tilemapram"),
- m_spriteram(*this, "spriteram"),
- m_mainbank(*this, "mainbank"),
- m_okibank(*this, "okibank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_vrambank(*this, "vrambank")
- { }
-
- void funybubl(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_tilemapram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_memory_bank m_mainbank;
- required_memory_bank m_okibank;
-
- /* video-related */
- tilemap_t *m_tilemap;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<address_map_bank_device> m_vrambank;
-
- /* memory */
- void vidram_bank_w(uint8_t data);
- void cpurombank_w(uint8_t data);
- void oki_bank_w(uint8_t data);
-
- static rgb_t funybubl_R6B6G6(uint32_t raw);
- void tilemap_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void funybubl_map(address_map &map);
- void io_map(address_map &map);
- void oki_map(address_map &map);
- void sound_map(address_map &map);
- void vrambank_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_FUNYBUBL_H
diff --git a/src/mame/includes/fuukifg2.h b/src/mame/includes/fuukifg2.h
deleted file mode 100644
index 402a6e01641..00000000000
--- a/src/mame/includes/fuukifg2.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia,Paul Priest
-#ifndef MAME_INCLUDES_FUUKIFG2_H
-#define MAME_INCLUDES_FUUKIFG2_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/okim6295.h"
-#include "video/fuukifg.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class fuuki16_state : public driver_device
-{
-public:
- fuuki16_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_oki(*this, "oki")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_fuukivid(*this, "fuukivid")
- , m_soundlatch(*this, "soundlatch")
- , m_spriteram(*this, "spriteram")
- , m_vram(*this, "vram.%u", 0)
- , m_vregs(*this, "vregs")
- , m_unknown(*this, "unknown")
- , m_priority(*this, "priority")
- , m_soundbank(*this, "soundbank")
- { }
-
- void fuuki16(machine_config &config);
-
-private:
- enum
- {
- TIMER_LEVEL_1_INTERRUPT,
- TIMER_VBLANK_INTERRUPT,
- TIMER_RASTER_INTERRUPT
- };
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<fuukivid_device> m_fuukivid;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr_array<u16, 4> m_vram;
- required_shared_ptr<u16> m_vregs;
- required_shared_ptr<u16> m_unknown;
- required_shared_ptr<u16> m_priority;
-
- required_memory_bank m_soundbank;
-
- /* video-related */
- tilemap_t *m_tilemap[3];
-
- /* misc */
- emu_timer *m_level_1_interrupt_timer;
- emu_timer *m_vblank_interrupt_timer;
- emu_timer *m_raster_interrupt_timer;
-
- void vregs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sound_command_w(u8 data);
- void sound_rombank_w(u8 data);
- template<int Layer> void vram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- template<int Layer> void vram_buffered_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void oki_banking_w(u8 data);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void fuuki16_colpri_cb(u32 &colour, u32 &pri_mask);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u8 i, int flag, u8 pri, u8 primask = 0xff);
-
- void fuuki16_map(address_map &map);
- void fuuki16_sound_io_map(address_map &map);
- void fuuki16_sound_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_FUUKIFG2_H
diff --git a/src/mame/includes/fuukifg3.h b/src/mame/includes/fuukifg3.h
deleted file mode 100644
index 2c14c512e2b..00000000000
--- a/src/mame/includes/fuukifg3.h
+++ /dev/null
@@ -1,115 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Priest, David Haywood, Luca Elia
-#ifndef MAME_INCLUDES_FUUKIFG3_H
-#define MAME_INCLUDES_FUUKIFG3_H
-
-#pragma once
-
-#include "video/fuukifg.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* Define clocks based on actual OSC on the PCB */
-
-#define CPU_CLOCK (XTAL(40'000'000) / 2) /* clock for 68020 */
-#define SOUND_CPU_CLOCK (XTAL(12'000'000) / 2) /* clock for Z80 sound CPU */
-
-/* NOTE: YMF278B_STD_CLOCK is defined in /src/emu/sound/ymf278b.h */
-
-
-class fuuki32_state : public driver_device
-{
-public:
- fuuki32_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_fuukivid(*this, "fuukivid")
- , m_spriteram(*this, "spriteram", 0x2000, ENDIANNESS_BIG)
- , m_vram(*this, "vram.%u", 0)
- , m_vregs(*this, "vregs", 0x20, ENDIANNESS_BIG)
- , m_priority(*this, "priority")
- , m_tilebank(*this, "tilebank")
- , m_shared_ram(*this, "shared_ram")
- , m_soundbank(*this, "soundbank")
- , m_system(*this, "SYSTEM")
- , m_inputs(*this, "INPUTS")
- , m_dsw1(*this, "DSW1")
- , m_dsw2(*this, "DSW2")
- { }
-
- void fuuki32(machine_config &config);
-
-private:
- enum
- {
- TIMER_LEVEL_1_INTERRUPT,
- TIMER_VBLANK_INTERRUPT,
- TIMER_RASTER_INTERRUPT
- };
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<fuukivid_device> m_fuukivid;
-
- /* memory pointers */
- memory_share_creator<u16> m_spriteram;
- required_shared_ptr_array<u32, 4> m_vram;
- memory_share_creator<u16> m_vregs;
- required_shared_ptr<u32> m_priority;
- required_shared_ptr<u32> m_tilebank;
- required_shared_ptr<u8> m_shared_ram;
- std::unique_ptr<u16[]> m_buf_spriteram[2];
-
- required_memory_bank m_soundbank;
-
- required_ioport m_system;
- required_ioport m_inputs;
- required_ioport m_dsw1;
- required_ioport m_dsw2;
-
- /* video-related */
- tilemap_t *m_tilemap[3];
- u32 m_spr_buffered_tilebank[2];
-
- /* misc */
- emu_timer *m_level_1_interrupt_timer;
- emu_timer *m_vblank_interrupt_timer;
- emu_timer *m_raster_interrupt_timer;
-
- u8 snd_020_r(offs_t offset);
- void snd_020_w(offs_t offset, u8 data, u8 mem_mask = ~0);
- void sprram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 sprram_r(offs_t offset);
- u16 vregs_r(offs_t offset);
- void vregs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sound_bw_w(u8 data);
- template<int Layer> void vram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- template<int Layer> void vram_buffered_w(offs_t offset, u32 data, u32 mem_mask = ~0);
-
- template<int Layer, int ColShift> TILE_GET_INFO_MEMBER(get_tile_info);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void fuuki32_tile_cb(u32 &code);
- void fuuki32_colpri_cb(u32 &colour, u32 &pri_mask);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void draw_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u8 i, int flag, u8 pri, u8 primask = 0xff);
-
- void fuuki32_map(address_map &map);
- void fuuki32_sound_io_map(address_map &map);
- void fuuki32_sound_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_FUUKIFG3_H
diff --git a/src/mame/includes/gaelco.h b/src/mame/includes/gaelco.h
deleted file mode 100644
index 44c5c43b270..00000000000
--- a/src/mame/includes/gaelco.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/***************************************************************************
-
- Gaelco game hardware from 1991-1996
-
-***************************************************************************/
-
-#include "machine/gen_latch.h"
-#include "machine/74259.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class gaelco_state : public driver_device
-{
-public:
- gaelco_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch"),
- m_outlatch(*this, "outlatch"),
- m_okibank(*this, "okibank"),
- m_videoram(*this, "videoram"),
- m_vregs(*this, "vregs"),
- m_spriteram(*this, "spriteram"),
- m_screenram(*this, "screenram") { }
-
- void bigkarnk(machine_config &config);
- void thoop(machine_config &config);
- void maniacsq(machine_config &config);
- void squash(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<cpu_device> m_audiocpu;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<ls259_device> m_outlatch;
- optional_memory_bank m_okibank;
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_vregs;
- required_shared_ptr<uint16_t> m_spriteram;
- optional_shared_ptr<uint16_t> m_screenram;
-
- /* video-related */
- tilemap_t *m_tilemap[2];
-
- DECLARE_WRITE_LINE_MEMBER(coin1_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
- void oki_bankswitch_w(uint8_t data);
- void vram_encrypted_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void encrypted_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void thoop_vram_encrypted_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void thoop_encrypted_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void vram_w(offs_t offset, u16 data, u16 mem_mask);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
-
- virtual void machine_start() override;
- DECLARE_VIDEO_START(bigkarnk);
- DECLARE_VIDEO_START(maniacsq);
-
- uint32_t screen_update_bigkarnk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_maniacsq(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void bigkarnk_map(address_map &map);
- void bigkarnk_snd_map(address_map &map);
- void maniacsq_map(address_map &map);
- void oki_map(address_map &map);
- void squash_map(address_map &map);
- void thoop_map(address_map &map);
-};
diff --git a/src/mame/includes/gaelco2.h b/src/mame/includes/gaelco2.h
deleted file mode 100644
index 7a8f8015b05..00000000000
--- a/src/mame/includes/gaelco2.h
+++ /dev/null
@@ -1,169 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-#include "cpu/m68000/m68000.h"
-#include "video/bufsprite.h"
-#include "machine/74259.h"
-#include "machine/eepromser.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class gaelco2_state : public driver_device
-{
-public:
- gaelco2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mainlatch(*this, "mainlatch"),
- m_spriteram(*this, "spriteram"),
- m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_global_spritexoff(0),
- m_vregs(*this, "vregs"),
- m_snowboar_protection(*this, "snowboar_prot"),
- m_paletteram(*this, "paletteram"),
- m_shareram(*this, "shareram")
- { }
-
- void maniacsq_d5002fp(machine_config &config);
- void play2000(machine_config &config);
- void srollnd(machine_config &config);
- void alighunt(machine_config &config);
- void touchgo(machine_config &config);
- void alighunt_d5002fp(machine_config &config);
- void snowboar(machine_config &config);
- void maniacsq(machine_config &config);
- void maniacsqs(machine_config &config);
- void touchgo_d5002fp(machine_config &config);
- void saltcrdi(machine_config &config);
-
- void init_touchgo();
- void init_snowboar();
- void init_snowboara();
- void init_alighunt();
- void init_wrally2();
- void init_play2000();
-
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
-
- DECLARE_VIDEO_START(gaelco2);
- DECLARE_VIDEO_START(gaelco2_dual);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-protected:
- required_device<m68000_device> m_maincpu;
- optional_device<ls259_device> m_mainlatch;
- required_device<buffered_spriteram16_device> m_spriteram;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- void vram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void vregs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void palette_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- void wrally2_latch_w(offs_t offset, u16 data);
-
- void mcu_hostmem_map(address_map &map);
-
-private:
- void shareram_w(offs_t offset, u8 data);
- u8 shareram_r(offs_t offset);
- void alighunt_coin_w(u16 data);
- DECLARE_WRITE_LINE_MEMBER(coin3_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin4_counter_w);
- u16 snowboar_protection_r();
- void snowboar_protection_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- template<unsigned Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- template<unsigned Layer> TILE_GET_INFO_MEMBER(get_tile_info_dual);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int mask);
- u32 dual_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int index);
- void ROM16_split_gfx(const char *src_reg, const char *dst_reg, int start, int length, int dest1, int dest2);
-
- void alighunt_map(address_map &map);
- void maniacsq_map(address_map &map);
- void play2000_map(address_map &map);
- void snowboar_map(address_map &map);
- void touchgo_map(address_map &map);
- void saltcrdi_map(address_map &map);
- void srollnd_map(address_map &map);
-
- // simulation
- u16 srollnd_share_sim_r(offs_t offset, u16 mem_mask = ~0);
- void srollnd_share_sim_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- u32 m_snowboard_latch;
-
- u16 *m_videoram;
- tilemap_t *m_pant[2];
- int m_dual_monitor;
- int m_global_spritexoff;
-
- required_shared_ptr<u16> m_vregs;
- optional_shared_ptr<u16> m_snowboar_protection;
- required_shared_ptr<u16> m_paletteram;
- optional_shared_ptr<u16> m_shareram;
-};
-
-
-class bang_state : public gaelco2_state
-{
-public:
- bang_state(const machine_config &mconfig, device_type type, const char *tag)
- : gaelco2_state(mconfig, type, tag)
- , m_light0_x(*this, "LIGHT0_X")
- , m_light0_y(*this, "LIGHT0_Y")
- , m_light1_x(*this, "LIGHT1_X")
- , m_light1_y(*this, "LIGHT1_Y")
- {}
-
- void bang(machine_config &config);
-
- void init_bang();
-
-private:
- required_ioport m_light0_x;
- required_ioport m_light0_y;
- required_ioport m_light1_x;
- required_ioport m_light1_y;
-
- int m_clr_gun_int;
-
- u16 p1_gun_x();
- u16 p1_gun_y();
- u16 p2_gun_x();
- u16 p2_gun_y();
- void bang_clr_gun_int_w(u16 data);
- TIMER_DEVICE_CALLBACK_MEMBER(bang_irq);
- void bang_map(address_map &map);
-};
-
-
-class wrally2_state : public gaelco2_state
-{
-public:
- wrally2_state(const machine_config &mconfig, device_type type, const char *tag)
- : gaelco2_state(mconfig, type, tag)
- , m_analog0(*this, "ANALOG0")
- , m_analog1(*this, "ANALOG1")
- {}
-
- void wrally2(machine_config &config);
-
- template <int N> DECLARE_READ_LINE_MEMBER(wrally2_analog_bit_r);
-
-private:
- required_ioport m_analog0;
- required_ioport m_analog1;
-
- uint8_t m_analog_ports[2];
-
- DECLARE_WRITE_LINE_MEMBER(wrally2_adc_clk);
- DECLARE_WRITE_LINE_MEMBER(wrally2_adc_cs);
- void wrally2_map(address_map &map);
-};
diff --git a/src/mame/includes/gaelco3d.h b/src/mame/includes/gaelco3d.h
deleted file mode 100644
index 24005639cab..00000000000
--- a/src/mame/includes/gaelco3d.h
+++ /dev/null
@@ -1,183 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Driver for Gaelco 3D games
-
- driver by Aaron Giles
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_GAELCO3D_H
-#define MAME_INCLUDES_GAELCO3D_H
-
-#pragma once
-
-#include "cpu/adsp2100/adsp2100.h"
-#include "cpu/tms32031/tms32031.h"
-#include "machine/74259.h"
-#include "machine/eepromser.h"
-#include "machine/gaelco3d.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/dmadac.h"
-#include "video/poly.h"
-#include "screen.h"
-
-#define SOUND_CHANNELS 4
-
-
-class gaelco3d_state : public driver_device
-{
-public:
- gaelco3d_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_adsp_ram_base(*this, "adsp_ram_base")
- , m_m68k_ram_base16(*this, "m68k_ram_base16")
- , m_m68k_ram_base32(*this, "m68k_ram_base32")
- , m_adsp_control_regs(*this, "adsp_regs")
- , m_adsp_fastram_base(*this, "adsp_fastram")
- , m_maincpu(*this, "maincpu")
- , m_adsp(*this, "adsp")
- , m_eeprom(*this, "eeprom")
- , m_tms(*this, "tms")
- , m_dmadac(*this, "dac%u", 0U)
- , m_serial(*this, "serial")
- , m_screen(*this, "screen")
- , m_soundlatch(*this, "soundlatch")
- , m_mainlatch(*this, "mainlatch")
- , m_outlatch(*this, "outlatch")
- , m_adsp_autobuffer_timer(*this, "adsp_timer")
- , m_paletteram16(*this, "paletteram16")
- , m_paletteram32(*this, "paletteram32")
- , m_analog(*this, "ANALOG%u", 0U)
- , m_adsp_bank(*this, "adspbank")
- { }
-
- void footbpow(machine_config &config);
- void gaelco3d2(machine_config &config);
- void gaelco3d(machine_config &config);
-
- template <int N> DECLARE_READ_LINE_MEMBER(analog_bit_r);
- template <int N> DECLARE_READ_LINE_MEMBER(fp_analog_bit_r);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- struct gaelco3d_object_data
- {
- uint32_t tex, color;
- float ooz_dx, ooz_dy, ooz_base;
- float uoz_dx, uoz_dy, uoz_base;
- float voz_dx, voz_dy, voz_base;
- float z0;
- };
-
- class gaelco3d_renderer : public poly_manager<float, gaelco3d_object_data, 1, 2000>
- {
- public:
- gaelco3d_renderer(gaelco3d_state &state);
- ~gaelco3d_renderer() {}
-
- bitmap_ind16 &screenbits() { return m_screenbits; }
- uint32_t polygons() { uint32_t result = m_polygons; m_polygons = 0; return result; }
-
- void render_poly(screen_device &screen, uint32_t *polydata);
-
- protected:
- gaelco3d_state &m_state;
-
- private:
- bitmap_ind16 m_screenbits;
- bitmap_ind16 m_zbuffer;
- uint32_t m_polygons;
- offs_t m_texture_size;
- offs_t m_texmask_size;
- std::unique_ptr<uint8_t[]> m_texture;
- std::unique_ptr<uint8_t[]> m_texmask;
-
- void render_noz_noperspective(int32_t scanline, const extent_t &extent, const gaelco3d_object_data &extra, int threadid);
- void render_normal(int32_t scanline, const extent_t &extent, const gaelco3d_object_data &extra, int threadid);
- void render_alphablend(int32_t scanline, const extent_t &extent, const gaelco3d_object_data &extra, int threadid);
- };
-
- required_shared_ptr<uint32_t> m_adsp_ram_base;
- optional_shared_ptr<uint16_t> m_m68k_ram_base16;
- optional_shared_ptr<uint32_t> m_m68k_ram_base32;
- required_shared_ptr<uint16_t> m_adsp_control_regs;
- required_shared_ptr<uint16_t> m_adsp_fastram_base;
- required_device<cpu_device> m_maincpu;
- required_device<adsp21xx_device> m_adsp;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<tms32031_device> m_tms;
- required_device_array<dmadac_sound_device, SOUND_CHANNELS> m_dmadac;
- required_device<gaelco_serial_device> m_serial;
- required_device<screen_device> m_screen;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<ls259_device> m_mainlatch;
- required_device<ls259_device> m_outlatch;
- required_device<timer_device> m_adsp_autobuffer_timer;
-
- optional_shared_ptr<uint16_t> m_paletteram16;
- optional_shared_ptr<uint32_t> m_paletteram32;
- optional_ioport_array<4> m_analog;
- required_memory_bank m_adsp_bank;
-
- uint8_t m_sound_status;
- uint8_t m_analog_ports[4];
- uint32_t m_fp_analog_ports[2];
- uint32_t m_fp_lenght[2];
- uint8_t m_fp_clock;
- uint8_t m_fp_state;
- uint8_t m_framenum;
- uint8_t m_adsp_ireg;
- offs_t m_adsp_ireg_base;
- offs_t m_adsp_incs;
- offs_t m_adsp_size;
- std::unique_ptr<rgb_t[]> m_palette;
- std::unique_ptr<uint32_t[]> m_polydata_buffer;
- uint32_t m_polydata_count;
- int m_lastscan;
- int m_video_changed;
- std::unique_ptr<gaelco3d_renderer> m_poly;
-
- void irq_ack_w(uint16_t data);
- uint16_t sound_status_r(offs_t offset, uint16_t mem_mask = ~0);
- void sound_status_w(uint16_t data);
- DECLARE_WRITE_LINE_MEMBER(analog_port_clock_w);
- DECLARE_WRITE_LINE_MEMBER(analog_port_latch_w);
- uint32_t tms_m68k_ram_r(offs_t offset);
- void tms_m68k_ram_w(offs_t offset, uint32_t data);
- void tms_iack_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(tms_reset_w);
- DECLARE_WRITE_LINE_MEMBER(tms_irq_w);
- DECLARE_WRITE_LINE_MEMBER(tms_control3_w);
- void adsp_control_w(offs_t offset, uint16_t data);
- void adsp_rombank_w(offs_t offset, uint16_t data);
- DECLARE_WRITE_LINE_MEMBER(radikalb_lamp_w);
- DECLARE_WRITE_LINE_MEMBER(unknown_137_w);
- DECLARE_WRITE_LINE_MEMBER(unknown_13a_w);
- void gaelco3d_render_w(uint32_t data);
- void gaelco3d_paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaelco3d_paletteram_020_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(ser_irq);
- uint16_t eeprom_data_r(offs_t offset, uint16_t mem_mask = ~0);
-
- DECLARE_MACHINE_RESET(gaelco3d2);
- DECLARE_MACHINE_RESET(common);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vblank_gen);
- TIMER_DEVICE_CALLBACK_MEMBER(adsp_autobuffer_irq);
- void gaelco3d_render(screen_device &screen);
- void adsp_tx_callback(offs_t offset, uint32_t data);
- DECLARE_WRITE_LINE_MEMBER(fp_analog_clock_w);
-
- void adsp_data_map(address_map &map);
- void adsp_program_map(address_map &map);
- void main020_map(address_map &map);
- void main_map(address_map &map);
- void tms_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GAELCO3D_H
diff --git a/src/mame/includes/gaelcrpt.h b/src/mame/includes/gaelcrpt.h
deleted file mode 100644
index e6e0af68371..00000000000
--- a/src/mame/includes/gaelcrpt.h
+++ /dev/null
@@ -1,5 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*----------- defined in machine/gaelcrpt.cpp -----------*/
-
-uint16_t gaelco_decrypt(address_space &space, int offset, int data, int param1, int param2);
diff --git a/src/mame/includes/gaiden.h b/src/mame/includes/gaiden.h
deleted file mode 100644
index d05188a47e2..00000000000
--- a/src/mame/includes/gaiden.h
+++ /dev/null
@@ -1,156 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-
-/***************************************************************************
-
- Ninja Gaiden
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_GAIDEN_H
-#define MAME_INCLUDES_GAIDEN_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/74157.h"
-#include "sound/msm5205.h"
-#include "video/bufsprite.h"
-#include "video/tecmo_spr.h"
-#include "video/tecmo_mix.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class gaiden_state : public driver_device
-{
-public:
- gaiden_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram%u", 1),
- m_spriteram(*this, "spriteram"),
- m_adpcm_bank(*this, "adpcm_bank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_sprgen(*this, "spritegen"),
- m_mixer(*this, "mixer"),
- m_msm(*this, "msm%u", 1),
- m_adpcm_select(*this, "adpcm_select%u", 1)
- { }
-
- void raiga(machine_config &config);
- void drgnbowl(machine_config &config);
- void mastninj(machine_config &config);
- void shadoww(machine_config &config);
- void wildfang(machine_config &config);
-
- void init_raiga();
- void init_drgnbowl();
- void init_drgnbowla();
- void init_mastninj();
- void init_shadoww();
- void init_wildfang();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- /* memory pointers */
- required_shared_ptr_array<uint16_t, 3> m_videoram;
- required_device<buffered_spriteram16_device> m_spriteram;
- optional_memory_bank m_adpcm_bank;
-
- /* video-related */
- tilemap_t *m_text_layer;
- tilemap_t *m_foreground;
- tilemap_t *m_background;
- bitmap_ind16 m_sprite_bitmap;
- bitmap_ind16 m_tile_bitmap_bg;
- bitmap_ind16 m_tile_bitmap_fg;
- bitmap_ind16 m_tile_bitmap_tx;
- uint16_t m_tx_scroll_x;
- uint16_t m_tx_scroll_y;
- uint16_t m_bg_scroll_x;
- uint16_t m_bg_scroll_y;
- uint16_t m_fg_scroll_x;
- uint16_t m_fg_scroll_y;
- int8_t m_tx_offset_y;
- int8_t m_bg_offset_y;
- int8_t m_fg_offset_y;
- int8_t m_spr_offset_y;
-
- /* misc */
- int m_sprite_sizey;
- int m_prot;
- int m_jumpcode;
- const int *m_jumppoints; // raiga, wildfang
- bool m_adpcm_toggle;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<tecmo_spr_device> m_sprgen;
- optional_device<tecmo_mix_device> m_mixer;
- optional_device_array<msm5205_device, 2> m_msm;
- optional_device_array<ls157_device, 2> m_adpcm_select;
-
- // mastninja ADPCM control
- DECLARE_WRITE_LINE_MEMBER(vck_flipflop_w);
- void adpcm_bankswitch_w(uint8_t data);
-
- void irq_ack_w(uint16_t data);
- void drgnbowl_irq_ack_w(uint8_t data);
- void gaiden_sound_command_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void wildfang_protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t wildfang_protection_r();
- void raiga_protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t raiga_protection_r();
- void gaiden_flip_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_txscrollx_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_txscrolly_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_fgscrollx_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_fgscrolly_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_bgscrollx_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_bgscrolly_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_txoffsety_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_fgoffsety_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_bgoffsety_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gaiden_sproffsety_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tx_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info_raiga);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- DECLARE_MACHINE_START(mastninj);
- DECLARE_MACHINE_RESET(raiga);
- DECLARE_VIDEO_START(gaiden);
- DECLARE_VIDEO_START(drgnbowl);
- DECLARE_VIDEO_START(raiga);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_raiga);
- uint32_t screen_update_gaiden(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_raiga(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_drgnbowl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void drgnbowl_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void descramble_drgnbowl(int descramble_cpu);
- void descramble_mastninj_gfx(uint8_t* src);
-
- void drgnbowl_map(address_map &map);
- void drgnbowl_sound_map(address_map &map);
- void drgnbowl_sound_port_map(address_map &map);
- void gaiden_map(address_map &map);
- void wildfang_map(address_map &map);
- void raiga_map(address_map &map);
- void mastninj_map(address_map &map);
- void mastninj_sound_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GAIDEN_H
diff --git a/src/mame/includes/galaga.h b/src/mame/includes/galaga.h
deleted file mode 100644
index b3b082b906c..00000000000
--- a/src/mame/includes/galaga.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_GALAGA_H
-#define MAME_INCLUDES_GALAGA_H
-
-#pragma once
-
-#include "video/starfield_05xx.h"
-#include "machine/74259.h"
-#include "sound/discrete.h"
-#include "sound/namco.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class galaga_state : public driver_device
-{
-public:
- galaga_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_videoram(*this, "videoram")
- , m_galaga_ram1(*this, "galaga_ram1")
- , m_galaga_ram2(*this, "galaga_ram2")
- , m_galaga_ram3(*this, "galaga_ram3")
- , m_videolatch(*this, "videolatch")
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "sub")
- , m_subcpu2(*this, "sub2")
- , m_namco_sound(*this, "namco")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_leds(*this, "led%u", 0U)
- , m_starfield(*this, "starfield")
- , m_galaga_gfxbank(0)
- , m_main_irq_mask(0)
- , m_sub_irq_mask(0)
- , m_sub2_nmi_mask(0)
- { }
-
- uint8_t bosco_dsw_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_w);
- DECLARE_WRITE_LINE_MEMBER(irq1_clear_w);
- DECLARE_WRITE_LINE_MEMBER(irq2_clear_w);
- DECLARE_WRITE_LINE_MEMBER(nmion_w);
- void galaga_videoram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(gatsbee_bank_w);
- void out(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(lockout);
- uint8_t namco_52xx_rom_r(offs_t offset);
- uint8_t namco_52xx_si_r();
- void init_galaga();
- void init_gatsbee();
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
- TILE_GET_INFO_MEMBER(get_tile_info);
- DECLARE_VIDEO_START(galaga);
- void galaga_palette(palette_device &palette) const;
- uint32_t screen_update_galaga(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_galaga);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- TIMER_CALLBACK_MEMBER(cpu3_interrupt_callback);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- uint16_t get_next_lfsr_state(uint16_t lfsr);
- void draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void galaga(machine_config &config);
- void gatsbee(machine_config &config);
- void galagab(machine_config &config);
- void dzigzag_mem4(address_map &map);
- void galaga_map(address_map &map);
- void galaga_mem4(address_map &map);
- void gatsbee_main_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- /* memory pointers, devices */
- optional_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_galaga_ram1;
- optional_shared_ptr<uint8_t> m_galaga_ram2;
- optional_shared_ptr<uint8_t> m_galaga_ram3;
- optional_device<ls259_device> m_videolatch; // not present on Xevious
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_subcpu2;
- required_device<namco_device> m_namco_sound;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- output_finder<2> m_leds;
- optional_device<starfield_05xx_device> m_starfield; // not present on battles, digdug, xevious
- emu_timer *m_cpu3_interrupt_timer;
-
- uint32_t m_galaga_gfxbank; // used by gatsbee
-
- /* shared */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
-
- uint8_t m_main_irq_mask;
- uint8_t m_sub_irq_mask;
- uint8_t m_sub2_nmi_mask;
-};
-
-DISCRETE_SOUND_EXTERN( galaga_discrete );
-DISCRETE_SOUND_EXTERN( bosco_discrete );
-
-#endif // MAME_INCLUDES_GALAGA_H
diff --git a/src/mame/includes/galastrm.h b/src/mame/includes/galastrm.h
deleted file mode 100644
index f7f96a6a8ba..00000000000
--- a/src/mame/includes/galastrm.h
+++ /dev/null
@@ -1,111 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Hau
-#ifndef MAME_INCLUDES_GALASTRM_H
-#define MAME_INCLUDES_GALASTRM_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-
-#include "video/poly.h"
-#include "video/tc0100scn.h"
-#include "video/tc0110pcr.h"
-#include "video/tc0480scp.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-
-class galastrm_state;
-
-struct gs_poly_data
-{
- bitmap_ind16* texbase;
-};
-
-class galastrm_renderer : public poly_manager<float, gs_poly_data, 2, 10000>
-{
-public:
- galastrm_renderer(galastrm_state &state);
-
- void tc0610_draw_scanline(s32 scanline, const extent_t& extent, const gs_poly_data& object, int threadid);
- void tc0610_rotate_draw(bitmap_ind16 &srcbitmap, const rectangle &clip);
-
- bitmap_ind16 &screenbits() { return m_screenbits; }
-
-private:
- galastrm_state& m_state;
- bitmap_ind16 m_screenbits;
-};
-
-
-class galastrm_state : public driver_device
-{
- friend class galastrm_renderer;
-public:
- galastrm_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this,"spriteram"),
- m_spritemap_rom(*this, "sprmaprom"),
- m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom"),
- m_tc0100scn(*this, "tc0100scn"),
- m_tc0110pcr(*this, "tc0110pcr"),
- m_tc0480scp(*this, "tc0480scp"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen")
- { }
-
- void galastrm(machine_config &config);
- DECLARE_READ_LINE_MEMBER(frame_counter_r);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_shared_ptr<u32> m_spriteram;
-
- required_region_ptr<u16> m_spritemap_rom;
-
- required_device<cpu_device> m_maincpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<tc0100scn_device> m_tc0100scn;
- required_device<tc0110pcr_device> m_tc0110pcr;
- required_device<tc0480scp_device> m_tc0480scp;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
-
- struct gs_tempsprite
- {
- u8 gfx;
- u32 code,color;
- bool flipx,flipy;
- int x,y;
- int zoomx,zoomy;
- u32 primask;
- };
-
- u16 m_frame_counter;
- int m_tc0610_addr[2];
- s16 m_tc0610_ctrl_reg[2][8];
- std::unique_ptr<gs_tempsprite[]> m_spritelist;
- struct gs_tempsprite *m_sprite_ptr_pre;
- bitmap_ind16 m_tmpbitmaps;
- std::unique_ptr<galastrm_renderer> m_poly;
-
- int m_rsxb;
- int m_rsyb;
- int m_rsxoffs;
- int m_rsyoffs;
-
- template<int Chip> void tc0610_w(offs_t offset, u16 data);
- void coin_word_w(u8 data);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(interrupt);
- void draw_sprites_pre(int x_offs, int y_offs);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, const u32 *primasks, int priority);
-
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GALASTRM_H
diff --git a/src/mame/includes/galaxia.h b/src/mame/includes/galaxia.h
deleted file mode 100644
index 1d7cf760cb0..00000000000
--- a/src/mame/includes/galaxia.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, hap
-/***************************************************************************
-
- Zaccaria Galaxia HW
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_GALAXIA_H
-#define MAME_INCLUDES_GALAXIA_H
-
-#pragma once
-
-#include "includes/cvs.h"
-#include "tilemap.h"
-
-class galaxia_state : public cvs_state
-{
-public:
- galaxia_state(const machine_config &mconfig, device_type type, const char *tag)
- : cvs_state(mconfig, type, tag)
- { }
-
- void astrowar(machine_config &config);
- void galaxia(machine_config &config);
-
- void init_common();
-
-protected:
- virtual void video_start() override;
-
-private:
- tilemap_t *m_bg_tilemap;
- bitmap_ind16 m_temp_bitmap;
- void galaxia_video_w(offs_t offset, uint8_t data);
- void galaxia_scroll_w(uint8_t data);
- void galaxia_ctrlport_w(uint8_t data);
- void galaxia_dataport_w(uint8_t data);
- uint8_t galaxia_collision_r();
- uint8_t galaxia_collision_clear();
- TILE_GET_INFO_MEMBER(get_galaxia_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_astrowar_bg_tile_info);
- void galaxia_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(astrowar);
- void astrowar_palette(palette_device &palette) const;
- uint32_t screen_update_galaxia(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_astrowar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void astrowar_mem_map(address_map &map);
- void galaxia_data_map(address_map &map);
- void galaxia_io_map(address_map &map);
- void galaxia_mem_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GALAXIA_H
diff --git a/src/mame/includes/galaxian.h b/src/mame/includes/galaxian.h
deleted file mode 100644
index b174603eb8a..00000000000
--- a/src/mame/includes/galaxian.h
+++ /dev/null
@@ -1,580 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles, Couriersud
-/***************************************************************************
-
- Galaxian hardware family
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_GALAXIAN_H
-#define MAME_INCLUDES_GALAXIAN_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/i8255.h"
-#include "machine/timer.h"
-#include "sound/ay8910.h"
-#include "sound/dac.h"
-#include "sound/digitalk.h"
-#include "machine/netlist.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-namespace {
-
-/* master clocks */
-static constexpr XTAL GALAXIAN_MASTER_CLOCK(18.432_MHz_XTAL);
-static constexpr XTAL KONAMI_SOUND_CLOCK(14.318181_MHz_XTAL);
-static constexpr XTAL SIDAM_MASTER_CLOCK(12_MHz_XTAL);
-
-/* we scale horizontally by 3 to render stars correctly */
-static constexpr int GALAXIAN_XSCALE = 3;
-/* the Sidam bootlegs have a 12 MHz XTAL instead */
-static constexpr int SIDAM_XSCALE = 2;
-
-static constexpr XTAL GALAXIAN_PIXEL_CLOCK(GALAXIAN_XSCALE*GALAXIAN_MASTER_CLOCK / 3);
-static constexpr XTAL SIDAM_PIXEL_CLOCK(SIDAM_XSCALE*SIDAM_MASTER_CLOCK / 2);
-
-/* H counts from 128->511, HBLANK starts at 130 and ends at 250 */
-/* we normalize this here so that we count 0->383 with HBLANK */
-/* from 264-383 */
-static constexpr int GALAXIAN_HTOTAL = (384 * GALAXIAN_XSCALE);
-static constexpr int GALAXIAN_HBEND = (0 * GALAXIAN_XSCALE);
-//static constexpr int GALAXIAN_H0START = (6*GALAXIAN_XSCALE)
-//static constexpr int GALAXIAN_HBSTART = (264*GALAXIAN_XSCALE)
-static constexpr int GALAXIAN_H0START = (0 * GALAXIAN_XSCALE);
-static constexpr int GALAXIAN_HBSTART = (256 * GALAXIAN_XSCALE);
-
-static constexpr int GALAXIAN_VTOTAL = (264);
-static constexpr int GALAXIAN_VBEND = (16);
-static constexpr int GALAXIAN_VBSTART = (224 + 16);
-
-static constexpr int SIDAM_HTOTAL = (384 * SIDAM_XSCALE);
-static constexpr int SIDAM_HBEND = (0 * SIDAM_XSCALE);
-static constexpr int SIDAM_H0START = (0 * SIDAM_XSCALE);
-static constexpr int SIDAM_HBSTART = (256 * SIDAM_XSCALE);
-
-} // anonymous namespace
-
-class galaxian_state : public driver_device
-{
-public:
- galaxian_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_audio2(*this, "audio2")
- , m_dac(*this, "dac")
- , m_ay8910(*this, "8910.%u", 0)
- , m_ay8910_cclimber(*this, "cclimber_audio:aysnd")
- , m_digitalker(*this, "digitalker")
- , m_ppi8255(*this, "ppi8255_%u", 0)
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_netlist(*this, "konami")
- , m_filter_ctl(*this, "konami:ctl%u", 0)
- , m_ckong_coinage(*this, "COINAGE")
- , m_fake_select(*this, "FAKE_SELECT")
- , m_tenspot_game_dsw(*this, {"IN2_GAME0", "IN2_GAME1", "IN2_GAME2", "IN2_GAME3", "IN2_GAME4", "IN2_GAME5", "IN2_GAME6", "IN2_GAME7", "IN2_GAME8", "IN2_GAME9"})
- , m_spriteram(*this, "spriteram")
- , m_videoram(*this, "videoram")
- , m_exattrram(*this, "extattrram")
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- , m_lamps(*this, "lamp%u", 0U)
- , m_bank1(*this, "bank1")
- , m_leftspriteclip(16)
- { }
-
- /* video extension callbacks */
- typedef void (galaxian_state::*galaxian_extend_tile_info_func)(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- typedef void (galaxian_state::*galaxian_extend_sprite_info_func)(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- typedef void (galaxian_state::*galaxian_draw_bullet_func)(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y);
- typedef void (galaxian_state::*galaxian_draw_background_func)(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void galaxian_videoram_w(offs_t offset, uint8_t data);
- void galaxian_objram_w(offs_t offset, uint8_t data);
- void galaxian_flip_screen_x_w(uint8_t data);
- void galaxian_flip_screen_y_w(uint8_t data);
- void galaxian_flip_screen_xy_w(uint8_t data);
- void galaxian_stars_enable_w(uint8_t data);
- void scramble_background_enable_w(uint8_t data);
- void scramble_background_red_w(uint8_t data);
- void scramble_background_green_w(uint8_t data);
- void scramble_background_blue_w(uint8_t data);
- void galaxian_gfxbank_w(offs_t offset, uint8_t data);
- template <int N> DECLARE_READ_LINE_MEMBER(azurian_port_r);
- DECLARE_READ_LINE_MEMBER(kingball_muxbit_r);
- DECLARE_READ_LINE_MEMBER(kingball_noise_r);
- DECLARE_CUSTOM_INPUT_MEMBER(moonwar_dial_r);
- void irq_enable_w(uint8_t data);
- void start_lamp_w(offs_t offset, uint8_t data);
- void coin_lock_w(uint8_t data);
- void coin_count_0_w(uint8_t data);
- void coin_count_1_w(uint8_t data);
- uint8_t konami_ay8910_r(offs_t offset);
- void konami_ay8910_w(offs_t offset, uint8_t data);
- void konami_sound_filter_w(offs_t offset, uint8_t data);
- uint8_t theend_ppi8255_r(offs_t offset);
- void theend_ppi8255_w(offs_t offset, uint8_t data);
- void theend_protection_w(uint8_t data);
- uint8_t theend_protection_r();
- template <int N> DECLARE_READ_LINE_MEMBER(theend_protection_alt_r);
- void explorer_sound_control_w(uint8_t data);
- uint8_t sfx_sample_io_r(offs_t offset);
- void sfx_sample_io_w(offs_t offset, uint8_t data);
- uint8_t monsterz_protection_r();
- uint8_t frogger_ppi8255_r(offs_t offset);
- void frogger_ppi8255_w(offs_t offset, uint8_t data);
- uint8_t frogger_ay8910_r(offs_t offset);
- void frogger_ay8910_w(offs_t offset, uint8_t data);
- IRQ_CALLBACK_MEMBER(froggermc_audiocpu_irq_ack);
- void froggermc_sound_control_w(uint8_t data);
- uint8_t frogf_ppi8255_r(offs_t offset);
- void frogf_ppi8255_w(offs_t offset, uint8_t data);
- uint8_t turtles_ppi8255_0_r(offs_t offset);
- uint8_t turtles_ppi8255_1_r(offs_t offset);
- void turtles_ppi8255_0_w(offs_t offset, uint8_t data);
- void turtles_ppi8255_1_w(offs_t offset, uint8_t data);
- uint8_t scorpion_ay8910_r(offs_t offset);
- void scorpion_ay8910_w(offs_t offset, uint8_t data);
- uint8_t scorpion_digitalker_intr_r();
- void zigzag_bankswap_w(uint8_t data);
- void zigzag_ay8910_w(offs_t offset, uint8_t data);
- void kingball_speech_dip_w(uint8_t data);
- void kingball_sound1_w(uint8_t data);
- void kingball_sound2_w(uint8_t data);
- void mshuttle_ay8910_cs_w(uint8_t data);
- void mshuttle_ay8910_control_w(uint8_t data);
- void mshuttle_ay8910_data_w(uint8_t data);
- uint8_t mshuttle_ay8910_data_r();
- uint8_t jumpbug_protection_r(offs_t offset);
- void checkman_sound_command_w(uint8_t data);
- uint8_t checkmaj_protection_r();
- uint8_t dingo_3000_r();
- uint8_t dingo_3035_r();
- uint8_t dingoe_3001_r();
- void tenspot_unk_6000_w(uint8_t data);
- void tenspot_unk_8000_w(uint8_t data);
- void tenspot_unk_e000_w(uint8_t data);
- uint8_t froggeram_ppi8255_r(offs_t offset);
- void froggeram_ppi8255_w(offs_t offset, uint8_t data);
- void artic_gfxbank_w(uint8_t data);
- uint8_t tenspot_dsw_read();
- void konami_sound_control_w(uint8_t data);
- uint8_t konami_sound_timer_r();
- void konami_portc_0_w(uint8_t data);
- void konami_portc_1_w(uint8_t data);
- void theend_coin_counter_w(uint8_t data);
- uint8_t explorer_sound_latch_r();
- void sfx_sample_control_w(uint8_t data);
- void monsterz_porta_1_w(uint8_t data);
- void monsterz_portb_1_w(uint8_t data);
- void monsterz_portc_1_w(uint8_t data);
- uint8_t frogger_sound_timer_r();
- uint8_t scorpion_protection_r();
- void scorpion_protection_w(uint8_t data);
- void scorpion_digitalker_control_w(uint8_t data);
- void kingball_dac_w(uint8_t data);
- void moonwar_port_select_w(uint8_t data);
- void init_fourplay();
- void init_videight();
- void init_galaxian();
- void init_nolock();
- void init_azurian();
- void init_pisces();
- void init_batman2();
- void init_highroll();
- void init_frogg();
- void init_mooncrst();
- void init_mooncrsu();
- void init_mooncrgx();
- void init_moonqsr();
- void init_pacmanbl();
- void init_tenspot();
- void init_devilfsg();
- void init_bagmanmc();
- void init_zigzag();
- void init_jumpbug();
- void init_checkman();
- void init_checkmaj();
- void init_dingo();
- void init_dingoe();
- void init_kong();
- void init_mshuttle();
- void init_mshuttlj();
- void init_fantastc();
- void init_timefgtr();
- void init_kingball();
- void init_theend();
- void init_scramble();
- void init_sidam();
- void init_explorer();
- void init_amigo2();
- void init_mandinga();
- void init_mandingaeg();
- void init_sfx();
- void init_atlantis();
- void init_scobra();
- void init_scobrae();
- void init_losttomb();
- void init_frogger();
- void init_froggermc();
- void init_froggers();
- void init_quaak();
- void init_turtles();
- void init_scorpion();
- void init_ckongs();
- void init_ckonggx();
- void init_anteater();
- void init_anteateruk();
- void init_superbon();
- void init_calipso();
- void init_moonwar();
- void init_ghostmun();
- void init_froggrs();
- void init_warofbugg();
- void init_jungsub();
- void init_mimonkey();
- void init_mimonkeyb();
- void init_victoryc();
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- void galaxian_palette(palette_device &palette);
- void moonwar_palette(palette_device &palette);
- void eagle_palette(palette_device &palette);
- void tenspot_set_game_bank(int bank, int from_game);
- uint32_t screen_update_galaxian(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_interrupt_w);
- DECLARE_INPUT_CHANGED_MEMBER(tenspot_fake);
- TIMER_DEVICE_CALLBACK_MEMBER(checkmaj_irq0_gen);
- TIMER_DEVICE_CALLBACK_MEMBER(scramble_stars_blink_timer);
- TIMER_DEVICE_CALLBACK_MEMBER(timefgtr_scanline);
- void state_save_register();
- void sprites_draw(bitmap_rgb32 &bitmap, const rectangle &cliprect, const uint8_t *spritebase);
- void bullets_draw(bitmap_rgb32 &bitmap, const rectangle &cliprect, const uint8_t *base);
- void stars_init();
- void stars_update_origin();
- void stars_draw_row(bitmap_rgb32 &bitmap, int maxx, int y, uint32_t star_offs, uint8_t starmask);
- void null_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void galaxian_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void background_draw_colorsplit(bitmap_rgb32 &bitmap, const rectangle &cliprect, rgb_t color, int split, int split_flipped);
- void scramble_draw_stars(bitmap_rgb32 &bitmap, const rectangle &cliprect, int maxx);
- void scramble_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void anteater_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void jumpbug_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void turtles_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void sfx_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void frogger_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void namenayo_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- inline void galaxian_draw_pixel(bitmap_rgb32 &bitmap, const rectangle &cliprect, int y, int x, rgb_t color);
- void galaxian_draw_bullet(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y);
- void mshuttle_draw_bullet(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y);
- void scramble_draw_bullet(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y);
- void theend_draw_bullet(bitmap_rgb32 &bitmap, const rectangle &cliprect, int offs, int x, int y);
- void upper_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void upper_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void frogger_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void frogger_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void gmgalax_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void gmgalax_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void pisces_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void pisces_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void batman2_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void mooncrst_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void mooncrst_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void moonqsr_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void moonqsr_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void mshuttle_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void mshuttle_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void calipso_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void jumpbug_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void jumpbug_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void mimonkey_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void mimonkey_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void namenayo_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void namenayo_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void monsterz_set_latch();
- void decode_mooncrst(int length, uint8_t *dest);
- void decode_checkman();
- void decode_dingoe();
- void decode_frogger_sound();
- void decode_froggermc_sound();
- void decode_frogger_gfx();
- void decode_anteater_gfx();
- void decode_losttomb_gfx();
- void decode_superbon();
- void decode_victoryc();
- void mshuttle_decode(const uint8_t convtable[8][16]);
- void common_init(galaxian_draw_bullet_func draw_bullet,galaxian_draw_background_func draw_background,
- galaxian_extend_tile_info_func extend_tile_info,galaxian_extend_sprite_info_func extend_sprite_info);
- void galaxian_base(machine_config &config);
- void sidam_bootleg_base(machine_config &config);
- void konami_base(machine_config &config);
- void konami_sound_1x_ay8910(machine_config &config);
- void konami_sound_2x_ay8910(machine_config &config);
- void scramble_base(machine_config &config);
- void timefgtr(machine_config &config);
- void moonqsr(machine_config &config);
- void frogger(machine_config &config);
- void anteatergg(machine_config &config);
- void ozon1(machine_config &config);
- void theend(machine_config &config);
- void turtles(machine_config &config);
- void fantastc(machine_config &config);
- void jumpbug(machine_config &config);
- void checkmaj(machine_config &config);
- void pacmanbl(machine_config &config);
- void quaak(machine_config &config);
- void galaxian(machine_config &config);
- void pisces(machine_config &config);
- void highroll(machine_config &config);
- void tenspot(machine_config &config);
- void froggers(machine_config &config);
- void froggervd(machine_config &config);
- void mshuttle(machine_config &config);
- void anteateruk(machine_config &config);
- void monsterz(machine_config &config);
- void kingball(machine_config &config);
- void anteaterg(machine_config &config);
- void anteater(machine_config &config);
- void moonwar(machine_config &config);
- void turpins(machine_config &config);
- void explorer(machine_config &config);
- void scramble(machine_config &config);
- void scobra(machine_config &config);
- void froggermc(machine_config &config);
- void froggeram(machine_config &config);
- void spactrai(machine_config &config);
- void takeoff(machine_config &config);
- void sfx(machine_config &config);
- void mooncrst(machine_config &config);
- void eagle(machine_config &config);
- void scorpion(machine_config &config);
- void ckongs(machine_config &config);
- void frogf(machine_config &config);
- void amigo2(machine_config &config);
- void zigzag(machine_config &config);
- void checkman(machine_config &config);
- void jungsub(machine_config &config);
- void victoryc(machine_config &config);
- void frogg(machine_config &config);
- void mandingarf(machine_config &config);
- void thepitm(machine_config &config);
- void porter(machine_config &config);
- void skybase(machine_config &config);
- void kong(machine_config &config);
- void bongo(machine_config &config);
- void scorpnmc(machine_config &config);
- void ckongg(machine_config &config);
- void ckongmc(machine_config &config);
- void bagmanmc(machine_config &config);
- void fourplay(machine_config &config);
- void videight(machine_config &config);
- void astroamb(machine_config &config);
- void mimonkey(machine_config &config);
- void mimonscr(machine_config &config);
-
- template <int Mask> CUSTOM_INPUT_MEMBER(ckongg_coinage_r);
- template <int Mask> DECLARE_READ_LINE_MEMBER(ckongs_coinage_r);
-
-protected:
- void amigo2_map(address_map &map);
- void anteaterg_map(address_map &map);
- void anteatergg_map(address_map &map);
- void anteateruk_map(address_map &map);
- void astroamb_map(address_map &map);
- void bagmanmc_map(address_map &map);
- void bagmanmc_io_map(address_map &map);
- void bongo_map(address_map &map);
- void bongo_io_map(address_map &map);
- void checkmaj_sound_map(address_map &map);
- void checkman_sound_map(address_map &map);
- void checkman_sound_portmap(address_map &map);
- void ckongg_map(address_map &map);
- void ckongg_map_base(address_map &map);
- void ckongmc_map(address_map &map);
- void ckongs_map(address_map &map);
- void explorer_map(address_map &map);
- void fantastc_map(address_map &map);
- void frogf_map(address_map &map);
- void frogg_map(address_map &map);
- void frogger_map(address_map &map);
- void froggervd_map(address_map &map);
- void frogger_sound_map(address_map &map);
- void frogger_sound_portmap(address_map &map);
- void froggeram_map(address_map &map);
- void froggermc_map(address_map &map);
- void galaxian_map(address_map &map);
- void galaxian_map_base(address_map &map);
- void galaxian_map_discrete(address_map &map);
- void highroll_map(address_map &map);
- void jumpbug_map(address_map &map);
- void jungsub_map(address_map &map);
- void jungsub_io_map(address_map &map);
- void kingball_sound_map(address_map &map);
- void kingball_sound_portmap(address_map &map);
- void konami_sound_map(address_map &map);
- void konami_sound_portmap(address_map &map);
- void kong_map(address_map &map);
- void mandingarf_map(address_map &map);
- void mimonkey_map(address_map &map);
- void mimonscr_map(address_map &map);
- void monsterz_map(address_map &map);
- void monsterz_sound_map(address_map &map);
- void mooncrst_map(address_map &map);
- void mooncrst_map_base(address_map &map);
- void mooncrst_map_discrete(address_map &map);
- void moonqsr_decrypted_opcodes_map(address_map &map);
- void mshuttle_decrypted_opcodes_map(address_map &map);
- void mshuttle_map(address_map &map);
- void mshuttle_portmap(address_map &map);
- void ozon1_map(address_map &map);
- void ozon1_io_map(address_map &map);
- void pisces_map(address_map &map);
- void porter_map(address_map &map);
- void scobra_map(address_map &map);
- void scorpion_map(address_map &map);
- void scorpion_sound_map(address_map &map);
- void scorpion_sound_portmap(address_map &map);
- void scorpnmc_map(address_map &map);
- void sfx_map(address_map &map);
- void sfx_sample_map(address_map &map);
- void sfx_sample_portmap(address_map &map);
- void skybase_map(address_map &map);
- void spactrai_map(address_map &map);
- void takeoff_sound_map(address_map &map);
- void takeoff_sound_portmap(address_map &map);
- void tenspot_select_map(address_map &map);
- void theend_map(address_map &map);
- void thepitm_map(address_map &map);
- void turpins_map(address_map &map);
- void turpins_sound_map(address_map &map);
- void turtles_map(address_map &map);
- void victoryc_map(address_map &map);
- void zigzag_map(address_map &map);
-
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<cpu_device> m_audio2;
- optional_device<dac_byte_interface> m_dac;
- optional_device_array<ay8910_device, 3> m_ay8910;
- optional_device<ay8910_device> m_ay8910_cclimber;
- optional_device<digitalker_device> m_digitalker;
- optional_device_array<i8255_device, 3> m_ppi8255;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<netlist_mame_sound_device> m_netlist;
- optional_device_array<netlist_mame_logic_input_device, 12> m_filter_ctl;
- optional_ioport m_ckong_coinage;
- optional_ioport m_fake_select;
- optional_ioport_array<10> m_tenspot_game_dsw;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_exattrram; // belongs in namenayo_state but the callbacks are problematic as things are set up
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
- output_finder<2> m_lamps;
-
- memory_bank_creator m_bank1;
-
- int m_bullets_base;
- int m_sprites_base;
- int m_numspritegens;
- int m_counter_74ls161[2];
- int m_direction[2];
- uint8_t m_zigzag_ay8910_latch;
- uint8_t m_kingball_speech_dip;
- uint8_t m_kingball_sound;
- uint8_t m_mshuttle_ay8910_cs;
- uint16_t m_protection_state;
- uint8_t m_protection_result;
- uint8_t m_konami_sound_control;
- uint8_t m_sfx_sample_control;
- uint8_t m_moonwar_port_select;
- uint8_t m_irq_enabled;
- int m_irq_line;
- int m_tenspot_current_game;
- uint8_t m_frogger_adjust;
- uint8_t m_x_scale;
- uint8_t m_h0_start;
- uint8_t m_sfx_tilemap;
-
- galaxian_extend_tile_info_func m_extend_tile_info_ptr;
- galaxian_extend_sprite_info_func m_extend_sprite_info_ptr;
- galaxian_draw_bullet_func m_draw_bullet_ptr;
- galaxian_draw_background_func m_draw_background_ptr;
-
- tilemap_t *m_bg_tilemap;
- uint8_t m_flipscreen_x;
- uint8_t m_flipscreen_y;
- uint8_t m_background_enable;
- uint8_t m_background_red;
- uint8_t m_background_green;
- uint8_t m_background_blue;
- uint32_t m_star_rng_origin;
- uint32_t m_star_rng_origin_frame;
- rgb_t m_star_color[64];
- std::unique_ptr<uint8_t[]> m_stars;
- uint8_t m_stars_enabled;
- uint8_t m_stars_blink_state;
- rgb_t m_bullet_color[8];
- uint8_t m_gfxbank[5];
- uint8_t m_leftspriteclip;
-
- void fourplay_rombank_w(offs_t offset, uint8_t data);
- void videight_rombank_w(offs_t offset, uint8_t data);
- void videight_gfxbank_w(offs_t offset, uint8_t data);
- void videight_extend_tile_info(uint16_t *code, uint8_t *color, uint8_t attrib, uint8_t x, uint8_t y);
- void videight_extend_sprite_info(const uint8_t *base, uint8_t *sx, uint8_t *sy, uint8_t *flipx, uint8_t *flipy, uint16_t *code, uint8_t *color);
- void fourplay_map(address_map &map);
- void videight_map(address_map &map);
-};
-
-class gmgalax_state : public galaxian_state
-{
-public:
- gmgalax_state(const machine_config &mconfig, device_type type, const char *tag)
- : galaxian_state(mconfig, type, tag)
- , m_glin(*this, "GLIN%u", 0U)
- , m_gmin(*this, "GMIN%u", 0U)
- { }
-
- void gmgalax(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(game_changed);
- template <int N> DECLARE_CUSTOM_INPUT_MEMBER(port_r);
-
- void init_gmgalax();
-
-private:
- uint8_t m_selected_game;
- required_ioport_array<3> m_glin;
- required_ioport_array<3> m_gmin;
-};
-
-class namenayo_state : public galaxian_state
-{
-public:
- namenayo_state(const machine_config &mconfig, device_type type, const char *tag)
- : galaxian_state(mconfig, type, tag)
- {
- m_leftspriteclip = 0;
- }
-
- void namenayo(machine_config &config);
- void init_namenayo();
-
-private:
- void namenayo_map(address_map &map);
- void namenayo_extattr_w(offs_t offset, uint8_t data);
- void namenayo_unk_d800_w(uint8_t data);
-};
-
-#endif // MAME_INCLUDES_GALAXIAN_H
diff --git a/src/mame/includes/galaxold.h b/src/mame/includes/galaxold.h
deleted file mode 100644
index f9c70f8c9b2..00000000000
--- a/src/mame/includes/galaxold.h
+++ /dev/null
@@ -1,320 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Galaxian hardware family (old)
-
- This include file is used by the following drivers:
- - dambustr.cpp
- - galaxold.cpp
- - scramble.cpp
- - scobra.cpp
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_GALAXOLD_H
-#define MAME_INCLUDES_GALAXOLD_H
-
-#pragma once
-
-#include "machine/7474.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* star circuit */
-#define STAR_COUNT 252
-struct star_gold
-{
- int x, y, color;
-};
-
-class galaxold_state : public driver_device
-{
-public:
- galaxold_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_7474_9m_1(*this, "7474_9m_1")
- , m_7474_9m_2(*this, "7474_9m_2")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_videoram(*this,"videoram")
- , m_spriteram(*this,"spriteram")
- , m_spriteram2(*this,"spriteram2")
- , m_attributesram(*this,"attributesram")
- , m_bulletsram(*this,"bulletsram")
- , m_rockclim_videoram(*this,"rockclim_vram")
- , m_racknrol_tiles_bank(*this,"racknrol_tbank")
- , m_leds(*this, "led%u", 0U)
- , m_leftclip(2)
- { }
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<ttl7474_device> m_7474_9m_1;
- optional_device<ttl7474_device> m_7474_9m_2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_spriteram2;
- required_shared_ptr<uint8_t> m_attributesram;
- optional_shared_ptr<uint8_t> m_bulletsram;
- optional_shared_ptr<uint8_t> m_rockclim_videoram;
- optional_shared_ptr<uint8_t> m_racknrol_tiles_bank;
- output_finder<2> m_leds;
-
- int m_irq_line;
- uint8_t m__4in1_bank;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_rockclim_tilemap;
- int m_spriteram2_present;
- uint8_t m_gfxbank[5];
- uint8_t m_flipscreen_x;
- uint8_t m_flipscreen_y;
- uint8_t m_color_mask;
- tilemap_t *m_dambustr_tilemap2;
- std::unique_ptr<uint8_t[]> m_dambustr_videoram2;
- int m_leftclip;
-
- void (galaxold_state::*m_modify_charcode)(uint16_t *code, uint8_t x); /* function to call to do character banking */
- void (galaxold_state::*m_modify_spritecode)(uint8_t *spriteram, int*, int*, int*, int); /* function to call to do sprite banking */
- void (galaxold_state::*m_modify_color)(uint8_t *color); /* function to call to do modify how the color codes map to the PROM */
- void (galaxold_state::*m_modify_ypos)(uint8_t*); /* function to call to do modify how vertical positioning bits are connected */
-
- uint8_t m_timer_adjusted;
- uint8_t m_darkplnt_bullet_color;
- void (galaxold_state::*m_draw_bullets)(bitmap_ind16 &,const rectangle &, int, int, int); /* function to call to draw a bullet */
-
- uint8_t m_background_enable;
- uint8_t m_background_red;
- uint8_t m_background_green;
- uint8_t m_background_blue;
- void (galaxold_state::*m_draw_background)(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); /* function to call to draw the background */
- uint16_t m_rockclim_v;
- uint16_t m_rockclim_h;
- int m_dambustr_bg_split_line;
- int m_dambustr_bg_color_1;
- int m_dambustr_bg_color_2;
- int m_dambustr_bg_priority;
- int m_dambustr_char_bank;
- std::unique_ptr<bitmap_ind16> m_dambustr_tmpbitmap;
-
- void (galaxold_state::*m_draw_stars)(bitmap_ind16 &, const rectangle &); /* function to call to draw the star layer */
- int m_stars_colors_start;
- int32_t m_stars_scrollpos;
- uint8_t m_stars_on;
- uint8_t m_stars_blink_state;
- emu_timer *m_stars_blink_timer;
- emu_timer *m_stars_scroll_timer;
- struct star_gold m_stars[STAR_COUNT];
-
- uint8_t drivfrcg_port0_r();
- uint8_t scrambler_protection_2_r();
- uint8_t scramb2_protection_r();
- uint8_t scramb2_port0_r(offs_t offset);
- uint8_t scramb2_port1_r(offs_t offset);
- uint8_t scramb2_port2_r(offs_t offset);
- uint8_t hexpoola_data_port_r();
- uint8_t bullsdrtg_data_port_r();
- void galaxold_nmi_enable_w(uint8_t data);
- void galaxold_coin_lockout_w(uint8_t data);
- void galaxold_coin_counter_w(offs_t offset, uint8_t data);
- void galaxold_coin_counter_1_w(uint8_t data);
- void galaxold_coin_counter_2_w(uint8_t data);
- void galaxold_leds_w(offs_t offset, uint8_t data);
- uint8_t scramblb_protection_1_r();
- uint8_t scramblb_protection_2_r();
- void _4in1_bank_w(uint8_t data);
- void racknrol_tiles_bank_w(offs_t offset, uint8_t data);
- void galaxold_videoram_w(offs_t offset, uint8_t data);
- uint8_t galaxold_videoram_r(offs_t offset);
- void galaxold_attributesram_w(offs_t offset, uint8_t data);
- void galaxold_flip_screen_x_w(uint8_t data);
- void galaxold_flip_screen_y_w(uint8_t data);
- void hotshock_flip_screen_w(uint8_t data);
- void scrambold_background_enable_w(uint8_t data);
- void scrambold_background_red_w(uint8_t data);
- void scrambold_background_green_w(uint8_t data);
- void scrambold_background_blue_w(uint8_t data);
- void galaxold_stars_enable_w(uint8_t data);
- void darkplnt_bullet_color_w(uint8_t data);
- void galaxold_gfxbank_w(offs_t offset, uint8_t data);
- void rockclim_videoram_w(offs_t offset, uint8_t data);
- void rockclim_scroll_w(offs_t offset, uint8_t data);
- void guttang_rombank_w(uint8_t data);
- uint8_t rockclim_videoram_r(offs_t offset);
- void dambustr_bg_split_line_w(uint8_t data);
- void dambustr_bg_color_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(galaxold_7474_9m_2_q_callback);
- DECLARE_WRITE_LINE_MEMBER(galaxold_7474_9m_1_callback);
- uint8_t rescueb_a002_r() { return 0xfc; }
- template <int Mask> DECLARE_READ_LINE_MEMBER(_4in1_fake_port_r);
- template <int Mask> DECLARE_READ_LINE_MEMBER(vpool_lives_r);
- template <int Mask> DECLARE_CUSTOM_INPUT_MEMBER(dkongjrm_coinage_r);
-
- void init_bullsdrtg();
- void init_ladybugg();
- void init_4in1();
- void init_guttangt();
-
- TILE_GET_INFO_MEMBER(drivfrcg_get_tile_info);
- TILE_GET_INFO_MEMBER(racknrol_get_tile_info);
- TILE_GET_INFO_MEMBER(dambustr_get_tile_info2);
- TILE_GET_INFO_MEMBER(get_tile_info);
- TILE_GET_INFO_MEMBER(rockclim_get_tile_info);
- TILE_GET_INFO_MEMBER(harem_get_tile_info);
-
- DECLARE_MACHINE_RESET(galaxold);
- DECLARE_MACHINE_RESET(hunchbkg);
-
- void galaxold_palette(palette_device &palette);
- void rockclim_palette(palette_device &palette) const;
- void scrambold_palette(palette_device &palette);
- void stratgyx_palette(palette_device &palette);
- void darkplnt_palette(palette_device &palette) const;
- void minefld_palette(palette_device &palette);
- void rescue_palette(palette_device &palette);
- void mariner_palette(palette_device &palette);
- void dambustr_palette(palette_device &palette);
- void turtles_palette(palette_device &palette);
-
- DECLARE_VIDEO_START(galaxold);
- DECLARE_VIDEO_START(drivfrcg);
- DECLARE_VIDEO_START(racknrol);
- DECLARE_VIDEO_START(mooncrst);
- DECLARE_VIDEO_START(scrambold);
- DECLARE_VIDEO_START(newsin7);
- DECLARE_VIDEO_START(pisces);
- DECLARE_VIDEO_START(dkongjrm);
- DECLARE_VIDEO_START(dkongjrmc);
- DECLARE_VIDEO_START(rockclim);
- DECLARE_VIDEO_START(galaxold_plain);
- DECLARE_VIDEO_START(ckongs);
- DECLARE_VIDEO_START(darkplnt);
- DECLARE_VIDEO_START(rescue);
- DECLARE_VIDEO_START(minefld);
- DECLARE_VIDEO_START(stratgyx);
- DECLARE_VIDEO_START(mariner);
- DECLARE_VIDEO_START(mimonkey);
- DECLARE_VIDEO_START(scorpion);
- DECLARE_VIDEO_START(ad2083);
- DECLARE_VIDEO_START(dambustr);
- DECLARE_VIDEO_START(harem);
-
- uint32_t screen_update_galaxold(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_dambustr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_CALLBACK_MEMBER(stars_blink_callback);
- TIMER_CALLBACK_MEMBER(stars_scroll_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(galaxold_interrupt_timer);
- uint8_t hunchbkg_intack();
-
- void state_save_register();
- void video_start_common();
- void pisces_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void mooncrst_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void rockclim_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void rockclim_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void harem_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void mooncrst_modify_charcode(uint16_t *code, uint8_t x);
- void pisces_modify_charcode(uint16_t *code, uint8_t x);
- void mimonkey_modify_charcode(uint16_t *code, uint8_t x);
- void mariner_modify_charcode(uint16_t *code, uint8_t x);
- void dambustr_modify_charcode(uint16_t *code, uint8_t x);
- void mshuttle_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void mimonkey_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void batman2_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void dkongjrm_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void dkongjrmc_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void ad2083_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void dambustr_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs);
- void drivfrcg_modify_color(uint8_t *color);
- void galaxold_draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect, int offs, int x, int y);
- void scrambold_draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect, int offs, int x, int y);
- void darkplnt_draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect, int offs, int x, int y);
- void dambustr_draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect, int offs, int x, int y);
- void galaxold_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void scrambold_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void ad2083_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void stratgyx_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void minefld_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void rescue_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void mariner_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void dambustr_draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void dambustr_draw_upper_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void galaxold_init_stars(int colors_offset);
- void plot_star(bitmap_ind16 &bitmap, int x, int y, int color, const rectangle &cliprect);
- void noop_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void galaxold_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void scrambold_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void rescue_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void mariner_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void start_stars_blink_timer(double ra, double rb, double c);
- void start_stars_scroll_timer();
- void draw_bullets_common(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, uint8_t *spriteram, size_t spriteram_size);
- void machine_reset_common(int line);
- void galaxian(machine_config &config);
- void galaxold_base(machine_config &config);
- void _4in1(machine_config &config);
- void racknrol(machine_config &config);
- void hunchbkg(machine_config &config);
- void videotron(machine_config &config);
- void hexpoola(machine_config &config);
- void dkongjrm(machine_config &config);
- void tazzmang(machine_config &config);
- void scrambleo(machine_config &config);
- void scrambler(machine_config &config);
- void spcwarp(machine_config &config);
- void dkongjrmc(machine_config &config);
- void bullsdrtg(machine_config &config);
- void drivfrcg(machine_config &config);
- void rockclim(machine_config &config);
- void scramblb(machine_config &config);
- void scramb2(machine_config &config);
- void scramb3(machine_config &config);
- void mooncrst(machine_config &config);
- void guttang(machine_config &config);
- void galaxian_audio(machine_config &config);
- void mooncrst_audio(machine_config &config);
- void _4in1_map(address_map &map);
- void bullsdrtg_data_map(address_map &map);
- void dkongjrm_map(address_map &map);
- void dkongjrmc_map(address_map &map);
- void drivfrcg_program(address_map &map);
- void drivfrcg_io(address_map &map);
- void galaxold_map(address_map &map);
- void guttang_map(address_map &map);
- void hexpoola_data(address_map &map);
- void hexpoola_io(address_map &map);
- void hunchbkg_map(address_map &map);
- void hunchbkg_data(address_map &map);
- void hustlerb3_map(address_map &map);
- void mooncrst_map(address_map &map);
- void racknrol_map(address_map &map);
- void racknrol_io(address_map &map);
- void rockclim_map(address_map &map);
- void scramb_common_map(address_map &map);
- void scramb2_map(address_map &map);
- void scramb3_map(address_map &map);
- void scramblb_map(address_map &map);
- void scrambleo_map(address_map &map);
- void scrambler_map(address_map &map);
- void spcwarp_map(address_map &map);
- void tazzmang_map(address_map &map);
-
-protected:
- virtual void machine_start() override { m_leds.resolve(); }
-};
-
-#define galaxold_coin_counter_0_w galaxold_coin_counter_w
-
-#endif
diff --git a/src/mame/includes/galaxy.h b/src/mame/includes/galaxy.h
deleted file mode 100644
index 59885dc1753..00000000000
--- a/src/mame/includes/galaxy.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Krzysztof Strzecha, Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/galaxy.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_GALAXY_H
-#define MAME_INCLUDES_GALAXY_H
-
-#pragma once
-
-#include "imagedev/snapquik.h"
-#include "imagedev/cassette.h"
-#include "machine/ram.h"
-#include "screen.h"
-
-class galaxy_state : public driver_device
-{
-public:
- galaxy_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_screen(*this, "screen")
- , m_cassette(*this, "cassette")
- , m_ram(*this, RAM_TAG)
- , m_p_chargen(*this, "chargen")
- , m_io_keyboard(*this, "LINE%u", 0U)
- { }
-
- void galaxy(machine_config &config);
- void galaxyp(machine_config &config);
-
- void init_galaxy();
- void init_galaxyp();
-
-private:
- uint8_t keyboard_r(offs_t offset);
- void latch_w(uint8_t data);
- void machine_start() override;
- void machine_reset() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(gal_video);
- IRQ_CALLBACK_MEMBER(irq_callback);
- void set_timer();
- void setup_snapshot (const uint8_t * data, uint32_t size);
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
- void galaxy_mem(address_map &map);
- void galaxyp_io(address_map &map);
- void galaxyp_mem(address_map &map);
-
- int m_interrupts_enabled;
- uint8_t m_latch_value;
- uint32_t m_gal_cnt;
- uint8_t m_code;
- uint8_t m_first;
- uint32_t m_start_addr;
- emu_timer *m_gal_video_timer;
- bitmap_ind16 m_bitmap;
-
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<cassette_image_device> m_cassette;
- optional_device<ram_device> m_ram;
- required_region_ptr<u8> m_p_chargen;
- required_ioport_array<8> m_io_keyboard;
-};
-
-#endif // MAME_INCLUDES_GALAXY_H
diff --git a/src/mame/includes/galivan.h b/src/mame/includes/galivan.h
deleted file mode 100644
index 24f4ba4ced1..00000000000
--- a/src/mame/includes/galivan.h
+++ /dev/null
@@ -1,126 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia, Olivier Galibert
-/***************************************************************************
-
- Galivan - Cosmo Police
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_GALIVAN_H
-#define MAME_INCLUDES_GALIVAN_H
-
-#pragma once
-
-#include "machine/nb1412m2.h"
-#include "machine/nb1414m4.h"
-#include "machine/gen_latch.h"
-#include "video/bufsprite.h"
-#include "screen.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class galivan_state : public driver_device
-{
-public:
- galivan_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_videoram(*this, "videoram")
- , m_spriteram(*this, "spriteram")
- , m_nb1414m4(*this, "nb1414m4")
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_rombank(*this, "rombank")
- { }
-
- void galivan(machine_config &config);
- void ninjemak(machine_config &config);
- void youmab(machine_config &config);
-
- void init_youmab();
-
-protected:
- void io_map(address_map &map);
- void video_config(machine_config &config);
-
- required_device<cpu_device> m_maincpu;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_device<buffered_spriteram8_device> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_tx_tilemap;
- uint16_t m_scrollx;
- uint16_t m_scrolly;
- uint8_t m_galivan_scrollx[2],m_galivan_scrolly[2];
- uint8_t m_layers;
- uint8_t m_ninjemak_dispdisable;
-
- uint8_t m_shift_scroll; //youmab
- uint32_t m_shift_val;
- void galivan_sound_command_w(uint8_t data);
- uint8_t soundlatch_clear_r();
- uint8_t IO_port_c0_r();
- void blit_trigger_w(uint8_t data);
- void vblank_ack_w(uint8_t data);
- void youmab_extra_bank_w(uint8_t data);
- uint8_t youmab_8a_r();
- void youmab_81_w(uint8_t data);
- void youmab_84_w(uint8_t data);
- void youmab_86_w(uint8_t data);
- void galivan_videoram_w(offs_t offset, uint8_t data);
- void galivan_gfxbank_w(uint8_t data);
- void ninjemak_gfxbank_w(uint8_t data);
- void galivan_scrollx_w(offs_t offset, uint8_t data);
- void galivan_scrolly_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- TILE_GET_INFO_MEMBER(ninjemak_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(ninjemak_get_tx_tile_info);
- void galivan_palette(palette_device &palette) const;
- void ninjemak_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(galivan);
- DECLARE_MACHINE_RESET(galivan);
- DECLARE_VIDEO_START(galivan);
- DECLARE_MACHINE_START(ninjemak);
- DECLARE_MACHINE_RESET(ninjemak);
- DECLARE_VIDEO_START(ninjemak);
- uint32_t screen_update_galivan(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ninjemak(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- optional_device<nb1414m4_device> m_nb1414m4;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- memory_bank_creator m_rombank;
-
- void galivan_map(address_map &map);
- void ninjemak_io_map(address_map &map);
- void ninjemak_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-class dangarj_state : public galivan_state
-{
-public:
- dangarj_state(const machine_config &mconfig, device_type type, const char *tag) :
- galivan_state(mconfig, type, tag),
- m_prot(*this, "prot_chip")
- { }
-
- void dangarj(machine_config &config);
-
-private:
- required_device<nb1412m2_device> m_prot;
-
- void dangarj_io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GALIVAN_H
diff --git a/src/mame/includes/galpani2.h b/src/mame/includes/galpani2.h
deleted file mode 100644
index 6fb19f45b03..00000000000
--- a/src/mame/includes/galpani2.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_GALPANI2_H
-#define MAME_INCLUDES_GALPANI2_H
-
-#pragma once
-
-#include "video/kaneko_spr.h"
-#include "sound/okim6295.h"
-#include "machine/eepromser.h"
-#include "machine/timer.h"
-#include "emupal.h"
-
-class galpani2_state : public driver_device
-{
-public:
- galpani2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_subcpu(*this,"sub"),
- m_kaneko_spr(*this, "kan_spr"),
- m_oki2(*this, "oki2"),
- m_eeprom(*this, "eeprom"),
- m_palette(*this, "palette"),
- m_bg15palette(*this, "bgpalette"),
- m_bg8palette(*this, "bg8palette"),
- m_bg8(*this, "bg8.%u", 0),
- m_palette_val(*this, "palette.%u", 0),
- m_bg8_scrollx(*this, "bg8_scrollx.%u", 0),
- m_bg8_scrolly(*this, "bg8_scrolly.%u", 0),
- m_bg15(*this, "bg15"),
- m_ram(*this, "ram"),
- m_ram2(*this, "ram2"),
- m_spriteram(*this, "spriteram")
- { }
-
- void galpani2(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- optional_device<kaneko16_sprite_device> m_kaneko_spr;
- required_device<okim6295_device> m_oki2;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<palette_device> m_palette;
- required_device<palette_device> m_bg15palette;
- required_device<palette_device> m_bg8palette;
-
- required_shared_ptr_array<uint16_t, 2> m_bg8;
- optional_shared_ptr_array<uint16_t, 2> m_palette_val;
- required_shared_ptr_array<uint16_t, 2> m_bg8_scrollx;
- required_shared_ptr_array<uint16_t, 2> m_bg8_scrolly;
- required_shared_ptr<uint16_t> m_bg15;
- required_shared_ptr<uint16_t> m_ram;
- required_shared_ptr<uint16_t> m_ram2;
- optional_shared_ptr<uint16_t> m_spriteram;
-
- uint16_t m_eeprom_word;
- uint16_t m_old_mcu_nmi1;
- uint16_t m_old_mcu_nmi2;
-
- void galpani2_mcu_init_w(uint8_t data);
- void galpani2_mcu_nmi1_w(uint8_t data);
- void galpani2_mcu_nmi2_w(uint8_t data);
- void galpani2_coin_lockout_w(uint8_t data);
- uint16_t galpani2_eeprom_r();
- void galpani2_eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void galpani2_oki1_bank_w(uint8_t data);
- void galpani2_oki2_bank_w(uint8_t data);
- void subdatabank_select_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_galpani2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void copybg8(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer);
- void copybg15(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(galpani2_interrupt1);
- TIMER_DEVICE_CALLBACK_MEMBER(galpani2_interrupt2);
- void galpani2_mcu_nmi1();
- void galpani2_mcu_nmi2();
- void galpani2_mem1(address_map &map);
- void galpani2_mem2(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GALPANI2_H
diff --git a/src/mame/includes/galpanic.h b/src/mame/includes/galpanic.h
deleted file mode 100644
index 6b239aec6f1..00000000000
--- a/src/mame/includes/galpanic.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_GALPANIC_H
-#define MAME_INCLUDES_GALPANIC_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "video/kan_pand.h"
-#include "emupal.h"
-#include "screen.h"
-
-class galpanic_state : public driver_device
-{
-public:
- galpanic_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_bgvideoram(*this, "bgvideoram")
- , m_fgvideoram(*this, "fgvideoram")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_pandora(*this, "pandora")
- { }
-
- void galpanica(machine_config &config);
- void galpanic(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_shared_ptr<uint16_t> m_bgvideoram;
- required_shared_ptr<uint16_t> m_fgvideoram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<kaneko_pandora_device> m_pandora;
-
- bitmap_ind16 m_bitmap;
-
- void m6295_bankswitch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void coin_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bgvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- void galpanic_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
- void draw_fgbitmap(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void galpanic_map(address_map &map);
- void galpanic_oki_map(address_map &map);
- void galpanica_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GALPANIC_H
diff --git a/src/mame/includes/galpnipt.h b/src/mame/includes/galpnipt.h
deleted file mode 100644
index 9f5918921b6..00000000000
--- a/src/mame/includes/galpnipt.h
+++ /dev/null
@@ -1,159 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*******************************************************************************
-
- Input port macros used by games in the galpanic.c driver
-
-*******************************************************************************/
-
-
-/**************************** Inputs ****************************/
-
-#define GALS_PANIC_JOYSTICK_4WAY(PL)\
- PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(PL)\
- PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(PL)\
- PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(PL)\
- PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(PL)\
- PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(PL)\
- PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(PL) PORT_OPTIONAL\
- PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define GALS_PANIC_JOYSTICK_8WAY(PL)\
- PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(PL)\
- PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(PL)\
- PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(PL)\
- PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(PL)\
- PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(PL)\
- PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(PL)\
- PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(PL)\
- PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define SYSTEM_SERVICE\
- PORT_START("SYSTEM")\
- PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )\
- PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 )\
- PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 )\
- PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 )\
- PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_TILT )\
- PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_SERVICE1 )\
- PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define SYSTEM_NO_SERVICE\
- PORT_START("SYSTEM")\
- PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )\
- PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 )\
- PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 )\
- PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 )\
- PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_TILT )\
- PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define SYSTEM_NO_TILT\
- PORT_START("SYSTEM")\
- PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )\
- PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 )\
- PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 )\
- PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 )\
- PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )\
- PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-/**************************** Coinage & Dip Switches ****************************/
-
-#define COINAGE_WORLD\
- PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6")\
- PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) )\
- PORT_DIPSETTING( 0x0010, DEF_STR( 3C_1C ) )\
- PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) )\
- PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) )\
- PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8")\
- PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_2C ) )\
- PORT_DIPSETTING( 0x0080, DEF_STR( 1C_3C ) )\
- PORT_DIPSETTING( 0x0040, DEF_STR( 1C_4C ) )\
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) )
-
-#define COINAGE_JAPAN\
- PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6")\
- PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) )\
- PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) )\
- PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) )\
- PORT_DIPSETTING( 0x0020, DEF_STR( 1C_2C ) )\
- PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8")\
- PORT_DIPSETTING( 0x0040, DEF_STR( 2C_1C ) )\
- PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_1C ) )\
- PORT_DIPSETTING( 0x0000, DEF_STR( 2C_3C ) )\
- PORT_DIPSETTING( 0x0080, DEF_STR( 1C_2C ) )
-
-#define COINAGE_NO_TEST_LOC\
- PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0001, "SW1:1" )\
- PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:2")\
- PORT_DIPSETTING( 0x0002, DEF_STR( Off ) )\
- PORT_DIPSETTING( 0x0000, DEF_STR( On ) )\
- PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW1:3" )\
- PORT_DIPNAME( 0x0008, 0x0008, "Coin Mode" ) PORT_DIPLOCATION("SW1:4")\
- PORT_DIPSETTING( 0x0008, "Mode 1" )\
- PORT_DIPSETTING( 0x0000, "Mode 2" )\
- PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6")\
- PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) )\
- PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) )\
- PORT_DIPSETTING( 0x0010, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0008)\
- PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0000)\
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0000)\
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0008)\
- PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8")\
- PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) )\
- PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_1C ) )\
- PORT_DIPSETTING( 0x0040, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0008)\
- PORT_DIPSETTING( 0x0040, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0000)\
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0000)\
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0008)
-
-#define COINAGE_TEST_LOC\
- PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0001, "SW1:1" )\
- PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:2")\
- PORT_DIPSETTING( 0x0002, DEF_STR( Off ) )\
- PORT_DIPSETTING( 0x0000, DEF_STR( On ) )\
- PORT_SERVICE_DIPLOC( 0x0004, IP_ACTIVE_LOW, "SW1:3" )\
- PORT_DIPNAME( 0x0008, 0x0008, "Coin Mode" ) PORT_DIPLOCATION("SW1:4")\
- PORT_DIPSETTING( 0x0008, "Mode 1" )\
- PORT_DIPSETTING( 0x0000, "Mode 2" )\
- PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6")\
- PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) )\
- PORT_DIPSETTING( 0x0030, DEF_STR( 1C_1C ) )\
- PORT_DIPSETTING( 0x0010, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0008)\
- PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0000)\
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0000)\
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0008)\
- PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8")\
- PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) )\
- PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_1C ) )\
- PORT_DIPSETTING( 0x0040, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0008)\
- PORT_DIPSETTING( 0x0040, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0000)\
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0000)\
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSW1",0x0008,EQUALS,0x0008)
-
-
-#define DIFFICULTY_DEMO_SOUNDS\
- PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2")\
- PORT_DIPSETTING( 0x0002, DEF_STR( Easy ) )\
- PORT_DIPSETTING( 0x0003, DEF_STR( Normal ) )\
- PORT_DIPSETTING( 0x0001, DEF_STR( Hard ) )\
- PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) )\
- PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0004, "SW2:3" )\
- PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW2:4" )\
- PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6")\
- PORT_DIPSETTING( 0x0010, "2" )\
- PORT_DIPSETTING( 0x0030, "3" )\
- PORT_DIPSETTING( 0x0020, "4" )\
- PORT_DIPSETTING( 0x0000, "5" )\
- PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7")\
- PORT_DIPSETTING( 0x0000, DEF_STR( Off ) )\
- PORT_DIPSETTING( 0x0040, DEF_STR( On ) )\
- PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW2:8" )
diff --git a/src/mame/includes/galspnbl.h b/src/mame/includes/galspnbl.h
deleted file mode 100644
index d71cd32742b..00000000000
--- a/src/mame/includes/galspnbl.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-
-/*************************************************************************
-
- Hot Pinball
- Gals Pinball
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GALSPNBL_H
-#define MAME_INCLUDES_GALSPNBL_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "video/tecmo_spr.h"
-#include "emupal.h"
-#include "screen.h"
-
-class galspnbl_state : public driver_device
-{
-public:
- galspnbl_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_scroll(*this, "scroll"),
- m_audiocpu(*this, "audiocpu"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sprgen(*this, "spritegen"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void galspnbl(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_colorram;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_bgvideoram;
- required_shared_ptr<uint16_t> m_scroll;
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<tecmo_spr_device> m_sprgen;
- required_device<screen_device> m_screen;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void soundcommand_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- virtual void machine_start() override;
- void galspnbl_palette(palette_device &palette) const;
- uint32_t screen_update_galspnbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_background( bitmap_ind16 &bitmap, const rectangle &cliprect );
- bitmap_ind16 m_sprite_bitmap;
- DECLARE_VIDEO_START(galspnbl);
-
- void mix_sprite_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int pri);
-
- void audio_map(address_map &map);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GALSPNBL_H
diff --git a/src/mame/includes/gamecom.h b/src/mame/includes/gamecom.h
deleted file mode 100644
index 5df264a8fc5..00000000000
--- a/src/mame/includes/gamecom.h
+++ /dev/null
@@ -1,306 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol, Robbbert
-/*****************************************************************************
- *
- * includes/gamecom.h
- *
- * Tiger Game.com
- *
- * Driver by Wilbert Pol
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_GAMECOM_H
-#define MAME_INCLUDES_GAMECOM_H
-
-#pragma once
-
-#include "cpu/sm8500/sm8500.h"
-#include "sound/dac.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "machine/nvram.h"
-#include "emupal.h"
-
-/* SM8521 register addresses */
-enum
-{
- SM8521_R0 = 0x00,
- SM8521_R1 = 0x01,
- SM8521_R2 = 0x02,
- SM8521_R3 = 0x03,
- SM8521_R4 = 0x04,
- SM8521_R5 = 0x05,
- SM8521_R6 = 0x06,
- SM8521_R7 = 0x07,
- SM8521_R8 = 0x08,
- SM8521_R9 = 0x09,
- SM8521_R10 = 0x0A,
- SM8521_R11 = 0x0B,
- SM8521_R12 = 0x0C,
- SM8521_R13 = 0x0D,
- SM8521_R14 = 0x0E,
- SM8521_R15 = 0x0F,
- SM8521_IE0 = 0x10,
- SM8521_IE1 = 0x11,
- SM8521_IR0 = 0x12,
- SM8521_IR1 = 0x13,
- SM8521_P0 = 0x14,
- SM8521_P1 = 0x15,
- SM8521_P2 = 0x16,
- SM8521_P3 = 0x17,
- SM8521_18 = 0x18, /* reserved */
- SM8521_SYS = 0x19,
- SM8521_CKC = 0x1A,
- SM8521_1B = 0x1B, /* reserved */
- SM8521_SPH = 0x1C,
- SM8521_SPL = 0x1D,
- SM8521_PS0 = 0x1E,
- SM8521_PS1 = 0x1F,
- SM8521_P0C = 0x20,
- SM8521_P1C = 0x21,
- SM8521_P2C = 0x22,
- SM8521_P3C = 0x23,
- SM8521_MMU0 = 0x24,
- SM8521_MMU1 = 0x25,
- SM8521_MMU2 = 0x26,
- SM8521_MMU3 = 0x27,
- SM8521_MMU4 = 0x28,
- SM8521_29 = 0x29, /* reserved */
- SM8521_2A = 0x2A, /* reserved */
- SM8521_URTT = 0x2B,
- SM8521_URTR = 0x2C,
- SM8521_URTS = 0x2D,
- SM8521_URTC = 0x2E,
- SM8521_2F = 0x2F, /* reserved */
- SM8521_LCDC = 0x30,
- SM8521_LCH = 0x31,
- SM8521_LCV = 0x32,
- SM8521_33 = 0x33, /* reserved */
- SM8521_DMC = 0x34,
- SM8521_DMX1 = 0x35,
- SM8521_DMY1 = 0x36,
- SM8521_DMDX = 0x37,
- SM8521_DMDY = 0x38,
- SM8521_DMX2 = 0x39,
- SM8521_DMY2 = 0x3A,
- SM8521_DMPL = 0x3B,
- SM8521_DMBR = 0x3C,
- SM8521_DMVP = 0x3D,
- SM8521_3E = 0x3E, /* reserved */
- SM8521_3F = 0x3F, /* reserved */
- SM8521_SGC = 0x40,
- SM8521_41 = 0x41, /* reserved */
- SM8521_SG0L = 0x42,
- SM8521_43 = 0x43, /* reserved */
- SM8521_SG1L = 0x44,
- SM8521_45 = 0x45, /* reserved */
- SM8521_SG0TH = 0x46,
- SM8521_SG0TL = 0x47,
- SM8521_SG1TH = 0x48,
- SM8521_SG1TL = 0x49,
- SM8521_SG2L = 0x4A,
- SM8521_4B = 0x4B, /* reserved */
- SM8521_SG2TH = 0x4C,
- SM8521_SG2TL = 0x4D,
- SM8521_SGDA = 0x4E,
- SM8521_4F = 0x4F, /* reserved */
- SM8521_TM0C = 0x50,
- SM8521_TM0D = 0x51,
- SM8521_TM1C = 0x52,
- SM8521_TM1D = 0x53,
- SM8521_CLKT = 0x54,
- SM8521_55 = 0x55, /* reserved */
- SM8521_56 = 0x56, /* reserved */
- SM8521_57 = 0x57, /* reserved */
- SM8521_58 = 0x58, /* reserved */
- SM8521_59 = 0x59, /* reserved */
- SM8521_5A = 0x5A, /* reserved */
- SM8521_5B = 0x5B, /* reserved */
- SM8521_5C = 0x5C, /* reserved */
- SM8521_5D = 0x5D, /* reserved */
- SM8521_WDT = 0x5E,
- SM8521_WDTC = 0x5F,
- SM8521_SG0W0 = 0x60,
- SM8521_SG0W1 = 0x61,
- SM8521_SG0W2 = 0x62,
- SM8521_SG0W3 = 0x63,
- SM8521_SG0W4 = 0x64,
- SM8521_SG0W5 = 0x65,
- SM8521_SG0W6 = 0x66,
- SM8521_SG0W7 = 0x67,
- SM8521_SG0W8 = 0x68,
- SM8521_SG0W9 = 0x69,
- SM8521_SG0W10 = 0x6A,
- SM8521_SG0W11 = 0x6B,
- SM8521_SG0W12 = 0x6C,
- SM8521_SG0W13 = 0x6D,
- SM8521_SG0W14 = 0x6E,
- SM8521_SG0W15 = 0x6F,
- SM8521_SG1W0 = 0x70,
- SM8521_SG1W1 = 0x71,
- SM8521_SG1W2 = 0x72,
- SM8521_SG1W3 = 0x73,
- SM8521_SG1W4 = 0x74,
- SM8521_SG1W5 = 0x75,
- SM8521_SG1W6 = 0x76,
- SM8521_SG1W7 = 0x77,
- SM8521_SG1W8 = 0x78,
- SM8521_SG1W9 = 0x79,
- SM8521_SG1W10 = 0x7A,
- SM8521_SG1W11 = 0x7B,
- SM8521_SG1W12 = 0x7C,
- SM8521_SG1W13 = 0x7D,
- SM8521_SG1W14 = 0x7E,
- SM8521_SG1W15 = 0x7F
-};
-
-struct GAMECOM_DMA
-{
- u8 width_x;
- u8 width_y;
- u8 source_x;
- u8 source_x_current;
- u8 source_y;
- u8 source_width;
- u8 dest_x;
- u8 dest_x_current;
- u8 dest_y;
- u8 dest_width;
- u8 palette;
- u8 block_width;
- u8 block_height;
- u8 *source_bank;
- u16 source_current;
- u16 source_line;
- u16 source_mask;
- u8 *dest_bank;
- u16 dest_current;
- u16 dest_line;
- u16 dest_mask;
- u8 transfer_mode;
- s16 adjust_x;
- bool decrement_y;
- bool overwrite_mode;
-};
-
-struct GAMECOM_TIMER
-{
- bool enabled;
- u32 prescale_count;
- u32 prescale_max;
- u8 upcounter_max;
-};
-
-struct gamecom_sound_t
-{
- uint8_t sgc;
- uint8_t sg0l;
- uint8_t sg1l;
- uint8_t sg2l;
- uint16_t sg0t;
- uint16_t sg1t;
- uint16_t sg2t;
- uint8_t sgda;
- uint8_t sg0w[16];
- uint8_t sg1w[16];
-};
-
-
-class gamecom_state : public driver_device
-{
-public:
- gamecom_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_p_videoram(*this,"videoram")
- , m_p_nvram(*this,"nvram")
- , m_maincpu(*this, "maincpu")
- , m_screen(*this, "screen")
- , m_dac(*this, "dac")
- , m_dac0(*this, "dac0")
- , m_dac1(*this, "dac1")
- , m_cart1(*this, "cartslot1")
- , m_cart2(*this, "cartslot2")
- , m_bank1(*this, "bank1")
- , m_bank2(*this, "bank2")
- , m_bank3(*this, "bank3")
- , m_bank4(*this, "bank4")
- , m_share_maincpu(*this, "maincpu")
- , m_region_kernel(*this, "kernel")
- , m_io_in0(*this, "IN0")
- , m_io_in1(*this, "IN1")
- , m_io_in2(*this, "IN2")
- , m_io_grid(*this, "GRID.%u", 0)
- {
- }
-
- void gamecom(machine_config &config);
-
- void init_gamecom();
-
-private:
-
- uint8_t gamecom_internal_r(offs_t offset);
- uint8_t gamecom_pio_r(offs_t offset);
- void gamecom_internal_w(offs_t offset, uint8_t data);
- void gamecom_pio_w(offs_t offset, uint8_t data);
- void gamecom_palette(palette_device &palette) const;
- INTERRUPT_GEN_MEMBER(gamecom_interrupt);
- TIMER_CALLBACK_MEMBER(gamecom_clock_timer_callback);
- TIMER_CALLBACK_MEMBER(gamecom_sound0_timer_callback);
- TIMER_CALLBACK_MEMBER(gamecom_sound1_timer_callback);
- TIMER_CALLBACK_MEMBER(gamecom_scanline);
- void gamecom_handle_dma(uint8_t data);
- void gamecom_update_timers(uint8_t data);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( cart1_load );
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( cart2_load );
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void gamecom_mem_map(address_map &map);
-
- uint8_t *m_p_ram;
- uint8_t *m_cart_ptr;
- uint8_t m_lcdc_reg;
- uint8_t m_lch_reg;
- uint8_t m_lcv_reg;
- uint8_t m_sound0_cnt;
- uint8_t m_sound1_cnt;
- uint16_t m_scanline;
- uint16_t m_base_address;
- memory_region *m_cart1_rom;
- memory_region *m_cart2_rom;
- emu_timer *m_clock_timer;
- emu_timer *m_sound0_timer;
- emu_timer *m_sound1_timer;
- emu_timer *m_scanline_timer;
- GAMECOM_DMA m_dma;
- GAMECOM_TIMER m_timer[2];
- gamecom_sound_t m_sound;
- bitmap_ind16 m_bitmap;
- void gamecom_set_mmu(uint8_t mmu, uint8_t data);
- void handle_stylus_press(int column);
- void recompute_lcd_params();
- void handle_input_press(uint16_t mux_data);
- image_init_result common_load(device_image_interface &image, generic_slot_device *slot);
- virtual void machine_reset() override;
- virtual void video_start() override;
- required_shared_ptr<uint8_t> m_p_videoram;
- required_shared_ptr<uint8_t> m_p_nvram;
- required_device<sm8500_cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<dac_byte_interface> m_dac;
- required_device<dac_byte_interface> m_dac0;
- required_device<dac_byte_interface> m_dac1;
- required_device<generic_slot_device> m_cart1;
- required_device<generic_slot_device> m_cart2;
- required_memory_bank m_bank1;
- required_memory_bank m_bank2;
- required_memory_bank m_bank3;
- required_memory_bank m_bank4;
- required_shared_ptr<u8> m_share_maincpu;
- required_memory_region m_region_kernel;
- required_ioport m_io_in0;
- required_ioport m_io_in1;
- required_ioport m_io_in2;
- required_ioport_array<13> m_io_grid;
-};
-
-#endif // MAME_INCLUDES_GAMECOM_H
diff --git a/src/mame/includes/gameplan.h b/src/mame/includes/gameplan.h
deleted file mode 100644
index ed399a51857..00000000000
--- a/src/mame/includes/gameplan.h
+++ /dev/null
@@ -1,135 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Chris Moore
-/***************************************************************************
-
-GAME PLAN driver
-
-driver by Chris Moore
-
-***************************************************************************/
-
-#include "machine/6522via.h"
-#include "machine/6532riot.h"
-#include "machine/gen_latch.h"
-#include "screen.h"
-
-#define GAMEPLAN_MAIN_MASTER_CLOCK (XTAL(3'579'545))
-#define GAMEPLAN_AUDIO_MASTER_CLOCK (XTAL(3'579'545))
-#define GAMEPLAN_MAIN_CPU_CLOCK (GAMEPLAN_MAIN_MASTER_CLOCK / 4)
-#define GAMEPLAN_AUDIO_CPU_CLOCK (GAMEPLAN_AUDIO_MASTER_CLOCK / 4)
-#define GAMEPLAN_AY8910_CLOCK (GAMEPLAN_AUDIO_MASTER_CLOCK / 2)
-#define GAMEPLAN_PIXEL_CLOCK (XTAL(11'668'800) / 2)
-
-/* Used Leprechaun/Pot of Gold (and Pirate Treasure) - as stated in manual for Pot Of Gold */
-
-#define LEPRECHAUN_MAIN_MASTER_CLOCK (XTAL(4'000'000))
-#define LEPRECHAUN_MAIN_CPU_CLOCK (LEPRECHAUN_MAIN_MASTER_CLOCK / 4)
-
-
-class gameplan_state : public driver_device
-{
-public:
- enum
- {
- TIMER_CLEAR_SCREEN_DONE,
- TIMER_VIA_IRQ_DELAYED,
- TIMER_VIA_0_CAL
- };
-
- gameplan_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_via_0(*this, "via6522_0"),
- m_via_1(*this, "via6522_1"),
- m_via_2(*this, "via6522_2"),
- m_screen(*this, "screen"),
- m_audiocpu(*this, "audiocpu"),
- m_riot(*this, "riot"),
- m_soundlatch(*this, "soundlatch") { }
-
- void gameplan(machine_config &config);
- void gameplan_video(machine_config &config);
- void leprechn(machine_config &config);
- void leprechn_video(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- required_device<cpu_device> m_maincpu;
- required_device<via6522_device> m_via_0;
- required_device<via6522_device> m_via_1;
- required_device<via6522_device> m_via_2;
- required_device<screen_device> m_screen;
-
- void video_data_w(uint8_t data);
- void gameplan_video_command_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(video_command_trigger_w);
- DECLARE_WRITE_LINE_MEMBER(via_irq);
- uint32_t screen_update_gameplan(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
-private:
- /* machine state */
- uint8_t m_current_port;
-
- /* video state */
- std::unique_ptr<uint8_t[]> m_videoram;
- size_t m_videoram_size;
- uint8_t m_video_x;
- uint8_t m_video_y;
- uint8_t m_video_command;
- uint8_t m_video_data;
-
- /* devices */
- optional_device<cpu_device> m_audiocpu;
- optional_device<riot6532_device> m_riot;
- optional_device<generic_latch_8_device> m_soundlatch;
-
-
- void io_select_w(uint8_t data);
- uint8_t io_port_r();
- DECLARE_WRITE_LINE_MEMBER(coin_w);
- DECLARE_WRITE_LINE_MEMBER(audio_reset_w);
- void audio_cmd_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(audio_trigger_w);
- DECLARE_WRITE_LINE_MEMBER(r6532_irq);
-
- uint32_t screen_update_leprechn(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(clear_screen_done_callback);
- TIMER_CALLBACK_MEMBER(via_irq_delayed);
- void leprechn_video_command_w(uint8_t data);
- uint8_t leprechn_videoram_r();
- void gameplan_get_pens( pen_t *pens );
- void leprechn_get_pens( pen_t *pens );
-
- void gameplan_audio_map(address_map &map);
- void gameplan_main_map(address_map &map);
- void leprechn_audio_map(address_map &map);
-};
-
-class trvquest_state : public gameplan_state
-{
-public:
- trvquest_state(const machine_config &mconfig, device_type type, const char *tag) :
- gameplan_state(mconfig, type, tag),
- m_question(*this, "question"),
- m_questions_region(*this, "questions") { }
-
- void trvquest(machine_config &config);
- void trvquest_video(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_shared_ptr<uint8_t> m_question;
- required_region_ptr<uint8_t> m_questions_region;
-
- uint8_t question_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(coin_w);
- DECLARE_WRITE_LINE_MEMBER(misc_w);
-
- void cpu_map(address_map &map);
-};
diff --git a/src/mame/includes/gamepock.h b/src/mame/includes/gamepock.h
deleted file mode 100644
index dd16f46a6f6..00000000000
--- a/src/mame/includes/gamepock.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol
-#ifndef MAME_INCLUDES_GAMEPOCK_H
-#define MAME_INCLUDES_GAMEPOCK_H
-
-#pragma once
-
-#include "bus/generic/slot.h"
-#include "sound/spkrdev.h"
-
-class gamepock_state : public driver_device
-{
-public:
- gamepock_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_speaker(*this, "speaker"),
- m_cart(*this, "cartslot")
- { }
-
- void gamepock(machine_config &config);
-
-private:
- struct HD44102CH {
- uint8_t enabled;
- uint8_t start_page;
- uint8_t address;
- uint8_t y_inc;
- uint8_t ram[256]; // There are actually 50 x 4 x 8 bits. This just makes addressing easier.
- };
-
- virtual void machine_reset() override;
-
- void hd44102ch_w(int which, int c_d, uint8_t data);
- void hd44102ch_init(int which);
- void lcd_update();
-
- void port_a_w(uint8_t data);
- uint8_t port_b_r();
- void port_b_w(uint8_t data);
- uint8_t port_c_r();
- uint32_t screen_update_gamepock(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(gamepock_to_w);
- void gamepock_mem(address_map &map);
-
- uint8_t m_port_a;
- uint8_t m_port_b;
- HD44102CH m_hd44102ch[3];
-
- required_device<cpu_device> m_maincpu;
- required_device<speaker_sound_device> m_speaker;
- required_device<generic_slot_device> m_cart;
-};
-
-#endif // MAME_INCLUDES_GAMEPOCK_H
diff --git a/src/mame/includes/gaplus.h b/src/mame/includes/gaplus.h
deleted file mode 100644
index fe3bd36a723..00000000000
--- a/src/mame/includes/gaplus.h
+++ /dev/null
@@ -1,163 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia, Ernesto Corvi, Nicola Salmoria
-#ifndef MAME_INCLUDES_GAPLUS_H
-#define MAME_INCLUDES_GAPLUS_H
-
-#pragma once
-
-#include "sound/namco.h"
-#include "sound/samples.h"
-#include "machine/namcoio.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class gaplus_base_state : public driver_device
-{
-public:
- static constexpr unsigned MAX_STARS = 250;
-
- struct star {
- float x,y;
- int col,set;
- };
-
- enum
- {
- TIMER_NAMCOIO0_RUN,
- TIMER_NAMCOIO1_RUN
- };
-
- gaplus_base_state(const machine_config &mconfig, device_type type, const char *tag, const char *namco56xx_tag, const char *namco58xx_tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "sub")
- , m_subcpu2(*this, "sub2")
- , m_namco56xx(*this, namco56xx_tag)
- , m_namco58xx(*this, namco58xx_tag)
- , m_namco_15xx(*this, "namco")
- , m_samples(*this, "samples")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_proms_region(*this, "proms")
- , m_customio_3(*this, "customio_3")
- , m_videoram(*this, "videoram")
- , m_spriteram(*this, "spriteram")
- , m_gfx1_region(*this, "gfx1")
- , m_gfx2_region(*this, "gfx2")
- { }
-
- void irq_1_ctrl_w(offs_t offset, uint8_t data);
- void irq_2_ctrl_w(offs_t offset, uint8_t data);
- void irq_3_ctrl_w(offs_t offset, uint8_t data);
- void sreset_w(offs_t offset, uint8_t data);
- void freset_w(offs_t offset, uint8_t data);
- void customio_3_w(offs_t offset, uint8_t data);
- uint8_t customio_3_r(offs_t offset);
- void videoram_w(offs_t offset, uint8_t data);
- void starfield_control_w(offs_t offset, uint8_t data);
-
- void gaplus_palette(palette_device &palette) const;
-
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- TIMER_CALLBACK_MEMBER(namcoio0_run);
- TIMER_CALLBACK_MEMBER(namcoio1_run);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void starfield_init();
- void starfield_render(bitmap_ind16 &bitmap);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect ) const;
-
- void gaplus_base(machine_config &config);
- void cpu1_map(address_map &map);
- void cpu2_map(address_map &map);
- void cpu3_map(address_map &map);
-
- virtual void driver_init() override;
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_subcpu2;
- required_device<namco56xx_device> m_namco56xx;
- required_device<namco58xx_device> m_namco58xx;
- required_device<namco_15xx_device> m_namco_15xx;
- required_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_memory_region m_proms_region;
-
- required_shared_ptr<uint8_t> m_customio_3;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_memory_region m_gfx1_region;
- required_memory_region m_gfx2_region;
-
- int m_type;
-
- tilemap_t *m_bg_tilemap;
- uint8_t m_starfield_control[4];
- int m_total_stars;
- int m_starfield_framecount;
- struct star m_stars[MAX_STARS];
- uint8_t m_main_irq_mask;
- uint8_t m_sub_irq_mask;
- uint8_t m_sub2_irq_mask;
- emu_timer *m_namcoio0_run_timer;
- emu_timer *m_namcoio1_run_timer;
-};
-
-class gaplusd_state : public gaplus_base_state
-{
-public:
- gaplusd_state(const machine_config &mconfig, device_type type, const char *tag)
- : gaplus_base_state(mconfig, type, tag, "namcoio_2", "namcoio_1")
- {
- }
-
- void gaplusd(machine_config &config);
-};
-
-class gapluso_state : public gaplus_base_state {
-public:
- gapluso_state(const machine_config &mconfig, device_type type, const char *tag)
- : gaplus_base_state(mconfig, type, tag, "namcoio_1", "namcoio_2") {
- }
-
- void gapluso(machine_config &config);
-
-protected:
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-};
-
-class gaplus_state : public gaplus_base_state {
-public:
- gaplus_state(const machine_config &mconfig, device_type type, const char *tag)
- : gaplus_base_state(mconfig, type, tag, "namcoio_1", "namcoio_2")
- , m_lamps(*this, "lamp%u", 0U)
- {
- }
-
- void gaplus(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- void out_lamps0(uint8_t data);
- void out_lamps1(uint8_t data);
-
- output_finder<2> m_lamps;
-};
-
-#endif // MAME_INCLUDES_GAPLUS_H
diff --git a/src/mame/includes/gatron.h b/src/mame/includes/gatron.h
deleted file mode 100644
index 1b784c7853c..00000000000
--- a/src/mame/includes/gatron.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Roberto Fresca
-
-#include "tilemap.h"
-
-class gatron_state : public driver_device
-{
-public:
- gatron_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_lamps(*this, "lamp%u", 0U) { }
-
- void gat(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- output_finder<9> m_lamps;
- tilemap_t *m_bg_tilemap;
-
- void output_port_0_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void output_port_1_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void gat_map(address_map &map);
- void gat_portmap(address_map &map);
-};
diff --git a/src/mame/includes/gauntlet.h b/src/mame/includes/gauntlet.h
deleted file mode 100644
index a2ff0f69349..00000000000
--- a/src/mame/includes/gauntlet.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Gauntlet hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GAUNTLET_H
-#define MAME_INCLUDES_GAUNTLET_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/gen_latch.h"
-#include "machine/slapstic.h"
-#include "machine/timer.h"
-#include "video/atarimo.h"
-#include "sound/pokey.h"
-#include "sound/tms5220.h"
-#include "sound/ym2151.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class gauntlet_state : public driver_device
-{
-public:
- gauntlet_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch"),
- m_mainlatch(*this, "mainlatch"),
- m_ym2151(*this, "ymsnd"),
- m_pokey(*this, "pokey"),
- m_tms5220(*this, "tms"),
- m_soundctl(*this, "soundctl"),
- m_slapstic(*this, "slapstic"),
- m_slapstic_bank(*this, "slapstic_bank"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_xscroll(*this, "xscroll"),
- m_yscroll(*this, "yscroll"),
- m_mob(*this, "mob")
- { }
-
- void init_gauntlet();
- void init_vindctr2();
- void vindctr2(machine_config &config);
- void gauntlet(machine_config &config);
- void gaunt2p(machine_config &config);
- void gauntlet2(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- void video_int_ack_w(uint16_t data = 0);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
- uint8_t sound_irq_ack_r();
- void sound_irq_ack_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(sound_reset_w);
- uint8_t switch_6502_r();
- DECLARE_WRITE_LINE_MEMBER(speech_squeak_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_left_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_right_w);
- void mixer_w(uint8_t data);
- void swap_memory(void *ptr1, void *ptr2, int bytes);
- void common_init(int vindctr2);
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- uint32_t screen_update_gauntlet(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void gauntlet_xscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gauntlet_yscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void gauntlet_base(machine_config &config);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_mainlatch;
- required_device<ym2151_device> m_ym2151;
- required_device<pokey_device> m_pokey;
- required_device<tms5220_device> m_tms5220;
- required_device<ls259_device> m_soundctl;
- required_device<atari_slapstic_device> m_slapstic;
- required_memory_bank m_slapstic_bank;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_shared_ptr<uint16_t> m_xscroll;
- required_shared_ptr<uint16_t> m_yscroll;
- required_device<atari_motion_objects_device> m_mob;
-
- uint16_t m_sound_reset_val;
- uint8_t m_vindctr2_screen_refresh;
- uint8_t m_playfield_tile_bank;
- uint8_t m_playfield_color_bank;
-
- static const atari_motion_objects_config s_mob_config;
-
- void slapstic_tweak(offs_t offset, u16 &, u16);
-};
-
-#endif // MAME_INCLUDES_GAUNTLET_H
diff --git a/src/mame/includes/gb.h b/src/mame/includes/gb.h
deleted file mode 100644
index 6bde090e813..00000000000
--- a/src/mame/includes/gb.h
+++ /dev/null
@@ -1,167 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol
-/*****************************************************************************
- *
- * includes/gb.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_GB_H
-#define MAME_INCLUDES_GB_H
-
-#pragma once
-
-#include "sound/gb.h"
-#include "cpu/lr35902/lr35902.h"
-#include "bus/gameboy/gb_slot.h"
-#include "machine/ram.h"
-#include "video/gb_lcd.h"
-#include "emupal.h"
-
-
-class gb_state : public driver_device
-{
-public:
- gb_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_cartslot(*this, "gbslot"),
- m_maincpu(*this, "maincpu"),
- m_apu(*this, "apu"),
- m_region_maincpu(*this, "maincpu"),
- m_rambank(*this, "cgb_ram"),
- m_inputs(*this, "INPUTS"),
- m_bios_hack(*this, "SKIP_CHECK"),
- m_ram(*this, RAM_TAG),
- m_ppu(*this, "ppu"),
- m_palette(*this, "palette")
- { }
-
- uint8_t m_gb_io[0x10];
-
- /* Timer related */
- uint16_t m_divcount;
- uint8_t m_shift;
- uint16_t m_shift_cycles;
- uint8_t m_triggering_irq;
- uint8_t m_reloading;
-
- /* Serial I/O related */
- uint16_t m_internal_serial_clock;
- uint16_t m_internal_serial_frequency;
- uint32_t m_sio_count; /* Serial I/O counter */
-
- /* SGB variables */
- int8_t m_sgb_packets;
- uint8_t m_sgb_bitcount;
- uint8_t m_sgb_bytecount;
- uint8_t m_sgb_start;
- uint8_t m_sgb_rest;
- uint8_t m_sgb_controller_no;
- uint8_t m_sgb_controller_mode;
- uint8_t m_sgb_data[0x100];
-
- /* CGB variables */
- uint8_t *m_gbc_rammap[8]; /* (CGB) Addresses of internal RAM banks */
- uint8_t m_gbc_rambank; /* (CGB) Current CGB RAM bank */
-
- bool m_bios_disable;
-
- void gb_io_w(offs_t offset, uint8_t data);
- void gb_io2_w(offs_t offset, uint8_t data);
- void sgb_io_w(offs_t offset, uint8_t data);
- uint8_t gb_ie_r();
- void gb_ie_w(uint8_t data);
- uint8_t gb_io_r(offs_t offset);
- void gbc_io_w(offs_t offset, uint8_t data);
- void gbc_io2_w(offs_t offset, uint8_t data);
- uint8_t gbc_io2_r(offs_t offset);
- void gb_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(sgb);
- DECLARE_MACHINE_RESET(sgb);
- void sgb_palette(palette_device &palette) const;
- void gbp_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(gbc);
- DECLARE_MACHINE_RESET(gbc);
- void gbc_palette(palette_device &palette) const;
- void gb_timer_callback(uint8_t data);
-
- uint8_t gb_cart_r(offs_t offset);
- uint8_t gbc_cart_r(offs_t offset);
- void gb_bank_w(offs_t offset, uint8_t data);
- uint8_t gb_ram_r(offs_t offset);
- void gb_ram_w(offs_t offset, uint8_t data);
- uint8_t gb_echo_r(address_space &space, offs_t offset);
- void gb_echo_w(address_space &space, offs_t offset, uint8_t data);
- optional_device<gb_cart_slot_device> m_cartslot;
-
- void supergb(machine_config &config);
- void supergb2(machine_config &config);
- void gbcolor(machine_config &config);
- void gbpocket(machine_config &config);
- void gameboy(machine_config &config);
- void gameboy_map(address_map &map);
- void gbc_map(address_map &map);
- void sgb_map(address_map &map);
-
-protected:
- enum {
- SIO_ENABLED = 0x80,
- SIO_FAST_CLOCK = 0x02,
- SIO_INTERNAL_CLOCK = 0x01
- };
-
- required_device<lr35902_cpu_device> m_maincpu;
- required_device<gameboy_sound_device> m_apu;
- required_memory_region m_region_maincpu;
- optional_memory_bank m_rambank; // cgb
- required_ioport m_inputs;
- required_ioport m_bios_hack;
- optional_device<ram_device> m_ram;
- required_device<dmg_ppu_device> m_ppu;
- required_device<palette_device> m_palette;
-
- void gb_timer_increment();
- void gb_timer_check_irq();
- void gb_init();
- void gb_init_regs();
- void gb_serial_timer_tick();
-
- void save_gb_base();
- void save_gbc_only();
- void save_sgb_only();
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-};
-
-
-class megaduck_state : public gb_state
-{
-public:
- megaduck_state(const machine_config &mconfig, device_type type, const char *tag) :
- gb_state(mconfig, type, tag),
- m_cartslot(*this, "duckslot")
- { }
-
- void megaduck(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- uint8_t megaduck_video_r(offs_t offset);
- void megaduck_video_w(offs_t offset, uint8_t data);
- void megaduck_sound_w1(offs_t offset, uint8_t data);
- uint8_t megaduck_sound_r1(offs_t offset);
- void megaduck_sound_w2(offs_t offset, uint8_t data);
- uint8_t megaduck_sound_r2(offs_t offset);
- void megaduck_palette(palette_device &palette) const;
- void megaduck_map(address_map &map);
-
- uint8_t cart_r(offs_t offset);
- void bank1_w(offs_t offset, uint8_t data);
- void bank2_w(offs_t offset, uint8_t data);
- required_device<megaduck_cart_slot_device> m_cartslot;
-};
-
-#endif // MAME_INCLUDES_GB_H
diff --git a/src/mame/includes/gba.h b/src/mame/includes/gba.h
deleted file mode 100644
index b34a3941aba..00000000000
--- a/src/mame/includes/gba.h
+++ /dev/null
@@ -1,128 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont,Ryan Holtz
-
-#ifndef MAME_INCLUDES_GBA_H
-#define MAME_INCLUDES_GBA_H
-
-#include "sound/gb.h"
-#include "machine/intelfsh.h"
-#include "bus/gba/gba_slot.h"
-#include "sound/dac.h"
-#include "video/gba_lcd.h"
-
-
-class gba_state : public driver_device, protected gba_registers<(0x400 - 0x060) / 4, 0x060>
-{
-public:
- gba_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ldaca(*this, "ldaca"),
- m_rdaca(*this, "rdaca"),
- m_ldacb(*this, "ldacb"),
- m_rdacb(*this, "rdacb"),
- m_gbsound(*this, "custom"),
- m_io_inputs(*this, "INPUTS")
- { }
-
- void gbadv(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<cpu_device> m_maincpu;
-
- void gba_map(address_map &map);
-
-private:
- required_device<dac_byte_interface> m_ldaca;
- required_device<dac_byte_interface> m_rdaca;
- required_device<dac_byte_interface> m_ldacb;
- required_device<dac_byte_interface> m_rdacb;
- required_device<gameboy_sound_device> m_gbsound;
-
- void request_irq(uint32_t int_type);
-
- void dma_exec(int ch);
- void audio_tick(int ref);
-
- // DMA
- emu_timer *m_dma_timer[4];
- uint32_t m_dma_src[4];
- uint32_t m_dma_dst[4];
- uint16_t m_dma_cnt[4];
-
- // Timers
- uint32_t m_timer_regs[4];
- uint16_t m_timer_reload[4];
- int m_timer_recalc[4];
-
- emu_timer *m_tmr_timer[4], *m_irq_timer;
-
- double m_timer_hz[4];
-
- int m_fifo_a_ptr;
- int m_fifo_b_ptr;
- int m_fifo_a_in;
- int m_fifo_b_in;
- uint8_t m_fifo_a[20];
- uint8_t m_fifo_b[20];
-
-
- uint32_t gba_io_r(offs_t offset, uint32_t mem_mask = ~0);
- void gba_io_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t gba_10000000_r(offs_t offset, uint32_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(int_hblank_callback);
- DECLARE_WRITE_LINE_MEMBER(int_vblank_callback);
- DECLARE_WRITE_LINE_MEMBER(int_vcount_callback);
- DECLARE_WRITE_LINE_MEMBER(dma_hblank_callback);
- DECLARE_WRITE_LINE_MEMBER(dma_vblank_callback);
- TIMER_CALLBACK_MEMBER(dma_complete);
- TIMER_CALLBACK_MEMBER(timer_expire);
- TIMER_CALLBACK_MEMBER(handle_irq);
-
- required_ioport m_io_inputs;
-};
-
-class gba_cons_state : public gba_state
-{
-public:
- gba_cons_state(const machine_config &mconfig, device_type type, const char *tag)
- : gba_state(mconfig, type, tag),
- m_region_maincpu(*this, "maincpu"),
- m_cart(*this, "cartslot"),
- m_bios_hack(*this, "SKIP_CHECK")
- { }
-
- void gbadv_cons(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- void gba_cons_map(address_map &map);
-
- uint32_t gba_bios_r(offs_t offset, uint32_t mem_mask = ~0);
-
- required_region_ptr<uint32_t> m_region_maincpu;
- required_device<gba_cart_slot_device> m_cart;
- required_ioport m_bios_hack;
-};
-
-
-class gba_robotech_state : public gba_state
-{
-public:
- gba_robotech_state(const machine_config &mconfig, device_type type, const char *tag)
- : gba_state(mconfig, type, tag)
- { }
-
- void gbadv_robotech(machine_config &config);
-
-protected:
-
- void gba_robotech_map(address_map &map);
-};
-
-
-#endif
diff --git a/src/mame/includes/gberet.h b/src/mame/includes/gberet.h
deleted file mode 100644
index 37d795d225b..00000000000
--- a/src/mame/includes/gberet.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Green Beret
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_GBERET_H
-#define MAME_INCLUDES_GBERET_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/sn76496.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class gberet_state : public driver_device
-{
-public:
- gberet_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram2(*this, "spriteram2"),
- m_spriteram(*this, "spriteram"),
- m_scrollram(*this, "scrollram"),
- m_soundlatch(*this, "soundlatch"),
- m_sn(*this, "snsnd") ,
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void gberetb(machine_config &config);
- void mrgoemon(machine_config &config);
- void gberet(machine_config &config);
-
- void init_mrgoemon();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_spriteram2;
- required_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_scrollram;
- optional_shared_ptr<uint8_t> m_soundlatch;
-
- /* devices */
- required_device<sn76489a_device> m_sn;
-
- /* video-related */
- tilemap_t * m_bg_tilemap;
- uint8_t m_spritebank;
-
- /* misc */
- uint8_t m_interrupt_mask;
- uint8_t m_interrupt_ticks;
- void gberet_coin_counter_w(uint8_t data);
- void mrgoemon_coin_counter_w(uint8_t data);
- void gberet_flipscreen_w(uint8_t data);
- void gberet_sound_w(uint8_t data);
- void gberetb_flipscreen_w(uint8_t data);
- uint8_t gberetb_irq_ack_r();
- void gberetb_nmi_ack_w(uint8_t data);
- void gberet_videoram_w(offs_t offset, uint8_t data);
- void gberet_colorram_w(offs_t offset, uint8_t data);
- void gberet_scroll_w(offs_t offset, uint8_t data);
- void gberet_sprite_bank_w(uint8_t data);
- void gberetb_scroll_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void gberet_palette(palette_device &palette) const;
- uint32_t screen_update_gberet(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_gberetb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(gberet_interrupt_tick);
- void gberet_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void gberetb_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void gberet_map(address_map &map);
- void gberetb_map(address_map &map);
- void mrgoemon_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GBERET_H
diff --git a/src/mame/includes/gcpinbal.h b/src/mame/includes/gcpinbal.h
deleted file mode 100644
index 9c9c98813ed..00000000000
--- a/src/mame/includes/gcpinbal.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves, R. Belmont
-#ifndef MAME_INCLUDES_GCPINBAL_H
-#define MAME_INCLUDES_GCPINBAL_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "machine/mb3773.h"
-#include "sound/es8712.h"
-#include "sound/okim6295.h"
-#include "video/excellent_spr.h"
-#include "emupal.h"
-#include "machine/timer.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class gcpinbal_state : public driver_device
-{
-public:
- gcpinbal_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_tilemapram(*this, "tilemapram")
- , m_d80010_ram(*this, "d80010")
- , m_d80060_ram(*this, "d80060")
- , m_maincpu(*this, "maincpu")
- , m_eeprom(*this, "eeprom")
- , m_watchdog(*this, "watchdog")
- , m_oki(*this, "oki")
- , m_essnd(*this, "essnd")
- , m_sprgen(*this, "spritegen")
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- { }
-
- void gcpinbal(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_tilemapram;
- required_shared_ptr<u16> m_d80010_ram;
- required_shared_ptr<u16> m_d80060_ram;
-
- /* video-related */
- tilemap_t *m_tilemap[3];
- u16 m_scrollx[3];
- u16 m_scrolly[3];
- u16 m_bg0_gfxset;
- u16 m_bg1_gfxset;
-#ifdef MAME_DEBUG
- u8 m_dislayer[4] = { 0, 0, 0, 0 };
-#endif
-
- /* sound-related */
- u32 m_msm_bank;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<mb3773_device> m_watchdog;
- required_device<okim6295_device> m_oki;
- required_device<es8712_device> m_essnd;
- required_device<excellent_spr_device> m_sprgen;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- void d80010_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void d80040_w(offs_t offset, u8 data);
- void d80060_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bank_w(u8 data);
- void eeprom_w(u8 data);
- void es8712_reset_w(u8 data);
- void tilemaps_word_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_bg0_tile_info);
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- void gcpinbal_colpri_cb(u32 &colour, u32 &pri_mask);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_cb);
-
- void gcpinbal_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GCPINBAL_H
diff --git a/src/mame/includes/generalplus_gpl16250.h b/src/mame/includes/generalplus_gpl16250.h
deleted file mode 100644
index b2bb606c9f7..00000000000
--- a/src/mame/includes/generalplus_gpl16250.h
+++ /dev/null
@@ -1,144 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_SUNPLUS_GCM394_H
-#define MAME_INCLUDES_SUNPLUS_GCM394_H
-
-#pragma once
-
-#include "machine/generalplus_gpl16250soc.h"
-#include "machine/generalplus_gpl16250.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#include "screen.h"
-#include "speaker.h"
-
-
-
-class gcm394_game_state : public driver_device
-{
-public:
- gcm394_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_io(*this, "IN%u", 0U),
- m_romregion(*this, "maincpu"),
- m_memory(*this, "memory")
- {
- }
-
- void base(machine_config &config);
-
- void cs_map_base(address_map &map);
-
- virtual uint16_t cs0_r(offs_t offset);
- virtual void cs0_w(offs_t offset, uint16_t data);
- virtual uint16_t cs1_r(offs_t offset);
- virtual void cs1_w(offs_t offset, uint16_t data);
- virtual uint16_t cs2_r(offs_t offset);
- virtual void cs2_w(offs_t offset, uint16_t data);
- virtual uint16_t cs3_r(offs_t offset);
- virtual void cs3_w(offs_t offset, uint16_t data);
- virtual uint16_t cs4_r(offs_t offset);
- virtual void cs4_w(offs_t offset, uint16_t data);
-
- void cs_callback(uint16_t cs0, uint16_t cs1, uint16_t cs2, uint16_t cs3, uint16_t cs4);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-
- required_device<sunplus_gcm394_base_device> m_maincpu;
- required_device<screen_device> m_screen;
-
-
- required_ioport_array<3> m_io;
-
-
- optional_region_ptr<uint16_t> m_romregion;
- required_device<full_memory_device> m_memory;
-
- virtual uint16_t porta_r();
- virtual uint16_t portb_r();
- virtual uint16_t portc_r();
- virtual void porta_w(uint16_t data);
-
- virtual uint16_t read_external_space(offs_t offset);
- virtual void write_external_space(offs_t offset, uint16_t data);
-
-private:
-};
-
-
-
-
-class tkmag220_game_state : public gcm394_game_state
-{
-public:
- tkmag220_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- gcm394_game_state(mconfig, type, tag)
- {
- }
-
- void tkmag220(machine_config &config);
-
-protected:
-
- virtual void machine_reset() override;
-
-private:
- int m_upperbase;
-
- virtual uint16_t cs0_r(offs_t offset) override;
-
- void tkmag220_portd_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-};
-
-
-class gormiti_game_state : public gcm394_game_state
-{
-public:
- gormiti_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- gcm394_game_state(mconfig, type, tag)
- {
- }
-
-
-protected:
-
- virtual void machine_reset() override;
-
-private:
-};
-
-class beijuehh_game_state : public gcm394_game_state
-{
-public:
- beijuehh_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- gcm394_game_state(mconfig, type, tag)
- {
- }
-
- void beijuehh(machine_config &config);
-
-protected:
-
- virtual void machine_reset() override;
-
-private:
- int m_upperbase;
-
- virtual uint16_t cs0_r(offs_t offset) override;
-
- void beijuehh_portb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void beijuehh_portd_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t m_portb_data;
- uint16_t m_portd_data;
- uint8_t m_bank;
-};
-
-
-#endif
diff --git a/src/mame/includes/generalplus_gpl16250_nand.h b/src/mame/includes/generalplus_gpl16250_nand.h
deleted file mode 100644
index 34c24423fcf..00000000000
--- a/src/mame/includes/generalplus_gpl16250_nand.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_GENERALPLUS_GPL16250_NAND_H
-#define MAME_INCLUDES_GENERALPLUS_GPL16250_NAND_H
-
-#pragma once
-
-#include "includes/generalplus_gpl16250.h"
-#include "machine/generalplus_gpl16250soc.h"
-#include "machine/generalplus_gpl16250.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#include "screen.h"
-#include "speaker.h"
-
-
-class generalplus_gpac800_game_state : public gcm394_game_state
-{
-public:
- generalplus_gpac800_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- gcm394_game_state(mconfig, type, tag),
- m_nandregion(*this, "nandrom"),
- m_sdram_kwords(0x400000), // 0x400000 words (0x800000 bytes)
- m_initial_copy_words(0x2000)
- {
- }
-
- void generalplus_gpac800(machine_config &config);
-
- void nand_init210();
- void nand_init210_32mb();
- void nand_init840();
- void nand_wlsair60();
- void nand_vbaby();
- void nand_tsm();
- void nand_beambox();
- void nand_kiugames();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t read_nand(offs_t offset);
- std::vector<uint16_t> m_sdram;
- std::vector<uint16_t> m_sdram2;
-
- virtual uint16_t cs0_r(offs_t offset) override;
- virtual void cs0_w(offs_t offset, uint16_t data) override;
- virtual uint16_t cs1_r(offs_t offset) override;
- virtual void cs1_w(offs_t offset, uint16_t data) override;
-
-private:
- optional_region_ptr<uint8_t> m_nandregion;
-
- void nand_create_stripped_region();
-
- std::vector<uint8_t> m_strippedrom;
- int m_strippedsize;
- int m_size;
- int m_nandblocksize;
- int m_nandblocksize_stripped;
-
- int m_sdram_kwords;
- int m_initial_copy_words;
- int m_vectorbase;
-};
-
-
-class generalplus_gpac800_vbaby_game_state : public generalplus_gpac800_game_state
-{
-public:
- generalplus_gpac800_vbaby_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- generalplus_gpac800_game_state(mconfig, type, tag),
- m_cart(*this, "cartslot")
- {
- }
-
- void generalplus_gpac800_vbaby(machine_config &config);
-
-protected:
- required_device<generic_slot_device> m_cart;
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load);
-
-private:
-};
-
-
-#endif // MAME_INCLUDES_GENERALPLUS_GPL16250_NAND_H
-
diff --git a/src/mame/includes/generalplus_gpl16250_romram.h b/src/mame/includes/generalplus_gpl16250_romram.h
deleted file mode 100644
index c1b6fd7f972..00000000000
--- a/src/mame/includes/generalplus_gpl16250_romram.h
+++ /dev/null
@@ -1,137 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_GENERALPLUS_GPL16250_ROMRAM_H
-#define MAME_INCLUDES_GENERALPLUS_GPL16250_ROMRAM_H
-
-#pragma once
-
-#include "includes/generalplus_gpl16250.h"
-#include "machine/generalplus_gpl16250soc.h"
-#include "machine/generalplus_gpl16250.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#include "screen.h"
-#include "speaker.h"
-
-
-class wrlshunt_game_state : public gcm394_game_state
-{
-public:
- wrlshunt_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- gcm394_game_state(mconfig, type, tag)
- {
- }
-
- void gpl16250_romram(machine_config &config);
-
- void init_wrlshunt();
- void init_ths();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- std::vector<uint16_t> m_sdram;
-
- virtual uint16_t porta_r() override;
- virtual void porta_w(uint16_t data) override;
-
-private:
-
-
- //required_shared_ptr<u16> m_mainram;
-
- virtual uint16_t cs0_r(offs_t offset) override;
- virtual void cs0_w(offs_t offset, uint16_t data) override;
- virtual uint16_t cs1_r(offs_t offset) override;
- virtual void cs1_w(offs_t offset, uint16_t data) override;
-
- int m_romwords_mask;
-};
-
-class jak_s500_game_state : public wrlshunt_game_state
-{
-public:
- jak_s500_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- wrlshunt_game_state(mconfig, type, tag)
- {
- }
-
-protected:
- //virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual uint16_t porta_r() override;
- virtual uint16_t portb_r() override;
-
-private:
-};
-
-class lazertag_game_state : public jak_s500_game_state
-{
-public:
- lazertag_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- jak_s500_game_state(mconfig, type, tag)
- {
- }
-
-protected:
- //virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
-};
-
-
-class paccon_game_state : public jak_s500_game_state
-{
-public:
- paccon_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- jak_s500_game_state(mconfig, type, tag)
- {
- }
-
-protected:
- virtual void machine_reset() override;
-
-private:
- uint16_t paccon_speedup_hack_r();
-};
-
-class jak_pf_game_state : public jak_s500_game_state
-{
-public:
- jak_pf_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- jak_s500_game_state(mconfig, type, tag)
- {
- }
-
-protected:
- virtual void machine_reset() override;
-
-private:
- uint16_t jak_pf_speedup_hack_r();
- uint16_t jak_pf_speedup_hack2_r();
-};
-
-
-class jak_prft_game_state : public jak_s500_game_state
-{
-public:
- jak_prft_game_state(const machine_config& mconfig, device_type type, const char* tag) :
- jak_s500_game_state(mconfig, type, tag)
- {
- }
-
-protected:
-
- virtual void machine_reset() override;
-
-private:
-};
-
-
-
-#endif // MAME_INCLUDES_GENERALPLUS_GPL16250_ROMRAM_H
-
diff --git a/src/mame/includes/gijoe.h b/src/mame/includes/gijoe.h
deleted file mode 100644
index 37bb27b52b4..00000000000
--- a/src/mame/includes/gijoe.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Olivier Galibert
-/*************************************************************************
-
- GI Joe
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GIJOE_H
-#define MAME_INCLUDES_GIJOE_H
-
-#pragma once
-
-#include "sound/k054539.h"
-#include "video/k053251.h"
-#include "video/k054156_k054157_k056832.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/konami_helper.h"
-#include "machine/k054321.h"
-#include "emupal.h"
-
-class gijoe_state : public driver_device
-{
-public:
- gijoe_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_workram(*this, "workram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k054539(*this, "k054539"),
- m_k056832(*this, "k056832"),
- m_k053246(*this, "k053246"),
- m_k053251(*this, "k053251"),
- m_palette(*this, "palette"),
- m_k054321(*this, "k054321")
- { }
-
- void gijoe(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_workram;
-
- /* video-related */
- int m_avac_bits[4];
- int m_avac_occupancy[4];
- int m_layer_colorbase[4];
- int m_layer_pri[4];
- int m_avac_vrc;
- int m_sprite_colorbase;
-
- /* misc */
- uint16_t m_cur_control2;
- emu_timer *m_dmadelay_timer;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k054539_device> m_k054539;
- required_device<k056832_device> m_k056832;
- required_device<k053247_device> m_k053246;
- required_device<k053251_device> m_k053251;
- required_device<palette_device> m_palette;
- required_device<k054321_device> m_k054321;
-
- uint16_t control2_r();
- void control2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_irq_w(uint16_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_gijoe(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(gijoe_interrupt);
- TIMER_CALLBACK_MEMBER(dmaend_callback);
- void gijoe_objdma();
- K056832_CB_MEMBER(tile_callback);
- K053246_CB_MEMBER(sprite_callback);
- void gijoe_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GIJOE_H
diff --git a/src/mame/includes/ginganin.h b/src/mame/includes/ginganin.h
deleted file mode 100644
index 8f2123d1b8a..00000000000
--- a/src/mame/includes/ginganin.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/*************************************************************************
-
- Ginga NinkyouDen
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GINGANIN_H
-#define MAME_INCLUDES_GINGANIN_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class ginganin_state : public driver_device
-{
-public:
- ginganin_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_txtram(*this, "txtram"),
- m_spriteram(*this, "spriteram"),
- m_vregs(*this, "vregs"),
- m_fgram(*this, "fgram"),
- m_bgrom(*this, "bgrom"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void ginganin(machine_config &config);
-
- void init_ginganin();
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_txtram;
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr<u16> m_vregs;
- required_shared_ptr<u16> m_fgram;
-
- required_region_ptr<u8> m_bgrom;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
- int m_layers_ctrl;
- int m_flipscreen;
-#ifdef MAME_DEBUG
- int m_posx;
- int m_posy;
-#endif
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void fgram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void txtram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void vregs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(ptm_irq);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_txt_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GINGANIN_H
diff --git a/src/mame/includes/gladiatr.h b/src/mame/includes/gladiatr.h
deleted file mode 100644
index 9cef1e78daf..00000000000
--- a/src/mame/includes/gladiatr.h
+++ /dev/null
@@ -1,219 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Victor Trucco,Steve Ellenoff,Phil Stroffolino,Tatsuyuki Satoh,Tomasz Slanina,Nicola Salmoria,Vas Crabb
-
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "cpu/m6809/m6809.h"
-#include "cpu/mcs48/mcs48.h"
-#include "cpu/z80/z80.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class gladiatr_state_base : public driver_device
-{
-public:
- void videoram_w(offs_t offset, u8 data);
- void colorram_w(offs_t offset, u8 data);
- void textram_w(offs_t offset, u8 data);
- void paletteram_w(offs_t offset, u8 data);
- DECLARE_WRITE_LINE_MEMBER(spritebuffer_w);
- void adpcm_command_w(u8 data);
- u8 adpcm_command_r();
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(ym_irq);
-
- void cpu2_map(address_map &map);
-protected:
- gladiatr_state_base(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "sub")
- , m_audiocpu(*this, "audiocpu")
- , m_cctl(*this, "cctl")
- , m_ccpu(*this, "ccpu")
- , m_ucpu(*this, "ucpu")
- , m_csnd(*this, "csnd")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_msm(*this, "msm")
- , m_soundlatch(*this, "soundlatch")
- , m_videoram(*this, "videoram")
- , m_colorram(*this, "colorram")
- , m_textram(*this, "textram")
- , m_paletteram(*this, "paletteram")
- , m_spriteram(*this, "spriteram")
- , m_video_attributes(0)
- , m_fg_scrolly(0)
- , m_fg_tile_bank(0)
- , m_bg_tile_bank(0)
- , m_sprite_bank(0)
- , m_sprite_buffer(0)
- , m_fg_tilemap(nullptr)
- , m_bg_tilemap(nullptr)
- {
- }
-
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- TILE_GET_INFO_MEMBER(fg_get_tile_info);
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_device<z80_device> m_maincpu;
- required_device<z80_device> m_subcpu;
- required_device<mc6809_device> m_audiocpu;
- optional_device<upi41_cpu_device> m_cctl;
- optional_device<upi41_cpu_device> m_ccpu;
- optional_device<upi41_cpu_device> m_ucpu;
- optional_device<upi41_cpu_device> m_csnd;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<msm5205_device> m_msm;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<u8> m_videoram;
- required_shared_ptr<u8> m_colorram;
- required_shared_ptr<u8> m_textram;
- required_shared_ptr<u8> m_paletteram;
- required_shared_ptr<u8> m_spriteram;
-
- int m_video_attributes;
- int m_fg_scrolly;
- int m_fg_tile_bank;
- int m_bg_tile_bank;
- int m_sprite_bank;
- int m_sprite_buffer;
-
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
-};
-
-class gladiatr_state : public gladiatr_state_base
-{
-public:
- gladiatr_state(const machine_config &mconfig, device_type type, const char *tag)
- : gladiatr_state_base(mconfig, type, tag)
- , m_dsw1(*this, "DSW1")
- , m_dsw2(*this, "DSW2")
- , m_in0(*this, "IN0")
- , m_in1(*this, "IN1")
- , m_in2(*this, "IN2")
- , m_coins(*this, "COINS")
- , m_tclk_val(false)
- , m_cctl_p1(0xff)
- , m_cctl_p2(0xff)
- , m_ucpu_p1(0xff)
- , m_csnd_p1(0xff)
- , m_fg_scrollx(0)
- , m_bg_scrollx(0)
- , m_bg_scrolly(0)
- {
- }
-
- DECLARE_INPUT_CHANGED_MEMBER(p1_s1);
- DECLARE_INPUT_CHANGED_MEMBER(p1_s2);
- DECLARE_INPUT_CHANGED_MEMBER(p2_s1);
- DECLARE_INPUT_CHANGED_MEMBER(p2_s2);
-
- void gladiatr(machine_config &config);
- void greatgur(machine_config &config);
-
- void init_gladiatr();
-
-private:
- DECLARE_WRITE_LINE_MEMBER(spritebank_w);
- void gladiatr_video_registers_w(offs_t offset, u8 data);
-
- void gladiatr_irq_patch_w(u8 data);
- void gladiator_int_control_w(u8 data);
- void gladiator_adpcm_w(u8 data);
-
- DECLARE_WRITE_LINE_MEMBER(tclk_w);
- u8 cctl_p1_r();
- u8 cctl_p2_r();
- void ccpu_p2_w(u8 data);
- DECLARE_READ_LINE_MEMBER(tclk_r);
- DECLARE_READ_LINE_MEMBER(ucpu_t1_r);
- u8 ucpu_p1_r();
- void ucpu_p1_w(u8 data);
- u8 ucpu_p2_r();
- DECLARE_READ_LINE_MEMBER(csnd_t1_r);
- u8 csnd_p1_r();
- void csnd_p1_w(u8 data);
- u8 csnd_p2_r();
-
- DECLARE_MACHINE_RESET(gladiator);
- DECLARE_VIDEO_START(gladiatr);
-
- uint32_t screen_update_gladiatr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- static void swap_block(u8 *src1, u8 *src2, int len);
-
- void gladiatr_cpu1_io(address_map &map);
- void gladiatr_cpu1_map(address_map &map);
- void gladiatr_cpu2_io(address_map &map);
- void gladiatr_cpu3_map(address_map &map);
-
- required_ioport m_dsw1, m_dsw2;
- required_ioport m_in0, m_in1, m_in2;
- required_ioport m_coins;
-
- bool m_tclk_val;
- u8 m_cctl_p1, m_cctl_p2;
- u8 m_ucpu_p1, m_csnd_p1;
-
- int m_fg_scrollx;
- int m_bg_scrollx;
- int m_bg_scrolly;
-};
-
-class ppking_state : public gladiatr_state_base
-{
-public:
- ppking_state(const machine_config &mconfig, device_type type, const char *tag)
- : gladiatr_state_base(mconfig, type, tag)
- , m_nvram(*this, "nvram")
- , m_soundlatch2(*this, "soundlatch2")
- {
- }
-
- u8 ppking_f1_r();
- void ppking_qx0_w(offs_t offset, u8 data);
- void ppking_qx1_w(offs_t offset, u8 data);
- void ppking_qx3_w(u8 data);
- u8 ppking_qx3_r(offs_t offset);
- u8 ppking_qx0_r(offs_t offset);
- u8 ppking_qx1_r(offs_t offset);
- u8 ppking_qxcomu_r(offs_t offset);
- void ppking_qxcomu_w(u8 data);
- void ppking_video_registers_w(offs_t offset, u8 data);
- void ppking_adpcm_w(u8 data);
- void cpu2_irq_ack_w(u8 data);
-
- void init_ppking();
-
- DECLARE_MACHINE_RESET(ppking);
- DECLARE_VIDEO_START(ppking);
-
- uint32_t screen_update_ppking(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void ppking(machine_config &config);
- void ppking_cpu1_io(address_map &map);
- void ppking_cpu1_map(address_map &map);
- void ppking_cpu2_io(address_map &map);
- void ppking_cpu3_map(address_map &map);
-private:
- required_shared_ptr<u8> m_nvram;
- required_device<generic_latch_8_device> m_soundlatch2;
-
- struct
- {
- u8 rxd;
- u8 txd;
- u8 rst;
- u8 state;
- u8 packet_type;
- } m_mcu[2];
-
- bool mcu_parity_check();
- void mcu_input_check();
-};
diff --git a/src/mame/includes/glass.h b/src/mame/includes/glass.h
deleted file mode 100644
index 8be999b6af5..00000000000
--- a/src/mame/includes/glass.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Glass
-
-*************************************************************************/
-
-#include "machine/74259.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class glass_state : public driver_device
-{
-public:
- glass_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_outlatch(*this, "outlatch"),
- m_videoram(*this, "videoram"),
- m_vregs(*this, "vregs"),
- m_spriteram(*this, "spriteram"),
- m_shareram(*this, "shareram"),
- m_bmap(*this, "bmap"),
- m_okibank(*this, "okibank"),
- m_pant{ nullptr, nullptr },
- m_blitter_command(0)
- { }
-
- void glass(machine_config &config);
- void glass_ds5002fp(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<ls259_device> m_outlatch;
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_vregs;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_shareram;
- required_region_ptr<uint8_t> m_bmap;
-
- required_memory_bank m_okibank;
-
- /* video-related */
- tilemap_t *m_pant[2];
- std::unique_ptr<bitmap_ind16> m_screen_bitmap;
-
- /* misc */
- int m_current_bit;
- int m_cause_interrupt;
- int m_blitter_command;
-
- void shareram_w(offs_t offset, uint8_t data);
- uint8_t shareram_r(offs_t offset);
- void clr_int_w(uint16_t data);
- void oki_bankswitch_w(uint8_t data);
- void coin_w(offs_t offset, uint16_t data);
- void blitter_w(uint16_t data);
- void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- DECLARE_WRITE_LINE_MEMBER(coin1_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(interrupt);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void glass_map(address_map &map);
- void mcu_hostmem_map(address_map &map);
- void oki_map(address_map &map);
-};
diff --git a/src/mame/includes/gng.h b/src/mame/includes/gng.h
deleted file mode 100644
index 8b9ff997c97..00000000000
--- a/src/mame/includes/gng.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli
-/*************************************************************************
-
- Ghosts'n Goblins
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GNG_H
-#define MAME_INCLUDES_GNG_H
-
-#pragma once
-
-#include "sound/ym2203.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class gng_state : public driver_device
-{
-public:
- gng_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_maincpu(*this, "maincpu"),
- m_ym(*this, "ym%u", 1),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void gng(machine_config &config);
- void diamond(machine_config &config);
-
-private:
- void gng_bankswitch_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(ym_reset_w);
- uint8_t diamond_hack_r();
- void gng_fgvideoram_w(offs_t offset, uint8_t data);
- void gng_bgvideoram_w(offs_t offset, uint8_t data);
- void gng_bgscrollx_w(offs_t offset, uint8_t data);
- void gng_bgscrolly_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_gng(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void diamond_map(address_map &map);
- void gng_map(address_map &map);
- void sound_map(address_map &map);
-
- /* memory pointers */
- required_device<buffered_spriteram8_device> m_spriteram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_bgvideoram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_scrollx[2];
- uint8_t m_scrolly[2];
-
- required_device<cpu_device> m_maincpu;
- required_device_array<ym2203_device, 2> m_ym;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-};
-
-#endif // MAME_INCLUDES_GNG_H
diff --git a/src/mame/includes/goal92.h b/src/mame/includes/goal92.h
deleted file mode 100644
index e4e3358f2e3..00000000000
--- a/src/mame/includes/goal92.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli, David Haywood
-/*************************************************************************
-
- Goal! '92
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GOAL92_H
-#define MAME_INCLUDES_GOAL92_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class goal92_state : public driver_device
-{
-public:
- goal92_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bg_data(*this, "bg_data"),
- m_fg_data(*this, "fg_data"),
- m_tx_data(*this, "tx_data"),
- m_spriteram(*this, "spriteram"),
- m_scrollram(*this, "scrollram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void goal92(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_bg_data;
- required_shared_ptr<uint16_t> m_fg_data;
- required_shared_ptr<uint16_t> m_tx_data;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_scrollram;
- std::unique_ptr<uint16_t[]> m_buffered_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_layer;
- tilemap_t *m_fg_layer;
- tilemap_t *m_tx_layer;
- uint16_t m_fg_bank;
-
- /* misc */
- int m_msm5205next;
- int m_adpcm_toggle;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<msm5205_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void goal92_sound_command_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t goal92_inputs_r(offs_t offset, uint16_t mem_mask = ~0);
- void adpcm_data_w(uint8_t data);
- uint16_t goal92_fg_bank_r();
- void goal92_fg_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void goal92_text_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void goal92_background_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void goal92_foreground_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void adpcm_control_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- TILE_GET_INFO_MEMBER(get_back_tile_info);
- TILE_GET_INFO_MEMBER(get_fore_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_goal92(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_goal92);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int pri );
- DECLARE_WRITE_LINE_MEMBER(irqhandler);
- DECLARE_WRITE_LINE_MEMBER(goal92_adpcm_int);
- void goal92_map(address_map &map);
- void sound_cpu(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GOAL92_H
diff --git a/src/mame/includes/goindol.h b/src/mame/includes/goindol.h
deleted file mode 100644
index a89731a3d31..00000000000
--- a/src/mame/includes/goindol.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Jarek Parchanski
-/*************************************************************************
-
- Goindol
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GOINDOL_H
-#define MAME_INCLUDES_GOINDOL_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class goindol_state : public driver_device
-{
-public:
- goindol_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_ram(*this, "ram"),
- m_fg_scrolly(*this, "fg_scrolly"),
- m_fg_scrollx(*this, "fg_scrollx"),
- m_spriteram(*this, "spriteram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_spriteram2(*this, "spriteram2"),
- m_fg_videoram(*this, "fg_videoram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void goindol(machine_config &config);
- void init_goindol();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_ram;
- required_shared_ptr<uint8_t> m_fg_scrolly;
- required_shared_ptr<uint8_t> m_fg_scrollx;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_spriteram2;
- required_shared_ptr<uint8_t> m_fg_videoram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint16_t m_char_bank;
-
- /* misc */
- int m_prot_toggle;
- void goindol_bankswitch_w(uint8_t data);
- uint8_t prot_f422_r();
- void prot_fc44_w(uint8_t data);
- void prot_fd99_w(uint8_t data);
- void prot_fc66_w(uint8_t data);
- void prot_fcb0_w(uint8_t data);
- void goindol_fg_videoram_w(offs_t offset, uint8_t data);
- void goindol_bg_videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_goindol(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int gfxbank, uint8_t *sprite_ram );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void goindol_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GOINDOL_H
diff --git a/src/mame/includes/goldstar.h b/src/mame/includes/goldstar.h
deleted file mode 100644
index c0cea98794d..00000000000
--- a/src/mame/includes/goldstar.h
+++ /dev/null
@@ -1,419 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Roberto Fresca, Vas Crabb
-#ifndef MAME_INCLUDES_GOLDSTAR_H
-#define MAME_INCLUDES_GOLDSTAR_H
-
-#pragma once
-
-#include "machine/ds2401.h"
-#include "machine/i8255.h"
-#include "machine/ticket.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class goldstar_state : public driver_device
-{
-public:
- goldstar_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_fg_vidram(*this, "fg_vidram"),
- m_fg_atrram(*this, "fg_atrram"),
- m_bg_vidram(*this, "bg_vidram"),
- m_bg_atrram(*this, "bg_atrram"),
- m_reel1_ram(*this, "reel1_ram"),
- m_reel2_ram(*this, "reel2_ram"),
- m_reel3_ram(*this, "reel3_ram"),
- m_reel1_scroll(*this, "reel1_scroll"),
- m_reel2_scroll(*this, "reel2_scroll"),
- m_reel3_scroll(*this, "reel3_scroll"),
- m_decrypted_opcodes(*this, "decrypted_opcodes"),
- m_bgcolor(0),
- m_maincpu(*this, "maincpu"),
- m_ppi(*this, "ppi8255_%u", 0U),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void protection_w(uint8_t data);
- uint8_t protection_r();
- void p1_lamps_w(uint8_t data);
- void p2_lamps_w(uint8_t data);
- void ncb3_port81_w(uint8_t data);
- void cm_coincount_w(uint8_t data);
- void goldstar_fg_vidram_w(offs_t offset, uint8_t data);
- void goldstar_fg_atrram_w(offs_t offset, uint8_t data);
- void goldstar_reel1_ram_w(offs_t offset, uint8_t data);
- void goldstar_reel2_ram_w(offs_t offset, uint8_t data);
- void goldstar_reel3_ram_w(offs_t offset, uint8_t data);
- void goldstar_fa00_w(uint8_t data);
- void ay8910_outputa_w(uint8_t data);
- void ay8910_outputb_w(uint8_t data);
- void init_chryangl();
- void init_goldstar();
- void init_jkrmast();
- void init_pkrmast();
- void init_crazybonb();
- void init_cmast91();
- void init_wcherry();
- void init_super9();
- void init_ladylinrb();
- void init_ladylinrc();
- void init_ladylinrd();
- void init_ladylinre();
- DECLARE_VIDEO_START(goldstar);
- void cm_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(cherrym);
- void cmast91_palette(palette_device &palette) const;
- void lucky8_palette(palette_device &palette) const;
- void nfm_palette(palette_device &palette) const;
- uint32_t screen_update_goldstar(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_cmast91(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void ladylinr(machine_config &config);
- void ladylinrb(machine_config &config);
- void wcherry(machine_config &config);
- void crazybon(machine_config &config);
- void crazybonb(machine_config &config);
- void pkrmast(machine_config &config);
- void moonlght(machine_config &config);
- void kkotnoli(machine_config &config);
- void cmast91(machine_config &config);
- void super9(machine_config &config);
- void goldfrui(machine_config &config);
- void goldstar(machine_config &config);
- void goldstbl(machine_config &config);
- void bonusch_portmap(address_map &map);
- void feverch_portmap(address_map &map);
- void cm_map(address_map &map);
- void cmast91_portmap(address_map &map);
- void crazybon_portmap(address_map &map);
- void flaming7_map(address_map &map);
- void goldstar_map(address_map &map);
- void goldstar_readport(address_map &map);
- void kkotnoli_map(address_map &map);
- void ladylinr_map(address_map &map);
- void lucky8_map(address_map &map);
- void common_decrypted_opcodes_map(address_map &map);
- void super972_decrypted_opcodes_map(address_map &map);
- void mbstar_map(address_map &map);
- void megaline_portmap(address_map &map);
- void ncb3_readwriteport(address_map &map);
- void nfm_map(address_map &map);
- void pkrmast_portmap(address_map &map);
- void ramdac_map(address_map &map);
- void wcat3_map(address_map &map);
- void wcherry_map(address_map &map);
- void wcherry_readwriteport(address_map &map);
-
-protected:
- virtual void machine_start() override { m_lamps.resolve(); }
- TILE_GET_INFO_MEMBER(get_goldstar_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_cherrym_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_goldstar_reel1_tile_info);
- TILE_GET_INFO_MEMBER(get_goldstar_reel2_tile_info);
- TILE_GET_INFO_MEMBER(get_goldstar_reel3_tile_info);
-
- int m_dataoffset;
-
- required_shared_ptr<uint8_t> m_fg_vidram;
- required_shared_ptr<uint8_t> m_fg_atrram;
-
- optional_shared_ptr<uint8_t> m_bg_vidram;
- optional_shared_ptr<uint8_t> m_bg_atrram;
-
- optional_shared_ptr<uint8_t> m_reel1_ram;
- optional_shared_ptr<uint8_t> m_reel2_ram;
- optional_shared_ptr<uint8_t> m_reel3_ram;
-
- optional_shared_ptr<uint8_t> m_reel1_scroll;
- optional_shared_ptr<uint8_t> m_reel2_scroll;
- optional_shared_ptr<uint8_t> m_reel3_scroll;
-
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- tilemap_t *m_reel1_tilemap;
- tilemap_t *m_reel2_tilemap;
- tilemap_t *m_reel3_tilemap;
-
- int m_bgcolor;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- uint8_t m_cmaster_girl_num;
- uint8_t m_cmaster_girl_pal;
- uint8_t m_cm_enable_reg;
- uint8_t m_cm_girl_scroll;
-
- required_device<cpu_device> m_maincpu;
- optional_device_array<i8255_device, 3> m_ppi;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- output_finder<16> m_lamps;
-};
-
-
-class cmaster_state : public goldstar_state
-{
-public:
- cmaster_state(const machine_config &mconfig, device_type type, const char *tag) :
- goldstar_state(mconfig, type, tag)
- {
- }
-
- void outport0_w(uint8_t data);
- void girl_scroll_w(uint8_t data);
- void background_col_w(uint8_t data);
-
- void init_cm();
- void init_cmv4();
- void init_tonypok();
- void init_schery97();
- void init_schery97a();
- void init_skill98();
- void init_po33();
- void init_match133();
- void init_nfb96_a();
- void init_nfb96_b();
- void init_nfb96_c1();
- void init_nfb96_c1_2();
- void init_nfb96_c2();
- void init_nfb96_d();
- void init_nfb96_dk();
- void init_nfb96_g();
- void init_nfb96sea();
- void init_fb2010();
- void init_rp35();
- void init_rp36();
- void init_rp36c3();
- void init_rp96sub();
- void init_tcl();
- void init_super7();
- void init_chthree();
- void init_wcat3a();
-
- uint32_t screen_update_amcoe1a(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void cm(machine_config &config);
- void cm97(machine_config &config);
- void cmasterc(machine_config &config);
- void amcoe1a(machine_config &config);
- void nfm(machine_config &config);
- void amcoe2(machine_config &config);
- void amcoe1(machine_config &config);
- void chryangl(machine_config &config);
- void ss2001(machine_config &config);
- void amcoe1_portmap(address_map &map);
- void amcoe2_portmap(address_map &map);
- void cm_portmap(address_map &map);
- void cm97_portmap(address_map &map);
- void chryangl_decrypted_opcodes_map(address_map &map);
- void ss2001_portmap(address_map &map);
-
-protected:
- // installed by various driver init handlers to get stuff to work
- template <uint8_t V> uint8_t fixedval_r() { return V; }
-};
-
-
-class wingco_state : public goldstar_state
-{
-public:
- wingco_state(const machine_config &mconfig, device_type type, const char *tag) :
- goldstar_state(mconfig, type, tag),
- m_fl7w4_id(*this, "fl7w4_id")
- {
- }
-
- void magodds_outb850_w(uint8_t data);
- void magodds_outb860_w(uint8_t data);
- void fl7w4_outc802_w(uint8_t data);
- void system_outputa_w(uint8_t data);
- void system_outputb_w(uint8_t data);
- void system_outputc_w(uint8_t data);
-
- void init_lucky8a();
- void init_lucky8f();
- void init_lucky8l();
- void init_magoddsc();
- void init_flaming7();
- void init_flam7_tw();
- void init_luckylad();
- void init_nd8lines();
- void init_super972();
- void init_wcat3();
-
- DECLARE_VIDEO_START(bingowng);
- DECLARE_VIDEO_START(magical);
- void magodds_palette(palette_device &palette) const;
- uint32_t screen_update_bingowng(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_magical(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mbstar(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(masked_irq);
-
- void bingowng(machine_config &config);
- void flaming7(machine_config &config);
- void lucky8(machine_config &config);
- void lucky8f(machine_config &config);
- void lucky8k(machine_config &config);
- void luckylad(machine_config &config);
- void nd8lines(machine_config &config);
- void super972(machine_config &config);
- void wcat3(machine_config &config);
- void magodds(machine_config &config);
- void flam7_w4(machine_config &config);
- void bingownga(machine_config &config);
- void mbstar(machine_config &config);
- void flam7_tw(machine_config &config);
- void magodds_map(address_map &map);
-
-protected:
- TILE_GET_INFO_MEMBER(get_magical_fg_tile_info);
- virtual void machine_start() override { goldstar_state::machine_start(); m_tile_bank = 0; }
-
-private:
- optional_device<ds2401_device> m_fl7w4_id;
-
- uint8_t m_nmi_enable;
- uint8_t m_vidreg;
-
- uint8_t m_tile_bank;
-
- void nd8lines_map(address_map &map);
-};
-
-
-class cb3_state : public goldstar_state
-{
-public:
- cb3_state(const machine_config &mconfig, device_type type, const char *tag) :
- goldstar_state(mconfig, type, tag)
- {
- }
-
- void init_cb3();
- void init_cb3e();
- void init_cherrys();
- void init_chrygld();
- void init_chry10();
-
- void cherrys(machine_config &config);
- void chryangla(machine_config &config);
- void chrygld(machine_config &config);
- void cb3c(machine_config &config);
- void cb3e(machine_config &config);
- void ncb3(machine_config &config);
- void eldoradd(machine_config &config);
- void ncb3_map(address_map &map);
- void chryangla_map(address_map &map);
- void chryangla_decrypted_opcodes_map(address_map &map);
-
-protected:
- void do_blockswaps(uint8_t *rom);
- void dump_to_file(uint8_t *rom);
-
- uint8_t cb3_decrypt(uint8_t cipherText, uint16_t address);
- uint8_t chry10_decrypt(uint8_t cipherText);
-};
-
-
-class sanghopm_state : public goldstar_state
-{
-public:
- sanghopm_state(const machine_config &mconfig, device_type type, const char *tag) :
- goldstar_state(mconfig, type, tag),
- m_reel1_attrram(*this, "reel1_attrram"),
- m_reel2_attrram(*this, "reel2_attrram"),
- m_reel3_attrram(*this, "reel3_attrram")
- {
- }
-
- void enable_w(uint8_t data);
- void coincount_w(uint8_t data);
-
- void fg_vidram_w(offs_t offset, uint8_t data);
- void fg_atrram_w(offs_t offset, uint8_t data);
- void bg_vidram_w(offs_t offset, uint8_t data);
- void bg_atrram_w(offs_t offset, uint8_t data);
- void reel1_attrram_w(offs_t offset, uint8_t data);
- void reel2_attrram_w(offs_t offset, uint8_t data);
- void reel3_attrram_w(offs_t offset, uint8_t data);
-
- DECLARE_VIDEO_START(sangho);
- uint32_t screen_update_sangho(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void star100(machine_config &config);
- void star100_map(address_map &map);
- void star100_readport(address_map &map);
-protected:
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_reel1_tile_info);
- TILE_GET_INFO_MEMBER(get_reel2_tile_info);
- TILE_GET_INFO_MEMBER(get_reel3_tile_info);
-
-private:
- required_shared_ptr<uint8_t> m_reel1_attrram;
- required_shared_ptr<uint8_t> m_reel2_attrram;
- required_shared_ptr<uint8_t> m_reel3_attrram;
-
- uint8_t m_enable_reg;
-};
-
-
-class unkch_state : public goldstar_state
-{
-public:
- unkch_state(const machine_config &mconfig, device_type type, const char *tag) :
- goldstar_state(mconfig, type, tag),
- m_reel1_attrram(*this, "reel1_attrram"),
- m_reel2_attrram(*this, "reel2_attrram"),
- m_reel3_attrram(*this, "reel3_attrram"),
- m_ticket_dispenser(*this, "tickets")
- {
- }
-
- void coincount_w(uint8_t data);
- void unkcm_0x02_w(uint8_t data);
- void unkcm_0x03_w(uint8_t data);
-
- void reel1_attrram_w(offs_t offset, uint8_t data);
- void reel2_attrram_w(offs_t offset, uint8_t data);
- void reel3_attrram_w(offs_t offset, uint8_t data);
-
- void init_unkch1();
- void init_unkch3();
- void init_unkch4();
-
- DECLARE_VIDEO_START(unkch);
- uint32_t screen_update_unkch(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- void megaline(machine_config &config);
- void unkch(machine_config &config);
- void bonusch(machine_config &config);
- void feverch(machine_config &config);
- void bonusch_map(address_map &map);
- void feverch_map(address_map &map);
- void megaline_map(address_map &map);
- void unkch_map(address_map &map);
- void unkch_portmap(address_map &map);
-protected:
- TILE_GET_INFO_MEMBER(get_reel1_tile_info);
- TILE_GET_INFO_MEMBER(get_reel2_tile_info);
- TILE_GET_INFO_MEMBER(get_reel3_tile_info);
-
-private:
- required_shared_ptr<uint8_t> m_reel1_attrram;
- required_shared_ptr<uint8_t> m_reel2_attrram;
- required_shared_ptr<uint8_t> m_reel3_attrram;
-
- uint8_t m_vblank_irq_enable;
- uint8_t m_vidreg;
-
- optional_device<ticket_dispenser_device> m_ticket_dispenser;
-};
-
-#endif // MAME_INCLUDES_GOLDSTAR_H
diff --git a/src/mame/includes/gomoku.h b/src/mame/includes/gomoku.h
deleted file mode 100644
index 7867c0f6976..00000000000
--- a/src/mame/includes/gomoku.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi, David Haywood
-#ifndef MAME_INCLUDES_GOMOKU_H
-#define MAME_INCLUDES_GOMOKU_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class gomoku_state : public driver_device
-{
-public:
- gomoku_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_bgram(*this, "bgram"),
- m_inputs(*this, {"IN0", "IN1", "DSW", "UNUSED0", "UNUSED1", "UNUSED2", "UNUSED3", "UNUSED4"}),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_bg_x(*this, "bg_x"),
- m_bg_y(*this, "bg_y"),
- m_bg_d(*this, "bg_d")
- { }
-
- void gomoku(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_bgram;
- optional_ioport_array<8> m_inputs;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_region_ptr<uint8_t> m_bg_x;
- required_region_ptr<uint8_t> m_bg_y;
- required_region_ptr<uint8_t> m_bg_d;
-
- bool m_flipscreen;
- bool m_bg_dispsw;
- tilemap_t *m_fg_tilemap;
- bitmap_ind16 m_bg_bitmap;
-
- uint8_t input_port_r(offs_t offset);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void flipscreen_w(int state);
- void bg_dispsw_w(int state);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- void palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void prg_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GOMOKU_H
diff --git a/src/mame/includes/gotcha.h b/src/mame/includes/gotcha.h
deleted file mode 100644
index f0f887f9616..00000000000
--- a/src/mame/includes/gotcha.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Gotcha
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GOTCHA_H
-#define MAME_INCLUDES_GOTCHA_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "video/decospr.h"
-#include "tilemap.h"
-
-class gotcha_state : public driver_device
-{
-public:
- gotcha_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_fgvideoram(*this, "fgvideoram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_spriteram(*this, "spriteram"),
- m_sprgen(*this, "spritegen"),
- m_audiocpu(*this, "audiocpu"),
- m_maincpu(*this, "maincpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_lamp_r(*this, "lamp_p%u_r", 1U),
- m_lamp_g(*this, "lamp_p%u_g", 1U),
- m_lamp_b(*this, "lamp_p%u_b", 1U),
- m_lamp_s(*this, "lamp_p%u_s", 1U)
- {
- }
-
- void gotcha(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- void lamps_w(uint16_t data);
- void fgvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bgvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gfxbank_select_w(uint8_t data);
- void gfxbank_w(uint8_t data);
- void scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void oki_bank_w(uint8_t data);
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
- TILE_GET_INFO_MEMBER(fg_get_tile_info);
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline void get_tile_info( tile_data &tileinfo, int tile_index ,uint16_t *vram, int color_offs);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_fgvideoram;
- required_shared_ptr<uint16_t> m_bgvideoram;
- required_shared_ptr<uint16_t> m_spriteram;
- optional_device<decospr_device> m_sprgen;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_banksel;
- uint8_t m_gfxbank[4];
- uint16_t m_scroll[4];
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_maincpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
-
- output_finder<3> m_lamp_r;
- output_finder<3> m_lamp_g;
- output_finder<3> m_lamp_b;
- output_finder<3> m_lamp_s;
-};
-
-#endif // MAME_INCLUDES_GOTCHA_H
diff --git a/src/mame/includes/gottlieb.h b/src/mame/includes/gottlieb.h
deleted file mode 100644
index 5e2af434618..00000000000
--- a/src/mame/includes/gottlieb.h
+++ /dev/null
@@ -1,173 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Fabrice Frances, Nicola Salmoria, Aaron Giles
-/***************************************************************************
-
- Gottlieb hardware
-
-***************************************************************************/
-
-#include "audio/gottlieb.h"
-#include "cpu/i86/i86.h"
-#include "cpu/m6502/m6502.h"
-#include "sound/samples.h"
-#include "machine/ldpr8210.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-#define GOTTLIEB_VIDEO_HCOUNT 318
-#define GOTTLIEB_VIDEO_HBLANK 256
-#define GOTTLIEB_VIDEO_VCOUNT 256
-#define GOTTLIEB_VIDEO_VBLANK 240
-
-
-
-
-// ======================> gottlieb_state
-
-// shared driver state
-class gottlieb_state : public driver_device
-{
-public:
- gottlieb_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_laserdisc(*this, "laserdisc")
- , m_r1_sound(*this, "r1sound")
- , m_r2_sound(*this, "r2sound")
- , m_knocker_sample(*this, "knocker_sam")
- , m_videoram(*this, "videoram")
- , m_charram(*this, "charram")
- , m_spriteram(*this, "spriteram")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_paletteram(*this, "paletteram")
- , m_track_x(*this, "TRACKX")
- , m_track_y(*this, "TRACKY")
- , m_leds(*this, "led%u", 0U)
- { }
-
- void gottlieb_core(machine_config &config);
- void cobram3(machine_config &config);
- void screwloo(machine_config &config);
- void gottlieb2(machine_config &config);
- void gottlieb2_ram_rom(machine_config &config);
- void reactor(machine_config &config);
- void tylz(machine_config &config);
- void g2laser(machine_config &config);
- void qbert(machine_config &config);
- void qbert_knocker(machine_config &config);
- void gottlieb1(machine_config &config);
- void gottlieb1_rom(machine_config &config);
- void gottlieb1_votrax(machine_config &config);
-
- void init_romtiles();
- void init_screwloo();
- void init_vidvince();
- void init_ramtiles();
- void init_stooges();
- void init_qbert();
- void init_qbertqub();
-
- template <int N> DECLARE_CUSTOM_INPUT_MEMBER(track_delta_r);
- DECLARE_CUSTOM_INPUT_MEMBER(stooges_joystick_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- enum
- {
- TIMER_LASERDISC_PHILIPS,
- TIMER_LASERDISC_BIT_OFF,
- TIMER_LASERDISC_BIT,
- TIMER_NMI_CLEAR
- };
-
- void qbert_knocker(u8 knock);
-
- void analog_reset_w(u8 data);
- void general_output_w(u8 data);
- void reactor_output_w(u8 data);
- void stooges_output_w(u8 data);
- void qbertqub_output_w(u8 data);
- void qbert_output_w(u8 data);
- u8 laserdisc_status_r(offs_t offset);
- void laserdisc_select_w(u8 data);
- void laserdisc_command_w(u8 data);
- void sound_w(u8 data);
- void palette_w(offs_t offset, u8 data);
- void video_control_w(u8 data);
- void laserdisc_video_control_w(u8 data);
- void videoram_w(offs_t offset, u8 data);
- void charram_w(offs_t offset, u8 data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_screwloo_bg_tile_info);
- DECLARE_VIDEO_START(screwloo);
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(interrupt);
- TIMER_CALLBACK_MEMBER(laserdisc_philips_callback);
- TIMER_CALLBACK_MEMBER(laserdisc_bit_off_callback);
- TIMER_CALLBACK_MEMBER(laserdisc_bit_callback);
- TIMER_CALLBACK_MEMBER(nmi_clear);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- inline void audio_end_state();
- void audio_process_clock(bool logit);
- void audio_handle_zero_crossing(const attotime &zerotime, bool logit);
- void laserdisc_audio_process(int samplerate, int samples, const int16_t *ch0, const int16_t *ch1);
-
- void gottlieb_base_map(address_map &map);
- void gottlieb_ram_map(address_map &map);
- void gottlieb_ram_rom_map(address_map &map);
- void gottlieb_rom_map(address_map &map);
- void reactor_map(address_map &map);
-
- // devices
- required_device<cpu_device> m_maincpu;
- optional_device<pioneer_pr8210_device> m_laserdisc;
- optional_device<gottlieb_sound_r1_device> m_r1_sound;
- optional_device<gottlieb_sound_r2_device> m_r2_sound;
- optional_device<samples_device> m_knocker_sample;
-
- required_shared_ptr<u8> m_videoram;
- required_shared_ptr<u8> m_charram;
- required_shared_ptr<u8> m_spriteram;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_shared_ptr<u8> m_paletteram;
-
- optional_ioport m_track_x;
- optional_ioport m_track_y;
- output_finder<3> m_leds; // only used by reactor
-
- u8 m_knocker_prev;
- u8 m_joystick_select;
- u8 m_track[2];
- emu_timer *m_laserdisc_bit_timer;
- emu_timer *m_laserdisc_philips_timer;
- u8 m_laserdisc_select;
- u8 m_laserdisc_status;
- uint16_t m_laserdisc_philips_code;
- std::unique_ptr<u8[]> m_laserdisc_audio_buffer;
- uint16_t m_laserdisc_audio_address;
- int16_t m_laserdisc_last_samples[2];
- attotime m_laserdisc_last_time;
- attotime m_laserdisc_last_clock;
- u8 m_laserdisc_zero_seen;
- u8 m_laserdisc_audio_bits;
- u8 m_laserdisc_audio_bit_count;
- u8 m_gfxcharlo;
- u8 m_gfxcharhi;
- u8 m_background_priority;
- u8 m_spritebank;
- u8 m_transparent0;
- tilemap_t *m_bg_tilemap;
- double m_weights[4];
-};
diff --git a/src/mame/includes/gotya.h b/src/mame/includes/gotya.h
deleted file mode 100644
index c17a778b63c..00000000000
--- a/src/mame/includes/gotya.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-#ifndef MAME_INCLUDES_GOTYA_H
-#define MAME_INCLUDES_GOTYA_H
-
-#pragma once
-
-#include "sound/samples.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class gotya_state : public driver_device
-{
-public:
- gotya_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_scroll(*this, "scroll"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_videoram2(*this, "videoram2"),
- m_spriteram(*this, "spriteram"),
- m_samples(*this, "samples"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void gotya(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_scroll_bit_8;
-
- /* sound-related */
- int m_theme_playing;
-
- /* devices */
- required_device<samples_device> m_samples;
- void gotya_videoram_w(offs_t offset, uint8_t data);
- void gotya_colorram_w(offs_t offset, uint8_t data);
- void gotya_video_control_w(uint8_t data);
- void gotya_soundlatch_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_rows_thehand);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void gotya_palette(palette_device &palette) const;
- uint32_t screen_update_gotya(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_status_row( bitmap_ind16 &bitmap, const rectangle &cliprect, int sx, int col );
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_status( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void gotya_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GOTYA_H
diff --git a/src/mame/includes/gp32.h b/src/mame/includes/gp32.h
deleted file mode 100644
index 48f2613774d..00000000000
--- a/src/mame/includes/gp32.h
+++ /dev/null
@@ -1,254 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tim Schuerewegen
-
-#ifndef MAME_INCLUDES_GP32_H
-#define MAME_INCLUDES_GP32_H
-
-#include "machine/smartmed.h"
-#include "sound/dac.h"
-#include "machine/nvram.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define INT_ADC 31
-#define INT_RTC 30
-#define INT_UTXD1 29
-#define INT_UTXD0 28
-#define INT_IIC 27
-#define INT_USBH 26
-#define INT_USBD 25
-#define INT_URXD1 24
-#define INT_URXD0 23
-#define INT_SPI 22
-#define INT_MMC 21
-#define INT_DMA3 20
-#define INT_DMA2 19
-#define INT_DMA1 18
-#define INT_DMA0 17
-#define INT_RESERVED 16
-#define INT_UERR 15
-#define INT_TIMER4 14
-#define INT_TIMER3 13
-#define INT_TIMER2 12
-#define INT_TIMER1 11
-#define INT_TIMER0 10
-#define INT_WDT 9
-#define INT_TICK 8
-#define INT_EINT7 7
-#define INT_EINT6 6
-#define INT_EINT5 5
-#define INT_EINT4 4
-#define INT_EINT3 3
-#define INT_EINT2 2
-#define INT_EINT1 1
-#define INT_EINT0 0
-
-struct s3c240x_lcd_t
-{
- uint32_t vramaddr_cur;
- uint32_t vramaddr_max;
- uint32_t offsize;
- uint32_t pagewidth_cur;
- uint32_t pagewidth_max;
- uint32_t bppmode;
- uint32_t bswp, hwswp;
- uint32_t hozval, lineval;
- int vpos, hpos;
-};
-
-struct smc_t
-{
- int add_latch;
- int chip;
- int cmd_latch;
- int do_read;
- int do_write;
- int read;
- int wp;
- int busy;
- uint8_t datarx;
- uint8_t datatx;
-};
-
-struct i2s_t
-{
- int l3d;
- int l3m;
- int l3c;
-};
-
-struct s3c240x_iic_t
-{
- uint8_t data[4];
- int data_index;
- uint16_t address;
-};
-
-struct s3c240x_iis_t
-{
- uint16_t fifo[16/2];
- int fifo_index;
-};
-
-
-class gp32_state : public driver_device
-{
-public:
- gp32_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_s3c240x_ram(*this, "s3c240x_ram"),
- m_maincpu(*this, "maincpu"),
- m_smartmedia(*this, "smartmedia"),
- m_ldac(*this, "ldac"),
- m_rdac(*this, "rdac"),
- m_nvram(*this, "nvram"),
- m_io_in0(*this, "IN0"),
- m_io_in1(*this, "IN1"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette") { }
-
- void gp32(machine_config &config);
-
-private:
- virtual void video_start() override;
-
- required_shared_ptr<uint32_t> m_s3c240x_ram;
- std::unique_ptr<uint8_t[]> m_eeprom_data;
- uint32_t m_s3c240x_lcd_regs[0x400/4];
- emu_timer *m_s3c240x_lcd_timer;
- s3c240x_lcd_t m_s3c240x_lcd;
- uint32_t m_s3c240x_lcd_palette[0x400/4];
- uint32_t m_s3c240x_clkpow_regs[0x18/4];
- uint32_t m_s3c240x_irq_regs[0x18/4];
- emu_timer *m_s3c240x_pwm_timer[5];
- uint32_t m_s3c240x_pwm_regs[0x44/4];
- emu_timer *m_s3c240x_dma_timer[4];
- uint32_t m_s3c240x_dma_regs[0x7c/4];
- smc_t m_smc;
- i2s_t m_i2s;
- uint32_t m_s3c240x_gpio[0x60/4];
- uint32_t m_s3c240x_memcon_regs[0x34/4];
- uint32_t m_s3c240x_usb_host_regs[0x5C/4];
- uint32_t m_s3c240x_uart_0_regs[0x2C/4];
- uint32_t m_s3c240x_uart_1_regs[0x2C/4];
- uint32_t m_s3c240x_usb_device_regs[0xBC/4];
- uint32_t m_s3c240x_watchdog_regs[0x0C/4];
- s3c240x_iic_t m_s3c240x_iic;
- emu_timer *m_s3c240x_iic_timer;
- uint32_t m_s3c240x_iic_regs[0x10/4];
- s3c240x_iis_t m_s3c240x_iis;
- emu_timer *m_s3c240x_iis_timer;
- uint32_t m_s3c240x_iis_regs[0x14/4];
- uint32_t m_s3c240x_rtc_regs[0x4C/4];
- uint32_t m_s3c240x_adc_regs[0x08/4];
- uint32_t m_s3c240x_spi_regs[0x18/4];
- uint32_t m_s3c240x_mmc_regs[0x40/4];
- bitmap_rgb32 m_bitmap;
- uint32_t s3c240x_lcd_r(offs_t offset);
- void s3c240x_lcd_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_lcd_palette_r(offs_t offset);
- void s3c240x_lcd_palette_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_clkpow_r(offs_t offset);
- void s3c240x_clkpow_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_irq_r(offs_t offset);
- void s3c240x_irq_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_pwm_r(offs_t offset);
- void s3c240x_pwm_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_dma_r(offs_t offset);
- void s3c240x_dma_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_gpio_r(offs_t offset);
- void s3c240x_gpio_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_memcon_r(offs_t offset);
- void s3c240x_memcon_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_usb_host_r(offs_t offset);
- void s3c240x_usb_host_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_uart_0_r(offs_t offset);
- void s3c240x_uart_0_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_uart_1_r(offs_t offset);
- void s3c240x_uart_1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_usb_device_r(offs_t offset);
- void s3c240x_usb_device_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_watchdog_r(offs_t offset);
- void s3c240x_watchdog_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_iic_r(offs_t offset);
- void s3c240x_iic_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_iis_r(offs_t offset);
- void s3c240x_iis_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_rtc_r(offs_t offset);
- void s3c240x_rtc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_adc_r(offs_t offset);
- void s3c240x_adc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_spi_r(offs_t offset);
- void s3c240x_spi_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t s3c240x_mmc_r(offs_t offset);
- void s3c240x_mmc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_gp32(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(s3c240x_lcd_timer_exp);
- TIMER_CALLBACK_MEMBER(s3c240x_pwm_timer_exp);
- TIMER_CALLBACK_MEMBER(s3c240x_dma_timer_exp);
- TIMER_CALLBACK_MEMBER(s3c240x_iic_timer_exp);
- TIMER_CALLBACK_MEMBER(s3c240x_iis_timer_exp);
- void gp32_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<smartmedia_image_device> m_smartmedia;
- required_device<dac_word_interface> m_ldac;
- required_device<dac_word_interface> m_rdac;
- required_device<nvram_device> m_nvram;
- required_ioport m_io_in0;
- required_ioport m_io_in1;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- uint32_t s3c240x_get_fclk(int reg);
- uint32_t s3c240x_get_hclk(int reg);
- uint32_t s3c240x_get_pclk(int reg);
- void s3c240x_lcd_dma_reload();
- void s3c240x_lcd_dma_init();
- void s3c240x_lcd_configure();
- void s3c240x_lcd_start();
- void s3c240x_lcd_stop();
- void s3c240x_lcd_recalc();
- void s3c240x_check_pending_irq();
- void s3c240x_request_irq(uint32_t int_type);
- void s3c240x_dma_reload(int dma);
- void s3c240x_dma_trigger(int dma);
- void s3c240x_dma_request_iis();
- void s3c240x_dma_request_pwm();
- void s3c240x_dma_start(int dma);
- void s3c240x_dma_stop(int dma);
- void s3c240x_dma_recalc(int dma);
- void s3c240x_pwm_start(int timer);
- void s3c240x_pwm_stop(int timer);
- void s3c240x_pwm_recalc(int timer);
- void s3c240x_iis_start();
- void s3c240x_iis_stop();
- void s3c240x_iis_recalc();
- void smc_reset();
- void smc_init();
- uint8_t smc_read();
- void smc_write(uint8_t data);
- void smc_update();
- void i2s_reset();
- void i2s_init();
- void i2s_write(int line, int data);
- uint8_t eeprom_read(uint16_t address);
- void eeprom_write(uint16_t address, uint8_t data);
- void iic_start();
- void iic_stop();
- void iic_resume();
- void s3c240x_machine_start();
- void s3c240x_machine_reset();
- inline rgb_t s3c240x_get_color_5551( uint16_t data);
- uint32_t s3c240x_lcd_dma_read( );
- void s3c240x_lcd_render_01( );
- void s3c240x_lcd_render_02( );
- void s3c240x_lcd_render_04( );
- void s3c240x_lcd_render_08( );
- void s3c240x_lcd_render_16( );
-};
-
-
-#endif
diff --git a/src/mame/includes/gradius3.h b/src/mame/includes/gradius3.h
deleted file mode 100644
index c4864aa745d..00000000000
--- a/src/mame/includes/gradius3.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Gradius 3
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GRADIUS3_H
-#define MAME_INCLUDES_GRADIUS3_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/k007232.h"
-#include "video/k052109.h"
-#include "video/k051960.h"
-#include "video/konami_helper.h"
-
-class gradius3_state : public driver_device
-{
-public:
- gradius3_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_gfxram(*this, "k052109"),
- m_gfxrom(*this, "k051960"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_subcpu(*this, "sub"),
- m_k007232(*this, "k007232"),
- m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960")
- { }
-
- void gradius3(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_gfxram;
- required_region_ptr<uint8_t> m_gfxrom;
-
- /* misc */
- int m_priority;
- int m_irqAen;
- int m_irqBmask;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device<k007232_device> m_k007232;
- required_device<k052109_device> m_k052109;
- required_device<k051960_device> m_k051960;
-
- uint16_t k052109_halfword_r(offs_t offset);
- void k052109_halfword_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cpuA_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cpuB_irqenable_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cpuB_irqtrigger_w(uint16_t data);
- void sound_irq_w(uint16_t data);
- uint16_t gradius3_gfxrom_r(offs_t offset);
- void gradius3_gfxram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_bank_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_gradius3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(cpuA_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(gradius3_sub_scanline);
- void gradius3_postload();
- void volume_callback(uint8_t data);
- K052109_CB_MEMBER(tile_callback);
- K051960_CB_MEMBER(sprite_callback);
- void gradius3_map(address_map &map);
- void gradius3_map2(address_map &map);
- void gradius3_s_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GRADIUS3_H
diff --git a/src/mame/includes/grchamp.h b/src/mame/includes/grchamp.h
deleted file mode 100644
index 6f799c7f933..00000000000
--- a/src/mame/includes/grchamp.h
+++ /dev/null
@@ -1,150 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi, Phil Stroffolino
-/*************************************************************************
-
- Taito Grand Champ hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GRCHAMP_H
-#define MAME_INCLUDES_GRCHAMP_H
-
-#pragma once
-
-#include "machine/input_merger.h"
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class grchamp_state : public driver_device
-{
-public:
- grchamp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_subcpu(*this, "sub"),
- m_watchdog(*this, "watchdog"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_soundnmi(*this, "soundnmi"),
- m_radarram(*this, "radarram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_leftram(*this, "leftram"),
- m_rightram(*this, "rightram"),
- m_centerram(*this, "centerram"),
- m_digits(*this, "digit%u", 0U)
- { }
-
- void grchamp(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- void cpu0_outputs_w(offs_t offset, uint8_t data);
- void led_board_w(offs_t offset, uint8_t data);
- void cpu1_outputs_w(offs_t offset, uint8_t data);
- uint8_t pc3259_0_r();
- uint8_t pc3259_1_r();
- uint8_t pc3259_2_r();
- uint8_t pc3259_3_r();
- uint8_t sub_to_main_comm_r();
- void main_to_sub_comm_w(offs_t offset, uint8_t data);
- uint8_t main_to_sub_comm_r(offs_t offset);
- uint8_t get_pc3259_bits(int offs);
- void left_w(offs_t offset, uint8_t data);
- void center_w(offs_t offset, uint8_t data);
- void right_w(offs_t offset, uint8_t data);
- TIMER_CALLBACK_MEMBER(soundlatch_w_cb);
- TIMER_CALLBACK_MEMBER(soundlatch_clear7_w_cb);
- uint8_t soundlatch_r();
- void soundlatch_clear7_w(uint8_t data);
- uint8_t soundlatch_flags_r();
- void portA_0_w(uint8_t data);
- void portB_0_w(uint8_t data);
- void portA_2_w(uint8_t data);
- void portB_2_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- TILE_GET_INFO_MEMBER(get_left_tile_info);
- TILE_GET_INFO_MEMBER(get_right_tile_info);
- TILE_GET_INFO_MEMBER(get_center_tile_info);
- TILEMAP_MAPPER_MEMBER(get_memory_offset);
-
- void grchamp_palette(palette_device &palette) const;
- INTERRUPT_GEN_MEMBER(cpu0_interrupt);
- INTERRUPT_GEN_MEMBER(cpu1_interrupt);
- TIMER_CALLBACK_MEMBER(main_to_sub_comm_sync_w);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_objects(int y, uint8_t *objdata);
- void main_map(address_map &map);
- void main_portmap(address_map &map);
- void sound_map(address_map &map);
- void sub_map(address_map &map);
- void sub_portmap(address_map &map);
-
- uint8_t m_cpu0_out[16];
- uint8_t m_cpu1_out[16];
-
- uint8_t m_comm_latch;
- uint8_t m_comm_latch2[4];
-
- uint16_t m_ledlatch;
- uint8_t m_ledaddr;
- uint16_t m_ledram[8];
-
- uint8_t m_soundlatch_data;
- bool m_soundlatch_flag;
-
- uint16_t m_collide;
- uint8_t m_collmode;
-
- bitmap_ind16 m_work_bitmap;
- tilemap_t *m_text_tilemap;
- tilemap_t *m_left_tilemap;
- tilemap_t *m_center_tilemap;
- tilemap_t *m_right_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_device<input_merger_device> m_soundnmi;
-
- required_shared_ptr<uint8_t> m_radarram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_leftram;
- required_shared_ptr<uint8_t> m_rightram;
- required_shared_ptr<uint8_t> m_centerram;
- output_finder<8> m_digits;
-};
-
-/* Discrete Sound Input Nodes */
-#define GRCHAMP_ENGINE_CS_EN NODE_01
-#define GRCHAMP_SIFT_DATA NODE_02
-#define GRCHAMP_ATTACK_UP_DATA NODE_03
-#define GRCHAMP_IDLING_EN NODE_04
-#define GRCHAMP_FOG_EN NODE_05
-#define GRCHAMP_PLAYER_SPEED_DATA NODE_06
-#define GRCHAMP_ATTACK_SPEED_DATA NODE_07
-#define GRCHAMP_A_DATA NODE_08
-#define GRCHAMP_B_DATA NODE_09
-
-/*----------- defined in audio/grchamp.c -----------*/
-
-DISCRETE_SOUND_EXTERN( grchamp_discrete );
-
-#endif // MAME_INCLUDES_GRCHAMP_H
diff --git a/src/mame/includes/gridlee.h b/src/mame/includes/gridlee.h
deleted file mode 100644
index 5fbf6db267f..00000000000
--- a/src/mame/includes/gridlee.h
+++ /dev/null
@@ -1,124 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Videa Gridlee hardware
-
- driver by Aaron Giles
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_GRIDLEE_H
-#define MAME_INCLUDES_GRIDLEE_H
-
-#pragma once
-
-#include "sound/samples.h"
-#include "machine/74259.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-#define GRIDLEE_MASTER_CLOCK (20000000)
-#define GRIDLEE_CPU_CLOCK (GRIDLEE_MASTER_CLOCK / 16)
-#define GRIDLEE_PIXEL_CLOCK (GRIDLEE_MASTER_CLOCK / 4)
-#define GRIDLEE_HTOTAL (0x140)
-#define GRIDLEE_HBEND (0x000)
-#define GRIDLEE_HBSTART (0x100)
-#define GRIDLEE_VTOTAL (0x108)
-#define GRIDLEE_VBEND (0x010)
-#define GRIDLEE_VBSTART (0x100)
-
-
-class gridlee_state : public driver_device
-{
-public:
- gridlee_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_latch(*this, "latch"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_samples(*this, "samples")
- { }
-
- void gridlee(machine_config &config);
-
-private:
- uint8_t analog_port_r(offs_t offset);
- uint8_t random_num_r();
- DECLARE_WRITE_LINE_MEMBER(coin_counter_w);
- DECLARE_WRITE_LINE_MEMBER(cocktail_flip_w);
- void gridlee_videoram_w(offs_t offset, uint8_t data);
- void gridlee_palette_select_w(uint8_t data);
- void gridlee_palette(palette_device &palette) const;
- uint32_t screen_update_gridlee(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(irq_off_tick);
- TIMER_CALLBACK_MEMBER(irq_timer_tick);
- TIMER_CALLBACK_MEMBER(firq_off_tick);
- TIMER_CALLBACK_MEMBER(firq_timer_tick);
- void expand_pixels();
- void poly17_init();
- void cpu1_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_latch;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<samples_device> m_samples;
-
- uint8_t m_last_analog_input[2];
- uint8_t m_last_analog_output[2];
- std::unique_ptr<uint8_t[]> m_poly17;
- uint8_t *m_rand17;
- emu_timer *m_irq_off;
- emu_timer *m_irq_timer;
- emu_timer *m_firq_off;
- emu_timer *m_firq_timer;
- uint8_t m_cocktail_flip;
- std::unique_ptr<uint8_t[]> m_local_videoram;
- uint8_t m_palettebank_vis;
-};
-
-
-/*----------- defined in audio/gridlee.cpp -----------*/
-
-class gridlee_sound_device : public device_t, public device_sound_interface
-{
-public:
- gridlee_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- ~gridlee_sound_device() { }
-
-protected:
- // device-level overrides
- virtual void device_start() override;
-
- // sound stream update overrides
- virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
-
-public:
- void gridlee_sound_w(offs_t offset, uint8_t data);
-
-private:
- /* tone variables */
- uint32_t m_tone_step;
- uint32_t m_tone_fraction;
- uint8_t m_tone_volume;
-
- /* sound streaming variables */
- sound_stream *m_stream;
- required_device<samples_device> m_samples;
- double m_freq_to_step;
- uint8_t m_sound_data[24];
-};
-
-DECLARE_DEVICE_TYPE(GRIDLEE, gridlee_sound_device)
-
-#endif // MAME_INCLUDES_GRIDLEE_H
diff --git a/src/mame/includes/groundfx.h b/src/mame/includes/groundfx.h
deleted file mode 100644
index db6b6fbfd4c..00000000000
--- a/src/mame/includes/groundfx.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, David Graves
-#ifndef MAME_INCLUDES_GROUNDFX_H
-#define MAME_INCLUDES_GROUNDFX_H
-
-#pragma once
-
-#include "video/tc0100scn.h"
-#include "video/tc0480scp.h"
-#include "emupal.h"
-
-struct gfx_tempsprite
-{
- u8 gfx;
- u32 code,color;
- bool flipx,flipy;
- int x,y;
- int zoomx,zoomy;
- int pri;
-};
-
-class groundfx_state : public driver_device
-{
-public:
- groundfx_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_ram(*this, "ram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_tc0620scc(*this, "tc0620scc"),
- m_tc0480scp(*this, "tc0480scp"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spritemap(*this, "spritemap")
- { }
-
- void groundfx(machine_config &config);
- void init_groundfx();
-
-protected:
- virtual void video_start() override;
-
-private:
- required_shared_ptr<u32> m_ram;
- required_shared_ptr<u32> m_spriteram;
-
- required_device<cpu_device> m_maincpu;
- required_device<tc0620scc_device> m_tc0620scc;
- required_device<tc0480scp_device> m_tc0480scp;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_region_ptr<u16> m_spritemap;
-
- u16 m_frame_counter;
- u16 m_port_sel;
- std::unique_ptr<gfx_tempsprite[]> m_spritelist;
- u16 m_rotate_ctrl[8];
- rectangle m_hack_cliprect;
-
- void rotate_control_w(offs_t offset, u16 data);
- void motor_control_w(u32 data);
- u32 irq_speedup_r();
- DECLARE_READ_LINE_MEMBER(frame_counter_r);
- void coin_word_w(u8 data);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(interrupt);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,int do_hack,int x_offs,int y_offs);
-
- void groundfx_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GROUNDFX_H
diff --git a/src/mame/includes/gstriker.h b/src/mame/includes/gstriker.h
deleted file mode 100644
index 8b0cb67f3bf..00000000000
--- a/src/mame/includes/gstriker.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Farfetch'd, David Haywood
-#ifndef MAME_INCLUDES_GSTRIKER_H
-#define MAME_INCLUDES_GSTRIKER_H
-
-#pragma once
-
-#include "machine/6850acia.h"
-#include "machine/gen_latch.h"
-#include "machine/mb3773.h"
-#include "video/vsystem_spr.h"
-#include "video/mb60553.h"
-#include "video/vs920a.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-
-class gstriker_state : public driver_device
-{
-public:
- gstriker_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_spr(*this, "vsystem_spr"),
- m_bg(*this, "zoomtilemap"),
- m_tx(*this, "texttilemap"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_watchdog(*this, "watchdog"),
- m_acia(*this, "acia"),
- m_CG10103_m_vram(*this, "cg10103_m_vram"),
- m_work_ram(*this, "work_ram"),
- m_mixerregs(*this, "mixerregs")
- { }
-
- void base(machine_config &config);
- void twc94(machine_config &config);
- void gstriker(machine_config &config);
- void vgoal(machine_config &config);
-
- void init_vgoalsoc();
- void init_twcup94();
- void init_twcup94a();
- void init_twcup94b();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<vsystem_spr_device> m_spr;
- required_device<mb60553_zooming_tilemap_device> m_bg;
- required_device<vs920a_text_tilemap_device> m_tx;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<mb3773_device> m_watchdog;
- optional_device<acia6850_device> m_acia;
-
- required_shared_ptr<uint16_t> m_CG10103_m_vram;
- std::unique_ptr<uint16_t[]> m_buffered_spriteram;
- std::unique_ptr<uint16_t[]> m_buffered_spriteram2;
- required_shared_ptr<uint16_t> m_work_ram;
- required_shared_ptr<uint16_t> m_mixerregs;
-
- enum {
- TECMO_WCUP94_MCU = 1,
- TECMO_WCUP94A_MCU,
- TECMO_WCUP94B_MCU,
- VGOAL_SOCCER_MCU
- }m_mcutype;
- int m_gametype;
- uint16_t m_prot_reg[2];
-
- // common
- void sh_bankswitch_w(uint8_t data);
-
- // vgoalsoc and twrldc
- void twcup94_prot_reg_w(uint8_t data);
-
- // vgoalsoc only
- uint16_t vbl_toggle_r();
- void vbl_toggle_w(uint16_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
- void mcu_init();
- void gstriker_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
- void twcup94_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GSTRIKER_H
diff --git a/src/mame/includes/gsword.h b/src/mame/includes/gsword.h
deleted file mode 100644
index f2559862a92..00000000000
--- a/src/mame/includes/gsword.h
+++ /dev/null
@@ -1,174 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Steve Ellenoff,Jarek Parchanski
-#ifndef MAME_INCLUDES_GSWORD_H
-#define MAME_INCLUDES_GSWORD_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/ay8910.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class gsword_state_base : public driver_device
-{
-public:
- gsword_state_base(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_subcpu(*this, "sub")
- , m_ay0(*this, "ay1")
- , m_ay1(*this, "ay2")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_spritetile_ram(*this, "spritetile_ram")
- , m_spritexy_ram(*this, "spritexy_ram")
- , m_spriteattrib_ram(*this, "spriteattram")
- , m_videoram(*this, "videoram")
- , m_cpu2_ram(*this, "cpu2_ram")
- {
- }
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<cpu_device> m_subcpu;
- required_device<ay8910_device> m_ay0;
- required_device<ay8910_device> m_ay1;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_spritetile_ram;
- required_shared_ptr<uint8_t> m_spritexy_ram;
- required_shared_ptr<uint8_t> m_spriteattrib_ram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_cpu2_ram;
-
- int m_fake8910_0;
- int m_fake8910_1;
- int m_charbank;
- int m_charpalbank;
- int m_flipscreen;
- tilemap_t *m_bg_tilemap;
-
- // common
- void videoram_w(offs_t offset, u8 data);
- void charbank_w(u8 data);
- void videoctrl_w(u8 data);
- void scroll_w(u8 data);
- void ay8910_control_port_0_w(u8 data);
- void ay8910_control_port_1_w(u8 data);
- u8 fake_0_r();
- u8 fake_1_r();
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint32_t screen_update_gsword(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void cpu1_map(address_map &map);
-};
-
-
-class gsword_state : public gsword_state_base
-{
-public:
- gsword_state(const machine_config &mconfig, device_type type, const char *tag)
- : gsword_state_base(mconfig, type, tag)
- , m_soundlatch(*this, "soundlatch")
- , m_msm(*this, "msm")
- , m_dsw0(*this, "DSW0")
- , m_protect_hack(false)
- , m_nmi_enable(false)
- , m_tclk_val(false)
- , m_mcu1_p1(0xff)
- , m_mcu2_p1(0xff)
- {
- }
-
- void init_gsword();
- void init_gsword2();
-
- void gsword(machine_config &config);
-
-protected:
- u8 hack_r(offs_t offset);
- void nmi_set_w(u8 data);
- void sound_command_w(u8 data);
- void adpcm_data_w(u8 data);
- u8 mcu2_p1_r();
- void mcu3_p2_w(u8 data);
-
- INTERRUPT_GEN_MEMBER(sound_interrupt);
-
- void gsword_palette(palette_device &palette) const;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void cpu1_io_map(address_map &map);
- void cpu2_io_map(address_map &map);
- void cpu2_map(address_map &map);
- void cpu3_map(address_map &map);
-
-private:
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<msm5205_device> m_msm;
- required_ioport m_dsw0;
-
- bool m_protect_hack;
- bool m_nmi_enable;
- bool m_tclk_val;
- uint8_t m_mcu1_p1, m_mcu2_p1;
-};
-
-
-class josvolly_state : public gsword_state_base
-{
-public:
- josvolly_state(const machine_config &mconfig, device_type type, const char *tag)
- : gsword_state_base(mconfig, type, tag)
- , m_cpu2_nmi_enable(false)
- , m_mcu1_p1(0xffU)
- , m_mcu1_p2(0xffU)
- , m_mcu2_p1(0xffU)
- {
- }
-
- void josvolly(machine_config &config);
-
-protected:
- u8 mcu1_p1_r();
- u8 mcu1_p2_r();
- u8 mcu2_p1_r();
- u8 mcu2_p2_r();
-
- void cpu2_nmi_enable_w(u8 data);
- void cpu2_irq_clear_w(u8 data);
- void mcu1_p1_w(u8 data);
- void mcu1_p2_w(u8 data);
- void mcu2_p1_w(u8 data);
- void mcu2_p2_w(u8 data);
-
- void josvolly_palette(palette_device &palette) const;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void josvolly_cpu1_io_map(address_map &map);
- void josvolly_cpu2_io_map(address_map &map);
- void josvolly_cpu2_map(address_map &map);
-
-private:
- bool m_cpu2_nmi_enable;
- u8 m_mcu1_p1;
- u8 m_mcu1_p2;
- u8 m_mcu2_p1;
-};
-
-#endif // MAME_INCLUDES_GSWORD_H
diff --git a/src/mame/includes/gumbo.h b/src/mame/includes/gumbo.h
deleted file mode 100644
index 5d546b23d59..00000000000
--- a/src/mame/includes/gumbo.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-/*************************************************************************
-
- Gumbo - Miss Bingo - Miss Puzzle
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GUMBO_H
-#define MAME_INCLUDES_GUMBO_H
-
-#pragma once
-
-#include "tilemap.h"
-
-class gumbo_state : public driver_device
-{
-public:
- gumbo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bg_videoram(*this, "bg_videoram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode")
- { }
-
- void mspuzzle(machine_config &config);
- void dblpoint(machine_config &config);
- void gumbo(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_bg_videoram;
- required_shared_ptr<uint16_t> m_fg_videoram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
-
- void gumbo_bg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gumbo_fg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_gumbo_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_gumbo_fg_tile_info);
- uint32_t screen_update_gumbo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void dblpoint_map(address_map &map);
- void gumbo_map(address_map &map);
- void mspuzzle_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GUMBO_H
diff --git a/src/mame/includes/gunbustr.h b/src/mame/includes/gunbustr.h
deleted file mode 100644
index d5f7f92314f..00000000000
--- a/src/mame/includes/gunbustr.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, David Graves
-#ifndef MAME_INCLUDES_GUNBUSTR_H
-#define MAME_INCLUDES_GUNBUSTR_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "video/tc0480scp.h"
-#include "emupal.h"
-
-struct gb_tempsprite
-{
- int gfx;
- int code,color;
- int flipx,flipy;
- int x,y;
- int zoomx,zoomy;
- int primask;
-};
-
-class gunbustr_state : public driver_device
-{
-public:
- gunbustr_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_tc0480scp(*this, "tc0480scp"),
- m_ram(*this,"ram"),
- m_spriteram(*this,"spriteram"),
- m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spritemap(*this, "spritemap"),
- m_io_light_x(*this, "LIGHT%u_X", 0U),
- m_io_light_y(*this, "LIGHT%u_Y", 0U)
- {
- m_coin_lockout = true;
- }
-
- void gunbustr(machine_config &config);
-
- void init_gunbustrj();
- void init_gunbustr();
-
-private:
- enum
- {
- TIMER_GUNBUSTR_INTERRUPT5
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<tc0480scp_device> m_tc0480scp;
- required_shared_ptr<u32> m_ram;
- required_shared_ptr<u32> m_spriteram;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_region_ptr<u16> m_spritemap;
-
- required_ioport_array<2> m_io_light_x;
- required_ioport_array<2> m_io_light_y;
-
- bool m_coin_lockout;
- std::unique_ptr<gb_tempsprite[]> m_spritelist;
- emu_timer *m_interrupt5_timer;
-
- void motor_control_w(u32 data);
- u32 gun_r();
- void gun_w(u32 data);
- u32 main_cycle_r();
- void coin_word_w(u8 data);
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(gunbustr_interrupt);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,const u32 *primasks,int x_offs,int y_offs);
-
- void gunbustr_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_GUNBUSTR_H
diff --git a/src/mame/includes/gundealr.h b/src/mame/includes/gundealr.h
deleted file mode 100644
index a3db8a416af..00000000000
--- a/src/mame/includes/gundealr.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Gun Dealer
-
-*************************************************************************/
-
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class gundealr_state : public driver_device
-{
-public:
- gundealr_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_paletteram(*this, "paletteram")
- , m_bg_videoram(*this, "bg_videoram")
- , m_fg_videoram(*this, "fg_videoram")
- , m_rambase(*this, "rambase")
- , m_mainbank(*this, "mainbank")
- , m_port_in(*this, "IN%u", 0)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- { }
-
- void gundealr(machine_config &config);
- void gundealrbl(machine_config &config);
- void yamyam(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_paletteram;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_rambase;
-
- required_memory_bank m_mainbank;
- optional_ioport_array<3> m_port_in;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_scroll[4];
-
- /* misc */
- int m_input_ports_hack;
- void bankswitch_w(uint8_t data);
- void bg_videoram_w(offs_t offset, uint8_t data);
- void fg_videoram_w(offs_t offset, uint8_t data);
- void paletteram_w(offs_t offset, uint8_t data);
- template<int Xor> void fg_scroll_w(offs_t offset, uint8_t data);
- template<int Bit> void flipscreen_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILEMAP_MAPPER_MEMBER(pagescan);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
- TIMER_DEVICE_CALLBACK_MEMBER(yamyam_mcu_sim);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void base_map(address_map &map);
- void gundealr_main_map(address_map &map);
- void main_portmap(address_map &map);
- void yamyam_main_map(address_map &map);
-};
diff --git a/src/mame/includes/gunsmoke.h b/src/mame/includes/gunsmoke.h
deleted file mode 100644
index b60afac9373..00000000000
--- a/src/mame/includes/gunsmoke.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Leaman
-/*************************************************************************
-
- Gun.Smoke
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GUNSMOKE_H
-#define MAME_INCLUDES_GUNSMOKE_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class gunsmoke_state : public driver_device
-{
-public:
- gunsmoke_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_scrollx(*this, "scrollx"),
- m_scrolly(*this, "scrolly"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void gunsmoke(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_scrollx;
- required_shared_ptr<uint8_t> m_scrolly;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_chon;
- uint8_t m_objon;
- uint8_t m_bgon;
- uint8_t m_sprite3bank;
- uint8_t gunsmoke_protection_r(offs_t offset);
- void gunsmoke_videoram_w(offs_t offset, uint8_t data);
- void gunsmoke_colorram_w(offs_t offset, uint8_t data);
- void gunsmoke_c804_w(uint8_t data);
- void gunsmoke_d806_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void gunsmoke_palette(palette_device &palette) const;
- uint32_t screen_update_gunsmoke(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void gunsmoke_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GUNSMOKE_H
diff --git a/src/mame/includes/gyruss.h b/src/mame/includes/gyruss.h
deleted file mode 100644
index a25b078708b..00000000000
--- a/src/mame/includes/gyruss.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Couriersud
-/*************************************************************************
-
- Gyruss
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_GYRUSS_H
-#define MAME_INCLUDES_GYRUSS_H
-
-#pragma once
-
-#include "cpu/mcs48/mcs48.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class gyruss_state : public driver_device
-{
-public:
- gyruss_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_audiocpu(*this, "audiocpu"),
- m_audiocpu_2(*this, "audio2"),
- m_discrete(*this, "discrete"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void gyruss(machine_config &config);
-
- void init_gyruss();
-
-private:
- /* devices/memory pointers */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- required_device<i8039_device> m_audiocpu_2;
- required_device<discrete_sound_device> m_discrete;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- tilemap_t *m_tilemap;
- uint8_t m_master_nmi_mask;
- uint8_t m_slave_irq_mask;
- bool m_flipscreen;
-
- void gyruss_irq_clear_w(uint8_t data);
- void gyruss_sh_irqtrigger_w(uint8_t data);
- void gyruss_i8039_irq_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(master_nmi_mask_w);
- void slave_irq_mask_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- void gyruss_spriteram_w(offs_t offset, uint8_t data);
- uint8_t gyruss_scanline_r();
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- uint8_t gyruss_portA_r();
- void gyruss_dac_w(uint8_t data);
- void gyruss_filter0_w(uint8_t data);
- void gyruss_filter1_w(uint8_t data);
- TILE_GET_INFO_MEMBER(gyruss_get_tile_info);
- virtual void machine_start() override;
- virtual void video_start() override;
- void gyruss_palette(palette_device &palette) const;
- uint32_t screen_update_gyruss(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void filter_w(int chip, int data );
- void audio_cpu1_io_map(address_map &map);
- void audio_cpu1_map(address_map &map);
- void audio_cpu2_io_map(address_map &map);
- void audio_cpu2_map(address_map &map);
- void main_cpu1_map(address_map &map);
- void main_cpu2_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_GYRUSS_H
diff --git a/src/mame/includes/hanaawas.h b/src/mame/includes/hanaawas.h
deleted file mode 100644
index 8c5ca328efa..00000000000
--- a/src/mame/includes/hanaawas.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/*************************************************************************
-
- Hana Awase
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_HANAAWAS_H
-#define MAME_INCLUDES_HANAAWAS_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class hanaawas_state : public driver_device
-{
-public:
- hanaawas_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode")
- { }
-
- void hanaawas(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* misc */
- int m_mux;
- uint8_t m_coin_settings;
- uint8_t m_coin_impulse;
- uint8_t hanaawas_input_port_0_r();
- void hanaawas_inputs_mux_w(uint8_t data);
- void hanaawas_videoram_w(offs_t offset, uint8_t data);
- void hanaawas_colorram_w(offs_t offset, uint8_t data);
- void key_matrix_status_w(uint8_t data);
- void irq_ack_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void hanaawas_palette(palette_device &palette) const;
- uint32_t screen_update_hanaawas(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void hanaawas_portB_w(uint8_t data);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- void hanaawas_map(address_map &map);
- void io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HANAAWAS_H
diff --git a/src/mame/includes/harddriv.h b/src/mame/includes/harddriv.h
deleted file mode 100644
index 1582020992b..00000000000
--- a/src/mame/includes/harddriv.h
+++ /dev/null
@@ -1,746 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Driver for Atari polygon racer games
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_HARDDRIV_H
-#define MAME_INCLUDES_HARDDRIV_H
-
-#pragma once
-
-#include "audio/atarijsa.h"
-#include "machine/slapstic.h"
-
-#include "bus/rs232/rs232.h"
-
-#include "cpu/adsp2100/adsp2100.h"
-#include "cpu/dsp32/dsp32.h"
-#include "cpu/m68000/m68000.h"
-#include "cpu/tms32010/tms32010.h"
-#include "cpu/tms34010/tms34010.h"
-
-#include "machine/74259.h"
-#include "machine/adc0808.h"
-#include "machine/asic65.h"
-#include "machine/eeprompar.h"
-#include "machine/mc68681.h"
-#include "machine/timekpr.h"
-#include "machine/timer.h"
-
-#include "sound/dac.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-#define HARDDRIV_MASTER_CLOCK XTAL(32'000'000)
-#define HARDDRIV_GSP_CLOCK XTAL(48'000'000)
-
-DECLARE_DEVICE_TYPE(HARDDRIV_BOARD, harddriv_board_device_state)
-DECLARE_DEVICE_TYPE(HARDDRIVC_BOARD, harddrivc_board_device_state)
-DECLARE_DEVICE_TYPE(RACEDRIV_BOARD, racedriv_board_device_state)
-DECLARE_DEVICE_TYPE(RACEDRIVB1_BOARD, racedrivb1_board_device_state)
-DECLARE_DEVICE_TYPE(RACEDRIVC_BOARD, racedrivc_board_device_state)
-DECLARE_DEVICE_TYPE(RACEDRIVC1_BOARD, racedrivc1_board_device_state)
-DECLARE_DEVICE_TYPE(RACEDRIVC_PANORAMA_SIDE_BOARD,racedrivc_panorama_side_board_device_state)
-DECLARE_DEVICE_TYPE(STUNRUN_BOARD, stunrun_board_device_state)
-DECLARE_DEVICE_TYPE(STEELTAL_BOARD, steeltal_board_device_state)
-DECLARE_DEVICE_TYPE(STEELTAL1_BOARD, steeltal1_board_device_state)
-DECLARE_DEVICE_TYPE(STEELTALP_BOARD, steeltalp_board_device_state)
-DECLARE_DEVICE_TYPE(STRTDRIV_BOARD, strtdriv_board_device_state)
-DECLARE_DEVICE_TYPE(HDRIVAIR_BOARD, hdrivair_board_device_state)
-DECLARE_DEVICE_TYPE(HDRIVAIRP_BOARD, hdrivairp_board_device_state)
-DECLARE_DEVICE_TYPE(HARDDRIV_SOUND_BOARD, harddriv_sound_board_device)
-
-
-class harddriv_state : public device_t
-{
-public:
- harddriv_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- void driver_msp(machine_config &config);
- void driver_nomsp(machine_config &config);
- void multisync_msp(machine_config &config);
- void multisync_nomsp(machine_config &config);
- void dsk(machine_config &config);
- void dsk2(machine_config &config);
- void ds3(machine_config &config);
- void multisync2(machine_config &config);
- void adsp(machine_config &config);
-
- void init_strtdriv(void);
-
- void init_harddriv(void);
-
- void init_harddrivc(void);
-
- void init_racedriv(void);
- void init_racedrivb1(void);
-
- void init_racedrivc(void);
- void init_racedrivc1(void);
-
- void init_hdrivair(void);
- void init_hdrivairp(void);
-
- void init_steeltal(void);
- void init_steeltal1(void);
- void init_steeltalp(void);
-
- void init_stunrun(void);
- void init_racedrivc_panorama_side();
-
- mc68681_device* get_duart() { return m_duartn68681; }
- screen_device* get_screen() { return m_screen; }
-
- DECLARE_WRITE_LINE_MEMBER(video_int_write_line);
- DECLARE_WRITE_LINE_MEMBER(sound_int_write_line);
-
-protected:
-
- void init_video();
- INTERRUPT_GEN_MEMBER(hd68k_irq_gen);
- TIMER_CALLBACK_MEMBER(deferred_adsp_bank_switch);
- TIMER_CALLBACK_MEMBER(rddsp32_sync_cb);
-
- /*----------- defined in machine/harddriv.cpp -----------*/
-
- /* Driver/Multisync board */
- void hd68k_irq_ack_w(uint16_t data);
-
- DECLARE_WRITE_LINE_MEMBER(harddriv_duart_irq_handler);
-
- uint16_t hd68k_gsp_io_r(offs_t offset);
- void hd68k_gsp_io_w(offs_t offset, uint16_t data);
-
- uint16_t hd68k_msp_io_r(offs_t offset);
- void hd68k_msp_io_w(offs_t offset, uint16_t data);
-
- uint16_t hd68k_a80000_r();
- uint16_t hd68k_port0_r();
- uint16_t hd68k_adc12_r();
- uint16_t hdc68k_port1_r();
- uint16_t hda68k_port1_r();
- uint16_t hdc68k_wheel_r();
- uint16_t hd68k_sound_reset_r();
-
- void hd68k_adc_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void hd68k_wr0_write(offs_t offset, uint16_t data);
- void hd68k_wr1_write(offs_t offset, uint16_t data);
- void hd68k_wr2_write(offs_t offset, uint16_t data);
- void hd68k_nwr_w(offs_t offset, uint16_t data);
- void hdc68k_wheel_edge_reset_w(uint16_t data);
-
- uint16_t hd68k_zram_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void hd68k_zram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void hdgsp_io_w(offs_t offset, u16 data, u16 mem_mask = ~u16(0));
-
- void hdgsp_protection_w(uint16_t data);
-
- DECLARE_WRITE_LINE_MEMBER( hdgsp_irq_gen );
- DECLARE_WRITE_LINE_MEMBER( hdmsp_irq_gen );
-
- /* ADSP board */
- uint16_t hd68k_adsp_program_r(offs_t offset);
- void hd68k_adsp_program_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t hd68k_adsp_data_r(offs_t offset);
- void hd68k_adsp_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t hd68k_adsp_buffer_r(offs_t offset);
- void hd68k_adsp_buffer_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void hd68k_adsp_control_w(offs_t offset, uint16_t data);
- void hd68k_adsp_irq_clear_w(uint16_t data);
- uint16_t hd68k_adsp_irq_state_r();
-
- uint16_t hdadsp_special_r(offs_t offset);
- void hdadsp_special_w(offs_t offset, uint16_t data);
-
- uint16_t steeltal_dummy_r();
- uint32_t rddsp_unmap_r();
-
- /* DS III/IV board */
- void hd68k_ds3_control_w(offs_t offset, uint16_t data);
- uint16_t hd68k_ds3_girq_state_r();
-
- uint16_t hd68k_ds3_gdata_r();
- void hd68k_ds3_gdata_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t hdds3_special_r(offs_t offset);
- void hdds3_special_w(offs_t offset, uint16_t data);
- uint16_t hdds3_control_r(offs_t offset);
- void hdds3_control_w(offs_t offset, uint16_t data);
-
- uint16_t hd68k_ds3_program_r(offs_t offset);
- void hd68k_ds3_program_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t hd68k_ds3_sdata_r();
- void hd68k_ds3_sdata_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void hd68k_ds3_sirq_clear_w(uint16_t data);
- uint16_t hd68k_ds3_sirq_state_r();
-
- uint16_t hdds3_sdsp_special_r(offs_t offset);
- void hdds3_sdsp_special_w(offs_t offset, uint16_t data);
-
- uint16_t hdds3_sdsp_control_r(offs_t offset);
- void hdds3_sdsp_control_w(offs_t offset, uint16_t data);
- uint16_t hdds3_xdsp_control_r(offs_t offset);
- void hdds3_xdsp_control_w(offs_t offset, uint16_t data);
-
- TIMER_CALLBACK_MEMBER( xsdp_sport1_irq_off_callback );
-
- uint16_t hdgsp_control_lo_r(offs_t offset);
- void hdgsp_control_lo_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t hdgsp_control_hi_r(offs_t offset);
- void hdgsp_control_hi_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t hdgsp_vram_2bpp_r();
- void hdgsp_vram_1bpp_w(offs_t offset, uint16_t data);
- void hdgsp_vram_2bpp_w(offs_t offset, uint16_t data);
-
- uint16_t hdgsp_paletteram_lo_r(offs_t offset);
- void hdgsp_paletteram_lo_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t hdgsp_paletteram_hi_r(offs_t offset);
- void hdgsp_paletteram_hi_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- /* DSK board */
- void hddsk_update_pif(uint32_t data);
-
- /* DS III/IV board */
- TIMER_DEVICE_CALLBACK_MEMBER( ds3sdsp_internal_timer_callback );
- TIMER_DEVICE_CALLBACK_MEMBER( ds3xdsp_internal_timer_callback );
-
- TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_driver);
- TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_multisync);
-
- /*----------- defined in video/harddriv.cpp -----------*/
-
- TMS340X0_TO_SHIFTREG_CB_MEMBER(hdgsp_write_to_shiftreg);
- TMS340X0_FROM_SHIFTREG_CB_MEMBER(hdgsp_read_from_shiftreg);
-
- /* DSK board */
- void hd68k_dsk_control_w(offs_t offset, uint16_t data);
- uint16_t hd68k_dsk_ram_r(offs_t offset);
- void hd68k_dsk_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t hd68k_dsk_small_rom_r(offs_t offset);
- uint16_t hd68k_dsk_rom_r(offs_t offset);
- void hd68k_dsk_dsp32_w(offs_t offset, uint16_t data);
- uint16_t hd68k_dsk_dsp32_r(offs_t offset);
- void rddsp32_sync0_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void rddsp32_sync1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- /* DSPCOM board */
- void hddspcom_control_w(offs_t offset, uint16_t data);
-
- /* Game-specific protection */
- void st68k_sloop_w(offs_t offset, uint16_t data);
- uint16_t st68k_sloop_r(offs_t offset);
- uint16_t st68k_sloop_alt_r(offs_t offset);
- void st68k_protosloop_w(offs_t offset, uint16_t data);
- uint16_t st68k_protosloop_r(offs_t offset);
-
- /* GSP optimizations */
- uint16_t hdgsp_speedup_r(offs_t offset);
- void hdgsp_speedup1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void hdgsp_speedup2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t rdgsp_speedup1_r(offs_t offset);
- void rdgsp_speedup1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- /* MSP optimizations */
- uint16_t hdmsp_speedup_r(offs_t offset);
- void hdmsp_speedup_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- /* ADSP optimizations */
- uint16_t hdadsp_speedup_r();
- uint16_t hdds3_speedup_r();
-
-
- DECLARE_WRITE_LINE_MEMBER(hdds3sdsp_timer_enable_callback);
- void hdds3sdsp_serial_tx_callback(uint32_t data);
- uint32_t hdds3sdsp_serial_rx_callback();
-
- DECLARE_WRITE_LINE_MEMBER(hdds3xdsp_timer_enable_callback);
- void hdds3xdsp_serial_tx_callback(uint32_t data);
- uint32_t hdds3xdsp_serial_rx_callback();
-
-
- void adsp_data_map(address_map &map);
- void adsp_program_map(address_map &map);
- void driver_68k_map(address_map &map);
- void driver_gsp_map(address_map &map);
- void driver_msp_map(address_map &map);
- void ds3_data_map(address_map &map);
- void ds3_program_map(address_map &map);
- void ds3sdsp_data_map(address_map &map);
- void ds3sdsp_program_map(address_map &map);
- void ds3xdsp_data_map(address_map &map);
- void ds3xdsp_program_map(address_map &map);
- void dsk2_dsp32_map(address_map &map);
- void dsk_dsp32_map(address_map &map);
- void multisync2_68k_map(address_map &map);
- void multisync2_gsp_map(address_map &map);
- void multisync_68k_map(address_map &map);
- void multisync_gsp_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<tms34010_device> m_gsp;
- optional_device<tms34010_device> m_msp;
- required_device<adsp21xx_device> m_adsp;
- optional_device<cpu_device> m_jsacpu;
- optional_device<dsp32c_device> m_dsp32;
- optional_device<adsp2105_device> m_ds3sdsp;
- optional_device<adsp2105_device> m_ds3xdsp;
- optional_memory_region m_ds3sdsp_region;
- optional_memory_region m_ds3xdsp_region;
- optional_device<dac_word_interface> m_ldac;
- optional_device<dac_word_interface> m_rdac;
- optional_device<harddriv_sound_board_device> m_harddriv_sound;
- optional_device<atari_jsa_base_device> m_jsa;
- optional_device<screen_device> m_screen;
- optional_device<mc68681_device> m_duartn68681;
- required_device<adc0808_device> m_adc8;
- output_finder<2> m_lamps;
-
- uint8_t m_hd34010_host_access;
-
- optional_shared_ptr<uint16_t> m_msp_ram;
-
- uint16_t * m_dsk_ram;
- uint16_t * m_dsk_rom;
- optional_device<eeprom_parallel_28xx_device> m_dsk_10c;
- optional_device<eeprom_parallel_28xx_device> m_dsk_30c;
- uint8_t m_dsk_pio_access;
-
- uint16_t * m_m68k_sloop_base;
- uint16_t * m_m68k_sloop_alt_base;
-
- required_device<timekeeper_device> m_200e;
- required_device<eeprom_parallel_28xx_device> m_210e;
-
- optional_shared_ptr<uint16_t> m_adsp_data_memory;
- optional_shared_ptr<uint32_t> m_adsp_pgm_memory;
-
- optional_shared_ptr<uint16_t> m_ds3sdsp_data_memory;
- optional_shared_ptr<uint32_t> m_ds3sdsp_pgm_memory;
- optional_shared_ptr<uint32_t> m_ds3xdsp_pgm_memory;
-
- optional_shared_ptr<uint32_t> m_dsp32_ram;
-
- uint16_t * m_gsp_protection;
-
- uint16_t * m_gsp_speedup_addr[2];
- offs_t m_gsp_speedup_pc;
-
- uint16_t * m_msp_speedup_addr;
- offs_t m_msp_speedup_pc;
-
- uint16_t * m_ds3_speedup_addr;
- offs_t m_ds3_speedup_pc;
- offs_t m_ds3_transfer_pc;
-
- uint32_t * m_rddsp32_sync[2];
-
- uint32_t m_gsp_speedup_count[4];
- uint32_t m_msp_speedup_count[4];
- uint32_t m_adsp_speedup_count[4];
-
- uint8_t m_gsp_multisync;
- optional_shared_ptr<uint16_t> m_gsp_vram;
- optional_shared_ptr<uint16_t> m_gsp_control_lo;
- optional_shared_ptr<uint16_t> m_gsp_control_hi;
- memory_share_creator<uint16_t> m_gsp_paletteram_lo;
- memory_share_creator<uint16_t> m_gsp_paletteram_hi;
-
- required_ioport m_in0;
- optional_ioport m_sw1;
- required_ioport m_a80000;
- optional_ioport_array<4> m_12badc;
-
- /* machine state */
- uint8_t m_irq_state;
- uint8_t m_gsp_irq_state;
- uint8_t m_msp_irq_state;
- uint8_t m_adsp_irq_state;
- uint8_t m_ds3sdsp_irq_state;
- uint8_t m_duart_irq_state;
-
- uint8_t m_last_gsp_shiftreg;
-
- uint8_t m_m68k_zp1;
- uint8_t m_m68k_zp2;
- uint8_t m_m68k_adsp_buffer_bank;
-
- uint8_t m_adsp_halt;
- uint8_t m_adsp_br;
- uint8_t m_adsp_xflag;
- uint16_t m_adsp_sim_address;
- uint16_t m_adsp_som_address;
- uint32_t m_adsp_eprom_base;
-
- required_region_ptr<uint16_t> m_sim_memory;
- uint16_t m_som_memory[0x8000/2];
- uint16_t * m_adsp_pgm_memory_word;
-
- uint16_t * m_ds3_sdata_memory;
- uint32_t m_ds3_sdata_memory_size;
-
- uint8_t m_ds3_gcmd;
- uint8_t m_ds3_gflag;
- uint8_t m_ds3_g68irqs;
- uint8_t m_ds3_gfirqs;
- uint8_t m_ds3_g68flag;
- uint8_t m_ds3_send;
- uint8_t m_ds3_reset;
- uint16_t m_ds3_gdata;
- uint16_t m_ds3_g68data;
- uint32_t m_ds3_sim_address;
-
- uint8_t m_ds3_scmd;
- uint8_t m_ds3_sflag;
- uint8_t m_ds3_s68irqs;
- uint8_t m_ds3_sfirqs;
- uint8_t m_ds3_s68flag;
- uint8_t m_ds3_sreset;
- uint16_t m_ds3_sdata;
- uint16_t m_ds3_s68data;
- uint32_t m_ds3_sdata_address;
- uint16_t m_ds3sdsp_regs[32];
- uint16_t m_ds3sdsp_timer_en;
- uint16_t m_ds3sdsp_sdata;
- optional_device<timer_device> m_ds3sdsp_internal_timer;
-
- uint16_t m_ds3xdsp_regs[32];
- uint16_t m_ds3xdsp_timer_en;
- uint16_t m_ds3xdsp_sdata;
- optional_device<timer_device> m_ds3xdsp_internal_timer;
-
- uint16_t m_adc_control;
- uint8_t m_adc12_select;
- uint8_t m_adc12_byte;
- uint16_t m_adc12_data;
-
- uint16_t m_hdc68k_last_wheel;
- uint16_t m_hdc68k_last_port1;
- uint8_t m_hdc68k_wheel_edge;
- uint8_t m_hdc68k_shifter_state;
-
- uint8_t m_st68k_sloop_bank;
- offs_t m_st68k_last_alt_sloop_offset;
-
- uint8_t m_sel_select;
- uint8_t m_sel1_data;
- uint8_t m_sel2_data;
- uint8_t m_sel3_data;
- uint8_t m_sel4_data;
-
- #define MAX_MSP_SYNC 16
- uint32_t * m_dataptr[MAX_MSP_SYNC];
- uint32_t m_dataval[MAX_MSP_SYNC];
- int m_next_msp_sync;
-
- /* video state */
- offs_t m_vram_mask;
-
- uint8_t m_shiftreg_enable;
-
- uint32_t m_mask_table[65536 * 4];
- uint16_t * m_gsp_shiftreg_source;
-
- int8_t m_gfx_finescroll;
- uint8_t m_gfx_palettebank;
- virtual void update_interrupts();
- void init_driver();
- void init_multisync(int compact_inputs);
- void init_adsp();
- void init_ds3();
- void init_dsk();
- void init_dsk2();
- void init_dspcom();
- void init_driver_sound();
- void racedrivc_init_common(offs_t gsp_protection);
- void steeltal_init_common(offs_t ds3_transfer_pc, int proto_sloop);
-
- required_device<mc68681_device> m_duart;
- optional_device<asic65_device> m_asic65;
-
- /* DS III/IV board */
- void update_ds3_irq();
- void update_ds3_sirq();
-
- void hdds3sdsp_reset_timer();
- void hdds3xdsp_reset_timer();
-
- /* Game-specific protection */
- int st68k_sloop_tweak(offs_t offset);
- int st68k_protosloop_tweak(offs_t offset);
-
- /*----------- defined in video/harddriv.c -----------*/
-
- void update_palette_bank(int newbank);
-
- inline void gsp_palette_change(int offset);
-
- uint8_t m_sound_int_state;
- uint8_t m_video_int_state;
-
- optional_device<palette_device> m_palette;
- int get_hblank(screen_device &screen) const { return (screen.hpos() > (screen.width() * 9 / 10)); }
- optional_device<atari_slapstic_device> m_slapstic;
- memory_bank_creator m_slapstic_bank;
-
- optional_device<rs232_port_device> m_rs232;
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-};
-
-class harddriv_sound_board_device : public device_t
-{
-public:
- // construction/destruction
- harddriv_sound_board_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- ~harddriv_sound_board_device() {}
-
- uint16_t hd68k_snd_data_r();
- uint16_t hd68k_snd_status_r();
- void hd68k_snd_data_w(uint16_t data);
- void hd68k_snd_reset_w(uint16_t data);
-
-private:
- uint16_t hdsnd68k_data_r();
- void hdsnd68k_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t hdsnd68k_switches_r(offs_t offset);
- uint16_t hdsnd68k_320port_r(offs_t offset);
- uint16_t hdsnd68k_status_r();
- void hdsnd68k_latches_w(offs_t offset, uint16_t data);
- DECLARE_WRITE_LINE_MEMBER(speech_write_w);
- DECLARE_WRITE_LINE_MEMBER(speech_reset_w);
- DECLARE_WRITE_LINE_MEMBER(speech_rate_w);
- DECLARE_WRITE_LINE_MEMBER(cram_enable_w);
- DECLARE_WRITE_LINE_MEMBER(led_w);
- void hdsnd68k_speech_w(offs_t offset, uint16_t data);
- void hdsnd68k_irqclr_w(uint16_t data);
- uint16_t hdsnd68k_320ram_r(offs_t offset);
- void hdsnd68k_320ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t hdsnd68k_320ports_r(offs_t offset);
- void hdsnd68k_320ports_w(offs_t offset, uint16_t data);
- uint16_t hdsnd68k_320com_r(offs_t offset);
- void hdsnd68k_320com_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void hdsnddsp_dac_w(uint16_t data);
- void hdsnddsp_comport_w(uint16_t data);
- void hdsnddsp_mute_w(uint16_t data);
- void hdsnddsp_gen68kirq_w(uint16_t data);
- void hdsnddsp_soundaddr_w(offs_t offset, uint16_t data);
- uint16_t hdsnddsp_rom_r();
- uint16_t hdsnddsp_comram_r();
- uint16_t hdsnddsp_compare_r(offs_t offset);
-
- void driversnd_68k_map(address_map &map);
- void driversnd_dsp_io_map(address_map &map);
- void driversnd_dsp_program_map(address_map &map);
-
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_add_mconfig(machine_config &config) override;
-
- required_device<cpu_device> m_soundcpu;
- required_device<ls259_device> m_latch;
- required_device<dac_word_interface> m_dac;
- required_device<tms32010_device> m_sounddsp;
- required_shared_ptr<uint16_t> m_sounddsp_ram;
- required_region_ptr<uint8_t> m_sound_rom;
-
- uint8_t m_soundflag;
- uint8_t m_mainflag;
- uint16_t m_sounddata;
- uint16_t m_maindata;
-
- uint8_t m_cramen;
- uint8_t m_irq68k;
-
- offs_t m_sound_rom_offs;
-
- uint16_t m_comram[0x400/2];
- uint64_t m_last_bio_cycles;
-
- void update_68k_interrupts();
- TIMER_CALLBACK_MEMBER( delayed_68k_w );
-
- DECLARE_READ_LINE_MEMBER(hdsnddsp_get_bio);
-};
-
-/* Hard Drivin' */
-
-class harddriv_board_device_state : public harddriv_state
-{
-public:
- harddriv_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-// virtual void device_reset();
-};
-
-/* Hard Drivin' Compact */
-
-class harddrivc_board_device_state : public harddriv_state
-{
-public:
- harddrivc_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-// virtual void device_reset();
-};
-
-/* Race Drivin' */
-
-class racedriv_board_device_state : public harddriv_state
-{
-public:
- racedriv_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- racedriv_board_device_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-// virtual void device_reset();
-};
-
-class racedrivb1_board_device_state : public racedriv_board_device_state
-{
-public:
- racedrivb1_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_start() override;
-};
-
-/* Race Drivin' Compact */
-
-class racedrivc_board_device_state : public harddriv_state
-{
-public:
- racedrivc_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- racedrivc_board_device_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-// virtual void device_reset();
-};
-
-class racedrivc1_board_device_state : public racedrivc_board_device_state
-{
-public:
- racedrivc1_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_start() override;
-};
-
-class racedrivc_panorama_side_board_device_state : public racedrivc_board_device_state
-{
-public:
- racedrivc_panorama_side_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-};
-
-
-/* Stun Runner */
-
-class stunrun_board_device_state : public harddriv_state
-{
-public:
- stunrun_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-// virtual void device_reset();
-};
-
-/* Steel Talons */
-
-class steeltal_board_device_state : public harddriv_state
-{
-public:
- steeltal_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- steeltal_board_device_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-// virtual void device_reset();
-};
-
-class steeltal1_board_device_state : public steeltal_board_device_state
-{
-public:
- steeltal1_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_start() override;
-};
-
-class steeltalp_board_device_state : public steeltal_board_device_state
-{
-public:
- steeltalp_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_start() override;
-};
-
-
-
-/* Street Drivin' */
-
-class strtdriv_board_device_state : public harddriv_state
-{
-public:
- strtdriv_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-// virtual void device_reset();
-};
-
-/* Hard Drivin' Airbourne */
-
-class hdrivair_board_device_state : public harddriv_state
-{
-public:
- hdrivair_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- hdrivair_board_device_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-// virtual void device_reset();
-};
-
-class hdrivairp_board_device_state : public hdrivair_board_device_state
-{
-public:
- hdrivairp_board_device_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-protected:
- virtual void device_start() override;
-};
-
-#endif // MAME_INCLUDES_HARDDRIV_H
diff --git a/src/mame/includes/hcastle.h b/src/mame/includes/hcastle.h
deleted file mode 100644
index f4c47e41b25..00000000000
--- a/src/mame/includes/hcastle.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Haunted Castle
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_HCASTLE_H
-#define MAME_INCLUDES_HCASTLE_H
-
-#pragma once
-
-#include "video/bufsprite.h"
-#include "sound/k007232.h"
-#include "video/k007121.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class hcastle_state : public driver_device
-{
-public:
- hcastle_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2") ,
- m_pf1_videoram(*this, "pf1_videoram"),
- m_pf2_videoram(*this, "pf2_videoram"),
- m_audiocpu(*this, "audiocpu"),
- m_k007121_1(*this, "k007121_1"),
- m_k007121_2(*this, "k007121_2"),
- m_k007232(*this, "k007232"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void hcastle(machine_config &config);
-
-private:
- required_device<buffered_spriteram8_device> m_spriteram;
- required_device<buffered_spriteram8_device> m_spriteram2;
- /* memory pointers */
- required_shared_ptr<uint8_t> m_pf1_videoram;
- required_shared_ptr<uint8_t> m_pf2_videoram;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_pf2_bankbase;
- int m_pf1_bankbase;
- int m_old_pf1;
- int m_old_pf2;
- int m_gfx_bank;
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<k007121_device> m_k007121_1;
- required_device<k007121_device> m_k007121_2;
- required_device<k007232_device> m_k007232;
-
- void hcastle_bankswitch_w(uint8_t data);
- void hcastle_soundirq_w(uint8_t data);
- void hcastle_coin_w(uint8_t data);
- void hcastle_pf1_video_w(offs_t offset, uint8_t data);
- void hcastle_pf2_video_w(offs_t offset, uint8_t data);
- void hcastle_gfxbank_w(uint8_t data);
- uint8_t hcastle_gfxbank_r();
- void hcastle_pf1_control_w(offs_t offset, uint8_t data);
- void hcastle_pf2_control_w(offs_t offset, uint8_t data);
- void sound_bank_w(uint8_t data);
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void hcastle_palette(palette_device &palette) const;
- uint32_t screen_update_hcastle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, uint8_t *sbank, int bank );
- void volume_callback(uint8_t data);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void hcastle_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HCASTLE_H
diff --git a/src/mame/includes/hec2hrp.h b/src/mame/includes/hec2hrp.h
deleted file mode 100644
index 1642a6b16e6..00000000000
--- a/src/mame/includes/hec2hrp.h
+++ /dev/null
@@ -1,213 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:JJ Stacino
-/////////////////////////////////////////////////////////////////////
-////// HECTOR HEADER FILE /////////////////////////////////////////
-/////////////////////////////////////////////////////////////////////
-
-#ifndef MAME_INCLUDES_HEC2HRP_H
-#define MAME_INCLUDES_HEC2HRP_H
-
-#pragma once
-
-#include "imagedev/floppy.h"
-#include "imagedev/cassette.h"
-#include "imagedev/printer.h"
-#include "machine/upd765.h"
-#include "machine/wd_fdc.h"
-#include "machine/ram.h"
-#include "sound/discrete.h" /* for 1 Bit sound*/
-#include "sound/sn76477.h" /* for sn sound*/
-#include "emupal.h"
-
-/* Enum status for high memory bank (c000 - ffff)*/
-enum
-{
- HECTOR_BANK_PROG = 0, /* first BANK is program ram*/
- HECTOR_BANK_VIDEO /* second BANK is Video ram */
-};
-/* Status for rom memory bank (0000 - 3fff) in MX machine*/
-enum
-{
- HECTORMX_BANK_PAGE0 = 0, /* first BANK is base rom*/
- HECTORMX_BANK_PAGE1, /* second BANK is basic rom */
- HECTORMX_BANK_PAGE2 /* 3 BANK is monitrix / assemblex rom */
-};
-/* Status for rom memory bank (0000 - 3fff) in Mini Disc machine*/
-enum
-{
- HECTOR_BANK_BASE = 0, /* first BANK is normal rom*/
- HECTOR_BANK_DISC /* second BANK is extra rom for mini disc use*/
-};
-/* Enum status for low memory bank (00000 - 0fff) for DISC II*/
-enum
-{
- DISCII_BANK_RAM = 0, /* first BANK is program ram*/
- DISCII_BANK_ROM /* second BANK is ROM */
-};
-
-class hec2hrp_state : public driver_device
-{
-public:
- hec2hrp_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_cassette(*this, "cassette")
- , m_printer(*this, "printer")
- , m_palette(*this, "palette")
- , m_vram(*this,"videoram")
- , m_bank(*this, "bank%u", 0U)
- , m_rom(*this, "maincpu")
- , m_ram(*this, RAM_TAG)
- , m_hector_vram(*this,"hector_videoram", 0x4000, ENDIANNESS_LITTLE)
- , m_disc2cpu(*this, "disc2cpu")
- , m_discrete(*this, "discrete")
- , m_sn(*this, "sn76477")
- , m_keyboard(*this, "KEY.%u", 0)
- , m_minidisc_fdc(*this, "wd179x")
- , m_floppy0(*this, "wd179x:0")
- , m_upd_fdc(*this, "upd765")
- , m_upd_connector(*this, "upd765:%u", 0U)
- {}
-
- void hec2mx80(machine_config &config);
- void hec2hrp(machine_config &config);
- void hec2hrx(machine_config &config);
- void hec2mx40(machine_config &config);
- void hec2mdhrx(machine_config &config);
- void hec2hr(machine_config &config);
- void hector_audio(machine_config &config);
-
- void init_mx40();
- void init_mdhrx();
- void init_victor();
- void init_hrx();
- void init_interact();
- void hector1(machine_config &config);
- void interact(machine_config &config);
- void interact_common(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- void hector_hr(bitmap_ind16 &bitmap, uint8_t *page, int ymax, int yram);
- void hector_reset(bool hr, bool with_d2);
- void keyboard_w(uint8_t data);
- uint8_t keyboard_r(offs_t offset);
- void sn_2000_w(offs_t offset, uint8_t data);
- void sn_2800_w(offs_t offset, uint8_t data);
- uint8_t cassette_r();
- void sn_3000_w(uint8_t data);
- void color_a_w(uint8_t data);
- void color_b_w(uint8_t data);
- bool m_has_disc2;
- bool m_has_minidisc;
- bool m_is_hr;
- bool m_is_extended;
- void init_palette(palette_device &);
- void hector_init();
- void minidisc_control_w(uint8_t data);
- void switch_bank_w(offs_t offset, uint8_t data);
- uint8_t io_8255_r(offs_t offset);
- void io_8255_w(offs_t offset, uint8_t data);
- void mx40_io_port_w(offs_t offset, uint8_t data);
- void mx80_io_port_w(offs_t offset, uint8_t data);
-
- // disc2 handling
- uint8_t disc2_io00_port_r();
- void disc2_io00_port_w(uint8_t data);
- uint8_t disc2_io20_port_r();
- void disc2_io20_port_w(uint8_t data);
- uint8_t disc2_io30_port_r();
- void disc2_io30_port_w(uint8_t data);
- uint8_t disc2_io40_port_r();
- void disc2_io40_port_w(uint8_t data);
- uint8_t disc2_io50_port_r();
- void disc2_io50_port_w(uint8_t data);
-
- static void minidisc_formats(format_registration &fr);
-
- bool m_hector_flag_hr;
- bool m_hector_flag_80c;
- uint8_t m_hector_color[4];
- uint8_t m_hector_disc2_data_r_ready;
- uint8_t m_hector_disc2_data_w_ready;
- uint8_t m_hector_disc2_data_read;
- uint8_t m_hector_disc2_data_write;
- bool m_hector_disc2_rnmi;
- uint8_t m_state3000;
- bool m_write_cassette;
- emu_timer *m_cassette_timer;
- uint8_t m_ck_signal;
- bool m_flag_clk;
- double m_pin_value[29][2];
- u8 m_au[17];
- u8 m_val_mixer;
- u8 m_oldstate3000;
- u8 m_oldstate1000;
- uint8_t m_pot0;
- uint8_t m_pot1;
- uint8_t m_actions;
- uint8_t m_hector_port_a;
- uint8_t m_hector_port_b;
- uint8_t m_hector_port_c_h;
- uint8_t m_hector_port_c_l;
- uint8_t m_hector_port_cmd;
- bool m_cassette_bit;
- bool m_cassette_bit_mem;
- uint8_t m_data_k7;
- int m_counter_write;
- bool m_irq_current_state;
- bool m_nmi_current_state;
-
- DECLARE_MACHINE_RESET(interact);
- DECLARE_MACHINE_START(hec2hrp);
- DECLARE_MACHINE_RESET(hec2hrp);
- DECLARE_MACHINE_START(hec2hrx);
- DECLARE_MACHINE_RESET(hec2hrx);
- DECLARE_MACHINE_START(hec2mdhrx);
- DECLARE_MACHINE_RESET(hec2mdhrx);
- uint32_t screen_update_hec2hrp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(cassette_clock);
-
- DECLARE_WRITE_LINE_MEMBER( disc2_fdc_interrupt );
- DECLARE_WRITE_LINE_MEMBER( disc2_fdc_dma_irq );
-
- void update_state(int Adresse, int Value );
- void init_sn76477();
- void update_sound(uint8_t data);
- void hector_80c(bitmap_ind16 &bitmap, uint8_t *page, int ymax, int yram);
- void hector_disc2_reset();
- uint32_t screen_update_interact(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void interact_mem(address_map &map);
-
- void hec2hrp_io(address_map &map);
- void hec2hrp_mem(address_map &map);
- void hec2hrx_io(address_map &map);
- void hec2hrx_mem(address_map &map);
- void hec2mdhrx_io(address_map &map);
- void hec2mx40_io(address_map &map);
- void hec2mx80_io(address_map &map);
- void hecdisc2_io(address_map &map);
- void hecdisc2_mem(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- optional_device<printer_image_device> m_printer;
- required_device<palette_device> m_palette;
- optional_shared_ptr<uint8_t> m_vram;
- optional_memory_bank_array<4> m_bank;
- required_region_ptr<u8> m_rom;
- optional_device<ram_device> m_ram;
- memory_share_creator<uint8_t> m_hector_vram;
- optional_device<cpu_device> m_disc2cpu;
- required_device<discrete_device> m_discrete;
- required_device<sn76477_device> m_sn;
- required_ioport_array<9> m_keyboard;
- optional_device<fd1793_device> m_minidisc_fdc;
- optional_device<floppy_connector> m_floppy0;
- optional_device<upd765a_device> m_upd_fdc;
- optional_device_array<floppy_connector, 2> m_upd_connector;
-};
-
-#endif // MAME_INCLUDES_HEC2HRP_H
diff --git a/src/mame/includes/hexion.h b/src/mame/includes/hexion.h
deleted file mode 100644
index 63bead0f64c..00000000000
--- a/src/mame/includes/hexion.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_HEXION_H
-#define MAME_INCLUDES_HEXION_H
-
-#pragma once
-
-#include "machine/k053252.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class hexion_state : public driver_device
-{
-public:
- hexion_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_k053252(*this, "k053252"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void hexion(machine_config &config);
- void hexionb(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<k053252_device> m_k053252;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- uint8_t *m_vram[2];
- uint8_t *m_unkram;
- int m_bankctrl;
- int m_rambank;
- int m_pmcbank;
- int m_gfxrom_select;
- int m_ccu_int_time;
- int m_ccu_int_time_count;
- tilemap_t *m_bg_tilemap[2];
-
- void coincntr_w(uint8_t data);
- void bankswitch_w(uint8_t data);
- uint8_t bankedram_r(offs_t offset);
- void bankedram_w(offs_t offset, uint8_t data);
- void bankctrl_w(uint8_t data);
- void gfxrom_select_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(irq_ack_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_ack_w);
- void ccu_int_time_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info0);
- TILE_GET_INFO_MEMBER(get_tile_info1);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline void get_tile_info(tile_data &tileinfo,int tile_index,uint8_t *ram);
- void hexion_map(address_map &map);
- void hexionb_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HEXION_H
diff --git a/src/mame/includes/hh_sm510.h b/src/mame/includes/hh_sm510.h
deleted file mode 100644
index 37b56c338f2..00000000000
--- a/src/mame/includes/hh_sm510.h
+++ /dev/null
@@ -1,109 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:hap
-/*
-
- Sharp SM5xx family handhelds.
-
-*/
-
-#ifndef MAME_INCLUDES_HH_SM510_H
-#define MAME_INCLUDES_HH_SM510_H
-
-#include "cpu/sm510/sm510.h"
-#include "sound/spkrdev.h"
-
-
-class hh_sm510_state : public driver_device
-{
-public:
- hh_sm510_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_speaker(*this, "speaker"),
- m_inputs(*this, "IN.%u", 0),
- m_io_ba(*this, "BA"),
- m_io_b(*this, "B"),
- m_out_x(*this, "%u.%u.%u", 0U, 0U, 0U),
- m_inp_lines(0),
- m_inp_fixed(-1),
- m_decay_pivot(8),
- m_decay_len(17)
- { }
-
- virtual DECLARE_INPUT_CHANGED_MEMBER(input_changed);
- virtual DECLARE_INPUT_CHANGED_MEMBER(acl_button);
-
-protected:
- // devices
- required_device<sm510_base_device> m_maincpu;
- optional_device<speaker_sound_device> m_speaker;
- optional_ioport_array<8+1> m_inputs; // max 8
- optional_ioport m_io_ba, m_io_b;
- output_finder<16, 16, 4> m_out_x;
-
- // misc common
- u16 m_inp_mux; // multiplexed inputs mask
- int m_inp_lines; // number of input mux columns
- int m_inp_fixed; // input column fixed to GND/Vdd (-1 means none)
- u8 m_speaker_data; // speaker output data(if more than 1 bit)
- u8 m_s; // MCU S output pins
- u8 m_r; // MCU R output pins
-
- void inp_fixed_last() { m_inp_fixed = -2; } // last input line to GND
- u8 read_inputs(int columns, int fixed = -1);
-
- virtual void update_k_line();
- virtual void sm510_lcd_segment_w(offs_t offset, u16 data);
- virtual void sm500_lcd_segment_w(offs_t offset, u16 data);
- virtual u8 input_r();
- virtual void input_w(u8 data);
- virtual void piezo_r1_w(u8 data);
- virtual void piezo_r2_w(u8 data);
- virtual void piezo_input_w(u8 data);
- virtual void piezo2bit_r1_w(u8 data);
- virtual void piezo2bit_input_w(u8 data);
-
- // display common
- int m_decay_pivot; // lcd segment off-to-on delay in 1kHz ticks (affects input lag)
- int m_decay_len; // lcd segment on-to-off delay in 1kHz ticks (lcd persistence)
- u8 m_display_x_len; // lcd number of groups
- u8 m_display_y_len; // lcd number of segments
- u8 m_display_z_len; // lcd number of commons
- u32 m_display_state[0x20]; // lcd segment data (max. 5-bit offset)
- u8 m_display_decay[0x20][0x20]; // (internal use)
-
- void set_display_size(u8 x, u8 y, u8 z);
- TIMER_CALLBACK_MEMBER(display_decay_tick);
- emu_timer *m_display_decay_timer;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- // machine configs
- void mcfg_cpu_common(machine_config &config);
- void mcfg_cpu_sm5a(machine_config &config);
- void mcfg_cpu_kb1013vk12(machine_config &config);
- void mcfg_cpu_sm510(machine_config &config);
- void mcfg_cpu_sm511(machine_config &config);
- void mcfg_cpu_sm512(machine_config &config);
- void mcfg_svg_screen(machine_config &config, u16 width, u16 height, const char *tag = "screen");
- void mcfg_sound_r1(machine_config &config);
-
- void sm5a_common(machine_config &config, u16 width, u16 height);
- void kb1013vk12_common(machine_config &config, u16 width, u16 height);
- void sm510_common(machine_config &config, u16 width, u16 height);
- void sm511_common(machine_config &config, u16 width, u16 height);
- //void sm512_common(machine_config &config, u16 width, u16 height);
-
- void sm510_dualh(machine_config &config, u16 leftwidth, u16 leftheight, u16 rightwidth, u16 rightheight);
- void dualv_common(machine_config &config, u16 topwidth, u16 topheight, u16 botwidth, u16 botheight);
- void sm510_dualv(machine_config &config, u16 topwidth, u16 topheight, u16 botwidth, u16 botheight);
- void sm511_dualv(machine_config &config, u16 topwidth, u16 topheight, u16 botwidth, u16 botheight);
- void sm512_dualv(machine_config &config, u16 topwidth, u16 topheight, u16 botwidth, u16 botheight);
- void sm510_tiger(machine_config &config, u16 width, u16 height);
- void sm511_tiger1bit(machine_config &config, u16 width, u16 height);
- void sm511_tiger2bit(machine_config &config, u16 width, u16 height);
-};
-
-
-#endif // MAME_INCLUDES_HH_SM510_H
diff --git a/src/mame/includes/hh_tms1k.h b/src/mame/includes/hh_tms1k.h
deleted file mode 100644
index 43e3c0d2aa0..00000000000
--- a/src/mame/includes/hh_tms1k.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:hap
-/*
-
- TMS1000 MCU series tabletops/handhelds or other simple devices.
-
-*/
-
-#ifndef MAME_INCLUDES_HH_TMS1K_H
-#define MAME_INCLUDES_HH_TMS1K_H
-
-#pragma once
-
-#include "cpu/tms1000/tms1000.h"
-#include "cpu/tms1000/tms1000c.h"
-#include "cpu/tms1000/tms1100.h"
-#include "cpu/tms1000/tms1400.h"
-#include "cpu/tms1000/tms0970.h"
-#include "cpu/tms1000/tms0980.h"
-#include "cpu/tms1000/tms0270.h"
-#include "cpu/tms1000/tp0320.h"
-#include "video/pwm.h"
-#include "sound/spkrdev.h"
-
-
-class hh_tms1k_state : public driver_device
-{
-public:
- hh_tms1k_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_display(*this, "display"),
- m_speaker(*this, "speaker"),
- m_inputs(*this, "IN.%u", 0),
- m_out_power(*this, "power")
- { }
-
- // devices
- required_device<tms1k_base_device> m_maincpu;
- optional_device<pwm_display_device> m_display;
- optional_device<speaker_sound_device> m_speaker;
- optional_ioport_array<18> m_inputs; // max 18
- output_finder<> m_out_power; // power state, eg. led
-
- // misc common
- u16 m_r; // MCU R-pins data
- u16 m_o; // MCU O-pins data
- u32 m_inp_mux; // multiplexed inputs mask
- bool m_power_on;
-
- u32 m_grid; // VFD/LED current row data
- u32 m_plate; // VFD/LED current column data
-
- u8 read_inputs(int columns);
- u8 read_rotated_inputs(int columns, u8 rowmask = 0xf);
- virtual DECLARE_INPUT_CHANGED_MEMBER(reset_button);
- virtual DECLARE_INPUT_CHANGED_MEMBER(power_button);
- virtual DECLARE_WRITE_LINE_MEMBER(auto_power_off);
- virtual void power_off();
- void set_power(bool state);
-
- void switch_change(int sel, u32 mask, bool next);
- template<int Sel> DECLARE_INPUT_CHANGED_MEMBER(switch_next) { if (newval) switch_change(Sel, param, true); }
- template<int Sel> DECLARE_INPUT_CHANGED_MEMBER(switch_prev) { if (newval) switch_change(Sel, param, false); }
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-};
-
-
-#endif // MAME_INCLUDES_HH_TMS1K_H
diff --git a/src/mame/includes/higemaru.h b/src/mame/includes/higemaru.h
deleted file mode 100644
index f7793361389..00000000000
--- a/src/mame/includes/higemaru.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni
-/*************************************************************************
-
- Pirate Ship Higemaru
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_HIGEMARU_H
-#define MAME_INCLUDES_HIGEMARU_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class higemaru_state : public driver_device
-{
-public:
- higemaru_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void higemaru(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- void higemaru_videoram_w(offs_t offset, uint8_t data);
- void higemaru_colorram_w(offs_t offset, uint8_t data);
- void higemaru_c800_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void video_start() override;
- void higemaru_palette(palette_device &palette) const;
- uint32_t screen_update_higemaru(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(higemaru_scanline);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void higemaru_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HIGEMARU_H
diff --git a/src/mame/includes/himesiki.h b/src/mame/includes/himesiki.h
deleted file mode 100644
index ab8b31e7660..00000000000
--- a/src/mame/includes/himesiki.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Uki
-
-/*************************************************************************
-
- Himeshikibu
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_HIMESIKI_H
-#define MAME_INCLUDES_HIMESIKI_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class himesiki_state : public driver_device
-{
-public:
- himesiki_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bg_ram(*this, "bg_ram"),
- m_spriteram_p103a(*this, "sprram_p103a"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void himesiki(machine_config &config);
-
-private:
- // memory pointers
- required_shared_ptr<uint8_t> m_bg_ram;
- required_shared_ptr<uint8_t> m_spriteram_p103a;
- required_shared_ptr<uint8_t> m_spriteram;
-
- // video-related
- tilemap_t *m_bg_tilemap;
- int m_scrollx[2];
- int m_scrolly;
-
- int m_flipscreen;
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void himesiki_rombank_w(uint8_t data);
- void himesiki_sound_w(uint8_t data);
- void himesiki_bg_ram_w(offs_t offset, uint8_t data);
- void himesiki_scrollx_w(offs_t offset, uint8_t data);
- void himesiki_scrolly_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_himesiki(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void himesiki_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void himesiki_iom0(address_map &map);
- void himesiki_iom1(address_map &map);
- void himesiki_prm0(address_map &map);
- void himesiki_prm1(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HIMESIKI_H
diff --git a/src/mame/includes/hitme.h b/src/mame/includes/hitme.h
deleted file mode 100644
index 37f513d9599..00000000000
--- a/src/mame/includes/hitme.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Dan Boris
-/*************************************************************************
-
- Hitme hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_HITME_H
-#define MAME_INCLUDES_HITME_H
-
-#pragma once
-
-#include "sound/discrete.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-#define HITME_DOWNCOUNT_VAL NODE_01
-#define HITME_OUT0 NODE_02
-#define HITME_ENABLE_VAL NODE_03
-#define HITME_OUT1 NODE_04
-
-class hitme_state : public driver_device
-{
-public:
- hitme_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen")
- { }
-
- void hitme(machine_config &config);
- void barricad(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
-
- /* video-related */
- tilemap_t *m_tilemap;
-
- /* misc */
- attotime m_timeout_time;
- void hitme_vidram_w(offs_t offset, uint8_t data);
- uint8_t hitme_port_0_r();
- uint8_t hitme_port_1_r();
- uint8_t hitme_port_2_r();
- uint8_t hitme_port_3_r();
- void output_port_0_w(uint8_t data);
- void output_port_1_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_hitme_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- DECLARE_VIDEO_START(barricad);
- uint32_t screen_update_hitme(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_barricad(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint8_t read_port_and_t0( int port );
- uint8_t read_port_and_t0_and_hblank( int port );
- required_device<cpu_device> m_maincpu;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- void hitme_map(address_map &map);
- void hitme_portmap(address_map &map);
-};
-
-
-/*----------- defined in audio/hitme.c -----------*/
-DISCRETE_SOUND_EXTERN( hitme_discrete );
-
-#endif // MAME_INCLUDES_HITME_H
diff --git a/src/mame/includes/hnayayoi.h b/src/mame/includes/hnayayoi.h
deleted file mode 100644
index 1ebe78e7efa..00000000000
--- a/src/mame/includes/hnayayoi.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Hana Yayoi & other Dynax games (using 1st version of their blitter)
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_HNAYAYOI_H
-#define MAME_INCLUDES_HNAYAYOI_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "sound/msm5205.h"
-#include "video/mc6845.h"
-#include "emupal.h"
-
-class hnayayoi_state : public driver_device
-{
-public:
- hnayayoi_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mainlatch(*this, "mainlatch"),
- m_msm(*this, "msm"),
- m_palette(*this, "palette")
- { }
-
- void hnayayoi(machine_config &config);
- void hnfubuki(machine_config &config);
- void untoucha(machine_config &config);
-
- void init_hnfubuki();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* video-related */
- std::unique_ptr<uint8_t[]> m_pixmap[8];
- int m_palbank;
- uint8_t m_blit_layer;
- uint16_t m_blit_dest;
- uint32_t m_blit_src;
-
- /* misc */
- int m_keyb;
- bool m_nmi_enable;
-
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_mainlatch;
- required_device<msm5205_device> m_msm;
- required_device<palette_device> m_palette;
-
- uint8_t keyboard_0_r();
- uint8_t keyboard_1_r();
- void keyboard_w(uint8_t data);
- void dynax_blitter_rev1_param_w(offs_t offset, uint8_t data);
- void dynax_blitter_rev1_start_w(uint8_t data);
- void dynax_blitter_rev1_clear_w(uint8_t data);
- void hnayayoi_palbank_w(offs_t offset, uint8_t data);
- void adpcm_data_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_clock_w);
- DECLARE_VIDEO_START(untoucha);
- MC6845_UPDATE_ROW(hnayayoi_update_row);
- MC6845_UPDATE_ROW(untoucha_update_row);
- void common_vh_start( int num_pixmaps );
- void copy_pixel( int x, int y, int pen );
- void draw_layer_interleaved(bitmap_rgb32 &bitmap, const rectangle &cliprect, uint16_t row, uint16_t y, uint8_t x_count, int left_pixmap, int right_pixmap, int palbase, bool transp);
- DECLARE_WRITE_LINE_MEMBER(irqhandler);
-
- void hnayayoi_map(address_map &map);
- void hnayayoi_io_map(address_map &map);
- void hnfubuki_map(address_map &map);
- void untoucha_map(address_map &map);
- void untoucha_io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HNAYAYOI_H
diff --git a/src/mame/includes/hng64.h b/src/mame/includes/hng64.h
deleted file mode 100644
index b6da75a3151..00000000000
--- a/src/mame/includes/hng64.h
+++ /dev/null
@@ -1,538 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:David Haywood, Angelo Salese, ElSemi, Andrew Gardner
-#ifndef MAME_INCLUDES_HNG64_H
-#define MAME_INCLUDES_HNG64_H
-
-#pragma once
-
-#include "machine/msm6242.h"
-#include "machine/timer.h"
-#include "cpu/mips/mips3.h"
-#include "cpu/nec/v5x.h"
-#include "sound/l7a1045_l6028_dsp_a.h"
-#include "video/poly.h"
-#include "cpu/tlcs870/tlcs870.h"
-#include "machine/mb8421.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-enum hng64trans_t
-{
- HNG64_TILEMAP_NORMAL = 1,
- HNG64_TILEMAP_ADDITIVE,
- HNG64_TILEMAP_ALPHA
-};
-
-struct blit_parameters
-{
- bitmap_rgb32 * bitmap;
- rectangle cliprect;
- uint32_t tilemap_priority_code;
- uint8_t mask;
- uint8_t value;
- uint8_t alpha;
- hng64trans_t drawformat;
-};
-
-#define HNG64_MASTER_CLOCK 50000000
-
-
-/////////////////
-/// 3d Engine ///
-/////////////////
-
-struct polyVert
-{
- float worldCoords[4]; // World space coordinates (X Y Z 1.0)
-
- float texCoords[4]; // Texture coordinates (U V 0 1.0) -> OpenGL style...
-
- float normal[4]; // Normal (X Y Z 1.0)
- float clipCoords[4]; // Homogeneous screen space coordinates (X Y Z W)
-
- float light[3]; // The intensity of the illumination at this point
-
- uint16_t colorIndex; // Flat shaded polygons, no texture, no lighting
-};
-
-struct polygon
-{
- int n; // Number of sides
- polyVert vert[10]; // Vertices (maximum number per polygon is 10 -> 3+6)
-
- float faceNormal[4]; // Normal of the face overall - for calculating visibility and flat-shading...
- bool visible; // Polygon visibility in scene
- bool flatShade; // Flat shaded polygon, no texture, no lighting
-
- uint8_t texIndex; // Which texture to draw from (0x00-0x0f)
- uint8_t texType; // How to index into the texture
- uint8_t texPageSmall; // Does this polygon use 'small' texture pages?
- uint8_t texPageHorizOffset; // If it does use small texture pages, how far is this page horizontally offset?
- uint8_t texPageVertOffset; // If it does use small texture pages, how far is this page vertically offset?
-
- uint32_t palOffset; // The base offset where this object's palette starts.
- uint32_t palPageSize; // The size of the palette page that is being pointed to.
-
- uint32_t debugColor; // Will go away someday. Used to explicitly color polygons for debugging.
-};
-
-
-/////////////////////////
-/// polygon rendering ///
-/////////////////////////
-
-// Refer to the clipping planes as numbers
-#define HNG64_LEFT 0
-#define HNG64_RIGHT 1
-#define HNG64_TOP 2
-#define HNG64_BOTTOM 3
-#define HNG64_NEAR 4
-#define HNG64_FAR 5
-
-
-////////////////////////////////////
-/// Polygon rasterizer interface ///
-////////////////////////////////////
-
-const int HNG64_MAX_POLYGONS = 10000;
-
-typedef frustum_clip_vertex<float, 5> hng64_clip_vertex;
-
-struct hng64_poly_data
-{
- uint8_t texType;
- uint8_t texIndex;
- uint8_t texPageSmall;
- uint8_t texPageHorizOffset;
- uint8_t texPageVertOffset;
- int palOffset;
- int palPageSize;
- int debugColor;
-};
-
-class hng64_state;
-
-class hng64_poly_renderer : public poly_manager<float, hng64_poly_data, 7, HNG64_MAX_POLYGONS>
-{
-public:
- hng64_poly_renderer(hng64_state& state);
-
- void drawShaded(polygon *p);
- void render_texture_scanline(int32_t scanline, const extent_t& extent, const hng64_poly_data& renderData, int threadid);
- void render_flat_scanline(int32_t scanline, const extent_t& extent, const hng64_poly_data& renderData, int threadid);
-
- hng64_state& state() { return m_state; }
- bitmap_rgb32& colorBuffer3d() { return m_colorBuffer3d; }
- float* depthBuffer3d() { return m_depthBuffer3d.get(); }
-
-private:
- hng64_state& m_state;
-
- // (Temporarily class members - someday they will live in the memory map)
- bitmap_rgb32 m_colorBuffer3d;
- std::unique_ptr<float[]> m_depthBuffer3d;
-};
-
-
-// TODO, this could become the IO board device emulation
-class hng64_lamps_device : public device_t
-{
-public:
- hng64_lamps_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- auto lamps0_out_cb() { return m_lamps_out_cb[0].bind(); }
- auto lamps1_out_cb() { return m_lamps_out_cb[1].bind(); }
- auto lamps2_out_cb() { return m_lamps_out_cb[2].bind(); }
- auto lamps3_out_cb() { return m_lamps_out_cb[3].bind(); }
- auto lamps4_out_cb() { return m_lamps_out_cb[4].bind(); }
- auto lamps5_out_cb() { return m_lamps_out_cb[5].bind(); }
- auto lamps6_out_cb() { return m_lamps_out_cb[6].bind(); }
- auto lamps7_out_cb() { return m_lamps_out_cb[7].bind(); }
-
- void lamps_w(offs_t offset, uint8_t data) { m_lamps_out_cb[offset](data); }
-
-protected:
- virtual void device_start() override;
-
-private:
- devcb_write8::array<8> m_lamps_out_cb;
-};
-
-
-class hng64_state : public driver_device
-{
-public:
- hng64_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_iomcu(*this, "iomcu"),
- m_lamps(*this, "lamps"),
- m_dt71321_dpram(*this, "dt71321_dpram"),
- m_dsp(*this, "l7a1045"),
- m_comm(*this, "network"),
- m_rtc(*this, "rtc"),
- m_mainram(*this, "mainram"),
- m_cart(*this, "gameprg"),
- m_sysregs(*this, "sysregs"),
- m_rombase(*this, "user1"),
- m_spriteram(*this, "spriteram"),
- m_spriteregs(*this, "spriteregs"),
- m_videoram(*this, "videoram"),
- m_videoregs(*this, "videoregs"),
- m_tcram(*this, "tcram"),
- m_fbtable(*this, "fbtable"),
- m_comhack(*this, "comhack"),
- m_fbram1(*this, "fbram1"),
- m_fbram2(*this, "fbram2"),
- m_idt7133_dpram(*this, "com_ram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_in(*this, "IN%u", 0U),
- m_an_in(*this, "AN%u", 0U),
- m_samsho64_3d_hack(0),
- m_roadedge_3d_hack(0)
- { }
-
- void hng64(machine_config &config);
- void hng64_default(machine_config &config);
- void hng64_drive(machine_config &config);
- void hng64_shoot(machine_config &config);
- void hng64_fight(machine_config &config);
-
- void init_roadedge();
- void init_hng64_drive();
- void init_hng64();
- void init_hng64_shoot();
- void init_ss64();
- void init_hng64_fght();
-
- uint8_t *m_texturerom;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
-private:
- /* TODO: NOT measured! */
- const int PIXEL_CLOCK = (HNG64_MASTER_CLOCK*2)/4; // x 2 is due to the interlaced screen ...
-
- const int HTOTAL = 0x200+0x100;
- const int HBEND = 0;
- const int HBSTART = 0x200;
-
- const int VTOTAL = 264*2;
- const int VBEND = 0;
- const int VBSTART = 224*2;
-
-
- required_device<mips3_device> m_maincpu;
- required_device<v53a_device> m_audiocpu;
- required_device<tmp87ph40an_device> m_iomcu;
- required_device<hng64_lamps_device> m_lamps;
- required_device<idt71321_device> m_dt71321_dpram;
- required_device<l7a1045_sound_device> m_dsp;
- required_device<cpu_device> m_comm;
- required_device<msm6242_device> m_rtc;
-
- required_shared_ptr<uint32_t> m_mainram;
- required_region_ptr<uint32_t> m_cart;
- required_shared_ptr<uint32_t> m_sysregs;
- required_region_ptr<uint32_t> m_rombase;
- required_shared_ptr<uint32_t> m_spriteram;
- required_shared_ptr<uint32_t> m_spriteregs;
- required_shared_ptr<uint32_t> m_videoram;
- required_shared_ptr<uint32_t> m_videoregs;
- required_shared_ptr<uint32_t> m_tcram;
-
- std::unique_ptr<uint16_t[]> m_dl;
- required_shared_ptr<uint32_t> m_fbtable;
- required_shared_ptr<uint32_t> m_comhack;
- required_shared_ptr<uint32_t> m_fbram1;
- required_shared_ptr<uint32_t> m_fbram2;
-
- required_shared_ptr<uint32_t> m_idt7133_dpram;
- //required_shared_ptr<uint8_t> m_com_mmu_mem;
-
- required_device<gfxdecode_device> m_gfxdecode;
-
- required_ioport_array<8> m_in;
- required_ioport_array<8> m_an_in;
-
-
- void hng64_default_lamps0_w(uint8_t data) { logerror("lamps0 %02x\n", data); }
- void hng64_default_lamps1_w(uint8_t data) { logerror("lamps1 %02x\n", data); }
- void hng64_default_lamps2_w(uint8_t data) { logerror("lamps2 %02x\n", data); }
- void hng64_default_lamps3_w(uint8_t data) { logerror("lamps3 %02x\n", data); }
- void hng64_default_lamps4_w(uint8_t data) { logerror("lamps4 %02x\n", data); }
- void hng64_default_lamps5_w(uint8_t data) { logerror("lamps5 %02x\n", data); }
- void hng64_default_lamps6_w(uint8_t data) { logerror("lamps6 %02x\n", data); }
- void hng64_default_lamps7_w(uint8_t data) { logerror("lamps7 %02x\n", data); }
-
- void hng64_drive_lamps7_w(uint8_t data);
- void hng64_drive_lamps6_w(uint8_t data);
- void hng64_drive_lamps5_w(uint8_t data);
-
- void hng64_shoot_lamps7_w(uint8_t data);
- void hng64_shoot_lamps6_w(uint8_t data);
-
- void hng64_fight_lamps6_w(uint8_t data);
-
- int m_samsho64_3d_hack;
- int m_roadedge_3d_hack;
-
- uint8_t m_fbcontrol[4];
-
- std::unique_ptr<uint16_t[]> m_soundram;
- std::unique_ptr<uint16_t[]> m_soundram2;
-
- /* Communications stuff */
- std::unique_ptr<uint8_t[]> m_com_op_base;
- std::unique_ptr<uint8_t[]> m_com_virtual_mem;
- uint8_t m_com_shared[8];
-
- int32_t m_dma_start;
- int32_t m_dma_dst;
- int32_t m_dma_len;
-
- uint16_t m_mcu_en;
-
- uint32_t m_activeDisplayList;
- uint32_t m_no_machine_error_code;
-
- uint32_t m_unk_vreg_toggle;
- uint32_t m_p1_trig;
-
- //uint32_t *q2;
-
- std::vector< std::pair <int, uint32_t *> > m_spritelist;
-
- uint8_t m_screen_dis;
-
- struct hng64_tilemap {
- tilemap_t *m_tilemap_8x8;
- tilemap_t *m_tilemap_16x16;
- tilemap_t *m_tilemap_16x16_alt;
- };
-
- hng64_tilemap m_tilemap[4];
-
- uint8_t m_additive_tilemap_debug;
-
- uint32_t m_old_animmask;
- uint32_t m_old_animbits;
- uint16_t m_old_tileflags[4];
-
- // 3d State
- int m_paletteState3d;
- float m_projectionMatrix[16];
- float m_modelViewMatrix[16];
- float m_cameraMatrix[16];
-
- float m_lightStrength;
- float m_lightVector[3];
-
- uint32_t hng64_com_r(offs_t offset, uint32_t mem_mask = ~0);
- void hng64_com_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void hng64_com_share_w(offs_t offset, uint8_t data);
- uint8_t hng64_com_share_r(offs_t offset);
- void hng64_com_share_mips_w(offs_t offset, uint8_t data);
- uint8_t hng64_com_share_mips_r(offs_t offset);
- uint32_t hng64_sysregs_r(offs_t offset, uint32_t mem_mask = ~0);
- void hng64_sysregs_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t hng64_rtc_r(offs_t offset, uint32_t mem_mask = ~0);
- void hng64_rtc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t hng64_dmac_r(offs_t offset, uint32_t mem_mask = ~0);
- void hng64_dmac_w(address_space &space, offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t hng64_irqc_r(offs_t offset, uint32_t mem_mask = ~0);
- void hng64_irqc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void hng64_mips_to_iomcu_irq_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint8_t hng64_dualport_r(offs_t offset);
- void hng64_dualport_w(offs_t offset, uint8_t data);
-
- uint8_t hng64_fbcontrol_r(offs_t offset);
- void hng64_fbcontrol_w(offs_t offset, uint8_t data);
-
- void hng64_fbunkpair_w(offs_t offset, uint16_t data);
- void hng64_fbscroll_w(offs_t offset, uint16_t data);
-
- void hng64_fbunkbyte_w(offs_t offset, uint8_t data);
-
- uint32_t hng64_fbtable_r(offs_t offset, uint32_t mem_mask = ~0);
- void hng64_fbtable_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t hng64_fbram1_r(offs_t offset);
- void hng64_fbram1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t hng64_fbram2_r(offs_t offset);
- void hng64_fbram2_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- void dl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- //uint32_t dl_r();
- void dl_control_w(uint32_t data);
- void dl_upload_w(uint32_t data);
- void dl_unk_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t dl_vreg_r();
-
- void tcram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t tcram_r(offs_t offset);
-
- void hng64_soundram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t hng64_soundram_r(offs_t offset);
- void hng64_vregs_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- // not actually used, but left in code so you can turn it and see the (possibly undesired?) behavior, see notes in memory map
- void hng64_soundram2_w(uint32_t data);
- uint32_t hng64_soundram2_r();
-
- void hng64_soundcpu_enable_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- void hng64_sprite_clear_even_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void hng64_sprite_clear_odd_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void hng64_videoram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- // shared ram access
- uint8_t ioport0_r();
- void ioport0_w(uint8_t data);
- void ioport7_w(uint8_t data);
-
- // input port access
- uint8_t ioport3_r();
- void ioport3_w(uint8_t data);
- void ioport1_w(uint8_t data);
-
- // unknown access
- void ioport4_w(uint8_t data);
-
- // analog input access
- uint8_t anport0_r();
- uint8_t anport1_r();
- uint8_t anport2_r();
- uint8_t anport3_r();
- uint8_t anport4_r();
- uint8_t anport5_r();
- uint8_t anport6_r();
- uint8_t anport7_r();
-
- DECLARE_WRITE_LINE_MEMBER( sio0_w );
-
- uint8_t m_port7;
- uint8_t m_port1;
-
- int m_ex_ramaddr;
- int m_ex_ramaddr_upper;
-
- TIMER_CALLBACK_MEMBER(tempio_irqon_callback);
- TIMER_CALLBACK_MEMBER(tempio_irqoff_callback);
- emu_timer *m_tempio_irqon_timer;
- emu_timer *m_tempio_irqoff_timer;
- void init_io();
-
- void init_hng64_reorder_gfx();
-
- void set_irq(uint32_t irq_vector);
- uint32_t m_irq_pending;
-
- TIMER_CALLBACK_MEMBER(comhack_callback);
- emu_timer *m_comhack_timer;
-
-
- int m_irq_level;
- TILE_GET_INFO_MEMBER(get_hng64_tile0_8x8_info);
- TILE_GET_INFO_MEMBER(get_hng64_tile0_16x16_info);
- TILE_GET_INFO_MEMBER(get_hng64_tile1_8x8_info);
- TILE_GET_INFO_MEMBER(get_hng64_tile1_16x16_info);
- TILE_GET_INFO_MEMBER(get_hng64_tile2_8x8_info);
- TILE_GET_INFO_MEMBER(get_hng64_tile2_16x16_info);
- TILE_GET_INFO_MEMBER(get_hng64_tile3_8x8_info);
- TILE_GET_INFO_MEMBER(get_hng64_tile3_16x16_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_hng64(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_hng64);
- TIMER_DEVICE_CALLBACK_MEMBER(hng64_irq);
- void do_dma(address_space &space);
-
- void hng64_mark_all_tiles_dirty(int tilemap);
- void hng64_mark_tile_dirty(int tilemap, int tile_index);
- void hng64_drawtilemap(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int tm);
-
- void hng64_tilemap_draw_roz_core(screen_device &screen, tilemap_t *tmap, const blit_parameters *blit,
- uint32_t startx, uint32_t starty, int incxx, int incxy, int incyx, int incyy, int wraparound);
-
- void hng64_tilemap_draw_roz(screen_device &screen, bitmap_rgb32 &dest, const rectangle &cliprect, tilemap_t *tmap,
- uint32_t startx, uint32_t starty, int incxx, int incxy, int incyx, int incyy,
- int wraparound, uint32_t flags, uint8_t priority, hng64trans_t drawformat);
-
- void hng64_tilemap_draw_roz_primask(screen_device &screen, bitmap_rgb32 &dest, const rectangle &cliprect, tilemap_t *tmap,
- uint32_t startx, uint32_t starty, int incxx, int incxy, int incyx, int incyy,
- int wraparound, uint32_t flags, uint8_t priority, uint8_t priority_mask, hng64trans_t drawformat);
-
-
-
-
- std::unique_ptr<hng64_poly_renderer> m_poly_renderer;
-
- TIMER_CALLBACK_MEMBER(hng64_3dfifo_processed);
- emu_timer *m_3dfifo_timer;
-
- uint16_t* m_vertsrom;
- int m_vertsrom_size;
- std::vector<polygon> m_polys; // HNG64_MAX_POLYGONS
-
- void clear3d();
- void hng64_command3d(const uint16_t* packet);
- void draw_sprites(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void transition_control(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void setCameraTransformation(const uint16_t* packet);
- void setLighting(const uint16_t* packet);
- void set3dFlags(const uint16_t* packet);
- void setCameraProjectionMatrix(const uint16_t* packet);
- void recoverPolygonBlock(const uint16_t* packet, int& numPolys);
- void printPacket(const uint16_t* packet, int hex);
- float uToF(uint16_t input);
- void matmul4(float *product, const float *a, const float *b);
- void vecmatmul4(float *product, const float *a, const float *b);
- float vecDotProduct(const float *a, const float *b);
- void setIdentity(float *matrix);
- void normalize(float* x);
-
- void reset_sound();
- void reset_net();
-
- DECLARE_WRITE_LINE_MEMBER(dma_hreq_cb);
- uint8_t dma_memr_cb(offs_t offset);
- void dma_iow3_cb(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(tcu_tm0_cb);
- DECLARE_WRITE_LINE_MEMBER(tcu_tm1_cb);
- DECLARE_WRITE_LINE_MEMBER(tcu_tm2_cb);
-
-
-
- uint16_t hng64_sound_port_0008_r(offs_t offset, uint16_t mem_mask = ~0);
- void hng64_sound_port_0008_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void hng64_sound_port_000a_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void hng64_sound_port_000c_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void hng64_sound_port_0080_w(uint16_t data);
-
- void hng64_sound_bank_w(offs_t offset, uint16_t data);
- uint16_t main_sound_comms_r(offs_t offset);
- void main_sound_comms_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t sound_comms_r(offs_t offset);
- void sound_comms_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t main_latch[2];
- uint16_t sound_latch[2];
- void hng64_audio(machine_config &config);
- void hng64_network(machine_config &config);
- void hng_comm_io_map(address_map &map);
- void hng_comm_map(address_map &map);
- void hng_map(address_map &map);
- void hng_sound_io(address_map &map);
- void hng_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HNG64_H
diff --git a/src/mame/includes/holeland.h b/src/mame/includes/holeland.h
deleted file mode 100644
index bb04123509a..00000000000
--- a/src/mame/includes/holeland.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mathis Rosenhauer
-/*************************************************************************
-
- Hole Land
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_HOLELAND_H
-#define MAME_INCLUDES_HOLELAND_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class holeland_state : public driver_device
-{
-public:
- holeland_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_latch(*this, "latch"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void crzrally(machine_config &config);
- void holeland(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<ls259_device> m_latch;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_palette_offset;
-
- DECLARE_WRITE_LINE_MEMBER(coin_counter_w);
-
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void pal_offs_w(uint8_t data);
- void scroll_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_y_w);
-
- TILE_GET_INFO_MEMBER(holeland_get_tile_info);
- TILE_GET_INFO_MEMBER(crzrally_get_tile_info);
-
- DECLARE_VIDEO_START(holeland);
- DECLARE_VIDEO_START(crzrally);
-
- uint32_t screen_update_holeland(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_crzrally(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void holeland_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void crzrally_draw_sprites( bitmap_ind16 &bitmap,const rectangle &cliprect );
- void crzrally_map(address_map &map);
- void holeland_map(address_map &map);
- void io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HOLELAND_H
diff --git a/src/mame/includes/homedata.h b/src/mame/includes/homedata.h
deleted file mode 100644
index 9439d9015e2..00000000000
--- a/src/mame/includes/homedata.h
+++ /dev/null
@@ -1,193 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino, Nicola Salmoria
-#ifndef MAME_INCLUDES_HOMEDATA_H
-#define MAME_INCLUDES_HOMEDATA_H
-
-#pragma once
-
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "sound/sn76496.h"
-#include "sound/ym2203.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class homedata_state : public driver_device
-{
-public:
- homedata_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_vreg(*this, "vreg"),
- m_videoram(*this, "videoram"),
- m_blit_rom(*this, "blit_rom"),
- m_mainbank(*this, "mainbank"),
- m_audiobank(*this, "audiobank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_ymsnd(*this, "ymsnd"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_mainlatch(*this, "mainlatch"),
- m_sn(*this, "snsnd"),
- m_mrokumei_soundbank(*this, "mrokumei_soundbank"),
- m_keys(*this, "KEY%u", 0U)
- {
- }
-
- void reikaids(machine_config &config);
- void mrokumei(machine_config &config);
- void mirderby(machine_config &config);
- void pteacher(machine_config &config);
- void jogakuen(machine_config &config);
- void lemnangl(machine_config &config);
- void mjikaga(machine_config &config);
- void mjkinjas(machine_config &config);
-
- void init_reikaids();
- void init_battlcry();
- void init_mirderby();
-
-private:
- /* memory pointers */
- optional_shared_ptr<uint8_t> m_vreg;
- required_shared_ptr<uint8_t> m_videoram;
-
- optional_region_ptr<uint8_t> m_blit_rom;
-
- optional_memory_bank m_mainbank;
- optional_memory_bank m_audiobank;
-
- /* video-related */
- tilemap_t *m_bg_tilemap[2][4];
- int m_visible_page;
- int m_priority;
- uint8_t m_reikaids_which;
- int m_flipscreen;
- uint8_t m_gfx_bank[2]; // pteacher only uses the first one
- uint8_t m_blitter_bank;
- int m_blitter_param_count;
- uint8_t m_blitter_param[4]; /* buffers last 4 writes to 0x8006 */
-
-
- /* misc */
- int m_vblank;
- int m_keyb;
- int m_upd7807_porta;
- int m_upd7807_portc;
-
- /* device */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<ym2203_device> m_ymsnd;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<generic_latch_8_device> m_mainlatch; // pteacher
- optional_device<sn76489a_device> m_sn; // mrokumei and pteacher
- optional_device<address_map_bank_device> m_mrokumei_soundbank; // mrokumei
-
- optional_ioport_array<12> m_keys;
-
- uint8_t m_prot_data;
- uint8_t mrokumei_keyboard_r(offs_t offset);
- void mrokumei_keyboard_select_w(uint8_t data);
- void mrokumei_sound_bank_w(uint8_t data);
- void mrokumei_sound_cmd_w(uint8_t data);
- uint8_t reikaids_upd7807_porta_r();
- void reikaids_upd7807_porta_w(uint8_t data);
- void reikaids_upd7807_portc_w(uint8_t data);
- uint8_t reikaids_io_r();
- uint8_t pteacher_io_r();
- uint8_t pteacher_keyboard_r();
- uint8_t pteacher_upd7807_porta_r();
- void pteacher_upd7807_porta_w(uint8_t data);
- void pteacher_upd7807_portc_w(uint8_t data);
- void bankswitch_w(uint8_t data);
- uint8_t mirderby_prot_r();
- void mirderby_prot_w(uint8_t data);
- void mrokumei_videoram_w(offs_t offset, u8 data);
- void reikaids_videoram_w(offs_t offset, u8 data);
- void reikaids_gfx_bank_w(uint8_t data);
- void pteacher_gfx_bank_w(uint8_t data);
- void homedata_blitter_param_w(uint8_t data);
- void mrokumei_blitter_bank_w(uint8_t data);
- void reikaids_blitter_bank_w(uint8_t data);
- void pteacher_blitter_bank_w(uint8_t data);
- void mrokumei_blitter_start_w(uint8_t data);
- void reikaids_blitter_start_w(uint8_t data);
- void pteacher_blitter_start_w(uint8_t data);
- TILE_GET_INFO_MEMBER(mrokumei_get_info0_0);
- TILE_GET_INFO_MEMBER(mrokumei_get_info1_0);
- TILE_GET_INFO_MEMBER(mrokumei_get_info0_1);
- TILE_GET_INFO_MEMBER(mrokumei_get_info1_1);
- TILE_GET_INFO_MEMBER(reikaids_get_info0_0);
- TILE_GET_INFO_MEMBER(reikaids_get_info1_0);
- TILE_GET_INFO_MEMBER(reikaids_get_info0_1);
- TILE_GET_INFO_MEMBER(reikaids_get_info1_1);
- TILE_GET_INFO_MEMBER(reikaids_get_info0_2);
- TILE_GET_INFO_MEMBER(reikaids_get_info1_2);
- TILE_GET_INFO_MEMBER(reikaids_get_info0_3);
- TILE_GET_INFO_MEMBER(reikaids_get_info1_3);
- TILE_GET_INFO_MEMBER(pteacher_get_info0_0);
- TILE_GET_INFO_MEMBER(pteacher_get_info1_0);
- TILE_GET_INFO_MEMBER(pteacher_get_info0_1);
- TILE_GET_INFO_MEMBER(pteacher_get_info1_1);
- TILE_GET_INFO_MEMBER(lemnangl_get_info0_0);
- TILE_GET_INFO_MEMBER(lemnangl_get_info1_0);
- TILE_GET_INFO_MEMBER(lemnangl_get_info0_1);
- TILE_GET_INFO_MEMBER(lemnangl_get_info1_1);
- TILE_GET_INFO_MEMBER(mirderby_get_info0_0);
- TILE_GET_INFO_MEMBER(mirderby_get_info1_0);
- TILE_GET_INFO_MEMBER(mirderby_get_info0_1);
- TILE_GET_INFO_MEMBER(mirderby_get_info1_1);
- DECLARE_MACHINE_START(homedata);
- DECLARE_MACHINE_RESET(homedata);
- DECLARE_MACHINE_RESET(mrokumei);
- DECLARE_VIDEO_START(mrokumei);
- void mrokumei_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(reikaids);
- DECLARE_MACHINE_RESET(reikaids);
- DECLARE_VIDEO_START(reikaids);
- void reikaids_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(pteacher);
- DECLARE_MACHINE_RESET(pteacher);
- DECLARE_VIDEO_START(pteacher);
- void pteacher_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(mirderby);
- void mirderby_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(lemnangl);
- uint32_t screen_update_mrokumei(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_reikaids(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_pteacher(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mirderby(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- INTERRUPT_GEN_MEMBER(homedata_irq);
- void mrokumei_handleblit( int rom_base );
- void reikaids_handleblit( int rom_base );
- void pteacher_handleblit( int rom_base );
- inline void mrokumei_info0( tile_data &tileinfo, int tile_index, int page, int gfxbank );
- inline void mrokumei_info1( tile_data &tileinfo, int tile_index, int page, int gfxbank );
- inline void reikaids_info( tile_data &tileinfo, int tile_index, int page, int layer, int gfxbank );
- inline void pteacher_info( tile_data &tileinfo, int tile_index, int page, int layer, int gfxbank );
- inline void lemnangl_info( tile_data &tileinfo, int tile_index, int page, int layer, int gfxset, int gfxbank );
- inline void mirderby_info0( tile_data &tileinfo, int tile_index, int page, int gfxbank );
- inline void mirderby_info1( tile_data &tileinfo, int tile_index, int page, int gfxbank );
- void cpu0_map(address_map &map);
- void cpu1_map(address_map &map);
- void cpu2_map(address_map &map);
- void jogakuen_map(address_map &map);
- void mjikaga_map(address_map &map);
- void mjikaga_upd7807_map(address_map &map);
- void mrokumei_map(address_map &map);
- void mrokumei_sound_banked_map(address_map &map);
- void mrokumei_sound_io_map(address_map &map);
- void mrokumei_sound_map(address_map &map);
- void pteacher_base_map(address_map &map);
- void pteacher_map(address_map &map);
- void pteacher_upd7807_map(address_map &map);
- void reikaids_map(address_map &map);
- void reikaids_upd7807_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HOMEDATA_H
diff --git a/src/mame/includes/homerun.h b/src/mame/includes/homerun.h
deleted file mode 100644
index d17667d153b..00000000000
--- a/src/mame/includes/homerun.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-/*************************************************************************
-
- Jaleco Moero Pro Yakyuu Homerun hardware
-
-*************************************************************************/
-
-#include "sound/upd7759.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class homerun_state : public driver_device
-{
-public:
- homerun_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_d7756(*this, "d7756"),
- m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_mainbank(*this, "mainbank")
- { }
-
- void ganjaja(machine_config &config);
- void dynashot(machine_config &config);
- void homerun(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(sprite0_r);
- DECLARE_READ_LINE_MEMBER(homerun_d7756_busy_r);
- DECLARE_READ_LINE_MEMBER(ganjaja_d7756_busy_r);
- DECLARE_CUSTOM_INPUT_MEMBER(ganjaja_hopper_status_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_shared_ptr<u8> m_videoram;
- required_shared_ptr<u8> m_spriteram;
- optional_device<upd7756_device> m_d7756;
- optional_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_memory_bank m_mainbank;
-
- u8 m_control;
- u8 m_sample;
-
- tilemap_t *m_tilemap;
- int m_gfx_ctrl;
- int m_scrollx;
- int m_scrolly;
-
- void control_w(u8 data);
- void d7756_sample_w(u8 data);
- void videoram_w(offs_t offset, u8 data);
- void scrollhi_w(u8 data);
- void scrolly_w(u8 data);
- void scrollx_w(u8 data);
-
- static rgb_t homerun_RGB332(u32 raw);
- TILE_GET_INFO_MEMBER(get_tile_info);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void banking_w(u8 data);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void io_map(address_map &map);
- void mem_map(address_map &map);
-};
diff --git a/src/mame/includes/hp48.h b/src/mame/includes/hp48.h
deleted file mode 100644
index 990592b5e9d..00000000000
--- a/src/mame/includes/hp48.h
+++ /dev/null
@@ -1,214 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Antoine Mine
-/**********************************************************************
-
- Copyright (C) Antoine Mine' 2008
-
- Hewlett Packard HP48 S/SX & G/GX and HP49 G
-
-**********************************************************************/
-#ifndef MAME_INCLUDES_HP84_H
-#define MAME_INCLUDES_HP84_H
-
-#pragma once
-
-#include "cpu/saturn/saturn.h"
-#include "machine/hp48_port.h"
-#include "sound/dac.h"
-#include "emupal.h"
-#include "screen.h"
-
-/* model */
-typedef enum {
- HP48_S,
- HP48_SX,
- HP48_G,
- HP48_GX,
- HP48_GP,
- HP49_G
-} hp48_models;
-
-/* screen image averaging */
-#define HP48_NB_SCREENS 3
-
-class hp48_state : public driver_device
-{
-public:
- hp48_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_modules{ { *this }, { *this }, { *this }, { *this }, { *this }, { *this } }
- , m_maincpu(*this, "maincpu")
- , m_dac(*this, "dac")
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_port(*this, "port%u", 1U)
- , m_lshift0(*this, "lshift0")
- , m_rshift0(*this, "rshift0")
- , m_alpha0(*this, "alpha0")
- , m_alert0(*this, "alert0")
- , m_busy0(*this, "busy0")
- , m_transmit0(*this, "transmit0")
- {
- }
-
- void hp48s(machine_config &config);
- void hp48gp(machine_config &config);
- void hp48sx(machine_config &config);
- void hp48g(machine_config &config);
- void hp48gx(machine_config &config);
- void hp49g(machine_config &config);
-
- void init_hp48();
-
- void decode_nibble(uint8_t* dst, uint8_t* src, int size);
- void encode_nibble(uint8_t* dst, uint8_t* src, int size);
-
- void apply_modules();
-
- /* memory module configuration */
- struct hp48_module
- {
- hp48_module(device_t &owner) : read(owner), write(owner) { }
-
- /* static part */
- uint32_t off_mask; // offset bit-mask, indicates the real size
- read8sm_delegate read;
- const char *read_name;
- write8sm_delegate write;
- void* data; // non-NULL for banks
- int isnop;
-
- /* configurable part */
- uint8_t state; // one of HP48_MODULE_
- uint32_t base; // base address
- uint32_t mask; // often improperly called size, it is an address select mask
-
- };
-
- /* from highest to lowest priority: HDW, NCE2, CE1, CE2, NCE3, NCE1 */
- hp48_module m_modules[6];
-
-private:
- virtual void machine_reset() override;
- void base_machine_start(hp48_models model);
-
- void hp48_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(hp49g);
- DECLARE_MACHINE_START(hp48gx);
- DECLARE_MACHINE_START(hp48g);
- DECLARE_MACHINE_START(hp48gp);
- DECLARE_MACHINE_START(hp48sx);
- DECLARE_MACHINE_START(hp48s);
- uint32_t screen_update_hp48(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void io_w(offs_t offset, uint8_t data);
- uint8_t io_r(offs_t offset);
- uint8_t bank_r(offs_t offset);
- void hp49_bank_w(offs_t offset, uint8_t data);
- TIMER_CALLBACK_MEMBER(rs232_byte_recv_cb);
- TIMER_CALLBACK_MEMBER(rs232_byte_sent_cb);
- TIMER_CALLBACK_MEMBER(kbd_cb);
- TIMER_CALLBACK_MEMBER(timer1_cb);
- TIMER_CALLBACK_MEMBER(timer2_cb);
- void update_annunciators();
- void pulse_irq(int irq_line);
- void rs232_start_recv_byte(uint8_t data);
- void rs232_send_byte();
- int get_in();
- void update_kdn();
- void reset_modules();
-
- /* memory controller */
- DECLARE_WRITE_LINE_MEMBER(mem_reset);
- void mem_config(uint32_t data);
- void mem_unconfig(uint32_t data);
- uint32_t mem_id();
-
- /* CRC computation */
- void mem_crc(offs_t offset, uint32_t data);
-
- /* IN/OUT registers */
- uint32_t reg_in();
- void reg_out(uint32_t data);
-
- /* keyboard interrupt system */
- DECLARE_WRITE_LINE_MEMBER(rsi);
- void hp48_common(machine_config &config);
- void hp48(address_map &map);
-
- required_device<saturn_device> m_maincpu;
- required_device<dac_bit_interface> m_dac;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- uint8_t *m_videoram;
- uint8_t m_io[64];
- hp48_models m_model;
-
- /* OUT register from SATURN (actually 12-bit) */
- uint16_t m_out;
-
- /* keyboard interrupt */
- uint8_t m_kdn;
-
- /* RAM/ROM extensions, GX/SX only
- port1: SX/GX: 32/128 KB
- port2: SX:32/128KB, GX:128/512/4096 KB
- */
- optional_device_array<hp48_port_image_device, 2> m_port;
-
- output_finder<> m_lshift0;
- output_finder<> m_rshift0;
- output_finder<> m_alpha0;
- output_finder<> m_alert0;
- output_finder<> m_busy0;
- output_finder<> m_transmit0;
-
- uint32_t m_bank_switch;
- uint32_t m_io_addr;
- uint16_t m_crc;
- uint8_t m_timer1;
- uint32_t m_timer2;
- uint8_t m_screens[HP48_NB_SCREENS][64][144];
- int m_cur_screen;
- uint8_t* m_rom;
- emu_timer *m_1st_timer;
- emu_timer *m_2nd_timer;
- emu_timer *m_kbd_timer;
-};
-
-
-/***************************************************************************
- MACROS
-***************************************************************************/
-
-/* read from I/O memory */
-#define HP48_IO_4(x) (m_io[(x)])
-#define HP48_IO_8(x) (m_io[(x)] | (m_io[(x)+1] << 4))
-#define HP48_IO_12(x) (m_io[(x)] | (m_io[(x)+1] << 4) | (m_io[(x)+2] << 8))
-#define HP48_IO_20(x) (m_io[(x)] | (m_io[(x)+1] << 4) | (m_io[(x)+2] << 8) | \
- (m_io[(x)+3] << 12) | (m_io[(x)+4] << 16))
-
-
-/*----------- defined in machine/hp48.c -----------*/
-
-/***************************************************************************
- GLOBAL VARIABLES & CONSTANTS
-***************************************************************************/
-
-/* I/O memory */
-
-
-
-/***************************************************************************
- FUNCTION PROTOTYPES
-***************************************************************************/
-
-/* list of memory modules from highest to lowest priority */
-#define HP48_HDW 0
-#define HP48_NCE2 1
-#define HP48_CE1 2
-#define HP48_CE2 3
-#define HP48_NCE3 4
-#define HP48_NCE1 5
-
-#endif // MAME_INCLUDES_HP84_H
diff --git a/src/mame/includes/hp9845.h b/src/mame/includes/hp9845.h
deleted file mode 100644
index aa38cd79cf1..00000000000
--- a/src/mame/includes/hp9845.h
+++ /dev/null
@@ -1,143 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:F. Ulivi
-// *******************************
-// Driver for HP 9845B/C/T systems
-// *******************************
-#ifndef MAME_INCLUDES_HP9845_H
-#define MAME_INCLUDES_HP9845_H
-
-#pragma once
-
-#include "cpu/hphybrid/hphybrid.h"
-#include "machine/hp_taco.h"
-#include "sound/beep.h"
-#include "bus/hp9845_io/hp9845_io.h"
-#include "emupal.h"
-#include "screen.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "machine/hp98x5_io_sys.h"
-
-class hp9845_base_state : public driver_device
-{
-public:
- hp9845_base_state(const machine_config &mconfig, device_type type, const char *tag);
-
- DECLARE_INPUT_CHANGED_MEMBER(togglekey_changed);
-
-protected:
- virtual void machine_start() override;
- virtual void device_reset() override;
- virtual void machine_reset() override;
-
- TIMER_DEVICE_CALLBACK_MEMBER(gv_timer);
-
- virtual uint16_t graphic_r(offs_t offset) = 0;
- virtual void graphic_w(offs_t offset, uint16_t data) = 0;
- attotime time_to_gv_mem_availability() const;
-
- TIMER_DEVICE_CALLBACK_MEMBER(kb_scan);
- uint16_t kb_scancode_r();
- uint16_t kb_status_r();
- void kb_irq_clear_w(uint16_t data);
- TIMER_DEVICE_CALLBACK_MEMBER(beeper_off);
-
- DECLARE_WRITE_LINE_MEMBER(prt_irl_w);
-
- void hp9845_base(machine_config &config);
- void global_mem_map(address_map &map);
- void ppu_io_map(address_map &map);
-
- required_device<hp_5061_3001_cpu_device> m_lpu;
- required_device<hp_5061_3001_cpu_device> m_ppu;
- required_device<hp98x5_io_sys_device> m_io_sys;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<timer_device> m_gv_timer;
- required_ioport_array<4> m_io_key;
- required_ioport m_io_shiftlock;
- required_device<hp_taco_device> m_t14;
- required_device<hp_taco_device> m_t15;
- required_device<beep_device> m_beeper;
- required_device<timer_device> m_beep_timer;
- required_device_array<hp9845_io_slot_device, 4> m_io_slot;
- required_device<ram_device> m_ram;
- output_finder<8> m_softkeys;
- output_finder<> m_shift_lock_led;
- output_finder<> m_prt_all_led;
- output_finder<> m_auto_st_led;
-
- void setup_ram_block(unsigned block , unsigned offset);
-
- virtual void advance_gv_fsm(bool ds , bool trigger) = 0;
- void kb_scan_ioport(ioport_value pressed , ioport_port &port , unsigned idx_base , int& max_seq_len , unsigned& max_seq_idx);
- void update_kb_prt_irq();
-
- // Slot handling
- void set_irq_slot(unsigned slot , int state);
- void set_sts_slot(unsigned slot , int state);
- void set_flg_slot(unsigned slot , int state);
- void set_irq_nextsc_slot(unsigned slot , int state);
- void set_sts_nextsc_slot(unsigned slot , int state);
- void set_flg_nextsc_slot(unsigned slot , int state);
- void set_dmar_slot(unsigned slot , int state);
-
- // Character generator
- required_region_ptr<uint8_t> m_chargen;
-
- // Text mode video I/F
- struct video_buffer_t {
- uint8_t chars[ 80 ];
- uint8_t attrs[ 80 ];
- bool full = 0;
- };
-
- bitmap_rgb32 m_bitmap;
- offs_t m_video_mar;
- uint16_t m_video_word;
- bool m_video_load_mar;
- bool m_video_first_mar;
- bool m_video_byte_idx;
- bool m_video_buff_idx;
- bool m_video_blanked;
- video_buffer_t m_video_buff[ 2 ];
-
- // Graphic video
- enum gv_fsm_state_t {
- GV_STAT_RESET,
- GV_STAT_WAIT_DS_0 = GV_STAT_RESET,
- GV_STAT_WAIT_TRIG_0,
- GV_STAT_WAIT_MEM_0,
- GV_STAT_WAIT_DS_1,
- GV_STAT_WAIT_DS_2,
- GV_STAT_WAIT_TRIG_1,
- GV_STAT_WAIT_MEM_1,
- GV_STAT_WAIT_MEM_2
- };
-
- bool m_graphic_sel;
- gv_fsm_state_t m_gv_fsm_state;
- bool m_gv_int_en;
- bool m_gv_dma_en;
- uint8_t m_gv_cmd; // U65 (GC)
- uint16_t m_gv_data_w; // U29, U45, U28 & U44 (GC)
- uint16_t m_gv_data_r; // U59 & U60 (GC)
- uint16_t m_gv_io_counter; // U1, U2, U14 & U15 (GC)
- uint16_t m_gv_cursor_x; // U31 & U23 (GS)
- uint16_t m_gv_cursor_y; // U15 & U8 (GS)
- bool m_gv_cursor_gc; // U8 (GS)
- bool m_gv_cursor_fs; // U8 (GS)
-
- // State of keyboard
- ioport_value m_kb_state[ 4 ];
- uint8_t m_kb_scancode;
- uint16_t m_kb_status;
-
- // Printer
- bool m_prt_irl;
-
- // SC of slots
- int m_slot_sc[ 4 ];
-};
-
-#endif // MAME_INCLUDES_HP9845_H
diff --git a/src/mame/includes/huebler.h b/src/mame/includes/huebler.h
deleted file mode 100644
index 05cbcdb573b..00000000000
--- a/src/mame/includes/huebler.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-
-#ifndef MAME_INCLUDES_HUEBLER_H
-#define MAME_INCLUDES_HUEBLER_H
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "z80"
-#define Z80CTC_TAG "z80ctc"
-#define Z80SIO_TAG "z80sio"
-#define Z80PIO1_TAG "z80pio1"
-#define Z80PIO2_TAG "z80pio2"
-
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "imagedev/cassette.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "machine/z80pio.h"
-#include "machine/z80sio.h"
-#include "machine/z80ctc.h"
-#include "emupal.h"
-
-class amu880_state : public driver_device
-{
-public:
- amu880_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, Z80_TAG)
- , m_cassette(*this, "cassette")
- , m_sio(*this, Z80SIO_TAG)
- , m_palette(*this, "palette")
- , m_kb_rom(*this, "keyboard")
- , m_char_rom(*this, "chargen")
- , m_video_ram(*this, "video_ram")
- , m_key_row(*this, "Y%u", 0)
- , m_special(*this, "SPECIAL")
- , m_key_d6(0)
- , m_key_d7(0)
- , m_key_a8(1)
- { }
-
- void amu880(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override { m_maincpu->set_pc(0xf000); }
-
-private:
- required_device<z80_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_device<z80sio_device> m_sio;
- required_device<palette_device> m_palette;
- required_memory_region m_kb_rom;
- required_memory_region m_char_rom;
- required_shared_ptr<uint8_t> m_video_ram;
- required_ioport_array<16> m_key_row;
- required_ioport m_special;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t keyboard_r(offs_t offset);
-
- void scan_keyboard();
-
- // keyboard state
- int m_key_d6;
- int m_key_d7;
- int m_key_a4;
- int m_key_a5;
- int m_key_a8;
-
- // video state
- TIMER_DEVICE_CALLBACK_MEMBER(keyboard_tick);
- DECLARE_WRITE_LINE_MEMBER(ctc_z0_w);
- DECLARE_WRITE_LINE_MEMBER(ctc_z2_w);
- DECLARE_WRITE_LINE_MEMBER(cassette_w);
- void amu880_io(address_map &map);
- void amu880_mem(address_map &map);
-
- // cassette variables
- u8 m_cnt;
- bool m_cassbit;
-};
-
-#endif
diff --git a/src/mame/includes/hx20.h b/src/mame/includes/hx20.h
deleted file mode 100644
index 1925084aca8..00000000000
--- a/src/mame/includes/hx20.h
+++ /dev/null
@@ -1,127 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_HX20_H
-#define MAME_INCLUDES_HX20_H
-
-#pragma once
-
-#include "cpu/m6800/m6801.h"
-#include "imagedev/cassette.h"
-#include "machine/mc146818.h"
-#include "machine/ram.h"
-#include "sound/spkrdev.h"
-#include "video/upd7227.h"
-
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "bus/epson_sio/epson_sio.h"
-#include "bus/rs232/rs232.h"
-
-#include "emupal.h"
-
-#define HD6301V1_MAIN_TAG "8g"
-#define HD6301V1_SLAVE_TAG "6d"
-#define MC146818_TAG "6g"
-#define CASSETTE_TAG "cassette"
-#define RS232_TAG "rs232"
-#define SCREEN_TAG "screen"
-
-class hx20_state : public driver_device
-{
-public:
- hx20_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, HD6301V1_MAIN_TAG)
- , m_subcpu(*this, HD6301V1_SLAVE_TAG)
- , m_rtc(*this, MC146818_TAG)
- , m_lcdc(*this, "lcdc%u", 0U)
- , m_speaker(*this, "speaker")
- , m_cassette(*this, CASSETTE_TAG)
- , m_rs232(*this, RS232_TAG)
- , m_sio(*this, "sio")
- , m_optrom(*this, "optrom")
- , m_ksc_io(*this, "KSC%u", 0U)
- , m_sw6(*this, "SW6")
- , m_slave_rx(1)
- , m_slave_tx(1)
- , m_slave_flag(1)
- , m_rtc_irq(CLEAR_LINE)
- , m_kbrequest(1)
- { }
-
- void hx20(machine_config &config);
- void cm6032(machine_config &config);
- void cm6127(machine_config &config);
-
-private:
- required_device<hd6301v1_cpu_device> m_maincpu;
- required_device<hd6301v1_cpu_device> m_subcpu;
- required_device<mc146818_device> m_rtc;
- required_device_array<upd7227_device, 6> m_lcdc;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_device<rs232_port_device> m_rs232;
- required_device<epson_sio_device> m_sio;
- optional_device<generic_slot_device> m_optrom;
- required_ioport_array<8> m_ksc_io;
- required_ioport m_sw6;
-
- virtual void machine_start() override;
- void hx20_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void ksc_w(uint8_t data);
- uint8_t krtn07_r();
- uint8_t krtn89_r();
- void lcd_cs_w(uint8_t data);
- void lcd_data_w(uint8_t data);
-
- uint8_t main_p1_r();
- void main_p1_w(uint8_t data);
- uint8_t main_p2_r();
- void main_p2_w(uint8_t data);
-
- uint8_t slave_p1_r();
- void slave_p1_w(uint8_t data);
- uint8_t slave_p2_r();
- void slave_p2_w(uint8_t data);
- uint8_t slave_p3_r();
- void slave_p3_w(uint8_t data);
- uint8_t slave_p4_r();
- void slave_p4_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER( rtc_irq_w );
-
- DECLARE_WRITE_LINE_MEMBER( sio_rx_w ) { m_sio_rx = state; }
- DECLARE_WRITE_LINE_MEMBER( sio_pin_w ) { m_sio_pin = state; }
-
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( optrom_load );
- uint8_t optrom_r(offs_t offset);
-
- void update_interrupt();
-
- // CPU state
- int m_slave_sio;
- int m_slave_rx;
- int m_slave_tx;
- int m_slave_flag;
- int m_rtc_irq;
-
- // keyboard state
- uint8_t m_ksc;
- int m_kbrequest;
-
- // video state
- uint8_t m_lcd_data;
-
- // sio state
- int m_sio_rx;
- int m_sio_pin;
-
- void hx20_mem(address_map &map);
- void hx20_sub_mem(address_map &map);
- void cm6032_mem(address_map &map);
- void cm6127_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HX20_H
diff --git a/src/mame/includes/hyhoo.h b/src/mame/includes/hyhoo.h
deleted file mode 100644
index bd4ff85c18f..00000000000
--- a/src/mame/includes/hyhoo.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-#include "machine/nb1413m3.h"
-#include "screen.h"
-
-class hyhoo_state : public driver_device
-{
-public:
- hyhoo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_nb1413m3(*this, "nb1413m3"),
- m_screen(*this, "screen"),
- m_clut(*this, "clut") { }
-
- void hyhoo(machine_config &config);
- void hyhoo2(machine_config &config);
-
-private:
- enum
- {
- TIMER_BLITTER
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<nb1413m3_device> m_nb1413m3;
- required_device<screen_device> m_screen;
- required_shared_ptr<uint8_t> m_clut;
-
- int m_blitter_destx;
- int m_blitter_desty;
- int m_blitter_sizex;
- int m_blitter_sizey;
- int m_blitter_src_addr;
- int m_blitter_direction_x;
- int m_blitter_direction_y;
- int m_gfxrom;
- int m_dispflag;
- int m_highcolorflag;
- int m_flipscreen;
- bitmap_rgb32 m_tmpbitmap;
- emu_timer *m_blitter_timer;
-
- void hyhoo_blitter_w(offs_t offset, uint8_t data);
- void hyhoo_romsel_w(uint8_t data);
-
- virtual void video_start() override;
-
- uint32_t screen_update_hyhoo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void hyhoo_gfxdraw();
-
- void hyhoo_io_map(address_map &map);
- void hyhoo_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
diff --git a/src/mame/includes/hyperspt.h b/src/mame/includes/hyperspt.h
deleted file mode 100644
index 192815fdde0..00000000000
--- a/src/mame/includes/hyperspt.h
+++ /dev/null
@@ -1,95 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Chris Hardy
-#ifndef MAME_INCLUDES_HYPERSPT_H
-#define MAME_INCLUDES_HYPERSPT_H
-
-#pragma once
-
-#include "audio/trackfld.h"
-#include "sound/dac.h"
-#include "sound/sn76496.h"
-#include "sound/vlm5030.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class hyperspt_state : public driver_device
-{
-public:
- hyperspt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_scroll(*this, "scroll"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundbrd(*this, "trackfld_audio"),
- m_dac(*this, "dac"),
- m_sn(*this, "snsnd"),
- m_vlm(*this, "vlm"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void hyperspt(machine_config &config);
- void roadf(machine_config &config);
- void roadfu(machine_config &config);
- void hypersptb(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<trackfld_audio_device> m_soundbrd;
- required_device<dac_8bit_r2r_device> m_dac;
- optional_device<sn76496_device> m_sn;
- optional_device<vlm5030_device> m_vlm;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- uint8_t m_irq_mask;
- uint8_t m_SN76496_latch;
-
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- void konami_SN76496_latch_w(uint8_t data) { m_SN76496_latch = data; };
- void konami_SN76496_w(uint8_t data) { m_sn->write(m_SN76496_latch); };
-
- virtual void machine_start() override;
- virtual void video_start() override;
- void hyperspt_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(roadf);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(roadf_get_bg_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void common_map(address_map &map);
- void common_sound_map(address_map &map);
- void hyperspt_map(address_map &map);
- void hyperspt_sound_map(address_map &map);
- void roadf_map(address_map &map);
- void roadf_sound_map(address_map &map);
- void soundb_map(address_map &map);
- void hyprolyb_adpcm_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_HYPERSPT_H
diff --git a/src/mame/includes/ikki.h b/src/mame/includes/ikki.h
deleted file mode 100644
index 0d2d93e01f1..00000000000
--- a/src/mame/includes/ikki.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Uki
-/*************************************************************************
-
- Ikki
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_IKKI_H
-#define MAME_INCLUDES_IKKI_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-class ikki_state : public driver_device
-{
-public:
- ikki_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_videoram(*this, "videoram"),
- m_scroll(*this, "scroll"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void ikki(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* video-related */
- bitmap_ind16 m_sprite_bitmap;
- uint8_t m_flipscreen;
- int m_punch_through_pen;
- uint8_t m_irq_source;
-
- uint8_t ikki_e000_r();
- void ikki_coin_counters(uint8_t data);
- void ikki_scrn_ctrl_w(uint8_t data);
- void ikki_palette(palette_device &palette);
- uint32_t screen_update_ikki(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(ikki_irq);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void ikki_cpu1(address_map &map);
- void ikki_cpu2(address_map &map);
-};
-
-#endif // MAME_INCLUDES_IKKI_H
diff --git a/src/mame/includes/intv.h b/src/mame/includes/intv.h
deleted file mode 100644
index abe0eb81386..00000000000
--- a/src/mame/includes/intv.h
+++ /dev/null
@@ -1,155 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods,Frank Palazzolo
-/*****************************************************************************
- *
- * includes/intv.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_INTV_H
-#define MAME_INCLUDES_INTV_H
-
-#pragma once
-
-#include "sound/ay8910.h"
-#include "video/stic.h"
-#include "video/tms9927.h"
-
-#include "bus/intv/ecs.h"
-#include "bus/intv/slot.h"
-#include "bus/intv/voice.h"
-//#include "bus/intv/keycomp.h"
-
-#include "bus/intv_ctrl/ctrl.h"
-#include "bus/intv_ctrl/handctrl.h"
-
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#include "emupal.h"
-
-
-class intv_state : public driver_device
-{
-public:
- intv_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_sound(*this, "ay8914"),
- m_stic(*this, "stic"),
- m_crtc(*this, "crtc"),
- m_cart(*this, "cartslot"),
- m_intvkbd_dualport_ram(*this, "dualport_ram"),
- m_videoram(*this, "videoram"),
- m_keyboard(*this, "keyboard"),
- m_iocart1(*this, "ioslot1"),
- m_iocart2(*this, "ioslot2"),
- m_region_maincpu(*this, "maincpu"),
- m_region_keyboard(*this, "keyboard"),
- m_io_test(*this, "TEST"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void intvkbd(machine_config &config);
- void intv2(machine_config &config);
- void intvoice(machine_config &config);
- void intvecs(machine_config &config);
- void intv(machine_config &config);
-
- void init_intvecs();
- void init_intvkbd();
- void init_intv();
-
-private:
- enum
- {
- TIMER_INTV_INTERRUPT2_COMPLETE,
- TIMER_INTV_INTERRUPT_COMPLETE,
- TIMER_INTV_BTB_FILL
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<ay8914_device> m_sound;
- required_device<stic_device> m_stic;
- optional_device<tms9927_device> m_crtc;
- optional_device<intv_cart_slot_device> m_cart;
- optional_shared_ptr<uint16_t> m_intvkbd_dualport_ram;
- optional_shared_ptr<uint8_t> m_videoram;
-
- uint16_t intv_stic_r(offs_t offset);
- void intv_stic_w(offs_t offset, uint16_t data);
- uint16_t intv_gram_r(offs_t offset);
- void intv_gram_w(offs_t offset, uint16_t data);
- uint16_t intv_ram8_r(offs_t offset);
- void intv_ram8_w(offs_t offset, uint16_t data);
- uint16_t intv_ram16_r(offs_t offset);
- void intv_ram16_w(offs_t offset, uint16_t data);
- uint8_t intvkb_iocart_r(offs_t offset);
-
- uint8_t m_bus_copy_mode;
- uint8_t m_backtab_row;
- uint16_t m_ram16[0x160];
- int m_sr1_int_pending;
- uint8_t m_ram8[256];
- bool m_maincpu_reset;
-
- // Keyboard Component
- void intvkbd_dualport16_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t intvkbd_dualport8_lsb_r(offs_t offset);
- void intvkbd_dualport8_lsb_w(offs_t offset, uint8_t data);
- uint8_t intvkbd_dualport8_msb_r(offs_t offset);
- void intvkbd_dualport8_msb_w(offs_t offset, uint8_t data);
- uint8_t intvkbd_io_r(offs_t offset);
- void intvkbd_io_w(offs_t offset, uint8_t data);
- uint8_t intvkbd_periph_r(offs_t offset);
- void intvkbd_periph_w(offs_t offset, uint8_t data);
-
- uint16_t iab_r();
-
- bool m_printer_not_busy; // printer state
- bool m_printer_no_paper; // printer state
- bool m_printer_not_busy_enable; // printer interface state
-
- int m_intvkbd_text_blanked;
- int m_intvkbd_keyboard_col;
- int m_tape_int_pending;
- int m_tape_interrupts_enabled;
- int m_tape_motor_mode;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void intv_palette(palette_device &palette) const;
- uint32_t screen_update_intv(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_intvkbd(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(intv_interrupt2);
- INTERRUPT_GEN_MEMBER(intv_interrupt);
- TIMER_CALLBACK_MEMBER(intv_interrupt2_complete);
- TIMER_CALLBACK_MEMBER(intv_interrupt_complete);
- TIMER_CALLBACK_MEMBER(intv_btb_fill);
-
- void intv2_mem(address_map &map);
- void intv_mem(address_map &map);
- void intvecs_mem(address_map &map);
- void intvkbd2_mem(address_map &map);
- void intvkbd_mem(address_map &map);
- void intvoice_mem(address_map &map);
-
- int m_is_keybd;
-
- optional_device<cpu_device> m_keyboard;
- optional_device<generic_slot_device> m_iocart1;
- optional_device<generic_slot_device> m_iocart2;
- required_memory_region m_region_maincpu;
- optional_memory_region m_region_keyboard;
- optional_ioport m_io_test;
-
- optional_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- ioport_port *m_intv_keyboard[10];
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_INTV_H
diff --git a/src/mame/includes/inufuku.h b/src/mame/includes/inufuku.h
deleted file mode 100644
index e3a0fc4bf61..00000000000
--- a/src/mame/includes/inufuku.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-#ifndef MAME_INCLUDES_INUFUKU_H
-#define MAME_INCLUDES_INUFUKU_H
-
-#include "video/vsystem_spr.h"
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class inufuku_state : public driver_device
-{
-public:
- inufuku_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_bg_videoram(*this, "bg_videoram"),
- m_bg_rasterram(*this, "bg_rasterram"),
- m_tx_videoram(*this, "tx_videoram"),
- m_spriteram1(*this, "spriteram1"),
- m_spriteram2(*this, "spriteram2"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spr(*this, "vsystem_spr"),
- m_soundlatch(*this, "soundlatch") { }
-
- void inufuku(machine_config &config);
- void _3on3dunk(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(soundflag_r);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_bg_videoram;
- required_shared_ptr<uint16_t> m_bg_rasterram;
- required_shared_ptr<uint16_t> m_tx_videoram;
- required_shared_ptr<uint16_t> m_spriteram1;
- required_shared_ptr<uint16_t> m_spriteram2;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_tx_tilemap;
- int m_bg_scrollx;
- int m_bg_scrolly;
- int m_tx_scrollx;
- int m_tx_scrolly;
- int m_bg_raster;
- int m_bg_palettebank;
- int m_tx_palettebank;
- std::unique_ptr<uint16_t[]> m_spriteram1_old;
- uint32_t inufuku_tile_callback( uint32_t code );
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<vsystem_spr_device> m_spr;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void inufuku_soundrombank_w(uint8_t data);
- void inufuku_palettereg_w(offs_t offset, uint16_t data);
- void inufuku_scrollreg_w(offs_t offset, uint16_t data);
- uint16_t inufuku_bg_videoram_r(offs_t offset);
- void inufuku_bg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t inufuku_tx_videoram_r(offs_t offset);
- void inufuku_tx_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_inufuku_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_inufuku_tx_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_inufuku(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_inufuku);
- void inufuku_map(address_map &map);
- void inufuku_sound_io_map(address_map &map);
- void inufuku_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_INUFUKU_H
diff --git a/src/mame/includes/iqblock.h b/src/mame/includes/iqblock.h
deleted file mode 100644
index 7ee3ce963af..00000000000
--- a/src/mame/includes/iqblock.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Ernesto Corvi
-#ifndef MAME_INCLUDES_IQBLOCK_H
-#define MAME_INCLUDES_IQBLOCK_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "tilemap.h"
-
-class iqblock_state : public driver_device
-{
-public:
- iqblock_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_rambase(*this, "rambase"),
- m_bgvideoram(*this, "bgvideoram"),
- m_fgvideoram(*this, "fgvideoram")
- { }
-
- void iqblock(machine_config &config);
-
- void init_grndtour();
- void init_iqblock();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
-
- required_shared_ptr<uint8_t> m_rambase;
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_fgvideoram;
-
- int m_videoenable;
- int m_video_type;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- void iqblock_prot_w(uint8_t data);
- void grndtour_prot_w(uint8_t data);
- void irqack_w(uint8_t data);
- void fgvideoram_w(offs_t offset, uint8_t data);
- void bgvideoram_w(offs_t offset, uint8_t data);
- void fgscroll_w(offs_t offset, uint8_t data);
- void port_C_w(uint8_t data);
-
- TIMER_DEVICE_CALLBACK_MEMBER(irq);
-
- virtual void video_start() override;
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
- void main_portmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_IQBLOCK_H
diff --git a/src/mame/includes/iremipt.h b/src/mame/includes/iremipt.h
deleted file mode 100644
index ec27e36655a..00000000000
--- a/src/mame/includes/iremipt.h
+++ /dev/null
@@ -1,324 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, Nicola Salmoria
-/*******************************************************************************
-
- Input port macros used by many games in multiple IREM drivers
-
-*******************************************************************************/
-
-
-/**************************** Inputs ****************************/
-
-
-#define IREM_INPUT_JOY_LOW(PL, STATE, WAY, B01, B02, B04, B08) \
- PORT_BIT( 0x0001, STATE, IPT_JOYSTICK_##B01 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x0002, STATE, IPT_JOYSTICK_##B02 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x0004, STATE, IPT_JOYSTICK_##B04 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x0008, STATE, IPT_JOYSTICK_##B08 ) WAY PORT_PLAYER(PL)
-
-#define IREM_INPUT_JOY_HIGH(PL, STATE, WAY, B100, B200, B400, B800) \
- PORT_BIT( 0x0100, STATE, IPT_JOYSTICK_##B100 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x0200, STATE, IPT_JOYSTICK_##B200 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x0400, STATE, IPT_JOYSTICK_##B400 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x0800, STATE, IPT_JOYSTICK_##B800 ) WAY PORT_PLAYER(PL)
-
-#define IREM_INPUT_BUTTONS_LOW(PL, STATE, BUTTON_A, BUTTON_B, BUTTON_C, BUTTON_D) \
- PORT_BIT( 0x0010, STATE, IPT_##BUTTON_A ) PORT_PLAYER(PL) \
- PORT_BIT( 0x0020, STATE, IPT_##BUTTON_B ) PORT_PLAYER(PL) \
- PORT_BIT( 0x0040, STATE, IPT_##BUTTON_C ) PORT_PLAYER(PL) \
- PORT_BIT( 0x0080, STATE, IPT_##BUTTON_D ) PORT_PLAYER(PL)
-
-#define IREM_INPUT_BUTTONS_HIGH(PL, STATE, BUTTON_A, BUTTON_B, BUTTON_C, BUTTON_D) \
- PORT_BIT( 0x1000, STATE, IPT_##BUTTON_A ) PORT_PLAYER(PL) \
- PORT_BIT( 0x2000, STATE, IPT_##BUTTON_B ) PORT_PLAYER(PL) \
- PORT_BIT( 0x4000, STATE, IPT_##BUTTON_C ) PORT_PLAYER(PL) \
- PORT_BIT( 0x8000, STATE, IPT_##BUTTON_D ) PORT_PLAYER(PL)
-
-
-#define IREM_GENERIC_JOYSTICKS_2_BUTTONS(PL_L, PL_H) \
- IREM_INPUT_JOY_LOW(PL_L, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_LOW(PL_L, IP_ACTIVE_LOW, UNUSED, UNUSED, BUTTON2, BUTTON1) \
- IREM_INPUT_JOY_HIGH(PL_H, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_HIGH(PL_H, IP_ACTIVE_LOW, UNUSED, UNUSED, BUTTON2, BUTTON1)
-
-#define IREM_GENERIC_JOYSTICKS_2_BUTTONS_4WAY(PL_L, PL_H) \
- IREM_INPUT_JOY_LOW(PL_L, IP_ACTIVE_LOW, PORT_4WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_LOW(PL_L, IP_ACTIVE_LOW, UNUSED, UNUSED, BUTTON2, BUTTON1) \
- IREM_INPUT_JOY_HIGH(PL_H, IP_ACTIVE_LOW, PORT_4WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_HIGH(PL_H, IP_ACTIVE_LOW, UNUSED, UNUSED, BUTTON2, BUTTON1)
-
-#define IREM_GENERIC_JOYSTICKS_3_BUTTONS(PL_L, PL_H) \
- IREM_INPUT_JOY_LOW(PL_L, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_LOW(PL_L, IP_ACTIVE_LOW, UNUSED, BUTTON3, BUTTON2, BUTTON1) \
- IREM_INPUT_JOY_HIGH(PL_H, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_HIGH(PL_H, IP_ACTIVE_LOW, UNUSED, BUTTON3, BUTTON2, BUTTON1)
-
-#define IREM_GENERIC_JOYSTICKS_4_BUTTONS(PL_L, PL_H) \
- IREM_INPUT_JOY_LOW(PL_L, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_LOW(PL_L, IP_ACTIVE_LOW, BUTTON4, BUTTON3, BUTTON2, BUTTON1) \
- IREM_INPUT_JOY_HIGH(PL_H, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_HIGH(PL_H, IP_ACTIVE_LOW, BUTTON4, BUTTON3, BUTTON2, BUTTON1)
-
-#define IREM_GENERIC_JOYSTICKS_2_BUTTONS_START_COIN(PL_L, PL_H, LOW_START, HIGH_START, LOW_COIN, HIGH_COIN) \
- IREM_INPUT_JOY_LOW(PL_L, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_LOW(PL_L, IP_ACTIVE_LOW, LOW_START, LOW_COIN, BUTTON2, BUTTON1) \
- IREM_INPUT_JOY_HIGH(PL_H, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) \
- IREM_INPUT_BUTTONS_HIGH(PL_H, IP_ACTIVE_LOW, HIGH_START, HIGH_COIN, BUTTON2, BUTTON1)
-
-#define IREM_INPUT_PLAYER_3 \
- PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3) \
- PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3) \
- PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3) \
- PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3) \
- PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START3 ) /* If common slots, Coin3 if separate */ \
- PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN3 ) \
- PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) \
- PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3)
-#define IREM_INPUT_PLAYER_3_4WAY \
- PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(3) \
- PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(3) \
- PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(3) \
- PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(3) \
- PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START3 ) /* If common slots, Coin3 if separate */ \
- PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN3 ) \
- PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) \
- PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3)
-#define IREM_INPUT_PLAYER_4 \
- PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4) \
- PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4) \
- PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4) \
- PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4) \
- PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_START4 ) /* If common slots, Coin3 if separate */ \
- PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_COIN4 ) \
- PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) \
- PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4)
-#define IREM_INPUT_PLAYER_4_4WAY \
- PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(4) \
- PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(4) \
- PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(4) \
- PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(4) \
- PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_START4 ) /* If common slots, Coin3 if separate */ \
- PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_COIN4 ) \
- PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4) \
- PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4)
-
-
-#define IREM_COINS \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) \
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_CUSTOM ) /* Actually vblank, handled above */
-
-/**************************** Coinage Dip Switches ****************************/
-
-/* Mode 2 Coinage */
-
-#define IREM_COIN_MODE_2_OLD_LOC(DIPBANK) \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW2", 0x04, EQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6") \
- PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW2", 0x04, EQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":7,8") \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) )
-
-#define IREM_COIN_MODE_2_DSW1_LOC(DIPBANK) \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW2", 0x04, EQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6") \
- PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW2", 0x04, EQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":7,8") \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) )
-
-/* on newer boards, coinage settings moved to DSW2 and coin mode dip was put on */
-/* DSW1. We may add the tag in the condition and the location as parameters here, */
-/* to make the definitions a bit more general. However, these are enough to cover */
-/* all the currently emulated games */
-#define IREM_COIN_MODE_2 \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW1", 0x04, EQUALS, 0x00) PORT_DIPLOCATION("SW2:5,6") \
- PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW1", 0x04, EQUALS, 0x00) PORT_DIPLOCATION("SW2:7,8") \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) )
-
-#define IREM_COIN_MODE_2_HIGH \
- PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Coin_A ) ) PORT_CONDITION("DSW", 0x0800, EQUALS, 0x0000) PORT_DIPLOCATION("SW2:5,6") \
- PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0x1000, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x2000, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x3000, DEF_STR( 1C_1C ) ) \
- PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Coin_B ) ) PORT_CONDITION("DSW", 0x0800, EQUALS, 0x0000) PORT_DIPLOCATION("SW2:7,8") \
- PORT_DIPSETTING( 0xc000, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x8000, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x4000, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) )
-
-
-/* Mode 1 Coinage */
-
-#define IREM_Z80_COINAGE_TYPE_1_LOC(DIPBANK) \
- /* Coin Mode 1 */ \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, NOTEQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
-/* PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) */ \
- PORT_DIPSETTING( 0x90, DEF_STR( 7C_1C ) ) \
- PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 1C_7C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 1C_8C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \
- /* Coin Mode 2 */ \
- IREM_COIN_MODE_2_OLD_LOC(DIPBANK)
-
-#define IREM_Z80_COINAGE_TYPE_2_LOC(DIPBANK) \
- /* Coin Mode 1 */ \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, NOTEQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
-/* PORT_DIPSETTING( 0x80, DEF_STR( Free_Play ) ) */ \
-/* PORT_DIPSETTING( 0x90, DEF_STR( Free_Play ) ) */ \
- PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) \
-/* PORT_DIPSETTING( 0x20, DEF_STR( Free_Play ) ) */ \
-/* PORT_DIPSETTING( 0x10, DEF_STR( Free_Play ) ) */ \
- PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \
- /* Coin Mode 2 */ \
- IREM_COIN_MODE_2_OLD_LOC(DIPBANK)
-
-#define IREM_Z80_COINAGE_TYPE_3_LOC(DIPBANK) \
- /* Coin Mode 1 */ \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, NOTEQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
- PORT_DIPSETTING( 0x90, DEF_STR( 7C_1C ) ) \
- PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
-/* PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) */ \
- PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 1C_7C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 1C_8C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \
- /* Coin Mode 2 */ \
- IREM_COIN_MODE_2_OLD_LOC(DIPBANK)
-
-#define IREM_Z80_COINAGE_TYPE_4_LOC(DIPBANK) \
- /* Coin Mode 1 */ \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, NOTEQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
- PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 8C_3C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 5C_3C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x90, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x70, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \
- /* Coin Mode 2 */ \
- IREM_COIN_MODE_2_DSW1_LOC(DIPBANK)
-
-#define IREM_Z80_COINAGE_TYPE_5_LOC(DIPBANK) \
- /* Coin Mode 1 */ \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_CONDITION("DSW2", 0x04, NOTEQUALS, 0x00) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
- PORT_DIPSETTING( 0x00, DEF_STR( 8C_1C ) ) \
- PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 5C_3C ) ) \
- PORT_DIPSETTING( 0x20, "3 Coins/5 Credits" ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x90, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x70, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C ) ) \
- /* Coin Mode 2 */ \
- IREM_COIN_MODE_2_DSW1_LOC(DIPBANK)
-
-
-/* New Coin Mode 1, introduced in later m72 games (m72 early games have different Coinage) */
-
-#define IREM_COIN_MODE_1_NEW \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,6,7,8") \
- PORT_DIPSETTING( 0xa0, DEF_STR( 6C_1C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x10, "2 Coins to Start/1 to Continue") \
- PORT_DIPSETTING( 0x30, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x90, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x70, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
-
-#define IREM_COIN_MODE_1_NEW_HIGH \
- PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coinage ) ) PORT_CONDITION("DSW", 0x0800, NOTEQUALS, 0x0000) PORT_DIPLOCATION("SW2:5,6,7,8") \
- PORT_DIPSETTING( 0xa000, DEF_STR( 6C_1C ) ) \
- PORT_DIPSETTING( 0xb000, DEF_STR( 5C_1C ) ) \
- PORT_DIPSETTING( 0xc000, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0xd000, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0xe000, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x1000, "2 Coins to Start/1 to Continue") \
- PORT_DIPSETTING( 0x3000, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x2000, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0xf000, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x4000, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x9000, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x8000, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x7000, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x6000, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x5000, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) )
diff --git a/src/mame/includes/irobot.h b/src/mame/includes/irobot.h
deleted file mode 100644
index b7cdb0a4cf6..00000000000
--- a/src/mame/includes/irobot.h
+++ /dev/null
@@ -1,130 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Dan Boris
-/*************************************************************************
-
- Atari I, Robot hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_IROBOT_H
-#define MAME_INCLUDES_IROBOT_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "machine/x2212.h"
-#include "sound/pokey.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define IR_TIMING 1 /* try to emulate MB and VG running time */
-
-class irobot_state : public driver_device
-{
-public:
- irobot_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
-#if IR_TIMING
- m_irvg_timer(*this, "irvg_timer"),
- m_irmb_timer(*this, "irmb_timer"),
-#endif
- m_novram(*this, "nvram"),
- m_pokey(*this, "pokey%u", 1U),
- m_leds(*this, "led%u", 0U)
- { }
-
- void init_irobot();
-
- void irobot(machine_config &config);
-
-private:
- struct irmb_ops
- {
- const struct irmb_ops *nxtop;
- uint32_t func;
- uint32_t diradd;
- uint32_t latchmask;
- uint32_t *areg;
- uint32_t *breg;
- uint8_t cycles;
- uint8_t diren;
- uint8_t flags;
- uint8_t ramsel;
- };
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void irobot_map(address_map &map);
-
- void irobot_clearirq_w(uint8_t data);
- void irobot_clearfirq_w(uint8_t data);
- uint8_t irobot_sharedmem_r(offs_t offset);
- void irobot_sharedmem_w(offs_t offset, uint8_t data);
- void irobot_statwr_w(uint8_t data);
- void irobot_out0_w(uint8_t data);
- void irobot_rom_banksel_w(uint8_t data);
- uint8_t irobot_status_r();
- void irobot_paletteram_w(offs_t offset, uint8_t data);
- uint8_t quad_pokeyn_r(offs_t offset);
- void quad_pokeyn_w(offs_t offset, uint8_t data);
- void irobot_palette(palette_device &palette) const;
- uint32_t screen_update_irobot(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(scanline_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(irobot_irvg_done_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(irobot_irmb_done_callback);
- void irobot_poly_clear(uint8_t *bitmap_base);
- void irobot_poly_clear();
- void draw_line(uint8_t *polybitmap, int x1, int y1, int x2, int y2, int col);
- void irobot_run_video();
- uint32_t irmb_din(const irmb_ops *curop);
- void irmb_dout(const irmb_ops *curop, uint32_t d);
- void load_oproms();
- void irmb_run();
-
- required_shared_ptr<uint8_t> m_videoram;
- uint8_t m_vg_clear;
- uint8_t m_bufsel;
- uint8_t m_alphamap;
- uint8_t *m_combase;
- uint8_t m_irvg_vblank;
- uint8_t m_irvg_running;
- uint8_t m_irmb_running;
- uint8_t *m_comRAM[2];
- uint8_t *m_mbRAM;
- uint8_t *m_mbROM;
- uint8_t m_statwr;
- uint8_t m_out0;
- uint8_t m_outx;
- uint8_t m_mpage;
- uint8_t *m_combase_mb;
- std::unique_ptr<irmb_ops[]> m_mbops;
- const irmb_ops *m_irmb_stack[16];
- uint32_t m_irmb_regs[16];
- uint32_t m_irmb_latch;
- std::unique_ptr<uint8_t[]> m_polybitmap1;
- std::unique_ptr<uint8_t[]> m_polybitmap2;
- int m_ir_xmin;
- int m_ir_ymin;
- int m_ir_xmax;
- int m_ir_ymax;
- emu_timer *m_scanline_timer;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-#if IR_TIMING
- required_device<timer_device> m_irvg_timer;
- required_device<timer_device> m_irmb_timer;
-#endif
- required_device<x2212_device> m_novram;
- required_device_array<pokey_device, 4> m_pokey;
- output_finder<2> m_leds;
-};
-
-#endif // MAME_INCLUDES_IROBOT_H
diff --git a/src/mame/includes/ironhors.h b/src/mame/includes/ironhors.h
deleted file mode 100644
index 1f172f21969..00000000000
--- a/src/mame/includes/ironhors.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni, Couriersud
-/*************************************************************************
-
- IronHorse
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_IRONHORS_H
-#define MAME_INCLUDES_IRONHORS_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class ironhors_state : public driver_device
-{
-public:
- ironhors_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch"),
- m_disc_ih(*this, "disc_ih"),
- m_interrupt_enable(*this, "int_enable"),
- m_scroll(*this, "scroll"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram2(*this, "spriteram2"),
- m_spriteram(*this, "spriteram")
- { }
-
- void farwest(machine_config &config);
- void ironhors(machine_config &config);
-
-private:
- void sh_irqtrigger_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void charbank_w(uint8_t data);
- void palettebank_w(uint8_t data);
- void flipscreen_w(uint8_t data);
- void filter_w(uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_farwest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(ironhors_scanline_tick);
- TIMER_DEVICE_CALLBACK_MEMBER(farwest_scanline_tick);
-
- void ironhors_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(farwest);
-
- void farwest_master_map(address_map &map);
- void farwest_slave_map(address_map &map);
- void master_map(address_map &map);
- void slave_io_map(address_map &map);
- void slave_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<discrete_device> m_disc_ih;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_interrupt_enable;
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram2;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_palettebank;
- int m_charbank;
- int m_spriterambank;
-
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void farwest_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(farwest_get_bg_tile_info);
-};
-
-#endif // MAME_INCLUDES_IRONHORS_H
diff --git a/src/mame/includes/itech32.h b/src/mame/includes/itech32.h
deleted file mode 100644
index ce41a1efd36..00000000000
--- a/src/mame/includes/itech32.h
+++ /dev/null
@@ -1,307 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles, Brian Troha
-/*************************************************************************
-
- Incredible Technologies/Strata system
- (32-bit blitter variant)
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_ITECH32_H
-#define MAME_INCLUDES_ITECH32_H
-
-#pragma once
-
-#include "machine/6522via.h"
-#include "machine/gen_latch.h"
-#include "machine/nvram.h"
-#include "machine/ticket.h"
-#include "machine/timekpr.h"
-#include "sound/es5506.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define VIDEO_CLOCK XTAL(8'000'000) // video (pixel) clock
-#define CPU_CLOCK XTAL(12'000'000) // clock for 68000-based systems
-#define CPU020_CLOCK XTAL(25'000'000) // clock for 68EC020-based systems
-#define SOUND_CLOCK XTAL(16'000'000) // clock for sound board
-#define TMS_CLOCK XTAL(40'000'000) // TMS320C31 clocks on drivedge
-
-
-class itech32_state : public driver_device
-{
-public:
- itech32_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_via(*this, "via6522_0"),
- m_ensoniq(*this, "ensoniq"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_ticket(*this, "ticket"),
- m_timekeeper(*this, "m48t02"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_nvram16(*this, "nvram16"),
- m_nvram32(*this, "nvram32"),
- m_main_ram32(*this, "main_ram"),
- m_video(*this, "video", 0x200, ENDIANNESS_BIG),
- m_main_rom16(*this, "user1"),
- m_main_rom32(*this, "user1"),
- m_grom(*this, "gfx1"),
- m_soundbank(*this, "soundbank")
- { }
-
- void base_devices(machine_config &config);
- void via(machine_config &config);
- void tourny(machine_config &config);
- void sftm(machine_config &config);
- void bloodstm(machine_config &config);
- void timekill(machine_config &config);
- void pubball(machine_config &config);
-
- void init_gtclasscp();
- void init_shufshot();
- void init_wcbowlt();
- void init_hardyard();
- void init_s_ver();
- void init_sftm110();
- void init_wcbowln();
- void init_gt2kp();
- void init_sftm();
- void init_wcbowl();
- void init_wcbowlj();
- void init_aamat();
- void init_bloodstm();
- void init_aama();
- void init_timekill();
- void init_gt3d();
- void init_gt3dl();
- void init_pubball();
-
- DECLARE_READ_LINE_MEMBER(special_port_r);
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<via6522_device> m_via; // sftm, wcbowl and gt games don't have the via
- required_device<es5506_device> m_ensoniq;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<ticket_dispenser_device> m_ticket;
- optional_device<timekeeper_device> m_timekeeper;
- required_device<generic_latch_8_device> m_soundlatch;
- optional_device<generic_latch_8_device> m_soundlatch2;
-
- optional_shared_ptr<u16> m_nvram16;
- optional_shared_ptr<u32> m_nvram32;
- optional_shared_ptr<u32> m_main_ram32;
- memory_share_creator<u16> m_video;
- optional_region_ptr<u16> m_main_rom16;
- optional_region_ptr<u32> m_main_rom32;
-
- required_region_ptr<u8> m_grom;
- required_memory_bank m_soundbank;
-
- virtual void nvram_init(nvram_device &nvram, void *base, size_t length);
-
- std::unique_ptr<u16[]> m_videoram;
- u8 m_vint_state;
- u8 m_xint_state;
- u8 m_qint_state;
- u8 m_irq_base;
- u8 m_sound_return;
- offs_t m_itech020_prot_address;
- int m_special_result;
- int m_p1_effx;
- int m_p1_effy;
- int m_p1_lastresult;
- attotime m_p1_lasttime;
- int m_p2_effx;
- int m_p2_effy;
- int m_p2_lastresult;
- attotime m_p2_lasttime;
- u8 m_written[0x8000];
- u16 m_xfer_xcount;
- u16 m_xfer_ycount;
- u16 m_xfer_xcur;
- u16 m_xfer_ycur;
- rectangle m_clip_rect;
- rectangle m_scaled_clip_rect;
- rectangle m_clip_save;
- emu_timer *m_scanline_timer;
- u32 m_grom_bank;
- u16 m_color_latch[2];
- u8 m_enable_latch[2];
- u16 *m_videoplane[2];
-
- // configuration at init time
- u8 m_planes;
- u16 m_vram_height;
- u32 m_vram_mask;
- u32 m_vram_xmask;
- u32 m_vram_ymask;
- u32 m_grom_bank_mask;
-
- void int1_ack_w(u16 data);
- u8 trackball_r();
- u8 trackball_p2_r();
- u16 trackball_8bit_r();
- u32 trackball32_4bit_p1_r();
- u32 trackball32_4bit_p2_r();
- u32 trackball32_4bit_combined_r();
- u16 wcbowl_prot_result_r();
- u8 itech020_prot_result_r();
- u32 gt2kp_prot_result_r();
- u32 gtclass_prot_result_r();
- void sound_bank_w(u8 data);
- void sound_data_w(u8 data);
- u8 sound_return_r();
- void sound_return_w(u8 data);
- u8 sound_data_buffer_r();
- void sound_control_w(u8 data);
- void firq_clear_w(u8 data);
- void timekill_colora_w(u8 data);
- void timekill_colorbc_w(u8 data);
- void timekill_intensity_w(u8 data);
- template<unsigned Layer> void color_w(u8 data);
- void bloodstm_plane_w(u8 data);
- void itech020_plane_w(u8 data);
- void bloodstm_paletteram_w(offs_t offset, u16 data, u16 mem_mask = u16(~0));
- void video_w(offs_t offset, u16 data, u16 mem_mask = u16(~0));
- u16 video_r(offs_t offset);
- void bloodstm_video_w(offs_t offset, u16 data, u16 mem_mask = u16(~0));
- u16 bloodstm_video_r(offs_t offset);
- void pia_portb_out(u8 data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void init_program_rom();
- void init_sftm_common(int prot_addr);
- void init_shuffle_bowl_common(int prot_addr);
- void install_timekeeper();
- void init_gt_common();
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- WRITE_LINE_MEMBER(generate_int1);
- TIMER_CALLBACK_MEMBER(scanline_interrupt);
- inline offs_t compute_safe_address(int x, int y);
- inline void disable_clipping();
- inline void enable_clipping();
- virtual void logblit(const char *tag);
- void update_interrupts(int fast);
- void draw_raw(u16 *base, u16 color);
- void draw_raw_widthpix(u16 *base, u16 color);
- virtual void command_blit_raw();
- virtual void command_shift_reg();
- inline void draw_rle_fast(u16 *base, u16 color);
- inline void draw_rle_fast_xflip(u16 *base, u16 color);
- inline void draw_rle_slow(u16 *base, u16 color);
- void draw_rle(u16 *base, u16 color);
- virtual void shiftreg_clear(u16 *base, u16 *zbase);
- void handle_video_command();
- virtual void update_interrupts(int vint, int xint, int qint);
- void bloodstm_map(address_map &map);
- void itech020_map(address_map &map);
- void sound_020_map(address_map &map);
- void sound_map(address_map &map);
- void timekill_map(address_map &map);
- void pubball_map(address_map &map);
-};
-
-class drivedge_state : public itech32_state
-{
-public:
- drivedge_state(const machine_config &mconfig, device_type type, const char *tag) :
- itech32_state(mconfig, type, tag),
- m_dsp(*this, "dsp%u", 1U),
- m_zbuf_control(*this, "zctl"),
- m_tms1_boot(*this, "tms1_boot"),
- m_tms1_ram(*this, "tms1_ram"),
- m_tms2_ram(*this, "tms2_ram"),
- m_leds(*this, "led%u", 0U),
- m_steer(*this, "STEER"),
- m_gas(*this, "GAS")
- { }
-
- void drivedge(machine_config &config);
-
- virtual void driver_init() override;
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- u16 steering_r();
- u16 gas_r();
-
- u32 tms1_speedup_r(address_space &space);
- u32 tms2_speedup_r(address_space &space);
- void tms_reset_assert_w(u32 data);
- void tms_reset_clear_w(u32 data);
- void tms1_68k_ram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void tms2_68k_ram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void tms1_trigger_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void tms2_trigger_w(offs_t offset, u32 data, u32 mem_mask = ~0);
-
- void zbuf_control_w(offs_t offset, u32 data, u32 mem_mask = u32(~0));
-
- void portb_out(u8 data);
- DECLARE_WRITE_LINE_MEMBER(turbo_light);
-
- void main_map(address_map &map);
- void tms1_map(address_map &map);
- void tms2_map(address_map &map);
- virtual void nvram_init(nvram_device &nvram, void *base, size_t length) override;
-
- virtual void logblit(const char *tag) override;
- virtual void shiftreg_clear(u16 *base, u16 *zbase) override;
- virtual void command_blit_raw() override;
- virtual void command_shift_reg() override;
- void draw_raw(u16 *base, u16 *zbase, u16 color);
-
- required_device_array<cpu_device, 2> m_dsp;
- required_shared_ptr<u32> m_zbuf_control;
- required_shared_ptr<u32> m_tms1_boot;
- required_shared_ptr<u32> m_tms1_ram;
- required_shared_ptr<u32> m_tms2_ram;
- output_finder<4> m_leds;
- required_ioport m_steer;
- required_ioport m_gas;
-
- u8 m_tms_spinning[2];
-};
-
-class shoottv_state : public itech32_state
-{
-public:
- shoottv_state(const machine_config &mconfig, device_type type, const char *tag) :
- itech32_state(mconfig, type, tag),
- m_buttons(*this, "P%u", 1U),
- m_dips(*this, "DIPS"),
- m_gun_x(*this, "GUNX%u", 1U),
- m_gun_y(*this, "GUNY%u", 1U),
- m_gun_timer(nullptr)
- { }
-
- void shoottv(machine_config &config);
-
-private:
- void driver_init() override;
- void video_start() override;
-
- void update_interrupts(int vint, int xint, int qint) override;
-
- void shoottv_map(address_map &map);
-
- TIMER_CALLBACK_MEMBER(gun_interrupt);
-
- required_ioport_array<3> m_buttons;
- required_ioport m_dips;
- required_ioport_array<2> m_gun_x;
- required_ioport_array<2> m_gun_y;
- emu_timer *m_gun_timer;
-};
-
-#endif // MAME_INCLUDES_ITECH32_H
diff --git a/src/mame/includes/itech8.h b/src/mame/includes/itech8.h
deleted file mode 100644
index f156cd05e03..00000000000
--- a/src/mame/includes/itech8.h
+++ /dev/null
@@ -1,265 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Incredible Technologies/Strata system
- (8-bit blitter variant)
-
-**************************************************************************/
-
-#include "machine/gen_latch.h"
-#include "machine/ticket.h"
-#include "machine/timer.h"
-#include "machine/nvram.h"
-#include "video/tlc34076.h"
-#include "video/tms34061.h"
-#include "screen.h"
-
-
-class itech8_state : public driver_device
-{
-public:
- itech8_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_subcpu(*this, "sub"),
- m_nvram(*this, "nvram"),
- m_soundlatch(*this, "soundlatch"),
- m_tms34061(*this, "tms34061"),
- m_tlc34076(*this, "tlc34076"),
- m_screen(*this, "screen"),
- m_ticket(*this, "ticket"),
- m_grom(*this, "grom"),
- m_mainbank(*this, "mainbank"),
- m_fixed(*this, "fixed"),
- m_an(*this, { { "AN_C", "AN_D", "AN_E", "AN_F" } }),
- m_fakex(*this, "FAKEX"),
- m_fakey(*this, "FAKEY"),
- m_p1(*this, "P1"),
- m_p2(*this, "P2"),
- m_visarea(0, 0, 0, 0),
- m_bankxor(0)
- {}
-
- void rimrockn(machine_config &config);
- void gtg2(machine_config &config);
- void slikshot_lo(machine_config &config);
- void slikshot_lo_noz80(machine_config &config);
- void ninclown(machine_config &config);
- void sstrike(machine_config &config);
- void stratab_hi(machine_config &config);
- void hstennis_lo(machine_config &config);
- void wfortune(machine_config &config);
- void stratab_lo(machine_config &config);
- void slikshot_hi(machine_config &config);
- void hstennis_hi(machine_config &config);
-
- void init_invbank();
- void init_peggle();
- void init_slikshot();
- void init_neckneck();
- void init_arligntn();
- void init_hstennis();
-
- DECLARE_READ_LINE_MEMBER(special_r);
- DECLARE_CUSTOM_INPUT_MEMBER(gtg_mux);
-
-protected:
- static constexpr uint32_t YBUFFER_COUNT = 15;
- static constexpr uint32_t VRAM_SIZE = 0x40000;
- static constexpr uint32_t VRAM_MASK = VRAM_SIZE - 1;
-
- enum
- {
- TIMER_IRQ_OFF,
- TIMER_BEHIND_BEAM_UPDATE,
- TIMER_BLITTER_DONE,
- TIMER_DELAYED_Z80_CONTROL,
- TIMER_BASE_LAST = TIMER_DELAYED_Z80_CONTROL
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<cpu_device> m_subcpu;
- required_device<nvram_device> m_nvram;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<tms34061_device> m_tms34061;
- required_device<tlc34076_device> m_tlc34076;
- required_device<screen_device> m_screen;
- required_device<ticket_dispenser_device> m_ticket;
- required_region_ptr<uint8_t> m_grom;
- optional_memory_bank m_mainbank;
- optional_memory_bank m_fixed;
- optional_ioport_array<4> m_an;
- optional_ioport m_fakex;
- optional_ioport m_fakey;
- optional_ioport m_p1;
- optional_ioport m_p2;
-
- rectangle m_visarea;
-
- uint8_t m_grom_bank;
- uint8_t m_blitter_int;
- uint8_t m_tms34061_int;
- uint8_t m_periodic_int;
- uint8_t m_pia_porta_data;
- uint8_t m_pia_portb_data;
- uint8_t m_z80_ctrl;
- uint8_t m_z80_port_val;
- uint8_t m_z80_clear_to_send;
- uint16_t m_sensor0;
- uint16_t m_sensor1;
- uint16_t m_sensor2;
- uint16_t m_sensor3;
- uint8_t m_curvx;
- uint8_t m_curvy;
- uint8_t m_curx;
- int8_t m_xbuffer[YBUFFER_COUNT];
- int8_t m_ybuffer[YBUFFER_COUNT];
- int m_ybuffer_next;
- int m_curxpos;
- int m_last_ytotal;
- uint8_t m_crosshair_vis;
- uint8_t m_blitter_data[16];
- uint8_t m_blit_in_progress;
- uint8_t m_page_select;
- offs_t m_fetch_offset;
- uint8_t m_fetch_rle_count;
- uint8_t m_fetch_rle_value;
- uint8_t m_fetch_rle_literal;
- emu_timer *m_irq_off_timer;
- emu_timer *m_behind_beam_update_timer;
- emu_timer *m_blitter_done_timer;
- emu_timer *m_delayed_z80_control_timer;
- int m_bankxor;
-
- // common
- DECLARE_WRITE_LINE_MEMBER(generate_tms34061_interrupt);
- void nmi_ack_w(uint8_t data);
- void blitter_bank_w(offs_t offset, uint8_t data);
- void rimrockn_bank_w(uint8_t data);
- void pia_portb_out(uint8_t data);
- void gtg2_sound_data_w(uint8_t data);
- void grom_bank_w(uint8_t data);
- void palette_w(offs_t offset, uint8_t data);
- void page_w(u8 data);
- uint8_t blitter_r(offs_t offset);
- void blitter_w(offs_t offset, uint8_t data);
- void tms34061_w(offs_t offset, uint8_t data);
- uint8_t tms34061_r(offs_t offset);
- void pia_porta_out(uint8_t data);
- void ym2203_portb_out(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- DECLARE_VIDEO_START(slikshot);
- DECLARE_MACHINE_START(sstrike);
-
- uint32_t screen_update_2layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_slikshot(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_2page(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_2page_large(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(generate_nmi);
- DECLARE_WRITE_LINE_MEMBER(ninclown_irq);
- TIMER_CALLBACK_MEMBER(irq_off);
- TIMER_CALLBACK_MEMBER(behind_the_beam_update);
- TIMER_CALLBACK_MEMBER(blitter_done);
-
- inline uint8_t fetch_next_raw();
- inline void consume_raw(int count);
- inline uint8_t fetch_next_rle();
- inline void consume_rle(int count);
- void perform_blit();
- void update_interrupts(int periodic, int tms34061, int blitter);
-
- /*----------- defined in machine/itech8.cpp -----------*/
-
- uint8_t slikz80_port_r();
- void slikz80_port_w(uint8_t data);
-
- uint8_t slikshot_z80_r();
- uint8_t slikshot_z80_control_r();
- void slikshot_z80_control_w(uint8_t data);
-
- void inters_to_vels(uint16_t inter1, uint16_t inter2, uint16_t inter3, uint8_t beams,
- uint8_t *xres, uint8_t *vxres, uint8_t *vyres);
- void vels_to_inters(uint8_t x, uint8_t vx, uint8_t vy,
- uint16_t *inter1, uint16_t *inter2, uint16_t *inter3, uint8_t *beams);
- void inters_to_words(uint16_t inter1, uint16_t inter2, uint16_t inter3, uint8_t *beams,
- uint16_t *word1, uint16_t *word2, uint16_t *word3);
-
- void words_to_sensors(uint16_t word1, uint16_t word2, uint16_t word3, uint8_t beams,
- uint16_t *sens0, uint16_t *sens1, uint16_t *sens2, uint16_t *sens3);
- void compute_sensors();
- TIMER_CALLBACK_MEMBER( delayed_z80_control_w );
-
- // ninja clowns
- uint16_t rom_constant_r(offs_t offset);
- uint8_t ninclown_palette_r(offs_t offset);
- void ninclown_palette_w(offs_t offset, uint8_t data);
-
- void itech8_sound_ym2203(machine_config &config);
- void itech8_sound_ym2608b(machine_config &config);
- void itech8_sound_ym3812(machine_config &config);
- void itech8_sound_ym3812_external(machine_config &config);
- void itech8_core_devices(machine_config &config);
- void itech8_core_lo(machine_config &config);
- void itech8_core_hi(machine_config &config);
- void common_hi_map(address_map &map);
- void common_lo_map(address_map &map);
- void gtg2_map(address_map &map);
- void ninclown_map(address_map &map);
- void rimrockn_map(address_map &map);
- void slikshot_map(address_map &map);
- void slikz80_io_map(address_map &map);
- void slikz80_mem_map(address_map &map);
- void sound2203_map(address_map &map);
- void sound2608b_map(address_map &map);
- void sound3812_external_map(address_map &map);
- void sound3812_map(address_map &map);
- void sstrike_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-class grmatch_state : public itech8_state
-{
-public:
- grmatch_state(const machine_config &mconfig, device_type type, const char *tag) :
- itech8_state(mconfig, type, tag),
- m_palette_timer(nullptr)
- {
- }
-
- void grmatch(machine_config &config);
-
- void driver_init() override;
-
-protected:
- void machine_start() override;
- void machine_reset() override;
-
- enum
- {
- TIMER_PALETTE = TIMER_BASE_LAST+1,
- };
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- void palette_w(uint8_t data);
- void xscroll_w(uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void palette_update();
-
- emu_timer *m_palette_timer;
- uint8_t m_palcontrol;
- uint8_t m_xscroll;
- rgb_t m_palette[2][16];
-
- void grmatch_map(address_map &map);
-};
diff --git a/src/mame/includes/jack.h b/src/mame/includes/jack.h
deleted file mode 100644
index c0a1f5230af..00000000000
--- a/src/mame/includes/jack.h
+++ /dev/null
@@ -1,112 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver
-
-/*************************************************************************
-
- Jack the Giant Killer
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_JACK_H
-#define MAME_INCLUDES_JACK_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class jack_state : public driver_device
-{
-public:
- jack_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_spriteram(*this, "spriteram"),
- m_scrollram(*this, "scrollram"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void joinem(machine_config &config);
- void treahunt(machine_config &config);
- void unclepoo(machine_config &config);
- void striv(machine_config &config);
- void jack(machine_config &config);
-
- void init_zzyzzyxx();
- void init_striv();
- void init_treahunt();
- void init_loverboy();
- void init_jack();
-
-private:
- /* device- and memory pointers */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_scrollram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* misc */
- int m_timer_rate;
- uint8_t m_joinem_nmi_enable;
- uint8_t m_joinem_palette_bank;
- int m_question_address;
- int m_question_rom;
- int m_remap_address[16];
-
- IRQ_CALLBACK_MEMBER(jack_sh_irq_ack);
- void joinem_control_w(uint8_t data);
- void joinem_scroll_w(offs_t offset, uint8_t data);
- uint8_t striv_question_r(offs_t offset);
- void jack_videoram_w(offs_t offset, uint8_t data);
- void jack_colorram_w(offs_t offset, uint8_t data);
- uint8_t jack_flipscreen_r(offs_t offset);
- void jack_flipscreen_w(offs_t offset, uint8_t data);
- uint8_t timer_r();
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_cols_flipy);
- TILE_GET_INFO_MEMBER(joinem_get_bg_tile_info);
- DECLARE_VIDEO_START(joinem);
- void joinem_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(striv);
- DECLARE_MACHINE_RESET(striv);
- DECLARE_MACHINE_START(joinem);
- DECLARE_MACHINE_RESET(joinem);
-
- uint32_t screen_update_jack(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_striv(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_joinem(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- INTERRUPT_GEN_MEMBER(joinem_vblank_irq);
- void jack_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void joinem_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void treahunt_decode( );
- void decrypted_opcodes_map(address_map &map);
- void jack_map(address_map &map);
- void joinem_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
- void striv_map(address_map &map);
- void unclepoo_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_JACK_H
diff --git a/src/mame/includes/jackal.h b/src/mame/includes/jackal.h
deleted file mode 100644
index 56818414488..00000000000
--- a/src/mame/includes/jackal.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-// thanks-to:Kenneth Lin (original driver author)
-#ifndef MAME_INCLUDES_JACKAL_H
-#define MAME_INCLUDES_JACKAL_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-#define MASTER_CLOCK XTAL(18'432'000)
-#define SOUND_CLOCK XTAL(3'579'545)
-
-
-
-class jackal_state : public driver_device
-{
-public:
- jackal_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoctrl(*this, "videoctrl"),
- m_dials(*this, "DIAL%u", 0U),
- m_mastercpu(*this, "master"),
- m_slavecpu(*this, "slave"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void jackal(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoctrl;
- uint8_t * m_scrollram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* misc */
- int m_irq_enable;
- uint8_t *m_rambank;
- uint8_t *m_spritebank;
- optional_ioport_array<2> m_dials;
-
- /* devices */
- required_device<cpu_device> m_mastercpu;
- required_device<cpu_device> m_slavecpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- uint8_t jackalr_rotary_r(offs_t offset);
- void jackal_flipscreen_w(uint8_t data);
- uint8_t jackal_zram_r(offs_t offset);
- uint8_t jackal_voram_r(offs_t offset);
- uint8_t jackal_spriteram_r(offs_t offset);
- void jackal_rambank_w(uint8_t data);
- void jackal_zram_w(offs_t offset, uint8_t data);
- void jackal_voram_w(offs_t offset, uint8_t data);
- void jackal_spriteram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void jackal_palette(palette_device &palette) const;
- uint32_t screen_update_jackal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void jackal_mark_tile_dirty( int offset );
- void draw_background( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_sprites_region( bitmap_ind16 &bitmap, const rectangle &cliprect, const uint8_t *sram, int length, int bank );
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void master_map(address_map &map);
- void slave_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_JACKAL_H
diff --git a/src/mame/includes/jaguar.h b/src/mame/includes/jaguar.h
deleted file mode 100644
index 99a3807d626..00000000000
--- a/src/mame/includes/jaguar.h
+++ /dev/null
@@ -1,415 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles,Nathan Woods,Angelo Salese, Robbbert
-/*************************************************************************
-
- Atari Jaguar hardware
-
-*************************************************************************/
-
-#include "cpu/jaguar/jaguar.h"
-#include "machine/nvram.h"
-#include "sound/dac.h"
-#include "machine/eepromser.h"
-#include "machine/vt83c461.h"
-#include "imagedev/snapquik.h"
-#include "video/jag_blitter.h"
-#include "cdrom.h"
-#include "imagedev/chd_cd.h"
-#include "screen.h"
-#include "emupal.h"
-
-#ifndef ENABLE_SPEEDUP_HACKS
-#define ENABLE_SPEEDUP_HACKS 1
-#endif
-
-/* CoJag and Jaguar have completely different XTALs, pixel clock in Jaguar is the same as the GPU one */
-#define COJAG_PIXEL_CLOCK XTAL(14'318'181)
-#define JAGUAR_CLOCK XTAL(26'590'906) // NTSC
-// XTAL(26'593'900) PAL, TODO
-
-class jaguar_state : public driver_device
-{
-public:
- jaguar_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gpu(*this, "gpu")
- , m_blitter(*this, "blitter")
- , m_dsp(*this, "dsp")
- , m_ldac(*this, "ldac")
- , m_rdac(*this, "rdac")
- , m_nvram(*this, "nvram")
- , m_rom_base(*this, "mainrom")
- , m_cart_base(*this, "cart")
- , m_dsp_ram(*this, "dspram")
- , m_wave_rom(*this, "waverom")
- , m_shared_ram(*this, "sharedram")
- , m_gpu_ram(*this, "gpuram")
- , m_gpu_clut(*this, "gpuclut")
- , m_romboard_region(*this, "romboard")
- , m_mainram(*this, "mainram")
- , m_mainram2(*this, "mainram2")
- , m_maingfxbank(*this, "maingfxbank")
- , m_gpugfxbank(*this, "gpugfxbank")
- , m_mainsndbank(*this, "mainsndbank")
- , m_dspsndbank(*this, "dspsndbank")
- , m_config_io(*this, "CONFIG")
- , m_joy(*this, "JOY%u", 0U)
- , m_buttons(*this, "BUTTONS%u", 0U)
- , m_system(*this, "SYSTEM")
- , m_is_r3000(false)
- , m_is_cojag(false)
- , m_hacks_enabled(false)
- , m_using_cart(false)
- , m_joystick_data(0)
- , m_misc_control_data(0)
- , m_eeprom_enable(true)
- , m_gpu_jump_address(nullptr)
- , m_gpu_command_pending(false)
- , m_gpu_spin_pc(0)
- , m_main_speedup(nullptr)
- , m_main_speedup_hits(0)
- , m_main_speedup_last_cycles(0)
- , m_main_speedup_max_cycles(0)
- , m_main_gpu_wait(nullptr)
- , m_eeprom_bit_count(0)
- , m_protection_check(0)
- , m_eeprom(*this, "eeprom")
- , m_ide(*this, "ide")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- {
- }
-
- void cojag68k(machine_config &config);
- void cojagr3k(machine_config &config);
- void cojagr3k_rom(machine_config &config);
- void jaguar(machine_config &config);
-
- void init_jaguar();
- void init_area51mx();
- void init_maxforce();
- void init_freezeat();
- void init_fishfren();
- void init_a51mxr3k();
- void init_area51();
- void init_freezeat4();
- void init_freezeat5();
- void init_freezeat6();
- void init_vcircle();
- void init_freezeat3();
- void init_freezeat2();
- void init_area51a();
-
-protected:
- void console_base_map(address_map &map);
- void console_base_gpu_map(address_map &map);
-
- // device overrides
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void sound_start() override;
- virtual void video_start() override;
- virtual void device_postload();
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- void video_config(machine_config &config, const XTAL clock);
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<jaguargpu_cpu_device> m_gpu;
- required_device<jag_blitter_device> m_blitter;
- required_device<jaguardsp_cpu_device> m_dsp;
- required_device<dac_word_interface> m_ldac;
- required_device<dac_word_interface> m_rdac;
-
- // memory
- optional_shared_ptr<uint32_t> m_nvram; // not used on console
- optional_region_ptr<uint16_t> m_rom_base;
- optional_region_ptr<uint32_t> m_cart_base; // not used in cojag
- required_shared_ptr<uint32_t> m_dsp_ram;
- required_region_ptr<uint16_t> m_wave_rom;
- required_shared_ptr<uint32_t> m_shared_ram;
- required_shared_ptr<uint32_t> m_gpu_ram;
- required_shared_ptr<uint32_t> m_gpu_clut;
- optional_memory_region m_romboard_region;
- optional_shared_ptr<uint32_t> m_mainram;
- optional_shared_ptr<uint32_t> m_mainram2;
-
- optional_memory_bank m_maingfxbank;
- optional_memory_bank m_gpugfxbank;
- optional_memory_bank m_mainsndbank;
- optional_memory_bank m_dspsndbank;
- optional_ioport m_config_io;
- optional_ioport_array<8> m_joy;
- optional_ioport_array<8> m_buttons;
- optional_ioport m_system;
-
- // configuration
- bool m_is_r3000;
- bool m_is_cojag;
- bool m_hacks_enabled;
- int m_pixel_clock;
- bool m_using_cart;
-
- uint32_t m_joystick_data;
-
-private:
- uint32_t m_misc_control_data;
- bool m_eeprom_enable;
- uint32_t *m_gpu_jump_address;
- bool m_gpu_command_pending;
- uint32_t m_gpu_spin_pc;
- uint32_t *m_main_speedup;
- int m_main_speedup_hits;
- uint64_t m_main_speedup_last_cycles;
- uint64_t m_main_speedup_max_cycles;
- uint32_t *m_main_gpu_wait;
-
- // driver data
- uint8_t m_eeprom_bit_count;
- uint8_t m_protection_check; /* 0 = check hasn't started yet; 1= check in progress; 2 = check is finished. */
-
- // audio data
- uint16_t m_dsp_regs[0x40/2];
- uint16_t m_serial_frequency;
- uint8_t m_gpu_irq_state;
- emu_timer *m_serial_timer;
-
- // blitter variables
- uint32_t m_blitter_regs[40];
- uint16_t m_gpu_regs[0x100/2];
- emu_timer *m_object_timer;
- uint8_t m_cpu_irq_state;
- bitmap_rgb32 m_screen_bitmap;
- uint8_t m_blitter_status;
- pen_t m_pen_table[65536];
- uint8_t m_blend_y[65536];
- uint8_t m_blend_cc[65536];
-
- static void (jaguar_state::*const bitmap4[8])(uint16_t *, int32_t, int32_t, uint32_t *, int32_t, uint16_t *);
- static void (jaguar_state::*const bitmap8[8])(uint16_t *, int32_t, int32_t, uint32_t *, int32_t, uint16_t *);
- static void (jaguar_state::*const bitmap16[8])(uint16_t *, int32_t, int32_t, uint32_t *, int32_t);
- static void (jaguar_state::*const bitmap32[8])(uint16_t *, int32_t, int32_t, uint32_t *, int32_t);
-
- void eeprom_w(uint32_t data);
- uint32_t eeprom_clk();
- uint32_t eeprom_cs();
- uint32_t misc_control_r();
- void misc_control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t gpuctrl_r(offs_t offset, uint32_t mem_mask = ~0);
- void gpuctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t dspctrl_r(offs_t offset, uint32_t mem_mask = ~0);
- void dspctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t joystick_r();
- void joystick_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void latch_w(uint32_t data);
- uint32_t eeprom_data_r(offs_t offset);
- void eeprom_enable_w(uint32_t data);
- void eeprom_data_w(offs_t offset, uint32_t data);
- void gpu_jump_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t gpu_jump_r();
- uint32_t cojagr3k_main_speedup_r();
- uint32_t main_gpu_wait_r();
- void area51_main_speedup_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void area51mx_main_speedup_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint16_t gpuctrl_r16(offs_t offset, uint16_t mem_mask = ~0);
- void gpuctrl_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t blitter_r16(offs_t offset, uint16_t mem_mask = ~0);
- void blitter_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t serial_r16(offs_t offset);
- void serial_w16(offs_t offset, uint16_t data);
- uint16_t dspctrl_r16(offs_t offset, uint16_t mem_mask = ~0);
- void dspctrl_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t eeprom_cs16(offs_t offset);
- uint16_t eeprom_clk16(offs_t offset);
- void eeprom_w16(offs_t offset, uint16_t data);
- uint16_t joystick_r16(offs_t offset);
- void joystick_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint32_t shared_ram_r(offs_t offset);
- void shared_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t rom_base_r(offs_t offset);
- uint32_t wave_rom_r(offs_t offset);
- uint32_t dsp_ram_r(offs_t offset);
- void dsp_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t gpu_clut_r(offs_t offset);
- void gpu_clut_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t gpu_ram_r(offs_t offset);
- void gpu_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint16_t shared_ram_r16(offs_t offset);
- void shared_ram_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t cart_base_r16(offs_t offset);
- uint16_t dsp_ram_r16(offs_t offset);
- void dsp_ram_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t gpu_clut_r16(offs_t offset);
- void gpu_clut_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t gpu_ram_r16(offs_t offset);
- void gpu_ram_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- // from audio/jaguar.cpp
- uint16_t jerry_regs_r(offs_t offset);
- void jerry_regs_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint32_t serial_r(offs_t offset);
- void serial_w(offs_t offset, uint32_t data);
- void serial_update();
-
- // from video/jaguar.cpp
- uint32_t blitter_r(offs_t offset, uint32_t mem_mask = ~0);
- void blitter_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint16_t tom_regs_r(offs_t offset);
- void tom_regs_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint32_t cojag_gun_input_r(offs_t offset);
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void jagpal_ycc(palette_device &palette) const;
-
- DECLARE_WRITE_LINE_MEMBER( gpu_cpu_int );
- DECLARE_WRITE_LINE_MEMBER( dsp_cpu_int );
- DECLARE_WRITE_LINE_MEMBER( external_int );
-
- image_init_result quickload_cb(device_image_interface &image);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( cart_load );
- void cpu_space_map(address_map &map);
- void dsp_map(address_map &map);
- void dsp_rom_map(address_map &map);
- void gpu_map(address_map &map);
- void gpu_rom_map(address_map &map);
- void jag_gpu_dsp_map(address_map &map);
- void jaguar_map(address_map &map);
- void m68020_map(address_map &map);
- void r3000_map(address_map &map);
- void r3000_rom_map(address_map &map);
-
- // timer IDs
- enum
- {
- TID_SCANLINE,
- TID_BLITTER_DONE,
- TID_PIT,
- TID_SERIAL,
- TID_GPU_SYNC
- };
-
- void gpu_suspend() { m_gpu->suspend(SUSPEND_REASON_SPIN, 1); }
- void gpu_resume() { m_gpu->resume(SUSPEND_REASON_SPIN); }
- void dsp_suspend() { m_dsp->suspend(SUSPEND_REASON_SPIN, 1); }
- void dsp_resume() { m_dsp->resume(SUSPEND_REASON_SPIN); }
-
- void fix_endian( void *base, uint32_t size );
- void cojag_common_init(uint16_t gpu_jump_offs, uint16_t spin_pc);
- void init_freeze_common(offs_t main_speedup_addr);
-
- // from audio/jaguar.cpp
- void update_gpu_irq();
- void dsp_flags_w(address_space &space, offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- // from video/jaguar.cpp
- void get_crosshair_xy(int player, int &x, int &y);
- int effective_hvalue(int value);
- bool adjust_object_timer(int vc);
- inline void trigger_host_cpu_irq(int level);
- inline void verify_host_cpu_irq();
- uint8_t *memory_base(uint32_t offset) { return reinterpret_cast<uint8_t *>(m_gpu->space(AS_PROGRAM).get_read_ptr(offset)); }
- void blitter_run();
- void scanline_update(int param);
- void set_palette(uint16_t vmode);
-
- /* from jagobj.cpp */
- void jagobj_init();
- uint32_t *process_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, bool logit);
- uint32_t *process_scaled_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, bool logit);
- uint32_t *process_branch(uint32_t *objdata, int vc, bool logit);
- void process_object_list(int vc, uint16_t *_scanline);
- void bitmap_4_draw(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint8_t flags, int32_t dxpos, uint16_t *clutbase);
- void bitmap_4_0(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_4_1(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_4_2(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_4_3(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_4_4(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_4_5(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_4_6(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_4_7(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_8_draw(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint8_t flags, int32_t dxpos, uint16_t *clutbase);
- void bitmap_8_0(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_8_1(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_8_2(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_8_3(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_8_4(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_8_5(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_8_6(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_8_7(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
- void bitmap_16_draw(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint8_t flags, int32_t dxpos);
- void bitmap_16_0(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_16_1(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_16_2(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_16_3(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_16_4(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_16_5(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_16_6(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_16_7(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_32_draw(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint8_t flags, int32_t dxpos);
- void bitmap_32_0(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_32_1(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_32_2(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_32_3(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_32_4(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_32_5(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_32_6(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
- void bitmap_32_7(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos);
-
- /* from jagblit.cpp */
- void generic_blitter(uint32_t command, uint32_t a1flags, uint32_t a2flags);
- void blitter_09800001_010020_010020(uint32_t command, uint32_t a1flags, uint32_t a2flags);
- void blitter_09800009_000020_000020(uint32_t command, uint32_t a1flags, uint32_t a2flags);
- void blitter_01800009_000028_000028(uint32_t command, uint32_t a1flags, uint32_t a2flags);
- void blitter_01800001_000018_000018(uint32_t command, uint32_t a1flags, uint32_t a2flags);
- void blitter_01c00001_000018_000018(uint32_t command, uint32_t a1flags, uint32_t a2flags);
- void blitter_00010000_xxxxxx_xxxxxx(uint32_t command, uint32_t a1flags, uint32_t a2flags);
- void blitter_01800001_xxxxxx_xxxxxx(uint32_t command, uint32_t a1flags, uint32_t a2flags);
- void blitter_x1800x01_xxxxxx_xxxxxx(uint32_t command, uint32_t a1flags, uint32_t a2flags);
-
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<vt83c461_device> m_ide;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-};
-
-class jaguarcd_state : public jaguar_state
-{
-public:
- jaguarcd_state(const machine_config &mconfig, device_type type, const char *tag)
- : jaguar_state(mconfig, type, tag)
- , m_cdrom(*this, "cdrom")
- , m_cd_bios(*this, "cdbios")
- {
- }
-
- void jaguarcd(machine_config &config);
-
- void init_jaguarcd();
-
-protected:
- virtual void machine_reset() override;
-
-private:
- uint16_t butch_regs_r16(offs_t offset);
- void butch_regs_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint32_t butch_regs_r(offs_t offset);
- void butch_regs_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t cd_bios_r(offs_t offset);
-
- void jaguarcd_map(address_map &map);
- void jagcd_gpu_dsp_map(address_map &map);
-
- // devices
- required_device<cdrom_image_device> m_cdrom;
- required_region_ptr<uint16_t> m_cd_bios;
-
- uint32_t m_butch_regs[0x40/4];
- uint32_t m_butch_cmd_response[0x102];
- uint8_t m_butch_cmd_index;
- uint8_t m_butch_cmd_size;
-
- cdrom_file *m_cd_file;
- //const cdrom_toc* m_toc;
-};
diff --git a/src/mame/includes/jailbrek.h b/src/mame/includes/jailbrek.h
deleted file mode 100644
index b7a3aff3226..00000000000
--- a/src/mame/includes/jailbrek.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-/***************************************************************************
-
- Jailbreak
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_JAILBREK_H
-#define MAME_INCLUDES_JAILBREK_H
-
-#pragma once
-
-#include "sound/vlm5030.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#define MASTER_CLOCK XTAL(18'432'000)
-#define VOICE_CLOCK XTAL(3'579'545)
-
-class jailbrek_state : public driver_device
-{
-public:
- jailbrek_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_scroll_x(*this, "scroll_x"),
- m_scroll_dir(*this, "scroll_dir"),
- m_maincpu(*this, "maincpu"),
- m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void jailbrek(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scroll_x;
- required_shared_ptr<uint8_t> m_scroll_dir;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<vlm5030_device> m_vlm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* misc */
- uint8_t m_irq_enable;
- uint8_t m_nmi_enable;
- void ctrl_w(uint8_t data);
- void coin_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- uint8_t speech_r();
- void speech_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void jailbrek_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(interrupt_nmi);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void jailbrek_map(address_map &map);
- void vlm_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_JAILBREK_H
diff --git a/src/mame/includes/jedi.h b/src/mame/includes/jedi.h
deleted file mode 100644
index a632d829b35..00000000000
--- a/src/mame/includes/jedi.h
+++ /dev/null
@@ -1,126 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Dan Boris, Aaron Giles
-/*************************************************************************
-
- Atari Return of the Jedi hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_JEDI_H
-#define MAME_INCLUDES_JEDI_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/x2212.h"
-#include "sound/tms5220.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define DEBUG_GFXDECODE 0 // GFX layout for debug
-
-/* oscillators and clocks */
-#define JEDI_MAIN_CPU_OSC (XTAL(10'000'000))
-#define JEDI_AUDIO_CPU_OSC (XTAL(12'096'000))
-#define JEDI_MAIN_CPU_CLOCK (JEDI_MAIN_CPU_OSC / 4)
-#define JEDI_AUDIO_CPU_CLOCK (JEDI_AUDIO_CPU_OSC / 8)
-#define JEDI_POKEY_CLOCK (JEDI_AUDIO_CPU_CLOCK)
-#define JEDI_TMS5220_CLOCK (JEDI_AUDIO_CPU_OSC / 2 / 9) /* div by 9 is via a binary counter that counts from 7 to 16 */
-
-
-class jedi_state : public driver_device
-{
-public:
- jedi_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_backgroundram(*this, "backgroundram"),
- m_foregroundram(*this, "foregroundram"),
- m_spriteram(*this, "spriteram"),
- m_smoothing_table(*this, "smoothing_table"),
- m_tx_gfx(*this, "tx_gfx"),
- m_bg_gfx(*this, "bg_gfx"),
- m_spr_gfx(*this, "spr_gfx"),
- m_proms(*this, "proms"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch"),
- m_sacklatch(*this, "sacklatch"),
- m_tms(*this, "tms"),
- m_novram(*this, "novram12%c", 'b'),
-#ifdef DEBUG_GFXDECODE
- m_gfxdecode(*this, "gfxdecode"),
-#endif
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_mainbank(*this, "mainbank")
- { }
-
- DECLARE_CUSTOM_INPUT_MEMBER(jedi_audio_comm_stat_r);
- void jedi(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- void main_irq_ack_w(u8 data);
- void rom_banksel_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_left_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_right_w);
- u8 novram_data_r(address_space &space, offs_t offset);
- void novram_data_w(offs_t offset, u8 data);
- void novram_recall_w(offs_t offset, u8 data);
- void novram_store_w(u8 data);
- void vscroll_w(offs_t offset, u8 data);
- void hscroll_w(offs_t offset, u8 data);
- void irq_ack_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(audio_reset_w);
- u8 audio_comm_stat_r();
- void speech_strobe_w(offs_t offset, u8 data);
- u8 speech_ready_r();
- void speech_reset_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(foreground_bank_w);
- DECLARE_WRITE_LINE_MEMBER(video_off_w);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(generate_interrupt);
- static rgb_t jedi_IRGB_3333(u32 raw);
- void do_pen_lookup(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_background_and_text(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void jedi_audio(machine_config &config);
- void jedi_video(machine_config &config);
- void audio_map(address_map &map);
- void main_map(address_map &map);
-
- /* machine state */
- emu_timer *m_interrupt_timer;
-
- /* video state */
- required_shared_ptr<u8> m_backgroundram;
- required_shared_ptr<u8> m_foregroundram;
- required_shared_ptr<u8> m_spriteram;
- required_shared_ptr<u8> m_smoothing_table;
- required_region_ptr<u8> m_tx_gfx;
- required_region_ptr<u8> m_bg_gfx;
- required_region_ptr<u8> m_spr_gfx;
- required_region_ptr<u8> m_proms;
- u32 m_vscroll;
- u32 m_hscroll;
- bool m_foreground_bank;
- bool m_video_off;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_sacklatch;
- required_device<tms5220_device> m_tms;
- required_device_array<x2212_device, 2> m_novram;
-#ifdef DEBUG_GFXDECODE
- required_device<gfxdecode_device> m_gfxdecode;
-#endif
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_memory_bank m_mainbank;
-};
-
-#endif // MAME_INCLUDES_JEDI_H
diff --git a/src/mame/includes/jpmimpct.h b/src/mame/includes/jpmimpct.h
deleted file mode 100644
index 4731969da3b..00000000000
--- a/src/mame/includes/jpmimpct.h
+++ /dev/null
@@ -1,217 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett
-/***************************************************************************
-
- JPM IMPACT with Video hardware
-
-****************************************************************************/
-#include "machine/meters.h"
-#include "machine/roc10937.h"
-#include "machine/steppers.h"
-#include "machine/timer.h"
-#include "cpu/tms34010/tms34010.h"
-#include "video/bt47x.h"
-#include "machine/i8255.h"
-#include "machine/mc68681.h"
-#include "sound/upd7759.h"
-#include "diserial.h"
-#include "machine/bacta_datalogger.h"
-#include "emupal.h"
-
-
-
-
-class jpmtouch_device : public device_t,
- public device_serial_interface
-{
-public:
- jpmtouch_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
-
- auto rxd_handler() { return m_rxd_handler.bind(); }
-
- DECLARE_WRITE_LINE_MEMBER( output_rxd ) { m_rxd_handler(state); }
-
- void touched(uint8_t x, uint8_t y);
-
-protected:
- jpmtouch_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void device_start() override;
- virtual void device_reset() override;
-
- virtual void tra_callback() override;
- virtual void tra_complete() override;
-
-private:
- void tx_queue();
-
- devcb_write_line m_rxd_handler;
- int8_t m_sending;
- uint8_t m_touch_data[3];
- uint8_t m_sendpos;
-};
-
-DECLARE_DEVICE_TYPE(JPM_TOUCHSCREEN, jpmtouch_device)
-
-class jpmimpct_state : public driver_device
-{
-public:
- jpmimpct_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_meters(*this, "meters")
- , m_datalogger(*this, "datalogger")
- , m_testdemo(*this, "TEST_DEMO")
- , m_digits(*this, "digit%u", 0U)
- , m_cointimer(*this, "cointimer%u", 0U)
- , m_ppi(*this, "ppi8255")
- , m_duart(*this, "main_duart")
- , m_vfd(*this, "vfd")
- , m_upd7759(*this, "upd")
- , m_reel(*this, "reel%u", 0U)
- , m_lamp_output(*this, "lamp%u", 0U)
- { }
-
- void impact_nonvideo(machine_config &config);
- void impact_nonvideo_altreels(machine_config &config);
- void impact_nonvideo_disc(machine_config &config);
-
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_changed);
- template <unsigned N> DECLARE_READ_LINE_MEMBER( coinsense_r ) { return (m_coinstate >> N) & 1; }
-
- DECLARE_READ_LINE_MEMBER(hopper_b_0_r);
- DECLARE_READ_LINE_MEMBER(hopper_b_3_r);
- DECLARE_READ_LINE_MEMBER(hopper_c_4_r);
- DECLARE_READ_LINE_MEMBER(hopper_c_6_r);
- DECLARE_READ_LINE_MEMBER(hopper_c_7_r);
-
-protected:
- void impact_nonvideo_base(machine_config &config);
-
- void base(machine_config &config);
-
- required_device<cpu_device> m_maincpu;
- required_device<meters_device> m_meters;
- required_device<bacta_datalogger_device> m_datalogger;
- required_ioport m_testdemo;
- output_finder<300> m_digits;
-
- uint16_t jpmio_r();
-
- uint16_t unk_r();
- void unk_w(uint16_t data);
-
- void common_map(address_map &map);
-
- int m_lamp_strobe;
-
- void set_duart_1_hack_ip(bool state);
-
- void jpm_draw_lamps(uint16_t data, int lamp_strobe);
-
- TIMER_DEVICE_CALLBACK_MEMBER(duart_set_ip5);
-
- virtual void update_irqs();
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(reel_optic_cb) { if (state) m_optic_pattern |= (1 << N); else m_optic_pattern &= ~(1 << N); }
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(reel_optic_inv_cb) { if (!state) m_optic_pattern |= (1 << N); else m_optic_pattern &= ~(1 << N); }
- template <unsigned N> TIMER_DEVICE_CALLBACK_MEMBER(coinoff) { m_coinstate |= (1 << N); logerror("coin state lowered %d\n", N+1); }
-
-
- uint16_t optos_r();
- uint16_t prot_1_r();
- uint16_t prot_0_r();
- uint16_t ump_r();
- void volume_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void upd7759_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t upd7759_r(offs_t offset, uint16_t mem_mask = ~0);
- uint8_t hopper_c_r();
- void payen_a_w(uint8_t data);
- void display_c_w(uint8_t data);
-
- void pwrled_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void reels_0123_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void reels_45_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void slides_non_video_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void lamps_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void digits_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void lampstrobe_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
-
-
- DECLARE_WRITE_LINE_MEMBER(duart_irq_handler);
- void impact_non_video_map(address_map &map);
-
- uint8_t m_Lamps[256];
- int m_optic_pattern;
- int m_payen;
- int m_hopinhibit;
- int m_slidesout;
- int m_hopper[3];
- int m_motor[3];
- int m_volume_latch;
- int m_global_volume;
- uint16_t m_coinstate;
- required_device_array<timer_device, 6> m_cointimer;
-
- required_device<i8255_device> m_ppi;
- required_device<mc68681_device> m_duart;
- optional_device<s16lf01_device> m_vfd;
- required_device<upd7759_device> m_upd7759;
- optional_device_array<stepper_device, 6> m_reel;
- output_finder<256> m_lamp_output;
-};
-
-class jpmimpct_video_state : public jpmimpct_state
-{
-public:
- jpmimpct_video_state(const machine_config &mconfig, device_type type, const char *tag)
- : jpmimpct_state(mconfig, type, tag)
- , m_vidduart(*this, "vid_duart")
- , m_touch(*this, "touch")
- , m_dsp(*this, "dsp")
- , m_vram(*this, "vram")
- , m_ramdac(*this, "ramdac")
- , m_touchx(*this, "TOUCH_X")
- , m_touchy(*this, "TOUCH_Y")
- {
- }
-
- void impact_video(machine_config &config);
- void impact_video_touch(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(touch_port_changed);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void impact_video_map(address_map &map);
-
- void slides_video_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void tms_program_map(address_map &map);
-
- DECLARE_WRITE_LINE_MEMBER(tms_irq);
- TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg);
- TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg);
- TMS340X0_SCANLINE_RGB32_CB_MEMBER(scanline_update);
- uint8_t m_tms_irq;
-
- virtual void update_irqs() override;
-
-protected:
- required_device<mc68681_device> m_vidduart;
- optional_device<jpmtouch_device> m_touch;
-private:
- optional_device<tms34010_device> m_dsp;
- optional_shared_ptr<uint16_t> m_vram;
- required_device<bt477_device> m_ramdac;
- optional_ioport m_touchx;
- optional_ioport m_touchy;
-};
diff --git a/src/mame/includes/jpmsys5.h b/src/mame/includes/jpmsys5.h
deleted file mode 100644
index 26c4ac3e84a..00000000000
--- a/src/mame/includes/jpmsys5.h
+++ /dev/null
@@ -1,195 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett, James Wallace, David Haywood
-#ifndef MAME_INCLUDES_JPMSYS5_H
-#define MAME_INCLUDES_JPMSYS5_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "machine/6821pia.h"
-#include "machine/6840ptm.h"
-#include "machine/6850acia.h"
-#include "sound/upd7759.h"
-#include "sound/ym2413.h"
-#include "video/tms34061.h"
-#include "machine/nvram.h"
-#include "video/awpvid.h"
-#include "machine/steppers.h"
-#include "machine/roc10937.h"
-#include "machine/meters.h"
-#include "emupal.h"
-
-class jpmsys5_state : public driver_device
-{
-public:
- jpmsys5_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_acia6850(*this, "acia6850_%u", 0U),
- m_vfd(*this, "vfd"),
- m_upd7759(*this, "upd7759"),
- m_dsw(*this, "DSW"),
- m_dsw2(*this, "DSW2"),
- m_rotary(*this, "ROTARY"),
- m_strobe0(*this, "STROBE0"),
- m_strobe1(*this, "STROBE1"),
- m_strobe2(*this, "STROBE2"),
- m_strobe3(*this, "STROBE3"),
- m_strobe4(*this, "STROBE4"),
- m_unknown_port(*this, "UNKNOWN_PORT"),
- m_direct_port(*this, "DIRECT"),
- m_meters(*this, "meters"),
- m_lamps(*this, "lamp%u", 0U),
- m_sys5leds(*this, "digit%u", 0U),
- m_reellamp_out(*this, "reellamp%u", 0U),
- m_reel(*this, "reel%u", 0U)
- { }
-
- void jpmsys5(machine_config &config);
- void jpmsys5_ym(machine_config &config);
-
- DECLARE_WRITE_LINE_MEMBER(ptm_irq);
- DECLARE_WRITE_LINE_MEMBER(u26_o1_callback);
- DECLARE_WRITE_LINE_MEMBER(pia_irq);
- DECLARE_WRITE_LINE_MEMBER(u29_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(u29_cb2_w);
- DECLARE_WRITE_LINE_MEMBER(a0_tx_w);
- DECLARE_WRITE_LINE_MEMBER(a1_tx_w);
- DECLARE_WRITE_LINE_MEMBER(a2_tx_w);
-
- uint8_t u29_porta_r();
- void u29_portb_w(uint8_t data);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void jpmsys5_common(machine_config &config);
- void ymsound(machine_config &config);
- void saasound(machine_config &config);
- void reels(machine_config &config);
-
- void jpm_upd7759_w(offs_t offset, uint16_t data);
- uint16_t jpm_upd7759_r();
-
- required_device<cpu_device> m_maincpu;
- required_device_array<acia6850_device, 3> m_acia6850;
- optional_device<s16lf01_device> m_vfd;
- required_device<upd7759_device> m_upd7759;
-
- optional_ioport m_dsw;
- optional_ioport m_dsw2;
- optional_ioport m_rotary;
- optional_ioport m_strobe0;
- optional_ioport m_strobe1;
- optional_ioport m_strobe2;
- optional_ioport m_strobe3;
- optional_ioport m_strobe4;
- optional_ioport m_unknown_port;
-
- void jpm_sys5_common_map(address_map &map);
-
-protected:
- void m68000_ym_map(address_map &map);
-
-private:
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(reel_optic_cb) { if (state) m_optic_pattern |= (1 << ((7-N)^3)); else m_optic_pattern &= ~(1 << ((7-N)^3)); }
-
- uint16_t unknown_port_r(offs_t offset, uint16_t mem_mask = ~0);
-
- uint16_t coins_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t reel_optos_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t unk_48000_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t unk_48002_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t unk_48006_r(offs_t offset, uint16_t mem_mask = ~0);
-
- void reel_0123_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void reel_4567_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void unk_48000_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void unk_48006_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t unk_r(offs_t offset, uint16_t mem_mask = ~0);
-
- uint16_t reellamps_0123_r(offs_t offset, uint16_t mem_mask = ~0);
- void reellamps_0123_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t reellamps_4567_r(offs_t offset, uint16_t mem_mask = ~0);
- void reellamps_4567_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t m_reellamps_0123;
- uint16_t m_reellamps_5678;
-
- void mux_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mux_r(offs_t offset, uint16_t mem_mask = ~0);
-
- void sys5_draw_lamps();
-
-
- void m68000_awp_map(address_map &map);
- void m68000_awp_map_saa(address_map &map);
-
- required_ioport m_direct_port;
- optional_device<meters_device> m_meters; //jpmsys5v doesn't use this
- output_finder<16 * 16> m_lamps;
- output_finder<16> m_sys5leds;
- output_finder<32> m_reellamp_out;
- optional_device_array<stepper_device, 8> m_reel;
-
- int m_lamp_strobe;
- int m_mpxclk;
- uint16_t m_muxram[0x100];
- uint16_t m_optic_pattern;
- int m_chop;
- uint8_t m_a0_data_out;
- uint8_t m_a1_data_out;
- uint8_t m_a2_data_out;
-};
-
-
-class jpmsys5v_state : public jpmsys5_state
-{
-public:
- jpmsys5v_state(const machine_config &mconfig, device_type type, const char *tag) :
- jpmsys5_state(mconfig, type, tag),
- m_tms34061(*this, "tms34061"),
- m_palette(*this, "palette"),
- m_rombank(*this, "bank1"),
- m_touch_axes(*this, { "TOUCH_X", "TOUCH_Y" }),
- m_touch_timer(nullptr)
- { }
-
- DECLARE_INPUT_CHANGED_MEMBER(touchscreen_press);
-
- void jpmsys5v(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void tmsvideo(machine_config &config);
-
- DECLARE_WRITE_LINE_MEMBER(generate_tms34061_interrupt);
- void sys5_tms34061_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t sys5_tms34061_r(offs_t offset, uint16_t mem_mask = ~0);
- void ramdac_w(offs_t offset, uint16_t data);
- void rombank_w(uint16_t data);
- uint32_t screen_update_jpmsys5v(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(touch_cb);
-
- void m68000_map(address_map &map);
-
- required_device<tms34061_device> m_tms34061;
- required_device<palette_device> m_palette;
- required_memory_bank m_rombank;
- required_ioport_array<2> m_touch_axes;
-
- uint8_t m_palette_val[16][3];
- int m_pal_addr;
- int m_pal_idx;
- int m_touch_state;
- emu_timer *m_touch_timer;
- int m_touch_data_count;
- int m_touch_data[3];
- int m_touch_shift_cnt;
-};
-
-#endif // MAME_INCLUDES_JPMSYS5_H
diff --git a/src/mame/includes/kaneko16.h b/src/mame/includes/kaneko16.h
deleted file mode 100644
index 5b90a8fff96..00000000000
--- a/src/mame/includes/kaneko16.h
+++ /dev/null
@@ -1,253 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia, David Haywood
-/***************************************************************************
-
- -= Kaneko 16 Bit Games =-
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_KANEKO16_H
-#define MAME_INCLUDES_KANEKO16_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/z80/z80.h"
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "machine/kaneko_calc3.h"
-#include "machine/kaneko_hit.h"
-#include "machine/kaneko_toybox.h"
-#include "machine/nvram.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "sound/ay8910.h"
-#include "sound/okim6295.h"
-#include "sound/ym2151.h"
-#include "video/bufsprite.h"
-#include "video/kaneko_spr.h"
-#include "video/kaneko_tmap.h"
-#include "emupal.h"
-#include "screen.h"
-
-class kaneko16_state : public driver_device
-{
-public:
- kaneko16_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ym2149(*this, "ym2149_%u", 1),
- m_oki(*this, "oki%u", 1),
- m_view2(*this, "view2_%u", 0),
- m_kaneko_hit(*this, "kan_hit"),
- m_kaneko_spr(*this, "kan_spr"),
- m_kaneko_calc3(*this, "calc3_prot"),
- m_toybox(*this, "toybox"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_bgpalette(*this, "bgpalette"),
- m_eeprom(*this, "eeprom"),
- m_soundlatch(*this, "soundlatch"),
- m_watchdog(*this, "watchdog"),
- m_spriteram(*this, "spriteram"),
- m_mainregion(*this, "maincpu"),
- m_mainram(*this, "mainram"),
- m_mcuram(*this, "mcuram"),
- m_okiregion(*this, "oki%u", 1),
- m_okibank(*this, "okibank%u", 1),
- m_p2_port(*this, "P2"),
- m_fake_port(*this, "FAKE"),
- m_dsw_port(*this, "DSW1"),
- m_eepromout_port(*this, "EEPROMOUT"),
- m_wheel_port(*this, "WHEEL%u", 0U),
- m_audiocpu(*this, "audiocpu"),
- m_ymsnd(*this, "ymsnd")
- {
- }
-
- void init_bakubrkr();
-
- void bakubrkr(machine_config &config);
- void wingforc(machine_config &config);
- void blazeon(machine_config &config);
- void mgcrystl(machine_config &config);
-
-protected:
- required_device<m68000_device> m_maincpu;
- optional_device_array<ym2149_device, 2> m_ym2149;
- optional_device_array<okim6295_device, 2> m_oki;
- optional_device_array<kaneko_view2_tilemap_device, 2> m_view2;
- optional_device<kaneko_hit_device> m_kaneko_hit;
- required_device<kaneko16_sprite_device> m_kaneko_spr;
- optional_device<kaneko_calc3_device> m_kaneko_calc3;
- optional_device<kaneko_toybox_device> m_toybox;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<palette_device> m_bgpalette;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<watchdog_timer_device> m_watchdog;
- optional_device<buffered_spriteram16_device> m_spriteram;
-
- required_region_ptr<u16> m_mainregion;
- optional_shared_ptr<u16> m_mainram;
- optional_shared_ptr<u16> m_mcuram;
-
- optional_memory_region_array<2> m_okiregion;
- optional_memory_bank_array<2> m_okibank;
-
- optional_ioport m_p2_port;
- optional_ioport m_fake_port;
- optional_ioport m_dsw_port;
- optional_ioport m_eepromout_port;
- optional_ioport_array<3> m_wheel_port;
-
- u16 m_disp_enable;
-
- int m_VIEW2_2_pri;
-
- virtual void common_oki_bank_install(int bankno, size_t fixedsize, size_t bankedsize);
- void coin_lockout_w(u8 data);
- void bloodwar_coin_lockout_w(u8 data);
-
- void display_enable_w(offs_t offset, u16 data, u16 mem_mask = ~0); // (u16 data, u16 mem_mask = ~0);
-
- template<unsigned Chip> u16 ym2149_r(offs_t offset);
- template<unsigned Chip> void ym2149_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- template<unsigned Mask> void oki_bank0_w(u8 data);
- template<unsigned Mask> void oki_bank1_w(u8 data);
-
- DECLARE_MACHINE_RESET(gtmr);
- DECLARE_MACHINE_RESET(mgcrystl);
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- template<class BitmapClass>
- u32 screen_update_common(screen_device &screen, BitmapClass &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
-
- template<class BitmapClass>
- void fill_bitmap(BitmapClass &bitmap, const rectangle &cliprect);
-
- void gtmr_oki1_map(address_map &map);
- void gtmr_oki2_map(address_map &map);
-
-private:
- optional_device<z80_device> m_audiocpu;
- optional_device<ym2151_device> m_ymsnd;
-
- u8 eeprom_r();
- void eeprom_w(u8 data);
- void eeprom_cs_w(u8 data);
-
- void bakubrkr_map(address_map &map);
- void bakubrkr_oki1_map(address_map &map);
- void blazeon_map(address_map &map);
- void blazeon_soundmem(address_map &map);
- void blazeon_soundport(address_map &map);
- void mgcrystl_map(address_map &map);
- void wingforc_soundport(address_map &map);
-};
-
-class kaneko16_gtmr_state : public kaneko16_state
-{
-public:
- kaneko16_gtmr_state(const machine_config &mconfig, device_type type, const char *tag) :
- kaneko16_state(mconfig, type, tag)
- {
- }
-
- void init_gtmr();
- void bonkadv(machine_config &config);
- void gtmr(machine_config &config);
- void gtmr2(machine_config &config);
- void gtmre(machine_config &config);
- void bloodwar(machine_config &config);
-
-protected:
- virtual void common_oki_bank_install(int bankno, size_t fixedsize, size_t bankedsize) override;
-
-private:
- u16 gtmr_wheel_r();
- u16 gtmr2_wheel_r();
- u16 gtmr2_IN1_r();
-
- void bloodwar_map(address_map &map);
- void bonkadv_map(address_map &map);
- void gtmr2_map(address_map &map);
- void gtmr_map(address_map &map);
-};
-
-class kaneko16_berlwall_state : public kaneko16_state
-{
-public:
- kaneko16_berlwall_state(const machine_config &mconfig, device_type type, const char *tag) :
- kaneko16_state(mconfig, type, tag),
- m_bg15_scroll(*this, "bg15_scroll"),
- m_bgpalette(*this, "bgpalette")
- {
- }
-
- void init_berlwall();
- void init_berlwallk();
- void init_berlwallt();
- void init_berlwall_common();
- void berlwall(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- optional_shared_ptr<u16> m_bg15_scroll;
- required_device<palette_device> m_bgpalette;
-
- bitmap_ind16 m_bg15_bitmap[32];
-
- u8 bg15_select_r();
- void bg15_select_w(u8 data);
- u8 bg15_bright_r();
- void bg15_bright_w(u8 data);
-
- void berlwall_oki_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- u16 berlwall_spriteram_r(offs_t offset);
- void berlwall_spriteram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 berlwall_spriteregs_r(offs_t offset);
- void berlwall_spriteregs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- u8 m_bg15_select;
- u8 m_bg15_bright;
-
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void render_15bpp_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void patch_protection(u32 bra_offset,u16 bra_value,u16 checksum);
- void berlwall_map(address_map &map);
-};
-
-class kaneko16_shogwarr_state : public kaneko16_state
-{
-public:
- kaneko16_shogwarr_state(const machine_config &mconfig, device_type type, const char *tag) :
- kaneko16_state(mconfig, type, tag),
- m_calc3_prot(*this, "calc3_prot")
- {
- }
- void init_shogwarr();
- void init_brapboys();
-
- void shogwarr(machine_config &config);
- void brapboys(machine_config &config);
-
-private:
- optional_device<kaneko_calc3_device> m_calc3_prot;
-
- TIMER_DEVICE_CALLBACK_MEMBER(shogwarr_interrupt);
-
- void shogwarr_oki_bank_w(u8 data);
-
- void brapboys_oki2_map(address_map &map);
- void shogwarr_map(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/kangaroo.h b/src/mame/includes/kangaroo.h
deleted file mode 100644
index 5b69ec18baf..00000000000
--- a/src/mame/includes/kangaroo.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ville Laitinen, Aaron Giles
-/***************************************************************************
-
- Sun Electronics Kangaroo hardware
-
- driver by Ville Laitinen
-
-***************************************************************************/
-
-#include "emupal.h"
-
-class kangaroo_state : public driver_device
-{
-public:
- kangaroo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_video_control(*this, "video_control"),
- m_maincpu(*this, "maincpu"),
- m_palette(*this, "palette") { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_video_control;
-
- /* video-related */
- std::unique_ptr<uint32_t[]> m_videoram;
-
- /* misc */
- uint8_t m_mcu_clock;
- uint8_t mcu_sim_r();
- void mcu_sim_w(uint8_t data);
- void kangaroo_coin_counter_w(uint8_t data);
- void kangaroo_videoram_w(offs_t offset, uint8_t data);
- void kangaroo_video_control_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- DECLARE_MACHINE_START(kangaroo_mcu);
- uint32_t screen_update_kangaroo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void videoram_write( uint16_t offset, uint8_t data, uint8_t mask );
- void blitter_execute( );
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- void nomcu(machine_config &config);
- void mcu(machine_config &config);
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
-};
diff --git a/src/mame/includes/karnov.h b/src/mame/includes/karnov.h
deleted file mode 100644
index 25c24beaee9..00000000000
--- a/src/mame/includes/karnov.h
+++ /dev/null
@@ -1,118 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Karnov - Wonder Planet - Chelnov
-
-*************************************************************************/
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/gen_latch.h"
-#include "video/bufsprite.h"
-#include "video/deckarn.h"
-#include "video/decrmc3.h"
-#include "tilemap.h"
-
-class karnov_state : public driver_device
-{
-public:
- karnov_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_mcu(*this, "mcu"),
- m_screen(*this, "screen"),
- m_spriteram(*this, "spriteram") ,
- m_spritegen(*this, "spritegen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_ram(*this, "ram"),
- m_videoram(*this, "videoram"),
- m_pf_data(*this, "pf_data"),
- m_scroll(*this, "scroll") { }
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<mcs51_cpu_device> m_mcu;
- required_device<screen_device> m_screen;
- required_device<buffered_spriteram16_device> m_spriteram;
- required_device<deco_karnovsprites_device> m_spritegen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<deco_rmc3_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_ram;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_pf_data;
- required_shared_ptr<uint16_t> m_scroll;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fix_tilemap;
-
- /* misc */
- uint16_t m_i8751_return;
- uint16_t m_i8751_needs_ack;
- uint16_t m_i8751_coin_pending;
- uint16_t m_i8751_command_queue;
- int m_latch;
-
- u16 wndrplnt_mcu_r();
- void wndrplnt_mcu_w(u16 data);
- void wndrplnt_mcu_ack_w(u16 data);
- void wndrplnt_mcu_reset_w(u16 data);
-
- void vint_ack_w(u16 data);
- void videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void playfield_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fix_tile_info);
- DECLARE_VIDEO_START(karnov);
- DECLARE_VIDEO_START(wndrplnt);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(wndrplnt_mcusim_vbint_w);
- void vbint_w(int state);
-
- void chelnovjbl(machine_config &config);
- void karnov(machine_config &config);
- void wndrplnt(machine_config &config);
- void karnovjbl(machine_config &config);
-
- void base_sound_map(address_map &map);
- void chelnovjbl_mcu_map(address_map &map);
- void chelnovjbl_mcu_io_map(address_map &map);
- void karnov_map(address_map &map);
- void karnovjbl_map(address_map &map);
- void wndrplnt_map(address_map &map);
- void karnov_sound_map(address_map &map);
- void karnovjbl_sound_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- // protection mcu
- void mcu_coin_irq(int state);
- void mcu_ack_w(uint16_t data);
- uint16_t mcu_r();
- void mcu_w(uint16_t data);
- void mcu_p2_w(uint8_t data);
-
- // protection mcu (bootleg specific)
- uint8_t mcu_data_l_r();
- void mcu_data_l_w(uint8_t data);
- uint8_t mcu_data_h_r();
- void mcu_data_h_w(uint8_t data);
- void mcubl_p1_w(uint8_t data);
-
- uint8_t m_mcu_p0;
- uint8_t m_mcu_p1;
- uint8_t m_mcu_p2;
- uint16_t m_mcu_to_maincpu;
- uint16_t m_maincpu_to_mcu;
- bool m_coin_state;
-};
diff --git a/src/mame/includes/kaypro.h b/src/mame/includes/kaypro.h
deleted file mode 100644
index 5bc400af0e4..00000000000
--- a/src/mame/includes/kaypro.h
+++ /dev/null
@@ -1,126 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Robbbert
-#ifndef MAME_INCLUDES_KAYPRO_H
-#define MAME_INCLUDES_KAYPRO_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "machine/z80pio.h"
-#include "bus/centronics/ctronics.h"
-#include "imagedev/floppy.h"
-#include "imagedev/snapquik.h"
-#include "sound/beep.h"
-#include "video/mc6845.h"
-#include "machine/wd_fdc.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-class kaypro_state : public driver_device
-{
-public:
- kaypro_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_maincpu(*this, "maincpu")
- , m_p_chargen(*this, "chargen")
- , m_pio_g(*this, "z80pio_g")
- , m_pio_s(*this, "z80pio_s")
- , m_centronics(*this, "centronics")
- , m_fdc(*this, "fdc")
- , m_floppy0(*this, "fdc:0")
- , m_floppy1(*this, "fdc:1")
- , m_crtc(*this, "crtc")
- , m_beep(*this, "beeper")
- , m_bankr(*this, "bankr")
- , m_bankw(*this, "bankw")
- , m_bank3(*this, "bank3")
- , m_floppy_timer(*this, "floppy_timer")
- , m_leds(*this, "led%c", unsigned('A'))
- {}
-
- void omni2(machine_config &config);
- void kayproiv(machine_config &config);
- void kayproii(machine_config &config);
- void kaypronew2(machine_config &config);
- void kaypro484(machine_config &config);
- void kaypro10(machine_config &config);
- void kaypro284(machine_config &config);
- void kaypro4x(machine_config &config);
- void kaypro1(machine_config &config);
-
- void init_kaypro();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- void kaypro484_io(address_map &map);
- void kaypro_map(address_map &map);
- void kayproii_io(address_map &map);
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- TIMER_DEVICE_CALLBACK_MEMBER(floppy_timer);
- u8 kaypro484_87_r();
- u8 kaypro484_system_port_r();
- u8 kaypro484_status_r();
- u8 kaypro484_videoram_r();
- void kaypro484_system_port_w(u8 data);
- void kaypro484_index_w(u8 data);
- void kaypro484_register_w(u8 data);
- void kaypro484_videoram_w(u8 data);
- u8 pio_system_r();
- void kayproii_pio_system_w(u8 data);
- void kayproiv_pio_system_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(fdc_intrq_w);
- DECLARE_WRITE_LINE_MEMBER(fdc_drq_w);
- u8 kaypro_videoram_r(offs_t offset);
- void kaypro_videoram_w(offs_t offset, u8 data);
- static void floppy_formats(format_registration &fr);
-
- void kaypro_palette(palette_device &palette) const;
- uint32_t screen_update_kayproii(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_kaypro484(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_omni2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- MC6845_UPDATE_ROW(kaypro484_update_row);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- void mc6845_screen_configure();
-
- u8 m_mc6845_reg[32];
- u8 m_mc6845_ind;
- u8 m_framecnt;
- std::unique_ptr<u8[]> m_ram;
- std::unique_ptr<u8[]> m_vram; // video ram
- std::unique_ptr<u8[]> m_dummy; // black hole for write to rom
- int m_centronics_busy;
- bool m_is_motor_off;
- u8 m_fdc_rq;
- u8 m_system_port;
- uint16_t m_mc6845_video_address;
- floppy_image_device *m_floppy;
-
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_device<z80_device> m_maincpu;
- required_region_ptr<u8> m_p_chargen;
- optional_device<z80pio_device> m_pio_g;
- optional_device<z80pio_device> m_pio_s;
- required_device<centronics_device> m_centronics;
- required_device<fd1793_device> m_fdc;
- required_device<floppy_connector> m_floppy0;
- optional_device<floppy_connector> m_floppy1;
- optional_device<mc6845_device> m_crtc;
- required_device<beep_device> m_beep;
- required_memory_bank m_bankr;
- required_memory_bank m_bankw;
- required_memory_bank m_bank3;
- required_device<timer_device> m_floppy_timer;
- output_finder<2> m_leds;
-};
-
-#endif // MAME_INCLUDES_KAYPRO_H
diff --git a/src/mame/includes/kc.h b/src/mame/includes/kc.h
deleted file mode 100644
index 00be5ef8e80..00000000000
--- a/src/mame/includes/kc.h
+++ /dev/null
@@ -1,201 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker,Sandro Ronco
-/*****************************************************************************
- *
- * includes/kc.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_KC_H
-#define MAME_INCLUDES_KC_H
-
-#pragma once
-
-/* Devices */
-#include "imagedev/cassette.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-
-// Components
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "machine/z80ctc.h"
-#include "machine/z80pio.h"
-#include "machine/ram.h"
-#include "machine/kc_keyb.h"
-#include "machine/rescap.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-#include "screen.h"
-
-// Devices
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-
-// Expansions
-#include "bus/kc/kc.h"
-#include "bus/kc/ram.h"
-#include "bus/kc/rom.h"
-#include "bus/kc/d002.h"
-#include "bus/kc/d004.h"
-
-// Formats
-#include "formats/kc_cas.h"
-
-// from service manual
-#define KC85_3_CLOCK 1751938
-#define KC85_4_CLOCK 1773447
-
-#define KC85_4_SCREEN_PIXEL_RAM_SIZE 0x04000
-#define KC85_4_SCREEN_COLOUR_RAM_SIZE 0x04000
-
-#define KC85_PALETTE_SIZE 24
-#define KC85_SCREEN_WIDTH 320
-#define KC85_SCREEN_HEIGHT 256
-
-// cassette input polling frequency
-#define KC_CASSETTE_TIMER_FREQUENCY attotime::from_hz(44100)
-
-class kc_state : public driver_device
-{
-public:
- kc_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_z80pio(*this, "z80pio")
- , m_z80ctc(*this, "z80ctc")
- , m_ram(*this, RAM_TAG)
- , m_speaker(*this, "speaker")
- , m_cassette(*this, "cassette")
- , m_screen(*this, "screen")
- , m_expansions(*this, {"m8", "mc", "exp"})
- { }
-
- required_device<z80_device> m_maincpu;
- required_device<z80pio_device> m_z80pio;
- required_device<z80ctc_device> m_z80ctc;
- required_device<ram_device> m_ram;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_device<screen_device> m_screen;
- required_device_array<kcexp_slot_device, 3> m_expansions;
-
- // defined in machine/kc.cpp
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- // modules read/write
- uint8_t expansion_read(offs_t offset);
- void expansion_write(offs_t offset, uint8_t data);
- uint8_t expansion_4000_r(offs_t offset);
- void expansion_4000_w(offs_t offset, uint8_t data);
- uint8_t expansion_8000_r(offs_t offset);
- void expansion_8000_w(offs_t offset, uint8_t data);
- uint8_t expansion_c000_r(offs_t offset);
- void expansion_c000_w(offs_t offset, uint8_t data);
- uint8_t expansion_e000_r(offs_t offset);
- void expansion_e000_w(offs_t offset, uint8_t data);
- uint8_t expansion_io_read(offs_t offset);
- void expansion_io_write(offs_t offset, uint8_t data);
-
- // bankswitch
- virtual void update_0x00000();
- virtual void update_0x04000();
- virtual void update_0x08000();
- virtual void update_0x0c000();
- virtual void update_0x0e000();
-
- // PIO callback
- uint8_t pio_porta_r();
- uint8_t pio_portb_r();
- DECLARE_WRITE_LINE_MEMBER( pio_ardy_cb);
- DECLARE_WRITE_LINE_MEMBER( pio_brdy_cb);
- void pio_porta_w(uint8_t data);
- void pio_portb_w(uint8_t data);
-
- // CTC callback
- DECLARE_WRITE_LINE_MEMBER( ctc_zc0_callback );
- DECLARE_WRITE_LINE_MEMBER( ctc_zc1_callback );
-
- // keyboard
- DECLARE_WRITE_LINE_MEMBER( keyboard_cb );
-
- // cassette
- void update_cassette(int state);
- void cassette_set_motor(int motor_state);
-
- // speaker
- void speaker_update();
-
- // defined in video/kc.cpp
- virtual void video_start() override;
- virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER( video_toggle_blink_state );
- void video_draw_8_pixels(bitmap_ind16 &bitmap, int x, int y, uint8_t colour_byte, uint8_t gfx_byte);
-
- // driver state
- uint8_t * m_ram_base;
- std::unique_ptr<uint8_t[]> m_video_ram;
- int m_pio_data[2];
- int m_high_resolution;
- uint8_t m_ardy;
- uint8_t m_brdy;
- int m_kc85_blink_state;
- int m_k0_line;
- int m_k1_line;
- uint8_t m_speaker_level;
-
- // cassette
- emu_timer * m_cassette_timer;
- emu_timer * m_cassette_oneshot_timer;
- int m_astb;
- int m_cassette_in;
-
- void kc85_palette(palette_device &palette) const;
- TIMER_CALLBACK_MEMBER(kc_cassette_oneshot_timer);
- TIMER_CALLBACK_MEMBER(kc_cassette_timer_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(kc_scanline);
-
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
- void kc85_slots(machine_config &config);
-
- void kc85_3(machine_config &config);
- void kc85_3_io(address_map &map);
- void kc85_3_mem(address_map &map);
-};
-
-
-class kc85_4_state : public kc_state
-{
-public:
- kc85_4_state(const machine_config &mconfig, device_type type, const char *tag)
- : kc_state(mconfig, type, tag)
- { }
-
- // defined in machine/kc.cpp
- virtual void machine_reset() override;
-
- virtual void update_0x04000() override;
- virtual void update_0x08000() override;
- virtual void update_0x0c000() override;
-
- uint8_t kc85_4_86_r();
- uint8_t kc85_4_84_r();
- void kc85_4_86_w(uint8_t data);
- void kc85_4_84_w(uint8_t data);
-
- // defined in video/kc.cpp
- virtual void video_start() override;
- virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override;
- void video_control_w(int data);
-
- // driver state
- uint8_t m_port_84_data;
- uint8_t m_port_86_data;
- uint8_t * m_display_video_ram;
- void kc85_4(machine_config &config);
- void kc85_5(machine_config &config);
- void kc85_4_io(address_map &map);
- void kc85_4_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_KC_H
diff --git a/src/mame/includes/kchamp.h b/src/mame/includes/kchamp.h
deleted file mode 100644
index 77ba4fd4418..00000000000
--- a/src/mame/includes/kchamp.h
+++ /dev/null
@@ -1,107 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-/*************************************************************************
-
- Karate Champ
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_KCHAMP_H
-#define MAME_INCLUDES_KCHAMP_H
-
-#pragma once
-
-#include "machine/74157.h"
-#include "machine/gen_latch.h"
-#include "sound/ay8910.h"
-#include "sound/msm5205.h"
-#include "sound/dac.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class kchamp_state : public driver_device
-{
-public:
- kchamp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram"),
- m_decrypted_opcodes(*this, "decrypted_opcodes"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_ay(*this, "ay%u", 1),
- m_adpcm_select(*this, "adpcm_select"),
- m_msm(*this, "msm"),
- m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void kchamp(machine_config &config);
- void kchampvs(machine_config &config);
- void kchamp_arfyc(machine_config &config);
-
- void init_kchampvs();
- void init_kchampvs2();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* misc */
- bool m_nmi_enable;
- bool m_sound_nmi_enable;
- bool m_msm_play_lo_nibble;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device_array<ay8910_device, 2> m_ay;
- optional_device<ls157_device> m_adpcm_select;
- optional_device<msm5205_device> m_msm;
- optional_device<dac08_device> m_dac;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- DECLARE_WRITE_LINE_MEMBER(sound_reset_w);
- uint8_t sound_reset_r();
- void kc_sound_control_w(offs_t offset, uint8_t data);
- void kchamp_videoram_w(offs_t offset, uint8_t data);
- void kchamp_colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- void sound_control_w(u8 data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_reset() override;
- virtual void video_start() override;
- void kchamp_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(kchampvs);
- DECLARE_MACHINE_START(kchamp);
- uint32_t screen_update_kchampvs(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_kchamp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(sound_int);
- void kchamp_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void kchampvs_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void decrypt_code();
- DECLARE_WRITE_LINE_MEMBER(msmint);
- void decrypted_opcodes_map(address_map &map);
- void kchamp_io_map(address_map &map);
- void kchamp_map(address_map &map);
- void kchamp_sound_io_map(address_map &map);
- void kchamp_sound_map(address_map &map);
- void kchampvs_io_map(address_map &map);
- void kchampvs_map(address_map &map);
- void kchampvs_sound_io_map(address_map &map);
- void kchampvs_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_KCHAMP_H
diff --git a/src/mame/includes/kickgoal.h b/src/mame/includes/kickgoal.h
deleted file mode 100644
index 3a2985d8698..00000000000
--- a/src/mame/includes/kickgoal.h
+++ /dev/null
@@ -1,124 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-/*************************************************************************
-
- Kick Goal - Action Hollywood
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_KICKGOAL_H
-#define MAME_INCLUDES_KICKGOAL_H
-
-#pragma once
-
-#include "cpu/pic16c5x/pic16c5x.h"
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class kickgoal_state : public driver_device
-{
-public:
- kickgoal_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_fgram(*this, "fgram"),
- m_bgram(*this, "bgram"),
- m_bg2ram(*this, "bg2ram"),
- m_scrram(*this, "scrram"),
- m_spriteram(*this, "spriteram"),
- m_eeprom(*this, "eeprom") ,
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_okibank(*this, "okibank"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void kickgoal(machine_config &config);
- void actionhw(machine_config &config);
-
- void init_kickgoal();
- void init_actionhw();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- void fgram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bgram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bg2ram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void actionhw_snd_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- void soundio_port_a_w(u8 data);
- u8 soundio_port_b_r();
- void soundio_port_b_w(u8 data);
- u8 soundio_port_c_r();
- void soundio_port_c_w(u8 data);
- void to_pic_w(u16 data);
-
- TILE_GET_INFO_MEMBER(get_kickgoal_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- TILE_GET_INFO_MEMBER(get_actionhw_fg_tile_info);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_8x8);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_16x16);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_32x32);
- DECLARE_VIDEO_START(kickgoal);
- DECLARE_VIDEO_START(actionhw);
-
- INTERRUPT_GEN_MEMBER(kickgoal_interrupt);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void program_map(address_map &map);
- void oki_map(address_map &map);
-
- /* video-related */
- tilemap_t *m_fgtm;
- tilemap_t *m_bgtm;
- tilemap_t *m_bg2tm;
-
- /* misc */
- int m_snd_new;
- int m_snd_sam[4];
-
- u8 m_pic_portc;
- u8 m_pic_portb;
- int m_sound_command_sent;
-
- int m_fg_base;
-
- int m_bg_base;
- int m_bg_mask;
-
- int m_bg2_base;
- int m_bg2_mask;
- int m_bg2_region;
-
- int m_sprbase;
-
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- /* memory pointers */
- required_shared_ptr<u16> m_fgram;
- required_shared_ptr<u16> m_bgram;
- required_shared_ptr<u16> m_bg2ram;
- required_shared_ptr<u16> m_scrram;
- required_shared_ptr<u16> m_spriteram;
-
- /* devices */
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<cpu_device> m_maincpu;
- required_device<pic16c57_device> m_audiocpu;
- required_device<okim6295_device> m_oki;
- required_memory_bank m_okibank;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-};
-
-#endif // MAME_INCLUDES_KICKGOAL_H
diff --git a/src/mame/includes/kikikai.h b/src/mame/includes/kikikai.h
deleted file mode 100644
index 3658a86de16..00000000000
--- a/src/mame/includes/kikikai.h
+++ /dev/null
@@ -1,169 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-
-#include "cpu/m6805/m68705.h"
-#include "cpu/m6800/m6801.h"
-
-#include "sound/ym2203.h"
-#include "emupal.h"
-#include "screen.h"
-
-class kikikai_state : public driver_device
-{
-public:
- kikikai_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_screen(*this, "screen"),
- m_mcu_sharedram(*this, "mcu_sharedram"),
- m_mainram(*this, "mainram"),
- m_subcpu(*this, "sub"),
- m_mcu(*this, "mcu"),
- m_ymsnd(*this, "ymsnd"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- {
- }
-
- void base(machine_config &config);
- void kicknrun(machine_config &config);
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<screen_device> m_screen;
- required_shared_ptr<u8> m_mcu_sharedram;
-
- u32 screen_update_kicknrun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_kikikai(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- IRQ_CALLBACK_MEMBER(mcram_vect_r);
-
-private:
- /* memory pointers */
- required_shared_ptr<u8> m_mainram;
-
- /* video-related */
- int m_charbank;
-
- /* devices */
- optional_device<cpu_device> m_subcpu; // kicknrun / mexico86 only
- optional_device<cpu_device> m_mcu;
- required_device<ym2203_device> m_ymsnd;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* queue */
- //u8 m_queue[64];
- //int m_qfront;
- //int m_qstate;
- void kicknrun_sub_output_w(uint8_t data);
- virtual void main_f008_w(uint8_t data);
-
- void main_bankswitch_w(uint8_t data);
- uint8_t kiki_ym2203_r(offs_t offset);
-
- virtual INTERRUPT_GEN_MEMBER(kikikai_interrupt);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void kicknrun_sub_cpu_map(address_map &map);
- void mcu_map(address_map& map);
-
- /* Kiki KaiKai / Kick 'n Run MCU */
- uint8_t m_ddr1;
- uint8_t m_ddr2;
- uint8_t m_ddr3;
- uint8_t m_ddr4;
- uint8_t m_port1_in;
- uint8_t m_port2_in;
- uint8_t m_port3_in;
- uint8_t m_port4_in;
- uint8_t m_port1_out;
- uint8_t m_port2_out;
- uint8_t m_port3_out;
- uint8_t m_port4_out;
-
- uint8_t kikikai_mcu_ddr1_r();
- void kikikai_mcu_ddr1_w(uint8_t data);
- uint8_t kikikai_mcu_ddr2_r();
- void kikikai_mcu_ddr2_w(uint8_t data);
- uint8_t kikikai_mcu_ddr3_r();
- void kikikai_mcu_ddr3_w(uint8_t data);
- uint8_t kikikai_mcu_ddr4_r();
- void kikikai_mcu_ddr4_w(uint8_t data);
- uint8_t kikikai_mcu_port1_r();
- void kikikai_mcu_port1_w(uint8_t data);
- uint8_t kikikai_mcu_port2_r();
- void kikikai_mcu_port2_w(uint8_t data);
- uint8_t kikikai_mcu_port3_r();
- void kikikai_mcu_port3_w(uint8_t data);
- uint8_t kikikai_mcu_port4_r();
- void kikikai_mcu_port4_w(uint8_t data);
-};
-
-class mexico86_state : public kikikai_state
-{
-public:
- mexico86_state(const machine_config& mconfig, device_type type, const char* tag)
- : kikikai_state(mconfig, type, tag),
- m_68705mcu(*this, "68705mcu")
- {
- }
-
- void mexico86_68705(machine_config& config);
- void knightb(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- virtual void main_f008_w(uint8_t data) override;
-
- INTERRUPT_GEN_MEMBER(mexico86_m68705_interrupt);
- void mexico86_68705_port_a_w(u8 data);
- void mexico86_68705_port_b_w(offs_t offset, u8 data, u8 mem_mask = ~0);
-
- optional_device<m68705p_device> m_68705mcu;
-
- /* mcu */
- /* mexico86 68705 protection */
- u8 m_port_a_out;
- u8 m_port_b_out;
- int m_address;
- u8 m_latch;
-
-};
-
-class kikikai_simulation_state : public kikikai_state
-{
-public:
- kikikai_simulation_state(const machine_config& mconfig, device_type type, const char* tag)
- : kikikai_state(mconfig, type, tag)
- {
- }
-
- void kikikai(machine_config& config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- virtual void main_f008_w(uint8_t data) override;
-
- virtual INTERRUPT_GEN_MEMBER(kikikai_interrupt) override;
-
- void mcu_simulate( );
-
- /* kikikai mcu simulation */
- int m_kikikai_simulated_mcu_running;
- int m_kikikai_simulated_mcu_initialised;
- bool m_coin_last[2];
- u8 m_coin_fract;
-};
diff --git a/src/mame/includes/kingobox.h b/src/mame/includes/kingobox.h
deleted file mode 100644
index 52ec5871118..00000000000
--- a/src/mame/includes/kingobox.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-/*************************************************************************
-
- King of Boxer - Ring King
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_KINGOBOX_H
-#define MAME_INCLUDES_KINGOBOX_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class kingofb_state : public driver_device
-{
-public:
- kingofb_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_scroll_y(*this, "scroll_y"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_videoram2(*this, "videoram2"),
- m_colorram2(*this, "colorram2"),
- m_spriteram(*this, "spriteram"),
- m_video_cpu(*this, "video"),
- m_sprite_cpu(*this, "sprite"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_nmigate(*this, "nmigate"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void kingofb(machine_config &config);
- void ringking(machine_config &config);
-
- void init_ringkingw();
- void init_ringking3();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_scroll_y;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram2;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- int m_palette_bank;
-
- /* devices */
- required_device<cpu_device> m_video_cpu;
- required_device<cpu_device> m_sprite_cpu;
- void video_interrupt_w(uint8_t data);
- void sprite_interrupt_w(uint8_t data);
- void scroll_interrupt_w(uint8_t data);
- void sound_command_w(uint8_t data);
- void kingofb_videoram_w(offs_t offset, uint8_t data);
- void kingofb_colorram_w(offs_t offset, uint8_t data);
- void kingofb_videoram2_w(offs_t offset, uint8_t data);
- void kingofb_colorram2_w(offs_t offset, uint8_t data);
- void kingofb_f800_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(ringking_get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- DECLARE_VIDEO_START(kingofb);
- void kingofb_palette(palette_device &palette);
- DECLARE_VIDEO_START(ringking);
- void ringking_palette(palette_device &palette);
- uint32_t screen_update_kingofb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ringking(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(kingofb_interrupt);
- void palette_init_common(palette_device &palette, const uint8_t *color_prom, void (kingofb_state::*get_rgb_data)(const uint8_t *, int, int *, int *, int *));
- void kingofb_get_rgb_data( const uint8_t *color_prom, int i, int *r_data, int *g_data, int *b_data );
- void ringking_get_rgb_data( const uint8_t *color_prom, int i, int *r_data, int *g_data, int *b_data );
- void kingofb_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void ringking_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<input_merger_device> m_nmigate;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- void kingobox_map(address_map &map);
- void kingobox_sound_io_map(address_map &map);
- void kingobox_sound_map(address_map &map);
- void kingobox_sprite_map(address_map &map);
- void kingobox_video_map(address_map &map);
- void ringking_map(address_map &map);
- void ringking_sound_io_map(address_map &map);
- void ringking_sprite_map(address_map &map);
- void ringking_video_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_KINGOBOX_H
diff --git a/src/mame/includes/klax.h b/src/mame/includes/klax.h
deleted file mode 100644
index 0b4a7e4c1ec..00000000000
--- a/src/mame/includes/klax.h
+++ /dev/null
@@ -1,95 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Klax hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_KLAX_H
-#define MAME_INCLUDES_KLAX_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/msm5205.h"
-#include "video/atarimo.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class klax_state : public driver_device
-{
-public:
- klax_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_playfield_tilemap(*this, "playfield")
- , m_mob(*this, "mob")
- , m_p1(*this, "P1")
- { }
-
- void klax_base(machine_config &config);
- void klax(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
-
- void interrupt_ack_w(u16 data = 0);
-
- void latch_w(u16 data);
-
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void klax_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<atari_motion_objects_device> m_mob;
-
- required_ioport m_p1;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-class klax_bootleg_state : public klax_state
-{
-public:
- klax_bootleg_state(const machine_config &mconfig, device_type type, const char *tag)
- : klax_state(mconfig, type, tag)
- , m_audiocpu(*this, "audiocpu")
- , m_msm(*this, "msm%u", 1)
- , m_rombank(*this, "rombank")
- , m_audio_ram(*this, "audioram")
- { }
-
- void klax5bl(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void m5205_int1(int state);
-
- void bootleg_sound_map(address_map &map);
- void klax5bl_map(address_map &map);
-
- uint16_t audio_ram_r(offs_t offset);
- void audio_ram_w(offs_t offset, uint16_t data);
- void audio_sample_w(offs_t offset, uint8_t data);
- void audio_ctrl_w(uint8_t data);
-
- required_device<cpu_device> m_audiocpu;
- required_device_array<msm5205_device, 2> m_msm;
- required_memory_bank m_rombank;
- required_shared_ptr<uint8_t> m_audio_ram;
- uint8_t m_audio_sample[2];
- bool m_audio_nibble;
-};
-
-#endif // MAME_INCLUDES_KLAX_H
diff --git a/src/mame/includes/kncljoe.h b/src/mame/includes/kncljoe.h
deleted file mode 100644
index 331d95499c1..00000000000
--- a/src/mame/includes/kncljoe.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-/*************************************************************************
-
- Knuckle Joe
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BLOODBRO_H
-#define MAME_INCLUDES_BLOODBRO_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class kncljoe_state : public driver_device
-{
-public:
- kncljoe_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_scrollregs(*this, "scrollregs"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_ay8910(*this, "aysnd"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void kncljoe(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_scrollregs;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_tile_bank;
- int m_sprite_bank;
- int m_flipscreen;
-
- /* misc */
- uint8_t m_port1;
- uint8_t m_port2;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<ay8910_device> m_ay8910;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void sound_cmd_w(uint8_t data);
- void sound_irq_ack_w(uint8_t data);
- void kncljoe_videoram_w(offs_t offset, uint8_t data);
- void kncljoe_control_w(uint8_t data);
- void kncljoe_scroll_w(offs_t offset, uint8_t data);
- void m6803_port1_w(uint8_t data);
- void m6803_port2_w(uint8_t data);
- uint8_t m6803_port1_r();
- uint8_t m6803_port2_r();
- void unused_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void kncljoe_palette(palette_device &palette) const;
- uint32_t screen_update_kncljoe(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(sound_nmi);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_BLOODBRO_H
diff --git a/src/mame/includes/konamigx.h b/src/mame/includes/konamigx.h
deleted file mode 100644
index 47bed7e1d74..00000000000
--- a/src/mame/includes/konamigx.h
+++ /dev/null
@@ -1,343 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont, Acho A. Tang, Phil Stroffolino, Olivier Galibert
-#ifndef MAME_INCLUDES_KONAMIGX_H
-#define MAME_INCLUDES_KONAMIGX_H
-
-#pragma once
-
-#include "cpu/tms57002/tms57002.h"
-#include "machine/adc083x.h"
-#include "machine/k053252.h"
-#include "machine/timer.h"
-#include "sound/k056800.h"
-#include "sound/k054539.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/k053250.h"
-#include "video/k053936.h"
-#include "video/k054156_k054157_k056832.h"
-#include "video/k054338.h"
-#include "video/k055555.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class konamigx_state : public driver_device
-{
-public:
- konamigx_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this,"maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_dasp(*this, "dasp")
- , m_k053252(*this, "k053252")
- , m_k055673(*this, "k055673")
- , m_k055555(*this, "k055555")
- , m_k056832(*this, "k056832")
- , m_k054338(*this, "k054338")
- , m_k056800(*this, "k056800")
- , m_k054539_1(*this, "k054539_1")
- , m_k054539_2(*this, "k054539_2")
- , m_k053250_1(*this, "k053250_1")
- , m_k053250_2(*this, "k053250_2")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_workram(*this, "workram")
- , m_psacram(*this, "psacram")
- , m_subpaletteram32(*this, "subpaletteram")
- , m_k053936_0_ctrl(*this, "k053936_0_ctrl")
- , m_k053936_0_linectrl(*this, "k053936_0_line")
- , m_k053936_0_ctrl_16(*this, "k053936_0_ct16")
- , m_k053936_0_linectrl_16(*this, "k053936_0_li16")
- , m_generic_paletteram_32(*this, "paletteram")
- , m_an0(*this, "AN0")
- , m_an1(*this, "AN1")
- , m_light0_x(*this, "LIGHT0_X")
- , m_light0_y(*this, "LIGHT0_Y")
- , m_light1_x(*this, "LIGHT1_X")
- , m_light1_y(*this, "LIGHT1_Y")
- , m_eepromout(*this, "EEPROMOUT")
- , m_use_68020_post_clock_hack(0)
- , m_lamp(*this, "lamp0")
- { }
-
- void esc_w(address_space &space, uint32_t data);
- void eeprom_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t le2_gun_H_r();
- uint32_t le2_gun_V_r();
- uint32_t type1_roz_r1(offs_t offset);
- uint32_t type1_roz_r2(offs_t offset);
- uint32_t type3_sync_r();
- void type4_prot_w(address_space &space, offs_t offset, uint32_t data);
- void type1_cablamps_w(uint32_t data);
- uint16_t tms57002_status_word_r();
- void tms57002_control_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t K055550_word_r(offs_t offset);
- void K055550_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void K053990_martchmp_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fantjour_dma_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void type3_bank_w(offs_t offset, uint8_t data);
- void konamigx_tilebank_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void konamigx_t1_psacmap_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void konamigx_t4_psacmap_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq_ack_w);
- DECLARE_WRITE_LINE_MEMBER(hblank_irq_ack_w);
- DECLARE_CUSTOM_INPUT_MEMBER(gx_rdport1_3_r);
- void init_konamigx();
- TILE_GET_INFO_MEMBER(get_gx_psac_tile_info);
- TILE_GET_INFO_MEMBER(get_gx_psac3_tile_info);
- TILE_GET_INFO_MEMBER(get_gx_psac3_alt_tile_info);
- TILE_GET_INFO_MEMBER(get_gx_psac1a_tile_info);
- TILE_GET_INFO_MEMBER(get_gx_psac1b_tile_info);
- DECLARE_MACHINE_START(konamigx);
- DECLARE_MACHINE_RESET(konamigx);
- DECLARE_VIDEO_START(konamigx_5bpp);
- DECLARE_VIDEO_START(dragoonj);
- DECLARE_VIDEO_START(le2);
- DECLARE_VIDEO_START(konamigx_6bpp);
- DECLARE_VIDEO_START(opengolf);
- DECLARE_VIDEO_START(racinfrc);
- DECLARE_VIDEO_START(konamigx_type3);
- DECLARE_VIDEO_START(konamigx_type4);
- DECLARE_VIDEO_START(konamigx_type4_vsn);
- DECLARE_VIDEO_START(konamigx_type4_sd2);
- uint32_t screen_update_konamigx(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_konamigx_left(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_konamigx_right(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(konamigx_type2_vblank_irq);
- TIMER_DEVICE_CALLBACK_MEMBER(konamigx_type2_scanline);
- TIMER_DEVICE_CALLBACK_MEMBER(konamigx_type4_scanline);
- DECLARE_WRITE_LINE_MEMBER(k054539_irq_gen);
- TIMER_CALLBACK_MEMBER(dmaend_callback);
- TIMER_CALLBACK_MEMBER(boothack_callback);
- double adc0834_callback(uint8_t input);
- K056832_CB_MEMBER(type2_tile_callback);
- K056832_CB_MEMBER(alpha_tile_callback);
- K055673_CB_MEMBER(type2_sprite_callback);
- K055673_CB_MEMBER(dragoonj_sprite_callback);
- K055673_CB_MEMBER(salmndr2_sprite_callback);
- K055673_CB_MEMBER(le2_sprite_callback);
-
- void common_init();
- uint32_t k_6bpp_rom_long_r(offs_t offset, uint32_t mem_mask = ~0);
- void konamigx_mixer (screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect,tilemap_t *sub1, int sub1flags,tilemap_t *sub2, int sub2flags,int mixerflags, bitmap_ind16 *extra_bitmap, int rushingheroes_hack);
- void konamigx_mixer_draw(screen_device &Screen, bitmap_rgb32 &bitmap, const rectangle &cliprect,
- tilemap_t *sub1, int sub1flags,
- tilemap_t *sub2, int sub2flags,
- int mixerflags, bitmap_ind16 *extra_bitmap, int rushingheroes_hack,
- struct GX_OBJ *objpool,
- int *objbuf,
- int nobj
- );
-
-
- void gx_draw_basic_tilemaps(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int mixerflags, int code);
- void gx_draw_basic_extended_tilemaps_1(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int mixerflags, int code, tilemap_t *sub1, int sub1flags, int rushingheroes_hack, int offs);
- void gx_draw_basic_extended_tilemaps_2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int mixerflags, int code, tilemap_t *sub2, int sub2flags, bitmap_ind16 *extra_bitmap, int offs);
-
- void konamigx_esc_alert(uint32_t *srcbase, int srcoffs, int count, int mode);
- void konamigx_precache_registers(void);
-
- void wipezbuf(int noshadow);
-
- void dmastart_callback(int data);
-
- void konamigx_mixer_init(screen_device &screen, int objdma);
- void konamigx_objdma(void);
- void generate_sprites(address_space &space, uint32_t src, uint32_t spr, int count);
-
- void fantjour_dma_install();
-
- void konamigx_mixer_primode(int mode);
-
- typedef void (konamigx_state::*esc_cb)(address_space &space, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4);
-
- void tkmmpzdm_esc(address_space &space, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4);
- void dragoonj_esc(address_space &space, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4);
- void sal2_esc(address_space &space, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4);
- void sexyparo_esc(address_space &space, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4);
- void tbyahhoo_esc(address_space &space, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4);
- void daiskiss_esc(address_space &space, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4);
-
- inline int K053247GX_combine_c18(int attrib);
- inline int K055555GX_decode_objcolor(int c18);
- inline int K055555GX_decode_inpri(int c18);
- int K055555GX_decode_vmixcolor(int layer, int *color);
-
- void init_posthack();
- void konamigx_6bpp(machine_config &config);
- void gxtype4(machine_config &config);
- void gxtype4_vsn(machine_config &config);
- void racinfrc(machine_config &config);
- void gxtype4sd2(machine_config &config);
- void konamigx_bios(machine_config &config);
- void gxtype3(machine_config &config);
- void opengolf(machine_config &config);
- void winspike(machine_config &config);
- void le2(machine_config &config);
- void konamigx(machine_config &config);
- void dragoonj(machine_config &config);
- void salmndr2(machine_config &config);
- void tbyahhoo(machine_config &config);
- void gokuparo(machine_config &config);
- void sexyparo(machine_config &config);
- void gx_base_memmap(address_map &map);
- void racinfrc_map(address_map &map);
- void gx_type1_map(address_map &map);
- void gx_type2_map(address_map &map);
- void gx_type3_map(address_map &map);
- void gx_type4_map(address_map &map);
- void gxsndmap(address_map &map);
- void gxtmsmap(address_map &map);
-
-protected:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_soundcpu;
- optional_device<tms57002_device> m_dasp;
- required_device<k053252_device> m_k053252;
- required_device<k055673_device> m_k055673;
- required_device<k055555_device> m_k055555;
- required_device<k056832_device> m_k056832;
- optional_device<k054338_device> m_k054338;
- optional_device<k056800_device> m_k056800;
- optional_device<k054539_device> m_k054539_1;
- optional_device<k054539_device> m_k054539_2;
- optional_device<k053250_device> m_k053250_1;
- optional_device<k053250_device> m_k053250_2;
- optional_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- optional_shared_ptr<uint32_t> m_workram;
- optional_shared_ptr<uint32_t> m_psacram;
- optional_shared_ptr<uint32_t> m_subpaletteram32;
- optional_shared_ptr<uint32_t> m_k053936_0_ctrl;
- optional_shared_ptr<uint32_t> m_k053936_0_linectrl;
- optional_shared_ptr<uint16_t> m_k053936_0_ctrl_16;
- optional_shared_ptr<uint16_t> m_k053936_0_linectrl_16;
- optional_shared_ptr<uint32_t> m_generic_paletteram_32;
-
- optional_ioport m_an0, m_an1, m_light0_x, m_light0_y, m_light1_x, m_light1_y, m_eepromout;
-
- uint8_t m_sound_ctrl;
- uint8_t m_sound_intck;
- uint32_t m_fantjour_dma[8];
- int m_konamigx_current_frame;
- int m_gx_objdma, m_gx_primode;
- emu_timer *m_dmadelay_timer;
- emu_timer *m_boothack_timer;
- int m_gx_rdport1_3, m_gx_syncen;
- int m_gx_cfgport;
- int m_suspension_active, m_resume_trigger;
- int m_last_prot_op, m_last_prot_clk;
- u16 m_last_prot_param;
- uint8_t m_prev_pixel_clock;
-
- uint8_t m_esc_program[4096];
- esc_cb m_esc_cb;
-
- uint16_t m_prot_data[0x20];
-
- uint16_t *m_gx_spriteram;
-
- // mirrored K054338 settings
- int *m_K054338_shdRGB;
-
- // 1st-Tier GX/MW Variables
- // frequently used registers
- int m_k053247_vrcbk[4];
- int m_k053247_coreg, m_k053247_coregshift, m_k053247_opset;
- int m_opri, m_oinprion;
- int m_vcblk[6], m_ocblk;
- int m_vinmix, m_vmixon, m_osinmix, m_osmixon;
- uint8_t m_gx_wrport1_0, m_gx_wrport1_1;
- uint16_t m_gx_wrport2;
-
- // 2nd-Tier GX/MW Graphics Variables
- uint8_t *m_gx_objzbuf;
- std::unique_ptr<uint8_t[]> m_gx_shdzbuf;
- int m_layer_colorbase[4];
- int32_t m_gx_tilebanks[8], m_gx_oldbanks[8];
- int m_gx_tilemode, m_gx_rozenable, m_psac_colorbase, m_last_psac_colorbase;
- int m_gx_specialrozenable; // type 1 roz, with voxel height-map, rendered from 2 source tilemaps (which include height data) to temp bitmap for further processing
- int m_gx_rushingheroes_hack;
-
- tilemap_t *m_gx_psac_tilemap, *m_gx_psac_tilemap2;
- std::unique_ptr<bitmap_ind16> m_type3_roz_temp_bitmap;
- tilemap_t *m_gx_psac_tilemap_alt;
- int m_konamigx_has_dual_screen;
- int m_konamigx_palformat;
- std::unique_ptr<bitmap_rgb32> m_dualscreen_left_tempbitmap;
- std::unique_ptr<bitmap_rgb32> m_dualscreen_right_tempbitmap;
-
- /* On Type-1 the K053936 output is rendered to these temporary bitmaps as raw data
- the 'voxel' effect to give the pixels height is a post-process operation on the
- output of the K053936 (this can clearly be seen in videos as large chunks of
- scenary flicker when in the distance due to single pixels in the K053936 output
- becoming visible / invisible due to drawing precision.
-
- -- however, progress on this has stalled as our K053936 doesn't seem to give
- the right output for post processing, I suspect the game is using some
- unsupported flipping modes (probably due to the way it's hooked up to the
- rest of the chips) which is causing entirely the wrong output.
-
- -- furthermore video\k053936.cpp contains an implementation of
- the K053936_zoom_draw named K053936GP_zoom_draw that's only used in konamigx ...
-
-
- */
- std::unique_ptr<bitmap_ind16> m_gxtype1_roz_dstbitmap;
- std::unique_ptr<bitmap_ind16> m_gxtype1_roz_dstbitmap2;
- rectangle m_gxtype1_roz_dstbitmapclip;
-
- u8 m_type3_psac2_bank;
- u8 m_type3_spriteram_bank;
- //int m_konamigx_type3_psac2_actual_last_bank = 0;
- int m_use_68020_post_clock_hack;
- output_finder<> m_lamp;
-};
-
-// Sprite Callbacks
-
-/* callbacks should return color codes in this format:
- fedcba9876543210fedcba9876543210
- ----------------xxxxxxxxxxxxxxxx (bit 00-15: color)
- --------------xx---------------- (bit 16-17: blend code)
- ------------xx------------------ (bit 18-19: brightness code)
- -x------------------------------ (bit 30 : skip shadow)
- x------------------------------- (bit 31 : full shadow)
-*/
-#define K055555_COLORMASK 0x0000ffff
-#define K055555_MIXSHIFT 16
-#define K055555_BRTSHIFT 18
-#define K055555_SKIPSHADOW 0x40000000
-#define K055555_FULLSHADOW 0x80000000
-
-
-
-// Centralized Sprites and Layer Blitter
-
-/* Mixer Flags
- fedcba9876543210fedcba9876543210
- --------------------FFEEDDCCBBAA (layer A-F blend modes)
- ----------------DCBA------------ (layer A-D line/row scroll disables)
- ----FFEEDDCCBBAA---------------- (layer A-F mix codes in forced blending)
- ---x---------------------------- (disable shadows)
- --x----------------------------- (disable z-buffering)
-*/
-#define GXMIX_BLEND_AUTO 0 // emulate all blend effects
-#define GXMIX_BLEND_NONE 1 // disable all blend effects
-#define GXMIX_BLEND_FAST 2 // simulate translucency
-#define GXMIX_BLEND_FORCE 3 // force mix code on selected layer(s)
-#define GXMIX_NOLINESCROLL 0x1000 // disable linescroll on selected layer(s)
-#define GXMIX_NOSHADOW 0x10000000 // disable all shadows (shadow pens will be skipped)
-#define GXMIX_NOZBUF 0x20000000 // disable z-buffering (shadow pens will be drawn as solid)
-
-// Sub Layer Flags
-#define GXSUB_K053250 0x10 // chip type: 0=K053936 ROZ+, 1=K053250 LVC
-#define GXSUB_4BPP 0x04 // 16 colors
-#define GXSUB_5BPP 0x05 // 32 colors
-#define GXSUB_8BPP 0x08 // 256 colors
-
-#endif // MAME_INCLUDES_KONAMIGX_H
diff --git a/src/mame/includes/konamipt.h b/src/mame/includes/konamipt.h
deleted file mode 100644
index 376499acec9..00000000000
--- a/src/mame/includes/konamipt.h
+++ /dev/null
@@ -1,441 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*******************************************************************************
-
- Input port macros used by many games in multiple KONAMI drivers
-
-*******************************************************************************/
-
-
-/***************************** 8bit Players Inputs ****************************/
-
-/*********************** Prototypes 8bit ***********************/
-
-#define KONAMI8_MONO_4WAY( direction1, direction2, button1, button2, button3 ) \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction1 ) PORT_4WAY \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction2 ) PORT_4WAY \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, button1 ) \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, button2 ) \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, button3 )
-
-#define KONAMI8_COCKTAIL_4WAY( direction1, direction2, button1, button2, button3 ) \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction1 ) PORT_4WAY PORT_COCKTAIL \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction2 ) PORT_4WAY PORT_COCKTAIL \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, button1 ) PORT_COCKTAIL \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, button2 ) PORT_COCKTAIL \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, button3 ) PORT_COCKTAIL
-
-#define KONAMI8_MONO_8WAY( direction1, direction2, button1, button2, button3 ) \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction1 ) PORT_8WAY \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction2 ) PORT_8WAY \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, button1 ) \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, button2 ) \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, button3 )
-
-#define KONAMI8_COCKTAIL_8WAY( direction1, direction2, button1, button2, button3 ) \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction1 ) PORT_8WAY PORT_COCKTAIL \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction2 ) PORT_8WAY PORT_COCKTAIL \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, button1 ) PORT_COCKTAIL \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, button2 ) PORT_COCKTAIL \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, button3 ) PORT_COCKTAIL
-
-#define KONAMI8_MULTI_8WAY( player, direction1, direction2, button1, button2, button3 ) \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction1 ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_##direction2 ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, button1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, button2 ) PORT_PLAYER(player) \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, button3 ) PORT_PLAYER(player)
-
-#define KONAMI8_LR_40( player, button1, button2, button3 ) \
- KONAMI8_MULTI_8WAY( player, LEFT, RIGHT, button1, button2, button3 )
-
-#define KONAMI8_RL_40( player, button1, button2, button3 ) \
- KONAMI8_MULTI_8WAY( player, RIGHT, LEFT, button1, button2, button3 )
-
-/*********************** Actual Inputs 8bit ***********************/
-
-/* Cocktail Cabinet 4Way Inputs */
-#define KONAMI8_MONO_4WAY_B12_UNK \
- KONAMI8_MONO_4WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define KONAMI8_COCKTAIL_4WAY_B12_UNK \
- KONAMI8_COCKTAIL_4WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define KONAMI8_MONO_4WAY_B123_UNK \
- KONAMI8_MONO_4WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define KONAMI8_COCKTAIL_4WAY_B123_UNK \
- KONAMI8_COCKTAIL_4WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-
-/* Cocktail Cabinet 8Way Inputs */
-/* 1 Button */
-#define KONAMI8_MONO_B1_UNK \
- KONAMI8_MONO_8WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_UNKNOWN, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define KONAMI8_COCKTAIL_B1_UNK \
- KONAMI8_COCKTAIL_8WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_UNKNOWN, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-/* 2 Buttons */
-#define KONAMI8_MONO_B12_UNK \
- KONAMI8_MONO_8WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define KONAMI8_COCKTAIL_B12_UNK \
- KONAMI8_COCKTAIL_8WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-/* 3 Buttons */
-#define KONAMI8_MONO_B123_UNK \
- KONAMI8_MONO_8WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define KONAMI8_COCKTAIL_B123_UNK \
- KONAMI8_COCKTAIL_8WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define KONAMI8_MONO_B213_UNK \
- KONAMI8_MONO_8WAY( LEFT, RIGHT, IPT_BUTTON2, IPT_BUTTON1, IPT_BUTTON3 ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define KONAMI8_COCKTAIL_B213_UNK \
- KONAMI8_COCKTAIL_8WAY( LEFT, RIGHT, IPT_BUTTON2, IPT_BUTTON1, IPT_BUTTON3 ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-/* 2 Buttons + Start */
-#define KONAMI8_MONO_B12_START \
- KONAMI8_MONO_8WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
-
-#define KONAMI8_COCKTAIL_B12_START \
- KONAMI8_COCKTAIL_8WAY( LEFT, RIGHT, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )
-
-
-/* Upright Multiplayer Cabinet Inputs */
-/* 1 Button */
-#define KONAMI8_B1( player ) \
- KONAMI8_LR_40( player, IPT_BUTTON1, IPT_UNKNOWN, IPT_UNKNOWN )
-
-#define KONAMI8_B1_UNK( player ) \
- KONAMI8_B1( player ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-/* 2 Buttons */
-#define KONAMI8_B12( player ) \
- KONAMI8_LR_40( player, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN )
-
-#define KONAMI8_B12_UNK( player ) \
- KONAMI8_B12( player ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define KONAMI8_B12_START( player ) \
- KONAMI8_B12( player ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##player )
-
-#define KONAMI8_B12_COIN_START( player ) \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(player) \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN##player ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##player )
-
-#define KONAMI8_B21_UNK( player ) \
- KONAMI8_LR_40( player, IPT_BUTTON2, IPT_BUTTON1, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-/* 3 Buttons */
-#define KONAMI8_B123( player ) \
- KONAMI8_LR_40( player, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 )
-
-#define KONAMI8_B123_UNK( player ) \
- KONAMI8_B123( player ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
-
-#define KONAMI8_B123_START( player ) \
- KONAMI8_B123( player ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##player )
-
-#define KONAMI8_B132( player ) \
- KONAMI8_LR_40( player, IPT_BUTTON1, IPT_BUTTON3, IPT_BUTTON2 )
-
-#define KONAMI8_B321( player ) \
- KONAMI8_LR_40( player, IPT_BUTTON3, IPT_BUTTON2, IPT_BUTTON1 )
-
-
-/* vendetta.c uses inputs with switched Left/Right directions. We add these inputs here as well
-because they just need a few lines of code */
-#define KONAMI8_RL_B12_COIN( player ) \
- KONAMI8_RL_40( player, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN##player )
-
-
-/* A few drivers uses bit0 for Start and shuffled joystick inputs */
-#define KONAMI8_ALT( player, button1, button2, button3 ) \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START##player ) \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(player) \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, button1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, button2 ) PORT_PLAYER(player) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, button3 ) PORT_PLAYER(player)
-
-#define KONAMI8_ALT_B12( player ) \
- KONAMI8_ALT( player, IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN )
-
-#define KONAMI8_ALT_B21( player ) \
- KONAMI8_ALT( player, IPT_BUTTON2, IPT_BUTTON1, IPT_UNKNOWN )
-
-#define KONAMI8_ALT_B123( player ) \
- KONAMI8_ALT( player, IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3 )
-
-
-/**************************** 16bit Players Inputs ****************************/
-
-#define KONAMI16_LSB_40( player, button3 ) \
- PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(player) \
- PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) \
- PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(player) \
- PORT_BIT( 0x0040, IP_ACTIVE_LOW, button3 ) PORT_PLAYER(player)
-
-#define KONAMI16_MSB_40( player, button3 ) \
- PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(player) \
- PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) \
- PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(player) \
- PORT_BIT( 0x4000, IP_ACTIVE_LOW, button3 ) PORT_PLAYER(player)
-
-#define KONAMI16_LSB_40_UDLR( player, button3 ) \
- PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(player) \
- PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) \
- PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(player) \
- PORT_BIT( 0x0040, IP_ACTIVE_LOW, button3 ) PORT_PLAYER(player)
-
-#define KONAMI16_MSB_40_UDLR( player, button3 ) \
- PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(player) \
- PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) \
- PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(player) \
- PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(player) \
- PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(player) \
- PORT_BIT( 0x4000, IP_ACTIVE_LOW, button3 ) PORT_PLAYER(player)
-
-#define KONAMI16_LSB( player, button3, start ) \
- KONAMI16_LSB_40( player, button3 ) \
- PORT_BIT( 0x0080, IP_ACTIVE_LOW, start )
-
-#define KONAMI16_MSB( player, button3, start ) \
- KONAMI16_MSB_40( player, button3 ) \
- PORT_BIT( 0x8000, IP_ACTIVE_LOW, start )
-
-#define KONAMI16_LSB_UDLR( player, button3, start ) \
- KONAMI16_LSB_40_UDLR( player, button3 ) \
- PORT_BIT( 0x0080, IP_ACTIVE_LOW, start )
-
-#define KONAMI16_MSB_UDLR( player, button3, start ) \
- KONAMI16_MSB_40_UDLR( player, button3 ) \
- PORT_BIT( 0x8000, IP_ACTIVE_LOW, start )
-
-
-/******************** System Inputs (Coin, Start & Service) *******************/
-
-#define KONAMI8_SYSTEM_10 \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 )
-
-#define KONAMI8_SYSTEM_UNK \
- KONAMI8_SYSTEM_10 \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-/**************************** Coinage Dip Switches ****************************/
-
-/* Konami games from 80s-90s basically use only two kind of coinage dips. The only
-difference is in the settings corresponding to 0x00, which could be either 4C_5C
-or a "Free_Play"-related option. Actually, in the latter case the behavior may change
-depending on the game code:
-Coin A - 0x00 could produce the following effects
- Free_Play = nomen omen (for both players)
- Invalid = both coin slots disabled
-Coin B - 0x00 could produce the following effects
- Free_Play = nomen omen (for both players)
- No Coin B = coin slot B open (coins produce sound), but no effect on coin counter
- None = coin slot B disabled
- No Credits = both coin slots open, but no effect on coin counters
- Invalid = both coin slots disabled
-Accordingly, we pass below different strings for different games */
-
-#define KONAMI_COINAGE_LOC( STRING_A, STRING_B, DIPBANK ) \
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":1,2,3,4") \
- PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x04, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x01, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x03, DEF_STR( 3C_4C ) ) \
- PORT_DIPSETTING( 0x07, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x06, DEF_STR( 2C_5C ) ) \
- PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) ) \
- PORT_DIPSETTING( 0x00, STRING_A ) \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
- PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 3C_4C ) ) \
- PORT_DIPSETTING( 0x70, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) \
- PORT_DIPSETTING( 0x00, STRING_B )
-
-#define KONAMI_COINAGE( STRING_A, STRING_B ) \
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) \
- PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x04, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x01, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x03, DEF_STR( 3C_4C ) ) \
- PORT_DIPSETTING( 0x07, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x06, DEF_STR( 2C_5C ) ) \
- PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) ) \
- PORT_DIPSETTING( 0x00, STRING_A ) \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 3C_4C ) ) \
- PORT_DIPSETTING( 0x70, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) \
- PORT_DIPSETTING( 0x00, STRING_B )
-
-#define KONAMI_COINAGE_ALT_LOC( DIPBANK ) \
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":1,2,3,4") \
- PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x04, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x01, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 4C_5C ) ) \
- PORT_DIPSETTING( 0x03, DEF_STR( 3C_4C ) ) \
- PORT_DIPSETTING( 0x07, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x06, DEF_STR( 2C_5C ) ) \
- PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) ) \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
- PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 4C_5C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 3C_4C ) ) \
- PORT_DIPSETTING( 0x70, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) )
-
-#define KONAMI_COINAGE_ALT \
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) \
- PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x04, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x01, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 4C_5C ) ) \
- PORT_DIPSETTING( 0x03, DEF_STR( 3C_4C ) ) \
- PORT_DIPSETTING( 0x07, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x06, DEF_STR( 2C_5C ) ) \
- PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) ) \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 3C_2C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 4C_3C ) ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 4C_5C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 3C_4C ) ) \
- PORT_DIPSETTING( 0x70, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) \
- PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) )
diff --git a/src/mame/includes/kopunch.h b/src/mame/includes/kopunch.h
deleted file mode 100644
index 66d2f212296..00000000000
--- a/src/mame/includes/kopunch.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Sega KO Punch
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_KOPUNCH_H
-#define MAME_INCLUDES_KOPUNCH_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class kopunch_state : public driver_device
-{
-public:
- kopunch_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_vram_fg(*this, "vram_fg")
- , m_vram_bg(*this, "vram_bg")
- , m_lamp(*this, "lamp0")
- { }
-
- void kopunch(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(left_coin_inserted);
- DECLARE_INPUT_CHANGED_MEMBER(right_coin_inserted);
-
-private:
- uint8_t sensors1_r();
- uint8_t sensors2_r();
- void lamp_w(uint8_t data);
- void coin_w(uint8_t data);
- void vram_fg_w(offs_t offset, uint8_t data);
- void vram_bg_w(offs_t offset, uint8_t data);
- void scroll_x_w(uint8_t data);
- void scroll_y_w(uint8_t data);
- void gfxbank_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void kopunch_palette(palette_device &palette) const;
- uint32_t screen_update_kopunch(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void kopunch_io_map(address_map &map);
- void kopunch_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_vram_fg;
- required_shared_ptr<uint8_t> m_vram_bg;
-
- output_finder<> m_lamp;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_gfxbank;
- uint8_t m_scrollx;
-};
-
-#endif // MAME_INCLUDES_KOPUNCH_H
diff --git a/src/mame/includes/ksayakyu.h b/src/mame/includes/ksayakyu.h
deleted file mode 100644
index 8d8e001e455..00000000000
--- a/src/mame/includes/ksayakyu.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-
-/*************************************************************************
-
- Kusayakyuu
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_KSAYAKYU_H
-#define MAME_INCLUDES_KSAYAKYU_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class ksayakyu_state : public driver_device
-{
-public:
- ksayakyu_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void ksayakyu(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_tilemap;
- tilemap_t *m_textmap;
- int m_video_ctrl;
- int m_flipscreen;
-
- /* misc */
- int m_sound_status;
- void bank_select_w(uint8_t data);
- void latch_w(uint8_t data);
- uint8_t sound_status_r();
- void tomaincpu_w(uint8_t data);
- uint8_t int_ack_r();
- void ksayakyu_videoram_w(offs_t offset, uint8_t data);
- void ksayakyu_videoctrl_w(uint8_t data);
- void dummy1_w(uint8_t data);
- void dummy2_w(uint8_t data);
- void dummy3_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_ksayakyu_tile_info);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- void ksayakyu_palette(palette_device &palette) const;
- uint32_t screen_update_ksayakyu(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- void maincpu_map(address_map &map);
- void soundcpu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_KSAYAKYU_H
diff --git a/src/mame/includes/kyocera.h b/src/mame/includes/kyocera.h
deleted file mode 100644
index c8517c772cd..00000000000
--- a/src/mame/includes/kyocera.h
+++ /dev/null
@@ -1,267 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_KYOCERA_H
-#define MAME_INCLUDES_KYOCERA_H
-
-#pragma once
-
-#include "cpu/i8085/i8085.h"
-#include "imagedev/cassette.h"
-#include "machine/buffer.h"
-#include "machine/i8155.h"
-#include "machine/i8251.h"
-#include "machine/im6402.h"
-#include "machine/ram.h"
-#include "machine/rp5c01.h"
-#include "machine/timer.h"
-#include "machine/upd1990a.h"
-#include "sound/spkrdev.h"
-#include "video/hd44102.h"
-#include "video/hd61830.h"
-
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/rs232/rs232.h"
-
-#include "emupal.h"
-
-
-#define SCREEN_TAG "screen"
-#define I8085_TAG "m19"
-#define I8155_TAG "m25"
-#define UPD1990A_TAG "m18"
-#define IM6402_TAG "m22"
-#define MC14412_TAG "m31"
-#define CENTRONICS_TAG "centronics"
-#define RS232_TAG "rs232"
-
-//#define I8085_TAG "m19"
-//#define I8155_TAG "m12"
-//#define MC14412_TAG "m8"
-#define RP5C01A_TAG "m301"
-#define TCM5089_TAG "m11"
-#define I8251_TAG "m20"
-#define HD61830_TAG "m18"
-
-class kc85_state : public driver_device
-{
-public:
- kc85_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, I8085_TAG),
- m_rtc(*this, UPD1990A_TAG),
- m_uart(*this, IM6402_TAG),
- m_lcdc(*this, "m%u", 0U),
- m_centronics(*this, CENTRONICS_TAG),
- m_speaker(*this, "speaker"),
- m_cassette(*this, "cassette"),
- m_opt_cart(*this, "opt_cartslot"),
- m_ram(*this, RAM_TAG),
- m_rs232(*this, RS232_TAG),
- m_rom(*this, I8085_TAG),
- m_y(*this, "Y%u", 0U),
- m_battery(*this, "BATTERY"),
- m_bank1(*this, "bank1"),
- m_bank2(*this, "bank2")
- { }
-
- void kc85(machine_config &config);
- void kc85_video(machine_config &config);
-
-protected:
- DECLARE_WRITE_LINE_MEMBER(kc85_sod_w);
- DECLARE_READ_LINE_MEMBER(kc85_sid_r);
-
- void i8155_pa_w(uint8_t data);
- void i8155_pb_w(uint8_t data);
- uint8_t i8155_pc_r();
-
- DECLARE_WRITE_LINE_MEMBER( i8155_to_w );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_busy );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_select );
-
- required_device<i8085a_cpu_device> m_maincpu;
- required_device<upd1990a_device> m_rtc;
- optional_device<im6402_device> m_uart;
- required_device_array<hd44102_device, 10> m_lcdc;
- required_device<centronics_device> m_centronics;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_device<generic_slot_device> m_opt_cart;
- required_device<ram_device> m_ram;
- required_device<rs232_port_device> m_rs232;
- required_memory_region m_rom;
- required_ioport_array<9> m_y;
- required_ioport m_battery;
- memory_bank_creator m_bank1;
- memory_bank_creator m_bank2;
-
- virtual void machine_start() override;
- memory_region *m_opt_region;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint8_t uart_r();
- uint8_t uart_status_r();
- void uart_ctrl_w(uint8_t data);
- void modem_w(uint8_t data);
- void ctrl_w(uint8_t data);
- uint8_t keyboard_r();
- uint8_t lcd_r(offs_t offset);
- void lcd_w(offs_t offset, uint8_t data);
-
- /* memory state */
- uint8_t m_bank; /* memory bank selection */
-
- /* keyboard state */
- uint16_t m_keylatch; /* keyboard latch */
-
- /* sound state */
- int m_buzzer; /* buzzer select */
- int m_bell; /* bell output */
-
- int m_centronics_busy;
- int m_centronics_select;
-
- void kc85_palette(palette_device &palette) const;
- void kc85_io(address_map &map);
- void kc85_mem(address_map &map);
- void trsm100_io(address_map &map);
-};
-
-class trsm100_state : public kc85_state
-{
-public:
- trsm100_state(const machine_config &mconfig, device_type type, const char *tag) :
- kc85_state(mconfig, type, tag)
- { }
-
- void trsm100(machine_config &config);
- void tandy102(machine_config &config);
-
-private:
- virtual void machine_start() override;
-};
-
-class pc8201_state : public kc85_state
-{
-public:
- pc8201_state(const machine_config &mconfig, device_type type, const char *tag) :
- kc85_state(mconfig, type, tag),
- m_cas_cart(*this, "cas_cartslot")
- { }
-
- void pc8300(machine_config &config);
- void pc8201(machine_config &config);
-
-private:
- virtual void machine_start() override;
- required_device<generic_slot_device> m_cas_cart;
-
- uint8_t bank_r();
- void bank_w(uint8_t data);
- void scp_w(uint8_t data);
- uint8_t uart_status_r();
- void romah_w(uint8_t data);
- void romal_w(uint8_t data);
- void romam_w(uint8_t data);
- uint8_t romrd_r();
-
- void bankswitch(uint8_t data);
-
- // ROM cassette
- int m_rom_sel;
- uint32_t m_rom_addr;
-
- /* peripheral state */
- int m_iosel; /* serial interface select */
- void pc8201_io(address_map &map);
- void pc8201_mem(address_map &map);
-};
-
-class tandy200_state : public driver_device
-{
-public:
- tandy200_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, I8085_TAG),
- m_rtc(*this, RP5C01A_TAG),
- m_lcdc(*this, HD61830_TAG),
- m_centronics(*this, CENTRONICS_TAG),
- m_cent_data_out(*this, "cent_data_out"),
- m_speaker(*this, "speaker"),
- m_cassette(*this, "cassette"),
- m_opt_cart(*this, "opt_cartslot"),
- m_ram(*this, RAM_TAG),
- m_rs232(*this, RS232_TAG),
- m_rom(*this, I8085_TAG),
- m_y(*this, "Y%u", 0U),
- m_bank1(*this, "bank1"),
- m_bank2(*this, "bank2")
- { }
-
- void tandy200(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_device<i8085a_cpu_device> m_maincpu;
- required_device<rp5c01_device> m_rtc;
- required_device<hd61830_device> m_lcdc;
- required_device<centronics_device> m_centronics;
- required_device<output_latch_device> m_cent_data_out;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_device<generic_slot_device> m_opt_cart;
- required_device<ram_device> m_ram;
- required_device<rs232_port_device> m_rs232;
- required_memory_region m_rom;
- required_ioport_array<9> m_y;
- memory_bank_creator m_bank1;
- memory_bank_creator m_bank2;
-
- memory_region *m_opt_region;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint8_t bank_r();
- void bank_w(uint8_t data);
- uint8_t stbk_r();
- void stbk_w(uint8_t data);
- void i8155_pa_w(uint8_t data);
- void i8155_pb_w(uint8_t data);
- uint8_t i8155_pc_r();
- DECLARE_WRITE_LINE_MEMBER( i8155_to_w );
- DECLARE_WRITE_LINE_MEMBER(kc85_sod_w);
- DECLARE_READ_LINE_MEMBER(kc85_sid_r);
- DECLARE_WRITE_LINE_MEMBER( write_centronics_busy );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_select );
-
- void tandy200_palette(palette_device &palette) const;
-
- TIMER_DEVICE_CALLBACK_MEMBER(tandy200_tp_tick);
-
- void bankswitch(uint8_t data);
-
- /* memory state */
- uint8_t m_bank; /* memory bank selection */
-
- /* keyboard state */
- uint16_t m_keylatch; /* keyboard latch */
- int m_tp; /* timing pulse */
-
- /* sound state */
- int m_buzzer; /* buzzer select */
- int m_bell; /* bell output */
-
- int m_centronics_busy;
- int m_centronics_select;
- void tandy200_video(machine_config &config);
- void tandy200_io(address_map &map);
- void tandy200_lcdc(address_map &map);
- void tandy200_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_KYOCERA_H
diff --git a/src/mame/includes/kyugo.h b/src/mame/includes/kyugo.h
deleted file mode 100644
index 99987c948b3..00000000000
--- a/src/mame/includes/kyugo.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-/***************************************************************************
-
- Kyugo hardware games
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_KYUGO_H
-#define MAME_INCLUDES_KYUGO_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class kyugo_state : public driver_device
-{
-public:
- kyugo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_fgvideoram(*this, "fgvideoram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_bgattribram(*this, "bgattribram"),
- m_spriteram(*this, "spriteram_%u", 1U),
- m_shared_ram(*this, "shared_ram"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void kyugo_base(machine_config &config);
- void repulse(machine_config &config);
- void flashgala(machine_config &config);
- void srdmissn(machine_config &config);
- void legend(machine_config &config);
- void gyrodine(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- void nmi_mask_w(int state);
- void coin_counter_w(offs_t offset, uint8_t data);
- void fgvideoram_w(offs_t offset, uint8_t data);
- void bgvideoram_w(offs_t offset, uint8_t data);
- void bgattribram_w(offs_t offset, uint8_t data);
- uint8_t spriteram_2_r(offs_t offset);
- void scroll_x_lo_w(uint8_t data);
- void gfxctrl_w(uint8_t data);
- void scroll_y_w(uint8_t data);
- void flipscreen_w(int state);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vblank_irq);
-
- void flashgala_sub_map(address_map &map);
- void flashgala_sub_portmap(address_map &map);
- void gyrodine_main_map(address_map &map);
- void gyrodine_sub_map(address_map &map);
- void gyrodine_sub_portmap(address_map &map);
- void kyugo_main_map(address_map &map);
- void kyugo_main_portmap(address_map &map);
- void srdmissn_main_map(address_map &map);
- void legend_sub_map(address_map &map);
- void repulse_sub_map(address_map &map);
- void repulse_sub_portmap(address_map &map);
- void srdmissn_sub_map(address_map &map);
- void srdmissn_sub_portmap(address_map &map);
-
- // memory pointers
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_bgattribram;
- required_shared_ptr_array<uint8_t, 2> m_spriteram;
- required_shared_ptr<uint8_t> m_shared_ram;
-
- uint8_t m_nmi_mask;
-
- // video-related
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_scroll_x_lo;
- uint8_t m_scroll_x_hi;
- uint8_t m_scroll_y;
- uint8_t m_bgpalbank;
- uint8_t m_fgcolor;
- const uint8_t *m_color_codes;
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-#endif // MAME_INCLUDES_KYUGO_H
diff --git a/src/mame/includes/labyrunr.h b/src/mame/includes/labyrunr.h
deleted file mode 100644
index 51c01b4faf2..00000000000
--- a/src/mame/includes/labyrunr.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Labyrinth Runner
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_LABYRUNR_H
-#define MAME_INCLUDES_LABYRUNR_H
-
-#pragma once
-
-#include "video/k007121.h"
-#include "video/k051733.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class labyrunr_state : public driver_device
-{
-public:
- labyrunr_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_k007121(*this, "k007121"),
- m_maincpu(*this,"maincpu"),
- m_scrollram(*this, "scrollram"),
- m_spriteram(*this, "spriteram"),
- m_videoram1(*this, "videoram1"),
- m_videoram2(*this, "videoram2"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void labyrunr(machine_config &config);
-
-private:
- /* devices */
- required_device<k007121_device> m_k007121;
-
- required_device<cpu_device> m_maincpu;
- /* memory pointers */
- required_shared_ptr<uint8_t> m_scrollram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram1;
- required_shared_ptr<uint8_t> m_videoram2;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* video-related */
- tilemap_t *m_layer0;
- tilemap_t *m_layer1;
- rectangle m_clip0;
- rectangle m_clip1;
-
- void labyrunr_bankswitch_w(uint8_t data);
- void labyrunr_vram1_w(offs_t offset, uint8_t data);
- void labyrunr_vram2_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info0);
- TILE_GET_INFO_MEMBER(get_tile_info1);
- virtual void machine_start() override;
- virtual void video_start() override;
- void labyrunr_palette(palette_device &palette) const;
- uint32_t screen_update_labyrunr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(labyrunr_timer_interrupt);
- void labyrunr_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LABYRUNR_H
diff --git a/src/mame/includes/ladybug.h b/src/mame/includes/ladybug.h
deleted file mode 100644
index 7b9177a134f..00000000000
--- a/src/mame/includes/ladybug.h
+++ /dev/null
@@ -1,135 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Universal 8106-A2 + 8106-B PCB set
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_LADYBUG_H
-#define MAME_INCLUDES_LADYBUG_H
-
-#pragma once
-
-#include "video/ladybug.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class ladybug_base_state : public driver_device
-{
-protected:
- using driver_device::driver_device;
-
- void palette_init_common(
- palette_device &palette, const uint8_t *color_prom,
- int r_bit0, int r_bit1,
- int g_bit0, int g_bit1,
- int b_bit0, int b_bit1) const;
-};
-
-
-// ladybug platform
-class ladybug_state : public ladybug_base_state
-{
-public:
- ladybug_state(const machine_config &mconfig, device_type type, const char *tag)
- : ladybug_base_state(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_video(*this, "video")
- , m_port_dsw0(*this, "DSW0")
- , m_p1_control(*this, "CONTP1")
- , m_p2_control(*this, "CONTP2")
- { }
-
- DECLARE_CUSTOM_INPUT_MEMBER(ladybug_p1_control_r);
- DECLARE_CUSTOM_INPUT_MEMBER(ladybug_p2_control_r);
- DECLARE_INPUT_CHANGED_MEMBER(coin1_inserted);
- DECLARE_INPUT_CHANGED_MEMBER(coin2_inserted);
- void ladybug(machine_config &config);
-
-protected:
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- void ladybug_palette(palette_device &palette) const;
- uint32_t screen_update_ladybug(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void ladybug_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
-
-private:
- required_device<ladybug_video_device> m_video;
-
- required_ioport m_port_dsw0;
- optional_ioport m_p1_control;
- optional_ioport m_p2_control;
-};
-
-
-// ladybug plus program decryption
-class dorodon_state : public ladybug_state
-{
-public:
- dorodon_state(const machine_config &mconfig, device_type type, const char *tag)
- : ladybug_state(mconfig, type, tag)
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void init_dorodon();
- void dorodon(machine_config &config);
-
-protected:
- void decrypted_opcodes_map(address_map &map);
-
-private:
- required_shared_ptr<uint8_t> m_decrypted_opcodes;
-};
-
-
-// graphics from ladybug, stars from zerohour, plus grid layer
-class sraider_state : public ladybug_base_state
-{
-public:
- sraider_state(const machine_config &mconfig, device_type type, const char *tag)
- : ladybug_base_state(mconfig, type, tag)
- , m_grid_data(*this, "grid_data")
- , m_palette(*this, "palette")
- , m_gfxdecode(*this, "gfxdecode")
- , m_video(*this, "video")
- , m_stars(*this, "stars")
- { }
-
- void sraider(machine_config &config);
-
-protected:
- uint8_t sraider_8005_r();
- void sraider_misc_w(offs_t offset, uint8_t data);
- void sraider_io_w(uint8_t data);
- void sraider_palette(palette_device &palette) const;
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_sraider);
- TILE_GET_INFO_MEMBER(get_grid_tile_info);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_sraider(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void sraider_cpu1_map(address_map &map);
- void sraider_cpu2_io_map(address_map &map);
- void sraider_cpu2_map(address_map &map);
-
-private:
- required_shared_ptr<uint8_t> m_grid_data;
- required_device<palette_device> m_palette;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<ladybug_video_device> m_video;
- required_device<zerohour_stars_device> m_stars;
-
- tilemap_t *m_grid_tilemap;
-
- uint8_t m_grid_color;
- uint8_t m_sraider_0x30;
- uint8_t m_sraider_0x38;
- uint8_t m_weird_value[8];
-};
-
-#endif // MAME_INCLUDES_LADYBUG_H
diff --git a/src/mame/includes/ladyfrog.h b/src/mame/includes/ladyfrog.h
deleted file mode 100644
index b9dd982fc2e..00000000000
--- a/src/mame/includes/ladyfrog.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-/*************************************************************************
-
- Lady Frog
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_LADYFROG_H
-#define MAME_INCLUDES_LADYFROG_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/msm5232.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class ladyfrog_state : public driver_device
-{
-public:
- ladyfrog_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_scrlram(*this, "scrlram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void toucheme(machine_config &config);
- void ladyfrog(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- std::unique_ptr<uint8_t[]> m_spriteram;
- required_shared_ptr<uint8_t> m_scrlram;
- std::vector<uint8_t> m_paletteram;
- std::vector<uint8_t> m_paletteram_ext;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_tilebank;
- int m_palette_bank;
- int m_spritetilebase;
-
- /* misc */
- int m_sound_nmi_enable;
- int m_pending_nmi;
- int m_snd_flag;
- uint8_t m_snd_data;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<msm5232_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- uint8_t from_snd_r();
- void to_main_w(uint8_t data);
- void sound_cpu_reset_w(uint8_t data);
- void sound_command_w(uint8_t data);
- void nmi_disable_w(uint8_t data);
- void nmi_enable_w(uint8_t data);
- uint8_t snd_flag_r();
- void ladyfrog_spriteram_w(offs_t offset, uint8_t data);
- uint8_t ladyfrog_spriteram_r(offs_t offset);
- void ladyfrog_videoram_w(offs_t offset, uint8_t data);
- uint8_t ladyfrog_videoram_r(offs_t offset);
- void ladyfrog_palette_w(offs_t offset, uint8_t data);
- uint8_t ladyfrog_palette_r(offs_t offset);
- void ladyfrog_gfxctrl_w(uint8_t data);
- void ladyfrog_gfxctrl2_w(uint8_t data);
- uint8_t ladyfrog_scrlram_r(offs_t offset);
- void ladyfrog_scrlram_w(offs_t offset, uint8_t data);
- void unk_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- DECLARE_VIDEO_START(toucheme);
- DECLARE_VIDEO_START(ladyfrog_common);
- uint32_t screen_update_ladyfrog(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(nmi_callback);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void ladyfrog_map(address_map &map);
- void ladyfrog_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LADYFROG_H
diff --git a/src/mame/includes/laserbat.h b/src/mame/includes/laserbat.h
deleted file mode 100644
index 66aa0a955c9..00000000000
--- a/src/mame/includes/laserbat.h
+++ /dev/null
@@ -1,195 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Vas Crabb
-/*************************************************************************
-
- Laser Battle / Lazarian - Cat and Mouse
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_LASERBAT_H
-#define MAME_INCLUDES_LASERBAT_H
-
-#pragma once
-
-#include "audio/zaccaria.h"
-
-#include "cpu/s2650/s2650.h"
-
-#include "machine/6821pia.h"
-#include "machine/pla.h"
-#include "machine/s2636.h"
-
-#include "sound/ay8910.h"
-#include "sound/sn76477.h"
-#include "sound/tms3615.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-
-class laserbat_state_base : public driver_device
-{
-public:
- void laserbat_base(machine_config &config);
- void laserbat_io_map(address_map &map);
- void laserbat_map(address_map &map);
-
-protected:
- enum { TIMER_SCANLINE };
-
- laserbat_state_base(const machine_config &mconfig, device_type type, const char *tag, uint8_t eff2_mask)
- : driver_device(mconfig, type, tag)
- , m_mux_ports(*this, {"ROW0", "ROW1", "SW1", "SW2"})
- , m_row1(*this, "ROW1")
- , m_row2(*this, "ROW2")
- , m_maincpu(*this, "maincpu")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_gfxmix(*this, "gfxmix")
- , m_pvi(*this, "pvi%u", 1U)
- , m_gfxdecode(*this, "gfxdecode")
- , m_gfx1(*this, "gfx1")
- , m_gfx2(*this, "gfx2")
- , m_eff2_mask(eff2_mask)
- {
- }
-
- // control ports
- void ct_io_w(uint8_t data);
- uint8_t rrowx_r();
-
- INTERRUPT_GEN_MEMBER(laserbat_interrupt);
-
- // video memory and control ports
- void videoram_w(offs_t offset, uint8_t data);
- void wcoh_w(uint8_t data);
- void wcov_w(uint8_t data);
- void cnt_eff_w(uint8_t data);
- void cnt_nav_w(uint8_t data);
-
- // sound control ports
- virtual uint8_t rhsc_r();
- virtual void whsc_w(uint8_t data);
- virtual void csound1_w(uint8_t data);
- virtual void csound2_w(uint8_t data);
-
- // running the video
- virtual void machine_start() override;
- uint32_t screen_update_laserbat(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // video functions
- TIMER_CALLBACK_MEMBER(video_line);
-
- // input lines
- required_ioport_array<4> m_mux_ports;
- required_ioport m_row1;
- required_ioport m_row2;
-
- // main CPU device
- required_device<s2650_device> m_maincpu;
-
- // video devices
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<pla_device> m_gfxmix;
- required_device_array<s2636_device, 3> m_pvi;
- required_device<gfxdecode_device> m_gfxdecode;
-
- // stuff for rendering video
- required_region_ptr<uint8_t> m_gfx1;
- required_region_ptr<uint8_t> m_gfx2;
- emu_timer *m_scanline_timer = nullptr;
- bitmap_ind16 m_bitmap;
- uint16_t m_gfx2_base = 0;
- uint8_t const m_eff2_mask;
-
- // control lines
- uint8_t m_input_mux;
- bool m_mpx_p_1_2;
-
- // RAM used by TTL video hardware, writable by CPU
- uint8_t m_bg_ram[0x400]; // background tilemap
- uint8_t m_eff_ram[0x400]; // per-scanline effects (A8 not wired meaning only half is usable)
- bool m_mpx_bkeff = false; // select between writing background and effects memory
-
- // signals affecting the TTL-generated 32x32 sprite
- bool m_nave = false; // 1-bit enable
- uint8_t m_clr_lum = 0; // 3-bit colour/luminance
- uint8_t m_shp = 0; // 3-bit shape
- uint8_t m_wcoh = 0; // 8-bit offset horizontal
- uint8_t m_wcov = 0; // 8-bit offset vertical
-
- // video effects signals
- bool m_abeff1 = false; // 1-bit effect enable
- bool m_abeff2 = false; // 1-bit effect enable
- bool m_mpx_eff2_sh = false; // 1-bit effect selection
- uint8_t m_coleff = 0; // 2-bit colour effect
- bool m_neg1 = false; // 1-bit area selection
- bool m_neg2 = false; // 1-bit area selection
-
- // sound board I/O signals
- uint8_t m_rhsc = 0; // 8-bit input from J7
- uint8_t m_whsc = 0; // 8-bit output to J7
- uint8_t m_csound1 = 0; // bits 1-8 on J3
- uint8_t m_csound2 = 0; // bits 9-16 on J3
-};
-
-
-class laserbat_state : public laserbat_state_base
-{
-public:
- laserbat_state(const machine_config &mconfig, device_type type, const char *tag)
- : laserbat_state_base(mconfig, type, tag, 0x00)
- , m_csg(*this, "csg")
- , m_synth_low(*this, "synth_low")
- , m_synth_high(*this, "synth_high")
- {
- }
-
- void laserbat(machine_config &config);
-
-protected:
- // initialisation/startup
- virtual void machine_start() override;
-
- // video initialisation
- void laserbat_palette(palette_device &palette) const;
-
- // sound control ports
- virtual void csound2_w(uint8_t data) override;
-
- // sound board devices
- required_device<sn76477_device> m_csg;
- required_device<tms3615_device> m_synth_low;
- required_device<tms3615_device> m_synth_high;
-
- // register state
- uint32_t m_keys = 0; // low octave keys 1-13 and high octave keys 2-12 (24 bits)
-};
-
-
-class catnmous_state : public laserbat_state_base
-{
-public:
- catnmous_state(const machine_config &mconfig, device_type type, const char *tag)
- : laserbat_state_base(mconfig, type, tag, 0x03)
- , m_audiopcb(*this, "audiopcb")
- {
- }
-
- void catnmous(machine_config &config);
-
-protected:
-
- // video initialisation
- void catnmous_palette(palette_device &palette) const;
-
- // sound control ports
- virtual void csound1_w(uint8_t data) override;
- virtual void csound2_w(uint8_t data) override;
-
- required_device<zac1b11107_audio_device> m_audiopcb;
-};
-
-#endif // MAME_INCLUDES_LASERBAT_H
diff --git a/src/mame/includes/lasso.h b/src/mame/includes/lasso.h
deleted file mode 100644
index e9c8fc84f8d..00000000000
--- a/src/mame/includes/lasso.h
+++ /dev/null
@@ -1,116 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino, Nicola Salmoria, Luca Elia
-/***************************************************************************
-
- Lasso and similar hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_LASSO_H
-#define MAME_INCLUDES_LASSO_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/sn76496.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class lasso_state : public driver_device
-{
-public:
- lasso_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram"),
- m_back_color(*this, "back_color"),
- m_chip_data(*this, "chip_data"),
- m_bitmap_ram(*this, "bitmap_ram"),
- m_last_colors(*this, "last_colors"),
- m_track_scroll(*this, "track_scroll"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_sn_1(*this, "sn76489.1"),
- m_sn_2(*this, "sn76489.2"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void base(machine_config &config);
- void wwjgtin(machine_config &config);
- void lasso(machine_config &config);
- void chameleo(machine_config &config);
- void pinbo(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_back_color;
- optional_shared_ptr<uint8_t> m_chip_data;
- optional_shared_ptr<uint8_t> m_bitmap_ram; /* 0x2000 bytes for a 256 x 256 x 1 bitmap */
- optional_shared_ptr<uint8_t> m_last_colors;
- optional_shared_ptr<uint8_t> m_track_scroll;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_track_tilemap;
- uint8_t m_gfxbank; /* used by lasso, chameleo, wwjgtin and pinbo */
- uint8_t m_track_enable; /* used by wwjgtin */
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<sn76489_device> m_sn_1;
- optional_device<sn76489_device> m_sn_2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void sound_command_w(uint8_t data);
- uint8_t sound_status_r();
- void sound_select_w(uint8_t data);
- void lasso_videoram_w(offs_t offset, uint8_t data);
- void lasso_colorram_w(offs_t offset, uint8_t data);
- void lasso_flip_screen_w(uint8_t data);
- void lasso_video_control_w(uint8_t data);
- void wwjgtin_video_control_w(uint8_t data);
- void pinbo_video_control_w(uint8_t data);
- TILE_GET_INFO_MEMBER(lasso_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(wwjgtin_get_track_tile_info);
- TILE_GET_INFO_MEMBER(pinbo_get_bg_tile_info);
- void lasso_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(wwjgtin);
- DECLARE_MACHINE_RESET(wwjgtin);
- DECLARE_VIDEO_START(wwjgtin);
- void wwjgtin_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(pinbo);
- uint32_t screen_update_lasso(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_chameleo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_wwjgtin(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- static rgb_t get_color(int data);
- void wwjgtin_set_last_four_colors();
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int reverse);
- void draw_lasso(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void chameleo_audio_map(address_map &map);
- void chameleo_main_map(address_map &map);
- void lasso_audio_map(address_map &map);
- void lasso_coprocessor_map(address_map &map);
- void lasso_main_map(address_map &map);
- void pinbo_audio_io_map(address_map &map);
- void pinbo_audio_map(address_map &map);
- void pinbo_main_map(address_map &map);
- void wwjgtin_audio_map(address_map &map);
- void wwjgtin_main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LASSO_H
diff --git a/src/mame/includes/lastduel.h b/src/mame/includes/lastduel.h
deleted file mode 100644
index 54b0fe403f1..00000000000
--- a/src/mame/includes/lastduel.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Last Duel
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_LASTDUEL_H
-#define MAME_INCLUDES_LASTDUEL_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class lastduel_state : public driver_device
-{
-public:
- lastduel_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram"),
- m_txram(*this, "txram"),
- m_vram(*this, "vram_%u", 0U),
- m_audiobank(*this, "audiobank")
- { }
-
- void lastduel(machine_config &config);
- void madgear(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_device<buffered_spriteram16_device> m_spriteram;
- required_shared_ptr<uint16_t> m_txram;
- required_shared_ptr_array<uint16_t, 2> m_vram;
-
- optional_memory_bank m_audiobank;
-
- /* video-related */
- tilemap_t *m_tilemap[2];
- tilemap_t *m_tx_tilemap;
- uint16_t m_vctrl[8];
- int m_sprite_flipy_mask;
- int m_sprite_pri_mask;
- int m_tilemap_priority;
-
- void mg_bankswitch_w(uint8_t data);
- void flip_w(uint8_t data);
- void vctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- template<int Layer> void lastduel_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void txram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- template<int Layer> void madgear_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- static rgb_t lastduel_RRRRGGGGBBBBIIII(uint32_t raw);
- TILE_GET_INFO_MEMBER(ld_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(ld_get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_fix_info);
- virtual void machine_reset() override;
- DECLARE_MACHINE_START(lastduel);
- DECLARE_VIDEO_START(lastduel);
- DECLARE_MACHINE_START(madgear);
- DECLARE_VIDEO_START(madgear);
- uint32_t screen_update_lastduel(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_madgear(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(lastduel_timer_cb);
- TIMER_DEVICE_CALLBACK_MEMBER(madgear_timer_cb);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri);
- void lastduel_map(address_map &map);
- void madgear_map(address_map &map);
- void madgear_sound_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LASTDUEL_H
diff --git a/src/mame/includes/lazercmd.h b/src/mame/includes/lazercmd.h
deleted file mode 100644
index d2a9f9b24cc..00000000000
--- a/src/mame/includes/lazercmd.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Juergen Buchmueller
-#ifndef MAME_INCLUDES_LAZERCMD_H
-#define MAME_INCLUDES_LAZERCMD_H
-
-#pragma once
-
-#include "cpu/s2650/s2650.h"
-#include "machine/timer.h"
-#include "sound/dac.h"
-#include "emupal.h"
-
-#define HORZ_RES 32
-#define VERT_RES 24
-#define HORZ_CHR 8
-#define VERT_CHR 10
-#define VERT_FNT 8
-
-#define HORZ_BAR 0x40
-#define VERT_BAR 0x80
-
-#define MARKER_ACTIVE_L 0x03
-#define MARKER_ACTIVE_R 0x04
-#define MARKER_VERT_R 0x0a
-#define MARKER_HORZ_L 0x0b
-#define MARKER_VERT_L 0x0c
-#define MARKER_HORZ_R 0x0d
-
-#define MARKER_HORZ_ADJ -1
-#define MARKER_VERT_ADJ -10
-
-class lazercmd_state : public driver_device
-{
-public:
- lazercmd_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_dac0(*this, "dac0"),
- m_dac1(*this, "dac1"),
- m_dac2(*this, "dac2"),
- m_dac3(*this, "dac3"),
- m_videoram(*this, "videoram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void bbonk(machine_config &config);
- void medlanes(machine_config &config);
- void lazercmd(machine_config &config);
-
- void init_lazercmd();
-
-private:
- /* device */
- required_device<s2650_device> m_maincpu;
- optional_device<dac_bit_interface> m_dac0;
- optional_device<dac_bit_interface> m_dac1;
- required_device<dac_bit_interface> m_dac2;
- required_device<dac_bit_interface> m_dac3;
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* video-related */
- uint8_t m_marker_x;
- uint8_t m_marker_y;
-
- /* misc */
- int m_timer_count;
- uint8_t m_sense_state;
- uint8_t m_attract;
-
- void lazercmd_ctrl_port_w(uint8_t data);
- uint8_t lazercmd_ctrl_port_r();
- void lazercmd_data_port_w(uint8_t data);
- uint8_t lazercmd_data_port_r();
- void lazercmd_hardware_w(offs_t offset, uint8_t data);
- void medlanes_hardware_w(offs_t offset, uint8_t data);
- void bbonk_hardware_w(offs_t offset, uint8_t data);
- uint8_t lazercmd_hardware_r(offs_t offset);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void lazercmd_palette(palette_device &palette) const;
- uint32_t screen_update_lazercmd(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(lazercmd_timer);
- TIMER_DEVICE_CALLBACK_MEMBER(bbonk_timer);
- int vert_scale(int data);
- void plot_pattern( bitmap_ind16 &bitmap, int x, int y );
- void bbonk_map(address_map &map);
- void lazercmd_map(address_map &map);
- void lazercmd_portmap(address_map &map);
- void medlanes_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LAZERCMD_H
diff --git a/src/mame/includes/legionna.h b/src/mame/includes/legionna.h
deleted file mode 100644
index 177bfd28cc9..00000000000
--- a/src/mame/includes/legionna.h
+++ /dev/null
@@ -1,137 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves, Angelo Salese, David Haywood, Tomasz Slanina
-#ifndef MAME_INCLUDES_LEGIONNA_H
-#define MAME_INCLUDES_LEGIONNA_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "audio/seibu.h"
-#include "machine/gen_latch.h"
-#include "machine/seibucop.h"
-#include "video/seibu_crtc.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#include <algorithm>
-
-class legionna_state : public driver_device, public seibu_sound_common
-{
-public:
- legionna_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_spriteram(*this, "spriteram")
- , m_swappal(*this, "swappal")
- , m_layer_disable(0)
- , m_back_gfx_bank(0)
- , m_fore_gfx_bank(0)
- , m_mid_gfx_bank(0)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_seibu_sound(*this, "seibu_sound")
- , m_oki(*this, "oki")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_crtc(*this, "crtc")
- , m_raiden2cop(*this, "raiden2cop")
- {
- std::fill(std::begin(m_scrollvals), std::end(m_scrollvals), 0);
- }
-
- void cupsocs(machine_config &config);
- void heatbrl(machine_config &config);
- void cupsoc(machine_config &config);
- void grainbow(machine_config &config);
- void legionna(machine_config &config);
- void godzilla(machine_config &config);
- void denjinmk(machine_config &config);
-
- void init_legiongfx();
- void init_godzilla();
- void init_cupsoc_debug();
- void init_cupsoc();
- void init_cupsocs();
- void init_olysoc92();
-
-private:
- void tilemap_enable_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tile_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tile_scroll_base_w(offs_t offset, u16 data);
- void tile_vreg_1a_w(u16 data);
- void videowrite_cb_w(offs_t offset, u16 data);
- void background_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void midground_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void foreground_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void text_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u8 denjinmk_sound_comms_r(offs_t offset);
- void godzilla_oki_bank_w(u8 data);
- void denjinmk_setgfxbank(u16 data);
- void heatbrl_setgfxbank(u16 data);
- void grainbow_layer_config_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void palette_swap_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_back_tile_info);
- TILE_GET_INFO_MEMBER(get_mid_tile_info_split);
- TILE_GET_INFO_MEMBER(get_mid_tile_info_share_bgrom);
- TILE_GET_INFO_MEMBER(get_fore_tile_info);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- DECLARE_VIDEO_START(legionna);
- DECLARE_VIDEO_START(heatbrl);
- DECLARE_VIDEO_START(godzilla);
- DECLARE_VIDEO_START(denjinmk);
- DECLARE_VIDEO_START(grainbow);
- DECLARE_VIDEO_START(cupsoc);
- u32 screen_update_legionna(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_heatbrl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_godzilla(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_grainbow(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
- void descramble_legionnaire_gfx(u8* src);
- void common_video_start(bool split, bool has_extended_banking, bool has_extended_priority);
- void common_video_allocate_ptr();
-
- void cupsoc_map(address_map &map);
- void cupsocs_map(address_map &map);
- void denjinmk_map(address_map &map);
- void godzilla_map(address_map &map);
- void grainbow_map(address_map &map);
- void heatbrl_map(address_map &map);
- void legionna_cop_map(address_map &map);
- void legionna_map(address_map &map);
- void godzilla_sound_io_map(address_map &map);
-
- required_shared_ptr<u16> m_spriteram;
- optional_shared_ptr<u16> m_swappal;
- std::unique_ptr<u16[]> m_back_data;
- std::unique_ptr<u16[]> m_fore_data;
- std::unique_ptr<u16[]> m_mid_data;
- std::unique_ptr<u16[]> m_textram;
- std::unique_ptr<u16[]> m_scrollram16;
- std::unique_ptr<u16[]> m_paletteram;
- u16 m_layer_disable;
- std::unique_ptr<u16[]> m_layer_config;
- int m_sprite_xoffs;
- int m_sprite_yoffs;
- tilemap_t *m_background_layer;
- tilemap_t *m_foreground_layer;
- tilemap_t *m_midground_layer;
- tilemap_t *m_text_layer;
- bool m_has_extended_banking;
- bool m_has_extended_priority;
- u16 m_sprite_pri_mask[4];
- u16 m_back_gfx_bank;
- u16 m_fore_gfx_bank;
- u16 m_mid_gfx_bank;
- u16 m_scrollvals[6];
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<seibu_sound_device> m_seibu_sound;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<seibu_crtc_device> m_crtc;
- optional_device<raiden2cop_device> m_raiden2cop;
-};
-
-#endif // MAME_INCLUDES_LEGIONNA_H
diff --git a/src/mame/includes/leland.h b/src/mame/includes/leland.h
deleted file mode 100644
index 713a708235b..00000000000
--- a/src/mame/includes/leland.h
+++ /dev/null
@@ -1,324 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Cinemat/Leland driver
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_LELAND_H
-#define MAME_INCLUDES_LELAND_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "sound/dac.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#define LELAND_BATTERY_RAM_SIZE 0x4000
-#define ATAXX_EXTRA_TRAM_SIZE 0x800
-
-
-struct vram_state_data
-{
- u16 m_addr;
- u8 m_latch[2];
-};
-
-class leland_80186_sound_device;
-
-class leland_state : public driver_device
-{
-public:
- leland_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_master(*this, "master")
- , m_slave(*this, "slave")
- , m_mainram(*this, "mainram")
- , m_master_bankslot(*this, "masterbank_%u", 0U)
- , m_master_base(*this, "master")
- , m_slave_bankslot(*this, "slavebank")
- , m_slave_base(*this, "slave")
- , m_eeprom(*this, "eeprom")
- , m_battery_ram(*this, "battery", 0x4000, ENDIANNESS_LITTLE)
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_io_in(*this, "IN%u", 0U)
- , m_io_an(*this, "AN%u", 0U)
- , m_dac(*this, "dac%u", 0U)
- , m_ay8910(*this, "ay8910")
- , m_ay8912(*this, "ay8912")
- , m_bg_gfxrom(*this, "bg_gfx")
- , m_bg_prom(*this, "bg_prom")
- { }
-
- void leland(machine_config &config);
- void leland_video(machine_config &config);
-
- void init_dblplay();
- void init_dangerz();
- void init_mayhem();
- void init_alleymas();
- void init_strkzone();
- void init_wseries();
- void init_powrplay();
- void init_basebal2();
- void init_upyoural();
- void init_cerberus();
-
- void cerberus_bankswitch();
- void mayhem_bankswitch();
- void dangerz_bankswitch();
- void basebal2_bankswitch();
- void redline_bankswitch();
-
- void offroad_bankswitch();
- void viper_bankswitch();
-
- u8 raster_r();
- void slave_video_addr_w(offs_t offset, u8 data);
- void slave_large_banksw_w(u8 data);
- void master_video_addr_w(offs_t offset, u8 data);
-
- TIMER_CALLBACK_MEMBER(ataxx_interrupt_callback);
-
-protected:
- required_device<cpu_device> m_master;
- required_device<cpu_device> m_slave;
- required_shared_ptr<u8> m_mainram;
- required_memory_bank_array<2> m_master_bankslot;
- required_region_ptr<u8> m_master_base;
- required_memory_bank m_slave_bankslot;
- required_region_ptr<u8> m_slave_base;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- memory_share_creator<u8> m_battery_ram;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
-
- optional_ioport_array<4> m_io_in;
- optional_ioport_array<6> m_io_an;
-
- emu_timer *m_master_int_timer;
- u8 m_battery_ram_enable;
-
- void rotate_memory(const char *cpuname);
-
- int dial_compute_value(int new_val, int indx);
- u8 m_dial_last_input[4];
- u8 m_dial_last_result[4];
- u8 m_analog_result;
-
- int m_dangerz_x;
- int m_dangerz_y;
-
- void init_master_ports(u8 mvram_base, u8 io_base);
- void (leland_state::*m_update_master_bank)();
-
- int vram_port_r(offs_t offset, int num);
- void vram_port_w(offs_t offset, u8 data, int num);
-
- u8 m_wcol_enable;
-
- u8 master_analog_key_r(offs_t offset);
- void master_analog_key_w(offs_t offset, u8 data);
- u8 dangerz_input_y_r();
- u8 dangerz_input_x_r();
- u8 dangerz_input_upper_r();
- void scroll_w(offs_t offset, u8 data);
- void leland_master_alt_bankswitch_w(u8 data);
-
- tilemap_t *m_tilemap;
- u16 m_xscroll;
- u16 m_yscroll;
- std::unique_ptr<u8[]> m_video_ram;
- struct vram_state_data m_vram_state[2];
-
- void slave_map_program(address_map &map);
- void asylum_slave_map_program(address_map &map);
-
- TIMER_CALLBACK_MEMBER(leland_delayed_mvram_w);
-
-private:
- optional_device_array<dac_byte_interface, 2> m_dac;
- optional_device<ay8910_device> m_ay8910;
- optional_device<ay8912_device> m_ay8912;
-
- required_region_ptr<u8> m_bg_gfxrom;
- optional_region_ptr<u8> m_bg_prom;
-
- u8 m_dac_control;
- u8 *m_alleymas_kludge_mem;
- u8 m_gfx_control;
- u8 m_keycard_shift;
- u8 m_keycard_bit;
- u8 m_keycard_state;
- u8 m_keycard_clock;
- u8 m_keycard_command[3];
- u8 m_top_board_bank;
- u8 m_sound_port_bank;
- u8 m_alternate_bank;
- u8 m_gfxbank;
- u16 m_last_scanline;
- emu_timer *m_scanline_timer;
-
- u8 cerberus_dial_1_r();
- u8 cerberus_dial_2_r();
- void alleymas_joystick_kludge(u8 data);
- void leland_battery_ram_w(offs_t offset, u8 data);
- u8 leland_master_input_r(offs_t offset);
- void leland_master_output_w(offs_t offset, u8 data);
- void gated_paletteram_w(offs_t offset, u8 data);
- u8 gated_paletteram_r(offs_t offset);
- void slave_small_banksw_w(u8 data);
- void ataxx_slave_banksw_w(u8 data);
- void leland_mvram_port_w(offs_t offset, u8 data);
- u8 leland_mvram_port_r(offs_t offset);
- void leland_svram_port_w(offs_t offset, u8 data);
- u8 leland_svram_port_r(offs_t offset);
- u8 sound_port_r();
- void sound_port_w(u8 data);
- void gfx_port_w(u8 data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- TILEMAP_MAPPER_MEMBER(leland_scan);
- TILE_GET_INFO_MEMBER(leland_get_tile_info);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(leland_master_interrupt);
- TIMER_CALLBACK_MEMBER(leland_interrupt_callback);
- TIMER_CALLBACK_MEMBER(scanline_callback);
-
- void video_addr_w(offs_t offset, u8 data, int num);
-
- void update_dangerz_xy();
-
- void leland_init_eeprom(u8 default_val, const u16 *data, u8 serial_offset, u8 serial_type);
- void ataxx_init_eeprom(const u16 *data);
- int keycard_r();
- void keycard_w(int data);
- void master_map_io(address_map &map);
- void master_map_program(address_map &map);
- void slave_map_io(address_map &map);
- void slave_small_map_program(address_map &map);
-};
-
-
-class redline_state : public leland_state
-{
-public:
- redline_state(const machine_config &mconfig, device_type type, const char *tag)
- : leland_state(mconfig, type, tag)
- , m_sound(*this, "custom")
- {
- }
-
- void init_redlin2p();
- void init_quarterb();
- void init_viper();
- void init_teamqb();
- void init_aafb();
- void init_aafbb();
- void init_aafbd2p();
- void init_offroad();
- void init_offroadt();
- void init_pigout();
-
- void redline(machine_config &config);
- void quarterb(machine_config &config);
- void lelandi(machine_config &config);
-
-private:
- u8 redline_pedal_1_r();
- u8 redline_pedal_2_r();
- u8 redline_wheel_1_r();
- u8 redline_wheel_2_r();
- u8 offroad_wheel_1_r();
- u8 offroad_wheel_2_r();
- u8 offroad_wheel_3_r();
- void redline_master_alt_bankswitch_w(u8 data);
-
- void master_redline_map_io(address_map &map);
- void slave_large_map_program(address_map &map);
-
- required_device<leland_80186_sound_device> m_sound;
-};
-
-
-class ataxx_state : public leland_state
-{
-public:
- ataxx_state(const machine_config &mconfig, device_type type, const char *tag)
- : leland_state(mconfig, type, tag)
- , m_sound(*this, "custom")
- , m_xrom_base(*this, "xrom")
- {
- }
-
- void init_ataxx();
- void init_ataxxj();
- void init_wsf();
- void init_indyheat();
- void init_brutforc();
- void init_asylum();
-
- void ataxx(machine_config &config);
- void wsf(machine_config &config);
- void asylum(machine_config &config);
-
-private:
- u8 ataxx_trackball_r(offs_t offset);
- u8 indyheat_analog_r(offs_t offset);
- void indyheat_analog_w(offs_t offset, u8 data);
-
- void ataxx_battery_ram_w(offs_t offset, u8 data);
- u8 ataxx_master_input_r(offs_t offset);
- void ataxx_master_output_w(offs_t offset, u8 data);
- void paletteram_and_misc_w(offs_t offset, u8 data);
- u8 paletteram_and_misc_r(offs_t offset);
- void ataxx_mvram_port_w(offs_t offset, u8 data);
- void ataxx_svram_port_w(offs_t offset, u8 data);
- u8 ataxx_mvram_port_r(offs_t offset);
- u8 ataxx_svram_port_r(offs_t offset);
- u8 eeprom_r();
- void eeprom_w(u8 data);
-
- TILEMAP_MAPPER_MEMBER(ataxx_scan);
- TILE_GET_INFO_MEMBER(ataxx_get_tile_info);
-
- void ataxx_bankswitch();
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void ataxx_video(machine_config &config);
-
- void master_map_program_2(address_map &map);
- void master_map_io_2(address_map &map);
- void slave_map_io_2(address_map &map);
-
- required_device<leland_80186_sound_device> m_sound;
-
- required_region_ptr<u8> m_xrom_base;
-
- std::unique_ptr<u8[]> m_ataxx_qram;
- u8 m_master_bank;
- u32 m_xrom1_addr;
- u32 m_xrom2_addr;
- std::unique_ptr<u8[]> m_extra_tram;
-};
-
-
-#define SERIAL_TYPE_NONE 0
-#define SERIAL_TYPE_ADD 1
-#define SERIAL_TYPE_ADD_XOR 2
-#define SERIAL_TYPE_ENCRYPT 3
-#define SERIAL_TYPE_ENCRYPT_XOR 4
-
-#endif // MAME_INCLUDES_LELAND_H
diff --git a/src/mame/includes/lemmings.h b/src/mame/includes/lemmings.h
deleted file mode 100644
index 05a1d5aa0b1..00000000000
--- a/src/mame/includes/lemmings.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#include "video/bufsprite.h"
-#include "video/decospr.h"
-#include "machine/deco146.h"
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class lemmings_state : public driver_device
-{
-public:
- lemmings_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_bitmap0(2048, 256)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_deco146(*this, "ioprot")
- , m_spriteram(*this, "spriteram%u", 1)
- , m_sprgen(*this, "spritegen%u", 1)
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_control_data(*this, "control_data")
- , m_vram_data(*this, "vram_data")
- , m_pixel_data(*this, "pixel_%u_data", 0)
- , m_trackball_io(*this, "AN%u", 0)
- {
- }
-
- void lemmings(machine_config &config);
-
-private:
- /* video-related */
- bitmap_ind16 m_bitmap0;
- tilemap_t *m_vram_tilemap;
- std::unique_ptr<uint16_t[]> m_sprite_triple_buffer[2];
- std::unique_ptr<uint8_t[]> m_vram_buffer;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<deco146_device> m_deco146;
- required_device_array<buffered_spriteram16_device, 2> m_spriteram;
- required_device_array<decospr_device, 2> m_sprgen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_control_data;
- required_shared_ptr<uint16_t> m_vram_data;
- required_shared_ptr_array<uint16_t, 2> m_pixel_data;
-
- required_ioport_array<4> m_trackball_io;
-
- void lemmings_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t lemmings_trackball_r(offs_t offset);
- void lemmings_pixel_0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void lemmings_pixel_1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void lemmings_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void video_start() override;
- uint32_t screen_update_lemmings(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_lemmings);
- void lemmings_copy_bitmap(bitmap_rgb32& bitmap, int* xscroll, int* yscroll, const rectangle& cliprect);
-
- uint16_t lem_protection_region_0_146_r(offs_t offset);
- void lem_protection_region_0_146_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void lemmings_map(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/lethal.h b/src/mame/includes/lethal.h
deleted file mode 100644
index 95ad1e56837..00000000000
--- a/src/mame/includes/lethal.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont, Nicola Salmoria
-/*************************************************************************
-
- Lethal Enforcers
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_LETHAL_H
-#define MAME_INCLUDES_LETHAL_H
-
-#pragma once
-
-#include "machine/bankdev.h"
-#include "sound/k054539.h"
-#include "video/konami_helper.h"
-#include "video/k054156_k054157_k056832.h"
-#include "video/k053244_k053245.h"
-#include "video/k054000.h"
-#include "machine/k054321.h"
-#include "emupal.h"
-
-class lethal_state : public driver_device
-{
-public:
- lethal_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_bank4000(*this, "bank4000"),
- m_k056832(*this, "k056832"),
- m_k053244(*this, "k053244"),
- m_k054321(*this, "k054321"),
- m_palette(*this, "palette")
- { }
-
- void lethalej(machine_config &config);
- void lethalen(machine_config &config);
-
-private:
- /* video-related */
- int m_layer_colorbase[4];
- int m_sprite_colorbase;
- int m_back_colorbase;
-
- /* misc */
- uint8_t m_cur_control2;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<address_map_bank_device> m_bank4000;
- required_device<k056832_device> m_k056832;
- required_device<k05324x_device> m_k053244;
- required_device<k054321_device> m_k054321;
- required_device<palette_device> m_palette;
-
- void control2_w(uint8_t data);
- uint8_t sound_irq_r();
- void sound_irq_w(uint8_t data);
- void le_bankswitch_w(uint8_t data);
- uint8_t guns_r(offs_t offset);
- uint8_t gunsaux_r();
- void lethalen_palette_control(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_lethalen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(lethalen_interrupt);
- K05324X_CB_MEMBER(sprite_callback);
- K056832_CB_MEMBER(tile_callback);
- void bank4000_map(address_map &map);
- void le_main(address_map &map);
- void le_sound(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LETHAL_H
diff --git a/src/mame/includes/lethalj.h b/src/mame/includes/lethalj.h
deleted file mode 100644
index f0c6b267fb7..00000000000
--- a/src/mame/includes/lethalj.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- The Game Room Lethal Justice hardware
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_LETHALJ_H
-#define MAME_INCLUDES_LETHALJ_H
-
-#pragma once
-
-#include "cpu/tms34010/tms34010.h"
-#include "machine/ticket.h"
-#include "screen.h"
-
-
-class lethalj_state : public driver_device
-{
-public:
- enum
- {
- TIMER_GEN_EXT1_INT
- };
-
- lethalj_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_ticket(*this, "ticket"),
- m_blitter_base(*this, "gfx"),
- m_paddle(*this, "PADDLE"),
- m_light0_x(*this, "LIGHT0_X"),
- m_light0_y(*this, "LIGHT0_Y"),
- m_light1_x(*this, "LIGHT1_X"),
- m_light1_y(*this, "LIGHT1_Y"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void lethalj(machine_config &config);
- void gameroom(machine_config &config);
-
- void init_cfarm();
- void init_ripribit();
- void init_cclownz();
-
- DECLARE_CUSTOM_INPUT_MEMBER(cclownz_paddle);
-
-private:
- void ripribit_control_w(uint16_t data);
- void cfarm_control_w(uint16_t data);
- void cclownz_control_w(uint16_t data);
- uint16_t lethalj_gun_r(offs_t offset);
- void blitter_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void do_blit();
- inline void get_crosshair_xy(int player, int *x, int *y);
- TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_update);
-
- void lethalj_map(address_map &map);
-
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void video_start() override;
-
- required_device<tms34010_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<ticket_dispenser_device> m_ticket;
-
- required_region_ptr<uint16_t> m_blitter_base;
-
- optional_ioport m_paddle;
- optional_ioport m_light0_x;
- optional_ioport m_light0_y;
- optional_ioport m_light1_x;
- optional_ioport m_light1_y;
- output_finder<3> m_lamps;
-
- emu_timer *m_gen_ext1_int_timer;
- uint16_t m_blitter_data[8];
- std::unique_ptr<uint16_t[]> m_screenram;
- uint8_t m_vispage;
- int m_blitter_rows;
- uint16_t m_gunx;
- uint16_t m_guny;
- uint8_t m_blank_palette;
-};
-
-#endif // MAME_INCLUDES_LETHALJ_H
diff --git a/src/mame/includes/liberate.h b/src/mame/includes/liberate.h
deleted file mode 100644
index 2fee4d64a21..00000000000
--- a/src/mame/includes/liberate.h
+++ /dev/null
@@ -1,116 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_LIBERATE_H
-#define MAME_INCLUDES_LIBERATE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class liberate_state : public driver_device
-{
-public:
- liberate_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bg_vram(*this, "bg_vram"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_scratchram(*this, "scratchram"),
- m_decrypted_opcodes(*this, "decrypted_opcodes"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void liberate_base(machine_config &config);
- void liberate(machine_config &config);
- void liberatb(machine_config &config);
- void boomrang(machine_config &config);
- void prosoccr(machine_config &config);
- void prosport(machine_config &config);
-
- void init_yellowcb();
- void init_liberate();
- void init_prosport();
-
-private:
- optional_shared_ptr<uint8_t> m_bg_vram; /* prosport */
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_scratchram;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- uint8_t *m_fg_gfx; /* prosoccr */
- std::unique_ptr<uint8_t[]> m_charram; /* prosoccr */
- uint8_t m_io_ram[16];
-
- int m_bank;
- int m_latch;
- uint8_t m_gfx_rom_readback;
- int m_background_color;
- int m_background_disable;
-
- tilemap_t *m_back_tilemap;
- tilemap_t *m_fix_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- uint8_t deco16_bank_r(offs_t offset);
- uint8_t deco16_io_r(offs_t offset);
- void deco16_bank_w(uint8_t data);
- uint8_t prosoccr_bank_r(offs_t offset);
- uint8_t prosoccr_charram_r(offs_t offset);
- void prosoccr_charram_w(offs_t offset, uint8_t data);
- void prosoccr_char_bank_w(uint8_t data);
- void prosoccr_io_bank_w(uint8_t data);
- uint8_t prosport_charram_r(offs_t offset);
- void prosport_charram_w(offs_t offset, uint8_t data);
- void deco16_io_w(offs_t offset, uint8_t data);
- void prosoccr_io_w(offs_t offset, uint8_t data);
- void prosport_io_w(offs_t offset, uint8_t data);
- void liberate_videoram_w(offs_t offset, uint8_t data);
- void liberate_colorram_w(offs_t offset, uint8_t data);
- void prosport_bg_vram_w(offs_t offset, uint8_t data);
- TILEMAP_MAPPER_MEMBER(back_scan);
- TILEMAP_MAPPER_MEMBER(fix_scan);
- TILE_GET_INFO_MEMBER(get_back_tile_info);
- TILE_GET_INFO_MEMBER(get_fix_tile_info);
- TILE_GET_INFO_MEMBER(prosport_get_back_tile_info);
- DECLARE_MACHINE_START(liberate);
- DECLARE_MACHINE_RESET(liberate);
- DECLARE_VIDEO_START(liberate);
- void liberate_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(prosport);
- DECLARE_VIDEO_START(boomrang);
- DECLARE_VIDEO_START(prosoccr);
- uint32_t screen_update_liberate(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_prosport(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_boomrang(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_prosoccr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(deco16_interrupt);
- void liberate_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void prosport_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void boomrang_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int pri );
- void prosoccr_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void deco16_io_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void liberatb_map(address_map &map);
- void liberate_map(address_map &map);
- void liberate_sound_map(address_map &map);
- void prosoccr_io_map(address_map &map);
- void prosoccr_map(address_map &map);
- void prosoccr_sound_map(address_map &map);
- void prosport_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LIBERATE_H
diff --git a/src/mame/includes/liberatr.h b/src/mame/includes/liberatr.h
deleted file mode 100644
index ddeee1859fe..00000000000
--- a/src/mame/includes/liberatr.h
+++ /dev/null
@@ -1,129 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-/*************************************************************************
-
- Atari Liberator hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_LIBERATR_H
-#define MAME_INCLUDES_LIBERATR_H
-
-#pragma once
-
-#include "cpu/m6502/m6502.h"
-#include "machine/74259.h"
-#include "machine/er2055.h"
-#include "machine/watchdog.h"
-#include "sound/pokey.h"
-#include "screen.h"
-
-class liberatr_state : public driver_device
-{
-public:
- liberatr_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_earom(*this, "earom")
- , m_earom_data(0)
- , m_earom_control(0)
- , m_outlatch(*this, "outlatch")
- , m_screen(*this, "screen")
- , m_base_ram(*this, "base_ram")
- , m_planet_frame(*this, "planet_frame")
- , m_xcoord(*this, "xcoord")
- , m_ycoord(*this, "ycoord")
- , m_bitmapram(*this, "bitmapram")
- , m_colorram(*this, "colorram")
- { }
-
- void liberat2(machine_config &config);
- void liberatr(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void output_latch_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_left_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_right_w);
-
- DECLARE_WRITE_LINE_MEMBER(trackball_reset_w);
- uint8_t port0_r();
-
- void bitmap_w(offs_t offset, uint8_t data);
- uint8_t bitmap_xy_r();
- void bitmap_xy_w(uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- // early raster EAROM interface
- uint8_t earom_r();
- void earom_w(offs_t offset, uint8_t data);
- void earom_control_w(uint8_t data);
-
- void liberat2_map(address_map &map);
- void liberatr_map(address_map &map);
-
- // The following structure describes the (up to 32) line segments
- // that make up one horizontal line (latitude) for one display frame of the planet.
- // Note: this and the following structure is only used to collect the
- // data before it is packed for actual use.
- struct planet_frame_line
- {
- uint8_t segment_count; // the number of segments on this line
- uint8_t max_x; // the maximum value of x_array for this line
- uint8_t color_array[32]; // the color values
- uint8_t x_array[32]; // and maximum x values for each segment
- };
-
- // The following structure describes the lines (latitudes)
- // that make up one complete display frame of the planet.
- // Note: this and the previous structure is only used to collect the
- // data before it is packed for actual use.
- struct planet_frame
- {
- planet_frame_line lines[0x80];
- };
-
- // The following structure collects the 256 frames of the
- // planet (one per value of longitude).
- // The data is packed segment_count,segment_start,color,length,color,length,... then
- // segment_count,segment_start,color,length,color,length... for the next line, etc
- // for the 128 lines.
- struct planet
- {
- std::unique_ptr<uint8_t []> frames[256];
- };
-
- void init_planet(planet &liberatr_planet, uint8_t *planet_rom);
- void get_pens(pen_t *pens);
- void draw_planet(bitmap_rgb32 &bitmap, pen_t *pens);
- void draw_bitmap(bitmap_rgb32 &bitmap, pen_t *pens);
-
- // vector and early raster EAROM interface
- required_device<er2055_device> m_earom;
- uint8_t m_earom_data;
- uint8_t m_earom_control;
-
- required_device<ls259_device> m_outlatch;
-
- required_device<screen_device> m_screen;
- required_shared_ptr<uint8_t> m_base_ram;
- required_shared_ptr<uint8_t> m_planet_frame;
- required_shared_ptr<uint8_t> m_xcoord;
- required_shared_ptr<uint8_t> m_ycoord;
- required_shared_ptr<uint8_t> m_bitmapram;
- required_shared_ptr<uint8_t> m_colorram;
-
- uint8_t m_trackball_offset;
- uint8_t m_ctrld;
- uint8_t m_videoram[0x10000];
-
- bool m_planet_select;
-
- // The following array collects the 2 different planet
- // descriptions, which are selected by planetbit
- planet m_planets[2];
-};
-
-#endif // MAME_INCLUDES_LIBERATR_H
diff --git a/src/mame/includes/lisa.h b/src/mame/includes/lisa.h
deleted file mode 100644
index 225f3b1d22c..00000000000
--- a/src/mame/includes/lisa.h
+++ /dev/null
@@ -1,254 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Raphael Nabet
-/*****************************************************************************
- *
- * includes/lisa.h
- *
- * Lisa driver declarations
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_LISA_H
-#define MAME_INCLUDES_LISA_H
-
-#include "cpu/m6502/m6504.h"
-#include "cpu/m68000/m68000.h"
-#include "machine/74259.h"
-#include "machine/6522via.h"
-#include "machine/6522via.h"
-#include "machine/8530scc.h"
-#include "machine/applefdc.h"
-#include "machine/nvram.h"
-#include "machine/sonydriv.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-#include "screen.h"
-
-/* lisa MMU segment regs */
-struct real_mmu_entry
-{
- uint16_t sorg;
- uint16_t slim;
-};
-
-/* 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
-{
- offs_t sorg; /* (real_sorg & 0x0fff) << 9 */
- mmu_entry_t type; /* <-> (real_slim & 0x0f00) */
- int slim; /* (~ ((real_slim & 0x00ff) << 9)) & 0x01ffff */
-};
-
-enum floppy_hardware_t
-{
- twiggy, /* twiggy drives (Lisa 1) */
- sony_lisa2, /* 3.5'' drive with LisaLite adapter (Lisa 2) */
- sony_lisa210 /* 3.5'' drive with modified fdc hardware (Lisa 2/10, Mac XL) */
-};
-
-enum clock_mode_t
-{
- clock_timer_disable = 0,
- timer_disable = 1,
- timer_interrupt = 2, /* timer underflow generates interrupt */
- timer_power_on = 3 /* timer underflow turns system on if it is off and gens interrupt */
-}; /* clock mode */
-
-/* clock registers */
-struct clock_regs_t
-{
- long alarm; /* alarm (20-bit binary) */
- int years; /* years (4-bit binary ) */
- int days1; /* days (BCD : 1-366) */
- int days2;
- int days3;
- int hours1; /* hours (BCD : 0-23) */
- int hours2;
- int minutes1; /* minutes (BCD : 0-59) */
- int minutes2;
- int seconds1; /* seconds (BCD : 0-59) */
- int seconds2;
- int tenths; /* tenths of second (BCD : 0-9) */
-
- int clock_write_ptr; /* clock byte to be written next (-1 if clock write disabled) */
-
- enum clock_mode_t clock_mode;
-};
-
-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
- VIA clock is 1.25 times faster with fast timers than with
- slow timers. I read the schematics again and again, and
- I simply don't understand : in one case the VIA is
- connected to the 68k E clock, which is CPUCK/10, and in
- another case, to a generated PH2 clock which is CPUCK/4,
- with additional logic to keep it in phase with the 68k
- memory cycle. After hearing the beep when MacWorks XL
- boots, I bet the correct values are .625 MHz and .5 MHz.
- Maybe the schematics are wrong, and PH2 is CPUCK/8.
- Maybe the board uses a 6522 variant with different
- timings. */
- floppy_hardware_t floppy_hardware;
- unsigned int has_double_sided_floppy : 1; /* true on lisa 1 and *hacked* lisa 2/10 / Mac XL */
- unsigned int has_mac_xl_video : 1; /* modified video for MacXL */
-};
-
-
-class lisa_state : public driver_device
-{
-public:
- lisa_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_via0(*this, "via6522_0"),
- m_via1(*this, "via6522_1"),
- m_fdc(*this, "fdc"),
- m_scc(*this, "scc"),
- m_speaker(*this, "speaker"),
- m_nvram(*this, "nvram"),
- m_latch(*this, "latch"),
- m_fdc_cpu(*this,"fdccpu"),
- m_fdc_ram(*this,"fdc_ram"),
- m_io_line0(*this, "LINE0"),
- m_io_line1(*this, "LINE1"),
- m_io_line2(*this, "LINE2"),
- m_io_line3(*this, "LINE3"),
- m_io_line4(*this, "LINE4"),
- m_io_line5(*this, "LINE5"),
- m_io_line6(*this, "LINE6"),
- m_io_line7(*this, "LINE7"),
- m_io_mouse_x(*this, "MOUSE_X"),
- m_io_mouse_y(*this, "MOUSE_Y"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen")
- { }
-
- void lisa(machine_config &config);
- void lisa210(machine_config &config);
- void macxl(machine_config &config);
-
- void init_lisa210();
- void init_mac_xl();
- void init_lisa2();
-
-private:
- required_device<m68000_base_device> m_maincpu;
- required_device<via6522_device> m_via0;
- required_device<via6522_device> m_via1;
- optional_device<applefdc_base_device> m_fdc;
- required_device<scc8530_legacy_device> m_scc;
- required_device<speaker_sound_device> m_speaker;
- required_device<nvram_device> m_nvram;
- required_device<ls259_device> m_latch;
- required_device<m6504_device> m_fdc_cpu;
-
- required_shared_ptr<uint8_t> m_fdc_ram;
-
- required_ioport m_io_line0;
- required_ioport m_io_line1;
- required_ioport m_io_line2;
- required_ioport m_io_line3;
- required_ioport m_io_line4;
- required_ioport m_io_line5;
- required_ioport m_io_line6;
- required_ioport m_io_line7;
- required_ioport m_io_mouse_x;
- required_ioport m_io_mouse_y;
-
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- uint8_t *m_ram_ptr;
- uint8_t *m_rom_ptr;
- uint8_t *m_videoROM_ptr;
- int m_setup;
- int m_seg;
- real_mmu_entry m_real_mmu_regs[4][128];
- mmu_entry m_mmu_regs[4][128];
- int m_diag2;
- int m_test_parity;
- uint16_t m_mem_err_addr_latch;
- int m_parity_error_pending;
- int m_bad_parity_count;
- std::unique_ptr<uint8_t[]> m_bad_parity_table;
- int m_VTMSK;
- int m_VTIR;
- uint16_t m_video_address_latch;
- uint16_t *m_videoram_ptr;
- int m_KBIR;
- int m_FDIR;
- int m_DISK_DIAG;
- int m_MT1;
- int m_PWM_floppy_motor_speed;
- int m_model;
- lisa_features_t m_features;
- int m_COPS_Ready;
- int m_COPS_command;
- int m_fifo_data[8];
- int m_fifo_size;
- int m_fifo_head;
- int m_fifo_tail;
- int m_mouse_data_offset;
- int m_COPS_force_unplug;
- emu_timer *m_mouse_timer;
- emu_timer *m_cops_ready_timer;
- int m_hold_COPS_data;
- int m_NMIcode;
- clock_regs_t m_clock_regs;
- int m_key_matrix[8];
- int m_last_mx;
- int m_last_my;
- int m_frame_count;
- int m_videoROM_address;
- uint8_t lisa_fdc_io_r(offs_t offset);
- void lisa_fdc_io_w(offs_t offset, uint8_t data);
- uint16_t lisa_r(offs_t offset, uint16_t mem_mask = ~0);
- void lisa_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t lisa_IO_r(offs_t offset, uint16_t mem_mask = ~0);
- void lisa_IO_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(diag1_w);
- DECLARE_WRITE_LINE_MEMBER(diag2_w);
- DECLARE_WRITE_LINE_MEMBER(seg1_w);
- DECLARE_WRITE_LINE_MEMBER(seg2_w);
- DECLARE_WRITE_LINE_MEMBER(setup_w);
- DECLARE_WRITE_LINE_MEMBER(vtmsk_w);
- DECLARE_WRITE_LINE_MEMBER(sfmsk_w);
- DECLARE_WRITE_LINE_MEMBER(hdmsk_w);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void nvram_init(nvram_device &nvram, void *data, size_t size);
- uint32_t screen_update_lisa(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(lisa_interrupt);
- TIMER_CALLBACK_MEMBER(handle_mouse);
- TIMER_CALLBACK_MEMBER(read_COPS_command);
- TIMER_CALLBACK_MEMBER(set_COPS_ready);
- void COPS_via_out_a(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(COPS_via_out_ca2);
- void COPS_via_out_b(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(COPS_via_out_cb2);
-
- void field_interrupts();
- void set_parity_error_pending(int value);
- void set_VTIR(int value);
- void cpu_board_control_access(offs_t offset);
- void init_COPS();
- void reset_COPS();
- void lisa_fdc_ttl_glue_access(offs_t offset);
- void COPS_send_data_if_possible();
- void COPS_queue_data(const uint8_t *data, int len);
- void COPS_via_irq_func(int val);
- void scan_keyboard();
- void unplug_keyboard();
- void plug_keyboard();
- void lisa210_fdc_map(address_map &map);
- void lisa_fdc_map(address_map &map);
- void lisa_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LISA_H
diff --git a/src/mame/includes/lkage.h b/src/mame/includes/lkage.h
deleted file mode 100644
index 620667ba8ec..00000000000
--- a/src/mame/includes/lkage.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-#ifndef MAME_INCLUDES_LKAGE_H
-#define MAME_INCLUDES_LKAGE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "machine/taito68705interface.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class lkage_state : public driver_device
-{
-public:
- lkage_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_vreg(*this, "vreg"),
- m_scroll(*this, "scroll"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_bmcu(*this, "bmcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_soundnmi(*this, "soundnmi")
- { }
-
- void lkageb(machine_config &config);
- void lkage(machine_config &config);
-
- void init_bygone();
- void init_lkage();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_shared_ptr<uint8_t> m_vreg;
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
- uint8_t m_bg_tile_bank;
- uint8_t m_fg_tile_bank;
- uint8_t m_tx_tile_bank;
-
- int m_sprite_dx;
-
- /* lkageb fake mcu */
- uint8_t m_mcu_val;
- int m_mcu_ready; /* cpu data/mcu ready status */
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<taito68705_mcu_device> m_bmcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<input_merger_device> m_soundnmi;
-
- void lkage_sh_nmi_disable_w(uint8_t data);
- void lkage_sh_nmi_enable_w(uint8_t data);
- uint8_t sound_status_r();
- uint8_t port_fetch_r(offs_t offset);
- uint8_t mcu_status_r();
- uint8_t fake_mcu_r();
- void fake_mcu_w(uint8_t data);
- uint8_t fake_status_r();
-
- void lkage_videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- uint32_t screen_update_lkage(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void lkage_io_map(address_map &map);
- void lkage_map(address_map &map);
- void lkage_map_boot(address_map &map);
- void lkage_map_mcu(address_map &map);
- void lkage_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LKAGE_H
diff --git a/src/mame/includes/lockon.h b/src/mame/includes/lockon.h
deleted file mode 100644
index 8465c19b424..00000000000
--- a/src/mame/includes/lockon.h
+++ /dev/null
@@ -1,161 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett
-/*************************************************************************
-
- Lock-On hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_LOCKON_H
-#define MAME_INCLUDES_LOCKON_H
-
-#pragma once
-
-#include "machine/watchdog.h"
-#include "sound/flt_vol.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* Calculated from CRT controller writes */
-#define PIXEL_CLOCK (XTAL(21'000'000) / 3)
-#define FRAMEBUFFER_CLOCK XTAL(10'000'000)
-#define HBSTART 320
-#define HBEND 0
-#define HTOTAL 448
-#define VBSTART 240
-#define VBEND 0
-#define VTOTAL 280
-
-
-class lockon_state : public driver_device
-{
-public:
- lockon_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_char_ram(*this, "char_ram")
- , m_hud_ram(*this, "hud_ram")
- , m_scene_ram(*this, "scene_ram")
- , m_ground_ram(*this, "ground_ram")
- , m_object_ram(*this, "object_ram")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_ground(*this, "ground")
- , m_object(*this, "object")
- , m_watchdog(*this, "watchdog")
- , m_f2203_1l(*this, "f2203.1l")
- , m_f2203_2l(*this, "f2203.2l")
- , m_f2203_3l(*this, "f2203.3l")
- , m_f2203_1r(*this, "f2203.1r")
- , m_f2203_2r(*this, "f2203.2r")
- , m_f2203_3r(*this, "f2203.3r")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_lamp(*this, "lamp1")
- { }
-
- void lockon(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_char_ram;
- required_shared_ptr<uint16_t> m_hud_ram;
- required_shared_ptr<uint16_t> m_scene_ram;
- required_shared_ptr<uint16_t> m_ground_ram;
- required_shared_ptr<uint16_t> m_object_ram;
-
- /* video-related */
- tilemap_t *m_tilemap;
- uint8_t m_ground_ctrl;
- uint16_t m_scroll_h;
- uint16_t m_scroll_v;
- std::unique_ptr<bitmap_ind16> m_front_buffer;
- std::unique_ptr<bitmap_ind16> m_back_buffer;
- emu_timer *m_bufend_timer;
- emu_timer *m_cursor_timer;
-
- /* Rotation Control */
- uint16_t m_xsal;
- uint16_t m_x0ll;
- uint16_t m_dx0ll;
- uint16_t m_dxll;
- uint16_t m_ysal;
- uint16_t m_y0ll;
- uint16_t m_dy0ll;
- uint16_t m_dyll;
-
- /* Object palette RAM control */
- uint32_t m_iden;
- std::unique_ptr<uint8_t[]> m_obj_pal_ram;
- uint32_t m_obj_pal_latch;
- uint32_t m_obj_pal_addr;
-
- /* misc */
- uint8_t m_ctrl_reg;
- uint32_t m_main_inten;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_ground;
- required_device<cpu_device> m_object;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<filter_volume_device> m_f2203_1l;
- required_device<filter_volume_device> m_f2203_2l;
- required_device<filter_volume_device> m_f2203_3l;
- required_device<filter_volume_device> m_f2203_1r;
- required_device<filter_volume_device> m_f2203_2r;
- required_device<filter_volume_device> m_f2203_3r;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- output_finder<> m_lamp;
-
- uint16_t lockon_crtc_r();
- void lockon_crtc_w(offs_t offset, uint16_t data);
- void lockon_char_w(offs_t offset, uint16_t data);
- void lockon_scene_h_scr_w(uint16_t data);
- void lockon_scene_v_scr_w(uint16_t data);
- void lockon_ground_ctrl_w(uint16_t data);
- void lockon_tza112_w(offs_t offset, uint16_t data);
- uint16_t lockon_obj_4000_r();
- void lockon_obj_4000_w(uint16_t data);
- void lockon_fb_clut_w(offs_t offset, uint16_t data);
- void lockon_rotate_w(offs_t offset, uint16_t data);
- void adrst_w(uint16_t data);
- uint16_t main_gnd_r(offs_t offset);
- void main_gnd_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t main_obj_r(offs_t offset);
- void main_obj_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tst_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t main_z80_r(offs_t offset);
- void main_z80_w(offs_t offset, uint16_t data);
- void inten_w(uint16_t data);
- void emres_w(uint16_t data);
- void sound_vol(uint8_t data);
- void ym2203_out_b(uint8_t data);
- TILE_GET_INFO_MEMBER(get_lockon_tile_info);
- void lockon_palette(palette_device &palette) const;
- uint32_t screen_update_lockon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_lockon);
- TIMER_CALLBACK_MEMBER(cursor_callback);
- TIMER_CALLBACK_MEMBER(bufend_callback);
- void scene_draw();
- void ground_draw();
- void objects_draw();
- void rotate_draw( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void hud_draw( bitmap_ind16 &bitmap, const rectangle &cliprect );
- DECLARE_WRITE_LINE_MEMBER(ym2203_irq);
- void ground_v30(address_map &map);
- void main_v30(address_map &map);
- void object_v30(address_map &map);
- void sound_io(address_map &map);
- void sound_prg(address_map &map);
-};
-
-#endif // MAME_INCLUDES_LOCKON_H
diff --git a/src/mame/includes/lordgun.h b/src/mame/includes/lordgun.h
deleted file mode 100644
index b7567c2f4f9..00000000000
--- a/src/mame/includes/lordgun.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/*************************************************************************
-
- -= IGS Lord Of Gun =-
-
-*************************************************************************/
-#include "sound/okim6295.h"
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-struct lordgun_gun_data
-{
- int scr_x, scr_y;
- uint16_t hw_x, hw_y;
-};
-
-class lordgun_state : public driver_device
-{
-public:
- lordgun_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_oki(*this, "oki"),
- m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_priority_ram(*this, "priority_ram"),
- m_scrollram(*this, "scrollram"),
- m_spriteram(*this, "spriteram"),
- m_vram(*this, "vram.%u", 0),
- m_scroll_x(*this, "scroll_x.%u", 0),
- m_scroll_y(*this, "scroll_y.%u", 0) { }
-
- void aliencha(machine_config &config);
- void lordgun(machine_config &config);
-
- void init_aliencha();
- void init_lordgun();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<okim6295_device> m_oki;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
-
- required_shared_ptr<uint16_t> m_priority_ram;
- required_shared_ptr<uint16_t> m_scrollram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr_array<uint16_t, 4> m_vram;
- required_shared_ptr_array<uint16_t, 4> m_scroll_x;
- required_shared_ptr_array<uint16_t, 4> m_scroll_y;
-
- uint8_t m_old;
- uint8_t m_aliencha_dip_sel;
- uint16_t m_priority;
- int m_whitescreen;
- lordgun_gun_data m_gun[2];
- tilemap_t *m_tilemap[4];
- std::unique_ptr<bitmap_ind16> m_bitmaps[5];
-
- uint16_t m_protection_data;
- void lordgun_protection_w(offs_t offset, uint16_t data);
- uint16_t lordgun_protection_r(offs_t offset);
- void aliencha_protection_w(offs_t offset, uint16_t data);
- uint16_t aliencha_protection_r(offs_t offset);
-
- void priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t lordgun_gun_0_x_r();
- uint16_t lordgun_gun_0_y_r();
- uint16_t lordgun_gun_1_x_r();
- uint16_t lordgun_gun_1_y_r();
- void soundlatch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- template<int Layer> void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fake_w(uint8_t data);
- void fake2_w(uint8_t data);
- void lordgun_eeprom_w(uint8_t data);
- void aliencha_eeprom_w(uint8_t data);
- uint8_t aliencha_dip_r();
- void aliencha_dip_w(uint8_t data);
- void lordgun_okibank_w(uint8_t data);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void lorddgun_calc_gun_scr(int i);
- void lordgun_update_gun(int i);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void aliencha_map(address_map &map);
- void aliencha_soundio_map(address_map &map);
- void common_map(address_map &map);
- void lordgun_map(address_map &map);
- void lordgun_soundio_map(address_map &map);
- void soundmem_map(address_map &map);
- void ymf278_map(address_map &map);
-};
-
-/*----------- defined in video/lordgun.c -----------*/
-float lordgun_crosshair_mapper(const ioport_field *field, float linear_value);
diff --git a/src/mame/includes/lsasquad.h b/src/mame/includes/lsasquad.h
deleted file mode 100644
index a169a9aa442..00000000000
--- a/src/mame/includes/lsasquad.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "machine/taito68705interface.h"
-#include "emupal.h"
-
-class lsasquad_state : public driver_device
-{
-public:
- lsasquad_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_scrollram(*this, "scrollram"),
- m_spriteram(*this, "spriteram"),
- m_priority_prom(*this, "prio_prom"),
- m_mainbank(*this, "mainbank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_soundnmi(*this, "soundnmi"),
- m_bmcu(*this, "bmcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_bmcu_port(*this, "MCU") { }
-
- void lsasquad(machine_config &config);
- void daikaiju(machine_config &config);
- void storming(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- // memory pointers
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_scrollram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_region_ptr<uint8_t> m_priority_prom;
- required_memory_bank m_mainbank;
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
- optional_device<generic_latch_8_device> m_soundlatch2;
- optional_device<input_merger_device> m_soundnmi;
- optional_device<taito68705_mcu_device> m_bmcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- optional_ioport m_bmcu_port;
-
- void bankswitch_w(uint8_t data);
- void sh_nmi_disable_w(uint8_t data);
- void sh_nmi_enable_w(uint8_t data);
- uint8_t lsasquad_sound_status_r();
- uint8_t daikaiju_sound_status_r();
-
- uint8_t lsasquad_mcu_status_r();
- uint8_t daikaiju_mcu_status_r();
- void unk(uint8_t data);
- uint32_t screen_update_lsasquad(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_daikaiju(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(nmi_callback);
- void draw_layer(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *scrollram);
- int draw_layer_daikaiju(bitmap_ind16 &bitmap, const rectangle &cliprect, int offs, int *previd, int type);
- void drawbg(bitmap_ind16 &bitmap, const rectangle &cliprect, int type);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t priority);
- void daikaiju_map(address_map &map);
- void daikaiju_sound_map(address_map &map);
- void lsasquad_map(address_map &map);
- void lsasquad_sound_map(address_map &map);
- void storming_map(address_map &map);
-};
diff --git a/src/mame/includes/lucky74.h b/src/mame/includes/lucky74.h
deleted file mode 100644
index 295645c5736..00000000000
--- a/src/mame/includes/lucky74.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Roberto Fresca
-#ifndef MAME_INCLUDES_LUCKY74_H
-#define MAME_INCLUDES_LUCKY74_H
-
-#pragma once
-
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class lucky74_state : public driver_device
-{
-public:
- lucky74_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_fg_videoram(*this, "fg_videoram"),
- m_fg_colorram(*this, "fg_colorram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_bg_colorram(*this, "bg_colorram"),
- m_maincpu(*this, "maincpu"),
- m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void lucky74(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
- virtual void machine_reset() override;
- virtual void sound_start() override;
-
-private:
- uint8_t custom_09R81P_port_r(offs_t offset);
- void custom_09R81P_port_w(offs_t offset, uint8_t data);
- uint8_t usart_8251_r();
- void usart_8251_w(uint8_t data);
- uint8_t copro_sm7831_r();
- void copro_sm7831_w(uint8_t data);
- void fg_videoram_w(offs_t offset, uint8_t data);
- void fg_colorram_w(offs_t offset, uint8_t data);
- void bg_videoram_w(offs_t offset, uint8_t data);
- void bg_colorram_w(offs_t offset, uint8_t data);
- void ym2149_portb_w(uint8_t data);
- void lamps_a_w(uint8_t data);
- void lamps_b_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(nmi_interrupt);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
- void prg_map(address_map &map);
- void portmap(address_map &map);
-
- uint8_t m_ym2149_portb;
- uint8_t m_usart_8251;
- uint8_t m_copro_sm7831;
- int m_adpcm_pos;
- int m_adpcm_end;
- int m_adpcm_data;
- uint8_t m_adpcm_reg[6];
- uint8_t m_adpcm_busy_line;
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_fg_colorram;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_bg_colorram;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- required_device<cpu_device> m_maincpu;
- required_device<msm5205_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- output_finder<12> m_lamps;
-};
-
-#endif // MAME_INCLUDES_LUCKY74_H
diff --git a/src/mame/includes/lvcards.h b/src/mame/includes/lvcards.h
deleted file mode 100644
index 945a32bee6a..00000000000
--- a/src/mame/includes/lvcards.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari, Curt Coder
-#ifndef MAME_INCLUDES_LVCARDS_H
-#define MAME_INCLUDES_LVCARDS_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class lvcards_state : public driver_device
-{
-public:
- lvcards_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void lvcards(machine_config &config);
- void lvcardsa(machine_config &config);
-
- void init_lvcardsa();
-
-protected:
- virtual void video_start() override;
-
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
-
- required_device<cpu_device> m_maincpu;
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
- tilemap_t *m_bg_tilemap;
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void lvcards_palette(palette_device &palette) const;
- uint32_t screen_update_lvcards(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void lvcards_io_map(address_map &map);
- void lvcards_map(address_map &map);
- void lvcardsa_decrypted_opcodes_map(address_map &map);
-};
-
-
-class lvpoker_state : public lvcards_state
-{
-public:
- using lvcards_state::lvcards_state;
-
- void lvpoker(machine_config &config);
- void ponttehk(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- void control_port_2_w(uint8_t data);
- void control_port_2a_w(uint8_t data);
- uint8_t payout_r();
-
- void lvpoker_map(address_map &map);
- void ponttehk_map(address_map &map);
-
- uint8_t m_payout;
- uint8_t m_pulse;
- uint8_t m_result;
-};
-
-#endif // MAME_INCLUDES_LVCARDS_H
diff --git a/src/mame/includes/lviv.h b/src/mame/includes/lviv.h
deleted file mode 100644
index 4e42ed307fe..00000000000
--- a/src/mame/includes/lviv.h
+++ /dev/null
@@ -1,100 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Krzysztof Strzecha
-/*****************************************************************************
- *
- * includes/lviv.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_LVIV_H
-#define MAME_INCLUDES_LVIV_H
-
-#pragma once
-
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "machine/i8255.h"
-#include "machine/ram.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-#include "screen.h"
-
-class lviv_state : public driver_device
-{
-public:
- lviv_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_ram(*this, RAM_TAG)
- , m_ppi(*this, "ppi8255_%u", 0U)
- , m_speaker(*this, "speaker")
- , m_cassette(*this, "cassette")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_maincpu_region(*this, "maincpu")
- , m_bank(*this, "bank%u", 1U)
- , m_key(*this, "KEY%u", 0U)
- , m_joy_port(*this, "JOY")
- { }
-
- void lviv(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(reset_button);
-
-private:
- void machine_reset() override;
- void machine_start() override;
-
- void lviv_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint8_t io_r(offs_t offset);
- void io_w(offs_t offset, uint8_t data);
-
- uint8_t ppi0_porta_r();
- uint8_t ppi0_portb_r();
- uint8_t ppi0_portc_r();
- uint8_t ppi1_porta_r();
- uint8_t ppi1_portb_r();
- uint8_t ppi1_portc_r();
-
- void ppi0_porta_w(uint8_t data);
- void ppi0_portb_w(uint8_t data);
- void ppi0_portc_w(uint8_t data);
- void ppi1_porta_w(uint8_t data);
- void ppi1_portb_w(uint8_t data);
- void ppi1_portc_w(uint8_t data);
-
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
-
- void update_palette(uint8_t pal);
-
- void update_memory();
- void setup_snapshot(uint8_t * data);
- void dump_registers();
- image_verify_result verify_snapshot(uint8_t * data, uint32_t size);
-
- void io_map(address_map &map);
- void mem_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_device_array<i8255_device, 2> m_ppi;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_memory_region m_maincpu_region;
- required_memory_bank_array<4> m_bank;
- required_ioport_array<12> m_key;
- required_ioport m_joy_port;
-
- uint8_t* m_vram;
- uint16_t m_colortable[1][4];
- uint8_t m_ppi_port_outputs[2][3];
- uint8_t m_startup_mem_map;
-
- /*----------- defined in video/lviv.c -----------*/
- static const rgb_t s_palette[8];
-};
-
-#endif // MAME_INCLUDES_LVIV_H
diff --git a/src/mame/includes/lwings.h b/src/mame/includes/lwings.h
deleted file mode 100644
index c0bf63983aa..00000000000
--- a/src/mame/includes/lwings.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Leaman
-
-#include "video/bufsprite.h"
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class lwings_state : public driver_device
-{
-public:
- lwings_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_bg1videoram(*this, "bg1videoram"),
- m_soundlatch2(*this, "soundlatch_2"),
- m_nmi_mask(0),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_msm(*this, "5205"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch") { }
-
- void lwings(machine_config &config);
- void sectionz(machine_config &config);
- void trojan(machine_config &config);
- void fball(machine_config &config);
- void avengers(machine_config &config);
- void avengersb(machine_config &config);
-
- void init_avengersb();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_device<buffered_spriteram8_device> m_spriteram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_bg1videoram;
- optional_shared_ptr<uint8_t> m_soundlatch2;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg1_tilemap;
- tilemap_t *m_bg2_tilemap;
- uint8_t m_bg2_image;
- int m_bg2_avenger_hw;
- int m_spr_avenger_hw;
- uint8_t m_scroll_x[2];
- uint8_t m_scroll_y[2];
-
- /* misc */
- uint8_t m_param[4];
- int m_palette_pen;
- uint8_t m_soundstate;
- uint8_t m_adpcm;
- uint8_t m_nmi_mask;
- int m_sprbank;
-
- void avengers_adpcm_w(uint8_t data);
- uint8_t avengers_adpcm_r();
- void lwings_bankswitch_w(uint8_t data);
- void avengers_protection_w(uint8_t data);
- void avengers_prot_bank_w(uint8_t data);
- uint8_t avengers_protection_r();
- uint8_t avengers_soundlatch2_r();
- void lwings_fgvideoram_w(offs_t offset, uint8_t data);
- void lwings_bg1videoram_w(offs_t offset, uint8_t data);
- void lwings_bg1_scrollx_w(offs_t offset, uint8_t data);
- void lwings_bg1_scrolly_w(offs_t offset, uint8_t data);
- void trojan_bg2_scrollx_w(uint8_t data);
- void trojan_bg2_image_w(uint8_t data);
- void msm5205_w(uint8_t data);
- void fball_oki_bank_w(uint8_t data);
-
- TILEMAP_MAPPER_MEMBER(get_bg2_memory_offset);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(lwings_get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(trojan_get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- DECLARE_VIDEO_START(trojan);
- DECLARE_VIDEO_START(avengers);
- DECLARE_VIDEO_START(avengersb);
- uint32_t screen_update_lwings(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_trojan(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(lwings_interrupt);
- DECLARE_WRITE_LINE_MEMBER(avengers_interrupt);
- inline int is_sprite_on( uint8_t *buffered_spriteram, int offs );
- void lwings_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void trojan_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- int avengers_fetch_paldata( );
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<msm5205_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- void avengers_adpcm_io_map(address_map &map);
- void avengers_map(address_map &map);
- void fball_map(address_map &map);
- void fball_oki_map(address_map &map);
- void fball_sound_map(address_map &map);
- void lwings_map(address_map &map);
- void lwings_sound_map(address_map &map);
- void trojan_adpcm_io_map(address_map &map);
- void trojan_adpcm_map(address_map &map);
- void trojan_map(address_map &map);
-};
diff --git a/src/mame/includes/lynx.h b/src/mame/includes/lynx.h
deleted file mode 100644
index 8d14e0d9dfa..00000000000
--- a/src/mame/includes/lynx.h
+++ /dev/null
@@ -1,314 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/lynx.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_LYNX_H
-#define MAME_INCLUDES_LYNX_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-#include "audio/lynx.h"
-#include "imagedev/snapquik.h"
-#include "machine/bankdev.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#define LYNX_CART 0
-#define LYNX_QUICKLOAD 1
-
-
-#define NR_LYNX_TIMERS 8
-
-class lynx_state : public driver_device
-{
-public:
- lynx_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_mem_0000(*this, "mem_0000"),
- m_mem_fc00(*this, "mem_fc00"),
- m_mem_fd00(*this, "mem_fd00"),
- m_mem_fe00(*this, "mem_fe00"),
- m_mem_fffa(*this, "mem_fffa"),
- m_maincpu(*this, "maincpu"),
- m_sound(*this, "custom"),
- m_cart(*this, "cartslot"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_bank_fc00(*this, "bank_fc00"),
- m_bank_fd00(*this, "bank_fd00"),
- m_bank_fe00(*this, "bank_fe00"),
- m_bank_fffa(*this, "bank_fffa")
- { }
-
- void lynx(machine_config &config);
-
-private:
- struct BLITTER
- {
- // global
- uint16_t screen;
- uint16_t colbuf;
- uint16_t colpos; // byte where value of collision is written
- int16_t xoff, yoff;
- // in command
- int mode;
- uint8_t spr_coll;
- uint8_t spritenr;
- int16_t x_pos,y_pos;
- uint16_t width, height; // uint16 important for blue lightning
- int16_t tilt_accumulator;
- uint16_t height_accumulator, width_accumulator;
- uint16_t width_offset, height_offset;
- int16_t stretch, tilt;
- uint8_t color[16]; // or stored
- uint16_t bitmap;
- int use_rle;
- int line_color;
-
- uint8_t spr_ctl0;
- uint8_t spr_ctl1;
- uint16_t scb;
- uint16_t scb_next;
- uint8_t sprite_collide;
-
- int everon;
- uint8_t fred;
- int memory_accesses;
- attotime time;
-
- int no_collide;
- int vstretch;
- int lefthanded;
- int busy;
- };
-
- struct UART
- {
- uint8_t serctl;
- uint8_t data_received, data_to_send, buffer;
- int received;
- int sending;
- int buffer_loaded;
- };
-
- struct SUZY
- {
- uint8_t data[0x100];
- uint8_t high;
- int low;
- int signed_math;
- int accumulate;
- int accumulate_overflow;
- };
-
- struct MIKEY
- {
- uint8_t data[0x100];
- uint16_t disp_addr;
- uint8_t vb_rest;
- };
-
- struct LYNX_TIMER
- {
- uint8_t bakup;
- uint8_t cntrl1;
- uint8_t cntrl2;
- uint8_t counter;
- emu_timer *timer;
- int timer_active;
- };
-
- enum
- {
- TIMER_BLITTER,
- TIMER_SHOT,
- TIMER_UART_LOOPBACK,
- TIMER_UART
- };
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- required_shared_ptr<uint8_t> m_mem_0000;
- required_shared_ptr<uint8_t> m_mem_fc00;
- required_shared_ptr<uint8_t> m_mem_fd00;
- required_shared_ptr<uint8_t> m_mem_fe00;
- required_shared_ptr<uint8_t> m_mem_fffa;
- required_device<cpu_device> m_maincpu;
- required_device<lynx_sound_device> m_sound;
- required_device<generic_slot_device> m_cart;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_device<address_map_bank_device> m_bank_fc00;
- required_device<address_map_bank_device> m_bank_fd00;
- required_memory_bank m_bank_fe00;
- required_memory_bank m_bank_fffa;
- uint16_t m_granularity;
- int m_sign_AB;
- int m_sign_CD;
- int m_rotate;
- uint8_t m_memory_config;
-
- BLITTER m_blitter;
- SUZY m_suzy;
- MIKEY m_mikey;
- UART m_uart;
- LYNX_TIMER m_timer[NR_LYNX_TIMERS];
-
- bitmap_rgb32 m_bitmap;
- bitmap_rgb32 m_bitmap_temp;
-
- void lynx_mem(address_map &map);
- void lynx_fc00_mem(address_map &map);
- void lynx_fd00_mem(address_map &map);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t suzy_read(offs_t offset);
- void suzy_write(offs_t offset, uint8_t data);
- void lynx_uart_w(offs_t offset, uint8_t data);
- uint8_t lynx_uart_r(offs_t offset);
- uint8_t mikey_read(offs_t offset);
- void mikey_write(offs_t offset, uint8_t data);
- uint8_t lynx_memory_config_r();
- void lynx_memory_config_w(uint8_t data);
- void lynx_divide();
- void lynx_multiply();
- uint8_t lynx_timer_read(int which, int offset);
- void lynx_timer_write(int which, int offset, uint8_t data);
- void sound_cb();
- TIMER_CALLBACK_MEMBER(lynx_blitter_timer);
- TIMER_CALLBACK_MEMBER(lynx_timer_shot);
- TIMER_CALLBACK_MEMBER(lynx_uart_loopback_timer);
- TIMER_CALLBACK_MEMBER(lynx_uart_timer);
- void lynx_postload();
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load);
- uint8_t lynx_read_ram(uint16_t address);
- void lynx_write_ram(uint16_t address, uint8_t data);
- inline void lynx_plot_pixel(const int mode, const int16_t x, const int y, const int color);
- void lynx_blit_do_work(const int y, const int xdir, const int bits_per_pixel, const int mask );
- void lynx_blit_rle_do_work( const int16_t y, const int xdir, const int bits_per_pixel, const int mask );
- void lynx_blit_lines();
- void lynx_blitter();
- void lynx_draw_line();
- void lynx_timer_init(int which);
- void lynx_timer_signal_irq(int which);
- void lynx_timer_count_down(int which);
- uint32_t lynx_time_factor(int val);
- void lynx_uart_reset();
- image_verify_result lynx_verify_cart(char *header, int kind);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-};
-
-
-/*---------- suzy registers ------------- */
-#define TMPADRL 0x00 // Temporary address (not sure what this is used for)
-#define TMPADRH 0x01
-#define TILTACUML 0x02 // Tilt accumulator (signed fixed-point, eight bits to the left of decimal)
-#define TILTACUMH 0x03
-#define HOFFL 0x04 // X offset to edge of visible window
-#define HOFFH 0x05
-#define VOFFL 0x06 // Y offset to edge of visible window
-#define VOFFH 0x07
-#define VIDBASL 0x08 // Video buffer address
-#define VIDBASH 0x09
-#define COLLBASL 0x0A // Collision buffer address
-#define COLLBASH 0x0B
-#define VIDADRL 0x0C // Current Video Build Address
-#define VIDADRH 0x0D
-#define COLLADRL 0x0E // Current Collision Build Address
-#define COLLADRH 0x0F
-#define SCBNEXTL 0x10 // Address of next SCB
-#define SCBNEXTH 0x11
-#define SPRDLINEL 0x12 // Sprite data start address
-#define SPRDLINEH 0x13
-#define HPOSSTRTL 0x14 // Starting Hpos
-#define HPOSSTRTH 0x15
-#define VPOSSTRTL 0x16 // Starting Vpos
-#define VPOSSTRTH 0x17
-#define SPRHSIZL 0x18 // H Size
-#define SPRHSIZH 0x19
-#define SPRVSIZL 0x1A // V Size
-#define SPRVSIZH 0x1B
-#define STRETCHL 0x1C // H/V Size Adder (signed fixed-point)
-#define STRETCHH 0x1D
-#define TILTL 0x1E // H Position Adder (signed fixed-point)
-#define TILTH 0x1F
-#define SPRDOFFL 0x20 // Offset to Next Sprite Data Line
-#define SPRDOFFH 0x21
-#define SPRVPOSL 0x22 // Current Vpos
-#define SPRVPOSH 0x23
-#define COLLOFFL 0x24 // Offset to Collision Depository
-#define COLLOFFH 0x25
-#define VSIZACUML 0x26 // Vertical Size Accumulator
-#define VSIZACUMH 0x27
-#define HSIZOFFL 0x28 // Horizontal Size Offset
-#define HSIZOFFH 0x29
-#define VSIZOFFL 0x2A // Vertical Size Offset
-#define VSIZOFFH 0x2B
-#define SCBADRL 0x2C // Address of Current SCB
-#define SCBADRH 0x2D
-#define PROCADRL 0x2E // Current Spr Data Proc Address
-
-#define MATH_D 0x52
-#define MATH_C 0x53
-#define MATH_B 0x54
-#define MATH_A 0x55
-#define MATH_P 0x56
-#define MATH_N 0x57
-#define MATH_H 0x60
-#define MATH_G 0x61
-#define MATH_F 0x62
-#define MATH_E 0x63
-
-#define MATH_M 0x6c
-#define MATH_L 0x6d
-#define MATH_K 0x6e
-#define MATH_J 0x6f
-
-#define SPRCTL0 0x80 // Sprite Control Bits 0 (W)(U)
-#define SPRCTL1 0x81 // Sprite Control Bits 1 (W)(U)
-#define SPRCOLL 0x82 // Sprite Collision Number (W)
-#define SPRINIT 0x83 // Sprite Initialization Bits (W)(U)
-
-#define SUZYHREV 0x88 // Suzy Hardware Revision (R) = '01'
-
-#define SUZYBUSEN 0x90 // Suzy Bus Enable (W)
-#define SPRGO 0x91 // Sprite Process Start Bit (W)
-#define SPRSYS 0x92 // System Control Bits (R/W)
-
-#define JOYSTICK 0xB0 // Read Joystick and Switches(R)
-#define SWITCHES 0xB1 // Read Other Switches (R)
-#define RCART 0xB2 // Read / Write Cartridge Bank 0 (R/W)
-#define RCART_BANK1 0xB3 // Read / Write Cartridge Bank 1 (R/W) (Unused in existing cartridges?)
-
-//0xC0 LEDs (W)
-//0xC2 Parallel Port Status(R/W)
-//0xC3 Parallel Port Data (R/W)
-//0xC4 Howie (R/W)
-
-// SCB offsets
-
-//8-bit
-#define SCB_SPRCTL0 0x00 // 8 bit
-#define SCB_SPRCTL1 0x01 // 8 bit
-#define SCB_SPRCOLL 0x02 // 4 bit
-
-//16-bit
-#define SCB_SCBNEXT 0x03 // L,H Address of Next SCB
-#define SCB_SPRDLINE 0x05 // L,H Start of Sprite Data Line Address
-#define SCB_HPOSSTRT 0x07 // L,H Starting Hpos
-#define SCB_VPOSSTRT 0x09 // L,H Starting Vpos
-#define SCB_SPRHSIZ 0x0B // L,H H Size
-#define SCB_SPRVSIZ 0x0D // L,H V Size
-#define SCB_STRETCH 0x0F // L H H/V Size Adder
-#define SCB_TILT 0x11 // L,H H Position Adder
-
-#endif // MAME_INCLUDES_LYNX_H
diff --git a/src/mame/includes/m10.h b/src/mame/includes/m10.h
deleted file mode 100644
index 1f31eef7a24..00000000000
--- a/src/mame/includes/m10.h
+++ /dev/null
@@ -1,161 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Lee Taylor, Couriersud
-/***************************************************************************
-
- IREM M-10,M-11 and M-15 based hardware
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_M10_H
-#define MAME_INCLUDES_M10_H
-
-#pragma once
-
-#include "sound/samples.h"
-#include "machine/74123.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#define IREMM10_MASTER_CLOCK (12500000)
-
-#define IREMM10_CPU_CLOCK (IREMM10_MASTER_CLOCK/16)
-#define IREMM10_PIXEL_CLOCK (IREMM10_MASTER_CLOCK/2)
-#define IREMM10_HTOTAL (360) /* (0x100-0xd3)*8 */
-#define IREMM10_HBSTART (248)
-#define IREMM10_HBEND (8)
-#define IREMM10_VTOTAL (281) /* (0x200-0xe7) */
-#define IREMM10_VBSTART (240)
-#define IREMM10_VBEND (16)
-
-#define IREMM15_MASTER_CLOCK (11730000)
-
-#define IREMM15_CPU_CLOCK (IREMM15_MASTER_CLOCK/10)
-#define IREMM15_PIXEL_CLOCK (IREMM15_MASTER_CLOCK/2)
-#define IREMM15_HTOTAL (372)
-#define IREMM15_HBSTART (256)
-#define IREMM15_HBEND (0)
-#define IREMM15_VTOTAL (262)
-#define IREMM15_VBSTART (240)
-#define IREMM15_VBEND (16)
-
-class m1x_state : public driver_device
-{
-public:
- m1x_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_chargen(*this, "chargen"),
- m_maincpu(*this, "maincpu"),
- m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_cab(*this, "CAB")
- { }
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void colorram_w(offs_t offset, uint8_t data);
-
- // memory pointers
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_chargen;
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_ioport m_cab;
-
- // video-related
- tilemap_t * m_tx_tilemap;
-
- // this is currently unused, because it is needed by gfx_layout (which has no machine)
- uint32_t extyoffs[32 * 8];
-
- // video state
- uint8_t m_flip;
-
- // misc
- int m_last;
- emu_timer *m_interrupt_timer;
-
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
- TILE_GET_INFO_MEMBER(get_tile_info);
- void palette(palette_device &palette) const;
- TIMER_CALLBACK_MEMBER(interrupt_callback);
-};
-
-class m10_state : public m1x_state
-{
-public:
- m10_state(const machine_config &mconfig, device_type type, const char *tag) :
- m1x_state(mconfig, type, tag),
- m_ic8j1(*this, "ic8j1"),
- m_ic8j2(*this, "ic8j2")
- { }
-
- void m10(machine_config &config);
- void m11(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<ttl74123_device> m_ic8j1;
- required_device<ttl74123_device> m_ic8j2;
-
- gfx_element * m_back_gfx;
- uint8_t m_bottomline;
-
- void m10_ctrl_w(uint8_t data);
- void m11_ctrl_w(uint8_t data);
- void m10_a500_w(uint8_t data);
- void m11_a100_w(uint8_t data);
- uint8_t m10_a700_r();
- uint8_t m11_a700_r();
- void chargen_w(offs_t offset, uint8_t data);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(ic8j1_output_changed);
- DECLARE_WRITE_LINE_MEMBER(ic8j2_output_changed);
- inline void plot_pixel( bitmap_ind16 &bm, int x, int y, int col );
-
- void m10_main(address_map &map);
- void m11_main(address_map &map);
-};
-
-class m15_state : public m1x_state
-{
-public:
- m15_state(const machine_config &mconfig, device_type type, const char *tag) :
- m1x_state(mconfig, type, tag)
- { }
-
- void m15(machine_config &config);
- void headoni(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- void ctrl_w(uint8_t data);
- void a100_w(uint8_t data);
- void chargen_w(offs_t offset, uint8_t data);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(interrupt);
-
- void m15_main(address_map &map);
-};
-
-#endif // MAME_INCLUDES_M10_H
diff --git a/src/mame/includes/m107.h b/src/mame/includes/m107.h
deleted file mode 100644
index d31e733451c..00000000000
--- a/src/mame/includes/m107.h
+++ /dev/null
@@ -1,106 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Irem M107 hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_M107_H
-#define MAME_INCLUDES_M107_H
-
-#pragma once
-
-#include "cpu/nec/v25.h"
-#include "machine/pic8259.h"
-#include "machine/timer.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-struct pf_layer_info
-{
- tilemap_t * tmap;
- uint16_t vram_base;
-};
-
-class m107_state : public driver_device
-{
-public:
- m107_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_upd71059c(*this, "upd71059c")
- , m_spriteram(*this, "spriteram")
- , m_vram_data(*this, "vram_data")
- , m_sprtable_rom(*this, "sprtable")
- , m_mainbank(*this, "mainbank")
- {
- }
-
- void airass(machine_config &config);
- void wpksoc(machine_config &config);
- void firebarr(machine_config &config);
- void dsoccr94(machine_config &config);
-
- void init_firebarr();
- void init_dsoccr94();
- void init_wpksoc();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<v35_device> m_soundcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<pic8259_device> m_upd71059c;
- required_device<buffered_spriteram16_device> m_spriteram;
-
- required_shared_ptr<uint16_t> m_vram_data;
- optional_region_ptr<uint8_t> m_sprtable_rom;
-
- optional_memory_bank m_mainbank;
-
- // driver init
- uint8_t m_spritesystem;
-
- uint8_t m_sprite_display;
- uint16_t m_raster_irq_position;
- pf_layer_info m_pf_layer[4];
- uint16_t m_control[0x10];
-
- void coincounter_w(uint8_t data);
- void bankswitch_w(uint8_t data);
- void sound_reset_w(uint16_t data);
- void wpksoc_output_w(uint16_t data);
- void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void spritebuffer_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_pf_tile_info);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_interrupt);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void update_scroll_positions();
- void tilemap_draw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int laynum, int category,int opaque);
- void screenrefresh(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void dsoccr94_io_map(address_map &map);
- void dsoccr94_map(address_map &map);
- void firebarr_map(address_map &map);
- void main_map(address_map &map);
- void main_portmap(address_map &map);
- void sound_map(address_map &map);
- void wpksoc_io_map(address_map &map);
- void wpksoc_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_M107_H
diff --git a/src/mame/includes/m52.h b/src/mame/includes/m52.h
deleted file mode 100644
index 3827f636064..00000000000
--- a/src/mame/includes/m52.h
+++ /dev/null
@@ -1,106 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_M52_H
-#define MAME_INCLUDES_M52_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class m52_state : public driver_device
-{
-public:
- m52_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram"),
- m_sp_gfxdecode(*this, "sp_gfxdecode"),
- m_tx_gfxdecode(*this, "tx_gfxdecode"),
- m_bg_gfxdecode(*this, "bg_gfxdecode"),
- m_sp_palette(*this, "sp_palette"),
- m_tx_palette(*this, "tx_palette"),
- m_bg_palette(*this, "bg_palette")
- { }
-
- void m52(machine_config &config);
-
- void m52_videoram_w(offs_t offset, uint8_t data);
- void m52_colorram_w(offs_t offset, uint8_t data);
- uint8_t m52_protection_r();
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void m52_scroll_w(uint8_t data);
-
- /* board mod changes? */
- int m_spritelimit;
- bool m_do_bg_fills;
-
- tilemap_t* m_tx_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- optional_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- uint8_t m_bg1xpos;
- uint8_t m_bg1ypos;
- uint8_t m_bg2xpos;
- uint8_t m_bg2ypos;
- uint8_t m_bgcontrol;
-
- required_device<gfxdecode_device> m_sp_gfxdecode;
- required_device<gfxdecode_device> m_tx_gfxdecode;
- required_device<gfxdecode_device> m_bg_gfxdecode;
- required_device<palette_device> m_sp_palette;
- required_device<palette_device> m_tx_palette;
- required_device<palette_device> m_bg_palette;
-
- void m52_bg1ypos_w(uint8_t data);
- void m52_bg1xpos_w(uint8_t data);
- void m52_bg2xpos_w(uint8_t data);
- void m52_bg2ypos_w(uint8_t data);
- void m52_bgcontrol_w(uint8_t data);
- void m52_flipscreen_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- void init_palette();
- template <size_t N, size_t O, size_t P>
- void init_sprite_palette(const int *resistances_3, const int *resistances_2, double (&weights_r)[N], double (&weights_g)[O], double (&weights_b)[P], double scale);
- uint32_t screen_update_m52(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect, int xpos, int ypos, int image);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, int initoffs);
-
- void main_map(address_map &map);
- void main_portmap(address_map &map);
-};
-
-class m52_alpha1v_state : public m52_state
-{
-public:
- m52_alpha1v_state(const machine_config &mconfig, device_type type, const char *tag)
- : m52_state(mconfig, type, tag)
- { }
-
- void alpha1v(machine_config &config);
-
- void alpha1v_map(address_map &map);
-
-protected:
- virtual void video_start() override;
- virtual void m52_scroll_w(uint8_t data) override;
- void alpha1v_flipscreen_w(uint8_t data);
-
-};
-
-#endif // MAME_INCLUDES_M52_H
diff --git a/src/mame/includes/m57.h b/src/mame/includes/m57.h
deleted file mode 100644
index 6c39ab3be9a..00000000000
--- a/src/mame/includes/m57.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-#ifndef MAME_INCLUDES_M57_H
-#define MAME_INCLUDES_M57_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class m57_state : public driver_device
-{
-public:
- m57_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_scrollram(*this, "scrollram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void m57(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_scrollram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t* m_bg_tilemap;
- int m_flipscreen;
- void m57_videoram_w(offs_t offset, uint8_t data);
- void m57_flipscreen_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void video_start() override;
- void m57_palette(palette_device &palette) const;
- uint32_t screen_update_m57(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_M57_H
diff --git a/src/mame/includes/m58.h b/src/mame/includes/m58.h
deleted file mode 100644
index d8e8a73c89c..00000000000
--- a/src/mame/includes/m58.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Lee Taylor
-// thanks-to:John Clegg
-/****************************************************************************
-
- Irem M58 hardware
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_M58_H
-#define MAME_INCLUDES_M58_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class m58_state : public driver_device
-{
-public:
- m58_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_scroll_x_low(*this, "scroll_x_low"),
- m_scroll_x_high(*this, "scroll_x_high"),
- m_scroll_y_low(*this, "scroll_y_low"),
- m_score_panel_disabled(*this, "score_disable")
- { }
-
- void yard(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scroll_x_low;
- required_shared_ptr<uint8_t> m_scroll_x_high;
- required_shared_ptr<uint8_t> m_scroll_y_low;
- required_shared_ptr<uint8_t> m_score_panel_disabled;
-
- /* video-related */
- tilemap_t* m_bg_tilemap;
- bitmap_ind16 m_scroll_panel_bitmap;
-
- void videoram_w(offs_t offset, uint8_t data);
- void scroll_panel_w(offs_t offset, uint8_t data);
- void flipscreen_w(uint8_t data);
-
- virtual void video_start() override;
- void m58_palette(palette_device &palette) const;
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_rows);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_panel( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void yard_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_M58_H
diff --git a/src/mame/includes/m62.h b/src/mame/includes/m62.h
deleted file mode 100644
index c79bb5306cd..00000000000
--- a/src/mame/includes/m62.h
+++ /dev/null
@@ -1,188 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:smf, David Haywood
-#ifndef MAME_INCLUDES_M62_H
-#define MAME_INCLUDES_M62_H
-
-#pragma once
-
-#include "audio/irem.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class m62_state : public driver_device
-{
-public:
- m62_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_m62_tileram(*this, "m62_tileram"),
- m_m62_textram(*this, "m62_textram"),
- m_scrollram(*this, "scrollram"),
- m_sprite_height_prom(*this, "spr_height_prom"),
- m_sprite_color_proms(*this, "spr_color_proms"),
- m_chr_color_proms(*this, "chr_color_proms"),
- m_fg_color_proms(*this, "fg_color_proms"),
- m_maincpu(*this, "maincpu"),
- m_fg_decode(*this, "fg_decode"),
- m_spr_decode(*this, "spr_decode"),
- m_chr_decode(*this, "chr_decode"),
- m_fg_palette(*this, "fg_palette"),
- m_spr_palette(*this, "spr_palette"),
- m_chr_palette(*this, "chr_palette"),
- m_audio(*this, "irem_audio")
- { }
-
- void ldrun2(machine_config &config);
- void lotlot(machine_config &config);
- void ldrun3(machine_config &config);
- void battroad(machine_config &config);
- void horizon(machine_config &config);
- void ldrun4(machine_config &config);
- void spelunk2(machine_config &config);
- void youjyudn(machine_config &config);
- void kungfum(machine_config &config);
- void spelunkr(machine_config &config);
- void ldrun(machine_config &config);
- void kidniki(machine_config &config);
-
- void init_youjyudn();
- void init_spelunkr();
- void init_ldrun2();
- void init_ldrun4();
- void init_spelunk2();
- void init_kidniki();
- void init_battroad();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_shared_ptr<uint8_t> m_m62_tileram;
- optional_shared_ptr<uint8_t> m_m62_textram;
- optional_shared_ptr<uint8_t> m_scrollram;
-
- /* video-related */
- tilemap_t* m_bg_tilemap;
- tilemap_t* m_fg_tilemap;
- int m_flipscreen;
- required_region_ptr<uint8_t> m_sprite_height_prom;
- required_region_ptr<uint8_t> m_sprite_color_proms;
- required_region_ptr<uint8_t> m_chr_color_proms;
- optional_region_ptr<uint8_t> m_fg_color_proms;
- int32_t m_m62_background_hscroll;
- int32_t m_m62_background_vscroll;
- uint8_t m_kidniki_background_bank;
- int32_t m_kidniki_text_vscroll;
- int m_ldrun3_topbottom_mask;
- int32_t m_spelunkr_palbank;
-
- /* misc */
- int m_ldrun2_bankswap; //ldrun2
- int m_bankcontrol[2]; //ldrun2
- uint8_t ldrun2_bankswitch_r();
- void ldrun2_bankswitch_w(offs_t offset, uint8_t data);
- uint8_t ldrun3_prot_5_r();
- uint8_t ldrun3_prot_7_r();
- void ldrun4_bankswitch_w(uint8_t data);
- void kidniki_bankswitch_w(uint8_t data);
- void spelunkr_bankswitch_w(uint8_t data);
- void spelunk2_bankswitch_w(uint8_t data);
- void youjyudn_bankswitch_w(uint8_t data);
- void m62_flipscreen_w(uint8_t data);
- void m62_hscroll_low_w(uint8_t data);
- void m62_hscroll_high_w(uint8_t data);
- void m62_vscroll_low_w(uint8_t data);
- void m62_vscroll_high_w(uint8_t data);
- void m62_tileram_w(offs_t offset, uint8_t data);
- void m62_textram_w(offs_t offset, uint8_t data);
- void kungfum_tileram_w(offs_t offset, uint8_t data);
- void ldrun3_topbottom_mask_w(uint8_t data);
- void kidniki_text_vscroll_low_w(uint8_t data);
- void kidniki_text_vscroll_high_w(uint8_t data);
- void kidniki_background_bank_w(uint8_t data);
- void spelunkr_palbank_w(uint8_t data);
- void spelunk2_gfxport_w(uint8_t data);
- void horizon_scrollram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_kungfum_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_ldrun_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_ldrun2_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_battroad_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_battroad_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_ldrun4_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_lotlot_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_lotlot_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_kidniki_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_kidniki_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_spelunkr_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_spelunkr_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_spelunk2_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_youjyudn_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_youjyudn_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_horizon_bg_tile_info);
- DECLARE_MACHINE_START(battroad);
- void machine_init_save();
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void m62_spr(palette_device &palette) const;
- void m62_chr(palette_device &palette) const;
- void m62_lotlot_fg(palette_device &palette) const;
- void m62_battroad_fg(palette_device &palette) const;
- DECLARE_VIDEO_START(kungfum);
- DECLARE_VIDEO_START(battroad);
- DECLARE_VIDEO_START(ldrun2);
- DECLARE_VIDEO_START(ldrun4);
- DECLARE_VIDEO_START(lotlot);
- DECLARE_VIDEO_START(kidniki);
- DECLARE_VIDEO_START(spelunkr);
- DECLARE_VIDEO_START(spelunk2);
- void spelunk2_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(youjyudn);
- DECLARE_VIDEO_START(horizon);
- uint32_t screen_update_ldrun(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_kungfum(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_battroad(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ldrun3(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ldrun4(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_lotlot(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_kidniki(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_spelunkr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_spelunk2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_youjyudn(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_horizon(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void m62_amplify_contrast(bool include_fg);
- void register_savestate();
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, int colormask, int prioritymask, int priority);
- void m62_start(tilemap_get_info_delegate tile_get_info, int rows, int cols, int x1, int y1, int x2, int y2);
- void m62_textlayer(tilemap_get_info_delegate tile_get_info, int rows, int cols, int x1, int y1, int x2, int y2);
- required_device<cpu_device> m_maincpu;
- optional_device<gfxdecode_device> m_fg_decode;
- required_device<gfxdecode_device> m_spr_decode;
- required_device<gfxdecode_device> m_chr_decode;
- optional_device<palette_device> m_fg_palette;
- required_device<palette_device> m_spr_palette;
- required_device<palette_device> m_chr_palette;
- required_device<irem_audio_device> m_audio;
-
- void battroad_io_map(address_map &map);
- void battroad_map(address_map &map);
- void horizon_map(address_map &map);
- void kidniki_io_map(address_map &map);
- void kidniki_map(address_map &map);
- void kungfum_io_map(address_map &map);
- void kungfum_map(address_map &map);
- void ldrun2_io_map(address_map &map);
- void ldrun2_map(address_map &map);
- void ldrun3_io_map(address_map &map);
- void ldrun3_map(address_map &map);
- void ldrun4_io_map(address_map &map);
- void ldrun4_map(address_map &map);
- void ldrun_map(address_map &map);
- void lotlot_map(address_map &map);
- void spelunk2_map(address_map &map);
- void spelunkr_map(address_map &map);
- void youjyudn_io_map(address_map &map);
- void youjyudn_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_M62_H
diff --git a/src/mame/includes/m72.h b/src/mame/includes/m72.h
deleted file mode 100644
index 01d5e7ce927..00000000000
--- a/src/mame/includes/m72.h
+++ /dev/null
@@ -1,269 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Irem M72 hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_M72_H
-#define MAME_INCLUDES_M72_H
-
-#pragma once
-
-#include "audio/m72.h"
-#include "cpu/mcs51/mcs51.h"
-#include "machine/mb8421.h"
-#include "machine/pic8259.h"
-#include "machine/upd4701.h"
-#include "video/bufsprite.h"
-#include "sound/dac.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#define M81_B_B_JUMPER_J3_S \
- PORT_START("JumperJ3") \
- PORT_CONFNAME( 0x0001, 0x0000, "M81-B-B Jumper J3" ) \
- PORT_CONFSETTING( 0x0000, "S" ) \
- /* PORT_CONFSETTING( 0x0001, "W" ) */
-
-#define M81_B_B_JUMPER_J3_W \
- PORT_START("JumperJ3") \
- PORT_CONFNAME( 0x0001, 0x0001, "M81-B-B Jumper J3" ) \
- /* PORT_CONFSETTING( 0x0000, "S" ) */ \
- PORT_CONFSETTING( 0x0001, "W" )
-
-class m72_state : public driver_device
-{
-public:
- m72_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_mcu(*this, "mcu"),
- m_dpram(*this, "dpram"),
- m_dac(*this, "dac"),
- m_audio(*this, "m72"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram%u", 1U),
- m_m82_rowscrollram(*this, "majtitle_rowscr"),
- m_spriteram2(*this, "spriteram2"),
- m_soundram(*this, "soundram"),
- m_paletteram(*this, "paletteram%u", 1U),
- m_upd71059c(*this, "upd71059c"),
- m_upd4701(*this, {"upd4701l", "upd4701h"}),
- m_samples_region(*this, "samples"),
- m_io_dsw(*this, "DSW"),
- m_fg_tilemap(nullptr),
- m_bg_tilemap(nullptr),
- m_bg_tilemap_large(nullptr),
- m_video_off(0),
- m_fg_source(0),
- m_bg_source(0),
- m_m81_b_b_j3(*this, "JumperJ3"),
- m_m82_rowscroll(0),
- m_m82_tmcontrol(0)
- {
- m_scrollx[0] = m_scrollx[1] = 0;
- m_scrolly[0] = m_scrolly[1] = 0;
- }
-
- void m72_base(machine_config &config);
- void m72_audio_chips(machine_config &config);
- void m72_xmultipl(machine_config &config);
- void m72_dbreed(machine_config &config);
- void m72_dbreedw(machine_config &config);
- void cosmccop(machine_config &config);
- void poundfor(machine_config &config);
- void m72(machine_config &config);
- void m81_hharry(machine_config &config);
- void m81_xmultipl(machine_config &config);
- void kengo(machine_config &config);
- void m81_dbreed(machine_config &config);
- void m72_8751(machine_config &config);
- void m72_airduel(machine_config &config);
- void hharryu(machine_config &config);
- void rtype2(machine_config &config);
- void m82(machine_config &config);
- void rtype(machine_config &config);
- void imgfightb(machine_config &config);
- void lohtb(machine_config &config);
- void imgfight(machine_config &config);
- void mrheli(machine_config &config);
- void nspiritj(machine_config &config);
-
- void init_dkgenm72();
- void init_bchopper();
- void init_gallop();
- void init_m72_8751();
- void init_dbreedm72();
- void init_airduelm72();
- void init_nspirit();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<cpu_device> m_mcu;
- optional_device<mb8421_mb8431_16_device> m_dpram;
- optional_device<dac_byte_interface> m_dac;
- optional_device<m72_audio_device> m_audio;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram16_device> m_spriteram;
-
- required_shared_ptr_array<u16, 2> m_videoram;
- optional_shared_ptr<u16> m_m82_rowscrollram;
- optional_shared_ptr<u16> m_spriteram2;
- optional_shared_ptr<u8> m_soundram;
- required_shared_ptr_array<u16, 2> m_paletteram;
-
- optional_device<pic8259_device> m_upd71059c;
- optional_device_array<upd4701_device, 2> m_upd4701;
-
- optional_region_ptr<u8> m_samples_region;
-
- optional_ioport m_io_dsw;
-
- std::unique_ptr<u16[]> m_protection_ram;
- emu_timer *m_scanline_timer;
- const u8 *m_protection_code;
- const u8 *m_protection_crc;
- u32 m_raster_irq_position;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_bg_tilemap_large;
- s32 m_scrollx[2];
- s32 m_scrolly[2];
- s32 m_video_off;
-
- int m_fg_source;
- int m_bg_source;
- optional_ioport m_m81_b_b_j3;
-
- // majtitle specific
- int m_m82_rowscroll;
- u16 m_m82_tmcontrol;
-
- // m72_i8751 specific
- u8 m_mcu_sample_latch;
- u32 m_mcu_sample_addr;
-
- // common
- template<unsigned N> u16 palette_r(offs_t offset);
- template<unsigned N> void palette_w(offs_t offset, u16 data, u16 mem_mask);
- void videoram1_w(offs_t offset, u16 data, u16 mem_mask);
- void videoram2_w(offs_t offset, u16 data, u16 mem_mask);
- void irq_line_w(u16 data);
- template<unsigned N> void scrollx_w(offs_t offset, u16 data, u16 mem_mask);
- template<unsigned N> void scrolly_w(offs_t offset, u16 data, u16 mem_mask);
- void dmaon_w(u8 data);
- void port02_w(u8 data);
- u8 soundram_r(offs_t offset);
- void soundram_w(offs_t offset, u8 data);
-
- // m72_i8751 specific
- void main_mcu_w(offs_t offset, u16 data, u16 mem_mask);
- void mcu_data_w(offs_t offset, u8 data);
- u8 mcu_data_r(offs_t offset);
- u8 mcu_sample_r();
- void mcu_low_w(u8 data);
- void mcu_high_w(u8 data);
-
- u16 protection_r(offs_t offset, u16 mem_mask = ~0);
- void protection_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- // game specific
- void bchopper_sample_trigger_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void nspirit_sample_trigger_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void loht_sample_trigger_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void dbreedm72_sample_trigger_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void airduelm72_sample_trigger_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void dkgenm72_sample_trigger_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void gallop_sample_trigger_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void rtype2_port02_w(u8 data);
- void poundfor_port02_w(u8 data);
- void m82_gfx_ctrl_w(offs_t offset, u16 data, u16 mem_mask);
- void m82_tm_ctrl_w(offs_t offset, u16 data, u16 mem_mask);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- template<unsigned N> TILE_GET_INFO_MEMBER(rtype2_get_tile_info);
-
- TILEMAP_MAPPER_MEMBER(m82_scan_rows);
-
- void machine_start() override;
- void machine_reset() override;
- DECLARE_VIDEO_START(m72);
- DECLARE_VIDEO_START(imgfight);
- DECLARE_VIDEO_START(mrheli);
- DECLARE_VIDEO_START(nspiritj);
- DECLARE_VIDEO_START(xmultipl);
- DECLARE_VIDEO_START(hharry);
- DECLARE_VIDEO_START(rtype2);
- DECLARE_VIDEO_START(m82);
- DECLARE_VIDEO_START(hharryu);
- DECLARE_VIDEO_START(poundfor);
- DECLARE_MACHINE_START(kengo);
- DECLARE_MACHINE_RESET(kengo);
-
- INTERRUPT_GEN_MEMBER(fake_nmi);
- TIMER_CALLBACK_MEMBER(synch_callback);
- TIMER_CALLBACK_MEMBER(scanline_interrupt);
- TIMER_CALLBACK_MEMBER(kengo_scanline_interrupt);
- TIMER_CALLBACK_MEMBER(delayed_ram16_w);
- TIMER_CALLBACK_MEMBER(delayed_ram8_w);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_m81(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_m82(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline void m72_m81_get_tile_info(tile_data &tileinfo,int tile_index,const u16 *vram,int gfxnum);
- void register_savestate();
- inline void changecolor(offs_t color, u8 r, u8 g, u8 b);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void majtitle_draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void copy_le(u16 *dest, const u8 *src, u8 bytes);
- void install_protection_handler(const u8 *code,const u8 *crc);
-
- void dbreed_map(address_map &map);
- void dbreedm72_map(address_map &map);
- void dbreedwm72_map(address_map &map);
- void hharry_map(address_map &map);
- void hharryu_map(address_map &map);
- void kengo_map(address_map &map);
- void lohtb_map(address_map &map);
- void lohtb_portmap(address_map &map);
- void m72_cpu1_common_map(address_map &map);
- void m72_map(address_map &map);
- void m72_protected_map(address_map &map);
- void m72_portmap(address_map &map);
- void m72_protected_portmap(address_map &map);
- void m72_airduel_portmap(address_map &map);
- void m81_cpu1_common_map(address_map &map);
- void m81_portmap(address_map &map);
- void m82_map(address_map &map);
- void m82_portmap(address_map &map);
- void m84_cpu1_common_map(address_map &map);
- void m84_portmap(address_map &map);
- void m84_v33_portmap(address_map &map);
- void i80c31_mem_map(address_map &map);
- void mcu_io_map(address_map &map);
- void poundfor_portmap(address_map &map);
- void poundfor_sound_portmap(address_map &map);
- void rtype2_map(address_map &map);
- void rtype2_sound_portmap(address_map &map);
- void rtype_map(address_map &map);
- void rtype_sound_portmap(address_map &map);
- void sound_portmap(address_map &map);
- void sound_protected_portmap(address_map &map);
- void sound_ram_map(address_map &map);
- void sound_rom_map(address_map &map);
- void xmultipl_map(address_map &map);
- void xmultiplm72_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_M72_H
diff --git a/src/mame/includes/m79amb.h b/src/mame/includes/m79amb.h
deleted file mode 100644
index 79579cf7510..00000000000
--- a/src/mame/includes/m79amb.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Al Kossow
-#ifndef MAME_INCLUDES_M79AMB_H
-#define MAME_INCLUDES_M79AMB_H
-
-#pragma once
-
-#include "sound/discrete.h"
-
-class m79amb_state : public driver_device
-{
-public:
- m79amb_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_mask(*this, "mask"),
- m_discrete(*this, "discrete"),
- m_maincpu(*this, "maincpu"),
- m_self_test(*this, "SELF_TEST")
- { }
-
- void m79amb(machine_config &config);
-
- void init_m79amb();
-
-private:
- void ramtek_videoram_w(offs_t offset, uint8_t data);
- uint8_t gray5bit_controller0_r();
- uint8_t gray5bit_controller1_r();
- void m79amb_8000_w(uint8_t data);
- void m79amb_8002_w(uint8_t data);
- void m79amb_8003_w(uint8_t data);
-
- INTERRUPT_GEN_MEMBER(m79amb_interrupt);
-
- void machine_start() override;
-
- uint32_t screen_update_ramtek(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_mask;
- required_device<discrete_device> m_discrete;
- required_device<cpu_device> m_maincpu;
-
- output_finder<> m_self_test;
-
- /* misc */
- uint8_t m_lut_gun1[0x100];
- uint8_t m_lut_gun2[0x100];
-};
-
-/*----------- defined in audio/m79amb.c -----------*/
-
-DISCRETE_SOUND_EXTERN( m79amb_discrete );
-
-#endif // MAME_INCLUDES_M79AMB_H
diff --git a/src/mame/includes/m90.h b/src/mame/includes/m90.h
deleted file mode 100644
index 5f207e62d40..00000000000
--- a/src/mame/includes/m90.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_M90_H
-#define MAME_INCLUDES_M90_H
-
-#pragma once
-
-#include "audio/m72.h"
-#include "cpu/nec/v25.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class m90_state : public driver_device
-{
-public:
- m90_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_video_control_data(*this, "video_control")
- , m_video_data(*this, "video_data")
- , m_spriteram(*this, "spriteram")
- , m_mainbank(*this, "mainbank")
- , m_maincpu(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_audio(*this, "m72")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- { }
-
- void m90(machine_config &config);
- void bbmanw(machine_config &config);
- void hasamu(machine_config &config);
- void bombrman(machine_config &config);
- void riskchal(machine_config &config);
- void bomblord(machine_config &config);
- void bbmanwj(machine_config &config);
- void dynablsb(machine_config &config);
- void matchit2(machine_config &config);
- void quizf1(machine_config &config);
-
- void init_bomblord();
- void init_quizf1();
-
-private:
- required_shared_ptr<uint16_t> m_video_control_data;
- required_shared_ptr<uint16_t> m_video_data;
- optional_shared_ptr<uint16_t> m_spriteram;
-
- optional_memory_bank m_mainbank;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<m72_audio_device> m_audio;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- tilemap_t *m_pf_layer[2][2];
- uint8_t m_last_pf[2];
- void coincounter_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void quizf1_bankswitch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void m90_video_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bootleg_video_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void video_start() override;
- void common_tilemap_init();
- DECLARE_VIDEO_START(bomblord);
- DECLARE_VIDEO_START(dynablsb);
- uint32_t screen_update_m90(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_bomblord(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_dynablsb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(fake_nmi);
- INTERRUPT_GEN_MEMBER(bomblord_fake_nmi);
- DECLARE_WRITE_LINE_MEMBER(dynablsb_vblank_int_w);
- DECLARE_WRITE_LINE_MEMBER(bomblord_vblank_int_w);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
- void bomblord_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
- void dynablsb_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
- void bomblord_main_cpu_map(address_map &map);
- void dynablsb_main_cpu_io_map(address_map &map);
- void dynablsb_main_cpu_map(address_map &map);
- void dynablsb_sound_cpu_io_map(address_map &map);
- void m90_main_cpu_io_map(address_map &map);
- void m90_main_cpu_map(address_map &map);
- void m90_sound_cpu_io_map(address_map &map);
- void m90_sound_cpu_map(address_map &map);
- void m99_sound_cpu_io_map(address_map &map);
- void quizf1_main_cpu_io_map(address_map &map);
- void quizf1_main_cpu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_M90_H
diff --git a/src/mame/includes/m92.h b/src/mame/includes/m92.h
deleted file mode 100644
index 8967f58df2a..00000000000
--- a/src/mame/includes/m92.h
+++ /dev/null
@@ -1,136 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Irem M92 hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_M92_H
-#define MAME_INCLUDES_M92_H
-
-#pragma once
-
-#include "cpu/nec/v25.h"
-#include "machine/pic8259.h"
-#include "machine/timer.h"
-#include "sound/okim6295.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-struct M92_pf_layer_info
-{
- tilemap_t * tmap;
- tilemap_t * wide_tmap;
- uint16_t vram_base;
- uint16_t control[4];
-};
-
-class m92_state : public driver_device
-{
-public:
- enum
- {
- TIMER_SPRITEBUFFER
- };
-
- m92_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_vram_data(*this, "vram_data"),
- m_spritecontrol(*this, "spritecontrol"),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_upd71059c(*this, "upd71059c"),
- m_mainbank(*this, "mainbank")
- { }
-
- void m92(machine_config &config);
- void m92_banked(machine_config &config);
- void inthunt(machine_config &config);
- void lethalth(machine_config &config);
- void ppan(machine_config &config);
- void hook(machine_config &config);
- void psoldier(machine_config &config);
- void rtypeleo(machine_config &config);
- void gunforc2(machine_config &config);
- void nbbatman2bl(machine_config &config);
- void bmaster(machine_config &config);
- void nbbatman(machine_config &config);
- void uccops(machine_config &config);
- void dsoccr94j(machine_config &config);
- void gunforce(machine_config &config);
- void majtitl2(machine_config &config);
- void majtitl2a(machine_config &config);
- void mysticri(machine_config &config);
-
- void init_bank();
-
- DECLARE_READ_LINE_MEMBER(sprite_busy_r);
-
-private:
- required_device<buffered_spriteram16_device> m_spriteram;
- required_shared_ptr<uint16_t> m_vram_data;
- required_shared_ptr<uint16_t> m_spritecontrol;
- required_device<cpu_device> m_maincpu;
- optional_device<v35_device> m_soundcpu;
- optional_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<pic8259_device> m_upd71059c;
-
- optional_memory_bank m_mainbank;
-
- emu_timer *m_spritebuffer_timer;
- uint32_t m_raster_irq_position;
- uint16_t m_videocontrol;
- uint8_t m_sprite_buffer_busy;
- M92_pf_layer_info m_pf_layer[3];
- uint16_t m_pf_master_control[4];
- int32_t m_sprite_list;
- uint8_t m_palette_bank;
- std::vector<uint16_t> m_paletteram;
-
- void coincounter_w(uint8_t data);
- void bankswitch_w(uint8_t data);
- void sound_reset_w(uint16_t data);
- void spritecontrol_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void videocontrol_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t paletteram_r(offs_t offset);
- void paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- template<int Layer> void pf_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void master_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void oki_bank_w(uint16_t data);
- TILE_GET_INFO_MEMBER(get_pf_tile_info);
- DECLARE_MACHINE_RESET(m92);
- DECLARE_VIDEO_START(m92);
- DECLARE_VIDEO_START(ppan);
- uint32_t screen_update_m92(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ppan(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_interrupt);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void ppan_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void m92_update_scroll_positions();
- void m92_draw_tiles(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- void lethalth_map(address_map &map);
- void m92_map(address_map &map);
- void m92_banked_map(address_map &map);
- void m92_banked_portmap(address_map &map);
- void m92_base_map(address_map &map);
- void m92_portmap(address_map &map);
- void majtitl2_map(address_map &map);
- void ppan_portmap(address_map &map);
- void sound_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_M92_H
diff --git a/src/mame/includes/mac.h b/src/mame/includes/mac.h
deleted file mode 100644
index 05dd48a6f5f..00000000000
--- a/src/mame/includes/mac.h
+++ /dev/null
@@ -1,391 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nathan Woods, Raphael Nabet, R. Belmont
-/*****************************************************************************
- *
- * includes/mac.h
- *
- * Macintosh driver declarations
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_MAC_H
-#define MAME_INCLUDES_MAC_H
-
-#pragma once
-
-#include "machine/8530scc.h"
-#include "machine/6522via.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "machine/egret.h"
-#include "machine/cuda.h"
-#include "machine/macadb.h"
-#include "bus/nubus/nubus.h"
-#include "bus/macpds/macpds.h"
-#include "machine/applefdintf.h"
-#include "machine/ncr5380.h"
-#include "machine/macrtc.h"
-#include "sound/asc.h"
-#include "sound/dac.h"
-#include "cpu/m68000/m68000.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define MAC_SCREEN_NAME "screen"
-
-// model helpers
-#define ADB_IS_BITBANG_CLASS ((m_model >= MODEL_MAC_II && m_model <= MODEL_MAC_IICI) || (m_model == MODEL_MAC_SE30))
-#define ADB_IS_EGRET (m_model >= MODEL_MAC_LC && m_model <= MODEL_MAC_CLASSIC_II) || ((m_model >= MODEL_MAC_IISI) && (m_model <= MODEL_MAC_IIVI))
-#define ADB_IS_CUDA ((m_model >= MODEL_MAC_COLOR_CLASSIC && m_model <= MODEL_MAC_LC_580) || ((m_model >= MODEL_MAC_QUADRA_660AV) && (m_model <= MODEL_MAC_QUADRA_630)))
-
-// video parameters for classic Macs
-#define MAC_H_VIS (512)
-#define MAC_V_VIS (342)
-#define MAC_H_TOTAL (704) // (512+192)
-#define MAC_V_TOTAL (370) // (342+28)
-
-// Mac driver data
-
-class mac_state:public driver_device
-{
-public:
- mac_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_via1(*this, "via6522_0"),
- m_via2(*this, "via6522_1"),
- m_asc(*this, "asc"),
- m_egret(*this, EGRET_TAG),
- m_cuda(*this, CUDA_TAG),
- m_macadb(*this, "macadb"),
- m_ram(*this, RAM_TAG),
- m_scc(*this, "scc"),
- m_ncr5380(*this, "ncr5380"),
- m_fdc(*this, "fdc"),
- m_floppy(*this, "fdc:%d", 0U),
- m_rtc(*this, "rtc"),
- m_montype(*this, "MONTYPE"),
- m_main_buffer(true),
- m_vram(*this,"vram"),
- m_vram16(*this,"vram16"),
- m_vram64(*this,"vram64"),
- m_via2_ca1_hack(0),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- {
- m_rom_size = 0;
- m_rom_ptr = nullptr;
- m_cur_floppy = nullptr;
- }
-
- void add_scsi(machine_config &config, bool cdrom = false);
- void add_base_devices(machine_config &config, bool rtc = true, int woz_version = 0);
- void add_asc(machine_config &config, asc_device::asc_type type = asc_device::asc_type::ASC);
- void add_nubus(machine_config &config, bool bank1 = true, bool bank2 = true);
- template <typename T> void add_nubus_pds(machine_config &config, const char *slot_tag, T &&opts);
- void add_via1_adb(machine_config &config, bool macii);
- void add_via2(machine_config &config);
- void add_egret(machine_config &config, int type);
- void add_cuda(machine_config &config, int type);
-
- void maclc(machine_config &config, bool cpu = true, bool egret = true, asc_device::asc_type asc_type = asc_device::asc_type::V8, int woz_version = 1);
- void maciisi(machine_config &config);
- void maclc2(machine_config &config, bool egret = true, int woz_version = 1);
- void maclc3(machine_config &config, bool egret = true);
- void macpd210(machine_config &config);
- void maciici(machine_config &config);
- void maciix(machine_config &config, bool nubus_bank1 = true, bool nubus_bank2 = true);
- void maclc520(machine_config &config);
- void maciivx(machine_config &config);
- void maccclas(machine_config &config);
- void maciivi(machine_config &config);
- void maciicx(machine_config &config);
- void macse30(machine_config &config);
- void maciifx(machine_config &config);
- void macclas2(machine_config &config);
- void macii(machine_config &config, bool cpu = true, asc_device::asc_type asc_type = asc_device::asc_type::ASC,
- bool nubus = true, bool nubus_bank1 = true, bool nubus_bank2 = true, int woz_version = 0);
- void maciihmu(machine_config &config);
- void maciihd(machine_config &config);
-
- void init_maclc2();
- void init_maciifdhd();
- void init_macse30();
- void init_maciivx();
- void init_maciivi();
- void init_macii();
- void init_macclassic2();
- void init_maciifx();
- void init_maclc();
- void init_maclc520();
- void init_maciici();
- void init_maciix();
- void init_maclrcclassic();
- void init_maciisi();
- void init_maciicx();
- void init_maclc3();
- void init_maclc3plus();
-
- /* tells which model is being emulated (set by macxxx_init) */
- enum model_t
- {
- MODEL_MAC_II, // Mac II class 68020/030 machines
- MODEL_MAC_II_FDHD,
- MODEL_MAC_IIX,
- MODEL_MAC_IICX,
- MODEL_MAC_IICI,
- MODEL_MAC_IISI,
- MODEL_MAC_IIVX,
- MODEL_MAC_IIVI,
- MODEL_MAC_IIFX,
- MODEL_MAC_SE30,
-
- MODEL_MAC_LC, // LC class 68030 machines, generally using a V8 or compatible gate array
- MODEL_MAC_LC_II,
- MODEL_MAC_LC_III,
- MODEL_MAC_LC_III_PLUS,
- MODEL_MAC_CLASSIC_II,
- MODEL_MAC_COLOR_CLASSIC,
-
- MODEL_MAC_LC_475, // LC III clones with Cuda instead of Egret and 68LC040 on most models
- MODEL_MAC_LC_520,
- MODEL_MAC_LC_550,
- MODEL_MAC_TV,
- MODEL_MAC_LC_575,
- MODEL_MAC_LC_580,
-
- MODEL_MAC_PB140, // 68030 PowerBooks. 140/145/145B/170 all have the same machine ID
- MODEL_MAC_PB160, // 160/180/165 all have the same machine ID too
- MODEL_MAC_PB165c,
- MODEL_MAC_PB180c,
- MODEL_MAC_PB150, // 150 is fairly radically different from the other 1x0s
-
- MODEL_MAC_PBDUO_210, // 68030 PowerBook Duos
- MODEL_MAC_PBDUO_230,
- MODEL_MAC_PBDUO_250,
- MODEL_MAC_PBDUO_270c,
-
- MODEL_MAC_QUADRA_700, // 68(LC)040 desktops
- MODEL_MAC_QUADRA_610,
- MODEL_MAC_QUADRA_650,
- MODEL_MAC_QUADRA_800,
- MODEL_MAC_QUADRA_900,
- MODEL_MAC_QUADRA_950,
- MODEL_MAC_QUADRA_660AV,
- MODEL_MAC_QUADRA_840AV,
- MODEL_MAC_QUADRA_605,
- MODEL_MAC_QUADRA_630,
-
- MODEL_MAC_PB550c, // 68(LC)040 PowerBooks
- MODEL_MAC_PB520,
- MODEL_MAC_PB520c,
- MODEL_MAC_PB540,
- MODEL_MAC_PB540c,
- MODEL_MAC_PB190,
- MODEL_MAC_PB190cs,
- };
-
- model_t m_model;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<via6522_device> m_via1;
- optional_device<via6522_device> m_via2;
- optional_device<asc_device> m_asc;
- optional_device<egret_device> m_egret;
- optional_device<cuda_device> m_cuda;
- optional_device<macadb_device> m_macadb;
- required_device<ram_device> m_ram;
- required_device<scc8530_legacy_device> m_scc;
- optional_device<ncr5380_device> m_ncr5380;
- required_device<applefdintf_device> m_fdc;
- required_device_array<floppy_connector, 2> m_floppy;
- optional_device<rtc3430042_device> m_rtc;
-
- //required_ioport m_mouse0, m_mouse1, m_mouse2;
- //optional_ioport_array<7> m_keys;
- optional_ioport m_montype;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- enum
- {
- RBV_TYPE_RBV = 0,
- RBV_TYPE_V8,
- RBV_TYPE_SONORA,
- RBV_TYPE_DAFB
- };
-
-
- uint32_t m_overlay;
-
- uint32_t m_via2_vbl;
- uint32_t m_se30_vbl_enable;
- uint8_t m_nubus_irq_state;
-
- emu_timer *m_overlay_timeout;
- TIMER_CALLBACK_MEMBER(overlay_timeout_func);
- uint32_t rom_switch_r(offs_t offset);
-
- bool m_main_buffer;
- int m_adb_irq_pending;
- int m_screen_buffer;
- int irq_count, ca1_data, ca2_data;
-
- // 60.15 Hz timer for RBV/V8/Sonora/Eagle/VASP/etc.
- emu_timer *m_6015_timer;
-
- // ADB refresh timer, independent of anything else going on
- emu_timer *m_adbupdate_timer;
-
- WRITE_LINE_MEMBER(adb_irq_w) { m_adb_irq_pending = state; }
-
- // RBV and friends (V8, etc)
- uint8_t m_rbv_regs[256], m_rbv_ier, m_rbv_ifr, m_rbv_type, m_rbv_montype, m_rbv_vbltime;
- uint32_t m_rbv_colors[3], m_rbv_count, m_rbv_clutoffs, m_rbv_immed10wr;
- uint32_t m_rbv_palette[256];
- uint8_t m_sonora_vctl[8];
- emu_timer *m_vbl_timer, *m_cursor_timer;
- uint16_t m_cursor_line;
-
- // this is shared among all video setups with vram
- optional_shared_ptr<uint32_t> m_vram;
- optional_shared_ptr<uint16_t> m_vram16;
- optional_shared_ptr<uint64_t> m_vram64;
-
- // interrupts
- int m_scc_interrupt, m_via_interrupt, m_via2_interrupt, m_scsi_interrupt, m_asc_interrupt, m_last_taken_interrupt;
-
- // defined in machine/mac.c
- void v8_resize();
- void set_memory_overlay(int overlay);
- void scc_mouse_irq( int x, int y );
- void nubus_slot_interrupt(uint8_t slot, uint32_t state);
- DECLARE_WRITE_LINE_MEMBER(set_scc_interrupt);
- void set_via_interrupt(int value);
- void set_via2_interrupt(int value);
- void field_interrupts();
- void vblank_irq();
- void rbv_recalc_irqs();
- void update_volume();
-
- void mac_via_sync();
- uint16_t mac_via_r(offs_t offset);
- void mac_via_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mac_via2_r(offs_t offset);
- void mac_via2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mac_autovector_r(offs_t offset);
- void mac_autovector_w(offs_t offset, uint16_t data);
- uint16_t mac_iwm_r(offs_t offset, uint16_t mem_mask = ~0);
- void mac_iwm_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mac_scc_r(offs_t offset);
- void mac_scc_w(offs_t offset, uint16_t data);
- void mac_scc_2_w(offs_t offset, uint16_t data);
- uint16_t macplus_scsi_r(offs_t offset, uint16_t mem_mask = ~0);
- void macplus_scsi_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void macii_scsi_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint32_t macii_scsi_drq_r(offs_t offset, uint32_t mem_mask = ~0);
- void macii_scsi_drq_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t rbv_ramdac_r();
- void rbv_ramdac_w(offs_t offset, uint32_t data);
- void ariel_ramdac_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint8_t mac_sonora_vctl_r(offs_t offset);
- void mac_sonora_vctl_w(offs_t offset, uint8_t data);
- uint8_t mac_rbv_r(offs_t offset);
- void mac_rbv_w(offs_t offset, uint8_t data);
-
- uint32_t mac_read_id();
-
- uint16_t mac_config_r();
-
- uint32_t biu_r(offs_t offset, uint32_t mem_mask = ~0);
- void biu_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint8_t oss_r(offs_t offset);
- void oss_w(offs_t offset, uint8_t data);
- uint32_t buserror_r();
- uint8_t swimiop_r(offs_t offset);
- void swimiop_w(offs_t offset, uint8_t data);
- uint8_t scciop_r(offs_t offset);
- void scciop_w(offs_t offset, uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(nubus_irq_9_w);
- DECLARE_WRITE_LINE_MEMBER(nubus_irq_a_w);
- DECLARE_WRITE_LINE_MEMBER(nubus_irq_b_w);
- DECLARE_WRITE_LINE_MEMBER(nubus_irq_c_w);
- DECLARE_WRITE_LINE_MEMBER(nubus_irq_d_w);
- DECLARE_WRITE_LINE_MEMBER(nubus_irq_e_w);
-
- DECLARE_WRITE_LINE_MEMBER(cuda_reset_w);
-
- DECLARE_WRITE_LINE_MEMBER(mac_scsi_irq);
- DECLARE_WRITE_LINE_MEMBER(mac_asc_irq);
-
- void macii_map(address_map &map);
- void maciici_map(address_map &map);
- void maciifx_map(address_map &map);
- void maclc3_map(address_map &map);
- void maclc_map(address_map &map);
- void macse30_map(address_map &map);
- void pwrmac_map(address_map &map);
-
- uint8_t m_oss_regs[0x400];
-
- int m_via2_ca1_hack;
- optional_device<screen_device> m_screen;
- optional_device<palette_device> m_palette;
-
- uint32_t m_rom_size;
- uint32_t *m_rom_ptr;
-
- emu_timer *m_scanline_timer;
-
- floppy_image_device *m_cur_floppy;
-
- uint8_t m_pm_req, m_pm_state, m_pm_dptr, m_pm_cmd;
-
- void phases_w(uint8_t phases);
- void sel35_w(int sel35);
- void devsel_w(uint8_t devsel);
- void hdsel_w(int hdsel);
-
- DECLARE_VIDEO_START(mac);
- DECLARE_VIDEO_START(macsonora);
- DECLARE_VIDEO_RESET(macrbv);
- DECLARE_VIDEO_START(macv8);
- DECLARE_VIDEO_RESET(macsonora);
- DECLARE_VIDEO_RESET(maceagle);
- DECLARE_VIDEO_START(macrbv);
- uint32_t screen_update_macse30(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_macrbv(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_macrbvvram(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_macv8(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_macsonora(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(mac_rbv_vbl);
- TIMER_CALLBACK_MEMBER(mac_6015_tick);
- TIMER_CALLBACK_MEMBER(mac_adbrefresh_tick);
- TIMER_CALLBACK_MEMBER(mac_scanline_tick);
- DECLARE_WRITE_LINE_MEMBER(mac_adb_via_out_cb2);
- uint8_t mac_via_in_a();
- uint8_t mac_via_in_b();
- uint8_t mac_via_in_b_ii();
- void mac_via_out_a(uint8_t data);
- void mac_via_out_b(uint8_t data);
- void mac_via_out_b_bbadb(uint8_t data);
- void mac_via_out_b_egadb(uint8_t data);
- void mac_via_out_b_cdadb(uint8_t data);
- uint8_t mac_via2_in_a();
- uint8_t mac_via2_in_b();
- void mac_via2_out_a(uint8_t data);
- void mac_via2_out_b(uint8_t data);
- void mac_state_load();
- DECLARE_WRITE_LINE_MEMBER(mac_via_irq);
- DECLARE_WRITE_LINE_MEMBER(mac_via2_irq);
- void set_scc_waitrequest(int waitrequest);
- void mac_driver_init(model_t model);
- void mac_install_memory(offs_t memory_begin, offs_t memory_end, offs_t memory_size, void *memory_data, int is_rom);
- offs_t mac_dasm_override(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const util::disasm_interface::data_buffer &params);
-};
-
-#endif // MAME_INCLUDES_MAC_H
diff --git a/src/mame/includes/macpci.h b/src/mame/includes/macpci.h
deleted file mode 100644
index bc7e6e53293..00000000000
--- a/src/mame/includes/macpci.h
+++ /dev/null
@@ -1,169 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont
-/*****************************************************************************
- *
- * includes/macpci.h
- *
- * PCI-based Power Macintosh driver declarations
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_MACPCI_H
-#define MAME_INCLUDES_MACPCI_H
-
-#include "machine/8530scc.h"
-#include "machine/6522via.h"
-#include "machine/ram.h"
-#include "machine/cuda.h"
-#include "machine/ncr539x.h"
-#include "sound/awacs.h"
-
-#define C7M (7833600)
-#define C15M (C7M*2)
-
-#define MAC_SCREEN_NAME "screen"
-#define MAC_539X_1_TAG "539x_1"
-#define MAC_539X_2_TAG "539x_2"
-
-/* Mac driver data */
-
-class macpci_state : public driver_device
-{
-public:
- macpci_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_via1(*this, "via6522_0"),
- m_awacs(*this, "awacs"),
- m_cuda(*this, CUDA_TAG),
- m_ram(*this, RAM_TAG),
- m_scc(*this, "scc"),
- m_539x_1(*this, MAC_539X_1_TAG),
- m_539x_2(*this, MAC_539X_2_TAG)
- { }
-
- void pippin(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<via6522_device> m_via1;
- optional_device<awacs_device> m_awacs;
- required_device<cuda_device> m_cuda;
- required_device<ram_device> m_ram;
- optional_device<scc8530_legacy_device> m_scc;
- optional_device<ncr539x_device> m_539x_1;
- optional_device<ncr539x_device> m_539x_2;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- /* tells which model is being emulated (set by macxxx_init) */
- enum model_t
- {
- PCIMODEL_MAC_PM5200,
- PCIMODEL_MAC_PM6200,
- PCIMODEL_MAC_PM5300,
- PCIMODEL_MAC_PM7200,
- PCIMODEL_MAC_PM7500,
- PCIMODEL_MAC_PM8500,
- PCIMODEL_MAC_PM9500,
- PCIMODEL_MAC_PM7215,
- PCIMODEL_MAC_PM5260,
- PCIMODEL_MAC_PM5400,
- PCIMODEL_MAC_PM7600,
- PCIMODEL_MAC_PM8200,
- PCIMODEL_MAC_PM6300,
- PCIMODEL_MAC_PM6400,
- PCIMODEL_MAC_PM4400,
- PCIMODEL_MAC_PM5500,
- PCIMODEL_MAC_PM7220,
- PCIMODEL_MAC_PM7300,
- PCIMODEL_MAC_PM6500,
- PCIMODEL_MAC_PM8600,
- PCIMODEL_MAC_PM9600,
-
- PCIMODEL_MAC_20TH,
-
- PCIMODEL_MAC_G3_GOSSAMER,
- PCIMODEL_MAC_G3_ALLINONE,
-
- PCIMODEL_MAC_PB5x0PPC,
- PCIMODEL_MAC_PB1400,
- PCIMODEL_MAC_PB2300,
- PCIMODEL_MAC_PB2400,
- PCIMODEL_MAC_PB3400,
- PCIMODEL_MAC_PB5300,
-
- PCIMODEL_MAC_PBG3KANGA,
- PCIMODEL_MAC_PBG3WALLST1,
- PCIMODEL_MAC_PBG3WALLST2,
-
- PCIMODEL_MAC_PIPPIN // Apple/Bandai Pippin
-
- };
-
- model_t m_model;
-
- // 60.15 Hz timer for RBV/V8/Sonora/Eagle/VASP/etc.
- emu_timer *m_6015_timer;
-
- // RBV and friends (V8, etc)
- uint8_t m_rbv_regs[256], m_rbv_ier, m_rbv_ifr, m_rbv_type, m_rbv_montype, m_rbv_vbltime;
- uint32_t m_rbv_colors[3], m_rbv_count, m_rbv_clutoffs, m_rbv_immed10wr;
- uint32_t m_rbv_palette[256];
- uint8_t m_sonora_vctl[8];
- emu_timer *m_vbl_timer, *m_cursor_timer;
- uint16_t m_cursor_line;
- uint16_t m_dafb_int_status;
- int m_dafb_scsi1_drq, m_dafb_scsi2_drq;
- uint8_t m_dafb_mode;
- uint32_t m_dafb_base, m_dafb_stride;
-
- // this is shared among all video setups with vram
- uint32_t *m_vram;
-
- uint16_t mac_via_r(offs_t offset);
- void mac_via_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mac_scc_r(offs_t offset);
- void mac_scc_w(offs_t offset, uint16_t data);
- void mac_scc_2_w(offs_t offset, uint16_t data);
-
- uint32_t mac_read_id();
-
- uint8_t mac_5396_r(offs_t offset);
- void mac_5396_w(offs_t offset, uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(irq_539x_1_w);
- DECLARE_WRITE_LINE_MEMBER(drq_539x_1_w);
-
- DECLARE_WRITE_LINE_MEMBER(cuda_reset_w);
- DECLARE_WRITE_LINE_MEMBER(cuda_adb_linechange_w);
-
- // hack functions
- uint64_t unk1_r();
- uint64_t unk2_r(offs_t offset, uint64_t mem_mask = ~0);
-
- void init_pippin();
- void pippin_mem(address_map &map);
- void cdmcu_mem(address_map &map);
- void cdmcu_data(address_map &map);
- // wait states for accessing the VIA
- int m_via_cycles;
-
- // hack
- uint16_t m_unk1_test;
-
- emu_timer *m_scanline_timer;
- uint32_t screen_update_pippin(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(mac_6015_tick);
- uint8_t mac_via_in_a();
- uint8_t mac_via_in_b();
- void mac_via_out_a(uint8_t data);
- void mac_via_out_b(uint8_t data);
- DECLARE_READ_LINE_MEMBER(mac_adb_via_in_cb2);
- DECLARE_WRITE_LINE_MEMBER(mac_adb_via_out_cb2);
- DECLARE_WRITE_LINE_MEMBER(mac_via_irq);
- void mac_driver_init(model_t model);
-};
-
-#endif // MAME_INCLUDES_MACPCI_H
diff --git a/src/mame/includes/macrossp.h b/src/mame/includes/macrossp.h
deleted file mode 100644
index af3348602de..00000000000
--- a/src/mame/includes/macrossp.h
+++ /dev/null
@@ -1,122 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-
-/*************************************************************************
-
- Macross Plus
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MACROSSP_H
-#define MAME_INCLUDES_MACROSSP_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class macrossp_state : public driver_device
-{
-public:
- macrossp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_scra_videoram(*this, "scra_videoram"),
- m_scra_linezoom(*this, "scra_linezoom"),
- m_scra_videoregs(*this, "scra_videoregs"),
-
- m_scrb_videoram(*this, "scrb_videoram"),
- m_scrb_linezoom(*this, "scrb_linezoom"),
- m_scrb_videoregs(*this, "scrb_videoregs"),
-
- m_scrc_videoram(*this, "scrc_videoram"),
- m_scrc_linezoom(*this, "scrc_linezoom"),
- m_scrc_videoregs(*this, "scrc_videoregs"),
-
- m_text_videoram(*this, "text_videoram"),
- m_text_linezoom(*this, "text_linezoom"),
- m_text_videoregs(*this, "text_videoregs"),
-
- m_mainram(*this, "mainram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- {
- }
-
- void quizmoon(machine_config &config);
- void macrossp(machine_config &config);
-
- void init_quizmoon();
- void init_macrossp();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint32_t> m_spriteram;
- required_shared_ptr<uint32_t> m_scra_videoram;
- required_shared_ptr<uint32_t> m_scra_linezoom;
- required_shared_ptr<uint32_t> m_scra_videoregs;
- required_shared_ptr<uint32_t> m_scrb_videoram;
- required_shared_ptr<uint32_t> m_scrb_linezoom;
- required_shared_ptr<uint32_t> m_scrb_videoregs;
- required_shared_ptr<uint32_t> m_scrc_videoram;
- required_shared_ptr<uint32_t> m_scrc_linezoom;
- required_shared_ptr<uint32_t> m_scrc_videoregs;
- required_shared_ptr<uint32_t> m_text_videoram;
- required_shared_ptr<uint32_t> m_text_linezoom;
- required_shared_ptr<uint32_t> m_text_videoregs;
- required_shared_ptr<uint32_t> m_mainram;
- std::unique_ptr<uint32_t[]> m_spriteram_old;
- std::unique_ptr<uint32_t[]> m_spriteram_old2;
-
- /* video-related */
- tilemap_t *m_scra_tilemap;
- tilemap_t *m_scrb_tilemap;
- tilemap_t *m_scrc_tilemap;
- tilemap_t *m_text_tilemap;
-
- /* misc */
- int m_sndpending;
- int m_snd_toggle;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_16_device> m_soundlatch;
-
- uint32_t macrossp_soundstatus_r();
- void macrossp_soundcmd_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint16_t macrossp_soundcmd_r();
- void palette_fade_w(uint16_t data);
- void macrossp_speedup_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void macrossp_scra_videoram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void macrossp_scrb_videoram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void macrossp_scrc_videoram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void macrossp_text_videoram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_macrossp_scra_tile_info);
- TILE_GET_INFO_MEMBER(get_macrossp_scrb_tile_info);
- TILE_GET_INFO_MEMBER(get_macrossp_scrc_tile_info);
- TILE_GET_INFO_MEMBER(get_macrossp_text_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_macrossp(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_macrossp);
- void draw_sprites(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer, int linem, int pri);
- DECLARE_WRITE_LINE_MEMBER(irqhandler);
-
- void macrossp_map(address_map &map);
- void macrossp_es5506_bank1_map(address_map &map);
- void macrossp_es5506_bank3_map(address_map &map);
- void macrossp_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MACROSSP_H
diff --git a/src/mame/includes/madalien.h b/src/mame/includes/madalien.h
deleted file mode 100644
index ec1243d6ccf..00000000000
--- a/src/mame/includes/madalien.h
+++ /dev/null
@@ -1,112 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Norbert Kehrer
-/***************************************************************************
-
- Mad Alien (c) 1980 Data East Corporation
-
- Original driver by Norbert Kehrer (February 2004)
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_MADALIEN_H
-#define MAME_INCLUDES_MADALIEN_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-#define MADALIEN_MAIN_CLOCK XTAL(10'595'000)
-
-
-class madalien_state : public driver_device
-{
-public:
- madalien_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_charram(*this, "charram"),
- m_video_control(*this, "video_control"),
- m_shift_hi(*this, "shift_hi"),
- m_shift_lo(*this, "shift_lo"),
- m_video_flags(*this, "video_flags"),
- m_headlight_pos(*this, "headlight_pos"),
- m_edge1_pos(*this, "edge1_pos"),
- m_edge2_pos(*this, "edge2_pos"),
- m_scroll(*this, "scroll"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2")
- { }
-
- void madalien(machine_config &config);
- void madalien_video(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_charram;
- required_shared_ptr<uint8_t> m_video_control;
- required_shared_ptr<uint8_t> m_shift_hi;
- required_shared_ptr<uint8_t> m_shift_lo;
- required_shared_ptr<uint8_t> m_video_flags;
- required_shared_ptr<uint8_t> m_headlight_pos;
- required_shared_ptr<uint8_t> m_edge1_pos;
- required_shared_ptr<uint8_t> m_edge2_pos;
- required_shared_ptr<uint8_t> m_scroll;
-
- tilemap_t *m_tilemap_fg;
- tilemap_t *m_tilemap_edge1[4];
- tilemap_t *m_tilemap_edge2[4];
- std::unique_ptr<bitmap_ind16> m_headlight_bitmap;
- uint8_t shift_r();
- uint8_t shift_rev_r();
- void madalien_output_w(uint8_t data);
- void madalien_videoram_w(offs_t offset, uint8_t data);
- void madalien_charram_w(offs_t offset, uint8_t data);
- void madalien_portA_w(uint8_t data);
- void madalien_portB_w(uint8_t data);
- TILEMAP_MAPPER_MEMBER(scan_mode0);
- TILEMAP_MAPPER_MEMBER(scan_mode1);
- TILEMAP_MAPPER_MEMBER(scan_mode2);
- TILEMAP_MAPPER_MEMBER(scan_mode3);
- TILE_GET_INFO_MEMBER(get_tile_info_BG_1);
- TILE_GET_INFO_MEMBER(get_tile_info_BG_2);
- TILE_GET_INFO_MEMBER(get_tile_info_FG);
- void madalien_palette(palette_device &palette) const;
- uint32_t screen_update_madalien(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline int scan_helper(int col, int row, int section);
- void draw_edges(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip, int scroll_mode);
- void draw_headlight(bitmap_ind16 &bitmap, const rectangle &cliprect, int flip);
- void draw_foreground(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip);
- inline uint8_t shift_common(uint8_t hi, uint8_t lo);
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
- void audio_map(address_map &map);
- void main_map(address_map &map);
-};
-
-/*----------- defined in audio/madalien.c -----------*/
-
-DISCRETE_SOUND_EXTERN( madalien_discrete );
-
-/* Discrete Sound Input Nodes */
-#define MADALIEN_8910_PORTA NODE_01
-#define MADALIEN_8910_PORTB NODE_02
-
-#endif // MAME_INCLUDES_MADALIEN_H
diff --git a/src/mame/includes/magmax.h b/src/mame/includes/magmax.h
deleted file mode 100644
index f4cd2c9350b..00000000000
--- a/src/mame/includes/magmax.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-#ifndef MAME_INCLUDES_MAGMAX_H
-#define MAME_INCLUDES_MAGMAX_H
-
-#pragma once
-
-#include "screen.h"
-#include "machine/gen_latch.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-
-class magmax_state : public driver_device
-{
-public:
- magmax_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_vreg(*this, "vreg"),
- m_scroll_x(*this, "scroll_x"),
- m_scroll_y(*this, "scroll_y"),
- m_rom18B(*this, "user1"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_ay(*this, "ay%u", 0U),
- m_soundlatch(*this, "soundlatch"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void magmax(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_vreg;
- required_shared_ptr<uint16_t> m_scroll_x;
- required_shared_ptr<uint16_t> m_scroll_y;
- required_region_ptr<uint8_t> m_rom18B;
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device_array<ay8910_device, 3> m_ay;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- uint8_t m_sound_latch;
- uint8_t m_LS74_clr;
- uint8_t m_LS74_q;
- uint8_t m_gain_control;
- emu_timer *m_interrupt_timer;
- int m_flipscreen;
- std::unique_ptr<uint32_t[]> m_prom_tab;
- bitmap_ind16 m_bitmap;
-
- void cpu_irq_ack_w(uint16_t data);
- uint8_t sound_r();
- void vreg_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ay8910_portB_0_w(uint8_t data);
- void ay8910_portA_0_w(uint8_t data);
-
- void magmax_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(scanline_callback);
-
- void main_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MAGMAX_H
diff --git a/src/mame/includes/mainevt.h b/src/mame/includes/mainevt.h
deleted file mode 100644
index 2d92d05c1c0..00000000000
--- a/src/mame/includes/mainevt.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- The Main Event / Devastators
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MAINEVT_H
-#define MAME_INCLUDES_MAINEVT_H
-
-#pragma once
-
-#include "sound/upd7759.h"
-#include "sound/k007232.h"
-#include "video/k052109.h"
-#include "video/k051960.h"
-#include "video/k051733.h"
-#include "video/konami_helper.h"
-
-class mainevt_state : public driver_device
-{
-public:
- mainevt_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_upd7759(*this, "upd")
- , m_k007232(*this, "k007232")
- , m_k052109(*this, "k052109")
- , m_k051960(*this, "k051960")
- , m_rombank(*this, "rombank")
- , m_leds(*this, "led%u", 0U)
- { }
-
- void devstors(machine_config &config);
- void mainevt(machine_config &config);
-
-private:
- void dv_nmienable_w(uint8_t data);
- void mainevt_bankswitch_w(uint8_t data);
- void mainevt_coin_w(uint8_t data);
- void mainevt_sh_irqtrigger_w(uint8_t data);
- void mainevt_sh_irqcontrol_w(uint8_t data);
- void devstor_sh_irqcontrol_w(uint8_t data);
- void mainevt_sh_bankswitch_w(uint8_t data);
- uint8_t k052109_051960_r(offs_t offset);
- void k052109_051960_w(offs_t offset, uint8_t data);
- uint8_t mainevt_sh_busy_r();
- void dv_sh_bankswitch_w(uint8_t data);
- uint32_t screen_update_mainevt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_dv(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(dv_vblank_w);
- INTERRUPT_GEN_MEMBER(mainevt_sound_timer_irq);
- INTERRUPT_GEN_MEMBER(devstors_sound_timer_irq);
- void volume_callback(uint8_t data);
- K052109_CB_MEMBER(mainevt_tile_callback);
- K052109_CB_MEMBER(dv_tile_callback);
- K051960_CB_MEMBER(mainevt_sprite_callback);
- K051960_CB_MEMBER(dv_sprite_callback);
- void devstors_map(address_map &map);
- void devstors_sound_map(address_map &map);
- void mainevt_map(address_map &map);
- void mainevt_sound_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- /* misc */
- int m_nmi_enable;
- uint8_t m_sound_irq_mask;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<upd7759_device> m_upd7759;
- required_device<k007232_device> m_k007232;
- required_device<k052109_device> m_k052109;
- required_device<k051960_device> m_k051960;
-
- required_memory_bank m_rombank;
- output_finder<4> m_leds;
-};
-
-#endif // MAME_INCLUDES_MAINEVT_H
diff --git a/src/mame/includes/mainsnk.h b/src/mame/includes/mainsnk.h
deleted file mode 100644
index 5c84bdbad95..00000000000
--- a/src/mame/includes/mainsnk.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Tomasz Slanina
-#ifndef MAME_INCLUDES_MAINSNK_H
-#define MAME_INCLUDES_MAINSNK_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class mainsnk_state : public driver_device
-{
-public:
- mainsnk_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_bgram(*this, "bgram"),
- m_spriteram(*this, "spriteram"),
- m_fgram(*this, "fgram")
- { }
-
- void mainsnk(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_bgram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_fgram;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_sound_cpu_busy;
- uint32_t m_bg_tile_offset;
-
- uint8_t sound_ack_r();
- void c600_w(uint8_t data);
- void fgram_w(offs_t offset, uint8_t data);
- void bgram_w(offs_t offset, uint8_t data);
-
- TILEMAP_MAPPER_MEMBER(marvins_tx_scan_cols);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- void mainsnk_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int scrollx, int scrolly );
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MAINSNK_H
diff --git a/src/mame/includes/malzak.h b/src/mame/includes/malzak.h
deleted file mode 100644
index 5902bc31874..00000000000
--- a/src/mame/includes/malzak.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli, Barry Rodewald
-/*************************************************************************
-
- Malzak
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MALZAK_H
-#define MAME_INCLUDES_MALZAK_H
-
-#pragma once
-
-#include "cpu/s2650/s2650.h"
-#include "machine/s2636.h"
-#include "video/saa5050.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class malzak_state : public driver_device
-{
-public:
- malzak_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_s2636(*this, "s2636%u", 0U)
- , m_trom(*this, "saa5050")
- , m_videoram(*this, "videoram")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_mainbank(*this, "mainbank")
- { }
-
- void malzak(machine_config &config);
- void malzak2(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- /* devices */
- required_device<s2650_device> m_maincpu;
- required_device_array<s2636_device, 2> m_s2636;
- required_device<saa5050_device> m_trom;
- required_shared_ptr<uint8_t> m_videoram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_memory_bank m_mainbank;
-
- uint8_t fake_VRLE_r();
- uint8_t s2636_portA_r();
- uint8_t s2650_data_r();
- void port40_w(uint8_t data);
- void port60_w(uint8_t data);
- void portc0_w(uint8_t data);
- uint8_t collision_r();
- void playfield_w(offs_t offset, uint8_t data);
- uint8_t videoram_r(offs_t offset);
-
- void palette_init(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- virtual void video_start() override;
-
- void malzak2_map(address_map &map);
- void malzak_data_map(address_map &map);
- void malzak_io_map(address_map &map);
- void malzak_map(address_map &map);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
- std::unique_ptr<bitmap_rgb32> m_trom_bitmap;
- std::unique_ptr<bitmap_rgb32> m_playfield_bitmap;
- tilemap_t *m_playfield_tilemap;
- int m_playfield_code[256];
- int m_scrollx;
- int m_scrolly;
- int m_collision_counter;
- u8 m_playfield_bank;
-};
-
-#endif // MAME_INCLUDES_MALZAK_H
diff --git a/src/mame/includes/mappy.h b/src/mame/includes/mappy.h
deleted file mode 100644
index 4484011c8e7..00000000000
--- a/src/mame/includes/mappy.h
+++ /dev/null
@@ -1,112 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_MAPPY_H
-#define MAME_INCLUDES_MAPPY_H
-
-#pragma once
-
-#include "machine/namcoio.h"
-#include "sound/namco.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class mappy_state : public driver_device
-{
-public:
- mappy_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_subcpu2(*this, "sub2"),
- m_namcoio(*this, "namcoio_%u", 1),
- m_namco_15xx(*this, "namco"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_leds(*this, "led%u", 0U)
- { }
-
- void mappy_common(machine_config &config);
- void mappy(machine_config &config);
- void phozon(machine_config &config);
- void motos(machine_config &config);
- void grobda(machine_config &config);
- void digdug2(machine_config &config);
- void pacnpal(machine_config &config);
- void superpac_common(machine_config &config);
- void superpac(machine_config &config);
- void todruaga(machine_config &config);
-
- void init_digdug2();
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- optional_device<cpu_device> m_subcpu2;
- required_device_array<namcoio_device, 2> m_namcoio;
- required_device<namco_15xx_device> m_namco_15xx;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- output_finder<2> m_leds;
-
- tilemap_t *m_bg_tilemap;
- bitmap_ind16 m_sprite_bitmap;
-
- uint8_t m_scroll;
-
- uint8_t m_main_irq_mask;
- uint8_t m_sub_irq_mask;
- uint8_t m_sub2_irq_mask;
-
- emu_timer *m_namcoio_run_timer[2];
-
- DECLARE_WRITE_LINE_MEMBER(int_on_w);
- DECLARE_WRITE_LINE_MEMBER(int_on_2_w);
- DECLARE_WRITE_LINE_MEMBER(int_on_3_w);
- DECLARE_WRITE_LINE_MEMBER(mappy_flip_w);
- void superpac_videoram_w(offs_t offset, uint8_t data);
- void mappy_videoram_w(offs_t offset, uint8_t data);
- void superpac_flipscreen_w(uint8_t data);
- uint8_t superpac_flipscreen_r();
- void mappy_scroll_w(offs_t offset, uint8_t data);
- void out_lamps(uint8_t data);
- TILEMAP_MAPPER_MEMBER(superpac_tilemap_scan);
- TILEMAP_MAPPER_MEMBER(mappy_tilemap_scan);
- TILE_GET_INFO_MEMBER(superpac_get_tile_info);
- TILE_GET_INFO_MEMBER(phozon_get_tile_info);
- TILE_GET_INFO_MEMBER(mappy_get_tile_info);
- template<uint8_t Chip> TIMER_CALLBACK_MEMBER(namcoio_run_timer);
-
- DECLARE_VIDEO_START(superpac);
- void superpac_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(phozon);
- void phozon_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(mappy);
- void mappy_palette(palette_device &palette) const;
- uint32_t screen_update_superpac(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_phozon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mappy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void mappy_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *spriteram_base);
- void phozon_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *spriteram_base);
-
- void mappy_cpu1_map(address_map &map);
- void mappy_cpu2_map(address_map &map);
- void phozon_cpu1_map(address_map &map);
- void phozon_cpu2_map(address_map &map);
- void phozon_cpu3_map(address_map &map);
- void superpac_cpu1_map(address_map &map);
- void superpac_cpu2_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MAPPY_H
diff --git a/src/mame/includes/marineb.h b/src/mame/includes/marineb.h
deleted file mode 100644
index 312b9135a1d..00000000000
--- a/src/mame/includes/marineb.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-#ifndef MAME_INCLUDES_MARINEB_H
-#define MAME_INCLUDES_MARINEB_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class marineb_state : public driver_device
-{
-public:
- marineb_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_outlatch(*this, "outlatch")
- { }
-
- void springer(machine_config &config);
- void wanted(machine_config &config);
- void hopprobo(machine_config &config);
- void marineb(machine_config &config);
- void bcruzm12(machine_config &config);
- void hoccer(machine_config &config);
- void changes(machine_config &config);
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_palette_bank;
- uint8_t m_column_scroll;
- uint8_t m_flipscreen_x;
- uint8_t m_flipscreen_y;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<ls259_device> m_outlatch;
-
- bool m_irq_mask;
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- void marineb_videoram_w(offs_t offset, uint8_t data);
- void marineb_colorram_w(offs_t offset, uint8_t data);
- void marineb_column_scroll_w(uint8_t data);
- void marineb_palette_bank_0_w(uint8_t data);
- void marineb_palette_bank_1_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_y_w);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void marineb_palette(palette_device &palette) const;
- uint32_t screen_update_marineb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_changes(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_springer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_hoccer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_hopprobo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(marineb_vblank_irq);
- DECLARE_WRITE_LINE_MEMBER(wanted_vblank_irq);
- void set_tilemap_scrolly( int cols );
- void marineb_io_map(address_map &map);
- void marineb_map(address_map &map);
- void wanted_io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MARINEB_H
diff --git a/src/mame/includes/mario.h b/src/mame/includes/mario.h
deleted file mode 100644
index 6d0f8693d3f..00000000000
--- a/src/mame/includes/mario.h
+++ /dev/null
@@ -1,160 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni
-#ifndef MAME_INCLUDES_MARIO_H
-#define MAME_INCLUDES_MARIO_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/z80dma.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#define OLD_SOUND (0)
-
-#if !OLD_SOUND
-#include "machine/netlist.h"
-#include "netlist/devices/net_lib.h"
-#else
-#include "sound/discrete.h"
-#endif
-
-/*
- * From the schematics:
- *
- * Video generation like dkong/dkongjr. However, clock is 24MHZ
- * 7C -> 100 => 256 - 124 = 132 ==> 264 Scanlines
- */
-
-#define MASTER_CLOCK XTAL(24'000'000)
-#define PIXEL_CLOCK (MASTER_CLOCK / 4)
-#define CLOCK_1H (MASTER_CLOCK / 8)
-#define CLOCK_16H (CLOCK_1H / 16)
-#define CLOCK_1VF ((CLOCK_16H) / 12 / 2)
-#define CLOCK_2VF ((CLOCK_1VF) / 2)
-
-#define HTOTAL (384)
-#define HBSTART (256)
-#define HBEND (0)
-#define VTOTAL (264)
-#define VBSTART (240)
-#define VBEND (16)
-
-#define Z80_MASTER_CLOCK XTAL(8'000'000)
-#define Z80_CLOCK (Z80_MASTER_CLOCK / 2) /* verified on pcb */
-
-#define I8035_MASTER_CLOCK XTAL(11'000'000) /* verified on pcb: 730Khz */
-#define I8035_CLOCK (I8035_MASTER_CLOCK)
-
-class mario_state : public driver_device
-{
-public:
- mario_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_z80dma(*this, "z80dma"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_soundlatch3(*this, "soundlatch3"),
- m_soundlatch4(*this, "soundlatch4"),
-#if OLD_SOUND
- m_discrete(*this, "discrete"),
-#else
- m_audio_snd0(*this, "snd_nl:snd0"),
- m_audio_snd1(*this, "snd_nl:snd1"),
- m_audio_snd7(*this, "snd_nl:snd7"),
- m_audio_dac(*this, "snd_nl:dac"),
-#endif
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_monitor(0)
- { }
-
- void mario_base(machine_config &config);
- void masao(machine_config &config);
- void masao_audio(machine_config &config);
- void mario(machine_config &config);
- void mario_audio(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<z80dma_device> m_z80dma;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<generic_latch_8_device> m_soundlatch2;
- optional_device<generic_latch_8_device> m_soundlatch3;
- optional_device<generic_latch_8_device> m_soundlatch4;
-#if OLD_SOUND
- optional_device<discrete_sound_device> m_discrete;
-#else
- optional_device<netlist_mame_logic_input_device> m_audio_snd0;
- optional_device<netlist_mame_logic_input_device> m_audio_snd1;
- optional_device<netlist_mame_logic_input_device> m_audio_snd7;
- optional_device<netlist_mame_int_input_device> m_audio_dac;
-#endif
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
-
- /* sound state */
- uint8_t m_last;
- uint8_t m_portT;
- const char *m_eabank;
-
- /* video state */
- uint8_t m_gfx_bank;
- uint8_t m_palette_bank;
- uint16_t m_gfx_scroll;
- uint8_t m_flip;
- tilemap_t *m_bg_tilemap;
- int m_monitor;
-
- bool m_nmi_mask;
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- void mario_videoram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(gfx_bank_w);
- DECLARE_WRITE_LINE_MEMBER(palette_bank_w);
- void mario_scroll_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flip_w);
- uint8_t mario_sh_p1_r();
- uint8_t mario_sh_p2_r();
- DECLARE_READ_LINE_MEMBER(mario_sh_t0_r);
- DECLARE_READ_LINE_MEMBER(mario_sh_t1_r);
- uint8_t mario_sh_tune_r(offs_t offset);
- void mario_sh_p1_w(uint8_t data);
- void mario_sh_p2_w(uint8_t data);
- void masao_sh_irqtrigger_w(uint8_t data);
- void mario_sh_tuneselect_w(uint8_t data);
- void mario_sh3_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void video_start() override;
- virtual void sound_start() override;
- virtual void sound_reset() override;
- void mario_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void mario_sh_sound_w(uint8_t data);
- void mario_sh1_w(uint8_t data);
- void mario_sh2_w(uint8_t data);
- uint8_t memory_read_byte(offs_t offset);
- void memory_write_byte(offs_t offset, uint8_t data);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void set_ea(int ea);
- void mario_io_map(address_map &map);
- void mario_map(address_map &map);
- void mario_sound_io_map(address_map &map);
- void mario_sound_map(address_map &map);
- void masao_map(address_map &map);
- void masao_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MARIO_H
diff --git a/src/mame/includes/markham.h b/src/mame/includes/markham.h
deleted file mode 100644
index 64762b4975c..00000000000
--- a/src/mame/includes/markham.h
+++ /dev/null
@@ -1,132 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Uki
-/*************************************************************************
-
- Markham (c) 1983 Sun Electronics
- Strength & Skill (c) 1984 Sun Electronics
-
-*************************************************************************/
-
-#ifndef MAME_INCLUDES_MARKHAM_H
-#define MAME_INCLUDES_MARKHAM_H
-
-#pragma once
-
-#include "machine/timer.h"
-
-#include "cpu/z80/z80.h"
-#include "cpu/mb88xx/mb88xx.h"
-#include "sound/sn76496.h"
-#include "emupal.h"
-#include "screen.h"
-#include "speaker.h"
-#include "tilemap.h"
-
-class markham_state : public driver_device
-{
-public:
- // construction/destruction
- markham_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "subcpu")
- , m_mcu(*this, "mcu")
- , m_sn(*this, "sn%u", 1U)
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_spriteram(*this, "spriteram")
- , m_videoram(*this, "videoram")
- , m_xscroll(*this, "xscroll")
- , m_scroll_ctrl(0)
- , m_irq_source(0)
- , m_irq_scanline_start(0)
- , m_irq_scanline_end(0)
- , m_coin2_lock_cnt(3)
- , m_packet_buffer{}
- , m_packet_write_pos(0)
- , m_packet_reset(true)
- {
- }
-
- void markham(machine_config &config);
- void strnskil(machine_config &config);
- void banbam(machine_config &config);
-
- void init_common();
- void init_banbam();
- void init_pettanp();
-
-private:
- void base_master_map(address_map &map);
- void markham_master_map(address_map &map);
- void strnskil_master_map(address_map &map);
- void banbam_master_map(address_map &map);
- void markham_slave_map(address_map &map);
- void strnskil_slave_map(address_map &map);
-
- void coin_output_w(uint8_t data);
- void flipscreen_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
-
- // markham specific
- uint8_t markham_e004_r();
-
- // strnskil specific
- uint8_t strnskil_d800_r();
- void strnskil_master_output_w(uint8_t data);
-
- // protection comms for banbam/pettanp
- uint8_t banbam_protection_r();
- void banbam_protection_w(uint8_t data);
- void mcu_reset_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint32_t screen_update_markham(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_strnskil(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- void markham_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(strnskil);
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(strnskil_scanline);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- optional_device<mb8841_cpu_device> m_mcu;
- required_device_array<sn76496_device, 2> m_sn;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_xscroll;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- uint8_t m_scroll_ctrl;
- uint8_t m_irq_source;
- uint8_t m_irq_scanline_start;
- uint8_t m_irq_scanline_end;
-
- /* misc */
- uint8_t m_coin2_lock_cnt;
-
- /* banbam protection simulation */
- uint8_t m_packet_buffer[2];
- uint8_t m_packet_write_pos;
- bool m_packet_reset;
-
- u8 m_strnskil_slave_irq;
-};
-
-#endif // MAME_INCLUDES_MARKHAM_H
diff --git a/src/mame/includes/matmania.h b/src/mame/includes/matmania.h
deleted file mode 100644
index 57b1b9a792b..00000000000
--- a/src/mame/includes/matmania.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver
-#ifndef MAME_INCLUDES_MATMANIA_H
-#define MAME_INCLUDES_MATMANIA_H
-
-#pragma once
-
-#include "machine/taito68705interface.h"
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "screen.h"
-
-class matmania_state : public driver_device
-{
-public:
- matmania_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_videoram2(*this, "videoram2"),
- m_videoram3(*this, "videoram3"),
- m_colorram(*this, "colorram"),
- m_colorram2(*this, "colorram2"),
- m_colorram3(*this, "colorram3"),
- m_scroll(*this, "scroll"),
- m_pageselect(*this, "pageselect"),
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "paletteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void matmania(machine_config &config);
- void maniach(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_videoram3;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_colorram2;
- required_shared_ptr<uint8_t> m_colorram3;
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_pageselect;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_paletteram;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<taito68705_mcu_device> m_mcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* video-related */
- std::unique_ptr<bitmap_ind16> m_tmpbitmap;
- std::unique_ptr<bitmap_ind16> m_tmpbitmap2;
-
- uint8_t maniach_mcu_status_r();
- void matmania_sh_command_w(uint8_t data);
- void maniach_sh_command_w(uint8_t data);
- void matmania_paletteram_w(offs_t offset, uint8_t data);
- void matmania_palette(palette_device &palette) const;
- uint32_t screen_update_matmania(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_maniach(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void maniach_map(address_map &map);
- void maniach_sound_map(address_map &map);
- void matmania_map(address_map &map);
- void matmania_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MATMANIA_H
diff --git a/src/mame/includes/maygay1b.h b/src/mame/includes/maygay1b.h
deleted file mode 100644
index bc6b78348b9..00000000000
--- a/src/mame/includes/maygay1b.h
+++ /dev/null
@@ -1,150 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_MAYGAY1B_H
-#define MAME_INCLUDES_MAYGAY1B_H
-
-#pragma once
-
-#include "cpu/m6809/m6809.h"
-#include "machine/i8279.h"
-
-#include "video/awpvid.h" //Fruit Machines Only
-#include "machine/6821pia.h"
-#include "machine/mc68681.h"
-#include "machine/meters.h"
-#include "machine/roc10937.h" // vfd
-#include "machine/steppers.h" // stepper motor
-#include "sound/ay8910.h"
-#include "sound/okim6376.h"
-#include "sound/ym2413.h"
-#include "machine/nvram.h"
-#include "machine/timer.h"
-#include "sound/upd7759.h"
-#include "cpu/mcs51/mcs51.h"
-#include "sound/okim6295.h"
-
-
-class maygay1b_state : public driver_device
-{
-public:
- maygay1b_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_vfd(*this, "vfd"),
- m_ay(*this, "aysnd"),
- m_msm6376(*this, "msm6376"),
- m_upd7759(*this, "upd"),
- m_okim6295(*this, "oki"),
- m_duart68681(*this, "duart68681"),
- m_sw1_port(*this, "SW1"),
- m_sw2_port(*this, "SW2"),
- m_kbd_ports(*this, { "SW1", "SW2", "STROBE2", "STROBE3", "STROBE4", "STROBE5", "STROBE6", "STROBE7", }),
- m_bank1(*this, "bank1"),
- m_reels(*this, "reel%u", 0U),
- m_meters(*this, "meters"),
- m_oki_region(*this, "msm6376"),
- m_lamps(*this, "lamp%u", 0U),
- m_triacs(*this, "triac%u", 0U)
- {
- }
-
- void maygay_m1_no_oki(machine_config &config);
- void maygay_m1(machine_config &config);
- void maygay_m1_nec(machine_config &config);
- void maygay_m1_empire(machine_config &config);
-
- void init_m1();
- void init_m1common();
- void init_m1nec();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<i80c51_device> m_mcu;
- optional_device<s16lf01_device> m_vfd;
- required_device<ay8910_device> m_ay;
- optional_device<okim6376_device> m_msm6376;
- optional_device<upd7759_device> m_upd7759;
- optional_device<okim6295_device> m_okim6295;
- required_device<mc68681_device> m_duart68681;
- required_ioport m_sw1_port;
- required_ioport m_sw2_port;
- required_ioport_array<8> m_kbd_ports;
- required_memory_bank m_bank1;
- required_device_array<stepper_device, 6> m_reels;
- optional_device<meters_device> m_meters;
- optional_region_ptr<uint8_t> m_oki_region;
- output_finder<256> m_lamps;
- output_finder<8> m_triacs;
-
- uint8_t m_lamppos;
- int m_lamp_strobe;
- int m_old_lamp_strobe;
- int m_lamp_strobe2;
- int m_old_lamp_strobe2;
- int m_RAMEN;
- int m_ALARMEN;
- int m_PSUrelay;
- bool m_Vmm;
- int m_WDOG;
- int m_NMIENABLE;
- int m_meter;
- TIMER_DEVICE_CALLBACK_MEMBER( maygay1b_nmitimer_callback );
- uint8_t m_Lamps[256];
- int m_optic_pattern;
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(reel_optic_cb) { if (state) m_optic_pattern |= (1 << N); else m_optic_pattern &= ~(1 << N); }
- void scanlines_w(uint8_t data);
- void scanlines_2_w(uint8_t data);
- void lamp_data_w(uint8_t data);
- void lamp_data_2_w(uint8_t data);
- uint8_t kbd_r();
- void reel12_w(uint8_t data);
- void reel34_w(uint8_t data);
- void reel56_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(ramen_w);
- DECLARE_WRITE_LINE_MEMBER(alarmen_w);
- DECLARE_WRITE_LINE_MEMBER(nmien_w);
- DECLARE_WRITE_LINE_MEMBER(rts_w);
- DECLARE_WRITE_LINE_MEMBER(psurelay_w);
- DECLARE_WRITE_LINE_MEMBER(wdog_w);
- DECLARE_WRITE_LINE_MEMBER(srsel_w);
- void latch_ch2_w(uint8_t data);
- uint8_t latch_st_hi();
- uint8_t latch_st_lo();
- void m1ab_no_oki_w(uint8_t data);
- void m1_pia_porta_w(uint8_t data);
- void m1_pia_portb_w(uint8_t data);
- void m1_lockout_w(uint8_t data);
- void m1_meter_w(uint8_t data);
- uint8_t m1_meter_r();
- uint8_t m1_firq_clr_r();
- uint8_t m1_firq_trg_r();
- uint8_t m1_firq_nec_r();
- uint8_t nec_reset_r();
- void nec_bank0_w(uint8_t data);
- void nec_bank1_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(duart_irq_handler);
- uint8_t m1_duart_r();
- void mcu_port0_w(uint8_t data);
- void mcu_port1_w(uint8_t data);
- void mcu_port2_w(uint8_t data);
- void mcu_port3_w(uint8_t data);
- uint8_t mcu_port0_r();
- uint8_t mcu_port2_r();
-
- void main_to_mcu_0_w(uint8_t data);
- void main_to_mcu_1_w(uint8_t data);
-
- uint8_t m_main_to_mcu;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void cpu0_firq(int data);
- void cpu0_nmi();
- void m1_memmap(address_map &map);
- void m1_nec_memmap(address_map &map);
-};
-
-INPUT_PORTS_EXTERN( maygay_m1 );
-
-#endif // MAME_INCLUDES_MAYGAY1B_H
diff --git a/src/mame/includes/mbc55x.h b/src/mame/includes/mbc55x.h
deleted file mode 100644
index c672e26aecf..00000000000
--- a/src/mame/includes/mbc55x.h
+++ /dev/null
@@ -1,188 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phill Harvey-Smith
-/*
- mbc55x.h
- Includes for the Sanyo MBC-550, MBC-555.
-
- Phill Harvey-Smith
- 2011-01-29.
-*/
-#ifndef MAME_INCLUDES_MBC55X_H
-#define MAME_INCLUDES_MBC55X_H
-
-#pragma once
-
-#include "bus/a2gameio/gameio.h"
-#include "bus/centronics/ctronics.h"
-#include "cpu/i86/i86.h"
-#include "imagedev/floppy.h"
-#include "machine/bankdev.h"
-#include "machine/i8251.h"
-#include "machine/i8255.h"
-#include "machine/pic8259.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-#include "sound/spkrdev.h"
-#include "video/mc6845.h"
-
-#include "debug/debugcon.h"
-#include "debugger.h"
-#include "emupal.h"
-
-#include "formats/pc_dsk.h"
-
-
-#define MAINCPU_TAG "maincpu"
-
-#define SCREEN_TAG "screen"
-#define SCREEN_WIDTH_PIXELS 640
-#define SCREEN_HEIGHT_LINES 250
-#define SCREEN_NO_COLOURS 8
-
-#define VIDEO_MEM_SIZE (32*1024)
-#define VID_MC6845_NAME "mc6845"
-
-// Red and blue colour planes sit at a fixed location, green
-// is in main memory.
-
-#define COLOUR_PLANE_SIZE 0x4000
-
-#define RED_PLANE_OFFSET (0*COLOUR_PLANE_SIZE)
-#define BLUE_PLANE_OFFSET (1*COLOUR_PLANE_SIZE)
-
-#define COLOUR_PLANE_MEMBASE 0xF0000
-#define RED_PLANE_MEMBASE (COLOUR_PLANE_MEMBASE+RED_PLANE_OFFSET)
-#define BLUE_PLANE_MEMBASE (COLOUR_PLANE_MEMBASE+BLUE_PLANE_OFFSET)
-
-#define RED_PLANE_TAG "red"
-#define BLUE_PLANE_TAG "blue"
-
-#define PPI8255_TAG "ppi8255"
-#define PIC8259_TAG "pic8259"
-#define PIT8253_TAG "pit8253"
-
-#define MONO_TAG "mono"
-#define I8251A_KB_TAG "i8251a_kb"
-#define FDC_TAG "wd1793"
-
-
-
-class mbc55x_state : public driver_device
-{
-public:
- mbc55x_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, MAINCPU_TAG),
- m_iodecode(*this, "iodecode"),
- m_crtc(*this, VID_MC6845_NAME),
- m_kb_uart(*this, I8251A_KB_TAG),
- m_pit(*this, PIT8253_TAG),
- m_ppi(*this, PPI8255_TAG),
- m_pic(*this, PIC8259_TAG),
- m_fdc(*this, FDC_TAG),
- m_floppy(*this, FDC_TAG ":%u", 0U),
- m_gameio(*this, "gameio"),
- m_printer(*this, "printer"),
- m_speaker(*this, "speaker"),
- m_ram(*this, RAM_TAG),
- m_palette(*this, "palette")
- {
- }
-
- void mbc55x(machine_config &config);
-
- required_device<i8086_cpu_device> m_maincpu;
- required_device<address_map_bank_device> m_iodecode;
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void video_reset() override;
-
-private:
- uint8_t iodecode_r(offs_t offset);
- void iodecode_w(offs_t offset, uint8_t data);
-
- uint8_t vram_page_r();
- void vram_page_w(uint8_t data);
- uint8_t game_io_r();
- uint8_t printer_status_r();
- void printer_data_w(uint8_t data);
- void disk_select_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(printer_busy_w);
- DECLARE_WRITE_LINE_MEMBER(printer_paper_end_w);
- DECLARE_WRITE_LINE_MEMBER(printer_select_w);
-
- DECLARE_WRITE_LINE_MEMBER(vid_hsync_changed);
- DECLARE_WRITE_LINE_MEMBER(vid_vsync_changed);
-
- MC6845_UPDATE_ROW(crtc_update_row);
- void mbc55x_palette(palette_device &palette) const;
-
- void mbc55x_io(address_map &map);
- void mbc55x_mem(address_map &map);
- void mbc55x_iodecode(address_map &map);
-
- void set_ram_size();
-
- required_device<mc6845_device> m_crtc;
- required_device<i8251_device> m_kb_uart;
- required_device<pit8253_device> m_pit;
- required_device<i8255_device> m_ppi;
- required_device<pic8259_device> m_pic;
- required_device<fd1793_device> m_fdc;
- required_device_array<floppy_connector, 4> m_floppy;
- required_device<apple2_gameio_device> m_gameio;
- required_device<centronics_device> m_printer;
- required_device<speaker_sound_device> m_speaker;
- required_device<ram_device> m_ram;
- required_device<palette_device> m_palette;
-
- uint32_t m_debug_video;
- uint8_t m_video_mem[VIDEO_MEM_SIZE];
- uint8_t m_vram_page;
- uint8_t m_printer_status;
-
- double m_x_calibration, m_y_calibration;
- bool m_ls123_strobe;
- double m_ls123_clear_time[4];
-
- void video_debug(int ref, const std::vector<std::string> &params);
-};
-
-/*----------- defined in machine/mbc55x.c -----------*/
-
-/* Memory controller */
-#define RAM_BANK00_TAG "bank0"
-#define RAM_BANK01_TAG "bank1"
-#define RAM_BANK02_TAG "bank2"
-#define RAM_BANK03_TAG "bank3"
-#define RAM_BANK04_TAG "bank4"
-#define RAM_BANK05_TAG "bank5"
-#define RAM_BANK06_TAG "bank6"
-#define RAM_BANK07_TAG "bank7"
-#define RAM_BANK08_TAG "bank8"
-#define RAM_BANK09_TAG "bank9"
-#define RAM_BANK0A_TAG "banka"
-#define RAM_BANK0B_TAG "bankb"
-#define RAM_BANK0C_TAG "bankc"
-#define RAM_BANK0D_TAG "bankd"
-#define RAM_BANK0E_TAG "banke"
-
-#define RAM_BANK_SIZE (64*1024)
-#define RAM_BANK_COUNT 15
-
-/* Floppy drive interface */
-
-#define FDC_PAUSE 10000
-
-
-/*----------- defined in video/mbc55x.c -----------*/
-
-#define LINEAR_ADDR(seg,ofs) ((seg<<4)+ofs)
-
-#define OUTPUT_SEGOFS(mess,seg,ofs) logerror("%s=%04X:%04X [%08X]\n",mess,seg,ofs,((seg<<4)+ofs))
-
-#endif // MAME_INCLUDES_MBC55X_H
diff --git a/src/mame/includes/mbee.h b/src/mame/includes/mbee.h
deleted file mode 100644
index efd76f0d443..00000000000
--- a/src/mame/includes/mbee.h
+++ /dev/null
@@ -1,194 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Robbbert
-/*****************************************************************************
- *
- * includes/mbee.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_MBEE_H
-#define MAME_INCLUDES_MBEE_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "imagedev/snapquik.h"
-
-#include "machine/8530scc.h"
-#include "machine/buffer.h"
-#include "machine/mc146818.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80pio.h"
-
-#include "sound/spkrdev.h"
-
-#include "video/mc6845.h"
-
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-class mbee_state : public driver_device
-{
-public:
- mbee_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_palette(*this, "palette")
- , m_maincpu(*this, "maincpu")
- , m_pio(*this, "z80pio")
- , m_cassette(*this, "cassette")
- , m_speaker(*this, "speaker")
- , m_centronics(*this, "centronics")
- , m_cent_data_out(*this, "cent_data_out")
- , m_crtc(*this, "crtc")
- , m_fdc(*this, "fdc")
- , m_floppy0(*this, "fdc:0")
- , m_floppy1(*this, "fdc:1")
- , m_rtc(*this, "rtc")
- , m_pak(*this, "pak")
- , m_telcom(*this, "telcom")
- , m_basic(*this, "basic")
- , m_io_x7(*this, "X.7")
- , m_io_oldkb(*this, "X.%u", 0)
- , m_io_newkb(*this, "Y.%u", 0)
- , m_io_config(*this, "CONFIG")
- , m_screen(*this, "screen")
- , m_bankr(*this, "bankr%d", 0)
- , m_bankw(*this, "bankw%d", 0)
- { }
-
- void mbee56(machine_config &config);
- void mbeeppc(machine_config &config);
- void mbee128(machine_config &config);
- void mbee256(machine_config &config);
- void mbee(machine_config &config);
- void mbeett(machine_config &config);
- void mbeeic(machine_config &config);
- void mbeepc(machine_config &config);
- void mbee128p(machine_config &config);
-
- void init_mbee() { m_features = 0x00; };
- void init_mbeett() { m_features = 0x0d; };
- void init_mbeeppc() { m_features = 0x09; };
- void init_mbeepp() { m_features = 0x39; };
- void init_mbeeic() { m_features = 0x01; };
- void init_mbee56() { m_features = 0x03; };
- void init_mbee128() { m_features = 0x11; };
- void init_mbee128p() { m_features = 0x19; };
- void init_mbee256() { m_features = 0x2d; };
-
-private:
- void port04_w(uint8_t data);
- void port06_w(uint8_t data);
- uint8_t port07_r();
- uint8_t port08_r();
- void port08_w(uint8_t data);
- void port0a_w(uint8_t data);
- void port0b_w(uint8_t data);
- uint8_t port18_r();
- uint8_t port1c_r();
- void port1c_w(uint8_t data);
- void port50_w(uint8_t data);
- uint8_t telcom_low_r();
- uint8_t telcom_high_r();
- uint8_t speed_low_r();
- uint8_t speed_high_r();
- void m6545_index_w(uint8_t data);
- void m6545_data_w(uint8_t data);
- uint8_t video_low_r(offs_t offset);
- uint8_t video_high_r(offs_t offset);
- void video_low_w(offs_t offset, uint8_t data);
- void video_high_w(offs_t offset, uint8_t data);
- void pio_port_b_w(uint8_t data);
- uint8_t pio_port_b_r();
- DECLARE_WRITE_LINE_MEMBER(pio_ardy);
- DECLARE_WRITE_LINE_MEMBER(crtc_vs);
- uint8_t fdc_status_r();
- void fdc_motor_w(uint8_t data);
- void standard_palette(palette_device &palette) const;
- void premium_palette(palette_device &palette) const;
- uint32_t screen_update_mbee(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(newkb_timer);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
- WRITE_LINE_MEMBER(rtc_irq_w);
- WRITE_LINE_MEMBER(fdc_intrq_w);
- WRITE_LINE_MEMBER(fdc_drq_w);
- MC6845_UPDATE_ROW(crtc_update_row);
- MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr);
- void machine_start() override;
- void machine_reset() override;
-
- required_device<palette_device> m_palette;
- void mbee128_io(address_map &map);
- void mbee256_io(address_map &map);
- void mbee256_mem(address_map &map);
- void mbee56_io(address_map &map);
- void mbee56_mem(address_map &map);
- void mbee_io(address_map &map);
- void mbee_mem(address_map &map);
- void mbeeic_io(address_map &map);
- void mbeeic_mem(address_map &map);
- void mbeepc_io(address_map &map);
- void mbeepc_mem(address_map &map);
- void mbeeppc_io(address_map &map);
- void mbeeppc_mem(address_map &map);
- void mbeett_io(address_map &map);
- void mbeett_mem(address_map &map);
-
- u8 m_features = 0;
- u16 m_size = 0;
- u32 m_ramsize = 0;
- bool m_b7_rtc = 0;
- bool m_b7_vs = 0;
- bool m_b2 = 0;
- uint8_t m_framecnt = 0;
- uint8_t m_08 = 0;
- uint8_t m_0a = 0;
- uint8_t m_0b = 0;
- uint8_t m_1c = 0;
- uint8_t m_newkb_was_pressed[15] = { 0, };
- uint8_t m_newkb_q[20] = { 0, };
- uint8_t m_newkb_q_pos = 0;
- uint8_t m_sy6545_reg[32] = { 0, };
- uint8_t m_sy6545_ind = 0;
- uint8_t m_fdc_rq = 0;
- uint8_t m_bank_array[33] = { 0, };
- std::unique_ptr<u8[]> m_dummy; // black hole for writes to rom
- std::unique_ptr<u8[]> m_ram; // main banked-switch ram, 128/256/pp
- std::unique_ptr<u8[]> m_vram; // video ram, all models
- std::unique_ptr<u8[]> m_pram; // pcg ram, all models
- std::unique_ptr<u8[]> m_cram; // colour ram, all except mbee
- std::unique_ptr<u8[]> m_aram; // attribute ram, ppc/128/256/pp/tt
- void setup_banks(uint8_t data, bool first_time, uint8_t b_mask);
- void oldkb_scan(uint16_t param);
- void oldkb_matrix_r(uint16_t offs);
- required_device<z80_device> m_maincpu;
- required_device<z80pio_device> m_pio;
- required_device<cassette_image_device> m_cassette;
- required_device<speaker_sound_device> m_speaker;
- required_device<centronics_device> m_centronics;
- required_device<output_latch_device> m_cent_data_out;
- required_device<mc6845_device> m_crtc;
- optional_device<wd2793_device> m_fdc;
- optional_device<floppy_connector> m_floppy0;
- optional_device<floppy_connector> m_floppy1;
- optional_device<mc146818_device> m_rtc;
- optional_memory_bank m_pak;
- optional_memory_bank m_telcom;
- optional_memory_bank m_basic;
- optional_ioport m_io_x7;
- optional_ioport_array<8> m_io_oldkb;
- optional_ioport_array<15> m_io_newkb;
- required_ioport m_io_config;
- required_device<screen_device> m_screen;
- optional_memory_bank_array<16> m_bankr;
- optional_memory_bank_array<16> m_bankw;
-};
-
-#endif // MAME_INCLUDES_MBEE_H
diff --git a/src/mame/includes/mc1502.h b/src/mame/includes/mc1502.h
deleted file mode 100644
index 14c263ea967..00000000000
--- a/src/mame/includes/mc1502.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sergey Svishchev
-/*****************************************************************************
- *
- * includes/mc1502.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_MC1502_H
-#define MAME_INCLUDES_MC1502_H
-
-#pragma once
-
-#include "imagedev/cassette.h"
-#include "machine/i8251.h"
-#include "machine/i8255.h"
-#include "machine/pic8259.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "sound/spkrdev.h"
-
-#include "bus/centronics/ctronics.h"
-#include "bus/isa/isa.h"
-#include "bus/isa/xsu_cards.h"
-#include "bus/isa/mc1502_fdc.h"
-
-
-class mc1502_state : public driver_device
-{
-public:
- mc1502_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_upd8251(*this, "upd8251")
- , m_pic8259(*this, "pic8259")
- , m_pit8253(*this, "pit8253")
- , m_ppi8255n1(*this, "ppi8255n1")
- , m_ppi8255n2(*this, "ppi8255n2")
- , m_isabus(*this, "isa")
- , m_speaker(*this, "speaker")
- , m_cassette(*this, "cassette")
- , m_centronics(*this, "centronics")
- , m_ram(*this, RAM_TAG)
- , m_kbdio(*this, "Y%u", 1)
- { }
-
- void mc1502(machine_config &config);
-
- void init_mc1502();
-
- void fdc_config(device_t *device);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<i8251_device> m_upd8251;
- required_device<pic8259_device> m_pic8259;
- required_device<pit8253_device> m_pit8253;
- required_device<i8255_device> m_ppi8255n1;
- required_device<i8255_device> m_ppi8255n2;
- required_device<isa8_device> m_isabus;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_device<centronics_device> m_centronics;
- required_device<ram_device> m_ram;
- required_ioport_array<12> m_kbdio;
-
- TIMER_CALLBACK_MEMBER(keyb_signal_callback);
-
- struct {
- uint8_t pulsing;
- uint16_t mask; /* input lines */
- emu_timer *keyb_signal_timer;
- } m_kbd;
-
- uint8_t m_ppi_portb;
- uint8_t m_ppi_portc;
- uint8_t m_spkrdata;
-
- DECLARE_WRITE_LINE_MEMBER(mc1502_pit8253_out1_changed);
- DECLARE_WRITE_LINE_MEMBER(mc1502_pit8253_out2_changed);
- DECLARE_WRITE_LINE_MEMBER(mc1502_speaker_set_spkrdata);
- DECLARE_WRITE_LINE_MEMBER(mc1502_i8251_syndet);
-
- void mc1502_ppi_portb_w(uint8_t data);
- void mc1502_ppi_portc_w(uint8_t data);
- uint8_t mc1502_ppi_portc_r();
- uint8_t mc1502_kppi_porta_r();
- void mc1502_kppi_portb_w(uint8_t data);
- void mc1502_kppi_portc_w(uint8_t data);
-
- void mc1502_io(address_map &map);
- void mc1502_map(address_map &map);
-
- int m_pit_out2;
-};
-
-#endif // MAME_INCLUDES_MC1502_H
diff --git a/src/mame/includes/mcatadv.h b/src/mame/includes/mcatadv.h
deleted file mode 100644
index 1da2ee44144..00000000000
--- a/src/mame/includes/mcatadv.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Priest, David Haywood
-#ifndef MAME_INCLUDES_MCATADV_H
-#define MAME_INCLUDES_MCATADV_H
-
-#pragma once
-
-#include "machine/watchdog.h"
-#include "video/tmap038.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class mcatadv_state : public driver_device
-{
-public:
- mcatadv_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_spriteram(*this, "spriteram")
- , m_vidregs(*this, "vidregs")
- , m_sprdata(*this, "sprdata")
- , m_soundbank(*this, "soundbank")
- , m_maincpu(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_watchdog(*this, "watchdog")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_tilemap(*this, "tilemap_%u", 0U)
- { }
-
- void nost(machine_config &config);
- void mcatadv(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_spriteram;
- std::unique_ptr<u16[]> m_spriteram_old;
- required_shared_ptr<u16> m_vidregs;
- std::unique_ptr<u16[]> m_vidregs_old;
-
- required_region_ptr<u8> m_sprdata;
- required_memory_bank m_soundbank;
-
- /* video-related */
- int m_palette_bank[2];
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device_array<tilemap038_device, 2> m_tilemap;
-
- u16 mcat_wd_r();
- void mcatadv_sound_bw_w(u8 data);
- template<int Chip> void get_banked_color(bool tiledim, u32 &color, u32 &pri, u32 &code);
- virtual void machine_start() override;
- virtual void video_start() override;
- u32 screen_update_mcatadv(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_mcatadv);
- void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void mcatadv_draw_tilemap_part( screen_device &screen, int layer, int i, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void mcatadv_map(address_map &map);
- void mcatadv_sound_io_map(address_map &map);
- void mcatadv_sound_map(address_map &map);
- void nost_sound_io_map(address_map &map);
- void nost_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MCATADV_H
diff --git a/src/mame/includes/mcr.h b/src/mame/includes/mcr.h
deleted file mode 100644
index 37b28e3ff5a..00000000000
--- a/src/mame/includes/mcr.h
+++ /dev/null
@@ -1,235 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Midway MCR system
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_MCR_H
-#define MAME_INCLUDES_MCR_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "machine/timer.h"
-#include "machine/z80ctc.h"
-#include "machine/z80pio.h"
-#include "machine/z80sio.h"
-#include "machine/watchdog.h"
-#include "audio/bally.h"
-#include "audio/midway.h"
-#include "audio/csd.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-/* constants */
-#define MAIN_OSC_MCR_I XTAL(19'968'000)
-
-
-class mcr_state : public driver_device
-{
-public:
- mcr_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_paletteram(*this, "paletteram"),
- m_ctc(*this, "ctc"),
- m_ssio(*this, "ssio"),
- m_cheap_squeak_deluxe(*this, "csd"),
- m_sounds_good(*this, "sg"),
- m_turbo_cheap_squeak(*this, "tcs"),
- m_squawk_n_talk(*this, "snt"),
- m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void mcr_control_port_w(uint8_t data);
- void mcr_paletteram9_w(offs_t offset, uint8_t data);
- void mcr_90009_videoram_w(offs_t offset, uint8_t data);
- void mcr_90010_videoram_w(offs_t offset, uint8_t data);
- uint8_t twotiger_videoram_r(offs_t offset);
- void twotiger_videoram_w(offs_t offset, uint8_t data);
- void mcr_91490_videoram_w(offs_t offset, uint8_t data);
- uint8_t solarfox_ip0_r();
- uint8_t solarfox_ip1_r();
- uint8_t kick_ip1_r();
- void wacko_op4_w(uint8_t data);
- uint8_t wacko_ip1_r();
- uint8_t wacko_ip2_r();
- uint8_t kroozr_ip1_r();
- void kroozr_op4_w(uint8_t data);
- void journey_op4_w(uint8_t data);
- void twotiger_op4_w(uint8_t data);
- void dotron_op4_w(uint8_t data);
- uint8_t demoderb_ip1_r();
- uint8_t demoderb_ip2_r();
- void demoderb_op4_w(uint8_t data);
-
- void init_mcr_91490();
- void init_kroozr();
- void init_solarfox();
- void init_kick();
- void init_twotiger();
- void init_demoderb();
- void init_wacko();
- void init_mcr_90010();
- void init_dotrone();
- void init_journey();
-
- uint32_t screen_update_mcr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(mcr_interrupt);
-
- void mcr_91490_tcs(machine_config &config);
- void mcr_91490_snt(machine_config &config);
- void mcr_91490(machine_config &config);
- void mcr_90009(machine_config &config);
- void mcr_90010_tt(machine_config &config);
- void mcr_91475(machine_config &config);
- void mcr_90010(machine_config &config);
- void cpu_90009_map(address_map &map);
- void cpu_90009_portmap(address_map &map);
- void cpu_90009_dp_map(address_map &map);
- void cpu_90009_dp_portmap(address_map &map);
- void cpu_90010_map(address_map &map);
- void cpu_90010_portmap(address_map &map);
- void cpu_91490_map(address_map &map);
- void cpu_91490_portmap(address_map &map);
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- TILE_GET_INFO_MEMBER(mcr_90009_get_tile_info);
- TILE_GET_INFO_MEMBER(mcr_90010_get_tile_info);
- TILE_GET_INFO_MEMBER(mcr_91490_get_tile_info);
- void mcr_set_color(int index, int data);
- void journey_set_color(int index, int data);
- void render_sprites_91399(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void render_sprites_91464(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int primask, int sprmask, int colormask);
- void mcr_init(int cpuboard, int vidboard, int ssioboard);
-
- int8_t m_mcr12_sprite_xoffs_flip;
- uint8_t m_input_mux;
- uint8_t m_last_op4;
- tilemap_t *m_bg_tilemap;
-
- uint8_t m_mcr_cocktail_flip;
-
- required_device<z80_device> m_maincpu;
- optional_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_paletteram;
-
- required_device<z80ctc_device> m_ctc;
- optional_device<midway_ssio_device> m_ssio;
- optional_device<midway_cheap_squeak_deluxe_device> m_cheap_squeak_deluxe;
- optional_device<midway_sounds_good_device> m_sounds_good;
- optional_device<midway_turbo_cheap_squeak_device> m_turbo_cheap_squeak;
- optional_device<bally_squawk_n_talk_device> m_squawk_n_talk;
- optional_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
-private:
- uint32_t m_mcr_cpu_board;
- uint32_t m_mcr_sprite_board;
-
- int8_t m_mcr12_sprite_xoffs;
-};
-
-class mcr_dpoker_state : public mcr_state
-{
-public:
- mcr_dpoker_state(const machine_config &mconfig, device_type type, const char *tag) :
- mcr_state(mconfig, type, tag),
- m_coin_in_timer(*this, "coinin"),
- m_hopper_timer(*this, "hopper"),
- m_lamps(*this, "lamp%u", 0U),
- m_meter_ram(*this, "meter", 0x200, ENDIANNESS_LITTLE)
- { }
-
- uint8_t ip0_r();
- void lamps1_w(uint8_t data);
- void lamps2_w(uint8_t data);
- void output_w(uint8_t data);
- void meters_w(uint8_t data);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_in_hit);
-
- TIMER_DEVICE_CALLBACK_MEMBER(hopper_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(coin_in_callback);
-
- void init_dpoker();
-
- void mcr_90009_dp(machine_config &config);
-
-protected:
- virtual void machine_start() override { mcr_state::machine_start(); m_lamps.resolve(); }
-
-private:
- uint8_t m_coin_status;
- uint8_t m_output;
-
- required_device<timer_device> m_coin_in_timer;
- required_device<timer_device> m_hopper_timer;
- output_finder<14> m_lamps;
- memory_share_creator<uint8_t> m_meter_ram;
-};
-
-class mcr_nflfoot_state : public mcr_state
-{
-public:
- mcr_nflfoot_state(const machine_config &mconfig, device_type type, const char *tag) :
- mcr_state(mconfig, type, tag),
- m_ipu(*this, "ipu"),
- m_ipu_sio(*this, "ipu_sio"),
- m_ipu_ctc(*this, "ipu_ctc"),
- m_ipu_pio0(*this, "ipu_pio0"),
- m_ipu_pio1(*this, "ipu_pio1")
- { }
-
- DECLARE_WRITE_LINE_MEMBER(sio_txda_w);
- DECLARE_WRITE_LINE_MEMBER(sio_txdb_w);
- void ipu_laserdisk_w(offs_t offset, uint8_t data);
- uint8_t ipu_watchdog_r();
- void ipu_watchdog_w(uint8_t data);
- uint8_t ip2_r();
- void op4_w(uint8_t data);
-
- TIMER_CALLBACK_MEMBER(ipu_watchdog_reset);
- TIMER_DEVICE_CALLBACK_MEMBER(ipu_interrupt);
-
- void init_nflfoot();
-
- void mcr_91490_ipu(machine_config &config);
- void ipu_91695_map(address_map &map);
- void ipu_91695_portmap(address_map &map);
-protected:
- virtual void machine_start() override;
-
-private:
- int m_ipu_sio_txda;
- int m_ipu_sio_txdb;
- emu_timer *m_ipu_watchdog_timer;
-
- required_device<z80_device> m_ipu;
- required_device<z80sio_device> m_ipu_sio;
- required_device<z80ctc_device> m_ipu_ctc;
- required_device<z80pio_device> m_ipu_pio0;
- required_device<z80pio_device> m_ipu_pio1;
-};
-
-/*----------- defined in machine/mcr.cpp -----------*/
-
-extern const z80_daisy_config mcr_daisy_chain[];
-extern const z80_daisy_config mcr_ipu_daisy_chain[];
-
-extern const gfx_layout mcr_bg_layout;
-extern const gfx_layout mcr_sprite_layout;
-
-#endif // MAME_INCLUDES_MCR_H
diff --git a/src/mame/includes/mcr3.h b/src/mame/includes/mcr3.h
deleted file mode 100644
index 5916e77fb59..00000000000
--- a/src/mame/includes/mcr3.h
+++ /dev/null
@@ -1,142 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Midway MCR-3 system
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_MCR3_H
-#define MAME_INCLUDES_MCR3_H
-
-#pragma once
-
-#include "includes/mcr.h"
-
-#include "machine/74259.h"
-#include "machine/adc0844.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class mcr3_state : public mcr_state
-{
-public:
- mcr3_state(const machine_config &mconfig, device_type type, const char *tag)
- : mcr_state(mconfig, type, tag)
- , m_spyhunt_alpharam(*this, "spyhunt_alpha")
- , m_screen(*this, "screen")
- , m_lamps(*this, "lamp%u", 0U)
- { }
-
- void mcrmono(machine_config &config);
- void mono_tcs(machine_config &config);
- void mcrscroll(machine_config &config);
- void mono_sg(machine_config &config);
-
- void init_crater();
- void init_demoderm();
- void init_powerdrv();
- void init_stargrds();
- void init_rampage();
- void init_sarge();
-
-protected:
- void mcr3_videoram_w(offs_t offset, uint8_t data);
- void spyhunt_videoram_w(offs_t offset, uint8_t data);
- void spyhunt_alpharam_w(offs_t offset, uint8_t data);
- void spyhunt_scroll_value_w(offs_t offset, uint8_t data);
- void mcrmono_control_port_w(uint8_t data);
- uint8_t demoderm_ip1_r();
- uint8_t demoderm_ip2_r();
- void demoderm_op6_w(uint8_t data);
- uint8_t rampage_ip4_r();
- void rampage_op6_w(uint8_t data);
- uint8_t powerdrv_ip2_r();
- void powerdrv_op5_w(uint8_t data);
- void powerdrv_op6_w(uint8_t data);
- uint8_t stargrds_ip0_r();
- void stargrds_op5_w(uint8_t data);
- void stargrds_op6_w(uint8_t data);
-
- DECLARE_VIDEO_START(spyhunt);
- void spyhunt_palette(palette_device &palette) const;
-
- uint32_t screen_update_mcr3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_spyhunt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void mcrmono_map(address_map &map);
- void mcrmono_portmap(address_map &map);
- void spyhunt_map(address_map &map);
- void spyhunt_portmap(address_map &map);
-
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
-
- optional_shared_ptr<uint8_t> m_spyhunt_alpharam;
- required_device<screen_device> m_screen;
- output_finder<3> m_lamps;
-
- uint8_t m_latched_input;
- uint8_t m_spyhunt_sprite_color_mask;
- int16_t m_spyhunt_scroll_offset;
- int16_t m_spyhunt_scrollx;
- int16_t m_spyhunt_scrolly;
- tilemap_t *m_alpha_tilemap;
-
- TILE_GET_INFO_MEMBER(mcrmono_get_bg_tile_info);
- TILEMAP_MAPPER_MEMBER(spyhunt_bg_scan);
- TILE_GET_INFO_MEMBER(spyhunt_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(spyhunt_get_alpha_tile_info);
- void mcr3_update_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int color_mask, int code_xor, int dx, int dy, int interlaced);
- void mcr_common_init();
-};
-
-class maxrpm_state : public mcr3_state
-{
-public:
- maxrpm_state(const machine_config &mconfig, device_type type, const char *tag)
- : mcr3_state(mconfig, type, tag)
- , m_maxrpm_adc(*this, "adc")
- { }
-
- void maxrpm(machine_config &config);
-
- void init_maxrpm();
-
-private:
- uint8_t maxrpm_ip1_r();
- uint8_t maxrpm_ip2_r();
- void maxrpm_op5_w(uint8_t data);
- void maxrpm_op6_w(uint8_t data);
-
- required_device<adc0844_device> m_maxrpm_adc;
-
- uint8_t m_maxrpm_adc_control;
- uint8_t m_maxrpm_last_shift;
- int8_t m_maxrpm_p1_shift;
- int8_t m_maxrpm_p2_shift;
-};
-
-class mcrsc_csd_state : public mcr3_state
-{
-public:
- mcrsc_csd_state(const machine_config &mconfig, device_type type, const char *tag)
- : mcr3_state(mconfig, type, tag)
- , m_lamplatch(*this, "lamplatch")
- { }
-
- void mcrsc_csd(machine_config &config);
-
- void init_spyhunt();
- void init_turbotag();
-
-private:
- uint8_t spyhunt_ip1_r();
- uint8_t spyhunt_ip2_r();
- void spyhunt_op4_w(uint8_t data);
- uint8_t turbotag_ip2_r();
- uint8_t turbotag_kludge_r();
-
- optional_device<cd4099_device> m_lamplatch;
-};
-
-#endif // MAME_INCLUDES_MCR3_H
diff --git a/src/mame/includes/mcr68.h b/src/mame/includes/mcr68.h
deleted file mode 100644
index ce2006f1f0f..00000000000
--- a/src/mame/includes/mcr68.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles, Bryan McPhail
-/***************************************************************************
-
- Midway MCR-68k system
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_MCR68_H
-#define MAME_INCLUDES_MCR68_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "audio/midway.h"
-#include "audio/s11c_bg.h"
-#include "machine/6840ptm.h"
-#include "machine/adc0844.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class mcr68_state : public driver_device
-{
-public:
- mcr68_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_sounds_good(*this, "sg"),
- m_turbo_cheap_squeak(*this, "tcs"),
- m_bg(*this, "bg"),
- m_adc(*this, "adc"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram") ,
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_ptm(*this, "ptm")
- { }
-
- void mcr68(machine_config &config);
- void intlaser(machine_config &config);
- void xenophob(machine_config &config);
- void spyhunt2(machine_config &config);
- void trisport(machine_config &config);
- void pigskin(machine_config &config);
- void archrivl(machine_config &config);
-
- void init_intlaser();
- void init_pigskin();
- void init_blasted();
- void init_trisport();
- void init_xenophob();
- void init_archrivl();
- void init_spyhunt2();
- void init_archrivlb();
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- optional_device<midway_sounds_good_device> m_sounds_good;
- optional_device<midway_turbo_cheap_squeak_device> m_turbo_cheap_squeak;
- optional_device<s11c_bg_device> m_bg;
- optional_device<adc0844_device> m_adc;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<ptm6840_device> m_ptm;
-
- uint16_t m_control_word;
- uint8_t m_protection_data[5];
- attotime m_timing_factor;
- uint8_t m_sprite_clip;
- int8_t m_sprite_xoffset;
- timer_expired_delegate m_v493_callback;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- void xenophobe_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void blasted_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t spyhunt2_port_0_r();
- uint16_t spyhunt2_port_1_r();
- void spyhunt2_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t archrivl_port_1_r();
- void archrivl_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void pigskin_protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t pigskin_protection_r();
- uint16_t pigskin_port_1_r();
- uint16_t pigskin_port_2_r();
- uint16_t trisport_port_1_r();
- void mcr68_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t archrivlb_port_1_r();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- uint32_t screen_update_mcr68(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_cb);
- TIMER_CALLBACK_MEMBER(mcr68_493_off_callback);
- TIMER_CALLBACK_MEMBER(mcr68_493_callback);
- void mcr68_update_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int priority);
- void mcr68_common_init(int clip, int xoffset);
- std::unique_ptr<uint8_t[]> m_srcdata0;
- std::unique_ptr<uint8_t[]> m_srcdata2;
-
- void mcr68_map(address_map &map);
- void pigskin_map(address_map &map);
- void trisport_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MCR68_H
diff --git a/src/mame/includes/meadows.h b/src/mame/includes/meadows.h
deleted file mode 100644
index 9b25f4fd2c7..00000000000
--- a/src/mame/includes/meadows.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Juergen Buchmueller
-/*************************************************************************
-
- Meadows S2650 hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MEADOWS_H
-#define MAME_INCLUDES_MEADOWS_H
-
-#pragma once
-
-#include "cpu/s2650/s2650.h"
-#include "sound/dac.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class meadows_state : public driver_device
-{
-public:
- meadows_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_dac(*this, "dac"),
- m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram")
- {
- }
-
- void bowl3d(machine_config &config);
- void meadows(machine_config &config);
- void minferno(machine_config &config);
-
- void init_minferno();
- void init_gypsyjug();
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void machine_start() override { m_main_sense_state = 0; }
- virtual void video_start() override;
-
-private:
- required_device<s2650_device> m_maincpu;
- optional_device<s2650_device> m_audiocpu;
- optional_device<dac_8bit_r2r_device> m_dac;
- optional_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- optional_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
-
- int m_channel;
- int m_freq1;
- int m_freq2;
- uint8_t m_latched_0c01;
- uint8_t m_latched_0c02;
- uint8_t m_latched_0c03;
- uint8_t m_main_sense_state;
- uint8_t m_audio_sense_state;
- uint8_t m_0c00;
- uint8_t m_0c01;
- uint8_t m_0c02;
- uint8_t m_0c03;
- tilemap_t *m_bg_tilemap;
- uint8_t hsync_chain_r();
- uint8_t vsync_chain_hi_r();
- uint8_t vsync_chain_lo_r();
- void meadows_audio_w(offs_t offset, uint8_t data);
- void audio_hardware_w(offs_t offset, uint8_t data);
- uint8_t audio_hardware_r(offs_t offset);
- void meadows_videoram_w(offs_t offset, uint8_t data);
- void meadows_spriteram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update_meadows(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(meadows_vblank_irq);
- DECLARE_WRITE_LINE_MEMBER(minferno_vblank_irq);
- INTERRUPT_GEN_MEMBER(audio_interrupt);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &clip);
- void meadows_sh_update();
- SAMPLES_START_CB_MEMBER(meadows_sh_start);
- void audio_map(address_map &map);
- void bowl3d_main_map(address_map &map);
- void meadows_main_map(address_map &map);
- void minferno_data_map(address_map &map);
- void minferno_main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MEADOWS_H
diff --git a/src/mame/includes/megadriv.h b/src/mame/includes/megadriv.h
deleted file mode 100644
index 4c99edda1b7..00000000000
--- a/src/mame/includes/megadriv.h
+++ /dev/null
@@ -1,250 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_MEGADRIV_H
-#define MAME_INCLUDES_MEGADRIV_H
-
-#pragma once
-
-#include "coreutil.h"
-#include "cpu/m68000/m68000.h"
-#include "cpu/z80/z80.h"
-#include "sound/sn76496.h"
-#include "sound/ym2612.h"
-#include "video/315_5313.h"
-
-/* Megadrive Console Specific */
-#include "bus/megadrive/md_slot.h"
-#include "bus/megadrive/md_carts.h"
-#include "machine/mega32x.h"
-#include "machine/megacd.h"
-
-#define MASTER_CLOCK_NTSC 53693175
-#define MASTER_CLOCK_PAL 53203424
-
-#define MD_CPU_REGION_SIZE 0x800000
-
-
-/*----------- defined in machine/megadriv.cpp -----------*/
-
-INPUT_PORTS_EXTERN( md_common );
-INPUT_PORTS_EXTERN( megadriv );
-INPUT_PORTS_EXTERN( megadri6 );
-INPUT_PORTS_EXTERN( ssf2mdb );
-INPUT_PORTS_EXTERN( mk3mdb );
-
-
-class md_base_state : public driver_device
-{
-public:
- md_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_z80snd(*this,"genesis_snd_z80"),
- m_ymsnd(*this,"ymsnd"),
- m_scan_timer(*this, "md_scan_timer"),
- m_vdp(*this,"gen_vdp"),
- m_megadrive_ram(*this,"megadrive_ram"),
- m_screen(*this,"megadriv"),
- m_io_reset(*this, "RESET"),
- m_megadrive_io_read_data_port_ptr(*this),
- m_megadrive_io_write_data_port_ptr(*this)
- { }
-
- required_device<m68000_base_device> m_maincpu;
- optional_device<cpu_device> m_z80snd;
- optional_device<ym2612_device> m_ymsnd;
- optional_device<timer_device> m_scan_timer;
- required_device<sega315_5313_device> m_vdp;
- optional_shared_ptr<uint16_t> m_megadrive_ram;
- optional_device<screen_device> m_screen;
-
- optional_ioport m_io_reset;
- ioport_port *m_io_pad_3b[4];
- ioport_port *m_io_pad_6b[4];
-
-struct genesis_z80_vars
-{
- int z80_is_reset = 0;
- int z80_has_bus = 0;
- uint32_t z80_bank_addr = 0;
- std::unique_ptr<uint8_t[]> z80_prgram;
-};
-
- genesis_z80_vars m_genz80;
- int m_version_hi_nibble;
-
- void init_megadriv_c2();
- void init_megadrie();
- void init_megadriv();
- void init_megadrij();
-
- uint8_t megadriv_68k_YM2612_read(offs_t offset, uint8_t mem_mask = ~0);
- void megadriv_68k_YM2612_write(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- IRQ_CALLBACK_MEMBER(genesis_int_callback);
- void megadriv_init_common();
-
- void megadriv_z80_bank_w(uint16_t data);
- void megadriv_68k_z80_bank_write(uint16_t data);
- void megadriv_z80_z80_bank_w(uint8_t data);
- uint16_t megadriv_68k_io_read(offs_t offset);
- void megadriv_68k_io_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t megadriv_68k_read_z80_ram(offs_t offset, uint16_t mem_mask = ~0);
- void megadriv_68k_write_z80_ram(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t megadriv_68k_check_z80_bus(offs_t offset, uint16_t mem_mask = ~0);
- void megadriv_68k_req_z80_bus(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void megadriv_68k_req_z80_reset(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t z80_read_68k_banked_data(offs_t offset);
- void z80_write_68k_banked_data(offs_t offset, uint8_t data);
- void megadriv_z80_vdp_write(offs_t offset, uint8_t data);
- uint8_t megadriv_z80_vdp_read(offs_t offset);
- uint8_t megadriv_z80_unmapped_read();
- TIMER_CALLBACK_MEMBER(megadriv_z80_run_state);
-
- /* Megadrive / Genesis has 3 I/O ports */
- emu_timer *m_io_timeout[3];
- int m_io_stage[3];
- uint8_t m_megadrive_io_data_regs[3];
- uint8_t m_megadrive_io_ctrl_regs[3];
- uint8_t m_megadrive_io_tx_regs[3];
- read8sm_delegate m_megadrive_io_read_data_port_ptr;
- write16sm_delegate m_megadrive_io_write_data_port_ptr;
-
- WRITE_LINE_MEMBER(vdp_sndirqline_callback_genesis_z80);
- WRITE_LINE_MEMBER(vdp_lv6irqline_callback_genesis_68k);
- WRITE_LINE_MEMBER(vdp_lv4irqline_callback_genesis_68k);
-
- TIMER_CALLBACK_MEMBER( io_timeout_timer_callback );
- void megadrive_reset_io();
- uint8_t megadrive_io_read_data_port_6button(offs_t offset);
- uint8_t megadrive_io_read_data_port_3button(offs_t offset);
- uint8_t megadrive_io_read_ctrl_port(int portnum);
- uint8_t megadrive_io_read_tx_port(int portnum);
- uint8_t megadrive_io_read_rx_port(int portnum);
- uint8_t megadrive_io_read_sctrl_port(int portnum);
-
- void megadrive_io_write_data_port_3button(offs_t offset, uint16_t data);
- void megadrive_io_write_data_port_6button(offs_t offset, uint16_t data);
- void megadrive_io_write_ctrl_port(int portnum, uint16_t data);
- void megadrive_io_write_tx_port(int portnum, uint16_t data);
- void megadrive_io_write_rx_port(int portnum, uint16_t data);
- void megadrive_io_write_sctrl_port(int portnum, uint16_t data);
-
- void megadriv_stop_scanline_timer();
-
- uint32_t screen_update_megadriv(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_megadriv);
-
- void megadriv_tas_callback(offs_t offset, uint8_t data);
-
- void megadriv_timers(machine_config &config);
- void md_ntsc(machine_config &config);
- void md2_ntsc(machine_config &config);
- void md_pal(machine_config &config);
- void md2_pal(machine_config &config);
- void md_bootleg(machine_config &config);
-
- void dcat16_megadriv_base(machine_config &config);
- void dcat16_megadriv_map(address_map &map);
- void megadriv_map(address_map &map);
- void megadriv_z80_io_map(address_map &map);
- void megadriv_z80_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-};
-
-class md_cons_state : public md_base_state
-{
-public:
- md_cons_state(const machine_config &mconfig, device_type type, const char *tag) :
- md_base_state(mconfig, type, tag),
- m_32x(*this,"sega32x"),
- m_segacd(*this,"segacd"),
- m_cart(*this, "mdslot"),
- m_tmss(*this, "tmss")
- { }
-
- ioport_port *m_io_ctrlr;
- ioport_port *m_io_pad3b[4];
- ioport_port *m_io_pad6b[2][4];
-
- optional_device<sega_32x_device> m_32x;
- optional_device<sega_segacd_device> m_segacd;
- optional_device<md_cart_slot_device> m_cart;
- optional_region_ptr<uint16_t> m_tmss;
-
- void init_mess_md_common();
- void init_genesis();
- void init_md_eur();
- void init_md_jpn();
-
- uint8_t mess_md_io_read_data_port(offs_t offset);
- void mess_md_io_write_data_port(offs_t offset, uint16_t data);
-
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_console);
-
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( _32x_cart );
-
- void _32x_scanline_callback(int x, uint32_t priority, uint32_t &lineptr);
- void _32x_interrupt_callback(int scanline, int irq6);
- void _32x_scanline_helper_callback(int scanline);
-
- void install_cartslot();
- void install_tmss();
- uint16_t tmss_r(offs_t offset);
- void tmss_swap_w(uint16_t data);
- void dcat16_megadriv_base(machine_config &config);
- void dcat16_megadriv(machine_config &config);
-
- void md_32x(machine_config &config);
- void genesis_32x(machine_config &config);
- void mdj_32x(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-};
-
-class md_cons_slot_state : public md_cons_state
-{
-public:
- md_cons_slot_state(const machine_config &mconfig, device_type type, const char *tag) :
- md_cons_state(mconfig, type, tag)
- { }
-
- void ms_megadpal(machine_config &config);
- void ms_megadriv(machine_config &config);
- void ms_megadriv2(machine_config &config);
-
- void genesis_tmss(machine_config &config);
-
-
-protected:
- virtual void machine_start() override;
-};
-
-class md_cons_cd_state : public md_cons_state
-{
-public:
- md_cons_cd_state(const machine_config &mconfig, device_type type, const char *tag) :
- md_cons_state(mconfig, type, tag)
- { }
-
- void genesis_scd(machine_config &config);
- void genesis2_scd(machine_config &config);
- void md_scd(machine_config &config);
- void md2_scd(machine_config &config);
- void mdj_scd(machine_config &config);
-
- void mdj_32x_scd(machine_config &config);
- void md2j_scd(machine_config &config);
- void genesis_32x_scd(machine_config &config);
- void md_32x_scd(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-};
-
-#endif // MAME_INCLUDES_MEGADRIV_H
diff --git a/src/mame/includes/megadriv_acbl.h b/src/mame/includes/megadriv_acbl.h
deleted file mode 100644
index 579a028450b..00000000000
--- a/src/mame/includes/megadriv_acbl.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-
-#ifndef MAME_INCLUDES_MEGADRIV_ACBL_H
-#define MAME_INCLUDES_MEGADRIV_ACBL_H
-
-class md_boot_state : public md_base_state
-{
-public:
- md_boot_state(const machine_config &mconfig, device_type type, const char *tag)
- : md_base_state(mconfig, type, tag) { m_protcount = 0;}
-
- void megadrvb(machine_config &config);
- void md_bootleg(machine_config &config);
- void puckpkmn(machine_config &config);
- void jzth(machine_config &config);
- void puckpkmna(machine_config &config);
-
- void init_aladmdb();
- void init_mk3mdb();
- void init_ssf2mdb();
- void init_srmdb();
- void init_topshoot();
- void init_puckpkmn();
- void init_hshavoc();
- void init_barek2();
- void init_barek2ch();
- void init_barek3();
- void init_barekch();
- void init_bk3ssrmb();
- void init_sonic2mb();
- void init_twinktmb();
- void init_jparkmb();
- void init_sbubsm();
-
-private:
- void bl_710000_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t bl_710000_r();
- void aladmdb_w(uint16_t data);
- uint16_t aladmdb_r();
- uint16_t barek2mb_r();
- uint16_t jparkmb_r();
- uint16_t twinktmb_r();
- uint16_t dsw_r(offs_t offset);
- uint16_t topshoot_200051_r();
- uint16_t sbubsm_400000_r();
- uint16_t sbubsm_400002_r();
- uint16_t puckpkmna_70001c_r();
- uint16_t puckpkmna_4b2476_r();
-
- void jzth_map(address_map &map);
- void md_bootleg_map(address_map &map);
- void puckpkmn_map(address_map &map);
- void puckpkmna_map(address_map &map);
-
- // bootleg specific
- int m_aladmdb_mcu_port;
-
- int m_protcount;
-};
-
-class md_boot_6button_state : public md_boot_state
-{
-public:
- md_boot_6button_state(const machine_config& mconfig, device_type type, const char* tag)
- : md_boot_state(mconfig, type, tag)
- {
- }
-
- void megadrvb_6b(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-};
-
-#endif // MAME_INCLUDES_MEGADRIV_ACBL_H
diff --git a/src/mame/includes/megadriv_rad.h b/src/mame/includes/megadriv_rad.h
deleted file mode 100644
index 0ea4d58ff3d..00000000000
--- a/src/mame/includes/megadriv_rad.h
+++ /dev/null
@@ -1,107 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-
-#ifndef MAME_INCLUDES_MEGADRIV_RAD_H
-#define MAME_INCLUDES_MEGADRIV_RAD_H
-
-class megadriv_radica_state : public md_base_state
-{
-public:
- megadriv_radica_state(const machine_config &mconfig, device_type type, const char *tag)
- : md_base_state(mconfig, type, tag),
- m_bank(0),
- m_romsize(0x400000),
- m_rom(*this, "maincpu")
- {}
-
-
- uint16_t read(offs_t offset);
- uint16_t read_a13(offs_t offset);
-
- void megadriv_radica_map(address_map &map);
-
-protected:
- void megadriv_base_map(address_map &map);
- int m_bank;
- int m_romsize;
-
-private:
- required_region_ptr<uint16_t> m_rom;
-};
-
-class megadriv_radica_3button_state : public megadriv_radica_state
-{
-public:
- megadriv_radica_3button_state(const machine_config& mconfig, device_type type, const char* tag)
- : megadriv_radica_state(mconfig, type, tag)
- {}
-public:
- void megadriv_radica_3button_ntsc(machine_config &config);
- void megadriv_radica_3button_pal(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-};
-
-class megadriv_radica_6button_state : public megadriv_radica_3button_state
-{
-public:
- void megadriv_radica_6button_ntsc(machine_config &config);
- void megadriv_radica_6button_pal(machine_config &config);
-
- void init_megadriv_radica_6button_pal();
- void init_megadriv_radica_6button_ntsc();
-
-public:
- megadriv_radica_6button_state(const machine_config& mconfig, device_type type, const char* tag)
- : megadriv_radica_3button_state(mconfig, type, tag)
- {}
- virtual void machine_start() override;
-};
-
-class megadriv_dgunl_state : public megadriv_radica_3button_state
-{
-public:
- megadriv_dgunl_state(const machine_config& mconfig, device_type type, const char* tag)
- : megadriv_radica_3button_state(mconfig, type, tag)
- {}
-public:
- void megadriv_dgunl_ntsc(machine_config &config);
-
- void init_dgunl3227();
-
-protected:
- virtual void machine_start() override;
- uint16_t m_a1630a;
-
-private:
- uint16_t read_a16300(offs_t offset, uint16_t mem_mask);
- uint16_t read_a16302(offs_t offset, uint16_t mem_mask);
- virtual void write_a1630a(offs_t offset, uint16_t data, uint16_t mem_mask);
-
- void megadriv_dgunl_map(address_map &map);
-};
-
-class megadriv_ra145_state : public megadriv_dgunl_state
-{
-public:
- megadriv_ra145_state(const machine_config& mconfig, device_type type, const char* tag)
- : megadriv_dgunl_state(mconfig, type, tag)
- {}
-
- void init_ra145();
-
-public:
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- virtual void write_a1630a(offs_t offset, uint16_t data, uint16_t mem_mask) override;
-};
-
-
-
-#endif // MAME_INCLUDES_MEGADRIV_RAD_H
diff --git a/src/mame/includes/megasys1.h b/src/mame/includes/megasys1.h
deleted file mode 100644
index 22882db2546..00000000000
--- a/src/mame/includes/megasys1.h
+++ /dev/null
@@ -1,218 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/***************************************************************************
-
- -= Jaleco Mega System 1 =-
-
- driver by Luca Elia (l.elia@tin.it)
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_MEGASYS1_H
-#define MAME_INCLUDES_MEGASYS1_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/msm5205.h"
-#include "sound/okim6295.h"
-#include "video/ms1_tmap.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-class megasys1_state : public driver_device
-{
-public:
- megasys1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_objectram(*this, "objectram"),
- m_tmap(*this, "scroll%u", 0),
- m_ram(*this, "ram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki%u", 1U),
- m_ymsnd(*this, "ymsnd"),
- m_p47b_adpcm(*this, "msm%u", 1U),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch%u", 1U),
- m_scantimer(*this, "scantimer"),
- m_rom_maincpu(*this, "maincpu"),
- m_okibank(*this, "okibank"),
- m_io_system(*this, "SYSTEM"),
- m_io_p1(*this, "P1"),
- m_io_p2(*this, "P2"),
- m_io_dsw(*this, "DSW"),
- m_io_dsw1(*this, "DSW1"),
- m_io_dsw2(*this, "DSW2")
- { }
-
- void system_A_soldam(machine_config &config);
- void system_B_monkelf(machine_config &config);
- void system_A_iganinju(machine_config &config);
- void system_A_hachoo(machine_config &config);
- void kickoffb(machine_config &config);
- void p47b(machine_config &config);
- void system_D(machine_config &config);
- void system_C(machine_config &config);
- void system_Bbl(machine_config &config);
- void system_A(machine_config &config);
- void system_A_jitsupro(machine_config &config);
- void system_B(machine_config &config);
- void system_B_hayaosi1(machine_config &config);
- void system_Z(machine_config &config);
-
- void init_64street();
- void init_chimerab();
- void init_peekaboo();
- void init_soldam();
- void init_astyanax();
- void init_stdragon();
- void init_hayaosi1();
- void init_soldamj();
- void init_phantasm();
- void init_jitsupro();
- void init_iganinju();
- void init_cybattlr();
- void init_rodlandj();
- void init_rittam();
- void init_rodlandjb();
- void init_avspirit();
- void init_monkelf();
- void init_edf();
- void init_edfp();
- void init_bigstrik();
- void init_rodland();
- void init_edfbl();
- void init_stdragona();
- void init_stdragonb();
- void init_systemz();
-
-private:
- required_shared_ptr<u16> m_objectram;
- optional_device_array<megasys1_tilemap_device, 3> m_tmap;
- required_shared_ptr<u16> m_ram;
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device_array<okim6295_device, 2> m_oki;
- optional_device<device_t> m_ymsnd;
- optional_device_array<msm5205_device, 2> m_p47b_adpcm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- optional_device_array<generic_latch_16_device, 2> m_soundlatch;
- optional_device<timer_device> m_scantimer;
- required_region_ptr<u16> m_rom_maincpu;
- optional_memory_bank m_okibank;
- required_ioport m_io_system;
- required_ioport m_io_p1;
- required_ioport m_io_p2;
- optional_ioport m_io_dsw;
- optional_ioport m_io_dsw1;
- optional_ioport m_io_dsw2;
-
- // configuration
- u16 m_ip_select_values[7]; // System B and C
- int m_hardware_type_z; // System Z
- int m_layers_order[16];
- u8 m_ignore_oki_status;
-
- // all
- bitmap_ind16 m_sprite_buffer_bitmap;
- u16 m_screen_flag;
- std::unique_ptr<u16[]> m_buffer_objectram;
- std::unique_ptr<u16[]> m_buffer2_objectram;
- std::unique_ptr<u16[]> m_buffer_spriteram16;
- std::unique_ptr<u16[]> m_buffer2_spriteram16;
-
- // all but System Z
- u16 m_active_layers;
- u16 m_sprite_flag;
-
- // System B and C
- u16 m_ip_latched;
-
- // System C
- u16 m_sprite_bank;
-
- // System A only
- int m_mcu_hs;
- u16 m_mcu_hs_ram[0x10];
-
- // peekaboo
- u16 m_protection_val;
-
- // soldam
- u16 *m_spriteram;
-
- DECLARE_WRITE_LINE_MEMBER(sound_irq);
- u16 ip_select_r();
- void ip_select_w(u16 data);
- u16 protection_peekaboo_r();
- void protection_peekaboo_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 megasys1A_mcu_hs_r(offs_t offset, u16 mem_mask = ~0);
- void megasys1A_mcu_hs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 iganinju_mcu_hs_r(offs_t offset, u16 mem_mask = ~0);
- void iganinju_mcu_hs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 soldamj_spriteram16_r(offs_t offset);
- void soldamj_spriteram16_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 stdragon_mcu_hs_r(offs_t offset, u16 mem_mask = ~0);
- void stdragon_mcu_hs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void active_layers_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sprite_bank_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 sprite_flag_r();
- void sprite_flag_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void screen_flag_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void soundlatch_w(u16 data);
- void soundlatch_z_w(u16 data);
- void soundlatch_c_w(u16 data);
- void monkelf_scroll0_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void monkelf_scroll1_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void megasys1_set_vreg_flag(int which, int data);
- template<int Chip> u8 oki_status_r();
- void ram_w(offs_t offset, u16 data);
- void p47b_adpcm_w(offs_t offset, u8 data);
-
- DECLARE_MACHINE_RESET(megasys1);
- DECLARE_VIDEO_START(megasys1);
- DECLARE_VIDEO_START(megasys1_z);
- void megasys1_palette(palette_device &palette);
- DECLARE_MACHINE_RESET(megasys1_hachoo);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- INTERRUPT_GEN_MEMBER(megasys1D_irq);
- TIMER_DEVICE_CALLBACK_MEMBER(megasys1A_scanline);
- TIMER_DEVICE_CALLBACK_MEMBER(megasys1A_iganinju_scanline);
- TIMER_DEVICE_CALLBACK_MEMBER(megasys1B_scanline);
-
- void priority_create();
- void mix_sprite_bitmap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void partial_clear_sprite_bitmap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u8 param);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
- inline void draw_16x16_priority_sprite(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect, s32 code, s32 color, s32 sx, s32 sy, s32 flipx, s32 flipy, u8 mosaic, u8 mosaicsol, s32 priority);
- void rodland_gfx_unmangle(const char *region);
- void jitsupro_gfx_unmangle(const char *region);
- void stdragona_gfx_unmangle(const char *region);
- void kickoffb_sound_map(address_map &map);
- void p47b_sound_map(address_map &map);
- void p47b_extracpu_prg_map(address_map &map);
- void p47b_extracpu_io_map(address_map &map);
- void megasys1A_map(address_map &map);
- void megasys1A_sound_map(address_map &map);
- void megasys1A_jitsupro_sound_map(address_map &map);
- void megasys1B_edfbl_map(address_map &map);
- void megasys1B_map(address_map &map);
- void megasys1B_monkelf_map(address_map &map);
- void megasys1B_sound_map(address_map &map);
- void megasys1C_map(address_map &map);
- void megasys1D_map(address_map &map);
- void megasys1D_oki_map(address_map &map);
- void megasys1Z_map(address_map &map);
- void z80_sound_io_map(address_map &map);
- void z80_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MEGASYS1_H
diff --git a/src/mame/includes/megazone.h b/src/mame/includes/megazone.h
deleted file mode 100644
index 7a1059bb45b..00000000000
--- a/src/mame/includes/megazone.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Chris Hardy
-/*************************************************************************
-
- Megazone
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MEGAZONE_H
-#define MAME_INCLUDES_MEGAZONE_H
-
-#pragma once
-
-#include "cpu/mcs48/mcs48.h"
-#include "sound/flt_rc.h"
-#include "emupal.h"
-
-class megazone_state : public driver_device
-{
-public:
- megazone_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_scrolly(*this, "scrolly"),
- m_scrollx(*this, "scrollx"),
- m_videoram(*this, "videoram"),
- m_videoram2(*this, "videoram2"),
- m_colorram(*this, "colorram"),
- m_colorram2(*this, "colorram2"),
- m_spriteram(*this, "spriteram"),
- m_share1(*this, "share1"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_daccpu(*this, "daccpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_filter(*this, "filter.0.%u", 0U)
- { }
-
- void megazone(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_scrolly;
- required_shared_ptr<uint8_t> m_scrollx;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_colorram2;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_share1;
-
- /* video-related */
- std::unique_ptr<bitmap_ind16> m_tmpbitmap;
- int m_flipscreen;
-
- /* misc */
- int m_i8039_status;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<i8039_device> m_daccpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device_array<filter_rc_device, 3> m_filter;
-
- uint8_t m_irq_mask;
- void megazone_i8039_irq_w(uint8_t data);
- void i8039_irqen_and_status_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- uint8_t megazone_port_a_r();
- void megazone_port_b_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void megazone_palette(palette_device &palette) const;
- uint32_t screen_update_megazone(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void megazone_i8039_io_map(address_map &map);
- void megazone_i8039_map(address_map &map);
- void megazone_map(address_map &map);
- void megazone_sound_io_map(address_map &map);
- void megazone_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MEGAZONE_H
diff --git a/src/mame/includes/mermaid.h b/src/mame/includes/mermaid.h
deleted file mode 100644
index be883de73fb..00000000000
--- a/src/mame/includes/mermaid.h
+++ /dev/null
@@ -1,122 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/*************************************************************************
-
- Mermaid
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MERMAID_H
-#define MAME_INCLUDES_MERMAID_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/ripple_counter.h"
-#include "sound/msm5205.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class mermaid_state : public driver_device
-{
-public:
- mermaid_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram2(*this, "videoram2"),
- m_videoram(*this, "videoram"),
- m_bg_scrollram(*this, "bg_scrollram"),
- m_fg_scrollram(*this, "fg_scrollram"),
- m_spriteram(*this, "spriteram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_adpcm(*this, "adpcm"),
- m_adpcm_counter(*this, "adpcm_counter"),
- m_ay8910(*this, "ay%u", 1),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_latch(*this, "latch%u", 1U)
- {
- }
-
- void rougien(machine_config &config);
- void mermaid(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_bg_scrollram;
- required_shared_ptr<uint8_t> m_fg_scrollram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- bitmap_ind16 m_helper;
- bitmap_ind16 m_helper2;
- int m_coll_bit0;
- int m_coll_bit1;
- int m_coll_bit2;
- int m_coll_bit3;
- int m_coll_bit6;
- int m_rougien_gfxbank1;
- int m_rougien_gfxbank2;
-
- /* sound-related */
- uint8_t m_adpcm_idle;
- int m_adpcm_data;
- uint8_t m_adpcm_trigger;
- uint8_t m_adpcm_rom_sel;
- bool m_ay8910_enable[2];
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<msm5205_device> m_adpcm;
- optional_device<ripple_counter_device> m_adpcm_counter;
- required_device_array<ay8910_device, 2> m_ay8910;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device_array<ls259_device, 2> m_latch;
-
- uint8_t m_nmi_mask;
- void mermaid_ay8910_write_port_w(uint8_t data);
- void mermaid_ay8910_control_port_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(ay1_enable_w);
- DECLARE_WRITE_LINE_MEMBER(ay2_enable_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- DECLARE_WRITE_LINE_MEMBER(rougien_sample_rom_lo_w);
- DECLARE_WRITE_LINE_MEMBER(rougien_sample_rom_hi_w);
- DECLARE_WRITE_LINE_MEMBER(rougien_sample_playback_w);
- void adpcm_data_w(uint8_t data);
- void mermaid_videoram2_w(offs_t offset, uint8_t data);
- void mermaid_videoram_w(offs_t offset, uint8_t data);
- void mermaid_colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
- void mermaid_bg_scroll_w(offs_t offset, uint8_t data);
- void mermaid_fg_scroll_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(rougien_gfxbankswitch1_w);
- DECLARE_WRITE_LINE_MEMBER(rougien_gfxbankswitch2_w);
- uint8_t mermaid_collision_r();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void common_palette(palette_device &palette) const;
- void mermaid_palette(palette_device &palette) const;
- void rougien_palette(palette_device &palette) const;
- uint32_t screen_update_mermaid(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_mermaid);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- uint8_t collision_check( rectangle& rect );
- void collision_update();
- DECLARE_WRITE_LINE_MEMBER(rougien_adpcm_int);
- void mermaid_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MERMAID_H
diff --git a/src/mame/includes/metalmx.h b/src/mame/includes/metalmx.h
deleted file mode 100644
index 03a34274776..00000000000
--- a/src/mame/includes/metalmx.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett
-#ifndef MAME_INCLUDES_METALMX_H
-#define MAME_INCLUDES_METALMX_H
-
-#pragma once
-
-#include "audio/cage.h"
-
-#include "cpu/adsp2100/adsp2100.h"
-#include "cpu/m68000/m68000.h"
-#include "cpu/tms34010/tms34010.h"
-#include "cpu/dsp32/dsp32.h"
-
-class metalmx_state : public driver_device
-{
-public:
- metalmx_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gsp(*this, "gsp"),
- m_adsp(*this, "adsp"),
- m_dsp32c(*this, "dsp32c_%u", 1U),
- m_cage(*this, "cage"),
- m_adsp_internal_program_ram(*this, "adsp_intprog"),
- m_gsp_dram(*this, "gsp_dram"),
- m_gsp_vram(*this, "gsp_vram")
- { }
-
- void init_metalmx();
- void metalmx(machine_config &config);
-
-private:
- uint32_t unk_r();
- uint32_t watchdog_r();
- void shifter_w(uint32_t data);
- void motor_w(uint32_t data);
- void reset_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t sound_data_r(offs_t offset, uint32_t mem_mask = ~0);
- void sound_data_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- template<int Chip> void dsp32c_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- template<int Chip> uint32_t dsp32c_r(offs_t offset, uint32_t mem_mask = ~0);
- void host_gsp_w(offs_t offset, uint32_t data);
- uint32_t host_gsp_r(offs_t offset);
- uint32_t host_dram_r(offs_t offset);
- void host_dram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t host_vram_r(offs_t offset);
- void host_vram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void timer_w(offs_t offset, uint32_t data);
- void cage_irq_callback(uint8_t data);
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_metalmx(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void adsp_data_map(address_map &map);
- void adsp_program_map(address_map &map);
- void dsp32c_1_map(address_map &map);
- void dsp32c_2_map(address_map &map);
- void gsp_map(address_map &map);
- void main_map(address_map &map);
-
- required_device<m68ec020_device> m_maincpu;
- required_device<tms34020_device> m_gsp;
- required_device<adsp2105_device> m_adsp;
- required_device_array<dsp32c_device, 2> m_dsp32c;
- required_device<atari_cage_device> m_cage;
-
- required_shared_ptr<uint32_t> m_adsp_internal_program_ram;
- required_shared_ptr<uint32_t> m_gsp_dram;
- required_shared_ptr<uint32_t> m_gsp_vram;
-};
-
-#endif // MAME_INCLUDES_METALMX_H
diff --git a/src/mame/includes/metlclsh.h b/src/mame/includes/metlclsh.h
deleted file mode 100644
index a9e50881a7a..00000000000
--- a/src/mame/includes/metlclsh.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/*************************************************************************
-
- Metal Clash
-
-*************************************************************************/
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class metlclsh_state : public driver_device
-{
-public:
- metlclsh_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_fgram(*this, "fgram"),
- m_spriteram(*this, "spriteram"),
- m_bgram(*this, "bgram"),
- m_scrollx(*this, "scrollx"),
- m_rambank(*this, "rambank"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette") { }
-
- void metlclsh(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_fgram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_bgram;
- required_shared_ptr<uint8_t> m_scrollx;
- required_memory_bank m_rambank;
- std::unique_ptr<uint8_t[]> m_otherram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_write_mask;
- uint8_t m_gfxbank;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- void metlclsh_cause_irq(uint8_t data);
- void metlclsh_ack_nmi(uint8_t data);
- void metlclsh_cause_nmi2(uint8_t data);
- void metlclsh_ack_irq2(uint8_t data);
- void metlclsh_ack_nmi2(uint8_t data);
- void metlclsh_flipscreen_w(uint8_t data);
- void metlclsh_rambank_w(uint8_t data);
- void metlclsh_gfxbank_w(uint8_t data);
- void metlclsh_bgram_w(offs_t offset, uint8_t data);
- void metlclsh_fgram_w(offs_t offset, uint8_t data);
- TILEMAP_MAPPER_MEMBER(metlclsh_bgtilemap_scan);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_metlclsh(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void metlclsh_master_map(address_map &map);
- void metlclsh_slave_map(address_map &map);
-};
diff --git a/src/mame/includes/metro.h b/src/mame/includes/metro.h
deleted file mode 100644
index a7d1ced1cab..00000000000
--- a/src/mame/includes/metro.h
+++ /dev/null
@@ -1,231 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia, David Haywood
-/*************************************************************************
-
- Metro Games
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_METRO_H
-#define MAME_INCLUDES_METRO_H
-
-#pragma once
-
-#include "sound/es8712.h"
-#include "sound/okim6295.h"
-#include "sound/ym2151.h"
-#include "video/k053936.h"
-#include "video/imagetek_i4100.h"
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class metro_state : public driver_device
-{
-public:
- metro_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_oki(*this, "oki")
- , m_ymsnd(*this, "ymsnd")
- , m_essnd(*this, "essnd")
- , m_vdp(*this, "vdp")
- , m_vdp2(*this, "vdp2")
- , m_vdp3(*this, "vdp3")
- , m_k053936(*this, "k053936")
- , m_eeprom(*this, "eeprom")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_soundlatch(*this, "soundlatch")
- , m_input_sel(*this, "input_sel")
- , m_k053936_ram(*this, "k053936_ram")
- , m_audiobank(*this, "audiobank")
- , m_okibank(*this, "okibank")
- { }
-
- void i4100_config(machine_config &config);
- void i4100_config_360x224(machine_config &config);
- void i4220_config(machine_config &config);
- void i4220_config_320x240(machine_config &config);
- void i4220_config_304x224(machine_config &config);
- void i4300_config(machine_config &config);
- void i4300_config_384x224(machine_config &config);
- void i4300_config_320x240(machine_config &config);
- void metro_upd7810_sound(machine_config &config);
- void daitorid_upd7810_sound(machine_config &config);
- void poitto(machine_config &config);
- void blzntrnd(machine_config &config);
- void sankokushi(machine_config &config);
- void mouja(machine_config &config);
- void toride2g(machine_config &config);
- void karatour(machine_config &config);
- void skyalert(machine_config &config);
- void gakusai(machine_config &config);
- void batlbubl(machine_config &config);
- void pururun(machine_config &config);
- void vmetal(machine_config &config);
- void daitorid(machine_config &config);
- void puzzli(machine_config &config);
- void puzzlia(machine_config &config);
- void pangpoms(machine_config &config);
- void dokyusp(machine_config &config);
- void dokyusei(machine_config &config);
- void daitoa(machine_config &config);
- void lastfort(machine_config &config);
- void puzzlet(machine_config &config);
- void gakusai2(machine_config &config);
- void balcube(machine_config &config);
- void msgogo(machine_config &config);
- void gstrik2(machine_config &config);
- void lastforg(machine_config &config);
- void bangball(machine_config &config);
- void dharma(machine_config &config);
-
- void init_karatour();
- void init_blzntrnd();
- void init_vmetal();
- void init_mouja();
- void init_balcube();
- void init_dharmak();
- void init_metro();
- void init_lastfortg();
-
- DECLARE_READ_LINE_MEMBER(custom_soundstatus_r);
-
-private:
- enum
- {
- TIMER_KARATOUR_IRQ,
- TIMER_MOUJA_IRQ
- };
-
- void ipl_w(u8 data);
- void mouja_irq_timer_ctrl_w(uint16_t data);
- void sound_data_w(u8 data);
- TIMER_CALLBACK_MEMBER(sound_data_sync);
- u8 soundstatus_r();
- void soundstatus_w(u8 data);
- template<int Mask> void upd7810_rombank_w(u8 data);
- u8 upd7810_porta_r();
- void upd7810_porta_w(u8 data);
- void upd7810_portb_w(u8 data);
- void daitorid_portb_w(u8 data);
- void coin_lockout_1word_w(u8 data);
- void coin_lockout_4words_w(offs_t offset, uint16_t data);
- uint16_t balcube_dsw_r(offs_t offset);
- uint16_t gakusai_input_r();
- void blzntrnd_sh_bankswitch_w(u8 data);
- void puzzlet_irq_enable_w(uint8_t data);
- void puzzlet_portb_w(uint16_t data);
- void k053936_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gakusai_oki_bank_hi_w(u8 data);
- void gakusai_oki_bank_lo_w(u8 data);
- u8 gakusai_eeprom_r();
- void gakusai_eeprom_w(u8 data);
- u8 dokyusp_eeprom_r();
- void dokyusp_eeprom_bit_w(u8 data);
- void dokyusp_eeprom_reset_w(u8 data);
- void mouja_sound_rombank_w(u8 data);
-
- // vmetal
- void vmetal_control_w(u8 data);
- void es8712_reset_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(vmetal_es8712_irq);
-
- TILE_GET_INFO_MEMBER(k053936_get_tile_info);
- TILE_GET_INFO_MEMBER(k053936_gstrik2_get_tile_info);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_gstrik2);
- DECLARE_VIDEO_START(blzntrnd);
- DECLARE_VIDEO_START(gstrik2);
- uint32_t screen_update_psac_vdp2_mix(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(periodic_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(bangball_scanline);
- DECLARE_WRITE_LINE_MEMBER(karatour_vblank_irq);
- DECLARE_WRITE_LINE_MEMBER(puzzlet_vblank_irq);
- DECLARE_READ_LINE_MEMBER(rxd_r);
-
- void balcube_map(address_map &map);
- void bangball_map(address_map &map);
- void batlbubl_map(address_map &map);
- void blzntrnd_map(address_map &map);
- void blzntrnd_sound_io_map(address_map &map);
- void blzntrnd_sound_map(address_map &map);
- void cpu_space_map(address_map &map);
- void daitoa_map(address_map &map);
- void daitorid_map(address_map &map);
- void dharma_map(address_map &map);
- void dokyusei_map(address_map &map);
- void dokyusp_map(address_map &map);
- void gakusai2_map(address_map &map);
- void gakusai_map(address_map &map);
- void karatour_map(address_map &map);
- void kokushi_map(address_map &map);
- void lastforg_map(address_map &map);
- void lastfort_map(address_map &map);
- void upd7810_map(address_map &map);
- void mouja_map(address_map &map);
- void mouja_okimap(address_map &map);
- void msgogo_map(address_map &map);
- void pangpoms_map(address_map &map);
- void poitto_map(address_map &map);
- void pururun_map(address_map &map);
- void puzzlet_io_map(address_map &map);
- void puzzlet_map(address_map &map);
- void skyalert_map(address_map &map);
- void toride2g_map(address_map &map);
- void vmetal_map(address_map &map);
- void ymf278_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<okim6295_device> m_oki;
- optional_device<device_t> m_ymsnd; // TODO set correct type
- optional_device<es8712_device> m_essnd;
- optional_device<imagetek_i4100_device> m_vdp;
- optional_device<imagetek_i4220_device> m_vdp2;
- optional_device<imagetek_i4300_device> m_vdp3;
-
- optional_device<k053936_device> m_k053936;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- optional_shared_ptr<uint16_t> m_input_sel;
- optional_shared_ptr<uint16_t> m_k053936_ram;
-
- optional_memory_bank m_audiobank;
- optional_memory_bank m_okibank;
-
- /* video-related */
- tilemap_t *m_k053936_tilemap;
-
- /* irq_related */
- emu_timer *m_mouja_irq_timer;
- emu_timer *m_karatour_irq_timer;
-
- /* sound related */
- u8 m_sound_data;
- uint16_t m_soundstatus;
- int m_porta;
- int m_portb;
- int m_busy_sndcpu;
- int m_essnd_bank;
- bool m_essnd_gate;
-
- /* misc */
- int m_gakusai_oki_bank_lo;
- int m_gakusai_oki_bank_hi;
-
- void gakusai_oki_bank_set();
-};
-
-#endif // MAME_INCLUDES_METRO_H
diff --git a/src/mame/includes/mhavoc.h b/src/mame/includes/mhavoc.h
deleted file mode 100644
index b266763d947..00000000000
--- a/src/mame/includes/mhavoc.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Appolo
-/*************************************************************************
-
- Atari Major Havoc hardware
-
-*************************************************************************/
-
-#include "machine/timer.h"
-#include "sound/pokey.h"
-#include "sound/tms5220.h"
-
-#define MHAVOC_CLOCK 10000000
-#define MHAVOC_CLOCK_5M (MHAVOC_CLOCK/2)
-#define MHAVOC_CLOCK_2_5M (MHAVOC_CLOCK/4)
-#define MHAVOC_CLOCK_1_25M (MHAVOC_CLOCK/8)
-#define MHAVOC_CLOCK_625K (MHAVOC_CLOCK/16)
-
-#define MHAVOC_CLOCK_156K (MHAVOC_CLOCK_625K/4)
-#define MHAVOC_CLOCK_5K (MHAVOC_CLOCK_625K/16/8)
-#define MHAVOC_CLOCK_2_4K (MHAVOC_CLOCK_625K/16/16)
-
-
-class mhavoc_state : public driver_device
-{
-public:
- mhavoc_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_zram0(*this, "zram0"),
- m_zram1(*this, "zram1"),
- m_alpha(*this, "alpha"),
- m_gamma(*this, "gamma"),
- m_pokey(*this, "pokey%u", 1U),
- m_tms(*this, "tms"),
- m_lamps(*this, "lamp%u", 0U),
- m_coin(*this, "COIN"),
- m_service(*this, "SERVICE")
- { }
-
- void alphaone(machine_config &config);
- void mhavoc(machine_config &config);
- void mhavocrv(machine_config &config);
-
- void init_mhavocrv();
-
- DECLARE_CUSTOM_INPUT_MEMBER(coin_service_r);
- DECLARE_READ_LINE_MEMBER(gamma_rcvd_r);
- DECLARE_READ_LINE_MEMBER(gamma_xmtd_r);
- DECLARE_READ_LINE_MEMBER(alpha_rcvd_r);
- DECLARE_READ_LINE_MEMBER(alpha_xmtd_r);
- DECLARE_READ_LINE_MEMBER(clock_r);
-
-private:
- uint8_t dual_pokey_r(offs_t offset);
- void dual_pokey_w(offs_t offset, uint8_t data);
- void mhavoc_alpha_irq_ack_w(uint8_t data);
- void mhavoc_gamma_irq_ack_w(uint8_t data);
- void mhavoc_gamma_w(uint8_t data);
- uint8_t mhavoc_alpha_r();
- void mhavoc_alpha_w(uint8_t data);
- uint8_t mhavoc_gamma_r();
- void mhavoc_ram_banksel_w(uint8_t data);
- void mhavoc_rom_banksel_w(uint8_t data);
- void mhavoc_out_0_w(uint8_t data);
- void alphaone_out_0_w(uint8_t data);
- void mhavoc_out_1_w(uint8_t data);
- void mhavocrv_speech_data_w(uint8_t data);
- void mhavocrv_speech_strobe_w(uint8_t data);
- uint8_t quad_pokeyn_r(offs_t offset);
- void quad_pokeyn_w(offs_t offset, uint8_t data);
-
- TIMER_CALLBACK_MEMBER(delayed_gamma_w);
- TIMER_DEVICE_CALLBACK_MEMBER(mhavoc_cpu_irq_clock);
- void alpha_map(address_map &map);
- void alphaone_map(address_map &map);
- void gamma_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_shared_ptr<uint8_t> m_zram0;
- required_shared_ptr<uint8_t> m_zram1;
- required_device<cpu_device> m_alpha;
- optional_device<cpu_device> m_gamma;
- optional_device_array<pokey_device, 4> m_pokey;
- optional_device<tms5220_device> m_tms;
- output_finder<2> m_lamps;
- optional_ioport m_coin;
- optional_ioport m_service;
-
- uint8_t m_alpha_data;
- uint8_t m_alpha_rcvd;
- uint8_t m_alpha_xmtd;
- uint8_t m_gamma_data;
- uint8_t m_gamma_rcvd;
- uint8_t m_gamma_xmtd;
- uint8_t m_player_1;
- uint8_t m_alpha_irq_clock;
- uint8_t m_alpha_irq_clock_enable;
- uint8_t m_gamma_irq_clock;
- uint8_t m_has_gamma_cpu;
- uint8_t m_speech_write_buffer;
-};
diff --git a/src/mame/includes/micro3d.h b/src/mame/includes/micro3d.h
deleted file mode 100644
index a76a2d0dc60..00000000000
--- a/src/mame/includes/micro3d.h
+++ /dev/null
@@ -1,214 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett
-/*************************************************************************
-
- Microprose Games 3D hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MICRO3D_H
-#define MAME_INCLUDES_MICRO3D_H
-
-#pragma once
-
-#include "cpu/tms34010/tms34010.h"
-#include "cpu/mcs51/mcs51.h"
-#include "sound/upd7759.h"
-#include "machine/adc0844.h"
-#include "machine/mc68681.h"
-#include "machine/scn_pci.h"
-#include "emupal.h"
-
-
-#define HOST_MONITOR_DISPLAY 0
-#define VGB_MONITOR_DISPLAY 0
-#define DRMATH_MONITOR_DISPLAY 0
-
-
-class micro3d_sound_device;
-
-class micro3d_state : public driver_device
-{
-public:
- micro3d_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_upd7759(*this, "upd7759"),
- m_drmath(*this, "drmath"),
- m_vgb(*this, "vgb"),
- m_palette(*this, "palette"),
- m_duart(*this, "duart"),
- m_noise_1(*this, "noise_1"),
- m_noise_2(*this, "noise_2"),
- m_adc(*this, "adc"),
- m_vertex(*this, "vertex"),
- m_sound_sw(*this, "SOUND_SW"),
- m_volume(*this, "VOLUME"),
- m_joystick_x(*this, "JOYSTICK_X"),
- m_joystick_y(*this, "JOYSTICK_Y"),
- m_shared_ram(*this, "shared_ram"),
- m_mac_sram(*this, "mac_sram"),
- m_sprite_vram(*this, "sprite_vram"),
- m_vgb_uart(*this, "uart")
- { }
-
- void micro3d(machine_config &config);
- void botss11(machine_config &config);
-
- void init_micro3d();
- void init_botss();
-
- DECLARE_READ_LINE_MEMBER(botss_hwchk_r);
-
-protected:
- enum
- {
- TIMER_MAC_DONE
- };
-
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void video_reset() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- enum planes
- {
- CLIP_Z_MIN,
- CLIP_Z_MAX,
- CLIP_X_MIN,
- CLIP_X_MAX,
- CLIP_Y_MIN,
- CLIP_Y_MAX
- };
-
- struct micro3d_vtx
- {
- int32_t x, y, z;
-
- constexpr int64_t dot_product(micro3d_vtx const &that) const;
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<i8051_device> m_audiocpu;
- required_device<upd7759_device> m_upd7759;
- required_device<cpu_device> m_drmath;
- required_device<tms34010_device> m_vgb;
- required_device<palette_device> m_palette;
- required_device<mc68681_device> m_duart;
- required_device<micro3d_sound_device> m_noise_1;
- required_device<micro3d_sound_device> m_noise_2;
- optional_device<adc0844_device> m_adc;
- required_memory_region m_vertex;
-
- required_ioport m_sound_sw;
- required_ioport m_volume;
- optional_ioport m_joystick_x;
- optional_ioport m_joystick_y;
-
- required_shared_ptr<uint16_t> m_shared_ram;
- uint8_t m_m68681_tx0;
-
- /* Sound */
- uint8_t m_sound_port_latch[4];
-
- /* Hardware version-check latch for BOTSS 1.1a */
- uint8_t m_botss_latch;
-
- /* MAC */
- required_shared_ptr<uint32_t> m_mac_sram;
- uint32_t m_sram_r_addr;
- uint32_t m_sram_w_addr;
- uint32_t m_vtx_addr;
- uint32_t m_mrab11;
- uint32_t m_mac_stat;
- uint32_t m_mac_inst;
-
- /* 2D video */
- required_shared_ptr<uint16_t> m_sprite_vram;
- uint16_t m_creg;
- uint16_t m_xfer3dk;
-
- /* 3D pipeline */
- uint32_t m_pipe_data;
- uint32_t m_pipeline_state;
- int32_t m_vtx_fifo[512];
- uint32_t m_fifo_idx;
- uint32_t m_draw_cmd;
- int m_draw_state;
- int32_t m_x_min;
- int32_t m_x_max;
- int32_t m_y_min;
- int32_t m_y_max;
- int32_t m_z_min;
- int32_t m_z_max;
- int32_t m_x_mid;
- int32_t m_y_mid;
- int m_dpram_bank;
- uint32_t m_draw_dpram[1024];
- std::unique_ptr<uint16_t[]> m_frame_buffers[2];
- std::unique_ptr<uint16_t[]> m_tmp_buffer;
- int m_drawing_buffer;
- int m_display_buffer;
-
- void vgb_uart_w(offs_t offset, uint8_t data);
- uint8_t vgb_uart_r(offs_t offset);
- void micro3d_mac1_w(uint32_t data);
- uint32_t micro3d_mac2_r();
- void micro3d_mac2_w(uint32_t data);
- uint16_t micro3d_encoder_h_r();
- uint16_t micro3d_encoder_l_r();
- uint8_t adc_volume_r();
- uint16_t botss_140000_r();
- uint16_t botss_180000_r();
- void micro3d_reset_w(uint16_t data);
- void host_drmath_int_w(uint16_t data);
- void micro3d_shared_w(offs_t offset, uint32_t data);
- uint32_t micro3d_shared_r(offs_t offset);
- void drmath_int_w(uint32_t data);
- void drmath_intr2_ack(uint32_t data);
- void micro3d_creg_w(uint16_t data);
- void micro3d_xfer3dk_w(uint16_t data);
- void micro3d_fifo_w(uint32_t data);
- void micro3d_alt_fifo_w(uint32_t data);
- uint32_t micro3d_pipe_r();
- void micro3d_snd_dac_a(uint8_t data);
- void micro3d_snd_dac_b(uint8_t data);
- void micro3d_sound_p1_w(uint8_t data);
- void micro3d_sound_p3_w(uint8_t data);
- uint8_t micro3d_sound_p1_r();
- uint8_t micro3d_sound_p3_r();
- INTERRUPT_GEN_MEMBER(micro3d_vblank);
- TIMER_CALLBACK_MEMBER(mac_done_callback);
- void micro3d_upd7759_w(uint8_t data);
- void data_from_i8031(uint8_t data);
- uint8_t data_to_i8031();
- DECLARE_WRITE_LINE_MEMBER(duart_irq_handler);
- uint8_t duart_input_r();
- void duart_output_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(duart_txb);
- DECLARE_WRITE_LINE_MEMBER(tms_interrupt);
- TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_update);
-
- /* 3D graphics */
- int inside(micro3d_vtx *v, enum planes plane);
- micro3d_vtx intersect(micro3d_vtx *v1, micro3d_vtx *v2, enum planes plane);
- inline void write_span(uint32_t y, uint32_t x);
- void draw_line(uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2);
- void rasterise_spans(uint32_t min_y, uint32_t max_y, uint32_t attr);
- int clip_triangle(micro3d_vtx *v, micro3d_vtx *vout, int num_vertices, enum planes plane);
- void draw_triangles(uint32_t attr);
-
- void cpu_space_map(address_map &map);
- void drmath_data(address_map &map);
- void drmath_prg(address_map &map);
- void hostmem(address_map &map);
- void soundmem_io(address_map &map);
- void soundmem_prg(address_map &map);
- void vgbmem(address_map &map);
-
- required_device<scn2651_device> m_vgb_uart;
-};
-
-#endif // MAME_INCLUDES_MICRO3D_H
diff --git a/src/mame/includes/micronic.h b/src/mame/includes/micronic.h
deleted file mode 100644
index 4ff9b2bb4b7..00000000000
--- a/src/mame/includes/micronic.h
+++ /dev/null
@@ -1,108 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sandro Ronco
-/*****************************************************************************
-
- includes/micronic.h
-
-*****************************************************************************/
-#ifndef MAME_INCLUDES_MICRONIC_H
-#define MAME_INCLUDES_MICRONIC_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "video/hd61830.h"
-#include "machine/mc146818.h"
-#include "machine/ram.h"
-#include "machine/nvram.h"
-#include "sound/beep.h"
-#include "imagedev/cassette.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "z80"
-#define MC146818_TAG "mc146818"
-#define HD61830_TAG "hd61830"
-
-class micronic_state : public driver_device
-{
-public:
- micronic_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_lcdc(*this, HD61830_TAG),
- m_beep(*this, "beeper"),
- m_rtc(*this, MC146818_TAG),
- m_nvram1(*this, "nvram1"),
- m_nvram2(*this, "nvram2"),
- m_ram(*this, RAM_TAG),
- m_ram_base(*this, "ram_base"),
- m_status_flag(1),
- m_bank1(*this, "bank1"),
- m_bit0(*this, "BIT0"),
- m_bit1(*this, "BIT1"),
- m_bit2(*this, "BIT2"),
- m_bit3(*this, "BIT3"),
- m_bit4(*this, "BIT4"),
- m_bit5(*this, "BIT5"),
- m_backbattery(*this, "BACKBATTERY"),
- m_mainbattery(*this, "MAINBATTERY"),
- m_cassette(*this, "cassette")
- { }
-
- void micronic(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- void nvram_init(nvram_device &nvram, void *data, size_t size);
-
- uint8_t keypad_r();
- uint8_t status_flag_r();
- void status_flag_w(uint8_t data);
- void kp_matrix_w(uint8_t data);
- void beep_w(uint8_t data);
- uint8_t irq_flag_r();
- void port_2c_w(uint8_t data);
- void bank_select_w(uint8_t data);
- void lcd_contrast_w(uint8_t data);
- void rtc_address_w(uint8_t data);
- uint8_t rtc_data_r();
- void rtc_data_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( mc146818_irq );
-
- void micronic_palette(palette_device &palette) const;
-
- void micronic_io(address_map &map);
- void micronic_mem(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<hd61830_device> m_lcdc;
- required_device<beep_device> m_beep;
- required_device<mc146818_device> m_rtc;
- required_device<nvram_device> m_nvram1;
- required_device<nvram_device> m_nvram2;
- required_device<ram_device> m_ram;
-
- required_shared_ptr<uint8_t> m_ram_base;
- uint8_t m_banks_num;
- uint8_t m_kp_matrix;
- uint8_t m_lcd_contrast;
- int m_lcd_backlight;
- uint8_t m_status_flag;
-
- required_memory_bank m_bank1;
- required_ioport m_bit0;
- required_ioport m_bit1;
- required_ioport m_bit2;
- required_ioport m_bit3;
- required_ioport m_bit4;
- required_ioport m_bit5;
- required_ioport m_backbattery;
- required_ioport m_mainbattery;
- optional_device<cassette_image_device> m_cassette;
-};
-
-#endif // MAME_INCLUDES_MICRONIC_H
diff --git a/src/mame/includes/microtan.h b/src/mame/includes/microtan.h
deleted file mode 100644
index 7cdcbf4b25c..00000000000
--- a/src/mame/includes/microtan.h
+++ /dev/null
@@ -1,136 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Juergen Buchmueller
-/******************************************************************************
- * Microtan 65
- *
- * variables and function prototypes
- *
- * Juergen Buchmueller <pullmoll@t-online.de>, Jul 2000
- *
- * Thanks go to Geoff Macdonald <mail@geoff.org.uk>
- * for his site http://www.geoff.org.uk/microtan/index.htm
- * and to Fabrice Frances <frances@ensica.fr>
- * for his site http://oric.free.fr/microtan.html
- *
- ******************************************************************************/
-
-#ifndef MAME_INCLUDES_MICROTAN_H
-#define MAME_INCLUDES_MICROTAN_H
-
-#pragma once
-
-#include "cpu/m6502/m6502.h"
-#include "cpu/m6809/m6809.h"
-#include "machine/input_merger.h"
-#include "machine/timer.h"
-#include "bus/tanbus/tanbus.h"
-#include "imagedev/snapquik.h"
-#include "tilemap.h"
-
-class microtan_state : public driver_device
-{
-public:
- microtan_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_irq_line(*this, "irq_line")
- , m_config(*this, "CONFIG")
- , m_io_keyboard(*this, "KBD%u", 0)
- , m_io_keypad(*this, "KPAD%u", 0)
- , m_keypad(*this, "KEYPAD")
- , m_tanbus(*this, "tanbus")
- , m_videoram(*this, "videoram")
- , m_gfxdecode(*this, "gfxdecode")
- , m_gfx1(*this, "gfx1")
- , m_led(*this, "led1")
- { }
-
- void mt65(machine_config &config);
- void micron(machine_config &config);
- void spinveti(machine_config &config);
-
- void init_gfx2();
- void init_microtan();
-
- TIMER_DEVICE_CALLBACK_MEMBER(kbd_scan);
- uint8_t bffx_r(offs_t offset);
- void bffx_w(offs_t offset, uint8_t data);
- DECLARE_INPUT_CHANGED_MEMBER(trigger_reset);
-
-protected:
- enum { IRQ_KBD, IRQ_TANBUS };
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<input_merger_device> m_irq_line;
- required_ioport m_config;
- optional_ioport_array<9> m_io_keyboard;
- optional_ioport_array<4> m_io_keypad;
- optional_ioport m_keypad;
- optional_device<tanbus_device> m_tanbus;
-
- uint8_t m_keypad_column;
- uint8_t m_keyboard_ascii;
- emu_timer *m_pulse_nmi_timer;
- uint8_t m_keyrows[10];
- int m_lastrow;
- int m_mask;
- int m_key;
- int m_repeat;
- int m_repeater;
-
- virtual void store_key(int key);
-
-private:
- optional_shared_ptr<uint8_t> m_videoram;
- optional_device<gfxdecode_device> m_gfxdecode;
- optional_memory_region m_gfx1;
- output_finder<> m_led;
-
- uint8_t m_chunky_graphics;
- std::unique_ptr<uint8_t[]> m_chunky_buffer;
- tilemap_t *m_bg_tilemap;
-
- uint8_t sound_r();
- void sound_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void pgm_chargen_w(offs_t offset, uint8_t data);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(pulse_nmi);
-
- image_verify_result verify_snapshot(uint8_t *data, int size);
- image_init_result parse_intel_hex(uint8_t *snapshot_buff, char *src);
- image_init_result parse_zillion_hex(uint8_t *snapshot_buff, char *src);
- void set_cpu_regs(const uint8_t *snapshot_buff, int base);
- void snapshot_copy(uint8_t *snapshot_buff, int snapshot_size);
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- void mt65_map(address_map &map);
- void spinv_map(address_map &map);
-};
-
-
-class mt6809_state : public microtan_state
-{
-public:
- using microtan_state::microtan_state;
-
- void mt6809(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
- virtual void store_key(int key) override;
-
-private:
- uint8_t keyboard_r();
-
- void mt6809_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MICROTAN_H
diff --git a/src/mame/includes/midtunit.h b/src/mame/includes/midtunit.h
deleted file mode 100644
index 2151886bcbf..00000000000
--- a/src/mame/includes/midtunit.h
+++ /dev/null
@@ -1,108 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Alex Pasadyn, Zsolt Vasvari, Ernesto Corvi, Aaron Giles
-// thanks-to:Kurt Mahan
-/*************************************************************************
-
- Driver for Midway T-unit games.
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_MIDTUNIT_H
-#define MAME_INCLUDES_MIDTUNIT_H
-
-#pragma once
-
-#include "audio/dcs.h"
-#include "audio/williams.h"
-#include "video/midtunit.h"
-
-#include "cpu/tms34010/tms34010.h"
-#include "emupal.h"
-
-
-class midtunit_state : public driver_device
-{
-public:
- midtunit_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_video(*this, "video"),
- m_dcs(*this, "dcs"),
- m_palette(*this, "palette"),
- m_gfxrom(*this, "gfxrom"),
- m_cvsd_sound(*this, "cvsd"),
- m_adpcm_sound(*this, "adpcm"),
- m_nvram(*this, "nvram")
- { }
-
- void tunit_core(machine_config &config);
- void tunit_adpcm(machine_config &config);
- void tunit_dcs(machine_config &config);
-
- void init_mktunit();
- void init_mkturbo();
- void init_nbajamte();
- void init_nbajam();
- void init_jdreddp();
- void init_mk2();
-
-protected:
- void machine_reset() override;
-
- required_device<tms340x0_device> m_maincpu;
- required_device<midtunit_video_device> m_video;
- optional_device<dcs_audio_device> m_dcs;
- required_device<palette_device> m_palette;
- required_memory_region m_gfxrom;
-
-private:
- optional_device<williams_cvsd_sound_device> m_cvsd_sound;
- optional_device<williams_adpcm_sound_device> m_adpcm_sound;
-
- required_shared_ptr<uint16_t> m_nvram;
-
- void midtunit_cmos_enable_w(uint16_t data);
- void midtunit_cmos_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t midtunit_cmos_r(offs_t offset);
- uint16_t midtunit_sound_state_r();
- uint16_t midtunit_sound_r();
- void midtunit_sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mk_prot_r(offs_t offset);
- void mk_prot_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mkturbo_prot_r();
- uint16_t mk2_prot_const_r();
- uint16_t mk2_prot_r();
- uint16_t mk2_prot_shift_r();
- void mk2_prot_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t nbajam_prot_r();
- void nbajam_prot_w(offs_t offset, uint16_t data);
- void jdredd_prot_w(offs_t offset, uint16_t data);
- uint16_t jdredd_prot_r(offs_t offset);
-
- void register_state_saving();
- void init_tunit_generic(int sound);
- void init_nbajam_common(int te_protection);
-
- /* CMOS-related variables */
- uint8_t m_cmos_write_enable;
-
- /* sound-related variables */
- uint8_t m_chip_type;
- uint8_t m_fake_sound_state;
-
- /* protection */
- uint8_t m_mk_prot_index;
- uint16_t m_mk2_prot_data;
- std::unique_ptr<uint8_t[]> m_hidden_ram;
-
- const uint32_t *m_nbajam_prot_table;
- uint16_t m_nbajam_prot_queue[5];
- uint8_t m_nbajam_prot_index;
-
- const uint8_t *m_jdredd_prot_table;
- uint8_t m_jdredd_prot_index;
- uint8_t m_jdredd_prot_max;
-
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MIDTUNIT_H
diff --git a/src/mame/includes/midvunit.h b/src/mame/includes/midvunit.h
deleted file mode 100644
index ba4077bb656..00000000000
--- a/src/mame/includes/midvunit.h
+++ /dev/null
@@ -1,202 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Driver for Midway V-Unit games
-
-**************************************************************************/
-
-#include "audio/dcs.h"
-#include "bus/ata/ataintf.h"
-#include "machine/adc0844.h"
-#include "machine/midwayic.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "video/poly.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define MIDVUNIT_VIDEO_CLOCK 33000000
-
-struct midvunit_object_data
-{
- uint16_t * destbase;
- uint8_t * texbase;
- uint16_t pixdata;
- uint8_t dither;
-};
-
-class midvunit_state;
-
-class midvunit_renderer : public poly_manager<float, midvunit_object_data, 2, 4000>
-{
-public:
- midvunit_renderer(midvunit_state &state);
- void process_dma_queue();
- void make_vertices_inclusive(vertex_t *vert);
-
-private:
- midvunit_state &m_state;
-
- void render_flat(int32_t scanline, const extent_t &extent, const midvunit_object_data &extradata, int threadid);
- void render_tex(int32_t scanline, const extent_t &extent, const midvunit_object_data &extradata, int threadid);
- void render_textrans(int32_t scanline, const extent_t &extent, const midvunit_object_data &extradata, int threadid);
- void render_textransmask(int32_t scanline, const extent_t &extent, const midvunit_object_data &extradata, int threadid);
-};
-
-class midvunit_state : public driver_device
-{
-public:
- midvunit_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram", 0x200000, ENDIANNESS_LITTLE),
- m_textureram(*this, "textureram"),
- m_screen(*this, "screen"),
- m_nvram(*this, "nvram"),
- m_ram_base(*this, "ram_base"),
- m_fastram_base(*this, "fastram_base"),
- m_tms32031_control(*this, "32031_control"),
- m_midvplus_misc(*this, "midvplus_misc"),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_palette(*this, "palette"),
- m_adc(*this, "adc"),
- m_midway_serial_pic2(*this, "serial_pic2"),
- m_midway_ioasic(*this, "ioasic"),
- m_ata(*this, "ata"),
- m_timer(*this, "timer%u", 0U),
- m_dcs(*this, "dcs"),
- m_generic_paletteram_32(*this, "paletteram"),
- m_optional_drivers(*this, "lamp%u", 0U),
- m_in1(*this, "IN1"),
- m_dsw(*this, "DSW"),
- m_motion(*this, "MOTION") { }
-
- void midvcommon(machine_config &config);
- void crusnwld(machine_config &config);
- void midvplus(machine_config &config);
- void offroadc(machine_config &config);
- void midvunit(machine_config &config);
-
- void init_crusnu40();
- void init_crusnu21();
- void init_crusnwld();
- void init_wargods();
- void init_offroadc();
- void init_crusnusa();
-
- uint16_t m_page_control;
- uint16_t m_dma_data[16];
- uint8_t m_video_changed;
-
- memory_share_creator<uint16_t> m_videoram;
- required_shared_ptr<uint32_t> m_textureram;
- required_device<screen_device> m_screen;
-
- DECLARE_CUSTOM_INPUT_MEMBER(motion_r);
-
-private:
- enum
- {
- TIMER_SCANLINE
- };
-
- optional_shared_ptr<uint32_t> m_nvram;
- required_shared_ptr<uint32_t> m_ram_base;
- optional_shared_ptr<uint32_t> m_fastram_base;
- required_shared_ptr<uint32_t> m_tms32031_control;
- optional_shared_ptr<uint32_t> m_midvplus_misc;
-
- uint8_t m_cmos_protected;
- uint16_t m_control_data;
- uint8_t m_adc_shift;
- uint16_t m_last_port0;
- uint8_t m_shifter_state;
- double m_timer_rate;
- uint16_t m_bit_index;
- int m_lastval;
- uint32_t *m_generic_speedup;
- uint16_t m_video_regs[16];
- uint8_t m_dma_data_index;
- emu_timer *m_scanline_timer;
- std::unique_ptr<midvunit_renderer> m_poly;
- uint8_t m_galil_input_index;
- uint8_t m_galil_input_length;
- const char *m_galil_input;
- uint8_t m_galil_output_index;
- char m_galil_output[450];
- uint8_t m_wheel_board_output;
- uint32_t m_wheel_board_last;
- uint32_t m_wheel_board_u8_latch;
- uint8_t m_comm_flags;
- uint16_t m_comm_data;
- void midvunit_dma_queue_w(uint32_t data);
- uint32_t midvunit_dma_queue_entries_r();
- uint32_t midvunit_dma_trigger_r(offs_t offset);
- void midvunit_page_control_w(uint32_t data);
- uint32_t midvunit_page_control_r();
- void midvunit_video_control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t midvunit_scanline_r();
- void midvunit_videoram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t midvunit_videoram_r(offs_t offset);
- void midvunit_paletteram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void midvunit_textureram_w(offs_t offset, uint32_t data);
- uint32_t midvunit_textureram_r(offs_t offset);
- uint32_t port0_r();
- uint32_t adc_r();
- void adc_w(uint32_t data);
- void midvunit_cmos_protect_w(uint32_t data);
- void midvunit_cmos_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t midvunit_cmos_r(offs_t offset);
- void midvunit_control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void crusnwld_control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void midvunit_sound_w(uint32_t data);
- uint32_t tms32031_control_r(offs_t offset);
- void tms32031_control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t crusnwld_serial_status_r();
- uint32_t crusnwld_serial_data_r();
- void crusnwld_serial_data_w(uint32_t data);
- uint32_t bit_data_r(offs_t offset);
- void bit_reset_w(uint32_t data);
- uint32_t midvplus_misc_r(offs_t offset);
- void midvplus_misc_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void midvplus_xf1_w(uint8_t data);
- uint32_t generic_speedup_r(offs_t offset);
- uint32_t midvunit_wheel_board_r();
- void midvunit_wheel_board_w(uint32_t data);
- uint32_t midvunit_intcs_r();
- uint32_t midvunit_comcs_r(offs_t offset);
- void midvunit_comcs_w(offs_t offset, uint32_t data);
- void set_input(const char *s);
- void init_crusnwld_common(offs_t speedup);
- void init_crusnusa_common(offs_t speedup);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- DECLARE_MACHINE_RESET(midvplus);
- uint32_t screen_update_midvunit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(scanline_timer_cb);
- required_device<tms32031_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<palette_device> m_palette;
- optional_device<adc0844_device> m_adc;
- optional_device<midway_serial_pic2_device> m_midway_serial_pic2;
- optional_device<midway_ioasic_device> m_midway_ioasic;
- optional_device<ata_interface_device> m_ata;
- required_device_array<timer_device, 2> m_timer;
- required_device<dcs_audio_device> m_dcs;
- required_shared_ptr<uint32_t> m_generic_paletteram_32;
- output_finder<8> m_optional_drivers;
- optional_ioport m_in1;
- optional_ioport m_dsw;
- optional_ioport m_motion;
- void postload();
-
- uint16_t comm_bus_out();
- uint16_t comm_bus_in();
-
- void midvplus_map(address_map &map);
- void midvunit_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
diff --git a/src/mame/includes/midwunit.h b/src/mame/includes/midwunit.h
deleted file mode 100644
index 2e923243d5a..00000000000
--- a/src/mame/includes/midwunit.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles,Ernesto Corvi
-/*************************************************************************
-
- Driver for Midway Wolf-unit games.
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_MIDWUNIT_H
-#define MAME_INCLUDES_MIDWUNIT_H
-
-#pragma once
-
-#include "audio/dcs.h"
-#include "cpu/tms34010/tms34010.h"
-#include "machine/midwayic.h"
-#include "video/midtunit.h"
-#include "emupal.h"
-
-class midwunit_state : public driver_device
-{
-public:
- midwunit_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_video(*this, "video")
- , m_dcs(*this, "dcs")
- , m_palette(*this, "palette")
- , m_gfxrom(*this, "gfxrom")
- , m_midway_serial_pic(*this, "serial_security_sim")
- , m_midway_serial_pic_emu(*this, "serial_security")
- , m_nvram(*this, "nvram")
- , m_mainram(*this, "mainram")
- , m_ports(*this, { { "IN0", "IN1", "DSW", "IN2" } })
- { }
-
- void wunit(machine_config &config);
- void wunit_picemu(machine_config &config);
- void wunit_picsim(machine_config &config);
-
- void init_mk3r10();
- void init_nbahangt();
- void init_wwfmania();
- void init_umk3();
- void init_mk3();
- void init_openice();
- void init_rmpgwt();
- void init_umk3r11();
- void init_mk3r20();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- void midwunit_cmos_enable_w(uint16_t data);
- void midwunit_cmos_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t midwunit_cmos_r(offs_t offset);
- void midwunit_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t midwunit_io_r(offs_t offset);
- uint16_t midwunit_security_r();
- void midwunit_security_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t midwunit_sound_r();
- uint16_t midwunit_sound_state_r();
- void midwunit_sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void umk3_palette_hack_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void wwfmania_io_0_w(uint16_t data);
-
- void init_mk3_common();
- void main_map(address_map &map);
-
- required_device<tms340x0_device> m_maincpu;
- required_device<midtunit_video_device> m_video;
- required_device<dcs_audio_device> m_dcs;
- required_device<palette_device> m_palette;
- required_memory_region m_gfxrom;
-
- optional_device<midway_serial_pic_device> m_midway_serial_pic;
- optional_device<midway_serial_pic_emu_device> m_midway_serial_pic_emu;
- required_shared_ptr<uint16_t> m_nvram;
- required_shared_ptr<uint16_t> m_mainram;
- required_ioport_array<4> m_ports;
-
- uint8_t m_cmos_write_enable;
- uint16_t m_iodata[8];
- uint8_t m_ioshuffle[16];
- uint8_t m_uart[8];
- uint8_t m_security_bits;
- uint16_t *m_umk3_palette;
-};
-
-#endif // MAME_INCLUDES_MIDWUNIT_H
diff --git a/src/mame/includes/midxunit.h b/src/mame/includes/midxunit.h
deleted file mode 100644
index 2f162f32314..00000000000
--- a/src/mame/includes/midxunit.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Driver for Midway X-unit games.
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_MIDXUNIT_H
-#define MAME_INCLUDES_MIDXUNIT_H
-
-#pragma once
-
-#include "audio/dcs.h"
-#include "cpu/tms34010/tms34010.h"
-#include "cpu/pic16c5x/pic16c5x.h"
-#include "machine/nvram.h"
-#include "video/midtunit.h"
-#include "emupal.h"
-
-
-class midxunit_state : public driver_device
-{
-public:
- midxunit_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_video(*this, "video")
- , m_dcs(*this, "dcs")
- , m_palette(*this, "palette")
- , m_gfxrom(*this, "gfxrom")
- , m_nvram(*this, "nvram")
- , m_pic(*this, "pic")
- , m_gun_recoil(*this, "Player%u_Gun_Recoil", 1U)
- , m_gun_led(*this, "Player%u_Gun_LED", 1U)
- { }
-
- void midxunit(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- uint8_t midxunit_cmos_r(offs_t offset);
- void midxunit_cmos_w(offs_t offset, uint8_t data);
- void midxunit_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void midxunit_unknown_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(adc_int_w);
- uint32_t midxunit_status_r();
- uint8_t midxunit_uart_r(offs_t offset);
- void midxunit_uart_w(offs_t offset, uint8_t data);
- uint32_t midxunit_security_r();
- void midxunit_security_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void midxunit_security_clock_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(midxunit_dcs_output_full);
- uint32_t midxunit_dma_r(offs_t offset, uint32_t mem_mask = ~0);
- void midxunit_dma_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- void main_map(address_map &map);
-
- required_device<tms340x0_device> m_maincpu;
- required_device<midtunit_video_device> m_video;
- required_device<dcs_audio_device> m_dcs;
- required_device<palette_device> m_palette;
- required_memory_region m_gfxrom;
-
- required_device<nvram_device> m_nvram;
- required_device<pic16c57_device> m_pic;
- output_finder<3> m_gun_recoil;
- output_finder<3> m_gun_led;
-
- uint8_t m_cmos_write_enable;
- uint16_t m_iodata[8];
- uint8_t m_uart[8];
- bool m_adc_int;
- std::unique_ptr<uint8_t[]> m_nvram_data;
-
- uint8_t m_pic_command;
- uint8_t m_pic_data;
- uint8_t m_pic_clk;
- uint8_t m_pic_status;
-};
-
-#endif // MAME_INCLUDES_MIDXUNIT_H
diff --git a/src/mame/includes/midyunit.h b/src/mame/includes/midyunit.h
deleted file mode 100644
index ae474389950..00000000000
--- a/src/mame/includes/midyunit.h
+++ /dev/null
@@ -1,184 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Alex Pasadyn, Zsolt Vasvari, Ernesto Corvi, Aaron Giles
-// thanks-to:Kurt Mahan
-/*************************************************************************
-
- Williams/Midway Y/Z-unit system
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_MIDYUNIT_H
-#define MAME_INCLUDES_MIDYUNIT_H
-
-#pragma once
-
-#include "audio/williams.h"
-
-#include "cpu/tms34010/tms34010.h"
-#include "machine/adc0844.h"
-#include "machine/gen_latch.h"
-#include "machine/nvram.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-
-
-class midyunit_state : public driver_device
-{
-public:
- midyunit_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_oki(*this, "oki")
- , m_palette(*this, "palette")
- , m_narc_sound(*this, "narcsnd")
- , m_cvsd_sound(*this, "cvsd")
- , m_adpcm_sound(*this, "adpcm")
- , m_soundlatch(*this, "soundlatch")
- , m_term2_adc(*this, "adc")
- , m_nvram(*this, "nvram")
- , m_generic_paletteram_16(*this, "paletteram")
- , m_gfx_rom(*this, "gfx_rom", 0x800000, ENDIANNESS_BIG)
- , m_mainram(*this, "mainram")
- , m_ports(*this, { { "IN0", "IN1", "IN2", "DSW", "UNK0", "UNK1" } })
- {
- }
-
- void term2(machine_config &config);
- void yunit_cvsd_4bit_fast(machine_config &config);
- void yunit_adpcm_6bit_fast(machine_config &config);
- void yunit_cvsd_6bit_slow(machine_config &config);
- void yunit_cvsd_4bit_slow(machine_config &config);
- void mkyawdim(machine_config &config);
- void yunit_core(machine_config &config);
- void zunit(machine_config &config);
- void yunit_adpcm_6bit_faster(machine_config &config);
-
- void init_smashtv();
- void init_strkforc();
- void init_narc();
- void init_term2();
- void init_term2la1();
- void init_term2la3();
- void init_mkyunit();
- void init_trog();
- void init_totcarn();
- void init_mkyawdim();
- void init_mkyawdim2();
- void init_shimpact();
- void init_hiimpact();
- void init_mkyturbo();
- void init_term2la2();
-
- DECLARE_READ_LINE_MEMBER(narc_talkback_strobe_r);
- DECLARE_CUSTOM_INPUT_MEMBER(narc_talkback_data_r);
- DECLARE_READ_LINE_MEMBER(adpcm_irq_state_r);
-
-private:
- /* protection data types */
- struct protection_data
- {
- uint16_t reset_sequence[3];
- uint16_t data_sequence[100];
- };
-
- struct dma_state_t
- {
- uint32_t offset; // source offset, in bits
- int32_t rowbytes; // source bytes to skip each row
- int32_t xpos; // x position, clipped
- int32_t ypos; // y position, clipped
- int32_t width; // horizontal pixel count
- int32_t height; // vertical pixel count
- uint16_t palette; // palette base
- uint16_t color; // current foreground color with palette
- };
-
- enum
- {
- TIMER_DMA,
- TIMER_AUTOERASE_LINE
- };
-
- required_device<tms34010_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<okim6295_device> m_oki;
- required_device<palette_device> m_palette;
- optional_device<williams_narc_sound_device> m_narc_sound;
- optional_device<williams_cvsd_sound_device> m_cvsd_sound;
- optional_device<williams_adpcm_sound_device> m_adpcm_sound;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<adc0844_device> m_term2_adc;
- required_device<nvram_device> m_nvram;
-
- required_shared_ptr<uint16_t> m_generic_paletteram_16;
- memory_share_creator<uint8_t> m_gfx_rom;
- required_shared_ptr<uint16_t> m_mainram;
- optional_ioport_array<6> m_ports;
-
- std::unique_ptr<uint16_t[]> m_cmos_ram;
- std::unique_ptr<uint8_t[]> m_hidden_ram;
- uint32_t m_cmos_page;
- uint16_t m_prot_result;
- uint16_t m_prot_sequence[3];
- uint8_t m_prot_index;
- const struct protection_data *m_prot_data;
- uint8_t m_cmos_w_enable;
- uint8_t m_chip_type;
- uint16_t *m_t2_hack_mem;
- uint8_t *m_cvsd_protection_base;
- uint8_t m_autoerase_enable;
- uint32_t m_palette_mask;
- std::unique_ptr<pen_t[]> m_pen_map;
- std::unique_ptr<uint16_t[]> m_local_videoram;
- uint8_t m_videobank_select;
- uint8_t m_yawdim_dma;
- uint16_t m_dma_register[16];
- dma_state_t m_dma_state;
- emu_timer *m_dma_timer;
- emu_timer *m_autoerase_line_timer;
- void midyunit_cmos_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t midyunit_cmos_r(offs_t offset);
- void midyunit_cmos_enable_w(address_space &space, uint16_t data);
- uint16_t midyunit_protection_r();
- uint16_t midyunit_input_r(offs_t offset);
- void midyunit_sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t term2_input_r(offs_t offset);
- void term2_sound_w(offs_t offset, uint16_t data);
- void term2_hack_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void term2la3_hack_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void term2la2_hack_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void term2la1_hack_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cvsd_protection_w(offs_t offset, uint8_t data);
- uint16_t mkturbo_prot_r();
- uint16_t midyunit_gfxrom_r(offs_t offset);
- void midyunit_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t midyunit_vram_r(offs_t offset);
- void midyunit_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void midyunit_paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t midyunit_dma_r(offs_t offset);
- void midyunit_dma_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void yawdim_oki_bank_w(uint8_t data);
- void yawdim2_oki_bank_w(uint8_t data);
- uint8_t yawdim2_soundlatch_r();
- TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg);
- TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg);
- TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_update);
- DECLARE_MACHINE_RESET(midyunit);
- DECLARE_VIDEO_START(midzunit);
- DECLARE_VIDEO_START(midyunit_4bit);
- DECLARE_VIDEO_START(midyunit_6bit);
- DECLARE_VIDEO_START(mkyawdim);
- DECLARE_VIDEO_START(common);
- TIMER_CALLBACK_MEMBER(dma_callback);
- TIMER_CALLBACK_MEMBER(autoerase_line);
-
- void main_map(address_map &map);
- void yawdim_sound_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- void dma_draw(uint16_t command);
- void init_generic(int bpp, int sound, int prot_start, int prot_end);
- void term2_init_common(write16s_delegate hack_w);
-};
-
-#endif // MAME_INCLUDES_MIDYUNIT_H
diff --git a/src/mame/includes/midzeus.h b/src/mame/includes/midzeus.h
deleted file mode 100644
index 9dd11f433e3..00000000000
--- a/src/mame/includes/midzeus.h
+++ /dev/null
@@ -1,210 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Driver for Midway Zeus games
-
-**************************************************************************/
-
-#define MIDZEUS_VIDEO_CLOCK XTAL(66'666'700)
-
-#include "machine/timekpr.h"
-#include "emupal.h"
-#include "screen.h"
-#include "machine/midwayic.h"
-#include "video/poly.h"
-
-/*************************************
- *
- * Type definitions
- *
- *************************************/
-
-struct mz_poly_extra_data
-{
- const void * palbase;
- const void * texbase;
- uint16_t solidcolor;
- uint16_t voffset;
- int16_t zoffset;
- uint16_t transcolor;
- uint16_t texwidth;
- uint16_t color;
- uint32_t alpha;
- uint32_t ctrl_word;
- bool blend_enable;
- bool depth_test_enable;
- bool depth_write_enable;
- uint32_t blend;
- uint8_t (*get_texel)(const void *, int, int, int);
-};
-
-
-class midzeus_state;
-
-class midzeus_renderer : public poly_manager<float, mz_poly_extra_data, 4, 10000>
-{
-public:
- midzeus_renderer(midzeus_state &state);
-
- void render_poly(int32_t scanline, const extent_t& extent, const mz_poly_extra_data& object, int threadid);
- void render_poly_solid_fixedz(int32_t scanline, const extent_t& extent, const mz_poly_extra_data& object, int threadid);
-
- void zeus_draw_quad(int long_fmt, const uint32_t *databuffer, uint32_t texdata, bool logit);
- void zeus_draw_debug_quad(const rectangle& rect, const vertex_t* vert);
-
-private:
- midzeus_state& m_state;
-};
-
-typedef midzeus_renderer::vertex_t poly_vertex;
-
-
-class midzeus_state : public driver_device
-{
- friend class midzeus_renderer;
-
-public:
- midzeus_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_nvram(*this, "nvram"),
- m_ram_base(*this, "ram_base"),
- m_tms32031_control(*this, "tms32031_ctl"),
- m_zeusbase(*this, "zeusbase"),
- m_m48t35(*this, "m48t35"),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_ioasic(*this, "ioasic"),
- m_io_analog(*this, "ANALOG%u", 0U),
- m_io_gun_x(*this, "GUNX%u", 1U),
- m_io_gun_y(*this, "GUNY%u", 1U),
- m_io_trackx(*this, "TRACKX1"),
- m_io_tracky(*this, "TRACKY1"),
- m_io_49way_x(*this, "49WAYX"),
- m_io_49way_y(*this, "49WAYY"),
- m_io_keypad(*this, "KEYPAD"),
- m_digits(*this, "digit%u", 0U)
- { }
-
- // turn on for hardcoded video debugging inputs
- static constexpr bool DEBUG_KEYS = false;
-
- //static constexpr XTAL CPU_CLOCK = XTAL(60'000'000);
- static constexpr int BEAM_DY = 3;
- static constexpr int BEAM_DX = 3;
- static constexpr int BEAM_XOFFS = 40; // table in the code indicates an offset of 20 with a beam height of 7
-
- required_shared_ptr<uint32_t> m_nvram;
- required_shared_ptr<uint32_t> m_ram_base;
- required_shared_ptr<uint32_t> m_tms32031_control;
- optional_shared_ptr<uint32_t> m_zeusbase;
-
- void cmos_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t cmos_r(offs_t offset);
- void cmos_protect_w(uint32_t data);
- uint32_t zpram_r(offs_t offset);
- void zpram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t disk_asic_jr_r(offs_t offset);
- void disk_asic_jr_w(offs_t offset, uint32_t data);
- uint32_t tms32031_control_r(offs_t offset);
- void tms32031_control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void keypad_select_w(offs_t offset, uint32_t data);
- uint32_t analog_r(offs_t offset);
- void analog_w(uint32_t data);
- void invasn_gun_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t invasn_gun_r();
- uint32_t zeus_r(offs_t offset);
- void zeus_w(offs_t offset, uint32_t data);
- DECLARE_CUSTOM_INPUT_MEMBER(custom_49way_r);
- DECLARE_CUSTOM_INPUT_MEMBER(keypad_r);
- uint32_t grid_keypad_r(offs_t offset);
- uint32_t trackball_r(offs_t offset);
- void init_invasn();
- void init_mk4();
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(display_irq);
- TIMER_CALLBACK_MEMBER(display_irq_off);
- TIMER_CALLBACK_MEMBER(invasn_gun_callback);
- void midzeus(machine_config &config);
- void invasn(machine_config &config);
- void mk4(machine_config &config);
- void zeus_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- optional_device<timekeeper_device> m_m48t35;
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- optional_device<palette_device> m_palette;
- required_device<midway_ioasic_device> m_ioasic;
- optional_ioport_array<4> m_io_analog;
- optional_ioport_array<2> m_io_gun_x;
- optional_ioport_array<2> m_io_gun_y;
- optional_ioport m_io_trackx;
- optional_ioport m_io_tracky;
- optional_ioport m_io_49way_x;
- optional_ioport m_io_49way_y;
- optional_ioport m_io_keypad;
- output_finder<7> m_digits;
-
- emu_timer * m_display_irq_off_timer;
- uint8_t m_crusnexo_leds_select;
- uint32_t m_disk_asic_jr[0x10];
-
- uint8_t m_cmos_protected;
-
- emu_timer * m_timer[2];
-
-private:
- uint32_t m_gun_control;
- uint8_t m_gun_irq_state;
- emu_timer * m_gun_timer[2];
- int32_t m_gun_x[2], m_gun_y[2];
- uint8_t m_keypad_select;
-
- void exit_handler();
- void zeus_pointer_w(uint32_t which, uint32_t data, bool logit);
- void zeus_register16_w(offs_t offset, uint16_t data, bool logit);
- void zeus_register32_w(offs_t offset, uint32_t data, bool logit);
- void zeus_register_update(offs_t offset);
- int zeus_fifo_process(const uint32_t *data, int numwords);
- void zeus_draw_model(uint32_t texdata, bool logit);
-
- void log_fifo_command(const uint32_t *data, int numwords, const char *suffix);
- void log_waveram(uint32_t length_and_base);
- void update_gun_irq();
-
- void *waveram0_ptr_from_block_addr(uint32_t addr);
- void *waveram0_ptr_from_expanded_addr(uint32_t addr);
- void *waveram1_ptr_from_expanded_addr(uint32_t addr);
- void *waveram0_ptr_from_texture_addr(uint32_t addr, int width);
- void waveram_plot_depth(int y, int x, uint16_t color, uint16_t depth);
- void waveram_plot(int y, int x, uint16_t color);
- void waveram_plot_check_depth(int y, int x, uint16_t color, uint16_t depth);
- void waveram_plot_check_depth_nowrite(int y, int x, uint16_t color, uint16_t depth);
-
- std::unique_ptr<midzeus_renderer> m_poly;
- uint8_t m_log_fifo;
-
- uint32_t m_zeus_fifo[20];
- uint8_t m_zeus_fifo_words;
- int16_t m_zeus_matrix[3][3];
- int32_t m_zeus_point[3];
- int16_t m_zeus_light[3];
- void * m_zeus_renderbase;
- uint32_t m_zeus_palbase;
- uint32_t m_zeus_unkbase;
- int m_zeus_enable_logging;
- uint32_t m_zeus_objdata;
- rectangle m_zeus_cliprect;
-
- std::unique_ptr<uint32_t[]> m_waveram[2];
- int m_yoffs;
- int m_texel_width;
- int m_is_mk4b;
-};
diff --git a/src/mame/includes/mikie.h b/src/mame/includes/mikie.h
deleted file mode 100644
index 9ccdc97f80e..00000000000
--- a/src/mame/includes/mikie.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Allard van der Bas
-/*************************************************************************
-
- Mikie
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MIKIE_H
-#define MAME_INCLUDES_MIKIE_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class mikie_state : public driver_device
-{
-public:
- mikie_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void mikie(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_palettebank;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- uint8_t m_irq_mask;
- uint8_t mikie_sh_timer_r();
- DECLARE_WRITE_LINE_MEMBER(sh_irqtrigger_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- void mikie_videoram_w(offs_t offset, uint8_t data);
- void mikie_colorram_w(offs_t offset, uint8_t data);
- void mikie_palettebank_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void mikie_palette(palette_device &palette) const;
- uint32_t screen_update_mikie(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void mikie_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MIKIE_H
diff --git a/src/mame/includes/mikro80.h b/src/mame/includes/mikro80.h
deleted file mode 100644
index 9c425ac96ee..00000000000
--- a/src/mame/includes/mikro80.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/mikro80.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_MIKRO80_H
-#define MAME_INCLUDES_MIKRO80_H
-
-#pragma once
-
-#include "machine/i8255.h"
-#include "imagedev/cassette.h"
-#include "sound/dac.h"
-
-class mikro80_state : public driver_device
-{
-public:
- mikro80_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_aram(*this, "attrram")
- , m_vram(*this, "videoram")
- , m_ppi(*this, "ppi8255")
- , m_cassette(*this, "cassette")
- , m_rom(*this, "maincpu")
- , m_ram(*this, "mainram")
- , m_p_chargen(*this, "chargen")
- , m_io_keyboard(*this, "LINE%u", 0U)
- , m_dac(*this, "dac")
- , m_maincpu(*this, "maincpu")
- { }
-
- void kristall(machine_config &config);
- void radio99(machine_config &config);
- void mikro80(machine_config &config);
-
- void init_radio99();
- void init_mikro80();
-
-private:
- u8 m_keyboard_mask;
- u8 m_key_mask;
- void sound_w(u8 data);
- u8 portb_r();
- u8 portc_r();
- u8 kristall2_portc_r();
- void porta_w(u8 data);
- void portc_w(u8 data);
- void tape_w(u8 data);
- u8 tape_r();
- virtual void machine_reset() override;
- virtual void machine_start() override;
- u32 screen_update_mikro80(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void kristall_io(address_map &map);
- void mikro80_io(address_map &map);
- void mikro80_mem(address_map &map);
- void radio99_io(address_map &map);
-
- memory_passthrough_handler *m_rom_shadow_tap;
- required_shared_ptr<uint8_t> m_aram;
- required_shared_ptr<uint8_t> m_vram;
- required_device<i8255_device> m_ppi;
- required_device<cassette_image_device> m_cassette;
- required_region_ptr<u8> m_rom;
- required_shared_ptr<u8> m_ram;
- required_region_ptr<u8> m_p_chargen;
- required_ioport_array<9> m_io_keyboard;
- optional_device<dac_bit_interface> m_dac;
- required_device<cpu_device> m_maincpu;
-};
-
-#endif // MAME_INCLUDES_MIKRO80_H
diff --git a/src/mame/includes/mikromik.h b/src/mame/includes/mikromik.h
deleted file mode 100644
index a30c2f36852..00000000000
--- a/src/mame/includes/mikromik.h
+++ /dev/null
@@ -1,153 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_MIKROMIK_H
-#define MAME_INCLUDES_MIKROMIK_H
-
-#pragma once
-
-#include "bus/rs232/rs232.h"
-#include "cpu/i8085/i8085.h"
-#include "formats/mm_dsk.h"
-#include "imagedev/floppy.h"
-#include "machine/am9517a.h"
-#include "machine/bankdev.h"
-#include "machine/i8212.h"
-#include "machine/mm1kb.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/z80sio.h"
-#include "machine/upd765.h"
-#include "video/i8275.h"
-#include "video/upd7220.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-#define I8085A_TAG "ic40"
-#define I8212_TAG "ic12"
-#define I8237_TAG "ic45"
-#define I8253_TAG "ic6"
-#define UPD765_TAG "ic15"
-#define I8275_TAG "ic59"
-#define UPD7201_TAG "ic11"
-#define UPD7220_TAG "ic101"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-#define RS232_C_TAG "rs232c"
-#define KB_TAG "kb"
-
-class mm1_state : public driver_device
-{
-public:
- mm1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, I8085A_TAG),
- m_io(*this, "io"),
- m_iop(*this, I8212_TAG),
- m_dmac(*this, I8237_TAG),
- m_pit(*this, I8253_TAG),
- m_crtc(*this, I8275_TAG),
- m_fdc(*this, UPD765_TAG),
- m_mpsc(*this, UPD7201_TAG),
- m_hgdc(*this, UPD7220_TAG),
- m_palette(*this, "palette"),
- m_floppy0(*this, UPD765_TAG ":0:525qd"),
- m_floppy1(*this, UPD765_TAG ":1:525qd"),
- m_rs232a(*this, RS232_A_TAG),
- m_rs232b(*this, RS232_B_TAG),
- m_rs232c(*this, RS232_C_TAG),
- m_ram(*this, RAM_TAG),
- m_rom(*this, I8085A_TAG),
- m_mmu_rom(*this, "address"),
- m_char_rom(*this, "chargen"),
- m_video_ram(*this, "video_ram"),
- m_a8(0),
- m_recall(0),
- m_dack3(1),
- m_tc(CLEAR_LINE),
- m_fdc_tc(0)
- { }
-
- void mm1(machine_config &config);
- void mm1m6(machine_config &config);
- void mm1m6_video(machine_config &config);
- void mm1m7(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_device<i8085a_cpu_device> m_maincpu;
- required_device<address_map_bank_device> m_io;
- required_device<i8212_device> m_iop;
- required_device<am9517a_device> m_dmac;
- required_device<pit8253_device> m_pit;
- required_device<i8275_device> m_crtc;
- required_device<upd765a_device> m_fdc;
- required_device<upd7201_device> m_mpsc;
- required_device<upd7220_device> m_hgdc;
- required_device<palette_device> m_palette;
- required_device<floppy_image_device> m_floppy0;
- required_device<floppy_image_device> m_floppy1;
- required_device<rs232_port_device> m_rs232a;
- required_device<rs232_port_device> m_rs232b;
- required_device<rs232_port_device> m_rs232c;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- required_memory_region m_mmu_rom;
- required_memory_region m_char_rom;
- required_shared_ptr<uint16_t> m_video_ram;
-
- int m_a8;
-
- // video state
- int m_llen;
-
- // serial state
- int m_intc;
- int m_rx21;
- int m_tx21;
- int m_rcl;
-
- // floppy state
- int m_recall;
- int m_dack3;
- int m_tc;
- int m_fdc_tc;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( a8_w );
- DECLARE_WRITE_LINE_MEMBER( recall_w );
- DECLARE_WRITE_LINE_MEMBER( rx21_w );
- DECLARE_WRITE_LINE_MEMBER( tx21_w );
- DECLARE_WRITE_LINE_MEMBER( rcl_w );
- DECLARE_WRITE_LINE_MEMBER( intc_w );
- DECLARE_WRITE_LINE_MEMBER( llen_w );
- DECLARE_WRITE_LINE_MEMBER( motor_on_w );
- DECLARE_WRITE_LINE_MEMBER( dma_hrq_w );
- uint8_t mpsc_dack_r();
- void mpsc_dack_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( dma_eop_w );
- DECLARE_WRITE_LINE_MEMBER( dack3_w );
- DECLARE_WRITE_LINE_MEMBER( itxc_w );
- DECLARE_WRITE_LINE_MEMBER( irxc_w );
- DECLARE_WRITE_LINE_MEMBER( auxc_w );
- DECLARE_WRITE_LINE_MEMBER( drq2_w );
- DECLARE_WRITE_LINE_MEMBER( drq1_w );
- DECLARE_READ_LINE_MEMBER( dsra_r );
-
- void update_tc();
-
- static void floppy_formats(format_registration &fr);
- I8275_DRAW_CHARACTER_MEMBER( crtc_display_pixels );
- UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels );
- void mm1_palette(palette_device &palette) const;
- void mm1_map(address_map &map);
- void mmu_io_map(address_map &map);
- void mm1_upd7220_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MIKROMIK_H
diff --git a/src/mame/includes/mitchell.h b/src/mame/includes/mitchell.h
deleted file mode 100644
index 462a77b2db4..00000000000
--- a/src/mame/includes/mitchell.h
+++ /dev/null
@@ -1,162 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Mitchell hardware
-
-*************************************************************************/
-
-#include "machine/74157.h"
-#include "machine/nvram.h"
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/msm5205.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class mitchell_state : public driver_device
-{
-public:
- mitchell_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_nvram(*this, "nvram"),
- m_eeprom(*this, "eeprom"),
- m_msm(*this, "msm"),
- m_adpcm_select(*this, "adpcm_select"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_bank1(*this, "bank1"),
- m_bank0d(*this, "bank0d"),
- m_bank1d(*this, "bank1d"),
- m_soundbank(*this, "soundbank") { }
-
- void pkladiesbl(machine_config &config);
- void mstworld(machine_config &config);
- void mgakuen(machine_config &config);
- void marukin(machine_config &config);
- void pang(machine_config &config);
- void pangba(machine_config &config);
- void pangnv(machine_config &config);
- void spangbl(machine_config &config);
-
- void init_mgakuen2();
- void init_block();
- void init_pangb();
- void init_qtono1();
- void init_mgakuen();
- void init_hatena();
- void init_mstworld();
- void init_spangbl();
- void init_pkladiesbl();
- void init_spang();
- void init_cworld();
- void init_spangj();
- void init_qsangoku();
- void init_marukin();
- void init_pang();
- void init_sbbros();
- void init_pkladies();
- void init_blockbl();
- void init_dokaben();
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<okim6295_device> m_oki;
- optional_device<nvram_device> m_nvram;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<msm5205_device> m_msm;
- optional_device<ls157_device> m_adpcm_select;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_memory_bank m_bank1;
- optional_memory_bank m_bank0d;
- optional_memory_bank m_bank1d;
- optional_memory_bank m_soundbank;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- std::vector<uint8_t> m_objram; /* Sprite RAM */
- int m_flipscreen;
- int m_video_bank;
- int m_paletteram_bank;
- std::vector<uint8_t> m_paletteram;
-
- /* sound-related */
- bool m_sample_select;
-
- /* misc */
- int m_input_type;
- int m_dial[2];
- int m_dial_selected;
- int m_dir[2];
- int m_keymatrix;
-
- uint8_t m_irq_source;
- uint8_t pang_port5_r();
- void pang_bankswitch_w(uint8_t data);
- uint8_t block_input_r(offs_t offset);
- void block_dial_control_w(uint8_t data);
- uint8_t mahjong_input_r(offs_t offset);
- void mahjong_input_select_w(uint8_t data);
- uint8_t input_r(offs_t offset);
- void input_w(uint8_t data);
- void mstworld_sound_w(uint8_t data);
- void pang_video_bank_w(uint8_t data);
- void mstworld_video_bank_w(uint8_t data);
- void mgakuen_videoram_w(offs_t offset, uint8_t data);
- uint8_t mgakuen_videoram_r(offs_t offset);
- void mgakuen_objram_w(offs_t offset, uint8_t data);
- uint8_t mgakuen_objram_r(offs_t offset);
- void pang_videoram_w(offs_t offset, uint8_t data);
- uint8_t pang_videoram_r(offs_t offset);
- void pang_colorram_w(offs_t offset, uint8_t data);
- uint8_t pang_colorram_r(offs_t offset);
- void pang_gfxctrl_w(uint8_t data);
- void pangbl_gfxctrl_w(uint8_t data);
- void mstworld_gfxctrl_w(uint8_t data);
- void pang_paletteram_w(offs_t offset, uint8_t data);
- uint8_t pang_paletteram_r(offs_t offset);
- void eeprom_cs_w(uint8_t data);
- void eeprom_clock_w(uint8_t data);
- void eeprom_serial_w(uint8_t data);
- void oki_banking_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
- DECLARE_MACHINE_START(mitchell);
- DECLARE_MACHINE_RESET(mitchell);
- DECLARE_VIDEO_START(pang);
- uint32_t screen_update_pang(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(mitchell_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void bootleg_decode();
- void configure_banks(void (*decode)(uint8_t *src, uint8_t *dst, int size));
- void sound_bankswitch_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(spangbl_adpcm_int);
-
- void decrypted_opcodes_map(address_map &map);
- void mgakuen_map(address_map &map);
- void mitchell_io_map(address_map &map);
- void mitchell_map(address_map &map);
- void mstworld_io_map(address_map &map);
- void mstworld_sound_map(address_map &map);
- void pangba_sound_map(address_map &map);
- void pkladiesbl_io_map(address_map &map);
- void spangbl_io_map(address_map &map);
- void spangbl_map(address_map &map);
- void spangbl_sound_map(address_map &map);
-};
diff --git a/src/mame/includes/mjkjidai.h b/src/mame/includes/mjkjidai.h
deleted file mode 100644
index e2a3b0455f7..00000000000
--- a/src/mame/includes/mjkjidai.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_MJKJIDAI_H
-#define MAME_INCLUDES_MJKJIDAI_H
-
-#pragma once
-
-#include "machine/nvram.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class mjkjidai_state : public driver_device
-{
-public:
- mjkjidai_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_msm(*this, "msm"),
- m_nvram(*this, "nvram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_adpcmrom(*this, "adpcm"),
- m_videoram(*this, "videoram"),
- m_row(*this, "ROW.%u", 0)
- { }
-
- void mjkjidai(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(keyboard_r);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<msm5205_device> m_msm;
- required_device<nvram_device> m_nvram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_region_ptr<uint8_t> m_adpcmrom;
- required_shared_ptr<uint8_t> m_videoram;
-
- required_ioport_array<12> m_row;
-
- int m_adpcm_pos;
- int m_adpcm_end;
- int m_keyb;
- bool m_nmi_enable;
- bool m_display_enable;
- tilemap_t *m_bg_tilemap;
-
- void keyboard_select_lo_w(uint8_t data);
- void keyboard_select_hi_w(uint8_t data);
- void mjkjidai_videoram_w(offs_t offset, uint8_t data);
- void mjkjidai_ctrl_w(uint8_t data);
- void adpcm_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_mjkjidai(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void mjkjidai_io_map(address_map &map);
- void mjkjidai_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MJKJIDAI_H
diff --git a/src/mame/includes/model1.h b/src/mame/includes/model1.h
deleted file mode 100644
index bf4cfc81b6a..00000000000
--- a/src/mame/includes/model1.h
+++ /dev/null
@@ -1,355 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Olivier Galibert
-#ifndef MAME_INCLUDES_MODEL1_H
-#define MAME_INCLUDES_MODEL1_H
-
-#pragma once
-
-#include "audio/dsbz80.h"
-#include "audio/segam1audio.h"
-
-#include "cpu/mb86233/mb86233.h"
-#include "cpu/v60/v60.h"
-#include "machine/i8251.h"
-#include "machine/gen_fifo.h"
-#include "machine/mb8421.h"
-#include "machine/m1comm.h"
-#include "machine/timer.h"
-#include "video/segaic24.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-#include <glm/vec3.hpp>
-
-#include <functional>
-
-class model1_state : public driver_device
-{
-public:
- model1_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_dpram(*this, "dpram")
- , m_m1audio(*this, M1AUDIO_TAG)
- , m_m1uart(*this, "m1uart")
- , m_m1comm(*this, "m1comm")
- , m_dsbz80(*this, DSBZ80_TAG)
- , m_tgp_copro(*this, "tgp_copro")
- , m_screen(*this, "screen")
- , m_copro_fifo_in(*this, "copro_fifo_in")
- , m_copro_fifo_out(*this, "copro_fifo_out")
- , m_poly_rom(*this, "polygons")
- , m_copro_tables(*this, "copro_tables")
- , m_copro_data(*this, "copro_data")
- , m_display_list0(*this, "display_list0")
- , m_display_list1(*this, "display_list1")
- , m_color_xlat(*this, "color_xlat")
- , m_paletteram16(*this, "palette")
- , m_palette(*this, "palette")
- , m_tiles(*this, "tile")
- , m_digits(*this, "digit%u", 0U)
- , m_outs(*this, "out%u", 0U)
- , m_throttle(*this, "THROTTLE")
- {
- }
-
- void model1(machine_config &config);
- void vf(machine_config &config);
- void vr(machine_config &config);
- void vformula(machine_config &config);
- void swa(machine_config &config);
- void wingwar(machine_config &config);
- void wingwar360(machine_config &config);
- void netmerc(machine_config &config);
-
- struct spoint_t
- {
- int32_t x = 0, y = 0;
- };
-
- struct point_t
- {
- float x = 0, y = 0, z = 0;
- float xx = 0, yy = 0;
- spoint_t s;
- };
-
- class quad_t
- {
- public:
- quad_t() { }
- quad_t(int ccol, float cz, point_t* p0, point_t* p1, point_t* p2, point_t* p3)
- : p{ p0, p1, p2, p3 }
- , z(cz)
- , col(ccol)
- {
- }
-
- int compare(const quad_t* other) const;
-
- point_t *p[4] = { nullptr, nullptr, nullptr, nullptr };
- float z = 0;
- int col = 0;
- };
-
-private:
- // Machine
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bank_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- TIMER_DEVICE_CALLBACK_MEMBER(model1_interrupt);
- IRQ_CALLBACK_MEMBER(irq_callback);
-
- // TGP
- u16 fifoin_status_r();
-
- u16 v60_copro_fifo_r(offs_t offset);
- void v60_copro_fifo_w(offs_t offset, u16 data);
- u16 v60_copro_ram_adr_r();
- void v60_copro_ram_adr_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 v60_copro_ram_r(offs_t offset);
- void v60_copro_ram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- void copro_sincos_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_sincos_r(offs_t offset);
- void copro_inv_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_inv_r(offs_t offset);
- void copro_isqrt_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_isqrt_r(offs_t offset);
- void copro_atan_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_atan_r();
- void copro_data_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_data_r(offs_t offset);
- void copro_ramadr_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_ramadr_r(offs_t offset);
- void copro_ramdata_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_ramdata_r(offs_t offset);
-
- void copro_reset();
-
- u32 m_copro_sincos_base;
- u32 m_copro_inv_base;
- u32 m_copro_isqrt_base;
- u32 m_copro_atan_base[4];
- u32 m_copro_data_base;
- u32 m_copro_ram_adr[4];
-
- uint16_t m_r360_state;
- uint8_t r360_r();
- void r360_w(uint8_t data);
-
- // Rendering
- virtual void video_start() override;
- u16 model1_listctl_r(offs_t offset);
- void model1_listctl_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- uint32_t screen_update_model1(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_model1);
-
- struct lightparam_t
- {
- float a = 0;
- float d = 0;
- float s = 0;
- int p = 0;
- };
-
- class view_t
- {
- public:
- view_t() {
- light.x = 0;
- light.y = 0;
- light.z = 0;
- }
-
- void init_translation_matrix();
-
- void set_viewport(float xcenter, float ycenter, float xl, float xr, float yb, float yt);
- void set_lightparam(int index, float diffuse, float ambient, float specular, int power);
- void set_zoom(float x, float y);
- void set_light_direction(float x, float y, float z);
- void set_translation_matrix(float* mat);
- void set_view_translation(float x, float y);
-
- void project_point(point_t *p) const;
- void project_point_direct(point_t *p) const;
-
- void transform_vector(glm::vec3& p) const;
- void transform_point(point_t *p) const;
-
- void recompute_frustum();
-
- int xc = 0, yc = 0, x1 = 0, y1 = 0, x2 = 0, y2 = 0;
- float zoomx = 0, zoomy = 0, viewx = 0, viewy = 0;
- float a_bottom = 0, a_top = 0, a_left = 0, a_right = 0;
- float vxx = 0, vyy = 0, vzz = 0, ayy = 0, ayyc = 0, ayys = 0;
- float translation[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
- glm::vec3 light;
- lightparam_t lightparams[32];
- };
-
- void model1_io(address_map &map);
- void model1_mem(address_map &map);
- void model1_comm_mem(address_map &map);
-
- void copro_prog_map(address_map &map);
- void copro_data_map(address_map &map);
- void copro_external_map(address_map &map);
- void copro_io_map(address_map &map);
- void copro_rf_map(address_map &map);
-
- void polhemus_map(address_map &map);
-
- // Machine
- void irq_raise(int level);
- void irq_init();
- void irq_control_w(u8 data);
-
- uint8_t m_irq_status;
- int m_last_irq;
-
- // Devices
- required_device<v60_device> m_maincpu; // V60
- required_device<mb8421_device> m_dpram;
- required_device<segam1audio_device> m_m1audio; // Model 1 standard sound board
- required_device<i8251_device> m_m1uart;
- optional_device<m1comm_device> m_m1comm; // Model 1 communication board
- optional_device<dsbz80_device> m_dsbz80; // Digital Sound Board
- optional_device<mb86233_device> m_tgp_copro;
- required_device<screen_device> m_screen;
- required_device<generic_fifo_u32_device> m_copro_fifo_in, m_copro_fifo_out;
-
- required_region_ptr<uint32_t> m_poly_rom;
- required_region_ptr<uint32_t> m_copro_tables;
- optional_memory_region m_copro_data;
-
- required_shared_ptr<uint16_t> m_display_list0;
- required_shared_ptr<uint16_t> m_display_list1;
- required_shared_ptr<uint16_t> m_color_xlat;
-
- // Sound
- int m_sound_irq;
-
- // TGP FIFO
- void fifoout_push(uint32_t data);
- void fifoout_push_f(float data);
- uint32_t fifoin_pop();
- float fifoin_pop_f();
- uint16_t ram_get_i();
- float ram_get_f();
- u32 m_v60_copro_fifo_r, m_v60_copro_fifo_w;
-
- // TGP
- void tgp_reset();
- class clipper_t
- {
- public:
- clipper_t()
- : m_isclipped(nullptr)
- , m_clip(nullptr)
- {
- }
-
- clipper_t(std::function<bool(view_t*, point_t*)> isclipped, std::function<void(view_t*, point_t*, point_t*, point_t*)> clip)
- : m_isclipped(isclipped)
- , m_clip(clip)
- {
- }
-
- std::function<bool(view_t*, point_t*)> m_isclipped;
- std::function<void(view_t*, point_t*, point_t*, point_t*)> m_clip;
- };
-
- std::unique_ptr<view_t> m_view;
- std::unique_ptr<point_t[]> m_pointdb;
- point_t *m_pointpt;
- std::unique_ptr<quad_t[]> m_quaddb;
- quad_t *m_quadpt;
- std::unique_ptr<quad_t *[]> m_quadind;
-
- uint16_t m_v60_copro_ram_adr;
- uint16_t m_v60_copro_ram_latch[2];
- std::unique_ptr<uint32_t[]> m_copro_ram_data;
- uint16_t m_listctl[2];
- uint16_t *m_glist;
- bool m_render_done;
-
- std::unique_ptr<uint16_t[]> m_tgp_ram;
- std::unique_ptr<uint32_t[]> m_poly_ram;
-
- // Rendering helper functions
- uint32_t readi(int adr) const;
- int16_t readi16(int adr) const;
- float readf(int adr) const;
- void cross_product(point_t* o, const point_t* p, const point_t* q) const;
- float view_determinant(const point_t *p1, const point_t *p2, const point_t *p3) const;
-
- static bool fclip_isc_bottom(view_t*, point_t*);
- static bool fclip_isc_top(view_t*, point_t*);
- static bool fclip_isc_left(view_t*, point_t*);
- static bool fclip_isc_right(view_t*, point_t*);
- static void fclip_clip_bottom(view_t*, point_t*, point_t*, point_t*);
- static void fclip_clip_top(view_t*, point_t*, point_t*, point_t*);
- static void fclip_clip_left(view_t*, point_t*, point_t*, point_t*);
- static void fclip_clip_right(view_t*, point_t*, point_t*, point_t*);
-
- // Rendering
- void tgp_render(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void tgp_scan();
-
- void sort_quads() const;
- void unsort_quads() const;
- void draw_quads(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- static void recompute_frustum(view_t *view);
- static void draw_hline(bitmap_rgb32 &bitmap, int x1, int x2, int y, int color);
- static void draw_hline_moired(bitmap_rgb32 &bitmap, int x1, int x2, int y, int color);
- static void fill_slope(bitmap_rgb32 &bitmap, view_t *view, int color, int32_t x1, int32_t x2, int32_t sl1, int32_t sl2, int32_t y1, int32_t y2, int32_t *nx1, int32_t *nx2);
- static void fill_line(bitmap_rgb32 &bitmap, view_t *view, int color, int32_t y, int32_t x1, int32_t x2);
- void fill_quad(bitmap_rgb32 &bitmap, view_t *view, const quad_t& q) const;
-
- void fclip_push_quad_next(int level, quad_t& q, point_t *p1, point_t *p2, point_t *p3, point_t *p4);
- void fclip_push_quad(int level, quad_t& q);
-
- static float min4f(float a, float b, float c, float d);
- static float max4f(float a, float b, float c, float d);
- static float compute_specular(glm::vec3& normal, glm::vec3& light, float diffuse,int lmode);
-
- int push_direct(int list_offset);
- int draw_direct(bitmap_rgb32 &bitmap, const rectangle &cliprect, int list_offset);
- int skip_direct(int list_offset) const;
- void push_object(uint32_t tex_adr, uint32_t poly_adr, uint32_t size);
- void draw_objects(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void set_current_render_list();
- int get_list_number();
- void end_frame();
-
- clipper_t m_clipfn[4];
-
- // run-time rendering
- uint16_t* m_display_list_current;
-
- optional_shared_ptr<uint16_t> m_paletteram16;
- required_device<palette_device> m_palette;
- required_device<segas24_tile_device> m_tiles;
-
- // I/O related
- output_finder<2> m_digits;
- output_finder<8> m_outs;
- optional_ioport m_throttle;
- u8 dpram_r(offs_t offset);
- void gen_outputs_w(uint8_t data);
- void vf_outputs_w(uint8_t data);
- void vr_outputs_w(uint8_t data);
- void swa_outputs_w(uint8_t data);
- void wingwar_outputs_w(uint8_t data);
- void wingwar360_outputs_w(uint8_t data);
- void netmerc_outputs_w(uint8_t data);
- void drive_board_w(uint8_t data);
-};
-
-#endif // MAME_INCLUDES_MODEL1_H
diff --git a/src/mame/includes/model2.h b/src/mame/includes/model2.h
deleted file mode 100644
index 9a0deff5935..00000000000
--- a/src/mame/includes/model2.h
+++ /dev/null
@@ -1,859 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont, Olivier Galibert, ElSemi, Angelo Salese
-#ifndef MAME_INCLUDES_MODEL2_H
-#define MAME_INCLUDES_MODEL2_H
-
-#pragma once
-
-#include "audio/dsbz80.h"
-#include "audio/segam1audio.h"
-#include "cpu/i960/i960.h"
-#include "cpu/mb86233/mb86233.h"
-#include "cpu/sharc/sharc.h"
-#include "cpu/mb86235/mb86235.h"
-#include "machine/315-5881_crypt.h"
-#include "machine/315-5838_317-0229_comp.h"
-#include "machine/bankdev.h"
-#include "machine/eepromser.h"
-#include "machine/gen_fifo.h"
-#include "machine/i8251.h"
-#include "machine/m2comm.h"
-#include "machine/segabill.h"
-#include "machine/timer.h"
-#include "sound/scsp.h"
-#include "video/segaic24.h"
-#include "video/poly.h"
-#include "emupal.h"
-#include "screen.h"
-
-#include <algorithm>
-
-
-class model2_renderer;
-
-class model2_state : public driver_device
-{
-public:
- struct plane;
- struct texture_parameter;
- struct triangle;
- struct quad_m2;
- struct raster_state;
- struct geo_state;
-
- model2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_textureram0(*this, "textureram0"),
- m_textureram1(*this, "textureram1"),
- m_workram(*this, "workram"),
- m_bufferram(*this, "bufferram"),
- m_soundram(*this, "soundram"),
- m_maincpu(*this,"maincpu"),
- m_dsbz80(*this, DSBZ80_TAG),
- m_m1audio(*this, M1AUDIO_TAG),
- m_uart(*this, "uart"),
- m_m2comm(*this, "m2comm"),
- m_audiocpu(*this, "audiocpu"),
- m_copro_fifo_in(*this, "copro_fifo_in"),
- m_copro_fifo_out(*this, "copro_fifo_out"),
- m_drivecpu(*this, "drivecpu"),
- m_eeprom(*this, "eeprom"),
- m_tiles(*this, "tile"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_scsp(*this, "scsp"),
- m_timers(*this, "timer%u", 0U),
- m_cryptdevice(*this, "315_5881"),
- m_0229crypt(*this, "317_0229"),
- m_copro_data(*this, "copro_data"),
- m_in0(*this, "IN0"),
- m_gears(*this, "GEARS"),
- m_lightgun_ports(*this, {"P1_Y", "P1_X", "P2_Y", "P2_X"})
- { }
-
- /* Public for access by the rendering functions */
- required_shared_ptr<u32> m_textureram0;
- required_shared_ptr<u32> m_textureram1;
- std::unique_ptr<u16[]> m_palram;
- std::unique_ptr<u16[]> m_colorxlat;
- std::unique_ptr<u16[]> m_lumaram;
- u8 m_gamma_table[256];
- std::unique_ptr<model2_renderer> m_poly;
-
- /* Public for access by the ioports */
- DECLARE_CUSTOM_INPUT_MEMBER(daytona_gearbox_r);
-
- /* Public for access by MCFG */
- TIMER_DEVICE_CALLBACK_MEMBER(model2_interrupt);
- u16 crypt_read_callback(u32 addr);
- DECLARE_MACHINE_START(model2);
-
-
- /* Public for access by GAME() */
- void init_overrev();
- void init_pltkids();
- void init_rchase2();
- void init_manxttdx();
- void init_doa();
- void init_zerogun();
- void init_sgt24h();
- void init_srallyc();
- void init_powsledm();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_shared_ptr<u32> m_workram;
- required_shared_ptr<u32> m_bufferram;
- std::unique_ptr<u16[]> m_fbvramA;
- std::unique_ptr<u16[]> m_fbvramB;
- optional_shared_ptr<u16> m_soundram;
-
- required_device<i960_cpu_device> m_maincpu;
- optional_device<dsbz80_device> m_dsbz80; // Z80-based MPEG Digital Sound Board
- optional_device<segam1audio_device> m_m1audio; // Model 1 standard sound board
- required_device<i8251_device> m_uart;
- optional_device<m2comm_device> m_m2comm; // Model 2 communication board
- optional_device<cpu_device> m_audiocpu;
- required_device<generic_fifo_u32_device> m_copro_fifo_in;
- required_device<generic_fifo_u32_device> m_copro_fifo_out;
- optional_device<cpu_device> m_drivecpu;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<segas24_tile_device> m_tiles;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<scsp_device> m_scsp;
- required_device_array<timer_device, 4> m_timers;
- optional_device<sega_315_5881_crypt_device> m_cryptdevice;
- optional_device<sega_315_5838_comp_device> m_0229crypt;
- optional_memory_region m_copro_data;
-
- required_ioport m_in0;
- optional_ioport m_gears;
- optional_ioport_array<4> m_lightgun_ports;
-
- u32 m_timervals[4];
- u32 m_timerorig[4];
- int m_timerrun[4];
- int m_ctrlmode;
- u16 m_cmd_data;
- u8 m_driveio_comm_data;
- int m_iop_write_num;
- u32 m_iop_data;
-
- u32 m_geo_read_start_address;
- u32 m_geo_write_start_address;
- std::unique_ptr<raster_state> m_raster;
- std::unique_ptr<geo_state> m_geo;
- bitmap_rgb32 m_sys24_bitmap;
-// u32 m_soundack;
- void model2_check_irq_state();
- void model2_check_irqack_state(u32 data);
- u8 m_gearsel;
- u8 m_lightgun_mux;
-
- // Coprocessor communications
- u32 copro_prg_r();
- u32 copro_ctl1_r();
- void copro_ctl1_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_status_r();
-
- // Geometrizer communications
- void geo_ctl1_w(u32 data);
- u32 geo_prg_r(offs_t offset);
- void geo_prg_w(u32 data);
- u32 geo_r(offs_t offset);
- void geo_w(offs_t offset, u32 data);
-
- // Everything else
- u32 timers_r(offs_t offset);
- void timers_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u16 palette_r(offs_t offset);
- void palette_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 colorxlat_r(offs_t offset);
- void colorxlat_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void eeprom_w(u8 data);
- u8 in0_r();
- u32 fifo_control_2a_r();
- u32 videoctl_r();
- void videoctl_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u8 rchase2_drive_board_r();
- void rchase2_drive_board_w(u8 data);
- void drive_board_w(u8 data);
- u8 lightgun_data_r(offs_t offset);
- u8 lightgun_mux_r();
- void lightgun_mux_w(u8 data);
- u8 lightgun_offscreen_r(offs_t offset);
- u32 irq_request_r();
- void irq_ack_w(u32 data);
- u32 irq_enable_r();
- void irq_enable_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 model2_serial_r(offs_t offset, u32 mem_mask = ~0);
- void model2_serial_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void horizontal_sync_w(u16 data);
- void vertical_sync_w(u16 data);
- u32 doa_prot_r(offs_t offset, u32 mem_mask = ~0);
- u32 doa_unk_r();
- void sega_0229_map(address_map &map);
- int m_prot_a;
-
- void raster_init(memory_region *texture_rom);
- void geo_init(memory_region *polygon_rom);
- u32 render_mode_r();
- void render_mode_w(u32 data);
- u16 lumaram_r(offs_t offset);
- void lumaram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 fbvram_bankA_r(offs_t offset);
- void fbvram_bankA_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 fbvram_bankB_r(offs_t offset);
- void fbvram_bankB_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void model2_3d_zclip_w(u32 data);
- void model2snd_ctrl(u16 data);
- u8 tgpid_r(offs_t offset);
- u32 polygon_count_r();
-
- u8 driveio_portg_r();
- u8 driveio_porth_r();
- void driveio_port_w(u8 data);
- void push_geo_data(u32 data);
- DECLARE_VIDEO_START(model2);
- void reset_model2_scsp();
- u32 screen_update_model2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-// DECLARE_WRITE_LINE_MEMBER(screen_vblank_model2);
-// DECLARE_WRITE_LINE_MEMBER(sound_ready_w);
- TIMER_DEVICE_CALLBACK_MEMBER(model2_timer_cb);
- void scsp_irq(offs_t offset, u8 data);
-
- void model2_3d_frame_start( void );
- void geo_parse( void );
- void model2_3d_frame_end( bitmap_rgb32 &bitmap, const rectangle &cliprect );
- void draw_framebuffer(bitmap_rgb32 &bitmap, const rectangle &cliprect );
-
- void model2_timers(machine_config &config);
- void model2_screen(machine_config &config);
- void model2_scsp(machine_config &config);
-
- void sj25_0207_01(machine_config &config);
-
- void drive_io_map(address_map &map);
- void drive_map(address_map &map);
- void geo_sharc_map(address_map &map);
- void model2_base_mem(address_map &map);
- void model2_5881_mem(address_map &map);
- void model2_0229_mem(address_map &map);
- void model2_snd(address_map &map);
- void scsp_map(address_map &map);
-
- void debug_init();
- void debug_commands( int ref, const std::vector<std::string> &params );
- void debug_geo_dasm_command(int ref, const std::vector<std::string> &params);
- void debug_tri_dump_command(int ref, const std::vector<std::string> &params);
- void debug_help_command(int ref, const std::vector<std::string> &params);
-
- virtual void video_start() override;
-
- u32 m_intreq;
- u32 m_intena;
- u32 m_coproctl;
- u32 m_coprocnt;
-
- virtual void copro_halt() = 0;
- virtual void copro_boot() = 0;
-
-private:
- void tri_list_dump(FILE *dst);
-
- u32 m_geoctl;
- u32 m_geocnt;
- u32 m_videocontrol;
-
- bool m_render_unk;
- bool m_render_mode;
- bool m_render_test_mode;
- int16 m_crtc_xoffset, m_crtc_yoffset;
-
- u32 *geo_process_command( geo_state *geo, u32 opcode, u32 *input, bool *end_code );
- // geo commands
- u32 *geo_nop( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_object_data( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_direct_data( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_window_data( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_texture_data( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_polygon_data( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_texture_parameters( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_mode( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_zsort_mode( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_focal_distance( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_light_source( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_matrix_write( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_translate_write( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_data_mem_push( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_test( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_end( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_dummy( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_log_data( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_lod( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_code_upload( geo_state *geo, u32 opcode, u32 *input );
- u32 *geo_code_jump( geo_state *geo, u32 opcode, u32 *input );
- // geo code drawing paths
- void geo_parse_np_ns( geo_state *geo, u32 *input, u32 count );
- void geo_parse_np_s( geo_state *geo, u32 *input, u32 count );
- void geo_parse_nn_ns( geo_state *geo, u32 *input, u32 count );
- void geo_parse_nn_s( geo_state *geo, u32 *input, u32 count );
-
- // raster functions
- // main data input port
- void model2_3d_push( raster_state *raster, u32 input );
- // quad & triangle push paths
- void model2_3d_process_quad( raster_state *raster, u32 attr );
- void model2_3d_process_triangle( raster_state *raster, u32 attr );
-
- // inliners
- inline void model2_3d_project( triangle *tri );
- inline u16 float_to_zval( float floatval );
- inline bool check_culling( raster_state *raster, u32 attr, float min_z, float max_z );
-};
-
-/*****************************
- *
- * Model 2/2A TGP support
- *
- *****************************/
-
-class model2_tgp_state : public model2_state
-{
-public:
- model2_tgp_state(const machine_config &mconfig, device_type type, const char *tag)
- : model2_state(mconfig, type, tag),
- m_copro_tgp(*this, "copro_tgp"),
- m_copro_tgp_program(*this, "copro_tgp_program"),
- m_copro_tgp_tables(*this, "copro_tgp_tables"),
- m_copro_tgp_bank(*this, "copro_tgp_bank")
- {}
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<mb86234_device> m_copro_tgp;
- required_shared_ptr<u32> m_copro_tgp_program;
- required_region_ptr<u32> m_copro_tgp_tables;
- required_device<address_map_bank_device> m_copro_tgp_bank;
-
- u32 m_copro_tgp_bank_reg;
- u32 m_copro_sincos_base;
- u32 m_copro_inv_base;
- u32 m_copro_isqrt_base;
- u32 m_copro_atan_base[4];
-
- void copro_function_port_w(offs_t offset, u32 data);
- u32 copro_fifo_r();
- void copro_fifo_w(u32 data);
- void tex0_w(offs_t offset, u32 data);
- void tex1_w(offs_t offset, u32 data);
-
- void copro_tgp_bank_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_tgp_memory_r(offs_t offset);
- void copro_tgp_memory_w(offs_t offset, u32 data, u32 mem_mask = ~0);
-
- void copro_sincos_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_sincos_r(offs_t offset);
- void copro_inv_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_inv_r(offs_t offset);
- void copro_isqrt_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_isqrt_r(offs_t offset);
- void copro_atan_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 copro_atan_r();
-
- void model2_tgp_mem(address_map &map);
-
- void copro_tgp_prog_map(address_map &map);
- void copro_tgp_data_map(address_map &map);
- void copro_tgp_bank_map(address_map &map);
- void copro_tgp_io_map(address_map &map);
- void copro_tgp_rf_map(address_map &map);
-
- virtual void copro_halt() override;
- virtual void copro_boot() override;
-};
-
-/*****************************
- *
- * Model 2 support
- *
- *****************************/
-
-class model2o_state : public model2_tgp_state
-{
-public:
- model2o_state(const machine_config &mconfig, device_type type, const char *tag)
- : model2_tgp_state(mconfig, type, tag)
- {}
-
- void model2o(machine_config &config);
- void daytona(machine_config &config);
- void desert(machine_config &config);
- void vcop(machine_config &config);
-
-protected:
- u32 fifo_control_2o_r();
- void daytona_output_w(u8 data);
- void desert_output_w(u8 data);
- void vcop_output_w(u8 data);
-
- void model2o_mem(address_map &map);
-};
-
-/*****************************
- *
- * Daytona To The Maxx
- *
- *****************************/
-
-class model2o_maxx_state : public model2o_state
-{
-public:
- model2o_maxx_state(const machine_config &mconfig, device_type type, const char *tag)
- : model2o_state(mconfig, type, tag)
- {}
-
- u32 maxx_r(offs_t offset, u32 mem_mask = ~0);
- void daytona_maxx(machine_config &config);
- void model2o_maxx_mem(address_map &map);
-
-private:
- int m_maxxstate;
-};
-
-/*****************************
- *
- * Daytona GTX 2004 Edition
- *
- *****************************/
-
-class model2o_gtx_state : public model2o_state
-{
-public:
- model2o_gtx_state(const machine_config &mconfig, device_type type, const char *tag)
- : model2o_state(mconfig, type, tag)
- {}
-
- void daytona_gtx(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
-private:
- int m_gtx_state;
-
- u8 gtx_r(offs_t offset);
- void model2o_gtx_mem(address_map &map);
-};
-
-/*****************************
- *
- * Model 2A
- *
- *****************************/
-
-class model2a_state : public model2_tgp_state
-{
-public:
- model2a_state(const machine_config &mconfig, device_type type, const char *tag)
- : model2_tgp_state(mconfig, type, tag),
- m_billboard(*this, "billboard")
- {}
-
- void manxtt(machine_config &config);
- void manxttdx(machine_config &config);
- void model2a(machine_config &config);
- void model2a_0229(machine_config &config);
- void model2a_5881(machine_config &config);
- void srallyc(machine_config &config);
- void vcop2(machine_config &config);
- void skytargt(machine_config &config);
- void zeroguna(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
- void model2a_crx_mem(address_map &map);
- void model2a_5881_mem(address_map &map);
- void model2a_0229_mem(address_map &map);
-
-private:
- required_device<sega_billboard_device> m_billboard;
-};
-
-/*****************************
- *
- * Model 2B
- *
- *****************************/
-
-class model2b_state : public model2_state
-{
-public:
- model2b_state(const machine_config &mconfig, device_type type, const char *tag)
- : model2_state(mconfig, type, tag),
- m_copro_adsp(*this, "copro_adsp"),
- m_billboard(*this, "billboard")
- {}
-
- void model2b(machine_config &config);
- void model2b_0229(machine_config &config);
- void model2b_5881(machine_config &config);
- void indy500(machine_config &config);
- void overrev2b(machine_config &config);
- void powsled(machine_config &config);
- void rchase2(machine_config &config);
- void gunblade(machine_config &config);
- void dynabb(machine_config &config);
- void zerogun(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<adsp21062_device> m_copro_adsp;
-
- void copro_function_port_w(offs_t offset, u32 data);
- u32 copro_fifo_r();
- void copro_fifo_w(u32 data);
- void copro_sharc_iop_w(offs_t offset, u32 data);
- u32 copro_sharc_buffer_r(offs_t offset);
- void copro_sharc_buffer_w(offs_t offset, u32 data);
-
- void model2b_crx_mem(address_map &map);
- void model2b_5881_mem(address_map &map);
- void model2b_0229_mem(address_map &map);
- // TODO: split into own class
- void rchase2_iocpu_map(address_map &map);
- void rchase2_ioport_map(address_map &map);
-
- void copro_sharc_map(address_map &map);
-
- virtual void copro_halt() override;
- virtual void copro_boot() override;
-
-private:
- required_device<sega_billboard_device> m_billboard;
-};
-
-/*****************************
- *
- * Model 2C
- *
- *****************************/
-
-class model2c_state : public model2_state
-{
-public:
- model2c_state(const machine_config &mconfig, device_type type, const char *tag)
- : model2_state(mconfig, type, tag),
- m_copro_tgpx4(*this, "copro_tgpx4"),
- m_copro_tgpx4_program(*this, "copro_tgpx4_program")
- {}
-
- void model2c(machine_config &config);
- void model2c_5881(machine_config &config);
- void skisuprg(machine_config &config);
- void stcc(machine_config &config);
- void waverunr(machine_config &config);
- void bel(machine_config &config);
- void hotd(machine_config &config);
- void overrev2c(machine_config &config);
- void segawski(machine_config &config);
- void topskatr(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<mb86235_device> m_copro_tgpx4;
- required_shared_ptr<u64> m_copro_tgpx4_program;
-
- void copro_function_port_w(offs_t offset, u32 data);
- u32 copro_fifo_r();
- void copro_fifo_w(u32 data);
-
- TIMER_DEVICE_CALLBACK_MEMBER(model2c_interrupt);
-
- void model2c_crx_mem(address_map &map);
- void model2c_5881_mem(address_map &map);
- void copro_tgpx4_map(address_map &map);
- void copro_tgpx4_data_map(address_map &map);
-
- virtual void copro_halt() override;
- virtual void copro_boot() override;
-};
-
-/*****************************
- *
- * Modern polygon renderer
- *
- *****************************/
-
-struct m2_poly_extra_data
-{
- model2_state * state;
- u32 lumabase;
- u32 colorbase;
- u32 * texsheet;
- u32 texwidth;
- u32 texheight;
- u32 texx, texy;
- u8 texmirrorx;
- u8 texmirrory;
-};
-
-
-static inline u16 get_texel( u32 base_x, u32 base_y, int x, int y, u32 *sheet )
-{
- u32 baseoffs = ((base_y/2)*512)+(base_x/2);
- u32 texeloffs = ((y/2)*512)+(x/2);
- u32 offset = baseoffs + texeloffs;
- u32 texel = sheet[offset>>1];
-
- if ( offset & 1 )
- texel >>= 16;
-
- if ( (y & 1) == 0 )
- texel >>= 8;
-
- if ( (x & 1) == 0 )
- texel >>= 4;
-
- return (texel & 0x0f);
-}
-
-// 0x10000 = size of the tri_sorted_list array
-class model2_renderer : public poly_manager<float, m2_poly_extra_data, 4, 0x10000>
-{
-public:
- typedef void (model2_renderer::*scanline_render_func)(int32_t scanline, const extent_t& extent, const m2_poly_extra_data& object, int threadid);
-
-public:
- using triangle = model2_state::triangle;
-
- model2_renderer(model2_state& state)
- : poly_manager<float, m2_poly_extra_data, 4, 0x10000>(state.machine())
- , m_state(state)
- , m_destmap(512, 512)
- {
- m_renderfuncs[0] = &model2_renderer::model2_3d_render_0;
- m_renderfuncs[1] = &model2_renderer::model2_3d_render_1;
- m_renderfuncs[2] = &model2_renderer::model2_3d_render_2;
- m_renderfuncs[3] = &model2_renderer::model2_3d_render_3;
- m_renderfuncs[4] = &model2_renderer::model2_3d_render_4;
- m_renderfuncs[5] = &model2_renderer::model2_3d_render_5;
- m_renderfuncs[6] = &model2_renderer::model2_3d_render_6;
- m_renderfuncs[7] = &model2_renderer::model2_3d_render_7;
- m_xoffs = 90;
- m_yoffs = -8;
- }
-
- bitmap_rgb32& destmap() { return m_destmap; }
-
- void model2_3d_render(triangle *tri, const rectangle &cliprect);
- void set_xoffset(int16 xoffs) { m_xoffs = xoffs; }
- void set_yoffset(int16 yoffs) { m_yoffs = yoffs; }
-
- /* checker = 0, textured = 0, transparent = 0 */
- #define MODEL2_FUNC 0
- #define MODEL2_FUNC_NAME model2_3d_render_0
- #include "video/model2rd.hxx"
- #undef MODEL2_FUNC
- #undef MODEL2_FUNC_NAME
-
- /* checker = 0, textured = 0, translucent = 1 */
- #define MODEL2_FUNC 1
- #define MODEL2_FUNC_NAME model2_3d_render_1
- #include "video/model2rd.hxx"
- #undef MODEL2_FUNC
- #undef MODEL2_FUNC_NAME
-
- /* checker = 0, textured = 1, translucent = 0 */
- #define MODEL2_FUNC 2
- #define MODEL2_FUNC_NAME model2_3d_render_2
- #include "video/model2rd.hxx"
- #undef MODEL2_FUNC
- #undef MODEL2_FUNC_NAME
-
- /* checker = 0, textured = 1, translucent = 1 */
- #define MODEL2_FUNC 3
- #define MODEL2_FUNC_NAME model2_3d_render_3
- #include "video/model2rd.hxx"
- #undef MODEL2_FUNC
- #undef MODEL2_FUNC_NAME
-
- /* checker = 1, textured = 0, translucent = 0 */
- #define MODEL2_FUNC 4
- #define MODEL2_FUNC_NAME model2_3d_render_4
- #include "video/model2rd.hxx"
- #undef MODEL2_FUNC
- #undef MODEL2_FUNC_NAME
-
- /* checker = 1, textured = 0, translucent = 1 */
- #define MODEL2_FUNC 5
- #define MODEL2_FUNC_NAME model2_3d_render_5
- #include "video/model2rd.hxx"
- #undef MODEL2_FUNC
- #undef MODEL2_FUNC_NAME
-
- /* checker = 1, textured = 1, translucent = 0 */
- #define MODEL2_FUNC 6
- #define MODEL2_FUNC_NAME model2_3d_render_6
- #include "video/model2rd.hxx"
- #undef MODEL2_FUNC
- #undef MODEL2_FUNC_NAME
-
- /* checker = 1, textured = 1, translucent = 1 */
- #define MODEL2_FUNC 7
- #define MODEL2_FUNC_NAME model2_3d_render_7
- #include "video/model2rd.hxx"
- #undef MODEL2_FUNC
- #undef MODEL2_FUNC_NAME
-
- scanline_render_func m_renderfuncs[8];
-
-private:
- model2_state& m_state;
- bitmap_rgb32 m_destmap;
- int16_t m_xoffs,m_yoffs;
-};
-
-typedef model2_renderer::vertex_t poly_vertex;
-
-
-/*******************************************
- *
- * Basic Data Types
- *
- *******************************************/
-
-struct model2_state::plane
-{
- plane() : normal(0, 0)
- {
- std::fill(std::begin(normal.p), std::end(normal.p), 0);
- }
-
- poly_vertex normal;
- float distance = 0;
-};
-
-struct model2_state::texture_parameter
-{
- float diffuse = 0;
- float ambient = 0;
- u32 specular_control = 0;
- float specular_scale = 0;
-};
-
-struct model2_state::triangle
-{
- triangle() : v{ { 0, 0 }, { 0, 0 }, { 0, 0 } }
- {
- for (poly_vertex &vertex : v)
- std::fill(std::begin(vertex.p), std::end(vertex.p), 0);
- }
-
- void * next = nullptr;
- poly_vertex v[3];
- u16 z = 0;
- u16 texheader[4] = { 0, 0, 0, 0 };
- u8 luma = 0;
- int16_t viewport[4] = { 0, 0, 0, 0 };
- int16_t center[2] = { 0, 0 };
-};
-
-struct model2_state::quad_m2
-{
- quad_m2() : v{ { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }
- {
- for (poly_vertex &vertex : v)
- std::fill(std::begin(vertex.p), std::end(vertex.p), 0);
- }
-
- poly_vertex v[4];
- u16 z = 0;
- u16 texheader[4] = { 0, 0, 0, 0 };
- u8 luma = 0;
-};
-
-/*******************************************
- *
- * Hardware 3D Rasterizer Internal State
- *
- *******************************************/
-
-#define MAX_TRIANGLES 32768
-
-struct model2_state::raster_state
-{
- raster_state()
- {
- std::fill(std::begin(command_buffer), std::end(command_buffer), 0);
- std::fill(std::begin(tri_sorted_list), std::end(tri_sorted_list), nullptr);
- std::fill(std::begin(texture_ram), std::end(texture_ram), 0);
- std::fill(std::begin(log_ram), std::end(log_ram), 0);
- }
-
-// u32 mode = 0; // bit 0 = Test Mode, bit 2 = Switch 60Hz(1)/30Hz(0) operation
- u16 * texture_rom = nullptr; // Texture ROM pointer
- u32 texture_rom_mask = 0; // Texture ROM mask
- int16_t viewport[4] = { 0, 0, 0, 0 }; // View port (startx,starty,endx,endy)
- int16_t center[4][2] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; // Centers (eye 0[x,y],1[x,y],2[x,y],3[x,y])
- u16 center_sel = 0; // Selected center
- u32 reverse = 0; // Left/Right Reverse
- float z_adjust = 0; // ZSort Mode
- float triangle_z = 0; // Current Triangle z value
- u8 master_z_clip = 0; // Master Z-Clip value
- u32 cur_command = 0; // Current command
- u32 command_buffer[32]; // Command buffer
- u32 command_index = 0; // Command buffer index
- triangle tri_list[MAX_TRIANGLES]; // Triangle list
- u32 tri_list_index = 0; // Triangle list index
- triangle * tri_sorted_list[0x10000]; // Sorted Triangle list
- u16 min_z = 0; // Minimum sortable Z value
- u16 max_z = 0; // Maximum sortable Z value
- u16 texture_ram[0x10000]; // Texture RAM pointer
- u8 log_ram[0x40000]; // Log RAM pointer
-};
-
-/*******************************************
- *
- * Geometry Engine Internal State
- *
- *******************************************/
-
-struct model2_state::geo_state
-{
- geo_state() : focus(0, 0), light(0, 0)
- {
- std::fill(std::begin(matrix), std::end(matrix), 0);
- std::fill(std::begin(focus.p), std::end(focus.p), 0);
- std::fill(std::begin(light.p), std::end(light.p), 0);
- std::fill(std::begin(coef_table), std::end(coef_table), 0);
- std::fill(std::begin(polygon_ram0), std::end(polygon_ram0), 0);
- std::fill(std::begin(polygon_ram1), std::end(polygon_ram1), 0);
- }
-
- raster_state * raster = nullptr;
- u32 mode = 0; // bit 0 = Enable Specular, bit 1 = Calculate Normals
- u32 * polygon_rom = nullptr; // Polygon ROM pointer
- u32 polygon_rom_mask = 0; // Polygon ROM mask
- float matrix[12]; // Current Transformation Matrix
- poly_vertex focus; // Focus (x,y)
- poly_vertex light; // Light Vector
- float lod = 0; // LOD
- float coef_table[32]; // Distane Coefficient table
- texture_parameter texture_parameters[32]; // Texture parameters
- u32 polygon_ram0[0x8000]; // Fast Polygon RAM pointer
- u32 polygon_ram1[0x8000]; // Slow Polygon RAM pointer
- model2_state * state = nullptr;
-};
-
-#endif // MAME_INCLUDES_MODEL2_H
diff --git a/src/mame/includes/model3.h b/src/mame/includes/model3.h
deleted file mode 100644
index 07c712937bc..00000000000
--- a/src/mame/includes/model3.h
+++ /dev/null
@@ -1,396 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont, Ville Linde
-#ifndef MAME_INCLUDES_MODEL3_H
-#define MAME_INCLUDES_MODEL3_H
-
-#pragma once
-
-#include "cpu/powerpc/ppc.h"
-#include "video/poly.h"
-#include "bus/scsi/scsi.h"
-#include "machine/53c810.h"
-#include "audio/dsbz80.h"
-#include "machine/eepromser.h"
-#include "machine/i8251.h"
-#include "sound/scsp.h"
-#include "machine/315_5649.h"
-#include "machine/315-5881_crypt.h"
-#include "machine/segabill.h"
-#include "machine/msm6242.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-typedef float MATRIX[4][4];
-typedef float VECTOR[4];
-typedef float VECTOR3[3];
-
-struct cached_texture
-{
- cached_texture *next;
- uint8_t width;
- uint8_t height;
- uint8_t format;
- uint8_t alpha;
- rgb_t data[1];
-};
-
-struct m3_vertex
-{
- float x;
- float y;
- float z;
- float u;
- float v;
- float nx;
- float ny;
- float nz;
-};
-
-typedef frustum_clip_vertex<float, 4> m3_clip_vertex;
-
-struct m3_triangle
-{
- m3_clip_vertex v[3];
-
- cached_texture *texture;
- int param;
- int transparency;
- int color;
-};
-
-class model3_renderer;
-
-class model3_state : public driver_device
-{
-public:
- model3_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_lsi53c810(*this, "lsi53c810"),
- m_audiocpu(*this, "audiocpu"),
- m_scsp1(*this, "scsp1"),
- m_eeprom(*this, "eeprom"),
- m_screen(*this, "screen"),
- m_rtc(*this, "rtc"),
- m_io(*this, "io"),
- m_work_ram(*this, "work_ram"),
- m_bank_crom(*this, "bank_crom"),
- m_paletteram64(*this, "paletteram64"),
- m_dsbz80(*this, DSBZ80_TAG),
- m_uart(*this, "uart"),
- m_soundram(*this, "soundram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_cryptdevice(*this, "315_5881"),
- m_billboard(*this, "billboard"),
- m_bank2(*this, "bank2")
- {
- m_step15_with_mpc106 = false;
- m_step20_with_old_real3d = false;
- }
-
- void add_cpu_66mhz(machine_config &config);
- void add_cpu_100mhz(machine_config &config);
- void add_cpu_166mhz(machine_config &config);
-
- void add_base_devices(machine_config &config);
- void add_scsi_devices(machine_config &config);
- void add_crypt_devices(machine_config &config);
-
- void model3_21_5881(machine_config &config);
- void model3_20_5881(machine_config &config);
- void model3_15(machine_config &config);
- void model3_10(machine_config &config);
- void model3_20(machine_config &config);
- void model3_21(machine_config &config);
-
- void getbass(machine_config &config);
- void scud(machine_config &config);
- void lostwsga(machine_config &config);
-
- void init_lemans24();
- void init_vs298();
- void init_vs299();
- void init_swtrilgy();
- void init_scudplus();
- void init_model3_20();
- void init_bass();
- void init_vs2();
- void init_daytona2();
- void init_eca();
- void init_srally2();
- void init_harleya();
- void init_skichamp();
- void init_spikeofe();
- void init_scud();
- void init_harley();
- void init_swtrilga();
- void init_swtrilgp();
- void init_vs29815();
- void init_model3_10();
- void init_vs215();
- void init_getbass();
- void init_scudplusa();
- void init_dirtdvls();
- void init_vf3();
- void init_von2();
- void init_lostwsga();
- void init_oceanhun();
- void init_dayto2pe();
- void init_spikeout();
- void init_magtruck();
- void init_lamachin();
- void init_model3_15();
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<ppc_device> m_maincpu;
- optional_device<lsi53c810_device> m_lsi53c810;
- required_device<cpu_device> m_audiocpu;
- required_device<scsp_device> m_scsp1;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<screen_device> m_screen;
- required_device<rtc72421_device> m_rtc;
- required_device<sega_315_5649_device> m_io;
-
- required_shared_ptr<uint64_t> m_work_ram;
- memory_bank_creator m_bank_crom;
- required_shared_ptr<uint64_t> m_paletteram64;
- optional_device<dsbz80_device> m_dsbz80; // Z80-based MPEG Digital Sound Board
- optional_device<i8251_device> m_uart;
- required_shared_ptr<uint16_t> m_soundram;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<sega_315_5881_crypt_device> m_cryptdevice;
-
- required_device<sega_billboard_device> m_billboard;
- memory_bank_creator m_bank2;
-
- tilemap_t *m_layer4[4];
- tilemap_t *m_layer8[4];
-
- int m_sound_irq_enable;
- emu_timer *m_sound_timer;
- emu_timer *m_real3d_dma_timer;
- emu_timer *m_scan_timer;
- uint8_t m_irq_enable;
- uint8_t m_irq_state;
- uint8_t m_scsi_irq_state;
- int m_crom_bank;
- int m_controls_bank;
- bool m_step15_with_mpc106;
- bool m_step20_with_old_real3d;
- uint32_t m_real3d_device_id;
- int m_pci_bus;
- int m_pci_device;
- int m_pci_function;
- int m_pci_reg;
- uint32_t m_mpc105_regs[0x40];
- uint32_t m_mpc105_addr;
- uint32_t m_mpc106_regs[0x40];
- uint32_t m_mpc106_addr;
- uint32_t m_dma_data;
- uint32_t m_dma_status;
- uint32_t m_dma_source;
- uint32_t m_dma_dest;
- uint32_t m_dma_endian;
- uint32_t m_dma_irq;
- uint32_t m_dma_busy;
- uint64_t m_controls_2;
- uint64_t m_controls_3;
- uint8_t m_serial_fifo1;
- uint8_t m_serial_fifo2;
- int m_lightgun_reg_sel;
- int m_adc_channel;
- uint64_t m_real3d_status;
- int m_prot_data_ptr;
- std::unique_ptr<uint32_t[]> m_vrom;
- int m_step;
- int m_m3_step;
- int32_t m_tap_state;
- uint64_t m_ir;
- uint8_t m_id_data[32];
- int32_t m_id_size;
- int m_tdo;
- uint16_t m_layer_priority;
- uint32_t m_layer_modulate_r;
- uint32_t m_layer_modulate_g;
- uint32_t m_layer_modulate_b;
- uint32_t m_layer_modulate1;
- uint32_t m_layer_modulate2;
- uint64_t m_layer_scroll[2];
- std::unique_ptr<uint64_t[]> m_m3_char_ram;
- std::unique_ptr<uint64_t[]> m_m3_tile_ram;
- std::unique_ptr<uint32_t[]> m_texture_fifo;
- int m_texture_fifo_pos;
- std::unique_ptr<uint16_t[]> m_texture_ram[2];
- std::unique_ptr<uint32_t[]> m_display_list_ram;
- std::unique_ptr<uint32_t[]> m_culling_ram;
- std::unique_ptr<uint32_t[]> m_polygon_ram;
- int m_real3d_display_list;
- rectangle m_clip3d;
- rectangle *m_screen_clip;
- VECTOR3 m_parallel_light;
- float m_parallel_light_intensity;
- float m_ambient_light_intensity;
- uint64_t m_vid_reg0;
- int m_matrix_stack_ptr;
- int m_list_depth;
- MATRIX *m_matrix_stack;
- MATRIX m_coordinate_system;
- MATRIX m_projection_matrix;
- float m_viewport_x;
- float m_viewport_y;
- float m_viewport_width;
- float m_viewport_height;
- float m_viewport_near;
- float m_viewport_far;
- uint32_t m_matrix_base_address;
- cached_texture *m_texcache[2][1024/32][2048/32];
-
- model3_renderer *m_renderer;
- m3_triangle* m_tri_buffer;
- m3_triangle* m_tri_alpha_buffer;
- int m_tri_buffer_ptr;
- int m_tri_alpha_buffer_ptr;
- int m_viewport_tri_index[4];
- int m_viewport_tri_alpha_index[4];
-
- uint32_t rtc72421_r(offs_t offset);
- void rtc72421_w(offs_t offset, uint32_t data);
- uint64_t model3_char_r(offs_t offset);
- void model3_char_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t model3_tile_r(offs_t offset);
- void model3_tile_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t model3_vid_reg_r(offs_t offset);
- void model3_vid_reg_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- void model3_palette_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t model3_palette_r(offs_t offset);
- void real3d_display_list_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- void real3d_polygon_ram_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- void real3d_cmd_w(uint64_t data);
- uint64_t mpc105_addr_r(offs_t offset, uint64_t mem_mask = ~0);
- void mpc105_addr_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t mpc105_data_r();
- void mpc105_data_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t mpc105_reg_r(offs_t offset);
- void mpc105_reg_w(offs_t offset, uint64_t data);
- void mpc105_init();
- uint64_t mpc106_addr_r(offs_t offset, uint64_t mem_mask = ~0);
- void mpc106_addr_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t mpc106_data_r(offs_t offset, uint64_t mem_mask = ~0);
- void mpc106_data_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t mpc106_reg_r(offs_t offset);
- void mpc106_reg_w(offs_t offset, uint64_t data);
- void mpc106_init();
- uint64_t scsi_r(offs_t offset, uint64_t mem_mask = ~0);
- void scsi_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t real3d_dma_r(offs_t offset, uint64_t mem_mask = ~0);
- void real3d_dma_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
-
- void eeprom_w(uint8_t data);
- uint8_t input_r();
- void lostwsga_ser1_w(uint8_t data);
- uint8_t lostwsga_ser2_r();
- void lostwsga_ser2_w(uint8_t data);
-
- uint64_t model3_sys_r(offs_t offset, uint64_t mem_mask = ~0);
- void model3_sys_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t model3_rtc_r(offs_t offset, uint64_t mem_mask = ~0);
- void model3_rtc_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t real3d_status_r(offs_t offset);
- uint8_t model3_sound_r(offs_t offset);
- void model3_sound_w(offs_t offset, uint8_t data);
-
- void daytona2_rombank_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- void model3snd_ctrl(uint16_t data);
- uint32_t pci_device_get_reg();
- void pci_device_set_reg(uint32_t value);
- void configure_fast_ram();
- void interleave_vroms();
-
- DECLARE_MACHINE_START(model3_10);
- DECLARE_MACHINE_RESET(model3_10);
- DECLARE_MACHINE_START(model3_15);
- DECLARE_MACHINE_RESET(model3_15);
- DECLARE_MACHINE_START(model3_20);
- DECLARE_MACHINE_RESET(model3_20);
- DECLARE_MACHINE_START(model3_21);
- DECLARE_MACHINE_RESET(model3_21);
- TIMER_CALLBACK_MEMBER(model3_sound_timer_tick);
- TIMER_CALLBACK_MEMBER(real3d_dma_timer_callback);
- TIMER_CALLBACK_MEMBER(model3_scan_timer_tick);
- TIMER_DEVICE_CALLBACK_MEMBER(model3_interrupt);
- void model3_exit();
- void scsp_irq(offs_t offset, uint8_t data);
- void real3d_dma_callback(uint32_t src, uint32_t dst, int length, int byteswap);
- uint32_t scsi_fetch(uint32_t dsp);
- void scsi_irq_callback(int state);
- void update_irq_state();
- void set_irq_line(uint8_t bit, int line);
- void model3_init(int step);
- // video
- uint32_t screen_update_model3(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TILE_GET_INFO_MEMBER(tile_info_layer0_4bit);
- TILE_GET_INFO_MEMBER(tile_info_layer1_4bit);
- TILE_GET_INFO_MEMBER(tile_info_layer2_4bit);
- TILE_GET_INFO_MEMBER(tile_info_layer3_4bit);
- TILE_GET_INFO_MEMBER(tile_info_layer0_8bit);
- TILE_GET_INFO_MEMBER(tile_info_layer1_8bit);
- TILE_GET_INFO_MEMBER(tile_info_layer2_8bit);
- TILE_GET_INFO_MEMBER(tile_info_layer3_8bit);
- void reset_triangle_buffers();
- m3_triangle* push_triangle(bool alpha);
- void draw_layer(bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer, int sx, int sy, int prio);
- void invalidate_texture(int page, int texx, int texy, int texwidth, int texheight);
- cached_texture *get_texture(int page, int texx, int texy, int texwidth, int texheight, int format);
- inline void write_texture16(int xpos, int ypos, int width, int height, int page, uint16_t *data);
- inline void write_texture8(int xpos, int ypos, int width, int height, int page, int upper, int lower, uint16_t *data);
- void real3d_upload_texture(uint32_t header, uint32_t *data);
- void init_matrix_stack();
- void get_top_matrix(MATRIX *out);
- void push_matrix_stack();
- void pop_matrix_stack();
- void multiply_matrix_stack(MATRIX matrix);
- void translate_matrix_stack(float x, float y, float z);
- void draw_model(uint32_t addr);
- uint32_t *get_memory_pointer(uint32_t address);
- void set_projection(float left, float right, float top, float bottom, float near, float far);
- void load_matrix(int matrix_num, MATRIX *out);
- void traverse_list4(int lod_num, uint32_t address);
- void traverse_list(uint32_t address);
- inline void process_link(uint32_t address, uint32_t link);
- void draw_block(uint32_t address);
- void draw_viewport(int pri, uint32_t address);
- void real3d_traverse_display_list();
- void real3d_display_list_end();
- void real3d_display_list1_dma(uint32_t src, uint32_t dst, int length, int byteswap);
- void real3d_display_list2_dma(uint32_t src, uint32_t dst, int length, int byteswap);
- void real3d_vrom_texture_dma(uint32_t src, uint32_t dst, int length, int byteswap);
- void real3d_texture_fifo_dma(uint32_t src, int length, int byteswap);
- void real3d_polygon_ram_dma(uint32_t src, uint32_t dst, int length, int byteswap);
- // machine
- void insert_id(uint32_t id, int32_t start_bit);
- int tap_read();
- void tap_write(int tck, int tms, int tdi, int trst);
- void tap_reset();
- void tap_set_asic_ids();
-
- uint16_t crypt_read_callback(uint32_t addr);
-
- void model3_5881_mem(address_map &map);
- void model3_10_mem(address_map &map);
- void model3_mem(address_map &map);
- void model3_snd(address_map &map);
- void scsp1_map(address_map &map);
- void scsp2_map(address_map &map);
- void getbass_iocpu_mem(address_map &map);
- void getbass_iocpu_io(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MODEL3_H
diff --git a/src/mame/includes/momoko.h b/src/mame/includes/momoko.h
deleted file mode 100644
index 856d87f7dfe..00000000000
--- a/src/mame/includes/momoko.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Uki
-/*************************************************************************
-
- Momoko 120%
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MOMOKO_H
-#define MAME_INCLUDES_MOMOKO_H
-
-#pragma once
-
-#include "emupal.h"
-
-class momoko_state : public driver_device
-{
-public:
- momoko_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_bg_scrolly(*this, "bg_scrolly"),
- m_bg_scrollx(*this, "bg_scrollx"),
- m_bg_gfx(*this, "bg_gfx"),
- m_bg_map(*this, "bg_map"),
- m_bg_col_map(*this, "bg_col_map"),
- m_fg_map(*this, "fg_map"),
- m_proms(*this, "proms"),
- m_bgbank(*this, "bgbank"),
- m_io_fake(*this, "FAKE"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void momoko(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<u8> m_spriteram;
- required_shared_ptr<u8> m_videoram;
- required_shared_ptr<u8> m_bg_scrolly;
- required_shared_ptr<u8> m_bg_scrollx;
- required_region_ptr<u8> m_bg_gfx;
- required_region_ptr<u8> m_bg_map;
- required_region_ptr<u8> m_bg_col_map;
- required_region_ptr<u8> m_fg_map;
- required_region_ptr<u8> m_proms;
- required_memory_bank m_bgbank;
- required_ioport m_io_fake;
-
- /* video-related */
- u8 m_fg_scrollx;
- u8 m_fg_scrolly;
- u8 m_fg_select;
- u8 m_text_scrolly;
- u8 m_text_mode;
- u8 m_bg_select;
- u8 m_bg_priority;
- u8 m_bg_mask;
- u8 m_fg_mask;
- u8 m_flipscreen;
- void bg_read_bank_w(u8 data);
- void fg_scrollx_w(u8 data);
- void fg_scrolly_w(u8 data);
- void fg_select_w(u8 data);
- void text_scrolly_w(u8 data);
- void text_mode_w(u8 data);
- void bg_scrollx_w(offs_t offset, u8 data);
- void bg_scrolly_w(offs_t offset, u8 data);
- void bg_select_w(u8 data);
- void bg_priority_w(u8 data);
- void flipscreen_w(u8 data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_bg_pri(bitmap_ind16 &bitmap, int chr, int col, int flipx, int flipy, int x, int y, int pri);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int start, int end, int flip);
- void draw_text_tilemap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip);
- void draw_fg_romtilemap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip);
- void draw_bg_romtilemap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip, bool high);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- void momoko_map(address_map &map);
- void momoko_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MOMOKO_H
diff --git a/src/mame/includes/moo.h b/src/mame/includes/moo.h
deleted file mode 100644
index 62ec1f55436..00000000000
--- a/src/mame/includes/moo.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont, Acho A. Tang
-/*************************************************************************
-
- Wild West C.O.W.boys of Moo Mesa / Bucky O'Hare
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MOO_H
-#define MAME_INCLUDES_MOO_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "sound/k054539.h"
-#include "machine/k053252.h"
-#include "video/k053251.h"
-#include "video/k054156_k054157_k056832.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/k054000.h"
-#include "video/k054338.h"
-#include "machine/k054321.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-#include "screen.h"
-
-class moo_state : public driver_device
-{
-public:
- moo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_workram(*this, "workram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_oki(*this, "oki"),
- m_k054539(*this, "k054539"),
- m_k053246(*this, "k053246"),
- m_k053251(*this, "k053251"),
- m_k053252(*this, "k053252"),
- m_k056832(*this, "k056832"),
- m_k054338(*this, "k054338"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_k054321(*this, "k054321")
- { }
-
- void bucky(machine_config &config);
- void moo(machine_config &config);
- void moobl(machine_config &config);
-
-private:
- /* memory pointers */
- optional_shared_ptr<uint16_t> m_workram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- /* video-related */
- int m_sprite_colorbase;
- int m_layer_colorbase[4];
- int m_layerpri[3];
- int m_alpha_enabled;
- uint16_t m_zmask;
-
- /* misc */
- uint16_t m_protram[16];
- uint16_t m_cur_control2;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_soundcpu;
- optional_device<okim6295_device> m_oki;
- optional_device<k054539_device> m_k054539;
- required_device<k053247_device> m_k053246;
- required_device<k053251_device> m_k053251;
- optional_device<k053252_device> m_k053252;
- required_device<k056832_device> m_k056832;
- required_device<k054338_device> m_k054338;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- optional_device<k054321_device> m_k054321;
-
- emu_timer *m_dmaend_timer;
- uint16_t control2_r();
- void control2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_irq_w(uint16_t data);
- void sound_bankswitch_w(uint8_t data);
- void moo_prot_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void moobl_oki_bank_w(uint16_t data);
- DECLARE_MACHINE_START(moo);
- DECLARE_MACHINE_RESET(moo);
- DECLARE_VIDEO_START(moo);
- DECLARE_VIDEO_START(bucky);
- uint32_t screen_update_moo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(moo_interrupt);
- INTERRUPT_GEN_MEMBER(moobl_interrupt);
- TIMER_CALLBACK_MEMBER(dmaend_callback);
- void moo_objdma();
- K056832_CB_MEMBER(tile_callback);
- K053246_CB_MEMBER(sprite_callback);
- void bucky_map(address_map &map);
- void moo_map(address_map &map);
- void moobl_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MOO_H
diff --git a/src/mame/includes/mosaic.h b/src/mame/includes/mosaic.h
deleted file mode 100644
index 4b4984bebf3..00000000000
--- a/src/mame/includes/mosaic.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Mosaic
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MOSAIC_H
-#define MAME_INCLUDES_MOSAIC_H
-
-#pragma once
-
-#include "tilemap.h"
-
-class mosaic_state : public driver_device
-{
-public:
- mosaic_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_fgvideoram(*this, "fgvideoram"),
- m_bgvideoram(*this, "bgvideoram")
- { }
-
- void mosaic(machine_config &config);
- void gfire2(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_bgvideoram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- /* misc */
- int m_prot_val;
-
- void protection_w(uint8_t data);
- uint8_t protection_r();
- void gfire2_protection_w(uint8_t data);
- uint8_t gfire2_protection_r();
- void fgvideoram_w(offs_t offset, uint8_t data);
- void bgvideoram_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void gfire2_io_map(address_map &map);
- void gfire2_map(address_map &map);
- void mosaic_io_map(address_map &map);
- void mosaic_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MOSAIC_H
diff --git a/src/mame/includes/mouser.h b/src/mame/includes/mouser.h
deleted file mode 100644
index a68a349f06d..00000000000
--- a/src/mame/includes/mouser.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Frank Palazzolo
-/*************************************************************************
-
- Mouser
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MOUSER_H
-#define MAME_INCLUDES_MOUSER_H
-
-#pragma once
-
-#include "emupal.h"
-
-class mouser_state : public driver_device
-{
-public:
- mouser_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void mouser(machine_config &config);
-
- void init_mouser();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* misc */
- bool m_nmi_enable;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- void mouser_sound_nmi_clear_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
- void mouser_palette(palette_device &palette) const;
- uint32_t screen_update_mouser(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(mouser_nmi_interrupt);
- INTERRUPT_GEN_MEMBER(mouser_sound_nmi_assert);
- void decrypted_opcodes_map(address_map &map);
- void mouser_map(address_map &map);
- void mouser_sound_io_map(address_map &map);
- void mouser_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MOUSER_H
diff --git a/src/mame/includes/mpf1.h b/src/mame/includes/mpf1.h
deleted file mode 100644
index fcac6f75e50..00000000000
--- a/src/mame/includes/mpf1.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol, Curt Coder
-#ifndef MAME_INCLUDES_MPF1_H
-#define MAME_INCLUDES_MPF1_H
-
-#pragma once
-
-
-#include "machine/spchrom.h"
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "imagedev/cassette.h"
-#include "machine/i8255.h"
-#include "machine/timer.h"
-#include "machine/z80ctc.h"
-#include "machine/z80pio.h"
-#include "sound/spkrdev.h"
-#include "sound/tms5220.h"
-
-#define Z80_TAG "u1"
-#define Z80CTC_TAG "u11"
-#define Z80PIO_TAG "u10"
-#define I8255A_TAG "u14"
-#define TMS5220_TAG "tms5220"
-
-class mpf1_state : public driver_device
-{
-public:
- mpf1_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_ctc(*this, Z80CTC_TAG),
- m_speaker(*this, "speaker"),
- m_cassette(*this, "cassette"),
- m_pc(*this, "PC%u", 0U),
- m_special(*this, "SPECIAL"),
- m_digits(*this, "digit%u", 0U),
- m_leds(*this, "led%u", 0U)
- { }
-
- void mpf1p(machine_config &config);
- void mpf1b(machine_config &config);
- void mpf1(machine_config &config);
-
- void init_mpf1();
-
- DECLARE_INPUT_CHANGED_MEMBER( trigger_nmi );
- DECLARE_INPUT_CHANGED_MEMBER( trigger_irq );
- DECLARE_INPUT_CHANGED_MEMBER( trigger_res );
-
-private:
- required_device<z80_device> m_maincpu;
- required_device<z80ctc_device> m_ctc;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_ioport_array<6> m_pc;
- required_ioport m_special;
- output_finder<6> m_digits;
- output_finder<2> m_leds;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t step_r(offs_t offset);
- uint8_t ppi_pa_r();
- void ppi_pb_w(uint8_t data);
- void ppi_pc_w(uint8_t data);
-
- int m_break;
- int m_m1;
-
- uint8_t m_lednum;
-
- emu_timer *m_led_refresh_timer;
- address_space *m_program;
-
- TIMER_CALLBACK_MEMBER(led_refresh);
- TIMER_DEVICE_CALLBACK_MEMBER(check_halt_callback);
- void mpf1_io_map(address_map &map);
- void mpf1_map(address_map &map);
- void mpf1_step(address_map &map);
- void mpf1b_io_map(address_map &map);
- void mpf1b_map(address_map &map);
- void mpf1p_io_map(address_map &map);
- void mpf1p_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MPF1_H
diff --git a/src/mame/includes/mpu4.h b/src/mame/includes/mpu4.h
deleted file mode 100644
index 4d8d37c5ac3..00000000000
--- a/src/mame/includes/mpu4.h
+++ /dev/null
@@ -1,436 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-
-#include "machine/6821pia.h"
-#include "machine/6840ptm.h"
-#include "machine/nvram.h"
-#include "machine/timer.h"
-
-#include "cpu/m6809/m6809.h"
-#include "sound/ay8910.h"
-#include "sound/okim6376.h"
-#include "sound/upd7759.h"
-#include "sound/ym2413.h"
-#include "machine/steppers.h"
-#include "machine/roc10937.h"
-#include "machine/meters.h"
-
-#include "machine/bacta_datalogger.h"
-
-#include "emupal.h"
-
-
-#define MPU4_MASTER_CLOCK XTAL(6'880'000)
-#define VIDEO_MASTER_CLOCK XTAL(10'000'000)
-
-#ifdef MAME_DEBUG
-#define MPU4VIDVERBOSE 1
-#else
-#define MPU4VIDVERBOSE 0
-#endif
-
-#define LOGSTUFF(x) do { if (MPU4VIDVERBOSE) logerror x; } while (0)
-
-
-
-#ifdef MAME_DEBUG
-#define MPU4VERBOSE 1
-#else
-#define MPU4VERBOSE 0
-#endif
-
-#define LOG(x) do { if (MPU4VERBOSE) logerror x; } while (0)
-#define LOG_CHR(x) do { if (MPU4VERBOSE) logerror x; } while (0)
-#define LOG_CHR_FULL(x) do { if (MPU4VERBOSE) logerror x; } while (0)
-#define LOG_IC3(x) do { if (MPU4VERBOSE) logerror x; } while (0)
-#define LOG_IC8(x) do { if (MPU4VERBOSE) logerror x; } while (0)
-#define LOG_SS(x) do { if (MPU4VERBOSE) logerror x; } while (0)
-
-
-
-
-
-static const uint8_t reel_mux_table[8]= {0,4,2,6,1,5,3,7};//include 7, although I don't think it's used, this is basically a wire swap
-static const uint8_t reel_mux_table7[8]= {3,1,5,6,4,2,0,7};
-
-static const uint8_t bwb_chr_table_common[10]= {0x00,0x04,0x04,0x0c,0x0c,0x1c,0x14,0x2c,0x5c,0x2c};
-
-//reel info
-#define STANDARD_REEL 0 // As originally designed 3/4 reels
-#define FIVE_REEL_5TO8 1 // Interfaces to meter port, allows some mechanical metering, but there is significant 'bounce' in the extra reel
-#define FIVE_REEL_8TO5 2 // Mounted backwards for space reasons, but different board
-#define FIVE_REEL_3TO6 3 // Connected to the centre of the meter connector, taking up meters 3 to 6
-#define SIX_REEL_1TO8 4 // Two reels on the meter drives
-#define SIX_REEL_5TO8 5 // Like FIVE_REEL_5TO8, but with an extra reel elsewhere
-#define SEVEN_REEL 6 // Mainly club machines, significant reworking of reel hardware
-#define FLUTTERBOX 7 // A fan feature using a reel mux-like setup, but not actually a reel
-
-//Lamp extension
-#define NO_EXTENDER 0 // As originally designed
-#define SMALL_CARD 1
-#define LARGE_CARD_A 2 //96 Lamps
-#define LARGE_CARD_B 3 //96 Lamps, 16 LEDs - as used by BwB
-#define LARGE_CARD_C 4 //Identical to B, no built in LED support
-
-//LED cards
-#define CARD_A 1
-#define CARD_B 2
-#define CARD_C 3
-#define SIMPLE_CARD 4
-
-
-//Hopper info
-#define TUBES 0
-#define HOPPER_DUART_A 1
-#define HOPPER_DUART_B 2
-#define HOPPER_DUART_C 3
-#define HOPPER_NONDUART_A 4
-#define HOPPER_NONDUART_B 5
-
-/* Lookup table for CHR data */
-
-struct mpu4_chr_table
-{
- uint8_t call;
- uint8_t response;
-};
-
-struct bwb_chr_table//dynamically populated table for BwB protection
-{
- uint8_t response;
-};
-
-
-class mpu4_state : public driver_device
-{
-public:
- mpu4_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_vfd(*this, "vfd")
- , m_6840ptm(*this, "ptm_ic2")
- , m_ptm_ic3ss(*this, "ptm_ic3ss")
- , m_pia3(*this, "pia_ic3")
- , m_pia4(*this, "pia_ic4")
- , m_pia5(*this, "pia_ic5")
- , m_pia6(*this, "pia_ic6")
- , m_pia7(*this, "pia_ic7")
- , m_pia8(*this, "pia_ic8")
- , m_pia_ic4ss(*this, "pia_ic4ss")
- , m_port_mux(*this, {"ORANGE1", "ORANGE2", "BLACK1", "BLACK2", "ORANGE1", "ORANGE2", "DIL1", "DIL2"})
- , m_aux1_port(*this, "AUX1")
- , m_aux2_port(*this, "AUX2")
- , m_bank1(*this, "bank1")
- , m_msm6376(*this, "msm6376")
- , m_reel(*this, "reel%u", 0U)
- , m_palette(*this, "palette")
- , m_meters(*this, "meters")
- , m_ym2413(*this, "ym2413")
- , m_ay8913(*this, "ay8913")
- , m_dataport(*this, "dataport")
- , m_lamps(*this, "lamp%u", 0U)
- , m_mpu4leds(*this, "mpu4led%u", 0U)
- , m_digits(*this, "digit%u", 0U)
- , m_triacs(*this, "triac%u", 0U)
- , m_current_chr_table(nullptr)
- { }
-
- void init_m4default_alt();
- void init_crystali();
- void init_m4tst2();
- void init_crystal();
- void init_m_frkstn();
- void init_m4default_big();
- void init_m4default();
- void init_m4default_banks();
- void init_m4default_reels();
- void init_m4_low_volt_alt();
- void init_m4_aux1_invert();
- void init_m4_aux2_invert();
- void init_m4_door_invert();
- void init_m4_five_reel_std();
- void init_m4_five_reel_rev();
- void init_m4_five_reel_alt();
- void init_m4_six_reel_std();
- void init_m4_six_reel_alt();
- void init_m4_seven_reel();
- void init_m4_small_extender();
- void init_m4_large_extender_a();
- void init_m4_large_extender_b();
- void init_m4_large_extender_c();
- void init_m4_hopper_tubes();
- void init_m4_hopper_duart_a();
- void init_m4_hopper_duart_b();
- void init_m4_hopper_duart_c();
- void init_m4_hopper_nonduart_a();
- void init_m4_hopper_nonduart_b();
- void init_m4_led_a();
- void init_m4_led_b();
- void init_m4_led_c();
- void init_m4_led_simple();
- void init_m4_andycp10c();
- void init_m_blsbys();
- void init_m_oldtmr();
- void init_m4tst();
- void init_m_ccelbr();
- void init_m4gambal();
- void init_m4debug();
- void init_m4_showstring();
- void init_m4_showstring_mod4yam();
- void init_m4_debug_mod4yam();
- void init_m4_showstring_mod2();
- void init_m4_showstring_big();
- void init_connect4();
- void init_m4altreels();//legacy, will be removed once things are sorted out
- void init_m_grtecp();//legacy, will be removed once things are sorted out RE: CHR
- void init_m4tenten();
- void init_m4actbnk();
- void init_m4actclb();
- void init_m4actpak();
- void init_m4addr();
- void init_m4aao();
- void init_m4alladv();
- void init_m4alpha();
- void init_m4andycp();
- void init_m4andybt();
- void init_m4andyfh();
- void init_m4andyge();
- void init_m4apachg();
-
- void bwboki(machine_config &config);
- void mod2(machine_config &config);
- void mod2_alt(machine_config &config);
- void mod4oki(machine_config &config);
- void mod4oki_5r(machine_config &config);
- void mod4oki_alt(machine_config &config);
- void mod4yam(machine_config &config);
- void mpu4_common(machine_config &config);
- void mpu4_common2(machine_config &config);
- void mpu4crys(machine_config &config);
- void mpu4_std_3reel(machine_config &config);
- void mpu4_type2_3reel(machine_config &config);
- void mpu4_type3_3reel(machine_config &config);
- void mpu4_type4_3reel(machine_config &config);
- void mpu4_bwb_3reel(machine_config &config);
- void mpu4_std_4reel(machine_config &config);
- void mpu4_type2_4reel(machine_config &config);
- void mpu4_type3_4reel(machine_config &config);
- void mpu4_type4_4reel(machine_config &config);
- void mpu4_bwb_4reel(machine_config &config);
- void mpu4_std_5reel(machine_config &config);
- void mpu4_type2_5reel(machine_config &config);
- void mpu4_type3_5reel(machine_config &config);
- void mpu4_type4_5reel(machine_config &config);
- void mpu4_bwb_5reel(machine_config &config);
- void mpu4_std_6reel(machine_config &config);
- void mpu4_type2_6reel(machine_config &config);
- void mpu4_type3_6reel(machine_config &config);
- void mpu4_type4_6reel(machine_config &config);
- void mpu4_bwb_6reel(machine_config &config);
- void mpu4_std_7reel(machine_config &config);
- void mpu4_type2_7reel(machine_config &config);
- void mpu4_type3_7reel(machine_config &config);
- void mpu4_type4_7reel(machine_config &config);
- void mpu4_bwb_7reel(machine_config &config);
- void mpu4base(machine_config &config);
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- void mpu4_memmap(address_map &map);
- void lamp_extend_small(int data);
- void lamp_extend_large(int data,int column,int active);
- void led_write_extender(int latch, int data, int column);
- void update_meters();
- void ic23_update();
- void ic24_output(int data);
- void ic24_setup();
- void update_ay(device_t *device);
- void mpu4_install_mod4yam_space(address_space &space);
- void mpu4_install_mod4oki_space(address_space &space);
- void mpu4_install_mod4bwb_space(address_space &space);
- void mpu4_config_common();
- DECLARE_MACHINE_START(mod2);
- DECLARE_MACHINE_RESET(mpu4);
- DECLARE_MACHINE_START(mpu4yam);
- DECLARE_MACHINE_START(mpu4oki);
- DECLARE_MACHINE_START(mpu4oki_alt);
- DECLARE_MACHINE_START(mod4oki_5r);
- DECLARE_MACHINE_START(mod2_alt);
- DECLARE_MACHINE_START(mpu4bwb);
- DECLARE_MACHINE_START(mpu4cry);
- TIMER_DEVICE_CALLBACK_MEMBER(gen_50hz);
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(reel_optic_cb) { if (state) m_optic_pattern |= (1 << N); else m_optic_pattern &= ~(1 << N); }
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
- {
- return 0;
- }
-
- void bankswitch_w(uint8_t data);
- uint8_t bankswitch_r();
- void bankset_w(uint8_t data);
- void characteriser_w(offs_t offset, uint8_t data);
- uint8_t characteriser_r(address_space &space, offs_t offset);
- void bwb_characteriser_w(offs_t offset, uint8_t data);
- uint8_t bwb_characteriser_r(offs_t offset);
- void mpu4_ym2413_w(offs_t offset, uint8_t data);
- uint8_t mpu4_ym2413_r(offs_t offset);
- uint8_t crystal_sound_r();
- void crystal_sound_w(uint8_t data);
- void ic3ss_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(cpu0_irq);
- DECLARE_WRITE_LINE_MEMBER(ic2_o1_callback);
- DECLARE_WRITE_LINE_MEMBER(ic2_o2_callback);
- DECLARE_WRITE_LINE_MEMBER(ic2_o3_callback);
- void pia_ic3_porta_w(uint8_t data);
- void pia_ic3_portb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pia_ic3_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pia_ic3_cb2_w);
- void pia_ic4_porta_w(uint8_t data);
- void pia_ic4_portb_w(uint8_t data);
- uint8_t pia_ic4_portb_r();
- DECLARE_WRITE_LINE_MEMBER(pia_ic4_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pia_ic4_cb2_w);
- uint8_t pia_ic5_porta_r();
- void pia_ic5_porta_w(uint8_t data);
- void pia_ic5_portb_w(uint8_t data);
- uint8_t pia_ic5_portb_r();
- DECLARE_WRITE_LINE_MEMBER(pia_ic5_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pia_ic5_cb2_w);
- void pia_ic6_portb_w(uint8_t data);
- void pia_ic6_porta_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pia_ic6_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pia_ic6_cb2_w);
- void pia_ic7_porta_w(uint8_t data);
- void pia_ic7_portb_w(uint8_t data);
- uint8_t pia_ic7_portb_r();
- DECLARE_WRITE_LINE_MEMBER(pia_ic7_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pia_ic7_cb2_w);
- uint8_t pia_ic8_porta_r();
- void pia_ic8_portb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pia_ic8_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pia_ic8_cb2_w);
- void pia_gb_porta_w(uint8_t data);
- void pia_gb_portb_w(uint8_t data);
- uint8_t pia_gb_portb_r();
- DECLARE_WRITE_LINE_MEMBER(pia_gb_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pia_gb_cb2_w);
-
- DECLARE_WRITE_LINE_MEMBER(dataport_rxd);
-
- required_device<cpu_device> m_maincpu;
- optional_device<rocvfd_device> m_vfd;
- optional_device<ptm6840_device> m_6840ptm;
- optional_device<ptm6840_device> m_ptm_ic3ss;
- optional_device<pia6821_device> m_pia3;
- optional_device<pia6821_device> m_pia4;
- optional_device<pia6821_device> m_pia5;
- optional_device<pia6821_device> m_pia6;
- optional_device<pia6821_device> m_pia7;
- optional_device<pia6821_device> m_pia8;
- optional_device<pia6821_device> m_pia_ic4ss;
- required_ioport_array<8> m_port_mux;
- required_ioport m_aux1_port;
- required_ioport m_aux2_port;
- optional_memory_bank m_bank1;
- optional_device<okim6376_device> m_msm6376;
- optional_device_array<stepper_device, 8> m_reel;
- optional_device<palette_device> m_palette;
- required_device<meters_device> m_meters;
- optional_device<ym2413_device> m_ym2413;
- optional_device<ay8913_device> m_ay8913;
- optional_device<bacta_datalogger_device> m_dataport;
-
- // not all systems have this many lamps/LEDs/digits but the driver is too much of a mess to split up now
-
- // 0-63 are on PIA IC3 port A (always present)
- // 64-127 are on PIA IC3 port B (always present)
- // 128-132 136-140 144-148 152-156 160-164 168-172 176-180 184-188 are on small lamp extender
- // 128-255 are on large lamp externders
- output_finder<256> m_lamps;
-
- // 0-63 are on PIA IC4 port A (always present)
- // 0-143 are on card B (possibly incorrectly mapped?)
- // 64-127 are on card C
- // 0-127 are on large card B
- output_finder<144> m_mpu4leds;
-
- // 0-7 are on PIA IC4 port A with no LED extender
- // 0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136 are on card B (possible incorrectly mapped?)
- // 8-15 are on card C
- // 8-9 are mapped to lamp lines for Connect 4
- // 0-15 are on large card B
- output_finder<144> m_digits;
-
- output_finder<8> m_triacs;
-
- enum
- {
- TIMER_IC24
- };
-
- int m_mod_number;
- int m_mmtr_data;
- int m_ay8913_address;
- int m_serial_data;
- int m_signal_50hz;
- int m_ic4_input_b;
- int m_aux1_input;
- int m_aux2_input;
- int m_IC23G1;
- int m_IC23G2A;
- int m_IC23G2B;
- int m_IC23GC;
- int m_IC23GB;
- int m_IC23GA;
- int m_prot_col;
- int m_lamp_col;
- int m_init_col;
- int m_reel_flag;
- int m_ic23_active;
- int m_led_lamp;
- int m_link7a_connected;
- int m_low_volt_detect_disable = 0;
- int m_aux1_invert;
- int m_aux2_invert;
- int m_door_invert;
- emu_timer *m_ic24_timer;
- int m_expansion_latch;
- int m_global_volume;
- int m_input_strobe = 0;
- uint8_t m_lamp_strobe;
- uint8_t m_lamp_strobe2;
- uint8_t m_lamp_strobe_ext;
- uint8_t m_lamp_strobe_ext_persistence;
- uint8_t m_led_strobe;
- uint8_t m_ay_data;
- int m_optic_pattern;
-
- int m_active_reel;
- int m_remote_meter = 0;
- int m_reel_mux;
- int m_lamp_extender;
- int m_last_b7;
- int m_last_latch;
- int m_lamp_sense;
- int m_card_live;
- int m_led_extender;
- int m_bwb_bank = 0;
- int m_chr_state;
- int m_chr_counter;
- int m_chr_value;
- int m_bwb_return;
- int m_pageval;
- int m_pageset;
- int m_hopper;
- int m_reels = 0;
- int m_chrdata;
- int m_t1;
- int m_t3l;
- int m_t3h;
- uint8_t m_numbanks = 0;
- mpu4_chr_table* m_current_chr_table;
- const bwb_chr_table* m_bwb_chr_table1;
-};
-
-INPUT_PORTS_EXTERN( mpu4 );
diff --git a/src/mame/includes/mpu5.h b/src/mame/includes/mpu5.h
deleted file mode 100644
index 93c83745707..00000000000
--- a/src/mame/includes/mpu5.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_MPU5_H
-#define MAME_INCLUDES_MPU5_H
-
-#pragma once
-
-#include "machine/68340.h"
-#include "machine/sec.h"
-
-
-class mpu5_state : public driver_device
-{
-public:
- mpu5_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_sec(*this, "sec")
- { }
-
- void mpu5(machine_config &config);
-
-private:
- uint32_t mpu5_mem_r(offs_t offset, uint32_t mem_mask = ~0);
- void mpu5_mem_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t asic_r32(offs_t offset, uint32_t mem_mask = ~0);
- uint8_t asic_r8(offs_t offset);
- void asic_w32(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void asic_w8(offs_t offset, uint8_t data);
-
- uint32_t pic_r(offs_t offset);
- void pic_w(offs_t offset, uint32_t data);
-
- virtual void machine_start() override;
- void mpu5_map(address_map &map);
-
- uint32_t* m_cpuregion;
- std::unique_ptr<uint32_t[]> m_mainram;
-
- uint8_t m_led_strobe_temp;
- uint8_t m_led_strobe;
- uint8_t m_pic_clk;
- bool m_pic_transfer_in_progress;
- uint8_t m_pic_bit1;
- uint8_t m_pic_data;
- uint8_t m_pic_clocked_bits;
- uint8_t m_pic_stored_input;
- uint8_t m_pic_output_bit;
- uint8_t m_input_strobe;
-
- // devices
- required_device<m68340_cpu_device> m_maincpu;
- required_device<sec_device> m_sec;
-};
-
-INPUT_PORTS_EXTERN( mpu5 );
-
-#endif // MAME_INCLUDES_MPU5_H
diff --git a/src/mame/includes/mpz80.h b/src/mame/includes/mpz80.h
deleted file mode 100644
index 1391a4501eb..00000000000
--- a/src/mame/includes/mpz80.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_MPZ80_H
-#define MAME_INCLUDES_MPZ80_H
-
-#pragma once
-
-#include "bus/s100/s100.h"
-#include "cpu/z80/z80.h"
-#include "machine/ram.h"
-
-#define Z80_TAG "17a"
-#define AM9512_TAG "17d"
-#define S100_TAG "s100"
-
-class mpz80_state : public driver_device
-{
-public:
- mpz80_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_ram(*this, RAM_TAG),
- m_s100(*this, S100_TAG),
- m_rom(*this, Z80_TAG),
- m_map_ram(*this, "map_ram", 0x200, ENDIANNESS_LITTLE),
- m_16c(*this, "16C"),
- m_nmi(1),
- m_pint(1),
- m_int_pend(0),
- m_pretrap(0),
- m_trap(0),
- m_trap_reset(0),
- m_trap_void(1),
- m_trap_halt(1),
- m_trap_int(1),
- m_trap_stop(1),
- m_trap_aux(1)
- { }
-
- void mpz80(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_device<s100_bus_device> m_s100;
- required_memory_region m_rom;
- memory_share_creator<uint8_t> m_map_ram;
- required_ioport m_16c;
-
- inline offs_t get_address(offs_t offset);
- inline offs_t get_io_address(offs_t offset);
-
- inline void check_traps();
- inline void check_interrupt();
-
- uint8_t mmu_r(offs_t offset);
- void mmu_w(offs_t offset, uint8_t data);
- uint8_t mmu_io_r(offs_t offset);
- void mmu_io_w(offs_t offset, uint8_t data);
- uint8_t trap_addr_r();
- uint8_t keyboard_r();
- uint8_t switch_r();
- uint8_t status_r();
- void disp_seg_w(uint8_t data);
- void disp_col_w(uint8_t data);
- void task_w(uint8_t data);
- void mask_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( s100_pint_w );
- DECLARE_WRITE_LINE_MEMBER( s100_nmi_w );
-
- // memory state
- uint32_t m_addr;
- uint8_t m_task;
- uint8_t m_mask;
-
- // interrupt state
- int m_nmi;
- int m_pint;
- int m_int_pend;
-
- // trap state
- uint8_t m_pretrap_addr;
- uint8_t m_trap_addr;
- uint8_t m_status;
- uint16_t m_trap_start;
- int m_pretrap;
- int m_trap;
- int m_trap_reset;
- int m_trap_void;
- int m_trap_halt;
- int m_trap_int;
- int m_trap_stop;
- int m_trap_aux;
- void init_mpz80();
- void mpz80_io(address_map &map);
- void mpz80_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MPZ80_H
diff --git a/src/mame/includes/mrdo.h b/src/mame/includes/mrdo.h
deleted file mode 100644
index 331894c97f7..00000000000
--- a/src/mame/includes/mrdo.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Mr. Do
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MRDO_H
-#define MAME_INCLUDES_MRDO_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class mrdo_state : public driver_device
-{
-public:
- mrdo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bgvideoram(*this, "bgvideoram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void mrdo(machine_config &config);
- void mrlo(machine_config &config);
- void mrdobl(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- // memory pointers
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- // video-related
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- int m_flipscreen;
-
- uint8_t mrdo_SECRE_r();
- void mrdo_bgvideoram_w(offs_t offset, uint8_t data);
- void mrdo_fgvideoram_w(offs_t offset, uint8_t data);
- void mrdo_scrollx_w(uint8_t data);
- void mrdo_scrolly_w(uint8_t data);
- void mrdo_flipscreen_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- void mrdo_palette(palette_device &palette) const;
- uint32_t screen_update_mrdo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap,const rectangle &cliprect );
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MRDO_H
diff --git a/src/mame/includes/mrflea.h b/src/mame/includes/mrflea.h
deleted file mode 100644
index 7863528fa51..00000000000
--- a/src/mame/includes/mrflea.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-/*************************************************************************
-
- Mr. Flea
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MRFLEA_H
-#define MAME_INCLUDES_MRFLEA_H
-
-#pragma once
-
-#include "machine/pic8259.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-class mrflea_state : public driver_device
-{
-public:
- mrflea_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "subcpu"),
- m_pic(*this, "pic"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void mrflea(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- int m_gfx_bank;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<pic8259_device> m_pic;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- void mrflea_data1_w(uint8_t data);
- void mrflea_gfx_bank_w(uint8_t data);
- void mrflea_videoram_w(offs_t offset, uint8_t data);
- void mrflea_spriteram_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_mrflea(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(mrflea_slave_interrupt);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_background( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void mrflea_master_io_map(address_map &map);
- void mrflea_master_map(address_map &map);
- void mrflea_slave_io_map(address_map &map);
- void mrflea_slave_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MRFLEA_H
diff --git a/src/mame/includes/mrjong.h b/src/mame/includes/mrjong.h
deleted file mode 100644
index 6d8ffbb8c37..00000000000
--- a/src/mame/includes/mrjong.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-/*************************************************************************
-
- Mr. Jong
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MRJONG_H
-#define MAME_INCLUDES_MRJONG_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class mrjong_state : public driver_device
-{
-public:
- mrjong_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void mrjong(machine_config &config);
-
-private:
- uint8_t io_0x03_r();
- void mrjong_videoram_w(offs_t offset, uint8_t data);
- void mrjong_colorram_w(offs_t offset, uint8_t data);
- void mrjong_flipscreen_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void video_start() override;
- void mrjong_palette(palette_device &palette) const;
- uint32_t screen_update_mrjong(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void mrjong_io_map(address_map &map);
- void mrjong_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap = nullptr;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-};
-
-#endif // MAME_INCLUDES_MRJONG_H
diff --git a/src/mame/includes/ms32.h b/src/mame/includes/ms32.h
deleted file mode 100644
index 3371fb54705..00000000000
--- a/src/mame/includes/ms32.h
+++ /dev/null
@@ -1,207 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood,Paul Priest
-#ifndef MAME_INCLUDES_MS32_H
-#define MAME_INCLUDES_MS32_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "machine/jaleco_ms32_sysctrl.h"
-#include "video/ms32_sprite.h"
-#include "sound/ymf271.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class ms32_base_state : public driver_device
-{
-public:
- ms32_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_soundlatch(*this, "soundlatch")
- , m_z80bank(*this, "z80bank%u", 1)
- , m_sprite_ctrl(*this, "sprite_ctrl")
- { }
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
- required_memory_bank_array<2> m_z80bank;
- required_shared_ptr<u32> m_sprite_ctrl;
-
- DECLARE_WRITE_LINE_MEMBER(timer_irq_w);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq_w);
- DECLARE_WRITE_LINE_MEMBER(field_irq_w);
- DECLARE_WRITE_LINE_MEMBER(sound_ack_w);
- DECLARE_WRITE_LINE_MEMBER(sound_reset_line_w);
-
- void ms32_snd_bank_w(u8 data);
- IRQ_CALLBACK_MEMBER(irq_callback);
- void configure_banks();
- u8 latch_r();
- void to_main_w(u8 data);
- u32 sound_result_r();
- void sound_command_w(u32 data);
- void irq_raise(int level, bool state);
- void irq_init();
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void base_sound_map(address_map &map);
-
-private:
- u32 m_to_main;
- u16 m_irqreq;
-};
-
-class ms32_state : public ms32_base_state
-{
-public:
- ms32_state(const machine_config &mconfig, device_type type, const char *tag) :
- ms32_base_state(mconfig, type, tag)
- , m_sysctrl(*this, "sysctrl")
- , m_screen(*this, "screen")
- , m_sprite(*this, "sprite")
- , m_palette(*this, "palette")
- , m_gfxdecode(*this, "gfxdecode")
- , m_ymf(*this, "ymf")
- , m_roz_ctrl(*this, "roz_ctrl")
- , m_tx_scroll(*this, "tx_scroll")
- , m_bg_scroll(*this, "bg_scroll")
- , m_mahjong_input_select(*this, "mahjong_select")
- , m_priram(*this, "priram", 0x2000, ENDIANNESS_LITTLE)
- , m_palram(*this, "palram", 0x20000, ENDIANNESS_LITTLE)
- , m_rozram(*this, "rozram", 0x10000, ENDIANNESS_LITTLE)
- , m_lineram(*this, "lineram", 0x1000, ENDIANNESS_LITTLE)
- , m_sprram(*this, "sprram", 0x10000, ENDIANNESS_LITTLE)
- , m_txram(*this, "txram", 0x4000, ENDIANNESS_LITTLE)
- , m_bgram(*this, "bgram", 0x4000, ENDIANNESS_LITTLE)
- { }
-
- void ms32(machine_config &config);
- void ms32_invert_lines(machine_config &config);
-
- void init_ss92047_01();
- void init_ss91022_10();
- void init_kirarast();
- void init_suchie2();
- void init_ss92048_01();
- void init_bnstars();
- void init_ss92046_01();
-
- DECLARE_CUSTOM_INPUT_MEMBER(mahjong_ctrl_r);
-
-protected:
- required_device<jaleco_ms32_sysctrl_device> m_sysctrl;
- required_device<screen_device> m_screen;
- required_device<ms32_sprite_device> m_sprite;
- required_device<palette_device> m_palette;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<ymf271_device> m_ymf;
-
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- virtual void video_start() override;
-
- void ms32_map(address_map &map);
- void ms32_sound_map(address_map &map);
-
-private:
- required_shared_ptr<u32> m_roz_ctrl;
- required_shared_ptr<u32> m_tx_scroll;
- required_shared_ptr<u32> m_bg_scroll;
- required_shared_ptr<u32> m_mahjong_input_select;
- memory_share_creator<u8> m_priram;
- memory_share_creator<u16> m_palram;
- memory_share_creator<u16> m_rozram;
- memory_share_creator<u16> m_lineram;
- memory_share_creator<u16> m_sprram;
- memory_share_creator<u16> m_txram;
- memory_share_creator<u16> m_bgram;
-
- std::unique_ptr<u8[]> m_nvram_8;
-
- std::unique_ptr<u16[]> m_sprram_buffer;
- size_t m_objectram_size;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_roz_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_bg_tilemap_alt;
- u32 m_tilemaplayoutcontrol;
- bitmap_ind16 m_temp_bitmap_tilemaps;
- bitmap_ind16 m_temp_bitmap_sprites;
- bitmap_ind8 m_temp_bitmap_sprites_pri;
- u32 m_brt[4];
- int m_brt_r;
- int m_brt_g;
- int m_brt_b;
- u8 ms32_nvram_r8(offs_t offset);
- void ms32_nvram_w8(offs_t offset, u8 data);
- u8 ms32_priram_r8(offs_t offset);
- void ms32_priram_w8(offs_t offset, u8 data);
- u16 ms32_palram_r16(offs_t offset);
- void ms32_palram_w16(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 ms32_rozram_r16(offs_t offset);
- void ms32_rozram_w16(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 ms32_lineram_r16(offs_t offset);
- void ms32_lineram_w16(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 ms32_sprram_r16(offs_t offset);
- void ms32_sprram_w16(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 ms32_txram_r16(offs_t offset);
- void ms32_txram_w16(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 ms32_bgram_r16(offs_t offset);
- void ms32_bgram_w16(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bgmode_w(u32 data);
-
- void ms32_brightness_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void coin_counter_w(u32 data);
- void init_ms32_common();
-
- TILE_GET_INFO_MEMBER(get_ms32_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_ms32_roz_tile_info);
- TILE_GET_INFO_MEMBER(get_ms32_bg_tile_info);
-
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void update_color(int color);
- void draw_sprites(bitmap_ind16 &bitmap, bitmap_ind8 &bitmap_pri, const rectangle &cliprect, u16 *sprram_top);
- void draw_roz(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect,int priority);
-};
-
-class ms32_f1superbattle_state : public ms32_state
-{
-public:
- ms32_f1superbattle_state(const machine_config &mconfig, device_type type, const char *tag) :
- ms32_state(mconfig, type, tag)
- , m_road_vram(*this, "road_vram", 0x10000, ENDIANNESS_LITTLE)
- // TODO: COPROs
- {}
-
- void f1superb(machine_config &config);
- void init_f1superb();
-
-protected:
- virtual void video_start() override;
-private:
- TILE_GET_INFO_MEMBER(get_ms32_extra_tile_info);
-
- void ms32_irq2_guess_w(u32 data);
- void ms32_irq5_guess_w(u32 data);
-
- memory_share_creator<u16> m_road_vram;
-
- void f1superb_map(address_map &map);
-
- void road_vram_w16(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 road_vram_r16(offs_t offset);
-
- u32 analog_r();
-
- tilemap_t* m_extra_tilemap;
-};
-
-#endif // MAME_INCLUDES_MS32_H
diff --git a/src/mame/includes/msisaac.h b/src/mame/includes/msisaac.h
deleted file mode 100644
index e95ec128ceb..00000000000
--- a/src/mame/includes/msisaac.h
+++ /dev/null
@@ -1,113 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Jarek Burczynski
-#ifndef MAME_INCLUDES_MSISAAC_H
-#define MAME_INCLUDES_MSISAAC_H
-
-#pragma once
-
-#include "machine/taito68705interface.h"
-#include "machine/gen_latch.h"
-#include "sound/msm5232.h"
-#include "sound/ta7630.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-/* Disabled because the mcu dump is currently unavailable. -AS */
-//#define USE_MCU
-
-class msisaac_state : public driver_device
-{
-public:
- msisaac_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_videoram3(*this, "videoram3"),
- m_videoram2(*this, "videoram2"),
- m_audiocpu(*this, "audiocpu"),
- m_maincpu(*this, "maincpu"),
- m_bmcu(*this, "bmcu"),
- m_msm(*this, "msm"),
- m_ta7630(*this, "ta7630"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void msisaac(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram3;
- required_shared_ptr<uint8_t> m_videoram2;
-
- /* video-related */
- bitmap_ind16 *m_tmp_bitmap1;
- bitmap_ind16 *m_tmp_bitmap2;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg2_tilemap;
- int m_bg2_textbank;
-
- /* sound-related */
- int m_sound_nmi_enable;
- int m_pending_nmi;
-
- /* fake mcu (in msisaac.c) */
-#ifndef USE_MCU
- uint8_t m_mcu_val;
- uint8_t m_direction;
-#endif
-
- uint8_t m_snd_ctrl0;
- uint8_t m_snd_ctrl1;
- uint8_t m_snd_ctrl2;
- uint8_t m_snd_ctrl3;
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_maincpu;
- optional_device<taito68705_mcu_device> m_bmcu;
- required_device<msm5232_device> m_msm;
- required_device<ta7630_device> m_ta7630;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void sound_command_w(uint8_t data);
- void nmi_disable_w(uint8_t data);
- void nmi_enable_w(uint8_t data);
- void ms_unknown_w(uint8_t data);
- uint8_t msisaac_mcu_r(offs_t offset);
- uint8_t msisaac_mcu_status_r(offs_t offset);
- void msisaac_mcu_w(offs_t offset, uint8_t data);
- void sound_control_1_w(uint8_t data);
- void msisaac_fg_scrolly_w(uint8_t data);
- void msisaac_fg_scrollx_w(uint8_t data);
- void msisaac_bg2_scrolly_w(uint8_t data);
- void msisaac_bg2_scrollx_w(uint8_t data);
- void msisaac_bg_scrolly_w(uint8_t data);
- void msisaac_bg_scrollx_w(uint8_t data);
- void msisaac_bg2_textbank_w(uint8_t data);
- void msisaac_bg_videoram_w(offs_t offset, uint8_t data);
- void msisaac_bg2_videoram_w(offs_t offset, uint8_t data);
- void msisaac_fg_videoram_w(offs_t offset, uint8_t data);
- void sound_control_0_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- uint32_t screen_update_msisaac(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(nmi_callback);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void msisaac_map(address_map &map);
- void msisaac_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MSISAAC_H
diff --git a/src/mame/includes/msx.h b/src/mame/includes/msx.h
deleted file mode 100644
index 710d8b22eae..00000000000
--- a/src/mame/includes/msx.h
+++ /dev/null
@@ -1,515 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol
-/*****************************************************************************
- *
- * includes/msx.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_MSX_H
-#define MAME_INCLUDES_MSX_H
-
-#include "cpu/z80/z80.h"
-#include "machine/i8255.h"
-#include "machine/rp5c01.h"
-#include "machine/buffer.h"
-#include "machine/input_merger.h"
-#include "bus/centronics/ctronics.h"
-#include "sound/ay8910.h"
-#include "sound/dac.h"
-#include "sound/ym2413.h"
-#include "video/v9938.h"
-#include "video/tms9928a.h"
-#include "imagedev/cassette.h"
-#include "formats/fmsx_cas.h"
-#include "formats/msx_dsk.h"
-#include "hashfile.h"
-#include "machine/wd_fdc.h"
-#include "imagedev/floppy.h"
-#include "bus/msx_slot/slot.h"
-#include "bus/msx_slot/rom.h"
-#include "bus/msx_slot/ram.h"
-#include "bus/msx_slot/cartridge.h"
-#include "bus/msx_slot/ram_mm.h"
-#include "bus/msx_slot/disk.h"
-#include "bus/msx_slot/music.h"
-#include "bus/msx_slot/bunsetsu.h"
-#include "bus/msx_slot/fs4600.h"
-#include "bus/msx_slot/panasonic08.h"
-#include "bus/msx_slot/sony08.h"
-#include "machine/msx_switched.h"
-
-
-#define TC8521_TAG "rtc"
-
-
-class msx_state : public driver_device
-{
-public:
- msx_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_cassette(*this, "cassette")
- , m_ay8910(*this, "ay8910")
- , m_dac(*this, "dac")
- , m_region_maincpu(*this, "maincpu")
- , m_region_kanji(*this, "kanji")
- , m_io_joy(*this, "JOY%u", 0U)
- , m_io_dsw(*this, "DSW")
- , m_io_mouse(*this, "MOUSE%u", 0U)
- , m_io_key(*this, "KEY%u", 0U)
- , m_leds(*this, "led%u", 1U)
- , m_psg_b(0)
- , m_kanji_latch(0)
- , m_empty_slot(mconfig, *this)
- , m_primary_slot(0)
- , m_port_c_old(0)
- , m_keylatch(0)
- {
- for (int prim = 0; prim < 4; prim++ )
- {
- m_slot_expanded[prim] = false;
- m_secondary_slot[prim] = 0;
- for (int sec = 0; sec < 4; sec++ )
- {
- for (int page = 0; page < 4; page++ )
- {
- m_all_slots[prim][sec][page] = nullptr;
- }
- }
- }
- m_mouse[0] = m_mouse[1] = 0;
- m_mouse_stat[0] = m_mouse_stat[1] = 0;
- m_empty_slot.set_memory_space(m_maincpu, AS_PROGRAM);
- m_empty_slot.set_io_space(m_maincpu, AS_IO);
- }
-
- void hc6(machine_config &config);
- void hb75d(machine_config &config);
- void dpc100(machine_config &config);
- void hb55p(machine_config &config);
- void hotbi13p(machine_config &config);
- void fspc800(machine_config &config);
- void mpc200(machine_config &config);
- void hb201p(machine_config &config);
- void hx22i(machine_config &config);
- void svi738dk(machine_config &config);
- void gfc1080a(machine_config &config);
- void svi738pl(machine_config &config);
- void hx10dp(machine_config &config);
- void perfect1(machine_config &config);
- void mlf110(machine_config &config);
- void cf1200(machine_config &config);
- void hx20(machine_config &config);
- void cf3000(machine_config &config);
- void mpc100(machine_config &config);
- void vg8020f(machine_config &config);
- void hx10f(machine_config &config);
- void cf2000(machine_config &config);
- void expertpl(machine_config &config);
- void fs4000a(machine_config &config);
- void mpc10(machine_config &config);
- void pv16(machine_config &config);
- void jvchc7gb(machine_config &config);
- void phc28(machine_config &config);
- void hx10sa(machine_config &config);
- void cx5m128(machine_config &config);
- void expert10(machine_config &config);
- void mbh50(machine_config &config);
- void hc7(machine_config &config);
- void gfc1080(machine_config &config);
- void cpc51(machine_config &config);
- void ax150(machine_config &config);
- void phc28s(machine_config &config);
- void mlfx1(machine_config &config);
- void tadpc200(machine_config &config);
- void gsfc200(machine_config &config);
- void hx10d(machine_config &config);
- void expertdp(machine_config &config);
- void yis303(machine_config &config);
- void canonv25(machine_config &config);
- void svi738sp(machine_config &config);
- void fmx(machine_config &config);
- void phc2(machine_config &config);
- void pv7(machine_config &config);
- void hx10(machine_config &config);
- void mlf48(machine_config &config);
- void cpc50b(machine_config &config);
- void hb10p(machine_config &config);
- void hx20i(machine_config &config);
- void mx10(machine_config &config);
- void mx15(machine_config &config);
- void expert13(machine_config &config);
- void bruc100(machine_config &config);
- void hx21(machine_config &config);
- void cf3300(machine_config &config);
- void cx5f1(machine_config &config);
- void hx10e(machine_config &config);
- void dpc200(machine_config &config);
- void svi738(machine_config &config);
- void dpc200e(machine_config &config);
- void canonv10(machine_config &config);
- void yis503(machine_config &config);
- void mpc200sp(machine_config &config);
- void svi738sw(machine_config &config);
- void vg8010f(machine_config &config);
- void dpc180(machine_config &config);
- void mlf120(machine_config &config);
- void hb201(machine_config &config);
- void piopxv60(machine_config &config);
- void hb10(machine_config &config);
- void hb501p(machine_config &config);
- void cx5m(machine_config &config);
- void mx101(machine_config &config);
- void mx64(machine_config &config);
- void hb55d(machine_config &config);
- void nms801(machine_config &config);
- void svi728(machine_config &config);
- void hotbi13b(machine_config &config);
- void hotbit12(machine_config &config);
- void hotbit11(machine_config &config);
- void vg8010(machine_config &config);
- void cf2700(machine_config &config);
- void hx21i(machine_config &config);
- void mbh2(machine_config &config);
- void cx5f(machine_config &config);
- void mpc64(machine_config &config);
- void yc64(machine_config &config);
- void yis503m(machine_config &config);
- void gsfc80u(machine_config &config);
- void cf2700g(machine_config &config);
- void ax170(machine_config &config);
- void y503iir(machine_config &config);
- void svi738ar(machine_config &config);
- void yis503ii(machine_config &config);
- void yis503f(machine_config &config);
- void cx5m2(machine_config &config);
- void spc800(machine_config &config);
- void canonv20(machine_config &config);
- void hb20p(machine_config &config);
- void mbh25(machine_config &config);
- void fs4000(machine_config &config);
- void hx10s(machine_config &config);
- void piopx7uk(machine_config &config);
- void hc5(machine_config &config);
- void dgnmsx(machine_config &config);
- void fdpc200(machine_config &config);
- void hx22(machine_config &config);
- void fs1300(machine_config &config);
- void phc28l(machine_config &config);
- void hb101p(machine_config &config);
- void expert11(machine_config &config);
- void vg802020(machine_config &config);
- void tadpc20a(machine_config &config);
- void hb75p(machine_config &config);
- void piopx7(machine_config &config);
- void canonv8(machine_config &config);
- void cpc88(machine_config &config);
- void vg802000(machine_config &config);
- void mlf80(machine_config &config);
- void cpc50a(machine_config &config);
- void hb701fd(machine_config &config);
- void vg8000(machine_config &config);
- void hb55(machine_config &config);
- void y503iir2(machine_config &config);
- void fpc500(machine_config &config);
-
-protected:
- void msx(machine_config &config);
- template<typename VDPType> void msx1(VDPType &vdp_type, machine_config &config);
-
- void msx1_cartlist(machine_config &config);
- void msx1_floplist(machine_config &config);
- void msx_fd1793(machine_config &config);
- void msx_wd2793_force_ready(machine_config &config);
- void msx_wd2793(machine_config &config);
- void msx_mb8877a(machine_config &config);
- void msx_tc8566af(machine_config &config);
- void msx_microsol(machine_config &config);
- void msx_1_35_ssdd_drive(machine_config &config);
- void msx_1_35_dd_drive(machine_config &config);
- void msx_2_35_dd_drive(machine_config &config);
-
- // static configuration helpers
- void install_slot_pages(uint8_t prim, uint8_t sec, uint8_t page, uint8_t numpages, msx_internal_slot_interface &device);
- template <typename T, typename U>
- auto &add_internal_slot(machine_config &config, T &&type, U &&tag, uint8_t prim, uint8_t sec, uint8_t page, uint8_t numpages)
- {
- auto &device(std::forward<T>(type)(config, std::forward<U>(tag), 0U));
- device.set_memory_space(m_maincpu, AS_PROGRAM);
- device.set_io_space(m_maincpu, AS_IO);
- device.set_start_address(page * 0x4000);
- device.set_size(numpages * 0x4000);
- install_slot_pages(prim, sec, page, numpages, device);
- return device;
- }
- template <typename T, typename U>
- auto &add_internal_slot(machine_config &config, T &&type, U &&tag, uint8_t prim, uint8_t sec, uint8_t page, uint8_t numpages, const char *region, uint32_t offset)
- {
- auto &device(std::forward<T>(type)(config, std::forward<U>(tag), 0U));
- device.set_memory_space(m_maincpu, AS_PROGRAM);
- device.set_io_space(m_maincpu, AS_IO);
- device.set_start_address(page * 0x4000);
- device.set_size(numpages * 0x4000);
- device.set_rom_start(region, offset);
- install_slot_pages(prim, sec, page, numpages, device);
- return device;
- }
- template <typename T, typename U>
- auto &add_internal_slot_mirrored(machine_config &config, T &&type, U &&tag, uint8_t prim, uint8_t sec, uint8_t page, uint8_t numpages, const char *region, uint32_t offset)
- {
- // Memory mapped FDC registers are also accessible through page 2
- auto &device(type(config, std::forward<U>(tag), 0U));
- device.set_memory_space(m_maincpu, AS_PROGRAM);
- device.set_io_space(m_maincpu, AS_IO);
- device.set_start_address(page * 0x4000);
- device.set_size(0x4000);
- device.set_rom_start(region, offset);
- install_slot_pages(prim, sec, page, numpages, device);
- return device;
- }
- template <int N, typename T, typename U, typename V>
- auto &add_cartridge_slot(machine_config &config, T &&type, U &&tag, uint8_t prim, uint8_t sec, V &&intf, const char *deft)
- {
- auto &device(type(config, std::forward<U>(tag), 0U));
- device.set_memory_space(m_maincpu, AS_PROGRAM);
- device.set_io_space(m_maincpu, AS_IO);
- device.option_reset();
- intf(device);
- device.set_default_option(deft);
- device.set_fixed(false);
- device.irq_handler().set("mainirq", FUNC(input_merger_device::in_w<N>));
- install_slot_pages(prim, sec, 0, 4, device);
- return device;
- }
-
- virtual void driver_start() override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void device_post_load() override;
-
- void msx_sec_slot_w(uint8_t data);
- uint8_t msx_sec_slot_r();
- uint8_t msx_kanji_r(offs_t offset);
- void msx_kanji_w(offs_t offset, uint8_t data);
- void msx_ppi_port_a_w(uint8_t data);
- void msx_ppi_port_c_w(uint8_t data);
- uint8_t msx_ppi_port_b_r();
- uint8_t msx_mem_read(offs_t offset);
- void msx_mem_write(offs_t offset, uint8_t data);
- uint8_t msx_psg_port_a_r();
- uint8_t msx_psg_port_b_r();
- void msx_psg_port_a_w(uint8_t data);
- void msx_psg_port_b_w(uint8_t data);
-
-private:
- void msx_memory_map_all();
- void msx_memory_map_page(uint8_t page);
- void msx_memory_reset();
- void msx_memory_init();
-
- static void floppy_formats(format_registration &fr);
-
- INTERRUPT_GEN_MEMBER(msx_interrupt);
-
-protected:
- void msx_io_map(address_map &map);
- void msx_memory_map(address_map &map);
-
- required_device<z80_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_device<ay8910_device> m_ay8910;
- required_device<dac_bit_interface> m_dac;
- required_memory_region m_region_maincpu;
- optional_memory_region m_region_kanji;
- required_ioport_array<2> m_io_joy;
- required_ioport m_io_dsw;
- required_ioport_array<2> m_io_mouse;
- required_ioport_array<6> m_io_key;
- output_finder<2> m_leds;
-
-private:
- /* PSG */
- int m_psg_b;
- /* mouse */
- uint16_t m_mouse[2];
- int m_mouse_stat[2];
- /* kanji */
- int m_kanji_latch;
- /* memory */
- msx_internal_slot_interface m_empty_slot;
- msx_internal_slot_interface *m_all_slots[4][4][4];
- msx_internal_slot_interface *m_current_page[4];
- bool m_slot_expanded[4];
- uint8_t m_primary_slot;
- uint8_t m_secondary_slot[4];
- int m_port_c_old;
- int m_keylatch;
-};
-
-
-class msx2_state : public msx_state
-{
-public:
- msx2_state(const machine_config &mconfig, device_type type, const char *tag)
- : msx_state(mconfig, type, tag)
- , m_v9938(*this, "v9938")
- , m_v9958(*this, "v9958")
- , m_rtc(*this, TC8521_TAG)
- , m_rtc_latch(0)
- {
- }
-
- void ax350(machine_config &config);
- void ax370(machine_config &config);
- void canonv25(machine_config &config);
- void canonv30(machine_config &config);
- void canonv30f(machine_config &config);
- void cpc300(machine_config &config);
- void cpc300e(machine_config &config);
- void cpc330k(machine_config &config);
- void cpc400(machine_config &config);
- void cpc400s(machine_config &config);
- void cpc61(machine_config &config);
- void cpg120(machine_config &config);
- void fpc900(machine_config &config);
- void expert20(machine_config &config);
- void mbh70(machine_config &config);
- void kmc5000(machine_config &config);
- void mlg1(machine_config &config);
- void mlg3(machine_config &config);
- void mlg10(machine_config &config);
- void mlg30(machine_config &config);
- void fs4500(machine_config &config);
- void fs4600(machine_config &config);
- void fs4700(machine_config &config);
- void fs5000(machine_config &config);
- void fs5500f1(machine_config &config);
- void fs5500f2(machine_config &config);
- void fsa1(machine_config &config);
- void fsa1a(machine_config &config);
- void fsa1f(machine_config &config);
- void fsa1fm(machine_config &config);
- void fsa1mk2(machine_config &config);
- void nms8220(machine_config &config);
- void nms8220a(machine_config &config);
- void nms8245(machine_config &config);
- void nms8245f(machine_config &config);
- void nms8250(machine_config &config);
- void nms8250f(machine_config &config);
- void nms8250j(machine_config &config);
- void nms8255(machine_config &config);
- void nms8255f(machine_config &config);
- void nms8260(machine_config &config);
- void nms8280(machine_config &config);
- void nms8280f(machine_config &config);
- void nms8280g(machine_config &config);
- void vg8230(machine_config &config);
- void vg8230j(machine_config &config);
- void vg8235(machine_config &config);
- void vg8235f(machine_config &config);
- void vg8240(machine_config &config);
- void mpc2300(machine_config &config);
- void mpc2500f(machine_config &config);
- void mpc25fd(machine_config &config);
- void mpc27(machine_config &config);
- void phc23(machine_config &config);
- void phc55fd2(machine_config &config);
- void phc77(machine_config &config);
- void hotbit20(machine_config &config);
- void hbf1(machine_config &config);
- void hbf12(machine_config &config);
- void hbf1xd(machine_config &config);
- void hbf1xdm2(machine_config &config);
- void hbf5(machine_config &config);
- void hbf500(machine_config &config);
- void hbf500f(machine_config &config);
- void hbf500p(machine_config &config);
- void hbf700d(machine_config &config);
- void hbf700f(machine_config &config);
- void hbf700p(machine_config &config);
- void hbf700s(machine_config &config);
- void hbf900(machine_config &config);
- void hbf900a(machine_config &config);
- void hbf9p(machine_config &config);
- void hbf9pr(machine_config &config);
- void hbf9s(machine_config &config);
- void hbg900ap(machine_config &config);
- void hbg900p(machine_config &config);
- void tpc310(machine_config &config);
- void tpp311(machine_config &config);
- void tps312(machine_config &config);
- void hx23(machine_config &config);
- void hx23f(machine_config &config);
- void hx23i(machine_config &config);
- void hx33(machine_config &config);
- void hx34(machine_config &config);
- void hx34i(machine_config &config);
- void fstm1(machine_config &config);
- void victhc90(machine_config &config);
- void victhc95(machine_config &config);
- void victhc95a(machine_config &config);
- void cx7m(machine_config &config);
- void cx7m128(machine_config &config);
- void y503iiir(machine_config &config);
- void y503iiire(machine_config &config);
- void yis60464(machine_config &config);
- void yis604(machine_config &config);
- void y805128(machine_config &config);
- void y805128r2(machine_config &config);
- void y805128r2e(machine_config &config);
- void y805256(machine_config &config);
- void expert3i(machine_config &config);
- void expert3t(machine_config &config);
- void expertac(machine_config &config);
- void expertdx(machine_config &config);
- void fsa1fx(machine_config &config);
- void fsa1wsx(machine_config &config);
- void fsa1wx(machine_config &config);
- void fsa1wxa(machine_config &config);
- void phc35j(machine_config &config);
- void phc70fd(machine_config &config);
- void phc70fd2(machine_config &config);
- void hbf1xdj(machine_config &config);
- void hbf1xv(machine_config &config);
- void hbf9sp(machine_config &config);
- void fsa1gt(machine_config &config);
- void fsa1st(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void msx2(machine_config &config);
- void msx2p(machine_config &config);
- void msx2_pal(machine_config &config);
-
- void msx2_cartlist(machine_config &config);
- void msx2_floplist(machine_config &config);
- void msx2p_floplist(machine_config &config);
- void msxr_floplist(machine_config &config);
- void msx_ym2413(machine_config &config);
- void msx2_64kb_vram(machine_config &config);
-
- uint8_t msx_rtc_reg_r();
- void msx_rtc_reg_w(uint8_t data);
- void msx_rtc_latch_w(uint8_t data);
- uint8_t msx_switched_r(offs_t offset);
- void msx_switched_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(turbo_w);
-
- void msx2_io_map(address_map &map);
- void msx2p_io_map(address_map &map);
-
- std::vector<msx_switched_interface *> m_switched;
-
- optional_device<v9938_device> m_v9938;
- optional_device<v9958_device> m_v9958;
- required_device<rp5c01_device> m_rtc;
-
- /* rtc */
- int m_rtc_latch;
-};
-
-
-#endif // MAME_INCLUDES_MSX_H
diff --git a/src/mame/includes/mtx.h b/src/mame/includes/mtx.h
deleted file mode 100644
index 1509caaaad5..00000000000
--- a/src/mame/includes/mtx.h
+++ /dev/null
@@ -1,131 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Lee Ward, Dirk Best, Curt Coder
-/*************************************************************************
-
- Memotech MTX 500, MTX 512 and RS 128
-
-*************************************************************************/
-
-#ifndef MAME_INCLUDES_MTX_H
-#define MAME_INCLUDES_MTX_H
-
-#include "imagedev/snapquik.h"
-#include "imagedev/cassette.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "bus/mtx/exp.h"
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "machine/z80sio.h"
-#include "machine/z80ctc.h"
-#include "sound/sn76496.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-
-
-class mtx_state : public driver_device
-{
-public:
- mtx_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_cassold(0)
- , m_maincpu(*this, "z80")
- , m_sn(*this, "sn76489a")
- , m_z80ctc(*this, "z80ctc")
- , m_z80dart(*this, "z80dart")
- , m_cassette(*this, "cassette")
- , m_centronics(*this, "centronics")
- , m_ram(*this, RAM_TAG)
- , m_exp(*this, "exp")
- , m_extrom(*this, "extrom")
- , m_rompak(*this, "rompak")
- , m_rammap_bank1(*this, "rammap_bank1")
- , m_rammap_bank2(*this, "rammap_bank2")
- , m_rammap_bank3(*this, "rammap_bank3")
- , m_rommap_bank1(*this, "rommap_bank1")
- , m_rommap_bank2(*this, "rommap_bank2")
- , m_rommap_bank3(*this, "rommap_bank3")
- { }
-
- void rs128(machine_config &config);
- void mtx500(machine_config &config);
- void mtx512(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- bool m_cassold;
- required_device<z80_device> m_maincpu;
- required_device<sn76489a_device> m_sn;
- required_device<z80ctc_device> m_z80ctc;
- optional_device<z80dart_device> m_z80dart;
- required_device<cassette_image_device> m_cassette;
- required_device<centronics_device> m_centronics;
- required_device<ram_device> m_ram;
- required_device<mtx_exp_slot_device> m_exp;
- required_device<generic_slot_device> m_extrom;
- required_device<generic_slot_device> m_rompak;
- memory_bank_creator m_rammap_bank1;
- memory_bank_creator m_rammap_bank2;
- memory_bank_creator m_rammap_bank3;
- memory_bank_creator m_rommap_bank1;
- memory_bank_creator m_rommap_bank2;
- memory_bank_creator m_rommap_bank3;
-
- /* keyboard state */
- uint8_t m_key_sense;
-
- /* video state */
- uint8_t *m_video_ram;
- uint8_t *m_attr_ram;
-
- /* sound state */
- uint8_t m_sound_latch;
-
- /* timers */
- device_t *m_cassette_timer;
-
- int m_centronics_busy;
- int m_centronics_fault;
- int m_centronics_perror;
- int m_centronics_select;
-
- void mtx_subpage_w(uint8_t data);
- void mtx_bankswitch_w(uint8_t data);
- void mtx_sound_latch_w(uint8_t data);
- void mtx_sense_w(uint8_t data);
- uint8_t mtx_key_lo_r();
- uint8_t mtx_key_hi_r();
- void hrx_address_w(offs_t offset, uint8_t data);
- uint8_t hrx_data_r();
- void hrx_data_w(uint8_t data);
- uint8_t hrx_attr_r();
- void hrx_attr_w(uint8_t data);
- TIMER_DEVICE_CALLBACK_MEMBER(ctc_tick);
- TIMER_DEVICE_CALLBACK_MEMBER(cassette_tick);
- DECLARE_WRITE_LINE_MEMBER(ctc_trg1_w);
- DECLARE_WRITE_LINE_MEMBER(ctc_trg2_w);
- uint8_t mtx_strobe_r();
- uint8_t mtx_sound_strobe_r();
- void mtx_cst_w(uint8_t data);
- void mtx_cst_motor_w(uint8_t data);
- uint8_t mtx_prt_r();
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_fault);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_select);
- void bankswitch(uint8_t data);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(extrom_load);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(rompak_load);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
-
- void mtx_io(address_map &map);
- void mtx_mem(address_map &map);
- void rs128_io(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MTX_H
diff --git a/src/mame/includes/mugsmash.h b/src/mame/includes/mugsmash.h
deleted file mode 100644
index d14daabe1db..00000000000
--- a/src/mame/includes/mugsmash.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class mugsmash_state : public driver_device
-{
-public:
- mugsmash_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram1(*this, "videoram1"),
- m_videoram2(*this, "videoram2"),
- m_regs1(*this, "regs1"),
- m_regs2(*this, "regs2"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch") { }
-
- void mugsmash(machine_config &config);
-
-private:
- required_shared_ptr<uint16_t> m_videoram1;
- required_shared_ptr<uint16_t> m_videoram2;
- required_shared_ptr<uint16_t> m_regs1;
- required_shared_ptr<uint16_t> m_regs2;
- required_shared_ptr<uint16_t> m_spriteram;
-
- tilemap_t *m_tilemap1;
- tilemap_t *m_tilemap2;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void mugsmash_reg2_w(offs_t offset, uint16_t data);
- void mugsmash_videoram1_w(offs_t offset, uint16_t data);
- void mugsmash_videoram2_w(offs_t offset, uint16_t data);
- void mugsmash_reg_w(offs_t offset, uint16_t data);
- TILE_GET_INFO_MEMBER(get_mugsmash_tile_info1);
- TILE_GET_INFO_MEMBER(get_mugsmash_tile_info2);
- virtual void machine_start() override;
- virtual void video_start() override;
- uint32_t screen_update_mugsmash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void mugsmash_map(address_map &map);
- void mugsmash_sound_map(address_map &map);
-};
diff --git a/src/mame/includes/multfish.h b/src/mame/includes/multfish.h
deleted file mode 100644
index 1758f5e6dc9..00000000000
--- a/src/mame/includes/multfish.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, MetalliC
-/* Multifish */
-
-
-#include "sound/ay8910.h"
-#include "cpu/z80/z80.h"
-#include "machine/timekpr.h"
-#include "machine/watchdog.h"
-#include "machine/ticket.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#define igrosoft_gamble_ROM_SIZE 0x80000
-#define igrosoft_gamble_VIDRAM_SIZE (0x2000*0x04)
-
-class igrosoft_gamble_state : public driver_device
-{
-public:
- igrosoft_gamble_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_m48t35(*this, "m48t35" ),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_hopper(*this, "hopper"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void rollfr(machine_config &config);
- void igrosoft_gamble(machine_config &config);
-
- void init_customl();
- void init_island2l();
- void init_keksl();
- void init_pirate2l();
- void init_fcockt2l();
- void init_sweetl2l();
- void init_gnomel();
- void init_crzmonent();
- void init_fcocktent();
- void init_garageent();
- void init_rclimbent();
- void init_sweetl2ent();
- void init_resdntent();
- void init_island2ent();
- void init_pirate2ent();
- void init_keksent();
- void init_gnomeent();
- void init_lhauntent();
- void init_fcockt2ent();
- void init_crzmon2();
- void init_crzmon2lot();
- void init_crzmon2ent();
- void init_islandent();
- void init_pirateent();
- void init_sweetlent();
- void init_rollfruit();
-
-private:
- void igrosoft_gamble_vid_w(offs_t offset, uint8_t data);
- void igrosoft_gamble_bank_w(uint8_t data);
- uint8_t bankedram_r(offs_t offset);
- void bankedram_w(offs_t offset, uint8_t data);
- void igrosoft_gamble_rambank_w(uint8_t data);
- uint8_t ray_r();
- void igrosoft_gamble_hopper_w(uint8_t data);
- void rollfr_hopper_w(uint8_t data);
- void igrosoft_gamble_lamps1_w(uint8_t data);
- void igrosoft_gamble_lamps2_w(uint8_t data);
- void igrosoft_gamble_lamps3_w(uint8_t data);
- void igrosoft_gamble_counters_w(uint8_t data);
- void igrosoft_gamble_f3_w(uint8_t data);
- void igrosoft_gamble_dispenable_w(uint8_t data);
- uint8_t igrosoft_gamble_timekeeper_r(offs_t offset);
- void igrosoft_gamble_timekeeper_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_igrosoft_gamble_tile_info);
- TILE_GET_INFO_MEMBER(get_igrosoft_gamble_reel_tile_info);
- uint32_t screen_update_igrosoft_gamble(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void igrosoft_gamble_map(address_map &map);
- void igrosoft_gamble_portmap(address_map &map);
- void rollfr_portmap(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- /* Video related */
-
- int m_disp_enable;
- int m_xor_paltype;
- int m_xor_palette;
-
- tilemap_t *m_tilemap;
- tilemap_t *m_reel_tilemap;
-
- /* Misc related */
-
- uint8_t m_rambk;
-
- uint8_t m_vid[igrosoft_gamble_VIDRAM_SIZE];
- required_device<cpu_device> m_maincpu;
- required_device<timekeeper_device> m_m48t35;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<ticket_dispenser_device> m_hopper;
- output_finder<13> m_lamps;
-};
-
-
-INPUT_PORTS_EXTERN( igrosoft_gamble );
diff --git a/src/mame/includes/munchmo.h b/src/mame/includes/munchmo.h
deleted file mode 100644
index c6a411f82f6..00000000000
--- a/src/mame/includes/munchmo.h
+++ /dev/null
@@ -1,96 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-/*************************************************************************
-
- Munch Mobile
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_MUNCHMO_H
-#define MAME_INCLUDES_MUNCHMO_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/74259.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-
-class munchmo_state : public driver_device
-{
-public:
- munchmo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_sprite_xpos(*this, "sprite_xpos")
- , m_sprite_tile(*this, "sprite_tile")
- , m_sprite_attr(*this, "sprite_attr")
- , m_videoram(*this, "videoram")
- , m_status_vram(*this, "status_vram")
- , m_vreg(*this, "vreg")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_mainlatch(*this, "mainlatch")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_ay8910(*this, "ay%u", 1U)
- {
- }
-
- void mnchmobl(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- void nmi_ack_w(uint8_t data);
- void sound_nmi_ack_w(uint8_t data);
-
- uint8_t ay1reset_r();
- uint8_t ay2reset_r();
-
- DECLARE_WRITE_LINE_MEMBER(palette_bank_0_w);
- DECLARE_WRITE_LINE_MEMBER(palette_bank_1_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
-
- void munchmo_palette(palette_device &palette) const;
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- IRQ_CALLBACK_MEMBER(generic_irq_ack);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_status( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_background( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void mnchmobl_map(address_map &map);
- void sound_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_sprite_xpos;
- required_shared_ptr<uint8_t> m_sprite_tile;
- required_shared_ptr<uint8_t> m_sprite_attr;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_status_vram;
- required_shared_ptr<uint8_t> m_vreg;
-
- /* video-related */
- std::unique_ptr<bitmap_ind16> m_tmpbitmap;
- int m_palette_bank;
- int m_flipscreen;
-
- /* misc */
- int m_nmi_enable;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<ls259_device> m_mainlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device_array<ay8910_device, 2> m_ay8910;
-};
-
-#endif // MAME_INCLUDES_MUNCHMO_H
diff --git a/src/mame/includes/mustache.h b/src/mame/includes/mustache.h
deleted file mode 100644
index bc4f9612cb0..00000000000
--- a/src/mame/includes/mustache.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-#ifndef MAME_INCLUDES_MUSTACHE_H
-#define MAME_INCLUDES_MUSTACHE_H
-
-#pragma once
-
-#include "audio/seibu.h" // for seibu_sound_decrypt on the MAIN cpu (not sound)
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class mustache_state : public driver_device
-{
-public:
- mustache_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_dswb(*this, "DSWB")
- { }
-
- void mustache(machine_config &config);
-
- void init_mustache();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_ioport m_dswb;
-
- tilemap_t *m_bg_tilemap;
- int m_control_byte;
-
- void videoram_w(offs_t offset, uint8_t data);
- void video_control_w(uint8_t data);
- void scroll_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void decrypted_opcodes_map(address_map &map);
- void memmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MUSTACHE_H
diff --git a/src/mame/includes/mw8080bw.h b/src/mame/includes/mw8080bw.h
deleted file mode 100644
index 883d5a96c43..00000000000
--- a/src/mame/includes/mw8080bw.h
+++ /dev/null
@@ -1,434 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Tormod Tjaberg, Mirko Buffoni,Lee Taylor, Valerio Verrando, Zsolt Vasvari
-// thanks-to:Michael Strutts, Marco Cassili
-/***************************************************************************
-
- Midway 8080-based black and white hardware
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_MW8080BW_H
-#define MAME_INCLUDES_MW8080BW_H
-
-#pragma once
-
-#include "audio/mw8080bw.h"
-
-#include "machine/mb14241.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "screen.h"
-
-
-#define MW8080BW_MASTER_CLOCK (19968000.0)
-#define MW8080BW_CPU_CLOCK (MW8080BW_MASTER_CLOCK / 10)
-#define MW8080BW_PIXEL_CLOCK (MW8080BW_MASTER_CLOCK / 4)
-#define MW8080BW_HTOTAL (0x140)
-#define MW8080BW_HBEND (0x000)
-#define MW8080BW_HBSTART (0x100)
-#define MW8080BW_VTOTAL (0x106)
-#define MW8080BW_VBEND (0x000)
-#define MW8080BW_VBSTART (0x0e0)
-#define MW8080BW_VCOUNTER_START_NO_VBLANK (0x020)
-#define MW8080BW_VCOUNTER_START_VBLANK (0x0da)
-#define MW8080BW_INT_TRIGGER_COUNT_1 (0x080)
-#define MW8080BW_INT_TRIGGER_VBLANK_1 (0)
-#define MW8080BW_INT_TRIGGER_COUNT_2 MW8080BW_VCOUNTER_START_VBLANK
-#define MW8080BW_INT_TRIGGER_VBLANK_2 (1)
-#define MW8080BW_60HZ (MW8080BW_PIXEL_CLOCK / MW8080BW_HTOTAL / MW8080BW_VTOTAL)
-
-// +4 is added to HBSTART because the hardware displays that many pixels after setting HBLANK
-#define MW8080BW_HPIXCOUNT (MW8080BW_HBSTART + 4)
-
-
-class mw8080bw_state : public driver_device
-{
-public:
- mw8080bw_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_mb14241(*this,"mb14241"),
- m_watchdog(*this, "watchdog"),
- m_main_ram(*this, "main_ram"),
- m_discrete(*this, "discrete"),
- m_screen(*this, "screen")
- { }
-
- void blueshrk(machine_config &config);
- void bowler(machine_config &config);
- void checkmat(machine_config &config);
- void dogpatch(machine_config &config);
- void invad2ct(machine_config &config);
- void invaders(machine_config &config);
- void maze(machine_config &config);
- void mw8080bw_root(machine_config &config);
- void phantom2(machine_config &config);
- void shuffle(machine_config &config);
- void tornbase(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(direct_coin_count);
-
- DECLARE_CUSTOM_INPUT_MEMBER(tornbase_hit_left_input_r);
- DECLARE_CUSTOM_INPUT_MEMBER(tornbase_hit_right_input_r);
- DECLARE_CUSTOM_INPUT_MEMBER(tornbase_pitch_left_input_r);
- DECLARE_CUSTOM_INPUT_MEMBER(tornbase_pitch_right_input_r);
- DECLARE_CUSTOM_INPUT_MEMBER(tornbase_score_input_r);
- DECLARE_CUSTOM_INPUT_MEMBER(blueshrk_coin_input_r);
-
- DECLARE_CUSTOM_INPUT_MEMBER(invaders_sw6_sw7_r);
- DECLARE_CUSTOM_INPUT_MEMBER(invaders_sw5_r);
- DECLARE_CUSTOM_INPUT_MEMBER(invaders_in0_control_r);
- DECLARE_CUSTOM_INPUT_MEMBER(invaders_in1_control_r);
- DECLARE_CUSTOM_INPUT_MEMBER(invaders_in2_control_r);
-
- DECLARE_MACHINE_RESET(mw8080bw);
-
- IRQ_CALLBACK_MEMBER(interrupt_vector);
-
-protected:
- virtual void machine_start() override;
-
- u8 mw8080bw_shift_result_rev_r();
-
- int invaders_is_cabinet_cocktail();
-
- uint32_t screen_update_invaders(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mw8080bw(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- // device/memory pointers
- required_device<cpu_device> m_maincpu;
- optional_device<mb14241_device> m_mb14241;
- optional_device<watchdog_timer_device> m_watchdog;
- required_shared_ptr<uint8_t> m_main_ram;
- optional_device<discrete_sound_device> m_discrete;
- required_device<screen_device> m_screen;
-
- // misc game specific
- uint8_t m_flip_screen;
-
-private:
- // misc game specific
- uint16_t m_phantom2_cloud_counter;
- uint8_t m_maze_tone_timing_state; // output of IC C1, pin 5
-
- // timers
- emu_timer *m_interrupt_timer;
- emu_timer *m_maze_tone_timer;
-
- attotime m_interrupt_time;
-
- void tornbase_io_w(offs_t offset, uint8_t data);
- void maze_coin_counter_w(uint8_t data);
- void maze_io_w(offs_t offset, uint8_t data);
- void checkmat_io_w(offs_t offset, uint8_t data);
- uint8_t bowler_shift_result_r();
- void bowler_lights_1_w(uint8_t data);
- void bowler_lights_2_w(uint8_t data);
- void bowler_audio_2_w(uint8_t data);
- void bowler_audio_3_w(uint8_t data);
- void bowler_audio_4_w(uint8_t data);
- void bowler_audio_5_w(uint8_t data);
- void bowler_audio_6_w(uint8_t data);
- DECLARE_MACHINE_START(maze);
- DECLARE_MACHINE_START(phantom2);
- DECLARE_MACHINE_START(invaders);
- uint32_t screen_update_phantom2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_phantom2);
- TIMER_CALLBACK_MEMBER(maze_tone_timing_timer_callback);
- TIMER_CALLBACK_MEMBER(interrupt_trigger);
- void tornbase_audio_w(uint8_t data);
- void checkmat_audio_w(uint8_t data);
- void shuffle_audio_1_w(uint8_t data);
- void shuffle_audio_2_w(uint8_t data);
- void bowler_audio_1_w(uint8_t data);
- void blueshrk_audio_w(uint8_t data);
- void maze_update_discrete();
- void maze_write_discrete(uint8_t maze_tone_timing_state);
- uint8_t vpos_to_vysnc_chain_counter(int vpos);
- int vysnc_chain_counter_to_vpos(uint8_t counter, int vblank);
- void mw8080bw_create_interrupt_timer();
- void mw8080bw_start_interrupt_timer();
- uint8_t tornbase_get_cabinet_type();
-
- void blueshrk_audio(machine_config &config);
- void bowler_audio(machine_config &config);
- void checkmat_audio(machine_config &config);
- void maze_audio(machine_config &config);
- void shuffle_audio(machine_config &config);
- void tornbase_audio(machine_config &config);
-
- void blueshrk_io_map(address_map &map);
- void bowler_io_map(address_map &map);
- void checkmat_io_map(address_map &map);
- void dogpatch_io_map(address_map &map);
- void invad2ct_io_map(address_map &map);
- void invaders_io_map(address_map &map);
- void main_map(address_map &map);
- void maze_io_map(address_map &map);
- void phantom2_io_map(address_map &map);
- void shuffle_io_map(address_map &map);
- void tornbase_io_map(address_map &map);
-};
-
-
-#define SEAWOLF_ERASE_SW_PORT_TAG ("ERASESW")
-#define SEAWOLF_ERASE_DIP_PORT_TAG ("ERASEDIP")
-
-class seawolf_state : public mw8080bw_state
-{
-public:
- seawolf_state(machine_config const &mconfig, device_type type, char const *tag) :
- mw8080bw_state(mconfig, type, tag),
- m_erase_sw(*this, SEAWOLF_ERASE_SW_PORT_TAG),
- m_erase_dip(*this, SEAWOLF_ERASE_DIP_PORT_TAG),
- m_exp_lamps(*this, "EXP_LAMP_%X", 0U),
- m_torp_lamps(*this, "TORP_LAMP_%u", 1U),
- m_ready_lamp(*this, "READY_LAMP"),
- m_reload_lamp(*this, "RELOAD_LAMP")
- {
- }
-
- void seawolf(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(erase_input_r);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void explosion_lamp_w(u8 data);
- void periscope_lamp_w(u8 data);
-
- void io_map(address_map &map);
-
- required_ioport m_erase_sw;
- required_ioport m_erase_dip;
- output_finder<16> m_exp_lamps;
- output_finder<4> m_torp_lamps;
- output_finder<> m_ready_lamp;
- output_finder<> m_reload_lamp;
-};
-
-
-class gunfight_state : public mw8080bw_state
-{
-public:
- gunfight_state(machine_config const &mconfig, device_type type, char const *tag) :
- mw8080bw_state(mconfig, type, tag),
- m_soundboard(*this, "soundboard")
- {
- }
-
- void gunfight(machine_config &config);
-
-private:
- void io_w(offs_t offset, u8 data);
-
- void io_map(address_map &map);
-
- required_device<gunfight_audio_device> m_soundboard;
-};
-
-
-class boothill_state : public mw8080bw_state
-{
-public:
- boothill_state(machine_config const &mconfig, device_type type, char const *tag) :
- mw8080bw_state(mconfig, type, tag)
- {
- }
-
- void boothill(machine_config &config);
- void gmissile(machine_config &config);
- void m4(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- u8 reversible_shift_result_r();
- void reversible_shift_count_w(u8 data);
-
- void boothill_io_map(address_map &map);
- void gmissile_io_map(address_map &map);
- void m4_io_map(address_map &map);
-
- u8 m_rev_shift_res;
-};
-
-
-#define DESERTGU_GUN_X_PORT_TAG ("GUNX")
-#define DESERTGU_GUN_Y_PORT_TAG ("GUNY")
-
-#define DESERTGU_DIP_SW_0_1_SET_1_TAG ("DIPSW01SET1")
-#define DESERTGU_DIP_SW_0_1_SET_2_TAG ("DIPSW01SET2")
-
-class desertgu_state : public mw8080bw_state
-{
-public:
- desertgu_state(machine_config const &mconfig, device_type type, char const *tag) :
- mw8080bw_state(mconfig, type, tag),
- m_gun_port(*this, { DESERTGU_GUN_Y_PORT_TAG, DESERTGU_GUN_X_PORT_TAG }),
- m_dip_sw_0_1(*this, { DESERTGU_DIP_SW_0_1_SET_1_TAG, DESERTGU_DIP_SW_0_1_SET_2_TAG })
- {
- }
-
- void desertgu(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(gun_input_r);
- DECLARE_CUSTOM_INPUT_MEMBER(dip_sw_0_1_r);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void io_map(address_map &map);
-
- required_ioport_array<2> m_gun_port;
- required_ioport_array<2> m_dip_sw_0_1;
- u8 m_controller_select;
-};
-
-
-#define DPLAY_L_PITCH_PORT_TAG ("LPITCH")
-#define DPLAY_R_PITCH_PORT_TAG ("RPITCH")
-#define DPLAY_CAB_TYPE_PORT_TAG ("CAB")
-
-class dplay_state : public mw8080bw_state
-{
-public:
- dplay_state(machine_config const &mconfig, device_type type, char const *tag) :
- mw8080bw_state(mconfig, type, tag),
- m_l_pitch(*this, DPLAY_L_PITCH_PORT_TAG),
- m_r_pitch(*this, DPLAY_L_PITCH_PORT_TAG),
- m_cab_type(*this, DPLAY_CAB_TYPE_PORT_TAG)
- {
- }
-
- void dplay(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(dplay_pitch_left_input_r);
- DECLARE_CUSTOM_INPUT_MEMBER(dplay_pitch_right_input_r);
-
-private:
- void io_map(address_map &map);
-
- required_ioport m_l_pitch;
- required_ioport m_r_pitch;
- required_ioport m_cab_type;
-};
-
-
-class clowns_state : public mw8080bw_state
-{
-public:
- clowns_state(machine_config const &mconfig, device_type type, char const *tag) :
- mw8080bw_state(mconfig, type, tag),
- m_controllers(*this, "CONTP%u", 1U)
- {
- }
-
- void clowns(machine_config &config);
- void spacwalk(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(controller_r);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void clowns_io_map(address_map &map);
- void spacwalk_io_map(address_map &map);
-
- required_ioport_array<2> m_controllers;
- u8 m_controller_select;
-};
-
-
-class spcenctr_state : public mw8080bw_state
-{
-public:
- spcenctr_state(machine_config const &mconfig, device_type type, char const *tag) :
- mw8080bw_state(mconfig, type, tag),
- m_soundboard(*this, "soundboard")
- {
- }
-
- void spcenctr(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void io_w(offs_t offset, u8 data);
-
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, rectangle const &cliprect);
-
- void io_map(address_map &map);
-
- required_device<spcenctr_audio_device> m_soundboard;
- u8 m_trench_width;
- u8 m_trench_center;
- u8 m_trench_slope[16]; // 16x4 bit RAM
- u8 m_bright_control;
- u8 m_brightness;
-};
-
-
-class zzzap_state : public mw8080bw_state
-{
-public:
- zzzap_state(machine_config const &mconfig, device_type type, char const *tag) :
- mw8080bw_state(mconfig, type, tag)
- {
- }
-
- void zzzap(machine_config &config);
-
- void lagunar(machine_config &config);
-
-protected:
- void zzzap_common(machine_config &config);
-
-private:
- void io_map(address_map &map);
-};
-
-
-#define TORNBASE_CAB_TYPE_UPRIGHT_OLD (0)
-#define TORNBASE_CAB_TYPE_UPRIGHT_NEW (1)
-#define TORNBASE_CAB_TYPE_COCKTAIL (2)
-
-#define INVADERS_CAB_TYPE_PORT_TAG ("CAB")
-#define INVADERS_P1_CONTROL_PORT_TAG ("CONTP1")
-#define INVADERS_P2_CONTROL_PORT_TAG ("CONTP2")
-#define INVADERS_SW6_SW7_PORT_TAG ("SW6SW7")
-#define INVADERS_SW5_PORT_TAG ("SW5")
-
-#define BLUESHRK_SPEAR_PORT_TAG ("IN0")
-
-#define INVADERS_CONTROL_PORT_P1 \
- PORT_START(INVADERS_P1_CONTROL_PORT_TAG) \
- INVADERS_CONTROL_PORT_PLAYER(1)
-
-#define INVADERS_CONTROL_PORT_P2 \
- PORT_START(INVADERS_P2_CONTROL_PORT_TAG) \
- INVADERS_CONTROL_PORT_PLAYER(2)
-
-#define INVADERS_CONTROL_PORT_PLAYER(player) \
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(player) \
- PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(player) \
- PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(player) \
- PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED )
-
-#define INVADERS_CAB_TYPE_PORT \
- PORT_START(INVADERS_CAB_TYPE_PORT_TAG) \
- PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) \
- PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) \
- PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) )
-
-/*----------- defined in drivers/mw8080bw.c -----------*/
-
-extern const internal_layout layout_invaders;
-
-#endif // MAME_INCLUDES_MW8080BW_H
diff --git a/src/mame/includes/mystston.h b/src/mame/includes/mystston.h
deleted file mode 100644
index dab3bb7ffc1..00000000000
--- a/src/mame/includes/mystston.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Technos Mysterious Stones hardware
-
- driver by Nicola Salmoria
-
-***************************************************************************/
-
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-#define MYSTSTON_MASTER_CLOCK (XTAL(12'000'000))
-
-
-class mystston_state : public driver_device
-{
-public:
- mystston_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_ay8910(*this, "ay%u", 1U),
- m_ay8910_data(*this, "ay8910_data"),
- m_ay8910_select(*this, "ay8910_select"),
- m_bg_videoram(*this, "bg_videoram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "paletteram"),
- m_scroll(*this, "scroll"),
- m_video_control(*this, "video_control") ,
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette") { }
-
- void mystston(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void video_start() override;
- virtual void video_reset() override;
-
-private:
-
- /* machine state */
- required_device_array<ay8910_device, 2> m_ay8910;
- required_shared_ptr<uint8_t> m_ay8910_data;
- required_shared_ptr<uint8_t> m_ay8910_select;
-
- /* video state */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- emu_timer *m_interrupt_timer;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_paletteram;
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_video_control;
- void irq_clear_w(uint8_t data);
- void mystston_ay8910_select_w(uint8_t data);
- void mystston_video_control_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- uint32_t screen_update_mystston(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(interrupt_callback);
- void set_palette();
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx, int flip);
- void mystston_on_scanline_interrupt();
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- void mystston_video(machine_config &config);
- void main_map(address_map &map);
-};
diff --git a/src/mame/includes/mystwarr.h b/src/mame/includes/mystwarr.h
deleted file mode 100644
index 1aae783b340..00000000000
--- a/src/mame/includes/mystwarr.h
+++ /dev/null
@@ -1,117 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont, Phil Stroffolino, Acho A. Tang, Nicola Salmoria
-
-#include "includes/konamigx.h"
-#include "video/k053246_k053247_k055673.h"
-
-#include "sound/k054539.h"
-#include "machine/k053252.h"
-#include "video/k055555.h"
-#include "video/k054000.h"
-#include "machine/k054321.h"
-#include "machine/timer.h"
-#include "tilemap.h"
-
-class mystwarr_state : public konamigx_state
-{
-public:
- mystwarr_state(const machine_config &mconfig, device_type type, const char *tag) :
- konamigx_state(mconfig, type, tag),
- m_k054321(*this, "k054321"),
- m_gx_workram(*this, "gx_workram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void martchmp(machine_config &config);
- void mystwarr(machine_config &config);
- void dadandrn(machine_config &config);
- void viostorm(machine_config &config);
- void gaiapols(machine_config &config);
- void metamrph(machine_config &config);
-
-private:
- required_device<k054321_device> m_k054321;
- required_shared_ptr<uint16_t> m_gx_workram;
- optional_shared_ptr<uint16_t> m_spriteram;
- std::unique_ptr<uint8_t[]> m_decoded;
-
- uint8_t m_mw_irq_control;
- int m_cur_sound_region;
- int m_layer_colorbase[6];
- int m_oinprion;
- int m_cbparam;
- int m_sprite_colorbase;
- int m_sub1_colorbase;
- int m_last_psac_colorbase;
- int m_gametype;
- int m_roz_enable;
- int m_roz_rombank;
- tilemap_t *m_ult_936_tilemap;
- uint16_t m_clip;
-
- uint8_t m_sound_ctrl;
- uint8_t m_sound_nmi_clk;
-
- uint16_t eeprom_r(offs_t offset, uint16_t mem_mask = ~0);
- void mweeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t dddeeprom_r(offs_t offset, uint16_t mem_mask = ~0);
- void mmeeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_irq_w(uint16_t data);
- void irq_ack_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t k053247_scattered_word_r(offs_t offset);
- void k053247_scattered_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t k053247_martchmp_word_r(offs_t offset);
- void k053247_martchmp_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void mceeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mccontrol_r();
- void mccontrol_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_ctrl_w(uint8_t data);
-
- void ddd_053936_enable_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ddd_053936_clip_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t gai_053936_tilerom_0_r(offs_t offset);
- uint16_t ddd_053936_tilerom_0_r(offs_t offset);
- uint16_t ddd_053936_tilerom_1_r(offs_t offset);
- uint16_t gai_053936_tilerom_2_r(offs_t offset);
- uint16_t ddd_053936_tilerom_2_r(offs_t offset);
- TILE_GET_INFO_MEMBER(get_gai_936_tile_info);
- TILE_GET_INFO_MEMBER(get_ult_936_tile_info);
- DECLARE_MACHINE_START(mystwarr);
- DECLARE_MACHINE_RESET(mystwarr);
- DECLARE_VIDEO_START(mystwarr);
- DECLARE_MACHINE_RESET(viostorm);
- DECLARE_VIDEO_START(viostorm);
- DECLARE_MACHINE_RESET(metamrph);
- DECLARE_VIDEO_START(metamrph);
- DECLARE_MACHINE_RESET(dadandrn);
- DECLARE_VIDEO_START(dadandrn);
- DECLARE_MACHINE_RESET(gaiapols);
- DECLARE_VIDEO_START(gaiapols);
- DECLARE_MACHINE_RESET(martchmp);
- DECLARE_VIDEO_START(martchmp);
- uint32_t screen_update_mystwarr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_metamrph(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_dadandrn(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_martchmp(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(ddd_interrupt);
- DECLARE_WRITE_LINE_MEMBER(k054539_nmi_gen);
- TIMER_DEVICE_CALLBACK_MEMBER(mystwarr_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(metamrph_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(mchamp_interrupt);
- K056832_CB_MEMBER(mystwarr_tile_callback);
- K056832_CB_MEMBER(game5bpp_tile_callback);
- K056832_CB_MEMBER(game4bpp_tile_callback);
- K055673_CB_MEMBER(mystwarr_sprite_callback);
- K055673_CB_MEMBER(metamrph_sprite_callback);
- K055673_CB_MEMBER(gaiapols_sprite_callback);
- K055673_CB_MEMBER(martchmp_sprite_callback);
- void decode_tiles();
- void dadandrn_map(address_map &map);
- void gaiapols_map(address_map &map);
- void martchmp_map(address_map &map);
- void martchmp_sound_map(address_map &map);
- void metamrph_map(address_map &map);
- void mystwarr_map(address_map &map);
- void mystwarr_sound_map(address_map &map);
- void viostorm_map(address_map &map);
-};
diff --git a/src/mame/includes/mz2500.h b/src/mame/includes/mz2500.h
deleted file mode 100644
index 593dd964c17..00000000000
--- a/src/mame/includes/mz2500.h
+++ /dev/null
@@ -1,214 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese
-/********************************************************************************************************************************
-
- Sharp MZ-2500 (c) 1985 Sharp Corporation
-
-********************************************************************************************************************************/
-#ifndef MAME_INCLUDES_MZ2500_H
-#define MAME_INCLUDES_MZ2500_H
-
-#pragma once
-
-
-#include "cpu/z80/z80.h"
-#include "machine/i8255.h"
-#include "machine/pit8253.h"
-#include "machine/rp5c15.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80sio.h"
-#include "machine/z80pio.h"
-#include "sound/beep.h"
-#include "sound/ym2203.h"
-#include "machine/bankdev.h"
-#include "emupal.h"
-#include "screen.h"
-#include "softlist.h"
-#include "speaker.h"
-
-//#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-
-#define RP5C15_TAG "rp5c15"
-
-class mz2500_state : public driver_device
-{
-public:
- mz2500_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_rtc(*this, RP5C15_TAG),
- m_pit(*this, "pit"),
- m_beeper(*this, "beeper"),
- m_gfxdecode(*this, "gfxdecode"),
- m_fdc(*this, "mb8877a"),
- m_floppy0(*this, "mb8877a:0"),
- m_floppy1(*this, "mb8877a:1"),
- m_floppy2(*this, "mb8877a:2"),
- m_floppy3(*this, "mb8877a:3"),
- m_floppy(nullptr),
- m_palette(*this, "palette"),
- m_rambank(*this, "rambank%u", 0),
- m_tvram(*this, "tvram"),
- m_cgram(*this, "cgram"),
- m_wram(*this, "wram")
- { }
-
- void mz2500(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<rp5c15_device> m_rtc;
- required_device<pit8253_device> m_pit;
- required_device<beep_device> m_beeper;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<mb8877_device> m_fdc;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<floppy_connector> m_floppy2;
- required_device<floppy_connector> m_floppy3;
- floppy_image_device *m_floppy;
- required_device<palette_device> m_palette;
- required_device_array<address_map_bank_device, 8> m_rambank;
- required_shared_ptr<uint8_t> m_tvram;
- required_shared_ptr<uint8_t> m_cgram;
- required_shared_ptr<uint8_t> m_wram;
-
- uint8_t *m_ipl_rom;
- uint8_t *m_kanji_rom;
- uint8_t *m_kanji2_rom;
- std::unique_ptr<uint8_t[]> m_pcg_ram;
- std::unique_ptr<uint8_t[]> m_emm_ram;
- uint8_t *m_dic_rom;
- uint8_t *m_phone_rom;
- uint8_t *m_iplpro_rom;
-
- uint8_t m_bank_val[8];
- uint8_t m_bank_addr;
- uint8_t m_irq_sel;
- uint8_t m_irq_vector[4];
- uint8_t m_irq_mask[4];
- uint8_t m_irq_pending[4];
- uint8_t m_kanji_bank;
- uint8_t m_dic_bank;
- uint8_t m_fdc_reverse;
- uint8_t m_key_mux;
- uint8_t m_monitor_type;
- uint8_t m_text_reg[0x100];
- uint8_t m_text_reg_index;
- uint8_t m_text_col_size;
- uint8_t m_text_font_reg;
- uint8_t m_pal_select;
- uint16_t m_cg_vs;
- uint16_t m_cg_ve;
- uint16_t m_cg_hs;
- uint16_t m_cg_he;
- int16_t m_tv_vs;
- int16_t m_tv_ve;
- int16_t m_tv_hs;
- int16_t m_tv_he;
- uint8_t m_cg_latch[4];
- uint8_t m_cg_reg_index;
- uint8_t m_cg_reg[0x20];
- uint8_t m_clut16[0x10];
- uint16_t m_clut256[0x100];
- uint8_t m_cg_mask;
- int m_scr_x_size;
- int m_scr_y_size;
- uint8_t m_cg_clear_flag;
- uint32_t m_rom_index;
- uint8_t m_hrom_index;
- uint8_t m_lrom_index;
- struct { uint8_t r,g,b; } m_pal[16];
- uint8_t m_joy_mode;
- uint16_t m_kanji_index;
- uint32_t m_emm_offset;
- uint8_t m_old_portc;
- uint8_t m_prev_col_val;
- uint8_t m_pio_latchb;
- uint8_t m_ym_porta;
- uint8_t m_screen_enable;
- uint8_t mz2500_bank_addr_r();
- void mz2500_bank_addr_w(uint8_t data);
- uint8_t mz2500_bank_data_r();
- void mz2500_bank_data_w(uint8_t data);
- void mz2500_kanji_bank_w(uint8_t data);
- void mz2500_dictionary_bank_w(uint8_t data);
- uint8_t mz2500_crtc_hvblank_r();
- void mz2500_tv_crtc_w(offs_t offset, uint8_t data);
- void mz2500_irq_sel_w(uint8_t data);
- void mz2500_irq_data_w(uint8_t data);
- uint8_t mz2500_rom_r();
- void mz2500_rom_w(uint8_t data);
- void palette4096_io_w(uint8_t data);
- uint8_t mz2500_bplane_latch_r();
- uint8_t mz2500_rplane_latch_r();
- uint8_t mz2500_gplane_latch_r();
- uint8_t mz2500_iplane_latch_r();
- void mz2500_cg_addr_w(uint8_t data);
- void mz2500_cg_data_w(uint8_t data);
- void timer_w(uint8_t data);
- uint8_t mz2500_joystick_r();
- void mz2500_joystick_w(uint8_t data);
- uint8_t mz2500_kanji_r(offs_t offset);
- void mz2500_kanji_w(offs_t offset, uint8_t data);
- uint8_t rp5c15_8_r();
- void rp5c15_8_w(uint8_t data);
- uint8_t mz2500_emm_data_r();
- void mz2500_emm_addr_w(uint8_t data);
- void mz2500_emm_data_w(uint8_t data);
-
- uint8_t rmw_r(offs_t offset);
- void rmw_w(offs_t offset, uint8_t data);
- uint8_t kanji_pcg_r(offs_t offset);
- void kanji_pcg_w(offs_t offset, uint8_t data);
- uint8_t dict_rom_r(offs_t offset);
-
- uint8_t mz2500_cg_latch_compare();
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void mz2500_palette(palette_device &palette) const;
- uint32_t screen_update_mz2500(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(mz2500_vbl);
-
- uint8_t fdc_r(offs_t offset);
- void fdc_w(offs_t offset, uint8_t data);
- void floppy_select_w(uint8_t data);
- void floppy_side_w(uint8_t data);
-
- uint8_t mz2500_porta_r();
- uint8_t mz2500_portb_r();
- uint8_t mz2500_portc_r();
- void mz2500_porta_w(uint8_t data);
- void mz2500_portb_w(uint8_t data);
- void mz2500_portc_w(uint8_t data);
- void mz2500_pio1_porta_w(uint8_t data);
- uint8_t mz2500_pio1_porta_r();
- uint8_t opn_porta_r();
- void opn_porta_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pit8253_clk0_irq);
- DECLARE_WRITE_LINE_MEMBER(mz2500_rtc_alarm_irq);
- IRQ_CALLBACK_MEMBER( mz2500_irq_ack );
-
- void draw_80x25(bitmap_ind16 &bitmap,const rectangle &cliprect,uint16_t map_addr);
- void draw_40x25(bitmap_ind16 &bitmap,const rectangle &cliprect,int plane,uint16_t map_addr);
- void draw_cg4_screen(bitmap_ind16 &bitmap,const rectangle &cliprect,int pri);
- void draw_cg16_screen(bitmap_ind16 &bitmap,const rectangle &cliprect,int plane,int x_size,int pri);
- void draw_cg256_screen(bitmap_ind16 &bitmap,const rectangle &cliprect,int plane,int pri);
- void draw_tv_screen(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void draw_cg_screen(bitmap_ind16 &bitmap,const rectangle &cliprect,int pri);
-
- void mz2500_draw_pixel(bitmap_ind16 &bitmap,int x,int y,uint16_t pen,uint8_t width,uint8_t height);
- void mz2500_reconfigure_screen();
- static uint8_t pal_256_param(int index, int param);
- void reset_banks(uint8_t type);
-
- void mz2500_io(address_map &map);
- void mz2500_map(address_map &map);
- void mz2500_bank_window_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MZ2500_H
diff --git a/src/mame/includes/mz700.h b/src/mame/includes/mz700.h
deleted file mode 100644
index 321c09431fb..00000000000
--- a/src/mame/includes/mz700.h
+++ /dev/null
@@ -1,152 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Juergen Buchmueller, Dirk Best
-/******************************************************************************
- * Sharp MZ700
- *
- * Reference: http://sharpmz.computingmuseum.com
- *
- ******************************************************************************/
-#ifndef MAME_INCLUDES_MZ700_H
-#define MAME_INCLUDES_MZ700_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-#include "imagedev/cassette.h"
-#include "machine/bankdev.h"
-#include "machine/74145.h"
-#include "machine/i8255.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "machine/z80pio.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-#include "screen.h"
-
-class mz_state : public driver_device
-{
-public:
- mz_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_speaker(*this, "speaker")
- , m_pit(*this, "pit8253")
- , m_ppi(*this, "ppi8255")
- , m_cassette(*this, "cassette")
- , m_centronics(*this, "centronics")
- , m_ram(*this, RAM_TAG)
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_banke(*this, "banke")
- , m_bankf(*this, "bankf")
- , m_ls145(*this, "ls145")
- , m_cursor_timer(*this, "cursor")
- { }
-
- void mz800(machine_config &config);
- void mz700(machine_config &config);
-
- void init_mz800();
- void init_mz700();
-
-protected:
- virtual void machine_start() override;
-
-private:
- uint8_t mz700_e008_r();
- void mz700_e008_w(uint8_t data);
- uint8_t mz800_bank_0_r();
- void mz700_bank_0_w(uint8_t data);
- void mz800_bank_0_w(uint8_t data);
- uint8_t mz800_bank_1_r();
- void mz700_bank_1_w(uint8_t data);
- void mz700_bank_2_w(uint8_t data);
- void mz700_bank_3_w(uint8_t data);
- void mz700_bank_4_w(uint8_t data);
- void mz700_bank_5_w(uint8_t data);
- void mz700_bank_6_w(uint8_t data);
- uint8_t mz800_crtc_r();
- void mz800_write_format_w(uint8_t data);
- void mz800_read_format_w(uint8_t data);
- void mz800_display_mode_w(uint8_t data);
- void mz800_scroll_border_w(uint8_t data);
- uint8_t mz800_ramdisk_r();
- void mz800_ramdisk_w(uint8_t data);
- void mz800_ramaddr_w(uint8_t data);
- void mz800_palette_w(uint8_t data);
- void mz800_cgram_w(offs_t offset, uint8_t data);
- DECLARE_MACHINE_RESET(mz700);
- DECLARE_MACHINE_RESET(mz800);
- uint32_t screen_update_mz700(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mz800(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(ne556_cursor_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(ne556_other_callback);
- DECLARE_WRITE_LINE_MEMBER(pit_out0_changed);
- DECLARE_WRITE_LINE_MEMBER(pit_irq_2);
- uint8_t pio_port_b_r();
- uint8_t pio_port_c_r();
- void pio_port_a_w(uint8_t data);
- void pio_port_c_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(mz800_z80pio_irq);
- uint8_t mz800_z80pio_port_a_r();
- void mz800_z80pio_port_a_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
-
- void mz700_banke(address_map &map);
- void mz700_io(address_map &map);
- void mz700_mem(address_map &map);
- void mz800_bankf(address_map &map);
- void mz800_io(address_map &map);
- void mz800_mem(address_map &map);
-
- int m_mz700; /* 1 if running on an mz700 */
-
- int m_cursor_bit;
- int m_other_timer;
-
- int m_intmsk; /* PPI8255 pin PC2 */
-
- int m_mz700_ram_lock; /* 1 if ram lock is active */
- int m_mz700_ram_vram; /* 1 if vram is banked in */
-
- /* mz800 specific */
- std::unique_ptr<uint8_t[]> m_cgram;
- uint8_t *m_p_chargen;
-
- int m_mz700_mode; /* 1 if in mz700 mode */
- int m_mz800_ram_lock; /* 1 if lock is active */
- int m_mz800_ram_monitor; /* 1 if monitor rom banked in */
-
- int m_hires_mode; /* 1 if in 640x200 mode */
- int m_screennum; /* screen designation */
-
- int m_centronics_busy;
- int m_centronics_perror;
-
- uint8_t *m_colorram;
- std::unique_ptr<uint8_t[]> m_videoram;
- uint8_t m_speaker_level;
- uint8_t m_prev_state;
- uint16_t m_mz800_ramaddr;
- uint8_t m_mz800_palette[4];
- uint8_t m_mz800_palette_bank;
-
- required_device<cpu_device> m_maincpu;
- required_device<speaker_sound_device> m_speaker;
- required_device<pit8253_device> m_pit;
- required_device<i8255_device> m_ppi;
- required_device<cassette_image_device> m_cassette;
- optional_device<centronics_device> m_centronics;
- required_device<ram_device> m_ram;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- optional_device<address_map_bank_device> m_banke;
- optional_device<address_map_bank_device> m_bankf;
-
- required_device<ttl74145_device> m_ls145;
- required_device<timer_device> m_cursor_timer;
-};
-
-#endif // MAME_INCLUDES_MZ700_H
diff --git a/src/mame/includes/mz80.h b/src/mame/includes/mz80.h
deleted file mode 100644
index b426ccef9ac..00000000000
--- a/src/mame/includes/mz80.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/mz80.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_MZ80_H
-#define MAME_INCLUDES_MZ80_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/i8255.h"
-#include "machine/pit8253.h"
-#include "machine/timer.h"
-#include "imagedev/cassette.h"
-#include "sound/spkrdev.h"
-
-class mz80_state : public driver_device
-{
-public:
- mz80_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_pit(*this, "pit8253")
- , m_ppi(*this, "ppi8255")
- , m_cassette(*this, "cassette")
- , m_speaker(*this, "speaker")
- , m_p_ram(*this, "p_ram")
- , m_p_videoram(*this, "videoram")
- , m_p_chargen(*this, "chargen")
- { }
-
- void mz80kj(machine_config &config);
- void mz80k(machine_config &config);
- void mz80a(machine_config &config);
-
- void init_mz80k();
-
-private:
- uint8_t mz80k_strobe_r();
- void mz80k_strobe_w(uint8_t data);
- uint8_t mz80k_8255_portb_r();
- uint8_t mz80k_8255_portc_r();
- void mz80k_8255_porta_w(uint8_t data);
- void mz80k_8255_portc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pit_out0_changed);
- DECLARE_WRITE_LINE_MEMBER(pit_out2_changed);
- uint32_t screen_update_mz80k(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mz80kj(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mz80a(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(ne555_tempo_callback);
-
- void mz80k_io(address_map &map);
- void mz80k_mem(address_map &map);
- bool m_mz80k_vertical;
- bool m_mz80k_tempo_strobe;
- uint8_t m_speaker_level;
- bool m_prev_state;
- uint8_t m_mz80k_cursor_cnt;
- uint8_t m_mz80k_keyboard_line;
- virtual void machine_reset() override;
- required_device<cpu_device> m_maincpu;
- required_device<pit8253_device> m_pit;
- required_device<i8255_device> m_ppi;
- required_device<cassette_image_device> m_cassette;
- required_device<speaker_sound_device> m_speaker;
- required_shared_ptr<uint8_t> m_p_ram;
- required_shared_ptr<uint8_t> m_p_videoram;
- required_region_ptr<u8> m_p_chargen;
-};
-
-
-/*----------- defined in video/mz80.c -----------*/
-
-extern const gfx_layout mz80k_charlayout;
-extern const gfx_layout mz80kj_charlayout;
-
-#endif // MAME_INCLUDES_MZ80_H
diff --git a/src/mame/includes/n64.h b/src/mame/includes/n64.h
deleted file mode 100644
index ced1597a25e..00000000000
--- a/src/mame/includes/n64.h
+++ /dev/null
@@ -1,408 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz
-#ifndef MAME_INCLUDES_N64_H
-#define MAME_INCLUDES_N64_H
-
-#pragma once
-
-#include "cpu/rsp/rsp.h"
-#include "cpu/mips/mips3.h"
-#include "sound/dmadac.h"
-
-/*----------- driver state -----------*/
-
-class n64_rdp;
-class n64_periphs;
-
-class n64_state : public driver_device
-{
-public:
- n64_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_vr4300(*this, "maincpu")
- , m_rsp(*this, "rsp")
- , m_sram(*this, "sram")
- , m_rdram(*this, "rdram")
- , m_rsp_imem(*this, "rsp_imem")
- , m_rsp_dmem(*this, "rsp_dmem")
- , m_rcp_periphs(*this, "rcp")
- {
- }
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void n64_machine_stop();
-
- uint32_t screen_update_n64(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_n64);
-
- // Getters
- n64_rdp* rdp() { return m_rdp; }
- uint32_t* rdram() { return m_rdram; }
- uint32_t* sram() { return m_sram; }
- uint32_t* rsp_imem() { return m_rsp_imem; }
- uint32_t* rsp_dmem() { return m_rsp_dmem; }
-
-protected:
- required_device<mips3_device> m_vr4300;
- required_device<rsp_device> m_rsp;
-
- optional_shared_ptr<uint32_t> m_sram;
- required_shared_ptr<uint32_t> m_rdram;
- required_shared_ptr<uint32_t> m_rsp_imem;
- required_shared_ptr<uint32_t> m_rsp_dmem;
-
- required_device<n64_periphs> m_rcp_periphs;
-
- /* video-related */
- n64_rdp *m_rdp;
-};
-
-/*----------- devices -----------*/
-
-#define AUDIO_DMA_DEPTH 2
-
-struct n64_savable_data_t
-{
- uint8_t sram[0x20000];
- uint8_t eeprom[2048];
- uint8_t mempak[2][0x8000];
-};
-
-class n64_periphs : public device_t,
- public device_video_interface
-{
-private:
- struct AUDIO_DMA
- {
- uint32_t address;
- uint32_t length;
- };
-
-public:
- // construction/destruction
- n64_periphs(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- uint32_t is64_r(offs_t offset);
- void is64_w(offs_t offset, uint32_t data);
- uint32_t open_r(offs_t offset);
- void open_w(uint32_t data);
- uint32_t rdram_reg_r(offs_t offset, uint32_t mem_mask = ~0);
- void rdram_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t mi_reg_r(offs_t offset, uint32_t mem_mask = ~0);
- void mi_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t vi_reg_r(offs_t offset, uint32_t mem_mask = ~0);
- void vi_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t ai_reg_r(offs_t offset, uint32_t mem_mask = ~0);
- void ai_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t pi_reg_r(offs_t offset, uint32_t mem_mask = ~0);
- void pi_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t ri_reg_r(offs_t offset, uint32_t mem_mask = ~0);
- void ri_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t si_reg_r(offs_t offset);
- void si_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t dd_reg_r(offs_t offset);
- void dd_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t pif_ram_r(offs_t offset, uint32_t mem_mask = ~0);
- void pif_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- TIMER_CALLBACK_MEMBER(reset_timer_callback);
- TIMER_CALLBACK_MEMBER(vi_scanline_callback);
- TIMER_CALLBACK_MEMBER(dp_delay_callback);
- TIMER_CALLBACK_MEMBER(ai_timer_callback);
- TIMER_CALLBACK_MEMBER(pi_dma_callback);
- TIMER_CALLBACK_MEMBER(si_dma_callback);
- uint32_t dp_reg_r(offs_t offset, uint32_t mem_mask = ~0);
- void dp_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t sp_reg_r(offs_t offset);
- void sp_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void sp_set_status(uint32_t data);
- void signal_rcp_interrupt(int interrupt);
- void check_interrupts();
-
- void dp_full_sync();
- void ai_timer_tick();
- void pi_dma_tick();
- void si_dma_tick();
- void reset_tick();
- void video_update(bitmap_rgb32 &bitmap);
-
- // Video Interface (VI) registers
- uint32_t vi_width;
- uint32_t vi_origin;
- uint32_t vi_control;
- uint32_t vi_blank;
- uint32_t vi_hstart;
- uint32_t vi_vstart;
- uint32_t vi_xscale;
- uint32_t vi_yscale;
- uint32_t vi_burst;
- uint32_t vi_vsync;
- uint32_t vi_hsync;
- uint32_t vi_leap;
- uint32_t vi_intr;
- uint32_t vi_vburst;
- uint8_t field;
-
- /* nvram-specific for MESS */
- device_t *m_nvram_image;
-
- n64_savable_data_t m_save_data;
-
- uint32_t cart_length;
-
- bool dd_present;
- bool disk_present;
- bool cart_present;
-
- // Mouse X2/Y2 for delta position
- int mouse_x2[4];
- int mouse_y2[4];
-
- void poll_reset_button(bool button);
-
- uint32_t dp_clock;
-
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
- n64_state* m_n64;
- address_space *m_mem_map;
- required_device<mips3_device> m_vr4300;
- required_device<rsp_device> m_rsp;
-
- uint32_t *m_rdram;
- uint32_t *m_sram;
- uint32_t *m_rsp_imem;
- uint32_t *m_rsp_dmem;
-
- void clear_rcp_interrupt(int interrupt);
-
- bool reset_held;
- emu_timer *reset_timer;
- emu_timer *dp_delay_timer;
-
- uint8_t is64_buffer[0x10000];
-
- // Video interface (VI) registers and functions
- emu_timer *vi_scanline_timer;
-
- // Audio Interface (AI) registers and functions
- void ai_dma();
- AUDIO_DMA *ai_fifo_get_top();
- void ai_fifo_push(uint32_t address, uint32_t length);
- void ai_fifo_pop();
- bool ai_delayed_carry;
-
- required_device_array<dmadac_sound_device, 2> ai_dac;
- uint32_t ai_dram_addr;
- uint32_t ai_len;
- uint32_t ai_control;
- int ai_dacrate;
- int ai_bitrate;
- uint32_t ai_status;
-
- emu_timer *ai_timer;
-
- AUDIO_DMA ai_fifo[AUDIO_DMA_DEPTH];
- int ai_fifo_wpos;
- int ai_fifo_rpos;
- int ai_fifo_num;
-
- // Memory Interface (MI) registers
- uint32_t mi_version;
- uint32_t mi_interrupt;
- uint32_t mi_intr_mask;
- uint32_t mi_mode;
-
- // RDRAM Interface (RI) registers
- uint32_t rdram_regs[10];
- uint32_t ri_regs[8];
-
- // RSP Interface (SP) registers
- void sp_dma(int direction);
-
- uint32_t sp_mem_addr;
- uint32_t sp_dram_addr;
- int sp_dma_length;
- int sp_dma_count;
- int sp_dma_skip;
- uint32_t sp_semaphore;
-
- // Disk Drive (DD) registers and functions
- void dd_set_zone_and_track_offset();
- void dd_update_bm();
- void dd_write_sector();
- void dd_read_sector();
- void dd_read_C2();
- uint32_t dd_buffer[256];
- uint32_t dd_sector_data[64];
- uint32_t dd_ram_seq_data[16];
- uint32_t dd_data_reg;
- uint32_t dd_status_reg;
- uint32_t dd_track_reg;
- uint32_t dd_buf_status_reg;
- uint32_t dd_sector_err_reg;
- uint32_t dd_seq_status_reg;
- uint32_t dd_seq_ctrl_reg;
- uint32_t dd_sector_reg;
- uint32_t dd_reset_reg;
- uint32_t dd_current_reg;
- bool dd_bm_reset_held;
- bool dd_write;
- uint8_t dd_int;
- uint8_t dd_start_block;
- uint8_t dd_start_sector;
- uint8_t dd_sectors_per_block;
- uint8_t dd_sector_size;
- uint8_t dd_zone;
- uint32_t dd_track_offset;
-
- // Peripheral Interface (PI) registers and functions
- emu_timer *pi_dma_timer;
- uint32_t pi_dram_addr;
- uint32_t pi_cart_addr;
- uint32_t pi_rd_len;
- uint32_t pi_wr_len;
- uint32_t pi_status;
- uint32_t pi_bsd_dom1_lat;
- uint32_t pi_bsd_dom1_pwd;
- uint32_t pi_bsd_dom1_pgs;
- uint32_t pi_bsd_dom1_rls;
- uint32_t pi_bsd_dom2_lat;
- uint32_t pi_bsd_dom2_pwd;
- uint32_t pi_bsd_dom2_pgs;
- uint32_t pi_bsd_dom2_rls;
- uint32_t pi_dma_dir;
-
- // Serial Interface (SI) registers and functions
- emu_timer *si_dma_timer;
- void pif_dma(int direction);
- void handle_pif();
- int pif_channel_handle_command(int channel, int slength, uint8_t *sdata, int rlength, uint8_t *rdata);
- uint8_t calc_mempak_crc(uint8_t *buffer, int length);
- uint8_t pif_ram[0x40];
- uint8_t pif_cmd[0x40];
- uint32_t si_dram_addr;
- uint32_t si_pif_addr;
- uint32_t si_pif_addr_rd64b;
- uint32_t si_pif_addr_wr64b;
- uint32_t si_status_val;
- uint32_t si_dma_dir;
- uint32_t cic_status;
- int cic_type;
-
- n64_savable_data_t savable_data;
-
- // Video Interface (VI) functions
- void vi_recalculate_resolution();
- void video_update16(bitmap_rgb32 &bitmap);
- void video_update32(bitmap_rgb32 &bitmap);
- uint8_t random_seed; // %HACK%, adds 19 each time it's read and is more or less random
- uint8_t get_random() { return random_seed += 0x13; }
-
- int32_t m_gamma_table[256];
- int32_t m_gamma_dither_table[0x4000];
-
-};
-
-// device type definition
-DECLARE_DEVICE_TYPE(N64PERIPH, n64_periphs)
-
-/*----------- defined in video/n64.c -----------*/
-
-#define DACRATE_NTSC (48681812)
-#define DACRATE_PAL (49656530)
-#define DACRATE_MPAL (48628316)
-
-/*----------- defined in machine/n64.c -----------*/
-
-#define SP_INTERRUPT 0x1
-#define SI_INTERRUPT 0x2
-#define AI_INTERRUPT 0x4
-#define VI_INTERRUPT 0x8
-#define PI_INTERRUPT 0x10
-#define DP_INTERRUPT 0x20
-
-#define SP_STATUS_HALT 0x0001
-#define SP_STATUS_BROKE 0x0002
-#define SP_STATUS_DMABUSY 0x0004
-#define SP_STATUS_DMAFULL 0x0008
-#define SP_STATUS_IOFULL 0x0010
-#define SP_STATUS_SSTEP 0x0020
-#define SP_STATUS_INTR_BREAK 0x0040
-#define SP_STATUS_SIGNAL0 0x0080
-#define SP_STATUS_SIGNAL1 0x0100
-#define SP_STATUS_SIGNAL2 0x0200
-#define SP_STATUS_SIGNAL3 0x0400
-#define SP_STATUS_SIGNAL4 0x0800
-#define SP_STATUS_SIGNAL5 0x1000
-#define SP_STATUS_SIGNAL6 0x2000
-#define SP_STATUS_SIGNAL7 0x4000
-
-#define DP_STATUS_XBUS_DMA 0x01
-#define DP_STATUS_FREEZE 0x02
-#define DP_STATUS_FLUSH 0x04
-#define DP_STATUS_START_VALID 0x400
-
-#define DD_ASIC_STATUS_DISK_CHANGE 0x00010000
-#define DD_ASIC_STATUS_MECHA_ERR 0x00020000
-#define DD_ASIC_STATUS_WRPROTECT_ERR 0x00040000
-#define DD_ASIC_STATUS_HEAD_RETRACT 0x00080000
-#define DD_ASIC_STATUS_MOTOR_OFF 0x00100000
-#define DD_ASIC_STATUS_RESET 0x00400000
-#define DD_ASIC_STATUS_BUSY 0x00800000
-#define DD_ASIC_STATUS_DISK 0x01000000
-#define DD_ASIC_STATUS_MECHA_INT 0x02000000
-#define DD_ASIC_STATUS_BM_INT 0x04000000
-#define DD_ASIC_STATUS_BM_ERROR 0x08000000
-#define DD_ASIC_STATUS_C2_XFER 0x10000000
-#define DD_ASIC_STATUS_DREQ 0x40000000
-
-#define DD_TRACK_INDEX_LOCK 0x60000000
-
-#define DD_BM_MECHA_INT_RESET 0x01000000
-#define DD_BM_XFERBLOCKS 0x02000000
-#define DD_BM_DISABLE_C1 0x04000000
-#define DD_BM_DISABLE_OR_CHK 0x08000000
-#define DD_BM_RESET 0x10000000
-#define DD_BM_INT_MASK 0x20000000
-#define DD_BM_MODE 0x40000000
-#define DD_BM_START 0x80000000
-
-#define DD_BMST_RUNNING 0x80000000
-#define DD_BMST_ERROR 0x04000000
-#define DD_BMST_MICRO_STATUS 0x02000000
-#define DD_BMST_BLOCKS 0x01000000
-#define DD_BMST_C1_CORRECT 0x00800000
-#define DD_BMST_C1_DOUBLE 0x00400000
-#define DD_BMST_C1_SINGLE 0x00200000
-#define DD_BMST_C1_ERROR 0x00010000
-
-#define DD_ASIC_ERR_AM_FAIL 0x80000000
-#define DD_ASIC_ERR_MICRO_FAIL 0x40000000
-#define DD_ASIC_ERR_SPINDLE_FAIL 0x20000000
-#define DD_ASIC_ERR_OVER_RUN 0x10000000
-#define DD_ASIC_ERR_OFFTRACK 0x08000000
-#define DD_ASIC_ERR_NO_DISK 0x04000000
-#define DD_ASIC_ERR_CLOCK_UNLOCK 0x02000000
-#define DD_ASIC_ERR_SELF_STOP 0x01000000
-
-#define DD_SEQ_MICRO_INT_MASK 0x80000000
-#define DD_SEQ_MICRO_PC_ENABLE 0x40000000
-
-#define SECTORS_PER_BLOCK 85
-#define BLOCKS_PER_TRACK 2
-
-const unsigned int ddZoneSecSize[16] = {232,216,208,192,176,160,144,128,
- 216,208,192,176,160,144,128,112};
-const unsigned int ddZoneTrackSize[16] = {158,158,149,149,149,149,149,114,
- 158,158,149,149,149,149,149,114};
-const unsigned int ddStartOffset[16] =
- {0x0,0x5F15E0,0xB79D00,0x10801A0,0x1523720,0x1963D80,0x1D414C0,0x20BBCE0,
- 0x23196E0,0x28A1E00,0x2DF5DC0,0x3299340,0x36D99A0,0x3AB70E0,0x3E31900,0x4149200};
-
-#endif // MAME_INCLUDES_N64_H
diff --git a/src/mame/includes/n8080.h b/src/mame/includes/n8080.h
deleted file mode 100644
index 0a944bdfa38..00000000000
--- a/src/mame/includes/n8080.h
+++ /dev/null
@@ -1,203 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli
-#ifndef MAME_INCLUDES_N8080_H
-#define MAME_INCLUDES_N8080_H
-
-#pragma once
-
-#include "cpu/i8085/i8085.h"
-#include "cpu/mcs48/mcs48.h"
-#include "machine/timer.h"
-#include "sound/dac.h"
-#include "sound/sn76477.h"
-#include "emupal.h"
-#include "screen.h"
-
-class n8080_state : public driver_device
-{
-public:
- n8080_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_n8080_dac(*this, "n8080_dac"),
- m_sn(*this, "snsnd"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void sound_pins_changed();
- virtual void update_SN76477_status();
- virtual void delayed_sound_1(int data);
- virtual void delayed_sound_2(int data);
-
-//private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
-
- /* video-related */
- int m_sheriff_color_mode;
- int m_sheriff_color_data;
-
- /* sound-related */
- emu_timer* m_sound_timer[3];
- uint16_t m_prev_sound_pins;
- uint16_t m_curr_sound_pins;
- int m_mono_flop[3];
- uint8_t m_prev_snd_data;
-
- /* other */
- unsigned m_shift_data;
- unsigned m_shift_bits;
- int m_inte;
-
- /* devices */
- required_device<i8080_cpu_device> m_maincpu;
- required_device<i8035_device> m_audiocpu;
- optional_device<dac_bit_interface> m_n8080_dac;
- optional_device<sn76477_device> m_sn;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- void n8080_shift_bits_w(uint8_t data);
- void n8080_shift_data_w(uint8_t data);
- uint8_t n8080_shift_r();
- void n8080_video_control_w(uint8_t data);
- void n8080_sound_1_w(uint8_t data);
- void n8080_sound_2_w(uint8_t data);
- uint8_t n8080_8035_p1_r();
- DECLARE_READ_LINE_MEMBER(n8080_8035_t0_r);
- DECLARE_READ_LINE_MEMBER(n8080_8035_t1_r);
- void n8080_dac_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(n8080_inte_callback);
- void n8080_status_callback(uint8_t data);
- void n8080_palette(palette_device &palette) const;
- TIMER_DEVICE_CALLBACK_MEMBER(rst1_tick);
- TIMER_DEVICE_CALLBACK_MEMBER(rst2_tick);
- void start_mono_flop( int n, const attotime &expire );
- void stop_mono_flop( int n );
- TIMER_CALLBACK_MEMBER( stop_mono_flop_callback );
- TIMER_CALLBACK_MEMBER( delayed_sound_1_callback );
- TIMER_CALLBACK_MEMBER( delayed_sound_2_callback );
-
- void main_cpu_map(address_map &map);
- void main_io_map(address_map &map);
- void n8080_sound_cpu_map(address_map &map);
-};
-
-class spacefev_state : public n8080_state
-{
-public:
- spacefev_state(const machine_config &mconfig, device_type type, const char *tag) :
- n8080_state(mconfig, type, tag)
- { }
-
- void spacefev(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- virtual void sound_start() override;
- virtual void sound_reset() override;
- virtual void video_start() override;
-
- virtual void sound_pins_changed() override;
- virtual void update_SN76477_status() override;
- virtual void delayed_sound_1(int data) override;
- virtual void delayed_sound_2(int data) override;
-
-private:
- void spacefev_sound(machine_config &config);
-
- TIMER_DEVICE_CALLBACK_MEMBER(vco_voltage_timer);
-
- TIMER_CALLBACK_MEMBER(stop_red_cannon);
- void start_red_cannon();
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- emu_timer* m_cannon_timer;
- int m_red_screen;
- int m_red_cannon;
-};
-
-class sheriff_state : public n8080_state
-{
-public:
- sheriff_state(const machine_config &mconfig, device_type type, const char *tag) :
- n8080_state(mconfig, type, tag)
- { }
-
- void sheriff(machine_config &config);
- void westgun2(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- virtual void sound_start() override;
- virtual void sound_reset() override;
- virtual void video_start() override;
-
- virtual void sound_pins_changed() override;
- virtual void update_SN76477_status() override;
-
-private:
- void sheriff_sound(machine_config &config);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-class helifire_state : public n8080_state
-{
-public:
- helifire_state(const machine_config &mconfig, device_type type, const char *tag) :
- n8080_state(mconfig, type, tag),
- m_dac(*this, "helifire_dac"),
- m_colorram(*this, "colorram")
- { }
-
- void helifire(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- virtual void sound_start() override;
- virtual void sound_reset() override;
- virtual void video_start() override;
-
- virtual void sound_pins_changed() override;
- virtual void delayed_sound_2(int data) override;
-
-private:
- void helifire_sound(machine_config &config);
-
- TIMER_DEVICE_CALLBACK_MEMBER(dac_volume_timer);
- DECLARE_READ_LINE_MEMBER(helifire_8035_t0_r);
- DECLARE_READ_LINE_MEMBER(helifire_8035_t1_r);
- uint8_t helifire_8035_external_ram_r();
- uint8_t helifire_8035_p2_r();
- void sound_ctrl_w(uint8_t data);
- void sound_io_map(address_map &map);
-
- void helifire_palette(palette_device &palette) const;
- void next_line();
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void main_cpu_map(address_map &map);
-
- required_device<dac_8bit_r2r_device> m_dac;
- required_shared_ptr<uint8_t> m_colorram;
-
- int m_dac_phase;
- double m_dac_volume;
- double m_dac_timing;
-
- int m_flash;
- uint8_t m_LSFR[63];
- unsigned m_mv;
- unsigned m_sc; // IC56
-};
-
-
-#endif // MAME_INCLUDES_N8080_H
diff --git a/src/mame/includes/namcofl.h b/src/mame/includes/namcofl.h
deleted file mode 100644
index 7b46f302754..00000000000
--- a/src/mame/includes/namcofl.h
+++ /dev/null
@@ -1,107 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont, ElSemi
-
-#include "machine/bankdev.h"
-#include "machine/namcomcu.h"
-#include "machine/timer.h"
-#include "screen.h"
-#include "video/namco_c123tmap.h"
-#include "video/namco_c116.h"
-#include "video/namco_c169roz.h"
-#include "video/namco_c355spr.h"
-#include "emupal.h"
-
-class namcofl_state : public driver_device
-{
-public:
- namcofl_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mainbank(*this, "mainbank_%u", 1U),
- m_c116(*this, "c116"),
- m_screen(*this, "screen"),
- m_c123tmap(*this, "c123tmap"),
- m_c169roz(*this, "c169roz"),
- m_c355spr(*this, "c355spr"),
- m_mcu(*this, "mcu"),
- m_in0(*this, "IN0"),
- m_in1(*this, "IN1"),
- m_in2(*this, "IN2"),
- m_misc(*this, "MISC"),
- m_accel(*this, "ACCEL"),
- m_brake(*this, "BRAKE"),
- m_wheel(*this, "WHEEL"),
- m_workram(*this, "workram"),
- m_shareram(*this, "shareram") { }
-
- void namcofl(machine_config &config);
-
- void driver_init() override;
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device_array<address_map_bank_device, 2> m_mainbank;
- required_device<namco_c116_device> m_c116;
- required_device<screen_device> m_screen;
- required_device<namco_c123tmap_device> m_c123tmap;
- required_device<namco_c169roz_device> m_c169roz;
- required_device<namco_c355spr_device> m_c355spr;
- required_device<m37710_cpu_device> m_mcu;
- required_ioport m_in0;
- required_ioport m_in1;
- required_ioport m_in2;
- required_ioport m_misc;
- optional_ioport m_accel;
- optional_ioport m_brake;
- optional_ioport m_wheel;
- emu_timer *m_raster_interrupt_timer;
- emu_timer *m_vblank_interrupt_timer;
- emu_timer *m_network_interrupt_timer;
- required_shared_ptr<uint32_t> m_workram;
- required_shared_ptr<uint32_t> m_shareram;
- uint8_t m_mcu_port6;
- uint32_t m_sprbank;
-
- inline void set_bank(unsigned bank)
- {
- bank &= 1;
- m_mainbank[0]->set_bank(bank); // ROM, RAM
- m_mainbank[1]->set_bank(bank ^ 1); // RAM, ROM
- }
-
- uint32_t unk1_r();
- uint32_t network_r();
- uint32_t sysreg_r();
- void sysreg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void c116_w(offs_t offset, uint8_t data);
- uint16_t mcu_shared_r(offs_t offset);
- void mcu_shared_w(offs_t offset, uint16_t data, uint16_t mem_mask);
- uint8_t port6_r();
- void port6_w(uint8_t data);
- uint8_t port7_r();
- uint8_t dac7_r();
- uint8_t dac6_r();
- uint8_t dac5_r();
- uint8_t dac4_r();
- uint8_t dac3_r();
- uint8_t dac2_r();
- uint8_t dac1_r();
- uint8_t dac0_r();
- void spritebank_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(network_interrupt_callback);
- TIMER_CALLBACK_MEMBER(vblank_interrupt_callback);
- TIMER_CALLBACK_MEMBER(raster_interrupt_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq0_cb);
- TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq2_cb);
- int FLobjcode2tile(int code);
- void TilemapCB(uint16_t code, int *tile, int *mask);
- void RozCB(uint16_t code, int *tile, int *mask, int which);
- void namcoc75_am(address_map &map);
- void namcofl_mem(address_map &map);
- void namcofl_bank_mem(address_map &map);
-};
diff --git a/src/mame/includes/namcona1.h b/src/mame/includes/namcona1.h
deleted file mode 100644
index 3e3907e62cd..00000000000
--- a/src/mame/includes/namcona1.h
+++ /dev/null
@@ -1,221 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-/***************************************************************************
-
- Namco NA-1 System hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_NAMCONA1_H
-#define MAME_INCLUDES_NAMCONA1_H
-
-#pragma once
-
-#include "machine/eeprompar.h"
-#include "machine/namcomcu.h"
-#include "machine/timer.h"
-#include "machine/msm6242.h"
-#include "sound/c140.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class namcona1_state : public driver_device
-{
-public:
- namcona1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_c219(*this, "c219"),
- m_muxed_inputs(*this, { { "P4", "DSW", "P1", "P2" } }),
- m_io_p3(*this, "P3"),
- m_workram(*this, "workram"),
- m_vreg(*this, "vreg"),
- m_paletteram(*this, "paletteram"),
- m_cgram(*this, "cgram"),
- m_videoram(*this, "videoram"),
- m_scroll(*this, "scroll"),
- m_spriteram(*this, "spriteram"),
- m_prgrom(*this, "maincpu"),
- m_maskrom(*this, "maskrom"),
- m_scan_timer(nullptr)
- { }
-
- void namcona_base(machine_config &config);
- void c69(machine_config &config);
- void namcona1(machine_config &config);
-
- void init_bkrtmaq();
- void init_fa();
- void init_cgangpzl();
- void init_tinklpit();
- void init_swcourt();
- void init_exvania();
- void init_emeraldj();
- void init_swcourtb();
-
- void namcona1_mcu_map(address_map &map);
-
-protected:
- u16 custom_key_r(offs_t offset);
- void custom_key_w(u16 data);
- void vreg_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 mcu_mailbox_r(offs_t offset);
- void mcu_mailbox_w_68k(offs_t offset, u16 data, u16 mem_mask = ~0);
- void mcu_mailbox_w_mcu(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 na1mcu_shared_r(offs_t offset);
- void na1mcu_shared_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u8 port4_r();
- void port4_w(u8 data);
- u8 port5_r();
- void port5_w(u8 data);
- u8 port6_r();
- void port6_w(u8 data);
- u8 port7_r();
- void port7_w(u8 data);
- u8 port8_r();
- void port8_w(u8 data);
- template <int Bit> u16 portana_r();
- void videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void paletteram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 gfxram_r(offs_t offset);
- void gfxram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void device_post_load() override;
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void scanline_interrupt(int scanline);
-
- void namcona1_main_map(address_map &map);
- void namcona1_c219_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- enum
- {
- NAMCO_CGANGPZL,
- NAMCO_EMERALDA,
- NAMCO_KNCKHEAD,
- NAMCO_BKRTMAQ,
- NAMCO_EXVANIA,
- NAMCO_QUIZTOU,
- NAMCO_SWCOURT,
- NAMCO_TINKLPIT,
- NAMCO_NUMANATH,
- NAMCO_FA,
- NAMCO_XDAY2,
- NAMCO_SWCOURTB
- };
-
- enum
- {
- TIMER_SCANLINE
- };
-
- int m_gametype;
-
- required_device<cpu_device> m_maincpu;
- required_device<m37710_cpu_device> m_mcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<c219_device> m_c219;
-
- required_ioport_array<4> m_muxed_inputs;
- required_ioport m_io_p3;
-
- required_shared_ptr<u16> m_workram;
- required_shared_ptr<u16> m_vreg;
- required_shared_ptr<u16> m_paletteram;
- required_shared_ptr<u16> m_cgram;
- required_shared_ptr<u16> m_videoram;
- required_shared_ptr<u16> m_scroll;
- required_shared_ptr<u16> m_spriteram;
-
- required_region_ptr<u16> m_prgrom;
- required_region_ptr<u16> m_maskrom;
-
- emu_timer * m_scan_timer;
- // this has to be u8 to be in the right byte order for the tilemap system
- std::vector<u8> m_shaperam;
-
- int m_mEnableInterrupts;
- u16 m_count;
- u32 m_keyval;
- u16 m_mcu_mailbox[8];
- u8 m_mcu_port4;
- u8 m_mcu_port5;
- u8 m_mcu_port6;
- u8 m_mcu_port8;
- tilemap_t *m_bg_tilemap[4+1];
- int m_palette_is_dirty;
-
- void simulate_mcu();
- void write_version_info();
- int transfer_dword(u32 dest, u32 source);
-
- void blit();
- void UpdatePalette(int offset);
- void pdraw_tile(screen_device &screen, bitmap_ind16 &dest_bmp, const rectangle &clip, u32 code, u32 color,
- int sx, int sy, bool flipx, bool flipy, u8 priority, bool bShadow, bool bOpaque, u8 gfx_region);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int which, int primask);
- void tilemap_get_info(tile_data &tileinfo, int tile_index, const u16 *tilemap_videoram, bool use_4bpp_gfx);
- void blit_setup(int format, int *bytes_per_row, int *pitch, int mode);
- void draw_pixel_line(const rectangle &cliprect, u16 *pDest, u8 *pPri, u16 *pSource, const pen_t *paldata);
- bool screen_enabled(const rectangle &cliprect);
- TILE_GET_INFO_MEMBER(tilemap_get_info0);
- TILE_GET_INFO_MEMBER(tilemap_get_info1);
- TILE_GET_INFO_MEMBER(tilemap_get_info2);
- TILE_GET_INFO_MEMBER(tilemap_get_info3);
- TILE_GET_INFO_MEMBER(roz_get_info);
-};
-
-class namcona2_state : public namcona1_state
-{
-public:
- namcona2_state(const machine_config &mconfig, device_type type, const char *tag) :
- namcona1_state(mconfig, type, tag)
- {}
-
- void c70(machine_config &config);
- void namcona2(machine_config &config);
-
- void init_knckhead();
- void init_emeralda();
- void init_numanath();
- void init_quiztou();
-};
-
-class xday2_namcona2_state : public namcona2_state
-{
-public:
- xday2_namcona2_state(const machine_config &mconfig, device_type type, const char *tag) :
- namcona2_state(mconfig, type, tag),
- m_rtc(*this, "rtc")
- {}
-
- static constexpr feature_type unemulated_features() { return feature::PRINTER; }
-
- void xday2(machine_config &config);
-
- void init_xday2();
-
-private:
- required_device <msm6242_device> m_rtc;
-
- u8 printer_r();
- void printer_w(u8 data);
-
- void xday2_main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NAMCONA1_H
diff --git a/src/mame/includes/namconb1.h b/src/mame/includes/namconb1.h
deleted file mode 100644
index 412f3cf6693..00000000000
--- a/src/mame/includes/namconb1.h
+++ /dev/null
@@ -1,161 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-/***************************************************************************
-
- Namco System NB-1 hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_NAMCONB1_H
-#define MAME_INCLUDES_NAMCONB1_H
-
-#pragma once
-
-#include "machine/eeprompar.h"
-#include "machine/namcomcu.h"
-#include "machine/timer.h"
-#include "screen.h"
-#include "video/namco_c116.h"
-#include "video/namco_c355spr.h"
-#include "video/namco_c123tmap.h"
-#include "video/namco_c169roz.h"
-
-
-class namconb1_state : public driver_device
-{
-public:
- namconb1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_gametype(0),
- m_maincpu(*this, "maincpu"),
- m_c116(*this, "c116"),
- m_c123tmap(*this, "c123tmap"),
- m_c355spr(*this, "c355spr"),
- m_c169roz(*this, "c169roz"),
- m_screen(*this, "screen"),
- m_mcu(*this, "mcu"),
- m_eeprom(*this, "eeprom"),
- m_p1(*this, "P1"),
- m_p2(*this, "P2"),
- m_p3(*this, "P3"),
- m_p4(*this, "P4"),
- m_misc(*this, "MISC"),
- m_light0_x(*this, "LIGHT0_X"),
- m_light0_y(*this, "LIGHT0_Y"),
- m_light1_x(*this, "LIGHT1_X"),
- m_light1_y(*this, "LIGHT1_Y"),
- m_spritebank32(*this, "spritebank32"),
- m_tilebank32(*this, "tilebank32"),
- m_rozbank32(*this, "rozbank32"),
- m_namconb_shareram(*this, "namconb_share")
- { }
-
- void namconb1(machine_config &config);
- void namconb2(machine_config &config);
- void outfxies(machine_config &config);
- void machbrkr(machine_config &config);
-
- void init_sws95();
- void init_machbrkr();
- void init_sws97();
- void init_sws96();
- void init_vshoot();
- void init_nebulray();
- void init_gunbulet();
- void init_gslgr94j();
- void init_outfxies();
- void init_gslgr94u();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- int m_gametype;
- enum
- {
- /* Namco NB1 */
- NAMCONB1_NEBULRAY = 0x2000,
- NAMCONB1_GUNBULET,
- NAMCONB1_GSLGR94U,
- NAMCONB1_GSLGR94J,
- NAMCONB1_SWS95,
- NAMCONB1_SWS96,
- NAMCONB1_SWS97,
- NAMCONB1_VSHOOT,
-
- /* Namco NB2 */
- NAMCONB2_OUTFOXIES,
- NAMCONB2_MACH_BREAKERS,
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<namco_c116_device> m_c116;
- required_device<namco_c123tmap_device> m_c123tmap;
- required_device<namco_c355spr_device> m_c355spr;
- optional_device<namco_c169roz_device> m_c169roz; // NB1 only, not NA1
- required_device<screen_device> m_screen;
- required_device<m37710_cpu_device> m_mcu;
- required_device<eeprom_parallel_28xx_device> m_eeprom;
- required_ioport m_p1;
- required_ioport m_p2;
- optional_ioport m_p3;
- optional_ioport m_p4;
- required_ioport m_misc;
- optional_ioport m_light0_x;
- optional_ioport m_light0_y;
- optional_ioport m_light1_x;
- optional_ioport m_light1_y;
- required_shared_ptr<u32> m_spritebank32;
- optional_shared_ptr<u32> m_tilebank32;
- optional_shared_ptr<u32> m_rozbank32;
- required_shared_ptr<u16> m_namconb_shareram;
-
- u8 m_vbl_irq_level;
- u8 m_pos_irq_level;
- u8 m_unk_irq_level;
- u16 m_count;
- u8 m_port6;
- u32 m_tilemap_tile_bank[4];
- std::unique_ptr<u32[]> m_spritebank32_delayed;
-
- u32 randgen_r();
- void srand_w(u32 data);
- void namconb1_cpureg_w(offs_t offset, u8 data);
- void namconb2_cpureg_w(offs_t offset, u8 data);
- u8 namconb1_cpureg_r(offs_t offset);
- u8 namconb2_cpureg_r(offs_t offset);
- u32 custom_key_r(offs_t offset);
- u32 gunbulet_gun_r(offs_t offset);
- u32 share_r(offs_t offset);
- void share_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void mcu_shared_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u8 port6_r();
- void port6_w(u8 data);
- u8 port7_r();
- template <int Bit> u16 dac_bit_r();
-
- void rozbank32_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void video_update_common(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_namconb1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_namconb2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scantimer);
- TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq0_cb);
- TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq2_cb);
-
- int NB1objcode2tile(int code);
- int NB2objcode2tile_machbrkr(int code);
- int NB2objcode2tile_outfxies(int code);
- void NB1TilemapCB(u16 code, int *tile, int *mask);
- void NB2TilemapCB_machbrkr(u16 code, int *tile, int *mask);
- void NB2TilemapCB_outfxies(u16 code, int *tile, int *mask);
- void NB2RozCB_machbrkr(u16 code, int *tile, int *mask, int which);
- void NB2RozCB_outfxies(u16 code, int *tile, int *mask, int which);
- void namcoc75_am(address_map &map);
- void namconb1_am(address_map &map);
- void namconb2_am(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NAMCONB1_H
diff --git a/src/mame/includes/namcond1.h b/src/mame/includes/namcond1.h
deleted file mode 100644
index 960e910bedd..00000000000
--- a/src/mame/includes/namcond1.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mark McDougall, R. Belmont
-/***************************************************************************
-
- namcond1.h
-
- Common functions & declarations for the Namco ND-1 driver
-
-***************************************************************************/
-
-#include "video/ygv608.h"
-#include "machine/nvram.h"
-
-class namcond1_state : public driver_device
-{
-public:
- namcond1_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_ygv608(*this, "ygv608"),
- m_zpr1(*this, "zpr1"),
- m_zpr2(*this, "zpr2"),
- m_shared_ram(*this, "shared_ram") { }
-
- void abcheck(machine_config &config);
- void namcond1(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_mcu;
- required_device<ygv608_device> m_ygv608;
- optional_device<nvram_device> m_zpr1, m_zpr2;
-
- required_shared_ptr<uint16_t> m_shared_ram;
-
- uint8_t m_h8_irq5_enabled;
- int m_p8;
-
- uint16_t mcu_p7_read();
- uint16_t mcu_pa_read();
- void mcu_pa_write(uint16_t data);
- uint16_t cuskey_r(offs_t offset);
- void cuskey_w(offs_t offset, uint16_t data);
- uint16_t printer_r();
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- DECLARE_WRITE_LINE_MEMBER( vblank_irq_w );
- DECLARE_WRITE_LINE_MEMBER( raster_irq_w );
- INTERRUPT_GEN_MEMBER(mcu_interrupt);
- void abcheck_map(address_map &map);
- void namcond1_map(address_map &map);
- void nd1h8iomap(address_map &map);
- void nd1h8rwmap(address_map &map);
-};
diff --git a/src/mame/includes/namcos1.h b/src/mame/includes/namcos1.h
deleted file mode 100644
index 55c2dfe927b..00000000000
--- a/src/mame/includes/namcos1.h
+++ /dev/null
@@ -1,159 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-#ifndef MAME_INCLUDES_NAMCOS1_H
-#define MAME_INCLUDES_NAMCOS1_H
-
-#pragma once
-
-#include "cpu/m6800/m6801.h"
-#include "cpu/m6809/m6809.h"
-#include "machine/c117.h"
-#include "sound/dac.h"
-#include "sound/namco.h"
-#include "video/namco_c116.h"
-#include "video/namco_c123tmap.h"
-#include "machine/74157.h"
-
-class namcos1_state : public driver_device
-{
-public:
- namcos1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "subcpu"),
- m_audiocpu(*this, "audiocpu"),
- m_mcu(*this, "mcu"),
- m_c116(*this, "c116"),
- m_c117(*this, "c117"),
- m_c123tmap(*this, "c123tmap"),
- m_dac(*this, "dac%u", 0U),
- m_gfxdecode(*this, "gfxdecode"),
- m_spriteram(*this, "spriteram"),
- m_triram(*this, "triram"),
- m_rom(*this, "user1"),
- m_soundbank(*this, "soundbank"),
- m_mcubank(*this, "mcubank"),
- m_io_in(*this, "IN%u", 0U),
- m_io_control(*this, "CONTROL%u", 0U),
- m_io_paddle(*this, "PADDLE%u", 0U),
- m_io_dipsw(*this, "DIPSW"),
- m_dsw_sel(*this, "dsw_sel")
- { }
-
- void ns1(machine_config &config);
-
- void init_pacmania();
- void init_ws();
- void init_wldcourt();
- void init_tankfrc4();
- void init_blazer();
- void init_dangseed();
- void init_splatter();
- void init_alice();
- void init_faceoff();
- void init_puzlclub();
- void init_bakutotu();
- void init_rompers();
- void init_ws90();
- void init_tankfrce();
- void init_soukobdx();
- void init_shadowld();
- void init_berabohm();
- void init_galaga88();
- void init_blastoff();
- void init_quester();
- void init_ws89();
- void init_dspirit();
- void init_pistoldm();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void driver_init() override;
-
-private:
- required_device<mc6809e_device> m_maincpu;
- required_device<mc6809e_device> m_subcpu;
- required_device<mc6809e_device> m_audiocpu;
- required_device<hd63701v0_cpu_device> m_mcu;
- required_device<namco_c116_device> m_c116;
- required_device<namco_c117_device> m_c117;
- required_device<namco_c123tmap_device> m_c123tmap;
- required_device_array<dac_8bit_r2r_device, 2> m_dac;
- required_device<gfxdecode_device> m_gfxdecode;
-
- required_shared_ptr<u8> m_spriteram;
- required_shared_ptr<u8> m_triram;
- required_region_ptr<u8> m_rom;
-
- required_memory_bank m_soundbank;
- required_memory_bank m_mcubank;
-
- optional_ioport_array<4> m_io_in;
- optional_ioport_array<2> m_io_control;
- optional_ioport_array<2> m_io_paddle;
- required_ioport m_io_dipsw;
- required_device<ls157_device> m_dsw_sel;
-
- int m_key_id;
- int m_key_reg;
- int m_key_rng;
- int m_key_swap4_arg;
- int m_key_swap4;
- int m_key_bottom4;
- int m_key_top4;
- u32 m_key_quotient;
- u32 m_key_reminder;
- u32 m_key_numerator_high_word;
- u8 m_key[8];
- int m_mcu_patch_data;
- int m_reset;
- int m_input_count;
- int m_strobe;
- int m_strobe_count;
- int m_stored_input[2];
- bool m_copy_sprites;
- u8 m_drawmode_table[16];
-
- DECLARE_WRITE_LINE_MEMBER(subres_w);
- void audiocpu_irq_ack_w(u8 data);
- void mcu_irq_ack_w(u8 data);
- u8 dsw_r(offs_t offset);
- void coin_w(u8 data);
- void dac_gain_w(u8 data);
- void sound_bankswitch_w(u8 data);
- void mcu_bankswitch_w(u8 data);
- void mcu_patch_w(u8 data);
- u8 quester_paddle_r(offs_t offset);
- u8 berabohm_buttons_r(offs_t offset);
- u8 faceoff_inputs_r(offs_t offset);
- void spriteram_w(offs_t offset, u8 data);
- void _3dcs_w(offs_t offset, u8 data);
- u8 no_key_r(offs_t offset);
- void no_key_w(offs_t offset, u8 data);
- u8 key_type1_r(offs_t offset);
- void key_type1_w(offs_t offset, u8 data);
- u8 key_type2_r(offs_t offset);
- void key_type2_w(offs_t offset, u8 data);
- u8 key_type3_r(offs_t offset);
- void key_type3_w(offs_t offset, u8 data);
-
- void key_type_1_init(int key_id);
- void key_type_2_init(int key_id);
- void key_type_3_init(int key_id, int reg, int rng, int swap4_arg, int swap4, int bottom4, int top4);
-
- void TilemapCB(u16 code, int *tile, int *mask);
-
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
- void main_map(address_map &map);
- void mcu_map(address_map &map);
- void sound_map(address_map &map);
- void sub_map(address_map &map);
- void virtual_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NAMCOS1_H
diff --git a/src/mame/includes/namcos2.h b/src/mame/includes/namcos2.h
deleted file mode 100644
index 14cad5bc2cc..00000000000
--- a/src/mame/includes/namcos2.h
+++ /dev/null
@@ -1,294 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:K.Wilkins
-/***************************************************************************
-
- namcos2.h
-
- Common functions & declarations for the Namco System 2 driver
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_NAMCOS2_H
-#define MAME_INCLUDES_NAMCOS2_H
-
-#pragma once
-
-#include "machine/namco_c139.h"
-#include "machine/namco_c148.h"
-#include "machine/timer.h"
-#include "sound/c140.h"
-#include "video/namco_c45road.h"
-#include "video/namco_c116.h"
-#include "machine/namco65.h"
-#include "machine/namco68.h"
-#include "video/namco_c169roz.h"
-#include "video/namco_c355spr.h"
-#include "video/namco_c123tmap.h"
-#include "video/namcos2_sprite.h"
-#include "video/namcos2_roz.h"
-#include "screen.h"
-
-/*********************************************/
-/* IF GAME SPECIFIC HACKS ARE REQUIRED THEN */
-/* USE THE m_gametype MEMBER TO FIND */
-/* OUT WHAT GAME IS RUNNING */
-/*********************************************/
-
-class namcos2_state : public driver_device
-{
-public:
- namcos2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_gametype(0),
- m_maincpu(*this, "maincpu"),
- m_slave(*this, "slave"),
- m_audiocpu(*this, "audiocpu"),
- m_c65(*this, "c65mcu"),
- m_c68(*this, "c68mcu"),
- m_c140(*this, "c140"),
- m_c116(*this, "c116"),
- m_c123tmap(*this, "c123tmap"),
- m_master_intc(*this, "master_intc"),
- m_slave_intc(*this, "slave_intc"),
- m_sci(*this, "sci"),
- m_c169roz(*this, "c169roz"),
- m_c355spr(*this, "c355spr"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_audiobank(*this, "audiobank"),
- m_c140_region(*this, "c140"),
- m_dpram(*this, "dpram"),
- m_spriteram(*this, "spriteram"),
- m_c45_road(*this, "c45_road"),
- m_ns2sprite(*this, "s2sprite"),
- m_ns2roz(*this, "s2roz")
- { }
-
- void configure_c116_standard(machine_config &config);
- void configure_c148_standard(machine_config &config);
- void configure_c65_standard(machine_config &config);
- void configure_c68_standard(machine_config &config);
- void configure_c123tmap_standard(machine_config &config);
- void configure_c169roz_standard(machine_config &config);
- void configure_c355spr_standard(machine_config &config);
- void configure_c45road_standard(machine_config &config);
- void configure_common_standard(machine_config &config);
- void configure_namcos2_sprite_standard(machine_config &config);
- void configure_namcos2_roz_standard(machine_config &config);
- void metlhawk(machine_config &config);
- void gollygho(machine_config &config);
- void assaultp(machine_config &config);
- void sgunner2(machine_config &config);
- void base2(machine_config &config);
- void finallap_noio(machine_config &config);
- void finallap(machine_config &config);
- void finallap_c68(machine_config &config);
- void finalap2(machine_config &config);
- void finalap3(machine_config &config);
- void suzuka8h(machine_config &config);
- void luckywld(machine_config &config);
- void base3(machine_config &config);
- void sgunner(machine_config &config);
- void base_noio(machine_config &config);
- void base(machine_config &config);
- void base_c68(machine_config &config);
-
- void init_cosmogng();
- void init_sgunner2();
- void init_kyukaidk();
- void init_bubbletr();
- void init_suzuk8h2();
- void init_burnforc();
- void init_gollygho();
- void init_rthun2j();
- void init_sws();
- void init_finehour();
- void init_finallap();
- void init_dirtfoxj();
- void init_marvlanj();
- void init_sws92();
- void init_dsaber();
- void init_assault();
- void init_mirninja();
- void init_finalap2();
- void init_valkyrie();
- void init_fourtrax();
- void init_finalap3();
- void init_luckywld();
- void init_assaultj();
- void init_dsaberj();
- void init_suzuka8h();
- void init_phelios();
- void init_sws93();
- void init_metlhawk();
- void init_sws92g();
- void init_assaultp();
- void init_ordyne();
- void init_marvland();
- void init_rthun2();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
-
-enum
- {
- /* Namco System 2 */
- NAMCOS2_ASSAULT = 0x1000,
- NAMCOS2_ASSAULT_JP,
- NAMCOS2_ASSAULT_PLUS,
- NAMCOS2_BUBBLE_TROUBLE,
- NAMCOS2_BURNING_FORCE,
- NAMCOS2_COSMO_GANG,
- NAMCOS2_COSMO_GANG_US,
- NAMCOS2_DIRT_FOX,
- NAMCOS2_DIRT_FOX_JP,
- NAMCOS2_DRAGON_SABER,
- NAMCOS2_FINAL_LAP,
- NAMCOS2_FINAL_LAP_2,
- NAMCOS2_FINAL_LAP_3,
- NAMCOS2_FINEST_HOUR,
- NAMCOS2_FOUR_TRAX,
- NAMCOS2_GOLLY_GHOST,
- NAMCOS2_LUCKY_AND_WILD,
- NAMCOS2_MARVEL_LAND,
- NAMCOS2_METAL_HAWK,
- NAMCOS2_MIRAI_NINJA,
- NAMCOS2_ORDYNE,
- NAMCOS2_PHELIOS,
- NAMCOS2_ROLLING_THUNDER_2,
- NAMCOS2_STEEL_GUNNER,
- NAMCOS2_STEEL_GUNNER_2,
- NAMCOS2_SUPER_WSTADIUM,
- NAMCOS2_SUPER_WSTADIUM_92,
- NAMCOS2_SUPER_WSTADIUM_92T,
- NAMCOS2_SUPER_WSTADIUM_93,
- NAMCOS2_SUZUKA_8_HOURS,
- NAMCOS2_SUZUKA_8_HOURS_2,
- NAMCOS2_VALKYRIE,
- NAMCOS2_KYUUKAI_DOUCHUUKI,
- };
-
- int m_gametype;
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_slave;
- required_device<cpu_device> m_audiocpu;
- optional_device<namcoc65_device> m_c65;
- optional_device<namcoc68_device> m_c68;
- required_device<c140_device> m_c140;
- required_device<namco_c116_device> m_c116;
- required_device<namco_c123tmap_device> m_c123tmap;
- required_device<namco_c148_device> m_master_intc;
- required_device<namco_c148_device> m_slave_intc;
- required_device<namco_c139_device> m_sci;
- optional_device<namco_c169roz_device> m_c169roz;
- optional_device<namco_c355spr_device> m_c355spr;
- optional_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_memory_bank m_audiobank;
- required_region_ptr<u16> m_c140_region;
-
- std::unique_ptr<uint8_t[]> m_eeprom;
-
- uint16_t dpram_word_r(offs_t offset);
- void dpram_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t dpram_byte_r(offs_t offset);
- void dpram_byte_w(offs_t offset, uint8_t data);
-
- void eeprom_w(offs_t offset, uint8_t data);
- uint8_t eeprom_r(offs_t offset);
-
- uint16_t c140_rom_r(offs_t offset);
- void sound_bankselect_w(uint8_t data);
-
- void sound_reset_w(uint8_t data);
- void system_reset_w(uint8_t data);
- void reset_all_subcpus(int state);
-
- void video_start_luckywld();
- void video_start_metlhawk();
- void video_start_sgunner();
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_finallap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_luckywld(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_metlhawk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_sgunner(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint8_t c116_r(offs_t offset);
-
- uint16_t gfx_ctrl_r();
- void gfx_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void create_shadow_table();
- void apply_clip( rectangle &clip, const rectangle &cliprect );
-
- int get_pos_irq_scanline() { return (m_c116->get_reg(5) - 32) & 0xff; }
- TIMER_DEVICE_CALLBACK_MEMBER(screen_scanline);
-
- required_shared_ptr<uint8_t> m_dpram; /* 2Kx8 */
- optional_shared_ptr<uint16_t> m_spriteram;
- uint16_t m_gfx_ctrl;
- unsigned m_finallap_prot_count;
- int m_sendval;
-
- optional_device<namco_c45_road_device> m_c45_road;
- optional_device<namcos2_sprite_device> m_ns2sprite;
- optional_device<namcos2_roz_device> m_ns2roz;
-
- uint16_t namcos2_68k_key_r(offs_t offset);
- void namcos2_68k_key_w(offs_t offset, uint16_t data);
- uint16_t namcos2_finallap_prot_r(offs_t offset);
- void GollyGhostUpdateLED_c4(int data);
- void GollyGhostUpdateLED_c6(int data);
- void GollyGhostUpdateLED_c8(int data);
- void GollyGhostUpdateLED_ca(int data);
- void GollyGhostUpdateDiorama_c0(int data);
- void TilemapCB(uint16_t code, int *tile, int *mask);
- void TilemapCB_finalap2(uint16_t code, int *tile, int *mask);
- void RozCB_luckywld(uint16_t code, int *tile, int *mask, int which);
- void RozCB_metlhawk(uint16_t code, int *tile, int *mask, int which);
-
- void c140_default_am(address_map &map);
- void common_default_am(address_map &map);
- void common_finallap_am(address_map &map);
- void common_suzuka8h_am(address_map &map);
- void common_suzuka8h_roz_am(address_map &map);
- void common_luckywld_roz_am(address_map &map);
- void common_metlhawk_am(address_map &map);
- void common_sgunner_am(address_map &map);
- void master_common_am(address_map &map);
- void master_default_am(address_map &map);
- void master_finallap_am(address_map &map);
- void master_suzuka8h_am(address_map &map);
- void master_luckywld_am(address_map &map);
- void master_metlhawk_am(address_map &map);
- void master_sgunner_am(address_map &map);
-
- void namcos2_68k_default_cpu_board_am(address_map &map);
- void slave_common_am(address_map &map);
- void slave_default_am(address_map &map);
- void slave_finallap_am(address_map &map);
- void slave_suzuka8h_am(address_map &map);
- void slave_luckywld_am(address_map &map);
- void slave_metlhawk_am(address_map &map);
- void slave_sgunner_am(address_map &map);
- void sound_default_am(address_map &map);
-};
-
-/**************************************************************/
-/* Non-shared memory custom IO device - IRQ/Inputs/Outputs */
-/**************************************************************/
-
-#define NAMCOS2_C148_0 0 /* 0x1c0000 */
-#define NAMCOS2_C148_1 1 /* 0x1c2000 */
-#define NAMCOS2_C148_2 2 /* 0x1c4000 */
-#define NAMCOS2_C148_CPUIRQ 3 /* 0x1c6000 */
-#define NAMCOS2_C148_EXIRQ 4 /* 0x1c8000 */
-#define NAMCOS2_C148_POSIRQ 5 /* 0x1ca000 */
-#define NAMCOS2_C148_SERIRQ 6 /* 0x1cc000 */
-#define NAMCOS2_C148_VBLANKIRQ 7 /* 0x1ce000 */
-
-#endif // MAME_INCLUDES_NAMCOS2_H
diff --git a/src/mame/includes/namcos22.h b/src/mame/includes/namcos22.h
deleted file mode 100644
index ab7108696a0..00000000000
--- a/src/mame/includes/namcos22.h
+++ /dev/null
@@ -1,606 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino, hap, R. Belmont
-/***************************************************************************
-
- Namco System22 / System Super22 hardware
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_NAMCOS22_H
-#define MAME_INCLUDES_NAMCOS22_H
-
-#pragma once
-
-#include "machine/eeprompar.h"
-#include "machine/mb87078.h"
-#include "machine/namcomcu.h"
-#include "machine/timer.h"
-#include "sound/c352.h"
-#include "video/rgbutil.h"
-#include "video/poly.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-enum
-{
- NAMCOS22_AIR_COMBAT22,
- NAMCOS22_ALPINE_RACER,
- NAMCOS22_CYBER_COMMANDO,
- NAMCOS22_CYBER_CYCLES,
- NAMCOS22_PROP_CYCLE,
- NAMCOS22_RAVE_RACER,
- NAMCOS22_RIDGE_RACER,
- NAMCOS22_RIDGE_RACER2,
- NAMCOS22_TIME_CRISIS,
- NAMCOS22_VICTORY_LAP,
- NAMCOS22_ACE_DRIVER,
- NAMCOS22_ALPINE_RACER_2,
- NAMCOS22_ALPINE_SURFER,
- NAMCOS22_TOKYO_WARS,
- NAMCOS22_AQUA_JET,
- NAMCOS22_DIRT_DASH,
- NAMCOS22_ARMADILLO_RACING
-};
-
-
-struct namcos22_polyvertex
-{
- float x, y, z;
- int u, v; /* 0..0xfff */
- int bri; /* 0..0xff */
-};
-
-enum namcos22_scenenode_type
-{
- NAMCOS22_SCENENODE_NONLEAF,
- NAMCOS22_SCENENODE_QUAD,
- NAMCOS22_SCENENODE_SPRITE
-};
-
-#define NAMCOS22_RADIX_BITS 4
-#define NAMCOS22_RADIX_BUCKETS (1 << NAMCOS22_RADIX_BITS)
-#define NAMCOS22_RADIX_MASK (NAMCOS22_RADIX_BUCKETS - 1)
-
-struct namcos22_scenenode
-{
- namcos22_scenenode_type type;
- struct namcos22_scenenode *next;
- union
- {
- struct
- {
- struct namcos22_scenenode *next[NAMCOS22_RADIX_BUCKETS];
- } nonleaf;
-
- struct
- {
- float vx, vy;
- float vu, vd, vl, vr;
- int texturebank;
- int color;
- int cmode;
- int flags;
- int cz_adjust;
- int direct;
- namcos22_polyvertex v[4];
- } quad;
-
- struct
- {
- int tile, color;
- int prioverchar;
- int fade_enabled;
- int flipx, flipy;
- int linktype;
- int cols, rows;
- int xpos, ypos;
- int cx_min, cx_max;
- int cy_min, cy_max;
- int sizex, sizey;
- int translucency;
- int cz;
- } sprite;
- } data;
-};
-
-
-struct namcos22_object_data
-{
- /* poly / sprites */
- rgbaint_t fogcolor;
- rgbaint_t fadecolor;
- rgbaint_t polycolor;
- const pen_t *pens;
- bitmap_rgb32 *destbase;
- bitmap_ind8 *primap;
- int bn;
- int flags;
- int prioverchar;
- int cmode;
- int fadefactor;
- int pfade_enabled;
- int fogfactor;
- int zfog_enabled;
- int cz_adjust;
- int cz_sdelta;
- const u8 *czram;
-
- /* sprites */
- const u8 *source;
- int alpha;
- int line_modulo;
- int flipx;
- int flipy;
-};
-
-
-class namcos22_state;
-
-class namcos22_renderer : public poly_manager<float, namcos22_object_data, 4, 8000>
-{
-public:
- namcos22_renderer(namcos22_state &state);
-
- void render_scene(screen_device &screen, bitmap_rgb32 &bitmap);
- struct namcos22_scenenode *new_scenenode(running_machine &machine, u32 zsort, namcos22_scenenode_type type);
-
- void init();
-
-private:
- namcos22_state &m_state;
-
- struct namcos22_scenenode m_scenenode_root;
- struct namcos22_scenenode *m_scenenode_cur;
-
- float m_clipx;
- float m_clipy;
- rectangle m_cliprect;
-
- inline u8 nthbyte(const u32 *src, int n) { return (src[n / 4] << ((n & 3) * 8)) >> 24; }
- inline u16 nthword(const u32 *src, int n) { return (src[n / 2] << ((n & 1) * 16)) >> 16; }
-
- void render_scene_nodes(screen_device &screen, bitmap_rgb32 &bitmap, struct namcos22_scenenode *node);
- void render_sprite(screen_device &screen, bitmap_rgb32 &bitmap, struct namcos22_scenenode *node);
- void poly3d_drawquad(screen_device &screen, bitmap_rgb32 &bitmap, struct namcos22_scenenode *node);
- void poly3d_drawsprite(screen_device &screen, bitmap_rgb32 &dest_bmp, u32 code, u32 color, int flipx, int flipy, int sx, int sy, int scalex, int scaley, int cz_factor, int prioverchar, int fade_enabled, int alpha);
-
- void free_scenenode(struct namcos22_scenenode *node);
- struct namcos22_scenenode *alloc_scenenode(running_machine &machine, struct namcos22_scenenode *node);
-
- void renderscanline_uvi_full(int32_t scanline, const extent_t &extent, const namcos22_object_data &extra, int threadid);
- void renderscanline_sprite(int32_t scanline, const extent_t &extent, const namcos22_object_data &extra, int threadid);
-};
-
-
-enum namcos22_dsp_upload_state
-{
- NAMCOS22_DSP_UPLOAD_READY,
- NAMCOS22_DSP_UPLOAD_DEST,
- NAMCOS22_DSP_UPLOAD_DATA
-};
-
-#define NAMCOS22_MAX_LIT_SURFACES 0x80
-#define NAMCOS22_MAX_RENDER_CMD_SEQ 0x1c
-
-class namcos22_state : public driver_device
-{
-public:
- namcos22_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_palette(*this, "palette"),
- m_czram(*this, "czram"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_maincpu(*this, "maincpu"),
- m_master(*this, "master"),
- m_slave(*this, "slave"),
- m_mcu(*this, "mcu"),
- m_iomcu(*this, "iomcu"),
- m_eeprom(*this, "eeprom"),
- m_mb87078(*this, "mb87078"),
- m_c352(*this, "c352"),
- m_shareram(*this, "shareram"),
- m_slave_extram(*this, "slaveextram"),
- m_master_extram(*this, "masterextram"),
- m_paletteram(*this, "paletteram"),
- m_cgram(*this, "cgram"),
- m_textram(*this, "textram"),
- m_polygonram(*this, "polygonram"),
- m_mixer(*this, "video_mixer"),
- m_gamma_proms(*this, "gamma_proms"),
- m_vics_data(*this, "vics_data"),
- m_vics_control(*this, "vics_control"),
- m_screen(*this, "screen"),
- m_adc_ports(*this, "ADC.%u", 0),
- m_inputs(*this, "INPUTS"),
- m_custom(*this, "CUSTOM.%u", 0),
- m_opt(*this, "OPT.%u", 0),
- m_mcu_out(*this, "mcuout%u", 0U),
- m_cpuled_out(*this, "cpuled%u", 0U)
- { }
-
- void cybrcomm(machine_config &config);
- void namcos22(machine_config &config);
-
- void init_acedrvr();
- void init_raveracw();
- void init_ridger2j();
- void init_victlap();
- void init_cybrcomm();
- void init_ridgeraj();
-
- // renderer
- int m_poly_translucency;
- u16 *m_texture_tilemap;
- std::unique_ptr<u8[]> m_texture_tileattr;
- u8 *m_texture_tiledata;
- std::unique_ptr<u8[]> m_texture_ayx_to_pixel;
- int m_is_ss22;
- int m_mixer_flags;
- int m_screen_fade_factor;
- int m_screen_fade_r;
- int m_screen_fade_g;
- int m_screen_fade_b;
- int m_poly_fade_enabled;
- int m_poly_fade_r;
- int m_poly_fade_g;
- int m_poly_fade_b;
- u32 m_fog_colormask;
- int m_fog_r;
- int m_fog_g;
- int m_fog_b;
- std::unique_ptr<u8[]> m_recalc_czram[4];
- int m_fog_r_per_cztype[4];
- int m_fog_g_per_cztype[4];
- int m_fog_b_per_cztype[4];
- u16 m_czattr[8];
-
- required_device<palette_device> m_palette;
- optional_shared_ptr<u32> m_czram;
- optional_shared_ptr<u32> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
-
-protected:
- virtual void machine_reset() override;
- virtual void machine_start() override;
- virtual void video_start() override;
- virtual void device_post_load() override;
-
- void namcos22_textram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u16 namcos22_tilemapattr_r(offs_t offset);
- void namcos22_tilemapattr_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u32 namcos22_dspram_r(offs_t offset);
- void namcos22_dspram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void namcos22_cgram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void namcos22_paletteram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void namcos22_dspram16_bank_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 namcos22_dspram16_r(offs_t offset);
- void namcos22_dspram16_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 pdp_status_r();
- u16 pdp_begin_r();
- u16 dsp_hold_signal_r();
- void dsp_hold_ack_w(u16 data);
- void dsp_xf_output_w(u16 data);
- void point_address_w(u16 data);
- void point_loword_iw(u16 data);
- void point_hiword_w(u16 data);
- u16 point_loword_r();
- u16 point_hiword_ir();
- void dsp_unk2_w(u16 data);
- u16 dsp_unk_port3_r();
- void upload_code_to_slave_dsp_w(u16 data);
- u16 dsp_unk8_r();
- u16 custom_ic_status_r();
- u16 dsp_upload_status_r();
- void slave_serial_io_w(u16 data);
- u16 master_serial_io_r();
- void dsp_unk_porta_w(u16 data);
- void dsp_led_w(u16 data);
- void dsp_unk8_w(u16 data);
- void master_render_device_w(u16 data);
- u16 dsp_slave_bioz_r();
- u16 dsp_slave_port3_r();
- u16 dsp_slave_port4_r();
- u16 dsp_slave_port5_r();
- u16 dsp_slave_port6_r();
- void dsp_slave_portc_w(u16 data);
- u16 dsp_slave_port8_r();
- u16 dsp_slave_portb_r();
- void dsp_slave_portb_w(u16 data);
- u16 namcos22_sci_r(offs_t offset);
- void namcos22_sci_w(offs_t offset, u16 data);
- u16 namcos22_shared_r(offs_t offset);
- void namcos22_shared_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 namcos22_keycus_r(offs_t offset);
- void namcos22_keycus_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 namcos22_portbit_r(offs_t offset);
- void namcos22_portbit_w(offs_t offset, u16 data);
- void namcos22_cpuleds_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u8 mcu_port4_s22_r();
- u8 iomcu_port4_s22_r();
- u16 mcuc74_speedup_r();
- void mcu_speedup_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- inline u8 nthbyte(const u32 *src, int n) { return (src[n / 4] << ((n & 3) * 8)) >> 24; }
- inline u16 nthword(const u32 *src, int n) { return (src[n / 2] << ((n & 1) * 16)) >> 16; }
-
- inline s32 signed18(s32 val) { return (val & 0x00020000) ? (s32)(val | 0xfffc0000) : val & 0x0001ffff; }
- inline s32 signed24(s32 val) { return (val & 0x00800000) ? (s32)(val | 0xff000000) : val & 0x007fffff; }
-
- inline float dspfixed_to_nativefloat(s16 val) { return val / (float)0x7fff; }
- float dspfloat_to_nativefloat(u32 val);
-
- void handle_driving_io();
- void handle_coinage(u16 flags);
- void handle_cybrcomm_io();
- void pdp_handle_commands(u16 offs);
- inline u32 pdp_polygonram_read(offs_t offs) { return m_polygonram[offs & 0x7fff]; }
- inline void pdp_polygonram_write(offs_t offs, u32 data) { m_polygonram[offs & 0x7fff] = data; }
- void point_write(offs_t offs, u32 data);
- s32 pointram_read(offs_t offs);
- inline s32 point_read(offs_t offs) { offs &= 0x00ffffff; return (offs < m_pointrom_size) ? m_pointrom[offs] : pointram_read(offs); }
- void master_enable(bool enable);
- void slave_enable(bool enable);
-
- void syscon_irqlevel(offs_t offset, u8 data);
- void syscon_irqack(offs_t offset, u8 data);
- void syscon_dspcontrol(offs_t offset, u8 data);
- void syscon_mcucontrol(offs_t offset, u8 data);
- u8 syscon_r(offs_t offset);
- void ss22_syscon_w(offs_t offset, u8 data);
- void s22_syscon_w(offs_t offset, u8 data);
-
- void posirq_update();
- emu_timer *m_posirq_timer;
- TIMER_CALLBACK_MEMBER(posirq_callback);
-
- void matrix3d_multiply(float a[4][4], float b[4][4]);
- void matrix3d_identity(float m[4][4]);
- void matrix3d_apply_reflection(float m[4][4]);
- void transform_point(float *vx, float *vy, float *vz, float m[4][4]);
- void transform_normal(float *nx, float *ny, float *nz, float m[4][4]);
- void register_normals(int addr, float m[4][4]);
-
- void blit_single_quad(u32 color, u32 addr, float m[4][4], int polyshift, int flags, int packetformat);
- void blit_quads(int addr, int len, float m[4][4]);
- void blit_polyobject(int code, float m[4][4]);
-
- void slavesim_handle_bb0003(const s32 *src);
- void slavesim_handle_200002(const s32 *src, int code);
- void slavesim_handle_300000(const s32 *src);
- void slavesim_handle_233002(const s32 *src);
- void simulate_slavedsp();
-
- virtual void init_tables();
- void update_mixer();
- void update_palette();
- void draw_direct_poly(const u16 *src);
- void draw_polygons();
- void draw_sprites();
- void draw_sprite_group(const u32 *src, const u32 *attr, int num_sprites, int deltax, int deltay, int y_lowres);
- void namcos22_mix_text_layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void install_c74_speedup();
-
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- virtual void draw_text_layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_namcos22(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(namcos22_interrupt);
- INTERRUPT_GEN_MEMBER(dsp_vblank_irq);
- TIMER_DEVICE_CALLBACK_MEMBER(dsp_serial_pulse);
-
- void iomcu_s22_program(address_map &map);
- void master_dsp_data(address_map &map);
- void master_dsp_io(address_map &map);
- void master_dsp_program(address_map &map);
- void mcu_s22_program(address_map &map);
- void namcos22_am(address_map &map);
- void slave_dsp_data(address_map &map);
- void slave_dsp_io(address_map &map);
- void slave_dsp_program(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_master;
- required_device<cpu_device> m_slave;
- required_device<m37710_cpu_device> m_mcu;
- optional_device<m37710_cpu_device> m_iomcu;
- required_device<eeprom_parallel_28xx_device> m_eeprom;
- optional_device<mb87078_device> m_mb87078;
- required_device<c352_device> m_c352;
- required_shared_ptr<u16> m_shareram;
- required_shared_ptr<u16> m_slave_extram;
- required_shared_ptr<u16> m_master_extram;
- required_shared_ptr<u32> m_paletteram;
- required_shared_ptr<u32> m_cgram;
- required_shared_ptr<u32> m_textram;
- required_shared_ptr<u32> m_polygonram;
- required_shared_ptr<u32> m_mixer;
- optional_region_ptr<u8> m_gamma_proms;
- optional_shared_ptr<u32> m_vics_data;
- optional_shared_ptr<u32> m_vics_control;
- required_device<screen_device> m_screen;
- optional_ioport_array<8> m_adc_ports;
- required_ioport m_inputs;
- optional_ioport_array<2> m_custom;
- optional_ioport_array<2> m_opt;
- output_finder<16> m_mcu_out;
- output_finder<8> m_cpuled_out;
-
- u8 m_syscontrol[0x20];
- bool m_dsp_irq_enabled;
- u16 m_dsp_master_bioz;
- std::unique_ptr<u32[]> m_pointram;
- int m_old_coin_state;
- u32 m_credits1;
- u32 m_credits2;
- u32 m_point_address;
- u32 m_point_data;
- u16 m_SerialDataSlaveToMasterNext;
- u16 m_SerialDataSlaveToMasterCurrent;
- int m_RenderBufSize;
- u16 m_RenderBufData[NAMCOS22_MAX_RENDER_CMD_SEQ];
- u16 m_portbits[2];
- int m_irq_state;
- int m_irq_enabled;
- namcos22_dsp_upload_state m_dsp_upload_state;
- int m_UploadDestIdx;
- u32 m_cpuled_data;
- u16 m_su_82;
- u16 m_keycus_id;
- u16 m_keycus_rng;
- int m_gametype;
- int m_cz_adjust;
- namcos22_renderer *m_poly;
- u16 m_dspram_bank;
- u16 m_dspram16_latch;
- bool m_slave_simulation_active;
- int m_absolute_priority;
- int m_objectshift;
- float m_viewmatrix[4][4];
- u8 m_reflection;
- bool m_cullflip;
- u8 m_LitSurfaceInfo[NAMCOS22_MAX_LIT_SURFACES];
- int m_SurfaceNormalFormat;
- unsigned m_LitSurfaceCount;
- unsigned m_LitSurfaceIndex;
- int m_pointrom_size;
- std::unique_ptr<s32[]> m_pointrom;
- std::unique_ptr<u8[]> m_dirtypal;
- std::unique_ptr<bitmap_ind16> m_mix_bitmap;
- tilemap_t *m_bgtilemap;
- u16 m_tilemapattr[8];
-
- int m_spot_factor;
- int m_text_palbase;
- int m_bg_palbase;
-
- float m_camera_zoom;
- float m_camera_vx;
- float m_camera_vy;
- float m_camera_vu;
- float m_camera_vd;
- float m_camera_vl;
- float m_camera_vr;
- float m_camera_lx; // unit vector for light direction
- float m_camera_ly; // "
- float m_camera_lz; // "
- int m_camera_ambient; // 0.0..1.0
- int m_camera_power; // 0.0..1.0
-
- bool m_skipped_this_frame;
- void render_frame_active();
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- bool m_pdp_render_done;
- bool m_render_refresh;
- uint64_t m_pdp_frame;
- u16 m_pdp_base;
-};
-
-class namcos22s_state : public namcos22_state
-{
-public:
- namcos22s_state(const machine_config &mconfig, device_type type, const char *tag) :
- namcos22_state(mconfig, type, tag),
- m_motor_timer(*this, "motor_timer"),
- m_pc_pedal_interrupt(*this, "pc_p_int"),
- m_ar_tb_interrupt(*this, "ar_tb_int%u", 0)
- { }
-
- void namcos22s(machine_config &config);
- void propcycl(machine_config &config);
- void dirtdash(machine_config &config);
- void airco22b(machine_config &config);
- void cybrcycc(machine_config &config);
- void tokyowar(machine_config &config);
- void alpine(machine_config &config);
- void alpinesa(machine_config &config);
- void adillor(machine_config &config);
- void timecris(machine_config &config);
-
- void init_aquajet();
- void init_adillor();
- void init_cybrcyc();
- void init_timecris();
- void init_tokyowar();
- void init_propcycl();
- void init_propcyclj();
- void init_alpiner2();
- void init_dirtdash();
- void init_airco22();
- void init_alpiner();
- void init_alpinesa();
-
- template <int N> DECLARE_READ_LINE_MEMBER(alpine_motor_r);
-
-protected:
- virtual void machine_start() override;
-
- virtual void init_tables() override;
- virtual void draw_text_layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override;
-
-private:
- void install_130_speedup();
- void install_141_speedup();
-
- void recalc_czram();
- void namcos22s_mix_text_layer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int prival);
- u32 screen_update_namcos22s(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void namcos22s_czattr_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 namcos22s_czattr_r(offs_t offset);
- void namcos22s_czram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 namcos22s_czram_r(offs_t offset);
- u32 namcos22s_vics_control_r(offs_t offset);
- void namcos22s_vics_control_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u16 spotram_r(offs_t offset);
- void spotram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- u32 alpinesa_prot_r();
- void alpinesa_prot_w(u32 data);
- u16 timecris_gun_r(offs_t offset);
- void mb87078_gain_changed(offs_t offset, u8 data);
- void namcos22s_chipselect_w(offs_t offset, u32 data, u32 mem_mask = ~0);
-
- void mcu_port4_w(u8 data);
- u8 mcu_port4_r();
- void mcu_port5_w(u8 data);
- u8 mcu_port5_r();
- void mcu_port6_w(u8 data);
- u8 mcu_port6_r();
- template <int Channel> u16 mcu_adc_r();
- void alpine_mcu_port4_w(u8 data);
- u16 mcu130_speedup_r();
- u16 mcu141_speedup_r();
-
- INTERRUPT_GEN_MEMBER(namcos22s_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq);
- TIMER_DEVICE_CALLBACK_MEMBER(adillor_trackball_update);
- TIMER_DEVICE_CALLBACK_MEMBER(adillor_trackball_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(propcycl_pedal_update);
- TIMER_DEVICE_CALLBACK_MEMBER(propcycl_pedal_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(alpine_steplock_callback);
-
- void alpinesa_am(address_map &map);
- void mcu_program(address_map &map);
- void namcos22s_am(address_map &map);
- void timecris_am(address_map &map);
-
- optional_device<timer_device> m_motor_timer;
- optional_device<timer_device> m_pc_pedal_interrupt;
- optional_device_array<timer_device, 2> m_ar_tb_interrupt;
-
- int m_spotram_enable;
- int m_spotram_address;
- std::unique_ptr<u16[]> m_spotram;
- std::unique_ptr<u16[]> m_banked_czram[4];
- u32 m_cz_was_written[4];
-
- u32 m_alpinesa_protection;
- int m_motor_status;
- u8 m_mcu_iocontrol;
- u8 m_mcu_outdata;
- int m_chipselect;
-};
-
-#endif // MAME_INCLUDES_NAMCOS22_H
diff --git a/src/mame/includes/namcos86.h b/src/mame/includes/namcos86.h
deleted file mode 100644
index 2df55e1d076..00000000000
--- a/src/mame/includes/namcos86.h
+++ /dev/null
@@ -1,123 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_NAMCOS86_H
-#define MAME_INCLUDES_NAMCOS86_H
-
-#pragma once
-
-#include "cpu/m6800/m6801.h"
-#include "machine/watchdog.h"
-#include "sound/n63701x.h"
-#include "sound/namco.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class namcos86_state : public driver_device
-{
-public:
- namcos86_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_cpu1(*this, "cpu1")
- , m_cpu2(*this, "cpu2")
- , m_mcu(*this, "mcu")
- , m_watchdog(*this, "watchdog")
- , m_cus30(*this, "namco")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_63701x(*this, "namco2")
- , m_rthunder_videoram1(*this, "videoram1")
- , m_rthunder_videoram2(*this, "videoram2")
- , m_rthunder_spriteram(*this, "spriteram")
- , m_user1_ptr(*this, "user1")
- , m_leds(*this, "led%u", 0U)
- { }
-
- void genpeitd(machine_config &config);
- void wndrmomo(machine_config &config);
- void roishtar(machine_config &config);
- void rthunder(machine_config &config);
- void hopmappy(machine_config &config);
-
- void init_namco86();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- void bankswitch1_w(uint8_t data);
- void bankswitch1_ext_w(uint8_t data);
- void bankswitch2_w(uint8_t data);
- uint8_t dsw0_r();
- uint8_t dsw1_r();
- void int_ack1_w(uint8_t data);
- void int_ack2_w(uint8_t data);
- void watchdog1_w(uint8_t data);
- void watchdog2_w(uint8_t data);
- void coin_w(uint8_t data);
- void led_w(uint8_t data);
- void cus115_w(offs_t offset, uint8_t data);
- void videoram1_w(offs_t offset, uint8_t data);
- void videoram2_w(offs_t offset, uint8_t data);
- void tilebank_select_w(offs_t offset, uint8_t data);
- void scroll0_w(offs_t offset, uint8_t data);
- void scroll1_w(offs_t offset, uint8_t data);
- void scroll2_w(offs_t offset, uint8_t data);
- void scroll3_w(offs_t offset, uint8_t data);
- void backcolor_w(uint8_t data);
- void spriteram_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info0);
- TILE_GET_INFO_MEMBER(get_tile_info1);
- TILE_GET_INFO_MEMBER(get_tile_info2);
- TILE_GET_INFO_MEMBER(get_tile_info3);
-
- void namcos86_palette(palette_device &palette);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void scroll_w(offs_t offset, int data, int layer);
-
- void common_mcu_map(address_map &map);
- void cpu1_map(address_map &map);
- void genpeitd_cpu2_map(address_map &map);
- void genpeitd_mcu_map(address_map &map);
- void hopmappy_cpu2_map(address_map &map);
- void hopmappy_mcu_map(address_map &map);
- void roishtar_cpu2_map(address_map &map);
- void roishtar_mcu_map(address_map &map);
- void rthunder_cpu2_map(address_map &map);
- void rthunder_mcu_map(address_map &map);
- void wndrmomo_cpu2_map(address_map &map);
- void wndrmomo_mcu_map(address_map &map);
-
- required_device<cpu_device> m_cpu1;
- required_device<cpu_device> m_cpu2;
- required_device<hd63701v0_cpu_device> m_mcu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<namco_cus30_device> m_cus30;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<namco_63701x_device> m_63701x;
- required_shared_ptr<uint8_t> m_rthunder_videoram1;
- required_shared_ptr<uint8_t> m_rthunder_videoram2;
- required_shared_ptr<uint8_t> m_rthunder_spriteram;
- optional_region_ptr<uint8_t> m_user1_ptr;
- output_finder<2> m_leds;
-
- uint8_t *m_spriteram;
- int m_wdog;
- int m_tilebank;
- int m_xscroll[4];
- int m_yscroll[4];
- tilemap_t *m_bg_tilemap[4];
- int m_backcolor;
- const uint8_t *m_tile_address_prom;
- int m_copy_sprites;
-
- inline void get_tile_info(tile_data &tileinfo,int tile_index,int layer,uint8_t *vram);
- void set_scroll(int layer);
-};
-
-#endif // MAME_INCLUDES_NAMCOS86_H
diff --git a/src/mame/includes/naomi.h b/src/mame/includes/naomi.h
deleted file mode 100644
index 72cb7c56d43..00000000000
--- a/src/mame/includes/naomi.h
+++ /dev/null
@@ -1,168 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:Angelo Salese, Olivier Galibert, David Haywood, Samuele Zannoli, R. Belmont, ElSemi
-/*
-
-naomi.h -> NAOMI includes
-
-*/
-#include "machine/eepromser.h"
-#include "machine/intelfsh.h"
-#include "cpu/arm7/arm7.h"
-#include "cpu/z80/z80.h"
-#include "machine/x76f100.h"
-#include "machine/maple-dc.h"
-#include "machine/dc-ctrl.h"
-#include "machine/mie.h"
-#include "machine/naomirom.h"
-#include "machine/naomigd.h"
-#include "machine/naomim1.h"
-#include "machine/naomim2.h"
-#include "machine/naomim4.h"
-#include "machine/awboard.h"
-#include "machine/nvram.h"
-#include "cpu/sh/sh4.h"
-#include "cpu/arm7/arm7core.h"
-#include "sound/aica.h"
-#include "machine/aicartc.h"
-#include "machine/jvsdev.h"
-#include "machine/jvs13551.h"
-#include "machine/m3comm.h"
-#include "machine/gunsense.h"
-#include "dc.h"
-
-enum {
- JVSBD_DEFAULT = 0,
- JVSBD_ADSTICK,
- JVSBD_LIGHTGUN,
- JVSBD_MAHJONG,
- JVSBD_KEYBOARD
-};
-
-class naomi_state : public dc_state
-{
- public:
- naomi_state(const machine_config &mconfig, device_type type, const char *tag)
- : dc_state(mconfig, type, tag),
- m_eeprom(*this, "main_eeprom"),
- m_rombase(*this, "maincpu"),
- m_mp(*this, "KEY%u", 1U)
- { }
-
- void naomi_base(machine_config &config);
- void naomim2(machine_config &config);
- void naomim2_kb(machine_config &config);
- void naomim2_gun(machine_config &config);
- void naomi(machine_config &config);
- void naomim1(machine_config &config);
- void naomigd(machine_config &config);
- void naomigd_kb(machine_config &config);
- void naomim4(machine_config &config);
-
- void init_naomigd();
- void init_ggxx();
- void init_ggxxrl();
- void init_ggxxsla();
- void init_naomi();
- void init_naomigd_mp();
- void init_sfz3ugd();
- void init_hotd2();
- void init_naomi_mp();
-
- DECLARE_CUSTOM_INPUT_MEMBER(naomi_mp_r);
- DECLARE_CUSTOM_INPUT_MEMBER(suchie3_mp_r);
- DECLARE_CUSTOM_INPUT_MEMBER(naomi_kb_r);
- DECLARE_INPUT_CHANGED_MEMBER(naomi_mp_w);
-
- uint64_t naomi2_biose_idle_skip_r();
-
-protected:
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_region_ptr<uint64_t> m_rombase;
- optional_ioport_array<5> m_mp;
-
- DECLARE_MACHINE_RESET(naomi);
- DECLARE_WRITE_LINE_MEMBER(external_reset);
-
- uint16_t naomi_g2bus_r(offs_t offset);
- uint64_t eeprom_93c46a_r();
- void eeprom_93c46a_w(uint64_t data);
-
- uint8_t m_mp_mux;
-
- uint8_t asciihex_to_dec(uint8_t in);
- void create_pic_from_retdat();
-
- uint64_t naomi_biose_idle_skip_r();
- uint64_t naomi_biosh_idle_skip_r();
- uint64_t naomigd_ggxxsla_idle_skip_r();
- uint64_t naomigd_ggxx_idle_skip_r();
- uint64_t naomigd_ggxxrl_idle_skip_r();
- uint64_t naomigd_sfz3ugd_idle_skip_r();
- uint64_t hotd2_idle_skip_r();
-
- void naomi_map(address_map &map);
- void naomi_port(address_map &map);
-
- void set_drc_options();
-};
-
-class naomi2_state : public naomi_state
-{
-public:
- naomi2_state(const machine_config &mconfig, device_type type, const char *tag)
- : naomi_state(mconfig, type, tag),
- m_pvr2_texture_ram(*this, "textureram2"),
- m_pvr2_framebuffer_ram(*this, "frameram2"),
- m_elan_ram(*this, "elan_ram"),
- m_powervr2_slave(*this, "powervr2_slave") { }
-
- void naomi2_base(machine_config &config);
- void naomi2m2(machine_config &config);
- void naomi2gd(machine_config &config);
- void naomi2m1(machine_config &config);
-
- void init_naomi2();
-
-private:
- required_shared_ptr<uint64_t> m_pvr2_texture_ram;
- required_shared_ptr<uint64_t> m_pvr2_framebuffer_ram;
- required_shared_ptr<uint64_t> m_elan_ram;
- required_device<powervr2_device> m_powervr2_slave;
-
- void both_pvr2_ta_w(address_space &space, offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void naomi2_map(address_map &map);
-};
-
-class atomiswave_state : public dc_state
-{
-public:
- atomiswave_state(const machine_config &mconfig, device_type type, const char *tag)
- : dc_state(mconfig, type, tag),
- m_awflash(*this, "awflash")
- { }
-
- void aw_base(machine_config &config);
- void aw1c(machine_config &config);
- void aw2c(machine_config &config);
-
- void init_atomiswave();
- void init_xtrmhnt2();
-
-private:
- required_device<macronix_29l001mc_device> m_awflash;
-
- uint64_t aw_flash_r(offs_t offset);
- void aw_flash_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t aw_modem_r(offs_t offset, uint64_t mem_mask = ~0);
- void aw_modem_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
-
- uint64_t xtrmhnt2_hack_r();
-
- void aw_map(address_map &map);
- void aw_port(address_map &map);
-
- uint8_t aw_ctrl_type;
- inline int decode_reg32_64(uint32_t offset, uint64_t mem_mask, uint64_t *shift);
-};
-
-INPUT_PORTS_EXTERN( naomi_debug );
diff --git a/src/mame/includes/naughtyb.h b/src/mame/includes/naughtyb.h
deleted file mode 100644
index cd97b8994c6..00000000000
--- a/src/mame/includes/naughtyb.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver,Sal and John Bugliarisi,Paul Priest
-#ifndef MAME_INCLUDES_NAUGHTYB_H
-#define MAME_INCLUDES_NAUGHTYB_H
-
-#pragma once
-
-#include "audio/pleiads.h"
-#include "emupal.h"
-#include "screen.h"
-
-class naughtyb_state : public driver_device
-{
-public:
- naughtyb_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_naughtyb_custom(*this, "naughtyb_custom"),
- m_popflame_custom(*this, "popflame_custom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_videoram2(*this, "videoram2"),
- m_scrollreg(*this, "scrollreg")
- { }
-
- void naughtyb_base(machine_config &config);
- void popflame(machine_config &config);
- void naughtyb(machine_config &config);
-
- void init_trvmstr();
- void init_popflame();
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<naughtyb_sound_device> m_naughtyb_custom;
- optional_device<popflame_sound_device> m_popflame_custom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_scrollreg;
-
- uint8_t m_popflame_prot_seed;
- int m_r_index;
- int m_prot_count;
- int m_question_offset;
- int m_cocktail;
- uint8_t m_palreg;
- int m_bankreg;
- bitmap_ind16 m_tmpbitmap;
-
- uint8_t in0_port_r();
- uint8_t dsw0_port_r();
- uint8_t popflame_protection_r();
- void popflame_protection_w(uint8_t data);
- uint8_t trvmstr_questions_r();
- void trvmstr_questions_w(offs_t offset, uint8_t data);
- void naughtyb_videoreg_w(uint8_t data);
- void popflame_videoreg_w(uint8_t data);
-
- void naughtyb_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void naughtyb_map(address_map &map);
- void popflame_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NAUGHTYB_H
diff --git a/src/mame/includes/nbmj8688.h b/src/mame/includes/nbmj8688.h
deleted file mode 100644
index 0cccef036be..00000000000
--- a/src/mame/includes/nbmj8688.h
+++ /dev/null
@@ -1,164 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-#ifndef MAME_INCLUDES_NBMJ8688_H
-#define MAME_INCLUDES_NBMJ8688_H
-
-#pragma once
-
-#include "video/hd61830.h"
-#include "machine/nb1413m3.h"
-#include "emupal.h"
-
-class nbmj8688_state : public driver_device
-{
-public:
- enum
- {
- TIMER_BLITTER
- };
-
- nbmj8688_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_nb1413m3(*this, "nb1413m3"),
- m_lcdc0(*this, "lcdc0"),
- m_lcdc1(*this, "lcdc1")
- { }
-
- void NBMJDRV_4096(machine_config &config);
- void NBMJDRV_256(machine_config &config);
- void NBMJDRV_65536(machine_config &config);
- void mbmj_h12bit(machine_config &config);
- void mbmj_p12bit(machine_config &config);
- void mbmj_p16bit(machine_config &config);
- void mbmj_p16bit_LCD(machine_config &config);
- void swinggal(machine_config &config);
- void korinai(machine_config &config);
- void livegal(machine_config &config);
- void apparel(machine_config &config);
- void kyuhito(machine_config &config);
- void bijokkoy(machine_config &config);
- void barline(machine_config &config);
- void bijokkog(machine_config &config);
- void korinaim(machine_config &config);
- void ryuuha(machine_config &config);
- void seiham(machine_config &config);
- void orangeci(machine_config &config);
- void citylove(machine_config &config);
- void otonano(machine_config &config);
- void ojousanm(machine_config &config);
- void mcitylov(machine_config &config);
- void iemotom(machine_config &config);
- void crystalg(machine_config &config);
- void crystal2(machine_config &config);
- void secolove(machine_config &config);
- void orangec(machine_config &config);
- void mjsikaku(machine_config &config);
- void housemn2(machine_config &config);
- void kanatuen(machine_config &config);
- void nightlov(machine_config &config);
- void kaguya2(machine_config &config);
- void mjgaiden(machine_config &config);
- void mjcamera(machine_config &config);
- void mmsikaku(machine_config &config);
- void housemnq(machine_config &config);
- void idhimitu(machine_config &config);
- void iemoto(machine_config &config);
- void kaguya(machine_config &config);
- void vipclub(machine_config &config);
- void ojousan(machine_config &config);
- void seiha(machine_config &config);
- void bikkuri(machine_config &config);
-
- void init_kyuhito();
- void init_idhimitu();
- void init_kaguya2();
- void init_mjcamera();
- void init_kanatuen();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<nb1413m3_device> m_nb1413m3;
- optional_device<hd61830_device> m_lcdc0;
- optional_device<hd61830_device> m_lcdc1;
-
- // defined in video_start
- int m_gfxmode;
-
- int m_scrolly;
- int m_blitter_destx;
- int m_blitter_desty;
- int m_blitter_sizex;
- int m_blitter_sizey;
- int m_blitter_direction_x;
- int m_blitter_direction_y;
- int m_blitter_src_addr;
- int m_gfxrom;
- int m_dispflag;
- int m_gfxflag2;
- int m_gfxflag3;
- int m_flipscreen;
- int m_screen_refresh;
- std::unique_ptr<bitmap_ind16> m_tmpbitmap;
- std::unique_ptr<uint16_t[]> m_videoram;
- std::unique_ptr<uint8_t[]> m_clut;
- int m_flipscreen_old;
- emu_timer *m_blitter_timer;
-
- // common
- uint8_t ff_r();
- void clut_w(offs_t offset, uint8_t data);
- void blitter_w(offs_t offset, uint8_t data);
- void scrolly_w(uint8_t data);
-
- void mjsikaku_gfxflag2_w(uint8_t data);
- void mjsikaku_gfxflag3_w(uint8_t data);
- void mjsikaku_romsel_w(uint8_t data);
- void secolove_romsel_w(uint8_t data);
- void crystalg_romsel_w(uint8_t data);
- void seiha_romsel_w(uint8_t data);
- void HD61830B_both_instr_w(uint8_t data);
- void HD61830B_both_data_w(uint8_t data);
- void barline_output_w(uint8_t data);
-
- DECLARE_VIDEO_START(mbmj8688_pure_12bit);
- void mbmj8688_12bit(palette_device &palette) const;
- DECLARE_VIDEO_START(mbmj8688_pure_16bit_LCD);
- void mbmj8688_16bit(palette_device &palette) const;
- void mbmj8688_lcd(palette_device &palette) const;
- DECLARE_VIDEO_START(mbmj8688_8bit);
- void mbmj8688_8bit(palette_device &palette) const;
- DECLARE_VIDEO_START(mbmj8688_hybrid_16bit);
- DECLARE_VIDEO_START(mbmj8688_hybrid_12bit);
- DECLARE_VIDEO_START(mbmj8688_pure_16bit);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void vramflip();
- void update_pixel(int x, int y);
- void writeram_low(int x, int y, int color);
- void writeram_high(int x, int y, int color);
- void gfxdraw(int gfxtype);
- void common_video_start();
- void postload();
-
- void barline_io_map(address_map &map);
- void bikkuri_map(address_map &map);
- void bikkuri_io_map(address_map &map);
- void crystalg_io_map(address_map &map);
- void iemoto_io_map(address_map &map);
- void kaguya_io_map(address_map &map);
- void mjgaiden_io_map(address_map &map);
- void mjsikaku_io_map(address_map &map);
- void mjsikaku_map(address_map &map);
- void mmsikaku_io_map(address_map &map);
- void ojousan_map(address_map &map);
- void otonano_io_map(address_map &map);
- void p16bit_LCD_io_map(address_map &map);
- void secolove_io_map(address_map &map);
- void secolove_map(address_map &map);
- void seiha_io_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_NBMJ8688_H
diff --git a/src/mame/includes/nbmj8891.h b/src/mame/includes/nbmj8891.h
deleted file mode 100644
index b89fb7891ce..00000000000
--- a/src/mame/includes/nbmj8891.h
+++ /dev/null
@@ -1,159 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-
-#include "machine/nb1413m3.h"
-#include "emupal.h"
-#include "screen.h"
-
-class nbmj8891_state : public driver_device
-{
-public:
- enum
- {
- TIMER_BLITTER
- };
-
- nbmj8891_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_nb1413m3(*this, "nb1413m3")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_clut_ptr(*this, "protection")
- {
- }
-
- void mjfocusm(machine_config &config);
- void mjfocus(machine_config &config);
- void bananadr(machine_config &config);
- void scandal(machine_config &config);
- void hanamomo(machine_config &config);
- void telmahjn(machine_config &config);
- void pairsten(machine_config &config);
- void club90s(machine_config &config);
- void mgion(machine_config &config);
- void chinmoku(machine_config &config);
- void msjiken(machine_config &config);
- void hnageman(machine_config &config);
- void mjcamerb(machine_config &config);
- void mjnanpas(machine_config &config);
- void mmcamera(machine_config &config);
- void pairsnb(machine_config &config);
- void taiwanmb(machine_config &config);
- void hanaoji(machine_config &config);
- void lovehous(machine_config &config);
- void hnxmasev(machine_config &config);
- void mmaiko(machine_config &config);
- void maiko(machine_config &config);
- void mladyhtr(machine_config &config);
- void omotesnd(machine_config &config);
- void abunai(machine_config &config);
- void gionbana(machine_config &config);
- void mgmen89(machine_config &config);
- void scandalm(machine_config &config);
-
- void init_pairsten();
- void init_telmahjn();
- void init_gionbana();
- void init_omotesnd();
- void init_scandal();
- void init_mgmen89();
- void init_mjfocusm();
- void init_mjfocus();
- void init_pairsnb();
- void init_mjnanpas();
-
- DECLARE_READ_LINE_MEMBER(nb1413m3_outcoin_flag_r);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<nb1413m3_device> m_nb1413m3;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_region_ptr<uint8_t> m_clut_ptr;
-
- int m_scrolly;
- int m_blitter_destx;
- int m_blitter_desty;
- int m_blitter_sizex;
- int m_blitter_sizey;
- int m_blitter_src_addr;
- int m_blitter_direction_x;
- int m_blitter_direction_y;
- int m_vram;
- int m_gfxrom;
- int m_dispflag;
- int m_flipscreen;
- int m_clutsel;
- int m_screen_refresh;
- int m_gfxdraw_mode;
- bitmap_ind16 m_tmpbitmap0;
- bitmap_ind16 m_tmpbitmap1;
- std::unique_ptr<uint8_t[]> m_videoram0;
- std::unique_ptr<uint8_t[]> m_videoram1;
- std::unique_ptr<uint8_t[]> m_palette_ptr;
- std::unique_ptr<uint8_t[]> m_clut;
- int m_param_old[0x10];
- int m_param_cnt;
- int m_flipscreen_old;
- emu_timer *m_blitter_timer;
-
- uint8_t palette_type1_r(offs_t offset);
- void palette_type1_w(offs_t offset, uint8_t data);
- uint8_t palette_type2_r(offs_t offset);
- void palette_type2_w(offs_t offset, uint8_t data);
- uint8_t palette_type3_r(offs_t offset);
- void palette_type3_w(offs_t offset, uint8_t data);
- void clutsel_w(uint8_t data);
- uint8_t clut_r(offs_t offset);
- void clut_w(offs_t offset, uint8_t data);
- void blitter_w(offs_t offset, uint8_t data);
- void scrolly_w(uint8_t data);
- void vramsel_w(uint8_t data);
- void romsel_w(uint8_t data);
-
- uint8_t taiwanmb_unk_r();
- void taiwanmb_blitter_w(offs_t offset, uint8_t data);
- void taiwanmb_gfxdraw_w(uint8_t data);
- void taiwanmb_gfxflag_w(uint8_t data);
- void taiwanmb_mcu_w(uint8_t data);
-
- virtual void video_start() override;
- DECLARE_VIDEO_START(_1layer);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void vramflip(int vram);
- void update_pixel0(int x, int y);
- void update_pixel1(int x, int y);
- void gfxdraw();
-
- void common_save_state();
- void postload();
-
- void bananadr_io_map(address_map &map);
- void club90s_map(address_map &map);
- void gionbana_io_map(address_map &map);
- void gionbana_map(address_map &map);
- void hanamomo_io_map(address_map &map);
- void hanamomo_map(address_map &map);
- void hanaoji_map(address_map &map);
- void hnageman_map(address_map &map);
- void hnxmasev_map(address_map &map);
- void lovehous_io_map(address_map &map);
- void lovehous_map(address_map &map);
- void maiko_io_map(address_map &map);
- void maiko_map(address_map &map);
- void mgion_io_map(address_map &map);
- void mgion_map(address_map &map);
- void mmaiko_map(address_map &map);
- void msjiken_io_map(address_map &map);
- void omotesnd_io_map(address_map &map);
- void omotesnd_map(address_map &map);
- void scandal_io_map(address_map &map);
- void scandalm_io_map(address_map &map);
- void scandalm_map(address_map &map);
- void taiwanmb_io_map(address_map &map);
- void taiwanmb_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
diff --git a/src/mame/includes/nbmj8900.h b/src/mame/includes/nbmj8900.h
deleted file mode 100644
index 17807ea7377..00000000000
--- a/src/mame/includes/nbmj8900.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-#include "machine/nb1413m3.h"
-#include "emupal.h"
-#include "screen.h"
-
-class nbmj8900_state : public driver_device
-{
-public:
-
-
- nbmj8900_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag) ,
- m_maincpu(*this, "maincpu"),
- m_nb1413m3(*this, "nb1413m3"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette") { }
-
- void ohpaipee(machine_config &config);
- void togenkyo(machine_config &config);
-
- void init_togenkyo();
- void init_ohpaipee();
-
-private:
- enum
- {
- TIMER_BLITTER
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<nb1413m3_device> m_nb1413m3;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- int m_scrolly;
- int m_blitter_destx;
- int m_blitter_desty;
- int m_blitter_sizex;
- int m_blitter_sizey;
- int m_blitter_src_addr;
- int m_blitter_direction_x;
- int m_blitter_direction_y;
- int m_vram;
- int m_gfxrom;
- int m_dispflag;
- int m_flipscreen;
- int m_clutsel;
- int m_screen_refresh;
- int m_gfxdraw_mode;
- int m_screen_height;
- int m_screen_width;
- bitmap_ind16 m_tmpbitmap0;
- bitmap_ind16 m_tmpbitmap1;
- std::unique_ptr<uint8_t[]> m_videoram0;
- std::unique_ptr<uint8_t[]> m_videoram1;
- std::unique_ptr<uint8_t[]> m_palette_ptr;
- std::unique_ptr<uint8_t[]> m_clut;
- int m_flipscreen_old;
- emu_timer *m_blitter_timer;
-
- uint8_t palette_type1_r(offs_t offset);
- void palette_type1_w(offs_t offset, uint8_t data);
- void clutsel_w(uint8_t data);
- uint8_t clut_r(offs_t offset);
- void clut_w(offs_t offset, uint8_t data);
- void blitter_w(offs_t offset, uint8_t data);
- void scrolly_w(uint8_t data);
- void vramsel_w(uint8_t data);
- void romsel_w(uint8_t data);
-
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void vramflip(int vram);
- void update_pixel0(int x, int y);
- void update_pixel1(int x, int y);
- void gfxdraw();
- void postload();
-
- void ohpaipee_io_map(address_map &map);
- void ohpaipee_map(address_map &map);
- void togenkyo_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
diff --git a/src/mame/includes/nbmj8991.h b/src/mame/includes/nbmj8991.h
deleted file mode 100644
index e9989a7590c..00000000000
--- a/src/mame/includes/nbmj8991.h
+++ /dev/null
@@ -1,120 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-
-#include "machine/nb1413m3.h"
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "screen.h"
-
-class nbmj8991_state : public driver_device
-{
-public:
- nbmj8991_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag) ,
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_nb1413m3(*this, "nb1413m3"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_generic_paletteram_8(*this, "paletteram") { }
-
- void nbmjdrv1(machine_config &config);
- void nbmjdrv2(machine_config &config);
- void nbmjdrv3(machine_config &config);
- void tokyogal(machine_config &config);
- void finalbny(machine_config &config);
- void mjlstory(machine_config &config);
- void galkaika(machine_config &config);
- void pstadium(machine_config &config);
- void galkoku(machine_config &config);
- void av2mj2rg(machine_config &config);
- void av2mj1bb(machine_config &config);
- void vanilla(machine_config &config);
- void mcontest(machine_config &config);
- void triplew1(machine_config &config);
- void ntopstar(machine_config &config);
- void tokimbsj(machine_config &config);
- void triplew2(machine_config &config);
- void uchuuai(machine_config &config);
- void hyouban(machine_config &config);
- void qmhayaku(machine_config &config);
- void mjgottub(machine_config &config);
-
- void init_galkaika();
- void init_tokimbsj();
- void init_tokyogal();
- void init_finalbny();
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<nb1413m3_device> m_nb1413m3;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_generic_paletteram_8;
-
- enum
- {
- TIMER_BLITTER
- };
-
- int m_scrollx;
- int m_scrolly;
- int m_blitter_destx;
- int m_blitter_desty;
- int m_blitter_sizex;
- int m_blitter_sizey;
- int m_blitter_src_addr;
- int m_blitter_direction_x;
- int m_blitter_direction_y;
- int m_gfxrom;
- int m_dispflag;
- int m_flipscreen;
- int m_clutsel;
- int m_screen_refresh;
- bitmap_ind16 m_tmpbitmap;
- std::unique_ptr<uint8_t[]> m_videoram;
- std::unique_ptr<uint8_t[]> m_clut;
- int m_flipscreen_old;
- emu_timer *m_blitter_timer;
-
- void soundbank_w(uint8_t data);
- void palette_type1_w(offs_t offset, uint8_t data);
- void palette_type2_w(offs_t offset, uint8_t data);
- void palette_type3_w(offs_t offset, uint8_t data);
- void blitter_w(offs_t offset, uint8_t data);
- uint8_t clut_r(offs_t offset);
- void clut_w(offs_t offset, uint8_t data);
-
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint32_t screen_update_type1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_type2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void vramflip();
- void update_pixel(int x, int y);
- void gfxdraw();
-
- void postload();
-
- void av2mj1bb_io_map(address_map &map);
- void av2mj1bb_map(address_map &map);
- void av2mj2rg_map(address_map &map);
- void galkaika_map(address_map &map);
- void galkoku_io_map(address_map &map);
- void galkoku_map(address_map &map);
- void hyouban_io_map(address_map &map);
- void mjlstory_map(address_map &map);
- void nbmj8991_sound_io_map(address_map &map);
- void nbmj8991_sound_map(address_map &map);
- void pstadium_io_map(address_map &map);
- void pstadium_map(address_map &map);
- void tokyogal_map(address_map &map);
- void triplew1_map(address_map &map);
- void triplew2_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
diff --git a/src/mame/includes/nbmj9195.h b/src/mame/includes/nbmj9195.h
deleted file mode 100644
index 6e52c5a5fb5..00000000000
--- a/src/mame/includes/nbmj9195.h
+++ /dev/null
@@ -1,198 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-/******************************************************************************
-
- nbmj9195 - Nichibutsu Mahjong games for years 1991-1995
-
-******************************************************************************/
-#ifndef MAME_INCLUDES_NBMJ9195_H
-#define MAME_INCLUDES_NBMJ9195_H
-
-#pragma once
-
-#include "cpu/z80/tmpz84c011.h"
-#include "machine/nb1413m3.h" // needed for mahjong input controller
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define VRAM_MAX 2
-
-#define SCANLINE_MIN 0
-#define SCANLINE_MAX 512
-
-
-class nbmj9195_state : public driver_device
-{
-public:
- enum
- {
- TIMER_BLITTER
- };
-
- nbmj9195_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_palette_ptr(*this, "paletteram"),
- m_blit_region(*this, "blitter")
- { }
-
- void NBMJDRV1_base(machine_config &config);
- void NBMJDRV1(machine_config &config);
- void NBMJDRV2(machine_config &config);
- void NBMJDRV3(machine_config &config);
- void patimono(machine_config &config);
- void mjuraden(machine_config &config);
- void psailor1(machine_config &config);
- void ngpgal(machine_config &config);
- void mjgottsu(machine_config &config);
- void mkeibaou(machine_config &config);
- void gal10ren(machine_config &config);
- void mscoutm(machine_config &config);
- void imekura(machine_config &config);
- void mkoiuraa(machine_config &config);
- void mjkoiura(machine_config &config);
- void janbari(machine_config &config);
- void mjlaman(machine_config &config);
- void yosimotm(machine_config &config);
- void cmehyou(machine_config &config);
- void sailorwr(machine_config &config);
- void koinomp(machine_config &config);
- void sailorws(machine_config &config);
- void mjegolf(machine_config &config);
- void renaiclb(machine_config &config);
- void psailor2(machine_config &config);
- void yosimoto(machine_config &config);
- void pachiten(machine_config &config);
- void jituroku(machine_config &config);
- void mmehyou(machine_config &config);
- void bakuhatu(machine_config &config);
- void ultramhm(machine_config &config);
- void otatidai(machine_config &config);
-
- void init_nbmj9195();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- required_device<tmpz84c011_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- optional_shared_ptr<uint8_t> m_palette_ptr; //shabdama doesn't use it at least for now
-
- required_region_ptr<uint8_t> m_blit_region;
-
- int m_inputport;
- int m_dipswbitsel;
- int m_outcoin_flag;
- int m_mscoutm_inputport;
- int m_scrollx[VRAM_MAX];
- int m_scrolly[VRAM_MAX];
- int m_scrollx_raster[VRAM_MAX][SCANLINE_MAX];
- int m_scanline[VRAM_MAX];
- int m_blitter_destx[VRAM_MAX];
- int m_blitter_desty[VRAM_MAX];
- int m_blitter_sizex[VRAM_MAX];
- int m_blitter_sizey[VRAM_MAX];
- int m_blitter_src_addr[VRAM_MAX];
- int m_blitter_direction_x[VRAM_MAX];
- int m_blitter_direction_y[VRAM_MAX];
- int m_dispflag[VRAM_MAX];
- int m_flipscreen[VRAM_MAX];
- int m_clutmode[VRAM_MAX];
- int m_transparency[VRAM_MAX];
- int m_clutsel;
- int m_screen_refresh;
- int m_gfxflag2;
- int m_gfxdraw_mode;
- int m_nb19010_busyctr;
- int m_nb19010_busyflag;
- bitmap_ind16 m_tmpbitmap[VRAM_MAX];
- std::unique_ptr<uint16_t[]> m_videoram[VRAM_MAX];
- std::unique_ptr<uint16_t[]> m_videoworkram[VRAM_MAX];
- std::unique_ptr<uint8_t[]> m_clut[VRAM_MAX];
- int m_flipscreen_old[VRAM_MAX];
- emu_timer *m_blitter_timer;
-
- void soundbank_w(uint8_t data);
- void inputportsel_w(uint8_t data);
- uint8_t mscoutm_dipsw_0_r();
- uint8_t mscoutm_dipsw_1_r();
- uint8_t mscoutm_cpu_portb_r();
- uint8_t mscoutm_cpu_portc_r();
- uint8_t others_cpu_porta_r();
- uint8_t others_cpu_portb_r();
- uint8_t others_cpu_portc_r();
- void soundcpu_porte_w(uint8_t data);
- void palette_w(offs_t offset, uint8_t data);
- void nb22090_palette_w(offs_t offset, uint8_t data);
- void blitter_0_w(offs_t offset, uint8_t data);
- void blitter_1_w(offs_t offset, uint8_t data);
- uint8_t blitter_0_r(offs_t offset);
- uint8_t blitter_1_r(offs_t offset);
- void clut_0_w(offs_t offset, uint8_t data);
- void clut_1_w(offs_t offset, uint8_t data);
- void clutsel_w(uint8_t data);
- void gfxflag2_w(uint8_t data);
- void outcoin_flag_w(uint8_t data);
- void dipswbitsel_w(uint8_t data);
- void mscoutm_inputportsel_w(uint8_t data);
-
- DECLARE_VIDEO_START(_1layer);
- DECLARE_VIDEO_START(nb22090);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- int blitter_r(int offset, int vram);
- void blitter_w(int offset, int data, int vram);
- void clut_w(int offset, int data, int vram);
- void vramflip(int vram);
- void update_pixel(int vram, int x, int y);
- void gfxdraw(int vram);
- int dipsw_r();
- void postload();
-
- void cmehyou_io_map(address_map &map);
- void gal10ren_io_map(address_map &map);
- void imekura_io_map(address_map &map);
- void jituroku_io_map(address_map &map);
- void koinomp_io_map(address_map &map);
- void koinomp_map(address_map &map);
- void mjegolf_io_map(address_map &map);
- void mjegolf_map(address_map &map);
- void mjgottsu_io_map(address_map &map);
- void mjkoiura_io_map(address_map &map);
- void mjlaman_io_map(address_map &map);
- void mjuraden_io_map(address_map &map);
- void mjuraden_map(address_map &map);
- void mkeibaou_io_map(address_map &map);
- void mkoiuraa_io_map(address_map &map);
- void mmehyou_io_map(address_map &map);
- void mscoutm_io_map(address_map &map);
- void mscoutm_map(address_map &map);
- void ngpgal_io_map(address_map &map);
- void ngpgal_map(address_map &map);
- void otatidai_io_map(address_map &map);
- void pachiten_io_map(address_map &map);
- void patimono_io_map(address_map &map);
- void psailor1_io_map(address_map &map);
- void psailor2_io_map(address_map &map);
- void renaiclb_io_map(address_map &map);
- void sailorwr_io_map(address_map &map);
- void sailorws_io_map(address_map &map);
- void sailorws_map(address_map &map);
- void sailorws_sound_io_map(address_map &map);
- void sailorws_sound_map(address_map &map);
- void yosimotm_io_map(address_map &map);
- void yosimoto_io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NBMJ9195_H
diff --git a/src/mame/includes/nc.h b/src/mame/includes/nc.h
deleted file mode 100644
index 07da2424bea..00000000000
--- a/src/mame/includes/nc.h
+++ /dev/null
@@ -1,209 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Wilbert Pol, Kevin Thacker
-/*****************************************************************************
- *
- * includes/nc.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_NC_H
-#define MAME_INCLUDES_NC_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-#include "machine/upd765.h" // for NC200 disk drive interface
-#include "machine/i8251.h"
-#include "machine/clock.h"
-#include "machine/ram.h"
-#include "machine/nvram.h"
-#include "machine/timer.h"
-#include "sound/beep.h"
-#include "emupal.h"
-
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#define NC_NUM_COLOURS 4
-
-#define NC_SCREEN_WIDTH 480
-#define NC_SCREEN_HEIGHT 64
-
-#define NC200_SCREEN_WIDTH 480
-#define NC200_SCREEN_HEIGHT 128
-
-#define NC200_NUM_COLOURS 4
-
-class nc_state : public driver_device
-{
-public:
- enum nc_type
- {
- NC_TYPE_1xx, // nc100/nc150
- NC_TYPE_200 // nc200
- };
-
- nc_state(const machine_config &mconfig, device_type type, const char *tag, nc_type variant) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ram(*this, RAM_TAG),
- m_beeper1(*this, "beep.1"),
- m_beeper2(*this, "beep.2"),
- m_centronics(*this, "centronics"),
- m_card(*this, "cardslot"),
- m_uart(*this, "uart"),
- m_uart_clock(*this, "uart_clock"),
- m_nvram(*this, "nvram"),
- m_fdc(*this, "upd765"),
- m_bankhandler_r(*this, "bank%u", 1U),
- m_bankhandler_w(*this, "bank%u", 5U),
- m_nc_type(variant)
- {
- }
-
- void nc_base(machine_config &config);
-
- void init_nc();
-
-protected:
- uint8_t nc_memory_management_r(offs_t offset);
- void nc_memory_management_w(offs_t offset, uint8_t data);
- void nc_irq_mask_w(uint8_t data);
- void nc_irq_status_w(uint8_t data);
- uint8_t nc_irq_status_r();
- uint8_t nc_key_data_in_r(offs_t offset);
- void nc_sound_w(offs_t offset, uint8_t data);
- void nc_uart_control_w(uint8_t data);
- void nc100_display_memory_start_w(uint8_t data);
-
- void nc_colours(palette_device &palette) const;
- TIMER_CALLBACK_MEMBER(nc_keyboard_timer_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(dummy_timer_callback);
- DECLARE_WRITE_LINE_MEMBER(write_uart_clock);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
-
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( load_pcmcia_card );
- DECLARE_DEVICE_IMAGE_UNLOAD_MEMBER( unload_pcmcia_card );
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void nc_map(address_map &map);
-
- uint32_t screen_update_nc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int height, int width, int const (&pens)[2]);
- void nc_update_interrupts();
-
-private:
- int card_calculate_mask(int size);
- void set_card_present_state(int state);
- void nc_refresh_memory_bank_config(int bank);
- void nc_refresh_memory_config();
- void nc_sound_update(int channel);
-
-protected: // HACK FOR MC6845
- required_device<cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_device<beep_device> m_beeper1;
- required_device<beep_device> m_beeper2;
- required_device<centronics_device> m_centronics;
- required_device<generic_slot_device> m_card;
- required_device<i8251_device> m_uart;
- required_device<clock_device> m_uart_clock;
- required_device<nvram_device> m_nvram;
- optional_device<upd765a_device> m_fdc;
- required_memory_bank_array<4> m_bankhandler_r, m_bankhandler_w;
-
- char m_memory_config[4];
- emu_timer *m_keyboard_timer;
- int m_membank_rom_mask;
- int m_membank_internal_ram_mask;
- uint8_t m_poweroff_control;
- int m_card_status;
- unsigned char m_uart_control;
- int m_irq_mask;
- int m_irq_status;
- int m_irq_latch;
- int m_irq_latch_mask;
- int m_sound_channel_periods[2];
- int m_previous_inputport_10_state;
- int m_previous_alarm_state;
- memory_region *m_card_ram;
- int m_membank_card_ram_mask;
- int m_card_size;
- unsigned long m_display_memory_start;
- const nc_type m_nc_type;
-
- int m_centronics_ack;
- int m_centronics_busy;
-};
-
-
-class nc100_state : public nc_state
-{
-public:
- nc100_state(const machine_config &mconfig, device_type type, const char *tag) :
- nc_state(mconfig, type, tag, NC_TYPE_1xx)
- {
- }
-
- void nc100(machine_config &config);
-
-protected:
- void nc100_uart_control_w(uint8_t data);
- void nc100_poweroff_control_w(uint8_t data);
- uint8_t nc100_card_battery_status_r();
- void nc100_memory_card_wait_state_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(nc100_tc8521_alarm_callback);
- DECLARE_WRITE_LINE_MEMBER(nc100_txrdy_callback);
- DECLARE_WRITE_LINE_MEMBER(nc100_rxrdy_callback);
- DECLARE_WRITE_LINE_MEMBER(write_nc100_centronics_ack);
-
- virtual void machine_reset() override;
-
- void nc100_io(address_map &map);
-
- uint32_t screen_update_nc100(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-
-
-class nc200_state : public nc_state
-{
-public:
- nc200_state(const machine_config &mconfig, device_type type, const char *tag) :
- nc_state(mconfig, type, tag, NC_TYPE_200)
- {
- }
-
- void nc200(machine_config &config);
-
-protected:
- void nc200_irq_status_w(uint8_t data);
- uint8_t nc200_card_battery_status_r();
- uint8_t nc200_printer_status_r();
- void nc200_uart_control_w(uint8_t data);
- void nc200_memory_card_wait_state_w(uint8_t data);
- void nc200_poweroff_control_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(write_nc200_centronics_ack);
- DECLARE_WRITE_LINE_MEMBER(nc200_txrdy_callback);
- DECLARE_WRITE_LINE_MEMBER(nc200_rxrdy_callback);
- DECLARE_WRITE_LINE_MEMBER(nc200_fdc_interrupt);
-
- virtual void machine_reset() override;
-
- uint32_t screen_update_nc200(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void nc200_io(address_map &map);
-
-private:
- void nc200_video_set_backlight(int state);
- void nc200_refresh_uart_interrupt();
-
- uint8_t m_nc200_uart_interrupt_irq;
- int m_nc200_backlight;
-};
-
-
-#endif // MAME_INCLUDES_NC_H
diff --git a/src/mame/includes/nds.h b/src/mame/includes/nds.h
deleted file mode 100644
index 11cea6a295d..00000000000
--- a/src/mame/includes/nds.h
+++ /dev/null
@@ -1,116 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz, R. Belmont
-#pragma once
-
-#ifndef MAME_INCLUDES_NDS_H
-#define MAME_INCLUDES_NDS_H
-
-#include "cpu/arm7/arm7.h"
-#include "cpu/arm7/arm7core.h"
-#include "machine/bankdev.h"
-#include "machine/timer.h"
-
-class nds_state : public driver_device
-{
-public:
- nds_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_arm7(*this, "arm7"),
- m_arm9(*this, "arm9"),
- m_firmware(*this, "firmware"),
- m_arm7wrambnk(*this, "nds7wram"),
- m_arm9wrambnk(*this, "nds9wram"),
- m_arm7ram(*this, "arm7ram")
- { }
-
- void nds(machine_config &config);
-
-private:
- void machine_start() override;
- void machine_reset() override;
-
- // ARM7
- uint32_t arm7_io_r(offs_t offset, uint32_t mem_mask = ~0);
- void arm7_io_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- // ARM9
- uint32_t arm9_io_r(offs_t offset, uint32_t mem_mask = ~0);
- void arm9_io_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t wram_first_half_r(offs_t offset);
- uint32_t wram_second_half_r(offs_t offset);
- void wram_first_half_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void wram_second_half_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t wram_arm7mirror_r(offs_t offset);
- void wram_arm7mirror_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- void nds7_wram_map(address_map &map);
- void nds9_wram_map(address_map &map);
- void nds_arm7_map(address_map &map);
- void nds_arm9_map(address_map &map);
-
- required_device<arm7_cpu_device> m_arm7;
- required_device<arm946es_cpu_device> m_arm9;
- required_region_ptr<uint32_t> m_firmware;
- required_device<address_map_bank_device> m_arm7wrambnk, m_arm9wrambnk;
- required_shared_ptr<uint32_t> m_arm7ram;
-
- enum {
- TIMER_OFFSET = (0x100/4),
- RTC_OFFSET = (0x138/4),
- IPCSYNC_OFFSET = (0x180/4),
- AUX_SPI_CNT_OFFSET = (0x1a0/4),
- GAMECARD_BUS_CTRL_OFFSET = (0x1a4/4),
- GAMECARD_DATA_OFFSET = (0x1a8/4),
- GAMECARD_DATA_2_OFFSET = (0x1ac/4),
- SPI_CTRL_OFFSET = (0x1c0/4),
- IME_OFFSET = (0x208/4),
- IE_OFFSET = (0x210/4),
- IF_OFFSET = (0x214/4),
- WRAMSTAT_OFFSET = (0x241/4),
- VRAMCNT_A_OFFSET = (0x240/4),
- WRAMCNT_OFFSET = (0x244/4),
- VRAMCNT_H_OFFSET = (0x248/4),
- POSTFLG_OFFSET = (0x300/4),
- GAMECARD_DATA_IN_OFFSET = (0x100010/4),
- POSTFLG_PBF_SHIFT = 0,
- POSTFLG_RAM_SHIFT = 1,
- POSTFLG_PBF_MASK = (1 << POSTFLG_PBF_SHIFT),
- POSTFLG_RAM_MASK = (1 << POSTFLG_RAM_SHIFT),
- GAMECARD_DATA_READY = (1 << 23),
- GAMECARD_BLOCK_BUSY = (1 << 31)
- };
-
- uint32_t m_arm7_postflg;
- uint32_t m_arm9_postflg;
- uint32_t m_gamecard_ctrl, m_cartdata_len;
- uint32_t m_ime[2], m_ie[2], m_if[2];
- uint16_t m_arm7_ipcsync, m_arm9_ipcsync, m_spicnt;
- uint8_t m_WRAM[0x8000];
- uint8_t m_wramcnt;
- uint8_t m_vramcnta, m_vramcntb, m_vramcntc, m_vramcntd, m_vramcnte, m_vramcntf, m_vramcntg, m_vramcnth, m_vramcnti;
- bool m_arm7halted;
-
- // DMA
- emu_timer *m_dma_timer[8];
- //uint32_t m_dma_src[8];
- //uint32_t m_dma_dst[8];
- //uint16_t m_dma_cnt[8];
-
- // Timers
- uint32_t m_timer_regs[8];
- uint16_t m_timer_reload[8];
- int m_timer_recalc[8];
- double m_timer_hz[8];
-
- emu_timer *m_tmr_timer[8], *m_irq_timer;
-
- TIMER_CALLBACK_MEMBER(dma_complete);
- TIMER_CALLBACK_MEMBER(timer_expire);
- TIMER_CALLBACK_MEMBER(handle_irq);
-
- void request_irq(int which_cpu, uint32_t int_type);
- void dma_exec(int ch);
-};
-
-#endif // INCLUDES_NDS_H
diff --git a/src/mame/includes/nemesis.h b/src/mame/includes/nemesis.h
deleted file mode 100644
index 7a877b52b80..00000000000
--- a/src/mame/includes/nemesis.h
+++ /dev/null
@@ -1,185 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_NEMESIS_H
-#define MAME_INCLUDES_NEMESIS_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/flt_rc.h"
-#include "sound/k007232.h"
-#include "sound/k005289.h"
-#include "sound/vlm5030.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class nemesis_state : public driver_device
-{
-public:
- nemesis_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_charram(*this, "charram"),
- m_xscroll1(*this, "xscroll1"),
- m_xscroll2(*this, "xscroll2"),
- m_yscroll2(*this, "yscroll2"),
- m_yscroll1(*this, "yscroll1"),
- m_videoram1(*this, "videoram1"),
- m_videoram2(*this, "videoram2"),
- m_colorram1(*this, "colorram1"),
- m_colorram2(*this, "colorram2"),
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "paletteram"),
- m_gx400_shared_ram(*this, "gx400_shared"),
- m_bubsys_shared_ram(*this, "bubsys_shared"),
- m_bubsys_control_ram(*this, "bubsys_control"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_filter1(*this, "filter1"),
- m_filter2(*this, "filter2"),
- m_filter3(*this, "filter3"),
- m_filter4(*this, "filter4"),
- m_k007232(*this, "k007232"),
- m_k005289(*this, "k005289"),
- m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void nyanpani(machine_config &config);
- void konamigt(machine_config &config);
- void rf2_gx400(machine_config &config);
- void gx400(machine_config &config);
- void bubsys(machine_config &config);
- void hcrash(machine_config &config);
- void salamand(machine_config &config);
- void citybomb(machine_config &config);
- void nemesis(machine_config &config);
- void blkpnthr(machine_config &config);
-
- void bubsys_init();
- void bubsys_twinbeeb_init();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_charram;
- required_shared_ptr<uint16_t> m_xscroll1;
- required_shared_ptr<uint16_t> m_xscroll2;
- required_shared_ptr<uint16_t> m_yscroll2;
- required_shared_ptr<uint16_t> m_yscroll1;
- required_shared_ptr<uint16_t> m_videoram1;
- required_shared_ptr<uint16_t> m_videoram2;
- required_shared_ptr<uint16_t> m_colorram1;
- required_shared_ptr<uint16_t> m_colorram2;
- required_shared_ptr<uint16_t> m_spriteram;
- optional_shared_ptr<uint16_t> m_paletteram;
- optional_shared_ptr<uint8_t> m_gx400_shared_ram;
- optional_shared_ptr<uint16_t> m_bubsys_shared_ram;
- optional_shared_ptr<uint16_t> m_bubsys_control_ram;
-
- /* video-related */
- tilemap_t *m_background;
- tilemap_t *m_foreground;
- int m_spriteram_words;
- int m_tilemap_flip;
- int m_flipscreen;
- uint8_t m_irq_port_last;
- uint8_t m_blank_tile[8*8];
- uint8_t m_palette_lookup[32];
-
- /* misc */
- int m_irq_on;
- int m_irq1_on;
- int m_irq2_on;
- int m_irq4_on;
- uint8_t m_selected_ip; // needed for Hyper Crash
- int m_gx400_irq1_cnt;
- uint8_t m_frame_counter;
- uint16_t m_scanline_counter;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<filter_rc_device> m_filter1;
- optional_device<filter_rc_device> m_filter2;
- optional_device<filter_rc_device> m_filter3;
- optional_device<filter_rc_device> m_filter4;
- optional_device<k007232_device> m_k007232;
- optional_device<k005289_device> m_k005289;
- optional_device<vlm5030_device> m_vlm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
- DECLARE_WRITE_LINE_MEMBER(irq1_enable_w);
- DECLARE_WRITE_LINE_MEMBER(irq2_enable_w);
- DECLARE_WRITE_LINE_MEMBER(irq4_enable_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(sound_irq_w);
- DECLARE_WRITE_LINE_MEMBER(sound_nmi_w);
- uint16_t gx400_sharedram_word_r(offs_t offset);
- void gx400_sharedram_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t konamigt_input_word_r();
- void selected_ip_w(uint8_t data);
- uint8_t selected_ip_r();
- void bubsys_mcu_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t wd_r();
- DECLARE_WRITE_LINE_MEMBER(gfx_flipx_w);
- DECLARE_WRITE_LINE_MEMBER(gfx_flipy_w);
- void salamand_control_port_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void nemesis_palette_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void nemesis_videoram1_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void nemesis_videoram2_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void nemesis_colorram1_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void nemesis_colorram2_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void nemesis_charram_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void nemesis_filter_w(offs_t offset, uint8_t data);
- void gx400_speech_w(offs_t offset, uint8_t data);
- void salamand_speech_start_w(uint8_t data);
- uint8_t nemesis_portA_r();
- void city_sound_bank_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_nemesis(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(nemesis_vblank_irq);
- DECLARE_WRITE_LINE_MEMBER(bubsys_vblank_irq);
-
- DECLARE_WRITE_LINE_MEMBER(blkpnthr_vblank_irq);
- TIMER_DEVICE_CALLBACK_MEMBER(bubsys_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(konamigt_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(hcrash_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(gx400_interrupt);
- void create_palette_lookups();
- void nemesis_postload();
- void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void volume_callback(uint8_t data);
- void set_screen_raw_params(machine_config &config);
-
- void blkpnthr_map(address_map &map);
- void blkpnthr_sound_map(address_map &map);
- void city_sound_map(address_map &map);
- void citybomb_map(address_map &map);
- void gx400_map(address_map &map);
- void gx400_sound_map(address_map &map);
- void gx400_vlm_map(address_map &map);
- void hcrash_map(address_map &map);
- void konamigt_map(address_map &map);
- void nemesis_map(address_map &map);
- void nyanpani_map(address_map &map);
- void rf2_gx400_map(address_map &map);
- void sal_sound_map(address_map &map);
- void salamand_map(address_map &map);
- void salamand_vlm_map(address_map &map);
- void sound_map(address_map &map);
- void bubsys_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NEMESIS_H
diff --git a/src/mame/includes/neogeo.h b/src/mame/includes/neogeo.h
deleted file mode 100644
index 6f22c274f0a..00000000000
--- a/src/mame/includes/neogeo.h
+++ /dev/null
@@ -1,283 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail,Ernesto Corvi,Andrew Prime,Zsolt Vasvari
-// thanks-to:Fuzz
-/*************************************************************************
-
- Neo-Geo hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_NEOGEO_H
-#define MAME_INCLUDES_NEOGEO_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/z80/z80.h"
-#include "sound/ym2610.h"
-#include "machine/74259.h"
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "machine/upd1990a.h"
-#include "machine/ng_memcard.h"
-#include "video/neogeo_spr.h"
-
-#include "bus/neogeo/slot.h"
-#include "bus/neogeo/carts.h"
-#include "bus/neogeo_ctrl/ctrl.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-
-// On scanline 224, /VBLANK goes low 56 mclks (14 pixels) from the rising edge of /HSYNC.
-// Two mclks after /VBLANK goes low, the hardware sets a pending IRQ1 flip-flop.
-#define NEOGEO_VBLANK_IRQ_HTIM (attotime::from_ticks(56+2, NEOGEO_MASTER_CLOCK))
-
-
-class neogeo_base_state : public driver_device
-{
-public:
- DECLARE_CUSTOM_INPUT_MEMBER(get_memcard_status);
- DECLARE_CUSTOM_INPUT_MEMBER(get_audio_result);
-
-protected:
- neogeo_base_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_ym(*this, "ymsnd")
- , m_sprgen(*this, "spritegen")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_memcard(*this, "memcard")
- , m_systemlatch(*this, "systemlatch")
- , m_soundlatch(*this, "soundlatch")
- , m_soundlatch2(*this, "soundlatch2")
- , m_region_maincpu(*this, "maincpu")
- , m_share_maincpu(*this, "maincpu")
- , m_region_sprites(*this, "sprites")
- , m_region_fixed(*this, "fixed")
- , m_region_fixedbios(*this, "fixedbios")
- , m_region_mainbios(*this, "mainbios")
- , m_region_audiobios(*this, "audiobios")
- , m_region_audiocpu(*this, "audiocpu")
- , m_bank_audio_main(*this, "audio_main")
- , m_bank_cartridge(*this, "cartridge")
- , m_edge(*this, "edge")
- , m_ctrl1(*this, "ctrl1")
- , m_ctrl2(*this, "ctrl2")
- , m_use_cart_vectors(0)
- , m_use_cart_audio(0)
- , m_slots(*this, "cslot%u", 1U)
- , m_audionmi(*this, "audionmi")
- { }
-
- uint16_t memcard_r(offs_t offset);
- void memcard_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t audio_cpu_bank_select_r(offs_t offset);
- void audio_cpu_enable_nmi_w(offs_t offset, uint8_t data);
- uint16_t unmapped_r(address_space &space);
- uint16_t paletteram_r(offs_t offset);
- void paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t video_register_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void video_register_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TIMER_CALLBACK_MEMBER(display_position_interrupt_callback);
- TIMER_CALLBACK_MEMBER(display_position_vblank_callback);
- TIMER_CALLBACK_MEMBER(vblank_interrupt_callback);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- virtual void io_control_w(offs_t offset, uint8_t data);
- void audio_command_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(set_use_cart_vectors);
- DECLARE_WRITE_LINE_MEMBER(set_use_cart_audio);
- uint16_t banked_vectors_r(offs_t offset);
- void write_banksel(uint16_t data);
- void write_bankprot(uint16_t data);
- void write_bankprot_pvc(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void write_bankprot_ms5p(offs_t offset, uint16_t data);
- void write_bankprot_kf2k3bl(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void write_bankprot_kof10th(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t read_lorom_kof10th(offs_t offset);
-
- DECLARE_WRITE_LINE_MEMBER(set_screen_shadow);
- DECLARE_WRITE_LINE_MEMBER(set_palette_bank);
-
- void neogeo_base(machine_config &config);
- void neogeo_stereo(machine_config &config);
-
- void base_main_map(address_map &map);
- void audio_io_map(address_map &map);
- void audio_map(address_map &map);
-
- // device overrides
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void device_post_load() override;
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- // MVS-specific devices
- optional_device<ym2610_device> m_ym;
- required_device<neosprite_optimized_device> m_sprgen;
-
- required_device<screen_device> m_screen;
- optional_device<palette_device> m_palette;
- optional_device<ng_memcard_device> m_memcard;
- required_device<hc259_device> m_systemlatch;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
-
- // memory
- optional_memory_region m_region_maincpu;
- optional_shared_ptr<uint16_t> m_share_maincpu;
- optional_memory_region m_region_sprites;
- optional_memory_region m_region_fixed;
- optional_memory_region m_region_fixedbios;
- optional_memory_region m_region_mainbios;
- optional_memory_region m_region_audiobios;
- optional_memory_region m_region_audiocpu;
- optional_memory_bank m_bank_audio_main; // optional because of neocd
- memory_bank *m_bank_audio_cart[4];
- memory_bank_creator m_bank_cartridge;
-
- optional_device<neogeo_ctrl_edge_port_device> m_edge;
- optional_device<neogeo_control_port_device> m_ctrl1;
- optional_device<neogeo_control_port_device> m_ctrl2;
-
- // video hardware, including maincpu interrupts
- // TODO: make into a device
- virtual void video_start() override;
- virtual void video_reset() override;
-
- const pen_t *m_bg_pen;
- uint8_t m_vblank_level;
- uint8_t m_raster_level;
-
- int m_use_cart_vectors;
- int m_use_cart_audio;
-
- void set_slot_idx(int slot);
-
- // cart slots
- void init_cpu();
- void init_audio();
- void init_ym();
- void init_sprites();
- // temporary helper to restore memory banking while bankswitch is handled in the driver...
- uint32_t m_bank_base;
-
- optional_device_array<neogeo_cart_slot_device, 6> m_slots;
-
- int m_curr_slot;
-
-private:
- void update_interrupts();
- void create_interrupt_timers();
- void start_interrupt_timers();
- void acknowledge_interrupt(uint16_t data);
-
- void adjust_display_position_interrupt_timer();
- void set_display_position_interrupt_control(uint16_t data);
- void set_display_counter_msb(uint16_t data);
- void set_display_counter_lsb(uint16_t data);
- void set_video_control(uint16_t data);
-
- void create_rgb_lookups();
- void set_pens();
-
- // internal state
- bool m_recurse;
-
- emu_timer *m_display_position_interrupt_timer;
- emu_timer *m_display_position_vblank_timer;
- emu_timer *m_vblank_interrupt_timer;
- uint32_t m_display_counter;
- uint8_t m_vblank_interrupt_pending;
- uint8_t m_display_position_interrupt_pending;
- uint8_t m_irq3_pending;
- uint8_t m_display_position_interrupt_control;
-
- uint16_t get_video_control();
-
- required_device<input_merger_device> m_audionmi;
-
- // color/palette related
- std::vector<uint16_t> m_paletteram;
- uint8_t m_palette_lookup[32][4];
- int m_screen_shadow;
- int m_palette_bank;
-};
-
-
-class ngarcade_base_state : public neogeo_base_state
-{
-public:
- DECLARE_CUSTOM_INPUT_MEMBER(startsel_edge_joy_r);
-
-protected:
- ngarcade_base_state(const machine_config &mconfig, device_type type, const char *tag)
- : neogeo_base_state(mconfig, type, tag)
- , m_save_ram(*this, "saveram")
- , m_upd4990a(*this, "upd4990a")
- , m_dsw(*this, "DSW")
- {
- }
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void io_control_w(offs_t offset, uint8_t data) override;
- DECLARE_WRITE_LINE_MEMBER(set_save_ram_unlock);
- void save_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t in0_edge_r();
- uint16_t in0_edge_joy_r();
- uint16_t in1_edge_r();
- uint16_t in1_edge_joy_r();
-
- void neogeo_arcade(machine_config &config);
- void neogeo_mono(machine_config &config);
-
- void neogeo_main_map(address_map &map);
-
-private:
- required_shared_ptr<uint16_t> m_save_ram;
- required_device<upd4990a_device> m_upd4990a;
- required_ioport m_dsw;
-
- uint8_t m_save_ram_unlocked;
-};
-
-
-class aes_base_state : public neogeo_base_state
-{
-public:
- DECLARE_INPUT_CHANGED_MEMBER(aes_jp1);
-
-protected:
- aes_base_state(const machine_config &mconfig, device_type type, const char *tag)
- : neogeo_base_state(mconfig, type, tag)
- , m_io_in2(*this, "IN2")
- {
- }
-
- uint16_t aes_in2_r();
-
- virtual void machine_start() override;
-
- void aes_base_main_map(address_map &map);
-
-private:
- required_ioport m_io_in2;
-};
-
-
-/*----------- defined in drivers/neogeo.c -----------*/
-
-INPUT_PORTS_EXTERN(neogeo);
-INPUT_PORTS_EXTERN(aes);
-
-#endif // MAME_INCLUDES_NEOGEO_H
diff --git a/src/mame/includes/nes.h b/src/mame/includes/nes.h
deleted file mode 100644
index c05a4e5126e..00000000000
--- a/src/mame/includes/nes.h
+++ /dev/null
@@ -1,137 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver,Fabio Priuli
-/*****************************************************************************
-
- nes.h
-
- Nintendo Entertainment System / Famicom
-
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_NES_H
-#define MAME_INCLUDES_NES_H
-
-#pragma once
-
-
-#include "bus/nes/disksys.h"
-#include "bus/nes/nes_slot.h"
-#include "bus/nes/nes_carts.h"
-#include "bus/nes_ctrl/ctrl.h"
-#include "video/ppu2c0x.h"
-#include "screen.h"
-
-/***************************************************************************
- CONSTANTS
-***************************************************************************/
-
-#define NES_BATTERY_SIZE 0x2000
-
-/***************************************************************************
- TYPE DEFINITIONS
-***************************************************************************/
-
-/*PPU fast banking constants and structures */
-
-#define CHRROM 0
-#define CHRRAM 1
-
-
-/*PPU nametable fast banking constants and structures */
-
-#define CIRAM 0
-#define ROM 1
-#define EXRAM 2
-#define MMC5FILL 3
-#define CART_NTRAM 4
-
-#define NES_BATTERY 0
-#define NES_WRAM 1
-
-class nes_base_state : public driver_device
-{
-public:
- nes_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ctrl1(*this, "ctrl1"),
- m_ctrl2(*this, "ctrl2")
- { }
-
- required_device<cpu_device> m_maincpu;
- optional_device<nes_control_port_device> m_ctrl1;
- optional_device<nes_control_port_device> m_ctrl2;
-
- uint8_t nes_in0_r();
- uint8_t nes_in1_r();
- void nes_in0_w(uint8_t data);
-};
-
-class nes_state : public nes_base_state
-{
-public:
- nes_state(const machine_config &mconfig, device_type type, const char *tag) :
- nes_base_state(mconfig, type, tag),
- m_ppu(*this, "ppu"),
- m_screen(*this, "screen"),
- m_exp(*this, "exp"),
- m_cartslot(*this, "nes_slot"),
- m_disk(*this, "disk"),
- m_prg_bank(*this, "prg%u", 0U)
- { }
-
-
- int nes_ppu_vidaccess(int address, int data);
-
-
- uint8_t fc_in0_r();
- uint8_t fc_in1_r();
- void fc_in0_w(uint8_t data);
- void nes_vh_sprite_dma_w(address_space &space, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void video_reset() override;
- uint32_t screen_update_nes(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void screen_vblank_nes(int state);
-
- void init_famicom();
-
- // these are needed until we modernize the FDS controller
- DECLARE_MACHINE_START(fds);
- DECLARE_MACHINE_START(famitwin);
- DECLARE_MACHINE_RESET(fds);
- DECLARE_MACHINE_RESET(famitwin);
- void setup_disk(nes_disksys_device *slot);
-
- void suborkbd(machine_config &config);
- void famipalc(machine_config &config);
- void famicom(machine_config &config);
- void famitwin(machine_config &config);
- void nespal(machine_config &config);
- void nespalc(machine_config &config);
- void nes(machine_config &config);
- void fds(machine_config &config);
- void nes_map(address_map &map);
-private:
- memory_bank *m_prg_bank_mem[5];
-
- /* video-related */
- int m_last_frame_flip;
-
- /* misc */
- ioport_port *m_io_disksel;
-
- uint8_t *m_vram;
- std::unique_ptr<uint8_t[]> m_ciram; //PPU nametable RAM - external to PPU!
-
-
- required_device<ppu2c0x_device> m_ppu;
- required_device<screen_device> m_screen;
- optional_device<nes_control_port_device> m_exp;
- optional_device<nes_cart_slot_device> m_cartslot;
- optional_device<nes_disksys_device> m_disk;
- memory_bank_array_creator<4> m_prg_bank;
-};
-
-#endif // MAME_INCLUDES_NES_H
diff --git a/src/mame/includes/newbrain.h b/src/mame/includes/newbrain.h
deleted file mode 100644
index 80eb1dec811..00000000000
--- a/src/mame/includes/newbrain.h
+++ /dev/null
@@ -1,148 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_NEWBRAIN_H
-#define MAME_INCLUDES_NEWBRAIN_H
-
-#pragma once
-
-
-#include "bus/newbrain/exp.h"
-#include "bus/rs232/rs232.h"
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "cpu/cop400/cop400.h"
-#include "imagedev/cassette.h"
-#include "machine/rescap.h"
-#include "machine/ram.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "409"
-#define COP420_TAG "419"
-#define RS232_V24_TAG "to"
-#define RS232_PRN_TAG "po"
-
-class newbrain_state : public driver_device
-{
-public:
- newbrain_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_cop(*this, COP420_TAG),
- m_palette(*this, "palette"),
- m_exp(*this, NEWBRAIN_EXPANSION_SLOT_TAG),
- m_cassette1(*this, "cassette1"),
- m_cassette2(*this, "cassette2"),
- m_rs232_v24(*this, RS232_V24_TAG),
- m_rs232_prn(*this, RS232_PRN_TAG),
- m_ram(*this, RAM_TAG),
- m_rom(*this, Z80_TAG),
- m_char_rom(*this, "chargen"),
- m_y(*this, "Y%u", 0),
- m_digits(*this, "digit%u", 0U),
- m_pwrup(0),
- m_userint(1),
- m_clkint(1),
- m_copint(1),
- m_405_q(0),
- m_403_q(0xf)
- {
- }
-
- void newbrain(machine_config &config);
- void newbrain_a(machine_config &config);
- void newbrain_ad(machine_config &config);
- void newbrain_md(machine_config &config);
- void newbrain_video(machine_config &config);
-
-private:
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t mreq_r(offs_t offset);
- void mreq_w(offs_t offset, uint8_t data);
- uint8_t iorq_r(offs_t offset);
- void iorq_w(offs_t offset, uint8_t data);
-
- void enrg_w(uint8_t data);
- void tvtl_w(uint8_t data);
- uint8_t ust_a_r();
- uint8_t ust_b_r();
-
- void cop_g_w(uint8_t data);
- uint8_t cop_g_r();
- void cop_d_w(uint8_t data);
- uint8_t cop_in_r();
- DECLARE_WRITE_LINE_MEMBER( k2_w );
- DECLARE_READ_LINE_MEMBER( tdi_r );
- DECLARE_WRITE_LINE_MEMBER( k1_w );
-
- void newbrain_iorq(address_map &map);
- void newbrain_mreq(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void video_start() override;
-
- enum
- {
- TIMER_ID_RESET,
- TIMER_ID_PWRUP,
- TIMER_ID_CLKINT
- };
-
- void check_interrupt();
- void clclk();
- int tpin();
- void tm();
-
- int get_reset_t();
- int get_pwrup_t();
-
- void do_screen_update(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void tvl(uint8_t data, int a6);
-
- required_device<z80_device> m_maincpu;
- required_device<cop400_cpu_device> m_cop;
- required_device<palette_device> m_palette;
- required_device<newbrain_expansion_slot_device> m_exp;
- required_device<cassette_image_device> m_cassette1;
- required_device<cassette_image_device> m_cassette2;
- required_device<rs232_port_device> m_rs232_v24;
- required_device<rs232_port_device> m_rs232_prn;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- required_memory_region m_char_rom;
- required_ioport_array<16> m_y;
- output_finder<16> m_digits;
-
- int m_clk;
- int m_tvp;
- int m_pwrup;
- int m_userint;
- int m_clkint;
- int m_copint;
-
- int m_cop_so;
- int m_cop_tdo;
- int m_cop_g1;
- int m_cop_g3;
- int m_cop_k6;
-
- int m_405_q;
- uint8_t m_403_q;
- uint8_t m_403_d;
- uint16_t m_402_q;
-
- int m_rv;
- int m_fs;
- int m_32_40;
- int m_ucr;
- int m_80l;
- uint16_t m_tvl;
-
- emu_timer *m_clkint_timer;
-};
-
-#endif
diff --git a/src/mame/includes/news.h b/src/mame/includes/news.h
deleted file mode 100644
index 2bf0b44bfd3..00000000000
--- a/src/mame/includes/news.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_NEWS_H
-#define MAME_INCLUDES_NEWS_H
-
-#pragma once
-
-#include "tilemap.h"
-
-class news_state : public driver_device
-{
-public:
- news_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bgram(*this, "bgram"),
- m_fgram(*this, "fgram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode")
- { }
-
- void news(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_bgram;
- required_shared_ptr<uint8_t> m_fgram;
-
- /* video-related */
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_bgpic;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
-
- void news_fgram_w(offs_t offset, uint8_t data);
- void news_bgram_w(offs_t offset, uint8_t data);
- void news_bgpic_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- uint32_t screen_update_news(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void news_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NEWS_H
diff --git a/src/mame/includes/next.h b/src/mame/includes/next.h
deleted file mode 100644
index e179365a785..00000000000
--- a/src/mame/includes/next.h
+++ /dev/null
@@ -1,212 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Olivier Galibert
-#pragma once
-
-#ifndef MAME_INCLUDES_NEXT_H
-#define MAME_INCLUDES_NEXT_H
-
-#include "cpu/m68000/m68000.h"
-#include "imagedev/floppy.h"
-#include "machine/nscsi_bus.h"
-#include "machine/mccs1850.h"
-#include "machine/8530scc.h"
-#include "machine/nextkbd.h"
-#include "machine/upd765.h"
-#include "machine/ncr5390.h"
-#include "machine/mb8795.h"
-#include "machine/nextmo.h"
-#include "imagedev/chd_cd.h"
-#include "imagedev/harddriv.h"
-
-class next_state : public driver_device
-{
-public:
- next_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- maincpu(*this, "maincpu"),
- rtc(*this, "rtc"),
- scc(*this, "scc"),
- keyboard(*this, "keyboard"),
- scsibus(*this, "scsibus"),
- scsi(*this, "scsibus:7:ncr5390"),
- net(*this, "net"),
- mo(*this, "mo"),
- fdc(*this, "fdc"),
- floppy0(*this, "fdc:0"),
- vram(*this, "vram") { }
-
- void next_mo_config(machine_config &config);
- void next_fdc_config(machine_config &config);
- void next_base(machine_config &config);
- void next_mo_base(machine_config &config);
- void next_fdc_base(machine_config &config);
- void next_mo_fdc_base(machine_config &config);
- void nextst(machine_config &config);
- void nextsc(machine_config &config);
- void nextct(machine_config &config);
- void nexts2(machine_config &config);
- void nextctc(machine_config &config);
- void next(machine_config &config);
- void nextc(machine_config &config);
- void nextstc(machine_config &config);
- void nexts(machine_config &config);
-
- void init_nexts2();
- void init_next();
- void init_nextc();
- void init_nextsc();
- void init_nextst();
- void init_nextct();
- void init_nextstc();
- void init_nextctc();
- void init_nexts();
-
-private:
- required_device<cpu_device> maincpu;
- required_device<mccs1850_device> rtc;
- required_device<scc8530_legacy_device> scc;
- required_device<nextkbd_device> keyboard;
- required_device<nscsi_bus_device> scsibus;
- required_device<ncr5390_device> scsi;
- required_device<mb8795_device> net;
- optional_device<nextmo_device> mo; // cube only
- optional_device<n82077aa_device> fdc; // 040 only
- optional_device<floppy_connector> floppy0; // 040 only
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void setup(uint32_t scr1, int size_x, int size_y, int skip, bool color);
-
- uint32_t rom_map_r();
- uint32_t scr2_r();
- void scr2_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t scr1_r();
- uint32_t irq_status_r();
- uint32_t irq_mask_r();
- void irq_mask_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t event_counter_r(offs_t offset, uint32_t mem_mask = ~0);
- uint32_t dsp_r();
- uint32_t fdc_control_r();
- void fdc_control_w(uint32_t data);
- uint32_t dma_ctrl_r(offs_t offset);
- void dma_ctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t dma_regs_r(offs_t offset);
- void dma_regs_w(offs_t offset, uint32_t data);
- uint32_t scsictrl_r(offs_t offset, uint32_t mem_mask = ~0);
- void scsictrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t phy_r(offs_t offset);
- void phy_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t timer_data_r();
- void timer_data_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t timer_ctrl_r();
- void timer_ctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void ramdac_w(offs_t offset, uint8_t data);
-
- uint32_t scr1;
- uint32_t scr2;
- uint32_t irq_status;
- uint32_t irq_mask;
- int irq_level;
- required_shared_ptr<uint32_t> vram;
- uint8_t scsictrl, scsistat;
-
- uint32_t phy[2];
-
- attotime timer_tbase;
- uint16_t timer_vbase;
- uint32_t timer_data, timer_next_data;
- uint32_t timer_ctrl;
- emu_timer *timer_tm;
-
- uint32_t eventc_latch;
-
- DECLARE_WRITE_LINE_MEMBER(scc_irq);
- DECLARE_WRITE_LINE_MEMBER(keyboard_irq);
- DECLARE_WRITE_LINE_MEMBER(power_irq);
- DECLARE_WRITE_LINE_MEMBER(nmi_irq);
-
- DECLARE_WRITE_LINE_MEMBER(scsi_irq);
- DECLARE_WRITE_LINE_MEMBER(scsi_drq);
-
- DECLARE_WRITE_LINE_MEMBER(fdc_irq);
- DECLARE_WRITE_LINE_MEMBER(fdc_drq);
-
- DECLARE_WRITE_LINE_MEMBER(net_tx_irq);
- DECLARE_WRITE_LINE_MEMBER(net_rx_irq);
- DECLARE_WRITE_LINE_MEMBER(net_tx_drq);
- DECLARE_WRITE_LINE_MEMBER(net_rx_drq);
-
- DECLARE_WRITE_LINE_MEMBER(mo_irq);
- DECLARE_WRITE_LINE_MEMBER(mo_drq);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_w);
-
- void ncr5390(device_t *device);
- void next_0b_m_mem(address_map &map);
- void next_0b_m_mo_mem(address_map &map);
- void next_0b_m_nofdc_mem(address_map &map);
- void next_0c_c_mem(address_map &map);
- void next_0c_m_mem(address_map &map);
- void next_0c_c_mo_mem(address_map &map);
- void next_0c_m_mo_mem(address_map &map);
- void next_2c_c_mem(address_map &map);
- void next_fdc_mem(address_map &map);
- void next_mo_mem(address_map &map);
- void next_mem(address_map &map);
-
- struct dma_slot {
- uint32_t start, limit, chain_start, chain_limit, current;
- uint8_t state;
- bool supdate, restart, drq;
- };
-
- enum {
- // write bits
- DMA_SETENABLE = 0x01,
- DMA_SETSUPDATE = 0x02,
- DMA_SETREAD = 0x04,
- DMA_CLRCOMPLETE = 0x08,
- DMA_RESET = 0x10,
- DMA_INITBUF = 0x20,
- DMA_INITBUFTURBO = 0x40,
-
- // read bits
- DMA_ENABLE = 0x01,
- DMA_SUPDATE = 0x02,
- DMA_READ = 0x04,
- DMA_COMPLETE = 0x08,
- DMA_BUSEXC = 0x10
- };
-
- static char const *const dma_targets[0x20];
- static int const dma_irqs[0x20];
- static bool const dma_has_saved[0x20];
- static int const scsi_clocks[4];
-
- dma_slot dma_slots[0x20];
- uint32_t esp;
-
- int screen_sx, screen_sy, screen_skip;
- bool screen_color;
- bool vbl_enabled;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- void timer_start();
- void timer_update();
-
- void irq_set(int id, bool raise);
- void irq_check();
- const char *dma_name(int slot);
- void dma_do_ctrl_w(int slot, uint8_t data);
- void dma_drq_w(int slot, bool state);
- void dma_read(int slot, uint8_t &val, bool &eof, bool &err);
- void dma_write(int slot, uint8_t val, bool eof, bool &err);
- void dma_check_update(int slot);
- void dma_check_end(int slot, bool eof);
- void dma_end(int slot);
-};
-
-#endif
diff --git a/src/mame/includes/nforcepc.h b/src/mame/includes/nforcepc.h
deleted file mode 100644
index acc61f21c74..00000000000
--- a/src/mame/includes/nforcepc.h
+++ /dev/null
@@ -1,331 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders: Samuele Zannoli
-#ifndef MAME_MACHINE_NFORCEPC_H
-#define MAME_MACHINE_NFORCEPC_H
-
-#pragma once
-// floppy disk controller
-#include "machine/upd765.h"
-#include "imagedev/floppy.h"
-#include "formats/pc_dsk.h"
-#include "formats/naslite_dsk.h"
-// keyboard
-#include "machine/8042kbdc.h"
-// parallel port
-#include "machine/pc_lpt.h"
-// serial port
-#include "machine/ins8250.h"
-
-// NVIDIA Corporation nForce CPU bridge
-
-class crush11_host_device : public pci_host_device {
-public:
- template <typename T>
- crush11_host_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&cpu_tag, const char *bios_device_tag)
- : crush11_host_device(mconfig, tag, owner, clock)
- {
- set_ids_host(0x10de01a4, 0xb2, 0);
- set_cpu_tag(std::forward<T>(cpu_tag));
- biosrom.set_tag(bios_device_tag);
- }
- crush11_host_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- template <typename T> void set_cpu_tag(T &&tag) { cpu.set_tag(std::forward<T>(tag)); }
- const char *get_cpu_tag() { return cpu.finder_tag(); }
- void set_ram_size(uint32_t size) { ram_size = size; }
- address_space *get_cpu_space(int spacenum) { return &cpu->space(spacenum); }
-
- void bios_map(address_map &map);
- void aperture_map(address_map &map) {}
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
- virtual void reset_all_mappings() override;
-
- virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space,
- uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override;
-
- virtual void config_map(address_map &map) override;
-
-private:
- required_device<device_memory_interface> cpu;
- required_device<intelfsh8_device> biosrom;
- uint32_t ram_size;
-
- virtual uint8_t header_type_r() override;
- uint8_t unknown_r();
- void unknown_w(uint8_t data);
- uint32_t ram_size_r();
- void ram_size_w(uint32_t data);
-};
-
-DECLARE_DEVICE_TYPE(CRUSH11, crush11_host_device)
-
-// For ddr ram
-
-class crush11_memory_device : public pci_device {
-public:
- crush11_memory_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t subsystem_id, int ram_size);
- crush11_memory_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- void set_ram_size(int ram_size);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
- virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space,
- uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override;
-
- virtual void config_map(address_map &map) override;
-
-private:
- int ddr_ram_size;
- std::vector<uint32_t> ram;
- crush11_host_device *host;
- address_space *ram_space;
-};
-
-DECLARE_DEVICE_TYPE(CRUSH11_MEMORY, crush11_memory_device)
-
-// device connected to SMBus
-
-class smbus_logger_device : public device_t, public smbus_interface
-{
-public:
- smbus_logger_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual int execute_command(int command, int rw, int data) override;
- uint8_t *get_buffer() { return buffer; }
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
- uint8_t buffer[0xff];
-};
-
-DECLARE_DEVICE_TYPE(SMBUS_LOGGER, smbus_logger_device)
-
-// Simple smbus rom used as a placeholder for the serial presence detect chip in a ddr dimm
-
-class smbus_rom_device : public device_t, public smbus_interface
-{
-public:
- smbus_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, const uint8_t *data, int size);
- smbus_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual int execute_command(int command, int rw, int data) override;
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
- const uint8_t *buffer;
- int buffer_size;
-};
-
-DECLARE_DEVICE_TYPE(SMBUS_ROM, smbus_rom_device)
-
-// Asus AS99127F chip
-// It answers to three smbus addresses, by default 0x2d 0x48 0x49
-
-class as99127f_device : public device_t, public smbus_interface
-{
-public:
- as99127f_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual int execute_command(int command, int rw, int data) override;
- uint8_t *get_buffer() { return buffer; }
-
-protected:
- virtual void device_start() override;
-
-private:
- uint8_t buffer[0xff];
-};
-
-DECLARE_DEVICE_TYPE(AS99127F, as99127f_device)
-
-class as99127f_sensor2_device : public device_t, public smbus_interface
-{
-public:
- as99127f_sensor2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual int execute_command(int command, int rw, int data) override;
- uint8_t *get_buffer() { return buffer; }
-
-protected:
- virtual void device_start() override;
-
-private:
- uint8_t buffer[0xff];
-};
-
-DECLARE_DEVICE_TYPE(AS99127F_SENSOR2, as99127f_sensor2_device)
-
-class as99127f_sensor3_device : public device_t, public smbus_interface
-{
-public:
- as99127f_sensor3_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual int execute_command(int command, int rw, int data) override;
- uint8_t *get_buffer() { return buffer; }
-
-protected:
- virtual void device_start() override;
-
-private:
- uint8_t buffer[0xff];
-};
-
-DECLARE_DEVICE_TYPE(AS99127F_SENSOR3, as99127f_sensor3_device)
-
-// ITE IT8703F-A SuperIO
-
-class it8703f_device : public device_t, public lpcbus_device_interface
-{
-public:
- it8703f_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual void map_extra(address_space *memory_space, address_space *io_space) override;
- virtual void set_host(int index, lpcbus_host_interface *host) override;
- virtual void device_add_mconfig(machine_config &config) override;
-
- auto pin_reset() { return pin_reset_callback.bind(); }
- auto pin_gatea20() { return pin_gatea20_callback.bind(); }
- auto txd1() { return m_txd1_callback.bind(); }
- auto ndtr1() { return m_ndtr1_callback.bind(); }
- auto nrts1() { return m_nrts1_callback.bind(); }
- auto txd2() { return m_txd2_callback.bind(); }
- auto ndtr2() { return m_ndtr2_callback.bind(); }
- auto nrts2() { return m_nrts2_callback.bind(); }
-
- void map_lpt(address_map& map);
- void map_serial1(address_map& map);
- void map_serial2(address_map& map);
- void map_keyboard(address_map &map);
-
- // floppy disk controller
- DECLARE_WRITE_LINE_MEMBER(irq_floppy_w);
- DECLARE_WRITE_LINE_MEMBER(drq_floppy_w);
- // parallel port
- DECLARE_WRITE_LINE_MEMBER(irq_parallel_w);
- DECLARE_WRITE_LINE_MEMBER(drq_parallel_w);
- // uarts
- DECLARE_WRITE_LINE_MEMBER(irq_serial1_w);
- DECLARE_WRITE_LINE_MEMBER(txd_serial1_w);
- DECLARE_WRITE_LINE_MEMBER(dtr_serial1_w);
- DECLARE_WRITE_LINE_MEMBER(rts_serial1_w);
- DECLARE_WRITE_LINE_MEMBER(irq_serial2_w);
- DECLARE_WRITE_LINE_MEMBER(txd_serial2_w);
- DECLARE_WRITE_LINE_MEMBER(dtr_serial2_w);
- DECLARE_WRITE_LINE_MEMBER(rts_serial2_w);
- // uarts
- DECLARE_WRITE_LINE_MEMBER(rxd1_w);
- DECLARE_WRITE_LINE_MEMBER(ndcd1_w);
- DECLARE_WRITE_LINE_MEMBER(ndsr1_w);
- DECLARE_WRITE_LINE_MEMBER(nri1_w);
- DECLARE_WRITE_LINE_MEMBER(ncts1_w);
- DECLARE_WRITE_LINE_MEMBER(rxd2_w);
- DECLARE_WRITE_LINE_MEMBER(ndcd2_w);
- DECLARE_WRITE_LINE_MEMBER(ndsr2_w);
- DECLARE_WRITE_LINE_MEMBER(nri2_w);
- DECLARE_WRITE_LINE_MEMBER(ncts2_w);
- // keyboard
- DECLARE_WRITE_LINE_MEMBER(irq_keyboard_w);
- DECLARE_WRITE_LINE_MEMBER(kbdp21_gp25_gatea20_w);
- DECLARE_WRITE_LINE_MEMBER(kbdp20_gp20_reset_w);
-
- uint8_t read_it8703f(offs_t offset);
- void write_it8703f(offs_t offset, uint8_t data);
- // parallel port
- uint8_t lpt_read(offs_t offset);
- void lpt_write(offs_t offset, uint8_t data);
- // uarts
- uint8_t serial1_read(offs_t offset);
- void serial1_write(offs_t offset, uint8_t data);
- uint8_t serial2_read(offs_t offset);
- void serial2_write(offs_t offset, uint8_t data);
- // keyboard
- uint8_t at_keybc_r(offs_t offset);
- void at_keybc_w(offs_t offset, uint8_t data);
- uint8_t keybc_status_r();
- void keybc_command_w(uint8_t data);
-
-protected:
- virtual void device_start() override;
-
-private:
- enum OperatingMode
- {
- Run = 0,
- Configuration = 1
- } mode;
- enum LogicalDevice
- {
- FDC = 0, // Floppy disk controller
- Parallel, // Parallel port
- Serial1, // Serial port 1
- Serial2, // Serial port 2
- Keyboard = 5, // Keyboard controller
- ConsumerIR, // Consumer IR
- Gpio1, // Game port, MIDI, GPIO set 1
- Gpio2, // GPIO set 2
- Gpio34, // GPIO set 3 and 4
- ACPI, // ACPI
- Gpio567 = 12 // GPIO set 5, 6 and 7
- };
- int config_key_step;
- int config_index;
- int logical_device;
- uint8_t global_configuration_registers[0x30];
- uint8_t configuration_registers[13][0x100];
- devcb_write_line pin_reset_callback;
- devcb_write_line pin_gatea20_callback;
- devcb_write_line m_txd1_callback;
- devcb_write_line m_ndtr1_callback;
- devcb_write_line m_nrts1_callback;
- devcb_write_line m_txd2_callback;
- devcb_write_line m_ndtr2_callback;
- devcb_write_line m_nrts2_callback;
- required_device<smc37c78_device> floppy_controller_fdcdev;
- required_device<pc_lpt_device> pc_lpt_lptdev;
- required_device<ns16450_device> pc_serial1_comdev;
- required_device<ns16450_device> pc_serial2_comdev;
- required_device<kbdc8042_device> m_kbdc;
- bool enabled_logical[13];
- bool enabled_game_port;
- bool enabled_midi_port;
-
- lpcbus_host_interface *lpchost;
- int lpcindex;
- address_space *memspace;
- address_space *iospace;
-
- void internal_memory_map(address_map &map);
- void internal_io_map(address_map &map);
- uint16_t get_base_address(int logical, int index);
- void map_fdc_addresses();
- void map_lpt_addresses();
- void map_serial1_addresses();
- void map_serial2_addresses();
- void map_keyboard_addresses();
- void write_global_configuration_register(int index, int data);
- void write_logical_configuration_register(int index, int data);
- void write_fdd_configuration_register(int index, int data);
- void write_parallel_configuration_register(int index, int data);
- void write_serial1_configuration_register(int index, int data);
- void write_serial2_configuration_register(int index, int data);
- void write_keyboard_configuration_register(int index, int data);
- uint16_t read_global_configuration_register(int index);
- uint16_t read_logical_configuration_register(int index);
- uint16_t read_fdd_configuration_register(int index) { return configuration_registers[LogicalDevice::FDC][index]; }
- uint16_t read_parallel_configuration_register(int index) { return configuration_registers[LogicalDevice::Parallel][index]; }
- uint16_t read_serial1_configuration_register(int index) { return configuration_registers[LogicalDevice::Serial1][index]; }
- uint16_t read_serial2_configuration_register(int index) { return configuration_registers[LogicalDevice::Serial2][index]; }
- uint16_t read_keyboard_configuration_register(int index) { return configuration_registers[LogicalDevice::Keyboard][index]; }
-};
-
-DECLARE_DEVICE_TYPE(IT8703F, it8703f_device)
-
-
-#endif
diff --git a/src/mame/includes/ninjakd2.h b/src/mame/includes/ninjakd2.h
deleted file mode 100644
index 26d0de824e7..00000000000
--- a/src/mame/includes/ninjakd2.h
+++ /dev/null
@@ -1,205 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Roberto Ventura, Leandro Dardini, Yochizo, Nicola Salmoria
-/******************************************************************************
-
- UPL "sprite framebuffer" hardware
-
-******************************************************************************/
-#ifndef MAME_INCLUDES_NINJAKD2_H
-#define MAME_INCLUDES_NINJAKD2_H
-
-#pragma once
-
-#include "sound/samples.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class ninjakd2_state : public driver_device
-{
-public:
- ninjakd2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_palette(*this, "palette"),
- m_bg_videoram(*this, "bg_videoram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_soundcpu(*this, "soundcpu"),
- m_pcm(*this, "pcm"),
- m_pcm_region(*this, "pcm"),
- m_fg_videoram(*this, "fg_videoram"),
- m_spriteram(*this, "spriteram"),
- m_decrypted_opcodes(*this, "decrypted_opcodes"),
- m_mainbank(*this, "mainbank")
- { }
-
- void ninjakd2b(machine_config &config);
- void ninjakd2(machine_config &config);
-
- void init_ninjakd2();
- void init_bootleg();
-
-protected:
- void ninjakd2_bgvideoram_w(offs_t offset, uint8_t data);
- void ninjakd2_fgvideoram_w(offs_t offset, uint8_t data);
- void ninjakd2_bg_ctrl_w(offs_t offset, uint8_t data);
- void ninjakd2_sprite_overdraw_w(uint8_t data);
-
- void ninjakd2_bankselect_w(uint8_t data);
- void ninjakd2_soundreset_w(uint8_t data);
-
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- optional_shared_ptr<uint8_t> m_bg_videoram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<cpu_device> m_soundcpu;
-
- uint8_t m_vram_bank_mask;
- int m_robokid_sprites;
- bool (*m_stencil_compare_function) (uint16_t pal);
- int m_sprites_updated;
- tilemap_t* m_fg_tilemap;
- tilemap_t* m_bg_tilemap;
- bitmap_ind16 m_sprites_bitmap;
-
- void video_init_common();
-
- void ninjakd2_pcm_play_w(uint8_t data);
- SAMPLES_START_CB_MEMBER(ninjakd2_init_samples);
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(ninjakd2_get_bg_tile_info);
- uint32_t screen_update_ninjakd2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_ninjakd2);
-
- void bg_ctrl(int offset, int data, tilemap_t* tilemap);
- void gfx_unscramble();
- void update_sprites();
-
- void ninjakid_nopcm_sound_cpu(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void ninjakd2_core(machine_config &config);
-
-private:
- optional_device<samples_device> m_pcm;
- optional_memory_region m_pcm_region;
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- required_memory_bank m_mainbank;
-
- const int16_t* m_sampledata;
- int m_next_sprite_overdraw_enabled;
- uint8_t m_rom_bank_mask;
-
- void draw_sprites( bitmap_ind16 &bitmap);
- void erase_sprites( bitmap_ind16 &bitmap);
- void lineswap_gfx_roms(const char *region, const int bit);
- void decrypted_opcodes_map(address_map &map);
- void ninjakd2_main_cpu(address_map &map);
- void ninjakd2_sound_cpu(address_map &map);
- void ninjakd2_sound_io(address_map &map);
-};
-
-class mnight_state : public ninjakd2_state
-{
-public:
- mnight_state(const machine_config &mconfig, device_type type, const char *tag) :
- ninjakd2_state(mconfig, type, tag)
- { }
-
- void arkarea(machine_config &config);
- void mnight(machine_config &config);
-
- void init_mnight();
-
-private:
- void mnight_main_cpu(address_map &map);
-
- TILE_GET_INFO_MEMBER(mnight_get_bg_tile_info);
- DECLARE_VIDEO_START(mnight);
- DECLARE_VIDEO_START(arkarea);
-
-};
-
-class robokid_state : public mnight_state
-{
-public:
- robokid_state(const machine_config &mconfig, device_type type, const char *tag) :
- mnight_state(mconfig, type, tag)
- { }
-
- void robokid(machine_config &config);
-
- void init_robokid();
- void init_robokidj();
-
-protected:
- template<int Layer> uint8_t robokid_bg_videoram_r(offs_t offset);
- template<int Layer> void robokid_bg_videoram_w(offs_t offset, uint8_t data);
- template<int Layer> void robokid_bg_ctrl_w(offs_t offset, uint8_t data);
- template<int Layer> void robokid_bg_bank_w(uint8_t data);
- tilemap_t* m_robokid_tilemap[3];
-
- void video_init_banked(uint32_t vram_alloc_size);
- TILEMAP_MAPPER_MEMBER(robokid_bg_scan);
- template<int Layer> TILE_GET_INFO_MEMBER(robokid_get_bg_tile_info);
-
- void robokid_main_cpu(address_map &map);
-
-private:
- uint8_t motion_error_verbose_r();
-
- DECLARE_VIDEO_START(robokid);
- uint32_t screen_update_robokid(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void motion_error_kludge(uint16_t offset);
- uint8_t m_robokid_bg_bank[3];
- std::unique_ptr<uint8_t[]> m_robokid_bg_videoram[3];
-};
-
-class omegaf_state : public robokid_state
-{
-public:
- omegaf_state(const machine_config &mconfig, device_type type, const char *tag) :
- robokid_state(mconfig, type, tag),
- m_dsw_io(*this, "DIPSW%u", 1U),
- m_pad_io(*this, "PAD%u", 1U)
- { }
-
- void omegaf(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- uint8_t unk_r();
- uint8_t io_protection_r(offs_t offset);
- void io_protection_w(offs_t offset, uint8_t data);
-
- void omegaf_main_cpu(address_map &map);
-
- DECLARE_VIDEO_START(omegaf);
- TILEMAP_MAPPER_MEMBER(omegaf_bg_scan);
- uint32_t screen_update_omegaf(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_ioport_array<2> m_dsw_io;
- required_ioport_array<2> m_pad_io;
-
- void io_protection_start();
- void io_protection_reset();
-
- uint8_t m_io_protection[3];
- uint8_t m_io_protection_input;
- int m_io_protection_tick;
-};
-
-#endif // MAME_INCLUDES_NINJAKD2_H
diff --git a/src/mame/includes/ninjaw.h b/src/mame/includes/ninjaw.h
deleted file mode 100644
index 5a1b8fcf8b9..00000000000
--- a/src/mame/includes/ninjaw.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves
-/*************************************************************************
-
- Taito Triple Screen Games
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_NINJAW_H
-#define MAME_INCLUDES_NINJAW_H
-
-#pragma once
-
-#include "audio/taitosnd.h"
-#include "machine/taitoio.h"
-#include "sound/flt_vol.h"
-#include "video/tc0100scn.h"
-#include "video/tc0110pcr.h"
-#include "emupal.h"
-
-
-class ninjaw_state : public driver_device
-{
-public:
- ninjaw_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_tc0140syt(*this, "tc0140syt"),
- m_tc0100scn(*this, "tc0100scn_%u", 1),
- m_tc0110pcr(*this, "tc0110pcr_%u", 1),
- m_2610_l(*this, "2610.%u.l", 1),
- m_2610_r(*this, "2610.%u.r", 1),
- m_gfxdecode(*this, "gfxdecode_%u", 1),
- m_spriteram(*this, "spriteram"),
- m_z80bank(*this, "z80bank")
- { }
-
- void darius2(machine_config &config);
- void ninjaw(machine_config &config);
-
-protected:
- virtual void device_post_load() override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<tc0140syt_device> m_tc0140syt;
- required_device_array<tc0100scn_device, 3> m_tc0100scn;
- required_device_array<tc0110pcr_device, 3> m_tc0110pcr;
- required_device_array<filter_volume_device, 2> m_2610_l;
- required_device_array<filter_volume_device, 2> m_2610_r;
- required_device_array<gfxdecode_device, 3> m_gfxdecode;
-
- /* memory pointers */
- required_shared_ptr<u16> m_spriteram;
-
- /* memory regions */
- required_memory_bank m_z80bank;
-
- /* misc */
- u16 m_cpua_ctrl;
- int m_pandata[4];
-
- void coin_control_w(u8 data);
- void cpua_ctrl_w(u16 data);
- void sound_bankswitch_w(u8 data);
- void pancontrol_w(offs_t offset, u8 data);
- void tc0100scn_triple_screen_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- u32 screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_middle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int x_offs, int y_offs, int chip);
- void parse_control();
- u32 update_screen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int xoffs, int chip);
- void darius2_master_map(address_map &map);
- void darius2_slave_map(address_map &map);
- void ninjaw_master_map(address_map &map);
- void ninjaw_slave_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NINJAW_H
diff --git a/src/mame/includes/nitedrvr.h b/src/mame/includes/nitedrvr.h
deleted file mode 100644
index c0a7e987dc0..00000000000
--- a/src/mame/includes/nitedrvr.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-/*************************************************************************
-
- Atari Night Driver hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_NITEDRVR_H
-#define MAME_INCLUDES_NITEDRVR_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-
-/* Discrete Sound Input Nodes */
-#define NITEDRVR_BANG_DATA NODE_01
-#define NITEDRVR_SKID1_EN NODE_02
-#define NITEDRVR_SKID2_EN NODE_03
-#define NITEDRVR_MOTOR_DATA NODE_04
-#define NITEDRVR_CRASH_EN NODE_05
-#define NITEDRVR_ATTRACT_EN NODE_06
-
-
-class nitedrvr_state : public driver_device
-{
-public:
- nitedrvr_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_hvc(*this, "hvc"),
- m_maincpu(*this, "maincpu"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_led(*this, "led")
- { }
-
- void nitedrvr(machine_config &config);
-
-private:
- uint8_t nitedrvr_steering_reset_r();
- void nitedrvr_steering_reset_w(uint8_t data);
- uint8_t nitedrvr_in0_r(offs_t offset);
- uint8_t nitedrvr_in1_r(offs_t offset);
- void nitedrvr_out0_w(uint8_t data);
- void nitedrvr_out1_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_nitedrvr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(nitedrvr_crash_toggle_callback);
- void draw_box(bitmap_ind16 &bitmap, const rectangle &cliprect, int bx, int by, int ex, int ey);
- void draw_roadway(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_tiles(bitmap_ind16 &bitmap, const rectangle &cliprect);
- int nitedrvr_steering();
- void nitedrvr_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_hvc;
-
- /* input */
- uint8_t m_gear;
- uint8_t m_track;
- int32_t m_steering_buf;
- int32_t m_steering_val;
- uint8_t m_crash_en;
- uint8_t m_crash_data;
- uint8_t m_crash_data_en; // IC D8
- uint8_t m_ac_line;
- int32_t m_last_steering_val;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- output_finder<> m_led;
-};
-
-/*----------- defined in audio/nitedrvr.c -----------*/
-DISCRETE_SOUND_EXTERN( nitedrvr_discrete );
-
-#endif // MAME_INCLUDES_NITEDRVR_H
diff --git a/src/mame/includes/niyanpai.h b/src/mame/includes/niyanpai.h
deleted file mode 100644
index f001d067763..00000000000
--- a/src/mame/includes/niyanpai.h
+++ /dev/null
@@ -1,113 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-
-#include "machine/tmp68301.h"
-#include "screen.h"
-#include "audio/nichisnd.h"
-#include "machine/nb1413m3.h"
-#include "emupal.h"
-
-#define VRAM_MAX 3
-
-class niyanpai_state : public driver_device
-{
-public:
- niyanpai_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag) ,
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette") { }
-
- void musobana(machine_config &config);
- void zokumahj(machine_config &config);
- void mhhonban(machine_config &config);
- void niyanpai(machine_config &config);
-
- void init_niyanpai();
-
- DECLARE_READ_LINE_MEMBER(musobana_outcoin_flag_r);
-
-private:
- enum
- {
- TIMER_BLITTER
- };
-
- required_device<tmp68301_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- // common
- int m_scrollx[VRAM_MAX];
- int m_scrolly[VRAM_MAX];
- int m_blitter_destx[VRAM_MAX];
- int m_blitter_desty[VRAM_MAX];
- int m_blitter_sizex[VRAM_MAX];
- int m_blitter_sizey[VRAM_MAX];
- int m_blitter_src_addr[VRAM_MAX];
- int m_blitter_direction_x[VRAM_MAX];
- int m_blitter_direction_y[VRAM_MAX];
- int m_dispflag[VRAM_MAX];
- int m_flipscreen[VRAM_MAX];
- int m_clutmode[VRAM_MAX];
- int m_transparency[VRAM_MAX];
- int m_clutsel[VRAM_MAX];
- int m_screen_refresh;
- int m_nb19010_busyctr;
- int m_nb19010_busyflag;
- bitmap_ind16 m_tmpbitmap[VRAM_MAX];
- std::unique_ptr<uint16_t[]> m_videoram[VRAM_MAX];
- std::unique_ptr<uint16_t[]> m_videoworkram[VRAM_MAX];
- std::unique_ptr<uint16_t[]> m_palette_ptr;
- std::unique_ptr<uint8_t[]> m_clut[VRAM_MAX];
- int m_flipscreen_old[VRAM_MAX];
- emu_timer *m_blitter_timer;
-
- // musobana and derived machine configs
- int m_musobana_inputport;
- int m_musobana_outcoin_flag;
- uint8_t m_motor_on;
-
- // common
- uint16_t dipsw_r();
- uint16_t palette_r(offs_t offset);
- void palette_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void blitter_0_w(offs_t offset, uint8_t data);
- void blitter_1_w(offs_t offset, uint8_t data);
- void blitter_2_w(offs_t offset, uint8_t data);
- uint8_t blitter_0_r(offs_t offset);
- uint8_t blitter_1_r(offs_t offset);
- uint8_t blitter_2_r(offs_t offset);
- void clut_0_w(offs_t offset, uint8_t data);
- void clut_1_w(offs_t offset, uint8_t data);
- void clut_2_w(offs_t offset, uint8_t data);
- void clutsel_0_w(uint8_t data);
- void clutsel_1_w(uint8_t data);
- void clutsel_2_w(uint8_t data);
- void tmp68301_parallel_port_w(uint16_t data);
-
- // musobana and derived machine configs
- uint16_t musobana_inputport_0_r();
- void musobana_inputport_w(uint16_t data);
-
- virtual void video_start() override;
- DECLARE_MACHINE_START(musobana);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- int blitter_r(int vram, int offset);
- void blitter_w(int vram, int offset, uint8_t data);
- void clutsel_w(int vram, uint8_t data);
- void clut_w(int vram, int offset, uint8_t data);
- void vramflip(int vram);
- void update_pixel(int vram, int x, int y);
- void gfxdraw(int vram);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- void mhhonban_map(address_map &map);
- void musobana_map(address_map &map);
- void niyanpai_map(address_map &map);
- void zokumahj_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
diff --git a/src/mame/includes/nmk16.h b/src/mame/includes/nmk16.h
deleted file mode 100644
index 10bef2e2ff5..00000000000
--- a/src/mame/includes/nmk16.h
+++ /dev/null
@@ -1,308 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni,Nicola Salmoria,Bryan McPhail,David Haywood,R. Belmont,Alex Marshall,Angelo Salese,Luca Elia
-// thanks-to:Richard Bush
-#ifndef MAME_INCLUDES_NMK16_H
-#define MAME_INCLUDES_NMK16_H
-
-#pragma once
-
-#include "audio/seibu.h"
-#include "machine/gen_latch.h"
-#include "machine/nmk004.h"
-#include "machine/timer.h"
-#include "sound/okim6295.h"
-#include "video/nmk16spr.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class nmk16_state : public driver_device, public seibu_sound_common
-{
-public:
- nmk16_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki%u", 1U),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_spritegen(*this, "spritegen"),
- m_nmk004(*this, "nmk004"),
- m_soundlatch(*this, "soundlatch"),
- m_bgvideoram(*this, "bgvideoram%u", 0U),
- m_txvideoram(*this, "txvideoram"),
- m_mainram(*this, "mainram"),
- m_gunnail_scrollram(*this, "scrollram"),
- m_spriteram(*this, "spriteram"),
- m_gunnail_scrollramy(*this, "scrollramy"),
- m_tilemap_rom(*this, "tilerom"),
- m_audiobank(*this, "audiobank"),
- m_okibank(*this, "okibank%u", 1U),
- m_dsw_io(*this, "DSW%u", 1U),
- m_in_io(*this, "IN%u", 0U),
- m_sprdma_base(0x8000)
- { }
-
- void vandyke(machine_config &config);
- void tdragon_prot(machine_config &config);
- void tdragon2(machine_config &config);
- void tharrier(machine_config &config);
- void raphero(machine_config &config);
- void tdragon(machine_config &config);
- void tdragonb(machine_config &config);
- void tdragonb2(machine_config &config);
- void gunnail(machine_config &config);
- void gunnailb(machine_config &config);
- void hachamf(machine_config &config);
- void bjtwin(machine_config &config);
- void ssmissin(machine_config &config);
- void bioship(machine_config &config);
- void macross2(machine_config &config);
- void blkheart(machine_config &config);
- void manybloc(machine_config &config);
- void acrobatm(machine_config &config);
- void strahl(machine_config &config);
- void strahljbl(machine_config &config);
- void tdragon3h(machine_config &config);
- void hachamf_prot(machine_config &config);
- void macross(machine_config &config);
- void mustang(machine_config &config);
- void mustangb(machine_config &config);
- void mustangb3(machine_config &config);
- void twinactn(machine_config &config);
- void vandykeb(machine_config &config);
-
- void init_nmk();
- void init_tharrier();
- void init_vandykeb();
- void init_tdragonb();
- void init_ssmissin();
- void init_twinactn();
- void init_hachamf_prot();
- void init_tdragon_prot();
- void init_banked_audiocpu();
- void init_gunnailb();
- void init_bjtwin();
-
-protected:
- TIMER_DEVICE_CALLBACK_MEMBER(nmk16_scanline);
- u32 screen_update_macross(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void txvideoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void flipscreen_w(u8 data);
- void tilebank_w(u8 data);
-
- void macross2_sound_bank_w(u8 data);
-
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device_array<okim6295_device, 2> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<nmk_16bit_sprite_device> m_spritegen;
- optional_device<nmk004_device> m_nmk004;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- optional_shared_ptr_array<u16, 2> m_bgvideoram;
- optional_shared_ptr<u16> m_txvideoram;
- required_shared_ptr<u16> m_mainram;
- optional_shared_ptr<u16> m_gunnail_scrollram;
- optional_shared_ptr<u8> m_spriteram;
- optional_shared_ptr<u16> m_gunnail_scrollramy;
-
- optional_region_ptr<u16> m_tilemap_rom;
- optional_memory_bank m_audiobank;
- optional_memory_bank_array<2> m_okibank;
-
- optional_ioport_array<2> m_dsw_io;
- optional_ioport_array<3> m_in_io;
-
- emu_timer *m_dma_timer;
- int m_tilerambank;
- int m_sprdma_base;
- int mask[4*2];
- std::unique_ptr<u16[]> m_spriteram_old;
- std::unique_ptr<u16[]> m_spriteram_old2;
- int m_bgbank;
- int m_bioship_background_bank;
- tilemap_t *m_bg_tilemap[2];
- tilemap_t *m_tx_tilemap;
- int m_mustang_bg_xscroll;
- u8 m_scroll[2][4];
- u16 m_vscroll[4];
- int m_prot_count;
- u8 m_input_pressed;
- u8 m_start_helper;
- u8 m_coin_count[2];
- u8 m_coin_count_frac[2];
- void mainram_strange_w(offs_t offset, u16 data/*, u16 mem_mask = ~0*/);
- u16 mainram_swapped_r(offs_t offset);
- void mainram_swapped_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void ssmissin_soundbank_w(u8 data);
- void tharrier_mcu_control_w(u16 data);
- u16 tharrier_mcu_r(offs_t offset, u16 mem_mask = ~0);
- void macross2_sound_reset_w(u16 data);
- template<unsigned Chip> void tharrier_oki_bankswitch_w(u8 data);
- void hachamf_mainram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tdragon_mainram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 vandykeb_r();
- u16 tdragonb_prot_r();
- template<unsigned Layer> void bgvideoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void mustang_scroll_w(u16 data);
- void raphero_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- template<unsigned Layer> void scroll_w(offs_t offset, u8 data);
- void bjtwin_scroll_w(offs_t offset, u8 data);
- void vandyke_scroll_w(offs_t offset, u16 data);
- void vandykeb_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void manybloc_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bioship_bank_w(u8 data);
- void nmk004_x0016_w(u16 data);
- void nmk004_bioship_x0016_w(u16 data);
- void save_protregs();
-
- void set_hacky_interrupt_timing(machine_config &config);
- void set_hacky_screen_lowres(machine_config &config);
- void set_hacky_screen_hires(machine_config &config);
-
- TILEMAP_MAPPER_MEMBER(tilemap_scan_pages);
- template<unsigned Layer, unsigned Gfx> TILE_GET_INFO_MEMBER(common_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(common_get_tx_tile_info);
- TILE_GET_INFO_MEMBER(bioship_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(bjtwin_get_bg_tile_info);
- DECLARE_VIDEO_START(macross);
- DECLARE_VIDEO_START(bioship);
- DECLARE_VIDEO_START(strahl);
- DECLARE_VIDEO_START(macross2);
- DECLARE_VIDEO_START(gunnail);
- DECLARE_VIDEO_START(bjtwin);
- void get_colour_4bit(u32 &colour, u32 &pri_mask);
- void get_colour_5bit(u32 &colour, u32 &pri_mask);
- void get_sprite_flip(u16 attr, int &flipx, int &flipy, int &code);
- u32 screen_update_tharrier(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_strahl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_bjtwin(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(dma_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(tdragon_mcu_sim);
- TIMER_DEVICE_CALLBACK_MEMBER(hachamf_mcu_sim);
- TIMER_DEVICE_CALLBACK_MEMBER(manybloc_scanline);
- void video_init();
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u16 *src);
- void bg_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer = 0);
- void tx_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void mcu_run(u8 dsw_setting);
- u8 decode_byte(u8 src, const u8 *bitp);
- u32 bjtwin_address_map_bg0(u32 addr);
- u16 decode_word(u16 src, const u8 *bitp);
- u32 bjtwin_address_map_sprites(u32 addr);
- void decode_gfx();
- void decode_tdragonb();
- void decode_ssmissin();
-
- void acrobatm_map(address_map &map);
- void bioship_map(address_map &map);
- void bjtwin_map(address_map &map);
- void gunnail_map(address_map &map);
- void gunnailb_map(address_map &map);
- void gunnailb_sound_map(address_map &map);
- void gunnailb_sound_io_map(address_map &map);
- void hachamf_map(address_map &map);
- void macross2_map(address_map &map);
- void macross2_sound_io_map(address_map &map);
- void macross2_sound_map(address_map &map);
- void macross_map(address_map &map);
- void manybloc_map(address_map &map);
- void mustang_map(address_map &map);
- void mustangb_map(address_map &map);
- void mustangb3_map(address_map &map);
- void oki1_map(address_map &map);
- void oki2_map(address_map &map);
- void raphero_map(address_map &map);
- void raphero_sound_mem_map(address_map &map);
- void ssmissin_map(address_map &map);
- void ssmissin_sound_map(address_map &map);
- void strahl_map(address_map &map);
- void strahljbl_map(address_map &map);
- void tdragon2_map(address_map &map);
- void tdragon3h_map(address_map &map);
- void tdragon3h_sound_io_map(address_map &map);
- void tdragon_map(address_map &map);
- void tdragonb_map(address_map &map);
- void tdragonb2_map(address_map &map);
- void tharrier_map(address_map &map);
- void tharrier_sound_io_map(address_map &map);
- void tharrier_sound_map(address_map &map);
- void twinactn_map(address_map &map);
- void vandyke_map(address_map &map);
- void vandykeb_map(address_map &map);
-};
-
-class afega_state : public nmk16_state
-{
-public:
- afega_state(const machine_config &mconfig, device_type type, const char *tag) :
- nmk16_state(mconfig, type, tag),
- m_afega_scroll(*this, "afega_scroll_%u", 0U)
- {}
-
- void firehawk(machine_config &config);
- void grdnstrm(machine_config &config);
- void grdnstrmk(machine_config &config);
- void popspops(machine_config &config);
- void redhawki(machine_config &config);
- void redhawkb(machine_config &config);
- void stagger1(machine_config &config);
- void spec2k(machine_config &config);
-
- void init_bubl2000();
- void init_grdnstrm();
- void init_grdnstrmau();
- void init_redfoxwp2a();
- void init_grdnstrmg();
- void init_redhawk();
- void init_redhawkg();
- void init_redhawki();
- void init_spec2k();
-
-private:
- optional_shared_ptr_array<u16, 2> m_afega_scroll;
-
- u16 afega_unknown_r();
- void spec2k_oki1_banking_w(u8 data);
- template<unsigned Scroll> void afega_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info_8bit);
- DECLARE_VIDEO_START(grdnstrm);
- u32 screen_update_afega(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_firehawk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_redhawki(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_redhawkb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_bubl2000(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void video_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int dsw_flipscreen, int xoffset, int yoffset, int attr_mask);
- void redhawki_video_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void afega_map(address_map &map);
- void afega_sound_cpu(address_map &map);
- void firehawk_map(address_map &map);
- void firehawk_sound_cpu(address_map &map);
-};
-
-class nmk16_tomagic_state : public nmk16_state
-{
-public:
- nmk16_tomagic_state(const machine_config &mconfig, device_type type, const char *tag) :
- nmk16_state(mconfig, type, tag)
- {}
-
- void tomagic(machine_config &config);
-
- void init_tomagic();
-
-private:
- void tomagic_map(address_map &map);
- void tomagic_sound_map(address_map &map);
- void tomagic_sound_io_map(address_map &map);
-};
-
-#endif //MAME_INCLUDES_NMK16_H
diff --git a/src/mame/includes/norautp.h b/src/mame/includes/norautp.h
deleted file mode 100644
index 05759f970b8..00000000000
--- a/src/mame/includes/norautp.h
+++ /dev/null
@@ -1,100 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese, Roberto Fresca
-#ifndef MAME_INCLUDES_NORAUTP_H
-#define MAME_INCLUDES_NORAUTP_H
-
-#pragma once
-
-#include "machine/i8255.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-/* Discrete Sound Input Nodes */
-#define NORAUTP_SND_EN NODE_01
-#define NORAUTP_FREQ_DATA NODE_02
-
-
-class norautp_state : public driver_device
-{
-public:
- norautp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ppi8255(*this, "ppi8255_%u", 0),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void noraut_base(machine_config &config);
- void kimble(machine_config &config);
- void kimbldhl(machine_config &config);
- void norautp(machine_config &config);
- void norautx4(machine_config &config);
- void norautpl(machine_config &config);
- void newhilop(machine_config &config);
- void dphltest(machine_config &config);
- void nortest1(machine_config &config);
- void ssjkrpkr(machine_config &config);
- void dphl(machine_config &config);
- void dphla(machine_config &config);
- void drhl(machine_config &config);
- void norautxp(machine_config &config);
- void cgidjp(machine_config &config);
- void cdrawpkr(machine_config &config);
-
- void init_ssa();
- void init_enc();
- void init_deb();
-
-protected:
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
-
-private:
- DECLARE_WRITE_LINE_MEMBER(ppi2_obf_w);
- TIMER_CALLBACK_MEMBER(ppi2_ack);
- uint8_t test2_r();
- void mainlamps_w(uint8_t data);
- void soundlamps_w(uint8_t data);
- void counterlamps_w(uint8_t data);
- void norautp_palette(palette_device &palette) const;
- uint32_t screen_update_norautp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void cgidjp_map(address_map &map);
- void cgidjp_opcodes_map(address_map &map);
- void dphl_map(address_map &map);
- void dphla_map(address_map &map);
- void dphltest_map(address_map &map);
- void drhl_map(address_map &map);
- void kimbldhl_map(address_map &map);
- void kimble_map(address_map &map);
- void newhilop_map(address_map &map);
- void norautp_map(address_map &map);
- void norautp_portmap(address_map &map);
- void norautx4_map(address_map &map);
- void norautx8_map(address_map &map);
- void norautxp_map(address_map &map);
- void norautxp_portmap(address_map &map);
- void nortest1_map(address_map &map);
- void ssjkrpkr_map(address_map &map);
-
- std::unique_ptr<uint16_t[]> m_np_vram;
- required_device<cpu_device> m_maincpu;
- required_device_array<i8255_device, 3> m_ppi8255;
- required_device<discrete_sound_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- output_finder<12> m_lamps;
-};
-
-/*----------- defined in audio/norautp.c -----------*/
-DISCRETE_SOUND_EXTERN( norautp_discrete );
-DISCRETE_SOUND_EXTERN( dphl_discrete );
-DISCRETE_SOUND_EXTERN( kimble_discrete );
-
-#endif // MAME_INCLUDES_NORAUTP_H
diff --git a/src/mame/includes/nova2001.h b/src/mame/includes/nova2001.h
deleted file mode 100644
index 409dd9bdc1d..00000000000
--- a/src/mame/includes/nova2001.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Howie Cohen, Frank Palazzolo, Alex Pasadyn, David Haywood, Phil Stroffolino, Uki
-#ifndef MAME_INCLUDES_NOVA2001_H
-#define MAME_INCLUDES_NOVA2001_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class nova2001_state : public driver_device
-{
-public:
- nova2001_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_fg_videoram(*this, "fg_videoram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "palette", 768, ENDIANNESS_LITTLE)
- { }
-
- void raiders5(machine_config &config);
- void ninjakun(machine_config &config);
- void nova2001(machine_config &config);
- void pkunwar(machine_config &config);
-
- void init_raiders5();
- void init_pkunwar();
-
- DECLARE_CUSTOM_INPUT_MEMBER(ninjakun_io_A002_ctrl_r);
-
-private:
- required_device<z80_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- optional_shared_ptr<u8> m_fg_videoram;
- required_shared_ptr<u8> m_bg_videoram;
- optional_shared_ptr<u8> m_spriteram;
- memory_share_creator<u8> m_paletteram;
-
- u8 m_ninjakun_io_a002_ctrl;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- void ninjakun_cpu1_io_A002_w(u8 data);
- void ninjakun_cpu2_io_A002_w(u8 data);
- void paletteram_w(offs_t offset, u8 data);
- u8 paletteram_r(offs_t offset);
- void fg_videoram_w(offs_t offset, u8 data);
- void nova2001_bg_videoram_w(offs_t offset, u8 data);
- void ninjakun_bg_videoram_w(offs_t offset, u8 data);
- u8 ninjakun_bg_videoram_r(offs_t offset);
- void scroll_x_w(u8 data);
- void scroll_y_w(u8 data);
- void nova2001_flipscreen_w(u8 data);
- void pkunwar_flipscreen_w(u8 data);
-
- DECLARE_VIDEO_START(nova2001);
- void nova2001_palette(palette_device &palette) const;
- static rgb_t BBGGRRII(u32 raw);
- DECLARE_MACHINE_START(ninjakun);
- DECLARE_VIDEO_START(ninjakun);
- DECLARE_VIDEO_START(pkunwar);
- DECLARE_VIDEO_START(raiders5);
-
- TILE_GET_INFO_MEMBER(nova2001_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(nova2001_get_fg_tile_info);
- TILE_GET_INFO_MEMBER(ninjakun_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(ninjakun_get_fg_tile_info);
- TILE_GET_INFO_MEMBER(pkunwar_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(raiders5_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(raiders5_get_fg_tile_info);
-
- u32 screen_update_nova2001(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_ninjakun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_pkunwar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_raiders5(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void nova2001_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void pkunwar_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void lineswap_gfx_roms(const char *region, const int bit);
- void ninjakun_cpu1_map(address_map &map);
- void ninjakun_cpu2_map(address_map &map);
- void ninjakun_shared_map(address_map &map);
- void nova2001_map(address_map &map);
- void pkunwar_io(address_map &map);
- void pkunwar_map(address_map &map);
- void raiders5_cpu1_map(address_map &map);
- void raiders5_cpu2_map(address_map &map);
- void raiders5_io(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NOVA2001_H
diff --git a/src/mame/includes/nycaptor.h b/src/mame/includes/nycaptor.h
deleted file mode 100644
index 9a9f6b8521d..00000000000
--- a/src/mame/includes/nycaptor.h
+++ /dev/null
@@ -1,122 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-#ifndef MAME_INCLUDES_NYCAPTOR_H
-#define MAME_INCLUDES_NYCAPTOR_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "sound/msm5232.h"
-#include "machine/taito68705interface.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class nycaptor_state : public driver_device
-{
-public:
- nycaptor_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_scrlram(*this, "scrlram"),
- m_sharedram(*this, "sharedram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_subcpu(*this, "sub"),
- m_bmcu(*this, "bmcu"),
- m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_soundnmi(*this, "soundnmi")
- { }
-
- void nycaptor(machine_config &config);
- void cyclshtg(machine_config &config);
- void bronx(machine_config &config);
-
- void init_cyclshtg();
- void init_colt();
- void init_bronx();
- void init_nycaptor();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_scrlram;
- required_shared_ptr<uint8_t> m_sharedram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- std::vector<uint8_t> m_paletteram;
- std::vector<uint8_t> m_paletteram_ext;
- uint8_t m_gfxctrl;
- uint8_t m_char_bank;
- uint8_t m_palette_bank;
-
- /* misc */
- int m_generic_control_reg;
- int m_gametype;
- int m_mask;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- optional_device<taito68705_mcu_device> m_bmcu;
- required_device<msm5232_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
- required_device<input_merger_device> m_soundnmi;
-
- void sub_cpu_halt_w(uint8_t data);
- uint8_t nycaptor_b_r();
- uint8_t nycaptor_by_r();
- uint8_t nycaptor_bx_r();
- void sound_cpu_reset_w(uint8_t data);
- void nmi_disable_w(uint8_t data);
- void nmi_enable_w(uint8_t data);
- uint8_t nycaptor_generic_control_r();
- void nycaptor_generic_control_w(uint8_t data);
- uint8_t cyclshtg_mcu_status_r();
- uint8_t cyclshtg_mcu_r();
- void cyclshtg_mcu_w(uint8_t data);
- uint8_t cyclshtg_mcu_status_r1();
- void cyclshtg_generic_control_w(uint8_t data);
- uint8_t unk_r();
-
- uint8_t nycaptor_mcu_status_r1();
- uint8_t nycaptor_mcu_status_r2();
- uint8_t sound_status_r();
- void nycaptor_videoram_w(offs_t offset, uint8_t data);
- void nycaptor_palette_w(offs_t offset, uint8_t data);
- uint8_t nycaptor_palette_r(offs_t offset);
- void nycaptor_gfxctrl_w(uint8_t data);
- uint8_t nycaptor_gfxctrl_r();
- void nycaptor_scrlram_w(offs_t offset, uint8_t data);
- void unk_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update_nycaptor(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- int nycaptor_spot();
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri);
- void bronx_master_map(address_map &map);
- void bronx_slave_io_map(address_map &map);
- void bronx_slave_map(address_map &map);
- void cyclshtg_master_map(address_map &map);
- void cyclshtg_slave_map(address_map &map);
- void nycaptor_master_map(address_map &map);
- void nycaptor_slave_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_NYCAPTOR_H
diff --git a/src/mame/includes/ob68k1a.h b/src/mame/includes/ob68k1a.h
deleted file mode 100644
index a2df4e01c63..00000000000
--- a/src/mame/includes/ob68k1a.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_OB68K1A_H
-#define MAME_INCLUDES_OB68K1A_H
-
-#pragma once
-
-#include "bus/rs232/rs232.h"
-#include "cpu/m68000/m68000.h"
-#include "machine/6821pia.h"
-#include "machine/6840ptm.h"
-#include "machine/6850acia.h"
-#include "machine/com8116.h"
-#include "machine/ram.h"
-
-#define MC68000L10_TAG "u50"
-#define MC6821_0_TAG "u32"
-#define MC6821_1_TAG "u33"
-#define MC6840_TAG "u35"
-#define MC6850_0_TAG "u34"
-#define MC6850_1_TAG "u26"
-#define COM8116_TAG "u56"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-
-class ob68k1a_state : public driver_device
-{
-public:
- ob68k1a_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, MC68000L10_TAG)
- , m_dbrg(*this, COM8116_TAG)
- , m_acia0(*this, MC6850_0_TAG)
- , m_acia1(*this, MC6850_1_TAG)
- , m_pia0(*this, MC6821_0_TAG)
- , m_pia1(*this, MC6821_1_TAG)
- , m_rs232a(*this, RS232_A_TAG)
- , m_rs232b(*this, RS232_B_TAG)
- , m_ram(*this, RAM_TAG)
- { }
-
- void ob68k1a(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<com8116_device> m_dbrg;
- required_device<acia6850_device> m_acia0;
- required_device<acia6850_device> m_acia1;
- required_device<pia6821_device> m_pia0;
- required_device<pia6821_device> m_pia1;
- required_device<rs232_port_device> m_rs232a;
- required_device<rs232_port_device> m_rs232b;
- required_device<ram_device> m_ram;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t pia_r(offs_t offset);
- void pia_w(offs_t offset, uint8_t data);
- void ob68k1a_mem(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/offtwall.h b/src/mame/includes/offtwall.h
deleted file mode 100644
index 488f26957cf..00000000000
--- a/src/mame/includes/offtwall.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari "Round" hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_OFFTWALL_H
-#define MAME_INCLUDES_OFFTWALL_H
-
-#pragma once
-
-#include "audio/atarijsa.h"
-#include "video/atarimo.h"
-#include "video/atarivad.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class offtwall_state : public driver_device
-{
-public:
- offtwall_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_jsa(*this, "jsa"),
- m_vad(*this, "vad"),
- m_mainram(*this, "mainram"),
- m_bankrom_base(*this, "maincpu")
- { }
-
- void offtwall(machine_config &config);
-
- void init_offtwall();
- void init_offtwalc();
-
-private:
- void io_latch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t bankswitch_r(offs_t offset);
- uint16_t bankrom_r(address_space &space, offs_t offset);
- uint16_t spritecache_count_r(offs_t offset);
- uint16_t unknown_verify_r(offs_t offset);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- uint32_t screen_update_offtwall(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<atari_jsa_iii_device> m_jsa;
- required_device<atari_vad_device> m_vad;
- required_shared_ptr<uint16_t> m_mainram;
-
- uint16_t *m_bankswitch_base;
- required_region_ptr<uint16_t> m_bankrom_base;
- uint32_t m_bank_offset;
-
- uint16_t *m_spritecache_count;
- uint16_t *m_unknown_verify_base;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_OFFTWALL_H
diff --git a/src/mame/includes/ohmygod.h b/src/mame/includes/ohmygod.h
deleted file mode 100644
index df7a2d2c175..00000000000
--- a/src/mame/includes/ohmygod.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Oh My God!
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_OHMYGOD_H
-#define MAME_INCLUDES_OHMYGOD_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class ohmygod_state : public driver_device
-{
-public:
- ohmygod_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void ohmygod(machine_config &config);
-
- void init_ohmygod();
- void init_naname();
-
-private:
- void ohmygod_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ohmygod_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ohmygod_spritebank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ohmygod_scrollx_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ohmygod_scrolly_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_ohmygod(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void ohmygod_map(address_map &map);
- void oki_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_spritebank;
- uint16_t m_scrollx;
- uint16_t m_scrolly;
-
- /* misc */
- int m_adpcm_bank_shift;
- int m_sndbank;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-};
-
-#endif // MAME_INCLUDES_OHMYGOD_H
diff --git a/src/mame/includes/ojankohs.h b/src/mame/includes/ojankohs.h
deleted file mode 100644
index 1d092da76cf..00000000000
--- a/src/mame/includes/ojankohs.h
+++ /dev/null
@@ -1,163 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi, Uki
-/*************************************************************************
-
- Ojanko High School & other Video System mahjong series
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_OJANKOHS_H
-#define MAME_INCLUDES_OJANKOHS_H
-
-#pragma once
-
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class ojankohs_state : public driver_device
-{
-public:
- ojankohs_state(const machine_config &mconfig, device_type type, const char *tag) :
- ojankohs_state(mconfig, type, tag, 0x1000, 0x800)
- { }
-
- void ojankohs(machine_config &config);
- void ccasino(machine_config &config);
- void ojankoc(machine_config &config);
- void ojankoy(machine_config &config);
-
-protected:
- ojankohs_state(const machine_config &mconfig, device_type type, const char *tag, uint32_t vramsize, uint32_t pramsize) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram", vramsize, ENDIANNESS_LITTLE),
- m_colorram(*this, "colorram", 0x1000, ENDIANNESS_LITTLE),
- m_paletteram(*this, "paletteram", pramsize, ENDIANNESS_LITTLE),
- m_maincpu(*this, "maincpu"),
- m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_coin(*this, "coin"),
- m_inputs_p1(*this, {"p1_0", "p1_1", "p1_2", "p1_3"}),
- m_inputs_p2(*this, {"p2_0", "p2_1", "p2_2", "p2_3"}),
- m_inputs_p1_extra(*this, "p1_4"),
- m_inputs_p2_extra(*this, "p2_4"),
- m_dsw1(*this, "dsw1"), m_dsw2(*this, "dsw2"),
- m_dsw3(*this, "dsw3"), m_dsw4(*this, "dsw4")
- { }
-
- virtual void machine_reset() override;
-
-private:
- /* memory pointers */
- memory_share_creator<uint8_t> m_videoram;
- memory_share_creator<uint8_t> m_colorram;
- memory_share_creator<uint8_t> m_paletteram;
-
- /* video-related */
- tilemap_t *m_tilemap;
- bitmap_ind16 m_tmpbitmap;
- int m_gfxreg;
- int m_flipscreen;
- int m_flipscreen_old;
- int m_scrollx;
- int m_scrolly;
- int m_screen_refresh;
-
- /* misc */
- uint8_t m_port_select;
- int m_adpcm_reset;
- int m_adpcm_data;
- int m_vclk_left;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<msm5205_device> m_msm;
- optional_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_ioport m_coin;
- required_ioport_array<4> m_inputs_p1;
- required_ioport_array<4> m_inputs_p2;
- optional_ioport m_inputs_p1_extra;
- optional_ioport m_inputs_p2_extra;
- required_ioport m_dsw1;
- required_ioport m_dsw2;
- optional_ioport m_dsw3;
- optional_ioport m_dsw4;
-
- void ojankohs_rombank_w(uint8_t data);
- void ojankoy_rombank_w(uint8_t data);
- void ojankohs_msm5205_w(uint8_t data);
- void ojankoc_ctrl_w(uint8_t data);
- void port_select_w(uint8_t data);
- uint8_t keymatrix_p1_r();
- uint8_t keymatrix_p2_r();
- uint8_t ojankoc_keymatrix_p1_r();
- uint8_t ojankoc_keymatrix_p2_r();
- uint8_t ccasino_dipsw3_r();
- uint8_t ccasino_dipsw4_r();
- void ojankoy_coinctr_w(uint8_t data);
- void ccasino_coinctr_w(uint8_t data);
- void ojankohs_palette_w(offs_t offset, uint8_t data);
- void ccasino_palette_w(offs_t offset, uint8_t data);
- void ojankoc_palette_w(offs_t offset, uint8_t data);
- void ojankohs_videoram_w(offs_t offset, uint8_t data);
- void ojankohs_colorram_w(offs_t offset, uint8_t data);
- void ojankohs_gfxreg_w(uint8_t data);
- void ojankohs_flipscreen_w(uint8_t data);
- void ojankoc_videoram_w(offs_t offset, uint8_t data);
- void ojankohs_adpcm_reset_w(uint8_t data);
- uint8_t ojankohs_dipsw1_r();
- uint8_t ojankohs_dipsw2_r();
- TILE_GET_INFO_MEMBER(ojankohs_get_tile_info);
- TILE_GET_INFO_MEMBER(ojankoy_get_tile_info);
- DECLARE_MACHINE_START(ojankohs);
- DECLARE_VIDEO_START(ojankohs);
- DECLARE_MACHINE_START(ojankoy);
- DECLARE_VIDEO_START(ojankoy);
- void ojankoy_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(ccasino);
- DECLARE_MACHINE_START(ojankoc);
- DECLARE_VIDEO_START(ojankoc);
- DECLARE_MACHINE_START(common);
- uint32_t screen_update_ojankohs(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ojankoc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void ojankoc_flipscreen(int data);
- DECLARE_WRITE_LINE_MEMBER(ojankohs_adpcm_int);
-
- void ccasino_io_map(address_map &map);
- void ojankoc_io_map(address_map &map);
- void ojankoc_map(address_map &map);
- void ojankohs_io_map(address_map &map);
- void ojankohs_map(address_map &map);
- void ojankoy_io_map(address_map &map);
- void ojankoy_map(address_map &map);
-};
-
-class ojankoy_state : public ojankohs_state
-{
-public:
- ojankoy_state(const machine_config &mconfig, device_type type, const char *tag) :
- ojankohs_state(mconfig, type, tag, 0x2000, 0x800)
- { }
-};
-
-class ccasino_state : public ojankohs_state
-{
-public:
- ccasino_state(const machine_config &mconfig, device_type type, const char *tag) :
- ojankohs_state(mconfig, type, tag, 0x2000, 0x800)
- { }
-};
-
-class ojankoc_state : public ojankohs_state
-{
-public:
- ojankoc_state(const machine_config &mconfig, device_type type, const char *tag) :
- ojankohs_state(mconfig, type, tag, 0x8000, 0x20)
- { }
-};
-
-#endif // MAME_INCLUDES_OJANKOHS_H
diff --git a/src/mame/includes/ondra.h b/src/mame/includes/ondra.h
deleted file mode 100644
index cbd06467788..00000000000
--- a/src/mame/includes/ondra.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/ondra.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_ONDRA_H
-#define MAME_INCLUDES_ONDRA_H
-
-#pragma once
-
-#include "imagedev/cassette.h"
-#include "sound/beep.h"
-#include "machine/ram.h"
-
-class ondra_state : public driver_device
-{
-public:
- ondra_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_cassette(*this, "cassette")
- , m_ram(*this, RAM_TAG)
- , m_rom(*this, "maincpu")
- , m_bank1(*this, "bank1")
- , m_bank3(*this, "bank3")
- , m_beep(*this, "beeper")
- , m_io_keyboard(*this, "LINE%u", 0U)
- { }
-
- void ondra(machine_config &config);
- DECLARE_INPUT_CHANGED_MEMBER(nmi_button);
-
-private:
- u8 keyboard_r(offs_t offset);
- void port03_w(u8 data);
- u8 port09_r();
- void port0a_w(u8 data);
- u32 screen_update_ondra(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- void io_map(address_map &map);
- void mem_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void update_banks();
-
- bool m_video_enable;
- u8 m_bank_status;
- u8 m_bank_old;
-
- required_device<cpu_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- required_memory_bank m_bank1;
- required_memory_bank m_bank3;
- required_device<beep_device> m_beep;
- required_ioport_array<10> m_io_keyboard;
-};
-
-#endif // MAME_INCLUDES_ONDRA_H
diff --git a/src/mame/includes/oneshot.h b/src/mame/includes/oneshot.h
deleted file mode 100644
index 5d411762cb5..00000000000
--- a/src/mame/includes/oneshot.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Paul Priest
-#ifndef MAME_INCLUDES_ONESHOT_H
-#define MAME_INCLUDES_ONESHOT_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class oneshot_state : public driver_device
-{
-public:
- oneshot_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_mid_videoram(*this, "mid_videoram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_scroll(*this, "scroll"),
- m_io_dsw1(*this, "DSW1"),
- m_io_lightgun_x(*this, "LIGHT%u_X", 0U),
- m_io_lightgun_y(*this, "LIGHT%u_Y", 0U),
- m_maincpu(*this, "maincpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void maddonna(machine_config &config);
- void komocomo(machine_config &config);
- void oneshot(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr<u16> m_bg_videoram;
- required_shared_ptr<u16> m_mid_videoram;
- required_shared_ptr<u16> m_fg_videoram;
- required_shared_ptr<u16> m_scroll;
-
- optional_ioport m_io_dsw1;
- optional_ioport_array<2> m_io_lightgun_x;
- optional_ioport_array<2> m_io_lightgun_y;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_mid_tilemap;
- tilemap_t *m_fg_tilemap;
-
- /* misc */
- int m_gun_x_p1;
- int m_gun_y_p1;
- int m_gun_x_p2;
- int m_gun_y_p2;
- int m_gun_x_shift;
- int m_p1_wobble;
- int m_p2_wobble;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- u16 oneshot_in0_word_r();
- u16 oneshot_gun_x_p1_r();
- u16 oneshot_gun_y_p1_r();
- u16 oneshot_gun_x_p2_r();
- u16 oneshot_gun_y_p2_r();
- void bg_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void mid_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void fg_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void soundbank_w(u8 data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_mid_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- u32 screen_update_oneshot(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_maddonna(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_komocomo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_crosshairs();
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void mem_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ONESHOT_H
diff --git a/src/mame/includes/orbit.h b/src/mame/includes/orbit.h
deleted file mode 100644
index 55bd794c264..00000000000
--- a/src/mame/includes/orbit.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-/*************************************************************************
-
- Atari Orbit hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ORBIT_H
-#define MAME_INCLUDES_ORBIT_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/timer.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-#define ORBIT_NOTE_FREQ NODE_01
-#define ORBIT_ANOTE1_AMP NODE_02
-#define ORBIT_ANOTE2_AMP NODE_03
-#define ORBIT_NOISE1_AMP NODE_04
-#define ORBIT_NOISE2_AMP NODE_05
-#define ORBIT_WARNING_EN NODE_06
-#define ORBIT_NOISE_EN NODE_07
-
-class orbit_state : public driver_device
-{
-public:
- orbit_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_playfield_ram(*this, "playfield_ram"),
- m_sprite_ram(*this, "sprite_ram"),
- m_discrete(*this, "discrete"),
- m_bg_tilemap(nullptr),
- m_flip_screen(0),
- m_latch(*this, "latch"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void orbit(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_w);
- void playfield_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(interrupt);
- TIMER_CALLBACK_MEMBER(irq_off);
- TIMER_DEVICE_CALLBACK_MEMBER(nmi_32v);
- void note_w(uint8_t data);
- void note_amp_w(uint8_t data);
- void noise_amp_w(uint8_t data);
- void noise_rst_w(uint8_t data);
-
- void main_map(address_map &map);
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void update_misc_flags(address_space &space, uint8_t val);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_playfield_ram;
- required_shared_ptr<uint8_t> m_sprite_ram;
-
- required_device<discrete_sound_device> m_discrete;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_flip_screen;
- emu_timer *m_irq_off_timer;
-
- /* devices */
- required_device<f9334_device> m_latch;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-};
-/*----------- defined in audio/orbit.c -----------*/
-
-DISCRETE_SOUND_EXTERN( orbit_discrete );
-
-#endif // MAME_INCLUDES_ORBIT_H
diff --git a/src/mame/includes/orion.h b/src/mame/includes/orion.h
deleted file mode 100644
index 8558f386de5..00000000000
--- a/src/mame/includes/orion.h
+++ /dev/null
@@ -1,170 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/orion.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_ORION_H
-#define MAME_INCLUDES_ORION_H
-
-#pragma once
-
-#include "includes/radio86.h"
-
-#include "cpu/i8085/i8085.h"
-#include "cpu/z80/z80.h"
-
-#include "imagedev/floppy.h"
-
-#include "machine/i8255.h"
-#include "machine/mc146818.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-
-#include "sound/ay8910.h"
-#include "sound/spkrdev.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-class orion_state : public radio86_state
-{
-public:
- orion_state(const machine_config &mconfig, device_type type, const char *tag)
- : radio86_state(mconfig, type, tag)
- , m_fdc(*this, "fd1793")
- , m_ram(*this, RAM_TAG)
- , m_fd0(*this, "fd0")
- , m_fd1(*this, "fd1")
- , m_fd2(*this, "fd2")
- , m_fd3(*this, "fd3")
- , m_rtc(*this, "rtc")
- , m_speaker(*this, "speaker")
- , m_ay8912(*this, "ay8912")
- , m_bank2(*this, "bank2")
- , m_bank3(*this, "bank3")
- , m_bank4(*this, "bank4")
- , m_bank5(*this, "bank5")
- , m_bank6(*this, "bank6")
- , m_bank7(*this, "bank7")
- , m_bank8(*this, "bank8")
- , m_screen(*this, "screen")
- { }
-
- void orion128ms(machine_config &config);
- void orion128(machine_config &config);
-
-protected:
- uint8_t orion128_system_r(offs_t offset);
- void orion128_system_w(offs_t offset, uint8_t data);
- uint8_t orion128_romdisk_r(offs_t offset);
- void orion128_romdisk_w(offs_t offset, uint8_t data);
- void orion128_video_mode_w(uint8_t data);
- void orion128_video_page_w(uint8_t data);
- void orion128_memory_page_w(uint8_t data);
- void orion_disk_control_w(uint8_t data);
- uint8_t orion128_floppy_r(offs_t offset);
- void orion128_floppy_w(offs_t offset, uint8_t data);
- uint8_t orionz80_floppy_rtc_r(offs_t offset);
- void orionz80_floppy_rtc_w(offs_t offset, uint8_t data);
- void orionz80_sound_w(uint8_t data);
- void orionz80_sound_fe_w(uint8_t data);
- void orionz80_memory_page_w(uint8_t data);
- void orionz80_dispatcher_w(uint8_t data);
- uint8_t orionz80_io_r(offs_t offset);
- void orionz80_io_w(offs_t offset, uint8_t data);
- void orionpro_memory_page_w(uint8_t data);
- uint8_t orionpro_io_r(offs_t offset);
- void orionpro_io_w(offs_t offset, uint8_t data);
- DECLARE_MACHINE_START(orion128);
- void orion128_palette(palette_device &palette) const;
- uint32_t screen_update_orion128(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(orionz80_interrupt);
- uint8_t orion_romdisk_porta_r();
- void orion_romdisk_portb_w(uint8_t data);
- void orion_romdisk_portc_w(uint8_t data);
- static void orion_floppy_formats(format_registration &fr);
- void machine_start() override;
-
- uint8_t m_orion128_video_mode;
- uint8_t m_orion128_video_page;
- uint8_t m_orion128_video_width;
- uint8_t m_video_mode_mask;
- uint8_t m_orionpro_pseudo_color;
- uint8_t m_romdisk_lsb;
- uint8_t m_romdisk_msb;
- uint8_t m_orion128_memory_page;
- uint8_t m_orionz80_memory_page;
- uint8_t m_orionz80_dispatcher;
- uint8_t m_speaker_data;
- uint8_t m_orionpro_ram0_segment;
- uint8_t m_orionpro_ram1_segment;
- uint8_t m_orionpro_ram2_segment;
- uint8_t m_orionpro_page;
- uint8_t m_orionpro_128_page;
- uint8_t m_orionpro_rom2_segment;
- uint8_t m_orionpro_dispatcher;
-
- required_device<fd1793_device> m_fdc;
-
- required_device<ram_device> m_ram;
- required_device<floppy_connector> m_fd0;
- required_device<floppy_connector> m_fd1;
- required_device<floppy_connector> m_fd2;
- required_device<floppy_connector> m_fd3;
- optional_device<mc146818_device> m_rtc;
- optional_device<speaker_sound_device> m_speaker;
- optional_device<ay8910_device> m_ay8912;
- required_memory_bank m_bank2;
- optional_memory_bank m_bank3;
- optional_memory_bank m_bank4;
- optional_memory_bank m_bank5;
- optional_memory_bank m_bank6;
- optional_memory_bank m_bank7;
- optional_memory_bank m_bank8;
- required_device<screen_device> m_screen;
-
- void orionz80_switch_bank();
- void orion_set_video_mode(int width);
- void orionpro_bank_switch();
-
-private:
- void machine_reset() override;
- void io_map(address_map &map);
- void mem_map(address_map &map);
-};
-
-class orion_z80_state : public orion_state
-{
-public:
- orion_z80_state(const machine_config &mconfig, device_type type, const char *tag)
- : orion_state(mconfig, type, tag)
- { }
-
- void orionz80(machine_config &config);
- void orionz80ms(machine_config &config);
-
-private:
- void machine_reset() override;
- void io_map(address_map &map);
- void mem_map(address_map &map);
-};
-
-class orion_pro_state : public orion_state
-{
-public:
- orion_pro_state(const machine_config &mconfig, device_type type, const char *tag)
- : orion_state(mconfig, type, tag)
- { }
-
- void orionpro(machine_config &config);
-
-private:
- void machine_reset() override;
- void io_map(address_map &map);
- void mem_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ORION_H
diff --git a/src/mame/includes/osborne1.h b/src/mame/includes/osborne1.h
deleted file mode 100644
index 6fd060f111f..00000000000
--- a/src/mame/includes/osborne1.h
+++ /dev/null
@@ -1,222 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol,Vas Crabb
-/*****************************************************************************
- *
- * includes/osborne1.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_OSBORNE1_H
-#define MAME_INCLUDES_OSBORNE1_H
-
-#pragma once
-
-#include "bus/ieee488/ieee488.h"
-
-#include "cpu/z80/z80.h"
-
-#include "imagedev/floppy.h"
-
-#include "machine/6821pia.h"
-#include "machine/6850acia.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-
-#include "sound/spkrdev.h"
-
-#include "video/mc6845.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class osborne1_state : public driver_device
-{
-public:
- osborne1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_ram(*this, RAM_TAG),
- m_screen(*this, "screen"),
- m_maincpu(*this, "maincpu"),
- m_pia0(*this, "pia_0"),
- m_pia1(*this, "pia_1"),
- m_gfxdecode(*this, "gfxdecode"),
- m_speaker(*this, "speaker"),
- m_acia(*this, "acia"),
- m_fdc(*this, "mb8877"),
- m_ieee(*this, IEEE488_TAG),
- m_floppy0(*this, "mb8877:0"),
- m_floppy1(*this, "mb8877:1"),
- m_keyb_row(*this, { "ROW0", "ROW1", "ROW3", "ROW4", "ROW5", "ROW2", "ROW6", "ROW7" }),
- m_btn_reset(*this, "RESET"),
- m_cnf(*this, "CNF"),
- m_region_maincpu(*this, "maincpu"),
- m_bank_0xxx(*this, "bank_0xxx"),
- m_bank_1xxx(*this, "bank_1xxx"),
- m_bank_fxxx(*this, "bank_fxxx"),
- m_p_chargen(*this, "chargen"),
- m_video_timer(nullptr),
- m_tilemap(nullptr),
- m_acia_rxc_txc_timer(nullptr)
- {
- }
-
- void osborne1(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(reset_key);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void osborne1_base(machine_config &config);
-
- void osborne1_mem(address_map &map);
- void osborne1_op(address_map &map);
- void osborne1_io(address_map &map);
-
- void bank_0xxx_w(offs_t offset, u8 data);
- void bank_1xxx_w(offs_t offset, u8 data);
- u8 bank_2xxx_3xxx_r(offs_t offset);
- void bank_2xxx_3xxx_w(offs_t offset, u8 data);
- void videoram_w(offs_t offset, u8 data);
- u8 opcode_r(offs_t offset);
- void bankswitch_w(offs_t offset, u8 data);
- DECLARE_WRITE_LINE_MEMBER(irqack_w);
-
- bool rom_mode() const { return 0 != m_rom_mode; }
- u8 scroll_x() const { return m_scroll_x; }
-
- template <int Width, unsigned Scale> void draw_rows(uint16_t col, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_device<ram_device> m_ram;
- required_device<screen_device> m_screen;
- required_device<z80_device> m_maincpu;
- required_device<pia6821_device> m_pia0;
- required_device<pia6821_device> m_pia1;
-
-private:
- u8 ieee_pia_pb_r();
- void ieee_pia_pb_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(ieee_pia_irq_a_func);
-
- void video_pia_port_a_w(u8 data);
- void video_pia_port_b_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(video_pia_out_cb2_dummy);
- DECLARE_WRITE_LINE_MEMBER(video_pia_irq_a_func);
-
- DECLARE_WRITE_LINE_MEMBER(serial_acia_irq_func);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<speaker_sound_device> m_speaker;
- required_device<acia6850_device> m_acia;
- required_device<mb8877_device> m_fdc;
- required_device<ieee488_device> m_ieee;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
-
- TIMER_CALLBACK_MEMBER(video_callback);
- TIMER_CALLBACK_MEMBER(acia_rxc_txc_callback);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- bool set_rom_mode(u8 value);
- bool set_bit_9(u8 value);
- void update_irq();
- void update_acia_rxc_txc();
-
- // user inputs
- required_ioport_array<8> m_keyb_row;
- required_ioport m_btn_reset;
-
- // fake inputs for hardware configuration and things that need rewiring
- required_ioport m_cnf;
-
- // pieces of memory
- required_memory_region m_region_maincpu;
- required_memory_bank m_bank_0xxx;
- required_memory_bank m_bank_1xxx;
- required_memory_bank m_bank_fxxx;
- required_region_ptr<u8> m_p_chargen;
-
- // configuration (reloaded on reset)
- u8 m_acia_rxc_txc_div;
- u8 m_acia_rxc_txc_p_low;
- u8 m_acia_rxc_txc_p_high;
-
- // bank switch control bits
- u8 m_ub4a_q;
- u8 m_ub6a_q;
- u8 m_rom_mode;
- u8 m_bit_9;
-
- // onboard video state
- u8 m_scroll_x;
- u8 m_scroll_y;
- u8 m_beep_state;
- emu_timer *m_video_timer;
- tilemap_t *m_tilemap;
-
- // serial state
- u8 m_acia_irq_state;
- u8 m_acia_rxc_txc_state;
- emu_timer *m_acia_rxc_txc_timer;
-
- memory_access<16, 0, 0, ENDIANNESS_LITTLE>::cache m_mem_cache;
-};
-
-
-class osborne1sp_state : public osborne1_state
-{
-public:
- osborne1sp_state(const machine_config &mconfig, device_type type, const char *tag) :
- osborne1_state(mconfig, type, tag)
- {
- }
-
- void osborne1sp(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void osborne1sp_mem(address_map &map);
-
- u8 bank_2xxx_3xxx_r(offs_t offset);
- void bank_2xxx_3xxx_w(offs_t offset, u8 data);
-
-private:
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- // SCREEN-PAC registers
- u8 m_resolution;
- u8 m_hc_left;
-};
-
-
-class osborne1nv_state : public osborne1_state
-{
-public:
- osborne1nv_state(const machine_config &mconfig, device_type type, const char *tag) :
- osborne1_state(mconfig, type, tag),
- m_palette(*this, "palette"),
- m_p_nuevo(*this, "nuevo")
- {
- }
-
- void osborne1nv(machine_config &config);
-
-private:
- void osborne1nv_io(address_map &map);
-
- MC6845_UPDATE_ROW(crtc_update_row);
- MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr_changed);
-
- required_device<palette_device> m_palette;
- required_region_ptr<u8> m_p_nuevo;
-};
-
-#endif // MAME_INCLUDES_OSBORNE1_H
diff --git a/src/mame/includes/osi.h b/src/mame/includes/osi.h
deleted file mode 100644
index 3d459cdc7f9..00000000000
--- a/src/mame/includes/osi.h
+++ /dev/null
@@ -1,164 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder, Robbbert, Wilbert Pol
-#ifndef MAME_INCLUDES_OSI_H
-#define MAME_INCLUDES_OSI_H
-
-#pragma once
-
-
-#include "cpu/m6502/m6502.h"
-#include "formats/basicdsk.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "machine/6850acia.h"
-#include "machine/6821pia.h"
-#include "machine/timer.h"
-#include "machine/ram.h"
-#include "sound/discrete.h"
-#include "sound/beep.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-#define M6502_TAG "m6502"
-#define DISCRETE_TAG "discrete"
-
-#define X1 3932160
-#define UK101_X1 XTAL(8'000'000)
-
-#define OSI600_VIDEORAM_SIZE 0x400
-#define OSI630_COLORRAM_SIZE 0x400
-
-class sb2m600_state : public driver_device
-{
-public:
- sb2m600_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_cassbit(0)
- , m_cassold(0)
- , m_maincpu(*this, M6502_TAG)
- , m_acia(*this, "acia")
- , m_cass(*this, "cassette")
- , m_discrete(*this, DISCRETE_TAG)
- , m_ram(*this, RAM_TAG)
- , m_video_ram(*this, "video_ram")
- , m_color_ram(*this, "color_ram")
- , m_p_chargen(*this, "chargen")
- , m_io_keyboard(*this, "ROW%u", 0)
- , m_io_sound(*this, "Sound")
- , m_io_reset(*this, "Reset")
- { }
-
- void osi600(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint8_t keyboard_r();
- void keyboard_w(uint8_t data);
- void ctrl_w(uint8_t data);
- TIMER_DEVICE_CALLBACK_MEMBER(kansas_w);
- TIMER_DEVICE_CALLBACK_MEMBER(kansas_r);
-
- void floppy_index_callback(floppy_image_device *floppy, int state);
-
- void osi630_palette(palette_device &palette) const;
-
- void osi600_video(machine_config &config);
- void osi630_video(machine_config &config);
- void osi600_mem(address_map &map);
-
- uint8_t m_cass_data[4];
- bool m_cassbit;
- bool m_cassold;
- required_device<cpu_device> m_maincpu;
- required_device<acia6850_device> m_acia;
- required_device<cassette_image_device> m_cass;
- optional_device<discrete_sound_device> m_discrete;
- required_device<ram_device> m_ram;
- required_shared_ptr<uint8_t> m_video_ram;
- optional_shared_ptr<uint8_t> m_color_ram;
- required_region_ptr<u8> m_p_chargen;
- required_ioport_array<8> m_io_keyboard;
- required_ioport m_io_sound;
- required_ioport m_io_reset;
-
- /* floppy state */
- int m_fdc_index;
-
- /* keyboard state */
- uint8_t m_keylatch;
-
- /* video state */
- int m_32;
- int m_coloren;
-};
-
-class c1p_state : public sb2m600_state
-{
-public:
- c1p_state(const machine_config &mconfig, device_type type, const char *tag)
- : sb2m600_state(mconfig, type, tag)
- , m_beeper(*this, "beeper")
- , m_beep_timer(*this, "beep_timer")
- { }
-
- void init_c1p();
- void c1p(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- void osi630_ctrl_w(uint8_t data);
- void osi630_sound_w(uint8_t data);
- void c1p_mem(address_map &map);
- TIMER_DEVICE_CALLBACK_MEMBER(beep_timer);
-
- required_device<beep_device> m_beeper;
- required_device<timer_device> m_beep_timer;
-};
-
-class c1pmf_state : public c1p_state
-{
-public:
- c1pmf_state(const machine_config &mconfig, device_type type, const char *tag)
- : c1p_state(mconfig, type, tag)
- , m_floppy0(*this, "floppy0")
- , m_floppy1(*this, "floppy1")
- { }
-
- void c1pmf(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- uint8_t osi470_pia_pa_r();
- void osi470_pia_pa_w(uint8_t data);
- void osi470_pia_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( osi470_pia_cb2_w );
-
- void c1pmf_mem(address_map &map);
-
-private:
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
-};
-
-class uk101_state : public sb2m600_state
-{
-public:
- uk101_state(const machine_config &mconfig, device_type type, const char *tag)
- : sb2m600_state(mconfig, type, tag)
- { }
-
- void uk101(machine_config &config);
-
-protected:
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void keyboard_w(uint8_t data);
- void uk101_video(machine_config &config);
- void uk101_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_OSI_H
diff --git a/src/mame/includes/othunder.h b/src/mame/includes/othunder.h
deleted file mode 100644
index 2dd8e47bb7e..00000000000
--- a/src/mame/includes/othunder.h
+++ /dev/null
@@ -1,104 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves
-/*************************************************************************
-
- Operation Thunderbolt
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_OTHUNDER_H
-#define MAME_INCLUDES_OTHUNDER_H
-
-#pragma once
-
-#include "audio/taitosnd.h"
-#include "machine/eepromser.h"
-#include "machine/taitoio.h"
-#include "sound/flt_vol.h"
-#include "video/tc0100scn.h"
-#include "video/tc0110pcr.h"
-#include "emupal.h"
-
-
-class othunder_state : public driver_device
-{
-public:
- othunder_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this,"spriteram"),
- m_sprmap_rom(*this,"sprmap_rom"),
- m_z80bank(*this,"z80bank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_eeprom(*this, "eeprom"),
- m_tc0220ioc(*this, "tc0220ioc"),
- m_tc0100scn(*this, "tc0100scn"),
- m_tc0110pcr(*this, "tc0110pcr"),
- m_tc0140syt(*this, "tc0140syt"),
- m_2610_0l(*this, "2610.0l"),
- m_2610_0r(*this, "2610.0r"),
- m_2610_1l(*this, "2610.1l"),
- m_2610_1r(*this, "2610.1r"),
- m_2610_2l(*this, "2610.2l"),
- m_2610_2r(*this, "2610.2r"),
- m_gfxdecode(*this, "gfxdecode")
- { }
-
- void othunder(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, const u32 *primasks, int y_offs);
-
- void irq_ack_w(offs_t offset, u16 data);
- void eeprom_w(u8 data);
- void coins_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(adc_eoc_w);
- void sound_bankswitch_w(u8 data);
- void tc0310fam_w(offs_t offset, u8 data);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_w);
-
- void othunder_map(address_map &map);
- void z80_sound_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<u16> m_spriteram;
- required_region_ptr<u16> m_sprmap_rom;
- required_memory_bank m_z80bank;
-
- /* video-related */
- struct tempsprite
- {
- u32 code,color;
- bool flipx,flipy;
- int x,y;
- int zoomx,zoomy;
- u32 primask;
- };
-
- std::unique_ptr<tempsprite[]> m_spritelist;
-
- /* misc */
- int m_pan[4];
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<tc0220ioc_device> m_tc0220ioc;
- required_device<tc0100scn_device> m_tc0100scn;
- required_device<tc0110pcr_device> m_tc0110pcr;
- required_device<tc0140syt_device> m_tc0140syt;
- required_device<filter_volume_device> m_2610_0l;
- required_device<filter_volume_device> m_2610_0r;
- required_device<filter_volume_device> m_2610_1l;
- required_device<filter_volume_device> m_2610_1r;
- required_device<filter_volume_device> m_2610_2l;
- required_device<filter_volume_device> m_2610_2r;
- required_device<gfxdecode_device> m_gfxdecode;
-};
-
-#endif // MAME_INCLUDES_OTHUNDER_H
diff --git a/src/mame/includes/overdriv.h b/src/mame/includes/overdriv.h
deleted file mode 100644
index 2f01f5a1225..00000000000
--- a/src/mame/includes/overdriv.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Over Drive
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_OVERDRIV_H
-#define MAME_INCLUDES_OVERDRIV_H
-
-#pragma once
-
-#include "machine/k053252.h"
-#include "machine/timer.h"
-#include "video/k051316.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/k053251.h"
-#include "video/konami_helper.h"
-#include "screen.h"
-
-class overdriv_state : public driver_device
-{
-public:
- overdriv_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "sub")
- , m_audiocpu(*this, "audiocpu")
- , m_k051316_1(*this, "k051316_1")
- , m_k051316_2(*this, "k051316_2")
- , m_k053246(*this, "k053246")
- , m_k053251(*this, "k053251")
- , m_k053252(*this, "k053252")
- , m_screen(*this, "screen")
- , m_led(*this, "led0")
- { }
-
- void overdriv(machine_config &config);
-
-private:
- void eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cpuA_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t cpuB_ctrl_r();
- void cpuB_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void overdriv_soundirq_w(uint16_t data);
- void sound_ack_w(uint8_t data);
- void slave_irq4_assert_w(uint16_t data);
- void slave_irq5_assert_w(uint16_t data);
- void objdma_w(uint8_t data);
- TIMER_CALLBACK_MEMBER(objdma_end_cb);
-
- uint32_t screen_update_overdriv(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- //INTERRUPT_GEN_MEMBER(cpuB_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(overdriv_cpuA_scanline);
-
- K051316_CB_MEMBER(zoom_callback_1);
- K051316_CB_MEMBER(zoom_callback_2);
- K053246_CB_MEMBER(sprite_callback);
- void overdriv_master_map(address_map &map);
- void overdriv_slave_map(address_map &map);
- void overdriv_sound_map(address_map &map);
-
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- /* video-related */
- int m_zoom_colorbase[2];
- int m_road_colorbase[2];
- int m_sprite_colorbase;
- emu_timer *m_objdma_end_timer;
-
- /* misc */
- uint16_t m_cpuB_ctrl;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k051316_device> m_k051316_1;
- required_device<k051316_device> m_k051316_2;
- required_device<k053247_device> m_k053246;
- required_device<k053251_device> m_k053251;
- required_device<k053252_device> m_k053252;
- required_device<screen_device> m_screen;
- output_finder<> m_led;
- int m_fake_timer;
-};
-
-#endif // MAME_INCLUDES_OVERDRIV_H
diff --git a/src/mame/includes/p2000t.h b/src/mame/includes/p2000t.h
deleted file mode 100644
index e03976a24d2..00000000000
--- a/src/mame/includes/p2000t.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Daniels
-/*****************************************************************************
- *
- * includes/p2000t.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_P2000T_H
-#define MAME_INCLUDES_P2000T_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "sound/spkrdev.h"
-#include "video/saa5050.h"
-#include "machine/p2000t_mdcr.h"
-#include "machine/ram.h"
-#include "emupal.h"
-
-
-class p2000t_state : public driver_device
-{
-public:
- p2000t_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_videoram(*this, "videoram")
- , m_maincpu(*this, "maincpu")
- , m_speaker(*this, "speaker")
- , m_mdcr(*this, "mdcr")
- , m_ram(*this, RAM_TAG)
- , m_bank(*this, "bank")
- , m_keyboard(*this, "KEY.%u", 0)
- {
- }
-
- void p2000t(machine_config &config);
-
-protected:
- uint8_t p2000t_port_000f_r(offs_t offset);
- uint8_t p2000t_port_202f_r();
- void p2000t_port_101f_w(uint8_t data);
- void p2000t_port_303f_w(uint8_t data);
- void p2000t_port_505f_w(uint8_t data);
- void p2000t_port_707f_w(uint8_t data);
- void p2000t_port_888b_w(uint8_t data);
- void p2000t_port_8c90_w(uint8_t data);
- void p2000t_port_9494_w(uint8_t data);
- uint8_t videoram_r(offs_t offset);
- virtual void machine_start() override;
-
- INTERRUPT_GEN_MEMBER(p2000_interrupt);
-
- void p2000t_mem(address_map &map);
- void p2000t_io(address_map &map);
-
- required_shared_ptr<uint8_t> m_videoram;
-
- required_device<cpu_device> m_maincpu;
- required_device<speaker_sound_device> m_speaker;
- required_device<mdcr_device> m_mdcr;
- required_device<ram_device> m_ram;
- required_memory_bank m_bank;
-
-private:
- required_ioport_array<10> m_keyboard;
- uint8_t m_port_101f;
- uint8_t m_port_202f;
- uint8_t m_port_303f;
- uint8_t m_port_707f;
-};
-
-class p2000m_state : public p2000t_state
-{
-public:
- p2000m_state(const machine_config &mconfig, device_type type, const char *tag)
- : p2000t_state(mconfig, type, tag)
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- {
- }
-
- void p2000m(machine_config &config);
-
-protected:
- virtual void video_start() override;
- void p2000m_palette(palette_device &palette) const;
- uint32_t screen_update_p2000m(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void p2000m_mem(address_map &map);
-
-private:
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- int8_t m_frame_count;
-};
-
-#endif // MAME_INCLUDES_P2000T_H
diff --git a/src/mame/includes/pacland.h b/src/mame/includes/pacland.h
deleted file mode 100644
index 992b257ea53..00000000000
--- a/src/mame/includes/pacland.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-#ifndef MAME_INCLUDES_PACLAND_H
-#define MAME_INCLUDES_PACLAND_H
-
-#pragma once
-
-#include "cpu/m6800/m6801.h"
-#include "sound/namco.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class pacland_state : public driver_device
-{
-public:
- pacland_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_cus30(*this, "namco"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_videoram2(*this, "videoram2"),
- m_spriteram(*this, "spriteram"),
- m_color_prom(*this, "proms"),
- m_leds(*this, "led%u", 0U)
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<hd63701v0_cpu_device> m_mcu;
- required_device<namco_cus30_device> m_cus30;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_spriteram;
- required_region_ptr<uint8_t> m_color_prom;
-
- output_finder<2> m_leds;
-
- uint8_t m_palette_bank;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- bitmap_ind16 m_fg_bitmap;
- bitmap_ind16 m_sprite_bitmap;
- std::unique_ptr<uint32_t[]> m_transmask[3];
- uint16_t m_scroll0;
- uint16_t m_scroll1;
- uint8_t m_main_irq_mask;
- uint8_t m_mcu_irq_mask;
-
- void subreset_w(offs_t offset, uint8_t data);
- void flipscreen_w(offs_t offset, uint8_t data);
- uint8_t input_r(offs_t offset);
- void coin_w(uint8_t data);
- void led_w(uint8_t data);
- void irq_1_ctrl_w(offs_t offset, uint8_t data);
- void irq_2_ctrl_w(offs_t offset, uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void videoram2_w(offs_t offset, uint8_t data);
- void scroll0_w(offs_t offset, uint8_t data);
- void scroll1_w(offs_t offset, uint8_t data);
- void bankswitch_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- void pacland_palette(palette_device &palette);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void switch_palette();
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip, int whichmask);
- void draw_fg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int priority );
- void pacland(machine_config &config);
- void main_map(address_map &map);
- void mcu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PACLAND_H
diff --git a/src/mame/includes/pacman.h b/src/mame/includes/pacman.h
deleted file mode 100644
index 29d870394d9..00000000000
--- a/src/mame/includes/pacman.h
+++ /dev/null
@@ -1,330 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_PACMAN_H
-#define MAME_INCLUDES_PACMAN_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/gen_latch.h"
-#include "machine/watchdog.h"
-#include "sound/namco.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/*************************************************************************
-
- Namco PuckMan
-
-**************************************************************************/
-
-class pacman_state : public driver_device
-{
-public:
- pacman_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_mainlatch(*this, "mainlatch")
- , m_namco_sound(*this, "namco")
- , m_watchdog(*this, "watchdog")
- , m_spriteram(*this, "spriteram")
- , m_spriteram2(*this, "spriteram2")
- , m_s2650_spriteram(*this, "s2650_spriteram")
- , m_videoram(*this, "videoram")
- , m_colorram(*this, "colorram")
- , m_s2650games_tileram(*this, "s2650_tileram")
- , m_rocktrv2_prot_data(*this, "rocktrv2_prot")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- { }
-
-protected:
- void _8bpm_portmap(address_map &map);
- void alibaba_map(address_map &map);
- void bigbucks_map(address_map &map);
- void bigbucks_portmap(address_map &map);
- void birdiy_map(address_map &map);
- void cannonbp_map(address_map &map);
- void crushs_map(address_map &map);
- void crushs_portmap(address_map &map);
- void dremshpr_map(address_map &map);
- void dremshpr_portmap(address_map &map);
- void drivfrcp_portmap(address_map &map);
- void mspacii_portmap(address_map &map);
- void mschamp_map(address_map &map);
- void mschamp_portmap(address_map &map);
- void mspacman_map(address_map &map);
- void nmouse_portmap(address_map &map);
- void numcrash_map(address_map &map);
- void pacman_map(address_map &map);
- void pengojpm_map(address_map &map);
- void piranha_portmap(address_map &map);
- void porky_portmap(address_map &map);
- void rocktrv2_map(address_map &map);
- void s2650games_dataport(address_map &map);
- void s2650games_map(address_map &map);
- void superabc_map(address_map &map);
- void vanvan_portmap(address_map &map);
- void woodpek_map(address_map &map);
- void writeport(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- optional_device<ls259_device> m_mainlatch;
- optional_device<namco_device> m_namco_sound;
- required_device<watchdog_timer_device> m_watchdog;
- optional_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_spriteram2;
- optional_shared_ptr<uint8_t> m_s2650_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_colorram;
- optional_shared_ptr<uint8_t> m_s2650games_tileram;
- optional_shared_ptr<uint8_t> m_rocktrv2_prot_data;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- uint8_t m_cannonb_bit_to_read;
- int m_mystery;
- uint8_t m_counter;
- int m_bigbucks_bank;
- uint8_t m_rocktrv2_question_bank;
- tilemap_t *m_bg_tilemap;
- uint8_t m_charbank;
- uint8_t m_spritebank;
- uint8_t m_palettebank;
- uint8_t m_colortablebank;
- uint8_t m_flipscreen;
- uint8_t m_bgpriority;
- int m_xoffsethack;
- uint8_t m_inv_spr;
- uint8_t m_maketrax_counter;
- uint8_t m_maketrax_offset;
- int m_maketrax_disable_protection;
-
- bool m_irq_mask;
- uint8_t m_interrupt_vector;
-
- void pacman_interrupt_vector_w(uint8_t data);
- void piranha_interrupt_vector_w(uint8_t data);
- void nmouse_interrupt_vector_w(uint8_t data);
- void mspacii_interrupt_vector_w(uint8_t data);
- IRQ_CALLBACK_MEMBER(interrupt_vector_r);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_global_w);
- void alibaba_sound_w(offs_t offset, uint8_t data);
- uint8_t alibaba_mystery_1_r();
- uint8_t alibaba_mystery_2_r();
- void maketrax_protection_w(uint8_t data);
- uint8_t mbrush_prot_r(offs_t offset);
- uint8_t maketrax_special_port2_r(offs_t offset);
- uint8_t maketrax_special_port3_r(offs_t offset);
- uint8_t mschamp_kludge_r();
- void bigbucks_bank_w(uint8_t data);
- uint8_t bigbucks_question_r(offs_t offset);
- void porky_banking_w(uint8_t data);
- uint8_t drivfrcp_port1_r();
- uint8_t _8bpm_port1_r();
- uint8_t porky_port1_r();
- uint8_t rocktrv2_prot1_data_r();
- uint8_t rocktrv2_prot2_data_r();
- uint8_t rocktrv2_prot3_data_r();
- uint8_t rocktrv2_prot4_data_r();
- void rocktrv2_prot_data_w(offs_t offset, uint8_t data);
- void rocktrv2_question_bank_w(uint8_t data);
- uint8_t rocktrv2_question_r(offs_t offset);
- uint8_t pacman_read_nop();
- uint8_t mspacman_disable_decode_r_0x0038(offs_t offset);
- uint8_t mspacman_disable_decode_r_0x03b0(offs_t offset);
- uint8_t mspacman_disable_decode_r_0x1600(offs_t offset);
- uint8_t mspacman_disable_decode_r_0x2120(offs_t offset);
- uint8_t mspacman_disable_decode_r_0x3ff0(offs_t offset);
- uint8_t mspacman_disable_decode_r_0x8000(offs_t offset);
- uint8_t mspacman_disable_decode_r_0x97f0(offs_t offset);
- void mspacman_disable_decode_w(uint8_t data);
- uint8_t mspacman_enable_decode_r_0x3ff8(offs_t offset);
- void mspacman_enable_decode_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- uint8_t mspacii_protection_r(offs_t offset);
- uint8_t cannonbp_protection_r(offs_t offset);
- void pacman_videoram_w(offs_t offset, uint8_t data);
- void pacman_colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(pengo_palettebank_w);
- DECLARE_WRITE_LINE_MEMBER(pengo_colortablebank_w);
- DECLARE_WRITE_LINE_MEMBER(pengo_gfxbank_w);
- void s2650games_videoram_w(offs_t offset, uint8_t data);
- void s2650games_colorram_w(offs_t offset, uint8_t data);
- void s2650games_scroll_w(offs_t offset, uint8_t data);
- void s2650games_tilesbank_w(offs_t offset, uint8_t data);
- void jrpacman_videoram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(jrpacman_charbank_w);
- DECLARE_WRITE_LINE_MEMBER(jrpacman_spritebank_w);
- void jrpacman_scroll_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(jrpacman_bgpriority_w);
- void superabc_bank_w(uint8_t data);
-
-public:
- void init_maketrax();
- void init_drivfrcp();
- void init_mspacmbe();
- void init_ponpoko();
- void init_eyes();
- void init_woodpek();
- void init_jumpshot();
- void init_mspacii();
- void init_pacplus();
- void init_rocktrv2();
- void init_superabc();
- void init_8bpm();
- void init_porky();
- void init_mspacman();
- void init_mschamp();
- void init_mbrush();
- void init_pengomc1();
-
-protected:
- TILEMAP_MAPPER_MEMBER(pacman_scan_rows);
- TILE_GET_INFO_MEMBER(pacman_get_tile_info);
- TILE_GET_INFO_MEMBER(s2650_get_tile_info);
- TILEMAP_MAPPER_MEMBER(jrpacman_scan_rows);
- TILE_GET_INFO_MEMBER(jrpacman_get_tile_info);
- DECLARE_VIDEO_START(pacman);
- void pacman_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(birdiy);
- DECLARE_VIDEO_START(s2650games);
- DECLARE_MACHINE_RESET(mschamp);
- DECLARE_MACHINE_RESET(superabc);
- DECLARE_MACHINE_RESET(maketrax);
- DECLARE_VIDEO_START(pengo);
- DECLARE_VIDEO_START(jrpacman);
- uint32_t screen_update_pacman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_s2650games(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(periodic_irq);
- DECLARE_WRITE_LINE_MEMBER(vblank_nmi);
- DECLARE_WRITE_LINE_MEMBER(s2650_interrupt);
-
-private:
- void init_save_state();
- void jrpacman_mark_tile_dirty( int offset );
- void eyes_decode(uint8_t *data);
- void mspacman_install_patches(uint8_t *ROM);
-
-public:
- void birdiy(machine_config &config);
- void cannonbp(machine_config &config);
- void rocktrv2(machine_config &config);
- void mspacman(machine_config &config);
- void dremshpr(machine_config &config);
- void mspacii(machine_config &config);
- void mschamp(machine_config &config);
- void nmouse(machine_config &config);
- void vanvan(machine_config &config);
- void s2650games(machine_config &config);
- void woodpek(machine_config &config);
- void crushs(machine_config &config);
- void superabc(machine_config &config);
- void numcrash(machine_config &config);
- void crush4(machine_config &config);
- void bigbucks(machine_config &config);
- void porky(machine_config &config);
- void pacman(machine_config &config, bool latch = true);
- void _8bpm(machine_config &config);
- void crush2(machine_config &config);
- void korosuke(machine_config &config);
- void alibaba(machine_config &config);
- void drivfrcp(machine_config &config);
- void pengojpm(machine_config &config);
- void piranha(machine_config &config);
-
-private:
- // pacplus.c
- uint8_t pacplus_decrypt(int addr, uint8_t e);
- void pacplus_decode();
-
- // jumpshot.c
- uint8_t jumpshot_decrypt(int addr, uint8_t e);
- void jumpshot_decode();
-};
-
-
-class epospm_state : public pacman_state
-{
-public:
- using pacman_state::pacman_state;
-
- void acitya(machine_config &config);
- void theglobp(machine_config &config);
- void eeekkp(machine_config &config);
-
-protected:
- uint8_t epos_decryption_w(offs_t offset);
- DECLARE_MACHINE_START(theglobp);
- DECLARE_MACHINE_RESET(theglobp);
- DECLARE_MACHINE_START(eeekkp);
- DECLARE_MACHINE_RESET(eeekkp);
- DECLARE_MACHINE_START(acitya);
- DECLARE_MACHINE_RESET(acitya);
-
- void epos_map(address_map &map);
- void epos_portmap(address_map &map);
-};
-
-class clubpacm_state : public pacman_state
-{
-public:
- clubpacm_state(const machine_config &mconfig, device_type type, const char *tag)
- : pacman_state(mconfig, type, tag)
- , m_sublatch(*this, "sublatch")
- , m_players(*this, "P%u", 1)
- { }
-
- void clubpacm(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(clubpacm_input_r);
-
- void init_clubpacma();
-
-protected:
- void clubpacm_map(address_map &map);
-
- required_device<generic_latch_8_device> m_sublatch;
- required_ioport_array<2> m_players;
-};
-
-class mspactwin_state : public clubpacm_state
-{
-public:
- mspactwin_state(const machine_config &mconfig, device_type type, const char *tag)
- : clubpacm_state(mconfig, type, tag)
- , m_screen(*this, "screen")
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- , m_decrypted_opcodes_mirror(*this, "decrypted_opcodes_mirror")
- , m_decrypted_opcodes_high(*this, "decrypted_opcodes_high")
- { }
-
- void mspactwin(machine_config &config);
-
- void init_mspactwin();
-
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
-
-private:
- required_device<screen_device> m_screen;
-
-protected:
-
- void mspactwin_map(address_map &map);
- void mspactwin_decrypted_map(address_map &map);
-
- void mspactwin_videoram_w(offs_t offset, uint8_t data);
-
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes_mirror;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes_high;
-
-};
-
-
-#endif // MAME_INCLUDES_PACMAN_H
diff --git a/src/mame/includes/pandoras.h b/src/mame/includes/pandoras.h
deleted file mode 100644
index 723847d2570..00000000000
--- a/src/mame/includes/pandoras.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Pandora's Palace
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_PANDORAS_H
-#define MAME_INCLUDES_PANDORAS_H
-
-#pragma once
-
-#include "cpu/mcs48/mcs48.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class pandoras_state : public driver_device
-{
-public:
- pandoras_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_audiocpu(*this, "audiocpu"),
- m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
-
- /* video-related */
- tilemap_t *m_layer0;
- int m_flipscreen;
-
- int m_irq_enable_a;
- int m_irq_enable_b;
- int m_firq_old_data_a;
- int m_firq_old_data_b;
- int m_i8039_status;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- required_device<i8039_device> m_mcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- DECLARE_WRITE_LINE_MEMBER(cpua_irq_enable_w);
- DECLARE_WRITE_LINE_MEMBER(cpub_irq_enable_w);
- void pandoras_cpua_irqtrigger_w(uint8_t data);
- void pandoras_cpub_irqtrigger_w(uint8_t data);
- void pandoras_i8039_irqtrigger_w(uint8_t data);
- void i8039_irqen_and_status_w(uint8_t data);
- void pandoras_z80_irqtrigger_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- void pandoras_vram_w(offs_t offset, uint8_t data);
- void pandoras_cram_w(offs_t offset, uint8_t data);
- void pandoras_scrolly_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- uint8_t pandoras_portA_r();
- uint8_t pandoras_portB_r();
- TILE_GET_INFO_MEMBER(get_tile_info0);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void pandoras_palette(palette_device &palette) const;
- uint32_t screen_update_pandoras(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* sr );
- void pandoras(machine_config &config);
- void pandoras_i8039_io_map(address_map &map);
- void pandoras_i8039_map(address_map &map);
- void pandoras_master_map(address_map &map);
- void pandoras_slave_map(address_map &map);
- void pandoras_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PANDORAS_H
diff --git a/src/mame/includes/paradise.h b/src/mame/includes/paradise.h
deleted file mode 100644
index 07ab6777bf6..00000000000
--- a/src/mame/includes/paradise.h
+++ /dev/null
@@ -1,115 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_PARADISE_H
-#define MAME_INCLUDES_PARADISE_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class paradise_state : public driver_device
-{
-public:
- paradise_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_oki2(*this, "oki2"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_vram_0(*this, "vram_0"),
- m_vram_1(*this, "vram_1"),
- m_vram_2(*this, "vram_2"),
- m_videoram(*this, "videoram"),
- m_paletteram(*this, "paletteram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void penkyi(machine_config &config);
- void tgtball(machine_config &config);
- void paradise(machine_config &config);
- void madball(machine_config &config);
- void torus(machine_config &config);
- void penky(machine_config &config);
-
- void init_torus();
- void init_paradise();
- void init_tgtball();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<okim6295_device> m_oki2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_vram_0;
- required_shared_ptr<uint8_t> m_vram_1;
- required_shared_ptr<uint8_t> m_vram_2;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_paletteram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_tilemap_0;
- tilemap_t *m_tilemap_1;
- tilemap_t *m_tilemap_2;
-
- bitmap_ind16 m_tmpbitmap;
- uint8_t m_palbank;
- uint8_t m_priority;
- uint8_t m_pixbank;
- int m_sprite_inc;
- int m_irq_count;
-
- // common
- void rombank_w(uint8_t data);
- void flipscreen_w(uint8_t data);
- void palette_w(offs_t offset, uint8_t data);
- void palbank_w(uint8_t data);
- void vram_0_w(offs_t offset, uint8_t data);
- void vram_1_w(offs_t offset, uint8_t data);
- void vram_2_w(offs_t offset, uint8_t data);
- void pixmap_w(offs_t offset, uint8_t data);
- void priority_w(uint8_t data);
-
- // paradise specific
- void paradise_okibank_w(uint8_t data);
-
- // torus specific
- void torus_coin_counter_w(uint8_t data);
-
- // tgtball specific
- void tgtball_flipscreen_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info_0);
- TILE_GET_INFO_MEMBER(get_tile_info_1);
- TILE_GET_INFO_MEMBER(get_tile_info_2);
-
- uint32_t screen_update_paradise(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_torus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_madball(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(irq);
-
- void update_pix_palbank();
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void base_map(address_map &map);
- void paradise_io_map(address_map &map);
- void paradise_map(address_map &map);
- void tgtball_map(address_map &map);
- void torus_io_map(address_map &map);
- void torus_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PARADISE_H
diff --git a/src/mame/includes/parodius.h b/src/mame/includes/parodius.h
deleted file mode 100644
index 81769d70731..00000000000
--- a/src/mame/includes/parodius.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Parodius
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_PARODIUS_H
-#define MAME_INCLUDES_PARODIUS_H
-
-#pragma once
-
-#include "cpu/m6809/konami.h" /* for the callback and the firq irq definition */
-#include "machine/bankdev.h"
-#include "video/k052109.h"
-#include "video/k053244_k053245.h"
-#include "video/k053251.h"
-#include "video/konami_helper.h"
-
-class parodius_state : public driver_device
-{
-public:
- enum
- {
- TIMER_NMI
- };
-
- parodius_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_bank0000(*this, "bank0000"),
- m_bank2000(*this, "bank2000"),
- m_k052109(*this, "k052109"),
- m_k053245(*this, "k053245"),
- m_k053251(*this, "k053251")
- { }
-
- /* video-related */
- int m_layer_colorbase[3];
- int m_sprite_colorbase;
- int m_layerpri[3];
-
- /* misc */
- //int m_nmi_enabled;
-
- /* devices */
- required_device<konami_cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<address_map_bank_device> m_bank0000;
- required_device<address_map_bank_device> m_bank2000;
- required_device<k052109_device> m_k052109;
- required_device<k05324x_device> m_k053245;
- required_device<k053251_device> m_k053251;
- void parodius_videobank_w(uint8_t data);
- void parodius_3fc0_w(uint8_t data);
- void parodius_sh_irqtrigger_w(uint8_t data);
- void sound_arm_nmi_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_parodius(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- K05324X_CB_MEMBER(sprite_callback);
- K052109_CB_MEMBER(tile_callback);
- void banking_callback(uint8_t data);
-
- void parodius(machine_config &config);
- void bank0000_map(address_map &map);
- void bank2000_map(address_map &map);
- void parodius_map(address_map &map);
- void parodius_sound_map(address_map &map);
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_PARODIUS_H
diff --git a/src/mame/includes/partner.h b/src/mame/includes/partner.h
deleted file mode 100644
index e52674b1ac0..00000000000
--- a/src/mame/includes/partner.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/partner.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_PARTNER_H
-#define MAME_INCLUDES_PARTNER_H
-
-#pragma once
-
-#include "includes/radio86.h"
-
-#include "imagedev/floppy.h"
-#include "machine/i8255.h"
-#include "machine/wd_fdc.h"
-#include "machine/ram.h"
-
-class partner_state : public radio86_state
-{
-public:
- partner_state(const machine_config &mconfig, device_type type, const char *tag)
- : radio86_state(mconfig, type, tag)
- , m_ram(*this, RAM_TAG)
- , m_fdc(*this, "fdc")
- , m_bank(*this, "bank%u", 1U)
- { }
-
- void init_partner();
- void partner(machine_config &config);
-
-private:
- u8 floppy_r(offs_t offset);
- void floppy_w(offs_t offset, u8 data);
- void win_memory_page_w(u8 data);
- void mem_page_w(u8 data);
-
- I8275_DRAW_CHARACTER_MEMBER(display_pixels);
-
- static void floppy_formats(format_registration &fr);
-
- void mem_map(address_map &map);
-
- void window_1(uint8_t bank_num, uint16_t offset,uint8_t *rom);
- void window_2(uint8_t bank_num, uint16_t offset,uint8_t *rom);
- void iomap_bank(uint8_t *rom);
- void bank_switch();
-
- u8 m_mem_page;
- u8 m_win_mem_page;
-
- required_device<ram_device> m_ram;
- required_device<fd1793_device> m_fdc;
- required_memory_bank_array<13> m_bank;
-
- void machine_reset() override;
- void machine_start() override;
-};
-
-
-#endif // MAME_INCLUDES_PARTNER_H
diff --git a/src/mame/includes/pasopia.h b/src/mame/includes/pasopia.h
deleted file mode 100644
index c797715251b..00000000000
--- a/src/mame/includes/pasopia.h
+++ /dev/null
@@ -1,106 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese
-#define PASOPIA_KEYBOARD \
- PORT_START("KEY.0") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("GRAPH") PORT_CODE(KEYCODE_LALT) \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1) \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CAPS LOCK") PORT_CODE(KEYCODE_CAPSLOCK) \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CTRL") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_SHIFT_2) \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("KANA LOCK") PORT_CODE(KEYCODE_RCONTROL) \
- PORT_BIT( 0xc8, IP_ACTIVE_LOW, IPT_UNUSED) \
- PORT_START("KEY.1") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(0_PAD)) PORT_CODE(KEYCODE_0_PAD) \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(1_PAD)) PORT_CODE(KEYCODE_1_PAD) \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(2_PAD)) PORT_CODE(KEYCODE_2_PAD) \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(3_PAD)) PORT_CODE(KEYCODE_3_PAD) \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(4_PAD)) PORT_CODE(KEYCODE_4_PAD) \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(5_PAD)) PORT_CODE(KEYCODE_5_PAD) \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(6_PAD)) PORT_CODE(KEYCODE_6_PAD) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(7_PAD)) PORT_CODE(KEYCODE_7_PAD) \
- PORT_START("KEY.2") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(8_PAD)) PORT_CODE(KEYCODE_8_PAD) \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(9_PAD)) PORT_CODE(KEYCODE_9_PAD) \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(MINUS)) PORT_CODE(KEYCODE_MINUS_PAD) \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) PORT_CODE(KEYCODE_DOWN) PORT_NAME("Down") \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(UP)) PORT_CODE(KEYCODE_UP) PORT_NAME("Up") \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(HOME)) PORT_CODE(KEYCODE_HOME) PORT_NAME("CLS/Home") \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(DEL_PAD)) PORT_CODE(KEYCODE_DEL_PAD) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_ENTER_PAD) PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) PORT_NAME("Return") \
- PORT_START("KEY.3") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) PORT_CODE(KEYCODE_RIGHT) PORT_NAME("Right") \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC) PORT_CHAR(27) \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_BACKSPACE) PORT_NAME("Del") PORT_CHAR(8) \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_TAB) PORT_CHAR(9) \
- PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED) \
- PORT_START("KEY.4") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_END) PORT_NAME("Label") \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_PGUP) PORT_NAME("Kanji") \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Copy") \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_DEL) PORT_NAME("Stop") \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_INSERT) PORT_NAME("Ins") \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) PORT_CODE(KEYCODE_LEFT) PORT_NAME("Left") \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_SPACE) PORT_NAME("SPACE") PORT_CHAR(' ') \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED) \
- PORT_START("KEY.5") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(F1)) PORT_CODE(KEYCODE_F1) PORT_NAME("PF1") \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(F2)) PORT_CODE(KEYCODE_F2) PORT_NAME("PF2") \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(F3)) PORT_CODE(KEYCODE_F3) PORT_NAME("PF3") \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(F4)) PORT_CODE(KEYCODE_F4) PORT_NAME("PF4") \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(F5)) PORT_CODE(KEYCODE_F5) PORT_NAME("PF5") \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(F6)) PORT_CODE(KEYCODE_F6) PORT_NAME("PF6") \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(F7)) PORT_CODE(KEYCODE_F7) PORT_NAME("PF7") \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CHAR(UCHAR_MAMEKEY(F8)) PORT_CODE(KEYCODE_F8) PORT_NAME("PF8") \
- PORT_START("KEY.6") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_1) PORT_NAME(u8"1 ! \u30CC") PORT_CHAR('1') PORT_CHAR('!') \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_0) PORT_NAME(u8"0 \u30EF \u30F2") PORT_CHAR('0') \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_4) PORT_NAME(u8"4 $ \u30A6 \u30A5") PORT_CHAR('4') PORT_CHAR('$') \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_R) PORT_NAME(u8"R \u30B9") PORT_CHAR('R') PORT_CHAR('r') \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_Y) PORT_NAME(u8"Y \u30F3") PORT_CHAR('Y') PORT_CHAR('y') \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_BACKSLASH2) PORT_NAME(u8"_ \u30ED") PORT_CHAR('_') \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_EQUALS) PORT_NAME(u8"^ ~ \u30D8") PORT_CHAR('^') PORT_CHAR('~') \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(u8"\u00A5 | \u30FC") PORT_CHAR('\\', 0xa5) PORT_CHAR('|') \
- PORT_START("KEY.7") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_2) PORT_NAME(u8"2 \" \u30D5") PORT_CHAR('2') PORT_CHAR('"') \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_3) PORT_NAME(u8"3 # \u30A2 \u30A1") PORT_CHAR('3') PORT_CHAR('#') \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_8) PORT_NAME(u8"8 ( \u30E6 \u30E5") PORT_CHAR('8') PORT_CHAR('(') \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_T) PORT_NAME(u8"T \u30AB") PORT_CHAR('T') PORT_CHAR('t') \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_U) PORT_NAME(u8"U \u30CA") PORT_CHAR('U') PORT_CHAR('u') \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_7) PORT_NAME(u8"7 ' \u30E4 \u30E3") PORT_CHAR('7') PORT_CHAR('\'') \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_OPENBRACE) PORT_NAME(u8"@ ` \u309B") PORT_CHAR('@') PORT_CHAR('`') \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_CLOSEBRACE) PORT_NAME(u8"[ { \u309C \u300C") PORT_CHAR('[') PORT_CHAR('{') \
- PORT_START("KEY.8") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_MINUS) PORT_NAME(u8"- = \u30DB") PORT_CHAR('-') PORT_CHAR('=') \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_5) PORT_NAME(u8"5 % \u30A8 \u30A7") PORT_CHAR('5') PORT_CHAR('%') \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_6) PORT_NAME(u8"6 & \u30AA \u30A9") PORT_CHAR('6') PORT_CHAR('&') \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_F) PORT_NAME(u8"F \u30CF") PORT_CHAR('F') PORT_CHAR('f') \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_H) PORT_NAME(u8"H \u30AF") PORT_CHAR('H') PORT_CHAR('h') \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_9) PORT_NAME(u8"9 ) \u30E8 \u30E7") PORT_CHAR('9') PORT_CHAR(')') \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_QUOTE) PORT_NAME(u8": * \u30B1") PORT_CHAR(':') PORT_CHAR('*') \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_BACKSLASH) PORT_NAME(u8"] } \u30E0 \u300D") PORT_CHAR(']') PORT_CHAR('}') \
- PORT_START("KEY.9") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_Q) PORT_NAME(u8"Q \u30BF") PORT_CHAR('Q') PORT_CHAR('q') \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_W) PORT_NAME(u8"W \u30C6") PORT_CHAR('W') PORT_CHAR('w') \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_E) PORT_NAME(u8"E \u30A4 \u30A3") PORT_CHAR('E') PORT_CHAR('e') \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_G) PORT_NAME(u8"G \u30AD") PORT_CHAR('G') PORT_CHAR('g') \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_J) PORT_NAME(u8"J \u30DE") PORT_CHAR('J') PORT_CHAR('j') \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_I) PORT_NAME(u8"I \u30CB") PORT_CHAR('I') PORT_CHAR('i') \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_O) PORT_NAME(u8"O \u30E9") PORT_CHAR('O') PORT_CHAR('o') \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_P) PORT_NAME(u8"P \u30BB") PORT_CHAR('P') PORT_CHAR('p') \
- PORT_START("KEY.10") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_A) PORT_NAME(u8"A \u30C1") PORT_CHAR('A') PORT_CHAR('a') \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_S) PORT_NAME(u8"S \u30C8") PORT_CHAR('S') PORT_CHAR('s') \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_D) PORT_NAME(u8"D \u30B7") PORT_CHAR('D') PORT_CHAR('d') \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_V) PORT_NAME(u8"V \u30D2") PORT_CHAR('V') PORT_CHAR('v') \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_N) PORT_NAME(u8"N \u30DF") PORT_CHAR('N') PORT_CHAR('n') \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_K) PORT_NAME(u8"K \u30CE") PORT_CHAR('K') PORT_CHAR('k') \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_L) PORT_NAME(u8"L \u30EA") PORT_CHAR('L') PORT_CHAR('l') \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_COLON) PORT_NAME(u8"; + \u30EC") PORT_CHAR(';') PORT_CHAR('+') \
- PORT_START("KEY.11") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_Z) PORT_NAME(u8"Z \u30C4 \u30C3") PORT_CHAR('Z') PORT_CHAR('z') \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_X) PORT_NAME(u8"X \u30B5") PORT_CHAR('X') PORT_CHAR('x') \
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_C) PORT_NAME(u8"C \u30BD") PORT_CHAR('C') PORT_CHAR('c') \
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_B) PORT_NAME(u8"B \u30B3") PORT_CHAR('B') PORT_CHAR('b') \
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_M) PORT_NAME(u8"M \u30E2") PORT_CHAR('M') PORT_CHAR('m') \
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_COMMA) PORT_NAME(u8", < \u30CD \u3001") PORT_CHAR(',') PORT_CHAR('<') \
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_STOP) PORT_NAME(u8". > \u30EB \u3002") PORT_CHAR('.') PORT_CHAR('>') \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_SLASH) PORT_NAME(u8"/ ? \u30E1 \u30FB") PORT_CHAR('/') PORT_CHAR('?')
diff --git a/src/mame/includes/pass.h b/src/mame/includes/pass.h
deleted file mode 100644
index 5ec351ab35f..00000000000
--- a/src/mame/includes/pass.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_PASS_H
-#define MAME_INCLUDES_PASS_H
-
-#pragma once
-
-#include "tilemap.h"
-
-class pass_state : public driver_device
-{
-public:
- pass_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bg_tilemap(nullptr),
- m_fg_tilemap(nullptr),
- m_bg_videoram(*this, "bg_videoram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode")
- {
- }
-
- void pass(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- void pass_bg_videoram_w(offs_t offset, uint16_t data);
- void pass_fg_videoram_w(offs_t offset, uint16_t data);
- TILE_GET_INFO_MEMBER(get_pass_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_pass_fg_tile_info);
-
- uint32_t screen_update_pass(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void pass_map(address_map &map);
- void pass_sound_io_map(address_map &map);
- void pass_sound_map(address_map &map);
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- required_shared_ptr<uint16_t> m_bg_videoram;
- required_shared_ptr<uint16_t> m_fg_videoram;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
-};
-
-#endif // MAME_INCLUDES_PASS_H
diff --git a/src/mame/includes/pastelg.h b/src/mame/includes/pastelg.h
deleted file mode 100644
index 56014ed5a71..00000000000
--- a/src/mame/includes/pastelg.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-#ifndef MAME_INCLUDES_PASTELG_H
-#define MAME_INCLUDES_PASTELG_H
-
-#pragma once
-
-#include "machine/nb1413m3.h"
-#include "emupal.h"
-#include "screen.h"
-
-class pastelg_common_state : public driver_device
-{
-public:
- pastelg_common_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_nb1413m3(*this, "nb1413m3"),
- m_screen(*this, "screen"),
- m_blitter_rom(*this, "blitter"),
- m_clut(*this, "clut")
- { }
-
-protected:
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<nb1413m3_device> m_nb1413m3;
- required_device<screen_device> m_screen;
- required_region_ptr<uint8_t> m_blitter_rom;
-
- uint8_t m_gfxbank;
- uint8_t m_palbank;
- uint16_t m_blitter_src_addr;
-
- uint8_t irq_ack_r();
- void blitter_w(offs_t offset, uint8_t data);
- void palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void prg_map(address_map &map);
-
-private:
- required_shared_ptr<uint8_t> m_clut;
-
- uint8_t m_blitter_destx;
- uint8_t m_blitter_desty;
- uint8_t m_blitter_sizex;
- uint8_t m_blitter_sizey;
- bool m_dispflag;
- bool m_flipscreen;
- bool m_blitter_direction_x;
- bool m_blitter_direction_y;
- std::unique_ptr<uint8_t[]> m_videoram;
- bool m_flipscreen_old;
- emu_timer *m_blitter_timer;
-
- void blitter_timer_callback(void *ptr, s32 param);
-
- void vramflip();
- void gfxdraw();
-};
-
-class pastelg_state : public pastelg_common_state
-{
-public:
- pastelg_state(const machine_config &mconfig, device_type type, const char *tag) :
- pastelg_common_state(mconfig, type, tag),
- m_voice_rom(*this, "voice")
- { }
-
- void pastelg(machine_config &config);
-
-private:
- required_region_ptr<uint8_t> m_voice_rom;
-
- uint8_t sndrom_r();
- void romsel_w(uint8_t data);
- uint16_t blitter_src_addr_r();
-
- void io_map(address_map &map);
-};
-
-class threeds_state : public pastelg_common_state
-{
-public:
- threeds_state(const machine_config &mconfig, device_type type, const char *tag) :
- pastelg_common_state(mconfig, type, tag),
- m_p1_keys(*this, "PL1_KEY%u", 0U),
- m_p2_keys(*this, "PL2_KEY%u", 0U)
- { }
-
- void threeds(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_ioport_array<5> m_p1_keys;
- required_ioport_array<5> m_p2_keys;
-
- uint8_t m_mux_data;
-
- uint8_t inputport1_r();
- uint8_t inputport2_r();
- void inputportsel_w(uint8_t data);
- void romsel_w(uint8_t data);
- void output_w(uint8_t data);
- uint8_t rom_readback_r();
-
- void io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PASTELG_H
diff --git a/src/mame/includes/patinhofeio.h b/src/mame/includes/patinhofeio.h
deleted file mode 100644
index 4bf75762db3..00000000000
--- a/src/mame/includes/patinhofeio.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:GPL2+
-// copyright-holders:Felipe Sanches
-#ifndef MAME_INCLUDES_PATINHOFEIO_H
-#define MAME_INCLUDES_PATINHOFEIO_H
-
-#pragma once
-
-#include "machine/teleprinter.h"
-
-class patinho_feio_state : public driver_device {
-public:
- patinho_feio_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_decwriter(*this, "decwriter")
- , m_tty(*this, "teletype")
- { }
-
- void init_patinho_feio();
-
- void decwriter_data_w(uint8_t data);
- void decwriter_kbd_input(u8 data);
- TIMER_CALLBACK_MEMBER(decwriter_callback);
-
- void teletype_data_w(uint8_t data);
- void teletype_kbd_input(u8 data);
- TIMER_CALLBACK_MEMBER(teletype_callback);
-
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( tape_load );
-
- void update_panel(uint8_t ACC, uint8_t opcode, uint8_t mem_data, uint16_t mem_addr, uint16_t PC, uint8_t FLAGS, uint16_t RC, uint8_t mode);
-
- void patinho_feio(machine_config &config);
-protected:
- virtual void machine_start() override;
-
- void load_tape(const char* name);
- void load_raw_data(const char* name, unsigned int start_address, unsigned int data_length);
-
- required_device<patinho_feio_cpu_device> m_maincpu;
- required_device<teleprinter_device> m_decwriter;
- required_device<teleprinter_device> m_tty;
-
-private:
- uint8_t* paper_tape_data;
- uint32_t paper_tape_length;
- uint32_t paper_tape_address;
-
- emu_timer *m_decwriter_timer;
- emu_timer *m_teletype_timer;
- output_manager *m_out;
- uint8_t m_prev_ACC;
- uint8_t m_prev_opcode;
- uint8_t m_prev_mem_data;
- uint16_t m_prev_mem_addr;
- uint16_t m_prev_PC;
- uint8_t m_prev_FLAGS;
- uint16_t m_prev_RC;
-};
-
-#endif // MAME_INCLUDES_PATINHOFEIO_H
diff --git a/src/mame/includes/pbaction.h b/src/mame/includes/pbaction.h
deleted file mode 100644
index 2680ac1edfe..00000000000
--- a/src/mame/includes/pbaction.h
+++ /dev/null
@@ -1,139 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Pinball Action
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_PBACTION_H
-#define MAME_INCLUDES_PBACTION_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/gen_latch.h"
-#include "machine/z80ctc.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class pbaction_state : public driver_device
-{
-public:
- pbaction_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_videoram2(*this, "videoram2"),
- m_colorram(*this, "colorram"),
- m_colorram2(*this, "colorram2"),
- m_work_ram(*this, "work_ram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_ctc(*this, "ctc"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_colorram2;
- required_shared_ptr<uint8_t> m_work_ram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- int m_scroll;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<z80_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<z80ctc_device> m_ctc;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- emu_timer *m_soundcommand_timer;
- uint8_t m_nmi_mask;
- void pbaction_sh_command_w(uint8_t data);
- TIMER_CALLBACK_MEMBER(sound_trigger);
- void nmi_mask_w(uint8_t data);
- uint8_t sound_data_r();
- void sound_irq_ack_w(uint8_t data);
- uint8_t pbaction2_prot_kludge_r();
- void pbaction_videoram_w(offs_t offset, uint8_t data);
- void pbaction_colorram_w(offs_t offset, uint8_t data);
- void pbaction_videoram2_w(offs_t offset, uint8_t data);
- void pbaction_colorram2_w(offs_t offset, uint8_t data);
- void pbaction_scroll_w(uint8_t data);
- void pbaction_flipscreen_w(uint8_t data);
- void init_pbaction2();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_pbaction(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(pbaction_interrupt);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- DECLARE_WRITE_LINE_MEMBER(sound_irq_clear);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void pbaction(machine_config &config);
- void pbactionx(machine_config &config);
- void decrypted_opcodes_map(address_map &map);
- void pbaction_map(address_map &map);
- void pbaction_sound_io_map(address_map &map);
- void pbaction_sound_map(address_map &map);
- void pbaction_alt_sound_map(address_map &map);
-};
-
-class pbaction_tecfri_state : public pbaction_state
-{
-public:
- pbaction_tecfri_state(const machine_config &mconfig, device_type type, const char *tag) :
- pbaction_state(mconfig, type, tag),
- m_subcpu(*this, "subcpu"),
- m_ctc2(*this, "ctc2"),
- m_maintosublatch(*this, "maintosublatch"),
- //m_subtomainlatch(*this, "subtomainlatch"),
- m_digits(*this, "digit%u", 0U)
- { }
-
- void pbactiont(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void sub_map(address_map &map);
- void sub_io_map(address_map &map);
- void main_io_map(address_map &map);
-
- TIMER_CALLBACK_MEMBER(sub_trigger);
- emu_timer *m_subcommand_timer;
-
- uint8_t subcpu_r();
- void subcpu_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(sub8000_w);
- DECLARE_WRITE_LINE_MEMBER(sub8001_w);
- void sub8008_w(uint8_t data);
-
- void subtomain_w(uint8_t data);
- uint8_t maintosub_r();
-
- required_device<z80_device> m_subcpu;
- required_device<z80ctc_device> m_ctc2;
- required_device<generic_latch_8_device> m_maintosublatch;
- //required_device<generic_latch_8_device> m_subtomainlatch;
- output_finder<24> m_digits;
- uint8_t m_outlatch;
- uint32_t m_outdata;
-};
-
-#endif // MAME_INCLUDES_PBACTION_H
diff --git a/src/mame/includes/pc1251.h b/src/mame/includes/pc1251.h
deleted file mode 100644
index 90e8c926b11..00000000000
--- a/src/mame/includes/pc1251.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/pc1251.h
- *
- * Pocket Computer 1251
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_PC1251_H
-#define MAME_INCLUDES_PC1251_H
-
-#include "pocketc.h"
-
-class pc1251_state : public pocketc_state
-{
-public:
- pc1251_state(const machine_config &mconfig, device_type type, const char *tag)
- : pocketc_state(mconfig, type, tag)
- , m_keys(*this, "KEY%u", 0U)
- , m_mode(*this, "MODE")
- {
- std::fill(std::begin(m_reg), std::end(m_reg), 0);
- }
-
- void init_pc1251();
-
- void pc1255(machine_config &config);
- void pc1251(machine_config &config);
- void pc1250(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void pc1250_mem(address_map &map);
- void pc1251_mem(address_map &map);
- void pc1255_mem(address_map &map);
- void pc1260_mem(address_map &map);
- void pc1261_mem(address_map &map);
-
- void out_b_w(uint8_t data);
- void out_c_w(uint8_t data);
-
- DECLARE_READ_LINE_MEMBER(reset_r);
- uint8_t in_a_r();
- uint8_t in_b_r();
- uint8_t lcd_read(offs_t offset);
- void lcd_write(offs_t offset, uint8_t data);
-
-private:
- required_ioport_array<10> m_keys;
- required_ioport m_mode;
-
- uint8_t m_reg[0x100];
-
- static const char *const s_def[5];
- static const char *const s_shift[5];
- static const char *const s_de[5];
- static const char *const s_g[5];
- static const char *const s_rad[5];
- static const char *const s_run[5];
- static const char *const s_pro[5];
- static const char *const s_rsv[5];
-};
-
-class pc1260_state : public pc1251_state
-{
-public:
- pc1260_state(const machine_config &mconfig, device_type type, const char *tag)
- : pc1251_state(mconfig, type, tag)
- { }
-
- void pc1260(machine_config &config);
- void pc1261(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-};
-
-#endif // MAME_INCLUDES_PC1251_H
diff --git a/src/mame/includes/pc1350.h b/src/mame/includes/pc1350.h
deleted file mode 100644
index 68869f8bab9..00000000000
--- a/src/mame/includes/pc1350.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/pc1350.h
- *
- * Pocket Computer 1350
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_PC1350_H
-#define MAME_INCLUDES_PC1350_H
-
-#include "pocketc.h"
-#include "machine/ram.h"
-
-class pc1350_state : public pocketc_state
-{
-public:
- pc1350_state(const machine_config &mconfig, device_type type, const char *tag)
- : pocketc_state(mconfig, type, tag)
- , m_ram(*this, RAM_TAG)
- , m_keys(*this, "KEY%u", 0U)
- {
- std::fill(std::begin(m_reg), std::end(m_reg), 0);
- }
-
- void pc1350(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void pc1350_mem(address_map &map);
-
- void out_b_w(uint8_t data);
- void out_c_w(uint8_t data);
-
- uint8_t in_a_r();
- uint8_t in_b_r();
- uint8_t lcd_read(offs_t offset);
- void lcd_write(offs_t offset, uint8_t data);
- uint8_t keyboard_line_r();
-
-private:
- required_device<ram_device> m_ram;
- required_ioport_array<12> m_keys;
-
- uint8_t m_reg[0x1000];
-
- static const char* const s_def[5];
- static const char* const s_shift[5];
- static const char* const s_run[5];
- static const char* const s_pro[5];
- static const char* const s_japan[5];
- static const char* const s_sml[5];
-};
-
-#endif // MAME_INCLUDES_PC1350_H
diff --git a/src/mame/includes/pc1401.h b/src/mame/includes/pc1401.h
deleted file mode 100644
index 6bfc9fd342b..00000000000
--- a/src/mame/includes/pc1401.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/pc1401.h
- *
- * Pocket Computer 1401
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_PC1401_H
-#define MAME_INCLUDES_PC1401_H
-
-#include "pocketc.h"
-
-class pc1401_state : public pocketc_state
-{
-public:
- pc1401_state(const machine_config &mconfig, device_type type, const char *tag)
- : pocketc_state(mconfig, type, tag)
- , m_keys(*this, "KEY%u", 0U)
- {
- std::fill(std::begin(m_reg), std::end(m_reg), 0);
- }
-
- void init_pc1401();
-
- void pc1401(machine_config &config);
- void pc1402(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void pc1401_mem(address_map &map);
- void pc1402_mem(address_map &map);
-
- DECLARE_READ_LINE_MEMBER(reset_r);
- void out_b_w(uint8_t data);
- void out_c_w(uint8_t data);
- uint8_t in_a_r();
- uint8_t in_b_r();
- uint8_t lcd_read(offs_t offset);
- void lcd_write(offs_t offset, uint8_t data);
-
-private:
- required_ioport_array<13> m_keys;
-
- uint8_t m_portc;
- uint8_t m_reg[0x100];
-
- static const char* const s_line[5];
- static const char* const s_busy[5];
- static const char* const s_def[5];
- static const char* const s_shift[5];
- static const char* const s_hyp[5];
- static const char* const s_de[5];
- static const char* const s_g[5];
- static const char* const s_rad[5];
- static const char* const s_braces[5];
- static const char* const s_m[5];
- static const char* const s_e[5];
-};
-
-#endif // MAME_INCLUDES_PC1401_H
diff --git a/src/mame/includes/pc1403.h b/src/mame/includes/pc1403.h
deleted file mode 100644
index f34a00dd688..00000000000
--- a/src/mame/includes/pc1403.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/pc1403.h
- *
- * Pocket Computer 1403
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_PC1403_H
-#define MAME_INCLUDES_PC1403_H
-
-#include "pocketc.h"
-
-class pc1403_state : public pocketc_state
-{
-public:
- pc1403_state(const machine_config &mconfig, device_type type, const char *tag)
- : pocketc_state(mconfig, type, tag)
- , m_keys(*this, "KEY%u", 0U)
- {
- std::fill(std::begin(m_reg), std::end(m_reg), 0);
- }
-
- void pc1403(machine_config &config);
- void pc1403h(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void pc1403_mem(address_map &map);
- void pc1403h_mem(address_map &map);
- void pc1421_readmem(address_map &map);
- void pc1421_writemem(address_map &map);
-
- DECLARE_READ_LINE_MEMBER(reset_r);
- void out_c_w(uint8_t data);
- uint8_t in_a_r();
-
- uint8_t asic_read(offs_t offset);
- void asic_write(offs_t offset, uint8_t data);
- uint8_t lcd_read(offs_t offset);
- void lcd_write(offs_t offset, uint8_t data);
-
- int m_down;
- int m_right;
-
-private:
- required_ioport_array<14> m_keys;
-
- uint8_t m_portc;
- uint8_t m_asic[4];
- uint8_t m_reg[0x100];
-
- static const char* const s_line[5];
- static const char* const s_busy[5];
- static const char* const s_def[5];
- static const char* const s_shift[5];
- static const char* const s_hyp[5];
- static const char* const s_de[5];
- static const char* const s_g[5];
- static const char* const s_rad[5];
- static const char* const s_braces[5];
- static const char* const s_m[5];
- static const char* const s_e[5];
- static const char* const s_kana[5];
- static const char* const s_shoo[5];
- static const char* const s_sml[5];
-};
-
-class pc1403h_state : public pc1403_state
-{
-public:
- pc1403h_state(const machine_config &mconfig, device_type type, const char *tag)
- : pc1403_state(mconfig, type, tag)
- { }
-
-protected:
- virtual void video_start() override;
-};
-
-#endif // MAME_INCLUDES_PC1403_H
diff --git a/src/mame/includes/pc1512.h b/src/mame/includes/pc1512.h
deleted file mode 100644
index b14491070f3..00000000000
--- a/src/mame/includes/pc1512.h
+++ /dev/null
@@ -1,240 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_PC1512_H
-#define MAME_INCLUDES_PC1512_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-#include "bus/isa/isa.h"
-#include "bus/isa/isa_cards.h"
-#include "bus/isa/pc1640_iga.h"
-#include "bus/pc1512/mouse.h"
-#include "cpu/i86/i86.h"
-#include "cpu/mcs48/mcs48.h"
-#include "imagedev/floppy.h"
-#include "machine/am9517a.h"
-#include "machine/buffer.h"
-#include "machine/ins8250.h"
-#include "machine/mc146818.h"
-#include "machine/pic8259.h"
-#include "machine/pit8253.h"
-#include "machine/pc1512kb.h"
-#include "machine/upd765.h"
-#include "machine/ram.h"
-#include "sound/spkrdev.h"
-#include "video/ams40041.h"
-
-#include "formats/pc_dsk.h"
-
-#define I8086_TAG "ic120"
-#define I8087_TAG "ic119"
-#define I8048_TAG "i8048"
-#define I8237A5_TAG "ic130"
-#define I8259A2_TAG "ic109"
-#define I8253_TAG "ic114"
-#define MC146818_TAG "ic134"
-#define UPD765A_TAG "ic112"
-#define INS8250_TAG "ic106"
-#define AMS40041_TAG "ic126"
-#define CENTRONICS_TAG "centronics"
-#define ISA_BUS_TAG "isa"
-#define RS232_TAG "rs232"
-#define SCREEN_TAG "screen"
-
-class pc1512_base_state : public driver_device
-{
-public:
- pc1512_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, I8086_TAG),
- m_dmac(*this, I8237A5_TAG),
- m_pic(*this, I8259A2_TAG),
- m_pit(*this, I8253_TAG),
- m_rtc(*this, MC146818_TAG),
- m_fdc(*this, UPD765A_TAG),
- m_uart(*this, INS8250_TAG),
- m_centronics(*this, CENTRONICS_TAG),
- m_cent_data_out(*this, "cent_data_out"),
- m_speaker(*this, "speaker"),
- m_kb(*this, PC1512_KEYBOARD_TAG),
- m_ram(*this, RAM_TAG),
- m_floppy(*this, UPD765A_TAG ":%u", 0U),
- m_bus(*this, ISA_BUS_TAG),
- m_lk(*this, "LK"),
- m_pit1(0),
- m_pit2(0),
- m_status1(0),
- m_status2(0),
- m_port61(0),
- m_nmi_enable(0),
- m_kb_bits(0),
- m_kbclk(1),
- m_kbdata(1),
- m_dreq0(0),
- m_nden(1),
- m_dint(0),
- m_ddrq(0),
- m_fdc_dsr(0),
- m_neop(0),
- m_ack_int_enable(1),
- m_centronics_ack(0),
- m_speaker_drive(0)
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<am9517a_device> m_dmac;
- required_device<pic8259_device> m_pic;
- required_device<pit8253_device> m_pit;
- required_device<mc146818_device> m_rtc;
- required_device<upd765a_device> m_fdc;
- required_device<ins8250_device> m_uart;
- required_device<centronics_device> m_centronics;
- required_device<output_latch_device> m_cent_data_out;
- required_device<speaker_sound_device> m_speaker;
- required_device<pc1512_keyboard_device> m_kb;
- required_device<ram_device> m_ram;
- required_device_array<floppy_connector, 2> m_floppy;
- required_device<isa8_device> m_bus;
- required_ioport m_lk;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void update_speaker();
- void update_fdc_int();
- void update_fdc_drq();
- void update_fdc_tc();
- void update_ack();
-
- uint8_t system_r(offs_t offset);
- void system_w(offs_t offset, uint8_t data);
- uint8_t mouse_r(offs_t offset);
- void mouse_w(offs_t offset, uint8_t data);
- void dma_page_w(offs_t offset, uint8_t data);
- void nmi_mask_w(uint8_t data);
- uint8_t printer_r(offs_t offset);
- void printer_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( kbdata_w );
- DECLARE_WRITE_LINE_MEMBER( kbclk_w );
- DECLARE_WRITE_LINE_MEMBER( pit1_w );
- DECLARE_WRITE_LINE_MEMBER( pit2_w );
- DECLARE_WRITE_LINE_MEMBER( hrq_w );
- DECLARE_WRITE_LINE_MEMBER( eop_w );
- uint8_t memr_r(offs_t offset);
- void memw_w(offs_t offset, uint8_t data);
- uint8_t ior1_r();
- uint8_t ior2_r();
- uint8_t ior3_r();
- void iow0_w(uint8_t data);
- void iow1_w(uint8_t data);
- void iow2_w(uint8_t data);
- void iow3_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( dack0_w );
- DECLARE_WRITE_LINE_MEMBER( dack1_w );
- DECLARE_WRITE_LINE_MEMBER( dack2_w );
- DECLARE_WRITE_LINE_MEMBER( dack3_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_int_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
- void drive_select_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( write_centronics_ack );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_busy );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_perror );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_select );
- DECLARE_WRITE_LINE_MEMBER( write_centronics_fault );
- void mouse_x_w(uint8_t data);
- void mouse_y_w(uint8_t data);
-
- // system status register
- int m_pit1;
- int m_pit2;
- uint8_t m_status1;
- uint8_t m_status2;
- uint8_t m_port61;
-
- // interrupt state
- int m_nmi_enable;
-
- // keyboard state
- uint8_t m_kbd;
- int m_kb_bits;
- int m_kbclk;
- int m_kbdata;
-
- // mouse state
- uint8_t m_mouse_x_old;
- uint8_t m_mouse_y_old;
- uint8_t m_mouse_x;
- uint8_t m_mouse_y;
-
- // DMA state
- uint8_t m_dma_page[4];
- int m_dma_channel;
- int m_dreq0;
-
- // floppy state
- int m_nden;
- int m_dint;
- int m_ddrq;
- uint8_t m_fdc_dsr;
- int m_neop;
-
- // printer state
- int m_ack_int_enable;
- int m_centronics_ack;
- int m_centronics_busy;
- int m_centronics_perror;
- int m_centronics_select;
- int m_centronics_fault;
- uint8_t m_printer_data;
- uint8_t m_printer_control;
-
- // sound state
- int m_speaker_drive;
-};
-
-class pc1512_state : public pc1512_base_state
-{
-public:
- pc1512_state(const machine_config &mconfig, device_type type, const char *tag)
- : pc1512_base_state(mconfig, type, tag)
- , m_vdu(*this, AMS40041_TAG)
- { }
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void pc1512hd(machine_config &config);
- void pc1512(machine_config &config);
- void pc1512dd(machine_config &config);
- void pc1512_io(address_map &map);
- void pc1512_mem(address_map &map);
-
- required_device<ams40041_device> m_vdu;
-};
-
-class pc1640_state : public pc1512_base_state
-{
-public:
- pc1640_state(const machine_config &mconfig, device_type type, const char *tag)
- : pc1512_base_state(mconfig, type, tag)
- , m_sw(*this, "SW")
- , m_opt(0)
- { }
-
- virtual void machine_start() override;
-
- uint8_t io_r(offs_t offset);
- uint8_t printer_r(offs_t offset);
-
- required_ioport m_sw;
-
- int m_opt;
- void pc1640hd(machine_config &config);
- void pc1640(machine_config &config);
- void pc1640dd(machine_config &config);
- void pc1640_io(address_map &map);
- void pc1640_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PC1512_H
diff --git a/src/mame/includes/pc4.h b/src/mame/includes/pc4.h
deleted file mode 100644
index bb5008a7003..00000000000
--- a/src/mame/includes/pc4.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sandro Ronco
-/***************************************************************************
-
- VTech Laser PC4
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_PC4_H
-#define MAME_INCLUDES_PC4_H
-
-#pragma once
-
-
-#include "sound/beep.h"
-#include "emupal.h"
-
-class pc4_state : public driver_device
-{
-public:
- pc4_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_beep(*this, "beeper"),
- m_region_charset(*this, "charset"),
- m_rombank(*this, "rombank")
- { }
-
- void pc4(machine_config &config);
-
-protected:
- static const device_timer_id BUSY_TIMER = 0;
- static const device_timer_id BLINKING_TIMER = 1;
-
- virtual void machine_start() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void beep_w(uint8_t data);
- void bank_w(uint8_t data);
- uint8_t kb_r(offs_t offset);
-
- //LCD controller
- void update_ac();
- void set_busy_flag(uint16_t usec);
-
- void lcd_control_w(uint8_t data);
- uint8_t lcd_control_r();
- void lcd_data_w(uint8_t data);
- uint8_t lcd_data_r();
- void lcd_offset_w(uint8_t data);
-
- void pc4_palette(palette_device &palette) const;
-
- void pc4_io(address_map &map);
- void pc4_mem(address_map &map);
-
- emu_timer *m_blink_timer;
- emu_timer *m_busy_timer;
-
- uint8_t m_busy_flag;
- uint8_t m_ddram[0xa0];
- uint8_t m_cgram[0x40];
- int16_t m_ac;
- uint8_t m_ac_mode;
- uint8_t m_data_bus_flag;
- int16_t m_cursor_pos;
- uint8_t m_display_on;
- uint8_t m_cursor_on;
- uint8_t m_blink_on;
- uint8_t m_shift_on;
- int8_t m_disp_shift;
- int8_t m_direction;
- uint8_t m_blink;
-
- required_device<cpu_device> m_maincpu;
- required_device<beep_device> m_beep;
-
- required_memory_region m_region_charset;
- required_memory_bank m_rombank;
- ioport_port *io_port[8];
-};
-
-#endif // MAME_INCLUDES_PC4_H
diff --git a/src/mame/includes/pc6001.h b/src/mame/includes/pc6001.h
deleted file mode 100644
index 889330b294d..00000000000
--- a/src/mame/includes/pc6001.h
+++ /dev/null
@@ -1,290 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese
-#ifndef MAME_INCLUDES_PC6001_H
-#define MAME_INCLUDES_PC6001_H
-
-#pragma once
-
-
-#include "cpu/z80/z80.h"
-#include "imagedev/cassette.h"
-#include "machine/i8251.h"
-#include "machine/i8255.h"
-#include "machine/timer.h"
-#include "sound/ay8910.h"
-#include "sound/upd7752.h"
-//#include "sound/ym2203.h"
-#include "video/mc6847.h"
-
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#include "emupal.h"
-#include "speaker.h"
-#include "screen.h"
-
-#include "formats/p6001_cas.h"
-
-class pc6001_state : public driver_device
-{
-public:
- pc6001_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_ppi(*this, "ppi8255"),
- m_ram(*this, "ram"),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_cassette(*this, "cassette"),
- m_cas_hack(*this, "cas_hack"),
- m_cart(*this, "cartslot"),
- m_region_maincpu(*this, "maincpu"),
- m_region_gfx1(*this, "gfx1"),
- m_io_mode4_dsw(*this, "MODE4_DSW"),
- m_io_p1(*this, "P1"),
- m_io_p2(*this, "P2"),
- m_io_keys(*this, "key%u", 1U),
- m_io_key_modifiers(*this, "key_modifiers"),
- m_bank1(*this, "bank1"),
- m_palette(*this, "palette")
- { }
-
- void system_latch_w(uint8_t data);
- uint8_t nec_ppi8255_r(offs_t offset);
- void nec_ppi8255_w(offs_t offset, uint8_t data);
-
- void pc6001_palette(palette_device &palette) const;
-
- uint32_t screen_update_pc6001(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(vrtc_irq);
- TIMER_CALLBACK_MEMBER(audio_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(cassette_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(keyboard_callback);
-
- uint8_t ppi_porta_r();
- void ppi_porta_w(uint8_t data);
- uint8_t ppi_portb_r();
- void ppi_portb_w(uint8_t data);
- void ppi_portc_w(uint8_t data);
- uint8_t ppi_portc_r();
-
- IRQ_CALLBACK_MEMBER(irq_callback);
-
- void pc6001(machine_config &config);
- void pc6001_io(address_map &map);
- void pc6001_map(address_map &map);
-protected:
- required_device<i8255_device> m_ppi;
- optional_shared_ptr<uint8_t> m_ram;
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- optional_device<cassette_image_device> m_cassette;
- optional_device<generic_slot_device> m_cas_hack;
- required_device<generic_slot_device> m_cart;
- required_memory_region m_region_maincpu;
- required_memory_region m_region_gfx1;
- required_ioport m_io_mode4_dsw;
- required_ioport m_io_p1;
- required_ioport m_io_p2;
- required_ioport_array<3> m_io_keys;
- required_ioport m_io_key_modifiers;
- required_memory_bank m_bank1;
- required_device<palette_device> m_palette;
-
- memory_region *m_cart_rom;
- uint8_t m_timer_irq_vector;
- uint16_t m_timer_hz_div;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- // i/o functions
- uint8_t check_joy_press();
- uint8_t check_keyboard_press();
- inline void cassette_latch_control(bool new_state);
- inline void ppi_control_hack_w(uint8_t data);
- inline void set_timer_divider(uint8_t data);
- inline void set_videoram_bank(uint32_t offs);
- inline void set_maincpu_irq_line(uint8_t vector_num);
-
- // video functions
- void draw_gfx_mode4(bitmap_ind16 &bitmap,const rectangle &cliprect,int attr);
- void draw_bitmap_2bpp(bitmap_ind16 &bitmap,const rectangle &cliprect, int attr);
- void draw_tile_3bpp(bitmap_ind16 &bitmap,const rectangle &cliprect,int x,int y,int tile,int attr);
- void draw_tile_text(bitmap_ind16 &bitmap,const rectangle &cliprect,int x,int y,int tile,int attr,int has_mc6847);
- void draw_border(bitmap_ind16 &bitmap,const rectangle &cliprect,int attr,int has_mc6847);
- void pc6001_screen_draw(bitmap_ind16 &bitmap,const rectangle &cliprect, int has_mc6847);
-
- emu_timer *m_timer_irq_timer;
- uint8_t *m_video_ram;
- uint8_t m_irq_vector;
- uint8_t m_cas_switch;
- uint8_t m_sys_latch;
- uint32_t m_cas_offset;
- uint32_t m_cas_maxsize;
- uint8_t m_bank_opt;
- uint8_t m_timer_irq_mask;
- uint8_t m_timer_irq_mask2;
- uint8_t m_port_c_8255;
- uint8_t m_cur_keycode;
-
-private:
- uint32_t m_old_key1;
- uint32_t m_old_key2;
- uint32_t m_old_key3;
-
-};
-
-
-class pc6001mk2_state : public pc6001_state
-{
-public:
- pc6001mk2_state(const machine_config &mconfig, device_type type, const char *tag) :
- pc6001_state(mconfig, type, tag),
- m_bank2(*this, "bank2"),
- m_bank3(*this, "bank3"),
- m_bank4(*this, "bank4"),
- m_bank5(*this, "bank5"),
- m_bank6(*this, "bank6"),
- m_bank7(*this, "bank7"),
- m_bank8(*this, "bank8")
- { }
-
- uint8_t mk2_bank_r0_r();
- uint8_t mk2_bank_r1_r();
- uint8_t mk2_bank_w0_r();
- void mk2_bank_r0_w(uint8_t data);
- void mk2_bank_r1_w(uint8_t data);
- void mk2_bank_w0_w(uint8_t data);
- void mk2_opt_bank_w(uint8_t data);
- void mk2_work_ram0_w(offs_t offset, uint8_t data);
- void mk2_work_ram1_w(offs_t offset, uint8_t data);
- void mk2_work_ram2_w(offs_t offset, uint8_t data);
- void mk2_work_ram3_w(offs_t offset, uint8_t data);
- void mk2_work_ram4_w(offs_t offset, uint8_t data);
- void mk2_work_ram5_w(offs_t offset, uint8_t data);
- void mk2_work_ram6_w(offs_t offset, uint8_t data);
- void mk2_work_ram7_w(offs_t offset, uint8_t data);
- void necmk2_ppi8255_w(offs_t offset, uint8_t data);
- void mk2_system_latch_w(uint8_t data);
- void mk2_vram_bank_w(uint8_t data);
- void mk2_col_bank_w(uint8_t data);
- void mk2_0xf3_w(uint8_t data);
- void mk2_timer_adj_w(uint8_t data);
- void mk2_timer_irqv_w(uint8_t data);
-
- void pc6001mk2_palette(palette_device &palette) const;
- void pc6001mk2(machine_config &config);
-
- uint32_t screen_update_pc6001mk2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void pc6001mk2_io(address_map &map);
- void pc6001mk2_map(address_map &map);
-protected:
- uint8_t m_bgcol_bank;
- uint8_t m_gfx_bank_on;
- required_memory_bank m_bank2;
- required_memory_bank m_bank3;
- required_memory_bank m_bank4;
- required_memory_bank m_bank5;
- required_memory_bank m_bank6;
- required_memory_bank m_bank7;
- required_memory_bank m_bank8;
- inline void refresh_crtc_params();
-
- virtual void video_start() override;
- virtual void machine_reset() override;
-
-private:
- uint8_t m_bank_r0;
- uint8_t m_bank_r1;
- uint8_t m_bank_w;
- uint8_t m_ex_vram_bank;
- uint8_t m_exgfx_text_mode;
- uint32_t m_cgrom_bank_addr;
- uint8_t m_exgfx_bitmap_mode;
- uint8_t m_exgfx_2bpp_mode;
-
- void vram_bank_change(uint8_t vram_bank);
-};
-
-class pc6601_state : public pc6001mk2_state
-{
-public:
- pc6601_state(const machine_config &mconfig, device_type type, const char *tag) :
- pc6001mk2_state(mconfig, type, tag)
- { }
-
- uint8_t fdc_r();
- void fdc_w(uint8_t data);
-
- void pc6601(machine_config &config);
- void pc6601_io(address_map &map);
-};
-
-class pc6001sr_state : public pc6601_state
-{
-public:
- pc6001sr_state(const machine_config &mconfig, device_type type, const char *tag) :
- pc6601_state(mconfig, type, tag),
- m_sr_irq_vectors(*this, "irq_vectors")
- { }
-
- void pc6001sr(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void machine_reset() override;
-
-private:
- uint8_t m_sr_bank_r[8];
- uint8_t m_sr_bank_w[8];
- uint8_t m_kludge;
- bool m_sr_text_mode;
- uint8_t m_sr_text_rows;
- std::unique_ptr<uint8_t []> m_gvram;
- uint8_t m_bitmap_yoffs,m_bitmap_xoffs;
-
- enum{
- SUB_CPU_IRQ = 0,
- JOYSTICK_IRQ,
- TIMER_IRQ,
- VOICE_IRQ,
- VRTC_IRQ,
- RS232_IRQ,
- PRINTER_IRQ,
- EXT_IRQ
- };
-
- required_shared_ptr<uint8_t> m_sr_irq_vectors;
-
- uint8_t hw_rev_r();
- uint8_t sr_bank_rn_r(offs_t offset);
- void sr_bank_rn_w(offs_t offset, uint8_t data);
- uint8_t sr_bank_wn_r(offs_t offset);
- void sr_bank_wn_w(offs_t offset, uint8_t data);
- void sr_work_ram0_w(offs_t offset, uint8_t data);
- void sr_work_ram1_w(offs_t offset, uint8_t data);
- void sr_work_ram2_w(offs_t offset, uint8_t data);
- void sr_work_ram3_w(offs_t offset, uint8_t data);
- void sr_work_ram4_w(offs_t offset, uint8_t data);
- void sr_work_ram5_w(offs_t offset, uint8_t data);
- void sr_work_ram6_w(offs_t offset, uint8_t data);
- void sr_work_ram7_w(offs_t offset, uint8_t data);
- void sr_mode_w(uint8_t data);
- void sr_vram_bank_w(uint8_t data);
- void sr_system_latch_w(uint8_t data);
- void necsr_ppi8255_w(offs_t offset, uint8_t data);
- void sr_bitmap_yoffs_w(uint8_t data);
- void sr_bitmap_xoffs_w(uint8_t data);
-
- INTERRUPT_GEN_MEMBER(sr_vrtc_irq);
-
- uint32_t screen_update_pc6001sr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void pc6001sr_io(address_map &map);
- void pc6001sr_map(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/pc8001.h b/src/mame/includes/pc8001.h
deleted file mode 100644
index 12002ed8dcd..00000000000
--- a/src/mame/includes/pc8001.h
+++ /dev/null
@@ -1,100 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#pragma once
-
-#ifndef MAME_INCLUDES_PC8001_H
-#define MAME_INCLUDES_PC8001_H
-
-
-#include "cpu/z80/z80.h"
-#include "imagedev/cassette.h"
-#include "machine/buffer.h"
-#include "bus/centronics/ctronics.h"
-#include "machine/i8257.h"
-#include "machine/i8255.h"
-#include "machine/i8251.h"
-#include "machine/ram.h"
-#include "machine/upd1990a.h"
-#include "sound/beep.h"
-#include "video/upd3301.h"
-
-#define Z80_TAG "z80"
-#define I8251_TAG "i8251"
-#define I8255A_TAG "i8255"
-#define I8257_TAG "i8257"
-#define UPD1990A_TAG "upd1990a"
-#define UPD3301_TAG "upd3301"
-#define CENTRONICS_TAG "centronics"
-#define SCREEN_TAG "screen"
-
-class pc8001_state : public driver_device
-{
-public:
- pc8001_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_rtc(*this, UPD1990A_TAG),
- m_dma(*this, I8257_TAG),
- m_crtc(*this, UPD3301_TAG),
- m_cassette(*this, "cassette"),
- m_centronics(*this, CENTRONICS_TAG),
- m_cent_data_out(*this, "cent_data_out"),
- m_beep(*this, "beeper"),
- m_ram(*this, RAM_TAG),
- m_rom(*this, Z80_TAG),
- m_char_rom(*this, UPD3301_TAG)
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<upd1990a_device> m_rtc;
- required_device<i8257_device> m_dma;
- required_device<upd3301_device> m_crtc;
- required_device<cassette_image_device> m_cassette;
- required_device<centronics_device> m_centronics;
- required_device<output_latch_device> m_cent_data_out;
- required_device<beep_device> m_beep;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- required_memory_region m_char_rom;
-
- virtual void machine_start() override;
-
- void port10_w(uint8_t data);
- void port30_w(uint8_t data);
- uint8_t port40_r();
- void port40_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( hrq_w );
- uint8_t dma_mem_r(offs_t offset);
-
- /* video state */
- int m_width80;
- int m_color;
-
- int m_centronics_busy;
- int m_centronics_ack;
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_ack);
- UPD3301_DRAW_CHARACTER_MEMBER( pc8001_display_pixels );
- void pc8001(machine_config &config);
- void pc8001_io(address_map &map);
- void pc8001_mem(address_map &map);
-};
-
-class pc8001mk2_state : public pc8001_state
-{
-public:
- pc8001mk2_state(const machine_config &mconfig, device_type type, const char *tag)
- : pc8001_state(mconfig, type, tag),
- m_kanji_rom(*this, "kanji")
- { }
-
- required_memory_region m_kanji_rom;
-
- void port31_w(uint8_t data);
- void pc8001mk2(machine_config &config);
- void pc8001mk2_io(address_map &map);
- void pc8001mk2_mem(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/pc8401a.h b/src/mame/includes/pc8401a.h
deleted file mode 100644
index 33f360154fa..00000000000
--- a/src/mame/includes/pc8401a.h
+++ /dev/null
@@ -1,127 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_PC8401A_H
-#define MAME_INCLUDES_PC8401A_H
-
-#pragma once
-
-
-#include "cpu/z80/z80.h"
-#include "machine/i8255.h"
-#include "machine/i8251.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "machine/upd1990a.h"
-#include "video/mc6845.h"
-#include "video/sed1330.h"
-
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-#define SCREEN_TAG "screen"
-#define CRT_SCREEN_TAG "screen2"
-
-#define Z80_TAG "z80"
-#define I8255A_TAG "i8255a"
-#define UPD1990A_TAG "upd1990a"
-#define AY8910_TAG "ay8910"
-#define SED1330_TAG "sed1330"
-#define MC6845_TAG "mc6845"
-#define I8251_TAG "i8251"
-#define RS232_TAG "rs232"
-
-#define PC8401A_CRT_VIDEORAM_SIZE 0x2000
-
-class pc8401a_state : public driver_device
-{
-public:
- pc8401a_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, Z80_TAG)
- , m_rtc(*this, UPD1990A_TAG)
- , m_lcdc(*this, SED1330_TAG)
- , m_crtc(*this, MC6845_TAG)
- , m_screen_lcd(*this, SCREEN_TAG)
- , m_cart(*this, "cartslot")
- , m_io_cart(*this, "io_cart")
- , m_ram(*this, RAM_TAG)
- , m_rom(*this, Z80_TAG)
- , m_crt_ram(*this, "crt_ram", PC8401A_CRT_VIDEORAM_SIZE, ENDIANNESS_LITTLE)
- , m_io_y(*this, "Y.%u", 0)
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<upd1990a_device> m_rtc;
- required_device<sed1330_device> m_lcdc;
- optional_device<mc6845_device> m_crtc;
- required_device<screen_device> m_screen_lcd;
- required_device<generic_slot_device> m_cart;
- required_device<generic_slot_device> m_io_cart;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- memory_share_creator<uint8_t> m_crt_ram;
- required_ioport_array<10> m_io_y;
-
- memory_region *m_cart_rom;
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- void mmr_w(uint8_t data);
- uint8_t mmr_r();
- uint8_t rtc_r();
- void rtc_cmd_w(uint8_t data);
- void rtc_ctrl_w(uint8_t data);
- uint8_t io_rom_data_r();
- void io_rom_addr_w(offs_t offset, uint8_t data);
- uint8_t port70_r();
- uint8_t port71_r();
- void port70_w(uint8_t data);
- void port71_w(uint8_t data);
- uint8_t ppi_pc_r();
- void ppi_pc_w(uint8_t data);
- void pc8401a_palette(palette_device &palette) const;
-
- void scan_keyboard();
- void bankswitch(uint8_t data);
-
- // keyboard state
- int m_key_strobe; // key pressed
-
- // memory state
- uint8_t m_mmr; // memory mapping register
- uint32_t m_io_addr; // I/O ROM address counter
-
- uint8_t m_key_latch;
- TIMER_DEVICE_CALLBACK_MEMBER(pc8401a_keyboard_tick);
- void pc8401a(machine_config &config);
- void pc8401a_video(machine_config &config);
- void pc8401a_io(address_map &map);
- void pc8401a_lcdc(address_map &map);
- void pc8401a_mem(address_map &map);
- void pc8500_io(address_map &map);
- void pc8500_lcdc(address_map &map);
-};
-
-class pc8500_state : public pc8401a_state
-{
-public:
- pc8500_state(const machine_config &mconfig, device_type type, const char *tag)
- : pc8401a_state(mconfig, type, tag)
- { }
-
- void pc8500(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
- void pc8500_video(machine_config &config);
-
-private:
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-#endif // MAME_INCLUDES_PC8401A_H
diff --git a/src/mame/includes/pc8801.h b/src/mame/includes/pc8801.h
deleted file mode 100644
index b88bce35ca7..00000000000
--- a/src/mame/includes/pc8801.h
+++ /dev/null
@@ -1,261 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese
-/********************************************************************************************
-
- PC-8801 (c) 1981 NEC
-
-********************************************************************************************/
-#ifndef MAME_INCLUDES_PC8801_H
-#define MAME_INCLUDES_PC8801_H
-
-#pragma once
-
-
-#include "cpu/z80/z80.h"
-#include "bus/centronics/ctronics.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "machine/i8214.h"
-#include "machine/i8251.h"
-#include "machine/i8255.h"
-#include "machine/timer.h"
-#include "machine/upd1990a.h"
-#include "machine/upd765.h"
-#include "sound/beep.h"
-#include "sound/ym2203.h"
-#include "sound/ym2608.h"
-#include "emupal.h"
-#include "screen.h"
-#include "softlist.h"
-#include "speaker.h"
-
-#define USE_PROPER_I8214 0
-
-#define I8214_TAG "i8214"
-#define UPD1990A_TAG "upd1990a"
-#define I8251_TAG "i8251"
-
-class pc8801_state : public driver_device
-{
-public:
- pc8801_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_screen(*this, "screen")
- , m_fdccpu(*this, "fdccpu")
- , m_fdc(*this, "upd765")
- , m_fdd(*this, "upd765:%u", 0U)
- , m_pic(*this, I8214_TAG)
- , m_rtc(*this, UPD1990A_TAG)
- , m_cassette(*this, "cassette")
- , m_beeper(*this, "beeper")
- , m_opna(*this, "opna")
- , m_opn(*this, "opn")
- , m_palette(*this, "palette")
- { }
-
- void pc8801mc(machine_config &config);
- void pc8801fh(machine_config &config);
- void pc8801(machine_config &config);
- void pc8801ma(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- struct crtc_t
- {
- uint8_t cmd,param_count,cursor_on,status,irq_mask;
- uint8_t param[8][5];
- uint8_t inverse;
- };
-
- struct mouse_t
- {
- uint8_t phase;
- uint8_t x,y;
- attotime time;
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<cpu_device> m_fdccpu;
- required_device<upd765a_device> m_fdc;
- required_device_array<floppy_connector, 2> m_fdd;
- optional_device<i8214_device> m_pic;
- required_device<upd1990a_device> m_rtc;
- required_device<cassette_image_device> m_cassette;
- required_device<beep_device> m_beeper;
- required_device<ym2608_device> m_opna;
- required_device<ym2203_device> m_opn;
- required_device<palette_device> m_palette;
-
- std::unique_ptr<uint8_t[]> m_work_ram;
- std::unique_ptr<uint8_t[]> m_hi_work_ram;
- std::unique_ptr<uint8_t[]> m_ext_work_ram;
- std::unique_ptr<uint8_t[]> m_gvram;
- uint8_t *m_n80rom;
- uint8_t *m_n88rom;
- uint8_t *m_kanji_rom;
- uint8_t *m_cg_rom;
-
- uint8_t m_i8255_0_pc;
- uint8_t m_i8255_1_pc;
- uint8_t m_fdc_irq_opcode;
- uint8_t m_ext_rom_bank;
- uint8_t m_gfx_ctrl;
- uint8_t m_vram_sel;
- uint8_t m_misc_ctrl;
- uint8_t m_device_ctrl_data;
- uint8_t m_window_offset_bank;
- uint8_t m_layer_mask;
- uint16_t m_dma_counter[4];
- uint16_t m_dma_address[4];
- uint8_t m_alu_reg[3];
- uint8_t m_dmac_mode;
- uint8_t m_alu_ctrl1;
- uint8_t m_alu_ctrl2;
- uint8_t m_extram_mode;
- uint8_t m_extram_bank;
- uint8_t m_txt_width;
- uint8_t m_txt_color;
-#if USE_PROPER_I8214
- uint8_t m_timer_irq_mask;
- uint8_t m_vblank_irq_mask;
- uint8_t m_sound_irq_mask;
- uint8_t m_int_state;
-#else
- uint8_t m_i8214_irq_level;
- uint8_t m_vrtc_irq_mask;
- uint8_t m_vrtc_irq_latch;
- uint8_t m_timer_irq_mask;
- uint8_t m_timer_irq_latch;
- uint8_t m_sound_irq_mask;
- uint8_t m_sound_irq_latch;
- uint8_t m_sound_irq_pending;
-#endif
- uint8_t m_has_clock_speed;
- uint8_t m_clock_setting;
- uint8_t m_baudrate_val;
- uint8_t m_has_dictionary;
- uint8_t m_dic_ctrl;
- uint8_t m_dic_bank;
- uint8_t m_has_cdrom;
- uint8_t m_cdrom_reg[0x10];
- crtc_t m_crtc;
- mouse_t m_mouse;
- struct { uint8_t r, g, b; } m_palram[8];
- uint8_t m_dmac_ff;
- uint32_t m_knj_addr[2];
- uint32_t m_extram_size;
- uint8_t m_has_opna;
-
- uint8_t pc8801_alu_r(offs_t offset);
- void pc8801_alu_w(offs_t offset, uint8_t data);
- uint8_t pc8801_wram_r(offs_t offset);
- void pc8801_wram_w(offs_t offset, uint8_t data);
- uint8_t pc8801_ext_wram_r(offs_t offset);
- void pc8801_ext_wram_w(offs_t offset, uint8_t data);
- uint8_t pc8801_nbasic_rom_r(offs_t offset);
- uint8_t pc8801_n88basic_rom_r(offs_t offset);
- uint8_t pc8801_gvram_r(offs_t offset);
- void pc8801_gvram_w(offs_t offset, uint8_t data);
- uint8_t pc8801_high_wram_r(offs_t offset);
- void pc8801_high_wram_w(offs_t offset, uint8_t data);
- uint8_t pc8801ma_dic_r(offs_t offset);
- uint8_t pc8801_cdbios_rom_r(offs_t offset);
- uint8_t pc8801_mem_r(offs_t offset);
- void pc8801_mem_w(offs_t offset, uint8_t data);
- uint8_t pc8801_ctrl_r();
- void pc8801_ctrl_w(uint8_t data);
- uint8_t pc8801_ext_rom_bank_r();
- void pc8801_ext_rom_bank_w(uint8_t data);
- void pc8801_gfx_ctrl_w(uint8_t data);
- uint8_t pc8801_vram_select_r();
- void pc8801_vram_select_w(offs_t offset, uint8_t data);
- void pc8801_irq_level_w(uint8_t data);
- void pc8801_irq_mask_w(uint8_t data);
- uint8_t pc8801_window_bank_r();
- void pc8801_window_bank_w(uint8_t data);
- void pc8801_window_bank_inc_w(uint8_t data);
- uint8_t pc8801_misc_ctrl_r();
- void pc8801_misc_ctrl_w(uint8_t data);
- void pc8801_bgpal_w(uint8_t data);
- void pc8801_palram_w(offs_t offset, uint8_t data);
- void pc8801_layer_masking_w(uint8_t data);
- uint8_t pc8801_crtc_param_r();
- void pc88_crtc_param_w(uint8_t data);
- uint8_t pc8801_crtc_status_r();
- void pc88_crtc_cmd_w(uint8_t data);
- uint8_t pc8801_dmac_r(offs_t offset);
- void pc8801_dmac_w(offs_t offset, uint8_t data);
- uint8_t pc8801_dmac_status_r();
- void pc8801_dmac_mode_w(uint8_t data);
- uint8_t pc8801_extram_mode_r();
- void pc8801_extram_mode_w(uint8_t data);
- uint8_t pc8801_extram_bank_r();
- void pc8801_extram_bank_w(uint8_t data);
- void pc8801_alu_ctrl1_w(uint8_t data);
- void pc8801_alu_ctrl2_w(uint8_t data);
- void pc8801_pcg8100_w(offs_t offset, uint8_t data);
- void pc8801_txt_cmt_ctrl_w(uint8_t data);
- uint8_t pc8801_kanji_r(offs_t offset);
- void pc8801_kanji_w(offs_t offset, uint8_t data);
- uint8_t pc8801_kanji_lv2_r(offs_t offset);
- void pc8801_kanji_lv2_w(offs_t offset, uint8_t data);
- void pc8801_dic_bank_w(uint8_t data);
- void pc8801_dic_ctrl_w(uint8_t data);
- uint8_t pc8801_cdrom_r();
- void pc8801_cdrom_w(offs_t offset, uint8_t data);
- uint8_t pc8801_cpuclock_r();
- uint8_t pc8801_baudrate_r();
- void pc8801_baudrate_w(uint8_t data);
- void pc8801_rtc_w(uint8_t data);
- void upd765_mc_w(uint8_t data);
- uint8_t upd765_tc_r();
- void fdc_irq_vector_w(uint8_t data);
- void fdc_drive_mode_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(txdata_callback);
- DECLARE_WRITE_LINE_MEMBER(rxrdy_w);
- uint8_t pc8801_sound_board_r(offs_t offset);
- void pc8801_sound_board_w(offs_t offset, uint8_t data);
- uint8_t pc8801_opna_r(offs_t offset);
- void pc8801_opna_w(offs_t offset, uint8_t data);
- uint8_t pc8801_unk_r();
- void pc8801_unk_w(uint8_t data);
-
- uint8_t pc8801_pixel_clock(void);
- void pc8801_dynamic_res_change(void);
- void draw_bitmap_3bpp(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void draw_bitmap_1bpp(bitmap_ind16 &bitmap,const rectangle &cliprect);
- uint8_t calc_cursor_pos(int x,int y,int yi);
- uint8_t extract_text_attribute(uint32_t address,int x, uint8_t width, uint8_t &non_special);
- void pc8801_draw_char(bitmap_ind16 &bitmap,int x,int y,int pal,uint8_t gfx_mode,uint8_t reverse,uint8_t secret,
- uint8_t blink,uint8_t upper,uint8_t lower,int y_size,int width, uint8_t non_special);
- void draw_text(bitmap_ind16 &bitmap,int y_size, uint8_t width);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void pc8801_palette(palette_device &palette) const;
- void pc8801_io(address_map &map);
- void pc8801_mem(address_map &map);
- void pc8801fdc_io(address_map &map);
- void pc8801fdc_mem(address_map &map);
- DECLARE_MACHINE_RESET(pc8801_clock_speed);
- DECLARE_MACHINE_RESET(pc8801_dic);
- DECLARE_MACHINE_RESET(pc8801_cdrom);
- INTERRUPT_GEN_MEMBER(pc8801_vrtc_irq);
- TIMER_CALLBACK_MEMBER(pc8801fd_upd765_tc_to_zero);
- TIMER_DEVICE_CALLBACK_MEMBER(pc8801_rtc_irq);
- uint8_t cpu_8255_c_r();
- void cpu_8255_c_w(uint8_t data);
- uint8_t fdc_8255_c_r();
- void fdc_8255_c_w(uint8_t data);
- uint8_t opn_porta_r();
- uint8_t opn_portb_r();
- IRQ_CALLBACK_MEMBER(pc8801_irq_callback);
- DECLARE_WRITE_LINE_MEMBER(pc8801_sound_irq);
-};
-
-#endif // MAME_INCLUDES_PC8801_H
diff --git a/src/mame/includes/pc88va.h b/src/mame/includes/pc88va.h
deleted file mode 100644
index a1157b596cf..00000000000
--- a/src/mame/includes/pc88va.h
+++ /dev/null
@@ -1,213 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese
-/********************************************************************************************
-
- PC-88VA (c) 1987 NEC
-
-********************************************************************************************/
-
-#pragma once
-
-#ifndef MAME_INCLUDES_PC88VA_H
-#define MAME_INCLUDES_PC88VA_H
-
-#include "cpu/nec/v5x.h"
-#include "cpu/z80/z80.h"
-#include "imagedev/floppy.h"
-#include "machine/am9517a.h"
-#include "machine/i8255.h"
-#include "machine/pic8259.h"
-#include "machine/pit8253.h"
-//#include "machine/upd71071.h"
-#include "machine/upd765.h"
-#include "machine/bankdev.h"
-#include "sound/ym2203.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "softlist.h"
-#include "speaker.h"
-
-#include "formats/xdf_dsk.h"
-
-// TODO: for the time being, just disable FDC CPU, it's for PC-8801 compatibility mode anyway.
-// the whole FDC device should be converted (it's also used by PC-9801)
-#define TEST_SUBFDC 0
-
-
-
-class pc88va_state : public driver_device
-{
-public:
- enum
- {
- TIMER_PC8801FD_UPD765_TC_TO_ZERO,
- TIMER_T3_MOUSE_CALLBACK,
- TIMER_PC88VA_FDC_TIMER,
- TIMER_PC88VA_FDC_MOTOR_START_0,
- TIMER_PC88VA_FDC_MOTOR_START_1
- };
-
- pc88va_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_fdc(*this, "upd765"),
- m_fdd(*this, "upd765:%u", 0U),
- m_dmac(*this, "dmac"),
- m_pic1(*this, "pic8259_master"),
- m_pic2(*this, "pic8259_slave"),
- m_palram(*this, "palram"),
- m_sysbank(*this, "sysbank"),
- m_tvram(*this, "tvram"),
- m_gvram(*this, "gvram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void pc88va(machine_config &config);
-
-protected:
- struct tsp_t
- {
- uint16_t tvram_vreg_offset;
- uint16_t attr_offset;
- uint16_t spr_offset;
- uint8_t disp_on;
- uint8_t spr_on;
- uint8_t pitch;
- uint8_t line_height;
- uint8_t h_line_pos;
- uint8_t blink;
- uint16_t cur_pos_x,cur_pos_y;
- uint8_t curn;
- uint8_t curn_blink;
- };
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<upd765a_device> m_fdc;
- required_device_array<floppy_connector, 2> m_fdd;
- required_device<am9517a_device> m_dmac;
- required_device<pic8259_device> m_pic1;
- required_device<pic8259_device> m_pic2;
- required_shared_ptr<uint16_t> m_palram;
- required_device<address_map_bank_device> m_sysbank;
- required_shared_ptr<uint16_t> m_tvram;
- required_shared_ptr<uint16_t> m_gvram;
- uint8_t *m_kanjiram;
- uint16_t m_bank_reg;
- uint16_t m_screen_ctrl_reg;
- uint8_t m_timer3_io_reg;
- emu_timer *m_t3_mouse_timer;
- tsp_t m_tsp;
- uint16_t m_video_pri_reg[2];
- uint8_t m_backupram_wp;
- uint8_t m_cmd;
- uint8_t m_buf_size;
- uint8_t m_buf_index;
- uint8_t m_buf_ram[16];
- uint8_t m_portc_test;
- uint8_t m_fdc_motor_status[2];
-
- /* floppy state */
- uint8_t m_i8255_0_pc;
- uint8_t m_i8255_1_pc;
- uint8_t m_fdc_mode;
- uint8_t m_fdc_irq_opcode;
- uint8_t idp_status_r();
- void idp_command_w(uint8_t data);
- void idp_param_w(uint8_t data);
- void palette_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t sys_port4_r();
- uint16_t bios_bank_r();
- void bios_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t rom_bank_r();
- uint8_t key_r(offs_t offset);
- void backupram_wp_1_w(uint16_t data);
- void backupram_wp_0_w(uint16_t data);
- uint8_t kanji_ram_r(offs_t offset);
- void kanji_ram_w(offs_t offset, uint8_t data);
- uint8_t hdd_status_r();
- #if TEST_SUBFDC
- uint8_t upd765_tc_r();
- void upd765_mc_w(uint8_t data);
- #else
- uint8_t no_subfdc_r();
- #endif
- uint8_t pc88va_fdc_r(offs_t offset);
- void pc88va_fdc_w(offs_t offset, uint8_t data);
- uint16_t sysop_r();
- uint16_t screen_ctrl_r();
- void screen_ctrl_w(uint16_t data);
- void timer3_ctrl_reg_w(uint8_t data);
- void video_pri_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t backupram_dsw_r(offs_t offset);
- void sys_port1_w(uint8_t data);
- uint32_t screen_update_pc88va(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(pc88va_vrtc_irq);
- uint8_t cpu_8255_c_r();
- void cpu_8255_c_w(uint8_t data);
- uint8_t fdc_8255_c_r();
- void fdc_8255_c_w(uint8_t data);
- uint8_t r232_ctrl_porta_r();
- uint8_t r232_ctrl_portb_r();
- uint8_t r232_ctrl_portc_r();
- void r232_ctrl_porta_w(uint8_t data);
- void r232_ctrl_portb_w(uint8_t data);
- void r232_ctrl_portc_w(uint8_t data);
- uint8_t get_slave_ack(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(pc88va_pit_out0_changed);
-// DECLARE_WRITE_LINE_MEMBER(pc88va_upd765_interrupt);
- uint8_t m_fdc_ctrl_2;
- TIMER_CALLBACK_MEMBER(pc8801fd_upd765_tc_to_zero);
- TIMER_CALLBACK_MEMBER(t3_mouse_callback);
- TIMER_CALLBACK_MEMBER(pc88va_fdc_timer);
- TIMER_CALLBACK_MEMBER(pc88va_fdc_motor_start_0);
- TIMER_CALLBACK_MEMBER(pc88va_fdc_motor_start_1);
-// uint16_t m_fdc_dma_r();
-// void m_fdc_dma_w(uint16_t data);
- DECLARE_WRITE_LINE_MEMBER(pc88va_hlda_w);
- DECLARE_WRITE_LINE_MEMBER(pc88va_tc_w);
- uint8_t fdc_dma_r();
- void fdc_dma_w(uint8_t data);
- uint8_t dma_memr_cb(offs_t offset);
- void dma_memw_cb(offs_t offset, uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(fdc_irq);
- DECLARE_WRITE_LINE_MEMBER(fdc_drq);
- static void floppy_formats(format_registration &fr);
- void pc88va_fdc_update_ready(floppy_image_device *, int);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t calc_kanji_rom_addr(uint8_t jis1,uint8_t jis2,int x,int y);
- void draw_text(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void tsp_sprite_enable(uint32_t spr_offset, uint16_t sw_bit);
- void execute_sync_cmd();
- void execute_dspon_cmd();
- void execute_dspdef_cmd();
- void execute_curdef_cmd();
- void execute_actscr_cmd();
- void execute_curs_cmd();
- void execute_emul_cmd();
- void execute_spron_cmd();
- void execute_sprsw_cmd();
-
- void pc88va_map(address_map &map);
- void pc88va_io_map(address_map &map);
- void sysbank_map(address_map &map);
-
- void pc88va_z80_io_map(address_map &map);
- void pc88va_z80_map(address_map &map);
-protected:
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-};
-
-
-#endif
diff --git a/src/mame/includes/pc9801.h b/src/mame/includes/pc9801.h
deleted file mode 100644
index e4d4e2e98d3..00000000000
--- a/src/mame/includes/pc9801.h
+++ /dev/null
@@ -1,444 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese,Carl
-#ifndef MAME_INCLUDES_PC9801_H
-#define MAME_INCLUDES_PC9801_H
-
-#pragma once
-
-#include "cpu/i386/i386.h"
-#include "cpu/i86/i286.h"
-#include "cpu/i86/i86.h"
-#include "cpu/nec/nec.h"
-
-#include "imagedev/floppy.h"
-#include "machine/am9517a.h"
-#include "machine/bankdev.h"
-#include "machine/buffer.h"
-#include "machine/i8251.h"
-#include "machine/i8255.h"
-#include "machine/output_latch.h"
-#include "machine/pic8259.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "machine/upd1990a.h"
-#include "machine/pc9801_memsw.h"
-#include "machine/upd765.h"
-
-#include "bus/scsi/pc9801_sasi.h"
-#include "bus/scsi/scsi.h"
-#include "bus/scsi/scsihd.h"
-
-#include "sound/beep.h"
-#include "sound/spkrdev.h"
-#include "sound/ym2608.h"
-
-#include "video/upd7220.h"
-
-#include "bus/cbus/pc9801_26.h"
-#include "bus/cbus/pc9801_86.h"
-#include "bus/cbus/pc9801_118.h"
-#include "bus/cbus/pc9801_amd98.h"
-#include "bus/cbus/mpu_pc98.h"
-#include "bus/cbus/pc9801_cbus.h"
-#include "machine/pc9801_kbd.h"
-#include "machine/pc9801_cd.h"
-
-#include "bus/ata/atadev.h"
-#include "bus/ata/ataintf.h"
-
-#include "debugger.h"
-#include "emupal.h"
-#include "screen.h"
-#include "softlist.h"
-#include "speaker.h"
-
-#include "formats/pc98_dsk.h"
-#include "formats/pc98fdi_dsk.h"
-#include "formats/fdd_dsk.h"
-#include "formats/dcp_dsk.h"
-#include "formats/dip_dsk.h"
-#include "formats/nfd_dsk.h"
-
-
-#define UPD1990A_TAG "upd1990a"
-#define UPD8251_TAG "upd8251"
-#define SASIBUS_TAG "sasi"
-
-#define ATTRSEL_REG 0
-#define WIDTH40_REG 2
-#define FONTSEL_REG 3
-#define INTERLACE_REG 4
-#define MEMSW_REG 6
-#define DISPLAY_REG 7
-
-#define ANALOG_16_MODE 0
-#define ANALOG_256_MODE (0x20 >> 1)
-#define GDC_IS_5MHz (0x84 >> 1)
-
-class pc9801_state : public driver_device
-{
-public:
- pc9801_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_dmac(*this, "i8237"),
- m_pit8253(*this, "pit8253"),
- m_pic1(*this, "pic8259_master"),
- m_pic2(*this, "pic8259_slave"),
- m_ppi_sys(*this, "ppi8255_sys"),
- m_ppi_prn(*this, "ppi8255_prn"),
- m_fdc_2hd(*this, "upd765_2hd"),
- m_fdc_2dd(*this, "upd765_2dd"),
- m_rtc(*this, UPD1990A_TAG),
- m_memsw(*this, "memsw"),
- m_keyb(*this, "keyb"),
- m_sio(*this, UPD8251_TAG),
- m_hgdc1(*this, "upd7220_chr"),
- m_hgdc2(*this, "upd7220_btm"),
- m_sasibus(*this, SASIBUS_TAG),
- m_sasi_data_out(*this, "sasi_data_out"),
- m_sasi_data_in(*this, "sasi_data_in"),
- m_sasi_ctrl_in(*this, "sasi_ctrl_in"),
- m_ide(*this, "ide%u", 1U),
- m_video_ram_1(*this, "video_ram_1"),
- m_video_ram_2(*this, "video_ram_2"),
- m_ext_gvram(*this, "ext_gvram"),
- m_beeper(*this, "beeper"),
- m_ram(*this, RAM_TAG),
- m_ipl(*this, "ipl_bank"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen")
- {
- }
-
- void pc9801(machine_config &config);
-
- void pc9801vm(machine_config &config);
-
- void pc9801ux(machine_config &config);
- void pc9801rs(machine_config &config);
-
- void pc9801bx2(machine_config &config);
-
- void pc9821(machine_config &config);
- void pc9821as(machine_config &config);
- void pc9821ap2(machine_config &config);
- void pc9821xa16(machine_config &config);
- void pc9821ra20(machine_config &config);
- void pc9821ra333(machine_config &config);
- void pc9821v20(machine_config &config);
-
- void pc386m(machine_config &config);
- void pc486mu(machine_config &config);
- void pc486se(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(system_type_r);
- void init_pc9801_kanji();
- void init_pc9801vm_kanji();
-
-protected:
- virtual void video_start() override;
-
- void pc9801_keyboard(machine_config &config);
- void pc9801_mouse(machine_config &config);
- void pc9801_cbus(machine_config &config);
- void pc9801_sasi(machine_config &config);
- void pc9801_ide(machine_config &config);
- void pc9801_common(machine_config &config);
- void pc9801_pit_clock(machine_config &config, const XTAL clock);
-
-private:
- static void cdrom_headphones(device_t *device);
-
- required_device<cpu_device> m_maincpu;
- required_device<am9517a_device> m_dmac;
- required_device<pit8253_device> m_pit8253;
- required_device<pic8259_device> m_pic1;
- required_device<pic8259_device> m_pic2;
- required_device<i8255_device> m_ppi_sys;
- required_device<i8255_device> m_ppi_prn;
- required_device<upd765a_device> m_fdc_2hd;
- optional_device<upd765a_device> m_fdc_2dd;
- required_device<upd1990a_device> m_rtc;
- required_device<pc9801_memsw_device> m_memsw;
- required_device<pc9801_kbd_device> m_keyb;
- required_device<i8251_device> m_sio;
- required_device<upd7220_device> m_hgdc1;
- required_device<upd7220_device> m_hgdc2;
- optional_device<scsi_port_device> m_sasibus;
- optional_device<output_latch_device> m_sasi_data_out;
- optional_device<input_buffer_device> m_sasi_data_in;
- optional_device<input_buffer_device> m_sasi_ctrl_in;
- optional_device_array<ata_interface_device, 2> m_ide;
- required_shared_ptr<uint16_t> m_video_ram_1;
- required_shared_ptr<uint16_t> m_video_ram_2;
- optional_shared_ptr<uint32_t> m_ext_gvram;
- required_device<beep_device> m_beeper;
- optional_device<ram_device> m_ram;
- optional_device<address_map_bank_device> m_ipl;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- void rtc_w(uint8_t data);
- void dmapg4_w(offs_t offset, uint8_t data);
- void dmapg8_w(offs_t offset, uint8_t data);
- void nmi_ctrl_w(offs_t offset, uint8_t data);
- void vrtc_clear_w(uint8_t data);
- void pc9801_video_ff_w(uint8_t data);
- uint8_t txt_scrl_r(offs_t offset);
- void txt_scrl_w(offs_t offset, uint8_t data);
- uint8_t grcg_r(offs_t offset);
- void grcg_w(offs_t offset, uint8_t data);
- void egc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t pc9801_a0_r(offs_t offset);
- void pc9801_a0_w(offs_t offset, uint8_t data);
- uint8_t fdc_2hd_ctrl_r();
- void fdc_2hd_ctrl_w(uint8_t data);
- uint8_t fdc_2dd_ctrl_r();
- void fdc_2dd_ctrl_w(uint8_t data);
- uint16_t tvram_r(offs_t offset, uint16_t mem_mask = ~0);
- void tvram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t gvram_r(offs_t offset);
- void gvram_w(offs_t offset, uint8_t data);
- void pc9801rs_mouse_freq_w(offs_t offset, uint8_t data);
- uint16_t grcg_gvram_r(offs_t offset, uint16_t mem_mask = ~0);
- void grcg_gvram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t grcg_gvram0_r(offs_t offset, uint16_t mem_mask = ~0);
- void grcg_gvram0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t pc9821_grcg_gvram_r(offs_t offset, uint16_t mem_mask = ~0);
- void pc9821_grcg_gvram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t pc9821_grcg_gvram0_r(offs_t offset, uint16_t mem_mask = ~0);
- void pc9821_grcg_gvram0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t upd7220_grcg_r(offs_t offset, uint16_t mem_mask = ~0);
- void upd7220_grcg_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint8_t ide_ctrl_r();
- void ide_ctrl_w(uint8_t data);
- uint16_t ide_cs0_r(offs_t offset, uint16_t mem_mask = ~0);
- void ide_cs0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t ide_cs1_r(offs_t offset, uint16_t mem_mask = ~0);
- void ide_cs1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void sasi_data_w(uint8_t data);
- uint8_t sasi_data_r();
- DECLARE_WRITE_LINE_MEMBER(write_sasi_io);
- DECLARE_WRITE_LINE_MEMBER(write_sasi_req);
- uint8_t sasi_status_r();
- void sasi_ctrl_w(uint8_t data);
-
- uint8_t pc9801rs_knjram_r(offs_t offset);
- void pc9801rs_knjram_w(offs_t offset, uint8_t data);
- void pc9801rs_bank_w(offs_t offset, uint8_t data);
- uint8_t f0_r(offs_t offset);
-
- uint8_t a20_ctrl_r(offs_t offset);
- void a20_ctrl_w(offs_t offset, uint8_t data);
- uint8_t fdc_mode_ctrl_r();
- void fdc_mode_ctrl_w(uint8_t data);
-// uint8_t pc9801rs_2dd_r();
-// void pc9801rs_2dd_w(uint8_t data);
- void pc9801rs_video_ff_w(offs_t offset, uint8_t data);
- void pc9801rs_a0_w(offs_t offset, uint8_t data);
- void pc9821_video_ff_w(offs_t offset, uint8_t data);
- uint8_t pc9821_a0_r(offs_t offset);
- void pc9821_a0_w(offs_t offset, uint8_t data);
- uint8_t access_ctrl_r(offs_t offset);
- void access_ctrl_w(offs_t offset, uint8_t data);
- uint8_t midi_r();
-// uint8_t winram_r();
-// void winram_w(uint8_t data);
- uint8_t pic_r(offs_t offset);
- void pic_w(offs_t offset, uint8_t data);
-
- uint8_t sdip_0_r(offs_t offset);
- uint8_t sdip_1_r(offs_t offset);
- uint8_t sdip_2_r(offs_t offset);
- uint8_t sdip_3_r(offs_t offset);
- uint8_t sdip_4_r(offs_t offset);
- uint8_t sdip_5_r(offs_t offset);
- uint8_t sdip_6_r(offs_t offset);
- uint8_t sdip_7_r(offs_t offset);
- uint8_t sdip_8_r(offs_t offset);
- uint8_t sdip_9_r(offs_t offset);
- uint8_t sdip_a_r(offs_t offset);
- uint8_t sdip_b_r(offs_t offset);
-
- void sdip_0_w(offs_t offset, uint8_t data) ;
- void sdip_1_w(offs_t offset, uint8_t data) ;
- void sdip_2_w(offs_t offset, uint8_t data) ;
- void sdip_3_w(offs_t offset, uint8_t data) ;
- void sdip_4_w(offs_t offset, uint8_t data) ;
- void sdip_5_w(offs_t offset, uint8_t data) ;
- void sdip_6_w(offs_t offset, uint8_t data) ;
- void sdip_7_w(offs_t offset, uint8_t data) ;
- void sdip_8_w(offs_t offset, uint8_t data) ;
- void sdip_9_w(offs_t offset, uint8_t data) ;
- void sdip_a_w(offs_t offset, uint8_t data) ;
- void sdip_b_w(offs_t offset, uint8_t data) ;
-
- uint8_t as_unkdev_data_r(offs_t offset);
- void as_unkdev_data_w(offs_t offset, uint8_t data);
- void as_unkdev_addr_w(offs_t offset, uint8_t data);
-
- uint8_t window_bank_r(offs_t offset);
- void window_bank_w(offs_t offset, uint8_t data);
- uint16_t timestamp_r(offs_t offset);
- uint8_t ext2_video_ff_r();
- void ext2_video_ff_w(uint8_t data);
-
- static void floppy_formats(format_registration &fr);
- UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels );
- UPD7220_DRAW_TEXT_LINE_MEMBER( hgdc_draw_text );
-
- DECLARE_MACHINE_START(pc9801_common);
- DECLARE_MACHINE_START(pc9801f);
- DECLARE_MACHINE_START(pc9801rs);
- DECLARE_MACHINE_START(pc9801bx2);
- DECLARE_MACHINE_START(pc9821);
- DECLARE_MACHINE_START(pc9821ap2);
- DECLARE_MACHINE_RESET(pc9801_common);
- DECLARE_MACHINE_RESET(pc9801f);
- DECLARE_MACHINE_RESET(pc9801rs);
- DECLARE_MACHINE_RESET(pc9821);
-
- void pc9801_palette(palette_device &palette) const;
- DECLARE_WRITE_LINE_MEMBER(vrtc_irq);
- uint8_t get_slave_ack(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(dma_hrq_changed);
- DECLARE_WRITE_LINE_MEMBER(tc_w);
- uint8_t dma_read_byte(offs_t offset);
- void dma_write_byte(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(dack0_w);
- DECLARE_WRITE_LINE_MEMBER(dack1_w);
- DECLARE_WRITE_LINE_MEMBER(dack2_w);
- DECLARE_WRITE_LINE_MEMBER(dack3_w);
- void ppi_sys_portc_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(fdc_2dd_irq);
- DECLARE_WRITE_LINE_MEMBER(pc9801rs_fdc_irq);
- DECLARE_WRITE_LINE_MEMBER(pc9801rs_fdc_drq);
-
- uint8_t ppi_mouse_porta_r();
- void ppi_mouse_porta_w(uint8_t data);
- void ppi_mouse_portb_w(uint8_t data);
- void ppi_mouse_portc_w(uint8_t data);
- TIMER_DEVICE_CALLBACK_MEMBER( mouse_irq_cb );
- uint8_t unk_r();
-
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t a20_286(bool state);
-
- void ipl_bank(address_map &map);
- void pc9801_common_io(address_map &map);
- void pc9801_io(address_map &map);
- void pc9801_map(address_map &map);
- void pc9801rs_io(address_map &map);
- void pc9801rs_map(address_map &map);
- void pc9801ux_io(address_map &map);
- void pc9801ux_map(address_map &map);
- void pc9821_io(address_map &map);
- void pc9821_map(address_map &map);
- void pc9821as_io(address_map &map);
- void upd7220_1_map(address_map &map);
- void upd7220_2_map(address_map &map);
- void upd7220_grcg_2_map(address_map &map);
-
- enum
- {
- TIMER_VBIRQ
- };
-
- inline void set_dma_channel(int channel, int state);
- uint8_t *m_char_rom;
- uint8_t *m_kanji_rom;
-
- uint8_t m_dma_offset[4];
- uint8_t m_dma_autoinc[4];
- int m_dack;
-
- uint8_t m_video_ff[8],m_gfx_ff;
- uint8_t m_txt_scroll_reg[8];
- uint8_t m_pal_clut[4];
-
- std::unique_ptr<uint16_t[]> m_tvram;
-
- uint16_t m_font_addr;
- uint8_t m_font_line;
- uint16_t m_font_lr;
-
- uint8_t m_fdc_2dd_ctrl,m_fdc_2hd_ctrl;
- uint8_t m_nmi_ff;
-
- uint8_t m_vram_bank;
- uint8_t m_vram_disp;
-
- uint8_t m_sasi_data;
- int m_sasi_data_enable;
- uint8_t m_sasi_ctrl;
-
- struct{
- uint8_t control;
- uint8_t lx, ly;
- uint8_t dx, dy;
- uint8_t prev_dx, prev_dy;
- uint8_t freq_reg;
- uint8_t freq_index;
- }m_mouse;
-
- uint8_t m_ide_sel;
-
- /* PC9801RS specific, move to specific state */
- uint8_t m_gate_a20; //A20 line
- uint8_t m_access_ctrl; // DMA related
- uint8_t m_fdc_ctrl;
- uint8_t m_ex_video_ff[128];
- struct {
- uint8_t pal_entry;
- uint8_t r[16],g[16],b[16];
- }m_analog16;
- struct {
- uint8_t pal_entry;
- uint8_t r[0x100],g[0x100],b[0x100];
- uint16_t bank[2];
- }m_analog256;
- struct {
- uint8_t mode;
- uint8_t tile[4], tile_index;
- }m_grcg;
-
- void egc_blit_w(uint32_t offset, uint16_t data, uint16_t mem_mask);
- uint16_t egc_blit_r(uint32_t offset, uint16_t mem_mask);
-
-
- /* PC9821 specific */
- uint8_t m_sdip[24], m_sdip_bank;
- uint8_t m_unkdev0468[0x100], m_unkdev0468_addr;
- uint8_t m_pc9821_window_bank;
- uint8_t m_ext2_ff;
- uint8_t m_sys_type;
-
- struct {
- uint16_t regs[8];
- uint16_t pat[4];
- uint16_t src[4];
- int16_t count;
- uint16_t leftover[4];
- bool first;
- bool init;
- } m_egc;
-
- uint16_t m_pc9821_256vram_bank;
-
- uint8_t m_sdip_read(uint16_t port, uint8_t sdip_offset);
- void m_sdip_write(uint16_t port, uint8_t sdip_offset,uint8_t data);
- uint16_t egc_do_partial_op(int plane, uint16_t src, uint16_t pat, uint16_t dst) const;
- uint16_t egc_shift(int plane, uint16_t val);
-};
-
-#endif // MAME_INCLUDES_PC9801_H
diff --git a/src/mame/includes/pce.h b/src/mame/includes/pce.h
deleted file mode 100644
index 38cd0f23335..00000000000
--- a/src/mame/includes/pce.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Charles MacDonald, Wilbert Pol, Angelo Salese
-/*****************************************************************************
- *
- * includes/pce.h
- *
- * NEC PC Engine/TurboGrafx16
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_PCE_H
-#define MAME_INCLUDES_PCE_H
-
-#include "cdrom.h"
-#include "cpu/h6280/h6280.h"
-#include "bus/pce/pce_slot.h"
-#include "machine/pce_cd.h"
-#include "video/huc6260.h"
-
-#define C6280_TAG "c6280"
-
-#define MAIN_CLOCK 21477270
-
-#define TG_16_JOY_SIG 0x00
-#define PCE_JOY_SIG 0x40
-#define NO_CD_SIG 0x80
-#define CD_SIG 0x00
-/* these might be used to indicate something, but they always seem to return 1 */
-#define CONST_SIG 0x30
-
-
-
-class pce_state : public driver_device
-{
-public:
- pce_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_cd_ram(*this, "cd_ram"),
- m_user_ram(*this, "user_ram"),
- m_huc6260(*this, "huc6260"),
- m_cartslot(*this, "cartslot"),
- m_cd(*this, "pce_cd"),
- m_joy(*this, "JOY_P.%u", 0),
- m_joy6b(*this, "JOY6B_P.%u", 0),
- m_joy_type(*this, "JOY_TYPE"),
- m_a_card(*this, "A_CARD")
- { }
-
- void init_sgx();
- void init_tg16();
- void init_mess_pce();
-
- void pce_common(machine_config &config);
- void pce(machine_config &config);
- void tg16(machine_config &config);
- void sgx(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_device<h6280_device> m_maincpu;
- required_shared_ptr<uint8_t> m_cd_ram;
- required_shared_ptr<uint8_t> m_user_ram;
- required_device<huc6260_device> m_huc6260;
- required_device<pce_cart_slot_device> m_cartslot;
- optional_device<pce_cd_device> m_cd;
- required_ioport_array<5> m_joy;
- required_ioport_array<5> m_joy6b;
- required_ioport m_joy_type;
- required_ioport m_a_card;
-
- uint8_t m_io_port_options;
- uint8_t m_sys3_card;
- uint8_t m_acard;
- int m_joystick_port_select;
- int m_joystick_data_select;
- uint8_t m_joy_6b_packet[5];
- void mess_pce_joystick_w(uint8_t data);
- uint8_t mess_pce_joystick_r();
- void pce_cd_intf_w(offs_t offset, uint8_t data);
- uint8_t pce_cd_intf_r(offs_t offset);
- uint8_t pce_cd_acard_wram_r(offs_t offset);
- void pce_cd_acard_wram_w(offs_t offset, uint8_t data);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void pce_io(address_map &map);
- void pce_mem(address_map &map);
- void sgx_io(address_map &map);
- void sgx_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PCE_H
diff --git a/src/mame/includes/pcktgal.h b/src/mame/includes/pcktgal.h
deleted file mode 100644
index 798b8d1d36e..00000000000
--- a/src/mame/includes/pcktgal.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_PCKTGAL_H
-#define MAME_INCLUDES_PCKTGAL_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "video/decbac06.h"
-#include "emupal.h"
-
-class pcktgal_state : public driver_device
-{
-public:
- pcktgal_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_tilegen(*this, "tilegen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram")
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<msm5205_device> m_msm;
- required_device<deco_bac06_device> m_tilegen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_spriteram;
-
- int m_msm5205next;
- int m_toggle;
-
- void bank_w(uint8_t data);
- void sound_bank_w(uint8_t data);
- void sound_w(uint8_t data);
- void adpcm_data_w(uint8_t data);
- uint8_t sound_unk_r();
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
-
- void init_pcktgal();
- void pcktgal_palette(palette_device &palette) const;
- virtual void machine_start() override;
-
- uint32_t screen_update_pcktgal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_pcktgalb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bool flip_screen);
- void bootleg(machine_config &config);
- void pcktgal(machine_config &config);
- void pcktgal2(machine_config &config);
- void pcktgal_map(address_map &map);
- void pcktgal_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PCKTGAL_H
diff --git a/src/mame/includes/pcw.h b/src/mame/includes/pcw.h
deleted file mode 100644
index 0d4aa95e225..00000000000
--- a/src/mame/includes/pcw.h
+++ /dev/null
@@ -1,172 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker
-/*****************************************************************************
- *
- * includes/pcw.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_PCW_H
-#define MAME_INCLUDES_PCW_H
-
-#pragma once
-
-#include "cpu/mcs48/mcs48.h"
-#include "imagedev/floppy.h"
-#include "machine/upd765.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "sound/beep.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define PCW_BORDER_HEIGHT 8
-#define PCW_BORDER_WIDTH 8
-#define PCW_NUM_COLOURS 2
-#define PCW_DISPLAY_WIDTH 720
-#define PCW_DISPLAY_HEIGHT 256
-
-#define PCW_SCREEN_WIDTH (PCW_DISPLAY_WIDTH + (PCW_BORDER_WIDTH<<1))
-#define PCW_SCREEN_HEIGHT (PCW_DISPLAY_HEIGHT + (PCW_BORDER_HEIGHT<<1))
-#define PCW_PRINTER_WIDTH (80*16)
-#define PCW_PRINTER_HEIGHT (20*16)
-
-
-class pcw_state : public driver_device
-{
-public:
- pcw_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_printer_mcu(*this, "printer_mcu")
- , m_keyboard_mcu(*this, "keyboard_mcu")
- , m_fdc(*this, "upd765")
- , m_floppy(*this, "upd765:%u", 0U)
- , m_ram(*this, RAM_TAG)
- , m_beeper(*this, "beeper")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_ppalette(*this, "ppalette")
- , m_rdbanks(*this, "bank%u", 1U)
- , m_wrbanks(*this, "bank%u", 5U)
- , m_iptlines(*this, "LINE%u", 0U)
- { }
-
- void pcw(machine_config &config);
- void pcw8256(machine_config &config);
- void pcw8512(machine_config &config);
- void pcw9512(machine_config &config);
- void pcw9256(machine_config &config);
- void pcw9512p(machine_config &config);
- void pcw10(machine_config &config);
-
- void init_pcw();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- int m_boot;
- int m_system_status;
- int m_fdc_interrupt_code;
- int m_interrupt_counter;
- uint8_t m_banks[4];
- unsigned char m_bank_force;
- uint8_t m_timer_irq_flag;
- uint8_t m_nmi_flag;
- int16_t m_printer_headpos;
- uint16_t m_kb_scan_row;
- uint8_t m_mcu_keyboard_data[16];
- uint8_t m_mcu_transmit_reset_seq;
- uint8_t m_mcu_transmit_count;
- uint8_t m_mcu_selected;
- uint8_t m_mcu_buffer;
- uint8_t m_mcu_prev;
- unsigned int m_roller_ram_addr;
- unsigned short m_roller_ram_offset;
- unsigned char m_vdu_video_control_register;
- uint8_t m_printer_serial; // value if shift/store data pin
- uint8_t m_printer_shift; // state of shift register
- uint8_t m_printer_shift_output; // output presented to the paper feed motor and print head motor
- uint8_t m_head_motor_state;
- uint8_t m_linefeed_motor_state;
- uint16_t m_printer_pins;
- uint8_t m_printer_p2; // MCU port P2 state
- uint32_t m_paper_feed; // amount of paper fed through printer, by n/360 inches. One line feed is 61/360in (from the linefeed command in CP/M;s ptr menu)
- std::unique_ptr<bitmap_ind16> m_prn_output;
- uint8_t m_printer_p2_prev;
- emu_timer *m_prn_stepper;
- emu_timer *m_prn_pins;
- emu_timer *m_pulse_timer;
- emu_timer *m_beep_setup_timer;
- uint8_t pcw_keyboard_r(offs_t offset);
- uint8_t pcw_keyboard_data_r(offs_t offset);
- uint8_t pcw_interrupt_counter_r();
- void pcw_bank_select_w(offs_t offset, uint8_t data);
- void pcw_bank_force_selection_w(uint8_t data);
- void pcw_roller_ram_addr_w(uint8_t data);
- void pcw_pointer_table_top_scan_w(uint8_t data);
- void pcw_vdu_video_control_register_w(uint8_t data);
- void pcw_system_control_w(uint8_t data);
- uint8_t pcw_system_status_r();
- uint8_t pcw_expansion_r(offs_t offset);
- void pcw_expansion_w(offs_t offset, uint8_t data);
- uint8_t mcu_printer_p1_r();
- void mcu_printer_p1_w(uint8_t data);
- uint8_t mcu_printer_p2_r();
- void mcu_printer_p2_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER(mcu_printer_t1_r);
- DECLARE_READ_LINE_MEMBER(mcu_printer_t0_r);
- uint8_t mcu_kb_scan_r();
- void mcu_kb_scan_w(uint8_t data);
- uint8_t mcu_kb_scan_high_r();
- void mcu_kb_scan_high_w(uint8_t data);
- uint8_t mcu_kb_data_r();
- DECLARE_READ_LINE_MEMBER(mcu_kb_t1_r);
- DECLARE_READ_LINE_MEMBER(mcu_kb_t0_r);
- uint8_t pcw9512_parallel_r(offs_t offset);
- void pcw9512_parallel_w(offs_t offset, uint8_t data);
- void mcu_transmit_serial(uint8_t bit);
-
- void set_8xxx_palette(palette_device &palette) const;
- void set_9xxx_palette(palette_device &palette) const;
- void set_printer_palette(palette_device &palette) const;
- uint32_t screen_update_pcw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_pcw_printer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(pcw_timer_pulse);
- TIMER_CALLBACK_MEMBER(pcw_stepper_callback);
- TIMER_CALLBACK_MEMBER(pcw_pins_callback);
- TIMER_CALLBACK_MEMBER(setup_beep);
- TIMER_DEVICE_CALLBACK_MEMBER(pcw_timer_interrupt);
-
- static void floppy_formats(format_registration &fr);
-
- DECLARE_WRITE_LINE_MEMBER( pcw_fdc_interrupt );
- required_device<cpu_device> m_maincpu;
- required_device<upi41_cpu_device> m_printer_mcu;
- required_device<i8048_device> m_keyboard_mcu;
- required_device<upd765a_device> m_fdc;
- required_device_array<floppy_connector, 2> m_floppy;
- required_device<ram_device> m_ram;
- required_device<beep_device> m_beeper;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<palette_device> m_ppalette;
- required_memory_bank_array<4> m_rdbanks, m_wrbanks;
- required_ioport_array<16> m_iptlines;
-
- inline void pcw_plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color);
- void pcw_update_interrupt_counter();
- void pcw_update_irqs();
- void pcw_update_read_memory_block(int block, int bank);
- void pcw_update_write_memory_block(int block, int bank);
- void pcw_update_mem(int block, int data);
- int pcw_get_sys_status();
- void pcw_printer_fire_pins(uint16_t pins);
- void pcw9512_io(address_map &map);
- void pcw_io(address_map &map);
- void pcw_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PCW_H
diff --git a/src/mame/includes/pcw16.h b/src/mame/includes/pcw16.h
deleted file mode 100644
index dd898490661..00000000000
--- a/src/mame/includes/pcw16.h
+++ /dev/null
@@ -1,156 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker
-/*****************************************************************************
- *
- * includes/pcw16.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_PCW16_H
-#define MAME_INCLUDES_PCW16_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/upd765.h" /* FDC superio */
-#include "machine/pc_lpt.h" /* PC-Parallel Port */
-#include "machine/pckeybrd.h" /* PC-AT keyboard */
-#include "machine/upd765.h" /* FDC superio */
-#include "machine/ins8250.h" /* pc com port */
-#include "sound/beep.h" /* pcw/pcw16 beeper */
-#include "machine/intelfsh.h"
-#include "formats/pc_dsk.h"
-#include "imagedev/floppy.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "emupal.h"
-
-#define PCW16_BORDER_HEIGHT 8
-#define PCW16_BORDER_WIDTH 8
-#define PCW16_NUM_COLOURS 32
-#define PCW16_DISPLAY_WIDTH 640
-#define PCW16_DISPLAY_HEIGHT 480
-
-#define PCW16_SCREEN_WIDTH (PCW16_DISPLAY_WIDTH + (PCW16_BORDER_WIDTH<<1))
-#define PCW16_SCREEN_HEIGHT (PCW16_DISPLAY_HEIGHT + (PCW16_BORDER_HEIGHT<<1))
-
-
-class pcw16_state : public driver_device
-{
-public:
- pcw16_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_flash0(*this, "flash0"),
- m_flash1(*this, "flash1"),
- m_fdc(*this, "fdc"),
- m_uart2(*this, "ns16550_2"),
- m_beeper(*this, "beeper"),
- m_ram(*this, RAM_TAG),
- m_keyboard(*this, "at_keyboard"),
- m_region_rom(*this, "maincpu"),
- m_io_extra(*this, "EXTRA")
- { }
-
- void pcw16(machine_config &config);
-
-protected:
- void pcw16_palette_w(offs_t offset, uint8_t data);
- uint8_t pcw16_bankhw_r(offs_t offset);
- void pcw16_bankhw_w(offs_t offset, uint8_t data);
- void pcw16_video_control_w(uint8_t data);
- uint8_t pcw16_keyboard_data_shift_r();
- void pcw16_keyboard_data_shift_w(uint8_t data);
- uint8_t pcw16_keyboard_status_r();
- void pcw16_keyboard_control_w(uint8_t data);
- uint8_t rtc_year_invalid_r();
- uint8_t rtc_month_r();
- uint8_t rtc_days_r();
- uint8_t rtc_hours_r();
- uint8_t rtc_minutes_r();
- uint8_t rtc_seconds_r();
- uint8_t rtc_256ths_seconds_r();
- void rtc_control_w(uint8_t data);
- void rtc_seconds_w(uint8_t data);
- void rtc_minutes_w(uint8_t data);
- void rtc_hours_w(uint8_t data);
- void rtc_days_w(uint8_t data);
- void rtc_month_w(uint8_t data);
- void rtc_year_w(uint8_t data);
- uint8_t pcw16_system_status_r();
- uint8_t pcw16_timer_interrupt_counter_r();
- void pcw16_system_control_w(uint8_t data);
- uint8_t pcw16_mem_r(offs_t offset);
- void pcw16_mem_w(offs_t offset, uint8_t data);
- void pcw16_keyboard_init();
- void pcw16_keyboard_refresh_outputs();
- void pcw16_keyboard_set_clock_state(int state);
- void pcw16_keyboard_int(int state);
- void pcw16_keyboard_reset();
- int pcw16_keyboard_can_transmit();
- void pcw16_keyboard_signal_byte_received(int data);
- void pcw16_refresh_ints();
- void rtc_setup_max_days();
- uint8_t pcw16_read_mem(uint8_t bank, uint16_t offset);
- void pcw16_write_mem(uint8_t bank, uint16_t offset, uint8_t data);
- uint8_t read_bank_data(uint8_t type, uint16_t offset);
- void write_bank_data(uint8_t type, uint16_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void pcw16_colours(palette_device &palette) const;
- uint32_t screen_update_pcw16(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(pcw16_timer_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(rtc_timer_callback);
- DECLARE_WRITE_LINE_MEMBER(pcw16_com_interrupt_1);
- DECLARE_WRITE_LINE_MEMBER(pcw16_com_interrupt_2);
- DECLARE_WRITE_LINE_MEMBER(pcw16_keyboard_callback);
-
- void trigger_fdc_int();
- DECLARE_WRITE_LINE_MEMBER( fdc_interrupt );
- inline void pcw16_plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color);
- void pcw16_vh_decode_mode0(bitmap_ind16 &bitmap, int x, int y, uint8_t byte);
- void pcw16_vh_decode_mode1(bitmap_ind16 &bitmap, int x, int y, uint8_t byte);
- void pcw16_vh_decode_mode2(bitmap_ind16 &bitmap, int x, int y, uint8_t byte);
-
- void pcw16_io(address_map &map);
- void pcw16_map(address_map &map);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<intel_e28f008sa_device> m_flash0;
- required_device<intel_e28f008sa_device> m_flash1;
- required_device<pc_fdc_superio_device> m_fdc;
- required_device<ns16550_device> m_uart2;
- required_device<beep_device> m_beeper;
- required_device<ram_device> m_ram;
- required_device<at_keyboard_device> m_keyboard;
- required_memory_region m_region_rom;
- required_ioport m_io_extra;
-
- unsigned long m_interrupt_counter;
- int m_banks[4];
- int m_4_bit_port;
- int m_fdc_int_code;
- int m_system_status;
- char *m_mem_ptr[4];
- unsigned char m_keyboard_data_shift;
- int m_keyboard_parity_table[256];
- int m_keyboard_bits;
- int m_keyboard_bits_output;
- int m_keyboard_state;
- int m_keyboard_previous_state;
- unsigned char m_rtc_seconds;
- unsigned char m_rtc_minutes;
- unsigned char m_rtc_hours;
- unsigned char m_rtc_days_max;
- unsigned char m_rtc_days;
- unsigned char m_rtc_months;
- unsigned char m_rtc_years;
- unsigned char m_rtc_control;
- unsigned char m_rtc_256ths_seconds;
- int m_previous_fdc_int_state;
- int m_colour_palette[16];
- int m_video_control;
-};
-
-#endif // MAME_INCLUDES_PCW16_H
diff --git a/src/mame/includes/pdp1.h b/src/mame/includes/pdp1.h
deleted file mode 100644
index c40d4fc739c..00000000000
--- a/src/mame/includes/pdp1.h
+++ /dev/null
@@ -1,489 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Raphael Nabet
-/*****************************************************************************
- *
- * includes/pdp1.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_PDP1_H
-#define MAME_INCLUDES_PDP1_H
-
-#include "cpu/pdp1/pdp1.h"
-#include "video/crt.h"
-#include "emupal.h"
-
-/* defines for each bit and mask in input port "CSW" */
-enum
-{
- /* bit numbers */
- pdp1_control_bit = 0,
-
- pdp1_extend_bit = 1,
- pdp1_start_nobrk_bit= 2,
- pdp1_start_brk_bit = 3,
- pdp1_stop_bit = 4,
- pdp1_continue_bit = 5,
- pdp1_examine_bit = 6,
- pdp1_deposit_bit = 7,
- pdp1_read_in_bit = 8,
- pdp1_reader_bit = 9,
- pdp1_tape_feed_bit = 10,
- pdp1_single_step_bit= 11,
- pdp1_single_inst_bit= 12,
-
- /* masks */
- pdp1_control = (1 << pdp1_control_bit),
- pdp1_extend = (1 << pdp1_extend_bit),
- pdp1_start_nobrk = (1 << pdp1_start_nobrk_bit),
- pdp1_start_brk = (1 << pdp1_start_brk_bit),
- pdp1_stop = (1 << pdp1_stop_bit),
- pdp1_continue = (1 << pdp1_continue_bit),
- pdp1_examine = (1 << pdp1_examine_bit),
- pdp1_deposit = (1 << pdp1_deposit_bit),
- pdp1_read_in = (1 << pdp1_read_in_bit),
- pdp1_reader = (1 << pdp1_reader_bit),
- pdp1_tape_feed = (1 << pdp1_tape_feed_bit),
- pdp1_single_step = (1 << pdp1_single_step_bit),
- pdp1_single_inst = (1 << pdp1_single_inst_bit)
-};
-
-/* defines for each bit in input port pdp1_spacewar_controllers*/
-#define ROTATE_LEFT_PLAYER1 0x01
-#define ROTATE_RIGHT_PLAYER1 0x02
-#define THRUST_PLAYER1 0x04
-#define FIRE_PLAYER1 0x08
-#define ROTATE_LEFT_PLAYER2 0x10
-#define ROTATE_RIGHT_PLAYER2 0x20
-#define THRUST_PLAYER2 0x40
-#define FIRE_PLAYER2 0x80
-#define HSPACE_PLAYER1 0x100
-#define HSPACE_PLAYER2 0x200
-
-/* defines for each field in input port pdp1_config */
-enum
-{
- pdp1_config_extend_bit = 0,
- pdp1_config_extend_mask = 0x3, /* 2 bits */
- pdp1_config_hw_mul_div_bit = 2,
- pdp1_config_hw_mul_div_mask = 0x1,
- /*pdp1_config_hw_obsolete_bit = 3,
- pdp1_config_hw_obsolete_mask = 0x1,*/
- pdp1_config_type_20_sbs_bit = 4,
- pdp1_config_type_20_sbs_mask = 0x1,
- pdp1_config_lightpen_bit = 5,
- pdp1_config_lightpen_mask = 0x1
-};
-
-/* defines for each field in input port pdp1_lightpen_state */
-enum
-{
- pdp1_lightpen_down_bit = 0,
- pdp1_lightpen_smaller_bit = 1,
- pdp1_lightpen_larger_bit = 2,
-
- pdp1_lightpen_down = (1 << pdp1_lightpen_down_bit),
- pdp1_lightpen_smaller = (1 << pdp1_lightpen_smaller_bit),
- pdp1_lightpen_larger = (1 << pdp1_lightpen_larger_bit)
-};
-
-/* defines for our font */
-enum
-{
- pdp1_charnum = /*104*/128, /* ASCII set + 8 special characters */
- /* for whatever reason, 104 breaks some characters */
-
- pdp1_fontdata_size = 8 * pdp1_charnum
-};
-
-enum
-{
- /* size and position of crt window */
- crt_window_width = 512,
- crt_window_height = 512,
- crt_window_offset_x = 0,
- crt_window_offset_y = 0,
- /* size and position of operator control panel window */
- panel_window_width = 384,
- panel_window_height = 128,
- panel_window_offset_x = crt_window_width,
- panel_window_offset_y = 0,
- /* size and position of typewriter window */
- typewriter_window_width = 640,
- typewriter_window_height = 160,
- typewriter_window_offset_x = 0,
- typewriter_window_offset_y = crt_window_height
-};
-
-enum
-{
- total_width = crt_window_width + panel_window_width,
- total_height = crt_window_height + typewriter_window_height,
-
- /* respect 4:3 aspect ratio to keep pixels square */
- virtual_width_1 = ((total_width+3)/4)*4,
- virtual_height_1 = ((total_height+2)/3)*3,
- virtual_width_2 = virtual_height_1*4/3,
- virtual_height_2 = virtual_width_1*3/4,
- virtual_width = (virtual_width_1 > virtual_width_2) ? virtual_width_1 : virtual_width_2,
- virtual_height = (virtual_height_1 > virtual_height_2) ? virtual_height_1 : virtual_height_2
-};
-
-enum
-{ /* refresh rate in Hz: can be changed at will */
- refresh_rate = 60
-};
-
-/* Color codes */
-enum
-{
- /* first pen_crt_num_levels colors used for CRT (with remanence) */
- pen_crt_num_levels = 69,
- pen_crt_max_intensity = pen_crt_num_levels-1,
-
- /* next colors used for control panel and typewriter */
- pen_black = pen_crt_num_levels,
- pen_white,
- pen_green,
- pen_dk_green,
- pen_red,
- pen_lt_gray,
-
- /* color constants for control panel */
- pen_panel_bg = pen_black,
- pen_panel_caption = pen_white,
- color_panel_caption = 0,
- pen_switch_nut = pen_lt_gray,
- pen_switch_button = pen_white,
- pen_lit_lamp = pen_green,
- pen_unlit_lamp = pen_dk_green,
-
- /* color constants for typewriter */
- pen_typewriter_bg = pen_white,
- color_typewriter_black = 1,
- color_typewriter_red = 2,
-
- /* color constants used for light pen */
- pen_lightpen_nonpressed = pen_red,
- pen_lightpen_pressed = pen_green
-};
-
-class pdp1_state;
-
-// tape reader device
-class pdp1_readtape_image_device : public device_t,
- public device_image_interface
-{
-public:
- // construction/destruction
- pdp1_readtape_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0U);
-
- auto st_ptr() { return m_st_ptr.bind(); }
-
- void iot_rpa(int op2, int nac, int mb, int &io, int ac);
- void iot_rpb(int op2, int nac, int mb, int &io, int ac);
- void iot_rrb(int op2, int nac, int mb, int &io, int ac);
-
-protected:
- // device-level overrides
- virtual void device_resolve_objects() override;
- virtual void device_start() override;
-
- // image-level overrides
- virtual iodevice_t image_type() const noexcept override { return IO_PUNCHTAPE; }
-
- virtual bool is_readable() const noexcept override { return true; }
- virtual bool is_writeable() const noexcept override { return false; }
- virtual bool is_creatable() const noexcept override { return false; }
- virtual bool must_be_loaded() const noexcept override { return false; }
- virtual bool is_reset_on_load() const noexcept override { return false; }
- virtual const char *file_extensions() const noexcept override { return "tap,rim"; }
-
- virtual image_init_result call_load() override;
- virtual void call_unload() override;
-
-public:
- TIMER_CALLBACK_MEMBER(reader_callback);
-
- int tape_read(uint8_t *reply);
- void begin_tape_read(int binary, int nac);
-
- required_device<pdp1_device> m_maincpu;
-
- devcb_write_line m_st_ptr;
-
- int m_motor_on; // 1-bit reader motor on
-
- int m_rb; // 18-bit reader buffer
- int m_rcl; // 1-bit reader clutch
- int m_rc; // 2-bit reader counter
- int m_rby; // 1-bit reader binary mode flip-flop
- int m_rcp; // 1-bit reader "need a completion pulse" flip-flop
-
- emu_timer *m_timer; // timer to simulate reader timing
-};
-
-
-
-// tape puncher device
-class pdp1_punchtape_image_device : public device_t,
- public device_image_interface
-{
-public:
- // construction/destruction
- pdp1_punchtape_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0U);
-
- auto st_ptp() { return m_st_ptp.bind(); }
-
- void iot_ppa(int op2, int nac, int mb, int &io, int ac);
- void iot_ppb(int op2, int nac, int mb, int &io, int ac);
-
-protected:
- // device-level overrides
- virtual void device_resolve_objects() override;
- virtual void device_start() override;
-
- // image-level overrides
- virtual iodevice_t image_type() const noexcept override { return IO_PUNCHTAPE; }
-
- virtual bool is_readable() const noexcept override { return false; }
- virtual bool is_writeable() const noexcept override { return true; }
- virtual bool is_creatable() const noexcept override { return true; }
- virtual bool must_be_loaded() const noexcept override { return false; }
- virtual bool is_reset_on_load() const noexcept override { return false; }
- virtual const char *file_extensions() const noexcept override { return "tap,rim"; }
-
- virtual image_init_result call_load() override;
- virtual void call_unload() override;
-
-public:
- TIMER_CALLBACK_MEMBER(puncher_callback);
-
- void tape_write(uint8_t data);
-
- required_device<pdp1_device> m_maincpu;
-
- devcb_write_line m_st_ptp;
-
- emu_timer *m_timer; // timer to generate completion pulses
-};
-
-
-
-// typewriter device
-class pdp1_typewriter_device : public device_t,
- public device_image_interface
-{
-public:
- // construction/destruction
- pdp1_typewriter_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0U);
-
- auto st_tyo() { return m_st_tyo.bind(); }
- auto st_tyi() { return m_st_tyi.bind(); }
-
- void iot_tyo(int op2, int nac, int mb, int &io, int ac);
- void iot_tyi(int op2, int nac, int mb, int &io, int ac);
-
-protected:
- // device-level overrides
- virtual void device_resolve_objects() override;
- virtual void device_start() override;
-
- // image-level overrides
- virtual iodevice_t image_type() const noexcept override { return IO_PRINTER; }
-
- virtual bool is_readable() const noexcept override { return false; }
- virtual bool is_writeable() const noexcept override { return true; }
- virtual bool is_creatable() const noexcept override { return true; }
- virtual bool must_be_loaded() const noexcept override { return false; }
- virtual bool is_reset_on_load() const noexcept override { return false; }
- virtual const char *file_extensions() const noexcept override { return "typ"; }
-
- virtual image_init_result call_load() override;
- virtual void call_unload() override;
-
-public:
- TIMER_CALLBACK_MEMBER(tyo_callback);
-
- void linefeed();
- void drawchar(int character);
- void typewriter_out(uint8_t data);
-
- void pdp1_keyboard();
-
- required_device<pdp1_device> m_maincpu;
- required_device<pdp1_state> m_driver_state;
- required_ioport_array<4> m_twr;
-
- devcb_write_line m_st_tyo;
- devcb_write_line m_st_tyi;
-
- int m_tb; // typewriter buffer
-
- emu_timer *m_tyo_timer; // timer to generate completion pulses
-
- int m_old_typewriter_keys[4];
- int m_color;
- bitmap_ind16 m_bitmap;
- int m_pos;
- int m_case_shift;
-};
-
-// MIT parallel drum (mostly similar to type 23)
-class pdp1_cylinder_image_device : public device_t,
- public device_image_interface
-{
-public:
- // construction/destruction
- pdp1_cylinder_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0U);
-
- void iot_dia(int op2, int nac, int mb, int &io, int ac);
- void iot_dba(int op2, int nac, int mb, int &io, int ac);
- void iot_dcc(int op2, int nac, int mb, int &io, int ac);
- void iot_dra(int op2, int nac, int mb, int &io, int ac);
-
-protected:
- // device-level overrides
- virtual void device_start() override;
-
- // image-level overrides
- virtual iodevice_t image_type() const noexcept override { return IO_CYLINDER; }
-
- virtual bool is_readable() const noexcept override { return true; }
- virtual bool is_writeable() const noexcept override { return true; }
- virtual bool is_creatable() const noexcept override { return true; }
- virtual bool must_be_loaded() const noexcept override { return false; }
- virtual bool is_reset_on_load() const noexcept override { return false; }
- virtual const char *file_extensions() const noexcept override { return "drm"; }
-
- virtual image_init_result call_load() override;
- virtual void call_unload() override;
-
-public:
- void set_il(int il);
- uint32_t drum_read(int field, int position);
- void drum_write(int field, int position, uint32_t data);
-
- required_device<pdp1_device> m_maincpu;
-
- int m_il; // initial location (12-bit)
- int m_wc; // word counter (12-bit)
- int m_wcl; // word core location counter (16-bit)
- int m_rfb; // read field buffer (5-bit)
- int m_wfb; // write field buffer (5-bit)
-
- int m_dba;
-
- emu_timer *m_rotation_timer;// timer called each time dc is 0
- emu_timer *m_il_timer; // timer called each time dc is il
-};
-
-
-struct lightpen_t
-{
- char active;
- char down;
- short x, y;
- short radius;
-};
-
-
-class pdp1_state : public driver_device
-{
-public:
- pdp1_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_tape_reader(*this, "readt"),
- m_tape_puncher(*this, "punch"),
- m_typewriter(*this, "typewriter"),
- m_parallel_drum(*this, "drum"),
- m_dpy_timer(nullptr),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_crt(*this, "crt"),
- m_spacewar(*this, "SPACEWAR"),
- m_csw(*this, "CSW"),
- m_sense(*this, "SENSE"),
- m_tstadd(*this, "TSTADD"),
- m_twdmsb(*this, "TWDMSB"),
- m_twdlsb(*this, "TWDLSB"),
- m_cfg(*this, "CFG"),
- m_io_lightpen(*this, "LIGHTPEN"),
- m_lightx(*this, "LIGHTX"),
- m_lighty(*this, "LIGHTY")
- { }
-
- required_device<pdp1_device> m_maincpu;
- required_device<pdp1_readtape_image_device> m_tape_reader;
- required_device<pdp1_punchtape_image_device> m_tape_puncher;
- required_device<pdp1_typewriter_device> m_typewriter;
- required_device<pdp1_cylinder_image_device> m_parallel_drum;
- int m_io_status;
- emu_timer *m_dpy_timer;
- lightpen_t m_lightpen;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void pdp1_palette(palette_device &palette) const;
- uint32_t screen_update_pdp1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_pdp1);
- INTERRUPT_GEN_MEMBER(pdp1_interrupt);
- TIMER_CALLBACK_MEMBER(dpy_callback);
- void pdp1_machine_stop();
- inline void pdp1_plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color);
- void pdp1_plot(int x, int y);
- void pdp1_draw_led(bitmap_ind16 &bitmap, int x, int y, int state);
- void pdp1_draw_multipleled(bitmap_ind16 &bitmap, int x, int y, int value, int nb_bits);
- void pdp1_draw_switch(bitmap_ind16 &bitmap, int x, int y, int state);
- void pdp1_draw_multipleswitch(bitmap_ind16 &bitmap, int x, int y, int value, int nb_bits);
- void pdp1_draw_char(bitmap_ind16 &bitmap, char character, int x, int y, int color);
- void pdp1_draw_string(bitmap_ind16 &bitmap, const char *buf, int x, int y, int color);
- void pdp1_draw_panel_backdrop(bitmap_ind16 &bitmap);
- void pdp1_draw_panel(bitmap_ind16 &bitmap);
- void pdp1_update_lightpen_state(const lightpen_t *new_state);
- void pdp1_draw_circle(bitmap_ind16 &bitmap, int x, int y, int radius, int color_);
- void pdp1_erase_lightpen(bitmap_ind16 &bitmap);
- void pdp1_draw_lightpen(bitmap_ind16 &bitmap);
- void pdp1_lightpen();
-
- template <int Mask> DECLARE_WRITE_LINE_MEMBER(io_status_w);
-
- void pdp1(machine_config &config);
- void pdp1_map(address_map &map);
-private:
- void iot_dpy(int op2, int nac, int mb, int &io, int ac);
-
- void iot_011(int op2, int nac, int mb, int &io, int ac);
-
- void iot_cks(int op2, int nac, int mb, int &io, int ac);
-
- void io_start_clear();
-
- pdp1_reset_param_t m_reset_param;
- int m_old_lightpen;
- int m_old_control_keys;
- int m_old_tw_keys;
- int m_old_ta_keys;
- bitmap_ind16 m_panel_bitmap;
- lightpen_t m_lightpen_state;
- lightpen_t m_previous_lightpen_state;
-
-public:
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<crt_device> m_crt;
- required_ioport m_spacewar;
- required_ioport m_csw;
- required_ioport m_sense;
- required_ioport m_tstadd;
- required_ioport m_twdmsb;
- required_ioport m_twdlsb;
- required_ioport m_cfg;
- required_ioport m_io_lightpen;
- required_ioport m_lightx;
- required_ioport m_lighty;
-};
-
-#endif // MAME_INCLUDES_PDP1_H
diff --git a/src/mame/includes/pecom.h b/src/mame/includes/pecom.h
deleted file mode 100644
index 1ea81be0074..00000000000
--- a/src/mame/includes/pecom.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-#ifndef MAME_INCLUDES_PECOM_H
-#define MAME_INCLUDES_PECOM_H
-
-#pragma once
-
-#include "cpu/cosmac/cosmac.h"
-#include "imagedev/cassette.h"
-#include "sound/cdp1869.h"
-
-class pecom_state : public driver_device
-{
-public:
- pecom_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_cdp1869(*this, "cdp1869")
- , m_cassette(*this, "cassette")
- , m_bank1(*this, "bank1")
- , m_bank3(*this, "bank3")
- , m_bank4(*this, "bank4")
- , m_rom(*this, "maincpu")
- , m_ram(*this, "mainram")
- , m_io_cnt(*this, "CNT")
- , m_io_keyboard(*this, "LINE%d", 0U)
- { }
-
- DECLARE_INPUT_CHANGED_MEMBER(ef_w);
- void pecom64(machine_config &config);
-
-private:
- uint8_t cdp1869_charram_r(offs_t offset);
- void cdp1869_charram_w(offs_t offset, uint8_t data);
- uint8_t cdp1869_pageram_r(offs_t offset);
- void cdp1869_pageram_w(offs_t offset, uint8_t data);
- void bank_w(uint8_t data);
- uint8_t keyboard_r();
- void cdp1869_w(offs_t offset, uint8_t data);
- TIMER_CALLBACK_MEMBER(reset_tick);
- DECLARE_READ_LINE_MEMBER(clear_r);
- DECLARE_READ_LINE_MEMBER(ef2_r);
- DECLARE_WRITE_LINE_MEMBER(q_w);
- void sc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(prd_w);
- CDP1869_CHAR_RAM_READ_MEMBER(char_ram_r);
- CDP1869_CHAR_RAM_WRITE_MEMBER(char_ram_w);
- CDP1869_PCB_READ_MEMBER(pcb_r);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void cdp1869_page_ram(address_map &map);
- void io_map(address_map &map);
- void mem_map(address_map &map);
-
- std::unique_ptr<uint8_t[]> m_charram; /* character generator ROM */
- bool m_reset; /* CPU mode */
- bool m_dma; /* memory refresh DMA */
-
- /* timers */
- emu_timer *m_reset_timer; /* power on reset timer */
-
- required_device<cosmac_device> m_maincpu;
- required_device<cdp1869_device> m_cdp1869;
- required_device<cassette_image_device> m_cassette;
- required_memory_bank m_bank1;
- required_memory_bank m_bank3;
- required_memory_bank m_bank4;
- required_region_ptr<u8> m_rom;
- required_shared_ptr<u8> m_ram;
- required_ioport m_io_cnt;
- required_ioport_array<26> m_io_keyboard;
-};
-
-#endif // MAME_INCLUDES_PECOM_H
diff --git a/src/mame/includes/pgm.h b/src/mame/includes/pgm.h
deleted file mode 100644
index d224051999f..00000000000
--- a/src/mame/includes/pgm.h
+++ /dev/null
@@ -1,157 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, ElSemi
-#ifndef MAME_INCLUDES_PGM_H
-#define MAME_INCLUDES_PGM_H
-
-#pragma once
-
-#include "machine/igs025.h"
-#include "machine/igs022.h"
-#include "machine/igs028.h"
-#include "machine/pgmcrypt.h"
-
-#include "cpu/arm7/arm7.h"
-#include "cpu/arm7/arm7core.h"
-#include "cpu/m68000/m68000.h"
-#include "cpu/z80/z80.h"
-#include "machine/gen_latch.h"
-#include "machine/nvram.h"
-#include "machine/timer.h"
-#include "machine/v3021.h"
-#include "sound/ics2115.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#define PGMARM7LOGERROR 0
-
-class pgm_state : public driver_device
-{
-public:
- pgm_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_mainram(*this, "sram")
- , m_region(*this, "Region")
- , m_regionhack(*this, "RegionHack")
- , m_maincpu(*this, "maincpu")
- , m_videoregs(*this, "videoregs")
- , m_videoram(*this, "videoram")
- , m_z80_mainram(*this, "z80_mainram")
- , m_soundcpu(*this, "soundcpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_soundlatch3(*this, "soundlatch3")
- , m_ics(*this, "ics")
- , m_adata(*this, "sprcol")
- , m_bdata(*this, "sprmask")
- {
- m_irq4_disabled = 0;
- }
-
- void init_pgm();
-
- void pgm_basic_init(bool set_bank = true);
- void pgm(machine_config &config);
- void pgmbase(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- /* memory pointers */
- required_shared_ptr<u16> m_mainram;
-
- optional_ioport m_region;
- optional_ioport m_regionhack;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
-
- /* hack */
- int m_irq4_disabled;
-
- void pgm_base_mem(address_map &map);
- void pgm_mem(address_map &map);
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_videoregs;
- required_shared_ptr<u16> m_videoram;
- required_shared_ptr<u8> m_z80_mainram;
- u16 * m_bg_videoram;
- u16 * m_tx_videoram;
- u16 * m_rowscrollram;
-
- /* video-related */
- struct sprite_t
- {
- int x,y;
- bool xgrow, ygrow;
- u32 xzoom, yzoom;
- u32 color, offs;
- u32 width, height;
- u8 flip, pri;
- };
-
- std::unique_ptr<sprite_t[]> m_spritelist;
- struct sprite_t *m_sprite_ptr_pre;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_tx_tilemap;
-
- /* devices */
- required_device<cpu_device> m_soundcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch3;
- required_device<ics2115_device> m_ics;
-
- /* used by rendering */
- required_region_ptr<u16> m_adata;
- required_region_ptr<u16> m_bdata;
- u32 m_aoffset;
- u8 m_abit;
- u32 m_boffset;
-
- u16 videoram_r(offs_t offset);
- void videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void coin_counter_w(u16 data);
- u8 z80_ram_r(offs_t offset);
- void z80_ram_w(offs_t offset, u8 data);
- void z80_reset_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void z80_ctrl_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void m68k_l1_w(u8 data);
- void z80_l3_w(u8 data);
- void tx_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bg_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
-
- inline void pgm_draw_pix(int xdrawpos, int pri, u16* dest, u8* destpri, const rectangle &cliprect, u16 srcdat);
- inline void pgm_draw_pix_nopri(int xdrawpos, u16* dest, u8* destpri, const rectangle &cliprect, u16 srcdat);
- inline void pgm_draw_pix_pri(int xdrawpos, u16* dest, u8* destpri, const rectangle &cliprect, u16 srcdat);
- inline u8 get_sprite_pix();
- void draw_sprite_line(int wide, u16* dest, u8* destpri, const rectangle &cliprect, int xzoom, bool xgrow, int flip, int xpos, int pri, int realxsize, int palt, bool draw);
- void draw_sprite_new_zoomed(int wide, int high, int xpos, int ypos, int palt, int flip, bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, u32 xzoom, bool xgrow, u32 yzoom, bool ygrow, int pri);
- void draw_sprite_line_basic(int wide, u16* dest, u8* destpri, const rectangle &cliprect, int flip, int xpos, int pri, int realxsize, int palt, bool draw);
- void draw_sprite_new_basic(int wide, int high, int xpos, int ypos, int palt, int flip, bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, int pri);
- void draw_sprites(bitmap_ind16& spritebitmap, const rectangle &cliprect, bitmap_ind8& priority_bitmap);
- void get_sprites();
- void pgm_basic_mem(address_map &map);
- void pgm_z80_io(address_map &map);
- void pgm_z80_mem(address_map &map);
-};
-
-
-
-/*----------- defined in drivers/pgm.cpp -----------*/
-
-INPUT_PORTS_EXTERN(pgm);
-
-extern gfx_decode_entry const gfx_pgm[];
-
-#endif // MAME_INCLUDES_PGM_H
diff --git a/src/mame/includes/pgm2.h b/src/mame/includes/pgm2.h
deleted file mode 100644
index 598b75840b9..00000000000
--- a/src/mame/includes/pgm2.h
+++ /dev/null
@@ -1,197 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_PGM2_H
-#define MAME_INCLUDES_PGM2_H
-
-#pragma once
-
-#include "cpu/arm7/arm7.h"
-#include "cpu/arm7/arm7core.h"
-#include "sound/ymz770.h"
-#include "machine/igs036crypt.h"
-#include "screen.h"
-#include "speaker.h"
-#include "machine/nvram.h"
-#include "machine/timer.h"
-#include "machine/atmel_arm_aic.h"
-#include "machine/pgm2_memcard.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-struct kov3_module_key
-{
- u8 key[8];
- u8 sum[8];
- u32 addr_xor; // 22bit
- u16 data_xor;
-};
-
-class pgm2_state : public driver_device
-{
-public:
- pgm2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_lineram(*this, "lineram"),
- m_sp_zoom(*this, "sp_zoom"),
- m_mainram(*this, "mainram"),
- m_romboard_ram(*this, "romboard_ram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_sp_videoram(*this, "sp_videoram"),
- m_bgscroll(*this, "bgscroll"),
- m_fgscroll(*this, "fgscroll"),
- m_vidmode(*this, "vidmode"),
- m_gfxdecode2(*this, "gfxdecode2"),
- m_gfxdecode3(*this, "gfxdecode3"),
- m_arm_aic(*this, "arm_aic"),
- m_sprites_mask(*this, "sprites_mask"),
- m_sprites_colour(*this, "sprites_colour"),
- m_sp_palette(*this, "sp_palette"),
- m_bg_palette(*this, "bg_palette"),
- m_tx_palette(*this, "tx_palette"),
- m_mcu_timer(*this, "mcu_timer"),
- m_memcard(*this, "memcard_p%u", 1U),
- m_mainrom(*this, "mainrom")
- { }
-
- void init_kov2nl();
- void init_orleg2();
- void init_ddpdojt();
- void init_kov3();
- void init_kov3_104();
- void init_kov3_102();
- void init_kov3_101();
- void init_kov3_100();
- void init_kof98umh();
-
- void pgm2_ramrom(machine_config &config);
- void pgm2_lores(machine_config &config);
- void pgm2(machine_config &config);
- void pgm2_hires(machine_config &config);
- void pgm2_map(address_map &map);
- void pgm2_module_rom_map(address_map &map);
- void pgm2_ram_rom_map(address_map &map);
- void pgm2_rom_map(address_map &map);
-private:
- u32 unk_startup_r();
- u32 rtc_r();
- u32 mcu_r(offs_t offset);
- void fg_videoram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void bg_videoram_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void mcu_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void share_bank_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u8 shareram_r(offs_t offset);
- void shareram_w(offs_t offset, u8 data);
- void vbl_ack_w(u16 data);
- void unk30120014_w(offs_t offset, u16 data);
-
- void pio_sodr_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void pio_codr_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u32 pio_pdsr_r();
- void module_rom_w(offs_t offset, u16 data);
- u16 module_rom_r(offs_t offset);
- int module_data_r();
- void module_data_w(int state);
- void module_clk_w(int state);
-
- u32 orleg2_speedup_r();
- u32 kov2nl_speedup_r();
- u32 kof98umh_speedup_r();
- u32 ddpdojt_speedup_r();
- u32 ddpdojt_speedup2_r();
- u32 kov3_speedup_r();
-
- u8 encryption_r(offs_t offset);
- void encryption_w(offs_t offset, u8 data);
- void encryption_do_w(u32 data);
- void sprite_encryption_w(offs_t offset, u32 data, u32 mem_mask = ~0);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_post_load() override;
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- DECLARE_WRITE_LINE_MEMBER(irq);
-
- TIMER_DEVICE_CALLBACK_MEMBER(mcu_interrupt);
-
- void decrypt_kov3_module(u32 addrxor, u16 dataxor);
-
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
-
- bitmap_ind16 m_sprite_bitmap;
-
- void skip_sprite_chunk(u32 &palette_offset, u32 maskdata, bool reverse);
- void draw_sprite_pixel(const rectangle &cliprect, u32 palette_offset, s16 realx, s16 realy, u16 pal);
- void draw_sprite_chunk(const rectangle &cliprect, u32 &palette_offset, s16 x, s16 realy,
- u16 sizex, int xdraw, u16 pal, u32 maskdata, u32 zoomx_bits, u8 repeats, s16 &realxdraw, s8 realdraw_inc, s8 palette_inc);
- void draw_sprite_line(const rectangle &cliprect, u32 &mask_offset, u32 &palette_offset, s16 x, s16 realy,
- bool flipx, bool reverse, u16 sizex, u16 pal, u8 zoomybit, u32 zoomx_bits, u8 xrepeats);
- void draw_sprites(const rectangle &cliprect);
- void copy_sprites_from_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect, u16 pri);
-
- void common_encryption_init();
- u8 m_encryption_table[0x100];
- bool m_has_decrypted; // so we only do it once.
- bool m_has_decrypted_kov3_module;
- u32 m_spritekey;
- u32 m_realspritekey;
- bool m_sprite_predecrypted;
-
- u8 m_shareram[0x100];
- u16 m_share_bank;
- u32 m_mcu_regs[8];
- u32 m_mcu_result0;
- u32 m_mcu_result1;
- u8 m_mcu_last_cmd;
- void mcu_command(bool is_command);
-
- std::vector<u8> m_encrypted_copy;
-
- u32 m_pio_out_data;
- const kov3_module_key *module_key;
- bool module_sum_read;
- u32 module_in_latch;
- u32 module_out_latch;
- int module_prev_state;
- int module_clk_cnt;
- u8 module_rcv_buf[10];
- u8 module_send_buf[9];
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_shared_ptr<u32> m_lineram;
- required_shared_ptr<u32> m_sp_zoom;
- required_shared_ptr<u32> m_mainram;
- optional_shared_ptr<u32> m_romboard_ram;
- required_shared_ptr<u32> m_fg_videoram;
- required_shared_ptr<u32> m_bg_videoram;
- required_shared_ptr<u32> m_sp_videoram;
- required_shared_ptr<u32> m_bgscroll;
- required_shared_ptr<u32> m_fgscroll;
- required_shared_ptr<u32> m_vidmode;
- required_device<gfxdecode_device> m_gfxdecode2;
- required_device<gfxdecode_device> m_gfxdecode3;
- required_device<arm_aic_device> m_arm_aic;
- required_region_ptr<u8> m_sprites_mask;
- required_region_ptr<u8> m_sprites_colour;
- required_device<palette_device> m_sp_palette;
- required_device<palette_device> m_bg_palette;
- required_device<palette_device> m_tx_palette;
- required_device<timer_device> m_mcu_timer;
-
- optional_device_array<pgm2_memcard_device, 4> m_memcard;
-
- required_memory_region m_mainrom;
-};
-
-#endif
diff --git a/src/mame/includes/phc25.h b/src/mame/includes/phc25.h
deleted file mode 100644
index e74b781102a..00000000000
--- a/src/mame/includes/phc25.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder, Robbbert
-#pragma once
-
-#ifndef MAME_INCLUDES_PHC25_H
-#define MAME_INCLUDES_PHC25_H
-
-
-#include "cpu/z80/z80.h"
-#include "imagedev/cassette.h"
-#include "machine/ram.h"
-#include "bus/centronics/ctronics.h"
-#include "video/mc6847.h"
-#include "sound/ay8910.h"
-#include "formats/phc25_cas.h"
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "z80"
-#define AY8910_TAG "ay8910"
-#define MC6847_TAG "mc6847"
-#define CENTRONICS_TAG "centronics"
-
-#define PHC25_VIDEORAM_SIZE 0x1800
-
-class phc25_state : public driver_device
-{
-public:
- phc25_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_vram(*this, "videoram")
- , m_maincpu(*this, Z80_TAG)
- , m_vdg(*this, MC6847_TAG)
- , m_centronics(*this, CENTRONICS_TAG)
- , m_cassette(*this, "cassette")
- { }
-
- void phc25(machine_config &config);
- void pal(machine_config &config);
- void ntsc(machine_config &config);
-
-private:
- void io_map(address_map &map);
- void mem_map(address_map &map);
- DECLARE_WRITE_LINE_MEMBER( write_centronics_busy );
- uint8_t port40_r();
- void port40_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(irq_w);
- uint8_t video_ram_r(offs_t offset);
- MC6847_GET_CHARROM_MEMBER(ntsc_char_rom_r);
- MC6847_GET_CHARROM_MEMBER(pal_char_rom_r);
- void machine_start() override;
- void machine_reset() override;
- uint8_t *m_char_rom;
- uint8_t m_port40;
- int m_centronics_busy;
- required_shared_ptr<uint8_t> m_vram;
- required_device<cpu_device> m_maincpu;
- required_device<mc6847_base_device> m_vdg;
- required_device<centronics_device> m_centronics;
- required_device<cassette_image_device> m_cassette;
-};
-
-#endif
diff --git a/src/mame/includes/phoenix.h b/src/mame/includes/phoenix.h
deleted file mode 100644
index d0d7d9902ed..00000000000
--- a/src/mame/includes/phoenix.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Richard Davies
-#ifndef MAME_INCLUDES_PHOENIX_H
-#define MAME_INCLUDES_PHOENIX_H
-
-#pragma once
-
-#include "audio/pleiads.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class phoenix_state : public driver_device
-{
-public:
- phoenix_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_pleiads_custom(*this, "pleiads_custom")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_fg_tilemap(nullptr)
- , m_bg_tilemap(nullptr)
- {
- }
-
- DECLARE_CUSTOM_INPUT_MEMBER(player_input_r);
- DECLARE_READ_LINE_MEMBER(pleiads_protection_r);
-
- void condor(machine_config &config);
- void phoenix(machine_config &config);
- void survival(machine_config &config);
- void pleiads(machine_config &config);
-
- void init_oneprom();
- void init_coindsw();
- void init_oneprom_coindsw();
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<pleiads_sound_device> m_pleiads_custom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
-
- std::unique_ptr<uint8_t[]> m_videoram_pg[2];
- uint8_t m_videoram_pg_index;
- uint8_t m_palette_bank;
- uint8_t m_cocktail_mode;
- uint8_t m_pleiads_protection_question;
- uint8_t m_survival_protection_value;
- int m_survival_sid_value;
- uint8_t m_survival_input_latches[2];
- uint8_t m_survival_input_readc;
-
- void phoenix_videoram_w(offs_t offset, uint8_t data);
- void phoenix_videoreg_w(uint8_t data);
- void pleiads_videoreg_w(uint8_t data);
- void phoenix_scroll_w(uint8_t data);
- uint8_t survival_input_port_0_r();
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void phoenix_palette(palette_device &palette) const;
- void survival_palette(palette_device &palette) const;
- void pleiads_palette(palette_device &palette) const;
- uint32_t screen_update_phoenix(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint8_t survival_protection_r();
- DECLARE_READ_LINE_MEMBER(survival_sid_callback);
- void phoenix_memory_map(address_map &map);
- void pleiads_memory_map(address_map &map);
- void survival_memory_map(address_map &map);
-};
-
-
-/*----------- video timing -----------*/
-
-#define MASTER_CLOCK XTAL(11'000'000)
-
-#define PIXEL_CLOCK (MASTER_CLOCK/2)
-#define CPU_CLOCK (PIXEL_CLOCK)
-#define HTOTAL (512-160)
-#define HBSTART (256)
-#define HBEND (0)
-#define VTOTAL (256)
-#define VBSTART (208)
-#define VBEND (0)
-
-#endif // MAME_INCLUDES_PHOENIX_H
diff --git a/src/mame/includes/pingpong.h b/src/mame/includes/pingpong.h
deleted file mode 100644
index 032c4f9d2aa..00000000000
--- a/src/mame/includes/pingpong.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Jarek Parchanski
-#ifndef MAME_INCLUDES_PINGPONG_H
-#define MAME_INCLUDES_PINGPONG_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class pingpong_state : public driver_device
-{
-public:
- pingpong_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_banks(*this, "bank%d", 1U)
- { }
-
- int m_intenable;
- int m_question_addr_high;
- required_device<cpu_device> m_maincpu;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_memory_bank_array<8> m_banks;
- tilemap_t *m_bg_tilemap;
-
- void cashquiz_question_bank_high_w(uint8_t data);
- void cashquiz_question_bank_low_w(uint8_t data);
- void coin_w(uint8_t data);
- void pingpong_videoram_w(offs_t offset, uint8_t data);
- void pingpong_colorram_w(offs_t offset, uint8_t data);
- void init_cashquiz();
- void init_merlinmm();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void video_start() override;
- void pingpong_palette(palette_device &palette) const;
- uint32_t screen_update_pingpong(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(pingpong_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(merlinmm_interrupt);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void merlinmm(machine_config &config);
- void pingpong(machine_config &config);
- void cashquiz(machine_config &config);
- void merlinmm_map(address_map &map);
- void pingpong_map(address_map &map);
- void cashquiz_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PINGPONG_H
diff --git a/src/mame/includes/pirates.h b/src/mame/includes/pirates.h
deleted file mode 100644
index 8da6c12f91b..00000000000
--- a/src/mame/includes/pirates.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood,Nicola Salmoria,Paul Priest
-#ifndef MAME_INCLUDES_PIRATES_H
-#define MAME_INCLUDES_PIRATES_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class pirates_state : public driver_device
-{
-public:
- pirates_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_scroll(*this, "scroll"),
- m_tx_tileram(*this, "tx_tileram"),
- m_fg_tileram(*this, "fg_tileram"),
- m_bg_tileram(*this, "bg_tileram")
- { }
-
- void pirates(machine_config &config);
-
- void init_pirates();
- void init_genix();
-
- DECLARE_READ_LINE_MEMBER(prot_r);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_scroll;
- required_shared_ptr<uint16_t> m_tx_tileram;
- required_shared_ptr<uint16_t> m_fg_tileram;
- required_shared_ptr<uint16_t> m_bg_tileram;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
-
- void out_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tx_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fg_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bg_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t genix_prot_r(offs_t offset);
-
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void decrypt_68k();
- void decrypt_p();
- void decrypt_s();
- void decrypt_oki();
- void pirates_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PIRATES_H
diff --git a/src/mame/includes/pitnrun.h b/src/mame/includes/pitnrun.h
deleted file mode 100644
index 0e8569a5486..00000000000
--- a/src/mame/includes/pitnrun.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina, Pierpaolo Prazzoli
-#ifndef MAME_INCLUDES_PITNRUN_H
-#define MAME_INCLUDES_PITNRUN_H
-
-#pragma once
-
-#include "cpu/m6805/m68705.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class pitnrun_state : public driver_device
-{
-public:
- pitnrun_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_videoram2(*this, "videoram2"),
- m_spriteram(*this, "spriteram")
- { }
-
- void pitnrun_mcu(machine_config &config);
- void pitnrun(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<m68705p5_device> m_mcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_spriteram;
-
- int m_nmi;
- uint8_t m_fromz80;
- uint8_t m_toz80;
- int m_zaccept;
- int m_zready;
- uint8_t m_porta_in;
- uint8_t m_porta_out;
- int m_address;
- int m_h_heed;
- int m_v_heed;
- int m_ha;
- int m_scroll;
- int m_char_bank;
- int m_color_select;
- std::unique_ptr<bitmap_ind16> m_tmp_bitmap[4];
- tilemap_t *m_bg;
- tilemap_t *m_fg;
-
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- DECLARE_WRITE_LINE_MEMBER(hflip_w);
- DECLARE_WRITE_LINE_MEMBER(vflip_w);
- uint8_t mcu_data_r();
- void mcu_data_w(uint8_t data);
- uint8_t mcu_status_r();
- uint8_t m68705_porta_r();
- void m68705_porta_w(uint8_t data);
- uint8_t m68705_portb_r();
- void m68705_portb_w(uint8_t data);
- uint8_t m68705_portc_r();
- void videoram_w(offs_t offset, uint8_t data);
- void videoram2_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(char_bank_select_w);
- void scroll_w(offs_t offset, uint8_t data);
- void scroll_y_w(uint8_t data);
- void ha_w(uint8_t data);
- void h_heed_w(uint8_t data);
- void v_heed_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(color_select_w);
-
- TILE_GET_INFO_MEMBER(get_tile_info1);
- TILE_GET_INFO_MEMBER(get_tile_info2);
-
- INTERRUPT_GEN_MEMBER(nmi_source);
- TIMER_CALLBACK_MEMBER(mcu_real_data_r);
- TIMER_CALLBACK_MEMBER(mcu_real_data_w);
- TIMER_CALLBACK_MEMBER(mcu_data_real_r);
- TIMER_CALLBACK_MEMBER(mcu_status_real_w);
-
- void pitnrun_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void spotlights();
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void pitnrun_map(address_map &map);
- void pitnrun_map_mcu(address_map &map);
- void pitnrun_sound_io_map(address_map &map);
- void pitnrun_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PITNRUN_H
diff --git a/src/mame/includes/pk8000.h b/src/mame/includes/pk8000.h
deleted file mode 100644
index 0aebea6357e..00000000000
--- a/src/mame/includes/pk8000.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-#ifndef MAME_INCLUDES_PK8000_H
-#define MAME_INCLUDES_PK8000_H
-
-#pragma once
-
-#include "emupal.h"
-
-class pk8000_base_state : public driver_device
-{
-public:
- pk8000_base_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- { }
-
-protected:
- uint8_t _84_porta_r();
- void _84_porta_w(uint8_t data);
- void _84_portc_w(uint8_t data);
-
- uint8_t video_color_r();
- void video_color_w(uint8_t data);
- uint8_t text_start_r();
- void text_start_w(uint8_t data);
- uint8_t chargen_start_r();
- void chargen_start_w(uint8_t data);
- uint8_t video_start_r();
- void video_start_w(uint8_t data);
- uint8_t color_start_r();
- void color_start_w(uint8_t data);
- uint8_t color_r(offs_t offset);
- void color_w(offs_t offset, uint8_t data);
-
- void pk8000_palette(palette_device &palette) const;
- uint32_t video_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *videomem);
-
- uint8_t m_text_start;
- uint8_t m_chargen_start;
- uint8_t m_video_start;
- uint8_t m_color_start;
-
- uint8_t m_video_mode;
- uint8_t m_video_color;
- uint8_t m_color[32];
- uint8_t m_video_enable;
- required_device<cpu_device> m_maincpu;
-};
-
-#endif // MAME_INCLUDES_PK8000_H
diff --git a/src/mame/includes/pk8020.h b/src/mame/includes/pk8020.h
deleted file mode 100644
index a7ba81501ca..00000000000
--- a/src/mame/includes/pk8020.h
+++ /dev/null
@@ -1,115 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic, AJR
-/*****************************************************************************
- *
- * includes/pk8020.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_PK8020_H
-#define MAME_INCLUDES_PK8020_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "machine/bankdev.h"
-#include "machine/i8251.h"
-#include "machine/pic8259.h"
-#include "machine/pla.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-
-
-class pk8020_state : public driver_device
-{
-public:
- pk8020_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_decplm(*this, "decplm")
- , m_devbank(*this, "devbank")
- , m_ram(*this, RAM_TAG)
- , m_ios(*this, "ios%u", 1U)
- , m_fdc(*this, "fdc")
- , m_floppy(*this, "fdc:%u", 0U)
- , m_cass(*this, "cassette")
- , m_inr(*this, "inr")
- , m_speaker(*this, "speaker")
- , m_printer(*this, "printer")
- , m_region_maincpu(*this, "maincpu")
- , m_region_gfx1(*this, "gfx1")
- , m_io_port(*this, "LINE%u", 0U)
- , m_palette(*this, "palette")
- { }
-
- void pk8020(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- static void floppy_formats(format_registration &fr);
-
- uint8_t keyboard_r(offs_t offset);
- void sysreg_w(offs_t offset, uint8_t data);
- void color_w(uint8_t data);
- void palette_w(uint8_t data);
- void video_page_w(uint8_t data);
- uint8_t text_r(offs_t offset);
- void text_w(offs_t offset, uint8_t data);
- uint8_t gzu_r(offs_t offset);
- void gzu_w(offs_t offset, uint8_t data);
- uint8_t devices_r(offs_t offset);
- void devices_w(offs_t offset, uint8_t data);
- uint8_t memory_r(offs_t offset);
- void memory_w(offs_t offset, uint8_t data);
- void pk8020_palette(palette_device &palette) const;
- uint32_t screen_update_pk8020(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(pk8020_interrupt);
- uint8_t ppi_porta_r();
- void floppy_control_w(uint8_t data);
- void ppi_2_portc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pit_out0);
-
- static const char *plm_select_name(uint8_t data);
- void log_bank_select(uint8_t bank, offs_t start, offs_t end, uint8_t rdecplm, uint8_t wdecplm);
-
- void pk8020_io(address_map &map);
- void pk8020_mem(address_map &map);
- void devices_map(address_map &map);
-
- uint8_t m_bank_select;
- uint8_t m_color;
- uint8_t m_video_page;
- uint8_t m_wide;
- uint8_t m_font;
- uint8_t m_attr;
- uint8_t m_text_attr;
- uint8_t m_takt;
- uint8_t m_video_page_access;
- uint8_t m_sound_gate;
- uint8_t m_sound_level;
-
- required_device<cpu_device> m_maincpu;
- required_device<pls100_device> m_decplm;
- required_device<address_map_bank_device> m_devbank;
- required_device<ram_device> m_ram;
- required_device_array<i8251_device, 2> m_ios;
- required_device<kr1818vg93_device> m_fdc;
- required_device_array<floppy_connector, 4> m_floppy;
- required_device<cassette_image_device> m_cass;
- required_device<pic8259_device> m_inr;
- required_device<speaker_sound_device> m_speaker;
- required_device<centronics_device> m_printer;
- required_memory_region m_region_maincpu;
- required_region_ptr<uint8_t> m_region_gfx1;
- required_ioport_array<16> m_io_port;
- required_device<palette_device> m_palette;
-};
-
-#endif // MAME_INCLUDES_PK8020_H
diff --git a/src/mame/includes/pktgaldx.h b/src/mame/includes/pktgaldx.h
deleted file mode 100644
index 266e1765aa0..00000000000
--- a/src/mame/includes/pktgaldx.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Bryan McPhail
-/*************************************************************************
-
- Pocket Gal Deluxe
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_PKTGALDX_H
-#define MAME_INCLUDES_PKTGALDX_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "video/decospr.h"
-#include "video/deco16ic.h"
-#include "machine/deco104.h"
-#include "emupal.h"
-
-class pktgaldx_state : public driver_device
-{
-public:
- pktgaldx_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_deco104(*this, "ioprot104"),
- m_pf1_rowscroll(*this, "pf1_rowscroll"),
- m_pf2_rowscroll(*this, "pf2_rowscroll"),
- m_spriteram(*this, "spriteram"),
- m_pktgaldb_fgram(*this, "pktgaldb_fgram"),
- m_pktgaldb_sprites(*this, "pktgaldb_spr"),
- m_sprgen(*this, "spritegen"),
- m_maincpu(*this, "maincpu"),
- m_oki2(*this, "oki2"),
- m_deco_tilegen(*this, "tilegen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void pktgaldx(machine_config &config);
- void pktgaldb(machine_config &config);
-
- void init_pktgaldx();
-
-private:
- optional_device<deco104_device> m_deco104;
-
- /* memory pointers */
- optional_shared_ptr<uint16_t> m_pf1_rowscroll;
- optional_shared_ptr<uint16_t> m_pf2_rowscroll;
- optional_shared_ptr<uint16_t> m_spriteram;
- optional_shared_ptr<uint16_t> m_pktgaldb_fgram;
- optional_shared_ptr<uint16_t> m_pktgaldb_sprites;
- optional_device<decospr_device> m_sprgen;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<okim6295_device> m_oki2;
- optional_device<deco16ic_device> m_deco_tilegen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_shared_ptr<uint16_t> m_decrypted_opcodes;
-
- uint16_t pckgaldx_unknown_r();
- uint16_t pckgaldx_protection_r();
- void pktgaldx_oki_bank_w(uint16_t data);
- virtual void machine_start() override;
- uint32_t screen_update_pktgaldx(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_pktgaldb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint16_t pktgaldx_protection_region_f_104_r(offs_t offset);
- void pktgaldx_protection_region_f_104_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER( vblank_w );
- void vblank_ack_w(uint16_t data);
-
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- void decrypted_opcodes_map(address_map &map);
- void pktgaldb_map(address_map &map);
- void pktgaldx_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PKTGALDX_H
diff --git a/src/mame/includes/playch10.h b/src/mame/includes/playch10.h
deleted file mode 100644
index a68e530d962..00000000000
--- a/src/mame/includes/playch10.h
+++ /dev/null
@@ -1,196 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi,Brad Oliver
-#ifndef MAME_INCLUDES_PLAYCH10_H
-#define MAME_INCLUDES_PLAYCH10_H
-
-#pragma once
-
-#include "cpu/m6502/n2a03.h"
-#include "machine/rp5h01.h"
-#include "video/ppu2c0x.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class playch10_state : public driver_device
-{
-public:
- playch10_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_cartcpu(*this, "cart")
- , m_ppu(*this, "ppu")
- , m_rp5h01(*this, "rp5h01")
- , m_ram_8w(*this, "ram_8w")
- , m_videoram(*this, "videoram")
- , m_work_ram(*this, "work_ram")
- , m_gfxdecode(*this, "gfxdecode")
- , m_vrom_region(*this, "gfx2")
- , m_timedigits(*this, "digit_%u", 0U)
- {
- }
-
- void playch10(machine_config &config);
- void playch10_a(machine_config &config);
- void playch10_b(machine_config &config);
- void playch10_c(machine_config &config);
- void playch10_d(machine_config &config);
- void playch10_d2(machine_config &config);
- void playch10_e(machine_config &config);
- void playch10_f(machine_config &config);
- void playch10_f2(machine_config &config);
- void playch10_g(machine_config &config);
- void playch10_h(machine_config &config);
- void playch10_i(machine_config &config);
- void playch10_k(machine_config &config);
-
- void init_playch10();
- void init_pc_gun();
- void init_pcaboard();
- void init_pcbboard();
- void init_pccboard();
- void init_pcdboard();
- void init_pcdboard_2();
- void init_pceboard();
- void init_pcfboard();
- void init_pcfboard_2();
- void init_virus();
- void init_ttoon();
- void init_pcgboard();
- void init_pcgboard_type2();
- void init_pchboard();
- void init_pciboard();
- void init_pckboard();
- void init_pc_hrz();
-
- DECLARE_READ_LINE_MEMBER(int_detect_r);
-
-private:
- DECLARE_WRITE_LINE_MEMBER(up8w_w);
- uint8_t ram_8w_r(offs_t offset);
- void ram_8w_w(offs_t offset, uint8_t data);
- void sprite_dma_w(address_space &space, uint8_t data);
- void time_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(sdcs_w);
- DECLARE_WRITE_LINE_MEMBER(cntrl_mask_w);
- DECLARE_WRITE_LINE_MEMBER(disp_mask_w);
- DECLARE_WRITE_LINE_MEMBER(sound_mask_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- DECLARE_WRITE_LINE_MEMBER(dog_di_w);
- DECLARE_WRITE_LINE_MEMBER(ppu_reset_w);
- uint8_t pc10_detectclr_r();
- void cart_sel_w(uint8_t data);
- uint8_t pc10_prot_r();
- void pc10_prot_w(uint8_t data);
- void pc10_in0_w(uint8_t data);
- uint8_t pc10_in0_r();
- uint8_t pc10_in1_r();
- void pc10_nt_w(offs_t offset, uint8_t data);
- uint8_t pc10_nt_r(offs_t offset);
- void pc10_chr_w(offs_t offset, uint8_t data);
- uint8_t pc10_chr_r(offs_t offset);
- void mmc1_rom_switch_w(offs_t offset, uint8_t data);
- void aboard_vrom_switch_w(uint8_t data);
- void bboard_rom_switch_w(uint8_t data);
- void cboard_vrom_switch_w(uint8_t data);
- void eboard_rom_switch_w(offs_t offset, uint8_t data);
- void gboard_rom_switch_w(offs_t offset, uint8_t data);
- void iboard_rom_switch_w(uint8_t data);
- void hboard_rom_switch_w(offs_t offset, uint8_t data);
- void playch10_videoram_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- void bios_io_map(address_map &map);
- void bios_map(address_map &map);
- void cart_map(address_map &map);
- void cart_a_map(address_map &map);
- void cart_b_map(address_map &map);
- void cart_c_map(address_map &map);
- void cart_d_map(address_map &map);
- void cart_d2_map(address_map &map);
- void cart_e_map(address_map &map);
- void cart_f_map(address_map &map);
- void cart_f2_map(address_map &map);
- void cart_g_map(address_map &map);
- void cart_h_map(address_map &map);
- void cart_i_map(address_map &map);
- void cart_k_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- struct chr_bank
- {
- int writable; // 1 for RAM, 0 for ROM
- uint8_t* chr; // direct access to the memory
- };
-
- void playch10_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(playch10_hboard);
- DECLARE_VIDEO_START(playch10_hboard);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- void pc10_set_videorom_bank( int first, int count, int bank, int size );
- void set_videoram_bank( int first, int count, int bank, int size );
- void gboard_scanline_cb( int scanline, int vblank, int blanked );
- DECLARE_WRITE_LINE_MEMBER(int_detect_w);
- void mapper9_latch(offs_t offset);
- void pc10_set_mirroring(int mirroring);
-
- uint32_t screen_update_playch10_top(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_playch10_bottom(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_playch10_single(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- required_device<cpu_device> m_maincpu;
- required_device<n2a03_device> m_cartcpu;
- required_device<ppu2c0x_device> m_ppu;
- optional_device<rp5h01_device> m_rp5h01;
-
- required_shared_ptr<uint8_t> m_ram_8w;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_work_ram;
- required_device<gfxdecode_device> m_gfxdecode;
-
- optional_memory_region m_vrom_region;
-
- output_finder<4> m_timedigits;
-
- int m_up_8w;
- int m_pc10_nmi_enable;
- int m_pc10_dog_di;
- int m_pc10_sdcs;
- int m_pc10_dispmask;
- int m_pc10_int_detect;
- int m_pc10_game_mode;
- int m_pc10_dispmask_old;
- int m_pc10_gun_controller;
- int m_cart_sel;
- int m_cntrl_mask;
- int m_input_latch[2];
- int m_mirroring;
- int m_MMC2_bank[4];
- int m_MMC2_bank_latch[2];
- uint8_t* m_vrom;
- std::unique_ptr<uint8_t[]> m_vram;
- uint8_t* m_nametable[4];
- std::unique_ptr<uint8_t[]> m_nt_ram;
- std::unique_ptr<uint8_t[]> m_extra_ram;
- chr_bank m_chr_page[8];
- int m_mmc1_shiftreg;
- int m_mmc1_shiftcount;
- int m_mmc1_rom_mask;
- int m_gboard_scanline_counter;
- int m_gboard_scanline_latch;
- int m_gboard_banks[2];
- int m_gboard_4screen;
- int m_gboard_last_bank;
- int m_gboard_command;
- int m_IRQ_count;
- uint8_t m_IRQ_count_latch;
- int m_IRQ_enable;
- int m_pc10_bios;
- tilemap_t *m_bg_tilemap;
-};
-
-#endif // MAME_INCLUDES_PLAYCH10_H
diff --git a/src/mame/includes/playmark.h b/src/mame/includes/playmark.h
deleted file mode 100644
index 1e3c686d494..00000000000
--- a/src/mame/includes/playmark.h
+++ /dev/null
@@ -1,193 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Pierpaolo Prazzoli, Quench
-#ifndef MAME_INCLUDES_PLAYMARK_H
-#define MAME_INCLUDES_PLAYMARK_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/pic16c5x/pic16c5x.h"
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "machine/ticket.h"
-#include "sound/okim6295.h"
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class playmark_base_state : public driver_device // base class for powerbal.cpp, too
-{
-public:
- playmark_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bgvideoram(*this, "bgvideoram"),
- m_spriteram(*this, "spriteram"),
- m_sprtranspen(0),
- m_oki(*this, "oki"),
- m_okibank(*this, "okibank"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
-protected:
- // memory pointers
- required_shared_ptr<u16> m_bgvideoram;
- required_shared_ptr<u16> m_spriteram;
-
- // video-related
- tilemap_t *m_bg_tilemap;
-
- s8 m_xoffset;
- s8 m_yoffset;
- u8 m_sprtranspen;
-
- // misc
- u8 m_oki_numbanks;
- void configure_oki_banks();
-
- // devices
- required_device<okim6295_device> m_oki;
- required_memory_bank m_okibank;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-};
-
-class playmark_state : public playmark_base_state
-{
-public:
- playmark_state(const machine_config &mconfig, device_type type, const char *tag) :
- playmark_base_state(mconfig, type, tag),
- m_fgvideoram(*this, "fgvideoram"),
- m_txtvideoram(*this, "txtvideoram"),
- m_rowscroll(*this, "rowscroll"),
- m_audio_pic(*this, "audiopic"),
- m_audio_mcs(*this, "audiomcs"),
- m_soundlatch(*this, "soundlatch"),
- m_eeprom(*this, "eeprom"),
- m_ticket(*this, "ticket"),
- m_token(*this, "token")
- { }
-
- void wbeachvl_mcs(machine_config &config);
- void wbeachvl_pic(machine_config &config);
- void hrdtimes(machine_config &config);
- void luckboomh(machine_config &config);
- void bigtwin(machine_config &config);
- void hotmind(machine_config &config);
- void bigtwinb(machine_config &config);
- void excelsr(machine_config &config);
-
- void init_pic_decode();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- // memory pointers
- required_shared_ptr<u16> m_fgvideoram;
- required_shared_ptr<u16> m_txtvideoram;
- optional_shared_ptr<u16> m_rowscroll;// wbeachvl
-
- // video-related
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
-
- // bigtwin and excelsr
- s32 m_bgscrollx;
- s16 m_bgscrolly;
- bool m_bg_enable;
- bool m_bg_full_size;
-
- // wbeachvl
- u32 m_fgscrollx;
- bool m_fg_rowscroll_enable;
-
- // all
- u16 m_pri_masks[3];
- u16 m_scroll[7];
-
- // misc
- // all
- u8 m_snd_command;
- u8 m_snd_flag;
- u8 m_oki_control;
- u8 m_oki_command;
-
- u8 m_dispenser_latch; // hotmind luckboomh
-
- // devices
- optional_device<pic16c57_device> m_audio_pic; // all but wbeachvla;
- optional_device<i87c51_device> m_audio_mcs; // wbeachvla
- optional_device<generic_latch_8_device> m_soundlatch; // wbeachvla
- optional_device<eeprom_serial_93cxx_device> m_eeprom; // wbeachvl hotmind
- optional_device<ticket_dispenser_device> m_ticket; // hotmind luckboomh
- optional_device<ticket_dispenser_device> m_token; // hotmind luckboomh
-
- void coinctrl_w(u8 data); // bigtwin excelsr hrdtimes
- void wbeachvl_coin_eeprom_w(u8 data); // wbeachvl
- void hotmind_coin_eeprom_w(u8 data); // hotmind
- void luckboomh_dispenser_w(u8 data); // hotmind luckboomh
- void playmark_snd_command_w(u8 data);
- u8 playmark_snd_command_r();
- u8 playmark_snd_flag_r();
- void playmark_oki_w(u8 data);
- void playmark_snd_control_w(u8 data);
- void hrdtimes_snd_control_w(u8 data); // hrdtimes, hotmind, luckboomh
- void wbeachvl_txvideoram_w(offs_t offset, u16 data, u16 mem_mask = ~0); // bigtwin, wbeachvl, excelsr
- void wbeachvl_fgvideoram_w(offs_t offset, u16 data, u16 mem_mask = ~0); // bigtwin, wbeachvl, excelsr
- void wbeachvl_bgvideoram_w(offs_t offset, u16 data, u16 mem_mask = ~0); // wbeachvl
- void hrdtimes_txvideoram_w(offs_t offset, u16 data, u16 mem_mask = ~0); // bigtwinb, hrdtimes, hotmind, luckboomh
- void hrdtimes_fgvideoram_w(offs_t offset, u16 data, u16 mem_mask = ~0); // bigtwinb, hrdtimes, hotmind, luckboomh
- void hrdtimes_bgvideoram_w(offs_t offset, u16 data, u16 mem_mask = ~0); // bigtwinb, hrdtimes, hotmind, luckboomh
- void bigtwin_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0); // bigtwin
- void wbeachvl_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0); // wbeachvk
- void excelsr_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0); // excelsr
- void hrdtimes_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0); // bigtwinb, hrdtimes, hotmind, luckboomh
- void playmark_oki_banking_w(u8 data);
- uint8_t wbeachvla_snd_command_r(); // wbeachvla
- void wbeachvla_snd_control_w(uint8_t data); // wbeachvla
- TILE_GET_INFO_MEMBER(bigtwin_get_tx_tile_info); // bigtwin, excelsr
- TILE_GET_INFO_MEMBER(bigtwin_get_fg_tile_info); // bigtwin, excelsr
- TILE_GET_INFO_MEMBER(wbeachvl_get_tx_tile_info); // wbeachvk
- TILE_GET_INFO_MEMBER(wbeachvl_get_fg_tile_info); // wbeachvk
- TILE_GET_INFO_MEMBER(wbeachvl_get_bg_tile_info); // wbeachvk
- TILE_GET_INFO_MEMBER(hrdtimes_get_tx_tile_info); // hrdtimes, hotmind, luckboomh
- TILE_GET_INFO_MEMBER(bigtwinb_get_tx_tile_info); // bigtwinb
- TILE_GET_INFO_MEMBER(hrdtimes_get_fg_tile_info); // bigtwinb, hrdtimes, hotmind, luckboomh
- TILE_GET_INFO_MEMBER(hrdtimes_get_bg_tile_info); // bigtwinb, hrdtimes, hotmind, luckboomh
- DECLARE_VIDEO_START(bigtwin);
- DECLARE_VIDEO_START(bigtwinb);
- DECLARE_VIDEO_START(wbeachvl);
- DECLARE_VIDEO_START(excelsr);
- DECLARE_VIDEO_START(hotmind);
- DECLARE_VIDEO_START(hrdtimes);
- DECLARE_VIDEO_START(luckboomh);
- TILEMAP_MAPPER_MEMBER(playmark_tilemap_scan_pages); // hrdtimes
- u32 screen_update_bigtwin(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_bigtwinb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_wbeachvl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_excelsr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_hrdtimes(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); // hrdtimes, hotmind, luckboomh
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int codeshift); // all but bigtwinb
- void bigtwinb_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int codeshift); // bigtwinb
- void draw_bitmap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); // bigtwin, excelsr
- u8 playmark_asciitohex(u8 data);
- void playmark_decode_pic_hex_dump(void);
-
- void bigtwin_main_map(address_map &map);
- void bigtwinb_main_map(address_map &map);
- void excelsr_main_map(address_map &map);
- void hotmind_main_map(address_map &map);
- void hrdtimes_main_map(address_map &map);
- void luckboomh_main_map(address_map &map);
- void oki_map(address_map &map);
- void wbeachvl_main_map(address_map &map);
- void wbeachvla_main_map(address_map &map);
-
- void wbeachvl_base(machine_config &config);
-};
-
-#endif // MAME_INCLUDES_PLAYMARK_H
diff --git a/src/mame/includes/plygonet.h b/src/mame/includes/plygonet.h
deleted file mode 100644
index 0aecb32eee6..00000000000
--- a/src/mame/includes/plygonet.h
+++ /dev/null
@@ -1,124 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont, Andrew Gardner
-#ifndef MAME_INCLUDES_PLYGONET_H
-#define MAME_INCLUDES_PLYGONET_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "machine/k054321.h"
-#include "video/k053936.h"
-#include "cpu/dsp56156/dsp56156.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-static const uint16_t dsp56156_bank00_size = 0x1000;
-static const uint16_t dsp56156_bank01_size = 0x1000;
-static const uint16_t dsp56156_bank02_size = 0x4000;
-static const uint16_t dsp56156_shared_ram_16_size = 0x2000;
-static const uint16_t dsp56156_bank04_size = 0x1fc0;
-
-class polygonet_state : public driver_device
-{
-public:
- polygonet_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_dsp(*this, "dsp"),
- m_eeprom(*this, "eeprom"),
- m_k053936(*this, "k053936"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_k054321(*this, "k054321"),
- m_shared_ram(*this, "shared_ram"),
- m_dsp56156_p_mirror(*this, "dsp56156_p_mirror"),
- m_dsp56156_p_8000(*this, "dsp56156_p_8000")
- { }
-
- void plygonet(machine_config &config);
-
- void init_polygonet();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<dsp56156_device> m_dsp;
- required_device<eeprom_serial_er5911_device> m_eeprom;
- required_device<k053936_device> m_k053936;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<k054321_device> m_k054321;
-
- /* 68k-side shared ram */
- required_shared_ptr<uint32_t> m_shared_ram;
-
- required_shared_ptr<uint16_t> m_dsp56156_p_mirror;
- required_shared_ptr<uint16_t> m_dsp56156_p_8000;
-
- ioport_port *m_inputs[4];
- uint8_t m_sys0;
- uint8_t m_sys1;
-
- /* TTL text plane stuff */
- int m_ttl_gfx_index;
- tilemap_t *m_ttl_tilemap;
- tilemap_t *m_roz_tilemap;
- uint16_t m_ttl_vram[0x800];
- uint16_t m_roz_vram[0x800];
-
- /* sound */
- uint8_t m_sound_ctrl;
- uint8_t m_sound_intck;
-
- /* memory buffers */
- uint16_t m_dsp56156_bank00_ram[2 * 8 * dsp56156_bank00_size]; /* 2 bank sets, 8 potential banks each */
- uint16_t m_dsp56156_bank01_ram[2 * 8 * dsp56156_bank01_size];
- uint16_t m_dsp56156_bank02_ram[2 * 8 * dsp56156_bank02_size];
- uint16_t m_dsp56156_shared_ram_16[2 * 8 * dsp56156_shared_ram_16_size];
- uint16_t m_dsp56156_bank04_ram[2 * 8 * dsp56156_bank04_size];
-
- void polygonet_sys_w(offs_t offset, uint8_t data);
- uint8_t polygonet_inputs_r(offs_t offset);
- void sound_irq_w(uint32_t data);
- uint32_t dsp_host_interface_r(offs_t offset, uint32_t mem_mask = ~0);
- void shared_ram_write(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void dsp_w_lines(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void dsp_host_interface_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t network_r();
- uint16_t dsp56156_bootload_r();
- uint16_t dsp56156_ram_bank00_read(offs_t offset);
- void dsp56156_ram_bank00_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t dsp56156_ram_bank01_read(offs_t offset);
- void dsp56156_ram_bank01_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t dsp56156_ram_bank02_read(offs_t offset);
- void dsp56156_ram_bank02_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t dsp56156_shared_ram_read(offs_t offset);
- void dsp56156_shared_ram_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t dsp56156_ram_bank04_read(offs_t offset);
- void dsp56156_ram_bank04_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_ctrl_w(uint8_t data);
- uint32_t polygonet_ttl_ram_r(offs_t offset);
- void polygonet_ttl_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t polygonet_roz_ram_r(offs_t offset);
- void polygonet_roz_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(ttl_get_tile_info);
- TILE_GET_INFO_MEMBER(roz_get_tile_info);
- TILEMAP_MAPPER_MEMBER(plygonet_scan);
- TILEMAP_MAPPER_MEMBER(plygonet_scan_cols);
- virtual void machine_reset() override;
- virtual void machine_start() override;
- virtual void video_start() override;
- uint32_t screen_update_polygonet(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(polygonet_interrupt);
- DECLARE_WRITE_LINE_MEMBER(k054539_nmi_gen);
-
- void dsp_data_map(address_map &map);
- void dsp_program_map(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PLYGONET_H
diff --git a/src/mame/includes/pmd85.h b/src/mame/includes/pmd85.h
deleted file mode 100644
index 2ee987945c6..00000000000
--- a/src/mame/includes/pmd85.h
+++ /dev/null
@@ -1,155 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Krzysztof Strzecha
-/*****************************************************************************
- *
- * includes/pmd85.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_PMD85_H
-#define MAME_INCLUDES_PMD85_H
-
-#pragma once
-
-#include "machine/i8251.h"
-#include "machine/pit8253.h"
-#include "machine/i8255.h"
-#include "imagedev/cassette.h"
-#include "sound/spkrdev.h"
-#include "machine/ram.h"
-#include "emupal.h"
-
-
-class pmd85_state : public driver_device
-{
-public:
- pmd85_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_rom(*this, "maincpu")
- , m_ram(*this, RAM_TAG)
- , m_cassette(*this, "cassette")
- , m_speaker(*this, "speaker")
- , m_pit(*this, "pit")
- , m_uart(*this, "uart")
- , m_ppi0(*this, "ppi0")
- , m_ppi1(*this, "ppi1")
- , m_ppi2(*this, "ppi2")
- , m_ppi3(*this, "ppi3")
- , m_bank(*this, "bank%d", 0U)
- , m_io_dsw0(*this, "DSW0")
- , m_palette(*this, "palette")
- , m_io_keyboard(*this, "KEY%u", 0U)
- , m_leds(*this, "led%u", 0U)
- { }
-
- void pmd85(machine_config &config, bool with_uart = true);
- void pmd851(machine_config &config);
- void pmd853(machine_config &config);
- void pmd852a(machine_config &config);
- void alfa(machine_config &config);
- void c2717(machine_config &config);
- void mato(machine_config &config);
-
- void init_mato();
- void init_pmd852a();
- void init_pmd851();
- void init_pmd852();
- void init_pmd853();
- void init_alfa();
- void init_c2717();
-
- DECLARE_INPUT_CHANGED_MEMBER(pmd85_reset);
-
-private:
- enum
- {
- TIMER_CASSETTE
- };
-
- bool m_txd, m_rts;
- uint8_t m_rom_module_present;
- uint8_t m_ppi_port_outputs[4][3];
- uint8_t m_startup_mem_map;
- uint8_t m_pmd853_memory_mapping;
- bool m_previous_level;
- bool m_clk_level;
- bool m_clk_level_tape;
- uint8_t m_model;
- emu_timer * m_cassette_timer;
- void (pmd85_state::*update_memory)();
- uint8_t io_r(offs_t offset);
- void io_w(offs_t offset, uint8_t data);
- uint8_t mato_io_r(offs_t offset);
- void mato_io_w(offs_t offset, uint8_t data);
-
- virtual void machine_reset() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(cassette_timer_callback);
- uint8_t ppi0_porta_r();
- uint8_t ppi0_portb_r();
- uint8_t ppi0_portc_r();
- void ppi0_porta_w(uint8_t data);
- void ppi0_portb_w(uint8_t data);
- void ppi0_portc_w(uint8_t data);
- uint8_t mato_ppi0_portb_r();
- uint8_t mato_ppi0_portc_r();
- void mato_ppi0_portc_w(uint8_t data);
- uint8_t ppi1_porta_r();
- uint8_t ppi1_portb_r();
- uint8_t ppi1_portc_r();
- void ppi1_porta_w(uint8_t data);
- void ppi1_portb_w(uint8_t data);
- void ppi1_portc_w(uint8_t data);
- uint8_t ppi2_porta_r();
- uint8_t ppi2_portb_r();
- uint8_t ppi2_portc_r();
- void ppi2_porta_w(uint8_t data);
- void ppi2_portb_w(uint8_t data);
- void ppi2_portc_w(uint8_t data);
- uint8_t ppi3_porta_r();
- uint8_t ppi3_portb_r();
- uint8_t ppi3_portc_r();
- void ppi3_porta_w(uint8_t data);
- void ppi3_portb_w(uint8_t data);
- void ppi3_portc_w(uint8_t data);
-
- void alfa_mem(address_map &map);
- void c2717_mem(address_map &map);
- void mato_io(address_map &map);
- void mato_mem(address_map &map);
- void pmd852a_mem(address_map &map);
- void pmd853_mem(address_map &map);
- void pmd85_io(address_map &map);
- void pmd85_mem(address_map &map);
-
- virtual void machine_start() override;
-
- void pmd851_update_memory();
- void pmd852a_update_memory();
- void pmd853_update_memory();
- void alfa_update_memory();
- void mato_update_memory();
- void c2717_update_memory();
- void common_driver_init();
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- required_device<cpu_device> m_maincpu;
- required_region_ptr<u8> m_rom;
- required_device<ram_device> m_ram;
- required_device<cassette_image_device> m_cassette;
- required_device<speaker_sound_device> m_speaker;
- required_device<pit8253_device> m_pit;
- optional_device<i8251_device> m_uart;
- optional_device<i8255_device> m_ppi0;
- optional_device<i8255_device> m_ppi1;
- optional_device<i8255_device> m_ppi2;
- optional_device<i8255_device> m_ppi3;
- optional_memory_bank_array<17> m_bank;
- optional_ioport m_io_dsw0;
- required_device<palette_device> m_palette;
- optional_ioport_array<16> m_io_keyboard;
- output_finder<3> m_leds;
-};
-
-
-#endif // MAME_INCLUDES_PMD85_H
diff --git a/src/mame/includes/pocketc.h b/src/mame/includes/pocketc.h
deleted file mode 100644
index 23bb199dae3..00000000000
--- a/src/mame/includes/pocketc.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/pocketc.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_POCKETC_H
-#define MAME_INCLUDES_POCKETC_H
-
-#pragma once
-
-#include "cpu/sc61860/sc61860.h"
-#include "machine/nvram.h"
-#include "emupal.h"
-#include "screen.h"
-
-class pocketc_state : public driver_device
-{
-public:
- pocketc_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_cpu_nvram(*this, "cpu_nvram")
- , m_ram_nvram(*this, "ram_nvram")
- , m_dsw0(*this, "DSW0")
- , m_extra(*this, "EXTRA")
- , m_power_timer(nullptr)
- { }
-
- void pocketc_base(machine_config &config);
-
-protected:
- static const device_timer_id TIMER_POWER_UP = 0;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- void pocketc_palette(palette_device &palette) const;
-
- void pocketc_draw_special(bitmap_ind16 &bitmap,int x, int y, const char* const *fig, int color);
-
- void out_a_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER(brk_r);
-
- required_device<sc61860_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_device<nvram_device> m_cpu_nvram;
- required_device<nvram_device> m_ram_nvram;
- required_ioport m_dsw0;
- required_ioport m_extra;
-
- uint8_t m_outa;
- uint8_t m_outb;
- int m_power;
- emu_timer *m_power_timer;
-
- static const int colortable[8][2];
- static const rgb_t indirect_palette[6];
-};
-
-#endif // MAME_INCLUDES_POCKETC_H
diff --git a/src/mame/includes/pokechmp.h b/src/mame/includes/pokechmp.h
deleted file mode 100644
index 77b8137c07f..00000000000
--- a/src/mame/includes/pokechmp.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_POKECHMP_H
-#define MAME_INCLUDES_POKECHMP_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class pokechmp_state : public driver_device
-{
-public:
- pokechmp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void pokechmp(machine_config &config);
-
- void init_pokechmp();
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- tilemap_t *m_bg_tilemap;
- required_shared_ptr<uint8_t> m_spriteram;
- void pokechmp_bank_w(uint8_t data);
- void pokechmp_sound_bank_w(uint8_t data);
- void pokechmp_sound_w(uint8_t data);
- void pokechmp_videoram_w(offs_t offset, uint8_t data);
- void pokechmp_flipscreen_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(sound_irq);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void video_start() override;
- uint32_t screen_update_pokechmp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- void pokechmp_map(address_map &map);
- void pokechmp_oki_map(address_map &map);
- void pokechmp_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_POKECHMP_H
diff --git a/src/mame/includes/polepos.h b/src/mame/includes/polepos.h
deleted file mode 100644
index d816e7c010b..00000000000
--- a/src/mame/includes/polepos.h
+++ /dev/null
@@ -1,137 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi, Juergen Buchmueller, Alex Pasadyn, Aaron Giles, Nicola Salmoria
-/*************************************************************************
-
- Pole Position hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_POLEPOS_H
-#define MAME_INCLUDES_POLEPOS_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/adc0804.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/namco.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class polepos_state : public driver_device
-{
-public:
- polepos_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_subcpu2(*this, "sub2"),
- m_sound_z80(*this, "soundz80bl"),
- m_soundlatch(*this, "soundlatch"),
- m_namco_sound(*this, "namco"),
- m_latch(*this, "latch"),
- m_adc(*this, "adc"),
- m_sprite16_memory(*this, "sprite16_memory"),
- m_road16_memory(*this, "road16_memory"),
- m_alpha16_memory(*this, "alpha16_memory"),
- m_view16_memory(*this, "view16_memory"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- DECLARE_READ_LINE_MEMBER(auto_start_r);
-
- void init_polepos2();
-
- void polepos2bi(machine_config &config);
- void topracern(machine_config &config);
- void polepos(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_subcpu2;
- optional_device<cpu_device> m_sound_z80;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<namco_device> m_namco_sound;
- required_device<ls259_device> m_latch;
- required_device<adc0804_device> m_adc;
- required_shared_ptr<uint16_t> m_sprite16_memory;
- required_shared_ptr<uint16_t> m_road16_memory;
- required_shared_ptr<uint16_t> m_alpha16_memory;
- required_shared_ptr<uint16_t> m_view16_memory;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- uint8_t m_steer_last;
- uint8_t m_steer_delta;
- int16_t m_steer_accum;
- int16_t m_last_result;
- int8_t m_last_signed;
- uint8_t m_last_unsigned;
- int m_adc_input;
- int m_auto_start_mask;
-
- uint16_t m_vertical_position_modifier[256];
- uint16_t m_road16_vscroll;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_tx_tilemap;
- int m_chacl;
- uint16_t m_scroll;
- uint8_t m_sub_irq_mask;
-
- uint16_t polepos2_ic25_r(offs_t offset);
- uint8_t analog_r();
- uint8_t ready_r();
- DECLARE_WRITE_LINE_MEMBER(gasel_w);
- DECLARE_WRITE_LINE_MEMBER(sb0_w);
- DECLARE_WRITE_LINE_MEMBER(chacl_w);
- template<bool sub1> void z8002_nvi_enable_w(uint16_t data);
- uint8_t sprite_r(offs_t offset);
- void sprite_w(offs_t offset, uint8_t data);
- uint8_t road_r(offs_t offset);
- void road_w(offs_t offset, uint8_t data);
- void road16_vscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = 0);
- void view16_w(offs_t offset, uint16_t data, uint16_t mem_mask = 0);
- uint8_t view_r(offs_t offset);
- void view_w(offs_t offset, uint8_t data);
- void view16_hscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = 0);
- void alpha16_w(offs_t offset, uint16_t data, uint16_t mem_mask = 0);
- uint8_t alpha_r(offs_t offset);
- void alpha_w(offs_t offset, uint8_t data);
- void out(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(lockout);
- uint8_t namco_52xx_rom_r(offs_t offset);
- uint8_t namco_52xx_si_r();
- uint8_t namco_53xx_k_r();
- uint8_t steering_changed_r();
- uint8_t steering_delta_r();
- void bootleg_soundlatch_w(uint8_t data);
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- TILE_GET_INFO_MEMBER(tx_get_tile_info);
- void polepos_palette(palette_device &palette);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
- void draw_road(bitmap_ind16 &bitmap);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void zoom_sprite(bitmap_ind16 &bitmap,int big,uint32_t code,uint32_t color,int flipx,int sx,int sy,int sizex,int sizey);
- void sound_z80_bootleg_iomap(address_map &map);
- void sound_z80_bootleg_map(address_map &map);
- void topracern_io(address_map &map);
- void z8002_map(address_map &map);
- void z8002_map_1(address_map &map);
- void z8002_map_2(address_map &map);
- void z80_io(address_map &map);
- void z80_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_POLEPOS_H
diff --git a/src/mame/includes/policetr.h b/src/mame/includes/policetr.h
deleted file mode 100644
index 73186b9d8da..00000000000
--- a/src/mame/includes/policetr.h
+++ /dev/null
@@ -1,173 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- P&P Marketing Police Trainer hardware
-
-**************************************************************************/
-
-#include "cpu/mips/mips1.h"
-#include "machine/eepromser.h"
-#include "sound/bsmt2000.h"
-#include "video/ramdac.h"
-#include "emupal.h"
-#include "screen.h"
-#include "speaker.h"
-
-class policetr_state : public driver_device
-{
-public:
- policetr_state(const machine_config &mconfig, device_type type, const char *tag)
- : policetr_state(mconfig, type, tag, 0x1fc028ac, 0x00000fc8)
- { }
-
- void policetr(machine_config &config);
-
- void driver_init() override;
-
- DECLARE_READ_LINE_MEMBER(bsmt_status_r);
-
-protected:
- policetr_state(const machine_config &mconfig, device_type type, const char *tag, uint32_t speedup_pc, uint32_t speedup_addr) :
- driver_device(mconfig, type, tag),
- m_srcbitmap(*this, "gfx"),
- m_rambase(*this, "rambase"),
- m_maincpu(*this, "maincpu"),
- m_bsmt(*this, "bsmt"),
- m_bsmt_region(*this, "bsmt"),
- m_lspeaker(*this, "lspeaker"),
- m_rspeaker(*this, "rspeaker"),
- m_eeprom(*this, "eeprom"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_ramdac(*this, "ramdac"),
- m_leds(*this, "leds%u", 0U),
- m_gun_x_io(*this, "GUNX%u", 1U),
- m_gun_y_io(*this, "GUNY%u", 1U),
- m_speedup_pc(speedup_pc),
- m_speedup_addr(speedup_addr) { }
-
- void machine_start() override;
- void video_start() override;
-
- void mem(address_map &map);
-
- void ramdac_map(address_map& map);
-
- void control_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void speedup_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- void bsmt2000_reg_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void bsmt2000_data_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint8_t bsmt2000_data_r(offs_t offset);
-
- void video_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t video_r();
- DECLARE_WRITE_LINE_MEMBER(vblank);
- void render_display_list(offs_t offset);
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- required_region_ptr<uint8_t> m_srcbitmap;
- required_shared_ptr<uint32_t> m_rambase;
- required_device<r3041_device> m_maincpu;
- required_device<bsmt2000_device> m_bsmt;
- required_region_ptr<uint8_t> m_bsmt_region;
- required_device<speaker_device> m_lspeaker;
- required_device<speaker_device> m_rspeaker;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<ramdac_device> m_ramdac;
-
- enum
- {
- LED_PCB_RED,
- LED_PCB_GREEN,
- LED_COIN1,
- LED_COIN2
- };
-
- output_finder<4> m_leds;
-
- required_ioport_array<2> m_gun_x_io;
- required_ioport_array<2> m_gun_y_io;
-
- uint32_t m_control_data;
- uint32_t m_bsmt_data_bank;
- uint32_t m_bsmt_data_offset;
- uint32_t *m_speedup_data;
- uint64_t m_last_cycles;
- uint32_t m_loop_count;
- offs_t m_speedup_pc;
- offs_t m_speedup_addr;
- rectangle m_render_clip;
- std::unique_ptr<bitmap_ind8> m_dstbitmap;
- uint16_t m_src_xoffs;
- uint16_t m_src_yoffs;
- uint16_t m_dst_xoffs;
- uint16_t m_dst_yoffs;
- uint8_t m_video_latch;
- uint32_t m_srcbitmap_height_mask;
-
- static constexpr uint32_t SRCBITMAP_WIDTH = 4096;
- static constexpr uint32_t SRCBITMAP_WIDTH_MASK = SRCBITMAP_WIDTH - 1;
- static constexpr uint32_t DSTBITMAP_WIDTH = 512;
- static constexpr uint32_t DSTBITMAP_HEIGHT = 256;
-};
-
-class sshooter_state : public policetr_state
-{
-public:
- sshooter_state(const machine_config &mconfig, device_type type, const char *tag)
- : sshooter_state(mconfig, type, tag, 0x1fc03440, 0x00018fd8)
- { }
-
- void sshooter(machine_config &config);
-
-protected:
- sshooter_state(const machine_config &mconfig, device_type type, const char *tag, uint32_t speedup_pc, uint32_t speedup_addr)
- : policetr_state(mconfig, type, tag, speedup_pc, speedup_addr)
- { }
-
- void mem(address_map &map);
-};
-
-class sshoot17_state : public sshooter_state
-{
-public:
- sshoot17_state(const machine_config &mconfig, device_type type, const char *tag)
- : sshooter_state(mconfig, type, tag, 0x1fc03470, 0x00018fd8)
- { }
-};
-
-class sshoot12_state : public sshooter_state
-{
-public:
- sshoot12_state(const machine_config &mconfig, device_type type, const char *tag)
- : sshooter_state(mconfig, type, tag, 0x1fc033e0, 0x00018fd8)
- { }
-};
-
-class sshoot11_state : public sshooter_state
-{
-public:
- sshoot11_state(const machine_config &mconfig, device_type type, const char *tag)
- : sshooter_state(mconfig, type, tag, 0x1fc032f8, 0x00018fd8)
- { }
-};
-
-class plctr13b_state : public sshooter_state
-{
-public:
- plctr13b_state(const machine_config &mconfig, device_type type, const char *tag)
- : sshooter_state(mconfig, type, tag, 0x1fc028bc, 0x00000fc8)
- { }
-};
-
-class polict10_state : public sshooter_state
-{
-public:
- polict10_state(const machine_config &mconfig, device_type type, const char *tag)
- : sshooter_state(mconfig, type, tag, 0x1fc028b4, 0x00000fc8)
- { }
-};
diff --git a/src/mame/includes/poly.h b/src/mame/includes/poly.h
deleted file mode 100644
index 06edfe470cb..00000000000
--- a/src/mame/includes/poly.h
+++ /dev/null
@@ -1,184 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Robbbert,Nigel Barnes
-// thanks-to:Andrew Trotman
-/***************************************************************************
-
- Poly/Proteus (New Zealand)
-
- 10/07/2011 Skeleton driver.
-
- http://www.cs.otago.ac.nz/homepages/andrew/poly/Poly.htm
-
- Andrew has supplied the roms for -bios 1
-
- It uses a 6809 for all main functions. There is a Z80 for CP/M, but all
- of the roms are 6809 code.
-
- The keyboard controller is one of those custom XR devices.
- Will use the terminal keyboard instead.
-
- With bios 1, after entering your userid and password, you get a black
- screen. This is normal, because it joins to a network which isn't there.
-
- ToDo:
- - Almost Everything!
- - Connect up the device ports & lines
- - Find out about graphics mode and how it is selected
- - Fix Keyboard so that the Enter key tells BASIC to do something
- - Find out how to make 2nd teletext screen to display
- - Banking
-
-****************************************************************************/
-
-#ifndef MAME_INCLUDES_POLY_H
-#define MAME_INCLUDES_POLY_H
-
-#pragma once
-
-#include "cpu/m6809/m6809.h"
-#include "imagedev/floppy.h"
-#include "machine/6821pia.h"
-#include "machine/6840ptm.h"
-#include "machine/6850acia.h"
-#include "machine/kr2376.h"
-#include "machine/clock.h"
-#include "machine/mc6854.h"
-#include "machine/bankdev.h"
-#include "machine/ram.h"
-#include "machine/input_merger.h"
-#include "machine/wd_fdc.h"
-#include "machine/keyboard.h"
-#include "sound/spkrdev.h"
-#include "video/saa5050.h"
-#include "screen.h"
-#include "speaker.h"
-
-//#include "bus/poly/network.h"
-
-
-class poly_state : public driver_device
-{
-public:
- poly_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_bankdev(*this, "bankdev")
- , m_ram(*this, RAM_TAG)
- , m_trom(*this, "saa5050_%u", 1)
- , m_pia(*this, "pia%u", 0)
- , m_adlc(*this, "mc6854")
- , m_ptm(*this, "ptm")
- , m_irqs(*this, "irqs")
-// , m_kr2376(*this, "kr2376")
- , m_kbd(*this, "X%u", 0)
- , m_modifiers(*this, "MODIFIERS")
- , m_speaker(*this, "speaker")
- , m_user(*this, "user")
- , m_system(*this, "system")
- , m_videoram(*this, "videoram")
- , m_dat(*this, "dat")
- , m_acia(*this, "acia")
- , m_acia_clock(*this, "acia_clock")
- {
- }
-
- static constexpr feature_type imperfect_features() { return feature::KEYBOARD; }
-
- void poly(machine_config &config);
- void poly2(machine_config &config);
-
- void init_poly();
-
- virtual void poly_bank(address_map &map);
-
-private:
- uint8_t logical_mem_r(offs_t offset);
- void logical_mem_w(offs_t offset, uint8_t data);
- uint8_t vector_r(offs_t offset);
- void kbd_put(u8 data); // remove when KR2376 is implemented
- DECLARE_READ_LINE_MEMBER( kbd_shift_r );
- DECLARE_READ_LINE_MEMBER( kbd_control_r );
- void pia0_pa_w(uint8_t data);
- void pia0_pb_w(uint8_t data);
- uint8_t pia1_b_in();
- uint8_t videoram_1_r(offs_t offset);
- uint8_t videoram_2_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER( ptm_o2_callback );
- DECLARE_WRITE_LINE_MEMBER( ptm_o3_callback );
- void baud_rate_w(uint8_t data);
- TIMER_CALLBACK_MEMBER( set_protect );
- void set_protect_w(uint8_t data);
- uint8_t select_map_r();
- void select_map1_w(uint8_t data);
- void select_map2_w(uint8_t data);
- uint8_t network_r(offs_t offset);
- void network_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( network_clk_w );
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void poly_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<address_map_bank_device> m_bankdev;
- required_device<ram_device> m_ram;
- required_device_array<saa5050_device, 2> m_trom;
- required_device_array<pia6821_device, 2> m_pia;
- required_device<mc6854_device> m_adlc;
- required_device<ptm6840_device> m_ptm;
- required_device<input_merger_device> m_irqs;
- //required_device<kr2376_device> m_kr2376;
- required_ioport_array<8> m_kbd;
- required_ioport m_modifiers;
- required_device<speaker_sound_device> m_speaker;
- required_memory_region m_user;
- required_memory_region m_system;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_dat;
- optional_device<acia6850_device> m_acia;
- optional_device<clock_device> m_acia_clock;
- uint8_t m_video_pa, m_video_pb;
- uint8_t m_term_data;
-
- inline offs_t physical(offs_t offset);
-
- int m_dat_bank;
-};
-
-
-class polydev_state : public poly_state
-{
-public:
- polydev_state(const machine_config &mconfig, device_type type, const char *tag)
- : poly_state(mconfig, type, tag)
- , m_fdc(*this, "fdc")
- , m_floppy(*this, "fdc:%u", 0)
- , m_current_floppy(nullptr)
- {
- }
-
- static constexpr feature_type imperfect_features() { return feature::KEYBOARD; }
-
- void polydev(machine_config &config);
-
-private:
- void drive_register_w(uint8_t data);
- uint8_t drive_register_r();
- DECLARE_WRITE_LINE_MEMBER(motor_w);
- uint8_t fdc_inv_r(offs_t offset);
- void fdc_inv_w(offs_t offset, uint8_t data);
-
-
- virtual void poly_bank(address_map &map) override;
-
- static void floppy_formats(format_registration &fr);
-
- required_device<fd1771_device> m_fdc;
- required_device_array<floppy_connector, 2> m_floppy;
- floppy_image_device *m_current_floppy;
-};
-
-#endif // MAME_INCLUDES_POLY_H
diff --git a/src/mame/includes/poly88.h b/src/mame/includes/poly88.h
deleted file mode 100644
index ed7e9d115d6..00000000000
--- a/src/mame/includes/poly88.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/poly88.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_POLY88_H
-#define MAME_INCLUDES_POLY88_H
-
-#pragma once
-
-#include "bus/s100/s100.h"
-#include "machine/bankdev.h"
-#include "machine/i8251.h"
-#include "machine/mm5307.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "machine/timer.h"
-
-class poly88_state : public driver_device
-{
-public:
- poly88_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_onboard_io(*this, "onboard_io")
- , m_s100(*this, "s100")
- , m_s100_slot(*this, "s100:%u", 1U)
- , m_usart(*this, "usart")
- , m_brg(*this, "brg")
- , m_cassette(*this, "cassette")
- , m_onboard_rom(*this, "maincpu")
- , m_linec(*this, "CONFIG")
- , m_onboard_config(*this, "ONBOARD")
- { }
-
- void poly88(machine_config &config);
- void poly8813(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- bool is_onboard(offs_t offset);
- uint8_t mem_r(offs_t offset);
- void mem_w(offs_t offset, uint8_t data);
- uint8_t in_r(offs_t offset);
- void out_w(offs_t offset, uint8_t data);
- void baud_rate_w(uint8_t data);
- void intr_w(uint8_t data);
-
- TIMER_DEVICE_CALLBACK_MEMBER(kansas_r);
- DECLARE_WRITE_LINE_MEMBER(cassette_clock_w);
- TIMER_DEVICE_CALLBACK_MEMBER(rtc_tick);
- DECLARE_WRITE_LINE_MEMBER(vi2_w);
- DECLARE_WRITE_LINE_MEMBER(vi5_w);
- DECLARE_WRITE_LINE_MEMBER(usart_ready_w);
- IRQ_CALLBACK_MEMBER(poly88_irq_callback);
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
-
- void s100_mem(address_map &map);
- void s100_io(address_map &map);
- void poly88_mem(address_map &map);
- void poly88_io(address_map &map);
- void poly8813_mem(address_map &map);
- void poly8813_io(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<address_map_bank_device> m_onboard_io;
- required_device<s100_bus_device> m_s100;
- optional_device_array<s100_slot_device, 9> m_s100_slot;
- required_device<i8251_device> m_usart;
- required_device<mm5307_device> m_brg;
- required_device<cassette_image_device> m_cassette;
- required_region_ptr<u8> m_onboard_rom;
- required_ioport m_linec;
- required_ioport m_onboard_config;
-
- uint8_t m_int_vector;
- bool m_dtr, m_rts, m_txd, m_rxd, m_cassold, m_casspol;
- u8 m_cass_data[5];
- std::unique_ptr<u8[]> m_onboard_ram;
- bool m_onboard_disable;
-};
-
-#endif // MAME_INCLUDES_POLY88_H
diff --git a/src/mame/includes/polyplay.h b/src/mame/includes/polyplay.h
deleted file mode 100644
index 952183544c9..00000000000
--- a/src/mame/includes/polyplay.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Martin Buchholz
-// thanks-to:James Wallace, Martin Buchholz, Juergen Oppermann, Volker Hann, Jan-Ole Christian
-#ifndef MAME_INCLUDES_POLYPLAY_H
-#define MAME_INCLUDES_POLYPLAY_H
-
-#include "cpu/z80/z80.h"
-#include "machine/z80ctc.h"
-#include "machine/z80pio.h"
-#include "machine/z80sio.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-
-#define POLYPLAY_MAIN_CLOCK XTAL(9'830'400)
-
-#define Z80CPU_TAG "maincpu"
-#define Z80CTC_TAG "z80ctc"
-#define Z80PIO_TAG "z80pio"
-#define Z80SIO_TAG "z80sio"
-
-class polyplay_state : public driver_device
-{
-public:
- polyplay_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_characterram(*this, "characterram"),
- m_maincpu(*this, Z80CPU_TAG),
- m_z80ctc(*this, Z80CTC_TAG),
- m_z80pio(*this, Z80PIO_TAG),
- m_z80sio(*this, Z80SIO_TAG),
- m_in0_port(*this, "IN0"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_speaker1(*this, "speaker1"),
- m_speaker2(*this, "speaker2"),
- m_lamps(*this, "lamp%u", 1U)
- { }
-
- void polyplay_zre(machine_config &config);
- void polyplay_zrepp(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(input_changed);
-
-protected:
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
-
-private:
- INTERRUPT_GEN_MEMBER(nmi_handler);
-
- /* devices */
- DECLARE_WRITE_LINE_MEMBER(ctc_zc0_w);
- DECLARE_WRITE_LINE_MEMBER(ctc_zc1_w);
- DECLARE_WRITE_LINE_MEMBER(ctc_zc2_w);
-
- uint8_t pio_porta_r();
- void pio_porta_w(uint8_t data);
- uint8_t pio_portb_r();
- void pio_portb_w(uint8_t data);
-
- void polyplay_characterram_w(offs_t offset, uint8_t data);
- void polyplay_palette(palette_device &palette) const;
- uint32_t screen_update_polyplay(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void polyplay_io_zre(address_map &map);
- void polyplay_io_zrepp(address_map &map);
- void polyplay_mem_zre(address_map &map);
- void polyplay_mem_zrepp(address_map &map);
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_characterram;
-
- required_device<z80_device> m_maincpu;
- required_device<z80ctc_device> m_z80ctc;
- required_device<z80pio_device> m_z80pio;
- optional_device<z80sio_device> m_z80sio;
- required_ioport m_in0_port;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* audio */
- uint8_t m_flipflop1;
- uint8_t m_flipflop2;
- required_device<speaker_sound_device> m_speaker1;
- required_device<speaker_sound_device> m_speaker2;
- output_finder<4> m_lamps;
-};
-
-#endif // MAME_INCLUDES_POLYPLAY_H
diff --git a/src/mame/includes/poolshrk.h b/src/mame/includes/poolshrk.h
deleted file mode 100644
index 72a35aba359..00000000000
--- a/src/mame/includes/poolshrk.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-/*************************************************************************
-
- Atari Pool Shark hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_POOLSHRK_H
-#define MAME_INCLUDES_POOLSHRK_H
-
-#pragma once
-
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-
-class poolshrk_state : public driver_device
-{
-public:
- poolshrk_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_discrete(*this, "discrete"),
- m_playfield_ram(*this, "playfield_ram"),
- m_hpos_ram(*this, "hpos_ram"),
- m_vpos_ram(*this, "vpos_ram"),
- m_leds(*this, "led%u", 0U)
- { }
-
- void poolshrk(machine_config &config);
-
- void init_poolshrk();
-
-private:
- void da_latch_w(uint8_t data);
- void led_w(offs_t offset, uint8_t data);
- void watchdog_w(offs_t offset, uint8_t data);
- uint8_t input_r(offs_t offset);
- uint8_t irq_reset_r();
- void scratch_sound_w(offs_t offset, uint8_t data);
- void score_sound_w(uint8_t data);
- void click_sound_w(uint8_t data);
- void bump_sound_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- void poolshrk_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- virtual void video_start() override;
- void poolshrk_cpu_map(address_map &map);
- virtual void machine_start() override { m_leds.resolve(); }
-
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<discrete_device> m_discrete;
-
- required_shared_ptr<uint8_t> m_playfield_ram;
- required_shared_ptr<uint8_t> m_hpos_ram;
- required_shared_ptr<uint8_t> m_vpos_ram;
- output_finder<2> m_leds;
-
- tilemap_t* m_bg_tilemap;
- int m_da_latch;
-};
-
-
-/*----------- defined in audio/poolshrk.c -----------*/
-DISCRETE_SOUND_EXTERN( poolshrk_discrete );
-
-#endif // MAME_INCLUDES_POOLSHRK_H
diff --git a/src/mame/includes/pooyan.h b/src/mame/includes/pooyan.h
deleted file mode 100644
index 1fc02ab9c37..00000000000
--- a/src/mame/includes/pooyan.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Allard van der Bas
-#ifndef MAME_INCLUDES_POOYAN_H
-#define MAME_INCLUDES_POOYAN_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class pooyan_state : public driver_device
-{
-public:
- pooyan_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2")
- { }
-
- void pooyan(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_spriteram2;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* misc */
- uint8_t m_irq_enable;
-
- DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- void pooyan_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_POOYAN_H
diff --git a/src/mame/includes/popeye.h b/src/mame/includes/popeye.h
deleted file mode 100644
index 9bafc301776..00000000000
--- a/src/mame/includes/popeye.h
+++ /dev/null
@@ -1,161 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:smf, Nicola Salmoria, Couriersud
-// thanks-to: Marc Lafontaine
-#ifndef MAME_INCLUDES_POPEYE_H
-#define MAME_INCLUDES_POPEYE_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "sound/ay8910.h"
-#include "video/resnet.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-#include <array>
-
-class tnx1_state : public driver_device
-{
-public:
- tnx1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_aysnd(*this, "aysnd"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_dmasource(*this, "dmasource"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_color_prom(*this, "proms"),
- m_color_prom_spr(*this, "sprpal"),
- m_io_mconf(*this, "MCONF"),
- m_io_dsw1(*this, "DSW1"),
- m_background_scroll{0,0,0},
- m_fg_tilemap(nullptr),
- m_palette_bank(0),
- m_palette_bank_cache(0),
- m_prot0(0),
- m_prot1(0),
- m_prot_shift(0),
- m_dswbit(0),
- m_nmi_enabled(false),
- m_field(0)
- { }
-
- DECLARE_READ_LINE_MEMBER(dsw1_read);
- DECLARE_READ_LINE_MEMBER(pop_field_r);
-
- virtual void config(machine_config &config);
-
-protected:
- required_device<z80_device> m_maincpu;
- required_device<ay8910_device> m_aysnd;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_shared_ptr<uint8_t> m_dmasource;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_region_ptr<uint8_t> m_color_prom;
- required_region_ptr<uint8_t> m_color_prom_spr;
- required_ioport m_io_mconf;
- required_ioport m_io_dsw1;
-
- static const res_net_decode_info mb7051_decode_info;
- static const res_net_decode_info mb7052_decode_info;
- static const res_net_info txt_mb7051_net_info;
- static const res_net_info tnx1_bak_mb7051_net_info;
- static const res_net_info obj_mb7052_net_info;
- virtual const res_net_info bak_mb7051_net_info() { return tnx1_bak_mb7051_net_info; };
-
- std::unique_ptr<bitmap_ind16> m_sprite_bitmap;
- std::vector<uint8_t> m_sprite_ram;
- std::vector<uint8_t> m_background_ram;
- uint8_t m_background_scroll[3];
- tilemap_t *m_fg_tilemap;
- uint8_t m_palette_bank;
- uint8_t m_palette_bank_cache;
- uint8_t m_prot0;
- uint8_t m_prot1;
- uint8_t m_prot_shift;
- uint8_t m_dswbit;
- bool m_nmi_enabled;
- int m_field;
- std::array<bitmap_ind16, 2> m_bitmap; // bitmaps for fields
-
- virtual void refresh_w(offs_t offset, uint8_t data);
- uint8_t protection_r(offs_t offset);
- void protection_w(offs_t offset, uint8_t data);
- void popeye_videoram_w(offs_t offset, uint8_t data);
- void popeye_colorram_w(offs_t offset, uint8_t data);
- virtual void background_w(offs_t offset, uint8_t data);
- void popeye_portB_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void driver_start() override;
- virtual void video_start() override;
- virtual void tnx1_palette(palette_device &palette);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- virtual DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void update_palette();
- virtual void decrypt_rom();
- virtual void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_field(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void maincpu_common_map(address_map &map);
- virtual void maincpu_program_map(address_map &map);
- void maincpu_io_map(address_map &map);
-
- virtual bool bootleg_sprites() const { return false; }
-};
-
-class tpp1_state : public tnx1_state
-{
- using tnx1_state::tnx1_state;
-protected:
- virtual void tnx1_palette(palette_device &palette) override;
- virtual void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect) override;
-
- static const res_net_info tpp1_bak_mb7051_net_info;
- virtual const res_net_info bak_mb7051_net_info() override { return tpp1_bak_mb7051_net_info; };
-};
-
-class popeyebl_state : public tpp1_state
-{
- using tpp1_state::tpp1_state;
-public:
- virtual void config(machine_config& config) override;
-protected:
- virtual void decrypt_rom() override;
- virtual void maincpu_program_map(address_map &map) override;
- void decrypted_opcodes_map(address_map& map);
-
- virtual bool bootleg_sprites() const override { return true; }
-};
-
-class tpp2_state : public tpp1_state
-{
- using tpp1_state::tpp1_state;
-public:
- virtual void config(machine_config &config) override;
-protected:
- bool m_watchdog_enabled;
- uint8_t m_watchdog_counter;
-
- virtual void driver_start() override;
- virtual void refresh_w(offs_t offset, uint8_t data) override;
- virtual DECLARE_WRITE_LINE_MEMBER(screen_vblank) override;
- virtual void maincpu_program_map(address_map &map) override;
- virtual void decrypt_rom() override;
- virtual void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect) override;
- virtual void background_w(offs_t offset, uint8_t data) override;
-};
-
-class tpp2_noalu_state : public tpp2_state
-{
- using tpp2_state::tpp2_state;
-
-protected:
- virtual void maincpu_program_map(address_map &map) override;
-};
-
-#endif // MAME_INCLUDES_POPEYE_H
diff --git a/src/mame/includes/portrait.h b/src/mame/includes/portrait.h
deleted file mode 100644
index a9eee413f00..00000000000
--- a/src/mame/includes/portrait.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Steve Ellenoff, Pierpaolo Prazzoli
-#ifndef MAME_INCLUDES_PORTRAIT_H
-#define MAME_INCLUDES_PORTRAIT_H
-
-#pragma once
-
-#include "sound/tms5220.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class portrait_state : public driver_device
-{
-public:
- portrait_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_tms(*this, "tms")
- , m_bgvideoram(*this, "bgvideoram")
- , m_fgvideoram(*this, "fgvideoram")
- , m_spriteram(*this, "spriteram")
- , m_lamps(*this, "lamp%u", 0U)
- { }
-
- static constexpr feature_type unemulated_features() { return feature::CAMERA; }
-
- void portrait(machine_config &config);
-
-protected:
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
-
-private:
- void ctrl_w(uint8_t data);
- void positive_scroll_w(uint8_t data);
- void negative_scroll_w(uint8_t data);
- void bgvideo_write(offs_t offset, uint8_t data);
- void fgvideo_write(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- void portrait_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline void get_tile_info( tile_data &tileinfo, int tile_index, const uint8_t *source );
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void portrait_map(address_map &map);
- void portrait_sound_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<tms5200_device> m_tms;
-
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_spriteram;
- output_finder<2> m_lamps;
-
- int m_scroll;
- tilemap_t *m_foreground;
- tilemap_t *m_background;
-};
-
-#endif // MAME_INCLUDES_PORTRAIT_H
diff --git a/src/mame/includes/powerins.h b/src/mame/includes/powerins.h
deleted file mode 100644
index 418defd63c3..00000000000
--- a/src/mame/includes/powerins.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_POWERINS_H
-#define MAME_INCLUDES_POWERINS_H
-
-#include "includes/nmk16.h"
-#include "video/nmk16spr.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class powerins_state : public nmk16_state
-{
-public:
- powerins_state(const machine_config &mconfig, device_type type, const char *tag) :
- nmk16_state(mconfig, type, tag)
- { }
-
- void powerins(machine_config &config);
- void powerinsa(machine_config &config);
- void powerinsb(machine_config &config);
- void powerinsc(machine_config &config);
-
- void init_powerinsc();
-
-private:
- void powerinsa_okibank_w(u8 data);
- u8 powerinsb_fake_ym2203_r();
-
- DECLARE_MACHINE_START(powerinsa);
-
- TILE_GET_INFO_MEMBER(powerins_get_bg_tile_info);
-
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_powerinsa);
-
- virtual void video_start() override;
-
- void get_colour_6bit(u32 &colour, u32 &pri_mask);
- void get_flip_extcode(u16 attr, int &flipx, int &flipy, int &code);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void powerins_map(address_map &map);
- void powerins_sound_map(address_map &map);
- void powerinsa_map(address_map &map);
- void powerinsa_oki_map(address_map &map);
- void powerinsb_sound_io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_POWERINS_H
diff --git a/src/mame/includes/pp01.h b/src/mame/includes/pp01.h
deleted file mode 100644
index f3ca495edef..00000000000
--- a/src/mame/includes/pp01.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/pp01.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_PP01_H
-#define MAME_INCLUDES_PP01_H
-
-#pragma once
-
-#include "cpu/i8085/i8085.h"
-#include "machine/ram.h"
-#include "machine/i8251.h"
-#include "machine/pit8253.h"
-#include "machine/i8255.h"
-#include "sound/spkrdev.h"
-#include "imagedev/cassette.h"
-#include "machine/timer.h"
-#include "emupal.h"
-
-class pp01_state : public driver_device
-{
-public:
- pp01_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_pit(*this, "pit")
- , m_ppi1(*this, "ppi1")
- , m_ppi2(*this, "ppi2")
- , m_speaker(*this, "speaker")
- , m_ram(*this, RAM_TAG)
- , m_uart(*this, "uart")
- , m_cass(*this, "cassette")
- , m_bank(*this, "bank%d", 0U)
- , m_io_keyboard(*this, "LINE%d", 0U)
- { }
-
- void pp01(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- uint8_t m_video_scroll;
- uint8_t m_memory_block[16];
- uint8_t m_video_write_mode;
- uint8_t m_key_line;
- bool m_txe, m_txd, m_rts, m_casspol;
- u8 m_cass_data[4];
-
- void video_write_mode_w(uint8_t data);
- void video_r_1_w(offs_t offset, uint8_t data);
- void video_g_1_w(offs_t offset, uint8_t data);
- void video_b_1_w(offs_t offset, uint8_t data);
- void video_r_2_w(offs_t offset, uint8_t data);
- void video_g_2_w(offs_t offset, uint8_t data);
- void video_b_2_w(offs_t offset, uint8_t data);
- void mem_block_w(offs_t offset, uint8_t data);
- uint8_t mem_block_r(offs_t offset);
- TIMER_DEVICE_CALLBACK_MEMBER(kansas_r);
- void pp01_palette(palette_device &palette) const;
- uint32_t screen_update_pp01(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(z2_w);
- uint8_t ppi1_porta_r();
- void ppi1_porta_w(uint8_t data);
- uint8_t ppi1_portb_r();
- void ppi1_portb_w(uint8_t data);
- void ppi1_portc_w(uint8_t data);
- uint8_t ppi1_portc_r();
- void video_w(uint8_t block,uint16_t offset,uint8_t data,uint8_t part);
- void set_memory(uint8_t block, uint8_t data);
- void io_map(address_map &map);
- void mem_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<pit8253_device> m_pit;
- required_device<i8255_device> m_ppi1;
- required_device<i8255_device> m_ppi2;
- required_device<speaker_sound_device> m_speaker;
- required_device<ram_device> m_ram;
- required_device<i8251_device> m_uart;
- required_device<cassette_image_device> m_cass;
- required_memory_bank_array<16> m_bank;
- required_ioport_array<17> m_io_keyboard;
-};
-
-#endif // MAME_INCLUDES_PP01_H
diff --git a/src/mame/includes/prehisle.h b/src/mame/includes/prehisle.h
deleted file mode 100644
index efae38f0d00..00000000000
--- a/src/mame/includes/prehisle.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_PREHISLE_H
-#define MAME_INCLUDES_PREHISLE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/upd7759.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class prehisle_state : public driver_device
-{
-public:
- prehisle_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_tx_vram(*this, "tx_vram"),
- m_spriteram(*this, "spriteram"),
- m_fg_vram(*this, "fg_vram"),
- m_tilemap_rom(*this, "bgtilemap"),
- m_io_p1(*this, "P1"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_upd7759(*this, "upd"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void prehisle(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- void soundcmd_w(u16 data);
- void fg_vram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tx_vram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void fg_scrolly_w(offs_t offset, u16 data, u16 mem_mask);
- void fg_scrollx_w(offs_t offset, u16 data, u16 mem_mask);
- void bg_scrolly_w(offs_t offset, u16 data, u16 mem_mask);
- void bg_scrollx_w(offs_t offset, u16 data, u16 mem_mask);
- void upd_port_w(u8 data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void prehisle_map(address_map &map);
- void prehisle_sound_io_map(address_map &map);
- void prehisle_sound_map(address_map &map);
-
- required_shared_ptr<uint16_t> m_tx_vram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_fg_vram;
- required_region_ptr<uint8_t> m_tilemap_rom;
-
- required_ioport m_io_p1;
- uint8_t m_invert_controls;
- uint16_t m_bg_scrollx;
- uint16_t m_bg_scrolly;
- uint16_t m_fg_scrollx;
- uint16_t m_fg_scrolly;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<upd7759_device> m_upd7759;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-};
-
-#endif // MAME_INCLUDES_PREHISLE_H
diff --git a/src/mame/includes/primo.h b/src/mame/includes/primo.h
deleted file mode 100644
index 127e492b1bd..00000000000
--- a/src/mame/includes/primo.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Krzysztof Strzecha
-/*****************************************************************************
- *
- * includes/primo.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_PRIMO_H
-#define MAME_INCLUDES_PRIMO_H
-
-#pragma once
-
-#include "imagedev/snapquik.h"
-#include "imagedev/cassette.h"
-#include "sound/spkrdev.h"
-#include "screen.h"
-
-#include "bus/cbmiec/cbmiec.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-class primo_state : public driver_device
-{
-public:
- primo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_iec(*this, CBM_IEC_TAG)
- , m_speaker(*this, "speaker")
- , m_cassette(*this, "cassette")
- , m_cart1(*this, "cartslot1")
- , m_cart2(*this, "cartslot2")
- , m_screen(*this, "screen")
- , m_mem_exp_port(*this, "MEMORY_EXPANSION")
- , m_clock_port(*this, "CPU_CLOCK")
- , m_keyboard_port(*this, "IN%u", 0U)
- , m_reset_port(*this, "RESET")
- , m_vram(*this, "videoram")
- { }
-
- void init_primo();
-
- void primob32(machine_config &config);
- void primob64(machine_config &config);
- void primoa32(machine_config &config);
- void primob48(machine_config &config);
- void primoa64(machine_config &config);
- void primoc64(machine_config &config);
- void primoa48(machine_config &config);
-
-private:
- uint8_t be_1_r(offs_t offset);
- uint8_t be_2_r();
- void ki_1_w(uint8_t data);
- void ki_2_w(uint8_t data);
- void FD_w(uint8_t data);
- void machine_reset() override;
- void machine_start() override;
- DECLARE_MACHINE_RESET(primob);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void update_memory();
- void common_machine_init();
- void setup_pss(uint8_t* snapshot_data, uint32_t snapshot_size);
- void setup_pp(uint8_t* quickload_data, uint32_t quickload_size);
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- void primo32_mem(address_map &map);
- void primo48_mem(address_map &map);
- void primo64_mem(address_map &map);
- void primoa_io(address_map &map);
- void primob_io(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<cbm_iec_device> m_iec;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_device<generic_slot_device> m_cart1;
- required_device<generic_slot_device> m_cart2;
- required_device<screen_device> m_screen;
- required_ioport m_mem_exp_port;
- required_ioport m_clock_port;
- required_ioport_array<4> m_keyboard_port;
- required_ioport m_reset_port;
- required_shared_ptr<uint8_t> m_vram;
-
- memory_region *m_cart1_rom;
- memory_region *m_cart2_rom;
-
- uint16_t m_video_memory_base;
- uint8_t m_port_FD;
- int m_nmi;
-};
-
-
-#endif // MAME_INCLUDES_PRIMO_H
diff --git a/src/mame/includes/prof180x.h b/src/mame/includes/prof180x.h
deleted file mode 100644
index 49bf15f041b..00000000000
--- a/src/mame/includes/prof180x.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_PROF180X_H
-#define MAME_INCLUDES_PROF180X_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-
-#define HD64180_TAG "hd64180"
-#define FDC9268_TAG "fdc9268"
-#define FDC9229_TAG "fdc9229"
-#define MK3835_TAG "mk3835"
-#define SCREEN_TAG "screen"
-#define CENTRONICS_TAG "centronics"
-
-class prof180x_state : public driver_device
-{
-public:
- prof180x_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_centronics(*this, CENTRONICS_TAG)
- {
- }
-
- void prof180x(machine_config &config);
-
-private:
- required_device<centronics_device> m_centronics;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
-
- uint8_t status0_r();
- uint8_t status1_r();
- uint8_t status_r(offs_t offset);
-
- DECLARE_WRITE_LINE_MEMBER(c0_flag_w);
- DECLARE_WRITE_LINE_MEMBER(c1_flag_w);
- DECLARE_WRITE_LINE_MEMBER(c2_flag_w);
- DECLARE_WRITE_LINE_MEMBER(mini_flag_w);
- DECLARE_WRITE_LINE_MEMBER(mm0_flag_w);
- DECLARE_WRITE_LINE_MEMBER(rtc_ce_w);
- DECLARE_WRITE_LINE_MEMBER(peps_flag_w);
- DECLARE_WRITE_LINE_MEMBER(mm1_flag_w);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- int m_c0;
- int m_c1;
- int m_c2;
- int m_mm0;
- int m_mm1;
- void prof180x_io(address_map &map);
- void prof180x_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PROF180X_H
diff --git a/src/mame/includes/prof80.h b/src/mame/includes/prof80.h
deleted file mode 100644
index 08d89ec8f30..00000000000
--- a/src/mame/includes/prof80.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_PROF80_H
-#define MAME_INCLUDES_PROF80_H
-
-#pragma once
-
-#include "bus/ecbbus/ecbbus.h"
-#include "bus/rs232/rs232.h"
-#include "cpu/z80/z80.h"
-#include "imagedev/floppy.h"
-#include "machine/z80daisy.h"
-#include "machine/prof80mmu.h"
-#include "machine/74259.h"
-#include "machine/ram.h"
-#include "machine/rescap.h"
-#include "machine/upd1990a.h"
-#include "machine/upd765.h"
-
-#define Z80_TAG "z1"
-#define UPD765_TAG "z38"
-#define UPD1990A_TAG "z43"
-
-// ------------------------------------------------------------------------
-
-#define UNIO_Z80STI_TAG "z5"
-#define UNIO_Z80SIO_TAG "z15"
-#define UNIO_Z80PIO_TAG "z13"
-#define UNIO_CENTRONICS1_TAG "n3"
-#define UNIO_CENTRONICS2_TAG "n4"
-
-class prof80_state : public driver_device
-{
-public:
- prof80_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, Z80_TAG)
- , m_mmu(*this, "mmu")
- , m_rtc(*this, UPD1990A_TAG)
- , m_fdc(*this, UPD765_TAG)
- , m_ram(*this, RAM_TAG)
- , m_floppy(*this, UPD765_TAG":%u", 0U)
- , m_ecb(*this, "ecbbus")
- , m_rs232a(*this, "rs232a")
- , m_rs232b(*this, "rs232b")
- , m_flra(*this, "z44")
- , m_flrb(*this, "z45")
- , m_rom(*this, Z80_TAG)
- , m_j4(*this, "J4")
- , m_j5(*this, "J5")
- { }
-
- void prof80(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<prof80_mmu_device> m_mmu;
- required_device<upd1990a_device> m_rtc;
- required_device<upd765a_device> m_fdc;
- required_device<ram_device> m_ram;
- required_device_array<floppy_connector, 2> m_floppy;
- required_device<ecbbus_device> m_ecb;
- required_device<rs232_port_device> m_rs232a;
- required_device<rs232_port_device> m_rs232b;
- required_device<ls259_device> m_flra;
- required_device<ls259_device> m_flrb;
- required_memory_region m_rom;
- required_ioport m_j4;
- required_ioport m_j5;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
-
- enum
- {
- TIMER_ID_MOTOR
- };
-
- void flr_w(uint8_t data);
- uint8_t status_r();
- uint8_t status2_r();
-
- void motor(int mon);
-
- DECLARE_WRITE_LINE_MEMBER(ready_w);
- DECLARE_WRITE_LINE_MEMBER(inuse_w);
- DECLARE_WRITE_LINE_MEMBER(motor_w);
- DECLARE_WRITE_LINE_MEMBER(select_w);
- DECLARE_WRITE_LINE_MEMBER(mini_w);
- DECLARE_WRITE_LINE_MEMBER(mstop_w);
-
- // floppy state
- int m_motor;
- int m_ready;
- int m_select;
-
- // timers
- emu_timer *m_floppy_motor_off_timer;
-
- void prof80_io(address_map &map);
- void prof80_mem(address_map &map);
- void prof80_mmu(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/psikyo.h b/src/mame/includes/psikyo.h
deleted file mode 100644
index 7be06388107..00000000000
--- a/src/mame/includes/psikyo.h
+++ /dev/null
@@ -1,170 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia,Olivier Galibert,Paul Priest
-/*************************************************************************
-
- Psikyo Games
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_PSIKYO_H
-#define MAME_INCLUDES_PSIKYO_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "video/bufsprite.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#include <algorithm>
-
-class psikyo_state : public driver_device
-{
-public:
- psikyo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_vram(*this, "vram_%u", 0U, 0x2000U, ENDIANNESS_BIG)
- , m_vregs(*this, "vregs")
- , m_bootleg_spritebuffer(*this, "boot_spritebuf")
- , m_spritelut(*this, "spritelut")
- , m_audiobank(*this, "audiobank")
- , m_okibank(*this, "okibank")
- , m_in_dsw(*this, "DSW")
- , m_in_p1_p2(*this, "P1_P2")
- , m_in_coin(*this, "COIN")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_oki(*this, "oki")
- , m_soundlatch(*this, "soundlatch")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_spriteram(*this, "spriteram")
- {
- std::fill(std::begin(m_old_linescroll), std::end(m_old_linescroll), ~u32(0));
- std::fill(std::begin(m_old_tmapsize), std::end(m_old_tmapsize), ~u32(0));
- std::fill(std::begin(m_tmapsize), std::end(m_tmapsize), ~u32(0));
- }
-
- void sngkace(machine_config &config);
- void s1945n(machine_config &config);
- void gunbird(machine_config &config);
- void s1945(machine_config &config);
- void s1945bl(machine_config &config);
-
- void init_s1945a();
- void init_s1945j();
- void init_sngkace();
- void init_s1945();
- void init_s1945bl();
- void init_tengai();
- void init_gunbird();
-
- DECLARE_READ_LINE_MEMBER(z80_nmi_r);
- DECLARE_READ_LINE_MEMBER(mcu_status_r);
-
-private:
- /* memory pointers */
- memory_share_array_creator<u16, 2> m_vram;
- required_shared_ptr<u32> m_vregs;
- optional_shared_ptr<u32> m_bootleg_spritebuffer;
-
- required_region_ptr<u16> m_spritelut;
- optional_memory_bank m_audiobank;
- optional_memory_bank m_okibank;
- optional_ioport m_in_dsw;
- optional_ioport m_in_p1_p2;
- optional_ioport m_in_coin;
-
- /* video-related */
- struct sprite_t
- {
- u8 gfx;
- u32 code,color;
- bool flipx,flipy;
- s32 x,y;
- u32 zoomx,zoomy;
- u32 primask;
- };
-
- tilemap_t *m_tilemap[2];
- u8 m_tilemap_bank[2];
- bool m_ka302c_banking;
- u32 m_old_linescroll[2];
- u32 m_old_tmapsize[2];
- u32 m_tmapsize[2];
- std::unique_ptr<sprite_t[]> m_spritelist;
- struct sprite_t *m_sprite_ptr_pre;
- u16 m_sprite_ctrl;
-
- /* game-specific */
- // 1945 MCU
- int m_mcu_status;
- u8 m_s1945_mcu_direction;
- u8 m_s1945_mcu_latch1;
- u8 m_s1945_mcu_latch2;
- u8 m_s1945_mcu_inlatch;
- u8 m_s1945_mcu_index;
- u8 m_s1945_mcu_latching;
- u8 m_s1945_mcu_mode;
- u8 m_s1945_mcu_control;
- u8 m_s1945_mcu_bctrl;
- const u8 *m_s1945_mcu_table;
-
- u32 sngkace_input_r(offs_t offset);
- u32 gunbird_input_r(offs_t offset);
- void s1945_mcu_data_w(uint8_t data);
- void s1945_mcu_control_w(uint8_t data);
- void s1945_mcu_direction_w(uint8_t data);
- void s1945_mcu_bctrl_w(uint8_t data);
- void s1945_mcu_command_w(uint8_t data);
- u32 s1945_mcu_data_r();
- uint8_t s1945_mcu_control_r();
- u32 s1945_input_r(offs_t offset);
- void s1945bl_okibank_w(u8 data);
- template<int Shift> void sound_bankswitch_w(u8 data);
- template<int Layer> u16 vram_r(offs_t offset);
- template<int Layer> void vram_w(offs_t offset, u16 data, u16 mem_mask);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- template<int Layer> TILEMAP_MAPPER_MEMBER(tile_scan);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- DECLARE_VIDEO_START(sngkace);
- DECLARE_VIDEO_START(psikyo);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_bootleg(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_bootleg);
- void switch_bgbanks(u8 tmap, u8 bank);
- void draw_sprites(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void get_sprites();
- void get_sprites_bootleg();
- void s1945_mcu_init();
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<okim6295_device> m_oki;
- optional_device<generic_latch_8_device> m_soundlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram32_device> m_spriteram;
-
- void gunbird_map(address_map &map);
- void gunbird_sound_io_map(address_map &map);
- void gunbird_sound_map(address_map &map);
- void psikyo_bootleg_map(address_map &map);
- void psikyo_map(address_map &map);
- void s1945_map(address_map &map);
- void s1945_sound_io_map(address_map &map);
- void s1945bl_oki_map(address_map &map);
- void s1945n_map(address_map &map);
- void sngkace_map(address_map &map);
- void sngkace_sound_io_map(address_map &map);
- void sngkace_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PSIKYO_H
diff --git a/src/mame/includes/psikyo4.h b/src/mame/includes/psikyo4.h
deleted file mode 100644
index 844535f953a..00000000000
--- a/src/mame/includes/psikyo4.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Paul Priest
-/*************************************************************************
-
- Psikyo PS6807 (PS4)
-
-*************************************************************************/
-
-#include "cpu/sh/sh2.h"
-#include "sound/ymf278b.h"
-#include "machine/eepromser.h"
-#include "emupal.h"
-#include "screen.h"
-
-class psikyo4_state : public driver_device
-{
-public:
- psikyo4_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_vidregs(*this, "vidregs"),
- m_bgpen(*this, "bgpen_%u", 1U),
- m_paletteram(*this, "paletteram"),
- m_gfxbank(*this, "gfxbank"),
- m_ymf_bank(*this, "ymfbank%u", 0),
- m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, {"lpalette", "rpalette"}),
- m_lscreen(*this, "lscreen"),
- m_rscreen(*this, "rscreen"),
- m_system(*this, "SYSTEM"),
- m_keys(*this, "KEY.%u", 0)
- { }
-
- void ps4big(machine_config &config);
- void ps4small(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(system_r);
- template <int P> DECLARE_CUSTOM_INPUT_MEMBER(mahjong_ctrl_r);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint32_t> m_spriteram;
- required_shared_ptr<uint32_t> m_vidregs;
- required_shared_ptr_array<uint32_t, 2> m_bgpen;
- required_shared_ptr<uint32_t> m_paletteram;
-
- required_memory_bank m_gfxbank;
- required_memory_bank_array<4> m_ymf_bank;
-
- uint16_t m_gfx_max_bank;
- uint8_t m_ymf_max_bank;
- uint8_t m_io_select;
-
- /* video-related */
- double m_oldbrt[2];
-
- /* devices */
- required_device<sh2_device> m_maincpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device_array<palette_device, 2> m_palette;
- required_device<screen_device> m_lscreen;
- required_device<screen_device> m_rscreen;
- optional_ioport m_system;
- optional_ioport_array<8> m_keys;
-
- void paletteram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- template<int Screen> void bgpen_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- template<int Screen> void screen_brt_w(uint8_t data);
- void vidregs_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void ymf_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void io_select_w(uint8_t data);
- void eeprom_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- template<int Screen> uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(interrupt);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, uint32_t scr);
- void ps4_map(address_map &map);
- void ps4_ymf_map(address_map &map);
-};
diff --git a/src/mame/includes/psikyosh.h b/src/mame/includes/psikyosh.h
deleted file mode 100644
index 06b908bf0d4..00000000000
--- a/src/mame/includes/psikyosh.h
+++ /dev/null
@@ -1,129 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Paul Priest
-#ifndef MAME_INCLUDES_PSIKYOSH_H
-#define MAME_INCLUDES_PSIKYOSH_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "cpu/sh/sh2.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-#define MASTER_CLOCK 57272700 // main oscillator frequency
-
-/* Psikyo PS6406B */
-
-
-
-class psikyosh_state : public driver_device
-{
-public:
- psikyosh_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_zoomram(*this, "zoomram"),
- m_vidregs(*this, "vidregs"),
- m_ram(*this, "ram"),
- m_gfxrombank(*this, "gfxbank"),
- m_controller_io(*this, "CONTROLLER"),
- m_inputs(*this, "INPUTS"),
- m_mahjong_io(*this, "MAHJONG"),
- m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void psikyo3v1(machine_config &config);
- void psikyo5(machine_config &config);
- void psikyo5_mahjong(machine_config &config);
- void psikyo5_240(machine_config &config);
-
- void init_ps3();
- void init_ps5();
-
-private:
- /* memory pointers */
- required_shared_ptr<u32> m_spriteram;
- required_shared_ptr<u32> m_zoomram;
- required_shared_ptr<u32> m_vidregs;
- required_shared_ptr<u32> m_ram;
-
- required_memory_bank m_gfxrombank;
-
- optional_ioport m_controller_io;
- optional_ioport m_inputs;
- optional_ioport m_mahjong_io;
-
- /* video-related */
- struct sprite_t
- {
- s32 ypos, xpos;
- u8 high, wide;
- u8 flpy, flpx;
- u8 spr_pri, bg_pri;
- u8 zoomy, zoomx;
- u32 tnum;
- u16 colr;
- u8 dpth;
- s16 alpha;
- };
-
- bitmap_ind8 m_zoom_bitmap;
- bitmap_ind16 m_z_bitmap;
- bitmap_rgb32 m_bg_bitmap;
- std::unique_ptr<u16[]> m_bg_zoom;
- std::unique_ptr<u8[]> m_alphatable;
- std::unique_ptr<struct sprite_t []> m_spritelist;
- const struct sprite_t *m_sprite_end;
-
- /* devices */
- required_device<sh2_device> m_maincpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- bool const FLIPSCREEN() { return ((m_vidregs[3] & 0x0000c000) == 0x0000c000); } // currently ignored
-
- bool const BG_LARGE(u8 const n) { return ((m_vidregs[7] << (4 * n)) & 0x00001000); }
- bool const BG_DEPTH_8BPP(u8 const n) { return ((m_vidregs[7] << (4 * n)) & 0x00004000); }
- bool const BG_LAYER_ENABLE(u8 const n) { return ((m_vidregs[7] << (4 * n)) & 0x00008000); }
-
- u8 const BG_TYPE(u8 const n) { return ((m_vidregs[6] << (8 * n)) & 0x7f000000) >> 24; }
- bool const BG_LINE(u8 const n) { return ((m_vidregs[6] << (8 * n)) & 0x80000000); }
-
- u8 const SPRITE_PRI(u8 const n) { return ((m_vidregs[2] << (4 * n)) & 0xf0000000) >> 28; }
-
- void irqctrl_w(u32 data);
- void vidregs_w(offs_t offset, u32 data, u32 mem_mask);
- u32 mjgtaste_input_r();
- void eeprom_w(u8 data);
- virtual void machine_start() override;
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- INTERRUPT_GEN_MEMBER(interrupt);
- void draw_scanline32_alpha(bitmap_rgb32 &bitmap, s32 destx, s32 desty, s32 length, const u32 *srcptr, int alpha);
- void draw_scanline32_argb(bitmap_rgb32 &bitmap, s32 destx, s32 desty, s32 length, const u32 *srcptr);
- void draw_scanline32_transpen(bitmap_rgb32 &bitmap, s32 destx, s32 desty, s32 length, const u32 *srcptr);
- void draw_bglayer(u8 const layer, bitmap_rgb32 &bitmap, const rectangle &cliprect, u8 const req_pri);
- void cache_bitmap(s16 const scanline, gfx_element *gfx, u8 const size, u8 const tilebank, s16 const alpha, u8 *last_bank);
- void draw_bglayerscroll(u8 const layer, bitmap_rgb32 &bitmap, const rectangle &cliprect, u8 const req_pri);
- void draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect, u8 const req_pri);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, u8 const req_pri);
- void get_sprites();
- void prelineblend(bitmap_rgb32 &bitmap, const rectangle &cliprect );
- void postlineblend(bitmap_rgb32 &bitmap, const rectangle &cliprect, u8 const req_pri);
- void psikyosh_drawgfxzoom(bitmap_rgb32 &dest_bmp, const rectangle &clip, gfx_element *gfx,
- u32 const code, u16 const color, u8 const flipx, u8 const flipy, s32 const offsx, s32 const offsy,
- s16 const alpha, u32 const zoomx, u32 const zoomy, u8 const wide, u8 const high, u16 const z);
- void ps3v1_map(address_map &map);
- void ps5_map(address_map &map);
- void ps5_mahjong_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PSIKYOSH_H
diff --git a/src/mame/includes/psion.h b/src/mame/includes/psion.h
deleted file mode 100644
index 02997271111..00000000000
--- a/src/mame/includes/psion.h
+++ /dev/null
@@ -1,126 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sandro Ronco
-/***************************************************************************
-
- Psion Organiser II series
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_PSION_H
-#define MAME_INCLUDES_PSION_H
-
-#pragma once
-
-#include "cpu/m6800/m6801.h"
-#include "machine/nvram.h"
-#include "machine/psion_pack.h"
-#include "machine/timer.h"
-#include "video/hd44780.h"
-#include "sound/beep.h"
-#include "emupal.h"
-
-
-// ======================> psion_state
-
-class psion_state : public driver_device
-{
-public:
- psion_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_lcdc(*this, "hd44780")
- , m_beep(*this, "beeper")
- , m_pack1(*this, "pack1")
- , m_pack2(*this, "pack2")
- , m_nvram1(*this, "nvram1")
- , m_nvram2(*this, "nvram2")
- , m_nvram3(*this, "nvram3")
- , m_sys_register(*this, "sys_register")
- , m_stby_pwr(1)
- , m_ram(*this, "ram")
- , m_kb_lines(*this, "K%u", 1U)
- { }
-
- void psion_2lines(machine_config &config);
- void psion_4lines(machine_config &config);
- void psionlam(machine_config &config);
- void psioncm(machine_config &config);
- void psionlz(machine_config &config);
- void psionla(machine_config &config);
- void psionp350(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(psion_on);
-
-protected:
- required_device<hd6301x_cpu_device> m_maincpu;
- required_device<hd44780_device> m_lcdc;
- required_device<beep_device> m_beep;
- required_device<datapack_device> m_pack1;
- required_device<datapack_device> m_pack2;
- required_device<nvram_device> m_nvram1;
- required_device<nvram_device> m_nvram2;
- optional_device<nvram_device> m_nvram3;
-
- uint16_t m_kb_counter;
- uint8_t m_enable_nmi;
- optional_shared_ptr<uint8_t> m_sys_register;
- uint8_t m_stby_pwr;
- uint8_t m_pulse;
-
- // RAM/ROM banks
- required_shared_ptr<uint8_t> m_ram;
- std::unique_ptr<uint8_t[]> m_paged_ram;
- uint8_t m_rom_bank;
- uint8_t m_ram_bank;
- uint8_t m_ram_bank_count;
- uint8_t m_rom_bank_count;
-
- required_ioport_array<7> m_kb_lines;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void nvram_init(nvram_device &nvram, void *data, size_t size);
-
- uint8_t kb_read();
- void update_banks();
- void port2_w(offs_t offset, uint8_t data, uint8_t ddr);
- uint8_t port2_r();
- uint8_t port5_r();
- void port6_w(uint8_t data);
- uint8_t port6_r();
- void io_rw(uint16_t offset);
- void io_w(offs_t offset, uint8_t data);
- uint8_t io_r(offs_t offset);
- void psion_palette(palette_device &palette) const;
- TIMER_DEVICE_CALLBACK_MEMBER(nmi_timer);
-
- HD44780_PIXEL_UPDATE(lz_pixel_update);
- void psion_int_reg(address_map &map);
- void psioncm_mem(address_map &map);
- void psionla_mem(address_map &map);
- void psionlam_mem(address_map &map);
- void psionlz_mem(address_map &map);
- void psionp350_mem(address_map &map);
-};
-
-
-class psion1_state : public psion_state
-{
-public:
- psion1_state(const machine_config &mconfig, device_type type, const char *tag)
- : psion_state(mconfig, type, tag)
- { }
-
- void psion1(machine_config &config);
-
-private:
- virtual void machine_reset() override;
-
- uint8_t reset_kb_counter_r();
- uint8_t inc_kb_counter_r();
- uint8_t switchoff_r();
-
- HD44780_PIXEL_UPDATE(psion1_pixel_update);
- void psion1_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PSION_H
diff --git a/src/mame/includes/psion5.h b/src/mame/includes/psion5.h
deleted file mode 100644
index 0427b7c31d5..00000000000
--- a/src/mame/includes/psion5.h
+++ /dev/null
@@ -1,219 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz, Ash Wolf
-/***************************************************************************
-
- Psion 5mx (EPOC R5) series and peripherals
-
- Skeleton driver by Ryan Holtz, ported from work by Ash Wolf
-
-****************************************************************************/
-
-#ifndef MAME_INCLUDES_PSION5_H
-#define MAME_INCLUDES_PSION5_H
-
-#pragma once
-
-#include "emu.h"
-#include "cpu/arm7/arm7.h"
-#include "cpu/arm7/arm7core.h"
-#include "machine/etna.h"
-#include "sound/spkrdev.h"
-
-#include "screen.h"
-#include "emupal.h"
-#include "speaker.h"
-
-class psion5mx_state : public driver_device
-{
-public:
- psion5mx_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_etna(*this, "etna")
- , m_lcd_ram(*this, "lcd_ram")
- , m_palette(*this, "palette")
- , m_speaker(*this, "speaker")
- , m_touchx(*this, "TOUCHX")
- , m_touchy(*this, "TOUCHY")
- , m_touch(*this, "TOUCH")
- , m_kbd_cols(*this, "COL%u", 0U)
- {
- }
-
- void psion5mx(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(touch_down);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- void palette_init(palette_device &palette);
-
- uint32_t periphs_r(offs_t offset, uint32_t mem_mask = ~0);
- void periphs_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- void update_timer(int timer);
- void set_timer_ctrl(int timer, uint32_t value);
- void check_interrupts();
-
- static constexpr device_timer_id TID_TIMER1 = 0;
- static constexpr device_timer_id TID_TIMER2 = 1;
- static constexpr device_timer_id TID_PERIODIC = 2;
- static constexpr device_timer_id TID_RTC_TICKER = 3;
-
- enum
- {
- REG_MEMCFG1 = 0x0000,
- REG_MEMCFG2 = 0x0004,
-
- REG_DRAMCFG = 0x0100,
-
- REG_LCDCTL = 0x0200,
- REG_LCDST = 0x0204,
- REG_LCD_DBAR1 = 0x0210,
- REG_LCDT0 = 0x0220,
- REG_LCDT1 = 0x0224,
- REG_LCDT2 = 0x0228,
-
- REG_PWRSR = 0x0400,
- REG_PWRCNT = 0x0404,
- REG_HALT = 0x0408,
- REG_STBY = 0x040c,
- REG_BLEOI = 0x0410,
- REG_MCEOI = 0x0414,
- REG_TEOI = 0x0418,
- REG_STFCLR = 0x041c,
- REG_E2EOI = 0x0420,
-
- REG_INTSR = 0x0500,
- REG_INTRSR = 0x0504,
- REG_INTENS = 0x0508,
- REG_INTENC = 0x050c,
- REG_INTTEST1 = 0x0514,
- REG_INTTEST2 = 0x0518,
-
- REG_PUMPCON = 0x0900,
-
- REG_CODR = 0x0a00,
- REG_CONFG = 0x0a04,
- REG_COLFG = 0x0a08,
- REG_COEOI = 0x0a0c,
- REG_COTEST = 0x0a10,
-
- REG_SSCR0 = 0x0b00,
- REG_SSCR1 = 0x0b04,
- REG_SSDR = 0x0b0c,
- REG_SSSR = 0x0b14,
-
- REG_TC1LOAD = 0x0c00,
- REG_TC1VAL = 0x0c04,
- REG_TC1CTRL = 0x0c08,
- REG_TC1EOI = 0x0c0c,
- REG_TC2LOAD = 0x0c20,
- REG_TC2VAL = 0x0c24,
- REG_TC2CTRL = 0x0c28,
- REG_TC2EOI = 0x0c2c,
-
- REG_BZCONT = 0x0c40,
-
- REG_RTCDRL = 0x0d00,
- REG_RTCDRU = 0x0d04,
- REG_RTCMRL = 0x0d08,
- REG_RTCMRU = 0x0d0c,
- REG_RTCEOI = 0x0d10,
-
- REG_PADR = 0x0e00,
- REG_PBDR = 0x0e04,
- REG_PCDR = 0x0e08,
- REG_PDDR = 0x0e0c,
- REG_PADDR = 0x0e10,
- REG_PBDDR = 0x0e14,
- REG_PCDDR = 0x0e18,
- REG_PDDDR = 0x0e1c,
- REG_PEDR = 0x0e20,
- REG_PEDDR = 0x0e24,
-
- REG_KSCAN = 0x0e28,
- REG_LCDMUX = 0x0e2c
- };
-
- enum
- {
- IRQ_EXTFIQ = 0, // FiqExternal
- IRQ_BLINT = 1, // FiqBatLow
- IRQ_WEINT = 2, // FiqWatchDog
- IRQ_MCINT = 3, // FiqMediaChg
- IRQ_CSINT = 4, // IrqCodec
- IRQ_EINT1 = 5, // IrqExt1
- IRQ_EINT2 = 6, // IrqExt2
- IRQ_EINT3 = 7, // IrqExt3
- IRQ_TC1OI = 8, // IrqTimer1
- IRQ_TC2OI = 9, // IrqTimer2
- IRQ_RTCMI = 10, // IrqRtcMatch
- IRQ_TINT = 11, // IrqTick
- IRQ_UART1 = 12, // IrqUart1
- IRQ_UART2 = 13, // IrqUart2
- IRQ_LCDINT = 14, // IrqLcd
- IRQ_SSEOTI = 15, // IrqSpi
- IRQ_FIQ_MASK = 0x000f,
- IRQ_IRQ_MASK = 0xfff0
- };
-
- enum
- {
- PORTA,
- PORTB,
- PORTC,
- PORTD,
- PORTE
- };
-
- void main_map(address_map &map);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t read_keyboard();
-
- required_device<arm710t_cpu_device> m_maincpu;
- required_device<etna_device> m_etna;
- required_shared_ptr<uint32_t> m_lcd_ram;
- required_device<palette_device> m_palette;
- required_device<speaker_sound_device> m_speaker;
- required_ioport m_touchx;
- required_ioport m_touchy;
- required_ioport m_touch;
- required_ioport_array<8> m_kbd_cols;
-
- emu_timer *m_timers[2];
-
- uint32_t m_memcfg[2];
- uint16_t m_dramcfg;
-
- uint16_t m_timer_reload[2];
- uint16_t m_timer_ctrl[2];
- uint16_t m_timer_value[2];
-
- uint32_t m_pending_ints;
- uint32_t m_int_mask;
-
- uint32_t m_lcd_display_base_addr;
-
- uint32_t m_rtc;
- uint32_t m_pwrsr;
- uint32_t m_last_ssi_request;
- uint32_t m_ssi_read_counter;
- uint8_t m_buzzer_ctrl;
-
- uint8_t m_kbd_scan;
-
- uint8_t m_ports[5];
-
- emu_timer *m_periodic;
- emu_timer *m_rtc_ticker;
-};
-
-#endif // MAME_INCLUDES_PSION5_H
diff --git a/src/mame/includes/psychic5.h b/src/mame/includes/psychic5.h
deleted file mode 100644
index 992a8d29ccf..00000000000
--- a/src/mame/includes/psychic5.h
+++ /dev/null
@@ -1,109 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Jarek Parchanski
-
-#include "machine/bankdev.h"
-#include "machine/timer.h"
-#include "video/jalblend.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class psychic5_state : public driver_device
-{
-public:
- psychic5_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_vrambank(*this, "vrambank"),
- m_blend(*this, "blend"),
- m_spriteram(*this, "spriteram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_bg_control(*this, "bg_control"),
- m_ps5_palette_ram_bg(*this, "palette_ram_bg"),
- m_ps5_palette_ram_sp(*this, "palette_ram_sp"),
- m_ps5_palette_ram_tx(*this, "palette_ram_tx")
-
- { }
-
- void psychic5(machine_config &config);
- void bombsa(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<address_map_bank_device> m_vrambank;
- optional_device<jaleco_blend_device> m_blend;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_bg_control;
- required_shared_ptr<uint8_t> m_ps5_palette_ram_bg;
- required_shared_ptr<uint8_t> m_ps5_palette_ram_sp;
- required_shared_ptr<uint8_t> m_ps5_palette_ram_tx;
-
- uint8_t m_bank_latch;
- uint8_t m_ps5_vram_page;
- uint8_t m_bg_clip_mode;
- uint8_t m_title_screen;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint16_t m_palette_intensity;
- uint8_t m_bombsa_unknown;
- int m_sx1;
- int m_sy1;
- int m_sy2;
-
- uint8_t bankselect_r();
- uint8_t vram_page_select_r();
- void vram_page_select_w(uint8_t data);
- void fg_videoram_w(offs_t offset, uint8_t data);
- void bg_videoram_w(offs_t offset, uint8_t data);
- void sprite_col_w(offs_t offset, uint8_t data);
- void bg_col_w(offs_t offset, uint8_t data);
- void tx_col_w(offs_t offset, uint8_t data);
-
- /* psychic5 specific */
- void psychic5_coin_counter_w(uint8_t data);
- void psychic5_bankselect_w(uint8_t data);
- void psychic5_title_screen_w(uint8_t data);
-
- /* bombsa specific */
- void bombsa_bankselect_w(uint8_t data);
- void bombsa_flipscreen_w(uint8_t data);
- void bombsa_unknown_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- virtual void machine_reset() override;
- DECLARE_MACHINE_START(psychic5);
- DECLARE_MACHINE_START(bombsa);
- virtual void video_start() override;
- DECLARE_VIDEO_START(psychic5);
- DECLARE_VIDEO_START(bombsa);
- virtual void video_reset() override;
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
-
- uint32_t screen_update_psychic5(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_bombsa(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void change_palette(int offset, uint8_t* palram, int palbase);
- void change_bg_palette(int color, int lo_offs, int hi_offs);
- void set_background_palette_intensity();
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void bombsa_main_map(address_map &map);
- void bombsa_sound_map(address_map &map);
- void bombsa_soundport_map(address_map &map);
- void bombsa_vrambank_map(address_map &map);
- void psychic5_main_map(address_map &map);
- void psychic5_sound_map(address_map &map);
- void psychic5_soundport_map(address_map &map);
- void psychic5_vrambank_map(address_map &map);
- void draw_background(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); //only used by psychic5
-};
diff --git a/src/mame/includes/punchout.h b/src/mame/includes/punchout.h
deleted file mode 100644
index 99ccb41946d..00000000000
--- a/src/mame/includes/punchout.h
+++ /dev/null
@@ -1,112 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Punch Out / Super Punch Out / Arm Wrestling
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_PUNCHOUT_H
-#define MAME_INCLUDES_PUNCHOUT_H
-
-#pragma once
-
-#include "cpu/m6502/n2a03.h"
-#include "machine/rp5c01.h"
-#include "machine/rp5h01.h"
-#include "sound/vlm5030.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class punchout_state : public driver_device
-{
-public:
- punchout_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_rtc(*this, "rtc"),
- m_rp5h01(*this, "rp5h01"),
- m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_bg_top_videoram(*this, "bg_top_videoram"),
- m_spr1_ctrlram(*this, "spr1_ctrlram"),
- m_spr2_ctrlram(*this, "spr2_ctrlram"),
- m_palettebank(*this, "palettebank"),
- m_spr1_videoram(*this, "spr1_videoram"),
- m_spr2_videoram(*this, "spr2_videoram"),
- m_bg_bot_videoram(*this, "bg_bot_videoram"),
- m_armwrest_fg_videoram(*this, "armwrest_fgram")
- { }
-
- void spnchout(machine_config &config);
- void armwrest(machine_config &config);
- void punchout(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<n2a03_device> m_audiocpu;
- optional_device<rp5c01_device> m_rtc;
- optional_device<rp5h01_device> m_rp5h01;
- required_device<vlm5030_device> m_vlm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_bg_top_videoram;
- required_shared_ptr<uint8_t> m_spr1_ctrlram;
- required_shared_ptr<uint8_t> m_spr2_ctrlram;
- required_shared_ptr<uint8_t> m_palettebank;
- required_shared_ptr<uint8_t> m_spr1_videoram;
- required_shared_ptr<uint8_t> m_spr2_videoram;
- required_shared_ptr<uint8_t> m_bg_bot_videoram;
- optional_shared_ptr<uint8_t> m_armwrest_fg_videoram;
-
- tilemap_t *m_bg_top_tilemap;
- tilemap_t *m_bg_bot_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_spr1_tilemap;
- tilemap_t *m_spr1_tilemap_flipx;
- tilemap_t *m_spr2_tilemap;
-
- bool m_nmi_mask;
- uint8_t spunchout_exp_r(offs_t offset);
- void spunchout_exp_w(offs_t offset, uint8_t data);
- void spunchout_rp5h01_reset_w(uint8_t data);
- void spunchout_rp5h01_clock_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- void punchout_bg_top_videoram_w(offs_t offset, uint8_t data);
- void punchout_bg_bot_videoram_w(offs_t offset, uint8_t data);
- void armwrest_fg_videoram_w(offs_t offset, uint8_t data);
- void punchout_spr1_videoram_w(offs_t offset, uint8_t data);
- void punchout_spr2_videoram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(top_get_info);
- TILE_GET_INFO_MEMBER(armwrest_top_get_info);
- TILE_GET_INFO_MEMBER(bot_get_info);
- TILE_GET_INFO_MEMBER(armwrest_bot_get_info);
- TILE_GET_INFO_MEMBER(bs1_get_info);
- TILE_GET_INFO_MEMBER(bs2_get_info);
- TILE_GET_INFO_MEMBER(armwrest_fg_get_info);
- TILEMAP_MAPPER_MEMBER(armwrest_bs1_scan);
- TILEMAP_MAPPER_MEMBER(armwrest_bs1_scan_flipx);
- virtual void video_start() override;
- DECLARE_VIDEO_START(armwrest);
- DECLARE_MACHINE_RESET(spnchout);
- uint32_t screen_update_punchout_top(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_punchout_bottom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_armwrest_top(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_armwrest_bottom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_big_sprite(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int palette);
- void armwrest_draw_big_sprite(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int palette);
- void drawbs2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void punchout_copy_top_palette(int bank);
- void punchout_copy_bot_palette(int bank);
- void armwrest_map(address_map &map);
- void punchout_io_map(address_map &map);
- void punchout_map(address_map &map);
- void punchout_sound_map(address_map &map);
- void punchout_vlm_map(address_map &map);
- void spnchout_io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_PUNCHOUT_H
diff --git a/src/mame/includes/px8.h b/src/mame/includes/px8.h
deleted file mode 100644
index e7794dd6746..00000000000
--- a/src/mame/includes/px8.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Curt Coder,Dirk Best
-#ifndef MAME_INCLUDES_PX8_H
-#define MAME_INCLUDES_PX8_H
-
-#pragma once
-
-
-#include "cpu/z80/z80.h"
-#include "cpu/m6800/m6801.h"
-#include "imagedev/cassette.h"
-#include "machine/ram.h"
-#include "machine/i8251.h"
-#include "bus/epson_sio/pf10.h"
-#include "emupal.h"
-
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#define UPD70008_TAG "4a"
-#define UPD7508_TAG "2e"
-#define HD6303_TAG "13d"
-#define SED1320_TAG "7c"
-#define I8251_TAG "13e"
-#define UPD7001_TAG "1d"
-#define SCREEN_TAG "screen"
-
-#define PX8_VIDEORAM_MASK 0x17ff
-
-class px8_state : public driver_device
-{
-public:
- px8_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, UPD70008_TAG)
- , m_cassette(*this, "cassette")
- , m_ram(*this, RAM_TAG)
- , m_video_ram(*this, "video_ram")
- , m_leds(*this, "led_%u", 0U)
- { }
-
- void px8(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_device<ram_device> m_ram;
- /* video state */
- required_shared_ptr<uint8_t> m_video_ram; /* LCD video RAM */
- output_finder<3> m_leds;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint8_t gah40m_r(offs_t offset);
- void gah40m_w(offs_t offset, uint8_t data);
- uint8_t gah40s_r(offs_t offset);
- void gah40s_w(offs_t offset, uint8_t data);
- void gah40s_ier_w(uint8_t data);
- uint8_t krtn_0_3_r();
- uint8_t krtn_4_7_r();
- void ksc_w(uint8_t data);
-
- void bankswitch();
- uint8_t krtn_read();
-
- /* GAH40M state */
- uint16_t m_icr; /* input capture register */
- uint16_t m_frc; /* free running counter */
- uint8_t m_ier; /* interrupt acknowledge register */
- uint8_t m_isr; /* interrupt status register */
- uint8_t m_sio; /* serial I/O register */
- int m_bank0; /* */
-
- /* GAH40S state */
- uint16_t m_cnt; /* microcassette tape counter */
- int m_swpr; /* P-ROM power switch */
- uint16_t m_pra; /* P-ROM address */
- uint8_t m_prd; /* P-ROM data */
-
- /* memory state */
- int m_bk2; /* */
-
- /* keyboard state */
- int m_ksc; /* keyboard scan column */
- void px8_palette(palette_device &palette) const;
- void px8_io(address_map &map);
- void px8_mem(address_map &map);
- void px8_slave_mem(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/qdrmfgp.h b/src/mame/includes/qdrmfgp.h
deleted file mode 100644
index aa2aef28911..00000000000
--- a/src/mame/includes/qdrmfgp.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Hau
-#ifndef MAME_INCLUDES_QDRMFGP_H
-#define MAME_INCLUDES_QDRMFGP_H
-
-#pragma once
-
-#include "bus/ata/ataintf.h"
-#include "machine/timer.h"
-#include "sound/k054539.h"
-#include "machine/k053252.h"
-#include "video/konami_helper.h"
-#include "video/k054156_k054157_k056832.h"
-#include "emupal.h"
-
-class qdrmfgp_state : public driver_device
-{
-public:
- qdrmfgp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_nvram(*this, "nvram"),
- m_workram(*this, "workram"),
- m_k056832(*this, "k056832"),
- m_k054539(*this, "k054539"),
- m_k053252(*this, "k053252"),
- m_ata(*this, "ata"),
- m_inputs_port(*this, "INPUTS"),
- m_dsw_port(*this, "DSW"),
- m_palette(*this, "palette"),
- m_sndram(*this, "sndram")
- {
- }
-
- void qdrmfgp(machine_config &config);
- void qdrmfgp2(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(battery_sensor_r);
-
-protected:
- virtual void machine_reset() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_shared_ptr<uint16_t> m_nvram;
- required_shared_ptr<uint16_t> m_workram;
- required_device<k056832_device> m_k056832;
- required_device<k054539_device> m_k054539;
- required_device<k053252_device> m_k053252;
- required_device<ata_interface_device> m_ata;
- required_ioport m_inputs_port;
- required_ioport m_dsw_port;
- required_device<palette_device> m_palette;
- required_shared_ptr<uint8_t> m_sndram;
-
- uint16_t m_control;
- int32_t m_gp2_irq_control;
- int32_t m_pal;
- emu_timer *m_gp2_timer;
-
- void gp_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gp2_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t v_rom_r(offs_t offset);
- uint16_t gp2_vram_r(offs_t offset);
- uint16_t gp2_vram_mirror_r(offs_t offset);
- void gp2_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gp2_vram_mirror_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t sndram_r(offs_t offset, uint16_t mem_mask = ~0);
- void sndram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t inputs_r();
-
- DECLARE_MACHINE_START(qdrmfgp);
- DECLARE_VIDEO_START(qdrmfgp);
- DECLARE_MACHINE_START(qdrmfgp2);
- DECLARE_VIDEO_START(qdrmfgp2);
-
- uint32_t screen_update_qdrmfgp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(qdrmfgp2_interrupt);
- TIMER_CALLBACK_MEMBER(gp2_timer_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(qdrmfgp_interrupt);
- DECLARE_WRITE_LINE_MEMBER(ide_interrupt);
- DECLARE_WRITE_LINE_MEMBER(gp2_ide_interrupt);
- DECLARE_WRITE_LINE_MEMBER(k054539_irq1_gen);
- K056832_CB_MEMBER(qdrmfgp_tile_callback);
- K056832_CB_MEMBER(qdrmfgp2_tile_callback);
-
- void qdrmfgp2_map(address_map &map);
- void qdrmfgp_k054539_map(address_map &map);
- void qdrmfgp_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_QDRMFGP_H
diff --git a/src/mame/includes/qix.h b/src/mame/includes/qix.h
deleted file mode 100644
index fcdf40f23b4..00000000000
--- a/src/mame/includes/qix.h
+++ /dev/null
@@ -1,212 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles, Zsolt Vasvari
-// thanks-to: John Butler, Ed Mueller
-/***************************************************************************
-
- Taito Qix hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_QIX_H
-#define MAME_INCLUDES_QIX_H
-
-#pragma once
-
-#include "cpu/m6809/m6809.h"
-#include "cpu/m6805/m68705.h"
-
-#include "machine/6821pia.h"
-
-#include "sound/discrete.h"
-#include "sound/sn76496.h"
-
-#include "video/mc6845.h"
-
-#include "screen.h"
-
-
-#define MAIN_CLOCK_OSC 20000000 /* 20 MHz */
-#define SLITHER_CLOCK_OSC 21300000 /* 21.3 MHz */
-#define SOUND_CLOCK_OSC 7372800 /* 7.3728 MHz */
-#define COIN_CLOCK_OSC 4000000 /* 4 MHz */
-#define QIX_CHARACTER_CLOCK (20000000/2/16)
-
-class qix_state : public driver_device
-{
-public:
- qix_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_videocpu(*this, "videocpu"),
- m_crtc(*this, "vid_u18"),
- m_pia0(*this, "pia0"),
- m_pia1(*this, "pia1"),
- m_pia2(*this, "pia2"),
- m_sndpia0(*this, "sndpia0"),
- m_sndpia1(*this, "sndpia1"),
- m_sndpia2(*this, "sndpia2"),
- m_sn1(*this, "sn1"),
- m_sn2(*this, "sn2"),
- m_discrete(*this, "discrete"),
- m_paletteram(*this, "paletteram"),
- m_videoram(*this, "videoram", 0x10000, ENDIANNESS_BIG),
- m_videoram_address(*this, "videoram_addr"),
- m_videoram_mask(*this, "videoram_mask"),
- m_scanline_latch(*this, "scanline_latch"),
- m_bank0(*this, "bank0"),
- m_bank1(*this, "bank1"),
- m_screen(*this, "screen")
- { }
-
- void qix_base(machine_config &config);
- void qix(machine_config &config);
- void qix_video(machine_config &config);
- void qix_audio(machine_config &config);
- void kram3(machine_config &config);
- void kram3_video(machine_config &config);
- void slither(machine_config &config);
- void slither_video(machine_config &config);
- void slither_audio(machine_config &config);
-
- void init_kram3();
-
-protected:
- virtual void video_start() override;
-
- /* devices */
- required_device<mc6809e_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<mc6809e_device> m_videocpu;
- required_device<mc6845_device> m_crtc;
- required_device<pia6821_device> m_pia0;
- required_device<pia6821_device> m_pia1;
- required_device<pia6821_device> m_pia2;
- required_device<pia6821_device> m_sndpia0;
- optional_device<pia6821_device> m_sndpia1;
- optional_device<pia6821_device> m_sndpia2;
- optional_device<sn76489_device> m_sn1;
- optional_device<sn76489_device> m_sn2;
- optional_device<discrete_sound_device> m_discrete;
-
- /* video state */
- required_shared_ptr<uint8_t> m_paletteram;
- memory_share_creator<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram_address;
- optional_shared_ptr<uint8_t> m_videoram_mask;
- required_shared_ptr<uint8_t> m_scanline_latch;
- uint8_t m_flip;
- uint8_t m_palette_bank;
- uint8_t m_leds;
-
- optional_memory_bank m_bank0;
- optional_memory_bank m_bank1;
- required_device<screen_device> m_screen;
-
- pen_t m_pens[0x400];
- void qix_data_firq_w(uint8_t data);
- void qix_data_firq_ack_w(uint8_t data);
- uint8_t qix_data_firq_r(address_space &space);
- uint8_t qix_data_firq_ack_r(address_space &space);
- void qix_video_firq_w(uint8_t data);
- void qix_video_firq_ack_w(uint8_t data);
- uint8_t qix_video_firq_r(address_space &space);
- uint8_t qix_video_firq_ack_r(address_space &space);
- uint8_t qix_videoram_r(offs_t offset);
- void qix_videoram_w(offs_t offset, uint8_t data);
- void slither_videoram_w(offs_t offset, uint8_t data);
- uint8_t qix_addresslatch_r(offs_t offset);
- void qix_addresslatch_w(offs_t offset, uint8_t data);
- void slither_addresslatch_w(offs_t offset, uint8_t data);
- void qix_paletteram_w(offs_t offset, uint8_t data);
- void qix_palettebank_w(uint8_t data);
-
- TIMER_CALLBACK_MEMBER(pia_w_callback);
- TIMER_CALLBACK_MEMBER(deferred_sndpia1_porta_w);
- DECLARE_WRITE_LINE_MEMBER(qix_vsync_changed);
- void qix_pia_w(offs_t offset, uint8_t data);
- void qix_coinctl_w(uint8_t data);
- void slither_76489_0_w(uint8_t data);
- void slither_76489_1_w(uint8_t data);
- uint8_t slither_trak_lr_r();
- uint8_t slither_trak_ud_r();
- DECLARE_WRITE_LINE_MEMBER(display_enable_changed);
- DECLARE_WRITE_LINE_MEMBER(qix_flip_screen_w);
- void qix_dac_w(uint8_t data);
- void qix_vol_w(uint8_t data);
- void sndpia_2_warning_w(uint8_t data);
- void sync_sndpia1_porta_w(uint8_t data);
- void slither_coinctl_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(qix_pia_dint);
- DECLARE_WRITE_LINE_MEMBER(qix_pia_sint);
- MC6845_BEGIN_UPDATE(crtc_begin_update);
- MC6845_UPDATE_ROW(crtc_update_row);
- void set_pen(int offs);
- int kram3_permut1(int idx, int value);
- int kram3_permut2(int tbl_index, int idx, const uint8_t *xor_table);
- int kram3_decrypt(int address, int value);
- DECLARE_WRITE_LINE_MEMBER(kram3_lic_maincpu_changed);
- DECLARE_WRITE_LINE_MEMBER(kram3_lic_videocpu_changed);
-
- void audio_map(address_map &map);
- void kram3_main_map(address_map &map);
- void kram3_video_map(address_map &map);
- void main_map(address_map &map);
- void qix_video_map(address_map &map);
- void slither_video_map(address_map &map);
-};
-
-class qixmcu_state : public qix_state
-{
-public:
- qixmcu_state(const machine_config &mconfig, device_type type, const char *tag) :
- qix_state(mconfig, type, tag),
- m_mcu(*this, "mcu")
- { }
-
- void mcu(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- optional_device<m68705p_device> m_mcu;
-
-private:
- uint8_t coin_r();
- void coin_w(uint8_t data);
- void coinctrl_w(uint8_t data);
-
- uint8_t mcu_portb_r();
- uint8_t mcu_portc_r();
- void mcu_porta_w(uint8_t data);
- void mcu_portb_w(uint8_t data);
-
- /* machine state */
- uint8_t m_68705_porta_out;
- uint8_t m_coinctrl;
-};
-
-class zookeep_state : public qixmcu_state
-{
-public:
- zookeep_state(const machine_config &mconfig, device_type type, const char *tag) :
- qixmcu_state(mconfig, type, tag),
- m_vidbank(*this, "bank1")
- { }
-
- void zookeep(machine_config &config);
- void zookeepbl(machine_config &config);
- void video(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void bankswitch_w(uint8_t data);
-
- void main_map(address_map &map);
- void video_map(address_map &map);
-
- required_memory_bank m_vidbank;
-};
-
-#endif // MAME_INCLUDES_QIX_H
diff --git a/src/mame/includes/quasar.h b/src/mame/includes/quasar.h
deleted file mode 100644
index 144487b51a1..00000000000
--- a/src/mame/includes/quasar.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Coates, Pierpaolo Prazzoli
-/***************************************************************************
-
- Zaccaria Quasar
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_QUASAR_H
-#define MAME_INCLUDES_QUASAR_H
-
-#pragma once
-
-#include "includes/cvs.h"
-
-class quasar_state : public cvs_state
-{
-public:
- quasar_state(const machine_config &mconfig, device_type type, const char *tag)
- : cvs_state(mconfig, type, tag)
- { }
-
- void quasar(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- void video_page_select_w(offs_t offset, uint8_t data);
- void io_page_select_w(offs_t offset, uint8_t data);
- void quasar_video_w(offs_t offset, uint8_t data);
- uint8_t quasar_IO_r();
- void quasar_bullet_w(offs_t offset, uint8_t data);
- void quasar_sh_command_w(uint8_t data);
- uint8_t quasar_sh_command_r();
- DECLARE_READ_LINE_MEMBER(audio_t1_r);
- void quasar_palette(palette_device &palette) const;
- uint32_t screen_update_quasar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(quasar_interrupt);
-
- void quasar_program(address_map &map);
- void quasar_data(address_map &map);
- void quasar_io(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
-
- std::unique_ptr<uint8_t[]> m_effectram;
- uint8_t m_effectcontrol;
- uint8_t m_page;
- uint8_t m_io_page;
-};
-
-#endif // MAME_INCLUDES_QUASAR_H
diff --git a/src/mame/includes/quizdna.h b/src/mame/includes/quizdna.h
deleted file mode 100644
index 4fe4ad3a010..00000000000
--- a/src/mame/includes/quizdna.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Uki
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class quizdna_state : public driver_device
-{
-public:
- quizdna_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_generic_paletteram_8(*this, "paletteram") { }
-
- void gakupara(machine_config &config);
- void quizdna(machine_config &config);
- void gekiretu(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_generic_paletteram_8;
-
- std::unique_ptr<uint8_t[]> m_bg_ram;
- std::unique_ptr<uint8_t[]> m_fg_ram;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_bg_xscroll[2];
- int m_flipscreen;
- int m_video_enable;
-
- // common
- void bg_ram_w(offs_t offset, uint8_t data);
- void fg_ram_w(offs_t offset, uint8_t data);
- void bg_yscroll_w(uint8_t data);
- void bg_xscroll_w(offs_t offset, uint8_t data);
- void screen_ctrl_w(uint8_t data);
- void paletteram_xBGR_RRRR_GGGG_BBBB_w(offs_t offset, uint8_t data);
- void rombank_w(uint8_t data);
-
- // game specific
- void gekiretu_rombank_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void gakupara_io_map(address_map &map);
- void gekiretu_io_map(address_map &map);
- void gekiretu_map(address_map &map);
- void quizdna_io_map(address_map &map);
- void quizdna_map(address_map &map);
-};
diff --git a/src/mame/includes/quizpani.h b/src/mame/includes/quizpani.h
deleted file mode 100644
index 157158adada..00000000000
--- a/src/mame/includes/quizpani.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Pierpaolo Prazzoli
-#ifndef MAME_INCLUDES_QUIZPANI_H
-#define MAME_INCLUDES_QUIZPANI_H
-
-#pragma once
-
-#include "machine/nmk112.h"
-#include "tilemap.h"
-
-class quizpani_state : public driver_device
-{
-public:
- quizpani_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_scrollreg(*this, "scrollreg"),
- m_bg_videoram(*this, "bg_videoram"),
- m_txt_videoram(*this, "txt_videoram")
- { }
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
-
- required_shared_ptr<uint16_t> m_scrollreg;
- required_shared_ptr<uint16_t> m_bg_videoram;
- required_shared_ptr<uint16_t> m_txt_videoram;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_txt_tilemap;
- int m_bgbank;
- int m_txtbank;
-
- void bg_videoram_w(offs_t offset, uint16_t data);
- void txt_videoram_w(offs_t offset, uint16_t data);
- void tilesbank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILEMAP_MAPPER_MEMBER(bg_scan);
- TILE_GET_INFO_MEMBER(bg_tile_info);
- TILE_GET_INFO_MEMBER(txt_tile_info);
-
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void quizpani(machine_config &config);
- void quizpani_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_QUIZPANI_H
diff --git a/src/mame/includes/radio86.h b/src/mame/includes/radio86.h
deleted file mode 100644
index 958fe495ac4..00000000000
--- a/src/mame/includes/radio86.h
+++ /dev/null
@@ -1,121 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/radio86.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_RADIO86_H
-#define MAME_INCLUDES_RADIO86_H
-
-#pragma once
-
-#include "machine/i8255.h"
-#include "machine/i8257.h"
-#include "video/i8275.h"
-#include "imagedev/cassette.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "emupal.h"
-
-
-class radio86_state : public driver_device
-{
-public:
- radio86_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_cassette(*this, "cassette")
- , m_cart(*this, "cartslot")
- , m_dma(*this, "dma")
- , m_ppi1(*this, "ppi1")
- , m_ppi2(*this, "ppi2")
- , m_rom(*this, "maincpu")
- , m_ram(*this, "mainram")
- , m_bank1(*this, "bank1")
- , m_io_line(*this, "LINE%u", 0U)
- , m_io_cline(*this, "CLINE%u", 0U)
- , m_palette(*this, "palette")
- , m_chargen(*this, "chargen")
- { }
-
- void impuls03(machine_config &config);
- void mikron2(machine_config &config);
- void rk7007(machine_config &config);
- void rk700716(machine_config &config);
- void radiorom(machine_config &config);
- void radio86(machine_config &config);
- void radio16(machine_config &config);
- void radioram(machine_config &config);
- void kr03(machine_config &config);
- void init_radioram();
- void init_radio86();
-
-protected:
-
-
- void machine_reset() override;
- void machine_start() override;
-
- void radio86_init_keyboard();
-
- void impuls03_mem(address_map &map);
- void mikron2_mem(address_map &map);
- void radio86_16_mem(address_map &map);
- void radio86_io(address_map &map);
- void radio86_mem(address_map &map);
- void radio86ram_mem(address_map &map);
- void radio86rom_mem(address_map &map);
- void rk7007_io(address_map &map);
-
- uint8_t m_tape_value;
- uint8_t radio_cpu_state_r();
- uint8_t radio_io_r(offs_t offset);
- void radio_io_w(offs_t offset, uint8_t data);
- uint8_t radio86_8255_portb_r2();
- uint8_t radio86_8255_portc_r2();
- uint8_t rk7007_8255_portc_r();
- void radio86_8255_porta_w2(uint8_t data);
- void radio86_8255_portc_w2(uint8_t data);
- void radio86_palette(palette_device &palette) const;
- void hrq_w(int state);
- uint8_t memory_read_byte(offs_t offset);
- void memory_write_byte(offs_t offset, uint8_t data);
-
- memory_passthrough_handler *m_rom_shadow_tap;
- required_device<cpu_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- optional_device<generic_slot_device> m_cart; // for ROMDisk - only Radio86K & Orion?
- optional_device<i8257_device> m_dma;
- required_device<i8255_device> m_ppi1;
- optional_device<i8255_device> m_ppi2;
- required_region_ptr<u8> m_rom;
- optional_shared_ptr<u8> m_ram;
- optional_memory_bank m_bank1;
- required_ioport_array<9> m_io_line;
- optional_ioport_array<8> m_io_cline;
- required_device<palette_device> m_palette;
- optional_region_ptr<uint8_t> m_chargen;
-
-private:
- int m_keyboard_mask;
- std::unique_ptr<uint8_t[]> m_radio_ram_disk;
- uint8_t m_romdisk_lsb;
- uint8_t m_romdisk_msb;
- uint8_t m_disk_sel;
- void radio86_pagesel(uint8_t data);
- uint8_t kr03_8255_portb_r2();
- uint8_t radio86rom_romdisk_porta_r();
- uint8_t radio86ram_romdisk_porta_r();
- void radio86_romdisk_portb_w(uint8_t data);
- void radio86_romdisk_portc_w(uint8_t data);
- I8275_DRAW_CHARACTER_MEMBER(display_pixels);
-};
-
-
-/*----------- defined in drivers/radio86.c -----------*/
-
-INPUT_PORTS_EXTERN( radio86 );
-INPUT_PORTS_EXTERN( ms7007 );
-
-#endif // MAME_INCLUDES_RADIO86_H
diff --git a/src/mame/includes/raiden.h b/src/mame/includes/raiden.h
deleted file mode 100644
index d31d30558a6..00000000000
--- a/src/mame/includes/raiden.h
+++ /dev/null
@@ -1,123 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*******************************************************************************
-
- Seibu Raiden hardware
-
-*******************************************************************************/
-#ifndef MAME_INCLUDES_RAIDEN_H
-#define MAME_INCLUDES_RAIDEN_H
-
-#pragma once
-
-#include "audio/seibu.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class raiden_state : public driver_device, public seibu_sound_common
-{
-public:
- raiden_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_seibu_sound(*this, "seibu_sound"),
- m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_shared_ram(*this, "shared_ram"),
- m_videoram(*this, "videoram"),
- m_scroll_ram(*this, "scroll_ram"),
- m_back_data(*this, "back_data"),
- m_fore_data(*this, "fore_data")
- { }
-
- void raidene(machine_config &config);
- void raiden(machine_config &config);
- void raidenkb(machine_config &config);
- void raidenu(machine_config &config);
-
- void init_raiden();
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<seibu_sound_device> m_seibu_sound;
-
- uint8_t m_bg_layer_enabled;
- uint8_t m_fg_layer_enabled;
- uint8_t m_tx_layer_enabled;
- uint8_t m_sp_layer_enabled;
- uint8_t m_flipscreen;
-
- virtual void video_start() override;
-
- uint32_t screen_update_common(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, uint16_t *scrollregs);
-
- void raiden_text_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void common_video_start();
-
- required_device<cpu_device> m_subcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram16_device> m_spriteram;
-
- required_shared_ptr<uint16_t> m_shared_ram;
- required_shared_ptr<uint16_t> m_videoram;
- optional_shared_ptr<uint16_t> m_scroll_ram;
- required_shared_ptr<uint16_t> m_back_data;
- required_shared_ptr<uint16_t> m_fore_data;
-
- tilemap_t *m_bg_layer;
- tilemap_t *m_fg_layer;
- tilemap_t *m_tx_layer;
-
- void raiden_background_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void raiden_foreground_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void raiden_control_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_back_tile_info);
- TILE_GET_INFO_MEMBER(get_fore_tile_info);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
-
- uint32_t screen_update_raiden(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri_mask);
- void common_decrypt();
-
- void main_map(address_map &map);
- void sub_map(address_map &map);
- void raiden_sound_map(address_map &map);
- void raiden_sound_decrypted_opcodes_map(address_map &map);
- void raidenu_main_map(address_map &map);
- void raidenu_sub_map(address_map &map);
- void sei80bu_encrypted_full_map(address_map &map);
-};
-
-
-class raidenb_state : public raiden_state
-{
-public:
- using raiden_state::raiden_state;
-
- void raidenb(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- uint16_t m_raidenb_scroll_ram[6];
-
- uint32_t screen_update_raidenb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void raidenb_control_w(uint8_t data);
- void raidenb_layer_enable_w(uint16_t data);
- void raidenb_layer_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void raidenb_main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_RAIDEN_H
diff --git a/src/mame/includes/raiden2.h b/src/mame/includes/raiden2.h
deleted file mode 100644
index dd905e50d52..00000000000
--- a/src/mame/includes/raiden2.h
+++ /dev/null
@@ -1,180 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:Olivier Galibert, Angelo Salese, David Haywood, Tomasz Slanina
-#ifndef MAME_INCLUDES_RAIDEN2_H
-#define MAME_INCLUDES_RAIDEN2_H
-
-#pragma once
-
-#include "audio/seibu.h"
-#include "machine/seibucop.h"
-#include "video/bufsprite.h"
-#include "video/seibu_crtc.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#include <algorithm>
-
-class raiden2_state : public driver_device
-{
-public:
- raiden2_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_spriteram(*this, "spriteram")
- , m_maincpu(*this, "maincpu")
- , m_seibu_sound(*this, "seibu_sound")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_mainbank(*this, "mainbank%u", 1U)
- , m_raiden2cop(*this, "raiden2cop")
-
- , m_sprite_prot_x(0)
- , m_sprite_prot_y(0)
- , m_dst1(0)
- , m_cop_spr_maxx(0)
- , m_cop_spr_off(0)
-
- , m_bg_bank(0)
- , m_fg_bank(0)
- , m_mid_bank(0)
- , m_tx_bank(0)
- , m_tilemap_enable(0)
-
- , m_prg_bank(0)
- , m_cop_bank(0)
- {
- std::fill(std::begin(m_sprite_prot_src_addr), std::end(m_sprite_prot_src_addr), 0);
- std::fill(std::begin(m_scrollvals), std::end(m_scrollvals), 0);
- }
-
- void raidendx(machine_config &config);
- void xsedae(machine_config &config);
- void zeroteam(machine_config &config);
- void raiden2(machine_config &config);
-
- void init_raidendx();
- void init_xsedae();
- void init_zeroteam();
- void init_raiden2();
-
-protected:
- std::unique_ptr<u16[]> m_back_data;
- std::unique_ptr<u16[]> m_fore_data;
- std::unique_ptr<u16[]> m_mid_data;
- std::unique_ptr<u16[]> m_text_data; // private buffers, allocated in init
- std::unique_ptr<u16[]> m_palette_data;
- required_device<buffered_spriteram16_device> m_spriteram;
- required_device<cpu_device> m_maincpu;
- optional_device<seibu_sound_device> m_seibu_sound;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- optional_memory_bank_array<2> m_mainbank;
- optional_device<raiden2cop_device> m_raiden2cop;
-
- void sprite_prot_x_w(u16 data);
- void sprite_prot_y_w(u16 data);
- void sprite_prot_src_seg_w(u16 data);
- void sprite_prot_src_w(address_space &space, u16 data);
- u16 sprite_prot_src_seg_r();
- u16 sprite_prot_dst1_r();
- u16 sprite_prot_maxx_r();
- u16 sprite_prot_off_r();
- void sprite_prot_dst1_w(u16 data);
- void sprite_prot_maxx_w(u16 data);
- void sprite_prot_off_w(u16 data);
-
- u16 m_sprite_prot_x,m_sprite_prot_y,m_dst1,m_cop_spr_maxx,m_cop_spr_off;
- u16 m_sprite_prot_src_addr[2];
-
- INTERRUPT_GEN_MEMBER(interrupt);
- void common_save_state();
- virtual void video_start() override;
-
- void tilemap_enable_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tile_scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void background_w(offs_t offset, u16 data);
- void foreground_w(offs_t offset, u16 data);
- void midground_w(offs_t offset, u16 data);
- void text_w(offs_t offset, u16 data);
- void m_videoram_private_w(offs_t offset, uint16_t data);
-
- void bank_reset(int bgbank, int fgbank, int midbank, int txbank);
-
- static u16 const raiden_blended_colors[];
- static u16 const xsedae_blended_colors[];
- static u16 const zeroteam_blended_colors[];
-
- bool m_blend_active[0x800]; // cfg
-
- tilemap_t *m_background_layer,*m_midground_layer,*m_foreground_layer,*m_text_layer;
-
- int m_bg_bank, m_fg_bank, m_mid_bank, m_tx_bank;
- u16 m_tilemap_enable;
-
- u16 m_scrollvals[6];
-
- void draw_sprites(const rectangle &cliprect);
-
- const int *m_cur_spri; // cfg
-
- DECLARE_GFXDECODE_MEMBER(gfx_raiden2);
- TILE_GET_INFO_MEMBER(get_back_tile_info);
- TILE_GET_INFO_MEMBER(get_mid_tile_info);
- TILE_GET_INFO_MEMBER(get_fore_tile_info);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void blend_layer(bitmap_rgb32 &bitmap, const rectangle &cliprect, bitmap_ind16 &source, int layer);
- void tilemap_draw_and_blend(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, tilemap_t *tilemap);
-
- void init_blending(const u16 *table);
-
- bitmap_ind16 m_tile_bitmap, m_sprite_bitmap;
-
- void zeroteam_sound_map(address_map &map);
-
-private:
- void raiden2_bank_w(u8 data);
- void tile_bank_01_w(u8 data);
- u16 cop_tile_bank_2_r();
- void cop_tile_bank_2_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void raidendx_cop_bank_2_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- uint8_t m_prg_bank;
- u16 m_cop_bank;
-
- void sprcpt_val_1_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sprcpt_val_2_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sprcpt_data_1_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sprcpt_data_2_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sprcpt_data_3_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sprcpt_data_4_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sprcpt_adr_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sprcpt_flags_1_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void sprcpt_flags_2_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- u32 m_sprcpt_adr, m_sprcpt_idx;
-
- u32 m_sprcpt_val[2], m_sprcpt_flags1;
- u16 m_sprcpt_flags2;
- u32 m_sprcpt_data_1[0x100], m_sprcpt_data_2[0x40], m_sprcpt_data_3[6], m_sprcpt_data_4[4];
-
- virtual void machine_start() override;
- DECLARE_MACHINE_RESET(raiden2);
- DECLARE_MACHINE_RESET(zeroteam);
- DECLARE_MACHINE_RESET(xsedae);
- DECLARE_MACHINE_RESET(raidendx);
-
- void combine32(u32 *val, offs_t offset, u16 data, u16 mem_mask);
- void sprcpt_init();
- void raiden2_cop_mem(address_map &map);
- void raiden2_mem(address_map &map);
- void raiden2_sound_map(address_map &map);
- void raidendx_mem(address_map &map);
- void xsedae_mem(address_map &map);
- void zeroteam_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_RAIDEN2_H
diff --git a/src/mame/includes/rallyx.h b/src/mame/includes/rallyx.h
deleted file mode 100644
index 45dc54255e7..00000000000
--- a/src/mame/includes/rallyx.h
+++ /dev/null
@@ -1,130 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_RALLYX_H
-#define MAME_INCLUDES_RALLYX_H
-
-#pragma once
-
-#include "audio/timeplt.h"
-#include "sound/namco.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class rallyx_state : public driver_device
-{
-public:
- rallyx_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_radarattr(*this, "radarattr"),
- m_maincpu(*this, "maincpu"),
- m_namco_sound(*this, "namco"),
- m_samples(*this, "samples"),
- m_timeplt_audio(*this, "timeplt_audio"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen")
- { }
-
- void commsega(machine_config &config);
- void jungler(machine_config &config);
- void locomotn(machine_config &config);
- void rallyx(machine_config &config);
- void tactcian(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- // memory pointers
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_radarattr;
- uint8_t * m_spriteram;
- uint8_t * m_spriteram2;
- uint8_t * m_radarx;
- uint8_t * m_radary;
-
- // video-related
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- // misc
- static constexpr unsigned JUNGLER_MAX_STARS = 1000;
-
- struct jungler_star
- {
- uint16_t x, y;
- uint8_t color;
- };
-
- bool m_last_bang;
- uint8_t m_spriteram_base;
- bool m_stars_enable;
- uint16_t m_total_stars;
- uint8_t m_drawmode_table[4];
- struct jungler_star m_stars[JUNGLER_MAX_STARS];
- bool m_main_irq_mask;
- uint8_t m_interrupt_vector;
-
- // devices
- required_device<cpu_device> m_maincpu;
- optional_device<namco_device> m_namco_sound;
- optional_device<samples_device> m_samples;
- optional_device<timeplt_audio_device> m_timeplt_audio;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- void rallyx_interrupt_vector_w(uint8_t data);
- IRQ_CALLBACK_MEMBER(interrupt_vector_r);
- void bang_w(int state);
- void irq_mask_w(int state);
- void nmi_mask_w(int state);
- void sound_on_w(int state);
- void flip_screen_w(int state);
- void coin_lockout_w(int state);
- void coin_counter_1_w(int state);
- void coin_counter_2_w(int state);
- void videoram_w(offs_t offset, uint8_t data);
- void scrollx_w(uint8_t data);
- void scrolly_w(uint8_t data);
- void stars_enable_w(int state);
- void rallyx_vblank_irq(int state);
- void jungler_vblank_irq(int state);
-
- TILEMAP_MAPPER_MEMBER(fg_tilemap_scan);
- TILE_GET_INFO_MEMBER(rallyx_bg_get_tile_info);
- TILE_GET_INFO_MEMBER(rallyx_fg_get_tile_info);
- TILE_GET_INFO_MEMBER(locomotn_bg_get_tile_info);
- TILE_GET_INFO_MEMBER(locomotn_fg_get_tile_info);
-
- DECLARE_VIDEO_START(rallyx);
- DECLARE_VIDEO_START(jungler);
- DECLARE_VIDEO_START(locomotn);
- DECLARE_VIDEO_START(commsega);
-
- void rallyx_palette(palette_device &palette) const;
- void jungler_palette(palette_device &palette) const;
- uint32_t screen_update_rallyx(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_jungler(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_locomotn(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline void rallyx_get_tile_info( tile_data &tileinfo, int tile_index, int ram_offs);
- inline void locomotn_get_tile_info(tile_data &tileinfo,int tile_index,int ram_offs);
- void calculate_star_field();
- void video_start_common();
- void plot_star( bitmap_ind16 &bitmap, const rectangle &cliprect, int x, int y, int color );
- void draw_stars( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void rallyx_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void locomotn_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void rallyx_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen );
- void jungler_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen );
- void locomotn_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen );
-
- void io_map(address_map &map);
- void jungler_map(address_map &map);
- void rallyx_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_RALLYX_H
diff --git a/src/mame/includes/rampart.h b/src/mame/includes/rampart.h
deleted file mode 100644
index 13039d01099..00000000000
--- a/src/mame/includes/rampart.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Rampart hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_RAMPART_H
-#define MAME_INCLUDES_RAMPART_H
-
-#pragma once
-
-#include "machine/slapstic.h"
-#include "machine/timer.h"
-#include "sound/okim6295.h"
-#include "sound/ym2413.h"
-#include "video/atarimo.h"
-#include "screen.h"
-
-class rampart_state : public driver_device
-{
-public:
- rampart_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_slapstic(*this, "slapstic"),
- m_slapstic_bank(*this, "slapstic_bank"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_mob(*this, "mob"),
- m_oki(*this, "oki"),
- m_ym2413(*this, "ymsnd"),
- m_bitmap(*this, "bitmap")
- { }
-
- void init_rampart();
- void rampart(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_interrupt);
- void scanline_int_ack_w(u16 data);
- void latch_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u32 screen_update_rampart(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void rampart_bitmap_render(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<atari_slapstic_device> m_slapstic;
- required_memory_bank m_slapstic_bank;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<atari_motion_objects_device> m_mob;
- required_device<okim6295_device> m_oki;
- required_device<ym2413_device> m_ym2413;
-
- required_shared_ptr<u16> m_bitmap;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_RAMPART_H
diff --git a/src/mame/includes/rastan.h b/src/mame/includes/rastan.h
deleted file mode 100644
index bbe03ef619b..00000000000
--- a/src/mame/includes/rastan.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Jarek Burczynski
-/*************************************************************************
-
- Rastan
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_RASTAN_H
-#define MAME_INCLUDES_RASTAN_H
-
-#pragma once
-
-#include "machine/74157.h"
-#include "sound/msm5205.h"
-#include "video/pc080sn.h"
-#include "video/pc090oj.h"
-
-class rastan_state : public driver_device
-{
-public:
- rastan_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_audiobank(*this, "audiobank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_adpcm_sel(*this, "adpcm_sel"),
- m_adpcm_data(*this, "adpcm"),
- m_pc080sn(*this, "pc080sn"),
- m_pc090oj(*this, "pc090oj")
- { }
-
- void rastan(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_memory_bank m_audiobank;
-
- /* video-related */
- u16 m_sprite_ctrl;
- u16 m_sprites_flipscreen;
-
- /* misc */
- u16 m_adpcm_pos;
- bool m_adpcm_ff;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<msm5205_device> m_msm;
- required_device<ls157_device> m_adpcm_sel;
- required_region_ptr<u8> m_adpcm_data;
- required_device<pc080sn_device> m_pc080sn;
- required_device<pc090oj_device> m_pc090oj;
-
- void msm5205_address_w(u8 data);
- void spritectrl_w(u16 data);
- void sound_bankswitch_w(u8 data);
- void msm5205_start_w(u8 data);
- void msm5205_stop_w(u8 data);
- void rastan_colpri_cb(u32 &sprite_colbank, u32 &pri_mask, u16 sprite_ctrl);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(msm5205_vck);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_RASTAN_H
diff --git a/src/mame/includes/rbisland.h b/src/mame/includes/rbisland.h
deleted file mode 100644
index 1e8a64d130c..00000000000
--- a/src/mame/includes/rbisland.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Coates
-/*************************************************************************
-
- Rainbow Islands
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_RBISLAND_H
-#define MAME_INCLUDES_RBISLAND_H
-
-#pragma once
-
-
-#include "machine/taitocchip.h"
-
-#include "video/pc080sn.h"
-#include "video/pc090oj.h"
-#include "machine/timer.h"
-#include "emupal.h"
-
-class rbisland_state : public driver_device
-{
-public:
- rbisland_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_cchip(*this, "cchip"),
- m_pc080sn(*this, "pc080sn"),
- m_pc090oj(*this, "pc090oj"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_cchip_irq_clear(*this, "cchip_irq_clear")
- { }
-
- void jumping(machine_config &config);
- void rbisland(machine_config &config);
- void jumpingi(machine_config &config);
-
- void init_jumping();
- void init_rbisland();
-
-protected:
- virtual void machine_start() override;
-
-private:
- void jumping_sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t jumping_latch_r();
- void jumping_spritectrl_w(offs_t offset, uint16_t data);
- void bankswitch_w(uint8_t data);
- void counters_w(uint8_t data);
- DECLARE_VIDEO_START(jumping);
- void rbisland_colpri_cb(u32 &sprite_colbank, u32 &pri_mask, u16 sprite_ctrl);
- uint32_t screen_update_rainbow(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_jumping(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(cchip_timer);
- INTERRUPT_GEN_MEMBER(interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(cchip_irq_clear_cb);
-
- void jumping_map(address_map &map);
- void jumping_sound_map(address_map &map);
- void rbisland_map(address_map &map);
- void rbisland_sound_map(address_map &map);
-
- /* memory pointers */
- optional_shared_ptr<uint16_t> m_spriteram;
-
- /* video-related */
- uint16_t m_sprite_ctrl;
- uint16_t m_sprites_flipscreen;
-
- /* misc */
- uint8_t m_jumping_latch;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<taito_cchip_device> m_cchip;
- required_device<pc080sn_device> m_pc080sn;
- optional_device<pc090oj_device> m_pc090oj;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<timer_device> m_cchip_irq_clear;
-};
-
-#endif // MAME_INCLUDES_RBISLAND_H
diff --git a/src/mame/includes/realbrk.h b/src/mame/includes/realbrk.h
deleted file mode 100644
index 21bdc6a0ca0..00000000000
--- a/src/mame/includes/realbrk.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_REALBRK_H
-#define MAME_INCLUDES_REALBRK_H
-
-#pragma once
-
-#include "machine/tmp68301.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class realbrk_state : public driver_device
-{
-public:
- realbrk_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_vram(*this, "vram_%u", 0U),
- m_vregs(*this, "vregs"),
- m_dsw_select(*this, "dsw_select"),
- m_backup_ram(*this, "backup_ram"),
- m_vram_ras(*this, "vram_%uras", 0U),
- m_in_io(*this, "IN%u", 0U),
- m_dsw_io(*this, "SW%u", 1U),
- m_paddle_io(*this, "PADDLE%u", 1U),
- m_player_io(*this, "P%u", 1U)
- { }
-
- void pkgnsh(machine_config &config);
- void dai2kaku(machine_config &config);
- void realbrk(machine_config &config);
- void pkgnshdx(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<tmp68301_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr_array<u16, 3> m_vram;
- required_shared_ptr<u16> m_vregs;
- optional_shared_ptr<u16> m_dsw_select;
- optional_shared_ptr<u16> m_backup_ram;
- optional_shared_ptr_array<u16, 2> m_vram_ras;
-
- optional_ioport_array<2> m_in_io;
- optional_ioport_array<4> m_dsw_io;
- optional_ioport_array<2> m_paddle_io;
- optional_ioport_array<2> m_player_io;
-
- std::unique_ptr<bitmap_ind16> m_tmpbitmap0;
- std::unique_ptr<bitmap_ind16> m_tmpbitmap1;
- int m_disable_video;
- tilemap_t *m_tilemap[3];
-
- // common
- template<int Layer> void vram_w(offs_t offset, u16 data, u16 mem_mask);
- void vram_2_w(offs_t offset, u16 data, u16 mem_mask);
- void vregs_w(offs_t offset, u16 data, u16 mem_mask);
-
- // realbrk and/or dai2kaku
- u16 realbrk_dsw_r();
- void realbrk_flipscreen_w(offs_t offset, u16 data, u16 mem_mask);
- void dai2kaku_flipscreen_w(u16 data);
-
- // pkgnsh and/or pkgnshdx
- u16 pkgnsh_input_r(offs_t offset);
- u16 pkgnshdx_input_r(offs_t offset);
- u16 backup_ram_r(offs_t offset);
- u16 backup_ram_dx_r(offs_t offset);
- void backup_ram_w(offs_t offset, u16 data, u16 mem_mask);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- TILE_GET_INFO_MEMBER(get_tile_info_2);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_dai2kaku(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- template <bool Rotatable> void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect, bitmap_ind8 &priority);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void base_mem(address_map &map);
- void dai2kaku_mem(address_map &map);
- void pkgnsh_mem(address_map &map);
- void pkgnshdx_mem(address_map &map);
- void realbrk_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_REALBRK_H
diff --git a/src/mame/includes/redalert.h b/src/mame/includes/redalert.h
deleted file mode 100644
index 3d017355cde..00000000000
--- a/src/mame/includes/redalert.h
+++ /dev/null
@@ -1,142 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-/***************************************************************************
-
- Irem M27 hardware
-
- If you have any questions about how this driver works, don't hesitate to
- ask. - Mike Balfour (mab22@po.cwru.edu)
-
- To Do:
- - Device-ify video and audio hardware to turn optional_devices into
- required_devices.
-
-****************************************************************************/
-
-#ifndef MAME_INCLUDES_REDALERT_H
-#define MAME_INCLUDES_REDALERT_H
-
-#pragma once
-
-#include "cpu/i8085/i8085.h"
-#include "machine/6821pia.h"
-#include "machine/gen_latch.h"
-#include "sound/ay8910.h"
-#include "sound/hc55516.h"
-#include "screen.h"
-
-class redalert_state : public driver_device
-{
-public:
- redalert_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_bitmap_videoram(*this, "bitmap_videoram"),
- m_charmap_videoram(*this, "charram"),
- m_video_control(*this, "video_control"),
- m_bitmap_color(*this, "bitmap_color"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_voicecpu(*this, "voice"),
- m_ay8910(*this, "aysnd"),
- m_ay(*this, "ay%u", 1U),
- m_cvsd(*this, "cvsd"),
- m_sndpia(*this, "sndpia"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2")
- {
- }
-
- void redalert_video_common(machine_config &config);
- void redalert_video(machine_config &config);
- void ww3_video(machine_config &config);
- void panther_video(machine_config &config);
- void demoneye_video(machine_config &config);
- void redalert_audio_m37b(machine_config &config);
- void redalert_audio_voice(machine_config &config);
- void redalert_audio(machine_config &config);
- void ww3_audio(machine_config &config);
- void panther_audio(machine_config &config);
- void demoneye_audio(machine_config &config);
- void demoneye(machine_config &config);
- void ww3(machine_config &config);
- void panther(machine_config &config);
- void redalert(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
- DECLARE_CUSTOM_INPUT_MEMBER(sound_status_r);
-
-private:
- required_shared_ptr<uint8_t> m_bitmap_videoram;
- required_shared_ptr<uint8_t> m_charmap_videoram;
- required_shared_ptr<uint8_t> m_video_control;
- required_shared_ptr<uint8_t> m_bitmap_color;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<i8085a_cpu_device> m_voicecpu;
- optional_device<ay8910_device> m_ay8910;
- optional_device_array<ay8910_device, 2> m_ay;
- optional_device<hc55516_device> m_cvsd;
- optional_device<pia6821_device> m_sndpia;
- required_device<screen_device> m_screen;
- required_device<generic_latch_8_device> m_soundlatch;
- optional_device<generic_latch_8_device> m_soundlatch2;
-
- std::unique_ptr<uint8_t[]> m_bitmap_colorram;
- uint8_t m_control_xor;
- uint8_t redalert_interrupt_clear_r();
- void redalert_interrupt_clear_w(uint8_t data);
- uint8_t panther_interrupt_clear_r();
- void redalert_bitmap_videoram_w(offs_t offset, uint8_t data);
- void redalert_audio_command_w(uint8_t data);
- uint8_t redalert_ay8910_latch_1_r();
- void redalert_ay8910_latch_2_w(uint8_t data);
- void redalert_voice_command_w(uint8_t data);
- void demoneye_audio_command_w(uint8_t data);
- DECLARE_VIDEO_START(redalert);
- DECLARE_VIDEO_START(ww3);
- DECLARE_VIDEO_START(demoneye);
- uint32_t screen_update_redalert(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_demoneye(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_panther(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(redalert_vblank_interrupt);
- TIMER_CALLBACK_MEMBER(audio_irq_on);
- TIMER_CALLBACK_MEMBER(audio_irq_off);
- void redalert_analog_w(uint8_t data);
- void redalert_AY8910_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(sod_callback);
- DECLARE_READ_LINE_MEMBER(sid_callback);
- void demoneye_ay8910_latch_1_w(uint8_t data);
- uint8_t demoneye_ay8910_latch_2_r();
- void demoneye_ay8910_data_w(uint8_t data);
- void get_redalert_pens(pen_t *pens);
- void get_panther_pens(pen_t *pens);
- void get_demoneye_pens(pen_t *pens);
- void demoneye_bitmap_layer_w(offs_t offset, uint8_t data);
- void demoneye_bitmap_ypos_w(u8 data);
-
- virtual void sound_start() override;
-
- void redalert_main_map(address_map &map);
- void ww3_main_map(address_map &map);
- void panther_main_map(address_map &map);
- void demoneye_main_map(address_map &map);
-
- void redalert_audio_map(address_map &map);
- void panther_audio_map(address_map &map);
- void demoneye_audio_map(address_map &map);
-
- void redalert_voice_map(address_map &map);
-
- emu_timer *m_audio_irq_on_timer;
- emu_timer *m_audio_irq_off_timer;
-
- uint8_t m_ay8910_latch_1;
- uint8_t m_ay8910_latch_2;
- u8 m_demoneye_bitmap_reg[4];
- u8 m_demoneye_bitmap_yoffs;
- u8 m_sound_hs;
-};
-
-#endif // MAME_INCLUDES_REDALERT_H
diff --git a/src/mame/includes/redclash.h b/src/mame/includes/redclash.h
deleted file mode 100644
index 1ccbbabcb2d..00000000000
--- a/src/mame/includes/redclash.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Zero Hour / Red Clash
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_REDCLASH_H
-#define MAME_INCLUDES_REDCLASH_H
-
-#pragma once
-
-#include "video/ladybug.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-// redclash/zerohour
-class redclash_state : public driver_device
-{
-public:
- redclash_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_videoram(*this, "videoram")
- , m_spriteram(*this, "spriteram")
- , m_maincpu(*this, "maincpu")
- , m_palette(*this, "palette")
- , m_gfxdecode(*this, "gfxdecode")
- , m_stars(*this, "stars")
- { }
-
- void redclash(machine_config &config);
- void zerohour(machine_config &config);
-
- void init_redclash();
-
- DECLARE_INPUT_CHANGED_MEMBER(left_coin_inserted);
- DECLARE_INPUT_CHANGED_MEMBER(right_coin_inserted);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void videoram_w(offs_t offset, uint8_t data);
- void gfxbank_w(uint8_t data);
- void flipscreen_w(uint8_t data);
- void irqack_w(uint8_t data);
- void star_reset_w(uint8_t data);
- template <unsigned B> void star_w(uint8_t data);
- void palette(palette_device &palette) const;
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void redclash_map(address_map &map);
- void zerohour_map(address_map &map);
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<zerohour_stars_device> m_stars;
-
- tilemap_t *m_fg_tilemap;
- int m_gfxbank; // redclash only
-};
-
-#endif // MAME_INCLUDES_REDCLASH_H
diff --git a/src/mame/includes/relief.h b/src/mame/includes/relief.h
deleted file mode 100644
index 94d584ebeb0..00000000000
--- a/src/mame/includes/relief.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari "Round" hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_RELIEF_H
-#define MAME_INCLUDES_RELIEF_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "sound/ym2413.h"
-#include "video/atarimo.h"
-#include "video/atarivad.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class relief_state : public driver_device
-{
-public:
- relief_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_vad(*this, "vad"),
- m_oki(*this, "oki"),
- m_ym2413(*this, "ymsnd"),
- m_okibank(*this, "okibank")
- { }
-
- void relief(machine_config &config);
-
- void init_relief();
-
-private:
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint16_t special_port2_r();
- void audio_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void audio_volume_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield2_tile_info);
- uint32_t screen_update_relief(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
- void oki_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<atari_vad_device> m_vad;
- required_device<okim6295_device> m_oki;
- required_device<ym2413_device> m_ym2413;
- required_memory_bank m_okibank;
-
- uint8_t m_ym2413_volume;
- uint8_t m_overall_volume;
- uint8_t m_adpcm_bank;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_RELIEF_H
diff --git a/src/mame/includes/renegade.h b/src/mame/includes/renegade.h
deleted file mode 100644
index aedfbf4e18a..00000000000
--- a/src/mame/includes/renegade.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino, Carlos A. Lozano, Rob Rosenbrock
-#ifndef MAME_INCLUDES_RENEGADE_H
-#define MAME_INCLUDES_RENEGADE_H
-
-#pragma once
-
-#include "machine/taito68705interface.h"
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/msm5205.h"
-#include "tilemap.h"
-#include "screen.h"
-
-class renegade_state : public driver_device
-{
-public:
- renegade_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this,"maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_mcu(*this, "mcu")
- , m_msm(*this, "msm")
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_soundlatch(*this, "soundlatch")
- , m_fg_videoram(*this, "fg_videoram")
- , m_bg_videoram(*this, "bg_videoram")
- , m_spriteram(*this, "spriteram")
- , m_rombank(*this, "rombank")
- , m_adpcmrom(*this, "adpcm")
- {
- }
-
- void renegade(machine_config &config);
- void kuniokunb(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(mcu_status_r);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<taito68705_mcu_device> m_mcu;
- required_device<msm5205_device> m_msm;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_memory_bank m_rombank;
-
- required_region_ptr<uint8_t> m_adpcmrom;
-
- uint32_t m_adpcm_pos;
- uint32_t m_adpcm_end;
- bool m_adpcm_playing;
-
- int32_t m_scrollx;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- uint8_t mcu_reset_r();
- void bankswitch_w(uint8_t data);
- void irq_ack_w(uint8_t data);
- void nmi_ack_w(uint8_t data);
- void fg_videoram_w(offs_t offset, uint8_t data);
- void bg_videoram_w(offs_t offset, uint8_t data);
- void flipscreen_w(uint8_t data);
- void scroll_lsb_w(uint8_t data);
- void scroll_msb_w(uint8_t data);
- void adpcm_start_w(uint8_t data);
- void adpcm_addr_w(uint8_t data);
- void adpcm_stop_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
-
- TILE_GET_INFO_MEMBER(get_bg_tilemap_info);
- TILE_GET_INFO_MEMBER(get_fg_tilemap_info);
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void renegade_map(address_map &map);
- void renegade_nomcu_map(address_map &map);
- void renegade_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_RENEGADE_H
diff --git a/src/mame/includes/retofinv.h b/src/mame/includes/retofinv.h
deleted file mode 100644
index b78ddab6c4b..00000000000
--- a/src/mame/includes/retofinv.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Jarek Parchanski, Andrea Mazzoleni
-#ifndef MAME_INCLUDES_RETOFINV_H
-#define MAME_INCLUDES_RETOFINV_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/taito68705interface.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class retofinv_state : public driver_device
-{
-public:
- retofinv_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_subcpu(*this, "sub")
- , m_68705(*this, "68705")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_mainlatch(*this, "mainlatch")
- , m_fg_videoram(*this, "fg_videoram")
- , m_sharedram(*this, "sharedram")
- , m_bg_videoram(*this, "bg_videoram")
- {
- }
-
- void retofinvb1_nomcu(machine_config &config);
- void retofinvb_nomcu(machine_config &config);
- void retofinv(machine_config &config);
- void retofinvb1(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- void cpu2_m6000_w(uint8_t data);
- uint8_t cpu0_mf800_r();
- DECLARE_WRITE_LINE_MEMBER(irq0_ack_w);
- DECLARE_WRITE_LINE_MEMBER(irq1_ack_w);
- void coincounter_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coinlockout_w);
- uint8_t mcu_status_r();
- void bg_videoram_w(offs_t offset, uint8_t data);
- void fg_videoram_w(offs_t offset, uint8_t data);
- void gfx_ctrl_w(offs_t offset, uint8_t data);
-
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- TILE_GET_INFO_MEMBER(fg_get_tile_info);
-
- void retofinv_palette(palette_device &palette) const;
- void retofinv_bl_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(main_vblank_irq);
- INTERRUPT_GEN_MEMBER(sub_vblank_irq);
-
- void bootleg_map(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sub_map(address_map &map);
-
- void draw_sprites(bitmap_ind16 &bitmap);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- optional_device<taito68705_mcu_device> m_68705;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<ls259_device> m_mainlatch;
-
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_sharedram;
- required_shared_ptr<uint8_t> m_bg_videoram;
-
- uint8_t m_main_irq_mask;
- uint8_t m_sub_irq_mask;
- uint8_t m_cpu2_m6000;
- int m_fg_bank;
- int m_bg_bank;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-};
-
-#endif // MAME_INCLUDES_RETOFINV_H
diff --git a/src/mame/includes/rltennis.h b/src/mame/includes/rltennis.h
deleted file mode 100644
index c7cb7c485ca..00000000000
--- a/src/mame/includes/rltennis.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-#include "sound/dac.h"
-#include <algorithm>
-
-#define RLT_NUM_BLITTER_REGS 8
-#define RLT_NUM_BITMAPS 8
-
-class rltennis_state : public driver_device
-{
-public:
- rltennis_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_dac(*this, "dac%u", 1U),
- m_samples(*this, "samples%u", 1U),
- m_gfx(*this, "gfx"),
- m_data760000(0), m_data740000(0), m_dac_counter(0),
- m_offset_shift(0)
- {
- std::fill(std::begin(m_sample_rom_offset), std::end(m_sample_rom_offset), 0);
- }
-
- void rltennis(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device_array<dac_byte_interface, 2> m_dac;
- required_region_ptr_array<uint8_t, 2> m_samples;
- required_region_ptr<uint8_t> m_gfx;
-
- uint16_t m_blitter[RLT_NUM_BLITTER_REGS];
- int32_t m_data760000;
- int32_t m_data740000;
- int32_t m_dac_counter;
- int32_t m_sample_rom_offset[2];
- int32_t m_offset_shift;
- int32_t m_unk_counter;
- std::unique_ptr<bitmap_ind16> m_tmp_bitmap[RLT_NUM_BITMAPS];
- emu_timer *m_timer;
-
- uint16_t io_r();
- void snd1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void snd2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void blitter_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(interrupt);
- TIMER_CALLBACK_MEMBER(sample_player);
- void ramdac_map(address_map &map);
- void rltennis_main(address_map &map);
-};
diff --git a/src/mame/includes/rm380z.h b/src/mame/includes/rm380z.h
deleted file mode 100644
index 3791f53975a..00000000000
--- a/src/mame/includes/rm380z.h
+++ /dev/null
@@ -1,150 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol,Gabriele D'Antona
-
-/*
-
-Research Machines RM 380Z
-
-*/
-
-#ifndef MAME_INCLUDES_RM380Z_H
-#define MAME_INCLUDES_RM380Z_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "imagedev/cassette.h"
-#include "machine/ram.h"
-#include "imagedev/floppy.h"
-#include "machine/wd_fdc.h"
-#include "machine/keyboard.h"
-
-//
-//
-//
-
-#define RM380Z_MAINCPU_TAG "maincpu"
-#define RM380Z_PORTS_ENABLED_HIGH ( m_port0 & 0x80 )
-#define RM380Z_PORTS_ENABLED_LOW ( ( m_port0 & 0x80 ) == 0x00 )
-
-#define RM380Z_VIDEOMODE_40COL 0x01
-#define RM380Z_VIDEOMODE_80COL 0x02
-
-#define RM380Z_CHDIMX 5
-#define RM380Z_CHDIMY 9
-#define RM380Z_NCX 8
-#define RM380Z_NCY 16
-#define RM380Z_SCREENCOLS 80
-#define RM380Z_SCREENROWS 24
-
-#define RM380Z_VIDEORAM_SIZE 0x600
-#define RM380Z_SCREENSIZE 0x1200
-
-
-//
-//
-//
-
-
-class rm380z_state : public driver_device
-{
-public:
- rm380z_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, RM380Z_MAINCPU_TAG),
- m_cassette(*this, "cassette"),
- m_messram(*this, RAM_TAG),
- m_fdc(*this, "wd1771"),
- m_floppy0(*this, "wd1771:0"),
- m_floppy1(*this, "wd1771:1")
- {
- }
-
- void rm480z(machine_config &config);
- void rm380z(machine_config &config);
-
- void init_rm380z();
- void init_rm380z34d();
- void init_rm380z34e();
- void init_rm480z();
-
-protected:
- virtual void machine_reset() override;
- virtual void machine_start() override;
-
-private:
- void put_point(int charnum,int x,int y,int col);
- void init_graphic_chars();
-
- void putChar(int charnum,int attribs,int x,int y,bitmap_ind16 &bitmap,unsigned char* chsb,int vmode);
- void decode_videoram_char(int pos,uint8_t& chr,uint8_t& attrib);
- void scroll_videoram();
- void config_videomode();
- void check_scroll_register();
-
- int writenum;
-
- uint8_t m_port0;
- uint8_t m_port0_mask;
- uint8_t m_port0_kbd;
- uint8_t m_port1;
- uint8_t m_fbfd;
- uint8_t m_fbfe;
-
- uint8_t m_graphic_chars[0x80][(RM380Z_CHDIMX+1)*(RM380Z_CHDIMY+1)];
-
- uint8_t m_mainVideoram[RM380Z_VIDEORAM_SIZE];
- uint8_t m_vramchars[RM380Z_SCREENSIZE];
- uint8_t m_vramattribs[RM380Z_SCREENSIZE];
- uint8_t m_vram[RM380Z_SCREENSIZE];
-
- int m_rasterlineCtr;
- emu_timer* m_vblankTimer;
-
- int m_old_fbfd;
- int m_old_old_fbfd;
-
- int m_videomode;
- int m_old_videomode;
-
- emu_timer *m_static_vblank_timer;
-
- required_device<cpu_device> m_maincpu;
- optional_device<cassette_image_device> m_cassette;
- optional_device<ram_device> m_messram;
- optional_device<fd1771_device> m_fdc;
- optional_device<floppy_connector> m_floppy0;
- optional_device<floppy_connector> m_floppy1;
-
- void port_write(offs_t offset, uint8_t data);
- uint8_t port_read(offs_t offset);
- void port_write_1b00(offs_t offset, uint8_t data);
- uint8_t port_read_1b00(offs_t offset);
-
- uint8_t videoram_read(offs_t offset);
- void videoram_write(offs_t offset, uint8_t data);
-
- uint8_t rm380z_portlow_r();
- void rm380z_portlow_w(offs_t offset, uint8_t data);
- uint8_t rm380z_porthi_r();
- void rm380z_porthi_w(offs_t offset, uint8_t data);
-
- void disk_0_control(uint8_t data);
-
- void keyboard_put(u8 data);
-
- DECLARE_MACHINE_RESET(rm480z);
-
- void config_memory_map();
- void update_screen(bitmap_ind16 &bitmap);
- uint32_t screen_update_rm380z(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_rm480z(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(static_vblank_timer);
-
- void rm380z_io(address_map &map);
- void rm380z_mem(address_map &map);
- void rm480z_io(address_map &map);
- void rm480z_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_RM380Z_H
diff --git a/src/mame/includes/rmnimbus.h b/src/mame/includes/rmnimbus.h
deleted file mode 100644
index 66cd1cd3f51..00000000000
--- a/src/mame/includes/rmnimbus.h
+++ /dev/null
@@ -1,259 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phill Harvey-Smith, Carl
-/*
- rmnimbus.c
- Machine driver for the Research Machines Nimbus.
-
- Phill Harvey-Smith
- 2009-11-29.
-*/
-#ifndef MAME_INCLUDES_RMNIMBUS_H
-#define MAME_INCLUDES_RMNIMBUS_H
-
-#pragma once
-
-#include "cpu/i86/i186.h"
-#include "cpu/mcs51/mcs51.h"
-#include "machine/z80sio.h"
-#include "machine/wd_fdc.h"
-#include "bus/scsi/scsi.h"
-#include "machine/6522via.h"
-#include "machine/ram.h"
-#include "machine/eepromser.h"
-#include "sound/ay8910.h"
-#include "sound/msm5205.h"
-#include "bus/centronics/ctronics.h"
-#include "emupal.h"
-#include "screen.h"
-
-#define MAINCPU_TAG "maincpu"
-#define IOCPU_TAG "iocpu"
-#define Z80SIO_TAG "z80sio"
-#define FDC_TAG "wd2793"
-#define SCSIBUS_TAG "scsibus"
-#define ER59256_TAG "er59256"
-#define AY8910_TAG "ay8910"
-#define MONO_TAG "mono"
-#define MSM5205_TAG "msm5205"
-#define VIA_TAG "via6522"
-#define CENTRONICS_TAG "centronics"
-
-/* Mouse / Joystick */
-
-#define JOYSTICK0_TAG "joystick0"
-#define MOUSE_BUTTON_TAG "mousebtn"
-#define MOUSEX_TAG "mousex"
-#define MOUSEY_TAG "mousey"
-
-/* Memory controller */
-#define RAM_BANK00_TAG "bank0"
-#define RAM_BANK01_TAG "bank1"
-#define RAM_BANK02_TAG "bank2"
-#define RAM_BANK03_TAG "bank3"
-#define RAM_BANK04_TAG "bank4"
-#define RAM_BANK05_TAG "bank5"
-#define RAM_BANK06_TAG "bank6"
-#define RAM_BANK07_TAG "bank7"
-
-class rmnimbus_state : public driver_device
-{
-public:
- rmnimbus_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, MAINCPU_TAG),
- m_iocpu(*this, IOCPU_TAG),
- m_msm(*this, MSM5205_TAG),
- m_scsibus(*this, SCSIBUS_TAG),
- m_ram(*this, RAM_TAG),
- m_eeprom(*this, ER59256_TAG),
- m_via(*this, VIA_TAG),
- m_centronics(*this, CENTRONICS_TAG),
- m_palette(*this, "palette"),
- m_scsi_data_out(*this, "scsi_data_out"),
- m_scsi_data_in(*this, "scsi_data_in"),
- m_scsi_ctrl_out(*this, "scsi_ctrl_out"),
- m_fdc(*this, FDC_TAG),
- m_z80sio(*this, Z80SIO_TAG),
- m_screen(*this, "screen"),
- m_io_config(*this, "config"),
- m_io_joystick0(*this, JOYSTICK0_TAG),
- m_io_mouse_button(*this, MOUSE_BUTTON_TAG),
- m_io_mousex(*this, MOUSEX_TAG),
- m_io_mousey(*this, MOUSEY_TAG)
- {
- }
-
- static constexpr feature_type imperfect_features() { return feature::MOUSE; }
-
- void nimbus(machine_config &config);
-
- uint32_t m_debug_machine;
-
- void decode_subbios(device_t *device, offs_t pc, uint8_t raw_flag);
- void decode_dos21(device_t *device, offs_t pc);
-
-private:
- required_device<i80186_cpu_device> m_maincpu;
- required_device<i8031_device> m_iocpu;
- required_device<msm5205_device> m_msm;
- required_device<scsi_port_device> m_scsibus;
- required_device<ram_device> m_ram;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<via6522_device> m_via;
- required_device<centronics_device> m_centronics;
- required_device<palette_device> m_palette;
- required_device<output_latch_device> m_scsi_data_out;
- required_device<input_buffer_device> m_scsi_data_in;
- required_device<output_latch_device> m_scsi_ctrl_out;
- required_device<wd2793_device> m_fdc;
- required_device<z80sio_device> m_z80sio;
- required_device<screen_device> m_screen;
- required_ioport m_io_config;
- required_ioport m_io_joystick0;
- required_ioport m_io_mouse_button;
- required_ioport m_io_mousex;
- required_ioport m_io_mousey;
-
- bitmap_ind16 m_video_mem;
-
- uint8_t m_mcu_reg080;
- uint8_t m_iou_reg092;
- uint8_t m_last_playmode;
- uint8_t m_ay8910_a;
- uint16_t m_x, m_y, m_yline;
- uint8_t m_colours, m_mode, m_op;
- uint32_t m_debug_video;
- uint8_t m_vector;
- uint8_t m_eeprom_bits;
- uint8_t m_eeprom_state;
-
- uint8_t nimbus_mcu_r();
- void nimbus_mcu_w(uint8_t data);
- uint8_t scsi_r(offs_t offset);
- void scsi_w(offs_t offset, uint8_t data);
- void fdc_ctl_w(uint8_t data);
- uint8_t nimbus_pc8031_r(offs_t offset);
- void nimbus_pc8031_w(offs_t offset, uint8_t data);
- uint8_t nimbus_pc8031_iou_r(offs_t offset);
- void nimbus_pc8031_iou_w(offs_t offset, uint8_t data);
- uint8_t nimbus_pc8031_port1_r();
- void nimbus_pc8031_port1_w(uint8_t data);
- uint8_t nimbus_pc8031_port3_r();
- void nimbus_pc8031_port3_w(uint8_t data);
- uint8_t nimbus_iou_r(offs_t offset);
- void nimbus_iou_w(offs_t offset, uint8_t data);
- void nimbus_sound_ay8910_porta_w(uint8_t data);
- void nimbus_sound_ay8910_portb_w(uint8_t data);
- uint8_t nimbus_mouse_js_r();
- void nimbus_mouse_js_w(uint8_t data);
- uint16_t nimbus_video_io_r(offs_t offset, uint16_t mem_mask = ~0);
- void nimbus_video_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void video_reset() override;
- uint32_t screen_update_nimbus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(sio_interrupt);
- DECLARE_WRITE_LINE_MEMBER(nimbus_fdc_intrq_w);
- DECLARE_WRITE_LINE_MEMBER(nimbus_fdc_drq_w);
- void nimbus_via_write_portb(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(write_scsi_bsy);
- DECLARE_WRITE_LINE_MEMBER(write_scsi_cd);
- DECLARE_WRITE_LINE_MEMBER(write_scsi_io);
- DECLARE_WRITE_LINE_MEMBER(write_scsi_msg);
- DECLARE_WRITE_LINE_MEMBER(write_scsi_req);
- DECLARE_WRITE_LINE_MEMBER(nimbus_msm5205_vck);
- DECLARE_WRITE_LINE_MEMBER(write_scsi_iena);
-
- uint8_t get_pixel(uint16_t x, uint16_t y);
- uint16_t read_pixel_line(uint16_t x, uint16_t y, uint8_t pixels, uint8_t bpp);
- uint16_t read_pixel_data(uint16_t x, uint16_t y);
- void set_pixel(uint16_t x, uint16_t y, uint8_t colour);
- void set_pixel40(uint16_t x, uint16_t y, uint8_t colour);
- void write_pixel_line(uint16_t x, uint16_t y, uint16_t, uint8_t pixels, uint8_t bpp);
- void move_pixel_line(uint16_t x, uint16_t y, uint8_t width);
- void write_pixel_data(uint16_t x, uint16_t y, uint16_t data);
- void change_palette(uint8_t bank, uint16_t colours);
- void external_int(uint8_t vector, bool state);
- uint8_t cascade_callback();
- void nimbus_bank_memory();
- void memory_reset();
- void fdc_reset();
- uint8_t fdc_driveno(uint8_t drivesel);
- void hdc_reset();
- void hdc_post_rw();
- void hdc_drq(bool state);
- void pc8031_reset();
- //void ipc_dumpregs();
- void iou_reset();
- void rmni_sound_reset();
- void mouse_js_reset();
- void check_scsi_irq();
-
- int m_scsi_iena;
- int m_scsi_msg;
- int m_scsi_bsy;
- int m_scsi_io;
- int m_scsi_cd;
- int m_scsi_req;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- enum
- {
- TIMER_MOUSE
- };
-
- // Static data related to Floppy and SCSI hard disks
- struct
- {
- uint8_t reg400;
- } m_nimbus_drives;
-
- /* 8031 Peripheral controller */
- struct
- {
- uint8_t ipc_in;
- uint8_t ipc_out;
- uint8_t status_in;
- uint8_t status_out;
- } m_ipc_interface;
-
- /* Mouse/Joystick */
- struct
- {
- uint8_t m_mouse_px;
- uint8_t m_mouse_py;
-
- uint8_t m_mouse_x;
- uint8_t m_mouse_y;
- uint8_t m_mouse_pc;
- uint8_t m_mouse_pcx;
- uint8_t m_mouse_pcy;
-
- uint8_t m_intstate_x;
- uint8_t m_intstate_y;
-
- uint8_t m_reg0a4;
-
- emu_timer *m_mouse_timer;
- } m_nimbus_mouse;
-
- void nimbus_io(address_map &map);
- void nimbus_iocpu_io(address_map &map);
- void nimbus_iocpu_mem(address_map &map);
- void nimbus_mem(address_map &map);
-
- void decode_dssi_none(uint16_t ds, uint16_t si, uint8_t raw_flag);
- void decode_dssi_generic(uint16_t ds, uint16_t si, uint8_t raw_flag);
- void decode_dssi_f_fill_area(uint16_t ds, uint16_t si, uint8_t raw_flag);
- void decode_dssi_f_plot_character_string(uint16_t ds, uint16_t si, uint8_t raw_flag);
- void decode_dssi_f_set_new_clt(uint16_t ds, uint16_t si, uint8_t raw_flag);
- void decode_dssi_f_plonk_char(uint16_t ds, uint16_t si, uint8_t raw_flag);
- void decode_dssi_f_rw_sectors(uint16_t ds, uint16_t si, uint8_t raw_flag);
-
- void debug_command(int ref, const std::vector<std::string> &params);
- void video_debug(int ref, const std::vector<std::string> &params);
-};
-
-#endif // MAME_INCLUDES_RMNIMBUS_H
diff --git a/src/mame/includes/rockrage.h b/src/mame/includes/rockrage.h
deleted file mode 100644
index 10674d46d15..00000000000
--- a/src/mame/includes/rockrage.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Rock'n Rage
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ROCKRAGE_H
-#define MAME_INCLUDES_ROCKRAGE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/vlm5030.h"
-#include "video/k007342.h"
-#include "video/k007420.h"
-#include "emupal.h"
-
-class rockrage_state : public driver_device
-{
-public:
- rockrage_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k007342(*this, "k007342"),
- m_k007420(*this, "k007420"),
- m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_rombank(*this, "rombank")
- { }
-
- void rockrage(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k007342_device> m_k007342;
- required_device<k007420_device> m_k007420;
- required_device<vlm5030_device> m_vlm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_memory_bank m_rombank;
-
- /* video-related */
- int m_vreg;
-
- void rockrage_bankswitch_w(uint8_t data);
- void rockrage_sh_irqtrigger_w(uint8_t data);
- void rockrage_vreg_w(uint8_t data);
- uint8_t rockrage_VLM5030_busy_r();
- void rockrage_speech_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void rockrage_palette(palette_device &palette) const;
- uint32_t screen_update_rockrage(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- K007342_CALLBACK_MEMBER(rockrage_tile_callback);
- K007420_CALLBACK_MEMBER(rockrage_sprite_callback);
-
- void rockrage_map(address_map &map);
- void rockrage_sound_map(address_map &map);
- void rockrage_vlm_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ROCKRAGE_H
diff --git a/src/mame/includes/rocnrope.h b/src/mame/includes/rocnrope.h
deleted file mode 100644
index 449fb8074a4..00000000000
--- a/src/mame/includes/rocnrope.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Chris Hardy
-#ifndef MAME_INCLUDES_ROCNROPE_H
-#define MAME_INCLUDES_ROCNROPE_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class rocnrope_state : public driver_device
-{
-public:
- rocnrope_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram_%u", 0U),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_vectors(*this, "vectors")
- { }
-
- void rocnrope(machine_config &config);
-
- void init_rocnrope();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- // memory pointers
- required_shared_ptr_array<uint8_t,2 > m_spriteram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_vectors;
-
- tilemap_t *m_bg_tilemap;
- uint8_t m_irq_mask;
-
- void interrupt_vector_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- template <uint8_t Which> DECLARE_WRITE_LINE_MEMBER(coin_counter_w);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_w);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ROCNROPE_H
diff --git a/src/mame/includes/rohga.h b/src/mame/includes/rohga.h
deleted file mode 100644
index b5cc2ebac28..00000000000
--- a/src/mame/includes/rohga.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Data East 'Rohga' era hardware
-
-*************************************************************************/
-
-#include "sound/okim6295.h"
-#include "cpu/h6280/h6280.h"
-#include "video/deco16ic.h"
-#include "video/decocomn.h"
-#include "video/bufsprite.h"
-#include "video/decospr.h"
-#include "machine/deco146.h"
-#include "machine/deco104.h"
-#include "emupal.h"
-
-class rohga_state : public driver_device
-{
-public:
- rohga_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_ioprot(*this, "ioprot"),
- m_decocomn(*this, "deco_common"),
- m_deco_tilegen(*this, "tilegen%u", 1),
- m_oki(*this, "oki%u", 1),
- m_spriteram(*this, "spriteram%u", 1),
- m_pf_rowscroll(*this, "pf%u_rowscroll", 1),
- m_sprgen(*this, "spritegen%u", 1),
- m_palette(*this, "palette")
- { }
-
- void wizdfire(machine_config &config);
- void nitrobal(machine_config &config);
- void hangzo(machine_config &config);
- void schmeisr(machine_config &config);
- void rohga(machine_config &config);
-
- void init_wizdfire();
- void init_nitrobal();
- void init_schmeisr();
- void init_hangzo();
- void init_rohga();
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device<deco_146_base_device> m_ioprot;
- required_device<decocomn_device> m_decocomn;
- required_device_array<deco16ic_device, 2> m_deco_tilegen;
- required_device_array<okim6295_device, 2> m_oki;
- optional_device_array<buffered_spriteram16_device, 2> m_spriteram;
-
- /* memory pointers */
- optional_shared_ptr_array<u16, 4> m_pf_rowscroll;
-
- optional_device_array<decospr_device, 2> m_sprgen;
-
- required_device<palette_device> m_palette;
-
- u16 irq_ack_r();
- void irq_ack_w(u16 data);
- void rohga_buffer_spriteram16_w(u16 data);
- void sound_bankswitch_w(u8 data);
-
- DECLARE_VIDEO_START(wizdfire);
- u32 screen_update_rohga(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_wizdfire(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_nitrobal(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void mixwizdfirelayer(bitmap_rgb32 &bitmap, const rectangle &cliprect, u16 pri, u16 primask);
- void mixnitroballlayer(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- DECOSPR_PRIORITY_CB_MEMBER(rohga_pri_callback);
- DECOSPR_COLOUR_CB_MEMBER(rohga_col_callback);
- DECOSPR_COLOUR_CB_MEMBER(schmeisr_col_callback);
-
- u16 ioprot_r(offs_t offset);
- void ioprot_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void hangzo_map(address_map &map);
- void hotb_base_map(address_map &map);
- void nitrobal_map(address_map &map);
- void rohga_map(address_map &map);
- void sound_map(address_map &map);
- void schmeisr_map(address_map &map);
- void wizdfire_map(address_map &map);
-};
diff --git a/src/mame/includes/rollerg.h b/src/mame/includes/rollerg.h
deleted file mode 100644
index a26c07dd43a..00000000000
--- a/src/mame/includes/rollerg.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Rollergames
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ROLLERG_H
-#define MAME_INCLUDES_ROLLERG_H
-
-#pragma once
-
-#include "cpu/m6809/konami.h" /* for the callback and the firq irq definition */
-#include "machine/k053252.h"
-#include "video/k051316.h"
-#include "video/k053244_k053245.h"
-#include "video/konami_helper.h"
-
-class rollerg_state : public driver_device
-{
-public:
- rollerg_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k053244(*this, "k053244"),
- m_k051316(*this, "k051316"),
- m_k053252(*this, "k053252")
- { }
-
- void rollerg(machine_config &config);
-
-private:
- enum
- {
- TIMER_NMI
- };
-
- /* misc */
- int m_readzoomroms;
- emu_timer *m_nmi_timer;
-
- /* devices */
- required_device<konami_cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k05324x_device> m_k053244;
- required_device<k051316_device> m_k051316;
- required_device<k053252_device> m_k053252;
- void rollerg_0010_w(uint8_t data);
- uint8_t rollerg_k051316_r(offs_t offset);
- void soundirq_w(uint8_t data);
- void sound_arm_nmi_w(uint8_t data);
- uint8_t pip_r();
- DECLARE_WRITE_LINE_MEMBER(rollerg_irq_ack_w);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_rollerg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- K05324X_CB_MEMBER(sprite_callback);
- K051316_CB_MEMBER(zoom_callback);
- void banking_callback(uint8_t data);
-
- void rollerg_map(address_map &map);
- void rollerg_sound_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_ROLLERG_H
diff --git a/src/mame/includes/rollrace.h b/src/mame/includes/rollrace.h
deleted file mode 100644
index 804f5c73de0..00000000000
--- a/src/mame/includes/rollrace.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli
-#ifndef MAME_INCLUDES_ROLLRACE_H
-#define MAME_INCLUDES_ROLLRACE_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class rollrace_state : public driver_device
-{
-public:
- rollrace_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void rollace2(machine_config &config);
- void rollrace(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- tilemap_t *m_fg_tilemap;
- int m_bkgpage;
- int m_bkgflip;
- int m_chrbank;
- int m_bkgpen;
- int m_bkgcol;
- int m_flipy;
- int m_flipx;
- int m_spritebank;
-
- uint8_t m_nmi_mask;
- uint8_t m_sound_nmi_mask;
-
- uint8_t fake_d800_r();
- void fake_d800_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- void sound_nmi_mask_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE_LINE_MEMBER(charbank_0_w);
- DECLARE_WRITE_LINE_MEMBER(charbank_1_w);
- void bkgpen_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(spritebank_w);
- void backgroundpage_w(uint8_t data);
- void backgroundcolor_w(uint8_t data);
- void flipy_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipx_w);
- void vram_w(offs_t offset, uint8_t data);
- void cram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- void tilemap_refresh_flip();
-
- void rollrace_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(sound_timer_irq);
- void rollrace_map(address_map &map);
- void rollrace_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ROLLRACE_H
diff --git a/src/mame/includes/route16.h b/src/mame/includes/route16.h
deleted file mode 100644
index 74ba1a88699..00000000000
--- a/src/mame/includes/route16.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-#ifndef MAME_INCLUDES_ROUTE16_H
-#define MAME_INCLUDES_ROUTE16_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-
-class route16_state : public driver_device
-{
-public:
- route16_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_cpu1(*this, "cpu1")
- , m_cpu2(*this, "cpu2")
- , m_sharedram(*this, "sharedram")
- , m_videoram1(*this, "videoram1")
- , m_videoram2(*this, "videoram2")
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_key(*this, "KEY%u", 0U)
- , m_protection_data(0)
- {}
-
- void routex(machine_config &config);
- void jongpute(machine_config &config);
- void route16(machine_config &config);
- void vscompmj(machine_config &config);
-
- void init_route16();
- void init_route16a();
- void init_route16c();
- void init_vscompmj();
-
-protected:
- virtual void video_start() override;
-
- void out0_w(uint8_t data);
- void out1_w(uint8_t data);
-private:
- template<bool cpu1> void route16_sharedram_w(offs_t offset, uint8_t data);
- uint8_t route16_prot_read();
- uint8_t routex_prot_read();
- void jongpute_input_port_matrix_w(uint8_t data);
- uint8_t jongpute_p1_matrix_r();
- uint8_t jongpute_p2_matrix_r();
- DECLARE_MACHINE_START(jongpute);
-
- uint32_t screen_update_route16(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-protected:
- uint32_t screen_update_jongpute(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
-private:
- void cpu1_io_map(address_map &map);
- void route16_cpu1_map(address_map &map);
- void route16_cpu2_map(address_map &map);
- void routex_cpu1_map(address_map &map);
- void jongpute_cpu1_map(address_map &map);
- void vscompmj_cpu1_map(address_map &map);
- void vscompmj_decrypted_opcodes(address_map &map);
-
-protected:
- required_device<cpu_device> m_cpu1;
- required_device<cpu_device> m_cpu2;
-
- required_shared_ptr<uint8_t> m_sharedram;
- required_shared_ptr<uint8_t> m_videoram1;
- required_shared_ptr<uint8_t> m_videoram2;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- optional_ioport_array<8> m_key;
- uint8_t m_protection_data;
-
- uint8_t m_jongpute_port_select;
- uint8_t m_flipscreen;
- uint8_t m_palette_1;
- uint8_t m_palette_2;
-};
-
-#endif // MAME_INCLUDES_ROUTE16_H
diff --git a/src/mame/includes/rpunch.h b/src/mame/includes/rpunch.h
deleted file mode 100644
index 1186c758a4d..00000000000
--- a/src/mame/includes/rpunch.h
+++ /dev/null
@@ -1,96 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-#ifndef MAME_INCLUDES_RPUNCH_H
-#define MAME_INCLUDES_RPUNCH_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/upd7759.h"
-#include "video/vsystem_gga.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class rpunch_state : public driver_device
-{
-public:
- rpunch_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch"),
- m_upd7759(*this, "upd"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_gga(*this, "gga"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void svolley(machine_config &config);
- void rpunch(machine_config &config);
- void svolleybl(machine_config &config);
-
- void init_rabiolep();
- void init_svolley();
-
- DECLARE_CUSTOM_INPUT_MEMBER(hi_bits_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
- optional_device<upd7759_device> m_upd7759;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<vsystem_gga_device> m_gga;
-
- required_shared_ptr<u16> m_videoram;
- required_shared_ptr<u16> m_spriteram;
-
- u8 m_upd_rom_bank;
- int m_sprite_palette;
- int m_sprite_xoffs;
- u16 m_videoflags;
- u8 m_sprite_pri;
- u8 m_sprite_num;
- tilemap_t *m_background[2];
- std::unique_ptr<bitmap_ind16> m_pixmap;
- emu_timer *m_crtc_timer;
-
- u16 sound_busy_r();
- u8 pixmap_r(offs_t offset);
- void pixmap_w(offs_t offset, u8 data);
- void videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void videoreg_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void scrollreg_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void gga_w(offs_t offset, u8 data);
- void gga_data_w(offs_t offset, u8 data);
- void sprite_ctrl_w(offs_t offset, u8 data);
- void upd_control_w(u8 data);
- void upd_data_w(u8 data);
- TILE_GET_INFO_MEMBER(get_bg0_tile_info);
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
-
- DECLARE_VIDEO_START(rpunch);
- DECLARE_VIDEO_START(svolley);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(crtc_interrupt_gen);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void sound_map(address_map &map);
- void rpunch_map(address_map &map);
- void svolley_map(address_map &map);
- void svolleybl_main_map(address_map &map);
- void svolleybl_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_RPUNCH_H
diff --git a/src/mame/includes/runaway.h b/src/mame/includes/runaway.h
deleted file mode 100644
index a02da7ba5d2..00000000000
--- a/src/mame/includes/runaway.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-#ifndef MAME_INCLUDES_RUNAWAY_H
-#define MAME_INCLUDES_RUNAWAY_H
-
-#pragma once
-
-#include "machine/er2055.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class runaway_state : public driver_device
-{
-public:
- runaway_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_video_ram(*this, "video_ram")
- , m_sprite_ram(*this, "sprite_ram")
- , m_maincpu(*this, "maincpu")
- , m_earom(*this, "earom")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- { }
-
- void qwak(machine_config &config);
- void runaway(machine_config &config);
-
-private:
- uint8_t runaway_input_r(offs_t offset);
- void runaway_irq_ack_w(uint8_t data);
- uint8_t earom_read();
- void earom_write(offs_t offset, uint8_t data);
- void earom_control_w(uint8_t data);
- void runaway_paletteram_w(offs_t offset, uint8_t data);
- void runaway_video_ram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(tile_bank_w);
- uint8_t runaway_pot_r(offs_t offset);
- TILE_GET_INFO_MEMBER(runaway_get_tile_info);
- TILE_GET_INFO_MEMBER(qwak_get_tile_info);
- DECLARE_VIDEO_START(qwak);
- uint32_t screen_update_runaway(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_qwak(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(interrupt_callback);
- void runaway_map(address_map &map);
- void qwak_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- emu_timer *m_interrupt_timer;
- required_shared_ptr<uint8_t> m_video_ram;
- required_shared_ptr<uint8_t> m_sprite_ram;
- tilemap_t *m_bg_tilemap;
- int m_tile_bank;
- required_device<cpu_device> m_maincpu;
- optional_device<er2055_device> m_earom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-};
-
-#endif // MAME_INCLUDES_RUNAWAY_H
diff --git a/src/mame/includes/rungun.h b/src/mame/includes/rungun.h
deleted file mode 100644
index 8ae9c19910d..00000000000
--- a/src/mame/includes/rungun.h
+++ /dev/null
@@ -1,125 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:R. Belmont
-/*************************************************************************
-
- Run and Gun / Slam Dunk
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_RUNGUN_H
-#define MAME_INCLUDES_RUNGUN_H
-
-#pragma once
-
-#include "sound/k054539.h"
-#include "machine/k053252.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/k053936.h"
-#include "machine/k054321.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class rungun_state : public driver_device
-{
-public:
- rungun_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_k054539_1(*this, "k054539_1"),
- m_k054539_2(*this, "k054539_2"),
- m_k053936(*this, "k053936"),
- m_k055673(*this, "k055673"),
- m_k053252(*this, "k053252"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_palette2(*this, "palette2"),
- m_screen(*this, "screen"),
- m_k054321(*this, "k054321"),
- m_sysreg(*this, "sysreg")
- { }
-
- void rng(machine_config &config);
- void rng_dual(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<k054539_device> m_k054539_1;
- required_device<k054539_device> m_k054539_2;
- required_device<k053936_device> m_k053936;
- required_device<k055673_device> m_k055673;
- required_device<k053252_device> m_k053252;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<palette_device> m_palette2;
- required_device<screen_device> m_screen;
- required_device<k054321_device> m_k054321;
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_sysreg;
-
- /* video-related */
- tilemap_t *m_ttl_tilemap[2];
- tilemap_t *m_936_tilemap[2];
- std::unique_ptr<uint16_t[]> m_psac2_vram;
- std::unique_ptr<uint16_t[]> m_ttl_vram;
- std::unique_ptr<uint16_t[]> m_pal_ram;
- uint8_t m_current_display_bank;
- int m_ttl_gfx_index;
- int m_sprite_colorbase;
-
- uint8_t *m_roz_rom;
- uint8_t m_roz_rombase;
-
- /* sound */
- uint8_t m_sound_ctrl;
- uint8_t m_sound_status;
- uint8_t m_sound_nmi_clk;
-
- bool m_video_priority_mode;
- std::unique_ptr<uint16_t[]> m_banked_ram;
- bool m_single_screen_mode;
- uint8_t m_video_mux_bank;
-
- uint16_t sysregs_r(offs_t offset, uint16_t mem_mask = ~0);
- void sysregs_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_irq_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_status_w(uint8_t data);
- void sound_ctrl_w(uint8_t data);
- uint16_t ttl_ram_r(offs_t offset);
- void ttl_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t psac2_videoram_r(offs_t offset);
- void psac2_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t k53936_rom_r(offs_t offset);
- TILE_GET_INFO_MEMBER(ttl_get_tile_info);
- TILE_GET_INFO_MEMBER(get_rng_936_tile_info);
- DECLARE_WRITE_LINE_MEMBER(k054539_nmi_gen);
- uint16_t palette_read(offs_t offset);
- void palette_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
-
- K055673_CB_MEMBER(sprite_callback);
-
- uint32_t screen_update_rng(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint32_t screen_update_rng_dual_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_rng_dual_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- bitmap_ind16 m_rng_dual_demultiplex_left_temp;
- bitmap_ind16 m_rng_dual_demultiplex_right_temp;
- void sprite_dma_trigger(void);
-
- INTERRUPT_GEN_MEMBER(rng_interrupt);
-
- void rungun_map(address_map &map);
- void rungun_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_RUNGUN_H
diff --git a/src/mame/includes/s11.h b/src/mame/includes/s11.h
deleted file mode 100644
index 5a0429e616b..00000000000
--- a/src/mame/includes/s11.h
+++ /dev/null
@@ -1,166 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic, Robbbert
-/*
- * s11.h
- *
- * Created on: 1/01/2013
- */
-
-#ifndef MAME_INCLUDES_S11_H
-#define MAME_INCLUDES_S11_H
-
-#include "cpu/m6800/m6800.h"
-#include "audio/pinsnd88.h"
-#include "audio/s11c_bg.h"
-#include "machine/6821pia.h"
-#include "machine/genpin.h"
-#include "machine/input_merger.h"
-#include "machine/rescap.h"
-#include "sound/dac.h"
-#include "sound/flt_biquad.h"
-#include "sound/hc55516.h"
-#include "sound/ym2151.h"
-
-// 6802/8 CPU's input clock is 4MHz
-// but because it has an internal /4 divider, its E clock runs at 1/4 that frequency
-#define E_CLOCK (XTAL(4'000'000)/4)
-
-// Length of time in cycles between IRQs on the main 6808 CPU
-// This length is determined by the settings of the W14 and W15 jumpers
-// IRQ pulse width is always 32 cycles
-// All machines I've looked at so far have W14 present and W15 absent
-// which makes the timer int fire every 0x380 E-clocks (1MHz/0x380, ~1.116KHz)
-// It is possible to have W15 present and W14 absent instead,
-// which makes the timer fire every 0x700 E-clocks (1MHz/0x700, ~558Hz)
-// but I am unaware of any games which make use of this feature.
-// define the define below to enable the W15-instead-of-W14 feature.
-#undef S11_W15
-
-class s11_state : public genpin_class
-{
-public:
- s11_state(const machine_config &mconfig, device_type type, const char *tag)
- : genpin_class(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_mainirq(*this, "mainirq")
- , m_piairq(*this, "piairq")
- , m_audiocpu(*this, "audiocpu")
- , m_audioirq(*this, "audioirq")
- , m_hc55516(*this, "hc55516")
- , m_cvsd_filter(*this, "cvsd_filter")
- , m_cvsd_filter2(*this, "cvsd_filter2")
- , m_dac(*this, "dac")
- , m_pias(*this, "pias")
- , m_pia21(*this, "pia21")
- , m_pia24(*this, "pia24")
- , m_pia28(*this, "pia28")
- , m_pia2c(*this, "pia2c")
- , m_pia30(*this, "pia30")
- , m_pia34(*this, "pia34")
- , m_bg(*this, "bg")
- , m_ps88(*this, "ps88")
- , m_digits(*this, "digit%u", 0U)
- , m_swarray(*this, "SW.%u", 0U)
- , m_timer_irq_active(false)
- , m_pia_irq_active(false)
- { }
-
- void s11(machine_config &config);
- void s11_only(machine_config &config);
- void s11_bgs(machine_config &config);
- void s11_bgm(machine_config &config);
-
- void init_s11();
-
- DECLARE_INPUT_CHANGED_MEMBER(main_nmi);
- DECLARE_INPUT_CHANGED_MEMBER(audio_nmi);
-
- uint8_t sound_r();
- void bank_w(uint8_t data);
- void dig0_w(uint8_t data);
- void dig1_w(uint8_t data);
- void lamp0_w(uint8_t data);
- void lamp1_w(uint8_t data) { };
- void sol2_w(uint8_t data) { }; // solenoids 8-15
- void sol3_w(uint8_t data); // solenoids 0-7
- void sound_w(uint8_t data);
-
- void pia2c_pa_w(uint8_t data);
- void pia2c_pb_w(uint8_t data);
- void pia34_pa_w(uint8_t data);
- void pia34_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pia34_cb2_w);
-
- DECLARE_WRITE_LINE_MEMBER(pias_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pias_cb2_w);
- DECLARE_WRITE_LINE_MEMBER(pia21_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pia21_cb2_w) { }; // enable solenoids
- DECLARE_WRITE_LINE_MEMBER(pia24_cb2_w) { }; // dummy to stop error log filling up
- DECLARE_WRITE_LINE_MEMBER(pia28_ca2_w) { }; // comma3&4
- DECLARE_WRITE_LINE_MEMBER(pia28_cb2_w) { }; // comma1&2
- DECLARE_WRITE_LINE_MEMBER(pia30_cb2_w) { }; // dummy to stop error log filling up
- DECLARE_WRITE_LINE_MEMBER(pia_irq);
- DECLARE_WRITE_LINE_MEMBER(main_irq);
-
- uint8_t switch_r();
- void switch_w(uint8_t data);
- uint8_t pia28_w7_r();
-
- void s11_main_map(address_map &map);
- void s11_audio_map(address_map &map);
-
-protected:
- virtual void machine_start() override { m_digits.resolve(); }
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_reset() override;
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<input_merger_device> m_mainirq;
- required_device<input_merger_device> m_piairq;
- // the following devices are optional because certain board variants (i.e. system 11c) do not have the audio section on the mainboard populated
- optional_device<m6802_cpu_device> m_audiocpu;
- optional_device<input_merger_device> m_audioirq;
- optional_device<hc55516_device> m_hc55516;
- optional_device<filter_biquad_device> m_cvsd_filter;
- optional_device<filter_biquad_device> m_cvsd_filter2;
- optional_device<mc1408_device> m_dac;
- optional_device<pia6821_device> m_pias;
- required_device<pia6821_device> m_pia21;
- required_device<pia6821_device> m_pia24;
- required_device<pia6821_device> m_pia28;
- required_device<pia6821_device> m_pia2c;
- required_device<pia6821_device> m_pia30;
- required_device<pia6821_device> m_pia34;
- optional_device<s11c_bg_device> m_bg;
- optional_device<pinsnd88_device> m_ps88;
- output_finder<63> m_digits;
- required_ioport_array<8> m_swarray;
-
- // getters/setters
- uint8_t get_strobe() { return m_strobe; }
- void set_strobe(uint8_t s) { m_strobe = s; }
- uint8_t get_diag() { return m_diag; }
- void set_diag(uint8_t d) { m_diag = d; }
- uint32_t get_segment1() { return m_segment1; }
- void set_segment1(uint32_t s) { m_segment1 = s; }
- uint32_t get_segment2() { return m_segment2; }
- void set_segment2(uint32_t s) { m_segment2 = s; }
- void set_timer(emu_timer* t) { m_irq_timer = t; }
-
- static const device_timer_id TIMER_IRQ = 0;
-
-private:
- uint8_t m_sound_data;
- uint8_t m_strobe;
- uint8_t m_switch_col;
- uint8_t m_diag;
- uint32_t m_segment1;
- uint32_t m_segment2;
- uint32_t m_timer_count;
- emu_timer* m_irq_timer;
- bool m_timer_irq_active;
- bool m_pia_irq_active;
-};
-
-#endif // MAME_INCLUDES_S11_H
diff --git a/src/mame/includes/s11a.h b/src/mame/includes/s11a.h
deleted file mode 100644
index 61e9878dd75..00000000000
--- a/src/mame/includes/s11a.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*
- * s11a.h
- *
- * Created on: 1/01/2013
- */
-
-#ifndef MAME_INCLUDES_S11A_H
-#define MAME_INCLUDES_S11A_H
-
-#include "includes/s11.h"
-
-class s11a_state : public s11_state
-{
-public:
- s11a_state(const machine_config &mconfig, device_type type, const char *tag)
- : s11_state(mconfig, type, tag)
- { }
-
- void s11a_base(machine_config &config);
- void s11a(machine_config &config);
- void s11a_obg(machine_config &config);
-
- void init_s11a();
-
- void dig0_w(uint8_t data);
-};
-
-#endif // MAME_INCLUDES_S11A_H
diff --git a/src/mame/includes/s11b.h b/src/mame/includes/s11b.h
deleted file mode 100644
index 4436e812525..00000000000
--- a/src/mame/includes/s11b.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*
- * s11b.h
- *
- * Created on: 1/01/2013
- */
-
-#ifndef MAME_INCLUDES_S11B_H
-#define MAME_INCLUDES_S11B_H
-
-#include "includes/s11a.h"
-
-class s11b_state : public s11a_state
-{
-public:
- s11b_state(const machine_config &mconfig, device_type type, const char *tag)
- : s11a_state(mconfig, type, tag)
- { }
-
- void s11b_base(machine_config &config);
- void s11b(machine_config &config);
- void s11b_jokerz(machine_config &config);
-
- void init_s11b();
- void init_s11b_invert();
-
-protected:
- virtual void machine_reset() override;
- void set_invert(bool inv) { m_invert = inv; }
-
- void dig1_w(uint8_t data);
- void pia2c_pa_w(uint8_t data);
- void pia2c_pb_w(uint8_t data);
- void pia34_pa_w(uint8_t data);
-
-private:
- bool m_invert; // later System 11B games start expecting inverted data to the display LED segments.
-};
-
-#endif // MAME_INCLUDES_S11B_H
diff --git a/src/mame/includes/s11c.h b/src/mame/includes/s11c.h
deleted file mode 100644
index 6d7709c0b7c..00000000000
--- a/src/mame/includes/s11c.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*
- * s11c.h
- *
- * Created on: 1/01/2013
- */
-
-#ifndef MAME_INCLUDES_S11C_H
-#define MAME_INCLUDES_S11C_H
-
-#include "includes/s11b.h"
-
-class s11c_state : public s11b_state
-{
-public:
- s11c_state(const machine_config &mconfig, device_type type, const char *tag)
- : s11b_state(mconfig, type, tag)
- { }
-
- void s11c(machine_config &config);
-
- void init_s11c();
-
-protected:
- virtual void machine_reset() override;
-};
-
-
-#endif // MAME_INCLUDES_S11C_H
diff --git a/src/mame/includes/sage2.h b/src/mame/includes/sage2.h
deleted file mode 100644
index 86696d48d79..00000000000
--- a/src/mame/includes/sage2.h
+++ /dev/null
@@ -1,100 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-
-#include "cpu/m68000/m68000.h"
-#include "bus/centronics/ctronics.h"
-#include "machine/i8251.h"
-#include "machine/i8255.h"
-#include "bus/ieee488/ieee488.h"
-#include "imagedev/floppy.h"
-#include "machine/pit8253.h"
-#include "machine/pic8259.h"
-#include "machine/ram.h"
-#include "machine/upd765.h"
-
-#define M68000_TAG "u68"
-#define I8255A_0_TAG "u22"
-#define I8255A_1_TAG "u39"
-#define I8253_0_TAG "u74"
-#define I8253_1_TAG "u75"
-#define I8259_TAG "u73"
-#define I8251_0_TAG "u58"
-#define I8251_1_TAG "u67"
-#define UPD765_TAG "u21"
-#define TMS9914_TAG "u6"
-#define CENTRONICS_TAG "centronics"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-
-class sage2_state : public driver_device
-{
-public:
- sage2_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, M68000_TAG)
- , m_pic(*this, I8259_TAG)
- , m_usart0(*this, I8251_0_TAG)
- , m_usart1(*this, I8251_1_TAG)
- , m_fdc(*this, UPD765_TAG)
- , m_ram(*this, RAM_TAG)
- , m_rom(*this, M68000_TAG)
- , m_floppy0(*this, UPD765_TAG ":0")
- , m_floppy1(*this, UPD765_TAG ":1")
- , m_floppy(nullptr)
- , m_centronics(*this, CENTRONICS_TAG)
- , m_ieee488(*this, IEEE488_TAG)
- , m_fdc_int(0)
- , m_fdie(0)
- , m_led(*this, "led0")
- { }
-
- void sage2(machine_config &config);
-
- void init_sage2();
-
-private:
- void update_fdc_int();
-
- uint16_t rom_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER( br1_w );
- DECLARE_WRITE_LINE_MEMBER( br2_w );
- void ppi0_pc_w(uint8_t data);
- uint8_t ppi1_pb_r();
- void ppi1_pc_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER( fdc_irq );
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_ack);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_select);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_fault);
-
- void sage2_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<pic8259_device> m_pic;
- required_device<i8251_device> m_usart0;
- required_device<i8251_device> m_usart1;
- required_device<upd765a_device> m_fdc;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- floppy_image_device *m_floppy;
- required_device<centronics_device> m_centronics;
- required_device<ieee488_device> m_ieee488;
-
- // floppy state
- int m_fdc_int;
- int m_fdie;
-
- int m_centronics_busy;
- int m_centronics_perror;
- int m_centronics_select;
- int m_centronics_fault;
- output_finder<> m_led;
-};
diff --git a/src/mame/includes/saitek_stratos.h b/src/mame/includes/saitek_stratos.h
deleted file mode 100644
index ce23c1f6a46..00000000000
--- a/src/mame/includes/saitek_stratos.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:hap
-/*
-
- Saitek Stratos family chess computers shared class
- Used in: saitek_stratos.cpp (main driver), saitek_corona.cpp
-
-*/
-
-#ifndef MAME_INCLUDES_SAITEK_STRATOS_H
-#define MAME_INCLUDES_SAITEK_STRATOS_H
-
-#pragma once
-
-#include "video/pwm.h"
-
-#include <algorithm>
-
-
-class saitek_stratos_state : public driver_device
-{
-public:
- saitek_stratos_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_display(*this, "display"),
- m_out_digit(*this, "digit%u", 0U),
- m_out_lcd(*this, "lcd%u.%u.%u", 0U, 0U, 0U)
- { }
-
- DECLARE_INPUT_CHANGED_MEMBER(switch_cpu_freq) { set_cpu_freq(); }
- DECLARE_INPUT_CHANGED_MEMBER(acl_button) { if (newval) power_off(); }
- DECLARE_INPUT_CHANGED_MEMBER(go_button);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void device_post_load() override { update_lcd(); }
-
- // devices/pointers
- required_device<cpu_device> m_maincpu;
- required_device<pwm_display_device> m_display;
- output_finder<8+1> m_out_digit;
- output_finder<4, 16, 4> m_out_lcd;
-
- // common handlers
- void clear_lcd() { std::fill(std::begin(m_lcd_data), std::end(m_lcd_data), 0); }
- void update_lcd();
- void power_off();
- void set_cpu_freq();
- void lcd_data_w(u8 data);
-
- bool m_power;
- bool m_lcd_ready;
- u8 m_lcd_count;
- u8 m_lcd_command;
- u8 m_lcd_data[0x40];
-};
-
-INPUT_PORTS_EXTERN( saitek_stratos );
-
-#endif // MAME_INCLUDES_SAITEK_STRATOS_H
diff --git a/src/mame/includes/saturn.h b/src/mame/includes/saturn.h
deleted file mode 100644
index b1a441875cf..00000000000
--- a/src/mame/includes/saturn.h
+++ /dev/null
@@ -1,466 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:David Haywood, Angelo Salese, Olivier Galibert, Mariusz Wojcieszek, R. Belmont
-#ifndef MAME_INCLUDES_SATURN_H
-#define MAME_INCLUDES_SATURN_H
-
-#pragma once
-
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/sh/sh2.h"
-
-#include "debug/debugcon.h"
-#include "debug/debugcmd.h"
-
-#include "machine/315-5881_crypt.h"
-#include "machine/315-5838_317-0229_comp.h"
-#include "machine/sega_scu.h"
-#include "machine/smpc.h"
-#include "machine/timer.h"
-
-#include "sound/scsp.h"
-
-#include "debugger.h"
-#include "emupal.h"
-#include "screen.h"
-
-class saturn_state : public driver_device
-{
-public:
- saturn_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_rom(*this, "bios"),
- m_workram_l(*this, "workram_l"),
- m_workram_h(*this, "workram_h"),
- m_sound_ram(*this, "sound_ram"),
- m_fake_comms(*this, "fake"),
- m_maincpu(*this, "maincpu"),
- m_slave(*this, "slave"),
- m_audiocpu(*this, "audiocpu"),
- m_scsp(*this, "scsp"),
- m_smpc_hle(*this, "smpc"),
- m_scu(*this, "scu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- {
- }
-
- void scsp_irq(offs_t offset, uint8_t data);
-
- // SMPC HLE delegates
- DECLARE_WRITE_LINE_MEMBER(master_sh2_reset_w);
- DECLARE_WRITE_LINE_MEMBER(master_sh2_nmi_w);
- DECLARE_WRITE_LINE_MEMBER(slave_sh2_reset_w);
- DECLARE_WRITE_LINE_MEMBER(sound_68k_reset_w);
- DECLARE_WRITE_LINE_MEMBER(system_reset_w);
- DECLARE_WRITE_LINE_MEMBER(system_halt_w);
- DECLARE_WRITE_LINE_MEMBER(dot_select_w);
-
- DECLARE_WRITE_LINE_MEMBER(m68k_reset_callback);
-
-protected:
- required_region_ptr<uint32_t> m_rom;
- required_shared_ptr<uint32_t> m_workram_l;
- required_shared_ptr<uint32_t> m_workram_h;
- required_shared_ptr<uint16_t> m_sound_ram;
- optional_ioport m_fake_comms;
-
- memory_region *m_cart_reg[4];
- std::unique_ptr<uint8_t[]> m_backupram;
-// std::unique_ptr<uint32_t[]> m_scu_regs;
- std::unique_ptr<uint16_t[]> m_vdp2_regs;
- std::unique_ptr<uint32_t[]> m_vdp2_vram;
- std::unique_ptr<uint32_t[]> m_vdp2_cram;
- std::unique_ptr<uint32_t[]> m_vdp1_vram;
- std::unique_ptr<uint16_t[]> m_vdp1_regs;
-
- uint8_t m_en_68k;
-
- int m_minit_boost;
- int m_sinit_boost;
- attotime m_minit_boost_timeslice;
- attotime m_sinit_boost_timeslice;
-
- struct {
- std::unique_ptr<uint16_t * []> framebuffer_display_lines;
- int framebuffer_mode;
- int framebuffer_double_interlace;
- int fbcr_accessed;
- int framebuffer_width;
- int framebuffer_height;
- int framebuffer_current_display;
- int framebuffer_current_draw;
- int framebuffer_clear_on_next_frame;
- rectangle system_cliprect;
- rectangle user_cliprect;
- std::unique_ptr<uint16_t []> framebuffer[2];
- std::unique_ptr<uint16_t * []> framebuffer_draw_lines;
- std::unique_ptr<uint8_t []> gfx_decode;
- uint16_t lopr;
- uint16_t copr;
- uint16_t ewdr;
-
- int local_x;
- int local_y;
- }m_vdp1;
-
- struct {
- std::unique_ptr<uint8_t[]> gfx_decode;
- bitmap_rgb32 roz_bitmap[2];
- uint8_t dotsel;
- uint8_t pal;
- uint8_t odd;
- uint16_t h_count;
- uint16_t v_count;
- uint8_t exltfg;
- uint8_t exsyfg;
- int old_crmd;
- int old_tvmd;
- }m_vdp2;
-
- required_device<sh2_device> m_maincpu;
- required_device<sh2_device> m_slave;
- required_device<m68000_base_device> m_audiocpu;
- required_device<scsp_device> m_scsp;
- required_device<smpc_hle_device> m_smpc_hle;
- required_device<sega_scu_device> m_scu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- bitmap_rgb32 m_tmpbitmap;
- DECLARE_VIDEO_START(stv_vdp2);
- uint32_t screen_update_stv_vdp2(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(saturn_scanline);
- TIMER_DEVICE_CALLBACK_MEMBER(saturn_slave_scanline);
-
-
- TIMER_CALLBACK_MEMBER(vdp1_draw_end);
- void saturn_soundram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t saturn_soundram_r(offs_t offset);
- void minit_w(uint32_t data);
- void sinit_w(uint32_t data);
- void saturn_minit_w(uint32_t data);
- void saturn_sinit_w(uint32_t data);
- uint8_t saturn_backupram_r(offs_t offset);
- void saturn_backupram_w(offs_t offset, uint8_t data);
-
- int m_scsp_last_line;
-
- uint16_t saturn_vdp1_regs_r(offs_t offset);
- uint32_t saturn_vdp1_vram_r(offs_t offset);
- uint32_t saturn_vdp1_framebuffer0_r(offs_t offset, uint32_t mem_mask = ~0);
-
- void saturn_vdp1_regs_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void saturn_vdp1_vram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void saturn_vdp1_framebuffer0_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t saturn_vdp2_vram_r(offs_t offset);
- uint32_t saturn_vdp2_cram_r(offs_t offset);
- uint16_t saturn_vdp2_regs_r(offs_t offset);
-
- void saturn_vdp2_vram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void saturn_vdp2_cram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void saturn_vdp2_regs_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
-
- /* VDP1 */
- void stv_set_framebuffer_config( void );
- void stv_prepare_framebuffers( void );
- void stv_vdp1_change_framebuffers( void );
- void video_update_vdp1( void );
- void stv_vdp1_process_list( void );
- void stv_vdp1_set_drawpixel( void );
-
- void stv_vdp1_draw_normal_sprite(const rectangle &cliprect, int sprite_type);
- void stv_vdp1_draw_scaled_sprite(const rectangle &cliprect);
- void stv_vdp1_draw_distorted_sprite(const rectangle &cliprect);
- void stv_vdp1_draw_poly_line(const rectangle &cliprect);
- void stv_vdp1_draw_line(const rectangle &cliprect);
- int x2s(int v);
- int y2s(int v);
- void vdp1_fill_quad(const rectangle &cliprect, int patterndata, int xsize, const struct spoint *q);
- void vdp1_fill_line(const rectangle &cliprect, int patterndata, int xsize, int32_t y, int32_t x1, int32_t x2, int32_t u1, int32_t u2, int32_t v1, int32_t v2);
- void (saturn_state::*drawpixel)(int x, int y, int patterndata, int offsetcnt);
- void drawpixel_poly(int x, int y, int patterndata, int offsetcnt);
- void drawpixel_8bpp_trans(int x, int y, int patterndata, int offsetcnt);
- void drawpixel_4bpp_notrans(int x, int y, int patterndata, int offsetcnt);
- void drawpixel_4bpp_trans(int x, int y, int patterndata, int offsetcnt);
- void drawpixel_generic(int x, int y, int patterndata, int offsetcnt);
- void vdp1_fill_slope(const rectangle &cliprect, int patterndata, int xsize,
- int32_t x1, int32_t x2, int32_t sl1, int32_t sl2, int32_t *nx1, int32_t *nx2,
- int32_t u1, int32_t u2, int32_t slu1, int32_t slu2, int32_t *nu1, int32_t *nu2,
- int32_t v1, int32_t v2, int32_t slv1, int32_t slv2, int32_t *nv1, int32_t *nv2,
- int32_t _y1, int32_t y2);
- void stv_vdp1_setup_shading_for_line(int32_t y, int32_t x1, int32_t x2,
- int32_t r1, int32_t g1, int32_t b1,
- int32_t r2, int32_t g2, int32_t b2);
- void stv_vdp1_setup_shading_for_slope(
- int32_t x1, int32_t x2, int32_t sl1, int32_t sl2, int32_t *nx1, int32_t *nx2,
- int32_t r1, int32_t r2, int32_t slr1, int32_t slr2, int32_t *nr1, int32_t *nr2,
- int32_t g1, int32_t g2, int32_t slg1, int32_t slg2, int32_t *ng1, int32_t *ng2,
- int32_t b1, int32_t b2, int32_t slb1, int32_t slb2, int32_t *nb1, int32_t *nb2,
- int32_t _y1, int32_t y2);
- uint16_t stv_vdp1_apply_gouraud_shading( int x, int y, uint16_t pix );
- void stv_vdp1_setup_shading(const struct spoint* q, const rectangle &cliprect);
- uint8_t stv_read_gouraud_table( void );
- void stv_clear_gouraud_shading(void);
-
- void stv_clear_framebuffer( int which_framebuffer );
- void stv_vdp1_state_save_postload( void );
- int stv_vdp1_start ( void );
-
- struct stv_vdp1_poly_scanline
- {
- int32_t x[2];
- int32_t b[2];
- int32_t g[2];
- int32_t r[2];
- int32_t db;
- int32_t dg;
- int32_t dr;
- };
-
- struct stv_vdp1_poly_scanline_data
- {
- int32_t sy, ey;
- struct stv_vdp1_poly_scanline scanline[512];
- };
-
- std::unique_ptr<struct stv_vdp1_poly_scanline_data> stv_vdp1_shading_data;
-
- struct stv_vdp2_sprite_list
- {
- int CMDCTRL, CMDLINK, CMDPMOD, CMDCOLR, CMDSRCA, CMDSIZE, CMDGRDA;
- int CMDXA, CMDYA;
- int CMDXB, CMDYB;
- int CMDXC, CMDYC;
- int CMDXD, CMDYD;
-
- int ispoly;
-
- } stv2_current_sprite;
-
- /* Gouraud shading */
-
- struct _stv_gouraud_shading
- {
- /* Gouraud shading table */
- uint16_t GA;
- uint16_t GB;
- uint16_t GC;
- uint16_t GD;
- } stv_gouraud_shading;
-
- uint16_t m_sprite_colorbank;
-
- /* VDP1 Framebuffer handling */
- int stv_sprite_priorities_used[8];
- int stv_sprite_priorities_usage_valid;
- uint8_t stv_sprite_priorities_in_fb_line[512][8];
-
-
- /* VDP2 */
-
- uint8_t get_vblank( void );
- uint8_t get_hblank( void );
- int get_hcounter( void );
- int get_vcounter( void );
- int get_vblank_duration( void );
- int get_hblank_duration( void );
- int get_pixel_clock( void );
- uint8_t get_odd_bit( void );
- void stv_vdp2_dynamic_res_change( void );
- int get_vblank_start_position( void );
- int get_ystep_count( void );
-
- void refresh_palette_data( void );
- inline int stv_vdp2_window_process(int x,int y);
- void stv_vdp2_get_window0_coordinates(int *s_x, int *e_x, int *s_y, int *e_y, int y);
- void stv_vdp2_get_window1_coordinates(int *s_x, int *e_x, int *s_y, int *e_y, int y);
- int get_window_pixel(int s_x,int e_x,int s_y,int e_y,int x, int y,uint8_t win_num);
- int stv_vdp2_apply_window_on_layer(rectangle &cliprect);
-
- void stv_vdp2_draw_basic_tilemap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void stv_vdp2_draw_basic_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_4bpp_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_8bpp_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_11bpp_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_rgb15_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_rgb32_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void stv_vdp2_drawgfxzoom(bitmap_rgb32 &dest_bmp,const rectangle &clip,gfx_element *gfx, uint32_t code,uint32_t color,int flipx,int flipy,int sx,int sy,int transparency,int scalex, int scaley,int sprite_screen_width, int sprite_screen_height, int alpha);
- void stv_vdp2_drawgfxzoom_rgb555(bitmap_rgb32 &dest_bmp,const rectangle &clip,uint32_t code,uint32_t color,int flipx,int flipy,int sx,int sy,int transparency,int scalex, int scaley,int sprite_screen_width, int sprite_screen_height, int alpha);
- void stv_vdp2_drawgfx_rgb555( bitmap_rgb32 &dest_bmp, const rectangle &clip, uint32_t code, int flipx, int flipy, int sx, int sy, int transparency, int alpha);
- void stv_vdp2_drawgfx_rgb888( bitmap_rgb32 &dest_bmp, const rectangle &clip, uint32_t code, int flipx, int flipy, int sx, int sy, int transparency, int alpha);
-
- void stv_vdp2_drawgfx_alpha(bitmap_rgb32 &dest_bmp,const rectangle &clip,gfx_element *gfx, uint32_t code,uint32_t color, int flipx,int flipy,int offsx,int offsy, int transparency, int alpha);
- void stv_vdp2_drawgfx_transpen(bitmap_rgb32 &dest_bmp,const rectangle &clip,gfx_element *gfx, uint32_t code,uint32_t color, int flipx,int flipy,int offsx,int offsy, int transparency);
-
-
- void stv_vdp2_draw_rotation_screen(bitmap_rgb32 &bitmap, const rectangle &cliprect, int iRP);
- void stv_vdp2_check_tilemap_with_linescroll(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void stv_vdp2_check_tilemap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void stv_vdp2_copy_roz_bitmap(bitmap_rgb32 &bitmap, bitmap_rgb32 &roz_bitmap, const rectangle &cliprect, int iRP, int planesizex, int planesizey, int planerenderedsizex, int planerenderedsizey);
- inline bool stv_vdp2_roz_window(int x, int y);
- inline bool stv_vdp2_roz_mode3_window(int x, int y, int rot_parameter);
- inline int get_roz_window_pixel(int s_x,int e_x,int s_y,int e_y,int x, int y,uint8_t winenable,uint8_t winarea);
- void stv_vdp2_fill_rotation_parameter_table( uint8_t rot_parameter );
- uint8_t stv_vdp2_check_vram_cycle_pattern_registers( uint8_t access_command_pnmdr, uint8_t access_command_cpdr, uint8_t bitmap_enable );
- uint8_t stv_vdp2_is_rotation_applied(void);
- uint8_t stv_vdp2_are_map_registers_equal(void);
- void stv_vdp2_get_map_page( int x, int y, int *_map, int *_page );
-
- void stv_vdp2_draw_mosaic(bitmap_rgb32 &bitmap, const rectangle &cliprect, uint8_t is_roz);
- void stv_vdp2_fade_effects( void );
- void stv_vdp2_compute_color_offset( int *r, int *g, int *b, int cor );
- void stv_vdp2_compute_color_offset_UINT32(rgb_t *rgb, int cor);
- void stv_vdp2_check_fade_control_for_layer( void );
-
- void stv_vdp2_draw_line(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void stv_vdp2_draw_back(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void stv_vdp2_draw_NBG0(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void stv_vdp2_draw_NBG1(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void stv_vdp2_draw_NBG2(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void stv_vdp2_draw_NBG3(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void stv_vdp2_draw_RBG0(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, uint8_t pri);
- int true_vcount[263][4];
-
- void stv_vdp2_state_save_postload( void );
- void stv_vdp2_exit ( void );
- int stv_vdp2_start ( void );
-
- uint8_t m_vdpdebug_roz;
-
- struct stv_vdp2_tilemap_capabilities
- {
- uint8_t enabled;
- uint8_t transparency;
- uint8_t colour_calculation_enabled;
- uint8_t colour_depth;
- uint8_t alpha;
- uint8_t tile_size;
- uint8_t bitmap_enable;
- uint8_t bitmap_size;
- uint8_t bitmap_palette_number;
- uint8_t bitmap_map;
- uint16_t map_offset[16];
- uint8_t map_count;
-
- uint8_t pattern_data_size;
- uint8_t character_number_supplement;
- uint8_t special_priority_register;
- uint8_t special_colour_control_register;
- uint8_t supplementary_palette_bits;
- uint8_t supplementary_character_bits;
-
- int16_t scrollx;
- int16_t scrolly;
- uint32_t incx, incy;
-
- uint8_t linescroll_enable;
- uint8_t linescroll_interval;
- uint32_t linescroll_table_address;
- uint8_t vertical_linescroll_enable;
- uint8_t vertical_cell_scroll_enable;
- uint8_t linezoom_enable;
-
- uint8_t plane_size;
- uint8_t colour_ram_address_offset;
- uint8_t fade_control;
- struct{
- uint8_t logic;
- uint8_t enabled[2];
- uint8_t area[2];
- }window_control;
-
- uint8_t line_screen_enabled;
- uint8_t mosaic_screen_enabled;
- bool roz_mode3;
-
- int layer_name; /* just to keep track */
- } stv2_current_tilemap;
-
- struct rotation_table
- {
- int32_t xst;
- int32_t yst;
- int32_t zst;
- int32_t dxst;
- int32_t dyst;
- int32_t dx;
- int32_t dy;
- int32_t A;
- int32_t B;
- int32_t C;
- int32_t D;
- int32_t E;
- int32_t F;
- int32_t px;
- int32_t py;
- int32_t pz;
- int32_t cx;
- int32_t cy;
- int32_t cz;
- int32_t mx;
- int32_t my;
- int32_t kx;
- int32_t ky;
- uint32_t kast;
- int32_t dkast;
- int32_t dkax;
-
- } stv_current_rotation_parameter_table;
-
- struct _stv_vdp2_layer_data_placement
- {
- uint32_t map_offset_min;
- uint32_t map_offset_max;
- uint32_t tile_offset_min;
- uint32_t tile_offset_max;
- } stv_vdp2_layer_data_placement;
-
- struct _stv_rbg_cache_data
- {
- uint8_t watch_vdp2_vram_writes;
- uint8_t is_cache_dirty;
-
- uint32_t map_offset_min[2];
- uint32_t map_offset_max[2];
- uint32_t tile_offset_min[2];
- uint32_t tile_offset_max[2];
-
- struct stv_vdp2_tilemap_capabilities layer_data[2];
-
- } stv_rbg_cache_data;
-
-// DECLARE_WRITE_LINE_MEMBER(scudsp_end_w);
-// uint16_t scudsp_dma_r(offs_t offset);
-// void scudsp_dma_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
-// void debug_scudma_command(int ref, const std::vector<std::string> &params);
-// void debug_scuirq_command(int ref, const std::vector<std::string> &params);
-// void debug_help_command(int ref, const std::vector<std::string> &params);
-// void debug_commands(int ref, const std::vector<std::string> &params);
-};
-
-
-// These two clocks are synthesized by the 315-5746
-#define MASTER_CLOCK_352 XTAL(14'318'181)*4
-#define MASTER_CLOCK_320 XTAL(14'318'181)*3.75
-#define CEF_1 m_vdp1_regs[0x010/2]|=0x0002
-#define CEF_0 m_vdp1_regs[0x010/2]&=~0x0002
-#define BEF_1 m_vdp1_regs[0x010/2]|=0x0001
-#define BEF_0 m_vdp1_regs[0x010/2]&=~0x0001
-#define STV_VDP1_TVMR ((m_vdp1_regs[0x000/2])&0xffff)
-#define STV_VDP1_VBE ((STV_VDP1_TVMR & 0x0008) >> 3)
-#define STV_VDP1_TVM ((STV_VDP1_TVMR & 0x0007) >> 0)
-
-
-extern gfx_decode_entry const gfx_stv[];
-
-#endif // MAME_INCLUDES_SATURN_H
diff --git a/src/mame/includes/sauro.h b/src/mame/includes/sauro.h
deleted file mode 100644
index 6c13f8b95d1..00000000000
--- a/src/mame/includes/sauro.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-#ifndef MAME_INCLUDES_SAURO_H
-#define MAME_INCLUDES_SAURO_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/gen_latch.h"
-#include "sound/sp0256.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class sauro_state : public driver_device
-{
-public:
- sauro_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sp0256(*this, "speech"),
- m_mainlatch(*this, "mainlatch"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_videoram2(*this, "videoram2"),
- m_colorram2(*this, "colorram2")
- { }
-
- void trckydoc(machine_config &config);
- void tecfri(machine_config &config);
- void sauro(machine_config &config);
- void saurob(machine_config &config);
-
- void init_tecfri();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<sp0256_device> m_sp0256;
- optional_device<ls259_device> m_mainlatch;
- optional_device<generic_latch_8_device> m_soundlatch; // sauro only
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- optional_shared_ptr<uint8_t> m_videoram2;
- optional_shared_ptr<uint8_t> m_colorram2;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_palette_bank;
-
- bool m_irq_enable;
-
- virtual void machine_start() override;
-
- // common
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- DECLARE_WRITE_LINE_MEMBER(irq_reset_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_w);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void scroll_bg_w(uint8_t data);
-
- // sauro specific
- void sauro_sound_command_w(uint8_t data);
- uint8_t sauro_sound_command_r();
- DECLARE_WRITE_LINE_MEMBER(sauro_palette_bank0_w);
- DECLARE_WRITE_LINE_MEMBER(sauro_palette_bank1_w);
- void sauro_scroll_fg_w(uint8_t data);
- void sauro_videoram2_w(offs_t offset, uint8_t data);
- void sauro_colorram2_w(offs_t offset, uint8_t data);
- void adpcm_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info_bg);
- TILE_GET_INFO_MEMBER(get_tile_info_fg);
-
- DECLARE_VIDEO_START(trckydoc);
- DECLARE_VIDEO_START(sauro);
-
- uint32_t screen_update_trckydoc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_sauro(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void sauro_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void trckydoc_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void sauro_io_map(address_map &map);
- void sauro_map(address_map &map);
- void sauro_sound_map(address_map &map);
- void saurob_sound_map(address_map &map);
- void trckydoc_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SAURO_H
diff --git a/src/mame/includes/sbasketb.h b/src/mame/includes/sbasketb.h
deleted file mode 100644
index bf534c6418b..00000000000
--- a/src/mame/includes/sbasketb.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-#ifndef MAME_INCLUDES_SBASKETB_H
-#define MAME_INCLUDES_SBASKETB_H
-
-#pragma once
-
-#include "audio/trackfld.h"
-#include "sound/dac.h"
-#include "sound/sn76496.h"
-#include "sound/vlm5030.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class sbasketb_state : public driver_device
-{
-public:
- sbasketb_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_palettebank(*this, "palettebank"),
- m_scroll(*this, "scroll"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundbrd(*this, "trackfld_audio"),
- m_dac(*this, "dac"),
- m_sn(*this, "snsnd"),
- m_vlm(*this, "vlm"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void sbasketb(machine_config &config);
- void sbasketbu(machine_config &config);
-
- void init_sbasketb();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_palettebank;
- required_shared_ptr<uint8_t> m_scroll;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<trackfld_audio_device> m_soundbrd;
- required_device<dac_8bit_r2r_device> m_dac;
- required_device<sn76489_device> m_sn;
- required_device<vlm5030_device> m_vlm;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- bool m_spriteram_select;
-
- bool m_irq_mask;
- void sbasketb_sh_irqtrigger_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- void sbasketb_videoram_w(offs_t offset, uint8_t data);
- void sbasketb_colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(spriteram_select_w);
-
- uint8_t m_SN76496_latch;
- void konami_SN76496_latch_w(uint8_t data) { m_SN76496_latch = data; };
- void konami_SN76496_w(uint8_t data) { m_sn->write(m_SN76496_latch); };
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void video_start() override;
- void sbasketb_palette(palette_device &palette) const;
- uint32_t screen_update_sbasketb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void sbasketb_map(address_map &map);
- void sbasketb_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SBASKETB_H
diff --git a/src/mame/includes/sbugger.h b/src/mame/includes/sbugger.h
deleted file mode 100644
index 8d754ae1fa0..00000000000
--- a/src/mame/includes/sbugger.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_SBUGGER_H
-#define MAME_INCLUDES_SBUGGER_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class sbugger_state : public driver_device
-{
-public:
- sbugger_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_videoram_attr(*this, "videoram_attr"),
- m_videoram(*this, "videoram")
- { }
-
- void sbugger(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
-
- required_shared_ptr<uint8_t> m_videoram_attr;
- required_shared_ptr<uint8_t> m_videoram;
-
- tilemap_t *m_tilemap;
-
- void videoram_w(offs_t offset, uint8_t data);
- void videoram_attr_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- virtual void video_start() override;
- void sbugger_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void sbugger_io_map(address_map &map);
- void sbugger_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SBUGGER_H
diff --git a/src/mame/includes/scotrsht.h b/src/mame/includes/scotrsht.h
deleted file mode 100644
index c1841c20a4e..00000000000
--- a/src/mame/includes/scotrsht.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Pierpaolo Prazzoli
-#ifndef MAME_INCLUDES_SCOTRSHT_H
-#define MAME_INCLUDES_SCOTRSHT_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class scotrsht_state : public driver_device
-{
-public:
- scotrsht_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_scroll(*this, "scroll")
- { }
-
- void scotrsht(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scroll;
-
- tilemap_t *m_bg_tilemap;
-
- int m_irq_enable;
- int m_charbank;
- int m_palette_bank;
-
- void ctrl_w(uint8_t data);
- void soundlatch_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void charbank_w(uint8_t data);
- void palettebank_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- virtual void video_start() override;
- void scotrsht_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
- void scotrsht_map(address_map &map);
- void scotrsht_sound_map(address_map &map);
- void scotrsht_sound_port(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SCOTRSHT_H
diff --git a/src/mame/includes/scramble.h b/src/mame/includes/scramble.h
deleted file mode 100644
index 526ca6061e0..00000000000
--- a/src/mame/includes/scramble.h
+++ /dev/null
@@ -1,153 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_SCRAMBLE_H
-#define MAME_INCLUDES_SCRAMBLE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/i8255.h"
-#include "includes/galaxold.h"
-#include "sound/digitalk.h"
-#include "sound/flt_rc.h"
-#include "sound/tms5110.h"
-#include "emupal.h"
-
-class scramble_state : public galaxold_state
-{
-public:
- scramble_state(const machine_config &mconfig, device_type type, const char *tag) :
- galaxold_state(mconfig, type, tag),
- m_konami_7474(*this, "konami_7474"),
- m_ppi8255_0(*this, "ppi8255_0"),
- m_ppi8255_1(*this, "ppi8255_1"),
- m_tmsprom(*this, "tmsprom"),
- m_soundram(*this, "soundram"),
- m_digitalker(*this, "digitalker"),
- m_soundlatch(*this, "soundlatch"),
- m_dial(*this, "DIAL"),
- m_cavelon_bank_object(*this, "cavelon_bank")
- {
- }
-
- optional_device<ttl7474_device> m_konami_7474;
- optional_device<i8255_device> m_ppi8255_0;
- optional_device<i8255_device> m_ppi8255_1;
- optional_device<tmsprom_device> m_tmsprom;
- optional_shared_ptr<uint8_t> m_soundram;
- optional_device<digitalker_device> m_digitalker;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- optional_ioport m_dial;
-
- memory_bank_creator m_cavelon_bank_object;
-
- DECLARE_CUSTOM_INPUT_MEMBER(darkplnt_dial_r);
- uint8_t hncholms_prot_r();
- uint8_t scramble_soundram_r(offs_t offset);
- uint8_t mars_ppi8255_0_r(offs_t offset);
- uint8_t mars_ppi8255_1_r(offs_t offset);
- void scramble_soundram_w(offs_t offset, uint8_t data);
- uint8_t scramble_portB_r();
- uint8_t hustler_portB_r();
- void hotshock_sh_irqtrigger_w(uint8_t data);
- uint8_t hotshock_soundlatch_r();
- void mars_ppi8255_0_w(offs_t offset, uint8_t data);
- void mars_ppi8255_1_w(offs_t offset, uint8_t data);
- void ad2083_tms5110_ctrl_w(uint8_t data);
-
- // harem
- void harem_decrypt_bit_w(uint8_t data);
- void harem_decrypt_clk_w(uint8_t data);
- void harem_decrypt_rst_w(uint8_t data);
- uint8_t harem_digitalker_intr_r();
- void harem_digitalker_control_w(uint8_t data);
-
- void init_cavelon();
- void init_mariner();
- void init_scramble_ppi();
- void init_mars();
- void init_hotshock();
- void init_ad2083();
- void init_devilfsh();
- void init_mrkougar();
- void init_harem();
- void init_newsin7a();
-
- void init_scobra();
- void init_stratgyx();
- void init_tazmani2();
- void init_tazmaniet();
- void init_darkplnt();
- void init_rescue();
- void init_minefld();
- void init_hustler();
- void init_hustlerd();
- void init_billiard();
- DECLARE_MACHINE_RESET(scramble);
- DECLARE_MACHINE_RESET(explorer);
- DECLARE_WRITE_LINE_MEMBER(scramble_sh_7474_q_callback);
- uint8_t mariner_protection_1_r();
- uint8_t mariner_protection_2_r();
- uint8_t triplep_pip_r();
- uint8_t triplep_pap_r();
- uint8_t cavelon_banksw_r(offs_t offset);
- void cavelon_banksw_w(offs_t offset, uint8_t data);
- uint8_t hunchbks_mirror_r(address_space &space, offs_t offset);
- void hunchbks_mirror_w(address_space &space, offs_t offset, uint8_t data);
- void scramble_sh_irqtrigger_w(uint8_t data);
- void mrkougar_sh_irqtrigger_w(uint8_t data);
- IRQ_CALLBACK_MEMBER( scramble_sh_irq_callback );
-
- void scramble(machine_config &config);
- void hncholms(machine_config &config);
- void cavelon(machine_config &config);
- void harem(machine_config &config);
- void ad2083(machine_config &config);
- void ad2083_audio(machine_config &config);
- void mrkougar(machine_config &config);
- void mars(machine_config &config);
- void hunchbks(machine_config &config);
- void hotshock(machine_config &config);
- void mariner(machine_config &config);
- void devilfsh(machine_config &config);
- void triplep(machine_config &config);
- void newsin7(machine_config &config);
- void mrkougb(machine_config &config);
- void ad2083_map(address_map &map);
- void ad2083_sound_io_map(address_map &map);
- void ad2083_sound_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void harem_map(address_map &map);
- void harem_sound_io_map(address_map &map);
- void harem_sound_map(address_map &map);
- void hotshock_map(address_map &map);
- void hotshock_sound_io_map(address_map &map);
- void hunchbks_map(address_map &map);
- void hunchbks_readport(address_map &map);
- void mars_map(address_map &map);
- void mrkougar_map(address_map &map);
- void newsin7_map(address_map &map);
- void scramble_map(address_map &map);
- void scramble_sound_io_map(address_map &map);
- void scramble_sound_map(address_map &map);
- void triplep_io_map(address_map &map);
- void triplep_map(address_map &map);
-
-private:
- void cavelon_banksw();
- inline int bit(int i,int n);
- void sh_init();
-
- uint8_t m_cavelon_bank;
-
- // harem
- uint8_t m_harem_decrypt_mode;
- uint8_t m_harem_decrypt_bit;
- uint8_t m_harem_decrypt_clk;
- uint8_t m_harem_decrypt_count;
- std::unique_ptr<uint8_t[]> m_harem_decrypted_data;
- std::unique_ptr<uint8_t[]> m_harem_decrypted_opcodes;
-};
-
-#endif // MAME_INCLUDES_SCRAMBLE_H
diff --git a/src/mame/includes/sderby.h b/src/mame/includes/sderby.h
deleted file mode 100644
index 151d4d861b4..00000000000
--- a/src/mame/includes/sderby.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Roberto Fresca
-#ifndef MAME_INCLUDES_SDERBY_H
-#define MAME_INCLUDES_SDERBY_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class sderby_state : public driver_device
-{
-public:
- sderby_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_md_videoram(*this, "md_videoram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_lamps(*this, "lamp%u", 1U)
- { }
-
- void spacewin(machine_config &config);
- void sderbya(machine_config &config);
- void pmroulet(machine_config &config);
- void shinygld(machine_config &config);
- void sderby(machine_config &config);
- void luckboom(machine_config &config);
-
-private:
- uint16_t sderby_input_r(offs_t offset);
- uint16_t sderbya_input_r(offs_t offset);
- uint16_t roulette_input_r(offs_t offset);
- uint16_t rprot_r();
- void rprot_w(uint16_t data);
- void sderby_out_w(uint16_t data);
- void scmatto_out_w(uint16_t data);
- void roulette_out_w(uint16_t data);
- void sderby_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sderby_md_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sderby_fg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sderby_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_sderby_tile_info);
- TILE_GET_INFO_MEMBER(get_sderby_md_tile_info);
- TILE_GET_INFO_MEMBER(get_sderby_fg_tile_info);
- uint32_t screen_update_sderby(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_pmroulet(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect,int codeshift);
- void luckboom_map(address_map &map);
- void roulette_map(address_map &map);
- void sderby_map(address_map &map);
- void sderbya_map(address_map &map);
- void shinygld_map(address_map &map);
- void spacewin_map(address_map &map);
-
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
-
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_md_videoram;
- required_shared_ptr<uint16_t> m_fg_videoram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- tilemap_t *m_tilemap;
- tilemap_t *m_md_tilemap;
- tilemap_t *m_fg_tilemap;
-
- uint16_t m_scroll[6];
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- output_finder<7> m_lamps;
-};
-
-#endif // MAME_INCLUDES_SDERBY_H
diff --git a/src/mame/includes/segag80r.h b/src/mame/includes/segag80r.h
deleted file mode 100644
index fe04be66d4d..00000000000
--- a/src/mame/includes/segag80r.h
+++ /dev/null
@@ -1,231 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Sega G-80 raster hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SEGAG80R_H
-#define MAME_INCLUDES_SEGAG80R_H
-
-#pragma once
-
-#include "audio/segag80.h"
-#include "audio/segag80r.h"
-#include "audio/segaspeech.h"
-#include "audio/segausb.h"
-#include "machine/i8255.h"
-#include "machine/segag80.h"
-#include "sound/samples.h"
-#include "sound/sn76496.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class sega005_sound_device;
-
-class segag80r_state : public driver_device
-{
-public:
- segag80r_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_mainram(*this, "mainram"),
- m_videoram(*this, "videoram"),
- m_sn1(*this, "sn1"),
- m_sn2(*this, "sn2"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundbrd(*this, "soundbrd"),
- m_samples(*this, "samples"),
- m_speech(*this, "speech"),
- m_g80_audio(*this, "g80sound"),
- m_usbsnd(*this, "usbsnd"),
- m_005snd(*this, "005"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void g80r_base(machine_config &config);
- void monsterb(machine_config &config);
- void sindbadm(machine_config &config);
- void astrob(machine_config &config);
- void pignewt(machine_config &config);
- void monster2(machine_config &config);
- void sega005(machine_config &config);
- void spaceod(machine_config &config);
- void sega005_sound_board(machine_config &config);
- void spaceod_sound_board(machine_config &config);
- void monsterb_sound_board(machine_config &config);
-
- void init_waitstates();
- void init_spaceod();
- void init_sindbadm();
- void init_pignewt();
- void init_monsterb();
- void init_005();
- void init_monster2();
- void init_astrob();
-
- DECLARE_INPUT_CHANGED_MEMBER(service_switch);
-
- uint8_t m_sound_state[2];
- uint8_t m_sound_rate;
- uint16_t m_sound_addr;
- uint8_t m_sound_data;
- uint8_t m_square_state;
- uint8_t m_square_count;
- inline void sega005_update_sound_data();
-
-private:
- enum
- {
- TIMER_VBLANK_LATCH_CLEAR
- };
-
- required_shared_ptr<uint8_t> m_mainram;
- required_shared_ptr<uint8_t> m_videoram;
-
- optional_device<sn76496_device> m_sn1;
- optional_device<sn76496_device> m_sn2;
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<monsterb_sound_device> m_soundbrd;
- optional_device<samples_device> m_samples;
- optional_device<sega_speech_device> m_speech;
- optional_device<segag80_audio_device_base> m_g80_audio;
- optional_device<usb_sound_device> m_usbsnd;
- optional_device<sega005_sound_device> m_005snd;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- std::vector<uint8_t> m_paletteram;
-
- offs_t m_scrambled_write_pc;
-
- segag80_decrypt_func m_decrypt;
- uint8_t m_background_pcb;
- double m_rweights[3];
- double m_gweights[3];
- double m_bweights[2];
- uint8_t m_video_control;
- uint8_t m_video_flip;
- uint8_t m_vblank_latch;
- tilemap_t *m_spaceod_bg_htilemap;
- tilemap_t *m_spaceod_bg_vtilemap;
- uint16_t m_spaceod_hcounter;
- uint16_t m_spaceod_vcounter;
- uint8_t m_spaceod_fixed_color;
- uint8_t m_spaceod_bg_control;
- uint8_t m_spaceod_bg_detect;
- tilemap_t *m_bg_tilemap;
- uint8_t m_bg_enable;
- uint8_t m_bg_char_bank;
- uint16_t m_bg_scrollx;
- uint16_t m_bg_scrolly;
- uint8_t m_pignewt_bg_color_offset;
-
- uint8_t g80r_opcode_r(offs_t offset);
- void mainram_w(offs_t offset, uint8_t data);
- void vidram_w(offs_t offset, uint8_t data);
- void monsterb_vidram_w(offs_t offset, uint8_t data);
- void pignewt_vidram_w(offs_t offset, uint8_t data);
- void sindbadm_vidram_w(offs_t offset, uint8_t data);
- uint8_t mangled_ports_r(offs_t offset);
- uint8_t spaceod_mangled_ports_r(offs_t offset);
- uint8_t spaceod_port_fc_r();
- void coin_count_w(uint8_t data);
- void segag80r_videoram_w(offs_t offset, uint8_t data);
- uint8_t segag80r_video_port_r(offs_t offset);
- void segag80r_video_port_w(offs_t offset, uint8_t data);
- uint8_t spaceod_back_port_r(offs_t offset);
- void spaceod_back_port_w(offs_t offset, uint8_t data);
- void monsterb_videoram_w(offs_t offset, uint8_t data);
- void monsterb_back_port_w(offs_t offset, uint8_t data);
- void pignewt_videoram_w(offs_t offset, uint8_t data);
- void pignewt_back_color_w(offs_t offset, uint8_t data);
- void pignewt_back_port_w(offs_t offset, uint8_t data);
- void sindbadm_videoram_w(offs_t offset, uint8_t data);
- void sindbadm_back_port_w(offs_t offset, uint8_t data);
- void spaceod_sound_w(offs_t offset, uint8_t data);
-
- void usb_ram_w(offs_t offset, uint8_t data);
- void sindbadm_misc_w(uint8_t data);
- void sindbadm_sn1_SN76496_w(uint8_t data);
- void sindbadm_sn2_SN76496_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(spaceod_get_tile_info);
- TILEMAP_MAPPER_MEMBER(spaceod_scan_rows);
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- virtual void machine_start() override;
- virtual void video_start() override;
- uint32_t screen_update_segag80r(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(segag80r_vblank_start);
- IRQ_CALLBACK_MEMBER(segag80r_irq_ack);
- INTERRUPT_GEN_MEMBER(sindbadm_vblank_start);
- void sega005_sound_a_w(uint8_t data);
- void sega005_sound_b_w(uint8_t data);
-
- void vblank_latch_set();
- void g80_set_palette_entry(int entry, uint8_t data);
- void spaceod_bg_init_palette();
- void draw_videoram(bitmap_ind16 &bitmap, const rectangle &cliprect, const uint8_t *transparent_pens);
- void draw_background_spaceod(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_background_page_scroll(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_background_full_scroll(bitmap_ind16 &bitmap, const rectangle &cliprect);
- offs_t decrypt_offset(offs_t offset);
- inline uint8_t demangle(uint8_t d7d6, uint8_t d5d4, uint8_t d3d2, uint8_t d1d0);
- void monsterb_expand_gfx(const char *region);
-
- void g80r_opcodes_map(address_map &map);
- void main_map(address_map &map);
- void main_portmap(address_map &map);
- void main_ppi8255_portmap(address_map &map);
- void sega_315_opcodes_map(address_map &map);
- void sindbadm_portmap(address_map &map);
- void sindbadm_sound_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- emu_timer *m_vblank_latch_clear_timer;
-};
-
-
-/*----------- defined in audio/segag80r.c -----------*/
-
-
-class sega005_sound_device : public device_t,
- public device_sound_interface
-{
-public:
- sega005_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- emu_timer *m_sega005_sound_timer;
- sound_stream *m_sega005_stream;
-
-protected:
- // device-level overrides
- virtual void device_start() override;
-
- // sound stream update overrides
- virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
-
-private:
- // internal state
- TIMER_CALLBACK_MEMBER( sega005_auto_timer );
-};
-
-DECLARE_DEVICE_TYPE(SEGA005, sega005_sound_device)
-
-/*----------- defined in video/segag80r.c -----------*/
-
-#define G80_BACKGROUND_NONE 0
-#define G80_BACKGROUND_SPACEOD 1
-#define G80_BACKGROUND_MONSTERB 2
-#define G80_BACKGROUND_PIGNEWT 3
-#define G80_BACKGROUND_SINDBADM 4
-
-#endif // MAME_INCLUDES_SEGAG80R_H
diff --git a/src/mame/includes/segag80v.h b/src/mame/includes/segag80v.h
deleted file mode 100644
index 0ddf7552821..00000000000
--- a/src/mame/includes/segag80v.h
+++ /dev/null
@@ -1,163 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Sega vector hardware
-
-*************************************************************************/
-
-#include "audio/segaspeech.h"
-#include "audio/segausb.h"
-#include "audio/segag80.h"
-#include "cpu/z80/z80.h"
-#include "machine/segag80.h"
-#include "sound/ay8910.h"
-#include "sound/samples.h"
-#include "video/vector.h"
-
-#include "screen.h"
-
-#define CPU_CLOCK 8000000 /* not used when video boards are connected */
-#define VIDEO_CLOCK 15468480
-
-class segag80v_state : public driver_device
-{
-public:
- segag80v_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_mainrom(*this, "maincpu"),
- m_mainram(*this, "mainram"),
- m_vectorram(*this, "vectorram"),
- m_maincpu(*this, "maincpu"),
- m_samples(*this, "samples"),
- m_speech(*this, "speech"),
- m_usb(*this, "usbsnd"),
- m_g80_audio(*this, "g80sound"),
- m_aysnd(*this, "aysnd"),
- m_vector(*this, "vector"),
- m_screen(*this, "screen"),
- m_d7d6(*this, "D7D6"),
- m_d5d4(*this, "D5D4"),
- m_d3d2(*this, "D3D2"),
- m_d1d0(*this, "D1D0"),
- m_fc(*this, "FC"),
- m_coins(*this, "COINS"),
- m_spinner(*this, "SPINNER"),
- m_mult_data{0,0},
- m_mult_result(0),
- m_spinner_select(0),
- m_spinner_sign(0),
- m_spinner_count(0),
- m_coin_ff_state(0),
- m_coin_last_state(0),
- m_edgint_ff_state(0),
- m_scrambled_write_pc(0),
- m_decrypt(nullptr),
- m_min_x(0),
- m_min_y(0),
- m_draw_end_time(attotime::zero)
- { }
-
- void g80v_base(machine_config &config);
- void tacscan(machine_config &config);
- void elim2(machine_config &config);
- void startrek(machine_config &config);
- void zektor(machine_config &config);
- void spacfury(machine_config &config);
-
- void init_waitstates();
- void init_zektor();
- void init_startrek();
- void init_elim4();
- void init_elim2();
- void init_tacscan();
- void init_spacfury();
-
- DECLARE_READ_LINE_MEMBER(elim4_joint_coin_r);
- DECLARE_READ_LINE_MEMBER(draw_r);
- DECLARE_WRITE_LINE_MEMBER(service_switch_w);
- DECLARE_WRITE_LINE_MEMBER(irq_ack_w);
-
- template<int Index>
- DECLARE_WRITE_LINE_MEMBER( coin_w )
- {
- const u8 mask = 1 << Index;
-
- if (state == 0 && (m_coin_last_state & mask) != 0)
- m_coin_ff_state |= mask;
- else
- m_coin_ff_state &= ~mask;
-
- if (state)
- m_coin_last_state |= mask;
- else
- m_coin_last_state &= ~mask;
-
- update_int();
- }
-
-private:
- required_memory_region m_mainrom;
- required_shared_ptr<u8> m_mainram;
- required_shared_ptr<u8> m_vectorram;
-
- required_device<z80_device> m_maincpu;
- optional_device<samples_device> m_samples;
- optional_device<sega_speech_device> m_speech;
- optional_device<usb_sound_device> m_usb;
- optional_device<segag80_audio_device_base> m_g80_audio;
- optional_device<ay8912_device> m_aysnd;
- required_device<vector_device> m_vector;
- required_device<screen_device> m_screen;
-
- required_ioport m_d7d6;
- required_ioport m_d5d4;
- required_ioport m_d3d2;
- required_ioport m_d1d0;
- required_ioport m_fc;
- optional_ioport m_coins;
- optional_ioport m_spinner;
-
- u8 m_mult_data[2];
- u16 m_mult_result;
- u8 m_spinner_select;
- u8 m_spinner_sign;
- u8 m_spinner_count;
- u8 m_coin_ff_state;
- u8 m_coin_last_state;
- u8 m_edgint_ff_state;
- offs_t m_scrambled_write_pc;
- segag80_decrypt_func m_decrypt;
- int m_min_x;
- int m_min_y;
- attotime m_draw_end_time;
-
- u8 opcode_r(offs_t offset);
- u8 mainrom_r(offs_t offset);
- void mainram_w(offs_t offset, u8 data);
- void vectorram_w(offs_t offset, u8 data);
- u8 mangled_ports_r(offs_t offset);
- void spinner_select_w(u8 data);
- u8 spinner_input_r();
- u8 elim4_input_r();
- void multiply_w(offs_t offset, u8 data);
- u8 multiply_r();
- void coin_count_w(u8 data);
- void unknown_w(u8 data);
- void update_int();
- void vblank_callback(screen_device &screen, bool state);
-
- void usb_ram_w(offs_t offset, u8 data);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- uint32_t screen_update_segag80v(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- inline bool adjust_xy(int rawx, int rawy, int &outx, int &outy);
- void sega_generate_vector_list();
- offs_t decrypt_offset(offs_t offset);
- inline u8 demangle(u8 d7d6, u8 d5d4, u8 d3d2, u8 d1d0);
-
- void main_map(address_map &map);
- void opcodes_map(address_map &map);
- void main_portmap(address_map &map);
-};
diff --git a/src/mame/includes/segahang.h b/src/mame/includes/segahang.h
deleted file mode 100644
index 88841e5eea6..00000000000
--- a/src/mame/includes/segahang.h
+++ /dev/null
@@ -1,157 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Sega System Hang On hardware
-
-***************************************************************************/
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/z80/z80.h"
-#include "machine/adc0804.h"
-#include "machine/i8255.h"
-#include "machine/gen_latch.h"
-#include "video/segaic16.h"
-#include "video/segaic16_road.h"
-#include "video/sega16sp.h"
-#include "screen.h"
-
-
-// ======================> segahang_state
-
-class segahang_state : public sega_16bit_common_base
-{
-public:
- // construction/destruction
- segahang_state(const machine_config &mconfig, device_type type, const char *tag)
- : sega_16bit_common_base(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "subcpu")
- , m_soundcpu(*this, "soundcpu")
- , m_mcu(*this, "mcu")
- , m_i8255_1(*this, "i8255_1")
- , m_i8255_2(*this, "i8255_2")
- , m_adc(*this, "adc")
- , m_screen(*this, "screen")
- , m_sprites(*this, "sprites")
- , m_segaic16vid(*this, "segaic16vid")
- , m_segaic16road(*this, "segaic16road")
- , m_soundlatch(*this, "soundlatch")
- , m_workram(*this, "workram")
- , m_sharrier_video(false)
- , m_adc_select(0)
- , m_adc_ports(*this, "ADC%u", 0U)
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- , m_lamps(*this, "lamp%u", 0U)
- { }
-
- void sound_board_2203(machine_config &config);
- void sound_board_2203x2(machine_config &config);
- void sound_board_2151(machine_config &config);
- void shared_base(machine_config &config);
- void hangon_base(machine_config &config);
- void sharrier_base(machine_config &config);
- void enduror_base(machine_config &config);
- void endurord_base(machine_config &config);
- void endurob2(machine_config &config);
- void shangupb(machine_config &config);
- void enduror(machine_config &config);
- void shangonro(machine_config &config);
- void enduror1d(machine_config &config);
- void endurord(machine_config &config);
- void sharrier(machine_config &config);
- void endurobl(machine_config &config);
- void enduror1(machine_config &config);
- void hangon(machine_config &config);
-
- // game-specific driver init
- void init_generic();
- void init_sharrier();
- void init_enduror();
- void init_endurobl();
- void init_endurob2();
-
-private:
- // PPI read/write callbacks
- void video_lamps_w(uint8_t data);
- void tilemap_sound_w(uint8_t data);
- void sub_control_adc_w(uint8_t data);
- uint8_t adc_status_r();
-
- // main CPU read/write handlers
- uint8_t hangon_inputs_r(offs_t offset);
- uint8_t sharrier_inputs_r(offs_t offset);
- void sync_ppi_w(offs_t offset, uint8_t data);
-
- // ADC0804 read handler
- uint8_t analog_r();
-
- // Z80 sound CPU read/write handlers
- uint8_t sound_data_r();
-
- // I8751-related VBLANK interrupt handlers
- INTERRUPT_GEN_MEMBER( i8751_main_cpu_vblank );
-
- // video updates
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void decrypted_opcodes_map(address_map &map);
- void fd1094_decrypted_opcodes_map(address_map &map);
- void hangon_map(address_map &map);
- void mcu_io_map(address_map &map);
- void sharrier_map(address_map &map);
- void sound_map_2151(address_map &map);
- void sound_map_2203(address_map &map);
- void sound_portmap_2151(address_map &map);
- void sound_portmap_2203(address_map &map);
- void sound_portmap_2203x2(address_map &map);
- void sub_map(address_map &map);
-
- // internal types
- typedef delegate<void ()> i8751_sim_delegate;
-
- // timer IDs
- enum
- {
- TID_INIT_I8751,
- TID_PPI_WRITE
- };
-
- // driver overrides
- virtual void video_start() override;
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void machine_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // I8751 simulations
- void sharrier_i8751_sim();
-
- // devices
- required_device<m68000_device> m_maincpu;
- required_device<m68000_device> m_subcpu;
- required_device<z80_device> m_soundcpu;
- optional_device<i8751_device> m_mcu;
- required_device<i8255_device> m_i8255_1;
- required_device<i8255_device> m_i8255_2;
- required_device<adc0804_device> m_adc;
- required_device<screen_device> m_screen;
- required_device<sega_16bit_sprite_device> m_sprites;
- required_device<segaic16_video_device> m_segaic16vid;
- required_device<segaic16_road_device> m_segaic16road;
- required_device<generic_latch_8_device> m_soundlatch;
-
- // memory pointers
- required_shared_ptr<uint16_t> m_workram;
-
- // configuration
- bool m_sharrier_video;
- i8751_sim_delegate m_i8751_vblank_hook;
-
- // internal state
- uint8_t m_adc_select;
- optional_ioport_array<4> m_adc_ports;
- bool m_shadow;
- optional_shared_ptr<uint16_t> m_decrypted_opcodes;
- output_finder<2> m_lamps;
-};
diff --git a/src/mame/includes/segaipt.h b/src/mame/includes/segaipt.h
deleted file mode 100644
index 029e417d0f1..00000000000
--- a/src/mame/includes/segaipt.h
+++ /dev/null
@@ -1,149 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*******************************************************************************
-
- Input port macros used by many games in multiple Sega drivers
-
-*******************************************************************************/
-
-
-/**************************** Coinage Dip Switches ****************************/
-
-// [standard]
-// | COIN SWITCH 1 | COIN SWITCH 2
-// -----------------+-----------------+-----------------
-// | 1 2 3 4 | 5 6 7 8
-// -----------------+-----------------+-----------------
-// 1COIN 1CREDIT | OFF OFF OFF OFF | OFF OFF OFF OFF
-// 1COIN 2CREDITS | ON OFF OFF OFF | ON OFF OFF OFF
-// 1COIN 3CREDITS | OFF ON OFF OFF | OFF ON OFF OFF
-// 1COIN 4CREDITS | ON ON OFF OFF | ON ON OFF OFF
-// 1COIN 5CREDITS | OFF OFF ON OFF | OFF OFF ON OFF
-// 1COIN 6CREDITS | ON OFF ON OFF | ON OFF ON OFF
-// 2COINS 1CREDIT | OFF ON ON OFF | OFF ON ON OFF
-// 3COINS 1CREDIT | ON ON ON OFF | ON ON ON OFF
-// 4COINS 1CREDIT | OFF OFF OFF ON | OFF OFF OFF ON
-// 2COINS 3CREDITS | ON OFF OFF ON | ON OFF OFF ON
-// -----------------+-----------------+-----------------
-// 2COINS 1CREDIT | OFF ON OFF ON | OFF ON OFF ON
-// 4COINS 2CREDITS | |
-// 5COINS 3CREDITS | |
-// 6COINS 4CREDITS | |
-// -----------------+-----------------+-----------------
-// 2COINS 1CREDIT | ON ON OFF ON | ON ON OFF ON
-// 4COINS 3CREDITS | |
-// -----------------+-----------------+-----------------
-// 1COIN 1CREDIT | OFF OFF ON ON | OFF OFF ON ON
-// 2COINS 2CREDITS | |
-// 3COINS 3CREDITS | |
-// 4COINS 4CREDITS | |
-// 5COINS 6CREDITS | |
-// -----------------+-----------------+-----------------
-// 1COIN 1CREDIT | ON OFF ON ON | ON OFF ON ON
-// 2COINS 2CREDITS | |
-// 3COINS 3CREDITS | |
-// 4COINS 5CREDITS | |
-// -----------------+-----------------+-----------------
-// 1COIN 1CREDIT | OFF ON ON ON | OFF ON ON ON
-// 2COINS 3CREDITS | |
-// -----------------+-----------------+-----------------
-// FREE PLAY | ON ON ON ON & ON ON ON ON
-// -----------------+-----------------+-----------------
-// COIN SWITCH 1 | ON ON ON ON | (anywhere OFF)
-// 1COIN 1CREDIT | |
-// -----------------+-----------------+-----------------
-// COIN SWITCH 2 | (anywhere OFF) | ON ON ON ON
-// 1COIN 1CREDIT | |
-
-// [exception 1] not have free play
-// A few games don't have "FREE PLAY"
-// example "Hang-On Jr."
-// -----------------+-----------------+-----------------
-// 1COIN 1CREDIT | ON ON ON ON | ON ON ON ON
-
-// [exception 2] easy to free play
-// A few games accept "FREE PLAY" with one-side 4bits ON
-// example "Riddle of Pythagoras"
-// -----------------+-----------------+-----------------
-// FREE PLAY | ON ON ON ON | ON ON ON ON
-// | ON ON ON ON | (anywhere OFF)
-// | (anywhere OFF) | ON ON ON ON
-
-#define SEGA_COINAGE_A_PART_H \
- PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x09, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x05, "2 Coins/1 Credit, 5/3, 6/4" ) \
- PORT_DIPSETTING( 0x04, "2 Coins/1 Credit, 4/3" ) \
- PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
-
-#define SEGA_COINAGE_A_PART_L \
- PORT_DIPSETTING( 0x03, "1 Coin/1 Credit, 5/6" ) \
- PORT_DIPSETTING( 0x02, "1 Coin/1 Credit, 4/5" ) \
- PORT_DIPSETTING( 0x01, "1 Coin/1 Credit, 2/3" ) \
- PORT_DIPSETTING( 0x06, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) )
-
-#define SEGA_COINAGE_B_PART_H \
- PORT_DIPSETTING( 0x70, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x90, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x50, "2 Coins/1 Credit, 5/3, 6/4" ) \
- PORT_DIPSETTING( 0x40, "2 Coins/1 Credit, 4/3" ) \
- PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
-#define SEGA_COINAGE_B_PART_L \
- PORT_DIPSETTING( 0x30, "1 Coin/1 Credit, 5/6" ) \
- PORT_DIPSETTING( 0x20, "1 Coin/1 Credit, 4/5" ) \
- PORT_DIPSETTING( 0x10, "1 Coin/1 Credit, 2/3" ) \
- PORT_DIPSETTING( 0x60, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) \
- PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
-
-// [standard]
-#define SEGA_COINAGE_LOC(DIPBANK) \
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":1,2,3,4") \
- SEGA_COINAGE_A_PART_H \
- SEGA_COINAGE_A_PART_L \
- PORT_DIPSETTING( 0x00, "Free Play (if Coin B too) or 1/1" ) \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
- SEGA_COINAGE_B_PART_H \
- SEGA_COINAGE_B_PART_L \
- PORT_DIPSETTING( 0x00, "Free Play (if Coin A too) or 1/1" )
-
-// [exception 1] not have free play (allow duplicated settings, show 0x00)
-#define SEGA_COINAGE_NO_FREE_LOC(DIPBANK) \
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":1,2,3,4") \
- SEGA_COINAGE_A_PART_H \
- PORT_DIPSETTING( 0x00, " 1 Coin/1 Credit" ) \
- SEGA_COINAGE_A_PART_L \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
- SEGA_COINAGE_B_PART_H \
- PORT_DIPSETTING( 0x00, " 1 Coin/1 Credit" ) \
- SEGA_COINAGE_B_PART_L
-
-// [exception 1.1] not have free play (forbid duplicated settings, hide 0x00)
-#define SEGA_COINAGE_NO_FREE_NO_DUP_LOC(DIPBANK) \
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":1,2,3,4") \
- SEGA_COINAGE_A_PART_H \
- SEGA_COINAGE_A_PART_L \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
- SEGA_COINAGE_B_PART_H \
- SEGA_COINAGE_B_PART_L
-
-// [exception 2] easy to free play
-#define SEGA_COINAGE_EASY_FREE_LOC(DIPBANK) \
- PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":1,2,3,4") \
- SEGA_COINAGE_A_PART_H \
- SEGA_COINAGE_A_PART_L \
- PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) \
- PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":5,6,7,8") \
- SEGA_COINAGE_B_PART_H \
- SEGA_COINAGE_B_PART_L \
- PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
diff --git a/src/mame/includes/segaorun.h b/src/mame/includes/segaorun.h
deleted file mode 100644
index 316569dfe7a..00000000000
--- a/src/mame/includes/segaorun.h
+++ /dev/null
@@ -1,171 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Sega Outrun hardware
-
-***************************************************************************/
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/z80/z80.h"
-#include "machine/315_5195.h"
-#include "machine/adc0804.h"
-#include "machine/i8255.h"
-#include "machine/nvram.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "video/segaic16.h"
-#include "video/segaic16_road.h"
-#include "video/sega16sp.h"
-#include "screen.h"
-
-
-// ======================> segaorun_state
-
-class segaorun_state : public sega_16bit_common_base
-{
-public:
- // construction/destruction
- segaorun_state(const machine_config &mconfig, device_type type, const char *tag) :
- sega_16bit_common_base(mconfig, type, tag),
- m_mapper(*this, "mapper"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "subcpu"),
- m_soundcpu(*this, "soundcpu"),
- m_i8255(*this, "i8255"),
- m_adc(*this, "adc"),
- m_nvram(*this, "nvram"),
- m_watchdog(*this, "watchdog"),
- m_screen(*this, "screen"),
- m_sprites(*this, "sprites"),
- m_segaic16vid(*this, "segaic16vid"),
- m_segaic16road(*this, "segaic16road"),
- m_bankmotor_timer(*this, "bankmotor"),
- m_digital_ports(*this, { { "SERVICE", "UNKNOWN", "COINAGE", "DSW" } }),
- m_adc_ports(*this, "ADC.%u", 0),
- m_workram(*this, "workram"),
- m_custom_io_r(*this),
- m_custom_io_w(*this),
- m_custom_map(nullptr),
- m_shangon_video(false),
- m_scanline_timer(nullptr),
- m_irq2_state(0),
- m_adc_select(0),
- m_vblank_irq_state(0),
- m_bankmotor_pos(0x8000),
- m_bankmotor_delta(0)
- { }
-
- void shangon_fd1089b(machine_config &config);
- void outrun_fd1094(machine_config &config);
- void outrundx(machine_config &config);
- void shangon(machine_config &config);
- void outrun_fd1089a(machine_config &config);
- void outrun(machine_config &config);
- void outrun_base(machine_config &config);
-
- // game-specific driver init
- void init_generic();
- void init_outrun();
- void init_outrunb();
- void init_shangon();
-
- CUSTOM_INPUT_MEMBER( bankmotor_pos_r );
-
-protected:
- // PPI read/write handlers
- uint8_t unknown_porta_r();
- uint8_t unknown_portb_r();
- uint8_t unknown_portc_r();
- void unknown_porta_w(uint8_t data);
- void unknown_portb_w(uint8_t data);
- void video_control_w(uint8_t data);
- uint8_t bankmotor_limit_r();
- void bankmotor_control_w(uint8_t data);
-
- // memory mapping
- void memory_mapper(sega_315_5195_mapper_device &mapper, uint8_t index);
-
- // main CPU read/write handlers
- uint16_t misc_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void misc_io_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void nop_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- // video updates
- uint32_t screen_update_outrun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_shangon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void tileram_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0) { m_segaic16vid->tileram_w(offset,data,mem_mask); };
- void textram_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0) { m_segaic16vid->textram_w(offset,data,mem_mask); };
- uint16_t sega_road_control_0_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0) { return m_segaic16road->segaic16_road_control_0_r(); };
- void sega_road_control_0_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0) { m_segaic16road->segaic16_road_control_0_w(offset,data,mem_mask); };
-
- TIMER_DEVICE_CALLBACK_MEMBER(bankmotor_update);
-
- void decrypted_opcodes_map(address_map &map);
- void outrun_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
- void sub_map(address_map &map);
-
- // timer IDs
- enum
- {
- TID_SCANLINE,
- TID_IRQ2_GEN,
- TID_SOUND_WRITE
- };
-
- // device overrides
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // internal helpers
- void update_main_irqs();
- DECLARE_WRITE_LINE_MEMBER(m68k_reset_callback);
-
- // custom I/O
- uint16_t outrun_custom_io_r(address_space &space, offs_t offset);
- void outrun_custom_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t shangon_custom_io_r(address_space &space, offs_t offset);
- void shangon_custom_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t analog_r();
-
- // devices
- required_device<sega_315_5195_mapper_device> m_mapper;
- required_device<m68000_device> m_maincpu;
- required_device<m68000_device> m_subcpu;
- required_device<z80_device> m_soundcpu;
- required_device<i8255_device> m_i8255;
- required_device<adc0804_device> m_adc;
- optional_device<nvram_device> m_nvram;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<screen_device> m_screen;
- required_device<sega_16bit_sprite_device> m_sprites;
- required_device<segaic16_video_device> m_segaic16vid;
- required_device<segaic16_road_device> m_segaic16road;
- optional_device<timer_device> m_bankmotor_timer;
-
- // input ports
- required_ioport_array<4> m_digital_ports;
- optional_ioport_array<8> m_adc_ports;
-
- // memory
- required_shared_ptr<uint16_t> m_workram;
-
- // configuration
- read16m_delegate m_custom_io_r;
- write16s_delegate m_custom_io_w;
- const uint8_t * m_custom_map;
- bool m_shangon_video;
-
- // internal state
- emu_timer * m_scanline_timer;
- emu_timer * m_irq2_gen_timer;
- uint8_t m_irq2_state;
- uint8_t m_adc_select;
- uint8_t m_vblank_irq_state;
- int m_bankmotor_pos;
- int m_bankmotor_delta;
-};
diff --git a/src/mame/includes/segas16a.h b/src/mame/includes/segas16a.h
deleted file mode 100644
index a7c5c9c80e8..00000000000
--- a/src/mame/includes/segas16a.h
+++ /dev/null
@@ -1,211 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Sega pre-System 16 & System 16A hardware
-
-***************************************************************************/
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/mcs48/mcs48.h"
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/z80/z80.h"
-#include "machine/cxd1095.h"
-#include "machine/gen_latch.h"
-#include "machine/i8255.h"
-#include "machine/i8243.h"
-#include "machine/nvram.h"
-#include "machine/watchdog.h"
-#include "sound/ym2151.h"
-#include "video/segaic16.h"
-#include "video/sega16sp.h"
-#include "screen.h"
-
-
-// ======================> segas16a_state
-
-class segas16a_state : public sega_16bit_common_base
-{
-public:
- // construction/destruction
- segas16a_state(const machine_config &mconfig, device_type type, const char *tag)
- : sega_16bit_common_base(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_mcu(*this, "mcu")
- , m_i8255(*this, "i8255")
- , m_ymsnd(*this, "ymsnd")
- , m_n7751(*this, "n7751")
- , m_n7751_i8243(*this, "n7751_8243")
- , m_nvram(*this, "nvram")
- , m_watchdog(*this, "watchdog")
- , m_segaic16vid(*this, "segaic16vid")
- , m_soundlatch(*this, "soundlatch")
- , m_screen(*this, "screen")
- , m_sprites(*this, "sprites")
- , m_cxdio(*this, "cxdio")
- , m_workram(*this, "nvram")
- , m_sound_decrypted_opcodes(*this, "sound_decrypted_opcodes")
- , m_custom_io_r(*this)
- , m_custom_io_w(*this)
- , m_video_control(0)
- , m_mcu_control(0)
- , m_n7751_command(0)
- , m_n7751_rom_address(0)
- , m_last_buttons1(0)
- , m_last_buttons2(0)
- , m_read_port(0)
- , m_mj_input_num(0)
- , m_mj_inputs(*this, "MJ%u", 0U)
- , m_lamps(*this, "lamp%u", 0U)
- { }
-
- void system16a_no7751(machine_config &config);
- void system16a(machine_config &config);
- void system16a_fd1089a_no7751(machine_config &config);
- void system16a_fd1089b_no7751(machine_config &config);
- void system16a_fd1089a(machine_config &config);
- void system16a_fd1094(machine_config &config);
- void system16a_no7751p(machine_config &config);
- void system16a_fd1094_no7751(machine_config &config);
- void system16a_i8751(machine_config &config);
- void system16a_fd1089b(machine_config &config);
- void aceattaca_fd1094(machine_config &config);
-
- // game-specific driver init
- void init_generic();
- void init_dumpmtmt();
- void init_fantzonep();
- void init_sjryukoa();
- void init_aceattaca();
- void init_passsht16a();
- void init_mjleague();
- void init_sdi();
-
-private:
- // PPI read/write callbacks
- void misc_control_w(uint8_t data);
- void tilemap_sound_w(uint8_t data);
-
- // main CPU read/write handlers
- uint16_t standard_io_r(offs_t offset);
- void standard_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t misc_io_r(offs_t offset);
- void misc_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- // Z80 sound CPU read/write handlers
- uint8_t sound_data_r();
- void n7751_command_w(uint8_t data);
- void n7751_control_w(uint8_t data);
- template<int Shift> void n7751_rom_offset_w(uint8_t data);
-
- // N7751 sound generator CPU read/write handlers
- uint8_t n7751_rom_r();
- uint8_t n7751_p2_r();
- void n7751_p2_w(uint8_t data);
-
- // I8751 MCU read/write handlers
- void mcu_control_w(uint8_t data);
- void mcu_io_w(offs_t offset, uint8_t data);
- uint8_t mcu_io_r(address_space &space, offs_t offset);
-
- // I8751-related VBLANK interrupt handlers
- DECLARE_WRITE_LINE_MEMBER(i8751_main_cpu_vblank_w);
-
- // video updates
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void decrypted_opcodes_map(address_map &map);
- void mcu_io_map(address_map &map);
- void sound_decrypted_opcodes_map(address_map &map);
- void sound_map(address_map &map);
- void sound_no7751_portmap(address_map &map);
- void sound_portmap(address_map &map);
- void system16a_map(address_map &map);
-
- // internal types
- typedef delegate<void ()> i8751_sim_delegate;
- typedef delegate<void (uint8_t, uint8_t)> lamp_changed_delegate;
-
- // timer IDs
- enum
- {
- TID_INIT_I8751,
- TID_PPI_WRITE
- };
-
- // driver overrides
- virtual void video_start() override;
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void machine_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // I8751 simulations
- void dumpmtmt_i8751_sim();
-
- // custom I/O handlers
- uint16_t aceattaca_custom_io_r(offs_t offset);
- void aceattaca_custom_io_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t mjleague_custom_io_r(offs_t offset);
- uint16_t passsht16a_custom_io_r(offs_t offset);
- uint16_t sdi_custom_io_r(offs_t offset);
- uint16_t sjryuko_custom_io_r(offs_t offset);
- void sjryuko_lamp_changed_w(uint8_t changed, uint8_t newval);
-
- // devices
- required_device<m68000_device> m_maincpu;
- required_device<z80_device> m_soundcpu;
- optional_device<i8751_device> m_mcu;
- required_device<i8255_device> m_i8255;
- required_device<ym2151_device> m_ymsnd;
- optional_device<n7751_device> m_n7751;
- optional_device<i8243_device> m_n7751_i8243;
- required_device<nvram_device> m_nvram;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<segaic16_video_device> m_segaic16vid;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<screen_device> m_screen;
- required_device<sega_sys16a_sprite_device> m_sprites;
- optional_device<cxd1095_device> m_cxdio;
-
- // memory pointers
- required_shared_ptr<uint16_t> m_workram;
- optional_shared_ptr<uint8_t> m_sound_decrypted_opcodes;
-
- // configuration
- read16sm_delegate m_custom_io_r;
- write16s_delegate m_custom_io_w;
- i8751_sim_delegate m_i8751_vblank_hook;
- lamp_changed_delegate m_lamp_changed_w;
-
- // internal state
- uint8_t m_video_control;
- uint8_t m_mcu_control;
- uint8_t m_n7751_command;
- uint32_t m_n7751_rom_address;
- uint8_t m_last_buttons1;
- uint8_t m_last_buttons2;
- uint8_t m_read_port;
- uint8_t m_mj_input_num;
- optional_ioport_array<6> m_mj_inputs;
- output_finder<2> m_lamps;
-};
-
-class afighter_16a_analog_state : public segas16a_state
-{
-public:
- // construction/destruction
- afighter_16a_analog_state(const machine_config &mconfig, device_type type, const char *tag)
- : segas16a_state(mconfig, type, tag)
- , m_accel(*this, "ACCEL")
- , m_steer(*this, "STEER")
- { }
-
- DECLARE_CUSTOM_INPUT_MEMBER(afighter_accel_r);
- DECLARE_CUSTOM_INPUT_MEMBER(afighter_handl_left_r);
- DECLARE_CUSTOM_INPUT_MEMBER(afighter_handl_right_r);
-
-private:
- required_ioport m_accel;
- required_ioport m_steer;
-};
diff --git a/src/mame/includes/segas16b.h b/src/mame/includes/segas16b.h
deleted file mode 100644
index e0025d9b806..00000000000
--- a/src/mame/includes/segas16b.h
+++ /dev/null
@@ -1,414 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Sega System 16B hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_SEGAS16B_H
-#define MAME_INCLUDES_SEGAS16B_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/z80/z80.h"
-#include "machine/315_5195.h"
-#include "machine/cxd1095.h"
-#include "machine/gen_latch.h"
-#include "machine/nvram.h"
-#include "machine/segaic16.h"
-#include "machine/upd4701.h"
-#include "sound/dac.h"
-#include "sound/upd7759.h"
-#include "sound/ym2151.h"
-#include "sound/ym2413.h"
-#include "video/segaic16.h"
-#include "video/sega16sp.h"
-#include "screen.h"
-
-
-// ======================> segas16b_state
-
-class segas16b_state : public sega_16bit_common_base
-{
-public:
- // construction/destruction
- segas16b_state(const machine_config &mconfig, device_type type, const char *tag)
- : sega_16bit_common_base(mconfig, type, tag)
- , m_mapper(*this, "mapper")
- , m_maincpu(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_mcu(*this, "mcu")
- , m_ym2151(*this, "ym2151")
- , m_ym2413(*this, "ym2413")
- , m_upd7759(*this, "upd")
- , m_multiplier(*this, "multiplier")
- , m_cmptimer_1(*this, "cmptimer_1")
- , m_cmptimer_2(*this, "cmptimer_2")
- , m_nvram(*this, "nvram")
- , m_screen(*this, "screen")
- , m_sprites(*this, "sprites")
- , m_segaic16vid(*this, "segaic16vid")
- , m_soundlatch(*this, "soundlatch")
- , m_cxdio(*this, "cxdio")
- , m_upd4701a(*this, "upd4701a%u", 1U)
- , m_workram(*this, "workram")
- , m_romboard(ROM_BOARD_INVALID)
- , m_tilemap_type(segaic16_video_device::TILEMAP_16B)
- , m_custom_io_r(*this)
- , m_custom_io_w(*this)
- , m_disable_screen_blanking(false)
- , m_i8751_initial_config(nullptr)
- , m_atomicp_sound_divisor(0)
- , m_atomicp_sound_count(0)
- , m_hwc_input_value(0)
- , m_hwc_monitor(*this, "MONITOR")
- , m_hwc_left(*this, "LEFT")
- , m_hwc_right(*this, "RIGHT")
- , m_hwc_left_limit(*this, "LEFT_LIMIT")
- , m_hwc_right_limit(*this, "RIGHT_LIMIT")
- , m_mj_input_num(0)
- , m_mj_last_val(0)
- , m_mj_inputs(*this, "MJ%u", 0U)
- , m_spritepalbase(0x400)
- , m_gfxdecode(*this, "gfxdecode")
- , m_sound_decrypted_opcodes(*this, "sound_decrypted_opcodes")
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- , m_bootleg_scroll(*this, "bootleg_scroll")
- , m_bootleg_page(*this, "bootleg_page")
- , m_lamps(*this, "lamp%u", 0U)
- { }
-
- void rom_5797_fragment(machine_config &config);
- void system16b_fd1094_5797(machine_config &config);
- void fpointbla(machine_config &config);
- void atomicp(machine_config &config);
- void aceattacb_fd1094(machine_config &config);
- void system16b_i8751(machine_config &config);
- void system16c(machine_config &config);
- void system16b_mc8123(machine_config &config);
- void system16b_i8751_5797(machine_config &config);
- void system16b_fd1089a(machine_config &config);
- void system16b_5797(machine_config &config);
- void system16b_split(machine_config &config);
- void system16b_fd1089b(machine_config &config);
- void system16b(machine_config &config);
- void system16b_fd1094(machine_config &config);
- void fpointbl(machine_config &config);
- void lockonph(machine_config &config);
-
- // ROM board-specific driver init
- void init_generic_5521();
- void init_generic_5358();
- void init_generic_5704();
- void init_generic_5358_small();
- void init_generic_5797();
- void init_generic_korean();
- void init_generic_bootleg();
- void init_lockonph();
- // game-specific driver init
- void init_isgsm();
- void init_tturf_5704();
- void init_wb3_5704();
- void init_hwchamp_5521();
- void init_sdi_5358_small();
- void init_fpointbla();
- void init_altbeasj_5521();
- void init_snapper();
- void init_shinobi4_5521();
- void init_defense_5358_small();
- void init_sjryuko_5358_small();
- void init_exctleag_5358();
- void init_tetrbx();
- void init_aceattac_5358();
- void init_passshtj_5358();
- void init_cencourt_5358();
- void init_shinfz();
- void init_dunkshot_5358_small();
- void init_timescan_5358_small();
- void init_shinobi3_5358();
- void init_altbeas4_5521();
- void init_aliensyn7_5358_small();
-
-protected:
- // memory mapping
- void memory_mapper(sega_315_5195_mapper_device &mapper, uint8_t index);
-
- // main CPU read/write handlers
- void rom_5704_bank_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t rom_5797_bank_math_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void rom_5797_bank_math_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t unknown_rgn2_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void unknown_rgn2_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t standard_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void standard_io_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void atomicp_sound_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t bootleg_custom_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void bootleg_custom_io_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- // sound CPU read/write handlers
- void upd7759_control_w(uint8_t data);
- uint8_t upd7759_status_r();
- void sound_w16(uint16_t data);
-
- // other callbacks
- DECLARE_WRITE_LINE_MEMBER(upd7759_generate_nmi);
- INTERRUPT_GEN_MEMBER( i8751_main_cpu_vblank );
- void spin_68k_w(uint8_t data);
-
- // video updates
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void tileram_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0) { m_segaic16vid->tileram_w(offset,data,mem_mask); };
- void textram_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0) { m_segaic16vid->textram_w(offset,data,mem_mask); };
-
- // bootleg stuff
- void tilemap_16b_fpointbl_fill_latch(int i, uint16_t* latched_pageselect, uint16_t* latched_yscroll, uint16_t* latched_xscroll, uint16_t* textram);
-
- void decrypted_opcodes_map(address_map &map);
- void decrypted_opcodes_map_fpointbla(address_map &map);
- void decrypted_opcodes_map_x(address_map &map);
- void fpointbl_map(address_map &map);
- void fpointbl_sound_map(address_map &map);
- void lockonph_map(address_map &map);
- void lockonph_sound_iomap(address_map &map);
- void lockonph_sound_map(address_map &map);
- void map_fpointbla(address_map &map);
- void mcu_io_map(address_map &map);
- void sound_decrypted_opcodes_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
- void bootleg_sound_map(address_map &map);
- void bootleg_sound_portmap(address_map &map);
- void system16b_bootleg_map(address_map &map);
- void system16b_map(address_map &map);
- void system16c_map(address_map &map);
-
- // internal types
- typedef delegate<void ()> i8751_sim_delegate;
-
- // timer IDs
- enum
- {
- TID_INIT_I8751,
- TID_ATOMICP_SOUND_IRQ
- };
-
- // rom board types
- enum segas16b_rom_board
- {
- ROM_BOARD_INVALID,
- ROM_BOARD_171_5358_SMALL, // 171-5358 with smaller ROMs
- ROM_BOARD_171_5358, // 171-5358
- ROM_BOARD_171_5521, // 171-5521
- ROM_BOARD_171_5704, // 171-5704 - don't know any diff between this and 171-5521
- ROM_BOARD_171_5797, // 171-5797
- ROM_BOARD_KOREAN // (custom Korean)
- };
-
- // device overrides
- virtual void video_start() override;
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void machine_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // internal helpers
- void init_generic(segas16b_rom_board rom_board);
-
- // i8751 simulations
- void altbeast_common_i8751_sim(offs_t soundoffs, offs_t inputoffs, int alt_bank);
- void altbeasj_i8751_sim();
- void tturf_i8751_sim();
- void wb3_i8751_sim();
-
- // custom I/O handlers
- uint16_t aceattac_custom_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void aceattac_custom_io_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t dunkshot_custom_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- uint16_t hwchamp_custom_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void hwchamp_custom_io_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t passshtj_custom_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- uint16_t sdi_custom_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- uint16_t sjryuko_custom_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void sjryuko_custom_io_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- // devices
- optional_device<sega_315_5195_mapper_device> m_mapper;
- required_device<m68000_device> m_maincpu;
- optional_device<z80_device> m_soundcpu;
- optional_device<i8751_device> m_mcu;
- optional_device<ym2151_device> m_ym2151;
- optional_device<ym2413_device> m_ym2413;
- optional_device<upd7759_device> m_upd7759;
- optional_device<sega_315_5248_multiplier_device> m_multiplier;
- optional_device<sega_315_5250_compare_timer_device> m_cmptimer_1;
- optional_device<sega_315_5250_compare_timer_device> m_cmptimer_2;
- required_device<nvram_device> m_nvram;
- required_device<screen_device> m_screen;
- optional_device<sega_sys16b_sprite_device> m_sprites;
- required_device<segaic16_video_device> m_segaic16vid;
- optional_device<generic_latch_8_device> m_soundlatch; // not for atomicp
- optional_device<cxd1095_device> m_cxdio; // for aceattac
- optional_device_array<upd4701_device, 2> m_upd4701a; // for aceattac
-
- // memory pointers
- required_shared_ptr<uint16_t> m_workram;
-
- // configuration
- segas16b_rom_board m_romboard;
- int m_tilemap_type;
- read16_delegate m_custom_io_r;
- write16_delegate m_custom_io_w;
- bool m_disable_screen_blanking;
- const uint8_t * m_i8751_initial_config;
- i8751_sim_delegate m_i8751_vblank_hook;
- uint8_t m_atomicp_sound_divisor;
-
- // game-specific state
- uint8_t m_atomicp_sound_count;
- uint8_t m_hwc_input_value;
- optional_ioport m_hwc_monitor;
- optional_ioport m_hwc_left;
- optional_ioport m_hwc_right;
- optional_ioport m_hwc_left_limit;
- optional_ioport m_hwc_right_limit;
- uint8_t m_mj_input_num;
- uint8_t m_mj_last_val;
- optional_ioport_array<6> m_mj_inputs;
- int m_spritepalbase;
-
- required_device<gfxdecode_device> m_gfxdecode;
- optional_shared_ptr<uint8_t> m_sound_decrypted_opcodes;
- optional_shared_ptr<uint16_t> m_decrypted_opcodes;
- optional_shared_ptr<uint16_t> m_bootleg_scroll;
- optional_shared_ptr<uint16_t> m_bootleg_page;
- output_finder<2> m_lamps;
-};
-
-class dfjail_state : public segas16b_state
-{
-public:
- // construction/destruction
- dfjail_state(const machine_config &mconfig, device_type type, const char *tag)
- : segas16b_state(mconfig, type, tag)
- , m_nmi_enable(false)
- , m_dac_data(0)
- , m_dac(*this, "dac")
- { }
-
- void dfjail(machine_config &config);
-
-protected:
- void sound_control_w(uint8_t data);
- void dac_data_w(uint8_t data);
- INTERRUPT_GEN_MEMBER( soundirq_cb );
- bool m_nmi_enable;
- uint16_t m_dac_data;
-
- void dfjail_map(address_map &map);
- void dfjail_sound_iomap(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<dac_word_interface> m_dac;
-};
-
-class afighter_16b_analog_state : public segas16b_state
-{
-public:
- // construction/destruction
- afighter_16b_analog_state(const machine_config &mconfig, device_type type, const char *tag)
- : segas16b_state(mconfig, type, tag)
- , m_accel(*this, "ACCEL")
- , m_steer(*this, "STEER")
- { }
-
- DECLARE_CUSTOM_INPUT_MEMBER(afighter_accel_r);
- DECLARE_CUSTOM_INPUT_MEMBER(afighter_handl_left_r);
- DECLARE_CUSTOM_INPUT_MEMBER(afighter_handl_right_r);
-
-private:
- required_ioport m_accel;
- required_ioport m_steer;
-};
-
-
-// ======================> isgsm_state
-
-class isgsm_state : public segas16b_state
-{
-public:
- // construction/destruction
- isgsm_state(const machine_config &mconfig, device_type type, const char *tag)
- : segas16b_state(mconfig, type, tag)
- , m_read_xor(0)
- , m_cart_addrlatch(0)
- , m_cart_addr(0)
- , m_data_type(0)
- , m_data_addr(0)
- , m_data_mode(0)
- , m_addr_latch(0)
- , m_security_value(0)
- , m_security_latch(0)
- , m_rle_control_position(8)
- , m_rle_control_byte(0)
- , m_rle_latched(false)
- , m_rle_byte(0)
- { }
-
- void isgsm(machine_config &config);
-
- // driver init
- void init_isgsm();
- void init_shinfz();
- void init_tetrbx();
-
-private:
- // read/write handlers
- void cart_addr_high_w(uint16_t data);
- void cart_addr_low_w(uint16_t data);
- uint16_t cart_data_r();
- void data_w(uint16_t data);
- void datatype_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void addr_high_w(uint16_t data);
- void addr_low_w(uint16_t data);
- void cart_security_high_w(uint16_t data);
- void cart_security_low_w(uint16_t data);
- uint16_t cart_security_low_r();
- uint16_t cart_security_high_r();
- void sound_reset_w(uint16_t data);
- void main_bank_change_w(uint16_t data);
-
- // security callbacks
- uint32_t shinfz_security(uint32_t input);
- uint32_t tetrbx_security(uint32_t input);
-
- // driver overrides
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- // configuration
- uint8_t m_read_xor;
- typedef delegate<uint32_t (uint32_t)> security_callback_delegate;
- security_callback_delegate m_security_callback;
-
- // internal state
- uint16_t m_cart_addrlatch;
- uint32_t m_cart_addr;
- uint8_t m_data_type;
- uint32_t m_data_addr;
- uint8_t m_data_mode;
- uint16_t m_addr_latch;
- uint32_t m_security_value;
- uint16_t m_security_latch;
- uint8_t m_rle_control_position;
- uint8_t m_rle_control_byte;
- bool m_rle_latched;
- uint8_t m_rle_byte;
- void isgsm_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SEGAS16B_H
diff --git a/src/mame/includes/segas18.h b/src/mame/includes/segas18.h
deleted file mode 100644
index 2474fa28b58..00000000000
--- a/src/mame/includes/segas18.h
+++ /dev/null
@@ -1,189 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Sega System 16A/16B/18/Outrun/Hang On/X-Board/Y-Board hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_SEGAS18_H
-#define MAME_INCLUDES_SEGAS18_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/z80/z80.h"
-#include "machine/315_5195.h"
-#include "machine/315_5296.h"
-#include "machine/nvram.h"
-#include "machine/upd4701.h"
-#include "video/315_5313.h"
-#include "video/segaic16.h"
-#include "video/sega16sp.h"
-#include "screen.h"
-
-
-// ======================> segas18_state
-
-class segas18_state : public sega_16bit_common_base
-{
-public:
- // construction/destruction
- segas18_state(const machine_config &mconfig, device_type type, const char *tag)
- : sega_16bit_common_base(mconfig, type, tag)
- , m_mapper(*this, "mapper")
- , m_maincpu(*this, "maincpu")
- , m_maincpu_region(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_mcu(*this, "mcu")
- , m_vdp(*this, "gen_vdp")
- , m_io(*this, "io")
- , m_nvram(*this, "nvram")
- , m_screen(*this, "screen")
- , m_sprites(*this, "sprites")
- , m_segaic16vid(*this, "segaic16vid")
- , m_gfxdecode(*this, "gfxdecode")
- , m_upd4701(*this, "upd%u", 1U)
- , m_workram(*this, "workram")
- , m_sprites_region(*this, "sprites")
- , m_soundbank(*this, "soundbank")
- , m_gun_recoil(*this, "P%u_Gun_Recoil", 1U)
- , m_romboard(ROM_BOARD_INVALID)
- , m_custom_io_r(*this)
- , m_custom_io_w(*this)
- , m_grayscale_enable(false)
- , m_vdp_enable(false)
- , m_vdp_mixing(0)
- , m_lghost_value(0)
- , m_lghost_select(0)
- {
- }
-
- void wwally(machine_config &config);
- void system18(machine_config &config);
- void lghost_fd1094(machine_config &config);
- void wwally_fd1094(machine_config &config);
- void system18_fd1094(machine_config &config);
- void system18_fd1094_i8751(machine_config &config);
- void lghost(machine_config &config);
- void system18_i8751(machine_config &config);
-
- // driver init
- void init_ddcrew();
- void init_lghost();
- void init_generic_shad();
- void init_generic_5874();
- void init_wwally();
- void init_generic_5987();
- void init_hamaway();
-
-private:
- // memory mapping
- void memory_mapper(sega_315_5195_mapper_device &mapper, uint8_t index);
-
- // read/write handlers
- void rom_5874_bank_w(uint8_t data);
- void rom_5987_bank_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void rom_837_7525_bank_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void misc_outputs_w(uint8_t data);
- uint16_t misc_io_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0);
- void misc_io_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void soundbank_w(uint8_t data);
-
- // custom I/O
- uint16_t ddcrew_custom_io_r(offs_t offset);
- uint16_t lghost_custom_io_r(offs_t offset);
- void lghost_gun_recoil_w(uint8_t data);
- void lghost_custom_io_w(offs_t offset, uint16_t data);
- uint16_t wwally_custom_io_r(offs_t offset);
- void wwally_custom_io_w(offs_t offset, uint16_t data);
-
- // video rendering
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(vdp_sndirqline_callback_s18);
- DECLARE_WRITE_LINE_MEMBER(vdp_lv6irqline_callback_s18);
- DECLARE_WRITE_LINE_MEMBER(vdp_lv4irqline_callback_s18);
-
- uint16_t genesis_vdp_r(address_space &space, offs_t offset, uint16_t mem_mask = ~0) { return m_vdp->vdp_r(offset, mem_mask); }
- void genesis_vdp_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0) { m_vdp->vdp_w(offset, data, mem_mask); }
- void tileram_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0) { m_segaic16vid->tileram_w(offset, data, mem_mask); }
- void textram_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0) { m_segaic16vid->textram_w(offset, data, mem_mask); }
-
- DECLARE_WRITE_LINE_MEMBER(set_grayscale);
- DECLARE_WRITE_LINE_MEMBER(set_vdp_enable);
-
- void decrypted_opcodes_map(address_map &map);
- void mcu_io_map(address_map &map);
- void pcm_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
- void system18_map(address_map &map);
-
- // timer IDs
- enum
- {
- TID_INITIAL_BOOST
- };
-
- // rom board types
- enum segas18_rom_board
- {
- ROM_BOARD_INVALID,
- ROM_BOARD_171_SHADOW, // 171-???? -- used by shadow dancer
- ROM_BOARD_171_5874, // 171-5874
- ROM_BOARD_171_5987, // 171-5987
- ROM_BOARD_837_7525 // Hammer Away proto
- };
-
- // device overrides
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // internal helpers
- void init_generic(segas18_rom_board rom_board);
- void set_vdp_mixing(uint8_t mixing);
- void draw_vdp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int priority);
-
- // devices
- required_device<sega_315_5195_mapper_device> m_mapper;
- required_device<m68000_device> m_maincpu;
- required_memory_region m_maincpu_region;
- required_device<z80_device> m_soundcpu;
- optional_device<i8751_device> m_mcu;
- required_device<sega315_5313_device> m_vdp;
- required_device<sega_315_5296_device> m_io;
- required_device<nvram_device> m_nvram;
- required_device<screen_device> m_screen;
- required_device<sega_sys16b_sprite_device> m_sprites;
- required_device<segaic16_video_device> m_segaic16vid;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_device_array<upd4701_device, 3> m_upd4701;
-
- // memory pointers
- required_shared_ptr<uint16_t> m_workram;
-
- required_memory_region m_sprites_region;
- optional_memory_bank m_soundbank;
-
- output_finder<3> m_gun_recoil;
-
- // configuration
- segas18_rom_board m_romboard;
- read16sm_delegate m_custom_io_r;
- write16sm_delegate m_custom_io_w;
-
- // internal state
- int m_grayscale_enable;
- int m_vdp_enable;
- uint8_t m_vdp_mixing;
- bitmap_ind16 m_temp_bitmap;
-
- // game-specific state
- uint8_t m_lghost_value;
- uint8_t m_lghost_select;
-};
-
-#endif // MAME_INCLUDES_SEGAS18_H
diff --git a/src/mame/includes/segas24.h b/src/mame/includes/segas24.h
deleted file mode 100644
index 8b9a0f41880..00000000000
--- a/src/mame/includes/segas24.h
+++ /dev/null
@@ -1,204 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Olivier Galibert
-/*
- * Sega System 24
- *
- */
-#ifndef MAME_INCLUDES_SEGAS24_H
-#define MAME_INCLUDES_SEGAS24_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "video/segaic24.h"
-#include "emupal.h"
-#include "screen.h"
-
-class segas24_state : public driver_device
-{
-public:
- segas24_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "subcpu")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_paletteram(*this, "paletteram")
- , m_romboard(*this, "romboard")
- , m_floppy(*this, "floppy")
- , m_rombank(*this, "rombank%u", 1U)
- , m_irq_timer(*this, "irq_timer")
- , m_irq_timer_clear(*this, "irq_timer_clear")
- , m_frc_cnt_timer(*this, "frc_timer")
- , m_vtile(*this, "tile")
- , m_vsprite(*this, "sprite")
- , m_vmixer(*this, "mixer")
- , m_gground_hack_timer(nullptr)
- , m_p1(*this, "P1")
- , m_p2(*this, "P2")
- , m_p3(*this, "P3")
- , m_paddle(*this, "PADDLE")
- , m_mj_inputs(*this, {"MJ0", "MJ1", "MJ2", "MJ3", "MJ4", "MJ5", "P1", "P2"})
- {
- }
-
- void init_crkdown();
- void init_quizmeku();
- void init_qrouka();
- void init_roughrac();
- void init_qgh();
- void init_gground();
- void init_mahmajn2();
- void init_sspiritj();
- void init_mahmajn();
- void init_hotrod();
- void init_sspirits();
- void init_dcclub();
- void init_bnzabros();
- void init_dcclubfd();
- void init_qsww();
- void init_sgmast();
-
- void dcclub(machine_config &config);
- void dcclubj(machine_config &config);
- void mahmajn(machine_config &config);
- void sgmastj(machine_config &config);
- void system24_floppy(machine_config &config);
- void system24_floppy_dcclub(machine_config &config);
- void system24_floppy_fd1094(machine_config &config);
- void system24_floppy_fd_upd(machine_config &config);
- void system24_floppy_hotrod(machine_config &config);
- void system24_floppy_rom(machine_config &config);
- void system24_rom(machine_config &config);
- void system24(machine_config &config);
-
-protected:
- virtual void device_post_load() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_shared_ptr<uint16_t> m_paletteram;
- optional_memory_region m_romboard;
- optional_region_ptr<uint8_t> m_floppy;
-
- optional_memory_bank_array<2> m_rombank;
-
- static const uint8_t s_mahmajn_mlt[8];
- static const uint8_t s_mahmajn2_mlt[8];
- static const uint8_t s_qgh_mlt[8];
- static const uint8_t s_bnzabros_mlt[8];
- static const uint8_t s_qrouka_mlt[8];
- static const uint8_t s_quizmeku_mlt[8];
- static const uint8_t s_dcclub_mlt[8];
-
- uint8_t m_fdc_track_side;
- uint8_t m_fdc_mode;
- int m_fdc_status;
- int m_fdc_track;
- int m_fdc_sector;
- int m_fdc_data;
- int m_fdc_phys_track;
- bool m_fdc_irq;
- bool m_fdc_drq;
- int m_fdc_span;
- int m_fdc_index_count;
- uint8_t *m_fdc_pt;
- int m_track_size;
- int m_cur_input_line;
- uint8_t m_curbank;
- uint8_t m_mlatch;
- const uint8_t *m_mlatch_table;
-
- uint16_t m_irq_tdata, m_irq_tval;
- uint8_t m_irq_tmode, m_irq_allow0, m_irq_allow1;
- bool m_irq_timer_pend0;
- bool m_irq_timer_pend1;
- bool m_irq_yms;
- bool m_irq_vblank;
- bool m_irq_sprite;
- attotime m_irq_synctime, m_irq_vsynctime;
- required_device<timer_device> m_irq_timer;
- required_device<timer_device> m_irq_timer_clear;
- //timer_device *m_irq_frc;
- required_device<timer_device> m_frc_cnt_timer;
- uint8_t m_frc_mode;
-
- bool m_cnt1;
-
- required_device<segas24_tile_device> m_vtile;
- required_device<segas24_sprite_device> m_vsprite;
- required_device<segas24_mixer_device> m_vmixer;
-
- DECLARE_WRITE_LINE_MEMBER(irq_ym);
- uint16_t paletteram_r(offs_t offset);
- void paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t irq_r(offs_t offset);
- void irq_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t fdc_r(offs_t offset);
- void fdc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t fdc_status_r();
- void fdc_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t curbank_r();
- void curbank_w(uint8_t data);
- uint8_t frc_mode_r();
- void frc_mode_w(uint8_t data);
- uint8_t frc_r();
- void frc_w(uint8_t data);
- uint8_t mlatch_r();
- void mlatch_w(uint8_t data);
- uint16_t iod_r(offs_t offset);
- void iod_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint8_t dcclub_p1_r();
- uint8_t dcclub_p3_r();
- uint8_t mahmajn_input_line_r();
- uint8_t mahmajn_inputs_r();
-
- void mahmajn_mux_w(uint8_t data);
- void hotrod_lamps_w(uint8_t data);
-
- void fdc_init();
- void reset_reset();
- void reset_bank();
- void irq_init();
- void irq_timer_sync();
- void irq_timer_start(int old_tmode);
- WRITE_LINE_MEMBER(cnt1);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(irq_timer_cb);
- TIMER_DEVICE_CALLBACK_MEMBER(irq_timer_clear_cb);
- TIMER_DEVICE_CALLBACK_MEMBER(irq_frc_cb);
- TIMER_DEVICE_CALLBACK_MEMBER(irq_vbl);
-
- // game specific
- TIMER_CALLBACK_MEMBER(gground_hack_timer_callback);
- emu_timer *m_gground_hack_timer;
- required_ioport m_p1;
- required_ioport m_p2;
- required_ioport m_p3;
- optional_ioport m_paddle;
- optional_ioport_array<8> m_mj_inputs;
-
- void common_map(address_map &map);
- void cpu1_map(address_map &map);
- void cpu2_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void hotrod_common_map(address_map &map);
- void hotrod_cpu1_map(address_map &map);
- void hotrod_cpu2_map(address_map &map);
- void rombd_common_map(address_map &map);
- void rombd_cpu1_map(address_map &map);
- void rombd_cpu2_map(address_map &map);
- void roughrac_common_map(address_map &map);
- void roughrac_cpu1_map(address_map &map);
- void roughrac_cpu2_map(address_map &map);
- void dcclubj_cpu1_map(address_map &map);
- void dcclubj_cpu2_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SEGAS24_H
diff --git a/src/mame/includes/segas32.h b/src/mame/includes/segas32.h
deleted file mode 100644
index 85c342de9a5..00000000000
--- a/src/mame/includes/segas32.h
+++ /dev/null
@@ -1,397 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Sega System 32/Multi 32 hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_SEGAS32_H
-#define MAME_INCLUDES_SEGAS32_H
-
-#pragma once
-
-#include "sound/multipcm.h"
-#include "machine/s32comm.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-
-
-class segas32_state : public device_t
-{
-public:
- segas32_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- void init_alien3();
- void init_arescue(int m_hasdsp);
- void init_arabfgt();
- void init_brival();
- void init_darkedge();
- void init_dbzvrvs();
- void init_f1en();
- void init_f1lap();
- void init_f1lapt();
- void init_ga2();
- void init_harddunk();
- void init_holo();
- void init_jpark();
- void init_orunners();
- void init_radm();
- void init_radr();
- void init_scross();
- void init_slipstrm();
- void init_sonic();
- void init_sonicp();
- void init_spidman();
- void init_svf();
- void init_jleague();
- void init_titlef();
-
- cpu_device* maincpu() { return m_maincpu; }
-
- uint32_t screen_update_system32(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_multi32_left(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_multi32_right(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(ym3438_irq_handler);
- TIMER_DEVICE_CALLBACK_MEMBER(signal_v60_irq_callback);
- INTERRUPT_GEN_MEMBER(start_of_vblank_int);
-
- void misc_output_0_w(uint8_t data);
- void misc_output_1_w(uint8_t data);
- void sw2_output_0_w(uint8_t data);
- void sw2_output_1_w(uint8_t data);
- template<int Which> DECLARE_WRITE_LINE_MEMBER(display_enable_w);
- void tilebank_external_w(uint8_t data);
-
-protected:
- segas32_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_multi32);
-
- typedef void (segas32_state::*sys32_output_callback)(int which, uint16_t data);
-
- struct layer_info
- {
- bitmap_ind16 bitmap;
- std::unique_ptr<uint8_t[]> transparent;
- int num;
- };
-
- struct extents_list
- {
- uint8_t scan_extent[256];
- uint16_t extent[32][16];
- };
-
-
- struct cache_entry
- {
- cache_entry * next = nullptr;
- tilemap_t * tmap = nullptr;
- uint8_t page = 0;
- uint8_t bank = 0;
- };
-
- void sonic_level_load_protection(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t brival_protection_r(offs_t offset, uint16_t mem_mask = ~0);
- void brival_protection_w(offs_t offset, uint16_t data);
- void darkedge_protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t darkedge_protection_r(offs_t offset, uint16_t mem_mask = ~0);
- void dbzvrvs_protection_w(address_space &space, uint16_t data);
- uint16_t dbzvrvs_protection_r();
- void jleague_protection_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t arescue_dsp_r(offs_t offset);
- void arescue_dsp_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- template<int Which> uint16_t paletteram_r(offs_t offset);
- template<int Which> void paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t videoram_r(offs_t offset);
- void videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t sprite_control_r(offs_t offset);
- void sprite_control_w(offs_t offset, uint8_t data);
- uint16_t spriteram_r(offs_t offset);
- void spriteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- template<int Which> uint16_t mixer_r(offs_t offset);
- template<int Which> void mixer_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t int_control_r(offs_t offset);
- void int_control_w(offs_t offset, uint8_t data);
-
- void random_number_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t random_number_r();
- uint8_t shared_ram_r(offs_t offset);
- void shared_ram_w(offs_t offset, uint8_t data);
- void sound_int_control_lo_w(offs_t offset, uint8_t data);
- void sound_int_control_hi_w(offs_t offset, uint8_t data);
- void sound_bank_lo_w(uint8_t data);
- void sound_bank_hi_w(uint8_t data);
- uint8_t sound_dummy_r();
- void sound_dummy_w(uint8_t data);
-
- void multipcm_bank_w(uint8_t data);
- void scross_bank_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- TIMER_CALLBACK_MEMBER(end_of_vblank_int);
- TIMER_CALLBACK_MEMBER(update_sprites);
-
- void system32_set_vblank(int state);
- inline uint16_t xBBBBBGGGGGRRRRR_to_xBGRBBBBGGGGRRRR(uint16_t value);
- inline uint16_t xBGRBBBBGGGGRRRR_to_xBBBBBGGGGGRRRRR(uint16_t value);
- inline void update_color(int offset, uint16_t data);
- tilemap_t *find_cache_entry(int page, int bank);
- inline void get_tilemaps(int bgnum, tilemap_t **tilemaps);
- uint8_t update_tilemaps(screen_device &screen, const rectangle &cliprect);
- void sprite_erase_buffer();
- void sprite_swap_buffers();
- int draw_one_sprite(uint16_t const *data, int xoffs, int yoffs, const rectangle &clipin, const rectangle &clipout);
- void sprite_render_list();
- inline uint8_t compute_color_offsets(int which, int layerbit, int layerflag);
- inline uint16_t compute_sprite_blend(uint8_t encoding);
- inline uint16_t *get_layer_scanline(int layer, int scanline);
- void mix_all_layers(int which, int xoffs, bitmap_rgb32 &bitmap, const rectangle &cliprect, uint8_t enablemask);
- void print_mixer_data(int which);
- uint32_t multi32_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int index);
- void update_irq_state();
- void signal_v60_irq(int which);
- void update_sound_irq_state();
- void segas32_common_init();
- void radm_sw1_output( int which, uint16_t data );
- void radm_sw2_output( int which, uint16_t data );
- void radr_sw2_output( int which, uint16_t data );
- void alien3_sw1_output( int which, uint16_t data );
- void arescue_sw1_output( int which, uint16_t data );
- void f1lap_sw1_output( int which, uint16_t data );
- void jpark_sw1_output( int which, uint16_t data );
- void orunners_sw1_output( int which, uint16_t data );
- void orunners_sw2_output( int which, uint16_t data );
- void harddunk_sw1_output( int which, uint16_t data );
- void harddunk_sw2_output( int which, uint16_t data );
- void harddunk_sw3_output( int which, uint16_t data );
- void titlef_sw1_output( int which, uint16_t data );
- void titlef_sw2_output( int which, uint16_t data );
- void scross_sw1_output( int which, uint16_t data );
- void scross_sw2_output( int which, uint16_t data );
- int compute_clipping_extents(screen_device &screen, int enable, int clipout, int clipmask, const rectangle &cliprect, extents_list *list);
- void compute_tilemap_flips(int bgnum, int &flipx, int &flipy);
- void update_tilemap_zoom(screen_device &screen, layer_info &layer, const rectangle &cliprect, int bgnum);
- void update_tilemap_rowscroll(screen_device &screen, layer_info &layer, const rectangle &cliprect, int bgnum);
- void update_tilemap_text(screen_device &screen, layer_info &layer, const rectangle &cliprect);
- void update_bitmap(screen_device &screen, layer_info &layer, const rectangle &cliprect);
- void update_background(layer_info &layer, const rectangle &cliprect);
-
- void signal_sound_irq(int which);
- void clear_sound_irq(int which);
- void darkedge_fd1149_vblank();
- void f1lap_fd1149_vblank();
-
- void ga2_main_map(address_map &map);
- void multi32_6player_map(address_map &map);
- void multi32_map(address_map &map);
- void multi32_sound_map(address_map &map);
- void multi32_sound_portmap(address_map &map);
- void multipcm_map(address_map &map);
- void rf5c68_map(address_map &map);
- void system32_4player_map(address_map &map);
- void system32_analog_map(address_map &map);
- void system32_cd_map(address_map &map);
- void system32_map(address_map &map);
- void system32_sound_map(address_map &map);
- void system32_sound_portmap(address_map &map);
- void upd7725_data_map(address_map &map);
- void upd7725_prg_map(address_map &map);
- void v25_map(address_map &map);
-
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
- virtual void device_reset() override;
-
- required_shared_ptr<uint8_t> m_z80_shared_ram;
- optional_shared_ptr<uint16_t> m_system32_workram;
- memory_share_creator<uint16_t> m_videoram;
- memory_share_creator<uint16_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_soundram;
- memory_share_array_creator<uint16_t, 2> m_paletteram;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<multipcm_device> m_multipcm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_device<timer_device> m_irq_timer_0;
- required_device<timer_device> m_irq_timer_1;
- optional_device<s32comm_device> m_s32comm;
-
- required_region_ptr<uint32_t> m_sprite_region;
- required_memory_region m_maincpu_region;
- required_memory_bank m_soundrom_bank;
- optional_memory_bank m_multipcm_bank_hi;
- optional_memory_bank m_multipcm_bank_lo;
-
- const bool m_is_multi32;
-
- // internal states
- uint8_t m_v60_irq_control[0x10];
- timer_device *m_v60_irq_timer[2];
- uint8_t m_sound_irq_control[4];
- uint8_t m_sound_irq_input;
- uint8_t m_sound_dummy_value;
- uint16_t m_sound_bank;
- sys32_output_callback m_sw1_output;
- sys32_output_callback m_sw2_output;
- sys32_output_callback m_sw3_output;
-
- // hardware specific
- std::unique_ptr<uint16_t[]> m_system32_protram;
- uint16_t m_arescue_dsp_io[6];
-
- // video-related
- uint16_t m_system32_displayenable[2];
- uint16_t m_system32_tilebank_external;
- std::unique_ptr<cache_entry[]> m_tmap_cache;
- cache_entry *m_cache_head;
- layer_info m_layer_data[11];
- uint16_t m_mixer_control[2][0x40];
- std::unique_ptr<uint16_t[]> m_solid_0000;
- std::unique_ptr<uint16_t[]> m_solid_ffff;
- uint8_t m_sprite_render_count;
- uint8_t m_sprite_control_latched[8];
- uint8_t m_sprite_control[8];
- std::unique_ptr<uint32_t[]> m_spriteram_32bit;
- std::unique_ptr<int32_t[]> m_prev_bgstartx;
- std::unique_ptr<int32_t[]> m_prev_bgendx;
- std::unique_ptr<int32_t[]> m_bgcolor_line;
- typedef void (segas32_state::*prot_vblank_func)();
- prot_vblank_func m_system32_prot_vblank;
- int m_print_count;
- emu_timer *m_vblank_end_int_timer;
- emu_timer *m_update_sprites_timer;
-};
-
-class segas32_regular_state : public segas32_state
-{
-public:
- segas32_regular_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-};
-
-class segas32_analog_state : public segas32_state
-{
-public:
- segas32_analog_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- segas32_analog_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-class segas32_trackball_state : public segas32_state
-{
-public:
- segas32_trackball_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- void system32_trackball_map(address_map &map);
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-class segas32_4player_state : public segas32_state
-{
-public:
- segas32_4player_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- segas32_4player_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-class segas32_v25_state : public segas32_4player_state
-{
-public:
- segas32_v25_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- static const uint8_t arf_opcode_table[256];
- static const uint8_t ga2_opcode_table[256];
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-
-private:
- void decrypt_protrom();
-};
-
-class segas32_upd7725_state : public segas32_analog_state
-{
-public:
- segas32_upd7725_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-class segas32_cd_state : public segas32_state
-{
-public:
- segas32_cd_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- void lamps1_w(uint8_t data);
- void lamps2_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(scsi_irq_w);
- DECLARE_WRITE_LINE_MEMBER(scsi_drq_w);
-
- static void cdrom_config(device_t *device);
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-
-private:
- output_finder<16> m_lamps;
-};
-
-class sega_multi32_state : public segas32_state
-{
-public:
- sega_multi32_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- sega_multi32_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-class sega_multi32_analog_state : public sega_multi32_state
-{
-public:
- sega_multi32_analog_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- ioport_value in2_analog_read();
- ioport_value in3_analog_read();
- void analog_bank_w(uint8_t data);
-
- void multi32_analog_map(address_map &map);
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-
-private:
- optional_ioport_array<8> m_analog_ports;
- uint8_t m_analog_bank;
-};
-
-class sega_multi32_6player_state : public sega_multi32_state
-{
-public:
- sega_multi32_6player_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-DECLARE_DEVICE_TYPE(SEGA_S32_PCB, segas32_state)
-
-#endif // MAME_INCLUDES_SEGAS32_H
diff --git a/src/mame/includes/segasp.h b/src/mame/includes/segasp.h
deleted file mode 100644
index c1db362c005..00000000000
--- a/src/mame/includes/segasp.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-/* Sega SP (Spider)
-
- Naomi derived platform
-
-*/
-
-#include "naomi.h"
-
-class segasp_state : public naomi_state
-{
-public:
- segasp_state(const machine_config &mconfig, device_type type, const char *tag)
- : naomi_state(mconfig, type, tag),
- m_sp_eeprom(*this, "sp_eeprom")
- { }
-
- void segasp(machine_config &config);
-
- void init_segasp();
-
-private:
- required_device<eeprom_serial_93cxx_device> m_sp_eeprom;
-
- uint64_t sp_eeprom_r(offs_t offset, uint64_t mem_mask = ~0);
- void sp_eeprom_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint64_t sp_rombdflg_r();
- uint64_t sp_io_r(offs_t offset, uint64_t mem_mask = ~0);
- uint64_t sn_93c46a_r();
- void sn_93c46a_w(uint64_t data);
- uint64_t sp_bank_r(offs_t offset, uint64_t mem_mask = ~0);
- void sp_bank_w(offs_t offset, uint64_t data, uint64_t mem_mask = ~0);
- uint16_t m_sp_bank;
-
- void onchip_port(address_map &map);
- void segasp_map(address_map &map);
-};
diff --git a/src/mame/includes/segaxbd.h b/src/mame/includes/segaxbd.h
deleted file mode 100644
index 23fe42c982f..00000000000
--- a/src/mame/includes/segaxbd.h
+++ /dev/null
@@ -1,250 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Sega X-Board hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_SEGAXBD_H
-#define MAME_INCLUDES_SEGAXBD_H
-
-#pragma once
-
-#include "video/segaic16.h"
-#include "video/segaic16_road.h"
-#include "video/sega16sp.h"
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/z80/z80.h"
-#include "machine/cxd1095.h"
-#include "machine/i8251.h"
-#include "machine/mb3773.h"
-#include "machine/mb8421.h"
-#include "machine/segaic16.h"
-#include "video/resnet.h"
-#include "emupal.h"
-#include "screen.h"
-
-// ======================> segaxbd_state
-
-
-class segaxbd_state : public device_t
-{
-public:
- // construction/destruction
- segaxbd_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- void xboard_base_mconfig(machine_config &config);
-
- void install_aburner2(void);
- void install_loffire(void);
- void install_smgp(void);
- void install_gprider(void);
-
- // devices
- required_device<m68000_device> m_maincpu;
-
- // custom I/O
- uint8_t aburner2_motor_r();
- void aburner2_motor_w(uint8_t data);
- uint8_t smgp_motor_r();
- void smgp_motor_w(uint8_t data);
- uint8_t lastsurv_port_r();
- void lastsurv_muxer_w(uint8_t data);
-
- // game-specific main CPU read/write handlers
- void loffire_sync0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t smgp_excs_r(offs_t offset);
- void smgp_excs_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
-protected:
- // main CPU read/write handlers
- uint8_t analog_r();
- void iocontrol_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- // video updates
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- // palette helpers
- void paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void decrypted_opcodes_map(address_map &map);
- void main_map(address_map &map);
- void smgp_airdrive_map(address_map &map);
- void smgp_airdrive_portmap(address_map &map);
- void smgp_comm_map(address_map &map);
- void smgp_comm_portmap(address_map &map);
- void smgp_sound2_map(address_map &map);
- void smgp_sound2_portmap(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
- void sub_map(address_map &map);
-
- // timer IDs
- enum
- {
- TID_SCANLINE,
- TID_IRQ2_GEN
- };
-
- segaxbd_state(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-
- // device overrides
-// virtual void machine_reset();
- virtual void video_start();
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // internal helpers
- void update_main_irqs();
- DECLARE_WRITE_LINE_MEMBER(m68k_reset_callback);
- void generic_iochip0_lamps_w(uint8_t data);
-
- // compare/timer chip callbacks
- DECLARE_WRITE_LINE_MEMBER(timer_irq_w);
-
- void pc_0_w(uint8_t data);
- void pd_0_w(uint8_t data);
-
- // devices
- required_device<m68000_device> m_subcpu;
- optional_device<z80_device> m_soundcpu;
- optional_device<z80_device> m_soundcpu2;
- optional_device<i8751_device> m_mcu;
- required_device<mb3773_device> m_watchdog;
- required_device_array<cxd1095_device, 2> m_iochip;
- required_device<sega_315_5250_compare_timer_device> m_cmptimer_1;
- required_device<sega_xboard_sprite_device> m_sprites;
- required_device<segaic16_video_device> m_segaic16vid;
- required_device<segaic16_road_device> m_segaic16road;
- required_shared_ptr<uint16_t> m_subram0;
-
- // configuration
- bool m_adc_reverse[8];
- uint8_t m_road_priority;
-
- // internal state
- emu_timer * m_scanline_timer;
- uint8_t m_timer_irq_state;
- uint8_t m_vblank_irq_state;
- uint8_t m_pc_0;
-
- // game-specific state
- uint16_t * m_loffire_sync;
- uint8_t m_lastsurv_mux;
-
- // memory pointers
- required_shared_ptr<uint16_t> m_paletteram;
- bool m_gprider_hack;
-
- void palette_init();
- uint32_t m_palette_entries; // number of palette entries
- uint8_t m_palette_normal[32]; // RGB translations for normal pixels
- uint8_t m_palette_shadow[32]; // RGB translations for shadowed pixels
- uint8_t m_palette_hilight[32]; // RGB translations for hilighted pixels
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_ioport m_io0_porta;
- optional_ioport_array<8> m_adc_ports;
- optional_ioport_array<4> m_mux_ports;
- output_finder<4> m_lamps;
-
- virtual void device_start() override;
- virtual void device_reset() override;
-};
-
-
-class segaxbd_regular_state : public segaxbd_state
-{
-public:
- segaxbd_regular_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-
-
-class segaxbd_fd1094_state : public segaxbd_state
-{
-public:
- segaxbd_fd1094_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-class segaxbd_aburner2_state : public segaxbd_state
-{
-public:
- segaxbd_aburner2_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-// virtual void device_start();
-// virtual void device_reset();
-};
-
-class segaxbd_lastsurv_fd1094_state : public segaxbd_state
-{
-public:
- segaxbd_lastsurv_fd1094_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-class segaxbd_lastsurv_state : public segaxbd_state
-{
-public:
- segaxbd_lastsurv_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-
-class segaxbd_smgp_fd1094_state : public segaxbd_state
-{
-public:
- segaxbd_smgp_fd1094_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-
-class segaxbd_smgp_state : public segaxbd_state
-{
-public:
- segaxbd_smgp_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
-};
-
-
-class segaxbd_rascot_state : public segaxbd_state
-{
-public:
- segaxbd_rascot_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
-
-private:
- uint8_t commram_r(offs_t offset);
- void commram_w(offs_t offset, uint8_t data);
- void commram_bank_w(uint8_t data);
-
- void sub_map(address_map &map);
- void comm_map(address_map &map);
-
- required_device<mb8421_device> m_commram;
- required_device<i8251_device> m_usart;
-
- uint8_t m_commram_bank;
-};
-
-#endif // MAME_INCLUDES_SEGAXBD_H
diff --git a/src/mame/includes/segaybd.h b/src/mame/includes/segaybd.h
deleted file mode 100644
index 8e37ee9fa8d..00000000000
--- a/src/mame/includes/segaybd.h
+++ /dev/null
@@ -1,146 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Sega Y-Board hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_SEGAYBD_H
-#define MAME_INCLUDES_SEGAYBD_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/z80/z80.h"
-#include "machine/mb3773.h"
-#include "video/segaic16.h"
-#include "video/sega16sp.h"
-#include "screen.h"
-
-
-// ======================> segaybd_state
-
-class segaybd_state : public sega_16bit_common_base
-{
-public:
- // construction/destruction
- segaybd_state(const machine_config &mconfig, device_type type, const char *tag)
- : sega_16bit_common_base(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subx(*this, "subx")
- , m_suby(*this, "suby")
- , m_soundcpu(*this, "soundcpu")
- , m_linkcpu(*this, "linkcpu")
- , m_watchdog(*this, "watchdog")
- , m_screen(*this, "screen")
- , m_bsprites(*this, "bsprites")
- , m_ysprites(*this, "ysprites")
- , m_segaic16vid(*this, "segaic16vid")
- , m_adc_ports(*this, "ADC.%u", 0)
- , m_pdrift_bank(0)
- , m_scanline_timer(nullptr)
- , m_irq2_scanline(0)
- , m_timer_irq_state(0)
- , m_vblank_irq_state(0)
- , m_misc_io_data(0)
- {
- }
-
- void yboard_deluxe(machine_config &config);
- void yboard_link(machine_config &config);
- void yboard(machine_config &config);
-
- // game-specific driver init
- void init_generic();
- void init_pdrift();
- void init_r360();
- void init_gforce2();
- void init_rchase();
- void init_gloc();
-
-private:
- // main CPU read/write handlers
- void output1_w(uint8_t data);
- void misc_output_w(uint8_t data);
- void output2_w(uint8_t data);
-
- // linked cabinet specific handlers
- DECLARE_WRITE_LINE_MEMBER(mb8421_intl);
- DECLARE_WRITE_LINE_MEMBER(mb8421_intr);
- uint16_t link_r();
- uint16_t link2_r();
- void link2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-// uint8_t link_portc0_r();
-
- // input helpers
- ioport_value analog_mux();
-
- // game-specific output handlers
- void gforce2_output_cb1(uint16_t data);
- void gforce2_output_cb2(uint16_t data);
- void gloc_output_cb1(uint16_t data);
- void gloc_output_cb2(uint16_t data);
- void r360_output_cb2(uint16_t data);
- void pdrift_output_cb1(uint16_t data);
- void pdrift_output_cb2(uint16_t data);
- void rchase_output_cb2(uint16_t data);
-
- // video updates
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void link_map(address_map &map);
- void link_portmap(address_map &map);
- void main_map(address_map &map);
- void main_map_link(address_map &map);
- void motor_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
- void subx_map(address_map &map);
- void suby_map(address_map &map);
-
- // internal types
- typedef delegate<void (uint16_t)> output_delegate;
-
- // timer IDs
- enum
- {
- TID_IRQ2_GEN
- };
-
- // device overrides
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // internal helpers
- void update_irqs();
-
- // devices
- required_device<m68000_device> m_maincpu;
- required_device<m68000_device> m_subx;
- required_device<m68000_device> m_suby;
- required_device<z80_device> m_soundcpu;
- optional_device<z80_device> m_linkcpu;
- required_device<mb3773_device> m_watchdog;
- required_device<screen_device> m_screen;
- required_device<sega_sys16b_sprite_device> m_bsprites;
- required_device<sega_yboard_sprite_device> m_ysprites;
- required_device<segaic16_video_device> m_segaic16vid;
-
- // input ports
- optional_ioport_array<6> m_adc_ports;
-
- // configuration
- output_delegate m_output_cb1;
- output_delegate m_output_cb2;
-
- // internal state
- uint16_t m_pdrift_bank;
- emu_timer * m_scanline_timer;
- int m_irq2_scanline;
- uint8_t m_timer_irq_state;
- uint8_t m_vblank_irq_state;
- uint8_t m_misc_io_data;
-};
-
-#endif // MAME_INCLUDES_SEGAYBD_H
diff --git a/src/mame/includes/seibuspi.h b/src/mame/includes/seibuspi.h
deleted file mode 100644
index 1ee4287d3ae..00000000000
--- a/src/mame/includes/seibuspi.h
+++ /dev/null
@@ -1,195 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ville Linde, hap, Nicola Salmoria
-/******************************************************************************
-
- Seibu SPI hardware
-
-******************************************************************************/
-
-#include "machine/eepromser.h"
-#include "machine/7200fifo.h"
-#include "machine/intelfsh.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class seibuspi_state : public driver_device
-{
-public:
- seibuspi_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_mainram(*this, "mainram")
- , m_z80_rom(*this, "audiocpu")
- , m_eeprom(*this, "eeprom")
- , m_soundfifo(*this, "soundfifo%u", 1)
- , m_oki(*this, "oki%u", 1)
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_key(*this, "KEY.%u", 0)
- , m_special(*this, "SPECIAL")
- , m_z80_bank(*this, "z80_bank")
- , m_soundflash1(*this, "soundflash1")
- , m_soundflash2(*this, "soundflash2")
- , m_soundflash1_region(*this, "soundflash1")
- { }
-
- void sys386f(machine_config &config);
- void sxx2f(machine_config &config);
- void rdft2(machine_config &config);
- void ejanhs(machine_config &config);
- void sys386i(machine_config &config);
- void sxx2g(machine_config &config);
- void spi(machine_config &config);
- void sxx2e(machine_config &config);
-
- void init_sei252();
- void init_batlball();
- void init_senkyu();
- void init_viprp1();
- void init_viprp1o();
- void init_rdft();
- void init_rfjet();
- void init_senkyua();
- void init_rdft2();
- void init_ejanhs();
- void init_sys386f();
-
- template <int N> DECLARE_CUSTOM_INPUT_MEMBER(ejanhs_encode);
-
- IRQ_CALLBACK_MEMBER(spi_irq_callback);
- INTERRUPT_GEN_MEMBER(spi_interrupt);
-
- u32 screen_update_sys386f(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
-protected:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_shared_ptr<u32> m_mainram;
- optional_memory_region m_z80_rom;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device_array<fifo7200_device, 2> m_soundfifo;
- optional_device_array<okim6295_device, 2> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- optional_ioport_array<5> m_key;
- optional_ioport m_special;
-
- optional_memory_bank m_z80_bank;
-
- optional_device<intel_e28f008sa_device> m_soundflash1, m_soundflash2;
-
- optional_region_ptr<u8> m_soundflash1_region;
-
- int m_z80_prg_transfer_pos;
- int m_z80_lastbank;
- u8 m_sb_coin_latch;
- u8 m_ejsakura_input_port;
- tilemap_t *m_text_layer;
- tilemap_t *m_back_layer;
- tilemap_t *m_midl_layer;
- tilemap_t *m_fore_layer;
- u32 m_video_dma_length;
- u32 m_video_dma_address;
- u16 m_layer_enable;
- u16 m_layer_bank;
- u8 m_rf2_layer_bank;
- u16 m_scrollram[6];
- bool m_rowscroll_enable;
- int m_midl_layer_offset;
- int m_fore_layer_offset;
- int m_text_layer_offset;
- int m_fore_layer_d13;
- int m_back_layer_d14;
- int m_midl_layer_d14;
- int m_fore_layer_d14;
- std::unique_ptr<u32[]> m_tilemap_ram;
- std::unique_ptr<u32[]> m_palette_ram;
- std::unique_ptr<u32[]> m_sprite_ram;
- u32 m_tilemap_ram_size;
- u32 m_palette_ram_size;
- u32 m_sprite_ram_size;
- u32 m_bg_fore_layer_position;
- u8 m_alpha_table[0x2000];
- int m_sprite_bpp;
-
- void tile_decrypt_key_w(u16 data);
- void spi_layer_bank_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void spi_layer_enable_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void rf2_layer_bank_w(u8 data);
- void scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tilemap_dma_start_w(u32 data);
- void palette_dma_start_w(u32 data);
- void sprite_dma_start_w(u16 data);
- void video_dma_length_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void video_dma_address_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- u8 spi_status_r();
- u8 spi_ds2404_unknown_r();
- u8 sb_coin_r();
- void spi_coin_w(u8 data);
- u8 sound_fifo_status_r();
- void z80_prg_transfer_w(u8 data);
- void z80_enable_w(u8 data);
- u8 z80_soundfifo_status_r();
- void z80_bank_w(u8 data);
- u32 ejsakura_keyboard_r();
- void ejsakura_input_select_w(u32 data);
- void eeprom_w(u8 data);
- void spi_layerbanks_eeprom_w(u8 data);
- void oki_bank_w(u8 data);
-
- u32 senkyu_speedup_r();
- u32 senkyua_speedup_r();
- u32 batlball_speedup_r();
- u32 rdft_speedup_r();
- u32 viprp1_speedup_r();
- u32 viprp1o_speedup_r();
- u32 rf2_speedup_r();
- u32 rfjet_speedup_r();
-
- DECLARE_WRITE_LINE_MEMBER(ymf_irqhandler);
-
- void set_layer_offsets();
- void drawgfx_blend(bitmap_rgb32 &bitmap, const rectangle &cliprect, gfx_element *gfx, u32 code, u32 color, bool flipx, bool flipy, int sx, int sy, bitmap_ind8 &primap, u8 primask);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, bitmap_ind8 &primap, int priority);
- void combine_tilemap(bitmap_rgb32 &bitmap, const rectangle &cliprect, tilemap_t *tile, int sx, int sy, int opaque, s16 *rowscroll);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- DECLARE_MACHINE_RESET(spi);
- DECLARE_MACHINE_RESET(sxx2e);
- DECLARE_VIDEO_START(ejanhs);
- DECLARE_VIDEO_START(sys386f);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- TILE_GET_INFO_MEMBER(get_back_tile_info);
- TILE_GET_INFO_MEMBER(get_midl_tile_info);
- TILE_GET_INFO_MEMBER(get_fore_tile_info);
- u32 screen_update_spi(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void register_video_state();
- void init_spi_common();
-
- void text_decrypt(u8 *rom);
- void bg_decrypt(u8 *rom, int size);
-
- void rdft2_text_decrypt(u8 *rom);
- void rdft2_bg_decrypt(u8 *rom, int size);
-
- void rfjet_text_decrypt(u8 *rom);
- void rfjet_bg_decrypt(u8 *rom, int size);
-
- void base_map(address_map &map);
- void rdft2_map(address_map &map);
- void rise_map(address_map &map);
- void sei252_map(address_map &map);
- void spi_map(address_map &map);
- void spi_soundmap(address_map &map);
- void spi_ymf271_map(address_map &map);
- void sxx2e_map(address_map &map);
- void sxx2e_soundmap(address_map &map);
- void sxx2f_map(address_map &map);
- void sys386f_map(address_map &map);
- void sys386i_map(address_map &map);
-};
diff --git a/src/mame/includes/seicross.h b/src/mame/includes/seicross.h
deleted file mode 100644
index 3f7cc1fe4b7..00000000000
--- a/src/mame/includes/seicross.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_SEICROSS_H
-#define MAME_INCLUDES_SEICROSS_H
-
-#pragma once
-
-#include "machine/nvram.h"
-#include "sound/dac.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class seicross_state : public driver_device
-{
-public:
- seicross_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_dac(*this, "dac"),
- m_nvram(*this, "nvram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_debug_port(*this, "DEBUG"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_row_scroll(*this, "row_scroll"),
- m_spriteram2(*this, "spriteram2"),
- m_colorram(*this, "colorram")
- { }
-
- void no_nvram(machine_config &config);
- void friskytb(machine_config &config);
- void nvram(machine_config &config);
- void sectznt(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_mcu;
- required_device<dac_byte_interface> m_dac;
- optional_device<nvram_device> m_nvram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- optional_ioport m_debug_port;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_row_scroll;
- required_shared_ptr<uint8_t> m_spriteram2;
- required_shared_ptr<uint8_t> m_colorram;
-
- uint8_t m_portb;
- tilemap_t *m_bg_tilemap;
- uint8_t m_irq_mask;
-
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- uint8_t portB_r();
- void portB_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- INTERRUPT_GEN_MEMBER(vblank_irq);
-
- void seicross_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void nvram_init(nvram_device &nvram, void *data, size_t size);
-
- void dac_w(uint8_t data);
-
- void main_map(address_map &map);
- void main_portmap(address_map &map);
- void mcu_no_nvram_map(address_map &map);
- void mcu_nvram_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SEICROSS_H
diff --git a/src/mame/includes/senjyo.h b/src/mame/includes/senjyo.h
deleted file mode 100644
index 7573c6d7f9d..00000000000
--- a/src/mame/includes/senjyo.h
+++ /dev/null
@@ -1,137 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni
-#ifndef MAME_INCLUDES_SENJYO_H
-#define MAME_INCLUDES_SENJYO_H
-
-#pragma once
-
-#include "sound/dac.h"
-#include "machine/z80daisy.h"
-#include "machine/z80pio.h"
-#include "machine/z80ctc.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class senjyo_state : public driver_device
-{
-public:
- senjyo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_pio(*this, "z80pio"),
- m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_radar_palette(*this, "radar_palette"),
- m_spriteram(*this, "spriteram"),
- m_fgscroll(*this, "fgscroll"),
- m_scrollx1(*this, "scrollx1"),
- m_scrolly1(*this, "scrolly1"),
- m_scrollx2(*this, "scrollx2"),
- m_scrolly2(*this, "scrolly2"),
- m_scrollx3(*this, "scrollx3"),
- m_scrolly3(*this, "scrolly3"),
- m_fgvideoram(*this, "fgvideoram"),
- m_fgcolorram(*this, "fgcolorram"),
- m_bg1videoram(*this, "bg1videoram"),
- m_bg2videoram(*this, "bg2videoram"),
- m_bg3videoram(*this, "bg3videoram"),
- m_radarram(*this, "radarram"),
- m_bgstripesram(*this, "bgstripesram"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void senjyox_e(machine_config &config);
- void senjyo(machine_config &config);
- void starforb(machine_config &config);
- void senjyox_a(machine_config &config);
-
- void init_starfora();
- void init_senjyo();
- void init_starfore();
- void init_starforc();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<z80pio_device> m_pio;
- required_device<dac_byte_interface> m_dac;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<palette_device> m_radar_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_fgscroll;
- required_shared_ptr<uint8_t> m_scrollx1;
- required_shared_ptr<uint8_t> m_scrolly1;
- required_shared_ptr<uint8_t> m_scrollx2;
- required_shared_ptr<uint8_t> m_scrolly2;
- required_shared_ptr<uint8_t> m_scrollx3;
- required_shared_ptr<uint8_t> m_scrolly3;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_fgcolorram;
- required_shared_ptr<uint8_t> m_bg1videoram;
- required_shared_ptr<uint8_t> m_bg2videoram;
- required_shared_ptr<uint8_t> m_bg3videoram;
- required_shared_ptr<uint8_t> m_radarram;
- required_shared_ptr<uint8_t> m_bgstripesram;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- // game specific initialization
- int m_is_senjyo;
- int m_scrollhack;
-
- uint8_t m_sound_cmd;
- int m_single_volume;
- int m_sound_state;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg1_tilemap;
- tilemap_t *m_bg2_tilemap;
- tilemap_t *m_bg3_tilemap;
-
- void flip_screen_w(uint8_t data);
- void starforb_scrolly2(offs_t offset, uint8_t data);
- void starforb_scrollx2(offs_t offset, uint8_t data);
- void fgvideoram_w(offs_t offset, uint8_t data);
- void fgcolorram_w(offs_t offset, uint8_t data);
- void bg1videoram_w(offs_t offset, uint8_t data);
- void bg2videoram_w(offs_t offset, uint8_t data);
- void bg3videoram_w(offs_t offset, uint8_t data);
- void volume_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(sound_line_clock);
- void sound_cmd_w(uint8_t data);
- void irq_ctrl_w(uint8_t data);
- uint8_t pio_pa_r();
-
- static rgb_t IIBBGGRR(uint32_t raw);
- void radar_palette(palette_device &palette) const;
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(senjyo_bg1_tile_info);
- TILE_GET_INFO_MEMBER(starforc_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- TILE_GET_INFO_MEMBER(get_bg3_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_bgbitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_radar(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect,int priority);
-
- void decrypted_opcodes_map(address_map &map);
- void senjyo_map(address_map &map);
- void senjyo_sound_io_map(address_map &map);
- void senjyo_sound_map(address_map &map);
- void starforb_map(address_map &map);
- void starforb_sound_map(address_map &map);
-};
-
-/*----------- defined in audio/senjyo.c -----------*/
-extern const z80_daisy_config senjyo_daisy_chain[];
-
-#endif // MAME_INCLUDES_SENJYO_H
diff --git a/src/mame/includes/seta.h b/src/mame/includes/seta.h
deleted file mode 100644
index 9bcf747876f..00000000000
--- a/src/mame/includes/seta.h
+++ /dev/null
@@ -1,557 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_SETA_H
-#define MAME_INCLUDES_SETA_H
-
-#pragma once
-
-/***************************************************************************
-
- -= Seta Hardware =-
-
-***************************************************************************/
-
-#include "machine/74157.h"
-#include "machine/adc083x.h"
-#include "machine/gen_latch.h"
-#include "machine/ticket.h"
-#include "machine/timer.h"
-#include "machine/tmp68301.h"
-#include "machine/upd4701.h"
-#include "machine/upd4992.h"
-#include "sound/x1_010.h"
-#include "video/seta001.h"
-#include "video/x1_012.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class seta_state : public driver_device
-{
-public:
- struct uPD71054_state
- {
- emu_timer *timer[3]; // Timer
- u16 max[3]; // Max counter
- u16 write_select; // Max counter write select
- u8 reg[4]; //
- };
-
- seta_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_seta001(*this, "spritegen"),
- m_layers(*this, "layer%u", 1U),
- m_x1(*this, "x1snd"),
- m_soundlatch(*this, "soundlatch"),
- m_dsw(*this, "DSW"),
- m_coins(*this, "COINS"),
- m_extra_port(*this, "EXTRA"),
- m_paletteram(*this, "paletteram%u", 1U),
- m_x1_bank(*this, "x1_bank"),
- m_leds(*this, "led%u", 0U),
- m_palette(*this, "palette")
- { }
-
- void madshark(machine_config &config);
- void jjsquawb(machine_config &config);
- void oisipuzl(machine_config &config);
- void zingzipbl(machine_config &config);
- void eightfrc(machine_config &config);
- void gundhara(machine_config &config);
- void triplfun(machine_config &config);
- void blandiap(machine_config &config);
- void wits(machine_config &config);
- void msgundam(machine_config &config);
- void msgundamb(machine_config &config);
- void extdwnhl(machine_config &config);
- void pairlove(machine_config &config);
- void zingzip(machine_config &config);
- void wiggie(machine_config &config);
- void umanclub(machine_config &config);
- void daioh(machine_config &config);
- void atehate(machine_config &config);
- void thunderlbl(machine_config &config);
- void blockcarb(machine_config &config);
- void wrofaero(machine_config &config);
- void blockcar(machine_config &config);
- void crazyfgt(machine_config &config);
- void keroppi(machine_config &config);
- void drgnunit(machine_config &config);
- void stg(machine_config &config);
- void qzkklogy(machine_config &config);
- void orbs(machine_config &config);
- void daiohp(machine_config &config);
- void magspeed(machine_config &config);
- void krzybowl(machine_config &config);
- void qzkklgy2(machine_config &config);
- void kamenrid(machine_config &config);
- void superbar(machine_config &config);
- void jjsquawk(machine_config &config);
- void blandia(machine_config &config);
- void thunderl(machine_config &config);
- void utoukond(machine_config &config);
- void rezon(machine_config &config);
-
- void init_rezon();
- void init_crazyfgt();
- void init_wiggie();
- void init_bankx1();
- void init_eightfrc();
- void init_pairlove();
-
- void palette_init_RRRRRGGGGGBBBBB_proms(palette_device &palette) const;
-
- SETA001_SPRITE_GFXBANK_CB_MEMBER(setac_gfxbank_callback);
-
- u32 screen_update_seta_layers(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-protected:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<seta001_device> m_seta001;
- optional_device_array<x1_012_device, 2> m_layers;
- optional_device<x1_010_device> m_x1;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- optional_ioport m_dsw;
- optional_ioport m_coins;
- optional_ioport m_extra_port;
-
- optional_shared_ptr_array<u16, 2> m_paletteram;
-
- optional_memory_bank m_x1_bank;
-
- output_finder<48> m_leds;
-
- required_device<palette_device> m_palette;
-
- u8 m_vregs;
-
- int m_tilemaps_flip;
- int m_samples_bank;
-
- uPD71054_state m_uPD71054;
-
- int m_keroppi_prize_hop;
- int m_keroppi_protection_count;
- emu_timer *m_keroppi_prize_hop_timer;
-
- u16 m_magspeed_lights[3];
-
- std::unique_ptr<u16[]> m_pairslove_protram;
- std::unique_ptr<u16[]> m_pairslove_protram_old;
-
- void seta_coin_counter_w(u8 data);
- void seta_coin_lockout_w(u8 data);
- void seta_vregs_w(u8 data);
- void timer_regs_w(offs_t offset, u16 data);
- u16 seta_dsw_r(offs_t offset);
-
- u16 zingzipbl_unknown_r();
- u16 keroppi_protection_r();
- u16 keroppi_protection_init_r();
- u16 keroppi_coin_r();
- void keroppi_prize_w(u16 data);
- u16 thunderl_protection_r();
- void thunderl_protection_w(u16 data);
- void utoukond_sound_control_w(u8 data);
- u16 pairlove_prot_r(offs_t offset);
- void pairlove_prot_w(offs_t offset, u16 data);
- void magspeed_lights_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 extra_r();
-
- DECLARE_VIDEO_START(seta);
-
- void blandia_palette(palette_device &palette) const;
- void zingzip_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(wrofaero);
- void gundhara_palette(palette_device &palette) const;
- void jjsquawk_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(keroppi);
- DECLARE_MACHINE_START(magspeed);
- DECLARE_VIDEO_START(oisipuzl);
- u32 screen_update_seta_no_layers(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_seta(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_seta_buffer_sprites);
- u16 ipl0_ack_r();
- void ipl0_ack_w(u16 data);
- u16 ipl1_ack_r();
- void ipl1_ack_w(u16 data);
- u16 ipl2_ack_r();
- void ipl2_ack_w(u16 data);
- void uPD71054_update_timer(device_t *cpu, int no);
- INTERRUPT_GEN_MEMBER(wrofaero_interrupt);
- TIMER_CALLBACK_MEMBER(uPD71054_timer_callback);
- TIMER_CALLBACK_MEMBER(keroppi_prize_hop_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(seta_interrupt_1_and_2);
- TIMER_DEVICE_CALLBACK_MEMBER(seta_interrupt_2_and_4);
- TIMER_DEVICE_CALLBACK_MEMBER(crazyfgt_interrupt);
-
- void set_pens();
- void seta_layers_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int sprite_bank_size);
- void uPD71054_timer_init();
- DECLARE_WRITE_LINE_MEMBER(pit_out0);
-
- void atehate_map(address_map &map);
- void blandia_map(address_map &map);
- void blandia_x1_map(address_map &map);
- void blandiap_map(address_map &map);
- void blockcar_map(address_map &map);
- void blockcarb_map(address_map &map);
- void blockcarb_sound_map(address_map &map);
- void blockcarb_sound_portmap(address_map &map);
- void crazyfgt_map(address_map &map);
- void daioh_map(address_map &map);
- void daiohp_map(address_map &map);
- void drgnunit_map(address_map &map);
- void extdwnhl_map(address_map &map);
- void jjsquawb_map(address_map &map);
- void kamenrid_map(address_map &map);
- void keroppi_map(address_map &map);
- void krzybowl_map(address_map &map);
- void madshark_map(address_map &map);
- void magspeed_map(address_map &map);
- void msgundam_map(address_map &map);
- void msgundamb_map(address_map &map);
- void oisipuzl_map(address_map &map);
- void orbs_map(address_map &map);
- void pairlove_map(address_map &map);
- void thunderl_map(address_map &map);
- void thunderlbl_map(address_map &map);
- void thunderlbl_sound_map(address_map &map);
- void thunderlbl_sound_portmap(address_map &map);
- void triplfun_map(address_map &map);
- void umanclub_map(address_map &map);
- void utoukond_map(address_map &map);
- void utoukond_sound_io_map(address_map &map);
- void utoukond_sound_map(address_map &map);
- void wiggie_map(address_map &map);
- void wiggie_sound_map(address_map &map);
- void wrofaero_map(address_map &map);
- void zingzipbl_map(address_map &map);
-};
-
-class downtown_state : public seta_state
-{
-public:
- downtown_state(const machine_config &mconfig, device_type type, const char *tag) :
- seta_state(mconfig, type, tag),
- m_subcpu(*this, "sub"),
- m_soundlatch(*this, "soundlatch%u", 1U),
- m_rot(*this, "ROT%u", 1),
- m_p1(*this, "P1"),
- m_p2(*this, "P2"),
- m_sharedram(*this, "sharedram"),
- m_subbank(*this, "subbank"),
- m_sub_ctrl_data(0)
- { }
-
- void calibr50(machine_config &config);
- void downtown(machine_config &config);
- void metafox(machine_config &config);
- void arbalest(machine_config &config);
- void tndrcade(machine_config &config);
- void twineagl(machine_config &config);
-
- void init_bank6502();
- void init_downtown();
- void init_twineagl();
- void init_metafox();
- void init_arbalest();
-
-protected:
- required_device<cpu_device> m_subcpu;
- optional_device_array<generic_latch_8_device, 2> m_soundlatch;
-
- optional_ioport_array<2> m_rot;
- optional_ioport m_p1;
- optional_ioport m_p2;
-
- optional_shared_ptr<u8> m_sharedram;
-
- required_memory_bank m_subbank;
-
- u8 m_sub_ctrl_data;
-
- u8 m_twineagl_xram[8];
- u8 m_twineagl_tilebank[4];
-
- std::unique_ptr<u16[]> m_downtown_protection;
-
- u16 metafox_protection_r(offs_t offset);
- void twineagl_tilebank_w(offs_t offset, u8 data);
- u8 sharedram_68000_r(offs_t offset);
- void sharedram_68000_w(offs_t offset, u8 data);
- void sub_ctrl_w(offs_t offset, u8 data);
- void sub_bankswitch_w(u8 data);
- void sub_bankswitch_lockout_w(u8 data);
- u8 ff_r();
- u8 downtown_ip_r(offs_t offset);
- void calibr50_sub_bankswitch_w(u8 data);
- void calibr50_soundlatch2_w(u8 data);
- void twineagl_ctrl_w(u8 data);
- u16 twineagl_debug_r();
- u16 twineagl_200100_r(offs_t offset);
- void twineagl_200100_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 downtown_protection_r(offs_t offset);
- void downtown_protection_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 arbalest_debug_r();
- u8 dsw1_r();
- u8 dsw2_r();
-
- DECLARE_MACHINE_RESET(calibr50);
- u16 twineagl_tile_offset(u16 code);
-
- TIMER_DEVICE_CALLBACK_MEMBER(seta_sub_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(tndrcade_sub_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(calibr50_interrupt);
-
- void calibr50_map(address_map &map);
- void calibr50_sub_map(address_map &map);
- void downtown_map(address_map &map);
- void downtown_sub_map(address_map &map);
- void metafox_sub_map(address_map &map);
- void tndrcade_map(address_map &map);
- void tndrcade_sub_map(address_map &map);
- void twineagl_sub_map(address_map &map);
-};
-
-class usclssic_state : public downtown_state
-{
-public:
- usclssic_state(const machine_config &mconfig, device_type type, const char *tag) :
- downtown_state(mconfig, type, tag),
- m_upd4701(*this, "upd4701"),
- m_buttonmux(*this, "buttonmux"),
- m_track_x(*this, "TRACK%u_X", 1U),
- m_track_y(*this, "TRACK%u_Y", 1U),
- m_port_select(0),
- m_tiles_offset(0)
- { }
-
- void usclssic(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(trackball_x_r);
- DECLARE_CUSTOM_INPUT_MEMBER(trackball_y_r);
-
-protected:
- virtual void machine_start() override;
-
-private:
- u16 dsw_r(offs_t offset);
- void lockout_w(u8 data);
-
- void usclssic_palette(palette_device &palette) const;
-
- u16 tile_offset(u16 code);
- u32 screen_update_usclssic(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void usclssic_set_pens();
-
- void usclssic_map(address_map &map);
-
- required_device<upd4701_device> m_upd4701;
- required_device<hc157_device> m_buttonmux;
- required_ioport_array<2> m_track_x;
- required_ioport_array<2> m_track_y;
-
- u8 m_port_select;
- u16 m_tiles_offset;
-};
-
-class kiwame_state : public seta_state
-{
-public:
- kiwame_state(const machine_config &mconfig, device_type type, const char *tag) :
- seta_state(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_key(*this, "KEY%u", 0U)
- { }
-
- void kiwame(machine_config &config);
-
-private:
- void row_select_w(u16 data);
- u16 input_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(kiwame_vblank);
-
- void kiwame_map(address_map &map);
-
- required_device<tmp68301_device> m_maincpu;
- required_ioport_array<10> m_key;
-
- u16 m_kiwame_row_select;
-};
-
-class zombraid_state : public seta_state
-{
-public:
- zombraid_state(const machine_config &mconfig, device_type type, const char *tag) :
- seta_state(mconfig, type, tag),
- m_adc(*this, "adc"),
- m_gun_inputs(*this, {"GUNX1", "GUNY1", "GUNX2", "GUNY2"}),
- m_gun_recoil(*this, "Player%u_Gun_Recoil", 1U)
- { }
-
- void zombraid(machine_config &config);
- void init_zombraid();
-
-protected:
- DECLARE_MACHINE_START(zombraid);
-
-private:
- double adc_cb(u8 input);
- u16 gun_r();
- void gun_w(u16 data);
-
- void zombraid_map(address_map &map);
- void zombraid_x1_map(address_map &map);
-
- required_device<adc083x_device> m_adc;
- required_ioport_array<4> m_gun_inputs;
- output_finder<2> m_gun_recoil;
-};
-
-class setaroul_state : public seta_state
-{
-public:
- setaroul_state(const machine_config &mconfig, device_type type, const char *tag) :
- seta_state(mconfig, type, tag),
- m_rtc(*this, "rtc"),
- m_hopper(*this, "hopper"),
- m_bet(*this, "BET.%02X", 0),
- m_mux(0),
- m_pay(0),
- m_led(0),
- m_coin_start_cycles(0)
- { }
-
- void setaroul(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_drop_start);
- DECLARE_CUSTOM_INPUT_MEMBER(coin_sensors_r);
- DECLARE_CUSTOM_INPUT_MEMBER(hopper_sensors_r);
-
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
-private:
- void rtc_w(u16 data);
- u16 rtc_r(offs_t offset);
-
- u16 inputs_r();
- void mux_w(u16 data);
-
- void pay_w(u8 data);
- void led_w(u8 data);
-
- u16 spritecode_r(offs_t offset);
- void spritecode_w(offs_t offset, u16 data);
-
- void spriteylow_w(offs_t offset, u16 data);
-
- void spritectrl_w(offs_t offset, u16 data);
-
- DECLARE_MACHINE_START(setaroul);
- DECLARE_MACHINE_RESET(setaroul);
-
- void setaroul_palette(palette_device &palette) const;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
-
- void setaroul_map(address_map &map);
-
- required_device<upd4992_device> m_rtc; // ! Actually D4911C !
- required_device<ticket_dispenser_device> m_hopper;
- required_ioport_array<26> m_bet;
-
- u8 m_mux;
-
- u8 m_pay;
- u8 m_led;
-
- uint64_t m_coin_start_cycles;
-
- void show_outputs();
-};
-
-class jockeyc_state : public seta_state
-{
-public:
- jockeyc_state(const machine_config &mconfig, device_type type, const char *tag) :
- seta_state(mconfig, type, tag),
- m_rtc(*this, "rtc"),
- m_hopper1(*this, "hopper1"), m_hopper2(*this, "hopper2"),
- m_inttoote_700000(*this, "inttoote_700000"),
- m_key1(*this, "KEY1.%u", 0), m_key2(*this, "KEY2.%u", 0),
- m_dsw1(*this, "DSW1"),
- m_dsw2_3(*this, "DSW2_3"),
- m_cabinet(*this, "CABINET"),
- m_p1x(*this, "P1X"),
- m_p1y(*this, "P1Y"),
- m_out_cancel(*this, "cancel%u", 1U),
- m_out_payout(*this, "payout%u", 1U),
- m_out_start(*this, "start%u", 1U),
- m_out_help(*this, "help"),
- m_out_itstart(*this, "start"),
- m_mux(0),
- m_out(0)
- { }
-
- void inttoote(machine_config &config);
- void jockeyc(machine_config &config);
-
- void init_inttoote();
-
-private:
- void rtc_w(u16 data);
- u16 rtc_r(offs_t offset);
-
- u16 dsw_r(offs_t offset);
- u16 comm_r();
-
- u16 mux_r();
- void jockeyc_mux_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void jockeyc_out_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- u16 trackball_r(offs_t offset);
-
- DECLARE_MACHINE_START(jockeyc);
- DECLARE_MACHINE_START(inttoote);
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
-
- void inttoote_mux_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void inttoote_out_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 inttoote_700000_r(offs_t offset);
-
- void inttoote_map(address_map &map);
- void jockeyc_map(address_map &map);
-
- required_device<upd4992_device> m_rtc; // ! Actually D4911C !
- required_device<ticket_dispenser_device> m_hopper1, m_hopper2; // the 2nd hopper is optional
-
- optional_shared_ptr<u16> m_inttoote_700000;
- required_ioport_array<5> m_key1, m_key2;
- required_ioport m_dsw1, m_dsw2_3;
- optional_ioport m_cabinet;
- optional_ioport m_p1x;
- optional_ioport m_p1y;
-
- output_finder<2> m_out_cancel;
- output_finder<2> m_out_payout;
- output_finder<2> m_out_start;
- output_finder<> m_out_help;
- output_finder<> m_out_itstart;
-
- u16 m_mux;
- u16 m_out;
-
- void update_hoppers();
- void show_outputs();
-};
-
-#endif // MAME_INCLUDES_SETA_H
diff --git a/src/mame/includes/seta2.h b/src/mame/includes/seta2.h
deleted file mode 100644
index f075edf22bf..00000000000
--- a/src/mame/includes/seta2.h
+++ /dev/null
@@ -1,251 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia, David Haywood
-#ifndef MAME_INCLUDES_SETA2_H
-#define MAME_INCLUDES_SETA2_H
-
-#pragma once
-
-
-#include "machine/tmp68301.h"
-#include "machine/eepromser.h"
-#include "machine/intelfsh.h"
-#include "machine/ticket.h"
-#include "machine/timer.h"
-#include "machine/upd4992.h"
-#include "sound/okim9810.h"
-#include "sound/x1_010.h"
-#include "emupal.h"
-#include "screen.h"
-
-class seta2_state : public driver_device
-{
-public:
- seta2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_sub(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
-
- m_oki(*this, "oki"),
- m_eeprom(*this, "eeprom"),
- m_flash(*this, "flash"),
- m_dispenser(*this, "dispenser"),
-
- m_x1_bank(*this, "x1_bank_%u", 1U),
- m_nvram(*this, "nvram"),
- m_spriteram(*this, "spriteram", 0x40000, ENDIANNESS_BIG),
- m_tileram(*this, "tileram"),
- m_vregs(*this, "vregs", 0x40, ENDIANNESS_BIG),
- m_leds(*this, "led%u", 0U),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void seta2(machine_config &config);
- void seta2_32m(machine_config &config);
- void grdians(machine_config &config);
- void grdiansa(machine_config &config);
- void myangel(machine_config &config);
- void penbros(machine_config &config);
- void pzlbowl(machine_config &config);
- void myangel2(machine_config &config);
- void reelquak(machine_config &config);
- void ablastb(machine_config &config);
- void gundamex(machine_config &config);
- void telpacfl(machine_config &config);
- void samshoot(machine_config &config);
- void namcostr(machine_config &config);
-
- void init_namcostr();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- void grdians_lockout_w(uint8_t data);
-
- uint16_t mj4simai_p1_r();
- uint16_t mj4simai_p2_r();
-
- uint16_t pzlbowl_protection_r(address_space &space);
- uint8_t pzlbowl_coins_r();
- void pzlbowl_coin_counter_w(uint8_t data);
-
- void reelquak_leds_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void reelquak_coin_w(uint8_t data);
-
- void samshoot_coin_w(uint8_t data);
-
- void telpacfl_lamp1_w(uint8_t data);
- void telpacfl_lamp2_w(uint8_t data);
- void telpacfl_lockout_w(uint8_t data);
-
- uint16_t gundamex_eeprom_r();
- void gundamex_eeprom_w(uint16_t data);
-
- void vregs_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t vregs_r(offs_t offset);
- uint16_t spriteram_r(offs_t offset);
- void spriteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- int calculate_global_xoffset(int nozoom_fixedpalette_fixedposition);
- int calculate_global_yoffset(int nozoom_fixedpalette_fixedposition);
- void draw_sprites_line(bitmap_ind16 &bitmap, const rectangle &cliprect, int scanline, int realscanline, int xoffset, uint32_t xzoom, bool xzoominverted);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
- void sound_bank_w(offs_t offset, uint8_t data);
-
- INTERRUPT_GEN_MEMBER(seta2_interrupt);
- INTERRUPT_GEN_MEMBER(samshoot_interrupt);
-
- void ablastb_map(address_map &map);
- void grdians_map(address_map &map);
- void gundamex_map(address_map &map);
- void mj4simai_map(address_map &map);
- void myangel2_map(address_map &map);
- void myangel_map(address_map &map);
- void namcostr_map(address_map &map);
- void penbros_base_map(address_map &map);
- void penbros_map(address_map &map);
- void pzlbowl_map(address_map &map);
- void reelquak_map(address_map &map);
- void samshoot_map(address_map &map);
- void telpacfl_map(address_map &map);
- void x1_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_sub;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- optional_device<okim9810_device> m_oki;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<intelfsh16_device> m_flash;
- optional_device<ticket_dispenser_device> m_dispenser;
-
- optional_memory_bank_array<8> m_x1_bank;
- optional_shared_ptr<uint16_t> m_nvram;
- memory_share_creator<uint16_t> m_spriteram;
- optional_shared_ptr<uint16_t> m_tileram;
- memory_share_creator<uint16_t> m_vregs;
- output_finder<7> m_leds;
- output_finder<11> m_lamps;
-
- int m_keyboard_row;
- std::unique_ptr<uint16_t[]> m_private_spriteram;
-
-private:
- void drawgfx_line(bitmap_ind16 &bitmap, const rectangle &cliprect, int gfx, const uint8_t* const addr, const uint32_t realcolor, int flipx, int flipy, int base_sx, uint32_t xzoom, int shadow, int screenline, int line, int opaque);
- inline void get_tile(uint16_t* spriteram, int is_16x16, int x, int y, int page, int& code, int& attr, int& flipx, int& flipy, int& color);
-
- std::unique_ptr<uint32_t[]> m_realtilenumber;
- gfx_element *m_spritegfx;
-
- uint16_t m_rasterposition;
- uint16_t m_rasterenabled;
- TIMER_CALLBACK_MEMBER(raster_timer_done);
- emu_timer *m_raster_timer;
-};
-
-
-class mj4simai_state : public seta2_state
-{
-public:
- mj4simai_state(const machine_config &mconfig, device_type type, const char *tag)
- : seta2_state(mconfig, type, tag)
- { }
-
-protected:
- virtual void machine_start() override;
-};
-
-
-class funcube_state : public seta2_state
-{
-public:
- funcube_state(const machine_config &mconfig, device_type type, const char *tag)
- : seta2_state(mconfig, type, tag)
- , m_outputs(*this, "outputs")
- , m_funcube_leds(*this, "funcube_leds")
- { }
-
- void funcube(machine_config &config);
- void funcube3(machine_config &config);
- void funcube2(machine_config &config);
-
- void init_funcube3();
- void init_funcube();
- void init_funcube2();
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint32_t nvram_r(offs_t offset);
- void nvram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t debug_r();
- uint16_t coins_r();
- void leds_w(uint16_t data);
- uint16_t outputs_r();
- void outputs_w(uint16_t data);
- uint16_t battery_r();
-
- TIMER_DEVICE_CALLBACK_MEMBER(funcube_interrupt);
-
- void funcube2_map(address_map &map);
- void funcube2_sub_io(address_map &map);
- void funcube_map(address_map &map);
- void funcube_sub_io(address_map &map);
- void funcube_sub_map(address_map &map);
-
- void funcube_debug_outputs();
-
- required_shared_ptr<uint16_t> m_outputs;
- required_shared_ptr<uint16_t> m_funcube_leds;
- uint64_t m_coin_start_cycles;
- uint8_t m_hopper_motor;
-};
-
-
-class staraudi_state : public seta2_state
-{
-public:
- staraudi_state(const machine_config &mconfig, device_type type, const char *tag) :
- seta2_state(mconfig, type, tag),
- m_rtc(*this, "rtc"),
- m_rgbram(*this, "rgbram")
- {
- }
- static constexpr feature_type unemulated_features() { return feature::CAMERA | feature::PRINTER; }
-
- void staraudi(machine_config &config);
-
-private:
- void camera_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- void lamps1_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- void lamps2_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- uint16_t tileram_r(offs_t offset);
- void tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint32_t staraudi_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void staraudi_map(address_map &map);
-
- virtual void driver_start() override;
-
- void staraudi_debug_outputs();
-
- void draw_rgbram(bitmap_ind16 &bitmap);
-
- required_device<upd4992_device> m_rtc;
- required_shared_ptr<uint16_t> m_rgbram;
-
- uint8_t m_lamps1 = 0, m_lamps2 = 0, m_cam = 0;
-};
-
-#endif // MAME_INCLUDES_SETA2_H
diff --git a/src/mame/includes/sg1000.h b/src/mame/includes/sg1000.h
deleted file mode 100644
index 53c97e7742d..00000000000
--- a/src/mame/includes/sg1000.h
+++ /dev/null
@@ -1,129 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-
-#ifndef MAME_INCLUDES_SG1000_H
-#define MAME_INCLUDES_SG1000_H
-
-#include "cpu/z80/z80.h"
-#include "formats/sf7000_dsk.h"
-#include "imagedev/floppy.h"
-#include "imagedev/printer.h"
-#include "bus/centronics/ctronics.h"
-#include "machine/i8255.h"
-#include "machine/i8251.h"
-#include "machine/ram.h"
-#include "bus/sega8/sega8_slot.h"
-#include "bus/sg1000_exp/sg1000exp.h"
-#include "machine/upd765.h"
-#include "sound/sn76496.h"
-#include "video/tms9928a.h"
-#include "crsshair.h"
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "z80"
-#define SN76489AN_TAG "sn76489an"
-#define UPD765_TAG "upd765"
-#define UPD8251_TAG "upd8251"
-#define UPD9255_TAG "upd9255"
-#define UPD9255_1_TAG "upd9255_1" // "upd9255_0" is being used by sk1100 device
-#define CENTRONICS_TAG "centronics"
-#define TMS9918A_TAG "tms9918a"
-#define RS232_TAG "rs232"
-#define CARTSLOT_TAG "slot"
-#define EXPSLOT_TAG "sgexp"
-
-
-
-class sg1000_state : public driver_device
-{
-public:
- sg1000_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_ram(*this, RAM_TAG),
- m_rom(*this, Z80_TAG),
- m_cart(*this, CARTSLOT_TAG),
- m_sgexpslot(*this, EXPSLOT_TAG),
- m_pa7(*this, "PA7"),
- m_pb7(*this, "PB7")
- { }
-
- void sg1000(machine_config &config);
- void omv(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER( trigger_nmi );
-
-protected:
- enum
- {
- TIMER_LIGHTGUN_TICK
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- optional_device<sega8_cart_slot_device> m_cart;
- optional_device<sg1000_expansion_slot_device> m_sgexpslot;
- optional_ioport m_pa7;
- optional_ioport m_pb7;
-
- virtual void machine_start() override;
-
- uint8_t peripheral_r(offs_t offset);
- void peripheral_w(offs_t offset, uint8_t data);
-
- uint8_t omv_r(offs_t offset);
- void omv_w(offs_t offset, uint8_t data);
-
- void omv_io_map(address_map &map);
- void omv_map(address_map &map);
- void sc3000_io_map(address_map &map);
- void sc3000_map(address_map &map);
- void sg1000_io_map(address_map &map);
- void sg1000_map(address_map &map);
-};
-
-class sc3000_state : public sg1000_state
-{
-public:
- sc3000_state(const machine_config &mconfig, device_type type, const char *tag)
- : sg1000_state(mconfig, type, tag)
- { }
-
- void sc3000(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-};
-
-class sf7000_state : public sc3000_state
-{
-public:
- sf7000_state(const machine_config &mconfig, device_type type, const char *tag)
- : sc3000_state(mconfig, type, tag),
- m_fdc(*this, UPD765_TAG),
- m_centronics(*this, CENTRONICS_TAG),
- m_floppy0(*this, UPD765_TAG ":0:3ssdd")
- { }
-
- void sf7000(machine_config &config);
-
-private:
- required_device<upd765a_device> m_fdc;
- required_device<centronics_device> m_centronics;
- required_device<floppy_image_device> m_floppy0;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- int m_centronics_busy;
- DECLARE_WRITE_LINE_MEMBER( write_centronics_busy );
- uint8_t ppi_pa_r();
- void ppi_pc_w(uint8_t data);
-
- static void floppy_formats(format_registration &fr);
- void sf7000_io_map(address_map &map);
- void sf7000_map(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/shadfrce.h b/src/mame/includes/shadfrce.h
deleted file mode 100644
index cb5e9fb2119..00000000000
--- a/src/mame/includes/shadfrce.h
+++ /dev/null
@@ -1,109 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_SHADFRCE_H
-#define MAME_INCLUDES_SHADFRCE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class shadfrce_state : public driver_device
-{
-public:
- shadfrce_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_io_p1(*this, "P1"),
- m_io_p2(*this, "P2"),
- m_io_dsw1(*this, "DSW1"),
- m_io_dsw2(*this, "DSW2"),
- m_io_other(*this, "OTHER"),
- m_io_extra(*this, "EXTRA"),
- m_io_misc(*this, "MISC"),
- m_io_system(*this, "SYSTEM"),
- m_fgvideoram(*this, "fgvideoram"),
- m_bg0videoram(*this, "bg0videoram"),
- m_bg1videoram(*this, "bg1videoram"),
- m_spvideoram(*this, "spvideoram")
- { }
-
- void shadfrce(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_ioport m_io_p1;
- required_ioport m_io_p2;
- required_ioport m_io_dsw1;
- required_ioport m_io_dsw2;
- required_ioport m_io_other;
- required_ioport m_io_extra;
- required_ioport m_io_misc;
- required_ioport m_io_system;
-
- required_shared_ptr<uint16_t> m_fgvideoram;
- required_shared_ptr<uint16_t> m_bg0videoram;
- required_shared_ptr<uint16_t> m_bg1videoram;
- required_shared_ptr<uint16_t> m_spvideoram;
-
- std::unique_ptr<uint16_t[]> m_spvideoram_old;
- tilemap_t *m_fgtilemap;
- tilemap_t *m_bg0tilemap;
- tilemap_t *m_bg1tilemap;
- int m_video_enable;
- int m_irqs_enable;
- int m_raster_scanline;
- int m_raster_irq_enable;
- int m_vblank;
- int m_prev_value;
-
- void flip_screen(uint16_t data);
- uint16_t input_ports_r(offs_t offset);
- void screen_brt_w(uint8_t data);
- void irq_ack_w(offs_t offset, uint16_t data);
- void irq_w(uint16_t data);
- void scanline_w(uint16_t data);
- void fgvideoram_w(offs_t offset, uint16_t data);
- void bg0videoram_w(offs_t offset, uint16_t data);
- void bg1videoram_w(offs_t offset, uint16_t data);
- void bg0scrollx_w(uint16_t data);
- void bg0scrolly_w(uint16_t data);
- void bg1scrollx_w(uint16_t data);
- void bg1scrolly_w(uint16_t data);
- void oki_bankswitch_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_fgtile_info);
- TILE_GET_INFO_MEMBER(get_bg0tile_info);
- TILE_GET_INFO_MEMBER(get_bg1tile_info);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void shadfrce_map(address_map &map);
- void shadfrce_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SHADFRCE_H
diff --git a/src/mame/includes/shangha3.h b/src/mame/includes/shangha3.h
deleted file mode 100644
index c55bce73886..00000000000
--- a/src/mame/includes/shangha3.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_SHANGHA3_H
-#define MAME_INCLUDES_SHANGHA3_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "screen.h"
-
-class shangha3_state : public driver_device
-{
-public:
- shangha3_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_ram(*this, "ram"),
- m_cgrom(*this, "gfx1"),
- m_okibank(*this, "okibank")
- { }
-
- void shangha3(machine_config &config);
- void heberpop(machine_config &config);
- void blocken(machine_config &config);
-
- void init_shangha3();
- void init_heberpop();
- void init_blocken();
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_ram;
- required_region_ptr<uint8_t> m_cgrom;
-
- optional_memory_bank m_okibank;
-
- // driver init configuration
- int m_do_shadows;
- uint8_t m_drawmode_table[16];
-
- int m_prot_count;
- uint16_t m_gfxlist_addr;
- bitmap_ind16 m_rawbitmap;
-
- // common
- void flipscreen_w(uint8_t data);
- void gfxlist_addr_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void blitter_go_w(uint16_t data);
- void irq_ack_w(uint16_t data);
- uint8_t cgrom_r(offs_t offset);
-
- // shangha3 specific
- uint16_t shangha3_prot_r();
- void shangha3_prot_w(uint16_t data);
- void shangha3_coinctrl_w(uint8_t data);
-
- // heberpop specific
- void heberpop_coinctrl_w(uint8_t data);
-
- // blocken specific
- void blocken_coinctrl_w(uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void blocken_map(address_map &map);
- void blocken_oki_map(address_map &map);
- void heberpop_map(address_map &map);
- void heberpop_sound_io_map(address_map &map);
- void heberpop_sound_map(address_map &map);
- void shangha3_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SHANGHA3_H
diff --git a/src/mame/includes/shangkid.h b/src/mame/includes/shangkid.h
deleted file mode 100644
index 327e75fc8b3..00000000000
--- a/src/mame/includes/shangkid.h
+++ /dev/null
@@ -1,130 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-#ifndef MAME_INCLUDES_SHANGKID_H
-#define MAME_INCLUDES_SHANGKID_H
-
-#pragma once
-
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class dynamski_state : public driver_device
-{
-public:
- dynamski_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void dynamski(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- bool m_int_enable[2];
-
- DECLARE_WRITE_LINE_MEMBER(int_enable_1_w);
- DECLARE_WRITE_LINE_MEMBER(irq_1_w);
-
-private:
- void palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprec );
-
- void prgmap(address_map &map);
- void portmap(address_map &map);
-};
-
-class chinhero_state : public dynamski_state
-{
-public:
- chinhero_state(const machine_config &mconfig, device_type type, const char *tag) :
- dynamski_state(mconfig, type, tag),
- m_audiocpu(*this, "audiocpu"),
- m_bbx(*this, "bbx"),
- m_aysnd(*this, "aysnd"),
- m_videoreg(*this, "videoreg")
- { }
-
- void chinhero(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_bbx;
- required_device<ay8910_device> m_aysnd;
- required_shared_ptr<uint8_t> m_videoreg;
-
- int m_gfx_type;
-
- void nmiq_1_w(uint8_t data);
- void nmiq_2_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
-
-private:
- bool m_nmi_enable[2];
- tilemap_t *m_background;
-
- void ay8910_porta_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(sound_enable_w);
- DECLARE_WRITE_LINE_MEMBER(int_enable_2_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_1_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_2_w);
- DECLARE_WRITE_LINE_MEMBER(irq_2_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprite(const uint8_t *source, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void bbx_map(address_map &map);
- void bbx_portmap(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
-};
-
-class shangkid_state : public chinhero_state
-{
-public:
- shangkid_state(const machine_config &mconfig, device_type type, const char *tag) :
- chinhero_state(mconfig, type, tag),
- m_soundbank(*this, "soundbank")
- { }
-
- void shangkid(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_memory_bank m_soundbank;
-
- void ay8910_porta_w(uint8_t data);
-
- void bbx_map(address_map &map);
- void bbx_portmap(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SHANGKID_H
diff --git a/src/mame/includes/shaolins.h b/src/mame/includes/shaolins.h
deleted file mode 100644
index 83b54218b98..00000000000
--- a/src/mame/includes/shaolins.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Allard van der Bas
-#ifndef MAME_INCLUDES_SHAOLINS_H
-#define MAME_INCLUDES_SHAOLINS_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class shaolins_state : public driver_device
-{
-public:
- shaolins_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram")
- { }
-
- void shaolins(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
-
- int m_palettebank;
- tilemap_t *m_bg_tilemap;
- uint8_t m_nmi_enable;
-
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void palettebank_w(uint8_t data);
- void scroll_w(uint8_t data);
- void nmi_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void video_start() override;
- void shaolins_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
- void shaolins_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SHAOLINS_H
diff --git a/src/mame/includes/shisen.h b/src/mame/includes/shisen.h
deleted file mode 100644
index 8e1da120029..00000000000
--- a/src/mame/includes/shisen.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_SHISEN_H
-#define MAME_INCLUDES_SHISEN_H
-
-#pragma once
-
-#include "audio/m72.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class shisen_state : public driver_device
-{
-public:
- shisen_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audio(*this, "m72"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_paletteram(*this, "paletteram"),
- m_videoram(*this, "videoram")
- { }
-
- void shisen(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<m72_audio_device> m_audio;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_paletteram;
- required_shared_ptr<uint8_t> m_videoram;
-
- int m_gfxbank;
- tilemap_t *m_bg_tilemap;
-
- void coin_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void bankswitch_w(uint8_t data);
- void paletteram_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void shisen_io_map(address_map &map);
- void shisen_map(address_map &map);
- void shisen_sound_io_map(address_map &map);
- void shisen_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SHISEN_H
diff --git a/src/mame/includes/shootout.h b/src/mame/includes/shootout.h
deleted file mode 100644
index 8664c6bcfca..00000000000
--- a/src/mame/includes/shootout.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi, Phil Stroffolino, Bryan McPhail
-#ifndef MAME_INCLUDES_SHOOTOUT_H
-#define MAME_INCLUDES_SHOOTOUT_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class shootout_state : public driver_device
-{
-public:
- shootout_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram"),
- m_textram(*this, "textram"),
- m_videoram(*this, "videoram")
- { }
-
- void shootouj(machine_config &config);
- void shootouk(machine_config &config);
- void shootout(machine_config &config);
-
- void init_shootout();
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_textram;
- required_shared_ptr<uint8_t> m_videoram;
-
- tilemap_t *m_background;
- tilemap_t *m_foreground;
-
- int m_ccnt_old_val;
-
- void bankswitch_w(uint8_t data);
- uint8_t sound_cpu_command_r();
- void sound_cpu_command_w(uint8_t data);
- void flipscreen_w(uint8_t data);
- void coincounter_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void textram_w(offs_t offset, uint8_t data);
-
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- void shootout_palette(palette_device &palette) const;
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- uint32_t screen_update_shootout(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_shootouj(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int bank_bits );
-
- void shootouj_map(address_map &map);
- void shootout_map(address_map &map);
- void shootout_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SHOOTOUT_H
diff --git a/src/mame/includes/shuuz.h b/src/mame/includes/shuuz.h
deleted file mode 100644
index f07487764ef..00000000000
--- a/src/mame/includes/shuuz.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Shuuz hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SHUUZ_H
-#define MAME_INCLUDES_SHUUZ_H
-
-#pragma once
-
-#include "video/atarimo.h"
-#include "video/atarivad.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class shuuz_state : public driver_device
-{
-public:
- shuuz_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_vad(*this, "vad")
- { }
-
- void shuuz(machine_config &config);
-
-private:
- void latch_w(uint16_t data);
- uint16_t leta_r(offs_t offset);
- uint16_t special_port0_r();
-
- virtual void machine_start() override;
-
- int get_hblank(screen_device &screen) const { return (screen.hpos() > (screen.width() * 9 / 10)); }
-
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<atari_vad_device> m_vad;
-
- int m_cur[2];
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_SHUUZ_H
diff --git a/src/mame/includes/sidearms.h b/src/mame/includes/sidearms.h
deleted file mode 100644
index 5ca6f2622cc..00000000000
--- a/src/mame/includes/sidearms.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Leaman, Curt Coder
-#ifndef MAME_INCLUDES_SIDEARMS_H
-#define MAME_INCLUDES_SIDEARMS_H
-
-#pragma once
-
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class sidearms_state : public driver_device
-{
-public:
- sidearms_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram") ,
- m_bg_scrollx(*this, "bg_scrollx"),
- m_bg_scrolly(*this, "bg_scrolly"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_ports(*this, { { "SYSTEM", "P1", "P2", "DSW0", "DSW1" } })
- {
- }
-
- void sidearms(machine_config &config);
- void turtship(machine_config &config);
- void whizz(machine_config &config);
-
- void init_dyger();
- void init_sidearms();
- void init_whizz();
- void init_turtship();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram8_device> m_spriteram;
-
- required_shared_ptr<uint8_t> m_bg_scrollx;
- required_shared_ptr<uint8_t> m_bg_scrolly;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- optional_ioport_array<5> m_ports;
-
- int m_gameid;
-
- uint8_t *m_tilerom;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- int m_bgon;
- int m_objon;
- int m_staron;
- int m_charon;
- int m_flipon;
-
- uint32_t m_hflop_74a_n;
- uint32_t m_hcount_191;
- uint32_t m_vcount_191;
- uint32_t m_latch_374;
-
- void bankswitch_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void c804_w(uint8_t data);
- void gfxctrl_w(uint8_t data);
- void star_scrollx_w(uint8_t data);
- void star_scrolly_w(uint8_t data);
-
- uint8_t turtship_ports_r(offs_t offset);
-
- void whizz_bankswitch_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- TILE_GET_INFO_MEMBER(get_sidearms_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_philko_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites_region(bitmap_ind16 &bitmap, const rectangle &cliprect, int start_offset, int end_offset );
- void draw_starfield( bitmap_ind16 &bitmap );
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void sidearms_map(address_map &map);
- void sidearms_sound_map(address_map &map);
- void turtship_map(address_map &map);
- void whizz_io_map(address_map &map);
- void whizz_map(address_map &map);
- void whizz_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SIDEARMS_H
diff --git a/src/mame/includes/sidepckt.h b/src/mame/includes/sidepckt.h
deleted file mode 100644
index d61cba0da35..00000000000
--- a/src/mame/includes/sidepckt.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-/******************************************************************************
-
- Data East Side Pocket hardware
-
-******************************************************************************/
-#ifndef MAME_INCLUDES_SIDEPKT_H
-#define MAME_INCLUDES_SIDEPKT_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class sidepckt_state : public driver_device
-{
-public:
- sidepckt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mcu(*this, "mcu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void sidepcktb(machine_config &config);
- void sidepckt(machine_config &config);
-
- void init_sidepckt();
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<i8751_device> m_mcu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- tilemap_t *m_bg_tilemap;
-
- uint8_t m_mcu_p1;
- uint8_t m_mcu_p2;
- uint8_t m_mcu_p3;
-
- uint8_t m_scroll_y;
-
- uint8_t mcu_r();
- void mcu_w(uint8_t data);
-
- void mcu_p1_w(uint8_t data);
- uint8_t mcu_p2_r();
- void mcu_p3_w(uint8_t data);
-
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- uint8_t scroll_y_r();
- void scroll_y_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- void sidepckt_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- void sidepckt_map(address_map &map);
- void sidepcktb_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SIDEPKT_H
diff --git a/src/mame/includes/silkroad.h b/src/mame/includes/silkroad.h
deleted file mode 100644
index bbf7f80c6e3..00000000000
--- a/src/mame/includes/silkroad.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, R. Belmont
-#ifndef MAME_INCLUDES_SILKROAD_H
-#define MAME_INCLUDES_SILKROAD_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class silkroad_state : public driver_device
-{
-public:
- silkroad_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_vram(*this, "vram%u", 1U),
- m_sprram(*this, "sprram"),
- m_regs(*this, "regs"),
- m_okibank(*this, "okibank")
- { }
-
- void silkroad(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr_array<uint32_t, 3> m_vram;
- required_shared_ptr<uint32_t> m_sprram;
- required_shared_ptr<uint32_t> m_regs;
-
- required_memory_bank m_okibank;
-
- tilemap_t *m_tilemap[3];
-
- void coin_w(uint8_t data);
- template<int Layer> void vram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void okibank_w(uint8_t data);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void cpu_map(address_map &map);
- void oki_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SILKROAD_H
diff --git a/src/mame/includes/simpl156.h b/src/mame/includes/simpl156.h
deleted file mode 100644
index dd9829a801c..00000000000
--- a/src/mame/includes/simpl156.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-/*************************************************************************
-
- Simple 156 based board
-
-*************************************************************************/
-
-#include "machine/eepromser.h"
-#include "sound/okim6295.h"
-#include "video/deco16ic.h"
-#include "video/decospr.h"
-#include "emupal.h"
-
-class simpl156_state : public driver_device
-{
-public:
- simpl156_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_deco_tilegen(*this, "tilegen"),
- m_eeprom(*this, "eeprom"),
- m_okimusic(*this, "okimusic") ,
- m_mainram(*this, "mainram"),
- m_systemram(*this, "systemram"),
- m_sprgen(*this, "spritegen"),
- m_palette(*this, "palette") { }
-
- void joemacr(machine_config &config);
- void magdrop(machine_config &config);
- void chainrec(machine_config &config);
- void mitchell156(machine_config &config);
- void magdropp(machine_config &config);
-
- void init_simpl156();
- void init_joemacr();
- void init_charlien();
- void init_prtytime();
- void init_osman();
- void init_chainrec();
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<deco16ic_device> m_deco_tilegen;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<okim6295_device> m_okimusic;
- /* memory pointers */
- std::unique_ptr<u16[]> m_rowscroll[2];
- required_shared_ptr<u32> m_mainram;
- required_shared_ptr<u32> m_systemram;
- optional_device<decospr_device> m_sprgen;
- required_device<palette_device> m_palette;
- std::unique_ptr<u16[]> m_spriteram;
- size_t m_spriteram_size;
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- DECOSPR_PRIORITY_CB_MEMBER(pri_callback);
-
- void eeprom_w(u32 data);
- u32 spriteram_r(offs_t offset);
- void spriteram_w(offs_t offset, u32 data, u32 mem_mask);
- u32 mainram_r(offs_t offset);
- void mainram_w(offs_t offset, u32 data, u32 mem_mask);
- template<unsigned Layer> u32 rowscroll_r(offs_t offset);
- template<unsigned Layer> void rowscroll_w(offs_t offset, u32 data, u32 mem_mask);
- u32 joemacr_speedup_r();
- u32 chainrec_speedup_r();
- u32 prtytime_speedup_r();
- u32 charlien_speedup_r();
- u32 osman_speedup_r();
-
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_interrupt);
-
- void chainrec_map(address_map &map);
- void joemacr_map(address_map &map);
- void magdrop_map(address_map &map);
- void magdropp_map(address_map &map);
- void mitchell156_map(address_map &map);
-};
diff --git a/src/mame/includes/simpsons.h b/src/mame/includes/simpsons.h
deleted file mode 100644
index aa5fc8b0e6d..00000000000
--- a/src/mame/includes/simpsons.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-#ifndef MAME_INCLUDES_SIMPSONS_H
-#define MAME_INCLUDES_SIMPSONS_H
-
-#pragma once
-
-#include "cpu/m6809/konami.h" // for the callback and the firq irq definition
-#include "video/k052109.h"
-#include "video/k053251.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/konami_helper.h"
-
-class simpsons_state : public driver_device
-{
-public:
- simpsons_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_palette_view(*this, "palette_view"),
- m_video_view(*this, "video_view"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k052109(*this, "k052109"),
- m_k053246(*this, "k053246"),
- m_k053251(*this, "k053251")
- { }
-
- void simpsons(machine_config &config);
-
-private:
- enum
- {
- TIMER_DMASTART,
- TIMER_DMAEND
- };
-
- /* memory pointers */
- std::unique_ptr<uint16_t[]> m_spriteram;
-
- /* video-related */
- int m_sprite_colorbase;
- int m_layer_colorbase[3];
- int m_layerpri[3];
-
- /* misc */
- int m_firq_enabled;
- u64 m_nmi_enabled;
-
- /* views */
- memory_view m_palette_view;
- memory_view m_video_view;
-
- /* devices */
- required_device<konami_cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k052109_device> m_k052109;
- required_device<k053247_device> m_k053246;
- required_device<k053251_device> m_k053251;
- void z80_bankswitch_w(uint8_t data);
- void z80_arm_nmi_w(uint8_t data);
- void simpsons_eeprom_w(uint8_t data);
- void simpsons_coin_counter_w(uint8_t data);
- uint8_t simpsons_sound_interrupt_r();
- uint8_t simpsons_k052109_r(offs_t offset);
- void simpsons_k052109_w(offs_t offset, uint8_t data);
- uint8_t simpsons_k053247_r(offs_t offset);
- void simpsons_k053247_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_simpsons(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(simpsons_irq);
- void simpsons_video_banking(int bank);
- void simpsons_objdma();
- void z80_nmi_w(int state);
- K052109_CB_MEMBER(tile_callback);
- void banking_callback(u8 data);
- K053246_CB_MEMBER(sprite_callback);
-
- void bank0000_map(address_map &map);
- void bank2000_map(address_map &map);
- void main_map(address_map &map);
- void z80_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_SIMPSONS_H
diff --git a/src/mame/includes/skullxbo.h b/src/mame/includes/skullxbo.h
deleted file mode 100644
index 8c9449edc24..00000000000
--- a/src/mame/includes/skullxbo.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Skull & Crossbones hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SKULLXBO_H
-#define MAME_INCLUDES_SKULLXBO_H
-
-#pragma once
-
-#include "machine/atarigen.h"
-#include "machine/timer.h"
-#include "audio/atarijsa.h"
-#include "video/atarimo.h"
-#include "tilemap.h"
-
-class skullxbo_state : public atarigen_state
-{
-public:
- skullxbo_state(const machine_config &mconfig, device_type type, const char *tag) :
- atarigen_state(mconfig, type, tag),
- m_jsa(*this, "jsa"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_xscroll(*this, "xscroll"),
- m_yscroll(*this, "yscroll"),
- m_mob(*this, "mob"),
- m_playfield_latch(-1),
- m_scanline_int_state(0)
- { }
-
- void skullxbo(machine_config &config);
-
- void init_skullxbo();
-
-protected:
- virtual void machine_start() override;
-
-private:
- void skullxbo_halt_until_hblank_0_w(uint16_t data);
- void skullxbo_mobwr_w(offs_t offset, uint16_t data);
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- void playfield_latch_w(uint16_t data);
- void playfield_latched_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint32_t screen_update_skullxbo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(scanline_interrupt);
- void scanline_int_ack_w(uint16_t data = 0);
- void video_int_ack_w(uint16_t data = 0);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_timer);
- void skullxbo_scanline_update(int scanline);
- void skullxbo_xscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void skullxbo_yscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void skullxbo_mobmsb_w(offs_t offset, uint16_t data);
-
- void main_map(address_map &map);
-
- required_device<atari_jsa_ii_device> m_jsa;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_shared_ptr<uint16_t> m_xscroll;
- required_shared_ptr<uint16_t> m_yscroll;
- required_device<atari_motion_objects_device> m_mob;
- int m_playfield_latch;
-
- static const atari_motion_objects_config s_mob_config;
-
- emu_timer *m_scanline_int_timer;
- bool m_scanline_int_state;
-};
-
-#endif // MAME_INCLUDES_SKULLXBO_H
diff --git a/src/mame/includes/skydiver.h b/src/mame/includes/skydiver.h
deleted file mode 100644
index 90a7889e73f..00000000000
--- a/src/mame/includes/skydiver.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-/*************************************************************************
-
- Atari Skydiver hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SKYDIVER_H
-#define MAME_INCLUDES_SKYDIVER_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-#define SKYDIVER_RANGE_DATA NODE_01
-#define SKYDIVER_NOTE_DATA NODE_02
-#define SKYDIVER_RANGE3_EN NODE_03
-#define SKYDIVER_NOISE_DATA NODE_04
-#define SKYDIVER_NOISE_RST NODE_05
-#define SKYDIVER_WHISTLE1_EN NODE_06
-#define SKYDIVER_WHISTLE2_EN NODE_07
-#define SKYDIVER_OCT1_EN NODE_08
-#define SKYDIVER_OCT2_EN NODE_09
-#define SKYDIVER_SOUND_EN NODE_10
-
-
-class skydiver_state : public driver_device
-{
-public:
- skydiver_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_latch3(*this, "latch3"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_leds(*this, "led%u", 0U),
- m_lamp_s(*this, "lamps"),
- m_lamp_k(*this, "lampk"),
- m_lamp_y(*this, "lampy"),
- m_lamp_d(*this, "lampd"),
- m_lamp_i(*this, "lampi"),
- m_lamp_v(*this, "lampv"),
- m_lamp_e(*this, "lampe"),
- m_lamp_r(*this, "lampr")
- { }
-
- void skydiver(machine_config &config);
-
-private:
- DECLARE_WRITE_LINE_MEMBER(nmion_w);
- void videoram_w(offs_t offset, uint8_t data);
- uint8_t wram_r(offs_t offset);
- void wram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(width_w);
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(start_lamp_1_w);
- DECLARE_WRITE_LINE_MEMBER(start_lamp_2_w);
- DECLARE_WRITE_LINE_MEMBER(lamp_s_w);
- DECLARE_WRITE_LINE_MEMBER(lamp_k_w);
- DECLARE_WRITE_LINE_MEMBER(lamp_y_w);
- DECLARE_WRITE_LINE_MEMBER(lamp_d_w);
- DECLARE_WRITE_LINE_MEMBER(lamp_i_w);
- DECLARE_WRITE_LINE_MEMBER(lamp_v_w);
- DECLARE_WRITE_LINE_MEMBER(lamp_e_w);
- DECLARE_WRITE_LINE_MEMBER(lamp_r_w);
- void latch3_watchdog_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- virtual void machine_reset() override;
- virtual void video_start() override;
- void skydiver_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(interrupt);
- void skydiver_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<f9334_device> m_latch3;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
-
- output_finder<2> m_leds;
- output_finder<> m_lamp_s;
- output_finder<> m_lamp_k;
- output_finder<> m_lamp_y;
- output_finder<> m_lamp_d;
- output_finder<> m_lamp_i;
- output_finder<> m_lamp_v;
- output_finder<> m_lamp_e;
- output_finder<> m_lamp_r;
- int m_nmion;
- tilemap_t *m_bg_tilemap;
- int m_width;
-};
-
-/*----------- defined in audio/skydiver.c -----------*/
-DISCRETE_SOUND_EXTERN( skydiver_discrete );
-
-#endif // MAME_INCLUDES_SKYDIVER_H
diff --git a/src/mame/includes/skyfox.h b/src/mame/includes/skyfox.h
deleted file mode 100644
index e15bfdf21b3..00000000000
--- a/src/mame/includes/skyfox.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/*************************************************************************
-
- Skyfox
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SKYFOX_H
-#define MAME_INCLUDES_SKYFOX_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "screen.h"
-
-class skyfox_state : public driver_device
-{
-public:
- skyfox_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram"),
- m_bgram(*this, "bgram")
- { }
-
- void skyfox(machine_config &config);
-
- void init_skyfox();
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-private:
- /* devices/memory pointers */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_bgram;
-
- int m_bg_ctrl;
-
- void output_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void skyfox_palette(palette_device &palette) const;
- uint32_t screen_update_skyfox(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void skyfox_map(address_map &map);
- void skyfox_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SKYFOX_H
diff --git a/src/mame/includes/skykid.h b/src/mame/includes/skykid.h
deleted file mode 100644
index d1176940937..00000000000
--- a/src/mame/includes/skykid.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-#ifndef MAME_INCLUDES_SKYKID_H
-#define MAME_INCLUDES_SKYKID_H
-
-#pragma once
-
-#include "cpu/m6800/m6801.h"
-#include "sound/namco.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class skykid_state : public driver_device
-{
-public:
- skykid_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_videoram(*this, "videoram")
- , m_textram(*this, "textram")
- , m_spriteram(*this, "spriteram")
- , m_maincpu(*this, "maincpu")
- , m_mcu(*this, "mcu")
- , m_cus30(*this, "namco")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_leds(*this, "led%u", 0U)
- { }
-
- void skykid(machine_config &config);
-
- void init_skykid();
-
-private:
- void inputport_select_w(uint8_t data);
- uint8_t inputport_r();
- void skykid_led_w(uint8_t data);
- void skykid_subreset_w(offs_t offset, uint8_t data);
- void skykid_bankswitch_w(offs_t offset, uint8_t data);
- void skykid_irq_1_ctrl_w(offs_t offset, uint8_t data);
- void skykid_irq_2_ctrl_w(offs_t offset, uint8_t data);
- uint8_t skykid_videoram_r(offs_t offset);
- void skykid_videoram_w(offs_t offset, uint8_t data);
- uint8_t skykid_textram_r(offs_t offset);
- void skykid_textram_w(offs_t offset, uint8_t data);
- void skykid_scroll_x_w(offs_t offset, uint8_t data);
- void skykid_scroll_y_w(offs_t offset, uint8_t data);
- void skykid_flipscreen_priority_w(offs_t offset, uint8_t data);
- TILEMAP_MAPPER_MEMBER(tx_tilemap_scan);
- TILE_GET_INFO_MEMBER(tx_get_tile_info);
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- void skykid_palette(palette_device &palette) const;
- uint32_t screen_update_skykid(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void mcu_map(address_map &map);
- void skykid_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- uint8_t m_inputport_selected;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_textram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_device<cpu_device> m_maincpu;
- required_device<hd63701v0_cpu_device> m_mcu;
- required_device<namco_cus30_device> m_cus30;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- output_finder<2> m_leds;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_tx_tilemap;
- uint8_t m_priority;
- uint16_t m_scroll_x;
- uint16_t m_scroll_y;
- uint8_t m_main_irq_mask;
- uint8_t m_mcu_irq_mask;
-};
-
-#endif // MAME_INCLUDES_SKYKID_H
diff --git a/src/mame/includes/skyraid.h b/src/mame/includes/skyraid.h
deleted file mode 100644
index 6b0600d8203..00000000000
--- a/src/mame/includes/skyraid.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-#ifndef MAME_INCLUDES_SKYRAID_H
-#define MAME_INCLUDES_SKYRAID_H
-
-#pragma once
-
-#include "sound/discrete.h"
-#include "emupal.h"
-
-class skyraid_state : public driver_device
-{
-public:
- skyraid_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_pos_ram(*this, "pos_ram"),
- m_alpha_num_ram(*this, "alpha_num_ram"),
- m_obj_ram(*this, "obj_ram"),
- m_discrete(*this, "discrete"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_led(*this, "led")
- { }
-
- void skyraid(machine_config &config);
-
-private:
- uint8_t skyraid_port_0_r();
- void skyraid_range_w(uint8_t data);
- void skyraid_offset_w(uint8_t data);
- void skyraid_scroll_w(uint8_t data);
- virtual void machine_start() override;
- virtual void video_start() override;
- void skyraid_palette(palette_device &palette) const;
- uint32_t screen_update_skyraid(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void skyraid_sound_w(uint8_t data);
- void draw_text(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_terrain(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_missiles(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_trapezoid(bitmap_ind16& dst, bitmap_ind16& src);
-
- void skyraid_map(address_map &map);
-
- int m_analog_range;
- int m_analog_offset;
-
- int m_scroll;
-
- required_shared_ptr<uint8_t> m_pos_ram;
- required_shared_ptr<uint8_t> m_alpha_num_ram;
- required_shared_ptr<uint8_t> m_obj_ram;
- required_device<discrete_device> m_discrete;
- bitmap_ind16 m_helper;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- output_finder<> m_led;
-};
-
-/*----------- defined in audio/skyraid.c -----------*/
-DISCRETE_SOUND_EXTERN( skyraid_discrete );
-
-#endif // MAME_INCLUDES_SKYRAID_H
diff --git a/src/mame/includes/slapfght.h b/src/mame/includes/slapfght.h
deleted file mode 100644
index ff3aa5c0f3e..00000000000
--- a/src/mame/includes/slapfght.h
+++ /dev/null
@@ -1,156 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:K.Wilkins,Stephane Humbert
-/***************************************************************************
-
- Toaplan Slap Fight hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_SLAPFGHT_H
-#define MAME_INCLUDES_SLAPFGHT_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "video/bufsprite.h"
-#include "machine/taito68705interface.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class slapfght_state : public driver_device
-{
-public:
- slapfght_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_bmcu(*this, "bmcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_fixvideoram(*this, "fixvideoram"),
- m_fixcolorram(*this, "fixcolorram")
- { }
-
- void tigerh(machine_config &config);
- void tigerhb1(machine_config &config);
- void tigerhb2(machine_config &config);
- void tigerhb4(machine_config &config);
- void getstarb2(machine_config &config);
- void slapfighb2(machine_config &config);
- void getstarb1(machine_config &config);
- void perfrman(machine_config &config);
- void slapfigh(machine_config &config);
- void slapfighb1(machine_config &config);
-
- void init_banks();
- void init_getstarb1();
- void init_slapfigh();
- void init_getstarb2();
-
-private:
- // devices, memory pointers
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<taito68705_mcu_device> m_bmcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram8_device> m_spriteram;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- optional_shared_ptr<uint8_t> m_fixvideoram;
- optional_shared_ptr<uint8_t> m_fixcolorram;
-
- /* This it the best way to allow game specific kludges until the system is fully understood */
- enum getstar_id
- {
- GETSTUNK = 0, /* unknown for inclusion of possible new sets */
- //GETSTAR,
- //GETSTARJ,
- GETSTARB1, /* "good" bootleg with same behaviour as 'getstarj' */
- GETSTARB2 /* "lame" bootleg with lots of ingame bugs */
- } m_getstar_id;
-
- tilemap_t *m_pf1_tilemap;
- tilemap_t *m_fix_tilemap;
- uint8_t m_palette_bank;
- uint8_t m_scrollx_lo;
- uint8_t m_scrollx_hi;
- uint8_t m_scrolly;
- bool m_main_irq_enabled;
- bool m_sound_nmi_enabled;
-
- int m_getstar_status;
- int m_getstar_sequence_index;
- int m_getstar_status_state;
- uint8_t m_getstar_cmd;
- uint8_t m_gs_a;
- uint8_t m_gs_d;
- uint8_t m_gs_e;
- uint8_t m_tigerhb_cmd;
-
- uint8_t tigerh_mcu_status_r();
- DECLARE_WRITE_LINE_MEMBER(sound_reset_w);
- DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
- uint8_t vblank_r();
- void sound_nmi_enable_w(offs_t offset, uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void fixram_w(offs_t offset, uint8_t data);
- void fixcol_w(offs_t offset, uint8_t data);
- void scrollx_lo_w(uint8_t data);
- void scrollx_hi_w(uint8_t data);
- void scrolly_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(palette_bank_w);
-
- void scroll_from_mcu_w(offs_t offset, uint8_t data);
-
- uint8_t getstar_mcusim_r();
- void getstar_mcusim_w(uint8_t data);
- uint8_t getstar_mcusim_status_r();
- uint8_t getstarb1_prot_r();
- uint8_t tigerhb1_prot_r();
- void tigerhb1_prot_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- TILE_GET_INFO_MEMBER(get_pf_tile_info);
- TILE_GET_INFO_MEMBER(get_pf1_tile_info);
- TILE_GET_INFO_MEMBER(get_fix_tile_info);
- DECLARE_VIDEO_START(perfrman);
- DECLARE_VIDEO_START(slapfight);
-
- void draw_perfrman_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int layer);
- void draw_slapfight_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_perfrman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_slapfight(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(sound_nmi);
-
- void getstar_map(address_map &map);
- void getstarb1_io_map(address_map &map);
- void getstarb2_io_map(address_map &map);
- void io_map_mcu(address_map &map);
- void io_map_nomcu(address_map &map);
- void perfrman_map(address_map &map);
- void perfrman_sound_map(address_map &map);
- void slapfigh_map(address_map &map);
- void slapfigh_map_mcu(address_map &map);
- void slapfighb1_map(address_map &map);
- void slapfighb2_map(address_map &map);
- void tigerh_map(address_map &map);
- void tigerh_map_mcu(address_map &map);
- void tigerh_sound_map(address_map &map);
- void tigerhb1_map(address_map &map);
- void tigerhb2_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SLAPFGHT_H
diff --git a/src/mame/includes/slapshot.h b/src/mame/includes/slapshot.h
deleted file mode 100644
index 68deee608d3..00000000000
--- a/src/mame/includes/slapshot.h
+++ /dev/null
@@ -1,115 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves
-/*************************************************************************
-
- Slapshot / Operation Wolf 3
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SLAPSHOT_H
-#define MAME_INCLUDES_SLAPSHOT_H
-
-#pragma once
-
-#include "audio/taitosnd.h"
-#include "machine/taitoio.h"
-#include "video/tc0360pri.h"
-#include "video/tc0480scp.h"
-#include "emupal.h"
-
-class slapshot_state : public driver_device
-{
-public:
- slapshot_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_tc0140syt(*this, "tc0140syt"),
- m_tc0480scp(*this, "tc0480scp"),
- m_tc0360pri(*this, "tc0360pri"),
- m_tc0640fio(*this, "tc0640fio"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this,"spriteram"),
- m_spriteext(*this,"spriteext"),
- m_z80bank(*this,"z80bank"),
- m_io_system(*this,"SYSTEM"),
- m_io_service(*this,"SERVICE")
- { }
-
- void opwolf3(machine_config &config);
- void slapshot(machine_config &config);
-
- void driver_init() override;
-
-protected:
- enum
- {
- TIMER_SLAPSHOT_INTERRUPT6
- };
-
- virtual void machine_start() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- struct slapshot_tempsprite
- {
- u8 gfx;
- u32 code,color;
- bool flipx,flipy;
- int x,y;
- int zoomx,zoomy;
- u32 primask;
- };
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<tc0140syt_device> m_tc0140syt;
- required_device<tc0480scp_device> m_tc0480scp;
- required_device<tc0360pri_device> m_tc0360pri;
- required_device<tc0640fio_device> m_tc0640fio;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr<u16> m_spriteext;
- std::unique_ptr<u16[]> m_spriteram_buffered;
- std::unique_ptr<u16[]> m_spriteram_delayed;
-
- required_memory_bank m_z80bank;
- optional_ioport m_io_system;
- optional_ioport m_io_service;
-
- /* video-related */
- std::unique_ptr<slapshot_tempsprite[]> m_spritelist;
- bool m_sprites_disabled;
- s32 m_sprites_active_area;
- s32 m_sprites_master_scrollx;
- s32 m_sprites_master_scrolly;
- bool m_sprites_flipscreen;
- bool m_prepare_sprites;
-#ifdef MAME_DEBUG
- int m_dislayer[5] = { 0, 0, 0, 0, 0 };
-#endif
-
- emu_timer *m_int6_timer;
-
- // generic
- u16 service_input_r(offs_t offset);
- void sound_bankswitch_w(u8 data);
- void coin_control_w(u8 data);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_no_buffer);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u32 *primasks, int y_offset);
- void handle_sprite_buffering();
- void update_sprites_active_area();
-
- INTERRUPT_GEN_MEMBER(interrupt);
-
- void opwolf3_map(address_map &map);
- void slapshot_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SLAPSHOT_H
diff --git a/src/mame/includes/sms.h b/src/mame/includes/sms.h
deleted file mode 100644
index 9dfe6330d1d..00000000000
--- a/src/mame/includes/sms.h
+++ /dev/null
@@ -1,340 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol, Charles MacDonald,Mathis Rosenhauer,Brad Oliver,Michael Luong,Fabio Priuli,Enik Land
-/*****************************************************************************
- *
- * includes/sms.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_SMS_H
-#define MAME_INCLUDES_SMS_H
-
-#define LOG_REG
-#define LOG_PAGING
-#define LOG_COLOR
-
-#define NVRAM_SIZE (0x08000)
-#define CPU_ADDRESSABLE_SIZE (0x10000)
-
-#define MAX_CARTRIDGES 16
-
-#define CONTROL1_TAG "ctrl1"
-#define CONTROL2_TAG "ctrl2"
-
-#include "bus/gamegear/ggext.h"
-#include "bus/sega8/sega8_slot.h"
-#include "bus/sg1000_exp/sg1000exp.h"
-#include "bus/sms_ctrl/smsctrl.h"
-#include "bus/sms_exp/smsexp.h"
-#include "sound/ym2413.h"
-#include "video/315_5124.h"
-
-#include "screen.h"
-#include "machine/timer.h"
-
-
-class sms_state : public driver_device
-{
-public:
- sms_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_vdp(*this, "sms_vdp"),
- m_main_scr(*this, "screen"),
- m_ym(*this, "ym2413"),
- m_port_ctrl1(*this, CONTROL1_TAG),
- m_port_ctrl2(*this, CONTROL2_TAG),
- m_port_gg_ext(*this, "ext"),
- m_port_gg_dc(*this, "GG_PORT_DC"),
- m_port_pause(*this, "PAUSE"),
- m_port_reset(*this, "RESET"),
- m_port_rapid(*this, "RAPID"),
- m_port_start(*this, "START"),
- m_port_persist(*this, "PERSISTENCE"),
- m_led_pwr(*this, "led_pwr"),
- m_region_maincpu(*this, "maincpu"),
- m_mainram(nullptr),
- m_BIOS(nullptr),
- m_is_gamegear(false),
- m_is_smsj(false),
- m_is_mark_iii(false),
- m_ioctrl_region_is_japan(false),
- m_has_bios_0400(false),
- m_has_bios_2000(false),
- m_has_bios_full(false),
- m_has_jpn_sms_cart_slot(false),
- m_has_pwr_led(false),
- m_slot(*this, "slot"),
- m_cardslot(*this, "mycard"),
- m_smsexpslot(*this, "smsexp"),
- m_sgexpslot(*this, "sgexp")
- { }
-
- void sms_base(machine_config &config);
- void sms_ntsc_base(machine_config &config);
- void sms_pal_base(machine_config &config);
- void sms_paln_base(machine_config &config);
- void sms_br_base(machine_config &config);
- void sms3_br(machine_config &config);
- void sms3_paln(machine_config &config);
- void sms2_pal(machine_config &config);
- void sms2_kr(machine_config &config);
- void sms2_ntsc(machine_config &config);
-
- uint32_t screen_update_sms(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
-protected:
- template <typename X> static void screen_sms_pal_raw_params(screen_device &screen, X &&pixelclock);
- template <typename X> static void screen_sms_ntsc_raw_params(screen_device &screen, X &&pixelclock);
-
- uint8_t read_0000(offs_t offset);
- uint8_t read_4000(offs_t offset);
- uint8_t read_8000(offs_t offset);
- uint8_t read_ram(offs_t offset);
- void write_ram(offs_t offset, uint8_t data);
- void write_cart(offs_t offset, uint8_t data);
-
- uint8_t sms_mapper_r(offs_t offset);
- void sms_mapper_w(offs_t offset, uint8_t data);
- void sms_mem_control_w(uint8_t data);
- void sms_io_control_w(uint8_t data);
- uint8_t sms_count_r(offs_t offset);
- uint8_t sms_input_port_dc_r();
- uint8_t sms_input_port_dd_r();
- uint8_t sg1000m3_peripheral_r(offs_t offset);
- void sg1000m3_peripheral_w(offs_t offset, uint8_t data);
- uint8_t smsj_audio_control_r();
- void smsj_audio_control_w(uint8_t data);
- void smsj_ym2413_register_port_w(uint8_t data);
- void smsj_ym2413_data_port_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(rapid_n_csync_callback);
- DECLARE_WRITE_LINE_MEMBER(sms_ctrl1_th_input);
- DECLARE_WRITE_LINE_MEMBER(sms_ctrl2_th_input);
-
- void sg1000m3_io(address_map &map);
- void sms_io(address_map &map);
- void sms_mem(address_map &map);
- void smsj_io(address_map &map);
- void smskr_io(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint8_t read_bus(unsigned int bank, uint16_t base_addr, uint16_t offset);
- void setup_bios();
- void setup_media_slots();
- void setup_enabled_slots();
- void lphaser_hcount_latch();
- void sms_get_inputs();
- void smsj_set_audio_control(uint8_t data);
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<sega315_5124_device> m_vdp;
- required_device<screen_device> m_main_scr;
- optional_device<ym2413_device> m_ym;
- optional_device<sms_control_port_device> m_port_ctrl1;
- optional_device<sms_control_port_device> m_port_ctrl2;
- optional_device<gg_ext_port_device> m_port_gg_ext;
-
- optional_ioport m_port_gg_dc;
- optional_ioport m_port_pause;
- optional_ioport m_port_reset;
- optional_ioport m_port_rapid;
- optional_ioport m_port_start;
- optional_ioport m_port_persist;
-
- output_finder<> m_led_pwr;
-
- required_memory_region m_region_maincpu;
- std::unique_ptr<uint8_t[]> m_mainram;
- uint8_t *m_BIOS;
-
- // for gamegear LCD persistence hack
- bitmap_rgb32 m_prev_bitmap;
- bool m_prev_bitmap_copied;
-
- // model identifiers
- bool m_is_gamegear;
- bool m_is_smsj;
- bool m_is_mark_iii;
- bool m_ioctrl_region_is_japan;
- bool m_has_bios_0400;
- bool m_has_bios_2000;
- bool m_has_bios_full;
- bool m_has_jpn_sms_cart_slot;
- bool m_has_pwr_led;
-
- // [0] for 0x400-0x3fff, [1] for 0x4000-0x7fff, [2] for 0x8000-0xffff, [3] for 0x0000-0x0400
- uint8_t m_bios_page[4];
-
- uint8_t m_bios_page_count;
- uint8_t m_mapper[4];
- uint8_t m_io_ctrl_reg;
- uint8_t m_mem_ctrl_reg;
- uint8_t m_mem_device_enabled;
- uint8_t m_smsj_audio_control;
- uint8_t m_port_dc_reg;
- uint8_t m_port_dd_reg;
-
- uint8_t m_ctrl1_th_state;
- uint8_t m_ctrl2_th_state;
- uint8_t m_ctrl1_th_latch;
- uint8_t m_ctrl2_th_latch;
-
- // Data needed for Light Phaser
- int m_lphaser_x_offs; /* Needed to 'calibrate' lphaser; set at cart loading */
- emu_timer *m_lphaser_th_timer;
- TIMER_CALLBACK_MEMBER(lphaser_th_generate);
-
- // Data needed for Rapid button (smsj, sms1kr, sms1krfm)
- uint16_t m_csync_counter;
- uint8_t m_rapid_mode;
- uint8_t m_rapid_read_state;
- uint8_t m_rapid_last_dc;
- uint8_t m_rapid_last_dd;
-
- // slot devices
- sega8_cart_slot_device *m_cartslot;
- optional_device<sega8_cart_slot_device> m_slot;
- optional_device<sega8_card_slot_device> m_cardslot;
- optional_device<sms_expansion_slot_device> m_smsexpslot;
- optional_device<sg1000_expansion_slot_device> m_sgexpslot;
-};
-
-class sms1_state : public sms_state
-{
-public:
- sms1_state(const machine_config &mconfig, device_type type, const char *tag) :
- sms_state(mconfig, type, tag),
- m_left_lcd(*this, "left_lcd"),
- m_right_lcd(*this, "right_lcd"),
- m_port_scope(*this, "SEGASCOPE"),
- m_port_scope_binocular(*this, "SSCOPE_BINOCULAR")
- { }
-
- void sms1_paln(machine_config &config);
- void sms1_ntsc(machine_config &config);
- void sms1_pal(machine_config &config);
- void sms1_br(machine_config &config);
- void sms1_kr(machine_config &config);
- void smsj(machine_config &config);
- void sg1000m3(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void video_reset() override;
-
-private:
- uint8_t sscope_r(offs_t offset);
- void sscope_w(offs_t offset, uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(sscope_vblank);
- uint32_t screen_update_left(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_right(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void sms1_mem(address_map &map);
-
- // for 3D glass binocular hack
- required_device<screen_device> m_left_lcd;
- required_device<screen_device> m_right_lcd;
- required_ioport m_port_scope;
- required_ioport m_port_scope_binocular;
- bitmap_rgb32 m_prevleft_bitmap;
- bitmap_rgb32 m_prevright_bitmap;
-
- // Data needed for SegaScope (3D glasses)
- uint8_t m_sscope_state;
- uint8_t m_frame_sscope_state;
-};
-
-class smssdisp_state : public sms1_state
-{
-public:
- smssdisp_state(const machine_config &mconfig, device_type type, const char *tag) :
- sms1_state(mconfig, type, tag),
- m_control_cpu(*this, "control"),
- m_slots(*this, {"slot", "slot2", "slot3", "slot4", "slot5", "slot6", "slot7", "slot8", "slot9", "slot10", "slot11", "slot12", "slot13", "slot14", "slot15", "slot16"}),
- m_cards(*this, "slot%u", 17U),
- m_store_cart_selection_data(0)
- { }
-
- void sms_sdisp(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void device_post_load() override;
-
-private:
- uint8_t sms_store_cart_select_r();
- void sms_store_cart_select_w(uint8_t data);
- void store_select_cart(uint8_t data);
- void sms_store_control_w(uint8_t data);
-
- uint8_t store_cart_peek(offs_t offset);
-
- DECLARE_WRITE_LINE_MEMBER(sms_store_int_callback);
- void sms_store_mem(address_map &map);
-
- required_device<cpu_device> m_control_cpu;
- required_device_array<sega8_cart_slot_device, 16> m_slots;
- required_device_array<sega8_card_slot_device, 16> m_cards;
-
- uint8_t m_store_control;
- uint8_t m_store_cart_selection_data;
-};
-
-class gamegear_state : public sms_state
-{
-public:
- gamegear_state(const machine_config &mconfig, device_type type, const char *tag) :
- sms_state(mconfig, type, tag)
- { }
-
- void gamegear(machine_config &config);
- void gamegeaj(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void video_reset() override;
-
-private:
- template <typename X> static void screen_gg_raw_params(screen_device &screen, X &&pixelclock);
-
- uint8_t gg_input_port_00_r();
- uint8_t gg_sio_r(offs_t offset);
- void gg_sio_w(offs_t offset, uint8_t data);
- void gg_psg_stereo_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(gg_pause_callback);
- DECLARE_WRITE_LINE_MEMBER(gg_ext_th_input);
-
- uint32_t screen_update_gamegear(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void screen_gg_sms_mode_scaling(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void gg_io(address_map &map);
-
- // for gamegear SMS mode scaling
- bitmap_rgb32 m_gg_sms_mode_bitmap;
- // line_buffer will be used to hold 4 lines of line data as a kind of cache for
- // vertical scaling in the gamegear sms compatibility mode.
- std::unique_ptr<int[]> m_line_buffer;
-
- uint8_t m_gg_sio[5];
- int m_gg_paused;
-};
-
-
-/*----------- defined in machine/sms.c -----------*/
-
-#define IO_EXPANSION (0x80) /* Expansion slot enable (1= disabled, 0= enabled) */
-#define IO_CARTRIDGE (0x40) /* Cartridge slot enable (1= disabled, 0= enabled) */
-#define IO_CARD (0x20) /* Card slot disabled (1= disabled, 0= enabled) */
-#define IO_WORK_RAM (0x10) /* Work RAM disabled (1= disabled, 0= enabled) */
-#define IO_BIOS_ROM (0x08) /* BIOS ROM disabled (1= disabled, 0= enabled) */
-#define IO_CHIP (0x04) /* I/O chip disabled (1= disabled, 0= enabled) */
-
-#endif // MAME_INCLUDES_SMS_H
diff --git a/src/mame/includes/sms_bootleg.h b/src/mame/includes/sms_bootleg.h
deleted file mode 100644
index 71ccabf2c34..00000000000
--- a/src/mame/includes/sms_bootleg.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "sms.h"
-
-class smsbootleg_state : public sms_state
-{
-public:
- smsbootleg_state(const machine_config &mconfig, device_type type, const char *tag)
- : sms_state(mconfig, type, tag)
- {}
-
- void sms_supergame(machine_config &config);
-
- void init_sms_supergame();
-
-private:
- void port08_w(uint8_t data);
- void port18_w(uint8_t data);
-
- void sms_supergame_io(address_map &map);
- void sms_supergame_map(address_map &map);
-};
diff --git a/src/mame/includes/snes.h b/src/mame/includes/snes.h
deleted file mode 100644
index 13f73509bd7..00000000000
--- a/src/mame/includes/snes.h
+++ /dev/null
@@ -1,468 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese, R. Belmont, Anthony Kruize, Fabio Priuli, Ryan Holtz
-
-#ifndef MAME_INCLUDES_SNES_H
-#define MAME_INCLUDES_SNES_H
-
-#include "cpu/g65816/g65816.h"
-#include "machine/s_smp.h"
-#include "sound/s_dsp.h"
-#include "video/snes_ppu.h"
-#include "screen.h"
-
-/*
- SNES timing theory:
-
- the master clock drives the CPU and PPU
- 4 MC ticks = 1 PPU dot
- 6 MC ticks = 1 65816 cycle for 3.58 MHz (3.579545)
- 8 MC ticks = 1 65816 cycle for 2.68 MHz (2.684659)
- 12 MC ticks = 1 65816 cycle for 1.78 MHz (1.789772)
-
- Each scanline has 341 readable positions and 342 actual dots.
- This is because 2 dots are "long" dots that last 6 MC ticks, resulting in 1 extra dot per line.
-*/
-
-// Useful definitions
-#define SNES_DMA_BASE 0x4300 /* Base DMA register address */
-#define SNES_MODE_20 0x01 /* Lo-ROM cart */
-#define SNES_MODE_21 0x02 /* Hi-ROM cart */
-#define SNES_MODE_22 0x04 /* Extended Lo-ROM cart - SDD-1 */
-#define SNES_MODE_25 0x08 /* Extended Hi-ROM cart */
-#define SNES_MODE_BSX 0x10
-#define SNES_MODE_BSLO 0x20
-#define SNES_MODE_BSHI 0x40
-#define SNES_MODE_ST 0x80
-#define SNES_EXROM_START 0x1000000
-
-// some PPU registers we still use in machine/snes.c
-#define INIDISP 0x2100
-#define OAMADDL 0x2102
-#define OAMADDH 0x2103
-#define SETINI 0x2133
-#define MPYL 0x2134
-#define MPYM 0x2135
-#define MPYH 0x2136
-
-#define APU00 0x2140
-#define APU01 0x2141
-#define APU02 0x2142
-#define APU03 0x2143
-
-#define WMDATA 0x2180
-#define WMADDL 0x2181
-#define WMADDM 0x2182
-#define WMADDH 0x2183
-
-// Definitions for CPU Memory-Mapped registers
-#define OLDJOY1 0x4016
-#define OLDJOY2 0x4017
-#define NMITIMEN 0x4200
-#define WRIO 0x4201
-//#define WRMPYA 0x4202
-//#define WRMPYB 0x4203
-//#define WRDIVL 0x4204
-//#define WRDIVH 0x4205
-//#define WRDVDD 0x4206
-#define HTIMEL 0x4207
-#define HTIMEH 0x4208
-#define VTIMEL 0x4209
-#define VTIMEH 0x420A
-#define MDMAEN 0x420B
-#define HDMAEN 0x420C
-//#define MEMSEL 0x420D
-#define RDNMI 0x4210
-#define TIMEUP 0x4211
-#define HVBJOY 0x4212
-#define RDIO 0x4213
-//#define RDDIVL 0x4214
-//#define RDDIVH 0x4215
-//#define RDMPYL 0x4216
-//#define RDMPYH 0x4217
-#define JOY1L 0x4218
-#define JOY1H 0x4219
-#define JOY2L 0x421A
-#define JOY2H 0x421B
-#define JOY3L 0x421C
-#define JOY3H 0x421D
-#define JOY4L 0x421E
-#define JOY4H 0x421F
-/* DMA */
-#define DMAP0 0x4300
-#define BBAD0 0x4301
-#define A1T0L 0x4302
-#define A1T0H 0x4303
-#define A1B0 0x4304
-#define DAS0L 0x4305
-#define DAS0H 0x4306
-#define DSAB0 0x4307
-#define A2A0L 0x4308
-#define A2A0H 0x4309
-#define NTRL0 0x430A
-#define DMAP1 0x4310
-#define BBAD1 0x4311
-#define A1T1L 0x4312
-#define A1T1H 0x4313
-#define A1B1 0x4314
-#define DAS1L 0x4315
-#define DAS1H 0x4316
-#define DSAB1 0x4317
-#define A2A1L 0x4318
-#define A2A1H 0x4319
-#define NTRL1 0x431A
-#define DMAP2 0x4320
-#define BBAD2 0x4321
-#define A1T2L 0x4322
-#define A1T2H 0x4323
-#define A1B2 0x4324
-#define DAS2L 0x4325
-#define DAS2H 0x4326
-#define DSAB2 0x4327
-#define A2A2L 0x4328
-#define A2A2H 0x4329
-#define NTRL2 0x432A
-#define DMAP3 0x4330
-#define BBAD3 0x4331
-#define A1T3L 0x4332
-#define A1T3H 0x4333
-#define A1B3 0x4334
-#define DAS3L 0x4335
-#define DAS3H 0x4336
-#define DSAB3 0x4337
-#define A2A3L 0x4338
-#define A2A3H 0x4339
-#define NTRL3 0x433A
-#define DMAP4 0x4340
-#define BBAD4 0x4341
-#define A1T4L 0x4342
-#define A1T4H 0x4343
-#define A1B4 0x4344
-#define DAS4L 0x4345
-#define DAS4H 0x4346
-#define DSAB4 0x4347
-#define A2A4L 0x4348
-#define A2A4H 0x4349
-#define NTRL4 0x434A
-#define DMAP5 0x4350
-#define BBAD5 0x4351
-#define A1T5L 0x4352
-#define A1T5H 0x4353
-#define A1B5 0x4354
-#define DAS5L 0x4355
-#define DAS5H 0x4356
-#define DSAB5 0x4357
-#define A2A5L 0x4358
-#define A2A5H 0x4359
-#define NTRL5 0x435A
-#define DMAP6 0x4360
-#define BBAD6 0x4361
-#define A1T6L 0x4362
-#define A1T6H 0x4363
-#define A1B6 0x4364
-#define DAS6L 0x4365
-#define DAS6H 0x4366
-#define DSAB6 0x4367
-#define A2A6L 0x4368
-#define A2A6H 0x4369
-#define NTRL6 0x436A
-#define DMAP7 0x4370
-#define BBAD7 0x4371
-#define A1T7L 0x4372
-#define A1T7H 0x4373
-#define A1B7 0x4374
-#define DAS7L 0x4375
-#define DAS7H 0x4376
-#define DSAB7 0x4377
-#define A2A7L 0x4378
-#define A2A7H 0x4379
-#define NTRL7 0x437A
-/* Definitions for sound DSP */
-#define DSP_V0_VOLL 0x00
-#define DSP_V0_VOLR 0x01
-#define DSP_V0_PITCHL 0x02
-#define DSP_V0_PITCHH 0x03
-#define DSP_V0_SRCN 0x04
-#define DSP_V0_ADSR1 0x05 /* gdddaaaa = g:gain enable | d:decay | a:attack */
-#define DSP_V0_ADSR2 0x06 /* llllrrrr = l:sustain left | r:sustain right */
-#define DSP_V0_GAIN 0x07
-#define DSP_V0_ENVX 0x08
-#define DSP_V0_OUTX 0x09
-#define DSP_V1_VOLL 0x10
-#define DSP_V1_VOLR 0x11
-#define DSP_V1_PITCHL 0x12
-#define DSP_V1_PITCHH 0x13
-#define DSP_V1_SRCN 0x14
-#define DSP_V1_ADSR1 0x15
-#define DSP_V1_ADSR2 0x16
-#define DSP_V1_GAIN 0x17
-#define DSP_V1_ENVX 0x18
-#define DSP_V1_OUTX 0x19
-#define DSP_V2_VOLL 0x20
-#define DSP_V2_VOLR 0x21
-#define DSP_V2_PITCHL 0x22
-#define DSP_V2_PITCHH 0x23
-#define DSP_V2_SRCN 0x24
-#define DSP_V2_ADSR1 0x25
-#define DSP_V2_ADSR2 0x26
-#define DSP_V2_GAIN 0x27
-#define DSP_V2_ENVX 0x28
-#define DSP_V2_OUTX 0x29
-#define DSP_V3_VOLL 0x30
-#define DSP_V3_VOLR 0x31
-#define DSP_V3_PITCHL 0x32
-#define DSP_V3_PITCHH 0x33
-#define DSP_V3_SRCN 0x34
-#define DSP_V3_ADSR1 0x35
-#define DSP_V3_ADSR2 0x36
-#define DSP_V3_GAIN 0x37
-#define DSP_V3_ENVX 0x38
-#define DSP_V3_OUTX 0x39
-#define DSP_V4_VOLL 0x40
-#define DSP_V4_VOLR 0x41
-#define DSP_V4_PITCHL 0x42
-#define DSP_V4_PITCHH 0x43
-#define DSP_V4_SRCN 0x44
-#define DSP_V4_ADSR1 0x45
-#define DSP_V4_ADSR2 0x46
-#define DSP_V4_GAIN 0x47
-#define DSP_V4_ENVX 0x48
-#define DSP_V4_OUTX 0x49
-#define DSP_V5_VOLL 0x50
-#define DSP_V5_VOLR 0x51
-#define DSP_V5_PITCHL 0x52
-#define DSP_V5_PITCHH 0x53
-#define DSP_V5_SRCN 0x54
-#define DSP_V5_ADSR1 0x55
-#define DSP_V5_ADSR2 0x56
-#define DSP_V5_GAIN 0x57
-#define DSP_V5_ENVX 0x58
-#define DSP_V5_OUTX 0x59
-#define DSP_V6_VOLL 0x60
-#define DSP_V6_VOLR 0x61
-#define DSP_V6_PITCHL 0x62
-#define DSP_V6_PITCHH 0x63
-#define DSP_V6_SRCN 0x64
-#define DSP_V6_ADSR1 0x65
-#define DSP_V6_ADSR2 0x66
-#define DSP_V6_GAIN 0x67
-#define DSP_V6_ENVX 0x68
-#define DSP_V6_OUTX 0x69
-#define DSP_V7_VOLL 0x70
-#define DSP_V7_VOLR 0x71
-#define DSP_V7_PITCHL 0x72
-#define DSP_V7_PITCHH 0x73
-#define DSP_V7_SRCN 0x74
-#define DSP_V7_ADSR1 0x75
-#define DSP_V7_ADSR2 0x76
-#define DSP_V7_GAIN 0x77
-#define DSP_V7_ENVX 0x78
-#define DSP_V7_OUTX 0x79
-#define DSP_MVOLL 0x0C
-#define DSP_MVOLR 0x1C
-#define DSP_EVOLL 0x2C
-#define DSP_EVOLR 0x3C
-#define DSP_KON 0x4C /* 01234567 = Key on for voices 0-7 */
-#define DSP_KOF 0x5C /* 01234567 = Key off for voices 0-7 */
-#define DSP_FLG 0x6C /* rme--n-- = r:Soft reset | m:Mute | e:External memory through echo | n:Clock of noise generator */
-#define DSP_ENDX 0x7C
-#define DSP_EFB 0x0D /* sfffffff = s: sign bit | f: feedback */
-#define DSP_PMOD 0x2D
-#define DSP_NON 0x3D
-#define DSP_EON 0x4D
-#define DSP_DIR 0x5D
-#define DSP_ESA 0x6D
-#define DSP_EDL 0x7D /* ----dddd = d: echo delay */
-#define DSP_FIR_C0 0x0F
-#define DSP_FIR_C1 0x1F
-#define DSP_FIR_C2 0x2F
-#define DSP_FIR_C3 0x3F
-#define DSP_FIR_C4 0x4F
-#define DSP_FIR_C5 0x5F
-#define DSP_FIR_C6 0x6F
-#define DSP_FIR_C7 0x7F
-
-
-#define SNES_CPU_REG(a) m_cpu_regs[a - 0x4200] // regs 0x4200-0x421f
-
-struct snes_cart_info
-{
- uint8_t *m_rom;
- uint32_t m_rom_size;
- std::unique_ptr<uint8_t[]> m_nvram;
- uint32_t m_nvram_size;
- uint8_t mode; /* ROM memory mode */
- uint32_t sram_max; /* Maximum amount sram in cart (based on ROM mode) */
- int slot_in_use; /* this is needed by Sufami Turbo slots (to check if SRAM has to be saved) */
- uint8_t rom_bank_map[0x100];
-};
-
-class snes_state : public driver_device
-{
-public:
- snes_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_s_dsp(*this, "s_dsp"),
- m_ppu(*this, "ppu"),
- m_screen(*this, "screen"),
- m_wram(*this, "wram")
- { }
-
- void init_snes();
- void init_snes_hirom();
- void init_snes_mess();
- void init_snesst();
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- enum
- {
- TIMER_NMI_TICK,
- TIMER_HIRQ_TICK,
- TIMER_RESET_OAM_ADDRESS,
- TIMER_RESET_HDMA,
- TIMER_UPDATE_IO,
- TIMER_SCANLINE_TICK,
- TIMER_HBLANK_TICK,
- TIMER_SNES_LAST
- };
-
- /* misc */
- uint16_t m_hblank_offset;
- uint32_t m_wram_address;
- uint16_t m_htime;
- uint16_t m_vtime;
- bool m_is_pal;
-
- /* non-SNES HW-specific flags / variables */
- uint8_t m_is_nss;
- uint8_t m_input_disabled;
- uint8_t m_game_over_flag;
- uint8_t m_joy_flag;
- uint8_t m_is_sfcbox;
-
- /* timers */
- emu_timer *m_scanline_timer;
- 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_io_timer;
-
- /* DMA/HDMA-related */
- struct
- {
- uint8_t dmap;
- uint8_t dest_addr;
- uint16_t src_addr;
- uint16_t trans_size;
- uint8_t bank;
- uint8_t ibank;
- uint16_t hdma_addr;
- uint16_t hdma_iaddr;
- uint8_t hdma_line_counter;
- uint8_t unk;
-
- int do_transfer;
-
- int dma_disabled; // used to stop DMA if HDMA is enabled (currently not implemented, see machine/snes.c)
- } m_dma_channel[8];
- uint8_t m_hdmaen; /* channels enabled for HDMA */
- uint8_t m_dma_regs[0x80];
- uint8_t m_cpu_regs[0x20];
- uint8_t m_oldjoy1_latch;
-
- /* input-related */
- uint16_t m_data1[4]; // JOY1/JOY2 + 3rd & 4th only used by multitap (hacky support)
- uint16_t m_data2[4]; // JOY3/JOY4 + 3rd & 4th only used by multitap (hacky support)
- uint8_t m_read_idx[4]; // 3rd & 4th only used by multitap (hacky support)
-
- /* cart related */
- snes_cart_info m_cart; // used by NSS/SFCBox only! to be moved in a derived class!
- void rom_map_setup(uint32_t size);
-
- /* devices */
- required_device<_5a22_device> m_maincpu;
- required_device<s_smp_device> m_soundcpu;
- required_device<s_dsp_device> m_s_dsp;
- required_device<snes_ppu_device> m_ppu;
- required_device<screen_device> m_screen;
-
- required_shared_ptr<u8> m_wram;
-
- inline int dma_abus_valid(uint32_t address);
- inline uint8_t abus_read(address_space &space, uint32_t abus);
- inline void dma_transfer(address_space &space, uint8_t dma, uint32_t abus, uint16_t bbus);
- inline int is_last_active_channel(int dma);
- inline uint32_t get_hdma_addr(int dma);
- inline uint32_t get_hdma_iaddr(int dma);
- void dma(address_space &space, uint8_t channels);
- void hdma(address_space &space);
- void hdma_init(address_space &space);
- void hdma_update(address_space &space, int dma);
- void hirq_tick();
- virtual void write_joy_latch(uint8_t data);
- virtual void wrio_write(uint8_t data);
- inline uint8_t snes_rom_access(uint32_t offset);
-
- void snes_init_ram();
-
- // input related
- virtual void io_read();
- virtual uint8_t oldjoy1_read(int latched);
- virtual uint8_t oldjoy2_read(int latched);
-
- uint8_t snes_r_io(offs_t offset);
- void snes_w_io(address_space &space, offs_t offset, uint8_t data);
- uint8_t snes_io_dma_r(offs_t offset);
- void snes_io_dma_w(offs_t offset, uint8_t data);
- uint8_t snes_r_bank1(offs_t offset);
- uint8_t snes_r_bank2(offs_t offset);
- void snes_w_bank1(address_space &space, offs_t offset, uint8_t data);
- void snes_w_bank2(offs_t offset, uint8_t data);
- uint8_t snes_open_bus_r();
- TIMER_CALLBACK_MEMBER(snes_nmi_tick);
- TIMER_CALLBACK_MEMBER(snes_hirq_tick_callback);
- TIMER_CALLBACK_MEMBER(snes_reset_oam_address);
- TIMER_CALLBACK_MEMBER(snes_reset_hdma);
- TIMER_CALLBACK_MEMBER(snes_update_io);
- TIMER_CALLBACK_MEMBER(snes_scanline_tick);
- TIMER_CALLBACK_MEMBER(snes_hblank_tick);
- DECLARE_WRITE_LINE_MEMBER(snes_extern_irq_w);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(load_snes_cart);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(load_sufami_cart);
- void snes_init_timers();
-};
-
-/* Special chips, checked at init and used in memory handlers */
-enum
-{
- HAS_NONE = 0,
- HAS_DSP1,
- HAS_DSP2,
- HAS_DSP3,
- HAS_DSP4,
- HAS_SUPERFX,
- HAS_SA1,
- HAS_SDD1,
- HAS_OBC1,
- HAS_RTC,
- HAS_Z80GB,
- HAS_CX4,
- HAS_ST010,
- HAS_ST011,
- HAS_ST018,
- HAS_SPC7110,
- HAS_SPC7110_RTC,
- HAS_UNK
-};
-
-#endif // MAME_INCLUDES_SNES_H
diff --git a/src/mame/includes/snk.h b/src/mame/includes/snk.h
deleted file mode 100644
index 6f12cd7958e..00000000000
--- a/src/mame/includes/snk.h
+++ /dev/null
@@ -1,292 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi,Tim Lindquist,Carlos A. Lozano,Bryan McPhail,Jarek Parchanski,Nicola Salmoria,Tomasz Slanina,Phil Stroffolino,Acho A. Tang,Victor Trucco
-// thanks-to:Marco Cassili
-
-/*************************************************************************
-
- various SNK triple Z80 games
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SNK_H
-#define MAME_INCLUDES_SNK_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class snk_state : public driver_device
-{
-public:
- snk_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_tx_videoram(*this, "tx_videoram"),
- m_rot_io(*this, "P%uROT", 1U),
- m_trackball_x_io(*this, "TRACKBALLX%u", 1U),
- m_trackball_y_io(*this, "TRACKBALLY%u", 1U),
- m_joymode_io(*this, "JOYSTICK_MODE"),
- m_bonus_io(*this, "BONUS")
- { }
-
- void gwar(machine_config &config);
- void psychos(machine_config &config);
- void fitegolf(machine_config &config);
- void countryc(machine_config &config);
- void tdfever2(machine_config &config);
- void aso(machine_config &config);
- void gwara(machine_config &config);
- void tdfever(machine_config &config);
- void fitegolf2(machine_config &config);
- void jcross(machine_config &config);
- void choppera(machine_config &config);
- void tnk3(machine_config &config);
- void victroad(machine_config &config);
- void chopper1(machine_config &config);
- void vangrd2(machine_config &config);
- void bermudat(machine_config &config);
- void hal21(machine_config &config);
- void marvins(machine_config &config);
- void athena(machine_config &config);
- void ikari(machine_config &config);
- void sgladiat(machine_config &config);
- void madcrush(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(sound_busy_r);
- template <int Which> DECLARE_CUSTOM_INPUT_MEMBER(gwar_rotary);
- template <int Which> DECLARE_CUSTOM_INPUT_MEMBER(gwarb_rotary);
- DECLARE_CUSTOM_INPUT_MEMBER(countryc_trackball_x);
- DECLARE_CUSTOM_INPUT_MEMBER(countryc_trackball_y);
- template <int Mask> DECLARE_CUSTOM_INPUT_MEMBER(snk_bonus_r);
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_tx_videoram;
-
- optional_ioport_array<2> m_rot_io;
- optional_ioport_array<2> m_trackball_x_io;
- optional_ioport_array<2> m_trackball_y_io;
- optional_ioport m_joymode_io;
- optional_ioport m_bonus_io;
-
- int m_countryc_trackball;
- int m_last_value[2];
- int m_cp_count[2];
-
- // FIXME this should be initialised on machine reset
- int m_sound_status;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_fg_scrollx;
- int m_fg_scrolly;
- int m_bg_scrollx;
- int m_bg_scrolly;
- int m_sp16_scrollx;
- int m_sp16_scrolly;
- int m_sp32_scrollx;
- int m_sp32_scrolly;
- uint8_t m_sprite_split_point;
- int m_num_sprites;
- int m_yscroll_mask;
- uint32_t m_bg_tile_offset;
- uint32_t m_tx_tile_offset;
- int m_is_psychos;
-
- uint8_t m_drawmode_table[16];
- uint8_t m_empty_tile[16*16];
- int m_hf_posy;
- int m_hf_posx;
- int m_tc16_posy;
- int m_tc16_posx;
- int m_tc32_posy;
- int m_tc32_posx;
- uint8_t snk_cpuA_nmi_trigger_r();
- void snk_cpuA_nmi_ack_w(uint8_t data);
- uint8_t snk_cpuB_nmi_trigger_r();
- void snk_cpuB_nmi_ack_w(uint8_t data);
- uint8_t marvins_sound_nmi_ack_r();
- void sgladiat_soundlatch_w(uint8_t data);
- uint8_t sgladiat_soundlatch_r();
- uint8_t sgladiat_sound_nmi_ack_r();
- uint8_t sgladiat_sound_irq_ack_r();
- void snk_soundlatch_w(uint8_t data);
- uint8_t snk_sound_status_r();
- void snk_sound_status_w(uint8_t data);
- uint8_t tnk3_cmdirq_ack_r();
- uint8_t tnk3_ymirq_ack_r();
- uint8_t tnk3_busy_clear_r();
- void hardflags_scrollx_w(uint8_t data);
- void hardflags_scrolly_w(uint8_t data);
- void hardflags_scroll_msb_w(uint8_t data);
- uint8_t hardflags1_r();
- uint8_t hardflags2_r();
- uint8_t hardflags3_r();
- uint8_t hardflags4_r();
- uint8_t hardflags5_r();
- uint8_t hardflags6_r();
- uint8_t hardflags7_r();
- void turbocheck16_1_w(uint8_t data);
- void turbocheck16_2_w(uint8_t data);
- void turbocheck32_1_w(uint8_t data);
- void turbocheck32_2_w(uint8_t data);
- void turbocheck_msb_w(uint8_t data);
- uint8_t turbocheck16_1_r();
- uint8_t turbocheck16_2_r();
- uint8_t turbocheck16_3_r();
- uint8_t turbocheck16_4_r();
- uint8_t turbocheck16_5_r();
- uint8_t turbocheck16_6_r();
- uint8_t turbocheck16_7_r();
- uint8_t turbocheck16_8_r();
- uint8_t turbocheck32_1_r();
- uint8_t turbocheck32_2_r();
- uint8_t turbocheck32_3_r();
- uint8_t turbocheck32_4_r();
- void athena_coin_counter_w(uint8_t data);
- void ikari_coin_counter_w(uint8_t data);
- void tdfever_coin_counter_w(uint8_t data);
- void countryc_trackball_w(uint8_t data);
- void snk_tx_videoram_w(offs_t offset, uint8_t data);
- void marvins_fg_videoram_w(offs_t offset, uint8_t data);
- void marvins_bg_videoram_w(offs_t offset, uint8_t data);
- void snk_bg_videoram_w(offs_t offset, uint8_t data);
- void snk_fg_scrollx_w(uint8_t data);
- void snk_fg_scrolly_w(uint8_t data);
- void snk_bg_scrollx_w(uint8_t data);
- void snk_bg_scrolly_w(uint8_t data);
- void snk_sp16_scrollx_w(uint8_t data);
- void snk_sp16_scrolly_w(uint8_t data);
- void snk_sp32_scrollx_w(uint8_t data);
- void snk_sp32_scrolly_w(uint8_t data);
- void snk_sprite_split_point_w(uint8_t data);
- void marvins_palette_bank_w(uint8_t data);
- void marvins_flipscreen_w(uint8_t data);
- void sgladiat_flipscreen_w(uint8_t data);
- void hal21_flipscreen_w(uint8_t data);
- void marvins_scroll_msb_w(uint8_t data);
- void jcross_scroll_msb_w(uint8_t data);
- void sgladiat_scroll_msb_w(uint8_t data);
- void aso_videoattrs_w(uint8_t data);
- void tnk3_videoattrs_w(uint8_t data);
- void aso_bg_bank_w(uint8_t data);
- void ikari_bg_scroll_msb_w(uint8_t data);
- void ikari_sp_scroll_msb_w(uint8_t data);
- void ikari_unknown_video_w(uint8_t data);
- void gwar_tx_bank_w(uint8_t data);
- void gwar_videoattrs_w(uint8_t data);
- void gwara_videoattrs_w(uint8_t data);
- void gwara_sp_scroll_msb_w(uint8_t data);
- void tdfever_sp_scroll_msb_w(uint8_t data);
- void tdfever_spriteram_w(offs_t offset, uint8_t data);
-
- TILEMAP_MAPPER_MEMBER(marvins_tx_scan_cols);
- TILE_GET_INFO_MEMBER(marvins_get_tx_tile_info);
- TILE_GET_INFO_MEMBER(ikari_get_tx_tile_info);
- TILE_GET_INFO_MEMBER(gwar_get_tx_tile_info);
- TILE_GET_INFO_MEMBER(marvins_get_fg_tile_info);
- TILE_GET_INFO_MEMBER(marvins_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(aso_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(tnk3_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(ikari_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(gwar_get_bg_tile_info);
- DECLARE_VIDEO_START(marvins);
- void tnk3_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(jcross);
- DECLARE_VIDEO_START(tnk3);
- DECLARE_VIDEO_START(ikari);
- DECLARE_VIDEO_START(gwar);
- DECLARE_VIDEO_START(tdfever);
- DECLARE_VIDEO_START(sgladiat);
- DECLARE_VIDEO_START(hal21);
- DECLARE_VIDEO_START(aso);
- DECLARE_VIDEO_START(psychos);
- DECLARE_VIDEO_START(snk_3bpp_shadow);
- DECLARE_VIDEO_START(snk_4bpp_shadow);
- uint32_t screen_update_marvins(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tnk3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ikari(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_gwar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tdfever(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_fitegolf2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(sgladiat_sndirq_update_callback);
- TIMER_CALLBACK_MEMBER(sndirq_update_callback);
- DECLARE_WRITE_LINE_MEMBER(ymirq_callback_2);
- void marvins_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, const int scrollx, const int scrolly, const int from, const int to);
- void tnk3_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, const int xscroll, const int yscroll);
- void ikari_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, const int start, const int xscroll, const int yscroll, const uint8_t *source, const int gfxnum );
- void tdfever_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, const int xscroll, const int yscroll, const uint8_t *source, const int gfxnum, const int hw_xflip, const int from, const int to);
- int hardflags_check(int num);
- int hardflags_check8(int num);
- int turbofront_check(int small, int num);
- int turbofront_check8(int small, int num);
- DECLARE_WRITE_LINE_MEMBER(ymirq_callback_1);
-
- void Y8950_sound_map(address_map &map);
- void YM3526_Y8950_sound_map(address_map &map);
- void YM3526_YM3526_sound_map(address_map &map);
- void YM3812_Y8950_sound_map(address_map &map);
- void YM3812_sound_map(address_map &map);
- void aso_YM3526_sound_map(address_map &map);
- void aso_cpuA_map(address_map &map);
- void aso_cpuB_map(address_map &map);
- void bermudat_cpuA_map(address_map &map);
- void bermudat_cpuB_map(address_map &map);
- void countryc_cpuA_map(address_map &map);
- void gwar_cpuA_map(address_map &map);
- void gwar_cpuB_map(address_map &map);
- void gwara_cpuA_map(address_map &map);
- void gwara_cpuB_map(address_map &map);
- void hal21_cpuA_map(address_map &map);
- void hal21_cpuB_map(address_map &map);
- void hal21_sound_map(address_map &map);
- void hal21_sound_portmap(address_map &map);
- void ikari_cpuA_map(address_map &map);
- void ikari_cpuB_map(address_map &map);
- void jcross_cpuA_map(address_map &map);
- void jcross_cpuB_map(address_map &map);
- void jcross_sound_map(address_map &map);
- void jcross_sound_portmap(address_map &map);
- void madcrash_cpuA_map(address_map &map);
- void madcrash_cpuB_map(address_map &map);
- void madcrush_cpuA_map(address_map &map);
- void madcrush_cpuB_map(address_map &map);
- void marvins_cpuA_map(address_map &map);
- void marvins_cpuB_map(address_map &map);
- void marvins_sound_map(address_map &map);
- void marvins_sound_portmap(address_map &map);
- void sgladiat_cpuA_map(address_map &map);
- void sgladiat_cpuB_map(address_map &map);
- void tdfever_cpuA_map(address_map &map);
- void tdfever_cpuB_map(address_map &map);
- void tnk3_YM3526_sound_map(address_map &map);
- void tnk3_cpuA_map(address_map &map);
- void tnk3_cpuB_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SNK_H
diff --git a/src/mame/includes/snk6502.h b/src/mame/includes/snk6502.h
deleted file mode 100644
index 612108cbff1..00000000000
--- a/src/mame/includes/snk6502.h
+++ /dev/null
@@ -1,142 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Dan Boris
-/*************************************************************************
-
- rokola hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SNK6502_H
-#define MAME_INCLUDES_SNK6502_H
-
-#pragma once
-
-#include "machine/bankdev.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class fantasy_sound_device;
-
-class snk6502_state : public driver_device
-{
-public:
- snk6502_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_videoram2(*this, "videoram2"),
- m_colorram(*this, "colorram"),
- m_charram(*this, "charram")
- { }
-
- void satansat(machine_config &config);
- void sasuke(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(sasuke_count_r);
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
- DECLARE_VIDEO_START(pballoon);
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_charram;
-
- uint8_t m_sasuke_counter;
- int m_charbank;
- int m_backcolor;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- rgb_t m_palette_val[64];
- uint8_t m_irq_mask;
-
- // common
- void videoram_w(offs_t offset, uint8_t data);
- void videoram2_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void charram_w(offs_t offset, uint8_t data);
-
- void scrollx_w(uint8_t data);
- void scrolly_w(uint8_t data);
- void flipscreen_w(uint8_t data);
- void satansat_b002_w(uint8_t data);
- void satansat_backcolor_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(satansat_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(satansat_get_fg_tile_info);
-
- virtual void machine_start() override;
- DECLARE_MACHINE_RESET(sasuke);
- DECLARE_VIDEO_START(satansat);
- void satansat_palette(palette_device &palette);
- DECLARE_VIDEO_START(snk6502);
- void snk6502_palette(palette_device &palette);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(satansat_interrupt);
- INTERRUPT_GEN_MEMBER(snk6502_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(sasuke_update_counter);
-
- void sasuke_start_counter();
- void postload();
-
- void sasuke_map(address_map &map);
- void satansat_map(address_map &map);
-};
-
-class vanguard_state : public snk6502_state
-{
-public:
- vanguard_state(const machine_config &mconfig, device_type type, const char *tag) :
- snk6502_state(mconfig, type, tag),
- m_highmem(*this, "highmem")
- {
- }
-
- void vanguard(machine_config &config);
-
-protected:
- uint8_t highmem_r(offs_t offset);
- void highmem_w(offs_t offset, uint8_t data);
-
- required_device<address_map_bank_device> m_highmem;
-
-private:
- void vanguard_map(address_map &map);
- void vanguard_upper_map(address_map &map);
-};
-
-class fantasy_state : public vanguard_state
-{
-public:
- fantasy_state(const machine_config &mconfig, device_type type, const char *tag) :
- vanguard_state(mconfig, type, tag),
- m_sound(*this, "snk6502")
- {
- }
-
- void fantasy(machine_config &config);
- void nibbler(machine_config &config);
- void pballoon(machine_config &config);
-
-private:
- void fantasy_flipscreen_w(offs_t offset, uint8_t data);
-
- void fantasy_map(address_map &map);
- void pballoon_map(address_map &map);
- void pballoon_upper_map(address_map &map);
-
- required_device<fantasy_sound_device> m_sound;
-};
-
-#endif // MAME_INCLUDES_SNK6502_H
diff --git a/src/mame/includes/snk68.h b/src/mame/includes/snk68.h
deleted file mode 100644
index f6c8df6a682..00000000000
--- a/src/mame/includes/snk68.h
+++ /dev/null
@@ -1,118 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, Acho A. Tang, Nicola Salmoria
-
-#include "machine/gen_latch.h"
-#include "sound/upd7759.h"
-#include "video/snk68_spr.h"
-#include "video/alpha68k_palette.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class snk68_state : public driver_device
-{
-public:
- snk68_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_upd7759(*this, "upd"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_sprites(*this, "sprites"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_fg_videoram(*this, "fg_videoram"),
- m_spriteram(*this, "spriteram"),
- m_p1_io(*this, "P1"),
- m_p2_io(*this, "P2"),
- m_system_io(*this, "SYSTEM")
- {
- }
-
- void streetsm(machine_config &config);
- void pow(machine_config &config);
- void powb(machine_config &config);
-
- void init_powb();
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<upd7759_device> m_upd7759;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<snk68_spr_device> m_sprites;
- required_device<alpha68k_palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_fg_videoram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- optional_ioport m_p1_io;
- optional_ioport m_p2_io;
- optional_ioport m_system_io;
-
- bool m_sprite_flip_axis;
- tilemap_t *m_fg_tilemap;
-
- // common
- void sound_w(uint8_t data);
- void D7759_write_port_0_w(uint8_t data);
-
- virtual void video_start() override;
- void common_video_start();
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void tile_callback_notpow(int &tile, int& fx, int& fy, int& region);
-
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-
-private:
- uint32_t m_fg_tile_offset;
-
- // pow and streetsm
- uint16_t fg_videoram_r(offs_t offset);
- void fg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void flipscreen_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- void tile_callback_pow(int &tile, int& fx, int& fy, int& region);
-
- void pow_map(address_map &map);
- void powb_sound_io_map(address_map &map);
-};
-
-class searchar_state : public snk68_state
-{
-public:
- searchar_state(const machine_config &mconfig, device_type type, const char *tag) :
- snk68_state(mconfig, type, tag),
- m_rotary_io(*this, "ROT%u", 1U)
- {
- }
-
- void searchar(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- optional_ioport_array<2> m_rotary_io;
-
- uint8_t m_invert_controls;
-
- // searchar and ikari3
- void fg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void flipscreen_w(uint8_t data);
- uint16_t rotary_1_r();
- uint16_t rotary_2_r();
- uint16_t rotary_lsb_r();
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- void searchar_map(address_map &map);
-};
diff --git a/src/mame/includes/snookr10.h b/src/mame/includes/snookr10.h
deleted file mode 100644
index d35809b73c7..00000000000
--- a/src/mame/includes/snookr10.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Roberto Fresca
-#ifndef MAME_INCLUDES_SNOOKR10_H
-#define MAME_INCLUDES_SNOOKR10_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class snookr10_state : public driver_device
-{
-public:
- snookr10_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void apple10(machine_config &config);
- void snookr10(machine_config &config);
- void crystalc(machine_config &config);
- void tenballs(machine_config &config);
-
-private:
- uint8_t dsw_port_1_r();
- uint8_t port2000_8_r();
- void output_port_0_w(uint8_t data);
- void output_port_1_w(uint8_t data);
- void snookr10_videoram_w(offs_t offset, uint8_t data);
- void snookr10_colorram_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(apple10_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(crystalc_get_bg_tile_info);
- void snookr10_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(apple10);
- DECLARE_VIDEO_START(crystalc);
- void apple10_palette(palette_device &palette) const;
- void crystalc_palette(palette_device &palette) const;
- uint32_t screen_update_snookr10(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void crystalc_map(address_map &map);
- void snookr10_map(address_map &map);
- void tenballs_map(address_map &map);
-
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
-
- int m_outportl;
- int m_outporth;
- int m_bit0;
- int m_bit1;
- int m_bit2;
- int m_bit3;
- int m_bit4;
- int m_bit5;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- tilemap_t *m_bg_tilemap;
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- output_finder<7> m_lamps;
-};
-
-#endif // MAME_INCLUDES_SNOOKR10_H
diff --git a/src/mame/includes/snowbros.h b/src/mame/includes/snowbros.h
deleted file mode 100644
index 04b247deca7..00000000000
--- a/src/mame/includes/snowbros.h
+++ /dev/null
@@ -1,124 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Mike Coates
-#ifndef MAME_INCLUDES_SNOWBROS_H
-#define MAME_INCLUDES_SNOWBROS_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/okim6295.h"
-#include "video/kan_pand.h" // for the original pandora
-#include "emupal.h"
-#include "screen.h"
-
-class snowbros_state : public driver_device
-{
-public:
- snowbros_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch"),
- m_pandora(*this, "pandora"),
- m_hyperpac_ram(*this, "hyperpac_ram"),
- m_bootleg_spriteram16(*this, "spriteram16b"),
- m_semicom_prot_base(0)
- { }
-
- void _4in1(machine_config &config);
- void semiprot(machine_config &config);
- void semicom_mcu(machine_config &config);
- void yutnori(machine_config &config);
- void snowbros(machine_config &config);
- void semicom(machine_config &config);
- void twinadv(machine_config &config);
- void wintbob(machine_config &config);
- void honeydol(machine_config &config);
- void snowbro3(machine_config &config);
- void finalttr(machine_config &config);
-
- void init_pzlbreak();
- void init_snowbro3();
- void init_cookbib3();
- void init_4in1boot();
- void init_3in1semi();
- void init_cookbib2();
- void init_toto();
- void init_hyperpac();
- void init_yutnori();
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_soundcpu;
- optional_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- optional_device<generic_latch_8_device> m_soundlatch; // not snowbro3
-
- optional_device<kaneko_pandora_device> m_pandora;
- optional_shared_ptr<uint16_t> m_hyperpac_ram;
- optional_shared_ptr<uint16_t> m_bootleg_spriteram16;
-
- int m_sb3_music_is_playing;
- int m_sb3_music;
- uint8_t m_semicom_prot_offset;
- uint16_t m_semicom_prot_base;
- uint16_t m_yutnori_prot_val;
-
- void snowbros_flipscreen_w(uint8_t data);
- void bootleg_flipscreen_w(uint8_t data);
- void snowbros_irq4_ack_w(uint16_t data);
- void snowbros_irq3_ack_w(uint16_t data);
- void snowbros_irq2_ack_w(uint16_t data);
- void prot_p0_w(uint8_t data);
- void prot_p1_w(uint8_t data);
- void prot_p2_w(uint8_t data);
- uint16_t sb3_sound_r();
- uint16_t _4in1_02_read();
- uint16_t _3in1_read();
- uint16_t cookbib3_read();
- void twinadv_oki_bank_w(uint8_t data);
- void sb3_sound_w(uint16_t data);
- uint16_t toto_read(offs_t offset, uint16_t mem_mask = ~0);
- void yutnori_prot_w(uint16_t data);
- uint16_t yutnori_prot_r();
-
- DECLARE_MACHINE_RESET(semiprot);
- DECLARE_MACHINE_RESET(finalttr);
-
- uint32_t screen_update_snowbros(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_honeydol(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_twinadv(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_snowbro3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_wintbob(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_snowbros);
-
- TIMER_DEVICE_CALLBACK_MEMBER(snowbros_irq);
- TIMER_DEVICE_CALLBACK_MEMBER(snowbros3_irq);
-
- void sb3_play_music(int data);
- void sb3_play_sound(int data);
-
- void finalttr_map(address_map &map);
- void honeydol_map(address_map &map);
- void honeydol_sound_io_map(address_map &map);
- void honeydol_sound_map(address_map &map);
- void hyperpac_map(address_map &map);
- void hyperpac_sound_map(address_map &map);
- void snowbros3_map(address_map &map);
- void snowbros_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
- void twinadv_map(address_map &map);
- void twinadv_sound_io_map(address_map &map);
- void wintbob_map(address_map &map);
- void yutnori_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SNOWBROS_H
diff --git a/src/mame/includes/softbox.h b/src/mame/includes/softbox.h
deleted file mode 100644
index 26e39f10d9f..00000000000
--- a/src/mame/includes/softbox.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder, Mike Naberezny
-#ifndef MAME_INCLUDES_SOFTBOX_H
-#define MAME_INCLUDES_SOFTBOX_H
-
-#pragma once
-
-#include "bus/ieee488/ieee488.h"
-#include "bus/imi7000/imi7000.h"
-#include "cpu/z80/z80.h"
-#include "imagedev/harddriv.h"
-#include "machine/corvushd.h"
-#include "machine/com8116.h"
-#include "machine/i8251.h"
-#include "machine/i8255.h"
-
-#define Z80_TAG "z80"
-#define I8251_TAG "ic15"
-#define I8255_0_TAG "ic17"
-#define I8255_1_TAG "ic16"
-#define COM8116_TAG "ic14"
-#define RS232_TAG "rs232"
-#define CORVUS_HDC_TAG "corvus"
-
-class softbox_state : public driver_device
-{
-public:
- softbox_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, Z80_TAG)
- , m_ieee(*this, IEEE488_TAG)
- , m_hdc(*this, CORVUS_HDC_TAG)
- , m_leds(*this, "led%u", 0U)
- { }
-
- void softbox(machine_config &config);
-
-private:
- // device_ieee488_interface overrides
- virtual void ieee488_ifc(int state);
-
- uint8_t ppi0_pa_r();
- void ppi0_pb_w(uint8_t data);
-
- uint8_t ppi1_pa_r();
- void ppi1_pb_w(uint8_t data);
- uint8_t ppi1_pc_r();
- void ppi1_pc_w(uint8_t data);
-
- enum
- {
- LED_A = 0,
- LED_B,
- LED_READY
- };
-
- void softbox_io(address_map &map);
- void softbox_mem(address_map &map);
- int m_ifc; // Tracks previous state of IEEE-488 IFC line
-
- virtual void machine_start() override;
- virtual void device_reset_after_children() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<ieee488_device> m_ieee;
- required_device<corvus_hdc_device> m_hdc;
- output_finder<3> m_leds;
-};
-
-#endif
diff --git a/src/mame/includes/solomon.h b/src/mame/includes/solomon.h
deleted file mode 100644
index 8edd82f184d..00000000000
--- a/src/mame/includes/solomon.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni
-#ifndef MAME_INCLUDES_SOLOMON_H
-#define MAME_INCLUDES_SOLOMON_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class solomon_state : public driver_device
-{
-public:
- solomon_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_videoram2(*this, "videoram2"),
- m_colorram2(*this, "colorram2"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void solomon(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram2;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- uint8_t m_nmi_mask;
- void solomon_sh_command_w(uint8_t data);
- uint8_t solomon_0xe603_r();
- void nmi_mask_w(uint8_t data);
- void solomon_videoram_w(offs_t offset, uint8_t data);
- void solomon_colorram_w(offs_t offset, uint8_t data);
- void solomon_videoram2_w(offs_t offset, uint8_t data);
- void solomon_colorram2_w(offs_t offset, uint8_t data);
- void solomon_flipscreen_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- uint32_t screen_update_solomon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vblank_irq);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SOLOMON_H
diff --git a/src/mame/includes/sonson.h b/src/mame/includes/sonson.h
deleted file mode 100644
index 82c9b8af606..00000000000
--- a/src/mame/includes/sonson.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni
-/*************************************************************************
-
- Son Son
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SONSON_H
-#define MAME_INCLUDES_SONSON_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class sonson_state : public driver_device
-{
-public:
- sonson_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram"),
- m_audiocpu(*this, "audiocpu"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void sonson(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* devices */
- required_device<cpu_device> m_audiocpu;
- DECLARE_WRITE_LINE_MEMBER(sh_irqtrigger_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
- void sonson_videoram_w(offs_t offset, uint8_t data);
- void sonson_colorram_w(offs_t offset, uint8_t data);
- void sonson_scrollx_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void video_start() override;
- void sonson_palette(palette_device &palette) const;
- uint32_t screen_update_sonson(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SONSON_H
diff --git a/src/mame/includes/sorcerer.h b/src/mame/includes/sorcerer.h
deleted file mode 100644
index c23f65589d7..00000000000
--- a/src/mame/includes/sorcerer.h
+++ /dev/null
@@ -1,193 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker, Robbbert
-/*****************************************************************************
- *
- * includes/sorcerer.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_SORCERER_H
-#define MAME_INCLUDES_SORCERER_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/ay31015.h"
-#include "machine/clock.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/rs232/rs232.h"
-#include "machine/ram.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "imagedev/floppy.h"
-#include "formats/sorc_dsk.h"
-#include "formats/sorc_cas.h"
-#include "machine/micropolis.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80dma.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-
-
-class sorcerer_state : public driver_device
-{
- static constexpr XTAL ES_VIDEO_CLOCK = 12.638_MHz_XTAL;
- static constexpr XTAL ES_CPU_CLOCK = ES_VIDEO_CLOCK / 6;
- static constexpr XTAL ES_UART_CLOCK = ES_CPU_CLOCK / 440;
-
- struct cass_data_t {
- struct {
- int length; // time cassette level is at input.level
- int level; // cassette level
- int bit; // bit being read
- } input;
- struct {
- int length; // time cassette level is at output.level
- int level; // cassette level
- int bit; // bit to output
- } output;
- };
-
-public:
- sorcerer_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_rom(*this, "maincpu")
- , m_pcg(*this, "pcg")
- , m_cassette1(*this, "cassette1")
- , m_cassette2(*this, "cassette2")
- , m_uart(*this, "uart")
- , m_uart_clock(*this, "uart_clock")
- , m_rs232(*this, "rs232")
- , m_centronics(*this, "centronics")
- , m_cart(*this, "cartslot")
- , m_ram(*this, RAM_TAG)
- , m_dma(*this, "dma")
- , m_fdc3(*this, "fdc3")
- , m_fdc4(*this, "fdc4")
- , m_floppy20(*this, "fdc2:0")
- , m_floppy21(*this, "fdc2:1")
- , m_floppy30(*this, "fdc3:0")
- , m_floppy31(*this, "fdc3:1")
- , m_floppy32(*this, "fdc3:2")
- , m_floppy33(*this, "fdc3:3")
- , m_floppy40(*this, "fdc4:0")
- , m_floppy41(*this, "fdc4:1")
- , m_floppy42(*this, "fdc4:2")
- , m_floppy43(*this, "fdc4:3")
- , m_iop_config(*this, "CONFIG")
- , m_iop_vs(*this, "VS")
- , m_iop_x(*this, "X.%u", 0)
- { }
-
- void sorcerer(machine_config &config);
- void sorcerera(machine_config &config);
- void sorcererb(machine_config &config);
-
-protected:
- enum
- {
- TIMER_SERIAL,
- TIMER_CASSETTE,
- };
-
- u8 portfd_r();
- u8 portfe_r();
- void portfd_w(u8 data);
- void portfe_w(u8 data);
- void portff_w(u8 data);
- TIMER_CALLBACK_MEMBER(cassette_tc);
- TIMER_CALLBACK_MEMBER(serial_tc);
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
- void machine_start_common(offs_t endmem);
- void machine_reset_common();
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void sorcerer_mem(address_map &map);
- void sorcererb_mem(address_map &map);
- void sorcerer_io(address_map &map);
- void sorcerera_io(address_map &map);
- void sorcererb_io(address_map &map);
-
- u8 m_portfe;
- u8 m_keyboard_line;
- emu_timer *m_serial_timer;
- emu_timer *m_cassette_timer;
- cass_data_t m_cass_data;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- required_device<z80_device> m_maincpu;
- required_region_ptr<u8> m_rom;
- required_shared_ptr<u8> m_pcg;
- required_device<cassette_image_device> m_cassette1;
- required_device<cassette_image_device> m_cassette2;
- required_device<ay31015_device> m_uart;
- required_device<clock_device> m_uart_clock;
- required_device<rs232_port_device> m_rs232;
- required_device<centronics_device> m_centronics;
- optional_device<generic_slot_device> m_cart;
- required_device<ram_device> m_ram;
- optional_device<z80dma_device> m_dma;
- optional_device<fd1793_device> m_fdc3;
- optional_device<wd2793_device> m_fdc4;
- optional_device<floppy_connector> m_floppy20;
- optional_device<floppy_connector> m_floppy21;
- optional_device<floppy_connector> m_floppy30;
- optional_device<floppy_connector> m_floppy31;
- optional_device<floppy_connector> m_floppy32;
- optional_device<floppy_connector> m_floppy33;
- optional_device<floppy_connector> m_floppy40;
- optional_device<floppy_connector> m_floppy41;
- optional_device<floppy_connector> m_floppy42;
- optional_device<floppy_connector> m_floppy43;
- required_ioport m_iop_config;
- required_ioport m_iop_vs;
- required_ioport_array<16> m_iop_x;
- memory_passthrough_handler *m_rom_shadow_tap;
-
-private:
- u8 m_port48;
- u8 m_port34;
- u8 port34_r();
- u8 port48_r();
- void port34_w(u8 data);
- void port48_w(u8 data);
- void intrq4_w(bool state);
- bool m_halt;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void busreq_w(bool state);
- u8 memory_read_byte(offs_t offset);
- void memory_write_byte(offs_t offset, u8 data);
- u8 io_read_byte(offs_t offset);
- void io_write_byte(offs_t offset, u8 data);
-};
-
-class sorcererd_state : public sorcerer_state
-{
-public:
- sorcererd_state(const machine_config &mconfig, device_type type, const char *tag)
- : sorcerer_state(mconfig, type, tag)
- , m_fdc(*this, "fdc")
- , m_fdc2(*this, "fdc2")
- { }
-
- void sorcererd(machine_config &config);
-
-private:
- void sorcererd_mem(address_map &map);
- void sorcererd_io(address_map &map);
- void port2c_w(u8 data);
- void intrq2_w(bool state);
- void drq2_w(bool state);
- u8 m_port2c;
- bool m_wait;
- bool m_drq_off;
- bool m_intrq_off;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- optional_device<micropolis_device> m_fdc;
- optional_device<fd1793_device> m_fdc2;
-};
-
-
-#endif // MAME_INCLUDES_SORCERER_H
diff --git a/src/mame/includes/spacefb.h b/src/mame/includes/spacefb.h
deleted file mode 100644
index 9c21e114baf..00000000000
--- a/src/mame/includes/spacefb.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Chris Hardy
-/***************************************************************************
-
- Space Firebird hardware
-
-****************************************************************************/
-
-#ifndef MAME_INCLUDES_SPACEFB
-#define MAME_INCLUDES_SPACEFB
-
-#pragma once
-
-#include "cpu/mcs48/mcs48.h"
-#include "sound/samples.h"
-#include "screen.h"
-/*
- * SPACEFB_PIXEL_CLOCK clocks the star generator circuit. The rest of
- * the graphics use a clock half of SPACEFB_PIXEL_CLOCK, thus creating
- * double width pixels.
- */
-
-#define SPACEFB_MASTER_CLOCK (20160000)
-#define SPACEFB_MAIN_CPU_CLOCK (6000000 / 2)
-#define SPACEFB_AUDIO_CPU_CLOCK (6000000) /* this goes to X2, pixel clock goes to X1 */
-#define SPACEFB_PIXEL_CLOCK (SPACEFB_MASTER_CLOCK / 2)
-#define SPACEFB_HTOTAL (0x280)
-#define SPACEFB_HBEND (0x000)
-#define SPACEFB_HBSTART (0x200)
-#define SPACEFB_VTOTAL (0x100)
-#define SPACEFB_VBEND (0x010)
-#define SPACEFB_VBSTART (0x0f0)
-#define SPACEFB_INT_TRIGGER_COUNT_1 (0x080)
-#define SPACEFB_INT_TRIGGER_COUNT_2 (0x0f0)
-
-
-class spacefb_state : public driver_device
-{
-public:
- spacefb_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_samples(*this, "samples"),
- m_screen(*this, "screen"),
- m_videoram(*this, "videoram") { }
-
- void spacefb(machine_config &config);
- void spacefb_audio(machine_config &config);
-
-private:
- enum
- {
- TIMER_INTERRUPT
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<i8035_device> m_audiocpu;
- required_device<samples_device> m_samples;
- required_device<screen_device> m_screen;
-
- required_shared_ptr<uint8_t> m_videoram;
-
- uint8_t m_sound_latch;
- emu_timer *m_interrupt_timer;
- std::unique_ptr<uint8_t[]> m_object_present_map;
- uint8_t m_port_0;
- uint8_t m_port_2;
- uint32_t m_star_shift_reg;
- double m_color_weights_rg[3];
- double m_color_weights_b[2];
-
- void port_0_w(uint8_t data);
- void port_1_w(uint8_t data);
- void port_2_w(uint8_t data);
- uint8_t audio_p2_r();
- DECLARE_READ_LINE_MEMBER(audio_t0_r);
- DECLARE_READ_LINE_MEMBER(audio_t1_r);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- TIMER_CALLBACK_MEMBER(interrupt_callback);
- void start_interrupt_timer();
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- inline void shift_star_generator();
- void get_starfield_pens(pen_t *pens);
- void draw_starfield(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void get_sprite_pens(pen_t *pens);
- void draw_bullet(offs_t offs, pen_t pen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int flip);
- void draw_sprite(offs_t offs, pen_t *pens, bitmap_rgb32 &bitmap, const rectangle &cliprect, int flip);
- void draw_objects(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void spacefb_audio_map(address_map &map);
- void spacefb_main_io_map(address_map &map);
- void spacefb_main_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_SPACEFB
diff --git a/src/mame/includes/spbactn.h b/src/mame/includes/spbactn.h
deleted file mode 100644
index b8a02c0b2e1..00000000000
--- a/src/mame/includes/spbactn.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_SPBACTN_H
-#define MAME_INCLUDES_SPBACTN_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "video/tecmo_spr.h"
-#include "video/tecmo_mix.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class spbactn_state : public driver_device
-{
-public:
- spbactn_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_sprgen(*this, "spritegen"),
- m_mixer(*this, "mixer"),
- m_soundlatch(*this, "soundlatch"),
- m_bgvideoram(*this, "bgvideoram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_spvideoram(*this, "spvideoram"),
- m_extraram(*this, "extraram"),
- m_extraram2(*this, "extraram2")
- { }
-
- void spbactn(machine_config &config);
- void spbactnp(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<tecmo_spr_device> m_sprgen;
- required_device<tecmo_mix_device> m_mixer;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_bgvideoram;
- required_shared_ptr<uint16_t> m_fgvideoram;
- required_shared_ptr<uint16_t> m_spvideoram;
- optional_shared_ptr<uint8_t> m_extraram;
- optional_shared_ptr<uint8_t> m_extraram2;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- tilemap_t *m_extra_tilemap;
-
- void main_irq_ack_w(uint16_t data);
-
- void bg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fg_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- void extraram_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_extra_tile_info);
-
- bitmap_ind16 m_tile_bitmap_bg;
- bitmap_ind16 m_tile_bitmap_fg;
- bitmap_ind16 m_sprite_bitmap;
-
- void spbatnp_90006_w(uint16_t data);
- void spbatnp_9000a_w(uint16_t data);
- void spbatnp_9000c_w(uint16_t data);
- void spbatnp_9000e_w(uint16_t data);
-
- void spbatnp_90124_w(uint16_t data);
- void spbatnp_9012c_w(uint16_t data);
-
- DECLARE_VIDEO_START(spbactn);
- DECLARE_VIDEO_START(spbactnp);
-
- //virtual void video_start();
- uint32_t screen_update_spbactn(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_spbactnp(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- int draw_video(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, bool alt_sprites);
-
- // temp hack
- uint16_t temp_read_handler_r()
- {
- return 0xffff;
- }
-
- void spbactn_map(address_map &map);
- void spbactn_sound_map(address_map &map);
- void spbactnp_extra_map(address_map &map);
- void spbactnp_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SPBACTN_H
diff --git a/src/mame/includes/spcforce.h b/src/mame/includes/spcforce.h
deleted file mode 100644
index c4c3b2fabda..00000000000
--- a/src/mame/includes/spcforce.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-#ifndef MAME_INCLUDES_SPCFORCE_H
-#define MAME_INCLUDES_SPCFORCE_H
-
-#pragma once
-
-#include "cpu/mcs48/mcs48.h"
-#include "machine/74259.h"
-#include "sound/sn76496.h"
-#include "emupal.h"
-
-class spcforce_state : public driver_device
-{
-public:
- spcforce_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mainlatch(*this, "mainlatch"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sn(*this, "sn%u", 1U),
- m_scrollram(*this, "scrollram"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void meteors(machine_config &config);
- void spcforce(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void sn76496_latch_w(uint8_t data);
- uint8_t sn76496_select_r();
- void sn76496_select_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(write_sn1_ready);
- DECLARE_WRITE_LINE_MEMBER(write_sn2_ready);
- DECLARE_WRITE_LINE_MEMBER(write_sn3_ready);
- DECLARE_READ_LINE_MEMBER(t0_r);
- void soundtrigger_w(uint8_t data);
- void misc_outputs_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_w);
- DECLARE_WRITE_LINE_MEMBER(unknown_w);
-
- void spcforce_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(vblank_irq);
-
- void spcforce_map(address_map &map);
- void spcforce_sound_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_mainlatch;
- required_device<i8035_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device_array<sn76496_device, 3> m_sn;
-
- required_shared_ptr<uint8_t> m_scrollram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- output_finder<2> m_lamps;
-
- int m_sn76496_latch;
- int m_sn76496_select;
- int m_sn1_ready;
- int m_sn2_ready;
- int m_sn3_ready;
- uint8_t m_irq_mask;
-};
-
-#endif // MAME_INCLUDES_SPCFORCE_H
diff --git a/src/mame/includes/spdheat.h b/src/mame/includes/spdheat.h
deleted file mode 100644
index cf2680a3175..00000000000
--- a/src/mame/includes/spdheat.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett
-/*************************************************************************
-
- Super Dead Heat hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SPDHEAT_H
-#define MAME_INCLUDES_SPDHEAT_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-#include "machine/input_merger.h"
-#include "sound/dac.h"
-
-
-/*************************************
- *
- * Machine class
- *
- *************************************/
-
-class spdheat_state : public driver_device
-{
-public:
- spdheat_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "subcpu"),
- m_audiocpu(*this, "audiocpu"),
- m_audio_irq(*this, "audio_irq"),
- m_fg_ram(*this, "fg_ram%u", 0U),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette0(*this, "palette0"),
- m_palette1(*this, "palette1"),
- m_palette2(*this, "palette2"),
- m_palette3(*this, "palette3"),
- m_dac(*this, "dac")
- { }
-
- void spdheat(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- required_device<input_merger_any_high_device> m_audio_irq;
- required_shared_ptr_array<uint16_t, 4> m_fg_ram;
- required_shared_ptr<uint16_t> m_spriteram;
- tilemap_t *m_fg_tilemap[4];
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette0;
- required_device<palette_device> m_palette1;
- required_device<palette_device> m_palette2;
- required_device<palette_device> m_palette3;
- required_device<dac_byte_interface> m_dac;
-
- uint32_t m_sound_data[4];
- uint32_t m_sound_status;
- uint32_t m_sub_data;
- uint32_t m_sub_status;
-
- void main_map(address_map &map);
- void sub_map(address_map &map);
- void sub_io_map(address_map &map);
- void sound_map(address_map &map);
-
- uint8_t sub_r();
- void sub_dac_w(uint8_t data);
- void sub_nmi_w(uint8_t data);
- void sub_status_w(uint8_t data);
- uint8_t sub_snd_r();
- uint8_t soundstatus_r();
- uint8_t sub_status_r();
- uint16_t sound_status_r();
- template<int screen> void sound_w(uint16_t data);
- template<int screen> uint8_t sndcpu_sound_r();
- void ym1_port_a_w(uint8_t data);
- void ym1_port_b_w(uint8_t data);
- void ym2_port_a_w(uint8_t data);
- void ym2_port_b_w(uint8_t data);
- void ym3_port_a_w(uint8_t data);
- void ym3_port_b_w(uint8_t data);
- void ym4_port_a_w(uint8_t data);
- void ym4_port_b_w(uint8_t data);
-
- template<int screen> void text_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- template<int screen> TILE_GET_INFO_MEMBER(get_fg_tile_info);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint32_t xo, uint32_t yo);
- template<int which> uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-#endif // MAME_INCLUDES_SPDHEAT_H
diff --git a/src/mame/includes/spdodgeb.h b/src/mame/includes/spdodgeb.h
deleted file mode 100644
index 8de624f8cf4..00000000000
--- a/src/mame/includes/spdodgeb.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Hampson, Nicola Salmoria
-/*************************************************************************
-
- Super Dodge Ball hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SPDODGEB_H
-#define MAME_INCLUDES_SPDODGEB_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class spdodgeb_state : public driver_device
-{
-public:
- spdodgeb_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_mcu(*this, "mcu"),
- m_msm1(*this, "msm1"),
- m_msm2(*this, "msm2"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void spdodgeb(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(mcu_busy_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_mcu;
- required_device<msm5205_device> m_msm1;
- required_device<msm5205_device> m_msm2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- int m_adpcm_pos[2];
- int m_adpcm_end[2];
- int m_adpcm_idle[2];
- int m_adpcm_data[2];
- uint8_t m_mcu_status;
- uint8_t m_inputs[5];
-
- int m_tile_palbank;
- int m_sprite_palbank;
- tilemap_t *m_bg_tilemap;
- int m_lastscroll;
-
- void spd_adpcm_w(offs_t offset, uint8_t data);
- uint8_t mcu63701_r(offs_t offset);
- void mcu_data_w(offs_t offset, uint8_t data);
- void mcu_status_w(uint8_t data);
- void mcu_nmi_w(uint8_t data);
-
- void scrollx_lo_w(uint8_t data);
- void ctrl_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(spd_adpcm_int_1);
- DECLARE_WRITE_LINE_MEMBER(spd_adpcm_int_2);
-
- TILEMAP_MAPPER_MEMBER(background_scan);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- void spdodgeb_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
-
- void spd_adpcm_int(msm5205_device *device, int chip);
- void spdodgeb_map(address_map &map);
- void spdodgeb_sound_map(address_map &map);
- void mcu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SPDODGEB_H
diff --git a/src/mame/includes/spec128.h b/src/mame/includes/spec128.h
deleted file mode 100644
index 1184713a564..00000000000
--- a/src/mame/includes/spec128.h
+++ /dev/null
@@ -1,17 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker
-/*****************************************************************************
- *
- * includes/spec128.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_SPEC128_H
-#define MAME_INCLUDES_SPEC128_H
-
-/* 128K machines take an extra 4 cycles per scan line - add this to retrace */
-#define SPEC128_UNSEEN_LINES 15
-#define SPEC128_RETRACE_CYCLES 52
-#define SPEC128_CYCLES_PER_LINE 228
-
-#endif // MAME_INCLUDES_SPEC128_H
diff --git a/src/mame/includes/special.h b/src/mame/includes/special.h
deleted file mode 100644
index 8f2db6ea35d..00000000000
--- a/src/mame/includes/special.h
+++ /dev/null
@@ -1,145 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/special.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_SPECIAL_H
-#define MAME_INCLUDES_SPECIAL_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "cpu/i8085/i8085.h"
-#include "audio/special.h"
-#include "sound/dac.h"
-#include "machine/i8255.h"
-#include "machine/pit8253.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "formats/smx_dsk.h"
-#include "formats/rk_cas.h"
-#include "machine/wd_fdc.h"
-#include "machine/timer.h"
-#include "machine/ram.h"
-#include "emupal.h"
-
-
-class special_state : public driver_device
-{
-public:
- special_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_ppi(*this, "ppi")
- , m_fdc(*this, "fdc")
- , m_dac(*this, "dac")
- , m_pit(*this, "pit")
- , m_cassette(*this, "cassette")
- , m_fdd(*this, "fd%u", 0U)
- , m_ram(*this, RAM_TAG)
- , m_vram(*this, "videoram")
- , m_rom(*this, "maincpu")
- , m_mram(*this, "mainram")
- , m_bank1(*this, "bank1")
- , m_bank2(*this, "bank2")
- , m_bank3(*this, "bank3")
- , m_bank4(*this, "bank4")
- , m_bank5(*this, "bank5")
- , m_bank6(*this, "bank6")
- , m_io_keyboard(*this, "LINE%u", 0U)
- , m_palette(*this, "palette")
- , m_pit_timer(*this, "pit_timer")
- { }
-
- void special(machine_config &config);
- void erik(machine_config &config);
- void specimx(machine_config &config);
- void specialp(machine_config &config);
- void specialm(machine_config &config);
-
- void init_erik();
- void init_special();
-
-private:
- // specimx
- void specimx_select_bank(offs_t offset, uint8_t data);
- void video_memory_w(offs_t offset, uint8_t data);
- void specimx_video_color_w(uint8_t data);
- uint8_t specimx_video_color_r();
- uint8_t specimx_disk_ctrl_r();
- void specimx_disk_ctrl_w(offs_t offset, uint8_t data);
- uint8_t specimx_portb_r();
- void specimx_portc_w(uint8_t data);
- void specimx_set_bank(offs_t i, uint8_t data);
- // erik
- uint8_t erik_rr_reg_r();
- void erik_rr_reg_w(uint8_t data);
- uint8_t erik_rc_reg_r();
- void erik_rc_reg_w(uint8_t data);
- uint8_t erik_disk_reg_r();
- void erik_disk_reg_w(uint8_t data);
- void erik_set_bank();
- // special
- u8 kbd_r();
- uint8_t porta_r();
- uint8_t portb_r();
- uint8_t portc_r();
- void porta_w(uint8_t data);
- void portb_w(uint8_t data);
- void portc_w(uint8_t data);
- TIMER_DEVICE_CALLBACK_MEMBER(pit_timer);
-
- void erik_palette(palette_device &palette) const;
- void specimx_palette(palette_device &palette) const;
- uint32_t screen_update_special(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_erik(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_specialp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_specimx(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(fdc_drq);
- static void specimx_floppy_formats(format_registration &fr);
- void machine_start() override;
- void machine_reset() override;
-
- void erik_io(address_map &map);
- void erik_mem(address_map &map);
- void specialist_mem(address_map &map);
- void specialp_mem(address_map &map);
- void specimx_mem(address_map &map);
-
- std::unique_ptr<uint8_t[]> m_specimx_colorram;
- uint8_t m_erik_color_1;
- uint8_t m_erik_color_2;
- uint8_t m_erik_background;
- uint8_t m_specimx_color;
- u8 m_porta;
- u8 m_portb;
- u8 m_portc;
- uint8_t m_RR_register;
- uint8_t m_RC_register;
- u8 m_drive;
- required_device<cpu_device> m_maincpu;
- optional_device<i8255_device> m_ppi;
- optional_device<fd1793_device> m_fdc;
- optional_device<dac_bit_interface> m_dac;
- optional_device<pit8253_device> m_pit;
- optional_device<cassette_image_device> m_cassette;
- optional_device_array<floppy_connector, 2> m_fdd;
- optional_device<ram_device> m_ram;
- optional_shared_ptr<uint8_t> m_vram;
- required_region_ptr<u8> m_rom;
- optional_shared_ptr<u8> m_mram;
- required_memory_bank m_bank1;
- optional_memory_bank m_bank2;
- optional_memory_bank m_bank3;
- optional_memory_bank m_bank4;
- optional_memory_bank m_bank5;
- optional_memory_bank m_bank6;
- required_ioport_array<13> m_io_keyboard;
- required_device<palette_device> m_palette;
- optional_device<timer_device> m_pit_timer; // specimx only
-};
-
-#endif // MAME_INCLUDES_SPECIAL_H
diff --git a/src/mame/includes/specpls3.h b/src/mame/includes/specpls3.h
deleted file mode 100644
index 1464e4d6505..00000000000
--- a/src/mame/includes/specpls3.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker
-/*****************************************************************************
- *
- * includes/specpls3.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_SPECPLS3_H
-#define MAME_INCLUDES_SPECPLS3_H
-
-#include "spectrum.h"
-#include "spec128.h"
-
-#include "imagedev/floppy.h"
-#include "machine/upd765.h"
-
-INPUT_PORTS_EXTERN( spec_plus );
-
-class specpls3_state : public spectrum_128_state
-{
-public:
- specpls3_state(const machine_config &mconfig, device_type type, const char *tag) :
- spectrum_128_state(mconfig, type, tag),
- m_upd765(*this, "upd765"),
- m_flop(*this, "upd765:%u", 0U)
- { }
-
- void spectrum_plus2(machine_config &config);
- void spectrum_plus3(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- virtual void plus3_update_memory() override;
-
-private:
- void bank1_w(offs_t offset, uint8_t data);
- uint8_t bank1_r(offs_t offset);
- void port_3ffd_w(uint8_t data);
- uint8_t port_3ffd_r();
- uint8_t port_2ffd_r();
- void port_7ffd_w(uint8_t data);
- void port_1ffd_w(uint8_t data);
- void plus3_us_w(uint8_t data);
-
- void plus3_io(address_map &map);
- void plus3_mem(address_map &map);
-
- optional_device<upd765a_device> m_upd765;
- optional_device_array<floppy_connector, 2> m_flop;
-};
-
-#endif // MAME_INCLUDES_SPECPLS3_H
diff --git a/src/mame/includes/spectrum.h b/src/mame/includes/spectrum.h
deleted file mode 100644
index c9a9d153c29..00000000000
--- a/src/mame/includes/spectrum.h
+++ /dev/null
@@ -1,277 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker
-/*****************************************************************************
- *
- * includes/spectrum.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_SPECTRUM_H
-#define MAME_INCLUDES_SPECTRUM_H
-
-#pragma once
-
-#include "machine/spec_snqk.h"
-#include "machine/bankdev.h"
-#include "bus/spectrum/exp.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "machine/ram.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-#include "screen.h"
-
-/* Spectrum crystals */
-
-#define X1 XTAL(14'000'000) // Main clock (48k Spectrum)
-#define X1_128_AMSTRAD 35469000 // Main clock (Amstrad 128K model, +2A?)
-#define X1_128_SINCLAIR 17734475 // Main clock (Sinclair 128K model)
-
-#define X2 XTAL(4'433'619) // PAL color subcarrier
-
-/* Spectrum screen size in pixels */
-#define SPEC_UNSEEN_LINES 16 /* Non-visible scanlines before first border
- line. Some of these may be vertical retrace. */
-#define SPEC_TOP_BORDER 48 /* Number of border lines before actual screen */
-#define SPEC_DISPLAY_YSIZE 192 /* Vertical screen resolution */
-#define SPEC_BOTTOM_BORDER 56 /* Number of border lines at bottom of screen */
-#define SPEC_SCREEN_HEIGHT (SPEC_TOP_BORDER + SPEC_DISPLAY_YSIZE + SPEC_BOTTOM_BORDER)
-
-#define SPEC_LEFT_BORDER 48 /* Number of left hand border pixels */
-#define SPEC_DISPLAY_XSIZE 256 /* Horizontal screen resolution */
-#define SPEC_RIGHT_BORDER 48 /* Number of right hand border pixels */
-#define SPEC_SCREEN_WIDTH (SPEC_LEFT_BORDER + SPEC_DISPLAY_XSIZE + SPEC_RIGHT_BORDER)
-
-#define SPEC_LEFT_BORDER_CYCLES 24 /* Cycles to display left hand border */
-#define SPEC_DISPLAY_XSIZE_CYCLES 128 /* Horizontal screen resolution */
-#define SPEC_RIGHT_BORDER_CYCLES 24 /* Cycles to display right hand border */
-#define SPEC_RETRACE_CYCLES 48 /* Cycles taken for horizontal retrace */
-#define SPEC_CYCLES_PER_LINE 224 /* Number of cycles to display a single line */
-
-struct EVENT_LIST_ITEM
-{
- /* driver defined ID for this write */
- int Event_ID;
- /* driver defined data for this write */
- int Event_Data;
- /* time at which this write occurred */
- int Event_Time;
-};
-
-
-
-
-class spectrum_state : public driver_device
-{
-public:
- spectrum_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_video_ram(*this, "video_ram"),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_cassette(*this, "cassette"),
- m_ram(*this, RAM_TAG),
- m_specmem(*this, "specmem"),
- m_speaker(*this, "speaker"),
- m_exp(*this, "exp"),
- m_io_line0(*this, "LINE0"),
- m_io_line1(*this, "LINE1"),
- m_io_line2(*this, "LINE2"),
- m_io_line3(*this, "LINE3"),
- m_io_line4(*this, "LINE4"),
- m_io_line5(*this, "LINE5"),
- m_io_line6(*this, "LINE6"),
- m_io_line7(*this, "LINE7"),
- m_io_nmi(*this, "NMI"),
- m_io_config(*this, "CONFIG"),
- m_io_plus0(*this, "PLUS0"),
- m_io_plus1(*this, "PLUS1"),
- m_io_plus2(*this, "PLUS2"),
- m_io_plus3(*this, "PLUS3"),
- m_io_plus4(*this, "PLUS4"),
- m_io_joy1(*this, "JOY1"),
- m_io_joy2(*this, "JOY2")
- { }
-
- void spectrum_common(machine_config &config);
- void spectrum(machine_config &config);
- void spectrum_clone(machine_config &config);
-
- void init_spectrum();
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- // until machine/spec_snqk.cpp gets somehow disentangled
- virtual void plus3_update_memory() { }
- virtual void spectrum_128_update_memory() { }
- virtual void ts2068_update_memory() { }
-
- enum
- {
- TIMER_IRQ_ON,
- TIMER_IRQ_OFF,
- TIMER_SCANLINE
- };
-
- int m_port_fe_data;
- int m_port_7ffd_data;
- int m_port_1ffd_data; /* scorpion and plus3 */
- int m_port_ff_data; /* Display enhancement control */
- int m_port_f4_data; /* Horizontal Select Register */
-
- /* video support */
- int m_frame_invert_count;
- int m_frame_number; /* Used for handling FLASH 1 */
- int m_flash_invert;
- optional_shared_ptr<uint8_t> m_video_ram;
- uint8_t *m_screen_location;
-
- int m_ROMSelection;
-
- emu_timer *m_irq_off_timer;
-
- // Build up the screen bitmap line-by-line as the z80 uses CPU cycles.
- // Elimiates sprite flicker on various games (E.g. Marauder and
- // Stormlord) and makes Firefly playable.
- emu_timer *m_scanline_timer;
-
- EVENT_LIST_ITEM *m_pCurrentItem;
- int m_NumEvents;
- int m_TotalEvents;
- char *m_pEventListBuffer;
- int m_LastFrameStartTime;
- int m_CyclesPerLine;
-
- uint8_t *m_ram_0000;
- uint8_t m_ram_disabled_by_beta;
- uint8_t pre_opcode_fetch_r(offs_t offset);
- void spectrum_rom_w(offs_t offset, uint8_t data);
- uint8_t spectrum_rom_r(offs_t offset);
- uint8_t spectrum_data_r(offs_t offset);
- void spectrum_data_w(offs_t offset, uint8_t data);
-
- void spectrum_port_fe_w(offs_t offset, uint8_t data);
- uint8_t spectrum_port_fe_r(offs_t offset);
- uint8_t spectrum_port_ula_r(offs_t offset);
- uint8_t spectrum_clone_port_ula_r();
-
- void spectrum_palette(palette_device &palette) const;
- uint32_t screen_update_spectrum(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_spectrum);
- INTERRUPT_GEN_MEMBER(spec_interrupt);
-
- unsigned int m_previous_border_x, m_previous_border_y;
- bitmap_ind16 m_border_bitmap;
- unsigned int m_previous_screen_x, m_previous_screen_y;
- bitmap_ind16 m_screen_bitmap;
-
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
-
- void spectrum_io(address_map &map);
- void spectrum_clone_io(address_map &map);
- void spectrum_opcodes(address_map &map);
- void spectrum_map(address_map &map);
- void spectrum_data(address_map &map);
-
- required_device<cassette_image_device> m_cassette;
- required_device<ram_device> m_ram;
- optional_device<address_map_bank_device> m_specmem;
- required_device<speaker_sound_device> m_speaker;
- optional_device<spectrum_expansion_slot_device> m_exp;
-
- // Regular spectrum ports; marked as optional because of other subclasses
- optional_ioport m_io_line0;
- optional_ioport m_io_line1;
- optional_ioport m_io_line2;
- optional_ioport m_io_line3;
- optional_ioport m_io_line4;
- optional_ioport m_io_line5;
- optional_ioport m_io_line6;
- optional_ioport m_io_line7;
- optional_ioport m_io_nmi;
- optional_ioport m_io_config;
-
- // Plus ports
- optional_ioport m_io_plus0;
- optional_ioport m_io_plus1;
- optional_ioport m_io_plus2;
- optional_ioport m_io_plus3;
- optional_ioport m_io_plus4;
-
- // Joystick ports
- optional_ioport m_io_joy1;
- optional_ioport m_io_joy2;
-
- void spectrum_UpdateBorderBitmap();
- void spectrum_UpdateScreenBitmap(bool eof = false);
- inline unsigned char get_display_color(unsigned char color, int invert);
- inline void spectrum_plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color);
-
- // snapshot helpers
- void update_paging();
- void page_basicrom();
- void border_update(int data);
- void setup_sp(uint8_t *snapdata, uint32_t snapsize);
- void setup_sna(uint8_t *snapdata, uint32_t snapsize);
- void setup_ach(uint8_t *snapdata, uint32_t snapsize);
- void setup_prg(uint8_t *snapdata, uint32_t snapsize);
- void setup_plusd(uint8_t *snapdata, uint32_t snapsize);
- void setup_sem(uint8_t *snapdata, uint32_t snapsize);
- void setup_sit(uint8_t *snapdata, uint32_t snapsize);
- void setup_zx(uint8_t *snapdata, uint32_t snapsize);
- void setup_snp(uint8_t *snapdata, uint32_t snapsize);
- void snx_decompress_block(address_space &space, uint8_t *source, uint16_t dest, uint16_t size);
- void setup_snx(uint8_t *snapdata, uint32_t snapsize);
- void setup_frz(uint8_t *snapdata, uint32_t snapsize);
- void z80_decompress_block(address_space &space, uint8_t *source, uint16_t dest, uint16_t size);
- void setup_z80(uint8_t *snapdata, uint32_t snapsize);
-
- // quickload helpers
- void log_quickload(const char *type, uint32_t start, uint32_t length, uint32_t exec, const char *exec_format);
- void setup_scr(uint8_t *quickdata, uint32_t quicksize);
- void setup_raw(uint8_t *quickdata, uint32_t quicksize);
-
- uint8_t floating_bus_r();
-};
-
-class spectrum_128_state : public spectrum_state
-{
-public:
- spectrum_128_state(const machine_config &mconfig, device_type type, const char *tag) :
- spectrum_state(mconfig, type, tag)
- { }
-
- void spectrum_128(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void machine_reset() override;
-
- virtual void spectrum_128_update_memory() override;
-
-private:
- uint8_t spectrum_128_pre_opcode_fetch_r(offs_t offset);
- void spectrum_128_bank1_w(offs_t offset, uint8_t data);
- uint8_t spectrum_128_bank1_r(offs_t offset);
- void spectrum_128_port_7ffd_w(offs_t offset, uint8_t data);
- uint8_t spectrum_128_ula_r();
-
- void spectrum_128_io(address_map &map);
- void spectrum_128_mem(address_map &map);
- void spectrum_128_fetch(address_map &map);
-};
-
-/*----------- defined in drivers/spectrum.cpp -----------*/
-
-INPUT_PORTS_EXTERN( spectrum );
-INPUT_PORTS_EXTERN( spec128 );
-INPUT_PORTS_EXTERN( spec_plus );
-
-#endif // MAME_INCLUDES_SPECTRUM_H
diff --git a/src/mame/includes/speedatk.h b/src/mame/includes/speedatk.h
deleted file mode 100644
index 0b5c11e4763..00000000000
--- a/src/mame/includes/speedatk.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese, Pierpaolo Prazzoli
-#ifndef MAME_INCLUDES_SPEEDATK_H
-#define MAME_INCLUDES_SPEEDATK_H
-
-#pragma once
-
-#include "video/mc6845.h"
-#include "emupal.h"
-
-class speedatk_state : public driver_device
-{
-public:
- speedatk_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_crtc(*this, "crtc"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram")
- { }
-
- void speedatk(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<mc6845_device> m_crtc;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- uint8_t m_crtc_vreg[0x100];
- uint8_t m_crtc_index;
- uint8_t m_flip_scr;
- uint8_t m_mux_data;
- uint8_t m_km_status;
- uint8_t m_coin_settings;
- uint8_t m_coin_impulse;
-
- uint8_t key_matrix_r();
- void key_matrix_w(uint8_t data);
- uint8_t key_matrix_status_r();
- void key_matrix_status_w(uint8_t data);
- void m6845_w(offs_t offset, uint8_t data);
- void output_w(uint8_t data);
-
- void speedatk_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t iox_key_matrix_calc(uint8_t p_side);
-
- void speedatk_io(address_map &map);
- void speedatk_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SPEEDATK_H
diff --git a/src/mame/includes/speedbal.h b/src/mame/includes/speedbal.h
deleted file mode 100644
index e77c4c18cb2..00000000000
--- a/src/mame/includes/speedbal.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Joseba Epalza
-#ifndef MAME_INCLUDES_SPEEDBAL_H
-#define MAME_INCLUDES_SPEEDBAL_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class speedbal_state : public driver_device
-{
-public:
- speedbal_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_spriteram(*this, "spriteram")
- , m_background_videoram(*this, "bg_videoram")
- , m_foreground_videoram(*this, "fg_videoram")
- , m_digits(*this, "digit%u", 0U)
- { }
-
- void speedbal(machine_config &config);
-
- void init_speedbal();
- void init_musicbal();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_background_videoram;
- required_shared_ptr<uint8_t> m_foreground_videoram;
- output_finder<73> m_digits;
-
- bool m_leds_start;
- uint32_t m_leds_shiftreg;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- void coincounter_w(uint8_t data);
- void foreground_videoram_w(offs_t offset, uint8_t data);
- void background_videoram_w(offs_t offset, uint8_t data);
- void maincpu_50_w(uint8_t data);
- void leds_output_block(uint8_t data);
- void leds_start_block(uint8_t data);
- void leds_shift_bit(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info_bg);
- TILE_GET_INFO_MEMBER(get_tile_info_fg);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_cpu_io_map(address_map &map);
- void main_cpu_map(address_map &map);
- void sound_cpu_io_map(address_map &map);
- void sound_cpu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SPEEDBAL_H
diff --git a/src/mame/includes/speedspn.h b/src/mame/includes/speedspn.h
deleted file mode 100644
index 68e5a2fa6ee..00000000000
--- a/src/mame/includes/speedspn.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Farfetch'd
-#ifndef MAME_INCLUDES_SPEEDSPN_H
-#define MAME_INCLUDES_SPEEDSPN_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class speedspn_state : public driver_device
-{
-public:
- speedspn_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_prgbank(*this, "prgbank"),
- m_okibank(*this, "okibank"),
- m_attram(*this, "attram")
- { }
-
- void speedspn(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_memory_bank m_prgbank;
- required_memory_bank m_okibank;
- required_shared_ptr<uint8_t> m_attram;
-
- tilemap_t *m_tilemap;
- bool m_display_disable;
- uint32_t m_bank_vidram;
- std::vector<uint8_t> m_vidram;
- uint8_t irq_ack_r();
- void rombank_w(uint8_t data);
- void sound_w(uint8_t data);
- void vidram_w(offs_t offset, uint8_t data);
- void attram_w(offs_t offset, uint8_t data);
- uint8_t vidram_r(offs_t offset);
- void vidram_bank_w(uint8_t data);
- void display_disable_w(uint8_t data);
- void okibank_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void io_map(address_map &map);
- void oki_map(address_map &map);
- void program_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SPEEDSPN_H
diff --git a/src/mame/includes/spg2xx.h b/src/mame/includes/spg2xx.h
deleted file mode 100644
index 58eed48b69f..00000000000
--- a/src/mame/includes/spg2xx.h
+++ /dev/null
@@ -1,361 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz, David Haywood
-#ifndef MAME_INCLUDES_SPG2XX_H
-#define MAME_INCLUDES_SPG2XX_H
-
-#pragma once
-
-#include "cpu/unsp/unsp.h"
-#include "machine/i2cmem.h"
-#include "machine/spg2xx.h"
-
-
-#include "screen.h"
-#include "softlist.h"
-#include "speaker.h"
-#include "machine/eepromser.h"
-#include "machine/i2cmem.h"
-
-
-class spg2xx_game_state : public driver_device
-{
-public:
- spg2xx_game_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_bank(*this, "cartbank"),
- m_io_p1(*this, "P1"),
- m_io_p2(*this, "P2"),
- m_io_p3(*this, "P3"),
- m_io_guny(*this, "GUNY"),
- m_io_gunx(*this, "GUNX"),
- m_i2cmem(*this, "i2cmem")
- { }
-
- void spg2xx_base(machine_config &config);
- void spg2xx(machine_config &config);
- void spg2xx_pal(machine_config &config);
-
- void rad_skat(machine_config &config);
- void rad_skatp(machine_config &config);
- void rad_sktv(machine_config &config);
- void rad_crik(machine_config &config);
- void non_spg_base(machine_config &config);
- void comil(machine_config &config);
- void tvsprt10(machine_config &config);
- void guitarfv(machine_config &config);
- void tmntmutm(machine_config &config);
-
-
- void init_crc();
- void init_tvsprt10();
- void init_itvphone();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void decrypt_ac_ff(uint16_t* ROM, int size);
-
- void switch_bank(uint32_t bank);
-
- void i2c_w(offs_t offset, uint8_t data);
- uint8_t i2c_r(offs_t offset);
-
- virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- virtual void portb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- virtual void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t base_porta_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t base_portb_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t base_portc_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t base_guny_r();
- uint16_t base_gunx_r();
-
- required_device<spg2xx_device> m_maincpu;
- required_device<screen_device> m_screen;
- optional_memory_bank m_bank;
-
-
- virtual void mem_map_4m(address_map &map);
- virtual void mem_map_2m(address_map &map);
- virtual void mem_map_1m(address_map &map);
-
- uint32_t m_current_bank;
-
- required_ioport m_io_p1;
- optional_ioport m_io_p2;
- optional_ioport m_io_p3;
- optional_ioport m_io_guny;
- optional_ioport m_io_gunx;
- optional_device<i2cmem_device> m_i2cmem;
-};
-
-
-class spg2xx_game_pballpup_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_pballpup_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag),
- m_eeprom(*this, "eeprom")
- { }
-
- void pballpup(machine_config &config);
-
-private:
- uint16_t porta_r();
- virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
-
- required_device<eeprom_serial_93cxx_device> m_eeprom;
-};
-
-class spg2xx_game_comil_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_comil_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag),
- m_porta_data(0),
- m_extra_in(*this, "EXTRA%u", 0U)
- { }
-
- void comil(machine_config &config);
-
-private:
- uint16_t porta_r(offs_t offset, uint16_t mem_mask = ~0);
- void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
- uint16_t portb_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t m_porta_data;
- required_ioport_array<8> m_extra_in;
-};
-
-class spg2xx_game_swclone_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_swclone_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag),
- m_porta_data(0),
- m_i2cmem(*this, "i2cmem")
- { }
-
- void swclone(machine_config &config);
- void init_swclone();
-
-private:
- uint16_t porta_r();
- void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
- uint16_t m_porta_data;
-
- required_device<i2cmem_device> m_i2cmem;
-};
-
-class spg2xx_game_tmntmutm_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_tmntmutm_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag),
- m_i2cmem(*this, "i2cmem")
- { }
-
- void tmntmutm(machine_config &config);
-
-private:
- uint16_t guny_r();
- uint16_t gunx_r();
-
- required_device<i2cmem_device> m_i2cmem;
-};
-
-class spg2xx_game_albkickb_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_albkickb_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag)
- { }
-
- void ablkickb(machine_config &config);
-
- void init_ablkickb();
-
-private:
- uint16_t portb_r(offs_t offset, uint16_t mem_mask = ~0);
-};
-
-class spg2xx_game_dreamlss_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_dreamlss_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag),
- m_porta_data(0),
- m_portb_data(0),
- m_i2cmem(*this, "i2cmem")
- { }
-
- void dreamlss(machine_config &config);
-
-private:
- uint16_t m_porta_data;
- uint16_t m_portb_data;
-
- uint16_t porta_r();
- uint16_t portb_r();
- virtual void portb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
- virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
-
- required_device<i2cmem_device> m_i2cmem;
-};
-
-class spg2xx_game_gssytts_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_gssytts_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag),
- m_upperbank(*this, "upperbank")
- { }
-
- void gssytts(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
-
- required_memory_bank m_upperbank;
-
-private:
-
- void mem_map_upperbank(address_map& map);
-};
-
-class spg2xx_game_senwfit_state : public spg2xx_game_gssytts_state
-{
-public:
- spg2xx_game_senwfit_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_gssytts_state(mconfig, type, tag)
- { }
-
- void init_senwfit();
-protected:
-
- virtual void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
-
-private:
-};
-
-
-class spg2xx_game_senspeed_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_senspeed_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag),
- m_i2cmem(*this, "i2cmem")
- { }
-
- void senspeed(machine_config &config);
-
-private:
- uint16_t portb_r();
- void portb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
- required_device<i2cmem_device> m_i2cmem;
-};
-
-class spg2xx_game_fordrace_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_fordrace_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag)
- { }
-
- void fordrace(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(wheel_r);
- DECLARE_CUSTOM_INPUT_MEMBER(wheel2_r);
-
-private:
-};
-
-
-
-class spg2xx_game_wfcentro_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_wfcentro_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag)
- { }
-
- void wfcentro(machine_config &config);
-
-protected:
-// virtual void machine_start() override;
-// virtual void machine_reset() override;
-
-// virtual void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
-
-private:
-
- void mem_map_wfcentro(address_map& map);
-};
-
-class spg2xx_game_ordentv_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_ordentv_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag)
- { }
-
- void ordentv(machine_config &config);
-
- void init_ordentv();
-
-protected:
-
- uint16_t ordentv_portc_r(offs_t offset, uint16_t mem_mask = ~0);
-private:
-};
-
-class spg2xx_game_hotwheels_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_hotwheels_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag),
- m_porta_dat_hot(0xffff),
- m_io_p1_extra(*this, "P1EXTRA")
- { }
-
- void hotwheels(machine_config &config);
-
-protected:
-
- uint16_t hotwheels_porta_r(offs_t offset, uint16_t mem_mask = ~0);
- virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
-
-private:
-
- uint16_t m_porta_dat_hot;
- required_ioport m_io_p1_extra;
-};
-
-class spg2xx_game_doraphone_state : public spg2xx_game_state
-{
-public:
- spg2xx_game_doraphone_state(const machine_config &mconfig, device_type type, const char *tag) :
- spg2xx_game_state(mconfig, type, tag),
- m_portb_data(0),
- m_io_p1_rows(*this, "P1_ROW%u", 1U)
- { }
-
- void doraphone(machine_config &config);
-
-private:
- uint16_t porta_r(offs_t offset, uint16_t mem_mask = ~0);
-
- void portb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
- uint16_t m_portb_data;
-
- required_ioport_array<6> m_io_p1_rows;
-};
-
-
-
-#endif // MAME_INCLUDES_SPG2XX_H
diff --git a/src/mame/includes/spiders.h b/src/mame/includes/spiders.h
deleted file mode 100644
index 1d5ebba52a9..00000000000
--- a/src/mame/includes/spiders.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/***************************************************************************
-
- Sigma Spiders hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_SPIDERS_H
-#define MAME_INCLUDES_SPIDERS_H
-
-#pragma once
-
-#include "machine/6821pia.h"
-#include "sound/discrete.h"
-#include "video/mc6845.h"
-#include "emupal.h"
-
-class spiders_state : public driver_device
-{
-public:
- spiders_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_ram(*this, "ram")
- , m_discrete(*this, "discrete")
- , m_maincpu(*this, "maincpu")
- , m_palette(*this, "palette")
- , m_audiocpu(*this, "audiocpu")
- , m_pia(*this, "pia%u", 1U)
- { }
-
- void spiders(machine_config &config);
-
-private:
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- void gfx_rom_intf_w(uint8_t data);
- uint8_t gfx_rom_r();
- virtual void machine_start() override;
- INTERRUPT_GEN_MEMBER(update_pia_1);
- DECLARE_WRITE_LINE_MEMBER(ic60_74123_output_changed);
- void spiders_audio_command_w(uint8_t data);
- void spiders_audio_a_w(uint8_t data);
- void spiders_audio_b_w(uint8_t data);
- void spiders_audio_ctrl_w(uint8_t data);
-
- MC6845_UPDATE_ROW(crtc_update_row);
-
- void spiders_audio(machine_config &config);
- void spiders_audio_map(address_map &map);
- void spiders_main_map(address_map &map);
-
- required_shared_ptr<uint8_t> m_ram;
- required_device<discrete_device> m_discrete;
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- required_device<cpu_device> m_audiocpu;
- required_device_array<pia6821_device, 4> m_pia;
-
- uint8_t m_flipscreen;
- uint16_t m_gfx_rom_address;
- uint8_t m_gfx_rom_ctrl_mode;
- uint8_t m_gfx_rom_ctrl_latch;
- uint8_t m_gfx_rom_ctrl_data;
-};
-
-#endif // MAME_INCLUDES_SPIDERS_H
diff --git a/src/mame/includes/splash.h b/src/mame/includes/splash.h
deleted file mode 100644
index 2ecf3d54f64..00000000000
--- a/src/mame/includes/splash.h
+++ /dev/null
@@ -1,174 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia, David Haywood
-#ifndef MAME_INCLUDES_SPLASH_H
-#define MAME_INCLUDES_SPLASH_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "machine/74259.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class splash_state : public driver_device
-{
-public:
- splash_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_outlatch(*this, "outlatch"),
- m_pixelram(*this, "pixelram"),
- m_videoram(*this, "videoram"),
- m_vregs(*this, "vregs"),
- m_spriteram(*this, "spriteram"),
- m_bitmap_mode(*this, "bitmap_mode")
- { }
-
- void roldfrog(machine_config &config);
- void splash(machine_config &config);
-
- void init_splash10();
- void init_roldfrog();
- void init_splash();
- void init_rebus();
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<msm5205_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- optional_device<ls259_device> m_outlatch;
-
- required_shared_ptr<uint16_t> m_pixelram;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_vregs;
- required_shared_ptr<uint16_t> m_spriteram;
- optional_shared_ptr<uint16_t> m_bitmap_mode;
-
- // driver init configuration
- int m_bitmap_type;
- int m_sprite_attr2_shift;
-
- tilemap_t *m_bg_tilemap[2];
-
- // splash specific
- int m_adpcm_data;
-
- //roldfrog specific
- int m_ret;
- int m_vblank_irq;
- int m_sound_irq;
-
- // common
- void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(coin1_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
-
- // splash specific
- DECLARE_WRITE_LINE_MEMBER(splash_msm5205_int);
- void splash_adpcm_data_w(uint8_t data);
- void splash_adpcm_control_w(uint8_t data);
-
- // roldfrog specific
- uint16_t roldfrog_bombs_r();
- void roldfrog_vblank_ack_w(uint8_t data);
- uint8_t roldfrog_unk_r();
- DECLARE_WRITE_LINE_MEMBER(ym_irq);
-
- //roldfrog and funystrp specific
- void sound_bank_w(uint8_t data);
-
- virtual void video_start() override;
- DECLARE_MACHINE_START(splash);
- DECLARE_MACHINE_START(roldfrog);
- DECLARE_MACHINE_RESET(splash);
-
- TILE_GET_INFO_MEMBER(get_tile_info_tilemap0);
- TILE_GET_INFO_MEMBER(get_tile_info_tilemap1);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(roldfrog_interrupt);
- void roldfrog_update_irq( );
-
- void funystrp_sound_map(address_map &map);
- void roldfrog_map(address_map &map);
- void roldfrog_sound_io_map(address_map &map);
- void roldfrog_sound_map(address_map &map);
- void splash_map(address_map &map);
- void splash_sound_map(address_map &map);
-};
-
-class funystrp_state : public splash_state
-{
-public:
- funystrp_state(const machine_config &mconfig, device_type type, const char *tag) :
- splash_state(mconfig, type, tag),
- m_msm1(*this, "msm1"),
- m_msm2(*this, "msm2"),
- m_eeprom(*this, "eeprom"),
- m_funystrp_val(0),
- m_funystrp_ff3cc7_val(0),
- m_funystrp_ff3cc8_val(0)
- { }
-
- void funystrp(machine_config &config);
- void ringball(machine_config &config);
-
- void init_funystrp();
- void init_ringball();
-
-protected:
- virtual void machine_start() override;
-
-private:
- uint16_t spr_read(offs_t offset);
- void spr_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t int_source_r();
- void msm1_data_w(uint8_t data);
- void msm1_interrupt_w(uint8_t data);
- void msm2_interrupt_w(uint8_t data);
- void msm2_data_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int1);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int2);
- void protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t protection_r(offs_t offset);
- void eeprom_w(uint8_t data);
-
- uint32_t screen_update_funystrp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void funystrp_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void funystrp_map(address_map &map);
- void funystrp_sound_io_map(address_map &map);
- void ringball_map(address_map &map);
-
- required_device<msm5205_device> m_msm1;
- required_device<msm5205_device> m_msm2;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
-
- uint8_t m_funystrp_val;
- uint8_t m_funystrp_ff3cc7_val;
- uint8_t m_funystrp_ff3cc8_val;
- int m_msm_data1;
- int m_msm_data2;
- int m_msm_toggle1;
- int m_msm_toggle2;
- int m_msm_source;
- int m_snd_interrupt_enable1;
- int m_snd_interrupt_enable2;
-};
-
-#endif // MAME_INCLUDES_SPLASH_H
diff --git a/src/mame/includes/sprint2.h b/src/mame/includes/sprint2.h
deleted file mode 100644
index 2715ad5651c..00000000000
--- a/src/mame/includes/sprint2.h
+++ /dev/null
@@ -1,113 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-/*************************************************************************
-
- Atari Sprint hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SPRINT2_H
-#define MAME_INCLUDES_SPRINT2_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-#define SPRINT2_SKIDSND1_EN NODE_01
-#define SPRINT2_SKIDSND2_EN NODE_02
-#define SPRINT2_MOTORSND1_DATA NODE_03
-#define SPRINT2_MOTORSND2_DATA NODE_04
-#define SPRINT2_CRASHSND_DATA NODE_05
-#define SPRINT2_ATTRACT_EN NODE_06
-#define SPRINT2_NOISE_RESET NODE_07
-
-#define DOMINOS_FREQ_DATA SPRINT2_MOTORSND1_DATA
-#define DOMINOS_AMP_DATA SPRINT2_CRASHSND_DATA
-#define DOMINOS_TUMBLE_EN SPRINT2_SKIDSND1_EN
-#define DOMINOS_ATTRACT_EN SPRINT2_ATTRACT_EN
-
-
-class sprint2_state : public driver_device
-{
-public:
- sprint2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_video_ram(*this, "video_ram"),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_outlatch(*this, "outlatch"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void sprint1(machine_config &config);
- void sprint2(machine_config &config);
- void dominos4(machine_config &config);
- void dominos(machine_config &config);
-
- void init_sprint1();
- void init_sprint2();
- void init_dominos();
- void init_dominos4();
-
-private:
- int m_steering[2];
- int m_gear[2];
- int m_game;
- uint8_t m_dial[2];
- required_shared_ptr<uint8_t> m_video_ram;
- tilemap_t* m_bg_tilemap;
- bitmap_ind16 m_helper;
- int m_collision[2];
- uint8_t sprint2_wram_r(offs_t offset);
- uint8_t sprint2_dip_r(offs_t offset);
- uint8_t sprint2_input_A_r(offs_t offset);
- uint8_t sprint2_input_B_r(offs_t offset);
- uint8_t sprint2_sync_r();
- uint8_t sprint2_steering1_r();
- uint8_t sprint2_steering2_r();
- void sprint2_steering_reset1_w(uint8_t data);
- void sprint2_steering_reset2_w(uint8_t data);
- void sprint2_wram_w(offs_t offset, uint8_t data);
- void output_latch_w(offs_t offset, uint8_t data);
- uint8_t sprint2_collision1_r();
- uint8_t sprint2_collision2_r();
- void sprint2_collision_reset1_w(uint8_t data);
- void sprint2_collision_reset2_w(uint8_t data);
- void sprint2_video_ram_w(offs_t offset, uint8_t data);
- void sprint2_noise_reset_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void video_start() override;
- void sprint2_palette(palette_device &palette) const;
- uint32_t screen_update_sprint2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_sprint2);
- INTERRUPT_GEN_MEMBER(sprint2_irq);
- uint8_t collision_check(rectangle& rect);
- inline int get_sprite_code(uint8_t *video_ram, int n);
- inline int get_sprite_x(uint8_t *video_ram, int n);
- inline int get_sprite_y(uint8_t *video_ram, int n);
- int service_mode();
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<f9334_device> m_outlatch;
- required_device<discrete_sound_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- void sprint2_map(address_map &map);
-};
-
-/*----------- defined in audio/sprint2.c -----------*/
-DISCRETE_SOUND_EXTERN( sprint2_discrete );
-DISCRETE_SOUND_EXTERN( sprint1_discrete );
-DISCRETE_SOUND_EXTERN( dominos_discrete );
-
-#endif // MAME_INCLUDES_SPRINT2_H
diff --git a/src/mame/includes/sprint4.h b/src/mame/includes/sprint4.h
deleted file mode 100644
index 6e79cc9b149..00000000000
--- a/src/mame/includes/sprint4.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-#ifndef MAME_INCLUDES_SPRINT4_H
-#define MAME_INCLUDES_SPRINT4_H
-
-#pragma once
-
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class sprint4_state : public driver_device
-{
-public:
- enum
- {
- TIMER_NMI
- };
-
- sprint4_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram")
- { }
-
- void sprint4(machine_config &config);
-
- template <int N> DECLARE_READ_LINE_MEMBER(lever_r);
- template <int N> DECLARE_READ_LINE_MEMBER(wheel_r);
- template <int N> DECLARE_READ_LINE_MEMBER(collision_flipflop_r);
-
-private:
- uint8_t wram_r(offs_t offset);
- uint8_t analog_r(offs_t offset);
- uint8_t coin_r(offs_t offset);
- uint8_t collision_r(offs_t offset);
- uint8_t options_r(offs_t offset);
- void wram_w(offs_t offset, uint8_t data);
- void collision_reset_w(offs_t offset, uint8_t data);
- void da_latch_w(uint8_t data);
- void video_ram_w(offs_t offset, uint8_t data);
- void bang_w(uint8_t data);
- void attract_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- void sprint4_palette(palette_device &palette) const;
-
- TILE_GET_INFO_MEMBER(tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- TIMER_CALLBACK_MEMBER(nmi_callback);
-
- void sprint4_cpu_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<discrete_sound_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
-
- int m_da_latch;
- int m_steer_FF1[4];
- int m_steer_FF2[4];
- int m_gear[4];
- uint8_t m_last_wheel[4];
- int m_collision[4];
- tilemap_t* m_playfield;
- bitmap_ind16 m_helper;
- emu_timer *m_nmi_timer;
-};
-
-#endif // MAME_INCLUDES_SPRINT4_H
diff --git a/src/mame/includes/sprint8.h b/src/mame/includes/sprint8.h
deleted file mode 100644
index 060a77cc04d..00000000000
--- a/src/mame/includes/sprint8.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-#ifndef MAME_INCLUDES_SPRINT8_H
-#define MAME_INCLUDES_SPRINT8_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/timer.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class sprint8_state : public driver_device
-{
-public:
- sprint8_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_discrete(*this, "discrete"),
- m_video_ram(*this, "video_ram"),
- m_pos_h_ram(*this, "pos_h_ram"),
- m_pos_v_ram(*this, "pos_v_ram"),
- m_pos_d_ram(*this, "pos_d_ram")
- { }
-
- void sprint8(machine_config &config);
-
-private:
- uint8_t collision_r();
- uint8_t input_r(offs_t offset);
- void lockout_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(int_reset_w);
- DECLARE_WRITE_LINE_MEMBER(team_w);
- void video_ram_w(offs_t offset, uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void sprint8_palette(palette_device &palette) const;
-
- TILE_GET_INFO_MEMBER(get_tile_info1);
- TILE_GET_INFO_MEMBER(get_tile_info2);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- TIMER_CALLBACK_MEMBER(collision_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(input_callback);
-
- void set_pens();
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void set_collision(int n);
- void sprint8_audio(machine_config &config);
- void sprint8_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<discrete_sound_device> m_discrete;
-
- required_shared_ptr<uint8_t> m_video_ram;
- required_shared_ptr<uint8_t> m_pos_h_ram;
- required_shared_ptr<uint8_t> m_pos_v_ram;
- required_shared_ptr<uint8_t> m_pos_d_ram;
-
- int m_steer_dir[8];
- int m_steer_flag[8];
- int m_collision_reset;
- int m_collision_index;
- uint8_t m_dial[8];
- int m_team;
-
- tilemap_t* m_tilemap1;
- tilemap_t* m_tilemap2;
- bitmap_ind16 m_helper1;
- bitmap_ind16 m_helper2;
- emu_timer *m_collision_timer;
-};
-
-/*----------- defined in audio/sprint8.c -----------*/
-DISCRETE_SOUND_EXTERN( sprint8_discrete );
-
-#endif // MAME_INCLUDES_SPRINT8_H
diff --git a/src/mame/includes/spy.h b/src/mame/includes/spy.h
deleted file mode 100644
index 72e8ac6bed5..00000000000
--- a/src/mame/includes/spy.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- S.P.Y.
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SPY_H
-#define MAME_INCLUDES_SPY_H
-
-#pragma once
-
-#include "sound/k007232.h"
-#include "video/k052109.h"
-#include "video/k051960.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-
-class spy_state : public driver_device
-{
-public:
- spy_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_ram(*this, "ram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k007232_1(*this, "k007232_1"),
- m_k007232_2(*this, "k007232_2"),
- m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960"),
- m_palette(*this, "palette")
- { }
-
- void spy(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_ram;
- uint8_t m_pmcram[0x800];
- std::vector<uint8_t> m_paletteram;
-
- /* misc */
- int m_rambank;
- int m_pmcbank;
- int m_video_enable;
- int m_old_3f90;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k007232_device> m_k007232_1;
- required_device<k007232_device> m_k007232_2;
- required_device<k052109_device> m_k052109;
- required_device<k051960_device> m_k051960;
- required_device<palette_device> m_palette;
- uint8_t spy_bankedram1_r(offs_t offset);
- void spy_bankedram1_w(offs_t offset, uint8_t data);
- void bankswitch_w(uint8_t data);
- void spy_3f90_w(uint8_t data);
- void spy_sh_irqtrigger_w(uint8_t data);
- void sound_bank_w(uint8_t data);
- uint8_t k052109_051960_r(offs_t offset);
- void k052109_051960_w(offs_t offset, uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_spy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void spy_collision( );
- void volume_callback0(uint8_t data);
- void volume_callback1(uint8_t data);
- K052109_CB_MEMBER(tile_callback);
- K051960_CB_MEMBER(sprite_callback);
-
- void spy_map(address_map &map);
- void spy_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SPY_H
diff --git a/src/mame/includes/srmp2.h b/src/mame/includes/srmp2.h
deleted file mode 100644
index f556968cf17..00000000000
--- a/src/mame/includes/srmp2.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Yochizo, Takahiro Nogi
-#ifndef MAME_INCLUDES_SRMP2_H
-#define MAME_INCLUDES_SRMP2_H
-
-#pragma once
-
-#include "sound/msm5205.h"
-#include "video/seta001.h"
-#include "emupal.h"
-
-class srmp2_state : public driver_device
-{
-public:
- struct iox_t
- {
- int reset,ff_event,ff_1,protcheck[4],protlatch[4];
- uint8_t data;
- uint8_t mux;
- uint8_t ff;
- };
-
- srmp2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_seta001(*this, "spritegen"),
- m_msm(*this, "msm"),
- m_adpcm_rom(*this, "adpcm"),
- m_mainbank(*this, "mainbank")
- { }
-
- void mjyuugi(machine_config &config);
- void srmp2(machine_config &config);
- void rmgoldyh(machine_config &config);
- void srmp3(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<seta001_device> m_seta001;
- required_device<msm5205_device> m_msm;
- required_region_ptr<uint8_t> m_adpcm_rom;
- optional_memory_bank m_mainbank;
-
- uint8_t m_color_bank;
- uint8_t m_gfx_bank;
- uint8_t m_adpcm_bank;
- uint8_t m_adpcm_data;
- uint32_t m_adpcm_sptr;
- uint32_t m_adpcm_eptr;
- iox_t m_iox;
-
- // common
- uint8_t vox_status_r();
- uint8_t iox_mux_r();
- uint8_t iox_status_r();
- void iox_command_w(uint8_t data);
- void iox_data_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
-
- // mjuugi
- void mjyuugi_flags_w(uint16_t data);
- void mjyuugi_adpcm_bank_w(uint16_t data);
- uint8_t mjyuugi_irq2_ack_r();
- uint8_t mjyuugi_irq4_ack_r();
-
- // rmgoldyh
- void rmgoldyh_rombank_w(uint8_t data);
-
- // srmp2
- void srmp2_irq2_ack_w(uint8_t data);
- void srmp2_irq4_ack_w(uint8_t data);
- void srmp2_flags_w(uint16_t data);
- void adpcm_code_w(uint8_t data);
-
- // srmp3
- void srmp3_rombank_w(uint8_t data);
- void srmp3_flags_w(uint8_t data);
- void srmp3_irq_ack_w(uint8_t data);
-
- virtual void machine_start() override;
- DECLARE_MACHINE_START(srmp2);
- void srmp2_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(srmp3);
- void srmp3_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(rmgoldyh);
- DECLARE_MACHINE_START(mjyuugi);
-
- uint32_t screen_update_srmp2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_srmp3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- SETA001_SPRITE_GFXBANK_CB_MEMBER(srmp3_gfxbank_callback);
-
- uint8_t iox_key_matrix_calc(uint8_t p_side);
-
- void mjyuugi_map(address_map &map);
- void rmgoldyh_io_map(address_map &map);
- void rmgoldyh_map(address_map &map);
- void srmp2_map(address_map &map);
- void srmp3_io_map(address_map &map);
- void srmp3_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SRMP2_H
diff --git a/src/mame/includes/srumbler.h b/src/mame/includes/srumbler.h
deleted file mode 100644
index fee94871f84..00000000000
--- a/src/mame/includes/srumbler.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Leaman
-
-#include "machine/timer.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class srumbler_state : public driver_device
-{
-public:
- srumbler_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_spriteram(*this,"spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_backgroundram(*this, "backgroundram"),
- m_foregroundram(*this, "foregroundram") { }
-
- void srumbler(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<buffered_spriteram8_device> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_backgroundram;
- required_shared_ptr<uint8_t> m_foregroundram;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- int m_scroll[4];
-
- void bankswitch_w(uint8_t data);
- void foreground_w(offs_t offset, uint8_t data);
- void background_w(offs_t offset, uint8_t data);
- void _4009_w(uint8_t data);
- void scroll_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
- void srumbler_map(address_map &map);
- void srumbler_sound_map(address_map &map);
-};
diff --git a/src/mame/includes/sshangha.h b/src/mame/includes/sshangha.h
deleted file mode 100644
index a1db6b36bfc..00000000000
--- a/src/mame/includes/sshangha.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, Charles MacDonald, David Haywood
-#include "video/deco16ic.h"
-#include "video/decospr.h"
-#include "machine/deco146.h"
-#include "emupal.h"
-
-class sshangha_state : public driver_device
-{
-public:
- sshangha_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_deco146(*this, "ioprot"),
- m_tilegen(*this, "tilegen"),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2"),
- m_sound_shared_ram(*this, "sound_shared"),
- m_pf1_rowscroll(*this, "pf1_rowscroll"),
- m_pf2_rowscroll(*this, "pf2_rowscroll"),
- m_prot_data(*this, "prot_data"),
- m_sprgen1(*this, "spritegen1"),
- m_sprgen2(*this, "spritegen2"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_palette(*this, "palette")
- { }
-
- void sshanghab(machine_config &config);
- void sshangha(machine_config &config);
-
- void init_sshangha();
-
-protected:
- virtual void video_start() override;
-
-private:
- optional_device<deco146_device> m_deco146;
- required_device<deco16ic_device> m_tilegen;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_spriteram2;
-
- required_shared_ptr<uint16_t> m_sound_shared_ram;
- required_shared_ptr<uint16_t> m_pf1_rowscroll;
- required_shared_ptr<uint16_t> m_pf2_rowscroll;
-
- optional_shared_ptr<uint16_t> m_prot_data;
-
- required_device<decospr_device> m_sprgen1;
- required_device<decospr_device> m_sprgen2;
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<palette_device> m_palette;
-
- int m_video_control;
- DECO16IC_BANK_CB_MEMBER(bank_callback);
- u16 mix_callback(u16 p, u16 p2);
-
- uint16_t sshangha_protection_region_8_146_r(offs_t offset);
- void sshangha_protection_region_8_146_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t sshangha_protection_region_d_146_r(offs_t offset);
- void sshangha_protection_region_d_146_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t deco_71_r();
- uint16_t sshanghab_protection16_r(offs_t offset);
-
- uint8_t sound_shared_r(offs_t offset);
- void sound_shared_w(offs_t offset, uint8_t data);
-
- void video_w(uint16_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void sshangha_map(address_map &map);
- void sound_map(address_map &map);
- void sshanghab_map(address_map &map);
-};
diff --git a/src/mame/includes/sslam.h b/src/mame/includes/sslam.h
deleted file mode 100644
index a3f5c5230be..00000000000
--- a/src/mame/includes/sslam.h
+++ /dev/null
@@ -1,116 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli, Quench
-#ifndef MAME_INCLUDES_SSLAM_H
-#define MAME_INCLUDES_SSLAM_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/gen_latch.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class sslam_state : public driver_device
-{
-public:
- sslam_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_bg_tileram(*this, "bg_tileram"),
- m_md_tileram(*this, "md_tileram"),
- m_tx_tileram(*this, "tx_tileram"),
- m_regs(*this, "regs"),
- m_spriteram(*this, "spriteram")
- { }
-
- void sslam(machine_config &config);
-
- void init_sslam();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<mcs51_cpu_device> m_audiocpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_bg_tileram;
- optional_shared_ptr<uint16_t> m_md_tileram;
- optional_shared_ptr<uint16_t> m_tx_tileram;
- required_shared_ptr<uint16_t> m_regs;
- required_shared_ptr<uint16_t> m_spriteram;
-
- emu_timer *m_music_timer;
-
- int m_sound;
- int m_melody;
- int m_bar;
- int m_track;
- int m_snd_bank;
-
- uint8_t m_oki_control;
- uint8_t m_oki_command;
- uint8_t m_oki_bank;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_md_tilemap;
-
- int m_sprites_x_offset;
- uint8_t playmark_snd_command_r();
- void playmark_oki_w(uint8_t data);
- void playmark_snd_control_w(uint8_t data);
- void sslam_tx_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sslam_md_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sslam_bg_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sslam_snd_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_sslam_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_sslam_md_tile_info);
- TILE_GET_INFO_MEMBER(get_sslam_bg_tile_info);
- DECLARE_VIDEO_START(sslam);
- DECLARE_VIDEO_START(powerbls);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(music_playback);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void sslam_play(int track, int data);
-
- void sslam_program_map(address_map &map);
-};
-
-class powerbls_state : public sslam_state
-{
-public:
- powerbls_state(const machine_config &mconfig, device_type type, const char *tag) :
- sslam_state(mconfig, type, tag)
- { }
-
- void powerbls(machine_config &config);
-
- void init_powerbls();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- void powerbls_map(address_map &map);
-
- TILE_GET_INFO_MEMBER(get_powerbls_bg_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void powerbls_sound_w(uint16_t data);
- void powerbls_bg_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-};
-
-#endif // MAME_INCLUDES_SSLAM_H
diff --git a/src/mame/includes/ssozumo.h b/src/mame/includes/ssozumo.h
deleted file mode 100644
index 8553ccaf0af..00000000000
--- a/src/mame/includes/ssozumo.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Takahiro Nogi
-#ifndef MAME_INCLUDES_SSOZUMO_H
-#define MAME_INCLUDES_SSOZUMO_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class ssozumo_state : public driver_device
-{
-public:
- ssozumo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "paletteram"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_videoram2(*this, "videoram2"),
- m_colorram2(*this, "colorram2")
- { }
-
- void ssozumo(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- void sound_nmi_mask_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void videoram2_w(offs_t offset, uint8_t data);
- void colorram2_w(offs_t offset, uint8_t data);
- void paletteram_w(offs_t offset, uint8_t data);
- void scroll_w(uint8_t data);
- void flipscreen_w(uint8_t data);
-
- INTERRUPT_GEN_MEMBER(sound_timer_irq);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- void ssozumo_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void ssozumo_map(address_map &map);
- void ssozumo_sound_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_paletteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram2;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_sound_nmi_mask;
- uint8_t m_color_bank;
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-#endif // MAME_INCLUDES_SSOZUMO_H
diff --git a/src/mame/includes/sspeedr.h b/src/mame/includes/sspeedr.h
deleted file mode 100644
index af4b5ad6e0e..00000000000
--- a/src/mame/includes/sspeedr.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-#ifndef MAME_INCLUDES_SSPEEDR_H
-#define MAME_INCLUDES_SSPEEDR_H
-
-#pragma once
-
-#include "emupal.h"
-#include "machine/netlist.h"
-
-class sspeedr_state : public driver_device
-{
-public:
- sspeedr_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_digits(*this, "digit%u", 0U)
- , m_pedal_bit0(*this, "sound_nl:pedal_bit0")
- , m_pedal_bit1(*this, "sound_nl:pedal_bit1")
- , m_pedal_bit2(*this, "sound_nl:pedal_bit2")
- , m_pedal_bit3(*this, "sound_nl:pedal_bit3")
- , m_hi_shift(*this, "sound_nl:hi_shift")
- , m_lo_shift(*this, "sound_nl:lo_shift")
- , m_boom(*this, "sound_nl:boom")
- , m_engine_sound_off(*this, "sound_nl:engine_sound_off")
- , m_noise_cr_1(*this, "sound_nl:noise_cr_1")
- , m_noise_cr_2(*this, "sound_nl:noise_cr_2")
- , m_silence(*this, "sound_nl:silence")
- , m_track(*this, "track")
- { }
-
- void sspeedr(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void machine_start() override { m_digits.resolve(); }
-
-private:
- void int_ack_w(uint8_t data);
- void lamp_w(uint8_t data);
- void time_w(offs_t offset, uint8_t data);
- void score_w(offs_t offset, uint8_t data);
- void sound1_w(uint8_t data);
- void sound2_w(uint8_t data);
- void driver_horz_w(uint8_t data);
- void driver_horz_2_w(uint8_t data);
- void driver_vert_w(uint8_t data);
- void driver_pic_w(uint8_t data);
- void drones_horz_w(uint8_t data);
- void drones_horz_2_w(uint8_t data);
- void drones_mask_w(uint8_t data);
- void drones_vert_w(offs_t offset, uint8_t data);
- void track_horz_w(uint8_t data);
- void track_horz_2_w(uint8_t data);
- void track_vert_w(offs_t offset, uint8_t data);
- void track_ice_w(uint8_t data);
- void palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void io_map(address_map &map);
- void prg_map(address_map &map);
-
- uint8_t m_led_time[2];
- uint8_t m_led_score[24];
- uint8_t m_toggle;
- uint16_t m_driver_horz;
- uint8_t m_driver_vert;
- uint8_t m_driver_pic;
- uint16_t m_drones_horz;
- uint8_t m_drones_vert[3];
- uint8_t m_drones_mask;
- uint16_t m_track_horz;
- uint8_t m_track_vert[2];
- uint8_t m_track_ice;
-
- void draw_track(bitmap_ind16 &bitmap);
- void draw_drones(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_driver(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- output_finder<26> m_digits;
- required_device<netlist_mame_logic_input_device> m_pedal_bit0;
- required_device<netlist_mame_logic_input_device> m_pedal_bit1;
- required_device<netlist_mame_logic_input_device> m_pedal_bit2;
- required_device<netlist_mame_logic_input_device> m_pedal_bit3;
- required_device<netlist_mame_logic_input_device> m_hi_shift;
- required_device<netlist_mame_logic_input_device> m_lo_shift;
- required_device<netlist_mame_logic_input_device> m_boom;
- required_device<netlist_mame_logic_input_device> m_engine_sound_off;
- required_device<netlist_mame_logic_input_device> m_noise_cr_1;
- required_device<netlist_mame_logic_input_device> m_noise_cr_2;
- required_device<netlist_mame_logic_input_device> m_silence;
- required_region_ptr<uint8_t> m_track;
-};
-
-#endif // MAME_INCLUDES_SSPEEDR_H
diff --git a/src/mame/includes/ssrj.h b/src/mame/includes/ssrj.h
deleted file mode 100644
index 1db4af57791..00000000000
--- a/src/mame/includes/ssrj.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-#ifndef MAME_INCLUDES_SSRJ_H
-#define MAME_INCLUDES_SSRJ_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class ssrj_state : public driver_device
-{
-public:
- ssrj_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_vram1(*this, "vram1"),
- m_vram2(*this, "vram2"),
- m_vram3(*this, "vram3"),
- m_vram4(*this, "vram4"),
- m_scrollram(*this, "scrollram")
- { }
-
- void ssrj(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_vram1;
- required_shared_ptr<uint8_t> m_vram2;
- required_shared_ptr<uint8_t> m_vram3;
- required_shared_ptr<uint8_t> m_vram4;
- required_shared_ptr<uint8_t> m_scrollram;
-
- int m_oldport;
- tilemap_t *m_tilemap1;
- tilemap_t *m_tilemap2;
- tilemap_t *m_tilemap4;
- std::unique_ptr<uint8_t[]> m_buffer_spriteram;
-
- uint8_t wheel_r();
- void vram1_w(offs_t offset, uint8_t data);
- void vram2_w(offs_t offset, uint8_t data);
- void vram4_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info1);
- TILE_GET_INFO_MEMBER(get_tile_info2);
- TILE_GET_INFO_MEMBER(get_tile_info4);
-
- void ssrj_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void draw_objects(bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void ssrj_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SSRJ_H
diff --git a/src/mame/includes/ssv.h b/src/mame/includes/ssv.h
deleted file mode 100644
index 0f7a63d73e5..00000000000
--- a/src/mame/includes/ssv.h
+++ /dev/null
@@ -1,258 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_SSV_H
-#define MAME_INCLUDES_SSV_H
-
-#pragma once
-
-#include "cpu/upd7725/upd7725.h"
-#include "video/st0020.h"
-#include "machine/adc0808.h"
-#include "machine/eepromser.h"
-#include "machine/timer.h"
-#include "machine/upd4701.h"
-#include "machine/upd7001.h"
-#include "sound/es5506.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class ssv_state : public driver_device
-{
-public:
- ssv_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ensoniq(*this, "ensoniq"),
- m_dsp(*this, "dsp"),
- m_mainram(*this, "mainram"),
- m_spriteram(*this, "spriteram"),
- m_scroll(*this, "scroll"),
- m_irq_vectors(*this, "irq_vectors"),
- m_input_sel(*this, "input_sel"),
- m_srmp7_esbank(*this, "esbank_%u", 2U),
- m_raster_interrupt_enabled(false),
- m_io_key(*this, "KEY%u", 0U),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void ssv(machine_config &config);
- void dynagear(machine_config &config);
- void hypreac2(machine_config &config);
- void meosism(machine_config &config);
- void drifto94(machine_config &config);
- void stmblade(machine_config &config);
- void srmp4(machine_config &config);
- void srmp7(machine_config &config);
- void twineag2(machine_config &config);
- void ryorioh(machine_config &config);
- void janjans1(machine_config &config);
- void survarts(machine_config &config);
- void ultrax(machine_config &config);
- void vasara(machine_config &config);
- void mslider(machine_config &config);
- void jsk(machine_config &config);
- void hypreact(machine_config &config);
- void keithlcy(machine_config &config);
- void pastelis(machine_config &config);
- void cairblad(machine_config &config);
-
- void init_ssv();
- void init_ssv_tilescram();
- void init_ssv_irq1();
- void init_srmp7();
- void init_jsk();
- void init_pastelis();
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<es5506_device> m_ensoniq;
- optional_device<upd96050_device> m_dsp;
-
- required_shared_ptr<uint16_t> m_mainram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_scroll;
- required_shared_ptr<uint16_t> m_irq_vectors;
- optional_shared_ptr<uint16_t> m_input_sel;
- optional_memory_bank_array<2> m_srmp7_esbank;
-
- int m_tile_code[16];
- int m_enable_video;
- int m_shadow_pen_mask;
- int m_shadow_pen_shift;
- uint8_t m_requested_int;
- uint16_t m_irq_enable;
- int m_interrupt_ultrax;
- bool m_raster_interrupt_enabled;
- uint32_t m_latches[8];
-
- void irq_ack_w(offs_t offset, uint16_t data);
- void irq_enable_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void lockout_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void lockout_inv_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t dsp_dr_r();
- void dsp_dr_w(uint16_t data);
- uint16_t dsp_r(offs_t offset);
- void dsp_w(offs_t offset, uint16_t data);
- uint16_t drifto94_unknown_r();
- uint16_t hypreact_input_r();
- uint16_t mainram_r(offs_t offset);
- void mainram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t srmp4_input_r();
- uint16_t srmp7_irqv_r();
- void srmp7_sound_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t srmp7_input_r();
- uint32_t latch32_r(offs_t offset);
- void latch32_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint16_t latch16_r(offs_t offset);
- void latch16_w(offs_t offset, uint16_t data);
- uint16_t vblank_r();
- void scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
- void update_irq_state();
- IRQ_CALLBACK_MEMBER(irq_callback);
-
- void drawgfx_line(bitmap_ind16 &bitmap, const rectangle &cliprect, int gfx, uint32_t code, uint32_t color, int flipx, int flipy, int base_sx, int base_sy, int shadow, int realline, int line);
- void drawgfx(bitmap_ind16 &bitmap, const rectangle &cliprect, int gfx,uint32_t code, uint32_t color, int flipx, int flipy, int base_sx, int base_sy,int shadow);
-
- void draw_16x16_tile_line(bitmap_ind16 &bitmap, const rectangle &cliprect, int flipx, int flipy, int mode, int code, int color, int sx, int sy, int realline, int line);
- void get_tile(int x, int y, int size, int page, int& code, int& attr, int& flipx, int& flipy);
- void draw_row_64pixhigh(bitmap_ind16 &bitmap, const rectangle &cliprect, int in_sy, int scroll);
- void draw_layer(bitmap_ind16 &bitmap, const rectangle &cliprect, int nr);
-
- void draw_sprites_tiles(bitmap_ind16 &bitmap, const rectangle &cliprect, int code, int flipx, int flipy, int gfx, int shadow, int color, int sx, int sy, int xnum, int ynum);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void enable_video(int enable);
-
- void cairblad_map(address_map &map);
- void drifto94_map(address_map &map);
- void dsp_data_map(address_map &map);
- void dsp_prg_map(address_map &map);
- void hypreac2_map(address_map &map);
- void hypreact_map(address_map &map);
- void janjans1_map(address_map &map);
- void jsk_map(address_map &map);
- void jsk_v810_mem(address_map &map);
- void keithlcy_map(address_map &map);
- void meosism_map(address_map &map);
- void mslider_map(address_map &map);
- void ryorioh_map(address_map &map);
- void srmp4_map(address_map &map);
- void srmp7_map(address_map &map);
- void srmp7_es5506_bank2_map(address_map &map);
- void srmp7_es5506_bank3_map(address_map &map);
- void survarts_map(address_map &map);
- void twineag2_map(address_map &map);
- void ultrax_map(address_map &map);
-
- optional_ioport_array<4> m_io_key;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- void ssv_map(address_map &map, u32 rom);
-};
-
-class gdfs_state : public ssv_state
-{
-public:
- gdfs_state(const machine_config &mconfig, device_type type, const char *tag) :
- ssv_state(mconfig, type, tag),
- m_adc(*this, "adc"),
- m_eeprom(*this, "eeprom"),
- m_st0020(*this, "st0020_spr"),
- m_tmapram(*this, "gdfs_tmapram"),
- m_tmapscroll(*this, "gdfs_tmapscroll")
- { }
-
- void gdfs(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- DECLARE_WRITE_LINE_MEMBER(adc_int_w);
-
- uint16_t eeprom_r();
- void eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void gdfs_map(address_map &map);
-
- TILE_GET_INFO_MEMBER(get_tile_info_0);
- void tmapram_w(offs_t offset, uint16_t data, uint16_t mem_mask);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_device<adc0808_device> m_adc;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<st0020_device> m_st0020;
- required_shared_ptr<uint16_t> m_tmapram;
- required_shared_ptr<uint16_t> m_tmapscroll;
-
- tilemap_t *m_tmap;
-};
-
-class eaglshot_state : public ssv_state
-{
-public:
- eaglshot_state(const machine_config &mconfig, device_type type, const char *tag) :
- ssv_state(mconfig, type, tag),
- m_upd4701(*this, "upd4701")
- { }
-
- void eaglshot(machine_config &config);
-
- void init_eaglshot();
-
-protected:
- virtual void video_start() override;
-
-private:
- void gfxrom_bank_w(uint8_t data);
- void trackball_w(uint8_t data);
- uint16_t gfxram_r(offs_t offset, uint16_t mem_mask);
- void gfxram_w(offs_t offset, uint16_t data, uint16_t mem_mask);
-
- void eaglshot_map(address_map &map);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_device<upd4701_device> m_upd4701;
-
- std::unique_ptr<uint16_t[]> m_gfxram;
-};
-
-class sxyreact_state : public ssv_state
-{
-public:
- sxyreact_state(const machine_config &mconfig, device_type type, const char *tag) :
- ssv_state(mconfig, type, tag),
- m_sxyreact_adc(*this, "adc"),
- m_io_service(*this, "SERVICE")
- { }
-
- void sxyreact(machine_config &config);
- void sxyreac2(machine_config &config);
-
- void init_sexy();
-
-private:
- uint16_t ballswitch_r();
- uint8_t dial_r();
- void dial_w(uint8_t data);
- void motor_w(uint16_t data);
-
- void sxyreact_map(address_map &map);
-
- required_device<upd7001_device> m_sxyreact_adc;
- required_ioport m_io_service;
-};
-
-#endif // MAME_INCLUDES_SSV_H
diff --git a/src/mame/includes/stactics.h b/src/mame/includes/stactics.h
deleted file mode 100644
index 8d74185d34f..00000000000
--- a/src/mame/includes/stactics.h
+++ /dev/null
@@ -1,130 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Frank Palazzolo
-/****************************************************************************
-
- Sega "Space Tactics" Driver
-
- Frank Palazzolo (palazzol@home.com)
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_STACTICS_H
-#define MAME_INCLUDES_STACTICS_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "emupal.h"
-
-class stactics_state : public driver_device
-{
-public:
- stactics_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_outlatch(*this, "outlatch"),
- m_display_buffer(*this, "display_buffer"),
- m_videoram_b(*this, "videoram_b"),
- m_videoram_d(*this, "videoram_d"),
- m_videoram_e(*this, "videoram_e"),
- m_videoram_f(*this, "videoram_f"),
- m_base_lamps(*this, "base_lamp%u", 0U),
- m_beam_leds_left(*this, "beam_led_left%u", 0U),
- m_beam_leds_right(*this, "beam_led_right%u", 0U),
- m_score_digits(*this, "digit%u", 0U),
- m_credit_leds(*this, "credit_led%u", 0U),
- m_barrier_leds(*this, "barrier_led%u", 0U),
- m_round_leds(*this, "round_led%u", 0U),
- m_barrier_lamp(*this, "barrier_lamp"),
- m_start_lamp(*this, "start_lamp"),
- m_sight_led(*this, "sight_led"),
- m_in3(*this, "IN3"),
- m_fake(*this, "FAKE")
- { }
-
- void stactics(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(frame_count_d3_r);
- DECLARE_READ_LINE_MEMBER(shot_standby_r);
- DECLARE_READ_LINE_MEMBER(not_shot_arrive_r);
- DECLARE_READ_LINE_MEMBER(motor_not_ready_r);
- DECLARE_CUSTOM_INPUT_MEMBER(get_rng);
-
-private:
- uint8_t vert_pos_r();
- uint8_t horiz_pos_r();
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_2_w);
- DECLARE_WRITE_LINE_MEMBER(palette_bank_w);
- void scroll_ram_w(offs_t offset, uint8_t data);
- void speed_latch_w(uint8_t data);
- void shot_trigger_w(uint8_t data);
- void shot_flag_clear_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(motor_w);
-
- INTERRUPT_GEN_MEMBER(interrupt);
-
- DECLARE_WRITE_LINE_MEMBER(barrier_lamp_w);
- DECLARE_WRITE_LINE_MEMBER(start_lamp_w);
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(base_lamp_w) { m_base_lamps[N] = state; }
- DECLARE_WRITE_LINE_MEMBER(base_2_lamp_w);
- DECLARE_WRITE_LINE_MEMBER(base_3_lamp_w);
- DECLARE_WRITE_LINE_MEMBER(base_4_lamp_w);
- DECLARE_WRITE_LINE_MEMBER(base_5_lamp_w);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- void stactics_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void update_beam();
- inline int get_pixel_on_plane(uint8_t *videoram, uint8_t y, uint8_t x, uint8_t y_scroll);
- void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
- template <unsigned N> void set_indicator_leds(unsigned offset, output_finder<N> &outputs, int base_index);
- void update_artwork();
- void move_motor();
-
- void stactics_video(machine_config &config);
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_outlatch;
-
- required_shared_ptr<uint8_t> m_display_buffer;
- required_shared_ptr<uint8_t> m_videoram_b;
- required_shared_ptr<uint8_t> m_videoram_d;
- required_shared_ptr<uint8_t> m_videoram_e;
- required_shared_ptr<uint8_t> m_videoram_f;
-
- output_finder<5> m_base_lamps;
- output_finder<0x40> m_beam_leds_left;
- output_finder<0x40> m_beam_leds_right;
- output_finder<6> m_score_digits;
- output_finder<8> m_credit_leds;
- output_finder<12> m_barrier_leds;
- output_finder<16> m_round_leds;
- output_finder<> m_barrier_lamp;
- output_finder<> m_start_lamp;
- output_finder<> m_sight_led;
-
- required_ioport m_in3;
- required_ioport m_fake;
-
- /* machine state */
- int m_vert_pos;
- int m_horiz_pos;
- bool m_motor_on;
-
- /* video state */
- uint8_t m_y_scroll_d;
- uint8_t m_y_scroll_e;
- uint8_t m_y_scroll_f;
- uint8_t m_frame_count;
- uint8_t m_shot_standby;
- uint8_t m_shot_arrive;
- uint16_t m_beam_state;
- uint16_t m_old_beam_state;
- uint16_t m_beam_states_per_frame;
- uint8_t m_palette_bank;
-};
-
-#endif // MAME_INCLUDES_STACTICS_H
diff --git a/src/mame/includes/stadhero.h b/src/mame/includes/stadhero.h
deleted file mode 100644
index 9482860ddf5..00000000000
--- a/src/mame/includes/stadhero.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-
-#include "machine/gen_latch.h"
-#include "video/decbac06.h"
-#include "video/decmxc06.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class stadhero_state : public driver_device
-{
-public:
- stadhero_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_tilegen(*this, "tilegen"),
- m_spritegen(*this, "spritegen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_soundlatch(*this, "soundlatch"),
- m_screen(*this, "screen"),
- m_spriteram(*this, "spriteram"),
- m_pf1_data(*this, "pf1_data"),
- m_coin(*this, "COIN")
- {
- }
-
- void stadhero(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<deco_bac06_device> m_tilegen;
- required_device<deco_mxc06_device> m_spritegen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<screen_device> m_screen;
-
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_pf1_data;
-
- required_ioport m_coin;
-
- tilemap_t *m_pf1_tilemap;
-
- void int_ack_w(uint16_t data);
- void pf1_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t mystery_r();
-
- virtual void video_start() override;
-
- TILE_GET_INFO_MEMBER(get_pf1_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void audio_map(address_map &map);
- void main_map(address_map &map);
-};
diff --git a/src/mame/includes/starcrus.h b/src/mame/includes/starcrus.h
deleted file mode 100644
index c7be0638750..00000000000
--- a/src/mame/includes/starcrus.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Frank Palazzolo, Ryan Holtz
-#ifndef MAME_INCLUDES_STARCRUS_H
-#define MAME_INCLUDES_STARCRUS_H
-
-#pragma once
-
-#include "emupal.h"
-#include "machine/netlist.h"
-#include "netlist/nl_setup.h"
-#include "audio/nl_starcrus.h"
-
-class starcrus_state : public driver_device
-{
-public:
- starcrus_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag) ,
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_led(*this, "led2"),
- m_explode(*this, "sound_nl:explode%u", 1U),
- m_launch(*this, "sound_nl:launch%u", 1U),
- m_engine(*this, "sound_nl:engine%u", 1U)
- { }
-
- void starcrus(machine_config &config);
-
-private:
- void s1_x_w(uint8_t data);
- void s1_y_w(uint8_t data);
- void s2_x_w(uint8_t data);
- void s2_y_w(uint8_t data);
- void p1_x_w(uint8_t data);
- void p1_y_w(uint8_t data);
- void p2_x_w(uint8_t data);
- void p2_y_w(uint8_t data);
- void ship_parm_1_w(uint8_t data);
- void ship_parm_2_w(uint8_t data);
- void proj_parm_1_w(uint8_t data);
- void proj_parm_2_w(uint8_t data);
- uint8_t coll_det_r();
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- output_finder<> m_led;
-
- std::unique_ptr<bitmap_ind16> m_ship1_vid;
- std::unique_ptr<bitmap_ind16> m_ship2_vid;
- std::unique_ptr<bitmap_ind16> m_proj1_vid;
- std::unique_ptr<bitmap_ind16> m_proj2_vid;
-
- int m_s1_x;
- int m_s1_y;
- int m_s2_x;
- int m_s2_y;
- int m_p1_x;
- int m_p1_y;
- int m_p2_x;
- int m_p2_y;
-
- int m_p1_sprite;
- int m_p2_sprite;
- int m_s1_sprite;
- int m_s2_sprite;
-
- int m_collision_reg;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- int collision_check_s1s2();
- int collision_check_p1p2();
- int collision_check_s1p1p2();
- int collision_check_s2p1p2();
-
- void starcrus_io_map(address_map &map);
- void starcrus_map(address_map &map);
-
- required_device_array<netlist_mame_logic_input_device, 2> m_explode;
- required_device_array<netlist_mame_logic_input_device, 2> m_launch;
- required_device_array<netlist_mame_logic_input_device, 2> m_engine;
-};
-
-#endif // MAME_INCLUDES_STARCRUS_H
diff --git a/src/mame/includes/starfire.h b/src/mame/includes/starfire.h
deleted file mode 100644
index c2651b9c162..00000000000
--- a/src/mame/includes/starfire.h
+++ /dev/null
@@ -1,203 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Dan Boris, Olivier Galibert, Aaron Giles
-/***************************************************************************
-
- Star Fire/Fire One system
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_STARFIRE_H
-#define MAME_INCLUDES_STARFIRE_H
-
-#pragma once
-
-#include "machine/netlist.h"
-#include "machine/pit8253.h"
-#include "netlist/nl_setup.h"
-#include "audio/nl_fireone.h"
-#include "audio/nl_starfire.h"
-#include "sound/dac.h"
-#include "screen.h"
-
-
-#define STARFIRE_MASTER_CLOCK (XTAL(20'000'000))
-#define STARFIRE_CPU_CLOCK (STARFIRE_MASTER_CLOCK / 8)
-#define STARFIRE_PIXEL_CLOCK (STARFIRE_MASTER_CLOCK / 4)
-#define STARFIRE_HTOTAL (0x13f) /* could be 0x140, but I think this is right */
-#define STARFIRE_HBEND (0x000)
-#define STARFIRE_HBSTART (0x100)
-#define STARFIRE_VTOTAL (0x106)
-#define STARFIRE_VBEND (0x020)
-#define STARFIRE_VBSTART (0x100)
-#define STARFIRE_NUM_PENS (0x40)
-
-
-class starfire_base_state : public driver_device
-{
-public:
- starfire_base_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_screen(*this, "screen")
- , m_colorram(*this, "colorram")
- , m_videoram(*this, "videoram")
- , m_dsw(*this, "DSW")
- , m_system(*this, "SYSTEM")
- { }
-
-protected:
- virtual void video_start() override;
-
- void base_config(machine_config &config);
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_ioport m_dsw;
- required_ioport m_system;
-
- uint8_t m_vidctrl;
- uint8_t m_vidctrl1;
- uint8_t m_color;
- uint16_t m_colors[STARFIRE_NUM_PENS];
-
- emu_timer* m_scanline_timer;
- bitmap_rgb32 m_screen_bitmap;
-
- virtual uint8_t input_r(offs_t offset) = 0;
- virtual void sound_w(offs_t offset, uint8_t data) = 0;
- virtual void music_w(offs_t offset, uint8_t data) { };
-
- void scratch_w(offs_t offset, uint8_t data);
- uint8_t scratch_r(offs_t offset);
- void colorram_w(offs_t offset, uint8_t data);
- uint8_t colorram_r(offs_t offset);
- void videoram_w(offs_t offset, uint8_t data);
- uint8_t videoram_r(offs_t offset);
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(scanline_callback);
- void get_pens(pen_t *pens);
- void scanline_callback(uint32_t data);
-};
-
-class starfire_state : public starfire_base_state
-{
-public:
- starfire_state(const machine_config &mconfig, device_type type, const char *tag)
- : starfire_base_state(mconfig, type, tag)
- , m_dac(*this, "dac") // just to have a sound device
- , m_nmi(*this, "NMI")
- , m_stickz(*this, "STICKZ")
- , m_stickx(*this, "STICKX")
- , m_sticky(*this, "STICKY")
- , m_sound_size(*this, "sound_nl:size")
- , m_sound_explosion(*this, "sound_nl:sexplo")
- , m_sound_tie(*this, "sound_nl:stie")
- , m_sound_laser(*this, "sound_nl:slaser")
- , m_sound_track(*this, "sound_nl:track")
- , m_sound_lock(*this, "sound_nl:lock")
- , m_sound_scanner(*this, "sound_nl:scanner")
- , m_sound_overheat(*this, "sound_nl:oheat")
- { }
-
- void starfire(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<dac_word_interface> m_dac;
-
- required_ioport m_nmi;
- required_ioport m_stickz;
- required_ioport m_stickx;
- required_ioport m_sticky;
-
- virtual uint8_t input_r(offs_t offset) override;
- virtual void sound_w(offs_t offset, uint8_t data) override;
-
- INTERRUPT_GEN_MEMBER(vblank_int);
-
- NETDEV_ANALOG_CALLBACK_MEMBER(tieon1_cb);
- NETDEV_ANALOG_CALLBACK_MEMBER(laseron1_cb);
- NETDEV_ANALOG_CALLBACK_MEMBER(sound_out_cb);
-
- uint8_t m_sound_tie_on;
- uint8_t m_sound_laser_on;
-
- required_device<netlist_mame_logic_input_device> m_sound_size;
- required_device<netlist_mame_logic_input_device> m_sound_explosion;
- required_device<netlist_mame_logic_input_device> m_sound_tie;
- required_device<netlist_mame_logic_input_device> m_sound_laser;
- required_device<netlist_mame_logic_input_device> m_sound_track;
- required_device<netlist_mame_logic_input_device> m_sound_lock;
- required_device<netlist_mame_logic_input_device> m_sound_scanner;
- required_device<netlist_mame_logic_input_device> m_sound_overheat;
-};
-
-class fireone_state : public starfire_base_state
-{
-public:
- fireone_state(const machine_config &mconfig, device_type type, const char *tag)
- : starfire_base_state(mconfig, type, tag)
- , m_pit(*this, "pit")
- , m_controls(*this, "P%u", 1U)
- , m_sound_left_partial_hit(*this, "sound_nl:lshpht")
- , m_sound_right_partial_hit(*this, "sound_nl:rshpht")
- , m_sound_left_torpedo(*this, "sound_nl:ltorp")
- , m_sound_right_torpedo(*this, "sound_nl:rtorp")
- , m_sound_left_boom(*this, "sound_nl:lboom")
- , m_sound_right_boom(*this, "sound_nl:rboom")
- , m_sound_torpedo_collision(*this, "sound_nl:torpcoll")
- , m_sound_submarine_engine(*this, "sound_nl:subeng")
- , m_sound_alert(*this, "sound_nl:alert")
- , m_sound_sonar_enable(*this, "sound_nl:sonar_enable")
- , m_sound_sonar_sync(*this, "sound_nl:sonar_sync")
- , m_sound_off_left(*this, "sound_nl:lsound_off")
- , m_sound_off_right(*this, "sound_nl:rsound_off")
- , m_music_a(*this, "sound_nl:music_a")
- , m_music_b(*this, "sound_nl:music_b")
- , m_music_c(*this, "sound_nl:music_c")
- { }
-
- void fireone(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<pit8253_device> m_pit;
- required_ioport_array<2> m_controls;
-
- DECLARE_WRITE_LINE_MEMBER(music_a_out_cb);
- DECLARE_WRITE_LINE_MEMBER(music_b_out_cb);
- DECLARE_WRITE_LINE_MEMBER(music_c_out_cb);
-
- virtual uint8_t input_r(offs_t offset) override;
- virtual void sound_w(offs_t offset, uint8_t data) override;
- virtual void music_w(offs_t offset, uint8_t data) override;
-
- uint8_t m_player_select;
-
- INTERRUPT_GEN_MEMBER(vblank_int);
-
- required_device<netlist_mame_logic_input_device> m_sound_left_partial_hit;
- required_device<netlist_mame_logic_input_device> m_sound_right_partial_hit;
- required_device<netlist_mame_logic_input_device> m_sound_left_torpedo;
- required_device<netlist_mame_logic_input_device> m_sound_right_torpedo;
- required_device<netlist_mame_logic_input_device> m_sound_left_boom;
- required_device<netlist_mame_logic_input_device> m_sound_right_boom;
- required_device<netlist_mame_logic_input_device> m_sound_torpedo_collision;
- required_device<netlist_mame_logic_input_device> m_sound_submarine_engine;
- required_device<netlist_mame_logic_input_device> m_sound_alert;
- required_device<netlist_mame_logic_input_device> m_sound_sonar_enable;
- required_device<netlist_mame_logic_input_device> m_sound_sonar_sync;
- required_device<netlist_mame_logic_input_device> m_sound_off_left;
- required_device<netlist_mame_logic_input_device> m_sound_off_right;
- required_device<netlist_mame_logic_input_device> m_music_a;
- required_device<netlist_mame_logic_input_device> m_music_b;
- required_device<netlist_mame_logic_input_device> m_music_c;
-};
-
-#endif // MAME_INCLUDES_STARFIRE_H
diff --git a/src/mame/includes/starshp1.h b/src/mame/includes/starshp1.h
deleted file mode 100644
index 8fca28dd6c5..00000000000
--- a/src/mame/includes/starshp1.h
+++ /dev/null
@@ -1,163 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Frank Palazzolo, Stefan Jokisch
-/*
- * The schematics don't seem to make a lot of sense when it
- * comes to the video timing chain::
- *
- * * there are clear typos -- what is H132???
- * * there are two HBLANK/HSYNC periods as the horizontal
- * chain is drawn, which would give an alternating long
- * line followed by a much shorter one. This cannot be right
- * * the carry-out/load circuit on LS161@J8 is superfluous
- *
- * These values also give a frame rate of about 45Hz, which is
- * probably too low. I suspect that screen is not really
- * 512 pixels wide -- most likely 384, which would give 60Hz
- *
- * Based on photographs of the PCB, and analysis of videos of
- * actual gameplay, the horizontal screen really is 384 clocks.
- *
- * However, some of the graphics, like the starfield, are
- * clocked with the 12MHz signal. This effectively doubles
- * the horizontal resolution:
- *
- * 6.048Mhz clocks 12.096Mhz clocks
- * Horizontal Visible Area 384 (0x180) 768 (0x300)
- * Horizontal Blanking Time 128 (0x080) 256 (0x100)
- */
-#ifndef MAME_INCLUDES_STARSHP1_H
-#define MAME_INCLUDES_STARSHP1_H
-
-#pragma once
-
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-#define STARSHP1_MASTER_CLOCK (12096000)
-#define STARSHP1_CPU_CLOCK (STARSHP1_MASTER_CLOCK / 16)
-#define STARSHP1_PIXEL_CLOCK (STARSHP1_MASTER_CLOCK)
-#define STARSHP1_HTOTAL (0x300)
-#define STARSHP1_HBEND (0x000)
-#define STARSHP1_HBSTART (0x200)
-#define STARSHP1_VTOTAL (0x106)
-#define STARSHP1_VBEND (0x000)
-#define STARSHP1_VBSTART (0x0f0)
-
-
-class starshp1_state : public driver_device
-{
-public:
- starshp1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_playfield_ram(*this, "playfield_ram"),
- m_hpos_ram(*this, "hpos_ram"),
- m_vpos_ram(*this, "vpos_ram"),
- m_obj_ram(*this, "obj_ram"),
- m_maincpu(*this, "maincpu"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_led(*this, "led0")
- { }
-
- void starshp1(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(starshp1_analog_r);
- DECLARE_CUSTOM_INPUT_MEMBER(collision_latch_r);
-
-private:
- virtual void machine_start() override;
- void starshp1_collision_reset_w(uint8_t data);
- void starshp1_analog_in_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(ship_explode_w);
- DECLARE_WRITE_LINE_MEMBER(circle_mod_w);
- DECLARE_WRITE_LINE_MEMBER(circle_kill_w);
- DECLARE_WRITE_LINE_MEMBER(starfield_kill_w);
- DECLARE_WRITE_LINE_MEMBER(inverse_w);
- DECLARE_WRITE_LINE_MEMBER(mux_w);
- DECLARE_WRITE_LINE_MEMBER(led_w);
- uint8_t starshp1_rng_r();
- void starshp1_ssadd_w(offs_t offset, uint8_t data);
- void starshp1_sspic_w(uint8_t data);
- void starshp1_playfield_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(attract_w);
- DECLARE_WRITE_LINE_MEMBER(phasor_w);
- void starshp1_analog_out_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void video_start() override;
- void starshp1_palette(palette_device &palette) const;
- uint32_t screen_update_starshp1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_starshp1);
- INTERRUPT_GEN_MEMBER(starshp1_interrupt);
- void set_pens();
- void draw_starfield(bitmap_ind16 &bitmap);
- int get_sprite_hpos(int i);
- int get_sprite_vpos(int i);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_spaceship(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_phasor(bitmap_ind16 &bitmap);
- int get_radius();
- int get_circle_hpos();
- int get_circle_vpos();
- void draw_circle_line(bitmap_ind16 &bitmap, int x, int y, int l);
- void draw_circle(bitmap_ind16 &bitmap);
- int spaceship_collision(bitmap_ind16 &bitmap, const rectangle &rect);
- int point_in_circle(int x, int y, int center_x, int center_y, int r);
- int circle_collision(const rectangle &rect);
- void starshp1_map(address_map &map);
-
-private:
- int m_analog_in_select;
- int m_attract;
- required_shared_ptr<uint8_t> m_playfield_ram;
- required_shared_ptr<uint8_t> m_hpos_ram;
- required_shared_ptr<uint8_t> m_vpos_ram;
- required_shared_ptr<uint8_t> m_obj_ram;
- int m_ship_explode;
- int m_ship_picture;
- int m_ship_hoffset;
- int m_ship_voffset;
- int m_ship_size;
- int m_circle_hpos;
- int m_circle_vpos;
- int m_circle_size;
- int m_circle_mod;
- int m_circle_kill;
- int m_phasor;
- int m_collision_latch;
- int m_starfield_kill;
- int m_mux;
- int m_inverse;
- std::unique_ptr<uint16_t[]> m_LSFR;
- bitmap_ind16 m_helper;
- tilemap_t *m_bg_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- output_finder<> m_led;
-};
-
-/*----------- defined in audio/starshp1.c -----------*/
-
-DISCRETE_SOUND_EXTERN( starshp1_discrete );
-
-/* Discrete Sound Input Nodes */
-#define STARSHP1_NOISE_AMPLITUDE NODE_01
-#define STARSHP1_TONE_PITCH NODE_02
-#define STARSHP1_MOTOR_SPEED NODE_03
-#define STARSHP1_NOISE_FREQ NODE_04
-#define STARSHP1_MOLVL NODE_05
-#define STARSHP1_SL2 NODE_06
-#define STARSHP1_SL1 NODE_07
-#define STARSHP1_KICKER NODE_08
-#define STARSHP1_PHASOR_ON NODE_09
-#define STARSHP1_ATTRACT NODE_10
-
-#endif // MAME_INCLUDES_STARSHP1_H
diff --git a/src/mame/includes/starwars.h b/src/mame/includes/starwars.h
deleted file mode 100644
index c9e2afb6f62..00000000000
--- a/src/mame/includes/starwars.h
+++ /dev/null
@@ -1,104 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Steve Baines, Frank Palazzolo
-/***************************************************************************
-
- Atari Star Wars hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_STARWARS_H
-#define MAME_INCLUDES_STARWARS_H
-
-#pragma once
-
-#include "machine/6532riot.h"
-#include "machine/gen_latch.h"
-#include "machine/slapstic.h"
-#include "machine/x2212.h"
-#include "sound/pokey.h"
-#include "sound/tms5220.h"
-
-
-class starwars_state : public driver_device
-{
-public:
- starwars_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_soundlatch(*this, "soundlatch"),
- m_mainlatch(*this, "mainlatch"),
- m_riot(*this, "riot"),
- m_mathram(*this, "mathram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_pokey(*this, "pokey%u", 1U),
- m_tms(*this, "tms"),
- m_novram(*this, "x2212"),
- m_slapstic(*this, "slapstic"),
- m_slapstic_bank(*this, "slapstic_bank")
- { }
-
- void starwars(machine_config &config);
- void esb(machine_config &config);
-
- void init_esb();
- void init_starwars();
-
- DECLARE_READ_LINE_MEMBER(matrix_flag_r);
-
-private:
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_mainlatch;
- required_device<riot6532_device> m_riot;
- required_shared_ptr<uint8_t> m_mathram;
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device_array<pokey_device, 4> m_pokey;
- required_device<tms5220_device> m_tms;
- required_device<x2212_device> m_novram;
- optional_device<atari_slapstic_device> m_slapstic;
- optional_memory_bank m_slapstic_bank;
-
- int m_MPA;
- int m_BIC;
- uint16_t m_dvd_shift;
- uint16_t m_quotient_shift;
- uint16_t m_divisor;
- uint16_t m_dividend;
- std::unique_ptr<uint8_t[]> m_PROM_STR;
- std::unique_ptr<uint8_t[]> m_PROM_MAS;
- std::unique_ptr<uint8_t[]> m_PROM_AM;
- int m_math_run;
- emu_timer *m_math_timer;
- int16_t m_A;
- int16_t m_B;
- int16_t m_C;
- int32_t m_ACC;
- void irq_ack_w(uint8_t data);
- void starwars_nstore_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(recall_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
- uint8_t starwars_prng_r();
- DECLARE_WRITE_LINE_MEMBER(prng_reset_w);
- uint8_t starwars_div_reh_r();
- uint8_t starwars_div_rel_r();
- void starwars_math_w(offs_t offset, uint8_t data);
-
- uint8_t starwars_main_ready_flag_r();
- DECLARE_WRITE_LINE_MEMBER(boost_interleave_hack);
- void starwars_soundrst_w(uint8_t data);
- void quad_pokeyn_w(offs_t offset, uint8_t data);
- virtual void machine_reset() override;
- TIMER_CALLBACK_MEMBER(math_run_clear);
- uint8_t r6532_porta_r();
- void r6532_porta_w(uint8_t data);
-
- void starwars_mproc_init();
- void starwars_mproc_reset();
- void run_mproc();
-
- void esb_main_map(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_STARWARS_H
diff --git a/src/mame/includes/stfight.h b/src/mame/includes/stfight.h
deleted file mode 100644
index 8435e099ec6..00000000000
--- a/src/mame/includes/stfight.h
+++ /dev/null
@@ -1,113 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mark McDougall
-#ifndef MAME_INCLUDES_STFIGHT_H
-#define MAME_INCLUDES_STFIGHT_H
-
-#pragma once
-
-#include "cpu/m6805/m68705.h"
-#include "sound/ym2203.h"
-#include "sound/msm5205.h"
-#include "video/stfight_dev.h"
-#include "video/airraid_dev.h"
-
-class stfight_state : public driver_device
-{
-public:
- stfight_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_coin_mech(*this, "COIN")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_mcu(*this, "mcu")
- , m_msm(*this, "msm")
- , m_ym(*this, "ym%u", 0)
- , m_main_bank(*this, "mainbank")
- , m_samples(*this, "adpcm")
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- , m_coin_state(0)
- , m_fm_data(0)
- , m_cpu_to_mcu_empty(true)
- , m_cpu_to_mcu_data(0x0f)
- , m_port_a_out(0xff)
- , m_port_c_out(0xff)
- , m_vck2(false)
- , m_adpcm_reset(true)
- , m_adpcm_data_offs(0x0000)
- {
- }
-
- void stfight_base(machine_config &config);
- void stfight(machine_config &config);
- void cshooter(machine_config &config);
-
- void init_stfight();
-
-protected:
- enum
- {
- TIMER_STFIGHT_INTERRUPT_1
- };
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- DECLARE_WRITE_LINE_MEMBER(stfight_adpcm_int);
-
- void stfight_io_w(uint8_t data);
- uint8_t stfight_coin_r();
- void stfight_coin_w(uint8_t data);
- void stfight_fm_w(uint8_t data);
- void stfight_mcu_w(uint8_t data);
-
- void stfight_bank_w(uint8_t data);
-
- uint8_t stfight_fm_r();
-
- INTERRUPT_GEN_MEMBER(stfight_vb_interrupt);
-
- // MCU specifics
- uint8_t stfight_68705_port_b_r();
- void stfight_68705_port_a_w(uint8_t data);
- void stfight_68705_port_b_w(uint8_t data);
- void stfight_68705_port_c_w(uint8_t data);
-
- void cpu1_map(address_map &map);
- void cpu2_map(address_map &map);
- void cshooter_cpu1_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void stfight_cpu1_map(address_map &map);
-
- required_ioport m_coin_mech;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<m68705p5_device> m_mcu;
- required_device<msm5205_device> m_msm;
- required_device_array<ym2203_device, 2> m_ym;
-
- required_memory_bank m_main_bank;
-
- required_region_ptr<uint8_t> m_samples;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- uint8_t m_coin_state;
-
- uint8_t m_fm_data;
-
- bool m_cpu_to_mcu_empty;
- uint8_t m_cpu_to_mcu_data;
- uint8_t m_port_a_out;
- uint8_t m_port_c_out;
-
- bool m_vck2;
- bool m_adpcm_reset;
- uint16_t m_adpcm_data_offs;
-
- emu_timer *m_int1_timer;
-};
-
-#endif // MAME_INCLUDES_STFIGHT_H
diff --git a/src/mame/includes/stlforce.h b/src/mame/includes/stlforce.h
deleted file mode 100644
index 155f65c62df..00000000000
--- a/src/mame/includes/stlforce.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-
-#include "video/edevices.h"
-#include "machine/eepromser.h"
-#include "emupal.h"
-#include "cpu/m68000/m68000.h"
-#include "sound/okim6295.h"
-#include "screen.h"
-#include "speaker.h"
-
-class stlforce_state : public driver_device
-{
-public:
- stlforce_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom"),
- m_video(*this, "edevices_vid"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_okibank(*this, "okibank")
- { }
-
- void stlforce(machine_config &config);
- void twinbrat(machine_config &config);
-
- void init_twinbrat();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<edevices_device> m_video;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- optional_memory_bank m_okibank;
-
- void eeprom_w(uint8_t data);
- void oki_bank_w(uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void stlforce_map(address_map &map);
- void twinbrat_oki_map(address_map &map);
-};
diff --git a/src/mame/includes/stv.h b/src/mame/includes/stv.h
deleted file mode 100644
index 48ccc7fe5f4..00000000000
--- a/src/mame/includes/stv.h
+++ /dev/null
@@ -1,190 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:David Haywood, Angelo Salese, Olivier Galibert, Mariusz Wojcieszek, R. Belmont
-#ifndef MAME_INCLUDES_STV_H
-#define MAME_INCLUDES_STV_H
-
-#pragma once
-
-#include "includes/saturn.h"
-#include "audio/rax.h"
-#include "machine/eepromser.h"
-#include "machine/ticket.h"
-#include "machine/segabill.h"
-
-class stv_state : public saturn_state
-{
-public:
- stv_state(const machine_config &mconfig, device_type type, const char *tag)
- : saturn_state(mconfig, type, tag),
- m_cart1(*this, "stv_slot1"),
- m_cart2(*this, "stv_slot2"),
- m_cart3(*this, "stv_slot3"),
- m_cart4(*this, "stv_slot4"),
- m_rax(*this, "rax"),
- m_protbank(*this, "protbank"),
- m_eeprom(*this, "eeprom"),
- m_cryptdevice(*this, "315_5881"),
- m_5838crypt(*this, "315_5838"),
- m_hopper(*this, "hopper"),
- m_billboard(*this, "billboard")
- {
- }
-
- void stv_slot(machine_config &config);
- void stv_cartslot(machine_config &config);
- void stv(machine_config &config);
- void critcrsh(machine_config &config);
- void magzun(machine_config &config);
- void stvmp(machine_config &config);
- void hopper(machine_config &config);
- void batmanfr(machine_config &config);
- void shienryu(machine_config &config);
- void stv_5838(machine_config &config);
- void stv_5881(machine_config &config);
- void stvcd(machine_config &config);
-
- void init_astrass();
- void init_batmanfr();
- void init_finlarch();
- void init_decathlt();
- void init_decathlt_nokey();
- void init_sanjeon();
- void init_puyosun();
- void init_winterht();
- void init_gaxeduel();
- void init_rsgun();
- void init_groovef();
- void init_sandor();
- void init_cottonbm();
- void init_smleague();
- void init_nameclv3();
- void init_danchiq();
- void init_hanagumi();
- void init_cotton2();
- void init_seabass();
- void init_stv();
- void init_thunt();
- void init_sasissu();
- void init_dnmtdeka();
- void init_ffreveng();
- void init_fhboxers();
- void init_pblbeach();
- void init_sss();
- void init_diehard();
- void init_danchih();
- void init_shienryu();
- void init_elandore();
- void init_prikura();
- void init_maruchan();
- void init_colmns97();
- void init_grdforce();
- void init_suikoenb();
- void init_magzun();
- void init_shanhigw();
- void init_sokyugrt();
- void init_vfremix();
- void init_twcup98();
- void init_znpwfv();
- void init_othellos();
- void init_mausuke();
-
-private:
- uint8_t stv_ioga_r(offs_t offset);
- void stv_ioga_w(offs_t offset, uint8_t data);
- uint8_t critcrsh_ioga_r(offs_t offset);
- uint8_t magzun_ioga_r(offs_t offset);
- void magzun_ioga_w(offs_t offset, uint8_t data);
- uint8_t stvmp_ioga_r(offs_t offset);
- void stvmp_ioga_w(offs_t offset, uint8_t data);
- uint32_t magzun_hef_hack_r();
- uint32_t magzun_rx_hack_r();
- void hop_ioga_w(offs_t offset, uint8_t data);
-
- image_init_result load_cart(device_image_interface &image, generic_slot_device *slot);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( stv_cart1 ) { return load_cart(image, m_cart1); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( stv_cart2 ) { return load_cart(image, m_cart2); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( stv_cart3 ) { return load_cart(image, m_cart3); }
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( stv_cart4 ) { return load_cart(image, m_cart4); }
- optional_device<generic_slot_device> m_cart1;
- optional_device<generic_slot_device> m_cart2;
- optional_device<generic_slot_device> m_cart3;
- optional_device<generic_slot_device> m_cart4;
-
- void install_stvbios_speedups( void );
-
- DECLARE_MACHINE_START(stv);
- DECLARE_MACHINE_RESET(stv);
-
- DECLARE_MACHINE_RESET(batmanfr);
- void batmanfr_sound_comms_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- optional_device<acclaim_rax_device> m_rax;
-
- uint8_t m_port_sel,m_mux_data;
- uint8_t m_system_output;
- uint8_t m_ioga_mode;
- uint8_t m_ioga_portg;
- uint16_t m_serial_tx;
-
- // protection specific variables and functions (see machine/stvprot.cpp)
- uint32_t m_abus_protenable;
- uint32_t m_abus_protkey;
-
- uint32_t decathlt_prot_r(offs_t offset, uint32_t mem_mask = ~0);
- void sega5838_map(address_map &map);
- optional_memory_bank m_protbank;
- bool m_newprotection_element; // debug helper only, doesn't need saving
- int m_protbankval; // debug helper only, doesn't need saving
- void decathlt_prot_srcaddr_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t m_a_bus[4];
-
- uint32_t common_prot_r(offs_t offset);
- void common_prot_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- void install_common_protection();
- void stv_register_protection_savestates();
-
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<sega_315_5881_crypt_device> m_cryptdevice;
- optional_device<sega_315_5838_comp_device> m_5838crypt;
- optional_device<ticket_dispenser_device> m_hopper;
- required_device<sega_billboard_device> m_billboard;
- uint16_t crypt_read_callback(uint32_t addr);
-
- uint8_t pdr1_input_r();
- uint8_t pdr2_input_r();
- void pdr1_output_w(uint8_t data);
- void pdr2_output_w(uint8_t data);
- void stv_select_game(int gameno);
- uint8_t m_prev_gamebank_select;
-
- void sound_mem(address_map &map);
- void scsp_mem(address_map &map);
- void stv_mem(address_map &map);
- void critcrsh_mem(address_map &map);
- void magzun_mem(address_map &map);
- void stvmp_mem(address_map &map);
- void hopper_mem(address_map &map);
- void stvcd_mem(address_map &map);
-};
-
-class stvpc_state : public stv_state
-{
-public:
- using stv_state::stv_state;
- static constexpr feature_type unemulated_features() { return feature::CAMERA | feature::PRINTER; }
-};
-
-//#define MASTER_CLOCK_352 57272720
-//#define MASTER_CLOCK_320 53693174
-#define CEF_1 m_vdp1_regs[0x010/2]|=0x0002
-#define CEF_0 m_vdp1_regs[0x010/2]&=~0x0002
-#define BEF_1 m_vdp1_regs[0x010/2]|=0x0001
-#define BEF_0 m_vdp1_regs[0x010/2]&=~0x0001
-#define STV_VDP1_TVMR ((m_vdp1_regs[0x000/2])&0xffff)
-#define STV_VDP1_VBE ((STV_VDP1_TVMR & 0x0008) >> 3)
-#define STV_VDP1_TVM ((STV_VDP1_TVMR & 0x0007) >> 0)
-
-extern gfx_decode_entry const gfx_stv[];
-
-#endif // MAME_INCLUDES_STV_H
diff --git a/src/mame/includes/sub.h b/src/mame/includes/sub.h
deleted file mode 100644
index 2d06e88b5a7..00000000000
--- a/src/mame/includes/sub.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese, David Haywood
-/*************************************************************************************
-
-Submarine (c) 1985 Sigma
-
-*************************************************************************************/
-#ifndef MAME_INCLUDES_SUB_H
-#define MAME_INCLUDES_SUB_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/74259.h"
-#include "machine/gen_latch.h"
-#include "machine/watchdog.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-#include "screen.h"
-#include "speaker.h"
-#include "tilemap.h"
-
-#define MASTER_CLOCK XTAL(18'432'000)
-
-class sub_state : public driver_device
-{
-public:
- sub_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_vram(*this, "vram"),
- m_attr(*this, "attr"),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2"),
- m_scrolly(*this, "scrolly")
- { }
-
- void sub(machine_config &config);
-
-private:
- bool m_int_en;
- bool m_nmi_en;
-
- DECLARE_WRITE_LINE_MEMBER(int_mask_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- void nmi_mask_w(uint8_t data);
-
- void sub_palette(palette_device &palette) const;
- TILE_GET_INFO_MEMBER(get_tile_info);
- void attr_w(offs_t offset, uint8_t data);
- void vram_w(offs_t offset, uint8_t data);
- void scrolly_w(offs_t offset, uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(main_irq);
- INTERRUPT_GEN_MEMBER(sound_irq);
- void subm_io(address_map &map);
- void subm_map(address_map &map);
- void subm_sound_io(address_map &map);
- void subm_sound_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- tilemap_t *m_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_vram;
- required_shared_ptr<uint8_t> m_attr;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_spriteram2;
- required_shared_ptr<uint8_t> m_scrolly;
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-#endif // MAME_INCLUDES_SUB_H
diff --git a/src/mame/includes/subs.h b/src/mame/includes/subs.h
deleted file mode 100644
index bd75b51f136..00000000000
--- a/src/mame/includes/subs.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-/*************************************************************************
-
- Atari Subs hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SUBS_H
-#define MAME_INCLUDES_SUBS_H
-
-#pragma once
-
-#include "sound/discrete.h"
-#include "emupal.h"
-
-/* Discrete Sound Input Nodes */
-#define SUBS_SONAR1_EN NODE_01
-#define SUBS_SONAR2_EN NODE_02
-#define SUBS_LAUNCH_DATA NODE_03
-#define SUBS_CRASH_DATA NODE_04
-#define SUBS_CRASH_EN NODE_05
-#define SUBS_EXPLODE_EN NODE_06
-#define SUBS_NOISE_RESET NODE_07
-
-
-class subs_state : public driver_device
-{
-public:
- subs_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_discrete(*this, "discrete"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram")
- { }
-
- void subs(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<discrete_device> m_discrete;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
-
- int m_steering_buf1;
- int m_steering_buf2;
- int m_steering_val1;
- int m_steering_val2;
- int m_last_val_1;
- int m_last_val_2;
-
- void steer_reset_w(uint8_t data);
- uint8_t control_r(offs_t offset);
- uint8_t coin_r(offs_t offset);
- uint8_t options_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(invert1_w);
- DECLARE_WRITE_LINE_MEMBER(invert2_w);
- void noise_reset_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void subs_palette(palette_device &palette) const;
-
- uint32_t screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(interrupt);
-
- int steering_1();
- int steering_2();
-
- void main_map(address_map &map);
-};
-
-/*----------- defined in audio/subs.c -----------*/
-
-DISCRETE_SOUND_EXTERN( subs_discrete );
-
-#endif // MAME_INCLUDES_SUBS_H
diff --git a/src/mame/includes/suna16.h b/src/mame/includes/suna16.h
deleted file mode 100644
index 24a9e871b02..00000000000
--- a/src/mame/includes/suna16.h
+++ /dev/null
@@ -1,108 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-class suna16_state : public driver_device
-{
-public:
- suna16_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this,"maincpu")
- , m_pcm1(*this,"pcm1")
- , m_pcm2(*this,"pcm2")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_spriteram(*this, "spriteram")
- , m_spriteram2(*this, "spriteram2")
- , m_bank1(*this, "bank1")
- , m_bank2(*this, "bank2")
- , m_leds(*this, "led%u", 0U)
- { }
-
- void uballoon(machine_config &config);
- void sunaq(machine_config &config);
- void bssoccer(machine_config &config);
- void bestbest(machine_config &config);
-
- void init_uballoon();
-
-private:
- // common
- void soundlatch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t paletteram_r(offs_t offset);
- void paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void flipscreen_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- // bestbest specific
- void bestbest_flipscreen_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bestbest_coin_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t bestbest_prot_r();
- void bestbest_prot_w(uint8_t data);
- void bestbest_ay8910_port_a_w(uint8_t data);
-
- // bssoccer specific
- void bssoccer_leds_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bssoccer_pcm_1_bankswitch_w(uint8_t data);
- void bssoccer_pcm_2_bankswitch_w(uint8_t data);
-
- // uballoon specific
- void uballoon_leds_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void uballoon_pcm_1_bankswitch_w(uint8_t data);
- uint8_t uballoon_prot_r(offs_t offset);
- void uballoon_prot_w(offs_t offset, uint8_t data);
-
- TIMER_DEVICE_CALLBACK_MEMBER(bssoccer_interrupt);
-
- virtual void video_start() override;
- DECLARE_MACHINE_START(bestbest);
- DECLARE_MACHINE_START(bssoccer);
- DECLARE_MACHINE_START(uballoon);
- DECLARE_MACHINE_RESET(uballoon);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_bestbest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint16_t *sprites, int gfx);
-
- void bestbest_map(address_map &map);
- void bestbest_pcm_1_iomap(address_map &map);
- void bestbest_pcm_1_map(address_map &map);
- void bestbest_sound_map(address_map &map);
- void bssoccer_map(address_map &map);
- void bssoccer_pcm_1_io_map(address_map &map);
- void bssoccer_pcm_1_map(address_map &map);
- void bssoccer_pcm_2_io_map(address_map &map);
- void bssoccer_pcm_2_map(address_map &map);
- void bssoccer_sound_map(address_map &map);
- void sunaq_map(address_map &map);
- void sunaq_sound_map(address_map &map);
- void uballoon_map(address_map &map);
- void uballoon_pcm_1_io_map(address_map &map);
- void uballoon_pcm_1_map(address_map &map);
- void uballoon_sound_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_pcm1;
- optional_device<cpu_device> m_pcm2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_spriteram;
- optional_shared_ptr<uint16_t> m_spriteram2;
-
- optional_memory_bank m_bank1;
- optional_memory_bank m_bank2;
-
- output_finder<4> m_leds;
-
- std::unique_ptr<uint16_t[]> m_paletteram;
- int m_color_bank;
- uint8_t m_prot;
-};
diff --git a/src/mame/includes/suna8.h b/src/mame/includes/suna8.h
deleted file mode 100644
index 7020dbad3a0..00000000000
--- a/src/mame/includes/suna8.h
+++ /dev/null
@@ -1,223 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_SUNA8_H
-#define MAME_INCLUDES_SUNA8_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#define TILEMAPS 0
-
-class suna8_state : public driver_device
-{
-public:
- suna8_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_hardhead_ip(*this, "hardhead_ip"),
- m_banked_spriteram(*this, "banked_spriteram", 0x8000, ENDIANNESS_LITTLE),
- m_spriteram(*this, "spriteram"),
- m_wram(*this, "wram"),
- m_banked_paletteram(*this, "paletteram", 0x400, ENDIANNESS_LITTLE),
- m_hardhea2_banked_protram(*this, "hardhea2_protram", 0x4000, ENDIANNESS_LITTLE),
- m_audiocpu(*this, "audiocpu"),
- m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_mainbank(*this, "mainbank"),
- m_decrypted_opcodes_low(*this, "decrypted_opcodes_low"),
- m_decrypted_opcodes_high(*this, "decrypted_opcodes_high"),
- m_hardhea2_rambank(*this, "hardhea2_rambank"),
- m_inputs(*this, {"P1", "P2", "DSW1", "DSW2"}),
- m_cheats(*this, "CHEATS"),
- m_leds(*this, "led%u", 0U),
- m_prot_opcode_toggle(0),
- m_remap_sound(0)
- { }
-
- void brickzn(machine_config &config);
- void starfigh(machine_config &config);
- void sparkman(machine_config &config);
- void hardhea2b(machine_config &config);
- void brickzn11(machine_config &config);
- void hardhead(machine_config &config);
- void hardhea2(machine_config &config);
- void rranger(machine_config &config);
-
- void init_brickzn_common();
- void init_brickznv5();
- void init_brickznv4();
- void init_starfigh();
- void init_hardhea2();
- void init_hardhea2b();
- void init_hardhedb();
- void init_sparkman();
- void init_brickzn();
- void init_brickzn11();
- void init_hardhead();
- void init_suna8();
-
-protected:
- virtual void machine_start() override;
-
-private:
- enum GFXBANK_TYPE_T
- {
- GFXBANK_TYPE_SPARKMAN,
- GFXBANK_TYPE_BRICKZN,
- GFXBANK_TYPE_STARFIGH
- } m_gfxbank_type;
-
- uint8_t hardhead_protection_r(offs_t offset);
- void hardhead_protection_w(offs_t offset, uint8_t data);
- uint8_t hardhead_ip_r();
- void hardhead_bankswitch_w(uint8_t data);
- void hardhead_flipscreen_w(uint8_t data);
- void rranger_bankswitch_w(uint8_t data);
- uint8_t rranger_soundstatus_r();
- void sranger_prot_w(uint8_t data);
-
- // brickzn
- uint8_t brickzn_cheats_r();
- void brickzn_leds_w(uint8_t data);
- void brickzn_palbank_w(uint8_t data);
- void brickzn_sprbank_w(uint8_t data);
- void brickzn_rombank_w(uint8_t data);
- void brickzn_banked_paletteram_w(offs_t offset, uint8_t data);
- // brickzn (newer sets)
- void brickzn_prot2_w(uint8_t data);
- void brickzn_multi_w(uint8_t data);
- void brickzn_enab_palram_w(uint8_t data);
- void brickzn_disab_palram_w(uint8_t data);
-
- // hardhea2
- void hardhea2_nmi_w(uint8_t data);
- void hardhea2_flipscreen_w(uint8_t data);
- void hardhea2_leds_w(uint8_t data);
- void hardhea2_spritebank_w(uint8_t data);
- void hardhea2_rombank_w(uint8_t data);
- template <uint8_t Which> void hardhea2_prot_spritebank_w(uint8_t data);
- template <uint8_t Which> void hardhea2_prot_rambank_w(uint8_t data);
-
- // starfigh
- void starfigh_rombank_latch_w(offs_t offset, uint8_t data);
- void starfigh_spritebank_latch_w(uint8_t data);
- void starfigh_sound_latch_w(uint8_t data);
- void starfigh_spritebank_w(uint8_t data);
- void starfigh_leds_w(uint8_t data);
-
- // sparkman
- void sparkman_rombank_latch_w(offs_t offset, uint8_t data);
- void sparkman_rombank_w(uint8_t data);
- void sparkman_spritebank_latch_w(uint8_t data);
- void sparkman_spritebank_w(uint8_t data);
- void sparkman_write_disable_w(uint8_t data);
- void wram_w(offs_t offset, uint8_t data);
- void sparkman_coin_counter_w(uint8_t data);
- uint8_t sparkman_c0a3_r();
-
- uint8_t banked_paletteram_r(offs_t offset);
- uint8_t banked_spriteram_r(offs_t offset);
- void banked_spriteram_w(offs_t offset, uint8_t data);
-
- void vh_start_common(bool has_text, GFXBANK_TYPE_T gfxbank_type);
- DECLARE_VIDEO_START(text);
- DECLARE_VIDEO_START(sparkman);
- DECLARE_VIDEO_START(brickzn);
- DECLARE_VIDEO_START(starfigh);
-
- DECLARE_MACHINE_RESET(brickzn);
- DECLARE_MACHINE_RESET(hardhea2);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(hardhea2_interrupt);
-
- // samples
- void play_samples_w(uint8_t data);
- void rranger_play_samples_w(uint8_t data);
- void samples_number_w(uint8_t data);
- void play_sample(int index);
- SAMPLES_START_CB_MEMBER(sh_start);
-
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int start, int end, int which);
- void draw_text_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int start, int end, int ypos, bool write_mask);
- void brickzn_decrypt();
-
- void brickzn11_map(address_map &map);
- void brickzn_io_map(address_map &map);
- void brickzn_map(address_map &map);
- void brickzn_pcm_io_map(address_map &map);
- void brickzn_pcm_map(address_map &map);
- void brickzn_sound_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void hardhea2_map(address_map &map);
- void hardhea2b_map(address_map &map);
- void hardhea2b_decrypted_opcodes_map(address_map &map);
- void hardhead_io_map(address_map &map);
- void hardhead_map(address_map &map);
- void hardhead_sound_io_map(address_map &map);
- void hardhead_sound_map(address_map &map);
- void rranger_io_map(address_map &map);
- void rranger_map(address_map &map);
- void rranger_sound_map(address_map &map);
- void sparkman_map(address_map &map);
- void starfigh_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- optional_shared_ptr<uint8_t> m_hardhead_ip;
- memory_share_creator<uint8_t> m_banked_spriteram;
- optional_shared_ptr<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_wram;
- memory_share_creator<uint8_t> m_banked_paletteram;
- memory_share_creator<uint8_t> m_hardhea2_banked_protram;
- required_device<cpu_device> m_audiocpu;
- optional_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
- required_memory_bank m_mainbank;
- optional_memory_bank m_decrypted_opcodes_low;
- optional_memory_bank m_decrypted_opcodes_high;
- optional_memory_bank m_hardhea2_rambank;
- optional_ioport_array<4> m_inputs;
- optional_ioport m_cheats;
- output_finder<2> m_leds;
-
- std::unique_ptr<uint8_t[]> m_decrypt;
-
- uint8_t m_rombank; // all
- uint8_t m_rombank_latch; // sparkman and starfigh
- uint8_t m_spritebank; // all
- uint8_t m_palettebank; // all brickzn sets
- uint8_t m_paletteram_enab; // only brickzn newer sets (no 1.1)
- uint8_t m_prot2; // only brickzn newer sets (no 1.1)
- uint8_t m_prot2_prev; // only brickzn newer sets (no 1.1)
-
- uint8_t m_protection_val; // hardhead and brickzn newer sets (no 1.1)
- uint8_t m_nmi_enable; // hardhea2, sparkman and starfigh
- uint8_t m_spritebank_latch; // sparkman and starfigh
- uint8_t m_write_disable; // only sparkman
- uint8_t m_prot_opcode_toggle; // only brickzn newer sets (no 1.1)
- uint8_t m_remap_sound; // only brickzn newer sets (no 1.1)
-
- uint8_t m_gfxbank; // only starfigh
-
- bool m_has_text; // has text sprites (older games)
-
- // samples
- std::unique_ptr<int16_t[]> m_samplebuf;
- uint8_t m_sample, m_play;
- int m_numsamples;
-};
-
-#endif // MAME_INCLUDES_SUNA8_H
diff --git a/src/mame/includes/supbtime.h b/src/mame/includes/supbtime.h
deleted file mode 100644
index 03c9297ce13..00000000000
--- a/src/mame/includes/supbtime.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// license: BSD-3-Clause
-// copyright-holders: Bryan McPhail, David Haywood, Dirk Best
-/***************************************************************************
-
- Super Burger Time
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_SUPBTIME_H
-#define MAME_INCLUDES_SUPBTIME_H
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/h6280/h6280.h"
-#include "machine/decocrpt.h"
-#include "machine/gen_latch.h"
-#include "video/decospr.h"
-#include "video/deco16ic.h"
-#include "sound/okim6295.h"
-#include "sound/ym2151.h"
-#include "screen.h"
-#include "speaker.h"
-
-class supbtime_state : public driver_device
-{
-public:
- supbtime_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_spriteram(*this, "spriteram")
- , m_pf_rowscroll(*this, "pf%u_rowscroll", 1U)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_deco_tilegen(*this, "tilegen")
- , m_sprgen(*this, "spritegen")
- { }
-
- void chinatwn(machine_config &config);
- void supbtime(machine_config &config);
- void tumblep(machine_config &config);
-
- void init_tumblep();
-
-private:
- DECLARE_WRITE_LINE_MEMBER(vblank_w);
- uint16_t vblank_ack_r();
- uint32_t screen_update_common(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, bool use_offsets);
- uint32_t screen_update_chinatwn(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_supbtime(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tumblep(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void chinatwn_map(address_map &map);
- void sound_map(address_map &map);
- void supbtime_map(address_map &map);
- void tumblep_map(address_map &map);
-
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr_array<uint16_t, 2> m_pf_rowscroll;
- required_device<cpu_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device<deco16ic_device> m_deco_tilegen;
- required_device<decospr_device> m_sprgen;
-};
-
-
-#endif
diff --git a/src/mame/includes/super6.h b/src/mame/includes/super6.h
deleted file mode 100644
index fb2189b93dd..00000000000
--- a/src/mame/includes/super6.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_SUPER6_H
-#define MAME_INCLUDES_SUPER6_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "imagedev/floppy.h"
-#include "machine/z80daisy.h"
-#include "machine/com8116.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80ctc.h"
-#include "machine/z80dma.h"
-#include "machine/z80pio.h"
-#include "machine/z80sio.h"
-
-#define Z80_TAG "u30"
-#define Z80CTC_TAG "u20"
-#define Z80DART_TAG "u38"
-#define Z80DMA_TAG "u21"
-#define Z80PIO_TAG "u7"
-#define WD2793_TAG "u27"
-#define BR1945_TAG "u31"
-#define SCREEN_TAG "screen"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-
-class super6_state : public driver_device
-{
-public:
- super6_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, Z80_TAG)
- , m_ctc(*this, Z80CTC_TAG)
- , m_dart(*this, Z80DART_TAG)
- , m_dma(*this, Z80DMA_TAG)
- , m_pio(*this, Z80PIO_TAG)
- , m_fdc(*this, WD2793_TAG)
- , m_brg(*this, BR1945_TAG)
- , m_ram(*this, RAM_TAG)
- , m_floppy0(*this, WD2793_TAG":0")
- , m_floppy1(*this, WD2793_TAG":1")
- , m_rom(*this, Z80_TAG)
- , m_j7(*this, "J7")
- { }
-
- void super6(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- uint8_t fdc_r();
- void fdc_w(uint8_t data);
- void s100_w(uint8_t data);
- void bank0_w(uint8_t data);
- void bank1_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( fdc_intrq_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
- uint8_t memory_read_byte(offs_t offset);
- void memory_write_byte(offs_t offset, uint8_t data);
- uint8_t io_read_byte(offs_t offset);
- void io_write_byte(offs_t offset, uint8_t data);
-
- void super6_io(address_map &map);
- void super6_mem(address_map &map);
-
- void bankswitch();
-
- required_device<z80_device> m_maincpu;
- required_device<z80ctc_device> m_ctc;
- required_device<z80dart_device> m_dart;
- required_device<z80dma_device> m_dma;
- required_device<z80pio_device> m_pio;
- required_device<wd2793_device> m_fdc;
- required_device<com8116_device> m_brg;
- required_device<ram_device> m_ram;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_region_ptr<uint8_t> m_rom;
- required_ioport m_j7;
-
- // memory state
- uint8_t m_s100;
- uint8_t m_bank0;
- uint8_t m_bank1;
-};
-
-#endif // MAME_INCLUDES_SUPER6_H
diff --git a/src/mame/includes/super80.h b/src/mame/includes/super80.h
deleted file mode 100644
index c16fd12dcd9..00000000000
--- a/src/mame/includes/super80.h
+++ /dev/null
@@ -1,185 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Robbbert
-#ifndef MAME_INCLUDES_SUPER80_H
-#define MAME_INCLUDES_SUPER80_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-#include "cpu/z80/z80.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "imagedev/snapquik.h"
-#include "machine/buffer.h"
-#include "machine/timer.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80daisy.h"
-#include "machine/z80dma.h"
-#include "machine/z80pio.h"
-#include "sound/samples.h"
-#include "sound/spkrdev.h"
-#include "video/mc6845.h"
-#include "emupal.h"
-#include "screen.h"
-
-/* Bits in m_portf0 variable:
- d5 cassette LED
- d4 super80v rom or pcg bankswitch (1=pcg ram, 0=char gen rom)
- d2 super80v video or colour bankswitch (1=video ram, 0=colour ram)
- d2 super80 screen off (=2mhz) or on (bursts of 2mhz at 50hz = 1mhz) */
-
-class super80_state : public driver_device
-{
-public:
- super80_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_palette(*this, "palette")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_maincpu(*this, "maincpu")
- , m_rom(*this, "maincpu")
- , m_ram(*this, "mainram")
- , m_p_chargen(*this, "chargen")
- , m_pio(*this, "z80pio")
- , m_cassette(*this, "cassette")
- , m_samples(*this, "samples")
- , m_speaker(*this, "speaker")
- , m_centronics(*this, "centronics")
- , m_cent_data_out(*this, "cent_data_out")
- , m_io_dsw(*this, "DSW")
- , m_io_config(*this, "CONFIG")
- , m_io_keyboard(*this, "KEY.%u", 0)
- , m_cass_led(*this, "cass_led")
- { }
-
- void super80m(machine_config &config);
- void super80(machine_config &config);
- void super80e(machine_config &config);
- void super80d(machine_config &config);
-
-protected:
- void machine_reset_common();
- void machine_start_common();
- void cassette_motor(bool data);
- void screen_vblank_super80m(bool state);
- void portf0_w(u8 data);
- void portdc_w(u8 data);
- void pio_port_a_w(u8 data);
- u8 pio_port_b_r();
- u8 portf2_r();
- u8 m_portf0;
- u8 m_s_options;
- u8 m_palette_index;
- u8 m_keylatch;
- u8 m_cass_data[4];
- u8 m_key_pressed;
- u8 m_last_data;
- bool m_boot_in_progress;
- void super80m_palette(palette_device &palette) const;
- TIMER_DEVICE_CALLBACK_MEMBER(timer_k);
- TIMER_DEVICE_CALLBACK_MEMBER(kansas_r);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
- required_device<palette_device> m_palette;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<z80_device> m_maincpu;
- required_region_ptr<u8> m_rom;
- memory_passthrough_handler *m_rom_shadow_tap;
- required_shared_ptr<u8> m_ram;
- required_region_ptr<u8> m_p_chargen;
- required_device<z80pio_device> m_pio;
- required_device<cassette_image_device> m_cassette;
- required_device<samples_device> m_samples;
- required_device<speaker_sound_device> m_speaker;
- required_device<centronics_device> m_centronics;
- required_device<output_latch_device> m_cent_data_out;
- required_ioport m_io_dsw;
- required_ioport m_io_config;
- required_ioport_array<8> m_io_keyboard;
- output_finder<> m_cass_led;
-
-private:
-
- void machine_reset() override;
- void machine_start() override;
- void portf1_w(u8 data);
- TIMER_DEVICE_CALLBACK_MEMBER(timer_h);
- uint32_t screen_update_super80(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_super80d(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_super80e(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_super80m(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void super80_io(address_map &map);
- void super80_map(address_map &map);
- void super80e_io(address_map &map);
- void super80m_map(address_map &map);
-
- u8 m_int_sw;
- u16 m_vidpg;
- bool m_current_charset;
-};
-
-
-class super80v_state : public super80_state
-{
-public:
- super80v_state(const machine_config &mconfig, device_type type, const char *tag)
- : super80_state(mconfig, type, tag)
- , m_crtc(*this, "crtc")
- , m_dma(*this, "dma")
- , m_fdc (*this, "fdc")
- , m_floppy0(*this, "fdc:0")
- , m_floppy1(*this, "fdc:1")
- , m_floppy2(*this, "fdc:2")
- , m_floppy3(*this, "fdc:3")
- { }
-
- void super80v(machine_config &config);
-
-protected:
- void super80v_map(address_map &map);
- void super80v_io(address_map &map);
- void machine_reset() override;
- void machine_start() override;
- void port3f_w(u8 data);
- u8 port3e_r();
- std::unique_ptr<u8[]> m_vram;
- DECLARE_WRITE_LINE_MEMBER(busreq_w);
- uint8_t memory_read_byte(offs_t offset);
- void memory_write_byte(offs_t offset, uint8_t data);
- uint8_t io_read_byte(offs_t offset);
- void io_write_byte(offs_t offset, uint8_t data);
- MC6845_UPDATE_ROW(crtc_update_row);
- uint32_t screen_update_super80v(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- required_device<mc6845_device> m_crtc;
- required_device<z80dma_device> m_dma;
- required_device<wd2793_device> m_fdc;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<floppy_connector> m_floppy2;
- required_device<floppy_connector> m_floppy3;
-
-private:
- void low_w(offs_t offset, u8 data);
- void high_w(offs_t offset, u8 data);
- u8 low_r(offs_t offset);
- u8 high_r(offs_t offset);
-};
-
-class super80r_state : public super80v_state
-{
-public:
- using super80v_state::super80v_state;
-
- void super80r(machine_config &config);
-
-private:
- void super80r_map(address_map &map);
- void low_w(offs_t offset, u8 data);
- void high_w(offs_t offset, u8 data);
- u8 low_r(offs_t offset);
- u8 high_r(offs_t offset);
-};
-
-
-#endif // MAME_INCLUDES_SUPER80_H
diff --git a/src/mame/includes/superchs.h b/src/mame/includes/superchs.h
deleted file mode 100644
index d6387b9fd77..00000000000
--- a/src/mame/includes/superchs.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, David Graves
-#ifndef MAME_INCLUDES_SUPERCHS_H
-#define MAME_INCLUDES_SUPERCHS_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "video/tc0480scp.h"
-#include "emupal.h"
-
-class superchs_state : public driver_device
-{
-public:
- superchs_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_ram(*this,"ram"),
- m_spriteram(*this,"spriteram"),
- m_shared_ram(*this,"shared_ram"),
- m_spritemap(*this,"spritemap"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_tc0480scp(*this, "tc0480scp"),
- m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_volume(*this, "SOUND")
- { }
-
- void superchs(machine_config &config);
- void chase3(machine_config &config);
- void init_superchs();
-
-protected:
- virtual void video_start() override;
-
-private:
- struct schs_tempsprite
- {
- u8 gfx;
- u32 code,color;
- bool flipx,flipy;
- int x,y;
- int zoomx,zoomy;
- u32 primask;
- };
-
- required_shared_ptr<u32> m_ram;
- required_shared_ptr<u32> m_spriteram;
- required_shared_ptr<u16> m_shared_ram;
- required_region_ptr<u16> m_spritemap;
-
- std::unique_ptr<schs_tempsprite[]> m_spritelist;
-
- u16 shared_ram_r(offs_t offset);
- void shared_ram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void cpua_ctrl_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void coin_word_w(u8 data);
- u8 volume_r();
- u32 main_cycle_r();
- u16 sub_cycle_r();
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, const u32 *primasks, int x_offs, int y_offs);
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<tc0480scp_device> m_tc0480scp;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_ioport m_volume;
- void chase3_cpub_map(address_map &map);
- void superchs_cpub_map(address_map &map);
- void superchs_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SUPERCHS_H
diff --git a/src/mame/includes/superqix.h b/src/mame/includes/superqix.h
deleted file mode 100644
index 5f1fd0cfc79..00000000000
--- a/src/mame/includes/superqix.h
+++ /dev/null
@@ -1,215 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni, Nicola Salmoria, Tomasz Slanina
-#ifndef MAME_INCLUDES_SUPERQIX_H
-#define MAME_INCLUDES_SUPERQIX_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/m6805/m68705.h"
-#include "sound/ay8910.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class superqix_state_base : public driver_device
-{
-public:
- superqix_state_base(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this,"maincpu")
- , m_mcu(*this, "mcu")
- , m_spriteram(*this, "spriteram")
- , m_videoram(*this, "videoram")
- , m_bitmapram(*this, "bitmapram")
- , m_bitmapram2(*this, "bitmapram2")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_ay1(*this, "ay1")
- { }
-
- void init_perestro();
- void init_sqix();
- void init_sqixr0();
- void init_pbillian();
- void init_hotsmash();
-
- TILE_GET_INFO_MEMBER(sqix_get_bg_tile_info);
-
-protected:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_mcu;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_bitmapram;
- optional_shared_ptr<uint8_t> m_bitmapram2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<ay8910_device> m_ay1;
-
- // commmon 68705/8751/HLE
- uint8_t m_from_mcu; // byte latch for 68705/8751->z80 comms
- uint8_t m_from_z80; // byte latch for z80->68705/8751 comms
- bool m_z80_has_written; // z80 has written to latch flag
- bool m_mcu_has_written; // 68705/8751 has written to latch flag
-
- //general machine stuff
- bool m_invert_coin_lockout;
- bool m_invert_p2_spinner;
- int m_gfxbank;
- bool m_show_bitmap;
- bool m_nmi_mask;
-
- std::unique_ptr<bitmap_ind16> m_fg_bitmap[2];
- tilemap_t *m_bg_tilemap;
-
- uint8_t nmi_ack_r();
- void superqix_videoram_w(offs_t offset, uint8_t data);
- void superqix_bitmapram_w(offs_t offset, uint8_t data);
- void superqix_bitmapram2_w(offs_t offset, uint8_t data);
- void superqix_0410_w(uint8_t data);
-
- DECLARE_VIDEO_START(superqix);
- static rgb_t BBGGRRII(uint32_t raw);
- uint32_t screen_update_superqix(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void superqix_draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- void main_map(address_map &map);
-
- virtual void machine_init_common();
-};
-
-
-class superqix_state : public superqix_state_base
-{
-public:
- superqix_state(const machine_config &mconfig, device_type type, const char *tag)
- : superqix_state_base(mconfig, type, tag)
- , m_ay2(*this, "ay2")
- {
- }
-
- void sqix(machine_config &config);
- void sqix_8031(machine_config &config);
- void sqix_nomcu(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(fromz80_semaphore_input_r);
- DECLARE_READ_LINE_MEMBER(frommcu_semaphore_input_r);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<ay8910_device> m_ay2;
-
- // 8031 and/or 8751 MCU related
- uint8_t m_bl_port1;
- uint8_t m_bl_fake_port2;
- uint8_t m_port2_raw;
- uint8_t m_bl_port3_out;
-
- uint8_t z80_semaphore_assert_r();
- void bootleg_mcu_port1_w(uint8_t data);
- void mcu_port2_w(uint8_t data);
- void mcu_port3_w(u8 data);
- uint8_t mcu_port3_r();
- uint8_t bootleg_mcu_port3_r();
- void bootleg_mcu_port3_w(uint8_t data);
- void z80_ay1_sync_address_w(uint8_t data);
- uint8_t z80_ay2_iob_r();
- void z80_ay2_iob_w(uint8_t data);
- void bootleg_flipscreen_w(uint8_t data);
- uint8_t bootleg_in0_r();
- INTERRUPT_GEN_MEMBER(sqix_timer_irq);
- DECLARE_MACHINE_RESET(superqix);
-
- void sqix_port_map(address_map &map);
- void sqix_8031_map(address_map &map);
-
- virtual void machine_init_common() override;
-
- TIMER_CALLBACK_MEMBER(z80_semaphore_assert_cb);
- TIMER_CALLBACK_MEMBER(mcu_port2_w_cb);
- TIMER_CALLBACK_MEMBER(mcu_port3_w_cb);
- TIMER_CALLBACK_MEMBER(z80_ay1_sync_address_w_cb);
- TIMER_CALLBACK_MEMBER(z80_ay2_iob_w_cb);
- TIMER_CALLBACK_MEMBER(bootleg_mcu_port1_w_cb);
-};
-
-
-class hotsmash_state : public superqix_state_base
-{
-public:
- hotsmash_state(const machine_config &mconfig, device_type type, const char *tag)
- : superqix_state_base(mconfig, type, tag)
- , m_dsw(*this, "DSW%u", 1)
- , m_dials(*this, "DIAL%u", 1)
- , m_plungers(*this, "PLUNGER%u", 1)
- , m_launchbtns(*this, "LAUNCH%u", 1)
- , m_samples(*this, "samples")
- , m_samples_region(*this, "samples")
- , m_samplebuf()
- , m_portb_out(0xff)
- , m_portc_out(0xff)
- , m_dial_oldpos{ 0, 0 }
- , m_dial_sign{ 0, 0 }
- {
- }
-
- void pbillian(machine_config &config);
- void pbillianb(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(pbillian_semaphore_input_r);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- u8 hotsmash_68705_porta_r();
- void hotsmash_68705_portb_w(u8 data);
- void hotsmash_68705_portc_w(u8 data);
- void hotsmash_z80_mcu_w(u8 data);
- u8 hotsmash_z80_mcu_r();
-
- void pbillian_sample_trigger_w(u8 data);
- void pbillian_0410_w(u8 data);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- SAMPLES_START_CB_MEMBER(pbillian_sh_start);
-
- TILE_GET_INFO_MEMBER(pb_get_bg_tile_info);
-
- u32 screen_update_pbillian(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void pbillian_port_map(address_map &map);
- void pbillianb_port_map(address_map &map);
-
- virtual void machine_init_common() override;
-
- int read_inputs(int player);
-
- void pbillian_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_ioport_array<2> m_dsw;
- optional_ioport_array<2> m_dials;
- optional_ioport_array<2> m_plungers;
- optional_ioport_array<2> m_launchbtns;
- optional_device<samples_device> m_samples;
- optional_region_ptr<u8> m_samples_region;
-
- std::unique_ptr<s16[]> m_samplebuf;
-
- // 68705 related
- u8 m_porta_in;
- u8 m_portb_out;
- u8 m_portc_out;
-
- // spinner quadrature stuff
- int m_dial_oldpos[2];
- int m_dial_sign[2];
-};
-
-#endif // MAME_INCLUDES_SUPERQIX_H
diff --git a/src/mame/includes/suprloco.h b/src/mame/includes/suprloco.h
deleted file mode 100644
index fc8950bc980..00000000000
--- a/src/mame/includes/suprloco.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-#ifndef MAME_INCLUDES_SUPRLOCO_H
-#define MAME_INCLUDES_SUPRLOCO_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class suprloco_state : public driver_device
-{
-public:
- suprloco_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram"),
- m_scrollram(*this, "scrollram"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void suprloco(machine_config &config);
-
- void init_suprloco();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_scrollram;
- required_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- tilemap_t *m_bg_tilemap;
- int m_control;
-
- void videoram_w(offs_t offset, uint8_t data);
- void scrollram_w(offs_t offset, uint8_t data);
- void control_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- virtual void video_start() override;
- void suprloco_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline void draw_pixel(bitmap_ind16 &bitmap,const rectangle &cliprect,int x,int y,int color,int flip);
- void draw_sprite(bitmap_ind16 &bitmap,const rectangle &cliprect,int spr_number);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void decrypted_opcodes_map(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SUPRLOCO_H
diff --git a/src/mame/includes/suprnova.h b/src/mame/includes/suprnova.h
deleted file mode 100644
index d98282d946f..00000000000
--- a/src/mame/includes/suprnova.h
+++ /dev/null
@@ -1,195 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Sylvain Glaize, Paul Priest, Olivier Galibert
-#ifndef MAME_INCLUDES_SUPRNOVA_H
-#define MAME_INCLUDES_SUPRNOVA_H
-
-#pragma once
-
-#include "video/sknsspr.h"
-
-#include "cpu/sh/sh2.h"
-#include "machine/timer.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-class skns_state : public driver_device
-{
-public:
- skns_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_spritegen(*this, "spritegen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_spriteram(*this,"spriteram"),
- m_spc_regs(*this, "spc_regs"),
- m_v3_regs(*this, "v3_regs"),
- m_tilemapA_ram(*this, "tilemapa_ram"),
- m_tilemapB_ram(*this, "tilemapb_ram"),
- m_v3slc_ram(*this, "v3slc_ram"),
- m_pal_regs(*this, "pal_regs"),
- m_palette_ram(*this, "palette_ram"),
- m_v3t_ram(*this, "v3t_ram"),
- m_main_ram(*this, "main_ram"),
- m_cache_ram(*this, "cache_ram"),
- m_paddle(*this, "Paddle.%c", 'A')
- { }
-
- void sknsk(machine_config &config);
- void sknsu(machine_config &config);
- void sknsa(machine_config &config);
- void sknsj(machine_config &config);
- void sknse(machine_config &config);
- void skns(machine_config &config);
-
- void init_sengekis();
- void init_cyvern();
- void init_puzzloopa();
- void init_teljan();
- void init_panicstr();
- void init_puzzloope();
- void init_sengekij();
- void init_puzzloopj();
- void init_sarukani();
- void init_gutsn();
- void init_jjparad2();
- void init_galpans3();
- void init_jjparads();
- void init_galpans2();
- void init_galpanis();
- void init_puzzloopu();
- void init_senknow();
- void init_galpani4();
- void init_ryouran();
-
- template <int P> DECLARE_CUSTOM_INPUT_MEMBER(paddle_r);
-
-private:
- struct hit_t
- {
- uint16_t x1p, y1p, z1p, x1s, y1s, z1s;
- uint16_t x2p, y2p, z2p, x2s, y2s, z2s;
- uint16_t org;
-
- uint16_t x1_p1, x1_p2, y1_p1, y1_p2, z1_p1, z1_p2;
- uint16_t x2_p1, x2_p2, y2_p1, y2_p2, z2_p1, z2_p2;
- uint16_t x1tox2, y1toy2, z1toz2;
- int16_t x_in, y_in, z_in;
- uint16_t flag;
-
- uint8_t disconnect;
- };
-
- required_device<sh2_device> m_maincpu;
- required_device<sknsspr_device> m_spritegen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- required_shared_ptr<uint32_t> m_spriteram;
- required_shared_ptr<uint32_t> m_spc_regs;
- required_shared_ptr<uint32_t> m_v3_regs;
- required_shared_ptr<uint32_t> m_tilemapA_ram;
- required_shared_ptr<uint32_t> m_tilemapB_ram;
- required_shared_ptr<uint32_t> m_v3slc_ram;
- required_shared_ptr<uint32_t> m_pal_regs;
- required_shared_ptr<uint32_t> m_palette_ram;
- required_shared_ptr<uint32_t> m_v3t_ram;
- required_shared_ptr<uint32_t> m_main_ram;
- required_shared_ptr<uint32_t> m_cache_ram;
-
- optional_ioport_array<4> m_paddle;
-
- hit_t m_hit;
- bitmap_ind16 m_sprite_bitmap;
- bitmap_ind16 m_tilemap_bitmap_lower;
- bitmap_ind8 m_tilemap_bitmapflags_lower;
- bitmap_ind16 m_tilemap_bitmap_higher;
- bitmap_ind8 m_tilemap_bitmapflags_higher;
- int m_depthA;
- int m_depthB;
- int m_use_spc_bright;
- int m_use_v3_bright;
- uint8_t m_bright_spc_b;
- uint8_t m_bright_spc_g;
- uint8_t m_bright_spc_r;
- uint8_t m_bright_spc_b_trans;
- uint8_t m_bright_spc_g_trans;
- uint8_t m_bright_spc_r_trans;
- uint8_t m_bright_v3_b;
- uint8_t m_bright_v3_g;
- uint8_t m_bright_v3_r;
- uint8_t m_bright_v3_b_trans;
- uint8_t m_bright_v3_g_trans;
- uint8_t m_bright_v3_r_trans;
- int m_spc_changed;
- int m_v3_changed;
- int m_palette_updated;
- int m_alt_enable_background;
- int m_alt_enable_sprites;
- tilemap_t *m_tilemap_A;
- tilemap_t *m_tilemap_B;
- uint8_t *m_btiles;
- uint8_t m_region;
-
- void hit_w(offs_t offset, uint32_t data);
- void hit2_w(uint32_t data);
- uint32_t hit_r(offs_t offset);
- void io_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void v3t_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void pal_regs_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void palette_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void tilemapA_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void tilemapB_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void v3_regs_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- uint32_t gutsn_speedup_r();
- uint32_t cyvern_speedup_r();
- uint32_t puzzloopj_speedup_r();
- uint32_t puzzloopa_speedup_r();
- uint32_t puzzloopu_speedup_r();
- uint32_t puzzloope_speedup_r();
- uint32_t senknow_speedup_r();
- uint32_t teljan_speedup_r();
- uint32_t jjparads_speedup_r();
- uint32_t jjparad2_speedup_r();
- uint32_t ryouran_speedup_r();
- uint32_t galpans2_speedup_r();
- uint32_t panicstr_speedup_r();
- uint32_t sengekis_speedup_r();
- uint32_t sengekij_speedup_r();
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void video_reset() override;
- DECLARE_MACHINE_RESET(sknsa);
- DECLARE_MACHINE_RESET(sknsj);
- DECLARE_MACHINE_RESET(sknsu);
- DECLARE_MACHINE_RESET(sknse);
- DECLARE_MACHINE_RESET(sknsk);
-
- TILE_GET_INFO_MEMBER(get_tilemap_A_tile_info);
- TILE_GET_INFO_MEMBER(get_tilemap_B_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(irq);
- void draw_roz(bitmap_ind16 &bitmap, bitmap_ind8& bitmapflags, const rectangle &cliprect, tilemap_t *tmap, uint32_t startx, uint32_t starty, int incxx, int incxy, int incyx, int incyy, int wraparound, int columnscroll, uint32_t* scrollram);
- void palette_set_rgb_brightness (int offset, uint8_t brightness_r, uint8_t brightness_g, uint8_t brightness_b);
- void palette_update();
- void draw_a( bitmap_ind16 &bitmap, bitmap_ind8 &bitmap_flags, const rectangle &cliprect, int tran );
- void draw_b( bitmap_ind16 &bitmap, bitmap_ind8 &bitmap_flags, const rectangle &cliprect, int tran );
- void hit_recalc();
- void init_drc();
- void set_drc_pcflush(uint32_t addr);
-
- void skns_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SUPRNOVA_H
diff --git a/src/mame/includes/suprridr.h b/src/mame/includes/suprridr.h
deleted file mode 100644
index 0b8855f433d..00000000000
--- a/src/mame/includes/suprridr.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Venture Line Super Rider driver
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_SUPRRIDR_H
-#define MAME_INCLUDES_SUPRRIDR_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class suprridr_state : public driver_device
-{
-public:
- suprridr_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_fgram(*this, "fgram"),
- m_bgram(*this, "bgram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void suprridr(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(control_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_fgram;
- required_shared_ptr<uint8_t> m_bgram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- uint8_t m_nmi_enable;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_bg_tilemap_noscroll;
- uint8_t m_flipx;
- uint8_t m_flipy;
-
- void nmi_enable_w(uint8_t data);
- void coin_lock_w(uint8_t data);
- void flipx_w(uint8_t data);
- void flipy_w(uint8_t data);
- void fgdisable_w(uint8_t data);
- void fgscrolly_w(uint8_t data);
- void bgscrolly_w(uint8_t data);
- void bgram_w(offs_t offset, uint8_t data);
- void fgram_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
- TILE_GET_INFO_MEMBER(get_tile_info2);
-
- INTERRUPT_GEN_MEMBER(main_nmi_gen);
-
- void suprridr_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- int is_screen_flipped();
-
- void main_map(address_map &map);
- void main_portmap(address_map &map);
- void sound_map(address_map &map);
- void sound_portmap(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SUPRRIDR_H
diff --git a/src/mame/includes/suprslam.h b/src/mame/includes/suprslam.h
deleted file mode 100644
index c030b169daf..00000000000
--- a/src/mame/includes/suprslam.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-/*************************************************************************
-
- Super Slams
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SUPRSLAM_H
-#define MAME_INCLUDES_SUPRSLAM_H
-
-#pragma once
-
-#include "video/vsystem_spr.h"
-#include "machine/gen_latch.h"
-#include "video/k053936.h"
-#include "tilemap.h"
-
-class suprslam_state : public driver_device
-{
-public:
- suprslam_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_screen_videoram(*this, "screen_videoram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_sp_videoram(*this, "sp_videoram"),
- m_spriteram(*this, "spriteram"),
- m_screen_vregs(*this, "screen_vregs"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k053936(*this, "k053936"),
- m_spr(*this, "vsystem_spr"),
- m_palette(*this, "palette"),
- m_gfxdecode(*this, "gfxdecode"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void suprslam(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_screen_videoram;
- required_shared_ptr<uint16_t> m_bg_videoram;
- required_shared_ptr<uint16_t> m_sp_videoram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_screen_vregs;
-
- /* video-related */
- tilemap_t *m_screen_tilemap;
- tilemap_t *m_bg_tilemap;
- uint16_t m_screen_bank;
- uint16_t m_bg_bank;
- uint32_t suprslam_tile_callback( uint32_t code );
- uint8_t m_spr_ctrl;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k053936_device> m_k053936;
- required_device<vsystem_spr_device> m_spr;
- required_device<palette_device> m_palette;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<generic_latch_8_device> m_soundlatch;
-
- void suprslam_sh_bankswitch_w(uint8_t data);
- void suprslam_screen_videoram_w(offs_t offset, uint16_t data);
- void suprslam_bg_videoram_w(offs_t offset, uint16_t data);
- void suprslam_bank_w(uint16_t data);
- void spr_ctrl_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_suprslam_tile_info);
- TILE_GET_INFO_MEMBER(get_suprslam_bg_tile_info);
- uint32_t screen_update_suprslam(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
- void suprslam_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SUPRSLAM_H
diff --git a/src/mame/includes/surpratk.h b/src/mame/includes/surpratk.h
deleted file mode 100644
index c654193f770..00000000000
--- a/src/mame/includes/surpratk.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Surprise Attack
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_SURPRATK_H
-#define MAME_INCLUDES_SURPRATK_H
-
-#pragma once
-
-#include "cpu/m6809/konami.h" /* for the callback and the firq irq definition */
-#include "machine/bankdev.h"
-#include "video/k052109.h"
-#include "video/k053244_k053245.h"
-#include "video/k053251.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-
-class surpratk_state : public driver_device
-{
-public:
- surpratk_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_bank0000(*this, "bank0000"),
- m_k052109(*this, "k052109"),
- m_k053244(*this, "k053244"),
- m_k053251(*this, "k053251"),
- m_palette(*this, "palette")
- { }
-
- void surpratk(machine_config &config);
-
-private:
- /* video-related */
- int m_layer_colorbase[3];
- int m_sprite_colorbase;
- int m_layerpri[3];
-
- /* devices */
- required_device<konami_cpu_device> m_maincpu;
- required_device<address_map_bank_device> m_bank0000;
- required_device<k052109_device> m_k052109;
- required_device<k05324x_device> m_k053244;
- required_device<k053251_device> m_k053251;
- required_device<palette_device> m_palette;
-
- void surpratk_videobank_w(uint8_t data);
- void surpratk_5fc0_w(uint8_t data);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_surpratk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- K05324X_CB_MEMBER(sprite_callback);
- K052109_CB_MEMBER(tile_callback);
- void banking_callback(uint8_t data);
- void bank0000_map(address_map &map);
- void surpratk_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SURPRATK_H
diff --git a/src/mame/includes/svision.h b/src/mame/includes/svision.h
deleted file mode 100644
index 74f0e2c5e30..00000000000
--- a/src/mame/includes/svision.h
+++ /dev/null
@@ -1,128 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/svision.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_SVISION_H
-#define MAME_INCLUDES_SVISION_H
-
-#pragma once
-
-#include "cpu/m6502/m65c02.h"
-#include "machine/timer.h"
-#include "audio/svis_snd.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "emupal.h"
-
-struct tvlink_t
-{
- uint32_t palette[4/*0x40?*/]; /* rgb8 */
- int palette_on;
-};
-
-class svision_state : public driver_device
-{
-public:
- svision_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_sound(*this, "custom")
- , m_cart(*this, "cartslot")
- , m_reg(*this, "reg")
- , m_videoram(*this, "videoram")
- , m_screen(*this, "screen")
- , m_joy(*this, "JOY")
- , m_joy2(*this, "JOY2")
- , m_palette(*this, "palette")
- , m_bank1(*this, "bank1")
- , m_bank2(*this, "bank2")
- { }
-
- void svisionp(machine_config &config);
- void svisions(machine_config &config);
- void tvlinkp(machine_config &config);
- void svision(machine_config &config);
- void svisionn(machine_config &config);
- void svision_base(machine_config &config);
-
- void init_svisions();
- void init_svision();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- struct svision_t
- {
- emu_timer *timer1;
- int timer_shot;
- };
-
- struct svision_pet_t
- {
- int state;
- int on, clock, data;
- uint8_t input;
- emu_timer *timer;
- };
-
- DECLARE_WRITE_LINE_MEMBER(sound_irq_w);
- uint8_t svision_r(offs_t offset);
- void svision_w(offs_t offset, uint8_t data);
- uint8_t tvlink_r(offs_t offset);
- void tvlink_w(offs_t offset, uint8_t data);
-
- uint32_t screen_update_svision(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tvlink(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(frame_int_w);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load);
-
- void svision_palette(palette_device &palette) const;
- void svisionp_palette(palette_device &palette) const;
- void svisionn_palette(palette_device &palette) const;
- DECLARE_MACHINE_RESET(tvlink);
-
- enum
- {
- XSIZE = 0x00,
- XPOS = 0x02,
- YPOS = 0x03,
- BANK = 0x26,
- };
-
- void check_irq();
-
- TIMER_CALLBACK_MEMBER(svision_pet_timer);
- TIMER_CALLBACK_MEMBER(svision_timer);
- TIMER_DEVICE_CALLBACK_MEMBER(svision_pet_timer_dev);
-
- void svision_mem(address_map &map);
- void tvlink_mem(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<svision_sound_device> m_sound;
- required_device<generic_slot_device> m_cart;
- required_shared_ptr<uint8_t> m_reg;
- required_shared_ptr<uint8_t> m_videoram;
- required_device<screen_device> m_screen;
- required_ioport m_joy;
- optional_ioport m_joy2;
- required_device<palette_device> m_palette;
-
- required_memory_bank m_bank1;
- required_memory_bank m_bank2;
-
- memory_region *m_cart_rom;
-
- svision_t m_svision;
- svision_pet_t m_pet;
- tvlink_t m_tvlink;
- bool m_dma_finished;
-};
-
-#endif // MAME_INCLUDES_SVISION_H
diff --git a/src/mame/includes/swtpc09.h b/src/mame/includes/swtpc09.h
deleted file mode 100644
index 8860bd42c0e..00000000000
--- a/src/mame/includes/swtpc09.h
+++ /dev/null
@@ -1,241 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Robert Justice,68bit
-/***************************************************************************
- swtpc09 include file
- Robert Justice ,2009-2014
-
-****************************************************************************/
-
-#ifndef MAME_INCLUDES_SWTPC09_H
-#define MAME_INCLUDES_SWTPC09_H
-
-#pragma once
-
-#include "cpu/m6809/m6809.h"
-#include "machine/wd_fdc.h"
-#include "imagedev/floppy.h"
-#include "machine/6840ptm.h"
-#include "machine/6821pia.h"
-#include "machine/6522via.h"
-#include "machine/input_merger.h"
-#include "imagedev/harddriv.h"
-#include "machine/wd1000.h"
-#include "machine/bankdev.h"
-#include "machine/mc14411.h"
-
-
-class swtpc09_state : public driver_device
-{
-public:
- swtpc09_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_brg(*this, "brg")
- , m_pia(*this, "pia")
- , m_ptm(*this, "ptm")
- , m_fdc(*this, "fdc")
- , m_floppy0(*this, "fdc:0")
- , m_floppy1(*this, "fdc:1")
- , m_floppy2(*this, "fdc:2")
- , m_floppy3(*this, "fdc:3")
- , m_hdc(*this, "hdc")
- , m_via(*this, "via")
- , m_via_cb2(*this, "via_cb2")
- , m_dat(*this, "dat")
- , m_bankdev(*this, "bankdev")
- , m_maincpu_clock(*this, "MAINCPU_CLOCK")
- , m_fdc_clock(*this, "FDC_CLOCK")
- , m_baud_rate_high(*this, "BAUD_RATE_HIGH")
- , m_floppy_expected_density(*this, "FLOPPY_EXPECTED_DENSITY")
- , m_floppy_expected_sectors(*this, "FLOPPY_EXPECTED_SECTORS")
- , m_floppy_track_zero_expected_sectors(*this, "FLOPPY_TRACK_ZERO_EXPECTED_SECTORS")
- , m_sbug_double_density(*this, "SBUG_DOUBLE_DENSITY")
- , m_piaide_flex_boot_cd00(*this, "PIAIDE_FLEX_BOOT_CD00")
- { }
-
- void swtpc09_base(machine_config &config);
- void swtpc09i(machine_config &config);
- void swtpc09d3(machine_config &config);
- void swtpc09u(machine_config &config);
- void swtpc09(machine_config &config);
- void swtpc09o(machine_config &config);
-
- void init_swtpc09();
- void init_swtpc09i();
- void init_swtpc09u();
- void init_swtpc09d3();
- void init_swtpc09o();
-
- DECLARE_INPUT_CHANGED_MEMBER(maincpu_clock_change);
- DECLARE_INPUT_CHANGED_MEMBER(fdc_clock_change);
- DECLARE_INPUT_CHANGED_MEMBER(baud_rate_high_change);
-
-private:
- static void floppy_flex_formats(format_registration &fr);
- static void floppy_uniflex_formats(format_registration &fr);
-
- uint8_t pia0_a_r();
- uint8_t pia0_ca1_r();
- DECLARE_WRITE_LINE_MEMBER( pia0_irq_a );
-
- DECLARE_WRITE_LINE_MEMBER(io_irq_w);
-
- DECLARE_WRITE_LINE_MEMBER( ptm_o1_callback );
- DECLARE_WRITE_LINE_MEMBER( ptm_o3_callback );
- DECLARE_WRITE_LINE_MEMBER( ptm_irq );
-
- DECLARE_WRITE_LINE_MEMBER( fdc_intrq_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_sso_w );
-
- uint8_t dmaf3_via_read_porta();
- uint8_t dmaf3_via_read_portb();
- void dmaf3_via_write_porta(uint8_t data);
- void dmaf3_via_write_portb(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( dmaf3_via_irq );
-
- TIMER_CALLBACK_MEMBER(floppy_motor_callback);
-
- uint8_t dmaf2_fdc_r(offs_t offset);
- void dmaf2_fdc_w(offs_t offset, uint8_t data);
- uint8_t dmaf2_dma_address_reg_r();
- void dmaf2_dma_address_reg_w(uint8_t data);
- uint8_t dmaf2_control_reg_r();
- void dmaf2_control_reg_w(uint8_t data);
-
- uint8_t dmaf3_fdc_r(offs_t offset);
- void dmaf3_fdc_w(offs_t offset, uint8_t data);
- uint8_t dmaf3_dma_address_reg_r();
- void dmaf3_dma_address_reg_w(uint8_t data);
- uint8_t dmaf3_control_reg_r();
- void dmaf3_control_reg_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(dmaf3_hdc_intrq_w);
- DECLARE_WRITE_LINE_MEMBER( dmaf3_hdc_drq_w );
- uint8_t dmaf3_hdc_control_r();
- void dmaf3_hdc_control_w(uint8_t data);
- uint8_t dmaf3_hdc_reset_r();
- void dmaf3_hdc_reset_w(uint8_t data);
- uint8_t dmaf3_archive_reset_r();
- void dmaf3_archive_reset_w(uint8_t data);
- uint8_t dmaf3_archive_clear_r();
- void dmaf3_archive_clear_w(uint8_t data);
-
- uint8_t main_r(offs_t offset);
- void main_w(offs_t offset, uint8_t data);
-
- uint8_t m6844_r(offs_t offset);
- void m6844_w(offs_t offset, uint8_t data);
-
- uint8_t unmapped_r(offs_t offset);
- void unmapped_w(offs_t offset, uint8_t data);
-
- void flex_dc5_piaide_mem(address_map &map);
- void flex_dmaf2_mem(address_map &map);
- void mp09_mem(address_map &map);
- void uniflex_dmaf2_mem(address_map &map);
- void uniflex_dmaf3_mem(address_map &map);
- void os9_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void swtpc09_irq_handler(uint8_t peripheral, uint8_t state);
-
- void floppy_motor_trigger();
-
- void validate_floppy_side(uint8_t cmd);
- uint8_t validate_fdc_sector_size(uint8_t cmd);
- uint8_t validate_fdc_dden(uint8_t dden);
-
- offs_t dat_translate(offs_t offset) const;
-
- required_device<mc6809_device> m_maincpu;
- required_device<mc14411_device> m_brg;
- required_device<pia6821_device> m_pia;
- required_device<ptm6840_device> m_ptm;
-
- optional_device<fd1797_device> m_fdc;
- optional_device<floppy_connector> m_floppy0;
- optional_device<floppy_connector> m_floppy1;
- optional_device<floppy_connector> m_floppy2;
- optional_device<floppy_connector> m_floppy3;
-
- optional_device<wd1000_device> m_hdc;
-
- optional_device<via6522_device> m_via;
- optional_device<input_merger_device> m_via_cb2;
- required_shared_ptr<uint8_t> m_dat;
- required_device<address_map_bank_device> m_bankdev;
- required_ioport m_maincpu_clock;
- required_ioport m_fdc_clock;
- required_ioport m_baud_rate_high;
- required_ioport m_floppy_expected_density;
- required_ioport m_floppy_expected_sectors;
- required_ioport m_floppy_track_zero_expected_sectors;
- required_ioport m_sbug_double_density;
- required_ioport m_piaide_flex_boot_cd00;
-
- uint8_t m_pia_counter; // this is the counter on pia porta
-
- uint8_t m_dmaf_high_address[4]; // dmaf2 or dmaf3 dma extended address reg
- uint8_t m_dmaf2_interrupt_enable;
-
- uint8_t m_system_type; // flag to indicate hw and rom combination
- uint8_t m_fdc_status; // for floppy controller
- int m_floppy_motor_on;
- emu_timer *m_floppy_motor_timer;
- floppy_image_device *m_fdc_floppy; // Current selected floppy.
- uint8_t m_fdc_side; // Current floppy side.
- uint8_t m_fdc_dden; // Current dden state.
- uint8_t m_dmaf3_via_porta;
- uint8_t m_dmaf3_via_portb;
- uint8_t m_active_interrupt;
- uint8_t m_interrupt;
-
- address_space *m_banked_space;
-
- // TODO: move this in proper device
-
- /* channel_data structure holds info about each 6844 DMA channel */
- struct m6844_channel_data
- {
- int active;
- int address;
- int counter;
- // Channel control register.
- // bit 0: Read / Write mode
- // bit 1: Mode control B
- // bit 2: Mode control A
- // bit 3: Address up (0) / down (1).
- // bit 4: Not used
- // bit 5: Not used
- // bit 6: Busy / Ready. Read only. Set when request
- // made. Cleared when transfer completed.
- // bit 7: DMA end flag. Read only? Set when transfer
- // completed. Cleared when control register
- // read. Sets IRQ.
- // Mode control A,B: 0,0 Mode2; 0,1 Mode 3; 1,0 Mode 0;
- // 1,1 Undefined.
- uint8_t control;
- int start_address;
- int start_counter;
- };
-
- /* 6844 description */
- m6844_channel_data m_m6844_channel[4];
- uint8_t m_m6844_priority;
- // Interrupt control register.
- // Bit 0-3: channel interrupt enable, 1 enabled, 0 masked.
- // Bit 4-6: unused
- // Bit 7: Read only. Set to 1 when IRQ asserted. Clear when the
- // control register associated with the channel that caused the
- // interrut is read.
- uint8_t m_m6844_interrupt;
- uint8_t m_m6844_chain;
- void m6844_update_interrupt();
- void m6844_fdc_dma_transfer(uint8_t channel);
- void m6844_hdc_dma_transfer(uint8_t channel);
-};
-
-#endif // MAME_INCLUDES_SWTPC09_H
diff --git a/src/mame/includes/system1.h b/src/mame/includes/system1.h
deleted file mode 100644
index 6227f3bd851..00000000000
--- a/src/mame/includes/system1.h
+++ /dev/null
@@ -1,247 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Jarek Parchanski, Nicola Salmoria, Mirko Buffoni
-#ifndef MAME_INCLUDES_SYSTEM1_H
-#define MAME_INCLUDES_SYSTEM1_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/z80/z80.h"
-#include "machine/z80pio.h"
-#include "machine/gen_latch.h"
-#include "machine/i8255.h"
-#include "machine/segacrp2_device.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class system1_state : public driver_device
-{
-public:
- system1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(nullptr),
- m_videomode_custom(nullptr),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_ppi8255(*this, "ppi8255"),
- m_pio(*this, "pio"),
- m_ram(*this, "ram"),
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "paletteram"),
- m_decrypted_opcodes(*this, "decrypted_opcodes"),
- m_maincpu_region(*this, "maincpu"),
- m_spriterom(*this, "sprites"),
- m_lookup_prom(*this, "lookup_proms"),
- m_color_prom(*this, "color_proms"),
- m_bank1(*this, "bank1"),
- m_bank0d(*this, "bank0d"),
- m_bank1d(*this, "bank1d"),
- m_banked_decrypted_opcodes(nullptr)
- { }
-
- void sys1ppix_315_5051(machine_config &config);
- void sys1ppisx_315_5064(machine_config &config);
- void sys2_317_0007(machine_config &config);
- void sys1piox_315_5110(machine_config &config);
- void sys1piox_315_5065(machine_config &config);
- void sys2m(machine_config &config);
- void sys1ppix_315_5178(machine_config &config);
- void sys1ppix_315_5179(machine_config &config);
- void sys1piox_315_5093(machine_config &config);
- void sys2_315_5176(machine_config &config);
- void sys2(machine_config &config);
- void sys2_315_5177(machine_config &config);
- void nob(machine_config &config);
- void blockgal(machine_config &config);
- void sys1ppisx_315_5041(machine_config &config);
- void sys1piox_315_5132(machine_config &config);
- void sys1piox_315_5162(machine_config &config);
- void sys1piox_315_5133(machine_config &config);
- void sys1pioxb(machine_config &config);
- void sys1ppi(machine_config &config);
- void sys1piox_315_5135(machine_config &config);
- void sys2rowxboot(machine_config &config);
- void sys1piox_315_5102(machine_config &config);
- void sys1piosx_315_spat(machine_config &config);
- void sys2x(machine_config &config);
- void sys1piox_315_5051(machine_config &config);
- void sys1piox_315_5098(machine_config &config);
- void sys1piosx_315_5099(machine_config &config);
- void sys2xboot(machine_config &config);
- void sys2xb(machine_config &config);
- void nobm(machine_config &config);
- void mcu(machine_config &config);
- void sys2_317_0006(machine_config &config);
- void sys1piox_317_0006(machine_config &config);
- void sys1ppix_315_5033(machine_config &config);
- void sys1pio(machine_config &config);
- void sys1pios(machine_config &config);
- void sys2rowm(machine_config &config);
- void sys1ppix_315_5098(machine_config &config);
- void sys1ppix_315_5048(machine_config &config);
- void sys2row(machine_config &config);
- void sys1ppis(machine_config &config);
- void sys1ppix_315_5065(machine_config &config);
- void sys1piox_315_5177(machine_config &config);
- void sys1piox_315_5155(machine_config &config);
- void sys2rowxb(machine_config &config);
-
- void init_bank00();
- void init_bank0c();
- void init_bank44();
-
- void init_nobb();
- void init_dakkochn();
- void init_bootleg();
- void init_shtngmst();
- void init_blockgal();
- void init_nob();
- void init_myherok();
- void init_ufosensi();
- void init_wbml();
- void init_tokisens();
- void init_bootsys2();
- void init_bootsys2d();
-
- DECLARE_CUSTOM_INPUT_MEMBER(dakkochn_mux_data_r);
- DECLARE_CUSTOM_INPUT_MEMBER(dakkochn_mux_status_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- // video related
- std::unique_ptr<u8[]> m_videoram;
- void (system1_state::*m_videomode_custom)(u8 data, u8 prevdata);
- u8 m_videomode_prev;
- std::unique_ptr<u8[]> m_mix_collide;
- u8 m_mix_collide_summary;
- std::unique_ptr<u8[]> m_sprite_collide;
- u8 m_sprite_collide_summary;
- bitmap_ind16 m_sprite_bitmap;
- u8 m_video_mode;
- u8 m_videoram_bank;
- tilemap_t *m_tilemap_page[8];
- u8 m_tilemap_pages;
-
- // protection, miscs
- u8 m_mute_xor;
- u8 m_dakkochn_mux_data;
- u8 m_mcu_control;
- u8 m_nob_maincpu_latch;
- u8 m_nob_mcu_latch;
- u8 m_nob_mcu_status;
- int m_nobb_inport23_step;
-
- // video handlers
- void common_videomode_w(u8 data);
- void videomode_w(u8 data);
- void videoram_bank_w(u8 data);
- u8 mixer_collision_r(offs_t offset);
- void mixer_collision_w(offs_t offset, u8 data);
- void mixer_collision_reset_w(u8 data);
- u8 sprite_collision_r(offs_t offset);
- void sprite_collision_w(offs_t offset, u8 data);
- void sprite_collision_reset_w(u8 data);
- u8 videoram_r(offs_t offset);
- void videoram_w(offs_t offset, u8 data);
- void paletteram_w(offs_t offset, u8 data);
-
- // sound handlers
- u8 sound_data_r();
- void soundport_w(u8 data);
- void sound_control_w(u8 data);
-
- // misc handlers
- void mcu_control_w(u8 data);
- u8 mcu_io_r(offs_t offset);
- void mcu_io_w(offs_t offset, u8 data);
- u8 nob_mcu_latch_r();
- void nob_mcu_latch_w(u8 data);
- void nob_mcu_status_w(u8 data);
- void nob_mcu_control_p2_w(u8 data);
- u8 nob_maincpu_latch_r();
- void nob_maincpu_latch_w(u8 data);
- u8 nob_mcu_status_r();
- u8 nobb_inport1c_r();
- u8 nobb_inport22_r();
- u8 nobb_inport23_r();
- void nobb_outport24_w(u8 data);
- u8 nob_start_r();
- u8 shtngmst_gunx_r();
-
- // video functions
- TILE_GET_INFO_MEMBER(tile_get_info);
- void system1_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(system2);
- DECLARE_VIDEO_START(system2);
- DECLARE_MACHINE_START(myherok);
- u32 screen_update_system1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_system2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_system2_rowscroll(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void video_start_common(int pagecount);
- inline void videoram_wait_states(cpu_device *cpu);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int xoffset);
- void video_update_common(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind16 &fgpixmap, bitmap_ind16 **bgpixmaps, const int *bgrowscroll, int bgyscroll, int spritexoffs);
-
- // misc functions
- TIMER_DEVICE_CALLBACK_MEMBER(soundirq_gen);
- TIMER_DEVICE_CALLBACK_MEMBER(mcu_t0_callback);
- void bank44_custom_w(u8 data, u8 prevdata);
- void bank0c_custom_w(u8 data, u8 prevdata);
- void dakkochn_custom_w(u8 data, u8 prevdata);
-
- // devices
- required_device<z80_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<i8751_device> m_mcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- optional_device<i8255_device> m_ppi8255;
- optional_device<z80pio_device> m_pio;
-
- // shared pointers
- required_shared_ptr<u8> m_ram;
- required_shared_ptr<u8> m_spriteram;
- required_shared_ptr<u8> m_paletteram;
- optional_shared_ptr<u8> m_decrypted_opcodes;
-
- // memory regions
- required_memory_region m_maincpu_region;
- required_region_ptr<u8> m_spriterom;
- required_region_ptr<u8> m_lookup_prom;
- optional_region_ptr<u8> m_color_prom;
-
- // banks
- required_memory_bank m_bank1;
- optional_memory_bank m_bank0d;
- optional_memory_bank m_bank1d;
- std::unique_ptr<u8[]> m_banked_decrypted_opcodes;
-
- // address maps
- void banked_decrypted_opcodes_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void encrypted_sys1ppi_maps(machine_config &config);
- void encrypted_sys1pio_maps(machine_config &config);
- void encrypted_sys2_mc8123_maps(machine_config &config);
- void mcu_io_map(address_map &map);
- void nobo_map(address_map &map);
- void sound_map(address_map &map);
- void system1_map(address_map &map);
- void blockgal_pio_io_map(address_map &map);
- void system1_pio_io_map(address_map &map);
- void system1_ppi_io_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_SYSTEM1_H
diff --git a/src/mame/includes/system16.h b/src/mame/includes/system16.h
deleted file mode 100644
index b3a0a685532..00000000000
--- a/src/mame/includes/system16.h
+++ /dev/null
@@ -1,317 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria, Phil Stroffolino, Mirko Buffoni
-#ifndef MAME_INCLUDES_SYSTEM16_H
-#define MAME_INCLUDES_SYSTEM16_H
-
-#pragma once
-
-#include "machine/74157.h"
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "sound/upd7759.h"
-#include "video/sega16sp.h"
-#include "video/segaic16.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class segas1x_bootleg_state : public sega_16bit_common_base
-{
-public:
- segas1x_bootleg_state(const machine_config &mconfig, device_type type, const char *tag)
- : sega_16bit_common_base(mconfig, type, tag)
- , m_textram(*this, "textram")
- , m_bg0_tileram(*this, "bg0_tileram")
- , m_bg1_tileram(*this, "bg1_tileram")
- , m_tileram(*this, "tileram")
- , m_goldnaxeb2_bgpage(*this, "gab2_bgpage")
- , m_goldnaxeb2_fgpage(*this, "gab2_fgpage")
- , m_sprites_region(*this, "sprites")
- , m_soundcpu_region(*this, "soundcpu")
- , m_soundbank(*this, "soundbank")
- , m_okibank(*this, "okibank")
- , m_screen(*this, "screen")
- , m_sprites(*this, "sprites")
- , m_shinobl_kludge(0)
- , m_maincpu(*this, "maincpu")
- , m_soundcpu(*this, "soundcpu")
- , m_msm(*this, "5205")
- , m_upd7759(*this, "7759")
- , m_gfxdecode(*this, "gfxdecode")
- , m_soundlatch(*this, "soundlatch")
- , m_adpcm_select(*this, "adpcm_select")
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- , m_leds(*this, "led%u", 0U)
- { }
-
- void z80_ym2151(machine_config &config);
- void z80_ym2151_upd7759(machine_config &config);
- void datsu_ym2151_msm5205(machine_config &config);
- void datsu_2x_ym2203_msm5205(machine_config &config);
- void system16_base(machine_config &config);
- void goldnaxeb_base(machine_config &config);
- void passshtb(machine_config &config);
- void goldnaxeb2(machine_config &config);
- void beautyb(machine_config &config);
- void goldnaxeb1(machine_config &config);
- void mwalkbl(machine_config &config);
- void eswatbl2(machine_config &config);
- void ddcrewbl(machine_config &config);
- void shdancbla(machine_config &config);
- void astormbl(machine_config &config);
- void astormb2(machine_config &config);
- void passsht4b(machine_config &config);
- void wb3bb(machine_config &config);
- void wb3bble(machine_config &config);
- void shdancbl(machine_config &config);
- void shinobi_datsu(machine_config &config);
- void bayrouteb1(machine_config &config);
- void tetrisbl(machine_config &config);
- void eswatbl(machine_config &config);
- void dduxbl(machine_config &config);
- void bayrouteb2(machine_config &config);
- void tturfbl(machine_config &config);
- void altbeastbl(machine_config &config);
- void system18(machine_config &config);
-
- void init_passsht();
- void init_wb3bbl();
- void init_wb3bble();
- void init_fpointbl();
- void init_eswatbl();
- void init_astormbl();
- void init_sys18bl_oki();
- void init_astormb2();
- void init_shdancbl();
- void init_dduxbl();
- void init_altbeastbl();
- void init_goldnaxeb2();
- void init_bayrouteb1();
- void init_beautyb();
- void init_bayrouteb2();
- void init_shinobl();
- void init_tturfbl();
- void init_goldnaxeb1();
- void init_ddcrewbl();
- void init_common();
-
-private:
- void sound_command_nmi_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_command_irq_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t sound_command_irq_r();
- void soundbank_msm_w(uint8_t data);
- void sys16_coinctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t passht4b_service_r();
- uint16_t passht4b_io1_r();
- uint16_t passht4b_io2_r();
- uint16_t passht4b_io3_r();
- void sys16_tilebank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ddcrewbl_spritebank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tturfbl_msm5205_data_w(uint8_t data);
- uint8_t tturfbl_soundbank_r(offs_t offset);
- void tturfbl_soundbank_w(uint8_t data);
- void s16bl_bgpage_w(uint16_t data);
- void s16bl_fgpage_w(uint16_t data);
- void s16bl_fgscrollx_bank_w(uint16_t data);
- void s16bl_fgscrollx_w(uint16_t data);
- void s16bl_fgscrolly_w(uint16_t data);
- void s16bl_bgscrollx_w(uint16_t data);
- void s16bl_bgscrolly_w(uint16_t data);
- template<int Page> void datsu_page_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void goldnaxeb2_fgscrollx_w(uint16_t data);
- void goldnaxeb2_bgscrollx_w(uint16_t data);
- void goldnaxeb2_fgscrolly_w(uint16_t data);
- void goldnaxeb2_bgscrolly_w(uint16_t data);
- void goldnaxeb2_fgpage_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void goldnaxeb2_bgpage_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void eswat_tilebank0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void altbeastbl_gfx_w(offs_t offset, uint16_t data);
- uint16_t beautyb_unkx_r();
- void wb3bble_refreshenable_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sys18_refreshenable_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sys18_tilebank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t system18_bank_r(offs_t offset);
- void sys18_soundbank_w(uint8_t data);
- void shdancbl_msm5205_data_w(uint8_t data);
- uint8_t shdancbl_soundbank_r(offs_t offset);
- void shdancbl_bankctrl_w(uint8_t data);
- void sys18bl_okibank_w(uint8_t data);
- void sys16_tileram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sys16_textram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void s16a_bootleg_bgscrolly_w(uint16_t data);
- void s16a_bootleg_bgscrollx_w(uint16_t data);
- void s16a_bootleg_fgscrolly_w(uint16_t data);
- void s16a_bootleg_fgscrollx_w(uint16_t data);
- void s16a_bootleg_tilemapselect_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void upd7759_bank_w(uint8_t data);
-
- DECLARE_MACHINE_RESET(ddcrewbl);
- TILEMAP_MAPPER_MEMBER(sys16_bg_map);
- TILEMAP_MAPPER_MEMBER(sys16_text_map);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- TILE_GET_INFO_MEMBER(get_fg2_tile_info);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- TILE_GET_INFO_MEMBER(get_s16a_bootleg_tile_infotxt);
- TILE_GET_INFO_MEMBER(get_s16a_bootleg_tile_info0);
- TILE_GET_INFO_MEMBER(get_s16a_bootleg_tile_info1);
- DECLARE_VIDEO_START(system16);
- DECLARE_VIDEO_START(system18old);
- DECLARE_VIDEO_START(s16a_bootleg_shinobi);
- DECLARE_VIDEO_START(s16a_bootleg_passsht);
- DECLARE_VIDEO_START(s16a_bootleg_wb3bl);
- DECLARE_VIDEO_START(s16a_bootleg);
- uint32_t screen_update_system16(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_system18old(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_s16a_bootleg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_s16a_bootleg_passht4b(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void setup_system16_bootleg_spritebanking( );
- void update_page( );
- void set_tile_bank( int data );
- void set_fg_page( int data );
- void set_bg_page( int data );
- void datsu_set_pages( );
- DECLARE_WRITE_LINE_MEMBER(tturfbl_msm5205_callback);
- DECLARE_WRITE_LINE_MEMBER(datsu_msm5205_callback);
- DECLARE_WRITE_LINE_MEMBER(shdancbl_msm5205_callback);
- DECLARE_WRITE_LINE_MEMBER(sound_cause_nmi);
-
- void astormbl_map(address_map &map);
- void bayrouteb1_map(address_map &map);
- void bayrouteb2_map(address_map &map);
- void beautyb_map(address_map &map);
- void ddcrewbl_map(address_map &map);
- void dduxbl_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void eswatbl2_map(address_map &map);
- void eswatbl_map(address_map &map);
- void goldnaxeb1_map(address_map &map);
- void goldnaxeb2_map(address_map &map);
- void mwalkbl_map(address_map &map);
- void passht4b_map(address_map &map);
- void passshtb_map(address_map &map);
- void pcm_map(address_map &map);
- void shdancbl_map(address_map &map);
- void shdancbl_sound_io_map(address_map &map);
- void shdancbl_sound_map(address_map &map);
- void shdancbla_map(address_map &map);
- void shdancbla_sound_map(address_map &map);
- void shinobi_datsu_sound_map(address_map &map);
- void shinobib_map(address_map &map);
- void sound_18_io_map(address_map &map);
- void sound_18_map(address_map &map);
- void sound_7759_io_map(address_map &map);
- void sound_7759_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
- void sys18bl_oki_map(address_map &map);
- void sys18bl_sound_map(address_map &map);
- void tetrisbl_map(address_map &map);
- void tturfbl_map(address_map &map);
- void tturfbl_sound_io_map(address_map &map);
- void tturfbl_sound_map(address_map &map);
- void wb3bbl_map(address_map &map);
- void wb3bble_map(address_map &map);
- void wb3bble_decrypted_opcodes_map(address_map &map);
-
- virtual void machine_start() override { m_leds.resolve(); }
-
- required_shared_ptr<uint16_t> m_textram;
- optional_shared_ptr<uint16_t> m_bg0_tileram;
- optional_shared_ptr<uint16_t> m_bg1_tileram;
- optional_shared_ptr<uint16_t> m_tileram;
- optional_shared_ptr<uint16_t> m_goldnaxeb2_bgpage;
- optional_shared_ptr<uint16_t> m_goldnaxeb2_fgpage;
-
- optional_memory_region m_sprites_region;
- optional_memory_region m_soundcpu_region;
- optional_memory_bank m_soundbank;
- optional_memory_bank m_okibank;
-
- required_device<screen_device> m_screen;
- optional_device<sega_16bit_sprite_device> m_sprites;
-
- uint16_t m_coinctrl;
-
- /* game specific */
- int m_passht4b_io1_val;
- int m_passht4b_io2_val;
- int m_passht4b_io3_val;
-
- int m_beautyb_unkx;
-
- int m_shinobl_kludge; // TODO: this never gets set, causing unreachable code in get_text_tile_info
-
- int m_eswat_tilebank0;
-
-
- /* video-related */
- tilemap_t *m_background[2];
- tilemap_t *m_foreground[2];
- tilemap_t *m_text_layer;
- tilemap_t *m_bg_tilemaps[2];
- tilemap_t *m_text_tilemap;
- double m_weights[2][3][6];
-
- int m_spritebank_type;
- int m_back_yscroll;
- int m_fore_yscroll;
- int m_text_yscroll;
-
- int m_bg1_trans; // alien syn + sys18
-
- int m_tile_bank[2];
- int m_bg_page[2][4];
- int m_fg_page[2][4];
-
- uint16_t m_datsu_page[4];
-
- int m_old_bg_page[2][4];
- int m_old_fg_page[2][4];
- int m_old_tile_bank[2];
-
- int m_bg_scrollx;
- int m_bg_scrolly;
- int m_fg_scrollx;
- int m_fg_scrolly;
- uint16_t m_tilemapselect;
-
- int m_textlayer_lo_min;
- int m_textlayer_lo_max;
- int m_textlayer_hi_min;
- int m_textlayer_hi_max;
-
- int m_tilebank_switch;
-
-
- /* sound-related */
- int m_sample_buffer;
- int m_sample_select;
-
- uint8_t *m_soundbank_ptr; /* Pointer to currently selected portion of ROM */
-
- /* sys18 */
- uint8_t *m_sound_bank;
- uint16_t *m_splittab_bg_x;
- uint16_t *m_splittab_bg_y;
- uint16_t *m_splittab_fg_x;
- uint16_t *m_splittab_fg_y;
- int m_sound_info[4*2];
- int m_refreshenable;
- int m_system18;
-
- uint8_t *m_decrypted_region; // goldnaxeb1 & bayrouteb1
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_soundcpu;
- optional_device<msm5205_device> m_msm;
- optional_device<upd7759_device> m_upd7759;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<ls157_device> m_adpcm_select;
- optional_shared_ptr<uint16_t> m_decrypted_opcodes;
- output_finder<2> m_leds;
-};
-
-#endif // MAME_INCLUDES_SYSTEM16_H
diff --git a/src/mame/includes/tagteam.h b/src/mame/includes/tagteam.h
deleted file mode 100644
index 6afdca4ba08..00000000000
--- a/src/mame/includes/tagteam.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Steve Ellenoff, Brad Oliver
-#ifndef MAME_INCLUDES_TAGTEAM_H
-#define MAME_INCLUDES_TAGTEAM_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tagteam_state : public driver_device
-{
-public:
- tagteam_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram")
- { }
-
- void tagteam(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- int m_palettebank;
- tilemap_t *m_bg_tilemap;
- uint8_t m_sound_nmi_mask;
-
- void irq_clear_w(uint8_t data);
- void sound_nmi_mask_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- uint8_t mirrorvideoram_r(offs_t offset);
- uint8_t mirrorcolorram_r(offs_t offset);
- void mirrorvideoram_w(offs_t offset, uint8_t data);
- void mirrorcolorram_w(offs_t offset, uint8_t data);
- void control_w(uint8_t data);
- void flipscreen_w(uint8_t data);
-
- INTERRUPT_GEN_MEMBER(sound_timer_irq);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- void tagteam_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAGTEAM_H
diff --git a/src/mame/includes/tail2nos.h b/src/mame/includes/tail2nos.h
deleted file mode 100644
index 9256a15a1a1..00000000000
--- a/src/mame/includes/tail2nos.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/*************************************************************************
-
- Tail to Nose / Super Formula
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TAIL2NOS_H
-#define MAME_INCLUDES_TAIL2NOS_H
-
-#pragma once
-
-#include "machine/6850acia.h"
-#include "machine/gen_latch.h"
-#include "video/k051316.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tail2nos_state : public driver_device
-{
-public:
- tail2nos_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_txvideoram(*this, "txvideoram"),
- m_spriteram(*this, "spriteram"),
- m_zoomram(*this, "k051316"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k051316(*this, "k051316"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_acia(*this, "acia"),
- m_analog(*this, "AN%u", 0U)
- { }
-
- void tail2nos(machine_config &config);
-
- template <int N> DECLARE_CUSTOM_INPUT_MEMBER(analog_in_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_txvideoram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_zoomram;
-
- /* video-related */
- tilemap_t *m_tx_tilemap;
- int m_txbank;
- int m_txpalette;
- bool m_video_enable;
- bool m_flip_screen;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k051316_device> m_k051316;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<acia6850_device> m_acia;
- required_ioport_array<2> m_analog;
-
- void tail2nos_txvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tail2nos_zoomdata_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tail2nos_gfxbank_w(uint8_t data);
- void sound_bankswitch_w(uint8_t data);
- uint8_t sound_semaphore_r();
- TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update_tail2nos(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void tail2nos_postload();
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
- K051316_CB_MEMBER(zoom_callback);
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_port_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAIL2NOS_H
diff --git a/src/mame/includes/taito_b.h b/src/mame/includes/taito_b.h
deleted file mode 100644
index 35dfd29c8a2..00000000000
--- a/src/mame/includes/taito_b.h
+++ /dev/null
@@ -1,175 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Jarek Burczynski
-#ifndef MAME_INCLUDES_TAITO_B_H
-#define MAME_INCLUDES_TAITO_B_H
-
-#pragma once
-
-#include "machine/mb87078.h"
-#include "machine/taitoio.h"
-#include "video/hd63484.h"
-#include "video/tc0180vcu.h"
-#include "emupal.h"
-#include "screen.h"
-
-class taitob_state : public driver_device
-{
-public:
- taitob_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_ym(*this, "ymsnd"),
- m_hd63484(*this, "hd63484"),
- m_tc0180vcu(*this, "tc0180vcu"),
- m_tc0640fio(*this, "tc0640fio"),
- m_tc0220ioc(*this, "tc0220ioc"),
- m_tc0510nio(*this, "tc0510nio"),
- m_mb87078(*this, "mb87078"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_audiobank(*this, "audiobank"),
- m_eepromout_io(*this, "EEPROMOUT"),
- m_trackx_io(*this, "TRACKX%u", 1U),
- m_tracky_io(*this, "TRACKY%u", 1U)
- { }
-
- void spacedx(machine_config &config);
- void rambo3(machine_config &config);
- void ashura(machine_config &config);
- void silentd(machine_config &config);
- void tetrista(machine_config &config);
- void spacedxo(machine_config &config);
- void rambo3p(machine_config &config);
- void rastsag2(machine_config &config);
- void qzshowby(machine_config &config);
- void sbm(machine_config &config);
- void tetrist(machine_config &config);
- void pbobble(machine_config &config);
- void masterw(machine_config &config);
- void viofight(machine_config &config);
- void crimec(machine_config &config);
- void selfeena(machine_config &config);
-
- void init_taito_b();
-
-protected:
- void player_12_coin_ctrl_w(uint8_t data);
-
- void sound_map(address_map &map);
-
- void bankswitch_w(uint8_t data);
- template<int Player> uint16_t tracky_hi_r();
- template<int Player> uint16_t tracky_lo_r();
- template<int Player> uint16_t trackx_hi_r();
- template<int Player> uint16_t trackx_lo_r();
- uint16_t eep_latch_r();
- void eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t player_34_coin_ctrl_r();
- void player_34_coin_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void spacedxo_tc0220ioc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void mb87078_gain_changed(offs_t offset, uint8_t data);
- virtual void video_start() override;
- uint32_t screen_update_taitob(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void crimec_map(address_map &map);
- void masterw_map(address_map &map);
- void masterw_sound_map(address_map &map);
- void pbobble_map(address_map &map);
- void qzshowby_map(address_map &map);
- void rambo3_map(address_map &map);
- void rastsag2_map(address_map &map);
-
- void sbm_map(address_map &map);
- void selfeena_map(address_map &map);
- void silentd_map(address_map &map);
- void spacedx_map(address_map &map);
- void spacedxo_map(address_map &map);
- void tetrist_map(address_map &map);
- void tetrista_map(address_map &map);
- void viofight_map(address_map &map);
- void viofight_sound_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- /* video-related */
- std::unique_ptr<bitmap_ind16> m_pixel_bitmap;
-
- uint16_t m_pixel_scroll[3];
-
- int m_b_fg_color_base;
-
- /* misc */
- uint16_t m_eep_latch;
- uint16_t m_coin_word;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<device_t> m_ym;
- optional_device<hd63484_device> m_hd63484;
- required_device<tc0180vcu_device> m_tc0180vcu;
- optional_device<tc0640fio_device> m_tc0640fio;
- optional_device<tc0220ioc_device> m_tc0220ioc;
- optional_device<tc0510nio_device> m_tc0510nio;
- optional_device<mb87078_device> m_mb87078;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_memory_bank m_audiobank;
- optional_ioport m_eepromout_io;
- optional_ioport_array<2> m_trackx_io;
- optional_ioport_array<2> m_tracky_io;
-};
-
-class taitob_c_state : public taitob_state
-{
-public:
- using taitob_state::taitob_state;
- static constexpr feature_type unemulated_features() { return feature::CAMERA; }
- void realpunc(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(realpunc_sensor);
-
-protected:
- void realpunc_output_w(uint16_t data);
- void realpunc_video_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void realpunc_map(address_map &map);
- void realpunc_hd63484_map(address_map &map);
-
- virtual void video_start() override;
- uint32_t screen_update_realpunc(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
-private:
- std::unique_ptr<bitmap_ind16> m_realpunc_bitmap;
- uint16_t m_realpunc_video_ctrl;
-};
-
-class hitice_state : public taitob_state
-{
-public:
- hitice_state(const machine_config &mconfig, device_type type, const char *tag) :
- taitob_state(mconfig, type, tag),
- m_pixelram(*this, "pixelram")
- { }
-
- void hitice(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void video_reset() override;
-
-private:
- void pixelram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void pixel_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void hitice_map(address_map &map);
-
- void clear_pixel_bitmap();
-
- required_shared_ptr<uint16_t> m_pixelram;
-};
-
-#endif // MAME_INCLUDES_TAITO_B_H
diff --git a/src/mame/includes/taito_f2.h b/src/mame/includes/taito_f2.h
deleted file mode 100644
index 904471b4a22..00000000000
--- a/src/mame/includes/taito_f2.h
+++ /dev/null
@@ -1,294 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves, Bryan McPhail, Brad Oliver, Andrew Prime, Brian Troha, Nicola Salmoria
-#ifndef MAME_INCLUDES_TAITO_F2_H
-#define MAME_INCLUDES_TAITO_F2_H
-
-#pragma once
-
-#include "machine/taitocchip.h"
-#include "machine/taitoio.h"
-
-#include "sound/okim6295.h"
-#include "video/tc0100scn.h"
-#include "video/tc0110pcr.h"
-#include "video/tc0280grd.h"
-#include "video/tc0360pri.h"
-#include "video/tc0480scp.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-class taitof2_state : public driver_device
-{
-public:
- taitof2_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_sprite_extension(*this, "sprite_ext")
- , m_spriteram(*this, "spriteram")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_cchip(*this, "cchip")
- , m_cchip_irq_clear(*this, "cchip_irq_clear")
- , m_oki(*this, "oki")
- , m_tc0100scn(*this, "tc0100scn_%u", 1U)
- , m_tc0110pcr(*this, "tc0110pcr")
- , m_tc0360pri(*this, "tc0360pri")
- , m_tc0280grd(*this, "tc0280grd")
- , m_tc0430grw(*this, "tc0430grw")
- , m_tc0480scp(*this, "tc0480scp")
- , m_tc0220ioc(*this, "tc0220ioc")
- , m_tc0510nio(*this, "tc0510nio")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_io_paddle(*this, "PADDLE%u", 1U)
- , m_io_in(*this, "IN%u", 0U)
- , m_io_dswa(*this, "DSWA")
- , m_io_dswb(*this, "DSWB")
- , m_audiobank(*this, "audiobank")
- , m_okibank(*this, "okibank")
- { }
-
-
- void taito_f2_tc0220ioc(machine_config &config);
- void taito_f2_tc0510nio(machine_config &config);
- void taito_f2_te7750(machine_config &config);
- void taito_f2_tc0110pcr(machine_config &config);
- void taito_f2(machine_config &config);
- void thundfox(machine_config &config);
- void dinorex(machine_config &config);
- void mjnquest(machine_config &config);
- void cameltrya(machine_config &config);
- void koshien(machine_config &config);
- void qzchikyu(machine_config &config);
- void metalb(machine_config &config);
- void yesnoj(machine_config &config);
- void quizhq(machine_config &config);
- void dondokod(machine_config &config);
- void qcrayon2(machine_config &config);
- void qtorimon(machine_config &config);
- void driftout(machine_config &config);
- void driftoutct(machine_config &config);
- void solfigtr(machine_config &config);
- void qzquest(machine_config &config);
- void liquidk(machine_config &config);
- void deadconx(machine_config &config);
- void ssi(machine_config &config);
- void pulirula(machine_config &config);
- void growl(machine_config &config);
- void ninjak(machine_config &config);
- void footchmp(machine_config &config);
- void cameltry(machine_config &config);
- void finalb(machine_config &config);
- void hthero(machine_config &config);
- void driveout(machine_config &config);
- void gunfront(machine_config &config);
- void qcrayon(machine_config &config);
- void megab(machine_config &config);
- void qjinsei(machine_config &config);
- void deadconxj(machine_config &config);
- void footchmpbl(machine_config &config);
- void yuyugogo(machine_config &config);
-
- void init_driveout();
- void init_cameltry();
- void init_mjnquest();
- void init_finalb();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- enum
- {
- TIMER_INTERRUPT6
- };
-
- struct f2_tempsprite
- {
- u32 code = 0, color = 0;
- bool flipx = false, flipy = false;
- int x = 0, y = 0;
- int zoomx = 0, zoomy = 0;
- u64 primask = 0;
- };
- /* memory pointers */
- optional_shared_ptr<u16> m_sprite_extension;
- required_shared_ptr<u16> m_spriteram;
- std::unique_ptr<u16[]> m_spriteram_buffered;
- std::unique_ptr<u16[]> m_spriteram_delayed;
-
- /* video-related */
- std::unique_ptr<f2_tempsprite[]> m_spritelist;
- int m_sprite_type;
-
- u16 m_spritebank[8];
-// u16 m_spritebank_eof[8];
- u16 m_spritebank_buffered[8];
-
- bool m_sprites_disabled;
- s32 m_sprites_active_area;
- s32 m_sprites_master_scrollx;
- s32 m_sprites_master_scrolly;
- /* remember flip status over frames because driftout can fail to set it */
- bool m_sprites_flipscreen;
-
- /* On the left hand screen edge (assuming horiz screen, no
- screenflip: in screenflip it is the right hand edge etc.)
- there may be 0-3 unwanted pixels in both tilemaps *and*
- sprites. To erase this we use f2_hide_pixels (0 to +3). */
-
- s32 m_hide_pixels;
- s32 m_flip_hide_pixels; /* Different in some games */
-
- s32 m_pivot_xdisp; /* Needed in games with a pivot layer */
- s32 m_pivot_ydisp;
-
- s32 m_game;
-
- u8 m_tilepri[6]; // todo - move into taitoic.c
- u8 m_spritepri[6]; // todo - move into taitoic.c
- u8 m_spriteblendmode; // todo - move into taitoic.c
-
- int m_prepare_sprites;
- u8 m_gfxbank;
-
- /* misc */
- s32 m_mjnquest_input;
- int m_last[2];
- int m_nibble;
- s32 m_driveout_sound_latch;
- emu_timer *m_int6_timer;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<taito_cchip_device> m_cchip;
- optional_device<timer_device> m_cchip_irq_clear;
- optional_device<okim6295_device> m_oki;
- optional_device_array<tc0100scn_device, 2> m_tc0100scn;
- optional_device<tc0110pcr_device> m_tc0110pcr;
- optional_device<tc0360pri_device> m_tc0360pri;
- optional_device<tc0280grd_device> m_tc0280grd;
- optional_device<tc0280grd_device> m_tc0430grw;
- optional_device<tc0480scp_device> m_tc0480scp;
- optional_device<tc0220ioc_device> m_tc0220ioc;
- optional_device<tc0510nio_device> m_tc0510nio;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- optional_device<palette_device> m_palette;
-
- optional_ioport_array<2> m_io_paddle;
- optional_ioport_array<7> m_io_in;
- optional_ioport m_io_dswa;
- optional_ioport m_io_dswb;
-
- optional_memory_bank m_audiobank;
- optional_memory_bank m_okibank;
-
- void coin_nibble_w(u8 data);
- void growl_coin_word_w(u8 data);
- void _4p_coin_word_w(u8 data);
- u16 cameltry_paddle_r(offs_t offset);
- u16 mjnquest_dsw_r(offs_t offset);
- u16 mjnquest_input_r();
- void mjnquest_inputselect_w(u16 data);
- void sound_bankswitch_w(u8 data);
- u8 driveout_sound_command_r();
- void oki_bank_w(u8 data);
- void driveout_sound_command_w(offs_t offset, u8 data);
- void sprite_extension_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void spritebank_w(offs_t offset, u16 data);
- void koshien_spritebank_w(u16 data);
- void cameltrya_porta_w(u8 data);
- void mjnquest_gfxbank_w(u8 data);
- TC0100SCN_CB_MEMBER(mjnquest_tmap_cb);
-
- DECLARE_VIDEO_START(dondokod);
- DECLARE_VIDEO_START(driftout);
- DECLARE_VIDEO_START(finalb);
- DECLARE_VIDEO_START(megab);
- DECLARE_VIDEO_START(thundfox);
- DECLARE_VIDEO_START(ssi);
- DECLARE_VIDEO_START(gunfront);
- DECLARE_VIDEO_START(growl);
- DECLARE_VIDEO_START(mjnquest);
- DECLARE_VIDEO_START(footchmp);
- DECLARE_VIDEO_START(hthero);
- DECLARE_VIDEO_START(koshien);
- DECLARE_VIDEO_START(yuyugogo);
- DECLARE_VIDEO_START(ninjak);
- DECLARE_VIDEO_START(solfigtr);
- DECLARE_VIDEO_START(pulirula);
- DECLARE_VIDEO_START(metalb);
- DECLARE_VIDEO_START(qzchikyu);
- DECLARE_VIDEO_START(yesnoj);
- DECLARE_VIDEO_START(deadconx);
- DECLARE_VIDEO_START(deadconxj);
- DECLARE_VIDEO_START(dinorex);
- DECLARE_VIDEO_START(quiz);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_pri_roz(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_pri(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_thundfox(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_ssi(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_deadconx(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_yesnoj(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_metalb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_no_buffer);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_partial_buffer_delayed);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_partial_buffer_delayed_thundfox);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_full_buffer_delayed);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_partial_buffer_delayed_qzchikyu);
- INTERRUPT_GEN_MEMBER(interrupt);
- INTERRUPT_GEN_MEMBER(megab_interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(cchip_irq_clear_cb);
- void core_vh_start(int sprite_type, int hide, int flip_hide);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u64 *primasks, int uses_tc360_mixer);
- void update_spritebanks();
- void handle_sprite_buffering();
- void update_sprites_active_area();
- void draw_roz_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u8 priority, u8 priority_mask = 0xff);
- void taito_f2_tc360_spritemixdraw(screen_device &screen, bitmap_ind16 &dest_bmp, const rectangle &clip, gfx_element *gfx,
- u32 code, u32 color, int flipx, int flipy, int sx, int sy, int scalex, int scaley, u64 primask = 0, bool use_mixer = false);
-
- void cameltry_map(address_map &map);
- void cameltrya_map(address_map &map);
- void cameltrya_sound_map(address_map &map);
- void deadconx_map(address_map &map);
- void dinorex_map(address_map &map);
- void dondokod_map(address_map &map);
- void driftout_map(address_map &map);
- void driftoutct_map(address_map &map);
- void driveout_map(address_map &map);
- void driveout_oki_map(address_map &map);
- void driveout_sound_map(address_map &map);
- void finalb_map(address_map &map);
- void footchmp_map(address_map &map);
- void growl_map(address_map &map);
- void gunfront_map(address_map &map);
- void koshien_map(address_map &map);
- void liquidk_map(address_map &map);
- void megab_map(address_map &map);
- void metalb_map(address_map &map);
- void mjnquest_map(address_map &map);
- void ninjak_map(address_map &map);
- void pulirula_map(address_map &map);
- void qcrayon2_map(address_map &map);
- void qcrayon_map(address_map &map);
- void qjinsei_map(address_map &map);
- void qtorimon_map(address_map &map);
- void quizhq_map(address_map &map);
- void qzchikyu_map(address_map &map);
- void qzquest_map(address_map &map);
- void solfigtr_map(address_map &map);
- void sound_map(address_map &map);
- void ssi_map(address_map &map);
- void thundfox_map(address_map &map);
- void yesnoj_map(address_map &map);
- void yuyugogo_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-#endif // MAME_INCLUDES_TAITO_F2_H
diff --git a/src/mame/includes/taito_f3.h b/src/mame/includes/taito_f3.h
deleted file mode 100644
index e474778c70f..00000000000
--- a/src/mame/includes/taito_f3.h
+++ /dev/null
@@ -1,402 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-#ifndef MAME_INCLUDES_TAITO_F3_H
-#define MAME_INCLUDES_TAITO_F3_H
-
-#pragma once
-
-#include "audio/taito_en.h"
-#include "machine/eepromser.h"
-#include "machine/watchdog.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-struct F3config;
-
-/* This it the best way to allow game specific kludges until the system is fully understood */
-enum {
- /* Early F3 class games, these are not cartridge games and system features may be different */
- RINGRAGE=0, /* D21 */
- ARABIANM, /* D29 */
- RIDINGF, /* D34 */
- GSEEKER, /* D40 */
- TRSTAR, /* D53 */
- GUNLOCK, /* D66 */
- TWINQIX,
- UNDRFIRE, /* D67 - Heavily modified F3 hardware (different memory map) */
- SCFINALS,
- LIGHTBR, /* D69 */
-
- /* D77 - F3 motherboard proms, all following games are 'F3 package system' */
- /* D78 I CUP */
- KAISERKN, /* D84 */
- DARIUSG, /* D87 */
- BUBSYMPH, /* D90 */
- SPCINVDX, /* D93 */
- HTHERO95, /* D94 */
- QTHEATER, /* D95 */
- EACTION2, /* E02 */
- SPCINV95, /* E06 */
- QUIZHUHU, /* E08 */
- PBOBBLE2, /* E10 */
- GEKIRIDO, /* E11 */
- KTIGER2, /* E15 */
- BUBBLEM, /* E21 */
- CLEOPATR, /* E28 */
- PBOBBLE3, /* E29 */
- ARKRETRN, /* E36 */
- KIRAMEKI, /* E44 */
- PUCHICAR, /* E46 */
- PBOBBLE4, /* E49 */
- POPNPOP, /* E51 */
- LANDMAKR, /* E61 */
- RECALH, /* prototype */
- COMMANDW, /* prototype */
- TMDRILL
-};
-
-class taito_f3_state : public driver_device
-{
-public:
- taito_f3_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_eeprom(*this, "eeprom"),
- m_textram(*this, "textram", 0x2000, ENDIANNESS_BIG),
- m_spriteram(*this, "spriteram", 0x10000, ENDIANNESS_BIG),
- m_charram(*this, "charram", 0x2000, ENDIANNESS_BIG),
- m_line_ram(*this, "line_ram", 0x10000, ENDIANNESS_BIG),
- m_pf_ram(*this, "pf_ram", 0xc000, ENDIANNESS_BIG),
- m_pivot_ram(*this, "pivot_ram", 0x10000, ENDIANNESS_BIG),
- m_input(*this, "IN.%u", 0),
- m_dial(*this, "DIAL.%u", 0),
- m_eepromin(*this, "EEPROMIN"),
- m_eepromout(*this, "EEPROMOUT"),
- m_taito_en(*this, "taito_en"),
- m_oki(*this, "oki"),
- m_paletteram32(*this, "paletteram"),
- m_okibank(*this, "okibank")
- { }
-
- void f3(machine_config &config);
- void f3_224a(machine_config &config);
- void bubsympb(machine_config &config);
- void f3_224b(machine_config &config);
- void f3_224c(machine_config &config);
-
- void init_commandw();
- void init_pbobble2();
- void init_puchicar();
- void init_intcup94();
- void init_landmakr();
- void init_twinqix();
- void init_elvactr();
- void init_arabianm();
- void init_bubsympb();
- void init_ktiger2();
- void init_lightbr();
- void init_gekirido();
- void init_arkretrn();
- void init_kirameki();
- void init_qtheater();
- void init_popnpop();
- void init_spcinvdj();
- void init_pbobbl2p();
- void init_landmkrp();
- void init_bubblem();
- void init_ridingf();
- void init_gseeker();
- void init_bubsymph();
- void init_hthero95();
- void init_gunlock();
- void init_pbobble4();
- void init_dariusg();
- void init_recalh();
- void init_kaiserkn();
- void init_spcinv95();
- void init_trstaroj();
- void init_ringrage();
- void init_cupfinal();
- void init_quizhuhu();
- void init_pbobble3();
- void init_cleopatr();
- void init_scfinals();
- void init_pbobbl2x();
-
- template <int Num> DECLARE_CUSTOM_INPUT_MEMBER(f3_analog_r);
- template <int Num> DECLARE_CUSTOM_INPUT_MEMBER(f3_coin_r);
- DECLARE_CUSTOM_INPUT_MEMBER(eeprom_read);
-
-protected:
- enum
- {
- TIMER_F3_INTERRUPT3
- };
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void device_post_load(void) override;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- optional_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<eeprom_serial_base_device> m_eeprom;
-
- memory_share_creator<u16> m_textram;
- memory_share_creator<u16> m_spriteram;
- memory_share_creator<u16> m_charram;
- memory_share_creator<u16> m_line_ram;
- memory_share_creator<u16> m_pf_ram;
- memory_share_creator<u16> m_pivot_ram;
-
- optional_ioport_array<6> m_input;
- optional_ioport_array<2> m_dial;
- optional_ioport m_eepromin;
- optional_ioport m_eepromout;
-
- emu_timer *m_interrupt3_timer;
- u32 m_coin_word[2];
-
- struct tempsprite
- {
- int code, color;
- int flipx, flipy;
- int x, y;
- int zoomx, zoomy;
- int pri;
- };
-
- struct f3_playfield_line_inf
- {
- int alpha_mode[256];
- int pri[256];
-
- /* use for draw_scanlines */
- u16 *src[256], *src_s[256], *src_e[256];
- u8 *tsrc[256], *tsrc_s[256];
- int x_count[256];
- u32 x_zoom[256];
- u32 clip0[256];
- u32 clip1[256];
- };
-
- struct f3_spritealpha_line_inf
- {
- u16 alpha_level[256];
- u16 spri[256];
- u16 sprite_alpha[256];
- u32 sprite_clip0[256];
- u32 sprite_clip1[256];
- s16 clip0_l[256];
- s16 clip0_r[256];
- s16 clip1_l[256];
- s16 clip1_r[256];
- };
-
- int m_game;
- tilemap_t *m_tilemap[8];
- tilemap_t *m_pixel_layer;
- tilemap_t *m_vram_layer;
- std::unique_ptr<u16[]> m_spriteram16_buffered;
- u16 m_control_0[8];
- u16 m_control_1[8];
- int m_flipscreen;
- u8 m_sprite_extra_planes;
- u8 m_sprite_pen_mask;
- u16 *m_pf_data[8];
- int m_sprite_lag;
- u8 m_sprite_pri_usage;
- bitmap_ind8 m_pri_alp_bitmap;
- int m_alpha_level_2as;
- int m_alpha_level_2ad;
- int m_alpha_level_3as;
- int m_alpha_level_3ad;
- int m_alpha_level_2bs;
- int m_alpha_level_2bd;
- int m_alpha_level_3bs;
- int m_alpha_level_3bd;
- int m_alpha_level_last;
- int m_width_mask;
- int m_twidth_mask;
- int m_twidth_mask_bit;
- std::unique_ptr<u8[]> m_tile_opaque_sp;
- std::unique_ptr<u8[]> m_tile_opaque_pf[8];
- u8 m_add_sat[256][256];
- int m_alpha_s_1_1;
- int m_alpha_s_1_2;
- int m_alpha_s_1_4;
- int m_alpha_s_1_5;
- int m_alpha_s_1_6;
- int m_alpha_s_1_8;
- int m_alpha_s_1_9;
- int m_alpha_s_1_a;
- int m_alpha_s_2a_0;
- int m_alpha_s_2a_4;
- int m_alpha_s_2a_8;
- int m_alpha_s_2b_0;
- int m_alpha_s_2b_4;
- int m_alpha_s_2b_8;
- int m_alpha_s_3a_0;
- int m_alpha_s_3a_1;
- int m_alpha_s_3a_2;
- int m_alpha_s_3b_0;
- int m_alpha_s_3b_1;
- int m_alpha_s_3b_2;
- u32 m_dval;
- u8 m_pval;
- u8 m_tval;
- u8 m_pdest_2a;
- u8 m_pdest_2b;
- int m_tr_2a;
- int m_tr_2b;
- u8 m_pdest_3a;
- u8 m_pdest_3b;
- int m_tr_3a;
- int m_tr_3b;
- u16 *m_src[5];
- u16 *m_src_s[5];
- u16 *m_src_e[5];
- u16 m_clip_al[5];
- u16 m_clip_ar[5];
- u16 m_clip_bl[5];
- u16 m_clip_br[5];
- u8 *m_tsrc[5];
- u8 *m_tsrc_s[5];
- u32 m_x_count[5];
- u32 m_x_zoom[5];
- std::unique_ptr<tempsprite[]> m_spritelist;
- const tempsprite *m_sprite_end;
- std::unique_ptr<f3_playfield_line_inf[]> m_pf_line_inf;
- std::unique_ptr<f3_spritealpha_line_inf[]> m_sa_line_inf;
- const F3config *m_game_config;
- int (taito_f3_state::*m_dpix_n[8][16])(u32 s_pix);
- int (taito_f3_state::**m_dpix_lp[5])(u32 s_pix);
- int (taito_f3_state::**m_dpix_sp[9])(u32 s_pix);
-
- u16 pf_ram_r(offs_t offset);
- void pf_ram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void control_0_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void control_1_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 spriteram_r(offs_t offset);
- void spriteram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 textram_r(offs_t offset);
- void textram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 charram_r(offs_t offset);
- void charram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 pivot_r(offs_t offset);
- void pivot_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 lineram_r(offs_t offset);
- void lineram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- template<unsigned Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- TILE_GET_INFO_MEMBER(get_tile_info_text);
- TILE_GET_INFO_MEMBER(get_tile_info_pixel);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
- void bubsympb_map(address_map &map);
- void f3_map(address_map &map);
-
- void tile_decode();
-
- inline void f3_drawgfx(bitmap_rgb32 &dest_bmp, const rectangle &clip, gfx_element *gfx, int code, int color, int flipx, int flipy, int sx, int sy, u8 pri_dst);
- inline void f3_drawgfxzoom(bitmap_rgb32 &dest_bmp, const rectangle &clip, gfx_element *gfx, int code, int color, int flipx, int flipy, int sx, int sy, int scalex, int scaley, u8 pri_dst);
- void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void get_sprite_info(const u16 *spriteram16_ptr);
- void print_debug_info(bitmap_rgb32 &bitmap);
- inline void alpha_set_level();
- inline void alpha_blend32_s(int alphas, u32 s);
- inline void alpha_blend32_d(int alphas, u32 s);
- inline void alpha_blend_1_1(u32 s);
- inline void alpha_blend_1_2(u32 s);
- inline void alpha_blend_1_4(u32 s);
- inline void alpha_blend_1_5(u32 s);
- inline void alpha_blend_1_6(u32 s);
- inline void alpha_blend_1_8(u32 s);
- inline void alpha_blend_1_9(u32 s);
- inline void alpha_blend_1_a(u32 s);
- inline void alpha_blend_2a_0(u32 s);
- inline void alpha_blend_2a_4(u32 s);
- inline void alpha_blend_2a_8(u32 s);
- inline void alpha_blend_2b_0(u32 s);
- inline void alpha_blend_2b_4(u32 s);
- inline void alpha_blend_2b_8(u32 s);
- inline void alpha_blend_3a_0(u32 s);
- inline void alpha_blend_3a_1(u32 s);
- inline void alpha_blend_3a_2(u32 s);
- inline void alpha_blend_3b_0(u32 s);
- inline void alpha_blend_3b_1(u32 s);
- inline void alpha_blend_3b_2(u32 s);
- int dpix_1_noalpha(u32 s_pix);
- int dpix_ret1(u32 s_pix);
- int dpix_ret0(u32 s_pix);
- int dpix_1_1(u32 s_pix);
- int dpix_1_2(u32 s_pix);
- int dpix_1_4(u32 s_pix);
- int dpix_1_5(u32 s_pix);
- int dpix_1_6(u32 s_pix);
- int dpix_1_8(u32 s_pix);
- int dpix_1_9(u32 s_pix);
- int dpix_1_a(u32 s_pix);
- int dpix_2a_0(u32 s_pix);
- int dpix_2a_4(u32 s_pix);
- int dpix_2a_8(u32 s_pix);
- int dpix_3a_0(u32 s_pix);
- int dpix_3a_1(u32 s_pix);
- int dpix_3a_2(u32 s_pix);
- int dpix_2b_0(u32 s_pix);
- int dpix_2b_4(u32 s_pix);
- int dpix_2b_8(u32 s_pix);
- int dpix_3b_0(u32 s_pix);
- int dpix_3b_1(u32 s_pix);
- int dpix_3b_2(u32 s_pix);
- int dpix_2_0(u32 s_pix);
- int dpix_2_4(u32 s_pix);
- int dpix_2_8(u32 s_pix);
- int dpix_3_0(u32 s_pix);
- int dpix_3_1(u32 s_pix);
- int dpix_3_2(u32 s_pix);
- inline void dpix_1_sprite(u32 s_pix);
- inline void dpix_bg(u32 bgcolor);
- void init_alpha_blend_func();
- inline void draw_scanlines(bitmap_rgb32 &bitmap, int xsize, s16 *draw_line_num, const f3_playfield_line_inf **line_t, const int *sprite, u32 orient, int skip_layer_num);
- void visible_tile_check(f3_playfield_line_inf *line_t, int line, u32 x_index_fx, u32 y_index, u16 *pf_data_n);
- void calculate_clip(int y, u16 pri, u32* clip0, u32* clip1, int *line_enable);
- void get_spritealphaclip_info();
- void get_line_ram_info(tilemap_t *tmap, int sx, int sy, int pos, u16 *pf_data_n);
- void get_vram_info(tilemap_t *vram_tilemap, tilemap_t *pixel_tilemap, int sx, int sy);
- void scanline_draw(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
-private:
- optional_device<taito_en_device> m_taito_en;
- optional_device<okim6295_device> m_oki;
-
- optional_shared_ptr<u32> m_paletteram32;
- optional_memory_bank m_okibank;
-
- void bubsympb_oki_w(u8 data);
- u32 f3_control_r(offs_t offset);
- void f3_control_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void f3_unk_w(offs_t offset, u16 data);
- void sound_reset_0_w(u32 data);
- void sound_reset_1_w(u32 data);
- void sound_bankswitch_w(offs_t offset, u32 data, u32 mem_mask = ~0);
- void palette_24bit_w(offs_t offset, u32 data, u32 mem_mask = ~0);
-
- INTERRUPT_GEN_MEMBER(interrupt2);
-
- void bubsympb_oki_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAITO_F3_H
diff --git a/src/mame/includes/taito_h.h b/src/mame/includes/taito_h.h
deleted file mode 100644
index 78e1b9e9cef..00000000000
--- a/src/mame/includes/taito_h.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Yochizo
-/*************************************************************************
-
- Taito H system
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TAITO_H_H
-#define MAME_INCLUDES_TAITO_H_H
-
-#pragma once
-
-#include "machine/taitoio.h"
-#include "video/tc0080vco.h"
-#include "emupal.h"
-
-
-class taitoh_state : public driver_device
-{
-public:
- taitoh_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_tc0080vco(*this, "tc0080vco"),
- m_tc0040ioc(*this, "tc0040ioc"),
- m_palette(*this, "palette"),
- m_z80bank(*this, "z80bank"),
- m_io_p1x(*this, "P1X"),
- m_io_p1y(*this, "P1Y"),
- m_io_p2x(*this, "P2X"),
- m_io_p2y(*this, "P2Y")
- { }
-
- void recordbr(machine_config &config);
- void syvalion(machine_config &config);
- void dleague(machine_config &config);
- void tetristh(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<tc0080vco_device> m_tc0080vco;
- optional_device<tc0040ioc_device> m_tc0040ioc;
- required_device<palette_device> m_palette;
-
- required_memory_bank m_z80bank;
-
- optional_ioport m_io_p1x;
- optional_ioport m_io_p1y;
- optional_ioport m_io_p2x;
- optional_ioport m_io_p2y;
-
- void coin_control_w(u8 data);
- u8 syvalion_input_bypass_r();
- void sound_bankswitch_w(u8 data);
- u32 screen_update_syvalion(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_recordbr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_dleague(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void syvalion_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void recordbr_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority);
- void dleague_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority);
- void taitoh_log_vram();
- void dleague_map(address_map &map);
- void recordbr_map(address_map &map);
- void sound_map(address_map &map);
- void syvalion_map(address_map &map);
- void tetristh_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAITO_H_H
diff --git a/src/mame/includes/taito_l.h b/src/mame/includes/taito_l.h
deleted file mode 100644
index 4e46baa6da3..00000000000
--- a/src/mame/includes/taito_l.h
+++ /dev/null
@@ -1,228 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Olivier Galibert
-#ifndef MAME_INCLUDES_TAITO_L_H
-#define MAME_INCLUDES_TAITO_L_H
-
-#pragma once
-
-#include "machine/74157.h"
-#include "machine/bankdev.h"
-#include "machine/tc009xlvc.h"
-#include "machine/timer.h"
-#include "machine/upd4701.h"
-#include "sound/msm5205.h"
-#include "sound/ym2203.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class taitol_state : public driver_device
-{
-public:
- taitol_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_main_cpu(*this, "maincpu")
- , m_upd4701(*this, "upd4701")
- , m_main_prg(*this, "maincpu")
- {
- }
-
- DECLARE_MACHINE_START(taito_l);
- DECLARE_MACHINE_RESET(taito_l);
- IRQ_CALLBACK_MEMBER(irq_callback);
-
- void coin_control_w(u8 data);
-
-protected:
- /* misc */
- int m_last_irq_level;
- void irq_enable_w(u8 data);
-
- void mcu_control_w(u8 data);
- u8 mcu_control_r();
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_taitol);
- TIMER_DEVICE_CALLBACK_MEMBER(vbl_interrupt);
-
- void l_system_video(machine_config &config);
-
- void common_banks_map(address_map &map);
-
- virtual void state_register();
- virtual void taito_machine_reset();
-
- required_device<tc0090lvc_device> m_main_cpu;
- optional_device<upd4701_device> m_upd4701;
- required_memory_region m_main_prg;
-};
-
-
-class taitol_2cpu_state : public taitol_state
-{
-public:
- taitol_2cpu_state(const machine_config &mconfig, device_type type, const char *tag)
- : taitol_state(mconfig, type, tag)
- , m_audio_cpu(*this, "audiocpu")
- , m_audio_prg(*this, "audiocpu")
- , m_audio_bnk(*this, "audiobank")
- {
- }
-
- void sound_bankswitch_w(u8 data);
-
- void kurikint(machine_config &config);
- void evilston(machine_config &config);
- void raimais(machine_config &config);
-
-protected:
- virtual void state_register() override;
- virtual void taito_machine_reset() override;
-
- void evilston_2_map(address_map &map);
- void evilston_map(address_map &map);
- void kurikint_2_map(address_map &map);
- void kurikint_map(address_map &map);
- void raimais_2_map(address_map &map);
- void raimais_3_map(address_map &map);
- void raimais_map(address_map &map);
-
- required_device<cpu_device> m_audio_cpu;
- required_memory_region m_audio_prg;
- optional_memory_bank m_audio_bnk;
-};
-
-
-class fhawk_state : public taitol_2cpu_state
-{
-public:
- fhawk_state(const machine_config &mconfig, device_type type, const char *tag)
- : taitol_2cpu_state(mconfig, type, tag)
- , m_slave_prg(*this, "slave")
- , m_slave_bnk(*this, "slavebank")
- , m_slave_rombank(0)
- {
- }
-
- void slave_rombank_w(u8 data);
- u8 slave_rombank_r();
- void portA_w(u8 data);
-
- void fhawk(machine_config &config);
-
-protected:
- virtual void state_register() override;
- virtual void taito_machine_reset() override;
-
- void fhawk_2_map(address_map &map);
- void fhawk_3_map(address_map &map);
- void fhawk_map(address_map &map);
-
- required_memory_region m_slave_prg;
- required_memory_bank m_slave_bnk;
-
- u8 m_slave_rombank;
-};
-
-
-class champwr_state : public fhawk_state
-{
-public:
- champwr_state(const machine_config &mconfig, device_type type, const char *tag)
- : fhawk_state(mconfig, type, tag)
- , m_msm(*this, "msm")
- , m_adpcm_rgn(*this, "adpcm")
- , m_adpcm_pos(0)
- , m_adpcm_data(-1)
- {
- }
-
- DECLARE_WRITE_LINE_MEMBER(msm5205_vck);
-
- void msm5205_lo_w(u8 data);
- void msm5205_hi_w(u8 data);
- void msm5205_start_w(u8 data);
- void msm5205_stop_w(u8 data);
- void msm5205_volume_w(u8 data);
-
- void champwr(machine_config &config);
-
-protected:
- virtual void state_register() override;
- virtual void taito_machine_reset() override;
-
- void champwr_2_map(address_map &map);
- void champwr_3_map(address_map &map);
- void champwr_map(address_map &map);
-
- required_device<msm5205_device> m_msm;
- required_region_ptr<u8> m_adpcm_rgn;
-
- int m_adpcm_pos;
- int m_adpcm_data;
-};
-
-
-class taitol_1cpu_state : public taitol_state
-{
-public:
- taitol_1cpu_state(const machine_config &mconfig, device_type type, const char *tag)
- : taitol_state(mconfig, type, tag)
- , m_ymsnd(*this, "ymsnd")
- , m_mux(*this, {"dswmux", "inmux"})
- {
- }
-
- u8 extport_select_and_ym2203_r(offs_t offset);
-
- void init_plottinga();
-
- DECLARE_MACHINE_RESET(plotting);
- DECLARE_MACHINE_RESET(puzznic);
- DECLARE_MACHINE_RESET(palamed);
- DECLARE_MACHINE_RESET(cachat);
-
- void base(machine_config &config);
- void add_muxes(machine_config &config);
- void palamed(machine_config &config);
- void plotting(machine_config &config);
- void puzznici(machine_config &config);
- void cachat(machine_config &config);
- void puzznic(machine_config &config);
-
-protected:
- virtual void state_register() override;
- virtual void taito_machine_reset() override;
-
- void palamed_map(address_map &map);
- void plotting_map(address_map &map);
- void puzznic_map(address_map &map);
- void puzznici_map(address_map &map);
-
- required_device<ym2203_device> m_ymsnd;
- optional_device_array<ls157_x2_device, 2> m_mux;
-};
-
-
-class horshoes_state : public taitol_1cpu_state
-{
-public:
- horshoes_state(const machine_config &mconfig, device_type type, const char *tag)
- : taitol_1cpu_state(mconfig, type, tag)
- {
- }
-
- void horshoes(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- void horshoes_tile_cb(u32 &code);
-
- void bankg_w(u8 data);
- int m_horshoes_gfxbank;
-
- void horshoes_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAITO_L_H
diff --git a/src/mame/includes/taito_o.h b/src/mame/includes/taito_o.h
deleted file mode 100644
index 5870c575c0d..00000000000
--- a/src/mame/includes/taito_o.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-/*************************************************************************
-
- Taito O system
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TAITO_O_H
-#define MAME_INCLUDES_TAITO_O_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "video/tc0080vco.h"
-#include "emupal.h"
-
-class taitoo_state : public driver_device
-{
-public:
- taitoo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_tc0080vco(*this, "tc0080vco"),
- m_palette(*this, "palette"),
- m_io_in(*this, "IN%u", 0U)
- { }
-
- void parentj(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<tc0080vco_device> m_tc0080vco;
- required_device<palette_device> m_palette;
-
- required_ioport_array<2> m_io_in;
-
- void io_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 io_r(offs_t offset, u16 mem_mask = ~0);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(parentj_interrupt);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority);
- void parentj_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAITO_O_H
diff --git a/src/mame/includes/taito_x.h b/src/mame/includes/taito_x.h
deleted file mode 100644
index fc92475a048..00000000000
--- a/src/mame/includes/taito_x.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Howie Cohen, Yochizo
-// thanks-to:Richard Bush
-#ifndef MAME_INCLUDES_TAITO_X_H
-#define MAME_INCLUDES_TAITO_X_H
-
-#pragma once
-
-#include "includes/seta.h"
-#include "machine/taitocchip.h"
-#include "machine/timer.h"
-
-class taitox_state : public seta_state
-{
-public:
- taitox_state(const machine_config &mconfig, device_type type, const char *tag) :
- seta_state(mconfig, type, tag),
- m_cchip(*this, "cchip"),
- m_cchip_irq_clear(*this, "cchip_irq_clear"),
- m_z80bank(*this, "z80bank"),
- m_dswa_io(*this, "DSWA"),
- m_dswb_io(*this, "DSWB"),
- m_in_io(*this, "IN%u", 0U)
- { }
-
- void superman(machine_config &config);
- void ballbros(machine_config &config);
- void kyustrkr(machine_config &config);
- void gigandes(machine_config &config);
- void daisenpu(machine_config &config);
-
-private:
- u16 superman_dsw_input_r(offs_t offset);
- void superman_counters_w(u8 data);
- u16 daisenpu_input_r(offs_t offset);
- void daisenpu_input_w(offs_t offset, u16 data);
- void kyustrkr_input_w(offs_t offset, u16 data);
- void sound_bankswitch_w(u8 data);
- DECLARE_MACHINE_START(taitox);
-
- INTERRUPT_GEN_MEMBER(interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(cchip_irq_clear_cb);
-
- void ballbros_map(address_map &map);
- void daisenpu_map(address_map &map);
- void daisenpu_sound_map(address_map &map);
- void gigandes_map(address_map &map);
- void kyustrkr_map(address_map &map);
- void sound_map(address_map &map);
- void superman_map(address_map &map);
- void taito_x_base_map(address_map &map);
-
- optional_device<taito_cchip_device> m_cchip;
- optional_device<timer_device> m_cchip_irq_clear;
- required_memory_bank m_z80bank;
- optional_ioport m_dswa_io;
- optional_ioport m_dswb_io;
- optional_ioport_array<3> m_in_io;
-};
-
-#endif // MAME_INCLUDES_TAITO_X_H
diff --git a/src/mame/includes/taito_z.h b/src/mame/includes/taito_z.h
deleted file mode 100644
index 6e8dc99f420..00000000000
--- a/src/mame/includes/taito_z.h
+++ /dev/null
@@ -1,195 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves
-/*************************************************************************
-
- Taito Z system
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TAITO_Z_H
-#define MAME_INCLUDES_TAITO_Z_H
-
-#pragma once
-
-#include "audio/taitosnd.h"
-#include "machine/eepromser.h"
-#include "machine/taitoio.h"
-#include "sound/flt_vol.h"
-#include "video/tc0100scn.h"
-#include "video/tc0110pcr.h"
-#include "video/tc0150rod.h"
-#include "video/tc0480scp.h"
-#include "screen.h"
-
-
-class taitoz_state : public driver_device
-{
-public:
- taitoz_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_spritemap(*this, "spritemap"),
- m_z80bank(*this, "z80bank"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_subcpu(*this, "sub"),
- m_eeprom(*this, "eeprom"),
- m_tc0480scp(*this, "tc0480scp"),
- m_tc0150rod(*this, "tc0150rod"),
- m_tc0100scn(*this, "tc0100scn"),
- m_tc0110pcr(*this, "tc0110pcr"),
- m_tc0040ioc(*this, "tc0040ioc"),
- m_tc0220ioc(*this, "tc0220ioc"),
- m_tc0510nio(*this, "tc0510nio"),
- m_tc0140syt(*this, "tc0140syt"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_filter(*this, {"2610.1.r", "2610.1.l", "2610.2.r", "2610.2.l"}),
- m_gas(*this, "GAS"),
- m_brake(*this, "BRAKE"),
- m_steer(*this, "STEER"),
- m_stickx(*this, "STICKX"),
- m_sticky(*this, "STICKY"),
- m_io_eepromout(*this, "EEPROMOUT"),
- m_lamps(*this, "lamp%u", 0U),
- m_shutter_out(*this, "shutter%u", 0U)
- { }
-
- DECLARE_CUSTOM_INPUT_MEMBER(gas_pedal_r);
- DECLARE_CUSTOM_INPUT_MEMBER(brake_pedal_r);
- template <int axis> DECLARE_CUSTOM_INPUT_MEMBER(adstick_r);
-
- void bshark_base(machine_config &config);
- void sci(machine_config &config);
- void spacegun(machine_config &config);
- void chasehq(machine_config &config);
- void dblaxle(machine_config &config);
- void bshark(machine_config &config);
- void aquajack(machine_config &config);
- void nightstr(machine_config &config);
- void contcirc(machine_config &config);
- void racingb(machine_config &config);
- void bsharkjjs(machine_config &config);
- void enforce(machine_config &config);
-
- void init_bshark();
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void device_post_load() override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void screen_config(machine_config &config, int vdisp_start, int vdisp_end);
-
-private:
- enum
- {
- TIMER_TAITOZ_INTERRUPT6,
- };
-
- /* memory pointers */
- required_shared_ptr<u16> m_spriteram;
- required_region_ptr<u16> m_spritemap;
-
- optional_memory_bank m_z80bank;
-
- /* video-related */
- int m_sci_spriteframe;
- int m_road_palbank;
-
- /* misc */
- u16 m_cpua_ctrl;
- s32 m_sci_int6;
- s32 m_ioc220_port;
- u8 m_eep_latch;
- int m_shutter_toggle;
- u8 m_shutter_control;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<tc0480scp_device> m_tc0480scp;
- optional_device<tc0150rod_device> m_tc0150rod;
- optional_device<tc0100scn_device> m_tc0100scn;
- optional_device<tc0110pcr_device> m_tc0110pcr;
- optional_device<tc0040ioc_device> m_tc0040ioc;
- optional_device<tc0220ioc_device> m_tc0220ioc;
- optional_device<tc0510nio_device> m_tc0510nio;
- optional_device<tc0140syt_device> m_tc0140syt; // bshark & spacegun miss the CPUs which shall use TC0140
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_device_array<filter_volume_device, 4> m_filter;
- optional_ioport m_gas;
- optional_ioport m_brake;
- optional_ioport m_steer;
- optional_ioport m_stickx;
- optional_ioport m_sticky;
- optional_ioport m_io_eepromout;
- output_finder<2> m_lamps;
- output_finder<2> m_shutter_out;
-
- void cpua_ctrl_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void chasehq_cpua_ctrl_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void dblaxle_cpua_ctrl_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void spacegun_eeprom_w(u8 data);
- u8 contcirc_input_bypass_r();
- u8 chasehq_input_bypass_r();
- u16 sci_steer_input_r(offs_t offset);
- void spacegun_gun_output_w(u16 data);
- u16 dblaxle_steer_input_r(offs_t offset);
- u16 chasehq_motor_r(offs_t offset);
- void chasehq_motor_w(offs_t offset, u16 data);
- void nightstr_motor_w(offs_t offset, u16 data);
- void coin_control_w(u8 data);
- u16 aquajack_unknown_r();
- void sound_bankswitch_w(u8 data);
- void pancontrol_w(offs_t offset, u8 data);
- u16 sci_spriteframe_r();
- void sci_spriteframe_w(u16 data);
- void contcirc_out_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(scope_vblank);
- DECLARE_VIDEO_START(taitoz);
- DECLARE_MACHINE_START(chasehq);
- u32 screen_update_contcirc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_chasehq(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_bshark(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_sci(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_aquajack(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_spacegun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_dblaxle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_racingb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(sci_interrupt);
- void contcirc_draw_sprites_16x8(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int y_offs);
- void chasehq_draw_sprites_16x16(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int y_offs);
- void bshark_draw_sprites_16x8(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int y_offs);
- void sci_draw_sprites_16x8(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int y_offs);
- void aquajack_draw_sprites_16x8(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,int y_offs);
- void spacegun_draw_sprites_16x8(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,int y_offs);
- void parse_cpu_control();
-
- void aquajack_cpub_map(address_map &map);
- void aquajack_map(address_map &map);
- void bshark_cpub_map(address_map &map);
- void bshark_map(address_map &map);
- void bsharkjjs_map(address_map &map);
- void chasehq_map(address_map &map);
- void chq_cpub_map(address_map &map);
- void contcirc_cpub_map(address_map &map);
- void contcirc_map(address_map &map);
- void dblaxle_cpub_map(address_map &map);
- void dblaxle_map(address_map &map);
- void enforce_cpub_map(address_map &map);
- void enforce_map(address_map &map);
- void nightstr_cpub_map(address_map &map);
- void nightstr_map(address_map &map);
- void racingb_cpub_map(address_map &map);
- void racingb_map(address_map &map);
- void sci_cpub_map(address_map &map);
- void sci_map(address_map &map);
- void spacegun_cpub_map(address_map &map);
- void spacegun_map(address_map &map);
- void z80_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAITO_Z_H
diff --git a/src/mame/includes/taitoair.h b/src/mame/includes/taitoair.h
deleted file mode 100644
index ce38ccb856c..00000000000
--- a/src/mame/includes/taitoair.h
+++ /dev/null
@@ -1,155 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:Angelo Salese, Olivier Galibert
-/*************************************************************************
-
- Taito Air System
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TAITOAIR_H
-#define MAME_INCLUDES_TAITOAIR_H
-
-#pragma once
-
-#include "cpu/tms32025/tms32025.h"
-#include "machine/taitoio.h"
-#include "machine/taitoio_yoke.h"
-#include "video/tc0080vco.h"
-#include "emupal.h"
-#include "screen.h"
-
-enum { TAITOAIR_FRAC_SHIFT = 16, TAITOAIR_POLY_MAX_PT = 16 };
-
-struct taitoair_spoint {
- s32 x, y;
-};
-
-struct taitoair_poly {
- struct taitoair_spoint p[TAITOAIR_POLY_MAX_PT];
- int pcount;
- u16 header;
-};
-
-
-class taitoair_state : public driver_device
-{
-public:
- taitoair_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_m68000_mainram(*this, "m68000_mainram")
- , m_line_ram(*this, "line_ram")
- , m_dsp_ram(*this, "dsp_ram")
- , m_paletteram(*this, "paletteram")
- , m_gradram(*this, "gradram")
- , m_tc0430grw(*this, "tc0430grw")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_dsp(*this, "dsp")
- , m_tc0080vco(*this, "tc0080vco")
- , m_tc0220ioc(*this, "tc0220ioc")
- , m_yoke(*this, "yokectrl")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_z80bank(*this, "z80bank")
- { }
-
- void airsys(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<u16> m_m68000_mainram;
- required_shared_ptr<u16> m_line_ram;
- required_shared_ptr<u16> m_dsp_ram; // Shared 68000/TMS32025 RAM
- required_shared_ptr<u16> m_paletteram;
- required_shared_ptr<u16> m_gradram;
- required_shared_ptr<u16> m_tc0430grw;
-
- /* video-related */
- taitoair_poly m_q;
-
- /* misc */
- int m_dsp_hold_signal;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<tms32025_device> m_dsp;
- required_device<tc0080vco_device> m_tc0080vco;
- required_device<tc0220ioc_device> m_tc0220ioc;
- required_device<taitoio_yoke_device> m_yoke;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_memory_bank m_z80bank;
-
- std::unique_ptr<bitmap_ind16> m_framebuffer[2];
-
- /* 3d info */
- s16 m_frustumLeft;
- s16 m_frustumBottom;
- s16 m_eyecoordBuffer[4]; /* homogeneous */
-
- bool m_gradbank;
-
- u16 m_dsp_test_object_type;
- s16 m_dsp_test_or_clip, m_dsp_test_and_clip;
- s16 m_dsp_test_x, m_dsp_test_y, m_dsp_test_z;
-
- void dsp_test_start_w(u16 data);
- void dsp_test_x_w(u16 data);
- void dsp_test_y_w(u16 data);
- void dsp_test_z_w(u16 data);
- u16 dsp_test_point_r();
- u16 dsp_test_or_clip_r();
- u16 dsp_test_and_clip_r();
-
- s16 m_dsp_muldiv_a_1, m_dsp_muldiv_b_1, m_dsp_muldiv_c_1;
-
- void dsp_muldiv_a_1_w(u16 data);
- void dsp_muldiv_b_1_w(u16 data);
- void dsp_muldiv_c_1_w(u16 data);
- u16 dsp_muldiv_1_r();
-
- s16 m_dsp_muldiv_a_2, m_dsp_muldiv_b_2, m_dsp_muldiv_c_2;
-
- void dsp_muldiv_a_2_w(u16 data);
- void dsp_muldiv_b_2_w(u16 data);
- void dsp_muldiv_c_2_w(u16 data);
- u16 dsp_muldiv_2_r();
-
- //bitmap_ind16 *m_buffer3d;
- void system_control_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 lineram_r(offs_t offset);
- void lineram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 dspram_r(offs_t offset);
- void dspram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 dsp_HOLD_signal_r();
- void dsp_HOLDA_signal_w(offs_t offset, u16 data);
- void paletteram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void gradram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 stick_input_r(offs_t offset);
- u16 stick2_input_r(offs_t offset);
- void coin_control_w(u8 data);
- void sound_bankswitch_w(u8 data);
- void dsp_flags_w(offs_t offset, u16 data);
- void dma_regs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- int draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- int draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int start_offset);
- void fb_copy_op(void);
- void fb_fill_op(void);
- void fb_erase_op(void);
-
- void fill_slope(bitmap_ind16 &bitmap, const rectangle &cliprect, u16 header, s32 x1, s32 x2, s32 sl1, s32 sl2, s32 y1, s32 y2, s32 *nx1, s32 *nx2);
- void fill_poly(bitmap_ind16 &bitmap, const rectangle &cliprect, const struct taitoair_poly *q);
-
- void DSP_map_data(address_map &map);
- void DSP_map_program(address_map &map);
- void airsys_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAITOAIR_H
diff --git a/src/mame/includes/taitoipt.h b/src/mame/includes/taitoipt.h
deleted file mode 100644
index ea550781e58..00000000000
--- a/src/mame/includes/taitoipt.h
+++ /dev/null
@@ -1,380 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves, Bryan McPhail, Brad Oliver, Andrew Prime, Brian Troha, Nicola Salmoria,Stephane Humbert
-/*******************************************************************************
-
- Input port macros used by many games in multiple Taito drivers
-
-*******************************************************************************/
-
-
-/**************************** Machine Dip Switches ****************************/
-
-/* with location */
-#define TAITO_DSWA_BITS_2_TO_3_LOC(DIPBANK) \
- PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, #DIPBANK":3" ) \
- PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION(#DIPBANK":4") \
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x08, DEF_STR( On ) )
-
-#define TAITO_DSWA_BITS_1_TO_3_LOC(DIPBANK) \
- PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION(#DIPBANK":2") \
- PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( On ) ) \
- TAITO_DSWA_BITS_2_TO_3_LOC(DIPBANK)
-
-#define TAITO_MACHINE_COCKTAIL_LOC(DIPBANK) \
- PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION(#DIPBANK":1") \
- PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) \
- PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) \
- TAITO_DSWA_BITS_1_TO_3_LOC(DIPBANK)
-
-#define TAITO_MACHINE_NO_COCKTAIL_LOC(DIPBANK) \
- PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, #DIPBANK":1" ) \
- TAITO_DSWA_BITS_1_TO_3_LOC(DIPBANK)
-
-
-/* without location */
-#define TAITO_DSWA_BITS_2_TO_3 \
- PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) \
- PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x08, DEF_STR( On ) )
-
-#define TAITO_DSWA_BITS_1_TO_3 \
- PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) \
- PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( On ) ) \
- TAITO_DSWA_BITS_2_TO_3
-
-#define TAITO_MACHINE_COCKTAIL \
- PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) \
- PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) \
- TAITO_DSWA_BITS_1_TO_3
-
-#define TAITO_MACHINE_NO_COCKTAIL \
- PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW ) \
- TAITO_DSWA_BITS_1_TO_3
-
-
-/**************************** Coinage Dip Switches ****************************/
-
-/* with location */
-#define TAITO_COINAGE_JAPAN_OLD_COIN_A_LOC(DIPBANK) \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":5,6") \
- PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) )
-
-#define TAITO_COINAGE_JAPAN_OLD_COIN_B_LOC(DIPBANK) \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":7,8") \
- PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) )
-
-#define TAITO_COINAGE_JAPAN_NEW_COIN_A_LOC(DIPBANK) \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":5,6") \
- PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) )
-
-#define TAITO_COINAGE_JAPAN_NEW_COIN_B_LOC(DIPBANK) \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":7,8") \
- PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) )
-
-#define TAITO_COINAGE_WORLD_COIN_A_LOC(DIPBANK) \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":5,6") \
- PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) )
-
-#define TAITO_COINAGE_WORLD_COIN_B_LOC(DIPBANK) \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":7,8") \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) )
-
-#define TAITO_COINAGE_US_COIN_START_LOC(DIPBANK) \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coinage ) ) PORT_DIPLOCATION(#DIPBANK":5,6") \
- PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) )
-
-#define TAITO_COINAGE_US_COIN_CONT_LOC(DIPBANK) \
- PORT_DIPNAME( 0xc0, 0xc0, "Price to Continue" ) PORT_DIPLOCATION(#DIPBANK":7,8") \
- PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0xc0, "Same as Start" )
-
-#define TAITO_COINAGE_JAPAN_OLD_LOC(DIPBANK) \
- TAITO_COINAGE_JAPAN_OLD_COIN_A_LOC(DIPBANK) \
- TAITO_COINAGE_JAPAN_OLD_COIN_B_LOC(DIPBANK)
-
-#define TAITO_COINAGE_JAPAN_NEW_LOC(DIPBANK) \
- TAITO_COINAGE_JAPAN_NEW_COIN_A_LOC(DIPBANK) \
- TAITO_COINAGE_JAPAN_NEW_COIN_B_LOC(DIPBANK)
-
-#define TAITO_COINAGE_WORLD_LOC(DIPBANK) \
- TAITO_COINAGE_WORLD_COIN_A_LOC(DIPBANK) \
- TAITO_COINAGE_WORLD_COIN_B_LOC(DIPBANK)
-
-#define TAITO_COINAGE_US_LOC(DIPBANK) \
- TAITO_COINAGE_US_COIN_START_LOC(DIPBANK) \
- TAITO_COINAGE_US_COIN_CONT_LOC(DIPBANK)
-
-
-/* without location */
-#define TAITO_COINAGE_JAPAN_OLD_COIN_A \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) )
-
-#define TAITO_COINAGE_JAPAN_OLD_COIN_B \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) )
-
-#define TAITO_COINAGE_JAPAN_NEW_COIN_A \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) )
-
-#define TAITO_COINAGE_JAPAN_NEW_COIN_B \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) )
-
-#define TAITO_COINAGE_WORLD_COIN_A \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) )
-
-#define TAITO_COINAGE_WORLD_COIN_B \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) )
-
-#define TAITO_COINAGE_US_COIN_START \
- PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coinage ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) )
-
-#define TAITO_COINAGE_US_COIN_CONT \
- PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Continue_Price ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0xc0, "Same as Start" )
-
-#define TAITO_COINAGE_JAPAN_OLD \
- TAITO_COINAGE_JAPAN_OLD_COIN_A \
- TAITO_COINAGE_JAPAN_OLD_COIN_B
-
-#define TAITO_COINAGE_JAPAN_NEW \
- TAITO_COINAGE_JAPAN_NEW_COIN_A \
- TAITO_COINAGE_JAPAN_NEW_COIN_B
-
-#define TAITO_COINAGE_WORLD \
- TAITO_COINAGE_WORLD_COIN_A \
- TAITO_COINAGE_WORLD_COIN_B
-
-#define TAITO_COINAGE_US \
- TAITO_COINAGE_US_COIN_START \
- TAITO_COINAGE_US_COIN_CONT
-
-
-/************************** Difficulty Dip Switches ***************************/
-
-/* with location */
-#define TAITO_DIFFICULTY_LOC(DIPBANK) \
- PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION(#DIPBANK":1,2") \
- PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) \
- PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) \
- PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
-
-/* without location */
-#define TAITO_DIFFICULTY \
- PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) \
- PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) \
- PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) \
- PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
-
-
-/************************** Joysticks and buttons *****************************/
-
-/* generic (might be moved elsewhere) */
-#define INPUT_GENERIC_JOY_LOW_NIBBLE(PL, STATE, WAY, B01, B02, B04, B08) \
- PORT_BIT( 0x01, STATE, IPT_JOYSTICK_##B01 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x02, STATE, IPT_JOYSTICK_##B02 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x04, STATE, IPT_JOYSTICK_##B04 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x08, STATE, IPT_JOYSTICK_##B08 ) WAY PORT_PLAYER(PL)
-
-#define INPUT_GENERIC_JOY_HIGH_NIBBLE(PL, STATE, WAY, B10, B20, B40, B80) \
- PORT_BIT( 0x10, STATE, IPT_JOYSTICK_##B10 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x20, STATE, IPT_JOYSTICK_##B20 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x40, STATE, IPT_JOYSTICK_##B40 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x80, STATE, IPT_JOYSTICK_##B80 ) WAY PORT_PLAYER(PL)
-
-
-/* Taito generic (more might be needed) */
-#define TAITO_GENERIC_JOY_MONO_UDLR(PL) \
- INPUT_GENERIC_JOY_LOW_NIBBLE(PL, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, LEFT, RIGHT)
-
-#define TAITO_GENERIC_JOY_MONO_UDRL(PL) \
- INPUT_GENERIC_JOY_LOW_NIBBLE(PL, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, RIGHT, LEFT)
-
-#define TAITO_GENERIC_JOY_MONO_LRUD(PL) \
- INPUT_GENERIC_JOY_LOW_NIBBLE(PL, IP_ACTIVE_LOW, PORT_8WAY, LEFT, RIGHT, UP, DOWN)
-
-#define TAITO_GENERIC_JOY_DUAL_UDLR(PL_L, PL_H) \
- INPUT_GENERIC_JOY_LOW_NIBBLE(PL_L, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, LEFT, RIGHT) \
- INPUT_GENERIC_JOY_HIGH_NIBBLE(PL_H, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, LEFT, RIGHT)
-
-#define TAITO_GENERIC_JOY_DUAL_UDRL(PL_L, PL_H) \
- INPUT_GENERIC_JOY_LOW_NIBBLE(PL_L, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, RIGHT, LEFT) \
- INPUT_GENERIC_JOY_HIGH_NIBBLE(PL_H, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, RIGHT, LEFT)
-
-
-#define TAITO_GENERIC_BUTTONS_LOW_NIBBLE(PL, STATE, BUTTON_A, BUTTON_B, BUTTON_C) \
- PORT_BIT( 0x01, STATE, IPT_##BUTTON_A ) PORT_PLAYER(PL) \
- PORT_BIT( 0x02, STATE, IPT_##BUTTON_B ) PORT_PLAYER(PL) \
- PORT_BIT( 0x04, STATE, IPT_##BUTTON_C ) PORT_PLAYER(PL)
- /* DO NOT fill bit 3 as it may be defined as START button ! */
-
-#define TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, STATE, BUTTON_A, BUTTON_B, BUTTON_C) \
- PORT_BIT( 0x10, STATE, IPT_##BUTTON_A ) PORT_PLAYER(PL) \
- PORT_BIT( 0x20, STATE, IPT_##BUTTON_B ) PORT_PLAYER(PL) \
- PORT_BIT( 0x40, STATE, IPT_##BUTTON_C ) PORT_PLAYER(PL)
- /* DO NOT fill bit 7 as it may be defined as START button ! */
-
-#define TAITO_GENERIC_1_BUTTON(PL) \
- TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, UNKNOWN, UNKNOWN) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define TAITO_GENERIC_2_BUTTONS(PL) \
- TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, BUTTON2, UNKNOWN) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define TAITO_GENERIC_3_BUTTONS(PL) \
- TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, BUTTON2, BUTTON3) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
-#define TAITO_GENERIC_1_BUTTON_START(PL) \
- TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, UNKNOWN, UNKNOWN) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##PL )
-
-#define TAITO_GENERIC_2_BUTTONS_START(PL) \
- TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, BUTTON2, UNKNOWN) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##PL )
-
-#define TAITO_GENERIC_3_BUTTONS_START(PL) \
- TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, BUTTON2, BUTTON3) \
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##PL )
-
-
-/* Taito games (more might be needed) */
-#define TAITO_JOY_UDLR_1_BUTTON(PL) \
- TAITO_GENERIC_JOY_MONO_UDLR(PL) \
- TAITO_GENERIC_1_BUTTON(PL)
-
-#define TAITO_JOY_UDLR_2_BUTTONS(PL) \
- TAITO_GENERIC_JOY_MONO_UDLR(PL) \
- TAITO_GENERIC_2_BUTTONS(PL)
-
-#define TAITO_JOY_UDLR_3_BUTTONS(PL) \
- TAITO_GENERIC_JOY_MONO_UDLR(PL) \
- TAITO_GENERIC_3_BUTTONS(PL)
-
-#define TAITO_JOY_UDRL_1_BUTTON(PL) \
- TAITO_GENERIC_JOY_MONO_UDRL(PL) \
- TAITO_GENERIC_1_BUTTON(PL)
-
-#define TAITO_JOY_UDRL_2_BUTTONS(PL) \
- TAITO_GENERIC_JOY_MONO_UDRL(PL) \
- TAITO_GENERIC_2_BUTTONS(PL)
-
-#define TAITO_JOY_UDRL_3_BUTTONS(PL) \
- TAITO_GENERIC_JOY_MONO_UDRL(PL) \
- TAITO_GENERIC_3_BUTTONS(PL)
-
-#define TAITO_JOY_LRUD_1_BUTTON(PL) \
- TAITO_GENERIC_JOY_MONO_LRUD(PL) \
- TAITO_GENERIC_1_BUTTON(PL)
-
-#define TAITO_JOY_LRUD_2_BUTTONS(PL) \
- TAITO_GENERIC_JOY_MONO_LRUD(PL) \
- TAITO_GENERIC_2_BUTTONS(PL)
-
-#define TAITO_JOY_LRUD_3_BUTTONS(PL) \
- TAITO_GENERIC_JOY_MONO_LRUD(PL) \
- TAITO_GENERIC_3_BUTTONS(PL)
-
-
-#define TAITO_JOY_UDLR_1_BUTTON_START(PL) \
- TAITO_GENERIC_JOY_MONO_UDLR(PL) \
- TAITO_GENERIC_1_BUTTON_START(PL)
-
-#define TAITO_JOY_UDLR_2_BUTTONS_START(PL) \
- TAITO_GENERIC_JOY_MONO_UDLR(PL) \
- TAITO_GENERIC_2_BUTTONS_START(PL)
-
-#define TAITO_JOY_UDLR_3_BUTTONS_START(PL) \
- TAITO_GENERIC_JOY_MONO_UDLR(PL) \
- TAITO_GENERIC_3_BUTTONS_START(PL)
-
-#define TAITO_JOY_UDRL_1_BUTTON_START(PL) \
- TAITO_GENERIC_JOY_MONO_UDRL(PL) \
- TAITO_GENERIC_1_BUTTONS_START(PL)
-
-#define TAITO_JOY_UDRL_2_BUTTONS_START(PL) \
- TAITO_GENERIC_JOY_MONO_UDRL(PL) \
- TAITO_GENERIC_2_BUTTONS_START(PL)
-
-#define TAITO_JOY_UDRL_3_BUTTONS_START(PL) \
- TAITO_GENERIC_JOY_MONO_UDRL(PL) \
- TAITO_GENERIC_3_BUTTONS_START(PL)
-
-#define TAITO_JOY_LRUD_1_BUTTON_START(PL) \
- TAITO_GENERIC_JOY_MONO_LRUD(PL) \
- TAITO_GENERIC_1_BUTTON_START(PL)
-
-#define TAITO_JOY_LRUD_2_BUTTONS_START(PL) \
- TAITO_GENERIC_JOY_MONO_LRUD(PL) \
- TAITO_GENERIC_2_BUTTONS_START(PL)
-
-#define TAITO_JOY_LRUD_3_BUTTONS_START(PL) \
- TAITO_GENERIC_JOY_MONO_LRUD(PL) \
- TAITO_GENERIC_3_BUTTONS_START(PL)
-
-
-#define TAITO_JOY_DUAL_UDLR(PL_L, PL_H) \
- TAITO_GENERIC_JOY_DUAL_UDLR(PL_L, PL_H)
-
-#define TAITO_JOY_DUAL_UDRL(PL_L, PL_H) \
- TAITO_GENERIC_JOY_DUAL_UDRL(PL_L, PL_H)
diff --git a/src/mame/includes/taitojc.h b/src/mame/includes/taitojc.h
deleted file mode 100644
index 54455ce958b..00000000000
--- a/src/mame/includes/taitojc.h
+++ /dev/null
@@ -1,155 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:Ville Linde, Angelo Salese, hap
-/*************************************************************************
-
- Taito JC System
-
-*************************************************************************/
-
-#include "video/tc0780fpa.h"
-#include "machine/taitoio.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class taitojc_state : public driver_device
-{
-public:
- taitojc_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_dsp(*this,"dsp"),
- m_tc0640fio(*this, "tc0640fio"),
- m_dspgfx(*this, "dspgfx"),
- m_vram(*this, "vram"),
- m_objlist(*this, "objlist"),
- m_main_ram(*this, "main_ram"),
- m_dsp_shared_ram(*this, "dsp_shared"),
- m_palette_ram(*this, "palette_ram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_analog_ports(*this, "AN.%u", 0),
- m_tc0780fpa(*this, "tc0780fpa"),
- m_lamps(*this, "lamp%u", 0U),
- m_counters(*this, "counter%u", 0U)
- {
- m_speed_meter = 0;
- m_brake_meter = 0;
- }
-
- void taitojc(machine_config &config);
- void dendego(machine_config &config);
-
- void init_dendego2();
- void init_dangcurv();
- void init_taitojc();
-
-private:
- // device/memory pointers
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_dsp;
- required_device<tc0640fio_device> m_tc0640fio;
- required_region_ptr<uint16_t> m_dspgfx;
-
- required_shared_ptr<uint32_t> m_vram;
- required_shared_ptr<uint32_t> m_objlist;
- required_shared_ptr<uint32_t> m_main_ram;
- required_shared_ptr<uint16_t> m_dsp_shared_ram;
- required_shared_ptr<uint32_t> m_palette_ram;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_ioport_array<8> m_analog_ports;
-
- required_device<tc0780fpa_device> m_tc0780fpa;
-
- output_finder<8> m_lamps;
- output_finder<5> m_counters;
-
- uint32_t m_dsp_rom_pos;
-
- int m_first_dsp_reset;
- int16_t m_viewport_data[3];
- int16_t m_projection_data[3];
- int16_t m_intersection_data[3];
-
- int m_gfx_index;
-
- std::unique_ptr<uint32_t[]> m_char_ram;
- std::unique_ptr<uint32_t[]> m_tile_ram;
- tilemap_t *m_tilemap;
-
- uint8_t m_mcu_comm_main;
- uint8_t m_mcu_comm_hc11;
- uint8_t m_mcu_data_main;
- uint8_t m_mcu_data_hc11;
-
- uint8_t m_has_dsp_hack;
-
- int m_speed_meter;
- int m_brake_meter;
-
- void coin_control_w(uint8_t data);
-
- uint8_t mcu_comm_r(offs_t offset);
- void mcu_comm_w(offs_t offset, uint8_t data);
- uint8_t jc_pcbid_r(offs_t offset);
- uint8_t jc_lan_r();
- void jc_lan_w(uint8_t data);
- void jc_irq_unk_w(uint8_t data);
- void dendego_speedmeter_w(uint8_t data);
- void dendego_brakemeter_w(uint8_t data);
-
- uint8_t hc11_comm_r();
- void hc11_comm_w(uint8_t data);
- void hc11_output_w(uint8_t data);
- uint8_t hc11_data_r();
- void hc11_data_w(uint8_t data);
- template <int Ch> uint8_t hc11_analog_r();
-
- uint16_t dsp_shared_r(offs_t offset);
- void dsp_shared_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t dsp_to_main_7fe_r(offs_t offset, uint16_t mem_mask = ~0);
- void dsp_to_main_7fe_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void main_to_dsp_7ff_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t dsp_rom_r();
- void dsp_rom_w(offs_t offset, uint16_t data);
-
- void dsp_math_viewport_w(offs_t offset, uint16_t data);
- void dsp_math_projection_w(offs_t offset, uint16_t data);
- uint16_t dsp_math_projection_y_r();
- uint16_t dsp_math_projection_x_r();
- void dsp_math_intersection_w(offs_t offset, uint16_t data);
- uint16_t dsp_math_intersection_r();
- uint16_t dsp_math_unk_r();
-
- uint16_t taitojc_dsp_idle_skip_r();
- uint16_t dendego2_dsp_idle_skip_r();
-
- uint32_t taitojc_palette_r(offs_t offset);
- void taitojc_palette_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t taitojc_tile_r(offs_t offset);
- uint32_t taitojc_char_r(offs_t offset);
- void taitojc_tile_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void taitojc_char_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(taitojc_tile_info);
- virtual void machine_reset() override;
- virtual void machine_start() override;
- virtual void video_start() override;
- uint32_t screen_update_taitojc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_dendego(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(taitojc_vblank);
- void draw_object(bitmap_ind16 &bitmap, const rectangle &cliprect, uint32_t w1, uint32_t w2, uint8_t bank_type);
- void draw_object_bank(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t bank_type, uint8_t pri);
-
- void dendego_map(address_map &map);
- void hc11_pgm_map(address_map &map);
- void taitojc_map(address_map &map);
- void tms_data_map(address_map &map);
- void tms_program_map(address_map &map);
- void cpu_space_map(address_map &map);
-};
diff --git a/src/mame/includes/taitosj.h b/src/mame/includes/taitosj.h
deleted file mode 100644
index e64c4dc7d08..00000000000
--- a/src/mame/includes/taitosj.h
+++ /dev/null
@@ -1,171 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-
-#include "machine/taitosjsec.h"
-
-#include "machine/input_merger.h"
-
-#include "sound/dac.h"
-#include "sound/discrete.h"
-#include "sound/ay8910.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-
-class taitosj_state : public driver_device
-{
-public:
- taitosj_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram_1(*this, "videoram_1"),
- m_videoram_2(*this, "videoram_2"),
- m_videoram_3(*this, "videoram_3"),
- m_spriteram(*this, "spriteram"),
- m_paletteram(*this, "paletteram"),
- m_characterram(*this, "characterram"),
- m_scroll(*this, "scroll"),
- m_colscrolly(*this, "colscrolly"),
- m_gfxpointer(*this, "gfxpointer"),
- m_colorbank(*this, "colorbank"),
- m_video_mode(*this, "video_mode"),
- m_video_priority(*this, "video_priority"),
- m_collision_reg(*this, "collision_reg"),
- m_kikstart_scrollram(*this, "kikstart_scroll"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_mcu(*this, "bmcu"),
- m_soundnmi(*this, "soundnmi"),
- m_soundnmi2(*this, "soundnmi2"),
- m_dac(*this, "dac"),
- m_dacvol(*this, "dacvol"),
- m_ay1(*this, "ay1"),
- m_ay2(*this, "ay2"),
- m_ay3(*this, "ay3"),
- m_ay4(*this, "ay4"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette") { }
-
- void mcu(machine_config &config);
- void nomcu(machine_config &config);
- void kikstart(machine_config &config);
-
- void init_alpinea();
- void init_alpine();
- void init_taitosj();
- void init_junglhbr();
- void init_spacecr();
-
- DECLARE_CUSTOM_INPUT_MEMBER(input_port_4_f0_r);
- template <int Player> DECLARE_CUSTOM_INPUT_MEMBER(kikstart_gear_r);
-
-private:
- required_shared_ptr<uint8_t> m_videoram_1;
- required_shared_ptr<uint8_t> m_videoram_2;
- required_shared_ptr<uint8_t> m_videoram_3;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_paletteram;
- required_shared_ptr<uint8_t> m_characterram;
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_colscrolly;
- required_shared_ptr<uint8_t> m_gfxpointer;
- required_shared_ptr<uint8_t> m_colorbank;
- required_shared_ptr<uint8_t> m_video_mode;
- required_shared_ptr<uint8_t> m_video_priority;
- required_shared_ptr<uint8_t> m_collision_reg;
- optional_shared_ptr<uint8_t> m_kikstart_scrollram;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<taito_sj_security_mcu_device> m_mcu;
- required_device<input_merger_device> m_soundnmi;
- required_device<input_merger_device> m_soundnmi2;
- required_device<dac_8bit_r2r_device> m_dac;
- required_device<discrete_sound_device> m_dacvol;
- required_device<ay8910_device> m_ay1;
- required_device<ay8910_device> m_ay2;
- required_device<ay8910_device> m_ay3;
- required_device<ay8910_device> m_ay4;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- typedef void (taitosj_state::*copy_layer_func_t)(bitmap_ind16 &,
- const rectangle &, int, int *, rectangle *);
- uint8_t m_input_port_4_f0;
- uint8_t m_kikstart_gears[2];
-
- uint8_t m_spacecr_prot_value;
- uint8_t m_protection_value;
- uint32_t m_address;
- uint8_t m_soundlatch_data;
- bool m_soundlatch_flag; // 74ls74 1/2 @ GAME BOARD IC42
- bool m_sound_semaphore2; // 74ls74 2/2 @ GAME BOARD IC42
- bitmap_ind16 m_layer_bitmap[3];
- bitmap_ind16 m_sprite_sprite_collbitmap1;
- bitmap_ind16 m_sprite_sprite_collbitmap2;
- bitmap_ind16 m_sprite_layer_collbitmap1;
- bitmap_ind16 m_sprite_layer_collbitmap2[3];
- int m_draw_order[32][4];
- void soundlatch_w(uint8_t data);
- void sound_semaphore2_w(uint8_t data);
- TIMER_CALLBACK_MEMBER(soundlatch_w_cb);
- TIMER_CALLBACK_MEMBER(soundlatch_clear7_w_cb);
- TIMER_CALLBACK_MEMBER(sound_semaphore2_w_cb);
- TIMER_CALLBACK_MEMBER(sound_semaphore2_clear_w_cb);
- uint8_t soundlatch_r();
- void soundlatch_clear7_w(uint8_t data);
- uint8_t soundlatch_flags_r();
- void sound_semaphore2_clear_w(uint8_t data);
- void taitosj_bankswitch_w(uint8_t data);
- uint8_t taitosj_fake_data_r();
- void taitosj_fake_data_w(uint8_t data);
- uint8_t taitosj_fake_status_r();
- uint8_t mcu_mem_r(offs_t offset);
- void mcu_mem_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(mcu_intrq_w);
- DECLARE_WRITE_LINE_MEMBER(mcu_busrq_w);
- uint8_t spacecr_prot_r();
- void alpine_protection_w(uint8_t data);
- void alpinea_bankswitch_w(uint8_t data);
- uint8_t alpine_port_2_r();
- uint8_t taitosj_gfxrom_r();
- void taitosj_characterram_w(offs_t offset, uint8_t data);
- void junglhbr_characterram_w(offs_t offset, uint8_t data);
- void taitosj_collision_reg_clear_w(uint8_t data);
-
- void taitosj_sndnmi_msk_w(uint8_t data);
- void input_port_4_f0_w(uint8_t data);
- void taitosj_dacvol_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_taitosj(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_kikstart(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void init_common();
- void reset_common();
- void set_pens();
- void compute_draw_order();
- inline int get_sprite_xy(uint8_t which, uint8_t* sx, uint8_t* sy);
- inline gfx_element *get_sprite_gfx_element(uint8_t which);
- void check_sprite_sprite_collision();
- void calculate_sprite_areas(int *sprites_on, rectangle *sprite_areas);
- int check_sprite_layer_bitpattern(int which, rectangle *sprite_areas);
- void check_sprite_layer_collision(int *sprites_on, rectangle *sprite_areas);
- void draw_layers();
- void draw_sprites(bitmap_ind16 &bitmap);
- void check_collision(int *sprites_on, rectangle *sprite_areas);
- int check_sprite_sprite_bitpattern(int sx1, int sy1, int which1,int sx2, int sy2, int which2);
- void taitosj_copy_layer(bitmap_ind16 &bitmap, const rectangle &cliprect,int which, int *sprites_on, rectangle *sprite_areas);
- void kikstart_copy_layer(bitmap_ind16 &bitmap, const rectangle &cliprect,int which, int *sprites_on, rectangle *sprite_areas);
- void copy_layer(bitmap_ind16 &bitmap, const rectangle &cliprect,copy_layer_func_t copy_layer_func, int which, int *sprites_on, rectangle *sprite_areas);
- void copy_layers(bitmap_ind16 &bitmap, const rectangle &cliprect,copy_layer_func_t copy_layer_func, int *sprites_on, rectangle *sprite_areas);
- int video_update_common(bitmap_ind16 &bitmap, const rectangle &cliprect, copy_layer_func_t copy_layer_func);
-
- void kikstart_main_map(address_map &map);
- void taitosj_audio_map(address_map &map);
- void taitosj_main_mcu_map(address_map &map);
- void taitosj_main_nomcu_map(address_map &map);
-};
diff --git a/src/mame/includes/tandy2k.h b/src/mame/includes/tandy2k.h
deleted file mode 100644
index eb3c829b7b0..00000000000
--- a/src/mame/includes/tandy2k.h
+++ /dev/null
@@ -1,278 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_TANDY2K_H
-#define MAME_INCLUDES_TANDY2K_H
-
-#include "bus/centronics/ctronics.h"
-#include "bus/rs232/rs232.h"
-#include "cpu/i86/i186.h"
-#include "cpu/mcs48/mcs48.h"
-#include "formats/tandy2k_dsk.h"
-#include "imagedev/floppy.h"
-#include "imagedev/harddriv.h"
-#include "machine/i8255.h"
-#include "machine/i8251.h"
-#include "machine/pckeybrd.h"
-#include "machine/pit8253.h"
-#include "machine/pic8259.h"
-#include "machine/ram.h"
-#include "machine/tandy2kb.h"
-#include "machine/timer.h"
-#include "machine/upd765.h"
-#include "machine/bankdev.h"
-#include "sound/spkrdev.h"
-#include "video/crt9007.h"
-#include "video/crt9021.h"
-#include "video/crt9212.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-#define I80186_TAG "u76"
-#define I8255A_TAG "u75"
-#define I8251A_TAG "u41"
-#define I8253_TAG "u40"
-#define I8259A_0_TAG "u42"
-#define I8259A_1_TAG "u43"
-#define I8272A_TAG "u121"
-#define CRT9007_TAG "u16"
-#define CRT9212_0_TAG "u55"
-#define CRT9212_1_TAG "u15"
-#define CRT9021B_TAG "u14"
-#define WD1010_TAG "u18"
-#define WD1100_11_TAG "u12"
-#define CENTRONICS_TAG "centronics"
-#define RS232_TAG "rs232"
-
-class tandy2k_state : public driver_device
-{
-public:
- tandy2k_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, I80186_TAG),
- m_uart(*this, I8251A_TAG),
- m_i8255a(*this, I8255A_TAG),
- m_pit(*this, I8253_TAG),
- m_fdc(*this, I8272A_TAG),
- m_pic0(*this, I8259A_0_TAG),
- m_pic1(*this, I8259A_1_TAG),
- m_vpac(*this, CRT9007_TAG),
- m_drb0(*this, CRT9212_0_TAG),
- m_drb1(*this, CRT9212_1_TAG),
- m_vac(*this, CRT9021B_TAG),
- m_colpal(*this, "colpal"),
- m_vrambank(*this, "vrambank"),
- m_timer_vidldsh(*this, "vidldsh"),
- m_centronics(*this, CENTRONICS_TAG),
- m_speaker(*this, "speaker"),
- m_ram(*this, RAM_TAG),
- m_floppy0(*this, I8272A_TAG ":0:525qd"),
- m_floppy1(*this, I8272A_TAG ":1:525qd"),
- m_rs232(*this, RS232_TAG),
- m_kb(*this, TANDY2K_KEYBOARD_TAG),
- m_hires_ram(*this, "hires_ram"),
- m_char_ram(*this, "char_ram", 0x1000, ENDIANNESS_LITTLE),
- m_pc_keyboard(*this, "pc_keyboard"),
- m_dma_mux(0),
- m_kbdclk(0),
- m_kbddat(0),
- m_kbdin(0),
- m_extclk(0),
- m_rxrdy(0),
- m_txrdy(0),
- m_pb_sel(0),
- m_vram_base(0),
- m_vidouts(0),
- m_clkspd(-1),
- m_clkcnt(-1),
- m_blc(0),
- m_bkc(0),
- m_cblank(0),
- m_dblc(0),
- m_dbkc(0),
- m_dblank(0),
- m_slg(0),
- m_sld(0),
- m_cgra(0),
- m_vidla(0),
- m_outspkr(0),
- m_spkrdata(0),
- m_centronics_ack(0),
- m_centronics_fault(0),
- m_centronics_select(0),
- m_centronics_perror(0),
- m_centronics_busy(0),
- m_buttons(*this, "MOUSEBTN"),
- m_x_axis(*this, "MOUSEX"),
- m_y_axis(*this, "MOUSEY")
- {
- for (auto & elem : m_busdmarq)
- {
- elem = CLEAR_LINE;
- }
- }
-
- void tandy2k_hd(machine_config &config);
- void tandy2k(machine_config &config);
- DECLARE_INPUT_CHANGED_MEMBER(input_changed);
-
-private:
- required_device<i80186_cpu_device> m_maincpu;
- required_device<i8251_device> m_uart;
- required_device<i8255_device> m_i8255a;
- required_device<pit8253_device> m_pit;
- required_device<i8272a_device> m_fdc;
- required_device<pic8259_device> m_pic0;
- required_device<pic8259_device> m_pic1;
- required_device<crt9007_device> m_vpac;
- required_device<crt9212_device> m_drb0;
- required_device<crt9212_device> m_drb1;
- required_device<crt9021_device> m_vac;
- required_device<palette_device> m_colpal;
- required_device<address_map_bank_device> m_vrambank;
- required_device<timer_device> m_timer_vidldsh;
- required_device<centronics_device> m_centronics;
- required_device<speaker_sound_device> m_speaker;
- required_device<ram_device> m_ram;
- required_device<floppy_image_device> m_floppy0;
- required_device<floppy_image_device> m_floppy1;
- required_device<rs232_port_device> m_rs232;
- required_device<tandy2k_keyboard_device> m_kb;
- required_shared_ptr<uint16_t> m_hires_ram;
- memory_share_creator<uint8_t> m_char_ram;
- required_device<pc_keyboard_device> m_pc_keyboard; // temporary until the tandy keyboard has a rom dump
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void device_reset_after_children() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void update_drq();
- void dma_request(int line, int state);
- void speaker_update();
-
- uint8_t char_ram_r(offs_t offset);
- void char_ram_w(offs_t offset, uint8_t data);
- uint8_t videoram_r(offs_t offset);
- uint8_t enable_r();
- void enable_w(uint8_t data);
- void dma_mux_w(uint8_t data);
- uint8_t kbint_clr_r();
- uint8_t fldtc_r();
- void fldtc_w(uint8_t data);
- void addr_ctrl_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( rxrdy_w );
- DECLARE_WRITE_LINE_MEMBER( txrdy_w );
- DECLARE_WRITE_LINE_MEMBER( outspkr_w );
- DECLARE_WRITE_LINE_MEMBER( intbrclk_w );
- DECLARE_WRITE_LINE_MEMBER( rfrqpulse_w );
- uint8_t ppi_pb_r();
- void ppi_pc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( vpac_vlt_w );
- DECLARE_WRITE_LINE_MEMBER( vpac_drb_w );
- DECLARE_WRITE_LINE_MEMBER( vpac_wben_w );
- DECLARE_WRITE_LINE_MEMBER( vpac_cblank_w );
- DECLARE_WRITE_LINE_MEMBER( vpac_slg_w );
- DECLARE_WRITE_LINE_MEMBER( vpac_sld_w );
- uint8_t hires_status_r();
- void hires_plane_w(uint8_t data);
- void vidla_w(uint8_t data);
- void drb_attr_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( kbdclk_w );
- DECLARE_WRITE_LINE_MEMBER( kbddat_w );
- uint8_t clkmouse_r(offs_t offset);
- void clkmouse_w(offs_t offset, uint8_t data);
- uint8_t irq_callback(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_hdl_w );
- DECLARE_WRITE_LINE_MEMBER(write_centronics_ack);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_select);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_fault);
- CRT9021_DRAW_CHARACTER_MEMBER( vac_draw_character );
- TIMER_DEVICE_CALLBACK_MEMBER( vidldsh_tick );
- static void floppy_formats(format_registration &fr);
- static rgb_t IRGB(uint32_t raw);
-
- enum
- {
- LPINEN = 0,
- KBDINEN,
- PORTINEN
- };
-
- /* DMA state */
- uint8_t m_dma_mux;
- int m_busdmarq[4];
-
- /* keyboard state */
- int m_kbdclk;
- int m_kbddat;
- uint8_t m_kbdin;
-
- /* serial state */
- int m_extclk;
- int m_rxrdy;
- int m_txrdy;
-
- /* PPI state */
- int m_pb_sel;
-
- /* video state */
- uint8_t m_vram_base;
- int m_vidouts;
- int m_clkspd;
- int m_clkcnt;
- int m_blc;
- int m_bkc;
- int m_cblank;
- uint8_t m_dblc;
- uint8_t m_dbkc;
- uint8_t m_dblank;
- int m_slg;
- int m_sld;
- uint8_t m_cgra;
- uint8_t m_vidla;
- uint8_t m_hires_en;
-
- /* sound state */
- int m_outspkr;
- int m_spkrdata;
-
- int m_centronics_ack;
- int m_centronics_fault;
- int m_centronics_select;
- int m_centronics_perror;
- int m_centronics_busy;
-
- enum
- {
- MO_IRQ = 1,
- BT_IRQ = 2
- };
-
- enum
- {
- MOUS_TIMER,
- MCU_DELAY
- };
-
- uint8_t m_clkmouse_cmd[8];
- int m_clkmouse_cnt;
- uint8_t m_clkmouse_irq;
- uint16_t m_mouse_x, m_mouse_y;
- emu_timer *m_mouse_timer;
- emu_timer *m_mcu_delay;
-
- void tandy2k_hd_io(address_map &map);
- void tandy2k_io(address_map &map);
- void tandy2k_mem(address_map &map);
- void vpac_mem(address_map &map);
- void vrambank_mem(address_map &map);
-
- required_ioport m_buttons, m_x_axis, m_y_axis;
-};
-
-#endif // MAME_INCLUDES_TANDY2K_H
diff --git a/src/mame/includes/tank8.h b/src/mame/includes/tank8.h
deleted file mode 100644
index 4ea239b148f..00000000000
--- a/src/mame/includes/tank8.h
+++ /dev/null
@@ -1,115 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-/*************************************************************************
-
- Atari tank8 hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TANK8_H
-#define MAME_INCLUDES_TANK8_H
-
-#pragma once
-
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-#define TANK8_CRASH_EN NODE_01
-#define TANK8_BUGLE_EN NODE_02
-#define TANK8_MOTOR1_EN NODE_03
-#define TANK8_MOTOR2_EN NODE_04
-#define TANK8_MOTOR3_EN NODE_05
-#define TANK8_MOTOR4_EN NODE_06
-#define TANK8_MOTOR5_EN NODE_07
-#define TANK8_MOTOR6_EN NODE_08
-#define TANK8_MOTOR7_EN NODE_09
-#define TANK8_MOTOR8_EN NODE_10
-#define TANK8_EXPLOSION_EN NODE_11
-#define TANK8_ATTRACT_EN NODE_12
-#define TANK8_BUGLE_DATA1 NODE_13
-#define TANK8_BUGLE_DATA2 NODE_14
-
-
-class tank8_state : public driver_device
-{
-public:
- tank8_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_video_ram(*this, "video_ram"),
- m_pos_h_ram(*this, "pos_h_ram"),
- m_pos_v_ram(*this, "pos_v_ram"),
- m_pos_d_ram(*this, "pos_d_ram"),
- m_team(*this, "team")
- { }
-
- void tank8(machine_config &config);
-
- void init_decode();
-
-private:
- enum
- {
- TIMER_COLLISION
- };
-
- uint8_t collision_r();
- void lockout_w(offs_t offset, uint8_t data);
- void int_reset_w(uint8_t data);
- void video_ram_w(offs_t offset, uint8_t data);
- void crash_w(uint8_t data);
- void explosion_w(uint8_t data);
- void bugle_w(uint8_t data);
- void bug_w(uint8_t data);
- void attract_w(uint8_t data);
- void motor_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- virtual void machine_reset() override;
- virtual void video_start() override;
- void tank8_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void set_pens();
- inline int get_x_pos(int n);
- inline int get_y_pos(int n);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void set_collision(int index);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- void tank8_cpu_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_video_ram;
- required_shared_ptr<uint8_t> m_pos_h_ram;
- required_shared_ptr<uint8_t> m_pos_v_ram;
- required_shared_ptr<uint8_t> m_pos_d_ram;
- required_shared_ptr<uint8_t> m_team;
-
- int m_collision_index;
- tilemap_t *m_tilemap;
- bitmap_ind16 m_helper1;
- bitmap_ind16 m_helper2;
- bitmap_ind16 m_helper3;
- emu_timer *m_collision_timer;
-};
-
-/*----------- defined in audio/tank8.c -----------*/
-
-DISCRETE_SOUND_EXTERN( tank8_discrete );
-
-#endif // MAME_INCLUDES_TANK8_H
diff --git a/src/mame/includes/tankbatt.h b/src/mame/includes/tankbatt.h
deleted file mode 100644
index c27436328e4..00000000000
--- a/src/mame/includes/tankbatt.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver
-#ifndef MAME_INCLUDES_TANKBATT_H
-#define MAME_INCLUDES_TANKBATT_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "machine/netlist.h"
-
-#include "netlist/nl_setup.h"
-#include "audio/nl_tankbatt.h"
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class tankbatt_state : public driver_device
-{
-public:
- tankbatt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_bulletsram(*this, "bulletsram"),
- m_videoram(*this, "videoram"),
- m_player_input(*this, "P%u", 1U),
- m_dips(*this, "DSW"),
- m_sound_s1(*this, "sound_nl:s1"),
- m_sound_s2(*this, "sound_nl:s2"),
- m_sound_off(*this, "sound_nl:off"),
- m_sound_engine_hi(*this, "sound_nl:engine_hi"),
- m_sound_shoot(*this, "sound_nl:shoot"),
- m_sound_hit(*this, "sound_nl:hit")
- { }
-
- void tankbatt(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_bulletsram;
- required_shared_ptr<uint8_t> m_videoram;
-
- required_ioport_array<2> m_player_input;
- required_ioport m_dips;
-
- required_device<netlist_mame_logic_input_device> m_sound_s1;
- required_device<netlist_mame_logic_input_device> m_sound_s2;
- required_device<netlist_mame_logic_input_device> m_sound_off;
- required_device<netlist_mame_logic_input_device> m_sound_engine_hi;
- required_device<netlist_mame_logic_input_device> m_sound_shoot;
- required_device<netlist_mame_logic_input_device> m_sound_hit;
-
- int m_sound_enable;
- tilemap_t *m_bg_tilemap;
-
- uint8_t in0_r(offs_t offset);
- uint8_t in1_r(offs_t offset);
- uint8_t dsw_r(offs_t offset);
- void intack_w(uint8_t data);
- void coincounter_w(int state);
- void coinlockout_w(int state);
- void videoram_w(offs_t offset, uint8_t data);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_interrupt);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- void tankbatt_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_bullets(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TANKBATT_H
diff --git a/src/mame/includes/tankbust.h b/src/mame/includes/tankbust.h
deleted file mode 100644
index ea13697dc32..00000000000
--- a/src/mame/includes/tankbust.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Jarek Burczynski
-#ifndef MAME_INCLUDES_TANKBUST_H
-#define MAME_INCLUDES_TANKBUST_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class tankbust_state : public driver_device
-{
-public:
- tankbust_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_txtram(*this, "txtram"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void tankbust(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_txtram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- int m_latch;
- uint32_t m_timer1;
- int m_e0xx_data[8];
- uint8_t m_variable_data;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_txt_tilemap;
- uint8_t m_xscroll[2];
- uint8_t m_yscroll[2];
- uint8_t m_irq_mask;
-
- void soundlatch_w(uint8_t data);
- void e0xx_w(offs_t offset, uint8_t data);
- uint8_t debug_output_area_r(offs_t offset);
- uint8_t some_changing_input();
- void background_videoram_w(offs_t offset, uint8_t data);
- void background_colorram_w(offs_t offset, uint8_t data);
- void txtram_w(offs_t offset, uint8_t data);
- void xscroll_w(offs_t offset, uint8_t data);
- void yscroll_w(offs_t offset, uint8_t data);
- uint8_t soundlatch_r();
- uint8_t soundtimer_r();
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_txt_tile_info);
-
- void tankbust_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(vblank_irq);
- TIMER_CALLBACK_MEMBER(soundlatch_callback);
- TIMER_CALLBACK_MEMBER(soundirqline_callback);
-
- void main_map(address_map &map);
- void map_cpu2(address_map &map);
- void port_map_cpu2(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TANKBUST_H
diff --git a/src/mame/includes/taotaido.h b/src/mame/includes/taotaido.h
deleted file mode 100644
index 6ed53db3008..00000000000
--- a/src/mame/includes/taotaido.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_TAOTAIDO_H
-#define MAME_INCLUDES_TAOTAIDO_H
-
-#pragma once
-
-#include "video/vsystem_spr.h"
-#include "machine/gen_latch.h"
-#include "machine/mb3773.h"
-#include "tilemap.h"
-
-class taotaido_state : public driver_device
-{
-public:
- taotaido_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_spr(*this, "vsystem_spr"),
- m_soundlatch(*this, "soundlatch"),
- m_watchdog(*this, "watchdog"),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2"),
- m_scrollram(*this, "scrollram"),
- m_bgram(*this, "bgram"),
- m_soundbank(*this, "soundbank"),
- m_spritebank(*this, "spritebank", 0x08, ENDIANNESS_BIG)
- { }
-
- void taotaido(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<vsystem_spr_device> m_spr;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<mb3773_device> m_watchdog;
-
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_spriteram2;
- required_shared_ptr<uint16_t> m_scrollram;
- required_shared_ptr<uint16_t> m_bgram;
-
- required_memory_bank m_soundbank;
-
- memory_share_creator<uint8_t> m_spritebank;
-
- uint8_t m_bgbank[8];
- tilemap_t *m_bg_tilemap;
- std::unique_ptr<uint16_t[]> m_spriteram_old;
- std::unique_ptr<uint16_t[]> m_spriteram_older;
- std::unique_ptr<uint16_t[]> m_spriteram2_old;
- std::unique_ptr<uint16_t[]> m_spriteram2_older;
-
- uint16_t pending_command_r();
- void unknown_output_w(uint8_t data);
- void sh_bankswitch_w(uint8_t data);
- void spritebank_w(offs_t offset, uint8_t data);
- void tileregs_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bgvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(bg_tile_info);
- TILEMAP_MAPPER_MEMBER(tilemap_scan_rows);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- uint32_t tile_callback( uint32_t code );
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_port_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAOTAIDO_H
diff --git a/src/mame/includes/targeth.h b/src/mame/includes/targeth.h
deleted file mode 100644
index ccc5e22363c..00000000000
--- a/src/mame/includes/targeth.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-#ifndef MAME_INCLUDES_TARGETH_H
-#define MAME_INCLUDES_TARGETH_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class targeth_state : public driver_device
-{
-public:
- targeth_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_outlatch(*this, "outlatch"),
- m_videoram(*this, "videoram"),
- m_vregs(*this, "vregs"),
- m_spriteram(*this, "spriteram"),
- m_shareram(*this, "shareram"),
- m_okibank(*this, "okibank")
- { }
-
- void targeth(machine_config &config);
-
-private:
- void oki_bankswitch_w(uint8_t data);
- void output_latch_w(offs_t offset, uint16_t data);
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
- void shareram_w(offs_t offset, uint8_t data);
- uint8_t shareram_r(offs_t offset);
-
- void vram_w(offs_t offset, uint16_t data);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
-
- TIMER_CALLBACK_MEMBER(gun1_irq);
- TIMER_CALLBACK_MEMBER(gun2_irq);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
- void mcu_hostmem_map(address_map &map);
- void oki_map(address_map &map);
-
- virtual void video_start() override;
- virtual void machine_start() override;
-
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<ls259_device> m_outlatch;
-
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_vregs;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_shareram;
-
- required_memory_bank m_okibank;
-
- emu_timer *m_gun_irq_timer[2];
-
- tilemap_t *m_pant[2];
-};
-
-#endif // MAME_INCLUDES_TARGETH_H
diff --git a/src/mame/includes/tatsumi.h b/src/mame/includes/tatsumi.h
deleted file mode 100644
index 39971d2b0a7..00000000000
--- a/src/mame/includes/tatsumi.h
+++ /dev/null
@@ -1,264 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, Angelo Salese
-#ifndef MAME_INCLUDES_TATSUMI_H
-#define MAME_INCLUDES_TATSUMI_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "sound/ym2151.h"
-#include "cpu/m68000/m68000.h"
-#include "machine/cxd1095.h"
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tatsumi_state : public driver_device
-{
-public:
- tatsumi_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_subcpu(*this, "sub")
- , m_ym2151(*this, "ymsnd")
- , m_oki(*this, "oki")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_videoram(*this, "videoram")
- , m_sharedram(*this, "sharedram")
- , m_sprite_control_ram(*this, "obj_ctrl_ram")
- , m_spriteram(*this, "spriteram")
- , m_mainregion(*this, "master_rom")
- , m_subregion(*this, "slave_rom")
- { }
-
- void hd6445_crt_w(offs_t offset, uint8_t data);
- INTERRUPT_GEN_MEMBER(v30_interrupt);
- TILE_GET_INFO_MEMBER(get_text_tile_info);
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<m68000_base_device> m_subcpu;
- optional_device<ym2151_device> m_ym2151;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- optional_shared_ptr<uint16_t> m_videoram;
- optional_shared_ptr<uint16_t> m_sharedram;
- required_shared_ptr<uint16_t> m_sprite_control_ram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_memory_region m_mainregion;
- required_memory_region m_subregion;
-
- uint8_t *m_rom_sprite_lookup[2];
- uint8_t *m_rom_clut[2];
- uint16_t m_control_word;
- uint8_t m_last_control;
- tilemap_t *m_tx_layer;
- bitmap_rgb32 m_temp_bitmap;
- std::unique_ptr<uint8_t[]> m_shadow_pen_array;
- void text_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t tatsumi_v30_68000_r(offs_t offset);
- void tatsumi_v30_68000_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t tatsumi_sprite_control_r(offs_t offset);
- void tatsumi_sprite_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void tatsumi_reset();
- template<class BitmapClass> void draw_sprites(BitmapClass &bitmap, const rectangle &cliprect, int write_priority_only, int rambank);
- template<class BitmapClass> inline void roundupt_drawgfxzoomrotate( BitmapClass &dest_bmp, const rectangle &clip,
- gfx_element *gfx, uint32_t code,uint32_t color,int flipx,int flipy,uint32_t ssx,uint32_t ssy,
- int scalex, int scaley, int rotate, int write_priority_only );
- void update_cluts(int fake_palette_offset, int object_base, int length);
-
- uint8_t m_hd6445_reg[64];
- void apply_shadow_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect, bitmap_ind8 &shadow_bitmap, uint8_t xor_output);
-
- uint8_t m_hd6445_address;
-};
-
-class apache3_state : public tatsumi_state
-{
-public:
- apache3_state(const machine_config &mconfig, device_type type, const char *tag)
- : tatsumi_state(mconfig, type, tag)
- , m_subcpu2(*this, "sub2")
- , m_apache3_g_ram(*this, "apache3_g_ram")
- , m_apache3_z80_ram(*this, "apache3_z80_ram")
- , m_apache3_prom(*this, "proms")
- , m_vr1(*this, "VR1")
- {
- }
-
- void apache3(machine_config &config);
-
- void init_apache3();
-
-private:
- uint16_t apache3_bank_r();
- void apache3_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void apache3_z80_ctrl_w(uint16_t data);
- uint16_t apache3_v30_v20_r(offs_t offset);
- void apache3_v30_v20_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t apache3_z80_r(offs_t offset);
- void apache3_z80_w(offs_t offset, uint16_t data);
- uint8_t apache3_vr1_r();
- void apache3_rotate_w(uint16_t data);
- void apache3_road_z_w(uint16_t data);
- void apache3_road_x_w(offs_t offset, uint8_t data);
-
- DECLARE_MACHINE_RESET(apache3);
- DECLARE_VIDEO_START(apache3);
- uint32_t screen_update_apache3(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(apache3_68000_reset);
-
- void apache3_68000_map(address_map &map);
- void apache3_v20_map(address_map &map);
- void apache3_v30_map(address_map &map);
- void apache3_z80_map(address_map &map);
-
- void draw_sky(bitmap_rgb32 &bitmap, const rectangle &cliprect, int palette_base, int start_offset);
- void draw_ground(bitmap_rgb32 &dst, const rectangle &cliprect);
-
- required_device<cpu_device> m_subcpu2;
-
- required_shared_ptr<uint16_t> m_apache3_g_ram;
- required_shared_ptr<uint8_t> m_apache3_z80_ram;
- required_region_ptr<uint8_t> m_apache3_prom;
-
- required_ioport m_vr1;
-
- uint16_t m_apache3_rotate_ctrl[12];
- int m_apache3_rot_idx;
- std::unique_ptr<uint8_t[]> m_apache3_road_x_ram;
- uint8_t m_apache3_road_z;
-};
-
-class roundup5_state : public tatsumi_state
-{
-public:
- roundup5_state(const machine_config &mconfig, device_type type, const char *tag)
- : tatsumi_state(mconfig, type, tag)
- , m_vregs(*this, "vregs")
- , m_bg_scrollx(*this, "bg_scrollx")
- , m_bg_scrolly(*this, "bg_scrolly")
- , m_road_ctrl_ram(*this, "road_ctrl_ram")
- , m_road_pixel_ram(*this, "road_pixel_ram")
- , m_road_color_ram(*this, "road_color_ram")
- , m_road_yclip(*this, "road_yclip")
- , m_road_vregs(*this, "road_vregs")
- {
- }
-
- void roundup5(machine_config &config);
-
- void init_roundup5();
-
-private:
- uint16_t roundup_v30_z80_r(offs_t offset);
- void roundup_v30_z80_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void roundup5_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void road_vregs_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t gfxdata_r(offs_t offset);
- void gfxdata_w(offs_t offset, uint8_t data);
- void output_w(uint8_t data);
-
- DECLARE_VIDEO_START(roundup5);
- uint32_t screen_update_roundup5(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void roundup5_68000_map(address_map &map);
- void roundup5_v30_map(address_map &map);
- void roundup5_z80_map(address_map &map);
-
-// virtual void machine_reset() override;
-
- void draw_road(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_landscape(bitmap_rgb32 &bitmap, const rectangle &cliprect, uint8_t type);
-
- required_shared_ptr<uint16_t> m_vregs;
- required_shared_ptr<uint16_t> m_bg_scrollx;
- required_shared_ptr<uint16_t> m_bg_scrolly;
- required_shared_ptr<uint16_t> m_road_ctrl_ram;
- required_shared_ptr<uint16_t> m_road_pixel_ram;
- required_shared_ptr<uint16_t> m_road_color_ram;
- required_shared_ptr<uint16_t> m_road_yclip;
- required_shared_ptr<uint16_t> m_road_vregs;
-
- std::unique_ptr<uint8_t[]> m_tx_gfxram;
- std::unique_ptr<uint8_t[]> m_bg_gfxram;
-};
-
-class cyclwarr_state : public tatsumi_state
-{
-public:
- cyclwarr_state(const machine_config &mconfig, device_type type, const char *tag)
- : tatsumi_state(mconfig, type, tag)
- , m_soundlatch(*this, "soundlatch")
- , m_master_ram(*this, "master_ram")
- , m_slave_ram(*this, "slave_ram")
- , m_cyclwarr_videoram(*this, "cw_videoram%u", 0U)
- , m_cyclwarr_tileclut(*this, "cw_tileclut")
- {
- }
-
- void cyclwarr(machine_config &config);
- void bigfight(machine_config &config);
-
- void init_cyclwarr();
-
-protected:
- virtual void machine_reset() override;
-
-private:
- uint16_t cyclwarr_sprite_r(offs_t offset);
- void cyclwarr_sprite_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void video_config_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bigfight_a40000_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void mixing_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cyclwarr_control_w(uint8_t data);
- void cyclwarr_sound_w(uint8_t data);
- void output_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t oki_status_xor_r();
-
- template<int Bank> uint16_t cyclwarr_videoram_r(offs_t offset);
- template<int Bank> void cyclwarr_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- template<int Bank> TILE_GET_INFO_MEMBER(get_tile_info_bigfight);
- template<int Bank> TILE_GET_INFO_MEMBER(get_tile_info_cyclwarr_road);
- DECLARE_VIDEO_START(cyclwarr);
- DECLARE_VIDEO_START(bigfight);
- uint32_t screen_update_cyclwarr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void common_map(address_map &map);
- void master_map(address_map &map);
- void slave_map(address_map &map);
- void sound_map(address_map &map);
-
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_master_ram;
- required_shared_ptr<uint16_t> m_slave_ram;
- required_shared_ptr_array<uint16_t, 2> m_cyclwarr_videoram;
- required_region_ptr<uint8_t> m_cyclwarr_tileclut;
-
- std::vector<uint8_t> m_mask;
- tilemap_t *m_layer[4];
-
- uint16_t m_video_config[4];
- uint16_t m_mixing_control;
- uint16_t m_bigfight_a40000[2];
- uint16_t m_bigfight_bank;
- uint16_t m_bigfight_last_bank;
- uint16_t m_road_color_bank, m_prev_road_bank;
- uint16_t m_layer_page_size[4];
- bool m_layer1_can_be_road;
-
- void tile_expand();
- void draw_bg(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, tilemap_t *src, const uint16_t* scrollx, const uint16_t* scrolly, const uint16_t layer_page_size, bool is_road, int hi_priority);
- void draw_bg_layers(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int hi_priority);
- void apply_highlight_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect, bitmap_ind8 &highlight_bitmap);
-};
-
-#endif // MAME_INCLUDES_TATSUMI_H
diff --git a/src/mame/includes/taxidriv.h b/src/mame/includes/taxidriv.h
deleted file mode 100644
index 9c7a2834396..00000000000
--- a/src/mame/includes/taxidriv.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_TAXIDRIV_H
-#define MAME_INCLUDES_TAXIDRIV_H
-
-#pragma once
-
-#include "emupal.h"
-
-class taxidriv_state : public driver_device
-{
-public:
- taxidriv_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_vram0(*this, "vram0"),
- m_vram1(*this, "vram1"),
- m_vram2(*this, "vram2"),
- m_vram3(*this, "vram3"),
- m_vram4(*this, "vram4"),
- m_vram5(*this, "vram5"),
- m_vram6(*this, "vram6"),
- m_vram7(*this, "vram7"),
- m_scroll(*this, "scroll")
- { }
-
- void taxidriv(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_vram0;
- required_shared_ptr<uint8_t> m_vram1;
- required_shared_ptr<uint8_t> m_vram2;
- required_shared_ptr<uint8_t> m_vram3;
- required_shared_ptr<uint8_t> m_vram4;
- required_shared_ptr<uint8_t> m_vram5;
- required_shared_ptr<uint8_t> m_vram6;
- required_shared_ptr<uint8_t> m_vram7;
- required_shared_ptr<uint8_t> m_scroll;
-
- int m_s1;
- int m_s2;
- int m_s3;
- int m_s4;
- int m_latchA;
- int m_latchB;
- int m_bghide;
- int m_spritectrl[9];
-
- void p2a_w(uint8_t data);
- void p2b_w(uint8_t data);
- void p2c_w(uint8_t data);
- void p3a_w(uint8_t data);
- void p3b_w(uint8_t data);
- void p3c_w(uint8_t data);
- void p4a_w(uint8_t data);
- void p4b_w(uint8_t data);
- void p4c_w(uint8_t data);
- uint8_t p0a_r();
- uint8_t p0c_r();
- void p0b_w(uint8_t data);
- void p0c_w(uint8_t data);
- uint8_t p1b_r();
- uint8_t p1c_r();
- void p1a_w(uint8_t data);
- void p1c_w(uint8_t data);
- uint8_t p8910_0a_r();
- uint8_t p8910_1a_r();
- void p8910_0b_w(uint8_t data);
- void spritectrl_w(offs_t offset, uint8_t data);
-
- void taxidriv_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void cpu2_map(address_map &map);
- void cpu3_map(address_map &map);
- void cpu3_port_map(address_map &map);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TAXIDRIV_H
diff --git a/src/mame/includes/tbowl.h b/src/mame/includes/tbowl.h
deleted file mode 100644
index 7f10d2f9f09..00000000000
--- a/src/mame/includes/tbowl.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_TBOWL_H
-#define MAME_INCLUDES_TBOWL_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "video/tecmo_spr.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tbowl_state : public driver_device
-{
-public:
- tbowl_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm1(*this, "msm1"),
- m_msm2(*this, "msm2"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sprgen(*this, "spritegen"),
- m_soundlatch(*this, "soundlatch"),
- m_txvideoram(*this, "txvideoram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_bg2videoram(*this, "bg2videoram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void tbowl(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<msm5205_device> m_msm1;
- required_device<msm5205_device> m_msm2;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<tecmo_spr_device> m_sprgen;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_txvideoram;
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_bg2videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_bg2_tilemap;
- uint16_t m_xscroll;
- uint16_t m_yscroll;
- uint16_t m_bg2xscroll;
- uint16_t m_bg2yscroll;
- int m_adpcm_pos[2];
- int m_adpcm_end[2];
- int m_adpcm_data[2];
-
- void coincounter_w(uint8_t data);
- void boardb_bankswitch_w(uint8_t data);
- void boardc_bankswitch_w(uint8_t data);
- void trigger_nmi(uint8_t data);
- void adpcm_start_w(offs_t offset, uint8_t data);
- void adpcm_end_w(offs_t offset, uint8_t data);
- void adpcm_vol_w(offs_t offset, uint8_t data);
- void txvideoram_w(offs_t offset, uint8_t data);
- void bg2videoram_w(offs_t offset, uint8_t data);
- void bgxscroll_lo(uint8_t data);
- void bgxscroll_hi(uint8_t data);
- void bgyscroll_lo(uint8_t data);
- void bgyscroll_hi(uint8_t data);
- void bgvideoram_w(offs_t offset, uint8_t data);
- void bg2xscroll_lo(uint8_t data);
- void bg2xscroll_hi(uint8_t data);
- void bg2yscroll_lo(uint8_t data);
- void bg2yscroll_hi(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
-
- uint32_t screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void adpcm_int(msm5205_device *device, int chip);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int_1);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int_2);
-
- void _6206A_map(address_map &map);
- void _6206B_map(address_map &map);
- void _6206C_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TBOWL_H
diff --git a/src/mame/includes/tceptor.h b/src/mame/includes/tceptor.h
deleted file mode 100644
index 782ca290bef..00000000000
--- a/src/mame/includes/tceptor.h
+++ /dev/null
@@ -1,119 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:BUT
-#ifndef MAME_INCLUDES_TCEPTOR_H
-#define MAME_INCLUDES_TCEPTOR_H
-
-#pragma once
-
-#include "cpu/m6502/m65c02.h"
-#include "sound/namco.h"
-#include "video/namco_c45road.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class tceptor_state : public driver_device
-{
-public:
- tceptor_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu%u", 1U),
- m_subcpu(*this, "sub"),
- m_mcu(*this, "mcu"),
- m_cus30(*this, "namco"),
- m_tile_ram(*this, "tile_ram"),
- m_tile_attr(*this, "tile_attr"),
- m_bg_ram(*this, "bg_ram"),
- m_m68k_shared_ram(*this, "m68k_shared_ram"),
- m_sprite_ram(*this, "sprite_ram"),
- m_c45_road(*this, "c45_road"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_shutter(*this, "shutter")
- { }
-
- void tceptor(machine_config &config);
-
-private:
- uint8_t m_m6809_irq_enable;
- uint8_t m_m68k_irq_enable;
- uint8_t m_mcu_irq_enable;
- required_device<cpu_device> m_maincpu;
- required_device_array<m65c02_device, 2> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_mcu;
- required_device<namco_cus30_device> m_cus30;
- required_shared_ptr<uint8_t> m_tile_ram;
- required_shared_ptr<uint8_t> m_tile_attr;
- required_shared_ptr<uint8_t> m_bg_ram;
- required_shared_ptr<uint8_t> m_m68k_shared_ram;
- required_shared_ptr<uint16_t> m_sprite_ram;
- int m_sprite16;
- int m_sprite32;
- int m_bg;
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bg_tilemap[2];
- int32_t m_bg_scroll_x[2];
- int32_t m_bg_scroll_y[2];
- bitmap_ind16 m_temp_bitmap;
- std::unique_ptr<uint16_t[]> m_sprite_ram_buffered;
- std::unique_ptr<uint8_t[]> m_decoded_16;
- std::unique_ptr<uint8_t[]> m_decoded_32;
- int m_is_mask_spr[1024/16];
- uint8_t m68k_shared_r(offs_t offset);
- void m68k_shared_w(offs_t offset, uint8_t data);
- void m6809_irq_enable_w(uint8_t data);
- void m6809_irq_disable_w(uint8_t data);
- void m68k_irq_enable_w(uint16_t data);
- void mcu_irq_enable_w(uint8_t data);
- void mcu_irq_disable_w(uint8_t data);
- uint8_t dsw0_r();
- uint8_t dsw1_r();
- uint8_t input0_r();
- uint8_t input1_r();
- void tceptor_tile_ram_w(offs_t offset, uint8_t data);
- void tceptor_tile_attr_w(offs_t offset, uint8_t data);
- void tceptor_bg_ram_w(offs_t offset, uint8_t data);
- void tceptor_bg_scroll_w(offs_t offset, uint8_t data);
- void tceptor2_shutter_w(uint8_t data);
- void tile_mark_dirty(int offset);
-
- required_device<namco_c45_road_device> m_c45_road;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- output_finder<> m_shutter;
-
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void tceptor_palette(palette_device &palette);
- uint32_t screen_update_tceptor(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_tceptor);
- INTERRUPT_GEN_MEMBER(m6809_vb_interrupt);
- INTERRUPT_GEN_MEMBER(m68k_vb_interrupt);
- INTERRUPT_GEN_MEMBER(mcu_vb_interrupt);
- inline int get_tile_addr(int tile_index);
- void decode_bg(const char * region);
- void decode_sprite(int gfx_index, const gfx_layout *layout, const void *data);
- void decode_sprite16(const char * region);
- void decode_sprite32(const char * region);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int sprite_priority);
- inline uint8_t fix_input0(uint8_t in1, uint8_t in2);
- inline uint8_t fix_input1(uint8_t in1, uint8_t in2);
-
- void m6502_a_map(address_map &map);
- void m6502_b_map(address_map &map);
- void m6809_map(address_map &map);
- void m68k_map(address_map &map);
- void mcu_io_map(address_map &map);
- void mcu_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TCEPTOR_H
diff --git a/src/mame/includes/tdv2324.h b/src/mame/includes/tdv2324.h
deleted file mode 100644
index 9b8164c92cb..00000000000
--- a/src/mame/includes/tdv2324.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder,Jonathan Gevaryahu
-#ifndef MAME_INCLUDES_TDV2324_H
-#define MAME_INCLUDES_TDV2324_H
-
-#pragma once
-
-
-#include "cpu/i8085/i8085.h"
-#include "cpu/m6800/m6800.h"
-#include "imagedev/floppy.h"
-#include "imagedev/harddriv.h"
-#include "machine/pit8253.h"
-#include "machine/pic8259.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80sio.h"
-#include "video/tms9927.h"
-
-
-
-//**************************************************************************
-// MACROS / CONSTANTS
-//**************************************************************************
-
-#define P8085AH_0_TAG "17f"
-#define P8259A_TAG "17d"
-#define P8253_5_0_TAG "17c"
-#define P8253_5_1_TAG "18c"
-#define ER3400_TAG "12a"
-
-#define P8085AH_1_TAG "6c"
-#define TMS9937NL_TAG "7e"
-#define MK3887N4_TAG "15d"
-
-#define MC68B02P_TAG "12b"
-#define FD1797PL02_TAG "fd1797"
-
-#define SCREEN_TAG "screen"
-
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-class tdv2324_state : public driver_device
-{
-public:
- tdv2324_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, P8085AH_0_TAG)
- , m_subcpu(*this, P8085AH_1_TAG)
- , m_fdccpu(*this, MC68B02P_TAG)
- , m_sio(*this, MK3887N4_TAG)
- , m_pic(*this, P8259A_TAG)
- , m_pit0(*this, P8253_5_0_TAG)
- , m_pit1(*this, P8253_5_1_TAG)
- , m_tms(*this, TMS9937NL_TAG)
- , m_video_ram(*this, "video_ram")
- { }
-
- void tdv2324(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<m6802_cpu_device> m_fdccpu;
- required_device<z80sio_device> m_sio;
- required_device<pic8259_device> m_pic;
- required_device<pit8253_device> m_pit0;
- required_device<pit8253_device> m_pit1;
- required_device<tms9927_device> m_tms;
-
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t tdv2324_main_io_30();
- uint8_t tdv2324_main_io_e6();
- void tdv2324_main_io_e2(uint8_t data);
-
- // video state
- required_shared_ptr<uint8_t> m_video_ram;
- void tdv2324_fdc_mem(address_map &map);
- void tdv2324_io(address_map &map);
- void tdv2324_mem(address_map &map);
- void tdv2324_sub_io(address_map &map);
- void tdv2324_sub_mem(address_map &map);
-};
-
-
-#endif
diff --git a/src/mame/includes/tecmo.h b/src/mame/includes/tecmo.h
deleted file mode 100644
index 4c8d591fbaf..00000000000
--- a/src/mame/includes/tecmo.h
+++ /dev/null
@@ -1,112 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_TECMO_H
-#define MAME_INCLUDES_TECMO_H
-
-#pragma once
-
-#include "sound/msm5205.h"
-#include "video/tecmo_spr.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class tecmo_state : public driver_device
-{
-public:
- tecmo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_msm(*this, "msm"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sprgen(*this, "spritegen"),
- m_txvideoram(*this, "txvideoram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_spriteram(*this, "spriteram"),
- m_fgscroll(*this, "fgscroll"),
- m_bgscroll(*this, "bgscroll"),
- m_adpcm_rom(*this, "adpcm"),
- m_mainbank(*this, "mainbank")
- { }
-
- void geminib(machine_config &config);
- void backfirt(machine_config &config);
- void silkworm(machine_config &config);
- void gemini(machine_config &config);
- void rygar(machine_config &config);
- void silkwormp(machine_config &config);
-
- void init_silkworm();
- void init_rygar();
- void init_gemini();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- optional_device<msm5205_device> m_msm;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<tecmo_spr_device> m_sprgen;
-
- required_shared_ptr<uint8_t> m_txvideoram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_fgscroll;
- required_shared_ptr<uint8_t> m_bgscroll;
-
- optional_region_ptr<uint8_t> m_adpcm_rom;
- required_memory_bank m_mainbank;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- int m_adpcm_pos;
- int m_adpcm_end;
- int m_adpcm_data;
- int m_video_type;
-
- void bankswitch_w(uint8_t data);
- void adpcm_end_w(uint8_t data);
- uint8_t dswa_l_r();
- uint8_t dswa_h_r();
- uint8_t dswb_l_r();
- uint8_t dswb_h_r();
- void txvideoram_w(offs_t offset, uint8_t data);
- void fgvideoram_w(offs_t offset, uint8_t data);
- void bgvideoram_w(offs_t offset, uint8_t data);
- void fgscroll_w(offs_t offset, uint8_t data);
- void bgscroll_w(offs_t offset, uint8_t data);
- void flipscreen_w(uint8_t data);
- void adpcm_start_w(uint8_t data);
- void adpcm_vol_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(gemini_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(gemini_get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void gemini_map(address_map &map);
- void rygar_map(address_map &map);
- void rygar_sound_map(address_map &map);
- void silkworm_map(address_map &map);
- void tecmo_sound_map(address_map &map);
- void silkwormp_sound_map(address_map &map);
- void backfirt_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TECMO_H
diff --git a/src/mame/includes/tecmo16.h b/src/mame/includes/tecmo16.h
deleted file mode 100644
index 6a534452cd7..00000000000
--- a/src/mame/includes/tecmo16.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Hau, Nicola Salmoria
-#ifndef MAME_INCLUDES_TECMO16_H
-#define MAME_INCLUDES_TECMO16_H
-
-#pragma once
-
-#include "video/bufsprite.h"
-#include "video/tecmo_spr.h"
-#include "video/tecmo_mix.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class tecmo16_state : public driver_device
-{
-public:
- tecmo16_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_sprgen(*this, "spritegen"),
- m_mixer(*this, "mixer"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_videoram2(*this, "videoram2"),
- m_colorram2(*this, "colorram2"),
- m_charram(*this, "charram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void base(machine_config &config);
- void ginkun(machine_config &config);
- void riot(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<tecmo_spr_device> m_sprgen;
- required_device<tecmo_mix_device> m_mixer;
-
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_colorram;
- required_shared_ptr<uint16_t> m_videoram2;
- required_shared_ptr<uint16_t> m_colorram2;
- required_shared_ptr<uint16_t> m_charram;
- required_device<buffered_spriteram16_device> m_spriteram;
-
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_tx_tilemap;
- bitmap_ind16 m_sprite_bitmap;
- bitmap_ind16 m_tile_bitmap_bg;
- bitmap_ind16 m_tile_bitmap_fg;
- bitmap_ind16 m_tile_bitmap_tx;
- int m_flipscreen;
- int m_game_is_riot;
- uint16_t m_scroll_x_w;
- uint16_t m_scroll_y_w;
- uint16_t m_scroll2_x_w;
- uint16_t m_scroll2_y_w;
- uint16_t m_scroll_char_x_w;
- uint16_t m_scroll_char_y_w;
-
- void videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void colorram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void videoram2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void colorram2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void charram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void flipscreen_w(uint16_t data);
- void scroll_x_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scroll_y_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scroll2_x_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scroll2_y_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scroll_char_x_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scroll_char_y_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void irq_150021_w(offs_t offset, uint16_t data, uint16_t mem_mask);
- void irq_150031_w(offs_t offset, uint16_t data, uint16_t mem_mask);
-
- TILE_GET_INFO_MEMBER(fg_get_tile_info);
- TILE_GET_INFO_MEMBER(bg_get_tile_info);
- TILE_GET_INFO_MEMBER(tx_get_tile_info);
-
- virtual void video_start() override;
- DECLARE_VIDEO_START(ginkun);
- DECLARE_VIDEO_START(riot);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
- void save_state();
- void common_map(address_map& map);
- void fstarfrc_map(address_map &map);
- void ginkun_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TECMO16_H
diff --git a/src/mame/includes/tecmosys.h b/src/mame/includes/tecmosys.h
deleted file mode 100644
index 5560d0e0fc7..00000000000
--- a/src/mame/includes/tecmosys.h
+++ /dev/null
@@ -1,125 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Farfetch'd,David Haywood,Tomasz Slanina
-/***************************************************************************
-
- tecmosys protection simulation
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_TECMOSYS_H
-#define MAME_INCLUDES_TECMOSYS_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "machine/watchdog.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class tecmosys_state : public driver_device
-{
-public:
- tecmosys_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_eeprom(*this, "eeprom")
- , m_watchdog(*this, "watchdog")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_soundnmi(*this, "soundnmi")
- , m_spriteram(*this, "spriteram")
- , m_tilemap_paletteram16(*this, "tmap_palette")
- , m_vram(*this, "vram_%u", 0)
- , m_lineram(*this, "bg%u_lineram", 0)
- , m_scroll(*this, "scroll_%u", 0)
- , m_880000regs(*this, "880000regs")
- , m_sprite_region(*this, "sprites")
- , m_audiobank(*this, "audiobank")
- , m_okibank(*this, "okibank%u", 1)
- {
- }
-
- void tecmosys(machine_config &config);
-
- void init_tkdensha();
- void init_deroon();
- void init_tkdensho();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<input_merger_device> m_soundnmi;
-
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr<u16> m_tilemap_paletteram16;
- required_shared_ptr_array<u16, 4> m_vram;
- required_shared_ptr_array<u16, 3> m_lineram;
- required_shared_ptr_array<u16, 4> m_scroll;
- required_shared_ptr<u16> m_880000regs;
-
- required_region_ptr<u8> m_sprite_region;
- std::unique_ptr<u8[]> m_sprite_gfx;
- offs_t m_sprite_gfx_mask;
-
- required_memory_bank m_audiobank;
- required_memory_bank_array<2> m_okibank;
-
- int m_spritelist;
- bitmap_ind16 m_sprite_bitmap;
- bitmap_ind16 m_tmp_tilemap_composebitmap;
- bitmap_ind16 m_tmp_tilemap_renderbitmap;
- tilemap_t *m_tilemap[4];
- u8 m_device_read_ptr;
- u8 m_device_status;
- const struct prot_data* m_device_data;
- u8 m_device_value;
-
- u8 sound_command_pending_r();
- void sound_nmi_disable_w(u8 data);
- void unk880000_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 unk880000_r(offs_t offset);
- void z80_bank_w(u8 data);
- void oki_bank_w(u8 data);
- u16 prot_status_r(offs_t offset, u16 mem_mask = ~0);
- void prot_status_w(u16 data);
- u16 prot_data_r();
- void prot_data_w(u16 data);
- template<int Layer> void vram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tilemap_paletteram16_xGGGGGRRRRRBBBBB_word_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- template<int Layer> void lineram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 eeprom_r();
- void eeprom_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
-
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void prot_init(int which);
- void prot_reset();
- inline void set_color_555(pen_t color, int rshift, int gshift, int bshift, u16 data);
- void render_sprites_to_bitmap(const rectangle &cliprect, u16 extrax, u16 extray);
- void tilemap_copy_to_compose(u16 pri, const rectangle &cliprect);
- void do_final_mix(bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void descramble();
-
- void io_map(address_map &map);
- void main_map(address_map &map);
- void oki_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TECMOSYS_H
diff --git a/src/mame/includes/tehkanwc.h b/src/mame/includes/tehkanwc.h
deleted file mode 100644
index b2687200539..00000000000
--- a/src/mame/includes/tehkanwc.h
+++ /dev/null
@@ -1,113 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi, Roberto Fresca
-#ifndef MAME_INCLUDES_TEHKANWC_H
-#define MAME_INCLUDES_TEHKANWC_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tehkanwc_state : public driver_device
-{
-public:
- tehkanwc_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_subcpu(*this, "sub"),
- m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_soundlatch2(*this, "soundlatch2"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_videoram2(*this, "videoram2"),
- m_spriteram(*this, "spriteram"),
- m_digits(*this, "digit%u", 0U)
- { }
-
- void tehkanwcb(machine_config &config);
- void tehkanwc(machine_config &config);
-
- void init_teedoff();
-
-protected:
- enum
- {
- TIMER_RESET
- };
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device<msm5205_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<generic_latch_8_device> m_soundlatch2;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_spriteram;
-
- output_finder<2> m_digits;
-
- int m_track0[2];
- int m_track1[2];
- int m_msm_data_offs;
- int m_toggle;
- uint8_t m_scroll_x[2];
- uint8_t m_led0;
- uint8_t m_led1;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- emu_timer *m_reset_timer;
-
- void sub_cpu_halt_w(uint8_t data);
- uint8_t track_0_r(offs_t offset);
- uint8_t track_1_r(offs_t offset);
- void track_0_reset_w(offs_t offset, uint8_t data);
- void track_1_reset_w(offs_t offset, uint8_t data);
- void sound_command_w(uint8_t data);
- void sound_answer_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- void videoram2_w(offs_t offset, uint8_t data);
- void scroll_x_w(offs_t offset, uint8_t data);
- void scroll_y_w(uint8_t data);
- void flipscreen_x_w(uint8_t data);
- void flipscreen_y_w(uint8_t data);
- void gridiron_led0_w(uint8_t data);
- void gridiron_led1_w(uint8_t data);
- uint8_t portA_r();
- uint8_t portB_r();
- void portA_w(uint8_t data);
- void portB_w(uint8_t data);
- void msm_reset_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void gridiron_draw_led(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t led,int player);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_mem(address_map &map);
- void sound_mem(address_map &map);
- void sound_port(address_map &map);
- void sub_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TEHKANWC_H
diff --git a/src/mame/includes/tek405x.h b/src/mame/includes/tek405x.h
deleted file mode 100644
index 7e33c6169e9..00000000000
--- a/src/mame/includes/tek405x.h
+++ /dev/null
@@ -1,176 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_TEK405X_H
-#define MAME_INCLUDES_TEK405X_H
-
-#pragma once
-
-#include "bus/generic/carts.h"
-#include "bus/generic/slot.h"
-#include "bus/ieee488/ieee488.h"
-
-#include "cpu/m6800/m6800.h"
-
-#include "machine/6821pia.h"
-#include "machine/6850acia.h"
-#include "machine/clock.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-
-#include "sound/spkrdev.h"
-
-#include "video/vector.h"
-
-#include "emupal.h"
-
-
-#define MC6800_TAG "u61"
-#define MC6820_Y_TAG "u561"
-#define MC6820_X_TAG "u565"
-#define MC6820_TAPE_TAG "u361"
-#define MC6820_KB_TAG "u461"
-#define MC6820_GPIB_TAG "u265"
-#define MC6820_COM_TAG "u5"
-#define MC6850_TAG "u25"
-#define RS232_TAG "rs232"
-#define SCREEN_TAG "screen"
-
-#define AM2901A_TAG "am2901a"
-
-class tek4051_state : public driver_device
-{
-public:
- tek4051_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, MC6800_TAG),
- m_gpib_pia(*this, MC6820_GPIB_TAG),
- m_com_pia(*this, MC6820_COM_TAG),
- m_acia(*this, MC6850_TAG),
- m_acia_clock(*this, "acia_clock"),
- m_gpib(*this, IEEE488_TAG),
- m_speaker(*this, "speaker"),
- m_ram(*this, RAM_TAG),
- m_rom(*this, MC6800_TAG),
- m_bsofl_rom(*this, "020_0147_00"),
- m_bscom_rom(*this, "021_0188_00"),
- m_special(*this, "SPECIAL"),
- m_lamps(*this, "lamp%u", 1U)
- { }
-
- void tek4051(machine_config &config);
-
-private:
- void bankswitch(uint8_t data);
- void update_irq();
- void update_nmi();
- void scan_keyboard();
-
- void lbs_w(uint8_t data);
-
- uint8_t x_pia_pa_r();
- void x_pia_pa_w(uint8_t data);
- void x_pia_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( adot_w );
- DECLARE_WRITE_LINE_MEMBER( bufclk_w );
- DECLARE_WRITE_LINE_MEMBER( x_pia_irqa_w );
- DECLARE_WRITE_LINE_MEMBER( x_pia_irqb_w );
-
- uint8_t sa_r();
- void y_pia_pa_w(uint8_t data);
- void sb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( sot_w );
- DECLARE_WRITE_LINE_MEMBER( y_pia_irqa_w );
- DECLARE_WRITE_LINE_MEMBER( y_pia_irqb_w );
-
- uint8_t kb_pia_pa_r();
- uint8_t kb_pia_pb_r();
- void kb_pia_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( kb_halt_w );
- DECLARE_WRITE_LINE_MEMBER( kb_pia_irqa_w );
- DECLARE_WRITE_LINE_MEMBER( kb_pia_irqb_w );
-
- uint8_t tape_pia_pa_r();
- void tape_pia_pa_w(uint8_t data);
- void tape_pia_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( tape_pia_irqa_w );
- DECLARE_WRITE_LINE_MEMBER( tape_pia_irqb_w );
-
- void dio_w(uint8_t data);
- uint8_t gpib_pia_pb_r();
- void gpib_pia_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( talk_w );
- DECLARE_WRITE_LINE_MEMBER( gpib_pia_irqa_w );
- DECLARE_WRITE_LINE_MEMBER( gpib_pia_irqb_w );
-
- void com_pia_pa_w(uint8_t data);
- uint8_t com_pia_pb_r();
- void com_pia_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( com_pia_irqa_w );
- DECLARE_WRITE_LINE_MEMBER( com_pia_irqb_w );
- DECLARE_WRITE_LINE_MEMBER( acia_irq_w );
- DECLARE_WRITE_LINE_MEMBER( write_acia_clock );
-
- TIMER_DEVICE_CALLBACK_MEMBER(keyboard_tick);
- void tek4051_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<pia6821_device> m_gpib_pia;
- required_device<pia6821_device> m_com_pia;
- required_device<acia6850_device> m_acia;
- required_device<clock_device> m_acia_clock;
- required_device<ieee488_device> m_gpib;
- required_device<speaker_sound_device> m_speaker;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- required_memory_region m_bsofl_rom;
- required_memory_region m_bscom_rom;
- required_ioport m_special;
- output_finder<3> m_lamps;
-
- // interrupts
- int m_x_pia_irqa;
- int m_x_pia_irqb;
- int m_y_pia_irqa;
- int m_y_pia_irqb;
- int m_tape_pia_irqa;
- int m_tape_pia_irqb;
- int m_kb_pia_irqa;
- int m_kb_pia_irqb;
- int m_gpib_pia_irqa;
- int m_gpib_pia_irqb;
- int m_com_pia_irqa;
- int m_com_pia_irqb;
- int m_acia_irq;
-
- // keyboard
- int m_kc;
-
- // GPIB
- int m_talk;
-};
-
-class tek4052_state : public driver_device
-{
-public:
- tek4052_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, AM2901A_TAG),
- m_ram(*this, RAM_TAG)
- { }
-
- void tek4052(machine_config &config);
-
-private:
- void tek4052_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
-};
-
-#endif // MAME_INCLUDES_TEK405X_H
diff --git a/src/mame/includes/terracre.h b/src/mame/includes/terracre.h
deleted file mode 100644
index d8dc382b101..00000000000
--- a/src/mame/includes/terracre.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Carlos A. Lozano
-#ifndef MAME_INCLUDES_TERRACRE_H
-#define MAME_INCLUDES_TERRACRE_H
-
-#pragma once
-
-#include "machine/nb1412m2.h"
-#include "machine/gen_latch.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class terracre_state : public driver_device
-{
-public:
- terracre_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_soundlatch(*this, "soundlatch"),
- m_bg_videoram(*this, "bg_videoram"),
- m_fg_videoram(*this, "fg_videoram")
- { }
-
- void amazon_base(machine_config &config);
- void ym2203(machine_config &config);
- void ym3526(machine_config &config);
-
-protected:
- void amazon_base_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
-
-private:
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram16_device> m_spriteram;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_bg_videoram;
- required_shared_ptr<uint16_t> m_fg_videoram;
-
- uint16_t m_xscroll;
- uint16_t m_yscroll;
- tilemap_t *m_background;
- tilemap_t *m_foreground;
- void amazon_sound_w(uint16_t data);
- uint8_t soundlatch_clear_r();
- void amazon_background_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void amazon_foreground_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void amazon_flipscreen_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void amazon_scrolly_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void amazon_scrollx_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void video_start() override;
- void terracre_palette(palette_device &palette) const;
- uint32_t screen_update_amazon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void sound_2203_io_map(address_map &map);
- void sound_3526_io_map(address_map &map);
- void sound_map(address_map &map);
- void terracre_map(address_map &map);
-};
-
-class amazon_state : public terracre_state
-{
-public:
- amazon_state(const machine_config &mconfig, device_type type, const char *tag) :
- terracre_state(mconfig, type, tag),
- m_prot(*this, "prot_chip")
- { }
-
- void amazon_1412m2(machine_config &config);
- void amazon_1412m2_map(address_map &map);
-private:
- required_device<nb1412m2_device> m_prot;
-};
-
-#endif // MAME_INCLUDES_TERRACRE_H
diff --git a/src/mame/includes/tetrisp2.h b/src/mame/includes/tetrisp2.h
deleted file mode 100644
index c5afba264e4..00000000000
--- a/src/mame/includes/tetrisp2.h
+++ /dev/null
@@ -1,272 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-
-#include "machine/gen_latch.h"
-#include "machine/jaleco_ms32_sysctrl.h"
-#include "video/ms32_sprite.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tetrisp2_state : public driver_device
-{
-public:
- tetrisp2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_sysctrl(*this, "sysctrl")
- , m_sprite(*this, "sprite")
- , m_screen(*this, "screen")
- , m_spriteram(*this, "spriteram")
- , m_spriteram2(*this, "spriteram2")
- , m_vram_fg(*this, "vram_fg")
- , m_vram_bg(*this, "vram_bg")
- , m_vram_rot(*this, "vram_rot")
- , m_nvram(*this, "nvram")
- , m_scroll_fg(*this, "scroll_fg")
- , m_scroll_bg(*this, "scroll_bg")
- , m_rotregs(*this, "rotregs")
- , m_gfxdecode(*this, "gfxdecode")
- , m_sub_gfxdecode(*this, "sub_gfxdecode")
- , m_palette(*this, "palette")
- , m_paletteram(*this, "paletteram")
- , m_leds(*this, "led%u", 0U)
- { }
-
- void rockn2(machine_config &config);
- void tetrisp2(machine_config &config);
- void nndmseal(machine_config &config);
- void rockn(machine_config &config);
-
- void init_rockn2();
- void init_rockn1();
- void init_rockn();
- void init_rockn3();
-
- TILE_GET_INFO_MEMBER(get_tile_info_bg);
- TILE_GET_INFO_MEMBER(get_tile_info_rot);
-
-protected:
- void setup_main_sysctrl(machine_config &config, const XTAL clock);
- void setup_main_sprite(machine_config &config, const XTAL clock);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(timer_irq_w);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq_w);
- DECLARE_WRITE_LINE_MEMBER(field_irq_w);
- DECLARE_WRITE_LINE_MEMBER(sound_reset_line_w);
-
- u16 rockn_adpcmbank_r();
- void rockn_adpcmbank_w(u16 data);
- void rockn2_adpcmbank_w(u16 data);
- u16 rockn_soundvolume_r();
- void rockn_soundvolume_w(u16 data);
- void nndmseal_sound_bank_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 tetrisp2_ip_1_word_r();
- u16 rockn_nvram_r(offs_t offset);
- void tetrisp2_coincounter_w(u16 data);
- void nndmseal_coincounter_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void nndmseal_b20000_w(u16 data);
- u16 tetrisp2_nvram_r(offs_t offset);
- void tetrisp2_nvram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tetrisp2_palette_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tetrisp2_priority_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 tetrisp2_priority_r(offs_t offset);
- void tetrisp2_vram_bg_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tetrisp2_vram_fg_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tetrisp2_vram_rot_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_tile_info_fg);
-
- DECLARE_VIDEO_START(tetrisp2);
- DECLARE_VIDEO_START(nndmseal);
- DECLARE_VIDEO_START(rockntread);
- u32 screen_update_tetrisp2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_rockntread(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void init_rockn_timer();
-
- void nndmseal_map(address_map &map);
- void rockn1_map(address_map &map);
- void rockn2_map(address_map &map);
- void tetrisp2_map(address_map &map);
-
- virtual void machine_start() override { m_leds.resolve(); }
-
- required_device<cpu_device> m_maincpu;
- required_device<jaleco_ms32_sysctrl_device> m_sysctrl;
- required_device<ms32_sprite_device> m_sprite;
- required_device<screen_device> m_screen;
-
- required_shared_ptr<u16> m_spriteram;
- optional_shared_ptr<u16> m_spriteram2;
-
- required_shared_ptr<u16> m_vram_fg;
- required_shared_ptr<u16> m_vram_bg;
- required_shared_ptr<u16> m_vram_rot;
- required_shared_ptr<u16> m_nvram;
- required_shared_ptr<u16> m_scroll_fg;
- required_shared_ptr<u16> m_scroll_bg;
- required_shared_ptr<u16> m_rotregs;
- std::unique_ptr<u8[]> m_priority;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_device<gfxdecode_device> m_sub_gfxdecode;
- required_device<palette_device> m_palette;
- required_shared_ptr<u16> m_paletteram;
- output_finder<45> m_leds;
-
- u16 m_rockn_protectdata;
- u16 m_rockn_adpcmbank;
- u16 m_rockn_soundvolume;
- int m_rot_ofsx, m_rot_ofsy;
- int m_bank_lo;
- int m_bank_hi;
-
- tilemap_t *m_tilemap_bg;
- tilemap_t *m_tilemap_fg;
- tilemap_t *m_tilemap_rot;
-};
-
-class rocknms_state : public tetrisp2_state
-{
-public:
- rocknms_state(const machine_config &mconfig, device_type type, const char *tag)
- : tetrisp2_state(mconfig, type, tag)
- , m_subcpu(*this, "sub")
- , m_sub_sysctrl(*this, "sub_sysctrl")
- , m_sub_screen(*this, "sub_screen")
- , m_rocknms_sub_sprite(*this, "sub_sprite")
- , m_rocknms_sub_priority(*this, "sub_priority")
- , m_rocknms_sub_vram_rot(*this, "sub_vram_rot")
- , m_rocknms_sub_vram_fg(*this, "sub_vram_fg")
- , m_rocknms_sub_vram_bg(*this, "sub_vram_bg")
- , m_rocknms_sub_scroll_fg(*this, "sub_scroll_fg")
- , m_rocknms_sub_scroll_bg(*this, "sub_scroll_bg")
- , m_rocknms_sub_rotregs(*this, "sub_rotregs")
- , m_sub_palette(*this, "sub_palette")
- , m_sub_paletteram(*this, "sub_paletteram")
- { }
-
- void rocknms(machine_config &config);
- void init_rocknms();
- DECLARE_CUSTOM_INPUT_MEMBER(rocknms_main2sub_status_r);
-
-private:
- required_device<cpu_device> m_subcpu;
- required_device<jaleco_ms32_sysctrl_device> m_sub_sysctrl;
- required_device<screen_device> m_sub_screen;
- required_device<ms32_sprite_device> m_rocknms_sub_sprite;
- required_shared_ptr<u16> m_rocknms_sub_priority;
- required_shared_ptr<u16> m_rocknms_sub_vram_rot;
- required_shared_ptr<u16> m_rocknms_sub_vram_fg;
- required_shared_ptr<u16> m_rocknms_sub_vram_bg;
- required_shared_ptr<u16> m_rocknms_sub_scroll_fg;
- required_shared_ptr<u16> m_rocknms_sub_scroll_bg;
- required_shared_ptr<u16> m_rocknms_sub_rotregs;
- required_device<palette_device> m_sub_palette;
- required_shared_ptr<u16> m_sub_paletteram;
-
- u32 screen_update_rocknms_left(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_rocknms_right(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void rocknms_main_map(address_map &map);
- void rocknms_sub_map(address_map &map);
-
- u16 rocknms_main2sub_r();
- void rocknms_main2sub_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void rocknms_sub2main_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void rocknms_sub_palette_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void rocknms_sub_priority_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void rocknms_sub_vram_bg_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void rocknms_sub_vram_fg_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void rocknms_sub_vram_rot_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- DECLARE_VIDEO_START(rocknms);
-
- TILE_GET_INFO_MEMBER(get_tile_info_rocknms_sub_bg);
- TILE_GET_INFO_MEMBER(get_tile_info_rocknms_sub_fg);
- TILE_GET_INFO_MEMBER(get_tile_info_rocknms_sub_rot);
-
- u16 m_rocknms_main2sub;
- u16 m_rocknms_sub2main;
-
- tilemap_t *m_tilemap_sub_bg;
- tilemap_t *m_tilemap_sub_fg;
- tilemap_t *m_tilemap_sub_rot;
-
- DECLARE_WRITE_LINE_MEMBER(sub_flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(sub_timer_irq_w);
- DECLARE_WRITE_LINE_MEMBER(sub_vblank_irq_w);
- DECLARE_WRITE_LINE_MEMBER(sub_field_irq_w);
- DECLARE_WRITE_LINE_MEMBER(sub_sound_reset_line_w);
-};
-
-class stepstag_state : public tetrisp2_state
-{
-public:
- stepstag_state(const machine_config &mconfig, device_type type, const char *tag) :
- tetrisp2_state(mconfig, type, tag)
- , m_subcpu(*this, "sub")
- , m_vj_sprite_l(*this, "sprite_l")
- , m_vj_sprite_m(*this, "sprite_m")
- , m_vj_sprite_r(*this, "sprite_r")
- , m_spriteram1(*this, "spriteram1")
- , m_spriteram3(*this, "spriteram3")
- , m_vj_palette_l(*this, "lpalette")
- , m_vj_palette_m(*this, "mpalette")
- , m_vj_palette_r(*this, "rpalette")
- , m_vj_paletteram_l(*this, "paletteram1")
- , m_vj_paletteram_m(*this, "paletteram2")
- , m_vj_paletteram_r(*this, "paletteram3")
- , m_soundlatch(*this, "soundlatch")
- { }
-
- void stepstag(machine_config &config);
- void vjdash(machine_config &config);
-
- void init_stepstag();
-
- DECLARE_VIDEO_START(stepstag);
-
-private:
- u16 stepstag_coins_r();
- u16 vj_upload_idx;
- bool vj_upload_fini;
- void stepstag_b00000_w(u16 data);
- void stepstag_b20000_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void stepstag_main2pc_w(u16 data);
- u16 unknown_read_0xc00000();
- u16 unknown_read_0xffff00();
- u16 stepstag_pc2main_r();
- void stepstag_soundlatch_word_w(u16 data);
- void stepstag_neon_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void stepstag_step_leds_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void stepstag_button_leds_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void stepstag_palette_left_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void stepstag_palette_mid_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void stepstag_palette_right_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(stepstag_get_tile_info_fg);
- u32 screen_update_stepstag_left(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_stepstag_mid(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_stepstag_right(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- u32 screen_update_stepstag_main(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-// inline int mypal(int x);
-
- void stepstag_map(address_map &map);
- void stepstag_sub_map(address_map &map);
- void vjdash_map(address_map &map);
-
- TIMER_DEVICE_CALLBACK_MEMBER(field_cb);
- void setup_non_sysctrl_screen(machine_config &config, screen_device *screen, const XTAL xtal);
-
- required_device<cpu_device> m_subcpu;
- optional_device<ms32_sprite_device> m_vj_sprite_l;
- optional_device<ms32_sprite_device> m_vj_sprite_m;
- optional_device<ms32_sprite_device> m_vj_sprite_r;
- required_shared_ptr<u16> m_spriteram1;
- required_shared_ptr<u16> m_spriteram3;
- optional_device<palette_device> m_vj_palette_l;
- optional_device<palette_device> m_vj_palette_m;
- optional_device<palette_device> m_vj_palette_r;
- optional_shared_ptr<u16> m_vj_paletteram_l;
- optional_shared_ptr<u16> m_vj_paletteram_m;
- optional_shared_ptr<u16> m_vj_paletteram_r;
- required_device<generic_latch_16_device> m_soundlatch;
- void convert_yuv422_to_rgb888(palette_device *paldev, u16 *palram,u32 offset);
-};
diff --git a/src/mame/includes/thedeep.h b/src/mame/includes/thedeep.h
deleted file mode 100644
index 890f9c1ac84..00000000000
--- a/src/mame/includes/thedeep.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_THEDEEP_H
-#define MAME_INCLUDES_THEDEEP_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "video/decbac06.h"
-#include "video/decmxc06.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class thedeep_state : public driver_device
-{
-public:
- thedeep_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_mcu(*this, "mcu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_tilegen(*this, "tilegen"),
- m_spritegen(*this, "spritegen"),
- m_soundlatch(*this, "soundlatch"),
- m_coins(*this, "COINS"),
- m_spriteram(*this, "spriteram"),
- m_textram(*this, "textram")
- { }
-
- void thedeep(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<i8751_device> m_mcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<deco_bac06_device> m_tilegen;
- required_device<deco_mxc06_device> m_spritegen;
- required_device<generic_latch_8_device> m_soundlatch;
- required_ioport m_coins;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_textram;
-
- int m_nmi_enable;
- tilemap_t *m_text_tilemap;
-
- // protection mcu
- uint8_t mcu_p0_r();
- void mcu_p1_w(uint8_t data);
- uint8_t mcu_p2_r();
- void mcu_p2_w(uint8_t data);
- void mcu_p3_w(uint8_t data);
-
- uint8_t m_maincpu_to_mcu;
- uint8_t m_mcu_to_maincpu;
- uint8_t m_mcu_p2;
- uint8_t m_mcu_p3;
- int m_coin_result;
-
- uint8_t protection_r();
- void protection_w(uint8_t data);
- uint8_t e004_r();
- void nmi_w(uint8_t data);
- void e100_w(uint8_t data);
-
- void textram_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- void thedeep_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
-
- void audio_map(address_map &map);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_THEDEEP_H
diff --git a/src/mame/includes/thepit.h b/src/mame/includes/thepit.h
deleted file mode 100644
index 28712eba70b..00000000000
--- a/src/mame/includes/thepit.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-#ifndef MAME_INCLUDES_THEPIT_H
-#define MAME_INCLUDES_THEPIT_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class thepit_state : public driver_device
-{
-public:
- thepit_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mainlatch(*this, "mainlatch"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_attributesram(*this, "attributesram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void suprmous(machine_config &config);
- void desertdn(machine_config &config);
- void dockmanb(machine_config &config);
- void intrepid(machine_config &config);
- void thepit(machine_config &config);
- void fitter(machine_config &config);
- void theportr(machine_config &config);
-
- void init_rtriv();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_mainlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_attributesram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- uint8_t m_graphics_bank;
- uint8_t m_flip_x;
- uint8_t m_flip_y;
- tilemap_t *m_solid_tilemap;
- tilemap_t *m_tilemap;
- std::unique_ptr<uint8_t[]> m_dummy_tile;
- uint8_t m_nmi_mask;
-
- int m_question_address;
- int m_question_rom;
- int m_remap_address[16];
-
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(sound_enable_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
- uint8_t input_port_0_r();
-
- uint8_t intrepid_colorram_mirror_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(intrepid_graphics_bank_w);
-
- uint8_t rtriv_question_r(offs_t offset);
-
- TILE_GET_INFO_MEMBER(solid_get_tile_info);
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- void thepit_palette(palette_device &palette) const;
- void suprmous_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_desertdan(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority_to_draw);
-
- INTERRUPT_GEN_MEMBER(vblank_irq);
-
- void audio_io_map(address_map &map);
- void audio_map(address_map &map);
- void desertdan_main_map(address_map &map);
- void dockmanb_main_map(address_map &map);
- void intrepid_main_map(address_map &map);
- void thepit_main_map(address_map &map);
- void theportr_main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_THEPIT_H
diff --git a/src/mame/includes/thief.h b/src/mame/includes/thief.h
deleted file mode 100644
index 94ca9754e4b..00000000000
--- a/src/mame/includes/thief.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Victor Trucco, Mike Balfour, Phil Stroffolino
-#include "sound/samples.h"
-#include "video/tms9927.h"
-#include "emupal.h"
-#include "screen.h"
-
-struct coprocessor_t {
- std::unique_ptr<uint8_t[]> context_ram;
- uint8_t bank;
- std::unique_ptr<uint8_t[]> image_ram;
- uint8_t param[0x9];
-};
-
-class thief_state : public driver_device
-{
-public:
- thief_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag) ,
- m_maincpu(*this, "maincpu"),
- m_samples(*this, "samples"),
- m_tms(*this, "tms"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette") { }
-
- void natodef(machine_config &config);
- void sharkatt(machine_config &config);
- void thief(machine_config &config);
-
- void init_thief();
-
- DECLARE_WRITE_LINE_MEMBER(slam_w);
-
-private:
- std::unique_ptr<uint8_t[]> m_videoram;
- uint8_t m_input_select;
- uint8_t m_read_mask;
- uint8_t m_write_mask;
- uint8_t m_video_control;
- coprocessor_t m_coprocessor;
- void thief_input_select_w(uint8_t data);
- uint8_t thief_io_r();
- uint8_t thief_context_ram_r(offs_t offset);
- void thief_context_ram_w(offs_t offset, uint8_t data);
- void thief_context_bank_w(uint8_t data);
- void thief_video_control_w(uint8_t data);
- void thief_color_map_w(offs_t offset, uint8_t data);
- void thief_color_plane_w(uint8_t data);
- uint8_t thief_videoram_r(offs_t offset);
- void thief_videoram_w(offs_t offset, uint8_t data);
- void thief_blit_w(uint8_t data);
- uint8_t thief_coprocessor_r(offs_t offset);
- void thief_coprocessor_w(offs_t offset, uint8_t data);
- void tape_control_w(uint8_t data);
- virtual void video_start() override;
- uint32_t screen_update_thief(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- IRQ_CALLBACK_MEMBER(iack);
- uint16_t fetch_image_addr( coprocessor_t &thief_coprocessor );
- void tape_set_audio( int track, int bOn );
- void tape_set_motor( int bOn );
- required_device<cpu_device> m_maincpu;
- required_device<samples_device> m_samples;
- required_device<tms9927_device> m_tms;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- void io_map(address_map &map);
- void sharkatt_main_map(address_map &map);
- void thief_main_map(address_map &map);
-};
diff --git a/src/mame/includes/thomson.h b/src/mame/includes/thomson.h
deleted file mode 100644
index a36a95f6da5..00000000000
--- a/src/mame/includes/thomson.h
+++ /dev/null
@@ -1,732 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Antoine Mine
-/**********************************************************************
-
- Copyright (C) Antoine Mine' 2006
-
- Thomson 8-bit computers
-
-**********************************************************************/
-
-#ifndef MAME_INCLUDES_THOMSON_H
-#define MAME_INCLUDES_THOMSON_H
-
-#pragma once
-
-#include "cpu/m6809/m6809.h"
-#include "formats/thom_cas.h"
-#include "formats/thom_dsk.h"
-#include "imagedev/cassette.h"
-#include "machine/6821pia.h"
-#include "machine/6850acia.h"
-#include "machine/input_merger.h"
-#include "machine/mc6843.h"
-#include "machine/mc6846.h"
-#include "machine/mc6846.h"
-#include "machine/mos6551.h"
-#include "machine/ram.h"
-#include "sound/dac.h"
-#include "sound/mea8000.h"
-#include "bus/thomson/extension.h"
-#include "bus/thomson/nanoreseau.h"
-
-#include "bus/centronics/ctronics.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "bus/rs232/rs232.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-
-/* 6821 PIAs */
-#define THOM_PIA_SYS "pia_0" /* system PIA */
-#define THOM_PIA_GAME "pia_1" /* music & game PIA (joypad + sound) */
-#define THOM_PIA_IO "pia_2" /* CC 90-232 I/O extension (parallel & RS-232) */
-#define THOM_PIA_MODEM "pia_3" /* MD 90-120 MODEM extension */
-
-/* sound ports */
-#define THOM_SOUND_BUZ 0 /* 1-bit buzzer */
-#define THOM_SOUND_GAME 1 /* 6-bit game port DAC */
-#define THOM_SOUND_SPEECH 2 /* speech synthesis */
-
-/* bank-switching */
-#define THOM_CART_BANK "bank2" /* cartridge ROM */
-#define THOM_RAM_BANK "bank3" /* data RAM */
-#define THOM_BASE_BANK "bank5" /* system RAM */
-
-/* bank-switching */
-#define TO8_SYS_LO "bank5" /* system RAM low 2 Kb */
-#define TO8_SYS_HI "bank6" /* system RAM hi 2 Kb */
-#define TO8_DATA_LO "bank7" /* data RAM low 2 Kb */
-#define TO8_DATA_HI "bank8" /* data RAM hi 2 Kb */
-#define TO8_BIOS_BANK "bank9" /* BIOS ROM */
-#define MO6_CART_LO "bank10"
-#define MO6_CART_HI "bank11"
-
-
-/* original screen dimension (may be different from emulated screen!) */
-#define THOM_ACTIVE_WIDTH 320
-#define THOM_BORDER_WIDTH 56
-#define THOM_ACTIVE_HEIGHT 200
-#define THOM_BORDER_HEIGHT 47
-#define THOM_TOTAL_WIDTH 432
-#define THOM_TOTAL_HEIGHT 294
-
-/* Emulated screen dimension may be doubled to allow hi-res 640x200 mode.
- Emulated screen can have smaller borders.
- */
-
-/* maximum number of video pages:
- 1 for TO7 generation (including MO5)
- 4 for TO8 generation (including TO9, MO6)
- */
-#define THOM_NB_PAGES 4
-
-/* page 0 is banked */
-#define THOM_VRAM_BANK "bank1"
-
-
-struct thom_vsignal {
- unsigned count; /* pixel counter */
- unsigned init; /* 1 -> active vertical windos, 0 -> border/VBLANK */
- unsigned inil; /* 1 -> active horizontal window, 0 -> border/HBLANK */
- unsigned lt3; /* bit 3 of us counter */
- unsigned line; /* line counter */
-};
-
-
-class thomson_state : public driver_device
-{
-public:
- thomson_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_cassette(*this, "cassette"),
- m_dac(*this, "dac"),
- m_centronics(*this, "centronics"),
- m_cent_data_out(*this, "cent_data_out"),
- m_pia_sys(*this, THOM_PIA_SYS),
- m_pia_game(*this, THOM_PIA_GAME),
- m_acia(*this, "acia6850"),
- m_mea8000(*this, "mea8000"),
- m_ram(*this, RAM_TAG),
- m_mc6846(*this, "mc6846"),
- m_mc6843(*this, "mc6843"),
- m_screen(*this, "screen"),
- m_mainirq(*this, "mainirq"),
- m_mainfirq(*this, "mainfirq"),
- m_extension(*this, "extension"),
- m_io_game_port_directions(*this, "game_port_directions"),
- m_io_game_port_buttons(*this, "game_port_buttons"),
- m_io_mouse_x(*this, "mouse_x"),
- m_io_mouse_y(*this, "mouse_y"),
- m_io_mouse_button(*this, "mouse_button"),
- m_io_lightpen_x(*this, "lightpen_x"),
- m_io_lightpen_y(*this, "lightpen_y"),
- m_io_lightpen_button(*this, "lightpen_button"),
- m_io_config(*this, "config"),
- m_io_vconfig(*this, "vconfig"),
- m_io_mconfig(*this, "mconfig"),
- m_io_keyboard(*this, "keyboard.%u", 0),
- m_vrambank(*this, THOM_VRAM_BANK),
- m_cartbank(*this, THOM_CART_BANK),
- m_rambank(*this, THOM_RAM_BANK),
- m_basebank(*this, THOM_BASE_BANK),
- m_cart_rom(*this, "cartridge"),
- m_caps_led(*this, "led0")
- {
- }
-
- void to7_base(machine_config &config, bool is_mo);
- void to7(machine_config &config);
- void to770a(machine_config &config);
- void t9000(machine_config &config);
- void to770(machine_config &config);
-
- void to770_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void mo5_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void mo5alt_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap4_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap4alt_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap4althalf_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap16_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void mode80_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void page1_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void page2_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void overlay_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void overlayhalf_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void overlay3_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap16alt_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void to770_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void mo5_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void mo5alt_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap4_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap4alt_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap4althalf_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap16_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void mode80_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void page1_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void page2_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void overlay_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void overlayhalf_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void overlay3_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void bitmap16alt_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void to9_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void mode80_to9_scandraw_16( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void to9_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
- void mode80_to9_scandraw_8( uint8_t* vram, uint16_t* dst, uint16_t* pal, int org, int len );
-
-protected:
- emu_timer* m_mo5_periodic_timer;
- uint8_t m_mo5_reg_cart; /* 0xa7cb bank switch */
-
- virtual void video_start() override;
-
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( to7_cartridge );
-
- DECLARE_WRITE_LINE_MEMBER( to7_set_cassette_motor );
- DECLARE_WRITE_LINE_MEMBER( thom_dev_irq_0 );
- void to7_cartridge_w(offs_t offset, uint8_t data);
- uint8_t to7_cartridge_r(offs_t offset);
- void to7_timer_port_out(uint8_t data);
- uint8_t to7_timer_port_in();
- DECLARE_WRITE_LINE_MEMBER( to7_set_cassette );
- DECLARE_WRITE_LINE_MEMBER( to7_sys_cb2_out );
- void to7_sys_portb_out(uint8_t data);
- uint8_t to7_sys_porta_in();
- uint8_t to7_sys_portb_in();
- DECLARE_WRITE_LINE_MEMBER( to7_modem_cb );
- DECLARE_WRITE_LINE_MEMBER( to7_modem_tx_w);
- DECLARE_WRITE_LINE_MEMBER( write_acia_clock );
- uint8_t to7_modem_mea8000_r(offs_t offset);
- void to7_modem_mea8000_w(offs_t offset, uint8_t data);
- uint8_t to7_game_porta_in();
- uint8_t to7_game_portb_in();
- void to7_game_portb_out(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( to7_game_cb2_out );
- TIMER_CALLBACK_MEMBER( to7_game_update_cb );
- uint8_t to7_midi_r();
- void to7_midi_w(uint8_t data);
- DECLARE_MACHINE_RESET( to7 );
- DECLARE_MACHINE_START( to7 );
- DECLARE_WRITE_LINE_MEMBER( to770_sys_cb2_out );
- uint8_t to770_sys_porta_in();
- void to7_update_cart_bank_postload();
- void to770_update_ram_bank_postload();
- void to770_sys_portb_out(uint8_t data);
- void to770_timer_port_out(uint8_t data);
- uint8_t to770_gatearray_r(offs_t offset);
- void to770_gatearray_w(offs_t offset, uint8_t data);
- DECLARE_MACHINE_RESET( to770 );
- DECLARE_MACHINE_START( to770 );
- void to7_lightpen_cb( int step );
-
- TIMER_CALLBACK_MEMBER( thom_lightpen_step );
- TIMER_CALLBACK_MEMBER( thom_scanline_start );
- uint32_t screen_update_thom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void to7_vram_w(offs_t offset, uint8_t data);
- void to770_vram_w(offs_t offset, uint8_t data);
- TIMER_CALLBACK_MEMBER( thom_set_init );
-
- DECLARE_WRITE_LINE_MEMBER(thom_vblank);
-
- uint8_t to7_5p14_r(offs_t offset);
- void to7_5p14_w(offs_t offset, uint8_t data);
- uint8_t to7_5p14sd_r(offs_t offset);
- void to7_5p14sd_w(offs_t offset, uint8_t data);
- TIMER_CALLBACK_MEMBER( ans4 );
- TIMER_CALLBACK_MEMBER( ans3 );
- TIMER_CALLBACK_MEMBER( ans2 );
- TIMER_CALLBACK_MEMBER( ans );
- void thom_palette(palette_device &palette);
-
- int m_centronics_busy;
- int m_centronics_perror;
-
- void to7_map(address_map &map);
- void to770_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_device<dac_byte_interface> m_dac;
- optional_device<centronics_device> m_centronics;
- optional_device<output_latch_device> m_cent_data_out;
- required_device<pia6821_device> m_pia_sys;
- required_device<pia6821_device> m_pia_game;
- required_device<acia6850_device> m_acia;
- required_device<mea8000_device> m_mea8000;
- required_device<ram_device> m_ram;
- optional_device<mc6846_device> m_mc6846;
- optional_device<mc6843_device> m_mc6843;
- required_device<screen_device> m_screen;
- required_device<input_merger_device> m_mainirq;
- required_device<input_merger_device> m_mainfirq;
- required_device<thomson_extension_device> m_extension;
- required_ioport m_io_game_port_directions;
- required_ioport m_io_game_port_buttons;
- required_ioport m_io_mouse_x;
- required_ioport m_io_mouse_y;
- required_ioport m_io_mouse_button;
- required_ioport m_io_lightpen_x;
- required_ioport m_io_lightpen_y;
- required_ioport m_io_lightpen_button;
- required_ioport m_io_config;
- required_ioport m_io_vconfig;
- optional_ioport m_io_mconfig;
- required_ioport_array<10> m_io_keyboard;
- required_memory_bank m_vrambank;
- optional_memory_bank m_cartbank;
- optional_memory_bank m_rambank;
- required_memory_bank m_basebank;
- required_region_ptr<uint8_t> m_cart_rom;
-
- output_finder<> m_caps_led;
-
- /* bank logging and optimisations */
- int m_old_cart_bank;
- int m_old_cart_bank_was_read_only;
- int m_old_ram_bank;
- /* buffer storing demodulated bits, only for k7 and with speed hack */
- uint32_t m_to7_k7_bitsize;
- uint8_t* m_to7_k7_bits;
- /* ------------ cartridge ------------ */
- uint8_t m_thom_cart_nb_banks; /* number of 16 KB banks (up to 4) */
- uint8_t m_thom_cart_bank; /* current bank */
- uint8_t m_to7_lightpen_step;
- uint8_t m_to7_lightpen;
- uint8_t m_to7_modem_tx;
- /* calls to7_game_update_cb periodically */
- emu_timer* m_to7_game_timer;
- uint8_t m_to7_game_sound;
- uint8_t m_to7_game_mute;
-
- /* We allow choosing dynamically:
- - the border size
- - whether we use 640 pixels or 320 pixels in an active row
- (now this is automatically chosen by default for each frame)
- */
- uint16_t m_thom_bwidth;
- uint16_t m_thom_bheight;
- /* border size */
- uint8_t m_thom_hires;
- /* 0 = low res: 320x200 active area (faster)
- 1 = hi res: 640x200 active area (can represent all video modes)
- */
- uint8_t m_thom_hires_better;
- /* 1 = a 640 mode was used in the last frame */
- /* we use our own video timing to precisely cope with VBLANK and HBLANK */
- emu_timer* m_thom_video_timer; /* time elapsed from beginning of frame */
- /* number of lightpen call-backs per frame */
- int m_thom_lightpen_nb;
- /* called thom_lightpen_nb times */
- emu_timer *m_thom_lightpen_timer;
- /* lightpen callback function to call from timer */
- std::function<void (int)> m_thom_lightpen_cb;
- uint8_t* m_thom_vram; /* pointer to video memory */
- emu_timer* m_thom_scanline_timer; /* scan-line update */
- uint16_t m_thom_last_pal[16]; /* palette at last scanline start */
- uint16_t m_thom_pal[16]; /* current palette */
- bool m_thom_pal_changed; /* whether pal != old_pal */
- uint8_t m_thom_border_index; /* current border color index */
- /* the left and right border color for each row (including top and bottom
- border rows); -1 means unchanged wrt last scanline
- */
- int16_t m_thom_border_l[THOM_TOTAL_HEIGHT+1];
- int16_t m_thom_border_r[THOM_TOTAL_HEIGHT+1];
- /* active area, updated one scan-line at a time every 64us,
- then blitted in screen_update
- */
- uint16_t m_thom_vbody[640*200];
- uint8_t m_thom_vmode; /* current vide mode */
- uint8_t m_thom_vpage; /* current video page */
- /* this stores the video mode & page at each GPL in the current line
- (-1 means unchanged)
- */
- int16_t m_thom_vmodepage[41];
- uint8_t m_thom_vmodepage_changed;
- /* one dirty flag for each video memory line */
- bool m_thom_vmem_dirty[205];
- /* set to 1 if undirty scanlines need to be redrawn due to other video state
- changes */
- bool m_thom_vstate_dirty;
- bool m_thom_vstate_last_dirty;
- uint32_t m_thom_mode_point;
- emu_timer *m_thom_init_timer;
- void (thomson_state::*m_thom_init_cb)( int init );
-
- int to7_get_cassette();
- void thom_irq_reset();
- void to7_update_cart_bank();
- void to7_set_init( int init );
- void to7_modem_reset();
- void to7_modem_init();
- uint8_t to7_get_mouse_signal();
- void to7_game_sound_update();
- void to7_game_init();
- void to7_game_reset();
- void to7_midi_reset();
- void to7_midi_init();
- void to770_update_ram_bank();
-
- TIMER_CALLBACK_MEMBER( mo5_periodic_cb );
- int mo5_get_cassette();
- void mo5_set_cassette( int data );
- void mo5_init_timer();
-
- bool update_screen_size();
- unsigned thom_video_elapsed();
- struct thom_vsignal thom_get_vsignal();
- void thom_get_lightpen_pos( int*x, int* y );
- struct thom_vsignal thom_get_lightpen_vsignal( int xdec, int ydec, int xdec2 );
- void thom_set_lightpen_callback( int nb );
- int thom_mode_is_hires( int mode );
- void thom_border_changed();
- void thom_gplinfo_changed();
- void thom_set_border_color( unsigned index );
- void thom_set_palette( unsigned index, uint16_t color );
- void thom_set_video_mode( unsigned mode );
- void thom_set_video_page( unsigned page );
- void thom_set_mode_point( int point );
- unsigned to7_lightpen_gpl( int decx, int decy );
- void thom_configure_palette( double gamma, const uint16_t* pal, palette_device& palette );
-
- DECLARE_WRITE_LINE_MEMBER( mo5_set_cassette_motor );
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( mo5_cartridge );
-};
-
-class mo5_state : public thomson_state
-{
-public:
- mo5_state(const machine_config &mconfig, device_type type, const char *tag) :
- thomson_state(mconfig, type, tag)
- {
- }
-
- void mo5(machine_config &config);
- void mo5e(machine_config &config);
-
-protected:
- void mo5_lightpen_cb( int step );
- void mo5_sys_porta_out(uint8_t data);
- uint8_t mo5_sys_porta_in();
- uint8_t mo5_sys_portb_in();
- uint8_t mo5_gatearray_r(offs_t offset);
- void mo5_gatearray_w(offs_t offset, uint8_t data);
- void mo5_update_cart_bank_postload();
- void mo5_cartridge_w(offs_t offset, uint8_t data);
- uint8_t mo5_cartridge_r(offs_t offset);
- void mo5_ext_w(uint8_t data);
- DECLARE_MACHINE_RESET( mo5 );
- DECLARE_MACHINE_START( mo5 );
-
- void mo5_palette(palette_device &palette);
-
- void mo5_map(address_map &map);
-
- void mo5_update_cart_bank();
-};
-
-class to9_state : public thomson_state
-{
-public:
- to9_state(const machine_config &mconfig, device_type type, const char *tag) :
- thomson_state(mconfig, type, tag),
- m_syslobank(*this, TO8_SYS_LO),
- m_syshibank(*this, TO8_SYS_HI),
- m_datalobank(*this, TO8_DATA_LO),
- m_datahibank(*this, TO8_DATA_HI),
- m_biosbank(*this, TO8_BIOS_BANK)
- {
- }
-
- void to8(machine_config &config);
- void to8d(machine_config &config);
- void to9(machine_config &config);
- void to9p(machine_config &config);
-
-protected:
- required_memory_bank m_syslobank;
- optional_memory_bank m_syshibank;
- optional_memory_bank m_datalobank;
- optional_memory_bank m_datahibank;
- optional_memory_bank m_biosbank;
-
- uint8_t m_to8_kbd_ack; /* 1 = cpu inits / accepts transfers */
- uint16_t m_to8_kbd_data; /* data to transmit */
- uint16_t m_to8_kbd_step; /* transmission automaton state */
- uint8_t m_to8_kbd_last_key; /* last key (for repetition) */
- uint32_t m_to8_kbd_key_count; /* keypress time (for repetition) */
- uint8_t m_to8_kbd_caps; /* caps lock */
- emu_timer* m_to8_kbd_timer; /* bit-send */
- emu_timer* m_to8_kbd_signal; /* signal from CPU */
- uint8_t m_to8_data_vpage;
- uint8_t m_to8_cart_vpage;
- uint8_t m_to8_reg_ram;
- uint8_t m_to8_reg_cart;
- uint8_t m_to8_reg_sys1;
- uint8_t m_to8_reg_sys2;
- uint8_t m_to8_lightpen_intr;
- uint8_t m_to8_soft_select;
- uint8_t m_to8_soft_bank;
- uint8_t m_to8_bios_bank;
-
- TIMER_CALLBACK_MEMBER( to8_kbd_timer_cb );
- void to8_update_ram_bank_postload();
- void to8_update_cart_bank_postload();
- void to8_cartridge_w(offs_t offset, uint8_t data);
- uint8_t to8_cartridge_r(offs_t offset);
- uint8_t to8_gatearray_r(offs_t offset);
- void to8_gatearray_w(offs_t offset, uint8_t data);
- uint8_t to8_vreg_r(offs_t offset);
- void to8_vreg_w(offs_t offset, uint8_t data);
- uint8_t to8_sys_porta_in();
- void to8_sys_portb_out(uint8_t data);
- uint8_t to8_timer_port_in();
- void to8_timer_port_out(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( to8_timer_cp2_out );
- void to8_lightpen_cb( int step );
- DECLARE_MACHINE_RESET( to8 );
- DECLARE_MACHINE_START( to8 );
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
-
- void to8_sys_lo_w(offs_t offset, uint8_t data);
- void to8_sys_hi_w(offs_t offset, uint8_t data);
- void to8_data_lo_w(offs_t offset, uint8_t data);
- void to8_data_hi_w(offs_t offset, uint8_t data);
- void to8_vcart_w(offs_t offset, uint8_t data);
-
- int to8_kbd_ktest();
- int to8_kbd_get_key();
- void to8_kbd_timer_func();
- void to8_kbd_set_ack( int data );
- void to8_kbd_reset();
- void to8_kbd_init();
- void to8_update_ram_bank();
- void to8_update_cart_bank();
-
- void to9_ieee_w(offs_t offset, uint8_t data);
- uint8_t to9_ieee_r(offs_t offset);
- uint8_t to9_gatearray_r(offs_t offset);
- void to9_gatearray_w(offs_t offset, uint8_t data);
- uint8_t to9_vreg_r(offs_t offset);
- void to9_vreg_w(offs_t offset, uint8_t data);
- void to9_update_cart_bank_postload();
- void to9_cartridge_w(offs_t offset, uint8_t data);
- uint8_t to9_cartridge_r(offs_t offset);
- void to9_update_ram_bank_postload();
- uint8_t to9_kbd_r(offs_t offset);
- void to9_kbd_w(offs_t offset, uint8_t data);
- TIMER_CALLBACK_MEMBER( to9_kbd_timer_cb );
- uint8_t to9_sys_porta_in();
- void to9_sys_porta_out(uint8_t data);
- void to9_sys_portb_out(uint8_t data);
- void to9_timer_port_out(uint8_t data);
- DECLARE_MACHINE_RESET( to9 );
- DECLARE_MACHINE_START( to9 );
- uint8_t to9p_timer_port_in();
- void to9p_timer_port_out(uint8_t data);
- DECLARE_MACHINE_RESET( to9p );
- DECLARE_MACHINE_START( to9p );
-
- void to8_map(address_map &map);
- void to9_map(address_map &map);
- void to9p_map(address_map &map);
-
- uint8_t m_to9_palette_data[32];
- uint8_t m_to9_palette_idx;
- uint8_t m_to9_soft_bank;
- uint8_t m_to9_kbd_parity; /* 0=even, 1=odd, 2=no parity */
- uint8_t m_to9_kbd_intr; /* interrupt mode */
- uint8_t m_to9_kbd_in; /* data from keyboard */
- uint8_t m_to9_kbd_status; /* status */
- uint8_t m_to9_kbd_overrun; /* character lost */
- uint8_t m_to9_kbd_periph; /* peripheral mode */
- uint8_t m_to9_kbd_byte_count; /* byte-count in peripheral mode */
- uint16_t m_to9_mouse_x;
- uint16_t m_to9_mouse_y;
- uint8_t m_to9_kbd_last_key; /* for key repetition */
- uint16_t m_to9_kbd_key_count;
- uint8_t m_to9_kbd_caps; /* caps-lock */
- uint8_t m_to9_kbd_pad; /* keypad outputs special codes */
- emu_timer* m_to9_kbd_timer;
-
- void to9_set_video_mode( uint8_t data, int style );
- void to9_palette_init();
- void to9_update_cart_bank();
- void to9_update_ram_bank();
- int to9_kbd_ktest();
- void to9_kbd_update_irq();
- void to9_kbd_send( uint8_t data, int parity );
- int to9_kbd_get_key();
- void to9_kbd_reset();
- void to9_kbd_init();
-};
-
-class mo6_state : public to9_state
-{
-public:
- mo6_state(const machine_config &mconfig, device_type type, const char *tag) :
- to9_state(mconfig, type, tag),
- m_cartlobank(*this, MO6_CART_LO),
- m_carthibank(*this, MO6_CART_HI)
- {
- }
-
- void mo6(machine_config &config);
- void pro128(machine_config &config);
-
- DECLARE_MACHINE_RESET( mo6 );
- DECLARE_MACHINE_START( mo6 );
-
-protected:
- optional_memory_bank m_cartlobank;
- optional_memory_bank m_carthibank;
-
- void mo6_update_ram_bank_postload();
- void mo6_update_cart_bank_postload();
- void mo6_cartridge_w(offs_t offset, uint8_t data);
- uint8_t mo6_cartridge_r(offs_t offset);
- void mo6_ext_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( mo6_centronics_busy );
- void mo6_game_porta_out(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( mo6_game_cb2_out );
- TIMER_CALLBACK_MEMBER( mo6_game_update_cb );
- uint8_t mo6_sys_porta_in();
- uint8_t mo6_sys_portb_in();
- void mo6_sys_porta_out(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( mo6_sys_cb2_out );
- uint8_t mo6_gatearray_r(offs_t offset);
- void mo6_gatearray_w(offs_t offset, uint8_t data);
- uint8_t mo6_vreg_r(offs_t offset);
- void mo6_vreg_w(offs_t offset, uint8_t data);
- void mo6_vcart_lo_w(offs_t offset, uint8_t data);
- void mo6_vcart_hi_w(offs_t offset, uint8_t data);
- void mo6_map(address_map &map);
- void mo6_update_ram_bank();
- void mo6_update_cart_bank();
- void mo6_game_init();
- void mo6_game_reset();
-};
-
-class mo5nr_state : public mo6_state
-{
-public:
- mo5nr_state(const machine_config &mconfig, device_type type, const char *tag) :
- mo6_state(mconfig, type, tag),
- m_nanoreseau(*this, "nanoreseau"),
- m_nanoreseau_config(*this, "nanoreseau_config"),
- m_extension_view(*this, "extension_view")
- {
- }
-
- void mo5nr(machine_config &config);
-
- DECLARE_MACHINE_RESET( mo5nr );
- DECLARE_MACHINE_START( mo5nr );
-
-protected:
- required_device<nanoreseau_device> m_nanoreseau;
- required_ioport m_nanoreseau_config;
- memory_view m_extension_view;
-
- void mo5nr_map(address_map &map);
-
- void mo5nr_game_init();
- void mo5nr_game_reset();
-
- uint8_t id_r();
-
- uint8_t mo5nr_net_r(offs_t offset);
- void mo5nr_net_w(offs_t offset, uint8_t data);
- uint8_t mo5nr_prn_r();
- void mo5nr_prn_w(uint8_t data);
- uint8_t mo5nr_sys_portb_in();
- void mo5nr_sys_porta_out(uint8_t data);
-};
-
-/*----------- defined in video/thomson.cpp -----------*/
-
-/*
- TO7 video:
- one line (64 us) =
- 56 left border pixels ( 7 us)
- + 320 active pixels (40 us)
- + 56 right border pixels ( 7 us)
- + horizontal retrace (10 us)
-
- one image (20 ms) =
- 47 top border lines (~3 ms)
- + 200 active lines (12.8 ms)
- + 47 bottom border lines (~3 ms)
- + vertical retrace (~1 ms)
-
- TO9 and up introduced a half (160 pixels) and double (640 pixels)
- horizontal mode, but still in 40 us (no change in refresh rate).
-*/
-
-
-/***************************** dimensions **************************/
-
-
-/*********************** video signals *****************************/
-
-/***************************** commons *****************************/
-
-
-/* video modes */
-#define THOM_VMODE_TO770 0
-#define THOM_VMODE_MO5 1
-#define THOM_VMODE_BITMAP4 2
-#define THOM_VMODE_BITMAP4_ALT 3
-#define THOM_VMODE_80 4
-#define THOM_VMODE_BITMAP16 5
-#define THOM_VMODE_PAGE1 6
-#define THOM_VMODE_PAGE2 7
-#define THOM_VMODE_OVERLAY 8
-#define THOM_VMODE_OVERLAY3 9
-#define THOM_VMODE_TO9 10
-#define THOM_VMODE_80_TO9 11
-#define THOM_VMODE_BITMAP4_ALT_HALF 12
-#define THOM_VMODE_MO5_ALT 13
-#define THOM_VMODE_OVERLAY_HALF 14
-#define THOM_VMODE_BITMAP16_ALT 15
-#define THOM_VMODE_NB 16
-
-
-class to7_io_line_device : public device_t
-{
-public:
- // construction/destruction
- to7_io_line_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_add_mconfig(machine_config &config) override;
-
-private:
- required_device<pia6821_device> m_pia_io;
- required_device<rs232_port_device> m_rs232;
- int m_last_low;
- int m_centronics_busy;
- int m_rxd;
- int m_cts;
- int m_dsr;
-
- /* read data register */
- uint8_t porta_in();
-
- /* write data register */
- void porta_out(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(write_rxd);
- DECLARE_WRITE_LINE_MEMBER(write_cts);
- DECLARE_WRITE_LINE_MEMBER(write_dsr);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
-};
-
-DECLARE_DEVICE_TYPE(TO7_IO_LINE, to7_io_line_device)
-
-#endif // MAME_INCLUDES_THOMSON_H
diff --git a/src/mame/includes/thoop2.h b/src/mame/includes/thoop2.h
deleted file mode 100644
index 524cb477094..00000000000
--- a/src/mame/includes/thoop2.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia, Peter Ferrie
-#ifndef MAME_INCLUDES_THOOP2_H
-#define MAME_INCLUDES_THOOP2_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class thoop2_state : public driver_device
-{
-public:
- thoop2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_pant{ nullptr, nullptr },
- m_maincpu(*this, "maincpu"),
- m_outlatch(*this, "outlatch"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_okibank(*this, "okibank"),
- m_videoram(*this, "videoram"),
- m_vregs(*this, "vregs"),
- m_spriteram(*this, "spriteram"),
- m_shareram(*this, "shareram")
- { }
-
- void thoop2(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- void oki_bankswitch_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin1_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
-
- void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void shareram_w(offs_t offset, uint8_t data);
- uint8_t shareram_r(offs_t offset);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void mcu_hostmem_map(address_map &map);
- void oki_map(address_map &map);
- void thoop2_map(address_map &map);
-
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- tilemap_t *m_pant[2];
-
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_outlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_memory_bank m_okibank;
-
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_vregs;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_shareram;
-};
-
-#endif // MAME_INCLUDES_THOOP2_H
diff --git a/src/mame/includes/thunderj.h b/src/mame/includes/thunderj.h
deleted file mode 100644
index d7a04b93174..00000000000
--- a/src/mame/includes/thunderj.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari ThunderJaws hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_THUNDERJ_H
-#define MAME_INCLUDES_THUNDERJ_H
-
-#pragma once
-
-#include "audio/atarijsa.h"
-#include "video/atarimo.h"
-#include "video/atarivad.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class thunderj_state : public driver_device
-{
-public:
- thunderj_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_screen(*this, "screen"),
- m_jsa(*this, "jsa"),
- m_vad(*this, "vad"),
- m_maincpu(*this, "maincpu"),
- m_extra(*this, "extra")
- { }
-
- void thunderj(machine_config &config);
-
- void init_thunderj();
-
-private:
- virtual void machine_start() override;
- DECLARE_WRITE_LINE_MEMBER(scanline_int_write_line);
- uint16_t special_port2_r();
- void latch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield2_tile_info);
- uint32_t screen_update_thunderj(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void extra_map(address_map &map);
- void main_map(address_map &map);
-
- required_device<screen_device> m_screen;
- required_device<atari_jsa_ii_device> m_jsa;
- required_device<atari_vad_device> m_vad;
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_extra;
-
- uint8_t m_alpha_tile_bank;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_THUNDERJ_H
diff --git a/src/mame/includes/thunderx.h b/src/mame/includes/thunderx.h
deleted file mode 100644
index c70fc05d2e0..00000000000
--- a/src/mame/includes/thunderx.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, Manuel Abadia
-/*************************************************************************
-
- Super Contra / Thunder Cross
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_THUNDERX_H
-#define MAME_INCLUDES_THUNDERX_H
-
-#pragma once
-
-#include "cpu/m6809/konami.h" // for the callback and the firq irq definition
-#include "machine/bankdev.h"
-#include "sound/k007232.h"
-#include "video/k051960.h"
-#include "video/k052109.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-
-class thunderx_state : public driver_device
-{
-public:
- thunderx_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_bank5800(*this, "bank5800"),
- m_k007232(*this, "k007232"),
- m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960"),
- m_palette(*this, "palette"),
- m_rombank(*this, "rombank"),
- m_pmcram(*this, "pmcram")
- { }
-
- void scontra(machine_config &config);
- void gbusters(machine_config &config);
- void thunderx(machine_config &config);
-
- void init_thunderx();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<konami_cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<address_map_bank_device> m_bank5800;
- optional_device<k007232_device> m_k007232;
- required_device<k052109_device> m_k052109;
- required_device<k051960_device> m_k051960;
- required_device<palette_device> m_palette;
-
- /* memory */
- required_memory_bank m_rombank;
- optional_shared_ptr<uint8_t> m_pmcram;
-
- /* misc */
- int m_priority;
- uint8_t m_1f98_latch;
- emu_timer *m_thunderx_firq_timer;
-
- void scontra_bankswitch_w(uint8_t data);
- void thunderx_videobank_w(uint8_t data);
- void gbusters_videobank_w(uint8_t data);
- uint8_t pmc_r(offs_t offset);
- void pmc_w(offs_t offset, uint8_t data);
- uint8_t _1f98_r();
- void scontra_1f98_w(uint8_t data);
- void thunderx_1f98_w(uint8_t data);
- void sh_irqtrigger_w(uint8_t data);
- uint8_t k052109_051960_r(offs_t offset);
- void k052109_051960_w(offs_t offset, uint8_t data);
- void k007232_bankswitch_w(uint8_t data);
- TIMER_CALLBACK_MEMBER(thunderx_firq_cb);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void run_collisions( int s0, int e0, int s1, int e1, int cm, int hm );
- void calculate_collisions( );
- void volume_callback(uint8_t data);
- K052109_CB_MEMBER(tile_callback);
- K052109_CB_MEMBER(gbusters_tile_callback);
- K051960_CB_MEMBER(sprite_callback);
- void banking_callback(uint8_t data);
-
- void gbusters_map(address_map &map);
- void scontra_bank5800_map(address_map &map);
- void scontra_map(address_map &map);
- void scontra_sound_map(address_map &map);
- void thunderx_bank5800_map(address_map &map);
- void thunderx_map(address_map &map);
- void thunderx_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_THUNDERX_H
diff --git a/src/mame/includes/ti85.h b/src/mame/includes/ti85.h
deleted file mode 100644
index 7c5016dce03..00000000000
--- a/src/mame/includes/ti85.h
+++ /dev/null
@@ -1,255 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Krzysztof Strzecha,Jon Sturm
-/*****************************************************************************
- *
- * includes/ti85.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_TI85_H
-#define MAME_INCLUDES_TI85_H
-
-#pragma once
-
-#include "bus/ti8x/ti8x.h"
-#include "imagedev/snapquik.h"
-#include "machine/bankdev.h"
-#include "machine/intelfsh.h"
-#include "machine/nvram.h"
-#include "video/t6a04.h"
-#include "emupal.h"
-
-
-/* model */
-enum ti85_model {
- TI81,
- TI81v2,
- TI82,
- TI83,
- TI85,
- TI86,
- TI83P,
- TI83PSE,
- TI84P,
- TI84PSE
-};
-
-typedef struct
-{
- uint8_t loop;
- uint8_t setup;
- float divsor;
- bool interrupt;
- uint8_t max;
- uint8_t count;
-} ti83pse_timer;
-
-typedef enum TI83PSE_CTIMER
-{
- CRYSTAL_TIMER1 = 0,
- CRYSTAL_TIMER2,
- CRYSTAL_TIMER3,
- HW_TIMER1,
- HW_TIMER2
-} ti83pse_ctimers;
-
-class ti85_state : public driver_device
-{
-public:
- ti85_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_link_port(*this, "linkport")
- , m_nvram(*this, "nvram")
- , m_flash(*this, "flash")
- , m_membank(*this, "membank%u", 0U)
- {
- }
-
- void ti83(machine_config &config);
- void ti82(machine_config &config);
- void ti83p(machine_config &config);
- void ti81v2(machine_config &config);
- void ti73(machine_config &config);
- void ti85d(machine_config &config);
- void ti83pse(machine_config &config);
- void ti84pse(machine_config &config);
- void ti86(machine_config &config);
- void ti81(machine_config &config);
- void ti85(machine_config &config);
- void ti84p(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<ti8x_link_port_device> m_link_port;
- optional_shared_ptr<uint8_t> m_nvram;
- optional_device<intelfsh8_device> m_flash;
- optional_device_array<address_map_bank_device, 4> m_membank;
-
- ti85_model m_model;
-
- uint8_t m_LCD_memory_base;
- uint8_t m_LCD_contrast;
- uint8_t m_LCD_status;
- uint8_t m_timer_interrupt_mask;
- uint8_t m_timer_interrupt_status;
- uint8_t m_ctimer_interrupt_status;
- uint8_t m_ON_interrupt_mask;
- uint8_t m_ON_interrupt_status;
- uint8_t m_ON_pressed;
- uint8_t m_flash_unlocked;
- uint8_t m_ti8x_memory_page_1;
- uint8_t m_ti8x_memory_page_2;
- uint8_t m_ti8x_memory_page_3;
- bool m_booting;
- uint8_t m_LCD_mask;
- uint8_t m_power_mode;
- uint8_t m_cpu_speed;
- uint8_t m_keypad_mask;
- uint8_t m_video_buffer_width;
- uint8_t m_interrupt_speed;
- uint8_t m_port4_bit0;
- uint8_t m_ti81_port_7_data;
- std::unique_ptr<uint8_t[]> m_ti8x_ram;
- uint8_t m_PCR;
- uint8_t m_ti8x_port2;
- uint8_t m_ti83p_port4;
- uint8_t m_ti83pse_port21;
- int m_ti_video_memory_size;
- int m_ti_screen_x_size;
- int m_ti_screen_y_size;
- int m_ti_number_of_frames;
- std::unique_ptr<uint8_t[]> m_frames;
- uint8_t * m_bios;
- emu_timer *m_ti85_timer;
- emu_timer *m_ti83_1st_timer;
- emu_timer *m_ti83_2nd_timer;
- uint8_t ti85_port_0000_r();
- uint8_t ti8x_keypad_r();
- uint8_t ti85_port_0006_r();
- uint8_t ti8x_serial_r();
- uint8_t ti86_port_0005_r();
- uint8_t ti83_port_0000_r();
- uint8_t ti8x_plus_serial_r();
- void ti81_port_0007_w(uint8_t data);
- void ti85_port_0000_w(uint8_t data);
- void ti8x_keypad_w(uint8_t data);
- void ti85_port_0002_w(uint8_t data);
- void ti85_port_0003_w(uint8_t data);
- void ti85_port_0004_w(uint8_t data);
- void ti85_port_0005_w(uint8_t data);
- void ti85_port_0006_w(uint8_t data);
- void ti8x_serial_w(uint8_t data);
- void ti86_port_0005_w(uint8_t data);
- void ti86_port_0006_w(uint8_t data);
- void ti82_port_0002_w(uint8_t data);
- void ti83_port_0000_w(uint8_t data);
- void ti83_port_0002_w(uint8_t data);
- void ti83_port_0003_w(uint8_t data);
- void ti8x_plus_serial_w(uint8_t data);
- void ti83p_int_mask_w(uint8_t data);
- void ti83p_port_0004_w(uint8_t data);
- void ti83p_port_0006_w(uint8_t data);
- void ti83p_port_0007_w(uint8_t data);
- void ti83pse_int_ack_w(uint8_t data);
- void ti83pse_port_0004_w(uint8_t data);
- void ti83pse_port_0005_w(uint8_t data);
- void ti83pse_port_0006_w(uint8_t data);
- void ti83pse_port_0007_w(uint8_t data);
- void ti83p_port_0014_w(uint8_t data);
- void ti83pse_port_0020_w(uint8_t data);
- void ti83pse_port_0021_w(uint8_t data);
- uint8_t ti85_port_0002_r();
- uint8_t ti85_port_0003_r();
- uint8_t ti85_port_0004_r();
- uint8_t ti85_port_0005_r();
- uint8_t ti86_port_0006_r();
- uint8_t ti82_port_0002_r();
- uint8_t ti83_port_0002_r();
- uint8_t ti83_port_0003_r();
- uint8_t ti83p_port_0002_r();
- uint8_t ti83p_port_0004_r();
- uint8_t ti83pse_port_0002_r();
- uint8_t ti83pse_port_0005_r();
- uint8_t ti83pse_port_0009_r();
- uint8_t ti83pse_port_0015_r();
- uint8_t ti83pse_port_0020_r();
- uint8_t ti83pse_port_0021_r();
- uint8_t ti84pse_port_0055_r();
- uint8_t ti84pse_port_0056_r();
- virtual void machine_start() override;
- virtual void video_start() override;
- void ti85_palette(palette_device &palette);
- DECLARE_MACHINE_RESET(ti85);
- DECLARE_MACHINE_RESET(ti83p);
- void ti82_palette(palette_device &palette) const;
- DECLARE_MACHINE_START(ti86);
- DECLARE_MACHINE_START(ti83p);
- DECLARE_MACHINE_START(ti83pse);
- DECLARE_MACHINE_START(ti84pse);
- DECLARE_MACHINE_START(ti84p);
- void ti8xpse_init_common();
-
- uint32_t screen_update_ti85(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(ti85_timer_callback);
- TIMER_CALLBACK_MEMBER(ti83_timer1_callback);
- TIMER_CALLBACK_MEMBER(ti83_timer2_callback);
-
- //crystal timers
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- void ti83pse_count(uint8_t timer, uint8_t data);
-
- emu_timer *m_crystal_timer1;
- emu_timer *m_crystal_timer2;
- emu_timer *m_crystal_timer3;
- uint8_t ti83pse_ctimer1_setup_r();
- void ti83pse_ctimer1_setup_w(uint8_t data);
- uint8_t ti83pse_ctimer1_loop_r();
- void ti83pse_ctimer1_loop_w(uint8_t data);
- uint8_t ti83pse_ctimer1_count_r();
- void ti83pse_ctimer1_count_w(uint8_t data);
- uint8_t ti83pse_ctimer2_setup_r();
- void ti83pse_ctimer2_setup_w(uint8_t data);
- uint8_t ti83pse_ctimer2_loop_r();
- void ti83pse_ctimer2_loop_w(uint8_t data);
- uint8_t ti83pse_ctimer2_count_r();
- void ti83pse_ctimer2_count_w(uint8_t data);
- uint8_t ti83pse_ctimer3_setup_r();
- void ti83pse_ctimer3_setup_w(uint8_t data);
- uint8_t ti83pse_ctimer3_loop_r();
- void ti83pse_ctimer3_loop_w(uint8_t data);
- uint8_t ti83pse_ctimer3_count_r();
- void ti83pse_ctimer3_count_w(uint8_t data);
- uint8_t ti83p_membank2_r(offs_t offset);
- uint8_t ti83p_membank3_r(offs_t offset);
-
- void ti8x_update_bank(address_space &space, uint8_t bank, uint8_t *base, uint8_t page, bool is_ram);
- void update_ti85_memory();
- void update_ti83p_memory();
- void update_ti83pse_memory();
- void update_ti86_memory();
- void ti8x_snapshot_setup_registers(uint8_t *data);
- void ti85_setup_snapshot(uint8_t *data);
- void ti86_setup_snapshot(uint8_t *data);
- DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
-
- ti83pse_timer m_ctimer[3];
-
- void ti81_io(address_map &map);
- void ti81_mem(address_map &map);
- void ti81v2_io(address_map &map);
- void ti82_io(address_map &map);
- void ti83_io(address_map &map);
- void ti83p_asic_mem(address_map &map);
- void ti83p_banked_mem(address_map &map);
- void ti83p_io(address_map &map);
- void ti83pse_banked_mem(address_map &map);
- void ti83pse_io(address_map &map);
- void ti84p_banked_mem(address_map &map);
- void ti85_io(address_map &map);
- void ti86_io(address_map &map);
- void ti86_mem(address_map &map);
- //address_space &asic;
-};
-
-#endif // MAME_INCLUDES_TI85_H
diff --git a/src/mame/includes/ti89.h b/src/mame/includes/ti89.h
deleted file mode 100644
index 9193feaf67a..00000000000
--- a/src/mame/includes/ti89.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sandro Ronco
-/*****************************************************************************
- *
- * includes/ti89.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_TI89_H
-#define MAME_INCLUDES_TI89_H
-
-#pragma once
-
-#include "machine/intelfsh.h"
-#include "machine/timer.h"
-#include "emupal.h"
-
-class ti68k_state : public driver_device
-{
-public:
- ti68k_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_flash(*this, "flash")
- , m_rom_base(*this, "flash")
- , m_ram_base(*this, "nvram")
- , m_io_bit0(*this, "BIT0")
- , m_io_bit1(*this, "BIT1")
- , m_io_bit2(*this, "BIT2")
- , m_io_bit3(*this, "BIT3")
- , m_io_bit4(*this, "BIT4")
- , m_io_bit5(*this, "BIT5")
- , m_io_bit6(*this, "BIT6")
- , m_io_bit7(*this, "BIT7")
- { }
-
- void v200(machine_config &config);
- void ti92(machine_config &config);
- void ti89(machine_config &config);
- void ti92p(machine_config &config);
- void ti89t(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(ti68k_on_key);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- // hardware versions
- enum { HW1=1, HW2, HW3, HW4 };
-
- required_device<cpu_device> m_maincpu;
- optional_device<intelfsh16_device> m_flash;
- required_region_ptr<uint16_t> m_rom_base;
- required_shared_ptr<uint16_t> m_ram_base;
- required_ioport m_io_bit0;
- required_ioport m_io_bit1;
- required_ioport m_io_bit2;
- required_ioport m_io_bit3;
- required_ioport m_io_bit4;
- required_ioport m_io_bit5;
- required_ioport m_io_bit6;
- required_ioport m_io_bit7;
-
- // HW specifications
- uint8_t m_hw_version;
- bool m_ram_enabled;
-
- // keyboard
- uint16_t m_kb_mask;
- uint8_t m_on_key;
-
- // LCD
- uint8_t m_lcd_on;
- uint32_t m_lcd_base;
- uint16_t m_lcd_width;
- uint16_t m_lcd_height;
- uint16_t m_lcd_contrast;
-
- // I/O
- uint16_t m_io_hw1[0x10];
- uint16_t m_io_hw2[0x80];
-
- // Timer
- uint8_t m_timer_on;
- uint8_t m_timer_val;
- uint16_t m_timer_mask;
- uint64_t m_timer;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint8_t keypad_r();
- void ti68k_io_w(offs_t offset, uint16_t data);
- uint16_t ti68k_io_r(offs_t offset);
- void ti68k_io2_w(offs_t offset, uint16_t data);
- uint16_t ti68k_io2_r(offs_t offset);
- uint16_t rom_r(offs_t offset);
- uint16_t reset_overlay_r(offs_t offset);
- void ti68k_palette(palette_device &palette) const;
-
- TIMER_DEVICE_CALLBACK_MEMBER(ti68k_timer_callback);
-
- void ti89_mem(address_map &map);
- void ti89t_mem(address_map &map);
- void ti92_mem(address_map &map);
- void ti92p_mem(address_map &map);
- void v200_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TI89_H
diff --git a/src/mame/includes/tiamc1.h b/src/mame/includes/tiamc1.h
deleted file mode 100644
index 6cf46869505..00000000000
--- a/src/mame/includes/tiamc1.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Eugene Sandulenko
-#ifndef MAME_INCLUDES_TIAMC1_H
-#define MAME_INCLUDES_TIAMC1_H
-
-#pragma once
-
-#include "machine/pit8253.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tiamc1_state : public driver_device
-{
-public:
- tiamc1_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_speaker(*this, "speaker")
- { }
-
- void kot(machine_config &config);
- void tiamc1(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- std::unique_ptr<uint8_t[]> m_videoram;
- uint8_t *m_tileram;
- uint8_t *m_charram;
- uint8_t *m_spriteram_x;
- uint8_t *m_spriteram_y;
- uint8_t *m_spriteram_a;
- uint8_t *m_spriteram_n;
- uint8_t *m_paletteram;
- uint8_t m_layers_ctrl;
- uint8_t m_bg_vshift;
- uint8_t m_bg_hshift;
- uint8_t m_bg_bplctrl;
- tilemap_t *m_bg_tilemap1;
- tilemap_t *m_bg_tilemap2;
- std::unique_ptr<rgb_t[]> m_palette_ptr;
- void tiamc1_control_w(uint8_t data);
- void tiamc1_videoram_w(offs_t offset, uint8_t data);
- void tiamc1_bankswitch_w(uint8_t data);
- void tiamc1_sprite_x_w(offs_t offset, uint8_t data);
- void tiamc1_sprite_y_w(offs_t offset, uint8_t data);
- void tiamc1_sprite_a_w(offs_t offset, uint8_t data);
- void tiamc1_sprite_n_w(offs_t offset, uint8_t data);
- void tiamc1_bg_vshift_w(uint8_t data);
- void tiamc1_bg_hshift_w(uint8_t data);
- void tiamc1_bg_bplctrl_w(uint8_t data);
- void tiamc1_palette_w(offs_t offset, uint8_t data);
- void kot_bankswitch_w(uint8_t data);
- void kot_videoram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pit8253_2_w);
-
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- DECLARE_VIDEO_START(kot);
- void tiamc1_palette(palette_device &palette);
- uint32_t screen_update_tiamc1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_kot(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- void kotrybolov_io_map(address_map &map);
- void kotrybolov_map(address_map &map);
- void tiamc1_io_map(address_map &map);
- void tiamc1_map(address_map &map);
-
- optional_device<speaker_sound_device> m_speaker;
- void update_bg_palette();
-};
-
-#endif // MAME_INCLUDES_TIAMC1_H
diff --git a/src/mame/includes/tigeroad.h b/src/mame/includes/tigeroad.h
deleted file mode 100644
index 4b7bc4b440a..00000000000
--- a/src/mame/includes/tigeroad.h
+++ /dev/null
@@ -1,153 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-
-#include "video/tigeroad_spr.h"
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/m6805/m68705.h"
-#include "cpu/z80/z80.h"
-#include "cpu/mcs51/mcs51.h"
-
-#include "sound/msm5205.h"
-#include "sound/ym2203.h"
-
-#include "video/bufsprite.h"
-
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class tigeroad_state : public driver_device
-{
-public:
- tigeroad_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_palette(*this, "palette")
- , m_has_coinlock(true)
- , m_spriteram(*this, "spriteram")
- , m_videoram(*this, "videoram")
- , m_audiocpu(*this, "audiocpu")
- , m_msm(*this, "msm")
- , m_gfxdecode(*this, "gfxdecode")
- , m_spritegen(*this, "spritegen")
- { }
-
- void toramich(machine_config &config);
- void tigeroad(machine_config &config);
- void f1dream_comad(machine_config &config);
-
-protected:
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
-
- void soundcmd_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void videoctrl_w(u8 data);
- void scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- void main_map(address_map &map);
- // misc
- bool m_has_coinlock;
-
-private:
- required_device<buffered_spriteram16_device> m_spriteram;
- required_shared_ptr<u16> m_videoram;
- required_device<cpu_device> m_audiocpu;
- optional_device<msm5205_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<tigeroad_spr_device> m_spritegen;
-
- u8 m_bgcharbank;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- void comad_sound_io_map(address_map &map);
- void comad_sound_map(address_map &map);
- void sample_map(address_map &map);
- void sample_port_map(address_map &map);
- void sound_map(address_map &map);
- void sound_port_map(address_map &map);
-
- void msm5205_w(u8 data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILEMAP_MAPPER_MEMBER(tigeroad_tilemap_scan);
- virtual void video_start() override;
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-
-class pushman_state : public tigeroad_state
-{
-public:
- pushman_state(const machine_config &mconfig, device_type type, const char *tag)
- : tigeroad_state(mconfig, type, tag)
- , m_mcu(*this, "mcu")
- , m_host_semaphore(false)
- , m_mcu_semaphore(false)
- , m_host_latch(0xffff)
- , m_mcu_latch(0xffff)
- , m_mcu_output(0xffff)
- , m_mcu_latch_ctl(0xff)
- {
- m_has_coinlock = false;
- }
-
- void pushman(machine_config &config);
- void bballs(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- u16 mcu_comm_r(offs_t offset, u16 mem_mask = ~0);
- void pushman_mcu_comm_w(offs_t offset, u16 data);
- void bballs_mcu_comm_w(u16 data);
-
- void mcu_pa_w(u8 data);
- void mcu_pb_w(u8 data);
- void mcu_pc_w(u8 data);
-
- void bballs_map(address_map &map);
- void pushman_map(address_map &map);
-
- required_device<m68705u_device> m_mcu;
-
- bool m_host_semaphore, m_mcu_semaphore;
- u16 m_host_latch, m_mcu_latch;
- u16 m_mcu_output;
- u8 m_mcu_latch_ctl;
-};
-
-class f1dream_state : public tigeroad_state
-{
-public:
- f1dream_state(const machine_config &mconfig, device_type type, const char *tag)
- : tigeroad_state(mconfig, type, tag)
- , m_mcu(*this, "mcu")
- , m_ram16(*this, "ram16")
- , m_old_p3(0xff)
- {
- }
-
- void f1dream(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void f1dream_map(address_map &map);
- void f1dream_mcu_io(address_map &map);
-
- void out3_w(u8 data);
-
- u8 mcu_shared_r(offs_t offset);
- void mcu_shared_w(offs_t offset, u8 data);
-
- void to_mcu_w(u16 data);
-
- required_device<i8751_device> m_mcu;
- required_shared_ptr<u16> m_ram16;
- u8 m_old_p3;
-};
diff --git a/src/mame/includes/tiki100.h b/src/mame/includes/tiki100.h
deleted file mode 100644
index ceead06693d..00000000000
--- a/src/mame/includes/tiki100.h
+++ /dev/null
@@ -1,165 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder, Frode van der Meeren
-#ifndef MAME_INCLUDES_TIKI100_H
-#define MAME_INCLUDES_TIKI100_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-#include "bus/rs232/rs232.h"
-#include "bus/tiki100/exp.h"
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "formats/tiki100_dsk.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "machine/z80ctc.h"
-#include "machine/z80pio.h"
-#include "machine/z80sio.h"
-#include "machine/wd_fdc.h"
-#include "sound/ay8910.h"
-#include "emupal.h"
-
-#define Z80_TAG "z80"
-#define Z80DART_TAG "z80dart"
-#define Z80PIO_TAG "z80pio"
-#define Z80CTC_TAG "z80ctc"
-#define FD1797_TAG "fd1797"
-#define AY8912_TAG "ay8912"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-#define CASSETTE_TAG "cassette"
-#define CENTRONICS_TAG "centronics"
-#define SCREEN_TAG "screen"
-
-#define TIKI100_VIDEORAM_SIZE 0x8000
-#define TIKI100_VIDEORAM_MASK 0x7fff
-
-#define BANK_ROM 0
-#define BANK_RAM 1
-#define BANK_VIDEO_RAM 2
-
-class tiki100_state : public driver_device
-{
-public:
- tiki100_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_screen(*this, "screen"),
- m_maincpu(*this, Z80_TAG),
- m_ctc(*this, Z80CTC_TAG),
- m_fdc(*this, FD1797_TAG),
- m_pio(*this, Z80PIO_TAG),
- m_dart(*this, Z80DART_TAG),
- m_psg(*this, AY8912_TAG),
- m_ram(*this, RAM_TAG),
- m_floppy0(*this, FD1797_TAG":0"),
- m_floppy1(*this, FD1797_TAG":1"),
- m_cassette(*this, CASSETTE_TAG),
- m_centronics(*this, CENTRONICS_TAG),
- m_exp(*this, "tiki100bus"),
- m_rom(*this, Z80_TAG),
- m_prom(*this, "u4"),
- m_video_ram(*this, "video_ram", TIKI100_VIDEORAM_SIZE, ENDIANNESS_LITTLE),
- m_y(*this, "Y%u", 1),
- m_st_io(*this, "ST"),
- m_palette(*this, "palette"),
- m_leds(*this, "led%u", 1U),
- m_rome(1),
- m_vire(1)
- { }
-
- void tiki100(machine_config &config);
-
-private:
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t mrq_r(offs_t offset);
- void mrq_w(offs_t offset, uint8_t data);
- uint8_t iorq_r(offs_t offset);
- void iorq_w(offs_t offset, uint8_t data);
-
- uint8_t keyboard_r();
- void keyboard_w(uint8_t data);
- void video_mode_w(uint8_t data);
- void palette_w(uint8_t data);
- void system_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( bar0_w );
- DECLARE_WRITE_LINE_MEMBER( bar2_w );
- void video_scroll_w(uint8_t data);
-
- uint8_t pio_pb_r();
- void pio_pb_w(uint8_t data);
-
- static void floppy_formats(format_registration &fr);
-
- TIMER_DEVICE_CALLBACK_MEMBER( ctc_tick );
- TIMER_DEVICE_CALLBACK_MEMBER( tape_tick );
- TIMER_DEVICE_CALLBACK_MEMBER( scanline_start );
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_ack);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
-
- DECLARE_WRITE_LINE_MEMBER( busrq_w );
-
- void tiki100_io(address_map &map);
- void tiki100_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<screen_device> m_screen;
- required_device<z80_device> m_maincpu;
- required_device<z80ctc_device> m_ctc;
- required_device<fd1797_device> m_fdc;
- required_device<z80pio_device> m_pio;
- required_device<z80dart_device> m_dart;
- required_device<ay8912_device> m_psg;
- required_device<ram_device> m_ram;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<cassette_image_device> m_cassette;
- required_device<centronics_device> m_centronics;
- required_device<tiki100_bus_device> m_exp;
- required_memory_region m_rom;
- required_memory_region m_prom;
- memory_share_creator<uint8_t> m_video_ram;
- required_ioport_array<13> m_y;
- required_ioport m_st_io;
- required_device<palette_device> m_palette;
- output_finder<2> m_leds;
-
- enum
- {
- ROM0 = 0x01,
- ROM1 = 0x02,
- VIR = 0x04,
- RAM0 = 0x08
- };
-
- // memory state
- bool m_rome;
- bool m_vire;
-
- // video state
- uint8_t m_scroll;
- uint8_t m_mode;
- uint8_t m_palette_val;
- uint8_t m_current_pixel;
-
- // keyboard state
- int m_keylatch;
-
- // printer state
- int m_centronics_ack;
- int m_centronics_busy;
- int m_centronics_perror;
-
- // serial state
- bool m_st;
-
-};
-
-#endif // MAME_INCLUDES_TIKI100_H
diff --git a/src/mame/includes/timelimt.h b/src/mame/includes/timelimt.h
deleted file mode 100644
index 414c6ef9cde..00000000000
--- a/src/mame/includes/timelimt.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-#ifndef MAME_INCLUDES_TIMELIMT_H
-#define MAME_INCLUDES_TIMELIMT_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class timelimt_state : public driver_device
-{
-public:
- timelimt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void timelimt(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- int m_nmi_enabled;
- int m_scrollx;
- int m_scrolly;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
-
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_w);
-
- void videoram_w(offs_t offset, uint8_t data);
- void bg_videoram_w(offs_t offset, uint8_t data);
- void scroll_x_lsb_w(uint8_t data);
- void scroll_x_msb_w(uint8_t data);
- void scroll_y_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- void timelimt_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(irq);
-
- void main_io_map(address_map &map);
- void main_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TIMELIMT_H
diff --git a/src/mame/includes/timeplt.h b/src/mame/includes/timeplt.h
deleted file mode 100644
index c7daa3b4f0e..00000000000
--- a/src/mame/includes/timeplt.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Time Pilot
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_TIMEPLT_H
-#define MAME_INCLUDES_TIMEPLT_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "sound/tc8830f.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class timeplt_state : public driver_device
-{
-public:
- timeplt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_tc8830f(*this, "tc8830f"),
- m_mainlatch(*this, "mainlatch"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_colorram(*this, "colorram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2")
- { }
-
- void timeplt(machine_config &config);
- void chkun(machine_config &config);
- void psurge(machine_config &config);
- void bikkuric(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(chkun_hopper_status_r);
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<tc8830f_device> m_tc8830f;
- required_device<ls259_device> m_mainlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_spriteram2;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- /* misc */
- uint8_t m_nmi_enable;
- bool m_video_enable;
-
- /* common */
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- void videoram_w(offs_t offset, uint8_t data);
- void colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- uint8_t scanline_r();
-
- /* all but psurge */
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- DECLARE_WRITE_LINE_MEMBER(video_enable_w);
-
- /* psurge */
- uint8_t psurge_protection_r();
-
- /* chkun */
- void chkun_sound_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
- TILE_GET_INFO_MEMBER(get_chkun_tile_info);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void timeplt_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(chkun);
- DECLARE_VIDEO_START(psurge);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- void chkun_main_map(address_map &map);
- void psurge_main_map(address_map &map);
- void timeplt_main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TIMEPLT_H
diff --git a/src/mame/includes/timex.h b/src/mame/includes/timex.h
deleted file mode 100644
index 80fb2cfe07b..00000000000
--- a/src/mame/includes/timex.h
+++ /dev/null
@@ -1,104 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker
-/*****************************************************************************
- *
- * includes/timex.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_TIMEX_H
-#define MAME_INCLUDES_TIMEX_H
-
-#pragma once
-
-#include "bus/generic/carts.h"
-#include "bus/generic/slot.h"
-
-/* Border sizes for TS2068. These are guesses based on the number of cycles
- available per frame. */
-#define TS2068_TOP_BORDER 32
-#define TS2068_BOTTOM_BORDER 32
-#define TS2068_SCREEN_HEIGHT (TS2068_TOP_BORDER + SPEC_DISPLAY_YSIZE + TS2068_BOTTOM_BORDER)
-
-/* Double the border sizes to maintain ratio of screen to border */
-#define TS2068_LEFT_BORDER 96 /* Number of left hand border pixels */
-#define TS2068_DISPLAY_XSIZE 512 /* Horizontal screen resolution */
-#define TS2068_RIGHT_BORDER 96 /* Number of right hand border pixels */
-#define TS2068_SCREEN_WIDTH (TS2068_LEFT_BORDER + TS2068_DISPLAY_XSIZE + TS2068_RIGHT_BORDER)
-
-class tc2048_state : public spectrum_128_state
-{
-public:
- tc2048_state(const machine_config &mconfig, device_type type, const char *tag) :
- spectrum_128_state(mconfig, type, tag)
- {
- }
-
- void tc2048(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
- uint8_t port_ff_r();
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_timex);
-
- void hires_scanline(bitmap_ind16 &bitmap, int y, int borderlines);
- void _64col_scanline(bitmap_ind16 &bitmap, int y, int borderlines, unsigned short inkcolor);
- void lores_scanline(bitmap_ind16 &bitmap, int y, int borderlines, int screen);
-
-private:
- void port_ff_w(offs_t offset, uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void tc2048_io(address_map &map);
- void tc2048_mem(address_map &map);
-
- inline void spectrum_plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color);
-};
-
-class ts2068_state : public tc2048_state
-{
-public:
- ts2068_state(const machine_config &mconfig, device_type type, const char *tag) :
- tc2048_state(mconfig, type, tag),
- m_dock(*this, "dockslot")
- {
- }
-
- void ts2068(machine_config &config);
- void uk2086(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- virtual void ts2068_update_memory() override;
-
-private:
- enum
- {
- TIMEX_CART_NONE,
- TIMEX_CART_DOCK,
- TIMEX_CART_EXROM,
- TIMEX_CART_HOME
- };
-
- uint8_t port_f4_r();
- void port_f4_w(uint8_t data);
- void port_ff_w(offs_t offset, uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load);
- int m_dock_cart_type, m_ram_chunks;
- memory_region *m_dock_crt;
-
- void ts2068_io(address_map &map);
- void ts2068_mem(address_map &map);
-
- required_device<generic_slot_device> m_dock;
-};
-
-
-#endif // MAME_INCLUDES_TIMEX_H
diff --git a/src/mame/includes/tmc1800.h b/src/mame/includes/tmc1800.h
deleted file mode 100644
index ce026df557e..00000000000
--- a/src/mame/includes/tmc1800.h
+++ /dev/null
@@ -1,211 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_TMC1800_H
-#define MAME_INCLUDES_TMC1800_H
-
-#pragma once
-
-
-#include "cpu/cosmac/cosmac.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "machine/ram.h"
-#include "machine/rescap.h"
-#include "sound/cdp1864.h"
-#include "video/cdp1861.h"
-#include "sound/beep.h"
-
-#define TMC2000_COLORRAM_SIZE 0x200
-
-#define SCREEN_TAG "screen"
-#define CDP1802_TAG "cdp1802"
-#define CDP1861_TAG "cdp1861"
-#define CDP1864_TAG "m3"
-
-class tmc1800_base_state : public driver_device
-{
-public:
- tmc1800_base_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, CDP1802_TAG)
- , m_cassette(*this, "cassette")
- , m_rom(*this, CDP1802_TAG)
- , m_run(*this, "RUN")
- , m_ram(*this, RAM_TAG)
- , m_beeper(*this, "beeper")
- { }
-
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
-protected:
- required_device<cosmac_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_memory_region m_rom;
- required_ioport m_run;
- required_device<ram_device> m_ram;
- optional_device<beep_device> m_beeper;
-};
-
-class tmc1800_state : public tmc1800_base_state
-{
-public:
- enum
- {
- TIMER_SETUP_BEEP
- };
-
- tmc1800_state(const machine_config &mconfig, device_type type, const char *tag)
- : tmc1800_base_state(mconfig, type, tag)
- , m_vdc(*this, CDP1861_TAG)
- { }
-
- void keylatch_w(uint8_t data);
- uint8_t dispon_r();
- void dispoff_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( clear_r );
- DECLARE_READ_LINE_MEMBER( ef2_r );
- DECLARE_READ_LINE_MEMBER( ef3_r );
- DECLARE_WRITE_LINE_MEMBER( q_w );
-
- void init_tmc1800();
-
- void tmc1800(machine_config &config);
- void tmc1800_video(machine_config &config);
- void tmc1800_io_map(address_map &map);
- void tmc1800_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- required_device<cdp1861_device> m_vdc;
- /* keyboard state */
- int m_keylatch; /* key latch */
-};
-
-class osc1000b_state : public tmc1800_base_state
-{
-public:
- osc1000b_state(const machine_config &mconfig, device_type type, const char *tag)
- : tmc1800_base_state(mconfig, type, tag)
- { }
-
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void keylatch_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( clear_r );
- DECLARE_READ_LINE_MEMBER( ef2_r );
- DECLARE_READ_LINE_MEMBER( ef3_r );
- DECLARE_WRITE_LINE_MEMBER( q_w );
-
- void osc1000b(machine_config &config);
- void osc1000b_video(machine_config &config);
- void osc1000b_io_map(address_map &map);
- void osc1000b_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- /* keyboard state */
- int m_keylatch;
-};
-
-class tmc2000_state : public tmc1800_base_state
-{
-public:
- tmc2000_state(const machine_config &mconfig, device_type type, const char *tag)
- : tmc1800_base_state(mconfig, type, tag)
- , m_cti(*this, CDP1864_TAG)
- , m_colorram(*this, "color_ram", TMC2000_COLORRAM_SIZE, ENDIANNESS_LITTLE)
- , m_key_row(*this, {"Y0", "Y1", "Y2", "Y3", "Y4", "Y5", "Y6", "Y7"})
- , m_led(*this, "led1")
- { }
-
- void keylatch_w(uint8_t data);
- void bankswitch_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( clear_r );
- DECLARE_READ_LINE_MEMBER( ef2_r );
- DECLARE_READ_LINE_MEMBER( ef3_r );
- DECLARE_WRITE_LINE_MEMBER( q_w );
- void dma_w(offs_t offset, uint8_t data);
- DECLARE_READ_LINE_MEMBER( rdata_r );
- DECLARE_READ_LINE_MEMBER( bdata_r );
- DECLARE_READ_LINE_MEMBER( gdata_r );
- DECLARE_INPUT_CHANGED_MEMBER( run_pressed );
-
- void bankswitch();
-
- void tmc2000(machine_config &config);
- void tmc2000_video(machine_config &config);
- void tmc2000_io_map(address_map &map);
- void tmc2000_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<cdp1864_device> m_cti;
- memory_share_creator<uint8_t> m_colorram;
- required_ioport_array<8> m_key_row;
- output_finder<> m_led;
-
- // memory
- int m_rac;
- int m_roc;
-
- /* video state */
- uint8_t m_color;
-
- /* keyboard state */
- int m_keylatch;
-};
-
-class nano_state : public tmc1800_base_state
-{
-public:
- nano_state(const machine_config &mconfig, device_type type, const char *tag)
- : tmc1800_base_state(mconfig, type, tag)
- , m_cti(*this, CDP1864_TAG)
- , m_ny0(*this, "NY0")
- , m_ny1(*this, "NY1")
- , m_monitor(*this, "MONITOR")
- , m_led(*this, "led1")
- { }
-
- enum
- {
- TIMER_ID_EF4
- };
-
- void keylatch_w(uint8_t data);
- void bankswitch_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( clear_r );
- DECLARE_READ_LINE_MEMBER( ef2_r );
- DECLARE_READ_LINE_MEMBER( ef3_r );
- DECLARE_WRITE_LINE_MEMBER( q_w );
- DECLARE_INPUT_CHANGED_MEMBER( run_pressed );
- DECLARE_INPUT_CHANGED_MEMBER( monitor_pressed );
-
- void nano(machine_config &config);
- void nano_video(machine_config &config);
- void nano_io_map(address_map &map);
- void nano_map(address_map &map);
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<cdp1864_device> m_cti;
- required_ioport m_ny0;
- required_ioport m_ny1;
- required_ioport m_monitor;
- output_finder<> m_led;
- /* keyboard state */
- int m_keylatch; /* key latch */
-};
-
-#endif
diff --git a/src/mame/includes/tmc2000e.h b/src/mame/includes/tmc2000e.h
deleted file mode 100644
index 91b9ecc7695..00000000000
--- a/src/mame/includes/tmc2000e.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#pragma once
-
-#ifndef MAME_INCLUDES_TMC2000E_H
-#define MAME_INCLUDES_TMC2000E_H
-
-
-#include "cpu/cosmac/cosmac.h"
-#include "imagedev/cassette.h"
-#include "machine/ram.h"
-#include "machine/rescap.h"
-#include "sound/cdp1864.h"
-
-#define SCREEN_TAG "screen"
-#define CDP1802_TAG "cdp1802"
-#define CDP1864_TAG "cdp1864"
-
-#define TMC2000E_COLORRAM_SIZE 0x100 // ???
-
-class tmc2000e_state : public driver_device
-{
-public:
- tmc2000e_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, CDP1802_TAG)
- , m_cti(*this, CDP1864_TAG)
- , m_cassette(*this, "cassette")
- , m_colorram(*this, "colorram")
- , m_key_row(*this, {"Y0", "Y1", "Y2", "Y3", "Y4", "Y5", "Y6", "Y7"})
- , m_run(*this, "RUN")
- , m_led(*this, "led1")
- { }
-
- void tmc2000e(machine_config &config);
-
-private:
- uint8_t vismac_r();
- void vismac_w(uint8_t data);
- uint8_t floppy_r();
- void floppy_w(uint8_t data);
- uint8_t ascii_keyboard_r();
- uint8_t io_r();
- void io_w(uint8_t data);
- void io_select_w(uint8_t data);
- void keyboard_latch_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( rdata_r );
- DECLARE_READ_LINE_MEMBER( bdata_r );
- DECLARE_READ_LINE_MEMBER( gdata_r );
- DECLARE_READ_LINE_MEMBER( clear_r );
- DECLARE_READ_LINE_MEMBER( ef2_r );
- DECLARE_READ_LINE_MEMBER( ef3_r );
- DECLARE_WRITE_LINE_MEMBER( q_w );
- void dma_w(offs_t offset, uint8_t data);
-
- /* video state */
- int m_cdp1864_efx; /* EFx */
- uint8_t m_color;
-
- /* keyboard state */
- int m_keylatch; /* key latch */
- void tmc2000e_io_map(address_map &map);
- void tmc2000e_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<cosmac_device> m_maincpu;
- required_device<cdp1864_device> m_cti;
- required_device<cassette_image_device> m_cassette;
- required_shared_ptr<uint8_t> m_colorram;
- required_ioport_array<8> m_key_row;
- required_ioport m_run;
- output_finder<> m_led;
-};
-
-#endif
diff --git a/src/mame/includes/tmc600.h b/src/mame/includes/tmc600.h
deleted file mode 100644
index e1c6b79a68a..00000000000
--- a/src/mame/includes/tmc600.h
+++ /dev/null
@@ -1,100 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#pragma once
-
-#ifndef MAME_INCLUDES_TMC600_H
-#define MAME_INCLUDES_TMC600_H
-
-#include "cpu/cosmac/cosmac.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/tmc600/euro.h"
-#include "machine/cdp1852.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "sound/cdp1869.h"
-#include "speaker.h"
-
-#define SCREEN_TAG "screen"
-#define CDP1802_TAG "cdp1802"
-#define CDP1869_TAG "cdp1869"
-#define CDP1852_KB_TAG "cdp1852_kb"
-#define CDP1852_BUS_TAG "cdp1852_bus"
-#define CDP1852_TMC700_TAG "cdp1852_printer"
-#define CENTRONICS_TAG "centronics"
-
-#define TMC600_PAGE_RAM_SIZE 0x400
-#define TMC600_PAGE_RAM_MASK 0x3ff
-
-class tmc600_state : public driver_device
-{
-public:
- tmc600_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, CDP1802_TAG),
- m_vis(*this, CDP1869_TAG),
- m_bwio(*this, CDP1852_KB_TAG),
- m_cassette(*this, "cassette"),
- m_centronics(*this, "centronics"),
- m_bus(*this, "bus"),
- m_ram(*this, RAM_TAG),
- m_char_rom(*this, "chargen"),
- m_page_ram(*this, "page_ram"),
- m_color_ram(*this, "color_ram", TMC600_PAGE_RAM_SIZE, ENDIANNESS_LITTLE),
- m_run(*this, "RUN"),
- m_key_row(*this, "Y%u", 0)
- { }
-
- void tmc600(machine_config &config);
- void tmc600_video(machine_config &config);
-
-private:
- required_device<cosmac_device> m_maincpu;
- required_device<cdp1869_device> m_vis;
- required_device<cdp1852_device> m_bwio;
- required_device<cassette_image_device> m_cassette;
- required_device<centronics_device> m_centronics;
- required_device<tmc600_eurobus_slot_device> m_bus;
- required_device<ram_device> m_ram;
- required_region_ptr<uint8_t> m_char_rom;
- required_shared_ptr<uint8_t> m_page_ram;
- memory_share_creator<uint8_t> m_color_ram;
- required_ioport m_run;
- required_ioport_array<8> m_key_row;
-
- virtual void video_start() override;
-
- uint8_t rtc_r();
- void printer_w(uint8_t data);
- void vismac_register_w(uint8_t data);
- void vismac_data_w(uint8_t data);
- void page_ram_w(offs_t offset, uint8_t data);
- DECLARE_READ_LINE_MEMBER( clear_r );
- DECLARE_READ_LINE_MEMBER( ef2_r );
- DECLARE_READ_LINE_MEMBER( ef3_r );
- DECLARE_WRITE_LINE_MEMBER( q_w );
- void sc_w(uint8_t data);
- void out3_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( prd_w );
-
- uint8_t get_color(uint16_t pma);
-
- // video state
- int m_vismac_reg_latch; // video register latch
- int m_vismac_color_latch; // color latch
- bool m_blink; // cursor blink
- int m_frame;
- bool m_rtc_int;
- u8 m_out3;
-
- TIMER_DEVICE_CALLBACK_MEMBER(blink_tick);
- CDP1869_CHAR_RAM_READ_MEMBER(tmc600_char_ram_r);
- CDP1869_PCB_READ_MEMBER(tmc600_pcb_r);
-
- void cdp1869_page_ram(address_map &map);
- void tmc600_io_map(address_map &map);
- void tmc600_map(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/tmnt.h b/src/mame/includes/tmnt.h
deleted file mode 100644
index 6eb7a278d7f..00000000000
--- a/src/mame/includes/tmnt.h
+++ /dev/null
@@ -1,269 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_TMNT_H
-#define MAME_INCLUDES_TMNT_H
-
-#pragma once
-
-#include "sound/samples.h"
-#include "sound/upd7759.h"
-#include "sound/k007232.h"
-#include "sound/k053260.h"
-#include "sound/k054539.h"
-#include "video/k053244_k053245.h"
-#include "video/k052109.h"
-#include "video/k051960.h"
-#include "video/k053251.h"
-#include "video/k053936.h"
-#include "video/k054000.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tmnt_state : public driver_device
-{
-public:
- tmnt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_tmnt2_rom(*this, "maincpu"),
- m_sunset_104000(*this, "sunset_104000"),
- m_tmnt2_1c0800(*this, "tmnt2_1c0800"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k007232(*this, "k007232"),
- m_k053260(*this, "k053260"),
- m_k054539(*this, "k054539"),
- m_k052109(*this, "k052109"),
- m_k051960(*this, "k051960"),
- m_k053245(*this, "k053245"),
- m_k053251(*this, "k053251"),
- m_k053936(*this, "k053936"),
- m_k054000(*this, "k054000"),
- m_upd7759(*this, "upd"),
- m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void cuebrick(machine_config &config);
- void blswhstl(machine_config &config);
- void ssriders(machine_config &config);
- void tmnt2(machine_config &config);
- void lgtnfght(machine_config &config);
- void thndrx2(machine_config &config);
- void sunsetbl(machine_config &config);
- void tmnt(machine_config &config);
- void mia(machine_config &config);
- void punkshot(machine_config &config);
-
- void init_mia();
- void init_tmnt();
- void init_cuebrick();
-
-protected:
- virtual void machine_start() override;
-
- enum
- {
- TIMER_NMI
- };
-
- /* memory pointers */
- optional_shared_ptr<uint16_t> m_spriteram;
- required_region_ptr<uint16_t> m_tmnt2_rom;
- optional_shared_ptr<uint16_t> m_sunset_104000;
- optional_shared_ptr<uint16_t> m_tmnt2_1c0800;
-
- /* video-related */
- int m_layer_colorbase[3];
- int m_sprite_colorbase;
- int m_layerpri[3];
- int m_sorted_layer[3]; // this might not be necessary, but tmnt2 uses it in a strange way...
-
- tilemap_t *m_roz_tilemap;
- int m_glfgreat_pixel;
- int m_blswhstl_rombank;
- int m_tmnt_priorityflag;
- int m_lastdim;
- int m_lasten;
- int m_dim_c;
- int m_dim_v; /* lgtnfght, ssriders, tmnt2 only */
-
- /* misc */
- int m_tmnt_soundlatch;
- int m_toggle;
- int m_last;
- uint16_t m_cuebrick_nvram[0x400 * 0x20 / 2]; // 32k paged in a 1k window
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<k007232_device> m_k007232;
- optional_device<k053260_device> m_k053260;
- optional_device<k054539_device> m_k054539;
- required_device<k052109_device> m_k052109;
- optional_device<k051960_device> m_k051960;
- optional_device<k05324x_device> m_k053245;
- optional_device<k053251_device> m_k053251;
- optional_device<k053936_device> m_k053936;
- optional_device<k054000_device> m_k054000;
- optional_device<upd7759_device> m_upd7759;
- optional_device<samples_device> m_samples;
- optional_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* memory buffers */
- int16_t m_sampledata[0x40000];
-
- uint8_t m_irq5_mask;
- uint16_t k052109_word_noA12_r(offs_t offset);
- void k052109_word_noA12_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void punkshot_k052109_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void punkshot_k052109_word_noA12_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t k053245_scattered_word_r(offs_t offset);
- void k053245_scattered_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t k053244_word_noA1_r(offs_t offset);
- void k053244_word_noA1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t tmnt_sres_r();
- void tmnt_sres_w(uint8_t data);
- void sound_arm_nmi_w(uint8_t data);
- uint16_t punkshot_kludge_r();
- uint16_t ssriders_protection_r(address_space &space);
- void ssriders_protection_w(address_space &space, offs_t offset, uint16_t data);
- uint16_t blswhstl_coin_r();
- uint16_t ssriders_eeprom_r();
- uint16_t sunsetbl_eeprom_r();
- void blswhstl_eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t thndrx2_eeprom_r();
- void thndrx2_eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void cuebrick_nvbank_w(uint8_t data);
- void ssriders_soundkludge_w(uint16_t data);
- void tmnt2_1c0800_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tmnt_0a0000_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void punkshot_0a0020_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void lgtnfght_0a0018_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void blswhstl_700300_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ssriders_eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void ssriders_1c0300_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tmnt_priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tmnt_upd_start_w(uint8_t data);
- uint8_t tmnt_upd_busy_r();
-
- DECLARE_MACHINE_RESET(common);
- DECLARE_VIDEO_START(cuebrick);
- DECLARE_VIDEO_START(mia);
- DECLARE_MACHINE_RESET(tmnt);
- DECLARE_VIDEO_START(tmnt);
- DECLARE_VIDEO_START(lgtnfght);
- DECLARE_VIDEO_START(blswhstl);
- uint32_t screen_update_mia(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tmnt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_punkshot(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_lgtnfght(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_glfgreat(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tmnt2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_thndrx2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_blswhstl);
- INTERRUPT_GEN_MEMBER(tmnt_interrupt);
- INTERRUPT_GEN_MEMBER(punkshot_interrupt);
- INTERRUPT_GEN_MEMBER(lgtnfght_interrupt);
- inline uint32_t tmnt2_get_word( uint32_t addr );
- void tmnt2_put_word( uint32_t addr, uint16_t data );
- void volume_callback(uint8_t data);
- K051960_CB_MEMBER(mia_sprite_callback);
- K051960_CB_MEMBER(tmnt_sprite_callback);
- K051960_CB_MEMBER(punkshot_sprite_callback);
- K051960_CB_MEMBER(thndrx2_sprite_callback);
- K05324X_CB_MEMBER(lgtnfght_sprite_callback);
- K05324X_CB_MEMBER(blswhstl_sprite_callback);
- K052109_CB_MEMBER(mia_tile_callback);
- K052109_CB_MEMBER(cuebrick_tile_callback);
- K052109_CB_MEMBER(tmnt_tile_callback);
- K052109_CB_MEMBER(ssbl_tile_callback);
- K052109_CB_MEMBER(blswhstl_tile_callback);
- SAMPLES_START_CB_MEMBER(tmnt_decode_sample);
-
- void blswhstl_main_map(address_map &map);
- void cuebrick_main_map(address_map &map);
- void lgtnfght_audio_map(address_map &map);
- void lgtnfght_main_map(address_map &map);
- void mia_audio_map(address_map &map);
- void mia_main_map(address_map &map);
- void punkshot_audio_map(address_map &map);
- void punkshot_main_map(address_map &map);
- void ssriders_audio_map(address_map &map);
- void ssriders_main_map(address_map &map);
- void sunsetbl_main_map(address_map &map);
- void thndrx2_audio_map(address_map &map);
- void thndrx2_main_map(address_map &map);
- void tmnt2_main_map(address_map &map);
- void tmnt_audio_map(address_map &map);
- void tmnt_main_map(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-class glfgreat_state : public tmnt_state
-{
-public:
- glfgreat_state(const machine_config &mconfig, device_type type, const char *tag) :
- tmnt_state(mconfig, type, tag),
- m_analog_controller(*this, "CONTROL%c", 'A')
- { }
-
- void glfgreat(machine_config &config);
-
-private:
- void k053251_glfgreat_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t controller_r();
- uint16_t glfgreat_rom_r(offs_t offset);
- void glfgreat_122000_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t glfgreat_ball_r();
- void glfgreat_sound_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(glfgreat_get_roz_tile_info);
- DECLARE_VIDEO_START(glfgreat);
-
- void glfgreat_audio_map(address_map &map);
- void glfgreat_main_map(address_map &map);
-
- required_ioport_array<4> m_analog_controller;
-
- uint8_t m_controller_select;
- int m_roz_rom_bank;
- int m_roz_char_bank;
- int m_roz_rom_mode;
-};
-
-class prmrsocr_state : public tmnt_state
-{
-public:
- prmrsocr_state(const machine_config &mconfig, device_type type, const char *tag) :
- tmnt_state(mconfig, type, tag)
- { }
-
- void prmrsocr(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void prmrsocr_sound_irq_w(uint16_t data);
- void prmrsocr_audio_bankswitch_w(uint8_t data);
- void prmrsocr_eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void prmrsocr_122000_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t prmrsocr_rom_r(offs_t offset);
-
- TILE_GET_INFO_MEMBER(prmrsocr_get_roz_tile_info);
- DECLARE_VIDEO_START(prmrsocr);
- K05324X_CB_MEMBER(prmrsocr_sprite_callback);
-
- void prmrsocr_audio_map(address_map &map);
- void prmrsocr_main_map(address_map &map);
-
- int m_sprite_bank;
- int m_roz_char_bank;
-};
-
-#endif // MAME_INCLUDES_TMNT_H
diff --git a/src/mame/includes/tnzs.h b/src/mame/includes/tnzs.h
deleted file mode 100644
index ecc37dd8774..00000000000
--- a/src/mame/includes/tnzs.h
+++ /dev/null
@@ -1,302 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia, Mirko Buffoni, Takahiro Nogi
-#ifndef MAME_INCLUDES_TNZS_H
-#define MAME_INCLUDES_TNZS_H
-
-#pragma once
-
-
-#include "cpu/mcs48/mcs48.h"
-#include "machine/bankdev.h"
-#include "machine/gen_latch.h"
-#include "machine/upd4701.h"
-#include "sound/dac.h"
-#include "sound/samples.h"
-#include "video/seta001.h"
-#include "emupal.h"
-#include "screen.h"
-
-class tnzs_base_state : public driver_device
-{
-public:
- tnzs_base_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "sub")
- , m_seta001(*this, "spritegen")
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_mainbank(*this, "mainbank")
- , m_subbank(*this, "subbank")
- { }
-
- void tnzs_base(machine_config &config);
- void tnzs_mainbank(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- virtual void bankswitch1_w(uint8_t data);
-
- void ramrom_bankswitch_w(uint8_t data);
-
- void prompalette(palette_device &palette) const;
- uint32_t screen_update_tnzs(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_tnzs);
-
- void base_sub_map(address_map &map);
- void main_map(address_map &map);
- void mainbank_map(address_map &map);
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_subcpu;
- required_device<seta001_device> m_seta001;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- optional_device<address_map_bank_device> m_mainbank; /* FIXME: optional because of reuse from cchance.cpp */
- optional_memory_bank m_subbank; /* FIXME: optional because of reuse from cchance.cpp */
-
- /* misc / mcu */
- int m_bank2;
-};
-
-class tnzs_mcu_state : public tnzs_base_state
-{
-public:
- tnzs_mcu_state(const machine_config &mconfig, device_type type, const char *tag, bool lockout_level)
- : tnzs_base_state(mconfig, type, tag)
- , m_mcu(*this, "mcu")
- , m_upd4701(*this, "upd4701")
- , m_in0(*this, "IN0")
- , m_in1(*this, "IN1")
- , m_in2(*this, "IN2")
- , m_input_select(0)
- , m_lockout_level(lockout_level)
- { }
-
- void tnzs(machine_config &config);
-
-protected:
- virtual void bankswitch1_w(uint8_t data) override;
-
- uint8_t mcu_port1_r();
- void mcu_port2_w(uint8_t data);
- uint8_t mcu_r(offs_t offset);
- void mcu_w(offs_t offset, uint8_t data);
-
- uint8_t analog_r(offs_t offset);
-
- void tnzs_sub_map(address_map &map);
-
- required_device<upi41_cpu_device> m_mcu;
- optional_device<upd4701_device> m_upd4701;
-
- required_ioport m_in0;
- required_ioport m_in1;
- required_ioport m_in2;
-
- int m_input_select;
- bool m_lockout_level;
-};
-
-class tnzs_state : public tnzs_mcu_state
-{
-public:
- tnzs_state(const machine_config &mconfig, device_type type, const char *tag)
- : tnzs_mcu_state(mconfig, type, tag, true)
- { }
-};
-
-class extrmatn_state : public tnzs_mcu_state
-{
-public:
- extrmatn_state(const machine_config &mconfig, device_type type, const char *tag)
- : tnzs_mcu_state(mconfig, type, tag, false)
- { }
- void extrmatn(machine_config &config);
- void plumppop(machine_config &config);
-
-protected:
- void prompal_main_map(address_map &map);
-};
-
-class arknoid2_state : public extrmatn_state
-{
-public:
- arknoid2_state(const machine_config &mconfig, device_type type, const char *tag)
- : extrmatn_state(mconfig, type, tag)
- , m_coin1(*this, "COIN1")
- , m_coin2(*this, "COIN2")
- , m_in0(*this, "IN0")
- , m_in1(*this, "IN1")
- , m_in2(*this, "IN2")
- { }
-
- void arknoid2(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void bankswitch1_w(uint8_t data) override;
-
- uint8_t mcu_r(offs_t offset);
- void mcu_w(offs_t offset, uint8_t data);
- INTERRUPT_GEN_MEMBER(mcu_interrupt);
-
- void arknoid2_sub_map(address_map &map);
-
- required_ioport m_coin1;
- required_ioport m_coin2;
- required_ioport m_in0;
- required_ioport m_in1;
- required_ioport m_in2;
-
- void mcu_reset();
-
- int m_mcu_initializing;
- int m_mcu_coinage_init;
- int m_mcu_command;
- int m_mcu_readcredits;
- int m_mcu_reportcoin;
- int m_insertcoin;
- uint8_t m_mcu_coinage[4];
- uint8_t m_mcu_coins_a;
- uint8_t m_mcu_coins_b;
- uint8_t m_mcu_credits;
-
- void mcu_handle_coins(int coin);
-};
-
-class kageki_state : public tnzs_base_state
-{
-public:
- kageki_state(const machine_config &mconfig, device_type type, const char *tag)
- : tnzs_base_state(mconfig, type, tag)
- , m_samples(*this, "samples")
- , m_dswa(*this, "DSWA")
- , m_dswb(*this, "DSWB")
- , m_csport_sel(0)
- { }
-
- void kageki(machine_config &config);
-
- void init_kageki();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- static constexpr unsigned MAX_SAMPLES = 0x2f;
-
- virtual void bankswitch1_w(uint8_t data) override;
-
- uint8_t csport_r();
- void csport_w(uint8_t data);
-
- DECLARE_MACHINE_RESET(kageki);
-
- SAMPLES_START_CB_MEMBER(init_samples);
-
- void kageki_sub_map(address_map &map);
-
- required_device<samples_device> m_samples;
-
- required_ioport m_dswa;
- required_ioport m_dswb;
-
- /* sound-related */
- std::unique_ptr<int16_t[]> m_sampledata[MAX_SAMPLES];
- int m_samplesize[MAX_SAMPLES];
-
- int m_csport_sel;
-};
-
-class jpopnics_state : public tnzs_base_state
-{
-public:
- jpopnics_state(const machine_config &mconfig, device_type type, const char *tag)
- : tnzs_base_state(mconfig, type, tag)
- , m_upd4701(*this, "upd4701")
- { }
-
- void jpopnics(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
-private:
- void subbankswitch_w(uint8_t data);
-
- void jpopnics_main_map(address_map &map);
- void jpopnics_sub_map(address_map &map);
- required_device<upd4701_device> m_upd4701;
-};
-
-class insectx_state : public tnzs_base_state
-{
-public:
- insectx_state(const machine_config &mconfig, device_type type, const char *tag)
- : tnzs_base_state(mconfig, type, tag)
- { }
-
- void insectx(machine_config &config);
-
-private:
- virtual void bankswitch1_w(uint8_t data) override;
- void insectx_sub_map(address_map &map);
-};
-
-class tnzsb_state : public tnzs_base_state
-{
-public:
- tnzsb_state(const machine_config &mconfig, device_type type, const char *tag)
- : tnzs_base_state(mconfig, type, tag)
- , m_audiocpu(*this, "audiocpu")
- , m_soundlatch(*this, "soundlatch")
- { }
-
- void tnzsb(machine_config &config);
-
-protected:
- DECLARE_WRITE_LINE_MEMBER(ym2203_irqhandler);
-
- void sound_command_w(uint8_t data);
-
- virtual void bankswitch1_w(uint8_t data) override;
-
- void tnzsb_base_sub_map(address_map &map);
- void tnzsb_cpu2_map(address_map &map);
- void tnzsb_io_map(address_map &map);
- void tnzsb_main_map(address_map &map);
- void tnzsb_sub_map(address_map &map);
-
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
-};
-
-class kabukiz_state : public tnzsb_state
-{
-public:
- kabukiz_state(const machine_config &mconfig, device_type type, const char *tag)
- : tnzsb_state(mconfig, type, tag)
- , m_audiobank(*this, "audiobank")
- { }
-
- void kabukiz(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void sound_bank_w(uint8_t data);
-
- void kabukiz_cpu2_map(address_map &map);
- void kabukiz_sub_map(address_map &map);
-
- required_memory_bank m_audiobank;
-};
-
-#endif // MAME_INCLUDES_TNZS_H
diff --git a/src/mame/includes/toaplan1.h b/src/mame/includes/toaplan1.h
deleted file mode 100644
index a10fa5d6388..00000000000
--- a/src/mame/includes/toaplan1.h
+++ /dev/null
@@ -1,258 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Darren Olafson, Quench
-/***************************************************************************
- ToaPlan game hardware from 1988-1991
- ------------------------------------
-****************************************************************************/
-#ifndef MAME_INCLUDES_TOAPLAN1_H
-#define MAME_INCLUDES_TOAPLAN1_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "cpu/tms32010/tms32010.h"
-#include "sound/ym3812.h"
-#include "video/toaplan_scu.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class toaplan1_state : public driver_device
-{
-public:
- toaplan1_state(const machine_config &mconfig, device_type type, const char *tag, bool large = false) :
- driver_device(mconfig, type, tag),
- m_bgpaletteram(*this, "bgpalette"),
- m_fgpaletteram(*this, "fgpalette"),
- m_sharedram(*this, "sharedram"),
- m_dswb_io(*this, "DSWB"),
- m_tjump_io(*this, "TJUMP"),
- m_spriteram(*this, "spriteram", large ? 0x1000 : 0x800, ENDIANNESS_BIG),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_ymsnd(*this, "ymsnd"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void truxton(machine_config &config);
- void outzone(machine_config &config);
- void vimana(machine_config &config);
- void outzonecv(machine_config &config);
- void hellfire(machine_config &config);
- void zerowing(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_shared_ptr<u16> m_bgpaletteram;
- required_shared_ptr<u16> m_fgpaletteram;
-
- optional_shared_ptr<u8> m_sharedram;
-
- optional_ioport m_dswb_io;
- optional_ioport m_tjump_io;
-
- u8 m_intenable;
-
- std::unique_ptr<u16[]> m_tilevram[4];
- /*
- std::unique_ptr<u16[]> m_tilevram[3]; // || Drawn in this order
- std::unique_ptr<u16[]> m_tilevram[2]; // ||
- std::unique_ptr<u16[]> m_tilevram[1]; // \||/
- std::unique_ptr<u16[]> m_tilevram[0]; // \/
- */
-
- memory_share_creator<u16> m_spriteram;
- std::unique_ptr<u16[]> m_buffered_spriteram;
- std::unique_ptr<u16[]> m_spritesizeram;
- std::unique_ptr<u16[]> m_buffered_spritesizeram;
-
- s32 m_bcu_flipscreen; /* Tile controller flip flag */
- s32 m_fcu_flipscreen; /* Sprite controller flip flag */
-
- s32 m_pf_voffs;
- s32 m_spriteram_offs;
-
- s32 m_scrollx[4];
- s32 m_scrolly[4];
-
-#ifdef MAME_DEBUG
- int m_display_pf[4];
- int m_displog;
-#endif
-
- s32 m_tiles_offsetx;
- s32 m_tiles_offsety;
-
- tilemap_t *m_tilemap[4];
-
- void intenable_w(u8 data);
- u8 shared_r(offs_t offset);
- void shared_w(offs_t offset, u8 data);
- void reset_sound_w(u8 data);
- void coin_w(u8 data);
-
- u16 frame_done_r();
- void tile_offsets_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bcu_flipscreen_w(u8 data);
- void fcu_flipscreen_w(u8 data);
- u16 spriteram_offs_r();
- void spriteram_offs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bgpalette_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void fgpalette_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 spriteram_r();
- void spriteram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 spritesizeram_r();
- void spritesizeram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void bcu_control_w(offs_t offset, u16 data);
- u16 tileram_offs_r();
- void tileram_offs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 tileram_r(offs_t offset);
- void tileram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 scroll_regs_r(offs_t offset);
- void scroll_regs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- u8 vimana_dswb_invert_r();
- u8 vimana_tjump_invert_r();
-
- template<unsigned Layer> TILE_GET_INFO_MEMBER(get_tile_info);
-
- DECLARE_MACHINE_RESET(zerowing);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void interrupt();
-
- void create_tilemaps();
- void vram_alloc();
- void spritevram_alloc();
- void set_scrolls();
- void register_common();
- void log_vram();
- void draw_sprites(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void reset_sound();
- DECLARE_WRITE_LINE_MEMBER(reset_callback);
- required_device<m68000_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<ym3812_device> m_ymsnd;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- void hellfire_main_map(address_map &map);
- void hellfire_sound_io_map(address_map &map);
- void outzone_main_map(address_map &map);
- void outzone_sound_io_map(address_map &map);
- void outzonecv_main_map(address_map &map);
- void sound_map(address_map &map);
- void truxton_main_map(address_map &map);
- void truxton_sound_io_map(address_map &map);
- void vimana_hd647180_io_map(address_map &map);
- void vimana_hd647180_mem_map(address_map &map);
- void vimana_main_map(address_map &map);
- void zerowing_main_map(address_map &map);
- void zerowing_sound_io_map(address_map &map);
-};
-
-class toaplan1_rallybik_state : public toaplan1_state
-{
-public:
- toaplan1_rallybik_state(const machine_config &mconfig, device_type type, const char *tag) :
- toaplan1_state(mconfig, type, tag, true),
- m_spritegen(*this, "scu")
- {
- }
-
- void rallybik(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_2_w);
- u16 tileram_r(offs_t offset);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
- required_device<toaplan_scu_device> m_spritegen;
- void rallybik_main_map(address_map &map);
- void rallybik_sound_io_map(address_map &map);
-};
-
-class toaplan1_demonwld_state : public toaplan1_state
-{
-public:
- toaplan1_demonwld_state(const machine_config &mconfig, device_type type, const char *tag) :
- toaplan1_state(mconfig, type, tag),
- m_dsp(*this, "dsp")
- {
- }
-
- void demonwld(machine_config &config);
-
-protected:
- virtual void device_post_load() override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- /* Demon world */
- int m_dsp_on;
- int m_dsp_bio;
- int m_dsp_execute;
- u32 m_dsp_addr_w;
- u32 m_main_ram_seg;
-
- void dsp_addrsel_w(u16 data);
- u16 dsp_r();
- void dsp_w(u16 data);
- void dsp_bio_w(u16 data);
- DECLARE_READ_LINE_MEMBER(bio_r);
- void dsp_ctrl_w(u8 data);
- void dsp_int_w(int enable);
-
- required_device<tms32010_device> m_dsp;
- void dsp_io_map(address_map &map);
- void dsp_program_map(address_map &map);
- void main_map(address_map &map);
- void sound_io_map(address_map &map);
-};
-
-class toaplan1_samesame_state : public toaplan1_state
-{
-public:
- toaplan1_samesame_state(const machine_config &mconfig, device_type type, const char *tag) :
- toaplan1_state(mconfig, type, tag)
- {
- }
-
- void samesame(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- // Fire Shark sound
- u8 m_to_mcu;
- u8 m_cmdavailable;
-
- void mcu_w(u8 data);
- u8 soundlatch_r();
- void sound_done_w(u8 data);
- u8 cmdavailable_r();
- u8 port_6_word_r();
-
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
-
- void hd647180_io_map(address_map &map);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TOAPLAN1_H
diff --git a/src/mame/includes/toaplan2.h b/src/mame/includes/toaplan2.h
deleted file mode 100644
index 00e4ef4f1fe..00000000000
--- a/src/mame/includes/toaplan2.h
+++ /dev/null
@@ -1,250 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Quench, Yochizo, David Haywood
-#ifndef MAME_INCLUDES_TOAPLAN2_H
-#define MAME_INCLUDES_TOAPLAN2_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "machine/bankdev.h"
-#include "machine/eepromser.h"
-#include "machine/gen_latch.h"
-#include "machine/ticket.h"
-#include "machine/upd4992.h"
-#include "video/gp9001.h"
-#include "sound/okim6295.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/**************** Machine stuff ******************/
-
-class toaplan2_state : public driver_device
-{
-public:
- toaplan2_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_shared_ram(*this, "shared_ram")
- , m_tx_videoram(*this, "tx_videoram")
- , m_tx_lineselect(*this, "tx_lineselect")
- , m_tx_linescroll(*this, "tx_linescroll")
- , m_tx_gfxram(*this, "tx_gfxram")
- , m_mainram(*this, "mainram")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_vdp(*this, "gp9001_%u", 0U)
- , m_oki(*this, "oki%u", 1U)
- , m_eeprom(*this, "eeprom")
- , m_rtc(*this, "rtc")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_soundlatch2(*this, "soundlatch2")
- , m_hopper(*this, "hopper")
- , m_dma_space(*this, "dma_space")
- , m_z80_rom(*this, "audiocpu")
- , m_oki_rom(*this, "oki%u", 1U)
- , m_audiobank(*this, "audiobank")
- , m_okibank(*this, "okibank")
- , m_raizing_okibank{{*this, "raizing_okibank0_%u", 0U},
- {*this, "raizing_okibank1_%u", 0U}}
- , m_io_pad(*this, "PAD%u", 1U)
- , m_eepromout(*this, "EEPROMOUT")
- { }
-
- void dogyuun(machine_config &config);
- void othldrby(machine_config &config);
- void snowbro2(machine_config &config);
- void bgareggabl(machine_config &config);
- void pwrkick(machine_config &config);
- void mahoudai(machine_config &config);
- void tekipaki(machine_config &config);
- void bbakraid(machine_config &config);
- void fixeightbl(machine_config &config);
- void fixeight(machine_config &config);
- void ghox(machine_config &config);
- void bgaregga(machine_config &config);
- void batrider(machine_config &config);
- void shippumd(machine_config &config);
- void kbash(machine_config &config);
- void pipibibs(machine_config &config);
- void pipibibsbl(machine_config &config);
- void batsugun(machine_config &config);
- void enmadaio(machine_config &config);
- void truxton2(machine_config &config);
- void vfive(machine_config &config);
- void kbash2(machine_config &config);
- void nprobowl(machine_config &config);
-
- void init_bbakraid();
- void init_pipibibsbl();
- void init_dogyuun();
- void init_fixeight();
- void init_bgaregga();
- void init_fixeightbl();
- void init_vfive();
- void init_batrider();
- void init_enmadaio();
-
- DECLARE_READ_LINE_MEMBER(c2map_r);
-
-protected:
- virtual void device_post_load() override;
-
-private:
- // We encode priority with colour in the tilemaps, so need a larger palette
- static constexpr unsigned T2PALETTE_LENGTH = 0x10000;
-
- optional_shared_ptr<u8> m_shared_ram; // 8 bit RAM shared between 68K and sound CPU
- optional_shared_ptr<u16> m_tx_videoram;
- optional_shared_ptr<u16> m_tx_lineselect;
- optional_shared_ptr<u16> m_tx_linescroll;
- optional_shared_ptr<u16> m_tx_gfxram;
- optional_shared_ptr<u16> m_mainram;
-
- required_device<m68000_base_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device_array<gp9001vdp_device, 2> m_vdp;
- optional_device_array<okim6295_device, 2> m_oki;
- optional_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_device<upd4992_device> m_rtc;
- optional_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch; // tekipaki, batrider, bgaregga, batsugun
- optional_device<generic_latch_8_device> m_soundlatch2;
- optional_device<ticket_dispenser_device> m_hopper;
-
- optional_device<address_map_bank_device> m_dma_space;
-
- optional_region_ptr<u8> m_z80_rom;
- optional_region_ptr_array<u8, 2> m_oki_rom;
- optional_memory_bank m_audiobank;
- optional_memory_bank m_okibank;
- optional_memory_bank_array<8> m_raizing_okibank[2];
-
- optional_ioport_array<2> m_io_pad;
- optional_ioport m_eepromout;
-
- s8 m_old_p1_paddle_h; /* For Ghox */
- s8 m_old_p2_paddle_h;
- u8 m_sound_reset_bit; /* 0x20 for dogyuun/batsugun, 0x10 for vfive, 0x08 for fixeight */
- u8 m_sndirq_line; /* IRQ4 for batrider, IRQ2 for bbakraid */
- u8 m_z80_busreq;
- u16 m_gfxrom_bank[8]; /* Batrider object bank */
-
- bitmap_ind8 m_custom_priority_bitmap;
- bitmap_ind16 m_secondary_render_bitmap;
-
- tilemap_t *m_tx_tilemap; /* Tilemap for extra-text-layer */
- u16 video_count_r();
- void coin_w(u8 data);
- void coin_sound_reset_w(u8 data);
- void shippumd_coin_w(u8 data);
- u8 shared_ram_r(offs_t offset);
- void shared_ram_w(offs_t offset, u8 data);
- u16 ghox_p1_h_analog_r();
- u16 ghox_p2_h_analog_r();
- void sound_reset_w(u8 data);
- void fixeightbl_oki_bankswitch_w(u8 data);
- void raizing_z80_bankswitch_w(u8 data);
- void raizing_oki_bankswitch_w(offs_t offset, u8 data);
- u8 bgaregga_E01D_r();
- u16 batrider_z80_busack_r();
- void batrider_z80_busreq_w(u8 data);
- u16 batrider_z80rom_r(offs_t offset);
- void batrider_soundlatch_w(u8 data);
- void batrider_soundlatch2_w(u8 data);
- void batrider_unknown_sound_w(u16 data);
- void batrider_clear_sndirq_w(u16 data);
- void batrider_sndirq_w(u8 data);
- void batrider_clear_nmi_w(u8 data);
- u16 bbakraid_eeprom_r();
- void bbakraid_eeprom_w(u8 data);
- void tx_videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tx_linescroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void tx_gfxram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void batrider_tx_gfxram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void batrider_textdata_dma_w(u16 data);
- void batrider_pal_text_dma_w(u16 data);
- void batrider_objectbank_w(offs_t offset, u8 data);
- void batrider_bank_cb(u8 layer, u32 &code);
-
- template<int Chip> void oki_bankswitch_w(u8 data);
- void enmadaio_oki_bank_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void install_raizing_okibank(int chip);
-
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- virtual void machine_start() override;
- DECLARE_MACHINE_RESET(toaplan2);
- DECLARE_MACHINE_RESET(bgaregga);
- DECLARE_VIDEO_START(toaplan2);
- DECLARE_MACHINE_RESET(ghox);
- DECLARE_VIDEO_START(truxton2);
- DECLARE_VIDEO_START(fixeightbl);
- DECLARE_VIDEO_START(bgaregga);
- DECLARE_VIDEO_START(bgareggabl);
- DECLARE_VIDEO_START(batrider);
-
- // Teki Paki sound
- u8 tekipaki_cmdavailable_r();
-
- u32 screen_update_toaplan2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_dogyuun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_batsugun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_truxton2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_bootleg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- void cpu_space_fixeightbl_map(address_map &map);
- void cpu_space_pipibibsbl_map(address_map &map);
- INTERRUPT_GEN_MEMBER(bbakraid_snd_interrupt);
- void create_tx_tilemap(int dx = 0, int dx_flipped = 0);
-
- void pwrkick_coin_w(u8 data);
- void pwrkick_coin_lockout_w(u8 data);
-
- DECLARE_WRITE_LINE_MEMBER(toaplan2_reset);
-
- void batrider_68k_mem(address_map &map);
- void batrider_dma_mem(address_map &map);
- void batrider_sound_z80_mem(address_map &map);
- void batrider_sound_z80_port(address_map &map);
- void batsugun_68k_mem(address_map &map);
- void bbakraid_68k_mem(address_map &map);
- void bbakraid_sound_z80_mem(address_map &map);
- void bbakraid_sound_z80_port(address_map &map);
- void bgaregga_68k_mem(address_map &map);
- void bgaregga_sound_z80_mem(address_map &map);
- void dogyuun_68k_mem(address_map &map);
- void enmadaio_68k_mem(address_map &map);
- void enmadaio_oki(address_map &map);
- void fixeight_68k_mem(address_map &map);
- void fixeight_v25_mem(address_map &map);
- void fixeightbl_68k_mem(address_map &map);
- void fixeightbl_oki(address_map &map);
- void ghox_68k_mem(address_map &map);
- void ghox_hd647180_mem_map(address_map &map);
- void hd647180_io_map(address_map &map);
- void kbash2_68k_mem(address_map &map);
- void kbash_68k_mem(address_map &map);
- void kbash_v25_mem(address_map &map);
- void mahoudai_68k_mem(address_map &map);
- void nprobowl_68k_mem(address_map &map);
- void othldrby_68k_mem(address_map &map);
- void pipibibi_bootleg_68k_mem(address_map &map);
- void pipibibs_68k_mem(address_map &map);
- void pipibibs_sound_z80_mem(address_map &map);
- void pwrkick_68k_mem(address_map &map);
- template<unsigned Chip> void raizing_oki(address_map &map);
- void raizing_sound_z80_mem(address_map &map);
- void shippumd_68k_mem(address_map &map);
- void snowbro2_68k_mem(address_map &map);
- void tekipaki_68k_mem(address_map &map);
- void truxton2_68k_mem(address_map &map);
- void v25_mem(address_map &map);
- void vfive_68k_mem(address_map &map);
- void vfive_v25_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TOAPLAN2_H
diff --git a/src/mame/includes/toaplipt.h b/src/mame/includes/toaplipt.h
deleted file mode 100644
index 99ce50a1eca..00000000000
--- a/src/mame/includes/toaplipt.h
+++ /dev/null
@@ -1,188 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Quench, Stephane Humbert
-/*******************************************************************************
-
- Input port macros used by many games in multiple Toaplan drivers
- (similar to Taito but bits are ACTIVE_HIGH instead of ACTIVE_LOW)
-
-*******************************************************************************/
-
-
-/**************************** Machine Dip Switches ****************************/
-
-/* with location */
-#define TOAPLAN_DSWA_BITS_1_TO_3_LOC(DIPBANK) \
- PORT_DIPNAME( 0x02, 0x00, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION(#DIPBANK":!2") \
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x02, DEF_STR( On ) ) \
- PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_HIGH, #DIPBANK":!3" ) \
- PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION(#DIPBANK":!4") \
- PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-
-#define TOAPLAN_MACHINE_COCKTAIL_LOC(DIPBANK) \
- PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION(#DIPBANK":!1") \
- PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) \
- TOAPLAN_DSWA_BITS_1_TO_3_LOC(DIPBANK)
-
-#define TOAPLAN_MACHINE_NO_COCKTAIL_LOC(DIPBANK) \
- PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_HIGH, #DIPBANK":!1" ) \
- TOAPLAN_DSWA_BITS_1_TO_3_LOC(DIPBANK)
-
-
-/**************************** Coinage Dip Switches ****************************/
-
-/* with location */
-#define TOAPLAN_COINAGE_JAPAN_COIN_A_LOC(DIPBANK) \
- PORT_DIPNAME( 0x30, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":!5,!6") \
- PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 1C_2C ) )
-
-#define TOAPLAN_COINAGE_JAPAN_COIN_B_LOC(DIPBANK) \
- PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":!7,!8") \
- PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 2C_3C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) )
-
-#define TOAPLAN_COINAGE_WORLD_COIN_A_LOC(DIPBANK) \
- PORT_DIPNAME( 0x30, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":!5,!6") \
- PORT_DIPSETTING( 0x30, DEF_STR( 4C_1C ) ) \
- PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) \
- PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )
-
-#define TOAPLAN_COINAGE_WORLD_COIN_B_LOC(DIPBANK) \
- PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":!7,!8") \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) )
-
-#define TOAPLAN_COINAGE_JAPAN_LOC(DIPBANK) \
- TOAPLAN_COINAGE_JAPAN_COIN_A_LOC(DIPBANK) \
- TOAPLAN_COINAGE_JAPAN_COIN_B_LOC(DIPBANK)
-
-#define TOAPLAN_COINAGE_WORLD_LOC(DIPBANK) \
- TOAPLAN_COINAGE_WORLD_COIN_A_LOC(DIPBANK) \
- TOAPLAN_COINAGE_WORLD_COIN_B_LOC(DIPBANK)
-
-#define TOAPLAN_COINAGE_DUAL_LOC(DIP, MASK, WORLD, DIPBANK) \
- PORT_DIPNAME( 0x30, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":!5,!6") \
- PORT_DIPSETTING( 0x30, DEF_STR( 4C_1C ) ) PORT_CONDITION(#DIP,MASK,EQUALS,WORLD) \
- PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) PORT_CONDITION(#DIP,MASK,EQUALS,WORLD) \
- PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) PORT_CONDITION(#DIP,MASK,NOTEQUALS,WORLD) \
- PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) PORT_CONDITION(#DIP,MASK,EQUALS,WORLD) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) \
- PORT_DIPSETTING( 0x30, DEF_STR( 2C_3C ) ) PORT_CONDITION(#DIP,MASK,NOTEQUALS,WORLD) \
- PORT_DIPSETTING( 0x10, DEF_STR( 1C_2C ) ) PORT_CONDITION(#DIP,MASK,NOTEQUALS,WORLD) \
- PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":!7,!8") \
- PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) PORT_CONDITION(#DIP,MASK,NOTEQUALS,WORLD) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) PORT_CONDITION(#DIP,MASK,NOTEQUALS,WORLD) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 2C_3C ) ) PORT_CONDITION(#DIP,MASK,NOTEQUALS,WORLD) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) PORT_CONDITION(#DIP,MASK,NOTEQUALS,WORLD) \
- PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) PORT_CONDITION(#DIP,MASK,EQUALS,WORLD) \
- PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) PORT_CONDITION(#DIP,MASK,EQUALS,WORLD) \
- PORT_DIPSETTING( 0x80, DEF_STR( 1C_4C ) ) PORT_CONDITION(#DIP,MASK,EQUALS,WORLD) \
- PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) ) PORT_CONDITION(#DIP,MASK,EQUALS,WORLD)
-
-
-/************************** Difficulty Dip Switches ***************************/
-
-/* with location */
-#define TOAPLAN_DIFFICULTY_LOC(DIPBANK) \
- PORT_DIPNAME( 0x03, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION(#DIPBANK":!1,!2") \
- PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) \
- PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) \
- PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) \
- PORT_DIPSETTING( 0x03, DEF_STR( Very_Hard ) )
-
-/************************** Joysticks and buttons *****************************/
-
-/* generic (might be moved elsewhere) */
-#define INPUT_GENERIC_JOY_LOW_NIBBLE(PL, STATE, WAY, B01, B02, B04, B08) \
- PORT_BIT( 0x01, STATE, IPT_JOYSTICK_##B01 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x02, STATE, IPT_JOYSTICK_##B02 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x04, STATE, IPT_JOYSTICK_##B04 ) WAY PORT_PLAYER(PL) \
- PORT_BIT( 0x08, STATE, IPT_JOYSTICK_##B08 ) WAY PORT_PLAYER(PL)
-
-
-/* Toaplan generic (more might be needed) */
-#define TOAPLAN_GENERIC_JOY_MONO_UDLR(PL) \
- INPUT_GENERIC_JOY_LOW_NIBBLE(PL, IP_ACTIVE_HIGH, PORT_8WAY, UP, DOWN, LEFT, RIGHT)
-
-
-#define TOAPLAN_GENERIC_BUTTONS_HIGH_NIBBLE(PL, STATE, BUTTON_A, BUTTON_B) \
- PORT_BIT( 0x10, STATE, IPT_##BUTTON_A ) PORT_PLAYER(PL) \
- PORT_BIT( 0x20, STATE, IPT_##BUTTON_B ) PORT_PLAYER(PL) \
- /* DO NOT fill bit 6 as it may be defined as START button ! */
-
-#define TOAPLAN_GENERIC_1_BUTTON(PL) \
- TOAPLAN_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_HIGH, BUTTON1, UNKNOWN) \
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
-
-#define TOAPLAN_GENERIC_2_BUTTONS(PL) \
- TOAPLAN_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_HIGH, BUTTON1, BUTTON2) \
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
-
-#define TOAPLAN_GENERIC_3_BUTTONS(PL) \
- TOAPLAN_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_HIGH, BUTTON1, BUTTON2) \
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(PL) \
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
-
-#define TOAPLAN_GENERIC_1_BUTTON_START(PL) \
- TOAPLAN_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_HIGH, BUTTON1, UNKNOWN) \
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START##PL ) \
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
-
-#define TOAPLAN_GENERIC_2_BUTTONS_START(PL) \
- TOAPLAN_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_HIGH, BUTTON1, BUTTON2) \
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START##PL ) \
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
-
-
-/* Toaplan games (more might be needed) */
-#define TOAPLAN_JOY_UDLR_1_BUTTON(PL) \
- TOAPLAN_GENERIC_JOY_MONO_UDLR(PL) \
- TOAPLAN_GENERIC_1_BUTTON(PL)
-
-#define TOAPLAN_JOY_UDLR_2_BUTTONS(PL) \
- TOAPLAN_GENERIC_JOY_MONO_UDLR(PL) \
- TOAPLAN_GENERIC_2_BUTTONS(PL)
-
-#define TOAPLAN_JOY_UDLR_3_BUTTONS(PL) \
- TOAPLAN_GENERIC_JOY_MONO_UDLR(PL) \
- TOAPLAN_GENERIC_3_BUTTONS(PL)
-
-
-#define TOAPLAN_JOY_UDLR_1_BUTTON_START(PL) \
- TOAPLAN_GENERIC_JOY_MONO_UDLR(PL) \
- TOAPLAN_GENERIC_1_BUTTON_START(PL)
-
-#define TOAPLAN_JOY_UDLR_2_BUTTONS_START(PL) \
- TOAPLAN_GENERIC_JOY_MONO_UDLR(PL) \
- TOAPLAN_GENERIC_2_BUTTONS_START(PL)
-
-
-/******************************* Test switch **********************************/
-
-/* Some Toaplan games enable built-in "cheats" like invulnerability,
- pause, slow motion, etc. when the Test switch (JAMMA pin 15)
- is pressed during play.
- Set to 0 if you want to see the Test switch as a standard input.
- Set to 1 if you want to see the Test switch as a fake Dip Switch */
-
-#define SHOW_TEST_AS_DIP 1
-
-#if SHOW_TEST_AS_DIP
-#define TOAPLAN_TEST_SWITCH(MASK, STATE) \
- PORT_DIPNAME( MASK, MASK & STATE, "Test Switch" ) PORT_CODE(KEYCODE_F1) PORT_TOGGLE \
- PORT_DIPSETTING( MASK & STATE, DEF_STR( Off ) ) \
- PORT_DIPSETTING( MASK & ~STATE, DEF_STR( On ) )
-#else
-#define TOAPLAN_TEST_SWITCH(MASK, STATE) \
- PORT_BIT( MASK, MASK & STATE, IPT_OTHER ) PORT_NAME("Test Switch") PORT_CODE(KEYCODE_F1)
-#endif
diff --git a/src/mame/includes/toki.h b/src/mame/includes/toki.h
deleted file mode 100644
index a1feb033c4a..00000000000
--- a/src/mame/includes/toki.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Jarek Parchanski
-#ifndef MAME_INCLUDES_TOKI_H
-#define MAME_INCLUDES_TOKI_H
-
-#pragma once
-
-#include "audio/seibu.h"
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "video/bufsprite.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class toki_state : public driver_device
-{
-public:
- toki_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_audiocpu_rom(*this, "audiocpu"),
- m_seibu_sound(*this, "seibu_sound"),
- m_msm(*this, "msm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram"),
- m_background1_videoram(*this, "bg1_vram"),
- m_background2_videoram(*this, "bg2_vram"),
- m_videoram(*this, "videoram"),
- m_scrollram(*this, "scrollram")
- { }
-
- void toki(machine_config &config);
- void jujuba(machine_config &config);
- void tokib(machine_config &config);
-
- void init_tokib();
- void init_jujuba();
- void init_toki();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_region_ptr<u8> m_audiocpu_rom;
- optional_device<seibu_sound_device> m_seibu_sound;
- optional_device<msm5205_device> m_msm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- optional_device<generic_latch_8_device> m_soundlatch; // tokib
-
- required_device<buffered_spriteram16_device> m_spriteram;
- required_shared_ptr<uint16_t> m_background1_videoram;
- required_shared_ptr<uint16_t> m_background2_videoram;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_scrollram;
-
- int m_msm5205next;
- int m_toggle;
-
- tilemap_t *m_background_layer;
- tilemap_t *m_foreground_layer;
- tilemap_t *m_text_layer;
-
- void tokib_soundcommand_w(uint16_t data);
- uint16_t pip_r();
- void toki_control_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void foreground_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void background1_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void background2_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tokib_adpcm_control_w(uint8_t data);
- void tokib_adpcm_data_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(tokib_adpcm_int);
-
- uint8_t jujuba_z80_data_decrypt(offs_t offset);
-
- TILE_GET_INFO_MEMBER(get_text_tile_info);
- TILE_GET_INFO_MEMBER(get_back_tile_info);
- TILE_GET_INFO_MEMBER(get_fore_tile_info);
-
- virtual void video_start() override;
-
- uint32_t screen_update_toki(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tokib(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void toki_draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void tokib_draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- void jujuba_audio_map(address_map &map);
- void jujuba_audio_opcodes_map(address_map &map);
- void toki_audio_map(address_map &map);
- void toki_audio_opcodes_map(address_map &map);
- void toki_map(address_map &map);
- void tokib_audio_map(address_map &map);
- void tokib_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TOKI_H
diff --git a/src/mame/includes/toobin.h b/src/mame/includes/toobin.h
deleted file mode 100644
index b8fb0bdcaac..00000000000
--- a/src/mame/includes/toobin.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Toobin' hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TOOBIN_H
-#define MAME_INCLUDES_TOOBIN_H
-
-#pragma once
-
-#include "audio/atarijsa.h"
-#include "video/atarimo.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class toobin_state : public driver_device
-{
-public:
- toobin_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_jsa(*this, "jsa"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_mob(*this, "mob"),
- m_palette(*this, "palette"),
- m_paletteram(*this, "paletteram"),
- m_interrupt_scan(*this, "interrupt_scan"),
- m_xscroll(*this, "xscroll"),
- m_yscroll(*this, "yscroll")
- { }
-
- void toobin(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- TIMER_CALLBACK_MEMBER(scanline_interrupt);
- void scanline_int_ack_w(uint16_t data);
-
- void interrupt_scan_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void intensity_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void xscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void yscroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void slip_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<atari_jsa_i_device> m_jsa;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_motion_objects_device> m_mob;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint16_t> m_paletteram;
- required_shared_ptr<uint16_t> m_interrupt_scan;
- required_shared_ptr<uint16_t> m_xscroll;
- required_shared_ptr<uint16_t> m_yscroll;
-
- double m_brightness;
- bitmap_ind16 m_pfbitmap;
-
- emu_timer *m_scanline_interrupt_timer;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_TOOBIN_H
diff --git a/src/mame/includes/topspeed.h b/src/mame/includes/topspeed.h
deleted file mode 100644
index 6b35a16e45d..00000000000
--- a/src/mame/includes/topspeed.h
+++ /dev/null
@@ -1,115 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves
-/*************************************************************************
-
- Top Speed / Full Throttle
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TOPSPEED_H
-#define MAME_INCLUDES_TOPSPEED_H
-
-#pragma once
-
-#include "sound/msm5205.h"
-#include "sound/flt_vol.h"
-#include "machine/taitoio.h"
-#include "video/pc080sn.h"
-
-class topspeed_state : public driver_device
-{
-public:
- topspeed_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_spritemap(*this, "spritemap")
- , m_raster_ctrl(*this, "raster_ctrl")
- , m_spriteram(*this, "spriteram")
- , m_sharedram(*this, "sharedram")
- , m_sndbank(*this, "sndbank")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_subcpu(*this, "subcpu")
- , m_msm(*this, "msm%u", 1U)
- , m_pc080sn(*this, "pc080sn_%u", 1U)
- , m_tc0040ioc(*this, "tc0040ioc")
- , m_filter1l(*this, "filter1l")
- , m_filter1r(*this, "filter1r")
- , m_filter2(*this, "filter2")
- , m_filter3(*this, "filter3")
- , m_gfxdecode(*this, "gfxdecode")
- , m_gas(*this, "GAS")
- , m_brake(*this, "BRAKE")
- , m_steer(*this, "STEER")
- , m_msm_rom(*this, "adpcm_%u", 0U)
- { }
-
- void topspeed(machine_config &config);
-
- DECLARE_CUSTOM_INPUT_MEMBER(gas_pedal_r);
- DECLARE_CUSTOM_INPUT_MEMBER(brake_pedal_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_shared_ptr<u16> m_spritemap;
- required_shared_ptr<u16> m_raster_ctrl;
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr<u16> m_sharedram;
- required_memory_bank m_sndbank;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device_array<msm5205_device, 2> m_msm;
- required_device_array<pc080sn_device, 2> m_pc080sn;
- required_device<tc0040ioc_device> m_tc0040ioc;
- required_device<filter_volume_device> m_filter1l;
- required_device<filter_volume_device> m_filter1r;
- required_device<filter_volume_device> m_filter2;
- required_device<filter_volume_device> m_filter3;
- required_device<gfxdecode_device> m_gfxdecode;
- required_ioport m_gas;
- required_ioport m_brake;
- required_ioport m_steer;
-
- // Misc
- u16 m_cpua_ctrl;
- s32 m_ioc220_port;
-
- // ADPCM
- required_region_ptr_array<u8, 2> m_msm_rom;
- u16 m_msm_pos[2];
- u8 m_msm_reset[2];
- u8 m_msm_nibble[2];
- u8 m_msm2_vck;
- u8 m_msm2_vck2;
-
-#ifdef MAME_DEBUG
- u8 m_dislayer[5] = { 0, 0, 0, 0, 0 };
-#endif
-
- void msm5205_update(int chip);
-
- void cpua_ctrl_w(u16 data);
- u8 input_bypass_r();
- u16 motor_r(offs_t offset);
- void motor_w(offs_t offset, u16 data);
- void coins_w(u8 data);
-
- void msm5205_command_w(offs_t offset, u8 data);
- DECLARE_WRITE_LINE_MEMBER(msm5205_1_vck);
- DECLARE_WRITE_LINE_MEMBER(z80ctc_to0);
- void volume_w(offs_t offset, u8 data);
-
- // video/topspeed.cpp
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void cpua_map(address_map &map);
- void cpub_map(address_map &map);
- void z80_io(address_map &map);
- void z80_prg(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TOPSPEED_H
diff --git a/src/mame/includes/tp84.h b/src/mame/includes/tp84.h
deleted file mode 100644
index e24c101b29f..00000000000
--- a/src/mame/includes/tp84.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-#ifndef MAME_INCLUDES_TP84
-#define MAME_INCLUDES_TP84
-
-#pragma once
-
-#include "sound/flt_rc.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class tp84_state : public driver_device
-{
-public:
- tp84_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "cpu1"),
- m_subcpu(*this, "sub"),
- m_audiocpu(*this, "audiocpu"),
- m_palette_bank(*this, "palette_bank"),
- m_scroll_x(*this, "scroll_x"),
- m_scroll_y(*this, "scroll_y"),
- m_bg_videoram(*this, "bg_videoram"),
- m_fg_videoram(*this, "fg_videoram"),
- m_bg_colorram(*this, "bg_colorram"),
- m_fg_colorram(*this, "fg_colorram"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_filter(*this, "filter%u", 1U)
- { }
-
- void tp84(machine_config &config);
- void tp84b(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- required_shared_ptr<uint8_t> m_palette_bank;
- required_shared_ptr<uint8_t> m_scroll_x;
- required_shared_ptr<uint8_t> m_scroll_y;
- required_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_fg_videoram;
- required_shared_ptr<uint8_t> m_bg_colorram;
- required_shared_ptr<uint8_t> m_fg_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device_array<filter_rc_device, 3> m_filter;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- bool m_flipscreen_x;
- bool m_flipscreen_y;
-
- bool m_irq_enable;
- bool m_sub_irq_mask;
-
- DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
- uint8_t tp84_sh_timer_r();
- void tp84_filter_w(offs_t offset, uint8_t data);
- void tp84_sh_irqtrigger_w(uint8_t data);
- void sub_irq_mask_w(uint8_t data);
- void tp84_spriteram_w(offs_t offset, uint8_t data);
- uint8_t tp84_scanline_r();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- virtual void machine_start() override;
- virtual void video_start() override;
- void tp84_palette(palette_device &palette) const;
- uint32_t screen_update_tp84(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void audio_map(address_map &map);
- void cpu2_map(address_map &map);
- void tp84_cpu1_map(address_map &map);
- void tp84b_cpu1_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TP84
diff --git a/src/mame/includes/trackfld.h b/src/mame/includes/trackfld.h
deleted file mode 100644
index e3091ab2aad..00000000000
--- a/src/mame/includes/trackfld.h
+++ /dev/null
@@ -1,135 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Chris Hardy
-/***************************************************************************
-
- Track'n'Field
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_TRACKFLD_H
-#define MAME_INCLUDES_TRACKFLD_H
-
-#pragma once
-
-#include "audio/trackfld.h"
-#include "machine/74259.h"
-#include "sound/dac.h"
-#include "sound/sn76496.h"
-#include "sound/vlm5030.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class trackfld_state : public driver_device
-{
-public:
- trackfld_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram2(*this, "spriteram2"),
- m_scroll(*this, "scroll"),
- m_spriteram(*this, "spriteram"),
- m_scroll2(*this, "scroll2"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_mainlatch(*this, "mainlatch"),
- m_audiocpu(*this, "audiocpu"),
- m_soundbrd(*this, "trackfld_audio"),
- m_sn(*this, "snsnd"),
- m_vlm(*this, "vlm"),
- m_dac(*this, "dac"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void reaktor(machine_config &config);
- void atlantol(machine_config &config);
- void yieartf(machine_config &config);
- void wizzquiz(machine_config &config);
- void trackfld(machine_config &config);
- void trackfldu(machine_config &config);
- void hyprolyb(machine_config &config);
- void mastkin(machine_config &config);
-
- void init_trackfld();
- void init_atlantol();
- void init_wizzquiz();
- void init_mastkin();
- void init_trackfldnz();
-
-private:
- void questions_bank_w(uint8_t data);
- void trackfld_videoram_w(offs_t offset, uint8_t data);
- void trackfld_colorram_w(offs_t offset, uint8_t data);
- void atlantol_gfxbank_w(uint8_t data);
- uint8_t trackfld_SN76496_r();
- uint8_t trackfld_speech_r();
- void trackfld_VLM5030_control_w(uint8_t data);
- void konami_SN76496_latch_w(uint8_t data) { m_SN76496_latch = data; };
- void konami_SN76496_w(uint8_t data) { m_sn->write(m_SN76496_latch); };
-
- void hyprolyb_sound_map(address_map &map);
- void main_map(address_map &map);
- void mastkin_map(address_map &map);
- void reaktor_io_map(address_map &map);
- void reaktor_map(address_map &map);
- void sound_map(address_map &map);
- void vlm_map(address_map &map);
- void wizzquiz_map(address_map &map);
- void yieartf_map(address_map &map);
- void hyprolyb_adpcm_map(address_map &map);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram2;
- required_shared_ptr<uint8_t> m_scroll;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_scroll2;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<ls259_device> m_mainlatch;
- optional_device<cpu_device> m_audiocpu;
- optional_device<trackfld_audio_device> m_soundbrd;
- optional_device<sn76496_device> m_sn;
- optional_device<vlm5030_device> m_vlm;
- required_device<dac_8bit_r2r_device> m_dac;
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- int m_bg_bank;
- int m_sprite_bank1;
- int m_sprite_bank2;
- int m_old_gfx_bank; // needed by atlantol
- int m_sprites_gfx_banked;
-
- bool m_irq_mask;
- bool m_nmi_mask;
-
- uint8_t m_SN76496_latch;
-
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE_LINE_MEMBER(irq_mask_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- DECLARE_MACHINE_START(trackfld);
- DECLARE_MACHINE_RESET(trackfld);
- DECLARE_VIDEO_START(trackfld);
- void trackfld_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(atlantol);
- uint32_t screen_update_trackfld(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- DECLARE_WRITE_LINE_MEMBER(vblank_nmi);
- INTERRUPT_GEN_MEMBER(yieartf_timer_irq);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-};
-
-#endif // MAME_INCLUDES_TRACKFLD_H
diff --git a/src/mame/includes/tranz330.h b/src/mame/includes/tranz330.h
deleted file mode 100644
index 058678117c0..00000000000
--- a/src/mame/includes/tranz330.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz
-
-#ifndef MAME_INCLUDES_TRANZ330_H
-#define MAME_INCLUDES_TRANZ330_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "machine/z80ctc.h"
-#include "machine/z80pio.h"
-#include "machine/z80sio.h"
-#include "machine/msm6242.h"
-#include "machine/roc10937.h"
-#include "bus/rs232/rs232.h"
-#include "sound/spkrdev.h"
-#include "machine/clock.h"
-
-#define CPU_TAG "cpu"
-#define DART_TAG "dart"
-#define CTC_TAG "ctc"
-#define PIO_TAG "pio"
-#define RTC_TAG "rtc"
-#define VFD_TAG "vfd"
-#define RS232_TAG "rs232"
-#define SPEAKER_TAG "speaker"
-
-class tranz330_state : public driver_device
-{
-public:
- tranz330_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_cpu(*this, CPU_TAG)
- , m_ctc(*this, CTC_TAG)
- , m_dart(*this, DART_TAG)
- , m_pio(*this, PIO_TAG)
- , m_rtc(*this, RTC_TAG)
- , m_vfd(*this, VFD_TAG)
- , m_rs232(*this, RS232_TAG)
- , m_speaker(*this, SPEAKER_TAG)
- , m_keypad(*this, "COL.%u", 0)
- { }
-
- void tranz330(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- DECLARE_WRITE_LINE_MEMBER(syncb_w);
- DECLARE_WRITE_LINE_MEMBER(clock_w);
-
- DECLARE_WRITE_LINE_MEMBER(sound_w);
-
- void pio_a_w(uint8_t data);
- uint8_t pio_b_r();
- uint8_t card_r();
-
- void tranz330_mem(address_map &map);
- void tranz330_io(address_map &map);
-
- required_device<z80_device> m_cpu;
- required_device<z80ctc_device> m_ctc;
- required_device<z80dart_device> m_dart;
- required_device<z80pio_device> m_pio;
- required_device<msm6242_device> m_rtc;
- required_device<mic10937_device> m_vfd;
- required_device<rs232_port_device> m_rs232;
- required_device<speaker_sound_device> m_speaker;
- required_ioport_array<4> m_keypad;
-
- uint8_t m_keypad_col_mask;
-};
-
-#endif // VERIFONE_TRANZ330_H
diff --git a/src/mame/includes/travrusa.h b/src/mame/includes/travrusa.h
deleted file mode 100644
index ff3f494ab0c..00000000000
--- a/src/mame/includes/travrusa.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Lee Taylor
-// thanks-to:John Clegg,Tomasz Slanina
-#ifndef MAME_INCLUDES_TRAVRUSA_H
-#define MAME_INCLUDES_TRAVRUSA_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class travrusa_state : public driver_device
-{
-public:
- travrusa_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- { }
-
- void shtrider(machine_config &config);
- void travrusa(machine_config &config);
- void shtriderb(machine_config &config);
-
- void init_shtridra();
- void init_motorace();
- void init_shtridrb();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- /* video-related */
- tilemap_t* m_bg_tilemap;
- int m_scrollx[2];
- void travrusa_videoram_w(offs_t offset, uint8_t data);
- void travrusa_scroll_x_low_w(uint8_t data);
- void travrusa_scroll_x_high_w(uint8_t data);
- void travrusa_flipscreen_w(uint8_t data);
- uint8_t shtridrb_port11_r();
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_reset() override;
- virtual void video_start() override;
- void travrusa_palette(palette_device &palette) const;
- void shtrider_palette(palette_device &palette) const;
- uint32_t screen_update_travrusa(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void set_scroll();
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TRAVRUSA_H
diff --git a/src/mame/includes/triplhnt.h b/src/mame/includes/triplhnt.h
deleted file mode 100644
index c182ebbbd55..00000000000
--- a/src/mame/includes/triplhnt.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-/*************************************************************************
-
- Atari Triple Hunt hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TRIPLHNT_H
-#define MAME_INCLUDES_TRIPLHNT_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-
-/* Discrete Sound Input Nodes */
-#define TRIPLHNT_BEAR_ROAR_DATA NODE_01
-#define TRIPLHNT_BEAR_EN NODE_02
-#define TRIPLHNT_SHOT_DATA NODE_03
-#define TRIPLHNT_SCREECH_EN NODE_04
-#define TRIPLHNT_LAMP_EN NODE_05
-
-
-class triplhnt_state : public driver_device
-{
-public:
- triplhnt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_latch(*this, "latch"),
- m_watchdog(*this, "watchdog"),
- m_discrete(*this, "discrete"),
- m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_playfield_ram(*this, "playfield_ram"),
- m_vpos_ram(*this, "vpos_ram"),
- m_hpos_ram(*this, "hpos_ram"),
- m_orga_ram(*this, "orga_ram"),
- m_code_ram(*this, "code_ram"),
- m_lamp(*this, "lamp0")
- { }
-
- void triplhnt(machine_config &config);
-
- void init_triplhnt();
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- enum
- {
- TIMER_HIT
- };
-
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(tape_control_w);
-
- uint8_t cmos_r(offs_t offset);
- uint8_t input_port_4_r();
- uint8_t misc_r(offs_t offset);
- uint8_t da_latch_r(offs_t offset);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
- void triplhnt_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void set_collision(int code);
-
- void triplhnt_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<f9334_device> m_latch;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<discrete_sound_device> m_discrete;
- required_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_playfield_ram;
- required_shared_ptr<uint8_t> m_vpos_ram;
- required_shared_ptr<uint8_t> m_hpos_ram;
- required_shared_ptr<uint8_t> m_orga_ram;
- required_shared_ptr<uint8_t> m_code_ram;
- output_finder<> m_lamp;
-
- uint8_t m_cmos[16];
- uint8_t m_da_latch;
- uint8_t m_cmos_latch;
- uint8_t m_hit_code;
- int m_sprite_zoom;
- int m_sprite_bank;
- bitmap_ind16 m_helper;
- emu_timer *m_hit_timer;
- tilemap_t* m_bg_tilemap;
-};
-
-/*----------- defined in audio/triplhnt.cpp -----------*/
-DISCRETE_SOUND_EXTERN( triplhnt_discrete );
-extern const char *const triplhnt_sample_names[];
-
-#endif // MAME_INCLUDES_TRIPLHNT_H
diff --git a/src/mame/includes/trs80.h b/src/mame/includes/trs80.h
deleted file mode 100644
index 6e24cc14778..00000000000
--- a/src/mame/includes/trs80.h
+++ /dev/null
@@ -1,130 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Juergen Buchmueller, Robbbert
-//*****************************************************************************
-
-#ifndef MAME_INCLUDES_TRS80_H
-#define MAME_INCLUDES_TRS80_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-#include "cpu/z80/z80.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "imagedev/snapquik.h"
-#include "machine/ay31015.h"
-#include "machine/clock.h"
-#include "machine/com8116.h"
-#include "bus/rs232/rs232.h"
-#include "machine/buffer.h"
-#include "machine/wd_fdc.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-#include "screen.h"
-#include "speaker.h"
-#include "formats/trs80_dsk.h"
-#include "formats/trs_cas.h"
-
-
-class trs80_state : public driver_device
-{
-public:
- trs80_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_region_maincpu(*this, "maincpu")
- , m_p_chargen(*this, "chargen")
- , m_p_videoram(*this, "videoram")
- , m_centronics(*this, "centronics")
- , m_cent_data_out(*this, "cent_data_out")
- , m_cent_status_in(*this, "cent_status_in")
- , m_uart(*this, "uart")
- , m_uart_clock(*this, "uart_clock")
- , m_fdc(*this, "fdc")
- , m_floppy(*this, "flop%u", 0U)
- , m_speaker(*this, "speaker")
- , m_cassette(*this, "cassette")
- , m_io_baud(*this, "BAUD")
- , m_io_config(*this, "CONFIG")
- , m_io_keyboard(*this, "LINE%u", 0U)
- { }
-
- void sys80(machine_config &config);
- void sys80p(machine_config &config);
- void trs80(machine_config &config);
- void model1(machine_config &config);
- void ht1080z(machine_config &config);
-
- void init_trs80l2();
-
-protected:
- void machine_start() override;
- void machine_reset() override;
-
- void port_ff_w(u8 data);
- void sys80_fe_w(u8 data);
- void sys80_f8_w(u8 data);
- void port_ea_w(u8 data);
- void port_e8_w(u8 data);
- u8 port_ff_r();
- u8 sys80_f9_r();
- u8 port_ea_r();
- u8 port_e8_r();
- u8 irq_status_r();
- u8 printer_r();
- void printer_w(u8 data);
- void cassunit_w(u8 data);
- void motor_w(u8 data);
- u8 keyboard_r(offs_t offset);
- u8 fdc_r(offs_t offset);
- void fdc_w(offs_t offset, u8 data);
-
- INTERRUPT_GEN_MEMBER(rtc_interrupt);
- INTERRUPT_GEN_MEMBER(fdc_interrupt);
- TIMER_CALLBACK_MEMBER(cassette_data_callback);
- DECLARE_WRITE_LINE_MEMBER(intrq_w);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- u8 m_irq = 0;
- u8 m_mask = 0;
- u8 m_tape_unit = 1;
- bool m_reg_load = true;
- bool m_cassette_data = false;
- emu_timer *m_cassette_data_timer;
- double m_old_cassette_val = 0;
- bool m_cpl = 0;
- u8 m_cols = 0xff;
- bool m_7bit = false;
- u16 m_timeout = 600;
- void trs80_io(address_map &map);
- floppy_image_device *m_fdd;
- required_device<cpu_device> m_maincpu;
- required_memory_region m_region_maincpu;
- required_region_ptr<u8> m_p_chargen;
- optional_shared_ptr<u8> m_p_videoram;
- optional_device<centronics_device> m_centronics;
- optional_device<output_latch_device> m_cent_data_out;
- optional_device<input_buffer_device> m_cent_status_in;
- optional_device<ay31015_device> m_uart;
- optional_device<clock_device> m_uart_clock;
- optional_device<fd1771_device> m_fdc;
- optional_device_array<floppy_connector, 4> m_floppy;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- optional_ioport m_io_baud;
- optional_ioport m_io_config;
- required_ioport_array<8> m_io_keyboard;
-
-private:
- void m1_io(address_map &map);
- void m1_mem(address_map &map);
- void sys80_io(address_map &map);
- void trs80_mem(address_map &map);
- void ht1080z_io(address_map &map);
-
- uint32_t screen_update_trs80(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ht1080z(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- static void floppy_formats(format_registration &fr);
-};
-
-#endif // MAME_INCLUDES_TRS80_H
diff --git a/src/mame/includes/trs80m2.h b/src/mame/includes/trs80m2.h
deleted file mode 100644
index e54443e1b89..00000000000
--- a/src/mame/includes/trs80m2.h
+++ /dev/null
@@ -1,176 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_TRS80M2_H
-#define MAME_INCLUDES_TRS80M2_H
-
-#pragma once
-
-
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "cpu/mcs48/mcs48.h"
-#include "cpu/m68000/m68000.h"
-#include "bus/centronics/ctronics.h"
-#include "imagedev/floppy.h"
-#include "machine/am9519.h"
-#include "machine/keyboard.h"
-#include "machine/ram.h"
-#include "machine/trs80m2kb.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80ctc.h"
-#include "machine/z80dma.h"
-#include "machine/z80pio.h"
-#include "machine/z80sio.h"
-#include "video/mc6845.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "u12"
-#define Z80CTC_TAG "u19"
-#define Z80DMA_TAG "u20"
-#define Z80PIO_TAG "u22"
-#define Z80SIO_TAG "u18"
-#define FD1791_TAG "u6"
-#define MC6845_TAG "u11"
-#define CENTRONICS_TAG "j2"
-#define M68000_TAG "m16_u22"
-#define AM9519A_TAG "m16_u11"
-
-class trs80m2_state : public driver_device
-{
-public:
- trs80m2_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_ctc(*this, Z80CTC_TAG),
- m_dmac(*this, Z80DMA_TAG),
- m_pio(*this, Z80PIO_TAG),
- m_crtc(*this, MC6845_TAG),
- m_palette(*this, "palette"),
- m_fdc(*this, FD1791_TAG),
- m_centronics(*this, CENTRONICS_TAG),
- m_floppy0(*this, FD1791_TAG":0"),
- m_floppy1(*this, FD1791_TAG":1"),
- m_floppy2(*this, FD1791_TAG":2"),
- m_floppy3(*this, FD1791_TAG":3"),
- m_floppy(nullptr),
- m_ram(*this, RAM_TAG),
- m_kb(*this, TRS80M2_KEYBOARD_TAG),
- m_rom(*this, Z80_TAG),
- m_char_rom(*this, MC6845_TAG),
- m_video_ram(*this, "video_ram", 0x800, ENDIANNESS_LITTLE)
- {
- }
-
- static constexpr feature_type imperfect_features() { return feature::KEYBOARD; }
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
- void drvslt_w(uint8_t data);
- void rom_enable_w(uint8_t data);
- uint8_t keyboard_r();
- uint8_t rtc_r();
- uint8_t nmi_r();
- void nmi_w(uint8_t data);
- uint8_t fdc_r(offs_t offset);
- void fdc_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( de_w );
- DECLARE_WRITE_LINE_MEMBER( vsync_w );
- uint8_t pio_pa_r();
- void pio_pa_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( strobe_w );
- DECLARE_WRITE_LINE_MEMBER( kb_clock_w );
- void kbd_w(u8 data);
-
- MC6845_UPDATE_ROW( crtc_update_row );
-
- uint8_t io_read_byte(offs_t offset);
- void io_write_byte(offs_t offset, uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_fault);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
-
- void trs80m2(machine_config &config);
- void m68000_mem(address_map &map);
- void z80_io(address_map &map);
- void z80_mem(address_map &map);
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void video_start() override;
-
- required_device<z80_device> m_maincpu;
- required_device<z80ctc_device> m_ctc;
- required_device<z80dma_device> m_dmac;
- required_device<z80pio_device> m_pio;
- required_device<mc6845_device> m_crtc;
- required_device<palette_device> m_palette;
- required_device<fd1791_device> m_fdc;
- required_device<centronics_device> m_centronics;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<floppy_connector> m_floppy2;
- required_device<floppy_connector> m_floppy3;
- floppy_image_device *m_floppy;
- required_device<ram_device> m_ram;
- required_device<trs80m2_keyboard_device> m_kb;
- required_memory_region m_rom;
- required_memory_region m_char_rom;
- memory_share_creator<uint8_t> m_video_ram;
-
- // memory state
- int m_boot_rom;
- int m_bank;
- int m_msel;
-
- // keyboard state
- uint8_t m_key_latch;
- uint8_t m_key_data;
- int m_key_bit;
- int m_kbclk;
- int m_kbdata;
- int m_kbirq;
-
- // video state
- int m_blnkvid;
- int m_80_40_char_en;
- int m_de;
- int m_rtc_int;
- int m_enable_rtc_int;
-
- int m_centronics_busy;
- int m_centronics_fault;
- int m_centronics_perror;
-};
-
-class trs80m16_state : public trs80m2_state
-{
-public:
- trs80m16_state(const machine_config &mconfig, device_type type, const char *tag)
- : trs80m2_state(mconfig, type, tag)
- , m_subcpu(*this, M68000_TAG)
- , m_uic(*this, AM9519A_TAG)
- {
- }
-
- void ual_w(uint8_t data);
- void tcl_w(uint8_t data);
-
- void trs80m16(machine_config &config);
- void m16_z80_io(address_map &map);
-protected:
- virtual void machine_start() override;
-
- required_device<cpu_device> m_subcpu;
- required_device<am9519_device> m_uic;
-
- uint16_t m_ual;
- uint8_t m_limit[2];
- uint8_t m_offset[2];
-};
-
-#endif // MAME_INCLUDES_TRS80M2_H
diff --git a/src/mame/includes/trs80m3.h b/src/mame/includes/trs80m3.h
deleted file mode 100644
index f3e72c65024..00000000000
--- a/src/mame/includes/trs80m3.h
+++ /dev/null
@@ -1,157 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Robbbert
-//*****************************************************************************
-
-#ifndef MAME_INCLUDES_TRS80M3_H
-#define MAME_INCLUDES_TRS80M3_H
-
-#pragma once
-
-#include "bus/centronics/ctronics.h"
-#include "cpu/z80/z80.h"
-#include "machine/ram.h"
-#include "machine/bankdev.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "imagedev/snapquik.h"
-#include "machine/ay31015.h"
-#include "machine/com8116.h"
-#include "bus/rs232/rs232.h"
-#include "machine/buffer.h"
-#include "machine/wd_fdc.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-
-#include "formats/trs_cas.h"
-
-
-class trs80m3_state : public driver_device
-{
-public:
- trs80m3_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_region_maincpu(*this, "maincpu")
- , m_p_chargen(*this, "chargen")
- , m_p_videoram(*this, "videoram")
- , m_bankdev(*this, "bankdev")
- , m_centronics(*this, "centronics")
- , m_cent_data_out(*this, "cent_data_out")
- , m_cent_status_in(*this, "cent_status_in")
- , m_uart(*this, "uart")
- , m_brg(*this, "brg")
- , m_fdc(*this, "fdc")
- , m_floppy(*this, "fdc%u", 0U)
- , m_speaker(*this, "speaker")
- , m_cassette(*this, "cassette")
- , m_io_config(*this, "CONFIG")
- , m_io_keyboard(*this, "LINE%u", 0U)
- , m_mainram(*this, RAM_TAG)
- , m_m4_bank(*this, "m4_banked_mem")
- , m_m4p_bank(*this, "m4p_banked_mem")
- , m_32kbanks(*this, "bank%u", 0U)
- , m_16kbank(*this, "16kbank")
- , m_vidbank(*this, "vidbank")
- { }
-
- void model4p(machine_config &config);
- void model3(machine_config &config);
- void cp500(machine_config &config);
- void model4(machine_config &config);
-
- void init_trs80m3();
- void init_trs80m4();
- void init_trs80m4p();
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- static void floppy_formats(format_registration &fr);
- void port_ff_w(uint8_t data);
- void port_f4_w(uint8_t data);
- void port_ec_w(uint8_t data);
- void port_ea_w(uint8_t data);
- void port_e8_w(uint8_t data);
- void port_e4_w(uint8_t data);
- void port_e0_w(uint8_t data);
- void port_9c_w(uint8_t data);
- void port_90_w(uint8_t data);
- void port_88_w(offs_t offset, uint8_t data);
- void port_84_w(uint8_t data);
- uint8_t port_ff_r();
- uint8_t port_ec_r();
- uint8_t port_ea_r();
- uint8_t port_e8_r();
- uint8_t port_e4_r();
- uint8_t port_e0_r();
- uint8_t printer_r();
- void printer_w(uint8_t data);
- uint8_t keyboard_r(offs_t offset);
- uint8_t wd179x_r();
- uint8_t cp500_port_f4_r();
-
- INTERRUPT_GEN_MEMBER(rtc_interrupt);
- INTERRUPT_GEN_MEMBER(fdc_interrupt);
- TIMER_CALLBACK_MEMBER(cassette_data_callback);
- DECLARE_WRITE_LINE_MEMBER(intrq_w);
- DECLARE_WRITE_LINE_MEMBER(drq_w);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
- uint32_t screen_update_trs80m3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void cp500_io(address_map &map);
- void m3_io(address_map &map);
- void m3_mem(address_map &map);
- void m4_mem(address_map &map);
- void m4p_mem(address_map &map);
- void m4_io(address_map &map);
- void m4p_io(address_map &map);
- void m4_banked_mem(address_map &map);
- void m4p_banked_mem(address_map &map);
-
- uint8_t m_model4;
- uint8_t m_mode;
- uint8_t m_irq;
- uint8_t m_mask;
- uint8_t m_nmi_mask;
- uint8_t m_port_ec;
- bool m_reg_load;
- uint8_t m_nmi_data;
- uint8_t m_cassette_data;
- emu_timer *m_cassette_data_timer;
- double m_old_cassette_val;
- uint16_t m_start_address;
- uint8_t m_crtc_reg;
- uint8_t m_size_store;
- bool m_a11_flipflop;
- uint16_t m_timeout;
- bool m_wait;
- bool m_drq_off;
- bool m_intrq_off;
- floppy_image_device *m_fdd;
- required_device<cpu_device> m_maincpu;
- required_memory_region m_region_maincpu;
- required_region_ptr<u8> m_p_chargen;
- optional_shared_ptr<u8> m_p_videoram;
- optional_device<address_map_bank_device> m_bankdev;
- optional_device<centronics_device> m_centronics;
- optional_device<output_latch_device> m_cent_data_out;
- optional_device<input_buffer_device> m_cent_status_in;
- optional_device<ay31015_device> m_uart;
- optional_device<com8116_device> m_brg;
- optional_device<fd1793_device> m_fdc;
- optional_device_array<floppy_connector, 2> m_floppy;
- required_device<speaker_sound_device> m_speaker;
- optional_device<cassette_image_device> m_cassette;
- optional_ioport m_io_config;
- required_ioport_array<8> m_io_keyboard;
- optional_device<ram_device> m_mainram;
- optional_device<address_map_bank_device> m_m4_bank;
- optional_device<address_map_bank_device> m_m4p_bank;
- optional_memory_bank_array<2> m_32kbanks;
- optional_memory_bank m_16kbank;
- optional_memory_bank m_vidbank;
-};
-
-#endif // MAME_INCLUDES_TRS80M3_H
diff --git a/src/mame/includes/truco.h b/src/mame/includes/truco.h
deleted file mode 100644
index d9e16027694..00000000000
--- a/src/mame/includes/truco.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi, Roberto Fresca
-
-#ifndef MAME_INCLUDES_TRUCO_H
-#define MAME_INCLUDES_TRUCO_H
-
-#pragma once
-
-#include "machine/watchdog.h"
-#include "sound/dac.h"
-#include "emupal.h"
-
-class truco_state : public driver_device
-{
-public:
- truco_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_palette(*this, "palette"),
- m_dac(*this, "dac"),
- m_videoram(*this, "videoram"),
- m_battery_ram(*this, "battery_ram")
- { }
-
- void truco(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<palette_device> m_palette;
- required_device<dac_bit_interface> m_dac;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_battery_ram;
-
- int m_trigger;
-
- void porta_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pia_ca2_w);
- void portb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(pia_irqa_w);
- DECLARE_WRITE_LINE_MEMBER(pia_irqb_w);
-
- void truco_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(interrupt);
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TRUCO_H
diff --git a/src/mame/includes/trucocl.h b/src/mame/includes/trucocl.h
deleted file mode 100644
index 879984fd705..00000000000
--- a/src/mame/includes/trucocl.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-#ifndef MAME_INCLUDES_TRUCOCL_H
-#define MAME_INCLUDES_TRUCOCL_H
-
-#pragma once
-
-#include "sound/dac.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class trucocl_state : public driver_device
-{
-public:
- trucocl_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_maincpu(*this, "maincpu"),
- m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode") { }
-
- void trucocl(machine_config &config);
-
- void init_trucocl();
-
-protected:
- enum
- {
- TIMER_DAC_IRQ
- };
-
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- int m_cur_dac_address;
- int m_cur_dac_address_index;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- tilemap_t *m_bg_tilemap;
-
- uint8_t m_irq_mask;
- emu_timer *m_dac_irq_timer;
-
- void irq_enable_w(uint8_t data);
- void trucocl_videoram_w(offs_t offset, uint8_t data);
- void trucocl_colorram_w(offs_t offset, uint8_t data);
- void audio_dac_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void trucocl_palette(palette_device &palette) const;
- uint32_t screen_update_trucocl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(trucocl_interrupt);
- required_device<cpu_device> m_maincpu;
- required_device<dac_byte_interface> m_dac;
- required_device<gfxdecode_device> m_gfxdecode;
-
- void main_map(address_map &map);
- void main_io(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TRUCOCL_H
diff --git a/src/mame/includes/tryout.h b/src/mame/includes/tryout.h
deleted file mode 100644
index bb4d942b117..00000000000
--- a/src/mame/includes/tryout.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli, Bryan McPhail
-#ifndef MAME_INCLUDES_TRYOUT_H
-#define MAME_INCLUDES_TRYOUT_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tryout_state : public driver_device
-{
-public:
- tryout_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2"),
- m_gfx_control(*this, "gfx_control")
- { }
-
- void tryout(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_spriteram2;
- required_shared_ptr<uint8_t> m_gfx_control;
-
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- uint8_t m_vram_bank;
- std::unique_ptr<uint8_t[]> m_vram;
- std::unique_ptr<uint8_t[]> m_vram_gfx;
-
- void nmi_ack_w(uint8_t data);
- void sound_w(uint8_t data);
- void sound_irq_ack_w(uint8_t data);
- void bankswitch_w(uint8_t data);
- uint8_t vram_r(offs_t offset);
- void videoram_w(offs_t offset, uint8_t data);
- void vram_w(offs_t offset, uint8_t data);
- void vram_bankswitch_w(uint8_t data);
- void flipscreen_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILEMAP_MAPPER_MEMBER(get_fg_memory_offset);
- TILEMAP_MAPPER_MEMBER(get_bg_memory_offset);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- void tryout_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- void main_cpu(address_map &map);
- void sound_cpu(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TRYOUT_H
diff --git a/src/mame/includes/tsamurai.h b/src/mame/includes/tsamurai.h
deleted file mode 100644
index 981c7eca517..00000000000
--- a/src/mame/includes/tsamurai.h
+++ /dev/null
@@ -1,178 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-#ifndef MAME_INCLUDES_TSAMURAI_H
-#define MAME_INCLUDES_TSAMURAI_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class tsamurai_state : public driver_device
-{
-public:
- tsamurai_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_audio2(*this, "audio2"),
- m_audio3(*this, "audio3"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_bg_videoram(*this, "bg_videoram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void tsamurai(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- // common
- DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
- DECLARE_WRITE_LINE_MEMBER(textbank1_w);
- void fg_videoram_w(offs_t offset, uint8_t data);
-
- // tsamurai and m660 specific
- void bg_videoram_w(offs_t offset, uint8_t data);
- void fg_colorram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_w);
- void scrolly_w(uint8_t data);
- void scrollx_w(uint8_t data);
- void bgcolor_w(uint8_t data);
- uint8_t unknown_d806_r();
- uint8_t unknown_d900_r();
- uint8_t unknown_d938_r();
- void sound_command1_w(uint8_t data);
- void sound_command2_w(uint8_t data);
- uint8_t sound_command1_r();
- uint8_t sound_command2_r();
-
- // tsamurai/the26thz specific
- uint8_t tsamurai_unknown_d803_r();
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- void main_map(address_map &map);
- void sound1_map(address_map &map);
- void sound2_map(address_map &map);
- void z80_io_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<cpu_device> m_audio2;
- optional_device<cpu_device> m_audio3;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_colorram;
- optional_shared_ptr<uint8_t> m_bg_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- tilemap_t *m_background;
- tilemap_t *m_foreground;
-
- //common
- int m_textbank1;
- int m_nmi_enabled;
-
- // tsamurai and m660 specific
- int m_bgcolor;
- int m_sound_command1;
- int m_sound_command2;
-
- virtual TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- int m_numsprites;
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
-};
-
-class vsgongf_state : public tsamurai_state
-{
-public:
- vsgongf_state(const machine_config &mconfig, device_type type, const char *tag) :
- tsamurai_state(mconfig, type, tag),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void vsgongf(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- optional_device<generic_latch_8_device> m_soundlatch; // vsgongf only
-
- void sound_vsgongf_map(address_map &map);
- void vsgongf_audio_io_map(address_map &map);
- void vsgongf_map(address_map &map);
-
- // vsgongf specific
- void vsgongf_color_w(uint8_t data);
- void vsgongf_sound_nmi_enable_w(uint8_t data);
- uint8_t vsgongf_a006_r();
- uint8_t vsgongf_a100_r();
- void vsgongf_sound_command_w(uint8_t data);
-
- //vsgongf specific
- int m_vsgongf_sound_nmi_enabled;
- int m_vsgongf_color;
- int m_key_count; //debug only
-
- INTERRUPT_GEN_MEMBER(vsgongf_sound_interrupt);
-
- TILE_GET_INFO_MEMBER(get_vsgongf_tile_info);
-
- uint32_t screen_update_vsgongf(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-class m660_state : public tsamurai_state
-{
-public:
- m660_state(const machine_config &mconfig, device_type type, const char *tag) :
- tsamurai_state(mconfig, type, tag)
- { }
-
- void m660(machine_config &config);
-
- void init_the26thz();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- virtual TILE_GET_INFO_MEMBER(get_bg_tile_info) override;
- virtual TILE_GET_INFO_MEMBER(get_fg_tile_info) override;
-
-private:
-
- // m660 specific
- DECLARE_WRITE_LINE_MEMBER(textbank2_w);
- uint8_t m660_unknown_d803_r();
- void m660_sound_command3_w(uint8_t data);
- uint8_t m660_sound_command3_r();
-
- void m660_map(address_map &map);
- void sound1_m660_map(address_map &map);
- void sound2_m660_map(address_map &map);
- void sound3_m660_io_map(address_map &map);
- void sound3_m660_map(address_map &map);
- void z80_m660_io_map(address_map &map);
-
- //m660 specific
- int m_textbank2;
- int m_sound_command3;
-};
-
-#endif // MAME_INCLUDES_TSAMURAI_H
diff --git a/src/mame/includes/tubep.h b/src/mame/includes/tubep.h
deleted file mode 100644
index 8f8a9291138..00000000000
--- a/src/mame/includes/tubep.h
+++ /dev/null
@@ -1,166 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Jarek Burczynski
-#ifndef MAME_INCLUDES_TUBEP_H
-#define MAME_INCLUDES_TUBEP_H
-
-#pragma once
-
-#include "cpu/m6800/m6800.h"
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "screen.h"
-
-class tubep_state : public driver_device
-{
-public:
- tubep_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_slave(*this, "slave"),
- m_mcu(*this, "mcu"),
- m_soundlatch(*this, "soundlatch"),
- m_msm(*this, "msm"),
- m_screen(*this, "screen"),
- m_textram(*this, "textram"),
- m_backgroundram(*this, "backgroundram"),
- m_sprite_colorsharedram(*this, "sprite_color")
- { }
-
- void tubepb(machine_config &config);
- void tubep(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- enum
- {
- TIMER_TUBEP_SCANLINE,
- TIMER_RJAMMER_SCANLINE,
- TIMER_SPRITE
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<cpu_device> m_slave;
- required_device<m6802_cpu_device> m_mcu;
- required_device<generic_latch_8_device> m_soundlatch;
- optional_device<msm5205_device> m_msm;
- required_device<screen_device> m_screen;
- required_shared_ptr<uint8_t> m_textram;
- optional_shared_ptr<uint8_t> m_backgroundram;
- required_shared_ptr<uint8_t> m_sprite_colorsharedram;
-
- uint8_t m_ls74;
- uint8_t m_ls377;
- emu_timer *m_interrupt_timer;
- emu_timer *m_sprite_timer;
- int m_curr_scanline;
- std::unique_ptr<uint8_t[]> m_spritemap;
- uint8_t m_prom2[32];
- uint32_t m_romD_addr;
- uint32_t m_romEF_addr;
- uint32_t m_E16_add_b;
- uint32_t m_HINV;
- uint32_t m_VINV;
- uint32_t m_XSize;
- uint32_t m_YSize;
- uint32_t m_mark_1;
- uint32_t m_mark_2;
- uint32_t m_colorram_addr_hi;
- uint32_t m_ls273_g6;
- uint32_t m_ls273_j6;
- uint32_t m_romHI_addr_mid;
- uint32_t m_romHI_addr_msb;
- uint8_t m_DISP;
- uint8_t m_background_romsel;
- uint8_t m_color_A4;
- uint8_t m_ls175_b7;
- uint8_t m_ls175_e8;
- uint8_t m_ls377_data;
- uint32_t m_page;
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
- void main_cpu_irq_line_clear_w(uint8_t data);
- void second_cpu_irq_line_clear_w(uint8_t data);
- uint8_t tubep_soundlatch_r();
- uint8_t tubep_sound_irq_ack();
- void tubep_textram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(screen_flip_w);
- DECLARE_WRITE_LINE_MEMBER(background_romselect_w);
- DECLARE_WRITE_LINE_MEMBER(colorproms_A4_line_w);
- void tubep_background_a000_w(uint8_t data);
- void tubep_background_c000_w(uint8_t data);
- void tubep_sprite_control_w(offs_t offset, uint8_t data);
-
- void ay8910_portA_0_w(uint8_t data);
- void ay8910_portB_0_w(uint8_t data);
- void ay8910_portA_1_w(uint8_t data);
- void ay8910_portB_1_w(uint8_t data);
- void ay8910_portA_2_w(uint8_t data);
- void ay8910_portB_2_w(uint8_t data);
- virtual void video_start() override;
- virtual void video_reset() override;
- void tubep_palette(palette_device &palette);
- uint32_t screen_update_tubep(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(tubep_scanline_callback);
- TIMER_CALLBACK_MEMBER(rjammer_scanline_callback); // called from common device_timer function so can't be moved out of here yet
- void draw_sprite();
- void tubep_vblank_end();
- void tubep_setup_save_state();
-
- void nsc_map(address_map &map);
-
- void tubep_main_map(address_map &map);
- void tubep_main_portmap(address_map &map);
- void tubep_second_map(address_map &map);
- void tubep_second_portmap(address_map &map);
- void tubep_sound_map(address_map &map);
- void tubep_sound_portmap(address_map &map);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-};
-
-class rjammer_state : public tubep_state
-{
-public:
- rjammer_state(const machine_config &mconfig, device_type type, const char *tag) :
- tubep_state(mconfig, type, tag),
- m_rjammer_backgroundram(*this, "rjammer_bgram")
- { }
-
- void rjammer(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
-
- void rjammer_background_LS377_w(uint8_t data);
- void rjammer_background_page_w(uint8_t data);
- void rjammer_voice_startstop_w(uint8_t data);
- void rjammer_voice_frequency_select_w(uint8_t data);
-
- void rjammer_voice_input_w(uint8_t data);
- void rjammer_voice_intensity_control_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(rjammer_adpcm_vck);
-
- uint32_t screen_update_rjammer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void rjammer_palette(palette_device &palette) const;
-
- void rjammer_main_map(address_map &map);
- void rjammer_main_portmap(address_map &map);
- void rjammer_second_map(address_map &map);
- void rjammer_second_portmap(address_map &map);
- void rjammer_sound_map(address_map &map);
- void rjammer_sound_portmap(address_map &map);
-
- optional_shared_ptr<uint8_t> m_rjammer_backgroundram;
-};
-
-#endif // MAME_INCLUDES_TUBEP_H
diff --git a/src/mame/includes/tumbleb.h b/src/mame/includes/tumbleb.h
deleted file mode 100644
index c35f4230b99..00000000000
--- a/src/mame/includes/tumbleb.h
+++ /dev/null
@@ -1,215 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood,Bryan McPhail
-#ifndef MAME_INCLUDES_TUMBLEB_H
-#define MAME_INCLUDES_TUMBLEB_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/okim6295.h"
-#include "video/decospr.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class tumbleb_state : public driver_device
-{
-public:
- tumbleb_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_mainram(*this, "mainram"),
- m_spriteram(*this, "spriteram"),
- m_pf1_data(*this, "pf1_data"),
- m_pf2_data(*this, "pf2_data"),
- m_control(*this, "control"),
- m_pf1_tilemap(nullptr),
- m_pf1_alt_tilemap(nullptr),
- m_pf2_tilemap(nullptr),
- m_pf2_alt_tilemap(nullptr),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sprgen(*this, "spritegen"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch"),
- m_protbase(0)
- { }
-
- void tumblepb(machine_config &config);
- void tumblepba(machine_config &config);
- void bcstory(machine_config &config);
- void pangpang(machine_config &config);
- void semibase(machine_config &config);
- void tumbleb2(machine_config &config);
- void cookbib(machine_config &config);
- void metlsavr(machine_config &config);
- void fncywld(machine_config &config);
- void magipur(machine_config &config);
- void suprtrio(machine_config &config);
- void htchctch(machine_config &config);
- void htchctch_mcu(machine_config &config);
- void sdfight(machine_config &config);
- void chokchok(machine_config &config);
- void cookbib_mcu(machine_config &config);
- void jumpkids(machine_config &config);
-
- void init_dquizgo();
- void init_jumpkids();
- void init_htchctch();
- void init_wlstar();
- void init_suprtrio();
- void init_tumblepb();
- void init_tumblepba();
- void init_bcstory();
- void init_wondl96();
- void init_tumbleb2();
- void init_chokchok();
- void init_fncywld();
- void init_magipur();
- void init_carket();
-
-protected:
- /* memory pointers */
- optional_shared_ptr<uint16_t> m_mainram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_pf1_data;
- required_shared_ptr<uint16_t> m_pf2_data;
- optional_shared_ptr<uint16_t> m_control;
-
- /* misc */
- int m_music_command;
- int m_music_bank;
- int m_music_is_playing;
-
- /* video-related */
- tilemap_t *m_pf1_tilemap;
- tilemap_t *m_pf1_alt_tilemap;
- tilemap_t *m_pf2_tilemap;
- tilemap_t *m_pf2_alt_tilemap;
- uint16_t m_control_0[8];
- uint16_t m_tilebank;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- required_device<okim6295_device> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<decospr_device> m_sprgen;
- required_device<screen_device> m_screen;
- optional_device<generic_latch_8_device> m_soundlatch;
-
- uint8_t m_semicom_prot_offset;
- uint16_t m_protbase;
- void tumblepb_oki_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t tumblepb_prot_r();
- uint16_t tumblepopb_controls_r(offs_t offset);
- uint16_t semibase_unknown_r();
- void jumpkids_sound_w(uint16_t data);
- void semicom_soundcmd_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void oki_sound_bank_w(uint8_t data);
- void jumpkids_oki_bank_w(uint8_t data);
- void prot_p0_w(uint8_t data);
- void prot_p1_w(uint8_t data);
- void prot_p2_w(uint8_t data);
- uint16_t bcstory_1a0_read();
- void bcstory_tilebank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void chokchok_tilebank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void wlstar_tilebank_w(uint16_t data);
- void suprtrio_tilebank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tumblepb_pf1_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tumblepb_pf2_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fncywld_pf1_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fncywld_pf2_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tumblepb_control_0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void pangpang_pf1_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void pangpang_pf2_data_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tumbleb2_soundmcu_w(uint16_t data);
-
- TILEMAP_MAPPER_MEMBER(tumblep_scan);
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_fncywld_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_fncywld_bg2_tile_info);
- TILE_GET_INFO_MEMBER(get_fncywld_fg_tile_info);
- TILE_GET_INFO_MEMBER(pangpang_get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(pangpang_get_bg2_tile_info);
- TILE_GET_INFO_MEMBER(pangpang_get_fg_tile_info);
- DECLARE_MACHINE_START(tumbleb);
- DECLARE_MACHINE_RESET(tumbleb);
- DECLARE_VIDEO_START(tumblepb);
- DECLARE_VIDEO_START(fncywld);
- DECLARE_MACHINE_RESET(htchctch);
- DECLARE_VIDEO_START(suprtrio);
- DECLARE_VIDEO_START(pangpang);
- DECLARE_VIDEO_START(sdfight);
- uint32_t screen_update_tumblepb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_jumpkids(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_fncywld(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_semicom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_suprtrio(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_pangpang(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_semicom_altoffsets(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_bcstory(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_semibase(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_sdfight(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(tumbleb2_interrupt);
- void tumbleb_tilemap_redraw();
- inline void get_bg_tile_info( tile_data &tileinfo, int tile_index, int gfx_bank, uint16_t *gfx_base);
- inline void get_fncywld_bg_tile_info( tile_data &tileinfo, int tile_index, int gfx_bank, uint16_t *gfx_base);
- inline void pangpang_get_bg_tile_info( tile_data &tileinfo, int tile_index, int gfx_bank, uint16_t *gfx_base );
- inline void pangpang_get_bg2x_tile_info( tile_data &tileinfo, int tile_index, int gfx_bank, uint16_t *gfx_base );
- void tumbleb_draw_common(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int pf1x_offs, int pf1y_offs, int pf2x_offs, int pf2y_offs);
- void tumbleb2_set_music_bank( int bank );
- void tumbleb2_play_sound( okim6295_device *oki, int data );
- void tumbleb2_playmusic(okim6295_device *oki);
- void process_tumbleb2_music_command( okim6295_device *oki, int data );
- void tumblepb_gfx_rearrange(int rgn);
- void suprtrio_decrypt_code();
- void suprtrio_decrypt_gfx();
-
- void unico_base_map(address_map &map);
- void fncywld_main_map(address_map &map);
- void magipur_main_map(address_map &map);
- void htchctch_main_map(address_map &map);
- void jumpkids_main_map(address_map &map);
- void jumpkids_sound_map(address_map &map);
- void pangpang_main_map(address_map &map);
- void semicom_sound_map(address_map &map);
- void suprtrio_main_map(address_map &map);
- void suprtrio_sound_map(address_map &map);
- void tumblepopb_main_map(address_map &map);
- void tumblepopba_main_map(address_map &map);
-};
-
-class tumbleb_pic_state : public tumbleb_state
-{
-public:
- tumbleb_pic_state(const machine_config &mconfig, device_type type, const char *tag) :
- tumbleb_state(mconfig, type, tag),
- m_okibank(*this, "okibank")
- { }
-
- void funkyjetb(machine_config &config);
-
-protected:
- virtual void driver_start() override;
-
-private:
- void oki_bank_w(uint8_t data);
- uint8_t pic_data_r();
- void pic_data_w(uint8_t data);
- void pic_ctrl_w(uint8_t data);
-
- void funkyjetb_map(address_map &map);
- void funkyjetb_oki_map(address_map &map);
-
- required_memory_bank m_okibank;
-
- uint8_t m_pic_data;
-};
-
-#endif // MAME_INCLUDES_TUMBLEB_H
diff --git a/src/mame/includes/tunhunt.h b/src/mame/includes/tunhunt.h
deleted file mode 100644
index e6b17b02d84..00000000000
--- a/src/mame/includes/tunhunt.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino, David Haywood
-#ifndef MAME_INCLUDES_TUNHUNT_H
-#define MAME_INCLUDES_TUNHUNT_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class tunhunt_state : public driver_device
-{
-public:
- tunhunt_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_workram(*this, "workram"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_generic_paletteram_8(*this, "paletteram"),
- m_led(*this, "led0")
- { }
-
- void tunhunt(machine_config &config);
-
-private:
- void control_w(uint8_t data);
- uint8_t button_r(offs_t offset);
- void videoram_w(offs_t offset, uint8_t data);
- uint8_t dsw2_0r();
- uint8_t dsw2_1r();
- uint8_t dsw2_2r();
- uint8_t dsw2_3r();
- uint8_t dsw2_4r();
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- virtual void machine_start() override { m_led.resolve(); }
- virtual void video_start() override;
- void tunhunt_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void set_pens();
- void draw_motion_object(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_box(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_shell(bitmap_ind16 &bitmap, const rectangle &cliprect, int picture_code,
- int hposition,int vstart,int vstop,int vstretch,int hstretch);
- void main_map(address_map &map);
- virtual void machine_reset() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_workram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_generic_paletteram_8;
- output_finder<> m_led;
-
- uint8_t m_control;
- tilemap_t *m_fg_tilemap;
- bitmap_ind16 m_tmpbitmap;
-
- uint8_t m_mobsc0;
- uint8_t m_mobsc1;
- uint8_t m_lineh[13];
- uint8_t m_shl0st;
- uint8_t m_shl1st;
- uint8_t m_vstrlo;
- uint8_t m_linesh;
- uint8_t m_shl0pc;
- uint8_t m_shl1pc;
- uint8_t m_linec[13];
- uint8_t m_shl0v;
- uint8_t m_shl1v;
- uint8_t m_mobjh;
- uint8_t m_linev[13];
- uint8_t m_shl0vs;
- uint8_t m_shl1vs;
- uint8_t m_mobvs;
- uint8_t m_linevs[13];
- uint8_t m_shel0h;
- uint8_t m_mobst;
- uint8_t m_shel1h;
- uint8_t m_mobjv;
-};
-
-#endif // MAME_INCLUDES_TUNHUNT_H
diff --git a/src/mame/includes/turbo.h b/src/mame/includes/turbo.h
deleted file mode 100644
index 052ccb19d45..00000000000
--- a/src/mame/includes/turbo.h
+++ /dev/null
@@ -1,223 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Alex Pasadyn, Howie Cohen, Frank Palazzolo, Ernesto Corvi, Aaron Giles
-/*************************************************************************
-
- Sega Z80-3D system
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TURBO_H
-#define MAME_INCLUDES_TURBO_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/i8255.h"
-#include "sound/discrete.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* sprites are scaled in the analog domain; to give a better */
-/* rendition of this, we scale in the X direction by this factor */
-#define TURBO_X_SCALE 2
-
-
-
-class turbo_state : public driver_device
-{
-public:
- turbo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "subcpu")
- , m_i8255_0(*this, "i8255_0")
- , m_i8255_1(*this, "i8255_1")
- , m_i8255_2(*this, "i8255_2")
- , m_i8255_3(*this, "i8255_3")
- , m_spriteroms(*this, "sprites")
- , m_proms(*this, "proms")
- , m_roadroms(*this, "road")
- , m_bgcolorrom(*this, "bgcolor")
- , m_videoram(*this, "videoram")
- , m_spriteram(*this, "spriteram")
- , m_sprite_position(*this, "spritepos")
- , m_decrypted_opcodes(*this, "decrypted_opcodes")
- , m_samples(*this, "samples")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_digits(*this, "digit%u", 0U)
- , m_lamp(*this, "lamp")
- { }
-
- void turbo(machine_config &config);
- void buckrog(machine_config &config);
- void buckroge(machine_config &config);
- void buckrogu(machine_config &config);
- void subroc3d(machine_config &config);
- void turbo_samples(machine_config &config);
- void subroc3d_samples(machine_config &config);
- void buckrog_samples(machine_config &config);
-
- void init_turbo_enc();
- void init_turbo_noenc();
-
-private:
- /* device/memory pointers */
- required_device<z80_device> m_maincpu;
- optional_device<z80_device> m_subcpu;
- required_device<i8255_device> m_i8255_0;
- required_device<i8255_device> m_i8255_1;
- optional_device<i8255_device> m_i8255_2;
- optional_device<i8255_device> m_i8255_3;
-
- required_region_ptr<uint8_t> m_spriteroms;
- required_region_ptr<uint8_t> m_proms;
- optional_region_ptr<uint8_t> m_roadroms;
- optional_region_ptr<uint8_t> m_bgcolorrom;
-
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_sprite_position;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- required_device<samples_device> m_samples;
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- output_finder<32> m_digits;
- output_finder<> m_lamp;
-
- std::unique_ptr<uint8_t[]> m_buckrog_bitmap_ram;
- virtual void machine_start() override { m_digits.resolve(); m_lamp.resolve(); }
-
- /* machine states */
- uint8_t m_i8279_scanlines;
- uint8_t m_alt_spriteram[0x80];
-
- /* sound state */
- uint8_t m_turbo_osel;
- uint8_t m_turbo_bsel;
- uint8_t m_sound_state[3];
-
- /* video state */
- tilemap_t * m_fg_tilemap;
-
- /* Turbo-specific states */
- uint8_t m_turbo_opa;
- uint8_t m_turbo_opb;
- uint8_t m_turbo_opc;
- uint8_t m_turbo_ipa;
- uint8_t m_turbo_ipb;
- uint8_t m_turbo_ipc;
- uint8_t m_turbo_fbpla;
- uint8_t m_turbo_fbcol;
- uint8_t m_turbo_speed;
- uint8_t m_turbo_collision;
- uint8_t m_turbo_last_analog;
- uint8_t m_turbo_accel;
-
- /* Subroc-specific states */
- uint8_t m_subroc3d_col;
- uint8_t m_subroc3d_ply;
- uint8_t m_subroc3d_flip;
- uint8_t m_subroc3d_mdis;
- uint8_t m_subroc3d_mdir;
- uint8_t m_subroc3d_tdis;
- uint8_t m_subroc3d_tdir;
- uint8_t m_subroc3d_fdis;
- uint8_t m_subroc3d_fdir;
- uint8_t m_subroc3d_hdis;
- uint8_t m_subroc3d_hdir;
-
- /* Buck Rogers-specific states */
- uint8_t m_buckrog_fchg;
- uint8_t m_buckrog_mov;
- uint8_t m_buckrog_obch;
- uint8_t m_buckrog_command;
- uint8_t m_buckrog_myship;
- int m_last_sound_a;
-
- struct sprite_info
- {
- uint16_t ve; /* VE0-15 signals for this row */
- uint8_t lst; /* LST0-7 signals for this row */
- uint32_t latched[8]; /* latched pixel data */
- uint8_t plb[8]; /* latched PLB state */
- uint32_t offset[8]; /* current offset for this row */
- uint32_t frac[8]; /* leftover fraction */
- uint32_t step[8]; /* stepping value */
- };
-
- void scanlines_w(uint8_t data);
- void digit_w(uint8_t data);
- uint8_t turbo_collision_r();
- void turbo_collision_clear_w(uint8_t data);
- void turbo_analog_reset_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_meter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_meter_2_w);
- DECLARE_WRITE_LINE_MEMBER(start_lamp_w);
- uint8_t buckrog_cpu2_command_r();
- uint8_t buckrog_port_2_r();
- uint8_t buckrog_port_3_r();
- void turbo_videoram_w(offs_t offset, uint8_t data);
- void buckrog_bitmap_w(offs_t offset, uint8_t data);
- void turbo_ppi0a_w(uint8_t data);
- void turbo_ppi0b_w(uint8_t data);
- void turbo_ppi0c_w(uint8_t data);
- void turbo_ppi1a_w(uint8_t data);
- void turbo_ppi1b_w(uint8_t data);
- void turbo_ppi1c_w(uint8_t data);
- void turbo_ppi3c_w(uint8_t data);
- void subroc3d_ppi0a_w(uint8_t data);
- void subroc3d_ppi0c_w(uint8_t data);
- void subroc3d_ppi0b_w(uint8_t data);
- void buckrog_ppi0a_w(uint8_t data);
- void buckrog_ppi0b_w(uint8_t data);
- void buckrog_ppi0c_w(uint8_t data);
- void buckrog_ppi1c_w(uint8_t data);
- uint8_t turbo_analog_r();
- void buckrog_i8255_0_w(offs_t offset, uint8_t data);
- uint8_t spriteram_r(offs_t offset);
- void spriteram_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- DECLARE_VIDEO_START(turbo);
- void turbo_palette(palette_device &palette) const;
- void subroc3d_palette(palette_device &palette) const;
- DECLARE_MACHINE_RESET(buckrog);
- DECLARE_VIDEO_START(buckrog);
- void buckrog_palette(palette_device &palette) const;
- uint32_t screen_update_turbo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_subroc3d(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_buckrog(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(delayed_i8255_w);
- void turbo_sound_a_w(u8 data);
- void turbo_sound_b_w(u8 data);
- void turbo_sound_c_w(u8 data);
- void subroc3d_sound_a_w(u8 data);
- void subroc3d_sound_b_w(u8 data);
- void subroc3d_sound_c_w(u8 data);
- void buckrog_sound_a_w(u8 data);
- void buckrog_sound_b_w(u8 data);
- inline uint32_t sprite_xscale(uint8_t dacinput, double vr1, double vr2, double cext);
- void turbo_prepare_sprites(uint8_t y, sprite_info *info);
- uint32_t turbo_get_sprite_bits(uint8_t road, sprite_info *sprinfo);
- void subroc3d_prepare_sprites(uint8_t y, sprite_info *info);
- uint32_t subroc3d_get_sprite_bits(sprite_info *sprinfo, uint8_t *plb);
- void buckrog_prepare_sprites(uint8_t y, sprite_info *info);
- uint32_t buckrog_get_sprite_bits(sprite_info *sprinfo, uint8_t *plb);
- void turbo_rom_decode();
- void turbo_update_samples();
- inline void subroc3d_update_volume(int leftchan, uint8_t dis, uint8_t dir);
- void buckrog_update_samples();
-
- void buckrog_cpu2_map(address_map &map);
- void buckrog_cpu2_portmap(address_map &map);
- void buckrog_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void subroc3d_map(address_map &map);
- void turbo_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TURBO_H
diff --git a/src/mame/includes/turrett.h b/src/mame/includes/turrett.h
deleted file mode 100644
index 6192a5f56ff..00000000000
--- a/src/mame/includes/turrett.h
+++ /dev/null
@@ -1,148 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett
-/***************************************************************************
-
- Turret Tower hardware
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_TURRETT_H
-#define MAME_INCLUDES_TURRETT_H
-
-#pragma once
-
-#include "cpu/mips/mips1.h"
-#include "bus/ata/ataintf.h"
-#include "emupal.h"
-#include "speaker.h"
-#include "screen.h"
-
-
-class turrett_state : public driver_device
-{
-public:
- turrett_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_ata(*this, "ata")
- , m_bank_a(*this, "bank_a")
- , m_bank_b(*this, "bank_b")
- , m_screen(*this, "screen")
- {
- }
-
- void turrett(machine_config &config);
-
- INPUT_CHANGED_MEMBER(ipt_change);
-
-private:
- // constants
- static const uint32_t X_VISIBLE = 336;
- static const uint32_t Y_VISIBLE = 244;
- static const uint32_t DIMM_BANK_WORDS = 128 * 1024 * 1024 / 2;
- static const uint32_t DIMM_BANK_MASK = DIMM_BANK_WORDS - 1;
- static const uint32_t VRAM_BANK_WORDS = 256 * 1024;
-
- // devices
- required_device<r3041_device> m_maincpu;
- required_device<ata_interface_device> m_ata;
- required_shared_ptr<uint16_t> m_bank_a;
- required_shared_ptr<uint16_t> m_bank_b;
- required_device<screen_device> m_screen;
-
- // handlers
- void dma_w(offs_t offset, uint32_t data);
- uint32_t video_r(offs_t offset, uint32_t mem_mask = ~0);
- void video_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t int_r();
- void int_w(uint32_t data);
- DECLARE_READ_LINE_MEMBER(sbrc2_r);
- DECLARE_READ_LINE_MEMBER(sbrc3_r);
-
- TIMER_CALLBACK_MEMBER(dma_complete);
- INTERRUPT_GEN_MEMBER(vblank);
- INTERRUPT_GEN_MEMBER(adc);
-
- // functions
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t write_video_ram(uint16_t data);
- void update_video_addr(void);
- uint32_t update_inputs(void);
-
- // members
- emu_timer *m_dma_timer;
- uint32_t m_inputs_active;
- std::unique_ptr<uint16_t[]> m_video_ram[2];
- uint16_t m_last_pixel;
- int32_t m_video_ctrl;
- uint16_t m_video_fade;
- int16_t m_x_pos;
- int16_t m_x_start;
- int16_t m_x_mod;
- int16_t m_dx;
- int16_t m_y_pos;
- int16_t m_scale_cnt_y;
- int16_t m_scale_cnt_x;
- bool m_skip_x;
- bool m_skip_y;
- int16_t m_scale;
- int16_t m_hotspot_x;
- int16_t m_hotspot_y;
- bool m_dma_idle;
- uint32_t m_dma_addr[2];
- uint32_t m_ipt_val;
- uint8_t m_frame;
- uint8_t m_adc;
-
- void cpu_map(address_map &map);
- void turrett_sound_map(address_map &map);
-
- // driver_device overrides
- virtual void machine_reset() override;
- virtual void machine_start() override;
-};
-
-
-class turrett_device : public device_t,
- public device_sound_interface,
- public device_memory_interface
-{
- static const uint32_t SOUND_CHANNELS = 32;
-
-public:
- // construction/destruction
- turrett_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- uint32_t read(offs_t offset);
- void write(offs_t offset, uint32_t data);
-
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
-
- // device_sound_interface overrides
- virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
-
- // device_memory_interface overrides
- virtual space_config_vector memory_space_config() const override;
-
- const address_space_config m_space_config;
-
-private:
- memory_access<28, 1, 0, ENDIANNESS_LITTLE>::cache m_cache;
- sound_stream *m_stream;
-
- struct
- {
- uint32_t m_address;
- uint32_t m_volume;
- bool m_playing;
- } m_channels[SOUND_CHANNELS];
-
- int32_t m_volume_table[0x50];
-};
-
-// device type definition
-DECLARE_DEVICE_TYPE(TURRETT, turrett_device)
-
-#endif // MAME_INCLUDES_TURRETT_H
diff --git a/src/mame/includes/tutankhm.h b/src/mame/includes/tutankhm.h
deleted file mode 100644
index 61db8447a4d..00000000000
--- a/src/mame/includes/tutankhm.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni
-#ifndef MAME_INCLUDES_TUTANKHM_H
-#define MAME_INCLUDES_TUTANKHM_H
-
-#pragma once
-
-#include "audio/timeplt.h"
-#include "emupal.h"
-#include "machine/timer.h"
-#include "screen.h"
-
-static constexpr int GALAXIAN_XSCALE = 3;
-static constexpr XTAL GALAXIAN_MASTER_CLOCK(18.432_MHz_XTAL);
-static constexpr XTAL GALAXIAN_PIXEL_CLOCK(GALAXIAN_XSCALE*GALAXIAN_MASTER_CLOCK / 3);
-static constexpr int GALAXIAN_HTOTAL = (384 * GALAXIAN_XSCALE);
-static constexpr int GALAXIAN_HBEND = (0 * GALAXIAN_XSCALE);
-//static constexpr int GALAXIAN_H0START = (6*GALAXIAN_XSCALE)
-//static constexpr int GALAXIAN_HBSTART = (264*GALAXIAN_XSCALE)
-static constexpr int GALAXIAN_H0START = (0 * GALAXIAN_XSCALE);
-static constexpr int GALAXIAN_HBSTART = (256 * GALAXIAN_XSCALE);
-
-static constexpr int GALAXIAN_VTOTAL = (264);
-static constexpr int GALAXIAN_VBEND = (16);
-static constexpr int GALAXIAN_VBSTART = (224 + 16);
-
-class tutankhm_state : public driver_device
-{
-public:
- tutankhm_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_scroll(*this, "scroll"),
- m_mainbank(*this, "mainbank"),
- m_maincpu(*this, "maincpu"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_timeplt_audio(*this, "timeplt_audio"),
- m_stars_config(*this, "STARS")
- {
- }
-
- void tutankhm(machine_config &config);
-
-protected:
- DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
- void tutankhm_bankselect_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- void sound_on_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_tutankhm_bootleg(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tutankhm_scramble(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tutankhm(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void main_map(address_map &map);
- virtual void video_start() override;
- void galaxian_palette(palette_device &palette);
- static rgb_t raw_to_rgb_func(u32 raw);
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- optional_shared_ptr<uint8_t> m_scroll;
- required_memory_bank m_mainbank;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- uint8_t m_flipscreen_x;
- uint8_t m_flipscreen_y;
-
- /* misc */
- uint8_t m_irq_toggle;
- uint8_t m_irq_enable;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- optional_device<timeplt_audio_device> m_timeplt_audio;
- optional_ioport m_stars_config;
-
- TIMER_DEVICE_CALLBACK_MEMBER(scramble_stars_blink_timer);
- void galaxian_stars_enable_w(uint8_t data);
- void stars_init();
- void stars_init_scramble();
- void stars_init_bootleg();
- void stars_draw_row(bitmap_rgb32 &bitmap, int maxx, int y, uint32_t star_offs);
- void scramble_draw_stars(bitmap_rgb32 &bitmap, const rectangle &cliprect, int maxx);
- void scramble_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- uint8_t m_star_mode;
- rgb_t m_star_color[64];
- std::unique_ptr<uint8_t[]> m_stars;
- uint8_t m_stars_enabled;
- uint8_t m_stars_blink_state;
-};
-
-#endif // MAME_INCLUDES_TUTANKHM_H
diff --git a/src/mame/includes/twin16.h b/src/mame/includes/twin16.h
deleted file mode 100644
index 4078d1cf2cb..00000000000
--- a/src/mame/includes/twin16.h
+++ /dev/null
@@ -1,155 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-#ifndef MAME_INCLUDES_TWIN16_H
-#define MAME_INCLUDES_TWIN16_H
-
-#pragma once
-
-#include "video/bufsprite.h"
-#include "sound/upd7759.h"
-#include "sound/k007232.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class twin16_state : public driver_device
-{
-public:
- twin16_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_audiocpu(*this, "audiocpu"),
- m_k007232(*this, "k007232"),
- m_upd7759(*this, "upd"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_spriteram(*this, "spriteram"),
- m_gfxrombank(*this, "gfxrombank"),
- m_fixram(*this, "fixram"),
- m_videoram(*this, "videoram.%u", 0),
- m_zipram(*this, "zipram"),
- m_sprite_gfx_ram(*this, "sprite_gfx_ram"),
- m_gfxrom(*this, "gfxrom")
- { }
-
- void devilw(machine_config &config);
- void miaj(machine_config &config);
- void twin16(machine_config &config);
-
- void init_twin16();
-
- void volume_callback(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_twin16);
- uint32_t screen_update_twin16(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-protected:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k007232_device> m_k007232;
- required_device<upd7759_device> m_upd7759;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<buffered_spriteram16_device> m_spriteram;
- optional_memory_bank m_gfxrombank;
- required_shared_ptr<uint16_t> m_fixram;
- required_shared_ptr_array<uint16_t, 2> m_videoram;
- optional_shared_ptr<uint16_t> m_zipram;
- optional_shared_ptr<uint16_t> m_sprite_gfx_ram;
- required_region_ptr<uint16_t> m_gfxrom;
-
- uint16_t m_CPUA_register;
- uint16_t m_CPUB_register;
- bool m_is_fround;
- uint16_t m_sprite_buffer[0x800];
- emu_timer *m_sprite_timer;
- int m_sprite_busy;
- int m_need_process_spriteram;
- uint16_t m_scrollx[3];
- uint16_t m_scrolly[3];
- uint16_t m_video_register;
- tilemap_t *m_fixed_tmap;
- tilemap_t *m_scroll_tmap[2];
-
- void CPUA_register_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void CPUB_register_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t sprite_status_r();
- void video_register_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void fixram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void videoram0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void videoram1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void zipram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint8_t upd_busy_r();
- void upd_reset_w(uint8_t data);
- void upd_start_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(fix_tile_info);
- TILE_GET_INFO_MEMBER(layer0_tile_info);
- TILE_GET_INFO_MEMBER(layer1_tile_info);
-
- TIMER_CALLBACK_MEMBER(sprite_tick);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sub_map(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- virtual void tile_get_info(tile_data &tileinfo, uint16_t data, int color_base);
-
- int set_sprite_timer();
- void spriteram_process();
- void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- int spriteram_process_enable();
- void twin16_postload();
-};
-
-class fround_state : public twin16_state
-{
-public:
- fround_state(const machine_config &mconfig, device_type type, const char *tag)
- : twin16_state(mconfig, type, tag)
- {}
-
- void fround(machine_config &config);
-
- void init_fround();
-
-private:
- void fround_CPU_register_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gfx_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void fround_map(address_map &map);
-
- virtual void video_start() override;
- virtual void tile_get_info(tile_data &tileinfo, uint16_t data, int color_base) override;
-
- uint8_t m_gfx_bank[4];
-};
-
-class cuebrickj_state : public twin16_state
-{
-public:
- cuebrickj_state(const machine_config &mconfig, device_type type, const char *tag)
- : twin16_state(mconfig, type, tag)
- {}
-
- void cuebrickj(machine_config &config);
-
- void init_cuebrickj();
-
-private:
- void nvram_bank_w(uint8_t data);
-
- void cuebrickj_main_map(address_map &map);
- uint16_t m_nvram[0x400 * 0x20 / 2];
-};
-
-#endif // MAME_INCLUDES_TWIN16_H
diff --git a/src/mame/includes/twincobr.h b/src/mame/includes/twincobr.h
deleted file mode 100644
index 7785d92d0c5..00000000000
--- a/src/mame/includes/twincobr.h
+++ /dev/null
@@ -1,154 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Quench
-/***************************************************************************
- Twincobr/Flying Shark/Wardner game hardware from 1986-1987
- -----------------------------------------------------------
-****************************************************************************/
-#ifndef MAME_INCLUDES_TWINCOBR_H
-#define MAME_INCLUDES_TWINCOBR_H
-
-#pragma once
-
-#include "cpu/tms32010/tms32010.h"
-#include "machine/74259.h"
-#include "video/mc6845.h"
-#include "video/bufsprite.h"
-#include "video/toaplan_scu.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class twincobr_state : public driver_device
-{
-public:
- twincobr_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_sharedram(*this, "sharedram"),
- m_spriteram8(*this, "spriteram8"),
- m_spriteram16(*this, "spriteram16"),
- m_maincpu(*this, "maincpu"),
- m_dsp(*this, "dsp"),
- m_spritegen(*this, "scu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_mainlatch(*this, "mainlatch"),
- m_coinlatch(*this, "coinlatch")
- { }
-
- void twincobr(machine_config &config);
- void twincobrw(machine_config &config);
- void fsharkbt(machine_config &config);
- void fshark(machine_config &config);
-
- void init_twincobr();
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- optional_shared_ptr<u8> m_sharedram;
- optional_device<buffered_spriteram8_device> m_spriteram8;
- optional_device<buffered_spriteram16_device> m_spriteram16;
-
- u32 m_fg_rom_bank;
- u32 m_bg_ram_bank;
- int m_intenable;
- int m_dsp_bio;
- int m_fsharkbt_8741;
- int m_dsp_execute;
- u32 m_dsp_addr_w;
- u32 m_main_ram_seg;
- std::unique_ptr<u16[]> m_bgvideoram16;
- std::unique_ptr<u16[]> m_fgvideoram16;
- std::unique_ptr<u16[]> m_txvideoram16;
- size_t m_bgvideoram_size;
- size_t m_fgvideoram_size;
- size_t m_txvideoram_size;
- s32 m_txscrollx;
- s32 m_txscrolly;
- s32 m_fgscrollx;
- s32 m_fgscrolly;
- s32 m_bgscrollx;
- s32 m_bgscrolly;
- s32 m_txoffs;
- s32 m_fgoffs;
- s32 m_bgoffs;
- s32 m_display_on;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
-
- void twincobr_dsp_addrsel_w(u16 data);
- u16 twincobr_dsp_r();
- void twincobr_dsp_w(u16 data);
- void wardner_dsp_addrsel_w(u16 data);
- u16 wardner_dsp_r();
- void wardner_dsp_w(u16 data);
- void twincobr_dsp_bio_w(u16 data);
- u16 fsharkbt_dsp_r();
- void fsharkbt_dsp_w(u16 data);
- DECLARE_READ_LINE_MEMBER(twincobr_bio_r);
- DECLARE_WRITE_LINE_MEMBER(int_enable_w);
- DECLARE_WRITE_LINE_MEMBER(dsp_int_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_1_w);
- DECLARE_WRITE_LINE_MEMBER(coin_lockout_2_w);
- u8 twincobr_sharedram_r(offs_t offset);
- void twincobr_sharedram_w(offs_t offset, u8 data);
- void twincobr_txoffs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 twincobr_txram_r();
- void twincobr_txram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void twincobr_bgoffs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 twincobr_bgram_r();
- void twincobr_bgram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void twincobr_fgoffs_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u16 twincobr_fgram_r();
- void twincobr_fgram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void twincobr_txscroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void twincobr_bgscroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void twincobr_fgscroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void twincobr_exscroll_w(offs_t offset, u16 data);
- void wardner_txlayer_w(offs_t offset, u8 data);
- void wardner_bglayer_w(offs_t offset, u8 data);
- void wardner_fglayer_w(offs_t offset, u8 data);
- void wardner_txscroll_w(offs_t offset, u8 data);
- void wardner_bgscroll_w(offs_t offset, u8 data);
- void wardner_fgscroll_w(offs_t offset, u8 data);
- void wardner_exscroll_w(offs_t offset, u8 data);
- u8 wardner_videoram_r(offs_t offset);
- void wardner_videoram_w(offs_t offset, u8 data);
- u8 wardner_sprite_r(offs_t offset);
- void wardner_sprite_w(offs_t offset, u8 data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
- u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(twincobr_vblank_irq);
- DECLARE_WRITE_LINE_MEMBER(wardner_vblank_irq);
- void twincobr_create_tilemaps();
- DECLARE_WRITE_LINE_MEMBER(display_on_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(bg_ram_bank_w);
- DECLARE_WRITE_LINE_MEMBER(fg_rom_bank_w);
- void log_vram();
- void driver_savestate();
- required_device<cpu_device> m_maincpu;
- required_device<tms32010_device> m_dsp;
- required_device<toaplan_scu_device> m_spritegen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<ls259_device> m_mainlatch;
- required_device<ls259_device> m_coinlatch;
-
- void dsp_io_map(address_map &map);
- void dsp_program_map(address_map &map);
- void fsharkbt_i8741_io_map(address_map &map);
- void main_program_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_program_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TWINCOBR_H
diff --git a/src/mame/includes/tx0.h b/src/mame/includes/tx0.h
deleted file mode 100644
index 37eb320b803..00000000000
--- a/src/mame/includes/tx0.h
+++ /dev/null
@@ -1,340 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Raphael Nabet
-/*****************************************************************************
- *
- * includes/tx0.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_TX0_H
-#define MAME_INCLUDES_TX0_H
-
-#pragma once
-
-#include "video/crt.h"
-#include "cpu/tx0/tx0.h"
-#include "emupal.h"
-
-enum state_t
-{
- MTS_UNSELECTED,
- MTS_SELECTING,
- MTS_SELECTED,
- MTS_UNSELECTING
-};
-
-enum backspace_state_t
-{
- MTBSS_STATE0,
- MTBSS_STATE1,
- MTBSS_STATE2,
- MTBSS_STATE3,
- MTBSS_STATE4,
- MTBSS_STATE5,
- MTBSS_STATE6
-};
-
-enum state_2_t
-{
- MTRDS_STATE0,
- MTRDS_STATE1,
- MTRDS_STATE2,
- MTRDS_STATE3,
- MTRDS_STATE4,
- MTRDS_STATE5,
- MTRDS_STATE6
-};
-
-enum state_3_t
-{
- MTWTS_STATE0,
- MTWTS_STATE1,
- MTWTS_STATE2,
- MTWTS_STATE3
-};
-
-enum irg_pos_t
-{
- MTIRGP_START,
- MTIRGP_ENDMINUS1,
- MTIRGP_END
-};
-
-
-
-/* tape reader registers */
-struct tx0_tape_reader_t
-{
- device_image_interface *fd; /* file descriptor of tape image */
-
- int motor_on; /* 1-bit reader motor on */
-
- int rcl; /* 1-bit reader clutch */
- int rc; /* 2-bit reader counter */
-
- emu_timer *timer; /* timer to simulate reader timing */
-};
-
-
-
-/* tape puncher registers */
-struct tape_puncher_t
-{
- device_image_interface *fd; /* file descriptor of tape image */
-
- emu_timer *timer; /* timer to generate completion pulses */
-};
-
-
-
-/* typewriter registers */
-struct tx0_typewriter_t
-{
- device_image_interface *fd; /* file descriptor of output image */
-
- emu_timer *prt_timer;/* timer to generate completion pulses */
-};
-
-
-/* magnetic tape unit registers */
-struct magtape_t
-{
- device_image_interface *img; /* image descriptor */
-
- state_t state;
-
- int command;
- int binary_flag;
-
- union
- {
- backspace_state_t backspace_state;
- struct
- {
- state_2_t state;
- int space_flag;
- } read;
- struct
- {
- state_3_t state;
- int counter;
- } write;
- } u;
-
- int sel_pending;
- int cpy_pending;
-
- irg_pos_t irg_pos; /* position relative to inter-record gap */
-
- int long_parity;
-
- emu_timer *timer; /* timer to simulate reader timing */
-};
-
-
-class tx0_state : public driver_device
-{
-public:
- tx0_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_crt(*this, "crt"),
- m_csw(*this, "CSW"),
- m_twr(*this, "TWR.%u", 0)
- { }
-
- void tx0_64kw(machine_config &config);
- void tx0_8kw(machine_config &config);
-
- void init_tx0();
-
- required_device<tx0_device> m_maincpu;
- tx0_tape_reader_t m_tape_reader;
- tape_puncher_t m_tape_puncher;
- tx0_typewriter_t m_typewriter;
- emu_timer *m_dis_timer;
- magtape_t m_magtape;
-
- void schedule_select();
- void schedule_unselect();
-
-protected:
- int m_old_typewriter_keys[4];
- int m_old_control_keys;
- int m_old_tsr_keys;
- int m_tsr_index;
- int m_typewriter_color;
- bitmap_ind16 m_panel_bitmap;
- bitmap_ind16 m_typewriter_bitmap;
- int m_pos;
- int m_case_shift;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void tx0_palette(palette_device &palette) const;
- uint32_t screen_update_tx0(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_tx0);
- INTERRUPT_GEN_MEMBER(tx0_interrupt);
- TIMER_CALLBACK_MEMBER(reader_callback);
- TIMER_CALLBACK_MEMBER(puncher_callback);
- TIMER_CALLBACK_MEMBER(prt_callback);
- TIMER_CALLBACK_MEMBER(dis_callback);
- void tx0_machine_stop();
- inline void tx0_plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color);
- void tx0_plot(int x, int y);
- void tx0_draw_led(bitmap_ind16 &bitmap, int x, int y, int state);
- void tx0_draw_multipleled(bitmap_ind16 &bitmap, int x, int y, int value, int nb_bits);
- void tx0_draw_switch(bitmap_ind16 &bitmap, int x, int y, int state);
- void tx0_draw_multipleswitch(bitmap_ind16 &bitmap, int x, int y, int value, int nb_bits);
- void tx0_draw_char(bitmap_ind16 &bitmap, char character, int x, int y, int color);
- void tx0_draw_string(bitmap_ind16 &bitmap, const char *buf, int x, int y, int color);
- void tx0_draw_vline(bitmap_ind16 &bitmap, int x, int y, int height, int color);
- void tx0_draw_panel_backdrop(bitmap_ind16 &bitmap);
- void tx0_draw_panel(bitmap_ind16 &bitmap);
- void tx0_typewriter_linefeed();
- void tx0_typewriter_drawchar(int character);
- int tape_read(uint8_t *reply);
- void tape_write(uint8_t data);
- void begin_tape_read(int binary);
- void typewriter_out(uint8_t data);
-
- void tx0_keyboard();
- DECLARE_WRITE_LINE_MEMBER(tx0_io_cpy);
- DECLARE_WRITE_LINE_MEMBER(tx0_io_r1l);
- DECLARE_WRITE_LINE_MEMBER(tx0_io_r3l);
- DECLARE_WRITE_LINE_MEMBER(tx0_io_p6h);
- DECLARE_WRITE_LINE_MEMBER(tx0_io_p7h);
- DECLARE_WRITE_LINE_MEMBER(tx0_io_prt);
- DECLARE_WRITE_LINE_MEMBER(tx0_io_dis);
- DECLARE_WRITE_LINE_MEMBER(tx0_sel);
- DECLARE_WRITE_LINE_MEMBER(tx0_io_reset_callback);
- void magtape_callback();
-
- void tx0_64kw_map(address_map &map);
- void tx0_8kw_map(address_map &map);
-
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<crt_device> m_crt;
- required_ioport m_csw;
- required_ioport_array<4> m_twr;
-};
-
-/* defines for each bit and mask in input port "CSW" */
-enum
-{
- /* bit numbers */
- tx0_control_bit = 0,
-
- tx0_stop_c0_bit = 1,
- tx0_stop_c1_bit = 2,
- tx0_gbl_cm_sel_bit = 3,
- tx0_stop_bit = 4,
- tx0_restart_bit = 5,
- tx0_read_in_bit = 6,
-
- tx0_toggle_dn_bit = 12,
- tx0_toggle_up_bit = 13,
- tx0_cm_sel_bit = 14,
- tx0_lr_sel_bit = 15,
-
- /* masks */
- tx0_control = (1 << tx0_control_bit),
-
- tx0_stop_cyc0 = (1 << tx0_stop_c0_bit),
- tx0_stop_cyc1 = (1 << tx0_stop_c1_bit),
- tx0_gbl_cm_sel = (1 << tx0_gbl_cm_sel_bit),
- tx0_stop = (1 << tx0_stop_bit),
- tx0_restart = (1 << tx0_restart_bit),
- tx0_read_in = (1 << tx0_read_in_bit),
-
- tx0_toggle_dn = (1 << tx0_toggle_dn_bit),
- tx0_toggle_up = (1 << tx0_toggle_up_bit),
- tx0_cm_sel = (1 << tx0_cm_sel_bit),
- tx0_lr_sel = (1 << tx0_lr_sel_bit)
-};
-
-/* defines for our font */
-enum
-{
- tx0_charnum = /*96*/128, /* ASCII set + xx special characters */
- /* for whatever reason, 96 breaks some characters */
-
- tx0_fontdata_size = 8 * tx0_charnum
-};
-
-enum
-{
- /* size and position of crt window */
- crt_window_width = /*511*/512,
- crt_window_height = /*511*/512,
- crt_window_offset_x = 0,
- crt_window_offset_y = 0,
- /* size and position of operator control panel window */
- panel_window_width = 272,
- panel_window_height = 264,
- panel_window_offset_x = crt_window_width,
- panel_window_offset_y = 0,
- /* size and position of typewriter window */
- typewriter_window_width = 640,
- typewriter_window_height = 160,
- typewriter_window_offset_x = 0,
- typewriter_window_offset_y = crt_window_height
-};
-
-enum
-{
- total_width = crt_window_width + panel_window_width,
- total_height = crt_window_height + typewriter_window_height,
-
- /* respect 4:3 aspect ratio to keep pixels square */
- virtual_width_1 = ((total_width+3)/4)*4,
- virtual_height_1 = ((total_height+2)/3)*3,
- virtual_width_2 = virtual_height_1*4/3,
- virtual_height_2 = virtual_width_1*3/4,
- virtual_width = (virtual_width_1 > virtual_width_2) ? virtual_width_1 : virtual_width_2,
- virtual_height = (virtual_height_1 > virtual_height_2) ? virtual_height_1 : virtual_height_2
-};
-
-enum
-{ /* refresh rate in Hz: can be changed at will */
- refresh_rate = 60
-};
-
-/* Color codes */
-enum
-{
- /* first pen_crt_num_levels colors used for CRT (with remanence) */
- pen_crt_num_levels = 69,
- pen_crt_max_intensity = pen_crt_num_levels-1,
-
- /* next colors used for control panel and typewriter */
- pen_black = pen_crt_num_levels,
- pen_white,
- pen_green,
- pen_dk_green,
- pen_red,
- pen_lt_gray,
-
- /* color constants for control panel */
- pen_panel_bg = pen_black,
- pen_panel_caption = pen_white,
- color_panel_caption = 0,
- pen_switch_nut = pen_lt_gray,
- pen_switch_button = pen_white,
- pen_lit_lamp = pen_green,
- pen_unlit_lamp = pen_dk_green,
-
- /* color constants for typewriter */
- pen_typewriter_bg = pen_white,
- color_typewriter_black = 1, /* palette 1 = black on white */
- color_typewriter_red = 2, /* palette 2 = red on white */
-
- /* color constants used for light pen */
- pen_lightpen_nonpressed = pen_red,
- pen_lightpen_pressed = pen_green
-};
-
-
-#endif // MAME_INCLUDES_TX0_H
diff --git a/src/mame/includes/tx1.h b/src/mame/includes/tx1.h
deleted file mode 100644
index 50273bca170..00000000000
--- a/src/mame/includes/tx1.h
+++ /dev/null
@@ -1,246 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Philip Bennett
-/*************************************************************************
-
- TX-1/Buggy Boy hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_TX1_H
-#define MAME_INCLUDES_TX1_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-#include "audio/tx1.h"
-
-#define TX1_PIXEL_CLOCK (XTAL(18'000'000) / 3)
-#define TX1_HBSTART 256
-#define TX1_HBEND 0
-#define TX1_HTOTAL 384
-#define TX1_VBSTART 240
-#define TX1_VBEND 0
-#define TX1_VTOTAL 264
-
-/*
- * HACK! Increased VTOTAL to 'fix' a timing issue
- * that prevents one of the start countdown tones
- * from playing.
- */
-#define BB_PIXEL_CLOCK (XTAL(18'000'000) / 3)
-#define BB_HBSTART 256
-#define BB_HBEND 0
-#define BB_HTOTAL 384
-#define BB_VBSTART 240
-#define BB_VBEND 0
-#define BB_VTOTAL 288 + 1
-
-#define CPU_MASTER_CLOCK (XTAL(15'000'000))
-#define BUGGYBOY_ZCLK (CPU_MASTER_CLOCK / 2)
-
-
-class tx1_state : public driver_device
-{
-public:
- tx1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_mathcpu(*this, "math_cpu"),
- m_maincpu(*this, "main_cpu"),
- m_math_ram(*this, "math_ram"),
- m_vram(*this, "vram"),
- m_objram(*this, "objram"),
- m_rcram(*this, "rcram"),
- m_char_tiles(*this, "char_tiles"),
- m_obj_tiles(*this, "obj_tiles"),
- m_road_rom(*this, "road"),
- m_obj_map(*this, "obj_map"),
- m_obj_luts(*this, "obj_luts"),
- m_proms(*this, "proms"),
- m_screen(*this, "screen"),
- m_sound(*this, "soundbrd")
- { }
-
- void tx1(machine_config &config);
- void tx1j(machine_config &config);
- void buggyboy(machine_config &config);
- void buggybjr(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
-private:
- struct math_t
- {
- uint16_t cpulatch;
- uint16_t promaddr;
- uint16_t inslatch;
- uint32_t mux;
- uint16_t ppshift;
- uint32_t i0ff;
- uint16_t retval;
- uint16_t muxlatch; // TX-1
- int dbgaddr;
- int dbgpc;
-
- uint16_t get_datarom_addr() const;
- uint16_t get_bb_datarom_addr() const;
- };
-
- // SN74S516 16x16 Multiplier/Divider
- class sn74s516_t
- {
- public:
- int16_t X;
- int16_t Y;
-
- union
- {
-#ifdef LSB_FIRST
- struct { uint16_t W; int16_t Z; } as16bit;
-#else
- struct { int16_t Z; uint16_t W; } as16bit;
-#endif
- int32_t ZW32;
- } ZW;
-
- int code;
- int state;
- int ZWfl;
-
- void kick(running_machine &machine, math_t &math, uint16_t *data, int ins);
-
- private:
- void multiply(running_machine &machine);
- void divide(running_machine &machine);
- void update(running_machine &machine, int ins);
- };
-
- struct vregs_t
- {
- uint16_t scol; /* Road colours */
- uint32_t slock; /* Scroll lock */
- uint8_t flags; /* Road flags */
-
- uint32_t ba_val; /* Accumulator */
- uint32_t ba_inc;
- uint32_t bank_mode;
-
- uint16_t h_val; /* Accumulator */
- uint16_t h_inc;
- uint16_t h_init;
-
- uint8_t slin_val; /* Accumulator */
- uint8_t slin_inc;
-
- /* Buggyboy only */
- uint8_t wa8;
- uint8_t wa4;
-
- uint16_t wave_lfsr;
- uint8_t sky;
- uint16_t gas;
- uint8_t shift;
- };
-
- math_t m_math;
- sn74s516_t m_sn74s516;
-
- required_device<cpu_device> m_mathcpu;
-
- required_device<cpu_device> m_maincpu;
- required_shared_ptr<uint16_t> m_math_ram;
- required_shared_ptr<uint16_t> m_vram;
- required_shared_ptr<uint16_t> m_objram;
- required_shared_ptr<uint16_t> m_rcram;
-
- required_region_ptr<uint8_t> m_char_tiles;
- required_region_ptr<uint8_t> m_obj_tiles;
- required_region_ptr<uint8_t> m_road_rom;
- required_region_ptr<uint8_t> m_obj_map;
- required_region_ptr<uint8_t> m_obj_luts;
- required_region_ptr<uint8_t> m_proms;
-
- required_device<screen_device> m_screen;
- required_device<tx1_sound_device> m_sound;
-
- emu_timer *m_interrupt_timer;
-
- vregs_t m_vregs;
- std::unique_ptr<uint8_t[]> m_chr_bmp;
- std::unique_ptr<uint8_t[]> m_obj_bmp;
- std::unique_ptr<uint8_t[]> m_rod_bmp;
- std::unique_ptr<bitmap_ind16> m_bitmap;
-
- bool m_needs_update;
-
- void kick_sn74s516(uint16_t *data, int ins);
- void tx1_update_state();
- void buggyboy_update_state();
-
- uint16_t tx1_math_r(offs_t offset);
- void tx1_math_w(offs_t offset, uint16_t data);
- uint16_t tx1_spcs_rom_r(offs_t offset);
- uint16_t tx1_spcs_ram_r(offs_t offset);
- void tx1_spcs_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t buggyboy_math_r(offs_t offset);
- void buggyboy_math_w(offs_t offset, uint16_t data);
- uint16_t buggyboy_spcs_rom_r(offs_t offset);
- void buggyboy_spcs_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t buggyboy_spcs_ram_r(offs_t offset);
- uint16_t tx1_crtc_r();
- void tx1_crtc_w(offs_t offset, uint16_t data);
- void tx1_bankcs_w(offs_t offset, uint16_t data);
- void tx1_slincs_w(offs_t offset, uint16_t data);
- void tx1_slock_w(uint16_t data);
- void tx1_scolst_w(uint16_t data);
- void tx1_flgcs_w(uint16_t data);
- void buggyboy_gas_w(offs_t offset, uint16_t data);
- void buggyboy_sky_w(uint16_t data);
- void buggyboy_scolst_w(uint16_t data);
- void resume_math_w(uint16_t data);
- void halt_math_w(uint16_t data);
- u16 dipswitches_r();
- DECLARE_VIDEO_START(tx1);
- void tx1_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(buggyboy);
- void buggyboy_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(buggybjr);
-
- void tx1_draw_char(uint8_t *bitmap);
- void tx1_draw_road_pixel(int screen, uint8_t *bmpaddr,
- uint8_t apix[3], uint8_t bpix[3], uint32_t pixnuma, uint32_t pixnumb,
- uint8_t stl, uint8_t sld, uint8_t selb,
- uint8_t bnk, uint8_t rorev, uint8_t eb, uint8_t r, uint8_t delr);
- void tx1_draw_road(uint8_t *bitmap);
- void tx1_draw_objects(uint8_t *bitmap);
- void tx1_update_layers();
- void tx1_combine_layers(bitmap_ind16 &bitmap, int screen);
-
- void buggyboy_draw_char(uint8_t *bitmap, bool wide);
- void buggyboy_get_roadpix(int screen, int ls161, uint8_t rva0_6, uint8_t sld, uint32_t *_rorev,
- uint8_t *rc0, uint8_t *rc1, uint8_t *rc2, uint8_t *rc3);
- void buggyboy_draw_road(uint8_t *bitmap);
- void buggybjr_draw_road(uint8_t *bitmap);
- void buggyboy_draw_objs(uint8_t *bitmap, bool wide);
- void bb_combine_layers(bitmap_ind16 &bitmap, int screen);
- void bb_update_layers();
-
- uint32_t screen_update_tx1_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tx1_middle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_tx1_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_buggyboy_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_buggyboy_middle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_buggyboy_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_buggybjr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_tx1);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_buggyboy);
- TIMER_CALLBACK_MEMBER(interrupt_callback);
-
- void buggybjr_main(address_map &map);
- void buggyboy_main(address_map &map);
- void buggyboy_math(address_map &map);
- void tx1_main(address_map &map);
- void tx1_math(address_map &map);
-};
-
-#endif // MAME_INCLUDES_TX1_H
diff --git a/src/mame/includes/ultraman.h b/src/mame/includes/ultraman.h
deleted file mode 100644
index 70c2de1c629..00000000000
--- a/src/mame/includes/ultraman.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-/*************************************************************************
-
- Ultraman
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ULTRAMAN_H
-#define MAME_INCLUDES_ULTRAMAN_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/input_merger.h"
-#include "video/k051960.h"
-#include "video/k051316.h"
-#include "video/konami_helper.h"
-
-class ultraman_state : public driver_device
-{
-public:
- ultraman_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_k051316(*this, "k051316_%u", 1)
- , m_k051960(*this, "k051960")
- , m_soundlatch(*this, "soundlatch")
- , m_soundnmi(*this, "soundnmi")
- {
- }
-
- void ultraman(machine_config &config);
-
-private:
- int m_bank[3];
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device_array<k051316_device, 3> m_k051316;
- required_device<k051960_device> m_k051960;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<input_merger_device> m_soundnmi;
-
- void sound_nmi_enable_w(uint8_t data);
- void ultraman_gfxctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint32_t screen_update_ultraman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- K051316_CB_MEMBER(zoom_callback_1);
- K051316_CB_MEMBER(zoom_callback_2);
- K051316_CB_MEMBER(zoom_callback_3);
- K051960_CB_MEMBER(sprite_callback);
- void main_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ULTRAMAN_H
diff --git a/src/mame/includes/ultratnk.h b/src/mame/includes/ultratnk.h
deleted file mode 100644
index 1ed8cc35ac5..00000000000
--- a/src/mame/includes/ultratnk.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino, Stefan Jokisch
-/*************************************************************************
-
- Atari Ultra Tank hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ULTRATNK_H
-#define MAME_INCLUDES_ULTRATNK_H
-
-#pragma once
-
-#include "machine/watchdog.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class ultratnk_state : public driver_device
-{
-public:
- ultratnk_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_joy(*this, "JOY-%c", 'W')
- { }
-
- template <int N> DECLARE_READ_LINE_MEMBER(collision_flipflop_r);
- template <int N> DECLARE_READ_LINE_MEMBER(joystick_r);
- void ultratnk(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- enum
- {
- TIMER_NMI
- };
-
- uint8_t wram_r(offs_t offset);
- uint8_t analog_r(offs_t offset);
- uint8_t coin_r(offs_t offset);
- uint8_t collision_r(offs_t offset);
- uint8_t options_r(offs_t offset);
- void wram_w(offs_t offset, uint8_t data);
- void collision_reset_w(offs_t offset, uint8_t data);
- void da_latch_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(lockout_w);
- void video_ram_w(offs_t offset, uint8_t data);
- void attract_w(uint8_t data);
- void explosion_w(uint8_t data);
-
- void ultratnk_palette(palette_device &palette) const;
-
- TILE_GET_INFO_MEMBER(tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- TIMER_CALLBACK_MEMBER(nmi_callback);
-
- void ultratnk_cpu_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
-
- required_ioport_array<4> m_joy;
-
- int m_da_latch;
- int m_collision[4];
- tilemap_t* m_playfield;
- bitmap_ind16 m_helper;
- emu_timer *m_nmi_timer;
-};
-
-#endif // MAME_INCLUDES_ULTRATNK_H
diff --git a/src/mame/includes/undrfire.h b/src/mame/includes/undrfire.h
deleted file mode 100644
index 84fbf0a166c..00000000000
--- a/src/mame/includes/undrfire.h
+++ /dev/null
@@ -1,104 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, David Graves
-#ifndef MAME_INCLUDES_UNDRFIRE_H
-#define MAME_INCLUDES_UNDRFIRE_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "video/tc0100scn.h"
-#include "video/tc0360pri.h"
-#include "video/tc0480scp.h"
-#include "emupal.h"
-
-class undrfire_state : public driver_device
-{
-public:
- undrfire_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_tc0620scc(*this, "tc0620scc"),
- m_tc0480scp(*this, "tc0480scp"),
- m_tc0360pri(*this, "tc0360pri"),
- m_eeprom(*this, "eeprom"),
- m_ram(*this, "ram"),
- m_shared_ram(*this, "shared_ram"),
- m_spriteram(*this, "spriteram"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_spritemap(*this, "spritemap"),
- m_spritemaphi(*this, "spritemaphi"),
- m_in_gunx(*this, "GUNX%u", 1U),
- m_in_guny(*this, "GUNY%u", 1U),
- m_io_fake(*this, "FAKE")
- { }
-
- void undrfire(machine_config &config);
- void cbombers(machine_config &config);
-
-protected:
- enum
- {
- TIMER_INTERRUPT5
- };
-
- virtual void video_start() override;
-
-private:
- struct uf_tempsprite
- {
- u8 gfx;
- u32 code,color;
- bool flipx,flipy;
- int x,y;
- int zoomx,zoomy;
- u32 primask;
- };
-
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_subcpu;
- required_device<tc0620scc_device> m_tc0620scc;
- required_device<tc0480scp_device> m_tc0480scp;
- optional_device<tc0360pri_device> m_tc0360pri; // cbombers
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- optional_shared_ptr<u32> m_ram;
- optional_shared_ptr<u16> m_shared_ram;
- u16 m_port_sel;
- int m_frame_counter;
- std::unique_ptr<uf_tempsprite[]> m_spritelist;
- u16 m_rotate_ctrl[8];
-#ifdef MAME_DEBUG
- u8 m_dislayer[6] = { 0, 0, 0, 0, 0, 0 };
-#endif
- required_shared_ptr<u32> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_region_ptr<u16> m_spritemap;
- optional_region_ptr<u8> m_spritemaphi;
-
- optional_ioport_array<2> m_in_gunx;
- optional_ioport_array<2> m_in_guny;
- optional_ioport m_io_fake;
-
- void coin_word_w(u8 data);
- u16 shared_ram_r(offs_t offset);
- void shared_ram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- u32 undrfire_lightgun_r(offs_t offset);
- void rotate_control_w(offs_t offset, u16 data);
- void motor_control_w(u8 data);
- void cbombers_cpua_ctrl_w(u32 data);
- DECLARE_READ_LINE_MEMBER(frame_counter_r);
- u32 screen_update_undrfire(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_cbombers(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(undrfire_interrupt);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,const u32 *primasks,int x_offs,int y_offs);
- void draw_sprites_cbombers(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect,const u8* pritable,int x_offs,int y_offs);
-
- void cbombers_cpua_map(address_map &map);
- void cbombers_cpub_map(address_map &map);
- void undrfire_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_UNDRFIRE_H
diff --git a/src/mame/includes/unico.h b/src/mame/includes/unico.h
deleted file mode 100644
index 282bcc7f045..00000000000
--- a/src/mame/includes/unico.h
+++ /dev/null
@@ -1,126 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_UNICO_H
-#define MAME_INCLUDES_UNICO_H
-
-#pragma once
-
-#include "sound/okim6295.h"
-#include "machine/eepromser.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class unico_state : public driver_device
-{
-public:
- unico_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_palette(*this, "palette"),
- m_gfxdecode(*this, "gfxdecode"),
- m_oki(*this, "oki"),
- m_leds(*this, "led%u", 0U),
- m_vram(*this, "vram", 0xc000, ENDIANNESS_BIG),
- m_scroll(*this, "scroll", 22, ENDIANNESS_BIG),
- m_spriteram(*this, "spriteram", 0x800, ENDIANNESS_BIG)
- { }
-
- void burglarx(machine_config &config);
-
-protected:
- static rgb_t unico_R6G6B6X(uint32_t raw);
- uint16_t vram_r(offs_t offset);
- void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t scroll_r(offs_t offset);
- void scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t spriteram_r(offs_t offset);
- void spriteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void burglarx_okibank_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- void burglarx_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_device<okim6295_device> m_oki;
- output_finder<2> m_leds;
-
-private:
- memory_share_creator<uint16_t> m_vram;
- memory_share_creator<uint16_t> m_scroll;
- tilemap_t *m_tilemap[3];
- int m_sprites_scrolldx;
- int m_sprites_scrolldy;
- memory_share_creator<uint16_t> m_spriteram;
-};
-
-class zeropnt_state : public unico_state
-{
-public:
- zeropnt_state(const machine_config &mconfig, device_type type, const char *tag) :
- unico_state(mconfig, type, tag),
- m_okibank(*this, "okibank"),
- m_screen(*this, "screen"),
- m_gun_axes(*this, { "Y0", "X0", "Y1", "X1" })
- { }
-
- void zeropnt(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- void zeropnt_okibank_leds_w(uint8_t data);
- uint16_t gunx_0_msb_r();
- uint16_t guny_0_msb_r();
- uint16_t gunx_1_msb_r();
- uint16_t guny_1_msb_r();
-
- required_memory_bank m_okibank;
-
- required_device<screen_device> m_screen;
-
- void zeropnt_map(address_map &map);
- void zeropnt_oki_map(address_map &map);
-
-private:
- enum { Y0, X0, Y1, X1 }; // gun axis indices
-
- required_ioport_array<4> m_gun_axes;
-};
-
-class zeropnt2_state : public zeropnt_state
-{
-public:
- zeropnt2_state(const machine_config &mconfig, device_type type, const char *tag) :
- zeropnt_state(mconfig, type, tag),
- m_eeprom(*this, "eeprom")
- { }
-
- void zeropnt2(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- uint32_t zeropnt2_gunx_0_msb_r();
- uint32_t zeropnt2_guny_0_msb_r();
- uint32_t zeropnt2_gunx_1_msb_r();
- uint32_t zeropnt2_guny_1_msb_r();
- void zeropnt2_okibank(uint8_t data);
- void leds_w(uint8_t data);
-
- void eeprom_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
- void zeropnt2_map(address_map &map);
-
-private:
- required_device<eeprom_serial_93cxx_device> m_eeprom;
-};
-
-#endif // MAME_INCLUDES_UNICO_H
diff --git a/src/mame/includes/usgames.h b/src/mame/includes/usgames.h
deleted file mode 100644
index 1f6c697d5ac..00000000000
--- a/src/mame/includes/usgames.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood, Nicola Salmoria
-#ifndef MAME_INCLUDES_USGAMES_H
-#define MAME_INCLUDES_USGAMES_H
-
-#pragma once
-
-#include "emupal.h"
-#include "video/mc6845.h"
-
-class usgames_state : public driver_device
-{
-public:
- usgames_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_videoram(*this, "videoram"),
- m_charram(*this, "charram"),
- m_leds(*this, "led%u", 0U),
- m_palette(*this, "palette")
- { }
-
- void usg32(machine_config &config);
- void usg185(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_charram;
-
- output_finder<5> m_leds;
- required_device<palette_device> m_palette;
-
- void rombank_w(uint8_t data);
- void lamps1_w(uint8_t data);
- void lamps2_w(uint8_t data);
- void charram_w(offs_t offset, uint8_t data);
-
- void usgames_palette(palette_device &palette) const;
-
- void usg185_map(address_map &map);
- void usgames_map(address_map &map);
- MC6845_UPDATE_ROW(update_row);
-};
-
-#endif // MAME_INCLUDES_USGAMES_H
diff --git a/src/mame/includes/ut88.h b/src/mame/includes/ut88.h
deleted file mode 100644
index 2e3edd16491..00000000000
--- a/src/mame/includes/ut88.h
+++ /dev/null
@@ -1,127 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/ut88.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_UT88_H
-#define MAME_INCLUDES_UT88_H
-
-#pragma once
-
-#include "cpu/i8085/i8085.h"
-#include "sound/dac.h"
-#include "machine/i8255.h"
-#include "imagedev/cassette.h"
-#include "machine/timer.h"
-#include "emupal.h"
-
-class ut88_common : public driver_device
-{
-public:
- ut88_common(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_cassette(*this, "cassette")
- , m_io_line0(*this, "LINE0")
- , m_io_line1(*this, "LINE1")
- , m_io_line2(*this, "LINE2")
- {
- }
-
-protected:
- uint8_t tape_r();
-
- required_device<cpu_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_ioport m_io_line0;
- required_ioport m_io_line1;
- required_ioport m_io_line2;
-};
-
-class ut88_state : public ut88_common
-{
-public:
- ut88_state(const machine_config &mconfig, device_type type, const char *tag)
- : ut88_common(mconfig, type, tag)
- , m_ppi(*this, "ppi")
- , m_dac(*this, "dac")
- , m_vram(*this, "videoram")
- , m_rom(*this, "maincpu")
- , m_ram(*this, "mainram")
- , m_io_line3(*this, "LINE3")
- , m_io_line4(*this, "LINE4")
- , m_io_line5(*this, "LINE5")
- , m_io_line6(*this, "LINE6")
- , m_io_line7(*this, "LINE7")
- , m_io_line8(*this, "LINE8")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- { }
-
- void ut88(machine_config &config);
-
-private:
- void machine_start() override;
- void machine_reset() override;
- uint8_t keyboard_r(offs_t offset);
- void keyboard_w(offs_t offset, uint8_t data);
- void sound_w(uint8_t data);
- uint8_t ppi_portb_r();
- uint8_t ppi_portc_r();
- void ppi_porta_w(uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void io_map(address_map &map);
- void mem_map(address_map &map);
-
- int m_keyboard_mask;
-
- memory_passthrough_handler *m_rom_shadow_tap;
- required_device<i8255_device> m_ppi;
- required_device<dac_bit_interface> m_dac;
- required_shared_ptr<uint8_t> m_vram;
- required_region_ptr<u8> m_rom;
- required_shared_ptr<u8> m_ram;
- required_ioport m_io_line3;
- required_ioport m_io_line4;
- required_ioport m_io_line5;
- required_ioport m_io_line6;
- required_ioport m_io_line7;
- required_ioport m_io_line8;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-};
-
-class ut88mini_state : public ut88_common
-{
-public:
- ut88mini_state(const machine_config &mconfig, device_type type, const char *tag)
- : ut88_common(mconfig, type, tag)
- , m_proms(*this, "proms")
- , m_digits(*this, "digit%u", 0U)
- { }
-
- void ut88mini(machine_config &config);
-
-private:
- void machine_start() override;
- void machine_reset() override;
- TIMER_DEVICE_CALLBACK_MEMBER(display_timer);
-
- void io_map(address_map &map);
- void mem_map(address_map &map);
-
- uint8_t keyboard_r();
- void led_w(offs_t offset, uint8_t data);
-
- required_memory_region m_proms;
-
- int m_lcd_digit[6];
- output_finder<6> m_digits;
-};
-
-
-#endif // MAME_INCLUDES_UT88_H
diff --git a/src/mame/includes/v1050.h b/src/mame/includes/v1050.h
deleted file mode 100644
index 19b16368c74..00000000000
--- a/src/mame/includes/v1050.h
+++ /dev/null
@@ -1,238 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_V1050_H
-#define MAME_INCLUDES_V1050_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "cpu/m6502/m6502.h"
-#include "bus/centronics/ctronics.h"
-#include "bus/scsi/s1410.h"
-#include "imagedev/floppy.h"
-#include "machine/clock.h"
-#include "machine/i8214.h"
-#include "machine/i8251.h"
-#include "machine/i8255.h"
-#include "machine/msm58321.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "bus/scsi/scsi.h"
-#include "bus/scsi/scsihd.h"
-#include "machine/v1050kb.h"
-#include "machine/wd_fdc.h"
-#include "video/mc6845.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-
-#define Z80_TAG "u80"
-#define UPB8214_TAG "u38"
-#define I8255A_DISP_TAG "u79"
-#define I8255A_MISC_TAG "u10"
-#define I8255A_RTC_TAG "u36"
-#define I8251A_KB_TAG "u85"
-#define I8251A_SIO_TAG "u8"
-#define MSM58321RS_TAG "u26"
-#define MB8877_TAG "u13"
-#define FDC9216_TAG "u25"
-#define M6502_TAG "u76"
-#define I8255A_M6502_TAG "u101"
-#define H46505_TAG "u75"
-#define CENTRONICS_TAG "centronics"
-#define CLOCK_KB_TAG "keyboard_clock"
-#define CLOCK_SIO_TAG "sio_clock"
-#define TIMER_ACK_TAG "timer_ack"
-#define TIMER_RST_TAG "timer_rst"
-#define SASIBUS_TAG "sasi"
-#define RS232_TAG "rs232"
-#define V1050_KEYBOARD_TAG "v1050kb"
-
-#define V1050_VIDEORAM_SIZE 0x8000
-#define V1050_VIDEORAM_MASK 0x7fff
-
-#define INT_RS_232 0
-#define INT_WINCHESTER 1
-#define INT_KEYBOARD 2
-#define INT_FLOPPY 3
-#define INT_VSYNC 4
-#define INT_DISPLAY 5
-#define INT_EXPANSION_B 6
-#define INT_EXPANSION_A 7
-
-class v1050_state : public driver_device
-{
-public:
- v1050_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_subcpu(*this, M6502_TAG),
- m_pic(*this, UPB8214_TAG),
- m_ppi_disp(*this, I8255A_DISP_TAG),
- m_ppi_6502(*this, I8255A_M6502_TAG),
- m_rtc(*this, MSM58321RS_TAG),
- m_uart_kb(*this, I8251A_KB_TAG),
- m_uart_sio(*this, I8251A_SIO_TAG),
- m_fdc(*this, MB8877_TAG),
- m_crtc(*this, H46505_TAG),
- m_palette(*this, "palette"),
- m_centronics(*this, CENTRONICS_TAG),
- m_ram(*this, RAM_TAG),
- m_floppy0(*this, MB8877_TAG":0"),
- m_floppy1(*this, MB8877_TAG":1"),
- m_floppy2(*this, MB8877_TAG":2"),
- m_floppy3(*this, MB8877_TAG":3"),
- m_clock_sio(*this, CLOCK_SIO_TAG),
- m_timer_ack(*this, TIMER_ACK_TAG),
- m_timer_rst(*this, TIMER_RST_TAG),
- m_sasibus(*this, SASIBUS_TAG),
- m_sasi_data_out(*this, "scsi_data_out"),
- m_sasi_data_in(*this, "scsi_data_in"),
- m_sasi_ctrl_in(*this, "scsi_ctrl_in"),
- m_rom(*this, Z80_TAG),
- m_video_ram(*this, "video_ram"),
- m_attr_ram(*this, "attr_ram", V1050_VIDEORAM_SIZE, ENDIANNESS_LITTLE),
- m_int_mask(0),
- m_int_state(0),
- m_fdc_irq(0),
- m_fdc_drq(0),
- m_rtc_ppi_pa(0),
- m_rtc_ppi_pc(0)
- {
- }
-
- void v1050(machine_config &config);
- void v1050_video(machine_config &config);
-
-private:
- uint8_t kb_data_r();
- uint8_t kb_status_r();
- void v1050_i8214_w(uint8_t data);
- uint8_t vint_clr_r();
- void vint_clr_w(uint8_t data);
- uint8_t dint_clr_r();
- void dint_clr_w(uint8_t data);
- void bank_w(uint8_t data);
- void dint_w(uint8_t data);
- void dvint_clr_w(uint8_t data);
- void misc_ppi_pa_w(uint8_t data);
- void misc_ppi_pc_w(uint8_t data);
- uint8_t rtc_ppi_pa_r();
- void rtc_ppi_pa_w(uint8_t data);
- void rtc_ppi_pb_w(uint8_t data);
- uint8_t rtc_ppi_pc_r();
- void rtc_ppi_pc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( kb_rxrdy_w );
- DECLARE_WRITE_LINE_MEMBER( sio_rxrdy_w );
- DECLARE_WRITE_LINE_MEMBER( sio_txrdy_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_intrq_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
- uint8_t attr_r();
- void attr_w(uint8_t data);
- uint8_t videoram_r(offs_t offset);
- void videoram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( crtc_vs_w );
- void sasi_data_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(write_sasi_io);
- void sasi_ctrl_w(uint8_t data);
-
- WRITE_LINE_MEMBER( rtc_ppi_pa_0_w ){ m_rtc_ppi_pa = (m_rtc_ppi_pa & ~(1 << 0)) | ((state & 1) << 0); }
- WRITE_LINE_MEMBER( rtc_ppi_pa_1_w ){ m_rtc_ppi_pa = (m_rtc_ppi_pa & ~(1 << 1)) | ((state & 1) << 1); }
- WRITE_LINE_MEMBER( rtc_ppi_pa_2_w ){ m_rtc_ppi_pa = (m_rtc_ppi_pa & ~(1 << 2)) | ((state & 1) << 2); }
- WRITE_LINE_MEMBER( rtc_ppi_pa_3_w ){ m_rtc_ppi_pa = (m_rtc_ppi_pa & ~(1 << 3)) | ((state & 1) << 3); }
- WRITE_LINE_MEMBER( rtc_ppi_pc_3_w ){ m_rtc_ppi_pc = (m_rtc_ppi_pc & ~(1 << 3)) | ((state & 1) << 3); }
-
- TIMER_DEVICE_CALLBACK_MEMBER(v1050_keyboard_tick);
- TIMER_DEVICE_CALLBACK_MEMBER(sasi_ack_tick);
- TIMER_DEVICE_CALLBACK_MEMBER(sasi_rst_tick);
- DECLARE_WRITE_LINE_MEMBER(write_keyboard_clock);
- DECLARE_WRITE_LINE_MEMBER(write_sio_clock);
- DECLARE_WRITE_LINE_MEMBER(pic_int_w);
- void disp_ppi_pc_w(uint8_t data);
- void m6502_ppi_pc_w(uint8_t data);
- uint8_t misc_ppi_pc_r();
- IRQ_CALLBACK_MEMBER(v1050_int_ack);
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
-
- MC6845_UPDATE_ROW(crtc_update_row);
-
- void v1050_crt_mem(address_map &map);
- void v1050_io(address_map &map);
- void v1050_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void video_start() override;
-
- void bankswitch();
- void update_fdc();
- void set_interrupt(int line, int state);
- void scan_keyboard();
- void set_baud_sel(int sel);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<i8214_device> m_pic;
- required_device<i8255_device> m_ppi_disp;
- required_device<i8255_device> m_ppi_6502;
- required_device<msm58321_device> m_rtc;
- required_device<i8251_device> m_uart_kb;
- required_device<i8251_device> m_uart_sio;
- required_device<mb8877_device> m_fdc;
- required_device<mc6845_device> m_crtc;
- required_device<palette_device> m_palette;
- required_device<centronics_device> m_centronics;
- required_device<ram_device> m_ram;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<floppy_connector> m_floppy2;
- required_device<floppy_connector> m_floppy3;
- required_device<clock_device> m_clock_sio;
- required_device<timer_device> m_timer_ack;
- required_device<timer_device> m_timer_rst;
- required_device<scsi_port_device> m_sasibus;
- required_device<output_latch_device> m_sasi_data_out;
- required_device<input_buffer_device> m_sasi_data_in;
- required_device<input_buffer_device> m_sasi_ctrl_in;
- required_memory_region m_rom;
- required_shared_ptr<uint8_t> m_video_ram;
- memory_share_creator<uint8_t> m_attr_ram;
-
- // interrupt state
- uint8_t m_int_mask; // interrupt mask
- uint8_t m_int_state;
- int m_f_int_enb; // floppy interrupt enable
- bool m_fdc_irq;
- bool m_fdc_drq;
-
- // keyboard state
- uint8_t m_keylatch; // keyboard row select
- uint8_t m_keydata;
- int m_keyavail;
-
- // serial state
- int m_rxrdy; // receiver ready
- int m_txrdy; // transmitter ready
- int m_baud_sel; // baud select
-
- // memory state
- uint8_t m_bank; // bank register
-
- // video state
- uint8_t m_attr; // attribute latch
-
- // sasi state
- uint8_t m_sasi_data;
- int m_sasi_data_enable;
-
- uint8_t m_rtc_ppi_pa;
- uint8_t m_rtc_ppi_pc;
-
- int m_centronics_busy;
- int m_centronics_perror;
-};
-
-#endif // MAME_INCLUDES_V1050_H
diff --git a/src/mame/includes/vaportra.h b/src/mame/includes/vaportra.h
deleted file mode 100644
index 9111bf230d8..00000000000
--- a/src/mame/includes/vaportra.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Vapor Trail
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_VAPORTRA_H
-#define MAME_INCLUDES_VAPORTRA_H
-
-#pragma once
-
-#include "cpu/h6280/h6280.h"
-#include "machine/gen_latch.h"
-#include "video/bufsprite.h"
-#include "video/deco16ic.h"
-#include "video/decmxc06.h"
-#include "emupal.h"
-
-class vaportra_state : public driver_device
-{
-public:
- vaportra_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_deco_tilegen(*this, "tilegen%u", 1U)
- , m_spritegen(*this, "spritegen")
- , m_spriteram(*this, "spriteram")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "colors")
- , m_soundlatch(*this, "soundlatch")
- , m_paletteram(*this, "palette")
- , m_paletteram_ext(*this, "palette_ext")
- { }
-
- void vaportra(machine_config &config);
-
- void init_vaportra();
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<h6280_device> m_audiocpu;
- required_device_array<deco16ic_device, 2> m_deco_tilegen;
- required_device<deco_mxc06_device> m_spritegen;
- required_device<buffered_spriteram16_device> m_spriteram;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_paletteram;
- required_shared_ptr<uint16_t> m_paletteram_ext;
-
- /* misc */
- uint16_t m_priority[2];
-
- uint8_t irq6_ack_r();
- void irq6_ack_w(uint8_t data);
- void priority_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void palette_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void palette_ext_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void vaportra_colpri_cb(u32 &colour, u32 &pri_mask);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void update_palette( int offset );
-
- DECO16IC_BANK_CB_MEMBER(bank_callback);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_VAPORTRA_H
diff --git a/src/mame/includes/vastar.h b/src/mame/includes/vastar.h
deleted file mode 100644
index 9337a88577e..00000000000
--- a/src/mame/includes/vastar.h
+++ /dev/null
@@ -1,109 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Allard van der Bas
-#ifndef MAME_INCLUDES_VASTAR_H
-#define MAME_INCLUDES_VASTAR_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class vastar_common_state : public driver_device
-{
-public:
- vastar_common_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_sharedram(*this, "sharedram")
- { }
-
- void common(machine_config &config);
-
- INTERRUPT_GEN_MEMBER(vblank_irq);
-
-protected:
- virtual void machine_start() override;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
-
- required_shared_ptr<uint8_t> m_sharedram;
-
- uint8_t m_nmi_mask;
-
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
-
- void cpu2_map(address_map &map);
- void cpu2_port_map(address_map &map);
- void main_port_map(address_map &map);
-};
-
-class vastar_state : public vastar_common_state
-{
-public:
- vastar_state(const machine_config &mconfig, device_type type, const char *tag) :
- vastar_common_state(mconfig, type, tag),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_bg1videoram(*this, "bg1videoram"),
- m_bg2videoram(*this, "bg2videoram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_sprite_priority(*this, "sprite_priority")
- { }
-
- void vastar(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_bg1videoram;
- required_shared_ptr<uint8_t> m_bg2videoram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_sprite_priority;
-
- // these are pointers into m_fgvideoram
- uint8_t* m_bg1_scroll;
- uint8_t* m_bg2_scroll;
- uint8_t* m_spriteram1;
- uint8_t* m_spriteram2;
- uint8_t* m_spriteram3;
-
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg1_tilemap;
- tilemap_t *m_bg2_tilemap;
-
- DECLARE_WRITE_LINE_MEMBER(flip_screen_w);
- void fgvideoram_w(offs_t offset, uint8_t data);
- void bg1videoram_w(offs_t offset, uint8_t data);
- void bg2videoram_w(offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg1_tile_info);
- TILE_GET_INFO_MEMBER(get_bg2_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- void main_map(address_map &map);
-};
-
-class dogfightp_state : public vastar_common_state
-{
-public:
- dogfightp_state(const machine_config &mconfig, device_type type, const char *tag) :
- vastar_common_state(mconfig, type, tag)
- { }
-
- void dogfightp(machine_config &config);
-
-private:
- void dogfightp_main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_VASTAR_H
diff --git a/src/mame/includes/vball.h b/src/mame/includes/vball.h
deleted file mode 100644
index 6a2fc09412c..00000000000
--- a/src/mame/includes/vball.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Paul Hampson
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class vball_state : public driver_device
-{
-public:
- vball_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_attribram(*this, "attribram"),
- m_videoram(*this, "videoram"),
- m_scrolly_lo(*this, "scrolly_lo"),
- m_spriteram(*this, "spriteram") { }
-
- void vball(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_attribram;
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_scrolly_lo;
- required_shared_ptr<uint8_t> m_spriteram;
-
- int m_scrollx_hi;
- int m_scrolly_hi;
- int m_scrollx_lo;
- int m_gfxset;
- int m_scrollx[256];
- int m_bgprombank;
- int m_spprombank;
- tilemap_t *m_bg_tilemap;
-
- void irq_ack_w(offs_t offset, uint8_t data);
- void bankswitch_w(uint8_t data);
- void scrollx_hi_w(uint8_t data);
- void scrollx_lo_w(uint8_t data);
- void videoram_w(offs_t offset, uint8_t data);
- void attrib_w(offs_t offset, uint8_t data);
-
- TILEMAP_MAPPER_MEMBER(background_scan);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void machine_start() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(vball_scanline);
- void bgprombank_w(int bank);
- void spprombank_w(int bank);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline int scanline_to_vcount(int scanline);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/vc4000.h b/src/mame/includes/vc4000.h
deleted file mode 100644
index 9a7807bd924..00000000000
--- a/src/mame/includes/vc4000.h
+++ /dev/null
@@ -1,171 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner, Robbbert
-// thanks-to:Manfred Schneider
-/*****************************************************************************
- *
- * includes/vc4000.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_VC4000_H
-#define MAME_INCLUDES_VC4000_H
-
-#pragma once
-
-#include "audio/vc4000.h"
-#include "cpu/s2650/s2650.h"
-#include "imagedev/snapquik.h"
-#include "imagedev/cassette.h"
-
-#include "bus/vc4000/slot.h"
-#include "bus/vc4000/rom.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-// define this to use digital inputs instead of the slow
-// autocentering analog mame joys
-#define ANALOG_HACK
-
-
-class vc4000_state : public driver_device
-{
-public:
- vc4000_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_cassette(*this, "cassette"),
- m_cart(*this, "cartslot"),
- m_custom(*this, "custom"),
- m_keypad1_1(*this, "KEYPAD1_1"),
- m_keypad1_2(*this, "KEYPAD1_2"),
- m_keypad1_3(*this, "KEYPAD1_3"),
- m_panel(*this, "PANEL"),
- m_keypad2_1(*this, "KEYPAD2_1"),
- m_keypad2_2(*this, "KEYPAD2_2"),
- m_keypad2_3(*this, "KEYPAD2_3"),
-#ifndef ANALOG_HACK
- m_io_joy1_x(*this, "JOY1_X"),
- m_io_joy1_y(*this, "JOY1_Y"),
- m_io_joy2_x(*this, "JOY2_X"),
- m_io_joy2_y(*this, "JOY2_Y")
-#else
- m_joys(*this, "JOYS"),
- m_config(*this, "CONFIG")
-#endif
- { }
-
- void cx3000tc(machine_config &config);
- void mpu1000(machine_config &config);
- void vc4000(machine_config &config);
- void database(machine_config &config);
- void h21(machine_config &config);
- void rwtrntcs(machine_config &config);
- void elektor(machine_config &config);
-
-private:
- struct SPRITE_HELPER
- {
- uint8_t bitmap[10],x1,x2,y1,y2, res1, res2;
- };
-
- struct SPRITE
- {
- const SPRITE_HELPER *data;
- int mask;
- int state;
- int delay;
- int size;
- int y;
- uint8_t scolor;
- int finished;
- int finished_now;
- };
-
- struct vc4000_video_t
- {
- SPRITE sprites[4];
- int line;
- uint8_t sprite_collision;
- uint8_t background_collision;
- union
- {
- uint8_t data[0x100];
- struct
- {
- SPRITE_HELPER sprites[3];
- uint8_t res[0x10];
- SPRITE_HELPER sprite4;
- uint8_t res2[0x30];
- uint8_t grid[20][2];
- uint8_t grid_control[5];
- uint8_t res3[0x13];
- uint8_t sprite_sizes;
- uint8_t sprite_colors[2];
- uint8_t score_control;
- uint8_t res4[2];
- uint8_t background;
- uint8_t sound;
- uint8_t bcd[2];
- uint8_t background_collision;
- uint8_t sprite_collision;
- } d;
- } reg;
- } ;
-
- void vc4000_sound_ctl(offs_t offset, uint8_t data);
- uint8_t vc4000_key_r(offs_t offset);
- uint8_t vc4000_video_r(offs_t offset);
- void vc4000_video_w(offs_t offset, uint8_t data);
- DECLARE_READ_LINE_MEMBER(vc4000_vsync_r);
- uint8_t elektor_cass_r();
- void elektor_cass_w(uint8_t data);
- vc4000_video_t m_video;
- uint8_t m_sprite_collision[0x20];
- uint8_t m_background_collision[0x20];
- uint8_t m_joy1_x;
- uint8_t m_joy1_y;
- uint8_t m_joy2_x;
- uint8_t m_joy2_y;
- uint8_t m_objects[512];
- uint8_t m_irq_pause;
- std::unique_ptr<bitmap_ind16> m_bitmap;
- virtual void machine_start() override;
- virtual void video_start() override;
- void vc4000_palette(palette_device &palette) const;
- uint32_t screen_update_vc4000(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vc4000_video_line);
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- void elektor_mem(address_map &map);
- void vc4000_mem(address_map &map);
-
- required_device<s2650_device> m_maincpu;
- required_device<screen_device> m_screen;
- optional_device<cassette_image_device> m_cassette;
- required_device<vc4000_cart_slot_device> m_cart;
- required_device<vc4000_sound_device> m_custom;
- required_ioport m_keypad1_1;
- required_ioport m_keypad1_2;
- required_ioport m_keypad1_3;
- required_ioport m_panel;
- required_ioport m_keypad2_1;
- required_ioport m_keypad2_2;
- required_ioport m_keypad2_3;
-#ifndef ANALOG_HACK
- required_ioport m_io_joy1_x;
- required_ioport m_io_joy1_y;
- required_ioport m_io_joy2_x;
- required_ioport m_io_joy2_y;
-#else
- required_ioport m_joys;
- required_ioport m_config;
-#endif
- inline uint8_t vc4000_joystick_return_to_centre(uint8_t joy);
- void vc4000_draw_digit(bitmap_ind16 &bitmap, int x, int y, int d, int line);
- inline void vc4000_collision_plot(uint8_t *collision, uint8_t data, uint8_t color, int scale);
- void vc4000_sprite_update(bitmap_ind16 &bitmap, uint8_t *collision, SPRITE *This);
- inline void vc4000_draw_grid(uint8_t *collision);
-};
-
-#endif // MAME_INCLUDES_VC4000_H
diff --git a/src/mame/includes/vector06.h b/src/mame/includes/vector06.h
deleted file mode 100644
index af53c0e7cba..00000000000
--- a/src/mame/includes/vector06.h
+++ /dev/null
@@ -1,120 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Miodrag Milanovic
-/*****************************************************************************
- *
- * includes/vector06.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_VECTOR06_H
-#define MAME_INCLUDES_VECTOR06_H
-
-#pragma once
-
-#include "bus/generic/carts.h"
-#include "bus/generic/slot.h"
-
-#include "cpu/i8085/i8085.h"
-
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-
-#include "machine/i8255.h"
-#include "machine/pit8253.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-
-#include "sound/ay8910.h"
-#include "sound/spkrdev.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-class vector06_state : public driver_device
-{
-public:
- vector06_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_rom(*this, "maincpu")
- , m_speaker(*this, "speaker")
- , m_cassette(*this, "cassette")
- , m_cart(*this, "cartslot")
- , m_fdc(*this, "fdc")
- , m_floppy0(*this, "fdc:0")
- , m_floppy1(*this, "fdc:1")
- , m_ay(*this, "aysnd")
- , m_ram(*this, RAM_TAG)
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_ppi1(*this, "ppi1")
- , m_ppi2(*this, "ppi2")
- , m_pit(*this, "pit")
- , m_bank1(*this, "bank1")
- , m_bank2(*this, "bank2")
- , m_bank3(*this, "bank3")
- , m_io_keyboard(*this, "LINE.%u", 0U)
- , m_io_reset(*this, "RESET")
- { }
-
- void vector06(machine_config &config);
- DECLARE_INPUT_CHANGED_MEMBER(f11_button);
- DECLARE_INPUT_CHANGED_MEMBER(f12_button);
-
-private:
- static void floppy_formats(format_registration &fr);
-
- uint8_t ppi1_portb_r();
- uint8_t ppi1_portc_r();
- void ppi1_porta_w(uint8_t data);
- void ppi1_portb_w(uint8_t data);
- void color_set(uint8_t data);
- uint8_t ppi2_portb_r();
- void ppi2_portb_w(uint8_t data);
- void ppi2_porta_w(uint8_t data);
- void ppi2_portc_w(uint8_t data);
- void disc_w(uint8_t data);
- void status_callback(uint8_t data);
- void ramdisk_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(speaker_w);
- void machine_start() override;
- void machine_reset() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- IRQ_CALLBACK_MEMBER(irq_callback);
- void update_mem();
-
- void io_map(address_map &map);
- void mem_map(address_map &map);
-
- required_device<i8080_cpu_device> m_maincpu;
- required_region_ptr<u8> m_rom;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_device<generic_slot_device> m_cart;
- required_device<kr1818vg93_device> m_fdc;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<ay8910_device> m_ay;
- required_device<ram_device> m_ram;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_device<i8255_device> m_ppi1, m_ppi2;
- required_device<pit8253_device> m_pit;
- required_memory_bank m_bank1;
- required_memory_bank m_bank2;
- required_memory_bank m_bank3;
- required_ioport_array<9> m_io_keyboard;
- required_ioport m_io_reset;
-
- uint8_t m_keyboard_mask;
- uint8_t m_color_index;
- uint8_t m_romdisk_msb;
- uint8_t m_romdisk_lsb;
- uint8_t m_vblank_state;
- uint8_t m_rambank;
- uint8_t m_aylatch;
- bool m_video_mode;
- bool m_stack_state;
- bool m_romen;
-};
-
-#endif // MAME_INCLUDES_VECTOR06_H
diff --git a/src/mame/includes/vectrex.h b/src/mame/includes/vectrex.h
deleted file mode 100644
index 93e7a4fd98e..00000000000
--- a/src/mame/includes/vectrex.h
+++ /dev/null
@@ -1,195 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mathis Rosenhauer
-/*****************************************************************************
- *
- * includes/vectrex.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_VECTREX_H
-#define MAME_INCLUDES_VECTREX_H
-
-#pragma once
-
-#include "machine/6522via.h"
-#include "sound/dac.h"
-#include "sound/ay8910.h"
-#include "video/vector.h"
-
-#include "bus/vectrex/slot.h"
-#include "bus/vectrex/rom.h"
-
-#include "screen.h"
-
-#define NVECT 10000
-
-class vectrex_base_state : public driver_device
-{
-public:
- enum
- {
- TIMER_VECTREX_IMAGER_CHANGE_COLOR,
- TIMER_UPDATE_LEVEL,
- TIMER_VECTREX_IMAGER_EYE,
- TIMER_LIGHTPEN_TRIGGER,
- TIMER_VECTREX_REFRESH,
- TIMER_VECTREX_ZERO_INTEGRATORS,
- TIMER_UPDATE_SIGNAL
- };
-
- void vectrex_cart(device_slot_interface &device);
-
-protected:
- vectrex_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_cart(*this, "cartslot"),
- m_via6522_0(*this, "via6522_0"),
- m_gce_vectorram(*this, "gce_vectorram"),
- m_dac(*this, "dac"),
- m_ay8912(*this, "ay8912"),
- m_vector(*this, "vector"),
- m_io_contr(*this, {"CONTR1X", "CONTR1Y", "CONTR2X", "CONTR2Y"}),
- m_io_buttons(*this, "BUTTONS"),
- m_io_3dconf(*this, "3DCONF"),
- m_io_lpenconf(*this, "LPENCONF"),
- m_io_lpenx(*this, "LPENX"),
- m_io_lpeny(*this, "LPENY"),
- m_screen(*this, "screen")
- { }
-
- void vectrex_psg_port_w(uint8_t data);
- uint8_t vectrex_via_r(offs_t offset);
- void vectrex_via_w(offs_t offset, uint8_t data);
- virtual void driver_start() override;
- virtual void video_start() override;
- uint32_t screen_update_vectrex(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(vectrex_imager_change_color);
- TIMER_CALLBACK_MEMBER(update_level);
- TIMER_CALLBACK_MEMBER(vectrex_imager_eye);
- TIMER_CALLBACK_MEMBER(lightpen_trigger);
- TIMER_CALLBACK_MEMBER(vectrex_refresh);
- TIMER_CALLBACK_MEMBER(vectrex_zero_integrators);
- TIMER_CALLBACK_MEMBER(update_signal);
- uint8_t vectrex_via_pb_r();
- uint8_t vectrex_via_pa_r();
- void v_via_pb_w(uint8_t data);
- void v_via_pa_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(v_via_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(v_via_cb2_w);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load);
- DECLARE_WRITE_LINE_MEMBER(vectrex_via_irq);
-
- void vectrex_base(machine_config &config);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- void configure_imager(bool reset_refresh, const double *imager_angles);
- void vectrex_configuration();
- void vectrex_multiplexer(int mux);
- void vectrex_add_point(int x, int y, rgb_t color, int intensity);
- void vectrex_add_point_stereo(int x, int y, rgb_t color, int intensity);
-
- unsigned char m_via_out[2];
-
- required_device<cpu_device> m_maincpu;
- optional_device<vectrex_cart_slot_device> m_cart;
-
- double m_imager_freq;
- emu_timer *m_imager_timer;
- emu_timer *m_lp_t;
-
- required_device<via6522_device> m_via6522_0;
-
-private:
-
- struct vectrex_point
- {
- int x; int y;
- rgb_t col;
- int intensity;
- };
-
- required_shared_ptr<uint8_t> m_gce_vectorram;
- int m_imager_status;
- uint32_t m_beam_color;
- int m_lightpen_port;
- int m_reset_refresh;
- const double *m_imager_angles;
- rgb_t m_imager_colors[6];
- unsigned char m_imager_pinlevel;
- int m_old_mcontrol;
- double m_sl;
- double m_pwl;
- int m_x_center;
- int m_y_center;
- int m_x_max;
- int m_y_max;
- int m_x_int;
- int m_y_int;
- int m_lightpen_down;
- int m_pen_x;
- int m_pen_y;
- emu_timer *m_refresh;
- uint8_t m_blank;
- uint8_t m_ramp;
- int8_t m_analog[5];
- int m_point_index;
- int m_display_start;
- int m_display_end;
- vectrex_point m_points[NVECT];
- uint16_t m_via_timer2;
- attotime m_vector_start_time;
- uint8_t m_cb2;
- void (vectrex_base_state::*vector_add_point_function)(int, int, rgb_t, int);
-
- required_device<mc1408_device> m_dac;
- required_device<ay8910_device> m_ay8912;
- required_device<vector_device> m_vector;
- optional_ioport_array<4> m_io_contr;
- required_ioport m_io_buttons;
- required_ioport m_io_3dconf;
- required_ioport m_io_lpenconf;
- required_ioport m_io_lpenx;
- required_ioport m_io_lpeny;
- required_device<screen_device> m_screen;
-};
-
-
-class vectrex_state : public vectrex_base_state
-{
-public:
- vectrex_state(const machine_config &mconfig, device_type type, const char *tag) :
- vectrex_base_state(mconfig, type, tag)
- { }
-
- void vectrex(machine_config &config);
-
-protected:
- virtual void video_start() override;
- virtual void machine_start() override;
-
-private:
- void vectrex_map(address_map &map);
-};
-
-
-class raaspec_state : public vectrex_base_state
-{
-public:
- raaspec_state(const machine_config &mconfig, device_type type, const char *tag) :
- vectrex_base_state(mconfig, type, tag),
- m_io_coin(*this, "COIN")
- { }
-
- void raaspec(machine_config &config);
-
-private:
- void raaspec_led_w(uint8_t data);
- uint8_t vectrex_s1_via_pb_r();
-
- void raaspec_map(address_map &map);
-
- required_ioport m_io_coin;
-};
-
-#endif // MAME_INCLUDES_VECTREX_H
diff --git a/src/mame/includes/vendetta.h b/src/mame/includes/vendetta.h
deleted file mode 100644
index 78e8d11bccd..00000000000
--- a/src/mame/includes/vendetta.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-/*************************************************************************
-
- Vendetta
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_VENDETTA_H
-#define MAME_INCLUDES_VENDETTA_H
-
-#pragma once
-
-#include "cpu/m6809/konami.h" // for the callback and the firq irq definition
-#include "machine/k053252.h"
-#include "video/k052109.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/k053251.h"
-#include "video/k054000.h"
-#include "video/konami_helper.h"
-#include "emupal.h"
-
-class vendetta_state : public driver_device
-{
-public:
- vendetta_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k052109(*this, "k052109"),
- m_k053246(*this, "k053246"),
- m_k053251(*this, "k053251"),
- m_k053252(*this, "k053252"),
- m_k054000(*this, "k054000"),
- m_palette(*this, "palette"),
- m_videoview0(*this, "videoview0"),
- m_videoview1(*this, "videoview1")
- { }
-
- void esckids(machine_config &config);
- void vendetta(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- enum
- {
- TIMER_Z80_NMI
- };
-
- // video-related
- int m_layer_colorbase[3];
- int m_sprite_colorbase;
- int m_layerpri[3];
-
- // misc
- int m_irq_enabled;
-
- // devices
- required_device<konami_cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k052109_device> m_k052109;
- required_device<k053247_device> m_k053246;
- required_device<k053251_device> m_k053251;
- optional_device<k053252_device> m_k053252;
- optional_device<k054000_device> m_k054000;
- required_device<palette_device> m_palette;
-
- // views
- memory_view m_videoview0;
- memory_view m_videoview1;
-
- void eeprom_w(uint8_t data);
- uint8_t K052109_r(offs_t offset);
- void K052109_w(offs_t offset, uint8_t data);
- void _5fe0_w(uint8_t data);
- void z80_arm_nmi_w(uint8_t data);
- void z80_irq_w(uint8_t data);
- uint8_t z80_irq_r();
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(irq);
-
- K052109_CB_MEMBER(vendetta_tile_callback);
- K052109_CB_MEMBER(esckids_tile_callback);
- void banking_callback(uint8_t data);
- K053246_CB_MEMBER(sprite_callback);
-
- void esckids_map(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_VENDETTA_H
diff --git a/src/mame/includes/vertigo.h b/src/mame/includes/vertigo.h
deleted file mode 100644
index 01e50a8b905..00000000000
--- a/src/mame/includes/vertigo.h
+++ /dev/null
@@ -1,147 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mathis Rosenhauer
-/*************************************************************************
-
- Exidy Vertigo hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_VERTIGO_H
-#define MAME_INCLUDES_VERTIGO_H
-
-#pragma once
-
-#include "audio/exidy440.h"
-#include "machine/74148.h"
-#include "machine/adc0808.h"
-#include "video/vector.h"
-
-/*************************************
- *
- * Typedefs
- *
- *************************************/
-
-#define MC_LENGTH 512
-
-
-class vertigo_state : public driver_device
-{
-public:
- vertigo_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_custom(*this, "440audio"),
- m_ttl74148(*this, "74148"),
- m_vector(*this, "vector"),
- m_adc(*this, "adc"),
- m_vectorram(*this, "vectorram")
- { }
-
- void vertigo(machine_config &config);
-
-private:
- DECLARE_WRITE_LINE_MEMBER(adc_eoc_w);
- uint16_t vertigo_io_convert(offs_t offset);
- uint16_t vertigo_coin_r();
- void vertigo_wsot_w(uint16_t data);
- void vertigo_audio_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t vertigo_sio_r();
- void vertigo_motor_w(uint16_t data);
- INTERRUPT_GEN_MEMBER(vertigo_interrupt);
- TIMER_CALLBACK_MEMBER(sound_command_w);
- DECLARE_WRITE_LINE_MEMBER(v_irq4_w);
- DECLARE_WRITE_LINE_MEMBER(v_irq3_w);
- void update_irq(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void exidy440_audio(machine_config &config);
- void vertigo_map(address_map &map);
- void vertigo_motor(address_map &map);
- void exidy440_audio_map(address_map &map);
-
- struct am2901
- {
- uint32_t ram[16]; /* internal ram */
- uint32_t d; /* direct data D input */
- uint32_t q; /* Q register */
- uint32_t f; /* F ALU result */
- uint32_t y; /* Y output */
- };
-
- class vector_generator
- {
- public:
- uint32_t sreg; /* shift register */
- uint32_t l1; /* latch 1 adder operand only */
- uint32_t l2; /* latch 2 adder operand only */
- uint32_t c_v; /* vertical position counter */
- uint32_t c_h; /* horizontal position counter */
- uint32_t c_l; /* length counter */
- uint32_t adder_s; /* slope generator result and B input */
- uint32_t adder_a; /* slope generator A input */
- uint32_t color; /* color */
- uint32_t intensity; /* intensity */
- uint32_t brez; /* h/v-counters enable */
- uint32_t vfin; /* drawing yes/no */
- uint32_t hud1; /* h-counter up or down (stored in L1) */
- uint32_t hud2; /* h-counter up or down (stored in L2) */
- uint32_t vud1; /* v-counter up or down (stored in L1) */
- uint32_t vud2; /* v-counter up or down (stored in L2) */
- uint32_t hc1; /* use h- or v-counter in L1 mode */
- uint32_t ven; /* vector intensity enable */
- };
-
- struct microcode
- {
- uint32_t x;
- uint32_t a;
- uint32_t b;
- uint32_t inst;
- uint32_t dest;
- uint32_t cn;
- uint32_t mreq;
- uint32_t rsel;
- uint32_t rwrite;
- uint32_t of;
- uint32_t iif;
- uint32_t oa;
- uint32_t jpos;
- uint32_t jmp;
- uint32_t jcon;
- uint32_t ma;
- };
-
- struct vproc
- {
- uint16_t sram[64]; /* external sram */
- uint16_t ramlatch; /* latch between 2901 and sram */
- uint16_t rom_adr; /* vector ROM/RAM address latch */
- uint32_t pc; /* program counter */
- uint32_t ret; /* return address */
-
- };
-
- void am2901x4(am2901 &bsp, microcode const &mc);
- void vertigo_vgen(vector_generator &vg);
- void vertigo_vproc_init();
- void vertigo_vproc_reset();
- void vertigo_vproc(int cycles, int irq4);
- void update_irq_encoder(int line, int state);
-
- required_device<cpu_device> m_maincpu;
- required_device<exidy440_sound_device> m_custom;
- required_device<ttl74148_device> m_ttl74148;
- required_device<vector_device> m_vector;
- required_device<adc0808_device> m_adc;
- required_shared_ptr<uint16_t> m_vectorram;
- attotime m_irq4_time;
- uint8_t m_irq_state;
- vproc m_vs;
- am2901 m_bsp;
- vector_generator m_vgen;
- uint16_t *m_vectorrom;
- microcode m_mc[MC_LENGTH];
-};
-
-#endif // MAME_INCLUDES_VERTIGO_H
diff --git a/src/mame/includes/vicdual.h b/src/mame/includes/vicdual.h
deleted file mode 100644
index 67798c1c948..00000000000
--- a/src/mame/includes/vicdual.h
+++ /dev/null
@@ -1,333 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/*************************************************************************
-
- VIC Dual Game board
-
-*************************************************************************/
-
-#include "cpu/mcs48/mcs48.h"
-#include "machine/pit8253.h"
-#include "machine/timer.h"
-#include "sound/ay8910.h"
-#include "sound/dac.h"
-#include "sound/discrete.h"
-#include "sound/samples.h"
-#include "screen.h"
-#include "audio/vicdual.h"
-#include "audio/vicdual-97271p.h"
-#include "video/vicdual-97269pb.h"
-
-class vicdual_state : public driver_device
-{
-public:
- vicdual_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this,"maincpu"),
- m_samples(*this, "samples"),
- m_discrete(*this, "discrete"),
- m_coinstate_timer(*this, "coinstate"),
- m_nsub_coinage_timer(*this, "nsub_coin"),
- m_screen(*this, "screen"),
- m_vicdual_sound(*this, "vicdual_sound"),
- m_proms(*this, "proms"),
- m_videoram(*this, "videoram"),
- m_characterram(*this, "characterram"),
- m_in0(*this, "IN0"),
- m_in1(*this, "IN1"),
- m_in2(*this, "IN2"),
- m_coinage(*this, "COINAGE"),
- m_color_bw(*this, "COLOR_BW"),
- m_fake_lives(*this, "FAKE_LIVES.%u", 0)
- { }
-
- void vicdual_root(machine_config &config);
- void vicdual_dualgame_root(machine_config &config);
- void heiankyo(machine_config &config);
- void headon(machine_config &config);
- void headon_audio(machine_config &config);
- void sspacaho(machine_config &config);
- void headonn(machine_config &config);
- void invho2(machine_config &config);
- void frogs(machine_config &config);
- void headons(machine_config &config);
- void invinco(machine_config &config);
- void invinco_audio(machine_config &config);
- void invds(machine_config &config);
- void headon2(machine_config &config);
- void pulsar(machine_config &config);
- void pulsar_audio(machine_config &config);
- void spacetrk(machine_config &config);
- void headon2bw(machine_config &config);
- void safari(machine_config &config);
- void brdrline(machine_config &config);
- void samurai(machine_config &config);
- void sspaceat(machine_config &config);
- void digger(machine_config &config);
- void depthch(machine_config &config);
- void depthch_audio(machine_config &config);
- void carhntds(machine_config &config);
- void alphaho(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(coin_status_r);
- DECLARE_READ_LINE_MEMBER(get_64v);
- DECLARE_READ_LINE_MEMBER(vblank_comp_r);
- DECLARE_READ_LINE_MEMBER(cblank_comp_r);
- DECLARE_READ_LINE_MEMBER(timer_value_r);
- template <int Param> DECLARE_READ_LINE_MEMBER(fake_lives_r);
- template <int N> DECLARE_READ_LINE_MEMBER(samurai_protection_r);
- DECLARE_INPUT_CHANGED_MEMBER(coin_changed);
-
-protected:
- required_device<cpu_device> m_maincpu;
- optional_device<samples_device> m_samples;
- optional_device<discrete_sound_device> m_discrete;
- required_device<timer_device> m_coinstate_timer;
- optional_device<timer_device> m_nsub_coinage_timer;
- required_device<screen_device> m_screen;
- optional_device<vicdual_audio_device_base> m_vicdual_sound;
- optional_memory_region m_proms;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_characterram;
-
- required_ioport m_in0;
- required_ioport m_in1;
- optional_ioport m_in2;
- optional_ioport m_coinage;
- optional_ioport m_color_bw;
- optional_ioport_array<2> m_fake_lives;
-
- uint8_t m_coin_status;
- uint8_t m_palette_bank;
- uint8_t m_samurai_protection_data;
- int m_port1State;
- int m_port2State;
- emu_timer *m_frogs_croak_timer;
-
- void coin_in();
- void assert_coin_status();
-
- // common
- void videoram_w(offs_t offset, uint8_t data);
- void characterram_w(offs_t offset, uint8_t data);
- void palette_bank_w(uint8_t data);
-
- // game specific
- uint8_t depthch_io_r(offs_t offset);
- void depthch_io_w(offs_t offset, uint8_t data);
- uint8_t safari_io_r(offs_t offset);
- void safari_io_w(offs_t offset, uint8_t data);
- uint8_t frogs_io_r(offs_t offset);
- void frogs_io_w(offs_t offset, uint8_t data);
- uint8_t headon_io_r(offs_t offset);
- uint8_t sspaceat_io_r(offs_t offset);
- void headon_io_w(offs_t offset, uint8_t data);
- DECLARE_MACHINE_RESET(headon2);
- uint8_t headon2_io_r(offs_t offset);
- void headon2_io_w(offs_t offset, uint8_t data);
- void digger_io_w(offs_t offset, uint8_t data);
- void invho2_io_w(offs_t offset, uint8_t data);
- void invds_io_w(offs_t offset, uint8_t data);
- void carhntds_io_w(offs_t offset, uint8_t data);
- void sspacaho_io_w(offs_t offset, uint8_t data);
- void headonn_io_w(offs_t offset, uint8_t data);
- void spacetrk_io_w(offs_t offset, uint8_t data);
- void brdrline_io_w(offs_t offset, uint8_t data);
- void pulsar_io_w(offs_t offset, uint8_t data);
- void heiankyo_io_w(offs_t offset, uint8_t data);
- void alphaho_io_w(offs_t offset, uint8_t data);
- void samurai_protection_w(uint8_t data);
- void samurai_io_w(offs_t offset, uint8_t data);
- uint8_t invinco_io_r(offs_t offset);
- void invinco_io_w(offs_t offset, uint8_t data);
-
- /*----------- defined in audio/vicdual.cpp -----------*/
- void headon_audio_w(uint8_t data);
- void invho2_audio_w(uint8_t data);
-
- /*----------- defined in audio/depthch.cpp -----------*/
- void depthch_audio_w(uint8_t data);
-
- /*----------- defined in audio/invinco.cpp -----------*/
- void invinco_audio_w(uint8_t data);
-
- /*----------- defined in audio/pulsar.cpp -----------*/
- void pulsar_audio_1_w(uint8_t data);
- void pulsar_audio_2_w(uint8_t data);
-
- TIMER_DEVICE_CALLBACK_MEMBER(clear_coin_status);
-
- DECLARE_MACHINE_START(samurai);
-
- virtual void machine_start() override;
-
- uint32_t screen_update_bw(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_bw_or_color(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_color(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- int get_vcounter();
- int is_cabinet_color();
- virtual pen_t choose_pen(uint8_t x, uint8_t y, pen_t back_pen);
-
- void alphaho_io_map(address_map &map);
- void brdrline_io_map(address_map &map);
- void carhntds_dualgame_map(address_map &map);
- void carhntds_io_map(address_map &map);
- void depthch_io_map(address_map &map);
- void depthch_map(address_map &map);
- void digger_io_map(address_map &map);
- void frogs_io_map(address_map &map);
- void frogs_map(address_map &map);
- void headon2_io_map(address_map &map);
- void headon2_map(address_map &map);
- void headon_io_map(address_map &map);
- void headon_map(address_map &map);
- void headonn_io_map(address_map &map);
- void heiankyo_io_map(address_map &map);
- void invds_io_map(address_map &map);
- void invho2_io_map(address_map &map);
- void invinco_io_map(address_map &map);
- void invinco_map(address_map &map);
- void pulsar_io_map(address_map &map);
- void safari_io_map(address_map &map);
- void safari_map(address_map &map);
- void samurai_io_map(address_map &map);
- void samurai_map(address_map &map);
- void spacetrk_io_map(address_map &map);
- void sspacaho_io_map(address_map &map);
- void sspaceat_io_map(address_map &map);
- void vicdual_dualgame_map(address_map &map);
-};
-
-class tranqgun_state : public vicdual_state
-{
-public:
- tranqgun_state(const machine_config &mconfig, device_type type, const char *tag) :
- vicdual_state(mconfig, type, tag)
- { }
-
- void tranqgun(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void tranqgun_io_map(address_map &map);
- void tranqgun_io_w(offs_t offset, uint8_t data);
-
- uint8_t tranqgun_prot_r(offs_t offset);
- void tranqgun_prot_w(offs_t offset, uint8_t data);
-
- void tranqgun_dualgame_map(address_map &map);
-
- uint8_t m_tranqgun_prot_return;
-};
-
-class nsub_state : public vicdual_state
-{
-public:
- nsub_state(const machine_config &mconfig, device_type type, const char *tag) :
- vicdual_state(mconfig, type, tag),
- m_s97269pb(*this,"s97269pb"),
- m_s97271p(*this,"s97271p")
- { }
-
- void nsub(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(nsub_coin_in);
-
-private:
- required_device<s97269pb_device> m_s97269pb;
- required_device<s97271p_device> m_s97271p;
-
- int m_nsub_coin_counter;
- int m_nsub_play_counter;
-
- uint8_t nsub_io_r(offs_t offset);
- void nsub_io_w(offs_t offset, uint8_t data);
-
- TIMER_DEVICE_CALLBACK_MEMBER(nsub_coin_pulse);
-
- DECLARE_MACHINE_START(nsub);
- DECLARE_MACHINE_RESET(nsub);
-
- virtual pen_t choose_pen(uint8_t x, uint8_t y, pen_t back_pen) override;
- void nsub_io_map(address_map &map);
- void nsub_map(address_map &map);
-};
-
-class carnival_state : public vicdual_state
-{
-public:
- carnival_state(const machine_config &mconfig, device_type type, const char *tag) :
- vicdual_state(mconfig, type, tag),
- m_audiocpu(*this, "audiocpu"),
- m_psg(*this, "psg"),
- m_pit(*this, "pit"),
- m_dac(*this, "dac%u", 0)
- { }
-
- void carnival(machine_config &config);
- void carnivalb(machine_config &config);
-
- void carnivala_audio(machine_config &config);
- void carnivalb_audio(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- required_device<i8035_device> m_audiocpu;
- optional_device<ay8910_device> m_psg;
- optional_device<pit8253_device> m_pit;
- optional_device_array<dac_bit_interface, 3> m_dac;
-
- void carnival_io_map(address_map &map);
- void mboard_map(address_map &map);
-
- int m_musicData;
- int m_musicBus;
-
- void carnival_io_w(offs_t offset, uint8_t data);
-
- /*----------- defined in audio/carnival.cpp -----------*/
- void carnival_audio_1_w(uint8_t data);
- void carnival_audio_2_w(uint8_t data);
- DECLARE_READ_LINE_MEMBER( carnival_music_port_t1_r );
- void carnivala_music_port_1_w(uint8_t data);
- void carnivala_music_port_2_w(uint8_t data);
- void carnival_psg_latch();
- void carnivalb_music_port_1_w(uint8_t data);
- void carnivalb_music_port_2_w(uint8_t data);
-};
-
-class carnivalh_state : public carnival_state
-{
-public:
- carnivalh_state(const machine_config &mconfig, device_type type, const char *tag) :
- carnival_state(mconfig, type, tag)
- { }
-
- void carnivalh(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- uint8_t carnivalh_prot_r(offs_t offset);
- void carnivalh_prot_w(offs_t offset, uint8_t data);
-
- void carnivalh_dualgame_map(address_map &map);
-
- uint16_t m_previousaddress;
- uint8_t m_previousvalue;
-};
-
-class headonsa_state : public vicdual_state
-{
-public:
- headonsa_state(const machine_config &mconfig, device_type type, const char *tag) :
- vicdual_state(mconfig, type, tag)
- { }
-
- DECLARE_INPUT_CHANGED_MEMBER(headonsa_coin_inserted);
-};
diff --git a/src/mame/includes/victory.h b/src/mame/includes/victory.h
deleted file mode 100644
index 75dc09f1072..00000000000
--- a/src/mame/includes/victory.h
+++ /dev/null
@@ -1,113 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/***************************************************************************
-
- Victory system
-
-****************************************************************************/
-#ifndef MAME_INCLUDES_VICTORY_H
-#define MAME_INCLUDES_VICTORY_H
-
-#pragma once
-
-#include "emupal.h"
-#include "screen.h"
-
-
-#define VICTORY_MAIN_CPU_CLOCK (XTAL(8'000'000) / 2)
-
-#define VICTORY_PIXEL_CLOCK (XTAL(11'289'000) / 2)
-#define VICTORY_HTOTAL (0x150)
-#define VICTORY_HBEND (0x000)
-#define VICTORY_HBSTART (0x100)
-#define VICTORY_VTOTAL (0x118)
-#define VICTORY_VBEND (0x000)
-#define VICTORY_VBSTART (0x100)
-
-
-class victory_state : public driver_device
-{
-public:
- victory_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_charram(*this, "charram"),
- m_lamps(*this, "lamp%u", 0U)
- { }
-
- void victory(machine_config &config);
-
-private:
- void lamp_control_w(uint8_t data);
- void paletteram_w(offs_t offset, uint8_t data);
- uint8_t video_control_r(offs_t offset);
- void video_control_w(offs_t offset, uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(vblank_interrupt);
- TIMER_CALLBACK_MEMBER(bgcoll_irq_callback);
-
- void update_irq();
- void set_palette();
- int command2();
- int command3();
- int command4();
- int command5();
- int command6();
- int command7();
- void update_background();
- void update_foreground();
-
- virtual void machine_start() override { m_lamps.resolve(); }
- virtual void video_start() override;
- void main_io_map(address_map &map);
- void main_map(address_map &map);
-
- /* microcode state */
- struct micro_t
- {
- uint16_t i;
- uint16_t pc;
- uint8_t r,g,b;
- uint8_t xp,yp;
- uint8_t cmd,cmdlo;
- emu_timer * timer;
- uint8_t timer_active;
- attotime endtime;
-
- void count_states(int states);
- };
-
- required_device<cpu_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_charram;
- output_finder<4> m_lamps;
-
- uint16_t m_paletteram[0x40];
- std::unique_ptr<uint8_t[]> m_bgbitmap;
- std::unique_ptr<uint8_t[]> m_fgbitmap;
- std::unique_ptr<uint8_t[]> m_rram;
- std::unique_ptr<uint8_t[]> m_gram;
- std::unique_ptr<uint8_t[]> m_bram;
- uint8_t m_vblank_irq;
- uint8_t m_fgcoll;
- uint8_t m_fgcollx;
- uint8_t m_fgcolly;
- uint8_t m_bgcoll;
- uint8_t m_bgcollx;
- uint8_t m_bgcolly;
- uint8_t m_scrollx;
- uint8_t m_scrolly;
- uint8_t m_video_control;
- micro_t m_micro;
- emu_timer *m_bgcoll_irq_timer;
-};
-
-#endif // MAME_INCLUDES_VICTORY_H
diff --git a/src/mame/includes/vidbrain.h b/src/mame/includes/vidbrain.h
deleted file mode 100644
index 520fc1dee66..00000000000
--- a/src/mame/includes/vidbrain.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#pragma once
-
-#ifndef MAME_INCLUDES_VIDBRAIN_H
-#define MAME_INCLUDES_VIDBRAIN_H
-
-#include "bus/vidbrain/exp.h"
-#include "cpu/f8/f8.h"
-#include "machine/f3853.h"
-#include "machine/ram.h"
-#include "sound/dac.h"
-#include "video/uv201.h"
-
-#define F3850_TAG "cd34"
-#define F3853_TAG "cd5"
-#define F3870_TAG "f3870"
-#define UV201_TAG "uv201"
-#define SCREEN_TAG "screen"
-
-class vidbrain_state : public driver_device
-{
-public:
- vidbrain_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, F3850_TAG),
- m_smi(*this, F3853_TAG),
- m_uv(*this, UV201_TAG),
- m_dac(*this, "dac"),
- m_exp(*this, "exp"),
- m_io(*this, "IO%02u", 0),
- m_uv201_31(*this, "UV201-31"),
- m_joy_r(*this, "JOY-R"),
- m_joy1_x(*this, "JOY1-X"),
- m_joy1_y(*this, "JOY1-Y"),
- m_joy2_x(*this, "JOY2-X"),
- m_joy2_y(*this, "JOY2-Y"),
- m_joy3_x(*this, "JOY3-X"),
- m_joy3_y(*this, "JOY3-Y"),
- m_joy4_x(*this, "JOY4-X"),
- m_joy4_y(*this, "JOY4-Y")
- { }
-
- void vidbrain(machine_config &config);
- void vidbrain_video(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER( trigger_reset );
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<f3853_device> m_smi;
- required_device<uv201_device> m_uv;
- required_device<dac_byte_interface> m_dac;
- required_device<videobrain_expansion_slot_device> m_exp;
- required_ioport_array<8> m_io;
- required_ioport m_uv201_31;
- required_ioport m_joy_r;
- required_ioport m_joy1_x;
- required_ioport m_joy1_y;
- required_ioport m_joy2_x;
- required_ioport m_joy2_y;
- required_ioport m_joy3_x;
- required_ioport m_joy3_y;
- required_ioport m_joy4_x;
- required_ioport m_joy4_y;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- enum
- {
- TIMER_JOYSTICK
- };
-
- void keyboard_w(uint8_t data);
- uint8_t keyboard_r();
- void sound_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER( ext_int_w );
- DECLARE_WRITE_LINE_MEMBER( hblank_w );
- uint8_t memory_read_byte(offs_t offset);
-
- // keyboard state
- uint8_t m_keylatch;
- int m_joy_enable;
-
- // sound state
- int m_sound_clk;
-
- // timers
- emu_timer *m_timer_ne555;
- void vidbrain_io(address_map &map);
- void vidbrain_mem(address_map &map);
-};
-
-#endif
diff --git a/src/mame/includes/videopin.h b/src/mame/includes/videopin.h
deleted file mode 100644
index 73ddc3131af..00000000000
--- a/src/mame/includes/videopin.h
+++ /dev/null
@@ -1,96 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sebastien Monassa
-/*************************************************************************
-
- Atari Video Pinball hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_VIDEOPIN_H
-#define MAME_INCLUDES_VIDEOPIN_H
-
-#pragma once
-
-#include "sound/discrete.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-/* Discrete Sound Input Nodes */
-#define VIDEOPIN_OCTAVE_DATA NODE_01
-#define VIDEOPIN_NOTE_DATA NODE_02
-#define VIDEOPIN_BELL_EN NODE_03
-#define VIDEOPIN_BONG_EN NODE_04
-#define VIDEOPIN_ATTRACT_EN NODE_05
-#define VIDEOPIN_VOL_DATA NODE_06
-
-
-class videopin_state : public driver_device
-{
-public:
- videopin_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_video_ram(*this, "video_ram"),
- m_leds(*this, "LED%02u", 1U)
- { }
-
- void videopin(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
-private:
- enum
- {
- TIMER_INTERRUPT
- };
-
- uint8_t misc_r();
- void led_w(uint8_t data);
- void ball_w(uint8_t data);
- void video_ram_w(offs_t offset, uint8_t data);
- void out1_w(uint8_t data);
- void out2_w(uint8_t data);
- void note_dvsr_w(uint8_t data);
-
- TILEMAP_MAPPER_MEMBER(get_memory_offset);
- TILE_GET_INFO_MEMBER(get_tile_info);
-
- void main_map(address_map &map);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- TIMER_CALLBACK_MEMBER(interrupt_callback);
- void update_plunger();
- double calc_plunger_pos();
-
- required_device<cpu_device> m_maincpu;
- required_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_video_ram;
- output_finder<32> m_leds;
-
- attotime m_time_pushed;
- attotime m_time_released;
- uint8_t m_prev;
- uint8_t m_mask;
- int m_ball_x;
- int m_ball_y;
- tilemap_t* m_bg_tilemap;
- emu_timer *m_interrupt_timer;
-};
-
-/*----------- defined in audio/videopin.c -----------*/
-DISCRETE_SOUND_EXTERN( videopin_discrete );
-
-#endif // MAME_INCLUDES_VIDEOPIN_H
diff --git a/src/mame/includes/vigilant.h b/src/mame/includes/vigilant.h
deleted file mode 100644
index 7f7ac6cc8cf..00000000000
--- a/src/mame/includes/vigilant.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Balfour
-#ifndef MAME_INCLUDES_VIGILANT_H
-#define MAME_INCLUDES_VIGILANT_H
-
-#pragma once
-
-#include "audio/m72.h"
-#include "emupal.h"
-
-class vigilant_state : public driver_device
-{
-public:
- vigilant_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audio(*this, "m72"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_generic_paletteram_8(*this, "paletteram"),
- m_spriteram(*this, "spriteram"),
- m_videoram(*this, "videoram")
- { }
-
- void vigilant(machine_config &config);
- void kikcubic(machine_config &config);
- void buccanrs(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<m72_audio_device> m_audio;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_shared_ptr<uint8_t> m_generic_paletteram_8;
-
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_videoram;
-
- int m_horiz_scroll_low;
- int m_horiz_scroll_high;
- int m_rear_horiz_scroll_low;
- int m_rear_horiz_scroll_high;
- int m_rear_color;
- int m_rear_disable;
- int m_rear_refresh;
- std::unique_ptr<bitmap_ind16> m_bg_bitmap;
-
- // common
- void bank_select_w(uint8_t data);
- void paletteram_w(offs_t offset, uint8_t data);
-
- // vigilant and buccanrs
- void vigilant_out2_w(uint8_t data);
- void vigilant_horiz_scroll_w(offs_t offset, uint8_t data);
- void vigilant_rear_horiz_scroll_w(offs_t offset, uint8_t data);
- void vigilant_rear_color_w(uint8_t data);
-
- // kikcubic
- void kikcubic_coin_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void video_start() override;
- virtual void video_reset() override;
-
- uint32_t screen_update_vigilant(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_kikcubic(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void update_background();
- void draw_foreground(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority, int opaque );
- void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void vigilant_postload();
-
- void buccanrs_sound_io_map(address_map &map);
- void kikcubic_io_map(address_map &map);
- void kikcubic_map(address_map &map);
- void sound_io_map(address_map &map);
- void sound_map(address_map &map);
- void vigilant_io_map(address_map &map);
- void vigilant_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_VIGILANT_H
diff --git a/src/mame/includes/vindictr.h b/src/mame/includes/vindictr.h
deleted file mode 100644
index 9394d879403..00000000000
--- a/src/mame/includes/vindictr.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Vindicators hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_VINDICTR_H
-#define MAME_INCLUDES_VINDICTR_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "audio/atarijsa.h"
-#include "video/atarimo.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class vindictr_state : public driver_device
-{
-public:
- vindictr_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_mob(*this, "mob"),
- m_jsa(*this, "jsa"),
- m_palette(*this, "palette"),
- m_paletteram(*this, "paletteram")
- { }
-
- void vindictr(machine_config &config);
-
- void init_vindictr();
-
-private:
- virtual void machine_reset() override;
- virtual void video_start() override;
- void scanline_interrupt();
- void scanline_int_ack_w(uint16_t data);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
- uint16_t port1_r();
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- uint32_t screen_update_vindictr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void vindictr_paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- static const atari_motion_objects_config s_mob_config;
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_motion_objects_device> m_mob;
- required_device<atari_jsa_i_device> m_jsa;
- required_device<palette_device> m_palette;
- required_shared_ptr<uint16_t> m_paletteram;
-
- uint8_t m_playfield_tile_bank;
- uint16_t m_playfield_xscroll;
- uint16_t m_playfield_yscroll;
-};
-
-#endif // MAME_INCLUDES_VINDICTR_H
diff --git a/src/mame/includes/vip.h b/src/mame/includes/vip.h
deleted file mode 100644
index 785df2b45ba..00000000000
--- a/src/mame/includes/vip.h
+++ /dev/null
@@ -1,135 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#pragma once
-
-#ifndef MAME_INCLUDES_VIP_H
-#define MAME_INCLUDES_VIP_H
-
-#include "bus/vip/byteio.h"
-#include "bus/vip/exp.h"
-#include "cpu/cosmac/cosmac.h"
-#include "imagedev/cassette.h"
-#include "imagedev/snapquik.h"
-#include "machine/ram.h"
-#include "sound/discrete.h"
-#include "video/cdp1861.h"
-
-#define SCREEN_TAG "screen"
-#define CDP1802_TAG "u1"
-#define CDP1861_TAG "u2"
-#define DISCRETE_TAG "discrete"
-
-
-class vip_state : public driver_device
-{
-public:
- vip_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, CDP1802_TAG)
- , m_vdc(*this, CDP1861_TAG)
- , m_cassette(*this, "cassette")
- , m_beeper(*this, DISCRETE_TAG)
- , m_byteio(*this, VIP_BYTEIO_PORT_TAG)
- , m_exp(*this, VIP_EXPANSION_SLOT_TAG)
- , m_ram(*this, RAM_TAG)
- , m_rom(*this, CDP1802_TAG)
- , m_chip8(*this, "chip8")
- , m_chip8x(*this, "chip8x")
- , m_run(*this, "RUN")
- , m_keypad(*this, "KEYPAD")
- , m_io_beeper(*this, "BEEPER")
- , m_8000(1)
- , m_vdc_int(CLEAR_LINE)
- , m_vdc_dma_out(CLEAR_LINE)
- , m_vdc_ef1(CLEAR_LINE)
- , m_exp_int(CLEAR_LINE)
- , m_exp_dma_out(CLEAR_LINE)
- , m_exp_dma_in(CLEAR_LINE)
- , m_byteio_ef3(CLEAR_LINE)
- , m_byteio_ef4(CLEAR_LINE)
- , m_exp_ef1(CLEAR_LINE)
- , m_exp_ef3(CLEAR_LINE)
- , m_exp_ef4(CLEAR_LINE)
- , m_leds(*this, "led%u", 0U)
- { }
-
- void vp111(machine_config &config);
- void vip(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(reset_w);
- DECLARE_INPUT_CHANGED_MEMBER(beeper_w);
-
-private:
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void update_interrupts();
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
- uint8_t io_r(offs_t offset);
- void io_w(offs_t offset, uint8_t data);
-
- DECLARE_READ_LINE_MEMBER(clear_r);
- DECLARE_READ_LINE_MEMBER(ef1_r);
- DECLARE_READ_LINE_MEMBER(ef2_r);
- DECLARE_READ_LINE_MEMBER(ef3_r);
- DECLARE_READ_LINE_MEMBER(ef4_r);
- DECLARE_WRITE_LINE_MEMBER(q_w);
-
- DECLARE_WRITE_LINE_MEMBER(vdc_int_w);
- DECLARE_WRITE_LINE_MEMBER(vdc_dma_out_w);
- DECLARE_WRITE_LINE_MEMBER(vdc_ef1_w);
-
- DECLARE_WRITE_LINE_MEMBER(byteio_inst_w);
-
- DECLARE_WRITE_LINE_MEMBER(exp_int_w );
- DECLARE_WRITE_LINE_MEMBER(exp_dma_out_w);
- DECLARE_WRITE_LINE_MEMBER(exp_dma_in_w);
-
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- void vip_io(address_map &map);
- void vip_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<cosmac_device> m_maincpu;
- required_device<cdp1861_device> m_vdc;
- required_device<cassette_image_device> m_cassette;
- required_device<discrete_sound_device> m_beeper;
- required_device<vip_byteio_port_device> m_byteio;
- required_device<vip_expansion_slot_device> m_exp;
- required_device<ram_device> m_ram;
- required_memory_region m_rom;
- required_memory_region m_chip8;
- required_memory_region m_chip8x;
- required_ioport m_run;
- required_ioport m_keypad;
- required_ioport m_io_beeper;
-
- // memory state
- int m_8000;
-
- // interrupt state
- int m_vdc_int;
- int m_vdc_dma_out;
- int m_vdc_ef1;
- int m_exp_int;
- int m_exp_dma_out;
- int m_exp_dma_in;
- int m_byteio_ef3;
- int m_byteio_ef4;
- int m_exp_ef1;
- int m_exp_ef3;
- int m_exp_ef4;
-
- // keyboard state
- int m_keylatch;
-
- // expansion state
- uint8_t m_byteio_data;
- output_finder<3> m_leds;
-};
-
-#endif
diff --git a/src/mame/includes/vixen.h b/src/mame/includes/vixen.h
deleted file mode 100644
index 0e244ad9d6c..00000000000
--- a/src/mame/includes/vixen.h
+++ /dev/null
@@ -1,140 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_VIXEN_H
-#define MAME_INCLUDES_VIXEN_H
-
-#pragma once
-
-#include "bus/rs232/rs232.h"
-#include "cpu/z80/z80.h"
-#include "imagedev/floppy.h"
-#include "machine/i8155.h"
-#include "machine/i8251.h"
-#include "machine/timer.h"
-#include "bus/ieee488/ieee488.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-#include "sound/discrete.h"
-#include "emupal.h"
-
-#define Z8400A_TAG "5f"
-#define FDC1797_TAG "5n"
-#define P8155H_TAG "2n"
-#define P8155H_IO_TAG "c7"
-#define P8251A_TAG "c3"
-#define DISCRETE_TAG "discrete"
-#define SCREEN_TAG "screen"
-#define RS232_TAG "rs232"
-
-class vixen_state : public driver_device
-{
-public:
- vixen_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, Z8400A_TAG)
- , m_fdc(*this, FDC1797_TAG)
- , m_io_i8155(*this, P8155H_IO_TAG)
- , m_usart(*this, P8251A_TAG)
- , m_discrete(*this, DISCRETE_TAG)
- , m_ieee488(*this, IEEE488_TAG)
- , m_palette(*this, "palette")
- , m_ram(*this, RAM_TAG)
- , m_floppy0(*this, FDC1797_TAG":0")
- , m_floppy1(*this, FDC1797_TAG":1")
- , m_rs232(*this, RS232_TAG)
- , m_rom(*this, Z8400A_TAG)
- , m_sync_rom(*this, "video")
- , m_char_rom(*this, "chargen")
- , m_video_ram(*this, "video_ram")
- , m_key(*this, "KEY.%u", 0)
- , m_cmd_d1(0)
- , m_fdint(0)
- , m_vsync(0)
- , m_srq(1)
- , m_atn(1)
- , m_rxrdy(0)
- , m_txrdy(0)
- { }
-
- void vixen(machine_config &config);
-
- void init_vixen();
-
-private:
- uint8_t status_r();
- void cmd_w(uint8_t data);
- uint8_t ieee488_r();
- uint8_t port3_r();
- uint8_t i8155_pa_r();
- void i8155_pb_w(uint8_t data);
- void i8155_pc_w(uint8_t data);
- void io_i8155_pb_w(uint8_t data);
- void io_i8155_pc_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( io_i8155_to_w );
- DECLARE_WRITE_LINE_MEMBER( srq_w );
- DECLARE_WRITE_LINE_MEMBER( atn_w );
- DECLARE_WRITE_LINE_MEMBER( rxrdy_w );
- DECLARE_WRITE_LINE_MEMBER( txrdy_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_intrq_w );
- TIMER_DEVICE_CALLBACK_MEMBER(vsync_tick);
- IRQ_CALLBACK_MEMBER(vixen_int_ack);
- uint8_t opram_r(offs_t offset);
- uint8_t oprom_r(offs_t offset);
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void bios_mem(address_map &map);
- void vixen_io(address_map &map);
- void vixen_mem(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<fd1797_device> m_fdc;
- required_device<i8155_device> m_io_i8155;
- required_device<i8251_device> m_usart;
- required_device<discrete_sound_device> m_discrete;
- required_device<ieee488_device> m_ieee488;
- required_device<palette_device> m_palette;
- required_device<ram_device> m_ram;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<rs232_port_device> m_rs232;
- required_region_ptr<uint8_t> m_rom;
- required_region_ptr<uint8_t> m_sync_rom;
- required_region_ptr<uint8_t> m_char_rom;
- required_shared_ptr<uint8_t> m_video_ram;
- required_ioport_array<8> m_key;
-
- address_space *m_program;
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void update_interrupt();
-
- // keyboard state
- uint8_t m_col;
-
- // interrupt state
- int m_cmd_d0;
- int m_cmd_d1;
-
- bool m_fdint;
- int m_vsync;
-
- int m_srq;
- int m_atn;
- int m_enb_srq_int;
- int m_enb_atn_int;
-
- int m_rxrdy;
- int m_txrdy;
- int m_int_clk;
- int m_enb_xmt_int;
- int m_enb_rcv_int;
- int m_enb_ring_int;
-
- // video state
- bool m_alt;
- bool m_256;
-};
-
-#endif // MAME_INCLUDES_VIXEN_H
diff --git a/src/mame/includes/volfied.h b/src/mame/includes/volfied.h
deleted file mode 100644
index 7fc971ff18e..00000000000
--- a/src/mame/includes/volfied.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail, Nicola Salmoria
-/*************************************************************************
-
- Volfied
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_VOLFIED_H
-#define MAME_INCLUDES_VOLFIED_H
-
-#pragma once
-
-#include "machine/taitocchip.h"
-#include "video/pc090oj.h"
-#include "screen.h"
-#include "machine/timer.h"
-
-class volfied_state : public driver_device
-{
-public:
- volfied_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_cchip(*this, "cchip"),
- m_pc090oj(*this, "pc090oj"),
- m_screen(*this, "screen"),
- m_cchip_irq_clear(*this, "cchip_irq_clear")
- { }
-
- void volfied(machine_config &config);
-
-protected:
- enum
- {
- TIMER_VOLFIED
- };
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- uint16_t video_ram_r(offs_t offset);
- void video_ram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void video_ctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t video_ctrl_r();
- void video_mask_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void counters_w(uint8_t data);
- void volfied_colpri_cb(u32 &sprite_colbank, u32 &pri_mask, u16 sprite_ctrl);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(cchip_irq_clear_cb);
-
- void refresh_pixel_layer( bitmap_ind16 &bitmap );
-
- void main_map(address_map &map);
- void z80_map(address_map &map);
-
- /* memory pointers */
- std::unique_ptr<uint16_t[]> m_video_ram;
-
- /* video-related */
- uint16_t m_video_ctrl;
- uint16_t m_video_mask;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<taito_cchip_device> m_cchip;
- required_device<pc090oj_device> m_pc090oj;
- required_device<screen_device> m_screen;
-
- required_device<timer_device> m_cchip_irq_clear;
-};
-
-#endif // MAME_INCLUDES_VOLFIED_H
diff --git a/src/mame/includes/vp415.h b/src/mame/includes/vp415.h
deleted file mode 100644
index 86f3a88687b..00000000000
--- a/src/mame/includes/vp415.h
+++ /dev/null
@@ -1,281 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz
-/***************************************************************************
-
- Skeleton driver for Philips VP415 LV ROM Player
-
- List of Modules:
- A - Audio Processor
- B - RGB
- C - Video Processor
- D - Ref Source
- E - Slide Drive
- F - Motor+Sequence
- G - Gen Lock
- H - ETBC B
- I - ETBC C
- J - Focus
- K - HF Processor
- L - Video Dropout Correction
- M - Radial
- N - Display Keyboard
- P - Front Loader
- Q - RC5 Mirror
- R - Drive Processor
- S - Control
- T - Supply
- U - Analog I/O
- V - Module Carrier
- W - CPU Datagrabber
- X - LV ROM
- Y - Vid Mix
- Z - Deck Electronics
-
- TODO:
- - Driver currently fails the initial self-test with code 073. Per
- the service manual, code 73 means "a/d converted mirror pos. min.
- (out of field of view)".
-
-***************************************************************************/
-
-#ifndef MAME_INCLUDES_VP415_H
-#define MAME_INCLUDES_VP415_H
-
-#pragma once
-
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/mcs48/mcs48.h"
-#include "cpu/z80/z80.h"
-
-#include "machine/i8155.h"
-#include "machine/i8255.h"
-#include "machine/ncr5385.h"
-#include "machine/saa1043.h"
-
-#include "video/mb88303.h"
-
-#include "screen.h"
-
-
-class vp415_state : public driver_device
-{
-public:
- vp415_state(const machine_config &mconfig, device_type type, const char *tag);
-
- void vp415(machine_config &config);
-
- static const char *const DATACPU_TAG;
- static const char *const DATAMCU_TAG;
-
- static const char *const DESCRAMBLE_ROM_TAG;
- static const char *const SYNC_ROM_TAG;
- static const char *const DRIVE_ROM_TAG;
-
- static const char *const CTRLMCU_TAG;
- static const char *const CONTROL_ROM_TAG;
-
- static const char *const SWITCHES_TAG;
-
-private:
- void machine_reset() override;
- void machine_start() override;
- void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void sel34_w(uint8_t data);
- uint8_t sel37_r();
-
- DECLARE_WRITE_LINE_MEMBER(cpu_int1_w);
-
- void data_mcu_port1_w(uint8_t data);
- uint8_t data_mcu_port1_r();
- void data_mcu_port2_w(uint8_t data);
- uint8_t data_mcu_port2_r();
-
- void ctrl_regs_w(offs_t offset, uint8_t data);
- uint8_t ctrl_regs_r(offs_t offset);
- void ctrl_cpu_port1_w(uint8_t data);
- uint8_t ctrl_cpu_port1_r();
- void ctrl_cpu_port3_w(uint8_t data);
- uint8_t ctrl_cpu_port3_r();
-
- void ctrl_mcu_port1_w(uint8_t data);
- uint8_t ctrl_mcu_port1_r();
- void ctrl_mcu_port2_w(uint8_t data);
- uint8_t ctrl_mcu_port2_r();
-
- uint8_t drive_i8155_pb_r();
- uint8_t drive_i8155_pc_r();
-
- void drive_i8255_pa_w(uint8_t data);
- void drive_i8255_pb_w(uint8_t data);
- uint8_t drive_i8255_pc_r();
- void drive_cpu_port1_w(uint8_t data);
- void drive_cpu_port3_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(refv_w);
-
- // CPU Board enums
- enum
- {
- SEL34_INTR_N = 0x01,
- SEL34_RES = 0x20,
- SEL34_ERD = 0x40,
- SEL34_ENW = 0x80,
- SEL34_INTR_N_BIT = 0,
- SEL34_RES_BIT = 5,
- SEL34_ERD_BIT = 6,
- SEL34_ENW_BIT = 7,
- };
-
- enum
- {
- SEL37_ID0 = 0x01,
- SEL37_ID1 = 0x02,
- SEL37_BRD = 0x10,
- SEL37_MON_N = 0x20,
- SEL37_SK1c = 0x40,
- SEL37_SK1d = 0x40,
-
- SEL37_ID0_BIT = 0,
- SEL37_ID1_BIT = 1,
- SEL37_BRD_BIT = 4,
- SEL37_MON_N_BIT = 5,
- SEL37_SK1c_BIT = 6,
- SEL37_SK1d_BIT = 7,
- };
-
- // Control Board enums
- enum
- {
- CTRL_P3_INT1 = 0x08,
-
- CTRL_P3_INT1_BIT = 3
- };
-
- // Drive Board enums
- enum
- {
- I8255PC_NOT_FOCUSED = 0x02,
- I8255PC_0RPM_N = 0x08,
- I8255PC_DISC_REFLECTION = 0x10,
- };
-
- enum
- {
- I8255PB_COMM1 = 0x01,
- I8255PB_COMM2 = 0x02,
- I8255PB_COMM3 = 0x04,
- I8255PB_COMM4 = 0x08,
- I8255PB_RLS_N = 0x10,
- I8255PB_SL_PWR = 0x20,
- I8255PB_RAD_FS_N = 0x40,
- I8255PB_STR1 = 0x80,
-
- I8255PB_COMM1_BIT = 0,
- I8255PB_COMM2_BIT = 1,
- I8255PB_COMM3_BIT = 2,
- I8255PB_COMM4_BIT = 3,
- I8255PB_RLS_N_BIT = 4,
- I8255PB_SL_PWR_BIT = 5,
- I8255PB_RAD_FS_N_BIT = 6,
- I8255PB_STR1_BIT = 7,
- };
-
- enum
- {
- I8155PB_2PPR = 0x01,
- I8155PB_RAD_MIR = 0x04,
- I8155PB_FRLOCK = 0x08,
-
- I8155PB_2PPR_BIT = 0,
- I8155PB_RAD_MIR_BIT = 2,
- I8155PB_FRLOCK_BIT = 3,
- };
-
- enum
- {
- DRIVE_P1_CP1 = 0x01,
- DRIVE_P1_CP2 = 0x02,
- DRIVE_P1_LDI = 0x04,
- DRIVE_P1_ATN_N = 0x08,
- DRIVE_P1_TX = 0x10,
- DRIVE_P1_STB_N = 0x20,
- DRIVE_P1_STR0_N = 0x40,
- DRIVE_P1_TP2 = 0x80,
-
- DRIVE_P1_CP1_BIT = 0,
- DRIVE_P1_CP2_BIT = 1,
- DRIVE_P1_LDI_BIT = 2,
- DRIVE_P1_ATN_N_BIT = 3,
- DRIVE_P1_TX_BIT = 4,
- DRIVE_P1_STB_N_BIT = 5,
- DRIVE_P1_STR0_N_BIT = 6,
- DRIVE_P1_TP2_BIT = 7
- };
-
- virtual void video_start() override;
-
- void z80_program_map(address_map &map);
- void z80_io_map(address_map &map);
- void datamcu_program_map(address_map &map);
- void set_int_line(uint8_t line, uint8_t value);
- void update_cpu_int();
-
- void ctrl_program_map(address_map &map);
- void ctrl_io_map(address_map &map);
- void ctrlmcu_program_map(address_map &map);
- void sd_w(uint8_t data);
- uint8_t sd_r();
-
- void drive_program_map(address_map &map);
- void drive_io_map(address_map &map);
-
- required_device<z80_device> m_datacpu;
- required_device<i8041a_device> m_datamcu;
- required_device<ncr5385_device> m_scsi;
- required_device<i8031_device> m_drivecpu;
- required_device<i8031_device> m_ctrlcpu;
- required_device<i8041a_device> m_ctrlmcu;
- required_device<mb88303_device> m_chargen;
- required_shared_ptr<uint8_t> m_mainram;
- required_shared_ptr<uint8_t> m_ctrlram;
- required_ioport m_switches;
-
- uint8_t m_sel34;
- uint8_t m_sel37;
-
- uint8_t m_int_lines[2];
-
- uint8_t m_refv;
-
- uint8_t m_ctrl_cpu_p1;
- uint8_t m_ctrl_cpu_p3;
- uint8_t m_ctrl_mcu_p1;
- uint8_t m_ctrl_mcu_p2;
-
- uint8_t m_drive_p1;
- uint8_t m_drive_pc_bits;
-
- uint8_t m_drive_rad_mir_dac;
- uint8_t m_drive_i8255_pb;
- emu_timer *m_drive_2ppr_timer;
- uint8_t m_drive_2ppr;
-
- static const char *const DATARAM_TAG;
- static const char *const SCSI_TAG;
-
- static const char *const CTRLCPU_TAG;
- static const char *const CTRLRAM_TAG;
-
- static const char *const DRIVECPU_TAG;
- static const char *const I8155_TAG;
- static const char *const I8255_TAG;
- static const char *const CHARGEN_TAG;
- static const char *const SYNCGEN_TAG;
-
- static const device_timer_id DRIVE_2PPR_ID;
-};
-
-#endif // MAME_INCLUDES_VP415_H
diff --git a/src/mame/includes/vsmile.h b/src/mame/includes/vsmile.h
deleted file mode 100644
index 3b43f1e3e1b..00000000000
--- a/src/mame/includes/vsmile.h
+++ /dev/null
@@ -1,182 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz
-/******************************************************************************
-
- V-Tech V.Smile console emulation
- V-Tech V.Smile Baby console emulation
-
- Similar Systems:
-
- V.Smile Pocket
- V.Smile Cyber Pocket
- V.Smile PC Pal
- V-Motion Active Learning System
- V.Flash
- V.Baby
- Leapfrog Leapster
-
-*******************************************************************************/
-
-#ifndef MAME_INCLUDES_VSMILE_H
-#define MAME_INCLUDES_VSMILE_H
-
-#include "bus/vsmile/vsmile_ctrl.h"
-#include "bus/vsmile/vsmile_slot.h"
-#include "bus/vsmile/rom.h"
-
-#include "cpu/unsp/unsp.h"
-
-#include "machine/bankdev.h"
-#include "machine/spg2xx.h"
-
-#include "screen.h"
-
-class vsmile_base_state : public driver_device
-{
-public:
- vsmile_base_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_screen(*this, "screen")
- , m_bankdev(*this, "bank")
- , m_cart(*this, "cartslot")
- , m_system_region(*this, "sysrom")
- { }
-
- void vsmile_base(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
- void mem_map(address_map &map);
-
- void chip_sel_w(uint8_t data);
-
- uint16_t bank3_r(offs_t offset);
-
- required_device<spg2xx_device> m_maincpu;
- required_device<screen_device> m_screen;
- required_device<address_map_bank_device> m_bankdev;
- required_device<vsmile_cart_slot_device> m_cart;
- required_memory_region m_system_region;
-};
-
-class vsmile_state : public vsmile_base_state
-{
-public:
- vsmile_state(const machine_config &mconfig, device_type type, const char *tag)
- : vsmile_base_state(mconfig, type, tag)
- , m_ctrl(*this, "ctrl%u", 1U)
- , m_dsw_region(*this, "REGION")
- , m_redled(*this, "redled%u", 1U)
- , m_yellowled(*this, "yellowled%u", 1U)
- , m_blueled(*this, "blueled%u", 1U)
- , m_greenled(*this, "greenled%u", 1U)
- { }
-
- void vsmile(machine_config &config);
- void vsmilep(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void banked_map(address_map &map);
-
- void ctrl_tx_w(uint8_t data);
- template <int Which> DECLARE_WRITE_LINE_MEMBER(ctrl_rts_w);
-
- uint16_t portb_r();
- void portb_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t portc_r();
- void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void uart_rx(uint8_t data);
-
- enum
- {
- VSMILE_PORTB_CS1 = 0x01,
- VSMILE_PORTB_CS2 = 0x02,
- VSMILE_PORTB_CART = 0x04,
- VSMILE_PORTB_RESET = 0x08,
- VSMILE_PORTB_FRONT24 = 0x10,
- VSMILE_PORTB_OFF = 0x20,
- VSMILE_PORTB_OFF_SW = 0x40,
- VSMILE_PORTB_ON_SW = 0x80,
-
- VSMILE_PORTC_VER = 0x0f,
- VSMILE_PORTC_LOGO = 0x10,
- VSMILE_PORTC_TEST = 0x20,
- VSMILE_PORTC_AMP = 0x40,
- VSMILE_PORTC_SYSRESET = 0x80,
- };
-
- required_device_array<vsmile_ctrl_port_device, 2> m_ctrl;
- required_ioport m_dsw_region;
-
- output_finder<2> m_redled;
- output_finder<2> m_yellowled;
- output_finder<2> m_blueled;
- output_finder<2> m_greenled;
-
- bool m_ctrl_rts[2];
- bool m_ctrl_select[2];
-};
-
-class vsmilem_state : public vsmile_state
-{
-public:
- vsmilem_state(const machine_config &mconfig, device_type type, const char *tag)
- : vsmile_state(mconfig, type, tag)
- { }
-
- void vsmilem(machine_config &config);
-
-protected:
- void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t porta_r(offs_t offset, uint16_t mem_mask = ~0);
-};
-
-class vsmileb_state : public vsmile_base_state
-{
-public:
- vsmileb_state(const machine_config &mconfig, device_type type, const char *tag)
- : vsmile_base_state(mconfig, type, tag)
- , m_io_logo(*this, "LOGO")
- { }
-
- void vsmileb(machine_config &config);
- void vsmilebp(machine_config &config);
-
- enum : uint16_t
- {
- BUTTON_YELLOW = 0x01fe,
- BUTTON_BLUE = 0x03ee,
- BUTTON_ORANGE = 0x03de,
- BUTTON_GREEN = 0x03be,
- BUTTON_RED = 0x02fe,
- BUTTON_CLOUD = 0x03f6,
- BUTTON_BALL = 0x03fa,
- BUTTON_EXIT = 0x03fc
- };
-
- DECLARE_INPUT_CHANGED_MEMBER(pad_button_changed);
-
- // make slide switches usable on a keyboard
- template <uint16_t V> DECLARE_INPUT_CHANGED_MEMBER(sw_mode);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void banked_map(address_map &map);
-
- uint16_t porta_r();
- uint16_t portb_r();
-
- required_ioport m_io_logo;
-
- uint16_t m_mode;
-};
-
-#endif // MAME_INCLUDES_VSMILE_H
diff --git a/src/mame/includes/vsnes.h b/src/mame/includes/vsnes.h
deleted file mode 100644
index ad323775ade..00000000000
--- a/src/mame/includes/vsnes.h
+++ /dev/null
@@ -1,158 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Pierpaolo Prazzoli
-
-#include "sound/sn76496.h"
-#include "video/ppu2c0x.h"
-
-class vsnes_state : public driver_device
-{
-public:
- vsnes_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "sub")
- , m_ppu1(*this, "ppu1")
- , m_ppu2(*this, "ppu2")
- , m_sn1(*this, "sn1")
- , m_sn2(*this, "sn2")
- , m_work_ram(*this, "work_ram")
- , m_work_ram_1(*this, "work_ram_1")
- , m_gfx1_rom(*this, "gfx1")
- , m_chr_banks(*this, "chr%u", 0U)
- , m_bank_vrom(*this, "vrom%u", 0U)
- {
- }
-
- void vsdual(machine_config &config);
- void vsgshoe(machine_config &config);
- void vsnes(machine_config &config);
- void vsdual_pi(machine_config &config);
- void topgun(machine_config &config);
- void mightybj(machine_config &config);
- void vsnes_bootleg(machine_config &config);
- void jajamaru(machine_config &config);
-
- void init_vskonami();
- void init_vsvram();
- void init_bnglngby();
- void init_drmario();
- void init_MMC3();
- void init_vsfdf();
- void init_tkoboxng();
- void init_vsgun();
- void init_supxevs();
- void init_vsgshoe();
- void init_vsnormal();
- void init_platoon();
- void init_rbibb();
- void init_vsdual();
- void init_bootleg();
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_subcpu;
- required_device<ppu2c0x_device> m_ppu1;
- optional_device<ppu2c0x_device> m_ppu2;
- optional_device<sn76489_device> m_sn1;
- optional_device<sn76489_device> m_sn2;
-
- required_shared_ptr<uint8_t> m_work_ram;
- optional_shared_ptr<uint8_t> m_work_ram_1;
-
- optional_memory_region m_gfx1_rom;
- memory_bank_array_creator<8> m_chr_banks;
-
- void sprite_dma_0_w(address_space &space, uint8_t data);
- void sprite_dma_1_w(address_space &space, uint8_t data);
- void vsnes_coin_counter_w(uint8_t data);
- uint8_t vsnes_coin_counter_r();
- void vsnes_coin_counter_1_w(uint8_t data);
- void vsnes_in0_w(uint8_t data);
- uint8_t vsnes_in0_r();
- uint8_t vsnes_in1_r();
- void vsnes_in0_1_w(uint8_t data);
- uint8_t vsnes_in0_1_r();
- uint8_t vsnes_in1_1_r();
- uint8_t gun_in0_r();
- void vsnes_nt0_w(offs_t offset, uint8_t data);
- void vsnes_nt1_w(offs_t offset, uint8_t data);
- uint8_t vsnes_nt0_r(offs_t offset);
- uint8_t vsnes_nt1_r(offs_t offset);
- void vsnormal_vrom_banking(uint8_t data);
- void gun_in0_w(uint8_t data);
- void vskonami_rom_banking(offs_t offset, uint8_t data);
- void vsgshoe_gun_in0_w(uint8_t data);
- void drmario_rom_banking(offs_t offset, uint8_t data);
- void vsvram_rom_banking(uint8_t data);
- void mapper4_w(offs_t offset, uint8_t data);
- uint8_t rbi_hack_r(offs_t offset);
- uint8_t supxevs_read_prot_1_r();
- uint8_t supxevs_read_prot_2_r();
- uint8_t supxevs_read_prot_3_r();
- uint8_t supxevs_read_prot_4_r();
- uint8_t tko_security_r(offs_t offset);
- void mapper68_rom_banking(offs_t offset, uint8_t data);
- void set_bnglngby_irq_w(uint8_t data);
- uint8_t set_bnglngby_irq_r();
- void vsdual_vrom_banking_main(uint8_t data);
- void vsdual_vrom_banking_sub(uint8_t data);
- void vssmbbl_sn_w(offs_t offset, uint8_t data);
- void v_set_mirroring(int ppu, int mirroring);
-
- DECLARE_MACHINE_START(vsnes);
- DECLARE_MACHINE_RESET(vsnes);
- DECLARE_MACHINE_START(vsdual);
- DECLARE_MACHINE_RESET(vsdual);
- DECLARE_MACHINE_START(bootleg);
- void v_set_videorom_bank( int start, int count, int vrom_start_bank );
- void mapper4_set_prg( );
- void mapper4_set_chr( );
- void mapper4_irq( int scanline, int vblank, int blanked );
-
- void bootleg_sound_write(offs_t offset, uint8_t data);
- uint8_t vsnes_bootleg_z80_data_r();
- uint8_t vsnes_bootleg_z80_address_r(offs_t offset);
- void vsnes_bootleg_scanline(int scanline, int vblank, int blanked);
- uint8_t vsnes_bootleg_ppudata();
-
- void vsnes_bootleg_z80_map(address_map &map);
- void vsnes_cpu1_bootleg_map(address_map &map);
- void vsnes_cpu1_map(address_map &map);
- void vsnes_cpu2_map(address_map &map);
-
- int m_coin;
- int m_do_vrom_bank;
- int m_input_latch[4];
- int m_sound_fix;
- uint8_t m_last_bank;
- std::unique_ptr<uint8_t[]> m_vram;
- std::unique_ptr<uint8_t[]> m_extraram;
- uint8_t* m_vrom[2];
- std::unique_ptr<uint8_t[]> m_nt_ram[2];
- memory_bank_array_creator<8> m_bank_vrom;
- uint8_t* m_nt_page[2][4];
- uint32_t m_vrom_size[2];
- int m_vrom_banks;
- int m_zapstore;
- int m_old_bank;
- int m_drmario_shiftreg;
- int m_drmario_shiftcount;
- int m_size16k;
- int m_switchlow;
- int m_vrom4k;
- int m_MMC3_cmd;
- int m_MMC3_prg_bank[4];
- int m_MMC3_chr_bank[6];
- int m_MMC3_prg_mask;
- int m_IRQ_enable;
- int m_IRQ_count;
- int m_IRQ_count_latch;
- int m_VSindex;
- int m_supxevs_prot_index;
- int m_security_counter;
- int m_ret;
-
- uint8_t m_bootleg_sound_offset;
- uint8_t m_bootleg_sound_data;
- int m_bootleg_latched_scanline;
-};
diff --git a/src/mame/includes/vtech2.h b/src/mame/includes/vtech2.h
deleted file mode 100644
index f59d0535de8..00000000000
--- a/src/mame/includes/vtech2.h
+++ /dev/null
@@ -1,119 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Juergen Buchmueller
-/*****************************************************************************
- *
- * includes/vtech2.h
- *
- ****************************************************************************/
-#ifndef MAME_INCLUDES_VTECH2_H
-#define MAME_INCLUDES_VTECH2_H
-
-#pragma once
-
-#include "machine/bankdev.h"
-#include "bus/generic/carts.h"
-#include "bus/generic/slot.h"
-#include "bus/vtech/ioexp/ioexp.h"
-#include "imagedev/cassette.h"
-#include "imagedev/flopdrv.h"
-#include "sound/spkrdev.h"
-#include "emupal.h"
-
-#define TRKSIZE_FM 3172 /* size of a standard FM mode track */
-
-class vtech2_state : public driver_device
-{
-public:
- vtech2_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_speaker(*this, "speaker")
- , m_cassette(*this, "cassette")
- , m_cart(*this, "cartslot")
- , m_laser_file(*this, "floppy%u", 0U)
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_vram(*this, "videoram")
- , m_io_keyboard(*this, {"ROW0", "ROW1", "ROW2", "ROW3", "ROW4", "ROW5", "ROW6", "ROW7", "ROWD", "ROWC", "ROWB", "ROWA"})
- , m_banka(*this, "banka")
- , m_bankb(*this, "bankb")
- , m_bankc(*this, "bankc")
- , m_bankd(*this, "bankd")
- , m_ioexp(*this, "io")
- { }
-
- void laser350(machine_config &config);
- void laser700(machine_config &config);
- void laser500(machine_config &config);
-
- void init_laser();
-
- DECLARE_INPUT_CHANGED_MEMBER(reset_button);
-
-protected:
- virtual void machine_reset() override;
- virtual void machine_start() override;
-
-private:
- void laser_fdc_w(offs_t offset, uint8_t data);
- void laser_bg_mode_w(uint8_t data);
- void laser_two_color_w(uint8_t data);
- uint8_t laser_fdc_r(offs_t offset);
- void vtech2_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void mmio_w(uint8_t data);
- uint8_t mmio_r(offs_t offset);
- uint8_t cart_r(offs_t offset);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load);
-
- void laser_get_track();
- void laser_put_track();
-
- void io_map(address_map &map);
- void mem_map(address_map &map);
- void m_map350(address_map &map);
- void m_map500(address_map &map);
- void m_map700(address_map &map);
-
- void init_waitstates();
-
- required_device<cpu_device> m_maincpu;
- required_device<speaker_sound_device> m_speaker;
- required_device<cassette_image_device> m_cassette;
- required_device<generic_slot_device> m_cart;
- optional_device_array<legacy_floppy_image_device, 2> m_laser_file;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_shared_ptr<u8> m_vram;
- required_ioport_array<12> m_io_keyboard;
- required_device<address_map_bank_device> m_banka;
- required_device<address_map_bank_device> m_bankb;
- required_device<address_map_bank_device> m_bankc;
- required_device<address_map_bank_device> m_bankd;
- required_device<vtech_ioexp_slot_device> m_ioexp;
-
- char m_laser_frame_message[64+1];
- int m_laser_frame_time;
- u8 m_laser_latch;
- uint8_t m_laser_track_x2[2];
- uint8_t m_laser_fdc_status;
- uint8_t m_laser_fdc_data[TRKSIZE_FM];
- int m_laser_data;
- int m_laser_fdc_edge;
- int m_laser_fdc_bits;
- int m_laser_drive;
- int m_laser_fdc_start;
- int m_laser_fdc_write;
- int m_laser_fdc_offs;
- int m_laser_fdc_latch;
- int m_level_old;
- int m_cassette_bit;
- int m_laser_bg_mode;
- int m_laser_two_color;
- u8 m_language;
- u32 m_cart_size;
-
- memory_region *m_cart_rom;
-};
-
-#endif // MAME_INCLUDES_VTECH2_H
diff --git a/src/mame/includes/vulgus.h b/src/mame/includes/vulgus.h
deleted file mode 100644
index edb42b07c87..00000000000
--- a/src/mame/includes/vulgus.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mirko Buffoni
-/***************************************************************************
-
- Capcom Vulgus hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_VULGUS_H
-#define MAME_INCLUDES_VULGUS_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class vulgus_state : public driver_device
-{
-public:
- vulgus_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_scroll_low(*this, "scroll_low"),
- m_scroll_high(*this, "scroll_high"),
- m_spriteram(*this, "spriteram"),
- m_fgvideoram(*this, "fgvideoram"),
- m_bgvideoram(*this, "bgvideoram")
- { }
-
- void vulgus(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_scroll_low;
- required_shared_ptr<uint8_t> m_scroll_high;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_bgvideoram;
-
- int m_palette_bank;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
-
- void fgvideoram_w(offs_t offset, uint8_t data);
- void bgvideoram_w(offs_t offset, uint8_t data);
- void c804_w(uint8_t data);
- void palette_bank_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void video_start() override;
- void vulgus_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(vblank_irq);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_VULGUS_H
diff --git a/src/mame/includes/warpwarp.h b/src/mame/includes/warpwarp.h
deleted file mode 100644
index f575aac48b0..00000000000
--- a/src/mame/includes/warpwarp.h
+++ /dev/null
@@ -1,129 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Chris Hardy
-#ifndef MAME_INCLUDES_WARPWARP_H
-#define MAME_INCLUDES_WARPWARP_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/watchdog.h"
-#include "audio/geebee.h"
-#include "audio/warpwarp.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class warpwarp_state : public driver_device
-{
-public:
- warpwarp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_watchdog(*this, "watchdog"),
- m_gfxdecode(*this, "gfxdecode"),
- m_warpwarp_sound(*this, "warpwarp_custom"),
- m_geebee_sound(*this, "geebee_custom"),
- m_geebee_videoram(*this, "geebee_videoram"),
- m_videoram(*this, "videoram"),
- m_palette(*this, "palette"),
- m_latch(*this, "latch"),
- m_in0(*this, "IN0"),
- m_in1(*this, "IN1"),
- m_in2(*this, "IN2"),
- m_dsw1(*this, "DSW1"),
- m_volin1(*this, "VOLIN1"),
- m_volin2(*this, "VOLIN2"),
- m_in_config(*this, "CONFIG"),
- m_ports(*this, { { "SW0", "SW1", "DSW2", "PLACEHOLDER" } }) // "IN1" & "IN2" are read separately when offset==3
- { }
-
- void warpwarp(machine_config &config);
- void geebee(machine_config &config);
- void navarone(machine_config &config);
- void sos(machine_config &config);
- void kaitei(machine_config &config);
- void bombbee(machine_config &config);
- void geebeeb(machine_config &config);
-
- void init_navarone();
- void init_geebee();
- void init_kaitein();
- void init_warpwarp();
- void init_sos();
- void init_kaitei();
- void init_bombbee();
-
-private:
- required_device<cpu_device> m_maincpu;
- optional_device<watchdog_timer_device> m_watchdog;
- required_device<gfxdecode_device> m_gfxdecode;
- optional_device<warpwarp_sound_device> m_warpwarp_sound;
- optional_device<geebee_sound_device> m_geebee_sound;
- optional_shared_ptr<uint8_t> m_geebee_videoram;
- optional_shared_ptr<uint8_t> m_videoram;
- optional_device<palette_device> m_palette;
- optional_device<ls259_device> m_latch;
- optional_ioport m_in0;
- optional_ioport m_in1;
- optional_ioport m_in2;
- optional_ioport m_dsw1;
- optional_ioport m_volin1;
- optional_ioport m_volin2;
- optional_ioport m_in_config;
- optional_ioport_array<4> m_ports;
-
- int m_geebee_bgw;
- int m_ball_on;
- int m_ball_h;
- int m_ball_v;
- int m_ball_pen;
- int m_ball_sizex;
- int m_ball_sizey;
- int m_handle_joystick;
- tilemap_t *m_bg_tilemap;
-
- // warpwarp and bombbee
- uint8_t warpwarp_sw_r(offs_t offset);
- void warpwarp_out0_w(offs_t offset, uint8_t data);
- void warpwarp_videoram_w(offs_t offset, uint8_t data);
- uint8_t warpwarp_dsw1_r(offs_t offset);
- uint8_t warpwarp_vol_r();
-
- //geebee and navarone
- uint8_t geebee_in_r(offs_t offset);
- void geebee_out6_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(counter_w);
- DECLARE_WRITE_LINE_MEMBER(lock_out_w);
- DECLARE_WRITE_LINE_MEMBER(geebee_bgw_w);
- DECLARE_WRITE_LINE_MEMBER(ball_on_w);
- DECLARE_WRITE_LINE_MEMBER(inv_w);
- void geebee_videoram_w(offs_t offset, uint8_t data);
-
- virtual void machine_start() override;
- DECLARE_MACHINE_RESET(kaitei);
-
- DECLARE_VIDEO_START(geebee);
- void geebee_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(warpwarp);
- void warpwarp_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(navarone);
- void navarone_palette(palette_device &palette) const;
- void sos_palette(palette_device &palette) const;
-
- TILEMAP_MAPPER_MEMBER(tilemap_scan);
- TILE_GET_INFO_MEMBER(geebee_get_tile_info);
- TILE_GET_INFO_MEMBER(navarone_get_tile_info);
- TILE_GET_INFO_MEMBER(warpwarp_get_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- inline void plot(bitmap_ind16 &bitmap, const rectangle &cliprect, int x, int y, pen_t pen);
- void draw_ball(bitmap_ind16 &bitmap, const rectangle &cliprect,pen_t pen);
-
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
-
- void bombbee_map(address_map &map);
- void geebee_map(address_map &map);
- void geebee_port_map(address_map &map);
- void warpwarp_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_WARPWARP_H
diff --git a/src/mame/includes/warriorb.h b/src/mame/includes/warriorb.h
deleted file mode 100644
index 70e555d55ad..00000000000
--- a/src/mame/includes/warriorb.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves
-/*************************************************************************
-
- Taito Dual Screen Games
-
-*************************************************************************/
-
-#include "audio/taitosnd.h"
-#include "machine/taitoio.h"
-#include "sound/flt_vol.h"
-#include "video/tc0100scn.h"
-#include "video/tc0110pcr.h"
-#include "emupal.h"
-
-
-class warriorb_state : public driver_device
-{
-public:
- warriorb_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_tc0140syt(*this, "tc0140syt"),
- m_tc0100scn(*this, "tc0100scn_%u", 1),
- m_tc0110pcr(*this, "tc0110pcr_%u", 1),
- m_tc0220ioc(*this, "tc0220ioc"),
- m_tc0510nio(*this, "tc0510nio"),
- m_2610_l(*this, "2610.%u.l", 1),
- m_2610_r(*this, "2610.%u.r", 1),
- m_gfxdecode(*this, "gfxdecode_%u", 1),
- m_spriteram(*this, "spriteram"),
- m_z80bank(*this, "z80bank")
- { }
-
- void warriorb(machine_config &config);
- void darius2d(machine_config &config);
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<tc0140syt_device> m_tc0140syt;
- required_device_array<tc0100scn_device, 2> m_tc0100scn;
- required_device_array<tc0110pcr_device, 2> m_tc0110pcr;
- optional_device<tc0220ioc_device> m_tc0220ioc;
- optional_device<tc0510nio_device> m_tc0510nio;
- required_device_array<filter_volume_device, 2> m_2610_l;
- required_device_array<filter_volume_device, 2> m_2610_r;
- required_device_array<gfxdecode_device, 2> m_gfxdecode;
-
- /* memory pointers */
- required_shared_ptr<u16> m_spriteram;
-
- /* memory regions */
- required_memory_bank m_z80bank;
-
- /* misc */
- int m_pandata[4];
-
- void coin_control_w(u8 data);
- void sound_bankswitch_w(u8 data);
- void pancontrol_w(offs_t offset, u8 data);
- void tc0100scn_dual_screen_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- u32 screen_update_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- u32 screen_update_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int x_offs, int y_offs, int chip);
- u32 update_screen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int xoffs, int chip);
-
- void darius2d_map(address_map &map);
- void warriorb_map(address_map &map);
- void z80_sound_map(address_map &map);
-};
diff --git a/src/mame/includes/wc90.h b/src/mame/includes/wc90.h
deleted file mode 100644
index 2e1278f60da..00000000000
--- a/src/mame/includes/wc90.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-#ifndef MAME_INCLUDES_WC90_H
-#define MAME_INCLUDES_WC90_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "video/tecmo_spr.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class wc90_state : public driver_device
-{
-public:
- wc90_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sprgen(*this, "spritegen"),
- m_soundlatch(*this, "soundlatch"),
- m_fgvideoram(*this, "fgvideoram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_txvideoram(*this, "txvideoram"),
- m_scroll0xlo(*this, "scroll0xlo"),
- m_scroll0xhi(*this, "scroll0xhi"),
- m_scroll1xlo(*this, "scroll1xlo"),
- m_scroll1xhi(*this, "scroll1xhi"),
- m_scroll2xlo(*this, "scroll2xlo"),
- m_scroll2xhi(*this, "scroll2xhi"),
- m_scroll0ylo(*this, "scroll0ylo"),
- m_scroll0yhi(*this, "scroll0yhi"),
- m_scroll1ylo(*this, "scroll1ylo"),
- m_scroll1yhi(*this, "scroll1yhi"),
- m_scroll2ylo(*this, "scroll2ylo"),
- m_scroll2yhi(*this, "scroll2yhi"),
- m_spriteram(*this, "spriteram"),
- m_mainbank(*this, "mainbank"),
- m_subbank(*this, "subbank")
- { }
-
- void wc90t(machine_config &config);
- void wc90(machine_config &config);
- void pac90(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<tecmo_spr_device> m_sprgen;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_txvideoram;
- required_shared_ptr<uint8_t> m_scroll0xlo;
- required_shared_ptr<uint8_t> m_scroll0xhi;
- required_shared_ptr<uint8_t> m_scroll1xlo;
- required_shared_ptr<uint8_t> m_scroll1xhi;
- required_shared_ptr<uint8_t> m_scroll2xlo;
- required_shared_ptr<uint8_t> m_scroll2xhi;
- required_shared_ptr<uint8_t> m_scroll0ylo;
- required_shared_ptr<uint8_t> m_scroll0yhi;
- required_shared_ptr<uint8_t> m_scroll1ylo;
- required_shared_ptr<uint8_t> m_scroll1yhi;
- required_shared_ptr<uint8_t> m_scroll2ylo;
- required_shared_ptr<uint8_t> m_scroll2yhi;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_memory_bank m_mainbank;
- required_memory_bank m_subbank;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
-
- void bankswitch_w(uint8_t data);
- void bankswitch1_w(uint8_t data);
- void bgvideoram_w(offs_t offset, uint8_t data);
- void fgvideoram_w(offs_t offset, uint8_t data);
- void txvideoram_w(offs_t offset, uint8_t data);
-
- 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(track_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(track_get_fg_tile_info);
-
- DECLARE_VIDEO_START(wc90t);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void sound_map(address_map &map);
- void wc90_map_1(address_map &map);
- void wc90_map_2(address_map &map);
-};
-
-#endif // MAME_INCLUDES_WC90_H
diff --git a/src/mame/includes/wc90b.h b/src/mame/includes/wc90b.h
deleted file mode 100644
index 90dcd6d63e2..00000000000
--- a/src/mame/includes/wc90b.h
+++ /dev/null
@@ -1,122 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ernesto Corvi
-#ifndef MAME_INCLUDES_WC90B_H
-#define MAME_INCLUDES_WC90B_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class wc90b_state : public driver_device
-{
-public:
- wc90b_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_soundlatch(*this, "soundlatch"),
- m_palette(*this, "palette"),
- m_gfxdecode(*this, "gfxdecode"),
- m_fgvideoram(*this, "fgvideoram"),
- m_bgvideoram(*this, "bgvideoram"),
- m_txvideoram(*this, "txvideoram"),
- m_spriteram(*this, "spriteram"),
- m_scroll1x(*this, "scroll1x"),
- m_scroll2x(*this, "scroll2x"),
- m_scroll1y(*this, "scroll1y"),
- m_scroll2y(*this, "scroll2y"),
- m_scroll_x_lo(*this, "scroll_x_lo")
- { }
-
- void wc90b(machine_config &config);
- void eurogael(machine_config &config);
-
- void init_wc90b();
-
- void bgvideoram_w(offs_t offset, uint8_t data);
- void fgvideoram_w(offs_t offset, uint8_t data);
- void txvideoram_w(offs_t offset, uint8_t data);
- void bankswitch_w(uint8_t data);
- void sound_command_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
-
- void sound_cpu(address_map &map);
- void wc90b_map2(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<cpu_device> m_audiocpu;
- required_device<msm5205_device> m_msm;
- required_device<generic_latch_8_device> m_soundlatch;
- required_device<palette_device> m_palette;
- required_device<gfxdecode_device> m_gfxdecode;
- required_shared_ptr<uint8_t> m_fgvideoram;
- required_shared_ptr<uint8_t> m_bgvideoram;
- required_shared_ptr<uint8_t> m_txvideoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
-
- virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- virtual void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority );
-
-private:
-
- optional_shared_ptr<uint8_t> m_scroll1x;
- optional_shared_ptr<uint8_t> m_scroll2x;
- optional_shared_ptr<uint8_t> m_scroll1y;
- optional_shared_ptr<uint8_t> m_scroll2y;
- optional_shared_ptr<uint8_t> m_scroll_x_lo;
-
- void wc90b_map1(address_map &map);
-
- int m_msm5205next;
- int m_toggle;
-
- void bankswitch1_w(uint8_t data);
- void adpcm_data_w(uint8_t data);
- void adpcm_control_w(uint8_t data);
- uint8_t master_irq_ack_r();
- void slave_irq_ack_w(uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_tx_tile_info);
-};
-
-
-class eurogael_state : public wc90b_state
-{
-public:
- eurogael_state(const machine_config &mconfig, device_type type, const char *tag) :
- wc90b_state(mconfig, type, tag),
- m_bgscroll(*this, "bgscroll")
- { }
-
- void eurogael(machine_config &config);
-
-protected:
- virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override;
- virtual void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority ) override;
-
-private:
- void master_irq_ack_w(uint8_t data);
- required_shared_ptr<uint8_t> m_bgscroll;
-
- void map1(address_map &map);
-};
-
-
-#endif // MAME_INCLUDES_WC90B_H
diff --git a/src/mame/includes/wecleman.h b/src/mame/includes/wecleman.h
deleted file mode 100644
index 6b067ec34db..00000000000
--- a/src/mame/includes/wecleman.h
+++ /dev/null
@@ -1,203 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-#ifndef MAME_INCLUDES_WECLEMAN_H
-#define MAME_INCLUDES_WECLEMAN_H
-
-#pragma once
-
-#include "machine/timer.h"
-#include "sound/k007232.h"
-#include "video/k051316.h"
-#include "machine/k007452.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class wecleman_state : public driver_device
-{
-public:
- wecleman_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_videostatus(*this, "videostatus")
- , m_protection_ram(*this, "protection_ram")
- , m_blitter_regs(*this, "blitter_regs")
- , m_pageram(*this, "pageram")
- , m_txtram(*this, "txtram")
- , m_spriteram(*this, "spriteram")
- , m_roadram(*this, "roadram")
- , m_generic_paletteram_16(*this, "paletteram")
- , m_sprite_region(*this, "sprites")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_subcpu(*this, "sub")
- , m_k051316(*this, "k051316_%u", 1)
- , m_k007232(*this, "k007232_%u", 1)
- , m_k007452(*this, "k007452")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_led(*this, "led%u", 0U)
- { }
-
- void wecleman(machine_config &config);
-
- void init_wecleman();
-
- DECLARE_READ_LINE_MEMBER(hotchase_sound_status_r);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- enum
- {
- WECLEMAN_ID = 0,
- HOTCHASE_ID
- };
-
- optional_shared_ptr<uint16_t> m_videostatus;
- optional_shared_ptr<uint16_t> m_protection_ram;
- required_shared_ptr<uint16_t> m_blitter_regs;
- optional_shared_ptr<uint16_t> m_pageram;
- optional_shared_ptr<uint16_t> m_txtram;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_roadram;
- required_shared_ptr<uint16_t> m_generic_paletteram_16;
-
- required_region_ptr<uint8_t> m_sprite_region;
-
- int m_spr_color_offs;
- int m_prot_state;
- int m_selected_ip;
- int m_irqctrl;
- int m_bgpage[4];
- int m_fgpage[4];
- const int *m_gfx_bank;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_txt_tilemap;
- int *m_spr_idx_list;
- int *m_spr_pri_list;
- int *m_t32x32pm;
- int m_gameid;
- int m_spr_offsx;
- int m_spr_offsy;
- int m_spr_count;
- uint16_t *m_rgb_half;
- int m_cloud_blend;
- int m_cloud_ds;
- int m_cloud_visible;
- int m_sound_hw_type;
- bool m_hotchase_sound_hs;
- pen_t m_black_pen;
-
- uint16_t wecleman_protection_r();
- void wecleman_protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void irqctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void selected_ip_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint8_t selected_ip_r();
- void blitter_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void wecleman_txtram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void wecleman_pageram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void wecleman_videostatus_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void wecleman_paletteram16_SSSSBBBBGGGGRRRR_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void wecleman_K00723216_bank_w(uint8_t data);
- void wecleman_volume_callback(uint8_t data);
-
- TILE_GET_INFO_MEMBER(wecleman_get_txt_tile_info);
- TILE_GET_INFO_MEMBER(wecleman_get_bg_tile_info);
- TILE_GET_INFO_MEMBER(wecleman_get_fg_tile_info);
-
- uint32_t screen_update_wecleman(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(wecleman_scanline);
- void draw_cloud(bitmap_rgb32 &bitmap,gfx_element *gfx,uint16_t *tm_base,int x0,int y0,int xcount,int ycount,int scrollx,int scrolly,int tmw_l2,int tmh_l2,int alpha,int pal_offset);
- void wecleman_unpack_sprites();
- void bitswap(uint8_t *src,size_t len,int _14,int _13,int _12,int _11,int _10,int _f,int _e,int _d,int _c,int _b,int _a,int _9,int _8,int _7,int _6,int _5,int _4,int _3,int _2,int _1,int _0);
- void get_sprite_info();
- void sortsprite(int *idx_array, int *key_array, int size);
- void wecleman_draw_road(bitmap_rgb32 &bitmap, const rectangle &cliprect, int priority);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- optional_device_array<k051316_device, 2> m_k051316;
- optional_device_array<k007232_device, 3> m_k007232;
- optional_device<k007452_device> m_k007452;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
-
- output_finder<1> m_led;
-
- void wecleman_map(address_map &map);
- void wecleman_sound_map(address_map &map);
- void wecleman_sub_map(address_map &map);
-
- struct sprite_t
- {
- sprite_t() { }
-
- uint8_t *pen_data = nullptr; /* points to top left corner of tile data */
- int line_offset = 0;
-
- const pen_t *pal_data = nullptr;
- rgb_t pal_base;
-
- int x_offset = 0, y_offset = 0;
- int tile_width = 0, tile_height = 0;
- int total_width = 0, total_height = 0; /* in screen coordinates */
- int x = 0, y = 0;
- int shadow_mode = 0, flags = 0;
- };
-
- template<class BitmapClass> void do_blit_zoom32(BitmapClass &bitmap, const rectangle &cliprect, const sprite_t &sprite);
- template<class BitmapClass> void sprite_draw(BitmapClass &bitmap, const rectangle &cliprect);
-
- std::unique_ptr<sprite_t []> m_sprite_list;
- sprite_t **m_spr_ptr_list;
-};
-
-class hotchase_state : public wecleman_state
-{
-public:
- hotchase_state(const machine_config &mconfig, device_type type, const char* tag)
- : wecleman_state(mconfig, type, tag)
- {
- }
-
- void hotchase(machine_config &config);
-
- void init_hotchase();
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- uint32_t screen_update_hotchase(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void hotchase_draw_road(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void hotchase_paletteram16_SBGRBBBBGGGGRRRR_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- K051316_CB_MEMBER(hotchase_zoom_callback_1);
- K051316_CB_MEMBER(hotchase_zoom_callback_2);
-
- TIMER_DEVICE_CALLBACK_MEMBER(hotchase_scanline);
-
- void hotchase_sound_control_w(offs_t offset, uint8_t data);
- void hotchase_sound_hs_w(uint8_t data);
- template<int Chip> uint8_t hotchase_k007232_r(offs_t offset);
- template<int Chip> void hotchase_k007232_w(offs_t offset, uint8_t data);
-
- INTERRUPT_GEN_MEMBER(hotchase_sound_timer);
-
- void hotchase_sprite_decode( int num16_banks, int bank_size );
-
- void hotchase_map(address_map &map);
- void hotchase_sound_map(address_map &map);
- void hotchase_sub_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_WECLEMAN_H
diff --git a/src/mame/includes/welltris.h b/src/mame/includes/welltris.h
deleted file mode 100644
index bf67257c54c..00000000000
--- a/src/mame/includes/welltris.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_WELLTRIS_H
-#define MAME_INCLUDES_WELLTRIS_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "video/vsystem_spr2.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class welltris_state : public driver_device
-{
-public:
- welltris_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_spr_old(*this, "vsystem_spr_old"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram"),
- m_pixelram(*this, "pixelram"),
- m_charvideoram(*this, "charvideoram")
- { }
-
- void quiz18k(machine_config &config);
- void welltris(machine_config &config);
-
- void init_quiz18k();
- void init_welltris();
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<vsystem_spr2_device> m_spr_old;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_pixelram;
- required_shared_ptr<uint16_t> m_charvideoram;
-
- tilemap_t *m_char_tilemap;
- uint8_t m_gfxbank[2];
- uint16_t m_charpalettebank;
- uint16_t m_spritepalettebank;
- uint16_t m_pixelpalettebank;
- int m_scrollx;
- int m_scrolly;
-
- void sound_bankswitch_w(uint8_t data);
- void palette_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void gfxbank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void scrollreg_w(offs_t offset, uint16_t data);
- void charvideoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_tile_info);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void setbank(int num, int bank);
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_port_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_WELLTRIS_H
diff --git a/src/mame/includes/wgp.h b/src/mame/includes/wgp.h
deleted file mode 100644
index 7b6f64f5e1e..00000000000
--- a/src/mame/includes/wgp.h
+++ /dev/null
@@ -1,129 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Graves
-/*************************************************************************
-
- World Grand Prix
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_WGP_H
-#define MAME_INCLUDES_WGP_H
-
-#pragma once
-
-#include "audio/taitosnd.h"
-#include "machine/taitoio.h"
-#include "video/tc0100scn.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-
-class wgp_state : public driver_device
-{
-public:
- wgp_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spritemap(*this, "spritemap"),
- m_spriteram(*this, "spriteram"),
- m_pivram(*this, "pivram"),
- m_piv_ctrlram(*this, "piv_ctrlram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_subcpu(*this, "sub"),
- m_tc0100scn(*this, "tc0100scn"),
- m_tc0140syt(*this, "tc0140syt"),
- m_tc0220ioc(*this, "tc0220ioc"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_z80bank(*this, "z80bank"),
- m_steer(*this, "STEER"),
- m_unknown(*this, "UNKNOWN"),
- m_fake(*this, "FAKE")
- { }
-
- void wgp2(machine_config &config);
- void wgp(machine_config &config);
-
- void init_wgp();
- void init_wgp2();
-
-protected:
- enum
- {
- TIMER_INTERRUPT4,
- TIMER_CPUB_INTERRUPT6
- };
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void device_post_load() override;
-
-private:
- void coins_w(u8 data);
- void cpua_ctrl_w(u16 data);
- u16 lan_status_r();
- void rotate_port_w(offs_t offset, u16 data);
- u8 accel_r();
- u8 steer_r();
- u8 steer_offset_r();
- u8 accel_offset_r();
- u8 brake_r();
- u8 unknown_r();
- void sound_bankswitch_w(u8 data);
- void pivram_word_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void piv_ctrl_word_w(offs_t offset, u16 data, u16 mem_mask = ~0);
-
- DECLARE_VIDEO_START(wgp2);
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(cpub_interrupt);
-
- void cpu2_map(address_map &map);
- void main_map(address_map &map);
- void z80_sound_map(address_map &map);
-
- template<unsigned Offset> TILE_GET_INFO_MEMBER(get_piv_tile_info);
-
- void core_vh_start(int piv_xoffs, int piv_yoffs);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int y_offs);
- void piv_layer_draw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer, int flags, u32 priority);
- void parse_control();
-
- /* memory pointers */
- required_shared_ptr<u16> m_spritemap;
- required_shared_ptr<u16> m_spriteram;
- required_shared_ptr<u16> m_pivram;
- required_shared_ptr<u16> m_piv_ctrlram;
-
- /* video-related */
- tilemap_t *m_piv_tilemap[3];
- u16 m_piv_ctrl_reg;
- u16 m_piv_zoom[3];
- u16 m_piv_scrollx[3];
- u16 m_piv_scrolly[3];
- u16 m_rotate_ctrl[8];
- int m_piv_xoffs;
- int m_piv_yoffs;
- u8 m_dislayer[4];
-
- /* misc */
- u16 m_cpua_ctrl;
- u16 m_port_sel;
- emu_timer *m_cpub_int6_timer;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- required_device<tc0100scn_device> m_tc0100scn;
- required_device<tc0140syt_device> m_tc0140syt;
- required_device<tc0220ioc_device> m_tc0220ioc;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_memory_bank m_z80bank;
- optional_ioport m_steer;
- optional_ioport m_unknown;
- optional_ioport m_fake;
-};
-
-#endif // MAME_INCLUDES_WGP_H
diff --git a/src/mame/includes/williams.h b/src/mame/includes/williams.h
deleted file mode 100644
index b86591f54f2..00000000000
--- a/src/mame/includes/williams.h
+++ /dev/null
@@ -1,510 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Driver for early Williams games
-
-**************************************************************************/
-#ifndef MAME_INCLUDES_WILLIAMS_H
-#define MAME_INCLUDES_WILLIAMS_H
-
-#pragma once
-
-#include "audio/williams.h"
-#include "audio/s11c_bg.h"
-#include "cpu/m6800/m6800.h"
-#include "cpu/m6809/m6809.h"
-#include "machine/6821pia.h"
-#include "machine/74157.h"
-#include "machine/bankdev.h"
-#include "machine/ticket.h"
-#include "machine/timer.h"
-#include "machine/watchdog.h"
-#include "sound/hc55516.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class williams_state : public driver_device
-{
-public:
- williams_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_nvram(*this, "nvram"),
- m_videoram(*this, "videoram"),
- m_mainbank(*this, "mainbank"),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_watchdog(*this, "watchdog"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_paletteram(*this, "paletteram"),
- m_pia(*this, "pia_%u", 0U)
- { }
-
- void lottofun(machine_config &config);
- void williams_base(machine_config &config);
-
- void init_stargate();
- void init_playball();
- void init_lottofun();
- void init_robotron();
-
- u8 port_0_49way_r();
- virtual u8 video_counter_r();
- virtual void watchdog_reset_w(u8 data);
-
- virtual TIMER_DEVICE_CALLBACK_MEMBER(va11_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(count240_callback);
-
- virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void palette_init(palette_device &palette) const;
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
- enum
- {
- //controlbyte (0xCA00) bit definitions
- WMS_BLITTER_CONTROLBYTE_NO_EVEN = 0x80,
- WMS_BLITTER_CONTROLBYTE_NO_ODD = 0x40,
- WMS_BLITTER_CONTROLBYTE_SHIFT = 0x20,
- WMS_BLITTER_CONTROLBYTE_SOLID = 0x10,
- WMS_BLITTER_CONTROLBYTE_FOREGROUND_ONLY = 0x08,
- WMS_BLITTER_CONTROLBYTE_SLOW = 0x04, //2us blits instead of 1us
- WMS_BLITTER_CONTROLBYTE_DST_STRIDE_256 = 0x02,
- WMS_BLITTER_CONTROLBYTE_SRC_STRIDE_256 = 0x01
- };
-
- required_shared_ptr<uint8_t> m_nvram;
- required_shared_ptr<uint8_t> m_videoram;
- optional_memory_bank m_mainbank;
- uint8_t m_blitter_config;
- uint16_t m_blitter_clip_address;
- uint8_t m_blitter_window_enable;
- uint8_t m_cocktail;
- std::unique_ptr<rgb_t[]> m_palette_lookup;
- uint8_t m_blitterram[8];
- uint8_t m_blitter_xor;
- uint8_t m_blitter_remap_index;
- const uint8_t *m_blitter_remap;
- std::unique_ptr<uint8_t[]> m_blitter_remap_lookup;
- virtual void vram_select_w(u8 data);
- virtual void cmos_w(offs_t offset, u8 data);
- void sinistar_vram_select_w(u8 data);
- void blitter_w(address_space &space, offs_t offset, u8 data);
-
- TIMER_CALLBACK_MEMBER(deferred_snd_cmd_w);
-
- void snd_cmd_w(u8 data);
-
- DECLARE_WRITE_LINE_MEMBER(lottofun_coin_lock_w);
-
- void state_save_register();
- void blitter_init(int blitter_config, const uint8_t *remap_prom);
- inline void blit_pixel(address_space &space, int dstaddr, int srcdata, int controlbyte);
- int blitter_core(address_space &space, int sstart, int dstart, int w, int h, int data);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_soundcpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<screen_device> m_screen;
- optional_device<palette_device> m_palette;
- optional_shared_ptr<uint8_t> m_paletteram;
- optional_device_array<pia6821_device, 4> m_pia;
-
- virtual void sound_map(address_map &map);
- void base_map(address_map &map);
-};
-
-class defender_state : public williams_state
-{
-public:
- defender_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_state(mconfig, type, tag),
- m_bankc000(*this, "bankc000")
- { }
-
- void defender(machine_config &config);
- void jin(machine_config &config);
-
-protected:
- virtual void driver_init() override;
-
- virtual void main_map(address_map &map);
-
- void video_control_w(u8 data);
-
- required_device<address_map_bank_device> m_bankc000;
-
-private:
- virtual void machine_start() override { }
- virtual void machine_reset() override;
-
- void bankc000_map(address_map &map);
- virtual void sound_map(address_map &map) override;
-
- void bank_select_w(u8 data);
-};
-
-class defndjeu_state : public defender_state
-{
-public:
- defndjeu_state(const machine_config &mconfig, device_type type, const char *tag) :
- defender_state(mconfig, type, tag)
- { }
-
-private:
- virtual void driver_init() override;
-};
-
-class mayday_state : public defender_state
-{
-public:
- mayday_state(const machine_config &mconfig, device_type type, const char *tag) :
- defender_state(mconfig, type, tag)
- { }
-
-private:
- virtual void driver_init() override;
-
- virtual void main_map(address_map &map) override;
-
- uint8_t *m_protection;
- u8 protection_r(offs_t offset);
-};
-
-class sinistar_state : public williams_state
-{
-public:
- sinistar_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_state(mconfig, type, tag)
- { }
-
- void sinistar(machine_config &config);
-
-private:
- virtual void driver_init() override;
-
- virtual void vram_select_w(u8 data) override;
-
- void main_map(address_map &map);
-};
-
-class bubbles_state : public williams_state
-{
-public:
- bubbles_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_state(mconfig, type, tag)
- { }
-
- void bubbles(machine_config &config);
-
-private:
- virtual void driver_init() override;
-
- void main_map(address_map &map);
-
- virtual void cmos_w(offs_t offset, u8 data) override;
-};
-
-class playball_state : public williams_state
-{
-public:
- playball_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_state(mconfig, type, tag)
- { }
-
- void playball(machine_config &config);
-
-private:
- virtual void driver_init() override;
-
- void snd_cmd_w(u8 data);
-};
-
-class williams_muxed_state : public williams_state
-{
-public:
- williams_muxed_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_state(mconfig, type, tag),
- m_mux0(*this, "mux_0"),
- m_mux1(*this, "mux_1")
- { }
-
- void williams_muxed(machine_config &config);
-
- void init_splat();
- void init_joust();
- void init_alienar();
- void init_alienaru();
-
-private:
- required_device<ls157_device> m_mux0;
- required_device<ls157_device> m_mux1;
-};
-
-class spdball_state : public williams_state
-{
-public:
- spdball_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_state(mconfig, type, tag)
- { }
-
- void spdball(machine_config &config);
-
-private:
- virtual void driver_init() override;
-
- void main_map(address_map &map);
-};
-
-class blaster_state : public williams_state
-{
-public:
- blaster_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_state(mconfig, type, tag),
- m_soundcpu_b(*this, "soundcpu_b"),
- m_bankb(*this, "blaster_bankb"),
- m_muxa(*this, "mux_a"),
- m_muxb(*this, "mux_b")
- { }
-
- void blastkit(machine_config &config);
- void blaster(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void video_start() override;
- virtual void driver_init() override;
-
- optional_device<cpu_device> m_soundcpu_b;
- optional_memory_bank m_bankb;
- required_device<ls157_x2_device> m_muxa;
- optional_device<ls157_device> m_muxb;
-
- rgb_t m_color0;
- uint8_t m_video_control;
- uint8_t m_vram_bank;
- uint8_t m_rom_bank;
-
- virtual void vram_select_w(u8 data) override;
- void bank_select_w(u8 data);
- void remap_select_w(u8 data);
- void video_control_w(u8 data);
- TIMER_CALLBACK_MEMBER(deferred_snd_cmd_w);
- void snd_cmd_w(u8 data);
-
- virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override;
-
- inline void update_blaster_banking();
-
- void main_map(address_map &map);
- void sound2_map(address_map &map);
-};
-
-class williams2_state : public williams_state
-{
-public:
- williams2_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_state(mconfig, type, tag),
- m_bank8000(*this, "bank8000"),
- m_gfxdecode(*this, "gfxdecode"),
- m_tileram(*this, "williams2_tile"),
- m_gain( { 0.25f, 0.25f, 0.25f }),
- m_offset({ 0.00f, 0.00f, 0.00f })
- { }
-
- void williams2_base(machine_config &config);
-
- INPUT_CHANGED_MEMBER(rgb_gain)
- {
- if (param < 3)
- m_gain[param] = float(newval) / 100.0f;
- else
- m_offset[param - 3] = (float(newval) / 100.0f) - 1.0f;
- rebuild_palette();
- }
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- required_device<address_map_bank_device> m_bank8000;
- required_device<gfxdecode_device> m_gfxdecode;
- required_shared_ptr<uint8_t> m_tileram;
-
- tilemap_t *m_bg_tilemap;
- uint16_t m_tilemap_xscroll;
- uint8_t m_fg_color;
- std::array<float, 3> m_gain;
- std::array<float, 3> m_offset;
-
- virtual u8 video_counter_r() override;
-
- virtual TILE_GET_INFO_MEMBER(get_tile_info);
- void bank_select_w(u8 data);
- virtual void watchdog_reset_w(u8 data) override;
- void segments_w(u8 data);
-
- rgb_t calc_col(uint16_t lo, uint16_t hi);
- void paletteram_w(offs_t offset, u8 data);
- void rebuild_palette();
- void fg_select_w(u8 data);
- virtual void bg_select_w(u8 data);
- void tileram_w(offs_t offset, u8 data);
- void xscroll_low_w(u8 data);
- void xscroll_high_w(u8 data);
- void blit_window_enable_w(u8 data);
- virtual TIMER_DEVICE_CALLBACK_MEMBER(va11_callback) override;
- TIMER_DEVICE_CALLBACK_MEMBER(endscreen_callback);
- TIMER_CALLBACK_MEMBER(deferred_snd_cmd_w);
- void snd_cmd_w(u8 data);
-
- virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override;
-
- void bank8000_map(address_map &map);
- void common_map(address_map &map);
- virtual void sound_map(address_map &map) override;
-
- void video_control_w(u8 data);
-};
-
-class williams_d000_rom_state : public williams2_state
-{
-public:
- williams_d000_rom_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams2_state(mconfig, type, tag)
- { }
-
-protected:
- void d000_map(address_map &map);
-};
-
-class williams_d000_ram_state : public williams2_state
-{
-public:
- williams_d000_ram_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams2_state(mconfig, type, tag)
- { }
-
-protected:
- void d000_map(address_map &map);
-};
-
-class inferno_state : public williams_d000_ram_state
-{
-public:
- inferno_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_d000_ram_state(mconfig, type, tag),
- m_mux(*this, "mux")
- { }
-
- void inferno(machine_config &config);
-
-private:
- virtual void driver_init() override;
-
- required_device<ls157_device> m_mux;
-};
-
-class mysticm_state : public williams_d000_ram_state
-{
-public:
- mysticm_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_d000_ram_state(mconfig, type, tag)
- {
- // overwrite defaults for mysticm
- m_gain = { 0.8f, 0.73f, 0.81f };
- m_offset = { -0.27f, 0.00f, -0.22f };
- }
-
- void mysticm(machine_config &config);
-
-protected:
- virtual uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override;
-
-private:
- virtual void driver_init() override;
-
- virtual TILE_GET_INFO_MEMBER(get_tile_info) override;
- virtual void bg_select_w(u8 data) override;
-
- int color_decode(uint8_t base_col, int sig_J1, int y);
-
- uint8_t m_bg_color;
-
-};
-
-class tshoot_state : public williams_d000_rom_state
-{
-public:
- tshoot_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_d000_rom_state(mconfig, type, tag),
- m_mux(*this, "mux"),
- m_gun(*this, {"GUNX", "GUNY"}),
- m_grenade_lamp(*this, "Grenade_lamp"),
- m_gun_lamp(*this, "Gun_lamp"),
- m_p1_gun_recoil(*this, "Player1_Gun_Recoil"),
- m_feather_blower(*this, "Feather_Blower")
- { }
-
- void tshoot(machine_config &config);
-
- template <int P> DECLARE_CUSTOM_INPUT_MEMBER(gun_r);
-
-private:
- virtual void machine_start() override;
- virtual void driver_init() override;
-
- DECLARE_WRITE_LINE_MEMBER(maxvol_w);
- void lamp_w(u8 data);
-
- required_device<ls157_device> m_mux;
- required_ioport_array<2> m_gun;
- output_finder<> m_grenade_lamp;
- output_finder<> m_gun_lamp;
- output_finder<> m_p1_gun_recoil;
- output_finder<> m_feather_blower;
-};
-
-class joust2_state : public williams_d000_rom_state
-{
-public:
- joust2_state(const machine_config &mconfig, device_type type, const char *tag) :
- williams_d000_rom_state(mconfig, type, tag),
- m_mux(*this, "mux"),
- m_bg(*this, "bg")
- { }
-
- void joust2(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void driver_init() override;
-
- required_device<ls157_device> m_mux;
- required_device<s11_obg_device> m_bg;
- uint16_t m_current_sound_data;
-
- virtual TILE_GET_INFO_MEMBER(get_tile_info) override;
- virtual void bg_select_w(u8 data) override;
-
- TIMER_CALLBACK_MEMBER(deferred_snd_cmd_w);
- void snd_cmd_w(u8 data);
- DECLARE_WRITE_LINE_MEMBER(pia_s11_bg_strobe_w);
-};
-
-/*----------- defined in video/williams.cpp -----------*/
-
-#define WILLIAMS_BLITTER_NONE 0 /* no blitter */
-#define WILLIAMS_BLITTER_SC1 1 /* Special Chip 1 blitter */
-#define WILLIAMS_BLITTER_SC2 2 /* Special Chip 2 "bugfixed" blitter */
-
-#define WILLIAMS_TILEMAP_MYSTICM 0 /* IC79 is a 74LS85 comparator */
-#define WILLIAMS_TILEMAP_TSHOOT 1 /* IC79 is a 74LS157 selector jumpered to be enabled */
-#define WILLIAMS_TILEMAP_JOUST2 2 /* IC79 is a 74LS157 selector jumpered to be disabled */
-
-#endif // MAME_INCLUDES_WILLIAMS_H
diff --git a/src/mame/includes/wiping.h b/src/mame/includes/wiping.h
deleted file mode 100644
index 7fcf3d3884b..00000000000
--- a/src/mame/includes/wiping.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Allard van der Bas
-#ifndef MAME_INCLUDES_WIPING_H
-#define MAME_INCLUDES_WIPING_H
-
-#pragma once
-
-#include "emupal.h"
-
-class wiping_state : public driver_device
-{
-public:
- wiping_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void wiping(machine_config &config);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- int m_flipscreen;
- uint8_t *m_soundregs; // if 0-ed
- uint8_t m_main_irq_mask;
- uint8_t m_sound_irq_mask;
-
- uint8_t ports_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(main_irq_mask_w);
- DECLARE_WRITE_LINE_MEMBER(sound_irq_mask_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
-
- void wiping_palette(palette_device &palette) const;
- virtual void machine_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- INTERRUPT_GEN_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(sound_timer_irq);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_WIPING_H
diff --git a/src/mame/includes/witch.h b/src/mame/includes/witch.h
deleted file mode 100644
index 0592abbc0fe..00000000000
--- a/src/mame/includes/witch.h
+++ /dev/null
@@ -1,143 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tomasz Slanina
-/*
-
-Witch / Pinball Champ '95 / Keirin Ou
-
-*/
-
-#ifndef MAME_INCLUDES_WITCH_H
-#define MAME_INCLUDES_WITCH_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/i8255.h"
-#include "machine/nvram.h"
-#include "machine/ticket.h"
-#include "sound/ay8910.h"
-#include "sound/es8712.h"
-#include "sound/ym2203.h"
-#include "emupal.h"
-#include "screen.h"
-#include "speaker.h"
-#include "tilemap.h"
-
-#define MAIN_CLOCK XTAL(12'000'000)
-#define CPU_CLOCK MAIN_CLOCK / 4
-#define YM2203_CLOCK MAIN_CLOCK / 4
-#define AY8910_CLOCK MAIN_CLOCK / 8
-#define MSM5202_CLOCK 384_kHz_XTAL
-
-#define HOPPER_PULSE 50 // time between hopper pulses in milliseconds (not right for attendant pay)
-#define UNBANKED_SIZE 0x800
-
-
-class witch_state : public driver_device
-{
-public:
- witch_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_subcpu(*this, "sub")
- , m_ppi(*this, "ppi%u", 1U)
- , m_gfxdecode(*this, "gfxdecode")
- , m_gfx0_vram(*this, "gfx0_vram")
- , m_gfx0_cram(*this, "gfx0_cram")
- , m_gfx1_vram(*this, "gfx1_vram")
- , m_gfx1_cram(*this, "gfx1_cram")
- , m_sprite_ram(*this, "sprite_ram")
- , m_palette(*this, "palette")
- , m_hopper(*this, "hopper")
- , m_mainbank(*this, "mainbank")
- { }
-
- void witch(machine_config &config);
-
- void init_witch();
-
- void gfx0_vram_w(offs_t offset, uint8_t data);
- void gfx0_cram_w(offs_t offset, uint8_t data);
- void gfx1_vram_w(offs_t offset, uint8_t data);
- void gfx1_cram_w(offs_t offset, uint8_t data);
- uint8_t gfx1_vram_r(offs_t offset);
- uint8_t gfx1_cram_r(offs_t offset);
- uint8_t read_a000();
- void write_a002(uint8_t data);
- void write_a006(uint8_t data);
- void main_write_a008(uint8_t data);
- void sub_write_a008(uint8_t data);
- uint8_t prot_read_700x(offs_t offset);
- void xscroll_w(uint8_t data);
- void yscroll_w(uint8_t data);
-
-protected:
- void common_map(address_map &map);
-
- tilemap_t *m_gfx0_tilemap;
- tilemap_t *m_gfx1_tilemap;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device_array<i8255_device, 2> m_ppi;
- required_device<gfxdecode_device> m_gfxdecode;
-
- required_shared_ptr<uint8_t> m_gfx0_vram;
- required_shared_ptr<uint8_t> m_gfx0_cram;
- required_shared_ptr<uint8_t> m_gfx1_vram;
- required_shared_ptr<uint8_t> m_gfx1_cram;
- required_shared_ptr<uint8_t> m_sprite_ram;
- required_device<palette_device> m_palette;
-
- required_device<ticket_dispenser_device> m_hopper;
-
- optional_memory_bank m_mainbank;
-
- int m_scrollx;
- int m_scrolly;
- uint8_t m_reg_a002;
- uint8_t m_motor_active;
-
- TILE_GET_INFO_MEMBER(get_gfx0_tile_info);
- TILE_GET_INFO_MEMBER(get_gfx1_tile_info);
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- virtual void machine_reset() override;
-
- void witch_common_map(address_map &map);
- void witch_main_map(address_map &map);
- void witch_sub_map(address_map &map);
-
- void video_common_init();
- bool has_spr_rom_bank;
- uint8_t m_spr_bank;
-};
-
-class keirinou_state : public witch_state
-{
-public:
- keirinou_state(const machine_config &mconfig, device_type type, const char *tag)
- : witch_state(mconfig, type, tag),
- m_paletteram(*this, "paletteram")
- { }
-
- void keirinou(machine_config &config);
-
-private:
- void keirinou_common_map(address_map &map);
- void keirinou_main_map(address_map &map);
- void keirinou_sub_map(address_map &map);
-
- void write_keirinou_a002(uint8_t data);
- void palette_w(offs_t offset, uint8_t data);
- TILE_GET_INFO_MEMBER(get_keirinou_gfx1_tile_info);
-
- virtual void video_start() override;
-
- uint8_t m_bg_bank;
- required_shared_ptr<uint8_t> m_paletteram;
-};
-
-
-#endif
diff --git a/src/mame/includes/wiz.h b/src/mame/includes/wiz.h
deleted file mode 100644
index 7aae8bb07a2..00000000000
--- a/src/mame/includes/wiz.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-/***************************************************************************
-
- Seibu Stinger/Wiz hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_WIZ_H
-#define MAME_INCLUDES_WIZ_H
-
-#pragma once
-
-#include "sound/discrete.h"
-#include "emupal.h"
-
-class wiz_state : public driver_device
-{
-public:
- wiz_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_discrete(*this, "discrete"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_videoram2(*this, "videoram2"),
- m_colorram(*this, "colorram"),
- m_colorram2(*this, "colorram2"),
- m_attrram(*this, "attrram"),
- m_attrram2(*this, "attrram2"),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void wiz(machine_config &config);
- void kungfut(machine_config &config);
- void scion(machine_config &config);
- void stinger(machine_config &config);
-
- void init_stinger();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<discrete_device> m_discrete;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_videoram2;
- required_shared_ptr<uint8_t> m_colorram;
- required_shared_ptr<uint8_t> m_colorram2;
- required_shared_ptr<uint8_t> m_attrram;
- required_shared_ptr<uint8_t> m_attrram2;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_spriteram2;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- int32_t m_flipx;
- int32_t m_flipy;
- int32_t m_bgcolor;
- uint8_t m_charbank[2];
- uint8_t m_palbank[2];
- uint8_t m_main_nmi_mask;
- uint8_t m_sound_nmi_mask;
- uint8_t m_sprite_bank;
-
- int m_dsc0;
- int m_dsc1;
-
- uint8_t wiz_protection_r();
- void wiz_coin_counter_w(offs_t offset, uint8_t data);
- void wiz_main_nmi_mask_w(uint8_t data);
- void wiz_sound_nmi_mask_w(uint8_t data);
- void wiz_palette_bank_w(offs_t offset, uint8_t data);
- void wiz_sprite_bank_w(uint8_t data);
- void wiz_bgcolor_w(uint8_t data);
- void wiz_char_bank_w(offs_t offset, uint8_t data);
- void wiz_flipx_w(uint8_t data);
- void wiz_flipy_w(uint8_t data);
- void stinger_explosion_w(uint8_t data);
- void stinger_shot_w(uint8_t data);
-
- virtual void machine_reset() override;
- virtual void machine_start() override;
- void wiz_palette(palette_device &palette) const;
- uint32_t screen_update_wiz(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_stinger(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_kungfut(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(wiz_vblank_interrupt);
- INTERRUPT_GEN_MEMBER(wiz_sound_interrupt);
- void draw_tiles(bitmap_ind16 &bitmap, const rectangle &cliprect, int layer, int charbank, int colortype);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int set, int charbank);
-
- void decrypted_opcodes_map(address_map &map);
- void kungfut_main_map(address_map &map);
- void kungfut_sound_map(address_map &map);
- void stinger_main_map(address_map &map);
- void stinger_sound_map(address_map &map);
- void wiz_main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_WIZ_H
diff --git a/src/mame/includes/wolfpack.h b/src/mame/includes/wolfpack.h
deleted file mode 100644
index f616e7cb7d3..00000000000
--- a/src/mame/includes/wolfpack.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Stefan Jokisch
-/***************************************************************************
-
- Atari Wolf Pack (prototype) driver
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_WOLFPACK_H
-#define MAME_INCLUDES_WOLFPACK_H
-
-#pragma once
-
-#include "sound/s14001a.h"
-#include "emupal.h"
-#include "screen.h"
-
-class wolfpack_state : public driver_device
-{
-public:
- wolfpack_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_alpha_num_ram(*this, "alpha_num_ram"),
- m_maincpu(*this, "maincpu"),
- m_s14001a(*this, "speech"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_led(*this, "led0")
- { }
-
- void wolfpack(machine_config &config);
-
- template <int Bit> DECLARE_READ_LINE_MEMBER(dial_r);
-
-private:
- enum
- {
- TIMER_PERIODIC
- };
-
- uint8_t misc_r();
- void high_explo_w(uint8_t data);
- void sonar_ping_w(uint8_t data);
- void sirlat_w(uint8_t data);
- void pt_sound_w(uint8_t data);
- void launch_torpedo_w(uint8_t data);
- void low_explo_w(uint8_t data);
- void screw_cont_w(uint8_t data);
- void lamp_flash_w(uint8_t data);
- void warning_light_w(uint8_t data);
- void audamp_w(uint8_t data);
- void attract_w(uint8_t data);
- void credit_w(uint8_t data);
- void coldetres_w(uint8_t data);
- void ship_size_w(uint8_t data);
- void video_invert_w(uint8_t data);
- void ship_reflect_w(uint8_t data);
- void pt_pos_select_w(uint8_t data);
- void pt_horz_w(uint8_t data);
- void pt_pic_w(uint8_t data);
- void ship_h_w(uint8_t data);
- void torpedo_pic_w(uint8_t data);
- void ship_h_precess_w(uint8_t data);
- void ship_pic_w(uint8_t data);
- void torpedo_h_w(uint8_t data);
- void torpedo_v_w(uint8_t data);
- void word_w(uint8_t data);
- void start_speech_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- void wolfpack_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- TIMER_CALLBACK_MEMBER(periodic_callback);
- void draw_ship(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_torpedo(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_pt(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_water(palette_device &palette, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
-
- // devices, pointers
- required_shared_ptr<uint8_t> m_alpha_num_ram;
- required_device<cpu_device> m_maincpu;
- required_device<s14001a_device> m_s14001a;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- output_finder<> m_led;
-
- bool m_collision;
- unsigned m_current_index;
- uint8_t m_video_invert;
- uint8_t m_ship_reflect;
- uint8_t m_pt_pos_select;
- uint8_t m_pt_horz;
- uint8_t m_pt_pic;
- uint8_t m_ship_h;
- uint8_t m_torpedo_pic;
- uint8_t m_ship_size;
- uint8_t m_ship_h_precess;
- uint8_t m_ship_pic;
- uint8_t m_torpedo_h;
- uint8_t m_torpedo_v;
- std::unique_ptr<uint8_t[]> m_LFSR;
- bitmap_ind16 m_helper;
- emu_timer *m_periodic_timer;
-};
-
-#endif // MAME_INCLUDES_WOLFPACK_H
diff --git a/src/mame/includes/wpc_dot.h b/src/mame/includes/wpc_dot.h
deleted file mode 100644
index 910fbe82ad6..00000000000
--- a/src/mame/includes/wpc_dot.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Barry Rodewald
-/*
- * wpc_dot.h
- *
- * Created on: 18/10/2013
- * Author: bsr
- */
-
-#ifndef MAME_INCLUDES_WPC_DOT_H
-#define MAME_INCLUDES_WPC_DOT_H
-
-#pragma once
-
-#include "cpu/m6809/m6809.h"
-#include "audio/wpcsnd.h"
-#include "audio/dcs.h"
-#include "machine/wpc.h"
-
-class wpc_dot_state : public driver_device
-{
-public:
- wpc_dot_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_wpcsnd(*this,"wpcsnd")
- , m_wpc(*this,"wpc")
- , m_cpubank(*this, "cpubank")
- , m_fixedbank(*this, "fixedbank")
- , m_dmdbanks(*this, "dmdbank%u", 1U)
- { }
-
- void init_wpc_dot();
- void wpc_dot(machine_config &config);
-
-protected:
- void wpc_dot_map(address_map &map);
-
- // devices
- required_device<cpu_device> m_maincpu;
- optional_device<wpcsnd_device> m_wpcsnd;
- required_device<wpc_device> m_wpc;
- required_memory_bank m_cpubank;
- required_memory_bank m_fixedbank;
- required_memory_bank_array<6> m_dmdbanks;
-
- // driver_device overrides
- virtual void machine_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- static const device_timer_id TIMER_VBLANK = 0;
- static const device_timer_id TIMER_IRQ = 1;
-
- uint8_t ram_r(offs_t offset);
- void ram_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(wpcsnd_reply_w);
- DECLARE_WRITE_LINE_MEMBER(wpc_irq_w);
- DECLARE_WRITE_LINE_MEMBER(wpc_firq_w);
- void wpc_rombank_w(uint8_t data);
- void wpc_dmdbank_w(offs_t offset, uint8_t data);
-
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
-private:
- uint16_t m_vblank_count;
- uint32_t m_irq_count;
- uint8_t m_bankmask;
- uint8_t m_ram[0x3000];
- uint8_t m_dmdram[0x2000];
- emu_timer* m_vblank_timer;
- emu_timer* m_irq_timer;
-};
-
-#endif // MAME_INCLUDES_WPC_DOT_H
diff --git a/src/mame/includes/wpc_flip1.h b/src/mame/includes/wpc_flip1.h
deleted file mode 100644
index 8f26f9ebd75..00000000000
--- a/src/mame/includes/wpc_flip1.h
+++ /dev/null
@@ -1,29 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Barry Rodewald
-/*
- * wpc_flip1.h
- *
- */
-
-#ifndef MAME_INCLUDES_WPC_FLIP1_H
-#define MAME_INCLUDES_WPC_FLIP1_H
-
-#pragma once
-
-#include "includes/wpc_dot.h"
-
-class wpc_flip1_state : public wpc_dot_state
-{
-public:
- wpc_flip1_state(const machine_config &mconfig, device_type type, const char *tag)
- : wpc_dot_state(mconfig, type, tag)
- { }
-
- void init_wpc_flip1();
- void wpc_flip1(machine_config &config);
-
-protected:
- void wpc_flip1_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_WPC_FLIP1_H
diff --git a/src/mame/includes/wpc_flip2.h b/src/mame/includes/wpc_flip2.h
deleted file mode 100644
index 7c07907af1f..00000000000
--- a/src/mame/includes/wpc_flip2.h
+++ /dev/null
@@ -1,29 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Barry Rodewald
-/*
- * wpc_flip2.h
- *
- */
-
-#ifndef MAME_INCLUDES_WPC_FLIP2_H
-#define MAME_INCLUDES_WPC_FLIP2_H
-
-#pragma once
-
-#include "includes/wpc_flip1.h"
-
-class wpc_flip2_state : public wpc_flip1_state
-{
-public:
- wpc_flip2_state(const machine_config &mconfig, device_type type, const char *tag)
- : wpc_flip1_state(mconfig, type, tag)
- { }
-
- void init_wpc_flip2();
- void wpc_flip2(machine_config &config);
-
-protected:
- void wpc_flip2_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_WPC_FLIP2_H
diff --git a/src/mame/includes/wrally.h b/src/mame/includes/wrally.h
deleted file mode 100644
index 87349026e22..00000000000
--- a/src/mame/includes/wrally.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia, Mike Coates, Nicola Salmoria, Miguel Angel Horna
-#ifndef MAME_INCLUDES_WRALLY_H
-#define MAME_INCLUDES_WRALLY_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "video/gaelco_wrally_sprites.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class wrally_state : public driver_device
-{
-public:
- wrally_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_outlatch(*this, "outlatch"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_sprites(*this, "sprites"),
- m_okibank(*this, "okibank"),
- m_videoram(*this, "videoram"),
- m_vregs(*this, "vregs"),
- m_spriteram(*this, "spriteram"),
- m_shareram(*this, "shareram"),
- m_analog(*this, "ANALOG%u", 0U),
- m_tilemap{ nullptr, nullptr }
- {
- }
-
- void wrally(machine_config &config);
-
- template <int N> DECLARE_READ_LINE_MEMBER(analog_bit_r);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- uint8_t shareram_r(offs_t offset);
- void shareram_w(offs_t offset, uint8_t data);
- void vram_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- void okim6295_bankswitch_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
- DECLARE_WRITE_LINE_MEMBER(coin1_lockout_w);
- DECLARE_WRITE_LINE_MEMBER(coin2_lockout_w);
-
- DECLARE_WRITE_LINE_MEMBER(adc_clk);
- DECLARE_WRITE_LINE_MEMBER(adc_en);
-
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void mcu_hostmem_map(address_map &map);
- void oki_map(address_map &map);
- void wrally_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<ls259_device> m_outlatch;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<gaelco_wrally_sprites_device> m_sprites;
- required_memory_bank m_okibank;
-
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_vregs;
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_shareram;
-
- required_ioport_array<2> m_analog;
-
- tilemap_t *m_tilemap[2];
- uint8_t m_analog_ports[2];
-};
-
-#endif // MAME_INCLUDES_WRALLY_H
diff --git a/src/mame/includes/wwfsstar.h b/src/mame/includes/wwfsstar.h
deleted file mode 100644
index 7db07c98ab7..00000000000
--- a/src/mame/includes/wwfsstar.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_WWFSSTAR_H
-#define MAME_INCLUDES_WWFSSTAR_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class wwfsstar_state : public driver_device
-{
-public:
- wwfsstar_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_spriteram(*this, "spriteram"),
- m_fg0_videoram(*this, "fg0_videoram"),
- m_bg0_videoram(*this, "bg0_videoram")
- { }
-
- void wwfsstar(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(vblank_r);
-
-protected:
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_fg0_videoram;
- required_shared_ptr<uint16_t> m_bg0_videoram;
-
- int m_vblank;
- int m_scrollx;
- int m_scrolly;
- tilemap_t *m_fg0_tilemap;
- tilemap_t *m_bg0_tilemap;
-
- void scroll_w(offs_t offset, uint16_t data);
- void flipscreen_w(uint16_t data);
- void irqack_w(offs_t offset, uint16_t data);
- void fg0_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void bg0_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
-
- TILE_GET_INFO_MEMBER(get_fg0_tile_info);
- TILEMAP_MAPPER_MEMBER(bg0_scan);
- TILE_GET_INFO_MEMBER(get_bg0_tile_info);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_WWFSSTAR_H
diff --git a/src/mame/includes/x07.h b/src/mame/includes/x07.h
deleted file mode 100644
index d4faa709d1f..00000000000
--- a/src/mame/includes/x07.h
+++ /dev/null
@@ -1,297 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sandro Ronco
-/*********************************************************************
-
- includes/x07.h
-
-*********************************************************************/
-#ifndef MAME_INCLUDES_X07_H
-#define MAME_INCLUDES_X07_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "sound/beep.h"
-#include "machine/nvram.h"
-#include "machine/ram.h"
-#include "machine/timer.h"
-#include "imagedev/cassette.h"
-#include "imagedev/printer.h"
-#include "formats/x07_cas.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "emupal.h"
-
-//default value for user defined keys, taken for official documentation
-static const char *const udk_ini[12] = {
- "tim?TIME$\r",
- "cldCLOAD\"",
- "locLOCATE ",
- "lstLIST ",
- "runRUN\r",
- "",
- "dat?DATE$\r",
- "csvCSAVE\"",
- "prtPRINT ",
- "slpSLEEP",
- "cntCONT\r",
- ""
-};
-
-static const uint16_t udk_offset[12] =
-{
- 0x0000, 0x002a, 0x0054, 0x007e, 0x00a8, 0x00d2,
- 0x0100, 0x012a, 0x0154, 0x017e, 0x01a8, 0x01d2
-};
-
-static const uint8_t printer_charcode[256] =
-{
- 0xff, 0x7f, 0xbf, 0x3f, 0xdf, 0x5f, 0x9f, 0x1f,
- 0xef, 0x6f, 0xaf, 0x2f, 0xcf, 0x4f, 0x8f, 0x0f,
- 0xf7, 0x77, 0xb7, 0x37, 0xd7, 0x57, 0x97, 0x17,
- 0xe7, 0x67, 0xa7, 0x27, 0xc7, 0x47, 0x87, 0x07,
- 0xfb, 0x7b, 0xbb, 0x3b, 0xdb, 0x5b, 0x9b, 0x1b,
- 0xeb, 0x6b, 0xab, 0x2b, 0xcb, 0x4b, 0x8b, 0x0b,
- 0xf3, 0x73, 0xb3, 0x33, 0xd3, 0x53, 0x93, 0x13,
- 0xe3, 0x63, 0xa3, 0x23, 0xc3, 0x43, 0x83, 0x03,
- 0xfd, 0x7d, 0xbd, 0x3d, 0xdd, 0x5d, 0x9d, 0x1d,
- 0xed, 0x6d, 0xad, 0x2d, 0xcd, 0x4d, 0x8d, 0x0d,
- 0xf5, 0x75, 0xb5, 0x35, 0xd5, 0x55, 0x95, 0x15,
- 0xe5, 0x65, 0xa5, 0x25, 0xc5, 0x45, 0x85, 0x05,
- 0xf9, 0x79, 0xb9, 0x39, 0xd9, 0x59, 0x99, 0x19,
- 0xe9, 0x69, 0xa9, 0x29, 0xc9, 0x49, 0x89, 0x09,
- 0xf1, 0x71, 0xb1, 0x31, 0xd1, 0x51, 0x91, 0x11,
- 0xe1, 0x61, 0xa1, 0x21, 0xc1, 0x41, 0x81, 0x01,
- 0xfe, 0x7e, 0xbe, 0x3e, 0xde, 0x5e, 0x9e, 0x1e,
- 0xee, 0x6e, 0xae, 0x2e, 0xce, 0x4e, 0x8e, 0x0e,
- 0xf6, 0x76, 0xb6, 0x36, 0xd6, 0x56, 0x96, 0x16,
- 0xe6, 0x66, 0xa6, 0x26, 0xc6, 0x46, 0x86, 0x06,
- 0xfa, 0x7a, 0xba, 0x3a, 0xda, 0x5a, 0x9a, 0x1a,
- 0xea, 0x6a, 0xaa, 0x2a, 0xca, 0x4a, 0x8a, 0x0a,
- 0xf2, 0x72, 0xb2, 0x32, 0xd2, 0x52, 0x92, 0x12,
- 0xe2, 0x62, 0xa2, 0x22, 0xc2, 0x42, 0x82, 0x02,
- 0xfc, 0x7c, 0xbc, 0x3c, 0xdc, 0x5c, 0x9c, 0x1c,
- 0xec, 0x6c, 0xac, 0x2c, 0xcc, 0x4c, 0x8c, 0x0c,
- 0xf4, 0x74, 0xb4, 0x34, 0xd4, 0x54, 0x94, 0x14,
- 0xe4, 0x64, 0xa4, 0x24, 0xc4, 0x44, 0x84, 0x04,
- 0xf8, 0x78, 0xb8, 0x38, 0xd8, 0x58, 0x98, 0x18,
- 0xe8, 0x68, 0xa8, 0x28, 0xc8, 0x48, 0x88, 0x08,
- 0xf0, 0x70, 0xb0, 0x30, 0xd0, 0x50, 0x90, 0x10,
- 0xe0, 0x60, 0xa0, 0x20, 0xc0, 0x40, 0x80, 0x00
-};
-
-static const uint8_t t6834_cmd_len[0x47] =
-{
- 0x01, 0x01, 0x01, 0x01, 0x01, 0x03, 0x04, 0x03,
- 0x01, 0x02, 0x09, 0x01, 0x09, 0x01, 0x01, 0x02,
- 0x03, 0x03, 0x03, 0x03, 0x05, 0x04, 0x82, 0x02,
- 0x01, 0x01, 0x0a, 0x02, 0x01, 0x81, 0x81, 0x01,
- 0x01, 0x01, 0x01, 0x01, 0x04, 0x01, 0x01, 0x03,
- 0x02, 0x01, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01,
- 0x01, 0x01, 0x01, 0x01, 0x01, 0x82, 0x01, 0x01,
- 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
- 0x01, 0x09, 0x01, 0x03, 0x03, 0x01, 0x01
-};
-
-struct x07_kb
-{
- const char *tag; //input port tag
- uint8_t mask; //bit mask
- uint8_t codes[7]; //port codes
-};
-
-static const x07_kb x07_keycodes[56] =
-{
- {"BZ", 0x01, {0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b}},
- {"S1", 0x01, {0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12}},
- {"S1", 0x02, {0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16}},
- {"S1", 0x04, {0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c}},
- {"S1", 0x08, {0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 0x1d}},
- {"S1", 0x10, {0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e}},
- {"S1", 0x20, {0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f}},
- {"S1", 0x40, {0x20, 0x20, 0x20, 0x00, 0x20, 0x20, 0x20}},
- {"S2", 0x01, {0x5a, 0x7a, 0x1a, 0x00, 0xc2, 0xaf, 0xe1}},
- {"S2", 0x02, {0x58, 0x78, 0x18, 0x00, 0xbb, 0x00, 0x98}},
- {"S2", 0x04, {0x43, 0x63, 0x03, 0x00, 0xbf, 0x00, 0xe4}},
- {"S2", 0x08, {0x56, 0x76, 0x16, 0x00, 0xcb, 0x00, 0x95}},
- {"S2", 0x10, {0x42, 0x62, 0x02, 0x00, 0xba, 0x00, 0xed}},
- {"S2", 0x20, {0x4e, 0x6e, 0x0e, 0x00, 0xd0, 0x00, 0x89}},
- {"S2", 0x40, {0x4d, 0x6d, 0x0d, 0x30, 0xd3, 0x00, 0xf5}},
- {"S2", 0x80, {0x2c, 0x3c, 0x00, 0x00, 0xc8, 0xa4, 0x9c}},
- {"S3", 0x01, {0x41, 0x61, 0x01, 0x00, 0xc1, 0x00, 0x88}},
- {"S3", 0x02, {0x53, 0x73, 0x13, 0x00, 0xc4, 0x00, 0x9f}},
- {"S3", 0x04, {0x44, 0x64, 0x04, 0x00, 0xbc, 0x00, 0xef}},
- {"S3", 0x08, {0x46, 0x66, 0x06, 0x00, 0xca, 0x00, 0xfd}},
- {"S3", 0x10, {0x47, 0x67, 0x07, 0x00, 0xb7, 0x00, 0x9d}},
- {"S3", 0x20, {0x48, 0x68, 0x08, 0x00, 0xb8, 0x00, 0xfe}},
- {"S3", 0x40, {0x4a, 0x6a, 0x0a, 0x31, 0xcf, 0x00, 0xe5}},
- {"S3", 0x80, {0x4b, 0x6b, 0x0b, 0x32, 0xc9, 0x00, 0x9b}},
- {"S4", 0x01, {0x51, 0x71, 0x11, 0x00, 0xc0, 0x00, 0x8b}},
- {"S4", 0x02, {0x57, 0x77, 0x17, 0x00, 0xc3, 0x00, 0xfb}},
- {"S4", 0x04, {0x45, 0x65, 0x05, 0x00, 0xb2, 0xa8, 0x99}},
- {"S4", 0x08, {0x52, 0x72, 0x12, 0x00, 0xbd, 0x00, 0xf6}},
- {"S4", 0x10, {0x54, 0x74, 0x14, 0x00, 0xb6, 0x00, 0x97}},
- {"S4", 0x20, {0x59, 0x79, 0x19, 0x35, 0xdd, 0x00, 0x96}},
- {"S4", 0x40, {0x55, 0x75, 0x15, 0x34, 0xc5, 0x00, 0x94}},
- {"S4", 0x80, {0x49, 0x69, 0x09, 0x00, 0xc6, 0x00, 0xf9}},
- {"S5", 0x01, {0x31, 0x21, 0x00, 0x00, 0xc7, 0x00, 0xe9}},
- {"S5", 0x02, {0x32, 0x22, 0x00, 0x00, 0xcc, 0x00, 0x90}},
- {"S5", 0x04, {0x33, 0x23, 0x00, 0x00, 0xb1, 0xa7, 0x91}},
- {"S5", 0x08, {0x34, 0x24, 0x00, 0x00, 0xb3, 0xa9, 0x92}},
- {"S5", 0x10, {0x35, 0x25, 0x00, 0x00, 0xb4, 0xaa, 0x93}},
- {"S5", 0x20, {0x36, 0x26, 0x00, 0x00, 0xb5, 0xab, 0xec}},
- {"S5", 0x40, {0x37, 0x27, 0x37, 0x00, 0xd4, 0xac, 0xe0}},
- {"S5", 0x80, {0x38, 0x28, 0x37, 0x00, 0xd5, 0xad, 0xf2}},
- {"S7", 0x01, {0x2e, 0x3e, 0x00, 0x2e, 0xd9, 0xa1, 0x9a}},
- {"S7", 0x02, {0x2f, 0x3f, 0x00, 0x00, 0xd2, 0xa5, 0x80}},
- {"S7", 0x04, {0x3f, 0xa5, 0x00, 0x00, 0x00, 0x00, 0x00}},
- {"S7", 0x08, {0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d}},
- {"S7", 0x10, {0x4f, 0x6f, 0x0f, 0x36, 0xd7, 0x00, 0x9e}},
- {"S7", 0x20, {0x50, 0x70, 0x10, 0x00, 0xbe, 0x00, 0xf7}},
- {"S7", 0x40, {0x40, 0x60, 0x00, 0x00, 0xde, 0x00, 0xe7}},
- {"S7", 0x80, {0x5b, 0x7b, 0x00, 0x00, 0xdf, 0xa2, 0x84}},
- {"S8", 0x01, {0x4c, 0x6c, 0x0c, 0x33, 0xd8, 0x00, 0xf4}},
- {"S8", 0x02, {0x3b, 0x2b, 0x00, 0x00, 0xda, 0x00, 0x82}},
- {"S8", 0x04, {0x3a, 0x2a, 0x00, 0x00, 0xb9, 0x00, 0x81}},
- {"S8", 0x08, {0x5d, 0x7d, 0x00, 0x00, 0xd1, 0xa3, 0x85}},
- {"S8", 0x10, {0x39, 0x29, 0x39, 0x00, 0xd6, 0xae, 0xf1}},
- {"S8", 0x20, {0x30, 0x7c, 0x00, 0x00, 0xdc, 0xa6, 0x8a}},
- {"S8", 0x40, {0x2d, 0x3d, 0x00, 0x00, 0xce, 0x00, 0xf0}},
- {"S8", 0x80, {0x3d, 0x7e, 0x00, 0x00, 0xcd, 0x00, 0xfc}}
-};
-
-class x07_state : public driver_device
-{
-public:
- x07_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_printer(*this, "printer")
- , m_beep(*this, "beeper")
- , m_ram(*this, RAM_TAG)
- , m_nvram1(*this, "nvram1")
- , m_nvram2(*this, "nvram2")
- , m_cassette(*this, "cassette")
- , m_card(*this, "cardslot")
- , m_warm_start(1)
- { }
-
- void x07(machine_config &config);
-
- void init_x07();
-
- DECLARE_INPUT_CHANGED_MEMBER( kb_keys );
- DECLARE_INPUT_CHANGED_MEMBER( kb_func_keys );
- DECLARE_INPUT_CHANGED_MEMBER( kb_break );
- DECLARE_INPUT_CHANGED_MEMBER( kb_update_udk );
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<printer_image_device> m_printer;
- required_device<beep_device> m_beep;
- required_device<ram_device> m_ram;
- required_device<nvram_device> m_nvram1;
- required_device<nvram_device> m_nvram2;
- required_device<cassette_image_device> m_cassette;
- required_device<generic_slot_device> m_card;
-
- void machine_start() override;
- void machine_reset() override;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint8_t x07_io_r(offs_t offset);
- void x07_io_w(offs_t offset, uint8_t data);
-
- void nvram_init(nvram_device &nvram, void *data, size_t size);
-
- void t6834_cmd(uint8_t cmd);
- void t6834_r();
- void t6834_w();
- void cassette_w();
- void cassette_r();
- void printer_w();
- void kb_irq();
- void cassette_load();
- void cassette_save();
- void receive_bit(int bit);
-
- inline uint8_t get_char(uint16_t pos);
- inline uint8_t kb_get_index(uint8_t char_code);
- inline void draw_char(uint8_t x, uint8_t y, uint8_t char_pos);
- inline void draw_point(uint8_t x, uint8_t y, uint8_t color);
- inline void draw_udk();
-
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( card_load );
-
- /* general */
- uint8_t m_sleep;
- uint8_t m_warm_start;
- uint8_t m_t6834_ram[0x800];
- uint8_t m_regs_r[8];
- uint8_t m_regs_w[8];
- uint8_t m_alarm[8];
-
- struct fifo_buffer
- {
- uint8_t data[0x100];
- uint8_t read;
- uint8_t write;
- };
- fifo_buffer m_in;
- fifo_buffer m_out;
-
- uint8_t m_udk_on;
- uint8_t m_draw_udk;
- uint8_t m_sp_on;
- uint8_t m_font_code;
- emu_timer *m_rsta_clear;
- emu_timer *m_rstb_clear;
- emu_timer *m_beep_stop;
-
- /* LCD */
- uint8_t m_lcd_on;
- uint8_t m_lcd_map[32][120];
- uint8_t m_scroll_min;
- uint8_t m_scroll_max;
- uint8_t m_blink;
-
- struct lcd_position
- {
- uint8_t x;
- uint8_t y;
- uint8_t on;
- };
- lcd_position m_locate;
- lcd_position m_cursor;
-
- /* keyboard */
- uint8_t m_kb_on;
- uint8_t m_repeat_key; //not supported
- uint8_t m_kb_size;
-
- /* cassette */
- uint8_t m_cass_motor;
- uint8_t m_cass_data;
- uint32_t m_cass_clk;
- uint8_t m_bit_count;
- int m_cass_state;
- emu_timer *m_cass_poll;
- emu_timer *m_cass_tick;
-
- /* printer */
- uint8_t m_prn_sendbit;
- uint8_t m_prn_char_code;
- uint8_t m_prn_buffer[0x100];
- uint8_t m_prn_size;
- void x07_palette(palette_device &palette) const;
- TIMER_CALLBACK_MEMBER(cassette_tick);
- TIMER_CALLBACK_MEMBER(cassette_poll);
- TIMER_CALLBACK_MEMBER(rsta_clear);
- TIMER_CALLBACK_MEMBER(rstb_clear);
- TIMER_CALLBACK_MEMBER(beep_stop);
- TIMER_DEVICE_CALLBACK_MEMBER(blink_timer);
-
- void x07_io(address_map &map);
- void x07_mem(address_map &map);
-};
-
-#endif // MAME_INCLUDES_X07_H
diff --git a/src/mame/includes/x1.h b/src/mame/includes/x1.h
deleted file mode 100644
index 2fd0bc351b6..00000000000
--- a/src/mame/includes/x1.h
+++ /dev/null
@@ -1,344 +0,0 @@
-// license:LGPL-2.1+
-// copyright-holders:Angelo Salese, Barry Rodewald
-/*****************************************************************************
- *
- * includes/x1.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_X1_H
-#define MAME_INCLUDES_X1_H
-
-#pragma once
-
-#include "bus/generic/carts.h"
-#include "bus/generic/slot.h"
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "machine/bankdev.h"
-#include "machine/i8255.h"
-#include "machine/timer.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80ctc.h"
-#include "machine/z80dma.h"
-#include "machine/z80sio.h"
-#include "sound/ay8910.h"
-#include "sound/ym2151.h"
-#include "video/mc6845.h"
-
-#include "formats/x1_tap.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-
-// ======================> x1_keyboard_device
-
-class x1_keyboard_device : public device_t,
- public device_z80daisy_interface
-{
-public:
- // construction/destruction
- x1_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
-private:
- virtual void device_start() override;
- // z80daisy_interface overrides
- virtual int z80daisy_irq_state() override;
- virtual int z80daisy_irq_ack() override;
- virtual void z80daisy_irq_reti() override;
-};
-
-class x1_state : public driver_device
-{
-public:
- x1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "x1_cpu"),
- m_cassette(*this, "cassette"),
- m_cart(*this, "cartslot"),
- m_fdc(*this, "fdc"),
- m_floppy(*this, "fdc:%u", 0),
- m_crtc(*this, "crtc"),
- m_screen(*this, "screen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_dma(*this, "dma"),
- m_iobank(*this, "iobank"),
- m_ym(*this, "ym"),
- m_sound_sw(*this, "SOUND_SW"),
- m_tvram(*this, "tvram"),
- m_avram(*this, "avram"),
- m_kvram(*this, "kvram"),
- m_bitmapbank(*this, "bitmapbank"),
- m_ipl_rom(*this, "ipl"),
- m_cg_rom(*this, "cgrom"),
- m_kanji_rom(*this, "kanji")
- { }
-
- static void floppy_formats(format_registration &fr);
-
- required_device<z80_device> m_maincpu;
- required_device<cassette_image_device> m_cassette;
- required_device<generic_slot_device> m_cart;
- required_device<mb8877_device> m_fdc;
- required_device_array<floppy_connector, 4> m_floppy;
- required_device<mc6845_device> m_crtc;
- required_device<screen_device> m_screen;
-
- uint8_t x1_mem_r(offs_t offset);
- void x1_mem_w(offs_t offset, uint8_t data);
- uint8_t x1_sub_io_r();
- void x1_sub_io_w(uint8_t data);
- uint8_t x1_rom_r();
- void x1_rom_w(offs_t offset, uint8_t data);
- void x1_rom_bank_0_w(uint8_t data);
- void x1_rom_bank_1_w(uint8_t data);
- uint8_t x1_fdc_r(offs_t offset);
- void x1_fdc_w(offs_t offset, uint8_t data);
- uint8_t x1_pcg_r(offs_t offset);
- void x1_pcg_w(offs_t offset, uint8_t data);
- void x1_pal_r_w(uint8_t data);
- void x1_pal_g_w(uint8_t data);
- void x1_pal_b_w(uint8_t data);
- uint8_t x1_ex_gfxram_r(offs_t offset);
- void x1_ex_gfxram_w(offs_t offset, uint8_t data);
- void x1_scrn_w(uint8_t data);
- void x1_pri_w(uint8_t data);
- void x1_6845_w(offs_t offset, uint8_t data);
- uint8_t x1_kanji_r(offs_t offset);
- void x1_kanji_w(offs_t offset, uint8_t data);
- uint8_t x1_emm_r(offs_t offset);
- void x1_emm_w(offs_t offset, uint8_t data);
- uint8_t x1turbo_pal_r();
- uint8_t x1turbo_txpal_r(offs_t offset);
- uint8_t x1turbo_txdisp_r();
- uint8_t x1turbo_gfxpal_r();
- void x1turbo_pal_w(uint8_t data);
- void x1turbo_txpal_w(offs_t offset, uint8_t data);
- void x1turbo_txdisp_w(uint8_t data);
- void x1turbo_gfxpal_w(uint8_t data);
- void x1turbo_blackclip_w(uint8_t data);
- uint8_t x1turbo_mem_r(offs_t offset);
- void x1turbo_mem_w(offs_t offset, uint8_t data);
- void x1turboz_4096_palette_w(offs_t offset, uint8_t data);
- uint8_t x1turboz_blackclip_r();
- uint8_t x1turbo_bank_r();
- void x1turbo_bank_w(uint8_t data);
- uint8_t x1_porta_r();
- uint8_t x1_portb_r();
- uint8_t x1_portc_r();
- void x1_porta_w(uint8_t data);
- void x1_portb_w(uint8_t data);
- void x1_portc_w(uint8_t data);
- void init_x1_kanji();
- virtual void machine_start() override;
- DECLARE_MACHINE_RESET(x1);
- virtual void video_start() override;
- DECLARE_MACHINE_RESET(x1turbo);
- uint32_t screen_update_x1(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- DECLARE_INPUT_CHANGED_MEMBER(ipl_reset);
- DECLARE_INPUT_CHANGED_MEMBER(nmi_reset);
- TIMER_CALLBACK_MEMBER(x1_rtc_increment);
- TIMER_DEVICE_CALLBACK_MEMBER(x1_cmt_wind_timer);
- TIMER_DEVICE_CALLBACK_MEMBER(x1_keyboard_callback);
- DECLARE_WRITE_LINE_MEMBER(fdc_drq_w);
- DECLARE_WRITE_LINE_MEMBER(hdl_w);
-
- uint8_t memory_read_byte(offs_t offset);
- void memory_write_byte(offs_t offset, uint8_t data);
- uint8_t io_read_byte(offs_t offset);
- void io_write_byte(offs_t offset, uint8_t data);
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- optional_device<z80dma_device> m_dma;
- void x1turbo(machine_config &config);
- void x1(machine_config &config);
-
- uint8_t ym_r(offs_t offset);
- uint8_t color_board_r(address_space &space);
- void color_board_w(uint8_t data);
- uint8_t color_board_2_r(address_space &space);
- void color_board_2_w(uint8_t data);
- uint8_t stereo_board_r(address_space &space, offs_t offset);
- void stereo_board_w(offs_t offset, uint8_t data);
- uint8_t rs232_r(offs_t offset);
- void rs232_w(offs_t offset, uint8_t data);
- uint8_t sasi_r(address_space &space, offs_t offset);
- void sasi_w(offs_t offset, uint8_t data);
- uint8_t fdd8_r(address_space &space, offs_t offset);
- void fdd8_w(offs_t offset, uint8_t data);
- uint8_t ext_sio_ctc_r(address_space &space, offs_t offset);
- void ext_sio_ctc_w(offs_t offset, uint8_t data);
- void z_img_cap_w(uint8_t data);
- void z_mosaic_w(uint8_t data);
- void z_chroma_key_w(uint8_t data);
- void z_extra_scroll_w(uint8_t data);
-
- uint8_t m_key_irq_flag; /**< Keyboard IRQ pending. */
- uint8_t m_key_irq_vector; /**< Keyboard IRQ vector. */
-
- void x1_io(address_map &map);
- void x1_io_banks(address_map &map);
- void x1_io_banks_common(address_map &map);
- void x1_mem(address_map &map);
- void x1turbo_io_banks(address_map &map);
- void x1turbo_mem(address_map &map);
-protected:
- struct scrn_reg_t
- {
- uint8_t disp_bank;
- uint8_t pcg_mode;
- uint8_t v400_mode;
- uint8_t ank_sel;
-
- uint8_t pri;
- uint8_t blackclip; // x1 turbo specific
- };
-
- struct turbo_reg_t
- {
- uint8_t pal;
- uint8_t gfx_pal;
- uint8_t txt_pal[8];
- uint8_t txt_disp;
- };
-
- struct x1_rtc_t
- {
- uint8_t sec, min, hour, day, wday, month, year;
- };
-
- void x1_draw_pixel(bitmap_rgb32 &bitmap,int y,int x,uint16_t pen,uint8_t width,uint8_t height);
- void draw_fgtilemap(bitmap_rgb32 &bitmap,const rectangle &cliprect);
- void draw_gfxbitmap(bitmap_rgb32 &bitmap,const rectangle &cliprect, int plane,int pri);
- uint8_t check_prev_height(int x,int y,int x_size);
- uint8_t check_line_valid_height(int y,int x_size,int height);
-
- int priority_mixer_pri(int color);
- void cmt_command( uint8_t cmd );
- uint16_t jis_convert(int kanji_addr);
-
- required_device<address_map_bank_device> m_iobank;
- optional_device<ym2151_device> m_ym; // turbo-only
- optional_ioport m_sound_sw; // turbo-only
- required_shared_ptr<uint8_t> m_tvram; /**< Pointer for Text Video RAM */
- required_shared_ptr<uint8_t> m_avram; /**< Pointer for Attribute Video RAM */
- optional_shared_ptr<uint8_t> m_kvram; /**< Pointer for Extended Kanji Video RAM (X1 Turbo) */
- required_memory_bank m_bitmapbank;
- required_region_ptr<uint8_t> m_ipl_rom; /**< Pointer for IPL ROM */
- std::unique_ptr<uint8_t[]> m_work_ram; /**< Pointer for base work RAM */
- std::unique_ptr<uint8_t[]> m_emm_ram; /**< Pointer for EMM RAM */
- std::unique_ptr<uint8_t[]> m_pcg_ram; /**< Pointer for PCG GFX RAM */
- required_region_ptr<uint8_t> m_cg_rom; /**< Pointer for GFX ROM */
- required_region_ptr<uint8_t> m_kanji_rom; /**< Pointer for Kanji ROMs */
- int m_xstart, /**< Start X offset for screen drawing. */
- m_ystart; /**< Start Y offset for screen drawing. */
- uint8_t m_hres_320; /**< Pixel clock divider setting: (1) 48 (0) 24 */
- uint8_t m_io_switch; /**< Enable access for special bitmap RMW phase in isolated i/o. */
- uint8_t m_io_sys; /**< Read-back for PPI port C */
- uint8_t m_vsync; /**< Screen V-Sync bit, active low */
- uint8_t m_vdisp; /**< Screen V-Disp bit, active high */
- std::unique_ptr<uint8_t[]> m_gfx_bitmap_ram; /**< Pointer for bitmap layer RAM. */
- uint8_t m_pcg_reset; /**< @todo Unused variable. */
- uint8_t m_sub_obf; /**< MCU side: OBF flag active low, indicates that there are parameters in comm buffer. */
- uint8_t m_ctc_irq_flag; /**< @todo Unused variable. */
- scrn_reg_t m_scrn_reg; /**< Base Video Registers. */
- turbo_reg_t m_turbo_reg; /**< Turbo Z Video Registers. */
- x1_rtc_t m_rtc; /**< Struct for RTC related variables */
- emu_timer *m_rtc_timer; /**< Pointer for RTC timer. */
- uint8_t m_pcg_write_addr; /**< @todo Unused variable. */
- uint8_t m_sub_cmd; /**< MCU side: current command issued from Main to Sub. */
- uint8_t m_sub_cmd_length; /**< MCU side: number of parameters, in bytes. */
- uint8_t m_sub_val[8]; /**< MCU side: parameters buffer. */
- int m_sub_val_ptr; /**< MCU side: index for parameter read-back */
- int m_key_i; /**< MCU side: index for keyboard read-back during OBF phase. */
- uint8_t m_irq_vector; /**< @todo Unused variable. */
- uint8_t m_cmt_current_cmd; /**< MCU side: CMT command issued. */
- uint8_t m_cmt_test; /**< MCU side: Tape BREAK status bit. */
- uint8_t m_rom_index[3]; /**< Current ROM address. */
- uint32_t m_kanji_offset; /**< @todo Unused variable. */
- uint8_t m_bios_offset; /**< @todo Unused variable. */
- uint8_t m_x_b; /**< Palette Register for Blue Gun */
- uint8_t m_x_g; /**< Palette Register for Green Gun */
- uint8_t m_x_r; /**< Palette Register for Red Gun */
- uint16_t m_kanji_addr_latch; /**< Internal Kanji ROM address. */
- uint32_t m_kanji_addr; /**< Latched Kanji ROM address. */
- uint8_t m_kanji_eksel; /**< Kanji ROM register bit for latch phase. */
- uint8_t m_pcg_reset_occurred; /**< @todo Unused variable. */
- uint32_t m_old_key1; /**< Keyboard read buffer for i/o port "key1" */
- uint32_t m_old_key2; /**< Keyboard read buffer for i/o port "key2" */
- uint32_t m_old_key3; /**< Keyboard read buffer for i/o port "key3" */
- uint32_t m_old_key4; /**< Keyboard read buffer for i/o port "tenkey" */
- uint32_t m_old_fkey; /**< Keyboard read buffer for i/o port "f_keys" */
- uint32_t m_emm_addr; /**< EMM RAM current address */
- std::unique_ptr<uint8_t[]> m_pal_4096; /**< X1 Turbo Z: pointer for 4096 palette entries */
- uint8_t m_crtc_vreg[0x100], /**< CRTC register buffer. */
- m_crtc_index; /**< CRTC register index. */
- uint8_t m_is_turbo; /**< Machine type: (0) X1 Vanilla, (1) X1 Turbo */
- uint8_t m_ex_bank; /**< X1 Turbo Z: RAM bank register */
- uint8_t m_ram_bank; /**< Regular RAM bank for 0x0000-0x7fff memory window: (0) ROM/IPL (1) RAM */
- /**
- @brief Refresh current bitmap palette.
- */
- void set_current_palette();
- /**
- @brief Retrieves the current PCG address.
-
- @param width Number of currently setted up CRTC characters
- @param y_char_size Number of scanlines per character.
- @return Destination PCG address.
- */
- uint16_t get_pcg_addr(uint16_t width, uint8_t y_char_size);
- /**
- @brief X1 Turbo: Retrieves the current CHR ROM address in Hi-Speed Mode.
-
- @return Destination CHR address.
- */
- uint16_t check_chr_addr();
- /**
- @brief X1 Turbo: Retrieves the current PCG ROM address in Hi-Speed Mode.
-
- @return Destination CHR address.
- */
- uint16_t check_pcg_addr();
- /**
- @brief MCU side: retrieve keycode to game key conversion.
-
- @param port Address to convert.
- @return The converted game key buffer
- */
- uint8_t get_game_key(uint8_t port);
- /**
- @brief MCU side: retrieve keyboard special key register.
-
- @return
- x--- ---- TEN: Numpad, Function key, special input key
- -x-- ---- KIN: Valid key
- --x- ---- REP: Key repeat
- ---x ---- GRAPH key ON
- ---- x--- CAPS lock ON
- ---- -x-- KANA lock ON
- ---- --x- SHIFT ON
- ---- ---x CTRL ON
- */
- uint8_t check_keyboard_shift();
- /**
- @brief convert MAME input to raw scancode for keyboard.
-
- @return the converted scancode
- @todo Unoptimized.
- */
- uint16_t check_keyboard_press();
-
- uint8_t m_fdc_ctrl;
-
-};
-
-/*----------- defined in machine/x1.c -----------*/
-
-DECLARE_DEVICE_TYPE(X1_KEYBOARD, x1_keyboard_device)
-
-#endif // MAME_INCLUDES_X1_H
diff --git a/src/mame/includes/x68k.h b/src/mame/includes/x68k.h
deleted file mode 100644
index 3ef2b9fd3b1..00000000000
--- a/src/mame/includes/x68k.h
+++ /dev/null
@@ -1,390 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Barry Rodewald,Carl
-/*****************************************************************************
- *
- * includes/x68k.h
- *
- * Sharp X68000
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_X68K_H
-#define MAME_INCLUDES_X68K_H
-
-#pragma once
-
-#include "cpu/m68000/m68000.h"
-#include "imagedev/floppy.h"
-#include "machine/8530scc.h"
-#include "machine/hd63450.h"
-#include "machine/i8255.h"
-#include "machine/mb89352.h"
-#include "machine/mc68901.h"
-#include "machine/ram.h"
-#include "machine/rp5c15.h"
-#include "machine/upd765.h"
-#include "sound/flt_vol.h"
-#include "sound/okim6258.h"
-#include "sound/ym2151.h"
-#include "video/x68k_crtc.h"
-#include "bus/x68k/x68kexp.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-#define GFX16 0
-#define GFX256 1
-#define GFX65536 2
-
-class x68k_state : public driver_device
-{
-public:
- x68k_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_okim6258(*this, "okim6258")
- , m_hd63450(*this, "hd63450")
- , m_ram(*this, RAM_TAG)
- , m_crtc(*this, "crtc")
- , m_gfxdecode(*this, "gfxdecode")
- , m_gfxpalette(*this, "gfxpalette")
- , m_pcgpalette(*this, "pcgpalette")
- , m_mfpdev(*this, "mc68901")
- , m_rtc(*this, "rp5c15")
- , m_scc(*this, "scc")
- , m_ym2151(*this, "ym2151")
- , m_ppi(*this, "ppi8255")
- , m_screen(*this, "screen")
- , m_upd72065(*this, "upd72065")
- , m_expansion(*this, "exp%u", 1U)
- , m_adpcm_out(*this, {"adpcm_outl", "adpcm_outr"})
- , m_options(*this, "options")
- , m_mouse1(*this, "mouse1")
- , m_mouse2(*this, "mouse2")
- , m_mouse3(*this, "mouse3")
- , m_xpd1lr(*this, "xpd1lr")
- , m_ctrltype(*this, "ctrltype")
- , m_joy1(*this, "joy1")
- , m_joy2(*this, "joy2")
- , m_md3b(*this, "md3b")
- , m_md6b(*this, "md6b")
- , m_md6b_extra(*this, "md6b_extra")
- , m_eject_drv_out(*this, "eject_drv%u", 0U)
- , m_ctrl_drv_out(*this, "ctrl_drv%u", 0U)
- , m_access_drv_out(*this, "access_drv%u", 0U)
- , m_nvram(0x4000/sizeof(uint16_t))
- , m_tvram(0x80000/sizeof(uint16_t))
- , m_gvram(0x80000/sizeof(uint16_t))
- , m_spritereg(0x8000/sizeof(uint16_t), 0)
- { }
-
- void x68000_base(machine_config &config);
- void x68000(machine_config &config);
-
- virtual void driver_init() override;
-
-protected:
- enum
- {
- TIMER_X68K_LED,
- TIMER_X68K_SCC_ACK,
- TIMER_MD_6BUTTON_PORT1_TIMEOUT,
- TIMER_MD_6BUTTON_PORT2_TIMEOUT,
- TIMER_X68K_BUS_ERROR,
- TIMER_X68K_FDC_TC,
- TIMER_X68K_ADPCM
- };
-
- template <typename CpuType, typename AddrMap, typename Clock>
- void add_cpu(machine_config &config, CpuType &&type, AddrMap &&map, Clock &&clock)
- {
- type(config, m_maincpu, std::forward<Clock>(clock));
- m_maincpu->set_addrmap(AS_PROGRAM, std::forward<AddrMap>(map));
- m_maincpu->set_addrmap(m68000_base_device::AS_CPU_SPACE, &x68k_state::cpu_space_map);
- }
-
- required_device<m68000_base_device> m_maincpu;
- required_device<okim6258_device> m_okim6258;
- required_device<hd63450_device> m_hd63450;
- required_device<ram_device> m_ram;
- required_device<x68k_crtc_device> m_crtc;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_gfxpalette;
- required_device<palette_device> m_pcgpalette;
- required_device<mc68901_device> m_mfpdev;
- required_device<rp5c15_device> m_rtc;
- required_device<scc8530_legacy_device> m_scc;
- required_device<ym2151_device> m_ym2151;
- required_device<i8255_device> m_ppi;
- required_device<screen_device> m_screen;
- required_device<upd72065_device> m_upd72065;
- required_device_array<x68k_expansion_slot_device, 2> m_expansion;
-
- required_device_array<filter_volume_device, 2> m_adpcm_out;
-
- required_ioport m_options;
- required_ioport m_mouse1;
- required_ioport m_mouse2;
- required_ioport m_mouse3;
- required_ioport m_xpd1lr;
- required_ioport m_ctrltype;
- required_ioport m_joy1;
- required_ioport m_joy2;
- required_ioport m_md3b;
- required_ioport m_md6b;
- required_ioport m_md6b_extra;
-
- output_finder<4> m_eject_drv_out;
- output_finder<4> m_ctrl_drv_out;
- output_finder<4> m_access_drv_out;
-
- std::vector<uint16_t> m_nvram;
- std::vector<uint16_t> m_tvram;
- std::vector<uint16_t> m_gvram;
- std::vector<uint16_t> m_spritereg;
-
- bitmap_ind16 m_pcgbitmap;
- bitmap_ind16 m_gfxbitmap;
- bitmap_ind16 m_special;
-
- void floppy_load_unload(bool load, floppy_image_device *dev);
- image_init_result floppy_load(floppy_image_device *dev);
- void floppy_unload(floppy_image_device *dev);
- static void floppy_formats(format_registration &fr);
-
- struct
- {
- int sram_writeprotect;
- int monitor;
- int contrast;
- int keyctrl;
- uint16_t cputype;
- } m_sysport;
- struct
- {
- floppy_image_device *floppy[4];
- int led_ctrl[4];
- int led_eject[4];
- int eject[4];
- int motor;
- int control_drives;
- int select_drive;
- } m_fdc;
- struct
- {
- int ioc7; // "Function B operation of joystick # one option"
- int ioc6; // "Function A operation of joystick # one option"
- int joy1_enable; // IOC4
- int joy2_enable; // IOC5
- } m_joy;
- struct
- {
- int rate; // ADPCM sample rate
- int pan; // ADPCM output switch
- int clock; // ADPCM clock speed
- } m_adpcm;
- struct
- { // video controller at 0xe82000
- unsigned short reg[3];
- int text_pri;
- int sprite_pri;
- int gfx_pri;
- int gfxlayer_pri[4]; // block displayed for each priority level
- int tile8_dirty[1024];
- int tile16_dirty[256];
- int bg_visible_height;
- int bg_visible_width;
- int bg_hshift;
- int bg_vshift;
- int bg_hvres; // bits 0,1 = H-Res, bits 2,3 = V-Res, bit 4 = L/H Freq (0=15.98kHz, 1=31.5kHz)
- int bg_double; // 1 if PCG is to be doubled.
- } m_video;
- struct
- {
- uint8_t irqstatus;
- uint8_t fdcvector;
- uint8_t fddvector;
- uint8_t hdcvector;
- uint8_t prnvector;
- } m_ioc;
- struct
- {
- int inputtype; // determines which input is to be received
- bool irqactive; // true if IRQ is being serviced
- uint8_t irqvector;
- char last_mouse_x; // previous mouse x-axis value
- char last_mouse_y; // previous mouse y-axis value
- int bufferempty; // non-zero if buffer is empty
- } m_mouse;
- struct
- {
- // port A
- int mux1; // multiplexer value
- int seq1; // part of 6-button input sequence.
- emu_timer* io_timeout1;
- // port B
- int mux2; // multiplexer value
- int seq2; // part of 6-button input sequence.
- emu_timer* io_timeout2;
- } m_mdctrl;
- uint8_t m_ppi_port[3];
- bool m_dmac_int;
- bool m_mfp_int;
- bool m_exp_irq2[2];
- bool m_exp_irq4[2];
- bool m_exp_nmi[2];
- uint8_t m_current_ipl;
- int m_led_state;
- emu_timer* m_mouse_timer;
- emu_timer* m_led_timer;
- unsigned char m_scc_prev;
- uint16_t m_ppi_prev;
- emu_timer* m_fdc_tc;
- emu_timer* m_adpcm_timer;
- emu_timer* m_bus_error_timer;
- uint16_t* m_spriteram;
- tilemap_t* m_bg0_8;
- tilemap_t* m_bg1_8;
- tilemap_t* m_bg0_16;
- tilemap_t* m_bg1_16;
- int m_sprite_shift;
- bool m_is_32bit;
-
- TILE_GET_INFO_MEMBER(get_bg0_tile);
- TILE_GET_INFO_MEMBER(get_bg1_tile);
- TILE_GET_INFO_MEMBER(get_bg0_tile_16);
- TILE_GET_INFO_MEMBER(get_bg1_tile_16);
- virtual void video_start() override;
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(led_callback);
- TIMER_CALLBACK_MEMBER(scc_ack);
- TIMER_CALLBACK_MEMBER(md_6button_port1_timeout);
- TIMER_CALLBACK_MEMBER(md_6button_port2_timeout);
- TIMER_CALLBACK_MEMBER(bus_error);
- uint8_t ppi_port_a_r();
- uint8_t ppi_port_b_r();
- uint8_t ppi_port_c_r();
- void ppi_port_c_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(fdc_irq);
- void ct_w(uint8_t data);
- void adpcm_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(mfp_irq_callback);
-
- //dmac
- DECLARE_WRITE_LINE_MEMBER(dma_irq);
- void dma_end(offs_t offset, uint8_t data);
-
- int read_mouse();
- void set_adpcm();
- uint8_t md_3button_r(int port);
- void md_6button_init();
- uint8_t md_6button_r(int port);
- uint8_t xpd1lr_r(int port);
-
- DECLARE_WRITE_LINE_MEMBER(fm_irq);
- template <int N> DECLARE_WRITE_LINE_MEMBER(irq2_line);
- template <int N> DECLARE_WRITE_LINE_MEMBER(irq4_line);
- template <int N> DECLARE_WRITE_LINE_MEMBER(nmi_line);
-
- void scc_w(offs_t offset, uint16_t data);
- uint16_t scc_r(offs_t offset);
- void fdc_w(offs_t offset, uint16_t data);
- uint16_t fdc_r(offs_t offset);
- void ioc_w(offs_t offset, uint16_t data);
- uint16_t ioc_r(offs_t offset);
- void sysport_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t sysport_r(offs_t offset);
- void ppi_w(offs_t offset, uint16_t data);
- uint16_t ppi_r(offs_t offset);
- void sram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t sram_r(offs_t offset);
- void vid_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t vid_r(offs_t offset);
- uint16_t areaset_r();
- void areaset_w(uint16_t data);
- void enh_areaset_w(offs_t offset, uint16_t data);
- uint16_t rom0_r(offs_t offset, uint16_t mem_mask = ~0);
- void rom0_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t emptyram_r(offs_t offset, uint16_t mem_mask = ~0);
- void emptyram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t exp_r(offs_t offset, uint16_t mem_mask = ~0);
- void exp_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- uint16_t spritereg_r(offs_t offset);
- void spritereg_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t spriteram_r(offs_t offset);
- void spriteram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t tvram_read(offs_t offset);
- void tvram_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t gvram_read(offs_t offset);
- void gvram_write(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void update_ipl();
- uint8_t iack1();
- uint8_t iack2();
- uint8_t iack4();
- uint8_t iack5();
-
- void x68k_base_map(address_map &map);
- void x68k_map(address_map &map);
- void cpu_space_map(address_map &map);
-
- inline void plot_pixel(bitmap_rgb32 &bitmap, int x, int y, uint32_t color);
- void draw_text(bitmap_rgb32 &bitmap, int xscr, int yscr, rectangle rect);
- bool draw_gfx_scanline(bitmap_ind16 &bitmap, rectangle cliprect, uint8_t priority);
- void draw_gfx(bitmap_rgb32 &bitmap,rectangle cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, int priority, rectangle cliprect);
-
-public:
- static rgb_t GGGGGRRRRRBBBBBI(uint32_t raw);
-
-protected:
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
- void set_bus_error(uint32_t address, bool write, uint16_t mem_mask);
- bool m_bus_error;
-};
-
-class x68ksupr_state : public x68k_state
-{
-public:
- x68ksupr_state(const machine_config &mconfig, device_type type, const char *tag)
- : x68k_state(mconfig, type, tag)
- , m_scsictrl(*this, "mb89352")
- {
- }
-
- void x68ksupr_base(machine_config &config);
- void x68kxvi(machine_config &config);
- void x68ksupr(machine_config &config);
-
- virtual void driver_init() override;
-
-protected:
- DECLARE_WRITE_LINE_MEMBER(scsi_irq);
- DECLARE_WRITE_LINE_MEMBER(scsi_drq);
-
- required_device<mb89352_device> m_scsictrl;
-
- void x68kxvi_map(address_map &map);
-};
-
-class x68030_state : public x68ksupr_state
-{
-public:
- x68030_state(const machine_config &mconfig, device_type type, const char *tag)
- : x68ksupr_state(mconfig, type, tag)
- {
- }
-
- void x68030(machine_config &config);
-
- virtual void driver_init() override;
-
-protected:
- void x68030_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_X68K_H
diff --git a/src/mame/includes/xain.h b/src/mame/includes/xain.h
deleted file mode 100644
index 3951f0e2990..00000000000
--- a/src/mame/includes/xain.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Carlos A. Lozano, Rob Rosenbrock, Phil Stroffolino
-#ifndef MAME_INCLUDES_XAIN_H
-#define MAME_INCLUDES_XAIN_H
-
-#pragma once
-
-#include "machine/taito68705interface.h"
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class xain_state : public driver_device
-{
-public:
- xain_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_subcpu(*this, "sub")
- , m_mcu(*this, "mcu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_soundlatch(*this, "soundlatch")
- , m_charram(*this, "charram")
- , m_bgram(*this, "bgram%u", 0U)
- , m_spriteram(*this, "spriteram")
- , m_char_tilemap(nullptr)
- , m_bg_tilemaps{ nullptr, nullptr }
- , m_rom_banks(*this, { "mainbank", "subbank" })
- {
- }
-
- void xsleena(machine_config &config);
- void xsleenab(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(vblank_r);
- DECLARE_CUSTOM_INPUT_MEMBER(mcu_status_r);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- void cpuA_bankswitch_w(uint8_t data);
- void cpuB_bankswitch_w(uint8_t data);
- void main_irq_w(offs_t offset, uint8_t data);
- void irqA_assert_w(uint8_t data);
- void irqB_clear_w(uint8_t data);
- uint8_t mcu_comm_reset_r();
- template <unsigned N> void bgram_w(offs_t offset, uint8_t data);
- void charram_w(offs_t offset, uint8_t data);
- template <unsigned N> void scrollx_w(offs_t offset, uint8_t data);
- template <unsigned N> void scrolly_w(offs_t offset, uint8_t data);
- void flipscreen_w(uint8_t data);
-
- TILEMAP_MAPPER_MEMBER(back_scan);
- template <unsigned N> TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_char_tile_info);
-
- TIMER_DEVICE_CALLBACK_MEMBER(scanline);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void bootleg_map(address_map &map);
- void main_map(address_map &map);
- void cpu_map_B(address_map &map);
- void sound_map(address_map &map);
-
- int scanline_to_vcount(int scanline);
-
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<cpu_device> m_subcpu;
- optional_device<taito68705_mcu_device> m_mcu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- required_shared_ptr<u8> m_charram;
- required_shared_ptr_array<u8, 2> m_bgram;
- required_shared_ptr<u8> m_spriteram;
-
- tilemap_t *m_char_tilemap;
- tilemap_t *m_bg_tilemaps[2];
-
- required_memory_bank_array<2> m_rom_banks;
-
- int m_vblank;
-
- u8 m_pri;
- u8 m_scrollx[2][2];
- u8 m_scrolly[2][2];
-};
-
-#endif // MAME_INCLUDES_XAIN_H
diff --git a/src/mame/includes/xavix.h b/src/mame/includes/xavix.h
deleted file mode 100644
index 7f24498bbf3..00000000000
--- a/src/mame/includes/xavix.h
+++ /dev/null
@@ -1,976 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_XAVIX_H
-#define MAME_INCLUDES_XAVIX_H
-
-#include "cpu/m6502/xavix.h"
-#include "cpu/m6502/xavix2000.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-#include "speaker.h"
-#include "machine/bankdev.h"
-#include "machine/i2cmem.h"
-#include "bus/generic/slot.h"
-#include "bus/generic/carts.h"
-#include "bus/ekara/slot.h"
-#include "machine/nvram.h"
-
-#include "machine/xavix_mtrk_wheel.h"
-#include "machine/xavix_madfb_ball.h"
-#include "machine/xavix2002_io.h"
-#include "machine/xavix_io.h"
-#include "machine/xavix_adc.h"
-#include "machine/xavix_anport.h"
-#include "machine/xavix_math.h"
-
-// NTSC clock for regular XaviX?
-#define MAIN_CLOCK XTAL(21'477'272)
-// some games (eg Radica Opus) run off a 3.579545MHz XTAL ( same as the above /6 ) so presumably there is a divider / multiplier circuit on some PCBs?
-// TODO: what's the PAL clock?
-
-
-class xavix_sound_device : public device_t, public device_sound_interface
-{
-public:
- xavix_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- auto read_regs_callback() { return m_readregs_cb.bind(); }
- auto read_samples_callback() { return m_readsamples_cb.bind(); }
-
- void enable_voice(int voice, bool update_only);
- void disable_voice(int voice);
- bool is_voice_enabled(int voice);
-
-protected:
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
-
- // sound stream update overrides
- virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
-
-private:
- sound_stream *m_stream;
-
- struct xavix_voice {
- bool enabled[2];
- uint32_t position[2];
- uint32_t startposition[2];
- uint8_t bank; // no samples appear to cross a bank boundary, so likely wraps
- int type;
- int rate;
- int vol;
- };
-
- devcb_read8 m_readregs_cb;
-
- devcb_read8 m_readsamples_cb;
-
- xavix_voice m_voice[16];
-};
-
-DECLARE_DEVICE_TYPE(XAVIX_SOUND, xavix_sound_device)
-
-
-class xavix_state : public driver_device
-{
-public:
- xavix_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_in0(*this, "IN0"),
- m_in1(*this, "IN1"),
- m_an_in(*this, "AN%u", 0U),
- m_mouse0x(*this, "MOUSE0X"),
- m_mouse0y(*this, "MOUSE0Y"),
- m_mouse1x(*this, "MOUSE1X"),
- m_mouse1y(*this, "MOUSE1Y"),
- m_maincpu(*this, "maincpu"),
- m_nvram(*this, "nvram"),
- m_screen(*this, "screen"),
- m_lowbus(*this, "lowbus"),
- m_sprite_xhigh_ignore_hack(true),
- m_mainram(*this, "mainram"),
- m_fragment_sprite(*this, "fragment_sprite"),
- m_rom_dma_src(*this,"rom_dma_src"),
- m_rom_dma_dst(*this,"rom_dma_dst"),
- m_rom_dma_len(*this,"rom_dma_len"),
- m_palram_sh(*this, "palram_sh"),
- m_palram_l(*this, "palram_l"),
- m_bmp_palram_sh(*this, "bmp_palram_sh"),
- m_bmp_palram_l(*this, "bmp_palram_l"),
- m_bmp_base(*this, "bmp_base"),
- m_colmix_sh(*this, "colmix_sh"),
- m_colmix_l(*this, "colmix_l"),
- m_colmix_ctrl(*this, "colmix_ctrl"),
- m_posirq_x(*this, "posirq_x"),
- m_posirq_y(*this, "posirq_y"),
- m_segment_regs(*this, "segment_regs"),
- m_palette(*this, "palette"),
- m_region(*this, "REGION"),
- m_gfxdecode(*this, "gfxdecode"),
- m_sound(*this, "xavix_sound"),
- m_adc(*this, "adc"),
- m_anport(*this, "anport"),
- m_math(*this, "math"),
- m_xavix2002io(*this, "xavix2002io")
- { }
-
- void xavix(machine_config &config);
- void xavix_nv(machine_config &config);
-
- void xavixp(machine_config &config);
- void xavixp_nv(machine_config &config);
-
- void xavix2000(machine_config &config);
- void xavix2000_nv(machine_config &config);
-
- void xavix2002(machine_config &config);
-
- void init_xavix();
-
- DECLARE_WRITE_LINE_MEMBER(ioevent_trg01);
- DECLARE_WRITE_LINE_MEMBER(ioevent_trg02);
- DECLARE_WRITE_LINE_MEMBER(ioevent_trg04);
- DECLARE_WRITE_LINE_MEMBER(ioevent_trg08);
-
- int m_rgnlen;
- uint8_t* m_rgn;
-
- /* this is just a quick memory system bypass for video reads etc. because going through the
- memory system is slow and also pollutes logs significantly with unmapped reads if the games
- enable the video before actually setting up the source registers!
-
- this will need modifying if any games have RAM instead of ROM (which I think is possible
- with SuperXaviX at least)
- */
- inline uint8_t read_full_data_sp_lowbus_bypass(uint16_t adr)
- {
- adr &= 0x7fff;
-
- if (adr < 0x4000)
- {
- adr &= 0x3fff;
- return m_mainram[adr];
- }
- else if (adr < 0x5000)
- {
- adr &= 0xfff;
- return txarray_r(adr);
- }
- else if ((adr >= 0x6000) && (adr < 0x6800))
- {
- adr &= 0x7ff;
- return m_fragment_sprite[adr];
- }
- else if ((adr >= 0x6800) && (adr < 0x6900))
- {
- adr &= 0xff;
- return m_palram_sh[adr];
- }
- else if ((adr >= 0x6900) && (adr < 0x6a00))
- {
- adr &= 0xff;
- return m_palram_l[adr];
- }
- else if ((adr >= 0x6a00) && (adr < 0x6a20))
- {
- adr &= 0x1f;
- return m_segment_regs[adr];
- }
- // superxavix bitmap palette?
-
- return 0x00;
- }
-
-protected:
-
- virtual uint8_t read_io0(uint8_t direction);
- virtual uint8_t read_io1(uint8_t direction);
- virtual void write_io0(uint8_t data, uint8_t direction);
- virtual void write_io1(uint8_t data, uint8_t direction);
- required_ioport m_in0;
- required_ioport m_in1;
- required_ioport_array<8> m_an_in;
- optional_ioport m_mouse0x;
- optional_ioport m_mouse0y;
- optional_ioport m_mouse1x;
- optional_ioport m_mouse1y;
- required_device<xavix_device> m_maincpu;
- optional_device<nvram_device> m_nvram;
- required_device<screen_device> m_screen;
- required_device<address_map_bank_device> m_lowbus;
- address_space* m_cpuspace;
-
-private:
-
- // screen updates
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- void xavix_map(address_map &map);
-
- void xavix_lowbus_map(address_map &map);
- void xavix_extbus_map(address_map &map);
- void superxavix_lowbus_map(address_map &map);
-
- INTERRUPT_GEN_MEMBER(interrupt);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_cb);
-
- // driver_device overrides
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- virtual void video_start() override;
-
- void debug_mem_w(offs_t offset, uint8_t data)
- {
- m_mainram[offset] = data;
- };
-
- virtual uint8_t opcodes_000000_r(offs_t offset)
- {
- if (offset & 0x8000)
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- else
- {
- return m_lowbus->read8(offset & 0x7fff);
- }
- }
-
- virtual uint8_t opcodes_800000_r(offs_t offset)
- {
- // rad_fb, rad_madf confirm that for >0x800000 the CPU only sees ROM when executing opcodes
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
-
- virtual uint8_t extbus_r(offs_t offset) { return m_rgn[(offset) & (m_rgnlen - 1)]; }
- virtual void extbus_w(offs_t offset, uint8_t data)
- {
- logerror("%s: write to external bus %06x %02x\n", machine().describe_context(), offset, data);
- }
-
-
- uint8_t sample_read(offs_t offset)
- {
- return read_full_data_sp_bypass(offset);
- };
-
- virtual inline uint8_t read_full_data_sp_bypass(uint32_t adr)
- {
- uint8_t databank = adr >> 16;
-
- if (databank >= 0x80)
- {
- return m_rgn[adr & (m_rgnlen - 1)];
- }
- else
- {
- if ((adr&0xffff) >= 0x8000)
- {
- return m_rgn[adr & (m_rgnlen - 1)];
- }
- else
- {
- return read_full_data_sp_lowbus_bypass(adr);
- }
- }
- }
-
-
- uint8_t ioevent_enable_r();
- void ioevent_enable_w(uint8_t data);
- uint8_t ioevent_irqstate_r();
- void ioevent_irqack_w(uint8_t data);
- uint8_t m_ioevent_enable;
- uint8_t m_ioevent_active;
- void process_ioevent(uint8_t bits);
-
- void slotreg_7810_w(uint8_t data);
-
- void rom_dmatrg_w(uint8_t data);
-
- void rom_dmasrc_w(offs_t offset, uint8_t data);
-
- void rom_dmadst_w(offs_t offset, uint8_t data);
- void rom_dmalen_w(offs_t offset, uint8_t data);
- uint8_t rom_dmastat_r();
-
- void spritefragment_dma_params_1_w(offs_t offset, uint8_t data);
- void spritefragment_dma_params_2_w(offs_t offset, uint8_t data);
- void spritefragment_dma_trg_w(uint8_t data);
- uint8_t spritefragment_dma_status_r();
-
- uint8_t io0_data_r();
- uint8_t io1_data_r();
- void io0_data_w(uint8_t data);
- void io1_data_w(uint8_t data);
-
- uint8_t io0_direction_r();
- uint8_t io1_direction_r();
- void io0_direction_w(uint8_t data);
- void io1_direction_w(uint8_t data);
-
- uint8_t m_io0_data;
- uint8_t m_io1_data;
- uint8_t m_io0_direction;
- uint8_t m_io1_direction;
-
- uint8_t nmi_vector_lo_r();
- uint8_t nmi_vector_hi_r();
- uint8_t irq_vector_lo_r();
- uint8_t irq_vector_hi_r();
-
- void vector_enable_w(uint8_t data);
- void nmi_vector_lo_w(uint8_t data);
- void nmi_vector_hi_w(uint8_t data);
- void irq_vector_lo_w(uint8_t data);
- void irq_vector_hi_w(uint8_t data);
-
- uint8_t irq_source_r();
- void irq_source_w(uint8_t data);
-
- uint8_t arena_start_r();
- void arena_start_w(uint8_t data);
- uint8_t arena_end_r();
- void arena_end_w(uint8_t data);
- uint8_t arena_control_r();
- void arena_control_w(uint8_t data);
-
- uint8_t colmix_6ff0_r();
- void colmix_6ff0_w(uint8_t data);
-
- void colmix_6ff1_w(uint8_t data);
- void colmix_6ff2_w(uint8_t data);
-
- uint8_t dispctrl_6ff8_r();
- void dispctrl_6ff8_w(uint8_t data);
-
- uint8_t sound_startstop_r(offs_t offset);
- void sound_startstop_w(offs_t offset, uint8_t data);
- uint8_t sound_updateenv_r(offs_t offset);
- void sound_updateenv_w(offs_t offset, uint8_t data);
-
- uint8_t sound_sta16_r(offs_t offset);
- uint8_t sound_75f5_r();
- uint8_t sound_volume_r();
- void sound_volume_w(uint8_t data);
-
- void sound_regbase_w(uint8_t data);
-
- uint8_t sound_75f8_r();
- void sound_75f8_w(uint8_t data);
-
- uint8_t sound_75f9_r();
- void sound_75f9_w(uint8_t data);
-
- uint8_t sound_timer0_r();
- void sound_timer0_w(uint8_t data);
- uint8_t sound_timer1_r();
- void sound_timer1_w(uint8_t data);
- uint8_t sound_timer2_r();
- void sound_timer2_w(uint8_t data);
- uint8_t sound_timer3_r();
- void sound_timer3_w(uint8_t data);
-
- uint8_t sound_irqstatus_r();
- void sound_irqstatus_w(uint8_t data);
- void sound_75ff_w(uint8_t data);
- uint8_t m_sound_irqstatus;
- uint8_t m_soundreg16_0[2];
- uint8_t m_soundreg16_1[2];
- uint8_t m_sound_regbase;
-
- TIMER_CALLBACK_MEMBER(sound_timer_done);
- emu_timer *m_sound_timer[4];
-
-
- uint8_t timer_status_r();
- void timer_control_w(uint8_t data);
- uint8_t timer_baseval_r();
- void timer_baseval_w(uint8_t data);
- uint8_t timer_freq_r();
- void timer_freq_w(uint8_t data);
- uint8_t timer_curval_r();
- uint8_t m_timer_control;
- uint8_t m_timer_freq;
- TIMER_CALLBACK_MEMBER(freq_timer_done);
- emu_timer *m_freq_timer;
-
- void palram_sh_w(offs_t offset, uint8_t data);
- void palram_l_w(offs_t offset, uint8_t data);
- void colmix_sh_w(offs_t offset, uint8_t data);
- void colmix_l_w(offs_t offset, uint8_t data);
- void bmp_palram_sh_w(offs_t offset, uint8_t data);
- void bmp_palram_l_w(offs_t offset, uint8_t data);
- void spriteram_w(offs_t offset, uint8_t data);
- bool m_sprite_xhigh_ignore_hack;
-
- void tmap1_regs_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- void tmap2_regs_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- uint8_t tmap1_regs_r(offs_t offset);
- uint8_t tmap2_regs_r(offs_t offset);
-
- void spriteregs_w(uint8_t data);
-
- uint8_t pal_ntsc_r();
-
- uint8_t xavix_memoryemu_txarray_r(offs_t offset);
- void xavix_memoryemu_txarray_w(offs_t offset, uint8_t data);
- uint8_t m_txarray[3];
-
- inline uint8_t txarray_r(uint16_t offset)
- {
- if (offset < 0x100)
- {
- offset &= 0xff;
- return ((offset >> 4) | (offset << 4));
- }
- else if (offset < 0x200)
- {
- offset &= 0xff;
- return ((offset >> 4) | (~offset << 4));
- }
- else if (offset < 0x300)
- {
- offset &= 0xff;
- return ((~offset >> 4) | (offset << 4));
- }
- else if (offset < 0x400)
- {
- offset &= 0xff;
- return ((~offset >> 4) | (~offset << 4));
- }
- else if (offset < 0x800)
- {
- return m_txarray[0];
- }
- else if (offset < 0xc00)
- {
- return m_txarray[1];
- }
- else if (offset < 0x1000)
- {
- return m_txarray[2];
- }
-
- return 0xff;
- }
-
-
- uint8_t adc0_r() { return m_an_in[0]->read(); };
- uint8_t adc1_r() { return m_an_in[1]->read(); };
- uint8_t adc2_r() { return m_an_in[2]->read(); };
- uint8_t adc3_r() { return m_an_in[3]->read(); };
- uint8_t adc4_r() { return m_an_in[4]->read(); };
- uint8_t adc5_r() { return m_an_in[5]->read(); };
- uint8_t adc6_r() { return m_an_in[6]->read(); };
- uint8_t adc7_r() { return m_an_in[7]->read(); };
-
- uint8_t anport0_r() { logerror("%s: unhandled anport0_r\n", machine().describe_context()); return 0xff; };
- uint8_t anport1_r() { logerror("%s: unhandled anport1_r\n", machine().describe_context()); return 0xff; };
- uint8_t anport2_r() { logerror("%s: unhandled anport2_r\n", machine().describe_context()); return 0xff; };
- uint8_t anport3_r() { logerror("%s: unhandled anport3_r\n", machine().describe_context()); return 0xff; };
-
- void update_irqs();
- uint8_t m_irqsource;
-
- uint8_t m_vectorenable;
- uint8_t m_nmi_vector_lo_data;
- uint8_t m_nmi_vector_hi_data;
- uint8_t m_irq_vector_lo_data;
- uint8_t m_irq_vector_hi_data;
-
- uint8_t m_spritefragment_dmaparam1[2];
- uint8_t m_spritefragment_dmaparam2[2];
-
- uint8_t m_tmap1_regs[8];
- uint8_t m_tmap2_regs[8];
-
- int m_arena_start;
- int m_arena_end;
- uint8_t m_arena_control;
-
- uint8_t m_6ff0;
- uint8_t m_video_ctrl;
-
- uint8_t m_mastervol;
- uint8_t m_unk_snd75f8;
- uint8_t m_unk_snd75f9;
- uint8_t m_unk_snd75ff;
- uint8_t m_sndtimer[4];
-
- uint8_t m_timer_baseval;
-
- int16_t get_vectors(int which, int half);
-
- // raster IRQ
- TIMER_CALLBACK_MEMBER(interrupt_gen);
- emu_timer *m_interrupt_timer;
- void dispctrl_posirq_x_w(uint8_t data);
- void dispctrl_posirq_y_w(uint8_t data);
-
- required_shared_ptr<uint8_t> m_mainram;
- required_shared_ptr<uint8_t> m_fragment_sprite;
- required_shared_ptr<uint8_t> m_rom_dma_src;
- required_shared_ptr<uint8_t> m_rom_dma_dst;
- required_shared_ptr<uint8_t> m_rom_dma_len;
-
- required_shared_ptr<uint8_t> m_palram_sh;
- required_shared_ptr<uint8_t> m_palram_l;
-
- optional_shared_ptr<uint8_t> m_bmp_palram_sh;
- optional_shared_ptr<uint8_t> m_bmp_palram_l;
- optional_shared_ptr<uint8_t> m_bmp_base;
-
- required_shared_ptr<uint8_t> m_colmix_sh;
- required_shared_ptr<uint8_t> m_colmix_l;
- required_shared_ptr<uint8_t> m_colmix_ctrl;
-
- required_shared_ptr<uint8_t> m_posirq_x;
- required_shared_ptr<uint8_t> m_posirq_y;
-
- required_shared_ptr<uint8_t> m_segment_regs;
-
- required_device<palette_device> m_palette;
-
- required_ioport m_region;
-
- required_device<gfxdecode_device> m_gfxdecode;
-
- void update_pen(int pen, uint8_t shval, uint8_t lval);
- void draw_tile_line(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int tile, int bpp, int xpos, int ypos, int drawheight, int drawwidth, int flipx, int flipy, int pal, int zval, int line);
- void draw_tilemap(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int which);
- void draw_tilemap_line(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int which, int line);
- void draw_sprites(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- void draw_sprites_line(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int line);
- void decode_inline_header(int &flipx, int &flipy, int &test, int& pal, int debug_packets);
-
- bitmap_ind16 m_zbuffer;
-
- uint8_t m_spritereg;
-
- // variables used by rendering
- int m_tmp_dataaddress;
- int m_tmp_databit;
- uint8_t m_bit;
-
- void set_data_address(int address, int bit);
- uint8_t get_next_bit();
- uint8_t get_next_byte();
-
- int get_current_address_byte();
-
- required_device<xavix_sound_device> m_sound;
-
-
- uint8_t sound_regram_read_cb(offs_t offset);
-
-protected:
- required_device<xavix_adc_device> m_adc;
- required_device<xavix_anport_device> m_anport;
- required_device<xavix_math_device> m_math;
- optional_device<xavix2002_io_device> m_xavix2002io;
-
- uint8_t m_extbusctrl[3];
-
- virtual uint8_t extintrf_790x_r(offs_t offset);
- virtual void extintrf_790x_w(offs_t offset, uint8_t data);
-
- // additional SuperXaviX / XaviX2002 stuff
- uint8_t m_sx_extended_extbus[3];
-
- void extended_extbus_reg0_w(uint8_t data);
- void extended_extbus_reg1_w(uint8_t data);
- void extended_extbus_reg2_w(uint8_t data);
-};
-
-class xavix_guru_state : public xavix_state
-{
-public:
- xavix_guru_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_state(mconfig, type, tag)
- { }
-
- void xavix_guru(machine_config &config);
-
-protected:
-
-private:
- uint8_t guru_anport2_r() { uint8_t ret = m_mouse1x->read()-0x10; return ret; }
-};
-
-
-class xavix_i2c_state : public xavix_state
-{
-public:
- xavix_i2c_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_state(mconfig, type, tag),
- m_i2cmem(*this, "i2cmem"),
- hackaddress1(-1),
- hackaddress2(-1)
- { }
-
- void xavix_i2c_24lc04(machine_config &config);
- void xavix_i2c_24c02(machine_config &config);
- void xavix_i2c_24c08(machine_config &config);
-
- void xavix2000_i2c_24c04(machine_config &config);
- void xavix2000_i2c_24c02(machine_config &config);
-
- void xavix2002_i2c_24c04(machine_config &config);
- void xavix2002_i2c_mrangbat(machine_config& config);
-
- void init_epo_efdx()
- {
- init_xavix();
- hackaddress1 = 0x958a;
- hackaddress2 = 0x8524;
- }
-
-protected:
- virtual void write_io1(uint8_t data, uint8_t direction) override;
-
- required_device<i2cmem_device> m_i2cmem;
-
-private:
- int hackaddress1;
- int hackaddress2;
-};
-
-class xavix_i2c_ltv_tam_state : public xavix_i2c_state
-{
-public:
- xavix_i2c_ltv_tam_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_i2c_state(mconfig, type, tag)
- { }
-
- void xavix_i2c_24lc04_tam(machine_config &config);
-
-private:
- virtual void write_io1(uint8_t data, uint8_t direction) override;
-
-private:
- uint8_t tam_anport0_r() { return m_mouse0x->read()^0x7f; }
- uint8_t tam_anport1_r() { return m_mouse0y->read()^0x7f; }
- uint8_t tam_anport2_r() { return m_mouse1x->read()^0x7f; }
- uint8_t tam_anport3_r() { return m_mouse1y->read()^0x7f; }
-};
-
-
-
-class xavix_i2c_lotr_state : public xavix_i2c_state
-{
-public:
- xavix_i2c_lotr_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_i2c_state(mconfig, type, tag)
- { }
-
- DECLARE_READ_LINE_MEMBER(camera_r);
-
-protected:
- //virtual void write_io1(uint8_t data, uint8_t direction) override;
-};
-
-
-
-
-class xavix_mtrk_state : public xavix_state
-{
-public:
- xavix_mtrk_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_state(mconfig, type, tag),
- m_wheel(*this, "wheel")
- { }
-
- void xavix_mtrk(machine_config &config);
- void xavix_mtrkp(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER( mtrk_wheel_r );
-
-protected:
- required_device<xavix_mtrk_wheel_device> m_wheel;
-};
-
-class xavix_madfb_state : public xavix_state
-{
-public:
- xavix_madfb_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_state(mconfig, type, tag),
- m_ball(*this, "ball")
- { }
-
- void xavix_madfb(machine_config &config);
-
-protected:
- required_device<xavix_madfb_ball_device> m_ball;
-};
-
-
-class xavix_cart_state : public xavix_state
-{
-public:
- xavix_cart_state(const machine_config &mconfig, device_type type, const char *tag) :
- xavix_state(mconfig, type, tag),
- m_cartslot(*this, "cartslot")
- {
- m_cartlimit = 0x400000;
- }
-
- void xavix_cart(machine_config &config);
- void xavix_cart_ekara(machine_config &config);
- void xavix_cart_popira(machine_config &config);
- void xavix_cart_ddrfammt(machine_config &config);
- void xavix_cart_evio(machine_config &config);
-
-protected:
-
- // for Cart cases this memory bypass becomes more complex
-
- virtual uint8_t opcodes_000000_r(offs_t offset) override
- {
- if (offset & 0x8000)
- {
- if ((offset & 0x7fffff) >= m_cartlimit)
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- else
- {
- if (m_cartslot->has_cart())
- {
- return m_cartslot->read_cart(offset);
- }
- else
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- }
- }
- else
- {
- return m_lowbus->read8(offset & 0x7fff);
- }
- }
-
- virtual uint8_t opcodes_800000_r(offs_t offset) override
- {
- if ((offset & 0x7fffff) >= m_cartlimit)
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- else
- {
- if (m_cartslot->has_cart())
- {
- return m_cartslot->read_cart(offset);
- }
- else
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- }
- }
-
- // TODO, use callbacks?
- virtual uint8_t extintrf_790x_r(offs_t offset) override
- {
- return xavix_state::extintrf_790x_r(offset);
- }
-
- virtual void extintrf_790x_w(offs_t offset, uint8_t data) override
- {
- xavix_state::extintrf_790x_w(offset,data);
-
- if (offset < 3)
- {
- if (m_cartslot->has_cart())
- m_cartslot->write_bus_control(offset,data);
- }
- };
-
- virtual uint8_t extbus_r(offs_t offset) override
- {
- if (m_cartslot->has_cart() && m_cartslot->is_read_access_not_rom())
- {
- logerror("%s: read from external bus %06x (SEEPROM READ?)\n", machine().describe_context(), offset);
- return m_cartslot->read_extra(offset);
- }
- else
- {
- if ((offset & 0x7fffff) >= m_cartlimit)
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- else
- {
- if (m_cartslot->has_cart())
- {
- return m_cartslot->read_cart(offset);
- }
- else
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- }
- }
- }
- virtual void extbus_w(offs_t offset, uint8_t data) override
- {
- if (m_cartslot->has_cart() && m_cartslot->is_write_access_not_rom())
- {
- logerror("%s: write to external bus %06x %02x (SEEPROM WRITE?)\n", machine().describe_context(), offset, data);
- return m_cartslot->write_extra(offset, data);
- }
- else
- {
- if (m_cartslot->has_cart())
- {
- return m_cartslot->write_cart(offset, data);
- }
- else
- {
- logerror("%s: write to external bus %06x %02x\n", machine().describe_context(), offset, data);
- }
- }
- }
-
- virtual inline uint8_t read_full_data_sp_bypass(uint32_t offset) override
- {
- uint8_t databank = offset >> 16;
-
- if (databank >= 0x80)
- {
- if ((offset & 0x7fffff) >= m_cartlimit)
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- else
- {
- if (m_cartslot->has_cart())
- {
- return m_cartslot->read_cart(offset);
- }
- else
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- }
- }
- else
- {
- if ((offset & 0xffff) >= 0x8000)
- {
- if ((offset & 0x7fffff) >= m_cartlimit)
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- else
- {
- if (m_cartslot->has_cart())
- {
- return m_cartslot->read_cart(offset);
- }
- else
- {
- return m_rgn[(offset) & (m_rgnlen - 1)];
- }
- }
- }
- else
- {
- return read_full_data_sp_lowbus_bypass(offset);
- }
- }
- }
-
- int m_cartlimit;
- required_device<ekara_cart_slot_device> m_cartslot;
-};
-
-
-class xavix_cart_gcslottv_state : public xavix_cart_state
-{
-public:
- xavix_cart_gcslottv_state(const machine_config &mconfig, device_type type, const char *tag) :
- xavix_cart_state(mconfig, type, tag)
- {
- m_cartlimit = 0x800000;
- }
-
- void xavix_cart_gcslottv(machine_config &config);
-
-protected:
-};
-
-class xavix_i2c_cart_state : public xavix_cart_state
-{
-public:
- xavix_i2c_cart_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_cart_state(mconfig,type,tag),
- m_i2cmem(*this, "i2cmem")
- { }
-
- void xavix_i2c_taiko(machine_config &config);
- void xavix_i2c_jpopira(machine_config &config);
-
-protected:
- virtual void write_io1(uint8_t data, uint8_t direction) override;
-
- required_device<i2cmem_device> m_i2cmem;
-};
-
-class xavix_popira2_cart_state : public xavix_cart_state
-{
-public:
- xavix_popira2_cart_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_cart_state(mconfig,type,tag),
- m_p2(*this, "P2")
- { }
-
- void xavix_cart_popira2(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(i2c_r);
-
-protected:
- virtual void write_io1(uint8_t data, uint8_t direction) override;
-
-private:
- uint8_t popira2_adc0_r();
- uint8_t popira2_adc1_r();
-
- required_ioport m_p2;
-};
-
-
-class xavix_ekara_state : public xavix_cart_state
-{
-public:
- xavix_ekara_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_cart_state(mconfig, type, tag),
- m_extra0(*this, "EXTRA0"),
- m_extra1(*this, "EXTRA1"),
- m_extraioselect(0),
- m_extraiowrite(0)
- { }
-
- DECLARE_READ_LINE_MEMBER(ekara_multi0_r);
- DECLARE_READ_LINE_MEMBER(ekara_multi1_r);
-
-// void xavix_ekara(machine_config &config);
-
-protected:
-
- required_ioport m_extra0;
- required_ioport m_extra1;
-
- virtual void write_io0(uint8_t data, uint8_t direction) override;
- virtual void write_io1(uint8_t data, uint8_t direction) override;
-
- uint8_t m_extraioselect;
- uint8_t m_extraiowrite;
-};
-
-
-#endif // MAME_INCLUDES_XAVIX_H
diff --git a/src/mame/includes/xavix_2000.h b/src/mame/includes/xavix_2000.h
deleted file mode 100644
index 0611ba3149c..00000000000
--- a/src/mame/includes/xavix_2000.h
+++ /dev/null
@@ -1,27 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_XAVIX_2000_H
-#define MAME_INCLUDES_XAVIX_2000_H
-
-#include "xavix.h"
-
-
-class xavix_2000_nv_sdb_state : public xavix_state
-{
-public:
- xavix_2000_nv_sdb_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_state(mconfig, type, tag)
- { }
-
- void xavix2000_nv_sdb(machine_config &config);
-
-protected:
-
-private:
- uint8_t sdb_anport0_r() { return m_mouse0x->read()^0x7f; }
- uint8_t sdb_anport1_r() { return m_mouse0y->read()^0x7f; }
- uint8_t sdb_anport2_r() { return m_mouse1x->read()^0x7f; }
- uint8_t sdb_anport3_r() { return m_mouse1y->read()^0x7f; }
-};
-
-#endif // MAME_INCLUDES_XAVIX_2000_H
diff --git a/src/mame/includes/xavix_2002.h b/src/mame/includes/xavix_2002.h
deleted file mode 100644
index 66bbfe380bb..00000000000
--- a/src/mame/includes/xavix_2002.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:David Haywood
-#ifndef MAME_INCLUDES_XAVIX_2002_H
-#define MAME_INCLUDES_XAVIX_2002_H
-
-#include "xavix_2000.h"
-
-class xavix_i2c_jmat_state : public xavix_i2c_state
-{
-public:
- xavix_i2c_jmat_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_i2c_state(mconfig, type, tag)
- { }
-
- void xavix2002_i2c_jmat(machine_config &config);
-
-private:
- uint8_t read_extended_io0();
- uint8_t read_extended_io1();
- uint8_t read_extended_io2();
- void write_extended_io0(uint8_t data);
- void write_extended_io1(uint8_t data);
- void write_extended_io2(uint8_t data);
-};
-
-class xavix2002_superpttv_state : public xavix_state
-{
-public:
- xavix2002_superpttv_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_state(mconfig, type, tag)
- { }
-
- void xavix2002_superpctv(machine_config &config);
-
-private:
- uint8_t read_extended_io0() { return 0x00; };
- uint8_t read_extended_io1() { return 0x00; };
- uint8_t read_extended_io2() { return 0x00; };
- //void write_extended_io0(uint8_t data);
- //void write_extended_io1(uint8_t data);
- //void write_extended_io2(uint8_t data);
-};
-
-class xavix_i2c_bowl_state : public xavix_i2c_state
-{
-public:
- xavix_i2c_bowl_state(const machine_config &mconfig, device_type type, const char *tag)
- : xavix_i2c_state(mconfig, type, tag)
- { }
-
- DECLARE_READ_LINE_MEMBER(camera_r);
-};
-
-
-#endif // MAME_INCLUDES_XAVIX_2002_H
diff --git a/src/mame/includes/xbox.h b/src/mame/includes/xbox.h
deleted file mode 100644
index 0aa37c1513a..00000000000
--- a/src/mame/includes/xbox.h
+++ /dev/null
@@ -1,175 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Samuele Zannoli
-#ifndef MAME_INCLUDES_XBOX_H
-#define MAME_INCLUDES_XBOX_H
-
-#pragma once
-
-#include "xbox_nv2a.h"
-#include "xbox_usb.h"
-
-#include "machine/idectrl.h"
-#include "machine/pic8259.h"
-
-/*
- * PIC16LC connected to SMBus
- */
-
-class xbox_pic16lc_device : public device_t, public smbus_interface
-{
-public:
- xbox_pic16lc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual int execute_command(int command, int rw, int data) override;
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
- uint8_t buffer[0xff];
-};
-
-DECLARE_DEVICE_TYPE(XBOX_PIC16LC, xbox_pic16lc_device)
-
-/*
- * CX25871 connected to SMBus
- */
-
-class xbox_cx25871_device : public device_t, public smbus_interface
-{
-public:
- xbox_cx25871_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual int execute_command(int command, int rw, int data) override;
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
-};
-
-DECLARE_DEVICE_TYPE(XBOX_CX25871, xbox_cx25871_device)
-
-/*
- * EEPROM connected to SMBus
- */
-
-class xbox_eeprom_device : public device_t, public smbus_interface
-{
-public:
- xbox_eeprom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual int execute_command(int command, int rw, int data) override;
-
- std::function<void(void)> hack_eeprom;
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
-};
-
-DECLARE_DEVICE_TYPE(XBOX_EEPROM, xbox_eeprom_device)
-
-/*
- * Super-io connected to lpc bus used as a rs232 debug port
- */
-
-class xbox_superio_device : public device_t, public lpcbus_device_interface
-{
-public:
- xbox_superio_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual void map_extra(address_space *memory_space, address_space *io_space) override;
- virtual void set_host(int index, lpcbus_host_interface *host) override;
-
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
- uint8_t read_rs232(offs_t offset);
- void write_rs232(offs_t offset, uint8_t data);
-
-protected:
- virtual void device_start() override;
-
-private:
- void internal_io_map(address_map &map);
-
- lpcbus_host_interface *lpchost;
- int lpcindex;
- address_space *memspace;
- address_space *iospace;
- bool configuration_mode;
- int index;
- int selected;
- uint8_t registers[16][256]; // 256 registers for up to 16 devices, registers 0-0x2f common to all
-};
-
-DECLARE_DEVICE_TYPE(XBOX_SUPERIO, xbox_superio_device)
-
-/*
- * Base
- */
-
-class xbox_base_state : public driver_device
-{
-public:
- xbox_base_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- nvidia_nv2a(nullptr),
- debug_irq_active(false),
- debug_irq_number(0),
- m_maincpu(*this, "maincpu"),
- mcpxlpc(*this, ":pci:01.0"),
- ide(*this, ":pci:09.0:ide1"),
- debugc_bios(nullptr) { }
-
- void xbox_base(machine_config &config);
-
-protected:
- void debug_generate_irq(int irq, bool active);
- virtual void hack_eeprom() {};
- virtual void hack_usb() {};
-
- DECLARE_WRITE_LINE_MEMBER(vblank_callback);
- uint32_t screen_update_callback(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
- virtual void machine_start() override;
- DECLARE_WRITE_LINE_MEMBER(maincpu_interrupt);
- IRQ_CALLBACK_MEMBER(irq_callback);
-
- nv2a_renderer *nvidia_nv2a;
- bool debug_irq_active;
- int debug_irq_number;
- required_device<cpu_device> m_maincpu;
- required_device<mcpx_isalpc_device> mcpxlpc;
- required_device<bus_master_ide_controller_device> ide;
- static const struct debugger_constants
- {
- uint32_t id;
- uint32_t parameter[8]; // c c c ? ? ? x x
- } debugp[];
- const debugger_constants *debugc_bios;
-
-private:
- void dump_string_command(int ref, const std::vector<std::string> &params);
- void dump_process_command(int ref, const std::vector<std::string> &params);
- void dump_list_command(int ref, const std::vector<std::string> &params);
- void dump_dpc_command(int ref, const std::vector<std::string> &params);
- void dump_timer_command(int ref, const std::vector<std::string> &params);
- void curthread_command(int ref, const std::vector<std::string> &params);
- void threadlist_command(int ref, const std::vector<std::string> &params);
- void generate_irq_command(int ref, const std::vector<std::string> &params);
- void nv2a_combiners_command(int ref, const std::vector<std::string> &params);
- void nv2a_wclipping_command(int ref, const std::vector<std::string> &params);
- void waitvblank_command(int ref, const std::vector<std::string> &params);
- void grab_texture_command(int ref, const std::vector<std::string> &params);
- void grab_vprog_command(int ref, const std::vector<std::string> &params);
- void vprogdis_command(int ref, const std::vector<std::string> &params);
- void vdeclaration_command(int ref, const std::vector<std::string> &params);
- void help_command(int ref, const std::vector<std::string> &params);
- void xbox_debug_commands(int ref, const std::vector<std::string> &params);
- int find_bios_index();
- bool find_bios_hash(int bios, uint32_t &crc32);
- void find_debug_params();
-};
-
-#endif // MAME_INCLUDES_XBOX_H
diff --git a/src/mame/includes/xbox_nv2a.h b/src/mame/includes/xbox_nv2a.h
deleted file mode 100644
index 0ba4ec7586f..00000000000
--- a/src/mame/includes/xbox_nv2a.h
+++ /dev/null
@@ -1,895 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Samuele Zannoli
-/*
- * geforce 3d (NV2A) vertex program disassembler
- */
-#ifndef MAME_INCLUDES_XBOX_NV2A_H
-#define MAME_INCLUDES_XBOX_NV2A_H
-
-#pragma once
-
-#include "machine/pic8259.h"
-#include "video/poly.h"
-
-class vertex_program_disassembler {
- static char const *const srctypes[];
- static char const *const scaops[];
- static int const scapar2[];
- static char const *const vecops[];
- static int const vecpar2[];
- static char const *const vecouts[];
- static char const compchar[];
- int o[6];
- int state;
-
- struct sourcefields
- {
- int Sign;
- int SwizzleX;
- int SwizzleY;
- int SwizzleZ;
- int SwizzleW;
- int TempIndex;
- int ParameterType;
- };
-
- struct fields
- {
- int ScaOperation;
- int VecOperation;
- int SourceConstantIndex;
- int InputIndex;
- sourcefields src[3];
- int VecTempWriteMask;
- int VecTempIndex;
- int ScaTempWriteMask;
- int OutputWriteMask;
- int OutputSelect;
- int OutputIndex;
- int MultiplexerControl;
- int Usea0x;
- int EndOfProgram;
- };
- fields f;
-
- void decodefields(unsigned int *dwords, int offset, fields &decoded);
- int disassemble_mask(int mask, char *s);
- int disassemble_swizzle(sourcefields f, char *s);
- int disassemble_source(sourcefields f, fields fi, char *s);
- int disassemble_output(fields f, char *s);
- int output_types(fields f, int *o);
-public:
- vertex_program_disassembler() { state = 0; }
- int disassemble(unsigned int *instruction, char *line);
-};
-
-/*
- * geforce 3d (NV2A) vertex structure
- */
-struct vertex_nv {
- union {
- float fv[4];
- uint32_t iv[4];
- } attribute[16];
-};
-
-/*
- * geforce 3d (NV2A) vertex program simulator
- */
-class vertex_program_simulator {
-public:
- enum VectorialOperation {
- VecNOP=0,
- VecMOV,
- VecMUL,
- VecADD,
- VecMAD,
- VecDP3,
- VecDPH,
- VecDP4,
- VecDST,
- VecMIN,
- VecMAX,
- VecSLT,
- VecSGE,
- VecARL
- };
- enum ScalarOperation {
- ScaNOP=0,
- ScaIMV,
- ScaRCP,
- ScaRCC,
- ScaRSQ,
- ScaEXP,
- ScaLOG,
- ScaLIT
- };
- vertex_program_simulator();
- // input vertex
- vertex_nv *input;
- // input parameters
- struct constant {
- float fv[4];
- void iv(int idx, uint32_t value)
- {
- union
- {
- uint32_t i;
- float f;
- } cnv;
-
- cnv.i = value;
- fv[idx] = cnv.f;
- }
- } c_constant[192];
- union temp {
- float fv[4];
- } r_register[32];
- // output vertex
- vertex_nv *output;
- // instructions
- struct instruction {
- unsigned int i[4];
- int modified;
- struct decoded {
- int SwizzleA[4], NegateA, ParameterTypeA, TempIndexA;
- int SwizzleB[4], NegateB, ParameterTypeB, TempIndexB;
- int SwizzleC[4], NegateC, ParameterTypeC, TempIndexC;
- VectorialOperation VecOperation;
- ScalarOperation ScaOperation;
- int OutputWriteMask, MultiplexerControl;
- int VecTempWriteMask, ScaTempWriteMask;
- int VecTempIndex, OutputIndex;
- int InputIndex;
- int SourceConstantIndex;
- int OutputSelect;
- int Usea0x;
- int EndOfProgram;
- } d;
- } op[256];
-public:
- void set_data(vertex_nv *in, vertex_nv *out);
- void reset();
- int step();
- void decode_instruction(int address);
- void execute();
- void jump(int address);
- void process(int address, vertex_nv *in, vertex_nv *out, int count);
- int status();
-private:
- void initialize_outputs();
- void initialize_temps();
- void initialize_constants();
- void generate_input(float t[4], int sign, int type, int temp, int swizzle[4]);
- void compute_vectorial_operation(float t[4], int instruction, float par[3 * 4]);
- void compute_scalar_operation(float t[4], int instruction, float par[3 * 4]);
- void assign_output(int index, float t[4], int mask);
- void assign_register(int index, float t[4], int mask);
- void assign_constant(int index, float t[4], int mask);
-
- int ip;
- int a0x;
-};
-
-struct Combiner {
- enum class InputRegister {
- Zero = 0,
- Color0,
- Color1,
- FogColor,
- PrimaryColor,
- SecondaryColor,
- Texture0Color = 8,
- Texture1Color,
- Texture2Color,
- Texture3Color,
- Spare0,
- Spare1,
- SumClamp,
- EF
- };
- enum class MapFunction {
- UnsignedIdentity = 0,
- UnsignedInvert,
- ExpandNormal,
- ExpandNegate,
- HalfBiasNormal,
- HalfBiasNegate,
- SignedIdentyty,
- SignedNegate
- };
- struct {
- struct {
- float A[4]; // 0=R 1=G 2=B 3=A
- float B[4];
- float C[4];
- float D[4];
- float E[4];
- float F[4];
- float G;
- float EF[4];
- float sumclamp[4];
- } variables;
- struct {
- float RGBop1[4]; // 0=R 1=G 2=B
- float RGBop2[4];
- float RGBop3[4];
- float Aop1;
- float Aop2;
- float Aop3;
- } functions;
- struct {
- float primarycolor[4]; // rw
- float secondarycolor[4];
- float texture0color[4];
- float texture1color[4];
- float texture2color[4];
- float texture3color[4];
- float color0[4];
- float color1[4];
- float spare0[4];
- float spare1[4];
- float fogcolor[4]; // ro
- float zero[4];
- } registers;
- float output[4];
- } work[WORK_MAX_THREADS];
- struct {
- struct {
- float constantcolor0[4];
- float constantcolor1[4];
- struct {
- InputRegister A_input;
- int A_component;
- MapFunction A_mapping;
- InputRegister B_input;
- int B_component;
- MapFunction B_mapping;
- InputRegister C_input;
- int C_component;
- MapFunction C_mapping;
- InputRegister D_input;
- int D_component;
- MapFunction D_mapping;
- } mapin_alpha;
- struct {
- InputRegister A_input;
- int A_component;
- MapFunction A_mapping;
- InputRegister B_input;
- int B_component;
- MapFunction B_mapping;
- InputRegister C_input;
- int C_component;
- MapFunction C_mapping;
- InputRegister D_input;
- int D_component;
- MapFunction D_mapping;
- } mapin_rgb;
- struct {
- InputRegister CD_output;
- InputRegister AB_output;
- InputRegister SUM_output;
- int CD_dotproduct;
- int AB_dotproduct;
- int muxsum;
- int bias;
- int scale;
- } mapout_alpha;
- struct {
- InputRegister CD_output;
- InputRegister AB_output;
- InputRegister SUM_output;
- int CD_dotproduct;
- int AB_dotproduct;
- int muxsum;
- int bias;
- int scale;
- } mapout_rgb;
- } stage[8];
- struct {
- float constantcolor0[4];
- float constantcolor1[4];
- int color_sum_clamp;
- struct {
- InputRegister G_input;
- int G_component;
- MapFunction G_mapping;
- } mapin_alpha;
- struct {
- InputRegister A_input;
- int A_component;
- MapFunction A_mapping;
- InputRegister B_input;
- int B_component;
- MapFunction B_mapping;
- InputRegister C_input;
- int C_component;
- MapFunction C_mapping;
- InputRegister D_input;
- int D_component;
- MapFunction D_mapping;
- InputRegister E_input;
- int E_component;
- MapFunction E_mapping;
- InputRegister F_input;
- int F_component;
- MapFunction F_mapping;
- } mapin_rgb;
- } final;
- int stages;
- } setup;
- int used;
-};
-
-class nv2a_renderer; // forward declaration
-struct nvidia_object_data
-{
- nv2a_renderer *data;
-};
-
-/*
- * geforce 3d (NV2A) accelerator
- */
-/* very simplified view
-there is a set of context objects
-
-context objects are stored in RAMIN
-each context object is identified by an handle stored in RAMHT
-
-each context object can be assigned to a channel
-to assign you give to the channel an handle for the object
-
-offset in ramht=(((((handle >> 11) xor handle) >> 11) xor handle) & 0x7ff)*8
-offset in ramht contains the handle itself
-offset in ramht+4 contains in the lower 16 bits the offset in RAMIN divided by 16
-
-objects have methods used to do drawing
-most methods set parameters, others actually draw
-*/
-
-class nv2a_rasterizer : public poly_manager<double, nvidia_object_data, 26, 8192>
-{
-public:
- nv2a_rasterizer(running_machine &machine) : poly_manager<double, nvidia_object_data, 26, 8192>(machine)
- {
- }
-};
-
-class nv2a_renderer
-{
-public:
- enum class VERTEX_PARAMETER {
- PARAM_COLOR_B = 0,
- PARAM_COLOR_G,
- PARAM_COLOR_R,
- PARAM_COLOR_A,
- PARAM_TEXTURE0_S,
- PARAM_TEXTURE0_T,
- PARAM_TEXTURE0_R,
- PARAM_TEXTURE0_Q,
- PARAM_TEXTURE1_S,
- PARAM_TEXTURE1_T,
- PARAM_TEXTURE1_R,
- PARAM_TEXTURE1_Q,
- PARAM_TEXTURE2_S,
- PARAM_TEXTURE2_T,
- PARAM_TEXTURE2_R,
- PARAM_TEXTURE2_Q,
- PARAM_TEXTURE3_S,
- PARAM_TEXTURE3_T,
- PARAM_TEXTURE3_R,
- PARAM_TEXTURE3_Q,
- PARAM_SECONDARY_COLOR_B,
- PARAM_SECONDARY_COLOR_G,
- PARAM_SECONDARY_COLOR_R,
- PARAM_SECONDARY_COLOR_A,
- PARAM_Z,
- PARAM_1W,
- ALL
- };
- enum class NV2A_BEGIN_END {
- STOP = 0,
- POINTS = 1,
- LINES = 2,
- LINE_LOOP = 3,
- LINE_STRIP = 4,
- TRIANGLES = 5,
- TRIANGLE_STRIP = 6,
- TRIANGLE_FAN = 7,
- QUADS = 8,
- QUAD_STRIP = 9,
- POLYGON = 10
- };
- enum class NV2A_VERTEX_ATTR {
- POS = 0, // position
- WEIGHT = 1, // blend weight
- NORMAL = 2,
- COLOR0 = 3, // diffuse
- COLOR1 = 4, // specular
- FOG = 5,
- BACKCOLOR0 = 7, // back diffuse
- BACKCOLOR1 = 8, // back specular
- TEX0 = 9, // texture coordinate
- TEX1 = 10,
- TEX2 = 11,
- TEX3 = 12
- };
- enum class NV2A_VTXBUF_TYPE {
- UBYTE_D3D = 0, // what is the difference with opengl UBYTE ?
- FLOAT = 2,
- UBYTE_OGL = 4,
- USHORT = 5,
- FLOAT_PACKED = 6 // used for vertex color
- };
- enum class NV2A_TEX_FORMAT {
- L8 = 0x0,
- I8 = 0x1,
- A1R5G5B5 = 0x2,
- A4R4G4B4 = 0x4,
- R5G6B5 = 0x5,
- A8R8G8B8 = 0x6,
- X8R8G8B8 = 0x7,
- INDEX8 = 0xb,
- DXT1 = 0xc,
- DXT3 = 0xe,
- DXT5 = 0xf,
- A1R5G5B5_RECT = 0x10,
- R5G6B5_RECT = 0x11,
- A8R8G8B8_RECT = 0x12,
- L8_RECT = 0x13,
- DSDT8_RECT = 0x17,
- A8 = 0x19,
- A8L8 = 0x1a,
- I8_RECT = 0x1b,
- A4R4G4B4_RECT = 0x1d,
- R8G8B8_RECT = 0x1e,
- A8L8_RECT = 0x20,
- Z24 = 0x2a,
- Z24_RECT = 0x2b,
- Z16 = 0x2c,
- Z16_RECT = 0x2d,
- DSDT8 = 0x28,
- HILO16 = 0x33,
- HILO16_RECT = 0x36,
- HILO8 = 0x44,
- SIGNED_HILO8 = 0x45,
- HILO8_RECT = 0x46,
- SIGNED_HILO8_RECT = 0x47
- };
- enum class NV2A_LOGIC_OP {
- CLEAR = 0x1500,
- AND = 0x1501,
- AND_REVERSE = 0x1502,
- COPY = 0x1503,
- AND_INVERTED = 0x1504,
- NOOP = 0x1505,
- XOR = 0x1506,
- OR = 0x1507,
- NOR = 0x1508,
- EQUIV = 0x1509,
- INVERT = 0x150a,
- OR_REVERSE = 0x150b,
- COPY_INVERTED = 0x150c,
- OR_INVERTED = 0x150d,
- NAND = 0x150e,
- SET = 0x150f
- };
- enum class NV2A_BLEND_EQUATION {
- FUNC_ADD = 0x8006,
- MIN = 0x8007,
- MAX = 0x8008,
- FUNC_SUBTRACT = 0x800a,
- FUNC_REVERSE_SUBTRACT = 0x80b
- };
- enum class NV2A_BLEND_FACTOR {
- ZERO = 0x0000,
- ONE = 0x0001,
- SRC_COLOR = 0x0300,
- ONE_MINUS_SRC_COLOR = 0x0301,
- SRC_ALPHA = 0x0302,
- ONE_MINUS_SRC_ALPHA = 0x0303,
- DST_ALPHA = 0x0304,
- ONE_MINUS_DST_ALPHA = 0x0305,
- DST_COLOR = 0x0306,
- ONE_MINUS_DST_COLOR = 0x0307,
- SRC_ALPHA_SATURATE = 0x0308,
- CONSTANT_COLOR = 0x8001,
- ONE_MINUS_CONSTANT_COLOR = 0x8002,
- CONSTANT_ALPHA = 0x8003,
- ONE_MINUS_CONSTANT_ALPHA = 0x8004
- };
- enum class NV2A_COMPARISON_OP {
- NEVER = 0x0200,
- LESS = 0x0201,
- EQUAL = 0x0202,
- LEQUAL = 0x0203,
- GREATER = 0x0204,
- NOTEQUAL = 0x0205,
- GEQUAL = 0x0206,
- ALWAYS = 0x0207
- };
- enum class NV2A_STENCIL_OP {
- ZEROOP = 0x0000,
- INVERTOP = 0x150a,
- KEEP = 0x1e00,
- REPLACE = 0x1e01,
- INCR = 0x1e02,
- DECR = 0x1e03,
- INCR_WRAP = 0x8507,
- DECR_WRAP = 0x8508
- };
- enum class NV2A_RT_TYPE {
- LINEAR = 1,
- SWIZZLED = 2
- };
- enum class NV2A_RT_DEPTH_FORMAT {
- Z16 = 0x0001,
- Z24S8 = 0x0002
- };
- enum class NV2A_COLOR_FORMAT {
- X1R5G5B5_Z1R5G5B5 = 1,
- X1R5G5B5_X1R5G5B5 = 2,
- R5G6B5 = 3,
- X8R8G8B8_Z8R8G8B8 = 4,
- X8R8G8B8_X8R8G8B8 = 5,
- X1A7R8G8B8_Z1A7R8G8B8 = 6,
- X1A7R8G8B8_X1A7R8G8B8 = 7,
- A8R8G8B8 = 8,
- B8 = 9,
- G8B8 = 10
- };
- enum class NV2A_GL_FRONT_FACE {
- CW = 0x0900,
- CCW = 0x0901
- };
- enum class NV2A_GL_CULL_FACE {
- FRONT = 0x0404,
- BACK = 0x0405,
- FRONT_AND_BACK = 0x0408
- };
- enum class COMMAND {
- CALL = 7,
- JUMP = 6,
- NON_INCREASING = 5,
- OLD_JUMP = 4,
- LONG_NON_INCREASING = 3,
- RETURN = 2,
- SLI_CONDITIONAL = 1,
- INCREASING = 0,
- INVALID = -1
- };
-
- struct nv2avertex_t : public nv2a_rasterizer::vertex_t
- {
- double w;
- };
-
- nv2a_renderer(running_machine &machine)
- : rasterizer(machine)
- , mach(machine)
- {
- memset(channel, 0, sizeof(channel));
- memset(pfifo, 0, sizeof(pfifo));
- memset(pcrtc, 0, sizeof(pcrtc));
- memset(pmc, 0, sizeof(pmc));
- memset(pgraph, 0, sizeof(pgraph));
- memset(ramin, 0, sizeof(ramin));
- computedilated();
- objectdata = &(rasterizer.object_data_alloc());
- objectdata->data = this;
- combiner.used = 0;
- primitives_total_count = 0;
- primitives_batches_count = 0;
- indexesleft_count = 0;
- triangles_bfculled = 0;
- vertex_pipeline = 4;
- color_mask = 0xffffffff;
- backface_culling_enabled = false;
- backface_culling_winding = NV2A_GL_FRONT_FACE::CCW;
- backface_culling_culled = NV2A_GL_CULL_FACE::BACK;
- alpha_test_enabled = false;
- alpha_reference = 0;
- alpha_func = NV2A_COMPARISON_OP::ALWAYS;
- depth_test_enabled = false;
- depth_function = NV2A_COMPARISON_OP::LESS;
- depth_write_enabled = false;
- stencil_test_enabled = false;
- stencil_func = NV2A_COMPARISON_OP::ALWAYS;
- stencil_ref = 0;
- stencil_mask = -1;
- stencil_op_fail = NV2A_STENCIL_OP::KEEP;
- stencil_op_zfail = NV2A_STENCIL_OP::KEEP;
- stencil_op_zpass = NV2A_STENCIL_OP::KEEP;
- blending_enabled = false;
- blend_equation = NV2A_BLEND_EQUATION::FUNC_ADD;
- blend_color = 0;
- blend_function_destination = NV2A_BLEND_FACTOR::ZERO;
- blend_function_source = NV2A_BLEND_FACTOR::ONE;
- logical_operation_enabled = false;
- logical_operation = NV2A_LOGIC_OP::COPY;
- fog_color = 0;
- for (int n = 0; n < 4; n++) {
- texture[n].enabled = 0;
- texture[n].mode = 0;
- texture[n].addrmodes = 1;
- texture[n].addrmodet = 1;
- texture[n].addrmoder = 1;
- }
- for (int n = 0; n < 8; n++)
- clippingwindows[n].set(0, 0, 640, 480);
- limits_rendertarget.set(0, 0, 640, 480);
- pitch_rendertarget = 0;
- pitch_depthbuffer = 0;
- size_rendertarget = 0;
- size_depthbuffer = 0;
- log2height_rendertarget = 0;
- log2width_rendertarget = 0;
- dilate_rendertarget = 0;
- antialiasing_rendertarget = 0;
- type_rendertarget = NV2A_RT_TYPE::LINEAR;
- depthformat_rendertarget = NV2A_RT_DEPTH_FORMAT::Z24S8;
- colorformat_rendertarget = NV2A_COLOR_FORMAT::A8R8G8B8;
- bytespixel_rendertarget = 4;
- clear_rendertarget.set(0, 0, 639, 479);
- primitive_type = NV2A_BEGIN_END::STOP;
- antialias_control = 0;
- supersample_factor_x = 1.0;
- supersample_factor_y = 1.0;
- rendertarget = nullptr;
- depthbuffer = nullptr;
- displayedtarget = nullptr;
- old_rendertarget = nullptr;
- puller_waiting = 0;
- debug_grab_texttype = -1;
- debug_grab_textfile = nullptr;
- enable_waitvblank = true;
- enable_clipping_w = false;
- memset(&vertexbuffer, 0, sizeof(vertexbuffer));
- memset(&persistvertexattr, 0, sizeof(persistvertexattr));
- for (int n = 0; n < 16; n++)
- persistvertexattr.attribute[n].fv[3] = 1;
- }
- running_machine &machine() { return mach; }
- uint32_t geforce_r(offs_t offset, uint32_t mem_mask = ~0);
- void geforce_w(address_space &space, offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- DECLARE_WRITE_LINE_MEMBER(vblank_callback);
- uint32_t screen_update_callback(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- bool update_interrupts();
- void set_irq_callbaclk(std::function<void(int state)> callback) { irq_callback = callback; }
-
- void render_texture_simple(int32_t scanline, const nv2a_rasterizer::extent_t &extent, const nvidia_object_data &extradata, int threadid);
- void render_color(int32_t scanline, const nv2a_rasterizer::extent_t &extent, const nvidia_object_data &extradata, int threadid);
- void render_register_combiners(int32_t scanline, const nv2a_rasterizer::extent_t &extent, const nvidia_object_data &objectdata, int threadid);
-
- COMMAND geforce_commandkind(uint32_t word);
- uint32_t geforce_object_offset(uint32_t handle);
- void geforce_read_dma_object(uint32_t handle, uint32_t &offset, uint32_t &size);
- void geforce_assign_object(address_space &space, uint32_t chanel, uint32_t subchannel, uint32_t address);
- int execute_method(address_space &space, uint32_t channel, uint32_t subchannel, uint32_t method, uint32_t address, int &countlen);
- int execute_method_3d(address_space &space, uint32_t chanel, uint32_t subchannel, uint32_t maddress, uint32_t address, uint32_t data, int &countlen);
- int execute_method_m2mf(address_space &space, uint32_t chanel, uint32_t subchannel, uint32_t maddress, uint32_t address, uint32_t data, int &countlen);
- int execute_method_surf2d(address_space &space, uint32_t chanel, uint32_t subchannel, uint32_t maddress, uint32_t address, uint32_t data, int &countlen);
- int execute_method_blit(address_space &space, uint32_t chanel, uint32_t subchannel, uint32_t maddress, uint32_t address, uint32_t data, int &countlen);
- void surface_2d_blit();
- uint32_t texture_get_texel(int number, int x, int y);
- uint8_t *read_pixel(int x, int y, int32_t c[4]);
- void write_pixel(int x, int y, uint32_t color, int z);
- void combiner_initialize_registers(int id, float rgba[6][4]);
- void combiner_initialize_stage(int id, int stage_number);
- void combiner_initialize_final(int id);
- void combiner_map_stage_input(int id, int stage_number); // map combiner registers to variables A..D
- void combiner_map_stage_output(int id, int stage_number); // map combiner calculation results to combiner registers
- void combiner_map_final_input(int id); // map final combiner registers to variables A..F
- void combiner_final_output(int id); // generate final combiner output
- float combiner_map_input_select(int id, Combiner::InputRegister code, int index); // get component index in register selected as input
- float *combiner_map_input_select_array(int id, Combiner::InputRegister code); // get pointer to register selected as input
- float *combiner_map_output_select_array(int id, Combiner::InputRegister code); // get pointer to register selected as output
- float combiner_map_input_function(Combiner::MapFunction code, float value); // apply input mapping function code to value
- void combiner_map_input_function_array(Combiner::MapFunction code, float *data); // apply input mapping function code to data
- void combiner_function_AB(int id, float result[4]); // calculate values for possible outputs
- void combiner_function_AdotB(int id, float result[4]);
- void combiner_function_CD(int id, float result[4]);
- void combiner_function_CdotD(int id, float result[4]);
- void combiner_function_ABmuxCD(int id, float result[4]);
- void combiner_function_ABsumCD(int id, float result[4]);
- void combiner_compute_rgb_outputs(int id, int index);
- void combiner_compute_alpha_outputs(int id, int index);
- void combiner_argb8_float(uint32_t color, float reg[4]); // convert from color to float array
- uint32_t combiner_float_argb8(float reg[4]); // convert from float array to color
- uint32_t dilate0(uint32_t value, int bits);
- uint32_t dilate1(uint32_t value, int bits);
- void computedilated(void);
- bool toggle_register_combiners_usage();
- bool toggle_wait_vblank_support();
- bool toggle_clipping_w_support();
- void debug_grab_texture(int type, const char *filename);
- void debug_grab_vertex_program_slot(int slot, uint32_t *instruction);
- void start(address_space *cpu_space);
- void set_ram_base(void *base);
- void savestate_items();
- void compute_supersample_factors(float &horizontal, float &vertical);
- void compute_limits_rendertarget(uint32_t chanel, uint32_t subchannel);
- void compute_size_rendertarget(uint32_t chanel, uint32_t subchannel);
- void extract_packed_float(uint32_t data, float &first, float &second, float &third);
- void read_vertex(address_space &space, offs_t address, vertex_nv &vertex, int attrib);
- int read_vertices_0x180x(address_space &space, int destination, uint32_t address, int limit);
- int read_vertices_0x1810(address_space &space, int destination, int offset, int limit);
- int read_vertices_0x1818(address_space &space, int destination, uint32_t address, int limit);
- void convert_vertices(vertex_nv *source, nv2avertex_t *destination);
- void assemble_primitive(int source, int count);
- void process_persistent_vertex();
- int clip_triangle_w(nv2avertex_t vi[3], nv2avertex_t *vo);
- uint32_t render_triangle_clipping(const rectangle &cliprect, nv2avertex_t &_v1, nv2avertex_t &_v2, nv2avertex_t &_v3);
- uint32_t render_triangle_culling(const rectangle &cliprect, nv2avertex_t &_v1, nv2avertex_t &_v2, nv2avertex_t &_v3);
- void clear_render_target(int what, uint32_t value);
- void clear_depth_buffer(int what, uint32_t value);
- inline uint8_t *direct_access_ptr(offs_t address);
- TIMER_CALLBACK_MEMBER(puller_timer_work);
-
- nv2a_rasterizer rasterizer;
- running_machine &mach;
- struct {
- uint32_t regs[0x80 / 4];
- struct {
- uint32_t offset;
- uint32_t objclass;
- uint32_t method[0x2000 / 4];
- } object;
- } channel[32][8];
- uint32_t pfifo[0x2000 / 4];
- uint32_t pcrtc[0x1000 / 4];
- uint32_t pmc[0x1000 / 4];
- uint32_t pgraph[0x2000 / 4];
- uint32_t ramin[0x100000 / 4];
- uint32_t dma_offset[13];
- uint32_t dma_size[13];
- uint8_t *basemempointer;
- uint8_t *topmempointer;
- std::function<void(int state)> irq_callback;
- rectangle clippingwindows[8];
- rectangle limits_rendertarget;
- uint32_t pitch_rendertarget;
- uint32_t pitch_depthbuffer;
- uint32_t size_rendertarget;
- uint32_t size_depthbuffer;
- int log2height_rendertarget;
- int log2width_rendertarget;
- int dilate_rendertarget;
- int antialiasing_rendertarget;
- NV2A_RT_TYPE type_rendertarget;
- NV2A_RT_DEPTH_FORMAT depthformat_rendertarget;
- NV2A_COLOR_FORMAT colorformat_rendertarget;
- int bytespixel_rendertarget;
- rectangle clear_rendertarget;
- uint32_t antialias_control;
- float supersample_factor_x;
- float supersample_factor_y;
- uint32_t *rendertarget;
- uint32_t *depthbuffer;
- uint32_t *displayedtarget;
- uint32_t *old_rendertarget;
- struct {
- uint32_t address[16];
- int type[16];
- int stride[16];
- int words[16];
- int offset[16 + 1];
- int enabled; // bitmask
- } vertexbuffer;
- struct {
- int enabled;
- int sizes;
- int sizet;
- int sizer;
- int dilate;
- NV2A_TEX_FORMAT format;
- bool rectangle;
- int rectangle_pitch;
- void *buffer;
- int dma0;
- int dma1;
- int mode;
- int cubic;
- int noborder;
- int dims;
- int mipmap;
- int colorkey;
- int imagefield;
- int aniso;
- int mipmapmaxlod;
- int mipmapminlod;
- int rectheight;
- int rectwidth;
- int addrmodes;
- int addrmodet;
- int addrmoder;
- } texture[4];
- uint32_t triangles_bfculled;
- NV2A_BEGIN_END primitive_type;
- uint32_t primitives_count;
- uint32_t primitives_total_count;
- uint32_t primitives_batches_count;
- int indexesleft_count;
- int indexesleft_first;
- uint32_t vertex_indexes[1024]; // vertex indices sent by the software to the 3d accelerator
- int vertex_count;
- unsigned int vertex_first;
- int vertex_accumulated;
- vertex_nv vertex_software[1024+2]; // vertex attributes sent by the software to the 3d accelerator
- nv2avertex_t vertex_xy[1024+2]; // vertex attributes computed by the 3d accelerator
- vertex_nv persistvertexattr; // persistent vertex attributes
- nv2a_rasterizer::render_delegate render_spans_callback;
- Combiner combiner;
- uint32_t color_mask;
- bool backface_culling_enabled;
- NV2A_GL_FRONT_FACE backface_culling_winding;
- NV2A_GL_CULL_FACE backface_culling_culled;
- bool alpha_test_enabled;
- bool depth_test_enabled;
- bool stencil_test_enabled;
- bool depth_write_enabled;
- bool blending_enabled;
- bool logical_operation_enabled;
- NV2A_COMPARISON_OP alpha_func;
- int alpha_reference;
- NV2A_COMPARISON_OP depth_function;
- NV2A_COMPARISON_OP stencil_func;
- int stencil_ref;
- int stencil_mask;
- NV2A_STENCIL_OP stencil_op_fail;
- NV2A_STENCIL_OP stencil_op_zfail;
- NV2A_STENCIL_OP stencil_op_zpass;
- NV2A_BLEND_EQUATION blend_equation;
- NV2A_BLEND_FACTOR blend_function_source;
- NV2A_BLEND_FACTOR blend_function_destination;
- uint32_t blend_color;
- NV2A_LOGIC_OP logical_operation;
- uint32_t fog_color;
- struct {
- float modelview[4][4];
- float modelview_inverse[4][4];
- float composite[4][4];
- float projection[4][4];
- float translate[4];
- float scale[4];
- } matrix;
- struct {
- vertex_program_simulator exec;
- int instructions;
- int upload_instruction_index;
- int upload_instruction_component;
- int start_instruction;
- int upload_parameter_index;
- int upload_parameter_component;
- } vertexprogram;
- int vertex_pipeline;
-
- struct {
- int format;
- uint32_t pitch_source;
- uint32_t pitch_destination;
- offs_t source_address;
- offs_t destination_address;
- int op;
- int width;
- int heigth;
- uint32_t sourcex;
- uint32_t sourcey;
- uint32_t destinationx;
- uint32_t destinationy;
- } bitblit;
- emu_timer *puller_timer;
- int puller_waiting;
- address_space *puller_space;
- uint32_t dilated0[16][2048];
- uint32_t dilated1[16][2048];
- int dilatechose[256];
- nvidia_object_data *objectdata;
- int debug_grab_texttype;
- char *debug_grab_textfile;
- bool enable_waitvblank;
- bool enable_clipping_w;
-};
-
-#endif // MAME_INCLUDES_XBOX_NV2A_H
diff --git a/src/mame/includes/xbox_pci.h b/src/mame/includes/xbox_pci.h
deleted file mode 100644
index b0fc2aae613..00000000000
--- a/src/mame/includes/xbox_pci.h
+++ /dev/null
@@ -1,490 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Samuele Zannoli
-#ifndef MAME_INCLUDES_XBOX_PCI_H
-#define MAME_INCLUDES_XBOX_PCI_H
-
-#pragma once
-
-#include "machine/pit8253.h"
-#include "xbox_nv2a.h"
-#include "xbox_usb.h"
-
-/*
- * Host
- */
-
-class nv2a_host_device : public pci_host_device {
-public:
- template <typename T>
- nv2a_host_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&cpu_tag)
- : nv2a_host_device(mconfig, tag, owner, clock)
- {
- set_ids_host(0x10de02a5, 0, 0);
- set_cpu_tag(std::forward<T>(cpu_tag));
- }
- nv2a_host_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space,
- uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override;
- template <typename T> void set_cpu_tag(T &&cpu_tag) { cpu.set_tag(std::forward<T>(cpu_tag)); }
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
- required_device<device_memory_interface> cpu;
-};
-
-DECLARE_DEVICE_TYPE(NV2A_HOST, nv2a_host_device)
-
-/*
- * Ram
- */
-
-class nv2a_ram_device : public pci_device {
-public:
- nv2a_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, int memory_size)
- : nv2a_ram_device(mconfig, tag, owner, clock)
- {
- ram_size = memory_size;
- }
- nv2a_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void config_map(address_map &map) override;
-
- virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space,
- uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override;
-
-protected:
- virtual void device_start() override;
-
- uint32_t config_register_r();
- void config_register_w(uint32_t data);
-
-private:
- int ram_size;
- std::vector<uint32_t> ram;
-};
-
-DECLARE_DEVICE_TYPE(NV2A_RAM, nv2a_ram_device)
-
-/*
- * LPC Bus
- */
-
-class lpcbus_host_interface {
-public:
- virtual void set_virtual_line(int line, int state) = 0;
- virtual void remap() = 0;
-};
-
-class lpcbus_device_interface {
-public:
- virtual void map_extra(address_space *memory_space, address_space *io_space) = 0;
- virtual void set_host(int index, lpcbus_host_interface *host) = 0;
-};
-
-class mcpx_isalpc_device : public pci_device, public lpcbus_host_interface {
-public:
- mcpx_isalpc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t subsystem_id);
- mcpx_isalpc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- auto smi() { return m_smi_callback.bind(); }
- auto interrupt_output() { return m_interrupt_output.bind(); }
- auto boot_state_hook() { return m_boot_state_hook.bind(); }
-
- uint32_t acknowledge();
- void debug_generate_irq(int irq, int state);
-
- virtual void set_virtual_line(int line, int state) override;
- virtual void remap() override;
-
- uint32_t acpi_r(offs_t offset, uint32_t mem_mask = ~0);
- void acpi_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- void boot_state_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(irq1);
- DECLARE_WRITE_LINE_MEMBER(irq3);
- DECLARE_WRITE_LINE_MEMBER(irq11);
- DECLARE_WRITE_LINE_MEMBER(irq10);
- DECLARE_WRITE_LINE_MEMBER(irq14);
- DECLARE_WRITE_LINE_MEMBER(irq15);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space,
- uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override;
-
- DECLARE_WRITE_LINE_MEMBER(interrupt_ouptut_changed);
- uint8_t get_slave_ack(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(pit8254_out0_changed);
- DECLARE_WRITE_LINE_MEMBER(pit8254_out1_changed);
- DECLARE_WRITE_LINE_MEMBER(pit8254_out2_changed);
-
-private:
- void internal_io_map(address_map &map);
- void lpc_io(address_map &map);
- void update_smi_line();
- void speaker_set_spkrdata(uint8_t data);
-
- uint8_t portb_r();
- void portb_w(uint8_t data);
-
- devcb_write_line m_smi_callback;
- devcb_write_line m_interrupt_output;
- devcb_write8 m_boot_state_hook;
- required_device<pic8259_device> pic8259_1;
- required_device<pic8259_device> pic8259_2;
- required_device<pit8254_device> pit8254;
-
- uint16_t m_pm1_status;
- uint16_t m_pm1_enable;
- uint16_t m_pm1_control;
- uint16_t m_pm1_timer;
- uint16_t m_gpe0_status;
- uint16_t m_gpe0_enable;
- uint16_t m_global_smi_control;
- uint8_t m_smi_command_port;
- uint8_t m_gpio_mode[26];
- lpcbus_device_interface *lpcdevices[16];
- uint8_t m_speaker;
- bool m_refresh;
- uint8_t m_pit_out2;
- uint8_t m_spkrdata;
- uint8_t m_channel_check;
-};
-
-DECLARE_DEVICE_TYPE(MCPX_ISALPC, mcpx_isalpc_device)
-
-/*
- * SMBus
- */
-
-class smbus_interface {
-public:
- virtual int execute_command(int command, int rw, int data) = 0;
-};
-
-class mcpx_smbus_device : public pci_device {
-public:
- mcpx_smbus_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t subsystem_id);
- mcpx_smbus_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- auto interrupt_handler() { return m_interrupt_handler.bind(); }
-
- uint32_t smbus0_r(offs_t offset, uint32_t mem_mask = ~0);
- void smbus0_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t smbus1_r(offs_t offset, uint32_t mem_mask = ~0);
- void smbus1_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
- virtual void config_map(address_map &map) override;
-
-private:
- devcb_write_line m_interrupt_handler;
- struct smbus_state {
- int status;
- int control;
- int address;
- int data;
- int command;
- int rw;
- smbus_interface *devices[128];
- uint32_t words[256 / 4];
- } smbusst[2];
- void smbus_io0(address_map &map);
- void smbus_io1(address_map &map);
- void smbus_io2(address_map &map);
- uint32_t smbus_read(int bus, offs_t offset, uint32_t mem_mask);
- void smbus_write(int bus, offs_t offset, uint32_t data, uint32_t mem_mask);
- uint8_t minimum_grant_r() { return 3; }
- uint8_t maximum_latency_r() { return 1; }
-};
-
-DECLARE_DEVICE_TYPE(MCPX_SMBUS, mcpx_smbus_device)
-
-/*
- * OHCI USB Controller
- */
-class usb_function_device;
-class mcpx_ohci_device : public pci_device {
-public:
- mcpx_ohci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t subsystem_id);
- mcpx_ohci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- void set_hack_callback(std::function<void(void)> hack) { hack_callback = hack; }
- void plug_usb_device(int port, device_usb_ohci_function_interface *function);
-
- auto interrupt_handler() { return m_interrupt_handler.bind(); }
-
- uint32_t ohci_r(offs_t offset);
- void ohci_w(offs_t offset, uint32_t data);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_config_complete() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- virtual void config_map(address_map &map) override;
-
-private:
- ohci_usb_controller *ohci_usb;
- devcb_write_line m_interrupt_handler;
- emu_timer *timer;
- required_device<cpu_device> maincpu;
- std::function<void(void)> hack_callback;
- void ohci_mmio(address_map &map);
- struct dev_t {
- device_usb_ohci_function_interface *dev;
- int port;
- } connecteds[4];
- int connecteds_count;
- uint8_t minimum_grant_r() { return 3; }
- uint8_t maximum_latency_r() { return 1; }
-};
-
-DECLARE_DEVICE_TYPE(MCPX_OHCI, mcpx_ohci_device)
-
-/*
- * Ethernet
- */
-
-class mcpx_eth_device : public pci_device {
-public:
- mcpx_eth_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- uint32_t eth_r();
- void eth_w(uint32_t data);
- uint32_t eth_io_r();
- void eth_io_w(uint32_t data);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
- void eth_mmio(address_map &map);
- void eth_io(address_map &map);
-};
-
-DECLARE_DEVICE_TYPE(MCPX_ETH, mcpx_eth_device)
-
-/*
- * Audio Processing Unit
- */
-
-class mcpx_apu_device : public pci_device {
-public:
- template <typename T>
- mcpx_apu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t subsystem_id, T &&cpu_tag)
- : mcpx_apu_device(mconfig, tag, owner, clock)
- {
- set_ids(0x10de01b0, 0xc2, 0x040100, subsystem_id);
- set_cpu_tag(std::forward<T>(cpu_tag));
- }
- mcpx_apu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <typename T> void set_cpu_tag(T &&cpu_tag) { cpu.set_tag(std::forward<T>(cpu_tag)); }
-
- uint32_t apu_r(offs_t offset, uint32_t mem_mask = ~0);
- void apu_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- virtual void config_map(address_map &map) override;
-
-private:
- required_device<device_memory_interface> cpu;
- // APU contains 3 dsps: voice processor (VP) global processor (GP) encode processor (EP)
- struct apu_state {
- uint32_t memory[0x60000 / 4];
- uint32_t gpdsp_sgaddress; // global processor scatter-gather
- uint32_t gpdsp_sgblocks;
- uint32_t gpdsp_address;
- uint32_t epdsp_sgaddress; // encoder processor scatter-gather
- uint32_t epdsp_sgblocks;
- uint32_t epdsp_sgaddress2;
- uint32_t epdsp_sgblocks2;
- int voice_number;
- uint32_t voices_heap_blockaddr[1024];
- uint64_t voices_active[4]; //one bit for each voice: 1 playing 0 not
- uint32_t voicedata_address;
- int voices_frequency[256]; // sample rate
- int voices_position[256]; // position in samples * 1000
- int voices_position_start[256]; // position in samples * 1000
- int voices_position_end[256]; // position in samples * 1000
- int voices_position_increment[256]; // position increment every 1ms * 1000
- emu_timer *timer;
- address_space *space;
- } apust;
- void apu_mmio(address_map &map);
- uint8_t minimum_grant_r() { return 1; }
- uint8_t maximum_latency_r() { return 0xc; }
-};
-
-DECLARE_DEVICE_TYPE(MCPX_APU, mcpx_apu_device)
-
-/*
- * AC97 Audio Controller
- */
-
-class mcpx_ac97_audio_device : public pci_device {
-public:
- mcpx_ac97_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t subsystem_id);
- mcpx_ac97_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- uint32_t ac97_audio_r(offs_t offset, uint32_t mem_mask = ~0);
- void ac97_audio_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t ac97_audio_io0_r();
- void ac97_audio_io0_w(uint32_t data);
- uint32_t ac97_audio_io1_r();
- void ac97_audio_io1_w(uint32_t data);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
- virtual void config_map(address_map &map) override;
-
-private:
- struct ac97_state {
- uint32_t mixer_regs[0x84 / 4];
- uint32_t controller_regs[0x40 / 4];
- } ac97st;
- void ac97_mmio(address_map &map);
- void ac97_io0(address_map &map);
- void ac97_io1(address_map &map);
- uint8_t minimum_grant_r() { return 2; }
- uint8_t maximum_latency_r() { return 5; }
-};
-
-DECLARE_DEVICE_TYPE(MCPX_AC97_AUDIO, mcpx_ac97_audio_device)
-
-/*
- * AC97 Modem Controller
- */
-
-class mcpx_ac97_modem_device : public pci_device {
-public:
- mcpx_ac97_modem_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-};
-
-DECLARE_DEVICE_TYPE(MCPX_AC97_MODEM, mcpx_ac97_modem_device)
-
-/*
- * IDE Controller
- */
-
-class mcpx_ide_device : public pci_device {
-public:
- mcpx_ide_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t subsystem_id);
- mcpx_ide_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- auto pri_interrupt_handler() { return m_pri_interrupt_handler.bind(); }
- auto sec_interrupt_handler() { return m_sec_interrupt_handler.bind(); }
-
- void class_rev_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint8_t pri_read_cs1_r();
- void pri_write_cs1_w(uint8_t data);
- uint8_t sec_read_cs1_r();
- void sec_write_cs1_w(uint8_t data);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void map_extra(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space,
- uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override;
-
- virtual void config_map(address_map &map) override;
-
-private:
- required_device<bus_master_ide_controller_device> m_pri;
- required_device<bus_master_ide_controller_device> m_sec;
- devcb_write_line m_pri_interrupt_handler;
- devcb_write_line m_sec_interrupt_handler;
- void ide_pri_command(address_map &map);
- void ide_pri_control(address_map &map);
- void ide_sec_command(address_map &map);
- void ide_sec_control(address_map &map);
- void ide_io(address_map &map);
- DECLARE_WRITE_LINE_MEMBER(ide_pri_interrupt);
- DECLARE_WRITE_LINE_MEMBER(ide_sec_interrupt);
- uint8_t minimum_grant_r() { return 3; }
- uint8_t maximum_latency_r() { return 1; }
-};
-
-DECLARE_DEVICE_TYPE(MCPX_IDE, mcpx_ide_device)
-
-
-/*
- * AGP Bridge
- */
-
-class nv2a_agp_device : public agp_bridge_device {
-public:
- nv2a_agp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t main_id, uint32_t revision)
- : nv2a_agp_device(mconfig, tag, owner, clock)
- {
- set_ids_bridge(main_id, revision);
- }
- nv2a_agp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- void config_map(address_map& map) override;
-
- uint32_t unknown_r(offs_t offset, uint32_t mem_mask = ~0);
- void unknown_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-};
-
-DECLARE_DEVICE_TYPE(NV2A_AGP, nv2a_agp_device)
-
-/*
- * NV2A 3D Accelerator
- */
-
-class nv2a_gpu_device : public agp_device {
-public:
- template <typename T>
- nv2a_gpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&cpu_tag)
- : nv2a_gpu_device(mconfig, tag, owner, clock)
- {
- set_cpu_tag(std::forward<T>(cpu_tag));
- }
- nv2a_gpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <typename T> void set_cpu_tag(T &&cpu_tag) { cpu.set_tag(std::forward<T>(cpu_tag)); }
- nv2a_renderer *debug_get_renderer() { return nvidia_nv2a; }
-
- auto interrupt_handler() { return m_interrupt_handler.bind(); }
-
- uint32_t geforce_r(offs_t offset, uint32_t mem_mask = ~0);
- void geforce_w(address_space &space, offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
- uint32_t nv2a_mirror_r(offs_t offset, uint32_t mem_mask = ~0);
- void nv2a_mirror_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
-private:
- nv2a_renderer *nvidia_nv2a;
- required_device<device_memory_interface> cpu;
- devcb_write_line m_interrupt_handler;
- address_space *m_program;
- void nv2a_mmio(address_map &map);
- void nv2a_mirror(address_map &map);
-};
-
-DECLARE_DEVICE_TYPE(NV2A_GPU, nv2a_gpu_device)
-
-#endif // MAME_INCLUDES_XBOX_PCI_H
diff --git a/src/mame/includes/xbox_usb.h b/src/mame/includes/xbox_usb.h
deleted file mode 100644
index 414d34c1d95..00000000000
--- a/src/mame/includes/xbox_usb.h
+++ /dev/null
@@ -1,534 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Samuele Zannoli
-#ifndef MAME_INCLUDES_XBOX_USB_H
-#define MAME_INCLUDES_XBOX_USB_H
-
-#pragma once
-
-#include <forward_list>
-#include <functional>
-#include <memory>
-
-
-struct OHCIEndpointDescriptor {
- int mps; // MaximumPacketSize
- int f; // Format
- int k; // sKip
- int s; // Speed
- int d; // Direction
- int en; // EndpointNumber
- int fa; // FunctionAddress
- uint32_t tailp; // TDQueueTailPointer
- uint32_t headp; // TDQueueHeadPointer
- uint32_t nexted; // NextED
- int c; // toggleCarry
- int h; // Halted
- uint32_t word0;
-};
-
-struct OHCITransferDescriptor {
- int cc; // ConditionCode
- int ec; // ErrorCount
- int t; // DataToggle
- int di; // DelayInterrupt
- int dp; // Direction/PID
- int r; // bufferRounding
- uint32_t cbp; // CurrentBufferPointer
- uint32_t nexttd; // NextTD
- uint32_t be; // BufferEnd
- uint32_t word0;
-};
-
-struct OHCIIsochronousTransferDescriptor {
- int cc; // ConditionCode
- int fc; // FrameCount
- int di; // DelayInterrupt
- int sf; // StartingFrame
- uint32_t bp0; // BufferPage0
- uint32_t nexttd; // NextTD
- uint32_t be; // BufferEnd
- uint32_t offset[8]; // Offset/PacketStatusWord
- uint32_t word0;
- uint32_t word1;
-};
-
-enum OHCIRegisters {
- HcRevision=0,
- HcControl,
- HcCommandStatus,
- HcInterruptStatus,
- HcInterruptEnable,
- HcInterruptDisable,
- HcHCCA,
- HcPeriodCurrentED,
- HcControlHeadED,
- HcControlCurrentED,
- HcBulkHeadED,
- HcBulkCurrentED,
- HcDoneHead,
- HcFmInterval,
- HcFmRemaining,
- HcFmNumber,
- HcPeriodicStart,
- HcLSThreshold,
- HcRhDescriptorA,
- HcRhDescriptorB,
- HcRhStatus,
- HcRhPortStatus1
-};
-
-enum HcControlBits
-{
- CBSR = 3 << 0, // ControlBulkServiceRatio
- PLE = 1 << 2, // PeriodicListEnable
- IE = 1 << 3, // IsochronousEnable
- CLE = 1 << 4, // ControlListEnable
- BLE = 1 << 5, // BulkListEnable
- HCFS = 3 << 6, // HostControllerFunctionalState
- IR = 1 << 8, // InterruptRouting
- RWC = 1 << 9, // RemoteWakeupConnected
- RWE = 1 << 10 // RemoteWakeupEnable
-};
-
-enum HcCommandStatusBits
-{
- HCR = 1 << 0, // HostControllerReset
- CLF = 1 << 1, // ControlListFilled
- BLF = 1 << 2, // BulkListFilled
- OCR = 1 << 3, // OwnershipChangeRequest
- SOC = 3 << 16 // SchedulingOverrunCount
-};
-
-enum HcInterruptEnableBits
-{
- SO = 1 << 0, // SchedulingOverrun
- WDH = 1 << 1, // WritebackDoneHead
- SF = 1 << 2, // StartofFrame
- RD = 1 << 3, // ResumeDetected
- UE = 1 << 4, // UnrecoverableError
- FNO = 1 << 5, // FrameNumberOverflow
- RHSC = 1 << 6, // RootHubStatusChange
- OC = 1 << 30, // OwnershipChange
- MIE = 1 << 31, // MasterInterruptEnable
-};
-
-
-enum HcRhDescriptorABits
-{
- NDP = 0xff << 0, // NumberDownstreamPorts
- PSM = 1 << 8, // PowerSwitchingMode
- NPS = 1 << 9, // NoPowerSwitching
- DT = 1 << 10, // DeviceType
- OCPM = 1 << 11, // OverCurrentProtectionMode
- NOCPM = 1 << 12, // NoOverCurrentProtection
- POTPGT = 0xff << 24 // PowerOnToPowerGoodTime
-};
-
-enum HcRhDescriptorBBits
-{
- DR = 0xffff << 0, // DeviceRemovable
- PPCM = 0xffff << 16 // PortPowerControlMask
-};
-
-enum HcRhStatusBits
-{
- LPS = 1 << 0, // LocalPowerStatus
- OCI = 1 << 1, // OverCurrentIndicator
- DRWE = 1 << 15, // DeviceRemoteWakeupEnable
- LPSC = 1 << 16, // LocalPowerStatusChange
- OCIC = 1 << 17, // OverCurrentIndicatorChange
- CRWE = 1 << 31, // ClearRemoteWakeupEnable
-};
-
-enum HcRhPortStatusBits
-{
- CCS = 1 << 0, // CurrentConnectStatus
- PES = 1 << 1, // PortEnableStatus
- PSS = 1 << 2, // PortSuspendStatus
- POCI = 1 << 3, // PortOverCurrentIndicator
- PRS = 1 << 4, // PortResetStatus
- PPS = 1 << 8, // PortPowerStatus
- LSDA = 1 << 9, // LowSpeedDeviceAttached
- CSC = 1 << 16, // ConnectStatusChange
- PESC = 1 << 17, // PortEnableStatusChange
- PSSC = 1 << 18, // PortSuspendStatusChange
- POCIC = 1 << 19, // PortOverCurrentIndicatorChange
- PRSC = 1 << 20 // PortResetStatusChange
-};
-
-enum OHCIHostControllerFunctionalState {
- UsbReset=0,
- UsbResume,
- UsbOperational,
- UsbSuspend
-};
-
-enum OHCIInterrupt {
- SchedulingOverrun=1,
- WritebackDoneHead=2,
- StartofFrame=4,
- ResumeDetected=8,
- UnrecoverableError=16,
- FrameNumberOverflow=32,
- RootHubStatusChange=64,
- OwnershipChange=0x40000000,
- MasterInterruptEnable=0x80000000
-};
-
-enum OHCICompletionCode {
- NoError=0,
- CRC,
- BitStuffing,
- DataToggleMismatch,
- Stall,
- DeviceNotResponding,
- PIDCheckFailure,
- UnexpectedPID,
- DataOverrun,
- DataUnderrun,
- BufferOverrun=12,
- BufferUnderrun,
- NotAccessed=14
-};
-
-struct USBSetupPacket {
- uint8_t bmRequestType;
- uint8_t bRequest;
- uint16_t wValue;
- uint16_t wIndex;
- uint16_t wLength;
-};
-
-struct USBStandardDeviceDescriptor {
- uint8_t bLength;
- uint8_t bDescriptorType;
- uint16_t bcdUSB;
- uint8_t bDeviceClass;
- uint8_t bDeviceSubClass;
- uint8_t bDeviceProtocol;
- uint8_t bMaxPacketSize0;
- uint16_t idVendor;
- uint16_t idProduct;
- uint16_t bcdDevice;
- uint8_t iManufacturer;
- uint8_t iProduct;
- uint8_t iSerialNumber;
- uint8_t bNumConfigurations;
-};
-
-struct USBStandardConfigurationDescriptor {
- uint8_t bLength;
- uint8_t bDescriptorType;
- uint16_t wTotalLength;
- uint8_t bNumInterfaces;
- uint8_t bConfigurationValue;
- uint8_t iConfiguration;
- uint8_t bmAttributes;
- uint8_t MaxPower;
-};
-
-struct USBStandardInterfaceDescriptor {
- uint8_t bLength;
- uint8_t bDescriptorType;
- uint8_t bInterfaceNumber;
- uint8_t bAlternateSetting;
- uint8_t bNumEndpoints;
- uint8_t bInterfaceClass;
- uint8_t bInterfaceSubClass;
- uint8_t bInterfaceProtocol;
- uint8_t iInterface;
-};
-
-struct USBStandardEndpointDescriptor {
- uint8_t bLength;
- uint8_t bDescriptorType;
- uint8_t bEndpointAddress;
- uint8_t bmAttributes;
- uint16_t wMaxPacketSize;
- uint8_t bInterval;
-};
-
-enum USBPid {
- SetupPid=0,
- OutPid,
- InPid
-};
-
-enum USBRequestCode {
- GET_STATUS=0,
- CLEAR_FEATURE=1,
- SET_FEATURE=3,
- SET_ADDRESS=5,
- GET_DESCRIPTOR=6,
- SET_DESCRIPTOR=7,
- GET_CONFIGURATION=8,
- SET_CONFIGURATION=9,
- GET_INTERFACE=10,
- SET_INTERFACE=11,
- SYNCH_FRAME=12
-};
-
-enum USBDescriptorType {
- DEVICE=1,
- CONFIGURATION=2,
- STRING=3,
- INTERFACE=4,
- ENDPOINT=5
-};
-
-enum USBRequestType
-{
- StandardType=0,
- ClassType,
- VendorType,
- ReservedType
-};
-
-enum USBRequestRecipient
-{
- DeviceRecipient=0,
- InterfaceRecipient,
- EndpointRecipient,
- OtherRecipient
-};
-
-enum USBDeviceState
-{
- DefaultState,
- AddressState,
- ConfiguredState
-};
-
-enum USBControlDirection
-{
- HostToDevice=0,
- DeviceToHost=1
-};
-
-enum USBEndpointType
-{
- ControlEndpoint=0,
- IsochronousEndpoint,
- BulkEndpoint,
- InterruptEndpoint
-};
-
-struct usb_device_string
-{
- uint8_t *position;
- int size;
-};
-
-struct usb_device_interfac_alternate
-{
- uint8_t *position;
- int size;
- USBStandardInterfaceDescriptor interface_descriptor;
- std::forward_list<USBStandardEndpointDescriptor> endpoint_descriptors;
-};
-
-struct usb_device_interfac
-{
- uint8_t *position;
- int size;
- std::forward_list<usb_device_interfac_alternate> alternate_settings;
- int selected_alternate;
-};
-
-struct usb_device_configuration
-{
- USBStandardConfigurationDescriptor configuration_descriptor;
- uint8_t *position;
- int size;
- std::forward_list<usb_device_interfac> interfaces;
-};
-
-/*
- * OHCI Usb Controller
- */
-
-class device_usb_ohci_function_interface; // forward declaration
-
-class ohci_usb_controller
-{
-public:
- ohci_usb_controller();
- ~ohci_usb_controller() {}
- void usb_ohci_plug(int port, device_usb_ohci_function_interface *function);
- void usb_ohci_device_address_changed(int old_address, int new_address);
- void set_cpu(cpu_device *cpu) { m_maincpu = cpu; }
- void set_timer(emu_timer *timer) { ohcist.timer = timer; }
- void set_irq_callback(std::function<void(int state)> callback) { irq_callback = callback; }
-
- void start();
- void reset();
- void timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
-
- uint32_t read(offs_t offset);
- void write(offs_t offset, uint32_t data);
-
-private:
- void usb_ohci_interrupts();
- void usb_ohci_read_endpoint_descriptor(uint32_t address);
- void usb_ohci_writeback_endpoint_descriptor(uint32_t address);
- void usb_ohci_read_transfer_descriptor(uint32_t address);
- void usb_ohci_writeback_transfer_descriptor(uint32_t address);
- void usb_ohci_read_isochronous_transfer_descriptor(uint32_t address);
- void usb_ohci_writeback_isochronous_transfer_descriptor(uint32_t address);
- std::function<void (int state)> irq_callback;
- cpu_device *m_maincpu;
- struct {
- uint32_t hc_regs[256];
- struct {
- device_usb_ohci_function_interface *function;
- int address;
- int delay;
- } ports[4 + 1];
- struct
- {
- device_usb_ohci_function_interface *function;
- int port;
- } address[256];
- emu_timer *timer;
- int state;
- uint32_t framenumber;
- uint32_t nextinterupted;
- uint32_t nextbulked;
- int interruptbulkratio;
- int writebackdonehadcounter;
- address_space *space;
- uint8_t buffer[1024];
- OHCIEndpointDescriptor endpoint_descriptor;
- OHCITransferDescriptor transfer_descriptor;
- OHCIIsochronousTransferDescriptor isochronous_transfer_descriptor;
- } ohcist;
-};
-
-/*
- * Base class for usb devices
- */
-
-class device_usb_ohci_function_interface : public device_interface {
-public:
- virtual void initialize();
- virtual void execute_reset();
- virtual void execute_connect() {}
- virtual void execute_disconnect() {}
- void set_bus_manager(ohci_usb_controller *usb_bus_manager);
- int execute_transfer(int endpoint, int pid, uint8_t *buffer, int size);
-protected:
- device_usb_ohci_function_interface(const machine_config &config, device_t &device);
- virtual int handle_nonstandard_request(int endpoint, USBSetupPacket *setup) { return -1; }
- virtual int handle_get_status_request(int endpoint, USBSetupPacket *setup) { return 0; }
- virtual int handle_clear_feature_request(int endpoint, USBSetupPacket *setup) { return 0; }
- virtual int handle_set_feature_request(int endpoint, USBSetupPacket *setup) { return 0; }
- virtual int handle_set_descriptor_request(int endpoint, USBSetupPacket *setup) { return 0; }
- virtual int handle_synch_frame_request(int endpoint, USBSetupPacket *setup) { return 0; }
- virtual void handle_status_stage(int endpoint) { return; }
- virtual int handle_bulk_pid(int endpoint, int pid, uint8_t *buffer, int size) { return 0; }
- virtual int handle_interrupt_pid(int endpoint, int pid, uint8_t *buffer, int size) { return 0; }
- virtual int handle_isochronous_pid(int endpoint, int pid, uint8_t *buffer, int size) { return 0; }
-
- void add_device_descriptor(const USBStandardDeviceDescriptor &descriptor);
- void add_configuration_descriptor(const USBStandardConfigurationDescriptor &descriptor);
- void add_interface_descriptor(const USBStandardInterfaceDescriptor &descriptor);
- void add_endpoint_descriptor(const USBStandardEndpointDescriptor &descriptor);
- void add_string_descriptor(const uint8_t *descriptor);
- void select_configuration(int index);
- void select_alternate(int interfacei, int index);
- int find_alternate(int interfacei);
- uint8_t *position_device_descriptor(int &size);
- uint8_t *position_configuration_descriptor(int index, int &size);
- uint8_t *position_string_descriptor(int index, int &size);
- ohci_usb_controller *busmanager;
- struct {
- int type;
- int controldirection;
- int controltype;
- int controlrecipient;
- int remain;
- uint8_t *position;
- uint8_t buffer[128];
- } endpoints[256];
- int state;
- bool settingaddress;
- int newaddress;
- int address;
- int configurationvalue;
- std::unique_ptr<uint8_t []> descriptors;
- int descriptors_pos;
- bool wantstatuscallback;
- USBStandardDeviceDescriptor device_descriptor;
- std::forward_list<usb_device_configuration> configurations;
- std::forward_list<usb_device_string> device_strings;
- usb_device_configuration *latest_configuration;
- usb_device_interfac_alternate *latest_alternate;
- usb_device_configuration *selected_configuration;
-};
-
-/*
- * Usb port connector
- */
-
-class ohci_usb_connector : public device_t, public device_single_card_slot_interface<device_usb_ohci_function_interface>
-{
-public:
- template <typename T>
- ohci_usb_connector(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt, bool fixed)
- : ohci_usb_connector(mconfig, tag, owner, 0)
- {
- option_reset();
- opts(*this);
- set_default_option(dflt);
- set_fixed(fixed);
- }
-
- ohci_usb_connector(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual ~ohci_usb_connector();
-
-protected:
- virtual void device_start() override;
-};
-
-DECLARE_DEVICE_TYPE(OHCI_USB_CONNECTOR, ohci_usb_connector)
-
-/*
- * Game controller usb device
- */
-
-DECLARE_DEVICE_TYPE(OHCI_GAME_CONTROLLER, ohci_game_controller_device)
-
-class ohci_game_controller_device : public device_t, public device_usb_ohci_function_interface
-{
-public:
- ohci_game_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- void initialize() override;
- int handle_nonstandard_request(int endpoint, USBSetupPacket *setup) override;
- int handle_interrupt_pid(int endpoint, int pid, uint8_t *buffer, int size) override;
-
-protected:
- virtual void device_start() override;
- virtual ioport_constructor device_input_ports() const override;
-private:
- static const USBStandardDeviceDescriptor devdesc;
- static const USBStandardConfigurationDescriptor condesc;
- static const USBStandardInterfaceDescriptor intdesc;
- static const USBStandardEndpointDescriptor enddesc82;
- static const USBStandardEndpointDescriptor enddesc02;
- required_ioport m_ThumbstickLh; // left analog thumbstick horizontal movement
- required_ioport m_ThumbstickLv; // left analog thumbstick vertical movement
- required_ioport m_ThumbstickRh; // right analog thumbstick horizontal movement
- required_ioport m_ThumbstickRv; // right analog thumbstick vertical movement
- required_ioport m_DPad; // pressure sensitive directional pad
- required_ioport m_TriggerL; // analog trigger
- required_ioport m_TriggerR; // analog trigger
- required_ioport m_Buttons; // digital buttons
- required_ioport m_AGreen; // analog button
- required_ioport m_BRed; // analog button
- required_ioport m_XBlue; // analog button
- required_ioport m_YYellow; // analog button
- required_ioport m_Black; // analog button
- required_ioport m_White; // analog button
-};
-
-#endif // MAME_INCLUDES_XBOX_USB_H
diff --git a/src/mame/includes/xerox820.h b/src/mame/includes/xerox820.h
deleted file mode 100644
index e5e9c9c3f81..00000000000
--- a/src/mame/includes/xerox820.h
+++ /dev/null
@@ -1,190 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_XEROX820_H
-#define MAME_INCLUDES_XEROX820_H
-
-#pragma once
-
-#include "bus/scsi/sa1403d.h"
-#include "bus/rs232/rs232.h"
-#include "cpu/z80/z80.h"
-#include "machine/z80daisy.h"
-#include "cpu/i86/i86.h"
-#include "machine/com8116.h"
-#include "machine/ram.h"
-#include "bus/scsi/scsi.h"
-#include "bus/scsi/scsihd.h"
-#include "machine/timer.h"
-#include "machine/wd_fdc.h"
-#include "machine/x820kb.h"
-#include "machine/z80pio.h"
-#include "machine/z80ctc.h"
-#include "machine/z80sio.h"
-#include "sound/spkrdev.h"
-#include "sound/beep.h"
-#include "machine/timer.h"
-#include "imagedev/floppy.h"
-#include "imagedev/snapquik.h"
-#include "emupal.h"
-
-#define SCREEN_TAG "screen"
-
-#define Z80_TAG "u46"
-#define Z80PIO_KB_TAG "u105"
-#define Z80PIO_GP_TAG "u101"
-#define Z80PIO_RD_TAG "u8"
-#define Z80SIO_TAG "u96"
-#define Z80CTC_TAG "u99"
-#define FD1771_TAG "u109"
-#define FD1797_TAG "u109"
-#define COM8116_TAG "u76"
-#define I8086_TAG "i8086"
-#define SASIBUS_TAG "sasi"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-#define KEYBOARD_TAG "kb"
-
-#define XEROX820_VIDEORAM_SIZE 0x1000
-#define XEROX820_VIDEORAM_MASK 0x0fff
-
-class xerox820_state : public driver_device
-{
-public:
- xerox820_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, Z80_TAG),
- m_kbpio(*this, Z80PIO_KB_TAG),
- m_ctc(*this, Z80CTC_TAG),
- m_sio(*this, Z80SIO_TAG),
- m_fdc(*this, FD1771_TAG),
- m_ram(*this, RAM_TAG),
- m_palette(*this, "palette"),
- m_floppy0(*this, FD1771_TAG":0"),
- m_floppy1(*this, FD1771_TAG":1"),
- m_kb(*this, KEYBOARD_TAG),
- m_rom(*this, Z80_TAG),
- m_char_rom(*this, "chargen"),
- m_video_ram(*this, "video_ram"),
- m_fdc_irq(0),
- m_fdc_drq(0),
- m_8n5(0),
- m_400_460(0)
- { }
-
- void mk83(machine_config &config);
- void xerox820(machine_config &config);
-
- DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
-
- uint8_t fdc_r(offs_t offset);
- void fdc_w(offs_t offset, uint8_t data);
- void scroll_w(offs_t offset, uint8_t data);
- //void x120_system_w(uint8_t data);
- uint8_t kbpio_pa_r();
- void kbpio_pa_w(uint8_t data);
- uint8_t kbpio_pb_r();
- DECLARE_WRITE_LINE_MEMBER( fdc_intrq_w );
- DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
-
-protected:
- uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
-
-
- TIMER_DEVICE_CALLBACK_MEMBER(ctc_tick);
-
- void mk83_mem(address_map &map);
- void xerox820_io(address_map &map);
- void xerox820_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_device<z80_device> m_maincpu;
- required_device<z80pio_device> m_kbpio;
- required_device<z80ctc_device> m_ctc;
- required_device<z80sio_device> m_sio;
- required_device<wd_fdc_device_base> m_fdc;
- required_device<ram_device> m_ram;
- required_device<palette_device> m_palette;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<xerox_820_keyboard_device> m_kb;
- required_memory_region m_rom;
- required_memory_region m_char_rom;
- required_shared_ptr<uint8_t> m_video_ram;
-
- virtual void bankswitch(int bank);
- void update_nmi();
-
- /* video state */
- uint8_t m_scroll; /* vertical scroll */
- uint8_t m_framecnt;
- int m_ncset2; /* national character set */
- int m_vatt; /* X120 video attribute */
- int m_lowlite; /* low light attribute */
- int m_chrom; /* character ROM index */
-
- /* floppy state */
- bool m_fdc_irq; /* interrupt request */
- bool m_fdc_drq; /* data request */
- int m_8n5; /* 5.25" / 8" drive select */
- int m_400_460; /* double sided disk detect */
-};
-
-class bigboard_state : public xerox820_state
-{
-public:
- bigboard_state(const machine_config &mconfig, device_type type, const char *tag)
- : xerox820_state(mconfig, type, tag)
- , m_beeper(*this, "beeper")
- , m_beep_timer(*this, "beep_timer")
- { }
-
- void kbpio_pa_w(uint8_t data);
-
- void bigboard(machine_config &config);
-protected:
- virtual void machine_reset() override;
-
- TIMER_DEVICE_CALLBACK_MEMBER(beep_timer);
-
- required_device<beep_device> m_beeper;
- required_device<timer_device> m_beep_timer;
-
- bool m_bit5;
-};
-
-class xerox820ii_state : public xerox820_state
-{
-public:
- xerox820ii_state(const machine_config &mconfig, device_type type, const char *tag) :
- xerox820_state(mconfig, type, tag),
- m_speaker(*this, "speaker"),
- m_sasibus(*this, SASIBUS_TAG)
- {
- }
-
- void bell_w(offs_t offset, uint8_t data);
- void slden_w(offs_t offset, uint8_t data);
- void chrom_w(offs_t offset, uint8_t data);
- void lowlite_w(uint8_t data);
- void sync_w(offs_t offset, uint8_t data);
-
- void rdpio_pb_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER( rdpio_pardy_w );
-
- void xerox168(machine_config &config);
- void xerox820ii(machine_config &config);
- void xerox168_mem(address_map &map);
- void xerox820ii_io(address_map &map);
- void xerox820ii_mem(address_map &map);
-protected:
- virtual void machine_reset() override;
-
- void bankswitch(int bank) override;
-
- required_device<speaker_sound_device> m_speaker;
- required_device<scsi_port_device> m_sasibus;
-};
-
-#endif // MAME_INCLUDES_XEROX820_H
diff --git a/src/mame/includes/xevious.h b/src/mame/includes/xevious.h
deleted file mode 100644
index 43ca36e9570..00000000000
--- a/src/mame/includes/xevious.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-
-#ifndef MAME_INCLUDES_XEVIOUS
-#define MAME_INCLUDES_XEVIOUS
-
-#pragma once
-
-#include "machine/timer.h"
-#include "tilemap.h"
-
-class xevious_state : public galaga_state
-{
-public:
- xevious_state(const machine_config &mconfig, device_type type, const char *tag) :
- galaga_state(mconfig, type, tag),
- m_xevious_sr1(*this, "xevious_sr1"),
- m_xevious_sr2(*this, "xevious_sr2"),
- m_xevious_sr3(*this, "xevious_sr3"),
- m_xevious_fg_colorram(*this, "fg_colorram"),
- m_xevious_bg_colorram(*this, "bg_colorram"),
- m_xevious_fg_videoram(*this, "fg_videoram"),
- m_xevious_bg_videoram(*this, "bg_videoram"),
- m_samples(*this, "samples"),
- m_subcpu3(*this, "sub3")
- { }
-
- void xevious(machine_config &config);
-
- void init_xevious();
- void init_xevios();
-
-protected:
- required_shared_ptr<uint8_t> m_xevious_sr1;
- required_shared_ptr<uint8_t> m_xevious_sr2;
- required_shared_ptr<uint8_t> m_xevious_sr3;
- required_shared_ptr<uint8_t> m_xevious_fg_colorram;
- required_shared_ptr<uint8_t> m_xevious_bg_colorram;
- required_shared_ptr<uint8_t> m_xevious_fg_videoram;
- required_shared_ptr<uint8_t> m_xevious_bg_videoram;
- optional_device<samples_device> m_samples;
-
- int32_t m_xevious_bs[2];
-
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- DECLARE_VIDEO_START(xevious);
- void xevious_palette(palette_device &palette) const;
- DECLARE_MACHINE_RESET(xevios);
- uint32_t screen_update_xevious(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
- void xevious_fg_videoram_w(offs_t offset, uint8_t data);
- void xevious_fg_colorram_w(offs_t offset, uint8_t data);
- void xevious_bg_videoram_w(offs_t offset, uint8_t data);
- void xevious_bg_colorram_w(offs_t offset, uint8_t data);
- void xevious_vh_latch_w(offs_t offset, uint8_t data);
- void xevious_bs_w(offs_t offset, uint8_t data);
- uint8_t xevious_bb_r(offs_t offset);
-
- optional_device<cpu_device> m_subcpu3;
-
- void xevious_map(address_map &map);
-};
-
-class battles_state : public xevious_state
-{
-public:
- battles_state(const machine_config &mconfig, device_type type, const char *tag)
- : xevious_state(mconfig, type, tag),
- m_nmi_timer(*this, "nmi")
- {
- }
-
- void driver_init() override;
-
- void battles(machine_config &config);
-
-protected:
- void machine_reset() override;
-
- DECLARE_WRITE_LINE_MEMBER(interrupt_4);
- TIMER_DEVICE_CALLBACK_MEMBER(nmi_generate);
-
- void battles_mem4(address_map &map);
-
- // Custom I/O
- uint8_t customio0_r();
- uint8_t customio_data0_r(offs_t offset);
- uint8_t customio3_r();
- uint8_t customio_data3_r(offs_t offset);
- uint8_t input_port_r(offs_t offset);
-
- void customio0_w(uint8_t data);
- void customio_data0_w(offs_t offset, uint8_t data);
- void customio3_w(uint8_t data);
- void customio_data3_w(offs_t offset, uint8_t data);
- void cpu4_coin_w(uint8_t data);
- void noise_sound_w(offs_t offset, uint8_t data);
-
- required_device<timer_device> m_nmi_timer;
-
- uint8_t m_customio[16];
- char m_customio_command;
- char m_customio_prev_command;
- char m_customio_command_count;
- char m_customio_data;
- char m_sound_played;
-};
-
-#endif // MAME_INCLUDES_XEVIOUS
diff --git a/src/mame/includes/xexex.h b/src/mame/includes/xexex.h
deleted file mode 100644
index c03ba14450d..00000000000
--- a/src/mame/includes/xexex.h
+++ /dev/null
@@ -1,119 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Olivier Galibert
-/*************************************************************************
-
- Xexex
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_XEXEX_H
-#define MAME_INCLUDES_XEXEX_H
-
-#pragma once
-
-#include "video/k053250.h"
-#include "sound/flt_vol.h"
-#include "sound/k054539.h"
-#include "machine/k053252.h"
-#include "video/k054156_k054157_k056832.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/k054338.h"
-#include "video/k053251.h"
-#include "video/konami_helper.h"
-#include "machine/k054321.h"
-#include "machine/timer.h"
-#include "emupal.h"
-#include "screen.h"
-
-class xexex_state : public driver_device
-{
-public:
- xexex_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_workram(*this, "workram")
- , m_spriteram(*this, "spriteram")
- , m_z80bank(*this, "z80bank")
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_k054539(*this, "k054539")
- , m_filter_l(*this, "filter%u_l", 1)
- , m_filter_r(*this, "filter%u_r", 1)
- , m_k056832(*this, "k056832")
- , m_k053246(*this, "k053246")
- , m_k053250(*this, "k053250")
- , m_k053251(*this, "k053251")
- , m_k053252(*this, "k053252")
- , m_k054338(*this, "k054338")
- , m_palette(*this, "palette")
- , m_screen(*this, "screen")
- , m_k054321(*this, "k054321")
- {
- }
-
- void xexex(machine_config &config);
-
- void init_xexex();
-
-private:
- /* memory pointers */
- required_shared_ptr<uint16_t> m_workram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- /* memory regions */
- required_memory_bank m_z80bank;
-
- /* video-related */
- int m_layer_colorbase[4];
- int m_sprite_colorbase;
- int m_layerpri[4];
- int m_cur_alpha;
-
- /* misc */
- uint16_t m_cur_control2;
- int32_t m_strip_0x1a;
- int m_suspension_active;
- int m_resume_trigger;
- emu_timer *m_dmadelay_timer;
- int m_frame;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k054539_device> m_k054539;
- required_device_array<filter_volume_device, 2> m_filter_l;
- required_device_array<filter_volume_device, 2> m_filter_r;
- required_device<k056832_device> m_k056832;
- required_device<k053247_device> m_k053246;
- required_device<k053250_device> m_k053250;
- required_device<k053251_device> m_k053251;
- required_device<k053252_device> m_k053252;
- required_device<k054338_device> m_k054338;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- required_device<k054321_device> m_k054321;
-
- uint16_t spriteram_mirror_r(offs_t offset);
- void spriteram_mirror_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t xexex_waitskip_r();
- uint16_t control2_r();
- void control2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_irq_w(uint16_t data);
- void sound_bankswitch_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- uint32_t screen_update_xexex(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- TIMER_CALLBACK_MEMBER(dmaend_callback);
- TIMER_DEVICE_CALLBACK_MEMBER(xexex_interrupt);
- void xexex_postload();
- void xexex_objdma(int limiter);
- void parse_control2();
- K056832_CB_MEMBER(tile_callback);
- K053246_CB_MEMBER(sprite_callback);
- K054539_CB_MEMBER(ym_set_mixing);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_XEXEX_H
diff --git a/src/mame/includes/xmen.h b/src/mame/includes/xmen.h
deleted file mode 100644
index 3bdc2a2c671..00000000000
--- a/src/mame/includes/xmen.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_XMEN_H
-#define MAME_INCLUDES_XMEN_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/k054539.h"
-#include "video/k053246_k053247_k055673.h"
-#include "video/k053251.h"
-#include "video/k052109.h"
-#include "video/konami_helper.h"
-#include "machine/k054321.h"
-#include "screen.h"
-
-class xmen_state : public driver_device
-{
-public:
- xmen_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_xmen6p_spriteram(*this, "spriteram%u", 0),
- m_xmen6p_tilemap(*this, "tilemap%u", 0),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_k054539(*this, "k054539"),
- m_k052109(*this, "k052109"),
- m_k053246(*this, "k053246"),
- m_k053251(*this, "k053251"),
- m_screen(*this, "screen"),
- m_k054321(*this, "k054321"),
- m_z80bank(*this, "z80bank")
- { }
-
- void xmen(machine_config &config);
- void xmen6p(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(xmen_frame_r);
-
-private:
- /* video-related */
- int m_layer_colorbase[3];
- int m_sprite_colorbase;
- int m_layerpri[3];
-
- /* for xmen6p */
- std::unique_ptr<bitmap_ind16> m_screen_right;
- std::unique_ptr<bitmap_ind16> m_screen_left;
- optional_shared_ptr_array<uint16_t, 2> m_xmen6p_spriteram;
- optional_shared_ptr_array<uint16_t, 4> m_xmen6p_tilemap;
- uint16_t * m_k053247_ram;
- bool m_xmen6p_tilemap_select;
-
- /* misc */
- uint8_t m_vblank_irq_mask;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<k054539_device> m_k054539;
- required_device<k052109_device> m_k052109;
- required_device<k053247_device> m_k053246;
- required_device<k053251_device> m_k053251;
- required_device<screen_device> m_screen;
- required_device<k054321_device> m_k054321;
-
- required_memory_bank m_z80bank;
- void eeprom_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void xmen_18fa00_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_bankswitch_w(uint8_t data);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- DECLARE_VIDEO_START(xmen6p);
- uint32_t screen_update_xmen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_xmen6p_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_xmen6p_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank_xmen6p);
- TIMER_DEVICE_CALLBACK_MEMBER(xmen_scanline);
- K052109_CB_MEMBER(tile_callback);
- K053246_CB_MEMBER(sprite_callback);
-
- void _6p_main_map(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_XMEN_H
diff --git a/src/mame/includes/xor100.h b/src/mame/includes/xor100.h
deleted file mode 100644
index efb60b45e8f..00000000000
--- a/src/mame/includes/xor100.h
+++ /dev/null
@@ -1,113 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Curt Coder
-#ifndef MAME_INCLUDES_XOR100_H
-#define MAME_INCLUDES_XOR100_H
-
-#pragma once
-
-#include "bus/s100/s100.h"
-#include "cpu/z80/z80.h"
-#include "imagedev/floppy.h"
-#include "machine/ram.h"
-#include "machine/com8116.h"
-#include "bus/centronics/ctronics.h"
-#include "machine/i8255.h"
-#include "machine/i8251.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80ctc.h"
-
-#define SCREEN_TAG "screen"
-#define Z80_TAG "5b"
-#define I8251_A_TAG "12b"
-#define I8251_B_TAG "14b"
-#define I8255A_TAG "8a"
-#define COM5016_TAG "15c"
-#define Z80CTC_TAG "11b"
-#define WD1795_TAG "wd1795"
-#define CENTRONICS_TAG "centronics"
-#define RS232_A_TAG "rs232a"
-#define RS232_B_TAG "rs232b"
-#define S100_TAG "s100"
-
-class xor100_state : public driver_device
-{
-public:
- xor100_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, Z80_TAG)
- , m_uart_a(*this, I8251_A_TAG)
- , m_uart_b(*this, I8251_B_TAG)
- , m_fdc(*this, WD1795_TAG)
- , m_ctc(*this, Z80CTC_TAG)
- , m_ram(*this, RAM_TAG)
- , m_centronics(*this, CENTRONICS_TAG)
- , m_s100(*this, S100_TAG)
- , m_floppy0(*this, WD1795_TAG":0")
- , m_floppy1(*this, WD1795_TAG":1")
- , m_floppy2(*this, WD1795_TAG":2")
- , m_floppy3(*this, WD1795_TAG":3")
- , m_rom(*this, Z80_TAG)
- , m_bank1(*this, "bank1")
- , m_bank2(*this, "bank2")
- , m_bank3(*this, "bank3")
- { }
-
- void xor100(machine_config &config);
-
-private:
- void mmu_w(uint8_t data);
- void prom_toggle_w(uint8_t data);
- uint8_t prom_disable_r();
- uint8_t fdc_wait_r();
- void fdc_dcont_w(uint8_t data);
- void fdc_dsel_w(uint8_t data);
- void fdc_intrq_w(bool state);
- void fdc_drq_w(bool state);
-
- uint8_t i8255_pc_r();
- DECLARE_WRITE_LINE_MEMBER(ctc_z0_w);
- DECLARE_WRITE_LINE_MEMBER(ctc_z1_w);
- DECLARE_WRITE_LINE_MEMBER(ctc_z2_w);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_select);
-
- void xor100_io(address_map &map);
- void xor100_mem(address_map &map);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bankswitch();
- void post_load();
-
- required_device<cpu_device> m_maincpu;
- required_device<i8251_device> m_uart_a;
- required_device<i8251_device> m_uart_b;
- required_device<fd1795_device> m_fdc;
- required_device<z80ctc_device> m_ctc;
- required_device<ram_device> m_ram;
- required_device<centronics_device> m_centronics;
- required_device<s100_bus_device> m_s100;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
- required_device<floppy_connector> m_floppy2;
- required_device<floppy_connector> m_floppy3;
- required_memory_region m_rom;
- required_memory_bank m_bank1;
- required_memory_bank m_bank2;
- required_memory_bank m_bank3;
-
- // memory state
- int m_mode;
- int m_bank;
-
- // floppy state
- bool m_fdc_irq;
- bool m_fdc_drq;
- int m_fdc_dden;
-
- int m_centronics_busy;
- int m_centronics_select;
-};
-
-#endif // MAME_INCLUDES_XOR100_H
diff --git a/src/mame/includes/xorworld.h b/src/mame/includes/xorworld.h
deleted file mode 100644
index 989988c6140..00000000000
--- a/src/mame/includes/xorworld.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-#ifndef MAME_INCLUDES_XORWORLD_H
-#define MAME_INCLUDES_XORWORLD_H
-
-#pragma once
-
-#include "machine/eepromser.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class xorworld_state : public driver_device
-{
-public:
- xorworld_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_eeprom(*this, "eeprom"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void xorworld(machine_config &config);
-
- void init_xorworld();
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<eeprom_serial_93cxx_device> m_eeprom;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- tilemap_t *m_bg_tilemap;
-
- void irq2_ack_w(uint16_t data);
- void irq6_ack_w(uint16_t data);
- void videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
-
- virtual void video_start() override;
- void xorworld_palette(palette_device &palette) const;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void xorworld_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_XORWORLD_H
diff --git a/src/mame/includes/xxmissio.h b/src/mame/includes/xxmissio.h
deleted file mode 100644
index d5e9287d60c..00000000000
--- a/src/mame/includes/xxmissio.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Uki
-#ifndef MAME_INCLUDES_XXMISSIO_H
-#define MAME_INCLUDES_XXMISSIO_H
-
-#pragma once
-
-#include "emupal.h"
-#include "tilemap.h"
-
-class xxmissio_state : public driver_device
-{
-public:
- xxmissio_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_bgram(*this, "bgram"),
- m_fgram(*this, "fgram"),
- m_spriteram(*this, "spriteram")
- { }
-
- void xxmissio(machine_config &config);
-
- template <int Mask> DECLARE_READ_LINE_MEMBER(status_r);
-
-protected:
- virtual void machine_start() override;
- virtual void video_start() override;
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- required_shared_ptr<uint8_t> m_bgram;
- required_shared_ptr<uint8_t> m_fgram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t m_status;
- uint8_t m_xscroll;
- uint8_t m_yscroll;
- uint8_t m_flipscreen;
-
- void bank_sel_w(uint8_t data);
- void status_m_w(uint8_t data);
- void status_s_w(uint8_t data);
- void flipscreen_w(uint8_t data);
- void bgram_w(offs_t offset, uint8_t data);
- uint8_t bgram_r(offs_t offset);
- void scroll_x_w(uint8_t data);
- void scroll_y_w(uint8_t data);
-
- DECLARE_WRITE_LINE_MEMBER(interrupt_m);
- INTERRUPT_GEN_MEMBER(interrupt_s);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- static rgb_t BBGGRRII(uint32_t raw);
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx);
-
- void map1(address_map &map);
- void map2(address_map &map);
-};
-
-#endif // MAME_INCLUDES_XXMISSIO_H
diff --git a/src/mame/includes/xybots.h b/src/mame/includes/xybots.h
deleted file mode 100644
index 64e6d10eca6..00000000000
--- a/src/mame/includes/xybots.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Xybots hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_XYBOTS_H
-#define MAME_INCLUDES_XYBOTS_H
-
-#pragma once
-
-#include "machine/slapstic.h"
-#include "audio/atarijsa.h"
-#include "video/atarimo.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class xybots_state : public driver_device
-{
-public:
- xybots_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_slapstic(*this, "slapstic"),
- m_slapstic_bank(*this, "slapstic_bank"),
- m_jsa(*this, "jsa"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_mob(*this, "mob")
- { }
-
- void xybots(machine_config &config);
-
-protected:
- virtual void machine_start() override;
-
-private:
- void video_int_ack_w(uint16_t data = 0);
- uint16_t special_port1_r();
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- uint32_t screen_update_xybots(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<atari_slapstic_device> m_slapstic;
- required_memory_bank m_slapstic_bank;
- required_device<atari_jsa_i_device> m_jsa;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_motion_objects_device> m_mob;
-
- uint16_t m_h256;
-
- static const atari_motion_objects_config s_mob_config;
-};
-
-#endif // MAME_INCLUDES_XYBOTS_H
diff --git a/src/mame/includes/yiear.h b/src/mame/includes/yiear.h
deleted file mode 100644
index 02d1191edd6..00000000000
--- a/src/mame/includes/yiear.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-// thanks-to:Enrique Sanchez
-#ifndef MAME_INCLUDES_YIEAR_H
-#define MAME_INCLUDES_YIEAR_H
-
-#pragma once
-
-#include "audio/trackfld.h"
-#include "sound/sn76496.h"
-#include "sound/vlm5030.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class yiear_state : public driver_device
-{
-public:
- yiear_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_spriteram(*this, "spriteram"),
- m_spriteram2(*this, "spriteram2"),
- m_videoram(*this, "videoram"),
- m_maincpu(*this, "maincpu"),
- m_audio(*this, "trackfld_audio"),
- m_sn(*this, "snsnd"),
- m_vlm(*this, "vlm"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette")
- { }
-
- void yiear(machine_config &config);
-
-private:
- /* memory pointers */
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_spriteram2;
- required_shared_ptr<uint8_t> m_videoram;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<trackfld_audio_device> m_audio;
- required_device<sn76489a_device> m_sn;
- required_device<vlm5030_device> m_vlm;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
-
- uint8_t m_nmi_enable;
- uint8_t m_irq_enable;
- void videoram_w(offs_t offset, uint8_t data);
- void control_w(uint8_t data);
- uint8_t speech_r();
- void VLM5030_control_w(uint8_t data);
-
- uint8_t m_SN76496_latch;
- void konami_SN76496_latch_w(uint8_t data) { m_SN76496_latch = data; };
- void konami_SN76496_w(uint8_t data) { m_sn->write(m_SN76496_latch); };
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
- void palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- INTERRUPT_GEN_MEMBER(nmi_interrupt);
- void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
-
- void main_map(address_map &map);
- void vlm_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_YIEAR_H
diff --git a/src/mame/includes/yunsun16.h b/src/mame/includes/yunsun16.h
deleted file mode 100644
index a4594e33661..00000000000
--- a/src/mame/includes/yunsun16.h
+++ /dev/null
@@ -1,119 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-
-/*************************************************************************
-
- Yun Sung 16 Bit Games
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_YUNSUN16_H
-#define MAME_INCLUDES_YUNSUN16_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "screen.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class yunsun16_state : public driver_device
-{
-protected:
- yunsun16_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_vram(*this, "vram_%u", 0U),
- m_scrollram(*this, "scrollram_%u", 0U),
- m_priorityram(*this, "priorityram"),
- m_spriteram(*this, "spriteram")
- { }
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
-private:
- void int_ack_w(uint8_t data);
-
- /* memory pointers */
- required_shared_ptr_array<uint16_t, 2> m_vram;
- required_shared_ptr_array<uint16_t, 2> m_scrollram;
- required_shared_ptr<uint16_t> m_priorityram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- /* other video-related elements */
- tilemap_t *m_tilemap[2];
- int m_sprites_scrolldx;
- int m_sprites_scrolldy;
-
- template<int Layer> void vram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- TILEMAP_MAPPER_MEMBER(tilemap_scan_pages);
- template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-};
-
-
-class magicbub_state : public yunsun16_state
-{
-public:
- magicbub_state(const machine_config &mconfig, device_type type, const char *tag) :
- yunsun16_state(mconfig, type, tag),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void magicbub(machine_config &config);
-
-protected:
- void main_map(address_map &map);
-
-private:
- void magicbub_sound_command_w(uint8_t data);
-
- void sound_map(address_map &map);
- void sound_port_map(address_map &map);
-
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
-};
-
-
-class shocking_state : public yunsun16_state
-{
-public:
- shocking_state(const machine_config &mconfig, device_type type, const char *tag) :
- yunsun16_state(mconfig, type, tag),
- m_okibank(*this, "okibank")
- { }
-
- void shocking(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void main_map(address_map &map);
-
-private:
- void sound_bank_w(uint8_t data);
-
- void oki_map(address_map &map);
-
- required_memory_bank m_okibank;
-};
-
-#endif // MAME_INCLUDES_YUNSUN16_H
diff --git a/src/mame/includes/yunsung8.h b/src/mame/includes/yunsung8.h
deleted file mode 100644
index 462ea6b8b48..00000000000
--- a/src/mame/includes/yunsung8.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/*************************************************************************
-
- Yun Sung 8 Bit Games
-
-*************************************************************************/
-
-#include "machine/74157.h"
-#include "sound/msm5205.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class yunsung8_state : public driver_device
-{
-public:
- yunsung8_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_msm(*this, "msm"),
- m_adpcm_select(*this, "adpcm_select"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette")
- {
- }
-
- void yunsung8(machine_config &config);
-
-private:
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- uint8_t *m_bg_vram;
- uint8_t *m_fg_vram;
- int m_layers_ctrl;
- int m_videobank;
-
- /* misc */
- bool m_toggle;
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- required_device<msm5205_device> m_msm;
- required_device<ls157_device> m_adpcm_select;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- /* memory */
- uint8_t m_videoram[0x4000];
-
- void bankswitch_w(uint8_t data);
- void main_irq_ack_w(uint8_t data);
- void videobank_w(uint8_t data);
- uint8_t videoram_r(offs_t offset);
- void videoram_w(offs_t offset, uint8_t data);
- void flipscreen_w(uint8_t data);
- void sound_bankswitch_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(adpcm_int);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
- void port_map(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/z80ne.h b/src/mame/includes/z80ne.h
deleted file mode 100644
index aace88013c9..00000000000
--- a/src/mame/includes/z80ne.h
+++ /dev/null
@@ -1,253 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Roberto Lavarone
-/*****************************************************************************
- *
- * includes/z80ne.h
- *
- * Nuova Elettronica Z80NE
- *
- * http://www.z80ne.com/
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_Z80NE_H
-#define MAME_INCLUDES_Z80NE_H
-
-#pragma once
-
-#include "video/mc6847.h"
-#include "imagedev/cassette.h"
-#include "imagedev/floppy.h"
-#include "machine/ay31015.h"
-#include "machine/clock.h"
-#include "machine/kr2376.h"
-#include "machine/ram.h"
-#include "machine/wd_fdc.h"
-
-/***************************************************************************
- CONSTANTS
-***************************************************************************/
-
-#define Z80NE_CPU_SPEED_HZ 1920000 /* 1.92 MHz */
-
-#define LX383_KEYS 16
-#define LX383_DOWNSAMPLING 16
-
-#define LX385_TAPE_SAMPLE_FREQ 38400
-
-/* wave duration threshold */
-enum z80netape_speed
-{
- TAPE_300BPS = 300, /* 300 bps */
- TAPE_600BPS = 600, /* 600 bps */
- TAPE_1200BPS = 1200 /* 1200 bps */
-};
-
-struct z80ne_cass_data_t {
- struct {
- int length; /* time cassette level is at input.level */
- int level; /* cassette level */
- int bit; /* bit being read */
- } input;
- struct {
- int length; /* time cassette level is at output.level */
- int level; /* cassette level */
- int bit; /* bit to output */
- } output;
- z80netape_speed speed; /* 300 - 600 - 1200 */
- int wave_filter;
- int wave_length;
- int wave_short;
- int wave_long;
-};
-
-
-class z80ne_state : public driver_device
-{
-public:
- z80ne_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_uart(*this, "uart"),
- m_uart_clock(*this, "uart_clock"),
- m_maincpu(*this, "maincpu"),
- m_cassette1(*this, "cassette"),
- m_cassette2(*this, "cassette2"),
- m_ram(*this, RAM_TAG),
- m_bank1(*this, "bank1"),
- m_bank2(*this, "bank2"),
- m_bank3(*this, "bank3"),
- m_bank4(*this, "bank4"),
- m_io_row0(*this, "ROW0"),
- m_io_row1(*this, "ROW1"),
- m_io_ctrl(*this, "CTRL"),
- m_io_rst(*this, "RST"),
- m_io_lx_385(*this, "LX.385"),
- m_lx383_digits(*this, "digit%u", 0U)
- , m_rom(*this, "maincpu")
- , m_mram(*this, "mainram")
- { }
-
- void z80ne(machine_config &config);
- void init_z80ne();
-
- DECLARE_INPUT_CHANGED_MEMBER(z80ne_reset);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void base_reset();
- void save_state_vars();
-
- static void floppy_formats(format_registration &fr);
-
- uint8_t m_lx383_scan_counter;
- uint8_t m_lx383_key[LX383_KEYS];
- int m_lx383_downsampler;
- uint8_t m_lx385_ctrl;
- emu_timer *m_cassette_timer;
- emu_timer *m_kbd_timer;
- z80ne_cass_data_t m_cass_data;
-
- uint8_t lx383_r();
- void lx383_w(offs_t offset, uint8_t data);
- uint8_t lx385_ctrl_r();
- void lx385_ctrl_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(lx385_uart_tx_clock_w);
-
- TIMER_CALLBACK_MEMBER(z80ne_cassette_tc);
- TIMER_CALLBACK_MEMBER(z80ne_kbd_scan);
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- memory_passthrough_handler *m_rom_shadow_tap;
- required_device<ay31015_device> m_uart;
- required_device<clock_device> m_uart_clock;
- required_device<cpu_device> m_maincpu;
- required_device<cassette_image_device> m_cassette1;
- required_device<cassette_image_device> m_cassette2;
- optional_device<ram_device> m_ram;
- optional_memory_bank m_bank1;
- optional_memory_bank m_bank2;
- optional_memory_bank m_bank3;
- optional_memory_bank m_bank4;
- required_ioport m_io_row0;
- required_ioport m_io_row1;
- required_ioport m_io_ctrl;
- required_ioport m_io_rst;
- required_ioport m_io_lx_385;
- output_finder<8> m_lx383_digits;
- required_region_ptr<u8> m_rom;
- optional_shared_ptr<u8> m_mram;
-
- emu_timer *m_timer_nmi;
-
- cassette_image_device *cassette_device_image();
-
-private:
- void mem_map(address_map &map);
- void io_map(address_map &map);
-};
-
-class z80net_state : public z80ne_state
-{
-public:
- z80net_state(const machine_config &mconfig, device_type type, const char *tag)
- : z80ne_state(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_vdg(*this, "mc6847"),
- m_lx387_kr2376(*this, "lx387_kr2376"),
- m_io_lx387_brk(*this, "LX387_BRK"),
- m_io_modifiers(*this, "MODIFIERS")
- {
- }
-
- void lx387(machine_config &config);
- void z80net(machine_config &config);
-
- DECLARE_INPUT_CHANGED_MEMBER(z80net_nmi);
-
-protected:
- virtual void machine_reset() override;
-
- DECLARE_READ_LINE_MEMBER(lx387_shift_r);
- DECLARE_READ_LINE_MEMBER(lx387_control_r);
- uint8_t lx387_data_r();
- uint8_t lx388_mc6847_videoram_r(offs_t offset);
- uint8_t lx388_read_field_sync();
-
- required_shared_ptr<uint8_t> m_videoram;
- required_device<mc6847_base_device> m_vdg;
- required_device<kr2376_device> m_lx387_kr2376;
- required_ioport m_io_lx387_brk;
- required_ioport m_io_modifiers;
-
- void reset_lx387();
-
- void io_map(address_map &map);
-
-private:
- void mem_map(address_map &map);
-};
-
-class z80netb_state : public z80net_state
-{
-public:
- z80netb_state(const machine_config &mconfig, device_type type, const char *tag)
- : z80net_state(mconfig, type, tag)
- {
- }
-
- void z80netb(machine_config &config);
-
-protected:
- virtual void machine_reset() override;
-
-private:
- void mem_map(address_map &map);
-};
-
-class z80netf_state : public z80netb_state
-{
-public:
- z80netf_state(const machine_config &mconfig, device_type type, const char *tag)
- : z80netb_state(mconfig, type, tag),
- m_io_config(*this, "CONFIG"),
- m_floppy(*this, "wd1771:%u", 0U),
- m_wd1771(*this, "wd1771"),
- m_drv_led(*this, "drv%u", 0U)
- {
- }
-
- void z80netf(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void driver_init() override;
-
- struct wd17xx_state_t
- {
- int drq;
- int intrq;
- uint8_t drive; /* current drive */
- uint8_t head; /* current head */
- };
-
- void mem_map(address_map &map);
- void io_map(address_map &map);
-
- void lx390_motor_w(uint8_t data);
- uint8_t lx390_fdc_r(offs_t offset);
- void lx390_fdc_w(offs_t offset, uint8_t data);
-
- void reset_lx390_banking();
-
- required_ioport m_io_config;
- required_device_array<floppy_connector, 4> m_floppy;
- required_device<fd1771_device> m_wd1771;
- wd17xx_state_t m_wd17xx_state;
- output_finder<2> m_drv_led;
-};
-
-#endif // MAME_INCLUDES_Z80NE_H
diff --git a/src/mame/includes/z88.h b/src/mame/includes/z88.h
deleted file mode 100644
index 22b22db1a7e..00000000000
--- a/src/mame/includes/z88.h
+++ /dev/null
@@ -1,117 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Kevin Thacker,Sandro Ronco
-/*****************************************************************************
- *
- * includes/z88.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_Z88_H
-#define MAME_INCLUDES_Z88_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "machine/ram.h"
-#include "machine/upd65031.h"
-#include "sound/spkrdev.h"
-
-#include "bus/z88/flash.h"
-#include "bus/z88/ram.h"
-#include "bus/z88/rom.h"
-#include "bus/z88/z88.h"
-
-#include "emupal.h"
-#include "screen.h"
-#include "speaker.h"
-
-#define Z88_NUM_COLOURS 3
-
-#define Z88_SCREEN_WIDTH 640
-#define Z88_SCREEN_HEIGHT 64
-
-#define Z88_SCR_HW_REV (1<<4)
-#define Z88_SCR_HW_HRS (1<<5)
-#define Z88_SCR_HW_UND (1<<1)
-#define Z88_SCR_HW_FLS (1<<3)
-#define Z88_SCR_HW_GRY (1<<2)
-#define Z88_SCR_HW_CURS (Z88_SCR_HW_HRS|Z88_SCR_HW_FLS|Z88_SCR_HW_REV)
-#define Z88_SCR_HW_NULL (Z88_SCR_HW_HRS|Z88_SCR_HW_GRY|Z88_SCR_HW_REV)
-
-class z88_state : public driver_device
-{
-public:
- z88_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_bios_region(*this, "bios")
- , m_ram(*this, RAM_TAG)
- , m_screen(*this, "screen")
- , m_palette(*this, "palette")
- , m_blink(*this, "blink")
- , m_lines(*this, "LINE%u", 0U)
- , m_banks(*this, "bank%u", 1U)
- , m_carts(*this, "slot%u", 0U)
- { }
-
- void z88(machine_config &config);
-
-private:
- enum
- {
- Z88_BANK_ROM = 1,
- Z88_BANK_RAM,
- Z88_BANK_CART,
- Z88_BANK_UNMAP
- };
-
- virtual void machine_start() override;
- virtual void machine_reset() override;
- uint8_t kb_r(offs_t offset);
- UPD65031_MEMORY_UPDATE(bankswitch_update);
- UPD65031_SCREEN_UPDATE(lcd_update);
-
- // cartridges read/write
- uint8_t bank0_cart_r(offs_t offset);
- uint8_t bank1_cart_r(offs_t offset);
- uint8_t bank2_cart_r(offs_t offset);
- uint8_t bank3_cart_r(offs_t offset);
- void bank0_cart_w(offs_t offset, uint8_t data);
- void bank1_cart_w(offs_t offset, uint8_t data);
- void bank2_cart_w(offs_t offset, uint8_t data);
- void bank3_cart_w(offs_t offset, uint8_t data);
-
- // defined in video/z88.c
- inline void plot_pixel(bitmap_ind16 &bitmap, int x, int y, uint16_t color);
- inline uint8_t* convert_address(uint32_t offset);
- void vh_render_8x8(bitmap_ind16 &bitmap, int x, int y, uint16_t pen0, uint16_t pen1, uint8_t *gfx);
- void vh_render_6x8(bitmap_ind16 &bitmap, int x, int y, uint16_t pen0, uint16_t pen1, uint8_t *gfx);
- void vh_render_line(bitmap_ind16 &bitmap, int x, int y, uint16_t pen);
-
- void z88_palette(palette_device &palette) const;
-
- void z88_io(address_map &map);
- void z88_mem(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_memory_region m_bios_region;
- required_device<ram_device> m_ram;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<upd65031_device> m_blink;
- required_ioport_array<8> m_lines;
- required_memory_bank_array<5> m_banks;
- optional_device_array<z88cart_slot_device, 4> m_carts;
-
- struct
- {
- uint8_t slot;
- uint8_t page;
- } m_bank[4];
-
- int m_bank_type[4];
- uint8_t * m_bios;
- uint8_t * m_ram_base;
-};
-
-#endif // MAME_INCLUDES_Z88_H
diff --git a/src/mame/includes/zac2650.h b/src/mame/includes/zac2650.h
deleted file mode 100644
index c01430ba3da..00000000000
--- a/src/mame/includes/zac2650.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Mike Coates
-#ifndef MAME_INCLUDES_ZAC2650_H
-#define MAME_INCLUDES_ZAC2650_H
-
-#pragma once
-
-#include "machine/s2636.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class zac2650_state : public driver_device
-{
-public:
- zac2650_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_s2636(*this, "s2636"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_videoram(*this, "videoram"),
- m_s2636_0_ram(*this, "s2636_0_ram")
- { }
-
- void tinvader(machine_config &config);
-
-protected:
- virtual void video_start() override;
-
-private:
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<s2636_device> m_s2636;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
-
- /* memory pointers */
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_s2636_0_ram;
-
- bitmap_ind16 m_bitmap;
- bitmap_ind16 m_spritebitmap;
- int m_CollisionBackground;
- int m_CollisionSprite;
- tilemap_t *m_bg_tilemap;
-
- void tinvader_sound_w(uint8_t data);
- void tinvader_videoram_w(offs_t offset, uint8_t data);
- uint8_t zac_s2636_r(offs_t offset);
- void zac_s2636_w(offs_t offset, uint8_t data);
- uint8_t tinvader_port_0_r();
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- void zac2650_palette(palette_device &palette) const;
- uint32_t screen_update_tinvader(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- int SpriteCollision(int first,int second);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ZAC2650_H
diff --git a/src/mame/includes/zaccaria.h b/src/mame/includes/zaccaria.h
deleted file mode 100644
index 471190d76dc..00000000000
--- a/src/mame/includes/zaccaria.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_ZACCARIA_H
-#define MAME_INCLUDES_ZACCARIA_H
-
-#pragma once
-
-#include "audio/zaccaria.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class zaccaria_state : public driver_device
-{
-public:
- zaccaria_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
- , m_audiopcb(*this, "audiopcb")
- , m_videoram(*this, "videoram")
- , m_attributesram(*this, "attributesram")
- , m_spriteram(*this, "spriteram")
- , m_spriteram2(*this, "spriteram2")
- , m_dsw_port(*this, "DSW.%u", 0)
- { }
-
- void zaccaria(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- uint8_t dsw_r();
- uint8_t prot1_r(offs_t offset);
- uint8_t prot2_r(offs_t offset);
- DECLARE_WRITE_LINE_MEMBER(coin_w);
- DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);
- void videoram_w(offs_t offset, uint8_t data);
- void attributes_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
- DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
- void dsw_sel_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_tile_info);
- void zaccaria_palette(palette_device &palette) const;
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect,uint8_t *spriteram,int color,int section);
-
- void main_map(address_map &map);
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<zac1b11142_audio_device> m_audiopcb;
-
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_attributesram;
- required_shared_ptr<uint8_t> m_spriteram;
- required_shared_ptr<uint8_t> m_spriteram2;
-
- required_ioport_array<3> m_dsw_port;
-
- int m_dsw_sel;
- tilemap_t *m_bg_tilemap;
- uint8_t m_nmi_mask;
-};
-
-#endif // MAME_INCLUDES_ZACCARIA_H
diff --git a/src/mame/includes/zaxxon.h b/src/mame/includes/zaxxon.h
deleted file mode 100644
index ef2b154cc60..00000000000
--- a/src/mame/includes/zaxxon.h
+++ /dev/null
@@ -1,141 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-/***************************************************************************
-
- Sega Zaxxon hardware
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_ZAXXON_H
-#define MAME_INCLUDES_ZAXXON_H
-
-#pragma once
-
-#include "machine/74259.h"
-#include "machine/i8255.h"
-#include "sound/samples.h"
-#include "emupal.h"
-#include "tilemap.h"
-
-class zaxxon_state : public driver_device
-{
-public:
- zaxxon_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_mainlatch(*this, "mainlatch%u", 1),
- m_ppi(*this, "ppi8255"),
- m_samples(*this, "samples"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_dials(*this, "DIAL.%u", 0),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram", 0x100, ENDIANNESS_LITTLE),
- m_colorram(*this, "colorram"),
- m_decrypted_opcodes(*this, "decrypted_opcodes")
- { }
-
- void root(machine_config &config);
- void ixion(machine_config &config);
- void futspye(machine_config &config);
- void congo(machine_config &config);
- void szaxxon(machine_config &config);
- void razmataze(machine_config &config);
- void szaxxone(machine_config &config);
- void zaxxon(machine_config &config);
- void zaxxon_samples(machine_config &config);
- void congo_samples(machine_config &config);
-
- void init_razmataz();
- void init_zaxxonj();
-
- template <int Num> DECLARE_CUSTOM_INPUT_MEMBER(razmataz_dial_r);
- template <int Num> DECLARE_READ_LINE_MEMBER(zaxxon_coin_r);
- DECLARE_INPUT_CHANGED_MEMBER(service_switch);
- DECLARE_INPUT_CHANGED_MEMBER(zaxxon_coin_inserted);
-
-private:
- required_device<cpu_device> m_maincpu;
- required_device_array<ls259_device, 2> m_mainlatch;
- optional_device<i8255_device> m_ppi;
- optional_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
-
- optional_ioport_array<2> m_dials;
-
- required_shared_ptr<uint8_t> m_videoram;
- memory_share_creator<uint8_t> m_spriteram;
- optional_shared_ptr<uint8_t> m_colorram;
- optional_shared_ptr<uint8_t> m_decrypted_opcodes;
-
- uint8_t m_int_enabled;
- uint8_t m_coin_status[3];
-
- uint8_t m_razmataz_dial_pos[2];
- uint16_t m_razmataz_counter;
-
- uint8_t m_sound_state[3];
- uint8_t m_bg_enable;
- uint8_t m_bg_color;
- uint16_t m_bg_position;
- uint8_t m_fg_color;
- bool m_flip_screen;
-
- uint8_t m_congo_fg_bank;
- uint8_t m_congo_color_bank;
- uint8_t m_congo_custom[4];
-
- const uint8_t *m_color_codes;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- DECLARE_WRITE_LINE_MEMBER(int_enable_w);
- uint8_t razmataz_counter_r();
- void zaxxon_control_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_a_w);
- DECLARE_WRITE_LINE_MEMBER(coin_counter_b_w);
- DECLARE_WRITE_LINE_MEMBER(coin_enable_w);
- DECLARE_WRITE_LINE_MEMBER(flipscreen_w);
- DECLARE_WRITE_LINE_MEMBER(fg_color_w);
- void bg_position_w(offs_t offset, uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(bg_color_w);
- DECLARE_WRITE_LINE_MEMBER(bg_enable_w);
- DECLARE_WRITE_LINE_MEMBER(congo_fg_bank_w);
- DECLARE_WRITE_LINE_MEMBER(congo_color_bank_w);
- void zaxxon_videoram_w(offs_t offset, uint8_t data);
- void congo_colorram_w(offs_t offset, uint8_t data);
- void congo_sprite_custom_w(address_space &space, offs_t offset, uint8_t data);
-
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(zaxxon_get_fg_tile_info);
- TILE_GET_INFO_MEMBER(razmataz_get_fg_tile_info);
- TILE_GET_INFO_MEMBER(congo_get_fg_tile_info);
- virtual void machine_start() override;
- virtual void video_start() override;
- void zaxxon_palette(palette_device &palette);
- DECLARE_VIDEO_START(razmataz);
- DECLARE_VIDEO_START(congo);
- uint32_t screen_update_zaxxon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_futspy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_razmataz(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_ixion(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_congo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_int);
- void zaxxon_sound_a_w(uint8_t data);
- void zaxxon_sound_b_w(uint8_t data);
- void zaxxon_sound_c_w(uint8_t data);
- void congo_sound_b_w(uint8_t data);
- void congo_sound_c_w(uint8_t data);
- void video_start_common(tilemap_get_info_delegate &&fg_tile_info);
- void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect, int skew);
- inline int find_minimum_y(uint8_t value, int flip);
- inline int find_minimum_x(uint8_t value, int flip);
- void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint16_t flipxmask, uint16_t flipymask);
-
- void congo_map(address_map &map);
- void congo_sound_map(address_map &map);
- void decrypted_opcodes_map(address_map &map);
- void ixion_map(address_map &map);
- void zaxxon_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_ZAXXON_H
diff --git a/src/mame/includes/zerozone.h b/src/mame/includes/zerozone.h
deleted file mode 100644
index 25fb4f86e3a..00000000000
--- a/src/mame/includes/zerozone.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Brad Oliver
-/*************************************************************************
-
- Zero Zone
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_ZEROZONE_H
-#define MAME_INCLUDES_ZEROZONE_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "cpu/z80/z80.h"
-#include "tilemap.h"
-
-class zerozone_state : public driver_device
-{
-public:
- zerozone_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_soundlatch(*this, "soundlatch")
- , m_vram(*this, "videoram")
- , m_gfxdecode(*this, "gfxdecode")
- { }
-
- void zerozone(machine_config &config);
-
-protected:
- // driver_device overrides
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- // in drivers/zerozone.cpp
- void sound_w(uint8_t data);
- DECLARE_WRITE_LINE_MEMBER(vblank_w);
-
- // in video/zerozone.cpp
- void tilemap_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tilebank_w(uint8_t data);
-
- // devices
- required_device<cpu_device> m_maincpu;
- required_device<z80_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
-
- // shared pointers
- required_shared_ptr<uint16_t> m_vram;
- // currently this driver uses generic palette handling
-
- required_device<gfxdecode_device> m_gfxdecode;
-
- // video-related
- uint8_t m_tilebank;
- tilemap_t *m_zz_tilemap;
-
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-
- TILE_GET_INFO_MEMBER(get_zerozone_tile_info);
-};
-
-#endif // MAME_INCLUDES_ZEROZONE_H
diff --git a/src/mame/includes/zn.h b/src/mame/includes/zn.h
deleted file mode 100644
index 4f36532b5ea..00000000000
--- a/src/mame/includes/zn.h
+++ /dev/null
@@ -1,584 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:smf, R. Belmont
-
-#ifndef MAME_INCLUDES_ZN_H
-#define MAME_INCLUDES_ZN_H
-
-#pragma once
-
-#include "audio/rax.h"
-#include "audio/taito_zm.h"
-#include "audio/taitosnd.h"
-
-#include "bus/ata/atadev.h"
-#include "bus/ata/ataintf.h"
-#include "cpu/m68000/m68000.h"
-#include "cpu/mcs51/mcs51.h"
-#include "cpu/psx/psx.h"
-#include "cpu/z80/z80.h"
-#include "machine/7200fifo.h"
-#include "machine/at28c16.h"
-#include "machine/bankdev.h"
-#include "machine/cat702.h"
-#include "machine/gen_latch.h"
-#include "machine/mb3773.h"
-#include "machine/nvram.h"
-#include "machine/ram.h"
-#include "machine/vt83c461.h"
-#include "machine/watchdog.h"
-#include "machine/znmcu.h"
-#include "sound/okim6295.h"
-#include "sound/qsound.h"
-#include "sound/spu.h"
-#include "sound/ym2610.h"
-#include "sound/ymf271.h"
-#include "sound/ymz280b.h"
-#include "video/psx.h"
-
-#include "screen.h"
-#include "speaker.h"
-
-#include <algorithm>
-
-class zn_state : public driver_device
-{
-public:
- zn_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_gpu(*this, "gpu"),
- m_gpu_screen(*this, "screen"),
- m_sio0(*this, "maincpu:sio0"),
- m_cat702(*this, "cat702_%u", 1),
- m_znmcu(*this, "znmcu"),
- m_maincpu(*this, "maincpu"),
- m_spu(*this, "spu"),
- m_ram(*this, "maincpu:ram"),
- m_znmcu_dataout(1)
- {
- std::fill(std::begin(m_cat702_dataout), std::end(m_cat702_dataout), 1);
- }
-
- void zn_1mb_vram(machine_config &config);
- void zn_2mb_vram(machine_config &config);
- void zn2(machine_config &config);
- void gameboard_cat702(machine_config &config);
-
-protected:
- template<int Chip> DECLARE_WRITE_LINE_MEMBER(cat702_dataout) { m_cat702_dataout[Chip] = state; update_sio0_rxd(); }
- DECLARE_WRITE_LINE_MEMBER(znmcu_dataout) { m_znmcu_dataout = state; update_sio0_rxd(); }
- void update_sio0_rxd() { m_sio0->write_rxd(m_cat702_dataout[0] && m_cat702_dataout[1] && m_znmcu_dataout); }
- uint8_t znsecsel_r(offs_t offset, uint8_t mem_mask = ~0);
- void znsecsel_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- uint8_t boardconfig_r();
- uint16_t unknown_r(offs_t offset, uint16_t mem_mask = ~0);
- void coin_w(uint8_t data);
-
- void zn_base_map(address_map &map);
- void zn_rom_base_map(address_map &map);
-
- virtual void machine_start() override;
-
- inline void ATTR_PRINTF(3,4) verboselog( int n_level, const char *s_fmt, ... );
- inline void psxwriteword( uint32_t *p_n_psxram, uint32_t n_address, uint16_t n_data );
-
- uint8_t m_n_znsecsel;
-
- required_device<psxgpu_device> m_gpu;
- required_device<screen_device> m_gpu_screen;
- required_device<psxsio0_device> m_sio0;
- required_device_array<cat702_device, 2> m_cat702;
- required_device<znmcu_device> m_znmcu;
- required_device<cpu_device> m_maincpu;
- required_device<spu_device> m_spu;
- required_device<ram_device> m_ram;
-
- int m_cat702_dataout[2];
- int m_znmcu_dataout;
-};
-
-//
-// Capcom ZN1/2 hardware
-//
-
-class capcom_zn_state : public zn_state
-{
-public:
- capcom_zn_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn_state(mconfig, type, tag),
- m_bankedroms(*this, "bankedroms"),
- m_rombank(*this, "rombank"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch"),
- m_soundbank(*this, "soundbank")
- {
- }
-
- void zn_base(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- required_memory_region m_bankedroms;
- required_memory_bank m_rombank;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
- required_memory_bank m_soundbank;
-
-private:
- void main_map(address_map &map);
- void qsound_map(address_map &map);
- void qsound_portmap(address_map &map);
-
- uint16_t kickharness_r(offs_t offset, uint16_t mem_mask = ~0);
- void bank_w(uint8_t data);
- void qsound_bankswitch_w(uint8_t data);
- INTERRUPT_GEN_MEMBER(qsound_interrupt);
-};
-
-class zn1_state : public capcom_zn_state
-{
-public:
- zn1_state(const machine_config &mconfig, device_type type, const char *tag) :
- capcom_zn_state(mconfig, type, tag)
- {
- }
-
- void coh1000c(machine_config &config);
- void coh1002c(machine_config &config);
-};
-
-class glpracr_state : public zn1_state
-{
-public:
- glpracr_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn1_state(mconfig, type, tag)
- {
- }
-
-private:
- virtual void machine_reset() override;
-};
-
-class zn2_state : public capcom_zn_state
-{
-public:
- zn2_state(const machine_config &mconfig, device_type type, const char *tag) :
- capcom_zn_state(mconfig, type, tag)
- {
- }
-
- void coh3002c(machine_config &config);
-};
-
-//
-// Acclaim ZN-derived hardware
-//
-
-class acclaim_zn_state : public zn_state
-{
-public:
- acclaim_zn_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn_state(mconfig, type, tag)
- {
- }
-
- void coh1000a(machine_config &config);
-
-protected:
- void coh1000a_map(address_map &map);
-
-private:
- void acpsx_00_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void acpsx_10_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-};
-
-class nbajamex_state : public acclaim_zn_state
-{
-public:
- nbajamex_state(const machine_config &mconfig, device_type type, const char *tag) :
- acclaim_zn_state(mconfig, type, tag),
- m_rax(*this, "rax"),
- m_bankmap(*this, "nbajamex_bankmap"),
- m_bankedroms(*this, "bankedroms"),
- m_rombank(*this, "rombank%u", 1)
- {
- }
-
- void nbajamex(machine_config &config);
-
-private:
- virtual void driver_init() override;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void sound_80_w(uint16_t data);
- void backup_w(offs_t offset, uint8_t data);
- uint16_t sound_08_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t sound_80_r(offs_t offset, uint16_t mem_mask = ~0);
-
- void main_map(address_map &map);
- void bank_map(address_map &map);
-
- std::unique_ptr<uint8_t[]> m_sram;
- uint32_t m_curr_rombank[2];
-
- required_device<acclaim_rax_device> m_rax;
- required_device<address_map_bank_device> m_bankmap;
- required_memory_region m_bankedroms;
- required_memory_bank_array<2> m_rombank;
-};
-
-class jdredd_state : public acclaim_zn_state
-{
-public:
- jdredd_state(const machine_config &mconfig, device_type type, const char *tag) :
- acclaim_zn_state(mconfig, type, tag),
- m_gun_x(*this, "GUN%uX", 1U),
- m_gun_y(*this, "GUN%uY", 1U)
- {
- }
-
- void jdredd(machine_config &config);
-
- DECLARE_READ_LINE_MEMBER(gun_mux_r);
-
-private:
- virtual void machine_start() override;
-
- void main_map(address_map &map);
-
- DECLARE_WRITE_LINE_MEMBER(vblank);
-
- required_ioport_array<2> m_gun_x;
- required_ioport_array<2> m_gun_y;
- bool m_gun_mux;
-};
-
-//
-// Atlus ZN-derived hardware
-//
-
-class atlus_zn_state : public zn_state
-{
-public:
- atlus_zn_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn_state(mconfig, type, tag),
- m_bankedroms(*this, "bankedroms"),
- m_rombank(*this, "rombank"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch16(*this, "soundlatch16")
- {
- }
-
- void coh1001l(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bank_w(uint8_t data);
- void sound_unk_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-
- required_memory_region m_bankedroms;
- required_memory_bank m_rombank;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_16_device> m_soundlatch16;
-};
-
-//
-// Video System Co. ZN-derived hardware
-//
-
-class visco_zn_state : public zn_state
-{
-public:
- visco_zn_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn_state(mconfig, type, tag),
- m_bankedroms(*this, "bankedroms"),
- m_rombank(*this, "rombank")
- {
- }
-
- void coh1002v(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bank_w(uint8_t data);
-
- void main_map(address_map &map);
-
- required_memory_region m_bankedroms;
- required_memory_bank m_rombank;
-};
-
-//
-// Eighting / Raizing ZN-derived hardware
-//
-
-class raizing_zn_state : public zn_state
-{
-public:
- raizing_zn_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn_state(mconfig, type, tag),
- m_bankedroms(*this, "bankedroms"),
- m_rombank(*this, "rombank"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch")
- {
- }
-
- void coh1002e(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void main_map(address_map &map);
- void psarc_sound_map(address_map &map);
-
- void bank_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
- void sound_irq_w(uint8_t data);
-
- required_memory_region m_bankedroms;
- required_memory_bank m_rombank;
- required_device<cpu_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
-};
-
-class beastrzrb_state : public raizing_zn_state
-{
-public:
- beastrzrb_state(const machine_config &mconfig, device_type type, const char *tag) :
- raizing_zn_state(mconfig, type, tag),
- m_okibank(*this, "okibank")
- {
- }
-
- void beastrzrb(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void sound_map(address_map &map);
- void oki_map(address_map &map);
-
- required_memory_bank m_okibank;
-};
-
-class bam2_state : public zn_state
-{
-public:
- bam2_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn_state(mconfig, type, tag),
- m_bankedroms(*this, "bankedroms"),
- m_rombank(*this, "rombank")
- {
- }
-
- void bam2(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void main_map(address_map &map);
-
- uint16_t m_mcu_command;
-
- void mcu_w(offs_t offset, uint16_t data);
- uint16_t mcu_r(offs_t offset, uint16_t mem_mask = ~0);
- uint16_t unk_r();
-
- required_memory_region m_bankedroms;
- required_memory_bank m_rombank;
-};
-
-//
-// Taito FX1a/FX1b
-//
-
-class taito_fx_state : public zn_state
-{
-public:
- taito_fx_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn_state(mconfig, type, tag),
- m_bankedroms(*this, "bankedroms"),
- m_rombank(*this, "rombank"),
- m_mb3773(*this, "mb3773")
- {
- }
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void bank_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
-
- required_memory_region m_bankedroms;
- required_memory_bank m_rombank;
- required_device<mb3773_device> m_mb3773;
-};
-
-class taito_fx1a_state : public taito_fx_state
-{
-public:
- taito_fx1a_state(const machine_config &mconfig, device_type type, const char *tag) :
- taito_fx_state(mconfig, type, tag),
- m_audiocpu(*this, "audiocpu"),
- m_soundbank(*this, "soundbank")
- {
- }
-
- void coh1000ta(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void main_map(address_map &map);
- void sound_map(address_map &map);
-
- void sound_bankswitch_w(uint8_t data);
-
- required_device<cpu_device> m_audiocpu;
- required_memory_bank m_soundbank;
-};
-
-class taito_fx1b_state : public taito_fx_state
-{
-public:
- taito_fx1b_state(const machine_config &mconfig, device_type type, const char *tag) :
- taito_fx_state(mconfig, type, tag),
- m_zoom(*this, "taito_zoom"),
- m_fm1208s(*this, "fm1208s")
- {
- }
-
- void base_config(machine_config &config);
- void coh1000tb(machine_config &config);
-
-private:
- virtual void machine_start() override;
-
- void main_map(address_map &map);
-
- void fram_w(offs_t offset, uint8_t data);
- uint8_t fram_r(offs_t offset);
-
- required_device<taito_zoom_device> m_zoom;
- required_device<nvram_device> m_fm1208s;
-
- std::unique_ptr<uint8_t[]> m_fram;
-};
-
-class gdarius_state : public taito_fx1b_state
-{
-public:
- gdarius_state(const machine_config &mconfig, device_type type, const char *tag) :
- taito_fx1b_state(mconfig, type, tag)
- {
- }
-
- void coh1002tb(machine_config &config);
-};
-
-//
-// Atari ZN-derived hardware (Primal Rage 2)
-//
-
-class primrag2_state : public zn_state
-{
-public:
- primrag2_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn_state(mconfig, type, tag),
- m_vt83c461(*this, "ide")
- {
- }
-
- void coh1000w(machine_config &config);
-
-private:
- virtual void machine_start() override;
-
- void main_map(address_map &map);
-
- void dma_read(uint32_t *p_n_psxram, uint32_t n_address, int32_t n_size);
- void dma_write(uint32_t *p_n_psxram, uint32_t n_address, int32_t n_size);
-
- uint16_t vt83c461_16_r(offs_t offset, uint16_t mem_mask = ~0);
- void vt83c461_16_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- uint16_t vt83c461_32_r(offs_t offset, uint16_t mem_mask = ~0);
- void vt83c461_32_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- required_device<vt83c461_device> m_vt83c461;
-
- uint16_t m_vt83c461_latch;
-};
-
-//
-// Tecmo ZN-derived hardware
-//
-
-class tecmo_zn_state : public zn_state
-{
-public:
- tecmo_zn_state(const machine_config &mconfig, device_type type, const char *tag) :
- zn_state(mconfig, type, tag),
- m_bankedroms(*this, "bankedroms"),
- m_rombank(*this, "rombank")
- {
- }
-
- void coh1002m(machine_config &config);
- void coh1002ml(machine_config &config);
-
-protected:
- void base_map(address_map &map);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void link_map(address_map &map);
- void link_port_map(address_map &map);
-
- void bank_w(offs_t offset, uint8_t data, uint8_t mem_mask = ~0);
-
- required_memory_region m_bankedroms;
- required_memory_bank m_rombank;
-};
-
-class cbaj_state : public tecmo_zn_state
-{
-public:
- cbaj_state(const machine_config &mconfig, device_type type, const char *tag) :
- tecmo_zn_state(mconfig, type, tag),
- m_audiocpu(*this, "audiocpu"),
- m_fifo(*this, "cbaj_fifo%u", 1)
- {
- }
-
- void cbaj(machine_config &config);
-
-private:
- void main_map(address_map &map);
-
- void z80_map(address_map &map);
- void z80_port_map(address_map &map);
-
- uint8_t sound_main_status_r();
- uint8_t sound_z80_status_r();
-
- required_device<cpu_device> m_audiocpu;
- required_device_array<fifo7200_device, 2> m_fifo;
-};
-
-#endif // MAME_INCLUDES_ZN_H
diff --git a/src/mame/includes/zodiack.h b/src/mame/includes/zodiack.h
deleted file mode 100644
index eb798623345..00000000000
--- a/src/mame/includes/zodiack.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Zsolt Vasvari
-
-#include "cpu/z80/z80.h"
-#include "machine/gen_latch.h"
-
-class zodiack_state : public driver_device
-{
-public:
- zodiack_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_soundlatch(*this, "soundlatch")
- { }
-
- void zodiack(machine_config &config);
- void percuss(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- void nmi_mask_w(uint8_t data);
- void sound_nmi_enable_w(uint8_t data);
- void master_soundlatch_w(uint8_t data);
- void control_w(uint8_t data);
-
- // devices
- required_device<z80_device> m_maincpu;
- required_device<z80_device> m_audiocpu;
- required_device<generic_latch_8_device> m_soundlatch;
-
- // state
- uint8_t m_main_nmi_enabled;
- uint8_t m_sound_nmi_enabled;
-
- INTERRUPT_GEN_MEMBER(zodiack_sound_nmi_gen);
- DECLARE_WRITE_LINE_MEMBER(vblank_main_nmi_w);
-
- void io_map(address_map &map);
- void main_map(address_map &map);
- void sound_map(address_map &map);
-};
diff --git a/src/mame/includes/zorba.h b/src/mame/includes/zorba.h
deleted file mode 100644
index 0ba320fbca1..00000000000
--- a/src/mame/includes/zorba.h
+++ /dev/null
@@ -1,131 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Robbbert, Vas Crabb
-#ifndef MAME_INCLUDES_ZORBA_H
-#define MAME_INCLUDES_ZORBA_H
-
-#pragma once
-
-#include "sound/beep.h"
-
-#include "bus/ieee488/ieee488.h"
-
-#include "imagedev/floppy.h"
-
-#include "machine/6821pia.h"
-#include "machine/i8251.h"
-#include "machine/wd_fdc.h"
-#include "machine/z80dma.h"
-
-#include "video/i8275.h"
-
-#include "emupal.h"
-
-
-class zorba_state : public driver_device
-{
-public:
- zorba_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_config_port(*this, "CNF")
- , m_rom(*this, "maincpu")
- , m_ram(*this, "mainram")
- , m_bank1(*this, "bank1")
- , m_p_chargen(*this, "chargen")
- , m_maincpu(*this, "maincpu")
- , m_dma(*this, "dma")
- , m_uart0(*this, "uart0")
- , m_uart1(*this, "uart1")
- , m_uart2(*this, "uart2")
- , m_pia0(*this, "pia0")
- , m_pia1(*this, "pia1")
- , m_palette(*this, "palette")
- , m_crtc(*this, "crtc")
- , m_beep(*this, "beeper")
- , m_fdc (*this, "fdc")
- , m_floppy0(*this, "fdc:0")
- , m_floppy1(*this, "fdc:1")
- , m_ieee(*this, IEEE488_TAG)
- {
- }
-
- DECLARE_INPUT_CHANGED_MEMBER(printer_type);
- void zorba(machine_config &config);
-
-private:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void zorba_io(address_map &map);
- void zorba_mem(address_map &map);
-
- // Memory banking control
- uint8_t ram_r();
- void ram_w(uint8_t data);
- uint8_t rom_r();
- void rom_w(uint8_t data);
-
- // Interrupt vectoring glue
- void intmask_w(uint8_t data);
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(tx_rx_rdy_w);
- template <unsigned N> DECLARE_WRITE_LINE_MEMBER(irq_w);
-
- // DMA controller handlers
- DECLARE_WRITE_LINE_MEMBER(busreq_w);
- uint8_t memory_read_byte(offs_t offset);
- void memory_write_byte(offs_t offset, uint8_t data);
- uint8_t io_read_byte(offs_t offset);
- void io_write_byte(offs_t offset, uint8_t data);
-
- // PIT handlers
- DECLARE_WRITE_LINE_MEMBER(br1_w);
-
- // PIA handlers
- void pia0_porta_w(uint8_t data);
- uint8_t pia1_portb_r();
- void pia1_portb_w(uint8_t data);
-
- // Video
- I8275_DRAW_CHARACTER_MEMBER(zorba_update_chr);
-
- // Printer port glue
- DECLARE_WRITE_LINE_MEMBER(printer_fault_w);
- DECLARE_WRITE_LINE_MEMBER(printer_select_w);
-
- required_ioport m_config_port;
-
- required_region_ptr<u8> m_rom;
- required_shared_ptr<u8> m_ram;
- required_memory_bank m_bank1;
- required_region_ptr<uint8_t> m_p_chargen;
-
- required_device<cpu_device> m_maincpu;
- required_device<z80dma_device> m_dma;
- required_device<i8251_device> m_uart0;
- required_device<i8251_device> m_uart1;
- required_device<i8251_device> m_uart2;
- required_device<pia6821_device> m_pia0;
- required_device<pia6821_device> m_pia1;
-
- required_device<palette_device> m_palette;
- required_device<i8275_device> m_crtc;
-
- required_device<beep_device> m_beep;
-
- required_device<fd1793_device> m_fdc;
- required_device<floppy_connector> m_floppy0;
- required_device<floppy_connector> m_floppy1;
-
- required_device<ieee488_device> m_ieee;
-
- uint8_t m_intmask;
- uint8_t m_tx_rx_rdy;
- uint8_t m_irq;
-
- bool m_printer_prowriter;
- int m_printer_fault;
- int m_printer_select;
-
- uint8_t m_term_data;
-};
-
-#endif // MAME_INCLUDES_ZORBA_H
diff --git a/src/mame/includes/zx.h b/src/mame/includes/zx.h
deleted file mode 100644
index 408b2744bf9..00000000000
--- a/src/mame/includes/zx.h
+++ /dev/null
@@ -1,134 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Juergen Buchmueller, Krzysztof Strzecha, Robbbert
-/*****************************************************************************
- *
- * ZX-80/ZX-81 and derivatives
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_ZX_H
-#define MAME_INCLUDES_ZX_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "imagedev/cassette.h"
-#include "machine/ram.h"
-#include "sound/spkrdev.h"
-
-#include "emupal.h"
-#include "screen.h"
-
-#include "formats/tzx_cas.h"
-#include "formats/zx81_p.h"
-
-
-class zx_state : public driver_device
-{
-public:
- zx_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ram(*this, RAM_TAG),
- m_cassette(*this, "cassette"),
- m_softlist(*this, "cass_list"),
- m_speaker(*this, "speaker"),
- m_region_maincpu(*this, "maincpu"),
- m_region_gfx1(*this, "gfx1"),
- m_io_row0(*this, "ROW0"),
- m_io_row1(*this, "ROW1"),
- m_io_row2(*this, "ROW2"),
- m_io_row3(*this, "ROW3"),
- m_io_row4(*this, "ROW4"),
- m_io_row5(*this, "ROW5"),
- m_io_row6(*this, "ROW6"),
- m_io_row7(*this, "ROW7"),
- m_io_config(*this, "CONFIG"),
- m_screen(*this, "screen")
- { }
-
- void zx81(machine_config &config);
- void zx81_spk(machine_config &config);
- void ts1000(machine_config &config);
- void pc8300(machine_config &config);
- void pow3000(machine_config &config);
- void ts1500(machine_config &config);
- void zx80(machine_config &config);
-
- void init_zx();
-
-protected:
- virtual void machine_reset() override;
- virtual void video_start() override;
-
-private:
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- uint8_t ula_high_r(offs_t offset);
- uint8_t ula_low_r(offs_t offset);
- void refresh_w(offs_t offset, uint8_t data);
- uint8_t zx80_io_r(offs_t offset);
- uint8_t zx81_io_r(offs_t offset);
- uint8_t pc8300_io_r(offs_t offset);
- uint8_t pow3000_io_r(offs_t offset);
- void zx80_io_w(offs_t offset, uint8_t data);
- void zx81_io_w(offs_t offset, uint8_t data);
-
- void zx_tape_input();
- void zx_ula_hsync();
-
- void pc8300_io_map(address_map &map);
- void pow3000_io_map(address_map &map);
- void ula_map(address_map &map);
- void zx80_io_map(address_map &map);
- void zx80_map(address_map &map);
- void zx81_io_map(address_map &map);
- void zx81_map(address_map &map);
-
- enum
- {
- TIMER_TAPE_INPUT,
- TIMER_ULA_HSYNC
- };
-
- required_device<z80_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_device<cassette_image_device> m_cassette;
- required_device<software_list_device> m_softlist;
- optional_device<speaker_sound_device> m_speaker;
- required_memory_region m_region_maincpu;
- optional_memory_region m_region_gfx1;
- required_ioport m_io_row0;
- required_ioport m_io_row1;
- required_ioport m_io_row2;
- required_ioport m_io_row3;
- required_ioport m_io_row4;
- required_ioport m_io_row5;
- required_ioport m_io_row6;
- required_ioport m_io_row7;
- optional_ioport m_io_config;
- required_device<screen_device> m_screen;
-
- address_space *m_program;
- emu_timer *m_tape_input, *m_ula_hsync;
-
- bool m_vsync_active, m_hsync_active, m_nmi_on, m_nmi_generator_active;
- uint64_t m_base_vsync_clock, m_vsync_start_time;
- uint32_t m_ypos;
-
- uint8_t m_prev_refresh;
- uint8_t m_speaker_state;
-
- std::unique_ptr<bitmap_ind16> m_bitmap_render;
- std::unique_ptr<bitmap_ind16> m_bitmap_buffer;
-
- uint16_t m_ula_char_buffer;
- double m_cassette_cur_level;
-
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- void drop_sync();
- void recalc_hsync();
-};
-
-#endif // MAME_INCLUDES_ZX_H