| Previous | 15994 Revisions | Next |
| r8582 Thursday 22nd July, 2010 at 11:40:17 UTC by Nathan Woods |
|---|
| Updated to MAME 0.138u4 core |
| [docs] | messnew.txt |
| [src/emu] | devcpu.h devimage.c devintrf.h diimage.c emu.mak mame.c softlist.c ui.c |
| [src/emu/cpu] | cpu.mak |
| [src/emu/cpu/h83002] | h8_8.c h8periph.c |
| [src/emu/cpu/m37710] | m37710.c |
| [src/emu/cpu/mb88xx] | mb88xx.c |
| [src/emu/cpu/mcs51] | mcs51dasm.c |
| [src/emu/cpu/mn10200] | mn10200.c |
| [src/emu/cpu/powerpc] | ppc_dasm.c |
| [src/emu/cpu/rsp] | rsp.c rsp.h rspdrc.c |
| [src/emu/cpu/sh2] | sh2.c sh2comn.h |
| [src/emu/cpu/tlcs90] | tlcs90.c |
| [src/emu/cpu/tms32010] | tms32010.c tms32010.h |
| [src/emu/debug] | debugcmd.c dvstate.c |
| [src/emu/machine] | 6840ptm.c at28c16.c at28c16.h i2cmem.c mb3773.c mb3773.h tmp68301.c |
| [src/emu/sound] | cdp1864.c discrete.c mos6560.c sound.mak tms5220.c |
| [src/lib/util] | options.c |
| [src/mame] | mame.mak mamedriv.c |
| [src/mame/audio] | blockade.c carnival.c cchasm.c cclimber.c cinemat.c cyberbal.c dcs.c depthch.c exidy.c gorf.c gottlieb.c gridlee.c invinco.c irem.c jaguar.c jedi.c leland.c mario.c mcr.c meadows.c micro3d.c n8080.c namco52.c namco54.c namcoc7x.c phoenix.c pleiads.c polyplay.c pulsar.c qix.c redalert.c scramble.c segag80r.c segag80v.c segasnd.c seibu.c senjyo.c snk6502.c spacefb.c spiders.c starwars.c t5182.c taito_en.c taitosnd.c targ.c timeplt.c turbo.c tx1.c vicdual.c williams.c wow.c zaxxon.c |
| [src/mame/drivers] | 1942.c 20pacgal.c 2mindril.c 40love.c 5clown.c 86lions.c 88games.c acommand.c actfancr.c adp.c aerofgt.c airbustr.c alg.c aliens.c alpha68k.c amspdwy.c angelkds.c appoooh.c aquarium.c arcadecl.c aristmk4.c aristmk5.c arkanoid.c artmagic.c ashnojoe.c asterix.c astinvad.c astrocde.c astrocorp.c astrof.c asuka.c atarifb.c atarig1.c atarigt.c atarisy1.c atarisy2.c aztarac.c backfire.c badlands.c battlane.c battlnts.c beaminv.c berzerk.c bfm_sc1.c bfm_sc2.c bfmsys85.c bigevglf.c bishi.c bking.c blackt96.c bladestl.c blktiger.c blockhl.c blockout.c blueprnt.c bmcbowl.c bnstars.c bogeyman.c bottom9.c boxer.c brkthru.c btime.c btoads.c bublbobl.c buggychl.c bwing.c calchase.c capbowl.c cave.c cb2001.c cball.c cbuster.c ccastles.c cclimber.c cdi.c centiped.c cham24.c champbas.c chanbara.c changela.c cheekyms.c chihiro.c chinagat.c chqflag.c cidelsa.c cinemat.c circus.c circusc.c citycon.c cliffhgr.c cloud9.c cntsteer.c cojag.c combatsc.c commando.c contra.c coolpool.c cosmic.c cps1.c cps2.c cps3.c crbaloon.c crgolf.c crimfght.c crospang.c crshrace.c crystal.c cshooter.c cubeqst.c cubocd32.c cvs.c cyberbal.c dacholer.c darius.c dblewing.c dbz.c dcheese.c dday.c ddayjlc.c ddenlovr.c ddragon.c ddragon3.c ddribble.c dec8.c deco32.c deco_ld.c deco_mlc.c deniam.c destroyr.c dietgo.c discoboy.c diverboy.c djboy.c djmain.c dkong.c dogfgt.c dorachan.c dragrace.c drgnmst.c dribling.c drmicro.c drw80pkr.c dynax.c egghunt.c enigma2.c eolith.c eprom.c equites.c esd16.c esh.c espial.c esripsys.c ettrivia.c exerion.c exprraid.c exterm.c f1gp.c fantland.c fastlane.c fcombat.c fcrash.c fgoal.c finalizr.c firebeat.c firefox.c firetrap.c firetrk.c flkatck.c flstory.c flyball.c foodf.c fromanc2.c fromance.c funkyjet.c funybubl.c fuukifg2.c fuukifg3.c gaelco.c gaiden.c galaga.c galastrm.c galaxia.c galaxian.c galpani2.c galpani3.c galpanic.c galspnbl.c gamecstl.c gameplan.c gaplus.c gauntlet.c gbusters.c gei.c ghosteo.c gijoe.c ginganin.c go2000.c goal92.c goldstar.c gotcha.c gotya.c gpworld.c gradius3.c grchamp.c gstriker.c gsword.c gticlub.c guab.c gunbustr.c hcastle.c himesiki.c hnayayoi.c hng64.c homedata.c hornet.c hvyunit.c hyperspt.c hyprduel.c imolagp.c inufuku.c ironhors.c istellar.c itech32.c itech8.c jackal.c jackpool.c jangou.c jpmimpct.c jrpacman.c junofrst.c kaneko16.c karnov.c kchamp.c kingobox.c kinst.c klax.c kncljoe.c konamigq.c konamigv.c konamigx.c konamim2.c kongambl.c kopunch.c ksys573.c kungfur.c kyugo.c labyrunr.c ladybug.c ladyfrog.c laserbat.c lasso.c lastduel.c lastfght.c lazercmd.c lemmings.c lethal.c lethalj.c lgp.c liberate.c limenko.c lkage.c lockon.c lordgun.c lsasquad.c m10.c m107.c m14.c m63.c m72.c m92.c macrossp.c madmotor.c magicfly.c magmax.c mainevt.c malzak.c mappy.c marineb.c mario.c mastboy.c matmania.c maxaflex.c maygay1b.c maygayv1.c mazerbla.c mcatadv.c mcr.c mediagx.c megadriv.c megasys1.c megatech.c megazone.c merit.c meritm.c mermaid.c metalmx.c metlclsh.c metro.c mexico86.c mgolf.c mhavoc.c midas.c midxunit.c midyunit.c midzeus.c mirax.c missb2.c missile.c mitchell.c mjsister.c mlanding.c model1.c model2.c model3.c mogura.c moo.c mouser.c mpoker.c mpu4.c mpu4drvr.c mquake.c mrflea.c ms32.c msisaac.c mugsmash.c multigam.c munchmo.c mw8080bw.c mystston.c mystwarr.c n8080.c namcona1.c namcos1.c namcos10.c namcos11.c namcos12.c namcos2.c namcos21.c namcos22.c namcos86.c naomi.c nbmj8688.c nbmj8891.c nbmj9195.c nemesis.c neodrvr.c neogeo.c nightgal.c ninjakd2.c ninjaw.c niyanpai.c nmg5.c nmk16.c norautp.c nwk-tr.c nycaptor.c nyny.c ojankohs.c omegrace.c oneshot.c onetwo.c opwolf.c orbit.c othello.c othunder.c overdriv.c pacland.c pacman.c paradise.c parodius.c pasha2.c pbaction.c pcat_dyn.c pcat_nit.c pcxt.c peplus.c pgm.c photon.c photon2.c photoply.c pipedrm.c pipeline.c pirates.c pktgaldx.c playch10.c playmark.c plygonet.c polepos.c policetr.c popper.c ppmast93.c psikyo.c psikyo4.c psikyosh.c puckpkmn.c punchout.c pushman.c qdrmfgp.c quakeat.c r2dtank.c rainbow.c rallyx.c rampart.c rastan.c rbmk.c rcorsair.c redclash.c retofinv.c rockrage.c rollerg.c royalmah.c rungun.c safarir.c sandscrp.c sbasketb.c sbrkout.c scramble.c scregg.c seattle.c segac2.c segae.c segag80v.c segahang.c segald.c segamsys.c segaorun.c segas16a.c segas16b.c segas18.c segas24.c segaxbd.c segaybd.c seibuspi.c seicross.c sf.c sfbonus.c shanghai.c sigmab52.c sigmab98.c skeetsht.c skimaxx.c skullxbo.c skydiver.c skyfox.c skykid.c slapshot.c slotcarn.c snowbros.c sonson.c spbactn.c spcforce.c spdodgeb.c speglsht.c spiders.c spool99.c sprint2.c spy.c ssfindo.c ssingles.c sslam.c ssv.c statriv2.c stfight.c stv.c stvinit.c suna8.c supbtime.c superchs.c superdq.c superqix.c suprnova.c suprslam.c surpratk.c system1.c system16.c tail2nos.c taito_b.c taito_f2.c taito_f3.c taito_h.c taito_l.c taito_o.c taito_z.c taitoair.c taitogn.c taitosj.c taitowlf.c tankbatt.c tatsumi.c tbowl.c thayers.c thedeep.c thunderx.c tickee.c tmaster.c tmmjprd.c tmnt.c toaplan2.c tomcat.c topshoot.c topspeed.c toratora.c toypop.c tp84.c trackfld.c triforce.c triplhnt.c trucocl.c trvquest.c ttchamp.c tugboat.c tumbleb.c tumblep.c turbo.c twinkle.c ultraman.c ultrsprt.c undrfire.c vamphalf.c vaportra.c vcombat.c vegas.c vendetta.c videopin.c viper.c volfied.c vsnes.c warpwarp.c warriorb.c wecleman.c wgp.c wheelfir.c williams.c wiz.c wolfpack.c xain.c xexex.c xmen.c xtheball.c xybots.c yiear.c yunsun16.c yunsung8.c zaccaria.c zerozone.c zn.c zr107.c |
| [src/mame/includes] | coolpool.h* gaiden.h midyunit.h polepos.h |
| [src/mame/layout] | topracer.lay* |
| [src/mame/machine] | ajax.c amiga.c archimds.c asic65.c atari.c atarifb.c atarigen.c beezer.c carpolo.c cps2crpt.c dc.c deco102.c decocass.c decoprot.c fd1089.c galaxold.c gaplus.c konppc.c leland.c mcr.c mhavoc.c micro3d.c midwayic.c midyunit.c model1.c mw8080bw.c n64.c namco06.c namcos1.c namcos2.c naomibd.c nitedrvr.c nmk004.c playch10.c qix.c s16fd.c s24fd.c scramble.c simpsons.c slikshot.c snes.c starwars.c stvcd.c taitosj.c tnzs.c tx1.c vertigo.c vsnes.c williams.c |
| [src/mame/video] | antic.c astrocde.c atari.c atarisy1.c beezer.c blstroid.c cidelsa.c cinemat.c cps1.c cyberbal.c djmain.c exterm.c fuukifg2.c fuukifg3.c gaelco2.c gaiden.c galastrm.c galpanic.c genesis.c groundfx.c gticlub.c gunbustr.c irobot.c jaguar.c kan_pand.c kan_pand.h kaneko16.c konamigx.c konicdev.c megasys1.c nbmj8688.c playch10.c plygonet.c polepos.c psikyo4.c punchout.c qdrmfgp.c qix.c sega16sp.c segahang.c segaic16.c segaic16.h segas32.c seta.c skydiver.c sprint4.c starcrus.c subs.c superchs.c tbowl.c tceptor.c tetrisp2.c thief.c tia.c toaplan2.c triplhnt.c tx1.c ultratnk.c undrfire.c vindictr.c vrender0.c vsnes.c wecleman.c |
| [src/mess/drivers] | pasopia.c |
| [src/osd/sdl] | sound.c |
| [src/osd/sdl/man] | chdman.1* jedutil.1* ldplayer.1* ldverify.1* mame.1* romcmp.1* testkeys.1* |
| [src/tools] | jedutil.c |
| r8581 | r8582 | |
|---|---|---|
| 185 | 185 | |
| 186 | 186 | if (~data & 8) |
| 187 | 187 | { |
| 188 | running_device *device = | |
| 188 | running_device *device = m | |
| 189 | 189 | noise_state *nstate = (noise_state *)downcast<legacy_device_base *>(device)->token(); |
| 190 | 190 | |
| 191 | 191 | if (state->dac_data != nstate->dac[data & 3]) |
| r8581 | r8582 | |
| 397 | 397 | } |
| 398 | 398 | case 0x03: |
| 399 | 399 | { |
| 400 | running_device *upd = | |
| 400 | running_device *upd = | |
| 401 | 401 | upd7759_set_bank_base(upd, (data & 0x4) ? 0x20000 : 0); |
| 402 | 402 | upd7759_reset_w(upd, (data & 0x10) ? 0 : 1); |
| 403 | 403 | break; |
| r8581 | r8582 | |
| 412 | 412 | switch (offset) |
| 413 | 413 | { |
| 414 | 414 | case 0x01: return (state->sound_port_latch[offset] & 0x7f) | input_port_read(space->machine, "SOUND_SW"); |
| 415 | case 0x03: return (state->sound_port_latch[offset] & 0xf7) | (upd7759_busy_r( | |
| 415 | case 0x03: return (state->sound_port_latch[offset] & 0xf7) | (upd7759_busy_r( | |
| 416 | 416 | default: return 0; |
| 417 | 417 | } |
| 418 | 418 | } |
| r8581 | r8582 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | WRITE8_HANDLER( spacefb_port_1_w ) |
| 38 | 38 | { |
| 39 | running_device *samples = | |
| 39 | running_device *samples = | |
| 40 | 40 | |
| 41 | 41 | cputag_set_input_line(space->machine, "audiocpu", 0, (data & 0x02) ? CLEAR_LINE : ASSERT_LINE); |
| 42 | 42 |
| r8581 | r8582 | |
|---|---|---|
| 339 | 339 | static WRITE32_HANDLER( dsp_flags_w ) |
| 340 | 340 | { |
| 341 | 341 | /* write the data through */ |
| 342 | jaguardsp_ctrl_w( | |
| 342 | jaguardsp_ctrl_w( | |
| 343 | 343 | |
| 344 | 344 | /* if they were clearing the A2S interrupt, see if we are headed for the spin */ |
| 345 | 345 | /* loop with R22 != 0; if we are, just start spinning again */ |
| 346 | if (space->cpu == | |
| 346 | if (space->cpu == | |
| 347 | 347 | { |
| 348 | 348 | /* see if we're going back to the spin loop */ |
| 349 | 349 | if (!(data & 0x04000) && cpu_get_reg(space->cpu, JAGUAR_R22) != 0) |
| r8581 | r8582 | |
| 416 | 416 | { |
| 417 | 417 | /* right DAC */ |
| 418 | 418 | case 2: |
| 419 | dac_signed_data_16_w( | |
| 419 | dac_signed_data_16_w( | |
| 420 | 420 | break; |
| 421 | 421 | |
| 422 | 422 | /* left DAC */ |
| 423 | 423 | case 3: |
| 424 | dac_signed_data_16_w( | |
| 424 | dac_signed_data_16_w( | |
| 425 | 425 | break; |
| 426 | 426 | |
| 427 | 427 | /* frequency register */ |
| r8581 | r8582 | |
|---|---|---|
| 511 | 511 | discrete_sound_w(device, PHOENIX_EFFECT_1_FREQ, data & 0x10); |
| 512 | 512 | |
| 513 | 513 | /* update the tune that the MM6221AA is playing */ |
| 514 | mm6221aa_tune_w(dev | |
| 514 | mm6221aa_tune_w(dev | |
| 515 | 515 | } |
| 516 | 516 | |
| 517 | 517 | static DEVICE_START( phoenix_sound ) |
| r8581 | r8582 | |
|---|---|---|
| 159 | 159 | |
| 160 | 160 | static TIMER_CALLBACK( stop_mono_flop_callback ) |
| 161 | 161 | { |
| 162 | stop_mono_flop( | |
| 162 | stop_mono_flop(m | |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | |
| 166 | 166 | static void spacefev_sound_pins_changed( running_machine *machine ) |
| 167 | 167 | { |
| 168 | running_device *sn = | |
| 168 | running_device *sn = m | |
| 169 | 169 | n8080_state *state = (n8080_state *)machine->driver_data; |
| 170 | 170 | UINT16 changes = ~state->curr_sound_pins & state->prev_sound_pins; |
| 171 | 171 | |
| r8581 | r8582 | |
| 191 | 191 | } |
| 192 | 192 | if (changes & ((1 << 0x2) | (1 << 0x3) | (1 << 0x5))) |
| 193 | 193 | { |
| 194 | generic_pulse_irq_line( | |
| 194 | generic_pulse_irq_line(m | |
| 195 | 195 | } |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | |
| 199 | 199 | static void sheriff_sound_pins_changed( running_machine *machine ) |
| 200 | 200 | { |
| 201 | running_device *sn = | |
| 201 | running_device *sn = m | |
| 202 | 202 | n8080_state *state = (n8080_state *)machine->driver_data; |
| 203 | 203 | UINT16 changes = ~state->curr_sound_pins & state->prev_sound_pins; |
| 204 | 204 | |
| r8581 | r8582 | |
| 216 | 216 | } |
| 217 | 217 | if (changes & ((1 << 0x2) | (1 << 0x3) | (1 << 0x5))) |
| 218 | 218 | { |
| 219 | generic_pulse_irq_line( | |
| 219 | generic_pulse_irq_line(m | |
| 220 | 220 | } |
| 221 | 221 | } |
| 222 | 222 | |
| r8581 | r8582 | |
| 232 | 232 | |
| 233 | 233 | if (changes & (1 << 6)) |
| 234 | 234 | { |
| 235 | generic_pulse_irq_line( | |
| 235 | generic_pulse_irq_line(m | |
| 236 | 236 | } |
| 237 | 237 | } |
| 238 | 238 | |
| r8581 | r8582 | |
| 403 | 403 | |
| 404 | 404 | static WRITE8_HANDLER( n8080_dac_w ) |
| 405 | 405 | { |
| 406 | dac_data_w( | |
| 406 | dac_data_w( | |
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | |
| 410 | 410 | static WRITE8_HANDLER( helifire_dac_w ) |
| 411 | 411 | { |
| 412 | 412 | n8080_state *state = (n8080_state *)space->machine->driver_data; |
| 413 | dac_data_w( | |
| 413 | dac_data_w( | |
| 414 | 414 | } |
| 415 | 415 | |
| 416 | 416 | |
| r8581 | r8582 | |
| 437 | 437 | |
| 438 | 438 | static TIMER_DEVICE_CALLBACK( spacefev_vco_voltage_timer ) |
| 439 | 439 | { |
| 440 | running_device *sn = | |
| 440 | running_device *sn = | |
| 441 | 441 | n8080_state *state = (n8080_state *)timer.machine->driver_data; |
| 442 | 442 | double voltage = 0; |
| 443 | 443 |
| r8581 | r8582 | |
|---|---|---|
| 154 | 154 | WRITE16_HANDLER( cyberbal_sound_68k_dac_w ) |
| 155 | 155 | { |
| 156 | 156 | cyberbal_state *state = (cyberbal_state *)space->machine->driver_data; |
| 157 | running_device *dac = | |
| 157 | running_device *dac = | |
| 158 | 158 | dac_data_16_w(dac, (((data >> 3) & 0x800) | ((data >> 2) & 0x7ff)) << 4); |
| 159 | 159 | |
| 160 | 160 | if (state->fast_68k_int) |
| r8581 | r8582 | |
|---|---|---|
| 40 | 40 | |
| 41 | 41 | static TIMER_CALLBACK( update_sound_a ) |
| 42 | 42 | { |
| 43 | running_device *discrete = | |
| 43 | running_device *discrete = m | |
| 44 | 44 | int data = param; |
| 45 | 45 | |
| 46 | 46 | /* missing short crash sample, but I've never seen it triggered */ |
| r8581 | r8582 | |
| 73 | 73 | WRITE8_DEVICE_HANDLER( turbo_sound_a_w ) |
| 74 | 74 | { |
| 75 | 75 | #if (!DISCRETE_TEST) |
| 76 | running_device *samples = dev | |
| 76 | running_device *samples = dev | |
| 77 | 77 | #endif |
| 78 | 78 | turbo_state *state = (turbo_state *)device->machine->driver_data; |
| 79 | 79 | UINT8 diff = data ^ state->sound_state[0]; |
| r8581 | r8582 | |
| 123 | 123 | |
| 124 | 124 | WRITE8_DEVICE_HANDLER( turbo_sound_b_w ) |
| 125 | 125 | { |
| 126 | running_device *samples = dev | |
| 126 | running_device *samples = dev | |
| 127 | 127 | turbo_state *state = (turbo_state *)device->machine->driver_data; |
| 128 | 128 | UINT8 diff = data ^ state->sound_state[1]; |
| 129 | 129 | state->sound_state[1] = data; |
| r8581 | r8582 | |
| 146 | 146 | |
| 147 | 147 | WRITE8_DEVICE_HANDLER( turbo_sound_c_w ) |
| 148 | 148 | { |
| 149 | running_device *samples = dev | |
| 149 | running_device *samples = dev | |
| 150 | 150 | turbo_state *state = (turbo_state *)device->machine->driver_data; |
| 151 | 151 | |
| 152 | 152 | /* OSEL1-2 */ |
| r8581 | r8582 | |
| 327 | 327 | |
| 328 | 328 | WRITE8_DEVICE_HANDLER( subroc3d_sound_b_w ) |
| 329 | 329 | { |
| 330 | running_device *samples = dev | |
| 330 | running_device *samples = dev | |
| 331 | 331 | turbo_state *state = (turbo_state *)device->machine->driver_data; |
| 332 | 332 | UINT8 diff = data ^ state->sound_state[1]; |
| 333 | 333 | state->sound_state[1] = data; |
| r8581 | r8582 | |
| 383 | 383 | |
| 384 | 384 | WRITE8_DEVICE_HANDLER( subroc3d_sound_c_w ) |
| 385 | 385 | { |
| 386 | running_device *samples = dev | |
| 386 | running_device *samples = dev | |
| 387 | 387 | turbo_state *state = (turbo_state *)device->machine->driver_data; |
| 388 | 388 | UINT8 diff = data ^ state->sound_state[2]; |
| 389 | 389 | state->sound_state[2] = data; |
| r8581 | r8582 | |
| 508 | 508 | |
| 509 | 509 | WRITE8_DEVICE_HANDLER( buckrog_sound_a_w ) |
| 510 | 510 | { |
| 511 | running_device *samples = dev | |
| 511 | running_device *samples = dev | |
| 512 | 512 | turbo_state *state = (turbo_state *)device->machine->driver_data; |
| 513 | 513 | UINT8 diff = data ^ state->sound_state[0]; |
| 514 | 514 | state->sound_state[0] = data; |
| r8581 | r8582 | |
| 534 | 534 | |
| 535 | 535 | WRITE8_DEVICE_HANDLER( buckrog_sound_b_w ) |
| 536 | 536 | { |
| 537 | running_device *samples = dev | |
| 537 | running_device *samples = dev | |
| 538 | 538 | turbo_state *state = (turbo_state *)device->machine->driver_data; |
| 539 | 539 | UINT8 diff = data ^ state->sound_state[1]; |
| 540 | 540 | state->sound_state[1] = data; |
| r8581 | r8582 | |
|---|---|---|
| 116 | 116 | |
| 117 | 117 | READ8_HANDLER( gorf_speech_r ) |
| 118 | 118 | { |
| 119 | running_device *samples = | |
| 119 | running_device *samples = | |
| 120 | 120 | int Phoneme,Intonation; |
| 121 | 121 | int i = 0; |
| 122 | 122 | |
| r8581 | r8582 | |
| 182 | 182 | |
| 183 | 183 | CUSTOM_INPUT( gorf_speech_status_r ) |
| 184 | 184 | { |
| 185 | running_device *samples = | |
| 185 | running_device *samples = | |
| 186 | 186 | return !sample_playing(samples, 0); |
| 187 | 187 | } |
| r8581 | r8582 | |
|---|---|---|
| 210 | 210 | |
| 211 | 211 | /* find the attached discrete sound device */ |
| 212 | 212 | assert(intf->discrete != NULL); |
| 213 | state->discrete = dev | |
| 213 | state->discrete = dev | |
| 214 | 214 | assert(state->discrete != NULL); |
| 215 | 215 | state->basenode = intf->firstnode; |
| 216 | 216 |
| r8581 | r8582 | |
|---|---|---|
| 59 | 59 | |
| 60 | 60 | static TIMER_CALLBACK( senjyo_sh_update ) |
| 61 | 61 | { |
| 62 | running_device *samples = | |
| 62 | running_device *samples = m | |
| 63 | 63 | |
| 64 | 64 | /* ctc2 timer single tone generator frequency */ |
| 65 | 65 | z80ctc_device *ctc = machine->device<z80ctc_device>("z80ctc"); |
| r8581 | r8582 | |
|---|---|---|
| 56 | 56 | WRITE8_HANDLER( depthch_audio_w ) |
| 57 | 57 | { |
| 58 | 58 | static int port1State = 0; |
| 59 | running_device *samples = | |
| 59 | running_device *samples = | |
| 60 | 60 | int bitsChanged; |
| 61 | 61 | int bitsGoneHigh; |
| 62 | 62 | int bitsGoneLow; |
| r8581 | r8582 | |
|---|---|---|
| 645 | 645 | int tchan, tgroup; |
| 646 | 646 | |
| 647 | 647 | /* find the CPU we are associated with */ |
| 648 | usb.cpu = | |
| 648 | usb.cpu = m | |
| 649 | 649 | assert(usb.cpu != NULL); |
| 650 | 650 | |
| 651 | 651 | /* allocate work RAM */ |
| r8581 | r8582 | |
|---|---|---|
| 290 | 290 | const tc0140syt_interface *intf = get_interface(device); |
| 291 | 291 | |
| 292 | 292 | /* use the given gfx set */ |
| 293 | tc0140syt->mastercpu = devtag_get_device(device->machine, intf->master); | |
| 294 | tc0140syt->slavecpu = devtag_get_device(device->machine, intf->slave); | |
| 293 | tc0140syt->mastercpu = device->machine->device(intf->master); | |
| 294 | tc0140syt->slavecpu = device->machine->device(intf->slave); | |
| 295 | 295 | |
| 296 | 296 | state_save_register_device_item(device, 0, tc0140syt->mainmode); |
| 297 | 297 | state_save_register_device_item(device, 0, tc0140syt->submode); |
| r8581 | r8582 | |
|---|---|---|
| 127 | 127 | WRITE8_HANDLER( carnival_audio_1_w ) |
| 128 | 128 | { |
| 129 | 129 | static int port1State = 0; |
| 130 | running_device *samples = | |
| 130 | running_device *samples = | |
| 131 | 131 | int bitsChanged; |
| 132 | 132 | int bitsGoneHigh; |
| 133 | 133 | int bitsGoneLow; |
| r8581 | r8582 | |
| 206 | 206 | |
| 207 | 207 | WRITE8_HANDLER( carnival_audio_2_w ) |
| 208 | 208 | { |
| 209 | running_device *samples = | |
| 209 | running_device *samples = | |
| 210 | 210 | int bitsChanged; |
| 211 | 211 | int bitsGoneHigh; |
| 212 | 212 | int bitsGoneLow; |
| r8581 | r8582 | |
|---|---|---|
| 518 | 518 | int i; |
| 519 | 519 | |
| 520 | 520 | /* determine which sound hardware is installed */ |
| 521 | has_ym2151 = (dev | |
| 521 | has_ym2151 = (dev | |
| 522 | 522 | |
| 523 | 523 | /* allocate separate streams for the DMA and non-DMA DACs */ |
| 524 | 524 | dma_stream = stream_create(device, 0, 1, OUTPUT_RATE, (void *)dmaspace, leland_80186_dma_update); |
| r8581 | r8582 | |
| 2049 | 2049 | if (!has_ym2151) |
| 2050 | 2050 | return pit8254_r(space, offset | 0x40, mem_mask); |
| 2051 | 2051 | else |
| 2052 | return ym2151_r( | |
| 2052 | return ym2151_r( | |
| 2053 | 2053 | |
| 2054 | 2054 | case 4: |
| 2055 | 2055 | if (is_redline) |
| r8581 | r8582 | |
| 2085 | 2085 | if (!has_ym2151) |
| 2086 | 2086 | pit8254_w(space, offset | 0x40, data, mem_mask); |
| 2087 | 2087 | else |
| 2088 | ym2151_w( | |
| 2088 | ym2151_w( | |
| 2089 | 2089 | break; |
| 2090 | 2090 | |
| 2091 | 2091 | case 4: |
| r8581 | r8582 | |
|---|---|---|
| 48 | 48 | |
| 49 | 49 | /* mask out unused bits */ |
| 50 | 50 | data &= max_banks_this_game; |
| 51 | es5505_voice_bank_w( | |
| 51 | es5505_voice_bank_w( | |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | static WRITE16_HANDLER( f3_volume_w ) |
| r8581 | r8582 | |
| 74 | 74 | /* Only cause IRQ if the mask is set to allow it */ |
| 75 | 75 | if (m68681_imr & 0x08) |
| 76 | 76 | { |
| 77 | cpu_set_input_line_vector( | |
| 77 | cpu_set_input_line_vector( | |
| 78 | 78 | cputag_set_input_line(timer.machine, "audiocpu", 6, ASSERT_LINE); |
| 79 | 79 | imr_status |= 0x08; |
| 80 | 80 | } |
| r8581 | r8582 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | WRITE8_HANDLER( blockade_env_on_w ) |
| 46 | 46 | { |
| 47 | running_device *samples = | |
| 47 | running_device *samples = | |
| 48 | 48 | if (BLOCKADE_LOG) mame_printf_debug("Boom Start\n"); |
| 49 | 49 | sample_start(samples, 0,0,0); |
| 50 | 50 | return; |
| r8581 | r8582 | |
|---|---|---|
| 334 | 334 | int romlength = memory_region_length(machine, "audiocpu"); |
| 335 | 335 | UINT8 *rom = memory_region(machine, "audiocpu"); |
| 336 | 336 | |
| 337 | sound_cpu = | |
| 337 | sound_cpu = m | |
| 338 | 338 | update_irq_lines(machine, VECTOR_INIT); |
| 339 | 339 | if (romlength > 0x10000) |
| 340 | 340 | memory_configure_bank(machine, "bank1", 0, (romlength - 0x10000) / 0x8000, rom + 0x10000, 0x8000); |
| r8581 | r8582 | |
|---|---|---|
| 91 | 91 | WRITE8_HANDLER( gridlee_sound_w ) |
| 92 | 92 | { |
| 93 | 93 | static UINT8 sound_data[24]; |
| 94 | running_device *samples = | |
| 94 | running_device *samples = | |
| 95 | 95 | |
| 96 | 96 | stream_update(gridlee_stream); |
| 97 | 97 |
| r8581 | r8582 | |
|---|---|---|
| 88 | 88 | memset(pROM, 0, 4); |
| 89 | 89 | |
| 90 | 90 | // install speedup cheat |
| 91 | for (cpu = | |
| 91 | for (cpu = m | |
| 92 | 92 | if (cpu->type() == M37702) |
| 93 | 93 | memory_install_readwrite16_handler(cpu_get_address_space(cpu, ADDRESS_SPACE_PROGRAM), 0x82, 0x83, 0, 0, speedup_r, speedup_w); |
| 94 | 94 | } |
| r8581 | r8582 | |
|---|---|---|
| 246 | 246 | { |
| 247 | 247 | 120.0f, 82.0f, 62.0f, 56.0f, 47.0f, 39.0f, 33.0f, 27.0f, 24.0f, 22.0f |
| 248 | 248 | }; |
| 249 | running_device *samples = | |
| 249 | running_device *samples = | |
| 250 | 250 | float freq_factor; |
| 251 | 251 | |
| 252 | 252 | UINT8 diff = data ^ sound_state[offset]; |
| r8581 | r8582 | |
| 478 | 478 | |
| 479 | 479 | static WRITE8_DEVICE_HANDLER( sega005_sound_a_w ) |
| 480 | 480 | { |
| 481 | running_device *samples = dev | |
| 481 | running_device *samples = dev | |
| 482 | 482 | UINT8 diff = data ^ sound_state[0]; |
| 483 | 483 | sound_state[0] = data; |
| 484 | 484 | |
| r8581 | r8582 | |
| 706 | 706 | |
| 707 | 707 | WRITE8_HANDLER( spaceod_sound_w ) |
| 708 | 708 | { |
| 709 | running_device *samples = | |
| 709 | running_device *samples = | |
| 710 | 710 | UINT8 diff = data ^ sound_state[offset]; |
| 711 | 711 | sound_state[offset] = data; |
| 712 | 712 | |
| r8581 | r8582 | |
| 891 | 891 | |
| 892 | 892 | static WRITE8_DEVICE_HANDLER( monsterb_sound_a_w ) |
| 893 | 893 | { |
| 894 | running_device *tms = dev | |
| 894 | running_device *tms = dev | |
| 895 | 895 | int enable_val; |
| 896 | 896 | |
| 897 | 897 | /* Lower four data lines get decoded into 13 control lines */ |
| r8581 | r8582 | |
| 912 | 912 | |
| 913 | 913 | static WRITE8_DEVICE_HANDLER( monsterb_sound_b_w ) |
| 914 | 914 | { |
| 915 | running_device *samples = dev | |
| 915 | running_device *samples = dev | |
| 916 | 916 | UINT8 diff = data ^ sound_state[1]; |
| 917 | 917 | sound_state[1] = data; |
| 918 | 918 |
| r8581 | r8582 | |
|---|---|---|
| 137 | 137 | |
| 138 | 138 | WRITE8_HANDLER( elim1_sh_w ) |
| 139 | 139 | { |
| 140 | running_device *samples = | |
| 140 | running_device *samples = | |
| 141 | 141 | data ^= 0xff; |
| 142 | 142 | |
| 143 | 143 | /* Play fireball sample */ |
| r8581 | r8582 | |
| 171 | 171 | |
| 172 | 172 | WRITE8_HANDLER( elim2_sh_w ) |
| 173 | 173 | { |
| 174 | running_device *samples = | |
| 174 | running_device *samples = | |
| 175 | 175 | data ^= 0xff; |
| 176 | 176 | |
| 177 | 177 | /* Play thrust sample */ |
| r8581 | r8582 | |
| 198 | 198 | |
| 199 | 199 | WRITE8_HANDLER( zektor1_sh_w ) |
| 200 | 200 | { |
| 201 | running_device *samples = | |
| 201 | running_device *samples = | |
| 202 | 202 | |
| 203 | 203 | data ^= 0xff; |
| 204 | 204 | |
| r8581 | r8582 | |
| 233 | 233 | |
| 234 | 234 | WRITE8_HANDLER( zektor2_sh_w ) |
| 235 | 235 | { |
| 236 | running_device *samples = | |
| 236 | running_device *samples = | |
| 237 | 237 | data ^= 0xff; |
| 238 | 238 | |
| 239 | 239 | /* Play thrust sample */ |
| r8581 | r8582 | |
| 261 | 261 | |
| 262 | 262 | WRITE8_HANDLER( spacfury1_sh_w ) |
| 263 | 263 | { |
| 264 | running_device *samples = | |
| 264 | running_device *samples = | |
| 265 | 265 | data ^= 0xff; |
| 266 | 266 | |
| 267 | 267 | /* craft growing */ |
| r8581 | r8582 | |
| 298 | 298 | |
| 299 | 299 | WRITE8_HANDLER( spacfury2_sh_w ) |
| 300 | 300 | { |
| 301 | running_device *samples = | |
| 301 | running_device *samples = | |
| 302 | 302 | data ^= 0xff; |
| 303 | 303 | |
| 304 | 304 | /* craft joining */ |
| r8581 | r8582 | |
|---|---|---|
| 79 | 79 | |
| 80 | 80 | WRITE8_DEVICE_HANDLER( scramble_sh_irqtrigger_w ) |
| 81 | 81 | { |
| 82 | running_device *target = dev | |
| 82 | running_device *target = dev | |
| 83 | 83 | |
| 84 | 84 | /* the complement of bit 3 is connected to the flip-flop's clock */ |
| 85 | 85 | ttl7474_clock_w(target, (~data & 0x08) >> 3); |
| r8581 | r8582 | |
| 90 | 90 | |
| 91 | 91 | WRITE8_DEVICE_HANDLER( mrkougar_sh_irqtrigger_w ) |
| 92 | 92 | { |
| 93 | running_device *target = dev | |
| 93 | running_device *target = dev | |
| 94 | 94 | |
| 95 | 95 | /* the complement of bit 3 is connected to the flip-flop's clock */ |
| 96 | 96 | ttl7474_clock_w(target, (~data & 0x08) >> 3); |
| r8581 | r8582 | |
| 98 | 98 | |
| 99 | 99 | static IRQ_CALLBACK(scramble_sh_irq_callback) |
| 100 | 100 | { |
| 101 | running_device *target = dev | |
| 101 | running_device *target = dev | |
| 102 | 102 | |
| 103 | 103 | /* interrupt acknowledge clears the flip-flop -- |
| 104 | 104 | we need to pulse the CLR line because MAME's core never clears this |
| r8581 | r8582 | |
| 144 | 144 | |
| 145 | 145 | WRITE8_HANDLER( scramble_filter_w ) |
| 146 | 146 | { |
| 147 | filter_w(devtag_get_device(space->machine, "filter.1.0"), (offset >> 0) & 3); | |
| 148 | filter_w(devtag_get_device(space->machine, "filter.1.1"), (offset >> 2) & 3); | |
| 149 | filter_w(devtag_get_device(space->machine, "filter.1.2"), (offset >> 4) & 3); | |
| 150 | filter_w(devtag_get_device(space->machine, "filter.0.0"), (offset >> 6) & 3); | |
| 151 | filter_w(devtag_get_device(space->machine, "filter.0.1"), (offset >> 8) & 3); | |
| 152 | filter_w(devtag_get_device(space->machine, "filter.0.2"), (offset >> 10) & 3); | |
| 147 | filter_w(space->machine->device("filter.1.0"), (offset >> 0) & 3); | |
| 148 | filter_w(space->machine->device("filter.1.1"), (offset >> 2) & 3); | |
| 149 | filter_w(space->machine->device("filter.1.2"), (offset >> 4) & 3); | |
| 150 | filter_w(space->machine->device("filter.0.0"), (offset >> 6) & 3); | |
| 151 | filter_w(space->machine->device("filter.0.1"), (offset >> 8) & 3); | |
| 152 | filter_w(space->machine->device("filter.0.2"), (offset >> 10) & 3); | |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | WRITE8_HANDLER( frogger_filter_w ) |
| 156 | 156 | { |
| 157 | filter_w(devtag_get_device(space->machine, "filter.0.0"), (offset >> 6) & 3); | |
| 158 | filter_w(devtag_get_device(space->machine, "filter.0.1"), (offset >> 8) & 3); | |
| 159 | filter_w(devtag_get_device(space->machine, "filter.0.2"), (offset >> 10) & 3); | |
| 157 | filter_w(space->machine->device("filter.0.0"), (offset >> 6) & 3); | |
| 158 | filter_w(space->machine->device("filter.0.1"), (offset >> 8) & 3); | |
| 159 | filter_w(space->machine->device("filter.0.2"), (offset >> 10) & 3); | |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | void scramble_sh_init(running_machine *machine) |
| 163 | 163 | { |
| 164 | cpu_set_irq_callback( | |
| 164 | cpu_set_irq_callback(m | |
| 165 | 165 | |
| 166 | 166 | /* PR is always 0, D is always 1 */ |
| 167 | ttl7474_d_w( | |
| 167 | ttl7474_d_w(m | |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | |
| r8581 | r8582 | |
| 352 | 352 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 353 | 353 | MDRV_SOUND_ADD("ay1", AY8910, 14318000/8) |
| 354 | 354 | MDRV_SOUND_CONFIG(ad2083_ay8910_interface_1) |
| 355 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", | |
| 355 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0 | |
| 356 | 356 | |
| 357 | 357 | MDRV_SOUND_ADD("ay2", AY8910, 14318000/8) |
| 358 | 358 | MDRV_SOUND_CONFIG(ad2083_ay8910_interface_2) |
| 359 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", | |
| 359 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) | |
| 360 | 360 | |
| 361 | 361 | MDRV_SOUND_ADD("tms", TMS5110A, AD2083_TMS5110_CLOCK) |
| 362 | 362 | MDRV_SOUND_CONFIG(ad2083_tms5110_interface) |
| r8581 | r8582 | |
|---|---|---|
| 1994 | 1994 | /* calculate how long until we generate an interrupt */ |
| 1995 | 1995 | |
| 1996 | 1996 | /* frequency the time per each bit sent */ |
| 1997 | attotime sample_period = attotime_mul(ATTOTIME_IN_HZ(cpu | |
| 1997 | attotime sample_period = attotime_mul(ATTOTIME_IN_HZ(dcs.cpu->unscaled_clock( | |
| 1998 | 1998 | |
| 1999 | 1999 | /* now put it down to samples, so we know what the channel frequency has to be */ |
| 2000 | 2000 | sample_period = attotime_mul(sample_period, 16 * dcs.channels); |
| r8581 | r8582 | |
|---|---|---|
| 55 | 55 | |
| 56 | 56 | WRITE8_HANDLER( gottlieb_sh_w ) |
| 57 | 57 | { |
| 58 | running_device *riot = | |
| 58 | running_device *riot = | |
| 59 | 59 | |
| 60 | 60 | /* identify rev1 boards by the presence of a 6532 RIOT device */ |
| 61 | 61 | if (riot != NULL) |
| r8581 | r8582 | |
| 74 | 74 | |
| 75 | 75 | static void gottlieb1_sh_w(running_device *riot, UINT8 data) |
| 76 | 76 | { |
| 77 | running_device *samples = | |
| 77 | running_device *samples = | |
| 78 | 78 | int pa7 = (data & 0x0f) != 0xf; |
| 79 | 79 | int pa0_5 = ~data & 0x3f; |
| 80 | 80 | |
| r8581 | r8582 | |
| 196 | 196 | #ifdef UNUSED_FUNCTION |
| 197 | 197 | void gottlieb_knocker(running_machine *machine) |
| 198 | 198 | { |
| 199 | running_device *samples = | |
| 199 | running_device *samples = | |
| 200 | 200 | if (!strcmp(machine->gamedrv->name,"reactor")) /* reactor */ |
| 201 | 201 | { |
| 202 | 202 | } |
| r8581 | r8582 | |
| 244 | 244 | { |
| 245 | 245 | if (votrax_queuepos > 1) |
| 246 | 246 | { |
| 247 | running_device *samples = | |
| 247 | running_device *samples = | |
| 248 | 248 | int last = -1; |
| 249 | 249 | int i; |
| 250 | 250 | char phonemes[200]; |
| r8581 | r8582 | |
| 469 | 469 | |
| 470 | 470 | static CUSTOM_INPUT( speech_drq_custom_r ) |
| 471 | 471 | { |
| 472 | return sp0250_drq_r( | |
| 472 | return sp0250_drq_r( | |
| 473 | 473 | } |
| 474 | 474 | |
| 475 | 475 | |
| r8581 | r8582 | |
| 497 | 497 | { |
| 498 | 498 | /* bit 3 selects which of the two 8913 to enable */ |
| 499 | 499 | /* bit 4 goes to the 8913 BC1 pin */ |
| 500 | running_device *ay = | |
| 500 | running_device *ay = | |
| 501 | 501 | ay8910_data_address_w(ay, data >> 4, *psg_latch); |
| 502 | 502 | } |
| 503 | 503 | |
| r8581 | r8582 | |
| 506 | 506 | /* bit 6 = speech chip DATA PRESENT pin; high then low to make the chip read data */ |
| 507 | 507 | if ((previous & 0x40) == 0 && (data & 0x40) != 0) |
| 508 | 508 | { |
| 509 | running_device *sp = | |
| 509 | running_device *sp = | |
| 510 | 510 | sp0250_w(sp, 0, *sp0250_latch); |
| 511 | 511 | } |
| 512 | 512 |
| r8581 | r8582 | |
|---|---|---|
| 147 | 147 | |
| 148 | 148 | if ((new_speech_strobe_state != state->speech_strobe_state) && new_speech_strobe_state) |
| 149 | 149 | { |
| 150 | running_device *tms = | |
| 150 | running_device *tms = | |
| 151 | 151 | tms5220_data_w(tms, 0, *state->speech_data); |
| 152 | 152 | } |
| 153 | 153 | state->speech_strobe_state = new_speech_strobe_state; |
| r8581 | r8582 | |
| 156 | 156 | |
| 157 | 157 | static READ8_HANDLER( speech_ready_r ) |
| 158 | 158 | { |
| 159 | return (tms5220_readyq_r( | |
| 159 | return (tms5220_readyq_r( | |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 |
| r8581 | r8582 | |
|---|---|---|
| 114 | 114 | |
| 115 | 115 | static WRITE_LINE_DEVICE_HANDLER( update_irq_state ) |
| 116 | 116 | { |
| 117 | running_device *pia = dev | |
| 117 | running_device *pia = dev | |
| 118 | 118 | cputag_set_input_line(device->machine, "audiocpu", M6502_IRQ_LINE, (pia6821_get_irq_b(pia) | riot_irq_state) ? ASSERT_LINE : CLEAR_LINE); |
| 119 | 119 | } |
| 120 | 120 | |
| r8581 | r8582 | |
| 462 | 462 | |
| 463 | 463 | if (has_tms5220) |
| 464 | 464 | { |
| 465 | running_device *tms = dev | |
| 465 | running_device *tms = dev | |
| 466 | 466 | logerror("(%f)%s:TMS5220 data write = %02X\n", attotime_to_double(timer_get_time(device->machine)), cpuexec_describe_context(device->machine), riot6532_porta_out_get(riot)); |
| 467 | 467 | tms5220_data_w(tms, 0, data); |
| 468 | 468 | } |
| r8581 | r8582 | |
| 472 | 472 | { |
| 473 | 473 | if (has_tms5220) |
| 474 | 474 | { |
| 475 | running_device *tms = dev | |
| 475 | running_device *tms = dev | |
| 476 | 476 | logerror("(%f)%s:TMS5220 status read = %02X\n", attotime_to_double(timer_get_time(device->machine)), cpuexec_describe_context(device->machine), tms5220_status_r(tms, 0)); |
| 477 | 477 | return tms5220_status_r(tms, 0); |
| 478 | 478 | } |
| r8581 | r8582 | |
| 484 | 484 | { |
| 485 | 485 | if (has_tms5220) |
| 486 | 486 | { |
| 487 | running_device *tms = dev | |
| 487 | running_device *tms = dev | |
| 488 | 488 | |
| 489 | 489 | tms5220_rsq_w(tms, data & 0x01); |
| 490 | 490 | tms5220_wsq_w(tms, (data >> 1) & 0x01); |
| r8581 | r8582 | |
| 497 | 497 | UINT8 newdata = riot6532_portb_in_get(device); |
| 498 | 498 | if (has_tms5220) |
| 499 | 499 | { |
| 500 | running_device *tms = dev | |
| 500 | running_device *tms = dev | |
| 501 | 501 | newdata &= ~0x0c; |
| 502 | 502 | if (tms5220_readyq_r(tms)) newdata |= 0x04; |
| 503 | 503 | if (tms5220_intq_r(tms)) newdata |= 0x08; |
| r8581 | r8582 | |
| 734 | 734 | DEVCB_NULL, /* line CB2 in */ |
| 735 | 735 | DEVCB_DEVICE_HANDLER("pia1", pia6821_portb_w), /* port A out */ |
| 736 | 736 | DEVCB_DEVICE_HANDLER("pia1", pia6821_porta_w), /* port B out */ |
| 737 | DEVCB_DEVICE_HANDLER("pia1", pia6821_cb1_w), /* line CA2 out */ | |
| 738 | DEVCB_DEVICE_HANDLER("pia1", pia6821_ca1_w), /* port CB2 out */ | |
| 737 | DEVCB_DEVICE_LINE("pia1", pia6821_cb1_w), /* line CA2 out */ | |
| 738 | DEVCB_DEVICE_LINE("pia1", pia6821_ca1_w), /* port CB2 out */ | |
| 739 | 739 | DEVCB_NULL, /* IRQA */ |
| 740 | 740 | DEVCB_NULL /* IRQB */ |
| 741 | 741 | }; |
| r8581 | r8582 | |
| 751 | 751 | DEVCB_NULL, /* line CB2 in */ |
| 752 | 752 | DEVCB_DEVICE_HANDLER("pia0", pia6821_portb_w), /* port A out */ |
| 753 | 753 | DEVCB_DEVICE_HANDLER("pia0", pia6821_porta_w), /* port B out */ |
| 754 | DEVCB_DEVICE_HANDLER("pia0", pia6821_cb1_w), /* line CA2 out */ | |
| 755 | DEVCB_DEVICE_HANDLER("pia0", pia6821_ca1_w), /* port CB2 out */ | |
| 754 | DEVCB_DEVICE_LINE("pia0", pia6821_cb1_w), /* line CA2 out */ | |
| 755 | DEVCB_DEVICE_LINE("pia0", pia6821_ca1_w), /* port CB2 out */ | |
| 756 | 756 | DEVCB_NULL, /* IRQA */ |
| 757 | 757 | DEVCB_LINE(update_irq_state) /* IRQB */ |
| 758 | 758 | }; |
| r8581 | r8582 | |
| 764 | 764 | |
| 765 | 765 | DEVICE_START_CALL(common_sh_start); |
| 766 | 766 | |
| 767 | riot = | |
| 767 | riot = m | |
| 768 | 768 | |
| 769 | 769 | has_sh8253 = TRUE; |
| 770 | 770 | has_tms5220 = FALSE; |
| 771 | 771 | |
| 772 | 772 | /* determine which sound hardware is installed */ |
| 773 | has_mc3417 = (dev | |
| 773 | has_mc3417 = (dev | |
| 774 | 774 | |
| 775 | 775 | /* 8253 */ |
| 776 | 776 | freq_to_step = (double)(1 << 24) / (double)SH8253_CLOCK; |
| r8581 | r8582 | |
| 860 | 860 | static WRITE8_HANDLER( mtrap_voiceio_w ) |
| 861 | 861 | { |
| 862 | 862 | if (!(offset & 0x10)) |
| 863 | hc55516_digit_w( | |
| 863 | hc55516_digit_w( | |
| 864 | 864 | |
| 865 | 865 | if (!(offset & 0x20)) |
| 866 | 866 | riot6532_portb_in_set(riot, data & 1, 0xff); |
| r8581 | r8582 | |
| 879 | 879 | } |
| 880 | 880 | |
| 881 | 881 | if (!(offset & 0x40)) |
| 882 | return hc55516_clock_state_r( | |
| 882 | return hc55516_clock_state_r( | |
| 883 | 883 | |
| 884 | 884 | return 0; |
| 885 | 885 | } |
| r8581 | r8582 | |
| 925 | 925 | |
| 926 | 926 | READ8_HANDLER( victory_sound_response_r ) |
| 927 | 927 | { |
| 928 | running_device *pia1 = | |
| 928 | running_device *pia1 = | |
| 929 | 929 | UINT8 ret = pia6821_get_output_b(pia1); |
| 930 | 930 | |
| 931 | 931 | if (VICTORY_LOG_SOUND) logerror("%04X:!!!! Sound response read = %02X\n", cpu_get_previouspc(space->cpu), ret); |
| 932 | 932 | |
| 933 | pia6821_cb1_w(pia1, 0 | |
| 933 | pia6821_cb1_w(pia1, 0 | |
| 934 | 934 | |
| 935 | 935 | return ret; |
| 936 | 936 | } |
| r8581 | r8582 | |
| 938 | 938 | |
| 939 | 939 | READ8_HANDLER( victory_sound_status_r ) |
| 940 | 940 | { |
| 941 | running_device *pia1 = devtag_get_device(space->machine, "pia1"); | |
| 942 | UINT8 ret = (pia6821_ca1_r(pia1, 0) << 7) | (pia6821_cb1_r(pia1, 0) << 6); | |
| 941 | running_device *pia1 = space->machine->device("pia1"); | |
| 942 | UINT8 ret = (pia6821_ca1_r(pia1) << 7) | (pia6821_cb1_r(pia1) << 6); | |
| 943 | 943 | |
| 944 | 944 | if (VICTORY_LOG_SOUND) logerror("%04X:!!!! Sound status read = %02X\n", cpu_get_previouspc(space->cpu), ret); |
| 945 | 945 | |
| r8581 | r8582 | |
| 949 | 949 | |
| 950 | 950 | static TIMER_CALLBACK( delayed_command_w ) |
| 951 | 951 | { |
| 952 | running_device *pia1 = | |
| 952 | running_device *pia1 = m | |
| 953 | 953 | pia6821_set_input_a(pia1, param, 0); |
| 954 | pia6821_ca1_w(pia1, 0 | |
| 954 | pia6821_ca1_w(pia1, 0 | |
| 955 | 955 | } |
| 956 | 956 | |
| 957 | 957 | WRITE8_HANDLER( victory_sound_command_w ) |
| r8581 | r8582 | |
| 966 | 966 | { |
| 967 | 967 | if (VICTORY_LOG_SOUND) logerror("%s:!!!! Sound IRQ clear = %02X\n", cpuexec_describe_context(device->machine), data); |
| 968 | 968 | |
| 969 | if (!data) pia6821_ca1_w(device, | |
| 969 | if (!data) pia6821_ca1_w(device, | |
| 970 | 970 | } |
| 971 | 971 | |
| 972 | 972 | |
| r8581 | r8582 | |
| 975 | 975 | if (VICTORY_LOG_SOUND) logerror("%s:!!!! Sound Main ACK W = %02X\n", cpuexec_describe_context(device->machine), data); |
| 976 | 976 | |
| 977 | 977 | if (victory_sound_response_ack_clk && !data) |
| 978 | pia6821_cb1_w(device, | |
| 978 | pia6821_cb1_w(device, | |
| 979 | 979 | |
| 980 | 980 | victory_sound_response_ack_clk = data; |
| 981 | 981 | } |
| r8581 | r8582 | |
| 1010 | 1010 | |
| 1011 | 1011 | static DEVICE_RESET( victory_sound ) |
| 1012 | 1012 | { |
| 1013 | running_device *pia1 = dev | |
| 1013 | running_device *pia1 = dev | |
| 1014 | 1014 | |
| 1015 | 1015 | DEVICE_RESET_CALL(common_sh_reset); |
| 1016 | 1016 | pia1->reset(); |
| r8581 | r8582 | |
| 1019 | 1019 | |
| 1020 | 1020 | /* the flip-flop @ F4 is reset */ |
| 1021 | 1021 | victory_sound_response_ack_clk = 0; |
| 1022 | pia6821_cb1_w(pia1, | |
| 1022 | pia6821_cb1_w(pia1, | |
| 1023 | 1023 | |
| 1024 | 1024 | /* these two lines shouldn't be needed, but it avoids the log entry |
| 1025 | 1025 | as the sound CPU checks port A before the main CPU ever writes to it */ |
| 1026 | 1026 | pia6821_set_input_a(pia1, 0, 0); |
| 1027 | pia6821_ca1_w(pia1, | |
| 1027 | pia6821_ca1_w(pia1, | |
| 1028 | 1028 | } |
| 1029 | 1029 | |
| 1030 | 1030 |
| r8581 | r8582 | |
|---|---|---|
| 61 | 61 | |
| 62 | 62 | WRITE8_HANDLER( targ_audio_1_w ) |
| 63 | 63 | { |
| 64 | running_device *samples = | |
| 64 | running_device *samples = | |
| 65 | 65 | |
| 66 | 66 | /* CPU music */ |
| 67 | 67 | if ((data & 0x01) != (port_1_last & 0x01)) |
| 68 | dac_data_w( | |
| 68 | dac_data_w( | |
| 69 | 69 | |
| 70 | 70 | /* shot */ |
| 71 | 71 | if (FALLING_EDGE(0x02) && !sample_playing(samples, 0)) sample_start(samples, 0,1,0); |
| r8581 | r8582 | |
| 114 | 114 | { |
| 115 | 115 | if ((data & 0x01) && !(port_2_last & 0x01)) |
| 116 | 116 | { |
| 117 | running_device *samples = | |
| 117 | running_device *samples = | |
| 118 | 118 | UINT8 *prom = memory_region(space->machine, "targ"); |
| 119 | 119 | |
| 120 | 120 | tone_pointer = (tone_pointer + 1) & 0x0f; |
| r8581 | r8582 | |
| 128 | 128 | |
| 129 | 129 | WRITE8_HANDLER( spectar_audio_2_w ) |
| 130 | 130 | { |
| 131 | running_device *samples = | |
| 131 | running_device *samples = | |
| 132 | 132 | adjust_sample(samples, data); |
| 133 | 133 | } |
| 134 | 134 | |
| r8581 | r8582 | |
| 147 | 147 | |
| 148 | 148 | static void common_audio_start(running_machine *machine, int freq) |
| 149 | 149 | { |
| 150 | running_device *samples = | |
| 150 | running_device *samples = m | |
| 151 | 151 | max_freq = freq; |
| 152 | 152 | |
| 153 | 153 | tone_freq = 0; |
| r8581 | r8582 | |
|---|---|---|
| 108 | 108 | { |
| 109 | 109 | output[0] ^= 0x7f; |
| 110 | 110 | channel_active[0] = 1; |
| 111 | dac_data_w(dev | |
| 111 | dac_data_w(dev | |
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
| r8581 | r8582 | |
| 118 | 118 | { |
| 119 | 119 | output[1] ^= 0x7f; |
| 120 | 120 | channel_active[1] = 1; |
| 121 | dac_data_w(dev | |
| 121 | dac_data_w(dev | |
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | |
| r8581 | r8582 | |
| 137 | 137 | sound_flags = 0; |
| 138 | 138 | output[0] = 0; output[1] = 0; |
| 139 | 139 | |
| 140 | ctc = | |
| 140 | ctc = m | |
| 141 | 141 | } |
| r8581 | r8582 | |
|---|---|---|
| 41 | 41 | /* qix Sound System Analog emulation */ |
| 42 | 42 | /************************************************************************/ |
| 43 | 43 | /* |
| 44 | * This hardware is capable of independ | |
| 44 | * This hardware is capable of independent L/R volume control, | |
| 45 | 45 | * but only sdungeon uses it for a stereo effect. |
| 46 | 46 | * Other games just use it for fixed L/R volume control. |
| 47 | 47 | * |
| r8581 | r8582 | |
| 177 | 177 | DEVCB_NULL, /* line CB2 in */ |
| 178 | 178 | DEVCB_DEVICE_HANDLER("sndpia1", sync_sndpia1_porta_w), /* port A out */ |
| 179 | 179 | DEVCB_DEVICE_HANDLER("discrete", qix_vol_w), /* port B out */ |
| 180 | DEVCB_DEVICE_ | |
| 180 | DEVCB_DEVICE_ | |
| 181 | 181 | DEVCB_HANDLER(qix_flip_screen_w), /* port CB2 out */ |
| 182 | 182 | DEVCB_LINE(qix_pia_dint), /* IRQA */ |
| 183 | 183 | DEVCB_LINE(qix_pia_dint) /* IRQB */ |
| r8581 | r8582 | |
| 193 | 193 | DEVCB_NULL, /* line CB2 in */ |
| 194 | 194 | DEVCB_DEVICE_HANDLER("sndpia0", pia6821_porta_w), /* port A out */ |
| 195 | 195 | DEVCB_DEVICE_HANDLER("discrete", qix_dac_w), /* port B out */ |
| 196 | DEVCB_DEVICE_ | |
| 196 | DEVCB_DEVICE_ | |
| 197 | 197 | DEVCB_NULL, /* line CB2 out */ |
| 198 | 198 | DEVCB_LINE(qix_pia_sint), /* IRQA */ |
| 199 | 199 | DEVCB_LINE(qix_pia_sint) /* IRQB */ |
| r8581 | r8582 | |
|---|---|---|
| 66 | 66 | WRITE8_HANDLER( invinco_audio_w ) |
| 67 | 67 | { |
| 68 | 68 | static int port2State = 0; |
| 69 | running_device *samples = | |
| 69 | running_device *samples = | |
| 70 | 70 | int bitsChanged; |
| 71 | 71 | //int bitsGoneHigh; |
| 72 | 72 | int bitsGoneLow; |
| r8581 | r8582 | |
|---|---|---|
| 88 | 88 | |
| 89 | 89 | WRITE8_HANDLER( pulsar_audio_1_w ) |
| 90 | 90 | { |
| 91 | running_device *samples = | |
| 91 | running_device *samples = | |
| 92 | 92 | int bitsChanged; |
| 93 | 93 | //int bitsGoneHigh; |
| 94 | 94 | int bitsGoneLow; |
| r8581 | r8582 | |
| 139 | 139 | |
| 140 | 140 | WRITE8_HANDLER( pulsar_audio_2_w ) |
| 141 | 141 | { |
| 142 | running_device *samples = | |
| 142 | running_device *samples = | |
| 143 | 143 | static int port2State = 0; |
| 144 | 144 | int bitsChanged; |
| 145 | 145 | int bitsGoneHigh; |
| r8581 | r8582 | |
|---|---|---|
| 175 | 175 | WRITE8_DEVICE_HANDLER( spiders_audio_command_w ) |
| 176 | 176 | { |
| 177 | 177 | pia6821_set_input_a(device, data & 0xf8, 0); |
| 178 | pia6821_ca1_w(device, | |
| 178 | pia6821_ca1_w(device, | |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 |
| r8581 | r8582 | |
|---|---|---|
| 108 | 108 | |
| 109 | 109 | READ8_HANDLER( wow_speech_r ) |
| 110 | 110 | { |
| 111 | running_device *samples = | |
| 111 | running_device *samples = | |
| 112 | 112 | int Phoneme/*, Intonation*/; |
| 113 | 113 | int i = 0; |
| 114 | 114 | |
| r8581 | r8582 | |
| 177 | 177 | |
| 178 | 178 | CUSTOM_INPUT( wow_speech_status_r ) |
| 179 | 179 | { |
| 180 | running_device *samples = | |
| 180 | running_device *samples = | |
| 181 | 181 | return !sample_playing(samples, 0); |
| 182 | 182 | } |
| r8581 | r8582 | |
|---|---|---|
| 31 | 31 | timeplt_state *state = (timeplt_state *)machine->driver_data; |
| 32 | 32 | |
| 33 | 33 | state->soundcpu = machine->device<cpu_device>("tpsound"); |
| 34 | state->filter_0_0 = devtag_get_device(machine, "filter.0.0"); | |
| 35 | state->filter_0_1 = devtag_get_device(machine, "filter.0.1"); | |
| 36 | state->filter_0_2 = devtag_get_device(machine, "filter.0.2"); | |
| 37 | state->filter_1_0 = devtag_get_device(machine, "filter.1.0"); | |
| 38 | state->filter_1_1 = devtag_get_device(machine, "filter.1.1"); | |
| 39 | state->filter_1_2 = devtag_get_device(machine, "filter.1.2"); | |
| 34 | state->filter_0_0 = machine->device("filter.0.0"); | |
| 35 | state->filter_0_1 = machine->device("filter.0.1"); | |
| 36 | state->filter_0_2 = machine->device("filter.0.2"); | |
| 37 | state->filter_1_0 = machine->device("filter.1.0"); | |
| 38 | state->filter_1_1 = machine->device("filter.1.1"); | |
| 39 | state->filter_1_2 = machine->device("filter.1.2"); | |
| 40 | 40 | |
| 41 | 41 | state->last_irq_state = 0; |
| 42 | 42 | state_save_register_global(machine, state->last_irq_state); |
| r8581 | r8582 | |
|---|---|---|
| 165 | 165 | |
| 166 | 166 | static void spacewar_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 167 | 167 | { |
| 168 | running_device *samples = | |
| 168 | running_device *samples = m | |
| 169 | 169 | |
| 170 | 170 | /* Explosion - rising edge */ |
| 171 | 171 | if (SOUNDVAL_RISING_EDGE(0x01)) |
| r8581 | r8582 | |
| 245 | 245 | |
| 246 | 246 | static void barrier_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 247 | 247 | { |
| 248 | running_device *samples = | |
| 248 | running_device *samples = m | |
| 249 | 249 | |
| 250 | 250 | /* Player die - rising edge */ |
| 251 | 251 | if (SOUNDVAL_RISING_EDGE(0x01)) |
| r8581 | r8582 | |
| 299 | 299 | |
| 300 | 300 | static void speedfrk_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 301 | 301 | { |
| 302 | running_device *samples = | |
| 302 | running_device *samples = m | |
| 303 | 303 | |
| 304 | 304 | /* on the falling edge of bit 0x08, clock the inverse of bit 0x04 into the top of the shiftreg */ |
| 305 | 305 | if (SOUNDVAL_FALLING_EDGE(0x08)) |
| r8581 | r8582 | |
| 365 | 365 | |
| 366 | 366 | static void starhawk_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 367 | 367 | { |
| 368 | running_device *samples = | |
| 368 | running_device *samples = m | |
| 369 | 369 | |
| 370 | 370 | /* explosion - falling edge */ |
| 371 | 371 | if (SOUNDVAL_FALLING_EDGE(0x01)) |
| r8581 | r8582 | |
| 442 | 442 | |
| 443 | 443 | static void sundance_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 444 | 444 | { |
| 445 | running_device *samples = | |
| 445 | running_device *samples = m | |
| 446 | 446 | |
| 447 | 447 | /* bong - falling edge */ |
| 448 | 448 | if (SOUNDVAL_FALLING_EDGE(0x01)) |
| r8581 | r8582 | |
| 516 | 516 | /* the falling edge of bit 0x10 clocks bit 0x08 into the mux selected by bits 0x07 */ |
| 517 | 517 | if (SOUNDVAL_FALLING_EDGE(0x10)) |
| 518 | 518 | { |
| 519 | running_device *samples = | |
| 519 | running_device *samples = m | |
| 520 | 520 | |
| 521 | 521 | /* update the shift register (actually just a simple mux) */ |
| 522 | 522 | current_shift = (current_shift & ~(1 << (sound_val & 7))) | (((sound_val >> 3) & 1) << (sound_val & 7)); |
| r8581 | r8582 | |
| 602 | 602 | |
| 603 | 603 | static void warrior_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 604 | 604 | { |
| 605 | running_device *samples = | |
| 605 | running_device *samples = m | |
| 606 | 606 | |
| 607 | 607 | /* normal level - 0=on, 1=off */ |
| 608 | 608 | if (SOUNDVAL_FALLING_EDGE(0x01)) |
| r8581 | r8582 | |
| 674 | 674 | |
| 675 | 675 | static void armora_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 676 | 676 | { |
| 677 | running_device *samples = | |
| 677 | running_device *samples = m | |
| 678 | 678 | |
| 679 | 679 | /* on the rising edge of bit 0x10, clock bit 0x80 into the shift register */ |
| 680 | 680 | if (SOUNDVAL_RISING_EDGE(0x10)) |
| r8581 | r8582 | |
| 776 | 776 | |
| 777 | 777 | static void ripoff_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 778 | 778 | { |
| 779 | running_device *samples = | |
| 779 | running_device *samples = m | |
| 780 | 780 | |
| 781 | 781 | /* on the rising edge of bit 0x02, clock bit 0x01 into the shift register */ |
| 782 | 782 | if (SOUNDVAL_RISING_EDGE(0x02)) |
| r8581 | r8582 | |
| 864 | 864 | |
| 865 | 865 | static void starcas_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 866 | 866 | { |
| 867 | running_device *samples = | |
| 867 | running_device *samples = m | |
| 868 | 868 | UINT32 target_pitch; |
| 869 | 869 | |
| 870 | 870 | /* on the rising edge of bit 0x10, clock bit 0x80 into the shift register */ |
| r8581 | r8582 | |
| 978 | 978 | |
| 979 | 979 | static void solarq_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 980 | 980 | { |
| 981 | running_device *samples = | |
| 981 | running_device *samples = m | |
| 982 | 982 | static float target_volume, current_volume; |
| 983 | 983 | |
| 984 | 984 | /* on the rising edge of bit 0x10, clock bit 0x80 into the shift register */ |
| r8581 | r8582 | |
| 1119 | 1119 | |
| 1120 | 1120 | static void boxingb_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 1121 | 1121 | { |
| 1122 | running_device *samples = | |
| 1122 | running_device *samples = m | |
| 1123 | 1123 | |
| 1124 | 1124 | /* on the rising edge of bit 0x10, clock bit 0x80 into the shift register */ |
| 1125 | 1125 | if (SOUNDVAL_RISING_EDGE(0x10)) |
| r8581 | r8582 | |
| 1251 | 1251 | |
| 1252 | 1252 | static void wotw_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 1253 | 1253 | { |
| 1254 | running_device *samples = | |
| 1254 | running_device *samples = m | |
| 1255 | 1255 | UINT32 target_pitch; |
| 1256 | 1256 | |
| 1257 | 1257 | /* on the rising edge of bit 0x10, clock bit 0x80 into the shift register */ |
| r8581 | r8582 | |
| 1365 | 1365 | |
| 1366 | 1366 | static void wotwc_sound_w(running_machine *machine, UINT8 sound_val, UINT8 bits_changed) |
| 1367 | 1367 | { |
| 1368 | running_device *samples = | |
| 1368 | running_device *samples = m | |
| 1369 | 1369 | UINT32 target_pitch; |
| 1370 | 1370 | |
| 1371 | 1371 | /* on the rising edge of bit 0x10, clock bit 0x80 into the shift register */ |
| r8581 | r8582 | |
| 1554 | 1554 | last_portb_write = 0xff; |
| 1555 | 1555 | |
| 1556 | 1556 | /* turn off channel A on AY8910 #0 because it is used as a low-pass filter */ |
| 1557 | ay8910_set_volume( | |
| 1557 | ay8910_set_volume(m | |
| 1558 | 1558 | } |
| 1559 | 1559 | |
| 1560 | 1560 | |
| r8581 | r8582 | |
| 1623 | 1623 | |
| 1624 | 1624 | static WRITE8_HANDLER( qb3_sound_w ) |
| 1625 | 1625 | { |
| 1626 | UINT16 rega = cpu_get_reg( | |
| 1626 | UINT16 rega = cpu_get_reg( | |
| 1627 | 1627 | demon_sound_w(space->machine, 0x00 | (~rega & 0x0f), 0x10); |
| 1628 | 1628 | } |
| 1629 | 1629 |
| r8581 | r8582 | |
|---|---|---|
| 114 | 114 | WRITE8_DEVICE_HANDLER( zaxxon_sound_a_w ) |
| 115 | 115 | { |
| 116 | 116 | zaxxon_state *state = (zaxxon_state *)device->machine->driver_data; |
| 117 | running_device *samples = dev | |
| 117 | running_device *samples = dev | |
| 118 | 118 | UINT8 diff = data ^ state->sound_state[0]; |
| 119 | 119 | state->sound_state[0] = data; |
| 120 | 120 | |
| r8581 | r8582 | |
| 150 | 150 | WRITE8_DEVICE_HANDLER( zaxxon_sound_b_w ) |
| 151 | 151 | { |
| 152 | 152 | zaxxon_state *state = (zaxxon_state *)device->machine->driver_data; |
| 153 | running_device *samples = dev | |
| 153 | running_device *samples = dev | |
| 154 | 154 | UINT8 diff = data ^ state->sound_state[1]; |
| 155 | 155 | state->sound_state[1] = data; |
| 156 | 156 | |
| r8581 | r8582 | |
| 168 | 168 | WRITE8_DEVICE_HANDLER( zaxxon_sound_c_w ) |
| 169 | 169 | { |
| 170 | 170 | zaxxon_state *state = (zaxxon_state *)device->machine->driver_data; |
| 171 | running_device *samples = dev | |
| 171 | running_device *samples = dev | |
| 172 | 172 | UINT8 diff = data ^ state->sound_state[2]; |
| 173 | 173 | state->sound_state[2] = data; |
| 174 | 174 | |
| r8581 | r8582 | |
| 226 | 226 | WRITE8_DEVICE_HANDLER( congo_sound_b_w ) |
| 227 | 227 | { |
| 228 | 228 | zaxxon_state *state = (zaxxon_state *)device->machine->driver_data; |
| 229 | running_device *samples = dev | |
| 229 | running_device *samples = dev | |
| 230 | 230 | UINT8 diff = data ^ state->sound_state[1]; |
| 231 | 231 | state->sound_state[1] = data; |
| 232 | 232 | |
| r8581 | r8582 | |
| 240 | 240 | WRITE8_DEVICE_HANDLER( congo_sound_c_w ) |
| 241 | 241 | { |
| 242 | 242 | zaxxon_state *state = (zaxxon_state *)device->machine->driver_data; |
| 243 | running_device *samples = dev | |
| 243 | running_device *samples = dev | |
| 244 | 244 | UINT8 diff = data ^ state->sound_state[2]; |
| 245 | 245 | state->sound_state[2] = data; |
| 246 | 246 |
| r8581 | r8582 | |
|---|---|---|
| 174 | 174 | |
| 175 | 175 | /* find the attached discrete sound device */ |
| 176 | 176 | assert(config->discrete != NULL); |
| 177 | state->discrete = dev | |
| 177 | state->discrete = dev | |
| 178 | 178 | assert(state->discrete != NULL); |
| 179 | 179 | state->basenode = config->firstnode; |
| 180 | 180 | } |
| r8581 | r8582 | |
|---|---|---|
| 652 | 652 | |
| 653 | 653 | WRITE8_HANDLER( sasuke_sound_w ) |
| 654 | 654 | { |
| 655 | running_device *samples = | |
| 655 | running_device *samples = | |
| 656 | 656 | switch (offset) |
| 657 | 657 | { |
| 658 | 658 | case 0: |
| r8581 | r8582 | |
| 718 | 718 | |
| 719 | 719 | WRITE8_HANDLER( satansat_sound_w ) |
| 720 | 720 | { |
| 721 | running_device *samples = | |
| 721 | running_device *samples = | |
| 722 | 722 | switch (offset) |
| 723 | 723 | { |
| 724 | 724 | case 0: |
| r8581 | r8582 | |
| 781 | 781 | |
| 782 | 782 | WRITE8_HANDLER( vanguard_sound_w ) |
| 783 | 783 | { |
| 784 | running_device *samples = | |
| 784 | running_device *samples = | |
| 785 | 785 | switch (offset) |
| 786 | 786 | { |
| 787 | 787 | case 0: |
| r8581 | r8582 | |
| 827 | 827 | } |
| 828 | 828 | |
| 829 | 829 | /* SHOT B */ |
| 830 | sn76477_enable_w( | |
| 830 | sn76477_enable_w( | |
| 831 | 831 | |
| 832 | 832 | LastPort1 = data; |
| 833 | 833 | break; |
| r8581 | r8582 | |
| 917 | 917 | } |
| 918 | 918 | |
| 919 | 919 | /* BOMB */ |
| 920 | discrete_sound_w( | |
| 920 | discrete_sound_w( | |
| 921 | 921 | |
| 922 | 922 | LastPort1 = data; |
| 923 | 923 | break; |
| r8581 | r8582 | |
| 1034 | 1034 | |
| 1035 | 1035 | if ((data & HD38880_CTP) && (data & HD38880_CMV)) |
| 1036 | 1036 | { |
| 1037 | running_device *samples = | |
| 1037 | running_device *samples = m | |
| 1038 | 1038 | data &= HD68880_SYBS; |
| 1039 | 1039 | |
| 1040 | 1040 | switch (hd38880_cmd) |
| r8581 | r8582 | |
| 1053 | 1053 | { |
| 1054 | 1054 | if (table[i] && table[i] == hd38880_addr) |
| 1055 | 1055 | { |
| 1056 | running_device *samples = | |
| 1056 | running_device *samples = m | |
| 1057 | 1057 | sample_start(samples, 0, start + i, 0); |
| 1058 | 1058 | break; |
| 1059 | 1059 | } |
| r8581 | r8582 | |
|---|---|---|
| 48 | 48 | |
| 49 | 49 | void polyplay_play_channel1(running_machine *machine, int data) |
| 50 | 50 | { |
| 51 | running_device *samples = | |
| 51 | running_device *samples = m | |
| 52 | 52 | if (data) { |
| 53 | 53 | freq1 = 2457600 / 16 / data / 8; |
| 54 | 54 | sample_set_volume(samples, 0, channel_playing1 * 1.0); |
| r8581 | r8582 | |
| 62 | 62 | |
| 63 | 63 | void polyplay_play_channel2(running_machine *machine, int data) |
| 64 | 64 | { |
| 65 | running_device *samples = | |
| 65 | running_device *samples = m | |
| 66 | 66 | if (data) { |
| 67 | 67 | freq2 = 2457600 / 16 / data / 8; |
| 68 | 68 | sample_set_volume(samples, 1, channel_playing2 * 1.0); |
| r8581 | r8582 | |
|---|---|---|
| 412 | 412 | |
| 413 | 413 | WRITE8_DEVICE_HANDLER( bb_ym2_b_w ) |
| 414 | 414 | { |
| 415 | running_device *ym1 = devtag_get_device(device->machine, "ym1"); | |
| 416 | running_device *ym2 = devtag_get_device(device->machine, "ym2"); | |
| 415 | running_device *ym1 = device->machine->device("ym1"); | |
| 416 | running_device *ym2 = device->machine->device("ym2"); | |
| 417 | 417 | double gain; |
| 418 | 418 | |
| 419 | 419 | stream_update(stream); |
| r8581 | r8582 | |
|---|---|---|
| 27 | 27 | int len; |
| 28 | 28 | int romlen = memory_region_length(machine, "samples"); |
| 29 | 29 | const UINT8 *rom = memory_region(machine, "samples"); |
| 30 | running_device *samples = | |
| 30 | running_device *samples = m | |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | if (!rom) return; |
| r8581 | r8582 | |
|---|---|---|
| 108 | 108 | /* SSIO */ |
| 109 | 109 | if (mcr_sound_config & MCR_SSIO) |
| 110 | 110 | { |
| 111 | ssio_sound_cpu = | |
| 111 | ssio_sound_cpu = m | |
| 112 | 112 | ssio_compute_ay8910_modulation(machine); |
| 113 | 113 | state_save_register_global_array(machine, ssio_data); |
| 114 | 114 | state_save_register_global(machine, ssio_status); |
| r8581 | r8582 | |
| 121 | 121 | /* Turbo Chip Squeak */ |
| 122 | 122 | if (mcr_sound_config & MCR_TURBO_CHIP_SQUEAK) |
| 123 | 123 | { |
| 124 | turbocs_sound_cpu = | |
| 124 | turbocs_sound_cpu = m | |
| 125 | 125 | state_save_register_global(machine, turbocs_status); |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /* Chip Squeak Deluxe */ |
| 129 | 129 | if (mcr_sound_config & MCR_CHIP_SQUEAK_DELUXE) |
| 130 | 130 | { |
| 131 | csdeluxe_sound_cpu = | |
| 131 | csdeluxe_sound_cpu = m | |
| 132 | 132 | state_save_register_global(machine, csdeluxe_status); |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | /* Sounds Good */ |
| 136 | 136 | if (mcr_sound_config & MCR_SOUNDS_GOOD) |
| 137 | 137 | { |
| 138 | soundsgood_sound_cpu = | |
| 138 | soundsgood_sound_cpu = m | |
| 139 | 139 | state_save_register_global(machine, soundsgood_status); |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /* Squawk n Talk */ |
| 143 | 143 | if (mcr_sound_config & MCR_SQUAWK_N_TALK) |
| 144 | 144 | { |
| 145 | squawkntalk_sound_cpu = | |
| 145 | squawkntalk_sound_cpu = m | |
| 146 | 146 | state_save_register_global(machine, squawkntalk_tms_command); |
| 147 | 147 | state_save_register_global(machine, squawkntalk_tms_strobes); |
| 148 | 148 | } |
| r8581 | r8582 | |
| 316 | 316 | |
| 317 | 317 | static void ssio_update_volumes(running_machine *machine) |
| 318 | 318 | { |
| 319 | running_device *ay0 = devtag_get_device(machine, "ssio.1"); | |
| 320 | running_device *ay1 = devtag_get_device(machine, "ssio.2"); | |
| 319 | running_device *ay0 = machine->device("ssio.1"); | |
| 320 | running_device *ay1 = machine->device("ssio.2"); | |
| 321 | 321 | ay8910_set_volume(ay0, 0, ssio_mute ? 0 : ssio_ayvolume_lookup[ssio_duty_cycle[0][0]]); |
| 322 | 322 | ay8910_set_volume(ay0, 1, ssio_mute ? 0 : ssio_ayvolume_lookup[ssio_duty_cycle[0][1]]); |
| 323 | 323 | ay8910_set_volume(ay0, 2, ssio_mute ? 0 : ssio_ayvolume_lookup[ssio_duty_cycle[0][2]]); |
| r8581 | r8582 | |
| 491 | 491 | static WRITE8_DEVICE_HANDLER( csdeluxe_porta_w ) |
| 492 | 492 | { |
| 493 | 493 | dacval = (dacval & ~0x3fc) | (data << 2); |
| 494 | dac_signed_data_16_w(dev | |
| 494 | dac_signed_data_16_w(dev | |
| 495 | 495 | } |
| 496 | 496 | |
| 497 | 497 | static WRITE8_DEVICE_HANDLER( csdeluxe_portb_w ) |
| r8581 | r8582 | |
| 499 | 499 | UINT8 z_mask = pia6821_get_port_b_z_mask(device); |
| 500 | 500 | |
| 501 | 501 | dacval = (dacval & ~0x003) | (data >> 6); |
| 502 | dac_signed_data_16_w(dev | |
| 502 | dac_signed_data_16_w(dev | |
| 503 | 503 | |
| 504 | 504 | if (~z_mask & 0x10) csdeluxe_status = (csdeluxe_status & ~1) | ((data >> 4) & 1); |
| 505 | 505 | if (~z_mask & 0x20) csdeluxe_status = (csdeluxe_status & ~2) | ((data >> 4) & 2); |
| r8581 | r8582 | |
| 514 | 514 | |
| 515 | 515 | static TIMER_CALLBACK( csdeluxe_delayed_data_w ) |
| 516 | 516 | { |
| 517 | running_device *pia = | |
| 517 | running_device *pia = m | |
| 518 | 518 | |
| 519 | 519 | pia6821_portb_w(pia, 0, param & 0x0f); |
| 520 | pia6821_ca1_w(pia, | |
| 520 | pia6821_ca1_w(pia, | |
| 521 | 521 | |
| 522 | 522 | /* oftentimes games will write one nibble at a time; the sync on this is very */ |
| 523 | 523 | /* important, so we boost the interleave briefly while this happens */ |
| r8581 | r8582 | |
| 629 | 629 | static WRITE8_DEVICE_HANDLER( soundsgood_porta_w ) |
| 630 | 630 | { |
| 631 | 631 | dacval = (dacval & ~0x3fc) | (data << 2); |
| 632 | dac_signed_data_16_w(dev | |
| 632 | dac_signed_data_16_w(dev | |
| 633 | 633 | } |
| 634 | 634 | |
| 635 | 635 | static WRITE8_DEVICE_HANDLER( soundsgood_portb_w ) |
| r8581 | r8582 | |
| 637 | 637 | UINT8 z_mask = pia6821_get_port_b_z_mask(device); |
| 638 | 638 | |
| 639 | 639 | dacval = (dacval & ~0x003) | (data >> 6); |
| 640 | dac_signed_data_16_w(dev | |
| 640 | dac_signed_data_16_w(dev | |
| 641 | 641 | |
| 642 | 642 | if (~z_mask & 0x10) soundsgood_status = (soundsgood_status & ~1) | ((data >> 4) & 1); |
| 643 | 643 | if (~z_mask & 0x20) soundsgood_status = (soundsgood_status & ~2) | ((data >> 4) & 2); |
| r8581 | r8582 | |
| 652 | 652 | |
| 653 | 653 | static TIMER_CALLBACK( soundsgood_delayed_data_w ) |
| 654 | 654 | { |
| 655 | running_device *pia = | |
| 655 | running_device *pia = m | |
| 656 | 656 | |
| 657 | 657 | pia6821_portb_w(pia, 0, (param >> 1) & 0x0f); |
| 658 | pia6821_ca1_w(pia, | |
| 658 | pia6821_ca1_w(pia, | |
| 659 | 659 | |
| 660 | 660 | /* oftentimes games will write one nibble at a time; the sync on this is very */ |
| 661 | 661 | /* important, so we boost the interleave briefly while this happens */ |
| r8581 | r8582 | |
| 737 | 737 | static WRITE8_DEVICE_HANDLER( turbocs_porta_w ) |
| 738 | 738 | { |
| 739 | 739 | dacval = (dacval & ~0x3fc) | (data << 2); |
| 740 | dac_signed_data_16_w(dev | |
| 740 | dac_signed_data_16_w(dev | |
| 741 | 741 | } |
| 742 | 742 | |
| 743 | 743 | static WRITE8_DEVICE_HANDLER( turbocs_portb_w ) |
| 744 | 744 | { |
| 745 | 745 | dacval = (dacval & ~0x003) | (data >> 6); |
| 746 | dac_signed_data_16_w(dev | |
| 746 | dac_signed_data_16_w(dev | |
| 747 | 747 | turbocs_status = (data >> 4) & 3; |
| 748 | 748 | } |
| 749 | 749 | |
| r8581 | r8582 | |
| 756 | 756 | |
| 757 | 757 | static TIMER_CALLBACK( turbocs_delayed_data_w ) |
| 758 | 758 | { |
| 759 | running_device *pia = | |
| 759 | running_device *pia = m | |
| 760 | 760 | |
| 761 | 761 | pia6821_portb_w(pia, 0, (param >> 1) & 0x0f); |
| 762 | pia6821_ca1_w(pia, | |
| 762 | pia6821_ca1_w(pia, | |
| 763 | 763 | |
| 764 | 764 | /* oftentimes games will write one nibble at a time; the sync on this is very */ |
| 765 | 765 | /* important, so we boost the interleave briefly while this happens */ |
| r8581 | r8582 | |
| 853 | 853 | |
| 854 | 854 | static WRITE8_DEVICE_HANDLER( squawkntalk_portb2_w ) |
| 855 | 855 | { |
| 856 | running_device *tms = dev | |
| 856 | running_device *tms = dev | |
| 857 | 857 | |
| 858 | 858 | /* bits 0-1 select read/write strobes on the TMS5200 */ |
| 859 | 859 | data &= 0x03; |
| r8581 | r8582 | |
| 864 | 864 | tms5220_data_w(tms, offset, squawkntalk_tms_command); |
| 865 | 865 | |
| 866 | 866 | /* DoT expects the ready line to transition on a command/write here, so we oblige */ |
| 867 | pia6821_ca2_w(device, 0, 1); | |
| 868 | pia6821_ca2_w(device, 0, 0); | |
| 867 | pia6821_ca2_w(device, 1); | |
| 868 | pia6821_ca2_w(device, 0); | |
| 869 | 869 | } |
| 870 | 870 | |
| 871 | 871 | /* read strobe -- read the current status from the TMS5200 */ |
| r8581 | r8582 | |
| 874 | 874 | pia6821_porta_w(device, 0, tms5220_status_r(tms, offset)); |
| 875 | 875 | |
| 876 | 876 | /* DoT expects the ready line to transition on a command/write here, so we oblige */ |
| 877 | pia6821_ca2_w(device, 0, 1); | |
| 878 | pia6821_ca2_w(device, 0, 0); | |
| 877 | pia6821_ca2_w(device, 1); | |
| 878 | pia6821_ca2_w(device, 0); | |
| 879 | 879 | } |
| 880 | 880 | |
| 881 | 881 | /* remember the state */ |
| r8581 | r8582 | |
| 884 | 884 | |
| 885 | 885 | static WRITE_LINE_DEVICE_HANDLER( squawkntalk_irq ) |
| 886 | 886 | { |
| 887 | running_device *pia0 = devtag_get_device(device->machine, "sntpia0"); | |
| 888 | running_device *pia1 = devtag_get_device(device->machine, "sntpia1"); | |
| 887 | running_device *pia0 = device->machine->device("sntpia0"); | |
| 888 | running_device *pia1 = device->machine->device("sntpia1"); | |
| 889 | 889 | int combined_state = pia6821_get_irq_a(pia0) | pia6821_get_irq_b(pia0) | pia6821_get_irq_a(pia1) | pia6821_get_irq_b(pia1); |
| 890 | 890 | |
| 891 | 891 | cpu_set_input_line(squawkntalk_sound_cpu, M6800_IRQ_LINE, combined_state ? ASSERT_LINE : CLEAR_LINE); |
| r8581 | r8582 | |
| 893 | 893 | |
| 894 | 894 | static TIMER_CALLBACK( squawkntalk_delayed_data_w ) |
| 895 | 895 | { |
| 896 | running_device *pia0 = | |
| 896 | running_device *pia0 = m | |
| 897 | 897 | |
| 898 | 898 | pia6821_porta_w(pia0, 0, ~param & 0x0f); |
| 899 | pia6821_cb1_w(pia0, | |
| 899 | pia6821_cb1_w(pia0, | |
| 900 | 900 | } |
| 901 | 901 | |
| 902 | 902 |
| r8581 | r8582 | |
|---|---|---|
| 191 | 191 | break; |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | cpu = | |
| 194 | cpu = m | |
| 195 | 195 | |
| 196 | 196 | if (cpu == NULL) |
| 197 | 197 | return; |
| r8581 | r8582 | |
|---|---|---|
| 132 | 132 | |
| 133 | 133 | static TIMER_CALLBACK( frogs_croak_callback ) |
| 134 | 134 | { |
| 135 | running_device *samples = | |
| 135 | running_device *samples = m | |
| 136 | 136 | sample_stop(samples, 2); |
| 137 | 137 | } |
| 138 | 138 | |
| r8581 | r8582 | |
| 145 | 145 | |
| 146 | 146 | WRITE8_HANDLER( frogs_audio_w ) |
| 147 | 147 | { |
| 148 | running_device *samples = devtag_get_device(space->machine, "samples"); | |
| 149 | running_device *discrete = devtag_get_device(space->machine, "discrete"); | |
| 148 | running_device *samples = space->machine->device("samples"); | |
| 149 | running_device *discrete = space->machine->device("discrete"); | |
| 150 | 150 | static int last_croak = 0; |
| 151 | 151 | static int last_buzzz = 0; |
| 152 | 152 | int new_croak = data & 0x08; |
| r8581 | r8582 | |
| 462 | 462 | |
| 463 | 463 | WRITE8_HANDLER( headon_audio_w ) |
| 464 | 464 | { |
| 465 | running_device *discrete = | |
| 465 | running_device *discrete = | |
| 466 | 466 | if (discrete == NULL) |
| 467 | 467 | return; |
| 468 | 468 | discrete_sound_w(discrete, HEADON_HISPEED_PC_EN, data & 0x01); |
| r8581 | r8582 | |
| 477 | 477 | |
| 478 | 478 | WRITE8_HANDLER( invho2_audio_w ) |
| 479 | 479 | { |
| 480 | running_device *discrete = | |
| 480 | running_device *discrete = | |
| 481 | 481 | if (discrete == NULL) |
| 482 | 482 | return; |
| 483 | 483 | discrete_sound_w(discrete, HEADON_HISPEED_PC_EN, data & 0x10); |
| r8581 | r8582 | |
|---|---|---|
| 22 | 22 | { |
| 23 | 23 | irem_z80_state *state = (irem_z80_state *)machine->driver_data; |
| 24 | 24 | |
| 25 | state->adpcm1 = devtag_get_device(machine, "msm1"); | |
| 26 | state->adpcm2 = devtag_get_device(machine, "msm2"); | |
| 27 | state->ay1 = devtag_get_device(machine, "ay1"); | |
| 28 | state->ay2 = devtag_get_device(machine, "ay2"); | |
| 25 | state->adpcm1 = machine->device("msm1"); | |
| 26 | state->adpcm2 = machine->device("msm2"); | |
| 27 | state->ay1 = machine->device("ay1"); | |
| 28 | state->ay2 = machine->device("ay2"); | |
| 29 | 29 | |
| 30 | 30 | state_save_register_global(machine, state->port1); |
| 31 | 31 | state_save_register_global(machine, state->port2); |
| r8581 | r8582 | |
|---|---|---|
| 60 | 60 | /************************************/ |
| 61 | 61 | void meadows_sh_update(running_machine *machine) |
| 62 | 62 | { |
| 63 | running_device *samples = | |
| 63 | running_device *samples = m | |
| 64 | 64 | int preset, amp; |
| 65 | 65 | |
| 66 | 66 | if (latched_0c01 != meadows_0c01 || latched_0c03 != meadows_0c03) |
| r8581 | r8582 | |
| 68 | 68 | /* amplitude is a combination of the upper 4 bits of 0c01 */ |
| 69 | 69 | /* and bit 4 merged from S2650's flag output */ |
| 70 | 70 | amp = ((meadows_0c03 & ENABLE_CTR1) == 0) ? 0 : (meadows_0c01 & 0xf0) >> 1; |
| 71 | if( cpu_get_reg( | |
| 71 | if( cpu_get_reg(m | |
| 72 | 72 | amp += 0x80; |
| 73 | 73 | /* calculate frequency for counter #1 */ |
| 74 | 74 | /* bit 0..3 of 0c01 are ctr preset */ |
| r8581 | r8582 | |
| 104 | 104 | dac_enable = meadows_0c03 & ENABLE_DAC; |
| 105 | 105 | |
| 106 | 106 | if (dac_enable) |
| 107 | dac_data_w( | |
| 107 | dac_data_w(m | |
| 108 | 108 | else |
| 109 | dac_data_w( | |
| 109 | dac_data_w(m | |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | latched_0c01 = meadows_0c01; |
| r8581 | r8582 | |
| 121 | 121 | { |
| 122 | 122 | meadows_dac = data; |
| 123 | 123 | if (dac_enable) |
| 124 | dac_data_w( | |
| 124 | dac_data_w(m | |
| 125 | 125 | else |
| 126 | dac_data_w( | |
| 126 | dac_data_w(m | |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 |
| r8581 | r8582 | |
|---|---|---|
| 436 | 436 | if (pitch == 3) |
| 437 | 437 | pitch = 2; /* 2 and 3 are the same */ |
| 438 | 438 | |
| 439 | tms36xx_note_w( | |
| 439 | tms36xx_note_w( | |
| 440 | 440 | |
| 441 | 441 | stream_update(channel); |
| 442 | 442 | sound_latch_b = data; |
| r8581 | r8582 | |
|---|---|---|
| 270 | 270 | int bank; |
| 271 | 271 | |
| 272 | 272 | /* configure the CPU */ |
| 273 | sound_cpu = | |
| 273 | sound_cpu = m | |
| 274 | 274 | soundalt_cpu = NULL; |
| 275 | 275 | |
| 276 | 276 | /* configure master CPU banks */ |
| r8581 | r8582 | |
| 288 | 288 | memory_set_bank(machine, "bank5", 0); |
| 289 | 289 | |
| 290 | 290 | /* reset the IRQ state */ |
| 291 | pia6821_ca1_w( | |
| 291 | pia6821_ca1_w(m | |
| 292 | 292 | |
| 293 | 293 | /* register for save states */ |
| 294 | 294 | state_save_register_global(machine, williams_sound_int_state); |
| r8581 | r8582 | |
| 302 | 302 | int bank; |
| 303 | 303 | |
| 304 | 304 | /* configure the CPU */ |
| 305 | sound_cpu = devtag_get_device(machine, "narc1cpu"); | |
| 306 | soundalt_cpu = devtag_get_device(machine, "narc2cpu"); | |
| 305 | sound_cpu = machine->device("narc1cpu"); | |
| 306 | soundalt_cpu = machine->device("narc2cpu"); | |
| 307 | 307 | |
| 308 | 308 | /* configure master CPU banks */ |
| 309 | 309 | ROM = memory_region(machine, "narc1cpu"); |
| r8581 | r8582 | |
| 345 | 345 | UINT8 *ROM; |
| 346 | 346 | |
| 347 | 347 | /* configure the CPU */ |
| 348 | sound_cpu = | |
| 348 | sound_cpu = m | |
| 349 | 349 | soundalt_cpu = NULL; |
| 350 | 350 | |
| 351 | 351 | /* configure banks */ |
| r8581 | r8582 | |
| 407 | 407 | |
| 408 | 408 | static void cvsd_ym2151_irq(running_device *device, int state) |
| 409 | 409 | { |
| 410 | pia6821_ca1_w(dev | |
| 410 | pia6821_ca1_w(dev | |
| 411 | 411 | } |
| 412 | 412 | |
| 413 | 413 | |
| r8581 | r8582 | |
| 471 | 471 | |
| 472 | 472 | static TIMER_CALLBACK( williams_cvsd_delayed_data_w ) |
| 473 | 473 | { |
| 474 | running_device *pia = | |
| 474 | running_device *pia = m | |
| 475 | 475 | pia6821_portb_w(pia, 0, param & 0xff); |
| 476 | pia6821_cb1_w(pia, 0, (param >> 8) & 1); | |
| 477 | pia6821_cb2_w(pia, 0, (param >> 9) & 1); | |
| 476 | pia6821_cb1_w(pia, (param >> 8) & 1); | |
| 477 | pia6821_cb2_w(pia, (param >> 9) & 1); | |
| 478 | 478 | } |
| 479 | 479 | |
| 480 | 480 |
| r8581 | r8582 | |
|---|---|---|
| 170 | 170 | |
| 171 | 171 | static WRITE_LINE_DEVICE_HANDLER( sod_callback ) |
| 172 | 172 | { |
| 173 | hc55516_digit_w(dev | |
| 173 | hc55516_digit_w(dev | |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | |
| 177 | 177 | static READ_LINE_DEVICE_HANDLER( sid_callback ) |
| 178 | 178 | { |
| 179 | return hc55516_clock_state_r(dev | |
| 179 | return hc55516_clock_state_r(dev | |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | |
| r8581 | r8582 | |
| 309 | 309 | |
| 310 | 310 | static WRITE8_DEVICE_HANDLER( demoneye_ay8910_data_w ) |
| 311 | 311 | { |
| 312 | running_device *ay1 = devtag_get_device(device->machine, "ay1"); | |
| 313 | running_device *ay2 = devtag_get_device(device->machine, "ay2"); | |
| 312 | running_device *ay1 = device->machine->device("ay1"); | |
| 313 | running_device *ay2 = device->machine->device("ay2"); | |
| 314 | 314 | |
| 315 | 315 | switch (ay8910_latch_1 & 0x03) |
| 316 | 316 | { |
| r8581 | r8582 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | SOUND_START( starwars ) |
| 23 | 23 | { |
| 24 | riot = | |
| 24 | riot = m | |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | |
| r8581 | r8582 | |
| 46 | 46 | /* Note: bit 4 is always set to avoid sound self test */ |
| 47 | 47 | UINT8 olddata = riot6532_porta_in_get(device); |
| 48 | 48 | |
| 49 | return (olddata & 0xc0) | 0x10 | (tms5220_readyq_r(dev | |
| 49 | return (olddata & 0xc0) | 0x10 | (tms5220_readyq_r(dev | |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 |
| r8581 | r8582 | |
|---|---|---|
| 466 | 466 | static SOUND_START( mario ) |
| 467 | 467 | { |
| 468 | 468 | mario_state *state = (mario_state *)machine->driver_data; |
| 469 | running_device *audiocpu = | |
| 469 | running_device *audiocpu = m | |
| 470 | 470 | #if USE_8039 |
| 471 | 471 | UINT8 *SND = memory_region(machine, "audiocpu"); |
| 472 | 472 | |
| r8581 | r8582 | |
| 629 | 629 | I8035_P1_W_AH(space,3,data & 1); |
| 630 | 630 | break; |
| 631 | 631 | case 7: /* skid */ |
| 632 | discrete_sound_w( | |
| 632 | discrete_sound_w( | |
| 633 | 633 | break; |
| 634 | 634 | } |
| 635 | 635 | } |
| r8581 | r8582 | |
|---|---|---|
| 349 | 349 | |
| 350 | 350 | READ16_HANDLER( micro3d_tms_host_r ) |
| 351 | 351 | { |
| 352 | return tms34010_host_r( | |
| 352 | return tms34010_host_r( | |
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | WRITE16_HANDLER( micro3d_tms_host_w ) |
| 356 | 356 | { |
| 357 | tms34010_host_w( | |
| 357 | tms34010_host_w( | |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | 360 | |
| r8581 | r8582 | |
| 748 | 748 | micro3d_state *state = (micro3d_state*)machine->driver_data; |
| 749 | 749 | const address_space *space = cputag_get_address_space(machine, "drmath", ADDRESS_SPACE_DATA); |
| 750 | 750 | |
| 751 | i8051_set_serial_tx_callback(devtag_get_device(machine, "audiocpu"), data_from_i8031); | |
| 752 | i8051_set_serial_rx_callback(devtag_get_device(machine, "audiocpu"), data_to_i8031); | |
| 751 | i8051_set_serial_tx_callback(machine->device("audiocpu"), data_from_i8031); | |
| 752 | i8051_set_serial_rx_callback(machine->device("audiocpu"), data_to_i8031); | |
| 753 | 753 | |
| 754 | state->duart68681 = | |
| 754 | state->duart68681 = m | |
| 755 | 755 | |
| 756 | 756 | /* The Am29000 program seems to rely on RAM from 0x00470000 onwards being |
| 757 | 757 | non-zero on a reset, otherwise the 3D object data doesn't get uploaded! */ |
| r8581 | r8582 | |
| 762 | 762 | /* TODO? BOTSS crashes when starting the final stage because the 68000 |
| 763 | 763 | overwrites memory in use by the Am29000. Slowing down the 68000 slightly |
| 764 | 764 | avoids this */ |
| 765 | c | |
| 765 | machin | |
| 766 | 766 | } |
| 767 | 767 | |
| 768 | 768 | DRIVER_INIT( botssa ) |
| r8581 | r8582 | |
|---|---|---|
| 1021 | 1021 | memset(&NMK004_state, 0, sizeof(NMK004_state)); |
| 1022 | 1022 | |
| 1023 | 1023 | NMK004_state.machine = machine; |
| 1024 | NMK004_state.ymdevice = devtag_get_device(machine, "ymsnd"); | |
| 1025 | NMK004_state.oki1device = devtag_get_device(machine, "oki1"); | |
| 1026 | NMK004_state.oki2device = devtag_get_device(machine, "oki2"); | |
| 1024 | NMK004_state.ymdevice = machine->device("ymsnd"); | |
| 1025 | NMK004_state.oki1device = machine->device("oki1"); | |
| 1026 | NMK004_state.oki2device = machine->device("oki2"); | |
| 1027 | 1027 | |
| 1028 | 1028 | NMK004_state.rom = memory_region(machine, "audiocpu"); |
| 1029 | 1029 |
| r8581 | r8582 | |
|---|---|---|
| 397 | 397 | |
| 398 | 398 | static UINT16 *decrypted; |
| 399 | 399 | |
| 400 | static void clear_decrypted(running_machine &machine) | |
| 401 | { | |
| 402 | decrypted = NULL; | |
| 403 | } | |
| 404 | ||
| 400 | 405 | static void sys16_decrypt(running_machine *machine, const UINT8 *key,int cputype) |
| 401 | 406 | { |
| 402 | 407 | const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM); |
| r8581 | r8582 | |
| 405 | 410 | int A; |
| 406 | 411 | decrypted = auto_alloc_array(machine, UINT16, size/2); |
| 407 | 412 | |
| 413 | machine->add_notifier(MACHINE_NOTIFY_EXIT, clear_decrypted); | |
| 408 | 414 | memory_set_decrypted_region(space, 0x000000, size - 1, decrypted); |
| 409 | 415 | |
| 410 | 416 | for (A = 0;A < size;A+=2) |
| r8581 | r8582 | |
|---|---|---|
| 51 | 51 | |
| 52 | 52 | MACHINE_RESET( pc10 ) |
| 53 | 53 | { |
| 54 | running_device *rp5h01 = | |
| 54 | running_device *rp5h01 = m | |
| 55 | 55 | |
| 56 | 56 | /* initialize latches and flip-flops */ |
| 57 | 57 | pc10_nmi_enable = pc10_dog_di = pc10_dispmask = pc10_sdcs = pc10_int_detect = 0; |
| r8581 | r8582 | |
| 84 | 84 | /* move to individual boards as documentation of actual boards allows */ |
| 85 | 85 | nt_ram = auto_alloc_array(machine, UINT8, 0x1000); |
| 86 | 86 | |
| 87 | memory_install_readwrite8_handler(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0, 0x1fff, 0, 0, pc10_chr_r, pc10_chr_w); | |
| 88 | memory_install_readwrite8_handler(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, pc10_nt_r, pc10_nt_w); | |
| 87 | memory_install_readwrite8_handler(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0, 0x1fff, 0, 0, pc10_chr_r, pc10_chr_w); | |
| 88 | memory_install_readwrite8_handler(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, pc10_nt_r, pc10_nt_w); | |
| 89 | 89 | |
| 90 | 90 | if (NULL != vram) |
| 91 | 91 | set_videoram_bank(machine, 0, 8, 0, 8); |
| r8581 | r8582 | |
| 104 | 104 | |
| 105 | 105 | vram = auto_alloc_array(machine, UINT8, 0x2000); |
| 106 | 106 | |
| 107 | memory_install_readwrite8_handler(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0, 0x1fff, 0, 0, pc10_chr_r, pc10_chr_w); | |
| 108 | memory_install_readwrite8_handler(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, pc10_nt_r, pc10_nt_w); | |
| 107 | memory_install_readwrite8_handler(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0, 0x1fff, 0, 0, pc10_chr_r, pc10_chr_w); | |
| 108 | memory_install_readwrite8_handler(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, pc10_nt_r, pc10_nt_w); | |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /************************************* |
| r8581 | r8582 | |
| 193 | 193 | |
| 194 | 194 | READ8_HANDLER( pc10_prot_r ) |
| 195 | 195 | { |
| 196 | running_device *rp5h01 = | |
| 196 | running_device *rp5h01 = | |
| 197 | 197 | int data = 0xe7; |
| 198 | 198 | |
| 199 | 199 | /* we only support a single cart connected at slot 0 */ |
| r8581 | r8582 | |
| 209 | 209 | |
| 210 | 210 | WRITE8_HANDLER( pc10_prot_w ) |
| 211 | 211 | { |
| 212 | running_device *rp5h01 = | |
| 212 | running_device *rp5h01 = | |
| 213 | 213 | /* we only support a single cart connected at slot 0 */ |
| 214 | 214 | if (cart_sel == 0) |
| 215 | 215 | { |
| r8581 | r8582 | |
| 277 | 277 | /* do the gun thing */ |
| 278 | 278 | if (pc10_gun_controller) |
| 279 | 279 | { |
| 280 | running_device *ppu = | |
| 280 | running_device *ppu = | |
| 281 | 281 | int trigger = input_port_read(space->machine, "P1"); |
| 282 | 282 | int x = input_port_read(space->machine, "GUNX"); |
| 283 | 283 | int y = input_port_read(space->machine, "GUNY"); |
| r8581 | r8582 | |
| 869 | 869 | if (--gboard_scanline_counter == -1) |
| 870 | 870 | { |
| 871 | 871 | gboard_scanline_counter = gboard_scanline_latch; |
| 872 | generic_pulse_irq_line(dev | |
| 872 | generic_pulse_irq_line(dev | |
| 873 | 873 | } |
| 874 | 874 | } |
| 875 | 875 | } |
| 876 | 876 | |
| 877 | 877 | static WRITE8_HANDLER( gboard_rom_switch_w ) |
| 878 | 878 | { |
| 879 | running_device *ppu = | |
| 879 | running_device *ppu = | |
| 880 | 880 | |
| 881 | 881 | /* basically, a MMC3 mapper from the nes */ |
| 882 | 882 |
| r8581 | r8582 | |
|---|---|---|
| 67 | 67 | |
| 68 | 68 | fd1094_state = state; |
| 69 | 69 | |
| 70 | cpu_set_reg( | |
| 70 | cpu_set_reg(m | |
| 71 | 71 | |
| 72 | 72 | /* set the FD1094 state ready to decrypt.. */ |
| 73 | 73 | state = fd1094_set_state(fd1094_key, state) & 0xff; |
| r8581 | r8582 | |
| 80 | 80 | /* copy cached state */ |
| 81 | 81 | fd1094_userregion = fd1094_cacheregion[i]; |
| 82 | 82 | set_decrypted_region(machine); |
| 83 | m68k_set_encrypted_opcode_range( | |
| 83 | m68k_set_encrypted_opcode_range(m | |
| 84 | 84 | |
| 85 | 85 | return; |
| 86 | 86 | } |
| r8581 | r8582 | |
| 99 | 99 | /* copy newly decrypted data to user region */ |
| 100 | 100 | fd1094_userregion = fd1094_cacheregion[fd1094_current_cacheposition]; |
| 101 | 101 | set_decrypted_region(machine); |
| 102 | m68k_set_encrypted_opcode_range( | |
| 102 | m68k_set_encrypted_opcode_range(m | |
| 103 | 103 | |
| 104 | 104 | fd1094_current_cacheposition++; |
| 105 | 105 | |
| r8581 | r8582 | |
| 166 | 166 | int selected_state = fd1094_selected_state; |
| 167 | 167 | int state = fd1094_state; |
| 168 | 168 | |
| 169 | fd1094_machine_init( | |
| 169 | fd1094_machine_init(m | |
| 170 | 170 | |
| 171 | 171 | fd1094_setstate_and_decrypt(machine, selected_state); |
| 172 | 172 | fd1094_setstate_and_decrypt(machine, state); |
| r8581 | r8582 | |
| 192 | 192 | fd1094_current_cacheposition = 1; |
| 193 | 193 | |
| 194 | 194 | /* flush the prefetch queue */ |
| 195 | cpu_set_reg( | |
| 195 | cpu_set_reg(m | |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 |
| r8581 | r8582 | |
|---|---|---|
| 131 | 131 | asic65.type = asictype; |
| 132 | 132 | asic65.yorigin = 0x1800; |
| 133 | 133 | if (asic65.type == ASIC65_ROMBASED) |
| 134 | asic65.cpu = | |
| 134 | asic65.cpu = m | |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 |
| r8581 | r8582 | |
|---|---|---|
| 693 | 693 | state->bank1 = 2; |
| 694 | 694 | state->bank2 = 0; |
| 695 | 695 | |
| 696 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 697 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 698 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 696 | state->audiocpu = machine->device("audiocpu"); | |
| 697 | state->subcpu = machine->device("sub"); | |
| 698 | state->mcu = machine->device("mcu"); | |
| 699 | 699 | |
| 700 | 700 | state_save_register_global(machine, state->screenflip); |
| 701 | 701 | state_save_register_global(machine, state->kageki_csport_sel); |
| r8581 | r8582 | |
| 725 | 725 | memory_configure_bank(machine, "bank1", 0, 8, &ROM[0x10000], 0x4000); |
| 726 | 726 | memory_configure_bank(machine, "bank2", 0, 4, &SUB[0x10000], 0x2000); |
| 727 | 727 | |
| 728 | state->subcpu = | |
| 728 | state->subcpu = m | |
| 729 | 729 | state->mcu = NULL; |
| 730 | 730 | |
| 731 | 731 | state->bank1 = 2; |
| r8581 | r8582 | |
|---|---|---|
| 159 | 159 | |
| 160 | 160 | void a800_handle_keyboard(running_machine *machine) |
| 161 | 161 | { |
| 162 | running_device *pokey = | |
| 162 | running_device *pokey = m | |
| 163 | 163 | int atari_code, count, ipt, i; |
| 164 | 164 | static const char *const tag[] = { |
| 165 | 165 | "keyboard_0", "keyboard_1", "keyboard_2", "keyboard_3", |
| r8581 | r8582 | |
| 244 | 244 | |
| 245 | 245 | void a5200_handle_keypads(running_machine *machine) |
| 246 | 246 | { |
| 247 | running_device *pokey = | |
| 247 | running_device *pokey = m | |
| 248 | 248 | int atari_code, count, ipt, i; |
| 249 | 249 | static const char *const tag[] = { "keypad_0", "keypad_1", "keypad_2", "keypad_3" }; |
| 250 | 250 | |
| r8581 | r8582 | |
| 322 | 322 | |
| 323 | 323 | static void console_write(const address_space *space, UINT8 data) |
| 324 | 324 | { |
| 325 | running_device *dac = | |
| 325 | running_device *dac = | |
| 326 | 326 | if (data & 0x08) |
| 327 | 327 | dac_data_w(dac, (UINT8)-120); |
| 328 | 328 | else |
| r8581 | r8582 | |
|---|---|---|
| 213 | 213 | |
| 214 | 214 | static WRITE16_HANDLER( term2_hack_w ) |
| 215 | 215 | { |
| 216 | if (offset == 0 && cpu_get_pc(space->cpu) == 0xffce5230) /* FIX ME - Not correct for LA4 */ | |
| 217 | { | |
| 218 | t2_hack_mem[offset] = 0; | |
| 219 | return; | |
| 220 | } | |
| 221 | COMBINE_DATA(&t2_hack_mem[offset]); | |
| 222 | } | |
| 223 | ||
| 224 | static WRITE16_HANDLER( term2la3_hack_w ) | |
| 225 | { | |
| 216 | 226 | if (offset == 0 && cpu_get_pc(space->cpu) == 0xffce5230) |
| 217 | 227 | { |
| 218 | 228 | t2_hack_mem[offset] = 0; |
| r8581 | r8582 | |
| 530 | 540 | } |
| 531 | 541 | |
| 532 | 542 | DRIVER_INIT( term2 ) { term2_init_common(machine, term2_hack_w); } |
| 543 | DRIVER_INIT( term2la3 ) { term2_init_common(machine, term2la3_hack_w); } | |
| 533 | 544 | DRIVER_INIT( term2la2 ) { term2_init_common(machine, term2la2_hack_w); } |
| 534 | 545 | DRIVER_INIT( term2la1 ) { term2_init_common(machine, term2la1_hack_w); } |
| 535 | 546 |
| r8581 | r8582 | |
|---|---|---|
| 102 | 102 | MACHINE_RESET( mhavoc ) |
| 103 | 103 | { |
| 104 | 104 | const address_space *space = cputag_get_address_space(machine, "alpha", ADDRESS_SPACE_PROGRAM); |
| 105 | has_gamma_cpu = ( | |
| 105 | has_gamma_cpu = (m | |
| 106 | 106 | |
| 107 | 107 | memory_configure_bank(machine, "bank1", 0, 1, mhavoc_zram0, 0); |
| 108 | 108 | memory_configure_bank(machine, "bank1", 1, 1, mhavoc_zram1, 0); |
| r8581 | r8582 | |
| 223 | 223 | |
| 224 | 224 | CUSTOM_INPUT( tms5220_r ) |
| 225 | 225 | { |
| 226 | return tms5220_readyq_r( | |
| 226 | return tms5220_readyq_r( | |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | CUSTOM_INPUT( mhavoc_bit67_r ) |
| r8581 | r8582 | |
| 328 | 328 | |
| 329 | 329 | static WRITE8_HANDLER( mhavocrv_speech_strobe_w ) |
| 330 | 330 | { |
| 331 | running_device *tms = | |
| 331 | running_device *tms = | |
| 332 | 332 | tms5220_data_w(tms, 0, speech_write_buffer); |
| 333 | 333 | } |
| 334 | 334 |
| r8581 | r8582 | |
|---|---|---|
| 1337 | 1337 | { |
| 1338 | 1338 | decocass_state *state = (decocass_state *)machine->driver_data; |
| 1339 | 1339 | |
| 1340 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1341 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1342 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 1343 | state->cassette = devtag_get_device(machine, "cassette"); | |
| 1340 | state->maincpu = machine->device("maincpu"); | |
| 1341 | state->audiocpu = machine->device("audiocpu"); | |
| 1342 | state->mcu = machine->device("mcu"); | |
| 1343 | state->cassette = machine->device("cassette"); | |
| 1344 | 1344 | } |
| 1345 | 1345 | |
| 1346 | 1346 | static void decocass_reset_common( running_machine *machine ) |
| r8581 | r8582 | |
|---|---|---|
| 142 | 142 | { |
| 143 | 143 | const char *dsptag = (cgboard_id == 0) ? "dsp" : "dsp2"; |
| 144 | 144 | const char *pcitag = (cgboard_id == 0) ? "k033906_1" : "k033906_2"; |
| 145 | running_device *dsp = devtag_get_device(space->machine, dsptag); | |
| 146 | running_device *k033906 = devtag_get_device(space->machine, pcitag); | |
| 145 | running_device *dsp = space->machine->device(dsptag); | |
| 146 | running_device *k033906 = space->machine->device(pcitag); | |
| 147 | 147 | // mame_printf_debug("dsp_cmd_w: (board %d) %08X, %08X, %08X at %08X\n", cgboard_id, data, offset, mem_mask, cpu_get_pc(space->cpu)); |
| 148 | 148 | |
| 149 | 149 | if (cgboard_id < MAX_CG_BOARDS) |
| r8581 | r8582 | |
| 225 | 225 | case CGBOARD_TYPE_GTICLUB: |
| 226 | 226 | { |
| 227 | 227 | //cputag_set_input_line(machine, "dsp", SHARC_INPUT_FLAG0, ASSERT_LINE); |
| 228 | sharc_set_flag_input( | |
| 228 | sharc_set_flag_input( | |
| 229 | 229 | |
| 230 | 230 | if (offset == 1) |
| 231 | 231 | { |
| r8581 | r8582 | |
| 239 | 239 | case CGBOARD_TYPE_HANGPLT: |
| 240 | 240 | { |
| 241 | 241 | const char *dsptag = (board == 0) ? "dsp" : "dsp2"; |
| 242 | running_device *device = | |
| 242 | running_device *device = | |
| 243 | 243 | |
| 244 | 244 | if (offset == 1) |
| 245 | 245 | { |
| r8581 | r8582 | |
| 354 | 354 | static UINT32 nwk_fifo_r(const address_space *space, int board) |
| 355 | 355 | { |
| 356 | 356 | const char *dsptag = (board == 0) ? "dsp" : "dsp2"; |
| 357 | running_device *device = | |
| 357 | running_device *device = | |
| 358 | 358 | UINT32 data; |
| 359 | 359 | |
| 360 | 360 | if (nwk_fifo_read_ptr[board] < nwk_fifo_half_full_r) |
| r8581 | r8582 | |
| 385 | 385 | static void nwk_fifo_w(running_machine *machine, int board, UINT32 data) |
| 386 | 386 | { |
| 387 | 387 | const char *dsptag = (board == 0) ? "dsp" : "dsp2"; |
| 388 | running_device *device = | |
| 388 | running_device *device = m | |
| 389 | 389 | |
| 390 | 390 | if (nwk_fifo_write_ptr[board] < nwk_fifo_half_full_w) |
| 391 | 391 | { |
| r8581 | r8582 | |
| 409 | 409 | |
| 410 | 410 | READ32_HANDLER( K033906_0_r ) |
| 411 | 411 | { |
| 412 | running_device *k033906_1 = | |
| 412 | running_device *k033906_1 = | |
| 413 | 413 | if (nwk_device_sel[0] & 0x01) |
| 414 | 414 | return nwk_fifo_r(space, 0); |
| 415 | 415 | else |
| r8581 | r8582 | |
| 418 | 418 | |
| 419 | 419 | WRITE32_HANDLER( K033906_0_w ) |
| 420 | 420 | { |
| 421 | running_device *k033906_1 = | |
| 421 | running_device *k033906_1 = | |
| 422 | 422 | k033906_w(k033906_1, offset, data, mem_mask); |
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | READ32_HANDLER( K033906_1_r ) |
| 426 | 426 | { |
| 427 | running_device *k033906_2 = | |
| 427 | running_device *k033906_2 = | |
| 428 | 428 | if (nwk_device_sel[1] & 0x01) |
| 429 | 429 | return nwk_fifo_r(space, 1); |
| 430 | 430 | else |
| r8581 | r8582 | |
| 433 | 433 | |
| 434 | 434 | WRITE32_HANDLER(K033906_1_w) |
| 435 | 435 | { |
| 436 | running_device *k033906_2 = | |
| 436 | running_device *k033906_2 = | |
| 437 | 437 | k033906_w(k033906_2, offset, data, mem_mask); |
| 438 | 438 | } |
| 439 | 439 |
| r8581 | r8582 | |
|---|---|---|
| 376 | 376 | |
| 377 | 377 | /* reset globals */ |
| 378 | 378 | leland_gfx_control = 0x00; |
| 379 | leland_sound_port_w( | |
| 379 | leland_sound_port_w(m | |
| 380 | 380 | wcol_enable = 0; |
| 381 | 381 | |
| 382 | 382 | dangerz_x = 512; |
| r8581 | r8582 | |
| 1143 | 1143 | |
| 1144 | 1144 | case 0x01: /* /GIN1 */ |
| 1145 | 1145 | result = input_port_read(space->machine, "IN1"); |
| 1146 | if (cpu_get_reg( | |
| 1146 | if (cpu_get_reg( | |
| 1147 | 1147 | result ^= 0x01; |
| 1148 | 1148 | break; |
| 1149 | 1149 | |
| r8581 | r8582 | |
| 1154 | 1154 | |
| 1155 | 1155 | case 0x03: /* /IGID */ |
| 1156 | 1156 | case 0x13: |
| 1157 | result = ay8910_r( | |
| 1157 | result = ay8910_r( | |
| 1158 | 1158 | break; |
| 1159 | 1159 | |
| 1160 | 1160 | case 0x10: /* /GIN0 */ |
| r8581 | r8582 | |
| 1186 | 1186 | cputag_set_input_line(space->machine, "slave", INPUT_LINE_NMI, (data & 0x04) ? CLEAR_LINE : ASSERT_LINE); |
| 1187 | 1187 | cputag_set_input_line(space->machine, "slave", 0, (data & 0x08) ? CLEAR_LINE : ASSERT_LINE); |
| 1188 | 1188 | |
| 1189 | eeprom = | |
| 1189 | eeprom = | |
| 1190 | 1190 | if (LOG_EEPROM) logerror("%04X:EE write %d%d%d\n", cpu_get_pc(space->cpu), |
| 1191 | 1191 | (data >> 6) & 1, (data >> 5) & 1, (data >> 4) & 1); |
| 1192 | 1192 | eeprom_write_bit (eeprom, (data & 0x10) >> 4); |
| r8581 | r8582 | |
| 1196 | 1196 | |
| 1197 | 1197 | case 0x0a: /* /OGIA */ |
| 1198 | 1198 | case 0x0b: /* /OGID */ |
| 1199 | ay8910_address_data_w( | |
| 1199 | ay8910_address_data_w( | |
| 1200 | 1200 | break; |
| 1201 | 1201 | |
| 1202 | 1202 | case 0x0c: /* /BKXL */ |
| r8581 | r8582 | |
| 1225 | 1225 | |
| 1226 | 1226 | case 0x07: /* /SLVBLK */ |
| 1227 | 1227 | result = input_port_read(space->machine, "IN1"); |
| 1228 | if (cpu_get_reg( | |
| 1228 | if (cpu_get_reg( | |
| 1229 | 1229 | result ^= 0x01; |
| 1230 | 1230 | break; |
| 1231 | 1231 |
| r8581 | r8582 | |
|---|---|---|
| 231 | 231 | assert(state->nmicpu != NULL); |
| 232 | 232 | |
| 233 | 233 | /* resolve our devices */ |
| 234 | state->device[0] = (config->chip0 != NULL) ? dev | |
| 234 | state->device[0] = (config->chip0 != NULL) ? dev | |
| 235 | 235 | assert(state->device[0] != NULL || config->chip0 == NULL); |
| 236 | state->device[1] = (config->chip1 != NULL) ? dev | |
| 236 | state->device[1] = (config->chip1 != NULL) ? dev | |
| 237 | 237 | assert(state->device[1] != NULL || config->chip1 == NULL); |
| 238 | state->device[2] = (config->chip2 != NULL) ? dev | |
| 238 | state->device[2] = (config->chip2 != NULL) ? dev | |
| 239 | 239 | assert(state->device[2] != NULL || config->chip2 == NULL); |
| 240 | state->device[3] = (config->chip3 != NULL) ? dev | |
| 240 | state->device[3] = (config->chip3 != NULL) ? dev | |
| 241 | 241 | assert(state->device[3] != NULL || config->chip3 == NULL); |
| 242 | 242 | |
| 243 | 243 | /* loop over devices and set their read/write handlers */ |
| r8581 | r8582 | |
|---|---|---|
| 600 | 600 | ioasic_register_state(machine); |
| 601 | 601 | |
| 602 | 602 | /* do we have a DCS2 sound chip connected? (most likely) */ |
| 603 | ioasic.has_dcs = (devtag_get_device(machine, "dcs2") != NULL || devtag_get_device(machine, "dsio") != NULL || devtag_get_device(machine, "denver") != NULL); | |
| 604 | ioasic.has_cage = (devtag_get_device(machine, "cage") != NULL); | |
| 605 | ioasic.dcs_cpu = devtag_get_device(machine, "dcs2"); | |
| 603 | ioasic.has_dcs = (machine->device("dcs2") != NULL || machine->device("dsio") != NULL || machine->device("denver") != NULL); | |
| 604 | ioasic.has_cage = (machine->device("cage") != NULL); | |
| 605 | ioasic.dcs_cpu = machine->device("dcs2"); | |
| 606 | 606 | if (ioasic.dcs_cpu == NULL) |
| 607 | ioasic.dcs_cpu = | |
| 607 | ioasic.dcs_cpu = m | |
| 608 | 608 | if (ioasic.dcs_cpu == NULL) |
| 609 | ioasic.dcs_cpu = | |
| 609 | ioasic.dcs_cpu = m | |
| 610 | 610 | ioasic.shuffle_type = shuffle; |
| 611 | 611 | ioasic.shuffle_map = &shuffle_maps[shuffle][0]; |
| 612 | 612 | ioasic.auto_ack = 0; |
| r8581 | r8582 | |
|---|---|---|
| 258 | 258 | } |
| 259 | 259 | |
| 260 | 260 | #ifdef MESS |
| 261 | cdrom = mess_cd_get_cdrom_file( | |
| 261 | cdrom = mess_cd_get_cdrom_file(m | |
| 262 | 262 | #else |
| 263 | 263 | cdrom = cdrom_open(get_disk_handle(machine, "cdrom")); |
| 264 | 264 | #endif |
| r8581 | r8582 | |
|---|---|---|
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | level=dc_compute_interrupt_level(machine); |
| 412 | sh4_set_irln_input( | |
| 412 | sh4_set_irln_input(m | |
| 413 | 413 | |
| 414 | 414 | /* Wave DMA HW trigger */ |
| 415 | 415 | if(wave_dma.flag && ((wave_dma.sel & 2) == 2)) |
| r8581 | r8582 | |
| 663 | 663 | ddtdata.direction=0; |
| 664 | 664 | ddtdata.channel=2; |
| 665 | 665 | ddtdata.mode=25; //011001 |
| 666 | sh4_dma_ddt( | |
| 666 | sh4_dma_ddt( | |
| 667 | 667 | #if DEBUG_SYSCTRL |
| 668 | 668 | if ((address >= 0x11000000) && (address <= 0x11FFFFFF)) |
| 669 | 669 | if (dc_sysctrl_regs[SB_LMMODE0]) |
| r8581 | r8582 | |
| 793 | 793 | ddtdata.direction=0; // 0 source to buffer, 1 buffer to source |
| 794 | 794 | ddtdata.channel= -1; // not used |
| 795 | 795 | ddtdata.mode= -1; // copy from/to buffer |
| 796 | sh4_dma_ddt( | |
| 796 | sh4_dma_ddt( | |
| 797 | 797 | |
| 798 | 798 | endflag=buff[0] & 0x80000000; |
| 799 | 799 | port=(buff[0] >> 16) & 3; |
| r8581 | r8582 | |
| 832 | 832 | ddtdata.direction=0; |
| 833 | 833 | ddtdata.channel= -1; |
| 834 | 834 | ddtdata.mode=-1; |
| 835 | sh4_dma_ddt( | |
| 835 | sh4_dma_ddt( | |
| 836 | 836 | chk=0; |
| 837 | 837 | for (a=1;a < length;a++) |
| 838 | 838 | { |
| r8581 | r8582 | |
| 858 | 858 | ddtdata.direction=0; |
| 859 | 859 | ddtdata.channel= -1; |
| 860 | 860 | ddtdata.mode=-1; |
| 861 | sh4_dma_ddt( | |
| 861 | sh4_dma_ddt( | |
| 862 | 862 | |
| 863 | 863 | subcommand = buff[0] & 0xff; |
| 864 | 864 | #if DEBUG_MAPLE |
| r8581 | r8582 | |
| 1062 | 1062 | ddtdata.destination=destination; |
| 1063 | 1063 | ddtdata.buffer=buff; |
| 1064 | 1064 | ddtdata.direction=1; |
| 1065 | sh4_dma_ddt( | |
| 1065 | sh4_dma_ddt( | |
| 1066 | 1066 | |
| 1067 | 1067 | if (endflag) |
| 1068 | 1068 | { |
| r8581 | r8582 | |
| 1139 | 1139 | ddtdata.direction=0; // 0 source to buffer, 1 buffer to source |
| 1140 | 1140 | ddtdata.channel= -1; // not used |
| 1141 | 1141 | ddtdata.mode= -1; // copy from/to buffer |
| 1142 | sh4_dma_ddt( | |
| 1142 | sh4_dma_ddt( | |
| 1143 | 1143 | |
| 1144 | 1144 | endflag=buff[0] & 0x80000000; |
| 1145 | 1145 | port=(buff[0] >> 16) & 3; |
| r8581 | r8582 | |
| 1211 | 1211 | ddtdata.destination=destination; |
| 1212 | 1212 | ddtdata.buffer=buff; |
| 1213 | 1213 | ddtdata.direction=1; |
| 1214 | sh4_dma_ddt( | |
| 1214 | sh4_dma_ddt( | |
| 1215 | 1215 | |
| 1216 | 1216 | if (endflag) |
| 1217 | 1217 | { |
| r8581 | r8582 | |
| 1330 | 1330 | ddtdata.channel= -1; // not used |
| 1331 | 1331 | ddtdata.mode= -1; // copy from/to buffer |
| 1332 | 1332 | mame_printf_verbose("G1CTRL: transfer %x from ROM %08x to sdram %08x\n", g1bus_regs[SB_GDLEN], dmaoffset, g1bus_regs[SB_GDSTAR]); |
| 1333 | sh4_dma_ddt( | |
| 1333 | sh4_dma_ddt( | |
| 1334 | 1334 | /* Note: KOF Neowave definitely wants this to be delayed (!) */ |
| 1335 | 1335 | /* FIXME: timing of this */ |
| 1336 | 1336 | timer_set(space->machine, ATTOTIME_IN_USEC(500), NULL, 0, gdrom_dma_irq); |
| r8581 | r8582 | |
|---|---|---|
| 20 | 20 | { |
| 21 | 21 | MACHINE_RESET_CALL(galaxold); |
| 22 | 22 | |
| 23 | if ( | |
| 23 | if (m | |
| 24 | 24 | scramble_sh_init(machine); |
| 25 | 25 | |
| 26 | 26 | security_2B_counter = 0; |
| r8581 | r8582 | |
| 60 | 60 | |
| 61 | 61 | static READ8_DEVICE_HANDLER( scramble_protection_r ) |
| 62 | 62 | { |
| 63 | switch (cpu_get_pc(dev | |
| 63 | switch (cpu_get_pc(dev | |
| 64 | 64 | { |
| 65 | 65 | case 0x00a8: return 0xf0; |
| 66 | 66 | case 0x00be: return 0xb0; |
| r8581 | r8582 | |
| 120 | 120 | cavelon_banksw(space->machine); |
| 121 | 121 | |
| 122 | 122 | if ((offset >= 0x0100) && (offset <= 0x0103)) |
| 123 | return ppi8255_r( | |
| 123 | return ppi8255_r( | |
| 124 | 124 | else if ((offset >= 0x0200) && (offset <= 0x0203)) |
| 125 | return ppi8255_r( | |
| 125 | return ppi8255_r( | |
| 126 | 126 | |
| 127 | 127 | return 0xff; |
| 128 | 128 | } |
| r8581 | r8582 | |
| 132 | 132 | cavelon_banksw(space->machine); |
| 133 | 133 | |
| 134 | 134 | if ((offset >= 0x0100) && (offset <= 0x0103)) |
| 135 | ppi8255_w( | |
| 135 | ppi8255_w( | |
| 136 | 136 | else if ((offset >= 0x0200) && (offset <= 0x0203)) |
| 137 | ppi8255_w( | |
| 137 | ppi8255_w( | |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 |
| r8581 | r8582 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | WRITE8_HANDLER( gaplus_customio_3_w ) |
| 23 | 23 | { |
| 24 | running_device *samples = | |
| 24 | running_device *samples = | |
| 25 | 25 | if ((offset == 0x09) && (data >= 0x0f)) |
| 26 | 26 | sample_start(samples,0,0,0); |
| 27 | 27 |
| r8581 | r8582 | |
|---|---|---|
| 497 | 497 | MACHINE_START( carpolo ) |
| 498 | 498 | { |
| 499 | 499 | /* find flip-flops */ |
| 500 | ttl7474_2s_1 = devtag_get_device(machine, "7474_2s_1"); | |
| 501 | ttl7474_2s_2 = devtag_get_device(machine, "7474_2s_2"); | |
| 502 | ttl7474_2u_1 = devtag_get_device(machine, "7474_2u_1"); | |
| 503 | ttl7474_2u_2 = devtag_get_device(machine, "7474_2u_2"); | |
| 504 | ttl7474_1f_1 = devtag_get_device(machine, "7474_1f_1"); | |
| 505 | ttl7474_1f_2 = devtag_get_device(machine, "7474_1f_2"); | |
| 506 | ttl7474_1d_1 = devtag_get_device(machine, "7474_1d_1"); | |
| 507 | ttl7474_1d_2 = devtag_get_device(machine, "7474_1d_2"); | |
| 508 | ttl7474_1c_1 = devtag_get_device(machine, "7474_1c_1"); | |
| 509 | ttl7474_1c_2 = devtag_get_device(machine, "7474_1c_2"); | |
| 510 | ttl7474_1a_1 = devtag_get_device(machine, "7474_1a_1"); | |
| 511 | ttl7474_1a_2 = devtag_get_device(machine, "7474_1a_2"); | |
| 500 | ttl7474_2s_1 = machine->device("7474_2s_1"); | |
| 501 | ttl7474_2s_2 = machine->device("7474_2s_2"); | |
| 502 | ttl7474_2u_1 = machine->device("7474_2u_1"); | |
| 503 | ttl7474_2u_2 = machine->device("7474_2u_2"); | |
| 504 | ttl7474_1f_1 = machine->device("7474_1f_1"); | |
| 505 | ttl7474_1f_2 = machine->device("7474_1f_2"); | |
| 506 | ttl7474_1d_1 = machine->device("7474_1d_1"); | |
| 507 | ttl7474_1d_2 = machine->device("7474_1d_2"); | |
| 508 | ttl7474_1c_1 = machine->device("7474_1c_1"); | |
| 509 | ttl7474_1c_2 = machine->device("7474_1c_2"); | |
| 510 | ttl7474_1a_1 = machine->device("7474_1a_1"); | |
| 511 | ttl7474_1a_2 = machine->device("7474_1a_2"); | |
| 512 | 512 | |
| 513 | ttl74148_3s = devtag_get_device(machine, "74148_3s"); | |
| 514 | ttl74153_1k = devtag_get_device(machine, "74153_1k"); | |
| 513 | ttl74148_3s = machine->device("74148_3s"); | |
| 514 | ttl74153_1k = machine->device("74153_1k"); | |
| 515 | 515 | |
| 516 | 516 | state_save_register_global(machine, ball_screen_collision_cause); |
| 517 | 517 | state_save_register_global(machine, car_ball_collision_x); |
| r8581 | r8582 | |
|---|---|---|
| 619 | 619 | offset &= 0x3ff; |
| 620 | 620 | |
| 621 | 621 | /* CUS 30 */ |
| 622 | return namcos1_cus30_r( | |
| 622 | return namcos1_cus30_r( | |
| 623 | 623 | } |
| 624 | 624 | else |
| 625 | 625 | { |
| r8581 | r8582 | |
| 637 | 637 | offset &= 0x3ff; |
| 638 | 638 | |
| 639 | 639 | /* CUS 30 */ |
| 640 | namcos1_cus30_w( | |
| 640 | namcos1_cus30_w( | |
| 641 | 641 | } |
| 642 | 642 | else |
| 643 | 643 | { |
| r8581 | r8582 | |
| 745 | 745 | { |
| 746 | 746 | // logerror("cpu %s: namcos1_bankswitch_w offset %04x data %02x\n", space->cpu->tag(), offset, data); |
| 747 | 747 | |
| 748 | namcos1_bankswitch(space->machine, (space->cpu == | |
| 748 | namcos1_bankswitch(space->machine, (space->cpu == | |
| 749 | 749 | } |
| 750 | 750 | |
| 751 | 751 | /* Sub cpu set start bank port */ |
| r8581 | r8582 | |
|---|---|---|
| 2006 | 2006 | |
| 2007 | 2007 | MACHINE_START( n64 ) |
| 2008 | 2008 | { |
| 2009 | mips3drc_set_options( | |
| 2009 | mips3drc_set_options(m | |
| 2010 | 2010 | |
| 2011 | 2011 | /* configure fast RAM regions for DRC */ |
| 2012 | mips3drc_add_fastram( | |
| 2012 | mips3drc_add_fastram(m | |
| 2013 | 2013 | |
| 2014 | rspdrc_set_options(devtag_get_device(machine, "rsp"), 0); | |
| 2015 | rspdrc_add_imem(devtag_get_device(machine, "rsp"), rsp_imem); | |
| 2016 | rspdrc_add_dmem(devtag_get_device(machine, "rsp"), rsp_dmem); | |
| 2017 | rspdrc_flush_drc_cache(devtag_get_device(machine, "rsp")); | |
| 2014 | rspdrc_set_options(machine->device("rsp"), 0); | |
| 2015 | rspdrc_add_imem(machine->device("rsp"), rsp_imem); | |
| 2016 | rspdrc_add_dmem(machine->device("rsp"), rsp_dmem); | |
| 2017 | rspdrc_flush_drc_cache(machine->device("rsp")); | |
| 2018 | 2018 | |
| 2019 | 2019 | audio_timer = timer_alloc(machine, audio_timer_callback, NULL); |
| 2020 | 2020 | } |
| r8581 | r8582 | |
|---|---|---|
| 59 | 59 | memcpy(buf, rom, size); |
| 60 | 60 | |
| 61 | 61 | memory_set_decrypted_region(space, 0, size - 1, opcodes); |
| 62 | m68k_set_encrypted_opcode_range( | |
| 62 | m68k_set_encrypted_opcode_range(m | |
| 63 | 63 | |
| 64 | 64 | for (i = 0; i < size / 2; i++) |
| 65 | 65 | { |
| r8581 | r8582 | |
|---|---|---|
| 201 | 201 | |
| 202 | 202 | MACHINE_START( vsnes ) |
| 203 | 203 | { |
| 204 | const address_space *ppu1_space = cpu_get_address_space( | |
| 204 | const address_space *ppu1_space = cpu_get_address_space(m | |
| 205 | 205 | int i; |
| 206 | 206 | |
| 207 | 207 | /* establish nametable ram */ |
| r8581 | r8582 | |
| 256 | 256 | nt_page[1][2] = nt_ram[1] + 0x800; |
| 257 | 257 | nt_page[1][3] = nt_ram[1] + 0xc00; |
| 258 | 258 | |
| 259 | memory_install_readwrite8_handler(cpu_get_address_space(devtag_get_device(machine, "ppu1"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, vsnes_nt0_r, vsnes_nt0_w); | |
| 260 | memory_install_readwrite8_handler(cpu_get_address_space(devtag_get_device(machine, "ppu2"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, vsnes_nt1_r, vsnes_nt1_w); | |
| 259 | memory_install_readwrite8_handler(cpu_get_address_space(machine->device("ppu1"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, vsnes_nt0_r, vsnes_nt0_w); | |
| 260 | memory_install_readwrite8_handler(cpu_get_address_space(machine->device("ppu2"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, vsnes_nt1_r, vsnes_nt1_w); | |
| 261 | 261 | // read only! |
| 262 | memory_install_read_bank(cpu_get_address_space( | |
| 262 | memory_install_read_bank(cpu_get_address_space(m | |
| 263 | 263 | // read only! |
| 264 | memory_install_read_bank(cpu_get_address_space( | |
| 264 | memory_install_read_bank(cpu_get_address_space(m | |
| 265 | 265 | memory_configure_bank(machine, "bank2", 0, vrom_size[0] / 0x2000, vrom[0], 0x2000); |
| 266 | 266 | memory_configure_bank(machine, "bank3", 0, vrom_size[1] / 0x2000, vrom[1], 0x2000); |
| 267 | 267 | memory_set_bank(machine, "bank2", 0); |
| r8581 | r8582 | |
| 362 | 362 | |
| 363 | 363 | static WRITE8_HANDLER( gun_in0_w ) |
| 364 | 364 | { |
| 365 | running_device *ppu1 = | |
| 365 | running_device *ppu1 = | |
| 366 | 366 | static int zapstore; |
| 367 | 367 | |
| 368 | 368 | if (vsnes_do_vrom_bank) |
| r8581 | r8582 | |
| 699 | 699 | |
| 700 | 700 | static WRITE8_HANDLER( mapper4_w ) |
| 701 | 701 | { |
| 702 | running_device *ppu1 = | |
| 702 | running_device *ppu1 = | |
| 703 | 703 | UINT8 MMC3_helper, cmd; |
| 704 | 704 | |
| 705 | 705 | switch (offset & 0x6001) |
| r8581 | r8582 | |
| 1019 | 1019 | |
| 1020 | 1020 | static WRITE8_HANDLER( vsdual_vrom_banking ) |
| 1021 | 1021 | { |
| 1022 | running_device *other_cpu = (space->cpu == | |
| 1022 | running_device *other_cpu = (space->cpu == | |
| 1023 | 1023 | |
| 1024 | 1024 | /* switch vrom */ |
| 1025 | (space->cpu == | |
| 1025 | (space->cpu == | |
| 1026 | 1026 | |
| 1027 | 1027 | /* bit 1 ( data & 2 ) triggers irq on the other cpu */ |
| 1028 | 1028 | cpu_set_input_line(other_cpu, 0, (data & 2) ? CLEAR_LINE : ASSERT_LINE); |
| 1029 | 1029 | |
| 1030 | 1030 | /* move along */ |
| 1031 | if (space->cpu == | |
| 1031 | if (space->cpu == | |
| 1032 | 1032 | vsnes_in0_w(space, offset, data); |
| 1033 | 1033 | else |
| 1034 | 1034 | vsnes_in0_1_w(space, offset, data); |
| r8581 | r8582 | |
|---|---|---|
| 252 | 252 | |
| 253 | 253 | WRITE_LINE_DEVICE_HANDLER( qix_vsync_changed ) |
| 254 | 254 | { |
| 255 | running_device *pia = devtag_get_device(device->machine, "sndpia0"); | |
| 256 | pia6821_cb1_w(pia, 0, state); | |
| 255 | running_device *pia = device->machine->device("sndpia0"); | |
| 256 | pia6821_cb1_w(pia, state); | |
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | |
| r8581 | r8582 | |
| 508 | 508 | static WRITE8_DEVICE_HANDLER( slither_76489_0_w ) |
| 509 | 509 | { |
| 510 | 510 | /* write to the sound chip */ |
| 511 | sn76496_w(dev | |
| 511 | sn76496_w(dev | |
| 512 | 512 | |
| 513 | 513 | /* clock the ready line going back into CB1 */ |
| 514 | pia6821_cb1_w(device, 0, 0); | |
| 515 | pia6821_cb1_w(device, 0, 1); | |
| 514 | pia6821_cb1_w(device, 0); | |
| 515 | pia6821_cb1_w(device, 1); | |
| 516 | 516 | } |
| 517 | 517 | |
| 518 | 518 | |
| 519 | 519 | static WRITE8_DEVICE_HANDLER( slither_76489_1_w ) |
| 520 | 520 | { |
| 521 | 521 | /* write to the sound chip */ |
| 522 | sn76496_w(dev | |
| 522 | sn76496_w(dev | |
| 523 | 523 | |
| 524 | 524 | /* clock the ready line going back into CB1 */ |
| 525 | pia6821_cb1_w(device, 0, 0); | |
| 526 | pia6821_cb1_w(device, 0, 1); | |
| 525 | pia6821_cb1_w(device, 0); | |
| 526 | pia6821_cb1_w(device, 1); | |
| 527 | 527 | } |
| 528 | 528 | |
| 529 | 529 |
| r8581 | r8582 | |
|---|---|---|
| 727 | 727 | case MEMSEL: /* Access cycle designation in memory (2) area */ |
| 728 | 728 | /* FIXME: Need to adjust the speed only during access of banks 0x80+ |
| 729 | 729 | * Currently we are just increasing it no matter what */ |
| 730 | // cpu | |
| 730 | // state->maincpu->set_clock_scale( | |
| 731 | 731 | #ifdef SNES_DBG_REG_W |
| 732 | 732 | if ((data & 0x1) != (snes_ram[MEMSEL] & 0x1)) |
| 733 | 733 | mame_printf_debug( "CPU speed: %f Mhz\n", (data & 0x1) ? 3.58 : 2.68 ); |
| r8581 | r8582 | |
| 1679 | 1679 | |
| 1680 | 1680 | static DIRECT_UPDATE_HANDLER( spc_direct ) |
| 1681 | 1681 | { |
| 1682 | direct->raw = direct->decrypted = spc_get_ram( | |
| 1682 | direct->raw = direct->decrypted = spc_get_ram( | |
| 1683 | 1683 | return ~0; |
| 1684 | 1684 | } |
| 1685 | 1685 |
| r8581 | r8582 | |
|---|---|---|
| 53 | 53 | zaccept = 1; |
| 54 | 54 | zready = 0; |
| 55 | 55 | busreq = 0; |
| 56 | if ( | |
| 56 | if (m | |
| 57 | 57 | cputag_set_input_line(machine, "mcu", 0, CLEAR_LINE); |
| 58 | 58 | |
| 59 | 59 | spacecr_prot_value = 0; |
| r8581 | r8582 | |
|---|---|---|
| 318 | 318 | MACHINE_RESET( amiga ) |
| 319 | 319 | { |
| 320 | 320 | /* set m68k reset function */ |
| 321 | m68k_set_reset_callback( | |
| 321 | m68k_set_reset_callback(m | |
| 322 | 322 | |
| 323 | amiga_m68k_reset( | |
| 323 | amiga_m68k_reset(m | |
| 324 | 324 | |
| 325 | 325 | /* call the system-specific callback */ |
| 326 | 326 | if (amiga_intf->reset_callback) |
| r8581 | r8582 | |
| 341 | 341 | static TIMER_CALLBACK( scanline_callback ) |
| 342 | 342 | { |
| 343 | 343 | int scanline = param; |
| 344 | running_device *cia_0 = devtag_get_device(machine, "cia_0"); | |
| 345 | running_device *cia_1 = devtag_get_device(machine, "cia_1"); | |
| 344 | running_device *cia_0 = machine->device("cia_0"); | |
| 345 | running_device *cia_1 = machine->device("cia_1"); | |
| 346 | 346 | |
| 347 | 347 | /* on the first scanline, we do some extra bookkeeping */ |
| 348 | 348 | if (scanline == 0) |
| r8581 | r8582 | |
| 1046 | 1046 | /* offsets 0000-07ff reference CIA B, and are accessed via the MSB */ |
| 1047 | 1047 | if ((offset & 0x0800) == 0) |
| 1048 | 1048 | { |
| 1049 | cia = | |
| 1049 | cia = | |
| 1050 | 1050 | shift = 8; |
| 1051 | 1051 | } |
| 1052 | 1052 | |
| 1053 | 1053 | /* offsets 0800-0fff reference CIA A, and are accessed via the LSB */ |
| 1054 | 1054 | else |
| 1055 | 1055 | { |
| 1056 | cia = | |
| 1056 | cia = | |
| 1057 | 1057 | shift = 0; |
| 1058 | 1058 | } |
| 1059 | 1059 | |
| r8581 | r8582 | |
| 1086 | 1086 | { |
| 1087 | 1087 | if (!ACCESSING_BITS_8_15) |
| 1088 | 1088 | return; |
| 1089 | cia = | |
| 1089 | cia = | |
| 1090 | 1090 | data >>= 8; |
| 1091 | 1091 | } |
| 1092 | 1092 | |
| r8581 | r8582 | |
| 1095 | 1095 | { |
| 1096 | 1096 | if (!ACCESSING_BITS_0_7) |
| 1097 | 1097 | return; |
| 1098 | cia = | |
| 1098 | cia = | |
| 1099 | 1099 | data &= 0xff; |
| 1100 | 1100 | } |
| 1101 | 1101 | |
| r8581 | r8582 | |
| 1444 | 1444 | CUSTOM_REG(REG_SERDATR) &= ~0x8000; |
| 1445 | 1445 | |
| 1446 | 1446 | data = (data & 0x8000) ? (CUSTOM_REG(offset) | (data & 0x7fff)) : (CUSTOM_REG(offset) & ~(data & 0x7fff)); |
| 1447 | cia_0 = devtag_get_device(space->machine, "cia_0"); | |
| 1448 | cia_1 = devtag_get_device(space->machine, "cia_1"); | |
| 1447 | cia_0 = space->machine->device("cia_0"); | |
| 1448 | cia_1 = space->machine->device("cia_1"); | |
| 1449 | 1449 | if ( mos6526_irq_r( cia_0 ) ) data |= INTENA_PORTS; |
| 1450 | 1450 | if ( mos6526_irq_r( cia_1 ) ) data |= INTENA_EXTER; |
| 1451 | 1451 | CUSTOM_REG(offset) = data; |
| r8581 | r8582 | |
|---|---|---|
| 220 | 220 | { |
| 221 | 221 | int i; |
| 222 | 222 | |
| 223 | ttl74148 = | |
| 223 | ttl74148 = m | |
| 224 | 224 | ttl74148_enable_input_w(ttl74148, 0); |
| 225 | 225 | |
| 226 | 226 | for (i = 0; i < 8; i++) |
| r8581 | r8582 | |
|---|---|---|
| 295 | 295 | emu_timer *timer = get_screen_timer(screen)->scanline_interrupt_timer; |
| 296 | 296 | |
| 297 | 297 | /* generate the interrupt */ |
| 298 | atarigen_scanline_int_gen( | |
| 298 | atarigen_scanline_int_gen(m | |
| 299 | 299 | |
| 300 | 300 | /* set a new timer to go off at the same scan line next frame */ |
| 301 | 301 | timer_adjust_oneshot(timer, screen.frame_period(), 0); |
| r8581 | r8582 | |
| 859 | 859 | /* set up the states and signal the sound interrupt to the main CPU */ |
| 860 | 860 | state->sound_to_cpu = param; |
| 861 | 861 | state->sound_to_cpu_ready = 1; |
| 862 | atarigen_sound_int_gen( | |
| 862 | atarigen_sound_int_gen(m | |
| 863 | 863 | } |
| 864 | 864 | |
| 865 | 865 | |
| r8581 | r8582 | |
| 1408 | 1408 | |
| 1409 | 1409 | void atarigen_halt_until_hblank_0(screen_device &screen) |
| 1410 | 1410 | { |
| 1411 | running_device *cpu = | |
| 1411 | running_device *cpu = | |
| 1412 | 1412 | |
| 1413 | 1413 | /* halt the CPU until the next HBLANK */ |
| 1414 | 1414 | int hpos = screen.hpos(); |
| r8581 | r8582 | |
|---|---|---|
| 494 | 494 | UINT16 *pC148RegAlt = NULL; |
| 495 | 495 | UINT16 result = 0; |
| 496 | 496 | |
| 497 | if (space->cpu == | |
| 497 | if (space->cpu == | |
| 498 | 498 | { |
| 499 | 499 | pC148Reg = namcos2_68k_master_C148; |
| 500 | altcpu = | |
| 500 | altcpu = | |
| 501 | 501 | pC148RegAlt = namcos2_68k_slave_C148; |
| 502 | 502 | } |
| 503 | else if (space->cpu == | |
| 503 | else if (space->cpu == | |
| 504 | 504 | { |
| 505 | 505 | pC148Reg = namcos2_68k_slave_C148; |
| 506 | altcpu = | |
| 506 | altcpu = | |
| 507 | 507 | pC148RegAlt = namcos2_68k_master_C148; |
| 508 | 508 | } |
| 509 | else if (space->cpu == | |
| 509 | else if (space->cpu == | |
| 510 | 510 | { |
| 511 | 511 | pC148Reg = namcos2_68k_gpu_C148; |
| 512 | altcpu = | |
| 512 | altcpu = | |
| 513 | 513 | pC148RegAlt = namcos2_68k_master_C148; |
| 514 | 514 | } |
| 515 | 515 | |
| r8581 | r8582 | |
| 584 | 584 | break; |
| 585 | 585 | |
| 586 | 586 | case 0x1e2000: /* Sound CPU Reset control */ |
| 587 | if (space->cpu == | |
| 587 | if (space->cpu == | |
| 588 | 588 | { |
| 589 | 589 | if (data & 0x01) |
| 590 | 590 | { |
| r8581 | r8582 | |
| 609 | 609 | break; |
| 610 | 610 | |
| 611 | 611 | case 0x1e4000: /* Alt 68000 & IO CPU Reset */ |
| 612 | if (space->cpu == | |
| 612 | if (space->cpu == | |
| 613 | 613 | { |
| 614 | 614 | if (data & 0x01) |
| 615 | 615 | { /* Resume execution */ |
| r8581 | r8582 | |
| 787 | 787 | /* If the interrupt enable bit is set trigger an A/D IRQ */ |
| 788 | 788 | if(data & 0x20) |
| 789 | 789 | { |
| 790 | generic_pulse_irq_line( | |
| 790 | generic_pulse_irq_line( | |
| 791 | 791 | } |
| 792 | 792 | } |
| 793 | 793 | } |
| r8581 | r8582 | |
|---|---|---|
| 917 | 917 | * |
| 918 | 918 | *************************************/ |
| 919 | 919 | |
| 920 | #define FILENAME_LENGTH | |
| 920 | #define FILENAME_LENGTH 24 | |
| 921 | 921 | |
| 922 | 922 | static void load_rom_gdrom(running_machine* machine, naomibd_state *v) |
| 923 | 923 | { |
| r8581 | r8582 | |
| 1790 | 1790 | break; |
| 1791 | 1791 | |
| 1792 | 1792 | case DIMM_BOARD: |
| 1793 | v->memory = (UINT8 *) | |
| 1793 | v->memory = (UINT8 *)auto_alloc_array_clear | |
| 1794 | 1794 | v->gdromchd = get_disk_handle(device->machine, config->gdromregiontag); |
| 1795 | 1795 | v->picdata = (UINT8 *)memory_region(device->machine, config->picregiontag); |
| 1796 | 1796 | if (v->memory != NULL && v->gdromchd != NULL && v->picdata != NULL) |
| r8581 | r8582 | |
|---|---|---|
| 402 | 402 | } |
| 403 | 403 | |
| 404 | 404 | math.dbgaddr = math.promaddr; |
| 405 | math.dbgpc = cpu_get_previouspc( | |
| 405 | math.dbgpc = cpu_get_previouspc(m | |
| 406 | 406 | } |
| 407 | 407 | |
| 408 | 408 |
| r8581 | r8582 | |
|---|---|---|
| 1311 | 1311 | |
| 1312 | 1312 | // case 0x582: return input_port_read(space->machine, "IN0"); /* IN0 */ |
| 1313 | 1313 | // case 0x672: return input_port_read(space->machine, "IN1"); /* IN1 */ |
| 1314 | // case 0x04c: return eeprom_read_bit( | |
| 1314 | // case 0x04c: return eeprom_read_bit( | |
| 1315 | 1315 | |
| 1316 | 1316 | case 0x468: |
| 1317 | 1317 | val=DECO_PORT(0x570); |
| r8581 | r8582 | |
| 1660 | 1660 | { |
| 1661 | 1661 | case 0x582: return (input_port_read(space->machine, "IN0")<<16) | 0xffff; /* IN0 */ |
| 1662 | 1662 | case 0x672: return (input_port_read(space->machine, "IN1")<<16) | 0xffff; /* IN1 */ |
| 1663 | case 0x04c: return (eeprom_read_bit( | |
| 1663 | case 0x04c: return (eeprom_read_bit( | |
| 1664 | 1664 | } |
| 1665 | 1665 | |
| 1666 | 1666 | /* Handle 'one shots' - writing data to an address, then immediately reading it back */ |
| r8581 | r8582 | |
|---|---|---|
| 420 | 420 | |
| 421 | 421 | INTERRUPT_GEN( mcr_interrupt ) |
| 422 | 422 | { |
| 423 | running_device *ctc = dev | |
| 423 | running_device *ctc = dev | |
| 424 | 424 | |
| 425 | 425 | /* CTC line 2 is connected to VBLANK, which is once every 1/2 frame */ |
| 426 | 426 | /* for the 30Hz interlaced display */ |
| r8581 | r8582 | |
| 439 | 439 | |
| 440 | 440 | INTERRUPT_GEN( mcr_ipu_interrupt ) |
| 441 | 441 | { |
| 442 | running_device *ctc = dev | |
| 442 | running_device *ctc = dev | |
| 443 | 443 | |
| 444 | 444 | /* CTC line 3 is connected to 493, which is signalled once every */ |
| 445 | 445 | /* frame at 30Hz */ |
| r8581 | r8582 | |
| 606 | 606 | |
| 607 | 607 | static TIMER_CALLBACK( zwackery_493_off_callback ) |
| 608 | 608 | { |
| 609 | running_device *pia = devtag_get_device(machine, "pia0"); | |
| 610 | pia6821_ca1_w(pia, 0, 0); | |
| 609 | running_device *pia = machine->device("pia0"); | |
| 610 | pia6821_ca1_w(pia, 0); | |
| 611 | 611 | } |
| 612 | 612 | |
| 613 | 613 | |
| 614 | 614 | static TIMER_CALLBACK( zwackery_493_callback ) |
| 615 | 615 | { |
| 616 | running_device *pia = | |
| 616 | running_device *pia = m | |
| 617 | 617 | |
| 618 | pia6821_ca1_w(pia, | |
| 618 | pia6821_ca1_w(pia, | |
| 619 | 619 | timer_set(machine, machine->primary_screen->scan_period(), NULL, 0, zwackery_493_off_callback); |
| 620 | 620 | } |
| 621 | 621 |
| r8581 | r8582 | |
|---|---|---|
| 43 | 43 | |
| 44 | 44 | fd1094_state = state; |
| 45 | 45 | |
| 46 | cpu_set_reg( | |
| 46 | cpu_set_reg(m | |
| 47 | 47 | |
| 48 | 48 | /* set the s24_fd1094 state ready to decrypt.. */ |
| 49 | 49 | state = fd1094_set_state(s24_fd1094_key,state) & 0xff; |
| r8581 | r8582 | |
| 56 | 56 | /* copy cached state */ |
| 57 | 57 | s24_fd1094_userregion = s24_fd1094_cacheregion[i]; |
| 58 | 58 | memory_set_decrypted_region(cputag_get_address_space(machine, "sub", ADDRESS_SPACE_PROGRAM), 0, s24_fd1094_cpuregionsize - 1, s24_fd1094_userregion); |
| 59 | m68k_set_encrypted_opcode_range( | |
| 59 | m68k_set_encrypted_opcode_range(m | |
| 60 | 60 | |
| 61 | 61 | return; |
| 62 | 62 | } |
| r8581 | r8582 | |
| 77 | 77 | /* copy newly decrypted data to user region */ |
| 78 | 78 | s24_fd1094_userregion = s24_fd1094_cacheregion[fd1094_current_cacheposition]; |
| 79 | 79 | memory_set_decrypted_region(cputag_get_address_space(machine, "sub", ADDRESS_SPACE_PROGRAM), 0, s24_fd1094_cpuregionsize - 1, s24_fd1094_userregion); |
| 80 | m68k_set_encrypted_opcode_range( | |
| 80 | m68k_set_encrypted_opcode_range(m | |
| 81 | 81 | |
| 82 | 82 | fd1094_current_cacheposition++; |
| 83 | 83 | |
| r8581 | r8582 | |
| 130 | 130 | s24_fd1094_setstate_and_decrypt(machine, FD1094_STATE_RESET); |
| 131 | 131 | s24_fd1094_kludge_reset_values(); |
| 132 | 132 | |
| 133 | m68k_set_cmpild_callback(devtag_get_device(machine, "sub"), s24_fd1094_cmp_callback); | |
| 134 | m68k_set_rte_callback(devtag_get_device(machine, "sub"), s24_fd1094_rte_callback); | |
| 135 | cpu_set_irq_callback(devtag_get_device(machine, "sub"), s24_fd1094_int_callback); | |
| 133 | m68k_set_cmpild_callback(machine->device("sub"), s24_fd1094_cmp_callback); | |
| 134 | m68k_set_rte_callback(machine->device("sub"), s24_fd1094_rte_callback); | |
| 135 | cpu_set_irq_callback(machine->device("sub"), s24_fd1094_int_callback); | |
| 136 | 136 | |
| 137 | 137 | machine->device("sub")->reset(); |
| 138 | 138 | } |
| r8581 | r8582 | |
|---|---|---|
| 317 | 317 | READ32_HANDLER(archimedes_ioc_r) |
| 318 | 318 | { |
| 319 | 319 | #ifdef MESS |
| 320 | running_device *fdc = (running_device *) | |
| 320 | running_device *fdc = (running_device *) | |
| 321 | 321 | #endif |
| 322 | 322 | if (offset >= 0x80000 && offset < 0xc0000) |
| 323 | 323 | { |
| r8581 | r8582 | |
| 367 | 367 | WRITE32_HANDLER(archimedes_ioc_w) |
| 368 | 368 | { |
| 369 | 369 | #ifdef MESS |
| 370 | running_device *fdc = (running_device *) | |
| 370 | running_device *fdc = (running_device *) | |
| 371 | 371 | #endif |
| 372 | 372 | |
| 373 | 373 | if (offset >= 0x80000 && offset < 0xc0000) |
| r8581 | r8582 | |
| 597 | 597 | else |
| 598 | 598 | { |
| 599 | 599 | timer_adjust_oneshot(snd_timer, attotime_never, 0); |
| 600 | dac_signed_data_w( | |
| 600 | dac_signed_data_w( | |
| 601 | 601 | } |
| 602 | 602 | break; |
| 603 | 603 |
| r8581 | r8582 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | WRITE8_HANDLER( galaxold_nmi_enable_w ) |
| 47 | 47 | { |
| 48 | running_device *target = | |
| 48 | running_device *target = | |
| 49 | 49 | ttl7474_preset_w(target, data ? 1 : 0); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | |
| 53 | 53 | TIMER_DEVICE_CALLBACK( galaxold_interrupt_timer ) |
| 54 | 54 | { |
| 55 | running_device *target = | |
| 55 | running_device *target = | |
| 56 | 56 | |
| 57 | 57 | /* 128V, 64V and 32V go to D */ |
| 58 | 58 | ttl7474_d_w(target, ((param & 0xe0) != 0xe0) ? 1 : 0); |
| r8581 | r8582 | |
| 68 | 68 | |
| 69 | 69 | static void machine_reset_common(running_machine *machine, int line) |
| 70 | 70 | { |
| 71 | running_device *ttl7474_9m_1 = devtag_get_device(machine, "7474_9m_1"); | |
| 72 | running_device *ttl7474_9m_2 = devtag_get_device(machine, "7474_9m_2"); | |
| 71 | running_device *ttl7474_9m_1 = machine->device("7474_9m_1"); | |
| 72 | running_device *ttl7474_9m_2 = machine->device("7474_9m_2"); | |
| 73 | 73 | irq_line = line; |
| 74 | 74 | |
| 75 | 75 | /* initalize main CPU interrupt generator flip-flops */ |
| r8581 | r8582 | |
| 98 | 98 | MACHINE_RESET( hunchbkg ) |
| 99 | 99 | { |
| 100 | 100 | machine_reset_common(machine, 0); |
| 101 | cpu_set_irq_callback( | |
| 101 | cpu_set_irq_callback(m | |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | WRITE8_HANDLER( galaxold_coin_lockout_w ) |
| r8581 | r8582 | |
|---|---|---|
| 506 | 506 | |
| 507 | 507 | /* this is a big kludge: only allow a reset if the Z80 is stopped */ |
| 508 | 508 | /* at its endpoint; otherwise, we never get a result from the Z80 */ |
| 509 | if ((data & 0x10) || cpu_get_reg( | |
| 509 | if ((data & 0x10) || cpu_get_reg(m | |
| 510 | 510 | { |
| 511 | 511 | cputag_set_input_line(machine, "sub", INPUT_LINE_RESET, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| 512 | 512 |
| r8581 | r8582 | |
|---|---|---|
| 108 | 108 | { |
| 109 | 109 | if ((data & 0x07) == 0) |
| 110 | 110 | { |
| 111 | running_device *via_0 = | |
| 111 | running_device *via_0 = | |
| 112 | 112 | memory_install_write8_handler(space, 0xc600, 0xc7ff, 0, 0, watchdog_reset_w); |
| 113 | 113 | memory_install_write8_handler(space, 0xc800, 0xc9ff, 0, 0, beezer_map_w); |
| 114 | 114 | memory_install_read8_handler(space, 0xca00, 0xcbff, 0, 0, beezer_line_r); |
| r8581 | r8582 | |
|---|---|---|
| 172 | 172 | const pia6821_interface williams2_pia_1_intf = |
| 173 | 173 | { |
| 174 | 174 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_INPUT_PORT("IN2"), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 175 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams2_snd_cmd_w), DEVCB_NULL, DEVCB_DEVICE_ | |
| 175 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams2_snd_cmd_w), DEVCB_NULL, DEVCB_DEVICE_ | |
| 176 | 176 | /*irqs : A/B */ DEVCB_LINE(williams_main_irq), DEVCB_LINE(williams_main_irq) |
| 177 | 177 | }; |
| 178 | 178 | |
| r8581 | r8582 | |
| 180 | 180 | const pia6821_interface williams2_snd_pia_intf = |
| 181 | 181 | { |
| 182 | 182 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 183 | /*outputs: A/B,CA/B2 */ DEVCB_DEVICE_HANDLER("pia_1", pia6821_portb_w), DEVCB_DEVICE_HANDLER("wmsdac", dac_w), DEVCB_DEVICE_ | |
| 183 | /*outputs: A/B,CA/B2 */ DEVCB_DEVICE_HANDLER("pia_1", pia6821_portb_w), DEVCB_DEVICE_HANDLER("wmsdac", dac_w), DEVCB_DEVICE_ | |
| 184 | 184 | /*irqs : A/B */ DEVCB_LINE(williams_snd_irq), DEVCB_LINE(williams_snd_irq) |
| 185 | 185 | }; |
| 186 | 186 | |
| r8581 | r8582 | |
| 204 | 204 | const pia6821_interface mysticm_pia_1_intf = |
| 205 | 205 | { |
| 206 | 206 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_INPUT_PORT("IN2"), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 207 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams2_snd_cmd_w), DEVCB_NULL, DEVCB_DEVICE_ | |
| 207 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams2_snd_cmd_w), DEVCB_NULL, DEVCB_DEVICE_ | |
| 208 | 208 | /*irqs : A/B */ DEVCB_LINE(mysticm_main_irq), DEVCB_LINE(mysticm_main_irq) |
| 209 | 209 | }; |
| 210 | 210 | |
| r8581 | r8582 | |
| 220 | 220 | const pia6821_interface tshoot_pia_1_intf = |
| 221 | 221 | { |
| 222 | 222 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_INPUT_PORT("IN2"), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 223 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams2_snd_cmd_w), DEVCB_NULL, DEVCB_DEVICE_ | |
| 223 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams2_snd_cmd_w), DEVCB_NULL, DEVCB_DEVICE_ | |
| 224 | 224 | /*irqs : A/B */ DEVCB_LINE(tshoot_main_irq), DEVCB_LINE(tshoot_main_irq) |
| 225 | 225 | }; |
| 226 | 226 | |
| r8581 | r8582 | |
| 228 | 228 | const pia6821_interface tshoot_snd_pia_intf = |
| 229 | 229 | { |
| 230 | 230 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 231 | /*outputs: A/B,CA/B2 */ DEVCB_DEVICE_HANDLER("pia_1", pia6821_portb_w), DEVCB_DEVICE_HANDLER("wmsdac", dac_w), DEVCB_DEVICE_ | |
| 231 | /*outputs: A/B,CA/B2 */ DEVCB_DEVICE_HANDLER("pia_1", pia6821_portb_w), DEVCB_DEVICE_HANDLER("wmsdac", dac_w), DEVCB_DEVICE_ | |
| 232 | 232 | /*irqs : A/B */ DEVCB_LINE(williams_snd_irq), DEVCB_LINE(williams_snd_irq) |
| 233 | 233 | }; |
| 234 | 234 | |
| r8581 | r8582 | |
| 236 | 236 | const pia6821_interface joust2_pia_1_intf = |
| 237 | 237 | { |
| 238 | 238 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_INPUT_PORT("IN2"), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 239 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(joust2_snd_cmd_w), DEVCB_HANDLER(joust2_pia_3_cb1_w), DEVCB_DEVICE_ | |
| 239 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(joust2_snd_cmd_w), DEVCB_HANDLER(joust2_pia_3_cb1_w), DEVCB_DEVICE_ | |
| 240 | 240 | /*irqs : A/B */ DEVCB_LINE(williams_main_irq), DEVCB_LINE(williams_main_irq) |
| 241 | 241 | }; |
| 242 | 242 | |
| r8581 | r8582 | |
| 254 | 254 | int scanline = param; |
| 255 | 255 | |
| 256 | 256 | /* the IRQ signal comes into CB1, and is set to VA11 */ |
| 257 | pia6821_cb1_w(pia_1, | |
| 257 | pia6821_cb1_w(pia_1, | |
| 258 | 258 | |
| 259 | 259 | /* set a timer for the next update */ |
| 260 | 260 | scanline += 0x20; |
| r8581 | r8582 | |
| 268 | 268 | pia6821_device *pia_1 = machine->device<pia6821_device>("pia_1"); |
| 269 | 269 | |
| 270 | 270 | /* the COUNT240 signal comes into CA1, and is set to the logical AND of VA10-VA13 */ |
| 271 | pia6821_ca1_w(pia_1, 0 | |
| 271 | pia6821_ca1_w(pia_1, 0 | |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | |
| r8581 | r8582 | |
| 277 | 277 | pia6821_device *pia_1 = timer.machine->device<pia6821_device>("pia_1"); |
| 278 | 278 | |
| 279 | 279 | /* the COUNT240 signal comes into CA1, and is set to the logical AND of VA10-VA13 */ |
| 280 | pia6821_ca1_w(pia_1, | |
| 280 | pia6821_ca1_w(pia_1, | |
| 281 | 281 | |
| 282 | 282 | /* set a timer to turn it off once the scanline counter resets */ |
| 283 | 283 | timer_set(timer.machine, timer.machine->primary_screen->time_until_pos(0), NULL, 0, williams_count240_off_callback); |
| r8581 | r8582 | |
| 398 | 398 | int scanline = param; |
| 399 | 399 | |
| 400 | 400 | /* the IRQ signal comes into CB1, and is set to VA11 */ |
| 401 | pia6821_cb1_w(pia_0, 0, scanline & 0x20); | |
| 402 | pia6821_ca1_w(pia_1, 0, scanline & 0x20); | |
| 401 | pia6821_cb1_w(pia_0, scanline & 0x20); | |
| 402 | pia6821_ca1_w(pia_1, scanline & 0x20); | |
| 403 | 403 | |
| 404 | 404 | /* set a timer for the next update */ |
| 405 | 405 | scanline += 0x20; |
| r8581 | r8582 | |
| 413 | 413 | pia6821_device *pia_0 = machine->device<pia6821_device>("pia_0"); |
| 414 | 414 | |
| 415 | 415 | /* the /ENDSCREEN signal comes into CA1 */ |
| 416 | pia6821_ca1_w(pia_0, | |
| 416 | pia6821_ca1_w(pia_0, | |
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | |
| r8581 | r8582 | |
| 422 | 422 | pia6821_device *pia_0 = timer.machine->device<pia6821_device>("pia_0"); |
| 423 | 423 | |
| 424 | 424 | /* the /ENDSCREEN signal comes into CA1 */ |
| 425 | pia6821_ca1_w(pia_0, 0 | |
| 425 | pia6821_ca1_w(pia_0, 0 | |
| 426 | 426 | |
| 427 | 427 | /* set a timer to turn it off once the scanline counter resets */ |
| 428 | 428 | timer_set(timer.machine, timer.machine->primary_screen->time_until_pos(8), NULL, 0, williams2_endscreen_off_callback); |
| r8581 | r8582 | |
| 540 | 540 | pia6821_device *pia_2 = machine->device<pia6821_device>("pia_2"); |
| 541 | 541 | |
| 542 | 542 | pia6821_portb_w(pia_2, 0, param); |
| 543 | pia6821_cb1_w(pia_2, | |
| 543 | pia6821_cb1_w(pia_2, | |
| 544 | 544 | } |
| 545 | 545 | |
| 546 | 546 | WRITE8_DEVICE_HANDLER( williams_snd_cmd_w ) |
| r8581 | r8582 | |
| 957 | 957 | |
| 958 | 958 | /* standard init */ |
| 959 | 959 | MACHINE_RESET_CALL(williams2); |
| 960 | pia6821_ca1_w(pia_3, | |
| 960 | pia6821_ca1_w(pia_3, | |
| 961 | 961 | } |
| 962 | 962 | |
| 963 | 963 | |
| r8581 | r8582 | |
| 973 | 973 | pia6821_device *pia_3 = device->machine->device<pia6821_device>("cvsdpia"); |
| 974 | 974 | |
| 975 | 975 | joust2_current_sound_data = (joust2_current_sound_data & ~0x100) | ((data << 8) & 0x100); |
| 976 | pia6821_cb1_w(pia_3, | |
| 976 | pia6821_cb1_w(pia_3, | |
| 977 | 977 | } |
| 978 | 978 | |
| 979 | 979 |
| r8581 | r8582 | |
|---|---|---|
| 721 | 721 | } |
| 722 | 722 | |
| 723 | 723 | memory_set_decrypted_region(space, 0x000000, length - 1, dec); |
| 724 | m68k_set_encrypted_opcode_range( | |
| 724 | m68k_set_encrypted_opcode_range(m | |
| 725 | 725 | } |
| 726 | 726 | |
| 727 | 727 | |
| r8581 | r8582 | |
| 844 | 844 | { "sfzjr1", { 0x8db3167a,0xc29e0f45 }, 0x080000 }, // 0C80 0564 2194 cmpi.l #$05642194,D0 |
| 845 | 845 | { "sfzjr2", { 0x8db3167a,0xc29e0f45 }, 0x080000 }, // 0C80 0564 2194 cmpi.l #$05642194,D0 |
| 846 | 846 | { "sfzh", { 0x876b0e39,0x5ca24fd1 }, 0x080000 }, // 0C80 0564 2194 cmpi.l #$05642194,D0 |
| 847 | { "sfzhr1", { 0x876b0e39,0x5ca24fd1 }, 0x080000 }, // 0C80 0564 2194 cmpi.l #$05642194,D0 | |
| 847 | 848 | { "sfzb", { 0xef415bd3,0x7a92c680 }, 0x080000 }, // 0C80 0564 2194 cmpi.l #$05642194,D0 |
| 848 | 849 | { "sfzbr1", { 0xef415bd3,0x7a92c680 }, 0x080000 }, // 0C80 0564 2194 cmpi.l #$05642194,D0 |
| 849 | 850 | { "mmancp2u", { 0x054893fa,0x94642525 }, 0x100000 }, // 0C80 0564 2194 cmpi.l #$05642194,D0 |
| r8581 | r8582 | |
|---|---|---|
| 113 | 113 | break; |
| 114 | 114 | |
| 115 | 115 | case 7: /* NVRAM array recall */ |
| 116 | x2212_array_recall( | |
| 116 | x2212_array_recall( | |
| 117 | 117 | break; |
| 118 | 118 | } |
| 119 | 119 | } |
| r8581 | r8582 | |
|---|---|---|
| 13 | 13 | WRITE8_HANDLER( atarifb_out1_w ) |
| 14 | 14 | { |
| 15 | 15 | atarifb_state *state = (atarifb_state *)space->machine->driver_data; |
| 16 | running_device *discrete = | |
| 16 | running_device *discrete = | |
| 17 | 17 | |
| 18 | 18 | state->CTRLD = data; |
| 19 | 19 | |
| r8581 | r8582 | |
| 27 | 27 | WRITE8_HANDLER( atarifb4_out1_w ) |
| 28 | 28 | { |
| 29 | 29 | atarifb_state *state = (atarifb_state *)space->machine->driver_data; |
| 30 | running_device *discrete = | |
| 30 | running_device *discrete = | |
| 31 | 31 | |
| 32 | 32 | state->CTRLD = data; |
| 33 | 33 | |
| r8581 | r8582 | |
| 43 | 43 | WRITE8_HANDLER( abaseb_out1_w ) |
| 44 | 44 | { |
| 45 | 45 | atarifb_state *state = (atarifb_state *)space->machine->driver_data; |
| 46 | running_device *discrete = | |
| 46 | running_device *discrete = | |
| 47 | 47 | |
| 48 | 48 | state->CTRLD = data; |
| 49 | 49 | |
| r8581 | r8582 | |
| 70 | 70 | WRITE8_HANDLER( soccer_out1_w ) |
| 71 | 71 | { |
| 72 | 72 | atarifb_state *state = (atarifb_state *)space->machine->driver_data; |
| 73 | running_device *discrete = | |
| 73 | running_device *discrete = | |
| 74 | 74 | |
| 75 | 75 | state->CTRLD = data; |
| 76 | 76 | |
| r8581 | r8582 | |
| 94 | 94 | |
| 95 | 95 | WRITE8_HANDLER( atarifb_out2_w ) |
| 96 | 96 | { |
| 97 | running_device *discrete = | |
| 97 | running_device *discrete = | |
| 98 | 98 | |
| 99 | 99 | discrete_sound_w(discrete, ATARIFB_CROWD_DATA, data & 0x0f); // Crowd |
| 100 | 100 | |
| r8581 | r8582 | |
| 104 | 104 | |
| 105 | 105 | WRITE8_HANDLER( soccer_out2_w ) |
| 106 | 106 | { |
| 107 | running_device *discrete = | |
| 107 | running_device *discrete = | |
| 108 | 108 | |
| 109 | 109 | discrete_sound_w(discrete, ATARIFB_CROWD_DATA, data & 0x0f); // Crowd |
| 110 | 110 |
| r8581 | r8582 | |
|---|---|---|
| 86 | 86 | state->xtraram = auto_alloc_array_clear(machine, UINT8, 0x1000); |
| 87 | 87 | state->spriteram = auto_alloc_array_clear(machine, UINT16, 0x1000 / 2); |
| 88 | 88 | |
| 89 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 90 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 91 | state->k053260 = devtag_get_device(machine, "k053260"); | |
| 92 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 93 | state->k053246 = devtag_get_device(machine, "k053246"); | |
| 94 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 89 | state->maincpu = machine->device("maincpu"); | |
| 90 | state->audiocpu = machine->device("audiocpu"); | |
| 91 | state->k053260 = machine->device("k053260"); | |
| 92 | state->k052109 = machine->device("k052109"); | |
| 93 | state->k053246 = machine->device("k053246"); | |
| 94 | state->k053251 = machine->device("k053251"); | |
| 95 | 95 | |
| 96 | 96 | state_save_register_global(machine, state->firq_enabled); |
| 97 | 97 | state_save_register_global(machine, state->video_bank); |
| r8581 | r8582 | |
| 109 | 109 | simpsons_state *state = (simpsons_state *)machine->driver_data; |
| 110 | 110 | int i; |
| 111 | 111 | |
| 112 | konami_configure_set_lines( | |
| 112 | konami_configure_set_lines(m | |
| 113 | 113 | |
| 114 | 114 | for (i = 0; i < 3; i++) |
| 115 | 115 | { |
| r8581 | r8582 | |
|---|---|---|
| 2035 | 2035 | if (copro_fifoout_num == 0) |
| 2036 | 2036 | { |
| 2037 | 2037 | // Reading from empty FIFO causes the v60 to enter wait state |
| 2038 | v60_stall( | |
| 2038 | v60_stall( | |
| 2039 | 2039 | |
| 2040 | 2040 | timer_call_after_resynch(space->machine, NULL, 0, NULL); |
| 2041 | 2041 |
| r8581 | r8582 | |
|---|---|---|
| 209 | 209 | memory_set_bank(machine, "bank1", 0); |
| 210 | 210 | memory_set_bank(machine, "bank2", 0); |
| 211 | 211 | |
| 212 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 213 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 214 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 215 | state->k007232_1 = devtag_get_device(machine, "k007232_1"); | |
| 216 | state->k007232_2 = devtag_get_device(machine, "k007232_2"); | |
| 217 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 218 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 219 | state->k051316 = devtag_get_device(machine, "k051316"); | |
| 212 | state->maincpu = machine->device("maincpu"); | |
| 213 | state->audiocpu = machine->device("audiocpu"); | |
| 214 | state->subcpu = machine->device("sub"); | |
| 215 | state->k007232_1 = machine->device("k007232_1"); | |
| 216 | state->k007232_2 = machine->device("k007232_2"); | |
| 217 | state->k052109 = machine->device("k052109"); | |
| 218 | state->k051960 = machine->device("k051960"); | |
| 219 | state->k051316 = machine->device("k051316"); | |
| 220 | 220 | |
| 221 | 221 | state_save_register_global(machine, state->priority); |
| 222 | 222 | state_save_register_global(machine, state->firq_enable); |
| r8581 | r8582 | |
|---|---|---|
| 100 | 100 | |
| 101 | 101 | mw8080bw_create_interrupt_timer(machine); |
| 102 | 102 | |
| 103 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 104 | state->samples = devtag_get_device(machine, "samples"); | |
| 105 | state->samples1 = devtag_get_device(machine, "samples1"); | |
| 106 | state->samples2 = devtag_get_device(machine, "samples2"); | |
| 107 | state->sn = devtag_get_device(machine, "snsnd"); | |
| 108 | state->sn1 = devtag_get_device(machine, "sn1"); | |
| 109 | state->sn2 = devtag_get_device(machine, "sn2"); | |
| 110 | state->discrete = devtag_get_device(machine, "discrete"); | |
| 111 | state->speaker = devtag_get_device(machine, "speaker"); | |
| 112 | state->mb14241 = devtag_get_device(machine, "mb14241"); | |
| 103 | state->maincpu = machine->device("maincpu"); | |
| 104 | state->samples = machine->device("samples"); | |
| 105 | state->samples1 = machine->device("samples1"); | |
| 106 | state->samples2 = machine->device("samples2"); | |
| 107 | state->sn = machine->device("snsnd"); | |
| 108 | state->sn1 = machine->device("sn1"); | |
| 109 | state->sn2 = machine->device("sn2"); | |
| 110 | state->discrete = machine->device("discrete"); | |
| 111 | state->speaker = machine->device("speaker"); | |
| 112 | state->mb14241 = machine->device("mb14241"); | |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 |
| r8581 | r8582 | |
|---|---|---|
| 284 | 284 | { |
| 285 | 285 | nitedrvr_state *state = (nitedrvr_state *)machine->driver_data; |
| 286 | 286 | |
| 287 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 288 | state->discrete = devtag_get_device(machine, "discrete"); | |
| 287 | state->maincpu = machine->device("maincpu"); | |
| 288 | state->discrete = machine->device("discrete"); | |
| 289 | 289 | |
| 290 | 290 | state_save_register_global(machine, state->gear); |
| 291 | 291 | state_save_register_global(machine, state->track); |
| r8581 | r8582 | |
|---|---|---|
| 1635 | 1635 | DRIVER( uccopsar ) /* (c) 1992 Irem (World) */ |
| 1636 | 1636 | DRIVER( uccopsj ) /* (c) 1992 Irem (Japan) */ |
| 1637 | 1637 | DRIVER( mysticri ) /* (c) 1992 Irem (World) */ |
| 1638 | DRIVER( mysticrib ) /* bootleg? */ | |
| 1638 | 1639 | DRIVER( gunhohki ) /* (c) 1992 Irem (Japan) */ |
| 1639 | 1640 | DRIVER( majtitl2 ) /* (c) 1992 Irem (World) */ |
| 1640 | 1641 | DRIVER( majtitl2j ) /* (c) 1992 Irem (Japan) */ |
| r8581 | r8582 | |
| 1810 | 1811 | DRIVER( storming ) /* A64 (c) 1986 Taito Corporation */ |
| 1811 | 1812 | DRIVER( daikaiju ) /* A74 (c) 1986 Taito */ |
| 1812 | 1813 | DRIVER( tokio ) /* A71 1986 */ |
| 1814 | DRIVER( tokioo ) /* A71 1986 */ | |
| 1813 | 1815 | DRIVER( tokiou ) /* A71 1986 */ |
| 1814 | 1816 | DRIVER( tokiob ) /* bootleg */ |
| 1815 | 1817 | DRIVER( bublbobl ) /* A78 (c) 1986 Taito Corporation */ |
| r8581 | r8582 | |
| 2715 | 2717 | DRIVER( kodu ) /* 10/09/1991 (c) 1991 (US) */ |
| 2716 | 2718 | DRIVER( kodj ) /* 05/08/1991 (c) 1991 (Japan) */ |
| 2717 | 2719 | DRIVER( kodb ) /* bootleg */ |
| 2718 | DRIVER( captcomm ) /* 14/10/1991 (c) 1991 (World) */ | |
| 2720 | DRIVER( captcomm ) /* 02/12/1991 (c) 1991 (World) */ | |
| 2721 | DRIVER( captcommr1 ) /* 14/10/1991 (c) 1991 (World) */ | |
| 2719 | 2722 | DRIVER( captcommu ) /* 28/ 9/1991 (c) 1991 (US) */ |
| 2720 | 2723 | DRIVER( captcommj ) /* 02/12/1991 (c) 1991 (Japan) */ |
| 2721 | 2724 | DRIVER( captcommb ) /* bootleg */ |
| r8581 | r8582 | |
| 2879 | 2882 | DRIVER( sfzj ) /* 27/07/1995 (c) 1995 (Japan) */ |
| 2880 | 2883 | DRIVER( sfzjr1 ) /* 27/06/1995 (c) 1995 (Japan) */ |
| 2881 | 2884 | DRIVER( sfzjr2 ) /* 05/06/1995 (c) 1995 (Japan) */ |
| 2882 | DRIVER( sfzh ) /* 27/06/1995 (c) 1995 (Hispanic) */ | |
| 2885 | DRIVER( sfzh ) /* 18/07/1995 (c) 1995 (Hispanic) */ | |
| 2886 | DRIVER( sfzhr1 ) /* 27/06/1995 (c) 1995 (Hispanic) */ | |
| 2883 | 2887 | DRIVER( sfzb ) /* 09/11/1995 (c) 1995 (Brazil) */ |
| 2884 | 2888 | DRIVER( sfzbr1 ) /* 27/07/1995 (c) 1995 (Brazil) */ |
| 2885 | 2889 | DRIVER( mmancp2u ) /* 06/10/1995 (c) 1995 (Japan) */ |
| r8581 | r8582 | |
| 3894 | 3898 | DRIVER( timescan1 ) /* (c) 1987 (FD1089B, decrypted) */ |
| 3895 | 3899 | DRIVER( wb31 ) /* (c) 1988 Sega / Westone (FD1094, decrypted) */ |
| 3896 | 3900 | DRIVER( wb35 ) /* (c) 1988 Sega / Westone (FD1089A, decrypted) */ |
| 3901 | DRIVER( wb35a ) /* (c) 1988 Sega / Westone (FD1089A, decrypted) */ | |
| 3897 | 3902 | DRIVER( passsht16a )/* (c) 1988 */ |
| 3898 | 3903 | |
| 3899 | 3904 | /* System 16B */ |
| r8581 | r8582 | |
| 3905 | 3910 | DRIVER( altbeastj ) /* (c) 1988 (8751) */ |
| 3906 | 3911 | DRIVER( altbeast5 ) /* (c) 1988 (8751) */ |
| 3907 | 3912 | DRIVER( altbeast4 ) /* (c) 1988 (MC-8123B) */ |
| 3908 | DRIVER( altbeastj3 ) /* (c) 1988 (FD1094, decrypted) */ | |
| 3909 | 3913 | DRIVER( altbeast2 ) /* (c) 1988 (MC-8123B) */ |
| 3910 | 3914 | DRIVER( altbeastj1 ) /* (c) 1988 (protected) */ |
| 3915 | DRIVER( altbeastj2 ) /* (c) 1988 (protected) */ | |
| 3916 | DRIVER( altbeastj3 ) /* (c) 1988 (FD1094, decrypted) */ | |
| 3911 | 3917 | DRIVER( aurail ) /* (c) 1990 Sega / Westone */ |
| 3912 | 3918 | DRIVER( aurail1 ) /* (c) 1990 Sega / Westone (FD1089B, decrypted) */ |
| 3913 | 3919 | DRIVER( aurailj ) /* (C) 1990 Sega / Westone (FD1089A, decrypted) */ |
| r8581 | r8582 | |
| 4826 | 4832 | /* 2005.04 Virtua Striker 4 ver.A */ |
| 4827 | 4833 | /* 2005.08 Avalon no Kagi ver.2.5 Kagi Seisen */ |
| 4828 | 4834 | /* 2005.12 Mario Kart Arcade Grand Prix */ |
| 4829 | | |
| 4835 | DRIVER( vs42006 ) /* 2006.05 Virtua Striker 4 ver.2006 */ | |
| 4830 | 4836 | /* 2007.03 Mario Kart Arcade Grand Prix 2 */ |
| 4831 | 4837 | |
| 4832 | 4838 | DRIVER( tfupdate ) /* Triforce GDROM Boot Update (GDT-0011) */ |
| r8581 | r8582 | |
| 4838 | 4844 | DRIVER( vcop3 ) /* 2003.04 Virtua Cop 3 */ |
| 4839 | 4845 | DRIVER( outr2 ) /* 2003.12 Outrun 2 */ |
| 4840 | 4846 | /* 2004.03 Sega Network Taisen Mahjong MJ 2 */ |
| 4841 | | |
| 4847 | DRIVER( ollie ) /* 2004.03 Ollie King */ | |
| 4842 | 4848 | /* 2004.04 Sega Network Taisen Mahjong MJ 2 ver.B */ |
| 4843 | 4849 | DRIVER( wangmid ) /* 2004.07 Wangan Midnight Maximum Tune */ |
| 4844 | 4850 | DRIVER( mj2 ) /* 2004.07 Sega Network Taisen Mahjong MJ 2 ver.C */ |
| r8581 | r8582 | |
| 4851 | 4857 | DRIVER( ghostsqu ) /* 2004.12 Ghost Squad */ |
| 4852 | 4858 | /* 2004.12 Quest of D ver.1.10a */ |
| 4853 | 4859 | /* 2005.03 Sangokushi Taisen */ |
| 4854 | | |
| 4860 | DRIVER( gundamos ) /* 2005.03 Kidou Senshi Gundam Battle Operating Simulator */ | |
| 4855 | 4861 | /* 2005.04 Quest of D ver.1.20 */ |
| 4856 | 4862 | /* 2005.04 Sega Network Taisen Mahjong MJ 2 ver.E */ |
| 4857 | 4863 | DRIVER( wangmid2 ) /* 2005.04 Wangan Midnight Maximum Tune 2 */ |
| r8581 | r8582 | |
| 4866 | 4872 | /* 2005.12 Kidou Senshi Gundam 0079 Card Builder */ |
| 4867 | 4873 | DRIVER( mj3 ) /* 2005.12 Sega Network Taisen Mahjong MJ 3 */ |
| 4868 | 4874 | /* 2005.12 Quest of D Gofu no Keisyousya ver.2.01 */ |
| 4869 | | |
| 4875 | DRIVER( scg06nt ) /* 2005.12 Sega Golf Club 2006 Next Tours */ | |
| 4870 | 4876 | /* 2006.02 Sangokushi Taisen Ranse no Gunrou ver.1.12 */ |
| 4871 | 4877 | /* 2006.03 Kidou Senshi Gundam 0079 Card Builder ver.1.007 */ |
| 4872 | 4878 | /* 2006.03 Quest of D Gofu no Keisyousya ver.2.02b */ |
| r8581 | r8582 | |
| 5319 | 5325 | DRIVER( ryukendna ) /* 6215 - (c) 1989 Tecmo (Japan) */ |
| 5320 | 5326 | DRIVER( mastninj ) /* bootleg */ |
| 5321 | 5327 | DRIVER( wildfang ) /* (c) 1989 Tecmo */ |
| 5328 | DRIVER( wildfangs ) /* (c) 1989 Tecmo */ | |
| 5322 | 5329 | DRIVER( tknight ) /* (c) 1989 Tecmo */ |
| 5323 | 5330 | DRIVER( stratof ) /* (c) 1991 Tecmo */ |
| 5324 | 5331 | DRIVER( raiga ) /* (c) 1991 Tecmo */ |
| r8581 | r8582 | |
| 6477 | 6484 | DRIVER( 2020bba ) /* 0030 (c) 1991 SNK / Pallas */ |
| 6478 | 6485 | DRIVER( 2020bbh ) /* 0030 (c) 1991 SNK / Pallas */ |
| 6479 | 6486 | DRIVER( socbrawl ) /* 0031 (c) 1991 SNK */ |
| 6480 | DRIVER( socbrawl | |
| 6487 | DRIVER( socbrawlh ) /* 0031 (c) 1991 SNK */ | |
| 6481 | 6488 | DRIVER( roboarmy ) /* 0032 (c) 1991 SNK */ |
| 6482 | 6489 | DRIVER( fatfury1 ) /* 0033 (c) 1991 SNK */ |
| 6483 | 6490 | DRIVER( fbfrenzy ) /* 0034 (c) 1992 SNK */ |
| r8581 | r8582 | |
| 6547 | 6554 | DRIVER( tws96 ) /* 0086 (c) 1996 Tecmo */ |
| 6548 | 6555 | DRIVER( samsho3 ) /* 0087 (c) 1995 SNK */ |
| 6549 | 6556 | DRIVER( samsho3h ) /* 0087 (c) 1995 SNK */ |
| 6550 | DRIVER( fswords ) /* Korean hack of samsho3 */ | |
| 6557 | DRIVER( fswords ) /* 0187 Korean hack of samsho3 */ | |
| 6551 | 6558 | DRIVER( stakwin ) /* 0088 (c) 1995 Saurus */ |
| 6552 | 6559 | DRIVER( pulstar ) /* 0089 (c) 1995 Aicom */ |
| 6553 | 6560 | DRIVER( whp ) /* 0090 (c) 1995 ADK / SNK */ |
| r8581 | r8582 | |
| 6558 | 6565 | DRIVER( rbff1 ) /* 0095 (c) 1995 SNK */ |
| 6559 | 6566 | DRIVER( rbff1a ) /* 0095 (c) 1995 SNK */ |
| 6560 | 6567 | DRIVER( aof3 ) /* 0096 (c) 1996 SNK */ |
| 6561 | DRIVER( aof3k ) /* Censored Korean release of aof3 */ | |
| 6568 | DRIVER( aof3k ) /* 0196 Censored Korean release of aof3 */ | |
| 6562 | 6569 | DRIVER( sonicwi3 ) /* 0097 (c) 1995 Video System Co. */ |
| 6563 | 6570 | /* 0098 Idol Mahjong - final romance 2 (CD only? not confirmed, MVS might exist) */ |
| 6564 | 6571 | /* 0099 Neo Pool Masters */ |
| r8581 | r8582 | |
| 6605 | 6612 | DRIVER( magdrop3 ) /* 0233 (c) 1997 Data East Corporation */ |
| 6606 | 6613 | DRIVER( lastblad ) /* 0234 (c) 1997 SNK */ |
| 6607 | 6614 | DRIVER( lastbladh ) /* 0234 (c) 1997 SNK */ |
| 6608 | DRIVER( lastsold ) /* Censored Korean release of lastblad */ | |
| 6615 | DRIVER( lastsold ) /* 0196 Censored Korean release of lastblad */ | |
| 6609 | 6616 | DRIVER( puzzldpr ) /* 0235 (c) 1997 Taito (Visco license) */ |
| 6610 | 6617 | DRIVER( irrmaze ) /* 0236 (c) 1997 SNK / Saurus */ |
| 6611 | 6618 | DRIVER( popbounc ) /* 0237 (c) 1997 Video System Co. */ |
| r8581 | r8582 | |
| 6614 | 6621 | DRIVER( blazstar ) /* 0239 (c) 1998 Yumekobo */ |
| 6615 | 6622 | DRIVER( rbff2 ) /* 0240 (c) 1998 SNK */ |
| 6616 | 6623 | DRIVER( rbff2h ) /* 0240 (c) 1998 SNK */ |
| 6617 | DRIVER( rbff2k ) /* Censored Korean release of rbff2 */ | |
| 6624 | DRIVER( rbff2k ) /* 0140 Censored Korean release of rbff2 */ | |
| 6618 | 6625 | DRIVER( mslug2 ) /* 0241 (c) 1998 SNK */ |
| 6619 | 6626 | DRIVER( kof98 ) /* 0242 (c) 1998 SNK */ |
| 6620 | 6627 | DRIVER( kof98k ) /* 0242 (c) 1998 SNK */ |
| r8581 | r8582 | |
| 6632 | 6639 | DRIVER( kof99 ) /* 0251 (c) 1999 SNK */ |
| 6633 | 6640 | DRIVER( kof99a ) /* 0251 (c) 1999 SNK */ |
| 6634 | 6641 | DRIVER( kof99e ) /* 0251 (c) 1999 SNK */ |
| 6635 | DRIVER( kof99 | |
| 6642 | DRIVER( kof99k ) /* 0 | |
| 6636 | 6643 | DRIVER( kof99p ) /* 0251 (c) 1999 SNK */ |
| 6637 | 6644 | DRIVER( ganryu ) /* 0252 (c) 1999 Visco */ |
| 6638 | 6645 | DRIVER( garou ) /* 0253 (c) 1999 SNK */ |
| r8581 | r8582 | |
| 6993 | 7000 | DRIVER( trog4 ) /* (c) 1990 Midway */ |
| 6994 | 7001 | DRIVER( trog3 ) /* (c) 1990 Midway */ |
| 6995 | 7002 | DRIVER( trogpa6 ) /* (c) 1990 Midway */ |
| 6996 | DRIVER( trogp ) | |
| 7003 | DRIVER( trogpa4 ) | |
| 6997 | 7004 | DRIVER( smashtv ) /* (c) 1990 Williams */ |
| 6998 | 7005 | DRIVER( smashtv6 ) /* (c) 1990 Williams */ |
| 6999 | 7006 | DRIVER( smashtv5 ) /* (c) 1990 Williams */ |
| r8581 | r8582 | |
| 7022 | 7029 | DRIVER( mkla4 ) /* (c) 1992 Midway */ |
| 7023 | 7030 | DRIVER( mkyawdim ) /* bootleg */ |
| 7024 | 7031 | DRIVER( term2 ) /* (c) 1992 Midway */ |
| 7032 | DRIVER( term2la3 ) /* (c) 1992 Midway */ | |
| 7025 | 7033 | DRIVER( term2la2 ) /* (c) 1992 Midway */ |
| 7026 | 7034 | DRIVER( term2la1 ) /* (c) 1992 Midway */ |
| 7027 | 7035 | DRIVER( totcarn ) /* (c) 1992 Midway */ |
| r8581 | r8582 | |
| 7160 | 7168 | |
| 7161 | 7169 | /* Cinematronics vector games */ |
| 7162 | 7170 | DRIVER( spacewar ) /* (c) 1977 */ |
| 7171 | DRIVER( spaceshp ) /* (c) 1978 Cinematronics (Sega licence) */ | |
| 7163 | 7172 | DRIVER( barrier ) /* (c) 1979 Vectorbeam */ |
| 7164 | 7173 | DRIVER( starcas ) /* (c) 1980 */ |
| 7165 | 7174 | DRIVER( starcas1 ) /* (c) 1980 */ |
| r8581 | r8582 | |
| 7347 | 7356 | DRIVER( rfjeta ) /* (c) 1998 Seibu Kaihatsu (Dream Island license) */ |
| 7348 | 7357 | DRIVER( rfjetj ) /* (c) 1998 Seibu Kaihatsu */ |
| 7349 | 7358 | DRIVER( rfjetus ) /* (c) 1998 Seibu Kaihatsu (Fabtek license) */ |
| 7359 | DRIVER( rfjet2kc ) /* (c) 2000 Seibu Kaihatsu */ | |
| 7350 | 7360 | |
| 7351 | 7361 | DRIVER( ejsakura ) /* (c) 1999 Seibu Kaihatsu */ |
| 7352 | 7362 | DRIVER( ejsakura12 ) /* (c) 1999 Seibu Kaihatsu */ |
| r8581 | r8582 | |
| 9762 | 9772 | DRIVER( wcat3 ) |
| 9763 | 9773 | DRIVER( mtonic ) /* 198? (c) Tonic */ |
| 9764 | 9774 | DRIVER( magical ) /* 198? (c) Micro Manufacturing Ltd. */ |
| 9775 | DRIVER( magicala ) /* 198? (c) Micro Manufacturing Ltd. */ | |
| 9765 | 9776 | |
| 9766 | 9777 | DRIVER( sfbonus ) /* (c) 2003 Amcoe - Skill Fruit Bonus */ |
| 9767 | 9778 | DRIVER( sfbonusd1 ) /* (c) 2003 Amcoe */ |
| r8581 | r8582 | |
| 9774 | 9785 | DRIVER( parrot3v1 ) /* (c) 2004 Amcoe */ |
| 9775 | 9786 | DRIVER( parrot3o ) /* (c) 2004 Amcoe */ |
| 9776 | 9787 | DRIVER( hldspin1 ) /* (c) 2000 Amcoe - Hold & Spin I */ |
| 9777 | DRIVER( hldspin1dt )/* (c) 2000 Amcoe */ | |
| 9778 | DRIVER( hldspin1vt )/* (c) 2000 Amcoe */ | |
| 9788 | DRIVER( hldspin1dt ) /* (c) 2000 Amcoe */ | |
| 9789 | DRIVER( hldspin1vt ) /* (c) 2000 Amcoe */ | |
| 9779 | 9790 | DRIVER( hldspin1o ) /* (c) 2000 Amcoe */ |
| 9780 | 9791 | DRIVER( hldspin2 ) /* (c) 2000 Amcoe - Hold & Spin II */ |
| 9781 | DRIVER( hldspin2d1 )/* (c) 2000 Amcoe */ | |
| 9782 | DRIVER( hldspin2v1 )/* (c) 2000 Amcoe */ | |
| 9792 | DRIVER( hldspin2d1 ) /* (c) 2000 Amcoe */ | |
| 9793 | DRIVER( hldspin2v1 ) /* (c) 2000 Amcoe */ | |
| 9783 | 9794 | DRIVER( hldspin2o ) /* (c) 2000 Amcoe */ |
| 9784 | 9795 | DRIVER( fcnudge ) /* (c) 2003 Amcoe - Fruit Carnival Nudge */ |
| 9785 | 9796 | DRIVER( fcnudgeo ) /* (c) 2003 Amcoe */ |
| r8581 | r8582 | |
| 9826 | 9837 | DRIVER( pirpok2v1 ) /* (c) 2003 Amcoe */ |
| 9827 | 9838 | DRIVER( pirpok2o ) /* (c) 2003 Amcoe */ |
| 9828 | 9839 | DRIVER( anibonus ) /* (c) 2003 Amcoe - Animal Bonus */ |
| 9829 | DRIVER( anibonusv1 )/* (c) 2003 Amcoe */ | |
| 9830 | DRIVER( anibonusv2 )/* (c) 2003 Amcoe */ | |
| 9831 | DRIVER( anibonusb1 )/* (c) 2003 Amcoe */ | |
| 9832 | DRIVER( anibonusd1 )/* (c) 2003 Amcoe */ | |
| 9833 | DRIVER( anibonusb2 )/* (c) 2003 Amcoe */ | |
| 9834 | DRIVER( anibonusd2 )/* (c) 2003 Amcoe */ | |
| 9840 | DRIVER( anibonusv1 ) /* (c) 2003 Amcoe */ | |
| 9841 | DRIVER( anibonusv2 ) /* (c) 2003 Amcoe */ | |
| 9842 | DRIVER( anibonusb1 ) /* (c) 2003 Amcoe */ | |
| 9843 | DRIVER( anibonusd1 ) /* (c) 2003 Amcoe */ | |
| 9844 | DRIVER( anibonusb2 ) /* (c) 2003 Amcoe */ | |
| 9845 | DRIVER( anibonusd2 ) /* (c) 2003 Amcoe */ | |
| 9835 | 9846 | DRIVER( anibonuso ) /* (c) 2003 Amcoe */ |
| 9836 | DRIVER( anibonuso2 )/* (c) 2003 Amcoe */ | |
| 9837 | DRIVER( anibonuso3 )/* (c) 2003 Amcoe */ | |
| 9838 | DRIVER( anibonusxo )/* (c) 2003 Amcoe */ | |
| 9839 | DRIVER( anibonusxo2 )/* (c) 2003 Amcoe */ | |
| 9840 | DRIVER( anibonusxo3 )/* (c) 2003 Amcoe */ | |
| 9847 | DRIVER( anibonuso2 ) /* (c) 2003 Amcoe */ | |
| 9848 | DRIVER( anibonuso3 ) /* (c) 2003 Amcoe */ | |
| 9849 | DRIVER( anibonusxo ) /* (c) 2003 Amcoe */ | |
| 9850 | DRIVER( anibonusxo2 ) /* (c) 2003 Amcoe */ | |
| 9851 | DRIVER( anibonusxo3 ) /* (c) 2003 Amcoe */ | |
| 9841 | 9852 | DRIVER( abnudge ) /* (c) 2003 Amcoe - Animal Bonus Nudge */ |
| 9842 | 9853 | DRIVER( abnudgeb ) /* (c) 2003 Amcoe */ |
| 9843 | 9854 | DRIVER( abnudged ) /* (c) 2003 Amcoe */ |
| r8581 | r8582 | |
| 9848 | 9859 | DRIVER( dblchalv1 ) /* (c) 2003 Amcoe */ |
| 9849 | 9860 | DRIVER( dblchalo ) /* (c) 2003 Amcoe */ |
| 9850 | 9861 | DRIVER( anithunt ) /* (c) 2003 Amcoe - Animal Treasure Hunt */ |
| 9851 | DRIVER( anithuntd1 )/* (c) 2003 Amcoe */ | |
| 9852 | DRIVER( anithuntv1 )/* (c) 2003 Amcoe */ | |
| 9862 | DRIVER( anithuntd1 ) /* (c) 2003 Amcoe */ | |
| 9863 | DRIVER( anithuntv1 ) /* (c) 2003 Amcoe */ | |
| 9853 | 9864 | DRIVER( anithunto ) /* (c) 2003 Amcoe */ |
| 9854 | DRIVER( anithunto2 )/* (c) 2003 Amcoe */ | |
| 9865 | DRIVER( anithunto2 ) /* (c) 2003 Amcoe */ | |
| 9855 | 9866 | DRIVER( sfruitb ) /* (c) 2002 Amcoe - Super Fruit Bonus */ |
| 9856 | 9867 | DRIVER( sfruitbb1 ) /* (c) 2002 Amcoe */ |
| 9857 | 9868 | DRIVER( sfruitbd1 ) /* (c) 2002 Amcoe */ |
| r8581 | r8582 | |
| 9897 | 9908 | DRIVER( fb5c ) /* (c) 2005 Amcoe */ |
| 9898 | 9909 | DRIVER( fb5d ) /* (c) 2005 Amcoe */ |
| 9899 | 9910 | DRIVER( fb5v ) /* (c) 2005 Amcoe */ |
| 9900 | DRIVER( fb6 ) /* (c) 200? Amcoe - Fruit Bonus '06 - 10th anniversary */ | |
| 9901 | DRIVER( fb6v ) /* (c) 200? Amcoe */ | |
| 9902 | DRIVER( fb6d1 ) /* (c) 200? Amcoe */ | |
| 9903 | DRIVER( fb6s1 ) /* (c) 200? Amcoe */ | |
| 9904 | DRIVER( fb6v1 ) /* (c) 200? Amcoe */ | |
| 9905 | DRIVER( fb6d2 ) /* (c) 200? Amcoe */ | |
| 9906 | DRIVER( fb6s2 ) /* (c) 200? Amcoe */ | |
| 9907 | DRIVER( fb6v2 ) /* (c) 200? Amcoe */ | |
| 9908 | DRIVER( fb6se ) /* (c) 200? Amcoe - Fruit Bonus 2006 Special Edition */ | |
| 9909 | DRIVER( fb6sev ) /* (c) 200? Amcoe */ | |
| 9910 | DRIVER( fb6sed1 ) /* (c) 200? Amcoe */ | |
| 9911 | DRIVER( fb6sev1 ) /* (c) 200? Amcoe */ | |
| 9912 | DRIVER( fb6sed2 ) /* (c) 200? Amcoe */ | |
| 9913 | DRIVER( fb6sev2 ) /* (c) 200? Amcoe */ | |
| 9914 | DRIVER( version4 ) /* (c) 200? Amcoe - Version 4 ? */ | |
| 9915 | DRIVER( bugfever ) /* (c) 200? Amcoe - Bug Fever */ | |
| 9916 | DRIVER( bugfevero ) /* (c) 200? Amcoe */ | |
| 9917 | DRIVER( bugfeverd ) /* (c) 200? Amcoe */ | |
| 9918 | DRIVER( bugfeverv ) /* (c) 200? Amcoe */ | |
| 9919 | DRIVER( bugfeverv2 ) /* (c) 200? Amcoe */ | |
| 9920 | DRIVER( dvisland ) /* (c) 200? Amcoe - Devil's Island */ | |
| 9921 | DRIVER( funriver ) /* (c) 200? Amcoe - Fun River */ | |
| 9922 | DRIVER( funriverv ) /* (c) 200? Amcoe */ | |
| 9911 | DRIVER( fb6 ) /* (c) 2006 Amcoe - Fruit Bonus '06 - 10th anniversary */ | |
| 9912 | DRIVER( fb6v ) /* (c) 2006 Amcoe */ | |
| 9913 | DRIVER( fb6d1 ) /* (c) 2006 Amcoe */ | |
| 9914 | DRIVER( fb6s1 ) /* (c) 2006 Amcoe */ | |
| 9915 | DRIVER( fb6v1 ) /* (c) 2006 Amcoe */ | |
| 9916 | DRIVER( fb6d2 ) /* (c) 2006 Amcoe */ | |
| 9917 | DRIVER( fb6s2 ) /* (c) 2006 Amcoe */ | |
| 9918 | DRIVER( fb6v2 ) /* (c) 2006 Amcoe */ | |
| 9919 | DRIVER( fb6s3 ) /* (c) 2006 Amcoe */ | |
| 9920 | DRIVER( fb6se ) /* (c) 2006 Amcoe - Fruit Bonus 2006 Special Edition */ | |
| 9921 | DRIVER( fb6sev ) /* (c) 2006 Amcoe */ | |
| 9922 | DRIVER( fb6sed1 ) /* (c) 2006 Amcoe */ | |
| 9923 | DRIVER( fb6sev1 ) /* (c) 2006 Amcoe */ | |
| 9924 | DRIVER( fb6sed2 ) /* (c) 2006 Amcoe */ | |
| 9925 | DRIVER( fb6sev2 ) /* (c) 2006 Amcoe */ | |
| 9926 | DRIVER( version4 ) /* (c) 2006 Amcoe - Version 4 ? */ | |
| 9927 | DRIVER( bugfever ) /* (c) 2006 Amcoe - Bug Fever */ | |
| 9928 | DRIVER( bugfevero ) /* (c) 2006 Amcoe */ | |
| 9929 | DRIVER( bugfeverd ) /* (c) 2006 Amcoe */ | |
| 9930 | DRIVER( bugfeverv ) /* (c) 2006 Amcoe */ | |
| 9931 | DRIVER( bugfeverv2 ) /* (c) 2006 Amcoe */ | |
| 9932 | DRIVER( funriver ) /* (c) 2005 Amcoe - Fun River */ | |
| 9933 | DRIVER( funriverv ) /* (c) 2005 Amcoe */ | |
| 9934 | DRIVER( dvisland ) /* (c) 2006 Amcoe - Devil's Island */ | |
| 9935 | DRIVER( atworld ) /* (c) 2007 Amcoe - Around The World */ | |
| 9936 | DRIVER( atworldd1 ) /* (c) 2007 Amcoe */ | |
| 9923 | 9937 | DRIVER( amclink ) /* (c) 200? Amcoe - Amcoe Link Control Box? */ |
| 9924 | 9938 | |
| 9925 | 9939 | DRIVER( act2000 ) /* (c) 1999 Amcoe - Action 2000 */ |
| r8581 | r8582 | |
|---|---|---|
| 29 | 29 | DRIVER_INIT( mkyturbo ); |
| 30 | 30 | DRIVER_INIT( mkyawdim ); |
| 31 | 31 | DRIVER_INIT( term2 ); |
| 32 | DRIVER_INIT( term2la3 ); | |
| 32 | 33 | DRIVER_INIT( term2la2 ); |
| 33 | 34 | DRIVER_INIT( term2la1 ); |
| 34 | 35 | DRIVER_INIT( totcarn ); |
| r0 | r8582 | |
|---|---|---|
| 1 | class coolpool_state | |
| 2 | { | |
| 3 | public: | |
| 4 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, coolpool_state(machine)); } | |
| 5 | ||
| 6 | coolpool_state(running_machine &machine) { } | |
| 7 | ||
| 8 | UINT16 *vram_base; | |
| 9 | ||
| 10 | UINT8 cmd_pending; | |
| 11 | UINT16 iop_cmd; | |
| 12 | UINT16 iop_answer; | |
| 13 | int iop_romaddr; | |
| 14 | ||
| 15 | UINT8 newx[3]; | |
| 16 | UINT8 newy[3]; | |
| 17 | UINT8 oldx[3]; | |
| 18 | UINT8 oldy[3]; | |
| 19 | int dx[3]; | |
| 20 | int dy[3]; | |
| 21 | ||
| 22 | UINT16 result; | |
| 23 | UINT16 lastresult; | |
| 24 | }; |
| r8581 | r8582 | |
|---|---|---|
| 19 | 19 | size_t spriteram_size; |
| 20 | 20 | |
| 21 | 21 | /* video-related */ |
| 22 | tilemap_t | |
| 22 | tilemap_t | |
| 23 | 23 | bitmap_t *sprite_bitmap, *tile_bitmap_bg, *tile_bitmap_fg; |
| 24 | 24 | UINT16 tx_scroll_x, tx_scroll_y; |
| 25 | 25 | UINT16 bg_scroll_x, bg_scroll_y; |
| 26 | 26 | UINT16 fg_scroll_x, fg_scroll_y; |
| 27 | INT8 tx_offset_y, bg_offset_y, fg_offset_y, spr_offset_y; | |
| 27 | 28 | |
| 28 | 29 | /* misc */ |
| 29 | 30 | int sprite_sizey; |
| r8581 | r8582 | |
| 52 | 53 | WRITE16_HANDLER( gaiden_videoram3_w ); |
| 53 | 54 | READ16_HANDLER( gaiden_videoram3_r ); |
| 54 | 55 | |
| 56 | WRITE16_HANDLER( gaiden_flip_w ); | |
| 55 | 57 | WRITE16_HANDLER( gaiden_txscrollx_w ); |
| 56 | 58 | WRITE16_HANDLER( gaiden_txscrolly_w ); |
| 57 | 59 | WRITE16_HANDLER( gaiden_fgscrollx_w ); |
| 58 | 60 | WRITE16_HANDLER( gaiden_fgscrolly_w ); |
| 59 | 61 | WRITE16_HANDLER( gaiden_bgscrollx_w ); |
| 60 | 62 | WRITE16_HANDLER( gaiden_bgscrolly_w ); |
| 61 | WRITE16_HANDLER( gaiden_flip_w ); | |
| 63 | WRITE16_HANDLER( gaiden_txoffsety_w ); | |
| 64 | WRITE16_HANDLER( gaiden_fgoffsety_w ); | |
| 65 | WRITE16_HANDLER( gaiden_bgoffsety_w ); | |
| 66 | WRITE16_HANDLER( gaiden_sproffsety_w ); |
| r8581 | r8582 | |
|---|---|---|
| 24 | 24 | extern UINT16 *polepos_road16_memory; |
| 25 | 25 | extern UINT16 *polepos_alpha16_memory; |
| 26 | 26 | extern UINT16 *polepos_sprite16_memory; |
| 27 | extern int polepos_gear_bit; | |
| 28 | 27 | |
| 29 | 28 | VIDEO_START( polepos ); |
| 30 | 29 | PALETTE_INIT( polepos ); |
| r8581 | r8582 | |
|---|---|---|
| 1800 | 1800 | $(LAYOUT)/pe_keno.lh \ |
| 1801 | 1801 | $(LAYOUT)/pe_slots.lh |
| 1802 | 1802 | |
| 1803 | $(DRIVERS)/polepos.o: $(LAYOUT)/polepos.lh | |
| 1803 | $(DRIVERS)/polepos.o: $(LAYOUT)/polepos.lh \ | |
| 1804 | $(LAYOUT)/topracer.lh | |
| 1804 | 1805 | |
| 1805 | 1806 | $(DRIVERS)/qix.o: $(LAYOUT)/elecyoyo.lh |
| 1806 | 1807 | |
| r8581 | r8582 | |
| 1909 | 1910 | $(MAMESRC)/machine/snesst10.c \ |
| 1910 | 1911 | $(MAMESRC)/machine/snes7110.c \ |
| 1911 | 1912 | $(MAMESRC)/machine/snesbsx.c |
| 1913 | $(VIDEO)/jaguar.o: $(MAMESRC)/video/jagobj.c \ | |
| 1914 | $(MAMESRC)/video/jagblit.c | |
| 1912 | 1915 | $(VIDEO)/model2.o: $(MAMESRC)/video/model2rd.c |
| 1913 | 1916 | $(VIDEO)/model3.o: $(MAMESRC)/video/m3raster.c |
| 1917 | $(VIDEO)/n64.o: $(MAMESRC)/video/rdpfiltr.c |
| r8581 | r8582 | |
|---|---|---|
| 90 | 90 | data = antic.r.antic09; |
| 91 | 91 | break; |
| 92 | 92 | case 10: /* WSYNC read */ |
| 93 | cpu_spinuntil_trigger( | |
| 93 | cpu_spinuntil_trigger( | |
| 94 | 94 | antic.w.wsync = 1; |
| 95 | 95 | data = antic.r.antic0a; |
| 96 | 96 | break; |
| r8581 | r8582 | |
| 200 | 200 | break; |
| 201 | 201 | case 10: /* WSYNC write */ |
| 202 | 202 | LOG(("ANTIC 0A write WSYNC $%02X\n", data)); |
| 203 | cpu_spinuntil_trigger( | |
| 203 | cpu_spinuntil_trigger( | |
| 204 | 204 | antic.w.wsync = 1; |
| 205 | 205 | break; |
| 206 | 206 | case 11: |
| r8581 | r8582 | |
|---|---|---|
| 110 | 110 | int flipscreen = thief_video_control&1; |
| 111 | 111 | const UINT8 *source = screen->machine->generic.videoram.u8; |
| 112 | 112 | |
| 113 | if (tms9927_screen_reset( | |
| 113 | if (tms9927_screen_reset( | |
| 114 | 114 | { |
| 115 | 115 | bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine)); |
| 116 | 116 | return 0; |
| r8581 | r8582 | |
|---|---|---|
| 78 | 78 | int x; |
| 79 | 79 | |
| 80 | 80 | /* get parameters for the slave CPU */ |
| 81 | tms34010_get_display_params( | |
| 81 | tms34010_get_display_params( | |
| 82 | 82 | |
| 83 | 83 | /* compute info about the slave vram */ |
| 84 | 84 | if (fgparams.enabled && scanline >= fgparams.veblnk && scanline < fgparams.vsblnk && fgparams.heblnk < fgparams.hsblnk) |
| r8581 | r8582 | |
|---|---|---|
| 357 | 357 | |
| 358 | 358 | VIDEO_UPDATE( undrfire ) |
| 359 | 359 | { |
| 360 | running_device *tc0100scn = devtag_get_device(screen->machine, "tc0100scn"); | |
| 361 | running_device *tc0480scp = devtag_get_device(screen->machine, "tc0480scp"); | |
| 360 | running_device *tc0100scn = screen->machine->device("tc0100scn"); | |
| 361 | running_device *tc0480scp = screen->machine->device("tc0480scp"); | |
| 362 | 362 | UINT8 layer[5]; |
| 363 | 363 | UINT8 pivlayer[3]; |
| 364 | 364 | UINT16 priority; |
| r8581 | r8582 | |
| 503 | 503 | |
| 504 | 504 | VIDEO_UPDATE( cbombers ) |
| 505 | 505 | { |
| 506 | running_device *tc0100scn = devtag_get_device(screen->machine, "tc0100scn"); | |
| 507 | running_device *tc0480scp = devtag_get_device(screen->machine, "tc0480scp"); | |
| 506 | running_device *tc0100scn = screen->machine->device("tc0100scn"); | |
| 507 | running_device *tc0480scp = screen->machine->device("tc0480scp"); | |
| 508 | 508 | UINT8 layer[5]; |
| 509 | 509 | UINT8 pivlayer[3]; |
| 510 | 510 | UINT16 priority; |
| r8581 | r8582 | |
|---|---|---|
| 165 | 165 | |
| 166 | 166 | ***************************************************************************/ |
| 167 | 167 | |
| 168 | WRITE16_HANDLER( gaiden_flip_w ) | |
| 169 | { | |
| 170 | if (ACCESSING_BITS_0_7) | |
| 171 | flip_screen_set(space->machine, data & 1); | |
| 172 | } | |
| 173 | ||
| 168 | 174 | WRITE16_HANDLER( gaiden_txscrollx_w ) |
| 169 | 175 | { |
| 170 | 176 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; |
| r8581 | r8582 | |
| 176 | 182 | { |
| 177 | 183 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; |
| 178 | 184 | COMBINE_DATA(&state->tx_scroll_y); |
| 179 | tilemap_set_scrolly(state->text_layer, 0, state->tx_scroll_y); | |
| 185 | tilemap_set_scrolly(state->text_layer, 0, (state->tx_scroll_y - state->tx_offset_y) & 0xffff); | |
| 180 | 186 | } |
| 181 | 187 | |
| 182 | 188 | WRITE16_HANDLER( gaiden_fgscrollx_w ) |
| r8581 | r8582 | |
| 190 | 196 | { |
| 191 | 197 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; |
| 192 | 198 | COMBINE_DATA(&state->fg_scroll_y); |
| 193 | tilemap_set_scrolly(state->foreground, 0, state->fg_scroll_y); | |
| 199 | tilemap_set_scrolly(state->foreground, 0, (state->fg_scroll_y - state->fg_offset_y) & 0xffff); | |
| 194 | 200 | } |
| 195 | 201 | |
| 196 | 202 | WRITE16_HANDLER( gaiden_bgscrollx_w ) |
| r8581 | r8582 | |
| 204 | 210 | { |
| 205 | 211 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; |
| 206 | 212 | COMBINE_DATA(&state->bg_scroll_y); |
| 207 | tilemap_set_scrolly(state->background, 0, state->bg_scroll_y); | |
| 213 | tilemap_set_scrolly(state->background, 0, (state->bg_scroll_y - state->bg_offset_y) & 0xffff); | |
| 208 | 214 | } |
| 209 | 215 | |
| 210 | WRITE16_HANDLER( gaiden_ | |
| 216 | WRITE16_HANDLER( gaiden_tx | |
| 211 | 217 | { |
| 212 | 218 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; |
| 213 | COMBINE_DATA(&state->videoram3[offset]); | |
| 214 | tilemap_mark_tile_dirty(state->background, offset & 0x07ff); | |
| 219 | ||
| 220 | if (ACCESSING_BITS_0_7) { | |
| 221 | state->tx_offset_y = data; | |
| 222 | tilemap_set_scrolly(state->text_layer, 0, (state->tx_scroll_y - state->tx_offset_y) & 0xffff); | |
| 223 | } | |
| 215 | 224 | } |
| 216 | 225 | |
| 217 | WRITE16_HANDLER( gaiden_f | |
| 226 | WRITE16_HANDLER( gaiden_fgoffsety_w ) | |
| 218 | 227 | { |
| 219 | if (ACCESSING_BITS_0_7) | |
| 220 | flip_screen_set(space->machine, data & 1); | |
| 228 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; | |
| 229 | ||
| 230 | if (ACCESSING_BITS_0_7) { | |
| 231 | state->fg_offset_y = data; | |
| 232 | tilemap_set_scrolly(state->foreground, 0, (state->fg_scroll_y - state->fg_offset_y) & 0xffff); | |
| 233 | } | |
| 221 | 234 | } |
| 222 | 235 | |
| 236 | WRITE16_HANDLER( gaiden_bgoffsety_w ) | |
| 237 | { | |
| 238 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; | |
| 223 | 239 | |
| 240 | if (ACCESSING_BITS_0_7) { | |
| 241 | state->bg_offset_y = data; | |
| 242 | tilemap_set_scrolly(state->background, 0, (state->bg_scroll_y - state->bg_offset_y) & 0xffff); | |
| 243 | } | |
| 244 | } | |
| 245 | ||
| 246 | WRITE16_HANDLER( gaiden_sproffsety_w ) | |
| 247 | { | |
| 248 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; | |
| 249 | ||
| 250 | if (ACCESSING_BITS_0_7) { | |
| 251 | state->spr_offset_y = data; | |
| 252 | // handled in draw_sprites | |
| 253 | } | |
| 254 | } | |
| 255 | ||
| 256 | ||
| 257 | WRITE16_HANDLER( gaiden_videoram3_w ) | |
| 258 | { | |
| 259 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; | |
| 260 | COMBINE_DATA(&state->videoram3[offset]); | |
| 261 | tilemap_mark_tile_dirty(state->background, offset & 0x07ff); | |
| 262 | } | |
| 263 | ||
| 224 | 264 | READ16_HANDLER( gaiden_videoram3_r ) |
| 225 | 265 | { |
| 226 | 266 | gaiden_state *state = (gaiden_state *)space->machine->driver_data; |
| r8581 | r8582 | |
| 358 | 398 | /* raiga needs something like this */ |
| 359 | 399 | UINT32 number = (source[1] & (sizex > 2 ? 0x7ff8 : 0x7ffc)); |
| 360 | 400 | |
| 361 | int ypos = source[3] & 0x01ff; | |
| 401 | int ypos = (source[3] + state->spr_offset_y) & 0x01ff; | |
| 362 | 402 | int xpos = source[4] & 0x01ff; |
| 363 | 403 | |
| 364 | 404 | color = (color >> 4) & 0x0f; |
| r8581 | r8582 | |
| 480 | 520 | /* raiga needs something like this */ |
| 481 | 521 | UINT32 number = (source[1] & (sizex > 2 ? 0x7ff8 : 0x7ffc)); |
| 482 | 522 | |
| 483 | int ypos = source[3] & 0x01ff; | |
| 523 | int ypos = (source[3] + state->spr_offset_y) & 0x01ff; | |
| 484 | 524 | int xpos = source[4] & 0x01ff; |
| 485 | 525 | |
| 486 | 526 | color = (color >> 4) & 0x0f; |
| r8581 | r8582 | |
|---|---|---|
| 370 | 370 | |
| 371 | 371 | VIDEO_UPDATE( punchout ) |
| 372 | 372 | { |
| 373 | running_device *top_screen = devtag_get_device(screen->machine, "top"); | |
| 374 | running_device *bottom_screen = devtag_get_device(screen->machine, "bottom"); | |
| 373 | running_device *top_screen = screen->machine->device("top"); | |
| 374 | running_device *bottom_screen = screen->machine->device("bottom"); | |
| 375 | 375 | |
| 376 | 376 | if (screen == top_screen) |
| 377 | 377 | { |
| r8581 | r8582 | |
| 404 | 404 | |
| 405 | 405 | VIDEO_UPDATE( armwrest ) |
| 406 | 406 | { |
| 407 | running_device *top_screen = devtag_get_device(screen->machine, "top"); | |
| 408 | running_device *bottom_screen = devtag_get_device(screen->machine, "bottom"); | |
| 407 | running_device *top_screen = screen->machine->device("top"); | |
| 408 | running_device *bottom_screen = screen->machine->device("bottom"); | |
| 409 | 409 | |
| 410 | 410 | if (screen == top_screen) |
| 411 | 411 | { |
| r8581 | r8582 | |
|---|---|---|
| 101 | 101 | |
| 102 | 102 | VIDEO_UPDATE( galpanic ) |
| 103 | 103 | { |
| 104 | running_device *pandora = | |
| 104 | running_device *pandora = | |
| 105 | 105 | |
| 106 | 106 | /* copy the temporary bitmap to the screen */ |
| 107 | 107 | copybitmap(bitmap,screen->machine->generic.tmpbitmap,0,0,0,0,cliprect); |
| r8581 | r8582 | |
|---|---|---|
| 311 | 311 | if (K001005_fifo_read_ptr < 0x3ff) |
| 312 | 312 | { |
| 313 | 313 | //cputag_set_input_line(space->machine, "dsp", SHARC_INPUT_FLAG1, CLEAR_LINE); |
| 314 | sharc_set_flag_input( | |
| 314 | sharc_set_flag_input( | |
| 315 | 315 | } |
| 316 | 316 | else |
| 317 | 317 | { |
| 318 | 318 | //cputag_set_input_line(space->machine, "dsp", SHARC_INPUT_FLAG1, ASSERT_LINE); |
| 319 | sharc_set_flag_input( | |
| 319 | sharc_set_flag_input( | |
| 320 | 320 | } |
| 321 | 321 | } |
| 322 | 322 | else |
| 323 | 323 | { |
| 324 | 324 | //cputag_set_input_line(space->machine, "dsp", SHARC_INPUT_FLAG1, ASSERT_LINE); |
| 325 | sharc_set_flag_input( | |
| 325 | sharc_set_flag_input( | |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | 328 | K001005_fifo_read_ptr++; |
| r8581 | r8582 | |
| 364 | 364 | if (K001005_fifo_write_ptr < 0x400) |
| 365 | 365 | { |
| 366 | 366 | //cputag_set_input_line(space->machine, "dsp", SHARC_INPUT_FLAG1, ASSERT_LINE); |
| 367 | sharc_set_flag_input( | |
| 367 | sharc_set_flag_input( | |
| 368 | 368 | } |
| 369 | 369 | else |
| 370 | 370 | { |
| 371 | 371 | //cputag_set_input_line(space->machine, "dsp", SHARC_INPUT_FLAG1, CLEAR_LINE); |
| 372 | sharc_set_flag_input( | |
| 372 | sharc_set_flag_input( | |
| 373 | 373 | } |
| 374 | 374 | } |
| 375 | 375 | else |
| 376 | 376 | { |
| 377 | 377 | //cputag_set_input_line(space->machine, "dsp", SHARC_INPUT_FLAG1, ASSERT_LINE); |
| 378 | sharc_set_flag_input( | |
| 378 | sharc_set_flag_input( | |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | // mame_printf_debug("K001005 FIFO write: %08X at %08X\n", data, cpu_get_pc(space->cpu)); |
| r8581 | r8582 | |
| 979 | 979 | |
| 980 | 980 | VIDEO_UPDATE( gticlub ) |
| 981 | 981 | { |
| 982 | running_device *k001604 = | |
| 982 | running_device *k001604 = | |
| 983 | 983 | |
| 984 | 984 | k001604_draw_back_layer(k001604, bitmap, cliprect); |
| 985 | 985 | |
| r8581 | r8582 | |
| 1041 | 1041 | draw_7segment_led(bitmap, 9, 3, gticlub_led_reg1); |
| 1042 | 1042 | |
| 1043 | 1043 | //cputag_set_input_line(screen->machine, "dsp", SHARC_INPUT_FLAG1, ASSERT_LINE); |
| 1044 | sharc_set_flag_input( | |
| 1044 | sharc_set_flag_input( | |
| 1045 | 1045 | return 0; |
| 1046 | 1046 | } |
| 1047 | 1047 |
| r8581 | r8582 | |
|---|---|---|
| 94 | 94 | |
| 95 | 95 | /* check for sprite-playfield collisions */ |
| 96 | 96 | |
| 97 | running_device *discrete = | |
| 97 | running_device *discrete = m | |
| 98 | 98 | |
| 99 | 99 | for (i = 0; i < 4; i++) |
| 100 | 100 | { |
| r8581 | r8582 | |
|---|---|---|
| 7 | 7 | |
| 8 | 8 | INTERRUPT_GEN( beezer_interrupt ) |
| 9 | 9 | { |
| 10 | running_device *via_0 = dev | |
| 10 | running_device *via_0 = dev | |
| 11 | 11 | |
| 12 | 12 | scanline = (scanline + 1) % 0x80; |
| 13 | 13 | via_ca2_w(via_0, (scanline & 0x10) ? 1 : 0); |
| r8581 | r8582 | |
|---|---|---|
| 1121 | 1121 | |
| 1122 | 1122 | VIDEO_UPDATE( sandscrp ) |
| 1123 | 1123 | { |
| 1124 | running_device *pandora = | |
| 1124 | running_device *pandora = | |
| 1125 | 1125 | kaneko16_fill_bitmap(screen->machine,bitmap,cliprect); |
| 1126 | 1126 | |
| 1127 | 1127 | // if the display is disabled, do nothing? |
| r8581 | r8582 | |
|---|---|---|
| 19 | 19 | static tilemap_t *bg_tilemap,*tx_tilemap; |
| 20 | 20 | static int polepos_chacl; |
| 21 | 21 | |
| 22 | int polepos_gear_bit; | |
| 23 | ||
| 24 | 22 | /*************************************************************************** |
| 25 | 23 | |
| 26 | 24 | Convert the color PROMs. |
| r8581 | r8582 | |
|---|---|---|
| 29 | 29 | |
| 30 | 30 | VIDEO_START( qdrmfgp ) |
| 31 | 31 | { |
| 32 | running_device *k056832 = | |
| 32 | running_device *k056832 = m | |
| 33 | 33 | |
| 34 | 34 | k056832_set_layer_association(k056832, 0); |
| 35 | 35 | |
| r8581 | r8582 | |
| 41 | 41 | |
| 42 | 42 | VIDEO_START( qdrmfgp2 ) |
| 43 | 43 | { |
| 44 | running_device *k056832 = | |
| 44 | running_device *k056832 = m | |
| 45 | 45 | |
| 46 | 46 | k056832_set_layer_association(k056832, 0); |
| 47 | 47 | |
| r8581 | r8582 | |
| 59 | 59 | |
| 60 | 60 | VIDEO_UPDATE( qdrmfgp ) |
| 61 | 61 | { |
| 62 | running_device *k056832 = | |
| 62 | running_device *k056832 = | |
| 63 | 63 | bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine)); |
| 64 | 64 | |
| 65 | 65 | k056832_tilemap_draw(k056832, bitmap, cliprect, 3, 0, 1); |
| r8581 | r8582 | |
|---|---|---|
| 1245 | 1245 | {"kodj", CPS_B_21_BT2, mapper_KD29B, 0x36, 0, 0x34 }, |
| 1246 | 1246 | {"kodb", CPS_B_21_BT2, mapper_KD29B, 0x36, 0, 0x34 }, /* bootleg, doesn't use multiply protection */ |
| 1247 | 1247 | {"captcomm", CPS_B_21_BT3, mapper_CC63B, 0x36, 0x38, 0x34 }, |
| 1248 | {"captcommr1", CPS_B_21_BT3, mapper_CC63B, 0x36, 0x38, 0x34 }, | |
| 1248 | 1249 | {"captcommu",CPS_B_21_BT3, mapper_CC63B, 0x36, 0x38, 0x34 }, |
| 1249 | 1250 | {"captcommj",CPS_B_21_BT3, mapper_CC63B, 0x36, 0x38, 0x34 }, |
| 1250 | 1251 | {"captcommb",CPS_B_21_BT3, mapper_CC63B, 0x36, 0x38, 0x34 }, |
| r8581 | r8582 | |
|---|---|---|
| 64 | 64 | |
| 65 | 65 | WRITE8_HANDLER( starcrus_ship_parm_1_w ) |
| 66 | 66 | { |
| 67 | running_device *samples = | |
| 67 | running_device *samples = | |
| 68 | 68 | |
| 69 | 69 | s1_sprite = data&0x1f; |
| 70 | 70 | engine1_on = ((data&0x20)>>5)^0x01; |
| r8581 | r8582 | |
| 90 | 90 | |
| 91 | 91 | WRITE8_HANDLER( starcrus_ship_parm_2_w ) |
| 92 | 92 | { |
| 93 | running_device *samples = | |
| 93 | running_device *samples = | |
| 94 | 94 | |
| 95 | 95 | s2_sprite = data&0x1f; |
| 96 | 96 | set_led_status(space->machine, 2,~data & 0x80); /* game over lamp */ |
| r8581 | r8582 | |
| 118 | 118 | |
| 119 | 119 | WRITE8_HANDLER( starcrus_proj_parm_1_w ) |
| 120 | 120 | { |
| 121 | running_device *samples = | |
| 121 | running_device *samples = | |
| 122 | 122 | |
| 123 | 123 | p1_sprite = data&0x0f; |
| 124 | 124 | launch1_on = ((data&0x20)>>5)^0x01; |
| r8581 | r8582 | |
| 157 | 157 | |
| 158 | 158 | WRITE8_HANDLER( starcrus_proj_parm_2_w ) |
| 159 | 159 | { |
| 160 | running_device *samples = | |
| 160 | running_device *samples = | |
| 161 | 161 | |
| 162 | 162 | p2_sprite = data&0x0f; |
| 163 | 163 | launch2_on = ((data&0x20)>>5)^0x01; |
| r8581 | r8582 | |
|---|---|---|
| 1863 | 1863 | case 0x18: /* AUDF1 */ |
| 1864 | 1864 | case 0x19: /* AUDV0 */ |
| 1865 | 1865 | case 0x1A: /* AUDV1 */ |
| 1866 | tia_sound_w( | |
| 1866 | tia_sound_w( | |
| 1867 | 1867 | break; |
| 1868 | 1868 | |
| 1869 | 1869 | case 0x1B: |
| r8581 | r8582 | |
|---|---|---|
| 328 | 328 | probably because they had it handy and it handles medium res. |
| 329 | 329 | |
| 330 | 330 | System32: |
| 331 | 5-layer tilemap hardware consisting of 4 independ | |
| 331 | 5-layer tilemap hardware consisting of 4 independent rom-based | |
| 332 | 332 | layers with linescroll, lineselection, linezoom and window |
| 333 | 333 | clipping capability and one simpler ram-based text plane. Mixed |
| 334 | 334 | ram/rom sprite engine with palette indirection, per-color priority |
| r8581 | r8582 | |
|---|---|---|
| 330 | 330 | extern struct palette_info segaic16_palette; |
| 331 | 331 | extern struct rotate_info segaic16_rotate[SEGAIC16_MAX_ROTATE]; |
| 332 | 332 | extern struct road_info segaic16_road[SEGAIC16_MAX_ROADS]; |
| 333 |
| r8581 | r8582 | |
|---|---|---|
| 350 | 350 | |
| 351 | 351 | static VIDEO_UPDATE( qix ) |
| 352 | 352 | { |
| 353 | running_device *mc6845 = | |
| 353 | running_device *mc6845 = | |
| 354 | 354 | mc6845_update(mc6845, bitmap, cliprect); |
| 355 | 355 | |
| 356 | 356 | return 0; |
| r8581 | r8582 | |
|---|---|---|
| 923 | 923 | static void toaplan2_scroll_reg_data_w(running_machine *machine, offs_t offset, UINT16 data, UINT16 mem_mask, int controller) |
| 924 | 924 | { |
| 925 | 925 | /************************************************************************/ |
| 926 | /***** layer X and Y flips can be set independ | |
| 926 | /***** layer X and Y flips can be set independently, so emulate it ******/ | |
| 927 | 927 | /************************************************************************/ |
| 928 | 928 | |
| 929 | 929 | //printf("toaplan2_scroll_reg_data_w %04x %04x\n", offset, data); |
| r8581 | r8582 | |
| 1036 | 1036 | if ((toaplan2_sub_cpu == CPU_2_Z80) && (data == 3)) |
| 1037 | 1037 | { |
| 1038 | 1038 | /* HACK! When tilted, sound CPU needs to be reset. */ |
| 1039 | running_device *ym = | |
| 1039 | running_device *ym = m | |
| 1040 | 1040 | |
| 1041 | 1041 | if (ym && ym->type() == SOUND_YM3812) |
| 1042 | 1042 | { |
| r8581 | r8582 | |
|---|---|---|
| 226 | 226 | VIDEO_UPDATE_CALL(vector); |
| 227 | 227 | vector_clear_list(); |
| 228 | 228 | |
| 229 | ccpu_wdt_timer_trigger( | |
| 229 | ccpu_wdt_timer_trigger( | |
| 230 | 230 | |
| 231 | 231 | return 0; |
| 232 | 232 | } |
| r8581 | r8582 | |
|---|---|---|
| 1125 | 1125 | |
| 1126 | 1126 | VIDEO_UPDATE( hotchase ) |
| 1127 | 1127 | { |
| 1128 | running_device *k051316_1 = devtag_get_device(screen->machine, "k051316_1"); | |
| 1129 | running_device *k051316_2 = devtag_get_device(screen->machine, "k051316_2"); | |
| 1128 | running_device *k051316_1 = screen->machine->device("k051316_1"); | |
| 1129 | running_device *k051316_2 = screen->machine->device("k051316_2"); | |
| 1130 | 1130 | int video_on; |
| 1131 | 1131 | |
| 1132 | 1132 | video_on = wecleman_irqctrl & 0x40; |
| r8581 | r8582 | |
|---|---|---|
| 449 | 449 | |
| 450 | 450 | VIDEO_UPDATE( galastrm ) |
| 451 | 451 | { |
| 452 | running_device *tc0100scn = devtag_get_device(screen->machine, "tc0100scn"); | |
| 453 | running_device *tc0480scp = devtag_get_device(screen->machine, "tc0480scp"); | |
| 452 | running_device *tc0100scn = screen->machine->device("tc0100scn"); | |
| 453 | running_device *tc0480scp = screen->machine->device("tc0480scp"); | |
| 454 | 454 | UINT8 layer[5]; |
| 455 | 455 | UINT8 pivlayer[3]; |
| 456 | 456 | UINT16 priority; |
| r8581 | r8582 | |
|---|---|---|
| 677 | 677 | int scr_pri; |
| 678 | 678 | int rot_pri; |
| 679 | 679 | |
| 680 | running_device *left_screen = devtag_get_device(screen->machine, "lscreen"); | |
| 681 | running_device *right_screen = devtag_get_device(screen->machine, "rscreen"); | |
| 680 | running_device *left_screen = screen->machine->device("lscreen"); | |
| 681 | running_device *right_screen = screen->machine->device("rscreen"); | |
| 682 | 682 | |
| 683 | 683 | /* Black background color */ |
| 684 | 684 | if (screen == left_screen) |
| r8581 | r8582 | |
|---|---|---|
| 399 | 399 | int scanline = param; |
| 400 | 400 | |
| 401 | 401 | /* update the state */ |
| 402 | atarigen_scanline_int_gen( | |
| 402 | atarigen_scanline_int_gen( | |
| 403 | 403 | |
| 404 | 404 | /* set a timer to turn it off */ |
| 405 | 405 | state->int3off_timer->adjust(timer.machine->primary_screen->scan_period()); |
| r8581 | r8582 | |
|---|---|---|
| 534 | 534 | int pri; |
| 535 | 535 | int bg_center = 144 - ((((bg1_scroll_x + bg2_scroll_x ) & 0x1ff) - 288) / 2); |
| 536 | 536 | |
| 537 | running_device *_2d_screen = devtag_get_device(screen->machine, "2dscreen"); | |
| 538 | running_device *_3d_left_screen = devtag_get_device(screen->machine, "3dleft"); | |
| 539 | running_device *_3d_right_screen = devtag_get_device(screen->machine, "3dright"); | |
| 537 | running_device *_2d_screen = screen->machine->device("2dscreen"); | |
| 538 | running_device *_3d_left_screen = screen->machine->device("3dleft"); | |
| 539 | running_device *_3d_right_screen = screen->machine->device("3dright"); | |
| 540 | 540 | |
| 541 | 541 | if (screen != _2d_screen) |
| 542 | 542 | { |
| r8581 | r8582 | |
|---|---|---|
| 187 | 187 | break; |
| 188 | 188 | |
| 189 | 189 | case 6: /* /VIRQ */ |
| 190 | atarigen_scanline_int_gen( | |
| 190 | atarigen_scanline_int_gen( | |
| 191 | 191 | break; |
| 192 | 192 | |
| 193 | 193 | case 7: /* /PFVS */ |
| r8581 | r8582 | |
|---|---|---|
| 130 | 130 | |
| 131 | 131 | WRITE8_HANDLER( skydiver_2000_201F_w ) |
| 132 | 132 | { |
| 133 | running_device *discrete = | |
| 133 | running_device *discrete = | |
| 134 | 134 | int bit = offset & 0x01; |
| 135 | 135 | |
| 136 | 136 | watchdog_reset_w(space,0,0); |
| r8581 | r8582 | |
|---|---|---|
| 682 | 682 | |
| 683 | 683 | if (gpu_regs[PIT0]) |
| 684 | 684 | { |
| 685 | sample_period = ATTOTIME_IN_NSEC(c | |
| 685 | sample_period = ATTOTIME_IN_NSEC(machin | |
| 686 | 686 | // timer_set(machine, sample_period, NULL, 0, jaguar_pit); |
| 687 | 687 | } |
| 688 | 688 | } |
| r8581 | r8582 | |
| 712 | 712 | case PIT1: |
| 713 | 713 | if (gpu_regs[PIT0]) |
| 714 | 714 | { |
| 715 | sample_period = ATTOTIME_IN_NSEC( | |
| 715 | sample_period = ATTOTIME_IN_NSEC( | |
| 716 | 716 | timer_set(space->machine, sample_period, NULL, 0, jaguar_pit); |
| 717 | 717 | } |
| 718 | 718 | break; |
| r8581 | r8582 | |
|---|---|---|
| 293 | 293 | ---- ---- ---- ---0 Coin #0 Counter */ |
| 294 | 294 | if (ACCESSING_BITS_0_7) |
| 295 | 295 | { |
| 296 | running_device *x1_010 = | |
| 296 | running_device *x1_010 = | |
| 297 | 297 | seta_coin_lockout_w (space->machine, data & 0x0f); |
| 298 | 298 | if (x1_010 != NULL) |
| 299 | 299 | seta_sound_enable_w (x1_010, data & 0x20); |
| r8581 | r8582 | |
|---|---|---|
| 123 | 123 | |
| 124 | 124 | VIDEO_UPDATE( polygonet ) |
| 125 | 125 | { |
| 126 | running_device *k053936 = | |
| 126 | running_device *k053936 = | |
| 127 | 127 | bitmap_fill(screen->machine->priority_bitmap, NULL, 0); |
| 128 | 128 | bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine)); |
| 129 | 129 |
| r8581 | r8582 | |
|---|---|---|
| 209 | 209 | |
| 210 | 210 | VIDEO_UPDATE( superchs ) |
| 211 | 211 | { |
| 212 | running_device *tc0480scp = | |
| 212 | running_device *tc0480scp = | |
| 213 | 213 | UINT8 layer[5]; |
| 214 | 214 | UINT16 priority; |
| 215 | 215 | static const int primasks[4] = {0xfffc, 0xfff0, 0xff00, 0x0}; |
| r8581 | r8582 | |
|---|---|---|
| 646 | 646 | case 0x17: /* noise volume register */ |
| 647 | 647 | case 0x18: /* sound block transfer */ |
| 648 | 648 | if (astrocade_video_config & AC_SOUND_PRESENT) |
| 649 | astrocade_sound_w( | |
| 649 | astrocade_sound_w( | |
| 650 | 650 | break; |
| 651 | 651 | |
| 652 | 652 | case 0x19: /* expand register */ |
| r8581 | r8582 | |
|---|---|---|
| 717 | 717 | { |
| 718 | 718 | int x, y, b; |
| 719 | 719 | |
| 720 | running_device *main_screen = devtag_get_device(screen->machine, "screen"); | |
| 721 | running_device *lcd0_screen = devtag_get_device(screen->machine, "lcd0"); | |
| 722 | running_device *lcd1_screen = devtag_get_device(screen->machine, "lcd1"); | |
| 720 | running_device *main_screen = screen->machine->device("screen"); | |
| 721 | running_device *lcd0_screen = screen->machine->device("lcd0"); | |
| 722 | running_device *lcd1_screen = screen->machine->device("lcd1"); | |
| 723 | 723 | |
| 724 | 724 | if (screen == main_screen) VIDEO_UPDATE_CALL(mbmj8688); |
| 725 | 725 |
| r8581 | r8582 | |
|---|---|---|
| 58 | 58 | VIDEO_UPDATE( vsnes ) |
| 59 | 59 | { |
| 60 | 60 | /* render the ppu */ |
| 61 | ppu2c0x_render( | |
| 61 | ppu2c0x_render( | |
| 62 | 62 | return 0; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | VIDEO_UPDATE( vsdual ) |
| 67 | 67 | { |
| 68 | running_device *top_screen = devtag_get_device(screen->machine, "top"); | |
| 69 | running_device *bottom_screen = devtag_get_device(screen->machine, "bottom"); | |
| 68 | running_device *top_screen = screen->machine->device("top"); | |
| 69 | running_device *bottom_screen = screen->machine->device("bottom"); | |
| 70 | 70 | |
| 71 | 71 | /* render the ppu's */ |
| 72 | 72 | if (screen == top_screen) |
| 73 | ppu2c0x_render( | |
| 73 | ppu2c0x_render( | |
| 74 | 74 | else if (screen == bottom_screen) |
| 75 | ppu2c0x_render( | |
| 75 | ppu2c0x_render( | |
| 76 | 76 | |
| 77 | 77 | return 0; |
| 78 | 78 | } |
| r8581 | r8582 | |
|---|---|---|
| 129 | 129 | |
| 130 | 130 | VIDEO_UPDATE( psikyo4 ) |
| 131 | 131 | { |
| 132 | running_device *left_screen = devtag_get_device(screen->machine, "lscreen"); | |
| 133 | running_device *right_screen = devtag_get_device(screen->machine, "rscreen"); | |
| 132 | running_device *left_screen = screen->machine->device("lscreen"); | |
| 133 | running_device *right_screen = screen->machine->device("rscreen"); | |
| 134 | 134 | |
| 135 | 135 | if (screen == left_screen) |
| 136 | 136 | { |
| r8581 | r8582 | |
|---|---|---|
| 1194 | 1194 | |
| 1195 | 1195 | VIDEO_UPDATE( tx1 ) |
| 1196 | 1196 | { |
| 1197 | running_device *left_screen = devtag_get_device(screen->machine, "lscreen"); | |
| 1198 | running_device *centre_screen = devtag_get_device(screen->machine, "cscreen"); | |
| 1199 | running_device *right_screen = devtag_get_device(screen->machine, "rscreen"); | |
| 1197 | running_device *left_screen = screen->machine->device("lscreen"); | |
| 1198 | running_device *centre_screen = screen->machine->device("cscreen"); | |
| 1199 | running_device *right_screen = screen->machine->device("rscreen"); | |
| 1200 | 1200 | |
| 1201 | 1201 | if (screen == left_screen) |
| 1202 | 1202 | { |
| r8581 | r8582 | |
| 3081 | 3081 | |
| 3082 | 3082 | VIDEO_UPDATE( buggyboy ) |
| 3083 | 3083 | { |
| 3084 | running_device *left_screen = devtag_get_device(screen->machine, "lscreen"); | |
| 3085 | running_device *center_screen = devtag_get_device(screen->machine, "cscreen"); | |
| 3086 | running_device *right_screen = devtag_get_device(screen->machine, "rscreen"); | |
| 3084 | running_device *left_screen = screen->machine->device("lscreen"); | |
| 3085 | running_device *center_screen = screen->machine->device("cscreen"); | |
| 3086 | running_device *right_screen = screen->machine->device("rscreen"); | |
| 3087 | 3087 | |
| 3088 | 3088 | if (screen == left_screen) |
| 3089 | 3089 | { |
| r8581 | r8582 | |
|---|---|---|
| 100 | 100 | static TIMER_CALLBACK( irq_on ) |
| 101 | 101 | { |
| 102 | 102 | /* generate the interrupt */ |
| 103 | atarigen_scanline_int_gen( | |
| 103 | atarigen_scanline_int_gen(m | |
| 104 | 104 | atarigen_update_interrupts(machine); |
| 105 | 105 | } |
| 106 | 106 |
| r8581 | r8582 | |
|---|---|---|
| 566 | 566 | vr0video_state *vr0 = get_safe_token(device); |
| 567 | 567 | const vr0video_interface *intf = get_interface(device); |
| 568 | 568 | |
| 569 | vr0->cpu = dev | |
| 569 | vr0->cpu = dev | |
| 570 | 570 | |
| 571 | 571 | state_save_register_device_item_array(device, 0, vr0->InternalPalette); |
| 572 | 572 | state_save_register_device_item(device, 0, vr0->LastPalUpdate); |
| r8581 | r8582 | |
|---|---|---|
| 96 | 96 | { |
| 97 | 97 | int i; |
| 98 | 98 | UINT16 BG = colortable_entry_get_value(machine->colortable, 0); |
| 99 | running_device *discrete = | |
| 99 | running_device *discrete = m | |
| 100 | 100 | UINT8 *videoram = machine->generic.videoram.u8; |
| 101 | 101 | |
| 102 | 102 | /* check for sprite-playfield collisions */ |
| r8581 | r8582 | |
|---|---|---|
| 212 | 212 | |
| 213 | 213 | VIDEO_UPDATE( gunbustr ) |
| 214 | 214 | { |
| 215 | running_device *tc0480scp = | |
| 215 | running_device *tc0480scp = | |
| 216 | 216 | UINT8 layer[5]; |
| 217 | 217 | UINT16 priority; |
| 218 | 218 | static const int primasks[4] = {0xfffc, 0xfff0, 0xff00, 0x0}; |
| r8581 | r8582 | |
|---|---|---|
| 118 | 118 | |
| 119 | 119 | VIDEO_UPDATE( playch10 ) |
| 120 | 120 | { |
| 121 | running_device *ppu = | |
| 121 | running_device *ppu = | |
| 122 | 122 | |
| 123 | 123 | /* Dual monitor version */ |
| 124 | 124 | if (pc10_bios == 1) |
| 125 | 125 | { |
| 126 | running_device *top_screen = | |
| 126 | running_device *top_screen = | |
| 127 | 127 | |
| 128 | 128 | /* On Playchoice 10 single monitor, this bit toggles */ |
| 129 | 129 | /* between PPU and BIOS display. */ |
| r8581 | r8582 | |
|---|---|---|
| 343 | 343 | rectangle visarea = screen.visible_area(); |
| 344 | 344 | |
| 345 | 345 | /* for 2p games, the left screen is the main screen */ |
| 346 | running_device *left_screen = | |
| 346 | running_device *left_screen = | |
| 347 | 347 | if (left_screen == NULL) |
| 348 | left_screen = | |
| 348 | left_screen = | |
| 349 | 349 | |
| 350 | 350 | /* draw the playfield */ |
| 351 | 351 | tilemap_draw(bitmap, cliprect, (&screen == left_screen) ? state->atarigen.playfield_tilemap : state->atarigen.playfield2_tilemap, 0, 0); |
| r8581 | r8582 | |
|---|---|---|
| 1160 | 1160 | LOG((" @cycle #%3d steal %d cycles\n", cycle(machine), antic.steal_cycles)); |
| 1161 | 1161 | after(machine, antic.steal_cycles, antic_line_done, "antic_line_done"); |
| 1162 | 1162 | antic.steal_cycles = 0; |
| 1163 | cpu_spinuntil_trigger( | |
| 1163 | cpu_spinuntil_trigger( m | |
| 1164 | 1164 | } |
| 1165 | 1165 | |
| 1166 | 1166 |
| r8581 | r8582 | |
|---|---|---|
| 2624 | 2624 | { |
| 2625 | 2625 | UINT8 enablemask; |
| 2626 | 2626 | |
| 2627 | running_device *left_screen = | |
| 2627 | running_device *left_screen = | |
| 2628 | 2628 | |
| 2629 | 2629 | /* update the visible area */ |
| 2630 | 2630 | if (system32_videoram[0x1ff00/2] & 0x8000) |
| r8581 | r8582 | |
|---|---|---|
| 59 | 59 | int clear_bitmap; |
| 60 | 60 | UINT8 region; |
| 61 | 61 | int xoffset, yoffset; |
| 62 | int bg_pen; // might work some other way.. | |
| 62 | 63 | }; |
| 63 | 64 | |
| 64 | 65 | /***************************************************************************** |
| r8581 | r8582 | |
| 84 | 85 | IMPLEMENTATION |
| 85 | 86 | *****************************************************************************/ |
| 86 | 87 | |
| 88 | void pandora_set_bg_pen( running_device *device, int pen ) | |
| 89 | { | |
| 90 | kaneko_pandora_state *pandora = get_safe_token(device); | |
| 91 | pandora->bg_pen = pen; | |
| 92 | } | |
| 93 | ||
| 87 | 94 | void pandora_set_clear_bitmap( running_device *device, int clear ) |
| 88 | 95 | { |
| 89 | 96 | kaneko_pandora_state *pandora = get_safe_token(device); |
| r8581 | r8582 | |
| 195 | 202 | |
| 196 | 203 | // the games can disable the clearing of the sprite bitmap, to leave sprite trails |
| 197 | 204 | if (pandora->clear_bitmap) |
| 198 | bitmap_fill(pandora->sprites_bitmap, &pandora->screen->visible_area(), | |
| 205 | bitmap_fill(pandora->sprites_bitmap, &pandora->screen->visible_area(), pandora->bg_pen); | |
| 199 | 206 | |
| 200 | 207 | pandora_draw(device, pandora->sprites_bitmap, &pandora->screen->visible_area()); |
| 201 | 208 | } |
| r8581 | r8582 | |
| 298 | 305 | pandora->region = intf->gfx_region; |
| 299 | 306 | pandora->xoffset = intf->x; |
| 300 | 307 | pandora->yoffset = intf->y; |
| 308 | pandora->bg_pen = 0; | |
| 301 | 309 | |
| 302 | 310 | pandora->spriteram = auto_alloc_array(device->machine, UINT8, 0x1000); |
| 303 | 311 |
| r8581 | r8582 | |
|---|---|---|
| 42 | 42 | void pandora_update(running_device *device, bitmap_t *bitmap, const rectangle *cliprect); |
| 43 | 43 | void pandora_eof(running_device *device); |
| 44 | 44 | void pandora_set_clear_bitmap(running_device *device, int clear); |
| 45 | void pandora_set_bg_pen( running_device *device, int pen ); | |
| 45 | 46 | |
| 46 | 47 | WRITE8_DEVICE_HANDLER ( pandora_spriteram_w ); |
| 47 | 48 | READ8_DEVICE_HANDLER( pandora_spriteram_r ); |
| r8581 | r8582 | |
|---|---|---|
| 1461 | 1461 | sega16sp_state *sega16sp; |
| 1462 | 1462 | |
| 1463 | 1463 | if (!which) |
| 1464 | device = | |
| 1464 | device = | |
| 1465 | 1465 | else |
| 1466 | device = | |
| 1466 | device = | |
| 1467 | 1467 | |
| 1468 | 1468 | if (!device) |
| 1469 | 1469 | fatalerror("segaic16_sprites_draw device not found\n"); |
| r8581 | r8582 | |
| 1491 | 1491 | running_device* device = 0; |
| 1492 | 1492 | |
| 1493 | 1493 | if (!which) |
| 1494 | device = | |
| 1494 | device = m | |
| 1495 | 1495 | else |
| 1496 | device = | |
| 1496 | device = m | |
| 1497 | 1497 | |
| 1498 | 1498 | if (!device) |
| 1499 | 1499 | fatalerror("segaic16_sprites_set_bank device not found\n"); |
| r8581 | r8582 | |
| 1521 | 1521 | running_device* device = 0; |
| 1522 | 1522 | |
| 1523 | 1523 | if (!which) |
| 1524 | device = | |
| 1524 | device = m | |
| 1525 | 1525 | else |
| 1526 | device = | |
| 1526 | device = m | |
| 1527 | 1527 | |
| 1528 | 1528 | if (!device) |
| 1529 | 1529 | fatalerror("segaic16_sprites_set_flip device not found\n"); |
| r8581 | r8582 | |
| 1552 | 1552 | running_device* device = 0; |
| 1553 | 1553 | |
| 1554 | 1554 | if (!which) |
| 1555 | device = | |
| 1555 | device = m | |
| 1556 | 1556 | else |
| 1557 | device = | |
| 1557 | device = m | |
| 1558 | 1558 | |
| 1559 | 1559 | if (!device) |
| 1560 | 1560 | fatalerror("segaic16_sprites_set_shadow device not found\n"); |
| r8581 | r8582 | |
| 1614 | 1614 | { |
| 1615 | 1615 | running_device* device = 0; |
| 1616 | 1616 | |
| 1617 | device = | |
| 1617 | device = | |
| 1618 | 1618 | |
| 1619 | 1619 | if (!device) |
| 1620 | 1620 | fatalerror("segaic16_sprites_draw_0_w device not found\n"); |
| r8581 | r8582 | |
| 1627 | 1627 | { |
| 1628 | 1628 | running_device* device = 0; |
| 1629 | 1629 | |
| 1630 | device = | |
| 1630 | device = | |
| 1631 | 1631 | |
| 1632 | 1632 | if (!device) |
| 1633 | 1633 | fatalerror("segaic16_sprites_draw_1_w device not found\n"); |
| r8581 | r8582 | |
|---|---|---|
| 150 | 150 | Word 0, Slope (0xFFFF = side done) |
| 151 | 151 | Word 1, bits 7..15: Ending Y of vector |
| 152 | 152 | |
| 153 | Each side is a continous set of vectors. Both sides are drawn at | |
| 153 | Each side is a continuous set of vectors. Both sides are drawn at | |
| 154 | 154 | the same time and the space between them is filled in. |
| 155 | 155 | |
| 156 | 156 | ***************************************************************************/ |
| r8581 | r8582 | |
|---|---|---|
| 7921 | 7921 | k056832->active_layer = 0; |
| 7922 | 7922 | k056832->linemap_enabled = 0; |
| 7923 | 7923 | |
| 7924 | k056832->k055555 = dev | |
| 7924 | k056832->k055555 = dev | |
| 7925 | 7925 | |
| 7926 | 7926 | memset(k056832->line_dirty, 0, sizeof(UINT32) * K056832_PAGE_COUNT * 8); |
| 7927 | 7927 | |
| r8581 | r8582 | |
| 8414 | 8414 | const k054338_interface *intf = k054338_get_interface(device); |
| 8415 | 8415 | |
| 8416 | 8416 | k054338->screen = device->machine->device<screen_device>(intf->screen); |
| 8417 | k054338->k055555 = dev | |
| 8417 | k054338->k055555 = dev | |
| 8418 | 8418 | |
| 8419 | 8419 | k054338->alphainverted = intf->alpha_inv; |
| 8420 | 8420 | |
| r8581 | r8582 | |
| 10079 | 10079 | const k001005_interface *intf = k001005_get_interface(device); |
| 10080 | 10080 | int i, width, height; |
| 10081 | 10081 | |
| 10082 | k001005->cpu = devtag_get_device(device->machine, intf->cpu); | |
| 10083 | k001005->dsp = devtag_get_device(device->machine, intf->dsp); | |
| 10084 | k001005->k001006_1 = devtag_get_device(device->machine, intf->k001006_1); | |
| 10085 | k001005->k001006_2 = devtag_get_device(device->machine, intf->k001006_2); | |
| 10082 | k001005->cpu = device->machine->device(intf->cpu); | |
| 10083 | k001005->dsp = device->machine->device(intf->dsp); | |
| 10084 | k001005->k001006_1 = device->machine->device(intf->k001006_1); | |
| 10085 | k001005->k001006_2 = device->machine->device(intf->k001006_2); | |
| 10086 | 10086 | |
| 10087 | 10087 | k001005->screen = device->machine->device<screen_device>(intf->screen); |
| 10088 | 10088 | width = k001005->screen->width(); |
| r8581 | r8582 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | static void draw_sprites(running_machine* machine, bitmap_t *bitmap, const rectangle *cliprect) |
| 16 | 16 | { |
| 17 | running_device *k055555 = | |
| 17 | running_device *k055555 = m | |
| 18 | 18 | int offs, pri_code; |
| 19 | 19 | int sortedlist[NUM_SPRITES]; |
| 20 | 20 | |
| r8581 | r8582 | |
| 135 | 135 | |
| 136 | 136 | VIDEO_START( djmain ) |
| 137 | 137 | { |
| 138 | running_device *k056832 = | |
| 138 | running_device *k056832 = m | |
| 139 | 139 | |
| 140 | 140 | k056832_set_layer_offs(k056832, 0, -92, -27); |
| 141 | 141 | // k056832_set_layer_offs(k056832, 1, -87, -27); |
| r8581 | r8582 | |
| 144 | 144 | |
| 145 | 145 | VIDEO_UPDATE( djmain ) |
| 146 | 146 | { |
| 147 | running_device *k056832 = devtag_get_device(screen->machine, "k056832"); | |
| 148 | running_device *k055555 = devtag_get_device(screen->machine, "k055555"); | |
| 147 | running_device *k056832 = screen->machine->device("k056832"); | |
| 148 | running_device *k055555 = screen->machine->device("k055555"); | |
| 149 | 149 | int enables = k055555_read_register(k055555, K55_INPUT_ENABLES); |
| 150 | 150 | int pri[NUM_LAYERS + 1]; |
| 151 | 151 | int order[NUM_LAYERS + 1]; |
| r8581 | r8582 | |
|---|---|---|
| 85 | 85 | segaic16_sprites_draw(screen, bitmap, cliprect, 0); |
| 86 | 86 | return 0; |
| 87 | 87 | } |
| 88 |
| r8581 | r8582 | |
|---|---|---|
| 2388 | 2388 | |
| 2389 | 2389 | if (konamigx_has_dual_screen) |
| 2390 | 2390 | { |
| 2391 | running_device *left_screen = devtag_get_device(screen->machine, "screen"); | |
| 2392 | running_device *right_screen = devtag_get_device(screen->machine, "screen2"); | |
| 2391 | running_device *left_screen = screen->machine->device("screen"); | |
| 2392 | running_device *right_screen = screen->machine->device("screen2"); | |
| 2393 | 2393 | |
| 2394 | 2394 | /* the video gets demuxed by a board which plugs into the jamma connector */ |
| 2395 | 2395 | if (screen==left_screen) |
| r8581 | r8582 | |
| 2599 | 2599 | |
| 2600 | 2600 | if (konamigx_has_dual_screen) |
| 2601 | 2601 | { |
| 2602 | running_device *left_screen = devtag_get_device(screen->machine, "screen"); | |
| 2603 | running_device *right_screen = devtag_get_device(screen->machine, "screen2"); | |
| 2602 | running_device *left_screen = screen->machine->device("screen"); | |
| 2603 | running_device *right_screen = screen->machine->device("screen2"); | |
| 2604 | 2604 | |
| 2605 | 2605 | if (screen==left_screen) |
| 2606 | 2606 | { |
| r8581 | r8582 | |
|---|---|---|
| 212 | 212 | |
| 213 | 213 | VIDEO_UPDATE( groundfx ) |
| 214 | 214 | { |
| 215 | running_device *tc0100scn = devtag_get_device(screen->machine, "tc0100scn"); | |
| 216 | running_device *tc0480scp = devtag_get_device(screen->machine, "tc0480scp"); | |
| 215 | running_device *tc0100scn = screen->machine->device("tc0100scn"); | |
| 216 | running_device *tc0480scp = screen->machine->device("tc0480scp"); | |
| 217 | 217 | UINT8 layer[5]; |
| 218 | 218 | UINT8 pivlayer[3]; |
| 219 | 219 | UINT16 priority; |
| r8581 | r8582 | |
|---|---|---|
| 190 | 190 | state->charram = auto_alloc_array(machine, UINT8, CIDELSA_CHARRAM_SIZE); |
| 191 | 191 | |
| 192 | 192 | /* find devices */ |
| 193 | state->cdp1869 = | |
| 193 | state->cdp1869 = m | |
| 194 | 194 | |
| 195 | 195 | /* register for state saving */ |
| 196 | 196 | state_save_register_global(machine, state->cdp1869_pcb); |
| r8581 | r8582 | |
|---|---|---|
| 288 | 288 | UINT16 scrollx_offs, scrolly_offs; |
| 289 | 289 | |
| 290 | 290 | /* |
| 291 | It's not independ | |
| 291 | It's not independent bits causing layers to switch, that wouldn't make sense with 3 bits. | |
| 292 | 292 | See fuukifg3 for more justification |
| 293 | 293 | */ |
| 294 | 294 | static const int pri_table[6][3] = { |
| r8581 | r8582 | |
|---|---|---|
| 468 | 468 | { |
| 469 | 469 | int i; |
| 470 | 470 | |
| 471 | running_device *left_screen = devtag_get_device(screen->machine, "lscreen"); | |
| 472 | running_device *right_screen = devtag_get_device(screen->machine, "rscreen"); | |
| 471 | running_device *left_screen = screen->machine->device("lscreen"); | |
| 472 | running_device *right_screen = screen->machine->device("rscreen"); | |
| 473 | 473 | |
| 474 | 474 | /* read scroll values */ |
| 475 | 475 | int scroll0x = gaelco2_videoram[0x2802/2] + 0x14; |
| r8581 | r8582 | |
|---|---|---|
| 455 | 455 | case 0x100/2 : megasys1_sprite_flag = new_data; break; |
| 456 | 456 | |
| 457 | 457 | case 0x300/2 : megasys1_screen_flag = new_data; |
| 458 | if ( | |
| 458 | if ( | |
| 459 | 459 | { |
| 460 | 460 | if (new_data & 0x10) |
| 461 | 461 | cputag_set_input_line(space->machine, "soundcpu", INPUT_LINE_RESET, ASSERT_LINE); |
| r8581 | r8582 | |
|---|---|---|
| 321 | 321 | UINT16 scrollx_offs, scrolly_offs; |
| 322 | 322 | |
| 323 | 323 | /* |
| 324 | It's not independ | |
| 324 | It's not independent bits causing layers to switch, that wouldn't make sense with 3 bits. | |
| 325 | 325 | */ |
| 326 | 326 | |
| 327 | 327 | static const int pri_table[6][3] = { |
| r8581 | r8582 | |
|---|---|---|
| 212 | 212 | |
| 213 | 213 | VIDEO_UPDATE( tbowl ) |
| 214 | 214 | { |
| 215 | running_device *left_screen = devtag_get_device(screen->machine, "lscreen"); | |
| 216 | running_device *right_screen = devtag_get_device(screen->machine, "rscreen"); | |
| 215 | running_device *left_screen = screen->machine->device("lscreen"); | |
| 216 | running_device *right_screen = screen->machine->device("rscreen"); | |
| 217 | 217 | |
| 218 | 218 | if (screen == left_screen) |
| 219 | 219 | { |
| r8581 | r8582 | |
|---|---|---|
| 325 | 325 | case 0x09: |
| 326 | 326 | case 0x0a: |
| 327 | 327 | case 0x0b: |
| 328 | device = | |
| 328 | device = | |
| 329 | 329 | if (device != NULL && ACCESSING_BITS_0_7) |
| 330 | 330 | sn76496_w(device, 0, data & 0xff); |
| 331 | 331 | break; |
| r8581 | r8582 | |
|---|---|---|
| 130 | 130 | |
| 131 | 131 | VIDEO_UPDATE( triplhnt ) |
| 132 | 132 | { |
| 133 | running_device *discrete = | |
| 133 | running_device *discrete = | |
| 134 | 134 | |
| 135 | 135 | tilemap_mark_all_tiles_dirty(bg_tilemap); |
| 136 | 136 |
| r8581 | r8582 | |
|---|---|---|
| 42 | 42 | UINT8 *spriteram = screen->machine->generic.spriteram.u8; |
| 43 | 43 | int offs; |
| 44 | 44 | |
| 45 | running_device *left_screen = devtag_get_device(screen->machine, "lscreen"); | |
| 46 | running_device *right_screen = devtag_get_device(screen->machine, "rscreen"); | |
| 47 | running_device *discrete = devtag_get_device(screen->machine, "discrete"); | |
| 45 | running_device *left_screen = screen->machine->device("lscreen"); | |
| 46 | running_device *right_screen = screen->machine->device("rscreen"); | |
| 47 | running_device *discrete = screen->machine->device("discrete"); | |
| 48 | 48 | |
| 49 | 49 | /* for every character in the Video RAM, check if it has been modified */ |
| 50 | 50 | /* since last time and update it accordingly. */ |
| r0 | r8582 | |
|---|---|---|
| 1 | <?xml version="1.0"?> | |
| 2 | <mamelayout version="2"> | |
| 3 | <element name="shifter" defstate="0"> | |
| 4 | <rect> | |
| 5 | <bounds left="0" right="32" top="0" bottom="64" /> | |
| 6 | <color red="0.8" green="0.0" blue="0.0" /> | |
| 7 | </rect> | |
| 8 | <rect> | |
| 9 | <bounds left="2" right="30" top="2" bottom="62" /> | |
| 10 | <color red="0.0" green="0.0" blue="0.0" /> | |
| 11 | </rect> | |
| 12 | <rect> | |
| 13 | <bounds left="14" right="18" top="15" bottom="49" /> | |
| 14 | <color red="0.5" green="0.5" blue="0.5" /> | |
| 15 | </rect> | |
| 16 | <disk> | |
| 17 | <bounds left="14" right="18" top="13" bottom="17" /> | |
| 18 | <color red="0.5" green="0.5" blue="0.5" /> | |
| 19 | </disk> | |
| 20 | <disk> | |
| 21 | <bounds left="14" right="18" top="47" bottom="51" /> | |
| 22 | <color red="0.5" green="0.5" blue="0.5" /> | |
| 23 | </disk> | |
| 24 | <text string="LOW" state="0"> | |
| 25 | <bounds left="3" right="29" top="2" bottom="12" /> | |
| 26 | <color red="1.0" green="1.0" blue="0.0" /> | |
| 27 | </text> | |
| 28 | <text string="LOW" state="1"> | |
| 29 | <bounds left="3" right="29" top="2" bottom="12" /> | |
| 30 | <color red="1.0" green="1.0" blue="1.0" /> | |
| 31 | </text> | |
| 32 | ||
| 33 | <text string="HIGH" state="0"> | |
| 34 | <bounds left="3" right="29" top="52" bottom="62" /> | |
| 35 | <color red="1.0" green="1.0" blue="1.0" /> | |
| 36 | </text> | |
| 37 | <text string="HIGH" state="1"> | |
| 38 | <bounds left="3" right="29" top="52" bottom="62" /> | |
| 39 | <color red="1.0" green="1.0" blue="0.0" /> | |
| 40 | </text> | |
| 41 | <disk state="0"> | |
| 42 | <bounds left="9" right="23" top="14" bottom="28" /> | |
| 43 | <color red="0.8" green="0.0" blue="0.0" /> | |
| 44 | </disk> | |
| 45 | <disk state="1"> | |
| 46 | <bounds left="9" right="23" top="36" bottom="50" /> | |
| 47 | <color red="0.8" green="0.0" blue="0.0" /> | |
| 48 | </disk> | |
| 49 | </element> | |
| 50 | <view name="Shifter-R"> | |
| 51 | <screen index="0"> | |
| 52 | <bounds x="0" y="0" width="640" height="480" /> | |
| 53 | </screen> | |
| 54 | <bezel element="shifter" inputtag="IN0" inputmask="0x20"> | |
| 55 | <bounds x="606" y="414" width="32" height="64" /> | |
| 56 | <color alpha="0.9" /> | |
| 57 | </bezel> | |
| 58 | </view> | |
| 59 | <view name="Shifter-L"> | |
| 60 | <screen index="0"> | |
| 61 | <bounds x="0" y="0" width="640" height="480" /> | |
| 62 | </screen> | |
| 63 | <bezel element="shifter" inputtag="IN0" inputmask="0x20"> | |
| 64 | <bounds x="2" y="414" width="32" height="64" /> | |
| 65 | <color alpha="0.9" /> | |
| 66 | </bezel> | |
| 67 | </view> | |
| 68 | </mamelayout> |
| r8581 | r8582 | |
|---|---|---|
| 699 | 699 | { |
| 700 | 700 | nycaptor_state *state = (nycaptor_state *)machine->driver_data; |
| 701 | 701 | |
| 702 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 703 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 704 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 705 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 702 | state->maincpu = machine->device("maincpu"); | |
| 703 | state->audiocpu = machine->device("audiocpu"); | |
| 704 | state->subcpu = machine->device("sub"); | |
| 705 | state->mcu = machine->device("mcu"); | |
| 706 | 706 | |
| 707 | 707 | state_save_register_global(machine, state->generic_control_reg); |
| 708 | 708 | state_save_register_global(machine, state->sound_nmi_enable); |
| r8581 | r8582 | |
|---|---|---|
| 115 | 115 | |
| 116 | 116 | static READ8_HANDLER( pang_port5_r ) |
| 117 | 117 | { |
| 118 | int bit = eeprom_read_bit( | |
| 118 | int bit = eeprom_read_bit( | |
| 119 | 119 | |
| 120 | 120 | /* bits 0 and (sometimes) 3 are checked in the interrupt handler. |
| 121 | 121 | bit 3 is checked before updating the palette so it really seems to be vblank. |
| r8581 | r8582 | |
|---|---|---|
| 283 | 283 | { |
| 284 | 284 | blktiger_state *state = (blktiger_state *)machine->driver_data; |
| 285 | 285 | |
| 286 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 287 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 286 | state->audiocpu = machine->device("audiocpu"); | |
| 287 | state->mcu = machine->device("mcu"); | |
| 288 | 288 | |
| 289 | 289 | /* configure bankswitching */ |
| 290 | 290 | memory_configure_bank(machine, "bank1", 0, 16, memory_region(machine, "maincpu") + 0x10000, 0x4000); |
| r8581 | r8582 | |
|---|---|---|
| 304 | 304 | { |
| 305 | 305 | mgolf_state *state = (mgolf_state *)machine->driver_data; |
| 306 | 306 | |
| 307 | state->maincpu = | |
| 307 | state->maincpu = m | |
| 308 | 308 | |
| 309 | 309 | state_save_register_global(machine, state->prev); |
| 310 | 310 | state_save_register_global(machine, state->mask); |
| r8581 | r8582 | |
|---|---|---|
| 742 | 742 | static DRIVER_INIT( avengrgs ) |
| 743 | 743 | { |
| 744 | 744 | // init options |
| 745 | sh2drc_set_options( | |
| 745 | sh2drc_set_options(m | |
| 746 | 746 | |
| 747 | 747 | // set up speed cheat |
| 748 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x3234); | |
| 749 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x32dc); | |
| 748 | sh2drc_add_pcflush(machine->device("maincpu"), 0x3234); | |
| 749 | sh2drc_add_pcflush(machine->device("maincpu"), 0x32dc); | |
| 750 | 750 | |
| 751 | 751 | mainCpuIsArm = 0; |
| 752 | 752 | memory_install_read32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x01089a0, 0x01089a3, 0, 0, avengrgs_speedup_r ); |
| r8581 | r8582 | |
| 758 | 758 | /* The timing in the ARM core isn't as accurate as it should be, so bump up the |
| 759 | 759 | effective clock rate here to compensate otherwise we have slowdowns in |
| 760 | 760 | Skull Fung where there probably shouldn't be. */ |
| 761 | c | |
| 761 | machin | |
| 762 | 762 | mainCpuIsArm = 1; |
| 763 | 763 | deco156_decrypt(machine); |
| 764 | 764 | descramble_sound(machine); |
| r8581 | r8582 | |
|---|---|---|
| 463 | 463 | ROM_LOAD16_BYTE( "pp2-u1.u102", 0x400001, 0x200000, CRC(7a3492fb) SHA1(de72c4d10e17eaf2b7531f637b42cbb3d07819b5) ) |
| 464 | 464 | // empty space, but no empty sockets on the pcb |
| 465 | 465 | |
| 466 | ROM_REGION( 0x0800, "cpu1", 0 ) /* AT89C52 (protected) */ | |
| 467 | ROM_LOAD( "pasha2_at89c52", 0x0000, 0x0800, NO_DUMP ) /* MCU internal 8K flash */ | |
| 466 | // not hooked up yet | |
| 467 | ROM_REGION( 0x2000, "cpu1", 0 ) /* AT89C52 */ | |
| 468 | ROM_LOAD( "89c52.bin", 0x0000, 0x2000, CRC(9ce43ce4) SHA1(8027a3549b38e9a2e7bb8f518a0defcaf9743371) ) | |
| 468 | 469 | |
| 469 | 470 | ROM_REGION( 0x80000, "user3", 0 ) /* SAM9773 sound data */ |
| 470 | 471 | ROM_LOAD( "pp2.um2", 0x00000, 0x80000, CRC(86814b37) SHA1(70f8a94410e362669570c39e00492c0d69de6b17) ) |
| r8581 | r8582 | |
|---|---|---|
| 255 | 255 | sound every four rounds of demo play. |
| 256 | 256 | |
| 257 | 257 | TODO: |
| 258 | - the MCU is actually a 6801U4, which has additional features like internal timers | |
| 259 | (similar to the HD63701). I've just mapped the I/O ports since that's the only | |
| 260 | thing required for normal operation, but the program does use some of the | |
| 261 | additional features in its special "test" mode. | |
| 262 | - tokio: doesn't work due to missing MCU protection emulation. | |
| 258 | - the Bubble Bobble MCU is actually an MC6801U4, which has additional features like | |
| 259 | internal timers (similar to the HD63701). I've just mapped the I/O ports since | |
| 260 | that's the only thing required for normal operation, but the program does | |
| 261 | use some of the additional features in its special "test" mode. | |
| 262 | - tokio: doesn't work due to missing MC68705 MCU protection emulation. | |
| 263 | 263 | - tokio: sound support is probably incomplete. There are a couple of unknown |
| 264 | 264 | accesses done by the CPU, including to the YM2203 I/O ports. At the |
| 265 | 265 | very least, there should be some filters. |
| r8581 | r8582 | |
| 725 | 725 | { |
| 726 | 726 | bublbobl_state *state = (bublbobl_state *)machine->driver_data; |
| 727 | 727 | |
| 728 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 729 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 730 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 731 | state->slave = devtag_get_device(machine, "slave"); | |
| 728 | state->maincpu = machine->device("maincpu"); | |
| 729 | state->mcu = machine->device("mcu"); | |
| 730 | state->audiocpu = machine->device("audiocpu"); | |
| 731 | state->slave = machine->device("slave"); | |
| 732 | 732 | |
| 733 | 733 | state_save_register_global(machine, state->sound_nmi_enable); |
| 734 | 734 | state_save_register_global(machine, state->pending_nmi); |
| r8581 | r8582 | |
| 981 | 981 | * ROM definition(s) |
| 982 | 982 | * |
| 983 | 983 | *************************************/ |
| 984 | ROM_START( tokio ) // newer japan set, has -1 revision of roms 02, 03 and 06 | |
| 985 | ROM_REGION( 0x30000, "maincpu", 0 ) /* main CPU */ | |
| 986 | ROM_LOAD( "a71-02-1.ic4", 0x00000, 0x8000, CRC(BB8DABD7) SHA1(141E9F0C19BCF316477681369E2D98DFFDD8435D) ) | |
| 987 | /* ROMs banked at 8000-bfff */ | |
| 988 | ROM_LOAD( "a71-03-1.ic5", 0x10000, 0x8000, CRC(EE49B383) SHA1(D510A1D168542DF6A87C7D7C67A47CF776A51F29) ) | |
| 989 | ROM_LOAD( "a71-04.ic6", 0x18000, 0x8000, CRC(a0a4ce0e) SHA1(c49bdcd85c760a5e7327d1b424772e1560f1a318) ) | |
| 990 | ROM_LOAD( "a71-05.ic7", 0x20000, 0x8000, CRC(6da0b945) SHA1(6c80b8333dd95657f99e6ba5b6e877733ac02a8c) ) | |
| 991 | ROM_LOAD( "a71-06-1.ic8", 0x28000, 0x8000, CRC(56927B3F) SHA1(33FB4E71B95664ECFF1F35F6782A14101982A56D) ) | |
| 984 | 992 | |
| 985 | ROM_START( tokio ) | |
| 993 | ROM_REGION( 0x10000, "slave", 0 ) /* video CPU */ | |
| 994 | ROM_LOAD( "a71-01.ic1", 0x00000, 0x8000, CRC(0867c707) SHA1(7129974f1252b28e9e338bd3c7fcb87210dcf412) ) | |
| 995 | ||
| 996 | ROM_REGION( 0x10000, "audiocpu", 0 ) /* audio CPU */ | |
| 997 | ROM_LOAD( "a71-07.ic10", 0x0000, 0x08000, CRC(f298cc7b) SHA1(ebf5c804aa07b7f198ec3e1f8d1e111cd89ebdf3) ) | |
| 998 | ||
| 999 | ROM_REGION( 0x0800, "cpu3", 0 ) /* 2k for the microcontroller (68705P5) */ | |
| 1000 | ROM_LOAD( "a71-24.ic57", 0x0000, 0x0800, NO_DUMP ) | |
| 1001 | ||
| 1002 | ROM_REGION( 0x80000, "gfx1", ROMREGION_INVERT ) /* gfx roms, on gfx board */ | |
| 1003 | ROM_LOAD( "a71-08.ic12", 0x00000, 0x8000, CRC(0439ab13) SHA1(84142220a6a29f0e34f7c7c751b583bf394df8ce) ) /* 1st plane */ | |
| 1004 | ROM_LOAD( "a71-09.ic13", 0x08000, 0x8000, CRC(edb3d2ff) SHA1(0c6e4bbc786a097f9d99220e72f98c1c795a7292) ) | |
| 1005 | ROM_LOAD( "a71-10.ic14", 0x10000, 0x8000, CRC(69f0888c) SHA1(1704ab6339981195cd09d581e83094c75037d18e) ) | |
| 1006 | ROM_LOAD( "a71-11.ic15", 0x18000, 0x8000, CRC(4ae07c31) SHA1(452d1eb5a70e7853791cd05e4578c1454477bdec) ) | |
| 1007 | ROM_LOAD( "a71-12.ic16", 0x20000, 0x8000, CRC(3f6bd706) SHA1(b03c534a95b71941331d3ffd9aa7069b5f05687e) ) | |
| 1008 | ROM_LOAD( "a71-13.ic17", 0x28000, 0x8000, CRC(f2c92aaa) SHA1(7dfdc473794a298032405ba918df8085b0bbe174) ) | |
| 1009 | ROM_LOAD( "a71-14.ic18", 0x30000, 0x8000, CRC(c574b7b2) SHA1(9839adce60c0017ae3997603a2aece511af226d2) ) | |
| 1010 | ROM_LOAD( "a71-15.ic19", 0x38000, 0x8000, CRC(12d87e7f) SHA1(327a80f08207ee66721738f7e1c53f75b5659be0) ) | |
| 1011 | ROM_LOAD( "a71-16.ic30", 0x40000, 0x8000, CRC(0bce35b6) SHA1(3f0496db6681c7be1e36ba41296115d158d7457a) ) /* 2nd plane */ | |
| 1012 | ROM_LOAD( "a71-17.ic31", 0x48000, 0x8000, CRC(deda6387) SHA1(40f0be3a71b0a03f0275da72f4124424b162318a) ) | |
| 1013 | ROM_LOAD( "a71-18.ic32", 0x50000, 0x8000, CRC(330cd9d7) SHA1(919f78036b760938d6aa72754be1a615f568b470) ) | |
| 1014 | ROM_LOAD( "a71-19.ic33", 0x58000, 0x8000, CRC(fc4b29e0) SHA1(d11393a24b5c6c04f5058b299e4b0fc773a03e4b) ) | |
| 1015 | ROM_LOAD( "a71-20.ic34", 0x60000, 0x8000, CRC(65acb265) SHA1(2ef940f994e76d4387be6e0d53a565813cc59636) ) | |
| 1016 | ROM_LOAD( "a71-21.ic35", 0x68000, 0x8000, CRC(33cde9b2) SHA1(9b227ab609e3c7c6be90c29739a57ea4959cd68e) ) | |
| 1017 | ROM_LOAD( "a71-22.ic36", 0x70000, 0x8000, CRC(fb98eac0) SHA1(57615c3934de5510eeeb0ba16024abda8ee95303) ) | |
| 1018 | ROM_LOAD( "a71-23.ic37", 0x78000, 0x8000, CRC(30bd46ad) SHA1(6e1618ed237c769d1a8d329fbd7a9f7216993215) ) | |
| 1019 | ||
| 1020 | ROM_REGION( 0x0100, "proms", 0 ) | |
| 1021 | ROM_LOAD( "a71-25.ic41", 0x0000, 0x0100, CRC(2d0f8545) SHA1(089c31e2f614145ef2743164f7b52ae35bc06808) ) /* video timing, on gfx board */ | |
| 1022 | ||
| 1023 | ROM_REGION( 0x0200, "plds", 0 ) | |
| 1024 | ROM_LOAD( "a71-26.ic19", 0x0000, 0x0117, CRC(4e1f119c) SHA1(0ac8eb2fdb202951e5f7145f92dfd10fe96b294b) ) | |
| 1025 | ROM_END | |
| 1026 | ||
| 1027 | ROM_START( tokioo ) // older japan set, has older roms 02, 03, 06 | |
| 986 | 1028 | ROM_REGION( 0x30000, "maincpu", 0 ) /* main CPU */ |
| 987 | ROM_LOAD( "a71-02.4", | |
| 1029 | ROM_LOAD( "a71-02.ic4", | |
| 988 | 1030 | /* ROMs banked at 8000-bfff */ |
| 989 | ROM_LOAD( "a71-03.5", 0x10000, 0x8000, CRC(69dacf44) SHA1(ee8c33702749c0e2562951f9f80c897d3fbd7dd7) ) | |
| 990 | ROM_LOAD( "a71-04.6", 0x18000, 0x8000, CRC(a0a4ce0e) SHA1(c49bdcd85c760a5e7327d1b424772e1560f1a318) ) | |
| 991 | ROM_LOAD( "a71-05.7", 0x20000, 0x8000, CRC(6da0b945) SHA1(6c80b8333dd95657f99e6ba5b6e877733ac02a8c) ) | |
| 992 | ROM_LOAD( "a71-06.8", 0x28000, 0x8000, CRC(447d6779) SHA1(5b329b221357a9cea777415d409a6423529a925c) ) | |
| 1031 | ROM_LOAD( "a71-03.ic5", 0x10000, 0x8000, CRC(69dacf44) SHA1(ee8c33702749c0e2562951f9f80c897d3fbd7dd7) ) | |
| 1032 | ROM_LOAD( "a71-04.ic6", 0x18000, 0x8000, CRC(a0a4ce0e) SHA1(c49bdcd85c760a5e7327d1b424772e1560f1a318) ) | |
| 1033 | ROM_LOAD( "a71-05.ic7", 0x20000, 0x8000, CRC(6da0b945) SHA1(6c80b8333dd95657f99e6ba5b6e877733ac02a8c) ) | |
| 1034 | ROM_LOAD( "a71-06.ic8", 0x28000, 0x8000, CRC(447d6779) SHA1(5b329b221357a9cea777415d409a6423529a925c) ) | |
| 993 | 1035 | |
| 994 | 1036 | ROM_REGION( 0x10000, "slave", 0 ) /* video CPU */ |
| 995 | ROM_LOAD( "a71-01.1", | |
| 1037 | ROM_LOAD( "a71-01.ic1", | |
| 996 | 1038 | |
| 997 | 1039 | ROM_REGION( 0x10000, "audiocpu", 0 ) /* audio CPU */ |
| 998 | ROM_LOAD( "a71-07.10", | |
| 1040 | ROM_LOAD( "a71-07.ic10", | |
| 999 | 1041 | |
| 1000 | 1042 | ROM_REGION( 0x0800, "cpu3", 0 ) /* 2k for the microcontroller (68705P5) */ |
| 1001 | ROM_LOAD( "a71-24.57", | |
| 1043 | ROM_LOAD( "a71-24.ic57", | |
| 1002 | 1044 | |
| 1003 | ROM_REGION( 0x80000, "gfx1", ROMREGION_INVERT ) | |
| 1004 | ROM_LOAD( "a71-08.12", 0x00000, 0x8000, CRC(0439ab13) SHA1(84142220a6a29f0e34f7c7c751b583bf394df8ce) ) /* 1st plane */ | |
| 1005 | ROM_LOAD( "a71-09.13", 0x08000, 0x8000, CRC(edb3d2ff) SHA1(0c6e4bbc786a097f9d99220e72f98c1c795a7292) ) | |
| 1006 | ROM_LOAD( "a71-10.14", 0x10000, 0x8000, CRC(69f0888c) SHA1(1704ab6339981195cd09d581e83094c75037d18e) ) | |
| 1007 | ROM_LOAD( "a71-11.15", 0x18000, 0x8000, CRC(4ae07c31) SHA1(452d1eb5a70e7853791cd05e4578c1454477bdec) ) | |
| 1008 | ROM_LOAD( "a71-12.16", 0x20000, 0x8000, CRC(3f6bd706) SHA1(b03c534a95b71941331d3ffd9aa7069b5f05687e) ) | |
| 1009 | ROM_LOAD( "a71-13.17", 0x28000, 0x8000, CRC(f2c92aaa) SHA1(7dfdc473794a298032405ba918df8085b0bbe174) ) | |
| 1010 | ROM_LOAD( "a71-14.18", 0x30000, 0x8000, CRC(c574b7b2) SHA1(9839adce60c0017ae3997603a2aece511af226d2) ) | |
| 1011 | ROM_LOAD( "a71-15.19", 0x38000, 0x8000, CRC(12d87e7f) SHA1(327a80f08207ee66721738f7e1c53f75b5659be0) ) | |
| 1012 | ROM_LOAD( "a71-16.30", 0x40000, 0x8000, CRC(0bce35b6) SHA1(3f0496db6681c7be1e36ba41296115d158d7457a) ) /* 2nd plane */ | |
| 1013 | ROM_LOAD( "a71-17.31", 0x48000, 0x8000, CRC(deda6387) SHA1(40f0be3a71b0a03f0275da72f4124424b162318a) ) | |
| 1014 | ROM_LOAD( "a71-18.32", 0x50000, 0x8000, CRC(330cd9d7) SHA1(919f78036b760938d6aa72754be1a615f568b470) ) | |
| 1015 | ROM_LOAD( "a71-19.33", 0x58000, 0x8000, CRC(fc4b29e0) SHA1(d11393a24b5c6c04f5058b299e4b0fc773a03e4b) ) | |
| 1016 | ROM_LOAD( "a71-20.34", 0x60000, 0x8000, CRC(65acb265) SHA1(2ef940f994e76d4387be6e0d53a565813cc59636) ) | |
| 1017 | ROM_LOAD( "a71-21.35", 0x68000, 0x8000, CRC(33cde9b2) SHA1(9b227ab609e3c7c6be90c29739a57ea4959cd68e) ) | |
| 1018 | ROM_LOAD( "a71-22.36", 0x70000, 0x8000, CRC(fb98eac0) SHA1(57615c3934de5510eeeb0ba16024abda8ee95303) ) | |
| 1019 | ROM_LOAD( "a71-23.37", 0x78000, 0x8000, CRC(30bd46ad) SHA1(6e1618ed237c769d1a8d329fbd7a9f7216993215) ) | |
| 1045 | ROM_REGION( 0x80000, "gfx1", ROMREGION_INVERT ) /* gfx roms, on gfx board */ | |
| 1046 | ROM_LOAD( "a71-08.ic12", 0x00000, 0x8000, CRC(0439ab13) SHA1(84142220a6a29f0e34f7c7c751b583bf394df8ce) ) /* 1st plane */ | |
| 1047 | ROM_LOAD( "a71-09.ic13", 0x08000, 0x8000, CRC(edb3d2ff) SHA1(0c6e4bbc786a097f9d99220e72f98c1c795a7292) ) | |
| 1048 | ROM_LOAD( "a71-10.ic14", 0x10000, 0x8000, CRC(69f0888c) SHA1(1704ab6339981195cd09d581e83094c75037d18e) ) | |
| 1049 | ROM_LOAD( "a71-11.ic15", 0x18000, 0x8000, CRC(4ae07c31) SHA1(452d1eb5a70e7853791cd05e4578c1454477bdec) ) | |
| 1050 | ROM_LOAD( "a71-12.ic16", 0x20000, 0x8000, CRC(3f6bd706) SHA1(b03c534a95b71941331d3ffd9aa7069b5f05687e) ) | |
| 1051 | ROM_LOAD( "a71-13.ic17", 0x28000, 0x8000, CRC(f2c92aaa) SHA1(7dfdc473794a298032405ba918df8085b0bbe174) ) | |
| 1052 | ROM_LOAD( "a71-14.ic18", 0x30000, 0x8000, CRC(c574b7b2) SHA1(9839adce60c0017ae3997603a2aece511af226d2) ) | |
| 1053 | ROM_LOAD( "a71-15.ic19", 0x38000, 0x8000, CRC(12d87e7f) SHA1(327a80f08207ee66721738f7e1c53f75b5659be0) ) | |
| 1054 | ROM_LOAD( "a71-16.ic30", 0x40000, 0x8000, CRC(0bce35b6) SHA1(3f0496db6681c7be1e36ba41296115d158d7457a) ) /* 2nd plane */ | |
| 1055 | ROM_LOAD( "a71-17.ic31", 0x48000, 0x8000, CRC(deda6387) SHA1(40f0be3a71b0a03f0275da72f4124424b162318a) ) | |
| 1056 | ROM_LOAD( "a71-18.ic32", 0x50000, 0x8000, CRC(330cd9d7) SHA1(919f78036b760938d6aa72754be1a615f568b470) ) | |
| 1057 | ROM_LOAD( "a71-19.ic33", 0x58000, 0x8000, CRC(fc4b29e0) SHA1(d11393a24b5c6c04f5058b299e4b0fc773a03e4b) ) | |
| 1058 | ROM_LOAD( "a71-20.ic34", 0x60000, 0x8000, CRC(65acb265) SHA1(2ef940f994e76d4387be6e0d53a565813cc59636) ) | |
| 1059 | ROM_LOAD( "a71-21.ic35", 0x68000, 0x8000, CRC(33cde9b2) SHA1(9b227ab609e3c7c6be90c29739a57ea4959cd68e) ) | |
| 1060 | ROM_LOAD( "a71-22.ic36", 0x70000, 0x8000, CRC(fb98eac0) SHA1(57615c3934de5510eeeb0ba16024abda8ee95303) ) | |
| 1061 | ROM_LOAD( "a71-23.ic37", 0x78000, 0x8000, CRC(30bd46ad) SHA1(6e1618ed237c769d1a8d329fbd7a9f7216993215) ) | |
| 1020 | 1062 | |
| 1021 | 1063 | ROM_REGION( 0x0100, "proms", 0 ) |
| 1022 | ROM_LOAD( "a71-25.41", | |
| 1064 | ROM_LOAD( "a71-25.ic41", | |
| 1023 | 1065 | |
| 1024 | 1066 | ROM_REGION( 0x0200, "plds", 0 ) |
| 1025 | ROM_LOAD( "a71-26. | |
| 1067 | ROM_LOAD( "a71-26. | |
| 1026 | 1068 | ROM_END |
| 1027 | 1069 | |
| 1028 | 1070 | ROM_START( tokiou ) |
| 1029 | 1071 | ROM_REGION( 0x30000, "maincpu", 0 ) /* main CPU */ |
| 1030 | ROM_LOAD( "a71-27-1.4", | |
| 1072 | ROM_LOAD( "a71-27-1.ic4", | |
| 1031 | 1073 | /* ROMs banked at 8000-bfff */ |
| 1032 | ROM_LOAD( "a71-28-1.5", 0x10000, 0x8000, CRC(1b447527) SHA1(6939e6c1b8492825d18f4e96f39ff45f4c96eea2) ) | |
| 1033 | ROM_LOAD( "a71-04.6", 0x18000, 0x8000, CRC(a0a4ce0e) SHA1(c49bdcd85c760a5e7327d1b424772e1560f1a318) ) | |
| 1034 | ROM_LOAD( "a71-05.7", 0x20000, 0x8000, CRC(6da0b945) SHA1(6c80b8333dd95657f99e6ba5b6e877733ac02a8c) ) | |
| 1035 | ROM_LOAD( "a71-06-1.8", 0x28000, 0x8000, CRC(56927b3f) SHA1(33fb4e71b95664ecff1f35f6782a14101982a56d) ) | |
| 1074 | ROM_LOAD( "a71-28-1.ic5", 0x10000, 0x8000, CRC(1b447527) SHA1(6939e6c1b8492825d18f4e96f39ff45f4c96eea2) ) | |
| 1075 | ROM_LOAD( "a71-04.ic6", 0x18000, 0x8000, CRC(a0a4ce0e) SHA1(c49bdcd85c760a5e7327d1b424772e1560f1a318) ) | |
| 1076 | ROM_LOAD( "a71-05.ic7", 0x20000, 0x8000, CRC(6da0b945) SHA1(6c80b8333dd95657f99e6ba5b6e877733ac02a8c) ) | |
| 1077 | ROM_LOAD( "a71-06-1.ic8", 0x28000, 0x8000, CRC(56927b3f) SHA1(33fb4e71b95664ecff1f35f6782a14101982a56d) ) | |
| 1036 | 1078 | |
| 1037 | 1079 | ROM_REGION( 0x10000, "slave", 0 ) /* video CPU */ |
| 1038 | ROM_LOAD( "a71-01.1", | |
| 1080 | ROM_LOAD( "a71-01.ic1", | |
| 1039 | 1081 | |
| 1040 | 1082 | ROM_REGION( 0x10000, "audiocpu", 0 ) /* audio CPU */ |
| 1041 | ROM_LOAD( "a71-07.10", | |
| 1083 | ROM_LOAD( "a71-07.ic10", | |
| 1042 | 1084 | |
| 1043 | 1085 | ROM_REGION( 0x0800, "cpu3", 0 ) /* 2k for the microcontroller (68705P5) */ |
| 1044 | ROM_LOAD( "a71-24.57", | |
| 1086 | ROM_LOAD( "a71-24.ic57", | |
| 1045 | 1087 | |
| 1046 | ROM_REGION( 0x80000, "gfx1", ROMREGION_INVERT ) | |
| 1047 | ROM_LOAD( "a71-08.12", 0x00000, 0x8000, CRC(0439ab13) SHA1(84142220a6a29f0e34f7c7c751b583bf394df8ce) ) /* 1st plane */ | |
| 1048 | ROM_LOAD( "a71-09.13", 0x08000, 0x8000, CRC(edb3d2ff) SHA1(0c6e4bbc786a097f9d99220e72f98c1c795a7292) ) | |
| 1049 | ROM_LOAD( "a71-10.14", 0x10000, 0x8000, CRC(69f0888c) SHA1(1704ab6339981195cd09d581e83094c75037d18e) ) | |
| 1050 | ROM_LOAD( "a71-11.15", 0x18000, 0x8000, CRC(4ae07c31) SHA1(452d1eb5a70e7853791cd05e4578c1454477bdec) ) | |
| 1051 | ROM_LOAD( "a71-12.16", 0x20000, 0x8000, CRC(3f6bd706) SHA1(b03c534a95b71941331d3ffd9aa7069b5f05687e) ) | |
| 1052 | ROM_LOAD( "a71-13.17", 0x28000, 0x8000, CRC(f2c92aaa) SHA1(7dfdc473794a298032405ba918df8085b0bbe174) ) | |
| 1053 | ROM_LOAD( "a71-14.18", 0x30000, 0x8000, CRC(c574b7b2) SHA1(9839adce60c0017ae3997603a2aece511af226d2) ) | |
| 1054 | ROM_LOAD( "a71-15.19", 0x38000, 0x8000, CRC(12d87e7f) SHA1(327a80f08207ee66721738f7e1c53f75b5659be0) ) | |
| 1055 | ROM_LOAD( "a71-16.30", 0x40000, 0x8000, CRC(0bce35b6) SHA1(3f0496db6681c7be1e36ba41296115d158d7457a) ) /* 2nd plane */ | |
| 1056 | ROM_LOAD( "a71-17.31", 0x48000, 0x8000, CRC(deda6387) SHA1(40f0be3a71b0a03f0275da72f4124424b162318a) ) | |
| 1057 | ROM_LOAD( "a71-18.32", 0x50000, 0x8000, CRC(330cd9d7) SHA1(919f78036b760938d6aa72754be1a615f568b470) ) | |
| 1058 | ROM_LOAD( "a71-19.33", 0x58000, 0x8000, CRC(fc4b29e0) SHA1(d11393a24b5c6c04f5058b299e4b0fc773a03e4b) ) | |
| 1059 | ROM_LOAD( "a71-20.34", 0x60000, 0x8000, CRC(65acb265) SHA1(2ef940f994e76d4387be6e0d53a565813cc59636) ) | |
| 1060 | ROM_LOAD( "a71-21.35", 0x68000, 0x8000, CRC(33cde9b2) SHA1(9b227ab609e3c7c6be90c29739a57ea4959cd68e) ) | |
| 1061 | ROM_LOAD( "a71-22.36", 0x70000, 0x8000, CRC(fb98eac0) SHA1(57615c3934de5510eeeb0ba16024abda8ee95303) ) | |
| 1062 | ROM_LOAD( "a71-23.37", 0x78000, 0x8000, CRC(30bd46ad) SHA1(6e1618ed237c769d1a8d329fbd7a9f7216993215) ) | |
| 1088 | ROM_REGION( 0x80000, "gfx1", ROMREGION_INVERT ) /* gfx roms, on gfx board */ | |
| 1089 | ROM_LOAD( "a71-08.ic12", 0x00000, 0x8000, CRC(0439ab13) SHA1(84142220a6a29f0e34f7c7c751b583bf394df8ce) ) /* 1st plane */ | |
| 1090 | ROM_LOAD( "a71-09.ic13", 0x08000, 0x8000, CRC(edb3d2ff) SHA1(0c6e4bbc786a097f9d99220e72f98c1c795a7292) ) | |
| 1091 | ROM_LOAD( "a71-10.ic14", 0x10000, 0x8000, CRC(69f0888c) SHA1(1704ab6339981195cd09d581e83094c75037d18e) ) | |
| 1092 | ROM_LOAD( "a71-11.ic15", 0x18000, 0x8000, CRC(4ae07c31) SHA1(452d1eb5a70e7853791cd05e4578c1454477bdec) ) | |
| 1093 | ROM_LOAD( "a71-12.ic16", 0x20000, 0x8000, CRC(3f6bd706) SHA1(b03c534a95b71941331d3ffd9aa7069b5f05687e) ) | |
| 1094 | ROM_LOAD( "a71-13.ic17", 0x28000, 0x8000, CRC(f2c92aaa) SHA1(7dfdc473794a298032405ba918df8085b0bbe174) ) | |
| 1095 | ROM_LOAD( "a71-14.ic18", 0x30000, 0x8000, CRC(c574b7b2) SHA1(9839adce60c0017ae3997603a2aece511af226d2) ) | |
| 1096 | ROM_LOAD( "a71-15.ic19", 0x38000, 0x8000, CRC(12d87e7f) SHA1(327a80f08207ee66721738f7e1c53f75b5659be0) ) | |
| 1097 | ROM_LOAD( "a71-16.ic30", 0x40000, 0x8000, CRC(0bce35b6) SHA1(3f0496db6681c7be1e36ba41296115d158d7457a) ) /* 2nd plane */ | |
| 1098 | ROM_LOAD( "a71-17.ic31", 0x48000, 0x8000, CRC(deda6387) SHA1(40f0be3a71b0a03f0275da72f4124424b162318a) ) | |
| 1099 | ROM_LOAD( "a71-18.ic32", 0x50000, 0x8000, CRC(330cd9d7) SHA1(919f78036b760938d6aa72754be1a615f568b470) ) | |
| 1100 | ROM_LOAD( "a71-19.ic33", 0x58000, 0x8000, CRC(fc4b29e0) SHA1(d11393a24b5c6c04f5058b299e4b0fc773a03e4b) ) | |
| 1101 | ROM_LOAD( "a71-20.ic34", 0x60000, 0x8000, CRC(65acb265) SHA1(2ef940f994e76d4387be6e0d53a565813cc59636) ) | |
| 1102 | ROM_LOAD( "a71-21.ic35", 0x68000, 0x8000, CRC(33cde9b2) SHA1(9b227ab609e3c7c6be90c29739a57ea4959cd68e) ) | |
| 1103 | ROM_LOAD( "a71-22.ic36", 0x70000, 0x8000, CRC(fb98eac0) SHA1(57615c3934de5510eeeb0ba16024abda8ee95303) ) | |
| 1104 | ROM_LOAD( "a71-23.ic37", 0x78000, 0x8000, CRC(30bd46ad) SHA1(6e1618ed237c769d1a8d329fbd7a9f7216993215) ) | |
| 1063 | 1105 | |
| 1064 | 1106 | ROM_REGION( 0x0100, "proms", 0 ) |
| 1065 | ROM_LOAD( "a71-25.41", | |
| 1107 | ROM_LOAD( "a71-25.ic41", | |
| 1066 | 1108 | |
| 1067 | 1109 | ROM_REGION( 0x0200, "plds", 0 ) |
| 1068 | ROM_LOAD( "a71-26. | |
| 1110 | ROM_LOAD( "a71-26. | |
| 1069 | 1111 | ROM_END |
| 1070 | 1112 | |
| 1071 | 1113 | ROM_START( tokiob ) |
| 1072 | 1114 | ROM_REGION( 0x30000, "maincpu", 0 ) /* main CPU */ |
| 1073 | ROM_LOAD( "2", | |
| 1115 | ROM_LOAD( "2.ic4", | |
| 1074 | 1116 | /* ROMs banked at 8000-bfff */ |
| 1075 | ROM_LOAD( "a71-03.5", 0x10000, 0x8000, CRC(69dacf44) SHA1(ee8c33702749c0e2562951f9f80c897d3fbd7dd7) ) | |
| 1076 | ROM_LOAD( "a71-04.6", 0x18000, 0x8000, CRC(a0a4ce0e) SHA1(c49bdcd85c760a5e7327d1b424772e1560f1a318) ) | |
| 1077 | ROM_LOAD( "a71-05.7", 0x20000, 0x8000, CRC(6da0b945) SHA1(6c80b8333dd95657f99e6ba5b6e877733ac02a8c) ) | |
| 1078 | ROM_LOAD( "6", 0x28000, 0x8000, CRC(1490e95b) SHA1(a73e1857a1029156f0b5f7f7fe34a37870e72209) ) | |
| 1117 | ROM_LOAD( "a71-03.ic5", 0x10000, 0x8000, CRC(69dacf44) SHA1(ee8c33702749c0e2562951f9f80c897d3fbd7dd7) ) | |
| 1118 | ROM_LOAD( "a71-04.ic6", 0x18000, 0x8000, CRC(a0a4ce0e) SHA1(c49bdcd85c760a5e7327d1b424772e1560f1a318) ) | |
| 1119 | ROM_LOAD( "a71-05.ic7", 0x20000, 0x8000, CRC(6da0b945) SHA1(6c80b8333dd95657f99e6ba5b6e877733ac02a8c) ) | |
| 1120 | ROM_LOAD( "6.ic8", 0x28000, 0x8000, CRC(1490e95b) SHA1(a73e1857a1029156f0b5f7f7fe34a37870e72209) ) | |
| 1079 | 1121 | |
| 1080 | 1122 | ROM_REGION( 0x10000, "slave", 0 ) /* video CPU */ |
| 1081 | ROM_LOAD( "a71-01.1", | |
| 1123 | ROM_LOAD( "a71-01.ic1", | |
| 1082 | 1124 | |
| 1083 | 1125 | ROM_REGION( 0x10000, "audiocpu", 0 ) /* audio CPU */ |
| 1084 | ROM_LOAD( "a71-07.10", | |
| 1126 | ROM_LOAD( "a71-07.ic10", | |
| 1085 | 1127 | |
| 1086 | ROM_REGION( 0x80000, "gfx1", ROMREGION_INVERT ) | |
| 1087 | ROM_LOAD( "a71-08.12", 0x00000, 0x8000, CRC(0439ab13) SHA1(84142220a6a29f0e34f7c7c751b583bf394df8ce) ) /* 1st plane */ | |
| 1088 | ROM_LOAD( "a71-09.13", 0x08000, 0x8000, CRC(edb3d2ff) SHA1(0c6e4bbc786a097f9d99220e72f98c1c795a7292) ) | |
| 1089 | ROM_LOAD( "a71-10.14", 0x10000, 0x8000, CRC(69f0888c) SHA1(1704ab6339981195cd09d581e83094c75037d18e) ) | |
| 1090 | ROM_LOAD( "a71-11.15", 0x18000, 0x8000, CRC(4ae07c31) SHA1(452d1eb5a70e7853791cd05e4578c1454477bdec) ) | |
| 1091 | ROM_LOAD( "a71-12.16", 0x20000, 0x8000, CRC(3f6bd706) SHA1(b03c534a95b71941331d3ffd9aa7069b5f05687e) ) | |
| 1092 | ROM_LOAD( "a71-13.17", 0x28000, 0x8000, CRC(f2c92aaa) SHA1(7dfdc473794a298032405ba918df8085b0bbe174) ) | |
| 1093 | ROM_LOAD( "a71-14.18", 0x30000, 0x8000, CRC(c574b7b2) SHA1(9839adce60c0017ae3997603a2aece511af226d2) ) | |
| 1094 | ROM_LOAD( "a71-15.19", 0x38000, 0x8000, CRC(12d87e7f) SHA1(327a80f08207ee66721738f7e1c53f75b5659be0) ) | |
| 1095 | ROM_LOAD( "a71-16.30", 0x40000, 0x8000, CRC(0bce35b6) SHA1(3f0496db6681c7be1e36ba41296115d158d7457a) ) /* 2nd plane */ | |
| 1096 | ROM_LOAD( "a71-17.31", 0x48000, 0x8000, CRC(deda6387) SHA1(40f0be3a71b0a03f0275da72f4124424b162318a) ) | |
| 1097 | ROM_LOAD( "a71-18.32", 0x50000, 0x8000, CRC(330cd9d7) SHA1(919f78036b760938d6aa72754be1a615f568b470) ) | |
| 1098 | ROM_LOAD( "a71-19.33", 0x58000, 0x8000, CRC(fc4b29e0) SHA1(d11393a24b5c6c04f5058b299e4b0fc773a03e4b) ) | |
| 1099 | ROM_LOAD( "a71-20.34", 0x60000, 0x8000, CRC(65acb265) SHA1(2ef940f994e76d4387be6e0d53a565813cc59636) ) | |
| 1100 | ROM_LOAD( "a71-21.35", 0x68000, 0x8000, CRC(33cde9b2) SHA1(9b227ab609e3c7c6be90c29739a57ea4959cd68e) ) | |
| 1101 | ROM_LOAD( "a71-22.36", 0x70000, 0x8000, CRC(fb98eac0) SHA1(57615c3934de5510eeeb0ba16024abda8ee95303) ) | |
| 1102 | ROM_LOAD( "a71-23.37", 0x78000, 0x8000, CRC(30bd46ad) SHA1(6e1618ed237c769d1a8d329fbd7a9f7216993215) ) | |
| 1128 | ROM_REGION( 0x80000, "gfx1", ROMREGION_INVERT ) /* gfx roms, on gfx board */ | |
| 1129 | ROM_LOAD( "a71-08.ic12", 0x00000, 0x8000, CRC(0439ab13) SHA1(84142220a6a29f0e34f7c7c751b583bf394df8ce) ) /* 1st plane */ | |
| 1130 | ROM_LOAD( "a71-09.ic13", 0x08000, 0x8000, CRC(edb3d2ff) SHA1(0c6e4bbc786a097f9d99220e72f98c1c795a7292) ) | |
| 1131 | ROM_LOAD( "a71-10.ic14", 0x10000, 0x8000, CRC(69f0888c) SHA1(1704ab6339981195cd09d581e83094c75037d18e) ) | |
| 1132 | ROM_LOAD( "a71-11.ic15", 0x18000, 0x8000, CRC(4ae07c31) SHA1(452d1eb5a70e7853791cd05e4578c1454477bdec) ) | |
| 1133 | ROM_LOAD( "a71-12.ic16", 0x20000, 0x8000, CRC(3f6bd706) SHA1(b03c534a95b71941331d3ffd9aa7069b5f05687e) ) | |
| 1134 | ROM_LOAD( "a71-13.ic17", 0x28000, 0x8000, CRC(f2c92aaa) SHA1(7dfdc473794a298032405ba918df8085b0bbe174) ) | |
| 1135 | ROM_LOAD( "a71-14.ic18", 0x30000, 0x8000, CRC(c574b7b2) SHA1(9839adce60c0017ae3997603a2aece511af226d2) ) | |
| 1136 | ROM_LOAD( "a71-15.ic19", 0x38000, 0x8000, CRC(12d87e7f) SHA1(327a80f08207ee66721738f7e1c53f75b5659be0) ) | |
| 1137 | ROM_LOAD( "a71-16.ic30", 0x40000, 0x8000, CRC(0bce35b6) SHA1(3f0496db6681c7be1e36ba41296115d158d7457a) ) /* 2nd plane */ | |
| 1138 | ROM_LOAD( "a71-17.ic31", 0x48000, 0x8000, CRC(deda6387) SHA1(40f0be3a71b0a03f0275da72f4124424b162318a) ) | |
| 1139 | ROM_LOAD( "a71-18.ic32", 0x50000, 0x8000, CRC(330cd9d7) SHA1(919f78036b760938d6aa72754be1a615f568b470) ) | |
| 1140 | ROM_LOAD( "a71-19.ic33", 0x58000, 0x8000, CRC(fc4b29e0) SHA1(d11393a24b5c6c04f5058b299e4b0fc773a03e4b) ) | |
| 1141 | ROM_LOAD( "a71-20.ic34", 0x60000, 0x8000, CRC(65acb265) SHA1(2ef940f994e76d4387be6e0d53a565813cc59636) ) | |
| 1142 | ROM_LOAD( "a71-21.ic35", 0x68000, 0x8000, CRC(33cde9b2) SHA1(9b227ab609e3c7c6be90c29739a57ea4959cd68e) ) | |
| 1143 | ROM_LOAD( "a71-22.ic36", 0x70000, 0x8000, CRC(fb98eac0) SHA1(57615c3934de5510eeeb0ba16024abda8ee95303) ) | |
| 1144 | ROM_LOAD( "a71-23.ic37", 0x78000, 0x8000, CRC(30bd46ad) SHA1(6e1618ed237c769d1a8d329fbd7a9f7216993215) ) | |
| 1103 | 1145 | |
| 1104 | 1146 | ROM_REGION( 0x0100, "proms", 0 ) |
| 1105 | ROM_LOAD( "a71-25.41", | |
| 1147 | ROM_LOAD( "a71-25.ic41", | |
| 1106 | 1148 | ROM_END |
| 1107 | 1149 | |
| 1108 | 1150 | |
| r8581 | r8582 | |
| 1547 | 1589 | * |
| 1548 | 1590 | *************************************/ |
| 1549 | 1591 | |
| 1550 | GAME( 1986, tokio, 0, tokio, tokio, tokio, ROT90, "Taito Corporation", "Tokio / Scramble Formation", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_SUPPORTS_SAVE ) | |
| 1592 | GAME( 1986, tokio, 0, tokio, tokio, tokio, ROT90, "Taito Corporation", "Tokio / Scramble Formation (newer)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_SUPPORTS_SAVE ) | |
| 1593 | GAME( 1986, tokioo, tokio, tokio, tokio, tokio, ROT90, "Taito Corporation", "Tokio / Scramble Formation (older)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_SUPPORTS_SAVE ) | |
| 1551 | 1594 | GAME( 1986, tokiou, tokio, tokio, tokio, tokio, ROT90, "Taito America Corporation (Romstar license)", "Tokio / Scramble Formation (US)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_SUPPORTS_SAVE ) |
| 1552 | 1595 | GAME( 1986, tokiob, tokio, tokio, tokio, tokiob, ROT90, "bootleg", "Tokio / Scramble Formation (bootleg)", GAME_SUPPORTS_SAVE ) |
| 1553 | 1596 |
| r8581 | r8582 | |
|---|---|---|
| 224 | 224 | { |
| 225 | 225 | skyfox_state *state = (skyfox_state *)machine->driver_data; |
| 226 | 226 | |
| 227 | state->maincpu = | |
| 227 | state->maincpu = m | |
| 228 | 228 | |
| 229 | 229 | state_save_register_global(machine, state->bg_pos); |
| 230 | 230 | state_save_register_global(machine, state->bg_ctrl); |
| r8581 | r8582 | |
|---|---|---|
| 340 | 340 | { |
| 341 | 341 | fgoal_state *state = (fgoal_state *)machine->driver_data; |
| 342 | 342 | |
| 343 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 344 | state->mb14241 = devtag_get_device(machine, "mb14241"); | |
| 343 | state->maincpu = machine->device("maincpu"); | |
| 344 | state->mb14241 = machine->device("mb14241"); | |
| 345 | 345 | |
| 346 | 346 | state_save_register_global(machine, state->xpos); |
| 347 | 347 | state_save_register_global(machine, state->ypos); |
| r8581 | r8582 | |
|---|---|---|
| 78 | 78 | if (((*state->ay8910_select & 0x20) == 0x20) && ((data & 0x20) == 0x00)) |
| 79 | 79 | { |
| 80 | 80 | /* bit 4 goes to the 8910 #0 BC1 pin */ |
| 81 | ay8910_data_address_w( | |
| 81 | ay8910_data_address_w( | |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /* bit 7 goes to 8910 #1 BDIR pin */ |
| 85 | 85 | if (((*state->ay8910_select & 0x80) == 0x80) && ((data & 0x80) == 0x00)) |
| 86 | 86 | { |
| 87 | 87 | /* bit 6 goes to the 8910 #1 BC1 pin */ |
| 88 | ay8910_data_address_w( | |
| 88 | ay8910_data_address_w( | |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | *state->ay8910_select = data; |
| r8581 | r8582 | |
|---|---|---|
| 49 | 49 | { |
| 50 | 50 | /* generate 32V signals */ |
| 51 | 51 | if ((scanline & 32) == 0) |
| 52 | atarigen_scanline_int_gen( | |
| 52 | atarigen_scanline_int_gen( | |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | |
| r8581 | r8582 | |
| 500 | 500 | |
| 501 | 501 | state->atarigen.eeprom_default = compressed_default_eeprom; |
| 502 | 502 | memcpy(&rom[0x140000], &rom[0x40000], 0x8000); |
| 503 | atarigen_slapstic_init( | |
| 503 | atarigen_slapstic_init(m | |
| 504 | 504 | } |
| 505 | 505 | |
| 506 | 506 |
| r8581 | r8582 | |
|---|---|---|
| 194 | 194 | trackfld_state *state = (trackfld_state *)machine->driver_data; |
| 195 | 195 | |
| 196 | 196 | state->audiocpu = NULL; |
| 197 | state->vlm = | |
| 197 | state->vlm = m | |
| 198 | 198 | |
| 199 | 199 | state_save_register_global(machine, state->yiear_nmi_enable); |
| 200 | 200 |
| r8581 | r8582 | |
|---|---|---|
| 3 | 3 | Bellfruit scorpion1 driver, (under heavy construction !!!) |
| 4 | 4 | |
| 5 | 5 | A.G.E Code Copyright J. Wallace and the AGEMAME Development Team. |
| 6 | Visit http:// | |
| 6 | Visit http://agemame.mameworld.info | |
| 7 | 7 | |
| 8 | 8 | M.A.M.E Core Copyright Nicola Salmoria and the MAME Team, |
| 9 | 9 | used under license from http://mamedev.org |
| r8581 | r8582 | |
| 180 | 180 | |
| 181 | 181 | sc1_Inputs[2] = input_port_read(device->machine,"STROBE0"); |
| 182 | 182 | |
| 183 | generic_pulse_irq_line(dev | |
| 183 | generic_pulse_irq_line(dev | |
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | |
| r8581 | r8582 | |
| 277 | 277 | if ( changed & (1 << i) ) |
| 278 | 278 | { |
| 279 | 279 | Mechmtr_update(i, cycles, data & (1 << i) ); |
| 280 | generic_pulse_irq_line( | |
| 280 | generic_pulse_irq_line( | |
| 281 | 281 | } |
| 282 | 282 | } |
| 283 | 283 | } |
| r8581 | r8582 | |
|---|---|---|
| 82 | 82 | |
| 83 | 83 | static VIDEO_UPDATE( snowbros ) |
| 84 | 84 | { |
| 85 | running_device *pandora = | |
| 85 | running_device *pandora = | |
| 86 | 86 | |
| 87 | 87 | /* This clears & redraws the entire screen each pass */ |
| 88 | 88 | bitmap_fill(bitmap,cliprect,0xf0); |
| r8581 | r8582 | |
| 93 | 93 | |
| 94 | 94 | static VIDEO_EOF( snowbros ) |
| 95 | 95 | { |
| 96 | running_device *pandora = | |
| 96 | running_device *pandora = m | |
| 97 | 97 | pandora_eof(pandora); |
| 98 | 98 | } |
| 99 | 99 | |
| r8581 | r8582 | |
| 124 | 124 | |
| 125 | 125 | static INTERRUPT_GEN( snowbro3_interrupt ) |
| 126 | 126 | { |
| 127 | running_device *adpcm = dev | |
| 127 | running_device *adpcm = dev | |
| 128 | 128 | int status = okim6295_r(adpcm,0); |
| 129 | 129 | |
| 130 | 130 | cpu_set_input_line(device, cpu_getiloops(device) + 2, ASSERT_LINE); /* IRQs 4, 3, and 2 */ |
| r8581 | r8582 | |
| 523 | 523 | |
| 524 | 524 | static INPUT_PORTS_START( snowbros ) |
| 525 | 525 | PORT_START("DSW1") /* 500001 */ |
| 526 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Region ) ) | |
| 526 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Region ) ) PORT_DIPLOCATION("SW1:1") /* Listed as "NOT USE" in the manual */ | |
| 527 | 527 | PORT_DIPSETTING( 0x00, DEF_STR( Europe ) ) |
| 528 | 528 | PORT_DIPSETTING( 0x01, "America (Romstar license)" ) |
| 529 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 529 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:2") | |
| 530 | 530 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 531 | 531 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 532 | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) | |
| 533 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) | |
| 532 | PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW1:3" ) | |
| 533 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:4") | |
| 534 | 534 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 535 | 535 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 536 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) | |
| 536 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") | |
| 537 | 537 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) |
| 538 | 538 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) |
| 539 | 539 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x00) |
| r8581 | r8582 | |
| 541 | 541 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) |
| 542 | 542 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) |
| 543 | 543 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) |
| 544 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) | |
| 544 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8") | |
| 545 | 545 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) |
| 546 | 546 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) |
| 547 | 547 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSW1", 0x01, PORTCOND_EQUALS, 0x01) |
| r8581 | r8582 | |
| 561 | 561 | /* probably VBlank */ |
| 562 | 562 | |
| 563 | 563 | PORT_START("DSW2") /* 500003 */ |
| 564 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 564 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 565 | 565 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 566 | 566 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) |
| 567 | 567 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 568 | 568 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 569 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 569 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 570 | 570 | PORT_DIPSETTING( 0x04, "100k and every 200k" ) |
| 571 | 571 | PORT_DIPSETTING( 0x0c, "100k Only" ) |
| 572 | 572 | PORT_DIPSETTING( 0x08, "200k Only" ) |
| 573 | 573 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 574 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) | |
| 574 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 575 | 575 | PORT_DIPSETTING( 0x20, "1" ) |
| 576 | 576 | PORT_DIPSETTING( 0x00, "2" ) |
| 577 | 577 | PORT_DIPSETTING( 0x30, "3" ) |
| 578 | 578 | PORT_DIPSETTING( 0x10, "4" ) |
| 579 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability" ) | |
| 579 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability" ) PORT_DIPLOCATION("SW2:7") | |
| 580 | 580 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 581 | 581 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 582 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) | |
| 582 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:8") /* Listed as "NOT USE" in the manual */ | |
| 583 | 583 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 584 | 584 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) |
| 585 | 585 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r8581 | r8582 | |
| 603 | 603 | INPUT_PORTS_END |
| 604 | 604 | |
| 605 | 605 | static INPUT_PORTS_START( snowbroj ) |
| 606 | PORT_START("DSW1") /* 500001 */ | |
| 607 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 606 | PORT_INCLUDE(snowbros) | |
| 607 | ||
| 608 | PORT_MODIFY("DSW1") | |
| 609 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:1") /* Listed as "NOT USE" in the manual */ | |
| 608 | 610 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 609 | 611 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 610 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) | |
| 611 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 612 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 613 | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) | |
| 614 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) | |
| 615 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 616 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 617 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) | |
| 618 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 619 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) | |
| 620 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) | |
| 621 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) | |
| 622 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) | |
| 623 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 624 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) | |
| 625 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) | |
| 626 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 627 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 628 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 629 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 630 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 631 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 632 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 633 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 634 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Must be low or game stops! */ | |
| 635 | /* probably VBlank */ | |
| 636 | ||
| 637 | PORT_START("DSW2") /* 500003 */ | |
| 638 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) | |
| 639 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) | |
| 640 | PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) | |
| 641 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) | |
| 642 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 643 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) | |
| 644 | PORT_DIPSETTING( 0x04, "100k and every 200k" ) | |
| 645 | PORT_DIPSETTING( 0x0c, "100k Only" ) | |
| 646 | PORT_DIPSETTING( 0x08, "200k Only" ) | |
| 647 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 648 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) | |
| 649 | PORT_DIPSETTING( 0x20, "1" ) | |
| 650 | PORT_DIPSETTING( 0x00, "2" ) | |
| 651 | PORT_DIPSETTING( 0x30, "3" ) | |
| 652 | PORT_DIPSETTING( 0x10, "4" ) | |
| 653 | PORT_DIPNAME( 0x40, 0x40, "Invulnerability" ) | |
| 654 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 655 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 656 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) | |
| 657 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 658 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) | |
| 659 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 660 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 661 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 662 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 663 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 664 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 665 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 666 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 667 | ||
| 668 | PORT_START("SYSTEM") /* 500005 */ | |
| 669 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 670 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 ) | |
| 671 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 672 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 673 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 674 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_TILT ) | |
| 675 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 676 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 677 | 612 | INPUT_PORTS_END |
| 678 | 613 | |
| 679 | 614 | static INPUT_PORTS_START( honeydol ) |
| r8581 | r8582 | |
| 759 | 694 | PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) ) |
| 760 | 695 | PORT_DIPSETTING( 0x0003, DEF_STR( 1C_1C ) ) |
| 761 | 696 | PORT_DIPSETTING( 0x0002, DEF_STR( 1C_2C ) ) |
| 762 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) | |
| 763 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 764 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 765 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) | |
| 766 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 767 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 697 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) | |
| 698 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 699 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 700 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) | |
| 701 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 702 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 768 | 703 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) |
| 769 | 704 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 770 | 705 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) |
| 771 | 706 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Flip_Screen ) ) |
| 772 | 707 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 773 | 708 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 774 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) | |
| 775 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 776 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 709 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) | |
| 710 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 711 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 777 | 712 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Level_Select ) ) /* P1 Button 2 to advance, P1 Button 1 to start, starts game with 10 credits */ |
| 778 | 713 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 779 | 714 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r8581 | r8582 | |
| 798 | 733 | PORT_DIPNAME( 0x0008, 0x0008, "Ticket Mode #1" ) /* Shows on title screen "EVERY 4 GAMES = 1 TICKET" same as 0x0040 below? */ |
| 799 | 734 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 800 | 735 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 801 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) | |
| 802 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 803 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 804 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 805 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 806 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 736 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) | |
| 737 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 738 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 739 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 740 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 741 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 807 | 742 | PORT_DIPNAME( 0x0040, 0x0040, "Ticket Mode #2" ) /* Shows on title screen "EVERY 4 GAMES = 1 TICKET" same as 0x0008 above? */ |
| 808 | 743 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 809 | 744 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 810 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Free_Play ) ) /* Always shows 24 credits */ | |
| 811 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 812 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 745 | PORT_DIPNAME( 0x80, 0x0080, DEF_STR( Free_Play ) ) /* Always shows 24 credits */ | |
| 746 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 747 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 813 | 748 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 814 | 749 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 815 | 750 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r8581 | r8582 | |
| 832 | 767 | |
| 833 | 768 | static INPUT_PORTS_START( 4in1boot ) |
| 834 | 769 | PORT_START("DSW1") /* 500001 */ |
| 835 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 770 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 836 | 771 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 837 | 772 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 838 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) | |
| 773 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:2,3") | |
| 839 | 774 | PORT_DIPSETTING( 0x04, DEF_STR( Easy ) ) |
| 840 | 775 | PORT_DIPSETTING( 0x06, DEF_STR( Normal ) ) |
| 841 | 776 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) |
| 842 | 777 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 843 | PORT_DIPNAME( 0x78, 0x78, DEF_STR( Coinage ) ) | |
| 778 | PORT_DIPNAME( 0x78, 0x78, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:4,5,6,7") | |
| 844 | 779 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) |
| 845 | 780 | PORT_DIPSETTING( 0x38, DEF_STR( 3C_1C ) ) |
| 846 | 781 | PORT_DIPSETTING( 0x10, DEF_STR( 4C_2C ) ) |
| r8581 | r8582 | |
| 857 | 792 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) |
| 858 | 793 | PORT_DIPSETTING( 0x68, DEF_STR( 1C_3C ) ) |
| 859 | 794 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_4C ) ) |
| 860 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Free_Play ) ) | |
| 795 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:8") | |
| 861 | 796 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 862 | 797 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 863 | 798 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| r8581 | r8582 | |
| 871 | 806 | /* probably VBlank */ |
| 872 | 807 | |
| 873 | 808 | PORT_START("DSW2") /* 500003 */ |
| 874 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 809 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 875 | 810 | PORT_DIPSETTING( 0x02, "1" ) |
| 876 | 811 | PORT_DIPSETTING( 0x00, "2" ) |
| 877 | 812 | PORT_DIPSETTING( 0x03, "3" ) |
| 878 | 813 | PORT_DIPSETTING( 0x01, "4" ) |
| 879 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) ) | |
| 880 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 881 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 882 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) | |
| 883 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 884 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 885 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) ) | |
| 886 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 887 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 888 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) | |
| 889 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 890 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 891 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) | |
| 892 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 893 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 894 | PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) | |
| 814 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0000, "SW2:3" ) | |
| 815 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0000, "SW2:4" ) | |
| 816 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0000, "SW2:5" ) | |
| 817 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0000, "SW2:6" ) | |
| 818 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0000, "SW2:7" ) | |
| 819 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW2:8" ) | |
| 895 | 820 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 896 | 821 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 897 | 822 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r8581 | r8582 | |
| 914 | 839 | |
| 915 | 840 | static INPUT_PORTS_START( hyperpac ) |
| 916 | 841 | PORT_START("DSW1") /* 500000.w */ |
| 917 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 842 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 918 | 843 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 919 | 844 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 920 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Lives ) ) // "Language" in the "test mode" | |
| 921 | PORT_DIPSETTING( 0x0002, "3" ) // "Korean" | |
| 922 | PORT_DIPSETTING( 0x0000, "5" ) // "English" | |
| 923 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coinage ) ) | |
| 845 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:2") // "Language" in the "test mode" | |
| 846 | PORT_DIPSETTING( 0x0002, "3" ) // "Korean" | |
| 847 | PORT_DIPSETTING( 0x0000, "5" ) // "English" | |
| 848 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:3,4,5") | |
| 924 | 849 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 925 | 850 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_1C ) ) |
| 926 | 851 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) |
| r8581 | r8582 | |
| 929 | 854 | PORT_DIPSETTING( 0x0014, DEF_STR( 2C_3C ) ) |
| 930 | 855 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) |
| 931 | 856 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) |
| 932 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) | |
| 857 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:6,7") | |
| 933 | 858 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) |
| 934 | 859 | PORT_DIPSETTING( 0x0060, DEF_STR( Normal ) ) |
| 935 | 860 | PORT_DIPSETTING( 0x0040, DEF_STR( Hard ) ) |
| 936 | 861 | PORT_DIPSETTING( 0x0020, DEF_STR( Hardest ) ) // DEF_STR( Very_Hard ) |
| 937 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 862 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 938 | 863 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 939 | 864 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 940 | 865 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r8581 | r8582 | |
| 945 | 870 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 946 | 871 | |
| 947 | 872 | PORT_START("DSW2") /* 500002.w */ |
| 948 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) | |
| 949 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 950 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 951 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) | |
| 952 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 953 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 954 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 955 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 956 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 957 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 958 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 959 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 960 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 961 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 962 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 963 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 964 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 965 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 966 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 967 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 968 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 969 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 970 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 971 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 873 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0000, "SW2:1" ) | |
| 874 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0000, "SW2:2" ) | |
| 875 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0000, "SW2:3" ) | |
| 876 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0000, "SW2:4" ) | |
| 877 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0000, "SW2:5" ) | |
| 878 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0000, "SW2:6" ) | |
| 879 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0000, "SW2:7" ) | |
| 880 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0000, "SW2:8" ) | |
| 972 | 881 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 973 | 882 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 974 | 883 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r8581 | r8582 | |
| 991 | 900 | |
| 992 | 901 | static INPUT_PORTS_START( cookbib2 ) |
| 993 | 902 | PORT_START("DSW1") /* 500000.w */ |
| 994 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 903 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 995 | 904 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 996 | 905 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 997 | PORT_DIPNAME( 0x0002, 0x0002, "Max Vs Round" ) // "Language" in the "test mode" | |
| 906 | PORT_DIPNAME( 0x0002, 0x0002, "Max Vs Round" ) PORT_DIPLOCATION("SW1:2") // "Language" in the "test mode" | |
| 998 | 907 | PORT_DIPSETTING( 0x0002, "3" ) |
| 999 | 908 | PORT_DIPSETTING( 0x0000, "1" ) |
| 1000 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coinage ) ) | |
| 909 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:3,4,5") | |
| 1001 | 910 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 1002 | 911 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_1C ) ) |
| 1003 | 912 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) |
| r8581 | r8582 | |
| 1006 | 915 | PORT_DIPSETTING( 0x0014, DEF_STR( 2C_3C ) ) |
| 1007 | 916 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) |
| 1008 | 917 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) |
| 1009 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) | |
| 918 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:6,7") | |
| 1010 | 919 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) |
| 1011 | 920 | PORT_DIPSETTING( 0x0060, DEF_STR( Normal ) ) |
| 1012 | 921 | PORT_DIPSETTING( 0x0040, DEF_STR( Hard ) ) |
| 1013 | 922 | PORT_DIPSETTING( 0x0020, DEF_STR( Hardest ) ) // DEF_STR( Very_Hard ) |
| 1014 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 923 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1015 | 924 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1016 | 925 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1017 | 926 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r8581 | r8582 | |
| 1022 | 931 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1023 | 932 | |
| 1024 | 933 | PORT_START("DSW2") /* 500002.w */ |
| 1025 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) | |
| 1026 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1027 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1028 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) | |
| 1029 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1030 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1031 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 1032 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 1033 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1034 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 1035 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1036 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1037 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 1038 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1039 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1040 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1041 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1042 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1043 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 1044 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1045 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1046 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unused ) ) | |
| 1047 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1048 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 934 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0000, "SW2:1" ) | |
| 935 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0000, "SW2:2" ) | |
| 936 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0000, "SW2:3" ) | |
| 937 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0000, "SW2:4" ) | |
| 938 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0000, "SW2:5" ) | |
| 939 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0000, "SW2:6" ) | |
| 940 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0000, "SW2:7" ) | |
| 941 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0000, "SW2:8" ) | |
| 1049 | 942 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 1050 | 943 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 1051 | 944 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| r8581 | r8582 | |
| 1068 | 961 | |
| 1069 | 962 | static INPUT_PORTS_START( cookbib3 ) |
| 1070 | 963 | PORT_START("DSW1") /* 500000.w */ |
| 1071 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 964 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1072 | 965 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1073 | 966 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1074 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Coinage ) ) | |
| 967 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:2,3,4") | |
| 1075 | 968 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 1076 | 969 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_1C ) ) |
| 1077 | 970 | PORT_DIPSETTING( 0x0004, DEF_STR( 3C_1C ) ) |
| r8581 | r8582 | |
| 1080 | 973 | PORT_DIPSETTING( 0x000a, DEF_STR( 2C_3C ) ) |
| 1081 | 974 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) |
| 1082 | 975 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_3C ) ) |
| 1083 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Difficulty ) ) | |
| 976 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:5,6,7") | |
| 1084 | 977 | PORT_DIPSETTING( 0x0020, "Level 1" ) |
| 1085 | 978 | PORT_DIPSETTING( 0x0010, "Level 2" ) |
| 1086 | 979 | PORT_DIPSETTING( 0x0000, "Level 3" ) |
| r8581 | r8582 | |
| 1089 | 982 | PORT_DIPSETTING( 0x0050, "Level 6" ) |
| 1090 | 983 | PORT_DIPSETTING( 0x0040, "Level 7" ) |
| 1091 | 984 | PORT_DIPSETTING( 0x0030, "Level 8" ) |
| 1092 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 985 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1093 | 986 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1094 | 987 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1095 | 988 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r8581 | r8582 | |
| 1100 | 993 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1101 | 994 | |
| 1102 | 995 | PORT_START("DSW2") /* 500002.w */ |
| 1103 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) | |
| 1104 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1105 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1106 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) | |
| 1107 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1108 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1109 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 1110 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 1111 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1112 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 1113 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1114 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1115 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 1116 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1117 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1118 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1119 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1120 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1121 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 1122 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1123 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1124 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) /* Will go into negative credits and cause graphics issues */ | |
| 996 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0000, "SW2:1" ) | |
| 997 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0000, "SW2:2" ) | |
| 998 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0000, "SW2:3" ) | |
| 999 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0000, "SW2:4" ) | |
| 1000 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0000, "SW2:5" ) | |
| 1001 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0000, "SW2:6" ) | |
| 1002 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0000, "SW2:7" ) | |
| 1003 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") /* Will go into negative credits and cause graphics issues */ | |
| 1125 | 1004 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1126 | 1005 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1127 | 1006 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r8581 | r8582 | |
| 1146 | 1025 | |
| 1147 | 1026 | static INPUT_PORTS_START( moremore ) |
| 1148 | 1027 | PORT_START("DSW1") /* 500000.w */ |
| 1149 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1028 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1150 | 1029 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1151 | 1030 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1152 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Coinage ) ) | |
| 1031 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:2,3,4") | |
| 1153 | 1032 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 1154 | 1033 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_1C ) ) |
| 1155 | 1034 | PORT_DIPSETTING( 0x0004, DEF_STR( 3C_1C ) ) |
| r8581 | r8582 | |
| 1158 | 1037 | PORT_DIPSETTING( 0x000a, DEF_STR( 2C_3C ) ) |
| 1159 | 1038 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) |
| 1160 | 1039 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_3C ) ) |
| 1161 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Difficulty ) ) | |
| 1040 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:5,6,7") | |
| 1162 | 1041 | PORT_DIPSETTING( 0x0020, "Level 1" ) |
| 1163 | 1042 | PORT_DIPSETTING( 0x0010, "Level 2" ) |
| 1164 | 1043 | PORT_DIPSETTING( 0x0000, "Level 3" ) |
| r8581 | r8582 | |
| 1167 | 1046 | PORT_DIPSETTING( 0x0050, "Level 6" ) |
| 1168 | 1047 | PORT_DIPSETTING( 0x0040, "Level 7" ) |
| 1169 | 1048 | PORT_DIPSETTING( 0x0030, "Level 8" ) |
| 1170 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1049 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1171 | 1050 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1172 | 1051 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1173 | 1052 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r8581 | r8582 | |
| 1178 | 1057 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1179 | 1058 | |
| 1180 | 1059 | PORT_START("DSW2") /* 500002.w */ |
| 1181 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) | |
| 1182 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1183 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1184 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) | |
| 1185 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1186 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1187 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) | |
| 1188 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 1189 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1190 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) | |
| 1191 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 1192 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1193 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 1194 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1195 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1196 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) | |
| 1197 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1198 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1199 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) | |
| 1200 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1201 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1202 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) | |
| 1060 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0000, "SW2:1" ) | |
| 1061 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0000, "SW2:2" ) | |
| 1062 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0000, "SW2:3" ) | |
| 1063 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0000, "SW2:4" ) | |
| 1064 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0000, "SW2:5" ) | |
| 1065 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0000, "SW2:6" ) | |
| 1066 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0000, "SW2:7" ) | |
| 1067 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 1203 | 1068 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1204 | 1069 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1205 | 1070 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r8581 | r8582 | |
| 1222 | 1087 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1223 | 1088 | INPUT_PORTS_END |
| 1224 | 1089 | |
| 1225 | static INPUT_PORTS_START( toppyrap ) | |
| 1090 | // don't trust the test mode! <-- Verified via actual game play: Demo Sounds, Coinage & Free Play | |
| 1091 | static INPUT_PORTS_START( pzlbreak ) | |
| 1226 | 1092 | PORT_START("DSW1") /* 500000.w */ |
| 1227 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) | |
| 1093 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1228 | 1094 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1229 | 1095 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1230 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) | |
| 1231 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 1096 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:2,3,4") | |
| 1097 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 1098 | PORT_DIPSETTING( 0x0002, DEF_STR( 4C_1C ) ) | |
| 1099 | PORT_DIPSETTING( 0x0004, DEF_STR( 3C_1C ) ) | |
| 1100 | PORT_DIPSETTING( 0x0006, DEF_STR( 2C_1C ) ) | |
| 1101 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_1C ) ) | |
| 1102 | PORT_DIPSETTING( 0x000a, DEF_STR( 2C_3C ) ) | |
| 1103 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) | |
| 1104 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_3C ) ) | |
| 1105 | PORT_DIPNAME( 0x0070, 0x0070, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:5,6,7") | |
| 1106 | PORT_DIPSETTING( 0x0020, "Level 1" ) | |
| 1107 | PORT_DIPSETTING( 0x0010, "Level 2" ) | |
| 1108 | PORT_DIPSETTING( 0x0000, "Level 3" ) | |
| 1109 | PORT_DIPSETTING( 0x0070, "Level 4" ) | |
| 1110 | PORT_DIPSETTING( 0x0060, "Level 5" ) | |
| 1111 | PORT_DIPSETTING( 0x0050, "Level 6" ) | |
| 1112 | PORT_DIPSETTING( 0x0040, "Level 7" ) | |
| 1113 | PORT_DIPSETTING( 0x0030, "Level 8" ) | |
| 1114 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1115 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1116 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1117 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1118 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1119 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1120 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 1121 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 1122 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1123 | ||
| 1124 | PORT_START("DSW2") /* 500002.w */ | |
| 1125 | PORT_DIPUNUSED_DIPLOC( 0x0001, 0x0000, "SW2:1" ) | |
| 1126 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0000, "SW2:2" ) | |
| 1127 | PORT_DIPUNUSED_DIPLOC( 0x0004, 0x0000, "SW2:3" ) | |
| 1128 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0000, "SW2:4" ) | |
| 1129 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0000, "SW2:5" ) | |
| 1130 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0000, "SW2:6" ) | |
| 1131 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0000, "SW2:7" ) | |
| 1132 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 1133 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1232 | 1134 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1233 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coinage ) ) | |
| 1135 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1136 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1137 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1138 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1139 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1140 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 1141 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 1142 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1143 | ||
| 1144 | PORT_START("SYSTEM") /* 500004.w */ | |
| 1145 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1146 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1147 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1148 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1149 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1150 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1151 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1152 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1153 | INPUT_PORTS_END | |
| 1154 | ||
| 1155 | static INPUT_PORTS_START( toppyrap ) | |
| 1156 | PORT_START("DSW1") /* 500000.w */ | |
| 1157 | PORT_DIPNAME( 0x0001, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") | |
| 1158 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 1159 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1160 | PORT_DIPUNUSED_DIPLOC( 0x0002, 0x0000, "SW1:2" ) | |
| 1161 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:3,4,5") | |
| 1234 | 1162 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 1235 | 1163 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_1C ) ) |
| 1236 | 1164 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) |
| r8581 | r8582 | |
| 1239 | 1167 | PORT_DIPSETTING( 0x0014, DEF_STR( 2C_3C ) ) |
| 1240 | 1168 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) |
| 1241 | 1169 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) |
| 1242 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) | |
| 1170 | PORT_DIPNAME( 0x0060, 0x0060, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:6,7") | |
| 1243 | 1171 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) |
| 1244 | 1172 | PORT_DIPSETTING( 0x0060, DEF_STR( Normal ) ) |
| 1245 | 1173 | PORT_DIPSETTING( 0x0040, DEF_STR( Hard ) ) |
| 1246 | 1174 | PORT_DIPSETTING( 0x0020, DEF_STR( Hardest ) ) |
| 1247 | PORT_SERVICE( 0x0080, IP_ACTIVE_LOW ) | |
| 1175 | PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 1248 | 1176 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1249 | 1177 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1250 | 1178 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r8581 | r8582 | |
| 1255 | 1183 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1256 | 1184 | |
| 1257 | 1185 | PORT_START("DSW2") /* 500002.w */ |
| 1258 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 1259 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1260 | PORT_DIPSETTING( 0x03, "3" ) | |
| 1261 | PORT_DIPSETTING( 0x02, "4" ) | |
| 1262 | PORT_DIPSETTING( 0x01, "5" ) | |
| 1263 | PORT_DIPNAME( 0x000c, 0x000c, "Time" ) | |
| 1186 | PORT_DIPNAME( 0x03, 0x0003, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 1187 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 1188 | PORT_DIPSETTING( 0x0003, "3" ) | |
| 1189 | PORT_DIPSETTING( 0x0002, "4" ) | |
| 1190 | PORT_DIPSETTING( 0x0001, "5" ) | |
| 1191 | PORT_DIPNAME( 0x000c, 0x000c, "Time" ) PORT_DIPLOCATION("SW2:3,4") | |
| 1264 | 1192 | PORT_DIPSETTING( 0x0004, "40 Seconds" ) |
| 1265 | 1193 | PORT_DIPSETTING( 0x0008, "50 Seconds" ) |
| 1266 | 1194 | PORT_DIPSETTING( 0x000c, "60 Seconds" ) |
| 1267 | 1195 | PORT_DIPSETTING( 0x0000, "70 Seconds" ) |
| 1268 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) | |
| 1269 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 1270 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1271 | PORT_DIPNAME( 0x0020, 0x0020, "God Mode" ) | |
| 1196 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0000, "SW2:5" ) | |
| 1197 | PORT_DIPNAME( 0x0020, 0x0020, "God Mode" ) PORT_DIPLOCATION("SW2:6") | |
| 1272 | 1198 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 1273 | 1199 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1274 | PORT_DIPNAME( 0x0040, 0x0040, "Internal Test" ) | |
| 1200 | PORT_DIPNAME( 0x0040, 0x0040, "Internal Test" ) PORT_DIPLOCATION("SW2:7") | |
| 1275 | 1201 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 1276 | 1202 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1277 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) | |
| 1203 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:8") | |
| 1278 | 1204 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1279 | 1205 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1280 | 1206 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| r8581 | r8582 | |
| 2074 | 2000 | ROM_REGION16_BE( 0x200, "user1", ROMREGION_ERASEFF ) /* Data from Shared RAM */ |
| 2075 | 2001 | /* this is not a real rom but instead the data extracted from |
| 2076 | 2002 | shared ram, the MCU puts it there */ |
| 2077 | | |
| 2003 | | |
| 2078 | 2004 | |
| 2079 | 2005 | ROM_REGION( 0x040000, "oki", 0 ) /* Samples */ |
| 2080 | 2006 | ROM_LOAD( "1.uj15", 0x00000, 0x40000, CRC(dbfae77c) SHA1(cc509d52cd9c608fc80df799890e62e7b4c143c6) ) |
| r8581 | r8582 | |
| 2771 | 2697 | memory_install_read16_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x200000, 0x200001, 0, 0, cookbib3_read ); |
| 2772 | 2698 | } |
| 2773 | 2699 | |
| 2700 | static DRIVER_INIT( pzlbreak ) | |
| 2701 | { | |
| 2702 | pandora_set_bg_pen(machine->device("pandora"), 0xc0); | |
| 2703 | } | |
| 2774 | 2704 | |
| 2775 | 2705 | GAME( 1990, snowbros, 0, snowbros, snowbros, 0, ROT0, "Toaplan", "Snow Bros. - Nick & Tom (set 1)", 0 ) |
| 2776 | 2706 | GAME( 1990, snowbrosa, snowbros, snowbros, snowbros, 0, ROT0, "Toaplan", "Snow Bros. - Nick & Tom (set 2)", 0 ) |
| r8581 | r8582 | |
| 2792 | 2722 | GAME( 1997, cookbib3, 0, semiprot, cookbib3, cookbib3, ROT0, "SemiCom", "Cookie & Bibi 3", 0 ) |
| 2793 | 2723 | GAME( 1997, 3in1semi, 0, semiprot, moremore, 3in1semi, ROT0, "SemiCom", "XESS - The New Revolution (SemiCom 3-in-1)", 0 ) |
| 2794 | 2724 | GAME( 1997, twinkle, 0, semiprot, moremore, 0, ROT0, "SemiCom", "Twinkle", 0 ) |
| 2795 | GAME( 1997, pzlbreak, 0, semiprot, | |
| 2725 | GAME( 1997, pzlbreak, 0, semiprot, pzlbreak, pzlbreak, | |
| 2796 | 2726 | GAME( 1999, moremore, 0, semiprot, moremore, moremorp, ROT0, "SemiCom / Exit", "More More", 0 ) |
| 2797 | 2727 | GAME( 1999, moremorp, 0, semiprot, moremore, moremorp, ROT0, "SemiCom / Exit", "More More Plus", 0 ) |
| 2798 | 2728 | GAME( 2002, 4in1boot, 0, _4in1, 4in1boot, 4in1boot, ROT0, "K1 Soft", "Puzzle King (includes bootleg of Snow Bros.)" , 0) |
| r8581 | r8582 | |
|---|---|---|
| 35 | 35 | Thunder Blade (C) Sega 1987 |
| 36 | 36 | |
| 37 | 37 | * denotes not dumped. There are also several revisions of the above games not dumper either. |
| 38 | If you can help, please contact us via http:// | |
| 38 | If you can help, please contact us via http://guru.mameworld.info | |
| 39 | 39 | |
| 40 | 40 | Main Board |
| 41 | 41 | ---------- |
| r8581 | r8582 | |
| 277 | 277 | |
| 278 | 278 | state->gprider_hack = 0; |
| 279 | 279 | |
| 280 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 281 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 282 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 283 | state->_315_5250_1 = devtag_get_device(machine, "5250_main"); | |
| 280 | state->maincpu = machine->device("maincpu"); | |
| 281 | state->soundcpu = machine->device("soundcpu"); | |
| 282 | state->subcpu = machine->device("sub"); | |
| 283 | state->_315_5250_1 = machine->device("5250_main"); | |
| 284 | 284 | |
| 285 | 285 | state_save_register_global(machine, state->iochip_force_input); |
| 286 | 286 | state_save_register_global(machine, state->vblank_irq_state); |
| r8581 | r8582 | |
| 434 | 434 | |
| 435 | 435 | static MACHINE_RESET( xboard ) |
| 436 | 436 | { |
| 437 | fd1094_machine_init( | |
| 437 | fd1094_machine_init(m | |
| 438 | 438 | segaic16_tilemap_reset(machine, 0); |
| 439 | 439 | |
| 440 | 440 | /* hook the RESET line, which resets CPU #1 */ |
| 441 | m68k_set_reset_callback( | |
| 441 | m68k_set_reset_callback(m | |
| 442 | 442 | |
| 443 | 443 | /* start timers to track interrupts */ |
| 444 | 444 | timer_set(machine, machine->primary_screen->time_until_pos(1), NULL, 1, scanline_callback); |
| r8581 | r8582 | |
|---|---|---|
| 359 | 359 | nbmj9195_soundbank_w(space, 0, data); |
| 360 | 360 | break; |
| 361 | 361 | case 6: /* PB_1 */ |
| 362 | DAC_WRITE( | |
| 362 | DAC_WRITE( | |
| 363 | 363 | break; |
| 364 | 364 | case 7: /* PC_1 */ |
| 365 | DAC_WRITE( | |
| 365 | DAC_WRITE( | |
| 366 | 366 | break; |
| 367 | 367 | case 8: /* PD_1 */ |
| 368 | 368 | break; |
| r8581 | r8582 | |
| 397 | 397 | nbmj9195_soundbank_w(space, 0, data); |
| 398 | 398 | break; |
| 399 | 399 | case 6: /* PB_1 */ |
| 400 | DAC_WRITE( | |
| 400 | DAC_WRITE( | |
| 401 | 401 | break; |
| 402 | 402 | case 7: /* PC_1 */ |
| 403 | DAC_WRITE( | |
| 403 | DAC_WRITE( | |
| 404 | 404 | break; |
| 405 | 405 | case 8: /* PD_1 */ |
| 406 | 406 | break; |
| r8581 | r8582 | |
| 471 | 471 | /* CTC of main cpu, ch0 trigger is vblank */ |
| 472 | 472 | static INTERRUPT_GEN( ctc0_trg1 ) |
| 473 | 473 | { |
| 474 | running_device *ctc = dev | |
| 474 | running_device *ctc = dev | |
| 475 | 475 | z80ctc_trg1_w(ctc, 1); |
| 476 | 476 | z80ctc_trg1_w(ctc, 0); |
| 477 | 477 | } |
| r8581 | r8582 | |
|---|---|---|
| 441 | 441 | data = soundlatch_r(space,0); |
| 442 | 442 | } |
| 443 | 443 | else if ((state->oki_control & 0x38) == 0x28) { |
| 444 | data = (okim6295_r( | |
| 444 | data = (okim6295_r( | |
| 445 | 445 | } |
| 446 | 446 | |
| 447 | 447 | return data; |
| r8581 | r8582 | |
| 471 | 471 | |
| 472 | 472 | if ((data & 0x38) == 0x18) |
| 473 | 473 | { |
| 474 | okim6295_w( | |
| 474 | okim6295_w( | |
| 475 | 475 | } |
| 476 | 476 | |
| 477 | 477 | // !(data & 0x80) -> sound enable |
| r8581 | r8582 | |
|---|---|---|
| 231 | 231 | { |
| 232 | 232 | sonson_state *state = (sonson_state *)machine->driver_data; |
| 233 | 233 | |
| 234 | state->audiocpu = | |
| 234 | state->audiocpu = m | |
| 235 | 235 | |
| 236 | 236 | state_save_register_global(machine, state->last_irq); |
| 237 | 237 | } |
| r8581 | r8582 | |
|---|---|---|
| 183 | 183 | |
| 184 | 184 | memory_configure_bank(machine, "bank1", 0, 16, &ROM[0x10000], 0x2000); |
| 185 | 185 | |
| 186 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 187 | state->k007121_1 = devtag_get_device(machine, "k007121_1"); | |
| 188 | state->k007121_2 = devtag_get_device(machine, "k007121_2"); | |
| 186 | state->audiocpu = machine->device("audiocpu"); | |
| 187 | state->k007121_1 = machine->device("k007121_1"); | |
| 188 | state->k007121_2 = machine->device("k007121_2"); | |
| 189 | 189 | |
| 190 | 190 | state_save_register_global(machine, state->pf2_bankbase); |
| 191 | 191 | state_save_register_global(machine, state->pf1_bankbase); |
| r8581 | r8582 | |
|---|---|---|
| 787 | 787 | { |
| 788 | 788 | cntsteer_state *state = (cntsteer_state *)machine->driver_data; |
| 789 | 789 | |
| 790 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 791 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 792 | state->subcpu = devtag_get_device(machine, "subcpu"); | |
| 790 | state->maincpu = machine->device("maincpu"); | |
| 791 | state->audiocpu = machine->device("audiocpu"); | |
| 792 | state->subcpu = machine->device("subcpu"); | |
| 793 | 793 | |
| 794 | 794 | state_save_register_global(machine, state->flipscreen); |
| 795 | 795 | state_save_register_global(machine, state->bg_bank); |
| r8581 | r8582 | |
|---|---|---|
| 44 | 44 | { |
| 45 | 45 | skeetsht_state *state = (skeetsht_state *)machine->driver_data; |
| 46 | 46 | |
| 47 | state->ay = devtag_get_device(machine, "aysnd"); | |
| 48 | state->tms = devtag_get_device(machine, "tms"); | |
| 47 | state->ay = machine->device("aysnd"); | |
| 48 | state->tms = machine->device("tms"); | |
| 49 | 49 | |
| 50 | 50 | /* Setup the Bt476 VGA RAMDAC palette chip */ |
| 51 | 51 | tlc34076_reset(6); |
| r8581 | r8582 | |
|---|---|---|
| 413 | 413 | { |
| 414 | 414 | buggychl_state *state = (buggychl_state *)machine->driver_data; |
| 415 | 415 | |
| 416 | state->audiocpu = | |
| 416 | state->audiocpu = m | |
| 417 | 417 | |
| 418 | 418 | /* video */ |
| 419 | 419 | state_save_register_global_array(machine, state->pc3259_output); |
| r8581 | r8582 | |
| 439 | 439 | { |
| 440 | 440 | buggychl_state *state = (buggychl_state *)machine->driver_data; |
| 441 | 441 | |
| 442 | state->mcu = | |
| 442 | state->mcu = m | |
| 443 | 443 | |
| 444 | 444 | MACHINE_START_CALL(bking); |
| 445 | 445 |
| r8581 | r8582 | |
|---|---|---|
| 661 | 661 | { |
| 662 | 662 | dblewing_state *state = (dblewing_state *)machine->driver_data; |
| 663 | 663 | |
| 664 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 665 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 666 | state->deco16ic = devtag_get_device(machine, "deco_custom"); | |
| 664 | state->maincpu = machine->device("maincpu"); | |
| 665 | state->audiocpu = machine->device("audiocpu"); | |
| 666 | state->deco16ic = machine->device("deco_custom"); | |
| 667 | 667 | |
| 668 | 668 | state_save_register_global(machine, state->_008_data); |
| 669 | 669 | state_save_register_global(machine, state->_104_data); |
| r8581 | r8582 | |
|---|---|---|
| 190 | 190 | |
| 191 | 191 | memory_configure_bank(machine, "bank1", 0, 6, &ROM[0x10000], 0x4000); |
| 192 | 192 | |
| 193 | state->k007121 = | |
| 193 | state->k007121 = m | |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | static MACHINE_DRIVER_START( labyrunr ) |
| r8581 | r8582 | |
|---|---|---|
| 242 | 242 | { |
| 243 | 243 | taitoo_state *state = (taitoo_state *)machine->driver_data; |
| 244 | 244 | |
| 245 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 246 | state->tc0080vco = devtag_get_device(machine, "tc0080vco"); | |
| 245 | state->maincpu = machine->device("maincpu"); | |
| 246 | state->tc0080vco = machine->device("tc0080vco"); | |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | static MACHINE_DRIVER_START( parentj ) |
| r8581 | r8582 | |
|---|---|---|
| 331 | 331 | |
| 332 | 332 | static READ32_HANDLER( hornet_k037122_sram_r ) |
| 333 | 333 | { |
| 334 | running_device *k037122 = | |
| 334 | running_device *k037122 = | |
| 335 | 335 | return k037122_sram_r(k037122, offset, mem_mask); |
| 336 | 336 | } |
| 337 | 337 | |
| 338 | 338 | static WRITE32_HANDLER( hornet_k037122_sram_w ) |
| 339 | 339 | { |
| 340 | running_device *k037122 = | |
| 340 | running_device *k037122 = | |
| 341 | 341 | k037122_sram_w(k037122, offset, data, mem_mask); |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | |
| 345 | 345 | static READ32_HANDLER( hornet_k037122_char_r ) |
| 346 | 346 | { |
| 347 | running_device *k037122 = | |
| 347 | running_device *k037122 = | |
| 348 | 348 | return k037122_char_r(k037122, offset, mem_mask); |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | static WRITE32_HANDLER( hornet_k037122_char_w ) |
| 352 | 352 | { |
| 353 | running_device *k037122 = | |
| 353 | running_device *k037122 = | |
| 354 | 354 | k037122_char_w(k037122, offset, data, mem_mask); |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | static READ32_HANDLER( hornet_k037122_reg_r ) |
| 358 | 358 | { |
| 359 | running_device *k037122 = | |
| 359 | running_device *k037122 = | |
| 360 | 360 | return k037122_reg_r(k037122, offset, mem_mask); |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | static WRITE32_HANDLER( hornet_k037122_reg_w ) |
| 364 | 364 | { |
| 365 | running_device *k037122 = | |
| 365 | running_device *k037122 = | |
| 366 | 366 | k037122_reg_w(k037122, offset, data, mem_mask); |
| 367 | 367 | } |
| 368 | 368 | |
| r8581 | r8582 | |
| 378 | 378 | |
| 379 | 379 | static VIDEO_UPDATE( hornet ) |
| 380 | 380 | { |
| 381 | running_device *voodoo = devtag_get_device(screen->machine, "voodoo0"); | |
| 382 | running_device *k037122 = devtag_get_device(screen->machine, "k037122_1"); | |
| 381 | running_device *voodoo = screen->machine->device("voodoo0"); | |
| 382 | running_device *k037122 = screen->machine->device("k037122_1"); | |
| 383 | 383 | |
| 384 | 384 | voodoo_update(voodoo, bitmap, cliprect); |
| 385 | 385 | |
| r8581 | r8582 | |
| 394 | 394 | { |
| 395 | 395 | if (strcmp(screen->tag(), "lscreen") == 0) |
| 396 | 396 | { |
| 397 | running_device *k037122 = devtag_get_device(screen->machine, "k037122_1"); | |
| 398 | running_device *voodoo = devtag_get_device(screen->machine, "voodoo0"); | |
| 397 | running_device *k037122 = screen->machine->device("k037122_1"); | |
| 398 | running_device *voodoo = screen->machine->device("voodoo0"); | |
| 399 | 399 | voodoo_update(voodoo, bitmap, cliprect); |
| 400 | 400 | |
| 401 | 401 | /* TODO: tilemaps per screen */ |
| r8581 | r8582 | |
| 403 | 403 | } |
| 404 | 404 | else if (strcmp(screen->tag(), "rscreen") == 0) |
| 405 | 405 | { |
| 406 | running_device *k037122 = devtag_get_device(screen->machine, "k037122_2"); | |
| 407 | running_device *voodoo = devtag_get_device(screen->machine, "voodoo1"); | |
| 406 | running_device *k037122 = screen->machine->device("k037122_2"); | |
| 407 | running_device *voodoo = screen->machine->device("voodoo1"); | |
| 408 | 408 | voodoo_update(voodoo, bitmap, cliprect); |
| 409 | 409 | |
| 410 | 410 | /* TODO: tilemaps per screen */ |
| r8581 | r8582 | |
| 422 | 422 | { |
| 423 | 423 | UINT8 r = 0; |
| 424 | 424 | static const char *const portnames[] = { "IN0", "IN1", "IN2" }; |
| 425 | running_device *adc12138 = devtag_get_device(space->machine, "adc12138"); | |
| 426 | running_device *eeprom = devtag_get_device(space->machine, "eeprom"); | |
| 425 | running_device *adc12138 = space->machine->device("adc12138"); | |
| 426 | running_device *eeprom = space->machine->device("eeprom"); | |
| 427 | 427 | |
| 428 | 428 | switch (offset) |
| 429 | 429 | { |
| r8581 | r8582 | |
| 456 | 456 | |
| 457 | 457 | static WRITE8_HANDLER( sysreg_w ) |
| 458 | 458 | { |
| 459 | running_device *adc12138 = | |
| 459 | running_device *adc12138 = | |
| 460 | 460 | |
| 461 | 461 | switch (offset) |
| 462 | 462 | { |
| r8581 | r8582 | |
| 836 | 836 | jvs_sdata = auto_alloc_array_clear(machine, UINT8, 1024); |
| 837 | 837 | |
| 838 | 838 | /* set conservative DRC options */ |
| 839 | ppcdrc_set_options( | |
| 839 | ppcdrc_set_options(m | |
| 840 | 840 | |
| 841 | 841 | /* configure fast RAM regions for DRC */ |
| 842 | ppcdrc_add_fastram( | |
| 842 | ppcdrc_add_fastram(m | |
| 843 | 843 | |
| 844 | 844 | state_save_register_global(machine, led_reg0); |
| 845 | 845 | state_save_register_global(machine, led_reg1); |
| r8581 | r8582 | |
| 1083 | 1083 | if (b == 0xe0) |
| 1084 | 1084 | { |
| 1085 | 1085 | sum += 0xd0 + 0xdf; |
| 1086 | ppc4xx_spu_receive_byte(devtag_get_device(machine, "maincpu"), 0xd0); | |
| 1087 | ppc4xx_spu_receive_byte(devtag_get_device(machine, "maincpu"), 0xdf); | |
| 1086 | ppc4xx_spu_receive_byte(machine->device("maincpu"), 0xd0); | |
| 1087 | ppc4xx_spu_receive_byte(machine->device("maincpu"), 0xdf); | |
| 1088 | 1088 | } |
| 1089 | 1089 | else if (b == 0xd0) |
| 1090 | 1090 | { |
| 1091 | 1091 | sum += 0xd0 + 0xcf; |
| 1092 | ppc4xx_spu_receive_byte(devtag_get_device(machine, "maincpu"), 0xd0); | |
| 1093 | ppc4xx_spu_receive_byte(devtag_get_device(machine, "maincpu"), 0xcf); | |
| 1092 | ppc4xx_spu_receive_byte(machine->device("maincpu"), 0xd0); | |
| 1093 | ppc4xx_spu_receive_byte(machine->device("maincpu"), 0xcf); | |
| 1094 | 1094 | } |
| 1095 | 1095 | else |
| 1096 | 1096 | { |
| 1097 | 1097 | sum += b; |
| 1098 | ppc4xx_spu_receive_byte( | |
| 1098 | ppc4xx_spu_receive_byte(m | |
| 1099 | 1099 | } |
| 1100 | 1100 | } |
| 1101 | 1101 | return sum; |
| r8581 | r8582 | |
| 1188 | 1188 | |
| 1189 | 1189 | // write jvs return data |
| 1190 | 1190 | sum = 0x00 + (rdata_ptr+1); |
| 1191 | ppc4xx_spu_receive_byte(devtag_get_device(machine, "maincpu"), 0xe0); // sync | |
| 1192 | ppc4xx_spu_receive_byte(devtag_get_device(machine, "maincpu"), 0x00); // node | |
| 1193 | ppc4xx_spu_receive_byte(devtag_get_device(machine, "maincpu"), rdata_ptr + 1); // num of bytes | |
| 1191 | ppc4xx_spu_receive_byte(machine->device("maincpu"), 0xe0); // sync | |
| 1192 | ppc4xx_spu_receive_byte(machine->device("maincpu"), 0x00); // node | |
| 1193 | ppc4xx_spu_receive_byte(machine->device("maincpu"), rdata_ptr + 1); // num of bytes | |
| 1194 | 1194 | sum += jvs_encode_data(machine, rdata, rdata_ptr); |
| 1195 | ppc4xx_spu_receive_byte( | |
| 1195 | ppc4xx_spu_receive_byte(m | |
| 1196 | 1196 | |
| 1197 | 1197 | jvs_sdata_ptr = 0; |
| 1198 | 1198 | } |
| r8581 | r8582 | |
| 1207 | 1207 | |
| 1208 | 1208 | led_reg0 = led_reg1 = 0x7f; |
| 1209 | 1209 | |
| 1210 | ppc4xx_spu_set_tx_handler( | |
| 1210 | ppc4xx_spu_set_tx_handler(m | |
| 1211 | 1211 | } |
| 1212 | 1212 | |
| 1213 | 1213 | static DRIVER_INIT(hornet_2board) |
| r8581 | r8582 | |
| 1218 | 1218 | |
| 1219 | 1219 | led_reg0 = led_reg1 = 0x7f; |
| 1220 | 1220 | |
| 1221 | ppc4xx_spu_set_tx_handler( | |
| 1221 | ppc4xx_spu_set_tx_handler(m | |
| 1222 | 1222 | } |
| 1223 | 1223 | |
| 1224 | 1224 | /*****************************************************************************/ |
| r8581 | r8582 | |
|---|---|---|
| 591 | 591 | { |
| 592 | 592 | fromance_state *state = (fromance_state *)machine->driver_data; |
| 593 | 593 | |
| 594 | state->subcpu = | |
| 594 | state->subcpu = m | |
| 595 | 595 | |
| 596 | 596 | /* initialize main Z80 bank */ |
| 597 | 597 | memory_configure_bank(machine, "bank1", 0, 8, memory_region(machine, "maincpu") + 0x10000, 0x2000); |
| r8581 | r8582 | |
|---|---|---|
| 201 | 201 | rectangle visarea; |
| 202 | 202 | |
| 203 | 203 | /* initialize globals */ |
| 204 | state->maincpu = | |
| 204 | state->maincpu = m | |
| 205 | 205 | state->syncprom = memory_region(machine, "proms") + 0x000; |
| 206 | 206 | |
| 207 | 207 | /* find the start of VBLANK in the SYNC PROM */ |
| r8581 | r8582 | |
|---|---|---|
| 562 | 562 | { |
| 563 | 563 | ddragon3_state *state = (ddragon3_state *)machine->driver_data; |
| 564 | 564 | |
| 565 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 566 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 565 | state->maincpu = machine->device("maincpu"); | |
| 566 | state->audiocpu = machine->device("audiocpu"); | |
| 567 | 567 | |
| 568 | 568 | state_save_register_global(machine, state->vreg); |
| 569 | 569 | state_save_register_global(machine, state->bg_scrollx); |
| r8581 | r8582 | |
|---|---|---|
| 445 | 445 | { |
| 446 | 446 | discoboy_state *state = (discoboy_state *)machine->driver_data; |
| 447 | 447 | |
| 448 | state->audiocpu = | |
| 448 | state->audiocpu = m | |
| 449 | 449 | |
| 450 | 450 | state_save_register_global(machine, state->ram_bank); |
| 451 | 451 | state_save_register_global(machine, state->port_00); |
| r8581 | r8582 | |
|---|---|---|
| 973 | 973 | { |
| 974 | 974 | UINT8 *rom = memory_region(machine, "bios"); |
| 975 | 975 | |
| 976 | cpu_set_irq_callback( | |
| 976 | cpu_set_irq_callback(m | |
| 977 | 977 | |
| 978 | 978 | memcpy(bios_ram, rom, 0x40000); |
| 979 | 979 | machine->device("maincpu")->reset(); |
| r8581 | r8582 | |
|---|---|---|
| 276 | 276 | { |
| 277 | 277 | orbit_state *state = (orbit_state *)machine->driver_data; |
| 278 | 278 | |
| 279 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 280 | state->discrete = devtag_get_device(machine, "discrete"); | |
| 279 | state->maincpu = machine->device("maincpu"); | |
| 280 | state->discrete = machine->device("discrete"); | |
| 281 | 281 | |
| 282 | 282 | state_save_register_global(machine, state->misc_flags); |
| 283 | 283 | state_save_register_global(machine, state->flip_screen); |
| r8581 | r8582 | |
|---|---|---|
| 155 | 155 | /* handle EEPROM I/O */ |
| 156 | 156 | if (ACCESSING_BITS_16_23) |
| 157 | 157 | { |
| 158 | running_device *device = | |
| 158 | running_device *device = | |
| 159 | 159 | eeprom_write_bit(device, data & 0x00800000); |
| 160 | 160 | eeprom_set_cs_line(device, (data & 0x00200000) ? CLEAR_LINE : ASSERT_LINE); |
| 161 | 161 | eeprom_set_clock_line(device, (data & 0x00400000) ? ASSERT_LINE : CLEAR_LINE); |
| r8581 | r8582 | |
| 164 | 164 | /* toggling BSMT off then on causes a reset */ |
| 165 | 165 | if (!(old & 0x80000000) && (control_data & 0x80000000)) |
| 166 | 166 | { |
| 167 | running_device *device = | |
| 167 | running_device *device = | |
| 168 | 168 | bsmt2000_data_w(device, bsmt_data_bank, 0, 0xffff); |
| 169 | 169 | device->reset(); |
| 170 | 170 | } |
| r8581 | r8582 | |
|---|---|---|
| 212 | 212 | |
| 213 | 213 | static WRITE32_HANDLER( m68k_tms_w ) |
| 214 | 214 | { |
| 215 | tms34010_host_w( | |
| 215 | tms34010_host_w( | |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | static READ32_HANDLER( m68k_tms_r ) |
| 219 | 219 | { |
| 220 | return tms34010_host_r( | |
| 220 | return tms34010_host_r( | |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | |
| r8581 | r8582 | |
| 274 | 274 | // 7e/7f at the start. 3f/7f, related to reads from 1018xxxx |
| 275 | 275 | if (ACCESSING_BITS_0_7) |
| 276 | 276 | { |
| 277 | running_device *subcpu = | |
| 277 | running_device *subcpu = | |
| 278 | 278 | |
| 279 | 279 | cpu_set_input_line(subcpu, INPUT_LINE_RESET, (data & 0x01) ? CLEAR_LINE : ASSERT_LINE); |
| 280 | 280 | cpu_set_input_line(subcpu, INPUT_LINE_HALT, (data & 0x40) ? CLEAR_LINE : ASSERT_LINE); |
| r8581 | r8582 | |
|---|---|---|
| 184 | 184 | static WRITE8_HANDLER( gaplus_irq_1_ctrl_w ) |
| 185 | 185 | { |
| 186 | 186 | int bit = !BIT(offset, 11); |
| 187 | cpu_interrupt_enable( | |
| 187 | cpu_interrupt_enable( | |
| 188 | 188 | if (!bit) |
| 189 | 189 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 190 | 190 | } |
| r8581 | r8582 | |
| 192 | 192 | static WRITE8_HANDLER( gaplus_irq_3_ctrl_w ) |
| 193 | 193 | { |
| 194 | 194 | int bit = !BIT(offset, 13); |
| 195 | cpu_interrupt_enable( | |
| 195 | cpu_interrupt_enable( | |
| 196 | 196 | if (!bit) |
| 197 | 197 | cputag_set_input_line(space->machine, "sub2", 0, CLEAR_LINE); |
| 198 | 198 | } |
| r8581 | r8582 | |
| 200 | 200 | static WRITE8_HANDLER( gaplus_irq_2_ctrl_w ) |
| 201 | 201 | { |
| 202 | 202 | int bit = offset & 1; |
| 203 | cpu_interrupt_enable( | |
| 203 | cpu_interrupt_enable( | |
| 204 | 204 | if (!bit) |
| 205 | 205 | cputag_set_input_line(space->machine, "sub", 0, CLEAR_LINE); |
| 206 | 206 | } |
| r8581 | r8582 | |
| 210 | 210 | int bit = !BIT(offset, 11); |
| 211 | 211 | cputag_set_input_line(space->machine, "sub", INPUT_LINE_RESET, bit ? CLEAR_LINE : ASSERT_LINE); |
| 212 | 212 | cputag_set_input_line(space->machine, "sub2", INPUT_LINE_RESET, bit ? CLEAR_LINE : ASSERT_LINE); |
| 213 | mappy_sound_enable( | |
| 213 | mappy_sound_enable( | |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | static WRITE8_HANDLER( gaplus_freset_w ) |
| 217 | 217 | { |
| 218 | running_device *io58xx = devtag_get_device(space->machine, "58xx"); | |
| 219 | running_device *io56xx = devtag_get_device(space->machine, "56xx"); | |
| 218 | running_device *io58xx = space->machine->device("58xx"); | |
| 219 | running_device *io56xx = space->machine->device("56xx"); | |
| 220 | 220 | int bit = !BIT(offset, 11); |
| 221 | 221 | |
| 222 | 222 | logerror("%04x: freset %d\n",cpu_get_pc(space->cpu), bit); |
| r8581 | r8582 | |
| 228 | 228 | static MACHINE_RESET( gaplus ) |
| 229 | 229 | { |
| 230 | 230 | /* on reset, VINTON is reset, while the other flags don't seem to be affected */ |
| 231 | cpu_interrupt_enable( | |
| 231 | cpu_interrupt_enable(m | |
| 232 | 232 | cputag_set_input_line(machine, "sub", 0, CLEAR_LINE); |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | static TIMER_CALLBACK( namcoio_run ) |
| 236 | 236 | { |
| 237 | running_device *io58xx = devtag_get_device(machine, "58xx"); | |
| 238 | running_device *io56xx = devtag_get_device(machine, "56xx"); | |
| 237 | running_device *io58xx = machine->device("58xx"); | |
| 238 | running_device *io56xx = machine->device("56xx"); | |
| 239 | 239 | |
| 240 | 240 | switch (param) |
| 241 | 241 | { |
| r8581 | r8582 | |
| 250 | 250 | |
| 251 | 251 | static INTERRUPT_GEN( gaplus_interrupt_1 ) |
| 252 | 252 | { |
| 253 | running_device *io58xx = devtag_get_device(device->machine, "58xx"); | |
| 254 | running_device *io56xx = devtag_get_device(device->machine, "56xx"); | |
| 253 | running_device *io58xx = device->machine->device("58xx"); | |
| 254 | running_device *io56xx = device->machine->device("56xx"); | |
| 255 | 255 | |
| 256 | 256 | irq0_line_assert(device); // this also checks if irq is enabled - IMPORTANT! |
| 257 | 257 | // so don't replace with cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE); |
| r8581 | r8582 | |
|---|---|---|
| 1228 | 1228 | |
| 1229 | 1229 | /* Assigning AY-3-8910 sound device */ |
| 1230 | 1230 | |
| 1231 | ay8910 = | |
| 1231 | ay8910 = m | |
| 1232 | 1232 | } |
| 1233 | 1233 | |
| 1234 | 1234 |
| r8581 | r8582 | |
|---|---|---|
| 202 | 202 | |
| 203 | 203 | memory_configure_bank(machine, "bank1", 0, 3, &ROM[0x10000], 0x2000); |
| 204 | 204 | |
| 205 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 206 | state->k007121 = devtag_get_device(machine, "k007121"); | |
| 205 | state->audiocpu = machine->device("audiocpu"); | |
| 206 | state->k007121 = machine->device("k007121"); | |
| 207 | 207 | |
| 208 | 208 | state_save_register_global(machine, state->irq_enabled); |
| 209 | 209 | state_save_register_global_array(machine, state->multiply_reg); |
| r8581 | r8582 | |
| 214 | 214 | { |
| 215 | 215 | flkatck_state *state = (flkatck_state *)machine->driver_data; |
| 216 | 216 | |
| 217 | k007232_set_bank( | |
| 217 | k007232_set_bank(m | |
| 218 | 218 | |
| 219 | 219 | state->irq_enabled = 0; |
| 220 | 220 | state->multiply_reg[0] = 0; |
| r8581 | r8582 | |
|---|---|---|
| 176 | 176 | |
| 177 | 177 | memory_configure_bank(machine, "bank1", 0, 12, &ROM[0x10000], 0x2000); |
| 178 | 178 | |
| 179 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 180 | state->k007121_1 = devtag_get_device(machine, "k007121_1"); | |
| 181 | state->k007121_2 = devtag_get_device(machine, "k007121_2"); | |
| 179 | state->audiocpu = machine->device("audiocpu"); | |
| 180 | state->k007121_1 = machine->device("k007121_1"); | |
| 181 | state->k007121_2 = machine->device("k007121_2"); | |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | static MACHINE_DRIVER_START( contra ) |
| r8581 | r8582 | |
|---|---|---|
| 1156 | 1156 | |
| 1157 | 1157 | static WRITE32_HANDLER( bank_coh1000t_w ) |
| 1158 | 1158 | { |
| 1159 | running_device *mb3773 = devtag_get_device(space->machine, "mb3773"); | |
| 1160 | mb3773_set_ck(mb3773, 0, (data & 0x20) >> 5); | |
| 1159 | running_device *mb3773 = space->machine->device("mb3773"); | |
| 1160 | mb3773_set_ck(mb3773, (data & 0x20) >> 5); | |
| 1161 | 1161 | verboselog( space->machine, 1, "bank_coh1000t_w( %08x, %08x, %08x )\n", offset, data, mem_mask ); |
| 1162 | 1162 | memory_set_bankptr(space->machine, "bank1", memory_region( space->machine, "user2" ) + ( ( data & 3 ) * 0x800000 ) ); |
| 1163 | 1163 | } |
| r8581 | r8582 | |
| 1169 | 1169 | |
| 1170 | 1170 | static READ32_HANDLER( taitofx1a_ymsound_r ) |
| 1171 | 1171 | { |
| 1172 | running_device *tc0140syt = | |
| 1172 | running_device *tc0140syt = | |
| 1173 | 1173 | return tc0140syt_comm_r(tc0140syt, 0) << 16; |
| 1174 | 1174 | } |
| 1175 | 1175 | |
| 1176 | 1176 | static WRITE32_HANDLER( taitofx1a_ymsound_w ) |
| 1177 | 1177 | { |
| 1178 | running_device *tc0140syt = | |
| 1178 | running_device *tc0140syt = | |
| 1179 | 1179 | |
| 1180 | 1180 | if (mem_mask == 0x0000ffff) |
| 1181 | 1181 | { |
| r8581 | r8582 | |
| 1469 | 1469 | |
| 1470 | 1470 | static void atpsx_dma_read( running_machine *machine, UINT32 n_address, INT32 n_size ) |
| 1471 | 1471 | { |
| 1472 | running_device *ide = | |
| 1472 | running_device *ide = m | |
| 1473 | 1473 | |
| 1474 | 1474 | logerror("DMA read: %d bytes (%d words) to %08x\n", n_size<<2, n_size, n_address); |
| 1475 | 1475 | |
| r8581 | r8582 | |
| 1497 | 1497 | |
| 1498 | 1498 | static DRIVER_INIT( coh1000w ) |
| 1499 | 1499 | { |
| 1500 | running_device *ide = | |
| 1500 | running_device *ide = m | |
| 1501 | 1501 | |
| 1502 | 1502 | memory_install_read_bank ( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x1f000000, 0x1f1fffff, 0, 0, "bank1" ); |
| 1503 | 1503 | memory_nop_write ( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x1f000000, 0x1f000003, 0, 0 ); |
| r8581 | r8582 | |
| 2170 | 2170 | if( ( !strcmp( machine->gamedrv->name, "jdredd" ) ) || |
| 2171 | 2171 | ( !strcmp( machine->gamedrv->name, "jdreddb" ) ) ) |
| 2172 | 2172 | { |
| 2173 | running_device *ide = | |
| 2173 | running_device *ide = m | |
| 2174 | 2174 | |
| 2175 | 2175 | memory_install_read32_device_handler( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), ide, 0x1fbfff8c, 0x1fbfff8f, 0, 0, jdredd_idestat_r ); |
| 2176 | 2176 | memory_nop_write ( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x1fbfff8c, 0x1fbfff8f, 0, 0 ); |
| r8581 | r8582 | |
|---|---|---|
| 548 | 548 | UINT8 *ROM = memory_region(machine, "maincpu"); |
| 549 | 549 | |
| 550 | 550 | memory_configure_bank(machine, "bank1", 0, 3, &ROM[0x00000], 0x4000); |
| 551 | memory_configure_bank(machine, "bank1", 3, bank_n - | |
| 551 | memory_configure_bank(machine, "bank1", 3, bank_n - 3, &ROM[0x10000], 0x4000); | |
| 552 | 552 | |
| 553 | 553 | state_save_register_global(machine, state->palbank); |
| 554 | 554 | state_save_register_global(machine, state->priority); |
| r8581 | r8582 | |
| 646 | 646 | |
| 647 | 647 | Paradise / Paradise Deluxe |
| 648 | 648 | |
| 649 | (c) Yun Sung year unkown | |
| 649 | (c) Yun Sung year unknown | |
| 650 | 650 | |
| 651 | 651 | Another porn qix like game |
| 652 | 652 |
| r8581 | r8582 | |
|---|---|---|
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | --- Team Japump!!! --- |
| 59 | http://www.rainemu.com/japump/ | |
| 60 | http://japump.i.am/ | |
| 61 | 59 | Dumped by Uki |
| 62 | 60 | 10/22/2000 |
| 63 | 61 |
| r8581 | r8582 | |
|---|---|---|
| 254 | 254 | UINT8 *ROM = memory_region(machine, "maincpu"); |
| 255 | 255 | memory_configure_bank(machine, "bank1", 0, 5, &ROM[0x10000], 0x2000); |
| 256 | 256 | |
| 257 | state->filter1 = devtag_get_device(machine, "filter1"); | |
| 258 | state->filter2 = devtag_get_device(machine, "filter2"); | |
| 259 | state->filter3 = devtag_get_device(machine, "filter3"); | |
| 257 | state->filter1 = machine->device("filter1"); | |
| 258 | state->filter2 = machine->device("filter2"); | |
| 259 | state->filter3 = machine->device("filter3"); | |
| 260 | 260 | |
| 261 | 261 | state_save_register_global(machine, state->int_enable_0); |
| 262 | 262 | state_save_register_global(machine, state->int_enable_1); |
| r8581 | r8582 | |
|---|---|---|
| 363 | 363 | switch (offset) { |
| 364 | 364 | case 0: return 0xffff0000 | input_port_read(space->machine, "IN0"); |
| 365 | 365 | case 1: return 0xffff0000 | input_port_read(space->machine, "IN1"); //check top bits?? |
| 366 | case 2: return 0xfffffffe | eeprom_read_bit( | |
| 366 | case 2: return 0xfffffffe | eeprom_read_bit( | |
| 367 | 367 | } |
| 368 | 368 | |
| 369 | 369 | return 0xffffffff; |
| r8581 | r8582 | |
| 631 | 631 | switch (offset<<1) { |
| 632 | 632 | case 0x280: return input_port_read(space->machine, "IN0") << 16| 0xffff; /* IN0 */ |
| 633 | 633 | case 0x4c4: return input_port_read(space->machine, "IN1") << 16| 0xffff; /* IN1 */ |
| 634 | case 0x35a: return (eeprom_read_bit( | |
| 634 | case 0x35a: return (eeprom_read_bit( | |
| 635 | 635 | } |
| 636 | 636 | |
| 637 | 637 | //logerror("%08x: Read unmapped prot %08x (%08x)\n",cpu_get_pc(space->cpu),offset<<1,mem_mask); |
| r8581 | r8582 | |
|---|---|---|
| 151 | 151 | // Bits 1-3 are all set high upon death, until the game continues |
| 152 | 152 | // Bit 6 is used only in Malzak II, and is set high after checking |
| 153 | 153 | // the selected version |
| 154 | // logerror("S2650 [0x%04x]: port 0x40 write: 0x%02x\n", cpu_get_pc( | |
| 154 | // logerror("S2650 [0x%04x]: port 0x40 write: 0x%02x\n", cpu_get_pc( | |
| 155 | 155 | memory_set_bank(space->machine, "bank1", (data & 0x40) >> 6); |
| 156 | 156 | } |
| 157 | 157 | |
| r8581 | r8582 | |
| 372 | 372 | |
| 373 | 373 | memory_configure_bank(machine, "bank1", 0, 2, memory_region(machine, "user2"), 0x400); |
| 374 | 374 | |
| 375 | state->s2636_0 = devtag_get_device(machine, "s2636_0"); | |
| 376 | state->s2636_1 = devtag_get_device(machine, "s2636_1"); | |
| 377 | state->saa5050 = devtag_get_device(machine, "saa5050"); | |
| 375 | state->s2636_0 = machine->device("s2636_0"); | |
| 376 | state->s2636_1 = machine->device("s2636_1"); | |
| 377 | state->saa5050 = machine->device("saa5050"); | |
| 378 | 378 | |
| 379 | 379 | state_save_register_global_array(machine, state->playfield_code); |
| 380 | 380 | state_save_register_global(machine, state->malzak_x); |
| r8581 | r8582 | |
|---|---|---|
| 13 | 13 | Known bugs: |
| 14 | 14 | * not done yet |
| 15 | 15 | |
| 16 | To Do | |
| 17 | * make version 1.0 of MK4 work | |
| 18 | ||
| 16 | 19 | According to a Midway service bulletin |
| 17 | 20 | As of 2/12/2001 the lastest software levels: |
| 18 | 21 | |
| r8581 | r8582 | |
| 28 | 31 | #include "cpu/tms32031/tms32031.h" |
| 29 | 32 | #include "cpu/tms34010/tms34010.h" |
| 30 | 33 | #include "cpu/adsp2100/adsp2100.h" |
| 34 | #include "cpu/pic16c5x/pic16c5x.h" | |
| 31 | 35 | #include "includes/midzeus.h" |
| 32 | 36 | #include "machine/midwayic.h" |
| 33 | 37 | #include "machine/timekpr.h" |
| r8581 | r8582 | |
| 1128 | 1132 | MDRV_IMPORT_FROM(dcs2_audio_2104) |
| 1129 | 1133 | MACHINE_DRIVER_END |
| 1130 | 1134 | |
| 1135 | static READ8_HANDLER( PIC16C5X_T0_clk_r ) | |
| 1136 | { | |
| 1137 | return 0; | |
| 1138 | } | |
| 1131 | 1139 | |
| 1140 | static ADDRESS_MAP_START( pic_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 1141 | AM_RANGE(PIC16C5x_T0, PIC16C5x_T0) AM_READ(PIC16C5X_T0_clk_r) | |
| 1142 | ADDRESS_MAP_END | |
| 1143 | ||
| 1144 | ||
| 1145 | static MACHINE_DRIVER_START( invasn ) | |
| 1146 | ||
| 1147 | MDRV_IMPORT_FROM(midzeus) | |
| 1148 | ||
| 1149 | MDRV_CPU_ADD("pic", PIC16C57, 8000000) /* ? */ | |
| 1150 | MDRV_CPU_IO_MAP(pic_io_map) | |
| 1151 | MACHINE_DRIVER_END | |
| 1152 | ||
| 1132 | 1153 | static MACHINE_DRIVER_START( midzeus2 ) |
| 1133 | 1154 | |
| 1134 | 1155 | /* basic machine hardware */ |
| r8581 | r8582 | |
| 1222 | 1243 | ROM_LOAD16_BYTE( "invasion2.u4", 0x800000, 0x200000, CRC(5ef1fab5) SHA1(987afa0672fa89b18cf20d28644848a9e5ee9b17) ) |
| 1223 | 1244 | ROM_LOAD16_BYTE( "invasion2.u5", 0xc00000, 0x200000, CRC(e42805c9) SHA1(e5b71eb1852809a649ac43a82168b3bdaf4b1526) ) |
| 1224 | 1245 | |
| 1246 | ROM_REGION( 0x2000, "pic", 0 ) /* PIC16c57 Code */ | |
| 1247 | ROM_LOAD( "pic16c57.u76", 0x00000, 0x2000, CRC(f62729c9) SHA1(9642c53dd7eceeb7eb178497d367691c44abc5c5) ) // is this even a valid dump? | |
| 1248 | ||
| 1225 | 1249 | ROM_REGION32_LE( 0x1800000, "user1", 0 ) |
| 1226 | 1250 | ROM_LOAD32_WORD( "invasion5.u10", 0x0000000, 0x200000, CRC(8c7785d9) SHA1(701602314cd4eba4215c47ea0ae75fd4eddad43b) ) /* Roms U10 & U11 were labeled as v5.0 */ |
| 1227 | 1251 | ROM_LOAD32_WORD( "invasion5.u11", 0x0000002, 0x200000, CRC(8ceb1f32) SHA1(82d01f25cba25d77b11c347632e8b72776e12984) ) |
| r8581 | r8582 | |
| 1242 | 1266 | ROM_LOAD16_BYTE( "invasion2.u4", 0x800000, 0x200000, CRC(5ef1fab5) SHA1(987afa0672fa89b18cf20d28644848a9e5ee9b17) ) |
| 1243 | 1267 | ROM_LOAD16_BYTE( "invasion2.u5", 0xc00000, 0x200000, CRC(e42805c9) SHA1(e5b71eb1852809a649ac43a82168b3bdaf4b1526) ) |
| 1244 | 1268 | |
| 1269 | ROM_REGION( 0x2000, "pic", 0 ) /* PIC16c57 Code */ | |
| 1270 | ROM_LOAD( "pic16c57.u76", 0x00000, 0x2000, CRC(f62729c9) SHA1(9642c53dd7eceeb7eb178497d367691c44abc5c5) ) // is this even a valid dump? | |
| 1271 | ||
| 1245 | 1272 | ROM_REGION32_LE( 0x1800000, "user1", 0 ) |
| 1246 | 1273 | ROM_LOAD32_WORD( "invasion4.u10", 0x0000000, 0x200000, CRC(b3ce958b) SHA1(ed51c167d85bc5f6155b8046ec056a4f4ad5cf9d) ) /* These rom were all labeled as v4.0 */ |
| 1247 | 1274 | ROM_LOAD32_WORD( "invasion4.u11", 0x0000002, 0x200000, CRC(0bd09359) SHA1(f40886bd2e5f5fbf506580e5baa2f733be200852) ) |
| r8581 | r8582 | |
| 1436 | 1463 | GAME( 1997, mk4, 0, midzeus, mk4, mk4, ROT0, "Midway", "Mortal Kombat 4 (version 3.0)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 1437 | 1464 | GAME( 1997, mk4a, mk4, midzeus, mk4, mk4, ROT0, "Midway", "Mortal Kombat 4 (version 2.1)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 1438 | 1465 | GAME( 1997, mk4b, mk4, midzeus, mk4, mk4, ROT0, "Midway", "Mortal Kombat 4 (version 1.0)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 1439 | GAME( 1999, invasnab, 0, midzeus, invasn, invasn, ROT0, "Midway", "Invasion - The Abductors (version 5.0)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) | |
| 1440 | GAME( 1999, invasnv4, invasnab, midzeus, invasn, invasn, ROT0, "Midway", "Invasion - The Abductors (version 4.0)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) | |
| 1466 | GAME( 1999, invasnab, 0, invasn, invasn, invasn, ROT0, "Midway", "Invasion - The Abductors (version 5.0)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) | |
| 1467 | GAME( 1999, invasnv4, invasnab, invasn, invasn, invasn, ROT0, "Midway", "Invasion - The Abductors (version 4.0)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) | |
| 1441 | 1468 | GAMEL( 1999, crusnexo, 0, midzeus2, crusnexo, crusnexo, ROT0, "Midway", "Cruis'n Exotica (version 2.4)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_crusnexo ) |
| 1442 | 1469 | GAMEL( 1999, crusnexoa,crusnexo, midzeus2, crusnexo, crusnexo, ROT0, "Midway", "Cruis'n Exotica (version 2.0)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_crusnexo ) |
| 1443 | 1470 | GAMEL( 1999, crusnexob,crusnexo, midzeus2, crusnexo, crusnexo, ROT0, "Midway", "Cruis'n Exotica (version 1.6)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_crusnexo ) |
| r8581 | r8582 | |
|---|---|---|
| 179 | 179 | |
| 180 | 180 | // ay8910 control port |
| 181 | 181 | if (p1 == 0xfc) |
| 182 | ay8910_address_w( | |
| 182 | ay8910_address_w( | |
| 183 | 183 | |
| 184 | 184 | // ay8910_write_port_0_w |
| 185 | 185 | if (p1 == 0xfe) |
| 186 | ay8910_data_w( | |
| 186 | ay8910_data_w( | |
| 187 | 187 | } |
| 188 | 188 | } |
| 189 | 189 |
| r8581 | r8582 | |
|---|---|---|
| 319 | 319 | { |
| 320 | 320 | superdq_state *state = (superdq_state *)machine->driver_data; |
| 321 | 321 | |
| 322 | state->laserdisc = | |
| 322 | state->laserdisc = m | |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 |
| r8581 | r8582 | |
|---|---|---|
| 143 | 143 | { |
| 144 | 144 | // 320 Reset Low (Address Strobe) |
| 145 | 145 | // Reset TMS320 |
| 146 | cpu_set_input_line( | |
| 146 | cpu_set_input_line( | |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | static WRITE16_HANDLER(tomcat_mresh_w) |
| r8581 | r8582 | |
| 151 | 151 | // 320 Reset high (Address Strobe) |
| 152 | 152 | // Release reset of TMS320 |
| 153 | 153 | dsp_BIO = 0; |
| 154 | cpu_set_input_line( | |
| 154 | cpu_set_input_line( | |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | static WRITE16_HANDLER(tomcat_irqclr_w) |
| r8581 | r8582 | |
|---|---|---|
| 57 | 57 | Mosfat, Unique, GEI, etc... |
| 58 | 58 | |
| 59 | 59 | You can see some legal issues in the following links: |
| 60 | http://www.altlaw.org/v1/cases/533481 | |
| 61 | 60 | http://cases.justia.com/us-court-of-appeals/F2/783/421/41759/ |
| 62 | 61 | |
| 63 | 62 | |
| r8581 | r8582 | |
| 651 | 650 | xxxx ---- * Discrete Sound Lines. |
| 652 | 651 | */ |
| 653 | 652 | |
| 654 | running_device *discrete = dev | |
| 653 | running_device *discrete = dev | |
| 655 | 654 | |
| 656 | 655 | output_set_lamp_value(8, (data >> 0) & 1); /* DEAL / DRAW lamp */ |
| 657 | 656 | output_set_lamp_value(9, (data >> 1) & 1); /* BET / COLLECT lamp */ |
| r8581 | r8582 | |
| 721 | 720 | np_vram[np_addr] = data & 0xff; |
| 722 | 721 | |
| 723 | 722 | /* trigger 8255-2 port C bit 7 (/OBF) */ |
| 724 | // i8255a_pc7_w(devtag_get_device(device->machine, "ppi8255_2"), 0); | |
| 725 | // i8255a_pc7_w(devtag_get_device(device->machine, "ppi8255_2"), 1); | |
| 723 | // i8255a_pc7_w(device->machine->device("ppi8255_2"), 0); | |
| 724 | // i8255a_pc7_w(device->machine->device("ppi8255_2"), 1); | |
| 726 | 725 | |
| 727 | 726 | } |
| 728 | 727 |
| r8581 | r8582 | |
|---|---|---|
| 764 | 764 | { |
| 765 | 765 | karnov_state *state = (karnov_state *)machine->driver_data; |
| 766 | 766 | |
| 767 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 768 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 767 | state->maincpu = machine->device("maincpu"); | |
| 768 | state->audiocpu = machine->device("audiocpu"); | |
| 769 | 769 | |
| 770 | 770 | state_save_register_global(machine, state->flipscreen); |
| 771 | 771 | state_save_register_global_array(machine, state->scroll); |
| r8581 | r8582 | |
|---|---|---|
| 133 | 133 | switch (offset) |
| 134 | 134 | { |
| 135 | 135 | case 7: |
| 136 | ticket_dispenser_w( | |
| 136 | ticket_dispenser_w( | |
| 137 | 137 | break; |
| 138 | 138 | |
| 139 | 139 | case 8: |
| r8581 | r8582 | |
|---|---|---|
| 145 | 145 | static CUSTOM_INPUT( punchout_vlm5030_busy_r ) |
| 146 | 146 | { |
| 147 | 147 | /* bit 4 of DSW1 is busy pin level */ |
| 148 | return (vlm5030_bsy( | |
| 148 | return (vlm5030_bsy( | |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | static WRITE8_DEVICE_HANDLER( punchout_speech_reset_w ) |
| r8581 | r8582 | |
| 508 | 508 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 509 | 509 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 510 | 510 | |
| 511 | /* See http://www.mametesters.org/mantis/view.php?id=790 for more info about coinage */ | |
| 511 | /* Coinage: | |
| 512 | ||
| 513 | R18 (Coin Slots setting) determines which table is used. | |
| 514 | ||
| 515 | L = number of credits per coin for left coin slot | |
| 516 | R = number of credits per coin for right coin slot | |
| 517 | C = number of credits needed for one play | |
| 518 | ||
| 519 | Table 1 (for 2 Coin Slots): | |
| 520 | ||
| 521 | DSW1 DSW2 | |
| 522 | bit 3210 5432 L R C | |
| 523 | ||
| 524 | 0000 0000 1 1 1 | |
| 525 | 0000 0001 8 1 1 | |
| 526 | 0000 0010 2 1 1 | |
| 527 | 0000 0011 8 3 3 | |
| 528 | 0000 0100 3 1 2 | |
| 529 | 0000 0101 3 12 4 | |
| 530 | 0000 0110 1 2 2 | |
| 531 | 0000 0111 3 24 2 | |
| 532 | 0000 1000 1 3 3 | |
| 533 | 0000 1001 4 1 3 | |
| 534 | 0000 1010 1 4 4 | |
| 535 | 0000 1011 3 3 4 | |
| 536 | 0000 1100 1 5 5 | |
| 537 | 0000 1101 1 1 1 | |
| 538 | 0000 1110 2 3 3 | |
| 539 | 0000 1111 5 5 3 | |
| 540 | ||
| 541 | 0001 0000 1 2 1 | |
| 542 | 0001 0001 1 8 1 | |
| 543 | 0001 0010 2 2 1 | |
| 544 | 0001 0011 3 8 3 | |
| 545 | 0001 0100 3 2 1 | |
| 546 | 0001 0101 12 3 4 | |
| 547 | 0001 0110 1 4 2 | |
| 548 | 0001 0111 24 3 2 | |
| 549 | 0001 1000 1 6 3 | |
| 550 | 0001 1001 1 4 3 | |
| 551 | 0001 1010 1 8 4 | |
| 552 | 0001 1011 3 3 4 | |
| 553 | 0001 1100 1 10 5 | |
| 554 | 0001 1101 1 1 2 | |
| 555 | 0001 1110 2 6 3 | |
| 556 | 0001 1111 5 5 4 | |
| 557 | ||
| 558 | 0010 0000 1 3 1 | |
| 559 | 0010 0001 9 1 1 | |
| 560 | 0010 0010 2 3 1 | |
| 561 | 0010 0011 3 4 4 | |
| 562 | 0010 0100 3 3 1 | |
| 563 | 0010 0101 4 4 1 | |
| 564 | 0010 0110 1 6 2 | |
| 565 | 0010 0111 3 1 2 | |
| 566 | 0010 1000 1 9 3 | |
| 567 | 0010 1001 10 1 3 | |
| 568 | 0010 1010 1 12 4 | |
| 569 | 0010 1011 1 1 6 | |
| 570 | 0010 1100 1 15 5 | |
| 571 | 0010 1101 2 2 1 | |
| 572 | 0010 1110 2 9 3 | |
| 573 | 0010 1111 2 2 5 | |
| 574 | ||
| 575 | 0011 0000 1 4 1 | |
| 576 | 0011 0001 1 9 1 | |
| 577 | 0011 0010 2 4 1 | |
| 578 | 0011 0011 4 3 4 | |
| 579 | 0011 0100 3 4 1 | |
| 580 | 0011 0101 4 4 1 | |
| 581 | 0011 0110 1 8 2 | |
| 582 | 0011 0111 1 3 2 | |
| 583 | 0011 1000 1 12 3 | |
| 584 | 0011 1001 1 10 3 | |
| 585 | 0011 1010 1 16 4 | |
| 586 | 0011 1011 1 1 6 | |
| 587 | 0011 1100 1 20 5 | |
| 588 | 0011 1101 1 1 4 | |
| 589 | 0011 1110 2 12 3 | |
| 590 | 0011 1111 8 8 1 | |
| 591 | ||
| 592 | 0100 0000 1 5 1 | |
| 593 | 0100 0001 10 1 1 | |
| 594 | 0100 0010 2 5 1 | |
| 595 | 0100 0011 2 5 5 | |
| 596 | 0100 0100 3 5 1 | |
| 597 | 0100 0101 4 4 1 | |
| 598 | 0100 0110 1 10 2 | |
| 599 | 0100 0111 10 1 2 | |
| 600 | 0100 1000 1 15 3 | |
| 601 | 0100 1001 20 1 3 | |
| 602 | 0100 1010 1 20 4 | |
| 603 | 0100 1011 16 1 2 | |
| 604 | 0100 1100 1 25 5 | |
| 605 | 0100 1101 1 1 5 | |
| 606 | 0100 1110 2 15 3 | |
| 607 | 0100 1111 8 8 3 | |
| 608 | ||
| 609 | 0101 0000 1 6 1 | |
| 610 | 0101 0001 1 10 1 | |
| 611 | 0101 0010 2 6 1 | |
| 612 | 0101 0011 5 2 5 | |
| 613 | 0101 0100 3 6 1 | |
| 614 | 0101 0101 4 5 1 | |
| 615 | 0101 0110 1 12 2 | |
| 616 | 0101 0111 1 10 2 | |
| 617 | 0101 1000 1 18 3 | |
| 618 | 0101 1001 1 20 3 | |
| 619 | 0101 1010 1 24 4 | |
| 620 | 0101 1011 20 20 0 Not a "Freeplay": you MUST insert a coin! | |
| 621 | 0101 1100 1 30 5 | |
| 622 | 0101 1101 3 3 3 | |
| 623 | 0101 1110 2 18 1 | |
| 624 | 0101 1111 9 9 1 | |
| 625 | ||
| 626 | 0110 0000 2 1 2 | |
| 627 | 0110 0001 12 1 1 | |
| 628 | 0110 0010 4 1 2 | |
| 629 | 0110 0011 10 2 1 | |
| 630 | 0110 0100 6 1 2 | |
| 631 | 0110 0101 3 8 2 | |
| 632 | 0110 0110 1 1 2 | |
| 633 | 0110 0111 3 2 4 | |
| 634 | 0110 1000 2 3 6 | |
| 635 | 0110 1001 9 4 12 | |
| 636 | 0110 1010 1 2 4 | |
| 637 | 0110 1011 1 1 1 | |
| 638 | 0110 1100 2 5 10 | |
| 639 | 0110 1101 4 4 1 | |
| 640 | 0110 1110 4 3 6 | |
| 641 | 0110 1111 9 9 2 | |
| 642 | ||
| 643 | 0111 0000 3 1 3 | |
| 644 | 0111 0001 1 12 1 | |
| 645 | 0111 0010 6 1 3 | |
| 646 | 0111 0011 2 10 1 | |
| 647 | 0111 0100 9 1 3 | |
| 648 | 0111 0101 8 3 2 | |
| 649 | 0111 0110 3 2 6 | |
| 650 | 0111 0111 2 3 4 | |
| 651 | 0111 1000 1 1 3 | |
| 652 | 0111 1001 4 9 12 | |
| 653 | 0111 1010 3 4 12 | |
| 654 | 0111 1011 1 1 1 | |
| 655 | 0111 1100 3 5 15 | |
| 656 | 0111 1101 6 6 1 | |
| 657 | 0111 1110 2 2 3 | |
| 658 | 0111 1111 10 10 1 | |
| 659 | ||
| 660 | 1000 0000 4 1 4 | |
| 661 | 1000 0001 3 2 2 | |
| 662 | 1000 0010 8 1 4 | |
| 663 | 1000 0011 12 2 1 | |
| 664 | 1000 0100 12 1 4 | |
| 665 | 1000 0101 5 5 1 | |
| 666 | 1000 0110 2 1 4 | |
| 667 | 1000 0111 3 3 2 | |
| 668 | 1000 1000 4 3 12 | |
| 669 | 1000 1001 4 2 3 | |
| 670 | 1000 1010 1 1 4 | |
| 671 | 1000 1011 1 1 1 | |
| 672 | 1000 1100 4 5 20 | |
| 673 | 1000 1101 1 1 6 | |
| 674 | 1000 1110 8 3 12 | |
| 675 | 1000 1111 10 10 3 | |
| 676 | ||
| 677 | 1001 0000 5 1 5 | |
| 678 | 1001 0001 2 3 2 | |
| 679 | 1001 0010 10 1 5 | |
| 680 | 1001 0011 2 12 1 | |
| 681 | 1001 0100 15 1 5 | |
| 682 | 1001 0101 5 5 1 | |
| 683 | 1001 0110 5 2 10 | |
| 684 | 1001 0111 3 3 2 | |
| 685 | 1001 1000 5 3 15 | |
| 686 | 1001 1001 2 4 3 | |
| 687 | 1001 1010 5 4 20 | |
| 688 | 1001 1011 1 1 1 | |
| 689 | 1001 1100 1 1 5 | |
| 690 | 1001 1101 2 2 3 | |
| 691 | 1001 1110 10 3 15 | |
| 692 | 1001 1111 11 11 1 | |
| 693 | ||
| 694 | 1010 0000 3 2 3 | |
| 695 | 1010 0001 5 2 2 | |
| 696 | 1010 0010 6 2 3 | |
| 697 | 1010 0011 3 4 2 | |
| 698 | 1010 0100 9 2 3 | |
| 699 | 1010 0101 6 6 1 | |
| 700 | 1010 0110 3 4 6 | |
| 701 | 1010 0111 4 9 6 | |
| 702 | 1010 1000 1 2 3 | |
| 703 | 1010 1001 10 2 3 | |
| 704 | 1010 1010 3 8 12 | |
| 705 | 1010 1011 1 1 1 | |
| 706 | 1010 1100 2 10 15 | |
| 707 | 1010 1101 5 5 1 | |
| 708 | 1010 1110 2 2 3 | |
| 709 | 1010 1111 11 11 3 | |
| 710 | ||
| 711 | 1011 0000 3 5 3 | |
| 712 | 1011 0001 2 5 2 | |
| 713 | 1011 0010 6 5 3 | |
| 714 | 1011 0011 4 3 2 | |
| 715 | 1011 0100 9 5 3 | |
| 716 | 1011 0101 6 6 1 | |
| 717 | 1011 0110 3 10 6 | |
| 718 | 1011 0111 9 4 6 | |
| 719 | 1011 1000 1 5 3 | |
| 720 | 1011 1001 2 10 3 | |
| 721 | 1011 1010 3 20 12 | |
| 722 | 1011 1011 1 1 1 | |
| 723 | 1011 1100 3 25 15 | |
| 724 | 1011 1101 3 3 2 | |
| 725 | 1011 1110 2 5 3 | |
| 726 | 1011 1111 12 12 1 | |
| 727 | ||
| 728 | 1100 0000 4 5 4 | |
| 729 | 1100 0001 9 2 2 | |
| 730 | 1100 0010 8 5 4 | |
| 731 | 1100 0011 3 8 4 | |
| 732 | 1100 0100 12 5 4 | |
| 733 | 1100 0101 3 12 2 | |
| 734 | 1100 0110 2 5 4 | |
| 735 | 1100 0111 8 9 6 | |
| 736 | 1100 1000 4 15 12 | |
| 737 | 1100 1001 11 2 3 | |
| 738 | 1100 1010 1 5 4 | |
| 739 | 1100 1011 1 1 1 | |
| 740 | 1100 1100 4 25 20 | |
| 741 | 1100 1101 1 1 3 | |
| 742 | 1100 1110 8 15 12 | |
| 743 | 1100 1111 20 20 3 | |
| 744 | ||
| 745 | 1101 0000 4 1 1 | |
| 746 | 1101 0001 2 9 2 | |
| 747 | 1101 0010 4 2 1 | |
| 748 | 1101 0011 8 3 4 | |
| 749 | 1101 0100 4 3 1 | |
| 750 | 1101 0101 12 3 2 | |
| 751 | 1101 0110 8 1 2 | |
| 752 | 1101 0111 9 8 6 | |
| 753 | 1101 1000 12 1 3 | |
| 754 | 1101 1001 2 11 3 | |
| 755 | 1101 1010 12 2 3 | |
| 756 | 1101 1011 1 1 1 | |
| 757 | 1101 1100 20 1 5 | |
| 758 | 1101 1101 5 5 2 | |
| 759 | 1101 1110 18 2 3 | |
| 760 | 1101 1111 3 3 4 | |
| 761 | ||
| 762 | 1110 0000 5 5 1 | |
| 763 | 1110 0001 4 4 3 | |
| 764 | 1110 0010 5 2 1 | |
| 765 | 1110 0011 11 2 1 | |
| 766 | 1110 0100 5 3 1 | |
| 767 | 1110 0101 3 24 4 | |
| 768 | 1110 0110 10 1 2 | |
| 769 | 1110 0111 1 6 4 | |
| 770 | 1110 1000 15 1 3 | |
| 771 | 1110 1001 9 8 12 | |
| 772 | 1110 1010 20 1 4 | |
| 773 | 1110 1011 1 1 1 | |
| 774 | 1110 1100 25 1 5 | |
| 775 | 1110 1101 4 4 3 | |
| 776 | 1110 1110 20 4 4 | |
| 777 | 1110 1111 20 20 0 Not a "Freeplay": you MUST insert a coin! | |
| 778 | ||
| 779 | 1111 0000 6 1 1 | |
| 780 | 1111 0001 3 4 3 | |
| 781 | 1111 0010 6 2 1 | |
| 782 | 1111 0011 2 11 1 | |
| 783 | 1111 0100 6 3 1 | |
| 784 | 1111 0101 24 3 1 | |
| 785 | 1111 0110 12 1 2 | |
| 786 | 1111 0111 6 1 4 | |
| 787 | 1111 1000 18 1 3 | |
| 788 | 1111 1001 8 9 12 | |
| 789 | 1111 1010 24 1 4 | |
| 790 | 1111 1011 1 1 1 | |
| 791 | 1111 1100 15 2 3 | |
| 792 | 1111 1101 3 3 4 | |
| 793 | 1111 1110 "Freeplay" | |
| 794 | 1111 1111 "Freeplay" | |
| 795 | ||
| 796 | ||
| 797 | Table 2 (for 1 Coin Slot): | |
| 798 | ||
| 799 | DSW1 DSW2 | |
| 800 | bit 3210 5432 L R C | |
| 801 | ||
| 802 | 0000 0xxx 1 1 1 | |
| 803 | 0000 1xxx 5 5 3 | |
| 804 | ||
| 805 | 0001 0xxx 1 1 2 | |
| 806 | 0001 1xxx 5 5 4 | |
| 807 | ||
| 808 | 0010 0xxx 2 2 1 | |
| 809 | 0010 1xxx 2 2 5 | |
| 810 | ||
| 811 | 0011 0xxx 1 1 4 | |
| 812 | 0011 1xxx 8 8 1 | |
| 813 | ||
| 814 | 0100 0xxx 1 1 5 | |
| 815 | 0100 1xxx 8 8 3 | |
| 816 | ||
| 817 | 0101 0xxx 3 3 1 | |
| 818 | 0101 1xxx 9 9 1 | |
| 819 | ||
| 820 | 0110 0xxx 4 4 1 | |
| 821 | 0110 1xxx 9 9 2 | |
| 822 | ||
| 823 | 0111 0xxx 6 6 1 | |
| 824 | 0111 1xxx 10 10 1 | |
| 825 | ||
| 826 | 1000 0xxx 1 1 6 | |
| 827 | 1000 1xxx 10 10 3 | |
| 828 | ||
| 829 | 1001 0xxx 5 1 5 | |
| 830 | 1001 1xxx 11 11 1 | |
| 831 | ||
| 832 | 1010 0xxx 5 5 1 | |
| 833 | 1010 1xxx 11 11 3 | |
| 834 | ||
| 835 | 1011 0xxx 3 3 2 | |
| 836 | 1011 1xxx 12 12 1 | |
| 837 | ||
| 838 | 1100 0xxx 1 1 3 | |
| 839 | 1100 1xxx 20 20 3 | |
| 840 | ||
| 841 | 1101 0xxx 5 5 2 | |
| 842 | 1101 1xxx 3 3 4 | |
| 843 | ||
| 844 | 1110 0xxx 4 4 3 | |
| 845 | 1110 1xxx 20 20 0 Not a "Freeplay": you MUST insert a coin! | |
| 846 | ||
| 847 | 1111 xxxx "Freeplay" | |
| 848 | ||
| 849 | */ | |
| 850 | ||
| 512 | 851 | PORT_MODIFY("DSW2") |
| 513 | PORT_DIPNAME( 0x1c, 0x00, "Coinage 2" ) PORT_DIPLOCATION("SW2:!3,!4,!5") //K,L,M | |
| 514 | PORT_DIPSETTING( 0x00, "0" ) | |
| 515 | PORT_DIPSETTING( 0x04, "4" ) | |
| 516 | PORT_DIPSETTING( 0x08, "8" ) | |
| 517 | PORT_DIPSETTING( 0x0c, "c" ) | |
| 518 | PORT_DIPSETTING( 0x10, "10" ) | |
| 519 | PORT_DIPSETTING( 0x14, "14" ) | |
| 520 | PORT_DIPSETTING( 0x18, "18" ) | |
| 521 | PORT_DIPSETTING( 0x1c, "1c" ) | |
| 522 | PORT_DIPNAME( 0x20, 0x00, "Coinage 3" ) PORT_DIPLOCATION("SW2:!6") //N | |
| 523 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 524 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 852 | PORT_DIPNAME( 0x3c, 0x00, "Coinage 2" ) PORT_DIPLOCATION("SW2:!3,!4,!5,!6") // K,L,M,N | |
| 853 | PORT_DIPSETTING( 0x00, "0000" ) | |
| 854 | PORT_DIPSETTING( 0x04, "0001" ) | |
| 855 | PORT_DIPSETTING( 0x08, "0010" ) | |
| 856 | PORT_DIPSETTING( 0x0c, "0011" ) | |
| 857 | PORT_DIPSETTING( 0x10, "0100" ) | |
| 858 | PORT_DIPSETTING( 0x14, "0101" ) | |
| 859 | PORT_DIPSETTING( 0x18, "0110" ) | |
| 860 | PORT_DIPSETTING( 0x1c, "0111" ) | |
| 861 | PORT_DIPSETTING( 0x20, "1000" ) | |
| 862 | PORT_DIPSETTING( 0x24, "1001" ) | |
| 863 | PORT_DIPSETTING( 0x28, "1010" ) | |
| 864 | PORT_DIPSETTING( 0x2c, "1011" ) | |
| 865 | PORT_DIPSETTING( 0x30, "1100" ) | |
| 866 | PORT_DIPSETTING( 0x34, "1101" ) | |
| 867 | PORT_DIPSETTING( 0x38, "1110" ) | |
| 868 | PORT_DIPSETTING( 0x3c, "1111" ) | |
| 525 | 869 | PORT_DIPNAME( 0x40, 0x00, "Rematches" ) PORT_DIPLOCATION("SW2:!7") |
| 526 | 870 | PORT_DIPSETTING( 0x40, "3" ) |
| 527 | 871 | PORT_DIPSETTING( 0x00, "7" ) |
| 528 | 872 | |
| 529 | 873 | PORT_MODIFY("DSW1") |
| 530 | PORT_DIPNAME( 0x0f, 0x00, "Coinage 1" ) PORT_DIPLOCATION("SW1:!1,!2,!3,!4") //A,B,C,D | |
| 531 | PORT_DIPSETTING( 0x00, "0" ) | |
| 532 | PORT_DIPSETTING( 0x01, "1" ) | |
| 533 | PORT_DIPSETTING( 0x02, "2" ) | |
| 534 | PORT_DIPSETTING( 0x03, "3" ) | |
| 535 | PORT_DIPSETTING( 0x04, "4" ) | |
| 536 | PORT_DIPSETTING( 0x05, "5" ) | |
| 537 | PORT_DIPSETTING( 0x06, "6" ) | |
| 538 | PORT_DIPSETTING( 0x07, "7" ) | |
| 539 | PORT_DIPSETTING( 0x08, "8" ) | |
| 540 | PORT_DIPSETTING( 0x09, "9" ) | |
| 541 | PORT_DIPSETTING( 0x0a, "a" ) | |
| 542 | PORT_DIPSETTING( 0x0b, "b" ) | |
| 543 | PORT_DIPSETTING( 0x0c, "c" ) | |
| 544 | PORT_DIPSETTING( 0x0d, "d" ) | |
| 545 | PORT_DIPSETTING( 0x0e, "e" ) | |
| 546 | PORT_DIPSETTING( 0x0f, "f" ) | |
| 874 | PORT_DIPNAME( 0x0f, 0x00, "Coinage 1" ) PORT_DIPLOCATION("SW1:!1,!2,!3,!4") // A,B,C,D | |
| 875 | PORT_DIPSETTING( 0x00, "0000" ) | |
| 876 | PORT_DIPSETTING( 0x01, "0001" ) | |
| 877 | PORT_DIPSETTING( 0x02, "0010" ) | |
| 878 | PORT_DIPSETTING( 0x03, "0011" ) | |
| 879 | PORT_DIPSETTING( 0x04, "0100" ) | |
| 880 | PORT_DIPSETTING( 0x05, "0101" ) | |
| 881 | PORT_DIPSETTING( 0x06, "0110" ) | |
| 882 | PORT_DIPSETTING( 0x07, "0111" ) | |
| 883 | PORT_DIPSETTING( 0x08, "1000" ) | |
| 884 | PORT_DIPSETTING( 0x09, "1001" ) | |
| 885 | PORT_DIPSETTING( 0x0a, "1010" ) | |
| 886 | PORT_DIPSETTING( 0x0b, "1011" ) | |
| 887 | PORT_DIPSETTING( 0x0c, "1100" ) | |
| 888 | PORT_DIPSETTING( 0x0d, "1101" ) | |
| 889 | PORT_DIPSETTING( 0x0e, "1110" ) | |
| 890 | PORT_DIPSETTING( 0x0f, "1111" ) | |
| 547 | 891 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(punchout_vlm5030_busy_r, NULL) /* VLM5030 busy signal */ |
| 548 | 892 | PORT_DIPNAME( 0x40, 0x00, "Coin Slots" ) PORT_DIPLOCATION("R18:!1") /* R18 resistor */ |
| 549 | 893 | PORT_DIPSETTING( 0x40, "1" ) |
| r8581 | r8582 | |
|---|---|---|
| 53 | 53 | static WRITE8_HANDLER( mcu_portA_w ) |
| 54 | 54 | { |
| 55 | 55 | portA_out = data; |
| 56 | speaker_level_w( | |
| 56 | speaker_level_w( | |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /* Port B: |
| r8581 | r8582 | |
| 154 | 154 | if ( (tcr & 0x40) == 0 ) |
| 155 | 155 | { |
| 156 | 156 | //timer interrupt! |
| 157 | generic_pulse_irq_line( | |
| 157 | generic_pulse_irq_line( | |
| 158 | 158 | } |
| 159 | 159 | } |
| 160 | 160 | } |
| r8581 | r8582 | |
|---|---|---|
| 175 | 175 | { |
| 176 | 176 | kopunch_state *state = (kopunch_state *)machine->driver_data; |
| 177 | 177 | |
| 178 | state->maincpu = | |
| 178 | state->maincpu = m | |
| 179 | 179 | |
| 180 | 180 | state_save_register_global(machine, state->gfxbank); |
| 181 | 181 | } |
| r8581 | r8582 | |
|---|---|---|
| 195 | 195 | { |
| 196 | 196 | segas1x_state *state = (segas1x_state *)machine->driver_data; |
| 197 | 197 | |
| 198 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 199 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 200 | state->subx = devtag_get_device(machine, "subx"); | |
| 201 | state->suby = devtag_get_device(machine, "suby"); | |
| 198 | state->maincpu = machine->device("maincpu"); | |
| 199 | state->soundcpu = machine->device("soundcpu"); | |
| 200 | state->subx = machine->device("subx"); | |
| 201 | state->suby = machine->device("suby"); | |
| 202 | 202 | |
| 203 | 203 | state_save_register_global(machine, state->vblank_irq_state); |
| 204 | 204 | state_save_register_global(machine, state->timer_irq_state); |
| r8581 | r8582 | |
|---|---|---|
| 257 | 257 | |
| 258 | 258 | static TIMER_CALLBACK( disable_interrupts ) |
| 259 | 259 | { |
| 260 | cpu_interrupt_enable( | |
| 260 | cpu_interrupt_enable(m | |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | 263 |
| r8581 | r8582 | |
|---|---|---|
| 121 | 121 | mystery yet */ |
| 122 | 122 | |
| 123 | 123 | /* INT 1 is on 32V */ |
| 124 | atarigen_scanline_int_gen( | |
| 124 | atarigen_scanline_int_gen( | |
| 125 | 125 | |
| 126 | 126 | /* advance to the next interrupt */ |
| 127 | 127 | scanline += 64; |
| r8581 | r8582 | |
|---|---|---|
| 243 | 243 | memory_configure_bank(machine, "bank1", 0, 20, &ROM[0x10000], 0x2000); |
| 244 | 244 | memory_set_bank(machine, "bank1", 0); |
| 245 | 245 | |
| 246 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 247 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 248 | state->k007232 = devtag_get_device(machine, "k007232"); | |
| 249 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 250 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 246 | state->maincpu = machine->device("maincpu"); | |
| 247 | state->audiocpu = machine->device("audiocpu"); | |
| 248 | state->k007232 = machine->device("k007232"); | |
| 249 | state->k052109 = machine->device("k052109"); | |
| 250 | state->k051960 = machine->device("k051960"); | |
| 251 | 251 | |
| 252 | 252 | state_save_register_global(machine, state->palette_selected); |
| 253 | 253 | } |
| r8581 | r8582 | |
| 256 | 256 | { |
| 257 | 257 | aliens_state *state = (aliens_state *)machine->driver_data; |
| 258 | 258 | |
| 259 | konami_configure_set_lines( | |
| 259 | konami_configure_set_lines(m | |
| 260 | 260 | |
| 261 | 261 | state->palette_selected = 0; |
| 262 | 262 | } |
| r8581 | r8582 | |
|---|---|---|
| 317 | 317 | { |
| 318 | 318 | _88games_state *state = (_88games_state *)machine->driver_data; |
| 319 | 319 | |
| 320 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 321 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 322 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 323 | state->k051316 = devtag_get_device(machine, "k051316"); | |
| 324 | state->upd_1 = devtag_get_device(machine, "upd1"); | |
| 325 | state->upd_2 = devtag_get_device(machine, "upd2"); | |
| 320 | state->audiocpu = machine->device("audiocpu"); | |
| 321 | state->k052109 = machine->device("k052109"); | |
| 322 | state->k051960 = machine->device("k051960"); | |
| 323 | state->k051316 = machine->device("k051316"); | |
| 324 | state->upd_1 = machine->device("upd1"); | |
| 325 | state->upd_2 = machine->device("upd2"); | |
| 326 | 326 | |
| 327 | 327 | state_save_register_global(machine, state->videobank); |
| 328 | 328 | state_save_register_global(machine, state->zoomreadroms); |
| r8581 | r8582 | |
| 337 | 337 | { |
| 338 | 338 | _88games_state *state = (_88games_state *)machine->driver_data; |
| 339 | 339 | |
| 340 | konami_configure_set_lines( | |
| 340 | konami_configure_set_lines(m | |
| 341 | 341 | machine->generic.paletteram.u8 = &memory_region(machine, "maincpu")[0x20000]; |
| 342 | 342 | |
| 343 | 343 | state->videobank = 0; |
| r8581 | r8582 | |
|---|---|---|
| 7576 | 7576 | { |
| 7577 | 7577 | dynax_state *state = (dynax_state *)machine->driver_data; |
| 7578 | 7578 | |
| 7579 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 7580 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 7579 | state->maincpu = machine->device("maincpu"); | |
| 7580 | state->soundcpu = machine->device("soundcpu"); | |
| 7581 | 7581 | state->oki = machine->device<okim6295_device>("oki"); |
| 7582 | 7582 | |
| 7583 | 7583 | state_save_register_global(machine, state->input_sel); |
| r8581 | r8582 | |
|---|---|---|
| 526 | 526 | { |
| 527 | 527 | ddragon_state *state = (ddragon_state *)machine->driver_data; |
| 528 | 528 | |
| 529 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 530 | state->sub_cpu = devtag_get_device(machine, "sub"); | |
| 531 | state->snd_cpu = devtag_get_device(machine, "audiocpu"); | |
| 529 | state->maincpu = machine->device("maincpu"); | |
| 530 | state->sub_cpu = machine->device("sub"); | |
| 531 | state->snd_cpu = machine->device("audiocpu"); | |
| 532 | 532 | |
| 533 | 533 | /* configure banks */ |
| 534 | 534 | memory_configure_bank(machine, "bank1", 0, 8, memory_region(machine, "maincpu") + 0x10000, 0x4000); |
| r8581 | r8582 | |
|---|---|---|
| 1770 | 1770 | { |
| 1771 | 1771 | // FIXME: the device line cannot be directly put in the interface due to inverse value! |
| 1772 | 1772 | // we might want to define a "reversed" set_cs_line handler |
| 1773 | running_device *eeprom = dev | |
| 1773 | running_device *eeprom = dev | |
| 1774 | 1774 | // reset line asserted: reset. |
| 1775 | 1775 | eeprom_set_cs_line(eeprom, (data & 0x01) ? CLEAR_LINE : ASSERT_LINE ); |
| 1776 | 1776 | } |
| r8581 | r8582 | |
|---|---|---|
| 44 | 44 | *Uchuu Daisakusen : Chocovader Contactee (CVC1 Ver.A) (C) Namco, 2002 |
| 45 | 45 | |
| 46 | 46 | * - denotes not dumped yet. If you can help with the remaining undumped S10 games, |
| 47 | please contact me at http:// | |
| 47 | please contact me at http://guru.mameworld.info | |
| 48 | 48 | |
| 49 | 49 | The Namco System 10 system comprises 2 PCB's.... |
| 50 | 50 | MAIN PCB - This is the mother board PCB. It holds the main CPU/GPU & SPU and all sound circuitry, program & video RAM, |
| r8581 | r8582 | |
|---|---|---|
| 148 | 148 | |
| 149 | 149 | /* sound IRQ is on 32V */ |
| 150 | 150 | if (scanline & 32) |
| 151 | atarigen_6502_irq_gen( | |
| 151 | atarigen_6502_irq_gen( | |
| 152 | 152 | else |
| 153 | 153 | atarigen_6502_irq_ack_r(space, 0); |
| 154 | 154 | } |
| r8581 | r8582 | |
| 173 | 173 | atarigen_slapstic_reset(&state->atarigen); |
| 174 | 174 | atarigen_interrupt_reset(&state->atarigen, update_interrupts); |
| 175 | 175 | atarigen_scanline_timer_reset(*machine->primary_screen, scanline_update, 32); |
| 176 | atarigen_sound_io_reset( | |
| 176 | atarigen_sound_io_reset(m | |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | |
| r8581 | r8582 | |
| 217 | 217 | { |
| 218 | 218 | devtag_reset(space->machine, "ymsnd"); |
| 219 | 219 | devtag_reset(space->machine, "tms"); |
| 220 | tms5220_set_frequency( | |
| 220 | tms5220_set_frequency( | |
| 221 | 221 | atarigen_set_ym2151_vol(space->machine, 0); |
| 222 | 222 | atarigen_set_pokey_vol(space->machine, 0); |
| 223 | 223 | atarigen_set_tms5220_vol(space->machine, 0); |
| r8581 | r8582 | |
| 241 | 241 | |
| 242 | 242 | if (state->atarigen.cpu_to_sound_ready) temp ^= 0x80; |
| 243 | 243 | if (state->atarigen.sound_to_cpu_ready) temp ^= 0x40; |
| 244 | if (!tms5220_readyq_r( | |
| 244 | if (!tms5220_readyq_r( | |
| 245 | 245 | if (!(input_port_read(space->machine, "803008") & 0x0008)) temp ^= 0x10; |
| 246 | 246 | |
| 247 | 247 | return temp; |
| r8581 | r8582 | |
| 256 | 256 | |
| 257 | 257 | static WRITE8_HANDLER( sound_ctl_w ) |
| 258 | 258 | { |
| 259 | running_device *tms = | |
| 259 | running_device *tms = | |
| 260 | 260 | switch (offset & 7) |
| 261 | 261 | { |
| 262 | 262 | case 0: /* music reset, bit D7, low reset */ |
| r8581 | r8582 | |
| 1627 | 1627 | gauntlet_state *state = (gauntlet_state *)machine->driver_data; |
| 1628 | 1628 | UINT8 *rom = memory_region(machine, "maincpu"); |
| 1629 | 1629 | state->atarigen.eeprom_default = NULL; |
| 1630 | atarigen_slapstic_init( | |
| 1630 | atarigen_slapstic_init(m | |
| 1631 | 1631 | |
| 1632 | 1632 | /* swap the top and bottom halves of the main CPU ROM images */ |
| 1633 | 1633 | atarigen_swap_mem(rom + 0x000000, rom + 0x008000, 0x8000); |
| r8581 | r8582 | |
|---|---|---|
| 1220 | 1220 | { |
| 1221 | 1221 | irqreq = 0; |
| 1222 | 1222 | cputag_set_input_line(machine, "maincpu", 0, CLEAR_LINE); |
| 1223 | cpu_set_irq_callback( | |
| 1223 | cpu_set_irq_callback(m | |
| 1224 | 1224 | } |
| 1225 | 1225 | |
| 1226 | 1226 | static void irq_raise(running_machine *machine, int level) |
| r8581 | r8582 | |
|---|---|---|
| 57 | 57 | 28-04-2006: El Condor |
| 58 | 58 | 20-05-2004: Re-Animator |
| 59 | 59 | |
| 60 | See http:// | |
| 60 | See http://agemame.mameworld.info | |
| 61 | 61 | |
| 62 | 62 | --- Board Setup --- |
| 63 | 63 | |
| r8581 | r8582 | |
| 453 | 453 | /* 6809 IRQ handler */ |
| 454 | 454 | static WRITE_LINE_DEVICE_HANDLER( cpu0_irq ) |
| 455 | 455 | { |
| 456 | running_device *pia3 = devtag_get_device(device->machine, "pia_ic3"); | |
| 457 | running_device *pia4 = devtag_get_device(device->machine, "pia_ic4"); | |
| 458 | running_device *pia5 = devtag_get_device(device->machine, "pia_ic5"); | |
| 459 | running_device *pia6 = devtag_get_device(device->machine, "pia_ic6"); | |
| 460 | running_device *pia7 = devtag_get_device(device->machine, "pia_ic7"); | |
| 461 | running_device *pia8 = devtag_get_device(device->machine, "pia_ic8"); | |
| 462 | running_device *ptm6840 = devtag_get_device(device->machine, "6840ptm"); | |
| 456 | running_device *pia3 = device->machine->device("pia_ic3"); | |
| 457 | running_device *pia4 = device->machine->device("pia_ic4"); | |
| 458 | running_device *pia5 = device->machine->device("pia_ic5"); | |
| 459 | running_device *pia6 = device->machine->device("pia_ic6"); | |
| 460 | running_device *pia7 = device->machine->device("pia_ic7"); | |
| 461 | running_device *pia8 = device->machine->device("pia_ic8"); | |
| 462 | running_device *ptm6840 = device->machine->device("6840ptm"); | |
| 463 | 463 | |
| 464 | 464 | /* The PIA and PTM IRQ lines are all connected to a common PCB track, leading directly to the 6809 IRQ line. */ |
| 465 | 465 | int combined_state = pia6821_get_irq_a(pia3) | pia6821_get_irq_b(pia3) | |
| r8581 | r8582 | |
| 484 | 484 | |
| 485 | 485 | static WRITE_LINE_DEVICE_HANDLER( cpu0_irq_m6840 ) |
| 486 | 486 | { |
| 487 | cpu0_irq(dev | |
| 487 | cpu0_irq(dev | |
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | |
| r8581 | r8582 | |
| 513 | 513 | |
| 514 | 514 | static WRITE8_DEVICE_HANDLER( ic2_o2_callback ) |
| 515 | 515 | { |
| 516 | running_device *pia = devtag_get_device(device->machine, "pia_ic3"); | |
| 517 | pia6821_ca1_w(pia, 0, data); /* copy output value to IC3 ca1 */ | |
| 516 | running_device *pia = device->machine->device("pia_ic3"); | |
| 517 | pia6821_ca1_w(pia, data); /* copy output value to IC3 ca1 */ | |
| 518 | 518 | |
| 519 | 519 | /* the output from timer2 is the input clock for timer3 */ |
| 520 | 520 | ptm6840_set_c3(device, 0, data); |
| r8581 | r8582 | |
| 686 | 686 | if ( serial_data ) |
| 687 | 687 | { |
| 688 | 688 | ic4_input_b |= 0x80; |
| 689 | pia6821_cb1_w(device, | |
| 689 | pia6821_cb1_w(device, | |
| 690 | 690 | } |
| 691 | 691 | else |
| 692 | 692 | { |
| 693 | 693 | ic4_input_b &= ~0x80; |
| 694 | pia6821_cb1_w(device, 0 | |
| 694 | pia6821_cb1_w(device, 0 | |
| 695 | 695 | } |
| 696 | 696 | |
| 697 | 697 | if ( optic_pattern & 0x01 ) ic4_input_b |= 0x40; /* reel A tab */ |
| r8581 | r8582 | |
| 755 | 755 | |
| 756 | 756 | static READ8_DEVICE_HANDLER( pia_ic5_portb_r ) |
| 757 | 757 | { |
| 758 | running_device *pia_ic5 = dev | |
| 758 | running_device *pia_ic5 = dev | |
| 759 | 759 | LOG(("%s: IC5 PIA Read of Port B (coin input AUX2)\n",cpuexec_describe_context(device->machine))); |
| 760 | 760 | coin_lockout_w(device->machine, 0, (pia6821_get_output_b(pia_ic5) & 0x01) ); |
| 761 | 761 | coin_lockout_w(device->machine, 1, (pia6821_get_output_b(pia_ic5) & 0x02) ); |
| r8581 | r8582 | |
| 808 | 808 | } |
| 809 | 809 | case 0x01: |
| 810 | 810 | { /* CA2 = 1 CB2 = 0? : Read from selected PSG register and make the register data available to Port A */ |
| 811 | running_device *pia_ic6 = dev | |
| 811 | running_device *pia_ic6 = dev | |
| 812 | 812 | LOG(("AY8913 address = %d \n",pia6821_get_output_a(pia_ic6)&0x0f)); |
| 813 | 813 | break; |
| 814 | 814 | } |
| 815 | 815 | case 0x02: |
| 816 | 816 | {/* CA2 = 0 CB2 = 1? : Write to selected PSG register and write data to Port A */ |
| 817 | running_device *pia_ic6 = devtag_get_device(device->machine, "pia_ic6"); | |
| 818 | running_device *ay = devtag_get_device(device->machine, "ay8913"); | |
| 817 | running_device *pia_ic6 = device->machine->device("pia_ic6"); | |
| 818 | running_device *ay = device->machine->device("ay8913"); | |
| 819 | 819 | ay8910_data_w(ay, 0, pia6821_get_output_a(pia_ic6)); |
| 820 | 820 | LOG(("AY Chip Write \n")); |
| 821 | 821 | break; |
| r8581 | r8582 | |
| 823 | 823 | case 0x03: |
| 824 | 824 | {/* CA2 = 1 CB2 = 1? : The register will now be selected and the user can read from or write to it. |
| 825 | 825 | The register will remain selected until another is chosen.*/ |
| 826 | running_device *pia_ic6 = devtag_get_device(device->machine, "pia_ic6"); | |
| 827 | running_device *ay = devtag_get_device(device->machine, "ay8913"); | |
| 826 | running_device *pia_ic6 = device->machine->device("pia_ic6"); | |
| 827 | running_device *ay = device->machine->device("ay8913"); | |
| 828 | 828 | ay8910_address_w(ay, 0, pia6821_get_output_a(pia_ic6)); |
| 829 | 829 | LOG(("AY Chip Select \n")); |
| 830 | 830 | break; |
| r8581 | r8582 | |
| 1027 | 1027 | static READ8_DEVICE_HANDLER( pia_ic8_porta_r ) |
| 1028 | 1028 | { |
| 1029 | 1029 | static const char *const portnames[] = { "ORANGE1", "ORANGE2", "BLACK1", "BLACK2", "ORANGE1", "ORANGE2", "DIL1", "DIL2" }; |
| 1030 | running_device *pia_ic5 = dev | |
| 1030 | running_device *pia_ic5 = dev | |
| 1031 | 1031 | |
| 1032 | 1032 | LOG_IC8(("%s: IC8 PIA Read of Port A (MUX input data)\n", cpuexec_describe_context(device->machine))); |
| 1033 | 1033 | /* The orange inputs are polled twice as often as the black ones, for reasons of efficiency. |
| 1034 | 1034 | This is achieved via connecting every input line to an AND gate, thus allowing two strobes |
| 1035 | 1035 | to represent each orange input bank (strobes are active low). */ |
| 1036 | pia6821_cb1_w(pia_ic5, | |
| 1036 | pia6821_cb1_w(pia_ic5, | |
| 1037 | 1037 | return input_port_read(device->machine, portnames[input_strobe]); |
| 1038 | 1038 | } |
| 1039 | 1039 | |
| r8581 | r8582 | |
| 1088 | 1088 | |
| 1089 | 1089 | static WRITE8_DEVICE_HANDLER( pia_gb_porta_w ) |
| 1090 | 1090 | { |
| 1091 | running_device *msm6376 = dev | |
| 1091 | running_device *msm6376 = dev | |
| 1092 | 1092 | |
| 1093 | 1093 | LOG(("%s: GAMEBOARD: PIA Port A Set to %2x\n", cpuexec_describe_context(device->machine),data)); |
| 1094 | 1094 | okim6376_w(msm6376, 0, data); |
| r8581 | r8582 | |
| 1745 | 1745 | oscillating signal.*/ |
| 1746 | 1746 | signal_50hz = signal_50hz?0:1; |
| 1747 | 1747 | update_lamps(); |
| 1748 | pia6821_ca1_w( | |
| 1748 | pia6821_ca1_w( | |
| 1749 | 1749 | } |
| 1750 | 1750 | |
| 1751 | 1751 |
| r8581 | r8582 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | 3 | Deniam games |
| 4 | ||
| 5 | 4 | driver by Nicola Salmoria |
| 6 | 5 | |
| 6 | Check archive.org for http://deniam.co.kr | |
| 7 | 7 | |
| 8 | http://deniam.co.kr/text/c_game01.htm | |
| 9 | ||
| 10 | 8 | Title System Date |
| 11 | 9 | ---------------- ---------- ---------- |
| 12 | 10 | GO!GO! deniam-16b 1995/10/11 |
| r8581 | r8582 | |
| 243 | 241 | { |
| 244 | 242 | deniam_state *state = (deniam_state *)machine->driver_data; |
| 245 | 243 | |
| 246 | state->audio_cpu = | |
| 244 | state->audio_cpu = m | |
| 247 | 245 | |
| 248 | 246 | state_save_register_global(machine, state->display_enable); |
| 249 | 247 | state_save_register_global(machine, state->coinctrl); |
| r8581 | r8582 | |
|---|---|---|
| 411 | 411 | ROM_LOAD( "rom2.u84", 0x00000, 0x08000, CRC(e77c43b7) SHA1(8b04005bc448083a429ace3319fc7e168a61f2f9) ) |
| 412 | 412 | |
| 413 | 413 | ROM_REGION( 0x1000, "mcu", 0 ) |
| 414 | ROM_LOAD( "68705r3.u74", 0x00000, 0x01000, CRC( | |
| 414 | ROM_LOAD( "68705r3.u74", 0x00000, 0x01000, CRC(9b | |
| 415 | 415 | |
| 416 | 416 | ROM_REGION( 0x18000, "gfx2",0 ) |
| 417 | 417 | ROM_LOAD( "rom3.u32", 0x00000, 0x08000, CRC(d065ca46) SHA1(9fd8bb66735195d1cd20420096438abb5cb3fd54) ) |
| r8581 | r8582 | |
|---|---|---|
| 2194 | 2194 | { |
| 2195 | 2195 | taitob_state *state = (taitob_state *)machine->driver_data; |
| 2196 | 2196 | |
| 2197 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 2198 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 2199 | state->mb87078 = devtag_get_device(machine, "mb87078"); | |
| 2200 | state->ym = devtag_get_device(machine, "ymsnd"); | |
| 2201 | state->tc0180vcu = devtag_get_device(machine, "tc0180vcu"); | |
| 2202 | state->tc0640fio = devtag_get_device(machine, "tc0640fio"); | |
| 2203 | state->tc0220ioc = devtag_get_device(machine, "tc0220ioc"); | |
| 2197 | state->maincpu = machine->device("maincpu"); | |
| 2198 | state->audiocpu = machine->device("audiocpu"); | |
| 2199 | state->mb87078 = machine->device("mb87078"); | |
| 2200 | state->ym = machine->device("ymsnd"); | |
| 2201 | state->tc0180vcu = machine->device("tc0180vcu"); | |
| 2202 | state->tc0640fio = machine->device("tc0640fio"); | |
| 2203 | state->tc0220ioc = machine->device("tc0220ioc"); | |
| 2204 | 2204 | |
| 2205 | 2205 | state_save_register_global(machine, state->eep_latch); |
| 2206 | 2206 | state_save_register_global(machine, state->coin_word); |
| r8581 | r8582 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | 50pin cable to 7seg&lamp control board. |
| 24 | 24 | |
| 25 | flyer.gif from | |
| 26 | http://www.hoizinger.com/ed/EM.HTML | |
| 25 | Information: | |
| 26 | http://www.wshin.com/games/review/ka/kung-fu-roushi.htm | |
| 27 | http://www.youtube.com/watch?v=ssEfw-RbSjs | |
| 28 | ||
| 29 | ||
| 27 | 30 | ---------------------------------------------------------------- |
| 28 | 31 | |
| 29 | 32 | ***************************************************************************/ |
| r8581 | r8582 | |
| 160 | 163 | { |
| 161 | 164 | adpcm_pos[0] = 0x40000+(data & 0xff) * 0x100; |
| 162 | 165 | adpcm_idle[0] = 0; |
| 163 | msm5205_reset_w(dev | |
| 166 | msm5205_reset_w(dev | |
| 164 | 167 | } |
| 165 | 168 | |
| 166 | 169 | static WRITE8_DEVICE_HANDLER( kungfur_adpcm2_w ) |
| 167 | 170 | { |
| 168 | 171 | adpcm_pos[1] = (data & 0xff) * 0x400; |
| 169 | 172 | adpcm_idle[1] = 0; |
| 170 | msm5205_reset_w(dev | |
| 173 | msm5205_reset_w(dev | |
| 171 | 174 | } |
| 172 | 175 | |
| 173 | 176 | /* |
| r8581 | r8582 | |
| 262 | 265 | |
| 263 | 266 | if (adpcm_pos[0] >= 0x40000 || adpcm_idle[0]) |
| 264 | 267 | { |
| 265 | msm5205_reset_w(dev | |
| 268 | msm5205_reset_w(dev | |
| 266 | 269 | trigger = 0; |
| 267 | 270 | } |
| 268 | 271 | else |
| r8581 | r8582 | |
| 270 | 273 | UINT8 *ROM = memory_region(device->machine, "adpcm1"); |
| 271 | 274 | |
| 272 | 275 | adpcm_data = ((trigger ? (ROM[adpcm_pos[0]] & 0x0f) : (ROM[adpcm_pos[0]] & 0xf0)>>4) ); |
| 273 | msm5205_data_w(dev | |
| 276 | msm5205_data_w(dev | |
| 274 | 277 | trigger^=1; |
| 275 | 278 | if(trigger == 0) |
| 276 | 279 | { |
| r8581 | r8582 | |
| 288 | 291 | |
| 289 | 292 | if (adpcm_pos[1] >= 0x10000 || adpcm_idle[1]) |
| 290 | 293 | { |
| 291 | msm5205_reset_w(dev | |
| 294 | msm5205_reset_w(dev | |
| 292 | 295 | trigger = 0; |
| 293 | 296 | } |
| 294 | 297 | else |
| r8581 | r8582 | |
| 296 | 299 | UINT8 *ROM = memory_region(device->machine, "adpcm2"); |
| 297 | 300 | |
| 298 | 301 | adpcm_data = ((trigger ? (ROM[adpcm_pos[1]] & 0x0f) : (ROM[adpcm_pos[1]] & 0xf0)>>4) ); |
| 299 | msm5205_data_w(dev | |
| 302 | msm5205_data_w(dev | |
| 300 | 303 | trigger^=1; |
| 301 | 304 | if(trigger == 0) |
| 302 | 305 | { |
| r8581 | r8582 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | static VIDEO_UPDATE(viper) |
| 51 | 51 | { |
| 52 | running_device *device = | |
| 52 | running_device *device = | |
| 53 | 53 | return voodoo_update(device, bitmap, cliprect) ? 0 : UPDATE_HAS_NOT_CHANGED; |
| 54 | 54 | } |
| 55 | 55 | |
| r8581 | r8582 | |
| 462 | 462 | } |
| 463 | 463 | |
| 464 | 464 | default: |
| 465 | fatalerror("voodoo3_pci_r: %08X at %08X", reg, cpu_get_pc(dev | |
| 465 | fatalerror("voodoo3_pci_r: %08X at %08X", reg, cpu_get_pc(dev | |
| 466 | 466 | } |
| 467 | 467 | return 0; |
| 468 | 468 | } |
| r8581 | r8582 | |
| 530 | 530 | } |
| 531 | 531 | |
| 532 | 532 | default: |
| 533 | fatalerror("voodoo3_pci_w: %08X, %08X at %08X", data, reg, cpu_get_pc(dev | |
| 533 | fatalerror("voodoo3_pci_w: %08X, %08X at %08X", data, reg, cpu_get_pc(dev | |
| 534 | 534 | } |
| 535 | 535 | } |
| 536 | 536 | |
| r8581 | r8582 | |
| 658 | 658 | |
| 659 | 659 | static DRIVER_INIT(vipercf) |
| 660 | 660 | { |
| 661 | running_device *ide = | |
| 661 | running_device *ide = m | |
| 662 | 662 | |
| 663 | 663 | DRIVER_INIT_CALL(viper); |
| 664 | 664 |
| r8581 | r8582 | |
|---|---|---|
| 342 | 342 | memory_configure_bank(machine, "bank1", 1, 1, &ROM[0x14000], 0x8000); |
| 343 | 343 | memory_set_bank(machine, "bank1", 0); |
| 344 | 344 | |
| 345 | state->mastercpu = devtag_get_device(machine, "master"); | |
| 346 | state->slavecpu = devtag_get_device(machine, "slave"); | |
| 345 | state->mastercpu = machine->device("master"); | |
| 346 | state->slavecpu = machine->device("slave"); | |
| 347 | 347 | |
| 348 | 348 | state_save_register_global(machine, state->irq_enable); |
| 349 | 349 | } |
| r8581 | r8582 | |
| 355 | 355 | |
| 356 | 356 | // HACK: running at the nominal clock rate, music stops working |
| 357 | 357 | // at the beginning of the game. This fixes it. |
| 358 | c | |
| 358 | machin | |
| 359 | 359 | |
| 360 | 360 | state->rambank = rgn; |
| 361 | 361 | state->spritebank = rgn; |
| r8581 | r8582 | |
|---|---|---|
| 630 | 630 | mw8080bw_state *state = (mw8080bw_state *)space->machine->driver_data; |
| 631 | 631 | |
| 632 | 632 | if (offset & 0x01) |
| 633 | tornbase_audio_w( | |
| 633 | tornbase_audio_w( | |
| 634 | 634 | |
| 635 | 635 | if (offset & 0x02) |
| 636 | 636 | mb14241_shift_count_w(state->mb14241, 0, data); |
| r8581 | r8582 | |
| 883 | 883 | static STATE_POSTLOAD( maze_update_discrete ) |
| 884 | 884 | { |
| 885 | 885 | mw8080bw_state *state = (mw8080bw_state *)machine->driver_data; |
| 886 | maze_write_discrete( | |
| 886 | maze_write_discrete(m | |
| 887 | 887 | } |
| 888 | 888 | |
| 889 | 889 |
| r8581 | r8582 | |
|---|---|---|
| 327 | 327 | case 1: |
| 328 | 328 | case 2: |
| 329 | 329 | case 3: |
| 330 | namco_63701x_w( | |
| 330 | namco_63701x_w( | |
| 331 | 331 | break; |
| 332 | 332 | |
| 333 | 333 | case 4: |
| r8581 | r8582 | |
|---|---|---|
| 1022 | 1022 | static WRITE8_HANDLER( brickzn_pcm_w ) |
| 1023 | 1023 | { |
| 1024 | 1024 | static const char *const dacs[] = { "dac1", "dac2", "dac3", "dac4" }; |
| 1025 | dac_signed_data_w( | |
| 1025 | dac_signed_data_w( | |
| 1026 | 1026 | } |
| 1027 | 1027 | |
| 1028 | 1028 |
| r8581 | r8582 | |
|---|---|---|
| 234 | 234 | { |
| 235 | 235 | vaportra_state *state = (vaportra_state *)machine->driver_data; |
| 236 | 236 | |
| 237 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 238 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 239 | state->deco16ic = devtag_get_device(machine, "deco_custom"); | |
| 237 | state->maincpu = machine->device("maincpu"); | |
| 238 | state->audiocpu = machine->device("audiocpu"); | |
| 239 | state->deco16ic = machine->device("deco_custom"); | |
| 240 | 240 | |
| 241 | 241 | state_save_register_global_array(machine, state->priority); |
| 242 | 242 | } |
| r8581 | r8582 | |
|---|---|---|
| 369 | 369 | { |
| 370 | 370 | chanbara_state *state = (chanbara_state *)machine->driver_data; |
| 371 | 371 | |
| 372 | state->maincpu = | |
| 372 | state->maincpu = m | |
| 373 | 373 | |
| 374 | 374 | state_save_register_global(machine, state->scroll); |
| 375 | 375 | state_save_register_global(machine, state->scrollhi); |
| r8581 | r8582 | |
|---|---|---|
| 1360 | 1360 | */ |
| 1361 | 1361 | #define BTIME_R49 RES_K(47) /* pcb: 47.4k */ |
| 1362 | 1362 | |
| 1363 | /* The input divider R51 R50 is not independ | |
| 1363 | /* The input divider R51 R50 is not independent of R52, which | |
| 1364 | 1364 | * also depends on ay internal resistance. |
| 1365 | 1365 | * FIXME: Develop proper model when I am retired. |
| 1366 | 1366 | * |
| r8581 | r8582 | |
| 1407 | 1407 | |
| 1408 | 1408 | /* Amplifier is upc1181H3 |
| 1409 | 1409 | * |
| 1410 | * http://www. | |
| 1410 | * http://www.i | |
| 1411 | 1411 | * |
| 1412 | 1412 | * A linear frequency response is mentioned as well as a lower |
| 1413 | 1413 | * edge frequency determined by cap on pin3, however no formula given. |
| r8581 | r8582 | |
| 1427 | 1427 | { |
| 1428 | 1428 | btime_state *state = (btime_state *)machine->driver_data; |
| 1429 | 1429 | |
| 1430 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1431 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1430 | state->maincpu = machine->device("maincpu"); | |
| 1431 | state->audiocpu = machine->device("audiocpu"); | |
| 1432 | 1432 | |
| 1433 | 1433 | state_save_register_global(machine, state->btime_palette); |
| 1434 | 1434 | state_save_register_global(machine, state->bnj_scroll1); |
| r8581 | r8582 | |
| 1831 | 1831 | ROM_END |
| 1832 | 1832 | |
| 1833 | 1833 | /* There is a flyer with a screen shot for Lock'n'Chase at: |
| 1834 | http://www. | |
| 1834 | http://www. | |
| 1835 | 1835 | |
| 1836 | 1836 | ROM_START( lnc ) |
| 1837 | 1837 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| r8581 | r8582 | |
| 2088 | 2088 | for (addr = 0; addr < 0x10000; addr++) |
| 2089 | 2089 | decrypt[addr] = swap_bits_5_6(rom[addr]); |
| 2090 | 2090 | |
| 2091 | if (space->cpu == | |
| 2091 | if (space->cpu == m | |
| 2092 | 2092 | decrypted = decrypt; |
| 2093 | 2093 | } |
| 2094 | 2094 |
| r8581 | r8582 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | --- Team Japump!!! --- |
| 47 | http://japump.i.am/ | |
| 48 | 47 | Dumped by Chackn |
| 49 | 48 | 01/30/2000 |
| 50 | 49 | |
| r8581 | r8582 | |
| 317 | 316 | { |
| 318 | 317 | m14_state *state = (m14_state *)machine->driver_data; |
| 319 | 318 | |
| 320 | state->maincpu = | |
| 319 | state->maincpu = m | |
| 321 | 320 | |
| 322 | 321 | state_save_register_global(machine, state->hop_mux); |
| 323 | 322 | } |
| r8581 | r8582 | |
|---|---|---|
| 330 | 330 | { |
| 331 | 331 | mermaid_state *state = (mermaid_state *)machine->driver_data; |
| 332 | 332 | |
| 333 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 334 | state->ay1 = devtag_get_device(machine, "ay1"); | |
| 335 | state->ay2 = devtag_get_device(machine, "ay2"); | |
| 333 | state->maincpu = machine->device("maincpu"); | |
| 334 | state->ay1 = machine->device("ay1"); | |
| 335 | state->ay2 = machine->device("ay2"); | |
| 336 | 336 | |
| 337 | 337 | state_save_register_global(machine, state->coll_bit0); |
| 338 | 338 | state_save_register_global(machine, state->coll_bit1); |
| r8581 | r8582 | |
|---|---|---|
| 192 | 192 | |
| 193 | 193 | static WRITE8_HANDLER(photon2_fe_w) |
| 194 | 194 | { |
| 195 | running_device *speaker = | |
| 195 | running_device *speaker = | |
| 196 | 196 | spectrum_port_fe = data; |
| 197 | 197 | |
| 198 | 198 | speaker_level_w(speaker, BIT(data,4)); |
| r8581 | r8582 | |
|---|---|---|
| 127 | 127 | c13_u11.u11 HN624116 - GFX |
| 128 | 128 | c13_u12.u12 HN624116 - GFX |
| 129 | 129 | |
| 130 | Screenshots and board pics are available here... | |
| 131 | http://unemulated.emuunlim.com/shopraid/index.html | |
| 132 | 130 | |
| 133 | 131 | *** ROMSET: vgoalsca |
| 134 | 132 |
| r8581 | r8582 | |
|---|---|---|
| 696 | 696 | |
| 697 | 697 | memory_configure_bank(machine, "bank1", 0, 8, &ROM[0x10000], 0x4000); |
| 698 | 698 | |
| 699 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 700 | state->audiocpu = devtag_get_device(machine, "soundcpu"); | |
| 701 | state->msm_1 = devtag_get_device(machine, "msm1"); | |
| 702 | state->msm_2 = devtag_get_device(machine, "msm2"); | |
| 699 | state->maincpu = machine->device("maincpu"); | |
| 700 | state->audiocpu = machine->device("soundcpu"); | |
| 701 | state->msm_1 = machine->device("msm1"); | |
| 702 | state->msm_2 = machine->device("msm2"); | |
| 703 | 703 | |
| 704 | 704 | state_save_register_global(machine, state->sample_buffer1); |
| 705 | 705 | state_save_register_global(machine, state->sample_buffer2); |
| r8581 | r8582 | |
| 711 | 711 | { |
| 712 | 712 | cps_state *state = (cps_state *)machine->driver_data; |
| 713 | 713 | |
| 714 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 715 | state->audiocpu = devtag_get_device(machine, "soundcpu"); | |
| 714 | state->maincpu = machine->device("maincpu"); | |
| 715 | state->audiocpu = machine->device("soundcpu"); | |
| 716 | 716 | } |
| 717 | 717 | |
| 718 | 718 | static MACHINE_RESET( fcrash ) |
| r8581 | r8582 | |
|---|---|---|
| 383 | 383 | { |
| 384 | 384 | othello_state *state = (othello_state *)machine->driver_data; |
| 385 | 385 | |
| 386 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 387 | state->mc6845 = devtag_get_device(machine, "crtc"); | |
| 388 | state->n7751 = devtag_get_device(machine, "n7751"); | |
| 389 | state->ay1 = devtag_get_device(machine, "ay1"); | |
| 390 | state->ay2 = devtag_get_device(machine, "ay2"); | |
| 386 | state->maincpu = machine->device("maincpu"); | |
| 387 | state->mc6845 = machine->device("crtc"); | |
| 388 | state->n7751 = machine->device("n7751"); | |
| 389 | state->ay1 = machine->device("ay1"); | |
| 390 | state->ay2 = machine->device("ay2"); | |
| 391 | 391 | |
| 392 | 392 | state_save_register_global(machine, state->tile_bank); |
| 393 | 393 | state_save_register_global(machine, state->ay_select); |
| r8581 | r8582 | |
|---|---|---|
| 1024 | 1024 | { |
| 1025 | 1025 | cosmic_state *state = (cosmic_state *)machine->driver_data; |
| 1026 | 1026 | |
| 1027 | state->samples = devtag_get_device(machine, "samples"); | |
| 1028 | state->dac = devtag_get_device(machine, "dac"); | |
| 1027 | state->samples = machine->device("samples"); | |
| 1028 | state->dac = machine->device("dac"); | |
| 1029 | 1029 | |
| 1030 | 1030 | state_save_register_global(machine, state->sound_enabled); |
| 1031 | 1031 | state_save_register_global(machine, state->march_select); |
| r8581 | r8582 | |
| 1618 | 1618 | |
| 1619 | 1619 | static DRIVER_INIT( nomnlnd ) |
| 1620 | 1620 | { |
| 1621 | running_device *dac = | |
| 1621 | running_device *dac = m | |
| 1622 | 1622 | memory_install_read8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x5000, 0x5001, 0, 0, nomnlnd_port_0_1_r); |
| 1623 | 1623 | memory_nop_write(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x4800, 0x4800, 0, 0); |
| 1624 | 1624 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x4807, 0x4807, 0, 0, cosmic_background_enable_w); |
| r8581 | r8582 | |
|---|---|---|
| 230 | 230 | { |
| 231 | 231 | if (copro_fifoout_num == COPRO_FIFOOUT_SIZE) |
| 232 | 232 | { |
| 233 | sharc_set_flag_input( | |
| 233 | sharc_set_flag_input( | |
| 234 | 234 | } |
| 235 | 235 | else |
| 236 | 236 | { |
| 237 | sharc_set_flag_input( | |
| 237 | sharc_set_flag_input( | |
| 238 | 238 | } |
| 239 | 239 | } |
| 240 | 240 | |
| r8581 | r8582 | |
| 497 | 497 | else |
| 498 | 498 | { |
| 499 | 499 | ret &= ~0x0030; |
| 500 | return ret | 0x00d0 | (eeprom_read_bit( | |
| 500 | return ret | 0x00d0 | (eeprom_read_bit( | |
| 501 | 501 | } |
| 502 | 502 | } |
| 503 | 503 | |
| r8581 | r8582 | |
| 673 | 673 | |
| 674 | 674 | //logerror("copro_function_port_w: %08X, %08X, %08X\n", data, offset, mem_mask); |
| 675 | 675 | if (dsp_type == DSP_TYPE_SHARC) |
| 676 | copro_fifoin_push( | |
| 676 | copro_fifoin_push( | |
| 677 | 677 | else |
| 678 | copro_fifoin_push( | |
| 678 | copro_fifoin_push( | |
| 679 | 679 | } |
| 680 | 680 | |
| 681 | 681 | static READ32_HANDLER(copro_fifo_r) |
| r8581 | r8582 | |
| 690 | 690 | { |
| 691 | 691 | if (dsp_type == DSP_TYPE_SHARC) |
| 692 | 692 | { |
| 693 | sharc_external_dma_write( | |
| 693 | sharc_external_dma_write( | |
| 694 | 694 | } |
| 695 | 695 | else if (dsp_type == DSP_TYPE_TGP) |
| 696 | 696 | { |
| r8581 | r8582 | |
| 703 | 703 | { |
| 704 | 704 | //mame_printf_debug("copro_fifo_w: %08X, %08X, %08X at %08X\n", data, offset, mem_mask, cpu_get_pc(space->cpu)); |
| 705 | 705 | if (dsp_type == DSP_TYPE_SHARC) |
| 706 | copro_fifoin_push( | |
| 706 | copro_fifoin_push( | |
| 707 | 707 | else |
| 708 | copro_fifoin_push( | |
| 708 | copro_fifoin_push( | |
| 709 | 709 | } |
| 710 | 710 | } |
| 711 | 711 | |
| r8581 | r8582 | |
| 724 | 724 | (strcmp(space->machine->gamedrv->name, "vonj" ) == 0) || |
| 725 | 725 | (strcmp(space->machine->gamedrv->name, "rchase2" ) == 0)) |
| 726 | 726 | { |
| 727 | sharc_external_iop_write( | |
| 727 | sharc_external_iop_write( | |
| 728 | 728 | } |
| 729 | 729 | else |
| 730 | 730 | { |
| r8581 | r8582 | |
| 735 | 735 | else |
| 736 | 736 | { |
| 737 | 737 | iop_data |= (data & 0xffff) << 16; |
| 738 | sharc_external_iop_write( | |
| 738 | sharc_external_iop_write( | |
| 739 | 739 | } |
| 740 | 740 | iop_write_num++; |
| 741 | 741 | } |
| r8581 | r8582 | |
| 810 | 810 | { |
| 811 | 811 | if (model2_geoctl & 0x80000000) |
| 812 | 812 | { |
| 813 | sharc_external_dma_write( | |
| 813 | sharc_external_dma_write( | |
| 814 | 814 | |
| 815 | 815 | model2_geocnt++; |
| 816 | 816 | } |
| r8581 | r8582 | |
| 826 | 826 | { |
| 827 | 827 | if ((strcmp(space->machine->gamedrv->name, "schamp" ) == 0)) |
| 828 | 828 | { |
| 829 | sharc_external_iop_write( | |
| 829 | sharc_external_iop_write( | |
| 830 | 830 | } |
| 831 | 831 | else |
| 832 | 832 | { |
| r8581 | r8582 | |
| 837 | 837 | else |
| 838 | 838 | { |
| 839 | 839 | geo_iop_data |= (data & 0xffff) << 16; |
| 840 | sharc_external_iop_write( | |
| 840 | sharc_external_iop_write( | |
| 841 | 841 | } |
| 842 | 842 | geo_iop_write_num++; |
| 843 | 843 | } |
| r8581 | r8582 | |
| 1014 | 1014 | |
| 1015 | 1015 | static int snd_68k_ready_r(const address_space *space) |
| 1016 | 1016 | { |
| 1017 | int sr = cpu_get_reg( | |
| 1017 | int sr = cpu_get_reg( | |
| 1018 | 1018 | |
| 1019 | 1019 | if ((sr & 0x0700) > 0x0100) |
| 1020 | 1020 | { |
| r8581 | r8582 | |
| 1062 | 1062 | { |
| 1063 | 1063 | if (ACCESSING_BITS_0_7 && (offset == 0)) |
| 1064 | 1064 | { |
| 1065 | scsp_midi_in( | |
| 1065 | scsp_midi_in( | |
| 1066 | 1066 | |
| 1067 | 1067 | // give the 68k time to notice |
| 1068 | 1068 | cpu_spinuntil_time(space->cpu, ATTOTIME_IN_USEC(40)); |
| r8581 | r8582 | |
| 1945 | 1945 | UINT32 result = 0; |
| 1946 | 1946 | //mame_printf_debug("SHARC FIFOIN pop at %08X\n", cpu_get_pc(space->cpu)); |
| 1947 | 1947 | |
| 1948 | copro_fifoin_pop( | |
| 1948 | copro_fifoin_pop( | |
| 1949 | 1949 | return result; |
| 1950 | 1950 | } |
| 1951 | 1951 | |
| 1952 | 1952 | static WRITE32_HANDLER(copro_sharc_output_fifo_w) |
| 1953 | 1953 | { |
| 1954 | 1954 | //mame_printf_debug("SHARC FIFOOUT push %08X\n", data); |
| 1955 | copro_fifoout_push( | |
| 1955 | copro_fifoout_push( | |
| 1956 | 1956 | } |
| 1957 | 1957 | |
| 1958 | 1958 | static READ32_HANDLER(copro_sharc_buffer_r) |
| r8581 | r8582 | |
|---|---|---|
| 1195 | 1195 | { |
| 1196 | 1196 | cps_state *state = (cps_state *)machine->driver_data; |
| 1197 | 1197 | |
| 1198 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1199 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1198 | state->maincpu = machine->device("maincpu"); | |
| 1199 | state->audiocpu = machine->device("audiocpu"); | |
| 1200 | 1200 | |
| 1201 | 1201 | state_save_register_global(machine, state->scancount); |
| 1202 | 1202 | |
| r8581 | r8582 | |
| 5432 | 5432 | |
| 5433 | 5433 | ROM_START( sfzh ) |
| 5434 | 5434 | ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */ |
| 5435 | ROM_LOAD16_WORD_SWAP( "sfzh.03d", 0x000000, 0x80000, CRC(6e08cbe0) SHA1(c9d0e709004677b51efe0b62e0ae9b681dde1744) ) | |
| 5436 | ROM_LOAD16_WORD_SWAP( "sfz.04c", 0x080000, 0x80000, CRC(bb90acd5) SHA1(a19795963b90f1152f44cae29e78dd2ce67a41d6) ) | |
| 5437 | ROM_LOAD16_WORD_SWAP( "sfz.05c", 0x100000, 0x80000, CRC(0810544d) SHA1(5f39bda3e7b16508eb58e5a2e0cc58c09cf428ce) ) /* Same as revision "A" below */ | |
| 5438 | ROM_LOAD16_WORD_SWAP( "sfz.06", 0x180000, 0x80000, CRC(806e8f38) SHA1(b6d6912aa8f2f590335d7ff9a8214648e7131ebb) ) | |
| 5439 | ||
| 5440 | ROM_REGION( 0x1000000, "gfx", 0 ) | |
| 5441 | ROM_FILL( 0x000000, 0x800000, 0 ) | |
| 5442 | ROMX_LOAD( "sfz.14m", 0x800000, 0x200000, CRC(90fefdb3) SHA1(5eb28c8de57acfeaefebdd01509c7d9ba5244705) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 5443 | ROMX_LOAD( "sfz.16m", 0x800002, 0x200000, CRC(5354c948) SHA1(07588f1ba6addc04fef3274c971174aaf3e632ab) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 5444 | ROMX_LOAD( "sfz.18m", 0x800004, 0x200000, CRC(41a1e790) SHA1(ce25dad542308691dbe9606b26279bbd59ea4b81) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 5445 | ROMX_LOAD( "sfz.20m", 0x800006, 0x200000, CRC(a549df98) SHA1(f054e95df650a891ef56da8bfb31cb2c945a9aed) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 5446 | ||
| 5447 | ROM_REGION( QSOUND_SIZE, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */ | |
| 5448 | ROM_LOAD( "sfz.01", 0x00000, 0x08000, CRC(ffffec7d) SHA1(75b4aef001b72a0f571b51b2b97803facc1832dd) ) | |
| 5449 | ROM_CONTINUE( 0x10000, 0x18000 ) | |
| 5450 | ROM_LOAD( "sfz.02", 0x28000, 0x20000, CRC(45f46a08) SHA1(e32dbd27b52ab708278045b5a829376e55a4ca81) ) | |
| 5451 | ||
| 5452 | ROM_REGION( 0x400000, "qsound", 0 ) /* QSound samples */ | |
| 5453 | ROM_LOAD16_WORD_SWAP( "sfz.11m", 0x000000, 0x200000, CRC(c4b093cd) SHA1(256526bb693a0b72443f047e060304c9b739acd1) ) | |
| 5454 | ROM_LOAD16_WORD_SWAP( "sfz.12m", 0x200000, 0x200000, CRC(8bdbc4b4) SHA1(0e21c9a75a17a7e7dfd8bb51098c2b9dc4c933ec) ) | |
| 5455 | ROM_END | |
| 5456 | ||
| 5457 | ROM_START( sfzhr1 ) | |
| 5458 | ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */ | |
| 5435 | 5459 | ROM_LOAD16_WORD_SWAP( "sfzh.03c", 0x000000, 0x80000, CRC(bce635aa) SHA1(323da2de6c3ff6fd8c2c66ce6bd1d287873db9b1) ) |
| 5436 | 5460 | ROM_LOAD16_WORD_SWAP( "sfz.04a", 0x080000, 0x80000, CRC(5f99e9a5) SHA1(e9f286315d17096adc08e6b4e6ff7c5351f5bef3) ) |
| 5437 | 5461 | ROM_LOAD16_WORD_SWAP( "sfz.05a", 0x100000, 0x80000, CRC(0810544d) SHA1(5f39bda3e7b16508eb58e5a2e0cc58c09cf428ce) ) |
| r8581 | r8582 | |
| 7207 | 7231 | ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */ |
| 7208 | 7232 | ROM_LOAD16_WORD_SWAP( "xmnh.03", 0x000000, 0x80000, CRC(e4b85a90) SHA1(1eaf94ce42438eea45cd5c813f2859abf258dd3a) ) /* These are later date, but no revision leter code? */ |
| 7209 | 7233 | ROM_LOAD16_WORD_SWAP( "xmnh.04", 0x080000, 0x80000, CRC(7dfe1406) SHA1(4ddc0a8947d78ce587220f8188c8a8f00c7372c4) ) /* These are later date, but no revision leter code? */ |
| 7210 | ROM_LOAD16_WORD_SWAP( "xmn.05 | |
| 7234 | ROM_LOAD16_WORD_SWAP( "xmnh.05 | |
| 7211 | 7235 | ROM_LOAD16_WORD_SWAP( "xmn.06a", 0x180000, 0x80000, CRC(1b86a328) SHA1(2469cd705139ee9f1142e6e379e68d0c9675b37e) ) |
| 7212 | 7236 | ROM_LOAD16_WORD_SWAP( "xmn.07a", 0x200000, 0x80000, CRC(2c142a44) SHA1(7624875f9c39b361fc83e52e87e0fd5e96279713) ) |
| 7213 | 7237 | ROM_LOAD16_WORD_SWAP( "xmn.08a", 0x280000, 0x80000, CRC(f712d44f) SHA1(0d18d4a4eacad94a66beca6ec509ac7f690c6882) ) |
| r8581 | r8582 | |
| 7238 | 7262 | ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */ |
| 7239 | 7263 | ROM_LOAD16_WORD_SWAP( "xmnh.03d", 0x000000, 0x80000, CRC(63b0a84f) SHA1(4a0d604ff11e68313a0711702803390cb0d2f234) ) |
| 7240 | 7264 | ROM_LOAD16_WORD_SWAP( "xmnh.04d", 0x080000, 0x80000, CRC(b1b9b727) SHA1(b04ae3b7aab88cbb1a55068343ff9a9806d331a4) ) |
| 7241 | ROM_LOAD16_WORD_SWAP( "xmn | |
| 7265 | ROM_LOAD16_WORD_SWAP( "xmn | |
| 7242 | 7266 | ROM_LOAD16_WORD_SWAP( "xmn.06a", 0x180000, 0x80000, CRC(1b86a328) SHA1(2469cd705139ee9f1142e6e379e68d0c9675b37e) ) |
| 7243 | 7267 | ROM_LOAD16_WORD_SWAP( "xmn.07a", 0x200000, 0x80000, CRC(2c142a44) SHA1(7624875f9c39b361fc83e52e87e0fd5e96279713) ) |
| 7244 | 7268 | ROM_LOAD16_WORD_SWAP( "xmn.08a", 0x280000, 0x80000, CRC(f712d44f) SHA1(0d18d4a4eacad94a66beca6ec509ac7f690c6882) ) |
| r8581 | r8582 | |
| 7831 | 7855 | state->scancount = 0; |
| 7832 | 7856 | state->cps2networkpresent = 0; |
| 7833 | 7857 | |
| 7834 | c | |
| 7858 | machin | |
| 7835 | 7859 | } |
| 7836 | 7860 | |
| 7837 | 7861 | static DRIVER_INIT( ssf2tb ) |
| r8581 | r8582 | |
| 7887 | 7911 | |
| 7888 | 7912 | memory_install_readwrite16_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x618000, 0x619fff, 0, 0, gigamn2_dummyqsound_r, gigamn2_dummyqsound_w); // no qsound.. |
| 7889 | 7913 | memory_set_decrypted_region(space, 0x000000, (length) - 1, &rom[length/4]); |
| 7890 | m68k_set_encrypted_opcode_range( | |
| 7914 | m68k_set_encrypted_opcode_range(m | |
| 7891 | 7915 | } |
| 7892 | 7916 | |
| 7893 | 7917 | |
| r8581 | r8582 | |
| 7983 | 8007 | GAME( 1995, sfzj, sfa, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero (Japan 950727)", GAME_SUPPORTS_SAVE ) |
| 7984 | 8008 | GAME( 1995, sfzjr1, sfa, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero (Japan 950627)", GAME_SUPPORTS_SAVE ) |
| 7985 | 8009 | GAME( 1995, sfzjr2, sfa, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero (Japan 950605)", GAME_SUPPORTS_SAVE ) |
| 7986 | GAME( 1995, sfzh, sfa, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero (Hispanic 950627)", GAME_SUPPORTS_SAVE ) | |
| 8010 | GAME( 1995, sfzh, sfa, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero (Hispanic 950718)", GAME_SUPPORTS_SAVE ) | |
| 8011 | GAME( 1995, sfzhr1, sfa, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero (Hispanic 950627)", GAME_SUPPORTS_SAVE ) | |
| 7987 | 8012 | GAME( 1995, sfzb, sfa, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero (Brazil 951109)", GAME_SUPPORTS_SAVE ) |
| 7988 | 8013 | GAME( 1995, sfzbr1, sfa, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero (Brazil 950727)", GAME_SUPPORTS_SAVE ) |
| 7989 | 8014 | GAME( 1995, mmancp2u, megaman, cps2, cps2_2p3b, cps2, ROT0, "Capcom", "Mega Man - The Power Battle (CPS2, USA 951006, SAMPLE Version)", GAME_SUPPORTS_SAVE ) |
| r8581 | r8582 | |
|---|---|---|
| 422 | 422 | { |
| 423 | 423 | pushman_state *state = (pushman_state *)machine->driver_data; |
| 424 | 424 | |
| 425 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 426 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 427 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 425 | state->maincpu = machine->device("maincpu"); | |
| 426 | state->audiocpu = machine->device("audiocpu"); | |
| 427 | state->mcu = machine->device("mcu"); | |
| 428 | 428 | |
| 429 | 429 | state_save_register_global_array(machine, state->control); |
| 430 | 430 | state_save_register_global_array(machine, state->shared_ram); |
| r8581 | r8582 | |
|---|---|---|
| 271 | 271 | trackfld_state *state = (trackfld_state *)machine->driver_data; |
| 272 | 272 | |
| 273 | 273 | state->audiocpu = machine->device<cpu_device>("audiocpu"); |
| 274 | state->vlm = | |
| 274 | state->vlm = m | |
| 275 | 275 | |
| 276 | 276 | /* sound */ |
| 277 | 277 | state_save_register_global(machine, state->SN76496_latch); |
| r8581 | r8582 | |
|---|---|---|
| 543 | 543 | hnayayoi_state *state = (hnayayoi_state *)machine->driver_data; |
| 544 | 544 | |
| 545 | 545 | /* start with the MSM5205 reset */ |
| 546 | msm5205_reset_w( | |
| 546 | msm5205_reset_w(m | |
| 547 | 547 | |
| 548 | 548 | state->palbank = 0; |
| 549 | 549 | state->blit_layer = 0; |
| r8581 | r8582 | |
|---|---|---|
| 63 | 63 | |
| 64 | 64 | static VIDEO_UPDATE( shanghai ) |
| 65 | 65 | { |
| 66 | running_device *hd63484 = | |
| 66 | running_device *hd63484 = | |
| 67 | 67 | int x, y, b, src; |
| 68 | 68 | |
| 69 | 69 | b = ((hd63484_regs_r(hd63484, 0xcc/2, 0xffff) & 0x000f) << 16) + hd63484_regs_r(hd63484, 0xce/2, 0xffff); |
| r8581 | r8582 | |
|---|---|---|
| 198 | 198 | |
| 199 | 199 | static WRITE16_HANDLER( m68k_tms_w ) |
| 200 | 200 | { |
| 201 | tms34010_host_w( | |
| 201 | tms34010_host_w( | |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | static READ16_HANDLER( m68k_tms_r ) |
| 205 | 205 | { |
| 206 | return tms34010_host_r( | |
| 206 | return tms34010_host_r( | |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 |
| r8581 | r8582 | |
|---|---|---|
| 57 | 57 | Wanted Games |
| 58 | 58 | ------------ |
| 59 | 59 | Aerosmith - Quest for Fame (C) Namco, 2001 |
| 60 | http://www.bandainamcogames.co.jp/a | |
| 60 | http://www.bandainamcogames.co.jp/a | |
| 61 | 61 | |
| 62 | 62 | Attack Pla-Rail (C) Tomy/Namco, 199? |
| 63 | 63 | Possibly some kind of redemption game for kids |
| 64 | 64 | |
| 65 | 65 | Kart Duel (C) Namco, 2000 |
| 66 | http://www.bandainamcogames.co.jp/a | |
| 66 | http://www.bandainamcogames.co.jp/a | |
| 67 | 67 | |
| 68 | 68 | Oh Bakyuuun (C) Namco/Raizing,1999 |
| 69 | 69 | http://www.8ing.net/prd/ohbakyun/index.html |
| r8581 | r8582 | |
| 77 | 77 | It was shown only at an amusement show. Possibly a prototype still exists. Possibly not. |
| 78 | 78 | |
| 79 | 79 | Techno Drive (C) Namco, 1998 |
| 80 | http://www.bandainamcogames.co.jp/a | |
| 80 | http://www.bandainamcogames.co.jp/a | |
| 81 | 81 | |
| 82 | 82 | Tekno Werk (C) Namco, 1999 |
| 83 | 83 | Some kind of music game similar to Konami's Keyboard Mania series |
| 84 | 84 | |
| 85 | 85 | Truck Kyosokyoku (C) Namco, 2000 |
| 86 | http://www.bandainamcogames.co.jp/a | |
| 86 | http://www.bandainamcogames.co.jp/a | |
| 87 | 87 | |
| 88 | 88 | Um Jammer Lammy (C) Namco, 1999 |
| 89 | http://www. | |
| 89 | http://www.wa | |
| 90 | 90 | |
| 91 | If you can help with the remaining undumped S12 games, please contact me at http:// | |
| 91 | If you can help with the remaining undumped S12 games, please contact me at http://guru.mameworld.info | |
| 92 | 92 | Note that this list above may not be 100% complete. Alternative versions are also welcome :-) |
| 93 | 93 | |
| 94 | 94 | The Namco System 12 system comprises 3 mandatory PCB's.... |
| r8581 | r8582 | |
|---|---|---|
| 957 | 957 | * it must be multiplexed by flip line. */ |
| 958 | 958 | PORT_START("IN0") |
| 959 | 959 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) |
| 960 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_U | |
| 960 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTT | |
| 961 | 961 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) |
| 962 | 962 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 963 | 963 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) |
| r8581 | r8582 | |
|---|---|---|
| 359 | 359 | { |
| 360 | 360 | bublbobl_state *state = (bublbobl_state *)machine->driver_data; |
| 361 | 361 | |
| 362 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 363 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 364 | state->slave = devtag_get_device(machine, "slave"); | |
| 362 | state->maincpu = machine->device("maincpu"); | |
| 363 | state->audiocpu = machine->device("audiocpu"); | |
| 364 | state->slave = machine->device("slave"); | |
| 365 | 365 | state->mcu = NULL; |
| 366 | 366 | |
| 367 | 367 | state_save_register_global(machine, state->sound_nmi_enable); |
| r8581 | r8582 | |
|---|---|---|
| 92 | 92 | |
| 93 | 93 | static WRITE8_DEVICE_HANDLER(pk8000_80_portc_w) |
| 94 | 94 | { |
| 95 | speaker_level_w(dev | |
| 95 | speaker_level_w(dev | |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | static I8255A_INTERFACE( pk8000_ppi8255_interface_1 ) |
| r8581 | r8582 | |
| 180 | 180 | static MACHINE_RESET(pk8000) |
| 181 | 181 | { |
| 182 | 182 | pk8000_set_bank(machine,0); |
| 183 | cpu_set_irq_callback( | |
| 183 | cpu_set_irq_callback(m | |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | static VIDEO_START( photon ) |
| r8581 | r8582 | |
|---|---|---|
| 191 | 191 | { |
| 192 | 192 | citycon_state *state = (citycon_state *)machine->driver_data; |
| 193 | 193 | |
| 194 | state->maincpu = | |
| 194 | state->maincpu = m | |
| 195 | 195 | |
| 196 | 196 | state_save_register_global(machine, state->bg_image); |
| 197 | 197 | } |
| r8581 | r8582 | |
|---|---|---|
| 146 | 146 | |
| 147 | 147 | static VIDEO_UPDATE( jwildb52 ) |
| 148 | 148 | { |
| 149 | running_device *hd63484 = | |
| 149 | running_device *hd63484 = | |
| 150 | 150 | |
| 151 | 151 | int x, y, b, src; |
| 152 | 152 | |
| r8581 | r8582 | |
| 226 | 226 | { |
| 227 | 227 | static int latch=0; |
| 228 | 228 | static unsigned int acrtc_data=0; |
| 229 | running_device *hd63484 = | |
| 229 | running_device *hd63484 = | |
| 230 | 230 | if(!offset) |
| 231 | 231 | { |
| 232 | 232 | //address select |
| r8581 | r8582 | |
| 257 | 257 | { |
| 258 | 258 | if(offset&1) |
| 259 | 259 | { |
| 260 | running_device *hd63484 = | |
| 260 | running_device *hd63484 = | |
| 261 | 261 | return hd63484_data_r(hd63484, 0, 0xff); |
| 262 | 262 | } |
| 263 | 263 | |
| r8581 | r8582 | |
| 546 | 546 | UINT16 *rom = (UINT16*)memory_region(machine, "gfx1"); |
| 547 | 547 | int i; |
| 548 | 548 | |
| 549 | running_device *hd63484 = | |
| 549 | running_device *hd63484 = m | |
| 550 | 550 | |
| 551 | 551 | for(i = 0; i < 0x40000/2; ++i) |
| 552 | 552 | { |
| r8581 | r8582 | |
|---|---|---|
| 909 | 909 | { |
| 910 | 910 | playmark_state *state = (playmark_state *)machine->driver_data; |
| 911 | 911 | |
| 912 | state->oki = devtag_get_device(machine, "oki"); | |
| 913 | state->eeprom = devtag_get_device(machine, "eeprom"); | |
| 912 | state->oki = machine->device("oki"); | |
| 913 | state->eeprom = machine->device("eeprom"); | |
| 914 | 914 | |
| 915 | 915 | state_save_register_global(machine, state->bgscrollx); |
| 916 | 916 | state_save_register_global(machine, state->bgscrolly); |
| r8581 | r8582 | |
| 1518 | 1518 | data_lo = playmark_asciitohex((playmark_PICROM_HEX[src_pos + 3])); |
| 1519 | 1519 | data |= (data_hi << 12) | (data_lo << 8); |
| 1520 | 1520 | |
| 1521 | pic16c5x_set_config( | |
| 1521 | pic16c5x_set_config(m | |
| 1522 | 1522 | |
| 1523 | 1523 | src_pos = 0x7fff; /* Force Exit */ |
| 1524 | 1524 | } |
| r8581 | r8582 | |
|---|---|---|
| 399 | 399 | AM_RANGE(0x11,0x11) AM_WRITE(mux_w) |
| 400 | 400 | AM_RANGE(0x12,0x17) AM_WRITE(blitter_process_w) |
| 401 | 401 | AM_RANGE(0x20,0x2f) AM_WRITE(blit_vregs_w) |
| 402 | AM_RANGE(0x30,0x30) AM_WRITENOP //? polls 0x03 continously | |
| 402 | AM_RANGE(0x30,0x30) AM_WRITENOP //? polls 0x03 continuously | |
| 403 | 403 | AM_RANGE(0x31,0x31) AM_WRITE(sound_latch_w) |
| 404 | 404 | ADDRESS_MAP_END |
| 405 | 405 | |
| r8581 | r8582 | |
| 470 | 470 | AM_RANGE(0x11,0x11) AM_WRITE(mux_w) |
| 471 | 471 | AM_RANGE(0x12,0x17) AM_WRITE(blitter_process_w) |
| 472 | 472 | AM_RANGE(0x20,0x2f) AM_WRITE(blit_vregs_w ) |
| 473 | AM_RANGE(0x30,0x30) AM_WRITENOP //? polls 0x03 continously | |
| 473 | AM_RANGE(0x30,0x30) AM_WRITENOP //? polls 0x03 continuously | |
| 474 | 474 | // AM_RANGE(0x31,0x31) AM_WRITE(sound_latch_w) |
| 475 | 475 | ADDRESS_MAP_END |
| 476 | 476 | |
| r8581 | r8582 | |
| 800 | 800 | { |
| 801 | 801 | jangou_state *state = (jangou_state *)machine->driver_data; |
| 802 | 802 | |
| 803 | state->cpu_0 = devtag_get_device(machine, "cpu0"); | |
| 804 | state->cpu_1 = devtag_get_device(machine, "cpu1"); | |
| 805 | state->cvsd = devtag_get_device(machine, "cvsd"); | |
| 806 | state->nsc = devtag_get_device(machine, "nsc"); | |
| 803 | state->cpu_0 = machine->device("cpu0"); | |
| 804 | state->cpu_1 = machine->device("cpu1"); | |
| 805 | state->cvsd = machine->device("cvsd"); | |
| 806 | state->nsc = machine->device("nsc"); | |
| 807 | 807 | |
| 808 | 808 | state_save_register_global_array(machine, state->pen_data); |
| 809 | 809 | state_save_register_global_array(machine, state->blit_data); |
| r8581 | r8582 | |
|---|---|---|
| 9 | 9 | DIP4 ON for Screen on the right |
| 10 | 10 | should not toggle on both |
| 11 | 11 | |
| 12 | -The left, center and right screens have separate programs and boards, each would work independ | |
| 12 | -The left, center and right screens have separate programs and boards, each would work independently. | |
| 13 | 13 | About projection angles of left and right screen, the angle is correct on "DRIVER'S EYES" title screen, however in the tracks of demo mode it doesn't seem correct. |
| 14 | 14 | |
| 15 | 15 | -On demo screen, should fog effects be turned off? |
| r8581 | r8582 | |
| 612 | 612 | } |
| 613 | 613 | else if (namcos2_gametype == NAMCOS21_SOLVALOU && |
| 614 | 614 | offset == 0x103 && |
| 615 | space->cpu == | |
| 615 | space->cpu == | |
| 616 | 616 | { /* hack; synchronization for solvalou */ |
| 617 | 617 | cpu_yield(space->cpu); |
| 618 | 618 | } |
| r8581 | r8582 | |
|---|---|---|
| 1346 | 1346 | |
| 1347 | 1347 | state->soundcpu = machine->device<cpu_device>("soundcpu"); |
| 1348 | 1348 | state->prot = machine->device<cpu_device>("prot"); |
| 1349 | state->ics = | |
| 1349 | state->ics = m | |
| 1350 | 1350 | |
| 1351 | 1351 | state_save_register_global(machine, state->cal_val); |
| 1352 | 1352 | state_save_register_global(machine, state->cal_mask); |
| r8581 | r8582 | |
|---|---|---|
| 984 | 984 | { |
| 985 | 985 | gameplan_state *state = (gameplan_state *)machine->driver_data; |
| 986 | 986 | |
| 987 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 988 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 989 | state->riot = devtag_get_device(machine, "riot"); | |
| 990 | state->via_0 = devtag_get_device(machine, "via6522_0"); | |
| 991 | state->via_1 = devtag_get_device(machine, "via6522_1"); | |
| 992 | state->via_2 = devtag_get_device(machine, "via6522_2"); | |
| 987 | state->maincpu = machine->device("maincpu"); | |
| 988 | state->audiocpu = machine->device("audiocpu"); | |
| 989 | state->riot = machine->device("riot"); | |
| 990 | state->via_0 = machine->device("via6522_0"); | |
| 991 | state->via_1 = machine->device("via6522_1"); | |
| 992 | state->via_2 = machine->device("via6522_2"); | |
| 993 | 993 | |
| 994 | 994 | /* register for save states */ |
| 995 | 995 | state_save_register_global(machine, state->current_port); |
| r8581 | r8582 | |
|---|---|---|
| 349 | 349 | { |
| 350 | 350 | capbowl_state *state = (capbowl_state *)machine->driver_data; |
| 351 | 351 | |
| 352 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 353 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 352 | state->maincpu = machine->device("maincpu"); | |
| 353 | state->audiocpu = machine->device("audiocpu"); | |
| 354 | 354 | |
| 355 | 355 | state_save_register_global(machine, state->blitter_addr); |
| 356 | 356 | state_save_register_global(machine, state->last_trackball_val[0]); |
| r8581 | r8582 | |
|---|---|---|
| 859 | 859 | memory_configure_bank(machine, "bank1", 4, 1, memory_region(machine, "audiocpu"), 0x8000); |
| 860 | 860 | memory_set_bank(machine, "bank1", 4); |
| 861 | 861 | |
| 862 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 863 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 864 | state->cpub = devtag_get_device(machine, "cpub"); | |
| 865 | state->adpcm = devtag_get_device(machine, "adpcm"); | |
| 866 | state->pc080sn = devtag_get_device(machine, "pc080sn"); | |
| 867 | state->tc0140syt = devtag_get_device(machine, "tc0140syt"); | |
| 862 | state->maincpu = machine->device("maincpu"); | |
| 863 | state->audiocpu = machine->device("audiocpu"); | |
| 864 | state->cpub = machine->device("cpub"); | |
| 865 | state->adpcm = machine->device("adpcm"); | |
| 866 | state->pc080sn = machine->device("pc080sn"); | |
| 867 | state->tc0140syt = machine->device("tc0140syt"); | |
| 868 | 868 | |
| 869 | state->lscreen = devtag_get_device(machine, "lscreen"); | |
| 870 | state->mscreen = devtag_get_device(machine, "mscreen"); | |
| 871 | state->rscreen = devtag_get_device(machine, "rscreen"); | |
| 869 | state->lscreen = machine->device("lscreen"); | |
| 870 | state->mscreen = machine->device("mscreen"); | |
| 871 | state->rscreen = machine->device("rscreen"); | |
| 872 | 872 | |
| 873 | state->filter0_0l = devtag_get_device(machine, "filter0.0l"); | |
| 874 | state->filter0_0r = devtag_get_device(machine, "filter0.0r"); | |
| 875 | state->filter0_1l = devtag_get_device(machine, "filter0.1l"); | |
| 876 | state->filter0_1r = devtag_get_device(machine, "filter0.1r"); | |
| 877 | state->filter0_2l = devtag_get_device(machine, "filter0.2l"); | |
| 878 | state->filter0_2r = devtag_get_device(machine, "filter0.2r"); | |
| 879 | state->filter0_3l = devtag_get_device(machine, "filter0.3l"); | |
| 880 | state->filter0_3r = devtag_get_device(machine, "filter0.3r"); | |
| 873 | state->filter0_0l = machine->device("filter0.0l"); | |
| 874 | state->filter0_0r = machine->device("filter0.0r"); | |
| 875 | state->filter0_1l = machine->device("filter0.1l"); | |
| 876 | state->filter0_1r = machine->device("filter0.1r"); | |
| 877 | state->filter0_2l = machine->device("filter0.2l"); | |
| 878 | state->filter0_2r = machine->device("filter0.2r"); | |
| 879 | state->filter0_3l = machine->device("filter0.3l"); | |
| 880 | state->filter0_3r = machine->device("filter0.3r"); | |
| 881 | 881 | |
| 882 | state->filter1_0l = devtag_get_device(machine, "filter1.0l"); | |
| 883 | state->filter1_0r = devtag_get_device(machine, "filter1.0r"); | |
| 884 | state->filter1_1l = devtag_get_device(machine, "filter1.1l"); | |
| 885 | state->filter1_1r = devtag_get_device(machine, "filter1.1r"); | |
| 886 | state->filter1_2l = devtag_get_device(machine, "filter1.2l"); | |
| 887 | state->filter1_2r = devtag_get_device(machine, "filter1.2r"); | |
| 888 | state->filter1_3l = devtag_get_device(machine, "filter1.3l"); | |
| 889 | state->filter1_3r = devtag_get_device(machine, "filter1.3r"); | |
| 882 | state->filter1_0l = machine->device("filter1.0l"); | |
| 883 | state->filter1_0r = machine->device("filter1.0r"); | |
| 884 | state->filter1_1l = machine->device("filter1.1l"); | |
| 885 | state->filter1_1r = machine->device("filter1.1r"); | |
| 886 | state->filter1_2l = machine->device("filter1.2l"); | |
| 887 | state->filter1_2r = machine->device("filter1.2r"); | |
| 888 | state->filter1_3l = machine->device("filter1.3l"); | |
| 889 | state->filter1_3r = machine->device("filter1.3r"); | |
| 890 | 890 | |
| 891 | state->msm5205_l = devtag_get_device(machine, "msm5205.l"); | |
| 892 | state->msm5205_r = devtag_get_device(machine, "msm5205.r"); | |
| 891 | state->msm5205_l = machine->device("msm5205.l"); | |
| 892 | state->msm5205_r = machine->device("msm5205.r"); | |
| 893 | 893 | |
| 894 | 894 | state_save_register_global(machine, state->cpua_ctrl); |
| 895 | 895 | state_save_register_global(machine, state->coin_word); |
| r8581 | r8582 | |
|---|---|---|
| 257 | 257 | |
| 258 | 258 | static VIDEO_UPDATE( ssingles ) |
| 259 | 259 | { |
| 260 | running_device *mc6845 = | |
| 260 | running_device *mc6845 = | |
| 261 | 261 | mc6845_update(mc6845, bitmap, cliprect); |
| 262 | 262 | |
| 263 | 263 | return 0; |
| r8581 | r8582 | |
|---|---|---|
| 157 | 157 | |
| 158 | 158 | static MACHINE_START( kinst ) |
| 159 | 159 | { |
| 160 | running_device *ide = | |
| 160 | running_device *ide = m | |
| 161 | 161 | UINT8 *features = ide_get_features(ide); |
| 162 | 162 | |
| 163 | 163 | if (strncmp(machine->gamedrv->name, "kinst2", 6) != 0) |
| r8581 | r8582 | |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | /* set the fastest DRC options */ |
| 193 | mips3drc_set_options( | |
| 193 | mips3drc_set_options(m | |
| 194 | 194 | |
| 195 | 195 | /* configure fast RAM regions for DRC */ |
| 196 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x08000000, 0x087fffff, FALSE, rambase2); | |
| 197 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x00000000, 0x0007ffff, FALSE, rambase); | |
| 198 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, rombase); | |
| 196 | mips3drc_add_fastram(machine->device("maincpu"), 0x08000000, 0x087fffff, FALSE, rambase2); | |
| 197 | mips3drc_add_fastram(machine->device("maincpu"), 0x00000000, 0x0007ffff, FALSE, rambase); | |
| 198 | mips3drc_add_fastram(machine->device("maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, rombase); | |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 |
| r8581 | r8582 | |
|---|---|---|
| 446 | 446 | |
| 447 | 447 | //static WRITE8_HANDLER( sound_w ) |
| 448 | 448 | //{ |
| 449 | // dac_data_w( | |
| 449 | // dac_data_w( | |
| 450 | 450 | //} |
| 451 | 451 | */ |
| 452 | 452 |
| r8581 | r8582 | |
|---|---|---|
| 177 | 177 | trackfld_state *state = (trackfld_state *)machine->driver_data; |
| 178 | 178 | |
| 179 | 179 | state->audiocpu = machine->device<cpu_device>("audiocpu"); |
| 180 | state->vlm = | |
| 180 | state->vlm = m | |
| 181 | 181 | |
| 182 | 182 | /* sound */ |
| 183 | 183 | state_save_register_global(machine, state->SN76496_latch); |
| r8581 | r8582 | |
|---|---|---|
| 274 | 274 | |
| 275 | 275 | memory_configure_bank(machine, "bank1", 0, 2, &ROM[0x10000], 0x4000); |
| 276 | 276 | |
| 277 | state->subcpu = | |
| 277 | state->subcpu = m | |
| 278 | 278 | |
| 279 | 279 | state_save_register_global_array(machine, state->scrollx); |
| 280 | 280 | state_save_register_global(machine, state->flipscreen); |
| r8581 | r8582 | |
|---|---|---|
| 206 | 206 | adp_state *state = (adp_state *)machine->driver_data; |
| 207 | 207 | microtouch_init(machine, microtouch_tx, 0); |
| 208 | 208 | |
| 209 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 210 | state->duart = devtag_get_device(machine, "duart68681"); | |
| 211 | state->hd63484 = devtag_get_device(machine, "hd63484"); | |
| 209 | state->maincpu = machine->device("maincpu"); | |
| 210 | state->duart = machine->device("duart68681"); | |
| 211 | state->hd63484 = machine->device("hd63484"); | |
| 212 | 212 | |
| 213 | 213 | state_save_register_global(machine, state->mux_data); |
| 214 | 214 | state_save_register_global(machine, state->register_active); |
| r8581 | r8582 | |
| 227 | 227 | UINT16 *rom = (UINT16*)memory_region(machine, "gfx1"); |
| 228 | 228 | int i; |
| 229 | 229 | |
| 230 | running_device *hd63484 = | |
| 230 | running_device *hd63484 = m | |
| 231 | 231 | |
| 232 | 232 | for(i = 0; i < 0x40000/2; ++i) |
| 233 | 233 | { |
| r8581 | r8582 | |
|---|---|---|
| 199 | 199 | data = 0; |
| 200 | 200 | if( ACCESSING_BITS_0_7 ) |
| 201 | 201 | { |
| 202 | data |= k054539_r( | |
| 202 | data |= k054539_r( | |
| 203 | 203 | } |
| 204 | 204 | if( ACCESSING_BITS_8_15 ) |
| 205 | 205 | { |
| 206 | data |= k054539_r( | |
| 206 | data |= k054539_r( | |
| 207 | 207 | } |
| 208 | 208 | return data; |
| 209 | 209 | } |
| r8581 | r8582 | |
| 212 | 212 | { |
| 213 | 213 | if( ACCESSING_BITS_0_7 ) |
| 214 | 214 | { |
| 215 | k054539_w( | |
| 215 | k054539_w( | |
| 216 | 216 | } |
| 217 | 217 | if( ACCESSING_BITS_8_15 ) |
| 218 | 218 | { |
| 219 | k054539_w( | |
| 219 | k054539_w( | |
| 220 | 220 | } |
| 221 | 221 | } |
| 222 | 222 |
| r8581 | r8582 | |
|---|---|---|
| 454 | 454 | static WRITE8_DEVICE_HANDLER( port_b_w ) |
| 455 | 455 | { |
| 456 | 456 | port_b_data = data; |
| 457 | // running_device *beep = devtag_get_device(device->machine, "beep"); | |
| 458 | // running_device *cvsd = devtag_get_device(device->machine, "cvsd"); | |
| 457 | // running_device *beep = device->machine->device("beep"); | |
| 458 | // running_device *cvsd = device->machine->device("cvsd"); | |
| 459 | 459 | // hc55516_digit_w(cvsd, data); |
| 460 | 460 | // popmessage("%02x\n",data); |
| 461 | 461 | // beep_set_state(beep, 0); |
| r8581 | r8582 | |
| 909 | 909 | bank = -1; |
| 910 | 910 | lastvalue = -1; |
| 911 | 911 | hv_blank = 0; |
| 912 | cpu_set_irq_callback(devtag_get_device(machine, "maincpu"), irq_callback); | |
| 913 | filetto_devices.pit8253 = devtag_get_device( machine, "pit8253" ); | |
| 914 | filetto_devices.pic8259_1 = devtag_get_device( machine, "pic8259_1" ); | |
| 915 | filetto_devices.pic8259_2 = devtag_get_device( machine, "pic8259_2" ); | |
| 916 | filetto_devices.dma8237_1 = devtag_get_device( machine, "dma8237_1" ); | |
| 917 | filetto_devices.dma8237_2 = devtag_get_device( machine, "dma8237_2" ); | |
| 912 | cpu_set_irq_callback(machine->device("maincpu"), irq_callback); | |
| 913 | filetto_devices.pit8253 = machine->device( "pit8253" ); | |
| 914 | filetto_devices.pic8259_1 = machine->device( "pic8259_1" ); | |
| 915 | filetto_devices.pic8259_2 = machine->device( "pic8259_2" ); | |
| 916 | filetto_devices.dma8237_1 = machine->device( "dma8237_1" ); | |
| 917 | filetto_devices.dma8237_2 = machine->device( "dma8237_2" ); | |
| 918 | 918 | } |
| 919 | 919 | |
| 920 | 920 | static MACHINE_DRIVER_START( filetto ) |
| r8581 | r8582 | |
|---|---|---|
| 434 | 434 | memory_configure_bank(machine, "bank1", 0, 8, &ROM[0x10000], 0x4000); |
| 435 | 435 | memory_set_bank(machine, "bank1", 1); |
| 436 | 436 | |
| 437 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 438 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 437 | state->maincpu = machine->device("maincpu"); | |
| 438 | state->soundcpu = machine->device("soundcpu"); | |
| 439 | 439 | |
| 440 | 440 | state_save_register_global(machine, state->palette_bank1); |
| 441 | 441 | state_save_register_global(machine, state->palette_bank2); |
| r8581 | r8582 | |
|---|---|---|
| 23 | 23 | * War of the Worlds |
| 24 | 24 | * Boxing Bugs |
| 25 | 25 | * QB-3 |
| 26 | * Space Ship | |
| 26 | 27 | |
| 27 | 28 | To do: |
| 28 | 29 | * look into bad sample latency |
| r8581 | r8582 | |
| 280 | 281 | |
| 281 | 282 | static WRITE8_HANDLER( qb3_ram_bank_w ) |
| 282 | 283 | { |
| 283 | memory_set_bank(space->machine, "bank1", cpu_get_reg( | |
| 284 | memory_set_bank(space->machine, "bank1", cpu_get_reg( | |
| 284 | 285 | } |
| 285 | 286 | |
| 286 | 287 | |
| r8581 | r8582 | |
| 376 | 377 | INPUT_PORTS_END |
| 377 | 378 | |
| 378 | 379 | |
| 380 | static INPUT_PORTS_START( spaceshp ) | |
| 381 | PORT_INCLUDE(spacewar ) | |
| 382 | ||
| 383 | PORT_MODIFY("SWITCHES") | |
| 384 | PORT_DIPNAME( 0x03, 0x00, "Time" ) PORT_DIPLOCATION("SW1:!4,!3") | |
| 385 | PORT_DIPSETTING( 0x00, "1:00/coin" ) | |
| 386 | PORT_DIPSETTING( 0x01, "1:30/coin" ) | |
| 387 | PORT_DIPSETTING( 0x02, "2:00/coin" ) | |
| 388 | PORT_DIPSETTING( 0x03, "2:30/coin" ) | |
| 389 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 390 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW1:!1" ) | |
| 391 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW1:!2" ) | |
| 392 | INPUT_PORTS_END | |
| 393 | ||
| 394 | ||
| 379 | 395 | static INPUT_PORTS_START( barrier ) |
| 380 | 396 | PORT_START("INPUTS") |
| 381 | 397 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Skill A") PORT_CODE(KEYCODE_A) |
| r8581 | r8582 | |
| 1183 | 1199 | ROM_END |
| 1184 | 1200 | |
| 1185 | 1201 | |
| 1202 | ROM_START( spaceshp ) | |
| 1203 | ROM_REGION( 0x1000, "maincpu", 0 ) | |
| 1204 | ROMX_LOAD( "pr08.61", 0x0000, 0x0400, CRC(556c4ff4) SHA1(c8c1f3e5fe7bf48ecaa92dabf376adfd6a0a9b72), ROM_NIBBLE | ROM_SHIFT_NIBBLE_HI | ROM_SKIP(1) ) | |
| 1205 | ROMX_LOAD( "pr07.63", 0x0000, 0x0400, CRC(ba7747d1) SHA1(e9eb9de07ad5a306f815ee0d8371c64f8f242de6), ROM_NIBBLE | ROM_SHIFT_NIBBLE_LO | ROM_SKIP(1) ) | |
| 1206 | ROMX_LOAD( "pr04.83", 0x0001, 0x0400, CRC(19966799) SHA1(ffadb6cbcf4e4c4a60a251eb239eddc7d1030e6e), ROM_NIBBLE | ROM_SHIFT_NIBBLE_HI | ROM_SKIP(1) ) | |
| 1207 | ROMX_LOAD( "pr03.85", 0x0001, 0x0400, CRC(d6557503) SHA1(c226fdf85236558208942e43bcc3ce5af7e3d588), ROM_NIBBLE | ROM_SHIFT_NIBBLE_LO | ROM_SKIP(1) ) | |
| 1208 | ROMX_LOAD( "pr10.62", 0x0800, 0x0400, CRC(3ee163f9) SHA1(30269158434fb66049620bbac5f1c9b878416468), ROM_NIBBLE | ROM_SHIFT_NIBBLE_HI | ROM_SKIP(1) ) | |
| 1209 | ROMX_LOAD( "pr09.64", 0x0800, 0x0400, CRC(7946086c) SHA1(09d5435bc602a10ddd4206fd546f5b758e746cb2), ROM_NIBBLE | ROM_SHIFT_NIBBLE_LO | ROM_SKIP(1) ) | |
| 1210 | ROMX_LOAD( "pr06.84", 0x0801, 0x0400, CRC(f19c8eb0) SHA1(80f66d00caaf258232ea5e6adf515899abf53896), ROM_NIBBLE | ROM_SHIFT_NIBBLE_HI | ROM_SKIP(1) ) | |
| 1211 | ROMX_LOAD( "pr05.86", 0x0801, 0x0400, CRC(3dbc6360) SHA1(8d59dfee6e02ec29f755cc1c85ae236621009715), ROM_NIBBLE | ROM_SHIFT_NIBBLE_LO | ROM_SKIP(1) ) | |
| 1212 | ||
| 1213 | ROM_REGION( 0x1a0, "proms", 0 ) | |
| 1214 | ROM_LOAD( "pr13.139", 0x0000, 0x0100, CRC(9edbf536) SHA1(036ad8a231284e05f44b1106d38fc0c7e041b6e8) ) | |
| 1215 | ROM_LOAD( "pr17.138", 0x0100, 0x0020, CRC(29dbfb87) SHA1(d8c40ab010b2ea30f29b2c443819e2b69f376c04) ) | |
| 1216 | ROM_LOAD( "pr18.137", 0x0120, 0x0020, CRC(98b7bd46) SHA1(fd7d0cac8783964bac36918e0ffcc07e2ea2081a) ) | |
| 1217 | ROM_LOAD( "pr19.136", 0x0140, 0x0020, CRC(07492cda) SHA1(32df9148797c23f70db47b840139c40e046dd710) ) | |
| 1218 | ROM_LOAD( "pr20.72" , 0x0160, 0x0020, CRC(791ec9e1) SHA1(6f7fcce4aa3be9020595235568381588adaab88e) ) | |
| 1219 | ROM_LOAD( "pr21.143", 0x0180, 0x0020, CRC(a481ca71) SHA1(ce145d61686f600cc16b77febfd5c783bf8c13b0) ) | |
| 1220 | ROM_END | |
| 1221 | ||
| 1222 | ||
| 1186 | 1223 | ROM_START( barrier ) |
| 1187 | 1224 | ROM_REGION( 0x1000, "maincpu", 0 ) |
| 1188 | 1225 | ROM_LOAD16_BYTE( "barrier.t7", 0x0000, 0x0800, CRC(7c3d68c8) SHA1(1138029552b73e94522b3b48096befc057d603c7) ) |
| r8581 | r8582 | |
| 1485 | 1522 | *************************************/ |
| 1486 | 1523 | |
| 1487 | 1524 | GAME( 1977, spacewar, 0, spacewar, spacewar, 0, ORIENTATION_FLIP_Y, "Cinematronics", "Space Wars", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| 1525 | GAME( 1978, spaceshp, spacewar,spacewar, spaceshp, 0, ORIENTATION_FLIP_Y, "Cinematronics (Sega license)", "Space Ship", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 1488 | 1526 | GAME( 1979, barrier, 0, barrier, barrier, 0, ORIENTATION_FLIP_X ^ ROT270, "Vectorbeam", "Barrier", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| 1489 | 1527 | GAME( 1979, speedfrk, 0, speedfrk, speedfrk, speedfrk, ORIENTATION_FLIP_Y, "Vectorbeam", "Speed Freak", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 1490 | 1528 | GAME( 1979, starhawk, 0, starhawk, starhawk, 0, ORIENTATION_FLIP_Y, "Cinematronics", "Star Hawk", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| r8581 | r8582 | |
|---|---|---|
| 319 | 319 | This is important for games with common RAM; the RAM test will fail |
| 320 | 320 | when leaving service mode if the sound CPU is not reset. |
| 321 | 321 | */ |
| 322 | m68k_set_reset_callback( | |
| 322 | m68k_set_reset_callback(m | |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | static MACHINE_RESET( ghox ) |
| r8581 | r8582 | |
| 366 | 366 | static DRIVER_INIT( T2_Z80 ) /* init_t2_Z80(); */ |
| 367 | 367 | { |
| 368 | 368 | toaplan2_sub_cpu = CPU_2_Z80; |
| 369 | sub_cpu = | |
| 369 | sub_cpu = m | |
| 370 | 370 | register_state_save(machine); |
| 371 | 371 | } |
| 372 | 372 | |
| 373 | 373 | static DRIVER_INIT( T2_Z180 ) |
| 374 | 374 | { |
| 375 | 375 | toaplan2_sub_cpu = CPU_2_HD647180; |
| 376 | sub_cpu = | |
| 376 | sub_cpu = m | |
| 377 | 377 | register_state_save(machine); |
| 378 | 378 | } |
| 379 | 379 | |
| 380 | 380 | static DRIVER_INIT( T2_V25 ) |
| 381 | 381 | { |
| 382 | 382 | toaplan2_sub_cpu = CPU_2_V25; |
| 383 | if (devtag_get_device(machine, "mcu") != NULL) | |
| 384 | sub_cpu = devtag_get_device(machine, "mcu"); | |
| 385 | else if (devtag_get_device(machine, "audiocpu") != NULL) | |
| 386 | sub_cpu = devtag_get_device(machine, "audiocpu"); | |
| 383 | if (machine->device("mcu") != NULL) | |
| 384 | sub_cpu = machine->device("mcu"); | |
| 385 | else if (machine->device("audiocpu") != NULL) | |
| 386 | sub_cpu = machine->device("audiocpu"); | |
| 387 | 387 | register_state_save(machine); |
| 388 | 388 | } |
| 389 | 389 | |
| r8581 | r8582 | |
| 395 | 395 | |
| 396 | 396 | static DRIVER_INIT( fixeight ) |
| 397 | 397 | { |
| 398 | sub_cpu = | |
| 398 | sub_cpu = m | |
| 399 | 399 | |
| 400 | 400 | if (fixeight_sec_cpu_mem) |
| 401 | 401 | { |
| r8581 | r8582 | |
| 494 | 494 | } |
| 495 | 495 | |
| 496 | 496 | toaplan2_sub_cpu = CPU_2_Z80; |
| 497 | sub_cpu = | |
| 497 | sub_cpu = m | |
| 498 | 498 | register_state_save(machine); |
| 499 | 499 | } |
| 500 | 500 | |
| r8581 | r8582 | |
| 502 | 502 | { |
| 503 | 503 | raizing_sndirq_line = 4; |
| 504 | 504 | toaplan2_sub_cpu = CPU_2_Z80; |
| 505 | sub_cpu = | |
| 505 | sub_cpu = m | |
| 506 | 506 | register_state_save(machine); |
| 507 | 507 | } |
| 508 | 508 | |
| r8581 | r8582 | |
| 511 | 511 | bbakraid_unlimited_ver = 0; |
| 512 | 512 | raizing_sndirq_line = 2; |
| 513 | 513 | toaplan2_sub_cpu = CPU_2_Z80; |
| 514 | sub_cpu = | |
| 514 | sub_cpu = m | |
| 515 | 515 | register_state_save(machine); |
| 516 | 516 | } |
| 517 | 517 | |
| r8581 | r8582 | |
| 520 | 520 | bbakraid_unlimited_ver = 1; |
| 521 | 521 | raizing_sndirq_line = 2; |
| 522 | 522 | toaplan2_sub_cpu = CPU_2_Z80; |
| 523 | sub_cpu = | |
| 523 | sub_cpu = m | |
| 524 | 524 | register_state_save(machine); |
| 525 | 525 | } |
| 526 | 526 | |
| r8581 | r8582 | |
| 876 | 876 | if (ACCESSING_BITS_0_7) |
| 877 | 877 | { |
| 878 | 878 | mcu_data = data; |
| 879 | dogyuun_okisnd_w( | |
| 879 | dogyuun_okisnd_w( | |
| 880 | 880 | } |
| 881 | 881 | logerror("PC:%06x Writing command (%04x) to the NEC V25+ secondary CPU port\n",cpu_get_previouspc(space->cpu),mcu_data); |
| 882 | 882 | } |
| r8581 | r8582 | |
| 914 | 914 | if (mcu_data & 0xff00) |
| 915 | 915 | { |
| 916 | 916 | mcu_data = (mcu_data & 0xff00) | (data & 0xff); |
| 917 | fixeight_okisnd_w( | |
| 917 | fixeight_okisnd_w( | |
| 918 | 918 | } |
| 919 | 919 | else if (mcu_data == 0xff00) |
| 920 | 920 | { |
| r8581 | r8582 | |
| 957 | 957 | if (ACCESSING_BITS_0_7) |
| 958 | 958 | { |
| 959 | 959 | mcu_data = data; |
| 960 | batsugun_okisnd_w( | |
| 960 | batsugun_okisnd_w( | |
| 961 | 961 | } |
| 962 | 962 | logerror("PC:%06x Writing command (%04x) to the NEC V25+ secondary CPU port %02x\n",cpu_get_previouspc(space->cpu),mcu_data,(offset*2)); |
| 963 | 963 | } |
| r8581 | r8582 | |
| 990 | 990 | { |
| 991 | 991 | if (ACCESSING_BITS_0_7) |
| 992 | 992 | { |
| 993 | kbash_okisnd_w( | |
| 993 | kbash_okisnd_w( | |
| 994 | 994 | } |
| 995 | 995 | logerror("PC:%06x Writing Sound command (%04x) to the NEC V25+ secondary CPU\n",cpu_get_previouspc(space->cpu),data); |
| 996 | 996 | } |
| r8581 | r8582 | |
|---|---|---|
| 494 | 494 | { |
| 495 | 495 | gaelco_state *state = (gaelco_state *)machine->driver_data; |
| 496 | 496 | |
| 497 | state->audiocpu = | |
| 497 | state->audiocpu = m | |
| 498 | 498 | } |
| 499 | 499 | |
| 500 | 500 | static MACHINE_DRIVER_START( bigkarnk ) |
| r8581 | r8582 | |
|---|---|---|
| 697 | 697 | |
| 698 | 698 | int reg[8]; |
| 699 | 699 | |
| 700 | sound[0] = devtag_get_device(space->machine, "konami1"); | |
| 701 | sound[1] = devtag_get_device(space->machine, "konami2"); | |
| 702 | sound[2] = devtag_get_device(space->machine, "konami3"); | |
| 700 | sound[0] = space->machine->device("konami1"); | |
| 701 | sound[1] = space->machine->device("konami2"); | |
| 702 | sound[2] = space->machine->device("konami3"); | |
| 703 | 703 | |
| 704 | 704 | reg[offset] = data; |
| 705 | 705 | |
| r8581 | r8582 | |
| 1049 | 1049 | |
| 1050 | 1050 | static MACHINE_RESET( wecleman ) |
| 1051 | 1051 | { |
| 1052 | k007232_set_bank( | |
| 1052 | k007232_set_bank( m | |
| 1053 | 1053 | } |
| 1054 | 1054 | |
| 1055 | 1055 | static MACHINE_DRIVER_START( wecleman ) |
| r8581 | r8582 | |
|---|---|---|
| 159 | 159 | |
| 160 | 160 | static WRITE8_HANDLER( port_sound_w ) |
| 161 | 161 | { |
| 162 | running_device *discrete = devtag_get_device(space->machine, "discrete"); | |
| 163 | running_device *sn = devtag_get_device(space->machine, "snsnd"); | |
| 162 | running_device *discrete = space->machine->device("discrete"); | |
| 163 | running_device *sn = space->machine->device("snsnd"); | |
| 164 | 164 | |
| 165 | 165 | /* D0 - interrupt enable - also goes to PC3259 as /HTCTRL */ |
| 166 | cpu_interrupt_enable( | |
| 166 | cpu_interrupt_enable( | |
| 167 | 167 | crbaloon_set_clear_collision_address((data & 0x01) ? TRUE : FALSE); |
| 168 | 168 | |
| 169 | 169 | /* D1 - SOUND STOP */ |
| r8581 | r8582 | |
| 343 | 343 | static MACHINE_RESET( crballoon ) |
| 344 | 344 | { |
| 345 | 345 | const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_IO); |
| 346 | running_device *discrete = | |
| 346 | running_device *discrete = m | |
| 347 | 347 | |
| 348 | 348 | pc3092_reset(); |
| 349 | 349 | port_sound_w(space, 0, 0); |
| r8581 | r8582 | |
|---|---|---|
| 309 | 309 | { |
| 310 | 310 | munchmo_state *state = (munchmo_state *)machine->driver_data; |
| 311 | 311 | |
| 312 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 313 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 312 | state->maincpu = machine->device("maincpu"); | |
| 313 | state->audiocpu = machine->device("audiocpu"); | |
| 314 | 314 | |
| 315 | 315 | state_save_register_global(machine, state->palette_bank); |
| 316 | 316 | state_save_register_global(machine, state->flipscreen); |
| r8581 | r8582 | |
|---|---|---|
| 68 | 68 | { |
| 69 | 69 | main_to_sound_data = param; |
| 70 | 70 | main_to_sound_ready = 1; |
| 71 | cpu_triggerint( | |
| 71 | cpu_triggerint(m | |
| 72 | 72 | |
| 73 | 73 | /* use a timer to make long transfers faster */ |
| 74 | 74 | timer_set(machine, ATTOTIME_IN_USEC(50), NULL, 0, 0); |
| r8581 | r8582 | |
|---|---|---|
| 476 | 476 | { |
| 477 | 477 | lastduel_state *state = (lastduel_state *)machine->driver_data; |
| 478 | 478 | |
| 479 | state->audiocpu = | |
| 479 | state->audiocpu = m | |
| 480 | 480 | |
| 481 | 481 | state_save_register_global(machine, state->tilemap_priority); |
| 482 | 482 | state_save_register_global_array(machine, state->scroll); |
| r8581 | r8582 | |
|---|---|---|
| 564 | 564 | data_lo = drgnmst_asciitohex((drgnmst_PICROM_HEX[src_pos + 3])); |
| 565 | 565 | data |= (data_hi << 12) | (data_lo << 8); |
| 566 | 566 | |
| 567 | pic16c5x_set_config( | |
| 567 | pic16c5x_set_config(m | |
| 568 | 568 | |
| 569 | 569 | src_pos = 0x7fff; /* Force Exit */ |
| 570 | 570 | } |
| r8581 | r8582 | |
|---|---|---|
| 420 | 420 | { |
| 421 | 421 | boxer_state *state = (boxer_state *)machine->driver_data; |
| 422 | 422 | |
| 423 | state->maincpu = | |
| 423 | state->maincpu = m | |
| 424 | 424 | |
| 425 | 425 | state_save_register_global(machine, state->pot_state); |
| 426 | 426 | state_save_register_global(machine, state->pot_latch); |
| r8581 | r8582 | |
|---|---|---|
| 330 | 330 | { |
| 331 | 331 | ladybug_state *state = (ladybug_state *)machine->driver_data; |
| 332 | 332 | |
| 333 | state->maincpu = | |
| 333 | state->maincpu = m | |
| 334 | 334 | |
| 335 | 335 | state_save_register_global(machine, state->star_speed); |
| 336 | 336 | state_save_register_global(machine, state->gfxbank); |
| r8581 | r8582 | |
|---|---|---|
| 395 | 395 | { |
| 396 | 396 | xybots_state *state = (xybots_state *)machine->driver_data; |
| 397 | 397 | state->h256 = 0x0400; |
| 398 | atarigen_slapstic_init( | |
| 398 | atarigen_slapstic_init(m | |
| 399 | 399 | atarijsa_init(machine, "FFE200", 0x0100); |
| 400 | 400 | } |
| 401 | 401 |
| r8581 | r8582 | |
|---|---|---|
| 257 | 257 | PORT_DIPSETTING( 0x00000030, DEF_STR( 1C_2C ) ) |
| 258 | 258 | PORT_DIPSETTING( 0x00000028, DEF_STR( 1C_3C ) ) |
| 259 | 259 | PORT_DIPSETTING( 0x00000000, "2C Start/1C Continue" ) |
| 260 | PORT_DIPNAME( 0x00000040, 0x00000040, "Unkown / Unused" ) | |
| 260 | PORT_DIPNAME( 0x00000040, 0x00000040, "Unknown / Unused" ) | |
| 261 | 261 | PORT_DIPSETTING( 0x00000040, DEF_STR( Off ) ) |
| 262 | 262 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) |
| 263 | 263 | PORT_DIPNAME( 0x00000080, 0x00000080, "Bonus for PAR Play" ) |
| r8581 | r8582 | |
|---|---|---|
| 16 | 16 | **** NOTE **** |
| 17 | 17 | This hardware was clearly designed for poker games. |
| 18 | 18 | You can find a complete hardware & software analysis here: |
| 19 | http:// | |
| 19 | http:// | |
| 20 | 20 | |
| 21 | 21 | |
| 22 | 22 | ******************************************************************************* |
| r8581 | r8582 | |
| 542 | 542 | */ |
| 543 | 543 | input_selector = data & 0x0f; /* Input Selector */ |
| 544 | 544 | |
| 545 | dac_data_w( | |
| 545 | dac_data_w( | |
| 546 | 546 | |
| 547 | 547 | coin_counter_w(space->machine, 0, data & 0x40); /* Coin1 */ |
| 548 | 548 | coin_counter_w(space->machine, 1, data & 0x10); /* Coin2 */ |
| r8581 | r8582 | |
|---|---|---|
| 1977 | 1977 | static DRIVER_INIT( caterplr ) |
| 1978 | 1978 | { |
| 1979 | 1979 | const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM); |
| 1980 | running_device *device = | |
| 1980 | running_device *device = m | |
| 1981 | 1981 | memory_install_readwrite8_device_handler(space, device, 0x1000, 0x100f, 0, 0, caterplr_AY8910_r, caterplr_AY8910_w); |
| 1982 | 1982 | memory_install_read8_device_handler(space, device, 0x1780, 0x1780, 0, 0, caterplr_rand_r); |
| 1983 | 1983 | } |
| r8581 | r8582 | |
| 1986 | 1986 | static DRIVER_INIT( magworm ) |
| 1987 | 1987 | { |
| 1988 | 1988 | const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM); |
| 1989 | running_device *device = | |
| 1989 | running_device *device = m | |
| 1990 | 1990 | memory_install_write8_device_handler(space, device, 0x1001, 0x1001, 0, 0, ay8910_address_w); |
| 1991 | 1991 | memory_install_readwrite8_device_handler(space, device, 0x1003, 0x1003, 0, 0, ay8910_r, ay8910_data_w); |
| 1992 | 1992 | } |
| r8581 | r8582 | |
|---|---|---|
| 955 | 955 | |
| 956 | 956 | memory_configure_bank(machine, "bank10", 0, 4, memory_region(machine, "audiocpu") + 0xc000, 0x4000); |
| 957 | 957 | |
| 958 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 959 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 960 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 961 | state->tc0140syt = devtag_get_device(machine, "tc0140syt"); | |
| 962 | state->tc0100scn = devtag_get_device(machine, "tc0100scn"); | |
| 958 | state->maincpu = machine->device("maincpu"); | |
| 959 | state->audiocpu = machine->device("audiocpu"); | |
| 960 | state->subcpu = machine->device("sub"); | |
| 961 | state->tc0140syt = machine->device("tc0140syt"); | |
| 962 | state->tc0100scn = machine->device("tc0100scn"); | |
| 963 | 963 | |
| 964 | 964 | state_save_register_global(machine, state->cpua_ctrl); |
| 965 | 965 | state_save_register_global(machine, state->banknum); |
| r8581 | r8582 | |
|---|---|---|
| 204 | 204 | { |
| 205 | 205 | btime_state *state = (btime_state *)machine->driver_data; |
| 206 | 206 | |
| 207 | state->maincpu = | |
| 207 | state->maincpu = m | |
| 208 | 208 | state->audiocpu = NULL; |
| 209 | 209 | |
| 210 | 210 | state_save_register_global(machine, state->btime_palette); |
| r8581 | r8582 | |
|---|---|---|
| 616 | 616 | |
| 617 | 617 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0xc000], 0x4000); |
| 618 | 618 | |
| 619 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 620 | state->dsp = devtag_get_device(machine, "dsp"); | |
| 621 | state->tc0080vco = devtag_get_device(machine, "tc0080vco"); | |
| 619 | state->audiocpu = machine->device("audiocpu"); | |
| 620 | state->dsp = machine->device("dsp"); | |
| 621 | state->tc0080vco = machine->device("tc0080vco"); | |
| 622 | 622 | |
| 623 | 623 | state_save_register_global(machine, state->banknum); |
| 624 | 624 | state_save_register_global(machine, state->q.col); |
| r8581 | r8582 | |
|---|---|---|
| 342 | 342 | { |
| 343 | 343 | aquarium_state *state = (aquarium_state *)machine->driver_data; |
| 344 | 344 | |
| 345 | state->audiocpu = | |
| 345 | state->audiocpu = m | |
| 346 | 346 | |
| 347 | 347 | state_save_register_global(machine, state->aquarium_snd_ack); |
| 348 | 348 | } |
| r8581 | r8582 | |
|---|---|---|
| 3599 | 3599 | metro_state *state = (metro_state *)machine->driver_data; |
| 3600 | 3600 | |
| 3601 | 3601 | if (state->irq_line == -1) |
| 3602 | cpu_set_irq_callback( | |
| 3602 | cpu_set_irq_callback(m | |
| 3603 | 3603 | } |
| 3604 | 3604 | |
| 3605 | 3605 |
| r8581 | r8582 | |
|---|---|---|
| 116 | 116 | |
| 117 | 117 | |
| 118 | 118 | --- Team Japump!!! --- |
| 119 | http://www.rainemu.com/japump/ | |
| 120 | http://japump.i.am/ | |
| 121 | 119 | Dumped by Chackn |
| 122 | 120 | 02/25/2000 |
| 123 | 121 | |
| r8581 | r8582 | |
| 579 | 577 | { |
| 580 | 578 | angelkds_state *state = (angelkds_state *)machine->driver_data; |
| 581 | 579 | |
| 582 | state->subcpu = | |
| 580 | state->subcpu = m | |
| 583 | 581 | |
| 584 | 582 | state_save_register_global(machine, state->layer_ctrl); |
| 585 | 583 | state_save_register_global(machine, state->txbank); |
| r8581 | r8582 | |
|---|---|---|
| 106 | 106 | |
| 107 | 107 | static WRITE8_HANDLER( jrpacman_interrupt_vector_w ) |
| 108 | 108 | { |
| 109 | cpu_set_input_line_vector( | |
| 109 | cpu_set_input_line_vector( | |
| 110 | 110 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 111 | 111 | } |
| 112 | 112 |
| r8581 | r8582 | |
|---|---|---|
| 829 | 829 | { |
| 830 | 830 | nightgal_state *state = (nightgal_state *)machine->driver_data; |
| 831 | 831 | |
| 832 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 833 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 832 | state->maincpu = machine->device("maincpu"); | |
| 833 | state->subcpu = machine->device("sub"); | |
| 834 | 834 | |
| 835 | 835 | state_save_register_global(machine, state->nsc_latch); |
| 836 | 836 | state_save_register_global(machine, state->z80_latch); |
| r8581 | r8582 | |
| 1000 | 1000 | |
| 1001 | 1001 | dumped by sayu |
| 1002 | 1002 | --- Team Japump!!! --- |
| 1003 | http://japump.i.am/ | |
| 1004 | 1003 | |
| 1005 | 1004 | |
| 1006 | 1005 | */ |
| r8581 | r8582 | |
|---|---|---|
| 969 | 969 | |
| 970 | 970 | // duart_68681_init(DUART_CLOCK, duart_irq_handler, duart_tx); |
| 971 | 971 | |
| 972 | i8051_set_serial_tx_callback(devtag_get_device(machine, "soundcpu"), data_from_i8031); | |
| 973 | i8051_set_serial_rx_callback(devtag_get_device(machine, "soundcpu"), data_to_i8031); | |
| 972 | i8051_set_serial_tx_callback(machine->device("soundcpu"), data_from_i8031); | |
| 973 | i8051_set_serial_rx_callback(machine->device("soundcpu"), data_to_i8031); | |
| 974 | 974 | } |
| 975 | 975 | |
| 976 | 976 | static MACHINE_RESET( maygayv1 ) |
| 977 | 977 | { |
| 978 | 978 | // ? |
| 979 | maygayv1_devices.duart68681 = | |
| 979 | maygayv1_devices.duart68681 = m | |
| 980 | 980 | memset(i82716.dram, 0, 0x40000); |
| 981 | 981 | i82716.r[RWBA] = 0x0200; |
| 982 | 982 | } |
| r8581 | r8582 | |
|---|---|---|
| 209 | 209 | |
| 210 | 210 | machine->generic.paletteram.u8 = auto_alloc_array_clear(machine, UINT8, 0x1000); |
| 211 | 211 | |
| 212 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 213 | state->k053244 = devtag_get_device(machine, "k053244"); | |
| 214 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 215 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 212 | state->maincpu = machine->device("maincpu"); | |
| 213 | state->k053244 = machine->device("k053244"); | |
| 214 | state->k053251 = machine->device("k053251"); | |
| 215 | state->k052109 = machine->device("k052109"); | |
| 216 | 216 | |
| 217 | 217 | state_save_register_global(machine, state->videobank); |
| 218 | 218 | state_save_register_global(machine, state->sprite_colorbase); |
| r8581 | r8582 | |
| 226 | 226 | surpratk_state *state = (surpratk_state *)machine->driver_data; |
| 227 | 227 | int i; |
| 228 | 228 | |
| 229 | konami_configure_set_lines( | |
| 229 | konami_configure_set_lines(m | |
| 230 | 230 | |
| 231 | 231 | for (i = 0; i < 3; i++) |
| 232 | 232 | { |
| r8581 | r8582 | |
|---|---|---|
| 28 | 28 | 0-3 are connected to regular devices (6400-6407 has 4-bit RAM, while 6c00-6c07 |
| 29 | 29 | has a 4-bit input port). |
| 30 | 30 | |
| 31 | - The 6802 driving the TMS5220 has a push button connected to the NMI line. Test? | |
| 31 | - The 6802 driving the TMS5220 has a push button connected to the NMI line. On | |
| 32 | Zaccaria pinballs, when pressed, this causes the speech 6802 and the slave | |
| 33 | sound 6802 to play a few speech effects and sound effects; | |
| 34 | This currently doesn't work in MAME, and tracing the code it seems the code is | |
| 35 | possibly broken, made up of nonfunctional leftovers of some of the pinball test | |
| 36 | mode code. | |
| 32 | 37 | |
| 33 | 38 | ***************************************************************************/ |
| 34 | 39 | |
| r8581 | r8582 | |
| 105 | 110 | /* 150 below to scale to volume 100 */ |
| 106 | 111 | v = (150 * table[ba]) / (4700 + table[ba]); |
| 107 | 112 | //printf("dac1w %02d %04d\n", ba, v); |
| 108 | ay8910_set_volume(dev | |
| 113 | ay8910_set_volume(dev | |
| 109 | 114 | } |
| 110 | 115 | |
| 111 | 116 | |
| r8581 | r8582 | |
| 121 | 126 | |
| 122 | 127 | static READ8_DEVICE_HANDLER( zaccaria_port0a_r ) |
| 123 | 128 | { |
| 124 | return ay8910_r(dev | |
| 129 | return ay8910_r(dev | |
| 125 | 130 | } |
| 126 | 131 | |
| 127 | 132 | static WRITE8_DEVICE_HANDLER( zaccaria_port0a_w ) |
| r8581 | r8582 | |
| 136 | 141 | if ((last_port0b & 0x02) == 0x02 && (data & 0x02) == 0x00) |
| 137 | 142 | { |
| 138 | 143 | /* bit 0 goes to the 8910 #0 BC1 pin */ |
| 139 | ay8910_data_address_w(dev | |
| 144 | ay8910_data_address_w(dev | |
| 140 | 145 | } |
| 141 | 146 | else if ((last_port0b & 0x02) == 0x00 && (data & 0x02) == 0x02) |
| 142 | 147 | { |
| r8581 | r8582 | |
| 148 | 153 | if ((last_port0b & 0x08) == 0x08 && (data & 0x08) == 0x00) |
| 149 | 154 | { |
| 150 | 155 | /* bit 2 goes to the 8910 #1 BC1 pin */ |
| 151 | ay8910_data_address_w(dev | |
| 156 | ay8910_data_address_w(dev | |
| 152 | 157 | } |
| 153 | 158 | else if ((last_port0b & 0x08) == 0x00 && (data & 0x08) == 0x08) |
| 154 | 159 | { |
| r8581 | r8582 | |
| 162 | 167 | |
| 163 | 168 | static INTERRUPT_GEN( zaccaria_cb1_toggle ) |
| 164 | 169 | { |
| 165 | running_device *pia0 = dev | |
| 170 | running_device *pia0 = dev | |
| 166 | 171 | static int toggle = 0; |
| 167 | 172 | |
| 168 | pia6821_cb1_w(pia0, | |
| 173 | pia6821_cb1_w(pia0, | |
| 169 | 174 | toggle ^= 1; |
| 170 | 175 | } |
| 171 | 176 | |
| 172 | 177 | static WRITE8_DEVICE_HANDLER( zaccaria_port1b_w ) |
| 173 | 178 | { |
| 174 | running_device *tms = dev | |
| 179 | running_device *tms = dev | |
| 175 | 180 | |
| 176 | 181 | // bit 0 = /RS |
| 177 | 182 | tms5220_rsq_w(tms, (data >> 0) & 0x01); |
| r8581 | r8582 | |
| 194 | 199 | |
| 195 | 200 | static WRITE8_HANDLER( sound1_command_w ) |
| 196 | 201 | { |
| 197 | running_device *pia0 = devtag_get_device(space->machine, "pia0"); | |
| 198 | pia6821_ca1_w(pia0, 0, data & 0x80); | |
| 202 | running_device *pia0 = space->machine->device("pia0"); | |
| 203 | pia6821_ca1_w(pia0, data & 0x80); | |
| 199 | 204 | soundlatch2_w(space, 0, data); |
| 200 | 205 | } |
| 201 | 206 | |
| r8581 | r8582 | |
| 282 | 287 | AM_RANGE(0x8000, 0xdfff) AM_ROM |
| 283 | 288 | ADDRESS_MAP_END |
| 284 | 289 | |
| 290 | /* slave sound cpu, produces music and sound effects */ | |
| 291 | /* mapping: | |
| 292 | A15 A14 A13 A12 A11 A10 A09 A08 A07 A06 A05 A04 A03 A02 A01 A00 | |
| 293 | 0 0 0 0 0 0 0 0 0 * * * * * * * RW 6802 internal ram | |
| 294 | 0 0 0 x x x x x x x x x x x x x Open bus (for area that doesn't overlap ram) | |
| 295 | 0 0 1 x x x x x x x x x x x x x Open bus | |
| 296 | 0 1 0 x x x x x x x x x 0 0 x x Open bus | |
| 297 | 0 1 0 x x x x x x x x x 0 1 x x Open bus | |
| 298 | 0 1 0 x x x x x x x x x 1 0 x x Open bus | |
| 299 | 0 1 0 x x x x x x x x x 1 1 * * RW 6821 PIA @ 4I | |
| 300 | 0 1 1 x x x x x x x x x x x x x Open bus | |
| 301 | 1 0 % % * * * * * * * * * * * * R /CS4A: Enable Rom 13 | |
| 302 | 1 1 % % * * * * * * * * * * * * R /CS5A: Enable Rom 9 | |
| 303 | note that the % bits go to pins 2 (6802 A12) and 26 (6802 A13) of the roms | |
| 304 | monymony and jackrabt both use 2764 roms, which use pin 2 as A12 and pin 26 as N/C don't care | |
| 305 | hence for actual chips used, the mem map is: | |
| 306 | 1 0 x * * * * * * * * * * * * * R /CS4A: Enable Rom 13 | |
| 307 | 1 1 x * * * * * * * * * * * * * R /CS5A: Enable Rom 9 | |
| 308 | ||
| 309 | 6821 PIA: CA1 comes from the master sound cpu's latch bit 7 (which is also connected to the AY chip at 4G's IOB1); CB1 comes from a periodic counter clocked by the 6802's clock, divided by 4096. CA2 and CB2 are disconnected. PA0-7 connect to the data busses of the AY-3-8910 chips; PB0 and PB1 connect to the BC1 and BDIR pins of the AY chip at 4G; PB2 and PB3 connect to the BC1 and BDIR pins of the AY chip at 4H. | |
| 310 | */ | |
| 285 | 311 | static ADDRESS_MAP_START( sound_map_1, ADDRESS_SPACE_PROGRAM, 8 ) |
| 286 | 312 | AM_RANGE(0x0000, 0x007f) AM_RAM |
| 287 | AM_RANGE(0x500c, 0x500f) AM_DEVREADWRITE("pia0", pia6821_r, pia6821_w) | |
| 288 | AM_RANGE(0xa000, 0xbfff) AM_ROM | |
| 289 | AM_RANGE(0xe000, 0xffff) AM_ROM | |
| 313 | AM_RANGE(0x500c, 0x500f) AM_DEVREADWRITE("pia0", pia6821_r, pia6821_w) AM_MIRROR(0x1ff0) | |
| 314 | AM_RANGE(0x8000, 0x9fff) AM_ROM AM_MIRROR(0x2000) // rom 13 | |
| 315 | AM_RANGE(0xc000, 0xdfff) AM_ROM AM_MIRROR(0x2000) // rom 9 | |
| 290 | 316 | ADDRESS_MAP_END |
| 291 | 317 | |
| 318 | /* master sound cpu, controls speech directly */ | |
| 319 | /* mapping: | |
| 320 | A15 A14 A13 A12 A11 A10 A09 A08 A07 A06 A05 A04 A03 A02 A01 A00 | |
| 321 | 0 0 0 0 0 0 0 0 0 * * * * * * * RW 6802 internal ram | |
| 322 | **** x 0 0 0 x x x x 1 x x 0 x x * * Open bus (test mode writes as if there was another PIA here) | |
| 323 | x 0 0 0 x x x x 1 x x 1 x x * * RW 6821 PIA @ 1I | |
| 324 | x 0 0 1 0 0 x x x x x x x x x x W MC1408 DAC | |
| 325 | x x 0 1 0 1 x x x x x x x x x x W Command to slave sound1 cpu | |
| 326 | x x 0 1 1 0 x x x x x x x x x x R Command read latch from z80 | |
| 327 | x x 0 1 1 1 x x x x x x x x x x Open bus | |
| 328 | % % 1 0 * * * * * * * * * * * * R /CS1A: Enable Rom 8 | |
| 329 | % % 1 1 * * * * * * * * * * * * R /CS0A: Enable Rom 7 | |
| 330 | note that the % bits go to pins 2 (6802 A14) and 26 (6802 A15) of the roms | |
| 331 | monymony and jackrabt both use 2764 roms, which use pin 2 as A12 and pin 26 as N/C don't care | |
| 332 | hence for actual chips used, the mem map is: | |
| 333 | x * 1 0 * * * * * * * * * * * * R /CS1A: Enable Rom 8 | |
| 334 | x * 1 1 * * * * * * * * * * * * R /CS0A: Enable Rom 7 | |
| 335 | ||
| 336 | 6821 PIA: PA0-7, CA2 and CB1 connect to the TMS5200; CA1 and CB2 are disconnected, though the test mode assumes there's something connected to CB2 (possibly another LED like the one connected to PB4); PB3 connects to 'ACS' which goes to the z80. | |
| 337 | */ | |
| 292 | 338 | static ADDRESS_MAP_START( sound_map_2, ADDRESS_SPACE_PROGRAM, 8 ) |
| 293 | AM_RANGE(0x0000, 0x007f) AM_RAM | |
| 294 | AM_RANGE(0x0090, 0x0093) AM_DEVREADWRITE("pia1", pia6821_r, pia6821_w) | |
| 295 | AM_RANGE(0x1000, 0x1000) AM_DEVWRITE("dac2", mc1408_data_w) /* MC1408 */ | |
| 296 | AM_RANGE(0x1400, 0x1400) AM_WRITE(sound1_command_w) | |
| 297 | AM_RANGE(0x1800, 0x1800) AM_READ(soundlatch_r) | |
| 298 | AM_RANGE(0xa000, 0xbfff) AM_ROM | |
| 299 | AM_RANGE(0xe000, 0xffff) AM_ROM | |
| 339 | AM_RANGE(0x0000, 0x007f) AM_RAM /* 6802 internal ram */ | |
| 340 | AM_RANGE(0x0090, 0x0093) AM_DEVREADWRITE("pia1", pia6821_r, pia6821_w) AM_MIRROR(0x8F6C) | |
| 341 | AM_RANGE(0x1000, 0x1000) AM_DEVWRITE("dac2", mc1408_data_w) AM_MIRROR(0x83FF) /* MC1408 */ | |
| 342 | AM_RANGE(0x1400, 0x1400) AM_WRITE(sound1_command_w) AM_MIRROR(0xC3FF) | |
| 343 | AM_RANGE(0x1800, 0x1800) AM_READ(soundlatch_r) AM_MIRROR(0xC3FF) | |
| 344 | AM_RANGE(0x2000, 0x2fff) AM_ROM AM_MIRROR(0x8000) // rom 8 with A12 low | |
| 345 | AM_RANGE(0x3000, 0x3fff) AM_ROM AM_MIRROR(0x8000) // rom 7 with A12 low | |
| 346 | AM_RANGE(0x6000, 0x6fff) AM_ROM AM_MIRROR(0x8000) // rom 8 with A12 high | |
| 347 | AM_RANGE(0x7000, 0x7fff) AM_ROM AM_MIRROR(0x8000) // rom 7 with A12 high | |
| 300 | 348 | ADDRESS_MAP_END |
| 301 | 349 | |
| 302 | 350 | |
| r8581 | r8582 | |
| 532 | 580 | |
| 533 | 581 | static const tms5220_interface tms5220_config = |
| 534 | 582 | { |
| 535 | DEVCB_DEVICE_HANDLER("pia1", pia6821_cb1_w), /* IRQ handler */ | |
| 536 | DEVCB_DEVICE_HANDLER("pia1", pia6821_ca2_w) /* READYQ handler */ | |
| 583 | DEVCB_DEVICE_LINE("pia1", pia6821_cb1_w), /* IRQ handler */ | |
| 584 | DEVCB_DEVICE_LINE("pia1", pia6821_ca2_w) /* READYQ handler */ | |
| 537 | 585 | }; |
| 538 | 586 | |
| 539 | 587 | |
| r8581 | r8582 | |
| 618 | 666 | ROM_CONTINUE( 0xd000, 0x1000 ) |
| 619 | 667 | |
| 620 | 668 | ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for first 6802 */ |
| 621 | ROM_LOAD( "snd13.2g", 0xa000, 0x2000, CRC(78b01b98) SHA1(2aabed56cdae9463deb513c0c5021f6c8dfd271e) ) | |
| 622 | ROM_LOAD( "snd9.1i", 0xe000, 0x2000, CRC(94e3858b) SHA1(04961f67b95798b530bd83355dec612389f22255) ) | |
| 669 | ROM_LOAD( "snd13.2g", 0x8000, 0x2000, CRC(78b01b98) SHA1(2aabed56cdae9463deb513c0c5021f6c8dfd271e) ) | |
| 670 | ROM_LOAD( "snd9.1i", 0xc000, 0x2000, CRC(94e3858b) SHA1(04961f67b95798b530bd83355dec612389f22255) ) | |
| 623 | 671 | |
| 624 | 672 | ROM_REGION( 0x10000, "audio2", 0 ) /* 64k for second 6802 */ |
| 625 | ROM_LOAD( "snd8.1h", 0xa000, 0x1000, CRC(aad76193) SHA1(e08fc184efced392ee902c4cc9daaaf3310cdfe2) ) | |
| 626 | ROM_CONTINUE( 0xe000, 0x1000 ) | |
| 627 | ROM_LOAD( "snd7.1g", 0xb000, 0x1000, CRC(1e8ffe3e) SHA1(858ee7abe88d5801237e519cae2b50ae4bf33a58) ) | |
| 628 | ROM_CONTINUE( 0xf000, 0x1000 ) | |
| 673 | ROM_LOAD( "snd8.1h", 0x2000, 0x1000, CRC(aad76193) SHA1(e08fc184efced392ee902c4cc9daaaf3310cdfe2) ) | |
| 674 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 675 | ROM_LOAD( "snd7.1g", 0x3000, 0x1000, CRC(1e8ffe3e) SHA1(858ee7abe88d5801237e519cae2b50ae4bf33a58) ) | |
| 676 | ROM_CONTINUE( 0x7000, 0x1000 ) | |
| 629 | 677 | |
| 630 | 678 | ROM_REGION( 0x6000, "gfx1", 0 ) |
| 631 | 679 | ROM_LOAD( "bg1.2d", 0x0000, 0x2000, CRC(82ab4d1a) SHA1(5aaf42a508df236f2e7c844d377132d73053907b) ) |
| r8581 | r8582 | |
| 653 | 701 | ROM_LOAD( "cpu-01.6h", 0xd000, 0x1000, CRC(dd5979cf) SHA1(e9afe7002b2258a1c3132bdd951c6e20d473fb6a) ) |
| 654 | 702 | |
| 655 | 703 | ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for first 6802 */ |
| 656 | ROM_LOAD( "13snd.2g", 0xa000, 0x2000, CRC(fc05654e) SHA1(ed9c66672fe89c41e320e1d27b53f5efa92dce9c) ) | |
| 657 | ROM_LOAD( "9snd.1i", 0xe000, 0x2000, CRC(3dab977f) SHA1(3e79c06d2e70b050f01b7ac58be5127ba87904b0) ) | |
| 704 | ROM_LOAD( "13snd.2g", 0x8000, 0x2000, CRC(fc05654e) SHA1(ed9c66672fe89c41e320e1d27b53f5efa92dce9c) ) | |
| 705 | ROM_LOAD( "9snd.1i", 0xc000, 0x2000, CRC(3dab977f) SHA1(3e79c06d2e70b050f01b7ac58be5127ba87904b0) ) | |
| 658 | 706 | |
| 659 | 707 | ROM_REGION( 0x10000, "audio2", 0 ) /* 64k for second 6802 */ |
| 660 | ROM_LOAD( "8snd.1h", 0xa000, 0x1000, CRC(f4507111) SHA1(0513f0831b94aeda84aa4f3b4a7c60dfc5113b2d) ) | |
| 661 | ROM_CONTINUE( 0xe000, 0x1000 ) | |
| 662 | ROM_LOAD( "7snd.1g", 0xb000, 0x1000, CRC(c722eff8) SHA1(d8d1c091ab80ea2d6616e4dc030adc9905c0a496) ) | |
| 663 | ROM_CONTINUE( 0xf000, 0x1000 ) | |
| 708 | ROM_LOAD( "8snd.1h", 0x2000, 0x1000, CRC(f4507111) SHA1(0513f0831b94aeda84aa4f3b4a7c60dfc5113b2d) ) | |
| 709 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 710 | ROM_LOAD( "7snd.1g", 0x3000, 0x1000, CRC(c722eff8) SHA1(d8d1c091ab80ea2d6616e4dc030adc9905c0a496) ) | |
| 711 | ROM_CONTINUE( 0x7000, 0x1000 ) | |
| 664 | 712 | |
| 665 | 713 | ROM_REGION( 0x6000, "gfx1", 0 ) |
| 666 | 714 | ROM_LOAD( "1bg.2d", 0x0000, 0x2000, CRC(9f880ef5) SHA1(0ee20fb7c794f6dafdaf2c9ee8456221c9d668c5) ) |
| r8581 | r8582 | |
| 692 | 740 | ROM_CONTINUE( 0xd000, 0x1000 ) |
| 693 | 741 | |
| 694 | 742 | ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for first 6802 */ |
| 695 | ROM_LOAD( "13snd.2g", 0xa000, 0x2000, CRC(fc05654e) SHA1(ed9c66672fe89c41e320e1d27b53f5efa92dce9c) ) | |
| 696 | ROM_LOAD( "9snd.1i", 0xe000, 0x2000, CRC(3dab977f) SHA1(3e79c06d2e70b050f01b7ac58be5127ba87904b0) ) | |
| 743 | ROM_LOAD( "13snd.2g", 0x8000, 0x2000, CRC(fc05654e) SHA1(ed9c66672fe89c41e320e1d27b53f5efa92dce9c) ) | |
| 744 | ROM_LOAD( "9snd.1i", 0xc000, 0x2000, CRC(3dab977f) SHA1(3e79c06d2e70b050f01b7ac58be5127ba87904b0) ) | |
| 697 | 745 | |
| 698 | 746 | ROM_REGION( 0x10000, "audio2", 0 ) /* 64k for second 6802 */ |
| 699 | ROM_LOAD( "8snd.1h", 0xa000, 0x1000, CRC(f4507111) SHA1(0513f0831b94aeda84aa4f3b4a7c60dfc5113b2d) ) | |
| 700 | ROM_CONTINUE( 0xe000, 0x1000 ) | |
| 701 | ROM_LOAD( "7snd.1g", 0xb000, 0x1000, CRC(c722eff8) SHA1(d8d1c091ab80ea2d6616e4dc030adc9905c0a496) ) | |
| 702 | ROM_CONTINUE( 0xf000, 0x1000 ) | |
| 747 | ROM_LOAD( "8snd.1h", 0x2000, 0x1000, CRC(f4507111) SHA1(0513f0831b94aeda84aa4f3b4a7c60dfc5113b2d) ) | |
| 748 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 749 | ROM_LOAD( "7snd.1g", 0x3000, 0x1000, CRC(c722eff8) SHA1(d8d1c091ab80ea2d6616e4dc030adc9905c0a496) ) | |
| 750 | ROM_CONTINUE( 0x7000, 0x1000 ) | |
| 703 | 751 | |
| 704 | 752 | ROM_REGION( 0x6000, "gfx1", 0 ) |
| 705 | 753 | ROM_LOAD( "1bg.2d", 0x0000, 0x2000, CRC(9f880ef5) SHA1(0ee20fb7c794f6dafdaf2c9ee8456221c9d668c5) ) |
| r8581 | r8582 | |
| 727 | 775 | ROM_CONTINUE( 0xd000, 0x1000 ) |
| 728 | 776 | |
| 729 | 777 | ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for first 6802 */ |
| 730 | ROM_LOAD( "13snd.2g", 0xa000, 0x2000, CRC(fc05654e) SHA1(ed9c66672fe89c41e320e1d27b53f5efa92dce9c) ) | |
| 731 | ROM_LOAD( "9snd.1i", 0xe000, 0x2000, CRC(3dab977f) SHA1(3e79c06d2e70b050f01b7ac58be5127ba87904b0) ) | |
| 778 | ROM_LOAD( "13snd.2g", 0x8000, 0x2000, CRC(fc05654e) SHA1(ed9c66672fe89c41e320e1d27b53f5efa92dce9c) ) | |
| 779 | ROM_LOAD( "9snd.1i", 0xc000, 0x2000, CRC(3dab977f) SHA1(3e79c06d2e70b050f01b7ac58be5127ba87904b0) ) | |
| 732 | 780 | |
| 733 | 781 | ROM_REGION( 0x10000, "audio2", 0 ) /* 64k for second 6802 */ |
| 734 | ROM_LOAD( "8snd.1h", 0xa000, 0x1000, CRC(f4507111) SHA1(0513f0831b94aeda84aa4f3b4a7c60dfc5113b2d) ) | |
| 735 | ROM_CONTINUE( 0xe000, 0x1000 ) | |
| 736 | ROM_LOAD( "7snd.1g", 0xb000, 0x1000, CRC(c722eff8) SHA1(d8d1c091ab80ea2d6616e4dc030adc9905c0a496) ) | |
| 737 | ROM_CONTINUE( 0xf000, 0x1000 ) | |
| 782 | ROM_LOAD( "8snd.1h", 0x2000, 0x1000, CRC(f4507111) SHA1(0513f0831b94aeda84aa4f3b4a7c60dfc5113b2d) ) | |
| 783 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 784 | ROM_LOAD( "7snd.1g", 0x3000, 0x1000, CRC(c722eff8) SHA1(d8d1c091ab80ea2d6616e4dc030adc9905c0a496) ) | |
| 785 | ROM_CONTINUE( 0x7000, 0x1000 ) | |
| 738 | 786 | |
| 739 | 787 | ROM_REGION( 0x6000, "gfx1", 0 ) |
| 740 | 788 | ROM_LOAD( "1bg.2d", 0x0000, 0x2000, CRC(9f880ef5) SHA1(0ee20fb7c794f6dafdaf2c9ee8456221c9d668c5) ) |
| r8581 | r8582 | |
|---|---|---|
| 419 | 419 | IS61C1024 - ISSI 128k x4 High Speed CMOS Static RAM (SOJ32) |
| 420 | 420 | KM6161002 - Samsung 64k x4 Ultra High Speed CMOS Video Static RAM (SOJ44) |
| 421 | 421 | QS1000 - QDSP QS1000 AdMOS 9638R, Wavetable Audio chip, clock input of 24.000MHz (QFP100) |
| 422 | see http://www.hwass.co.kr/product.htm for more info on QS100x chips. | |
| 423 | 422 | QS1001A - QDSP QS1001A 512k x8 MaskROM (SOP32) |
| 424 | 423 | EV0514-001 - Custom Eolith IC (QFP100) |
| 425 | 424 | VSync - 60Hz |
| r8581 | r8582 | |
| 553 | 552 | KM6161002 - Samsung 64k x16 Ultra High Speed CMOS Video Static RAM (SOJ44) |
| 554 | 553 | TDA1519 - Audio Power AMP |
| 555 | 554 | QS1000 - QDSP QS1000 AdMOS 9638R, Wavetable Audio chip, clock input of 24.000MHz (QFP100) |
| 556 | see http://www.hwass.co.kr/product.htm for more info on QS100x chips. | |
| 557 | 555 | QS1001A - QDSP QS1001A 512k x8 MaskROM (SOP32) |
| 558 | 556 | EV0514-001 - Custom Eolith IC (QFP100) |
| 559 | 557 | VSync - 60Hz |
| r8581 | r8582 | |
| 626 | 624 | KM6161002 - Samsung 64k x16 Ultra High Speed CMOS Video Static RAM (SOJ44) |
| 627 | 625 | TDA1519 - Audio Power AMP |
| 628 | 626 | QS1000 - QDSP QS1000 AdMOS 9638R, Wavetable Audio chip, clock input of 24.000MHz (QFP100) |
| 629 | see http://www.hwass.co.kr/product.htm for more info on QS100x chips. | |
| 630 | 627 | QS1001A - QDSP QS1001A 512k x8 MaskROM (SOP32) |
| 631 | 628 | EV0514-001 - Custom Eolith IC (QFP100) |
| 632 | 629 | VSync - 60Hz |
| r8581 | r8582 | |
| 716 | 713 | KM6161002 - Samsung 64k x16 Ultra High Speed CMOS Video Static RAM (SOJ44) |
| 717 | 714 | KA22065 - Audio Power AMP |
| 718 | 715 | QS1000 - QDSP QS1000 AdMOS 9638R, Wavetable Audio chip, clock input of 24.000MHz (QFP100) |
| 719 | see http://www.hwass.co.kr/product.htm for more info on QS100x chips. | |
| 720 | 716 | QS1001A - QDSP QS1001A 512k x8 MaskROM (SOP32) |
| 721 | 717 | EV0514-001 - Custom Eolith IC (QFP100) |
| 722 | 718 | VSync - 60Hz |
| r8581 | r8582 | |
| 989 | 985 | KM6161002 - Samsung 64k x16 Ultra High Speed CMOS Video Static RAM (SOJ44) |
| 990 | 986 | TDA1519 - Audio Power AMP |
| 991 | 987 | QS1000 - QDSP QS1000 AdMOS 9638R, Wavetable Audio chip, clock input of 24.000MHz (QFP100) |
| 992 | see http://www.hwass.co.kr/product.htm for more info on QS100x chips. | |
| 993 | 988 | QS1001A - QDSP QS1001A 512k x8 MaskROM (SOP32) |
| 994 | 989 | EV0514-001 - Custom Eolith IC (QFP100) |
| 995 | 990 | VSync - 60Hz |
| r8581 | r8582 | |
|---|---|---|
| 129 | 129 | ROM_START( chihiro ) |
| 130 | 130 | CHIHIRO_BIOS |
| 131 | 131 | |
| 132 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 133 | ||
| 134 | 132 | DISK_REGION( "gdrom" ) |
| 135 | 133 | |
| 136 | 134 | ROM_REGION( 0x50, "picreturn", ROMREGION_ERASE) |
| r8581 | r8582 | |
| 141 | 139 | ROM_START( hotd3 ) |
| 142 | 140 | CHIHIRO_BIOS |
| 143 | 141 | |
| 144 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 145 | ||
| 146 | 142 | DISK_REGION( "gdrom" ) |
| 147 | 143 | DISK_IMAGE_READONLY( "gdx-0001", 0, SHA1(174c72f851d0c97e8993227467f16b0781ed2f5c) ) |
| 148 | 144 | |
| r8581 | r8582 | |
| 153 | 149 | ROM_START( outr2 ) |
| 154 | 150 | CHIHIRO_BIOS |
| 155 | 151 | |
| 156 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 157 | ||
| 158 | 152 | DISK_REGION( "gdrom" ) |
| 159 | 153 | DISK_IMAGE_READONLY( "gdx-0004a", 0, SHA1(27acd2d0680e6bafa0d052f60b4372adc37224fd) ) |
| 160 | 154 | |
| r8581 | r8582 | |
| 183 | 177 | ROM_START( ghostsqu ) |
| 184 | 178 | CHIHIRO_BIOS |
| 185 | 179 | |
| 186 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 187 | ||
| 188 | 180 | DISK_REGION( "gdrom" ) |
| 189 | 181 | DISK_IMAGE_READONLY( "gdx-0012a", 0, SHA1(d7d78ce4992cb16ee5b4ac6ca7a37c46b07e8c14) ) |
| 190 | 182 | |
| r8581 | r8582 | |
| 192 | 184 | ROM_LOAD("317-0398-com.data", 0x00, 0x50, CRC(8c5391a2) SHA1(e64cadeb30c94c3cd4002630cd79cc76c7bde2ed) ) |
| 193 | 185 | ROM_END |
| 194 | 186 | |
| 187 | ||
| 188 | ROM_START( gundamos ) | |
| 189 | CHIHIRO_BIOS | |
| 190 | ||
| 191 | DISK_REGION( "gdrom" ) | |
| 192 | DISK_IMAGE_READONLY( "gdx-0013", 0, SHA1(96b3dafcc2d2d6803fe3bf43a245d43ee5e0e5a6) ) | |
| 193 | ||
| 194 | ROM_REGION( 0x50, "picreturn", ROMREGION_ERASE) | |
| 195 | ROM_LOAD("gdx-0013.data", 0x00, 0x50, CRC(0479c383) SHA1(7e86a037d2f9d09cec61a38cb19de510bf9482b3) ) | |
| 196 | ROM_END | |
| 197 | ||
| 195 | 198 | /* |
| 196 | 199 | |
| 197 | 200 | Title VIRTUA COP 3 |
| r8581 | r8582 | |
| 219 | 222 | ROM_START( vcop3 ) |
| 220 | 223 | CHIHIRO_BIOS |
| 221 | 224 | |
| 222 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 223 | ||
| 224 | 225 | DISK_REGION( "gdrom" ) |
| 225 | 226 | DISK_IMAGE_READONLY( "gdx-0003a", 0, SHA1(cdfec1d2ef02ae9e29cb1462f08904177bc4c9ea) ) |
| 226 | 227 | |
| r8581 | r8582 | |
| 232 | 233 | ROM_START( mj2 ) |
| 233 | 234 | CHIHIRO_BIOS |
| 234 | 235 | |
| 235 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 236 | ||
| 237 | 236 | DISK_REGION( "gdrom" ) |
| 238 | 237 | DISK_IMAGE_READONLY( "gdx-0006c", 0, SHA1(505653117a73ed8b256ccf19450e7573a4dc57e9) ) |
| 239 | 238 | |
| r8581 | r8582 | |
| 241 | 240 | ROM_LOAD("gdx-0006c.pic_data", 0x00, 0x50, NO_DUMP ) |
| 242 | 241 | ROM_END |
| 243 | 242 | |
| 243 | ROM_START( ollie ) | |
| 244 | CHIHIRO_BIOS | |
| 244 | 245 | |
| 246 | DISK_REGION( "gdrom" ) | |
| 247 | DISK_IMAGE_READONLY( "gdx-0007", 0, SHA1(8898a571a427936bffcecd3ef27cb79087d22798) ) | |
| 248 | ||
| 249 | ROM_REGION( 0x50, "picreturn", ROMREGION_ERASE) | |
| 250 | ROM_LOAD("gdx-0007.data", 0x00, 0x50, CRC(d2a8b31f) SHA1(e9ee2df30031826db6bc4bd91969e6680255dcf9) ) | |
| 251 | ROM_END | |
| 252 | ||
| 253 | ||
| 254 | ||
| 245 | 255 | ROM_START( wangmid ) |
| 246 | 256 | CHIHIRO_BIOS |
| 247 | 257 | |
| 248 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 249 | ||
| 250 | 258 | DISK_REGION( "gdrom" ) |
| 251 | 259 | DISK_IMAGE_READONLY( "gdx-0009b", 0, SHA1(e032b9fd8d5d09255592f02f7531a608e8179c9c) ) |
| 252 | 260 | |
| r8581 | r8582 | |
| 258 | 266 | ROM_START( wangmid2 ) |
| 259 | 267 | CHIHIRO_BIOS |
| 260 | 268 | |
| 261 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 262 | ||
| 263 | 269 | DISK_REGION( "gdrom" ) |
| 264 | 270 | DISK_IMAGE_READONLY( "gdx-0015", 0, SHA1(259483fd211a70c23205ffd852316d616c5a2740) ) |
| 265 | 271 | |
| r8581 | r8582 | |
| 271 | 277 | ROM_START( mj3 ) |
| 272 | 278 | CHIHIRO_BIOS |
| 273 | 279 | |
| 274 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 275 | ||
| 276 | 280 | DISK_REGION( "gdrom" ) |
| 277 | 281 | DISK_IMAGE_READONLY( "gdx-0017d", 0, SHA1(cfbbd452c8f4efe0e99f398f5521fc3574b913bb) ) |
| 278 | 282 | |
| r8581 | r8582 | |
| 280 | 284 | ROM_LOAD("gdx-0017d.pic_data", 0x00, 0x50, NO_DUMP ) |
| 281 | 285 | ROM_END |
| 282 | 286 | |
| 287 | ROM_START( scg06nt ) | |
| 288 | CHIHIRO_BIOS | |
| 283 | 289 | |
| 290 | DISK_REGION( "gdrom" ) | |
| 291 | DISK_IMAGE_READONLY( "gdx-0018a", 0, SHA1(e6f3dc8066392854ad7d83f81d3cbc81a5e340b3) ) | |
| 292 | ||
| 293 | ROM_REGION( 0x50, "picreturn", ROMREGION_ERASE) | |
| 294 | ROM_LOAD("gdx-0018.data", 0x00, 0x50, CRC(1a210abd) SHA1(43a54d028315d2dfa9f8ea6fb59265e0b980b02f) ) | |
| 295 | ROM_END | |
| 296 | ||
| 297 | ||
| 298 | ||
| 299 | ||
| 300 | ||
| 284 | 301 | GAME( 200?, chihiro, 0, chihiro_base, chihiro, 0, ROT0, "Sega", "Chihiro Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) |
| 285 | GAME( 2002, hotd3, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "The House of the Dead III [GDX-0001]", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 286 | GAME( 2002, outr2, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Out Run 2 (Rev. A) [GDX-0004A]", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 287 | GAME( 2005, mj2, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Sega Network Taisen Mahjong MJ 2 (Rev C) [GDX-0006C]", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 302 | GAME( 2002, hotd3, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "The House of the Dead III (GDX-0001)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 303 | GAME( 2003, outr2, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Out Run 2 (Rev. A) (GDX-0004A)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 304 | GAME( 2005, mj2, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Sega Network Taisen Mahjong MJ 2 (Rev C) (GDX-0006C)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 305 | GAME( 2005, ollie, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Ollie King (GDX-0007)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 288 | 306 | GAME( 2005, wangmid, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Wangan Midnight Maximum Tune (Rev. B) (Export) (GDX-0009B)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 289 | 307 | GAME( 2005, wangmid2, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Wangan Midnight Maximum Tune 2 (Export) (GDX-0015)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 290 | 308 | GAME( 2005, ghostsqu, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Ghost Squad (Ver. A?) (GDX-0012A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 309 | GAME( 2005, gundamos, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Gundam Battle Operating Simulator (GDX-0013)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 291 | 310 | GAME( 2003, vcop3, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Virtua Cop 3 (GDX-0003A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 292 | GAME( 2005, mj3, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Sega Network Taisen Mahjong MJ 3 (Rev D) [GDX-0017D]", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 311 | GAME( 2005, mj3, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Sega Network Taisen Mahjong MJ 3 (Rev D) (GDX-0017D)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 312 | GAME( 2006, scg06nt, chihiro, chihirogd, chihiro, 0, ROT0, "Sega", "Sega Club Golf 2006 Next Tours (Rev A) (GDX-0018A)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 293 | 313 |
| r8581 | r8582 | |
|---|---|---|
| 228 | 228 | { |
| 229 | 229 | commando_state *state = (commando_state *)machine->driver_data; |
| 230 | 230 | |
| 231 | state->audiocpu = | |
| 231 | state->audiocpu = m | |
| 232 | 232 | |
| 233 | 233 | state_save_register_global_array(machine, state->scroll_x); |
| 234 | 234 | state_save_register_global_array(machine, state->scroll_y); |
| r8581 | r8582 | |
|---|---|---|
| 196 | 196 | /* generate the 32V interrupt (IRQ 2) */ |
| 197 | 197 | if ((scanline % 64) == 0) |
| 198 | 198 | if (state->interrupt_enable & 4) |
| 199 | atarigen_scanline_int_gen( | |
| 199 | atarigen_scanline_int_gen( | |
| 200 | 200 | } |
| 201 | 201 | } |
| 202 | 202 | |
| r8581 | r8582 | |
| 243 | 243 | atarigen_eeprom_reset(&state->atarigen); |
| 244 | 244 | slapstic_reset(); |
| 245 | 245 | atarigen_interrupt_reset(&state->atarigen, update_interrupts); |
| 246 | atarigen_sound_io_reset( | |
| 246 | atarigen_sound_io_reset(m | |
| 247 | 247 | atarigen_scanline_timer_reset(*machine->primary_screen, scanline_update, 64); |
| 248 | 248 | memory_set_direct_update_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), atarisy2_direct_handler); |
| 249 | 249 | |
| r8581 | r8582 | |
| 379 | 379 | |
| 380 | 380 | if (state->atarigen.cpu_to_sound_ready) result |= 0x01; |
| 381 | 381 | if (state->atarigen.sound_to_cpu_ready) result |= 0x02; |
| 382 | if ((state->has_tms5220) && (tms5220_readyq_r( | |
| 382 | if ((state->has_tms5220) && (tms5220_readyq_r( | |
| 383 | 383 | result &= ~0x04; |
| 384 | 384 | if (!(input_port_read(space->machine, "1801") & 0x80)) result |= 0x10; |
| 385 | 385 | |
| r8581 | r8582 | |
| 394 | 394 | if (state->has_tms5220) |
| 395 | 395 | { |
| 396 | 396 | data = 12 | ((data >> 5) & 1); |
| 397 | tms5220_set_frequency( | |
| 397 | tms5220_set_frequency( | |
| 398 | 398 | } |
| 399 | 399 | } |
| 400 | 400 | |
| r8581 | r8582 | |
| 623 | 623 | return; |
| 624 | 624 | |
| 625 | 625 | /* a large number of signals are reset when this happens */ |
| 626 | atarigen_sound_io_reset( | |
| 626 | atarigen_sound_io_reset( | |
| 627 | 627 | devtag_reset(space->machine, "ymsnd"); |
| 628 | 628 | if (state->has_tms5220) |
| 629 | 629 | { |
| r8581 | r8582 | |
| 684 | 684 | atarisy2_state *state = (atarisy2_state *)space->machine->driver_data; |
| 685 | 685 | if (state->has_tms5220) |
| 686 | 686 | { |
| 687 | tms5220_data_w( | |
| 687 | tms5220_data_w( | |
| 688 | 688 | } |
| 689 | 689 | } |
| 690 | 690 | |
| r8581 | r8582 | |
| 693 | 693 | atarisy2_state *state = (atarisy2_state *)space->machine->driver_data; |
| 694 | 694 | if (state->has_tms5220) |
| 695 | 695 | { |
| 696 | tms5220_wsq_w( | |
| 696 | tms5220_wsq_w( | |
| 697 | 697 | } |
| 698 | 698 | } |
| 699 | 699 | |
| r8581 | r8582 | |
| 3053 | 3053 | |
| 3054 | 3054 | state->pedal_count = 0; |
| 3055 | 3055 | state->has_tms5220 = 1; |
| 3056 | tms5220_rsq_w( | |
| 3056 | tms5220_rsq_w(m | |
| 3057 | 3057 | } |
| 3058 | 3058 | |
| 3059 | 3059 | |
| r8581 | r8582 | |
| 3094 | 3094 | |
| 3095 | 3095 | state->pedal_count = -1; |
| 3096 | 3096 | state->has_tms5220 = 1; |
| 3097 | tms5220_rsq_w( | |
| 3097 | tms5220_rsq_w(m | |
| 3098 | 3098 | } |
| 3099 | 3099 | |
| 3100 | 3100 | |
| r8581 | r8582 | |
| 3250 | 3250 | |
| 3251 | 3251 | state->pedal_count = 2; |
| 3252 | 3252 | state->has_tms5220 = 1; |
| 3253 | tms5220_rsq_w( | |
| 3253 | tms5220_rsq_w(m | |
| 3254 | 3254 | } |
| 3255 | 3255 | |
| 3256 | 3256 |
| r8581 | r8582 | |
|---|---|---|
| 147 | 147 | |
| 148 | 148 | static INTERRUPT_GEN( skydiver_interrupt ) |
| 149 | 149 | { |
| 150 | running_device *discrete = dev | |
| 150 | running_device *discrete = dev | |
| 151 | 151 | |
| 152 | 152 | /* Convert range data to divide value and write to sound */ |
| 153 | 153 | discrete_sound_w(discrete, SKYDIVER_RANGE_DATA, (0x01 << (~skydiver_videoram[0x394] & 0x07)) & 0xff); // Range 0-2 |
| r8581 | r8582 | |
|---|---|---|
| 227 | 227 | |
| 228 | 228 | static WRITE8_HANDLER( ninjakd2_pcm_play_w ) |
| 229 | 229 | { |
| 230 | running_device *samples = | |
| 230 | running_device *samples = | |
| 231 | 231 | const UINT8* const rom = memory_region(space->machine, "pcm"); |
| 232 | 232 | |
| 233 | 233 | // only Ninja Kid II uses this |
| r8581 | r8582 | |
|---|---|---|
| 452 | 452 | |
| 453 | 453 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0x10000], 0x8000); |
| 454 | 454 | |
| 455 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 456 | state->dac = devtag_get_device(machine, "dac"); | |
| 455 | state->maincpu = machine->device("maincpu"); | |
| 456 | state->dac = machine->device("dac"); | |
| 457 | 457 | |
| 458 | 458 | state_save_register_global(machine, state->dac_busy); |
| 459 | 459 | state_save_register_global(machine, state->flip_screen); |
| r8581 | r8582 | |
|---|---|---|
| 480 | 480 | memory_configure_bank(machine, "bank2", 0, 3, &AUDIO[0x00000], 0x4000); |
| 481 | 481 | memory_configure_bank(machine, "bank2", 3, 5, &AUDIO[0x10000], 0x4000); |
| 482 | 482 | |
| 483 | state->audiocpu = | |
| 483 | state->audiocpu = m | |
| 484 | 484 | |
| 485 | 485 | state_save_register_global_pointer(machine, state->videoram, 0x4000); |
| 486 | 486 | state_save_register_global(machine, state->layers_ctrl); |
| r8581 | r8582 | |
|---|---|---|
| 291 | 291 | break; |
| 292 | 292 | case 6: |
| 293 | 293 | warpwarp_ball_on = data & 1; |
| 294 | cpu_interrupt_enable( | |
| 294 | cpu_interrupt_enable( | |
| 295 | 295 | if (~data & 1) |
| 296 | 296 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 297 | 297 | break; |
| r8581 | r8582 | |
|---|---|---|
| 1 | /* | |
| 1 | /* | |
| 2 | 2 | |
| 3 | /* driver by | |
| 3 | Wheels & Fire | |
| 4 | ||
| 5 | driver by | |
| 4 | 6 | David Haywood |
| 5 | 7 | Tomasz Slanina |
| 6 | */ | |
| 7 | 8 | |
| 8 | /* | |
| 9 | 9 | |
| 10 | TODO: | |
| 11 | - sound comms | |
| 12 | - eeprom | |
| 13 | - various gfx size/pos glitches (gaps, extra rows of pixels here and there) | |
| 14 | - real gfx zoom, based on the zoom params, not lookup table | |
| 15 | - apply double buffering (sometimes gfx is displayed at y+256 every other frame (extra bits are currently masked out)) | |
| 16 | - fix road/sky (extra bits in teh scroll reg. are there two bitmap buffers? ) | |
| 17 | - bitmap layer clearing | |
| 18 | - fix wrong coords of sprites rendered into the bitmap layer (intro car) | |
| 19 | - is toggle_bit really a vblank bit ? or somethign else (blitter status ?) | |
| 20 | - implement(and find) layer enable/disable bits | |
| 21 | ||
| 22 | ||
| 23 | ||
| 24 | ||
| 25 | ---------------------------------- | |
| 10 | 26 | Produttore TCH |
| 11 | 27 | N.revisione E133 |
| 12 | 28 | |
| r8581 | r8582 | |
| 44 | 60 | level 3 interrupt = vblank interrupt |
| 45 | 61 | level 1 interrupt = blitter interrupt |
| 46 | 62 | |
| 47 | something is missing, currently needs a hack to boot | |
| 48 | 63 | |
| 64 | Blitter data foramt ( offset in words, offset in bytes, offset inside ram data table ) | |
| 65 | ||
| 66 | ||
| 67 | fedcba9876543210 | |
| 68 | ||
| 69 | 0 0 0 | |
| 70 | --------76543210 dest_x0 bits 0-7 | |
| 71 | 76543210-------- src_x0 bits 0-7 | |
| 72 | ||
| 73 | 1 2 2 | |
| 74 | --------76543210 dest_x1 bits 0-7 | |
| 75 | ||
| 76 | ||
| 77 | ||
| 78 | 2 4 4 | |
| 79 | --------76543210 dest_y0 bits 0-7 | |
| 80 | 76543210-------- src_y0 bits 0-7 | |
| 81 | 3 6 6 | |
| 82 | --------76543210 dest_y1 bits 0-7 | |
| 83 | ||
| 84 | 4 8 | |
| 85 | 5 a | |
| 86 | 6 c 8 | |
| 87 | ??------???????? image flags (directly copied from image info table, page and ?) | |
| 88 | --3210---------- image page | |
| 89 | -------8-------- src_x0 bit 8 | |
| 90 | ------8--------- src_y0 bit 8 | |
| 91 | 7 e a | |
| 92 | ????????--?----- flags | |
| 93 | ---------------X X direction (src?) | |
| 94 | --------------Y- Y direction (src?) | |
| 95 | ---------8------ dest_x0 bit 8 | |
| 96 | --------8------- dest_y0 bit 8 | |
| 97 | -----------L---- dest layer | |
| 98 | ------------??-- unknown bits, set usually when rendering target = bitmap layer | |
| 99 | ||
| 100 | ||
| 101 | 8 10 c | |
| 102 | -------5-------- x scale data1 bit 5 | |
| 103 | ------5--------- y scale data1 bit 5 | |
| 104 | -----5---------- x scale data2 bit 5 | |
| 105 | ----5----------- y scala data2 bit 5 | |
| 106 | ---D------------ x scale >200% | |
| 107 | --D------------- y scale >200% | |
| 108 | -x-------------- X direction (dest?) | |
| 109 | Y--------------- Y direction (dest?) | |
| 110 | ---------8------ scroll x bit 8 | |
| 111 | --------8------- scroll y bit 8 | |
| 112 | ----------?----- set for road ? buffer num (is there double buffering ? or two bitmap layers?) | |
| 113 | ||
| 114 | 9 12 e | |
| 115 | ---------------H x scale < 50% | |
| 116 | --------------H- y scale < 50% | |
| 117 | -------------8-- dest_x1 bit 8 | |
| 118 | ------------8--- dest_y1 bit 8 | |
| 119 | ||
| 120 | ||
| 121 | a 14 10 | |
| 122 | ---43210-------- x scale data1 bits 0-4 | |
| 123 | -4-------------- y scale data1 bit 4 | |
| 124 | --------76543210 scroll x of bitmap layer | |
| 125 | ||
| 126 | b 16 12 | |
| 127 | ---43210-------- x scale data2 bits 0-4 | |
| 128 | 10-------------- y scale data1 bits 0-1 | |
| 129 | --------76543210 scroll y of bitmap layer | |
| 130 | c 18 14 | |
| 131 | ---43210-------- y scale data2 bits 0-4 | |
| 132 | 32-------------- y scale data1 bits 2-3 | |
| 133 | d 1a | |
| 134 | e 1c | |
| 135 | f 1e | |
| 136 | ||
| 137 | ||
| 138 | ||
| 139 | ||
| 140 | X Scale Table: | |
| 141 | 76543210 | |
| 142 | ||
| 143 | ---ABCDE | |
| 144 | ---FGHIJ | |
| 145 | -------- | |
| 146 | ---K-L-M | |
| 147 | -------N | |
| 148 | ||
| 149 | Y Scale Table: | |
| 150 | 76543210 | |
| 151 | ||
| 152 | -A------ | |
| 153 | DE------ | |
| 154 | BC-FGHIJ | |
| 155 | --K-L-M- | |
| 156 | ------N- | |
| 157 | ||
| 158 | ||
| 159 | BITS ABCDE = DATA1 (0-31) | |
| 160 | BITS FGHIJ = DATA2 (0-31) | |
| 161 | BIT K - ( scale > 200% ) ? 1 : 0 | |
| 162 | BIT L - ( DATA2 != 0) ? 1 : 0 (or DATA2 MSB) | |
| 163 | BIT M - ( DATA1 != 0) ? 1 : 0 (or DATA1 MSB) | |
| 164 | BIT N - ( scale < 50% ) ? 1 : 0 | |
| 165 | ||
| 166 | ||
| 167 | pcb linking | |
| 168 | ----------- | |
| 169 | ||
| 170 | suspicious code: | |
| 171 | ||
| 172 | ||
| 173 | (write/read (exchange data)) | |
| 174 | ||
| 175 | 0A535C: 48E7 6080 movem.l D1-D2/A0, -(A7) | |
| 176 | 0A5360: 41F9 0078 0000 lea $780000.l, A0 | |
| 177 | 0A5366: D040 add.w D0, D0 | |
| 178 | 0A5368: 3181 0000 move.w D1, (A0,D0.w) ; write data | |
| 179 | ||
| 180 | 0A536C: 3239 007E 0000 move.w $7e0000.l, D1 | |
| 181 | 0A5372: 0801 000D btst #$d, D1 | |
| 182 | 0A5376: 67F4 beq $a536c | |
| 183 | ||
| 184 | 0A5378: 3230 0000 move.w (A0,D0.w), D1 ; read data | |
| 185 | 0A537C: 0241 00FF andi.w #$ff, D1 | |
| 186 | ||
| 187 | (unk., maybe sync or config ?) | |
| 188 | ||
| 189 | 0A53C2: 2F08 move.l A0, -(A7) | |
| 190 | 0A53C4: 3F01 move.w D1, -(A7) | |
| 191 | 0A53C6: 41F9 0078 0000 lea $780000.l, A0 | |
| 192 | 0A53CC: D040 add.w D0, D0 | |
| 193 | 0A53CE: 3180 0000 move.w D0, (A0,D0.w) ; write offset | |
| 194 | 0A53D2: 3180 0000 move.w D0, (A0,D0.w) ; again | |
| 195 | ||
| 196 | 0A53D6: 3239 007E 0000 move.w $7e0000.l, D1 | |
| 197 | 0A53DC: 0801 000D btst #$d, D1 ; flag test | |
| 198 | 0A53E0: 67F4 beq $a53d6 | |
| 199 | ||
| 200 | 0A53E2: 3030 0000 move.w (A0,D0.w), D0 | |
| 201 | 0A53E6: 0240 00FF andi.w #$ff, D0 | |
| 202 | 0A53EA: 321F move.w (A7)+, D1 | |
| 203 | 0A53EC: 205F movea.l (A7)+, A0 | |
| 204 | 0A53EE: 4E75 rts | |
| 205 | ||
| 206 | ||
| 49 | 207 | */ |
| 50 | 208 | |
| 51 | 209 | |
| 52 | 210 | #include "emu.h" |
| 211 | #include "machine/eeprom.h" | |
| 53 | 212 | #include "cpu/m68000/m68000.h" |
| 54 | #include "d | |
| 213 | #include "sound/d | |
| 55 | 214 | |
| 56 | static int toggle_bit; | |
| 215 | static const int ZOOM_TABLE_SIZE=1<<14; | |
| 216 | static const int NUM_SCANLINES=256-8; | |
| 217 | static const int NUM_VBLANK_LINES=8; | |
| 218 | static const int LAYER_BG=0; | |
| 219 | static const int LAYER_FG=1; | |
| 220 | static const int NUM_COLORS=256; | |
| 57 | 221 | |
| 58 | st | |
| 222 | stru | |
| 59 | 223 | { |
| 60 | return input_port_read(space->machine, "IN0") ^ toggle_bit; // mame_rand(space->machine); | |
| 61 | } | |
| 224 | INT32 x,y,unkbits; | |
| 225 | }; | |
| 62 | 226 | |
| 63 | static READ16_HANDLER( wheelfir_rand2 ) | |
| 227 | ||
| 228 | class wheelfir_state | |
| 64 | 229 | { |
| 65 | return input_port_read(space->machine, "IN1"); // mame_rand(space->machine); | |
| 66 | } | |
| 230 | public: | |
| 231 | static void *alloc(running_machine &machine) | |
| 232 | { | |
| 233 | return auto_alloc_clear(&machine, wheelfir_state(machine)); | |
| 234 | } | |
| 67 | 235 | |
| 236 | wheelfir_state(running_machine &machine) { } | |
| 68 | 237 | |
| 69 | static READ16_HANDLER( wheelfir_rand4 ) | |
| 70 | { | |
| 71 | return mame_rand(space->machine); | |
| 72 | } | |
| 238 | running_device *maincpu; | |
| 239 | running_device *subcpu; | |
| 240 | running_device *screen; | |
| 241 | running_device *eeprom; | |
| 73 | 242 | |
| 74 | static UINT16 *wheelfir_myram; | |
| 75 | static UINT16 wheelfir_blitdata[16]; | |
| 76 | static bitmap_t *wheelfir_tmp_bitmap[3]; | |
| 243 | INT32 *zoom_table; | |
| 244 | UINT16 *blitter_data; | |
| 77 | 245 | |
| 78 | /* | |
| 246 | UINT8 *palette; | |
| 247 | INT32 palpos; | |
| 79 | 248 | |
| 80 | A 30f7 - 3150 - 0059 - 0d5c - 0066 - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - A | |
| 81 | B | |
| 82 | C 48f7 - 4971 - 007a - 0d28 - 0032 - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - C | |
| 83 | C 48f7 - 4945 - 004e - 0d42 - 004c - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - C | |
| 84 | D 54f7 - 559d - 00a6 - 0d76 - 0080 - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - D | |
| 85 | E 1ff8 - 209d - 00a5 - 2728 - 0032 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - E | |
| 86 | F | |
| 87 | G 60f7 - 6145 - 004e - 0d5c - 0066 - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - G | |
| 88 | H 6cf7 - 6d7c - 0085 - 0d28 - 0032 - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - H | |
| 89 | I 3efd - 3f5e - 0061 - 2d28 - 0032 - 0000 - 0000 - 3400 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - I | |
| 90 | I 3efd - 3f5e - 0061 - 2d42 - 004c - 0000 - 0000 - 3400 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - I | |
| 91 | I 3efd - 3fa0 - 00a3 - 2d42 - 004c - 0000 - 0000 - 3400 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - I | |
| 92 | J | |
| 93 | K | |
| 94 | L 40f8 - 415b - 0063 - 2776 - 0080 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - L | |
| 95 | M 3cf6 - 3d5a - 0064 - eac4 - 00ce - 0000 - 0000 - 3b00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - M | |
| 96 | N 84f7 - 8566 - 006f - 0d42 - 004c - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - N | |
| 97 | N 84f7 - 85b3 - 00bc - 0d42 - 004c - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - N | |
| 98 | O 90f7 - 9150 - 0059 - 0d42 - 004c - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - O | |
| 99 | O 90f7 - 917c - 0085 - 0d42 - 004c - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - O | |
| 100 | O 90f7 - 91a8 - 00b1 - 0d42 - 004c - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - O | |
| 101 | P f0f7 - f187 - 0090 - 0d42 - 004c - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - P | |
| 102 | Q | |
| 103 | R fcf7 - fd71 - 007a - 0d76 - 0080 - 0000 - 0000 - 3c00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - R | |
| 104 | S 4bf8 - 4c45 - 004d - 2728 - 0032 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - S | |
| 105 | S 4bf8 - 4ca8 - 00b0 - 2728 - 0032 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - S | |
| 106 | S 4bf8 - 4cbe - 00c6 - 2742 - 004c - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - S | |
| 107 | T 08f7 - 0966 - 006f - 0d28 - 0032 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - T | |
| 108 | T 08f7 - 0992 - 009b - 0d28 - 0032 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - T | |
| 109 | T 08f7 - 09b3 - 00bc - 0d28 - 0032 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - T | |
| 110 | T 08f7 - 0992 - 009b - 0d42 - 004c - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - T | |
| 111 | U 14f7 - 155b - 0064 - 0d90 - 009a - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - U | |
| 112 | V 20f7 - 21d4 - 00dd - 0d76 - 0080 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - V | |
| 113 | W 20f3 - 214e - 005b - b628 - 0032 - 0000 - 0000 - 3a00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - W | |
| 114 | X 2cf7 - 2d50 - 0059 - 0dde - 00e8 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - X | |
| 115 | Y 38f7 - 3921 - 002a - 0d76 - 0080 - 0000 - 0000 - 3d00 - 00d7 - c000 - 000c - 0000 - 0000 - 0000 - 00ff - ffff - ffff - Y | |
| 116 | Z | |
| 117 | extra test mode reads.. | |
| 249 | INT32 current_scanline; | |
| 250 | scroll_info *scanlines; | |
| 118 | 251 | |
| 119 | ???? | |
| 120 | GAME OPTIONS | |
| 121 | COIN OPTIONS | |
| 122 | COLOR AND CONVERGENCY | |
| 123 | SOUND | |
| 124 | STATISTICS | |
| 125 | COMUNICATION | |
| 126 | EXIT | |
| 252 | INT32 soundlatch; | |
| 127 | 253 | |
| 128 | U 14f7 - 155b - 0064 - 0d90 - 009a - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - U | |
| 129 | V 20f7 - 21d4 - 00dd - 0d76 - 0080 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - V | |
| 130 | X 2cf7 - 2d50 - 0059 - 0dde - 00e8 - 0000 - 0000 - 3d00 - 0097 - c000 - 0008 - 0000 - 0000 - 0000 - 00ff - ffff - ffff - X | |
| 131 | Y 38f7 - 3921 - 002a - 0d76 - 0080 - 0000 - 0000 - 3d00 - 00d7 - c000 - 000c - 0000 - 0000 - 0000 - 00ff - ffff - ffff - Y | |
| 254 | INT32 direct_write_x0; | |
| 255 | INT32 direct_write_x1; | |
| 256 | INT32 direct_write_y0; | |
| 257 | INT32 direct_write_y1; | |
| 258 | INT32 direct_write_idx; | |
| 132 | 259 | |
| 133 | by the grouping of the characters the test mode font should clearly be the one seen at the start of the last page. and | |
| 134 | scattered over the previous page. letters are 12x12, and U/V/X/Y are +0x0c00 from each other in this data. | |
| 260 | INT32 toggle_bit; | |
| 261 | INT16 scanline_cnt; | |
| 135 | 262 | |
| 136 | 263 | |
| 137 | b | |
| 264 | b | |
| 138 | 265 | |
| 139 | */ | |
| 266 | INT32 get_scale(INT32 index) | |
| 267 | { | |
| 268 | while(index<ZOOM_TABLE_SIZE) | |
| 269 | { | |
| 270 | if(zoom_table[index]>=0) | |
| 271 | { | |
| 272 | return zoom_table[index]; | |
| 273 | } | |
| 274 | ++index; | |
| 275 | } | |
| 276 | return 0; | |
| 277 | } | |
| 278 | }; | |
| 140 | 279 | |
| 141 | /* each 512x512 page is | |
| 142 | 0x40000 bytes long | |
| 280 | static timer_device* scanline_timer; | |
| 143 | 281 | |
| 144 | therefore a 512x256 page is | |
| 145 | 0x20000 bytes... | |
| 282 | static READ16_HANDLER( wheelfir_status_r ) | |
| 283 | { | |
| 284 | /* | |
| 285 | fedcba9876543210 | |
| 286 | x--------------- vblank ? | |
| 287 | --x------------- ? must be 1 | |
| 288 | --------------x- ? eeprom | |
| 289 | ---------------x ? eeprom | |
| 146 | 290 | |
| 147 | 291 | */ |
| 292 | wheelfir_state *state = (wheelfir_state *)space->machine->driver_data; | |
| 293 | return state->toggle_bit| (mame_rand(space->machine)&0x2000); | |
| 294 | } | |
| 148 | 295 | |
| 149 | /* it draws the background and road with direct writes to port 6... but where does this really go? an extra blit source page? */ | |
| 150 | static int wheelfir_six_pos = 0; | |
| 151 | static bitmap_t* render_bitmap; | |
| 296 | static WRITE16_HANDLER( wheelfir_scanline_cnt_w ) | |
| 297 | { | |
| 298 | wheelfir_state *state = (wheelfir_state *)space->machine->driver_data; | |
| 299 | COMBINE_DATA(&state->scanline_cnt); | |
| 300 | } | |
| 152 | 301 | |
| 302 | ||
| 153 | 303 | static WRITE16_HANDLER(wheelfir_blit_w) |
| 154 | 304 | { |
| 155 | //wheelfir_blitdata[offset]=data; | |
| 156 | int width = space->machine->primary_screen->width(); | |
| 157 | int height = space->machine->primary_screen->height(); | |
| 158 | int vpage=0; | |
| 159 | COMBINE_DATA(&wheelfir_blitdata[offset]); | |
| 305 | wheelfir_state *state = (wheelfir_state *)space->machine->driver_data; | |
| 160 | 306 | |
| 161 | /* a bit of a hack really .. */ | |
| 162 | if(offset==0x6) | |
| 307 | COMBINE_DATA(&state->blitter_data[offset]); | |
| 308 | ||
| 309 | if(!ACCESSING_BITS_8_15 && offset==0x6) //LSB only! | |
| 163 | 310 | { |
| 164 | int sixdat = data&0xff; | |
| 165 | 311 | int x,y; |
| 166 | 312 | |
| 167 | x = wheelfir_six_pos % 512; | |
| 168 | y = wheelfir_six_pos / 512; | |
| 169 | 313 | |
| 170 | x &= 511; | |
| 171 | y &= 511; | |
| 314 | int direct_width=state->direct_write_x1-state->direct_write_x0+1; | |
| 315 | int direct_height=state->direct_write_y1-state->direct_write_y0+1; | |
| 172 | 316 | |
| 173 | | |
| 317 | | |
| 174 | 318 | |
| 175 | *BITMAP_ADDR16(wheelfir_tmp_bitmap[2], y, x) = sixdat; | |
| 319 | if(direct_width>0 && direct_height>0) | |
| 320 | { | |
| 321 | x= state->direct_write_idx % direct_width; | |
| 322 | y = (state->direct_write_idx / direct_width) %direct_height; | |
| 323 | ||
| 324 | x+=state->direct_write_x0; | |
| 325 | y+=state->direct_write_y0; | |
| 326 | ||
| 327 | if(x<512 && y <512) | |
| 328 | { | |
| 329 | *BITMAP_ADDR16(state->tmp_bitmap[LAYER_BG], y, x) = sixdat; | |
| 330 | } | |
| 331 | } | |
| 332 | ||
| 333 | ++state->direct_write_idx; | |
| 334 | ||
| 176 | 335 | return; |
| 336 | ||
| 177 | 337 | } |
| 178 | 338 | |
| 339 | int yscroll=-1; | |
| 340 | int xscroll=-1; | |
| 179 | 341 | |
| 180 | /* probably wrong, see above! */ | |
| 342 | if(offset==0x0a && ACCESSING_BITS_0_7) | |
| 343 | { | |
| 344 | xscroll = (state->blitter_data[0xa]&0x00ff) | (state->blitter_data[0x8]&0x0040) << 2; | |
| 345 | } | |
| 346 | ||
| 347 | if(offset==0x0b && ACCESSING_BITS_0_7) | |
| 348 | { | |
| 349 | yscroll = (state->blitter_data[0xb]&0x00ff) | (state->blitter_data[0x8]&0x0080) << 1; | |
| 350 | } | |
| 351 | ||
| 352 | if(offset==0x8 && ACCESSING_BITS_0_7) | |
| 353 | { | |
| 354 | xscroll = (state->blitter_data[0xa]&0x00ff) | (state->blitter_data[0x8]&0x0040) << 2; | |
| 355 | yscroll = (state->blitter_data[0xb]&0x00ff) | (state->blitter_data[0x8]&0x0080) << 1; | |
| 356 | } | |
| 357 | ||
| 358 | if(xscroll>=0) | |
| 359 | { | |
| 360 | int scl=state->current_scanline>=NUM_SCANLINES?0:state->current_scanline; | |
| 361 | state->scanlines[scl].x=xscroll; | |
| 362 | state->scanlines[scl].unkbits=state->blitter_data[0x8]&0xff; | |
| 363 | } | |
| 364 | ||
| 365 | if(yscroll>=0) | |
| 366 | { | |
| 367 | int scl=state->current_scanline>=NUM_SCANLINES?0:state->current_scanline; | |
| 368 | state->scanlines[scl].y=yscroll; | |
| 369 | state->scanlines[scl].unkbits=state->blitter_data[0x8]&0xff; | |
| 370 | } | |
| 371 | ||
| 372 | ||
| 181 | 373 | if(offset==0xf && data==0xffff) |
| 182 | 374 | { |
| 183 | 375 | |
| 376 | cputag_set_input_line(space->machine, "maincpu", 1, HOLD_LINE); | |
| 184 | 377 | |
| 185 | int x,y; | |
| 186 | int xsize,ysize; | |
| 187 | UINT8 *rom = memory_region(space->machine, "gfx1"); | |
| 188 | int dir=0; | |
| 378 | { | |
| 379 | UINT8 *rom = memory_region(space->machine, "gfx1"); | |
| 189 | 380 | |
| 381 | int width = space->machine->primary_screen->width(); | |
| 382 | int height = space->machine->primary_screen->height(); | |
| 190 | 383 | |
| 191 | wheelfir_six_pos = 0; | |
| 384 | int src_x0=(state->blitter_data[0]>>8)+((state->blitter_data[6]&0x100)?256:0); | |
| 385 | int src_y0=(state->blitter_data[2]>>8)+((state->blitter_data[6]&0x200)?256:0); | |
| 192 | 386 | |
| 193 | mame_printf_debug("XX %.4x - ",wheelfir_blitdata[0]-wheelfir_blitdata[1]); | |
| 194 | mame_printf_debug("YY %.4x - ",wheelfir_blitdata[2]-wheelfir_blitdata[3]); | |
| 387 | int dst_x0=(state->blitter_data[0]&0xff)+((state->blitter_data[7]&0x40)?256:0); | |
| 388 | int dst_y0=(state->blitter_data[2]&0xff)+((state->blitter_data[7]&0x80)?256:0); | |
| 195 | 389 | |
| 390 | int dst_x1=(state->blitter_data[1]&0xff)+((state->blitter_data[9]&4)?256:0); | |
| 391 | int dst_y1=(state->blitter_data[3]&0xff)+((state->blitter_data[9]&8)?256:0); | |
| 196 | 392 | |
| 197 | for(x=0;x<16;x++) | |
| 198 | mame_printf_debug("%x-",wheelfir_blitdata[x]); | |
| 393 | int x_dst_step=(state->blitter_data[7]&0x1)?1:-1; | |
| 394 | int y_dst_step=(state->blitter_data[7]&0x2)?1:-1; | |
| 199 | 395 | |
| 200 | mame_printf_debug("\n"); | |
| 396 | int x_src_step=(state->blitter_data[8]&0x4000)?1:-1; | |
| 397 | int y_src_step=(state->blitter_data[8]&0x8000)?1:-1; | |
| 201 | 398 | |
| 202 | xsize = ((wheelfir_blitdata[1]&0xff)-(wheelfir_blitdata[0]&0xff))&0xff; | |
| 203 | ysize = ((wheelfir_blitdata[3]&0xff)-(wheelfir_blitdata[2]&0xff))&0x0ff; | |
| 399 | int page=((state->blitter_data[6])>>10)*0x40000; | |
| 204 | 400 | |
| 205 | 401 | |
| 402 | if(page>=0x400000) /* src set to unav. page before direct write to the framebuffer */ | |
| 403 | { | |
| 206 | 404 | |
| 405 | state->direct_write_x0=dst_x0; | |
| 406 | state->direct_write_x1=dst_x1; | |
| 407 | state->direct_write_y0=dst_y0; | |
| 408 | state->direct_write_y1=dst_y1; | |
| 409 | state->direct_write_idx=0; | |
| 207 | 410 | |
| 208 | if(wheelfir_blitdata[7]&0x1) | |
| 209 | dir=1; | |
| 210 | else | |
| 211 | { | |
| 212 | dir=-1; | |
| 213 | xsize=0x100-xsize; | |
| 214 | } | |
| 411 | } | |
| 215 | 412 | |
| 216 | for(y=0;y<=ysize+1/*((wheelfir_blitdata[9]?wheelfir_blitdata[9]:16)*/;y++) | |
| 217 | for(x=0;x<=xsize+1/*(wheelfir_blitdata[9]?wheelfir_blitdata[9]:16)*/;x++) | |
| 413 | if(x_dst_step<0) | |
| 218 | 414 | { |
| 219 | int destx=wheelfir_blitdata[0]&0xff; | |
| 220 | int desty=wheelfir_blitdata[2]&0xff; | |
| 221 | 415 | |
| 222 | int pagenumber = (wheelfir_blitdata[6]&0x3e00)>>9; | |
| 223 | int gfxbase = pagenumber * 0x20000; | |
| 224 | int xbit = (wheelfir_blitdata[6]&0x0100)>>8; | |
| 416 | if(dst_x0<=dst_x1) | |
| 417 | { | |
| 225 | 418 | |
| 419 | return; | |
| 420 | } | |
| 226 | 421 | |
| 227 | int offs; | |
| 228 | int pix; | |
| 229 | int diffx,diffy; | |
| 422 | } | |
| 423 | else | |
| 424 | { | |
| 230 | 425 | |
| 231 | if (wheelfir_blitdata[7]&0x0040)destx +=0x100; | |
| 232 | // if (wheelfir_blitdata[7]&0x0080) desty +=0x100; | |
| 426 | if(dst_x0>=dst_x1) | |
| 427 | { | |
| 428 | return; | |
| 429 | } | |
| 233 | 430 | |
| 234 | // if (wheelfir_blitdata[9]&0x0004) destx +=0x100; | |
| 235 | // if (wheelfir_blitdata[9]&0x0008) desty +=0x100; | |
| 431 | } | |
| 236 | 432 | |
| 237 | diffx=wheelfir_blitdata[0]>>8; | |
| 238 | diffy=wheelfir_blitdata[2]>>8; | |
| 433 | if(y_dst_step<0) | |
| 434 | { | |
| 435 | if(dst_y0<=dst_y1) | |
| 436 | { | |
| 437 | return; | |
| 438 | } | |
| 439 | } | |
| 440 | else | |
| 441 | { | |
| 239 | 442 | |
| 240 | // diffx-=0xf700; | |
| 241 | // diffx&=511; | |
| 443 | if(dst_y0>=dst_y1) | |
| 444 | { | |
| 445 | return; | |
| 446 | } | |
| 242 | 447 | |
| 448 | } | |
| 243 | 449 | |
| 244 | // diffy-=0xf400; | |
| 245 | // diffy&=1023; | |
| 246 | 450 | |
| 451 | //additional checks | |
| 247 | 452 | |
| 248 | diffx &= 0xff; | |
| 249 | diffy &= 0xff; | |
| 250 | if (xbit) diffx+=0x100; | |
| 453 | int d1, d2, hflag, dflag, index; | |
| 251 | 454 | |
| 252 | diffx+=x; | |
| 253 | diffy+=y; | |
| 455 | d1=((state->blitter_data[0x0a]&0x1f00)>>8); | |
| 254 | 456 | |
| 457 | d2=((state->blitter_data[0x0b]&0x1f00)>>8); | |
| 255 | 458 | |
| 256 | destx+=x*dir; | |
| 257 | desty+=y; | |
| 258 | 459 | |
| 259 | offs=gfxbase+diffy*512+diffx; | |
| 460 | d1|=((state->blitter_data[0x8]&0x100)>>3); | |
| 461 | d2|=((state->blitter_data[0x8]&0x400)>>5); | |
| 462 | hflag=(state->blitter_data[0x9]&0x1)?1:0; | |
| 463 | dflag=(state->blitter_data[0x8]&0x1000)?1:0; | |
| 464 | index=d1|(d2<<6)|(hflag<<12)|(dflag<<13); | |
| 260 | 465 | |
| 261 | offs&=0x3fffff; | |
| 262 | 466 | |
| 263 | | |
| 467 | float scale_x= | |
| 264 | 468 | |
| 469 | d1=((state->blitter_data[0x0b]&0xc000)>>14) | | |
| 470 | ((state->blitter_data[0x0c]&0xc000)>>12) | | |
| 471 | ((state->blitter_data[0x0a]&0x4000)>>10); | |
| 265 | 472 | |
| 266 | if(pix && destx >0 && desty >0 && destx<width && desty <height) | |
| 267 | *BITMAP_ADDR16(wheelfir_tmp_bitmap[vpage], desty, destx) = pix; | |
| 268 | } | |
| 269 | } | |
| 473 | d2=((state->blitter_data[0x0c]&0x1f00)>>8); | |
| 270 | 474 | |
| 271 | 475 | |
| 476 | d1|=((state->blitter_data[0x8]&0x200)>>4); | |
| 477 | d2|=((state->blitter_data[0x8]&0x800)>>6); | |
| 272 | 478 | |
| 273 | } | |
| 479 | hflag=(state->blitter_data[0x9]&0x2)?1:0; | |
| 480 | dflag=(state->blitter_data[0x8]&0x2000)?1:0; | |
| 481 | index=d1|(d2<<6)|(hflag<<12)|(dflag<<13); | |
| 274 | 482 | |
| 275 | static VIDEO_START(wheelfir) | |
| 276 | { | |
| 277 | 483 | |
| 278 | wheelfir_tmp_bitmap[0] = machine->primary_screen->alloc_compatible_bitmap(); | |
| 279 | wheelfir_tmp_bitmap[1] = machine->primary_screen->alloc_compatible_bitmap(); | |
| 280 | wheelfir_tmp_bitmap[2] = machine->primary_screen->alloc_compatible_bitmap(); | |
| 484 | float scale_y=state->get_scale(index); | |
| 281 | 485 | |
| 282 | render_bitmap = machine->primary_screen->alloc_compatible_bitmap(); | |
| 283 | 486 | |
| 284 | ||
| 487 | if(scale_x==0 || scale_y==0) return; | |
| 285 | 488 | |
| 286 | static UINT8 wheelfir_palette[8192]; | |
| 287 | static int wheelfir_palpos = 0; | |
| 288 | /* Press R to show a page of gfx, Q / E to move between pages, and W to clear the framebuffer */ | |
| 289 | static VIDEO_UPDATE(wheelfir) | |
| 290 | { | |
| 291 | #if 0 | |
| 292 | int x,y; | |
| 293 | static int base = 0; | |
| 294 | 489 | |
| 295 | if ( input_code_pressed_once(screen->machine, KEYCODE_E) ) | |
| 296 | base += 512*512; | |
| 490 | float scale_x_step=100.f/scale_x; | |
| 491 | float scale_y_step=100.f/scale_y; | |
| 297 | 492 | |
| 298 | if ( input_code_pressed_once(screen->machine, KEYCODE_Q) ) | |
| 299 | base -= 512*512; | |
| 300 | 493 | |
| 301 | if (base<0x000000) base = 0x000000; | |
| 302 | if (base>0x3c0000) base = 0x3c0000; | |
| 303 | 494 | |
| 304 | copybitmap(bitmap, wheelfir_tmp_bitmap[2], 0, 0, 0, 0, cliprect); | |
| 305 | //copybitmap_trans(bitmap, wheelfir_tmp_bitmap[1], 0, 0, 0, 0, cliprect, 0); | |
| 306 | copybitmap_trans(bitmap, wheelfir_tmp_bitmap[0], 0, 0, 0, 0, cliprect, 0); | |
| 307 | bitmap_fill(wheelfir_tmp_bitmap[0], screen->visible_area(),0); | |
| 495 | int x,y; | |
| 496 | float idx_x,idx_y; | |
| 308 | 497 | |
| 309 | if ( input_code_pressed(screen->machine, KEYCODE_R) ) | |
| 310 | { | |
| 311 | const UINT8 *gfx = memory_region(machine, "gfx1"); | |
| 312 | for (y=0;y<128;y++) | |
| 313 | { | |
| 314 | for (x=0;x<512;x++) | |
| 315 | { | |
| 316 | int romoffs; | |
| 317 | UINT8 romdata; | |
| 498 | int vpage=LAYER_FG; | |
| 499 | if(state->blitter_data[0x7]&0x10) | |
| 500 | { | |
| 501 | vpage=LAYER_BG; | |
| 502 | /* | |
| 503 | printf("bg -> %d %d %d %d %d %d @ %x\n",dst_x0,dst_y0, dst_x1,dst_y1, dst_x1-dst_x0, dst_y1-dst_y0,cpu_get_pc(space->cpu)); | |
| 318 | 504 | |
| 319 | romoffs = base+y*512+x; | |
| 505 | for(int i=0;i<16;++i) | |
| 506 | { | |
| 507 | printf("%x = %.4x\n",i,state->blitter_data[i]); | |
| 508 | } | |
| 320 | 509 | |
| 321 | romdata = gfx[romoffs]; | |
| 510 | printf("\n"); | |
| 511 | */ | |
| 512 | } | |
| 322 | 513 | |
| 323 | *BITMAP_ADDR16(bitmap, y, x) = romdata; | |
| 324 | } | |
| 325 | } | |
| 326 | } | |
| 327 | #endif | |
| 514 | bool endx=false; | |
| 515 | bool endy=false; | |
| 328 | 516 | |
| 329 | copybitmap(bitmap, render_bitmap, 0, 0, 0, 0, cliprect); | |
| 330 | copybitmap_trans(bitmap, wheelfir_tmp_bitmap[0], 0, 0, 0, 0, cliprect, 0); | |
| 517 | if(state->blitter_data[0x7]&0x0c) | |
| 518 | { | |
| 519 | //??? | |
| 520 | } | |
| 331 | 521 | |
| 522 | for( x=dst_x0, idx_x=0 ; !endx;x+=x_dst_step, idx_x+=scale_x_step ) | |
| 523 | { | |
| 524 | endy=false; | |
| 525 | for( y=dst_y0, idx_y=0 ; !endy;y+=y_dst_step, idx_y+=scale_y_step) | |
| 526 | { | |
| 527 | endx=(x==dst_x1); | |
| 528 | endy=(y==dst_y1); | |
| 529 | ||
| 530 | ||
| 531 | int xx=src_x0+x_src_step*idx_x; | |
| 532 | int yy=src_y0+y_src_step*idx_y; | |
| 533 | ||
| 534 | int address=page+yy*512+xx; | |
| 535 | ||
| 536 | int pix = rom[address&(0x1000000-1)]; | |
| 537 | ||
| 538 | int screen_x=x; | |
| 539 | int screen_y=y; | |
| 540 | ||
| 541 | ||
| 542 | if(page>=0x400000) | |
| 543 | { | |
| 544 | //hack for clear | |
| 545 | if(screen_x >0 && screen_y >0 && screen_x < width && screen_y <height) | |
| 546 | { | |
| 547 | // *BITMAP_ADDR16(state->tmp_bitmap[vpage], screen_y , screen_x ) =0; | |
| 548 | } | |
| 549 | } | |
| 550 | else | |
| 551 | { | |
| 552 | screen_y&=0xff; | |
| 553 | ||
| 554 | if(pix && screen_x >0 && screen_y >0 && screen_x < width && screen_y <height) | |
| 555 | { | |
| 556 | *BITMAP_ADDR16(state->tmp_bitmap[vpage], screen_y , screen_x ) = pix; | |
| 557 | } | |
| 558 | } | |
| 559 | } | |
| 560 | } | |
| 561 | } | |
| 562 | } | |
| 563 | } | |
| 564 | ||
| 565 | static VIDEO_START(wheelfir) | |
| 566 | { | |
| 567 | wheelfir_state *state = (wheelfir_state *)machine->driver_data; | |
| 568 | state->tmp_bitmap[0] = auto_bitmap_alloc(machine, 512, 512, BITMAP_FORMAT_INDEXED16); | |
| 569 | state->tmp_bitmap[1] = auto_bitmap_alloc(machine, 512, 512, BITMAP_FORMAT_INDEXED16); | |
| 570 | } | |
| 571 | ||
| 572 | static VIDEO_UPDATE(wheelfir) | |
| 573 | { | |
| 574 | wheelfir_state *state = (wheelfir_state *)screen->machine->driver_data; | |
| 575 | ||
| 576 | bitmap_fill(bitmap, cliprect,0); | |
| 577 | ||
| 578 | for(int y=0;y<NUM_SCANLINES;++y) | |
| 332 | 579 | { |
| 333 | int x; | |
| 334 | for (x=0;x<8192;x+=3) | |
| 580 | UINT16 *source = BITMAP_ADDR16(state->tmp_bitmap[LAYER_BG],( (state->scanlines[y].y)&511), 0); | |
| 581 | UINT16 *dest = BITMAP_ADDR16(bitmap, y, 0); | |
| 582 | ||
| 583 | for (int x=0;x<336;x++) | |
| 335 | 584 | { |
| 336 | //int paldat = (wheelfir_palette[x]<<8) | wheelfir_palette[x+1]; | |
| 337 | int b,g,r; | |
| 338 | 585 | |
| 339 | r = wheelfir_palette[x]; | |
| 340 | g = wheelfir_palette[x+1]; | |
| 341 | b = wheelfir_palette[x+2]; | |
| 342 | palette_set_color(screen->machine,x/3,MAKE_RGB(r,g,b)); | |
| 586 | dest[x] = source[ (x+(state->scanlines[y].x)) &511]; | |
| 587 | ||
| 343 | 588 | } |
| 344 | 589 | } |
| 345 | #if 0 | |
| 590 | ||
| 591 | copybitmap_trans(bitmap, state->tmp_bitmap[LAYER_FG], 0, 0, 0, 0, cliprect, 0); | |
| 592 | ||
| 593 | /* | |
| 346 | 594 | { |
| 347 | FILE* fp; | |
| 348 | fp=fopen("wheelfir_pal.dmp", "w+b"); | |
| 349 | if (fp) | |
| 350 | { | |
| 351 | fwrite(wheelfir_palette, 1024, 1, fp); | |
| 352 | fclose(fp); | |
| 353 | } | |
| 595 | bitmap_fill(state->tmp_bitmap[LAYER_BG], &screen->visible_area(),0); | |
| 596 | ||
| 354 | 597 | } |
| 355 | ||
| 598 | */ | |
| 356 | 599 | |
| 357 | 600 | return 0; |
| 358 | 601 | } |
| 359 | 602 | |
| 603 | static VIDEO_EOF( wheelfir ) | |
| 604 | { | |
| 605 | wheelfir_state *state = (wheelfir_state *)machine->driver_data; | |
| 606 | bitmap_fill(state->tmp_bitmap[LAYER_FG], &machine->primary_screen->visible_area(),0); | |
| 607 | } | |
| 608 | ||
| 609 | ||
| 360 | 610 | static WRITE16_HANDLER( pal_reset_pos_w ) |
| 361 | 611 | { |
| 362 | wheelfir_palpos = 0; | |
| 612 | wheelfir_state *state = (wheelfir_state *)space->machine->driver_data; | |
| 613 | state->palpos = 0; | |
| 363 | 614 | } |
| 364 | 615 | |
| 365 | 616 | static WRITE16_HANDLER( pal_data_w ) |
| 366 | 617 | { |
| 367 | wheelfir_palette[wheelfir_palpos] = data & 0xff; | |
| 368 | wheelfir_palpos ++; | |
| 618 | wheelfir_state *state = (wheelfir_state *)space->machine->driver_data; | |
| 619 | int color=state->palpos/3; | |
| 620 | state->palette[state->palpos] = data & 0xff; | |
| 621 | ++state->palpos; | |
| 369 | 622 | |
| 370 | wheelfir_palpos &=8191; | |
| 623 | state->palpos %=NUM_COLORS*3; | |
| 624 | ||
| 625 | { | |
| 626 | int r = state->palette[color*3]; | |
| 627 | int g = state->palette[color*3+1]; | |
| 628 | int b = state->palette[color*3+2]; | |
| 629 | palette_set_color(space->machine, color, MAKE_RGB(r,g,b)); | |
| 630 | } | |
| 631 | ||
| 371 | 632 | } |
| 372 | 633 | |
| 634 | static WRITE16_HANDLER(wheelfir_7c0000_w) | |
| 635 | { | |
| 636 | /* seems to be scanline width/2 (used for scanline int timing ? or real width of scanline ?) */ | |
| 637 | } | |
| 373 | 638 | |
| 639 | static WRITE16_HANDLER(wheelfir_snd_w) | |
| 640 | { | |
| 641 | wheelfir_state *state = (wheelfir_state *)space->machine->driver_data; | |
| 642 | COMBINE_DATA(&state->soundlatch); | |
| 643 | cputag_set_input_line(space->machine, "subcpu", 1, HOLD_LINE); /* guess, tested also with periodic interrupts and latch clear*/ | |
| 644 | timer_call_after_resynch(space->machine, NULL, 0, 0); | |
| 645 | } | |
| 374 | 646 | |
| 647 | static READ16_HANDLER( wheelfir_snd_r ) | |
| 648 | { | |
| 649 | wheelfir_state *state = (wheelfir_state *)space->machine->driver_data; | |
| 650 | return state->soundlatch; | |
| 651 | } | |
| 652 | ||
| 653 | static WRITE16_HANDLER(coin_cnt_w) | |
| 654 | { | |
| 655 | /* bits 0/1 coin counters */ | |
| 656 | coin_counter_w(space->machine, 0, data & 0x01); | |
| 657 | coin_counter_w(space->machine, 1, data & 0x02); | |
| 658 | } | |
| 659 | ||
| 660 | ||
| 375 | 661 | static ADDRESS_MAP_START( wheelfir_main, ADDRESS_SPACE_PROGRAM, 16 ) |
| 376 | 662 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 377 | AM_RANGE(0x200000, 0x20ffff) AM_RAM | |
| 663 | AM_RANGE(0x200000, 0x20ffff) AM_RAM | |
| 378 | 664 | |
| 379 | AM_RANGE(0x7c0000, 0x7c0001) AM_READ(wheelfir_rand1) | |
| 380 | AM_RANGE(0x780000, 0x780001) AM_READ(wheelfir_rand2) | |
| 665 | AM_RANGE(0x700000, 0x70001f) AM_WRITE(wheelfir_blit_w) | |
| 666 | AM_RANGE(0x720000, 0x720001) AM_WRITE(pal_reset_pos_w) | |
| 667 | AM_RANGE(0x720002, 0x720003) AM_WRITE(pal_data_w) | |
| 668 | AM_RANGE(0x720004, 0x720005) AM_WRITENOP // always ffff? | |
| 669 | AM_RANGE(0x740000, 0x740001) AM_WRITE(wheelfir_snd_w) | |
| 670 | AM_RANGE(0x780000, 0x78000f) AM_READNOP /* net comms ? */ | |
| 671 | AM_RANGE(0x760000, 0x760001) AM_WRITE(coin_cnt_w) | |
| 672 | AM_RANGE(0x7a0000, 0x7a0001) AM_WRITE(wheelfir_scanline_cnt_w) | |
| 673 | AM_RANGE(0x7c0000, 0x7c0001) AM_READWRITE(wheelfir_status_r, wheelfir_7c0000_w) | |
| 381 | 674 | AM_RANGE(0x7e0000, 0x7e0001) AM_READ_PORT("P1") |
| 382 | 675 | AM_RANGE(0x7e0002, 0x7e0003) AM_READ_PORT("P2") |
| 383 | 676 | |
| 384 | ||
| 385 | AM_RANGE(0x700000, 0x70001f) AM_WRITE(wheelfir_blit_w) // blitter stuff | |
| 386 | AM_RANGE(0x720000, 0x720001) AM_WRITE(pal_reset_pos_w) // always 0? | |
| 387 | AM_RANGE(0x720002, 0x720003) AM_WRITE(pal_data_w) // lots of different values.. also blitter? palette? | |
| 388 | // AM_RANGE(0x720004, 0x720005) AM_WRITENOP // always ffff? | |
| 389 | ||
| 390 | // AM_RANGE(0x740000, 0x740001) AM_WRITENOP | |
| 391 | // AM_RANGE(0x760000, 0x760001) AM_WRITENOP | |
| 392 | // AM_RANGE(0x740000, 0x740001) AM_WRITENOP | |
| 393 | // AM_RANGE(0x7a0000, 0x7a0001) AM_WRITENOP | |
| 394 | // AM_RANGE(0x7c0000, 0x7c0001) AM_WRITENOP | |
| 395 | ||
| 396 | 677 | ADDRESS_MAP_END |
| 397 | 678 | |
| 398 | 679 | |
| r8581 | r8582 | |
| 401 | 682 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 402 | 683 | AM_RANGE(0x200000, 0x20ffff) AM_RAM |
| 403 | 684 | |
| 404 | AM_RANGE(0x780000, 0x780001) AM_READ(wheelfir_rand4) | |
| 405 | AM_RANGE(0x700000, 0x700001) AM_WRITENOP | |
| 406 | AM_RANGE(0x740000, 0x740001) AM_WRITENOP | |
| 685 | AM_RANGE(0x780000, 0x780001) AM_READ(wheelfir_snd_r) | |
| 686 | ||
| 687 | AM_RANGE(0x700000, 0x700001) AM_DEVWRITE8("dac1", dac_w, 0xff00) //guess for now | |
| 688 | AM_RANGE(0x740000, 0x740001) AM_DEVWRITE8("dac2", dac_w, 0xff00) | |
| 407 | 689 | ADDRESS_MAP_END |
| 408 | 690 | |
| 409 | 691 | |
| 410 | 692 | static INPUT_PORTS_START( wheelfir ) |
| 411 | PORT_START("IN0") /* 16bit */ | |
| 412 | PORT_DIPNAME( 0x0001, 0x0001, "0" ) | |
| 413 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 414 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 415 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown ) ) | |
| 416 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 417 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 418 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) | |
| 419 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 420 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 421 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) | |
| 422 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 423 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 424 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) | |
| 425 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 426 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 427 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 428 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 429 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 430 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) | |
| 431 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 432 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 433 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) | |
| 434 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 435 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 436 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) | |
| 437 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 438 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 439 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) | |
| 440 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 441 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 442 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) | |
| 443 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 444 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 445 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) | |
| 446 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 447 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 448 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) | |
| 449 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 450 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 451 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) | |
| 452 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 453 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 454 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) | |
| 455 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 456 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 457 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) | |
| 458 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 459 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 460 | ||
| 461 | PORT_START("IN1") /* 16bit */ | |
| 462 | PORT_DIPNAME( 0x0001, 0x0001, "1" ) | |
| 463 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 464 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 465 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown ) ) | |
| 466 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 467 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 468 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) | |
| 469 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 470 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 471 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) | |
| 472 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 473 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 474 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) | |
| 475 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 476 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 477 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 478 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 479 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 480 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) | |
| 481 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 482 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 483 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) | |
| 484 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 485 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 486 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) | |
| 487 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) | |
| 488 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 489 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) | |
| 490 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) | |
| 491 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 492 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) | |
| 493 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) | |
| 494 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 495 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) | |
| 496 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) | |
| 497 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 498 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) | |
| 499 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) | |
| 500 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 501 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) | |
| 502 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) | |
| 503 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 504 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) | |
| 505 | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) | |
| 506 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 507 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) | |
| 508 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) | |
| 509 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 510 | ||
| 511 | 693 | PORT_START("P1") /* 16bit */ |
| 512 | 694 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 513 | 695 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r8581 | r8582 | |
| 524 | 706 | PORT_DIPNAME( 0x1000, 0x1000, "Test / Game?" ) |
| 525 | 707 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 526 | 708 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 527 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 709 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNUSED ) /* net comm flag ? */ | |
| 528 | 710 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 529 | 711 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 530 | 712 | |
| r8581 | r8582 | |
| 540 | 722 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 541 | 723 | INPUT_PORTS_END |
| 542 | 724 | |
| 543 | static timer_device* frame_timer; | |
| 544 | static timer_device* scanline_timer; | |
| 545 | ||
| 546 | static TIMER_DEVICE_CALLBACK( frame_timer_callback ) | |
| 547 | { | |
| 548 | /* callback */ | |
| 549 | } | |
| 550 | ||
| 551 | static int scanline_counter = 0; | |
| 552 | static int total_scanlines = 262; | |
| 553 | ||
| 554 | static void render_background_to_render_buffer(int scanline) | |
| 555 | { | |
| 556 | int x; | |
| 557 | UINT16 yscroll = (wheelfir_blitdata[0xb]&0x00ff) | (wheelfir_blitdata[0x8]&0x0080) << 1; | |
| 558 | UINT16 xscroll = (wheelfir_blitdata[0xa]&0x00ff) | (wheelfir_blitdata[0x8]&0x0040) << 2; | |
| 559 | ||
| 560 | UINT16 *source = BITMAP_ADDR16(wheelfir_tmp_bitmap[2], (scanline+yscroll)&511, 0); | |
| 561 | UINT16 *dest = BITMAP_ADDR16(render_bitmap, scanline, 0); | |
| 562 | ||
| 563 | // if (scanline==100) | |
| 564 | // printf("%04x %04x %04x %04x\n", wheelfir_blitdata[0x8],wheelfir_blitdata[0x9],wheelfir_blitdata[0xa],wheelfir_blitdata[0xb]); | |
| 565 | ||
| 566 | for (x=0;x<336;x++) | |
| 567 | { | |
| 568 | dest[x] = source[ (x+xscroll) &511]; | |
| 569 | } | |
| 570 | ||
| 571 | } | |
| 572 | ||
| 573 | 725 | static TIMER_DEVICE_CALLBACK( scanline_timer_callback ) |
| 574 | 726 | { |
| 727 | wheelfir_state *state = (wheelfir_state *)timer.machine->driver_data; | |
| 575 | 728 | timer_call_after_resynch(timer.machine, NULL, 0, 0); |
| 729 | state->current_scanline=param; | |
| 576 | 730 | |
| 577 | if | |
| 731 | if | |
| 578 | 732 | { |
| 579 | scanline_counter++; | |
| 580 | cputag_set_input_line(timer.machine, "maincpu", 5, HOLD_LINE); // raster IRQ, changes scroll values for road | |
| 581 | timer.adjust(attotime_div(ATTOTIME_IN_HZ(60), total_scanlines)); | |
| 733 | //visible scanline | |
| 582 | 734 | |
| 583 | if (scanline_counter < 256) | |
| 584 | { | |
| 585 | render_background_to_render_buffer(scanline_counter); | |
| 586 | } | |
| 735 | state->toggle_bit = 0x0000; | |
| 587 | 736 | |
| 588 | if (scanline_counter == 256) | |
| 737 | --state->scanline_cnt; | |
| 738 | ||
| 739 | if(state->current_scanline>0) | |
| 589 | 740 | { |
| 590 | cputag_set_input_line(timer.machine, "maincpu", 3, HOLD_LINE); // vblank IRQ? | |
| 591 | toggle_bit = 0x8000; // must toggle.. | |
| 741 | //copy scanline offset | |
| 742 | state->scanlines[state->current_scanline].x=(state->scanlines[state->current_scanline-1].x); | |
| 743 | state->scanlines[state->current_scanline].y=(state->scanlines[state->current_scanline-1].y+1); | |
| 744 | state->scanlines[state->current_scanline].unkbits=state->scanlines[state->current_scanline-1].unkbits; | |
| 592 | 745 | } |
| 593 | 746 | |
| 594 | if | |
| 747 | if | |
| 595 | 748 | { |
| 596 | t | |
| 749 | cputag_set_ | |
| 597 | 750 | } |
| 598 | 751 | |
| 599 | // printf("scanline %d\n",scanline_counter); | |
| 600 | 752 | } |
| 601 | else | |
| 753 | else | |
| 602 | 754 | { |
| 603 | scanline_counter = total_scanlines-1; | |
| 755 | if(state->current_scanline==NUM_SCANLINES) /* vblank */ | |
| 756 | { | |
| 757 | state->toggle_bit = 0x8000; | |
| 758 | cputag_set_input_line(timer.machine, "maincpu", 3, HOLD_LINE); | |
| 759 | } | |
| 604 | 760 | } |
| 605 | 761 | } |
| 606 | 762 | |
| 607 | static VIDEO_EOF( wheelfir ) | |
| 608 | { | |
| 609 | scanline_counter = -1; | |
| 610 | bitmap_fill(wheelfir_tmp_bitmap[0], &machine->primary_screen->visible_area(),0); | |
| 611 | 763 | |
| 612 | frame_timer->reset(); | |
| 613 | scanline_timer->reset(); | |
| 614 | } | |
| 615 | ||
| 616 | 764 | static MACHINE_RESET(wheelfir) |
| 617 | 765 | { |
| 618 | ||
| 766 | ||
| 619 | 767 | scanline_timer = machine->device<timer_device>("scan_timer"); |
| 620 | frame_timer->reset(); | |
| 621 | scanline_timer->reset(); | |
| 622 | scanline_counter = -1; | |
| 623 | 768 | } |
| 624 | 769 | |
| 625 | static IN | |
| 770 | static MACHIN | |
| 626 | 771 | { |
| 627 | // we seem to need this interrupt at least once for every object drawn on the screen, otherwise things flicker + slowdown | |
| 628 | cpu_set_input_line(device, 1, HOLD_LINE); // blitter IRQ? | |
| 772 | wheelfir_state *state = (wheelfir_state *)machine->driver_data; | |
| 773 | ||
| 774 | state->maincpu = machine->device( "maincpu"); | |
| 775 | state->subcpu = machine->device( "subcpu"); | |
| 776 | state->screen = machine->device( "screen"); | |
| 777 | state->eeprom = machine->device( "eeprom"); | |
| 778 | ||
| 779 | state->zoom_table = auto_alloc_array(machine, INT32, ZOOM_TABLE_SIZE); | |
| 780 | state->blitter_data = auto_alloc_array(machine, UINT16, 16); | |
| 781 | ||
| 782 | state->scanlines = reinterpret_cast<scroll_info*>(auto_alloc_array(machine, UINT8, sizeof(scroll_info)*(NUM_SCANLINES+NUM_VBLANK_LINES))); | |
| 783 | state->palette=auto_alloc_array(machine, UINT8, NUM_COLORS*3); | |
| 784 | ||
| 785 | ||
| 786 | for(int i=0;i<(ZOOM_TABLE_SIZE);++i) | |
| 787 | { | |
| 788 | state->zoom_table[i]=-1; | |
| 789 | } | |
| 790 | ||
| 791 | UINT16 *ROM = (UINT16 *)memory_region(machine, "maincpu"); | |
| 792 | ||
| 793 | for(int j=0;j<400;++j) | |
| 794 | { | |
| 795 | int i=j<<3; | |
| 796 | int d1=ROM[0x200+i]&0x1f; | |
| 797 | int d0=(ROM[0x200+i]>>8)&0x1f; | |
| 798 | ||
| 799 | d0|=(ROM[0x200+1+i]&1)?0x20:0; | |
| 800 | d1|=(ROM[0x200+1+i]&4)?0x20:0; | |
| 801 | ||
| 802 | int hflag=(ROM[0x200+2+i]&0x100)?1:0; | |
| 803 | int dflag=(ROM[0x200+1+i]&0x10)?1:0; | |
| 804 | ||
| 805 | int index=d0|(d1<<6)|(hflag<<12)|(dflag<<13); | |
| 806 | state->zoom_table[index]=j; | |
| 807 | } | |
| 629 | 808 | } |
| 630 | 809 | |
| 631 | 810 | |
| 632 | 811 | static MACHINE_DRIVER_START( wheelfir ) |
| 633 | MDRV_CPU_ADD("maincpu", M68000, 32000000) | |
| 812 | MDRV_DRIVER_DATA(wheelfir_state) | |
| 813 | ||
| 814 | MDRV_CPU_ADD("maincpu", M68000, 32000000/2) | |
| 634 | 815 | MDRV_CPU_PROGRAM_MAP(wheelfir_main) |
| 635 | MDRV_CPU_VBLANK_INT_HACK(wheelfir_irq,256) // 1,3,5 valid | |
| 636 | 816 | |
| 637 | MDRV_CPU_ADD("sub", M68000, 32000000/2) | |
| 817 | MDRV_CPU_ADD("subcpu", M68000, 32000000/2) | |
| 638 | 818 | MDRV_CPU_PROGRAM_MAP(wheelfir_sub) |
| 639 | MDRV_CPU_VBLANK_INT( | |
| 819 | //MDRV_CPU_VBLANK_INT_HACK( | |
| 640 | 820 | |
| 821 | MDRV_QUANTUM_TIME(HZ(12000)) | |
| 822 | ||
| 641 | 823 | MDRV_MACHINE_RESET (wheelfir) |
| 642 | 824 | |
| 643 | MDRV_TIMER_ADD("frame_timer", frame_timer_callback) | |
| 644 | MDRV_TIMER_ADD("scan_timer", scanline_timer_callback) | |
| 825 | MDRV_TIMER_ADD_SCANLINE("scan_timer", scanline_timer_callback, "screen", 0, 1) | |
| 645 | 826 | |
| 646 | 827 | MDRV_SCREEN_ADD("screen", RASTER) |
| 647 | 828 | MDRV_SCREEN_REFRESH_RATE(60) |
| 648 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 829 | ||
| 830 | ||
| 649 | 831 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 650 | MDRV_SCREEN_SIZE(64*8, 64*8) | |
| 651 | MDRV_SCREEN_VISIBLE_AREA(0*8, 42*8-1, 0*8, 32*8-1) | |
| 832 | MDRV_SCREEN_SIZE(336, NUM_SCANLINES+NUM_VBLANK_LINES) | |
| 833 | MDRV_SCREEN_VISIBLE_AREA(0,335, 0, NUM_SCANLINES-1) | |
| 652 | 834 | |
| 653 | MDRV_PALETTE_LENGTH( | |
| 835 | MDRV_PALETTE_LENGTH(NUM_COLORS) | |
| 654 | 836 | |
| 837 | MDRV_EEPROM_93C46_ADD("eeprom") | |
| 838 | ||
| 839 | MDRV_MACHINE_START(wheelfir) | |
| 840 | ||
| 655 | 841 | MDRV_VIDEO_START(wheelfir) |
| 656 | 842 | MDRV_VIDEO_UPDATE(wheelfir) |
| 657 | 843 | MDRV_VIDEO_EOF(wheelfir) |
| 844 | ||
| 845 | /* sound hardware */ | |
| 846 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 847 | ||
| 848 | MDRV_SOUND_ADD("dac1", DAC, 0) | |
| 849 | MDRV_SOUND_ADD("dac2", DAC, 0) | |
| 850 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 851 | ||
| 658 | 852 | MACHINE_DRIVER_END |
| 659 | 853 | |
| 660 | 854 | |
| r8581 | r8582 | |
| 663 | 857 | ROM_LOAD16_BYTE( "tch1.u19", 0x00001, 0x80000, CRC(33bbbc67) SHA1(c2ecc0ab522ee442076ea7b9536aee6e1fad0540) ) |
| 664 | 858 | ROM_LOAD16_BYTE( "tch2.u21", 0x00000, 0x80000, CRC(ed6b9e8a) SHA1(214c5aaf55963a219db33dd5d530492e09ad5e07) ) |
| 665 | 859 | |
| 666 | ROM_REGION( 0x100000, "sub", 0 ) /* 68000 Code + sound samples */ | |
| 860 | ROM_REGION( 0x100000, "subcpu", 0 ) /* 68000 Code + sound samples */ | |
| 667 | 861 | ROM_LOAD16_BYTE( "tch3.u83", 0x00001, 0x80000, CRC(43c014a6) SHA1(6c01a08dda204f36e8768795dd5d405576a49140) ) |
| 668 | 862 | ROM_LOAD16_BYTE( "tch11.u65", 0x00000, 0x80000, CRC(fc894b2e) SHA1(ebe6d1adf889731fb6f53b4ce5f09c60e2aefb97) ) |
| 669 | 863 | |
| 670 | ROM_REGION( 0x | |
| 864 | ROM_REGION( 0x1000000, "gfx1", ROMREGION_ERASE00 ) // 512x512 gfx pages | |
| 671 | 865 | ROM_LOAD( "tch4.u52", 0x000000, 0x80000, CRC(fe4bc2c7) SHA1(33a2ef79cb13f9e7e7d513915c6e13c4e7fe0188) ) |
| 672 | 866 | ROM_LOAD( "tch5.u53", 0x080000, 0x80000, CRC(a38b9ca5) SHA1(083c9f700b9df1039fb553e918e205c6d32057ad) ) |
| 673 | 867 | ROM_LOAD( "tch6.u54", 0x100000, 0x80000, CRC(2733ae6b) SHA1(ebd91e123b670159f79be19a552d1ae0c8a0faff) ) |
| r8581 | r8582 | |
| 675 | 869 | ROM_LOAD( "tch8.u56", 0x200000, 0x80000, CRC(22b661fe) SHA1(b6edf8e1e8b479ee8813502157615f54627dc7c1) ) |
| 676 | 870 | ROM_LOAD( "tch9.u57", 0x280000, 0x80000, CRC(83c66de3) SHA1(50deaf3338d590340b928f891548c47ba8f3ca38) ) |
| 677 | 871 | ROM_LOAD( "tch10.u58",0x300000, 0x80000, CRC(2036ed80) SHA1(910381e2ccdbc2d06f873021d8af02795d22f595) ) |
| 678 | ROM_LOAD( "tch12.u59",0x380000, 0x80000, CRC(cce2e675) SHA1(f3d8916077b2e057169d0f254005cd959789a3b3) ) | |
| 872 | ROM_LOAD( "tch12.u59",0x380000, 0x80000, CRC(cce2e675) SHA1(f3d8916077b2e057169d0f254005cd959789a3b3) ) | |
| 679 | 873 | ROM_END |
| 680 | 874 | |
| 681 | 875 | static DRIVER_INIT(wheelfir) |
| 682 | 876 | { |
| 683 | 877 | UINT16 *RAM = (UINT16 *)memory_region(machine, "maincpu"); |
| 684 | RAM[0xdd3da/2] = 0x4e71; // | |
| 878 | RAM[0xdd3da/2] = 0x4e71; // | |
| 685 | 879 | } |
| 686 | 880 | |
| 687 | 881 | GAME( 199?, wheelfir, 0, wheelfir, wheelfir, wheelfir, ROT0, "TCH", "Wheels & Fire", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| 882 |
| r8581 | r8582 | |
|---|---|---|
| 348 | 348 | |
| 349 | 349 | memory_configure_bank(machine, "bank1", 0, 8, &ROM[0x10000], 0x4000); |
| 350 | 350 | |
| 351 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 352 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 351 | state->maincpu = machine->device("maincpu"); | |
| 352 | state->audiocpu = machine->device("audiocpu"); | |
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | static MACHINE_DRIVER_START( onetwo ) |
| r8581 | r8582 | |
|---|---|---|
| 3797 | 3797 | |
| 3798 | 3798 | dumped by sayu |
| 3799 | 3799 | --- Team Japump!!! --- |
| 3800 | http://japump.i.am/ | |
| 3801 | 3800 | |
| 3802 | 3801 | */ |
| 3803 | 3802 |
| r8581 | r8582 | |
|---|---|---|
| 801 | 801 | { |
| 802 | 802 | liberate_state *state = (liberate_state *)machine->driver_data; |
| 803 | 803 | |
| 804 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 805 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 804 | state->maincpu = machine->device("maincpu"); | |
| 805 | state->audiocpu = machine->device("audiocpu"); | |
| 806 | 806 | |
| 807 | 807 | state_save_register_global(machine, state->background_disable); |
| 808 | 808 | state_save_register_global(machine, state->background_color); |
| r8581 | r8582 | |
|---|---|---|
| 676 | 676 | { |
| 677 | 677 | laserbat_state *state = (laserbat_state *)device->machine->driver_data; |
| 678 | 678 | |
| 679 | pia6821_cb1_w(state->pia, | |
| 679 | pia6821_cb1_w(state->pia, | |
| 680 | 680 | state->cb1_toggle ^= 1; |
| 681 | 681 | } |
| 682 | 682 | |
| r8581 | r8582 | |
| 706 | 706 | { |
| 707 | 707 | laserbat_state *state = (laserbat_state *)machine->driver_data; |
| 708 | 708 | |
| 709 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 710 | state->s2636_1 = devtag_get_device(machine, "s2636_1"); | |
| 711 | state->s2636_2 = devtag_get_device(machine, "s2636_2"); | |
| 712 | state->s2636_3 = devtag_get_device(machine, "s2636_3"); | |
| 713 | state->pia = devtag_get_device(machine, "pia"); | |
| 714 | state->sn = devtag_get_device(machine, "snsnd"); | |
| 715 | state->tms1 = devtag_get_device(machine, "tms1"); | |
| 716 | state->tms2 = devtag_get_device(machine, "tms2"); | |
| 717 | state->ay1 = devtag_get_device(machine, "ay1"); | |
| 718 | state->ay2 = devtag_get_device(machine, "ay2"); | |
| 709 | state->audiocpu = machine->device("audiocpu"); | |
| 710 | state->s2636_1 = machine->device("s2636_1"); | |
| 711 | state->s2636_2 = machine->device("s2636_2"); | |
| 712 | state->s2636_3 = machine->device("s2636_3"); | |
| 713 | state->pia = machine->device("pia"); | |
| 714 | state->sn = machine->device("snsnd"); | |
| 715 | state->tms1 = machine->device("tms1"); | |
| 716 | state->tms2 = machine->device("tms2"); | |
| 717 | state->ay1 = machine->device("ay1"); | |
| 718 | state->ay2 = machine->device("ay2"); | |
| 719 | 719 | |
| 720 | 720 | state_save_register_global(machine, state->video_page); |
| 721 | 721 | state_save_register_global(machine, state->input_mux); |
| r8581 | r8582 | |
|---|---|---|
| 116 | 116 | C = 0; |
| 117 | 117 | if (offset & 0x008) C += 47000; /* 47000pF = 0.047uF */ |
| 118 | 118 | if (offset & 0x010) C += 470000; /* 470000pF = 0.47uF */ |
| 119 | filter_rc_set_RC( | |
| 119 | filter_rc_set_RC( | |
| 120 | 120 | |
| 121 | 121 | /* 76489 #1 (optional) */ |
| 122 | 122 | C = 0; |
| 123 | 123 | if (offset & 0x020) C += 47000; /* 47000pF = 0.047uF */ |
| 124 | 124 | if (offset & 0x040) C += 470000; /* 470000pF = 0.47uF */ |
| 125 | // filter_rc_set_RC( | |
| 125 | // filter_rc_set_RC( | |
| 126 | 126 | |
| 127 | 127 | /* 76489 #2 */ |
| 128 | 128 | C = 0; |
| 129 | 129 | if (offset & 0x080) C += 470000; /* 470000pF = 0.47uF */ |
| 130 | filter_rc_set_RC( | |
| 130 | filter_rc_set_RC( | |
| 131 | 131 | |
| 132 | 132 | /* 76489 #3 */ |
| 133 | 133 | C = 0; |
| 134 | 134 | if (offset & 0x100) C += 470000; /* 470000pF = 0.47uF */ |
| 135 | filter_rc_set_RC( | |
| 135 | filter_rc_set_RC( | |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | static WRITE8_HANDLER( tp84_sh_irqtrigger_w ) |
| r8581 | r8582 | |
|---|---|---|
| 171 | 171 | |
| 172 | 172 | NAOMI ROM cart usage |
| 173 | 173 | ------------------------- |
| 174 | There are | |
| 174 | There are 4 known types of carts manufactured by Sega: 171-7919A, 171-7978B, 171-8132B, 171-8346C | |
| 175 | 175 | There are also 2 types of carts manufactured by Namco: MASK-B, MASK-C |
| 176 | 176 | |
| 177 | 177 | 837-13668 171-7919A (C) Sega 1998 |
| r8581 | r8582 | |
| 192 | 192 | The other side of the cart PCB just has more locations for |
| 193 | 193 | SOP44 MASKROMs... IC12S to IC21S (ROM12 to ROM21) |
| 194 | 194 | |
| 195 | IC1-IC21S - MaskROM (SOP44), either 32M or 64M. Not all positions are populated. | |
| 195 | IC1-IC21S - MaskROM (SOP44), either 32Mb or 64Mb. Not all positions are populated. | |
| 196 | 196 | IC22 - EPROM (DIP42), either 27C160 or 27C322 |
| 197 | 197 | JP1 - JUMPER Sets the size of the EPROM. 1-2 = 32M, 2-3 = 16M |
| 198 | 198 | IC37 - FLASHROM (SOIC8) Xicor X76F100 Secure SerialFlash |
| r8581 | r8582 | |
| 283 | 283 | IC13S - EEPROM (SOIC8) 25LC040 serial EEPROM |
| 284 | 284 | IC14 - 256 x 9 AsyncFIFO, 5.0V (SOP28) |
| 285 | 285 | IC15 - SRAM (SOJ28) 32kx8, IDT71256 |
| 286 | IC17S-IC38S - MaskROM (SOP44), either 32M or 64M | |
| 286 | IC17S-IC38S - MaskROM (SOP44), either 32Mb or 64Mb | |
| 287 | 287 | CN1/2/3 - connectors joining to main board |
| 288 | 288 | |
| 289 | 289 | Games known to use this PCB include.... |
| r8581 | r8582 | |
| 316 | 316 | | | |
| 317 | 317 | | ----CN3---- ----CN1---- | |
| 318 | 318 | |----------------------------------------------------------| |
| 319 | ||
| 320 | 319 | Notes: |
| 320 | The female side of the cart PCB only has traces | |
| 321 | 321 | |
| 322 | 322 | OSC1 - oscillator 28.000MHz |
| 323 | IC1-IC11 - MaskROM (TSOP48), 128M | |
| 323 | IC1-IC11 - MaskROM (TSOP48), 128Mb | |
| 324 | 324 | IC22 - EPROM (DIP42), either 27C160 or 27C322 |
| 325 | 325 | JP1 - JUMPER Sets the size of the EPROM. 1-2 = 32M, 2-3 = 16M |
| 326 | 326 | IC27 - PLD Sega 315-6319A ALTERA EPM7032 (PLCC44) |
| r8581 | r8582 | |
| 349 | 349 | |
| 350 | 350 | |
| 351 | 351 | |
| 352 | 171-8346C (C) Sega 2005 | |
| 353 | |---------------------------------------------------------| | |
| 354 | | IC12 IC8 ----CN2---- -| | |
| 355 | | (IC22,1-7) IC7 | | |
| 356 | | IC6 | | |
| 357 | | IC13 IC9 IC4 | | |
| 358 | | (IC8-15) | | |
| 359 | | IC5 IC2 IC3 | male side | |
| 360 | | IC14 IC10 JP1 IC16 | | |
| 361 | | (IC16-21) JP2 | | |
| 362 | | IC1 | | |
| 363 | | IC15 IC11 | | |
| 364 | | ----CN3---- ----CN1---- | | |
| 365 | |----------------------------------------------------------| | |
| 366 | Notes: | |
| 367 | The female side of the cart PCB only has traces | |
| 368 | ||
| 369 | IC1 - 74LVCH16245A (16bit transceiver with direction pin) | |
| 370 | IC2 - XC3S50 Xilinx Spartan FPGA (TQFP144) | |
| 371 | IC3 - PIC16C621A EPROM-Based 8-Bit CMOS Microcontroller (PDIP18) with internal memory. | |
| 372 | On the end of the number, -JPN means it requires Japanese BIOS, -COM will run with any BIOS | |
| 373 | IC4 - XCF01SVG Xilinx Platform Flash In-System Programmable Configuration PROMS (TSSOP20) | |
| 374 | IC5 - 74LVC08A (Quad 2-input AND gate) | |
| 375 | IC6 - 74LVCH16245A (16bit transceiver with direction pin) | |
| 376 | IC7 - empty socket for EPROM (DIP42), either 27C160 or 27C322 | |
| 377 | IC8-IC15 - S29GL512N FlashROM (TSOP56), 512Mb. | |
| 378 | IC16 - R3112N431A Low voltage detector with output delay (SOT-23-5) | |
| 379 | JP1 - JUMPER Sets the size of the EPROM. 1-2 = 32M, 2-3 = 16M | |
| 380 | JP2 - JUMPER unknown function | |
| 381 | CN1/2/3 - connectors joining to main board | |
| 382 | CN4 - 6 legs connector for ISP programming | |
| 383 | ||
| 384 | Games known to use this PCB include.... | |
| 385 | Sticker EPROM # of SOP56 | |
| 386 | Game on cart IC7# FLASHROMs IC2# IC3# IC4# Notes | |
| 387 | ----------------------------------------------------------------------------------------------------------------------- | |
| 388 | Touch De Zunou (Rev A) 840-0166C unpopulated 2 (512Mb) XC3S50 317-0435-JPN XCF01S IC4# is marked "18" | |
| 389 | ||
| 390 | ||
| 352 | 391 | Note! Generally, games that require a special I/O board or controller will not boot at all with a |
| 353 | 392 | standard NAOMI I/O board. Usually they display a message saying the I/O board is not acceptable |
| 354 | 393 | or not connected properly. |
| r8581 | r8582 | |
| 1816 | 1855 | static MACHINE_RESET( naomi ) |
| 1817 | 1856 | { |
| 1818 | 1857 | MACHINE_RESET_CALL(dc); |
| 1819 | aica_set_ram_base( | |
| 1858 | aica_set_ram_base(m | |
| 1820 | 1859 | } |
| 1821 | 1860 | |
| 1822 | 1861 | /* |
| r8581 | r8582 | |
| 4633 | 4672 | NAOMIGD_BIOS |
| 4634 | 4673 | NAOMI_DEFAULT_EEPROM |
| 4635 | 4674 | |
| 4636 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4637 | ||
| 4638 | 4675 | DISK_REGION( "gdrom" ) |
| 4639 | 4676 | DISK_IMAGE_READONLY( "gdl-0001", 0, SHA1(615e19c22f32096f3aad557019a14313b60a4070) ) |
| 4640 | 4677 | |
| r8581 | r8582 | |
| 4653 | 4690 | NAOMIGD_BIOS |
| 4654 | 4691 | NAOMI_DEFAULT_EEPROM |
| 4655 | 4692 | |
| 4656 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4657 | ||
| 4658 | 4693 | DISK_REGION( "gdrom" ) |
| 4659 | 4694 | DISK_IMAGE_READONLY( "gdl-0002", 0, SHA1(af4669fdd7ce8e6ec4a170748d401e322a3d7ae8) ) |
| 4660 | 4695 | |
| r8581 | r8582 | |
| 4671 | 4706 | NAOMIGD_BIOS |
| 4672 | 4707 | NAOMI_DEFAULT_EEPROM |
| 4673 | 4708 | |
| 4674 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4675 | ||
| 4676 | 4709 | DISK_REGION( "gdrom" ) |
| 4677 | 4710 | DISK_IMAGE_READONLY( "gdl-0004", 0, SHA1(7a7fba0fbbc769c5120b08e6d692f1ac63a42225) ) |
| 4678 | 4711 | |
| r8581 | r8582 | |
| 4690 | 4723 | NAOMIGD_BIOS |
| 4691 | 4724 | NAOMI_DEFAULT_EEPROM |
| 4692 | 4725 | |
| 4693 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4694 | ||
| 4695 | 4726 | DISK_REGION( "gdrom" ) |
| 4696 | 4727 | DISK_IMAGE_READONLY( "gdl-0006", 0, SHA1(b28d6598711b5a9c744bbf07ad03fc60962d2e28) ) |
| 4697 | 4728 | |
| r8581 | r8582 | |
| 4709 | 4740 | NAOMIGD_BIOS |
| 4710 | 4741 | NAOMI_DEFAULT_EEPROM |
| 4711 | 4742 | |
| 4712 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4713 | ||
| 4714 | 4743 | DISK_REGION( "gdrom" ) |
| 4715 | 4744 | DISK_IMAGE_READONLY( "gdl-0007a", 0, SHA1(56510390667b39b3915d8bc078660cbe093cf566) ) |
| 4716 | 4745 | |
| r8581 | r8582 | |
| 4727 | 4756 | NAOMIGD_BIOS |
| 4728 | 4757 | NAOMI_DEFAULT_EEPROM |
| 4729 | 4758 | |
| 4730 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4731 | ||
| 4732 | 4759 | DISK_REGION( "gdrom" ) |
| 4733 | 4760 | DISK_IMAGE_READONLY( "gdl-0010", 0, SHA1(65dcc22dd9e9b70975096464ad8e31a4a73dc5fd) ) |
| 4734 | 4761 | |
| r8581 | r8582 | |
| 4746 | 4773 | NAOMIGD_BIOS |
| 4747 | 4774 | NAOMI_DEFAULT_EEPROM |
| 4748 | 4775 | |
| 4749 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4750 | ||
| 4751 | 4776 | DISK_REGION( "gdrom" ) |
| 4752 | 4777 | DISK_IMAGE_READONLY( "gdl-0011", 0, SHA1(b7328eb2c588d55284bdcea0fe89bb8e629a8669) ) |
| 4753 | 4778 | |
| r8581 | r8582 | |
| 4767 | 4792 | NAOMIGD_BIOS |
| 4768 | 4793 | NAOMI_DEFAULT_EEPROM |
| 4769 | 4794 | |
| 4770 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4771 | ||
| 4772 | 4795 | DISK_REGION( "gdrom" ) |
| 4773 | 4796 | DISK_IMAGE_READONLY( "gdl-0012", 0, SHA1(aae4c1321fdee37d5405c6cbe648e0596624ed13) ) |
| 4774 | 4797 | |
| r8581 | r8582 | |
| 4785 | 4808 | NAOMIGD_BIOS |
| 4786 | 4809 | NAOMI_DEFAULT_EEPROM |
| 4787 | 4810 | |
| 4788 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4789 | 4811 | |
| 4812 | ||
| 4790 | 4813 | DISK_REGION( "gdrom" ) |
| 4791 | 4814 | DISK_IMAGE_READONLY( "gdl-0013", 0, SHA1(c8869069c28bc8eec96d820886bc388d69d46143) ) |
| 4792 | 4815 | |
| r8581 | r8582 | |
| 4804 | 4827 | NAOMIGD_BIOS |
| 4805 | 4828 | NAOMI_DEFAULT_EEPROM |
| 4806 | 4829 | |
| 4807 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4808 | 4830 | |
| 4831 | ||
| 4809 | 4832 | DISK_REGION( "gdrom" ) |
| 4810 | 4833 | DISK_IMAGE_READONLY( "gdl-0014a", 0, SHA1(f88d8203c8692f51c9492d5549a3ad7d9583dc6f) ) |
| 4811 | 4834 | |
| r8581 | r8582 | |
| 4823 | 4846 | NAOMIGD_BIOS |
| 4824 | 4847 | NAOMI_DEFAULT_EEPROM |
| 4825 | 4848 | |
| 4826 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4827 | 4849 | |
| 4850 | ||
| 4828 | 4851 | DISK_REGION( "gdrom" ) |
| 4829 | 4852 | DISK_IMAGE_READONLY( "gdl-0017", 0, SHA1(94a9319633388968611892e36691b45c94b4f83f) ) |
| 4830 | 4853 | |
| r8581 | r8582 | |
| 4841 | 4864 | NAOMIGD_BIOS |
| 4842 | 4865 | NAOMI_DEFAULT_EEPROM |
| 4843 | 4866 | |
| 4844 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4845 | 4867 | |
| 4868 | ||
| 4846 | 4869 | DISK_REGION( "gdrom" ) |
| 4847 | 4870 | DISK_IMAGE_READONLY( "gdl-0018", 0, SHA1(3e40ca7d43173fe7048d199fdc127b9411e10360) ) |
| 4848 | 4871 | |
| r8581 | r8582 | |
| 4856 | 4879 | NAOMIGD_BIOS |
| 4857 | 4880 | NAOMI_DEFAULT_EEPROM |
| 4858 | 4881 | |
| 4859 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4860 | 4882 | |
| 4883 | ||
| 4861 | 4884 | DISK_REGION( "gdrom" ) |
| 4862 | 4885 | DISK_IMAGE_READONLY( "gdl-0019a", 0, SHA1(d44906505ff698eda6feee6c2b9402e19f64e5d3) ) |
| 4863 | 4886 | |
| r8581 | r8582 | |
| 4875 | 4898 | NAOMIGD_BIOS |
| 4876 | 4899 | NAOMI_DEFAULT_EEPROM |
| 4877 | 4900 | |
| 4878 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4879 | 4901 | |
| 4902 | ||
| 4880 | 4903 | DISK_REGION( "gdrom" ) |
| 4881 | 4904 | DISK_IMAGE_READONLY( "gdl-0020", 0, SHA1(7b2ef47ca2038d6a93615b760b03e8f7cb1b83c2) ) |
| 4882 | 4905 | |
| r8581 | r8582 | |
| 4894 | 4917 | NAOMIGD_BIOS |
| 4895 | 4918 | NAOMI_DEFAULT_EEPROM |
| 4896 | 4919 | |
| 4897 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4898 | 4920 | |
| 4921 | ||
| 4899 | 4922 | DISK_REGION( "gdrom" ) |
| 4900 | 4923 | DISK_IMAGE_READONLY( "gdl-0021", 0, SHA1(f5036711a28a211e8d71400a8322db3172c5733f) ) |
| 4901 | 4924 | |
| r8581 | r8582 | |
| 4913 | 4936 | NAOMIGD_BIOS |
| 4914 | 4937 | NAOMI_DEFAULT_EEPROM |
| 4915 | 4938 | |
| 4916 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4917 | 4939 | |
| 4940 | ||
| 4918 | 4941 | DISK_REGION( "gdrom" ) |
| 4919 | 4942 | DISK_IMAGE_READONLY( "gdl-0022", 0, SHA1(45deba05a12abbf6390c0fc0e4cdeaedfa7d2ca5) ) |
| 4920 | 4943 | |
| r8581 | r8582 | |
| 4932 | 4955 | NAOMIGD_BIOS |
| 4933 | 4956 | NAOMI_DEFAULT_EEPROM |
| 4934 | 4957 | |
| 4935 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4936 | 4958 | |
| 4959 | ||
| 4937 | 4960 | DISK_REGION( "gdrom" ) |
| 4938 | 4961 | DISK_IMAGE_READONLY( "gdl-0023a", 0, SHA1(caac915104d61f2122f5afe27da1ef5fa9cf9f9a) ) |
| 4939 | 4962 | |
| r8581 | r8582 | |
| 4952 | 4975 | NAOMIGD_BIOS |
| 4953 | 4976 | NAOMI_DEFAULT_EEPROM |
| 4954 | 4977 | |
| 4955 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4956 | 4978 | |
| 4979 | ||
| 4957 | 4980 | DISK_REGION( "gdrom" ) |
| 4958 | 4981 | DISK_IMAGE_READONLY( "gdl-0024", 0, SHA1(d346762036fb1c40a261a434b50e63459f306f14) ) |
| 4959 | 4982 | |
| r8581 | r8582 | |
| 4971 | 4994 | NAOMIGD_BIOS |
| 4972 | 4995 | NAOMI_DEFAULT_EEPROM |
| 4973 | 4996 | |
| 4974 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4975 | 4997 | |
| 4998 | ||
| 4976 | 4999 | DISK_REGION( "gdrom" ) |
| 4977 | 5000 | DISK_IMAGE_READONLY( "gdl-0025", 0, SHA1(be0d88eb4f48403a2ceaa7ef588ed60b96ba93bf) ) |
| 4978 | 5001 | |
| r8581 | r8582 | |
| 4991 | 5014 | NAOMIGD_BIOS |
| 4992 | 5015 | NAOMI_DEFAULT_EEPROM |
| 4993 | 5016 | |
| 4994 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 4995 | 5017 | |
| 5018 | ||
| 4996 | 5019 | DISK_REGION( "gdrom" ) |
| 4997 | 5020 | DISK_IMAGE_READONLY( "gdl-0026", 0, SHA1(e4c1e51292a7923b25bfc61d38fe386bf596002a) ) |
| 4998 | 5021 | |
| r8581 | r8582 | |
| 5011 | 5034 | NAOMIGD_BIOS |
| 5012 | 5035 | NAOMI_DEFAULT_EEPROM |
| 5013 | 5036 | |
| 5014 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5015 | 5037 | |
| 5038 | ||
| 5016 | 5039 | DISK_REGION( "gdrom" ) |
| 5017 | 5040 | DISK_IMAGE_READONLY( "gdl-0028c", 0, SHA1(66de09738551e351784cc9695a58b35fdf6b6c4b) ) |
| 5018 | 5041 | |
| r8581 | r8582 | |
| 5030 | 5053 | NAOMIGD_BIOS |
| 5031 | 5054 | NAOMI_DEFAULT_EEPROM |
| 5032 | 5055 | |
| 5033 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5034 | 5056 | |
| 5057 | ||
| 5035 | 5058 | DISK_REGION( "gdrom" ) |
| 5036 | 5059 | DISK_IMAGE_READONLY( "gdl-0030a", 0, SHA1(1f7ade47e37a0026451b5baf3ba746400de8d156) ) |
| 5037 | 5060 | |
| r8581 | r8582 | |
| 5048 | 5071 | NAOMIGD_BIOS |
| 5049 | 5072 | NAOMI_DEFAULT_EEPROM |
| 5050 | 5073 | |
| 5051 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5052 | 5074 | |
| 5075 | ||
| 5053 | 5076 | DISK_REGION( "gdrom" ) |
| 5054 | 5077 | DISK_IMAGE_READONLY( "gdl-0030", 0, SHA1(c7f25c05f47a490c5da9369c588b6136e93c280e) ) |
| 5055 | 5078 | |
| r8581 | r8582 | |
| 5067 | 5090 | NAOMIGD_BIOS |
| 5068 | 5091 | NAOMI_DEFAULT_EEPROM |
| 5069 | 5092 | |
| 5070 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5071 | ||
| 5072 | 5093 | DISK_REGION( "gdrom" ) |
| 5073 | 5094 | DISK_IMAGE_READONLY( "gdl-0031", 0, SHA1(83697f45f0ffbb964f0504b19171c554499cd709) ) |
| 5074 | 5095 | |
| r8581 | r8582 | |
| 5086 | 5107 | NAOMIGD_BIOS |
| 5087 | 5108 | NAOMI_DEFAULT_EEPROM |
| 5088 | 5109 | |
| 5089 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5090 | ||
| 5091 | 5110 | DISK_REGION( "gdrom" ) |
| 5092 | 5111 | DISK_IMAGE_READONLY( "gdl-0031a", 0, SHA1(6091525845fc2042ed43cae5a1b60c603e16cf97) ) |
| 5093 | 5112 | |
| r8581 | r8582 | |
| 5105 | 5124 | NAOMIGD_BIOS |
| 5106 | 5125 | NAOMI_DEFAULT_EEPROM |
| 5107 | 5126 | |
| 5108 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5109 | ||
| 5110 | 5127 | DISK_REGION( "gdrom" ) |
| 5111 | 5128 | DISK_IMAGE_READONLY( "gdl-0032", 0, SHA1(ebd7a40e59082e660ebf9a2d4ae7cb64371dae8d) ) |
| 5112 | 5129 | |
| r8581 | r8582 | |
| 5124 | 5141 | NAOMIGD_BIOS |
| 5125 | 5142 | NAOMI_DEFAULT_EEPROM |
| 5126 | 5143 | |
| 5127 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5128 | ||
| 5129 | 5144 | DISK_REGION( "gdrom" ) |
| 5130 | 5145 | DISK_IMAGE_READONLY( "gdl-0033a", 0, SHA1(29de69ae97a9099b1bbe936dfa965bb4a3195f68) ) |
| 5131 | 5146 | |
| r8581 | r8582 | |
| 5144 | 5159 | NAOMIGD_BIOS |
| 5145 | 5160 | NAOMI_DEFAULT_EEPROM |
| 5146 | 5161 | |
| 5147 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5148 | ||
| 5149 | 5162 | DISK_REGION( "gdrom" ) |
| 5150 | 5163 | DISK_IMAGE_READONLY( "gdl-0034", 0, SHA1(10fd7edb0b620133c003d686e5af2ed27004fa09) ) |
| 5151 | 5164 | |
| r8581 | r8582 | |
| 5163 | 5176 | NAOMIGD_BIOS |
| 5164 | 5177 | NAOMI_DEFAULT_EEPROM |
| 5165 | 5178 | |
| 5166 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5167 | ||
| 5168 | 5179 | DISK_REGION( "gdrom" ) |
| 5169 | 5180 | DISK_IMAGE_READONLY( "gdl-0035", 0, SHA1(91da482a6a082e48bee5b3bd20d9c92d23936965) ) |
| 5170 | 5181 | |
| r8581 | r8582 | |
| 5182 | 5193 | NAOMIGD_BIOS |
| 5183 | 5194 | NAOMI_DEFAULT_EEPROM |
| 5184 | 5195 | |
| 5185 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5186 | ||
| 5187 | 5196 | DISK_REGION( "gdrom" ) |
| 5188 | 5197 | DISK_IMAGE_READONLY( "gdl-0036a", 0, SHA1(91f1e19136997cb1e2edfb1ad342b9427d1d3bfb) ) |
| 5189 | 5198 | |
| r8581 | r8582 | |
| 5201 | 5210 | NAOMIGD_BIOS |
| 5202 | 5211 | NAOMI_DEFAULT_EEPROM |
| 5203 | 5212 | |
| 5204 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5205 | ||
| 5206 | 5213 | DISK_REGION( "gdrom" ) |
| 5207 | 5214 | DISK_IMAGE_READONLY( "gdl-0037", 0, SHA1(99ffe2987e3002b3871daf276d2be45f2e9c6e74) ) |
| 5208 | 5215 | |
| 5209 | ||
| 5210 | 5216 | ROM_REGION( 0x50, "picreturn", ROMREGION_ERASE) |
| 5211 | 5217 | //ROM_LOAD("317-5122-jpn.data", 0x00, 0x50, CRC(0b85b7e4) SHA1(f4e419682ddc4b98a330e5ae543f9276c9bde030) ) |
| 5212 | 5218 | |
| r8581 | r8582 | |
| 5221 | 5227 | NAOMIGD_BIOS |
| 5222 | 5228 | NAOMI_DEFAULT_EEPROM |
| 5223 | 5229 | |
| 5224 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5225 | ||
| 5226 | 5230 | DISK_REGION( "gdrom" ) |
| 5227 | 5231 | DISK_IMAGE_READONLY( "gdl-0038", 0, SHA1(430572f7e76c4fe009e2de91bf891d85613366b7) ) |
| 5228 | 5232 | |
| 5229 | ||
| 5230 | 5233 | ROM_REGION( 0x50, "picreturn", ROMREGION_ERASE) |
| 5231 | 5234 | |
| 5232 | 5235 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| r8581 | r8582 | |
| 5240 | 5243 | NAOMIGD_BIOS |
| 5241 | 5244 | NAOMI_DEFAULT_EEPROM |
| 5242 | 5245 | |
| 5243 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5244 | ||
| 5245 | 5246 | DISK_REGION( "gdrom" ) |
| 5246 | 5247 | DISK_IMAGE_READONLY( "gdl-0039", 0, SHA1(ffc7f6e113ad69422a4f22f318bdf9b1dc5c25db) ) |
| 5247 | 5248 | |
| r8581 | r8582 | |
| 5258 | 5259 | NAOMIGD_BIOS |
| 5259 | 5260 | NAOMI_DEFAULT_EEPROM |
| 5260 | 5261 | |
| 5261 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5262 | ||
| 5263 | 5262 | DISK_REGION( "gdrom" ) |
| 5264 | 5263 | DISK_IMAGE_READONLY( "gdl-0039a", 0, SHA1(e6aa3d65b43a20606e6754bcb8665438770a1f8c) ) |
| 5265 | 5264 | |
| r8581 | r8582 | |
| 5277 | 5276 | NAOMIGD_BIOS |
| 5278 | 5277 | NAOMI_DEFAULT_EEPROM |
| 5279 | 5278 | |
| 5280 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5281 | ||
| 5282 | 5279 | DISK_REGION( "gdrom" ) |
| 5283 | 5280 | DISK_IMAGE_READONLY( "gdl-0040", 0, SHA1(a62c8d4b6c5be44a4aeeea1a1a94f3d0fe542593) ) |
| 5284 | 5281 | |
| r8581 | r8582 | |
| 5317 | 5314 | NAOMIGD_BIOS |
| 5318 | 5315 | NAOMI_DEFAULT_EEPROM |
| 5319 | 5316 | |
| 5320 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5321 | ||
| 5322 | 5317 | DISK_REGION( "gdrom" ) |
| 5323 | 5318 | DISK_IMAGE_READONLY( "gdl-0041", 0, SHA1(3a589e1c79ead971c821a7566032b0187e339684) ) |
| 5324 | 5319 | |
| r8581 | r8582 | |
| 5335 | 5330 | NAOMIGD_BIOS |
| 5336 | 5331 | NAOMI_DEFAULT_EEPROM |
| 5337 | 5332 | |
| 5338 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5339 | ||
| 5340 | 5333 | DISK_REGION( "gdrom" ) |
| 5341 | 5334 | DISK_IMAGE_READONLY( "gdl-0042", 0, SHA1(984a4fa012d83dd8c748304958c847c9867f4125) ) |
| 5342 | 5335 | |
| r8581 | r8582 | |
| 5377 | 5370 | NAOMIGD_BIOS |
| 5378 | 5371 | NAOMI_DEFAULT_EEPROM |
| 5379 | 5372 | |
| 5380 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5381 | ||
| 5382 | 5373 | DISK_REGION( "gdrom" ) |
| 5383 | 5374 | DISK_IMAGE_READONLY( "gds-0001", 0, SHA1(bd05f197ba8643577883dd25d9d5a74c91b27ca9) ) |
| 5384 | 5375 | |
| r8581 | r8582 | |
| 5394 | 5385 | NAOMIGD_BIOS |
| 5395 | 5386 | NAOMI_DEFAULT_EEPROM |
| 5396 | 5387 | |
| 5397 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5398 | ||
| 5399 | 5388 | DISK_REGION( "gdrom" ) |
| 5400 | 5389 | DISK_IMAGE_READONLY( "gds-0003", 0, SHA1(caaba214c1faca78b3370bcd4190eb2853d7f825) ) |
| 5401 | 5390 | |
| r8581 | r8582 | |
| 5413 | 5402 | NAOMIGD_BIOS |
| 5414 | 5403 | NAOMI_DEFAULT_EEPROM |
| 5415 | 5404 | |
| 5416 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5417 | ||
| 5418 | 5405 | DISK_REGION( "gdrom" ) |
| 5419 | 5406 | DISK_IMAGE_READONLY( "gds-0004", 0, SHA1(3cce788393ed194ba9b603f9896ff893691d6b00) ) |
| 5420 | 5407 | |
| r8581 | r8582 | |
| 5432 | 5419 | NAOMIGD_BIOS |
| 5433 | 5420 | NAOMI_DEFAULT_EEPROM |
| 5434 | 5421 | |
| 5435 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5436 | ||
| 5437 | 5422 | DISK_REGION( "gdrom" ) |
| 5438 | 5423 | DISK_IMAGE_READONLY( "gds-0005", 0, SHA1(d1c3fb2350e4a89372373e7f629c42b741af29b3) ) |
| 5439 | 5424 | |
| r8581 | r8582 | |
| 5472 | 5457 | NAOMIGD_BIOS |
| 5473 | 5458 | NAOMI_DEFAULT_EEPROM |
| 5474 | 5459 | |
| 5475 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5476 | ||
| 5477 | 5460 | DISK_REGION( "gdrom" ) |
| 5478 | 5461 | DISK_IMAGE_READONLY( "gds-0008", 0, SHA1(2fadcd141bdbde77b2b335b270959a516af44d99) ) |
| 5479 | 5462 | |
| r8581 | r8582 | |
| 5520 | 5503 | ROM_REGION( 0x10000, "io_board", 0) |
| 5521 | 5504 | ROM_LOAD("epr-22084.ic3", 0x0000, 0x10000, CRC(18cf58bb) SHA1(1494f8215231929e41bbe2a133658d01882fbb0f) ) |
| 5522 | 5505 | |
| 5523 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5524 | ||
| 5525 | 5506 | DISK_REGION( "gdrom" ) |
| 5526 | DISK_IMAGE_READONLY( "gds-0009", 0, SHA1(d502155ddaf881c2c9505528004b9904aa32a59c) ) | |
| 5507 | DISK_IMAGE_READONLY( "gds-0009a", 0, SHA1(d502155ddaf881c2c9505528004b9904aa32a59c) ) | |
| 5527 | 5508 | |
| 5528 | 5509 | ROM_REGION( 0x50, "picreturn", ROMREGION_ERASE) |
| 5529 | 5510 | //ROM_LOAD("317-0308-com.data", 0x00, 0x50, CRC(56f63af0) SHA1(3c453226fc53d2f700b3634db3ef8ce206d94392) ) |
| r8581 | r8582 | |
| 5539 | 5520 | NAOMIGD_BIOS |
| 5540 | 5521 | NAOMI_DEFAULT_EEPROM |
| 5541 | 5522 | |
| 5542 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5543 | ||
| 5544 | 5523 | DISK_REGION( "gdrom" ) |
| 5545 | 5524 | DISK_IMAGE_READONLY( "gds-0010", 0, SHA1(c3135ede3a8bdadab91aed49abacbfbde8037069) ) |
| 5546 | 5525 | |
| r8581 | r8582 | |
| 5558 | 5537 | NAOMIGD_BIOS |
| 5559 | 5538 | NAOMI_DEFAULT_EEPROM |
| 5560 | 5539 | |
| 5561 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5562 | ||
| 5563 | 5540 | DISK_REGION( "gdrom" ) |
| 5564 | 5541 | DISK_IMAGE_READONLY( "gds-0011", 0, SHA1(b778403d73c8cdd13383691c9be2094ddfc1ba84) ) |
| 5565 | 5542 | |
| r8581 | r8582 | |
| 5576 | 5553 | NAOMIGD_BIOS |
| 5577 | 5554 | NAOMI_DEFAULT_EEPROM |
| 5578 | 5555 | |
| 5579 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5580 | ||
| 5581 | 5556 | DISK_REGION( "gdrom" ) |
| 5582 | 5557 | DISK_IMAGE_READONLY( "gds-0017", 0, SHA1(fb86eff3ef38de7fd78cfde897d5332d2092c172) ) |
| 5583 | 5558 | |
| r8581 | r8582 | |
| 5594 | 5569 | NAOMIGD_BIOS |
| 5595 | 5570 | NAOMI_DEFAULT_EEPROM |
| 5596 | 5571 | |
| 5597 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5598 | ||
| 5599 | 5572 | DISK_REGION( "gdrom" ) |
| 5600 | 5573 | DISK_IMAGE_READONLY( "gds-0019", 0, SHA1(955d3c0cb991be3057138c562cff69c5ef887787) ) |
| 5601 | 5574 | |
| r8581 | r8582 | |
| 5636 | 5609 | NAOMIGD_BIOS |
| 5637 | 5610 | NAOMI_DEFAULT_EEPROM |
| 5638 | 5611 | |
| 5639 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5640 | ||
| 5641 | 5612 | DISK_REGION( "gdrom" ) |
| 5642 | 5613 | DISK_IMAGE_READONLY( "gds-0015a", 0, SHA1(c6e9c9901bd4f075454b7f18baf08df81bc2f1ad) ) |
| 5643 | 5614 | |
| r8581 | r8582 | |
| 5654 | 5625 | NAOMIGD_BIOS |
| 5655 | 5626 | NAOMI_DEFAULT_EEPROM |
| 5656 | 5627 | |
| 5657 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5658 | ||
| 5659 | 5628 | DISK_REGION( "gdrom" ) |
| 5660 | 5629 | DISK_IMAGE_READONLY( "gds-0018", 0, SHA1(0633a99a666f363ab30450a76b9753685d6b1f57) ) |
| 5661 | 5630 | |
| r8581 | r8582 | |
| 5671 | 5640 | NAOMIGD_BIOS |
| 5672 | 5641 | NAOMI_DEFAULT_EEPROM |
| 5673 | 5642 | |
| 5674 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5675 | ||
| 5676 | 5643 | DISK_REGION( "gdrom" ) |
| 5677 | 5644 | DISK_IMAGE_READONLY( "gds-0021a", 0, SHA1(15c6f9434494a31693cbb8e33da36e0e8a8f7c62) ) |
| 5678 | 5645 | |
| r8581 | r8582 | |
| 5712 | 5679 | NAOMIGD_BIOS |
| 5713 | 5680 | NAOMI_DEFAULT_EEPROM |
| 5714 | 5681 | |
| 5715 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5716 | ||
| 5717 | 5682 | DISK_REGION( "gdrom" ) |
| 5718 | 5683 | DISK_IMAGE_READONLY( "gds-0022", 0, SHA1(70b41745225006e7876176cbd239edecd4c3f8b6) ) |
| 5719 | 5684 | |
| r8581 | r8582 | |
| 5730 | 5695 | NAOMIGD_BIOS |
| 5731 | 5696 | NAOMI_DEFAULT_EEPROM |
| 5732 | 5697 | |
| 5733 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5734 | ||
| 5735 | 5698 | DISK_REGION( "gdrom" ) |
| 5736 | 5699 | DISK_IMAGE_READONLY( "gds-0023a", 0, SHA1(cd9d808b59eb8f40673ec4353d476f2b9c7f783c) ) |
| 5737 | 5700 | |
| r8581 | r8582 | |
| 5749 | 5712 | NAOMIGD_BIOS |
| 5750 | 5713 | NAOMI_DEFAULT_EEPROM |
| 5751 | 5714 | |
| 5752 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5753 | ||
| 5754 | 5715 | DISK_REGION( "gdrom" ) |
| 5755 | 5716 | DISK_IMAGE_READONLY( "gds-0023c", 0, SHA1(1fcb5530748886f4c4f45487d047859182ff7496)) |
| 5756 | 5717 | |
| r8581 | r8582 | |
| 5768 | 5729 | NAOMIGD_BIOS |
| 5769 | 5730 | NAOMI_DEFAULT_EEPROM |
| 5770 | 5731 | |
| 5771 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 5772 | ||
| 5773 | 5732 | DISK_REGION( "gdrom" ) |
| 5774 | 5733 | DISK_IMAGE_READONLY( "gds-0031", 0, SHA1(da2d421da9472b149619b6931bb2fe624be75fa2) ) |
| 5775 | 5734 | |
| r8581 | r8582 | |
| 5852 | 5811 | //GDS-0006 Virtua Striker 3 (NAOMI 2) |
| 5853 | 5812 | //GDS-0007 Shakatto Tambourine Motto Norinori Shinkyoku Tsuika |
| 5854 | 5813 | GAME( 2001, monkeyba, naomigd, naomigd, naomi, naomi, ROT0, "Sega", "Monkey Ball (GDS-0008)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING ) |
| 5855 | GAME( 2001, dygolf, naomigd, naomigd, naomi, naomi, ROT0, "Sega", "Virtua Golf / Dynamic Golf (GDS-0009)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING ) | |
| 5814 | GAME( 2001, dygolf, naomigd, naomigd, naomi, naomi, ROT0, "Sega", "Virtua Golf / Dynamic Golf (Rev A) (GDS-0009A)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING ) | |
| 5856 | 5815 | GAME( 2001, wsbbgd, naomigd, naomigd, naomi, naomi, ROT0, "Sega", "World Series Baseball / Super Major League (GDS-0010)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING ) |
| 5857 | 5816 | GAME( 2001, vtennisg, naomigd, naomigd, naomi, naomi, ROT0, "Sega", "Virtua Tennis (GDS-0011)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING ) |
| 5858 | 5817 | //GDS-0012 Virtua Fighter 4 (NAOMI 2) |
| r8581 | r8582 | |
| 6025 | 5984 | NAOMI2_BIOS |
| 6026 | 5985 | NAOMI_DEFAULT_EEPROM |
| 6027 | 5986 | |
| 6028 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6029 | ||
| 6030 | 5987 | DISK_REGION( "gdrom" ) |
| 6031 | 5988 | DISK_IMAGE_READONLY( "gds-0006", 0, SHA1(aca09a88506f5e462ad3fb33eac5478a2a010609) ) |
| 6032 | 5989 | |
| r8581 | r8582 | |
| 6043 | 6000 | NAOMI2_BIOS |
| 6044 | 6001 | NAOMI_DEFAULT_EEPROM |
| 6045 | 6002 | |
| 6046 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6047 | ||
| 6048 | 6003 | DISK_REGION( "gdrom" ) |
| 6049 | 6004 | DISK_IMAGE_READONLY( "gds-0012", 0, SHA1(c34588f59c6091cd1c3ef235171dad8d5247e707) ) |
| 6050 | 6005 | |
| r8581 | r8582 | |
| 6062 | 6017 | NAOMI2_BIOS |
| 6063 | 6018 | NAOMI_DEFAULT_EEPROM |
| 6064 | 6019 | |
| 6065 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6066 | ||
| 6067 | 6020 | DISK_REGION( "gdrom" ) |
| 6068 | 6021 | DISK_IMAGE_READONLY( "gds-0012b", 0, SHA1(9b8e05c3d28a09323b13c198dfcc2b771bba67cd) ) |
| 6069 | 6022 | |
| r8581 | r8582 | |
| 6081 | 6034 | NAOMI2_BIOS |
| 6082 | 6035 | NAOMI_DEFAULT_EEPROM |
| 6083 | 6036 | |
| 6084 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6085 | ||
| 6086 | 6037 | DISK_REGION( "gdrom" ) |
| 6087 | 6038 | DISK_IMAGE_READONLY( "gds-0012c", 0, SHA1(0ec149d7edfb326777cdc45a2ac8ad578a32aba1) ) |
| 6088 | 6039 | |
| r8581 | r8582 | |
| 6101 | 6052 | NAOMI2_BIOS |
| 6102 | 6053 | NAOMI_DEFAULT_EEPROM |
| 6103 | 6054 | |
| 6104 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6105 | ||
| 6106 | 6055 | DISK_REGION( "gdrom" ) |
| 6107 | 6056 | DISK_IMAGE_READONLY( "gds-0024b", 0, SHA1(a829169542f3bed76095ad6bfbbde7d494d04d72) ) |
| 6108 | 6057 | |
| r8581 | r8582 | |
| 6120 | 6069 | NAOMI2_BIOS |
| 6121 | 6070 | NAOMI_DEFAULT_EEPROM |
| 6122 | 6071 | |
| 6123 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6124 | ||
| 6125 | 6072 | DISK_REGION( "gdrom" ) |
| 6126 | 6073 | DISK_IMAGE_READONLY( "gds-0024a", 0, SHA1(6225e778d73db18be26f882d4f9cd3b3a136d1c9) ) |
| 6127 | 6074 | |
| r8581 | r8582 | |
| 6138 | 6085 | NAOMI2_BIOS |
| 6139 | 6086 | NAOMI_DEFAULT_EEPROM |
| 6140 | 6087 | |
| 6141 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6142 | ||
| 6143 | 6088 | DISK_REGION( "gdrom" ) |
| 6144 | 6089 | DISK_IMAGE_READONLY( "gds-0026", 0, SHA1(253acede106b7fbf49e24458e7fda868720e9549) ) |
| 6145 | 6090 | |
| r8581 | r8582 | |
| 6151 | 6096 | NAOMI2_BIOS |
| 6152 | 6097 | NAOMI_DEFAULT_EEPROM |
| 6153 | 6098 | |
| 6154 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6155 | ||
| 6156 | 6099 | DISK_REGION( "gdrom" ) |
| 6157 | 6100 | DISK_IMAGE_READONLY( "gds-0036f", 0, SHA1(ea35d6ecdf94e5c9a545952758da80f658755df0) ) |
| 6158 | 6101 | |
| r8581 | r8582 | |
| 6169 | 6112 | NAOMI2_BIOS |
| 6170 | 6113 | NAOMI_DEFAULT_EEPROM |
| 6171 | 6114 | |
| 6172 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6173 | ||
| 6174 | 6115 | DISK_REGION( "gdrom" ) |
| 6175 | 6116 | DISK_IMAGE_READONLY( "gds-0036d", 0, SHA1(2f7654307a4c978c5af6c8238c44e70275dd34f9) ) |
| 6176 | 6117 | |
| r8581 | r8582 | |
| 6189 | 6130 | NAOMI2_BIOS |
| 6190 | 6131 | NAOMI_DEFAULT_EEPROM |
| 6191 | 6132 | |
| 6192 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6193 | ||
| 6194 | 6133 | DISK_REGION( "gdrom" ) |
| 6195 | 6134 | DISK_IMAGE_READONLY( "gds-0036a", 0, SHA1(cd630fc4e8f7ed5641b85c609584d7efe0eac137) ) |
| 6196 | 6135 | |
| r8581 | r8582 | |
| 6230 | 6169 | |
| 6231 | 6170 | ROM_START( beachspi ) |
| 6232 | 6171 | NAOMI2_BIOS |
| 6233 | // NAOMIGD_BIOS | |
| 6234 | 6172 | NAOMI_DEFAULT_EEPROM |
| 6235 | 6173 | |
| 6236 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6237 | ||
| 6238 | 6174 | DISK_REGION( "gdrom" ) |
| 6239 | 6175 | DISK_IMAGE_READONLY( "gds-0014", 0, SHA1(1ebb3695196c11a86276e034df2e1c8d7fa6b96f) ) |
| 6240 | 6176 | |
| r8581 | r8582 | |
| 6250 | 6186 | |
| 6251 | 6187 | ROM_START( initd ) |
| 6252 | 6188 | NAOMI2_BIOS |
| 6253 | // NAOMIGD_BIOS | |
| 6254 | 6189 | NAOMI_DEFAULT_EEPROM |
| 6255 | 6190 | |
| 6256 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6257 | ||
| 6258 | 6191 | DISK_REGION( "gdrom" ) |
| 6259 | 6192 | DISK_IMAGE_READONLY( "gds-0020b", 0, SHA1(c0e901623ef4fcd97b7e4d29ae556e6f2e91b8ad) ) |
| 6260 | 6193 | |
| r8581 | r8582 | |
| 6272 | 6205 | |
| 6273 | 6206 | ROM_START( initdexp ) |
| 6274 | 6207 | NAOMI2_BIOS |
| 6275 | // NAOMIGD_BIOS | |
| 6276 | 6208 | NAOMI_DEFAULT_EEPROM |
| 6277 | 6209 | |
| 6278 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6279 | ||
| 6280 | 6210 | DISK_REGION( "gdrom" ) |
| 6281 | 6211 | DISK_IMAGE_READONLY( "gds-0025", 0, SHA1(8ea92cf6b493f21b9453832edad7cbc5e5b350c1) ) |
| 6282 | 6212 | |
| r8581 | r8582 | |
| 6289 | 6219 | |
| 6290 | 6220 | ROM_START( initdv3j ) |
| 6291 | 6221 | NAOMI2_BIOS |
| 6292 | // NAOMIGD_BIOS | |
| 6293 | 6222 | NAOMI_DEFAULT_EEPROM |
| 6294 | 6223 | |
| 6295 | ROM_REGION( 0x10000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 6296 | ||
| 6297 | 6224 | DISK_REGION( "gdrom" ) |
| 6298 | 6225 | DISK_IMAGE_READONLY( "gds-0032b", 0, SHA1(568411aa72ca308a03a6b5b61c79833464b88bc6) ) |
| 6299 | 6226 |
| r8581 | r8582 | |
|---|---|---|
| 113 | 113 | { |
| 114 | 114 | cheekyms_state *state = (cheekyms_state *)machine->driver_data; |
| 115 | 115 | |
| 116 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 117 | state->dac = devtag_get_device(machine, "dac"); | |
| 116 | state->maincpu = machine->device("maincpu"); | |
| 117 | state->dac = machine->device("dac"); | |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | static MACHINE_DRIVER_START( cheekyms ) |
| r8581 | r8582 | |
|---|---|---|
| 94 | 94 | -Add the RS232c interface (serial port),needed by fhboxers. |
| 95 | 95 | -(PCB owners) check if the clocks documented in the manuals are really right for ST-V. |
| 96 | 96 | -SCSP to master irq: see if there is a sound cpu mask bit. |
| 97 | -Does the c | |
| 97 | -Does the device | |
| 98 | 98 | -We need to check every game if can be completed or there are any hanging/crash/protection |
| 99 | 99 | issues on them. |
| 100 | 100 | -Memo: Some tests done on the original & working PCB,to be implemented: |
| r8581 | r8582 | |
| 477 | 477 | return_data = input_port_read(space->machine, "DSW1"); |
| 478 | 478 | |
| 479 | 479 | if (offset == 0x77)//PDR2 read |
| 480 | return_data= (0xfe | eeprom_read_bit( | |
| 480 | return_data= (0xfe | eeprom_read_bit( | |
| 481 | 481 | |
| 482 | 482 | // if (offset == 0x33) //country code |
| 483 | 483 | // return_data = input_port_read(machine, "FAKE"); |
| r8581 | r8582 | |
| 1971 | 1971 | logerror("cpu %s (PC=%08X) MINIT write = %08x\n", space->cpu->tag(), cpu_get_pc(space->cpu),data); |
| 1972 | 1972 | cpuexec_boost_interleave(space->machine, minit_boost_timeslice, ATTOTIME_IN_USEC(minit_boost)); |
| 1973 | 1973 | cpuexec_trigger(space->machine, 1000); |
| 1974 | sh2_set_frt_input( | |
| 1974 | sh2_set_frt_input( | |
| 1975 | 1975 | } |
| 1976 | 1976 | |
| 1977 | 1977 | static WRITE32_HANDLER( sinit_w ) |
| 1978 | 1978 | { |
| 1979 | 1979 | logerror("cpu %s (PC=%08X) SINIT write = %08x\n", space->cpu->tag(), cpu_get_pc(space->cpu),data); |
| 1980 | 1980 | cpuexec_boost_interleave(space->machine, sinit_boost_timeslice, ATTOTIME_IN_USEC(sinit_boost)); |
| 1981 | sh2_set_frt_input( | |
| 1981 | sh2_set_frt_input( | |
| 1982 | 1982 | } |
| 1983 | 1983 | |
| 1984 | 1984 | |
| r8581 | r8582 | |
| 2355 | 2355 | // do strict overwrite verification - maruchan and rsgun crash after coinup without this. |
| 2356 | 2356 | // cottonbm needs strict PCREL |
| 2357 | 2357 | // todo: test what games need this and don't turn it on for them... |
| 2358 | sh2drc_set_options(devtag_get_device(machine, "maincpu"), SH2DRC_STRICT_VERIFY|SH2DRC_STRICT_PCREL); | |
| 2359 | sh2drc_set_options(devtag_get_device(machine, "slave"), SH2DRC_STRICT_VERIFY|SH2DRC_STRICT_PCREL); | |
| 2358 | sh2drc_set_options(machine->device("maincpu"), SH2DRC_STRICT_VERIFY|SH2DRC_STRICT_PCREL); | |
| 2359 | sh2drc_set_options(machine->device("slave"), SH2DRC_STRICT_VERIFY|SH2DRC_STRICT_PCREL); | |
| 2360 | 2360 | |
| 2361 | 2361 | /* debug .. watch the command buffer rsgun, cottonbm etc. appear to use to communicate between cpus */ |
| 2362 | 2362 | memory_install_write32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x60ffc44, 0x60ffc47, 0, 0, w60ffc44_write ); |
| r8581 | r8582 | |
| 2597 | 2597 | stv_slave = machine->device<cpu_device>("slave"); |
| 2598 | 2598 | stv_audiocpu = machine->device<cpu_device>("audiocpu"); |
| 2599 | 2599 | |
| 2600 | scsp_set_ram_base( | |
| 2600 | scsp_set_ram_base(m | |
| 2601 | 2601 | |
| 2602 | 2602 | // save states |
| 2603 | 2603 | state_save_register_global_pointer(machine, smpc_ram, 0x80); |
| r8581 | r8582 | |
|---|---|---|
| 489 | 489 | //attotime_never |
| 490 | 490 | static VIDEO_UPDATE(mtnew) |
| 491 | 491 | { |
| 492 | running_device *megadriv_screen = devtag_get_device(screen->machine, "megadriv"); | |
| 493 | running_device *menu_screen = devtag_get_device(screen->machine, "menu"); | |
| 492 | running_device *megadriv_screen = screen->machine->device("megadriv"); | |
| 493 | running_device *menu_screen = screen->machine->device("menu"); | |
| 494 | 494 | |
| 495 | 495 | if (screen == megadriv_screen) |
| 496 | 496 | { |
| r8581 | r8582 | |
|---|---|---|
| 854 | 854 | Vamp 1/2 (Semi Vamp) |
| 855 | 855 | Danbi, 1999 |
| 856 | 856 | |
| 857 | Official page here... | |
| 858 | http://f2.co.kr/eng/product/intro1-17.asp | |
| 859 | 857 | |
| 860 | ||
| 861 | 858 | PCB Layout |
| 862 | 859 | ---------- |
| 863 | 860 | KA12 VROM1. |
| r8581 | r8582 | |
|---|---|---|
| 402 | 402 | { |
| 403 | 403 | bishi_state *state = (bishi_state *)machine->driver_data; |
| 404 | 404 | |
| 405 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 406 | state->k056832 = devtag_get_device(machine, "k056832"); | |
| 407 | state->k054338 = devtag_get_device(machine, "k054338"); | |
| 408 | state->k055555 = devtag_get_device(machine, "k055555"); | |
| 405 | state->maincpu = machine->device("maincpu"); | |
| 406 | state->k056832 = machine->device("k056832"); | |
| 407 | state->k054338 = machine->device("k054338"); | |
| 408 | state->k055555 = machine->device("k055555"); | |
| 409 | 409 | |
| 410 | 410 | state_save_register_global(machine, state->cur_control); |
| 411 | 411 | state_save_register_global(machine, state->cur_control2); |
| r8581 | r8582 | |
|---|---|---|
| 238 | 238 | { |
| 239 | 239 | _1942_state *state = (_1942_state *)machine->driver_data; |
| 240 | 240 | |
| 241 | state->audiocpu = | |
| 241 | state->audiocpu = m | |
| 242 | 242 | |
| 243 | 243 | state_save_register_global(machine, state->palette_bank); |
| 244 | 244 | state_save_register_global_array(machine, state->scroll); |
| r8581 | r8582 | |
|---|---|---|
| 38 | 38 | bitmap_t *s2636_1_bitmap; |
| 39 | 39 | bitmap_t *s2636_2_bitmap; |
| 40 | 40 | |
| 41 | running_device *s2636_0 = devtag_get_device(screen->machine, "s2636_0"); | |
| 42 | running_device *s2636_1 = devtag_get_device(screen->machine, "s2636_1"); | |
| 43 | running_device *s2636_2 = devtag_get_device(screen->machine, "s2636_2"); | |
| 41 | running_device *s2636_0 = screen->machine->device("s2636_0"); | |
| 42 | running_device *s2636_1 = screen->machine->device("s2636_1"); | |
| 43 | running_device *s2636_2 = screen->machine->device("s2636_2"); | |
| 44 | 44 | |
| 45 | 45 | count = 0; |
| 46 | 46 |
| r8581 | r8582 | |
|---|---|---|
| 517 | 517 | { |
| 518 | 518 | fromanc2_state *state = (fromanc2_state *)machine->driver_data; |
| 519 | 519 | |
| 520 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 521 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 522 | state->eeprom = devtag_get_device(machine, "eeprom"); | |
| 523 | state->left_screen = devtag_get_device(machine, "lscreen"); | |
| 524 | state->right_screen = devtag_get_device(machine, "rscreen"); | |
| 520 | state->audiocpu = machine->device("audiocpu"); | |
| 521 | state->subcpu = machine->device("sub"); | |
| 522 | state->eeprom = machine->device("eeprom"); | |
| 523 | state->left_screen = machine->device("lscreen"); | |
| 524 | state->right_screen = machine->device("rscreen"); | |
| 525 | 525 | |
| 526 | 526 | state_save_register_global(machine, state->portselect); |
| 527 | 527 | state_save_register_global(machine, state->sndcpu_nmi_flag); |
| r8581 | r8582 | |
|---|---|---|
| 241 | 241 | |
| 242 | 242 | case 0x02: /* SOUND ON */ |
| 243 | 243 | /* this doesn't work in New Rally X so I'm not supporting it */ |
| 244 | // pacman_sound_enable_w( | |
| 244 | // pacman_sound_enable_w( | |
| 245 | 245 | break; |
| 246 | 246 | |
| 247 | 247 | case 0x03: /* FLIP */ |
| r8581 | r8582 | |
| 877 | 877 | timeplt_state *state = (timeplt_state *)machine->driver_data; |
| 878 | 878 | |
| 879 | 879 | state->maincpu = machine->device<cpu_device>("maincpu"); |
| 880 | state->samples = | |
| 880 | state->samples = m | |
| 881 | 881 | |
| 882 | 882 | state_save_register_global(machine, state->last_bang); |
| 883 | 883 | state_save_register_global(machine, state->stars_enable); |
| r8581 | r8582 | |
|---|---|---|
| 489 | 489 | |
| 490 | 490 | static VIDEO_UPDATE(bnstars) |
| 491 | 491 | { |
| 492 | running_device *left_screen = devtag_get_device(screen->machine, "lscreen"); | |
| 493 | running_device *right_screen = devtag_get_device(screen->machine, "rscreen"); | |
| 492 | running_device *left_screen = screen->machine->device("lscreen"); | |
| 493 | running_device *right_screen = screen->machine->device("rscreen"); | |
| 494 | 494 | |
| 495 | 495 | bitmap_fill(screen->machine->priority_bitmap,cliprect,0); |
| 496 | 496 | |
| r8581 | r8582 | |
| 1293 | 1293 | { |
| 1294 | 1294 | irqreq = 0; |
| 1295 | 1295 | cputag_set_input_line(machine, "maincpu", 0, CLEAR_LINE); |
| 1296 | cpu_set_irq_callback( | |
| 1296 | cpu_set_irq_callback(m | |
| 1297 | 1297 | } |
| 1298 | 1298 | |
| 1299 | 1299 | static void irq_raise(running_machine *machine, int level) |
| r8581 | r8582 | |
|---|---|---|
| 247 | 247 | { |
| 248 | 248 | diverboy_state *state = (diverboy_state *)machine->driver_data; |
| 249 | 249 | |
| 250 | state->audiocpu = | |
| 250 | state->audiocpu = m | |
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | static MACHINE_DRIVER_START( diverboy ) |
| r8581 | r8582 | |
|---|---|---|
| 150 | 150 | |
| 151 | 151 | if (ACCESSING_BITS_0_7) |
| 152 | 152 | { |
| 153 | running_device *device = | |
| 153 | running_device *device = | |
| 154 | 154 | eeprom_set_clock_line(device, (data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 155 | 155 | eeprom_write_bit(device, data & 0x40); |
| 156 | 156 | eeprom_set_cs_line(device, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| r8581 | r8582 | |
|---|---|---|
| 288 | 288 | from_main = data; |
| 289 | 289 | _mcu_accept = 0; |
| 290 | 290 | |
| 291 | if ( | |
| 291 | if ( | |
| 292 | 292 | cputag_set_input_line(space->machine, "mcu", 0, ASSERT_LINE); |
| 293 | 293 | } |
| 294 | 294 | |
| r8581 | r8582 | |
| 378 | 378 | { |
| 379 | 379 | UINT8 res = 0; |
| 380 | 380 | |
| 381 | if ( | |
| 381 | if ( | |
| 382 | 382 | { |
| 383 | 383 | if (_mcu_ready == 1) |
| 384 | 384 | res |= 0x01; |
| r8581 | r8582 | |
| 398 | 398 | _mcu_ready = 1; |
| 399 | 399 | _mcu_accept = 1; |
| 400 | 400 | |
| 401 | if ( | |
| 401 | if ( | |
| 402 | 402 | cputag_set_input_line(space->machine, "mcu", 0, CLEAR_LINE); |
| 403 | 403 | |
| 404 | 404 | return 0xff; |
| r8581 | r8582 | |
|---|---|---|
| 384 | 384 | |
| 385 | 385 | static void namcos1_update_DACs(running_machine *machine) |
| 386 | 386 | { |
| 387 | dac_signed_data_16_w( | |
| 387 | dac_signed_data_16_w(m | |
| 388 | 388 | } |
| 389 | 389 | |
| 390 | 390 | void namcos1_init_DACs(void) |
| r8581 | r8582 | |
|---|---|---|
| 100 | 100 | |
| 101 | 101 | static WRITE8_HANDLER( audio_enable_w ) |
| 102 | 102 | { |
| 103 | sound_set_output_gain( | |
| 103 | sound_set_output_gain( | |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | static WRITE8_HANDLER( firefox_disc_reset_w ) |
| r8581 | r8582 | |
| 304 | 304 | |
| 305 | 305 | static WRITE8_DEVICE_HANDLER( riot_porta_w ) |
| 306 | 306 | { |
| 307 | running_device *tms = dev | |
| 307 | running_device *tms = dev | |
| 308 | 308 | |
| 309 | 309 | /* handle 5220 read */ |
| 310 | 310 | tms5220_rsq_w(tms, (data>>1) & 1); |
| r8581 | r8582 | |
| 430 | 430 | static MACHINE_START( firefox ) |
| 431 | 431 | { |
| 432 | 432 | memory_configure_bank(machine, "bank1", 0, 32, memory_region(machine, "maincpu") + 0x10000, 0x1000); |
| 433 | nvram_1c = devtag_get_device(machine, "nvram_1c"); | |
| 434 | nvram_1d = devtag_get_device(machine, "nvram_1d"); | |
| 433 | nvram_1c = machine->device("nvram_1c"); | |
| 434 | nvram_1d = machine->device("nvram_1d"); | |
| 435 | 435 | |
| 436 | laserdisc = | |
| 436 | laserdisc = m | |
| 437 | 437 | vp931_set_data_ready_callback(laserdisc, firq_gen); |
| 438 | 438 | |
| 439 | 439 | control_num = 0; |
| r8581 | r8582 | |
|---|---|---|
| 422 | 422 | |
| 423 | 423 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0x10000], 0x2000); |
| 424 | 424 | |
| 425 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 426 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 427 | state->upd = devtag_get_device(machine, "upd"); | |
| 428 | state->k007232 = devtag_get_device(machine, "k007232"); | |
| 429 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 430 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 425 | state->maincpu = machine->device("maincpu"); | |
| 426 | state->audiocpu = machine->device("audiocpu"); | |
| 427 | state->upd = machine->device("upd"); | |
| 428 | state->k007232 = machine->device("k007232"); | |
| 429 | state->k052109 = machine->device("k052109"); | |
| 430 | state->k051960 = machine->device("k051960"); | |
| 431 | 431 | |
| 432 | 432 | state_save_register_global(machine, state->nmi_enable); |
| 433 | 433 | } |
| r8581 | r8582 | |
|---|---|---|
| 283 | 283 | timeplt_state *state = (timeplt_state *)machine->driver_data; |
| 284 | 284 | |
| 285 | 285 | state->maincpu = machine->device<cpu_device>("maincpu"); |
| 286 | state->i8039 = | |
| 286 | state->i8039 = m | |
| 287 | 287 | state->soundcpu = machine->device<cpu_device>("audiocpu"); |
| 288 | state->filter_0_0 = devtag_get_device(machine, "filter.0.0"); | |
| 289 | state->filter_0_1 = devtag_get_device(machine, "filter.0.1"); | |
| 290 | state->filter_0_2 = devtag_get_device(machine, "filter.0.2"); | |
| 288 | state->filter_0_0 = machine->device("filter.0.0"); | |
| 289 | state->filter_0_1 = machine->device("filter.0.1"); | |
| 290 | state->filter_0_2 = machine->device("filter.0.2"); | |
| 291 | 291 | |
| 292 | 292 | state_save_register_global(machine, state->i8039_status); |
| 293 | 293 | state_save_register_global(machine, state->last_irq); |
| r8581 | r8582 | |
|---|---|---|
| 3465 | 3465 | |
| 3466 | 3466 | dumped by sayu |
| 3467 | 3467 | --- Team Japump!!! --- |
| 3468 | http://japump.i.am/ | |
| 3469 | 3468 | |
| 3470 | 3469 | */ |
| 3471 | 3470 |
| r8581 | r8582 | |
|---|---|---|
| 529 | 529 | |
| 530 | 530 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0xc000], 0x4000); |
| 531 | 531 | |
| 532 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 533 | state->tc0220ioc = devtag_get_device(machine, "tc0220ioc"); | |
| 534 | state->tc0080vco = devtag_get_device(machine, "tc0080vco"); | |
| 532 | state->audiocpu = machine->device("audiocpu"); | |
| 533 | state->tc0220ioc = machine->device("tc0220ioc"); | |
| 534 | state->tc0080vco = machine->device("tc0080vco"); | |
| 535 | 535 | |
| 536 | 536 | state_save_register_global(machine, state->banknum); |
| 537 | 537 | state_save_register_postload(machine, taitoh_postload, NULL); |
| r8581 | r8582 | |
|---|---|---|
| 306 | 306 | { |
| 307 | 307 | ginganin_state *state = (ginganin_state *)machine->driver_data; |
| 308 | 308 | |
| 309 | state->audiocpu = | |
| 309 | state->audiocpu = m | |
| 310 | 310 | |
| 311 | 311 | state_save_register_global(machine, state->layers_ctrl); |
| 312 | 312 | state_save_register_global(machine, state->flipscreen); |
| r8581 | r8582 | |
|---|---|---|
| 214 | 214 | memory_configure_bank(machine, "bank3", 0, 2, &ROM[0x10000], 0x8000); |
| 215 | 215 | memory_set_bank(machine, "bank3", 0); |
| 216 | 216 | |
| 217 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 218 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 219 | state->k051316 = devtag_get_device(machine, "k051316"); | |
| 217 | state->maincpu = machine->device("maincpu"); | |
| 218 | state->audiocpu = machine->device("audiocpu"); | |
| 219 | state->k051316 = machine->device("k051316"); | |
| 220 | 220 | |
| 221 | 221 | state_save_register_global(machine, state->charbank); |
| 222 | 222 | state_save_register_global(machine, state->charpalette); |
| r8581 | r8582 | |
|---|---|---|
| 538 | 538 | |
| 539 | 539 | memory_configure_bank(machine, "bank10", 0, 4, memory_region(machine, "audiocpu") + 0xc000, 0x4000); |
| 540 | 540 | |
| 541 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 542 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 543 | state->tc0140syt = devtag_get_device(machine, "tc0140syt"); | |
| 544 | state->tc0480scp = devtag_get_device(machine, "tc0480scp"); | |
| 545 | state->tc0360pri = devtag_get_device(machine, "tc0360pri"); | |
| 546 | state->tc0640fio = devtag_get_device(machine, "tc0640fio"); | |
| 541 | state->maincpu = machine->device("maincpu"); | |
| 542 | state->audiocpu = machine->device("audiocpu"); | |
| 543 | state->tc0140syt = machine->device("tc0140syt"); | |
| 544 | state->tc0480scp = machine->device("tc0480scp"); | |
| 545 | state->tc0360pri = machine->device("tc0360pri"); | |
| 546 | state->tc0640fio = machine->device("tc0640fio"); | |
| 547 | 547 | |
| 548 | 548 | state->banknum = 0; |
| 549 | 549 | state_save_register_global(machine, state->banknum); |
| r8581 | r8582 | |
|---|---|---|
| 963 | 963 | |
| 964 | 964 | static MACHINE_START(merit_common) |
| 965 | 965 | { |
| 966 | meritm_z80pio[0] = devtag_get_device( machine, "z80pio_0" ); | |
| 967 | meritm_z80pio[1] = devtag_get_device( machine, "z80pio_1" ); | |
| 966 | meritm_z80pio[0] = machine->device( "z80pio_0" ); | |
| 967 | meritm_z80pio[1] = machine->device( "z80pio_1" ); | |
| 968 | 968 | |
| 969 | 969 | z80pio_astb_w(meritm_z80pio[0], 1); |
| 970 | 970 | z80pio_bstb_w(meritm_z80pio[0], 1); |
| r8581 | r8582 | |
|---|---|---|
| 155 | 155 | static WRITE8_HANDLER( sprite_dma_0_w ) |
| 156 | 156 | { |
| 157 | 157 | int source = ( data & 7 ); |
| 158 | ppu2c0x_spriteram_dma( space, | |
| 158 | ppu2c0x_spriteram_dma( space, | |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | static WRITE8_HANDLER( sprite_dma_1_w ) |
| 162 | 162 | { |
| 163 | 163 | int source = ( data & 7 ); |
| 164 | ppu2c0x_spriteram_dma( space, | |
| 164 | ppu2c0x_spriteram_dma( space, | |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | static WRITE8_HANDLER( vsnes_coin_counter_w ) |
| r8581 | r8582 | |
|---|---|---|
| 679 | 679 | |
| 680 | 680 | /* POKEY */ |
| 681 | 681 | else if (offset < 0x4800) |
| 682 | pokey_w( | |
| 682 | pokey_w( | |
| 683 | 683 | |
| 684 | 684 | /* OUT0 */ |
| 685 | 685 | else if (offset < 0x4900) |
| r8581 | r8582 | |
| 738 | 738 | |
| 739 | 739 | /* POKEY */ |
| 740 | 740 | else if (offset < 0x4800) |
| 741 | result = pokey_r( | |
| 741 | result = pokey_r( | |
| 742 | 742 | |
| 743 | 743 | /* IN0 */ |
| 744 | 744 | else if (offset < 0x4900) |
| r8581 | r8582 | |
|---|---|---|
| 14 | 14 | 3 Windbond W24257AK-15 (near TM29F550ZX) |
| 15 | 15 | 2 UM61256AK-15 (near Z80) |
| 16 | 16 | |
| 17 | P1, P2 & P3 4-pin connectors (unkown purpose) | |
| 17 | P1, P2 & P3 4-pin connectors (unknown purpose) | |
| 18 | 18 | |
| 19 | 19 | 2008-08: |
| 20 | 20 | Added Dips and Dip locations based on Service Mode. |
| r8581 | r8582 | |
| 316 | 316 | |
| 317 | 317 | memory_set_bank(machine, "bank1", 0); |
| 318 | 318 | |
| 319 | state->soundcpu = | |
| 319 | state->soundcpu = m | |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | 322 | static MACHINE_DRIVER_START( go2000 ) |
| r8581 | r8582 | |
|---|---|---|
| 53 | 53 | |
| 54 | 54 | /* bit 5 goes to 8910 #0 BDIR pin */ |
| 55 | 55 | if ((state->last_snd_ctrl & 0x20) == 0x20 && (data & 0x20) == 0x00) |
| 56 | ay8910_data_address_w( | |
| 56 | ay8910_data_address_w( | |
| 57 | 57 | |
| 58 | 58 | /* bit 7 goes to 8910 #1 BDIR pin */ |
| 59 | 59 | if ((state->last_snd_ctrl & 0x80) == 0x80 && (data & 0x80) == 0x00) |
| 60 | ay8910_data_address_w( | |
| 60 | ay8910_data_address_w( | |
| 61 | 61 | |
| 62 | 62 | state->last_snd_ctrl = data; |
| 63 | 63 | } |
| r8581 | r8582 | |
| 217 | 217 | { |
| 218 | 218 | dogfgt_state *state = (dogfgt_state *)machine->driver_data; |
| 219 | 219 | |
| 220 | state->subcpu = | |
| 220 | state->subcpu = m | |
| 221 | 221 | |
| 222 | 222 | state_save_register_global(machine, state->bm_plane); |
| 223 | 223 | state_save_register_global(machine, state->lastflip); |
| r8581 | r8582 | |
|---|---|---|
| 1938 | 1938 | |
| 1939 | 1939 | |
| 1940 | 1940 | ROM_START( junglek ) |
| 1941 | ROM_REGION( 0x12000, "maincpu", 0 ) | |
| 1942 | ROM_LOAD( "kn21-1.bin", 0x00000, 0x1000, CRC(45f55d30) SHA1(bb9518d7728938f673a663801e47ae0438cdbea1) ) | |
| 1943 | ROM_LOAD( "kn22-1.bin", 0x01000, 0x1000, CRC(07cc9a21) SHA1(3fe35935e0a430ab0edc6a762623972fa37ea926) ) | |
| 1944 | ROM_LOAD( "kn43.bin", 0x02000, 0x1000, CRC(a20e5a48) SHA1(af961b671dc4c865d0181d08a70b902bb96f29d0) ) | |
| 1945 | ROM_LOAD( "kn24.bin", 0x03000, 0x1000, CRC(19ea7f83) SHA1(2399cc89f73811575c3f644d5c04ef13ceec6838) ) | |
| 1946 | ROM_LOAD( "kn25.bin", 0x04000, 0x1000, CRC(844365ea) SHA1(af34712620e4b784a5014283d3111048c5f81a56) ) | |
| 1947 | ROM_LOAD( "kn46.bin", 0x05000, 0x1000, CRC(27a95fd5) SHA1(160ee5d11126ac4155b479e43ec1bd6a4e9e21e7) ) | |
| 1948 | ROM_LOAD( "kn47.bin", 0x06000, 0x1000, CRC(5c3199e0) SHA1(c57dec92998b971d76aecd23674c25cf7b8be667) ) | |
| 1949 | ROM_LOAD( "kn28.bin", 0x07000, 0x1000, CRC(194a2d09) SHA1(88999493e470acdcf932efff71cd6155387a63d0) ) | |
| 1950 | /* 10000-10fff space for another banked ROM (not used) */ | |
| 1951 | ROM_LOAD( "kn60.bin", 0x11000, 0x1000, CRC(1a9c0a26) SHA1(82f4cebeba90419e83a00427b671985824babd7a) ) /* banked at 7000 */ | |
| 1941 | ROM_REGION( 0x12000, "maincpu", 0 ) | |
| 1942 | ROM_LOAD( "kn21-1.bin", 0x00000, 0x1000, CRC(45f55d30) SHA1(bb9518d7728938f673a663801e47ae0438cdbea1) ) | |
| 1943 | ROM_LOAD( "kn22-1.bin", 0x01000, 0x1000, CRC(07cc9a21) SHA1(3fe35935e0a430ab0edc6a762623972fa37ea926) ) | |
| 1944 | ROM_LOAD( "kn43.bin", 0x02000, 0x1000, CRC(a20e5a48) SHA1(af961b671dc4c865d0181d08a70b902bb96f29d0) ) | |
| 1945 | ROM_LOAD( "kn24.bin", 0x03000, 0x1000, CRC(19ea7f83) SHA1(2399cc89f73811575c3f644d5c04ef13ceec6838) ) | |
| 1946 | ROM_LOAD( "kn25.bin", 0x04000, 0x1000, CRC(844365ea) SHA1(af34712620e4b784a5014283d3111048c5f81a56) ) | |
| 1947 | ROM_LOAD( "kn46.bin", 0x05000, 0x1000, CRC(27a95fd5) SHA1(160ee5d11126ac4155b479e43ec1bd6a4e9e21e7) ) | |
| 1948 | ROM_LOAD( "kn47.bin", 0x06000, 0x1000, CRC(5c3199e0) SHA1(c57dec92998b971d76aecd23674c25cf7b8be667) ) | |
| 1949 | ROM_LOAD( "kn28.bin", 0x07000, 0x1000, CRC(194a2d09) SHA1(88999493e470acdcf932efff71cd6155387a63d0) ) | |
| 1950 | /* 10000-10fff space for another banked ROM (not used) */ | |
| 1951 | ROM_LOAD( "kn60.bin", 0x11000, 0x1000, CRC(1a9c0a26) SHA1(82f4cebeba90419e83a00427b671985824babd7a) ) /* banked at 7000 */ | |
| 1952 | 1952 | |
| 1953 | ROM_REGION( 0x10000, "audiocpu", 0 ) | |
| 1954 | ROM_LOAD( "kn37.bin", 0x0000, 0x1000, CRC(dee7f5d4) SHA1(cd8179a17ccd054fb470c4eee97192c2dd226397) ) | |
| 1955 | ROM_LOAD( "kn38.bin", 0x1000, 0x1000, CRC(bffd3d21) SHA1(a2b3393e9694d6979d39ab0f1ab82b7ef892b3da) ) | |
| 1956 | ROM_LOAD( "kn59-1.bin", 0x2000, 0x1000, CRC(cee485fc) SHA1(1e0c52ec6b1d3cfd47247db71bcf3fe476c32039) ) | |
| 1953 | ROM_REGION( 0x10000, "audiocpu", 0 ) | |
| 1954 | ROM_LOAD( "kn37.bin", 0x0000, 0x1000, CRC(dee7f5d4) SHA1(cd8179a17ccd054fb470c4eee97192c2dd226397) ) | |
| 1955 | ROM_LOAD( "kn38.bin", 0x1000, 0x1000, CRC(bffd3d21) SHA1(a2b3393e9694d6979d39ab0f1ab82b7ef892b3da) ) | |
| 1956 | ROM_LOAD( "kn59-1.bin", 0x2000, 0x1000, CRC(cee485fc) SHA1(1e0c52ec6b1d3cfd47247db71bcf3fe476c32039) ) | |
| 1957 | 1957 | |
| 1958 | ||
| 1958 | | |
| 1959 | 1959 | ROM_LOAD( "kn29.bin", 0x0000, 0x1000, CRC(8f83c290) SHA1(aa95ed2d2e15f573e092e8eed7d80479512d9409) ) |
| 1960 | 1960 | ROM_LOAD( "kn30.bin", 0x1000, 0x1000, CRC(89fd19f1) SHA1(fc7dfe3a1d78ac37a036fa9d8ebf3a33a2f4cbe8) ) |
| 1961 | 1961 | ROM_LOAD( "kn51.bin", 0x2000, 0x1000, CRC(70e8fc12) SHA1(505c90c662d372d28cb38201433054b8e3d723d1) ) |
| r8581 | r8582 | |
| 1966 | 1966 | ROM_LOAD( "kn56.bin", 0x7000, 0x1000, CRC(932eb667) SHA1(4bf7c01ab212b616931a21a43a453521aa01ff36) ) |
| 1967 | 1967 | |
| 1968 | 1968 | ROM_REGION( 0x0100, "proms", 0 ) /* layer PROM */ |
| 1969 | ||
| 1969 | | |
| 1970 | 1970 | ROM_END |
| 1971 | 1971 | |
| 1972 | 1972 | ROM_START( junglekj2 ) |
| r8581 | r8582 | |
| 2657 | 2657 | ROM_LOAD( "a20-12", 0x2000, 0x1000, CRC(e7eeb933) SHA1(26f3904f6d4dc814318221f1c9cd5dcc671fe05a) ) |
| 2658 | 2658 | |
| 2659 | 2659 | ROM_REGION( 0x0800, "mcu", 0 ) /* 2k for the microcontroller */ |
| 2660 | ROM_LOAD( "a20-13", | |
| 2660 | ROM_LOAD( "a20-13.ic91", | |
| 2661 | 2661 | |
| 2662 | 2662 | ROM_REGION( 0x8000, "gfx1", 0 ) /* graphic ROMs used at runtime */ |
| 2663 | 2663 | ROM_LOAD( "a20-06", 0x0000, 0x2000, CRC(6582fc89) SHA1(a902f4f2d3c9e352ac2f49f33b9f30be931f2be1) ) |
| r8581 | r8582 | |
|---|---|---|
| 703 | 703 | { |
| 704 | 704 | m63_state *state = (m63_state *)machine->driver_data; |
| 705 | 705 | |
| 706 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 707 | state->ay1 = devtag_get_device(machine, "ay1"); | |
| 708 | state->ay2 = devtag_get_device(machine, "ay2"); | |
| 709 | state->samples = devtag_get_device(machine, "samples"); | |
| 706 | state->soundcpu = machine->device("soundcpu"); | |
| 707 | state->ay1 = machine->device("ay1"); | |
| 708 | state->ay2 = machine->device("ay2"); | |
| 709 | state->samples = machine->device("samples"); | |
| 710 | 710 | |
| 711 | 711 | state_save_register_global(machine, state->pal_bank); |
| 712 | 712 | state_save_register_global(machine, state->fg_flag); |
| r8581 | r8582 | |
|---|---|---|
| 147 | 147 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 148 | 148 | ROM_LOAD16_BYTE( "tc574000ad_u11_2.bin", 0x000000, 0x080000, CRC(b235c4d9) SHA1(fbb308a5f6e769f3277824cb6a3b50c308969ac2) ) |
| 149 | 149 | ROM_LOAD16_BYTE( "tc574000ad_u12_1.bin", 0x000001, 0x080000, CRC(e826f6ad) SHA1(23ec8bb608f954d3b915f061e7076c0c63b8259e) ) |
| 150 | ||
| 151 | // not hooked up yet | |
| 152 | ROM_REGION( 0x1000, "mcu", 0 ) | |
| 153 | ROM_LOAD( "89c51.bin", 0x0000, 0x1000, CRC(595475c8) SHA1(8313819ba06cc92b54f88c1ca9f34be8d1ec94d0) ) | |
| 150 | 154 | ROM_END |
| 151 | 155 | |
| 152 | 156 | static READ16_HANDLER(topshoot_200051_r) |
| r8581 | r8582 | |
|---|---|---|
| 851 | 851 | cputag_set_input_line(machine, "sub2", INPUT_LINE_RESET, ASSERT_LINE); // TODO |
| 852 | 852 | |
| 853 | 853 | /* Hook the RESET line, which resets the Z80 */ |
| 854 | m68k_set_reset_callback( | |
| 854 | m68k_set_reset_callback(m | |
| 855 | 855 | } |
| 856 | 856 | |
| 857 | 857 |
| r8581 | r8582 | |
|---|---|---|
| 334 | 334 | { |
| 335 | 335 | supbtime_state *state = (supbtime_state *)machine->driver_data; |
| 336 | 336 | |
| 337 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 338 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 339 | state->deco16ic = devtag_get_device(machine, "deco_custom"); | |
| 337 | state->maincpu = machine->device("maincpu"); | |
| 338 | state->audiocpu = machine->device("audiocpu"); | |
| 339 | state->deco16ic = machine->device("deco_custom"); | |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | 342 | static MACHINE_DRIVER_START( supbtime ) |
| r8581 | r8582 | |
|---|---|---|
| 152 | 152 | generic_pulse_irq_line(device, 0); |
| 153 | 153 | } |
| 154 | 154 | pia6821_set_input_a(state->pia_u1, input_port_read(device->machine, "INPUT") & 0x0f, 0); |
| 155 | pia6821_ca1_w(state->pia_u1, 0, input_port_read(device->machine, "INPUT") & 0x10); | |
| 156 | pia6821_ca2_w(state->pia_u1, 0, input_port_read(device->machine, "INPUT") & 0x20); | |
| 155 | pia6821_ca1_w(state->pia_u1, input_port_read(device->machine, "INPUT") & 0x10); | |
| 156 | pia6821_ca2_w(state->pia_u1, input_port_read(device->machine, "INPUT") & 0x20); | |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | static READ8_HANDLER( timer_r ) |
| r8581 | r8582 | |
| 376 | 376 | { |
| 377 | 377 | toratora_state *state = (toratora_state *)machine->driver_data; |
| 378 | 378 | |
| 379 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 380 | state->pia_u1 = devtag_get_device(machine, "pia_u1"); | |
| 381 | state->pia_u2 = devtag_get_device(machine, "pia_u2"); | |
| 382 | state->pia_u3 = devtag_get_device(machine, "pia_u3"); | |
| 379 | state->maincpu = machine->device("maincpu"); | |
| 380 | state->pia_u1 = machine->device("pia_u1"); | |
| 381 | state->pia_u2 = machine->device("pia_u2"); | |
| 382 | state->pia_u3 = machine->device("pia_u3"); | |
| 383 | 383 | |
| 384 | 384 | state_save_register_global(machine, state->timer); |
| 385 | 385 | state_save_register_global(machine, state->last); |
| r8581 | r8582 | |
|---|---|---|
| 1644 | 1644 | /* INIT THE PORTS *********************************************************************************************/ |
| 1645 | 1645 | |
| 1646 | 1646 | const address_space *io = cputag_get_address_space(machine, tag, ADDRESS_SPACE_IO); |
| 1647 | running_device *sn = | |
| 1647 | running_device *sn = m | |
| 1648 | 1648 | |
| 1649 | 1649 | memory_install_readwrite8_handler(io, 0x0000, 0xffff, 0, 0, z80_unmapped_port_r, z80_unmapped_port_w); |
| 1650 | 1650 |
| r8581 | r8582 | |
|---|---|---|
| 282 | 282 | |
| 283 | 283 | machine->generic.paletteram.u8 = auto_alloc_array_clear(machine, UINT8, 0x800); |
| 284 | 284 | |
| 285 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 286 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 287 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 288 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 289 | state->k007232 = devtag_get_device(machine, "k007232"); | |
| 285 | state->maincpu = machine->device("maincpu"); | |
| 286 | state->audiocpu = machine->device("audiocpu"); | |
| 287 | state->k052109 = machine->device("k052109"); | |
| 288 | state->k051960 = machine->device("k051960"); | |
| 289 | state->k007232 = machine->device("k007232"); | |
| 290 | 290 | |
| 291 | 291 | state_save_register_global(machine, state->palette_selected); |
| 292 | 292 | state_save_register_global(machine, state->priority); |
| r8581 | r8582 | |
| 298 | 298 | gbusters_state *state = (gbusters_state *)machine->driver_data; |
| 299 | 299 | UINT8 *RAM = memory_region(machine, "maincpu"); |
| 300 | 300 | |
| 301 | konami_configure_set_lines( | |
| 301 | konami_configure_set_lines(m | |
| 302 | 302 | |
| 303 | 303 | /* mirror address for banked ROM */ |
| 304 | 304 | memcpy(&RAM[0x18000], &RAM[0x10000], 0x08000); |
| r8581 | r8582 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | // bit 5 goes to 8910 #0 BDIR pin |
| 39 | 39 | if ((state->last_write & 0x20) == 0x20 && (data & 0x20) == 0x00) |
| 40 | ay8910_data_address_w( | |
| 40 | ay8910_data_address_w( | |
| 41 | 41 | |
| 42 | 42 | // bit 7 goes to 8910 #1 BDIR pin |
| 43 | 43 | if ((state->last_write & 0x80) == 0x80 && (data & 0x80) == 0x00) |
| 44 | ay8910_data_address_w( | |
| 44 | ay8910_data_address_w( | |
| 45 | 45 | |
| 46 | 46 | state->last_write = data; |
| 47 | 47 | } |
| r8581 | r8582 | |
|---|---|---|
| 73 | 73 | |
| 74 | 74 | static WRITE_LINE_DEVICE_HANDLER( main_cpu_irq ) |
| 75 | 75 | { |
| 76 | running_device *pia0 = devtag_get_device(device->machine, "pia_main"); | |
| 77 | running_device *pia1 = devtag_get_device(device->machine, "pia_audio"); | |
| 76 | running_device *pia0 = device->machine->device("pia_main"); | |
| 77 | running_device *pia1 = device->machine->device("pia_audio"); | |
| 78 | 78 | int combined_state = pia6821_get_irq_a(pia0) | pia6821_get_irq_b(pia0) | |
| 79 | 79 | pia6821_get_irq_a(pia1) | pia6821_get_irq_b(pia1); |
| 80 | 80 | |
| r8581 | r8582 | |
| 150 | 150 | UINT8 ret = 0; |
| 151 | 151 | |
| 152 | 152 | if (AY8910_selected & 0x08) |
| 153 | ret = ay8910_r(dev | |
| 153 | ret = ay8910_r(dev | |
| 154 | 154 | |
| 155 | 155 | if (AY8910_selected & 0x10) |
| 156 | ret = ay8910_r(dev | |
| 156 | ret = ay8910_r(dev | |
| 157 | 157 | |
| 158 | 158 | return ret; |
| 159 | 159 | } |
| r8581 | r8582 | |
| 162 | 162 | static WRITE8_DEVICE_HANDLER( AY8910_port_w ) |
| 163 | 163 | { |
| 164 | 164 | if (AY8910_selected & 0x08) |
| 165 | ay8910_data_address_w(dev | |
| 165 | ay8910_data_address_w(dev | |
| 166 | 166 | |
| 167 | 167 | if (AY8910_selected & 0x10) |
| 168 | ay8910_data_address_w(dev | |
| 168 | ay8910_data_address_w(dev | |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | |
| r8581 | r8582 | |
| 206 | 206 | |
| 207 | 207 | static WRITE8_DEVICE_HANDLER( ttl74123_output_changed ) |
| 208 | 208 | { |
| 209 | running_device *pia = devtag_get_device(device->machine, "pia_main"); | |
| 210 | pia6821_ca1_w(pia, 0, data); | |
| 209 | running_device *pia = device->machine->device("pia_main"); | |
| 210 | pia6821_ca1_w(pia, data); | |
| 211 | 211 | ttl74123_output = data; |
| 212 | 212 | } |
| 213 | 213 | |
| r8581 | r8582 | |
| 362 | 362 | |
| 363 | 363 | static WRITE_LINE_DEVICE_HANDLER( display_enable_changed ) |
| 364 | 364 | { |
| 365 | ttl74123_a_w(dev | |
| 365 | ttl74123_a_w(dev | |
| 366 | 366 | } |
| 367 | 367 | |
| 368 | 368 | |
| r8581 | r8582 | |
| 383 | 383 | |
| 384 | 384 | static VIDEO_UPDATE( r2dtank ) |
| 385 | 385 | { |
| 386 | running_device *mc6845 = | |
| 386 | running_device *mc6845 = | |
| 387 | 387 | mc6845_update(mc6845, bitmap, cliprect); |
| 388 | 388 | |
| 389 | 389 | return 0; |
| r8581 | r8582 | |
|---|---|---|
| 322 | 322 | const address_space *program = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM); |
| 323 | 323 | const address_space *io = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_IO); |
| 324 | 324 | const address_space *sndio = cputag_get_address_space(machine, "soundcpu", ADDRESS_SPACE_IO); |
| 325 | running_device *dac = | |
| 325 | running_device *dac = m | |
| 326 | 326 | |
| 327 | 327 | protection_ram = auto_alloc_array(machine, UINT16, 0x10000/2); |
| 328 | 328 | memory_install_read_bank(program, 0xb0000, 0xbffff, 0, 0, "bank1"); |
| r8581 | r8582 | |
| 406 | 406 | const address_space *space = cpu_get_address_space(device, ADDRESS_SPACE_PROGRAM); |
| 407 | 407 | int sample = m72_sample_r(space,0); |
| 408 | 408 | if (sample) |
| 409 | m72_sample_w(dev | |
| 409 | m72_sample_w(dev | |
| 410 | 410 | } |
| 411 | 411 | |
| 412 | 412 |
| r8581 | r8582 | |
|---|---|---|
| 52 | 52 | { |
| 53 | 53 | crgolf_state *state = (crgolf_state *)machine->driver_data; |
| 54 | 54 | |
| 55 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 56 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 55 | state->maincpu = machine->device("maincpu"); | |
| 56 | state->audiocpu = machine->device("audiocpu"); | |
| 57 | 57 | |
| 58 | 58 | /* configure the banking */ |
| 59 | 59 | memory_configure_bank(machine, "bank1", 0, 16, memory_region(machine, "maincpu") + 0x10000, 0x2000); |
| r8581 | r8582 | |
| 603 | 603 | |
| 604 | 604 | static DRIVER_INIT( crgolfhi ) |
| 605 | 605 | { |
| 606 | running_device *msm = | |
| 606 | running_device *msm = m | |
| 607 | 607 | memory_install_write8_device_handler(cputag_get_address_space(machine, "audiocpu", ADDRESS_SPACE_PROGRAM), msm, 0xa000, 0xa003, 0, 0, crgolfhi_sample_w); |
| 608 | 608 | } |
| 609 | 609 |
| r8581 | r8582 | |
|---|---|---|
| 609 | 609 | |
| 610 | 610 | static WRITE8_HANDLER( msm5205_mastboy_m5205_sambit0_w ) |
| 611 | 611 | { |
| 612 | running_device *adpcm = | |
| 612 | running_device *adpcm = | |
| 613 | 613 | |
| 614 | 614 | mastboy_m5205_sambit0 = data & 1; |
| 615 | 615 | msm5205_playmode_w(adpcm, (1 << 2) | (mastboy_m5205_sambit1 << 1) | (mastboy_m5205_sambit0) ); |
| r8581 | r8582 | |
| 619 | 619 | |
| 620 | 620 | static WRITE8_HANDLER( msm5205_mastboy_m5205_sambit1_w ) |
| 621 | 621 | { |
| 622 | running_device *adpcm = | |
| 622 | running_device *adpcm = | |
| 623 | 623 | |
| 624 | 624 | mastboy_m5205_sambit1 = data & 1; |
| 625 | 625 | |
| r8581 | r8582 | |
| 849 | 849 | memset( mastboy_vram, 0x00, 0x10000); |
| 850 | 850 | |
| 851 | 851 | mastboy_m5205_part = 0; |
| 852 | msm5205_reset_w( | |
| 852 | msm5205_reset_w(m | |
| 853 | 853 | mastboy_irq0_ack = 0; |
| 854 | 854 | } |
| 855 | 855 |
| r8581 | r8582 | |
|---|---|---|
| 652 | 652 | |
| 653 | 653 | memory_configure_bank(machine, "bank10", 0, 4, memory_region(machine, "audiocpu") + 0xc000, 0x4000); |
| 654 | 654 | |
| 655 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 656 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 657 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 658 | state->tc0220ioc = devtag_get_device(machine, "tc0220ioc"); | |
| 659 | state->pc080sn_1 = devtag_get_device(machine, "pc080sn_1"); | |
| 660 | state->pc080sn_2 = devtag_get_device(machine, "pc080sn_2"); | |
| 655 | state->maincpu = machine->device("maincpu"); | |
| 656 | state->subcpu = machine->device("sub"); | |
| 657 | state->audiocpu = machine->device("audiocpu"); | |
| 658 | state->tc0220ioc = machine->device("tc0220ioc"); | |
| 659 | state->pc080sn_1 = machine->device("pc080sn_1"); | |
| 660 | state->pc080sn_2 = machine->device("pc080sn_2"); | |
| 661 | 661 | |
| 662 | 662 | state_save_register_global(machine, state->cpua_ctrl); |
| 663 | 663 | state_save_register_global(machine, state->ioc220_port); |
| r8581 | r8582 | |
|---|---|---|
| 364 | 364 | /* INIT THE PORTS *********************************************************************************************/ |
| 365 | 365 | |
| 366 | 366 | const address_space *io = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_IO); |
| 367 | running_device *sn1 = devtag_get_device(machine, "sn1"); | |
| 368 | running_device *sn2 = devtag_get_device(machine, "sn2"); | |
| 367 | running_device *sn1 = machine->device("sn1"); | |
| 368 | running_device *sn2 = machine->device("sn2"); | |
| 369 | 369 | |
| 370 | 370 | memory_install_write8_device_handler(io, sn2, 0x7b, 0x7b, 0, 0, sn76496_w); |
| 371 | 371 | memory_install_write8_device_handler(io, sn1, 0x7e, 0x7f, 0, 0, sn76496_w); |
| r8581 | r8582 | |
|---|---|---|
| 254 | 254 | { |
| 255 | 255 | amspdwy_state *state = (amspdwy_state *)machine->driver_data; |
| 256 | 256 | |
| 257 | state->audiocpu = | |
| 257 | state->audiocpu = m | |
| 258 | 258 | |
| 259 | 259 | state_save_register_global(machine, state->flipscreen); |
| 260 | 260 | state_save_register_global_array(machine, state->wheel_old); |
| r8581 | r8582 | |
|---|---|---|
| 829 | 829 | { |
| 830 | 830 | fantland_state *state = (fantland_state *)machine->driver_data; |
| 831 | 831 | |
| 832 | state->audio_cpu = | |
| 832 | state->audio_cpu = m | |
| 833 | 833 | |
| 834 | 834 | state_save_register_global(machine, state->nmi_enable); |
| 835 | 835 | } |
| r8581 | r8582 | |
| 978 | 978 | |
| 979 | 979 | MACHINE_START_CALL(fantland); |
| 980 | 980 | |
| 981 | state->msm1 = devtag_get_device(machine, "msm1"); | |
| 982 | state->msm2 = devtag_get_device(machine, "msm2"); | |
| 983 | state->msm3 = devtag_get_device(machine, "msm3"); | |
| 984 | state->msm4 = devtag_get_device(machine, "msm4"); | |
| 981 | state->msm1 = machine->device("msm1"); | |
| 982 | state->msm2 = machine->device("msm2"); | |
| 983 | state->msm3 = machine->device("msm3"); | |
| 984 | state->msm4 = machine->device("msm4"); | |
| 985 | 985 | |
| 986 | 986 | state_save_register_global_array(machine, state->old_x); |
| 987 | 987 | state_save_register_global_array(machine, state->old_y); |
| r8581 | r8582 | |
| 1016 | 1016 | state->adpcm_nibble[i] = 0; |
| 1017 | 1017 | } |
| 1018 | 1018 | |
| 1019 | borntofi_adpcm_stop(devtag_get_device(machine, "msm1"), 0); | |
| 1020 | borntofi_adpcm_stop(devtag_get_device(machine, "msm2"), 1); | |
| 1021 | borntofi_adpcm_stop(devtag_get_device(machine, "msm3"), 2); | |
| 1022 | borntofi_adpcm_stop(devtag_get_device(machine, "msm4"), 3); | |
| 1019 | borntofi_adpcm_stop(machine->device("msm1"), 0); | |
| 1020 | borntofi_adpcm_stop(machine->device("msm2"), 1); | |
| 1021 | borntofi_adpcm_stop(machine->device("msm3"), 2); | |
| 1022 | borntofi_adpcm_stop(machine->device("msm4"), 3); | |
| 1023 | 1023 | } |
| 1024 | 1024 | |
| 1025 | 1025 | static MACHINE_DRIVER_START( borntofi ) |
| r8581 | r8582 | |
|---|---|---|
| 1180 | 1180 | state_save_register_postload(machine, pitfightb_state_postload, NULL); |
| 1181 | 1181 | } |
| 1182 | 1182 | else if (slapstic != 0) |
| 1183 | atarigen_slapstic_init( | |
| 1183 | atarigen_slapstic_init(m | |
| 1184 | 1184 | atarijsa_init(machine, "IN0", 0x4000); |
| 1185 | 1185 | |
| 1186 | 1186 | state->is_pitfight = is_pitfight; |
| r8581 | r8582 | |
|---|---|---|
| 298 | 298 | { |
| 299 | 299 | if (ACCESSING_BITS_0_7) |
| 300 | 300 | { |
| 301 | ticket_dispenser_w(devtag_get_device(space->machine, "prize1"), 0, (data & 0x0001) << 7); | |
| 302 | ticket_dispenser_w(devtag_get_device(space->machine, "prize2"), 0, (data & 0x0002) << 6); | |
| 303 | ticket_dispenser_w(devtag_get_device(space->machine, "ticket"), 0, (data & 0x0010) << 3); | |
| 301 | ticket_dispenser_w(space->machine->device("prize1"), 0, (data & 0x0001) << 7); | |
| 302 | ticket_dispenser_w(space->machine->device("prize2"), 0, (data & 0x0002) << 6); | |
| 303 | ticket_dispenser_w(space->machine->device("ticket"), 0, (data & 0x0010) << 3); | |
| 304 | 304 | // data & 0x0080 ? |
| 305 | 305 | } |
| 306 | 306 | #ifdef MAME_DEBUG |
| r8581 | r8582 | |
|---|---|---|
| 380 | 380 | |
| 381 | 381 | if (ay8910_1&0x03) // SW1 read. |
| 382 | 382 | { |
| 383 | psg_ret = ay8910_r(dev | |
| 383 | psg_ret = ay8910_r(dev | |
| 384 | 384 | //logerror("PSG porta ay1 returned %02X\n",psg_ret); |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | else if (ay8910_2&0x03) //i don't think we read anything from Port A on ay2, Can be removed once game works ok. |
| 388 | 388 | { |
| 389 | psg_ret = ay8910_r(dev | |
| 389 | psg_ret = ay8910_r(dev | |
| 390 | 390 | //logerror("PSG porta ay2 returned %02X\n",psg_ret); |
| 391 | 391 | } |
| 392 | 392 | return psg_ret; |
| r8581 | r8582 | |
| 493 | 493 | |
| 494 | 494 | case 0x06: //WRITE |
| 495 | 495 | { |
| 496 | ay8910_data_w( dev | |
| 496 | ay8910_data_w( dev | |
| 497 | 497 | //logerror("VIA Port A write data ay1: %02X\n",psg_data); |
| 498 | 498 | break; |
| 499 | 499 | } |
| 500 | 500 | |
| 501 | 501 | case 0x07: //LATCH Address (set register) |
| 502 | 502 | { |
| 503 | ay8910_address_w( dev | |
| 503 | ay8910_address_w( dev | |
| 504 | 504 | //logerror("VIA Port B write register ay1: %02X\n",psg_data); |
| 505 | 505 | break; |
| 506 | 506 | } |
| r8581 | r8582 | |
| 526 | 526 | |
| 527 | 527 | case 0x06: //WRITE |
| 528 | 528 | { |
| 529 | ay8910_data_w( dev | |
| 529 | ay8910_data_w( dev | |
| 530 | 530 | //logerror("VIA Port A write data ay2: %02X\n",psg_data); |
| 531 | 531 | break; |
| 532 | 532 | } |
| 533 | 533 | |
| 534 | 534 | case 0x07: //LATCH Address (set register) |
| 535 | 535 | { |
| 536 | ay8910_address_w( dev | |
| 536 | ay8910_address_w( dev | |
| 537 | 537 | //logerror("VIA Port B write register ay2: %02X\n",psg_data); |
| 538 | 538 | break; |
| 539 | 539 | } |
| r8581 | r8582 | |
| 1142 | 1142 | static MACHINE_START( aristmk4 ) |
| 1143 | 1143 | { |
| 1144 | 1144 | |
| 1145 | samples = | |
| 1145 | samples = m | |
| 1146 | 1146 | state_save_register_global_pointer(machine, nvram,0x1000); // nvram |
| 1147 | 1147 | } |
| 1148 | 1148 | |
| r8581 | r8582 | |
| 1153 | 1153 | switch(input_port_read(machine, "LK13")) // cpu speed cotrol.. 3mhz or 1.5mhz |
| 1154 | 1154 | { |
| 1155 | 1155 | case 0x00: |
| 1156 | c | |
| 1156 | machin | |
| 1157 | 1157 | break; |
| 1158 | 1158 | case 0x10: |
| 1159 | c | |
| 1159 | machin | |
| 1160 | 1160 | break; |
| 1161 | 1161 | } |
| 1162 | 1162 |
| r8581 | r8582 | |
|---|---|---|
| 631 | 631 | |
| 632 | 632 | machine->generic.paletteram.u8 = auto_alloc_array_clear(machine, UINT8, 0x800); |
| 633 | 633 | |
| 634 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 635 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 636 | state->k007232 = devtag_get_device(machine, "k007232"); | |
| 637 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 638 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 634 | state->maincpu = machine->device("maincpu"); | |
| 635 | state->audiocpu = machine->device("audiocpu"); | |
| 636 | state->k007232 = machine->device("k007232"); | |
| 637 | state->k052109 = machine->device("k052109"); | |
| 638 | state->k051960 = machine->device("k051960"); | |
| 639 | 639 | |
| 640 | 640 | state_save_register_global(machine, state->priority); |
| 641 | 641 | state_save_register_global(machine, state->_1f98_data); |
| r8581 | r8582 | |
| 674 | 674 | |
| 675 | 675 | static MACHINE_RESET( thunderx ) |
| 676 | 676 | { |
| 677 | konami_configure_set_lines( | |
| 677 | konami_configure_set_lines(m | |
| 678 | 678 | |
| 679 | 679 | MACHINE_RESET_CALL(scontra); |
| 680 | 680 | } |
| r8581 | r8582 | |
|---|---|---|
| 66 | 66 | |
| 67 | 67 | static MACHINE_RESET( videopin ) |
| 68 | 68 | { |
| 69 | running_device *discrete = | |
| 69 | running_device *discrete = m | |
| 70 | 70 | |
| 71 | 71 | timer_set(machine, machine->primary_screen->time_until_pos(32), NULL, 32, interrupt_callback); |
| 72 | 72 |
| r8581 | r8582 | |
|---|---|---|
| 1987 | 1987 | { |
| 1988 | 1988 | tumbleb_state *state = (tumbleb_state *)machine->driver_data; |
| 1989 | 1989 | |
| 1990 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1991 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1992 | state->oki = devtag_get_device(machine, "oki"); | |
| 1990 | state->maincpu = machine->device("maincpu"); | |
| 1991 | state->audiocpu = machine->device("audiocpu"); | |
| 1992 | state->oki = machine->device("oki"); | |
| 1993 | 1993 | |
| 1994 | 1994 | state_save_register_global(machine, state->music_command); |
| 1995 | 1995 | state_save_register_global(machine, state->music_bank); |
| r8581 | r8582 | |
| 3348 | 3348 | |
| 3349 | 3349 | static DRIVER_INIT( tumbleb2 ) |
| 3350 | 3350 | { |
| 3351 | running_device *oki = | |
| 3351 | running_device *oki = m | |
| 3352 | 3352 | |
| 3353 | 3353 | tumblepb_gfx1_rearrange(machine); |
| 3354 | 3354 | |
| r8581 | r8582 | |
| 3728 | 3728 | GAME( 1994, metlsavr, 0, metlsavr, metlsavr, chokchok, ROT0, "First Amusement", "Metal Saver", GAME_SUPPORTS_SAVE ) |
| 3729 | 3729 | GAME( 1994, pangpang, 0, pangpang, tumblepb, tumbleb2, ROT0, "Dong Gue La Mi Ltd.", "Pang Pang", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) // PIC is protected, sound simulation not 100% |
| 3730 | 3730 | GAME( 1994, suprtrio, 0, suprtrio, suprtrio, suprtrio, ROT0, "Gameace", "Super Trio", GAME_SUPPORTS_SAVE ) |
| 3731 | // Should also be 'Magicball Fighting' (c)1994 | |
| 3731 | // Should also be 'Magicball Fighting' (c)1994 | |
| 3732 | 3732 | GAME( 1995, htchctch, 0, htchctch, htchctch, htchctch, ROT0, "SemiCom", "Hatch Catch" , GAME_SUPPORTS_SAVE ) // not 100% sure about gfx offsets |
| 3733 | 3733 | GAME( 1995, cookbib, 0, cookbib, cookbib, htchctch, ROT0, "SemiCom", "Cookie & Bibi" , GAME_SUPPORTS_SAVE ) // not 100% sure about gfx offsets |
| 3734 | 3734 | GAME( 1995, chokchok, 0, cookbib, chokchok, chokchok, ROT0, "SemiCom", "Choky! Choky!", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) // corruption during attract mode (tmap disable?) |
| r8581 | r8582 | |
|---|---|---|
| 67 | 67 | |
| 68 | 68 | static READ8_HANDLER( toypop_main_interrupt_enable_r ) |
| 69 | 69 | { |
| 70 | cpu_interrupt_enable( | |
| 70 | cpu_interrupt_enable( | |
| 71 | 71 | return 0; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | static WRITE8_HANDLER( toypop_main_interrupt_enable_w ) |
| 75 | 75 | { |
| 76 | cpu_interrupt_enable( | |
| 76 | cpu_interrupt_enable( | |
| 77 | 77 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | static WRITE8_HANDLER( toypop_main_interrupt_disable_w ) |
| 81 | 81 | { |
| 82 | cpu_interrupt_enable( | |
| 82 | cpu_interrupt_enable( | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | static WRITE8_HANDLER( toypop_sound_interrupt_enable_acknowledge_w ) |
| 86 | 86 | { |
| 87 | cpu_interrupt_enable( | |
| 87 | cpu_interrupt_enable( | |
| 88 | 88 | cputag_set_input_line(space->machine, "audiocpu", 0, CLEAR_LINE); |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | static WRITE8_HANDLER( toypop_sound_interrupt_disable_w ) |
| 92 | 92 | { |
| 93 | cpu_interrupt_enable( | |
| 93 | cpu_interrupt_enable( | |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | static TIMER_CALLBACK( namcoio_run ) |
| 97 | 97 | { |
| 98 | running_device *io58xx = devtag_get_device(machine, "58xx"); | |
| 99 | running_device *io56xx_1 = devtag_get_device(machine, "56xx_1"); | |
| 100 | running_device *io56xx_2 = devtag_get_device(machine, "56xx_2"); | |
| 98 | running_device *io58xx = machine->device("58xx"); | |
| 99 | running_device *io56xx_1 = machine->device("56xx_1"); | |
| 100 | running_device *io56xx_2 = machine->device("56xx_2"); | |
| 101 | 101 | |
| 102 | 102 | switch (param) |
| 103 | 103 | { |
| r8581 | r8582 | |
| 115 | 115 | |
| 116 | 116 | static INTERRUPT_GEN( toypop_main_interrupt ) |
| 117 | 117 | { |
| 118 | running_device *namcoio_0 = devtag_get_device(device->machine, "58xx"); | |
| 119 | running_device *namcoio_1 = devtag_get_device(device->machine, "56xx_1"); | |
| 120 | running_device *namcoio_2 = devtag_get_device(device->machine, "56xx_2"); | |
| 118 | running_device *namcoio_0 = device->machine->device("58xx"); | |
| 119 | running_device *namcoio_1 = device->machine->device("56xx_1"); | |
| 120 | running_device *namcoio_2 = device->machine->device("56xx_2"); | |
| 121 | 121 | |
| 122 | 122 | irq0_line_assert(device); // this also checks if irq is enabled - IMPORTANT! |
| 123 | 123 | // so don't replace with cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE); |
| r8581 | r8582 | |
| 156 | 156 | static TIMER_CALLBACK( disable_interrupts ) |
| 157 | 157 | { |
| 158 | 158 | toypop_state *state = (toypop_state *)machine->driver_data; |
| 159 | cpu_interrupt_enable( | |
| 159 | cpu_interrupt_enable(m | |
| 160 | 160 | cputag_set_input_line(machine, "maincpu", 0, CLEAR_LINE); |
| 161 | cpu_interrupt_enable( | |
| 161 | cpu_interrupt_enable(m | |
| 162 | 162 | cputag_set_input_line(machine, "audiocpu", 0, CLEAR_LINE); |
| 163 | 163 | state->interrupt_enable_68k = 0; |
| 164 | 164 | } |
| r8581 | r8582 | |
|---|---|---|
| 393 | 393 | { |
| 394 | 394 | kchamp_state *state = (kchamp_state *)machine->driver_data; |
| 395 | 395 | |
| 396 | state->audiocpu = | |
| 396 | state->audiocpu = m | |
| 397 | 397 | |
| 398 | 398 | state_save_register_global(machine, state->nmi_enable); |
| 399 | 399 | state_save_register_global(machine, state->sound_nmi_enable); |
| r8581 | r8582 | |
|---|---|---|
| 444 | 444 | GAME( 1982, tugboat, 0, tugboat, tugboat, 0, ROT90, "ETM", "Tugboat", GAME_IMPERFECT_GRAPHICS ) |
| 445 | 445 | GAME( 1983, noahsark, 0, tugboat, noahsark, 0, ROT90, "Enter-Tech", "Noah's Ark", GAME_IMPERFECT_GRAPHICS ) |
| 446 | 446 | GAME( 1984, berenstn, 0, tugboat, noahsark, 0, ROT90, "Enter-Tech", "The Berenstain Bears in Big Paw's Cave", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS ) |
| 447 |
| r8581 | r8582 | |
|---|---|---|
| 527 | 527 | { |
| 528 | 528 | lastfght_state *state = (lastfght_state *)machine->driver_data; |
| 529 | 529 | |
| 530 | state->maincpu = | |
| 530 | state->maincpu = m | |
| 531 | 531 | |
| 532 | 532 | state_save_register_global(machine, state->clr_offset); |
| 533 | 533 | state_save_register_global(machine, state->dest); |
| r8581 | r8582 | |
|---|---|---|
| 52 | 52 | Prebillian : |
| 53 | 53 | ------------ |
| 54 | 54 | |
| 55 | PCB Layout (Prebillian, from The Guru ( http://u | |
| 55 | PCB Layout (Prebillian, from The Guru ( http://gur | |
| 56 | 56 | |
| 57 | 57 | M6100211A |
| 58 | 58 | ------------------------------------------------------------------- |
| r8581 | r8582 | |
| 147 | 147 | |
| 148 | 148 | static WRITE8_HANDLER( pbillian_sample_trigger_w ) |
| 149 | 149 | { |
| 150 | running_device *samples = | |
| 150 | running_device *samples = | |
| 151 | 151 | int start,end; |
| 152 | 152 | |
| 153 | 153 | start = data << 7; |
| r8581 | r8582 | |
|---|---|---|
| 224 | 224 | { |
| 225 | 225 | dday_state *state = (dday_state *)machine->driver_data; |
| 226 | 226 | |
| 227 | state->ay1 = | |
| 227 | state->ay1 = m | |
| 228 | 228 | |
| 229 | 229 | state_save_register_global(machine, state->control); |
| 230 | 230 | state_save_register_global(machine, state->sl_enable); |
| r8581 | r8582 | |
|---|---|---|
| 65 | 65 | atarigen_slapstic_reset(&state->atarigen); |
| 66 | 66 | atarigen_interrupt_reset(&state->atarigen, update_interrupts); |
| 67 | 67 | atarigen_scanline_timer_reset(*machine->primary_screen, cyberbal_scanline_update, 8); |
| 68 | atarigen_sound_io_reset( | |
| 68 | atarigen_sound_io_reset(m | |
| 69 | 69 | |
| 70 | 70 | cyberbal_sound_reset(machine); |
| 71 | 71 | |
| r8581 | r8582 | |
| 999 | 999 | { |
| 1000 | 1000 | cyberbal_state *state = (cyberbal_state *)machine->driver_data; |
| 1001 | 1001 | state->atarigen.eeprom_default = default_eeprom; |
| 1002 | atarigen_slapstic_init( | |
| 1002 | atarigen_slapstic_init(m | |
| 1003 | 1003 | } |
| 1004 | 1004 | |
| 1005 | 1005 | |
| r8581 | r8582 | |
| 1007 | 1007 | { |
| 1008 | 1008 | cyberbal_state *state = (cyberbal_state *)machine->driver_data; |
| 1009 | 1009 | state->atarigen.eeprom_default = default_eeprom; |
| 1010 | atarigen_slapstic_init( | |
| 1010 | atarigen_slapstic_init(m | |
| 1011 | 1011 | } |
| 1012 | 1012 | |
| 1013 | 1013 |
| r8581 | r8582 | |
|---|---|---|
| 466 | 466 | { |
| 467 | 467 | lockon_state *state = (lockon_state *)machine->driver_data; |
| 468 | 468 | |
| 469 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 470 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 471 | state->ground = devtag_get_device(machine, "ground"); | |
| 472 | state->object = devtag_get_device(machine, "object"); | |
| 473 | state->f2203_1l = devtag_get_device(machine, "f2203.1l"); | |
| 474 | state->f2203_2l = devtag_get_device(machine, "f2203.2l"); | |
| 475 | state->f2203_3l = devtag_get_device(machine, "f2203.3l"); | |
| 476 | state->f2203_1r = devtag_get_device(machine, "f2203.1r"); | |
| 477 | state->f2203_2r = devtag_get_device(machine, "f2203.2r"); | |
| 478 | state->f2203_3r = devtag_get_device(machine, "f2203.3r"); | |
| 469 | state->maincpu = machine->device("maincpu"); | |
| 470 | state->audiocpu = machine->device("audiocpu"); | |
| 471 | state->ground = machine->device("ground"); | |
| 472 | state->object = machine->device("object"); | |
| 473 | state->f2203_1l = machine->device("f2203.1l"); | |
| 474 | state->f2203_2l = machine->device("f2203.2l"); | |
| 475 | state->f2203_3l = machine->device("f2203.3l"); | |
| 476 | state->f2203_1r = machine->device("f2203.1r"); | |
| 477 | state->f2203_2r = machine->device("f2203.2r"); | |
| 478 | state->f2203_3r = machine->device("f2203.3r"); | |
| 479 | 479 | |
| 480 | 480 | state_save_register_global(machine, state->ground_ctrl); |
| 481 | 481 | state_save_register_global(machine, state->scroll_h); |
| r8581 | r8582 | |
|---|---|---|
| 237 | 237 | KONAMI16_MSB_40(2, IPT_BUTTON3 ) |
| 238 | 238 | PORT_DIPNAME( 0x8000, 0x8000, "Coin mechanism" ) PORT_DIPLOCATION("SW1:2") |
| 239 | 239 | PORT_DIPSETTING( 0x8000, "Common" ) |
| 240 | PORT_DIPSETTING( 0x0000, "Independ | |
| 240 | PORT_DIPSETTING( 0x0000, "Independent" ) | |
| 241 | 241 | |
| 242 | 242 | PORT_START("P3_P4") |
| 243 | 243 | KONAMI16_LSB_40(3, IPT_BUTTON3 ) |
| r8581 | r8582 | |
| 278 | 278 | { |
| 279 | 279 | gijoe_state *state = (gijoe_state *)machine->driver_data; |
| 280 | 280 | |
| 281 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 282 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 283 | state->k054539 = devtag_get_device(machine, "k054539"); | |
| 284 | state->k056832 = devtag_get_device(machine, "k056832"); | |
| 285 | state->k053246 = devtag_get_device(machine, "k053246"); | |
| 286 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 281 | state->maincpu = machine->device("maincpu"); | |
| 282 | state->audiocpu = machine->device("audiocpu"); | |
| 283 | state->k054539 = machine->device("k054539"); | |
| 284 | state->k056832 = machine->device("k056832"); | |
| 285 | state->k053246 = machine->device("k053246"); | |
| 286 | state->k053251 = machine->device("k053251"); | |
| 287 | 287 | |
| 288 | 288 | state->dmadelay_timer = timer_alloc(machine, dmaend_callback, NULL); |
| 289 | 289 |
| r8581 | r8582 | |
|---|---|---|
| 150 | 150 | set_led_status(device->machine, 9,data & 0x08); |
| 151 | 151 | |
| 152 | 152 | /* bit 5 - ticket out in trivia games */ |
| 153 | ticket_dispenser_w(dev | |
| 153 | ticket_dispenser_w(dev | |
| 154 | 154 | |
| 155 | 155 | /* bit 6 enables NMI */ |
| 156 | 156 | interrupt_enable_w(space, 0, data & 0x40); |
| 157 | 157 | |
| 158 | 158 | /* bit 7 goes directly to the sound amplifier */ |
| 159 | dac_data_w(dev | |
| 159 | dac_data_w(dev | |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | static WRITE8_DEVICE_HANDLER( sound2_w ) |
| r8581 | r8582 | |
| 173 | 173 | set_led_status(device->machine, 12,data & 0x20); |
| 174 | 174 | |
| 175 | 175 | /* bit 7 goes directly to the sound amplifier */ |
| 176 | dac_data_w(dev | |
| 176 | dac_data_w(dev | |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | static WRITE8_DEVICE_HANDLER( lamps2_w ) |
| r8581 | r8582 | |
|---|---|---|
| 192 | 192 | if (scanline & 32) |
| 193 | 193 | atarigen_6502_irq_ack_r(space, 0); |
| 194 | 194 | else if (!(input_port_read(screen.machine, "FE4000") & 0x40)) |
| 195 | atarigen_6502_irq_gen( | |
| 195 | atarigen_6502_irq_gen( | |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | |
| r8581 | r8582 | |
| 216 | 216 | atarigen_interrupt_reset(&state->atarigen, update_interrupts); |
| 217 | 217 | atarigen_scanline_timer_reset(*machine->primary_screen, scanline_update, 32); |
| 218 | 218 | |
| 219 | atarigen_sound_io_reset( | |
| 219 | atarigen_sound_io_reset(m | |
| 220 | 220 | memcpy(state->bank_base, &state->bank_source_data[0x0000], 0x1000); |
| 221 | 221 | } |
| 222 | 222 | |
| r8581 | r8582 | |
| 695 | 695 | // if (scanline & 32) |
| 696 | 696 | // atarigen_6502_irq_ack_r(screen->machine, 0); |
| 697 | 697 | // else if (!(input_port_read(machine, "FE4000") & 0x40)) |
| 698 | // atarigen_6502_irq_gen( | |
| 698 | // atarigen_6502_irq_gen( | |
| 699 | 699 | } |
| 700 | 700 | |
| 701 | 701 | |
| r8581 | r8582 | |
| 709 | 709 | atarigen_interrupt_reset(&state->atarigen, update_interrupts_bootleg); |
| 710 | 710 | atarigen_scanline_timer_reset(*machine->primary_screen, scanline_update_bootleg, 32); |
| 711 | 711 | |
| 712 | // atarigen_sound_io_reset( | |
| 712 | // atarigen_sound_io_reset(m | |
| 713 | 713 | // memcpy(state->bank_base, &state->bank_source_data[0x0000], 0x1000); |
| 714 | 714 | } |
| 715 | 715 |
| r8581 | r8582 | |
|---|---|---|
| 802 | 802 | { |
| 803 | 803 | psikyosh_state *state = (psikyosh_state *)machine->driver_data; |
| 804 | 804 | |
| 805 | state->maincpu = | |
| 805 | state->maincpu = m | |
| 806 | 806 | |
| 807 | 807 | memory_configure_bank(machine, "bank2", 0, 0x1000, memory_region(machine, "gfx1"), 0x20000); |
| 808 | 808 | |
| r8581 | r8582 | |
| 1196 | 1196 | |
| 1197 | 1197 | static DRIVER_INIT( soldivid ) |
| 1198 | 1198 | { |
| 1199 | sh2drc_set_options( | |
| 1199 | sh2drc_set_options(m | |
| 1200 | 1200 | } |
| 1201 | 1201 | |
| 1202 | 1202 | static DRIVER_INIT( s1945ii ) |
| 1203 | 1203 | { |
| 1204 | sh2drc_set_options( | |
| 1204 | sh2drc_set_options(m | |
| 1205 | 1205 | } |
| 1206 | 1206 | |
| 1207 | 1207 | static DRIVER_INIT( daraku ) |
| 1208 | 1208 | { |
| 1209 | 1209 | UINT8 *RAM = memory_region(machine, "maincpu"); |
| 1210 | 1210 | memory_set_bankptr(machine, "bank1", &RAM[0x100000]); |
| 1211 | sh2drc_set_options( | |
| 1211 | sh2drc_set_options(m | |
| 1212 | 1212 | } |
| 1213 | 1213 | |
| 1214 | 1214 | static DRIVER_INIT( sbomberb ) |
| 1215 | 1215 | { |
| 1216 | sh2drc_set_options( | |
| 1216 | sh2drc_set_options(m | |
| 1217 | 1217 | } |
| 1218 | 1218 | |
| 1219 | 1219 | static DRIVER_INIT( gunbird2 ) |
| 1220 | 1220 | { |
| 1221 | 1221 | UINT8 *RAM = memory_region(machine, "maincpu"); |
| 1222 | 1222 | memory_set_bankptr(machine, "bank1", &RAM[0x100000]); |
| 1223 | sh2drc_set_options( | |
| 1223 | sh2drc_set_options(m | |
| 1224 | 1224 | } |
| 1225 | 1225 | |
| 1226 | 1226 | static DRIVER_INIT( s1945iii ) |
| 1227 | 1227 | { |
| 1228 | 1228 | UINT8 *RAM = memory_region(machine, "maincpu"); |
| 1229 | 1229 | memory_set_bankptr(machine, "bank1", &RAM[0x100000]); |
| 1230 | sh2drc_set_options( | |
| 1230 | sh2drc_set_options(m | |
| 1231 | 1231 | } |
| 1232 | 1232 | |
| 1233 | 1233 | static DRIVER_INIT( dragnblz ) |
| 1234 | 1234 | { |
| 1235 | sh2drc_set_options( | |
| 1235 | sh2drc_set_options(m | |
| 1236 | 1236 | } |
| 1237 | 1237 | |
| 1238 | 1238 | static DRIVER_INIT( gnbarich ) |
| 1239 | 1239 | { |
| 1240 | sh2drc_set_options( | |
| 1240 | sh2drc_set_options(m | |
| 1241 | 1241 | } |
| 1242 | 1242 | |
| 1243 | 1243 | static DRIVER_INIT( tgm2 ) |
| 1244 | 1244 | { |
| 1245 | sh2drc_set_options( | |
| 1245 | sh2drc_set_options(m | |
| 1246 | 1246 | } |
| 1247 | 1247 | |
| 1248 | 1248 | static DRIVER_INIT( mjgtaste ) |
| 1249 | 1249 | { |
| 1250 | sh2drc_set_options( | |
| 1250 | sh2drc_set_options(m | |
| 1251 | 1251 | /* needs to install mahjong controls too (can select joystick in test mode tho) */ |
| 1252 | 1252 | memory_install_read32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x03000000, 0x03000003, 0, 0, mjgtaste_input_r); |
| 1253 | 1253 | } |
| r8581 | r8582 | |
|---|---|---|
| 228 | 228 | { |
| 229 | 229 | astinvad_state *state = (astinvad_state *)machine->driver_data; |
| 230 | 230 | |
| 231 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 232 | state->ppi8255_0 = devtag_get_device(machine, "ppi8255_0"); | |
| 233 | state->ppi8255_1 = devtag_get_device(machine, "ppi8255_1"); | |
| 234 | state->samples = devtag_get_device(machine, "samples"); | |
| 231 | state->maincpu = machine->device("maincpu"); | |
| 232 | state->ppi8255_0 = machine->device("ppi8255_0"); | |
| 233 | state->ppi8255_1 = machine->device("ppi8255_1"); | |
| 234 | state->samples = machine->device("samples"); | |
| 235 | 235 | |
| 236 | 236 | state->int_timer = timer_alloc(machine, kamizake_int_gen, NULL); |
| 237 | 237 | timer_adjust_oneshot(state->int_timer, machine->primary_screen->time_until_pos(128), 128); |
| r8581 | r8582 | |
| 256 | 256 | { |
| 257 | 257 | astinvad_state *state = (astinvad_state *)machine->driver_data; |
| 258 | 258 | |
| 259 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 260 | state->samples = devtag_get_device(machine, "samples"); | |
| 259 | state->maincpu = machine->device("maincpu"); | |
| 260 | state->samples = machine->device("samples"); | |
| 261 | 261 | |
| 262 | 262 | state_save_register_global(machine, state->screen_flip); |
| 263 | 263 | state_save_register_global_array(machine, state->sound_state); |
| r8581 | r8582 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | | |
| 3 | neo | |
| 4 | 4 | |
| 5 | Neo Geo hardware | |
| 5 | 6 | This file contains all game specific overrides |
| 6 | 7 | |
| 7 | ****************************************************************************/ | |
| 8 | 8 | |
| 9 | In 2010, SNK Playmore, the successor of SNK, released a title catalogue which lists the released | |
| 10 | games (MVS/AES/CD) including their release dates in Japan. It is not 100% complete. | |
| 11 | The included title catalogue is the english one. | |
| 9 | 12 | |
| 10 | /* Game specific input definitions */ | |
| 13 | Title catalogue | |
| 14 | (source: http://neogeomuseum.snkplaymore.co.jp/english/catalogue/index.php) | |
| 11 | 15 | |
| 12 | static INPUT_PORTS_START( svcpcb ) | |
| 13 | STANDARD_IN0 | |
| 16 | Game Title Genre Publisher Date Released (in Japan) | |
| 17 | ================================================================================================================================= | |
| 18 | NAM-1975 3D Action SNK MVS Cartridge:1990/04/26 | |
| 19 | NEOGEO ROM-cart:1991/07/01 | |
| 20 | NEOGEO CD:1994/09/09 | |
| 21 | MAHJONG KYORETSUDEN Mahjong SNK MVS Cartridge:1990/04/26 | |
| 22 | NEOGEO ROM-cart:1991/07/01 | |
| 23 | NEOGEO CD:1994/09/09 | |
| 24 | MAGICIAN LORD Action ADK MVS Cartridge:1990/04/26 | |
| 25 | NEOGEO ROM-cart:1991/07/01 | |
| 26 | NEOGEO CD:1994/10/31 | |
| 27 | BASEBALL STARS PROFESSIONAL Sports SNK MVS Cartridge:1990/04/26 | |
| 28 | NEOGEO ROM-cart:1991/07/01 | |
| 29 | NEOGEO CD:1995/04/21 | |
| 30 | TOP PLAYER'S GOLF Sports SNK MVS Cartridge:1990/05/23 | |
| 31 | NEOGEO ROM-cart:1991/07/01 | |
| 32 | NEOGEO CD:1994/09/09 | |
| 33 | NINJA COMBAT Action ADK MVS Cartridge:1990/07/24 | |
| 34 | NEOGEO ROM-cart:1991/07/01 | |
| 35 | NEOGEO CD:1994/10/31 | |
| 36 | RIDING HERO 3D Racing SNK MVS Cartridge:1990/07/24 | |
| 37 | NEOGEO ROM-cart:1991/07/01 | |
| 38 | NEOGEO CD:1995/05/26 | |
| 39 | THE SUPER SPY 3D Action SNK MVS Cartridge:1990/10/08 | |
| 40 | NEOGEO ROM-cart:1991/07/01 | |
| 41 | NEOGEO CD:1994/09/09 | |
| 42 | CYBER-LIP Action SNK MVS Cartridge:1990/11/07 | |
| 43 | NEOGEO ROM-cart:1991/07/01 | |
| 44 | NEOGEO CD:1995/04/21 | |
| 45 | PUZZLED Puzzle SNK MVS Cartridge:1990/11/20 | |
| 46 | NEOGEO ROM-cart:1991/07/01 | |
| 47 | NEOGEO CD:1994/09/09 | |
| 48 | LEAGUE BOWLING Sports SNK MVS Cartridge:1990/12/10 | |
| 49 | NEOGEO ROM-cart:1991/07/01 | |
| 50 | NEOGEO CD:1994/09/09 | |
| 51 | GHOST PILOTS Shooter SNK MVS Cartridge:1991/01/25 | |
| 52 | NEOGEO ROM-cart:1991/07/01 | |
| 53 | NEOGEO CD:1995/03/17 | |
| 54 | SENGOKU Action SNK MVS Cartridge:1991/02/12 | |
| 55 | NEOGEO ROM-cart:1991/07/01 | |
| 56 | NEOGEO CD:1995/03/17 | |
| 57 | KING OF THE MONSTERS Fighting SNK MVS Cartridge:1991/02/25 | |
| 58 | NEOGEO ROM-cart:1991/07/01 | |
| 59 | BLUE'S JOURNEY Action ADK MVS Cartridge:1991/03/14 | |
| 60 | NEOGEO ROM-cart:1991/07/01 | |
| 61 | NEOGEO CD:1994/10/31 | |
| 62 | ALPHA MISSION II Shooter SNK MVS Cartridge:1991/03/25 | |
| 63 | NEOGEO ROM-cart:1991/07/01 | |
| 64 | NEOGEO CD:1994/09/09 | |
| 65 | BURNING FIGHT Action SNK MVS Cartridge:1991/05/20 | |
| 66 | NEOGEO ROM-cart:1991/08/09 | |
| 67 | NEOGEO CD:1994/09/09 | |
| 68 | MINNASAN NO OKAGESAMA DESU Table Monolith MVS Cartridge:1991/07/25 | |
| 69 | NEOGEO ROM-cart:1991/07/21 | |
| 70 | CROSSED SWORDS Action ADK MVS Cartridge:1991/07/25 | |
| 71 | NEOGEO ROM-cart:1991/10/01 | |
| 72 | NEOGEO CD:1994/10/31 | |
| 73 | LEGEND OF SUCCESS JOE Action Wave MVS Cartridge:1991/07 | |
| 74 | NEOGEO ROM-cart:1991/08/30 | |
| 75 | QUIZ DAISUSA SEN: THE LAST COUNT DOWN Quiz SNK MVS Cartridge:1991/07 | |
| 76 | NEOGEO ROM-cart:1991/08/30 | |
| 77 | SUPER BASEBALL 2020 Sports SNK MVS Cartridge:1991/09/20 | |
| 78 | NEOGEO ROM-cart:1991/10/25 | |
| 79 | NEOGEO CD:1995/02/25 | |
| 80 | ROBO ARMY Action SNK MVS Cartridge:1991/10/30 | |
| 81 | NEOGEO ROM-cart:1991/12/20 | |
| 82 | NEOGEO CD:1995/04/21 | |
| 83 | THRASH RALLY Racing ADK MVS Cartridge:1991/11/08 | |
| 84 | NEOGEO ROM-cart:1991/12/20 | |
| 85 | NEOGEO CD:1994/10/31 | |
| 86 | EIGHT MAN Action SNK NEOGEO ROM-cart:1991/11/20 | |
| 87 | FATAL FURY Fighting SNK MVS Cartridge:1991/11/25 | |
| 88 | NEOGEO ROM-cart:1991/12/20 | |
| 89 | NEOGEO CD:1994/09/09 | |
| 90 | BAKATONO-SAMA MAHJONG MAN'YUKI Mahjong Monolith MVS Cartridge:1991/11 | |
| 91 | NEOGEO ROM-cart:1991/12/13 | |
| 92 | THRASH RALLY Racing ADK NEOGEO ROM-cart:1991/12/20 | |
| 93 | FOOTBALL FRENZY Sports SNK MVS Cartridge:1992/01/31 | |
| 94 | NEOGEO ROM-cart:1992/02/21 | |
| 95 | NEOGEO CD:1994/09/09 | |
| 96 | SOCCER BRAWL Sports SNK MVS Cartridge:1992/02/14 | |
| 97 | NEOGEO ROM-cart:1992/03/13 | |
| 98 | NEOGEO CD:1995/03/31 | |
| 99 | MUTATION NATION Action SNK MVS Cartridge:1992/03/16 | |
| 100 | NEOGEO ROM-cart:1992/04/17 | |
| 101 | NEOGEO CD:1995/02/25 | |
| 102 | LAST RESORT Shooter SNK MVS Cartridge:1992/03/23 | |
| 103 | NEOGEO ROM-cart:1992/04/24 | |
| 104 | NEOGEO CD:1994/09/09 | |
| 105 | QUIZ MEITANTEI NEO & GEO: QUIZ DAISOUSASEN PART 2 Quiz SNK MVS Cartridge:1992/03 | |
| 106 | NEOGEO ROM-cart:1991/04/24 | |
| 107 | BASEBALL STARS 2 Sports SNK MVS Cartridge:1992/04/15 | |
| 108 | NEOGEO ROM-cart:1992/04/28 | |
| 109 | NEOGEO CD:1994/09/09 | |
| 110 | NINJA COMMANDO Shooter ADK MVS Cartridge:1992/04/30 | |
| 111 | NEOGEO ROM-cart:1992/05/29 | |
| 112 | NEOGEO CD:1994/10/31 | |
| 113 | KING OF THE MONSTERS 2 Fighting SNK MVS Cartridge:1992/05/25 | |
| 114 | NEOGEO ROM-cart:1992/06/19 | |
| 115 | NEOGEO CD:1994/09/09 | |
| 116 | ANDRO DUNOS Shooter Visco MVS Cartridge:1992/06/15 | |
| 117 | NEOGEO ROM-cart:1992/07/17 | |
| 118 | WORLD HEROES Fighting ADK MVS Cartridge:1992/07/28 | |
| 119 | NEOGEO ROM-cart:1992/09/11 | |
| 120 | NEOGEO CD:1995/03/17 | |
| 121 | ART OF FIGHTING Fighting SNK MVS Cartridge:1992/09/24 | |
| 122 | NEOGEO ROM-cart:1992/12/11 | |
| 123 | NEOGEO CD:1994/09/09 | |
| 124 | VIEWPOINT Shooter Sammy MVS Cartridge:1992/11/20 | |
| 125 | NEOGEO ROM-cart:1992/12/11 | |
| 126 | NEOGEO CD:1995/02/25 | |
| 127 | FATAL FURY 2 Fighting SNK MVS Cartridge:1992/12/10 | |
| 128 | NEOGEO ROM-cart:1993/03/05 | |
| 129 | NEOGEO CD:1994/09/09 | |
| 130 | SUPER SIDEKICKS Sports SNK MVS Cartridge:1992/12/14 | |
| 131 | NEOGEO ROM-cart:1993/02/19 | |
| 132 | NEOGEO CD:1995/03/31 | |
| 133 | SENGOKU 2 Action SNK MVS Cartridge:1993/02/18 | |
| 134 | NEOGEO ROM-cart:1993/04/09 | |
| 135 | NEOGEO CD:1995/03/17 | |
| 136 | 3 COUNT BOUT Fighting SNK MVS Cartridge:1993/03/25 | |
| 137 | NEOGEO ROM-cart:1993/04/23 | |
| 138 | NEOGEO CD:1995/04/21 | |
| 139 | WORLD HEROES 2 Fighting ADK MVS Cartridge:1993/04/26 | |
| 140 | NEOGEO ROM-cart:1993/06/04 | |
| 141 | NEOGEO CD:1995/04/14 | |
| 142 | SAMURAI SHODOWN Fighting SNK MVS Cartridge:1993/07/07 | |
| 143 | NEOGEO ROM-cart:1993/08/11 | |
| 144 | NEOGEO CD:1994/09/09 | |
| 145 | FATAL FURY SPECIAL Fighting SNK MVS Cartridge:1993/09/16 | |
| 146 | NEOGEO ROM-cart:1993/12/22 | |
| 147 | NEOGEO CD:1994/09/09 | |
| 148 | SPINMASTER Sideview Action Data East MVS Cartridge:1993/12/16 | |
| 149 | NEOGEO ROM-cart:1994/02/18 | |
| 150 | ART OF FIGHTING 2 Fighting SNK MVS Cartridge:1994/02/03 | |
| 151 | NEOGEO ROM-cart:1994/03/11 | |
| 152 | NEOGEO CD:1994/09/09 | |
| 153 | WINDJAMMERS Sports Data East MVS Cartridge:1994/02/17 | |
| 154 | NEOGEO ROM-cart:1994/04/08 | |
| 155 | NEOGEO CD:1995/01/20 | |
| 156 | KARNOV'S REVENGE Fighting Data East MVS Cartridge:1994/03/17 | |
| 157 | NEOGEO ROM-cart:1994/04/28 | |
| 158 | NEOGEO CD:1994/12/22 | |
| 159 | SUPER SIDEKICKS 2 Sports SNK MVS Cartridge:1994/04/19 | |
| 160 | NEOGEO ROM-cart:1994/05/27 | |
| 161 | NEOGEO CD:1994/09/09 | |
| 162 | WORLD HEROES 2 JET Fighting ADK MVS Cartridge:1994/04/26 | |
| 163 | NEOGEO ROM-cart:1994/06/10 | |
| 164 | NEOGEO CD:1994/11/11 | |
| 165 | TOP HUNTER Action SNK MVS Cartridge:1994/05/18 | |
| 166 | NEOGEO ROM-cart:1994/06/24 | |
| 167 | NEOGEO CD:1994/09/29 | |
| 168 | GURURIN Puzzle Face MVS Cartridge:1994/05/25 | |
| 169 | FIGHT FEVER Fighting VICCOM MVS Cartridge:1994/06/28 | |
| 170 | JANSHIN DENSETSU: QUEST OF JONGMASTER Mahjong Aicom MVS Cartridge:1994/06/29 | |
| 171 | NEOGEO CD:1995/03/31 | |
| 172 | AERO FIGHTERS 2 Topview Shooter Video System MVS Cartridge:1994/07/18 | |
| 173 | NEOGEO ROM-cart:1994/08/26 | |
| 174 | NEOGEO CD:1994/09/29 | |
| 175 | AGGRESSORS OF DARK KOMBAT Fighting ADK MVS Cartridge:1994/07/26 | |
| 176 | NEOGEO ROM-cart:1994/08/26 | |
| 177 | NEOGEO CD:1995/01/13 | |
| 178 | THE KING OF FIGHTERS '94 Fighting SNK MVS Cartridge:1994/08/25 | |
| 179 | NEOGEO ROM-cart:1994/10/01 | |
| 180 | NEOGEO CD:1994/11/02 | |
| 181 | ZED BLADE Shooter NMK MVS Cartridge:1994/09/13 | |
| 182 | POWER SPIKES II Sports Video System MVS Cartridge:1994/10/19 | |
| 183 | NEOGEO CD:1995/03/18 | |
| 184 | SAMURAI SHODOWN II Fighting SNK MVS Cartridge:1994/10/28 | |
| 185 | NEOGEO ROM-cart:1994/12/02 | |
| 186 | NEOGEO CD:1994/12/15 | |
| 187 | STREET HOOP Sports Data East MVS Cartridge:1994/12/08 | |
| 188 | NEOGEO ROM-cart:1994/12/09 | |
| 189 | NEOGEO CD:1995/01/20 | |
| 190 | PUZZLE BOBBLE Puzzle TAITO MVS Cartridge:1994/12/21 | |
| 191 | NEOGEO CD:1995/05/02 | |
| 192 | SUPER VOLLEY '94 Sports TAITO MVS Cartridge:1994 | |
| 193 | BOMBERMAN: PANIC BOMBER Puzzle Eighting MVS Cartridge:1995/01/18 | |
| 194 | GALAXY FIGHT: UNIVERSAL WARRIORS Fighting Sunsoft MVS Cartridge:1995/01/24 | |
| 195 | NEOGEO ROM-cart:1995/02/25 | |
| 196 | NEOGEO CD:1995/04/21 | |
| 197 | QUIZ KING OF FIGHTERS Quiz Saurus MVS Cartridge:1995/02/01 | |
| 198 | NEOGEO ROM-cart:1995/03/10 | |
| 199 | NEOGEO CD:1995/04/07 | |
| 200 | DOUBLE DRAGON Fighting Technos MVS Cartridge:1995/03/03 | |
| 201 | NEOGEO ROM-cart:1995/03/31 | |
| 202 | NEOGEO CD:1995/06/02 | |
| 203 | SUPER SIDEKICKS 3 Sports SNK MVS Cartridge:1995/03/07 | |
| 204 | NEOGEO ROM-cart:1995/04/07 | |
| 205 | NEOGEO CD:1995/06/23 | |
| 206 | FATAL FURY 3 Fighting SNK MVS Cartridge:1995/03/27 | |
| 207 | NEOGEO ROM-cart:1995/04/21 | |
| 208 | NEOGEO CD:1995/04/28 | |
| 209 | SAVAGE REIGN Fighting SNK MVS Cartridge:1995/04/25 | |
| 210 | NEOGEO ROM-cart:1995/03/10 | |
| 211 | NEOGEO CD:1995/06/16 | |
| 212 | CROSSED SWORDS II Action ADK NEOGEO CD:1995/05/02 | |
| 213 | WORLD HEROES PERFECT Fighting ADK MVS Cartridge:1995/05/25 | |
| 214 | NEOGEO ROM-cart:1995/06/30 | |
| 215 | NEOGEO CD:1995/07/21 | |
| 216 | FAR EAST OF EDEN: KABUKI KLASH Fighting Hudson Soft MVS Cartridge:1995/06/20 | |
| 217 | NEOGEO ROM-cart:1995/07/28 | |
| 218 | NEOGEO CD:1995/11/24 | |
| 219 | THE KING OF FIGHTERS '95 Fighting SNK MVS Cartridge:1995/07/25 | |
| 220 | NEOGEO ROM-cart:1995/09/01 | |
| 221 | NEOGEO CD:1995/09/29 | |
| 222 | IDOL MAHJONG FINAL ROMANCE 2 Mahjong Video System NEOGEO CD:1995/08/25 | |
| 223 | PULSTAR Sidevi. Shooter Aicom MVS Cartridge:1995/08/28 | |
| 224 | NEOGEO ROM-cart:1995/09/29 | |
| 225 | NEOGEO CD:1995/10/27 | |
| 226 | VOLTAGE FIGHTER GOWCAIZER Fighting Technos MVS Cartridge:1995/09/18 | |
| 227 | NEOGEO ROM-cart:1995/10/20 | |
| 228 | NEOGEO CD:1995/11/24 | |
| 229 | STAKES WINNER Action Saurus MVS Cartridge:1995/09/27 | |
| 230 | NEOGEO ROM-cart:1995/10/27 | |
| 231 | NEOGEO CD:1996/03/22 | |
| 232 | SHOGI NO TATSUJIN - MASTER OF SYOUGI Japanese chess ADK MVS Cartridge:1995/09/28 | |
| 233 | NEOGEO ROM-cart:1995/10/13 | |
| 234 | NEOGEO CD:1995/10/20 | |
| 235 | AERO FIGHTERS 3 Topview Action Video System MVS Cartridge:1995/10/12 | |
| 236 | NEOGEO ROM-cart:1995/11/17 | |
| 237 | NEOGEO CD:1995/12/08 | |
| 238 | ADK WORLD Variety ADK NEOGEO CD:1995/11/10 | |
| 239 | SAMURAI SHODOWN III Fighting SNK MVS Cartridge:1995/11/15 | |
| 240 | NEOGEO ROM-cart:1995/12/01 | |
| 241 | NEOGEO CD:1995/12/29 | |
| 242 | CHIBI MARUKO-CHAN DELUXE QUIZ Variety Takara MVS Cartridge:1995/11/27 | |
| 243 | NEOGEO ROM-cart:1996/01/26 | |
| 244 | PUZZLE DE PON! Puzzle Visco MVS Cartridge:1995/11/28 | |
| 245 | REAL BOUT FATAL FURY Fighting SNK MVS Cartridge:1995/12/21 | |
| 246 | NEOGEO ROM-cart:1996/01/26 | |
| 247 | NEOGEO CD:1996/02/23 | |
| 248 | NEO-GEO CD SPECIAL Variety SNK NEOGEO CD:1995/12/22 | |
| 249 | NEO TURF MASTERS Sports Nazca MVS Cartridge:1996/01/29 | |
| 250 | NEOGEO ROM-cart:1996/03/01 | |
| 251 | NEOGEO CD:1996/05/03 | |
| 252 | ART OF FIGHTING 3 Fighting SNK MVS Cartridge:1996/03/12 | |
| 253 | NEOGEO ROM-cart:1996/04/26 | |
| 254 | NEOGEO CD:1996/06/14 | |
| 255 | MAGICAL DROP II Puzzle Data East MVS Cartridge:1996/03/21 | |
| 256 | NEOGEO ROM-cart:1996/04/19 | |
| 257 | NEOGEO CD:1996/05/24 | |
| 258 | OSHIDASHI JIN TRICK Puzzle ADK NEOGEO CD:1996/03/22 | |
| 259 | NEO DRIFT OUT Racing Visco MVS Cartridge:1996/03/28 | |
| 260 | NEOGEO CD:1996/07/26 | |
| 261 | METAL SLUG Action Nazca MVS Cartridge:1996/04/19 | |
| 262 | NEOGEO ROM-cart:1996/05/24 | |
| 263 | NEOGEO CD:1996/07/05 | |
| 264 | OVER TOP Racing ADK MVS Cartridge:1996/04/26 | |
| 265 | NEOGEO ROM-cart:1996/06/07 | |
| 266 | NEOGEO CD:1996/07/26 | |
| 267 | NINJA MASTER'S Fighting ADK MVS Cartridge:1996/05/27 | |
| 268 | NEOGEO ROM-cart:1996/06/28 | |
| 269 | NEOGEO CD:1996/09/27 | |
| 270 | RAGNAGARD Fighting Saurus MVS Cartridge:1996/06/13 | |
| 271 | NEOGEO ROM-cart:1996/07/26 | |
| 272 | NEOGEO CD:1996/08/23 | |
| 273 | FUTSAL Sports Saurus NEOGEO CD:1996/07/19 | |
| 274 | THE KING OF FIGHTERS '96 Fighting SNK MVS Cartridge:1996/07/30 | |
| 275 | NEOGEO ROM-cart:1996/09/27 | |
| 276 | NEOGEO CD:1996/10/25 | |
| 277 | KIZUNA ENCOUNTER SUPER TAG BATTLE Fighting SNK MVS Cartridge:1996/09/20 | |
| 278 | NEOGEO ROM-cart:1996/11/08 | |
| 279 | CHOUTETSU BURIKINGA Shooter Saurus NEOGEO CD:1996/09/20 | |
| 280 | STAKES WINNER 2 Real Jockey Act Saurus MVS Cartridge:1996/09/24 | |
| 281 | NEOGEO ROM-cart:1996/12/13 | |
| 282 | THE ULTIMATE 11 Sports SNK MVS Cartridge:1996/10/16 | |
| 283 | NEOGEO ROM-cart:1996/12/20 | |
| 284 | SAMURAI SHODOWN IV Fighting SNK MVS Cartridge:1996/10/25 | |
| 285 | NEOGEO ROM-cart:1996/11/29 | |
| 286 | NEOGEO CD:1996/12/27 | |
| 287 | WAKU WAKU 7 Fighting Sunsoft MVS Cartridge:1996/11/21 | |
| 288 | NEOGEO ROM-cart:1996/12/27 | |
| 289 | TWINKLE STAR SPRITES Shooter ADK MVS Cartridge:1996/11/25 | |
| 290 | NEOGEO ROM-cart:1997/01/31 | |
| 291 | NEOGEO CD:1997/02/21 | |
| 292 | BREAKERS Fighting Visco MVS Cartridge:1996/12/17 | |
| 293 | NEOGEO ROM-cart:1997/03/21 | |
| 294 | NEOGEO CD:1997/04/25 | |
| 295 | MONEY IDOL EXCHANGER Puzzle Face MVS Cartridge:1997/01/15 | |
| 296 | Real Bout FATAL FURY SPECIAL Fighting SNK MVS Cartridge:1997/01/28 | |
| 297 | NEOGEO ROM-cart:1997/02/28 | |
| 298 | NEOGEO CD:1997/03/03 | |
| 299 | THE KING OF FIGHTERS '96 NEOGEO COLLECTION Variety SNK NEOGEO CD:1997/02/14 | |
| 300 | MAGICAL DROP III Puzzle Data East MVS Cartridge:1997/02/25 | |
| 301 | NEOGEO ROM-cart:1997/04/25 | |
| 302 | NEO BOMBERMAN Action Hudson Soft MVS Cartridge:1997/05/01 | |
| 303 | NEO MR.DO! Action Visco MVS Cartridge:1997/06/26 | |
| 304 | SHINSETSU SAMURAI SHODOWN BUSHIDO RETSUDEN Role-playing SNK NEOGEO CD:1997/06/27 | |
| 305 | THE KING OF FIGHTERS '97 Fighting SNK MVS Cartridge:1997/07/28 | |
| 306 | NEOGEO ROM-cart:1997/09/25 | |
| 307 | NEOGEO CD:1997/10/30 | |
| 308 | UCCHAN NANCHAN NO HONO NO CHALLENGER ULTRA DENRYU IRAIRABOU Action Saurus MVS Cartridge:1997/08/25 | |
| 309 | SHOCK TROOPERS Shooter Saurus MVS Cartridge:1997/11/11 | |
| 310 | THE LAST BLADE Fighting SNK MVS Cartridge:1997/12/05 | |
| 311 | NEOGEO ROM-cart:1998/01/29 | |
| 312 | NEOGEO CD:1998/03/26 | |
| 313 | BLAZING STAR Shooter Yumekobo MVS Cartridge:1998/01/19 | |
| 314 | NEOGEO ROM-cart:1998/02/26 | |
| 315 | METAL SLUG 2 Action SNK MVS Cartridge:1998/02/23 | |
| 316 | NEOGEO ROM-cart:1998/04/02 | |
| 317 | NEOGEO CD:1998/06/25 | |
| 318 | REAL BOUT FATAL FURY 2 Fighting SNK MVS Cartridge:1998/03/20 | |
| 319 | NEOGEO ROM-cart:1998/04/29 | |
| 320 | NEOGEO CD:1998/07/23 | |
| 321 | NEOGEO CUP '98 Sports SNK MVS Cartridge:1998/05/28 | |
| 322 | NEOGEO ROM-cart:1998/07/30 | |
| 323 | BREAKERS REVENGE Fighting Visco MVS Cartridge:1998/07/03 | |
| 324 | NEOGEO ROM-cart: | |
| 325 | THE KING OF FIGHTERS '98 Fighting SNK MVS Cartridge:1998/07/23 | |
| 326 | NEOGEO ROM-cart:1998/09/23 | |
| 327 | NEOGEO CD:1998/12/23 | |
| 328 | SHOCK TROOPERS 2nd Squad Action Shooter Saurus MVS Cartridge:1998/11/06 | |
| 329 | NEOGEO ROM-cart:1999/06/24 | |
| 330 | THE LAST BLADE 2 Fighting SNK MVS Cartridge:1998/11/25 | |
| 331 | NEOGEO ROM-cart:1999/01/28 | |
| 332 | NEOGEO CD:1999/02/27 | |
| 333 | FLIP SHOT Action Visco MVS Cartridge:1998/12/08 | |
| 334 | METAL SLUG X Action SNK MVS Cartridge:1999/03/19 | |
| 335 | NEOGEO ROM-cart:1999/05/27 | |
| 336 | CAPTAIN TOMADAY Shooter Visco MVS Cartridge:1999/05/27 | |
| 337 | THE KING OF FIGHTERS '99 Fighting SNK MVS Cartridge:1999/07/22 | |
| 338 | NEOGEO ROM-cart:1999/09/23 | |
| 339 | NEOGEO CD:1999/12/02 | |
| 340 | PREHISTORIC ISLE 2 Shooter Yumekobo MVS Cartridge:1999/09/27 | |
| 341 | GAROU: MARK OF THE WOLVES Fighting SNK MVS Cartridge:1999/11/26 | |
| 342 | NEOGEO ROM-cart:2000/02/25 | |
| 343 | STRIKERS 1945 PLUS Shooter Psikyo MVS Cartridge:1999/12/24 | |
| 344 | METAL SLUG 3 Action Shooter SNK MVS Cartridge:2000/03/23 | |
| 345 | NEOGEO ROM-cart:2000/06/01 | |
| 346 | THE KING OF FIGHTERS 2000 Fighting SNK MVS Cartridge:2000/07/26 | |
| 347 | NEOGEO ROM-cart:2000/12/21 | |
| 348 | NIGHTMARE IN THE DARK Horror Action Gavaking MVS Cartridge:2001 | |
| 349 | ZUPAPA! Comical Action Video System MVS Cartridge:2001 | |
| 350 | SENGOKU 3 Action SNK PLAYMORE MVS Cartridge:2001/07/18 | |
| 351 | NEOGEO ROM-cart:2001/10/25 | |
| 352 | THE KING OF FIGHTERS 2001 Fighting SNK PLAYMORE MVS Cartridge:2001/11/15 | |
| 353 | NEOGEO ROM-cart:2002/03/14 | |
| 354 | METAL SLUG 4 Action Shooter SNK PLAYMORE MVS Cartridge:2002/03/27 | |
| 355 | NEOGEO ROM-cart:2002/06/13 | |
| 356 | RAGE OF THE DRAGONS Fighting Evoga MVS Cartridge:2002/06/06 | |
| 357 | NEOGEO ROM-cart:2002/09/26 | |
| 358 | THE KING OF FIGHTERS 2002 Fighting SNK PLAYMORE MVS Cartridge:2002/10/10 | |
| 359 | NEOGEO ROM-cart:2002/12/19 | |
| 360 | POWER INSTINCT MATRIMELEE Fighting ATLUS/NOISE FA. MVS Cartridge:2003/03/20 | |
| 361 | NEOGEO ROM-cart:2003/05/29 | |
| 362 | SNK VS. CAPCOM: SVC CHAOS Fighting SNK PLAYMORE MV-0:2003/07/24 | |
| 363 | NEOGEO ROM-cart:2003/11/13 | |
| 364 | SAMURAI SHODOWN V Fighting SNK P/Yuki Ent MVS Cartridge:2003/10/10 | |
| 365 | NEOGEO ROM-cart:2003/12/11 | |
| 366 | METAL SLUG 5 Action Shooter SNK PLAYMORE MV-0:2003/11/14 | |
| 367 | NEOGEO ROM-cart:2004/02/19 | |
| 368 | THE KING OF FIGHTERS 2003 Fighting SNK PLAYMORE MV-0:2003/12/12 | |
| 369 | NEOGEO ROM-cart:2004/03/18 | |
| 370 | POCHI & NYAA Puzzle Aiky MVS Cartridge:2003/12/24 | |
| 371 | SAMURAI SHODOWN V SPECIAL Fighting SNK P/Yuki Ent MVS Cartridge:2004/04/22 | |
| 372 | NEOGEO ROM-cart:2004/07/15 | |
| 14 | 373 | |
| 15 | STANDARD_IN1 | |
| 16 | 374 | |
| 17 | STANDARD_IN2 | |
| 375 | Neo Geo game PCB infos: | |
| 376 | ======================= | |
| 18 | 377 | |
| 19 | ||
| 378 | The Neo Geo games for AES (home) and MVS (arcade) systems are cartridge based. | |
| 20 | 379 | |
| 21 | STANDARD_IN4 | |
| 380 | Each cartridge consists of two PCBs: CHA and PROG. | |
| 381 | .CHA PCB contains gfx data ('C' - rom), text layer data ('S' - rom) and sound driver ('M' - rom). | |
| 382 | .PROG PCB contains sample data ('V' - rom) and program code ('P' - rom). | |
| 22 | 383 | |
| 23 | /* the rom banking is tied directly to the dipswitch?, or is there a bank write somewhere? */ | |
| 24 | PORT_START("HARDDIP") | |
| 25 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Region ) ) PORT_DIPLOCATION("HARDDIP:3") | |
| 26 | PORT_DIPSETTING( 0x00, DEF_STR( Asia ) ) | |
| 27 | PORT_DIPSETTING( 0x01, DEF_STR( Japan ) ) | |
| 28 | INPUT_PORTS_END | |
| 384 | On most PCBs various custom/protection chips can also be found: | |
| 29 | 385 | |
| 386 | CHA: | |
| 387 | . NEO-273 | |
| 388 | . NEO-CMC | |
| 389 | . NEO-ZMC | |
| 390 | . NEO-ZMC2 | |
| 391 | . PRO-CT0 | |
| 392 | . SNK-9201 | |
| 30 | 393 | |
| 31 | static INPUT_PORTS_START( ms5pcb ) | |
| 32 | STANDARD_IN0 | |
| 394 | PROG: | |
| 395 | . 0103 (QFP144) | |
| 396 | . ALTERA (EPM7128SQC100-15) | |
| 397 | . NEO-COMA | |
| 398 | . NEO-PCM2 (SNK 1999) | |
| 399 | . NEO-PCM2 (PLAYMORE 2002) | |
| 400 | . NEO-PVC | |
| 401 | . NEO-SMA | |
| 402 | . PCM | |
| 403 | . PRO-CT0 | |
| 404 | . SNK-9201 | |
| 33 | 405 | |
| 34 | STANDARD_IN1 | |
| 35 | 406 | |
| 36 | STANDARD_IN2 | |
| 407 | Known PCBs: | |
| 408 | ============ | |
| 37 | 409 | |
| 38 | STANDARD_IN3 | |
| 410 | MVS CHA: | |
| 411 | -- SNK -- | |
| 412 | . NEO-MVS CHA-32 | |
| 413 | . NEO-MVS CHA-8M | |
| 414 | . NEO-MVS CHA42G | |
| 415 | . NEO-MVS CHA42G-1 | |
| 416 | . NEO-MVS CHA 42G-2 | |
| 417 | . NEO-MVS CHA 42G-3 | |
| 418 | . NEO-MVS CHA42G-3B | |
| 419 | . NEO-MVS CHA256 | |
| 420 | . NEO-MVS CHA256B | |
| 421 | . NEO-MVS PSTM CHA136 | |
| 422 | . NEO-MVS CHA512Y | |
| 423 | . NEO-MVS CHAFIO (1999.6.14) - used with NEO-CMC 90G06C7042 or NEO-CMC 90G06C7050 | |
| 424 | . MVS CHAFIO REV1.0 (KOF-2001) | |
| 425 | . NEO-MVS CHAFIO (SNK 2002) - MADE IN KOREA | |
| 426 | -- SNKPLAYMORE -- | |
| 427 | . NEO-MVS CHAFIO (2003.7.24) | |
| 39 | 428 | |
| 40 | STANDARD_IN4 | |
| 429 | MVS PROG: | |
| 430 | -- SNK -- | |
| 431 | . NEO-MVS PROG-NAM | |
| 432 | . NEO-MVS PROG-HERO | |
| 433 | . NEO-MVS PROG-EP | |
| 434 | . NEO-MVS PROG-8MB | |
| 435 | . NEO-MVS PROG8M42 | |
| 436 | . NEO-MVS PROG16 | |
| 437 | . NEO-MVS PROG42G | |
| 438 | . NEO-MVS PROG42G-COM | |
| 439 | . NEO-MVS PROG42G-1 | |
| 440 | . NEO-MVS PROG-G2 | |
| 441 | . NEO-MVS PROG 4096 | |
| 442 | . NEO-MVS PROG 4096 B | |
| 443 | . NEO-MVS PROGGSC | |
| 444 | . NEO-MVS PROGSM | |
| 445 | . NEO-MVS PROGSS3 | |
| 446 | . NEO-MVS PROGTOP | |
| 447 | . NEO-MVS PROGSF1 (1998.6.17) | |
| 448 | . NEO-MVS PROGEOP (1999.2.2) | |
| 449 | . NEO-MVS PROGLBA (1999.4.12) - LBA-SUB (2000.2.24) | |
| 450 | . NEO-MVS PROGBK1 | |
| 451 | . NEO-MVS PROGBK2 (2000.3.21) | |
| 452 | . MVS PROGBK2 REV1.0 (KOF-2001) | |
| 453 | . NEO-MVS PROGBK2 (SNK 2002) - MADE IN KOREA | |
| 454 | -- SNKPLAYMORE -- | |
| 455 | . NEO-MVS PROGBK2R (2003.8.26) - NEO-HYCS (2003.9.29) | |
| 456 | . NEO-MVS PROGBK3R (2003.9.2) - NEO-HYCS (2003.9.29) | |
| 457 | . NEO-MVS PROGBK3S (2003.10.1) | |
| 458 | . NEO-MVS PROGBK2S (2003.10.18) | |
| 41 | 459 | |
| 42 | /* the rom banking is tied directly to the dipswitch?, or is there a bank write somewhere? */ | |
| 43 | PORT_START("HARDDIP") | |
| 44 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Region ) ) PORT_DIPLOCATION("HARDDIP:3") | |
| 45 | PORT_DIPSETTING( 0x00, DEF_STR( Asia ) ) | |
| 46 | PORT_DIPSETTING( 0x01, DEF_STR( Japan ) ) | |
| 47 | INPUT_PORTS_END | |
| 48 | 460 | |
| 461 | AES CHA: | |
| 462 | -- SNK -- | |
| 463 | . NEO-AEG CHA-32 | |
| 464 | . NEO-AEG CHA-8M | |
| 465 | . NEO-AEG CHA42G | |
| 466 | . NEO-AEG CHA42G-1 | |
| 467 | . NEO-AEG CHA42G-2B | |
| 468 | . NEO-AEG CHA42G-3 | |
| 469 | . NEO-AEG CHA42G-4 | |
| 470 | . NEO-AEG CHA256 | |
| 471 | . NEO-AEG CHA256[B] | |
| 472 | . NEO-AEG CHA256RY | |
| 473 | . NEO-AEG CHA512Y | |
| 474 | . NEO-AEG CHAFIO (1999.8.10) - used with NEO-CMC 90G06C7042 or NEO-CMC 90G06C7050 | |
| 475 | -- SNKPLAYMORE -- | |
| 476 | . NEO-AEG CHAFIO (2003.7.24) - used only with NEO-CMC 90G06C7050 | |
| 49 | 477 | |
| 50 | static INPUT_PORTS_START( kog ) | |
| 51 | STANDARD_IN0 | |
| 478 | AES PROG: | |
| 479 | -- SNK -- | |
| 480 | . NEO-AEG PROG-NAM | |
| 481 | . NEO-AEG PROG-HERO | |
| 482 | . NEO-AEG PROG-4A | |
| 483 | . NEO-AEG PROG-4B | |
| 484 | . NEO-AEG PROG 8M42 | |
| 485 | . NEO-AEG PROG B | |
| 486 | . NEO-AEG PROG16 | |
| 487 | . NEO-AEG PROG42G | |
| 488 | . NEO-AEG PROG42G-COM | |
| 489 | . NEO-AEG PROG42G-1 | |
| 490 | . NEO-AEG PROG-G2 | |
| 491 | . NEO-AEG PROG4096 B | |
| 492 | . NEO-AEG PROGGS | |
| 493 | . NEO-AEG PROGTOP2 | |
| 494 | . NEO-AEG PROGLBA (1999.7.6) | |
| 495 | . NEO-AEG PROGRK | |
| 496 | . NEO-AEG PROGRKB | |
| 497 | . NEO-AEG PROGBK1Y | |
| 498 | . NEO-AEG PROGBK1F | |
| 499 | -- PLAYMORE -- | |
| 500 | . NEO-AEG PROGBK2 (2002.4.1) - used with NEO-PCM2 (1999 SNK) or NEO-PCM2 (2002 PLAYMORE) | |
| 501 | -- SNKPLAYMORE -- | |
| 502 | . NEO-AEG PROGBK3R (2003.8.29) - NEO-HYCS (2003.9.29) | |
| 503 | . NEO-AEG PROGBK3S (2003.10.6) | |
| 504 | . NEO-AEG PROGBK2S (2003.10.16) | |
| 52 | 505 | |
| 53 | STANDARD_IN1 | |
| 54 | 506 | |
| 55 | STANDARD_IN2 | |
| 507 | Cartridge colours: | |
| 508 | ================== | |
| 56 | 509 | |
| 57 | ||
| 510 | MVS cartridges were produced in different colours. | |
| 58 | 511 | |
| 59 | STANDARD_IN4 | |
| 512 | Known cartridge colours: | |
| 513 | . Black | |
| 514 | . Blue | |
| 515 | . Green | |
| 516 | . Grey | |
| 517 | . Red | |
| 518 | . Transparent | |
| 519 | . Transparent Blue | |
| 520 | . Transparent Green | |
| 521 | . White | |
| 522 | . Yellow | |
| 60 | 523 | |
| 61 | /* a jumper on the pcb overlays a ROM address, very strange but that's how it works. */ | |
| 62 | PORT_START("JUMPER") | |
| 63 | PORT_DIPNAME( 0x0001, 0x0001, "Title Language" ) PORT_DIPLOCATION("CART-JUMPER:1") | |
| 64 | PORT_DIPSETTING( 0x0001, DEF_STR( English ) ) | |
| 65 | PORT_DIPSETTING( 0x0000, "Non-English" ) | |
| 66 | PORT_BIT( 0x00fe, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 67 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 68 | INPUT_PORTS_END | |
| 524 | The above listed only covers SNK / PLAYMORE / SNKPLAYMORE PCBs. There also exists a | |
| 525 | wide range of 'bootleg' PCBs. | |
| 69 | 526 | |
| 70 | 527 | |
| 71 | static INPUT_PORTS_START( mjneogeo ) | |
| 72 | PORT_START("IN0") | |
| 73 | PORT_DIPNAME( 0x0001, 0x0001, "Test Switch" ) PORT_DIPLOCATION("SW:1") | |
| 74 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 75 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 76 | PORT_DIPNAME( 0x0002, 0x0002, "Coin Chutes?" ) PORT_DIPLOCATION("SW:2") | |
| 77 | PORT_DIPSETTING( 0x0000, "1?" ) | |
| 78 | PORT_DIPSETTING( 0x0002, "2?" ) | |
| 79 | PORT_DIPNAME( 0x0004, 0x0000, "Mahjong Control Panel" ) PORT_DIPLOCATION("SW:3") | |
| 80 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 81 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 82 | PORT_DIPNAME( 0x0018, 0x0018, "COMM Setting (Cabinet No.)" ) PORT_DIPLOCATION("SW:4,5") | |
| 83 | PORT_DIPSETTING( 0x0018, "1" ) | |
| 84 | PORT_DIPSETTING( 0x0008, "2" ) | |
| 85 | PORT_DIPSETTING( 0x0010, "3" ) | |
| 86 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 87 | PORT_DIPNAME( 0x0020, 0x0020, "COMM Setting (Link Enable)" ) PORT_DIPLOCATION("SW:6") | |
| 88 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 89 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 90 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW:7") | |
| 91 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 92 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 93 | PORT_DIPNAME( 0x0080, 0x0080, "Freeze" ) PORT_DIPLOCATION("SW:8") | |
| 94 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 95 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 96 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(mahjong_controller_r, NULL) | |
| 528 | Neo Geo game PCB infos by Johnboy | |
| 97 | 529 | |
| 98 | STANDARD_IN1 | |
| 99 | 530 | |
| 100 | ||
| 531 | ****************************************************************************/ | |
| 101 | 532 | |
| 102 | | |
| 533 | /* Neo Geo bios */ | |
| 103 | 534 | |
| 104 | STANDARD_IN4 | |
| 535 | /* | |
| 536 | These are the known Bios Roms, Set options.bios to the one you want. | |
| 105 | 537 | |
| 106 | PORT_START("MAHJONG1") | |
| 107 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_A ) | |
| 108 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_B ) | |
| 109 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_C ) | |
| 110 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_D ) | |
| 111 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_E ) | |
| 112 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_MAHJONG_F ) | |
| 113 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_MAHJONG_G ) | |
| 114 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 115 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 538 | The Universe bios roms are supported because they're now used on enough PCBs | |
| 539 | to be considered 'in active arcade use' rather than just homebrew hacks. | |
| 540 | Some may be missing, there have been multiple CRCs reported for the same | |
| 541 | revision in some cases (the Universe bios has an option for entering / displaying | |
| 542 | a serial number; these should be noted as such if they're added). | |
| 116 | 543 | |
| 117 | PORT_START("MAHJONG2") | |
| 118 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_H ) | |
| 119 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_I ) | |
| 120 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_J ) | |
| 121 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_K ) | |
| 122 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_L ) | |
| 123 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_MAHJONG_M ) | |
| 124 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_MAHJONG_N ) | |
| 125 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 126 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 544 | The 'japan-hotel' BIOS is a dump of an MVS which could be found in some japanese | |
| 545 | hotels. it is a custom MVS mobo which uses MVS carts but it hasn't jamma | |
| 546 | connector and it's similar to a console with a coin mechanism, so it's a sort | |
| 547 | of little coin op console installed in hotels. | |
| 127 | 548 | |
| 128 | PORT_START("MAHJONG3") | |
| 129 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) | |
| 130 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) | |
| 131 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) | |
| 132 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) | |
| 133 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 134 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 135 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 136 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 137 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 549 | The current Neo Geo MVS system set (SFIX/SM1/000-LO) used is from a NEO-MVH MV1FS board. | |
| 550 | Other boards (MV1xx / MV2x / MV4x /MV6) other system sets? | |
| 138 | 551 | |
| 139 | PORT_START("MAHJONG4") | |
| 140 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) | |
| 141 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) | |
| 142 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) | |
| 143 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) | |
| 144 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) | |
| 145 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 146 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 147 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 148 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 149 | INPUT_PORTS_END | |
| 552 | Zoom ROM (LO) 128K TC531000CP 1x 128Kx8 Zoom look-up table ROM | |
| 553 | Fix ROM (SFIX) 128K 27C1000 1x 128Kx8 Text layer graphics ROM | |
| 554 | Sound ROM (SM1) 128K 27C1000/23C1000 1x 128Kx8 Z80 program ROM | |
| 150 | 555 | |
| 556 | */ | |
| 151 | 557 | |
| 152 | static INPUT_PORTS_START( irrmaze ) | |
| 153 | PORT_START("IN0") | |
| 154 | STANDARD_DIPS | |
| 155 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(multiplexed_controller_r, (void *)0) | |
| 156 | ||
| 157 | PORT_START("IN1") | |
| 158 | PORT_BIT( 0x0fff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 159 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 160 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 161 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 162 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 163 | ||
| 164 | PORT_START("IN2") | |
| 165 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 166 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 167 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 168 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START2 ) | |
| 169 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 170 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 171 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 172 | ||
| 173 | STANDARD_IN3 | |
| 174 | ||
| 175 | PORT_START("IN4") | |
| 176 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 177 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 178 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 179 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 180 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 181 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 182 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* this bit is used.. */ | |
| 183 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Enter BIOS") PORT_CODE(KEYCODE_F2) | |
| 184 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 185 | ||
| 186 | PORT_START("IN0-0") | |
| 187 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(10) PORT_KEYDELTA(20) PORT_REVERSE | |
| 188 | ||
| 189 | PORT_START("IN0-1") | |
| 190 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(10) PORT_KEYDELTA(20) PORT_REVERSE | |
| 191 | INPUT_PORTS_END | |
| 192 | ||
| 193 | ||
| 194 | static INPUT_PORTS_START( popbounc ) | |
| 195 | PORT_START("IN0") | |
| 196 | STANDARD_DIPS | |
| 197 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(multiplexed_controller_r, (void *)0) | |
| 198 | ||
| 199 | PORT_START("IN1") | |
| 200 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 201 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(multiplexed_controller_r, (void *)1) | |
| 202 | ||
| 203 | STANDARD_IN2 | |
| 204 | ||
| 205 | STANDARD_IN3 | |
| 206 | ||
| 207 | STANDARD_IN4 | |
| 208 | ||
| 209 | /* Fake inputs read by CUSTOM_INPUT handlers */ | |
| 210 | PORT_START("IN0-0") | |
| 211 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(20) | |
| 212 | ||
| 213 | PORT_START("IN0-1") | |
| 214 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) | |
| 215 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) | |
| 216 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) | |
| 217 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) | |
| 218 | PORT_BIT( 0x90, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* note it needs it from 0x80 when using paddle */ | |
| 219 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 220 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 221 | ||
| 222 | PORT_START("IN1-0") | |
| 223 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(20) PORT_PLAYER(2) | |
| 224 | ||
| 225 | PORT_START("IN1-1") | |
| 226 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 227 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 228 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 229 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 230 | PORT_BIT( 0x90, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) /* note it needs it from 0x80 when using paddle */ | |
| 231 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 232 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 233 | INPUT_PORTS_END | |
| 234 | ||
| 235 | ||
| 236 | static INPUT_PORTS_START( vliner ) | |
| 237 | PORT_START("IN0") | |
| 238 | STANDARD_DIPS | |
| 239 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) | |
| 240 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) | |
| 241 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) | |
| 242 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) | |
| 243 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("View Payout Table/Big") | |
| 244 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Bet/Small") | |
| 245 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Stop/Double Up") | |
| 246 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Start/Collect") | |
| 247 | ||
| 248 | PORT_START("IN1") | |
| 249 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 250 | ||
| 251 | PORT_START("IN2") | |
| 252 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 253 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 254 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* this bit is used.. */ | |
| 255 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 256 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* this bit is used.. */ | |
| 257 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 258 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 259 | ||
| 260 | PORT_START("IN3") | |
| 261 | PORT_BIT( 0x003f, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 262 | PORT_BIT( 0x00c0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_calendar_status, NULL) | |
| 263 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_audio_result, NULL) | |
| 264 | ||
| 265 | STANDARD_IN4 | |
| 266 | ||
| 267 | PORT_START("IN5") | |
| 268 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 269 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 270 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 271 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 272 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Operator Menu") PORT_CODE(KEYCODE_F1) | |
| 273 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Clear Credit") | |
| 274 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 275 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hopper Out") | |
| 276 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 277 | ||
| 278 | /* not sure what any of these bits are */ | |
| 279 | PORT_START("IN6") | |
| 280 | PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 281 | PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 282 | INPUT_PORTS_END | |
| 283 | ||
| 284 | ||
| 285 | static INPUT_PORTS_START( jockeygp ) | |
| 286 | STANDARD_IN0 | |
| 287 | ||
| 288 | STANDARD_IN1 | |
| 289 | ||
| 290 | PORT_START("IN2") | |
| 291 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 292 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* game freezes with this bit enabled */ | |
| 293 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Next Game") PORT_CODE(KEYCODE_7) | |
| 294 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* game freezes with this bit enabled */ | |
| 295 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Previous Game") PORT_CODE(KEYCODE_8) | |
| 296 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 297 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 298 | ||
| 299 | STANDARD_IN3 | |
| 300 | ||
| 301 | STANDARD_IN4 | |
| 302 | INPUT_PORTS_END | |
| 303 | ||
| 304 | ||
| 305 | /* Neo-Geo bios */ | |
| 306 | ||
| 307 | /****************************************************************************** | |
| 308 | ||
| 309 | These are the known Bios Roms, Set options.bios to the one you want | |
| 310 | ||
| 311 | The Universe bios roms are supported because they're now used on enough PCBs | |
| 312 | to be considered 'in active arcade use' rather than just homebrew hacks. | |
| 313 | -- some may be missing, there have been multiple CRCs reported for the same | |
| 314 | revision in some cases (the Universe bios has an option for entering / displaying | |
| 315 | a serial number; these should be noted as such if they're added. | |
| 316 | ||
| 317 | The 'japan-hotel' BIOS is a dump of an MVS which could be found in some japanese | |
| 318 | hotels. it is a custom MVS mobo which uses MVS carts but it hasn't jamma | |
| 319 | connector and it's similar to a console with a coin mechanism, so it's a sort | |
| 320 | of little coin op console installed in hotels. | |
| 321 | ||
| 322 | *****************************************************************************/ | |
| 323 | ||
| 324 | 558 | #define ROM_LOAD16_WORD_SWAP_BIOS(bios,name,offset,length,hash) \ |
| 325 | 559 | ROMX_LOAD(name, offset, length, hash, ROM_GROUPWORD | ROM_REVERSE | ROM_BIOS(bios+1)) /* Note '+1' */ |
| 326 | 560 | |
| r8581 | r8582 | |
| 373 | 607 | // ROM_SYSTEM_BIOS(22, "jap-aes", "Japan AES" ) |
| 374 | 608 | // ROM_LOAD16_WORD_SWAP_BIOS(22, "neo-po.bin", 0x00000, 0x020000, CRC(16d0c132) SHA1(4e4a440cae46f3889d20234aebd7f8d5f522e22c) ) /* AES Console (Japan) Bios */ |
| 375 | 609 | |
| 376 | /* note you'll have to modify the last for lines of each block to use the extra bios roms, | |
| 377 | they're hacks / homebrew / console bios roms so MAME doesn't list them by default */ | |
| 610 | /* Note you'll have to modify the last for lines of each block to use the extra bios roms, | |
| 611 | they're hacks / homebrew / console bios roms so MAME doesn't list them by default. */ | |
| 378 | 612 | |
| 379 | ||
| 380 | /****************************************************************************** | |
| 381 | ||
| 382 | The current Neo-Geo MVS system set (SFIX/SM1/000-LO) used is from a NEO-MVH MV1FS board. | |
| 383 | Other boards (MV1xx / MV2x / MV4 /MV6) other system sets? | |
| 384 | ||
| 385 | Zoom ROM (LO) 128K TC531000CP 1x 128Kx8 Zoom look-up table ROM | |
| 386 | Fix ROM (SFIX) 128K 27C1000 1x 128Kx8 Text layer graphics ROM | |
| 387 | Sound ROM (SM1) 128K 27C1000/23C1000 1x 128Kx8 Z80 program ROM | |
| 388 | ||
| 389 | ******************************************************************************/ | |
| 390 | ||
| 391 | 613 | #define NEO_BIOS_AUDIO_64K(name, hash) \ |
| 392 | 614 | NEOGEO_BIOS \ |
| 393 | 615 | \ |
| r8581 | r8582 | |
| 494 | 716 | ROM_LOAD( "000-lo.lo", 0x00000, 0x20000, CRC(5a86cff2) SHA1(5992277debadeb64d1c1c64b0a92d9293eaf7e4a) ) |
| 495 | 717 | |
| 496 | 718 | |
| 497 | /* | |
| 719 | /****************************************************************************/ | |
| 498 | 720 | |
| 499 | /** | |
| 721 | /* Official sets */ | |
| 500 | 722 | |
| 501 | Neo-Geo game pcb infos: | |
| 502 | ======================= | |
| 723 | /* | |
| 724 | About supported sets: | |
| 503 | 725 | |
| 504 | The Neo-Geo games for AES (home) and MVS (arcade) systems are cartridge based. | |
| 726 | MVS carts (arcade) were released before the AES carts (home) | |
| 727 | The actual codepath taken depends entirely on the BIOS rom, not the roms in the cartridge, which (with | |
| 728 | a few exceptions) support both codepaths. | |
| 505 | 729 | |
| 506 | Each cartridge consists of two pcb's: CHA and PROG. | |
| 730 | The initial AES releases are therefore later revisions of the game, often with bug fixes over the | |
| 731 | initial MVS releases. It isn't uncommon for later production runs and bootlegs to use these newer sets, | |
| 732 | so all of them are supported in MAME. | |
| 507 | 733 | |
| 508 | CHA pcb contains gfx data ('C' - rom), text layer data ('S' - rom) and sound driver ('M' - rom). | |
| 509 | PROG pcb contains sample data ('V' - rom) and program code ('P' - rom). | |
| 734 | Likewise, because the MVS carts were released first (and were produced in higher numbers and generally | |
| 735 | have a lower cost) it's not uncommon for AES units to operate with converted MVS carts, so, with the | |
| 736 | exception of the sets that specifically lock out the AES mode* these sets are all equally suitable | |
| 737 | for MESS. | |
| 738 | * nitd, kof2001 (initial release has no AES code), and a number of the hacked bootlegs. | |
| 510 | 739 | |
| 511 | On most pcb's various custom/protection chips can also be found: | |
| 740 | The 'MVS ONLY RELEASE' tagged sets were not officially released for the AES (home) system. | |
| 741 | Information about this can be found at 'The NeoGeo Master List' (unofficial) - http://www.neo-geo.com | |
| 742 | and the official NeoGeo museum - http://neogeomuseum.snkplaymore.co.jp/english/index.php | |
| 743 | Several unofficial 'conversions' of these sets can be found across the internet. | |
| 744 | For completeness sake: Some of these have sets have been relesead for the CD system. | |
| 512 | 745 | |
| 513 | CHA: | |
| 514 | . NEO-273 | |
| 515 | . NEO-CMC | |
| 516 | . NEO-ZMC | |
| 517 | . NEO-ZMC2 | |
| 518 | . PRO-CT0 | |
| 519 | . SNK-9201 | |
| 520 | 746 | |
| 521 | PROG: | |
| 522 | . 0103 (QFP144) | |
| 523 | . ALTERA (EPM7128SQC100-15) | |
| 524 | . NEO-COMA | |
| 525 | . NEO-PCM2 (SNK 1999) | |
| 526 | . NEO-PCM2 (PLAYMORE 2002) | |
| 527 | . NEO-PVC | |
| 528 | . NEO-SMA | |
| 529 | . PCM | |
| 530 | . PRO-CT0 | |
| 531 | . SNK-9201 | |
| 747 | M1 (sound driver) rom information: | |
| 748 | . Many 'M1' roms contain mirrored data (64k mirrored or 128k mirrored). | |
| 749 | . Found on several early sets (ID 0001 ~ 0045) and on the last sets (ID 0267 ~ 0272). | |
| 750 | . This caused some confusion and incorrect rom sizes. | |
| 751 | . Minimum 'M1' size is 1mbit, maximum size 4mbit. | |
| 752 | . The remaining 64k 'M1' are marked BAD_DUMP. | |
| 532 | 753 | |
| 533 | 754 | |
| 534 | Known pcb's: | |
| 535 | ============ | |
| 755 | S1 (text layer) rom information: | |
| 756 | . All 'S1' roms found on prom are 1mbit. | |
| 757 | . The remainig 64k 'S1' are marked BAD_DUMP. | |
| 536 | 758 | |
| 537 | MVS CHA: | |
| 538 | -- SNK -- | |
| 539 | . NEO-MVS CHA-32 | |
| 540 | . NEO-MVS CHA-8M | |
| 541 | . NEO-MVS CHA42G | |
| 542 | . NEO-MVS CHA42G-1 | |
| 543 | . NEO-MVS CHA 42G-2 | |
| 544 | . NEO-MVS CHA 42G-3 | |
| 545 | . NEO-MVS CHA42G-3B | |
| 546 | . NEO-MVS CHA256 | |
| 547 | . NEO-MVS CHA256B | |
| 548 | . NEO-MVS PSTM CHA136 | |
| 549 | . NEO-MVS CHA512Y | |
| 550 | . NEO-MVS CHAFIO (1999.6.14) | |
| 551 | . MVS CHAFIO REV1.0 (KOF-2001) | |
| 552 | . NEO-MVS CHAFIO (SNK 2002) - MADE IN KOREA | |
| 553 | -- SNKPLAYMORE -- | |
| 554 | . NEO-MVS CHAFIO (2003.7.24) | |
| 555 | 759 | |
| 556 | MVS PROG: | |
| 557 | -- SNK -- | |
| 558 | . NEO-MVS PROG-NAM | |
| 559 | . NEO-MVS PROG-HERO | |
| 560 | . NEO-MVS PROG-EP | |
| 561 | . NEO-MVS PROG-8MB | |
| 562 | . NEO-MVS PROG8M42 | |
| 563 | . NEO-MVS PROG16 | |
| 564 | . NEO-MVS PROG42G | |
| 565 | . NEO-MVS PROG42G-COM | |
| 566 | . NEO-MVS PROG42G-1 | |
| 567 | . NEO-MVS PROG-G2 | |
| 568 | . NEO-MVS PROG 4096 | |
| 569 | . NEO-MVS PROG 4096 B | |
| 570 | . NEO-MVS PROGGSC | |
| 571 | . NEO-MVS PROGSM | |
| 572 | . NEO-MVS PROGSS3 | |
| 573 | . NEO-MVS PROGTOP | |
| 574 | . NEO-MVS PROGSF1 (1998.6.17) | |
| 575 | . NEO-MVS PROGEOP (1999.2.2) | |
| 576 | . NEO-MVS PROGLBA (1999.4.12) - LBA-SUB (2000.2.24) | |
| 577 | . NEO-MVS PROGBK1 | |
| 578 | . NEO-MVS PROGBK2 (2000.3.21) | |
| 579 | . MVS PROGBK2 REV1.0 (KOF-2001) | |
| 580 | . NEO-MVS PROGBK2 (SNK 2002) - MADE IN KOREA | |
| 581 | -- SNKPLAYMORE -- | |
| 582 | . NEO-MVS PROGBK2R (2003.8.26) - NEO-HYCS (2003.9.29) | |
| 583 | . NEO-MVS PROGBK3R (2003.9.2) - NEO-HYCS (2003.9.29) | |
| 584 | . NEO-MVS PROGBK3S (2003.10.1) | |
| 585 | . NEO-MVS PROGBK2S (2003.10.18) | |
| 760 | MULTI PLAY MODE: | |
| 761 | The NeoGeo has three games which support MULTI PLAY MODE (Riding Hero / League Bowling / Trash Rally). | |
| 762 | This allows you to 'link' 4 games (MVS)/ 2 games (AES)using in game 'Multi-Play' option. To establish | |
| 763 | a link between the carts you have to connect the carts to each other by a communicator cable. The communicatior | |
| 764 | cable is a regular headphone cable with stereo pin jack. It has been reported that you can also 'link' MVS <-> AES. | |
| 586 | 765 | |
| 766 | All three games use a special PROG board for MULTI PLAY MODE support: | |
| 767 | . Riding Hero (AES - NEO-AEG PROG-HERO / MVS NEO-MVS PROG-HERO) | |
| 768 | . League Bowling (AES - NEO-AEG PROG-HERO / MVS NEO-MVS PROG-HERO) | |
| 769 | . Trash Rally (AES - NEO-AEG PROG42G-COM / NEO-MVS PROG42G-COM) | |
| 587 | 770 | |
| 588 | AES CHA: | |
| 589 | -- SNK -- | |
| 590 | . NEO-AEG CHA-32 | |
| 591 | . NEO-AEG CHA-8M | |
| 592 | . NEO-AEG CHA42G | |
| 593 | . NEO-AEG CHA42G-1 | |
| 594 | . NEO-AEG CHA42G-2B | |
| 595 | . NEO-AEG CHA42G-3 | |
| 596 | . NEO-AEG CHA42G-4 | |
| 597 | . NEO-AEG CHA256 | |
| 598 | . NEO-AEG CHA256[B] | |
| 599 | . NEO-AEG CHA256RY | |
| 600 | . NEO-AEG CHA512Y | |
| 601 | . NEO-AEG CHAFIO (1999.8.10) | |
| 602 | -- SNKPLAYMORE -- | |
| 603 | . NEO-AEG CHAFIO (2003.7.24) | |
| 771 | A HD6301V1P MCU on the above boards is used for establishing the 'link'. The MCU has a 4kb internal ROM which | |
| 772 | is not dumped. | |
| 773 | To use the MULTI PLAY MODE on your MVS you have to set the following hardware dips: | |
| 774 | HARD DIP SETTING 4 5 6 | |
| 775 | CABINET 1: OFF OFF ON | |
| 776 | CABINET 2: OFF ON ON | |
| 777 | CABINET 3: ON OFF ON | |
| 778 | CABINET 4: ON ON ON | |
| 604 | 779 | |
| 605 | AES PROG: | |
| 606 | -- SNK -- | |
| 607 | . NEO-AEG PROG-NAM | |
| 608 | . NEO-AEG PROG-HERO | |
| 609 | . NEO-AEG PROG-4A | |
| 610 | . NEO-AEG PROG-4B | |
| 611 | . NEO-AEG PROG 8M42 | |
| 612 | . NEO-AEG PROG B | |
| 613 | . NEO-AEG PROG16 | |
| 614 | . NEO-AEG PROG42G | |
| 615 | . NEO-AEG PROG42G-COM | |
| 616 | . NEO-AEG PROG42G-1 | |
| 617 | . NEO-AEG PROG-G2 | |
| 618 | . NEO-AEG PROG4096 B | |
| 619 | . NEO-AEG PROGGS | |
| 620 | . NEO-AEG PROGTOP2 | |
| 621 | . NEO-AEG PROGLBA (1999.7.6) | |
| 622 | . NEO-AEG PROGRK | |
| 623 | . NEO-AEG PROGRKB | |
| 624 | . NEO-AEG PROGBK1Y | |
| 625 | . NEO-AEG PROGBK1F | |
| 626 | -- PLAYMORE -- | |
| 627 | . NEO-AEG PROGBK2 (2002.4.1) | |
| 628 | -- SNKPLAYMORE -- | |
| 629 | . NEO-AEG PROGBK3R (2003.8.29) - NEO-HYCS (2003.9.29) | |
| 630 | . NEO-AEG PROGBK2S (2003.10.16) | |
| 631 | ||
| 632 | ||
| 633 | Cartridge colours: | |
| 634 | ================== | |
| 635 | ||
| 636 | MVS cartridges were produced in different colours. | |
| 637 | ||
| 638 | Known cartridge colours: | |
| 639 | . Black | |
| 640 | . Blue | |
| 641 | . Green | |
| 642 | . Grey | |
| 643 | . Red | |
| 644 | . Transparent | |
| 645 | . Transparent Blue | |
| 646 | . Transparent Green | |
| 647 | . White | |
| 648 | . Yellow | |
| 649 | ||
| 650 | The above listed only covers SNK / PLAYMORE / SNKPLAYMORE pcb's. There also exists a | |
| 651 | wide range of 'bootleg' pcb's. | |
| 652 | ||
| 653 | ||
| 654 | Neo-Geo game pcb infos by Johnboy | |
| 655 | ||
| 656 | ****************************************************************************/ | |
| 657 | ||
| 658 | /**************************************************************************** | |
| 659 | ||
| 660 | General set notes: | |
| 661 | ================== | |
| 662 | ||
| 663 | NOTES BELOW APPLY TO OEM SETS ONLY! | |
| 664 | ||
| 665 | Many 'M1' roms contain mirrored data (64k mirrored or 128k mirrored). | |
| 666 | Found on several early sets (ID 0001 ~ 0045) and on the last sets (ID 0267 ~ 0272). | |
| 667 | This caused some confusion and incorrect rom sizes. | |
| 668 | Minimum 'M1' size is 1mbit, maximum size 4mbit. | |
| 669 | The remaining 64k 'M1' are marked BAD_DUMP. | |
| 670 | ||
| 671 | All 'S1' roms found on prom are 1mbit. | |
| 672 | The remainig 64k 'S1' are marked BAD_DUMP. | |
| 673 | ||
| 674 | ****************************************************************************/ | |
| 675 | ||
| 676 | ||
| 677 | /* OEM sets */ | |
| 678 | ||
| 679 | ||
| 680 | /* | |
| 681 | Missing (undumped) sets: | |
| 682 | . Rage of the Dragons (AES) | |
| 683 | . Last Blade 2 (early revisions) ? | |
| 684 | . Power Spikes II (early revisions) ? | |
| 685 | . Metal Slug 3 (rev. Mar/17/2000 1:36) | |
| 686 | . Metal Slug 4 (AES) | |
| 687 | . Metal Slug 4 (MVS, 1st revision) | |
| 688 | . Metal Slug 5 (PCB) | |
| 689 | . Sengoku 3 (alternate revision) | |
| 690 | ||
| 691 | All rom labels need to be reverified | |
| 692 | ||
| 693 | SMA protected sets: | |
| 694 | On some SMA protected sets there is a small sub pcb found, LBA-SUB (2000.2.24), which replaces the | |
| 695 | regular used 2x32mbit or 4x16mbit proms. LBA-SUB (2000.2.24) contains 4x16mbit mask proms. | |
| 696 | MVS sets confirmed are garou, mslug3, mslug3a and kof2000. | |
| 697 | 780 | */ |
| 698 | 781 | |
| 699 | /* | |
| 700 | 782 | |
| 701 | About supported sets: | |
| 702 | ||
| 703 | MVS carts (arcade) were released before the AES carts (home) | |
| 704 | The actual codepath taken depends entirely on the BIOS rom, not the roms in the cartridge, which (with | |
| 705 | a few exceptions) support both codepaths. | |
| 706 | ||
| 707 | The initial AES releases are therefore later revisions of the game, often with bug fixes over the | |
| 708 | initial MVS releases. It isn't uncommon for later production runs and bootlegs to use these newer sets, | |
| 709 | so all of them are supported in MAME. | |
| 710 | ||
| 711 | Likewise, because the MVS carts were released first (and were produced in higher numbers and generally | |
| 712 | have a lower cost) it's not uncommon for AES units to operate with converted MVS carts, so, with the | |
| 713 | exception of the sets that specifically lock out the AES mode* these sets are all equally suitable | |
| 714 | for MESS. | |
| 715 | ||
| 716 | * nitd, kof2001 (initial release has no AES code), and a number of the hacked bootlegs. | |
| 717 | ||
| 718 | */ | |
| 719 | ||
| 720 | 783 | /* dummy entry for the dummy bios driver */ |
| 721 | 784 | ROM_START( neogeo ) |
| 722 | 785 | NEOGEO_BIOS |
| r8581 | r8582 | |
| 928 | 991 | ROM_END |
| 929 | 992 | |
| 930 | 993 | ROM_START( ridhero ) |
| 994 | /* HD6301V1P MCU for MULTI PLAY MODE missing */ | |
| 931 | 995 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 932 | 996 | ROM_LOAD16_WORD_SWAP( "006-p1.bin", 0x000000, 0x080000, CRC(d4aaf597) SHA1(34d35b71adb5bd06f4f1b50ffd9c58ab9c440a84) ) |
| 933 | 997 | |
| r8581 | r8582 | |
| 954 | 1018 | ROM_END |
| 955 | 1019 | |
| 956 | 1020 | ROM_START( ridheroh ) |
| 1021 | /* HD6301V1P MCU for MULTI PLAY MODE missing */ | |
| 957 | 1022 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 958 | 1023 | ROM_LOAD16_WORD_SWAP( "006-p1h.bin", 0x000000, 0x080000, CRC(52445646) SHA1(647bb31f2f68453c1366cb6e2e867e37d1df7a54) ) |
| 959 | 1024 | |
| r8581 | r8582 | |
| 1001 | 1066 | ROM_LOAD16_BYTE( "007-c4.bin", 0x200001, 0x080000, CRC(7d588349) SHA1(a5ed789d7bbc25be5c5b2d99883b64d379c103a2) ) /* Plane 2,3 */ |
| 1002 | 1067 | ROM_END |
| 1003 | 1068 | |
| 1004 | ROM_START( ncombat ) | |
| 1069 | ROM_START( ncombat ) /* MVS VERSION */ | |
| 1005 | 1070 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 1006 | 1071 | ROM_LOAD16_WORD_SWAP( "009-p1.bin", 0x000000, 0x080000, CRC(b45fcfbf) SHA1(3872147dda2d1ba905d35f4571065d87b1958b4a) ) |
| 1007 | 1072 | |
| r8581 | r8582 | |
| 1026 | 1091 | ROM_LOAD16_BYTE( "009-c6.bin", 0x200001, 0x80000, CRC(2eca8b19) SHA1(16764ef10e404325ba0a1a2ad3a4c0af287be21f) ) /* Plane 2,3 */ |
| 1027 | 1092 | ROM_END |
| 1028 | 1093 | |
| 1029 | ROM_START( ncombath ) /* | |
| 1094 | ROM_START( ncombath ) /* | |
| 1030 | 1095 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 1031 | 1096 | ROM_LOAD16_WORD_SWAP( "009-pg1.bin", 0x000000, 0x080000, CRC(8e9f0add) SHA1(d0b908a86a58f2537eea73a431038f1cd74a5a2f) ) |
| 1032 | 1097 | |
| r8581 | r8582 | |
| 1123 | 1188 | ROM_LOAD16_BYTE( "014-c4.bin", 0x200001, 0x100000, CRC(e4002651) SHA1(17e53a5f4708866a120415bf24f3b89621ad0bcc) ) /* Plane 2,3 */ |
| 1124 | 1189 | ROM_END |
| 1125 | 1190 | |
| 1126 | ROM_START( kotm ) | |
| 1191 | ROM_START( kotm ) /* MVS VERSION */ | |
| 1127 | 1192 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 1128 | 1193 | ROM_LOAD16_WORD_SWAP( "016-p1.bin", 0x000000, 0x080000, CRC(1b818731) SHA1(b98b1b33c0301fd79aac908f6b635dd00d1cb08d) ) |
| 1129 | 1194 | ROM_LOAD16_WORD_SWAP( "016-p2.bin", 0x080000, 0x020000, CRC(12afdc2b) SHA1(3a95f5910cbb9f17e63ddece995c6e120fa2f622) ) |
| r8581 | r8582 | |
| 1258 | 1323 | ROM_END |
| 1259 | 1324 | |
| 1260 | 1325 | ROM_START( lbowling ) /* MVS AND AES VERSION */ |
| 1326 | /* HD6301V1P MCU for MULTI PLAY MODE missing */ | |
| 1261 | 1327 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 1262 | 1328 | ROM_LOAD16_WORD_SWAP( "019-p1.bin", 0x000000, 0x080000, CRC(a2de8445) SHA1(893d7ae72b4644123469de143fa35fac1cbcd61e) ) |
| 1263 | 1329 | |
| r8581 | r8582 | |
| 1532 | 1598 | ROM_LOAD16_BYTE( "030-c4.bin", 0x200001, 0x100000, CRC(780d1c4e) SHA1(2e2cf9de828e3b48642dd2203637103438c62142) ) /* Plane 2,3 */ |
| 1533 | 1599 | ROM_END |
| 1534 | 1600 | |
| 1535 | ROM_START( socbrawl ) | |
| 1601 | ROM_START( socbrawl ) /* MVS VERSION */ | |
| 1536 | 1602 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 1537 | ROM_LOAD16_WORD_SWAP( "031-p1.bin", 0x000000, 0x080000, CRC( | |
| 1603 | ROM_LOAD16_WORD_SWAP( "031-pg1.bin", 0x000000, 0x080000, CRC( | |
| 1538 | 1604 | |
| 1539 | 1605 | NEO_SFIX_128K( "031-s1.bin", CRC(4c117174) SHA1(26e52c4f628338a9aa1c159517cdf873f738fb98) ) |
| 1540 | 1606 | |
| r8581 | r8582 | |
| 1554 | 1620 | ROM_LOAD16_BYTE( "031-c4.bin", 0x200001, 0x080000, CRC(ed297de8) SHA1(616f8fa4c86231f3e79faf9f69f8bb909cbc35f0) ) /* Plane 2,3 */ |
| 1555 | 1621 | ROM_END |
| 1556 | 1622 | |
| 1557 | ROM_START( socbrawl | |
| 1623 | ROM_START( socbrawlh ) /* AES VERSION */ | |
| 1558 | 1624 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 1559 | ROM_LOAD16_WORD_SWAP( "031-p | |
| 1625 | ROM_LOAD16_WORD_SWAP( "031-p | |
| 1560 | 1626 | |
| 1561 | 1627 | NEO_SFIX_128K( "031-s1.bin", CRC(4c117174) SHA1(26e52c4f628338a9aa1c159517cdf873f738fb98) ) |
| 1562 | 1628 | |
| r8581 | r8582 | |
| 1708 | 1774 | ROM_END |
| 1709 | 1775 | |
| 1710 | 1776 | ROM_START( trally ) /* MVS AND AES VERSION */ |
| 1777 | /* HD6301V1P MCU for MULTI PLAY MODE missing */ | |
| 1711 | 1778 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 1712 | 1779 | ROM_LOAD16_WORD_SWAP( "038-p1.bin", 0x000000, 0x080000, CRC(1e52a576) SHA1(a1cb56354c3378e955b0cd482c3c41ae15add952) ) |
| 1713 | 1780 | ROM_LOAD16_WORD_SWAP( "038-p2.bin", 0x080000, 0x080000, CRC(a5193e2f) SHA1(96803480439e90da23cdca70d59ff519ee85beeb) ) |
| r8581 | r8582 | |
| 2010 | 2077 | ROM_CONTINUE( 0x600001, 0x100000 ) |
| 2011 | 2078 | ROM_END |
| 2012 | 2079 | |
| 2013 | ROM_START( janshin ) | |
| 2080 | ROM_START( janshin ) /* MVS ONLY RELEASE */ | |
| 2014 | 2081 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 2015 | 2082 | ROM_LOAD16_WORD_SWAP( "048-p1.bin", 0x000000, 0x100000, CRC(7514cb7a) SHA1(da512c0a8e8160a9db7f956e351245327c38eaf1) ) |
| 2016 | 2083 | |
| r8581 | r8582 | |
| 2182 | 2249 | ROM_LOAD16_BYTE( "053-c4.bin", 0x200001, 0x100000, CRC(9270d954) SHA1(a2ef909868f6b06cdcc22a63ddf6c96be12b999c) ) /* Plane 2,3 */ |
| 2183 | 2250 | ROM_END |
| 2184 | 2251 | |
| 2185 | ROM_START( kof94 ) | |
| 2252 | ROM_START( kof94 ) /* MVS AND AES VERSION */ | |
| 2186 | 2253 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 2187 | 2254 | ROM_LOAD16_WORD_SWAP( "055-p1.bin", 0x100000, 0x100000, CRC(f10a2042) SHA1(d08a3f3c28be4b1793de7d362456281329fe1828) ) |
| 2188 | 2255 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r8581 | r8582 | |
| 2209 | 2276 | ROM_LOAD16_BYTE( "055-c8.bin", 0xc00001, 0x200000, CRC(fe0a235d) SHA1(a45c66836e4e3c77dfef9d4c6cc422cb59169149) ) /* Plane 2,3 */ |
| 2210 | 2277 | ROM_END |
| 2211 | 2278 | |
| 2212 | ROM_START( aof2 ) | |
| 2279 | ROM_START( aof2 ) /* MVS AND AES RELEASE */ | |
| 2213 | 2280 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 2214 | 2281 | ROM_LOAD16_WORD_SWAP( "056-p1.bin", 0x000000, 0x100000, CRC(a3b1d021) SHA1(ee42f3ca4516226b0088d0303ed28e3ecdabcd71) ) |
| 2215 | 2282 | |
| r8581 | r8582 | |
| 2235 | 2302 | ROM_LOAD16_BYTE( "056-c8.bin", 0xc00001, 0x200000, CRC(e546d7a8) SHA1(74a2fca994a5a93a5784a46c0f68193122456a09) ) /* Plane 2,3 */ |
| 2236 | 2303 | ROM_END |
| 2237 | 2304 | |
| 2238 | ROM_START( aof2a ) /* | |
| 2305 | ROM_START( aof2a ) /* MVS | |
| 2239 | 2306 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 2240 | 2307 | ROM_LOAD16_WORD_SWAP( "056-p1.bin", 0x000000, 0x100000, CRC(a3b1d021) SHA1(ee42f3ca4516226b0088d0303ed28e3ecdabcd71) ) |
| 2241 | 2308 | /* the rom below acts as a patch to the program rom in the cart, replacing the first 512kb */ |
| r8581 | r8582 | |
| 2263 | 2330 | ROM_LOAD16_BYTE( "056-c8.bin", 0xc00001, 0x200000, CRC(e546d7a8) SHA1(74a2fca994a5a93a5784a46c0f68193122456a09) ) /* Plane 2,3 */ |
| 2264 | 2331 | ROM_END |
| 2265 | 2332 | |
| 2266 | ROM_START( wh2 ) | |
| 2333 | ROM_START( wh2 ) /* MVS AND AES VERSION */ | |
| 2267 | 2334 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 2268 | 2335 | ROM_LOAD16_WORD_SWAP( "057-p1.bin", 0x100000, 0x100000, CRC(65a891d9) SHA1(ff8d5ccb0dd22c523902bb3db3c645583a335056) ) |
| 2269 | 2336 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r8581 | r8582 | |
| 2287 | 2354 | ROM_LOAD16_BYTE( "057-c6.bin", 0x800001, 0x200000, CRC(b13d1de3) SHA1(7d749c23a33d90fe50279e884540d71cf1aaaa6b) ) /* Plane 2,3 */ |
| 2288 | 2355 | ROM_END |
| 2289 | 2356 | |
| 2290 | ROM_START( fatfursp ) | |
| 2357 | ROM_START( fatfursp ) /* MVS AND AES RELEASE */ | |
| 2291 | 2358 | ROM_REGION( 0x180000, "maincpu", 0 ) |
| 2292 | 2359 | ROM_LOAD16_WORD_SWAP( "058-p1.bin", 0x000000, 0x100000, CRC(2f585ba2) SHA1(429b4bf43fb9b1082c15d645ca328f9d175b976b) ) |
| 2293 | 2360 | ROM_LOAD16_WORD_SWAP( "058-p2.bin", 0x100000, 0x080000, CRC(d7c71a6b) SHA1(b3428063031a2e5857da40a5d2ffa87fb550c1bb) ) |
| r8581 | r8582 | |
| 2312 | 2379 | ROM_LOAD16_BYTE( "058-c6.bin", 0x800001, 0x200000, CRC(8ff1f43d) SHA1(6180ceb5412a3e2e34e9513a3283b9f63087f747) ) /* Plane 2,3 */ |
| 2313 | 2380 | ROM_END |
| 2314 | 2381 | |
| 2315 | ROM_START( fatfursa ) | |
| 2382 | ROM_START( fatfursa ) /* MVS AND AES RELEASE */ | |
| 2316 | 2383 | ROM_REGION( 0x180000, "maincpu", 0 ) |
| 2317 | 2384 | ROM_LOAD16_WORD_SWAP( "058-p1.bin", 0x000000, 0x100000, CRC(2f585ba2) SHA1(429b4bf43fb9b1082c15d645ca328f9d175b976b) ) |
| 2318 | 2385 | ROM_LOAD16_WORD_SWAP( "058-p2.bin", 0x100000, 0x080000, CRC(d7c71a6b) SHA1(b3428063031a2e5857da40a5d2ffa87fb550c1bb) ) |
| r8581 | r8582 | |
| 2366 | 2433 | ROM_LOAD16_BYTE( "059-c8.bin", 0xc00001, 0x200000, CRC(484ce3ba) SHA1(4f21ed20ce6e2b67e2b079404599310c94f591ff) ) /* Plane 2,3 */ |
| 2367 | 2434 | ROM_END |
| 2368 | 2435 | |
| 2369 | ROM_START( fightfev ) | |
| 2436 | ROM_START( fightfev ) /* MVS ONLY RELEASE */ | |
| 2370 | 2437 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 2371 | 2438 | ROM_LOAD16_WORD_SWAP( "060-p1.bin", 0x000000, 0x080000, CRC(3032041b) SHA1(4b8ed2e6f74579ea35a53e06ccac42d6905b0f51) ) |
| 2372 | 2439 | ROM_LOAD16_WORD_SWAP( "060-p2.bin", 0x080000, 0x080000, CRC(b0801d5f) SHA1(085746d8f5d271d5f84ccbb7f577193c391f88d4) ) |
| r8581 | r8582 | |
| 2388 | 2455 | ROM_LOAD16_BYTE( "060-c4.bin", 0x0400001, 0x200000, CRC(026f3b62) SHA1(d608483b70d60e7aa0e41f25a8b3fed508129eb7) ) /* Plane 2,3 */ |
| 2389 | 2456 | ROM_END |
| 2390 | 2457 | |
| 2391 | ROM_START( fightfeva ) /* MVS | |
| 2458 | ROM_START( fightfeva ) /* MVS | |
| 2392 | 2459 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 2393 | 2460 | ROM_LOAD16_WORD_SWAP( "060-p1.rom", 0x0000000, 0x100000, CRC(2a104b50) SHA1(3eb663d3df7074e1cdf4c0e450a35c9cf55d8979) ) |
| 2394 | 2461 | /* There was also a copy of the 060-p1.bin with the name 060-p2.bin maybe it should be loaded over the top or this |
| r8581 | r8582 | |
| 2610 | 2677 | ROM_LOAD16_BYTE( "066-c6.bin", 0x800001, 0x200000, CRC(c15c01ed) SHA1(7cf5583e6610bcdc3b332896cefc71df84fb3f19) ) /* Plane 2,3 */ |
| 2611 | 2678 | ROM_END |
| 2612 | 2679 | |
| 2613 | ROM_START( gururin ) | |
| 2680 | ROM_START( gururin ) /* MVS ONLY RELEASE */ | |
| 2614 | 2681 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 2615 | 2682 | ROM_LOAD16_WORD_SWAP( "067-p1.bin", 0x000000, 0x80000, CRC(4cea8a49) SHA1(cea4a35db8de898e30eb40dd339b3cbe77ac0856) ) |
| 2616 | 2683 | |
| r8581 | r8582 | |
| 2628 | 2695 | ROM_LOAD16_BYTE( "067-c2.bin", 0x000001, 0x200000, CRC(9db64084) SHA1(68a43c12f63f5e98d68ad0902a6551c5d30f8543) ) /* Plane 2,3 */ |
| 2629 | 2696 | ROM_END |
| 2630 | 2697 | |
| 2631 | ROM_START( pspikes2 ) /* MVS | |
| 2698 | ROM_START( pspikes2 ) /* MVS | |
| 2632 | 2699 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 2633 | 2700 | ROM_LOAD16_WORD_SWAP( "068-pg1.bin", 0x000000, 0x100000, CRC(105a408f) SHA1(2ee51defa1c24c66c63a6498ee542ac26de3cfbb) ) |
| 2634 | 2701 | |
| r8581 | r8582 | |
| 2677 | 2744 | ROM_LOAD16_BYTE( "069-c6.bin", 0x1000001, 0x200000, CRC(69210441) SHA1(6d496c549dba65caabeaffe5b762e86f9d648a26) ) /* Plane 2,3 */ |
| 2678 | 2745 | ROM_END |
| 2679 | 2746 | |
| 2680 | ROM_START( zupapa ) /* Original Version - Encrypted GFX */ | |
| 2747 | ROM_START( zupapa ) /* Original Version - Encrypted GFX */ /* MVS ONLY RELEASE */ | |
| 2681 | 2748 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 2682 | 2749 | ROM_LOAD16_WORD_SWAP( "070-p1.bin", 0x000000, 0x100000, CRC(5a96203e) SHA1(49cddec9ca6cc51e5ecf8a34e447a23e1f8a15a1) ) |
| 2683 | 2750 | |
| r8581 | r8582 | |
| 2702 | 2769 | ROM_LOAD16_BYTE( "070-c2.bin", 0x0000001, 0x800000, CRC(70156dde) SHA1(06286bf043d50199b47df9a76ca91f39cb28cb90) ) /* Plane 2,3 */ |
| 2703 | 2770 | ROM_END |
| 2704 | 2771 | |
| 2705 | ROM_START( panicbom ) | |
| 2772 | ROM_START( panicbom ) /* MVS ONLY RELEASE */ | |
| 2706 | 2773 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 2707 | 2774 | ROM_LOAD16_WORD_SWAP( "073-p1.bin", 0x000000, 0x080000, CRC(adc356ad) SHA1(801e0a54b65d7a3500e6cef2d6bba40c6356dc1f) ) |
| 2708 | 2775 | |
| r8581 | r8582 | |
| 2769 | 2836 | ROM_LOAD16_BYTE( "075-c4.bin", 0x400001, 0x200000, CRC(1f777206) SHA1(e29c5ae65ebdcc1167a894306d2446ce909639da) ) /* Plane 2,3 */ |
| 2770 | 2837 | ROM_END |
| 2771 | 2838 | |
| 2772 | ROM_START( zedblade ) | |
| 2839 | ROM_START( zedblade ) /* MVS ONLY RELEASE */ | |
| 2773 | 2840 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 2774 | 2841 | ROM_LOAD16_WORD_SWAP( "076-p1.bin", 0x000000, 0x080000, CRC(d7c1effd) SHA1(485c2308a40baecd122be9ab4996044622bdcc7e) ) |
| 2775 | 2842 | |
| r8581 | r8582 | |
| 2912 | 2979 | ROM_LOAD16_BYTE( "082-c8.bin", 0xc00001, 0x100000, CRC(69a5fa37) SHA1(020e70e0e8b3c5d00a40fe97e418115a3187e50a) ) /* Plane 2,3 */ |
| 2913 | 2980 | ROM_END |
| 2914 | 2981 | |
| 2915 | ROM_START( pbobblen ) /* MVS | |
| 2982 | ROM_START( pbobblen ) /* MVS | |
| 2916 | 2983 | /* This set uses CHA and PROG board from Power Spikes II. Six Power Spikes II prom's are replaced with |
| 2917 | 2984 | Puzzle Bobble prom's. Confirmed on several original carts. Do other layouts also exist? */ |
| 2918 | 2985 | |
| r8581 | r8582 | |
| 2999 | 3066 | ROM_LOAD16_BYTE( "084-c8.bin", 0x1800001, 0x100000, CRC(78eb0f9b) SHA1(2925ea21ed2ce167f08a25589e94f28643379034) ) /* Plane 2,3 */ |
| 3000 | 3067 | ROM_END |
| 3001 | 3068 | |
| 3002 | ROM_START( tws96 ) | |
| 3069 | ROM_START( tws96 ) /* MVS ONLY RELEASE */ | |
| 3003 | 3070 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 3004 | 3071 | ROM_LOAD16_WORD_SWAP( "086-p1.bin", 0x000000, 0x100000, CRC(03e20ab6) SHA1(3a0a5a54649178ce7a6158980cb4445084b40fb5) ) |
| 3005 | 3072 | |
| r8581 | r8582 | |
| 3201 | 3268 | ROM_LOAD16_BYTE( "092-c4.bin", 0x800001, 0x400000, CRC(de07f997) SHA1(c27a4d4bef868eed38dc152ff37d4135b16cc991) ) /* Plane 2,3 */ |
| 3202 | 3269 | ROM_END |
| 3203 | 3270 | |
| 3204 | ROM_START( neobombe ) | |
| 3271 | ROM_START( neobombe ) /* MVS ONLY RELEASE */ | |
| 3205 | 3272 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 3206 | 3273 | ROM_LOAD16_WORD_SWAP( "093-p1.bin", 0x000000, 0x100000, CRC(a1a71d0d) SHA1(059284c84f61a825923d86d2f29c91baa2c439cd) ) |
| 3207 | 3274 | |
| r8581 | r8582 | |
| 3429 | 3496 | ROM_LOAD16_BYTE( "201-c4.bin", 0x800001, 0x400000, CRC(f4ad59a3) SHA1(4e94fda8ee63abf0f92afe08060a488546e5c280) ) /* Plane 2,3 */ |
| 3430 | 3497 | ROM_END |
| 3431 | 3498 | |
| 3432 | ROM_START( puzzledp ) | |
| 3499 | ROM_START( puzzledp ) /* MVS ONLY RELEASE */ | |
| 3433 | 3500 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 3434 | 3501 | ROM_LOAD16_WORD_SWAP( "202-p1.bin", 0x000000, 0x080000, CRC(2b61415b) SHA1(0e3e4faf2fd6e63407425e1ac788003e75aeeb4f) ) |
| 3435 | 3502 | |
| r8581 | r8582 | |
| 3486 | 3553 | ROM_LOAD16_BYTE( "206-c4.bin", 0x800001, 0x100000, CRC(55e1314d) SHA1(fffbc9eb9000ff5b1063af1817de7ea4a267fedd) ) /* Plane 2,3 */ |
| 3487 | 3554 | ROM_END |
| 3488 | 3555 | |
| 3489 | ROM_START( neomrdo ) | |
| 3556 | ROM_START( neomrdo ) /* MVS ONLY RELEASE */ | |
| 3490 | 3557 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 3491 | 3558 | ROM_LOAD16_WORD_SWAP( "207-p1.bin", 0x000000, 0x80000, CRC(39efdb82) SHA1(75fe68921f871872e5fc92594e43b4cd712e819b) ) |
| 3492 | 3559 | |
| r8581 | r8582 | |
| 3504 | 3571 | ROM_LOAD16_BYTE( "207-c2.bin", 0x000001, 0x200000, CRC(f57166d2) SHA1(bf3aa47d17156485c2177fb63cba093f050abb98) ) |
| 3505 | 3572 | ROM_END |
| 3506 | 3573 | |
| 3507 | ROM_START( sdodgeb ) | |
| 3574 | ROM_START( sdodgeb ) /* MVS ONLY RELEASE */ | |
| 3508 | 3575 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 3509 | 3576 | ROM_LOAD16_WORD_SWAP( "208-p1.bin", 0x100000, 0x100000, CRC(127f3d32) SHA1(18e77b79b1197a89371533ef9b1e4d682c44d875) ) |
| 3510 | 3577 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r8581 | r8582 | |
| 3526 | 3593 | ROM_LOAD16_BYTE( "208-c4.bin", 0x0800001, 0x200000, CRC(c7165f19) SHA1(221f03de893dca0e5305fa17aa94f96c67713818) ) /* Plane 2,3 */ |
| 3527 | 3594 | ROM_END |
| 3528 | 3595 | |
| 3529 | ROM_START( goalx3 ) | |
| 3596 | ROM_START( goalx3 ) /* MVS ONLY RELEASE */ | |
| 3530 | 3597 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 3531 | 3598 | ROM_LOAD16_WORD_SWAP( "209-p1.bin", 0x100000, 0x100000, CRC(2a019a79) SHA1(422a639e74284fef2e53e1b49cf8803b0a7e80c6) ) |
| 3532 | 3599 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r8581 | r8582 | |
| 3570 | 3637 | ROM_LOAD16_BYTE( "212-c6.bin", 0x1000001, 0x200000, CRC(0589c15e) SHA1(b1167caf7cb61f3e05a5d342290bfe00e02e9d38) ) /* Plane 2,3 */ |
| 3571 | 3638 | ROM_END |
| 3572 | 3639 | |
| 3573 | ROM_START( neodrift ) | |
| 3640 | ROM_START( neodrift ) /* MVS ONLY RELEASE */ | |
| 3574 | 3641 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 3575 | 3642 | ROM_LOAD16_WORD_SWAP( "213-p1.bin", 0x100000, 0x100000, CRC(e397d798) SHA1(10f459111db4bab7aaa63ca47e83304a84300812) ) |
| 3576 | 3643 | ROM_CONTINUE( 0x000000, 0x100000) |
| r8581 | r8582 | |
| 3750 | 3817 | ROM_LOAD16_BYTE( "218-c8.bin", 0x1800001, 0x400000, CRC(d9b311f6) SHA1(ba61a7ab3f08bb7348ad6cd01e5d29ca5ee75074) ) /* Plane 2,3 */ |
| 3751 | 3818 | ROM_END |
| 3752 | 3819 | |
| 3753 | ROM_START( pgoal ) | |
| 3820 | ROM_START( pgoal ) /* MVS ONLY RELEASE */ | |
| 3754 | 3821 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 3755 | 3822 | ROM_LOAD16_WORD_SWAP( "219-p1.bin", 0x100000, 0x100000, CRC(6af0e574) SHA1(c3f0fed0d942e48c99c80b1713f271c033ce0f4f) ) |
| 3756 | 3823 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r8581 | r8582 | |
| 3981 | 4048 | ROM_LOAD16_BYTE( "230-c4.bin", 0x800001, 0x400000, CRC(63aeb74c) SHA1(9ff6930c0c3d79b46b86356e8565ce4fcd69ac38) ) /* Plane 2,3 */ |
| 3982 | 4049 | ROM_END |
| 3983 | 4050 | |
| 3984 | ROM_START( miexchng ) | |
| 4051 | ROM_START( miexchng ) /* MVS ONLY RELEASE */ | |
| 3985 | 4052 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 3986 | 4053 | ROM_LOAD16_WORD_SWAP( "231-p1.bin", 0x000000, 0x80000, CRC(61be1810) SHA1(1ab0e11352ca05329c6e3f5657b60e4a227fcbfb) ) |
| 3987 | 4054 | |
| r8581 | r8582 | |
| 4150 | 4217 | ROM_LOAD16_BYTE( "234-c6.bin", 0x2000001, 0x400000, CRC(beafd091) SHA1(55df9cc128eb0f00856de3996c946e3efe8f09a5) ) /* Plane 2,3 */ |
| 4151 | 4218 | ROM_END |
| 4152 | 4219 | |
| 4153 | ROM_START( puzzldpr ) | |
| 4220 | ROM_START( puzzldpr ) /* MVS ONLY RELEASE */ | |
| 4154 | 4221 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 4155 | 4222 | ROM_LOAD16_WORD_SWAP( "235-p1.bin", 0x000000, 0x080000, CRC(afed5de2) SHA1(a5d82c6dbe687505e8c8d7339908da45cd379a0b) ) |
| 4156 | 4223 | |
| r8581 | r8582 | |
| 4168 | 4235 | ROM_LOAD16_BYTE( "202-c2.bin", 0x000001, 0x100000, CRC(42371307) SHA1(df794f989e2883634bf7ffeea48d6bc3854529af) ) /* Plane 2,3 */ |
| 4169 | 4236 | ROM_END |
| 4170 | 4237 | |
| 4171 | ROM_START( irrmaze ) | |
| 4238 | ROM_START( irrmaze ) /* MVS ONLY RELEASE */ | |
| 4172 | 4239 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 4173 | 4240 | ROM_LOAD16_WORD_SWAP( "236-p1.bin", 0x000000, 0x200000, CRC(6d536c6e) SHA1(87d66683304a6617da8af7dfdfcbf4a3ab63056a) ) |
| 4174 | 4241 | |
| r8581 | r8582 | |
| 4196 | 4263 | ROM_LOAD16_BYTE( "236-c2.bin", 0x000001, 0x400000, CRC(e15f972e) SHA1(6a329559c57a67be73a6733513b59e9e6c8d61cc) ) /* Plane 2,3 */ |
| 4197 | 4264 | ROM_END |
| 4198 | 4265 | |
| 4199 | ROM_START( popbounc ) | |
| 4266 | ROM_START( popbounc ) /* MVS ONLY RELEASE */ | |
| 4200 | 4267 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 4201 | 4268 | ROM_LOAD16_WORD_SWAP( "237-p1.bin", 0x000000, 0x100000, CRC(be96e44f) SHA1(43679da8664fbb491103a1108040ddf94d59fc2b) ) |
| 4202 | 4269 | |
| r8581 | r8582 | |
| 4214 | 4281 | ROM_LOAD16_BYTE( "237-c2.bin", 0x000001, 0x200000, CRC(5e633c65) SHA1(9a82107caf027317c173c1c1ef676f0fdeea79b2) ) /* Plane 2,3 */ |
| 4215 | 4282 | ROM_END |
| 4216 | 4283 | |
| 4217 | ROM_START( shocktro ) | |
| 4284 | ROM_START( shocktro ) /* MVS ONLY RELEASE */ | |
| 4218 | 4285 | ROM_REGION( 0x500000, "maincpu", 0 ) |
| 4219 | 4286 | ROM_LOAD16_WORD_SWAP( "238-p1.bin", 0x000000, 0x100000, CRC(5677456f) SHA1(f76169fa5c90871d65e2a16fd1bb036c90533ac8) ) |
| 4220 | 4287 | ROM_LOAD16_WORD_SWAP( "238-p2.bin", 0x100000, 0x400000, CRC(5b4a09c5) SHA1(de04036cba2da4bb2da73d902d1822b82b4f67a9) ) |
| r8581 | r8582 | |
| 4240 | 4307 | ROM_LOAD16_BYTE( "238-c8.bin", 0x1800001, 0x400000, CRC(1c7c2efb) SHA1(b055ee43cbdaf9a3cb19e4e1f9dd2c40bde69d70) ) /* Plane 2,3 */ |
| 4241 | 4308 | ROM_END |
| 4242 | 4309 | |
| 4243 | ROM_START( shocktra ) | |
| 4310 | ROM_START( shocktra ) /* MVS ONLY RELEASE */ | |
| 4244 | 4311 | ROM_REGION( 0x500000, "maincpu", 0 ) |
| 4245 | 4312 | ROM_LOAD16_WORD_SWAP( "238-pg1.bin", 0x000000, 0x100000, CRC(efedf8dc) SHA1(f638df9bf7aa7d514ee2bccfc7f2adbf39ca83fc) ) |
| 4246 | 4313 | ROM_LOAD16_WORD_SWAP( "238-p2.bin", 0x100000, 0x400000, CRC(5b4a09c5) SHA1(de04036cba2da4bb2da73d902d1822b82b4f67a9) ) |
| r8581 | r8582 | |
| 4305 | 4372 | ROM_REGION( 0x0e00000, "ymsnd", 0 ) |
| 4306 | 4373 | ROM_LOAD( "240-v1.bin", 0x000000, 0x400000, CRC(f796265a) SHA1(736dff37eb91fc856b4d189249fb0de9b6c0813a) ) |
| 4307 | 4374 | ROM_LOAD( "240-v2.bin", 0x400000, 0x400000, CRC(2cb3f3bb) SHA1(697e677890892f4b028c9a27c66809ca0a8a9b18) ) |
| 4308 | //ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(df77b7fa) SHA1(4df971ce20bdb8c1ce8cc1692a32ac69505ffa9a) ) // bad? | |
| 4309 | 4375 | ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(8fe1367a) SHA1(093d7a4ac2b54ad7ffb2dc316fe29415f7a99535) ) |
| 4310 | 4376 | ROM_LOAD( "240-v4.bin", 0xc00000, 0x200000, CRC(996704d8) SHA1(0bf7a1d0660199dedf3c25be757eeab75cc6147e) ) |
| 4311 | 4377 | |
| r8581 | r8582 | |
| 4333 | 4399 | ROM_REGION( 0x0e00000, "ymsnd", 0 ) |
| 4334 | 4400 | ROM_LOAD( "240-v1.bin", 0x000000, 0x400000, CRC(f796265a) SHA1(736dff37eb91fc856b4d189249fb0de9b6c0813a) ) |
| 4335 | 4401 | ROM_LOAD( "240-v2.bin", 0x400000, 0x400000, CRC(2cb3f3bb) SHA1(697e677890892f4b028c9a27c66809ca0a8a9b18) ) |
| 4336 | //ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(df77b7fa) SHA1(4df971ce20bdb8c1ce8cc1692a32ac69505ffa9a) ) // bad? | |
| 4337 | 4402 | ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(8fe1367a) SHA1(093d7a4ac2b54ad7ffb2dc316fe29415f7a99535) ) |
| 4338 | 4403 | ROM_LOAD( "240-v4.bin", 0xc00000, 0x200000, CRC(996704d8) SHA1(0bf7a1d0660199dedf3c25be757eeab75cc6147e) ) |
| 4339 | 4404 | |
| r8581 | r8582 | |
| 4361 | 4426 | ROM_REGION( 0x0e00000, "ymsnd", 0 ) |
| 4362 | 4427 | ROM_LOAD( "240-v1.bin", 0x000000, 0x400000, CRC(f796265a) SHA1(736dff37eb91fc856b4d189249fb0de9b6c0813a) ) |
| 4363 | 4428 | ROM_LOAD( "240-v2.bin", 0x400000, 0x400000, CRC(2cb3f3bb) SHA1(697e677890892f4b028c9a27c66809ca0a8a9b18) ) |
| 4364 | //ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(df77b7fa) SHA1(4df971ce20bdb8c1ce8cc1692a32ac69505ffa9a) ) // bad? | |
| 4365 | 4429 | ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(8fe1367a) SHA1(093d7a4ac2b54ad7ffb2dc316fe29415f7a99535) ) |
| 4366 | 4430 | ROM_LOAD( "240-v4.bin", 0xc00000, 0x200000, CRC(996704d8) SHA1(0bf7a1d0660199dedf3c25be757eeab75cc6147e) ) |
| 4367 | 4431 | |
| r8581 | r8582 | |
| 4560 | 4624 | ROM_LOAD16_BYTE( "244-c2.bin", 0x000001, 0x800000, CRC(33aa0f35) SHA1(3443c7765c6aa177003d42bbfcac9f31d1e12575) ) /* Plane 2,3 */ |
| 4561 | 4625 | ROM_END |
| 4562 | 4626 | |
| 4563 | ROM_START( breakrev ) | |
| 4627 | ROM_START( breakrev ) /* MVS ONLY RELEASE */ | |
| 4564 | 4628 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 4565 | 4629 | ROM_LOAD16_WORD_SWAP( "245-p1.bin", 0x100000, 0x100000, CRC(c828876d) SHA1(1dcba850e5cf8219d0945612cfded6d20ca8682a) ) |
| 4566 | 4630 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r8581 | r8582 | |
| 4610 | 4674 | ROM_LOAD16_BYTE( "246-c6.bin", 0x2000001, 0x800000, CRC(7e2caae1) SHA1(d9de14e3e323664a8c5b7f1df1ba9ec7dd0e6a46) ) /* Plane 2,3 */ |
| 4611 | 4675 | ROM_END |
| 4612 | 4676 | |
| 4613 | ROM_START( flipshot ) | |
| 4677 | ROM_START( flipshot ) /* MVS ONLY RELEASE */ | |
| 4614 | 4678 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 4615 | 4679 | ROM_LOAD16_WORD_SWAP( "247-p1.bin", 0x000000, 0x080000, BAD_DUMP CRC(d2e7a7e3) SHA1(1ff4f070fcc658bbc7dc69e16c87f82d7392d100) ) |
| 4616 | 4680 | |
| r8581 | r8582 | |
| 4628 | 4692 | ROM_LOAD16_BYTE( "247-c2.bin", 0x000001, 0x200000, CRC(7d6d6e87) SHA1(6475b58b9f91c20d1f465f3e892de0c68e12a92b) ) /* Plane 2,3 */ |
| 4629 | 4693 | ROM_END |
| 4630 | 4694 | |
| 4631 | ROM_START( pbobbl2n ) | |
| 4695 | ROM_START( pbobbl2n ) /* MVS ONLY RELEASE */ | |
| 4632 | 4696 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 4633 | 4697 | ROM_LOAD16_WORD_SWAP( "248-p1.bin", 0x000000, 0x100000, CRC(9d6c0754) SHA1(95c70c2d51fc4de01e768e03cc800a850aaad5dc) ) |
| 4634 | 4698 | |
| r8581 | r8582 | |
| 4649 | 4713 | ROM_LOAD16_BYTE( "248-c4.bin", 0x800001, 0x100000, CRC(8efead3f) SHA1(f577d2f7c6f850b3d100c36947ad15e33dfa0bed) ) /* Plane 2,3 */ |
| 4650 | 4714 | ROM_END |
| 4651 | 4715 | |
| 4652 | ROM_START( ctomaday ) | |
| 4716 | ROM_START( ctomaday ) /* MVS ONLY RELEASE */ | |
| 4653 | 4717 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 4654 | 4718 | ROM_LOAD16_WORD_SWAP( "249-p1.bin", 0x100000, 0x100000, CRC(c9386118) SHA1(5554662c7bc8605889cac4a67fee05bbb4eb786f) ) |
| 4655 | 4719 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r8581 | r8582 | |
| 4804 | 4868 | ROM_LOAD16_BYTE( "251-c8.bin", 0x3000001, 0x800000, CRC(8d921c68) SHA1(42acf1d27d52a8e3b6262eb7df50693c0b135565) ) /* Plane 2,3 */ |
| 4805 | 4869 | ROM_END |
| 4806 | 4870 | |
| 4807 | ROM_START( kof99n ) /* Original Version - Encrypted GFX */ | |
| 4808 | /* If chip label / ID correct: Korean Version ? */ | |
| 4871 | ROM_START( kof99k ) /* Original Version - Encrypted GFX */ /* KOREAN VERSION */ | |
| 4809 | 4872 | ROM_REGION( 0x500000, "maincpu", 0 ) |
| 4810 | 4873 | ROM_LOAD16_WORD_SWAP( "152-p1.bin", 0x000000, 0x100000, CRC(f2c7ddfa) SHA1(d592eecc53d442c55c2f26a6a721fdf2924d2a5b) ) |
| 4811 | 4874 | ROM_LOAD16_WORD_SWAP( "152-p2.bin", 0x100000, 0x400000, CRC(274ef47a) SHA1(98654b68cc85c19d4a90b46f3110f551fa2e5357) ) |
| r8581 | r8582 | |
| 4871 | 4934 | ROM_LOAD16_BYTE( "251-c8p.bin", 0x3000001, 0x800000, CRC(ead513ce) SHA1(e9b07a0b01fdeb3004755a479df059c81b4d0ed6) ) /* Plane 2,3 */ |
| 4872 | 4935 | ROM_END |
| 4873 | 4936 | |
| 4874 | ROM_START( ganryu ) /* Original Version - Encrypted GFX */ | |
| 4937 | ROM_START( ganryu ) /* Original Version - Encrypted GFX */ /* MVS ONLY RELEASE */ | |
| 4875 | 4938 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 4876 | 4939 | ROM_LOAD16_WORD_SWAP( "252-p1.bin", 0x100000, 0x100000, CRC(4b8ac4fb) SHA1(93d90271bff281862b03beba3809cf95a47a1e44) ) |
| 4877 | 4940 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r8581 | r8582 | |
| 4999 | 5062 | ROM_LOAD16_BYTE( "253-c8p.bin", 0x3000001, 0x800000, CRC(f778fe99) SHA1(c963f6ba90a36d02991728b44ffcf174ca18268a) ) /* Plane 2,3 */ |
| 5000 | 5063 | ROM_END |
| 5001 | 5064 | |
| 5002 | ROM_START( s1945p ) /* Original Version, Encrypted GFX Roms */ | |
| 5065 | ROM_START( s1945p ) /* Original Version, Encrypted GFX Roms */ /* MVS ONLY RELEASE */ | |
| 5003 | 5066 | ROM_REGION( 0x500000, "maincpu", 0 ) |
| 5004 | 5067 | ROM_LOAD16_WORD_SWAP( "254-p1.bin", 0x000000, 0x100000, CRC(ff8efcff) SHA1(dcaeaca573385c172ecc43ee6bee355359091893) ) |
| 5005 | 5068 | ROM_LOAD16_WORD_SWAP( "254-p2.bin", 0x100000, 0x400000, CRC(efdfd4dd) SHA1(254f3e1b546eed788f7ae919be9d1bf9702148ce) ) |
| r8581 | r8582 | |
| 5033 | 5096 | ROM_LOAD16_BYTE( "254-c8.bin", 0x3000001, 0x800000, CRC(66848c7d) SHA1(24d4ed627940a4cf8129761c1da15556e52e199c) ) /* Plane 2,3 */ |
| 5034 | 5097 | ROM_END |
| 5035 | 5098 | |
| 5036 | ROM_START( preisle2 ) /* Original Version, Encrypted GFX */ | |
| 5099 | ROM_START( preisle2 ) /* Original Version, Encrypted GFX */ /* MVS ONLY RELEASE */ | |
| 5037 | 5100 | ROM_REGION( 0x500000, "maincpu", 0 ) |
| 5038 | 5101 | ROM_LOAD16_WORD_SWAP( "255-p1.bin", 0x000000, 0x100000, CRC(dfa3c0f3) SHA1(793c6a46f3a794536dc0327a3f3fad20e25ab661) ) |
| 5039 | 5102 | ROM_LOAD16_WORD_SWAP( "255-p2.bin", 0x100000, 0x400000, CRC(42050b80) SHA1(0981a8295d43b264c2b95e5d7568bdda4e64c976) ) |
| r8581 | r8582 | |
| 5064 | 5127 | ROM_LOAD16_BYTE( "255-c6.bin", 0x2000001, 0x800000, CRC(b001bdd3) SHA1(394ba8004644844ee97a120cfda48aeac685af8a) ) /* Plane 2,3 */ |
| 5065 | 5128 | ROM_END |
| 5066 | 5129 | |
| 5067 | ROM_START( mslug3 ) /* Original Version - Encrypted Code & GFX */ /* revision 2000.4.1 */ | |
| 5130 | ROM_START( mslug3 ) /* Original Version - Encrypted Code & GFX */ /* revision 2000.4.1 */ /* MVS VERSION */ | |
| 5068 | 5131 | ROM_REGION( 0x900000, "maincpu", 0 ) |
| 5069 | 5132 | ROM_LOAD16_WORD_SWAP( "256-sma.bin", 0x0c0000, 0x040000, CRC(9cd55736) SHA1(d6efb2b313127c2911d47d9324626b3f1e7c6ccb) ) /* stored in the custom chip */ |
| 5070 | ROM_LOAD16_WORD_SWAP( "256-p1.bin", 0x100000, 0x400000, CRC(b07edfd5) SHA1(dcbd9e500bfae98d754e55cdbbbbf9401013f8ee) ) | |
| 5071 | ROM_LOAD16_WORD_SWAP( "256-p2.bin", 0x500000, 0x400000, CRC(6097c26b) SHA1(248ec29d21216f29dc6f5f3f0e1ad1601b3501b6) ) | |
| 5133 | /* The SMA for this release has a green colour marking; the older revision has a white colour marking */ | |
| 5134 | ROM_LOAD16_WORD_SWAP( "256-pg1.bin", 0x100000, 0x400000, CRC(b07edfd5) SHA1(dcbd9e500bfae98d754e55cdbbbbf9401013f8ee) ) | |
| 5135 | ROM_LOAD16_WORD_SWAP( "256-pg2.bin", 0x500000, 0x400000, CRC(6097c26b) SHA1(248ec29d21216f29dc6f5f3f0e1ad1601b3501b6) ) | |
| 5072 | 5136 | |
| 5073 | 5137 | ROM_Y_ZOOM |
| 5074 | 5138 | |
| r8581 | r8582 | |
| 5100 | 5164 | ROM_LOAD16_BYTE( "256-c8.bin", 0x3000001, 0x800000, CRC(4d9be34c) SHA1(a737bdfa2b815aea7067e7af2636e83a9409c414) ) /* Plane 2,3 */ |
| 5101 | 5165 | ROM_END |
| 5102 | 5166 | |
| 5103 | ROM_START( mslug3h ) /* Original Version - Encrypted GFX */ /* | |
| 5167 | ROM_START( mslug3h ) /* Original Version - Encrypted GFX */ /* revision 2000.3.17 */ /* AES VERSION */ | |
| 5104 | 5168 | ROM_REGION( 0x500000, "maincpu", 0 ) |
| 5105 | 5169 | ROM_LOAD16_WORD_SWAP( "256-ph1.bin", 0x000000, 0x100000, CRC(9c42ca85) SHA1(7a8f77a89867b889295ae9b9dfd4ba28f02d234d) ) |
| 5106 | 5170 | ROM_LOAD16_WORD_SWAP( "256-ph2.bin", 0x100000, 0x400000, CRC(1f3d8ce8) SHA1(08b05a8abfb86ec09a5e758d6273acf1489961f9) ) |
| r8581 | r8582 | |
| 5135 | 5199 | ROM_LOAD16_BYTE( "256-c8.bin", 0x3000001, 0x800000, CRC(4d9be34c) SHA1(a737bdfa2b815aea7067e7af2636e83a9409c414) ) /* Plane 2,3 */ |
| 5136 | 5200 | ROM_END |
| 5137 | 5201 | |
| 5138 | ROM_START( kof2000 ) /* Original Version, Encrypted Code + Sound + GFX Roms */ | |
| 5202 | ROM_START( kof2000 ) /* Original Version, Encrypted Code + Sound + GFX Roms */ /* MVS AND AES VERSION */ | |
| 5139 | 5203 | ROM_REGION( 0x900000, "maincpu", 0 ) |
| 5140 | 5204 | ROM_LOAD16_WORD_SWAP( "257-sma.bin", 0x0c0000, 0x040000, CRC(71c6e6bb) SHA1(1bd29ded4c6b29780db8e8b772c452189699ca89) ) /* stored in the custom chip */ |
| 5141 | 5205 | ROM_LOAD16_WORD_SWAP( "257-p1.bin", 0x100000, 0x400000, CRC(60947b4c) SHA1(5faa0a7ac7734d6c8e276589bd12dd574264647d) ) |
| r8581 | r8582 | |
| 5206 | 5270 | ROM_LOAD16_BYTE( "257-c8.bin", 0x3000001, 0x800000, CRC(b1afa60b) SHA1(b916184f5cfe4121752270f4f65abf35d8eb0519) ) /* Plane 2,3 */ |
| 5207 | 5271 | ROM_END |
| 5208 | 5272 | |
| 5209 | ROM_START( bangbead ) /* Original Version - Encrypted GFX */ | |
| 5273 | ROM_START( bangbead ) /* Original Version - Encrypted GFX */ /* MVS ONLY RELEASE */ | |
| 5210 | 5274 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 5211 | 5275 | ROM_LOAD16_WORD_SWAP( "259-p1.bin", 0x100000, 0x100000, CRC(88a37f8b) SHA1(566db84850fad5e8fe822e8bba910a33e083b550) ) |
| 5212 | 5276 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r8581 | r8582 | |
| 5260 | 5324 | ROM_END |
| 5261 | 5325 | #endif |
| 5262 | 5326 | |
| 5263 | ROM_START( nitd ) /* Original Version - Encrypted GFX */ | |
| 5327 | ROM_START( nitd ) /* Original Version - Encrypted GFX */ /* MVS ONLY RELEASE */ | |
| 5264 | 5328 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 5265 | 5329 | ROM_LOAD16_WORD_SWAP( "260-p1.bin", 0x000000, 0x080000, CRC(61361082) SHA1(441f3f41c1aa752c0e0a9a0b1d92711d9e636b85) ) |
| 5266 | 5330 | |
| r8581 | r8582 | |
| 5390 | 5454 | ROM_END |
| 5391 | 5455 | |
| 5392 | 5456 | ROM_START( mslug4 ) /* Original Version - Encrypted GFX */ /* MVS VERSION */ |
| 5393 | ROM_REGION( 0x500000, "maincpu", 0 ) | |
| 5394 | 5457 | /* There also exist carts where p1 label is pg1; |
| 5395 | 5458 | The PG1 revision has a Japanese cart label, SN 02Jxxxxx |
| 5396 | 5459 | The P1 revision has a US/EUR cart label, SN 02Txxxxx |
| 5397 | 5460 | Rom data on both is identical. |
| 5398 | 5461 | These carts were manufactured by Mega Enterprise, not SNK. */ |
| 5462 | ROM_REGION( 0x500000, "maincpu", 0 ) | |
| 5399 | 5463 | ROM_LOAD16_WORD_SWAP( "263-p1.bin", 0x000000, 0x100000, CRC(27e4def3) SHA1(a08785e8145981bb6b5332a3b2df7eb321253cca) ) |
| 5400 | 5464 | ROM_LOAD16_WORD_SWAP( "263-p2.bin", 0x100000, 0x400000, CRC(fdb7aed8) SHA1(dbeaec38f44e58ffedba99e70fa1439c2bf0dfa3) ) |
| 5401 | 5465 | |
| r8581 | r8582 | |
| 5565 | 5629 | ROM_LOAD16_BYTE( "266-c8.bin", 0x3000001, 0x800000, CRC(29873d33) SHA1(dc77f129ed49b8d40d0d4241feef3f6c2f19a987) ) /* Plane 2,3 */ |
| 5566 | 5630 | ROM_END |
| 5567 | 5631 | |
| 5568 | ROM_START( pnyaa ) /* Encrypted Set */ /* MVS | |
| 5632 | ROM_START( pnyaa ) /* Encrypted Set */ /* MVS | |
| 5569 | 5633 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 5570 | 5634 | ROM_LOAD16_WORD_SWAP( "267-p1.bin", 0x000000, 0x100000, CRC(112fe2c0) SHA1(01420e051f0bdbd4f68ce306a3738161b96f8ba8) ) |
| 5571 | 5635 | |
| r8581 | r8582 | |
| 5838 | 5902 | ROM_LOAD16_BYTE( "271-c8k.bin", 0x3000001, 0x800000, CRC(312f528c) SHA1(b4ad75f54f730ada6cb00112b74022250f055725) ) /* Plane 2,3 */ |
| 5839 | 5903 | ROM_END |
| 5840 | 5904 | |
| 5841 | ROM_START( samsh5sp ) /* Encrypted Set */ | |
| 5905 | ROM_START( samsh5sp ) /* Encrypted Set */ /* MVS VERSION */ | |
| 5842 | 5906 | ROM_REGION( 0x800000, "maincpu", 0 ) |
| 5843 | 5907 | ROM_LOAD16_WORD_SWAP( "272-p1.bin", 0x000000, 0x400000, CRC(fb7a6bba) SHA1(f68c527208d8a55ca44b0caaa8ab66b3a0ffdfe5) ) |
| 5844 | 5908 | ROM_LOAD16_WORD_SWAP( "272-p2.bin", 0x400000, 0x400000, CRC(63492ea6) SHA1(6ba946acb62c63ed61a42fe72b7fff3828883bcc) ) |
| r8581 | r8582 | |
| 5872 | 5936 | ROM_LOAD16_BYTE( "272-c8.bin", 0x3000001, 0x800000, CRC(d49773cd) SHA1(cd8cf3b762d381c1f8f12919579c84a7ef7efb3f) ) /* Plane 2,3 */ |
| 5873 | 5937 | ROM_END |
| 5874 | 5938 | |
| 5875 | ROM_START( samsh5sph ) /* Encrypted Set */ | |
| 5939 | ROM_START( samsh5sph ) /* Encrypted Set */ /* AES VERSION */ | |
| 5876 | 5940 | ROM_REGION( 0x800000, "maincpu", 0 ) |
| 5877 | 5941 | ROM_LOAD16_WORD_SWAP( "272-p1c.bin", 0x000000, 0x400000, CRC(9291794d) SHA1(66588ff9b00ffad6508b03423548984e28a3209d) ) |
| 5878 | 5942 | ROM_LOAD16_WORD_SWAP( "272-p2c.bin", 0x400000, 0x400000, CRC(fa1a7dd8) SHA1(62443dad76d6c1e18f515d7d4ef8e1295a4b7f1d) ) |
| r8581 | r8582 | |
| 5907 | 5971 | ROM_LOAD16_BYTE( "272-c8.bin", 0x3000001, 0x800000, CRC(d49773cd) SHA1(cd8cf3b762d381c1f8f12919579c84a7ef7efb3f) ) /* Plane 2,3 */ |
| 5908 | 5972 | ROM_END |
| 5909 | 5973 | |
| 5910 | ROM_START( samsh5spn ) /* Encrypted Set */ | |
| 5974 | ROM_START( samsh5spn ) /* Encrypted Set */ /* AES VERSION */ | |
| 5911 | 5975 | ROM_REGION( 0x800000, "maincpu", 0 ) |
| 5912 | 5976 | ROM_LOAD16_WORD_SWAP( "272-p1ca.bin", 0x000000, 0x400000, CRC(c30a08dd) SHA1(66864954017c841d7ca8490112c3aa7a71a4da70) ) |
| 5913 | 5977 | ROM_LOAD16_WORD_SWAP( "272-p2ca.bin", 0x400000, 0x400000, CRC(bd64a518) SHA1(aa259a168930f106377d680db444535411b3bce0) ) |
| r8581 | r8582 | |
| 5942 | 6006 | ROM_LOAD16_BYTE( "272-c8.bin", 0x3000001, 0x800000, CRC(d49773cd) SHA1(cd8cf3b762d381c1f8f12919579c84a7ef7efb3f) ) /* Plane 2,3 */ |
| 5943 | 6007 | ROM_END |
| 5944 | 6008 | |
| 5945 | ROM_START( jockeygp ) | |
| 6009 | ROM_START( jockeygp ) /* Officially licensed? Cart has a holographic 'SNK' sticker applied */ | |
| 6010 | /* PROG board used: MVS PROGV (2000.11.17) | |
| 6011 | CHA board used: NEO-MVS CHAFIO (1999.6.14) */ | |
| 5946 | 6012 | ROM_REGION( 0x200000, "maincpu", 0 ) |
| 5947 | ROM_LOAD16_WORD_SWAP( "jgp-p1.bin", 0x000000, 0x100000, CRC(2fb7f388) SHA1(e3c9b03944b4c10cf5081caaf9c8be1f08c06493) ) | |
| 6013 | ROM_LOAD16_WORD_SWAP( "008-epr.p1", 0x000000, 0x100000, CRC(2fb7f388) SHA1(e3c9b03944b4c10cf5081caaf9c8be1f08c06493) ) | |
| 6014 | /* P on eprom, correct chip label unknown */ | |
| 5948 | 6015 | ROM_FILL( 0x100000, 0x100000, 0xff ) |
| 5949 | 6016 | |
| 5950 | 6017 | ROM_Y_ZOOM |
| r8581 | r8582 | |
| 5956 | 6023 | ROM_LOAD( "sfix.sfix", 0x000000, 0x20000, CRC(c2ea0cfd) SHA1(fd4a618cdcdbf849374f0a50dd8efe9dbab706c3) ) |
| 5957 | 6024 | |
| 5958 | 6025 | /* Encrypted */ |
| 5959 | NEO_BIOS_AUDIO_ENCRYPTED_512K( " | |
| 6026 | NEO_BIOS_AUDIO_ENCRYPTED_512K( "008-mg1.bin", CRC(d163c690) SHA1(1dfd04d20c5985037f07cd01000d0b04f3a8f4f4) ) | |
| 5960 | 6027 | |
| 5961 | 6028 | ROM_REGION( 0x0200000, "ymsnd", 0 ) |
| 5962 | ROM_LOAD( " | |
| 6029 | ROM_LOAD( "008-v1.bin", 0x000000, 0x200000, CRC(443eadba) SHA1(3def3c22f0e276bc4c2fc7ff70ce473c08b0d2df) ) | |
| 5963 | 6030 | |
| 5964 | 6031 | NO_DELTAT_REGION |
| 5965 | 6032 | |
| 5966 | 6033 | ROM_REGION( 0x1000000, "sprites", 0 ) |
| 5967 | 6034 | /* Encrypted */ |
| 5968 | ROM_LOAD16_BYTE( "jgp-c1.bin", 0x0000000, 0x800000, CRC(a9acbf18) SHA1(d55122c70cbe78c2679598dc07863e1d1d1a31df) ) /* Plane 0,1 */ | |
| 5969 | ROM_LOAD16_BYTE( "jgp-c2.bin", 0x0000001, 0x800000, CRC(6289eef9) SHA1(a2ede77bb2468a2e1486d74745a22a5451026039) ) /* Plane 2,3 */ | |
| 6035 | ROM_LOAD16_BYTE( "008-c1.bin", 0x0000000, 0x800000, CRC(a9acbf18) SHA1(d55122c70cbe78c2679598dc07863e1d1d1a31df) ) /* Plane 0,1 */ | |
| 6036 | ROM_LOAD16_BYTE( "008-c2.bin", 0x0000001, 0x800000, CRC(6289eef9) SHA1(a2ede77bb2468a2e1486d74745a22a5451026039) ) /* Plane 2,3 */ | |
| 5970 | 6037 | ROM_END |
| 5971 | 6038 | |
| 5972 | ROM_START( vliner ) | |
| 6039 | ROM_START( vliner ) /* Officially licensed? Cart has a holographic 'SNK' sticker applied */ | |
| 6040 | /* PROG board used: MVS PROGV (2000.11.17) | |
| 6041 | CHA board used: MVS CHAV (2000.10.26 */ | |
| 5973 | 6042 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 5974 | ROM_LOAD16_WORD_SWAP( "vl-p1.bin", 0x000000, 0x080000, CRC(72a2c043) SHA1(b34bcc10ff33e4465126a6865fe8bf6b6a3d6cee) ) | |
| 6043 | ROM_LOAD16_WORD_SWAP( "epr.p1", 0x000000, 0x080000, CRC(72a2c043) SHA1(b34bcc10ff33e4465126a6865fe8bf6b6a3d6cee) ) | |
| 6044 | /* P on eprom, correct chip label unknown */ | |
| 5975 | 6045 | |
| 5976 | NEO_SFIX_128K( " | |
| 6046 | NEO_SFIX_128K( " | |
| 5977 | 6047 | |
| 5978 | NEO_BIOS_AUDIO_64K( " | |
| 6048 | NEO_BIOS_AUDIO_64K( " | |
| 5979 | 6049 | |
| 5980 | 6050 | ROM_REGION( 0x200000, "ymsnd", ROMREGION_ERASE00 ) |
| 5981 | 6051 | |
| 5982 | 6052 | NO_DELTAT_REGION |
| 5983 | 6053 | |
| 5984 | 6054 | ROM_REGION( 0x400000, "sprites", 0 ) |
| 5985 | ROM_LOAD16_BYTE( "vl-c1.bin", 0x000000, 0x80000, CRC(5118f7c0) SHA1(b6fb6e9cbb660580d98e00780ebf248c0995145a) ) /* Plane 0,1 */ | |
| 5986 | ROM_LOAD16_BYTE( "vl-c2.bin", 0x000001, 0x80000, CRC(efe9b33e) SHA1(910c651aadce9bf59e51c338ceef62287756d2e8) ) /* Plane 2,3 */ | |
| 6055 | ROM_LOAD16_BYTE( "c-1.c1", 0x000000, 0x80000, CRC(5118f7c0) SHA1(b6fb6e9cbb660580d98e00780ebf248c0995145a) ) /* Plane 0,1 */ | |
| 6056 | ROM_LOAD16_BYTE( "c-2.c2", 0x000001, 0x80000, CRC(efe9b33e) SHA1(910c651aadce9bf59e51c338ceef62287756d2e8) ) /* Plane 2,3 */ | |
| 5987 | 6057 | ROM_END |
| 5988 | 6058 | |
| 5989 | ROM_START( vlinero ) | |
| 6059 | ROM_START( vlinero ) /* Officially licensed? Cart has a holographic 'SNK' sticker applied */ | |
| 6060 | /* PROG board used: MVS PROGV (2000.11.17) | |
| 6061 | CHA board used: MVS CHAV (2000.10.26 */ | |
| 5990 | 6062 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 5991 | ROM_LOAD16_WORD_SWAP( "vl-p1_54.bin", 0x000000, 0x080000, CRC(172efc18) SHA1(8ca739f8780a9e6fa19ac2c3e931d75871603f58) ) | |
| 6063 | ROM_LOAD16_WORD_SWAP( "epr_54.p1", 0x000000, 0x080000, CRC(172efc18) SHA1(8ca739f8780a9e6fa19ac2c3e931d75871603f58) ) | |
| 6064 | /* P on eprom, correct chip label unknown */ | |
| 5992 | 6065 | |
| 5993 | NEO_SFIX_128K( " | |
| 6066 | NEO_SFIX_128K( " | |
| 5994 | 6067 | |
| 5995 | NEO_BIOS_AUDIO_64K( " | |
| 6068 | NEO_BIOS_AUDIO_64K( " | |
| 5996 | 6069 | |
| 5997 | 6070 | ROM_REGION( 0x200000, "ymsnd", ROMREGION_ERASE00 ) |
| 5998 | 6071 | |
| 5999 | 6072 | NO_DELTAT_REGION |
| 6000 | 6073 | |
| 6001 | 6074 | ROM_REGION( 0x400000, "sprites", 0 ) |
| 6002 | ROM_LOAD16_BYTE( "vl-c1.bin", 0x000000, 0x80000, CRC(5118f7c0) SHA1(b6fb6e9cbb660580d98e00780ebf248c0995145a) ) /* Plane 0,1 */ | |
| 6003 | ROM_LOAD16_BYTE( "vl-c2.bin", 0x000001, 0x80000, CRC(efe9b33e) SHA1(910c651aadce9bf59e51c338ceef62287756d2e8) ) /* Plane 2,3 */ | |
| 6075 | ROM_LOAD16_BYTE( "c-1.c1", 0x000000, 0x80000, CRC(5118f7c0) SHA1(b6fb6e9cbb660580d98e00780ebf248c0995145a) ) /* Plane 0,1 */ | |
| 6076 | ROM_LOAD16_BYTE( "c-2.c2", 0x000001, 0x80000, CRC(efe9b33e) SHA1(910c651aadce9bf59e51c338ceef62287756d2e8) ) /* Plane 2,3 */ | |
| 6004 | 6077 | ROM_END |
| 6005 | 6078 | |
| 6006 | 6079 | |
| 6080 | /****************************************************************************/ | |
| 6081 | ||
| 6007 | 6082 | /* Jamma PCB sets */ |
| 6008 | 6083 | |
| 6009 | 6084 | |
| 6010 | /* | |
| 6085 | /* | |
| 6011 | 6086 | The following Jamma PCB boards are known: |
| 6012 | 6087 | |
| 6013 | 6088 | SNK vs. CAPCOM SVC CHAOS (svcpcb) |
| r8581 | r8582 | |
| 6021 | 6096 | |
| 6022 | 6097 | The King of Fighters 2003 |
| 6023 | 6098 | NEO-MVH MVOC 2003.11.3 |
| 6024 | * | |
| 6099 | * | |
| 6025 | 6100 | |
| 6026 | 6101 | |
| 6027 | 6102 | /* complete redump required */ |
| r8581 | r8582 | |
| 6165 | 6240 | ROM_END |
| 6166 | 6241 | |
| 6167 | 6242 | |
| 6243 | /****************************************************************************/ | |
| 6244 | ||
| 6168 | 6245 | /* Bootleg sets */ |
| 6169 | 6246 | |
| 6170 | ||
| 6171 | 6247 | /* |
| 6172 | Most bootleg sets are incomplete (missing 'C', 'V' and 'M' roms). | |
| 6173 | Verification required. | |
| 6248 | About supported sets: | |
| 6174 | 6249 | |
| 6250 | For many bootleg sets, only P's (program rom), M1 (sound driver) and S1 (text layer) roms were dumped. | |
| 6251 | For these sets it is assumed that the original V's (sound data) and C's (gfx data) are used. | |
| 6252 | This requires verification. | |
| 6253 | ||
| 6175 | 6254 | */ |
| 6176 | 6255 | |
| 6177 | 6256 | |
| r8581 | r8582 | |
| 7186 | 7265 | ROM_LOAD16_BYTE( "dig-c2.bin", 0x000001, 0x080000, CRC(3e632161) SHA1(83711c4286fb1d9f3f91414ac6e5fed36618033e) ) /* Plane 2,3 */ |
| 7187 | 7266 | ROM_END |
| 7188 | 7267 | |
| 7189 | /* NeoPrint | |
| 7190 | 7268 | |
| 7191 | ||
| 7269 | /* | |
| 7192 | 7270 | |
| 7193 | The cartridges fit in a normal NeoGeo unit but they do not work. They appear to be designed to work with a | |
| 7194 | different motherboard (and different bios rom) | |
| 7271 | /* | |
| 7272 | Very little is known about the NeoPrint system at this time. | |
| 7195 | 7273 | |
| 7196 | 98best44 is the only NeoPrint cart we've seen with a program rom. | |
| 7197 | Many of the others only contain graphic roms. I'm speculating that the NeoPrint was a multi-slot system and | |
| 7198 | had a concept of Master and Slave cartridges, and the slave ones simply added new graphic themes. | |
| 7274 | The cartridges fit in a normal Neo Geo unit but they do not work. They appear to be designed to work with a | |
| 7275 | different motherboard (and different bios rom) | |
| 7199 | 7276 | |
| 7200 | If anybody has any actual factual information on the NeoPrint system, please contribute it. | |
| 7277 | 98best44 is the only NeoPrint cart we've seen with a program rom. | |
| 7278 | Many of the others only contain graphic roms. I'm speculating that the NeoPrint was a multi-slot system and | |
| 7279 | had a concept of Master and Slave cartridges, and the slave ones simply added new graphic themes. | |
| 7201 | 7280 | |
| 7281 | If anybody has any actual factual information on the NeoPrint system, please contribute it. | |
| 7202 | 7282 | */ |
| 7203 | 7283 | |
| 7204 | /* | |
| 7205 | 7284 | |
| 7206 | logo: Neo Print | |
| 7207 | ||
| 7208 | small text: Cassette supporting Neo Print and Neo Print Multi | |
| 7209 | ||
| 7210 | (cassette=cartridge) | |
| 7211 | ||
| 7212 | title: '98 NeoPri Best 44 version | |
| 7213 | ||
| 7214 | */ | |
| 7215 | ||
| 7216 | 7285 | ROM_START( 98best44 ) |
| 7286 | /* logo: Neo Print | |
| 7287 | small text: Cassette supporting Neo Print and Neo Print Multi | |
| 7288 | (cassette=cartridge) | |
| 7289 | title: '98 NeoPri Best 44 version */ | |
| 7217 | 7290 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 7218 | 7291 | ROM_LOAD16_WORD_SWAP( "p060-ep1", 0x000000, 0x080000, CRC(d42e505d) SHA1(0ad6b0288f36c339832730a03e53cbc07dab4f82)) |
| 7219 | 7292 | |
| r8581 | r8582 | |
| 7247 | 7320 | ROM_END |
| 7248 | 7321 | |
| 7249 | 7322 | |
| 7250 | /* | |
| 7323 | /****************************************************************************/ | |
| 7251 | 7324 | |
| 7325 | /* Game specific input definitions */ | |
| 7326 | ||
| 7327 | ||
| 7328 | static INPUT_PORTS_START( svcpcb ) | |
| 7329 | STANDARD_IN0 | |
| 7330 | ||
| 7331 | STANDARD_IN1 | |
| 7332 | ||
| 7333 | STANDARD_IN2 | |
| 7334 | ||
| 7335 | STANDARD_IN3 | |
| 7336 | ||
| 7337 | STANDARD_IN4 | |
| 7338 | ||
| 7339 | /* the rom banking is tied directly to the dipswitch?, or is there a bank write somewhere? */ | |
| 7340 | PORT_START("HARDDIP") | |
| 7341 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Region ) ) PORT_DIPLOCATION("HARDDIP:3") | |
| 7342 | PORT_DIPSETTING( 0x00, DEF_STR( Asia ) ) | |
| 7343 | PORT_DIPSETTING( 0x01, DEF_STR( Japan ) ) | |
| 7344 | INPUT_PORTS_END | |
| 7345 | ||
| 7346 | ||
| 7347 | static INPUT_PORTS_START( ms5pcb ) | |
| 7348 | STANDARD_IN0 | |
| 7349 | ||
| 7350 | STANDARD_IN1 | |
| 7351 | ||
| 7352 | STANDARD_IN2 | |
| 7353 | ||
| 7354 | STANDARD_IN3 | |
| 7355 | ||
| 7356 | STANDARD_IN4 | |
| 7357 | ||
| 7358 | /* the rom banking is tied directly to the dipswitch?, or is there a bank write somewhere? */ | |
| 7359 | PORT_START("HARDDIP") | |
| 7360 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Region ) ) PORT_DIPLOCATION("HARDDIP:3") | |
| 7361 | PORT_DIPSETTING( 0x00, DEF_STR( Asia ) ) | |
| 7362 | PORT_DIPSETTING( 0x01, DEF_STR( Japan ) ) | |
| 7363 | INPUT_PORTS_END | |
| 7364 | ||
| 7365 | ||
| 7366 | static INPUT_PORTS_START( kog ) | |
| 7367 | STANDARD_IN0 | |
| 7368 | ||
| 7369 | STANDARD_IN1 | |
| 7370 | ||
| 7371 | STANDARD_IN2 | |
| 7372 | ||
| 7373 | STANDARD_IN3 | |
| 7374 | ||
| 7375 | STANDARD_IN4 | |
| 7376 | ||
| 7377 | /* a jumper on the pcb overlays a ROM address, very strange but that's how it works. */ | |
| 7378 | PORT_START("JUMPER") | |
| 7379 | PORT_DIPNAME( 0x0001, 0x0001, "Title Language" ) PORT_DIPLOCATION("CART-JUMPER:1") | |
| 7380 | PORT_DIPSETTING( 0x0001, DEF_STR( English ) ) | |
| 7381 | PORT_DIPSETTING( 0x0000, "Non-English" ) | |
| 7382 | PORT_BIT( 0x00fe, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 7383 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7384 | INPUT_PORTS_END | |
| 7385 | ||
| 7386 | ||
| 7387 | static INPUT_PORTS_START( mjneogeo ) | |
| 7388 | PORT_START("IN0") | |
| 7389 | PORT_DIPNAME( 0x0001, 0x0001, "Test Switch" ) PORT_DIPLOCATION("SW:1") | |
| 7390 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 7391 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 7392 | PORT_DIPNAME( 0x0002, 0x0002, "Coin Chutes?" ) PORT_DIPLOCATION("SW:2") | |
| 7393 | PORT_DIPSETTING( 0x0000, "1?" ) | |
| 7394 | PORT_DIPSETTING( 0x0002, "2?" ) | |
| 7395 | PORT_DIPNAME( 0x0004, 0x0000, "Mahjong Control Panel" ) PORT_DIPLOCATION("SW:3") | |
| 7396 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 7397 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 7398 | PORT_DIPNAME( 0x0018, 0x0018, "COMM Setting (Cabinet No.)" ) PORT_DIPLOCATION("SW:4,5") | |
| 7399 | PORT_DIPSETTING( 0x0018, "1" ) | |
| 7400 | PORT_DIPSETTING( 0x0008, "2" ) | |
| 7401 | PORT_DIPSETTING( 0x0010, "3" ) | |
| 7402 | PORT_DIPSETTING( 0x0000, "4" ) | |
| 7403 | PORT_DIPNAME( 0x0020, 0x0020, "COMM Setting (Link Enable)" ) PORT_DIPLOCATION("SW:6") | |
| 7404 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 7405 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 7406 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW:7") | |
| 7407 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 7408 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 7409 | PORT_DIPNAME( 0x0080, 0x0080, "Freeze" ) PORT_DIPLOCATION("SW:8") | |
| 7410 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 7411 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 7412 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(mahjong_controller_r, NULL) | |
| 7413 | ||
| 7414 | STANDARD_IN1 | |
| 7415 | ||
| 7416 | STANDARD_IN2 | |
| 7417 | ||
| 7418 | STANDARD_IN3 | |
| 7419 | ||
| 7420 | STANDARD_IN4 | |
| 7421 | ||
| 7422 | PORT_START("MAHJONG1") | |
| 7423 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_A ) | |
| 7424 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_B ) | |
| 7425 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_C ) | |
| 7426 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_D ) | |
| 7427 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_E ) | |
| 7428 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_MAHJONG_F ) | |
| 7429 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_MAHJONG_G ) | |
| 7430 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7431 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 7432 | ||
| 7433 | PORT_START("MAHJONG2") | |
| 7434 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_H ) | |
| 7435 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_I ) | |
| 7436 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_J ) | |
| 7437 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_K ) | |
| 7438 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_L ) | |
| 7439 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_MAHJONG_M ) | |
| 7440 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_MAHJONG_N ) | |
| 7441 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7442 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 7443 | ||
| 7444 | PORT_START("MAHJONG3") | |
| 7445 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) | |
| 7446 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) | |
| 7447 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) | |
| 7448 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) | |
| 7449 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 7450 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 7451 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 7452 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) | |
| 7453 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 7454 | ||
| 7455 | PORT_START("MAHJONG4") | |
| 7456 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_PON ) | |
| 7457 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_MAHJONG_CHI ) | |
| 7458 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) | |
| 7459 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) | |
| 7460 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_MAHJONG_REACH ) | |
| 7461 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7462 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7463 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7464 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 7465 | INPUT_PORTS_END | |
| 7466 | ||
| 7467 | ||
| 7468 | static INPUT_PORTS_START( irrmaze ) | |
| 7469 | PORT_START("IN0") | |
| 7470 | STANDARD_DIPS | |
| 7471 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(multiplexed_controller_r, (void *)0) | |
| 7472 | ||
| 7473 | PORT_START("IN1") | |
| 7474 | PORT_BIT( 0x0fff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7475 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 7476 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 7477 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 7478 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 7479 | ||
| 7480 | PORT_START("IN2") | |
| 7481 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7482 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 ) | |
| 7483 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7484 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START2 ) | |
| 7485 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7486 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 7487 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7488 | ||
| 7489 | STANDARD_IN3 | |
| 7490 | ||
| 7491 | PORT_START("IN4") | |
| 7492 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 7493 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 7494 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 7495 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 7496 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 7497 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 7498 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* this bit is used.. */ | |
| 7499 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Enter BIOS") PORT_CODE(KEYCODE_F2) | |
| 7500 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7501 | ||
| 7502 | PORT_START("IN0-0") | |
| 7503 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(10) PORT_KEYDELTA(20) PORT_REVERSE | |
| 7504 | ||
| 7505 | PORT_START("IN0-1") | |
| 7506 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(10) PORT_KEYDELTA(20) PORT_REVERSE | |
| 7507 | INPUT_PORTS_END | |
| 7508 | ||
| 7509 | ||
| 7510 | static INPUT_PORTS_START( popbounc ) | |
| 7511 | PORT_START("IN0") | |
| 7512 | STANDARD_DIPS | |
| 7513 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(multiplexed_controller_r, (void *)0) | |
| 7514 | ||
| 7515 | PORT_START("IN1") | |
| 7516 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7517 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(multiplexed_controller_r, (void *)1) | |
| 7518 | ||
| 7519 | STANDARD_IN2 | |
| 7520 | ||
| 7521 | STANDARD_IN3 | |
| 7522 | ||
| 7523 | STANDARD_IN4 | |
| 7524 | ||
| 7525 | /* Fake inputs read by CUSTOM_INPUT handlers */ | |
| 7526 | PORT_START("IN0-0") | |
| 7527 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(20) | |
| 7528 | ||
| 7529 | PORT_START("IN0-1") | |
| 7530 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) | |
| 7531 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) | |
| 7532 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) | |
| 7533 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) | |
| 7534 | PORT_BIT( 0x90, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* note it needs it from 0x80 when using paddle */ | |
| 7535 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 7536 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) | |
| 7537 | ||
| 7538 | PORT_START("IN1-0") | |
| 7539 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(20) PORT_PLAYER(2) | |
| 7540 | ||
| 7541 | PORT_START("IN1-1") | |
| 7542 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 7543 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 7544 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 7545 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 7546 | PORT_BIT( 0x90, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) /* note it needs it from 0x80 when using paddle */ | |
| 7547 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 7548 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 7549 | INPUT_PORTS_END | |
| 7550 | ||
| 7551 | ||
| 7552 | static INPUT_PORTS_START( vliner ) | |
| 7553 | PORT_START("IN0") | |
| 7554 | STANDARD_DIPS | |
| 7555 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) | |
| 7556 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) | |
| 7557 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) | |
| 7558 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) | |
| 7559 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("View Payout Table/Big") | |
| 7560 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Bet/Small") | |
| 7561 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Stop/Double Up") | |
| 7562 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Start/Collect") | |
| 7563 | ||
| 7564 | PORT_START("IN1") | |
| 7565 | PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7566 | ||
| 7567 | PORT_START("IN2") | |
| 7568 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7569 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7570 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* this bit is used.. */ | |
| 7571 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7572 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* this bit is used.. */ | |
| 7573 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 7574 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7575 | ||
| 7576 | PORT_START("IN3") | |
| 7577 | PORT_BIT( 0x003f, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7578 | PORT_BIT( 0x00c0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_calendar_status, NULL) | |
| 7579 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_audio_result, NULL) | |
| 7580 | ||
| 7581 | STANDARD_IN4 | |
| 7582 | ||
| 7583 | PORT_START("IN5") | |
| 7584 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 7585 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 7586 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7587 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7588 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Operator Menu") PORT_CODE(KEYCODE_F1) | |
| 7589 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Clear Credit") | |
| 7590 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7591 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hopper Out") | |
| 7592 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7593 | ||
| 7594 | /* not sure what any of these bits are */ | |
| 7595 | PORT_START("IN6") | |
| 7596 | PORT_BIT( 0x0003, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7597 | PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 7598 | INPUT_PORTS_END | |
| 7599 | ||
| 7600 | ||
| 7601 | static INPUT_PORTS_START( jockeygp ) | |
| 7602 | STANDARD_IN0 | |
| 7603 | ||
| 7604 | STANDARD_IN1 | |
| 7605 | ||
| 7606 | PORT_START("IN2") | |
| 7607 | PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 7608 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* game freezes with this bit enabled */ | |
| 7609 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Next Game") PORT_CODE(KEYCODE_7) | |
| 7610 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* game freezes with this bit enabled */ | |
| 7611 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Previous Game") PORT_CODE(KEYCODE_8) | |
| 7612 | PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL) | |
| 7613 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 7614 | ||
| 7615 | STANDARD_IN3 | |
| 7616 | ||
| 7617 | STANDARD_IN4 | |
| 7618 | INPUT_PORTS_END | |
| 7619 | ||
| 7620 | ||
| 7621 | /****************************************************************************/ | |
| 7622 | ||
| 7623 | /* Game specific inits */ | |
| 7624 | ||
| 7252 | 7625 | static DRIVER_INIT( fatfury2 ) |
| 7253 | 7626 | { |
| 7254 | 7627 | DRIVER_INIT_CALL(neogeo); |
| r8581 | r8582 | |
| 7278 | 7651 | kof99_install_protection(machine); |
| 7279 | 7652 | } |
| 7280 | 7653 | |
| 7281 | static DRIVER_INIT( kof99 | |
| 7654 | static DRIVER_INIT( kof99k ) | |
| 7282 | 7655 | { |
| 7283 | 7656 | neogeo_state *state = (neogeo_state *)machine->driver_data; |
| 7284 | 7657 | DRIVER_INIT_CALL(neogeo); |
| r8581 | r8582 | |
| 7856 | 8229 | DRIVER_INIT_CALL(neogeo); |
| 7857 | 8230 | } |
| 7858 | 8231 | |
| 7859 | /***********************************************************************/ | |
| 7860 | 8232 | |
| 8233 | /****************************************************************************/ | |
| 7861 | 8234 | |
| 7862 | 8235 | /* YEAR NAME PARENT MACHINE INPUT INIT MONITOR */ |
| 7863 | 8236 | GAME( 1990, neogeo, 0, neogeo, neogeo, neogeo, ROT0, "SNK", "Neo-Geo", GAME_IS_BIOS_ROOT | GAME_SUPPORTS_SAVE ) |
| r8581 | r8582 | |
| 7891 | 8264 | GAME( 1991, 2020bb, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 1)", GAME_SUPPORTS_SAVE ) |
| 7892 | 8265 | GAME( 1991, 2020bba, 2020bb, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 2)", GAME_SUPPORTS_SAVE ) |
| 7893 | 8266 | GAME( 1991, 2020bbh, 2020bb, neogeo, neogeo, neogeo, ROT0, "SNK / Pallas", "2020 Super Baseball (set 3)", GAME_SUPPORTS_SAVE ) |
| 7894 | GAME( 1991, socbrawl, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (AES cart)", GAME_SUPPORTS_SAVE ) | |
| 7895 | GAME( 1991, socbrawla, socbrawl, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (set 2)", GAME_SUPPORTS_SAVE ) | |
| 8267 | GAME( 1991, socbrawl, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (set 1)", GAME_SUPPORTS_SAVE ) | |
| 8268 | GAME( 1991, socbrawlh, socbrawl, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (set 2)", GAME_SUPPORTS_SAVE ) | |
| 7896 | 8269 | GAME( 1991, fatfury1, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury - King of Fighters / Garou Densetsu - shukumei no tatakai", GAME_SUPPORTS_SAVE ) |
| 7897 | 8270 | GAME( 1991, roboarmy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army", GAME_SUPPORTS_SAVE ) |
| 7898 | 8271 | //GAME( 1991, roboarma, roboarmy, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 2)", GAME_SUPPORTS_SAVE ) |
| r8581 | r8582 | |
| 7958 | 8331 | GAME( 1999, kof99, neogeo, neogeo, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 1)" , GAME_SUPPORTS_SAVE ) /* Encrypted Code & GFX */ |
| 7959 | 8332 | GAME( 1999, kof99a, kof99, neogeo, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (set 2)" , GAME_SUPPORTS_SAVE ) /* Encrypted Code & GFX, crashes going into attract demo */ |
| 7960 | 8333 | GAME( 1999, kof99e, kof99, neogeo, neogeo, kof99, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (earlier)" , GAME_SUPPORTS_SAVE ) /* Encrypted Code & GFX */ |
| 7961 | GAME( 1999, kof99 | |
| 8334 | GAME( 1999, kof99k, kof99, neogeo, neogeo, kof99k, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (Kor | |
| 7962 | 8335 | GAME( 1999, kof99p, kof99, neogeo, neogeo, neogeo, ROT0, "SNK", "The King of Fighters '99 - Millennium Battle (prototype)", GAME_SUPPORTS_SAVE ) |
| 7963 | 8336 | GAME( 1999, garou, neogeo, neogeo, neogeo, garou, ROT0, "SNK", "Garou - Mark of the Wolves (set 1)" , GAME_SUPPORTS_SAVE ) /* Encrypted Code & GFX */ |
| 7964 | 8337 | GAME( 1999, garouo, garou, neogeo, neogeo, garouo, ROT0, "SNK", "Garou - Mark of the Wolves (set 2)" , GAME_SUPPORTS_SAVE ) /* Encrypted Code & GFX */ |
| r8581 | r8582 | |
|---|---|---|
| 272 | 272 | |
| 273 | 273 | static MACHINE_START( esh ) |
| 274 | 274 | { |
| 275 | laserdisc = | |
| 275 | laserdisc = m | |
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 |
| r8581 | r8582 | |
|---|---|---|
| 965 | 965 | |
| 966 | 966 | memory_configure_bank(machine, "bank1", 0, 0x100, &ROM[0x10000], 0x4000); |
| 967 | 967 | |
| 968 | state->subcpu = | |
| 968 | state->subcpu = m | |
| 969 | 969 | |
| 970 | 970 | state_save_register_global(machine, state->directionflag); |
| 971 | 971 | state_save_register_global(machine, state->commanddata); |
| r8581 | r8582 | |
|---|---|---|
| 90 | 90 | static WRITE8_HANDLER( skykid_irq_1_ctrl_w ) |
| 91 | 91 | { |
| 92 | 92 | int bit = !BIT(offset,11); |
| 93 | cpu_interrupt_enable( | |
| 93 | cpu_interrupt_enable( | |
| 94 | 94 | if (!bit) |
| 95 | 95 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 96 | 96 | } |
| r8581 | r8582 | |
| 98 | 98 | static WRITE8_HANDLER( skykid_irq_2_ctrl_w ) |
| 99 | 99 | { |
| 100 | 100 | int bit = !BIT(offset,13); |
| 101 | cpu_interrupt_enable( | |
| 101 | cpu_interrupt_enable( | |
| 102 | 102 | if (!bit) |
| 103 | 103 | cputag_set_input_line(space->machine, "mcu", 0, CLEAR_LINE); |
| 104 | 104 | } |
| r8581 | r8582 | |
|---|---|---|
| 175 | 175 | UINT16 ret = 0; |
| 176 | 176 | |
| 177 | 177 | if (ACCESSING_BITS_0_7) |
| 178 | ret |= k054539_r( | |
| 178 | ret |= k054539_r( | |
| 179 | 179 | if (ACCESSING_BITS_8_15) |
| 180 | ret |= k054539_r( | |
| 180 | ret |= k054539_r( | |
| 181 | 181 | |
| 182 | 182 | return ret; |
| 183 | 183 | } |
| r8581 | r8582 | |
| 185 | 185 | static WRITE16_HANDLER( dual539_w ) |
| 186 | 186 | { |
| 187 | 187 | if (ACCESSING_BITS_0_7) |
| 188 | k054539_w( | |
| 188 | k054539_w( | |
| 189 | 189 | if (ACCESSING_BITS_8_15) |
| 190 | k054539_w( | |
| 190 | k054539_w( | |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | |
| r8581 | r8582 | |
| 246 | 246 | |
| 247 | 247 | static READ32_HANDLER( v_rom_r ) |
| 248 | 248 | { |
| 249 | running_device *k056832 = | |
| 249 | running_device *k056832 = | |
| 250 | 250 | UINT8 *mem8 = memory_region(space->machine, "gfx2"); |
| 251 | 251 | int bank = k056832_word_r(k056832, 0x34/2, 0xffff); |
| 252 | 252 | |
| r8581 | r8582 | |
| 1178 | 1178 | PORT_DIPSETTING( 0x00, "8" ) |
| 1179 | 1179 | |
| 1180 | 1180 | #define POPN_DSW2_GAUGEDECREMENT \ |
| 1181 | PORT_DIPNAME( 0x0c, 0x0c, "G | |
| 1181 | PORT_DIPNAME( 0x0c, 0x0c, "G | |
| 1182 | 1182 | PORT_DIPSETTING( 0x04, "0" ) \ |
| 1183 | 1183 | PORT_DIPSETTING( 0x0c, "1" ) \ |
| 1184 | 1184 | PORT_DIPSETTING( 0x08, "2" ) \ |
| 1185 | 1185 | PORT_DIPSETTING( 0x00, "3" ) |
| 1186 | 1186 | |
| 1187 | 1187 | #define POPN_DSW2_GAUGEINCREMENT \ |
| 1188 | PORT_DIPNAME( 0x03, 0x03, "G | |
| 1188 | PORT_DIPNAME( 0x03, 0x03, "G | |
| 1189 | 1189 | PORT_DIPSETTING( 0x01, "0" ) \ |
| 1190 | 1190 | PORT_DIPSETTING( 0x03, "1" ) \ |
| 1191 | 1191 | PORT_DIPSETTING( 0x02, "2" ) \ |
| r8581 | r8582 | |
| 1343 | 1343 | PORT_DIPSETTING( 0x80, DEF_STR ( Medium ) ) |
| 1344 | 1344 | PORT_DIPSETTING( 0x40, DEF_STR ( Low ) ) |
| 1345 | 1345 | PORT_DIPSETTING( 0x00, "Silent" ) |
| 1346 | PORT_DIPNAME( 0x30, 0x30, "G | |
| 1346 | PORT_DIPNAME( 0x30, 0x30, "G | |
| 1347 | 1347 | PORT_DIPSETTING( 0x20, "0" ) |
| 1348 | 1348 | PORT_DIPSETTING( 0x30, "1" ) |
| 1349 | 1349 | PORT_DIPSETTING( 0x10, "2" ) |
| 1350 | 1350 | PORT_DIPSETTING( 0x00, "3" ) |
| 1351 | PORT_DIPNAME( 0x0c, 0x0c, "G | |
| 1351 | PORT_DIPNAME( 0x0c, 0x0c, "G | |
| 1352 | 1352 | PORT_DIPSETTING( 0x08, "0" ) |
| 1353 | 1353 | PORT_DIPSETTING( 0x0c, "1" ) |
| 1354 | 1354 | PORT_DIPSETTING( 0x04, "2" ) |
| r8581 | r8582 | |
| 1437 | 1437 | |
| 1438 | 1438 | static MACHINE_START( djmain ) |
| 1439 | 1439 | { |
| 1440 | running_device *ide = | |
| 1440 | running_device *ide = m | |
| 1441 | 1441 | |
| 1442 | 1442 | if (ide != NULL && ide_master_password != NULL) |
| 1443 | 1443 | ide_set_master_password(ide, ide_master_password); |
| r8581 | r8582 | |
|---|---|---|
| 218 | 218 | state->lamp_changed_w = NULL; |
| 219 | 219 | state->i8751_vblank_hook = NULL; |
| 220 | 220 | |
| 221 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 222 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 223 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 224 | state->ymsnd = devtag_get_device(machine, "ymsnd"); | |
| 225 | state->ppi8255 = devtag_get_device(machine, "ppi8255"); | |
| 226 | state->n7751 = devtag_get_device(machine, "n7751"); | |
| 221 | state->maincpu = machine->device("maincpu"); | |
| 222 | state->soundcpu = machine->device("soundcpu"); | |
| 223 | state->mcu = machine->device("mcu"); | |
| 224 | state->ymsnd = machine->device("ymsnd"); | |
| 225 | state->ppi8255 = machine->device("ppi8255"); | |
| 226 | state->n7751 = machine->device("n7751"); | |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | |
| r8581 | r8582 | |
| 260 | 260 | { |
| 261 | 261 | segas1x_state *state = (segas1x_state *)machine->driver_data; |
| 262 | 262 | |
| 263 | fd1094_machine_init( | |
| 263 | fd1094_machine_init(m | |
| 264 | 264 | |
| 265 | 265 | /* if we have a fake i8751 handler, disable the actual 8751 */ |
| 266 | 266 | if (state->i8751_vblank_hook != NULL) |
| r8581 | r8582 | |
| 3385 | 3385 | ROM_LOAD( "317-wb35.key", 0x0000, 0x2000, BAD_DUMP CRC(8a2e0575) SHA1(e43a2c8ca102ec38871067685a860da53d748765) ) |
| 3386 | 3386 | ROM_END |
| 3387 | 3387 | |
| 3388 | ROM_START( wb35a ) | |
| 3389 | ROM_REGION( 0x40000, "maincpu", 0 ) /* 68000 code */ | |
| 3390 | ROM_LOAD16_BYTE( "epr-12120.43_alt", 0x000000, 0x10000, CRC(cbd8c99b) SHA1(2401aab80293bbe3b603a0b6af33ebc8834915e9) ) | |
| 3391 | ROM_LOAD16_BYTE( "epr-12118.26_alt", 0x000001, 0x10000, CRC(e9a3280c) SHA1(b7725171286915f8e1039d8063ba9e9f6ab40b56) ) | |
| 3392 | ROM_LOAD16_BYTE( "epr-12121.42", 0x020000, 0x10000, CRC(5e44c0a9) SHA1(4d4c9575a6cd571a7cf635164e92afd92d4b63fe) ) | |
| 3393 | ROM_LOAD16_BYTE( "epr-12119.25_alt", 0x020001, 0x10000, CRC(01ed3ef9) SHA1(29491a81a735198393f1cc2f06940cf40168ff59) ) | |
| 3394 | ||
| 3395 | ROM_REGION( 0x30000, "gfx1", 0 ) /* tiles */ | |
| 3396 | ROM_LOAD( "epr-12086.95", 0x00000, 0x10000, CRC(45b949df) SHA1(84390d16da00b775988e5f6c20950cb2304b1a74) ) | |
| 3397 | ROM_LOAD( "epr-12087.94", 0x10000, 0x10000, CRC(5fb761aa) SHA1(dcf88e68732a8ec122d0603d87f6ea1f1614adef) ) | |
| 3398 | ROM_LOAD( "epr-12088.83", 0x20000, 0x10000, CRC(00579c39) SHA1(12acdea75e3d040d60a9f32d05fd9e0191d38f21) ) | |
| 3399 | ||
| 3400 | ROM_REGION16_BE( 0x80000, "gfx2", 0 ) /* sprites */ | |
| 3401 | ROM_LOAD16_BYTE( "epr-12090.b1", 0x00001, 0x008000, CRC(aeeecfca) SHA1(496124b170a725ad863c741d4e021ab947511e4c) ) | |
| 3402 | ROM_CONTINUE( 0x40001, 0x008000 ) | |
| 3403 | ROM_LOAD16_BYTE( "epr-12094.b5", 0x00000, 0x008000, CRC(615e4927) SHA1(d23f164973afa770714e284a77ddf10f18cc596b) ) | |
| 3404 | ROM_CONTINUE( 0x40000, 0x008000 ) | |
| 3405 | ROM_LOAD16_BYTE( "epr-12091.b2", 0x10001, 0x008000, CRC(8409a243) SHA1(bcbb9510a6499d8147543d6befa5a49f4ac055d9) ) | |
| 3406 | ROM_CONTINUE( 0x50001, 0x008000 ) | |
| 3407 | ROM_LOAD16_BYTE( "epr-12095.b6", 0x10000, 0x008000, CRC(e774ec2c) SHA1(a4aa15ec7be5539a740ad02ff720458018dbc536) ) | |
| 3408 | ROM_CONTINUE( 0x50000, 0x008000 ) | |
| 3409 | ROM_LOAD16_BYTE( "epr-12092.b3", 0x20001, 0x008000, CRC(5c2f0d90) SHA1(e0fbc0f841e4607ad232931368b16e81440a75c4) ) | |
| 3410 | ROM_CONTINUE( 0x60001, 0x008000 ) | |
| 3411 | ROM_LOAD16_BYTE( "epr-12096.b7", 0x20000, 0x008000, CRC(0cd59d6e) SHA1(caf754a461feffafcfe7bfc6e89da76c4db257c5) ) | |
| 3412 | ROM_CONTINUE( 0x60000, 0x008000 ) | |
| 3413 | ROM_LOAD16_BYTE( "epr-12093.b4", 0x30001, 0x008000, CRC(4891e7bb) SHA1(1be04fcabe9bfa8cf746263a5bcca67902a021a0) ) | |
| 3414 | ROM_CONTINUE( 0x70001, 0x008000 ) | |
| 3415 | ROM_LOAD16_BYTE( "epr-12097.b8", 0x30000, 0x008000, CRC(e645902c) SHA1(497cfcf6c25cc2e042e16dbcb1963d2223def15a) ) | |
| 3416 | ROM_CONTINUE( 0x70000, 0x008000 ) | |
| 3417 | ||
| 3418 | ROM_REGION( 0x10000, "soundcpu", 0 ) /* sound CPU */ | |
| 3419 | ROM_LOAD( "epr-12089.12", 0x0000, 0x8000, CRC(8321eb0b) SHA1(61cf95833c0aa38e35fc18db39d4ec74e4aaf01e) ) | |
| 3420 | ||
| 3421 | ROM_REGION( 0x2000, "fd1089a", 0 ) /* decryption key */ | |
| 3422 | ROM_LOAD( "317-wb35.key", 0x0000, 0x2000, BAD_DUMP CRC(8a2e0575) SHA1(e43a2c8ca102ec38871067685a860da53d748765) ) | |
| 3423 | ROM_END | |
| 3424 | ||
| 3425 | ||
| 3388 | 3426 | /************************************* |
| 3389 | 3427 | * |
| 3390 | 3428 | * Generic driver initialization |
| r8581 | r8582 | |
| 3521 | 3559 | GAME( 1988, tetris3, tetris, system16a_no7751, tetris, generic_16a, ROT0, "Sega", "Tetris (set 3, Japan, System 16A, FD1094 317-0093a)", GAME_SUPPORTS_SAVE ) |
| 3522 | 3560 | GAME( 1987, timescan1, timescan, system16a, timescan, fd1089b_16a, ROT270, "Sega", "Time Scanner (set 1, System 16A, FD1089B 317-0024)", GAME_SUPPORTS_SAVE ) |
| 3523 | 3561 | GAME( 1988, wb31, wb3, system16a_no7751, wb3, generic_16a, ROT0, "Sega / Westone", "Wonder Boy III - Monster Lair (set 1, System 16A, FD1094 317-0084)", GAME_SUPPORTS_SAVE ) |
| 3524 | GAME( 1988, wb35, wb3, system16a_no7751, wb3, fd1089a_16a, ROT0, "Sega / Westone", "Wonder Boy III - Monster Lair (set 5, System 16A, FD1089A 317-xxxx)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 3562 | GAME( 1988, wb35, wb3, system16a_no7751, wb3, fd1089a_16a, ROT0, "Sega / Westone", "Wonder Boy III - Monster Lair (set 5, System 16A, FD1089A 317-xxxx, bad dump?)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 3563 | GAME( 1988, wb35a, wb3, system16a_no7751, wb3, fd1089a_16a, ROT0, "Sega / Westone", "Wonder Boy III - Monster Lair (set 6, System 16A, FD1089A 317-xxxx)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
| r8581 | r8582 | |
|---|---|---|
| 9 | 9 | * This driver was made possible by the research done by |
| 10 | 10 | Charles MacDonald. For a detailed description of the Neo-Geo |
| 11 | 11 | hardware, please visit his page at: |
| 12 | http://cgfm2.emuviews.com/t | |
| 12 | http://cgfm2.emuviews.com/txt | |
| 13 | 13 | * Presented to you by the Shin Emu Keikaku team. |
| 14 | 14 | * The following people have all spent probably far |
| 15 | 15 | too much time on this: |
| r8581 | r8582 | |
| 681 | 681 | neogeo_state *state = (neogeo_state *)field->port->machine->driver_data; |
| 682 | 682 | UINT32 ret = state->audio_result; |
| 683 | 683 | |
| 684 | // if (LOG_CPU_COMM) logerror("MAIN CPU PC %06x: audio_result_r %02x\n", cpu_get_pc( | |
| 684 | // if (LOG_CPU_COMM) logerror("MAIN CPU PC %06x: audio_result_r %02x\n", cpu_get_pc( | |
| 685 | 685 | |
| 686 | 686 | return ret; |
| 687 | 687 | } |
| r8581 | r8582 | |
| 1076 | 1076 | state->irq3_pending = 1; |
| 1077 | 1077 | |
| 1078 | 1078 | /* get devices */ |
| 1079 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1080 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1081 | state->upd4990a = devtag_get_device(machine, "upd4990a"); | |
| 1079 | state->maincpu = machine->device("maincpu"); | |
| 1080 | state->audiocpu = machine->device("audiocpu"); | |
| 1081 | state->upd4990a = machine->device("upd4990a"); | |
| 1082 | 1082 | |
| 1083 | 1083 | /* register state save */ |
| 1084 | 1084 | state_save_register_global(machine, state->display_position_interrupt_control); |
| r8581 | r8582 | |
|---|---|---|
| 97 | 97 | /* reset the custom handlers and other pointers */ |
| 98 | 98 | state->i8751_vblank_hook = NULL; |
| 99 | 99 | |
| 100 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 101 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 102 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 103 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 104 | state->ppi8255_1 = devtag_get_device(machine, "ppi8255_1"); | |
| 105 | state->ppi8255_2 = devtag_get_device(machine, "ppi8255_2"); | |
| 100 | state->maincpu = machine->device("maincpu"); | |
| 101 | state->soundcpu = machine->device("soundcpu"); | |
| 102 | state->subcpu = machine->device("sub"); | |
| 103 | state->mcu = machine->device("mcu"); | |
| 104 | state->ppi8255_1 = machine->device("ppi8255_1"); | |
| 105 | state->ppi8255_2 = machine->device("ppi8255_2"); | |
| 106 | 106 | |
| 107 | 107 | state_save_register_global(machine, state->adc_select); |
| 108 | 108 | } |
| r8581 | r8582 | |
| 126 | 126 | { |
| 127 | 127 | segas1x_state *state = (segas1x_state *)machine->driver_data; |
| 128 | 128 | |
| 129 | fd1094_machine_init( | |
| 129 | fd1094_machine_init(m | |
| 130 | 130 | |
| 131 | 131 | /* reset misc components */ |
| 132 | 132 | segaic16_tilemap_reset(machine, 0); |
| r8581 | r8582 | |
| 1916 | 1916 | GAME( 1986, enduror1, enduror, enduror1, enduror, enduror, ROT0, "Sega", "Enduro Racer (YM2203, FD1089B 317-0013A)", 0 ) |
| 1917 | 1917 | GAME( 1986, endurobl, enduror, enduror1, enduror, endurobl, ROT0, "bootleg", "Enduro Racer (bootleg set 1)", 0 ) |
| 1918 | 1918 | GAME( 1986, endurob2, enduror, endurob2, enduror, endurob2, ROT0, "bootleg", "Enduro Racer (bootleg set 2)", GAME_NOT_WORKING ) |
| 1919 |
| r8581 | r8582 | |
|---|---|---|
| 164 | 164 | |
| 165 | 165 | static VIDEO_UPDATE( statriv2 ) |
| 166 | 166 | { |
| 167 | if (tms9927_screen_reset( | |
| 167 | if (tms9927_screen_reset( | |
| 168 | 168 | bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine)); |
| 169 | 169 | else |
| 170 | 170 | tilemap_draw(bitmap, cliprect, statriv2_tilemap, 0, 0); |
| r8581 | r8582 | |
|---|---|---|
| 195 | 195 | { |
| 196 | 196 | ultraman_state *state = (ultraman_state *)machine->driver_data; |
| 197 | 197 | |
| 198 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 199 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 200 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 201 | state->k051316_1 = devtag_get_device(machine, "k051316_1"); | |
| 202 | state->k051316_2 = devtag_get_device(machine, "k051316_2"); | |
| 203 | state->k051316_3 = devtag_get_device(machine, "k051316_3"); | |
| 198 | state->maincpu = machine->device("maincpu"); | |
| 199 | state->audiocpu = machine->device("audiocpu"); | |
| 200 | state->k051960 = machine->device("k051960"); | |
| 201 | state->k051316_1 = machine->device("k051316_1"); | |
| 202 | state->k051316_2 = machine->device("k051316_2"); | |
| 203 | state->k051316_3 = machine->device("k051316_3"); | |
| 204 | 204 | |
| 205 | 205 | state_save_register_global(machine, state->bank0); |
| 206 | 206 | state_save_register_global(machine, state->bank1); |
| r8581 | r8582 | |
|---|---|---|
| 725 | 725 | static MACHINE_START( ladybug ) |
| 726 | 726 | { |
| 727 | 727 | ladybug_state *state = (ladybug_state *)machine->driver_data; |
| 728 | state->maincpu = | |
| 728 | state->maincpu = m | |
| 729 | 729 | } |
| 730 | 730 | |
| 731 | 731 | static MACHINE_START( sraider ) |
| 732 | 732 | { |
| 733 | 733 | ladybug_state *state = (ladybug_state *)machine->driver_data; |
| 734 | 734 | |
| 735 | state->maincpu = | |
| 735 | state->maincpu = m | |
| 736 | 736 | |
| 737 | 737 | state_save_register_global(machine, state->grid_color); |
| 738 | 738 | state_save_register_global(machine, state->sound_low); |
| r8581 | r8582 | |
|---|---|---|
| 40 | 40 | 8001 8910 #1 write |
| 41 | 41 | |
| 42 | 42 | |
| 43 | TODO: | |
| 44 | ||
| 45 | - the cross hatch pattern test in service mode is too fast, each phase | |
| 46 | should take 15 seconds according to the service manual | |
| 47 | ||
| 48 | ||
| 49 | 43 | DIP locations verified for: |
| 50 | 44 | - blueprnt (manual) |
| 51 | 45 | |
| r8581 | r8582 | |
| 289 | 283 | { |
| 290 | 284 | blueprnt_state *state = (blueprnt_state *)machine->driver_data; |
| 291 | 285 | |
| 292 | state->audiocpu = | |
| 286 | state->audiocpu = m | |
| 293 | 287 | |
| 294 | 288 | state_save_register_global(machine, state->dipsw); |
| 295 | 289 | } |
| r8581 | r8582 | |
|---|---|---|
| 307 | 307 | ROM_START( ttchampa ) |
| 308 | 308 | /* this is from a different board */ |
| 309 | 309 | |
| 310 | ROM_REGION16_ | |
| 310 | ROM_REGION16_LE( 0x200000, "user1", 0 ) | |
| 311 | 311 | ROM_LOAD16_BYTE( "ttennis2.bin", 0x000000, 0x080000, CRC(b060e72c) SHA1(376e71bb4b1687fec4b719cbc5a7b25b64d159ac) ) |
| 312 | 312 | ROM_LOAD16_BYTE( "ttennis3.bin", 0x000001, 0x080000, CRC(33e085a8) SHA1(ea6af05690b4b0803c303a3c858df10e4d907fb1) ) |
| 313 | 313 | ROM_LOAD16_BYTE( "4.bin", 0x100000, 0x080000, CRC(4388dead) SHA1(1965e4b84452b244e32c8d218aace8d287c67ec2) ) |
| r8581 | r8582 | |
|---|---|---|
| 79 | 79 | void install_stvbios_speedups(running_machine *machine) |
| 80 | 80 | { |
| 81 | 81 | // flushes 0 & 1 on both CPUs are for the BIOS speedups |
| 82 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x60154b2); | |
| 83 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6013aee); | |
| 82 | sh2drc_add_pcflush(machine->device("maincpu"), 0x60154b2); | |
| 83 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6013aee); | |
| 84 | 84 | |
| 85 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x60154b2); | |
| 86 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x6013aee); | |
| 85 | sh2drc_add_pcflush(machine->device("slave"), 0x60154b2); | |
| 86 | sh2drc_add_pcflush(machine->device("slave"), 0x6013aee); | |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | DRIVER_INIT(shienryu) |
| 90 | 90 | { |
| 91 | 91 | // master |
| 92 | sh2drc_add_pcflush( | |
| 92 | sh2drc_add_pcflush(m | |
| 93 | 93 | // slave |
| 94 | sh2drc_add_pcflush( | |
| 94 | sh2drc_add_pcflush(m | |
| 95 | 95 | |
| 96 | 96 | DRIVER_INIT_CALL(stv); |
| 97 | 97 | } |
| r8581 | r8582 | |
| 106 | 106 | (loops for 263473 instructions) |
| 107 | 107 | */ |
| 108 | 108 | // master |
| 109 | sh2drc_add_pcflush( | |
| 109 | sh2drc_add_pcflush(m | |
| 110 | 110 | // slave |
| 111 | sh2drc_add_pcflush( | |
| 111 | sh2drc_add_pcflush(m | |
| 112 | 112 | |
| 113 | 113 | DRIVER_INIT_CALL(stv); |
| 114 | 114 | |
| r8581 | r8582 | |
| 136 | 136 | |
| 137 | 137 | (loops for 288688 instructions) |
| 138 | 138 | */ |
| 139 | sh2drc_add_pcflush( | |
| 139 | sh2drc_add_pcflush(m | |
| 140 | 140 | |
| 141 | 141 | DRIVER_INIT_CALL(stv); |
| 142 | 142 | } |
| r8581 | r8582 | |
| 162 | 162 | |
| 163 | 163 | DRIVER_INIT(puyosun) |
| 164 | 164 | { |
| 165 | sh2drc_add_pcflush( | |
| 165 | sh2drc_add_pcflush(m | |
| 166 | 166 | |
| 167 | sh2drc_add_pcflush( | |
| 167 | sh2drc_add_pcflush(m | |
| 168 | 168 | |
| 169 | 169 | DRIVER_INIT_CALL(stv); |
| 170 | 170 | |
| r8581 | r8582 | |
| 184 | 184 | |
| 185 | 185 | DRIVER_INIT(mausuke) |
| 186 | 186 | { |
| 187 | sh2drc_add_pcflush( | |
| 187 | sh2drc_add_pcflush(m | |
| 188 | 188 | |
| 189 | 189 | DRIVER_INIT_CALL(stv); |
| 190 | 190 | |
| r8581 | r8582 | |
| 194 | 194 | |
| 195 | 195 | DRIVER_INIT(cottonbm) |
| 196 | 196 | { |
| 197 | // sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6030ee2); | |
| 198 | // sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x6032b52); | |
| 197 | // sh2drc_add_pcflush(machine->device("maincpu"), 0x6030ee2); | |
| 198 | // sh2drc_add_pcflush(machine->device("slave"), 0x6032b52); | |
| 199 | 199 | |
| 200 | 200 | DRIVER_INIT_CALL(stv); |
| 201 | 201 | |
| r8581 | r8582 | |
| 204 | 204 | |
| 205 | 205 | DRIVER_INIT(cotton2) |
| 206 | 206 | { |
| 207 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6031c7a); | |
| 208 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x60338ea); | |
| 207 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6031c7a); | |
| 208 | sh2drc_add_pcflush(machine->device("slave"), 0x60338ea); | |
| 209 | 209 | |
| 210 | 210 | DRIVER_INIT_CALL(stv); |
| 211 | 211 | |
| r8581 | r8582 | |
| 215 | 215 | DRIVER_INIT(dnmtdeka) |
| 216 | 216 | { |
| 217 | 217 | // install all 3 speedups on both master and slave |
| 218 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6027c90); | |
| 219 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0xd04); | |
| 220 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x60051f2); | |
| 218 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6027c90); | |
| 219 | sh2drc_add_pcflush(machine->device("maincpu"), 0xd04); | |
| 220 | sh2drc_add_pcflush(machine->device("maincpu"), 0x60051f2); | |
| 221 | 221 | |
| 222 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x6027c90); | |
| 223 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0xd04); | |
| 224 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x60051f2); | |
| 222 | sh2drc_add_pcflush(machine->device("slave"), 0x6027c90); | |
| 223 | sh2drc_add_pcflush(machine->device("slave"), 0xd04); | |
| 224 | sh2drc_add_pcflush(machine->device("slave"), 0x60051f2); | |
| 225 | 225 | |
| 226 | 226 | DRIVER_INIT_CALL(stv); |
| 227 | 227 | } |
| r8581 | r8582 | |
| 229 | 229 | DRIVER_INIT(diehard) |
| 230 | 230 | { |
| 231 | 231 | // install all 3 speedups on both master and slave |
| 232 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6027c98); | |
| 233 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0xd04); | |
| 234 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x60051f2); | |
| 232 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6027c98); | |
| 233 | sh2drc_add_pcflush(machine->device("maincpu"), 0xd04); | |
| 234 | sh2drc_add_pcflush(machine->device("maincpu"), 0x60051f2); | |
| 235 | 235 | |
| 236 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x6027c98); | |
| 237 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0xd04); | |
| 238 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x60051f2); | |
| 236 | sh2drc_add_pcflush(machine->device("slave"), 0x6027c98); | |
| 237 | sh2drc_add_pcflush(machine->device("slave"), 0xd04); | |
| 238 | sh2drc_add_pcflush(machine->device("slave"), 0x60051f2); | |
| 239 | 239 | |
| 240 | 240 | DRIVER_INIT_CALL(stv); |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | DRIVER_INIT(fhboxers) |
| 244 | 244 | { |
| 245 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x60041c2); | |
| 246 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x600bb0a); | |
| 247 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x600b31e); | |
| 245 | sh2drc_add_pcflush(machine->device("maincpu"), 0x60041c2); | |
| 246 | sh2drc_add_pcflush(machine->device("maincpu"), 0x600bb0a); | |
| 247 | sh2drc_add_pcflush(machine->device("maincpu"), 0x600b31e); | |
| 248 | 248 | |
| 249 | 249 | DRIVER_INIT_CALL(stv); |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | DRIVER_INIT( groovef ) |
| 253 | 253 | { |
| 254 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6005e7c); | |
| 255 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6005e86); | |
| 256 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x60a4970); | |
| 254 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6005e7c); | |
| 255 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6005e86); | |
| 256 | sh2drc_add_pcflush(machine->device("maincpu"), 0x60a4970); | |
| 257 | 257 | |
| 258 | sh2drc_add_pcflush( | |
| 258 | sh2drc_add_pcflush(m | |
| 259 | 259 | |
| 260 | 260 | DRIVER_INIT_CALL(stv); |
| 261 | 261 | |
| r8581 | r8582 | |
| 265 | 265 | |
| 266 | 266 | DRIVER_INIT( danchih ) |
| 267 | 267 | { |
| 268 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6028b28); | |
| 269 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6028c8e); | |
| 270 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x602ae26); | |
| 268 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6028b28); | |
| 269 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6028c8e); | |
| 270 | sh2drc_add_pcflush(machine->device("slave"), 0x602ae26); | |
| 271 | 271 | |
| 272 | 272 | DRIVER_INIT_CALL(stv); |
| 273 | 273 | |
| r8581 | r8582 | |
| 307 | 307 | |
| 308 | 308 | DRIVER_INIT( astrass ) |
| 309 | 309 | { |
| 310 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x60011b8); | |
| 311 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x605b9da); | |
| 310 | sh2drc_add_pcflush(machine->device("maincpu"), 0x60011b8); | |
| 311 | sh2drc_add_pcflush(machine->device("maincpu"), 0x605b9da); | |
| 312 | 312 | |
| 313 | 313 | memory_install_read32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x06000770, 0x06000773, 0, 0, astrass_hack_r ); |
| 314 | 314 | |
| r8581 | r8582 | |
| 319 | 319 | |
| 320 | 320 | DRIVER_INIT(thunt) |
| 321 | 321 | { |
| 322 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x602A024); | |
| 323 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6013EEA); | |
| 324 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x602AAF8); | |
| 322 | sh2drc_add_pcflush(machine->device("maincpu"), 0x602A024); | |
| 323 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6013EEA); | |
| 324 | sh2drc_add_pcflush(machine->device("slave"), 0x602AAF8); | |
| 325 | 325 | |
| 326 | 326 | DRIVER_INIT_CALL(stv); |
| 327 | 327 | |
| r8581 | r8582 | |
| 330 | 330 | |
| 331 | 331 | DRIVER_INIT(sandor) |
| 332 | 332 | { |
| 333 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x602a0f8); | |
| 334 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6013fbe); | |
| 335 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x602abcc); | |
| 333 | sh2drc_add_pcflush(machine->device("maincpu"), 0x602a0f8); | |
| 334 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6013fbe); | |
| 335 | sh2drc_add_pcflush(machine->device("slave"), 0x602abcc); | |
| 336 | 336 | |
| 337 | 337 | DRIVER_INIT_CALL(stv); |
| 338 | 338 | minit_boost_timeslice = sinit_boost_timeslice = ATTOTIME_IN_USEC(1); |
| r8581 | r8582 | |
| 341 | 341 | |
| 342 | 342 | DRIVER_INIT(grdforce) |
| 343 | 343 | { |
| 344 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6041e32); | |
| 345 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x6043aa2); | |
| 344 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6041e32); | |
| 345 | sh2drc_add_pcflush(machine->device("slave"), 0x6043aa2); | |
| 346 | 346 | |
| 347 | 347 | DRIVER_INIT_CALL(stv); |
| 348 | 348 | |
| r8581 | r8582 | |
| 351 | 351 | |
| 352 | 352 | DRIVER_INIT(batmanfr) |
| 353 | 353 | { |
| 354 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x60121c0); | |
| 355 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x60125bc); | |
| 354 | sh2drc_add_pcflush(machine->device("maincpu"), 0x60121c0); | |
| 355 | sh2drc_add_pcflush(machine->device("slave"), 0x60125bc); | |
| 356 | 356 | |
| 357 | 357 | DRIVER_INIT_CALL(stv); |
| 358 | 358 | |
| r8581 | r8582 | |
| 362 | 362 | |
| 363 | 363 | DRIVER_INIT(colmns97) |
| 364 | 364 | { |
| 365 | sh2drc_add_pcflush( | |
| 365 | sh2drc_add_pcflush(m | |
| 366 | 366 | |
| 367 | 367 | DRIVER_INIT_CALL(stv); |
| 368 | 368 | |
| r8581 | r8582 | |
| 372 | 372 | |
| 373 | 373 | DRIVER_INIT(winterht) |
| 374 | 374 | { |
| 375 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6098aea); | |
| 376 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x609ae4e); | |
| 375 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6098aea); | |
| 376 | sh2drc_add_pcflush(machine->device("slave"), 0x609ae4e); | |
| 377 | 377 | |
| 378 | 378 | DRIVER_INIT_CALL(stv); |
| 379 | 379 | |
| r8581 | r8582 | |
| 382 | 382 | |
| 383 | 383 | DRIVER_INIT(seabass) |
| 384 | 384 | { |
| 385 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x602cbfa); | |
| 386 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x60321ee); | |
| 385 | sh2drc_add_pcflush(machine->device("maincpu"), 0x602cbfa); | |
| 386 | sh2drc_add_pcflush(machine->device("slave"), 0x60321ee); | |
| 387 | 387 | |
| 388 | 388 | DRIVER_INIT_CALL(stv); |
| 389 | 389 | |
| r8581 | r8582 | |
| 392 | 392 | |
| 393 | 393 | DRIVER_INIT(vfremix) |
| 394 | 394 | { |
| 395 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x602c30c); | |
| 396 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x604c332); | |
| 395 | sh2drc_add_pcflush(machine->device("maincpu"), 0x602c30c); | |
| 396 | sh2drc_add_pcflush(machine->device("slave"), 0x604c332); | |
| 397 | 397 | |
| 398 | 398 | DRIVER_INIT_CALL(stv); |
| 399 | 399 | |
| r8581 | r8582 | |
| 402 | 402 | |
| 403 | 403 | DRIVER_INIT(sss) |
| 404 | 404 | { |
| 405 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6026398); | |
| 406 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x6028cd6); | |
| 405 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6026398); | |
| 406 | sh2drc_add_pcflush(machine->device("slave"), 0x6028cd6); | |
| 407 | 407 | |
| 408 | 408 | install_sss_protection(machine); |
| 409 | 409 | |
| r8581 | r8582 | |
| 414 | 414 | |
| 415 | 415 | DRIVER_INIT(othellos) |
| 416 | 416 | { |
| 417 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x602bcbe); | |
| 418 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x602d92e); | |
| 417 | sh2drc_add_pcflush(machine->device("maincpu"), 0x602bcbe); | |
| 418 | sh2drc_add_pcflush(machine->device("slave"), 0x602d92e); | |
| 419 | 419 | |
| 420 | 420 | DRIVER_INIT_CALL(stv); |
| 421 | 421 | |
| r8581 | r8582 | |
| 425 | 425 | |
| 426 | 426 | DRIVER_INIT(sasissu) |
| 427 | 427 | { |
| 428 | sh2drc_add_pcflush( | |
| 428 | sh2drc_add_pcflush(m | |
| 429 | 429 | |
| 430 | 430 | DRIVER_INIT_CALL(stv); |
| 431 | 431 | |
| r8581 | r8582 | |
| 434 | 434 | |
| 435 | 435 | DRIVER_INIT(gaxeduel) |
| 436 | 436 | { |
| 437 | sh2drc_add_pcflush( | |
| 437 | sh2drc_add_pcflush(m | |
| 438 | 438 | |
| 439 | 439 | DRIVER_INIT_CALL(stv); |
| 440 | 440 | } |
| 441 | 441 | |
| 442 | 442 | DRIVER_INIT(suikoenb) |
| 443 | 443 | { |
| 444 | sh2drc_add_pcflush( | |
| 444 | sh2drc_add_pcflush(m | |
| 445 | 445 | |
| 446 | 446 | DRIVER_INIT_CALL(stv); |
| 447 | 447 | } |
| r8581 | r8582 | |
| 456 | 456 | |
| 457 | 457 | DRIVER_INIT(znpwfv) |
| 458 | 458 | { |
| 459 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6012ec2); | |
| 460 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x60175a6); | |
| 459 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6012ec2); | |
| 460 | sh2drc_add_pcflush(machine->device("slave"), 0x60175a6); | |
| 461 | 461 | |
| 462 | 462 | DRIVER_INIT_CALL(stv); |
| 463 | 463 | minit_boost_timeslice = sinit_boost_timeslice = ATTOTIME_IN_NSEC(500); |
| r8581 | r8582 | |
| 465 | 465 | |
| 466 | 466 | DRIVER_INIT(twcup98) |
| 467 | 467 | { |
| 468 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x605edde); | |
| 469 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x6062bca); | |
| 468 | sh2drc_add_pcflush(machine->device("maincpu"), 0x605edde); | |
| 469 | sh2drc_add_pcflush(machine->device("slave"), 0x6062bca); | |
| 470 | 470 | |
| 471 | 471 | DRIVER_INIT_CALL(stv); |
| 472 | 472 | install_twcup98_protection(machine); |
| r8581 | r8582 | |
| 476 | 476 | |
| 477 | 477 | DRIVER_INIT(smleague) |
| 478 | 478 | { |
| 479 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6063bf4); | |
| 480 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x6062bca); | |
| 479 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6063bf4); | |
| 480 | sh2drc_add_pcflush(machine->device("slave"), 0x6062bca); | |
| 481 | 481 | |
| 482 | 482 | DRIVER_INIT_CALL(stv); |
| 483 | 483 | |
| r8581 | r8582 | |
| 486 | 486 | |
| 487 | 487 | DRIVER_INIT(finlarch) |
| 488 | 488 | { |
| 489 | sh2drc_add_pcflush( | |
| 489 | sh2drc_add_pcflush(m | |
| 490 | 490 | |
| 491 | 491 | DRIVER_INIT_CALL(stv); |
| 492 | 492 | |
| r8581 | r8582 | |
| 494 | 494 | |
| 495 | 495 | DRIVER_INIT(maruchan) |
| 496 | 496 | { |
| 497 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x601ba46); | |
| 498 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x601ba46); | |
| 497 | sh2drc_add_pcflush(machine->device("maincpu"), 0x601ba46); | |
| 498 | sh2drc_add_pcflush(machine->device("slave"), 0x601ba46); | |
| 499 | 499 | |
| 500 | 500 | DRIVER_INIT_CALL(stv); |
| 501 | 501 | |
| r8581 | r8582 | |
| 504 | 504 | |
| 505 | 505 | DRIVER_INIT(pblbeach) |
| 506 | 506 | { |
| 507 | sh2drc_add_pcflush( | |
| 507 | sh2drc_add_pcflush(m | |
| 508 | 508 | |
| 509 | 509 | DRIVER_INIT_CALL(stv); |
| 510 | 510 | } |
| 511 | 511 | |
| 512 | 512 | DRIVER_INIT(shanhigw) |
| 513 | 513 | { |
| 514 | sh2drc_add_pcflush( | |
| 514 | sh2drc_add_pcflush(m | |
| 515 | 515 | |
| 516 | 516 | DRIVER_INIT_CALL(stv); |
| 517 | 517 | } |
| 518 | 518 | |
| 519 | 519 | DRIVER_INIT(elandore) |
| 520 | 520 | { |
| 521 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x604eac0); | |
| 522 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x605340a); | |
| 521 | sh2drc_add_pcflush(machine->device("maincpu"), 0x604eac0); | |
| 522 | sh2drc_add_pcflush(machine->device("slave"), 0x605340a); | |
| 523 | 523 | |
| 524 | 524 | install_elandore_protection(machine); |
| 525 | 525 | |
| r8581 | r8582 | |
| 530 | 530 | |
| 531 | 531 | DRIVER_INIT(rsgun) |
| 532 | 532 | { |
| 533 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x6034d04); | |
| 534 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x6036152); | |
| 533 | sh2drc_add_pcflush(machine->device("maincpu"), 0x6034d04); | |
| 534 | sh2drc_add_pcflush(machine->device("slave"), 0x6036152); | |
| 535 | 535 | |
| 536 | 536 | install_rsgun_protection(machine); |
| 537 | 537 | |
| r8581 | r8582 | |
| 555 | 555 | |
| 556 | 556 | DRIVER_INIT(nameclv3) |
| 557 | 557 | { |
| 558 | sh2drc_add_pcflush(devtag_get_device(machine, "maincpu"), 0x601eb4c); | |
| 559 | sh2drc_add_pcflush(devtag_get_device(machine, "slave"), 0x602b80e); | |
| 558 | sh2drc_add_pcflush(machine->device("maincpu"), 0x601eb4c); | |
| 559 | sh2drc_add_pcflush(machine->device("slave"), 0x602b80e); | |
| 560 | 560 | |
| 561 | 561 | DRIVER_INIT_CALL(stv); |
| 562 | 562 | } |
| r8581 | r8582 | |
|---|---|---|
| 377 | 377 | |
| 378 | 378 | memory_configure_bank(machine, "bank1", 0, 6, &ROM[0x10000], 0x2000); |
| 379 | 379 | |
| 380 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 381 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 380 | state->audiocpu = machine->device("audiocpu"); | |
| 381 | state->mcu = machine->device("mcu"); | |
| 382 | 382 | |
| 383 | 383 | state_save_register_global(machine, state->sound_nmi_enable); |
| 384 | 384 | state_save_register_global(machine, state->pending_nmi); |
| r8581 | r8582 | |
|---|---|---|
| 252 | 252 | { |
| 253 | 253 | gotcha_state *state = (gotcha_state *)machine->driver_data; |
| 254 | 254 | |
| 255 | state->audiocpu = | |
| 255 | state->audiocpu = m | |
| 256 | 256 | |
| 257 | 257 | state_save_register_global(machine, state->banksel); |
| 258 | 258 | state_save_register_global_array(machine, state->gfxbank); |
| r8581 | r8582 | |
|---|---|---|
| 70 | 70 | qcrayon2 TC0510NIO TC0360PRI TC0260DAR |
| 71 | 71 | driftout TC0510NIO TC0360PRI TC0260DAR TC0430GRW(zoom/rot) |
| 72 | 72 | |
| 73 | A complete list of Taito Games can be still accessed with archive.org: | |
| 74 | http://web.archive.org/web/20010502131808/www.taito.co.jp/game-history/ | |
| 73 | 75 | |
| 74 | ||
| 75 | F2 Game List | |
| 76 | ------------ | |
| 77 | . Final Blow (1) | |
| 78 | . Don Doko Don (2) | |
| 79 | . Mega Blast http://www.taito.co.jp/game-history/80b/megabla.html (3) | |
| 80 | . Quiz Torimonochou http://www.taito.co.jp/game-history/90a/qui_tori.html (4) | |
| 81 | . Quiz HQ http://www.taito.co.jp/game-history/90a/quiz_hq.html | |
| 82 | . Thunder Fox http://www.taito.co.jp/game-history/90a/thu_fox.html | |
| 83 | . Liquid Kids http://www.taito.co.jp/game-history/90a/miz_bak.html (7) | |
| 84 | . SSI / Majestic 12 http://www.taito.co.jp/game-history/90a/mj12.html (8) | |
| 85 | . Gun Frontier http://www.taito.co.jp/game-history/90a/gunfro.html (9) | |
| 86 | . Growl / Runark http://www.taito.co.jp/game-history/90a/runark.html (10) | |
| 87 | . Hat Trick Hero http://www.taito.co.jp/game-history/90a/hthero.html (11) | |
| 88 | . Mahjong Quest http://www.taito.co.jp/game-history/90a/mahque.html (12) | |
| 89 | . Yuu-yu no Quiz de Go!Go! http://www.taito.co.jp/game-history/90a/youyu.html (13) | |
| 90 | . Ah Eikou no Koshien http://www.taito.co.jp/game-history/90a/koshien.html (14) | |
| 91 | . Ninja Kids http://www.taito.co.jp/game-history/90a/ninjakids.html (15) | |
| 92 | . Quiz Quest http://www.taito.co.jp/game-history/90a/q_quest.html | |
| 93 | . Metal Black http://www.taito.co.jp/game-history/90a/metabla.html | |
| 94 | . Quiz Chikyu Boueigun http://www.taito.co.jp/game-history/90a/qui_tik.html | |
| 95 | . Dinorex http://www.taito.co.jp/game-history/90a/dinorex.html | |
| 96 | . Pulirula | |
| 97 | . Dead Connection http://www.taito.co.jp/game-history/90a/deadconn.html | |
| 98 | . Quiz Jinsei Gekijou http://www.taito.co.jp/game-history/90a/qui_jin.html | |
| 99 | . Quiz Crayon Shinchan http://www.taito.co.jp/game-history/90a/qcrashin.html | |
| 100 | . Crayon Shinchan Orato Asobo | |
| 101 | ||
| 102 | ||
| 103 | This list is translated version of | |
| 104 | http://www.aianet.or.jp/~eisetu/rom/rom_tait.html | |
| 105 | This page also contains info for other Taito boards. | |
| 106 | ||
| 107 | 76 | F2 Motherboard ( Big ) K1100432A, J1100183A |
| 108 | 77 | (Small) K1100608A, J1100242A |
| 109 | 78 | |
| r8581 | r8582 | |
| 3379 | 3348 | { |
| 3380 | 3349 | taitof2_state *state = (taitof2_state *)machine->driver_data; |
| 3381 | 3350 | |
| 3382 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 3383 | state->audiocpu = devtag_get_device(machine, "audiocpu");; | |
| 3384 | state->tc0100scn = devtag_get_device(machine, "tc0100scn");; | |
| 3385 | state->tc0100scn_1 = devtag_get_device(machine, "tc0100scn_1");; | |
| 3386 | state->tc0100scn_2 = devtag_get_device(machine, "tc0100scn_2");; | |
| 3387 | state->tc0360pri = devtag_get_device(machine, "tc0360pri");; | |
| 3388 | state->tc0280grd = devtag_get_device(machine, "tc0280grd");; | |
| 3389 | state->tc0430grw = devtag_get_device(machine, "tc0430grw");; | |
| 3390 | state->tc0480scp = devtag_get_device(machine, "tc0480scp");; | |
| 3351 | state->maincpu = machine->device("maincpu"); | |
| 3352 | state->audiocpu = machine->device("audiocpu");; | |
| 3353 | state->tc0100scn = machine->device("tc0100scn");; | |
| 3354 | state->tc0100scn_1 = machine->device("tc0100scn_1");; | |
| 3355 | state->tc0100scn_2 = machine->device("tc0100scn_2");; | |
| 3356 | state->tc0360pri = machine->device("tc0360pri");; | |
| 3357 | state->tc0280grd = machine->device("tc0280grd");; | |
| 3358 | state->tc0430grw = machine->device("tc0430grw");; | |
| 3359 | state->tc0480scp = machine->device("tc0480scp");; | |
| 3391 | 3360 | } |
| 3392 | 3361 | |
| 3393 | 3362 | static MACHINE_START( f2 ) |
| r8581 | r8582 | |
|---|---|---|
| 152 | 152 | /* configure banks */ |
| 153 | 153 | memory_configure_bank(machine, "bank1", 0, 8, memory_region(machine, "maincpu") + 0x10000, 0x4000); |
| 154 | 154 | |
| 155 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 156 | state->sub_cpu = devtag_get_device(machine, "sub"); | |
| 157 | state->snd_cpu = devtag_get_device(machine, "soundcpu"); | |
| 158 | state->adpcm_1 = devtag_get_device(machine, "adpcm1"); | |
| 159 | state->adpcm_2 = devtag_get_device(machine, "adpcm2"); | |
| 155 | state->maincpu = machine->device("maincpu"); | |
| 156 | state->sub_cpu = machine->device("sub"); | |
| 157 | state->snd_cpu = machine->device("soundcpu"); | |
| 158 | state->adpcm_1 = machine->device("adpcm1"); | |
| 159 | state->adpcm_2 = machine->device("adpcm2"); | |
| 160 | 160 | |
| 161 | 161 | /* register for save states */ |
| 162 | 162 | state_save_register_global(machine, state->dd_sub_cpu_busy); |
| r8581 | r8582 | |
|---|---|---|
| 253 | 253 | { |
| 254 | 254 | asterix_state *state = (asterix_state *)machine->driver_data; |
| 255 | 255 | |
| 256 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 257 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 258 | state->k053260 = devtag_get_device(machine, "k053260"); | |
| 259 | state->k056832 = devtag_get_device(machine, "k056832"); | |
| 260 | state->k053244 = devtag_get_device(machine, "k053244"); | |
| 261 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 256 | state->maincpu = machine->device("maincpu"); | |
| 257 | state->audiocpu = machine->device("audiocpu"); | |
| 258 | state->k053260 = machine->device("k053260"); | |
| 259 | state->k056832 = machine->device("k056832"); | |
| 260 | state->k053244 = machine->device("k053244"); | |
| 261 | state->k053251 = machine->device("k053251"); | |
| 262 | 262 | |
| 263 | 263 | state_save_register_global(machine, state->cur_control2); |
| 264 | 264 | state_save_register_global_array(machine, state->prot); |
| r8581 | r8582 | |
|---|---|---|
| 293 | 293 | return input_port_read(space->machine, "IN0"); |
| 294 | 294 | case 0x0014/2: |
| 295 | 295 | case 0x0016/2: |
| 296 | return okim6295_r( | |
| 296 | return okim6295_r( | |
| 297 | 297 | case 0x0018/2: |
| 298 | 298 | case 0x001a/2: |
| 299 | return okim6295_r( | |
| 299 | return okim6295_r( | |
| 300 | 300 | case 0x0040/2: |
| 301 | 301 | /* |
| 302 | 302 | "Upper switch / Under Switch" |
| r8581 | r8582 | |
| 385 | 385 | case 0x14/2: |
| 386 | 386 | case 0x16/2: |
| 387 | 387 | if(ACCESSING_BITS_0_7) |
| 388 | okim6295_w( | |
| 388 | okim6295_w( | |
| 389 | 389 | break; |
| 390 | 390 | case 0x18/2: |
| 391 | 391 | case 0x1a/2: |
| 392 | 392 | if(ACCESSING_BITS_0_7) |
| 393 | okim6295_w( | |
| 393 | okim6295_w( | |
| 394 | 394 | break; |
| 395 | 395 | case 0x1c/2: |
| 396 | 396 | /*IRQ mask?*/ |
| r8581 | r8582 | |
|---|---|---|
| 196 | 196 | switch(offset&0xff) |
| 197 | 197 | { |
| 198 | 198 | case 0: |
| 199 | case 1: ym2413_w(devtag_get_device(space->machine, "ymsnd"),offset,data); break; | |
| 200 | case 2: dac_data_w(devtag_get_device(space->machine, "dac"),data);break; | |
| 199 | case 1: ym2413_w(space->machine->device("ymsnd"),offset,data); break; | |
| 200 | case 2: dac_data_w(space->machine->device("dac"),data);break; | |
| 201 | 201 | default: logerror("%x %x - %x\n",offset,data,cpu_get_previouspc(space->cpu)); |
| 202 | 202 | } |
| 203 | 203 | } |
| r8581 | r8582 | |
|---|---|---|
| 433 | 433 | { |
| 434 | 434 | moo_state *state = (moo_state *)machine->driver_data; |
| 435 | 435 | |
| 436 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 437 | state->audiocpu = devtag_get_device(machine, "soundcpu"); | |
| 438 | state->k054539 = devtag_get_device(machine, "k054539"); | |
| 439 | state->k053246 = devtag_get_device(machine, "k053246"); | |
| 440 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 441 | state->k056832 = devtag_get_device(machine, "k056832"); | |
| 442 | state->k054338 = devtag_get_device(machine, "k054338"); | |
| 436 | state->maincpu = machine->device("maincpu"); | |
| 437 | state->audiocpu = machine->device("soundcpu"); | |
| 438 | state->k054539 = machine->device("k054539"); | |
| 439 | state->k053246 = machine->device("k053246"); | |
| 440 | state->k053251 = machine->device("k053251"); | |
| 441 | state->k056832 = machine->device("k056832"); | |
| 442 | state->k054338 = machine->device("k054338"); | |
| 443 | 443 | |
| 444 | 444 | state_save_register_global(machine, state->cur_control2); |
| 445 | 445 | state_save_register_global(machine, state->alpha_enabled); |
| r8581 | r8582 | |
|---|---|---|
| 143 | 143 | { |
| 144 | 144 | taitol_state *state = (taitol_state *)machine->driver_data; |
| 145 | 145 | |
| 146 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 147 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 146 | state->maincpu = machine->device("maincpu"); | |
| 147 | state->audiocpu = machine->device("audiocpu"); | |
| 148 | 148 | |
| 149 | 149 | state->rambanks = auto_alloc_array(machine, UINT8, 0x1000 * 12); |
| 150 | 150 | state->palette_ram = auto_alloc_array(machine, UINT8, 0x1000); |
| r8581 | r8582 | |
|---|---|---|
| 329 | 329 | |
| 330 | 330 | static MACHINE_START( astron ) |
| 331 | 331 | { |
| 332 | laserdisc = | |
| 332 | laserdisc = m | |
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 |
| r8581 | r8582 | |
|---|---|---|
| 262 | 262 | |
| 263 | 263 | if (offset == 3) |
| 264 | 264 | { |
| 265 | ticket_dispenser_w(devtag_get_device(space->machine, "ticket1"), 0, (data & 8) << 4); | |
| 266 | ticket_dispenser_w(devtag_get_device(space->machine, "ticket2"), 0, (data & 4) << 5); | |
| 265 | ticket_dispenser_w(space->machine->device("ticket1"), 0, (data & 8) << 4); | |
| 266 | ticket_dispenser_w(space->machine->device("ticket2"), 0, (data & 4) << 5); | |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | if (olddata != tickee_control[offset]) |
| r8581 | r8582 | |
|---|---|---|
| 320 | 320 | |
| 321 | 321 | static TIMER_CALLBACK( setvector_callback ) |
| 322 | 322 | { |
| 323 | if (! | |
| 323 | if (!m | |
| 324 | 324 | return; |
| 325 | 325 | |
| 326 | 326 | switch(param) |
| r8581 | r8582 | |
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | if (irqvector & 0x2) /* YM2151 has precedence */ |
| 336 | cpu_set_input_line_vector( | |
| 336 | cpu_set_input_line_vector(m | |
| 337 | 337 | else if (irqvector & 0x1) /* V30 */ |
| 338 | cpu_set_input_line_vector( | |
| 338 | cpu_set_input_line_vector(m | |
| 339 | 339 | |
| 340 | 340 | if (irqvector == 0) /* no IRQs pending */ |
| 341 | 341 | cputag_set_input_line(machine, "soundcpu", 0, CLEAR_LINE); |
| r8581 | r8582 | |
| 1675 | 1675 | ROM_LOAD( "mr-da.bin", 0x000000, 0x040000, CRC(1a11fc59) SHA1(6d1f4ca688bf015ecbbe369fbc0eb5e2bcaefcfc) ) |
| 1676 | 1676 | ROM_END |
| 1677 | 1677 | |
| 1678 | ROM_START( mysticrib ) | |
| 1679 | ROM_REGION( 0x100000, "maincpu", 0 ) | |
| 1680 | ROM_LOAD16_BYTE( "h0", 0x000001, 0x040000, CRC(e38c1f56) SHA1(491f370c66c36ab56a4bee3f335fe7357ff5668b) ) | |
| 1681 | ROM_LOAD16_BYTE( "l0", 0x000000, 0x040000, CRC(77846e48) SHA1(c715136c4ed8dda24ec1ed634e6308d23c92ec05) ) | |
| 1682 | ROM_LOAD16_BYTE( "h1", 0x080001, 0x010000, CRC(4dcb085b) SHA1(7c053f5ef2978e574d3d2d9f5c12035473d13c3b) ) | |
| 1683 | ROM_LOAD16_BYTE( "l1", 0x080000, 0x010000, CRC(88df4f70) SHA1(f55769a107fe3f5446d8268f66e895b02727c61e) ) | |
| 1684 | ||
| 1685 | ROM_REGION( 0x100000, "soundcpu", 0 ) /* 1MB for the audio CPU - encrypted V30 = NANAO custom D80001 (?) */ | |
| 1686 | // older revision code? rev 3.31, doesn't work? | |
| 1687 | ROM_LOAD16_BYTE( "sh0", 0x000001, 0x010000, CRC(fc7221ee) SHA1(4e714f31ce0d1bb2f6c649a26af748f96912848e) ) | |
| 1688 | ROM_LOAD16_BYTE( "sl0", 0x000000, 0x010000, CRC(65c809e6) SHA1(45a860b250219a15aa8a2177251f4d3f2e559b9e) ) | |
| 1689 | ||
| 1690 | ROM_REGION( 0x100000, "gfx1", 0 ) /* Tiles */ | |
| 1691 | ROM_LOAD( "mr-c0.bin", 0x000000, 0x040000, CRC(872a8fad) SHA1(236406e5959c81a1cffe96fef02d637c2150ce1e) ) | |
| 1692 | ROM_LOAD( "mr-c1.bin", 0x040000, 0x040000, CRC(d2ffb27a) SHA1(fedfb430ce8a8953b2f78970d0b0dc5571de333c) ) | |
| 1693 | ROM_LOAD( "mr-c2.bin", 0x080000, 0x040000, CRC(62bff287) SHA1(cb7b73c4a26737f1a1f9cc9423ae51c284368b1b) ) | |
| 1694 | ROM_LOAD( "mr-c3.bin", 0x0c0000, 0x040000, CRC(d0da62ab) SHA1(96c7c8e1d8dafb797731652fa91d3048aa157185) ) | |
| 1695 | ||
| 1696 | ROM_REGION( 0x400000, "gfx2", 0 ) /* Sprites */ | |
| 1697 | ROM_LOAD( "mr-o00.bin", 0x000000, 0x080000, CRC(a0f9ce16) SHA1(ae423313d189ebddc6d5d0785ac484e0cdf79112) ) | |
| 1698 | ROM_LOAD( "mr-o10.bin", 0x100000, 0x080000, CRC(4e70a9e9) SHA1(8f6b043b03420a590a1081c99311723169126332) ) | |
| 1699 | ROM_LOAD( "mr-o20.bin", 0x200000, 0x080000, CRC(b9c468fc) SHA1(dc42a5b80cad5373fce03cc416b9d742fcbec6e9) ) | |
| 1700 | ROM_LOAD( "mr-o30.bin", 0x300000, 0x080000, CRC(cc32433a) SHA1(a1a1ab09c4bd6c9ae85529c1aa5427ad3126b914) ) | |
| 1701 | ||
| 1702 | ROM_REGION( 0x40000, "irem", 0 ) | |
| 1703 | ROM_LOAD( "mr-da.bin", 0x000000, 0x040000, CRC(1a11fc59) SHA1(6d1f4ca688bf015ecbbe369fbc0eb5e2bcaefcfc) ) | |
| 1704 | ROM_END | |
| 1705 | ||
| 1706 | ||
| 1678 | 1707 | ROM_START( uccops ) |
| 1679 | 1708 | ROM_REGION( 0x100000, "maincpu", 0 ) |
| 1680 | 1709 | ROM_LOAD16_BYTE( "uc_h0.rom", 0x000001, 0x040000, CRC(240aa5f7) SHA1(8d864bb1377e9f6d266631ed365c5809b9da33f8) ) |
| r8581 | r8582 | |
| 2199 | 2228 | GAME( 1992, uccopsj, uccops, uccops, uccops, uccops, ROT0, "Irem", "Undercover Cops (Japan)", 0 ) |
| 2200 | 2229 | GAME( 1992, mysticri, 0, mysticri, mysticri, mysticri, ROT0, "Irem", "Mystic Riders (World)", 0 ) |
| 2201 | 2230 | GAME( 1992, gunhohki, mysticri, mysticri, mysticri, mysticri, ROT0, "Irem", "Gun Hohki (Japan)", 0 ) |
| 2231 | // cheaply produced Korean board, has original chips, but lacks any proper labels - uses older revision sound program that doesn't work in MAME right now | |
| 2232 | // main code is also significantly different to the supported original set, so it might just be a legitimate early revision on a cheap board | |
| 2233 | GAME( 1992, mysticrib,mysticri, mysticri, mysticri, mysticri, ROT0, "Irem", "Mystic Riders (bootleg?)", GAME_NO_SOUND ) | |
| 2202 | 2234 | GAME( 1992, majtitl2, 0, majtitl2, majtitl2, majtitl2, ROT0, "Irem", "Major Title 2 (World)", 0 ) |
| 2203 | 2235 | GAME( 1992, majtitl2j,majtitl2, majtitl2, majtitl2, majtitl2, ROT0, "Irem", "Major Title 2 (Japan)", 0 ) |
| 2204 | 2236 | GAME( 1992, skingame, majtitl2, majtitl2, majtitl2, majtitl2, ROT0, "Irem America", "The Irem Skins Game (US set 1)", 0 ) |
| r8581 | r8582 | |
|---|---|---|
| 436 | 436 | { |
| 437 | 437 | destroyr_state *state = (destroyr_state *)machine->driver_data; |
| 438 | 438 | |
| 439 | state->maincpu = | |
| 439 | state->maincpu = m | |
| 440 | 440 | |
| 441 | 441 | state_save_register_global(machine, state->cursor); |
| 442 | 442 | state_save_register_global(machine, state->wavemod); |
| r8581 | r8582 | |
|---|---|---|
| 269 | 269 | { |
| 270 | 270 | fcombat_state *state = (fcombat_state *)machine->driver_data; |
| 271 | 271 | |
| 272 | state->maincpu = | |
| 272 | state->maincpu = m | |
| 273 | 273 | |
| 274 | 274 | state_save_register_global(machine, state->cocktail_flip); |
| 275 | 275 | state_save_register_global(machine, state->char_palette); |
| r8581 | r8582 | |
|---|---|---|
| 161 | 161 | static WRITE8_HANDLER( sprite_dma_w ) |
| 162 | 162 | { |
| 163 | 163 | int source = (data & 7); |
| 164 | ppu2c0x_spriteram_dma(space, | |
| 164 | ppu2c0x_spriteram_dma(space, | |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | static READ8_DEVICE_HANDLER( psg_4015_r ) |
| r8581 | r8582 | |
| 341 | 341 | if (--multigam3_mmc3_scanline_counter == -1) |
| 342 | 342 | { |
| 343 | 343 | multigam3_mmc3_scanline_counter = multigam3_mmc3_scanline_latch; |
| 344 | generic_pulse_irq_line(dev | |
| 344 | generic_pulse_irq_line(dev | |
| 345 | 345 | } |
| 346 | 346 | } |
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | static WRITE8_HANDLER( multigam3_mmc3_rom_switch_w ) |
| 350 | 350 | { |
| 351 | running_device *ppu = | |
| 351 | running_device *ppu = | |
| 352 | 352 | |
| 353 | 353 | /* basically, a MMC3 mapper from the nes */ |
| 354 | 354 | static int multigam3_mmc3_command; |
| r8581 | r8582 | |
| 620 | 620 | multigam_mapper02_prg_base = prg_base; |
| 621 | 621 | multigam_mapper02_prg_size = prg_size; |
| 622 | 622 | |
| 623 | ppu2c0x_set_scanline_callback( | |
| 623 | ppu2c0x_set_scanline_callback(m | |
| 624 | 624 | } |
| 625 | 625 | |
| 626 | 626 | /****************************************************** |
| r8581 | r8582 | |
| 785 | 785 | multigam_mmc1_prg_size = prg_size; |
| 786 | 786 | multigam_mmc1_chr_bank_base = chr_bank_base; |
| 787 | 787 | |
| 788 | ppu2c0x_set_scanline_callback( | |
| 788 | ppu2c0x_set_scanline_callback(m | |
| 789 | 789 | |
| 790 | 790 | }; |
| 791 | 791 | |
| r8581 | r8582 | |
| 816 | 816 | |
| 817 | 817 | static void supergm3_set_bank(running_machine *machine) |
| 818 | 818 | { |
| 819 | running_device *ppu = | |
| 819 | running_device *ppu = m | |
| 820 | 820 | UINT8* mem = memory_region(machine, "maincpu"); |
| 821 | 821 | |
| 822 | 822 | // video bank |
| r8581 | r8582 | |
| 1059 | 1059 | static VIDEO_UPDATE( multigam ) |
| 1060 | 1060 | { |
| 1061 | 1061 | /* render the ppu */ |
| 1062 | ppu2c0x_render( | |
| 1062 | ppu2c0x_render( | |
| 1063 | 1063 | return 0; |
| 1064 | 1064 | } |
| 1065 | 1065 | |
| r8581 | r8582 | |
| 1092 | 1092 | nt_page[2] = nt_ram + 0x800; |
| 1093 | 1093 | nt_page[3] = nt_ram + 0xc00; |
| 1094 | 1094 | |
| 1095 | memory_install_readwrite8_handler(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, multigam_nt_r, multigam_nt_w); | |
| 1096 | memory_install_read_bank(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x0000, 0x1fff, 0, 0, "bank1"); | |
| 1095 | memory_install_readwrite8_handler(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x2000, 0x3eff, 0, 0, multigam_nt_r, multigam_nt_w); | |
| 1096 | memory_install_read_bank(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x0000, 0x1fff, 0, 0, "bank1"); | |
| 1097 | 1097 | memory_set_bankptr(machine, "bank1", memory_region(machine, "gfx1")); |
| 1098 | 1098 | } |
| 1099 | 1099 | |
| r8581 | r8582 | |
| 1105 | 1105 | nt_page[2] = nt_ram + 0x800; |
| 1106 | 1106 | nt_page[3] = nt_ram + 0xc00; |
| 1107 | 1107 | |
| 1108 | memory_install_readwrite8_handler(cpu_get_address_space( | |
| 1108 | memory_install_readwrite8_handler(cpu_get_address_space(m | |
| 1109 | 1109 | |
| 1110 | memory_install_read_bank(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x0000, 0x03ff, 0, 0, "bank2"); | |
| 1111 | memory_install_read_bank(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x0400, 0x07ff, 0, 0, "bank3"); | |
| 1112 | memory_install_read_bank(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x0800, 0x0bff, 0, 0, "bank4"); | |
| 1113 | memory_install_read_bank(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x0c00, 0x0fff, 0, 0, "bank5"); | |
| 1114 | memory_install_read_bank(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x1000, 0x13ff, 0, 0, "bank6"); | |
| 1115 | memory_install_read_bank(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x1400, 0x17ff, 0, 0, "bank7"); | |
| 1116 | memory_install_read_bank(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x1800, 0x1bff, 0, 0, "bank8"); | |
| 1117 | memory_install_read_bank(cpu_get_address_space(devtag_get_device(machine, "ppu"), ADDRESS_SPACE_PROGRAM), 0x1c00, 0x1fff, 0, 0, "bank9"); | |
| 1110 | memory_install_read_bank(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x0000, 0x03ff, 0, 0, "bank2"); | |
| 1111 | memory_install_read_bank(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x0400, 0x07ff, 0, 0, "bank3"); | |
| 1112 | memory_install_read_bank(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x0800, 0x0bff, 0, 0, "bank4"); | |
| 1113 | memory_install_read_bank(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x0c00, 0x0fff, 0, 0, "bank5"); | |
| 1114 | memory_install_read_bank(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x1000, 0x13ff, 0, 0, "bank6"); | |
| 1115 | memory_install_read_bank(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x1400, 0x17ff, 0, 0, "bank7"); | |
| 1116 | memory_install_read_bank(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x1800, 0x1bff, 0, 0, "bank8"); | |
| 1117 | memory_install_read_bank(cpu_get_address_space(machine->device("ppu"), ADDRESS_SPACE_PROGRAM), 0x1c00, 0x1fff, 0, 0, "bank9"); | |
| 1118 | 1118 | |
| 1119 | 1119 | set_videorom_bank(machine, 0, 8, 0, 8); |
| 1120 | 1120 | }; |
| r8581 | r8582 | |
| 1127 | 1127 | nt_page[2] = nt_ram + 0x800; |
| 1128 | 1128 | nt_page[3] = nt_ram + 0xc00; |
| 1129 | 1129 | |
| 1130 | memory_install_readwrite8_handler(cpu_get_address_space( | |
| 1130 | memory_install_readwrite8_handler(cpu_get_address_space(m | |
| 1131 | 1131 | |
| 1132 | 1132 | vram = auto_alloc_array(machine, UINT8, 0x2000); |
| 1133 | 1133 | multigmc_mmc3_6000_ram = auto_alloc_array(machine, UINT8, 0x2000); |
| r8581 | r8582 | |
|---|---|---|
| 429 | 429 | |
| 430 | 430 | memory_configure_bank(machine, "bank1", 0, 3, &ROM[0x10000], 0x8000); |
| 431 | 431 | |
| 432 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 433 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 432 | state->maincpu = machine->device("maincpu"); | |
| 433 | state->audiocpu = machine->device("audiocpu"); | |
| 434 | 434 | |
| 435 | 435 | state->raster_interrupt_timer = timer_alloc(machine, raster_interrupt_callback, NULL); |
| 436 | 436 | } |
| r8581 | r8582 | |
|---|---|---|
| 103 | 103 | { |
| 104 | 104 | int y; |
| 105 | 105 | const rgb_t *const pens = tlc34076_get_pens(); |
| 106 | running_device *aux = | |
| 106 | running_device *aux = | |
| 107 | 107 | |
| 108 | 108 | UINT16 *m68k_buf = m68k_framebuffer[(*framebuffer_ctrl & 0x20) ? 1 : 0]; |
| 109 | 109 | UINT16 *i860_buf = i860_framebuffer[(screen == aux) ? 1 : 0][0]; |
| r8581 | r8582 | |
| 217 | 217 | |
| 218 | 218 | static WRITE16_HANDLER( wiggle_i860p0_pins_w ) |
| 219 | 219 | { |
| 220 | wiggle_i860_common( | |
| 220 | wiggle_i860_common( | |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | static WRITE16_HANDLER( wiggle_i860p1_pins_w ) |
| 224 | 224 | { |
| 225 | wiggle_i860_common( | |
| 225 | wiggle_i860_common( | |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | static READ16_HANDLER( main_irqiack_r ) |
| 229 | 229 | { |
| 230 | 230 | //fprintf(stderr, "M0: irq iack\n"); |
| 231 | cpu_set_input_line(devtag_get_device(space->machine, "maincpu"), M68K_IRQ_1, CLEAR_LINE); | |
| 232 | //cpu_set_input_line(devtag_get_device(space->machine, "maincpu"), INPUT_LINE_RESET, CLEAR_LINE); | |
| 231 | cpu_set_input_line(space->machine->device("maincpu"), M68K_IRQ_1, CLEAR_LINE); | |
| 232 | //cpu_set_input_line(space->machine->device("maincpu"), INPUT_LINE_RESET, CLEAR_LINE); | |
| 233 | 233 | return 0; |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | static READ16_HANDLER( sound_resetmain_r ) |
| 237 | 237 | { |
| 238 | 238 | //fprintf(stderr, "M1: reset line to M0\n"); |
| 239 | //cpu_set_input_line( | |
| 239 | //cpu_set_input_line( | |
| 240 | 240 | return 0; |
| 241 | 241 | } |
| 242 | 242 | |
| r8581 | r8582 | |
| 286 | 286 | |
| 287 | 287 | static WRITE16_HANDLER( crtc_w ) |
| 288 | 288 | { |
| 289 | running_device *crtc = | |
| 289 | running_device *crtc = | |
| 290 | 290 | |
| 291 | 291 | if (crtc == NULL) |
| 292 | 292 | return; |
| r8581 | r8582 | |
| 378 | 378 | /* Setup the Bt476 VGA RAMDAC palette chip */ |
| 379 | 379 | tlc34076_reset(6); |
| 380 | 380 | |
| 381 | i860_set_pin(devtag_get_device(machine, "vid_0"), DEC_PIN_BUS_HOLD, 1); | |
| 382 | i860_set_pin(devtag_get_device(machine, "vid_1"), DEC_PIN_BUS_HOLD, 1); | |
| 381 | i860_set_pin(machine->device("vid_0"), DEC_PIN_BUS_HOLD, 1); | |
| 382 | i860_set_pin(machine->device("vid_1"), DEC_PIN_BUS_HOLD, 1); | |
| 383 | 383 | |
| 384 | 384 | crtc_select = 0; |
| 385 | 385 | } |
| r8581 | r8582 | |
| 389 | 389 | /* Setup the Bt476 VGA RAMDAC palette chip */ |
| 390 | 390 | tlc34076_reset(6); |
| 391 | 391 | |
| 392 | i860_set_pin( | |
| 392 | i860_set_pin(m | |
| 393 | 393 | |
| 394 | 394 | crtc_select = 0; |
| 395 | 395 | } |
| r8581 | r8582 | |
| 530 | 530 | static WRITE_LINE_DEVICE_HANDLER(sound_update) |
| 531 | 531 | { |
| 532 | 532 | /* Seems reasonable */ |
| 533 | cpu_set_input_line(dev | |
| 533 | cpu_set_input_line(dev | |
| 534 | 534 | } |
| 535 | 535 | |
| 536 | 536 | static const mc6845_interface mc6845_intf = |
| r8581 | r8582 | |
|---|---|---|
| 623 | 623 | } |
| 624 | 624 | case 0x30: |
| 625 | 625 | { |
| 626 | sn76496_w( | |
| 626 | sn76496_w( | |
| 627 | 627 | break; |
| 628 | 628 | } |
| 629 | 629 | case 0x31: |
| r8581 | r8582 | |
|---|---|---|
| 413 | 413 | |
| 414 | 414 | static WRITE8_HANDLER( journey_op4_w ) |
| 415 | 415 | { |
| 416 | running_device *samples = | |
| 416 | running_device *samples = | |
| 417 | 417 | |
| 418 | 418 | /* if we're not playing the sample yet, start it */ |
| 419 | 419 | if (!sample_playing(samples, 0)) |
| r8581 | r8582 | |
| 534 | 534 | |
| 535 | 535 | static WRITE8_HANDLER( nflfoot_op4_w ) |
| 536 | 536 | { |
| 537 | running_device *sio = | |
| 537 | running_device *sio = | |
| 538 | 538 | |
| 539 | 539 | /* bit 7 = J3-7 on IPU board = /RXDA on SIO */ |
| 540 | 540 | logerror("%04X:op4_w(%d%d%d)\n", cpu_get_pc(space->cpu), (data >> 7) & 1, (data >> 6) & 1, (data >> 5) & 1); |
| r8581 | r8582 | |
|---|---|---|
| 135 | 135 | beaminv_state *state = (beaminv_state *)machine->driver_data; |
| 136 | 136 | create_interrupt_timer(machine); |
| 137 | 137 | |
| 138 | state->maincpu = | |
| 138 | state->maincpu = m | |
| 139 | 139 | |
| 140 | 140 | /* setup for save states */ |
| 141 | 141 | state_save_register_global(machine, state->controller_select); |
| r8581 | r8582 | |
|---|---|---|
| 303 | 303 | { |
| 304 | 304 | matmania_state *state = (matmania_state *)machine->driver_data; |
| 305 | 305 | |
| 306 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 307 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 308 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 306 | state->maincpu = machine->device("maincpu"); | |
| 307 | state->audiocpu = machine->device("audiocpu"); | |
| 308 | state->mcu = machine->device("mcu"); | |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | 311 | static MACHINE_DRIVER_START( matmania ) |
| r8581 | r8582 | |
|---|---|---|
| 97 | 97 | { |
| 98 | 98 | dcheese_state *state = (dcheese_state *)machine->driver_data; |
| 99 | 99 | |
| 100 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 101 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 102 | state->bsmt = devtag_get_device(machine, "bsmt"); | |
| 100 | state->maincpu = machine->device("maincpu"); | |
| 101 | state->audiocpu = machine->device("audiocpu"); | |
| 102 | state->bsmt = machine->device("bsmt"); | |
| 103 | 103 | |
| 104 | 104 | cpu_set_irq_callback(state->maincpu, irq_callback); |
| 105 | 105 | |
| r8581 | r8582 | |
| 131 | 131 | if (ACCESSING_BITS_0_7) |
| 132 | 132 | { |
| 133 | 133 | input_port_write(space->machine, "EEPROMOUT", data, 0xff); |
| 134 | ticket_dispenser_w( | |
| 134 | ticket_dispenser_w( | |
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 |
| r8581 | r8582 | |
|---|---|---|
| 359 | 359 | |
| 360 | 360 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0x10000], 0x2000); |
| 361 | 361 | |
| 362 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 363 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 364 | state->k051316_1 = devtag_get_device(machine, "k051316_1"); | |
| 365 | state->k051316_2 = devtag_get_device(machine, "k051316_2"); | |
| 366 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 367 | state->k007232_1 = devtag_get_device(machine, "k007232_1"); | |
| 368 | state->k007232_2 = devtag_get_device(machine, "k007232_2"); | |
| 362 | state->maincpu = machine->device("maincpu"); | |
| 363 | state->audiocpu = machine->device("audiocpu"); | |
| 364 | state->k051316_1 = machine->device("k051316_1"); | |
| 365 | state->k051316_2 = machine->device("k051316_2"); | |
| 366 | state->k051960 = machine->device("k051960"); | |
| 367 | state->k007232_1 = machine->device("k007232_1"); | |
| 368 | state->k007232_2 = machine->device("k007232_2"); | |
| 369 | 369 | |
| 370 | 370 | state_save_register_global(machine, state->k051316_readroms); |
| 371 | 371 | state_save_register_global(machine, state->last_vreg); |
| r8581 | r8582 | |
|---|---|---|
| 571 | 571 | |
| 572 | 572 | memory_configure_bank(machine, "bank1", 0, 8, &ROM[0x10000], 0x2000); |
| 573 | 573 | |
| 574 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 575 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 576 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 574 | state->maincpu = machine->device("maincpu"); | |
| 575 | state->audiocpu = machine->device("audiocpu"); | |
| 576 | state->mcu = machine->device("mcu"); | |
| 577 | 577 | |
| 578 | 578 | state_save_register_global(machine, state->port_a_in); |
| 579 | 579 | state_save_register_global(machine, state->port_a_out); |
| r8581 | r8582 | |
|---|---|---|
| 111 | 111 | static WRITE8_HANDLER( sprite_dma_w ) |
| 112 | 112 | { |
| 113 | 113 | int source = (data & 7); |
| 114 | ppu2c0x_spriteram_dma(space, | |
| 114 | ppu2c0x_spriteram_dma(space, | |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | static READ8_DEVICE_HANDLER( psg_4015_r ) |
| r8581 | r8582 | |
| 272 | 272 | static VIDEO_UPDATE( cham24 ) |
| 273 | 273 | { |
| 274 | 274 | /* render the ppu */ |
| 275 | ppu2c0x_render( | |
| 275 | ppu2c0x_render( | |
| 276 | 276 | return 0; |
| 277 | 277 | } |
| 278 | 278 | |
| r8581 | r8582 | |
| 287 | 287 | memcpy(&dst[0xc000], &src[0x0f8000], 0x4000); |
| 288 | 288 | |
| 289 | 289 | /* uses 8K swapping, all ROM!*/ |
| 290 | memory_install_read_bank(cpu_get_address_space( | |
| 290 | memory_install_read_bank(cpu_get_address_space(m | |
| 291 | 291 | memory_set_bankptr(machine, "bank1", memory_region(machine, "gfx1")); |
| 292 | 292 | |
| 293 | 293 | /* need nametable ram, though. I doubt this uses more than 2k, but it starts up configured for 4 */ |
| r8581 | r8582 | |
| 298 | 298 | nt_page[3] = nt_ram + 0xc00; |
| 299 | 299 | |
| 300 | 300 | /* and read/write handlers */ |
| 301 | memory_install_readwrite8_handler(cpu_get_address_space( | |
| 301 | memory_install_readwrite8_handler(cpu_get_address_space(m | |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | 304 | static DRIVER_INIT( cham24 ) |
| r8581 | r8582 | |
|---|---|---|
| 367 | 367 | { |
| 368 | 368 | brkthru_state *state = (brkthru_state *)machine->driver_data; |
| 369 | 369 | |
| 370 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 371 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 370 | state->maincpu = machine->device("maincpu"); | |
| 371 | state->audiocpu = machine->device("audiocpu"); | |
| 372 | 372 | |
| 373 | 373 | state_save_register_global(machine, state->bgscroll); |
| 374 | 374 | state_save_register_global(machine, state->bgbasecolor); |
| r8581 | r8582 | |
|---|---|---|
| 122 | 122 | { |
| 123 | 123 | if(mux_data & 8) |
| 124 | 124 | { |
| 125 | return ym2151_r( | |
| 125 | return ym2151_r( | |
| 126 | 126 | } |
| 127 | 127 | else if(mux_data & 4) |
| 128 | 128 | { |
| r8581 | r8582 | |
| 138 | 138 | |
| 139 | 139 | static WRITE8_HANDLER( rbmk_mcu_io_w ) |
| 140 | 140 | { |
| 141 | if(mux_data & 8) { ym2151_w( | |
| 141 | if(mux_data & 8) { ym2151_w( | |
| 142 | 142 | else if(mux_data & 4) |
| 143 | 143 | { |
| 144 | 144 | //printf("%02x %02x W\n",offset,data); |
| r8581 | r8582 | |
|---|---|---|
| 170 | 170 | rectangle visarea; |
| 171 | 171 | |
| 172 | 172 | /* initialize globals */ |
| 173 | state->maincpu = | |
| 173 | state->maincpu = m | |
| 174 | 174 | state->syncprom = memory_region(machine, "proms") + 0x000; |
| 175 | 175 | |
| 176 | 176 | /* find the start of VBLANK in the SYNC PROM */ |
| r8581 | r8582 | |
|---|---|---|
| 441 | 441 | { |
| 442 | 442 | changela_state *state = (changela_state *)machine->driver_data; |
| 443 | 443 | |
| 444 | state->mcu = | |
| 444 | state->mcu = m | |
| 445 | 445 | |
| 446 | 446 | /* video */ |
| 447 | 447 | state_save_register_global(machine, state->slopeROM_bank); |
| r8581 | r8582 | |
|---|---|---|
| 471 | 471 | { |
| 472 | 472 | backfire_state *state = (backfire_state *)machine->driver_data; |
| 473 | 473 | |
| 474 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 475 | state->deco16ic = devtag_get_device(machine, "deco_custom"); | |
| 476 | state->lscreen = devtag_get_device(machine, "lscreen"); | |
| 477 | state->rscreen = devtag_get_device(machine, "rscreen"); | |
| 478 | state->eeprom = devtag_get_device(machine, "eeprom"); | |
| 474 | state->maincpu = machine->device("maincpu"); | |
| 475 | state->deco16ic = machine->device("deco_custom"); | |
| 476 | state->lscreen = machine->device("lscreen"); | |
| 477 | state->rscreen = machine->device("rscreen"); | |
| 478 | state->eeprom = machine->device("eeprom"); | |
| 479 | 479 | } |
| 480 | 480 | |
| 481 | 481 | static MACHINE_DRIVER_START( backfire ) |
| r8581 | r8582 | |
| 691 | 691 | deco56_decrypt_gfx(machine, "gfx1"); /* 141 */ |
| 692 | 692 | deco56_decrypt_gfx(machine, "gfx2"); /* 141 */ |
| 693 | 693 | deco156_decrypt(machine); |
| 694 | c | |
| 694 | machin | |
| 695 | 695 | descramble_sound(machine); |
| 696 | 696 | memory_install_read32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x0170018, 0x017001b, 0, 0, backfire_speedup_r ); |
| 697 | 697 | } |
| r8581 | r8582 | |
|---|---|---|
| 110 | 110 | for (y = cliprect->min_y; y <= cliprect->max_y; ++y) |
| 111 | 111 | { |
| 112 | 112 | int i; |
| 113 | int num_entries = cubeqcpu_get_ptr_ram_val(devtag_get_device(screen->machine, "line_cpu"), y); | |
| 114 | UINT32 *stk_ram = cubeqcpu_get_stack_ram(devtag_get_device(screen->machine, "line_cpu")); | |
| 113 | int num_entries = cubeqcpu_get_ptr_ram_val(screen->machine->device("line_cpu"), y); | |
| 114 | UINT32 *stk_ram = cubeqcpu_get_stack_ram(screen->machine->device("line_cpu")); | |
| 115 | 115 | UINT32 *dest = BITMAP_ADDR32(bitmap, y, 0); |
| 116 | 116 | UINT32 pen; |
| 117 | 117 | |
| r8581 | r8582 | |
| 240 | 240 | |
| 241 | 241 | static TIMER_CALLBACK( delayed_bank_swap ) |
| 242 | 242 | { |
| 243 | cubeqcpu_swap_line_banks( | |
| 243 | cubeqcpu_swap_line_banks(m | |
| 244 | 244 | |
| 245 | 245 | /* TODO: This is a little dubious */ |
| 246 | cubeqcpu_clear_stack( | |
| 246 | cubeqcpu_clear_stack(m | |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | |
| r8581 | r8582 | |
| 375 | 375 | |
| 376 | 376 | static READ16_HANDLER( read_rotram ) |
| 377 | 377 | { |
| 378 | return cubeqcpu_rotram_r( | |
| 378 | return cubeqcpu_rotram_r( | |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | static WRITE16_HANDLER( write_rotram ) |
| 382 | 382 | { |
| 383 | cubeqcpu_rotram_w( | |
| 383 | cubeqcpu_rotram_w( | |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | 386 | static READ16_HANDLER( read_sndram ) |
| 387 | 387 | { |
| 388 | return cubeqcpu_sndram_r( | |
| 388 | return cubeqcpu_sndram_r( | |
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | static WRITE16_HANDLER( write_sndram ) |
| 392 | 392 | { |
| 393 | cubeqcpu_sndram_w( | |
| 393 | cubeqcpu_sndram_w( | |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | static ADDRESS_MAP_START( m68k_program_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| r8581 | r8582 | |
| 427 | 427 | |
| 428 | 428 | static MACHINE_START( cubeqst ) |
| 429 | 429 | { |
| 430 | laserdisc = | |
| 430 | laserdisc = m | |
| 431 | 431 | } |
| 432 | 432 | |
| 433 | 433 | static MACHINE_RESET( cubeqst ) |
| r8581 | r8582 | |
| 467 | 467 | "rdac6", "ldac6", |
| 468 | 468 | "rdac7", "ldac7" |
| 469 | 469 | }; |
| 470 | dac_signed_data_16_w(dev | |
| 470 | dac_signed_data_16_w(dev | |
| 471 | 471 | } |
| 472 | 472 | |
| 473 | 473 | static const cubeqst_snd_config snd_config = |
| r8581 | r8582 | |
|---|---|---|
| 386 | 386 | { |
| 387 | 387 | exerion_state *state = (exerion_state *)machine->driver_data; |
| 388 | 388 | |
| 389 | state->maincpu = | |
| 389 | state->maincpu = m | |
| 390 | 390 | |
| 391 | 391 | state_save_register_global(machine, state->porta); |
| 392 | 392 | state_save_register_global(machine, state->portb); |
| r8581 | r8582 | |
|---|---|---|
| 166 | 166 | workram = auto_alloc_array(machine, UINT16, 0x04000/2); |
| 167 | 167 | |
| 168 | 168 | /* init the memory mapper */ |
| 169 | segaic16_memory_mapper_init( | |
| 169 | segaic16_memory_mapper_init(m | |
| 170 | 170 | |
| 171 | 171 | /* init the FD1094 */ |
| 172 | 172 | fd1094_driver_init(machine, "maincpu", segaic16_memory_mapper_set_decrypted); |
| r8581 | r8582 | |
| 175 | 175 | state->custom_io_r = NULL; |
| 176 | 176 | state->custom_io_w = NULL; |
| 177 | 177 | |
| 178 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 179 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 180 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 178 | state->maincpu = machine->device("maincpu"); | |
| 179 | state->soundcpu = machine->device("soundcpu"); | |
| 180 | state->mcu = machine->device("mcu"); | |
| 181 | 181 | |
| 182 | 182 | state_save_register_global(machine, state->mcu_data); |
| 183 | 183 | state_save_register_global(machine, state->lghost_value); |
| r8581 | r8582 | |
| 212 | 212 | |
| 213 | 213 | segaic16_memory_mapper_reset(machine); |
| 214 | 214 | segaic16_tilemap_reset(machine, 0); |
| 215 | fd1094_machine_init( | |
| 215 | fd1094_machine_init(m | |
| 216 | 216 | |
| 217 | 217 | /* if we are running with a real live 8751, we need to boost the interleave at startup */ |
| 218 | 218 | if (state->mcu != NULL && state->mcu->type() == I8751) |
| r8581 | r8582 | |
|---|---|---|
| 237 | 237 | coin_counter_w(space->machine, 0, (data & 0x0001)); // key in | |
| 238 | 238 | coin_counter_w(space->machine, 0, (data & 0x0002)); // coin in |- manual shows 1 in- and 1 out- counter |
| 239 | 239 | coin_counter_w(space->machine, 1, (data & 0x0004)); // key out | |
| 240 | ticket_dispenser_w( | |
| 240 | ticket_dispenser_w( | |
| 241 | 241 | // (data & 0x0010) // hopper? |
| 242 | 242 | set_led_status(space->machine, 0, (data & 0x0020)); // error lamp (coin/hopper jam: "call attendant") |
| 243 | ticket_dispenser_w( | |
| 243 | ticket_dispenser_w( | |
| 244 | 244 | } |
| 245 | 245 | if (ACCESSING_BITS_8_15) |
| 246 | 246 | { |
| r8581 | r8582 | |
|---|---|---|
| 668 | 668 | { |
| 669 | 669 | rainbow_state *state = (rainbow_state *)machine->driver_data; |
| 670 | 670 | |
| 671 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 672 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 673 | state->pc080sn = devtag_get_device(machine, "pc080sn"); | |
| 674 | state->pc090oj = devtag_get_device(machine, "pc090oj"); | |
| 671 | state->maincpu = machine->device("maincpu"); | |
| 672 | state->audiocpu = machine->device("audiocpu"); | |
| 673 | state->pc080sn = machine->device("pc080sn"); | |
| 674 | state->pc090oj = machine->device("pc090oj"); | |
| 675 | 675 | } |
| 676 | 676 | |
| 677 | 677 | static MACHINE_DRIVER_START( rainbow ) |
| r8581 | r8582 | |
|---|---|---|
| 204 | 204 | { |
| 205 | 205 | galspnbl_state *state = (galspnbl_state *)machine->driver_data; |
| 206 | 206 | |
| 207 | state->audiocpu = | |
| 207 | state->audiocpu = m | |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | static MACHINE_DRIVER_START( galspnbl ) |
| r8581 | r8582 | |
|---|---|---|
| 467 | 467 | // bank = -1; |
| 468 | 468 | // lastvalue = -1; |
| 469 | 469 | // hv_blank = 0; |
| 470 | cpu_set_irq_callback(devtag_get_device(machine, "maincpu"), irq_callback); | |
| 471 | photoply_devices.pit8253 = devtag_get_device( machine, "pit8254" ); | |
| 472 | photoply_devices.pic8259_1 = devtag_get_device( machine, "pic8259_1" ); | |
| 473 | photoply_devices.pic8259_2 = devtag_get_device( machine, "pic8259_2" ); | |
| 474 | photoply_devices.dma8237_1 = devtag_get_device( machine, "dma8237_1" ); | |
| 475 | photoply_devices.dma8237_2 = devtag_get_device( machine, "dma8237_2" ); | |
| 470 | cpu_set_irq_callback(machine->device("maincpu"), irq_callback); | |
| 471 | photoply_devices.pit8253 = machine->device( "pit8254" ); | |
| 472 | photoply_devices.pic8259_1 = machine->device( "pic8259_1" ); | |
| 473 | photoply_devices.pic8259_2 = machine->device( "pic8259_2" ); | |
| 474 | photoply_devices.dma8237_1 = machine->device( "dma8237_1" ); | |
| 475 | photoply_devices.dma8237_2 = machine->device( "dma8237_2" ); | |
| 476 | 476 | |
| 477 | 477 | init_pc_common(machine, PCCOMMON_KEYBOARD_AT, photoply_set_keyb_int); |
| 478 | 478 | mc146818_init(machine, MC146818_STANDARD); |
| r8581 | r8582 | |
|---|---|---|
| 366 | 366 | |
| 367 | 367 | memory_configure_bank(machine, "bank2", 0, 8, &ROM[0x10000], 0x4000); |
| 368 | 368 | |
| 369 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 370 | state->audiocpu = devtag_get_device(machine, "soundcpu"); | |
| 371 | state->k053936 = devtag_get_device(machine, "k053936"); | |
| 372 | state->k055673 = devtag_get_device(machine, "k055673"); | |
| 373 | state->k053252 = devtag_get_device(machine, "k053252"); | |
| 374 | state->k054539_1 = devtag_get_device(machine, "k054539_1"); | |
| 375 | state->k054539_2 = devtag_get_device(machine, "k054539_2"); | |
| 369 | state->maincpu = machine->device("maincpu"); | |
| 370 | state->audiocpu = machine->device("soundcpu"); | |
| 371 | state->k053936 = machine->device("k053936"); | |
| 372 | state->k055673 = machine->device("k055673"); | |
| 373 | state->k053252 = machine->device("k053252"); | |
| 374 | state->k054539_1 = machine->device("k054539_1"); | |
| 375 | state->k054539_2 = machine->device("k054539_2"); | |
| 376 | 376 | |
| 377 | 377 | state_save_register_global(machine, state->z80_control); |
| 378 | 378 | state_save_register_global(machine, state->sound_status); |
| r8581 | r8582 | |
| 384 | 384 | { |
| 385 | 385 | rungun_state *state = (rungun_state *)machine->driver_data; |
| 386 | 386 | |
| 387 | k054539_init_flags( | |
| 387 | k054539_init_flags(m | |
| 388 | 388 | |
| 389 | 389 | memset(state->sysreg, 0, 0x20); |
| 390 | 390 | memset(state->ttl_vram, 0, 0x1000); |
| r8581 | r8582 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | ------------------------------------------------------------ |
| 51 | 51 | |
| 52 | ||
| 52 | ||
| 53 | 53 | |
| 54 | ROM1 (program rom) and ROM2 (sound sample) are stadard 32 pin | |
| 55 | style PROMs. The graphics are stored in ROM3 & ROM4 which | |
| 56 | appear to be surface mounted 8 Mbit roms. | |
| 54 | +-------+ +-------------+ +------------+ | |
| 55 | | VR1 +---+ Connector +---+ +---+ +---+| | |
| 56 | +-+386D +---+ | R | | R || | |
| 57 | | ULN2003A | R | | O | | O || | |
| 58 | | | O | | M | | M || | |
| 59 | |8 | M | | 3 | | 4 || | |
| 60 | | ULN2003A | 2 | +---+ +---+| | |
| 61 | |L +----+ +---+ | | |
| 62 | |i |6295| 62H256 | | |
| 63 | |n +----+ +----------+ | | |
| 64 | |e ULN2003A | | | | |
| 65 | |r +-----+ | AMCOE | 25MHz | | |
| 66 | | |9536 | | SALTIRE | | | |
| 67 | |C | | | | | | |
| 68 | |o +-----+ +----------+ | | |
| 69 | |n CN1| | |
| 70 | |n CN3 12MHz 4.9152MHz | | |
| 71 | |e CN2| | |
| 72 | |c +----------+ | | |
| 73 | |t +---------+ | ROM1 | | | |
| 74 | |o | HM86171 | +----------+ SW4| | |
| 75 | |r +---------+ | | |
| 76 | | FM1608-120 | | |
| 77 | | SW5| | |
| 78 | +-+ H3 | | |
| 79 | +------------------------------------------+ | |
| 57 | 80 | |
| 58 | ------------------------------------------------------------ | |
| 81 | CPU: Amcoe Saltire 208PQFP (Z80 core) | |
| 82 | Graphics: HM86171 | |
| 83 | OSC: 25.000MHz, 12.000MHz & 4.9152MHz | |
| 84 | Sound: OKI M6295 | |
| 85 | Other: XILINX XC9536XL (used for programable protection, connected to H2) | |
| 59 | 86 | |
| 87 | HM86171-120 - HMC 28 pin DIP Color Pallete RAMDAC | |
| 88 | FM1608-120 - RAMTRON 64Kb bytewide Ferroelectric Nonvolatile RAM | |
| 89 | ULN2003A - 16 pin DIP Seven Darlington Arrays | |
| 90 | 386D - JRC 386D low voltage AMP | |
| 91 | VR1 - Sound adjust pot | |
| 92 | ||
| 93 | H2 - 6 pin header used to program the XC9536XL (JTAG?) | |
| 94 | H3 - 20 pin dual row connector | |
| 95 | ||
| 96 | CN1 & CN2 are RJ45 LINK connectors | |
| 97 | ||
| 98 | ROMs 1 is a AMIC 290021T | |
| 99 | ROM 2 is a AMIC A29040BV surface mounted | |
| 100 | ROMs 3 & 4 are MX 29LV400TTC surface mounted | |
| 101 | ||
| 102 | -------------------------------------------------------------------- | |
| 103 | ||
| 60 | 104 | Model No. S2000-B |
| 61 | 105 | +---------+ +-------------+ +--------------------+ |
| 62 | 106 | | +---+ Connector +---+ | |
| r8581 | r8582 | |
| 88 | 132 | +-+ S S S S S B R +-+ |
| 89 | 133 | | W W W W W A S | |
| 90 | 134 | +-+ 1 2 3 4 5 T T | |
| 91 | +---------------------------------------------------+ | |
| 135 | +----------------------------------------------------+ | |
| 92 | 136 | |
| 93 | 137 | CPU: Amcoe SGC2000 208PQFP (Z80 core) |
| 94 | 138 | Graphics: HM86171 |
| r8581 | r8582 | |
| 4947 | 4991 | ROM_LOAD_OPTIONAL( "fb617lt.id", 0x00, 0x20, CRC(9903b0a6) SHA1(840873524b1cc33539926655ef94d23f6b219f76) ) |
| 4948 | 4992 | ROM_END |
| 4949 | 4993 | |
| 4950 | ROM_START( fb6s1 ) | |
| 4994 | ROM_START( fb6s1 ) /* "Compact" PCB, the surface mounted roms haven't been dumped yet */ | |
| 4951 | 4995 | ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */ |
| 4952 | 4996 | ROM_LOAD( "f06s17r.bin", 0x00000, 0x40000, CRC(679747d1) SHA1(ca702324c436d54f4c23350b1af4f0250915883c) ) |
| 4953 | 4997 | |
| 4954 | // this is a 'compact' board, the standard roms don't seem correct | |
| 4955 | ||
| 4956 | 4998 | ROM_REGION( 0x040000, "oki", ROMREGION_ERASE00 ) /* Samples */ |
| 4957 | ROM_LOAD( " | |
| 4999 | ROM_LOAD( "a29040bv.rom2 | |
| 4958 | 5000 | |
| 4959 | 5001 | ROM_REGION( 0x100000, "gfx1", 0 ) |
| 4960 | ROM_LOAD16_BYTE( "fb06rom3.bin", 0x00000, 0x40000, CRC(63159a3a) SHA1(77e5801506ea58df73c406c8675dc8c06ba92313) ) | |
| 5002 | ROM_LOAD( "mx29lv400ttc.rom3", 0x00000, 0x080000, NO_DUMP ) | |
| 5003 | ROM_LOAD16_BYTE( "fb06rom3.bin", 0x00000, 0x40000, CRC(63159a3a) SHA1(77e5801506ea58df73c406c8675dc8c06ba92313) ) /* Use these for now so we can see something */ | |
| 4961 | 5004 | ROM_LOAD16_BYTE( "fb06rom4.bin", 0x00001, 0x40000, CRC(e4f4f04e) SHA1(412cfec7235455c09cffde5ca05c3e2fe4a040a0) ) |
| 4962 | 5005 | |
| 4963 | 5006 | ROM_REGION( 0x100000, "gfx2", 0 ) |
| 4964 | /* these should be different */ | |
| 4965 | ROM_LOAD16_BYTE( "fb06rom5_s.bin", 0x00000, 0x80000, NO_DUMP ) | |
| 4966 | ROM_LOAD16_BYTE( "fb06rom6_s.bin", 0x00001, 0x80000, NO_DUMP ) | |
| 5007 | ROM_LOAD( "mx29lv400ttc.rom4", 0x00000, 0x080000, NO_DUMP ) | |
| 4967 | 5008 | |
| 4968 | 5009 | ROM_REGION( 0x20, "defaults", 0 ) /* default settings */ |
| 4969 | 5010 | ROM_LOAD_OPTIONAL( "fb617re.id", 0x00, 0x20, CRC(132908c4) SHA1(4e4c58327a181c511c8144349432a178936a997f) ) |
| 4970 | 5011 | ROM_END |
| 4971 | 5012 | |
| 4972 | ROM_START( fb6s2 ) | |
| 5013 | ROM_START( fb6s2 ) /* "Compact" PCB, the surface mounted roms haven't been dumped yet */ | |
| 4973 | 5014 | ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */ |
| 4974 | 5015 | ROM_LOAD( "f06s17lt.bin", 0x00000, 0x40000, CRC(2008a56f) SHA1(1dec4818c49cd63cc29fcb5abdab7a256731ae7b) ) |
| 4975 | 5016 | |
| 4976 | // this is a 'compact' board, the standard roms don't seem correct | |
| 4977 | ||
| 4978 | 5017 | ROM_REGION( 0x040000, "oki", ROMREGION_ERASE00 ) /* Samples */ |
| 4979 | ROM_LOAD( " | |
| 5018 | ROM_LOAD( "a29040bv.rom2 | |
| 4980 | 5019 | |
| 4981 | 5020 | ROM_REGION( 0x100000, "gfx1", 0 ) |
| 4982 | ROM_LOAD16_BYTE( "fb06rom3.bin", 0x00000, 0x40000, CRC(63159a3a) SHA1(77e5801506ea58df73c406c8675dc8c06ba92313) ) | |
| 5021 | ROM_LOAD( "mx29lv400ttc.rom3", 0x00000, 0x080000, NO_DUMP ) | |
| 5022 | ROM_LOAD16_BYTE( "fb06rom3.bin", 0x00000, 0x40000, CRC(63159a3a) SHA1(77e5801506ea58df73c406c8675dc8c06ba92313) ) /* Use these for now so we can see something */ | |
| 4983 | 5023 | ROM_LOAD16_BYTE( "fb06rom4.bin", 0x00001, 0x40000, CRC(e4f4f04e) SHA1(412cfec7235455c09cffde5ca05c3e2fe4a040a0) ) |
| 4984 | 5024 | |
| 4985 | 5025 | ROM_REGION( 0x100000, "gfx2", 0 ) |
| 4986 | /* these should be different */ | |
| 4987 | ROM_LOAD16_BYTE( "fb06rom5_s.bin", 0x00000, 0x80000, NO_DUMP ) | |
| 4988 | ROM_LOAD16_BYTE( "fb06rom6_s.bin", 0x00001, 0x80000, NO_DUMP ) | |
| 5026 | ROM_LOAD( "mx29lv400ttc.rom4", 0x00000, 0x080000, NO_DUMP ) | |
| 4989 | 5027 | |
| 4990 | 5028 | ROM_REGION( 0x20, "defaults", 0 ) /* default settings */ |
| 4991 | 5029 | ROM_LOAD_OPTIONAL( "fb617lt.id", 0x00, 0x20, CRC(9903b0a6) SHA1(840873524b1cc33539926655ef94d23f6b219f76) ) |
| 4992 | 5030 | ROM_END |
| 4993 | 5031 | |
| 5032 | ROM_START( fb6s3 ) /* "Compact" PCB, the surface mounted roms haven't been dumped yet */ | |
| 5033 | ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */ | |
| 5034 | ROM_LOAD( "f06s13r.bin", 0x00000, 0x40000, CRC(93ba8c7c) SHA1(905572e98bd01c4db597ee30afbe5f9cb1b114ed) ) | |
| 5035 | ||
| 5036 | ROM_REGION( 0x040000, "oki", ROMREGION_ERASE00 ) /* Samples */ | |
| 5037 | ROM_LOAD( "a29040bv.rom2", 0x00000, 0x40000, BAD_DUMP CRC(f1adbcd5) SHA1(90a8830d000eb634c2db8a09431daba6cdcb2d34) ) /* dump is from a non compact PCB */ | |
| 5038 | ||
| 5039 | ROM_REGION( 0x100000, "gfx1", 0 ) | |
| 5040 | ROM_LOAD( "mx29lv400ttc.rom3", 0x00000, 0x080000, NO_DUMP ) | |
| 5041 | ROM_LOAD16_BYTE( "fb06rom3.bin", 0x00000, 0x40000, CRC(63159a3a) SHA1(77e5801506ea58df73c406c8675dc8c06ba92313) ) /* Use these for now so we can see something */ | |
| 5042 | ROM_LOAD16_BYTE( "fb06rom4.bin", 0x00001, 0x40000, CRC(e4f4f04e) SHA1(412cfec7235455c09cffde5ca05c3e2fe4a040a0) ) | |
| 5043 | ||
| 5044 | ROM_REGION( 0x100000, "gfx2", 0 ) | |
| 5045 | ROM_LOAD( "mx29lv400ttc.rom4", 0x00000, 0x080000, NO_DUMP ) | |
| 5046 | ||
| 5047 | ROM_REGION( 0x20, "defaults", 0 ) /* default settings */ | |
| 5048 | ROM_LOAD_OPTIONAL( "fb6130r.id", 0x00, 0x20, CRC(959969d1) SHA1(885b4708fb459c96ead67ae911e5296adc148ee3) ) | |
| 5049 | ROM_END | |
| 5050 | ||
| 4994 | 5051 | /* Fruit Bonus 2006 Special Edition */ |
| 4995 | 5052 | ROM_START( fb6se ) |
| 4996 | 5053 | ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */ |
| r8581 | r8582 | |
| 5827 | 5884 | GAME( 2006, fb6d2, fb6, sfbonus, amcoe1_reels3, fb6d, ROT0, "Amcoe", "Fruit Bonus '06 - 10th anniversary (Version 1.7LT CGA, set 1)", 0) |
| 5828 | 5885 | GAME( 2006, fb6s2, fb6, sfbonus, amcoe1_reels3, fb6s, ROT0, "Amcoe", "Fruit Bonus '06 - 10th anniversary (Version 1.7LT CGA, set 2)", GAME_NOT_WORKING) // no reel gfx |
| 5829 | 5886 | GAME( 2006, fb6v2, fb6, sfbonus, amcoe1_reels3, fb6v, ROT0, "Amcoe", "Fruit Bonus '06 - 10th anniversary (Version 1.7LT Dual)", 0) |
| 5887 | GAME( 2006, fb6s3, fb6, sfbonus, amcoe1_reels3, fb6s, ROT0, "Amcoe", "Fruit Bonus '06 - 10th anniversary (Version 1.3R CGA)", GAME_NOT_WORKING) // no reel gfx | |
| 5830 | 5888 | |
| 5831 | 5889 | GAME( 2006, fb6se, 0, sfbonus, amcoe1_reels3, fb6, ROT0, "Amcoe", "Fruit Bonus 2006 Special Edition (Version 1.4E CGA)", 0) /* Released August 2006 according to Amcoe web site */ |
| 5832 | 5890 | GAME( 2006, fb6sev, fb6se, sfbonus, amcoe1_reels3, fb6v3, ROT0, "Amcoe", "Fruit Bonus 2006 Special Edition (Version 1.4E Dual)", 0) |
| r8581 | r8582 | |
| 5841 | 5899 | GAME( 2006, bugfeverv2, bugfever, sfbonus, amcoe1_reels3, bugfeverv2, ROT0, "Amcoe", "Bugs Fever (Version 1.7E Dual)", 0) |
| 5842 | 5900 | GAME( 2006, bugfevero, bugfever, sfbonus, amcoe1_reels3, bugfever, ROT0, "Amcoe", "Bugs Fever (Version 1.6R CGA)", 0) |
| 5843 | 5901 | |
| 5844 | GAME( 2007, atworld, 0, sfbonus, amcoe1_reels3, atworld, ROT0, "Amcoe", "Around The World (Version 1.3E CGA)", 0) /* Year according to Amcoe web site - too new */ | |
| 5845 | GAME( 2007, atworldd1, atworld, sfbonus, amcoe1_reels3, atworldd, ROT0, "Amcoe", "Around The World (Version 1.3R CGA)", 0) /* Year according to Amcoe web site - too new */ | |
| 5902 | GAME( 2007, atworld, 0, sfbonus, amcoe1_reels3, atworld, ROT0, "Amcoe", "Around The World (Version 1.3E CGA)", 0) /* Year according to Amcoe web site */ | |
| 5903 | GAME( 2007, atworldd1, atworld, sfbonus, amcoe1_reels3, atworldd, ROT0, "Amcoe", "Around The World (Version 1.3R CGA)", 0) /* Year according to Amcoe web site */ | |
| 5846 | 5904 | |
| 5847 | 5905 | // no graphic / sound roms dumped for these sets, but functional program roms & descramble are in place |
| 5848 | 5906 | GAME( 2005, funriver, 0, sfbonus, amcoe1_reels3, funriver, ROT0, "Amcoe", "Fun River (set 1)", GAME_NOT_WORKING) |
| r8581 | r8582 | |
|---|---|---|
| 2 | 2 | CRYSTAL SYSTEM by Brezzasoft (2001) |
| 3 | 3 | using VRender0 System on a Chip |
| 4 | 4 | |
| 5 | The VRender0 (http://www.mesdigital.com | |
| 5 | The VRender0 (info at archive.org for http://www.mesdigital.com | |
| 6 | 6 | - CPU Core SE3208 (info at www.adc.co.kr) @ 43Mhz |
| 7 | 7 | - 2 DMA chans |
| 8 | 8 | - 4 Timers |
| r8581 | r8582 | |
| 563 | 563 | crystal_state *state = (crystal_state *)machine->driver_data; |
| 564 | 564 | int i; |
| 565 | 565 | |
| 566 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 567 | state->ds1302 = devtag_get_device(machine, "rtc"); | |
| 568 | state->vr0video = devtag_get_device(machine, "vr0"); | |
| 566 | state->maincpu = machine->device("maincpu"); | |
| 567 | state->ds1302 = machine->device("rtc"); | |
| 568 | state->vr0video = machine->device("vr0"); | |
| 569 | 569 | |
| 570 | cpu_set_irq_callback( | |
| 570 | cpu_set_irq_callback(m | |
| 571 | 571 | for (i = 0; i < 4; i++) |
| 572 | 572 | state->Timer[i] = timer_alloc(machine, Timercb, (void*)(FPTR)i); |
| 573 | 573 | |
| r8581 | r8582 | |
| 597 | 597 | memset(state->vidregs, 0, 0x10000); |
| 598 | 598 | state->FlipCount = 0; |
| 599 | 599 | state->IntHigh = 0; |
| 600 | cpu_set_irq_callback( | |
| 600 | cpu_set_irq_callback(m | |
| 601 | 601 | state->Bank = 0; |
| 602 | 602 | memory_set_bankptr(machine, "bank1", memory_region(machine, "user1") + 0); |
| 603 | 603 | state->FlashCmd = 0xff; |
| r8581 | r8582 | |
| 612 | 612 | timer_adjust_oneshot(state->Timer[i], attotime_never, 0); |
| 613 | 613 | } |
| 614 | 614 | |
| 615 | vr0_snd_set_areas( | |
| 615 | vr0_snd_set_areas(m | |
| 616 | 616 | #ifdef IDLE_LOOP_SPEEDUP |
| 617 | 617 | state->FlipCntRead = 0; |
| 618 | 618 | #endif |
| r8581 | r8582 | |
| 902 | 902 | ROM_REGION( 0x20000, "maincpu", 0 ) // bios |
| 903 | 903 | ROM_LOAD("mx27l1000.u14", 0x000000, 0x020000, CRC(BEFF39A9) SHA1(b6f6dda58d9c82273f9422c1bd623411e58982cb)) |
| 904 | 904 | |
| 905 | ROM_REGION( 0x4300, "pic", 0 ) // pic16c727 - we don't have a core for this | |
| 906 | ROM_LOAD("top_blade_v_pic16c727.bin", 0x000000, 0x4300, CRC(9cdea57b) SHA1(884156085f9e780cdf719aedc2e8a0fd5983613b) ) | |
| 907 | ||
| 908 | ||
| 905 | 909 | ROM_REGION32_LE( 0x1000000, "user1", 0 ) // Flash |
| 906 | 910 | ROM_LOAD("flash.u1", 0x0000000, 0x1000000, CRC(bd23f640) SHA1(1d22aa2c828642bb7c1dfea4e13f777f95acc701) ) |
| 907 | 911 | |
| r8581 | r8582 | |
| 913 | 917 | ROM_REGION( 0x20000, "maincpu", 0 ) // bios (not the standard one) |
| 914 | 918 | ROM_LOAD("bios.u14", 0x000000, 0x020000, CRC(ffc57e90) SHA1(6b6a17fd4798dea9c7b880f3063be8494e7db302) ) |
| 915 | 919 | |
| 920 | ROM_REGION( 0x4280, "pic", 0 ) // pic16f84a - we don't have a core for this | |
| 921 | ROM_LOAD("office_yeo_in_cheon_ha_pic16f84a.bin", 0x000000, 0x4280, CRC(7561cdf5) SHA1(eade592823a110019b4af81a7dc56d01f7d6589f) ) | |
| 922 | ||
| 923 | ||
| 916 | 924 | ROM_REGION32_LE( 0x2000000, "user1", 0 ) // Flash |
| 917 | 925 | ROM_LOAD("flash.u1", 0x0000000, 0x1000000, CRC(d3f3eec4) SHA1(ea728415bd4906964b7d37f4379a8a3bd42a1c2d) ) |
| 918 | 926 | ROM_LOAD("flash.u2", 0x1000000, 0x1000000, CRC(e4f85d0a) SHA1(2ddfa6b3a30e69754aa9d96434ff3d37784bfa57) ) |
| r8581 | r8582 | |
|---|---|---|
| 227 | 227 | { |
| 228 | 228 | madmotor_state *state = (madmotor_state *)machine->driver_data; |
| 229 | 229 | |
| 230 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 231 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 230 | state->maincpu = machine->device("maincpu"); | |
| 231 | state->audiocpu = machine->device("audiocpu"); | |
| 232 | 232 | |
| 233 | 233 | state_save_register_global(machine, state->flipscreen); |
| 234 | 234 | } |
| r8581 | r8582 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | cputag_set_input_line(machine, "maincpu", 4, state->atarigen.video_int_state ? ASSERT_LINE : CLEAR_LINE); |
| 44 | 44 | |
| 45 | if ( | |
| 45 | if (m | |
| 46 | 46 | cputag_set_input_line(machine, "extra", 4, state->atarigen.video_int_state ? ASSERT_LINE : CLEAR_LINE); |
| 47 | 47 | |
| 48 | 48 | cputag_set_input_line(machine, "maincpu", 6, state->atarigen.sound_int_state ? ASSERT_LINE : CLEAR_LINE); |
| r8581 | r8582 | |
| 108 | 108 | { |
| 109 | 109 | eprom_state *state = (eprom_state *)space->machine->driver_data; |
| 110 | 110 | |
| 111 | if (ACCESSING_BITS_0_7 && ( | |
| 111 | if (ACCESSING_BITS_0_7 && ( | |
| 112 | 112 | { |
| 113 | 113 | /* bit 0: reset extra CPU */ |
| 114 | 114 | if (data & 1) |
| r8581 | r8582 | |
|---|---|---|
| 535 | 535 | ROM_REGION( 0x10000, "audiocpu", 0 ) // Sub/Sound CPU? |
| 536 | 536 | ROM_LOAD( "r4", 0x00000, 0x08000, CRC(84fed017) SHA1(9a564c9379eb48569cfba48562889277991864d8) ) |
| 537 | 537 | |
| 538 | // not hooked up yet (Taito version has this instead of encryption! | |
| 538 | 539 | ROM_REGION( 0x0800, "cpu2", 0 ) /* 2k for the microcontroller */ |
| 539 | ROM_LOAD( " | |
| 540 | ROM_LOAD( "crshooter.3j | |
| 540 | 541 | |
| 541 | 542 | ROM_REGION( 0x02000, "gfx1", 0 ) // TX Layer |
| 542 | 543 | ROM_LOAD( "r3", 0x00000, 0x02000, CRC(67b50a47) SHA1(b1f4aefc9437edbeefba5371149cc08c0b55c741) ) // only 1 byte difference with 3.f11, bad dump? |
| r8581 | r8582 | |
|---|---|---|
| 1301 | 1301 | { |
| 1302 | 1302 | aerofgt_state *state = (aerofgt_state *)machine->driver_data; |
| 1303 | 1303 | |
| 1304 | state->audiocpu = | |
| 1304 | state->audiocpu = m | |
| 1305 | 1305 | state_save_register_global(machine, state->pending_command); |
| 1306 | 1306 | } |
| 1307 | 1307 |
| r8581 | r8582 | |
|---|---|---|
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | -- Hardware info found in the following press release: |
| 34 | http://www. | |
| 34 | http://www.w | |
| 35 | 35 | |
| 36 | 36 | QUANTUM3D'S HEAVY METAL SYSTEM - HM233G |
| 37 | 37 | NLX form factor system that is based on the Intel 440LX chipset |
| r8581 | r8582 | |
| 140 | 140 | |
| 141 | 141 | static MACHINE_START(quakeat) |
| 142 | 142 | { |
| 143 | cpu_set_irq_callback( | |
| 143 | cpu_set_irq_callback(m | |
| 144 | 144 | |
| 145 | quakeat_devices.pic8259_1 = devtag_get_device( machine, "pic8259_1" ); | |
| 146 | quakeat_devices.pic8259_2 = devtag_get_device( machine, "pic8259_2" ); | |
| 145 | quakeat_devices.pic8259_1 = machine->device( "pic8259_1" ); | |
| 146 | quakeat_devices.pic8259_2 = machine->device( "pic8259_2" ); | |
| 147 | 147 | } |
| 148 | 148 | /*************************************************************/ |
| 149 | 149 |
| r8581 | r8582 | |
|---|---|---|
| 83 | 83 | static MACHINE_START( ultrsprt ) |
| 84 | 84 | { |
| 85 | 85 | /* set conservative DRC options */ |
| 86 | ppcdrc_set_options( | |
| 86 | ppcdrc_set_options(m | |
| 87 | 87 | |
| 88 | 88 | /* configure fast RAM regions for DRC */ |
| 89 | ppcdrc_add_fastram(devtag_get_device(machine, "maincpu"), 0x80000000, 0x8007ffff, FALSE, vram); | |
| 90 | ppcdrc_add_fastram(devtag_get_device(machine, "maincpu"), 0xff000000, 0xff01ffff, FALSE, workram); | |
| 89 | ppcdrc_add_fastram(machine->device("maincpu"), 0x80000000, 0x8007ffff, FALSE, vram); | |
| 90 | ppcdrc_add_fastram(machine->device("maincpu"), 0xff000000, 0xff01ffff, FALSE, workram); | |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | |
| r8581 | r8582 | |
| 111 | 111 | |
| 112 | 112 | static READ16_HANDLER( K056800_68k_r ) |
| 113 | 113 | { |
| 114 | running_device *k056800 = | |
| 114 | running_device *k056800 = | |
| 115 | 115 | UINT16 r = 0; |
| 116 | 116 | |
| 117 | 117 | if (ACCESSING_BITS_8_15) |
| r8581 | r8582 | |
| 125 | 125 | |
| 126 | 126 | static WRITE16_HANDLER( K056800_68k_w ) |
| 127 | 127 | { |
| 128 | running_device *k056800 = | |
| 128 | running_device *k056800 = | |
| 129 | 129 | |
| 130 | 130 | if (ACCESSING_BITS_8_15) |
| 131 | 131 | k056800_sound_w(k056800, (offset*2)+0, (data >> 8) & 0xff, 0x00ff); |
| r8581 | r8582 | |
| 190 | 190 | static void sound_irq_callback(running_machine *machine, int irq) |
| 191 | 191 | { |
| 192 | 192 | if (irq == 0) |
| 193 | /*generic_pulse_irq_line( | |
| 193 | /*generic_pulse_irq_line(m | |
| 194 | 194 | else |
| 195 | 195 | cputag_set_input_line(machine, "audiocpu", INPUT_LINE_IRQ6, HOLD_LINE); |
| 196 | 196 | } |
| r8581 | r8582 | |
|---|---|---|
| 26 | 26 | Notes: |
| 27 | 27 | * Super Hi Impact Proto V4.0: You need to at least reset the high score |
| 28 | 28 | table from the UTILITIES menu. It's best to do a FULL FACTORY RESTORE |
| 29 | * Known to exist, but not dumped Terminator 2 LA4 (8/3/92) | |
| 30 | 29 | |
| 31 | 30 | |
| 32 | 31 | Super High Impact |
| r8581 | r8582 | |
| 1562 | 1561 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 1563 | 1562 | ROM_LOAD ( "trogu111.bin", 0x000000, 0x20000, CRC(9ded08c1) SHA1(bbf069f218e3f3d67e45fa2229a471451b3a8f96) ) |
| 1564 | 1563 | ROM_LOAD ( "trogu112.bin", 0x020000, 0x20000, CRC(42293843) SHA1(cae77eeddd784573beccb79e54573da0e4ccdd8a) ) |
| 1565 | ROM_LOAD ( "trog | |
| 1564 | ROM_LOAD ( "trogu | |
| 1566 | 1565 | |
| 1566 | ROM_LOAD ( "trogu106.bin", 0x080000, 0x20000, CRC(af2eb0d8) SHA1(3767e6f3853b092b40664c2b6c6a838f0243514b) ) | |
| 1567 | ROM_LOAD ( "trogu107.bin", 0x0a0000, 0x20000, CRC(88a7b3f6) SHA1(ba55f66929841a915d7b96aabf4b11e50ba6cfbd) ) | |
| 1568 | ||
| 1567 | 1569 | ROM_LOAD ( "trogu95.bin", 0x200000, 0x20000, CRC(f3ba2838) SHA1(2bee6c783c84a9f3f9309d802f42983857190ece) ) |
| 1568 | 1570 | ROM_LOAD ( "trogu96.bin", 0x220000, 0x20000, CRC(cfed2e77) SHA1(7fc0f52ac844c9efcbcc3004c40f9f4fc7e1c346) ) |
| 1569 | ROM_LOAD ( "trog | |
| 1571 | ROM_LOAD ( "trogu97.pa6 | |
| 1570 | 1572 | |
| 1571 | ROM_LOAD ( "trogu106.bin", 0x080000, 0x20000, CRC(af2eb0d8) SHA1(3767e6f3853b092b40664c2b6c6a838f0243514b) ) | |
| 1572 | ROM_LOAD ( "trogu107.bin", 0x0a0000, 0x20000, CRC(88a7b3f6) SHA1(ba55f66929841a915d7b96aabf4b11e50ba6cfbd) ) | |
| 1573 | ||
| 1574 | 1573 | ROM_LOAD ( "trogu90.bin", 0x280000, 0x20000, CRC(16e06753) SHA1(62ec2b18e6b965ea0792d655d7878b4225da3aca) ) |
| 1575 | 1574 | ROM_LOAD ( "trogu91.bin", 0x2a0000, 0x20000, CRC(880a02c7) SHA1(ab1b2d24be4571a183b230d267c6c8167d4a42a4) ) |
| 1576 | 1575 | ROM_END |
| 1577 | 1576 | |
| 1578 | 1577 | |
| 1579 | ROM_START( trogp ) | |
| 1578 | ROM_START( trogpa4 ) | |
| 1580 | 1579 | ROM_REGION( 0x90000, "cvsdcpu", 0 ) /* sound CPU */ |
| 1581 | 1580 | ROM_LOAD ( "trogu4.bin", 0x10000, 0x10000, CRC(759d0bf4) SHA1(c4c3fa51c43cf7fd241ac1f33d7d220aa9f9edb3) ) |
| 1582 | 1581 | ROM_RELOAD( 0x20000, 0x10000 ) |
| r8581 | r8582 | |
| 1586 | 1585 | ROM_RELOAD( 0x60000, 0x10000 ) |
| 1587 | 1586 | |
| 1588 | 1587 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ |
| 1589 | ROM_LOAD16_BYTE( "trog105.dat", 0xc0000, 0x20000, CRC(526a3f5b) SHA1(8ad8cb15ada527f989f774a4fb81a171697c6dad) ) | |
| 1590 | ROM_LOAD16_BYTE( "trog89.dat", 0xc0001, 0x20000, CRC(38d68685) SHA1(42b73a64641301bf2991929cf365b8f45fc1b5d8) ) | |
| 1588 | ROM_LOAD16_BYTE( "u105-pa4", 0xc0000, 0x20000, CRC(526a3f5b) SHA1(8ad8cb15ada527f989f774a4fb81a171697c6dad) ) | |
| 1589 | ROM_LOAD16_BYTE( "u89-pa4", 0xc0001, 0x20000, CRC(38d68685) SHA1(42b73a64641301bf2991929cf365b8f45fc1b5d8) ) | |
| 1591 | 1590 | |
| 1592 | 1591 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 1593 | 1592 | ROM_LOAD ( "trogu111.bin", 0x000000, 0x20000, CRC(9ded08c1) SHA1(bbf069f218e3f3d67e45fa2229a471451b3a8f96) ) |
| 1594 | 1593 | ROM_LOAD ( "trogu112.bin", 0x020000, 0x20000, CRC(42293843) SHA1(cae77eeddd784573beccb79e54573da0e4ccdd8a) ) |
| 1595 | ROM_LOAD ( "trog113. | |
| 1594 | ROM_LOAD ( "trogu113.pa4", | |
| 1596 | 1595 | |
| 1597 | 1596 | ROM_LOAD ( "trogu106.bin", 0x080000, 0x20000, CRC(af2eb0d8) SHA1(3767e6f3853b092b40664c2b6c6a838f0243514b) ) |
| 1598 | 1597 | ROM_LOAD ( "trogu107.bin", 0x0a0000, 0x20000, CRC(88a7b3f6) SHA1(ba55f66929841a915d7b96aabf4b11e50ba6cfbd) ) |
| 1599 | 1598 | |
| 1600 | 1599 | ROM_LOAD ( "trogu95.bin", 0x200000, 0x20000, CRC(f3ba2838) SHA1(2bee6c783c84a9f3f9309d802f42983857190ece) ) |
| 1601 | 1600 | ROM_LOAD ( "trogu96.bin", 0x220000, 0x20000, CRC(cfed2e77) SHA1(7fc0f52ac844c9efcbcc3004c40f9f4fc7e1c346) ) |
| 1602 | ROM_LOAD ( "trog97. | |
| 1601 | ROM_LOAD ( "trogu97.pa4", | |
| 1603 | 1602 | |
| 1604 | 1603 | ROM_LOAD ( "trogu90.bin", 0x280000, 0x20000, CRC(16e06753) SHA1(62ec2b18e6b965ea0792d655d7878b4225da3aca) ) |
| 1605 | 1604 | ROM_LOAD ( "trogu91.bin", 0x2a0000, 0x20000, CRC(880a02c7) SHA1(ab1b2d24be4571a183b230d267c6c8167d4a42a4) ) |
| r8581 | r8582 | |
| 1991 | 1990 | ROM_LOAD ( "shiu20.bin", 0x50000, 0x20000, CRC(1b4a71c1) SHA1(74b7b4ae76ebe65f1f46b2117970bfefefbb5344) ) |
| 1992 | 1991 | |
| 1993 | 1992 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ |
| 1994 | ROM_LOAD16_BYTE( "pro6.105", 0xc0000, 0x20000, CRC(33e1978d) SHA1(a88af5551d6b4777e0c5f5e3844b2f1d61bbb35d) ) | |
| 1995 | ROM_LOAD16_BYTE( "pro6.89", 0xc0001, 0x20000, CRC(6c070978) SHA1(ca6657c48810d78496c51eb750f45a3e08132ce3) ) | |
| 1993 | ROM_LOAD16_BYTE( "u105-pa6", 0xc0000, 0x20000, CRC(33e1978d) SHA1(a88af5551d6b4777e0c5f5e3844b2f1d61bbb35d) ) | |
| 1994 | ROM_LOAD16_BYTE( "u89-pa6", 0xc0001, 0x20000, CRC(6c070978) SHA1(ca6657c48810d78496c51eb750f45a3e08132ce3) ) | |
| 1996 | 1995 | |
| 1997 | 1996 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 1998 | 1997 | ROM_LOAD ( "shiu111.bin", 0x000000, 0x40000, CRC(80ae2a86) SHA1(1ff76e3064c7636f6877e426f4a88c094d1a6325) ) |
| r8581 | r8582 | |
| 2100 | 2099 | ROM_END |
| 2101 | 2100 | |
| 2102 | 2101 | |
| 2103 | ROM_START( mk | |
| 2102 | ROM_START( mkla4 | |
| 2104 | 2103 | ROM_REGION( 0x50000, "adpcm", 0 ) /* sound CPU */ |
| 2105 | 2104 | ROM_LOAD ( "mks-u3.rom", 0x10000, 0x40000, CRC(c615844c) SHA1(5732f9053a5f73b0cc3b0166d7dc4430829d5bc7) ) |
| 2106 | 2105 | |
| r8581 | r8582 | |
| 2111 | 2110 | ROM_RELOAD( 0xc0000, 0x40000 ) |
| 2112 | 2111 | |
| 2113 | 2112 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ |
| 2114 | ROM_LOAD16_BYTE( "mkprot8.105", 0x00000, 0x80000, CRC(2f3c095d) SHA1(f6e9ac0fc0f997f4b323ba48590b042eae079a16) ) | |
| 2115 | ROM_LOAD16_BYTE( "mkprot8.89", 0x00001, 0x80000, CRC(edcf217f) SHA1(29e17bd20844a3e666e794c2fc068a011ccff2e8) ) | |
| 2113 | ROM_LOAD16_BYTE( "mkg-u105.la4", 0x00000, 0x80000, CRC(29af348f) SHA1(9f8a57606647c5ea056d61aa4ab1232538539fd8) ) | |
| 2114 | ROM_LOAD16_BYTE( "mkg-u89.la4", 0x00001, 0x80000, CRC(1ad76662) SHA1(bee4ab5371f58df799365e73ec0cc02e903f240c) ) | |
| 2116 | 2115 | |
| 2117 | 2116 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 2118 | 2117 | ROM_LOAD ( "mkg-u111.rom", 0x000000, 0x80000, CRC(d17096c4) SHA1(01ef390a372c9d94adf138f9543ebb88b89f4c38) ) |
| r8581 | r8582 | |
| 2132 | 2131 | ROM_END |
| 2133 | 2132 | |
| 2134 | 2133 | |
| 2135 | ROM_START( mk | |
| 2134 | ROM_START( mkla3 | |
| 2136 | 2135 | ROM_REGION( 0x50000, "adpcm", 0 ) /* sound CPU */ |
| 2137 | 2136 | ROM_LOAD ( "mks-u3.rom", 0x10000, 0x40000, CRC(c615844c) SHA1(5732f9053a5f73b0cc3b0166d7dc4430829d5bc7) ) |
| 2138 | 2137 | |
| r8581 | r8582 | |
| 2143 | 2142 | ROM_RELOAD( 0xc0000, 0x40000 ) |
| 2144 | 2143 | |
| 2145 | 2144 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ |
| 2146 | ROM_LOAD16_BYTE( "mkprot9.105", 0x00000, 0x80000, CRC(20772bbd) SHA1(d5b400700b91c7a70bd2441c5254300cf1f743d7) ) | |
| 2147 | ROM_LOAD16_BYTE( "mkprot9.89", 0x00001, 0x80000, CRC(3238d45b) SHA1(8a4e827994d0d20feda3785a5f8f0f77b737052b) ) | |
| 2145 | ROM_LOAD16_BYTE( "mkg-u105.la3", 0x00000, 0x80000, CRC(2ce843c5) SHA1(d48efcecd6528414249f3884edc32e0dafa9677f) ) | |
| 2146 | ROM_LOAD16_BYTE( "mkg-u89.la3", 0x00001, 0x80000, CRC(49a46e10) SHA1(c63c00531b29c01ee864acc141b1713507d25c69) ) | |
| 2148 | 2147 | |
| 2149 | 2148 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 2150 | 2149 | ROM_LOAD ( "mkg-u111.rom", 0x000000, 0x80000, CRC(d17096c4) SHA1(01ef390a372c9d94adf138f9543ebb88b89f4c38) ) |
| r8581 | r8582 | |
| 2164 | 2163 | ROM_END |
| 2165 | 2164 | |
| 2166 | 2165 | |
| 2167 | ROM_START( mkla | |
| 2166 | ROM_START( mkla2 ) | |
| 2168 | 2167 | ROM_REGION( 0x50000, "adpcm", 0 ) /* sound CPU */ |
| 2169 | 2168 | ROM_LOAD ( "mks-u3.rom", 0x10000, 0x40000, CRC(c615844c) SHA1(5732f9053a5f73b0cc3b0166d7dc4430829d5bc7) ) |
| 2170 | 2169 | |
| r8581 | r8582 | |
| 2175 | 2174 | ROM_RELOAD( 0xc0000, 0x40000 ) |
| 2176 | 2175 | |
| 2177 | 2176 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ |
| 2178 | ROM_LOAD16_BYTE( "mkg-u105.la1", 0x00000, 0x80000, CRC(e1f7b4c9) SHA1(dc62e67e03b54460494bd94a50347327c19b72ec) ) | |
| 2179 | ROM_LOAD16_BYTE( "mkg-u89.la1", 0x00001, 0x80000, CRC(9d38ac75) SHA1(86ff581cd3546f6b1be75e1d0744a8d767b22f5a) ) | |
| 2177 | ROM_LOAD16_BYTE( "mkg-u105.la2", 0x00000, 0x80000, CRC(8531d44e) SHA1(652c7946cc725e11815f852af8891511b87de186) ) | |
| 2178 | ROM_LOAD16_BYTE( "mkg-u89.la2", 0x00001, 0x80000, CRC(b88dc26e) SHA1(bf34a03bdb70b67fd9c0b6d636b038a63827151e) ) | |
| 2180 | 2179 | |
| 2181 | 2180 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 2182 | 2181 | ROM_LOAD ( "mkg-u111.rom", 0x000000, 0x80000, CRC(d17096c4) SHA1(01ef390a372c9d94adf138f9543ebb88b89f4c38) ) |
| r8581 | r8582 | |
| 2196 | 2195 | ROM_END |
| 2197 | 2196 | |
| 2198 | 2197 | |
| 2199 | ROM_START( mkla | |
| 2198 | ROM_START( mkla1 ) | |
| 2200 | 2199 | ROM_REGION( 0x50000, "adpcm", 0 ) /* sound CPU */ |
| 2201 | 2200 | ROM_LOAD ( "mks-u3.rom", 0x10000, 0x40000, CRC(c615844c) SHA1(5732f9053a5f73b0cc3b0166d7dc4430829d5bc7) ) |
| 2202 | 2201 | |
| r8581 | r8582 | |
| 2207 | 2206 | ROM_RELOAD( 0xc0000, 0x40000 ) |
| 2208 | 2207 | |
| 2209 | 2208 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ |
| 2210 | ROM_LOAD16_BYTE( "mkg-u105.la2", 0x00000, 0x80000, CRC(8531d44e) SHA1(652c7946cc725e11815f852af8891511b87de186) ) | |
| 2211 | ROM_LOAD16_BYTE( "mkg-u89.la2", 0x00001, 0x80000, CRC(b88dc26e) SHA1(bf34a03bdb70b67fd9c0b6d636b038a63827151e) ) | |
| 2209 | ROM_LOAD16_BYTE( "mkg-u105.la1", 0x00000, 0x80000, CRC(e1f7b4c9) SHA1(dc62e67e03b54460494bd94a50347327c19b72ec) ) | |
| 2210 | ROM_LOAD16_BYTE( "mkg-u89.la1", 0x00001, 0x80000, CRC(9d38ac75) SHA1(86ff581cd3546f6b1be75e1d0744a8d767b22f5a) ) | |
| 2212 | 2211 | |
| 2213 | 2212 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 2214 | 2213 | ROM_LOAD ( "mkg-u111.rom", 0x000000, 0x80000, CRC(d17096c4) SHA1(01ef390a372c9d94adf138f9543ebb88b89f4c38) ) |
| r8581 | r8582 | |
| 2228 | 2227 | ROM_END |
| 2229 | 2228 | |
| 2230 | 2229 | |
| 2231 | ROM_START( mk | |
| 2230 | ROM_START( mkprot9 ) | |
| 2232 | 2231 | ROM_REGION( 0x50000, "adpcm", 0 ) /* sound CPU */ |
| 2233 | 2232 | ROM_LOAD ( "mks-u3.rom", 0x10000, 0x40000, CRC(c615844c) SHA1(5732f9053a5f73b0cc3b0166d7dc4430829d5bc7) ) |
| 2234 | 2233 | |
| r8581 | r8582 | |
| 2239 | 2238 | ROM_RELOAD( 0xc0000, 0x40000 ) |
| 2240 | 2239 | |
| 2241 | 2240 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ |
| 2242 | ROM_LOAD16_BYTE( "mkg-u105.la3", 0x00000, 0x80000, CRC(2ce843c5) SHA1(d48efcecd6528414249f3884edc32e0dafa9677f) ) | |
| 2243 | ROM_LOAD16_BYTE( "mkg-u89.la3", 0x00001, 0x80000, CRC(49a46e10) SHA1(c63c00531b29c01ee864acc141b1713507d25c69) ) | |
| 2241 | ROM_LOAD16_BYTE( "mkprot9.105", 0x00000, 0x80000, CRC(20772bbd) SHA1(d5b400700b91c7a70bd2441c5254300cf1f743d7) ) | |
| 2242 | ROM_LOAD16_BYTE( "mkprot9.89", 0x00001, 0x80000, CRC(3238d45b) SHA1(8a4e827994d0d20feda3785a5f8f0f77b737052b) ) | |
| 2244 | 2243 | |
| 2245 | 2244 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 2246 | 2245 | ROM_LOAD ( "mkg-u111.rom", 0x000000, 0x80000, CRC(d17096c4) SHA1(01ef390a372c9d94adf138f9543ebb88b89f4c38) ) |
| r8581 | r8582 | |
| 2260 | 2259 | ROM_END |
| 2261 | 2260 | |
| 2262 | 2261 | |
| 2263 | ROM_START( mk | |
| 2262 | ROM_START( mkprot8 ) | |
| 2264 | 2263 | ROM_REGION( 0x50000, "adpcm", 0 ) /* sound CPU */ |
| 2265 | 2264 | ROM_LOAD ( "mks-u3.rom", 0x10000, 0x40000, CRC(c615844c) SHA1(5732f9053a5f73b0cc3b0166d7dc4430829d5bc7) ) |
| 2266 | 2265 | |
| r8581 | r8582 | |
| 2271 | 2270 | ROM_RELOAD( 0xc0000, 0x40000 ) |
| 2272 | 2271 | |
| 2273 | 2272 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ |
| 2274 | ROM_LOAD16_BYTE( "mkg-u105.la4", 0x00000, 0x80000, CRC(29af348f) SHA1(9f8a57606647c5ea056d61aa4ab1232538539fd8) ) | |
| 2275 | ROM_LOAD16_BYTE( "mkg-u89.la4", 0x00001, 0x80000, CRC(1ad76662) SHA1(bee4ab5371f58df799365e73ec0cc02e903f240c) ) | |
| 2273 | ROM_LOAD16_BYTE( "mkprot8.105", 0x00000, 0x80000, CRC(2f3c095d) SHA1(f6e9ac0fc0f997f4b323ba48590b042eae079a16) ) | |
| 2274 | ROM_LOAD16_BYTE( "mkprot8.89", 0x00001, 0x80000, CRC(edcf217f) SHA1(29e17bd20844a3e666e794c2fc068a011ccff2e8) ) | |
| 2276 | 2275 | |
| 2277 | 2276 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 2278 | 2277 | ROM_LOAD ( "mkg-u111.rom", 0x000000, 0x80000, CRC(d17096c4) SHA1(01ef390a372c9d94adf138f9543ebb88b89f4c38) ) |
| r8581 | r8582 | |
| 2373 | 2372 | ROM_RELOAD( 0xc0000, 0x40000 ) |
| 2374 | 2373 | |
| 2375 | 2374 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ |
| 2375 | ROM_LOAD16_BYTE( "t2-la4.105", 0x00000, 0x80000, CRC(d4d8d884) SHA1(3209e131b128f12af30b3c6056fd63df497f93eb) ) | |
| 2376 | ROM_LOAD16_BYTE( "t2-la4.89", 0x00001, 0x80000, CRC(25359415) SHA1(ca8b7e1b5a363b78499f92c979a11ace6f1dceab) ) | |
| 2377 | ||
| 2378 | ROM_REGION( 0x800000, "gfx1", 0 ) | |
| 2379 | ROM_LOAD ( "t2.111", 0x000000, 0x80000, CRC(916d0197) SHA1(3b53d3770955b10cc6002e3d3bf0f71429667af0) ) | |
| 2380 | ROM_LOAD ( "t2.112", 0x080000, 0x80000, CRC(39ae1c87) SHA1(a9d332dffc77c1e0dc50549825f5b403cf19c41d) ) | |
| 2381 | ROM_LOAD ( "t2.113", 0x100000, 0x80000, CRC(cb5084e5) SHA1(58cab00d8ebc72792f6c29899013ae6a0d2278b9) ) | |
| 2382 | ROM_LOAD ( "t2.114", 0x180000, 0x80000, CRC(53c516ec) SHA1(2a33639bc5bb4e7f7b3e341ddb59173260461d20) ) | |
| 2383 | ||
| 2384 | ROM_LOAD ( "t2.95", 0x200000, 0x80000, CRC(dd39cf73) SHA1(53bb54e66e4dfbe58385915004b0ad57583a7543) ) | |
| 2385 | ROM_LOAD ( "t2.96", 0x280000, 0x80000, CRC(31f4fd36) SHA1(766fca7d5e5043fc9e68bd3dc15e6a7830279d88) ) | |
| 2386 | ROM_LOAD ( "t2.97", 0x300000, 0x80000, CRC(7f72e775) SHA1(7e2369c6b4ed5d653700b041df58355a0960193a) ) | |
| 2387 | ROM_LOAD ( "t2.98", 0x380000, 0x80000, CRC(1a20ce29) SHA1(9089b7f77da5d67ad46ed249d72de8b8e0e5d807) ) | |
| 2388 | ||
| 2389 | ROM_LOAD ( "t2.106", 0x400000, 0x80000, CRC(f08a9536) SHA1(fbac314bd52f23c7a704acd3c707e75cdf204c07) ) | |
| 2390 | ROM_LOAD ( "t2.107", 0x480000, 0x80000, CRC(268d4035) SHA1(89a310830be9fbc91794fcccc57053d0933c42a3) ) | |
| 2391 | ROM_LOAD ( "t2.108", 0x500000, 0x80000, CRC(379fdaed) SHA1(408df6702c8ea8d3dce0b231955c6a60f3f5f22b) ) | |
| 2392 | ROM_LOAD ( "t2.109", 0x580000, 0x80000, CRC(306a9366) SHA1(b94c23c033221f7f7fddd2911b8cec9549929768) ) | |
| 2393 | ROM_END | |
| 2394 | ||
| 2395 | ||
| 2396 | ROM_START( term2la3 ) | |
| 2397 | ROM_REGION( 0x50000, "adpcm", 0 ) /* sound CPU */ | |
| 2398 | ROM_LOAD ( "t2_snd.3", 0x10000, 0x20000, CRC(73c3f5c4) SHA1(978dd974590e77294dbe9a647aebd3d24af6397f) ) | |
| 2399 | ROM_RELOAD ( 0x30000, 0x20000 ) | |
| 2400 | ||
| 2401 | ROM_REGION( 0x200000, "oki", 0 ) /* ADPCM */ | |
| 2402 | ROM_LOAD ( "t2_snd.12", 0x00000, 0x40000, CRC(e192a40d) SHA1(1f7a0e282c0c8eb66cbe514128bd104433e53b7a) ) | |
| 2403 | ROM_RELOAD( 0x40000, 0x40000 ) | |
| 2404 | ROM_LOAD ( "t2_snd.13", 0x80000, 0x40000, CRC(956fa80b) SHA1(02ab504627f4b25a394fa4192bb134138cbf6a4f) ) | |
| 2405 | ROM_RELOAD( 0xc0000, 0x40000 ) | |
| 2406 | ||
| 2407 | ROM_REGION16_LE( 0x100000, "user1", 0 ) /* 34010 code */ | |
| 2376 | 2408 | ROM_LOAD16_BYTE( "t2-la3.105", 0x00000, 0x80000, CRC(34142b28) SHA1(985fd169b3d62c4197fe4c6f11055a6c17872899) ) |
| 2377 | 2409 | ROM_LOAD16_BYTE( "t2-la3.89", 0x00001, 0x80000, CRC(5ffea427) SHA1(c6f65bc57b33ae1a123f610c635e0d65663e54da) ) |
| 2378 | 2410 | |
| r8581 | r8582 | |
| 2540 | 2572 | GAME( 1990, trog, 0, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (rev LA5 03/29/91)", GAME_SUPPORTS_SAVE ) |
| 2541 | 2573 | GAME( 1990, trog4, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (rev LA4 03/11/91)", GAME_SUPPORTS_SAVE ) |
| 2542 | 2574 | GAME( 1990, trog3, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (rev LA3 02/14/91)", GAME_SUPPORTS_SAVE ) |
| 2543 | GAME( 1990, trogpa6, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (rev PA6-PAC 09/09/90)", GAME_SUPPORTS_SAVE ) | |
| 2544 | GAME( 1990, trogp, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (prototype, rev 4.00 07/27/90)", GAME_SUPPORTS_SAVE ) | |
| 2545 | GAME( 1991, strkforc, 0, yunit_cvsd_4bit_fast, strkforc, strkforc, ROT0, "Midway", "Strike Force (rev 1 02/25/91)", GAME_SUPPORTS_SAVE ) | |
| 2575 | GAME( 1990, trogpa6, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (prototype, rev PA6-PAC 09/09/90)", GAME_SUPPORTS_SAVE ) | |
| 2576 | GAME( 1990, trogpa4, trog, yunit_cvsd_4bit_slow, trog, trog, ROT0, "Midway", "Trog (prototype, rev 4.00 07/27/90)", GAME_SUPPORTS_SAVE ) | |
| 2546 | 2577 | |
| 2547 | 2578 | GAME( 1990, smashtv, 0, yunit_cvsd_6bit_slow, smashtv, smashtv, ROT0, "Williams", "Smash T.V. (rev 8.00)", GAME_SUPPORTS_SAVE ) |
| 2548 | 2579 | GAME( 1990, smashtv6, smashtv, yunit_cvsd_6bit_slow, smashtv, smashtv, ROT0, "Williams", "Smash T.V. (rev 6.00)", GAME_SUPPORTS_SAVE ) |
| r8581 | r8582 | |
| 2562 | 2593 | GAME( 1991, shimpactp5, shimpact, yunit_cvsd_6bit_slow, trog, shimpact, ROT0, "Midway", "Super High Impact (prototype, rev 5.0 09/15/91)", GAME_SUPPORTS_SAVE ) |
| 2563 | 2594 | GAME( 1991, shimpactp4, shimpact, yunit_cvsd_6bit_slow, trog, shimpact, ROT0, "Midway", "Super High Impact (prototype, rev 4.0 09/10/91)", GAME_SUPPORTS_SAVE ) /* See notes about factory restore above */ |
| 2564 | 2595 | |
| 2565 | GAME( 1991, term2, 0, yunit_adpcm_6bit_faster, term2, term2, ORIENTATION_FLIP_X, "Midway", "Terminator 2 - Judgment Day (rev LA3 03/27/92)", GAME_SUPPORTS_SAVE ) | |
| 2596 | GAME( 1991, strkforc, 0, yunit_cvsd_4bit_fast, strkforc, strkforc, ROT0, "Midway", "Strike Force (rev 1 02/25/91)", GAME_SUPPORTS_SAVE ) | |
| 2597 | ||
| 2598 | GAME( 1991, term2, 0, yunit_adpcm_6bit_faster, term2, term2, ORIENTATION_FLIP_X, "Midway", "Terminator 2 - Judgment Day (rev LA4 08/03/92)", GAME_SUPPORTS_SAVE ) | |
| 2599 | GAME( 1991, term2la3, term2, yunit_adpcm_6bit_faster, term2, term2la3, ORIENTATION_FLIP_X, "Midway", "Terminator 2 - Judgment Day (rev LA3 03/27/92)", GAME_SUPPORTS_SAVE ) | |
| 2566 | 2600 | GAME( 1991, term2la2, term2, yunit_adpcm_6bit_faster, term2, term2la2, ORIENTATION_FLIP_X, "Midway", "Terminator 2 - Judgment Day (rev LA2 12/09/91)", GAME_SUPPORTS_SAVE ) |
| 2567 | 2601 | GAME( 1991, term2la1, term2, yunit_adpcm_6bit_faster, term2, term2la1, ORIENTATION_FLIP_X, "Midway", "Terminator 2 - Judgment Day (rev LA1 11/01/91)", GAME_SUPPORTS_SAVE ) |
| 2602 | ||
| 2603 | GAME( 1992, mkla4, mk, yunit_adpcm_6bit_fast, mkla4, mkyunit, ROT0, "Midway", "Mortal Kombat (rev 4.0 09/28/92)", GAME_SUPPORTS_SAVE ) | |
| 2604 | GAME( 1992, mkla3, mk, yunit_adpcm_6bit_fast, mkla4, mkyunit, ROT0, "Midway", "Mortal Kombat (rev 3.0 08/31/92)", GAME_SUPPORTS_SAVE ) | |
| 2605 | GAME( 1992, mkla2, mk, yunit_adpcm_6bit_fast, mkla2, mkyunit, ROT0, "Midway", "Mortal Kombat (rev 2.0 08/18/92)", GAME_SUPPORTS_SAVE ) | |
| 2606 | GAME( 1992, mkla1, mk, yunit_adpcm_6bit_fast, mkla2, mkyunit, ROT0, "Midway", "Mortal Kombat (rev 1.0 08/09/92)", GAME_SUPPORTS_SAVE ) | |
| 2607 | GAME( 1992, mkprot9, mk, yunit_adpcm_6bit_faster, mkla2, mkyunit, ROT0, "Midway", "Mortal Kombat (prototype, rev 9.0 07/28/92)", GAME_SUPPORTS_SAVE ) | |
| 2568 | 2608 | GAME( 1992, mkprot8, mk, yunit_adpcm_6bit_faster, mkla2, mkyunit, ROT0, "Midway", "Mortal Kombat (prototype, rev 8.0 07/21/92)", GAME_SUPPORTS_SAVE ) |
| 2569 | GAME( 1992, mkprot9, mk, yunit_adpcm_6bit_faster, mkla2, mkyunit, ROT0, "Midway", "Mortal Kombat (prototype, rev 9.0 07/28/92)", GAME_SUPPORTS_SAVE ) | |
| 2570 | GAME( 1992, mkla1, mk, yunit_adpcm_6bit_fast, mkla2, mkyunit, ROT0, "Midway", "Mortal Kombat (rev 1.0 08/09/92)", GAME_SUPPORTS_SAVE ) | |
| 2571 | GAME( 1992, mkla2, mk, yunit_adpcm_6bit_fast, mkla2, mkyunit, ROT0, "Midway", "Mortal Kombat (rev 2.0 08/18/92)", GAME_SUPPORTS_SAVE ) | |
| 2572 | GAME( 1992, mkla3, mk, yunit_adpcm_6bit_fast, mkla4, mkyunit, ROT0, "Midway", "Mortal Kombat (rev 3.0 08/31/92)", GAME_SUPPORTS_SAVE ) | |
| 2573 | GAME( 1992, mkla4, mk, yunit_adpcm_6bit_fast, mkla4, mkyunit, ROT0, "Midway", "Mortal Kombat (rev 4.0 09/28/92)", GAME_SUPPORTS_SAVE ) | |
| 2574 | 2609 | GAME( 1992, mkyturbo, mk, yunit_adpcm_6bit_fast, mkla4, mkyturbo, ROT0, "hack", "Mortal Kombat (Turbo 3.1 09/09/93, hack)", GAME_SUPPORTS_SAVE ) |
| 2575 | 2610 | GAME( 1992, mkyawdim, mk, mkyawdim, mkla4, mkyawdim, ROT0, "bootleg (Yawdim)", "Mortal Kombat (Yawdim bootleg)", GAME_SUPPORTS_SAVE ) |
| 2611 | ||
| 2576 | 2612 | GAME( 1992, totcarn, 0, yunit_adpcm_6bit_fast, totcarn, totcarn, ROT0, "Midway", "Total Carnage (rev LA1 03/10/92)", GAME_SUPPORTS_SAVE ) |
| 2577 | 2613 | GAME( 1992, totcarnp, totcarn, yunit_adpcm_6bit_fast, totcarn, totcarn, ROT0, "Midway", "Total Carnage (prototype, rev 1.0 01/25/92)", GAME_SUPPORTS_SAVE ) |
| r8581 | r8582 | |
|---|---|---|
| 3 | 3 | Maygay M1 A/B driver, (under heavy construction !!!) |
| 4 | 4 | |
| 5 | 5 | A.G.E Code Copyright J. Wallace and the AGEMAME Development Team. |
| 6 | Visit http:// | |
| 6 | Visit http://agemame.mameworld.info | |
| 7 | 7 | |
| 8 | 8 | M.A.M.E Core Copyright Nicola Salmoria and the MAME Team, |
| 9 | 9 | used under license from http://mamedev.org |
| r8581 | r8582 | |
| 455 | 455 | static MACHINE_RESET( m1 ) |
| 456 | 456 | { |
| 457 | 457 | ROC10937_reset(0); // reset display1 |
| 458 | maygaym1_devices.duart68681 = | |
| 458 | maygaym1_devices.duart68681 = m | |
| 459 | 459 | m1_stepper_reset(); |
| 460 | 460 | } |
| 461 | 461 |
| r8581 | r8582 | |
|---|---|---|
| 205 | 205 | int pokey_reg = (offset % 8) | control; |
| 206 | 206 | |
| 207 | 207 | if (pokey_num == 0) |
| 208 | return pokey_r( | |
| 208 | return pokey_r( | |
| 209 | 209 | else |
| 210 | return pokey_r( | |
| 210 | return pokey_r( | |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | |
| r8581 | r8582 | |
| 218 | 218 | int pokey_reg = (offset % 8) | control; |
| 219 | 219 | |
| 220 | 220 | if (pokey_num == 0) |
| 221 | pokey_w( | |
| 221 | pokey_w( | |
| 222 | 222 | else |
| 223 | pokey_w( | |
| 223 | pokey_w( | |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 |
| r8581 | r8582 | |
|---|---|---|
| 578 | 578 | */ |
| 579 | 579 | } |
| 580 | 580 | |
| 581 | static WRITE32_HANDLER(security_w) | |
| 582 | { | |
| 583 | i2cmem_write( space->machine, 0, I2CMEM_SCL, ( data >> 4 ) & 1 ); | |
| 584 | i2cmem_write( space->machine, 0, I2CMEM_SDA, ( data >> 3 ) & 1 ); | |
| 585 | } | |
| 586 | ||
| 587 | static READ32_HANDLER(security_r) | |
| 588 | { | |
| 589 | /* 0x4000 ?? */ | |
| 590 | return i2cmem_read( space->machine, 0, I2CMEM_SDA ) << 12; | |
| 591 | } | |
| 592 | ||
| 593 | 581 | static WRITE32_HANDLER(shared_psx_w) |
| 594 | 582 | { |
| 595 | 583 | if (mem_mask == 0xff) |
| r8581 | r8582 | |
| 636 | 624 | |
| 637 | 625 | |
| 638 | 626 | AM_RANGE(0x1f260000, 0x1f260003) AM_WRITE(serial_w) |
| 639 | AM_RANGE(0x1f270000, 0x1f270003) AM_WRITE(security_w) | |
| 640 | AM_RANGE(0x1f280000, 0x1f280003) AM_READ(security_r) | |
| 627 | AM_RANGE(0x1f270000, 0x1f270003) AM_WRITE_PORT("OUTSEC") | |
| 628 | AM_RANGE(0x1f280000, 0x1f280003) AM_READ_PORT("INSEC") | |
| 641 | 629 | AM_RANGE(0x1f290000, 0x1f29007f) AM_DEVREADWRITE8("rtc", rtc65271_rtc_r, rtc65271_rtc_w, 0x00ff00ff) |
| 642 | 630 | AM_RANGE(0x1f2a0000, 0x1f2a007f) AM_DEVREADWRITE8("rtc", rtc65271_xram_r, rtc65271_xram_w, 0x00ff00ff) |
| 643 | 631 | AM_RANGE(0x1f2b0000, 0x1f2b00ff) AM_WRITE(twinkle_output_w) |
| r8581 | r8582 | |
| 875 | 863 | psx_dma_install_read_handler(5, scsi_dma_read); |
| 876 | 864 | psx_dma_install_write_handler(5, scsi_dma_write); |
| 877 | 865 | |
| 878 | i2cmem_init( machine, 0, I2CMEM_SLAVE_ADDRESS, 0, memory_region_length( machine, "user2" ), memory_region( machine, "user2" ) ); | |
| 879 | i2cmem_write( machine, 0, I2CMEM_E0, 0 ); | |
| 880 | i2cmem_write( machine, 0, I2CMEM_E1, 0 ); | |
| 881 | i2cmem_write( machine, 0, I2CMEM_E2, 0 ); | |
| 882 | i2cmem_write( machine, 0, I2CMEM_WC, 0 ); | |
| 866 | running_device *i2cmem = machine->device("security"); | |
| 867 | i2cmem_e0_write( i2cmem, 0 ); | |
| 868 | i2cmem_e1_write( i2cmem, 0 ); | |
| 869 | i2cmem_e2_write( i2cmem, 0 ); | |
| 870 | i2cmem_wc_write( i2cmem, 0 ); | |
| 883 | 871 | } |
| 884 | 872 | |
| 885 | 873 | static MACHINE_RESET( twinkle ) |
| r8581 | r8582 | |
| 887 | 875 | psx_machine_init(machine); |
| 888 | 876 | |
| 889 | 877 | /* also hook up CDDA audio to the CD-ROM drive */ |
| 890 | cdda_set_cdrom( | |
| 878 | cdda_set_cdrom(m | |
| 891 | 879 | } |
| 892 | 880 | |
| 893 | 881 | static void spu_irq(running_device *device, UINT32 data) |
| r8581 | r8582 | |
| 903 | 891 | psx_dma_install_write_handler |
| 904 | 892 | }; |
| 905 | 893 | |
| 894 | static const i2cmem_interface i2cmem_interface = | |
| 895 | { | |
| 896 | I2CMEM_SLAVE_ADDRESS, 0, 0x100 | |
| 897 | }; | |
| 898 | ||
| 906 | 899 | static MACHINE_DRIVER_START( twinkle ) |
| 907 | 900 | /* basic machine hardware */ |
| 908 | 901 | MDRV_CPU_ADD("maincpu", PSXCPU, XTAL_67_7376MHz ) |
| r8581 | r8582 | |
| 915 | 908 | MDRV_WATCHDOG_TIME_INIT(MSEC(1200)) /* check TD pin on LTC1232 */ |
| 916 | 909 | |
| 917 | 910 | MDRV_MACHINE_RESET( twinkle ) |
| 918 | MDRV_ | |
| 911 | MDRV_I2C | |
| 919 | 912 | |
| 920 | 913 | MDRV_IDE_CONTROLLER_ADD("ide", ide_interrupt) |
| 921 | 914 | MDRV_RTC65271_ADD("rtc", NULL) |
| r8581 | r8582 | |
| 997 | 990 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1) |
| 998 | 991 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN) |
| 999 | 992 | |
| 993 | PORT_START("OUTSEC") | |
| 994 | PORT_BIT( 0x00000010, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("security", i2cmem_scl_write) | |
| 995 | PORT_BIT( 0x00000008, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("security", i2cmem_sda_write) | |
| 996 | ||
| 997 | PORT_START("INSEC") | |
| 998 | PORT_BIT( 0x00001000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_READ_LINE_DEVICE("security", i2cmem_sda_read) | |
| 1000 | 999 | INPUT_PORTS_END |
| 1001 | 1000 | |
| 1002 | 1001 | #define TWINKLE_BIOS \ |
| r8581 | r8582 | |
| 1015 | 1014 | ROM_START( bmiidx ) |
| 1016 | 1015 | TWINKLE_BIOS |
| 1017 | 1016 | |
| 1018 | ROM_REGION( 0x100, "user2", ROMREGION_ERASE00 ) /* security */ | |
| 1019 | ||
| 1020 | 1017 | DISK_REGION( "cdrom0" ) // program |
| 1021 | 1018 | DISK_IMAGE_READONLY("863jaa01", 0, SHA1(aee12de1dc5dd44e5bf7b62133ed695b80999390) ) |
| 1022 | 1019 | |
| r8581 | r8582 | |
| 1028 | 1025 | ROM_END |
| 1029 | 1026 | |
| 1030 | 1027 | ROM_START( bmiidx3 ) |
| 1031 | ||
| 1028 | TWINKLE_BIOS | |
| 1032 | 1029 | |
| 1033 | ROM_REGION( 0x100, "user2", 0 ) | |
| 1034 | ROM_LOAD( "992j.pd", 0x000000, 0x000100, BAD_DUMP CRC(51f24913) SHA1(574b555e3d0c234011198d218d7ae5e95091acb1) ) | |
| 1030 | ROM_REGION( 0x100, "security", 0 ) | |
| 1031 | ROM_LOAD( "992j.pd", 0x000000, 0x000100, BAD_DUMP CRC(51f24913) SHA1(574b555e3d0c234011198d218d7ae5e95091acb1) ) | |
| 1035 | 1032 | |
| 1036 | DISK_REGION( "cdrom0" ) | |
| 1037 | DISK_IMAGE_READONLY( "992jaa01", 0, BAD_DUMP SHA1(7e5389735dff379bb286ba3744edf59b7dfcc74b) ) | |
| 1033 | DISK_REGION( "cdrom0" ) | |
| 1034 | DISK_IMAGE_READONLY( "992jaa01", 0, BAD_DUMP SHA1(7e5389735dff379bb286ba3744edf59b7dfcc74b) ) | |
| 1038 | 1035 | // DISK_IMAGE_READONLY( "992jaahd", 1, NO_DUMP ) |
| 1039 | 1036 | // DISK_IMAGE_READONLY( "992jaa02", 2, NO_DUMP ) |
| 1040 | 1037 | ROM_END |
| r8581 | r8582 | |
| 1042 | 1039 | ROM_START( bmiidx4 ) |
| 1043 | 1040 | TWINKLE_BIOS |
| 1044 | 1041 | |
| 1045 | ROM_REGION( 0x100, " | |
| 1042 | ROM_REGION( 0x100, " | |
| 1046 | 1043 | ROM_LOAD( "a03j.pd", 0x000000, 0x000100, CRC(8860cfb6) SHA1(85a5b27f24d4baa7960e692b91c0cf3dc5388e72) ) |
| 1047 | 1044 | |
| 1048 | 1045 | DISK_REGION( "cdrom0" ) |
| r8581 | r8582 | |
| 1054 | 1051 | ROM_START( bmiidx6 ) |
| 1055 | 1052 | TWINKLE_BIOS |
| 1056 | 1053 | |
| 1057 | ROM_REGION( 0x100, " | |
| 1054 | ROM_REGION( 0x100, " | |
| 1058 | 1055 | ROM_LOAD( "b4uj.pd", 0x000000, 0x000100, BAD_DUMP CRC(0ab15633) SHA1(df004ff41f35b16089f69808ccf53a5e5cc13ac3) ) |
| 1059 | 1056 | |
| 1060 | 1057 | DISK_REGION( "cdrom0" ) |
| r8581 | r8582 | |
| 1066 | 1063 | ROM_START( bmiidx7 ) |
| 1067 | 1064 | TWINKLE_BIOS |
| 1068 | 1065 | |
| 1069 | ROM_REGION( 0x100, " | |
| 1066 | ROM_REGION( 0x100, " | |
| 1070 | 1067 | ROM_LOAD( "b44j.pd", 0x000000, 0x000100, BAD_DUMP CRC(5baf4761) SHA1(aa7e07eb2cada03b85bdf11ac6a3de65f4253eef) ) |
| 1071 | 1068 | |
| 1072 | 1069 | DISK_REGION( "cdrom0" ) |
| r8581 | r8582 | |
| 1078 | 1075 | ROM_START( bmiidx8 ) |
| 1079 | 1076 | TWINKLE_BIOS |
| 1080 | 1077 | |
| 1081 | ROM_REGION( 0x100, " | |
| 1078 | ROM_REGION( 0x100, " | |
| 1082 | 1079 | ROM_LOAD( "c44j.pd", 0x000000, 0x000100, BAD_DUMP CRC(04c22349) SHA1(d1cb78911cb1ca660d393a81ed3ed07b24c51525) ) |
| 1083 | 1080 | |
| 1084 | 1081 | DISK_REGION( "cdrom0" ) |
| r8581 | r8582 | |
| 1090 | 1087 | ROM_START( bmiidxc ) |
| 1091 | 1088 | TWINKLE_BIOS |
| 1092 | 1089 | |
| 1093 | ROM_REGION( 0x100, " | |
| 1090 | ROM_REGION( 0x100, " | |
| 1094 | 1091 | ROM_LOAD( "896j.pd", 0x000000, 0x000100, BAD_DUMP CRC(1e5caf37) SHA1(75b378662b651cb322e41564d3bae68cc9edadc5) ) |
| 1095 | 1092 | |
| 1096 | 1093 | DISK_REGION( "cdrom0" ) |
| r8581 | r8582 | |
| 1102 | 1099 | ROM_START( bmiidxc2 ) |
| 1103 | 1100 | TWINKLE_BIOS |
| 1104 | 1101 | |
| 1105 | ROM_REGION( 0x100, " | |
| 1102 | ROM_REGION( 0x100, " | |
| 1106 | 1103 | ROM_LOAD( "984j.pd", 0x000000, 0x000100, BAD_DUMP CRC(213843e5) SHA1(5571db155a60fa4087dd996af48e8e27fc1c518c) ) |
| 1107 | 1104 | |
| 1108 | 1105 | DISK_REGION( "cdrom0" ) |
| r8581 | r8582 | |
| 1114 | 1111 | ROM_START( bmiidxca ) |
| 1115 | 1112 | TWINKLE_BIOS |
| 1116 | 1113 | |
| 1117 | ROM_REGION( 0x100, " | |
| 1114 | ROM_REGION( 0x100, " | |
| 1118 | 1115 | ROM_LOAD( "896j.pd", 0x000000, 0x000100, BAD_DUMP CRC(1e5caf37) SHA1(75b378662b651cb322e41564d3bae68cc9edadc5) ) |
| 1119 | 1116 | |
| 1120 | 1117 | DISK_REGION( "cdrom0" ) |
| r8581 | r8582 | |
| 1123 | 1120 | // DISK_IMAGE_READONLY( "abmjaa02", 2, NO_DUMP ) |
| 1124 | 1121 | ROM_END |
| 1125 | 1122 | |
| 1126 | GAME( 1999, gq863, 0, twinkle, twinkle, twinkle, ROT0, "Konami", "Twinkle System", GAME_IS_BIOS_ROOT ) | |
| 1123 | GAME( 1999, gq863, 0, twinkle, twinkle, twinkle, ROT0, "Konami", "Twinkle System", GAME_IS_BIOS_ROOT ) | |
| 1127 | 1124 | |
| 1128 | 1125 | /* VCD */ |
| 1129 | 1126 | GAME( 1999, bmiidx, gq863, twinkle, twinkle, twinkle, ROT0, "Konami", "beatmania IIDX (863 JAA)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| r8581 | r8582 | |
|---|---|---|
| 176 | 176 | case 0xafe4: return input_port_read(space->machine,"SERVICE2");//attract mode |
| 177 | 177 | // case 0xafe5: return 1; |
| 178 | 178 | // case 0xafe6: return 1; |
| 179 | case 0xafe7: return eeprom_read_bit(devtag_get_device(space->machine,"eeprom")); | |
| 180 | case 0xaff8: return okim6295_r(devtag_get_device(space->machine, "oki"),0); | |
| 179 | case 0xafe7: return eeprom_read_bit(space->machine->device("eeprom")); | |
| 180 | case 0xaff8: return okim6295_r(space->machine->device("oki"),0); | |
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | // printf("%04x %d\n",offset+0xaf00,io_switch); |
| r8581 | r8582 | |
| 235 | 235 | case 0xa725: return input_port_read(space->machine,"HOLD3"); |
| 236 | 236 | case 0xa726: return input_port_read(space->machine,"HOLD4"); |
| 237 | 237 | case 0xa727: return input_port_read(space->machine,"HOLD2"); |
| 238 | case 0xa780: return okim6295_r( | |
| 238 | case 0xa780: return okim6295_r( | |
| 239 | 239 | case 0xa7a0: return input_port_read(space->machine,"HOLD1"); |
| 240 | 240 | case 0xa7a1: return input_port_read(space->machine,"HOLD5"); |
| 241 | 241 | case 0xa7a2: return input_port_read(space->machine,"START"); |
| 242 | 242 | case 0xa7a3: return input_port_read(space->machine,"BET");//system 2 |
| 243 | 243 | |
| 244 | case 0xa7a7: return eeprom_read_bit( | |
| 244 | case 0xa7a7: return eeprom_read_bit( | |
| 245 | 245 | |
| 246 | 246 | } |
| 247 | 247 | } |
| r8581 | r8582 | |
|---|---|---|
| 333 | 333 | |
| 334 | 334 | static MACHINE_START( lgp ) |
| 335 | 335 | { |
| 336 | laserdisc = | |
| 336 | laserdisc = m | |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 |
| r8581 | r8582 | |
|---|---|---|
| 215 | 215 | |
| 216 | 216 | static MACHINE_START( cliffhgr ) |
| 217 | 217 | { |
| 218 | laserdisc = | |
| 218 | laserdisc = m | |
| 219 | 219 | irq_timer = timer_alloc(machine, cliff_irq_callback, NULL); |
| 220 | 220 | } |
| 221 | 221 |
| r8581 | r8582 | |
|---|---|---|
| 106 | 106 | |
| 107 | 107 | static READ16_HANDLER( tms_host_r ) |
| 108 | 108 | { |
| 109 | return tms34010_host_r( | |
| 109 | return tms34010_host_r( | |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | |
| 113 | 113 | static WRITE16_HANDLER( tms_host_w ) |
| 114 | 114 | { |
| 115 | tms34010_host_w( | |
| 115 | tms34010_host_w( | |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 |
| r8581 | r8582 | |
|---|---|---|
| 225 | 225 | |
| 226 | 226 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0x10000], 0x4000); |
| 227 | 227 | |
| 228 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 229 | state->k007342 = devtag_get_device(machine, "k007342"); | |
| 230 | state->k007420 = devtag_get_device(machine, "k007420"); | |
| 228 | state->audiocpu = machine->device("audiocpu"); | |
| 229 | state->k007342 = machine->device("k007342"); | |
| 230 | state->k007420 = machine->device("k007420"); | |
| 231 | 231 | |
| 232 | 232 | state_save_register_global(machine, state->spritebank); |
| 233 | 233 | state_save_register_global_array(machine, state->layer_colorbase); |
| r8581 | r8582 | |
|---|---|---|
| 229 | 229 | |
| 230 | 230 | static void galpani2_mcu_nmi2(running_machine *machine) |
| 231 | 231 | { |
| 232 | galpani2_write_kaneko( | |
| 232 | galpani2_write_kaneko(m | |
| 233 | 233 | //logerror("%s : MCU executes CHECKs synchro\n", cpuexec_describe_context(machine)); |
| 234 | 234 | } |
| 235 | 235 |
| r8581 | r8582 | |
|---|---|---|
| 71 | 71 | |
| 72 | 72 | static INTERRUPT_GEN( sprint2 ) |
| 73 | 73 | { |
| 74 | running_device *discrete = dev | |
| 74 | running_device *discrete = dev | |
| 75 | 75 | static UINT8 dial[2]; |
| 76 | 76 | |
| 77 | 77 | /* handle steering wheels */ |
| r8581 | r8582 | |
|---|---|---|
| 76 | 76 | |
| 77 | 77 | static READ8_HANDLER(lions_via_r) |
| 78 | 78 | { |
| 79 | running_device *via_0 = | |
| 79 | running_device *via_0 = | |
| 80 | 80 | return via_r(via_0, offset); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | static WRITE8_HANDLER(lions_via_w) |
| 84 | 84 | { |
| 85 | running_device *via_0 = | |
| 85 | running_device *via_0 = | |
| 86 | 86 | via_w(via_0, offset, data); |
| 87 | 87 | } |
| 88 | 88 |
| r8581 | r8582 | |
|---|---|---|
| 93 | 93 | |
| 94 | 94 | static WRITE16_HANDLER( exterm_host_data_w ) |
| 95 | 95 | { |
| 96 | tms34010_host_w( | |
| 96 | tms34010_host_w( | |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | |
| 100 | 100 | static READ16_HANDLER( exterm_host_data_r ) |
| 101 | 101 | { |
| 102 | return tms34010_host_r( | |
| 102 | return tms34010_host_r( | |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | |
| r8581 | r8582 | |
| 393 | 393 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_8C ) ) |
| 394 | 394 | PORT_DIPNAME( 0x0040, 0x0040, "Memory Test" ) |
| 395 | 395 | PORT_DIPSETTING( 0x0040, "Once" ) |
| 396 | PORT_DIPSETTING( 0x0000, "Continous" ) | |
| 396 | PORT_DIPSETTING( 0x0000, "Continuous" ) | |
| 397 | 397 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Free_Play ) ) |
| 398 | 398 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 399 | 399 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r8581 | r8582 | |
|---|---|---|
| 318 | 318 | { |
| 319 | 319 | dragrace_state *state = (dragrace_state *)machine->driver_data; |
| 320 | 320 | |
| 321 | state->discrete = | |
| 321 | state->discrete = m | |
| 322 | 322 | |
| 323 | 323 | state_save_register_global(machine, state->misc_flags); |
| 324 | 324 | state_save_register_global_array(machine, state->gear); |
| r8581 | r8582 | |
|---|---|---|
| 1837 | 1837 | UINT8 flash_data = rombase[0x1ffffc]; |
| 1838 | 1838 | |
| 1839 | 1839 | cputag_set_input_line(machine, "soundcpu", INPUT_LINE_RESET, ASSERT_LINE ); |
| 1840 | cpu_set_irq_callback( | |
| 1840 | cpu_set_irq_callback(m | |
| 1841 | 1841 | |
| 1842 | 1842 | memory_install_read32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x00000680, 0x00000683, 0, 0, sound_fifo_r); |
| 1843 | 1843 | memory_install_write32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x00000688, 0x0000068b, 0, 0, z80_prg_fifo_w); |
| r8581 | r8582 | |
| 1920 | 1920 | |
| 1921 | 1921 | memcpy(z80_rom, rom, 0x40000); |
| 1922 | 1922 | |
| 1923 | memory_install_write32_device_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), | |
| 1923 | memory_install_write32_device_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), m | |
| 1924 | 1924 | memory_install_read32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x00000680, 0x00000683, 0, 0, sb_coin_r); |
| 1925 | 1925 | |
| 1926 | cpu_set_irq_callback( | |
| 1926 | cpu_set_irq_callback(m | |
| 1927 | 1927 | |
| 1928 | 1928 | sb_coin_latch = 0; |
| 1929 | 1929 | } |
| r8581 | r8582 | |
| 2173 | 2173 | } |
| 2174 | 2174 | |
| 2175 | 2175 | |
| 2176 | static | |
| 2176 | static void | |
| 2177 | 2177 | { |
| 2178 | 2178 | intelflash_init( machine, 0, FLASH_INTEL_E28F008SA, NULL ); |
| 2179 | 2179 | intelflash_init( machine, 1, FLASH_INTEL_E28F008SA, NULL ); |
| r8581 | r8582 | |
| 2186 | 2186 | memory_install_write32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x560, 0x563, 0, 0, sprite_dma_start_w); |
| 2187 | 2187 | } |
| 2188 | 2188 | |
| 2189 | static DRIVER_INIT( rfjet ) | |
| 2190 | { | |
| 2191 | init_rfjet(machine); | |
| 2192 | } | |
| 2193 | ||
| 2189 | 2194 | /* SYS386 */ |
| 2190 | 2195 | |
| 2191 | 2196 | static DRIVER_INIT( rdft22kc ) |
| r8581 | r8582 | |
| 2193 | 2198 | init_rf2(machine); |
| 2194 | 2199 | } |
| 2195 | 2200 | |
| 2201 | static DRIVER_INIT( rfjet2k ) | |
| 2202 | { | |
| 2203 | init_rfjet(machine); | |
| 2204 | } | |
| 2205 | ||
| 2196 | 2206 | static MACHINE_RESET( seibu386 ) |
| 2197 | 2207 | { |
| 2198 | cpu_set_irq_callback( | |
| 2208 | cpu_set_irq_callback(m | |
| 2199 | 2209 | } |
| 2200 | 2210 | |
| 2201 | 2211 | static MACHINE_DRIVER_START( seibu386 ) |
| r8581 | r8582 | |
| 3416 | 3426 | ROM_LOAD("pcm1.1023", 0x000000, 0x80000, CRC(8b716356) SHA1(42ee1896c02518cd1e9cb0dc130321834665a79e) ) |
| 3417 | 3427 | ROM_END |
| 3418 | 3428 | |
| 3429 | ROM_START( rfjet2kc ) | |
| 3430 | ROM_REGION32_LE(0x200000, "user1", 0) /* i386 program */ | |
| 3431 | ROM_LOAD32_WORD("prg01.u267", 0x000000, 0x100000, CRC(36019fa8) SHA1(28baf0ed4a53b818c1e6986d5d3491373524eca1) ) | |
| 3432 | ROM_LOAD32_WORD("prg23.u266", 0x000002, 0x100000, CRC(65695dde) SHA1(1b25dde03bc9319414144fc13b34c455112f4076) ) | |
| 3433 | ||
| 3434 | ROM_REGION( 0x30000, "gfx1", 0) /* text layer roms */ | |
| 3435 | ROM_LOAD24_BYTE("rfj-01.524", 0x000001, 0x10000, CRC(e9d53007) SHA1(29aa7b70d5d5eb5e31426ac84143be44bc0597aa) ) | |
| 3436 | ROM_LOAD24_BYTE("rfj-02.518", 0x000000, 0x10000, CRC(dd3eabd3) SHA1(31c8f7a0cd262096a77673b040326605db542ab8) ) | |
| 3437 | ROM_LOAD24_BYTE("rfj-03.514", 0x000002, 0x10000, CRC(0daa8aac) SHA1(08a98fb3079ea9f78aa5b950bfeb30b0a805bab7) ) | |
| 3438 | ||
| 3439 | ROM_REGION( 0xc00000, "gfx2", 0) /* background layer roms */ | |
| 3440 | ROM_LOAD24_WORD("bg-1d.u0535", 0x000000, 0x400000, CRC(edfd96da) SHA1(4813267f104619f569e5777e75b75304321abb49) ) | |
| 3441 | ROM_LOAD24_BYTE("bg-1p.u0537", 0x000002, 0x200000, CRC(a4cc4631) SHA1(cc1c4f4de8a078ca774f5a328a9a58291949b1fb) ) | |
| 3442 | ROM_LOAD24_WORD("bg-2d.u0536", 0x600000, 0x200000, CRC(731fbb59) SHA1(13cd29ec4d4c73582c5fb363218e737886826e5f) ) | |
| 3443 | ROM_LOAD24_BYTE("bg-2p.u0547", 0x600002, 0x100000, CRC(03652c25) SHA1(c0d77285111bc84e008362981ac02a246678ed0a) ) | |
| 3444 | ||
| 3445 | ROM_REGION( 0x1800000, "gfx3", 0) /* sprites */ | |
| 3446 | ROM_LOAD("obj-1.u073", 0x0000000, 0x800000, CRC(58a59896) SHA1(edeaaa69987bd5d08c47ed9bf47a3901e2dcc892) ) | |
| 3447 | ROM_LOAD("obj-2.u074", 0x0800000, 0x800000, CRC(a121d1e3) SHA1(1851ae81f2ae9d3404aadd9fbc0ed7f9230290b9) ) | |
| 3448 | ROM_LOAD("obj-3.u0749", 0x1000000, 0x800000, CRC(bc2c0c63) SHA1(c8d395722f7012c3be366a0fc9b224c537afabae) ) | |
| 3449 | ||
| 3450 | ROM_REGION( 0x80000, "oki1", 0) /* sound data for MSM6295 */ | |
| 3451 | ROM_LOAD("rfj-05.u1022", 0x000000, 0x80000, CRC(fd599b35) SHA1(00c0307d1b503bd5ce02d7960ce5e1ad600a7290) ) | |
| 3452 | ||
| 3453 | ROM_REGION( 0x80000, "oki2", 0) /* sound data for MSM6295 */ | |
| 3454 | ROM_LOAD("rfj-04.u1023", 0x000000, 0x80000, CRC(1d10cd08) SHA1(c431d3f1a7b580024b083dafb76c53b771c88726) ) | |
| 3455 | ROM_END | |
| 3456 | ||
| 3419 | 3457 | /* |
| 3420 | 3458 | |
| 3421 | 3459 | E-Jan Sakurasou |
| r8581 | r8582 | |
| 3507 | 3545 | GAME( 1995, viprp1ot, viprp1, spi, spi_3button, viprp1, ROT270, "Seibu Kaihatsu (Tuning license)", "Viper Phase 1 (Germany)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) |
| 3508 | 3546 | GAME( 1995, viprp1hk, viprp1, spi, spi_3button, viprp1, ROT270, "Seibu Kaihatsu (Metrotainment license)", "Viper Phase 1 (Hong Kong)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) /* "=HONG KONG=" seems part of title */ |
| 3509 | 3547 | |
| 3510 | GAME( 1996, ejanhs, 0, spi, spi_ejanhs, ejanhs, | |
| 3548 | GAME( 1996, ejanhs, 0, spi, spi_ejanhs, ejanhs, | |
| 3511 | 3549 | |
| 3512 | GAME( 1996, rdft, 0, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Japan set 1)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3513 | GAME( 1996, rdftu, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu (Fabtek license)", "Raiden Fighters (US)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3514 | GAME( 1996, rdftau, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Australia)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3515 | GAME( 1996, rdftj, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Japan set 2)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3516 | GAME( 1996, rdftdi, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu (Dream Island license)", "Raiden Fighters (Dream Island Co. license)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3517 | GAME( 1996, rdftit, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Italy)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3518 | GAME( 1996, rdfta, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Austria)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3550 | GAME( 1996, rdft, 0, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Japan set 1)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3551 | GAME( 1996, rdftu, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu (Fabtek license)", "Raiden Fighters (US)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3552 | GAME( 1996, rdftau, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Australia)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3553 | GAME( 1996, rdftj, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Japan set 2)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3554 | GAME( 1996, rdftdi, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu (Dream Island license)", "Raiden Fighters (Dream Island Co. license)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3555 | GAME( 1996, rdftit, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Italy)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3556 | GAME( 1996, rdfta, rdft, spi, spi_3button, rdft, ROT270, "Seibu Kaihatsu", "Raiden Fighters (Austria)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3519 | 3557 | |
| 3520 | 3558 | GAME( 1997, rdft2, 0, spi, spi_2button, rdft2, ROT270, "Seibu Kaihatsu (Tuning license)", "Raiden Fighters 2", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) |
| 3521 | 3559 | GAME( 1997, rdft2a2, rdft2, spi, spi_2button, rdft2, ROT270, "Seibu Kaihatsu (Dream Island license)", "Raiden Fighters 2 (Asia, Dream Island license, SPI)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) |
| r8581 | r8582 | |
| 3525 | 3563 | GAME( 1997, rdft2t, rdft2, spi, spi_2button, rdft2, ROT270, "Seibu Kaihatsu", "Raiden Fighters 2 (Taiwan, SPI)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) |
| 3526 | 3564 | GAME( 1997, rdft2u, rdft2, spi, spi_2button, rdft2, ROT270, "Seibu Kaihatsu (Fabtek license)", "Raiden Fighters 2 (USA, SPI)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) |
| 3527 | 3565 | |
| 3528 | GAME( 1998, rfjet, 0, spi, spi_2button, rfjet, ROT270, "Seibu Kaihatsu (Tuning license)", "Raiden Fighters Jet", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3529 | GAME( 1998, rfjetu, rfjet, spi, spi_2button, rfjet, ROT270, "Seibu Kaihatsu (Fabtek license)", "Raiden Fighters Jet (US)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3530 | GAME( 1998, rfjeta, rfjet, spi, spi_2button, rfjet, ROT270, "Seibu Kaihatsu (Dream Island license)", "Raiden Fighters Jet (Asia)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3531 | GAME( 1998, rfjetj, rfjet, spi, spi_2button, rfjet, ROT270, "Seibu Kaihatsu", "Raiden Fighters Jet (Japan)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3566 | GAME( 1998, rfjet, 0, spi, spi_2button, rfjet, ROT270, "Seibu Kaihatsu (Tuning license)", "Raiden Fighters Jet", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3567 | GAME( 1998, rfjetu, rfjet, spi, spi_2button, rfjet, ROT270, "Seibu Kaihatsu (Fabtek license)", "Raiden Fighters Jet (US)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3568 | GAME( 1998, rfjeta, rfjet, spi, spi_2button, rfjet, ROT270, "Seibu Kaihatsu (Dream Island license)", "Raiden Fighters Jet (Asia)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3569 | GAME( 1998, rfjetj, rfjet, spi, spi_2button, rfjet, ROT270, "Seibu Kaihatsu", "Raiden Fighters Jet (Japan)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND ) | |
| 3532 | 3570 | |
| 3533 | 3571 | /* there is another rf dump rf_spi_asia.zip but it seems strange, 1 program rom, cart pic seems to show others as a different type of rom */ |
| 3534 | 3572 | |
| r8581 | r8582 | |
| 3540 | 3578 | |
| 3541 | 3579 | /* SYS386 */ |
| 3542 | 3580 | GAME( 2000, rdft22kc, rdft2, seibu386, seibu386_2button, rdft22kc, ROT270, "Seibu Kaihatsu", "Raiden Fighters 2 - 2000 (China)", GAME_IMPERFECT_GRAPHICS ) |
| 3581 | GAME( 2000, rfjet2kc, rfjet, seibu386, seibu386_2button, rfjet2k, ROT270, "Seibu Kaihatsu", "Raiden Fighters Jet - 2000 (China)", GAME_IMPERFECT_GRAPHICS ) | |
| 3543 | 3582 | |
| 3544 | 3583 | /* SYS386F V2.0 */ |
| 3545 | 3584 | GAME( 1999, ejsakura, 0, sys386f2, spi_ejsakura, sys386f2, ROT0, "Seibu Kaihatsu", "E-Jan Sakurasou (v2.0)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| r8581 | r8582 | |
|---|---|---|
| 7 | 7 | driver by Nicola Salmoria and Aaron Giles |
| 8 | 8 | |
| 9 | 9 | |
| 10 | The main cpu is a 34010; it is encrypted in 9 Ball Shootout. | |
| 10 | The main cpu is a TMS34010; it is encrypted in 9 Ball Shootout. | |
| 11 | 11 | |
| 12 | The second CPU in AmeriDarts is a 32015, whose built-in ROM hasn't | |
| 13 | been read. A simulation of the I/O behavior is included, but since the | |
| 14 | second CPU controls sound, there is no sound. | |
| 12 | The second CPU in AmeriDarts is a TMS32015; it controls sound and | |
| 13 | the trackball inputs. | |
| 15 | 14 | |
| 16 | The second CPU in Cool Pool and 9 Ball Shootout is a 320C26; the code | |
| 15 | The second CPU in Cool Pool and 9 Ball Shootout is a TMS320C26; the code | |
| 17 | 16 | is the same in the two games. |
| 18 | 17 | |
| 19 | 18 | Cool Pool: |
| r8581 | r8582 | |
| 30 | 29 | #include "cpu/tms32025/tms32025.h" |
| 31 | 30 | #include "video/tlc34076.h" |
| 32 | 31 | #include "sound/dac.h" |
| 32 | #include "includes/coolpool.h" | |
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | |
| r8581 | r8582 | |
| 39 | 39 | * |
| 40 | 40 | *************************************/ |
| 41 | 41 | |
| 42 | static UINT16 *vram_base; | |
| 43 | 42 | |
| 44 | static UINT8 cmd_pending; | |
| 45 | static UINT16 iop_cmd; | |
| 46 | static UINT16 iop_answer; | |
| 47 | static int iop_romaddr; | |
| 48 | static UINT8 amerdart_iop_echo; | |
| 49 | 43 | |
| 50 | 44 | static const UINT16 nvram_unlock_seq[] = |
| 51 | 45 | { |
| r8581 | r8582 | |
| 65 | 59 | |
| 66 | 60 | static void amerdart_scanline(screen_device &screen, bitmap_t *bitmap, int scanline, const tms34010_display_params *params) |
| 67 | 61 | { |
| 68 | UINT16 *vram = &vram_base[(params->rowaddr << 8) & 0xff00]; | |
| 62 | coolpool_state *state = (coolpool_state *)screen.machine->driver_data; | |
| 63 | ||
| 64 | UINT16 *vram = &state->vram_base[(params->rowaddr << 8) & 0xff00]; | |
| 69 | 65 | UINT32 *dest = BITMAP_ADDR32(bitmap, scanline, 0); |
| 70 | 66 | rgb_t pens[16]; |
| 71 | 67 | int coladdr = params->coladdr; |
| r8581 | r8582 | |
| 75 | 71 | if (scanline < 256) |
| 76 | 72 | for (x = 0; x < 16; x++) |
| 77 | 73 | { |
| 78 | UINT16 pal = vram_base[x]; | |
| 74 | UINT16 pal = state->vram_base[x]; | |
| 79 | 75 | pens[x] = MAKE_RGB(pal4bit(pal >> 4), pal4bit(pal >> 8), pal4bit(pal >> 12)); |
| 80 | 76 | } |
| 81 | 77 | |
| r8581 | r8582 | |
| 92 | 88 | |
| 93 | 89 | static void coolpool_scanline(screen_device &screen, bitmap_t *bitmap, int scanline, const tms34010_display_params *params) |
| 94 | 90 | { |
| 95 | UINT16 *vram = &vram_base[(params->rowaddr << 8) & 0x1ff00]; | |
| 91 | coolpool_state *state = (coolpool_state *)screen.machine->driver_data; | |
| 92 | ||
| 93 | UINT16 *vram = &state->vram_base[(params->rowaddr << 8) & 0x1ff00]; | |
| 96 | 94 | UINT32 *dest = BITMAP_ADDR32(bitmap, scanline, 0); |
| 97 | 95 | const rgb_t *pens = tlc34076_get_pens(); |
| 98 | 96 | int coladdr = params->coladdr; |
| r8581 | r8582 | |
| 116 | 114 | |
| 117 | 115 | static void coolpool_to_shiftreg(const address_space *space, UINT32 address, UINT16 *shiftreg) |
| 118 | 116 | { |
| 119 | memcpy(shiftreg, &vram_base[TOWORD(address) & ~TOWORD(0xfff)], TOBYTE(0x1000)); | |
| 117 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 118 | ||
| 119 | memcpy(shiftreg, &state->vram_base[TOWORD(address) & ~TOWORD(0xfff)], TOBYTE(0x1000)); | |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | |
| 123 | 123 | static void coolpool_from_shiftreg(const address_space *space, UINT32 address, UINT16 *shiftreg) |
| 124 | 124 | { |
| 125 | memcpy(&vram_base[TOWORD(address) & ~TOWORD(0xfff)], shiftreg, TOBYTE(0x1000)); | |
| 125 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 126 | ||
| 127 | memcpy(&state->vram_base[TOWORD(address) & ~TOWORD(0xfff)], shiftreg, TOBYTE(0x1000)); | |
| 126 | 128 | } |
| 127 | 129 | |
| 128 | 130 | |
| r8581 | r8582 | |
| 196 | 198 | |
| 197 | 199 | /************************************* |
| 198 | 200 | * |
| 199 | * AmeriDarts | |
| 201 | * AmeriDarts | |
| 200 | 202 | * |
| 201 | 203 | *************************************/ |
| 202 | 204 | |
| 203 | 205 | static WRITE16_HANDLER( amerdart_misc_w ) |
| 204 | 206 | { |
| 205 | logerror("%08x:IOP_ | |
| 207 | logerror("%08x:IOP_ | |
| 206 | 208 | |
| 207 | 209 | coin_counter_w(space->machine, 0, ~data & 0x0001); |
| 208 | 210 | coin_counter_w(space->machine, 1, ~data & 0x0002); |
| 209 | 211 | |
| 212 | /* bits 10-15 are counted down over time */ | |
| 213 | ||
| 210 | 214 | cputag_set_input_line(space->machine, "dsp", INPUT_LINE_RESET, (data & 0x0400) ? ASSERT_LINE : CLEAR_LINE); |
| 215 | } | |
| 211 | 216 | |
| 212 | /* bits 10-15 are counted down over time */ | |
| 213 | if (data & 0x0400) amerdart_iop_echo = 1; | |
| 217 | static READ16_HANDLER( amerdart_dsp_bio_line_r ) | |
| 218 | { | |
| 219 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 220 | ||
| 221 | static UINT8 old_cmd; | |
| 222 | static UINT8 same_cmd_count; | |
| 223 | ||
| 224 | /* Skip idle checking */ | |
| 225 | if (old_cmd == state->cmd_pending) | |
| 226 | same_cmd_count += 1; | |
| 227 | else | |
| 228 | same_cmd_count = 0; | |
| 229 | ||
| 230 | if (same_cmd_count >= 5) | |
| 231 | { | |
| 232 | same_cmd_count = 5; | |
| 233 | cpu_spin(space->cpu); | |
| 234 | } | |
| 235 | old_cmd = state->cmd_pending; | |
| 236 | ||
| 237 | return state->cmd_pending ? CLEAR_LINE : ASSERT_LINE; | |
| 214 | 238 | } |
| 215 | 239 | |
| 240 | static READ16_HANDLER( amerdart_iop_r ) | |
| 241 | { | |
| 242 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 216 | 243 | |
| 217 | static TIMER_CALLBACK( amerdart_iop_response ) | |
| 244 | // logerror("%08x:IOP read %04x\n",cpu_get_pc(space->cpu),state->iop_answer); | |
| 245 | cputag_set_input_line(space->machine, "maincpu", 1, CLEAR_LINE); | |
| 246 | ||
| 247 | return state->iop_answer; | |
| 248 | } | |
| 249 | ||
| 250 | static WRITE16_HANDLER( amerdart_iop_w ) | |
| 218 | 251 | { |
| 219 | /* echo values until we get 0x19 */ | |
| 220 | iop_answer = iop_cmd; | |
| 221 | if (amerdart_iop_echo && iop_cmd != 0x19) | |
| 252 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 253 | ||
| 254 | // logerror("%08x:IOP write %04x\n", cpu_get_pc(space->cpu), data); | |
| 255 | COMBINE_DATA(&state->iop_cmd); | |
| 256 | state->cmd_pending = 1; | |
| 257 | } | |
| 258 | ||
| 259 | static READ16_HANDLER( amerdart_dsp_cmd_r ) | |
| 260 | { | |
| 261 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 262 | ||
| 263 | // logerror("%08x:DSP cmd_r %04x\n", cpu_get_pc(space->cpu), state->iop_cmd); | |
| 264 | state->cmd_pending = 0; | |
| 265 | return state->iop_cmd; | |
| 266 | } | |
| 267 | ||
| 268 | static WRITE16_HANDLER( amerdart_dsp_answer_w ) | |
| 269 | { | |
| 270 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 271 | ||
| 272 | // logerror("%08x:DSP answer %04x\n", cpu_get_pc(space->cpu), data); | |
| 273 | state->iop_answer = data; | |
| 274 | cputag_set_input_line(space->machine, "maincpu", 1, ASSERT_LINE); | |
| 275 | } | |
| 276 | ||
| 277 | ||
| 278 | /************************************* | |
| 279 | * | |
| 280 | * Ameri Darts trackball inputs | |
| 281 | * | |
| 282 | *************************************/ | |
| 283 | ||
| 284 | static int amerdart_trackball_inc(int data) | |
| 285 | { | |
| 286 | switch (data & 0x03) /* Bits of opposite track direction must both change with identical levels */ | |
| 222 | 287 | { |
| 223 | cputag_set_input_line(machine, "maincpu", 1, ASSERT_LINE); | |
| 224 | return; | |
| 288 | case 0x00: data ^= 0x03; break; | |
| 289 | case 0x01: data ^= 0x01; break; | |
| 290 | case 0x02: data ^= 0x01; break; | |
| 291 | case 0x03: data ^= 0x03; break; | |
| 225 | 292 | } |
| 226 | amerdart_iop_echo = 0; | |
| 227 | ||
| 228 | /* rest is based off the command */ | |
| 229 | switch (iop_cmd) | |
| 293 | return data; | |
| 294 | } | |
| 295 | static int amerdart_trackball_dec(int data) | |
| 296 | { | |
| 297 | switch (data & 0x03) /* Bits of opposite track direction must both change with opposing levels */ | |
| 230 | 298 | { |
| 231 | default: | |
| 232 | logerror("Unknown IOP command %04X\n", iop_cmd); | |
| 299 | case 0x00: data ^= 0x01; break; | |
| 300 | case 0x01: data ^= 0x03; break; | |
| 301 | case 0x02: data ^= 0x03; break; | |
| 302 | case 0x03: data ^= 0x01; break; | |
| 303 | } | |
| 304 | return data; | |
| 305 | } | |
| 233 | 306 | |
| 234 | case 0x000: | |
| 235 | case 0x019: | |
| 236 | case 0x600: | |
| 237 | case 0x60f: | |
| 238 | case 0x6f0: | |
| 239 | case 0x6ff: | |
| 240 | iop_answer = 0x6c00; | |
| 241 | break; | |
| 307 | static int amerdart_trackball_direction(const address_space *space, int num, int data) | |
| 308 | { | |
| 309 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 242 | 310 | |
| 243 | case 0x100: | |
| 244 | iop_answer = (INT8)(-input_port_read(machine, "YAXIS2") - input_port_read(machine, "XAXIS2")) << 6; | |
| 245 | break; | |
| 246 | case 0x101: | |
| 247 | iop_answer = (INT8)(-input_port_read(machine, "YAXIS2") + input_port_read(machine, "XAXIS2")) << 6; | |
| 248 | break; | |
| 249 | case 0x102: | |
| 250 | iop_answer = (INT8)(-input_port_read(machine, "YAXIS1") - input_port_read(machine, "XAXIS1")) << 6; | |
| 251 | break; | |
| 252 | case 0x103: | |
| 253 | iop_answer = (INT8)(-input_port_read(machine, "YAXIS1") + input_port_read(machine, "XAXIS1")) << 6; | |
| 254 | break; | |
| 311 | UINT16 result_x = (data & 0x0c) >> 2; | |
| 312 | UINT16 result_y = (data & 0x03) >> 0; | |
| 255 | 313 | |
| 256 | case 0x500: | |
| 257 | iop_answer = input_port_read(machine, "IN1"); | |
| 258 | break; | |
| 314 | ||
| 315 | if ((state->dx[num] == 0) && (state->dy[num] < 0)) { /* Up */ | |
| 316 | state->oldy[num]--; | |
| 317 | result_x = amerdart_trackball_inc(result_x); | |
| 318 | result_y = amerdart_trackball_inc(result_y); | |
| 259 | 319 | } |
| 320 | if ((state->dx[num] == 0) && (state->dy[num] > 0)) { /* Down */ | |
| 321 | state->oldy[num]++; | |
| 322 | result_x = amerdart_trackball_dec(result_x); | |
| 323 | result_y = amerdart_trackball_dec(result_y); | |
| 324 | } | |
| 325 | if ((state->dx[num] < 0) && (state->dy[num] == 0)) { /* Left */ | |
| 326 | state->oldx[num]--; | |
| 327 | result_x = amerdart_trackball_inc(result_x); | |
| 328 | result_y = amerdart_trackball_dec(result_y); | |
| 329 | } | |
| 330 | if ((state->dx[num] > 0) && (state->dy[num] == 0)) { /* Right */ | |
| 331 | state->oldx[num]++; | |
| 332 | result_x = amerdart_trackball_dec(result_x); | |
| 333 | result_y = amerdart_trackball_inc(result_y); | |
| 334 | } | |
| 335 | if ((state->dx[num] < 0) && (state->dy[num] < 0)) { /* Left & Up */ | |
| 336 | state->oldx[num]--; | |
| 337 | state->oldy[num]--; | |
| 338 | result_x = amerdart_trackball_inc(result_x); | |
| 339 | } | |
| 340 | if ((state->dx[num] < 0) && (state->dy[num] > 0)) { /* Left & Down */ | |
| 341 | state->oldx[num]--; | |
| 342 | state->oldy[num]++; | |
| 343 | result_y = amerdart_trackball_dec(result_y); | |
| 344 | } | |
| 345 | if ((state->dx[num] > 0) && (state->dy[num] < 0)) { /* Right & Up */ | |
| 346 | state->oldx[num]++; | |
| 347 | state->oldy[num]--; | |
| 348 | result_y = amerdart_trackball_inc(result_y); | |
| 349 | } | |
| 350 | if ((state->dx[num] > 0) && (state->dy[num] > 0)) { /* Right & Down */ | |
| 351 | state->oldx[num]++; | |
| 352 | state->oldy[num]++; | |
| 353 | result_x = amerdart_trackball_dec(result_x); | |
| 354 | } | |
| 260 | 355 | |
| 261 | cputag_set_input_line(machine, "maincpu", 1, ASSERT_LINE); | |
| 356 | data = ((result_x << 2) & 0x0c) | ((result_y << 0) & 0x03); | |
| 357 | ||
| 358 | return data; | |
| 262 | 359 | } |
| 263 | 360 | |
| 264 | 361 | |
| 265 | static | |
| 362 | static | |
| 266 | 363 | { |
| 267 | logerror("%08x:IOP write %04x\n", cpu_get_pc(space->cpu), data); | |
| 268 | COMBINE_DATA(&iop_cmd); | |
| 269 | timer_set(space->machine, ATTOTIME_IN_USEC(100), NULL, 0, amerdart_iop_response); | |
| 364 | /* | |
| 365 | Trackballs seem to be handled as though they're rotated 45 degrees anti-clockwise. | |
| 366 | ||
| 367 | Sensor data as shown on Input test screen and associated bits read by TMS32015 DSP port: | |
| 368 | xxyy xxyy ???? ???? | |
| 369 | |||| |||| |||| |||| | |
| 370 | |||| |||| ++++-++++-- Unused | |
| 371 | |||| |||| | |
| 372 | |||| |||+------------ Trackball 1 Up sensor | |
| 373 | |||| ||+------------- Trackball 1 Down sensor | |
| 374 | |||| |+-------------- Trackball 1 Left sensor | |
| 375 | |||| +--------------- Trackball 1 Right sensor | |
| 376 | |||| | |
| 377 | |||+----------------- Trackball 2 Up sensor | |
| 378 | ||+------------------ Trackball 2 Down sensor | |
| 379 | |+------------------- Trackball 2 Left sensor | |
| 380 | +-------------------- Trackball 2 Right sensor | |
| 381 | ||
| 382 | Opposite direction bits toggling the same level indicate increment (+) input movement (00 -> 11 -> 00, etc) | |
| 383 | Opposite direction bits toggling the opposite level indicate decrement (-) input movement (01 -> 10 -> 01, etc) | |
| 384 | ||
| 385 | Input state requirements to indicate trackball direction. | |
| 386 | Direction StateX StateY | |
| 387 | ============================= | |
| 388 | UP X + Y + | |
| 389 | Down X - Y - | |
| 390 | Left X + Y - | |
| 391 | Right X - Y + | |
| 392 | Up & Left X + Y 0 | |
| 393 | Up & Right X 0 Y + | |
| 394 | Down & Left X 0 Y - | |
| 395 | Down & Right X - Y 0 | |
| 396 | ||
| 397 | */ | |
| 398 | ||
| 399 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 400 | ||
| 401 | ||
| 402 | state->result = (state->lastresult | 0x00ff); | |
| 403 | ||
| 404 | state->newx[1] = input_port_read(space->machine, "XAXIS1"); /* Trackball 1 Left - Right */ | |
| 405 | state->newy[1] = input_port_read(space->machine, "YAXIS1"); /* Trackball 1 Up - Down */ | |
| 406 | state->newx[2] = input_port_read(space->machine, "XAXIS2"); /* Trackball 2 Left - Right */ | |
| 407 | state->newy[2] = input_port_read(space->machine, "YAXIS2"); /* Trackball 2 Up - Down */ | |
| 408 | ||
| 409 | state->dx[1] = (INT8)(state->newx[1] - state->oldx[1]); | |
| 410 | state->dy[1] = (INT8)(state->newy[1] - state->oldy[1]); | |
| 411 | state->dx[2] = (INT8)(state->newx[2] - state->oldx[2]); | |
| 412 | state->dy[2] = (INT8)(state->newy[2] - state->oldy[2]); | |
| 413 | ||
| 414 | /* Determine Trackball 1 direction state */ | |
| 415 | state->result = (state->result & 0xf0ff) | (amerdart_trackball_direction(space, 1, ((state->result >> 8) & 0xf)) << 8); | |
| 416 | ||
| 417 | /* Determine Trackball 2 direction state */ | |
| 418 | state->result = (state->result & 0x0fff) | (amerdart_trackball_direction(space, 2, ((state->result >> 12) & 0xf)) << 12); | |
| 419 | ||
| 420 | ||
| 421 | // logerror("%08X:read port 6 (X=%02X Y=%02X oldX=%02X oldY=%02X oldRes=%04X Res=%04X)\n", cpu_get_pc(space->cpu), state->newx, state->newy, state->oldx, state->oldy, state->lastresult, state->result); | |
| 422 | ||
| 423 | state->lastresult = state->result; | |
| 424 | ||
| 425 | return state->result; | |
| 270 | 426 | } |
| 271 | 427 | |
| 272 | 428 | |
| 273 | ||
| 274 | 429 | /************************************* |
| 275 | 430 | * |
| 276 | 431 | * Cool Pool IOP control |
| r8581 | r8582 | |
| 279 | 434 | |
| 280 | 435 | static WRITE16_HANDLER( coolpool_misc_w ) |
| 281 | 436 | { |
| 282 | logerror("%08x:IOP_ | |
| 437 | logerror("%08x:IOP_ | |
| 283 | 438 | |
| 284 | 439 | coin_counter_w(space->machine, 0, ~data & 0x0001); |
| 285 | 440 | coin_counter_w(space->machine, 1, ~data & 0x0002); |
| r8581 | r8582 | |
| 298 | 453 | |
| 299 | 454 | static TIMER_CALLBACK( deferred_iop_w ) |
| 300 | 455 | { |
| 301 | iop_cmd = param; | |
| 302 | cmd_pending = 1; | |
| 456 | coolpool_state *state = (coolpool_state *)machine->driver_data; | |
| 457 | ||
| 458 | state->iop_cmd = param; | |
| 459 | state->cmd_pending = 1; | |
| 303 | 460 | cputag_set_input_line(machine, "dsp", 0, HOLD_LINE); /* ??? I have no idea who should generate this! */ |
| 304 | 461 | /* the DSP polls the status bit so it isn't strictly */ |
| 305 | 462 | /* necessary to also have an IRQ */ |
| r8581 | r8582 | |
| 316 | 473 | |
| 317 | 474 | static READ16_HANDLER( coolpool_iop_r ) |
| 318 | 475 | { |
| 319 | logerror("%08x:IOP read %04x\n",cpu_get_pc(space->cpu),iop_answer); | |
| 476 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 477 | ||
| 478 | logerror("%08x:IOP read %04x\n",cpu_get_pc(space->cpu),state->iop_answer); | |
| 320 | 479 | cputag_set_input_line(space->machine, "maincpu", 1, CLEAR_LINE); |
| 321 | 480 | |
| 322 | return iop_answer; | |
| 481 | return state->iop_answer; | |
| 323 | 482 | } |
| 324 | 483 | |
| 325 | 484 | |
| r8581 | r8582 | |
| 333 | 492 | |
| 334 | 493 | static READ16_HANDLER( dsp_cmd_r ) |
| 335 | 494 | { |
| 336 | cmd_pending = 0; | |
| 337 | logerror("%08x:IOP cmd_r %04x\n", cpu_get_pc(space->cpu), iop_cmd); | |
| 338 | return iop_cmd; | |
| 495 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 496 | ||
| 497 | state->cmd_pending = 0; | |
| 498 | logerror("%08x:IOP cmd_r %04x\n", cpu_get_pc(space->cpu), state->iop_cmd); | |
| 499 | return state->iop_cmd; | |
| 339 | 500 | } |
| 340 | 501 | |
| 341 | 502 | |
| 342 | 503 | static WRITE16_HANDLER( dsp_answer_w ) |
| 343 | 504 | { |
| 505 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 506 | ||
| 344 | 507 | logerror("%08x:IOP answer %04x\n", cpu_get_pc(space->cpu), data); |
| 345 | iop_answer = data; | |
| 508 | state->iop_answer = data; | |
| 346 | 509 | cputag_set_input_line(space->machine, "maincpu", 1, ASSERT_LINE); |
| 347 | 510 | } |
| 348 | 511 | |
| 349 | 512 | |
| 350 | 513 | static READ16_HANDLER( dsp_bio_line_r ) |
| 351 | 514 | { |
| 352 | return cmd_pending ? CLEAR_LINE : ASSERT_LINE; | |
| 515 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 516 | ||
| 517 | return state->cmd_pending ? CLEAR_LINE : ASSERT_LINE; | |
| 353 | 518 | } |
| 354 | 519 | |
| 355 | 520 | |
| r8581 | r8582 | |
| 368 | 533 | |
| 369 | 534 | static READ16_HANDLER( dsp_rom_r ) |
| 370 | 535 | { |
| 536 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 371 | 537 | UINT8 *rom = memory_region(space->machine, "user2"); |
| 372 | return rom[iop_romaddr & (memory_region_length(space->machine, "user2") - 1)]; | |
| 538 | ||
| 539 | return rom[state->iop_romaddr & (memory_region_length(space->machine, "user2") - 1)]; | |
| 373 | 540 | } |
| 374 | 541 | |
| 375 | 542 | |
| 376 | 543 | static WRITE16_HANDLER( dsp_romaddr_w ) |
| 377 | 544 | { |
| 545 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 546 | ||
| 378 | 547 | switch (offset) |
| 379 | 548 | { |
| 380 | 549 | case 0: |
| 381 | iop_romaddr = (iop_romaddr & 0xffff00) | (data >> 8); | |
| 550 | state->iop_romaddr = (state->iop_romaddr & 0xffff00) | (data >> 8); | |
| 382 | 551 | break; |
| 383 | 552 | |
| 384 | 553 | case 1: |
| 385 | iop_romaddr = (iop_romaddr & 0x0000ff) | (data << 8); | |
| 554 | state->iop_romaddr = (state->iop_romaddr & 0x0000ff) | (data << 8); | |
| 386 | 555 | break; |
| 387 | 556 | } |
| 388 | 557 | } |
| r8581 | r8582 | |
| 403 | 572 | |
| 404 | 573 | static READ16_HANDLER( coolpool_input_r ) |
| 405 | 574 | { |
| 406 | static UINT8 oldx, oldy; | |
| 407 | static UINT16 lastresult; | |
| 575 | coolpool_state *state = (coolpool_state *)space->machine->driver_data; | |
| 408 | 576 | |
| 409 | int result = (input_port_read(space->machine, "IN1") & 0x00ff) | (lastresult & 0xff00); | |
| 410 | UINT8 newx = input_port_read(space->machine, "XAXIS"); | |
| 411 | UINT8 newy = input_port_read(space->machine, "YAXIS"); | |
| 412 | int dx = (INT8)(newx - oldx); | |
| 413 | int dy = (INT8)(newy - oldy); | |
| 577 | state->result = (input_port_read(space->machine, "IN1") & 0x00ff) | (state->lastresult & 0xff00); | |
| 578 | state->newx[1] = input_port_read(space->machine, "XAXIS"); | |
| 579 | state->newy[1] = input_port_read(space->machine, "YAXIS"); | |
| 580 | state->dx[1] = (INT8)(state->newx[1] - state->oldx[1]); | |
| 581 | state->dy[1] = (INT8)(state->newy[1] - state->oldy[1]); | |
| 414 | 582 | |
| 415 | if (dx < 0) | |
| 583 | if (state->dx[1] < 0) | |
| 416 | 584 | { |
| 417 | oldx--; | |
| 418 | switch (result & 0x300) | |
| 585 | state->oldx[1]--; | |
| 586 | switch (state->result & 0x300) | |
| 419 | 587 | { |
| 420 | case 0x000: result ^= 0x200; break; | |
| 421 | case 0x100: result ^= 0x100; break; | |
| 422 | case 0x200: result ^= 0x100; break; | |
| 423 | case 0x300: result ^= 0x200; break; | |
| 588 | case 0x000: state->result ^= 0x200; break; | |
| 589 | case 0x100: state->result ^= 0x100; break; | |
| 590 | case 0x200: state->result ^= 0x100; break; | |
| 591 | case 0x300: state->result ^= 0x200; break; | |
| 424 | 592 | } |
| 425 | 593 | } |
| 426 | if (dx > 0) | |
| 594 | if (state->dx[1] > 0) | |
| 427 | 595 | { |
| 428 | oldx++; | |
| 429 | switch (result & 0x300) | |
| 596 | state->oldx[1]++; | |
| 597 | switch (state->result & 0x300) | |
| 430 | 598 | { |
| 431 | case 0x000: result ^= 0x100; break; | |
| 432 | case 0x100: result ^= 0x200; break; | |
| 433 | case 0x200: result ^= 0x200; break; | |
| 434 | case 0x300: result ^= 0x100; break; | |
| 599 | case 0x000: state->result ^= 0x100; break; | |
| 600 | case 0x100: state->result ^= 0x200; break; | |
| 601 | case 0x200: state->result ^= 0x200; break; | |
| 602 | case 0x300: state->result ^= 0x100; break; | |
| 435 | 603 | } |
| 436 | 604 | } |
| 437 | 605 | |
| 438 | if (dy < 0) | |
| 606 | if (state->dy[1] < 0) | |
| 439 | 607 | { |
| 440 | oldy--; | |
| 441 | switch (result & 0xc00) | |
| 608 | state->oldy[1]--; | |
| 609 | switch (state->result & 0xc00) | |
| 442 | 610 | { |
| 443 | case 0x000: result ^= 0x800; break; | |
| 444 | case 0x400: result ^= 0x400; break; | |
| 445 | case 0x800: result ^= 0x400; break; | |
| 446 | case 0xc00: result ^= 0x800; break; | |
| 611 | case 0x000: state->result ^= 0x800; break; | |
| 612 | case 0x400: state->result ^= 0x400; break; | |
| 613 | case 0x800: state->result ^= 0x400; break; | |
| 614 | case 0xc00: state->result ^= 0x800; break; | |
| 447 | 615 | } |
| 448 | 616 | } |
| 449 | if (dy > 0) | |
| 617 | if (state->dy[1] > 0) | |
| 450 | 618 | { |
| 451 | oldy++; | |
| 452 | switch (result & 0xc00) | |
| 619 | state->oldy[1]++; | |
| 620 | switch (state->result & 0xc00) | |
| 453 | 621 | { |
| 454 | case 0x000: result ^= 0x400; break; | |
| 455 | case 0x400: result ^= 0x800; break; | |
| 456 | case 0x800: result ^= 0x800; break; | |
| 457 | case 0xc00: result ^= 0x400; break; | |
| 622 | case 0x000: state->result ^= 0x400; break; | |
| 623 | case 0x400: state->result ^= 0x800; break; | |
| 624 | case 0x800: state->result ^= 0x800; break; | |
| 625 | case 0xc00: state->result ^= 0x400; break; | |
| 458 | 626 | } |
| 459 | 627 | } |
| 460 | 628 | |
| 461 | 629 | // logerror("%08X:read port 7 (X=%02X Y=%02X oldX=%02X oldY=%02X res=%04X)\n", cpu_get_pc(space->cpu), |
| 462 | // newx, newy, oldx, oldy, result); | |
| 463 | lastresult = result; | |
| 464 | return result; | |
| 630 | // state->newx[1], state->newy[1], state->oldx[1], state->oldy[1], state->result); | |
| 631 | state->lastresult = state->result; | |
| 632 | return state->result; | |
| 465 | 633 | } |
| 466 | 634 | |
| 467 | 635 | |
| r8581 | r8582 | |
| 473 | 641 | *************************************/ |
| 474 | 642 | |
| 475 | 643 | static ADDRESS_MAP_START( amerdart_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 476 | AM_RANGE(0x00000000, 0x000fffff) AM_RAM AM_BASE( | |
| 644 | AM_RANGE(0x00000000, 0x000fffff) AM_RAM AM_BASE_MEMBER(coolpool_state,vram_base) | |
| 477 | 645 | AM_RANGE(0x04000000, 0x0400000f) AM_WRITE(amerdart_misc_w) |
| 478 | AM_RANGE(0x05000000, 0x0500000f) AM_READWRITE( | |
| 646 | AM_RANGE(0x05000000, 0x0500000f) AM_READWRITE(amerdart_iop_r, amerdart_iop_w) | |
| 479 | 647 | AM_RANGE(0x06000000, 0x06007fff) AM_RAM_WRITE(nvram_thrash_data_w) AM_BASE_SIZE_GENERIC(nvram) |
| 480 | 648 | AM_RANGE(0xc0000000, 0xc00001ff) AM_READWRITE(tms34010_io_register_r, tms34010_io_register_w) |
| 481 | 649 | AM_RANGE(0xffb00000, 0xffffffff) AM_ROM AM_REGION("user1", 0) |
| r8581 | r8582 | |
| 483 | 651 | |
| 484 | 652 | |
| 485 | 653 | static ADDRESS_MAP_START( coolpool_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 486 | AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_BASE( | |
| 654 | AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_BASE_MEMBER(coolpool_state,vram_base) | |
| 487 | 655 | AM_RANGE(0x01000000, 0x010000ff) AM_READWRITE(tlc34076_lsb_r, tlc34076_lsb_w) // IMSG176P-40 |
| 488 | 656 | AM_RANGE(0x02000000, 0x020000ff) AM_READWRITE(coolpool_iop_r, coolpool_iop_w) |
| 489 | 657 | AM_RANGE(0x03000000, 0x0300000f) AM_WRITE(coolpool_misc_w) |
| r8581 | r8582 | |
| 495 | 663 | |
| 496 | 664 | |
| 497 | 665 | static ADDRESS_MAP_START( nballsht_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 498 | AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_BASE( | |
| 666 | AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_BASE_MEMBER(coolpool_state,vram_base) | |
| 499 | 667 | AM_RANGE(0x02000000, 0x020000ff) AM_READWRITE(coolpool_iop_r, coolpool_iop_w) |
| 500 | 668 | AM_RANGE(0x03000000, 0x0300000f) AM_WRITE(coolpool_misc_w) |
| 501 | 669 | AM_RANGE(0x04000000, 0x040000ff) AM_READWRITE(tlc34076_lsb_r, tlc34076_lsb_w) // IMSG176P-40 |
| r8581 | r8582 | |
| 513 | 681 | * |
| 514 | 682 | *************************************/ |
| 515 | 683 | |
| 516 | static ADDRESS_MAP_START( amerdart_dsp_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 517 | AM_RANGE(0x0000, 0x011f) AM_RAM | |
| 518 | AM_RANGE(0x8000, 0xffff) AM_ROM | |
| 684 | static ADDRESS_MAP_START( amerdart_dsp_pgm_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 685 | AM_RANGE(0x000, 0x0fff) AM_ROM | |
| 519 | 686 | ADDRESS_MAP_END |
| 687 | /* 000 - 0FF TMS32015 Internal Data RAM (256 words) in Data Address Space */ | |
| 520 | 688 | |
| 521 | 689 | |
| 522 | static ADDRESS_MAP_START( dsp_program_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 690 | static ADDRESS_MAP_START( amerdart_dsp_io_map, ADDRESS_SPACE_IO, 16 ) | |
| 691 | AM_RANGE(0x00, 0x01) AM_WRITE(dsp_romaddr_w) | |
| 692 | AM_RANGE(0x02, 0x02) AM_WRITE(amerdart_dsp_answer_w) | |
| 693 | AM_RANGE(0x03, 0x03) AM_DEVWRITE("dac", dsp_dac_w) | |
| 694 | AM_RANGE(0x04, 0x04) AM_READ(dsp_rom_r) | |
| 695 | AM_RANGE(0x05, 0x05) AM_READ_PORT("IN0") | |
| 696 | AM_RANGE(0x06, 0x06) AM_READ(amerdart_trackball_r) | |
| 697 | AM_RANGE(0x07, 0x07) AM_READ(amerdart_dsp_cmd_r) | |
| 698 | AM_RANGE(TMS32010_BIO, TMS32010_BIO) AM_READ(amerdart_dsp_bio_line_r) | |
| 699 | ADDRESS_MAP_END | |
| 700 | ||
| 701 | ||
| 702 | ||
| 703 | static ADDRESS_MAP_START( coolpool_dsp_pgm_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 523 | 704 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 524 | 705 | ADDRESS_MAP_END |
| 525 | 706 | |
| 526 | 707 | |
| 527 | static ADDRESS_MAP_START( dsp_io_map, ADDRESS_SPACE_IO, 16 ) | |
| 708 | static ADDRESS_MAP_START( coolpool_dsp_io_map, ADDRESS_SPACE_IO, 16 ) | |
| 528 | 709 | AM_RANGE(0x00, 0x01) AM_WRITE(dsp_romaddr_w) |
| 529 | 710 | AM_RANGE(0x02, 0x02) AM_READWRITE(dsp_cmd_r, dsp_answer_w) |
| 530 | 711 | AM_RANGE(0x03, 0x03) AM_DEVWRITE("dac", dsp_dac_w) |
| r8581 | r8582 | |
| 545 | 726 | *************************************/ |
| 546 | 727 | |
| 547 | 728 | static INPUT_PORTS_START( amerdart ) |
| 548 | PORT_START("IN1") | |
| 549 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 550 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 551 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 552 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 553 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_HIGH ) | |
| 554 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 555 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 556 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 557 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 729 | PORT_START("IN0") | |
| 730 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 731 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 732 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 733 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 734 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_LOW ) | |
| 735 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 736 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 737 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 738 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 558 | 739 | |
| 559 | 740 | PORT_START("XAXIS1") |
| 560 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(1 | |
| 741 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) | |
| 561 | 742 | |
| 562 | 743 | PORT_START("YAXIS1") |
| 563 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(1 | |
| 744 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) | |
| 564 | 745 | |
| 565 | 746 | PORT_START("XAXIS2") |
| 566 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(1 | |
| 747 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) | |
| 567 | 748 | |
| 568 | 749 | PORT_START("YAXIS2") |
| 569 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(1 | |
| 750 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(15) | |
| 570 | 751 | INPUT_PORTS_END |
| 571 | 752 | |
| 572 | 753 | |
| 573 | static INPUT_PORTS_START( | |
| 754 | static INPUT_PORTS_START( coolpool | |
| 574 | 755 | PORT_START("IN0") |
| 575 | 756 | PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 576 | PORT_BIT( 0x0300, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 577 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 578 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 757 | PORT_BIT( 0x0f00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 579 | 758 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 580 | 759 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 581 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 582 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 760 | PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 583 | 761 | |
| 584 | 762 | PORT_START("IN1") |
| 585 | 763 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r8581 | r8582 | |
| 589 | 767 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_LOW ) |
| 590 | 768 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 591 | 769 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 592 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 593 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 594 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 595 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 596 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 597 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 598 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 599 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 600 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 770 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 771 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_SPECIAL ) | |
| 772 | ||
| 773 | PORT_START("XAXIS") | |
| 774 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) | |
| 775 | ||
| 776 | PORT_START("YAXIS") | |
| 777 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE | |
| 601 | 778 | INPUT_PORTS_END |
| 602 | 779 | |
| 603 | 780 | |
| 604 | static INPUT_PORTS_START( | |
| 781 | static INPUT_PORTS_START( 9bal | |
| 605 | 782 | PORT_START("IN0") |
| 606 | 783 | PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 607 | PORT_BIT( 0x0f00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 784 | PORT_BIT( 0x0300, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 785 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) | |
| 786 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) | |
| 608 | 787 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 609 | 788 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 610 | PORT_BIT( 0xc000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 789 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) | |
| 790 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) | |
| 611 | 791 | |
| 612 | 792 | PORT_START("IN1") |
| 613 | 793 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| r8581 | r8582 | |
| 617 | 797 | PORT_SERVICE_NO_TOGGLE( 0x0010, IP_ACTIVE_LOW ) |
| 618 | 798 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 619 | 799 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 620 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 621 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_SPECIAL ) | |
| 622 | ||
| 623 | PORT_START("XAXIS") | |
| 624 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) | |
| 625 | ||
| 626 | PORT_START("YAXIS") | |
| 627 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE | |
| 800 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 801 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 802 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 803 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 804 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) | |
| 805 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 806 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 807 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 808 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 628 | 809 | INPUT_PORTS_END |
| 629 | 810 | |
| 630 | 811 | |
| r8581 | r8582 | |
| 639 | 820 | { |
| 640 | 821 | FALSE, /* halt on reset */ |
| 641 | 822 | "screen", /* the screen operated on */ |
| 642 | 40 | |
| 823 | XTAL_40MHz | |
| 643 | 824 | 2, /* pixels per clock */ |
| 644 | 825 | amerdart_scanline, /* scanline callback */ |
| 645 | 826 | NULL, /* generate interrupt */ |
| r8581 | r8582 | |
| 652 | 833 | { |
| 653 | 834 | FALSE, /* halt on reset */ |
| 654 | 835 | "screen", /* the screen operated on */ |
| 655 | 40 | |
| 836 | XTAL_40MHz | |
| 656 | 837 | 1, /* pixels per clock */ |
| 657 | 838 | coolpool_scanline, /* scanline callback */ |
| 658 | 839 | NULL, /* generate interrupt */ |
| r8581 | r8582 | |
| 670 | 851 | |
| 671 | 852 | static MACHINE_DRIVER_START( amerdart ) |
| 672 | 853 | |
| 854 | MDRV_DRIVER_DATA( coolpool_state ) | |
| 855 | ||
| 673 | 856 | /* basic machine hardware */ |
| 674 | MDRV_CPU_ADD("maincpu", TMS34010, 40 | |
| 857 | MDRV_CPU_ADD("maincpu", TMS34010, XTAL_40MHz | |
| 675 | 858 | MDRV_CPU_CONFIG(tms_config_amerdart) |
| 676 | 859 | MDRV_CPU_PROGRAM_MAP(amerdart_map) |
| 677 | 860 | |
| 678 | MDRV_CPU_ADD("dsp", TMS32010, 15000000/2) | |
| 679 | MDRV_DEVICE_DISABLE() | |
| 680 | MDRV_CPU_PROGRAM_MAP(amerdart_dsp_map) | |
| 861 | MDRV_CPU_ADD("dsp", TMS32015, XTAL_40MHz/2) | |
| 862 | MDRV_CPU_PROGRAM_MAP(amerdart_dsp_pgm_map) | |
| 863 | /* Data Map is internal to the CPU */ | |
| 864 | MDRV_CPU_IO_MAP(amerdart_dsp_io_map) | |
| 865 | MDRV_CPU_PERIODIC_INT(irq0_line_pulse, 14400) | |
| 681 | 866 | |
| 682 | 867 | MDRV_MACHINE_RESET(amerdart) |
| 683 | 868 | MDRV_NVRAM_HANDLER(generic_0fill) |
| r8581 | r8582 | |
| 689 | 874 | |
| 690 | 875 | MDRV_SCREEN_ADD("screen", RASTER) |
| 691 | 876 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 692 | MDRV_SCREEN_RAW_PARAMS(40 | |
| 877 | MDRV_SCREEN_RAW_PARAMS(XTAL_40MHz | |
| 693 | 878 | |
| 694 | 879 | /* sound hardware */ |
| 695 | 880 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r8581 | r8582 | |
| 701 | 886 | |
| 702 | 887 | static MACHINE_DRIVER_START( coolpool ) |
| 703 | 888 | |
| 889 | MDRV_DRIVER_DATA( coolpool_state ) | |
| 890 | ||
| 704 | 891 | /* basic machine hardware */ |
| 705 | MDRV_CPU_ADD("maincpu", TMS34010, 40 | |
| 892 | MDRV_CPU_ADD("maincpu", TMS34010, XTAL_40MHz | |
| 706 | 893 | MDRV_CPU_CONFIG(tms_config_coolpool) |
| 707 | 894 | MDRV_CPU_PROGRAM_MAP(coolpool_map) |
| 708 | 895 | |
| 709 | MDRV_CPU_ADD("dsp", TMS32026,40000000) | |
| 710 | MDRV_CPU_PROGRAM_MAP(dsp_program_map) | |
| 711 | MDRV_CPU_IO_MAP(dsp_io_map) | |
| 896 | MDRV_CPU_ADD("dsp", TMS32026,XTAL_40MHz) | |
| 897 | MDRV_CPU_PROGRAM_MAP(coolpool_dsp_pgm_map) | |
| 898 | MDRV_CPU_IO_MAP(coolpool_dsp_io_map) | |
| 712 | 899 | |
| 713 | 900 | MDRV_MACHINE_RESET(coolpool) |
| 714 | 901 | MDRV_NVRAM_HANDLER(generic_0fill) |
| r8581 | r8582 | |
| 720 | 907 | |
| 721 | 908 | MDRV_SCREEN_ADD("screen", RASTER) |
| 722 | 909 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 723 | MDRV_SCREEN_RAW_PARAMS(40 | |
| 910 | MDRV_SCREEN_RAW_PARAMS(XTAL_40MHz | |
| 724 | 911 | |
| 725 | 912 | /* sound hardware */ |
| 726 | 913 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r8581 | r8582 | |
| 758 | 945 | ROM_LOAD16_BYTE( "u57", 0x080001, 0x10000, CRC(f620f935) SHA1(bf891fce1f04f3ad5b8b72d43d041ceacb0b65bc) ) |
| 759 | 946 | ROM_LOAD16_BYTE( "u58", 0x080000, 0x10000, CRC(f1b3d7c4) SHA1(7b897230d110be7a5eb05eda927d00561ebb9ce3) ) |
| 760 | 947 | |
| 761 | ROM_REGION( 0x18000, "dsp", 0 ) /* 32015 code (missing) */ | |
| 762 | ROM_LOAD16_BYTE( "dspl", 0x00000, 0x08000, NO_DUMP ) | |
| 763 | ROM_LOAD16_BYTE( "dsph", 0x00001, 0x08000, NO_DUMP ) | |
| 948 | ROM_REGION( 0x10000, "dsp", 0 ) /* TMS32015 code */ | |
| 949 | ROM_LOAD16_WORD( "tms320e15.bin", 0x0000, 0x2000, CRC(375DB4EA) SHA1(11689C89CE62F44F43CB8973B4EC6E6B0024ED14) ) | |
| 764 | 950 | |
| 765 | ROM_REGION( 0x100000, "user2", 0 ) /* 32015 | |
| 951 | ROM_REGION( 0x100000, "user2", 0 ) /* TMS32015 | |
| 766 | 952 | ROM_LOAD16_WORD( "u1", 0x000000, 0x10000, CRC(3f459482) SHA1(d9d489efd0d9217fceb3bf1a3b37a78d6823b4d9) ) |
| 767 | ROM_LOAD16_WORD( "u2", 0x010000, 0x10000, CRC(a587fffd) SHA1(f33f511d1bf1d6eb3c42535593a9718571174c4b) ) | |
| 768 | ROM_LOAD16_WORD( "u3", 0x020000, 0x10000, CRC(984d343a) SHA1(ee214830de4cb22d2d8e9d3ca335eff05af4abb6) ) | |
| 769 | ROM_LOAD16_WORD( "u4", 0x030000, 0x10000, CRC(c4765ff6) SHA1(7dca61d32300047ca1c089057e617553d60a0995) ) | |
| 770 | ROM_LOAD16_WORD( "u5", 0x040000, 0x10000, CRC(3b63b890) SHA1(a1223cb8884d5365af7d3f607657efff877f8845) ) | |
| 771 | ROM_LOAD16_WORD( "u6", 0x050000, 0x10000, CRC(5cdb9aa9) SHA1(fae5d2c7f649bcba8068c8bc8266ee411258535e) ) | |
| 772 | ROM_LOAD16_WORD( "u7", 0x060000, 0x10000, CRC(147083a2) SHA1(c04c38145ab159bd519e6325477a3f7d0eebbda1) ) | |
| 773 | ROM_LOAD16_WORD( "u8", 0x070000, 0x10000, CRC(975b368c) SHA1(1d637ce8c5d60833bb25aab2610e1a856720235e) ) | |
| 774 | ROM_LOAD16_WORD( "u16", 0x080000, 0x10000, CRC(7437e8bf) SHA1(754be4822cd586590f09e706d7eb48e5ba8c8817) ) | |
| 775 | ROM_LOAD16_WORD( "u17", 0x090000, 0x10000, CRC(e32bdd0f) SHA1(0662abbe84f0bad2631566b506ef016fcd79b9ee) ) | |
| 776 | ROM_LOAD16_WORD( "u18", 0x0a0000, 0x10000, CRC(de3b4d7c) SHA1(68e7ffe2d84aef7c24d1787c4f9b6950c0107741) ) | |
| 777 | ROM_LOAD16_WORD( "u19", 0x0b0000, 0x10000, CRC(7109247c) SHA1(201809ec6599b30c26823bde6851b6eaa2589710) ) | |
| 778 | ROM_LOAD16_WORD( "u20", 0x0c0000, 0x10000, CRC(038b7d2d) SHA1(80bab18ca36d2bc101da7f3f6e1c82d8a802c14c) ) | |
| 779 | ROM_LOAD16_WORD( "u21", 0x0d0000, 0x10000, CRC(9b0b8978) SHA1(b31d0451ecd7085c191d20b2b41d0e8fe551996c) ) | |
| 780 | ROM_LOAD16_WORD( "u22", 0x0e0000, 0x10000, CRC(4b92588a) SHA1(eea262c1a122015364a0046ff2bc7816f5f6821d) ) | |
| 953 | ROM_LOAD16_WORD( "u16", 0x010000, 0x10000, CRC(7437e8bf) SHA1(754be4822cd586590f09e706d7eb48e5ba8c8817) ) | |
| 954 | ROM_LOAD16_WORD( "u2", 0x020000, 0x10000, CRC(a587fffd) SHA1(f33f511d1bf1d6eb3c42535593a9718571174c4b) ) | |
| 955 | ROM_LOAD16_WORD( "u17", 0x030000, 0x10000, CRC(e32bdd0f) SHA1(0662abbe84f0bad2631566b506ef016fcd79b9ee) ) | |
| 956 | ROM_LOAD16_WORD( "u3", 0x040000, 0x10000, CRC(984d343a) SHA1(ee214830de4cb22d2d8e9d3ca335eff05af4abb6) ) | |
| 957 | ROM_LOAD16_WORD( "u18", 0x050000, 0x10000, CRC(de3b4d7c) SHA1(68e7ffe2d84aef7c24d1787c4f9b6950c0107741) ) | |
| 958 | ROM_LOAD16_WORD( "u4", 0x060000, 0x10000, CRC(c4765ff6) SHA1(7dca61d32300047ca1c089057e617553d60a0995) ) | |
| 959 | ROM_LOAD16_WORD( "u19", 0x070000, 0x10000, CRC(7109247c) SHA1(201809ec6599b30c26823bde6851b6eaa2589710) ) | |
| 960 | ROM_LOAD16_WORD( "u5", 0x080000, 0x10000, CRC(3b63b890) SHA1(a1223cb8884d5365af7d3f607657efff877f8845) ) | |
| 961 | ROM_LOAD16_WORD( "u20", 0x090000, 0x10000, CRC(038b7d2d) SHA1(80bab18ca36d2bc101da7f3f6e1c82d8a802c14c) ) | |
| 962 | ROM_LOAD16_WORD( "u6", 0x0a0000, 0x10000, CRC(5cdb9aa9) SHA1(fae5d2c7f649bcba8068c8bc8266ee411258535e) ) | |
| 963 | ROM_LOAD16_WORD( "u21", 0x0b0000, 0x10000, CRC(9b0b8978) SHA1(b31d0451ecd7085c191d20b2b41d0e8fe551996c) ) | |
| 964 | ROM_LOAD16_WORD( "u7", 0x0c0000, 0x10000, CRC(147083a2) SHA1(c04c38145ab159bd519e6325477a3f7d0eebbda1) ) | |
| 965 | ROM_LOAD16_WORD( "u22", 0x0d0000, 0x10000, CRC(4b92588a) SHA1(eea262c1a122015364a0046ff2bc7816f5f6821d) ) | |
| 966 | ROM_LOAD16_WORD( "u8", 0x0e0000, 0x10000, CRC(975b368c) SHA1(1d637ce8c5d60833bb25aab2610e1a856720235e) ) | |
| 781 | 967 | ROM_LOAD16_WORD( "u23", 0x0f0000, 0x10000, CRC(d7c2b13b) SHA1(3561e08011f649e4d0c47792745b2a014167e816) ) |
| 782 | 968 | ROM_END |
| 783 | 969 | |
| r8581 | r8582 | |
| 794 | 980 | ROM_LOAD16_BYTE( "u57.bin", 0x080001, 0x10000, CRC(8a70f849) SHA1(dfd4cf90de2ab8cbeff458f0fd20110c1ed009e9) ) |
| 795 | 981 | ROM_LOAD16_BYTE( "u58.bin", 0x080000, 0x10000, CRC(8bb81975) SHA1(b7666572ab543991c7deaa0ebefb8b4526a7e386) ) |
| 796 | 982 | |
| 797 | ROM_REGION( 0x18000, "dsp", 0 ) /* 32015 code (missing) */ | |
| 798 | ROM_LOAD16_BYTE( "dspl", 0x00000, 0x08000, NO_DUMP ) | |
| 799 | ROM_LOAD16_BYTE( "dsph", 0x00001, 0x08000, NO_DUMP ) | |
| 983 | ROM_REGION( 0x10000, "dsp", 0 ) /* TMS32015 code */ | |
| 984 | ROM_LOAD16_WORD( "tms320e15.bin", 0x0000, 0x2000, CRC(375DB4EA) SHA1(11689C89CE62F44F43CB8973B4EC6E6B0024ED14) ) | |
| 800 | 985 | |
| 801 | ROM_REGION( 0x100000, "user2", 0 ) /* 32015 data? (incl. samples?) */ | |
| 802 | ROM_LOAD16_WORD( "u1.bin", 0x000000, 0x10000, CRC(e2bb7f54) SHA1(39eeb61a852b93331f445cc1c993727e52959660) ) | |
| 803 | ROM_LOAD16_WORD( "u2", 0x010000, 0x10000, CRC(a587fffd) SHA1(f33f511d1bf1d6eb3c42535593a9718571174c4b) ) | |
| 804 | ROM_LOAD16_WORD( "u3", 0x020000, 0x10000, CRC(984d343a) SHA1(ee214830de4cb22d2d8e9d3ca335eff05af4abb6) ) | |
| 805 | ROM_LOAD16_WORD( "u4", 0x030000, 0x10000, CRC(c4765ff6) SHA1(7dca61d32300047ca1c089057e617553d60a0995) ) | |
| 806 | ROM_LOAD16_WORD( "u5", 0x040000, 0x10000, CRC(3b63b890) SHA1(a1223cb8884d5365af7d3f607657efff877f8845) ) | |
| 807 | ROM_LOAD16_WORD( "u6", 0x050000, 0x10000, CRC(5cdb9aa9) SHA1(fae5d2c7f649bcba8068c8bc8266ee411258535e) ) | |
| 808 | ROM_LOAD16_WORD( "u7", 0x060000, 0x10000, CRC(147083a2) SHA1(c04c38145ab159bd519e6325477a3f7d0eebbda1) ) | |
| 809 | ROM_LOAD16_WORD( "u8", 0x070000, 0x10000, CRC(975b368c) SHA1(1d637ce8c5d60833bb25aab2610e1a856720235e) ) | |
| 810 | ROM_LOAD16_WORD( "u16", 0x080000, 0x10000, CRC(7437e8bf) SHA1(754be4822cd586590f09e706d7eb48e5ba8c8817) ) | |
| 811 | ROM_LOAD16_WORD( "u17", 0x090000, 0x10000, CRC(e32bdd0f) SHA1(0662abbe84f0bad2631566b506ef016fcd79b9ee) ) | |
| 812 | ROM_LOAD16_WORD( "u18", 0x0a0000, 0x10000, CRC(de3b4d7c) SHA1(68e7ffe2d84aef7c24d1787c4f9b6950c0107741) ) | |
| 813 | ROM_LOAD16_WORD( "u19", 0x0b0000, 0x10000, CRC(7109247c) SHA1(201809ec6599b30c26823bde6851b6eaa2589710) ) | |
| 814 | ROM_LOAD16_WORD( "u20", 0x0c0000, 0x10000, CRC(038b7d2d) SHA1(80bab18ca36d2bc101da7f3f6e1c82d8a802c14c) ) | |
| 815 | ROM_LOAD16_WORD( "u21", 0x0d0000, 0x10000, CRC(9b0b8978) SHA1(b31d0451ecd7085c191d20b2b41d0e8fe551996c) ) | |
| 816 | ROM_LOAD16_WORD( "u22", 0x0e0000, 0x10000, CRC(4b92588a) SHA1(eea262c1a122015364a0046ff2bc7816f5f6821d) ) | |
| 986 | ROM_REGION( 0x100000, "user2", 0 ) /* TMS32015 audio sample data */ | |
| 987 | ROM_LOAD16_WORD( "u1.bin", 0x000000, 0x10000, CRC(e2bb7f54) SHA1(39eeb61a852b93331f445cc1c993727e52959660) ) | |
| 988 | ROM_LOAD16_WORD( "u16", 0x010000, 0x10000, CRC(7437e8bf) SHA1(754be4822cd586590f09e706d7eb48e5ba8c8817) ) | |
| 989 | ROM_LOAD16_WORD( "u2", 0x020000, 0x10000, CRC(a587fffd) SHA1(f33f511d1bf1d6eb3c42535593a9718571174c4b) ) | |
| 990 | ROM_LOAD16_WORD( "u17", 0x030000, 0x10000, CRC(e32bdd0f) SHA1(0662abbe84f0bad2631566b506ef016fcd79b9ee) ) | |
| 991 | ROM_LOAD16_WORD( "u3", 0x040000, 0x10000, CRC(984d343a) SHA1(ee214830de4cb22d2d8e9d3ca335eff05af4abb6) ) | |
| 992 | ROM_LOAD16_WORD( "u18", 0x050000, 0x10000, CRC(de3b4d7c) SHA1(68e7ffe2d84aef7c24d1787c4f9b6950c0107741) ) | |
| 993 | ROM_LOAD16_WORD( "u4", 0x060000, 0x10000, CRC(c4765ff6) SHA1(7dca61d32300047ca1c089057e617553d60a0995) ) | |
| 994 | ROM_LOAD16_WORD( "u19", 0x070000, 0x10000, CRC(7109247c) SHA1(201809ec6599b30c26823bde6851b6eaa2589710) ) | |
| 995 | ROM_LOAD16_WORD( "u5", 0x080000, 0x10000, CRC(3b63b890) SHA1(a1223cb8884d5365af7d3f607657efff877f8845) ) | |
| 996 | ROM_LOAD16_WORD( "u20", 0x090000, 0x10000, CRC(038b7d2d) SHA1(80bab18ca36d2bc101da7f3f6e1c82d8a802c14c) ) | |
| 997 | ROM_LOAD16_WORD( "u6", 0x0a0000, 0x10000, CRC(5cdb9aa9) SHA1(fae5d2c7f649bcba8068c8bc8266ee411258535e) ) | |
| 998 | ROM_LOAD16_WORD( "u21", 0x0b0000, 0x10000, CRC(9b0b8978) SHA1(b31d0451ecd7085c191d20b2b41d0e8fe551996c) ) | |
| 999 | ROM_LOAD16_WORD( "u7", 0x0c0000, 0x10000, CRC(147083a2) SHA1(c04c38145ab159bd519e6325477a3f7d0eebbda1) ) | |
| 1000 | ROM_LOAD16_WORD( "u22", 0x0d0000, 0x10000, CRC(4b92588a) SHA1(eea262c1a122015364a0046ff2bc7816f5f6821d) ) | |
| 1001 | ROM_LOAD16_WORD( "u8", 0x0e0000, 0x10000, CRC(975b368c) SHA1(1d637ce8c5d60833bb25aab2610e1a856720235e) ) | |
| 817 | 1002 | ROM_LOAD16_WORD( "u23.bin", 0x0f0000, 0x10000, CRC(7c1e6f2e) SHA1(21ae530e4bd7c0c9f1a84f01f136c71952c8adc4) ) |
| 818 | 1003 | ROM_END |
| 819 | 1004 | |
| r8581 | r8582 | |
| 944 | 1129 | * |
| 945 | 1130 | *************************************/ |
| 946 | 1131 | |
| 1132 | static void register_state_save(running_machine *machine) | |
| 1133 | { | |
| 1134 | coolpool_state *state = (coolpool_state *)machine->driver_data; | |
| 1135 | ||
| 1136 | state_save_register_global_array(machine, state->oldx); | |
| 1137 | state_save_register_global_array(machine, state->oldy); | |
| 1138 | state_save_register_global(machine, state->result); | |
| 1139 | state_save_register_global(machine, state->lastresult); | |
| 1140 | ||
| 1141 | state_save_register_global(machine, state->cmd_pending); | |
| 1142 | state_save_register_global(machine, state->iop_cmd); | |
| 1143 | state_save_register_global(machine, state->iop_answer); | |
| 1144 | state_save_register_global(machine, state->iop_romaddr); | |
| 1145 | } | |
| 1146 | ||
| 1147 | ||
| 1148 | ||
| 1149 | static DRIVER_INIT( amerdart ) | |
| 1150 | { | |
| 1151 | coolpool_state *state = (coolpool_state *)machine->driver_data; | |
| 1152 | ||
| 1153 | state->lastresult = 0xffff; | |
| 1154 | ||
| 1155 | register_state_save(machine); | |
| 1156 | } | |
| 1157 | ||
| 947 | 1158 | static DRIVER_INIT( coolpool ) |
| 948 | 1159 | { |
| 949 | 1160 | memory_install_read16_handler(cputag_get_address_space(machine, "dsp", ADDRESS_SPACE_IO), 0x07, 0x07, 0, 0, coolpool_input_r); |
| 1161 | ||
| 1162 | register_state_save(machine); | |
| 950 | 1163 | } |
| 951 | 1164 | |
| 952 | 1165 | |
| r8581 | r8582 | |
| 989 | 1202 | rom[a] = rom[a+1]; |
| 990 | 1203 | rom[a+1] = tmp; |
| 991 | 1204 | } |
| 1205 | ||
| 1206 | register_state_save(machine); | |
| 992 | 1207 | } |
| 993 | 1208 | |
| 994 | 1209 | |
| r8581 | r8582 | |
| 999 | 1214 | * |
| 1000 | 1215 | *************************************/ |
| 1001 | 1216 | |
| 1002 | GAME( 1989, amerdart, 0, amerdart, amerdart, 0, ROT0, "Ameri", "AmeriDarts (set 1)", GAME_NO_SOUND ) | |
| 1003 | GAME( 1989, amerdart2,amerdart, amerdart, amerdart, 0, ROT0, "Ameri", "AmeriDarts (set 2)", GAME_NO_SOUND ) | |
| 1217 | GAME( 1989, amerdart, 0, amerdart, amerdart, amerdart, ROT0, "Ameri", "AmeriDarts (set 1)", GAME_SUPPORTS_SAVE ) | |
| 1218 | GAME( 1989, amerdart2,amerdart, amerdart, amerdart, amerdart, ROT0, "Ameri", "AmeriDarts (set 2)", GAME_SUPPORTS_SAVE ) | |
| 1004 | 1219 | GAME( 1992, coolpool, 0, coolpool, coolpool, coolpool, ROT0, "Catalina", "Cool Pool", 0 ) |
| 1005 | 1220 | GAME( 1993, 9ballsht, 0, 9ballsht, 9ballsht, 9ballsht, ROT0, "E-Scape EnterMedia (Bundra license)", "9-Ball Shootout (set 1)", 0 ) |
| 1006 | 1221 | GAME( 1993, 9ballsht2,9ballsht, 9ballsht, 9ballsht, 9ballsht, ROT0, "E-Scape EnterMedia (Bundra license)", "9-Ball Shootout (set 2)", 0 ) |
| r8581 | r8582 | |
|---|---|---|
| 230 | 230 | { |
| 231 | 231 | drmicro_state *state = (drmicro_state *)machine->driver_data; |
| 232 | 232 | |
| 233 | state->msm = | |
| 233 | state->msm = m | |
| 234 | 234 | |
| 235 | 235 | state_save_register_global(machine, state->nmi_enable); |
| 236 | 236 | state_save_register_global(machine, state->pcm_adr); |
| r8581 | r8582 | |
|---|---|---|
| 363 | 363 | memory_configure_bank(machine, "bank1", 0, 1, memory_region(machine, "maincpu") + 0x8000, 0); |
| 364 | 364 | memory_set_bank(machine, "bank1", 0); |
| 365 | 365 | |
| 366 | z80_set_cycle_tables( | |
| 366 | z80_set_cycle_tables(m | |
| 367 | 367 | |
| 368 | 368 | mute_xor = 0x00; |
| 369 | 369 | |
| r8581 | r8582 | |
| 410 | 410 | |
| 411 | 411 | static WRITE8_HANDLER( videomode_w ) |
| 412 | 412 | { |
| 413 | running_device *i8751 = | |
| 413 | running_device *i8751 = | |
| 414 | 414 | |
| 415 | 415 | /* bit 6 is connected to the 8751 IRQ */ |
| 416 | 416 | if (i8751 != NULL) |
| r8581 | r8582 | |
| 608 | 608 | enough, the MCU will fail; on shtngmst this happens after 3 |
| 609 | 609 | VBLANKs without a tick */ |
| 610 | 610 | |
| 611 | running_device *mcu = | |
| 611 | running_device *mcu = | |
| 612 | 612 | cpu_set_input_line(mcu, MCS51_T0_LINE, ASSERT_LINE); |
| 613 | 613 | cpu_set_input_line(mcu, MCS51_T0_LINE, CLEAR_LINE); |
| 614 | 614 | } |
| r8581 | r8582 | |
|---|---|---|
| 122 | 122 | niyanpai_soundbank_w(space->machine, data & 0x03); |
| 123 | 123 | break; |
| 124 | 124 | case 1: /* PB_0 */ |
| 125 | DAC_WRITE( | |
| 125 | DAC_WRITE( | |
| 126 | 126 | break; |
| 127 | 127 | case 2: /* PC_0 */ |
| 128 | DAC_WRITE( | |
| 128 | DAC_WRITE( | |
| 129 | 129 | break; |
| 130 | 130 | case 3: /* PD_0 */ |
| 131 | 131 | break; |
| r8581 | r8582 | |
|---|---|---|
| 698 | 698 | |
| 699 | 699 | if ( old != volume_override ) |
| 700 | 700 | { |
| 701 | running_device *ym = devtag_get_device(space->machine, "ymsnd"); | |
| 702 | running_device *upd = devtag_get_device(space->machine, "upd"); | |
| 701 | running_device *ym = space->machine->device("ymsnd"); | |
| 702 | running_device *upd = space->machine->device("upd"); | |
| 703 | 703 | float percent = volume_override? 1.0f : (32-global_volume)/32.0f; |
| 704 | 704 | |
| 705 | 705 | sound_set_output_gain(ym, 0, percent); |
| r8581 | r8582 | |
| 776 | 776 | } |
| 777 | 777 | } |
| 778 | 778 | |
| 779 | if ( !upd7759_busy_r( | |
| 779 | if ( !upd7759_busy_r( | |
| 780 | 780 | |
| 781 | 781 | return result; |
| 782 | 782 | } |
| r8581 | r8582 | |
| 812 | 812 | } |
| 813 | 813 | |
| 814 | 814 | { |
| 815 | running_device *ym = devtag_get_device(space->machine, "ymsnd"); | |
| 816 | running_device *upd = devtag_get_device(space->machine, "upd"); | |
| 815 | running_device *ym = space->machine->device("ymsnd"); | |
| 816 | running_device *upd = space->machine->device("upd"); | |
| 817 | 817 | float percent = volume_override ? 1.0f : (32-global_volume)/32.0f; |
| 818 | 818 | |
| 819 | 819 | sound_set_output_gain(ym, 0, percent); |
| r8581 | r8582 | |
| 2666 | 2666 | |
| 2667 | 2667 | int result = optic_pattern; |
| 2668 | 2668 | |
| 2669 | if ( !upd7759_busy_r( | |
| 2669 | if ( !upd7759_busy_r( | |
| 2670 | 2670 | |
| 2671 | 2671 | return result; |
| 2672 | 2672 | } |
| r8581 | r8582 | |
| 2680 | 2680 | |
| 2681 | 2681 | int result = optic_pattern; |
| 2682 | 2682 | |
| 2683 | if ( !upd7759_busy_r( | |
| 2683 | if ( !upd7759_busy_r( | |
| 2684 | 2684 | |
| 2685 | 2685 | if ( BFM_dm01_busy() ) result |= 0x40; |
| 2686 | 2686 |
| r8581 | r8582 | |
|---|---|---|
| 63 | 63 | R,G,B Brightness: |
| 64 | 64 | The Electro Design games have this set darker than 0xff for sprites and bg's anyway. |
| 65 | 65 | Galpanis uses it to dim the bg's in attract on the stats screens for the characters (bg's hidden by white pen atm). |
| 66 | Lots of games use them to fade, haven't seen r,g,b used independ | |
| 66 | Lots of games use them to fade, haven't seen r,g,b used independently yet but you never know. | |
| 67 | 67 | |
| 68 | 68 | etc.etc. |
| 69 | 69 | |
| r8581 | r8582 | |
| 995 | 995 | static void init_skns(running_machine *machine) |
| 996 | 996 | { |
| 997 | 997 | // init DRC to fastest options |
| 998 | sh2drc_set_options( | |
| 998 | sh2drc_set_options(m | |
| 999 | 999 | |
| 1000 | sh2drc_add_pcflush( | |
| 1000 | sh2drc_add_pcflush(m | |
| 1001 | 1001 | memory_install_read32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x6000028, 0x600002b, 0, 0, bios_skip_r ); |
| 1002 | 1002 | } |
| 1003 | 1003 | |
| 1004 | 1004 | static void set_drc_pcflush(running_machine *machine, UINT32 addr) |
| 1005 | 1005 | { |
| 1006 | sh2drc_add_pcflush( | |
| 1006 | sh2drc_add_pcflush(m | |
| 1007 | 1007 | } |
| 1008 | 1008 | |
| 1009 | 1009 | static DRIVER_INIT( galpani4 ) { skns_sprite_kludge(-5,-1); init_skns(machine); } |
| r8581 | r8582 | |
|---|---|---|
| 265 | 265 | static VIDEO_UPDATE( tmmjprd ) |
| 266 | 266 | { |
| 267 | 267 | UINT8* gfxroms = memory_region(screen->machine,"gfx2"); |
| 268 | running_device *left_screen = devtag_get_device(screen->machine, "lscreen"); | |
| 269 | running_device *right_screen = devtag_get_device(screen->machine, "rscreen"); | |
| 268 | running_device *left_screen = screen->machine->device("lscreen"); | |
| 269 | running_device *right_screen = screen->machine->device("rscreen"); | |
| 270 | 270 | |
| 271 | 271 | bitmap_fill(bitmap,cliprect,get_black_pen(screen->machine)); |
| 272 | 272 |
| r8581 | r8582 | |
|---|---|---|
| 456 | 456 | dynax_state *state = (dynax_state *)machine->driver_data; |
| 457 | 457 | /* start with the MSM5205 reset */ |
| 458 | 458 | state->resetkludge = 0; |
| 459 | msm5205_reset_w( | |
| 459 | msm5205_reset_w(m | |
| 460 | 460 | } |
| 461 | 461 | |
| 462 | 462 | static WRITE8_HANDLER( yarunara_layer_half_w ) |
| r8581 | r8582 | |
| 4204 | 4204 | { |
| 4205 | 4205 | dynax_state *state = (dynax_state *)machine->driver_data; |
| 4206 | 4206 | |
| 4207 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 4208 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 4209 | state->rtc = devtag_get_device(machine, "rtc"); | |
| 4210 | state->ymsnd = devtag_get_device(machine, "ymsnd"); | |
| 4207 | state->maincpu = machine->device("maincpu"); | |
| 4208 | state->soundcpu = machine->device("soundcpu"); | |
| 4209 | state->rtc = machine->device("rtc"); | |
| 4210 | state->ymsnd = machine->device("ymsnd"); | |
| 4211 | 4211 | |
| 4212 | 4212 | state_save_register_global(machine, state->sound_irq); |
| 4213 | 4213 | state_save_register_global(machine, state->vblank_irq); |
| r8581 | r8582 | |
| 4244 | 4244 | { |
| 4245 | 4245 | dynax_state *state = (dynax_state *)machine->driver_data; |
| 4246 | 4246 | |
| 4247 | if ( | |
| 4247 | if (m | |
| 4248 | 4248 | MACHINE_RESET_CALL(adpcm); |
| 4249 | 4249 | |
| 4250 | 4250 | state->sound_irq = 0; |
| r8581 | r8582 | |
| 4701 | 4701 | memory_configure_bank(machine, "bank1", 0, 0x10, &MAIN[0x8000], 0x8000); |
| 4702 | 4702 | memory_configure_bank(machine, "bank2", 0, 12, &SOUND[0x8000], 0x8000); |
| 4703 | 4703 | |
| 4704 | state->top_scr = devtag_get_device(machine, "top"); | |
| 4705 | state->bot_scr = devtag_get_device(machine, "bottom"); | |
| 4704 | state->top_scr = machine->device("top"); | |
| 4705 | state->bot_scr = machine->device("bottom"); | |
| 4706 | 4706 | |
| 4707 | 4707 | MACHINE_START_CALL(dynax); |
| 4708 | 4708 | } |
| r8581 | r8582 | |
|---|---|---|
| 313 | 313 | // 02 hopper motor on (active low)? |
| 314 | 314 | static WRITE8_HANDLER( c8_w ) |
| 315 | 315 | { |
| 316 | ticket_dispenser_w( | |
| 316 | ticket_dispenser_w( | |
| 317 | 317 | |
| 318 | 318 | c8 = data; |
| 319 | 319 | show_outputs(); |
| r8581 | r8582 | |
|---|---|---|
| 237 | 237 | |
| 238 | 238 | volfied_cchip_init(machine); |
| 239 | 239 | |
| 240 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 241 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 242 | state->pc090oj = devtag_get_device(machine, "pc090oj"); | |
| 240 | state->maincpu = machine->device("maincpu"); | |
| 241 | state->audiocpu = machine->device("audiocpu"); | |
| 242 | state->pc090oj = machine->device("pc090oj"); | |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | static MACHINE_RESET( volfied ) |
| r8581 | r8582 | |
|---|---|---|
| 287 | 287 | { |
| 288 | 288 | dribling_state *state = (dribling_state *)machine->driver_data; |
| 289 | 289 | |
| 290 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 291 | state->ppi_0 = devtag_get_device(machine, "ppi8255_0"); | |
| 292 | state->ppi_1 = devtag_get_device(machine, "ppi8255_1"); | |
| 290 | state->maincpu = machine->device("maincpu"); | |
| 291 | state->ppi_0 = machine->device("ppi8255_0"); | |
| 292 | state->ppi_1 = machine->device("ppi8255_1"); | |
| 293 | 293 | |
| 294 | 294 | state_save_register_global(machine, state->abca); |
| 295 | 295 | state_save_register_global(machine, state->di); |
| r8581 | r8582 | |
|---|---|---|
| 698 | 698 | if (length==0x00) length = 0xffff; |
| 699 | 699 | |
| 700 | 700 | /* This is a hack until real DMA timings are implemented */ |
| 701 | cpu_spinuntil_time( | |
| 701 | cpu_spinuntil_time(m | |
| 702 | 702 | |
| 703 | 703 | for (count = 0;count<(length>>1);count++) |
| 704 | 704 | { |
| r8581 | r8582 | |
| 983 | 983 | case 0x12: |
| 984 | 984 | case 0x14: |
| 985 | 985 | case 0x16: |
| 986 | if (ACCESSING_BITS_0_7) sn76496_w(devtag_get_device(space->machine, "snsnd"), 0, data & 0xff); | |
| 987 | //if (ACCESSING_BITS_8_15) sn76496_w(devtag_get_device(space->machine, "snsnd"), 0, (data >>8) & 0xff); | |
| 986 | if (ACCESSING_BITS_0_7) sn76496_w(space->machine->device("snsnd"), 0, data & 0xff); | |
| 987 | //if (ACCESSING_BITS_8_15) sn76496_w(space->machine->device("snsnd"), 0, (data >>8) & 0xff); | |
| 988 | 988 | break; |
| 989 | 989 | |
| 990 | 990 | default: |
| r8581 | r8582 | |
| 2374 | 2374 | case 0x13: |
| 2375 | 2375 | case 0x15: |
| 2376 | 2376 | case 0x17: |
| 2377 | sn76496_w( | |
| 2377 | sn76496_w( | |
| 2378 | 2378 | break; |
| 2379 | 2379 | |
| 2380 | 2380 | default: |
| r8581 | r8582 | |
| 2405 | 2405 | else if (fulladdress == 0xc00011) |
| 2406 | 2406 | { |
| 2407 | 2407 | /* quite a few early games write here, most of the later ones don't */ |
| 2408 | sn76496_w( | |
| 2408 | sn76496_w( | |
| 2409 | 2409 | } |
| 2410 | 2410 | else |
| 2411 | 2411 | { |
| r8581 | r8582 | |
| 5884 | 5884 | |
| 5885 | 5885 | |
| 5886 | 5886 | |
| 5887 | if ( | |
| 5887 | if ( | |
| 5888 | 5888 | { |
| 5889 | 5889 | if (genesis_scanline_counter == megadrive_z80irq_scanline) |
| 5890 | 5890 | { |
| r8581 | r8582 | |
| 5972 | 5972 | break; |
| 5973 | 5973 | } |
| 5974 | 5974 | |
| 5975 | if ( | |
| 5975 | if (m | |
| 5976 | 5976 | { |
| 5977 | 5977 | genz80.z80_is_reset = 1; |
| 5978 | 5978 | genz80.z80_has_bus = 1; |
| r8581 | r8582 | |
| 5998 | 5998 | if (genesis_other_hacks) |
| 5999 | 5999 | { |
| 6000 | 6000 | // set_refresh_rate(megadriv_framerate); |
| 6001 | cpu_set_clockscale(devtag_get_device(machine, "maincpu"), 0.9950f); /* Fatal Rewind is very fussy... */ | |
| 6002 | // cpu_set_clockscale(devtag_get_device(machine, "maincpu"), 0.3800f); /* Fatal Rewind is very fussy... */ | |
| 6001 | machine->device("maincpu")->set_clock_scale(0.9950f); /* Fatal Rewind is very fussy... */ | |
| 6002 | // machine->device("maincpu")->set_clock_scale(0.3800f); /* Fatal Rewind is very fussy... */ | |
| 6003 | 6003 | |
| 6004 | 6004 | memset(megadrive_ram,0x00,0x10000); |
| 6005 | 6005 | } |
| r8581 | r8582 | |
| 6410 | 6410 | } |
| 6411 | 6411 | |
| 6412 | 6412 | |
| 6413 | cpu_set_irq_callback( | |
| 6413 | cpu_set_irq_callback(m | |
| 6414 | 6414 | megadriv_backupram = NULL; |
| 6415 | 6415 | megadriv_backupram_length = 0; |
| 6416 | 6416 | |
| 6417 | 6417 | vdp_get_word_from_68k_mem = vdp_get_word_from_68k_mem_default; |
| 6418 | 6418 | |
| 6419 | m68k_set_tas_callback( | |
| 6419 | m68k_set_tas_callback(m | |
| 6420 | 6420 | |
| 6421 | 6421 | if ((ipt == INPUT_PORTS_NAME(megadri6)) || (ipt == INPUT_PORTS_NAME(ssf2ghw)) || (ipt == INPUT_PORTS_NAME(mk3ghw))) |
| 6422 | 6422 | { |
| r8581 | r8582 | |
| 6543 | 6543 | /* sets the megadrive z80 to it's normal ports / map */ |
| 6544 | 6544 | void megatech_set_megadrive_z80_as_megadrive_z80(running_machine *machine, const char* tag) |
| 6545 | 6545 | { |
| 6546 | running_device *ym = | |
| 6546 | running_device *ym = m | |
| 6547 | 6547 | |
| 6548 | 6548 | /* INIT THE PORTS *********************************************************************************************/ |
| 6549 | 6549 | memory_install_readwrite8_handler(cputag_get_address_space(machine, tag, ADDRESS_SPACE_IO), 0x0000, 0xffff, 0, 0, z80_unmapped_port_r, z80_unmapped_port_w); |
| r8581 | r8582 | |
| 6634 | 6634 | _32x_240mode = 0; |
| 6635 | 6635 | |
| 6636 | 6636 | // checking if these help brutal, they don't. |
| 6637 | sh2drc_set_options(devtag_get_device(machine, "32x_master_sh2"), SH2DRC_COMPATIBLE_OPTIONS); | |
| 6638 | sh2drc_set_options(devtag_get_device(machine, "32x_slave_sh2"), SH2DRC_COMPATIBLE_OPTIONS); | |
| 6637 | sh2drc_set_options(machine->device("32x_master_sh2"), SH2DRC_COMPATIBLE_OPTIONS); | |
| 6638 | sh2drc_set_options(machine->device("32x_slave_sh2"), SH2DRC_COMPATIBLE_OPTIONS); | |
| 6639 | 6639 | |
| 6640 | 6640 | DRIVER_INIT_CALL(megadriv); |
| 6641 | 6641 | } |
| r8581 | r8582 | |
|---|---|---|
| 738 | 738 | set_led_status(space->machine, 1, data & 0x01); |
| 739 | 739 | set_led_status(space->machine, 2, data & 0x02); |
| 740 | 740 | set_led_status(space->machine, 3, data & 0x04); |
| 741 | ticket_dispenser_w(dev | |
| 741 | ticket_dispenser_w(dev | |
| 742 | 742 | coin_counter_w(space->machine, 0, (data & 0x20) >> 5); |
| 743 | 743 | } |
| 744 | 744 | |
| r8581 | r8582 | |
| 757 | 757 | /* bit 4 controls the ticket dispenser */ |
| 758 | 758 | /* bit 5 controls the coin counter */ |
| 759 | 759 | /* bit 6 controls the diagnostic sound LED */ |
| 760 | ticket_dispenser_w(dev | |
| 760 | ticket_dispenser_w(dev | |
| 761 | 761 | coin_counter_w(space->machine, 0, (data & 0x20) >> 5); |
| 762 | 762 | } |
| 763 | 763 | |
| r8581 | r8582 | |
| 4045 | 4045 | |
| 4046 | 4046 | static void install_timekeeper(running_machine *machine) |
| 4047 | 4047 | { |
| 4048 | running_device *device = | |
| 4048 | running_device *device = m | |
| 4049 | 4049 | memory_install_readwrite32_device_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), device, 0x681000, 0x6817ff, 0, 0, timekeeper_32be_r, timekeeper_32be_w); |
| 4050 | 4050 | } |
| 4051 | 4051 |
| r8581 | r8582 | |
|---|---|---|
| 426 | 426 | |
| 427 | 427 | memory_configure_bank(machine, "bank1", 0, 6, &ROM[0x10000], 0x4000); |
| 428 | 428 | |
| 429 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 430 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 431 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 432 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 429 | state->maincpu = machine->device("maincpu"); | |
| 430 | state->audiocpu = machine->device("audiocpu"); | |
| 431 | state->subcpu = machine->device("sub"); | |
| 432 | state->mcu = machine->device("mcu"); | |
| 433 | 433 | |
| 434 | 434 | state_save_register_global(machine, state->port_a_in); |
| 435 | 435 | state_save_register_global(machine, state->port_a_out); |
| r8581 | r8582 | |
| 452 | 452 | mexico86_state *state = (mexico86_state *)machine->driver_data; |
| 453 | 453 | |
| 454 | 454 | /*TODO: check the PCB and see how the halt / reset lines are connected. */ |
| 455 | if ( | |
| 455 | if (m | |
| 456 | 456 | cputag_set_input_line(machine, "sub", INPUT_LINE_RESET, (input_port_read(machine, "DSW1") & 0x80) ? ASSERT_LINE : CLEAR_LINE); |
| 457 | 457 | |
| 458 | 458 | state->port_a_in = 0; |
| r8581 | r8582 | |
|---|---|---|
| 558 | 558 | |
| 559 | 559 | static MACHINE_START(calchase) |
| 560 | 560 | { |
| 561 | cpu_set_irq_callback( | |
| 561 | cpu_set_irq_callback(m | |
| 562 | 562 | |
| 563 | calchase_devices.pit8254 = devtag_get_device( machine, "pit8254" ); | |
| 564 | calchase_devices.pic8259_1 = devtag_get_device( machine, "pic8259_1" ); | |
| 565 | calchase_devices.pic8259_2 = devtag_get_device( machine, "pic8259_2" ); | |
| 566 | calchase_devices.dma8237_1 = devtag_get_device( machine, "dma8237_1" ); | |
| 567 | calchase_devices.dma8237_2 = devtag_get_device( machine, "dma8237_2" ); | |
| 563 | calchase_devices.pit8254 = machine->device( "pit8254" ); | |
| 564 | calchase_devices.pic8259_1 = machine->device( "pic8259_1" ); | |
| 565 | calchase_devices.pic8259_2 = machine->device( "pic8259_2" ); | |
| 566 | calchase_devices.dma8237_1 = machine->device( "dma8237_1" ); | |
| 567 | calchase_devices.dma8237_2 = machine->device( "dma8237_2" ); | |
| 568 | 568 | } |
| 569 | 569 | |
| 570 | 570 | /************************************************************* |
| r8581 | r8582 | |
|---|---|---|
| 334 | 334 | { |
| 335 | 335 | ashnojoe_state *state = (ashnojoe_state *)machine->driver_data; |
| 336 | 336 | |
| 337 | state->audiocpu = | |
| 337 | state->audiocpu = m | |
| 338 | 338 | |
| 339 | 339 | state_save_register_global(machine, state->adpcm_byte); |
| 340 | 340 | state_save_register_global(machine, state->soundlatch_status); |
| r8581 | r8582 | |
|---|---|---|
| 175 | 175 | { |
| 176 | 176 | mouser_state *state = (mouser_state *)machine->driver_data; |
| 177 | 177 | |
| 178 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 179 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 178 | state->maincpu = machine->device("maincpu"); | |
| 179 | state->audiocpu = machine->device("audiocpu"); | |
| 180 | 180 | |
| 181 | 181 | state_save_register_global(machine, state->sound_byte); |
| 182 | 182 | state_save_register_global(machine, state->nmi_enable); |
| r8581 | r8582 | |
|---|---|---|
| 297 | 297 | |
| 298 | 298 | if (ACCESSING_BITS_0_7) |
| 299 | 299 | { |
| 300 | running_device *device = | |
| 300 | running_device *device = | |
| 301 | 301 | eeprom_set_clock_line(device, (data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 302 | 302 | eeprom_write_bit(device, data & 0x40); |
| 303 | 303 | eeprom_set_cs_line(device, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| r8581 | r8582 | |
|---|---|---|
| 244 | 244 | |
| 245 | 245 | static WRITE8_HANDLER( cpu1_outputs_w ) |
| 246 | 246 | { |
| 247 | running_device *discrete = | |
| 247 | running_device *discrete = | |
| 248 | 248 | grchamp_state *state = (grchamp_state *)space->machine->driver_data; |
| 249 | 249 | UINT8 diff = data ^ state->cpu1_out[offset]; |
| 250 | 250 | state->cpu1_out[offset] = data; |
| r8581 | r8582 | |
|---|---|---|
| 360 | 360 | { |
| 361 | 361 | lkage_state *state = (lkage_state *)machine->driver_data; |
| 362 | 362 | |
| 363 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 364 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 365 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 363 | state->maincpu = machine->device("maincpu"); | |
| 364 | state->audiocpu = machine->device("audiocpu"); | |
| 365 | state->mcu = machine->device("mcu"); | |
| 366 | 366 | |
| 367 | 367 | state_save_register_global(machine, state->bg_tile_bank); |
| 368 | 368 | state_save_register_global(machine, state->fg_tile_bank); |
| r8581 | r8582 | |
|---|---|---|
| 9 | 9 | 076000-077fff Sprite RAM |
| 10 | 10 | 078000-079fff Palette RAM |
| 11 | 11 | |
| 12 | 07a100-07a1ff Unknown | |
| 13 | ||
| 14 | 12 | memory mapped ports: |
| 15 | 13 | |
| 16 | 14 | read: |
| r8581 | r8582 | |
| 22 | 20 | see the input_ports definition below for details on the input bits |
| 23 | 21 | |
| 24 | 22 | write: |
| 25 | 07a104-07a105 text layer Y scroll | |
| 26 | 07a10c-07a10d text layer X scroll | |
| 27 | 07a204-07a205 front layer Y scroll | |
| 28 | 07a20c-07a20d front layer X scroll | |
| 29 | 07a304-07a305 back layer Y scroll | |
| 30 | 07a30c-07a30d back layer X scroll | |
| 23 | 07a002-07a003 sprite layer Y offset | |
| 24 | 07a104-07a105 text layer Y scroll | |
| 25 | 07a108-07a109 text layer Y scroll offset | |
| 26 | 07a10c-07a10d text layer X scroll | |
| 27 | 07a204-07a205 front layer Y scroll | |
| 28 | 07a208-07a209 front layer Y scroll offset | |
| 29 | 07a20c-07a20d front layer X scroll | |
| 30 | 07a304-07a305 back layer Y scroll | |
| 31 | 07a308-07a309 back layer Y scroll offset | |
| 32 | 07a30c-07a30d back layer X scroll | |
| 31 | 33 | |
| 34 | unknown writes during boot sequence and/or game start: | |
| 35 | 07a000, 07a004, 07a006, 07a100, 07a110, 07a200, 07a210, 07a300, 07a310 | |
| 36 | ||
| 32 | 37 | Notes: |
| 33 | 38 | - The sprite Y size control is slightly different from gaiden/wildfang to |
| 34 | 39 | raiga. In the first two, size X and Y change together, while in the latter |
| r8581 | r8582 | |
| 301 | 306 | state->bg_scroll_y = 0; |
| 302 | 307 | state->fg_scroll_x = 0; |
| 303 | 308 | state->fg_scroll_y = 0; |
| 309 | ||
| 310 | state->tx_offset_y = 0; | |
| 311 | state->fg_offset_y = 0; | |
| 312 | state->bg_offset_y = 0; | |
| 313 | state->spr_offset_y = 0; | |
| 304 | 314 | } |
| 305 | 315 | |
| 306 | 316 | static MACHINE_START( raiga ) |
| 307 | 317 | { |
| 308 | 318 | gaiden_state *state = (gaiden_state *)machine->driver_data; |
| 309 | state->audiocpu = | |
| 319 | state->audiocpu = m | |
| 310 | 320 | |
| 311 | 321 | state_save_register_global(machine, state->prot); |
| 312 | 322 | state_save_register_global(machine, state->jumpcode); |
| r8581 | r8582 | |
| 317 | 327 | state_save_register_global(machine, state->bg_scroll_y); |
| 318 | 328 | state_save_register_global(machine, state->fg_scroll_x); |
| 319 | 329 | state_save_register_global(machine, state->fg_scroll_y); |
| 330 | ||
| 331 | state_save_register_global(machine, state->tx_offset_y); | |
| 332 | state_save_register_global(machine, state->fg_offset_y); | |
| 333 | state_save_register_global(machine, state->bg_offset_y); | |
| 334 | state_save_register_global(machine, state->spr_offset_y); | |
| 320 | 335 | } |
| 321 | 336 | |
| 322 | 337 | static WRITE16_HANDLER( raiga_protection_w ) |
| r8581 | r8582 | |
| 387 | 402 | AM_RANGE(0x076000, 0x077fff) AM_RAM AM_BASE_SIZE_MEMBER(gaiden_state, spriteram, spriteram_size) |
| 388 | 403 | AM_RANGE(0x078000, 0x079fff) AM_RAM_WRITE(paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE_GENERIC(paletteram) |
| 389 | 404 | AM_RANGE(0x07a000, 0x07a001) AM_READ_PORT("SYSTEM") |
| 390 | AM_RANGE(0x07a002, 0x07a003) AM_READ_PORT("P1_P2") | |
| 405 | AM_RANGE(0x07a002, 0x07a003) AM_READ_PORT("P1_P2") AM_WRITE(gaiden_sproffsety_w) | |
| 391 | 406 | AM_RANGE(0x07a004, 0x07a005) AM_READ_PORT("DSW") |
| 392 | 407 | AM_RANGE(0x07a104, 0x07a105) AM_WRITE(gaiden_txscrolly_w) |
| 408 | AM_RANGE(0x07a108, 0x07a109) AM_WRITE(gaiden_txoffsety_w) | |
| 393 | 409 | AM_RANGE(0x07a10c, 0x07a10d) AM_WRITE(gaiden_txscrollx_w) |
| 394 | 410 | AM_RANGE(0x07a204, 0x07a205) AM_WRITE(gaiden_fgscrolly_w) |
| 411 | AM_RANGE(0x07a208, 0x07a209) AM_WRITE(gaiden_fgoffsety_w) | |
| 395 | 412 | AM_RANGE(0x07a20c, 0x07a20d) AM_WRITE(gaiden_fgscrollx_w) |
| 396 | 413 | AM_RANGE(0x07a304, 0x07a305) AM_WRITE(gaiden_bgscrolly_w) |
| 414 | AM_RANGE(0x07a308, 0x07a309) AM_WRITE(gaiden_bgoffsety_w) | |
| 397 | 415 | AM_RANGE(0x07a30c, 0x07a30d) AM_WRITE(gaiden_bgscrollx_w) |
| 398 | 416 | AM_RANGE(0x07a800, 0x07a801) AM_WRITE(watchdog_reset16_w) |
| 399 | 417 | AM_RANGE(0x07a802, 0x07a803) AM_WRITE(gaiden_sound_command_w) |
| r8581 | r8582 | |
| 472 | 490 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 473 | 491 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 474 | 492 | |
| 475 | INPUT_PORTS_END | |
| 476 | ||
| 477 | static INPUT_PORTS_START( shadoww ) | |
| 478 | PORT_INCLUDE( common ) | |
| 479 | ||
| 480 | /* Dip Switches order fits the first screen */ | |
| 481 | 493 | PORT_START("DSW") |
| 482 | 494 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:3,2,1") |
| 483 | 495 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| r8581 | r8582 | |
| 519 | 531 | PORT_DIPUNKNOWN_DIPLOC( 0x0100, 0x0100, "SWB:8" ) |
| 520 | 532 | INPUT_PORTS_END |
| 521 | 533 | |
| 534 | static INPUT_PORTS_START( drgnbowl ) | |
| 535 | PORT_INCLUDE( common ) | |
| 536 | ||
| 537 | PORT_MODIFY("DSW") | |
| 538 | PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SWA:7" ) /* No Flip Screen */ | |
| 539 | INPUT_PORTS_END | |
| 540 | ||
| 522 | 541 | static INPUT_PORTS_START( wildfang ) |
| 523 | 542 | PORT_INCLUDE( common ) |
| 524 | 543 | |
| 525 | /* Dip Switches order fits the first screen */ | |
| 526 | PORT_START("DSW") | |
| 527 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:3,2,1") | |
| 528 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 529 | PORT_DIPSETTING( 0x0080, DEF_STR( 4C_1C ) ) | |
| 530 | PORT_DIPSETTING( 0x0040, DEF_STR( 3C_1C ) ) | |
| 531 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) ) | |
| 532 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) | |
| 533 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) | |
| 534 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) | |
| 535 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_4C ) ) | |
| 536 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWA:6,5,4") | |
| 537 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 538 | PORT_DIPSETTING( 0x0010, DEF_STR( 4C_1C ) ) | |
| 539 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) | |
| 540 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 541 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) | |
| 542 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) | |
| 543 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) | |
| 544 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_4C ) ) | |
| 545 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWA:7") | |
| 546 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 547 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 548 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWA:8") | |
| 549 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 550 | PORT_DIPSETTING( 0x0001, DEF_STR( On ) ) | |
| 544 | PORT_MODIFY("DSW") | |
| 551 | 545 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWB:2,1") |
| 552 | 546 | PORT_DIPSETTING( 0x8000, "1" ) |
| 553 | 547 | PORT_DIPSETTING( 0xc000, "2" ) |
| r8581 | r8582 | |
| 565 | 559 | PORT_DIPSETTING( 0x0400, DEF_STR( Normal ) ) |
| 566 | 560 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 567 | 561 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 568 | PORT_DIPUNKNOWN_DIPLOC( 0x0200, 0x0200, "SWB:7" ) | |
| 569 | 562 | PORT_DIPNAME( 0x0100, 0x0100, "Title" ) PORT_DIPLOCATION("SWB:8") // also affects Difficulty Table (see above) |
| 570 | 563 | PORT_DIPSETTING( 0x0100, "Wild Fang" ) |
| 571 | 564 | PORT_DIPSETTING( 0x0000, "Tecmo Knight" ) |
| 572 | 565 | INPUT_PORTS_END |
| 573 | 566 | |
| 574 | 567 | static INPUT_PORTS_START( tknight ) |
| 575 | PORT_INCLUDE( | |
| 568 | PORT_INCLUDE( wildfang ) | |
| 576 | 569 | |
| 577 | /* Dip Switches order fits the first screen */ | |
| 578 | PORT_START("DSW") | |
| 579 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:3,2,1") | |
| 580 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 581 | PORT_DIPSETTING( 0x0080, DEF_STR( 4C_1C ) ) | |
| 582 | PORT_DIPSETTING( 0x0040, DEF_STR( 3C_1C ) ) | |
| 583 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) ) | |
| 584 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) | |
| 585 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) | |
| 586 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) | |
| 587 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_4C ) ) | |
| 588 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWA:6,5,4") | |
| 589 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 590 | PORT_DIPSETTING( 0x0010, DEF_STR( 4C_1C ) ) | |
| 591 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) | |
| 592 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 593 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) | |
| 594 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) | |
| 595 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) | |
| 596 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_4C ) ) | |
| 597 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWA:7") | |
| 598 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) | |
| 599 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 600 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWA:8") | |
| 601 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 602 | PORT_DIPSETTING( 0x0001, DEF_STR( On ) ) | |
| 603 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWB:2,1") | |
| 604 | PORT_DIPSETTING( 0x8000, "1" ) | |
| 605 | PORT_DIPSETTING( 0xc000, "2" ) | |
| 606 | PORT_DIPSETTING( 0x4000, "3" ) | |
| 607 | /* PORT_DIPSETTING( 0x0000, "2" ) */ | |
| 608 | PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SWB:3" ) | |
| 609 | PORT_DIPUNKNOWN_DIPLOC( 0x1000, 0x1000, "SWB:4" ) | |
| 610 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:6,5") | |
| 611 | PORT_DIPSETTING( 0x0c00, DEF_STR( Easy ) ) | |
| 612 | PORT_DIPSETTING( 0x0400, DEF_STR( Normal ) ) | |
| 613 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) | |
| 614 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) | |
| 615 | PORT_DIPUNKNOWN_DIPLOC( 0x0200, 0x0200, "SWB:7" ) | |
| 616 | PORT_DIPUNKNOWN_DIPLOC( 0x0100, 0x0100, "SWB:8" ) | |
| 570 | PORT_MODIFY("DSW") | |
| 571 | PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SWB:3" ) /* No seperate difficulty option like parent set */ | |
| 572 | PORT_DIPUNKNOWN_DIPLOC( 0x1000, 0x1000, "SWB:4" ) /* No seperate difficulty option like parent set */ | |
| 573 | PORT_DIPUNKNOWN_DIPLOC( 0x0100, 0x0100, "SWB:8" ) /* No title change option */ | |
| 617 | 574 | INPUT_PORTS_END |
| 618 | 575 | |
| 619 | 576 | static INPUT_PORTS_START( raiga ) |
| r8581 | r8582 | |
| 624 | 581 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 625 | 582 | |
| 626 | 583 | /* Dip Switches order fits the first screen */ |
| 627 | PORT_ | |
| 584 | PORT_MODIFY("DSW") | |
| 628 | 585 | PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:4,3,2,1") |
| 629 | 586 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 630 | 587 | PORT_DIPSETTING( 0x0040, DEF_STR( 4C_1C ) ) |
| r8581 | r8582 | |
| 680 | 637 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) |
| 681 | 638 | INPUT_PORTS_END |
| 682 | 639 | |
| 683 | static INPUT_PORTS_START( drgnbowl ) | |
| 684 | PORT_INCLUDE( common ) | |
| 685 | 640 | |
| 686 | /* Dip Switches order fits the first screen */ | |
| 687 | PORT_START("DSW") | |
| 688 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:3,2,1") | |
| 689 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 690 | PORT_DIPSETTING( 0x0080, DEF_STR( 4C_1C ) ) | |
| 691 | PORT_DIPSETTING( 0x0040, DEF_STR( 3C_1C ) ) | |
| 692 | PORT_DIPSETTING( 0x0020, DEF_STR( 2C_1C ) ) | |
| 693 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) | |
| 694 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) | |
| 695 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) | |
| 696 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_4C ) ) | |
| 697 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWA:6,5,4") | |
| 698 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 699 | PORT_DIPSETTING( 0x0010, DEF_STR( 4C_1C ) ) | |
| 700 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) | |
| 701 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 702 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) | |
| 703 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) | |
| 704 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) | |
| 705 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_4C ) ) | |
| 706 | PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SWA:7" ) | |
| 707 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWA:8") | |
| 708 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 709 | PORT_DIPSETTING( 0x0001, DEF_STR( On ) ) | |
| 710 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWB:2,1") | |
| 711 | PORT_DIPSETTING( 0x0000, "1" ) | |
| 712 | PORT_DIPSETTING( 0xc000, "2" ) | |
| 713 | PORT_DIPSETTING( 0x4000, "3" ) | |
| 714 | PORT_DIPSETTING( 0x8000, "4" ) | |
| 715 | PORT_DIPNAME( 0x3000, 0x3000, "Energy" ) PORT_DIPLOCATION("SWB:4,3") | |
| 716 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 717 | PORT_DIPSETTING( 0x3000, "3" ) | |
| 718 | PORT_DIPSETTING( 0x1000, "4" ) | |
| 719 | PORT_DIPSETTING( 0x2000, "5" ) | |
| 720 | PORT_DIPUNKNOWN_DIPLOC( 0x0800, 0x0800, "SWB:5" ) | |
| 721 | PORT_DIPUNKNOWN_DIPLOC( 0x0400, 0x0400, "SWB:6" ) | |
| 722 | PORT_DIPUNKNOWN_DIPLOC( 0x0200, 0x0200, "SWB:7" ) | |
| 723 | PORT_DIPUNKNOWN_DIPLOC( 0x0100, 0x0100, "SWB:8" ) | |
| 724 | INPUT_PORTS_END | |
| 725 | 641 | |
| 726 | ||
| 727 | ||
| 728 | 642 | static const gfx_layout tilelayout = |
| 729 | 643 | { |
| 730 | 644 | 8,8, /* tile size */ |
| r8581 | r8582 | |
| 873 | 787 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 874 | 788 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 875 | 789 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 876 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, | |
| 790 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 32*8-1) | |
| 877 | 791 | |
| 878 | 792 | MDRV_GFXDECODE(gaiden) |
| 879 | 793 | MDRV_PALETTE_LENGTH(4096) |
| r8581 | r8582 | |
| 1356 | 1270 | ROM_END |
| 1357 | 1271 | |
| 1358 | 1272 | |
| 1359 | ROM_START( t | |
| 1273 | ROM_START( wildfang ) /* Dipswitch selectable title of Wild Fang or Temco Knight */ | |
| 1360 | 1274 | ROM_REGION( 0x40000, "maincpu", 0 ) /* 2*128k for 68000 code */ |
| 1361 | ROM_LOAD16_BYTE( "tkni1.bin", 0x00000, 0x20000, CRC(9121daa8) SHA1(06ba7779602df8fae32e859371d27c0dbb8d3430) ) | |
| 1362 | ROM_LOAD16_BYTE( "tkni2.bin", 0x00001, 0x20000, CRC(6669cd87) SHA1(8888522a3aef76a979ffc80ba457dd49f279abf1) ) | |
| 1275 | ROM_LOAD16_BYTE( "1.3st", 0x00000, 0x20000, CRC(ab876c9b) SHA1(b02c822f107df4c9c4f0024998f225c1ddbbd496) ) | |
| 1276 | ROM_LOAD16_BYTE( "2.5st", 0x00001, 0x20000, CRC(1dc74b3b) SHA1(c99051ebefd6ce666b13ab56c0a10b188f15ec28) ) | |
| 1363 | 1277 | |
| 1364 | 1278 | ROM_REGION( 0x10000, "audiocpu", 0 ) |
| 1365 | 1279 | ROM_LOAD( "tkni3.bin", 0x0000, 0x10000, CRC(15623ec7) SHA1(db43fe6c417117d7cd90a26e12a52efb0e1a5ca6) ) /* Audio CPU is a Z80 */ |
| r8581 | r8582 | |
| 1371 | 1285 | ROM_LOAD( "tkni5.bin", 0x000000, 0x10000, CRC(5ed15896) SHA1(87bdddb26934af0b2c4e704e6d85c69a7531aeb1) ) /* 8x8 tiles */ |
| 1372 | 1286 | |
| 1373 | 1287 | ROM_REGION( 0x080000, "gfx2", 0 ) |
| 1374 | ROM_LOAD( "tkni7.bin", 0x000000, 0x80000, CRC(4b4d4286) SHA1(d386aa223eb288ea829c98d3f39279a75dc66b71) ) | |
| 1288 | ROM_LOAD( "14.3a", 0x000000, 0x20000, CRC(0d20c10c) SHA1(209ca4e166d0b91ff99a338e135e5388af2c51f5) ) | |
| 1289 | ROM_LOAD( "15.3b", 0x020000, 0x20000, CRC(3f40a6b4) SHA1(7486ddfe4b0ac4198512548b74402f4194c804f1) ) | |
| 1290 | ROM_LOAD( "16.1a", 0x040000, 0x20000, CRC(0f31639e) SHA1(e150db4f617c5fcf505e5ca95d94073c1f6b7d0d) ) | |
| 1291 | ROM_LOAD( "17.1b", 0x060000, 0x20000, CRC(f32c158e) SHA1(2861754bda37e30799151b5ca73771937edf38a9) ) | |
| 1375 | 1292 | |
| 1376 | 1293 | ROM_REGION( 0x080000, "gfx3", 0 ) |
| 1377 | 1294 | ROM_LOAD( "tkni6.bin", 0x000000, 0x80000, CRC(f68fafb1) SHA1(aeca38eaea2f6dfc484e48ac1114c0c4abaafb9c) ) |
| r8581 | r8582 | |
| 1384 | 1301 | ROM_LOAD( "tkni4.bin", 0x0000, 0x20000, CRC(a7a1dbcf) SHA1(2fee1d9745ce2ab54b0b9cbb6ab2e66ba9677245) ) /* samples */ |
| 1385 | 1302 | ROM_END |
| 1386 | 1303 | |
| 1387 | ROM_START( wildfang ) | |
| 1304 | ROM_START( wildfangs ) /* Wild Fang - No title change option */ | |
| 1388 | 1305 | ROM_REGION( 0x40000, "maincpu", 0 ) /* 2*128k for 68000 code */ |
| 1389 | ROM_LOAD16_BYTE( "1.3st", 0x00000, 0x20000, CRC(ab876c9b) SHA1(b02c822f107df4c9c4f0024998f225c1ddbbd496) ) | |
| 1390 | ROM_LOAD16_BYTE( "2.5st", 0x00001, 0x20000, CRC(1dc74b3b) SHA1(c99051ebefd6ce666b13ab56c0a10b188f15ec28) ) | |
| 1306 | ROM_LOAD16_BYTE( "1.3s", 0x00000, 0x20000, CRC(3421f691) SHA1(7829729e2007a53fc598db3ae3524b971cbf49e9) ) | |
| 1307 | ROM_LOAD16_BYTE( "2.5s", 0x00001, 0x20000, CRC(d3547708) SHA1(91cc0575b25fe15d668eec26dd74945c51ed67eb) ) | |
| 1391 | 1308 | |
| 1392 | 1309 | ROM_REGION( 0x10000, "audiocpu", 0 ) |
| 1393 | 1310 | ROM_LOAD( "tkni3.bin", 0x0000, 0x10000, CRC(15623ec7) SHA1(db43fe6c417117d7cd90a26e12a52efb0e1a5ca6) ) /* Audio CPU is a Z80 */ |
| r8581 | r8582 | |
| 1415 | 1332 | ROM_LOAD( "tkni4.bin", 0x0000, 0x20000, CRC(a7a1dbcf) SHA1(2fee1d9745ce2ab54b0b9cbb6ab2e66ba9677245) ) /* samples */ |
| 1416 | 1333 | ROM_END |
| 1417 | 1334 | |
| 1335 | ROM_START( tknight ) /* Temco Knight - No title change option */ | |
| 1336 | ROM_REGION( 0x40000, "maincpu", 0 ) /* 2*128k for 68000 code */ | |
| 1337 | ROM_LOAD16_BYTE( "tkni1.bin", 0x00000, 0x20000, CRC(9121daa8) SHA1(06ba7779602df8fae32e859371d27c0dbb8d3430) ) | |
| 1338 | ROM_LOAD16_BYTE( "tkni2.bin", 0x00001, 0x20000, CRC(6669cd87) SHA1(8888522a3aef76a979ffc80ba457dd49f279abf1) ) | |
| 1339 | ||
| 1340 | ROM_REGION( 0x10000, "audiocpu", 0 ) | |
| 1341 | ROM_LOAD( "tkni3.bin", 0x0000, 0x10000, CRC(15623ec7) SHA1(db43fe6c417117d7cd90a26e12a52efb0e1a5ca6) ) /* Audio CPU is a Z80 */ | |
| 1342 | ||
| 1343 | ROM_REGION( 0x1000, "mcu", 0 ) /* protection NEC D8749 */ | |
| 1344 | ROM_LOAD( "a-6v.mcu", 0x00000, 0x1000, NO_DUMP ) | |
| 1345 | ||
| 1346 | ROM_REGION( 0x010000, "gfx1", 0 ) | |
| 1347 | ROM_LOAD( "tkni5.bin", 0x000000, 0x10000, CRC(5ed15896) SHA1(87bdddb26934af0b2c4e704e6d85c69a7531aeb1) ) /* 8x8 tiles */ | |
| 1348 | ||
| 1349 | ROM_REGION( 0x080000, "gfx2", 0 ) | |
| 1350 | ROM_LOAD( "tkni7.bin", 0x000000, 0x80000, CRC(4b4d4286) SHA1(d386aa223eb288ea829c98d3f39279a75dc66b71) ) | |
| 1351 | ||
| 1352 | ROM_REGION( 0x080000, "gfx3", 0 ) | |
| 1353 | ROM_LOAD( "tkni6.bin", 0x000000, 0x80000, CRC(f68fafb1) SHA1(aeca38eaea2f6dfc484e48ac1114c0c4abaafb9c) ) | |
| 1354 | ||
| 1355 | ROM_REGION( 0x100000, "gfx4", 0 ) | |
| 1356 | ROM_LOAD( "tkni9.bin", 0x000000, 0x80000, CRC(d22f4239) SHA1(360a9a821faabe911eef407ef85452d8b706538f) ) /* sprites */ | |
| 1357 | ROM_LOAD( "tkni8.bin", 0x080000, 0x80000, CRC(4931b184) SHA1(864e827ac109c0ee52a898034c021cd5e92ff000) ) /* sprites */ | |
| 1358 | ||
| 1359 | ROM_REGION( 0x40000, "oki", 0 ) /* 128k for ADPCM samples - sound chip is OKIM6295 */ | |
| 1360 | ROM_LOAD( "tkni4.bin", 0x0000, 0x20000, CRC(a7a1dbcf) SHA1(2fee1d9745ce2ab54b0b9cbb6ab2e66ba9677245) ) /* samples */ | |
| 1361 | ROM_END | |
| 1362 | ||
| 1418 | 1363 | ROM_START( stratof ) |
| 1419 | 1364 | ROM_REGION( 0x40000, "maincpu", 0 ) |
| 1420 | 1365 | ROM_LOAD16_BYTE( "1.3s", 0x00000, 0x20000, CRC(060822a4) SHA1(82abf6ea64695d2f7b5934ad2487e857648aeecf) ) |
| r8581 | r8582 | |
| 1684 | 1629 | DRIVER_INIT_CALL(shadoww); |
| 1685 | 1630 | } |
| 1686 | 1631 | |
| 1687 | GAME( 1988, shadoww, 0, shadoww, shadoww, shadoww, ROT0, "Tecmo", "Shadow Warriors (World, set 1)", GAME_SUPPORTS_SAVE ) | |
| 1688 | GAME( 1988, shadowwa, shadoww, shadoww, shadoww, shadoww, ROT0, "Tecmo", "Shadow Warriors (World, set 2)", GAME_SUPPORTS_SAVE ) | |
| 1689 | GAME( 1988, gaiden, shadoww, shadoww, shadoww, shadoww, ROT0, "Tecmo", "Ninja Gaiden (US)", GAME_SUPPORTS_SAVE ) | |
| 1690 | GAME( 1989, ryukendn, shadoww, shadoww, shadoww, shadoww, ROT0, "Tecmo", "Ninja Ryukenden (Japan, set 1)", GAME_SUPPORTS_SAVE ) | |
| 1691 | GAME( 1989, ryukendna,shadoww, shadoww, shadoww, shadoww, ROT0, "Tecmo", "Ninja Ryukenden (Japan, set 2)", GAME_SUPPORTS_SAVE ) | |
| 1692 | GAME( 1989, mastninj, shadoww, mastninj,shadoww, mastninj, ROT0, "bootleg", "Master Ninja (bootleg of Shadow Warriors / Ninja Gaiden)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) // sprites need fixing, sound and yscroll too. | |
| 1632 | GAME( 1988, shadoww, 0, shadoww, common, shadoww, ROT0, "Tecmo", "Shadow Warriors (World, set 1)", GAME_SUPPORTS_SAVE ) | |
| 1633 | GAME( 1988, shadowwa, shadoww, shadoww, common, shadoww, ROT0, "Tecmo", "Shadow Warriors (World, set 2)", GAME_SUPPORTS_SAVE ) | |
| 1634 | GAME( 1988, gaiden, shadoww, shadoww, common, shadoww, ROT0, "Tecmo", "Ninja Gaiden (US)", GAME_SUPPORTS_SAVE ) | |
| 1635 | GAME( 1989, ryukendn, shadoww, shadoww, common, shadoww, ROT0, "Tecmo", "Ninja Ryukenden (Japan, set 1)", GAME_SUPPORTS_SAVE ) | |
| 1636 | GAME( 1989, ryukendna,shadoww, shadoww, common, shadoww, ROT0, "Tecmo", "Ninja Ryukenden (Japan, set 2)", GAME_SUPPORTS_SAVE ) | |
| 1637 | GAME( 1989, mastninj, shadoww, mastninj,common, mastninj, ROT0, "bootleg", "Master Ninja (bootleg of Shadow Warriors / Ninja Gaiden)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) // sprites need fixing, sound and yscroll too. | |
| 1693 | 1638 | GAME( 1989, wildfang, 0, shadoww, wildfang, wildfang, ROT0, "Tecmo", "Wild Fang / Tecmo Knight", GAME_SUPPORTS_SAVE ) |
| 1639 | GAME( 1989, wildfangs,wildfang, shadoww, tknight, wildfang, ROT0, "Tecmo", "Wild Fang", GAME_SUPPORTS_SAVE ) | |
| 1694 | 1640 | GAME( 1989, tknight, wildfang, shadoww, tknight, wildfang, ROT0, "Tecmo", "Tecmo Knight", GAME_SUPPORTS_SAVE ) |
| 1695 | 1641 | GAME( 1991, stratof, 0, raiga, raiga, raiga, ROT0, "Tecmo", "Raiga - Strato Fighter (US)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 1696 | 1642 | GAME( 1991, raiga, stratof, raiga, raiga, raiga, ROT0, "Tecmo", "Raiga - Strato Fighter (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| r8581 | r8582 | |
|---|---|---|
| 858 | 858 | trackfld_state *state = (trackfld_state *)machine->driver_data; |
| 859 | 859 | |
| 860 | 860 | state->audiocpu = machine->device<cpu_device>("audiocpu"); |
| 861 | state->vlm = | |
| 861 | state->vlm = m | |
| 862 | 862 | |
| 863 | 863 | /* video */ |
| 864 | 864 | state_save_register_global(machine, state->bg_bank); |
| r8581 | r8582 | |
|---|---|---|
| 500 | 500 | /* the 74175 outputs all HI's if not otherwise set */ |
| 501 | 501 | astrof_set_video_control_2(machine, 0xff); |
| 502 | 502 | |
| 503 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 504 | state->samples = devtag_get_device(machine, "samples"); | |
| 503 | state->maincpu = machine->device("maincpu"); | |
| 504 | state->samples = machine->device("samples"); | |
| 505 | 505 | |
| 506 | 506 | /* register for state saving */ |
| 507 | 507 | state_save_register_global(machine, state->red_on); |
| r8581 | r8582 | |
| 534 | 534 | /* the 74175 outputs all HI's if not otherwise set */ |
| 535 | 535 | spfghmk2_set_video_control_2(machine, 0xff); |
| 536 | 536 | |
| 537 | state->maincpu = | |
| 537 | state->maincpu = m | |
| 538 | 538 | |
| 539 | 539 | /* the red background circuit is disabled */ |
| 540 | 540 | state->red_on = FALSE; |
| r8581 | r8582 | |
| 553 | 553 | /* the 74175 outputs all HI's if not otherwise set */ |
| 554 | 554 | tomahawk_set_video_control_2(machine, 0xff); |
| 555 | 555 | |
| 556 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 557 | state->sn = devtag_get_device(machine, "snsnd"); | |
| 556 | state->maincpu = machine->device("maincpu"); | |
| 557 | state->sn = machine->device("snsnd"); | |
| 558 | 558 | |
| 559 | 559 | /* register for state saving */ |
| 560 | 560 | state_save_register_global(machine, state->red_on); |
| r8581 | r8582 | |
|---|---|---|
| 528 | 528 | |
| 529 | 529 | static MACHINE_START( vegas ) |
| 530 | 530 | { |
| 531 | voodoo = | |
| 531 | voodoo = m | |
| 532 | 532 | |
| 533 | 533 | /* allocate timers for the NILE */ |
| 534 | 534 | timer[0] = timer_alloc(machine, NULL, NULL); |
| r8581 | r8582 | |
| 537 | 537 | timer[3] = timer_alloc(machine, nile_timer_callback, NULL); |
| 538 | 538 | |
| 539 | 539 | /* identify our sound board */ |
| 540 | if ( | |
| 540 | if (m | |
| 541 | 541 | dcs_idma_cs = 6; |
| 542 | else if ( | |
| 542 | else if (m | |
| 543 | 543 | dcs_idma_cs = 7; |
| 544 | 544 | else |
| 545 | 545 | dcs_idma_cs = 0; |
| 546 | 546 | |
| 547 | 547 | /* set the fastest DRC options, but strict verification */ |
| 548 | mips3drc_set_options( | |
| 548 | mips3drc_set_options(m | |
| 549 | 549 | |
| 550 | 550 | /* configure fast RAM regions for DRC */ |
| 551 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x00000000, ramsize - 1, FALSE, rambase); | |
| 552 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, rombase); | |
| 551 | mips3drc_add_fastram(machine->device("maincpu"), 0x00000000, ramsize - 1, FALSE, rambase); | |
| 552 | mips3drc_add_fastram(machine->device("maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, rombase); | |
| 553 | 553 | |
| 554 | 554 | /* register for save states */ |
| 555 | 555 | state_save_register_global(machine, nile_irq_state); |
| r8581 | r8582 | |
| 577 | 577 | memset(pci_3dfx_regs, 0, sizeof(pci_3dfx_regs)); |
| 578 | 578 | |
| 579 | 579 | /* reset the DCS system if we have one */ |
| 580 | if ( | |
| 580 | if (m | |
| 581 | 581 | { |
| 582 | 582 | dcs_reset_w(1); |
| 583 | 583 | dcs_reset_w(0); |
| r8581 | r8582 | |
| 767 | 767 | |
| 768 | 768 | case 0x14: /* interrupt pending */ |
| 769 | 769 | if (data & 4) |
| 770 | ide_interrupt( | |
| 770 | ide_interrupt( | |
| 771 | 771 | break; |
| 772 | 772 | } |
| 773 | 773 | if (LOG_PCI) |
| r8581 | r8582 | |
| 1551 | 1551 | |
| 1552 | 1552 | static void remap_dynamic_addresses(running_machine *machine) |
| 1553 | 1553 | { |
| 1554 | running_device *ethernet = devtag_get_device(machine, "ethernet"); | |
| 1555 | running_device *ide = devtag_get_device(machine, "ide"); | |
| 1554 | running_device *ethernet = machine->device("ethernet"); | |
| 1555 | running_device *ide = machine->device("ide"); | |
| 1556 | 1556 | int voodoo_type = voodoo_get_type(voodoo); |
| 1557 | 1557 | offs_t base; |
| 1558 | 1558 | int addr; |
| r8581 | r8582 | |
| 2491 | 2491 | init_common(machine, MIDWAY_IOASIC_CALSPEED, 340/* 340=39", 322=27", others? */); |
| 2492 | 2492 | |
| 2493 | 2493 | /* speedups */ |
| 2494 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80015430, 0x8CC38060, 250); /* confirmed */ | |
| 2495 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80015464, 0x3C09801E, 250); /* confirmed */ | |
| 2496 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800C8918, 0x8FA2004C, 250); /* confirmed */ | |
| 2497 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800C8890, 0x8FA20024, 250); /* confirmed */ | |
| 2494 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80015430, 0x8CC38060, 250); /* confirmed */ | |
| 2495 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80015464, 0x3C09801E, 250); /* confirmed */ | |
| 2496 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800C8918, 0x8FA2004C, 250); /* confirmed */ | |
| 2497 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800C8890, 0x8FA20024, 250); /* confirmed */ | |
| 2498 | 2498 | } |
| 2499 | 2499 | |
| 2500 | 2500 | |
| r8581 | r8582 | |
| 2504 | 2504 | init_common(machine, MIDWAY_IOASIC_GAUNTDL, 346/* 347, others? */); |
| 2505 | 2505 | |
| 2506 | 2506 | /* speedups */ |
| 2507 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800158B8, 0x8CC3CC40, 250); /* confirmed */ | |
| 2508 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800158EC, 0x3C0C8022, 250); /* confirmed */ | |
| 2509 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800D40C0, 0x8FA2004C, 250); /* confirmed */ | |
| 2510 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800D4038, 0x8FA20024, 250); /* confirmed */ | |
| 2507 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800158B8, 0x8CC3CC40, 250); /* confirmed */ | |
| 2508 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800158EC, 0x3C0C8022, 250); /* confirmed */ | |
| 2509 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800D40C0, 0x8FA2004C, 250); /* confirmed */ | |
| 2510 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800D4038, 0x8FA20024, 250); /* confirmed */ | |
| 2511 | 2511 | } |
| 2512 | 2512 | |
| 2513 | 2513 | |
| r8581 | r8582 | |
| 2517 | 2517 | init_common(machine, MIDWAY_IOASIC_MACE, 337/* others? */); |
| 2518 | 2518 | |
| 2519 | 2519 | /* speedups */ |
| 2520 | mips3drc_add_hotspot( | |
| 2520 | mips3drc_add_hotspot(m | |
| 2521 | 2521 | } |
| 2522 | 2522 | |
| 2523 | 2523 | |
| r8581 | r8582 | |
| 2527 | 2527 | init_common(machine, MIDWAY_IOASIC_GAUNTDL, 330/* others? */); |
| 2528 | 2528 | |
| 2529 | 2529 | /* speedups */ |
| 2530 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80051CD8, 0x0C023C15, 250); /* confirmed */ | |
| 2531 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8005E674, 0x3C028017, 250); /* confirmed */ | |
| 2532 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8002DBCC, 0x8FA2002C, 250); /* confirmed */ | |
| 2533 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80015930, 0x8FC20244, 250); /* confirmed */ | |
| 2530 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80051CD8, 0x0C023C15, 250); /* confirmed */ | |
| 2531 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8005E674, 0x3C028017, 250); /* confirmed */ | |
| 2532 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8002DBCC, 0x8FA2002C, 250); /* confirmed */ | |
| 2533 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80015930, 0x8FC20244, 250); /* confirmed */ | |
| 2534 | 2534 | } |
| 2535 | 2535 | |
| 2536 | 2536 |
| r8581 | r8582 | |
|---|---|---|
| 137 | 137 | |
| 138 | 138 | static VIDEO_EOF( galpanic ) |
| 139 | 139 | { |
| 140 | running_device *pandora = | |
| 140 | running_device *pandora = m | |
| 141 | 141 | pandora_eof(pandora); |
| 142 | 142 | } |
| 143 | 143 | |
| r8581 | r8582 | |
| 163 | 163 | |
| 164 | 164 | static WRITE16_HANDLER( galpanic_6295_bankswitch_w ) |
| 165 | 165 | { |
| 166 | running_device *pandora = | |
| 166 | running_device *pandora = | |
| 167 | 167 | |
| 168 | 168 | if (ACCESSING_BITS_8_15) |
| 169 | 169 | { |
| r8581 | r8582 | |
| 189 | 189 | #ifdef UNUSED_FUNCTION |
| 190 | 190 | static WRITE16_HANDLER( galpanica_misc_w ) |
| 191 | 191 | { |
| 192 | running_device *pandora = | |
| 192 | running_device *pandora = m | |
| 193 | 193 | |
| 194 | 194 | if (ACCESSING_BITS_0_7) |
| 195 | 195 | { |
| r8581 | r8582 | |
|---|---|---|
| 247 | 247 | { |
| 248 | 248 | finalizr_state *state = (finalizr_state *)machine->driver_data; |
| 249 | 249 | |
| 250 | state->audio_cpu = | |
| 250 | state->audio_cpu = m | |
| 251 | 251 | |
| 252 | 252 | state_save_register_global(machine, state->spriterambank); |
| 253 | 253 | state_save_register_global(machine, state->charbank); |
| r8581 | r8582 | |
|---|---|---|
| 155 | 155 | enigma2_state *state = (enigma2_state *)machine->driver_data; |
| 156 | 156 | create_interrupt_timers(machine); |
| 157 | 157 | |
| 158 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 159 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 158 | state->maincpu = machine->device("maincpu"); | |
| 159 | state->audiocpu = machine->device("audiocpu"); | |
| 160 | 160 | |
| 161 | 161 | state_save_register_global(machine, state->blink_count); |
| 162 | 162 | state_save_register_global(machine, state->sound_latch); |
| r8581 | r8582 | |
|---|---|---|
| 400 | 400 | workram = auto_alloc_array(machine, UINT16, 0x08000/2); |
| 401 | 401 | |
| 402 | 402 | /* init the memory mapper */ |
| 403 | segaic16_memory_mapper_init( | |
| 403 | segaic16_memory_mapper_init(m | |
| 404 | 404 | |
| 405 | 405 | /* init the FD1094 */ |
| 406 | 406 | fd1094_driver_init(machine, "maincpu", segaic16_memory_mapper_set_decrypted); |
| r8581 | r8582 | |
| 410 | 410 | state->custom_io_w = NULL; |
| 411 | 411 | state->custom_map = NULL; |
| 412 | 412 | |
| 413 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 414 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 415 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 416 | state->ppi8255 = devtag_get_device(machine, "ppi8255"); | |
| 413 | state->maincpu = machine->device("maincpu"); | |
| 414 | state->soundcpu = machine->device("soundcpu"); | |
| 415 | state->subcpu = machine->device("sub"); | |
| 416 | state->ppi8255 = machine->device("ppi8255"); | |
| 417 | 417 | |
| 418 | 418 | state_save_register_global(machine, state->adc_select); |
| 419 | 419 | state_save_register_global(machine, state->vblank_irq_state); |
| r8581 | r8582 | |
| 521 | 521 | static MACHINE_RESET( outrun ) |
| 522 | 522 | { |
| 523 | 523 | segas1x_state *state = (segas1x_state *)machine->driver_data; |
| 524 | fd1094_machine_init( | |
| 524 | fd1094_machine_init(m | |
| 525 | 525 | |
| 526 | 526 | /* reset misc components */ |
| 527 | 527 | segaic16_memory_mapper_reset(machine); |
| r8581 | r8582 | |
| 530 | 530 | segaic16_tilemap_reset(machine, 0); |
| 531 | 531 | |
| 532 | 532 | /* hook the RESET line, which resets CPU #1 */ |
| 533 | m68k_set_reset_callback( | |
| 533 | m68k_set_reset_callback(m | |
| 534 | 534 | |
| 535 | 535 | /* start timers to track interrupts */ |
| 536 | 536 | timer_set(machine, machine->primary_screen->time_until_pos(223), NULL, 223, scanline_callback); |
| r8581 | r8582 | |
|---|---|---|
| 264 | 264 | |
| 265 | 265 | if (strcmp(screen->tag(), "lscreen") == 0) |
| 266 | 266 | { |
| 267 | running_device *k001604 = devtag_get_device(screen->machine, "k001604_1"); | |
| 268 | running_device *voodoo = devtag_get_device(screen->machine, "voodoo0"); | |
| 267 | running_device *k001604 = screen->machine->device("k001604_1"); | |
| 268 | running_device *voodoo = screen->machine->device("voodoo0"); | |
| 269 | 269 | |
| 270 | 270 | // k001604_draw_back_layer(k001604, bitmap, cliprect); |
| 271 | 271 | |
| r8581 | r8582 | |
| 275 | 275 | } |
| 276 | 276 | else if (strcmp(screen->tag(), "rscreen") == 0) |
| 277 | 277 | { |
| 278 | running_device *k001604 = devtag_get_device(screen->machine, "k001604_2"); | |
| 279 | running_device *voodoo = devtag_get_device(screen->machine, "voodoo1"); | |
| 278 | running_device *k001604 = screen->machine->device("k001604_2"); | |
| 279 | running_device *voodoo = screen->machine->device("voodoo1"); | |
| 280 | 280 | |
| 281 | 281 | // k001604_draw_back_layer(k001604, bitmap, cliprect); |
| 282 | 282 | |
| r8581 | r8582 | |
| 293 | 293 | |
| 294 | 294 | static READ32_HANDLER( gticlub_k001604_tile_r ) |
| 295 | 295 | { |
| 296 | running_device *k001604 = | |
| 296 | running_device *k001604 = | |
| 297 | 297 | return k001604_tile_r(k001604, offset, mem_mask); |
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | static WRITE32_HANDLER( gticlub_k001604_tile_w ) |
| 301 | 301 | { |
| 302 | running_device *k001604 = | |
| 302 | running_device *k001604 = | |
| 303 | 303 | k001604_tile_w(k001604, offset, data, mem_mask); |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | |
| 307 | 307 | static READ32_HANDLER( gticlub_k001604_char_r ) |
| 308 | 308 | { |
| 309 | running_device *k001604 = | |
| 309 | running_device *k001604 = | |
| 310 | 310 | return k001604_char_r(k001604, offset, mem_mask); |
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | static WRITE32_HANDLER( gticlub_k001604_char_w ) |
| 314 | 314 | { |
| 315 | running_device *k001604 = | |
| 315 | running_device *k001604 = | |
| 316 | 316 | k001604_char_w(k001604, offset, data, mem_mask); |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | static READ32_HANDLER( gticlub_k001604_reg_r ) |
| 320 | 320 | { |
| 321 | running_device *k001604 = | |
| 321 | running_device *k001604 = | |
| 322 | 322 | return k001604_reg_r(k001604, offset, mem_mask); |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | static WRITE32_HANDLER( gticlub_k001604_reg_w ) |
| 326 | 326 | { |
| 327 | running_device *k001604 = | |
| 327 | running_device *k001604 = | |
| 328 | 328 | k001604_reg_w(k001604, offset, data, mem_mask); |
| 329 | 329 | } |
| 330 | 330 | |
| r8581 | r8582 | |
| 348 | 348 | static READ8_HANDLER( sysreg_r ) |
| 349 | 349 | { |
| 350 | 350 | static const char *const portnames[] = { "IN0", "IN1", "IN2", "IN3" }; |
| 351 | running_device *adc1038 = devtag_get_device(space->machine, "adc1038"); | |
| 352 | running_device *eeprom = devtag_get_device(space->machine, "eeprom"); | |
| 351 | running_device *adc1038 = space->machine->device("adc1038"); | |
| 352 | running_device *eeprom = space->machine->device("eeprom"); | |
| 353 | 353 | |
| 354 | 354 | switch (offset) |
| 355 | 355 | { |
| r8581 | r8582 | |
| 383 | 383 | |
| 384 | 384 | static WRITE8_HANDLER( sysreg_w ) |
| 385 | 385 | { |
| 386 | running_device *adc1038 = devtag_get_device(space->machine, "adc1038"); | |
| 387 | running_device *eeprom = devtag_get_device(space->machine, "eeprom"); | |
| 386 | running_device *adc1038 = space->machine->device("adc1038"); | |
| 387 | running_device *eeprom = space->machine->device("eeprom"); | |
| 388 | 388 | |
| 389 | 389 | switch (offset) |
| 390 | 390 | { |
| r8581 | r8582 | |
| 422 | 422 | static MACHINE_START( gticlub ) |
| 423 | 423 | { |
| 424 | 424 | /* set conservative DRC options */ |
| 425 | ppcdrc_set_options( | |
| 425 | ppcdrc_set_options(m | |
| 426 | 426 | |
| 427 | 427 | /* configure fast RAM regions for DRC */ |
| 428 | ppcdrc_add_fastram( | |
| 428 | ppcdrc_add_fastram(m | |
| 429 | 429 | } |
| 430 | 430 | |
| 431 | 431 | static ADDRESS_MAP_START( gticlub_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| r8581 | r8582 | |
|---|---|---|
| 1403 | 1403 | { |
| 1404 | 1404 | mazerbla_state *state = (mazerbla_state *)machine->driver_data; |
| 1405 | 1405 | |
| 1406 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1407 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 1406 | state->maincpu = machine->device("maincpu"); | |
| 1407 | state->subcpu = machine->device("sub"); | |
| 1408 | 1408 | |
| 1409 | 1409 | state_save_register_global_array(machine, state->vcu_video_reg); |
| 1410 | 1410 | state_save_register_global(machine, state->vcu_gfx_addr); |
| r8581 | r8582 | |
| 1470 | 1470 | |
| 1471 | 1471 | memset(state->lookup_ram, 0, ARRAY_LENGTH(state->lookup_ram)); |
| 1472 | 1472 | |
| 1473 | cpu_set_irq_callback( | |
| 1473 | cpu_set_irq_callback(m | |
| 1474 | 1474 | } |
| 1475 | 1475 | |
| 1476 | 1476 |
| r8581 | r8582 | |
|---|---|---|
| 919 | 919 | |
| 920 | 920 | static MACHINE_START( namcona1 ) |
| 921 | 921 | { |
| 922 | c140_set_base( | |
| 922 | c140_set_base(m | |
| 923 | 923 | } |
| 924 | 924 | |
| 925 | 925 | // for games with the MCU emulated, the MCU boots the 68000. don't allow it before that. |
| r8581 | r8582 | |
|---|---|---|
| 49 | 49 | va_start( v, s_fmt ); |
| 50 | 50 | vsprintf( buf, s_fmt, v ); |
| 51 | 51 | va_end( v ); |
| 52 | logerror( "%08x: %s", cpu_get_pc( | |
| 52 | logerror( "%08x: %s", cpu_get_pc(m | |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | #else |
| r8581 | r8582 | |
| 607 | 607 | { |
| 608 | 608 | UINT8 interrupt = scc68070->picr1 & 7; |
| 609 | 609 | scc68070->timers.timer_status_register |= TSR_OV0; |
| 610 | cpu_set_input_line_vector( | |
| 610 | cpu_set_input_line_vector(m | |
| 611 | 611 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE); |
| 612 | 612 | } |
| 613 | 613 | scc68070_set_timer_callback(&state->scc68070_regs, 0); |
| r8581 | r8582 | |
| 1704 | 1704 | |
| 1705 | 1705 | // Set the CDIC interrupt line |
| 1706 | 1706 | verboselog(machine, 0, "Setting CDIC interrupt line for soundmap decode\n" ); |
| 1707 | cpu_set_input_line_vector( | |
| 1707 | cpu_set_input_line_vector(m | |
| 1708 | 1708 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_4, ASSERT_LINE); |
| 1709 | 1709 | } |
| 1710 | 1710 | else |
| r8581 | r8582 | |
| 1930 | 1930 | |
| 1931 | 1931 | //printf( "Setting CDIC interrupt line\n" ); |
| 1932 | 1932 | verboselog(machine, 0, "Setting CDIC interrupt line for audio sector\n" ); |
| 1933 | cpu_set_input_line_vector( | |
| 1933 | cpu_set_input_line_vector(m | |
| 1934 | 1934 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_4, ASSERT_LINE); |
| 1935 | 1935 | } |
| 1936 | 1936 | } |
| r8581 | r8582 | |
| 1950 | 1950 | { |
| 1951 | 1951 | //printf( "Setting CDIC interrupt line\n" ); |
| 1952 | 1952 | verboselog(machine, 0, "Setting CDIC interrupt line for message sector\n" ); |
| 1953 | cpu_set_input_line_vector( | |
| 1953 | cpu_set_input_line_vector(m | |
| 1954 | 1954 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_4, ASSERT_LINE); |
| 1955 | 1955 | } |
| 1956 | 1956 | else |
| r8581 | r8582 | |
| 1970 | 1970 | |
| 1971 | 1971 | //printf( "Setting CDIC interrupt line\n" ); |
| 1972 | 1972 | verboselog(machine, 0, "Setting CDIC interrupt line for data sector\n" ); |
| 1973 | cpu_set_input_line_vector( | |
| 1973 | cpu_set_input_line_vector(m | |
| 1974 | 1974 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_4, ASSERT_LINE); |
| 1975 | 1975 | } |
| 1976 | 1976 | } |
| r8581 | r8582 | |
| 2033 | 2033 | |
| 2034 | 2034 | verboselog(machine, 0, "Playing CDDA sector from MSF location %06x\n", cdic->time | 2 ); |
| 2035 | 2035 | |
| 2036 | cdda_start_audio( | |
| 2036 | cdda_start_audio(m | |
| 2037 | 2037 | |
| 2038 | 2038 | } |
| 2039 | 2039 | |
| r8581 | r8582 | |
| 2063 | 2063 | } |
| 2064 | 2064 | |
| 2065 | 2065 | verboselog(machine, 0, "Setting CDIC interrupt line for CDDA sector\n" ); |
| 2066 | cpu_set_input_line_vector( | |
| 2066 | cpu_set_input_line_vector(m | |
| 2067 | 2067 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_4, ASSERT_LINE); |
| 2068 | 2068 | break; |
| 2069 | 2069 | } |
| r8581 | r8582 | |
| 2114 | 2114 | cdic->time = next_msf << 8; |
| 2115 | 2115 | |
| 2116 | 2116 | verboselog(machine, 0, "Setting CDIC interrupt line for Seek sector\n" ); |
| 2117 | cpu_set_input_line_vector( | |
| 2117 | cpu_set_input_line_vector(m | |
| 2118 | 2118 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_4, ASSERT_LINE); |
| 2119 | 2119 | break; |
| 2120 | 2120 | } |
| r8581 | r8582 | |
| 2338 | 2338 | break; |
| 2339 | 2339 | } |
| 2340 | 2340 | case 0x2b: // Stop CDDA |
| 2341 | cdda_stop_audio( | |
| 2341 | cdda_stop_audio( | |
| 2342 | 2342 | timer_adjust_oneshot(cdic->interrupt_timer, attotime_never, 0); |
| 2343 | 2343 | break; |
| 2344 | 2344 | case 0x23: // Reset Mode 1 |
| r8581 | r8582 | |
| 2420 | 2420 | slave_regs_t *slave = &state->slave_regs; |
| 2421 | 2421 | |
| 2422 | 2422 | verboselog(machine, 0, "Asserting IRQ2\n" ); |
| 2423 | cpu_set_input_line_vector( | |
| 2423 | cpu_set_input_line_vector(m | |
| 2424 | 2424 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_2, ASSERT_LINE); |
| 2425 | 2425 | timer_adjust_oneshot(slave->interrupt_timer, attotime_never, 0); |
| 2426 | 2426 | } |
| r8581 | r8582 | |
| 3279 | 3279 | UINT8 interrupt = (state->scc68070_regs.lir >> 4) & 7; |
| 3280 | 3280 | if(interrupt) |
| 3281 | 3281 | { |
| 3282 | cpu_set_input_line_vector( | |
| 3282 | cpu_set_input_line_vector(m | |
| 3283 | 3283 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE); |
| 3284 | 3284 | } |
| 3285 | 3285 | } |
| r8581 | r8582 | |
| 3289 | 3289 | UINT8 interrupt = state->scc68070_regs.lir & 7; |
| 3290 | 3290 | if(interrupt) |
| 3291 | 3291 | { |
| 3292 | cpu_set_input_line_vector( | |
| 3292 | cpu_set_input_line_vector(m | |
| 3293 | 3293 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE); |
| 3294 | 3294 | } |
| 3295 | 3295 | } |
| r8581 | r8582 | |
| 3370 | 3370 | UINT8 interrupt = (state->scc68070_regs.lir >> 4) & 7; |
| 3371 | 3371 | if(interrupt) |
| 3372 | 3372 | { |
| 3373 | cpu_set_input_line_vector( | |
| 3373 | cpu_set_input_line_vector(m | |
| 3374 | 3374 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE); |
| 3375 | 3375 | } |
| 3376 | 3376 | } |
| r8581 | r8582 | |
| 3380 | 3380 | UINT8 interrupt = state->scc68070_regs.lir & 7; |
| 3381 | 3381 | if(interrupt) |
| 3382 | 3382 | { |
| 3383 | cpu_set_input_line_vector( | |
| 3383 | cpu_set_input_line_vector(m | |
| 3384 | 3384 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE); |
| 3385 | 3385 | } |
| 3386 | 3386 | } |
| r8581 | r8582 | |
| 4465 | 4465 | static VIDEO_UPDATE(cdi) |
| 4466 | 4466 | { |
| 4467 | 4467 | cdi_state *state = (cdi_state *)screen->machine->driver_data; |
| 4468 | running_device *main_screen = devtag_get_device(screen->machine, "screen"); | |
| 4469 | running_device *lcd_screen = devtag_get_device(screen->machine, "lcd"); | |
| 4468 | running_device *main_screen = screen->machine->device("screen"); | |
| 4469 | running_device *lcd_screen = screen->machine->device("lcd"); | |
| 4470 | 4470 | |
| 4471 | 4471 | if (screen == main_screen) |
| 4472 | 4472 | { |
| r8581 | r8582 | |
| 4488 | 4488 | if(state->timer_set == 0) |
| 4489 | 4489 | { |
| 4490 | 4490 | state->timer_set = 1; |
| 4491 | cpu_set_input_line_vector( | |
| 4491 | cpu_set_input_line_vector(m | |
| 4492 | 4492 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_4, ASSERT_LINE); |
| 4493 | 4493 | timer_adjust_oneshot(state->test_timer, ATTOTIME_IN_HZ(10000), 0); |
| 4494 | 4494 | } |
| r8581 | r8582 | |
| 4616 | 4616 | cdi_state *state = (cdi_state *)machine->driver_data; |
| 4617 | 4617 | UINT16 *src = (UINT16*)memory_region(machine, "maincpu"); |
| 4618 | 4618 | UINT16 *dst = state->planea; |
| 4619 | //running_device *cdrom_dev = | |
| 4619 | //running_device *cdrom_dev = m | |
| 4620 | 4620 | memcpy(dst, src, 0x8); |
| 4621 | 4621 | |
| 4622 | 4622 | scc68070_init(machine, &state->scc68070_regs); |
| r8581 | r8582 | |
| 4624 | 4624 | slave_init(machine, &state->slave_regs); |
| 4625 | 4625 | |
| 4626 | 4626 | state->cdic_regs.cd = cdrom_open(get_disk_handle(machine, "cdrom")); |
| 4627 | cdda_set_cdrom( | |
| 4627 | cdda_set_cdrom(m | |
| 4628 | 4628 | |
| 4629 | | |
| 4629 | m | |
| 4630 | 4630 | |
| 4631 | 4631 | state->dmadac[0] = machine->device<dmadac_sound_device>("dac1"); |
| 4632 | 4632 | state->dmadac[1] = machine->device<dmadac_sound_device>("dac2"); |
| r8581 | r8582 | |
|---|---|---|
| 483 | 483 | // bank = -1; |
| 484 | 484 | // lastvalue = -1; |
| 485 | 485 | // hv_blank = 0; |
| 486 | cpu_set_irq_callback(devtag_get_device(machine, "maincpu"), irq_callback); | |
| 487 | pcat_dyn_devices.pit8253 = devtag_get_device( machine, "pit8254" ); | |
| 488 | pcat_dyn_devices.pic8259_1 = devtag_get_device( machine, "pic8259_1" ); | |
| 489 | pcat_dyn_devices.pic8259_2 = devtag_get_device( machine, "pic8259_2" ); | |
| 490 | pcat_dyn_devices.dma8237_1 = devtag_get_device( machine, "dma8237_1" ); | |
| 491 | pcat_dyn_devices.dma8237_2 = devtag_get_device( machine, "dma8237_2" ); | |
| 486 | cpu_set_irq_callback(machine->device("maincpu"), irq_callback); | |
| 487 | pcat_dyn_devices.pit8253 = machine->device( "pit8254" ); | |
| 488 | pcat_dyn_devices.pic8259_1 = machine->device( "pic8259_1" ); | |
| 489 | pcat_dyn_devices.pic8259_2 = machine->device( "pic8259_2" ); | |
| 490 | pcat_dyn_devices.dma8237_1 = machine->device( "dma8237_1" ); | |
| 491 | pcat_dyn_devices.dma8237_2 = machine->device( "dma8237_2" ); | |
| 492 | 492 | |
| 493 | 493 | init_pc_common(machine, PCCOMMON_KEYBOARD_AT, pcat_dyn_set_keyb_int); |
| 494 | 494 | mc146818_init(machine, MC146818_STANDARD); |
| r8581 | r8582 | |
|---|---|---|
| 389 | 389 | { |
| 390 | 390 | dkong_state *state = (dkong_state *)machine->driver_data; |
| 391 | 391 | |
| 392 | state->dev_n2a03a = devtag_get_device(machine, "n2a03a"); | |
| 393 | state->dev_n2a03b = devtag_get_device(machine, "n2a03b"); | |
| 394 | state->dev_6h = devtag_get_device(machine, "ls259.6h"); | |
| 395 | state->dev_vp2 = devtag_get_device(machine, "virtual_p2"); | |
| 392 | state->dev_n2a03a = machine->device("n2a03a"); | |
| 393 | state->dev_n2a03b = machine->device("n2a03b"); | |
| 394 | state->dev_6h = machine->device("ls259.6h"); | |
| 395 | state->dev_vp2 = machine->device("virtual_p2"); | |
| 396 | 396 | } |
| 397 | 397 | |
| 398 | 398 | static MACHINE_START( dkong2b ) |
| r8581 | r8582 | |
|---|---|---|
| 404 | 404 | { |
| 405 | 405 | appoooh_state *state = (appoooh_state *)machine->driver_data; |
| 406 | 406 | |
| 407 | state->adpcm = | |
| 407 | state->adpcm = m | |
| 408 | 408 | |
| 409 | 409 | state_save_register_global(machine, state->adpcm_data); |
| 410 | 410 | state_save_register_global(machine, state->adpcm_address); |
| r8581 | r8582 | |
|---|---|---|
| 277 | 277 | { |
| 278 | 278 | metlclsh_state *state = (metlclsh_state *)machine->driver_data; |
| 279 | 279 | |
| 280 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 281 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 280 | state->maincpu = machine->device("maincpu"); | |
| 281 | state->subcpu = machine->device("sub"); | |
| 282 | 282 | |
| 283 | 283 | state_save_register_global(machine, state->write_mask); |
| 284 | 284 | state_save_register_global(machine, state->gfxbank); |
| r8581 | r8582 | |
|---|---|---|
| 5153 | 5153 | GFXDECODE_ENTRY( "gfx2", 0, tiles8x32x4_layout, 128, 4 ) |
| 5154 | 5154 | GFXDECODE_END |
| 5155 | 5155 | |
| 5156 | static GFXDECODE_START( magical ) | |
| 5157 | GFXDECODE_ENTRY( "gfx1", 0, tiles8x8x3_layout, 0, 32 ) | |
| 5158 | GFXDECODE_ENTRY( "gfx2", 0, tiles8x32x4_layout, 0, 16 ) | |
| 5159 | GFXDECODE_END | |
| 5160 | ||
| 5156 | 5161 | static GFXDECODE_START( cm ) |
| 5157 | 5162 | GFXDECODE_ENTRY( "gfx1", 0, tiles8x8x3_layout, 0, 16 ) |
| 5158 | 5163 | GFXDECODE_ENTRY( "gfx2", 0, tiles8x32x4_layout, 128+64, 4 ) // or is there a register for the +64? |
| r8581 | r8582 | |
| 5975 | 5980 | |
| 5976 | 5981 | MACHINE_DRIVER_END |
| 5977 | 5982 | |
| 5983 | static PALETTE_INIT(magical) | |
| 5984 | { | |
| 5985 | int i; | |
| 5986 | for (i = 0; i < 0x100; i++) | |
| 5987 | { | |
| 5988 | int r,g,b; | |
| 5989 | ||
| 5990 | UINT8*proms = memory_region(machine, "proms"); | |
| 5991 | ||
| 5992 | b = proms[0x000 + i] << 4; | |
| 5993 | g = proms[0x100 + i] << 4; | |
| 5994 | r = proms[0x200 + i] << 4; | |
| 5995 | ||
| 5996 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); | |
| 5997 | } | |
| 5998 | } | |
| 5999 | ||
| 5978 | 6000 | static MACHINE_DRIVER_START( magical ) |
| 5979 | 6001 | |
| 5980 | 6002 | MDRV_DRIVER_DATA(goldstar_state) |
| r8581 | r8582 | |
| 5997 | 6019 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 5998 | 6020 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 5999 | 6021 | MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) |
| 6000 | MDRV_PALETTE_INIT( | |
| 6022 | MDRV_PALETTE_INIT(magical | |
| 6001 | 6023 | |
| 6002 | MDRV_GFXDECODE( | |
| 6024 | MDRV_GFXDECODE(magical) | |
| 6003 | 6025 | MDRV_PALETTE_LENGTH(256) |
| 6004 | 6026 | MDRV_NVRAM_HANDLER(goldstar) |
| 6005 | 6027 | |
| r8581 | r8582 | |
| 7463 | 7485 | ROM_LOAD( "g13", 0x0000, 0x0020, CRC(6df3f972) SHA1(0096a7f7452b70cac6c0752cb62e24b643015b5c) ) |
| 7464 | 7486 | ROM_END |
| 7465 | 7487 | |
| 7488 | ||
| 7489 | /* | |
| 7490 | ||
| 7491 | Magical Tonic | |
| 7492 | ||
| 7493 | unknown, 40 pin cpu (plastic box, with "Tonic" sticker on it) | |
| 7494 | 8255 x3 | |
| 7495 | YM2203 | |
| 7496 | 12 MHz | |
| 7497 | ||
| 7498 | 4x DSW | |
| 7499 | ||
| 7500 | */ | |
| 7501 | ||
| 7502 | /* is this the original magical odds? */ | |
| 7503 | static DRIVER_INIT(mtonic) | |
| 7504 | { | |
| 7505 | int A; | |
| 7506 | UINT8 *ROM = memory_region(machine, "maincpu"); | |
| 7507 | ||
| 7508 | for (A = 0;A < 0x8000;A++) | |
| 7509 | { | |
| 7510 | if ((A & 4) == 4) | |
| 7511 | ROM[A] ^= 0x01; | |
| 7512 | ||
| 7513 | ROM[A] = BITSWAP8(ROM[A], 3,6,5,4,7,2,1,0); | |
| 7514 | } | |
| 7515 | } | |
| 7516 | ||
| 7517 | ||
| 7518 | ROM_START( mtonic ) | |
| 7519 | ROM_REGION( 0x10000, "maincpu", 0 ) | |
| 7520 | ROM_LOAD( "8.e6", 0x0000, 0x8000, CRC(01daf2af) SHA1(cb9b12c79dce3c9123510a49dffc9f3cee056cf6) ) | |
| 7521 | ROM_LOAD( "9.e6", 0x8000, 0x8000, CRC(1770ac79) SHA1(cadfd00ae75b90b1d202d741828e0afbd5ba0bec) ) | |
| 7522 | ||
| 7523 | ROM_REGION( 0x30000, "gfx1", 0 ) | |
| 7524 | ROM_LOAD( "5.j10", 0x00000, 0x10000, CRC(b8032ea3) SHA1(15e5335a583d8e7a5422cd4d1d7342874a4962ab) ) | |
| 7525 | ROM_LOAD( "6.j11", 0x10000, 0x10000, CRC(ff38ff30) SHA1(8fef6e1fe7c307c69c9dcafa69ecf66467b9cb41) ) | |
| 7526 | ROM_LOAD( "7.j12", 0x20000, 0x10000, CRC(8f1d2db9) SHA1(200de01334905079dca542541e442d4194ecd913) ) | |
| 7527 | ||
| 7528 | ROM_REGION( 0x10000, "gfx2", 0 ) | |
| 7529 | ROM_LOAD( "1.l10", 0x0000, 0x4000, CRC(746588db) SHA1(2a0af552011246d4cc0cd0b670907cf8685ce8ef) ) | |
| 7530 | ROM_LOAD( "2.l11", 0x4000, 0x4000, CRC(8b7dd248) SHA1(a3ebde9fd0b6b1e42aa9b6d8e30c225abf2f80ce) ) | |
| 7531 | ROM_LOAD( "3.l12", 0x8000, 0x4000, CRC(de05e678) SHA1(8b9fcb9f912075a20a9ae38100006b57d508e0e7) ) | |
| 7532 | ROM_LOAD( "4.l13", 0xc000, 0x4000, CRC(8c542eee) SHA1(cb424e2a67c6d39302beca7cd5244bcad4a91189) ) | |
| 7533 | ||
| 7534 | ROM_REGION( 0x200, "proms", 0 ) | |
| 7535 | ROM_LOAD( "prom1", 0x0000, 0x0100, NO_DUMP ) | |
| 7536 | ROM_LOAD( "prom2", 0x0100, 0x0100, NO_DUMP ) | |
| 7537 | ||
| 7538 | ROM_REGION( 0x40, "proms2", 0 ) | |
| 7539 | ROM_LOAD( "prom3", 0x0000, 0x0020, NO_DUMP ) | |
| 7540 | ROM_END | |
| 7541 | ||
| 7542 | ||
| 7543 | // is this a bootleg board? | |
| 7466 | 7544 | ROM_START( magical ) |
| 7467 | 7545 | ROM_REGION( 0x20000, "maincpu", 0 ) |
| 7468 | 7546 | ROM_LOAD( "8_p6_d12.512", 0x00000, 0x08000, CRC(6978c662) SHA1(cfdbcdcd4085c264e1d0ad4f18160b40d2d4e406) ) |
| r8581 | r8582 | |
| 7471 | 7549 | ROM_IGNORE(0xc000) // BADADDR --xxxxxxxxxxxxxx |
| 7472 | 7550 | |
| 7473 | 7551 | ROM_REGION( 0x30000, "gfx1", 0 ) |
| 7474 | ROM_LOAD( "5_l5_g2.512", 0x | |
| 7552 | ROM_LOAD( "5_l5_g2.512", 0x20000, 0x10000, CRC(f0ffb199) SHA1(383406e6ab74e8cecaf5574a879bf24aa606ac37) ) | |
| 7475 | 7553 | ROM_LOAD( "6_l6_g3.512", 0x10000, 0x10000, CRC(3e44d92b) SHA1(4e00e26a4dbf326c0c919c40382505189e82c85b) ) |
| 7476 | ROM_LOAD( "7_l7_g5.512", 0x | |
| 7554 | ROM_LOAD( "7_l7_g5.512", 0x00000, 0x10000, CRC(654bb754) SHA1(346bfbf85fc38797cf422da47d474e2ef2ef459c) ) | |
| 7477 | 7555 | |
| 7478 | 7556 | ROM_REGION( 0x8000, "gfx2", 0 ) |
| 7479 | ROM_LOAD( "1_m1_h2.764", 0x0 | |
| 7557 | ROM_LOAD( "1_m1_h2.764", 0x06000, 0x2000, CRC(d7d657e4) SHA1(53e2717edb4cdeac83cd519b08225784600afa61) ) | |
| 7480 | 7558 | ROM_LOAD( "2_m2_h3.764", 0x02000, 0x2000, CRC(fb7541d5) SHA1(62a36c186b32bd98dff5c3f0fa5f2ad13992835c) ) |
| 7481 | 7559 | ROM_LOAD( "3_m3_h5.764", 0x04000, 0x2000, CRC(49572d8b) SHA1(ceaaf911f58cceec82f429ca9114bffa1a67ec12) ) |
| 7482 | ROM_LOAD( "4_m4_h6.764", 0x0 | |
| 7560 | ROM_LOAD( "4_m4_h6.764", 0x00000, 0x2000, CRC(cccfaa5d) SHA1(69d9b8a26c769fd69093610e92918c9a086a2077) ) | |
| 7483 | 7561 | |
| 7484 | ROM_REGION( 0x200, "proms", 0 ) | |
| 7485 | ROM_LOAD( "proms", 0x0000, 0x0200, NO_DUMP ) | |
| 7562 | ROM_REGION( 0x300, "proms", 0 ) | |
| 7563 | ROM_LOAD( "82s129a.3c", 0x000, 0x100, CRC(8c4c0dc8) SHA1(1b3ddbd253555efd1f48d469b42b272b9d96bacf) ) | |
| 7564 | ROM_LOAD( "82s129a.1c", 0x100, 0x100, CRC(55e3c65f) SHA1(f51d08e0b2e4d97d2eacb1f6d52777065bbe1ae5) ) | |
| 7565 | ROM_LOAD( "82s129a.2c", 0x200, 0x100, CRC(4d46f40a) SHA1(c141e94ae5705773605b7a094e65625b4a21db73) ) | |
| 7486 | 7566 | |
| 7487 | ROM_REGION( 0x20, "proms2", ROMREGION_ERASE00 ) | |
| 7488 | ROM_COPY( "proms", 0x00000, 0x00000, 0x20 ) // copy some fake colours from the no dump region | |
| 7567 | ROM_REGION( 0x100, "proms2", 0 ) | |
| 7568 | ROM_LOAD( "82s129a.6j", 0x000, 0x100, CRC(1200815e) SHA1(8c9a856274246644af25961a2e731dbcb73f12b9) ) | |
| 7489 | 7569 | |
| 7490 | ROM_REGION( 0x100, "unkprom", ROMREGION_ERASE00 ) | |
| 7491 | //ROM_LOAD( "g14", 0x0000, 0x0100, CRC(bd48de71) SHA1(e4fa1e774af1499bc568be5b2deabb859d8c8172) ) | |
| 7570 | ROM_REGION( 0x100, "proms3", 0 ) | |
| 7571 | ROM_LOAD( "dm74s288.1a", 0x00, 0x20, CRC(6a13320b) SHA1(6d7c663477f3fbc22fb716e15bfdd9c452eb686a) ) | |
| 7572 | ROM_LOAD( "dm74s288.1b", 0x20, 0x20, CRC(e04abac8) SHA1(4f2adf9f1482470b6de6d0e547623f62e95eaf24) ) | |
| 7573 | ROM_LOAD( "dm74s288.12k",0x40, 0x20, CRC(03231e84) SHA1(92abdf6f8ef705b260378e90e6d591da056c2cee) ) | |
| 7574 | ROM_END | |
| 7492 | 7575 | |
| 7493 | ROM_REGION( 0x20, "unkprom2", ROMREGION_ERASE00 ) | |
| 7494 | //ROM_LOAD( "g13", 0x0000, 0x0020, CRC(6df3f972) SHA1(0096a7f7452b70cac6c0752cb62e24b643015b5c) ) | |
| 7576 | // is this a bootleg board? | |
| 7577 | // program is the same as above set (but without the oversized rom 9), only gfx1 differs | |
| 7578 | // the proms came from this board | |
| 7579 | ROM_START( magicala ) | |
| 7580 | ROM_REGION( 0x20000, "maincpu", 0 ) | |
| 7581 | ROM_LOAD( "8.12e", 0x00000, 0x08000, CRC(6978c662) SHA1(cfdbcdcd4085c264e1d0ad4f18160b40d2d4e406) ) | |
| 7582 | ROM_IGNORE(0x8000) // 1ST AND 2ND HALF IDENTICAL | |
| 7583 | ROM_LOAD( "9.14e", 0x0c000, 0x04000, CRC(b3661c55) SHA1(f576d434ccec6f342455c18ada156d29634627cb) ) | |
| 7584 | ||
| 7585 | ROM_REGION( 0x30000, "gfx1", 0 ) | |
| 7586 | ROM_LOAD( "5.2f", 0x20000, 0x10000, CRC(39e6ad6f) SHA1(0075015b3e794d82fb62984a41be48d17833c9f0) ) | |
| 7587 | ROM_LOAD( "6.3f", 0x10000, 0x10000, CRC(42e03002) SHA1(5c4f2a1aa91d3c0906665bec7423f8579f434dc1) ) | |
| 7588 | ROM_LOAD( "7.5f", 0x00000, 0x10000, CRC(5301a9a4) SHA1(f592bfc5f0d835cab6029aed7d6dcdd9d2ee1a2c) ) | |
| 7589 | ||
| 7590 | ROM_REGION( 0x8000, "gfx2", 0 ) | |
| 7591 | ROM_LOAD( "1_m1_h2.764", 0x06000, 0x2000, CRC(d7d657e4) SHA1(53e2717edb4cdeac83cd519b08225784600afa61) ) | |
| 7592 | ROM_LOAD( "2_m2_h3.764", 0x02000, 0x2000, CRC(fb7541d5) SHA1(62a36c186b32bd98dff5c3f0fa5f2ad13992835c) ) | |
| 7593 | ROM_LOAD( "3_m3_h5.764", 0x04000, 0x2000, CRC(49572d8b) SHA1(ceaaf911f58cceec82f429ca9114bffa1a67ec12) ) | |
| 7594 | ROM_LOAD( "4_m4_h6.764", 0x00000, 0x2000, CRC(cccfaa5d) SHA1(69d9b8a26c769fd69093610e92918c9a086a2077) ) | |
| 7595 | ||
| 7596 | ROM_REGION( 0x300, "proms", 0 ) | |
| 7597 | ROM_LOAD( "82s129a.3c", 0x000, 0x100, CRC(8c4c0dc8) SHA1(1b3ddbd253555efd1f48d469b42b272b9d96bacf) ) | |
| 7598 | ROM_LOAD( "82s129a.1c", 0x100, 0x100, CRC(55e3c65f) SHA1(f51d08e0b2e4d97d2eacb1f6d52777065bbe1ae5) ) | |
| 7599 | ROM_LOAD( "82s129a.2c", 0x200, 0x100, CRC(4d46f40a) SHA1(c141e94ae5705773605b7a094e65625b4a21db73) ) | |
| 7600 | ||
| 7601 | ROM_REGION( 0x100, "proms2", 0 ) | |
| 7602 | ROM_LOAD( "82s129a.6j", 0x000, 0x100, CRC(1200815e) SHA1(8c9a856274246644af25961a2e731dbcb73f12b9) ) | |
| 7603 | ||
| 7604 | ROM_REGION( 0x100, "proms3", 0 ) | |
| 7605 | ROM_LOAD( "dm74s288.1a", 0x00, 0x20, CRC(6a13320b) SHA1(6d7c663477f3fbc22fb716e15bfdd9c452eb686a) ) | |
| 7606 | ROM_LOAD( "dm74s288.1b", 0x20, 0x20, CRC(e04abac8) SHA1(4f2adf9f1482470b6de6d0e547623f62e95eaf24) ) | |
| 7607 | ROM_LOAD( "dm74s288.12k",0x40, 0x20, CRC(03231e84) SHA1(92abdf6f8ef705b260378e90e6d591da056c2cee) ) | |
| 7495 | 7608 | ROM_END |
| 7496 | 7609 | |
| 7497 | 7610 | /* |
| 7498 | 7611 | |
| 7499 | unknown koren or chinese bootleg of something? | |
| 7612 | unknown korean or chinese bootleg of something? | |
| 7500 | 7613 | |
| 7501 | 7614 | XTAL 12MHz |
| 7502 | 7615 | Z80 @ 3MHz |
| r8581 | r8582 | |
| 7999 | 8112 | ROM_LOAD( "wcat3.d13", 0x0000, 0x0020, CRC(eab832ed) SHA1(0fbc8914ba1805cfc6698fe7f137a934e63a4f89) ) |
| 8000 | 8113 | ROM_END |
| 8001 | 8114 | |
| 8002 | /* | |
| 8003 | 8115 | |
| 8004 | Magical Tonic | |
| 8005 | ||
| 8006 | unknown, 40 pin cpu (plastic box, with "Tonic" sticker on it) | |
| 8007 | 8255 x3 | |
| 8008 | YM2203 | |
| 8009 | 12 MHz | |
| 8010 | ||
| 8011 | 4x DSW | |
| 8012 | ||
| 8013 | */ | |
| 8014 | ||
| 8015 | static DRIVER_INIT(mtonic) | |
| 8016 | { | |
| 8017 | int A; | |
| 8018 | UINT8 *ROM = memory_region(machine, "maincpu"); | |
| 8019 | ||
| 8020 | for (A = 0;A < 0x8000;A++) | |
| 8021 | { | |
| 8022 | if ((A & 4) == 4) | |
| 8023 | ROM[A] ^= 0x01; | |
| 8024 | ||
| 8025 | ROM[A] = BITSWAP8(ROM[A], 3,6,5,4,7,2,1,0); | |
| 8026 | } | |
| 8027 | } | |
| 8028 | ||
| 8029 | ||
| 8030 | ROM_START( mtonic ) | |
| 8031 | ROM_REGION( 0x10000, "maincpu", 0 ) | |
| 8032 | ROM_LOAD( "8.e6", 0x0000, 0x8000, CRC(01daf2af) SHA1(cb9b12c79dce3c9123510a49dffc9f3cee056cf6) ) | |
| 8033 | ROM_LOAD( "9.e6", 0x8000, 0x8000, CRC(1770ac79) SHA1(cadfd00ae75b90b1d202d741828e0afbd5ba0bec) ) | |
| 8034 | ||
| 8035 | ROM_REGION( 0x30000, "gfx1", 0 ) | |
| 8036 | ROM_LOAD( "5.j10", 0x00000, 0x10000, CRC(b8032ea3) SHA1(15e5335a583d8e7a5422cd4d1d7342874a4962ab) ) | |
| 8037 | ROM_LOAD( "6.j11", 0x10000, 0x10000, CRC(ff38ff30) SHA1(8fef6e1fe7c307c69c9dcafa69ecf66467b9cb41) ) | |
| 8038 | ROM_LOAD( "7.j12", 0x20000, 0x10000, CRC(8f1d2db9) SHA1(200de01334905079dca542541e442d4194ecd913) ) | |
| 8039 | ||
| 8040 | ROM_REGION( 0x10000, "gfx2", 0 ) | |
| 8041 | ROM_LOAD( "1.l10", 0x0000, 0x4000, CRC(746588db) SHA1(2a0af552011246d4cc0cd0b670907cf8685ce8ef) ) | |
| 8042 | ROM_LOAD( "2.l11", 0x4000, 0x4000, CRC(8b7dd248) SHA1(a3ebde9fd0b6b1e42aa9b6d8e30c225abf2f80ce) ) | |
| 8043 | ROM_LOAD( "3.l12", 0x8000, 0x4000, CRC(de05e678) SHA1(8b9fcb9f912075a20a9ae38100006b57d508e0e7) ) | |
| 8044 | ROM_LOAD( "4.l13", 0xc000, 0x4000, CRC(8c542eee) SHA1(cb424e2a67c6d39302beca7cd5244bcad4a91189) ) | |
| 8045 | ||
| 8046 | ROM_REGION( 0x200, "proms", 0 ) | |
| 8047 | ROM_LOAD( "prom1", 0x0000, 0x0100, NO_DUMP ) | |
| 8048 | ROM_LOAD( "prom2", 0x0100, 0x0100, NO_DUMP ) | |
| 8049 | ||
| 8050 | ROM_REGION( 0x40, "proms2", 0 ) | |
| 8051 | ROM_LOAD( "prom3", 0x0000, 0x0020, NO_DUMP ) | |
| 8052 | ROM_END | |
| 8053 | ||
| 8054 | ||
| 8055 | 8116 | /* these 'Amcoe' games look like bootlegs of cherry master |
| 8056 | 8117 | the z80 roms are encrypted */ |
| 8057 | 8118 | ROM_START( skill98 ) |
| r8581 | r8582 | |
| 9917 | 9978 | GAME( 198?, wcat3, 0, wcat3, lucky8, 0, ROT0, "E.A.I.", "Wild Cat 3", GAME_NOT_WORKING ) |
| 9918 | 9979 | |
| 9919 | 9980 | GAME( 1992, magical, 0, magical, magical, 0, ROT0, "Pal Company / Micro Manufacturing Inc.", "Magical Odds (set 1)", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) |
| 9920 | GAME( 1991, mtonic, magical, magical, mtonic, mtonic, ROT0, "Pal Company", "Magical Odds (set 2, alt hardware)", GAME_WRONG_COLORS | GAME_NOT_WORKING |GAME_NO_SOUND) // Magical Odds logo / company in GFX | |
| 9981 | GAME( 1992, magicala, magical, magical, magical, 0, ROT0, "Pal Company / Micro Manufacturing Inc.", "Magical Odds (set 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) | |
| 9982 | GAME( 1991, mtonic, magical, magical, mtonic, mtonic, ROT0, "Pal Company", "Magical Odds (set 3, alt hardware)", GAME_WRONG_COLORS | GAME_NOT_WORKING |GAME_NO_SOUND) // Magical Odds logo / company in GFX | |
| 9921 | 9983 | |
| 9922 | 9984 | |
| 9923 | 9985 | /* --- Amcoe games --- */ |
| r8581 | r8582 | |
|---|---|---|
| 340 | 340 | { |
| 341 | 341 | dbz_state *state = (dbz_state *)machine->driver_data; |
| 342 | 342 | |
| 343 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 344 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 345 | state->k053936_1 = devtag_get_device(machine, "k053936_1"); | |
| 346 | state->k053936_2 = devtag_get_device(machine, "k053936_2"); | |
| 347 | state->k056832 = devtag_get_device(machine, "k056832"); | |
| 348 | state->k053246 = devtag_get_device(machine, "k053246"); | |
| 349 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 343 | state->maincpu = machine->device("maincpu"); | |
| 344 | state->audiocpu = machine->device("audiocpu"); | |
| 345 | state->k053936_1 = machine->device("k053936_1"); | |
| 346 | state->k053936_2 = machine->device("k053936_2"); | |
| 347 | state->k056832 = machine->device("k056832"); | |
| 348 | state->k053246 = machine->device("k053246"); | |
| 349 | state->k053251 = machine->device("k053251"); | |
| 350 | 350 | |
| 351 | 351 | state_save_register_global(machine, state->control); |
| 352 | 352 | state_save_register_global(machine, state->sprite_colorbase); |
| r8581 | r8582 | |
|---|---|---|
| 280 | 280 | { |
| 281 | 281 | _20pacgal_state *state = (_20pacgal_state *)machine->driver_data; |
| 282 | 282 | |
| 283 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 284 | state->eeprom = devtag_get_device(machine, "eeprom"); | |
| 283 | state->maincpu = machine->device("maincpu"); | |
| 284 | state->eeprom = machine->device("eeprom"); | |
| 285 | 285 | |
| 286 | 286 | state_save_register_global(machine, state->game_selected); |
| 287 | 287 | state_save_register_global_pointer(machine, state->ram_48000, 0x2000); |
| r8581 | r8582 | |
|---|---|---|
| 102 | 102 | { |
| 103 | 103 | //logerror("PC %04x: 8910 port B = %02x\n",cpu_get_pc(space->cpu),data); |
| 104 | 104 | /* bit 0 is IRQ enable */ |
| 105 | cpu_interrupt_enable(dev | |
| 105 | cpu_interrupt_enable(dev | |
| 106 | 106 | |
| 107 | 107 | /* bit 1 flips screen */ |
| 108 | 108 |
| r8581 | r8582 | |
|---|---|---|
| 55 | 55 | U112: TECMO-5 |
| 56 | 56 | |
| 57 | 57 | --- Team Japump!!! --- |
| 58 | http://www.rainemu.com/japump/ | |
| 59 | http://japump.i.am/ | |
| 60 | 58 | Dumped by Noel Miruru |
| 61 | 59 | 17/Oct/2000 |
| 62 | 60 |
| r8581 | r8582 | |
|---|---|---|
| 3312 | 3312 | |
| 3313 | 3313 | state->beautyb_unkx = 0; |
| 3314 | 3314 | |
| 3315 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 3316 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 3315 | state->maincpu = machine->device("maincpu"); | |
| 3316 | state->soundcpu = machine->device("soundcpu"); | |
| 3317 | 3317 | } |
| 3318 | 3318 | |
| 3319 | 3319 | /* Sys16A */ |
| r8581 | r8582 | |
|---|---|---|
| 157 | 157 | /* update the different PIA pins from the input ports */ |
| 158 | 158 | |
| 159 | 159 | /* CA1 - copy of PA0 (COIN1) */ |
| 160 | pia6821_ca1_w(state->pia1, | |
| 160 | pia6821_ca1_w(state->pia1, | |
| 161 | 161 | |
| 162 | 162 | /* CA2 - copy of PA1 (SERVICE1) */ |
| 163 | pia6821_ca2_w(state->pia1, | |
| 163 | pia6821_ca2_w(state->pia1, | |
| 164 | 164 | |
| 165 | 165 | /* CB1 - (crosshatch) */ |
| 166 | pia6821_cb1_w(state->pia1, | |
| 166 | pia6821_cb1_w(state->pia1, | |
| 167 | 167 | |
| 168 | 168 | /* CB2 - NOT CONNECTED */ |
| 169 | 169 | } |
| r8581 | r8582 | |
| 248 | 248 | static WRITE8_DEVICE_HANDLER( ic48_1_74123_output_changed ) |
| 249 | 249 | { |
| 250 | 250 | nyny_state *state = (nyny_state *)device->machine->driver_data; |
| 251 | pia6821_ca1_w(state->pia2, | |
| 251 | pia6821_ca1_w(state->pia2, | |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | |
| r8581 | r8582 | |
| 681 | 681 | { |
| 682 | 682 | nyny_state *state = (nyny_state *)machine->driver_data; |
| 683 | 683 | |
| 684 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 685 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 686 | state->audiocpu2 = devtag_get_device(machine, "audio2"); | |
| 687 | state->ic48_1 = devtag_get_device(machine, "ic48_1"); | |
| 688 | state->mc6845 = devtag_get_device(machine, "crtc"); | |
| 689 | state->pia1 = devtag_get_device(machine, "pia1"); | |
| 690 | state->pia2 = devtag_get_device(machine, "pia2"); | |
| 684 | state->maincpu = machine->device("maincpu"); | |
| 685 | state->audiocpu = machine->device("audiocpu"); | |
| 686 | state->audiocpu2 = machine->device("audio2"); | |
| 687 | state->ic48_1 = machine->device("ic48_1"); | |
| 688 | state->mc6845 = machine->device("crtc"); | |
| 689 | state->pia1 = machine->device("pia1"); | |
| 690 | state->pia2 = machine->device("pia2"); | |
| 691 | 691 | |
| 692 | 692 | /* setup for save states */ |
| 693 | 693 | state_save_register_global(machine, state->flipscreen); |
| r8581 | r8582 | |
|---|---|---|
| 199 | 199 | if(spotty_sound_cmd == 0xf7) |
| 200 | 200 | return soundlatch_r(space,0); |
| 201 | 201 | else |
| 202 | return okim6295_r( | |
| 202 | return okim6295_r( | |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | static ADDRESS_MAP_START( spotty_sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| r8581 | r8582 | |
|---|---|---|
| 280 | 280 | { |
| 281 | 281 | actfancr_state *state = (actfancr_state *)machine->driver_data; |
| 282 | 282 | |
| 283 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 284 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 283 | state->maincpu = machine->device("maincpu"); | |
| 284 | state->audiocpu = machine->device("audiocpu"); | |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | static MACHINE_START( triothep ) |
| r8581 | r8582 | |
|---|---|---|
| 713 | 713 | static void irq_init(running_machine *machine) |
| 714 | 714 | { |
| 715 | 715 | cputag_set_input_line(machine, "maincpu", 0, CLEAR_LINE); |
| 716 | cpu_set_irq_callback( | |
| 716 | cpu_set_irq_callback(m | |
| 717 | 717 | } |
| 718 | 718 | |
| 719 | 719 | static INTERRUPT_GEN(model1_interrupt) |
| r8581 | r8582 | |
| 838 | 838 | |
| 839 | 839 | static READ16_HANDLER( snd_68k_ready_r ) |
| 840 | 840 | { |
| 841 | int sr = cpu_get_reg( | |
| 841 | int sr = cpu_get_reg( | |
| 842 | 842 | |
| 843 | 843 | if ((sr & 0x0700) > 0x0100) |
| 844 | 844 | { |
| r8581 | r8582 | |
|---|---|---|
| 133 | 133 | CPU 8L PP1-2 PP4-2 CPU 4L 136014-102 136014-177 |
| 134 | 134 | ? PP1-3* PP4-3* CPU 3K 136014-112* * |
| 135 | 135 | ? PP1-4* PP4-4* CPU 4K 136014-113* * |
| 136 | CPU 4M PP1-5 PP4-5 CPU 3E 136014-103 136014-178 | |
| 137 | CPU 4L PP1-6 PP4-6 CPU 4E 136014-104 136014-179 | |
| 136 | CPU 4M PP1-5 PP4-5 CPU 3E 136014-103 or 136014-203 136014-178 | |
| 137 | CPU 4L PP1-6 PP4-6 CPU 4E 136014-104 or 136014-204 136014-179 | |
| 138 | 138 | CPU 3M PP1-7* PP4-7 CPU 3D 136014-114* 136014-184 |
| 139 | 139 | CPU 3L PP1-8* PP4-8 CPU 4D 136014-115* 136014-185 |
| 140 | 140 | CPU 6H PP1-9 PP4-9 CPU 7H 136014-105 or 136014-160 136014-180 |
| r8581 | r8582 | |
| 149 | 149 | ? PP1-2[pal] <-- CPU 2N PAL-1 <-- |
| 150 | 150 | ? PP1-3[pal] <-- CPU 7C PAL-3 <-- |
| 151 | 151 | CPU 9H PP1-4[bpr] <-- CPU 7L 136014-117 <-- |
| 152 | | |
| 152 | CPU 3B | |
| 153 | 153 | |
| 154 | 154 | VID 5N PP1-17 <-- VID 13J 136014-119 == 136014-150 <-- |
| 155 | 155 | VID 5M PP1-18 <-- VID 12J 136014-120 == 136014-151 <-- |
| r8581 | r8582 | |
| 161 | 161 | VID 2M PP1-24* PP4-24 VID 12M 136014-130* 136014-174 |
| 162 | 162 | VID 1N PP1-25 PP4-25 VID 13N 136014-125 or 136014-156 136014-170 |
| 163 | 163 | VID 1M PP1-26 PP4-26 VID 12N 136014-126 or 136014-157 136014-171 |
| 164 | | |
| 164 | VID 1L | |
| 165 | 165 | VID 1F PP1-28 PP4-28 VID 7N 136014-132 or 137205-001? 136014-172 |
| 166 | 166 | VID 1E PP1-29 PP4-29 VID 6N 136014-133 or 137205-001? 136014-173 |
| 167 | 167 | VID 3A PP1-30 <-- VID 2L 136014-127 == 136014-158 <-- |
| r8581 | r8582 | |
| 176 | 176 | VID 3C PP1-12[bpr] PP4-12[bpr] VID 4L 136014-145 136014-191 |
| 177 | 177 | VID 8E PP1-13[bpr] <-- VID 6E 136014-135 <-- |
| 178 | 178 | VID 9E PP1-14[bpr] <-- VID 6D 136014-136 <-- |
| 179 | ? PP1-15[bpr] <-- VID 2D 136014-142 <-- | |
| 180 | ? PP1-16[bpr] <-- VID 2C 136014-143 <-- | |
| 179 | VID 9A PP1-15[bpr] <-- VID 2D 136014-142 <-- | |
| 180 | VID 10A PP1-16[bpr] <-- VID 2C 136014-143 <-- | |
| 181 | 181 | VID 11A PP1-17[bpr] <-- VID 2B 136014-144 <-- |
| 182 | 182 | |
| 183 | 183 | |
| r8581 | r8582 | |
| 210 | 210 | |
| 211 | 211 | Todo: |
| 212 | 212 | |
| 213 | - the bootlegs without Namco devices (topracern, polepos2bi) still | |
| 213 | - the bootlegs without Namco devices (topracern, polepos2bi) still | |
| 214 | 214 | our 06xx and 51xx emulation to boot, this is incorrect. |
| 215 | - these sets also don't update the ingame gear artwork | |
| 216 | 215 | |
| 217 | 216 | ***************************************************************************/ |
| 218 | 217 | |
| r8581 | r8582 | |
| 225 | 224 | #include "machine/namco51.h" |
| 226 | 225 | #include "machine/namco53.h" |
| 227 | 226 | #include "sound/namco.h" |
| 228 | #include "sound/samples.h" | |
| 229 | 227 | #include "audio/namco52.h" |
| 230 | 228 | #include "audio/namco54.h" |
| 231 | 229 | #include "includes/polepos.h" |
| 232 | 230 | #include "sound/tms5220.h" |
| 233 | 231 | |
| 234 | 232 | #include "polepos.lh" |
| 233 | #include "topracer.lh" | |
| 235 | 234 | |
| 235 | ||
| 236 | #define MASTER_CLOCK XTAL_24_576MHz | |
| 236 | 237 | #define POLEPOS_TOGGLE PORT_TOGGLE |
| 237 | 238 | |
| 238 | 239 | |
| r8581 | r8582 | |
| 241 | 242 | static INT16 steer_accum; |
| 242 | 243 | |
| 243 | 244 | |
| 244 | ||
| 245 | 245 | /*************************************************************************************/ |
| 246 | 246 | /* Pole Position II protection */ |
| 247 | 247 | /*************************************************************************************/ |
| r8581 | r8582 | |
| 304 | 304 | switch (offset) |
| 305 | 305 | { |
| 306 | 306 | case 0x00: /* IRQON */ |
| 307 | cpu_interrupt_enable( | |
| 307 | cpu_interrupt_enable( | |
| 308 | 308 | if (!bit) |
| 309 | 309 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 310 | 310 | break; |
| r8581 | r8582 | |
| 314 | 314 | break; |
| 315 | 315 | |
| 316 | 316 | case 0x02: /* CLSON */ |
| 317 | polepos_sound_enable( | |
| 317 | polepos_sound_enable( | |
| 318 | 318 | if (!bit) |
| 319 | 319 | { |
| 320 | 320 | polepos_engine_sound_lsb_w(space, 0, 0); |
| r8581 | r8582 | |
| 420 | 420 | { |
| 421 | 421 | /* read the current steering value and update our delta */ |
| 422 | 422 | UINT8 steer_new = input_port_read(device->machine, "STEER"); |
| 423 | steer_accum += (INT8)(steer_new - steer_last); | |
| 423 | steer_accum += (INT8)(steer_new - steer_last) * 2; | |
| 424 | 424 | steer_last = steer_new; |
| 425 | 425 | |
| 426 | 426 | /* if we have delta, clock things */ |
| 427 | 427 | if (steer_accum < 0) |
| 428 | 428 | { |
| 429 | steer_delta = | |
| 429 | steer_delta = 0; | |
| 430 | 430 | steer_accum++; |
| 431 | 431 | } |
| 432 | 432 | else if (steer_accum > 0) |
| 433 | 433 | { |
| 434 | steer_delta = | |
| 434 | steer_delta = 1; | |
| 435 | 435 | steer_accum--; |
| 436 | 436 | } |
| 437 | else | |
| 438 | steer_delta ^= 1; | |
| 439 | 437 | |
| 440 | 438 | return steer_accum & 1; |
| 441 | 439 | } |
| r8581 | r8582 | |
| 468 | 466 | polepos_latch_w(space, i, 0); |
| 469 | 467 | |
| 470 | 468 | /* set the interrupt vectors (this shouldn't be needed) */ |
| 471 | cpu_set_input_line_vector(devtag_get_device(machine, "sub"), 0, Z8000_NVI); | |
| 472 | cpu_set_input_line_vector(devtag_get_device(machine, "sub2"), 0, Z8000_NVI); | |
| 469 | cpu_set_input_line_vector(machine->device("sub"), 0, Z8000_NVI); | |
| 470 | cpu_set_input_line_vector(machine->device("sub2"), 0, Z8000_NVI); | |
| 473 | 471 | } |
| 474 | 472 | |
| 475 | 473 | |
| r8581 | r8582 | |
| 604 | 602 | |
| 605 | 603 | |
| 606 | 604 | static INPUT_PORTS_START( poleposa ) |
| 607 | PORT_START("IN0L") | |
| 608 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 609 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) POLEPOS_TOGGLE /* Gear */ | |
| 610 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(auto_start_r, NULL) // start 1, program controlled | |
| 611 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 605 | PORT_INCLUDE( polepos ) | |
| 612 | 606 | |
| 613 | PORT_START("IN0H") | |
| 614 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 615 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 616 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 617 | PORT_SERVICE( 0x08, IP_ACTIVE_LOW ) | |
| 618 | ||
| 619 | PORT_START("DSWA") | |
| 607 | PORT_MODIFY("DSWA") | |
| 620 | 608 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) |
| 621 | 609 | PORT_DIPSETTING( 0xc0, DEF_STR( 3C_1C ) ) |
| 622 | 610 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) |
| r8581 | r8582 | |
| 640 | 628 | PORT_DIPSETTING( 0x01, "3" ) |
| 641 | 629 | PORT_DIPSETTING( 0x00, "4" ) |
| 642 | 630 | |
| 643 | PORT_START("DSWA_HI") | |
| 644 | PORT_BIT( 0x0f, 0x00, IPT_SPECIAL ) PORT_CUSTOM(high_port_r, "DSWA") | |
| 645 | ||
| 646 | PORT_START("DSWB") | |
| 631 | PORT_MODIFY("DSWB") | |
| 647 | 632 | PORT_DIPNAME( 0xe0, 0xe0, "Practice Rank" ) |
| 648 | 633 | PORT_DIPSETTING( 0xe0, "A" ) |
| 649 | 634 | PORT_DIPSETTING( 0x60, "B" ) |
| r8581 | r8582 | |
| 668 | 653 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 669 | 654 | PORT_DIPSETTING( 0x01, DEF_STR( Off )) |
| 670 | 655 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 671 | ||
| 672 | PORT_START("DSWB_HI") | |
| 673 | PORT_BIT( 0x0f, 0x00, IPT_SPECIAL ) PORT_CUSTOM(high_port_r, "DSWB") | |
| 674 | ||
| 675 | PORT_START("BRAKE") | |
| 676 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) | |
| 677 | ||
| 678 | PORT_START("ACCEL") | |
| 679 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) | |
| 680 | ||
| 681 | PORT_START("STEER") | |
| 682 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(4) | |
| 683 | 656 | INPUT_PORTS_END |
| 684 | 657 | |
| 685 | 658 | |
| r8581 | r8582 | |
| 726 | 699 | PORT_START("DSWA_HI") |
| 727 | 700 | PORT_BIT( 0x0f, 0x00, IPT_SPECIAL ) PORT_CUSTOM(high_port_r, "DSWA") |
| 728 | 701 | |
| 702 | /* FIXME: these dips don't work and may not even exist on this bootleg */ | |
| 729 | 703 | PORT_START("DSWB") |
| 730 | 704 | PORT_DIPNAME( 0x07, 0x07, "Extended Rank" ) |
| 731 | 705 | PORT_DIPSETTING( 0x07, "A" ) |
| r8581 | r8582 | |
| 767 | 741 | |
| 768 | 742 | |
| 769 | 743 | static INPUT_PORTS_START( polepos2 ) |
| 770 | PORT_START("IN0L") | |
| 771 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 772 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) POLEPOS_TOGGLE /* Gear */ | |
| 773 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(auto_start_r, NULL) // start 1, program controlled | |
| 774 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 744 | PORT_INCLUDE( polepos ) | |
| 775 | 745 | |
| 776 | PORT_START("IN0H") | |
| 777 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 778 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 779 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 780 | PORT_SERVICE( 0x08, IP_ACTIVE_LOW ) | |
| 781 | ||
| 782 | PORT_START("DSWA") | |
| 746 | PORT_MODIFY("DSWA") | |
| 783 | 747 | PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) |
| 784 | 748 | PORT_DIPSETTING( 0xc0, DEF_STR( 3C_1C ) ) |
| 785 | 749 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) |
| r8581 | r8582 | |
| 804 | 768 | PORT_DIPSETTING( 0x01, DEF_STR( Off )) |
| 805 | 769 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 806 | 770 | |
| 807 | PORT_START("DSWA_HI") | |
| 808 | PORT_BIT( 0x0f, 0x00, IPT_SPECIAL ) PORT_CUSTOM(high_port_r, "DSWA") | |
| 809 | ||
| 810 | PORT_START("DSWB") | |
| 771 | PORT_MODIFY("DSWB") | |
| 811 | 772 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Game_Time ) ) |
| 812 | 773 | PORT_DIPSETTING( 0x80, "90 secs." ) |
| 813 | 774 | PORT_DIPSETTING( 0x00, "120 secs." ) |
| r8581 | r8582 | |
| 829 | 790 | PORT_DIPNAME( 0x01, 0x01, "Speed" ) |
| 830 | 791 | PORT_DIPSETTING( 0x01, "Average" ) |
| 831 | 792 | PORT_DIPSETTING( 0x00, DEF_STR( High ) ) |
| 832 | ||
| 833 | PORT_START("DSWB_HI") | |
| 834 | PORT_BIT( 0x0f, 0x00, IPT_SPECIAL ) PORT_CUSTOM(high_port_r, "DSWB") | |
| 835 | ||
| 836 | PORT_START("BRAKE") | |
| 837 | PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) | |
| 838 | ||
| 839 | PORT_START("ACCEL") | |
| 840 | PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0,0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) | |
| 841 | ||
| 842 | PORT_START("STEER") | |
| 843 | PORT_BIT ( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(4) | |
| 844 | 793 | INPUT_PORTS_END |
| 845 | 794 | |
| 846 | 795 | |
| r8581 | r8582 | |
| 917 | 866 | static MACHINE_DRIVER_START( polepos ) |
| 918 | 867 | |
| 919 | 868 | /* basic machine hardware */ |
| 920 | MDRV_CPU_ADD("maincpu", Z80, | |
| 869 | MDRV_CPU_ADD("maincpu", Z80, MASTER_CLOCK/8) /* 3.072 MHz */ | |
| 921 | 870 | MDRV_CPU_PROGRAM_MAP(z80_map) |
| 922 | 871 | MDRV_CPU_IO_MAP(z80_io) |
| 923 | 872 | MDRV_CPU_VBLANK_INT_HACK(irq0_line_assert,2) /* 64V */ |
| 924 | 873 | |
| 925 | MDRV_CPU_ADD("sub", Z8002, | |
| 874 | MDRV_CPU_ADD("sub", Z8002, MASTER_CLOCK/8) /* 3.072 MHz */ | |
| 926 | 875 | MDRV_CPU_PROGRAM_MAP(z8002_map) |
| 927 | 876 | MDRV_CPU_VBLANK_INT("screen", irq0_line_assert) |
| 928 | 877 | |
| 929 | MDRV_CPU_ADD("sub2", Z8002, | |
| 878 | MDRV_CPU_ADD("sub2", Z8002, MASTER_CLOCK/8) /* 3.072 MHz */ | |
| 930 | 879 | MDRV_CPU_PROGRAM_MAP(z8002_map) |
| 931 | 880 | MDRV_CPU_VBLANK_INT("screen", irq0_line_assert) |
| 932 | 881 | |
| 933 | MDRV_NAMCO_51XX_ADD("51xx", 18432000/6/2, namco_51xx_intf) /* 1.536 MHz */ | |
| 934 | MDRV_NAMCO_52XX_ADD("52xx", 18432000/6/2, namco_52xx_intf) /* 1.536 MHz */ | |
| 935 | MDRV_NAMCO_53XX_ADD("53xx", 18432000/6/2, namco_53xx_intf) /* 1.536 MHz */ | |
| 936 | MDRV_NAMCO_54XX_ADD("54xx", 18432000/6/2, "discrete", NODE_01) /* 1.536 MHz */ | |
| 882 | MDRV_NAMCO_51XX_ADD("51xx", MASTER_CLOCK/8/2, namco_51xx_intf) /* 1.536 MHz */ | |
| 883 | MDRV_NAMCO_52XX_ADD("52xx", MASTER_CLOCK/8/2, namco_52xx_intf) /* 1.536 MHz */ | |
| 884 | MDRV_NAMCO_53XX_ADD("53xx", MASTER_CLOCK/8/2, namco_53xx_intf) /* 1.536 MHz */ | |
| 885 | MDRV_NAMCO_54XX_ADD("54xx", MASTER_CLOCK/8/2, "discrete", NODE_01) /* 1.536 MHz */ | |
| 937 | 886 | |
| 938 | MDRV_NAMCO_06XX_ADD("06xx", | |
| 887 | MDRV_NAMCO_06XX_ADD("06xx", MASTER_CLOCK/8/64, "maincpu", "51xx", "53xx", "52xx", "54xx") | |
| 939 | 888 | |
| 940 | 889 | MDRV_WATCHDOG_VBLANK_INIT(16) // 128V clocks the same as VBLANK |
| 941 | 890 | |
| r8581 | r8582 | |
| 946 | 895 | |
| 947 | 896 | /* video hardware */ |
| 948 | 897 | MDRV_SCREEN_ADD("screen", RASTER) |
| 949 | MDRV_SCREEN_REFRESH_RATE(6 | |
| 898 | MDRV_SCREEN_REFRESH_RATE((double)MASTER_CLOCK/4/384/264 | |
| 950 | 899 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 951 | 900 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 952 | 901 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 953 | 902 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 954 | 903 | |
| 904 | /* should be correct, but makes polepos2 and clones fail to boot */ | |
| 905 | // MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 384, 0, 256, 264, 16, 224+16) | |
| 906 | ||
| 955 | 907 | MDRV_GFXDECODE(polepos) |
| 956 | 908 | MDRV_PALETTE_LENGTH(0x0f00) |
| 957 | 909 | MDRV_DEFAULT_LAYOUT(layout_polepos) |
| r8581 | r8582 | |
| 963 | 915 | /* sound hardware */ |
| 964 | 916 | MDRV_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 965 | 917 | |
| 966 | MDRV_SOUND_ADD("namco", NAMCO, | |
| 918 | MDRV_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/512) | |
| 967 | 919 | MDRV_SOUND_CONFIG(namco_config) |
| 968 | 920 | MDRV_SOUND_ROUTE(0, "lspeaker", 0.80) |
| 969 | 921 | MDRV_SOUND_ROUTE(1, "rspeaker", 0.80) |
| r8581 | r8582 | |
| 1000 | 952 | static MACHINE_DRIVER_START( topracern ) |
| 1001 | 953 | |
| 1002 | 954 | /* basic machine hardware */ |
| 1003 | MDRV_CPU_ADD("maincpu", Z80, | |
| 955 | MDRV_CPU_ADD("maincpu", Z80, MASTER_CLOCK/8) /* 3.072 MHz */ | |
| 1004 | 956 | MDRV_CPU_PROGRAM_MAP(z80_map) |
| 1005 | 957 | MDRV_CPU_IO_MAP(z80_io) |
| 1006 | 958 | MDRV_CPU_VBLANK_INT_HACK(irq0_line_assert,2) /* 64V */ |
| 1007 | 959 | |
| 1008 | MDRV_CPU_ADD("sub", Z8002, | |
| 960 | MDRV_CPU_ADD("sub", Z8002, MASTER_CLOCK/8) /* 3.072 MHz */ | |
| 1009 | 961 | MDRV_CPU_PROGRAM_MAP(z8002_map) |
| 1010 | 962 | MDRV_CPU_VBLANK_INT("screen", irq0_line_assert) |
| 1011 | 963 | |
| 1012 | MDRV_CPU_ADD("sub2", Z8002, | |
| 964 | MDRV_CPU_ADD("sub2", Z8002, MASTER_CLOCK/8) /* 3.072 MHz */ | |
| 1013 | 965 | MDRV_CPU_PROGRAM_MAP(z8002_map) |
| 1014 | 966 | MDRV_CPU_VBLANK_INT("screen", irq0_line_assert) |
| 1015 | 967 | |
| 1016 | 968 | /* todo, remove these devices too, this bootleg doesn't have them, but the emulation doesn't boot without them.. */ |
| 1017 | MDRV_NAMCO_51XX_ADD("51xx", 18432000/6/2, namco_51xx_bl_intf) /* 1.536 MHz */ | |
| 1018 | MDRV_NAMCO_06XX_ADD("06xx", 18432000/6/64, "maincpu", "51xx", NULL, NULL, NULL) | |
| 969 | MDRV_NAMCO_51XX_ADD("51xx", MASTER_CLOCK/8/2, namco_51xx_bl_intf) /* 1.536 MHz */ | |
| 970 | MDRV_NAMCO_06XX_ADD("06xx", MASTER_CLOCK/8/64, "maincpu", "51xx", NULL, NULL, NULL) | |
| 1019 | 971 | |
| 1020 | 972 | MDRV_WATCHDOG_VBLANK_INIT(16) // 128V clocks the same as VBLANK |
| 1021 | 973 | |
| r8581 | r8582 | |
| 1026 | 978 | |
| 1027 | 979 | /* video hardware */ |
| 1028 | 980 | MDRV_SCREEN_ADD("screen", RASTER) |
| 1029 | MDRV_SCREEN_REFRESH_RATE(6 | |
| 981 | MDRV_SCREEN_REFRESH_RATE((double)MASTER_CLOCK/4/384/264 | |
| 1030 | 982 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 1031 | 983 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1032 | 984 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| r8581 | r8582 | |
| 1034 | 986 | |
| 1035 | 987 | MDRV_GFXDECODE(polepos) |
| 1036 | 988 | MDRV_PALETTE_LENGTH(0x0f00) |
| 1037 | MDRV_DEFAULT_LAYOUT(layout_ | |
| 989 | MDRV_DEFAULT_LAYOUT(layout_to | |
| 1038 | 990 | |
| 1039 | 991 | MDRV_PALETTE_INIT(polepos) |
| 1040 | 992 | MDRV_VIDEO_START(polepos) |
| r8581 | r8582 | |
| 1043 | 995 | /* sound hardware */ |
| 1044 | 996 | MDRV_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 1045 | 997 | |
| 1046 | MDRV_SOUND_ADD("namco", NAMCO, | |
| 998 | MDRV_SOUND_ADD("namco", NAMCO, MASTER_CLOCK/512) | |
| 1047 | 999 | MDRV_SOUND_CONFIG(namco_config) |
| 1048 | 1000 | MDRV_SOUND_ROUTE(0, "lspeaker", 0.80) |
| 1049 | 1001 | MDRV_SOUND_ROUTE(1, "rspeaker", 0.80) |
| r8581 | r8582 | |
| 1067 | 1019 | static MACHINE_DRIVER_START( polepos2bi ) |
| 1068 | 1020 | MDRV_IMPORT_FROM(topracern) |
| 1069 | 1021 | |
| 1070 | MDRV_CPU_ADD("soundz80bl", Z80, | |
| 1022 | MDRV_CPU_ADD("soundz80bl", Z80, MASTER_CLOCK/8) /*? MHz */ | |
| 1071 | 1023 | MDRV_CPU_PROGRAM_MAP(sound_z80_bootleg_map) |
| 1072 | 1024 | MDRV_CPU_IO_MAP(sound_z80_bootleg_iomap) |
| 1073 | 1025 | |
| r8581 | r8582 | |
| 1090 | 1042 | /* Z80 memory/ROM data */ |
| 1091 | 1043 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 1092 | 1044 | ROM_LOAD( "pp1_9b.6h", 0x0000, 0x2000, CRC(94436b70) SHA1(7495c2a8c3928c59146760d19e672afee01c5b17) ) |
| 1093 | ROM_LOAD( "1 | |
| 1045 | ROM_LOAD( "pp1_ | |
| 1094 | 1046 | |
| 1095 | 1047 | /* Z8002 #1 memory/ROM data */ |
| 1096 | 1048 | ROM_REGION( 0x10000, "sub", 0 ) |
| 1097 | ROM_LOAD16_BYTE( "pp1_1b.8m", 0x0001, 0x2000, CRC(361c56dd) SHA1(6e4abf98b10077c6980e8aa3861f0233135ea68f) ) | |
| 1098 | ROM_LOAD16_BYTE( "pp1_2b.8l", 0x0000, 0x2000, CRC(582b530a) SHA1(4fc38aa8b70816e14b321ec778090f6c7e7f1640) ) | |
| 1049 | ROM_LOAD16_BYTE( "pp1_1b.8m", 0x0001, 0x2000, CRC(361c56dd) SHA1(6e4abf98b10077c6980e8aa3861f0233135ea68f) ) | |
| 1050 | ROM_LOAD16_BYTE( "pp1_2b.8l", 0x0000, 0x2000, CRC(582b530a) SHA1(4fc38aa8b70816e14b321ec778090f6c7e7f1640) ) | |
| 1099 | 1051 | |
| 1100 | 1052 | /* Z8002 #2 memory/ROM data */ |
| 1101 | 1053 | ROM_REGION( 0x10000, "sub2", 0 ) |
| 1102 | ROM_LOAD16_BYTE( "pp1_5b.4m", 0x0001, 0x2000, CRC(5cdf5294) SHA1(dbdf327a541fd71aadafda9c925fa4cf7f7c4a24) ) | |
| 1103 | ROM_LOAD16_BYTE( "pp1_6b.4l", 0x0000, 0x2000, CRC(81696272) SHA1(27041a7c24297a6f317537c44922b51d2b2278a6) ) | |
| 1054 | ROM_LOAD16_BYTE( "pp1_5b.4m", 0x0001, 0x2000, CRC(5cdf5294) SHA1(dbdf327a541fd71aadafda9c925fa4cf7f7c4a24) ) | |
| 1055 | ROM_LOAD16_BYTE( "pp1_6b.4l", 0x0000, 0x2000, CRC(81696272) SHA1(27041a7c24297a6f317537c44922b51d2b2278a6) ) | |
| 1104 | 1056 | |
| 1105 | 1057 | /* graphics data */ |
| 1106 | 1058 | ROM_REGION( 0x01000, "gfx1", 0 ) /* 2bpp alpha layer */ |
| 1107 | ROM_LOAD( "pp1_28.1f", | |
| 1059 | ROM_LOAD( "pp1_28.1f", | |
| 1108 | 1060 | |
| 1109 | 1061 | ROM_REGION( 0x01000, "gfx2", 0 ) /* 2bpp view layer */ |
| 1110 | ROM_LOAD( "pp1_29.1e", | |
| 1062 | ROM_LOAD( "pp1_29.1e", | |
| 1111 | 1063 | |
| 1112 | 1064 | ROM_REGION( 0x04000, "gfx3", 0 ) /* 4bpp 16x16 sprites */ |
| 1113 | ROM_LOAD( "pp1_25.1n", 0x0000, 0x2000, CRC(ac8e28c1) SHA1(13bc2bf4be28d9ae987f79034f9532272b3a2543) ) /* 4bpp sm sprites, planes 0+1 */ | |
| 1114 | ROM_LOAD( "pp1_26.1m", 0x2000, 0x2000, CRC(94443079) SHA1(413d7b762c8dff541675e96874be6ee0251d3581) ) /* 4bpp sm sprites, planes 2+3 */ | |
| 1065 | ROM_LOAD( "pp1_25.1n", 0x0000, 0x2000, CRC(ac8e28c1) SHA1(13bc2bf4be28d9ae987f79034f9532272b3a2543) ) /* 4bpp sm sprites, planes 0+1 */ | |
| 1066 | ROM_LOAD( "pp1_26.1m", 0x2000, 0x2000, CRC(94443079) SHA1(413d7b762c8dff541675e96874be6ee0251d3581) ) /* 4bpp sm sprites, planes 2+3 */ | |
| 1115 | 1067 | |
| 1116 | 1068 | ROM_REGION( 0x10000, "gfx4", 0 ) /* 4bpp 32x32 sprites */ |
| 1117 | ROM_LOAD( "1 | |
| 1069 | ROM_LOAD( "pp1_ | |
| 1118 | 1070 | ROM_LOAD( "pp1_19.4n", 0x2000, 0x2000, CRC(43ff83e1) SHA1(8f830549a629b019125e59801e5027e4e4b3c0f2) ) |
| 1119 | 1071 | ROM_LOAD( "pp1_21.3n", 0x4000, 0x2000, CRC(5f958eb4) SHA1(b56d84e5e5e0ddeb0e71851ba66e5fa1b1409551) ) |
| 1120 | ROM_LOAD( "1 | |
| 1072 | ROM_LOAD( "pp1_ | |
| 1121 | 1073 | ROM_LOAD( "pp1_20.4m", 0xa000, 0x2000, CRC(ec18075b) SHA1(af7be549c5fa47551a8dca4c0a531552147fa50f) ) |
| 1122 | 1074 | ROM_LOAD( "pp1_22.3m", 0xc000, 0x2000, CRC(1d2f30b1) SHA1(1d88a3069e9b15febd2835dd63e5511b3b2a6b45) ) |
| 1123 | 1075 | |
| 1124 | 1076 | ROM_REGION( 0x5000, "gfx5", 0 ) /* road generation ROMs needed at runtime */ |
| 1125 | ROM_LOAD( "136014.158", 0x0000, 0x2000, CRC(ee6b3315) SHA1(9cc26c6d3604c0f60d716f86e67e9d9c0487f87d) ) /* road control */ | |
| 1126 | ROM_LOAD( "136014.159", 0x2000, 0x2000, CRC(6d1e7042) SHA1(90113ff0c93ed86d95067290088705bb5e6608d1) ) /* road bits 1 */ | |
| 1127 | ROM_LOAD( "136014.134", 0x4000, 0x1000, CRC(4e97f101) SHA1(f377d053821c74aee93ebcd30a4d43e6156f3cfe) ) /* road bits 2 */ | |
| 1077 | ROM_LOAD( "pp1_30.3a", 0x0000, 0x2000, CRC(ee6b3315) SHA1(9cc26c6d3604c0f60d716f86e67e9d9c0487f87d) ) /* road control */ | |
| 1078 | ROM_LOAD( "pp1_31.2a", 0x2000, 0x2000, CRC(6d1e7042) SHA1(90113ff0c93ed86d95067290088705bb5e6608d1) ) /* road bits 1 */ | |
| 1079 | ROM_LOAD( "pp1_32.1a", 0x4000, 0x1000, CRC(4e97f101) SHA1(f377d053821c74aee93ebcd30a4d43e6156f3cfe) ) /* road bits 2 */ | |
| 1128 | 1080 | |
| 1129 | 1081 | ROM_REGION( 0x1000, "gfx6", 0 ) /* sprite scaling */ |
| 1130 | ROM_LOAD( "1 | |
| 1082 | ROM_LOAD( "pp1_ | |
| 1131 | 1083 | |
| 1132 | 1084 | /* graphics (P)ROM data */ |
| 1133 | 1085 | ROM_REGION( 0x1040, "proms", 0 ) |
| 1134 | ROM_LOAD( "136014.137", 0x0000, 0x0100, CRC(f07ff2ad) SHA1(e1f3cb10a03d23f8c1d422acf271dba4e7b98cb1) ) /* red palette */ | |
| 1135 | ROM_LOAD( "136014.138", 0x0100, 0x0100, CRC(adbde7d7) SHA1(956ac5117c1e310f554ac705aa2dc24a796c36a5) ) /* green palette */ | |
| 1136 | ROM_LOAD( "136014.139", 0x0200, 0x0100, CRC(ddac786a) SHA1(d1860105bf91297533ccc4aa6775987df198d0fa) ) /* blue palette */ | |
| 1137 | ROM_LOAD( "136014.140", 0x0300, 0x0100, CRC(1e8d0491) SHA1(e8bf1db5c1fb04a35763099965cf5c588240bde5) ) /* alpha color */ | |
| 1138 | ROM_LOAD( "136014.141", 0x0400, 0x0100, CRC(0e4fe8a0) SHA1(d330b1e5ebccf5bbefcf71486fd80d816de38196) ) /* background color */ | |
| 1139 | ROM_LOAD( "136014.142", 0x0500, 0x0100, CRC(2d502464) SHA1(682b7dd22e51d5db52c0804b7e27e47641dfa6bd) ) /* vertical position low */ | |
| 1140 | ROM_LOAD( "136014.143", 0x0600, 0x0100, CRC(027aa62c) SHA1(c7030d8b64b80e107c446f6fbdd63f560c0a91c0) ) /* vertical position med */ | |
| 1141 | ROM_LOAD( "136014.144", 0x0700, 0x0100, CRC(1f8d0df3) SHA1(b8f17758f114f5e247b65b3f2922ca2660757e66) ) /* vertical position hi */ | |
| 1142 | ROM_LOAD( "136014.145", 0x0800, 0x0400, CRC(7afc7cfc) SHA1(ba2407f6eff124e881b354f13205a4c058b7cf60) ) /* road color */ | |
| 1086 | ROM_LOAD( "pp1_7.bpr", 0x0000, 0x0100, CRC(f07ff2ad) SHA1(e1f3cb10a03d23f8c1d422acf271dba4e7b98cb1) ) /* red palette */ | |
| 1087 | ROM_LOAD( "pp1_8.bpr", 0x0100, 0x0100, CRC(adbde7d7) SHA1(956ac5117c1e310f554ac705aa2dc24a796c36a5) ) /* green palette */ | |
| 1088 | ROM_LOAD( "pp1_9.bpr", 0x0200, 0x0100, CRC(ddac786a) SHA1(d1860105bf91297533ccc4aa6775987df198d0fa) ) /* blue palette */ | |
| 1089 | ROM_LOAD( "pp1_10.bpr", 0x0300, 0x0100, CRC(1e8d0491) SHA1(e8bf1db5c1fb04a35763099965cf5c588240bde5) ) /* alpha color */ | |
| 1090 | ROM_LOAD( "pp1_11.bpr", 0x0400, 0x0100, CRC(0e4fe8a0) SHA1(d330b1e5ebccf5bbefcf71486fd80d816de38196) ) /* background color */ | |
| 1091 | ROM_LOAD( "pp1_15.bpr", 0x0500, 0x0100, CRC(2d502464) SHA1(682b7dd22e51d5db52c0804b7e27e47641dfa6bd) ) /* vertical position low */ | |
| 1092 | ROM_LOAD( "pp1_16.bpr", 0x0600, 0x0100, CRC(027aa62c) SHA1(c7030d8b64b80e107c446f6fbdd63f560c0a91c0) ) /* vertical position med */ | |
| 1093 | ROM_LOAD( "pp1_17.bpr", 0x0700, 0x0100, CRC(1f8d0df3) SHA1(b8f17758f114f5e247b65b3f2922ca2660757e66) ) /* vertical position hi */ | |
| 1094 | ROM_LOAD( "pp1_12.bpr", 0x0800, 0x0400, CRC(7afc7cfc) SHA1(ba2407f6eff124e881b354f13205a4c058b7cf60) ) /* road color */ | |
| 1143 | 1095 | ROM_LOAD( "pp1_6.bpr", 0x0c00, 0x0400, CRC(2f1079ee) SHA1(18a27998a78deff13dd198f3668a7e92f084f467) ) /* sprite color */ |
| 1144 | ROM_LOAD( "136014.135", 0x1000, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) ) /* video RAM address decoder (not used) */ | |
| 1145 | ROM_LOAD( "136014.136", 0x1020, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) ) /* video RAM address decoder (not used) */ | |
| 1096 | ROM_LOAD( "pp1_13.bpr", 0x1000, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) ) /* video RAM address decoder (not used) */ | |
| 1097 | ROM_LOAD( "pp1_14.bpr", 0x1020, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) ) /* video RAM address decoder (not used) */ | |
| 1146 | 1098 | |
| 1147 | 1099 | /* sound (P)ROM data */ |
| 1148 | 1100 | ROM_REGION( 0x0100, "namco", 0 ) |
| 1149 | ROM_LOAD( "1 | |
| 1101 | ROM_LOAD( "pp1_5 | |
| 1150 | 1102 | |
| 1151 | 1103 | ROM_REGION( 0x4000, "engine", 0 ) |
| 1152 | ROM_LOAD( "136014.110", 0x0000, 0x2000, CRC(b5ad4d5f) SHA1(c07e77a050200d6fe9952031f971ca35f4d15ff8) ) /* engine sound */ | |
| 1153 | ROM_LOAD( "136014.111", 0x2000, 0x2000, CRC(8fdd2f6f) SHA1(3818dc94c60cd78c4212ab7a4367cf3d98166ee6) ) /* engine sound */ | |
| 1104 | ROM_LOAD( "pp1_15.6a", 0x0000, 0x2000, CRC(b5ad4d5f) SHA1(c07e77a050200d6fe9952031f971ca35f4d15ff8) ) /* engine sound */ | |
| 1105 | ROM_LOAD( "pp1_16.5a", 0x2000, 0x2000, CRC(8fdd2f6f) SHA1(3818dc94c60cd78c4212ab7a4367cf3d98166ee6) ) /* engine sound */ | |
| 1154 | 1106 | |
| 1155 | 1107 | ROM_REGION( 0x8000, "52xx", 0 ) |
| 1156 | 1108 | ROM_LOAD( "pp1_11.2e", 0x0000, 0x2000, CRC(45b9bfeb) SHA1(ff8c690471944d414931fb88666594ef608997f8) ) /* voice */ |
| r8581 | r8582 | |
| 1160 | 1112 | |
| 1161 | 1113 | /* unknown or unused (P)ROM data */ |
| 1162 | 1114 | ROM_REGION( 0x0100, "user1", 0 ) |
| 1163 | ROM_LOAD( "1 | |
| 1115 | ROM_LOAD( "pp1_ | |
| 1164 | 1116 | ROM_END |
| 1165 | 1117 | |
| 1166 | 1118 | /* |
| r8581 | r8582 | |
| 1458 | 1410 | ROM_LOAD( "tr21.bin", 0x4000, 0x2000, CRC(17c798b0) SHA1(ae2047bc0e4e8c85e1de09c39c200ea8f7c6a72e) ) |
| 1459 | 1411 | ROM_LOAD( "pp18.bin", 0x8000, 0x2000, CRC(5fd933e3) SHA1(5b27a8519234c935308f943cd58abc1efc463726) ) /* 4bpp lg sprites, planes 2+3 */ |
| 1460 | 1412 | ROM_LOAD( "tr20.bin", 0xa000, 0x2000, CRC(7053e219) SHA1(97700fbe887e2d11c9f9a0937147725f6787f081) ) |
| 1461 | ROM_LOAD( "tr22.bin", 0xc000, 0x2000, CRC(f48917b2) SHA1(2823cfc33ae97ef979d92e2eeeb94c95f1f3d9f3) ) | |
| 1413 | // ROM_LOAD( "tr22.bin", 0xc000, 0x2000, CRC(f48917b2) SHA1(2823cfc33ae97ef979d92e2eeeb94c95f1f3d9f3) ) /* differs by one bit, almost certainly bitrot */ | |
| 1414 | ROM_LOAD( "tr22.bin", 0xc000, 0x2000, CRC(5fe9b365) SHA1(1a3ac099a6bb506a5f71c12c6fb14d014172371c) ) | |
| 1462 | 1415 | |
| 1463 | 1416 | ROM_REGION( 0x5000, "gfx5", 0 ) /* road generation ROMs needed at runtime */ |
| 1464 | 1417 | ROM_LOAD( "136014.158", 0x0000, 0x2000, CRC(ee6b3315) SHA1(9cc26c6d3604c0f60d716f86e67e9d9c0487f87d) ) /* road control */ |
| r8581 | r8582 | |
| 1687 | 1640 | ROM_START( polepos2 ) |
| 1688 | 1641 | /* Z80 memory/ROM data */ |
| 1689 | 1642 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 1690 | ROM_LOAD( "pp4_9.6h", 0x0000, 0x2000, CRC(bcf87004) SHA1(0c60cbb777fe72dfd11c6f3e9da806a515cd0f8a) ) | |
| 1691 | ROM_LOAD( "136014.183", 0x2000, 0x1000, CRC(a9d4c380) SHA1(6048a8e858824936901e8e3e6b65d7505ccd82b4) ) | |
| 1643 | ROM_LOAD( "pp4_9.6h", 0x0000, 0x2000, CRC(bcf87004) SHA1(0c60cbb777fe72dfd11c6f3e9da806a515cd0f8a) ) | |
| 1644 | ROM_LOAD( "pp4_10.5h", 0x2000, 0x1000, CRC(a9d4c380) SHA1(6048a8e858824936901e8e3e6b65d7505ccd82b4) ) | |
| 1692 | 1645 | |
| 1693 | 1646 | /* Z8002 #1 memory/ROM data */ |
| 1694 | 1647 | ROM_REGION( 0x10000, "sub", 0 ) |
| 1695 | ROM_LOAD16_BYTE( "pp4_1.8m", 0x0001, 0x2000, CRC(3f6ac294) SHA1(414ea7e43e62a573ad8971a7045f61eb997cf94e) ) | |
| 1696 | ROM_LOAD16_BYTE( "pp4_2.8l", 0x0000, 0x2000, CRC(51b9a669) SHA1(563ba42098d330801a992cd9c008c4cbbb993530) ) | |
| 1648 | ROM_LOAD16_BYTE( "pp4_1.8m", 0x0001, 0x2000, CRC(3f6ac294) SHA1(414ea7e43e62a573ad8971a7045f61eb997cf94e) ) | |
| 1649 | ROM_LOAD16_BYTE( "pp4_2.8l", 0x0000, 0x2000, CRC(51b9a669) SHA1(563ba42098d330801a992cd9c008c4cbbb993530) ) | |
| 1697 | 1650 | |
| 1698 | 1651 | /* Z8002 #2 memory/ROM data */ |
| 1699 | 1652 | ROM_REGION( 0x10000, "sub2", 0 ) |
| 1700 | ROM_LOAD16_BYTE( "pp4_5.4m", 0x0001, 0x2000, CRC(c3053cae) SHA1(f42cf61fe696dd7e282b29e2234ea7f487ec2372) ) | |
| 1701 | ROM_LOAD16_BYTE( "pp4_6.4l", 0x0000, 0x2000, CRC(38d04e0f) SHA1(5527cb1864248208b10d219a50ad742f286a119f) ) | |
| 1702 | ROM_LOAD16_BYTE( "pp4_7.3m", 0x4001, 0x1000, CRC(ad1c8994) SHA1(2877de9641516767170c0109900955cc7d1ff402) ) | |
| 1703 | ROM_LOAD16_BYTE( "pp4_8.3l", 0x4000, 0x1000, CRC(ef25a2ee) SHA1(45959355cad1a48f19ae14193374e03d4f9965c7) ) | |
| 1653 | ROM_LOAD16_BYTE( "pp4_5.4m", 0x0001, 0x2000, CRC(c3053cae) SHA1(f42cf61fe696dd7e282b29e2234ea7f487ec2372) ) | |
| 1654 | ROM_LOAD16_BYTE( "pp4_6.4l", 0x0000, 0x2000, CRC(38d04e0f) SHA1(5527cb1864248208b10d219a50ad742f286a119f) ) | |
| 1655 | ROM_LOAD16_BYTE( "pp4_7.3m", 0x4001, 0x1000, CRC(ad1c8994) SHA1(2877de9641516767170c0109900955cc7d1ff402) ) | |
| 1656 | ROM_LOAD16_BYTE( "pp4_8.3l", 0x4000, 0x1000, CRC(ef25a2ee) SHA1(45959355cad1a48f19ae14193374e03d4f9965c7) ) | |
| 1704 | 1657 | |
| 1705 | 1658 | /* graphics data */ |
| 1706 | 1659 | ROM_REGION( 0x02000, "gfx1", 0 ) /* 2bpp alpha layer */ |
| 1707 | ROM_LOAD( "pp4_28.1f", | |
| 1660 | ROM_LOAD( "pp4_28.1f", | |
| 1708 | 1661 | |
| 1709 | 1662 | ROM_REGION( 0x02000, "gfx2", 0 ) /* 2bpp view layer */ |
| 1710 | ROM_LOAD( " | |
| 1663 | ROM_LOAD( "pp | |
| 1711 | 1664 | |
| 1712 | 1665 | ROM_REGION( 0x04000, "gfx3", 0 ) /* 4bpp 16x16 sprites */ |
| 1713 | ROM_LOAD( "pp4_25.1n", 0x0000, 0x2000, CRC(fd098e65) SHA1(2c497f1d278ba6730752706a0d1b5a5a0fec3d5b) ) /* 4bpp sm sprites, planes 0+1 */ | |
| 1714 | ROM_LOAD( "pp4_26.1m", 0x2000, 0x2000, CRC(35ac62b3) SHA1(21038a78eb73d520e3e1ae8e1c0047d06b94cdab) ) /* 4bpp sm sprites, planes 2+3 */ | |
| 1666 | ROM_LOAD( "pp4_25.1n", 0x0000, 0x2000, CRC(fd098e65) SHA1(2c497f1d278ba6730752706a0d1b5a5a0fec3d5b) ) /* 4bpp sm sprites, planes 0+1 */ | |
| 1667 | ROM_LOAD( "pp4_26.1m", 0x2000, 0x2000, CRC(35ac62b3) SHA1(21038a78eb73d520e3e1ae8e1c0047d06b94cdab) ) /* 4bpp sm sprites, planes 2+3 */ | |
| 1715 | 1668 | |
| 1716 | 1669 | ROM_REGION( 0x10000, "gfx4", 0 ) /* 4bpp 32x32 sprites */ |
| 1717 | ROM_LOAD( "136014.119", 0x0000, 0x2000, CRC(2e134b46) SHA1(0938f5f9f5cc6d7c1096c569449db78dbc42da01) ) /* 4bpp lg sprites, planes 0+1 */ | |
| 1718 | ROM_LOAD( "pp1_19.4n", 0x2000, 0x2000, CRC(43ff83e1) SHA1(8f830549a629b019125e59801e5027e4e4b3c0f2) ) | |
| 1719 | ROM_LOAD( "pp1_21.3n", 0x4000, 0x2000, CRC(5f958eb4) SHA1(b56d84e5e5e0ddeb0e71851ba66e5fa1b1409551) ) | |
| 1720 | ROM_LOAD( "pp4_23.2n", 0x6000, 0x2000, CRC(9e056fcd) SHA1(8545e0a9b6ebf8c2903321ceb9c4d693db10d750) ) | |
| 1721 | ROM_LOAD( "136014.120", 0x8000, 0x2000, CRC(6f9997d2) SHA1(b26d505266ccf23bfd867f881756c3251c80f57b) ) /* 4bpp lg sprites, planes 2+3 */ | |
| 1722 | ROM_LOAD( "pp1_20.4m", 0xa000, 0x2000, CRC(ec18075b) SHA1(af7be549c5fa47551a8dca4c0a531552147fa50f) ) | |
| 1723 | ROM_LOAD( "pp1_22.3m", 0xc000, 0x2000, CRC(1d2f30b1) SHA1(1d88a3069e9b15febd2835dd63e5511b3b2a6b45) ) | |
| 1724 | ROM_LOAD( "pp4_24.2m", 0xe000, 0x2000, CRC(795268cf) SHA1(84136142ef4bdcd97ede2209ecb16745960ac393) ) | |
| 1670 | ROM_LOAD( "pp1_17.5n", 0x0000, 0x2000, CRC(2e134b46) SHA1(0938f5f9f5cc6d7c1096c569449db78dbc42da01) ) /* 4bpp lg sprites, planes 0+1 */ | |
| 1671 | ROM_LOAD( "pp1_19.4n", 0x2000, 0x2000, CRC(43ff83e1) SHA1(8f830549a629b019125e59801e5027e4e4b3c0f2) ) | |
| 1672 | ROM_LOAD( "pp1_21.3n", 0x4000, 0x2000, CRC(5f958eb4) SHA1(b56d84e5e5e0ddeb0e71851ba66e5fa1b1409551) ) | |
| 1673 | ROM_LOAD( "pp4_23.2n", 0x6000, 0x2000, CRC(9e056fcd) SHA1(8545e0a9b6ebf8c2903321ceb9c4d693db10d750) ) | |
| 1674 | ROM_LOAD( "pp1_18.5m", 0x8000, 0x2000, CRC(6f9997d2) SHA1(b26d505266ccf23bfd867f881756c3251c80f57b) ) /* 4bpp lg sprites, planes 2+3 */ | |
| 1675 | ROM_LOAD( "pp1_20.4m", 0xa000, 0x2000, CRC(ec18075b) SHA1(af7be549c5fa47551a8dca4c0a531552147fa50f) ) | |
| 1676 | ROM_LOAD( "pp1_22.3m", 0xc000, 0x2000, CRC(1d2f30b1) SHA1(1d88a3069e9b15febd2835dd63e5511b3b2a6b45) ) | |
| 1677 | ROM_LOAD( "pp4_24.2m", 0xe000, 0x2000, CRC(795268cf) SHA1(84136142ef4bdcd97ede2209ecb16745960ac393) ) | |
| 1725 | 1678 | |
| 1726 | 1679 | ROM_REGION( 0x5000, "gfx5", 0 ) /* road generation ROMs needed at runtime */ |
| 1727 | ROM_LOAD( "136014.127", 0x0000, 0x2000, CRC(ee6b3315) SHA1(9cc26c6d3604c0f60d716f86e67e9d9c0487f87d) ) /* road control */ | |
| 1728 | ROM_LOAD( "136014.128", 0x2000, 0x2000, CRC(6d1e7042) SHA1(90113ff0c93ed86d95067290088705bb5e6608d1) ) /* road bits 1 */ | |
| 1729 | ROM_LOAD( "136014.134", 0x4000, 0x1000, CRC(4e97f101) SHA1(f377d053821c74aee93ebcd30a4d43e6156f3cfe) ) /* road bits 2 */ | |
| 1680 | ROM_LOAD( "pp1_30.3a", 0x0000, 0x2000, CRC(ee6b3315) SHA1(9cc26c6d3604c0f60d716f86e67e9d9c0487f87d) ) /* road control */ | |
| 1681 | ROM_LOAD( "pp1_31.2a", 0x2000, 0x2000, CRC(6d1e7042) SHA1(90113ff0c93ed86d95067290088705bb5e6608d1) ) /* road bits 1 */ | |
| 1682 | ROM_LOAD( "pp1_32.1a", 0x4000, 0x1000, CRC(4e97f101) SHA1(f377d053821c74aee93ebcd30a4d43e6156f3cfe) ) /* road bits 2 */ | |
| 1730 | 1683 | |
| 1731 | 1684 | ROM_REGION( 0x1000, "gfx6", 0 ) /* sprite scaling */ |
| 1732 | ROM_LOAD( "1 | |
| 1685 | ROM_LOAD( "pp1_ | |
| 1733 | 1686 | |
| 1734 | 1687 | /* graphics (P)ROM data */ |
| 1735 | 1688 | ROM_REGION( 0x1040, "proms", 0 ) |
| 1736 | ROM_LOAD( "136014.186", 0x0000, 0x0100, CRC(16d69c31) SHA1(f24b345448e4f4ef4e2f3b057b81d399cf427f88) ) /* red palette */ | |
| 1737 | ROM_LOAD( "136014.187", 0x0100, 0x0100, CRC(07340311) SHA1(3820d1fa99013ed18de5d9400ad376cc446d1217) ) /* green palette */ | |
| 1738 | ROM_LOAD( "136014.188", 0x0200, 0x0100, CRC(1efc84d7) SHA1(6946e1c209eec0a4b75778ae88111e6cb63c63fb) ) /* blue palette */ | |
| 1739 | ROM_LOAD( "136014.189", 0x0300, 0x0100, CRC(064d51a0) SHA1(d5baa29930530a8930b44a374e285de849c2a6ce) ) /* alpha color */ | |
| 1740 | ROM_LOAD( "136014.190", 0x0400, 0x0100, CRC(7880c5af) SHA1(e4388e354420be3f99594a10c091e3d2f745cc04) ) /* background color */ | |
| 1741 | ROM_LOAD( "136014.142", 0x0500, 0x0100, CRC(2d502464) SHA1(682b7dd22e51d5db52c0804b7e27e47641dfa6bd) ) /* vertical position low */ | |
| 1742 | ROM_LOAD( "136014.143", 0x0600, 0x0100, CRC(027aa62c) SHA1(c7030d8b64b80e107c446f6fbdd63f560c0a91c0) ) /* vertical position med */ | |
| 1743 | ROM_LOAD( "136014.144", 0x0700, 0x0100, CRC(1f8d0df3) SHA1(b8f17758f114f5e247b65b3f2922ca2660757e66) ) /* vertical position hi */ | |
| 1744 | ROM_LOAD( "136014.191", 0x0800, 0x0400, CRC(8b270902) SHA1(27b3ebc92d3a2a5c0432bde018a0e43669041d50) ) /* road color */ | |
| 1745 | ROM_LOAD( "pp4-6.6m", 0x0c00, 0x0400, CRC(647212b5) SHA1(ad58dfebd0ce8226285c2671c3b7797852c26d07) ) /* sprite color */ | |
| 1746 | ROM_LOAD( "136014.135", 0x1000, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) ) /* video RAM address decoder (not used) */ | |
| 1747 | ROM_LOAD( "136014.136", 0x1020, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) ) /* video RAM address decoder (not used) */ | |
| 1689 | ROM_LOAD( "pp4_7.bpr", 0x0000, 0x0100, CRC(16d69c31) SHA1(f24b345448e4f4ef4e2f3b057b81d399cf427f88) ) /* red palette */ | |
| 1690 | ROM_LOAD( "pp4_8.bpr", 0x0100, 0x0100, CRC(07340311) SHA1(3820d1fa99013ed18de5d9400ad376cc446d1217) ) /* green palette */ | |
| 1691 | ROM_LOAD( "pp4_9.bpr", 0x0200, 0x0100, CRC(1efc84d7) SHA1(6946e1c209eec0a4b75778ae88111e6cb63c63fb) ) /* blue palette */ | |
| 1692 | ROM_LOAD( "pp4_10.bpr", 0x0300, 0x0100, CRC(064d51a0) SHA1(d5baa29930530a8930b44a374e285de849c2a6ce) ) /* alpha color */ | |
| 1693 | ROM_LOAD( "pp4_11.bpr", 0x0400, 0x0100, CRC(7880c5af) SHA1(e4388e354420be3f99594a10c091e3d2f745cc04) ) /* background color */ | |
| 1694 | ROM_LOAD( "pp1_15.bpr", 0x0500, 0x0100, CRC(2d502464) SHA1(682b7dd22e51d5db52c0804b7e27e47641dfa6bd) ) /* vertical position low */ | |
| 1695 | ROM_LOAD( "pp1_16.bpr", 0x0600, 0x0100, CRC(027aa62c) SHA1(c7030d8b64b80e107c446f6fbdd63f560c0a91c0) ) /* vertical position med */ | |
| 1696 | ROM_LOAD( "pp1_17.bpr", 0x0700, 0x0100, CRC(1f8d0df3) SHA1(b8f17758f114f5e247b65b3f2922ca2660757e66) ) /* vertical position hi */ | |
| 1697 | ROM_LOAD( "pp4_12.bpr", 0x0800, 0x0400, CRC(8b270902) SHA1(27b3ebc92d3a2a5c0432bde018a0e43669041d50) ) /* road color */ | |
| 1698 | ROM_LOAD( "pp4_6.bpr", 0x0c00, 0x0400, CRC(647212b5) SHA1(ad58dfebd0ce8226285c2671c3b7797852c26d07) ) /* sprite color */ | |
| 1699 | ROM_LOAD( "pp1_13.bpr", 0x1000, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) ) /* video RAM address decoder (not used) */ | |
| 1700 | ROM_LOAD( "pp1_14.bpr", 0x1020, 0x0020, CRC(4330a51b) SHA1(9531d18ce2de4eda9913d47ef8c5cd8f05791716) ) /* video RAM address decoder (not used) */ | |
| 1748 | 1701 | |
| 1749 | 1702 | /* sound (P)ROM data */ |
| 1750 | 1703 | ROM_REGION( 0x0100, "namco", 0 ) |
| 1751 | ROM_LOAD( "1 | |
| 1704 | ROM_LOAD( "pp1_5 | |
| 1752 | 1705 | |
| 1753 | 1706 | ROM_REGION( 0x4000, "engine", 0 ) |
| 1754 | ROM_LOAD( "136014.181", 0x0000, 0x2000, CRC(7d93bc1c) SHA1(dad7c0aa24aef593c84e21f7f8858ca7ada86364) ) /* engine sound */ | |
| 1755 | ROM_LOAD( "136014.182", 0x2000, 0x2000, CRC(7d93bc1c) SHA1(dad7c0aa24aef593c84e21f7f8858ca7ada86364) ) /* engine sound */ | |
| 1707 | ROM_LOAD( "pp4_15.6a", 0x0000, 0x2000, CRC(7d93bc1c) SHA1(dad7c0aa24aef593c84e21f7f8858ca7ada86364) ) /* engine sound */ | |
| 1708 | ROM_LOAD( "pp4_16.5a", 0x2000, 0x2000, CRC(7d93bc1c) SHA1(dad7c0aa24aef593c84e21f7f8858ca7ada86364) ) /* engine sound */ | |
| 1756 | 1709 | |
| 1757 | 1710 | ROM_REGION( 0x8000, "52xx", 0 ) |
| 1758 | ROM_LOAD( "pp1_11.2e", 0x0000, 0x2000, CRC(45b9bfeb) SHA1(ff8c690471944d414931fb88666594ef608997f8) ) /* voice */ | |
| 1759 | ROM_LOAD( "pp1_12.2f", 0x2000, 0x2000, CRC(a31b4be5) SHA1(38298093bb97ea8647fe187359cae05b65e1c616) ) /* voice */ | |
| 1760 | ROM_LOAD( "pp1_13.1e", 0x4000, 0x2000, CRC(a4237466) SHA1(88a397276038cc2fc05f2c18472e6b7cef167f2e) ) /* voice */ | |
| 1761 | ROM_LOAD( "pp1_14.1f", 0x6000, 0x2000, CRC(944580f9) SHA1(c76f529cae718674ce97a1a599a3c6eaf6bf561a) ) /* voice */ | |
| 1711 | ROM_LOAD( "pp1_11.2e", 0x0000, 0x2000, CRC(45b9bfeb) SHA1(ff8c690471944d414931fb88666594ef608997f8) ) /* voice */ | |
| 1712 | ROM_LOAD( "pp1_12.2f", 0x2000, 0x2000, CRC(a31b4be5) SHA1(38298093bb97ea8647fe187359cae05b65e1c616) ) /* voice */ | |
| 1713 | ROM_LOAD( "pp1_13.1e", 0x4000, 0x2000, CRC(a4237466) SHA1(88a397276038cc2fc05f2c18472e6b7cef167f2e) ) /* voice */ | |
| 1714 | ROM_LOAD( "pp1_14.1f", 0x6000, 0x2000, CRC(944580f9) SHA1(c76f529cae718674ce97a1a599a3c6eaf6bf561a) ) /* voice */ | |
| 1762 | 1715 | |
| 1763 | 1716 | /* unknown or unused (P)ROM data */ |
| 1764 | 1717 | ROM_REGION( 0x0100, "user1", 0 ) |
| 1765 | ROM_LOAD( "1 | |
| 1718 | ROM_LOAD( "pp1_ | |
| 1766 | 1719 | ROM_END |
| 1767 | 1720 | |
| 1768 | 1721 | |
| r8581 | r8582 | |
| 2003 | 1956 | ROM_REGION( 0x0100, "namco", 0 ) |
| 2004 | 1957 | ROM_LOAD( "74s287-b.bin", 0x0000, 0x0100, CRC(8568decc) SHA1(0aac1fa082858d4d201e21511c609a989f9a1535) ) /* Namco sound */ |
| 2005 | 1958 | |
| 2006 | ROM_REGION( 0x4000, "engine", 0 ) /* these roms are both the same on the original sets, but here they differ */ | |
| 2007 | ROM_LOAD( "pp4-15.bin", 0x0000, 0x2000, CRC(5d79e1ad) SHA1(0323bdf3b9aca298b788bb07020653a43114c952) ) | |
| 1959 | ROM_REGION( 0x4000, "engine", 0 ) | |
| 1960 | // ROM_LOAD( "pp4-15.bin", 0x0000, 0x2000, CRC(5d79e1ad) SHA1(0323bdf3b9aca298b788bb07020653a43114c952) ) /* differs by one bit, almost certainly bitrot */ | |
| 1961 | ROM_LOAD( "pp4-15.bin", 0x0000, 0x2000, CRC(7d93bc1c) SHA1(dad7c0aa24aef593c84e21f7f8858ca7ada86364) ) /* engine sound */ | |
| 2008 | 1962 | ROM_LOAD( "pp4-16.bin", 0x2000, 0x2000, CRC(7d93bc1c) SHA1(dad7c0aa24aef593c84e21f7f8858ca7ada86364) ) /* engine sound */ |
| 2009 | 1963 | |
| 2010 | 1964 | ROM_REGION( 0x6000, "52xx", ROMREGION_ERASEFF ) |
| r8581 | r8582 | |
| 2030 | 1984 | * Initialization routines |
| 2031 | 1985 | *********************************************************************/ |
| 2032 | 1986 | |
| 2033 | static DRIVER_INIT( polepos ) | |
| 2034 | { | |
| 2035 | polepos_gear_bit = 2; | |
| 2036 | } | |
| 2037 | ||
| 2038 | 1987 | static DRIVER_INIT( topracern ) |
| 2039 | 1988 | { |
| 2040 | polepos_gear_bit = 0x20; | |
| 2041 | ||
| 2042 | 1989 | /* extra direct mapped inputs read */ |
| 2043 | 1990 | memory_install_read_port(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_IO), 0x02, 0x02, 0, 0, "STEER"); |
| 2044 | 1991 | memory_install_read_port(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_IO), 0x03, 0x03, 0, 0, "IN0"); |
| 2045 | 1992 | memory_install_read_port(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_IO), 0x04, 0x04, 0, 0, "DSWA"); |
| 2046 | ||
| 2047 | 1993 | } |
| 2048 | 1994 | |
| 2049 | 1995 | static DRIVER_INIT( polepos2 ) |
| 2050 | 1996 | { |
| 2051 | 1997 | /* note that the bootleg version doesn't need this custom IC; it has a hacked ROM in its place */ |
| 2052 | 1998 | memory_install_read16_handler(cputag_get_address_space(machine, "sub", ADDRESS_SPACE_PROGRAM), 0x4000, 0x5fff, 0, 0, polepos2_ic25_r); |
| 2053 | ||
| 2054 | DRIVER_INIT_CALL(polepos); | |
| 2055 | 1999 | } |
| 2056 | 2000 | |
| 2057 | 2001 | |
| r8581 | r8582 | |
| 2059 | 2003 | * Game drivers |
| 2060 | 2004 | *********************************************************************/ |
| 2061 | 2005 | |
| 2062 | GAME( 1982, polepos, 0, polepos, polepos, polepos, ROT0, "Namco", "Pole Position", 0 ) | |
| 2063 | GAME( 1982, poleposa, polepos, polepos, poleposa, polepos, ROT0, "Namco (Atari license)", "Pole Position (Atari version 2)", 0 ) | |
| 2064 | GAME( 1982, polepos1, polepos, polepos, poleposa, polepos, ROT0, "Namco (Atari license)", "Pole Position (Atari version 1)", 0 ) | |
| 2065 | GAME( 1982, topracer, polepos, polepos, polepos, polepos, ROT0, "bootleg", "Top Racer (with MB8841 + MB8842, set 1)", 0 ) // the NAMCO customs have been cloned on these bootlegs | |
| 2066 | GAME( 1983, topracera, polepos, polepos, polepos, polepos, ROT0, "bootleg", "Top Racer (with MB8841 + MB8842, set 2)", 0 ) // ^ | |
| 2006 | GAME( 1982, polepos, 0, polepos, polepos, 0, ROT0, "Namco", "Pole Position", 0 ) | |
| 2007 | GAME( 1982, poleposa, polepos, polepos, poleposa, 0, ROT0, "Namco (Atari license)", "Pole Position (Atari version 2)", 0 ) | |
| 2008 | GAME( 1982, polepos1, polepos, polepos, poleposa, 0, ROT0, "Namco (Atari license)", "Pole Position (Atari version 1)", 0 ) | |
| 2009 | GAME( 1984, topracer, polepos, polepos, polepos, 0, ROT0, "bootleg", "Top Racer (with MB8841 + MB8842, 1984)", 0 ) // the NAMCO customs have been cloned on these bootlegs | |
| 2010 | GAME( 1983, topracera, polepos, polepos, polepos, 0, ROT0, "bootleg", "Top Racer (with MB8841 + MB8842, 1983)", 0 ) // the only difference between them is the year displayed on the title screen | |
| 2067 | 2011 | GAME( 1982, topracern, polepos, topracern, topracern,topracern,ROT0, "bootleg", "Top Racer (no MB8841 + MB8842)", 0 ) |
| 2068 | 2012 | |
| 2069 | 2013 | GAME( 1983, polepos2, 0, polepos, polepos2, polepos2, ROT0, "Namco", "Pole Position II", 0 ) |
| 2070 | 2014 | GAME( 1983, polepos2a, polepos2, polepos, polepos2, polepos2, ROT0, "Namco (Atari license)", "Pole Position II (Atari)", 0 ) |
| 2071 | GAME( 1983, polepos2b, polepos2, polepos, polepos2, polepos, ROT0, "bootleg", "Pole Position II (bootleg)", 0 ) | |
| 2072 | GAME( 1983, polepos2bi, polepos2, polepos2bi, topracern, topracern, ROT0, "bootleg", "Gran Premio F1 (Italian bootleg of Pole Position II)", GAME_IMPERFECT_COLORS | GAME_IMPERFECT_SOUND ) // should have italian voices | |
| 2015 | GAME( 1983, polepos2b, polepos2, polepos, polepos2, 0, ROT0, "bootleg", "Pole Position II (bootleg)", 0 ) | |
| 2016 | GAME( 1984, polepos2bi, polepos2, polepos2bi, topracern,topracern,ROT0, "bootleg", "Gran Premio F1 (Italian bootleg of Pole Position II)", GAME_IMPERFECT_COLORS | GAME_IMPERFECT_SOUND ) // should have italian voices |
| r8581 | r8582 | |
|---|---|---|
| 87 | 87 | int vol = space->machine->generic.nvram.u16[0x10] & 0xff; |
| 88 | 88 | if (vol) |
| 89 | 89 | { |
| 90 | running_device *k054539 = | |
| 90 | running_device *k054539 = | |
| 91 | 91 | int i; |
| 92 | 92 | double gain = vol / 90.0; |
| 93 | 93 | |
| r8581 | r8582 | |
| 117 | 117 | int vol = space->machine->generic.nvram.u16[0x8] & 0xff; |
| 118 | 118 | if (vol) |
| 119 | 119 | { |
| 120 | running_device *k054539 = | |
| 120 | running_device *k054539 = | |
| 121 | 121 | int i; |
| 122 | 122 | double gain = vol / 90.0; |
| 123 | 123 | |
| r8581 | r8582 | |
| 130 | 130 | |
| 131 | 131 | static READ16_HANDLER( v_rom_r ) |
| 132 | 132 | { |
| 133 | running_device *k056832 = | |
| 133 | running_device *k056832 = | |
| 134 | 134 | UINT8 *mem8 = memory_region(space->machine, "gfx1"); |
| 135 | 135 | int bank = k056832_word_r(k056832, 0x34/2, 0xffff); |
| 136 | 136 | |
| r8581 | r8582 | |
| 145 | 145 | |
| 146 | 146 | static READ16_HANDLER( gp2_vram_r ) |
| 147 | 147 | { |
| 148 | running_device *k056832 = | |
| 148 | running_device *k056832 = | |
| 149 | 149 | |
| 150 | 150 | if (offset < 0x1000 / 2) |
| 151 | 151 | return k056832_ram_word_r(k056832, offset * 2 + 1, mem_mask); |
| r8581 | r8582 | |
| 155 | 155 | |
| 156 | 156 | static READ16_HANDLER( gp2_vram_mirror_r ) |
| 157 | 157 | { |
| 158 | running_device *k056832 = | |
| 158 | running_device *k056832 = | |
| 159 | 159 | |
| 160 | 160 | if (offset < 0x1000 / 2) |
| 161 | 161 | return k056832_ram_word_r(k056832, offset * 2, mem_mask); |
| r8581 | r8582 | |
| 165 | 165 | |
| 166 | 166 | static WRITE16_HANDLER( gp2_vram_w ) |
| 167 | 167 | { |
| 168 | running_device *k056832 = | |
| 168 | running_device *k056832 = | |
| 169 | 169 | |
| 170 | 170 | if (offset < 0x1000 / 2) |
| 171 | 171 | k056832_ram_word_w(k056832, offset * 2 + 1, data, mem_mask); |
| r8581 | r8582 | |
| 175 | 175 | |
| 176 | 176 | static WRITE16_HANDLER( gp2_vram_mirror_w ) |
| 177 | 177 | { |
| 178 | running_device *k056832 = | |
| 178 | running_device *k056832 = | |
| 179 | 179 | |
| 180 | 180 | if (offset < 0x1000 / 2) |
| 181 | 181 | k056832_ram_word_w(k056832, offset * 2, data, mem_mask); |
| r8581 | r8582 | |
| 242 | 242 | |
| 243 | 243 | static READ16_HANDLER( gp2_ide_std_r ) |
| 244 | 244 | { |
| 245 | running_device *device = | |
| 245 | running_device *device = | |
| 246 | 246 | if (offset & 0x01) |
| 247 | 247 | { |
| 248 | 248 | if (offset == 0x07) |
| r8581 | r8582 | |
|---|---|---|
| 2945 | 2945 | { |
| 2946 | 2946 | cps_state *state = (cps_state *)machine->driver_data; |
| 2947 | 2947 | |
| 2948 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 2949 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 2948 | state->maincpu = machine->device("maincpu"); | |
| 2949 | state->audiocpu = machine->device("audiocpu"); | |
| 2950 | 2950 | } |
| 2951 | 2951 | |
| 2952 | 2952 | static MACHINE_START( cps1 ) |
| r8581 | r8582 | |
| 6266 | 6266 | |
| 6267 | 6267 | |
| 6268 | 6268 | |
| 6269 | /* B-Board 9163 | |
| 6269 | /* B-Board 91634B-2 */ | |
| 6270 | 6270 | ROM_START( captcomm ) |
| 6271 | 6271 | ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */ |
| 6272 | ROM_LOAD16_WORD_SWAP( "cce_23d.rom", 0x000000, 0x80000, CRC(19c58ece) SHA1(6e23e87db29b2c5698b7cead99d1106a2e190648) ) | |
| 6273 | ROM_LOAD16_WORD_SWAP( "cc_22d.rom", 0x080000, 0x80000, CRC(a91949b7) SHA1(c027af89cd8f6bd3aaed61114582322c42e0c74f) ) | |
| 6274 | ROM_LOAD16_BYTE( "cc_24d.rom", 0x100000, 0x20000, CRC(680e543f) SHA1(cfa963ab6329f615807db213bf53841860ed3149) ) | |
| 6275 | ROM_LOAD16_BYTE( "cc_28d.rom", 0x100001, 0x20000, CRC(8820039f) SHA1(d68ce0b34ade75b8c5214168b2b1e0cdff45cd52) ) | |
| 6272 | ROM_LOAD16_WORD_SWAP( "cce_23f.8f", 0x000000, 0x80000, CRC(42c814c5) SHA1(60e6ae6b8a89cdaa1abf1749c60a5e3b3972e1ab) ) | |
| 6273 | ROM_LOAD16_WORD_SWAP( "cc_22f.7f", 0x080000, 0x80000, CRC(0fd34195) SHA1(fb2b9a53af43507f13c4f94eaebbf0b538b2e754) ) | |
| 6274 | ROM_LOAD16_BYTE( "cc_24f.9e", 0x100000, 0x20000, CRC(3a794f25) SHA1(7f3722a4ef0c1d7acb73e6bac9dd6ae7b35e6374) ) | |
| 6275 | ROM_LOAD16_BYTE( "cc_28f.9f", 0x100001, 0x20000, CRC(fc3c2906) SHA1(621c3b79b6fdea1665bb316eb539e5916e890656) ) | |
| 6276 | 6276 | |
| 6277 | 6277 | ROM_REGION( 0x400000, "gfx", 0 ) |
| 6278 | ROMX_LOAD( "gfx_01.rom", 0x000000, 0x80000, CRC(7261d8ba) SHA1(4b66292e42d20d0b79a756f0e445492ddb9c6bbc) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 6279 | ROMX_LOAD( "gfx_03.rom", 0x000002, 0x80000, CRC(6a60f949) SHA1(87391ff92abaf3e451f70d789a938cffbd1fd222) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 6280 | ROMX_LOAD( "gfx_02.rom", 0x000004, 0x80000, CRC(00637302) SHA1(2c554b59cceec2de67a9a4bc6281fe846d3c8cd2) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 6281 | ROMX_LOAD( "gfx_04.rom", 0x000006, 0x80000, CRC(cc87cf61) SHA1(7fb1f49494cc1a08aded20754bb0cefb1c323198) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 6282 | ROMX_LOAD( "gfx_05.rom", 0x200000, 0x80000, CRC(28718bed) SHA1(dfdc4dd14dc609783bad94d608a9e9b137dea944) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 6283 | ROMX_LOAD( "gfx_07.rom", 0x200002, 0x80000, CRC(d4acc53a) SHA1(d03282ebbde362e679cc97f772aa9baf163d7606) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 6284 | ROMX_LOAD( "gfx_06.rom", 0x200004, 0x80000, CRC(0c69f151) SHA1(a170b8e568439e4a26d84376d53560e4248e4e2f) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 6285 | ROMX_LOAD( "gfx_08.rom", 0x200006, 0x80000, CRC(1f9ebb97) SHA1(023d00cb7b6a52d1b29e2052abe08ef34cb0c55c) , ROM_GROUPWORD | ROM_SKIP(6) ) | |
| 6278 | ROMX_LOAD( "cc_01.3a", 0x000000, 0x80000, CRC(7261d8ba) SHA1(4b66292e42d20d0b79a756f0e445492ddb9c6bbc) , ROM_GROUPWORD | ROM_SKIP(6) ) // == cc-5m.3a | |
| 6279 | ROMX_LOAD( "cc_02.4a", 0x000002, 0x80000, CRC(6a60f949) SHA1(87391ff92abaf3e451f70d789a938cffbd1fd222) , ROM_GROUPWORD | ROM_SKIP(6) ) // == cc-7m.5a | |
| 6280 | ROMX_LOAD( "cc_03.5a", 0x000004, 0x80000, CRC(00637302) SHA1(2c554b59cceec2de67a9a4bc6281fe846d3c8cd2) , ROM_GROUPWORD | ROM_SKIP(6) ) // == cc-1m.4a | |
| 6281 | ROMX_LOAD( "cc_04.6a", 0x000006, 0x80000, CRC(cc87cf61) SHA1(7fb1f49494cc1a08aded20754bb0cefb1c323198) , ROM_GROUPWORD | ROM_SKIP(6) ) // == cc-3m.6a | |
| 6282 | ROMX_LOAD( "cc_05.7a", 0x200000, 0x80000, CRC(28718bed) SHA1(dfdc4dd14dc609783bad94d608a9e9b137dea944) , ROM_GROUPWORD | ROM_SKIP(6) ) // == cc-6m.7a | |
| 6283 | ROMX_LOAD( "cc_06.8a", 0x200002, 0x80000, CRC(d4acc53a) SHA1(d03282ebbde362e679cc97f772aa9baf163d7606) , ROM_GROUPWORD | ROM_SKIP(6) ) // == cc-8m.9a | |
| 6284 | ROMX_LOAD( "cc_07.9a", 0x200004, 0x80000, CRC(0c69f151) SHA1(a170b8e568439e4a26d84376d53560e4248e4e2f) , ROM_GROUPWORD | ROM_SKIP(6) ) // == cc-2m.8a | |
| 6285 | ROMX_LOAD( "cc_08.10a", 0x200006, 0x80000, CRC(1f9ebb97) SHA1(023d00cb7b6a52d1b29e2052abe08ef34cb0c55c) , ROM_GROUPWORD | ROM_SKIP(6) ) // == cc-4m.10a | |
| 6286 | 6286 | |
| 6287 | 6287 | ROM_REGION( 0x18000, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */ |
| 6288 | ROM_LOAD( "cc_09. | |
| 6288 | ROM_LOAD( "cc_09.12a", 0x00000, 0x08000, CRC(698e8b58) SHA1(b7a3d905a7ed2c430426ca2e185e3d7e75e752a1) ) // == cc_09.11a | |
| 6289 | 6289 | ROM_CONTINUE( 0x10000, 0x08000 ) |
| 6290 | 6290 | |
| 6291 | 6291 | ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ |
| 6292 | ROM_LOAD( "cc_18.rom", 0x00000, 0x20000, CRC(6de2c2db) SHA1(9a1eaba8d104f59a5e61f89679bb5de0c0c64364) ) | |
| 6293 | ROM_LOAD( "cc_19.rom", 0x20000, 0x20000, CRC(b99091ae) SHA1(b19197c7ad3aeaf5f41c26bf853b0c9b502ecfca) ) | |
| 6292 | ROM_LOAD( "cc_18.11c", 0x00000, 0x20000, CRC(6de2c2db) SHA1(9a1eaba8d104f59a5e61f89679bb5de0c0c64364) ) | |
| 6293 | ROM_LOAD( "cc_19.12c", 0x20000, 0x20000, CRC(b99091ae) SHA1(b19197c7ad3aeaf5f41c26bf853b0c9b502ecfca) ) | |
| 6294 | 6294 | |
| 6295 | 6295 | ROM_REGION( 0x0200, "aboardplds", 0 ) |
| 6296 | 6296 | ROM_LOAD( "buf1", 0x0000, 0x0117, CRC(eb122de7) SHA1(b26b5bfe258e3e184f069719f9fd008d6b8f6b9b) ) |
| r8581 | r8582 | |
| 6309 | 6309 | ROM_LOAD( "c632.ic1", 0x0000, 0x0117, CRC(0fbd9270) SHA1(d7e737b20c44d41e29ca94be56114b31934dde81) ) |
| 6310 | 6310 | ROM_END |
| 6311 | 6311 | |
| 6312 | /* B-Board 91635B-2 */ | |
| 6313 | ROM_START( captcommr1 ) | |
| 6314 | ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */ | |
| 6315 | ROM_LOAD16_WORD_SWAP( "cce_23d.8f", 0x000000, 0x80000, CRC(19c58ece) SHA1(6e23e87db29b2c5698b7cead99d1106a2e190648) ) | |
| 6316 | ROM_LOAD16_WORD_SWAP( "cc_22d.7f", 0x080000, 0x80000, CRC(a91949b7) SHA1(c027af89cd8f6bd3aaed61114582322c42e0c74f) ) | |
| 6317 | ROM_LOAD16_BYTE( "cc_24d.9e", 0x100000, 0x20000, CRC(680e543f) SHA1(cfa963ab6329f615807db213bf53841860ed3149) ) | |
| 6318 | ROM_LOAD16_BYTE( "cc_28d.9f", 0x100001, 0x20000, CRC(8820039f) SHA1(d68ce0b34ade75b8c5214168b2b1e0cdff45cd52) ) | |
| 6319 | ||
| 6320 | ROM_REGION( 0x400000, "gfx", 0 ) | |
| 6321 | ROMX_LOAD( "cc-5m.3a", 0x000000, 0x80000, CRC(7261d8ba) SHA1(4b66292e42d20d0b79a756f0e445492ddb9c6bbc) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "1" socket | |
| 6322 | ROMX_LOAD( "cc-7m.5a", 0x000002, 0x80000, CRC(6a60f949) SHA1(87391ff92abaf3e451f70d789a938cffbd1fd222) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "3" socket | |
| 6323 | ROMX_LOAD( "cc-1m.4a", 0x000004, 0x80000, CRC(00637302) SHA1(2c554b59cceec2de67a9a4bc6281fe846d3c8cd2) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "2" socket | |
| 6324 | ROMX_LOAD( "cc-3m.6a", 0x000006, 0x80000, CRC(cc87cf61) SHA1(7fb1f49494cc1a08aded20754bb0cefb1c323198) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "4" socket | |
| 6325 | ROMX_LOAD( "cc-6m.7a", 0x200000, 0x80000, CRC(28718bed) SHA1(dfdc4dd14dc609783bad94d608a9e9b137dea944) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "5" socket | |
| 6326 | ROMX_LOAD( "cc-8m.9a", 0x200002, 0x80000, CRC(d4acc53a) SHA1(d03282ebbde362e679cc97f772aa9baf163d7606) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "7" socket | |
| 6327 | ROMX_LOAD( "cc-2m.8a", 0x200004, 0x80000, CRC(0c69f151) SHA1(a170b8e568439e4a26d84376d53560e4248e4e2f) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "6" socket | |
| 6328 | ROMX_LOAD( "cc-4m.10a", 0x200006, 0x80000, CRC(1f9ebb97) SHA1(023d00cb7b6a52d1b29e2052abe08ef34cb0c55c) , ROM_GROUPWORD | ROM_SKIP(6) ) // in "8" socket | |
| 6329 | ||
| 6330 | ROM_REGION( 0x18000, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */ | |
| 6331 | ROM_LOAD( "cc_09.11a", 0x00000, 0x08000, CRC(698e8b58) SHA1(b7a3d905a7ed2c430426ca2e185e3d7e75e752a1) ) | |
| 6332 | ROM_CONTINUE( 0x10000, 0x08000 ) | |
| 6333 | ||
| 6334 | ROM_REGION( 0x40000, "oki", 0 ) /* Samples */ | |
| 6335 | ROM_LOAD( "cc_18.11c", 0x00000, 0x20000, CRC(6de2c2db) SHA1(9a1eaba8d104f59a5e61f89679bb5de0c0c64364) ) | |
| 6336 | ROM_LOAD( "cc_19.12c", 0x20000, 0x20000, CRC(b99091ae) SHA1(b19197c7ad3aeaf5f41c26bf853b0c9b502ecfca) ) | |
| 6337 | ||
| 6338 | ROM_REGION( 0x0200, "aboardplds", 0 ) | |
| 6339 | ROM_LOAD( "buf1", 0x0000, 0x0117, CRC(eb122de7) SHA1(b26b5bfe258e3e184f069719f9fd008d6b8f6b9b) ) | |
| 6340 | ROM_LOAD( "ioa1", 0x0000, 0x0117, CRC(59c7ee3b) SHA1(fbb887c5b4f5cb8df77cec710eaac2985bc482a6) ) | |
| 6341 | ROM_LOAD( "prg1", 0x0000, 0x0117, CRC(f1129744) SHA1(a5300f301c1a08a7da768f0773fa0fe3f683b237) ) | |
| 6342 | ROM_LOAD( "rom1", 0x0000, 0x0117, CRC(41dc73b9) SHA1(7d4c9f1693c821fbf84e32dd6ef62ddf14967845) ) | |
| 6343 | ROM_LOAD( "sou1", 0x0000, 0x0117, CRC(84f4b2fe) SHA1(dcc9e86cc36316fe42eace02d6df75d08bc8bb6d) ) | |
| 6344 | ||
| 6345 | ROM_REGION( 0x0200, "bboardplds", 0 ) | |
| 6346 | ROM_LOAD( "cc63b.1a", 0x0000, 0x0117, CRC(cae8f0f9) SHA1(eadbd45e184195b2d170cd71a68e5caed64b69f7) ) | |
| 6347 | ROM_LOAD( "iob1.12d", 0x0000, 0x0117, CRC(3abc0700) SHA1(973043aa46ec6d5d1db20dc9d5937005a0f9f6ae) ) | |
| 6348 | ROM_LOAD( "ccprg.11d", 0x0000, 0x0117, CRC(e1c225c4) SHA1(97146451ca9aa3cecd443cc6881151ed8df47fbf) ) | |
| 6349 | ||
| 6350 | ROM_REGION( 0x0200, "cboardplds", 0 ) | |
| 6351 | ROM_LOAD( "ioc1.ic7", 0x0000, 0x0117, CRC(0d182081) SHA1(475b3d417785da4bc512cce2b274bb00d4cc6792) ) | |
| 6352 | ROM_LOAD( "c632.ic1", 0x0000, 0x0117, CRC(0fbd9270) SHA1(d7e737b20c44d41e29ca94be56114b31934dde81) ) | |
| 6353 | ROM_END | |
| 6354 | ||
| 6312 | 6355 | /* B-Board 91635B */ |
| 6313 | 6356 | ROM_START( captcommu ) |
| 6314 | 6357 | ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */ |
| r8581 | r8582 | |
| 9172 | 9215 | GAME( 1991, kod, 0, cps1_10MHz, kod, cps1, ROT0, "Capcom", "The King of Dragons (World 910711)", GAME_SUPPORTS_SAVE ) // "ETC" |
| 9173 | 9216 | GAME( 1991, kodu, kod, cps1_10MHz, kodj, cps1, ROT0, "Capcom", "The King of Dragons (US 910910)", GAME_SUPPORTS_SAVE ) |
| 9174 | 9217 | GAME( 1991, kodj, kod, cps1_10MHz, kodj, cps1, ROT0, "Capcom", "The King of Dragons (Japan 910805)", GAME_SUPPORTS_SAVE ) |
| 9175 | GAME( 1991, captcomm, 0, cps1_10MHz, captcomm, cps1, ROT0, "Capcom", "Captain Commando (World 911014)", GAME_SUPPORTS_SAVE ) // "OTHER COUNTRY" | |
| 9218 | GAME( 1991, captcomm, 0, cps1_10MHz, captcomm, cps1, ROT0, "Capcom", "Captain Commando (World 911202)", GAME_SUPPORTS_SAVE ) // "OTHER COUNTRY" | |
| 9219 | GAME( 1991, captcommr1, captcomm, cps1_10MHz, captcomm, cps1, ROT0, "Capcom", "Captain Commando (World 911014)", GAME_SUPPORTS_SAVE ) // "OTHER COUNTRY" | |
| 9176 | 9220 | GAME( 1991, captcommu,captcomm, cps1_10MHz, captcomm, cps1, ROT0, "Capcom", "Captain Commando (US 910928)", GAME_SUPPORTS_SAVE ) |
| 9177 | 9221 | GAME( 1991, captcommj,captcomm, cps1_10MHz, captcomm, cps1, ROT0, "Capcom", "Captain Commando (Japan 911202)", GAME_SUPPORTS_SAVE ) |
| 9178 | 9222 | GAME( 1991, captcommb,captcomm, cps1_10MHz, captcomm, cps1, ROT0, "bootleg","Captain Commando (bootleg)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
| r8581 | r8582 | |
|---|---|---|
| 559 | 559 | { |
| 560 | 560 | yunsun16_state *state = (yunsun16_state *)machine->driver_data; |
| 561 | 561 | |
| 562 | state->audiocpu = | |
| 562 | state->audiocpu = m | |
| 563 | 563 | |
| 564 | 564 | state_save_register_global(machine, state->sprites_scrolldx); |
| 565 | 565 | state_save_register_global(machine, state->sprites_scrolldy); |
| r8581 | r8582 | |
|---|---|---|
| 189 | 189 | |
| 190 | 190 | static WRITE8_HANDLER( sound_command_w ) |
| 191 | 191 | { |
| 192 | running_device *discrete = | |
| 192 | running_device *discrete = | |
| 193 | 193 | |
| 194 | 194 | switch (offset) |
| 195 | 195 | { |
| r8581 | r8582 | |
|---|---|---|
| 46 | 46 | Tekken Ver.C (C) Namco, 1995 |
| 47 | 47 | Tekken II Ver.C (C) Namco, 1995 |
| 48 | 48 | |
| 49 | If you can help with the remaining undumped S11 games, please contact http:// | |
| 49 | If you can help with the remaining undumped S11 games, please contact http://guru.mameworld.inf | |
| 50 | 50 | |
| 51 | 51 | |
| 52 | 52 | The Namco System 11 system comprises 3 PCB's.... |
| r8581 | r8582 | |
|---|---|---|
| 176 | 176 | static WRITE16_HANDLER( ripribit_control_w ) |
| 177 | 177 | { |
| 178 | 178 | coin_counter_w(space->machine, 0, data & 1); |
| 179 | ticket_dispenser_w( | |
| 179 | ticket_dispenser_w( | |
| 180 | 180 | output_set_lamp_value(0, (data >> 2) & 1); |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | |
| 184 | 184 | static WRITE16_HANDLER( cfarm_control_w ) |
| 185 | 185 | { |
| 186 | ticket_dispenser_w( | |
| 186 | ticket_dispenser_w( | |
| 187 | 187 | output_set_lamp_value(0, (data >> 2) & 1); |
| 188 | 188 | output_set_lamp_value(1, (data >> 3) & 1); |
| 189 | 189 | output_set_lamp_value(2, (data >> 4) & 1); |
| r8581 | r8582 | |
| 193 | 193 | |
| 194 | 194 | static WRITE16_HANDLER( cclownz_control_w ) |
| 195 | 195 | { |
| 196 | ticket_dispenser_w( | |
| 196 | ticket_dispenser_w( | |
| 197 | 197 | output_set_lamp_value(0, (data >> 2) & 1); |
| 198 | 198 | output_set_lamp_value(1, (data >> 4) & 1); |
| 199 | 199 | output_set_lamp_value(2, (data >> 5) & 1); |
| r8581 | r8582 | |
|---|---|---|
| 776 | 776 | /* bit 5 controls the coin counter */ |
| 777 | 777 | /* bit 6 controls the diagnostic sound LED */ |
| 778 | 778 | pia_portb_data = data; |
| 779 | ticket_dispenser_w( | |
| 779 | ticket_dispenser_w( | |
| 780 | 780 | coin_counter_w(space->machine, 0, (data & 0x20) >> 5); |
| 781 | 781 | } |
| 782 | 782 | |
| r8581 | r8582 | |
| 790 | 790 | /* bit 6 controls the diagnostic sound LED */ |
| 791 | 791 | /* bit 7 controls the ticket dispenser */ |
| 792 | 792 | pia_portb_data = data; |
| 793 | ticket_dispenser_w(dev | |
| 793 | ticket_dispenser_w(dev | |
| 794 | 794 | coin_counter_w(device->machine, 0, (data & 0x20) >> 5); |
| 795 | 795 | } |
| 796 | 796 |
| r8581 | r8582 | |
|---|---|---|
| 537 | 537 | { |
| 538 | 538 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 539 | 539 | UINT8 result = 0xff; |
| 540 | if (offset & 0x20) result &= ay8910_r(devtag_get_device(space->machine, "8910.1"), 0); | |
| 541 | if (offset & 0x80) result &= ay8910_r(devtag_get_device(space->machine, "8910.0"), 0); | |
| 540 | if (offset & 0x20) result &= ay8910_r(space->machine->device("8910.1"), 0); | |
| 541 | if (offset & 0x80) result &= ay8910_r(space->machine->device("8910.0"), 0); | |
| 542 | 542 | return result; |
| 543 | 543 | } |
| 544 | 544 | |
| r8581 | r8582 | |
| 548 | 548 | /* AV 4,5 ==> AY8910 #2 */ |
| 549 | 549 | /* the decoding here is very simplistic, and you can address two simultaneously */ |
| 550 | 550 | if (offset & 0x10) |
| 551 | ay8910_address_w( | |
| 551 | ay8910_address_w( | |
| 552 | 552 | else if (offset & 0x20) |
| 553 | ay8910_data_w( | |
| 553 | ay8910_data_w( | |
| 554 | 554 | /* AV6,7 ==> AY8910 #1 */ |
| 555 | 555 | if (offset & 0x40) |
| 556 | ay8910_address_w( | |
| 556 | ay8910_address_w( | |
| 557 | 557 | else if (offset & 0x80) |
| 558 | ay8910_data_w( | |
| 558 | ay8910_data_w( | |
| 559 | 559 | } |
| 560 | 560 | |
| 561 | 561 | |
| r8581 | r8582 | |
| 611 | 611 | |
| 612 | 612 | static WRITE8_HANDLER( konami_sound_filter_w ) |
| 613 | 613 | { |
| 614 | running_device *discrete = | |
| 614 | running_device *discrete = | |
| 615 | 615 | static const char *const ayname[2] = { "8910.0", "8910.1" }; |
| 616 | 616 | int which, chan; |
| 617 | 617 | |
| r8581 | r8582 | |
| 619 | 619 | /* AV0 .. AV5 ==> AY8910 #2 */ |
| 620 | 620 | /* AV6 .. AV11 ==> AY8910 #1 */ |
| 621 | 621 | for (which = 0; which < 2; which++) |
| 622 | if ( | |
| 622 | if ( | |
| 623 | 623 | for (chan = 0; chan < 3; chan++) |
| 624 | 624 | { |
| 625 | 625 | UINT8 bits = (offset >> (2 * chan + 6 * (1 - which))) & 3; |
| r8581 | r8582 | |
| 676 | 676 | { |
| 677 | 677 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 678 | 678 | UINT8 result = 0xff; |
| 679 | if (offset & 0x0100) result &= ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), offset & 3); | |
| 680 | if (offset & 0x0200) result &= ppi8255_r(devtag_get_device(space->machine, "ppi8255_1"), offset & 3); | |
| 679 | if (offset & 0x0100) result &= ppi8255_r(space->machine->device("ppi8255_0"), offset & 3); | |
| 680 | if (offset & 0x0200) result &= ppi8255_r(space->machine->device("ppi8255_1"), offset & 3); | |
| 681 | 681 | return result; |
| 682 | 682 | } |
| 683 | 683 | |
| r8581 | r8582 | |
| 685 | 685 | static WRITE8_HANDLER( theend_ppi8255_w ) |
| 686 | 686 | { |
| 687 | 687 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 688 | if (offset & 0x0100) ppi8255_w(devtag_get_device(space->machine, "ppi8255_0"), offset & 3, data); | |
| 689 | if (offset & 0x0200) ppi8255_w(devtag_get_device(space->machine, "ppi8255_1"), offset & 3, data); | |
| 688 | if (offset & 0x0100) ppi8255_w(space->machine->device("ppi8255_0"), offset & 3, data); | |
| 689 | if (offset & 0x0200) ppi8255_w(space->machine->device("ppi8255_1"), offset & 3, data); | |
| 690 | 690 | } |
| 691 | 691 | |
| 692 | 692 | |
| r8581 | r8582 | |
| 797 | 797 | { |
| 798 | 798 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 799 | 799 | UINT8 result = 0xff; |
| 800 | if (offset & 0x04) result &= ppi8255_r( | |
| 800 | if (offset & 0x04) result &= ppi8255_r( | |
| 801 | 801 | return result; |
| 802 | 802 | } |
| 803 | 803 | |
| r8581 | r8582 | |
| 805 | 805 | static WRITE8_HANDLER( sfx_sample_io_w ) |
| 806 | 806 | { |
| 807 | 807 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 808 | if (offset & 0x04) ppi8255_w(devtag_get_device(space->machine, "ppi8255_2"), offset & 3, data); | |
| 809 | if (offset & 0x10) dac_signed_data_w(devtag_get_device(space->machine, "dac"), data); | |
| 808 | if (offset & 0x04) ppi8255_w(space->machine->device("ppi8255_2"), offset & 3, data); | |
| 809 | if (offset & 0x10) dac_signed_data_w(space->machine->device("dac"), data); | |
| 810 | 810 | } |
| 811 | 811 | |
| 812 | 812 | |
| r8581 | r8582 | |
| 844 | 844 | { |
| 845 | 845 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 846 | 846 | UINT8 result = 0xff; |
| 847 | if (offset & 0x1000) result &= ppi8255_r(devtag_get_device(space->machine, "ppi8255_1"), (offset >> 1) & 3); | |
| 848 | if (offset & 0x2000) result &= ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), (offset >> 1) & 3); | |
| 847 | if (offset & 0x1000) result &= ppi8255_r(space->machine->device("ppi8255_1"), (offset >> 1) & 3); | |
| 848 | if (offset & 0x2000) result &= ppi8255_r(space->machine->device("ppi8255_0"), (offset >> 1) & 3); | |
| 849 | 849 | return result; |
| 850 | 850 | } |
| 851 | 851 | |
| r8581 | r8582 | |
| 853 | 853 | static WRITE8_HANDLER( frogger_ppi8255_w ) |
| 854 | 854 | { |
| 855 | 855 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 856 | if (offset & 0x1000) ppi8255_w(devtag_get_device(space->machine, "ppi8255_1"), (offset >> 1) & 3, data); | |
| 857 | if (offset & 0x2000) ppi8255_w(devtag_get_device(space->machine, "ppi8255_0"), (offset >> 1) & 3, data); | |
| 856 | if (offset & 0x1000) ppi8255_w(space->machine->device("ppi8255_1"), (offset >> 1) & 3, data); | |
| 857 | if (offset & 0x2000) ppi8255_w(space->machine->device("ppi8255_0"), (offset >> 1) & 3, data); | |
| 858 | 858 | } |
| 859 | 859 | |
| 860 | 860 | |
| r8581 | r8582 | |
| 862 | 862 | { |
| 863 | 863 | /* the decoding here is very simplistic */ |
| 864 | 864 | UINT8 result = 0xff; |
| 865 | if (offset & 0x40) result &= ay8910_r( | |
| 865 | if (offset & 0x40) result &= ay8910_r( | |
| 866 | 866 | return result; |
| 867 | 867 | } |
| 868 | 868 | |
| r8581 | r8582 | |
| 872 | 872 | /* the decoding here is very simplistic */ |
| 873 | 873 | /* AV6,7 ==> AY8910 #1 */ |
| 874 | 874 | if (offset & 0x40) |
| 875 | ay8910_data_w( | |
| 875 | ay8910_data_w( | |
| 876 | 876 | else if (offset & 0x80) |
| 877 | ay8910_address_w( | |
| 877 | ay8910_address_w( | |
| 878 | 878 | } |
| 879 | 879 | |
| 880 | 880 | |
| r8581 | r8582 | |
| 903 | 903 | { |
| 904 | 904 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 905 | 905 | UINT8 result = 0xff; |
| 906 | if (offset & 0x1000) result &= ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), (offset >> 3) & 3); | |
| 907 | if (offset & 0x2000) result &= ppi8255_r(devtag_get_device(space->machine, "ppi8255_1"), (offset >> 3) & 3); | |
| 906 | if (offset & 0x1000) result &= ppi8255_r(space->machine->device("ppi8255_0"), (offset >> 3) & 3); | |
| 907 | if (offset & 0x2000) result &= ppi8255_r(space->machine->device("ppi8255_1"), (offset >> 3) & 3); | |
| 908 | 908 | return result; |
| 909 | 909 | } |
| 910 | 910 | |
| r8581 | r8582 | |
| 912 | 912 | static WRITE8_HANDLER( frogf_ppi8255_w ) |
| 913 | 913 | { |
| 914 | 914 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 915 | if (offset & 0x1000) ppi8255_w(devtag_get_device(space->machine, "ppi8255_0"), (offset >> 3) & 3, data); | |
| 916 | if (offset & 0x2000) ppi8255_w(devtag_get_device(space->machine, "ppi8255_1"), (offset >> 3) & 3, data); | |
| 915 | if (offset & 0x1000) ppi8255_w(space->machine->device("ppi8255_0"), (offset >> 3) & 3, data); | |
| 916 | if (offset & 0x2000) ppi8255_w(space->machine->device("ppi8255_1"), (offset >> 3) & 3, data); | |
| 917 | 917 | } |
| 918 | 918 | |
| 919 | 919 | |
| r8581 | r8582 | |
| 924 | 924 | * |
| 925 | 925 | *************************************/ |
| 926 | 926 | |
| 927 | static READ8_HANDLER( turtles_ppi8255_0_r ) { return ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), (offset >> 4) & 3); } | |
| 928 | static READ8_HANDLER( turtles_ppi8255_1_r ) { return ppi8255_r(devtag_get_device(space->machine, "ppi8255_1"), (offset >> 4) & 3); } | |
| 929 | static WRITE8_HANDLER( turtles_ppi8255_0_w ) { ppi8255_w(devtag_get_device(space->machine, "ppi8255_0"), (offset >> 4) & 3, data); } | |
| 930 | static WRITE8_HANDLER( turtles_ppi8255_1_w ) { ppi8255_w(devtag_get_device(space->machine, "ppi8255_1"), (offset >> 4) & 3, data); } | |
| 927 | static READ8_HANDLER( turtles_ppi8255_0_r ) { return ppi8255_r(space->machine->device("ppi8255_0"), (offset >> 4) & 3); } | |
| 928 | static READ8_HANDLER( turtles_ppi8255_1_r ) { return ppi8255_r(space->machine->device("ppi8255_1"), (offset >> 4) & 3); } | |
| 929 | static WRITE8_HANDLER( turtles_ppi8255_0_w ) { ppi8255_w(space->machine->device("ppi8255_0"), (offset >> 4) & 3, data); } | |
| 930 | static WRITE8_HANDLER( turtles_ppi8255_1_w ) { ppi8255_w(space->machine->device("ppi8255_1"), (offset >> 4) & 3, data); } | |
| 931 | 931 | |
| 932 | 932 | |
| 933 | 933 | |
| r8581 | r8582 | |
| 941 | 941 | { |
| 942 | 942 | /* the decoding here is very simplistic, and you can address both simultaneously */ |
| 943 | 943 | UINT8 result = 0xff; |
| 944 | if (offset & 0x08) result &= ay8910_r(devtag_get_device(space->machine, "8910.2"), 0); | |
| 945 | if (offset & 0x20) result &= ay8910_r(devtag_get_device(space->machine, "8910.1"), 0); | |
| 946 | if (offset & 0x80) result &= ay8910_r(devtag_get_device(space->machine, "8910.0"), 0); | |
| 944 | if (offset & 0x08) result &= ay8910_r(space->machine->device("8910.2"), 0); | |
| 945 | if (offset & 0x20) result &= ay8910_r(space->machine->device("8910.1"), 0); | |
| 946 | if (offset & 0x80) result &= ay8910_r(space->machine->device("8910.0"), 0); | |
| 947 | 947 | return result; |
| 948 | 948 | } |
| 949 | 949 | |
| r8581 | r8582 | |
| 951 | 951 | static WRITE8_HANDLER( scorpion_ay8910_w ) |
| 952 | 952 | { |
| 953 | 953 | /* the decoding here is very simplistic, and you can address all six simultaneously */ |
| 954 | if (offset & 0x04) ay8910_address_w(devtag_get_device(space->machine, "8910.2"), 0, data); | |
| 955 | if (offset & 0x08) ay8910_data_w(devtag_get_device(space->machine, "8910.2"), 0, data); | |
| 956 | if (offset & 0x10) ay8910_address_w(devtag_get_device(space->machine, "8910.1"), 0, data); | |
| 957 | if (offset & 0x20) ay8910_data_w(devtag_get_device(space->machine, "8910.1"), 0, data); | |
| 958 | if (offset & 0x40) ay8910_address_w(devtag_get_device(space->machine, "8910.0"), 0, data); | |
| 959 | if (offset & 0x80) ay8910_data_w(devtag_get_device(space->machine, "8910.0"), 0, data); | |
| 954 | if (offset & 0x04) ay8910_address_w(space->machine->device("8910.2"), 0, data); | |
| 955 | if (offset & 0x08) ay8910_data_w(space->machine->device("8910.2"), 0, data); | |
| 956 | if (offset & 0x10) ay8910_address_w(space->machine->device("8910.1"), 0, data); | |
| 957 | if (offset & 0x20) ay8910_data_w(space->machine->device("8910.1"), 0, data); | |
| 958 | if (offset & 0x40) ay8910_address_w(space->machine->device("8910.0"), 0, data); | |
| 959 | if (offset & 0x80) ay8910_data_w(space->machine->device("8910.0"), 0, data); | |
| 960 | 960 | } |
| 961 | 961 | |
| 962 | 962 | |
| r8581 | r8582 | |
| 991 | 991 | |
| 992 | 992 | static READ8_HANDLER( scorpion_digitalker_intr_r ) |
| 993 | 993 | { |
| 994 | running_device *digitalker = | |
| 994 | running_device *digitalker = | |
| 995 | 995 | return digitalker_0_intr_r(digitalker); |
| 996 | 996 | } |
| 997 | 997 | |
| r8581 | r8582 | |
| 1071 | 1071 | /* bit 0 = WRITE */ |
| 1072 | 1072 | /* bit 1 = C/D */ |
| 1073 | 1073 | if ((offset & 1) != 0) |
| 1074 | ay8910_data_address_w( | |
| 1074 | ay8910_data_address_w( | |
| 1075 | 1075 | break; |
| 1076 | 1076 | |
| 1077 | 1077 | case 0x100: |
| r8581 | r8582 | |
| 1163 | 1163 | static WRITE8_HANDLER( mshuttle_ay8910_control_w ) |
| 1164 | 1164 | { |
| 1165 | 1165 | if (!mshuttle_ay8910_cs) |
| 1166 | ay8910_address_w( | |
| 1166 | ay8910_address_w( | |
| 1167 | 1167 | } |
| 1168 | 1168 | |
| 1169 | 1169 | |
| 1170 | 1170 | static WRITE8_HANDLER( mshuttle_ay8910_data_w ) |
| 1171 | 1171 | { |
| 1172 | 1172 | if (!mshuttle_ay8910_cs) |
| 1173 | ay8910_data_w( | |
| 1173 | ay8910_data_w( | |
| 1174 | 1174 | } |
| 1175 | 1175 | |
| 1176 | 1176 | |
| 1177 | 1177 | static READ8_HANDLER( mshuttle_ay8910_data_r ) |
| 1178 | 1178 | { |
| 1179 | 1179 | if (!mshuttle_ay8910_cs) |
| 1180 | return ay8910_r( | |
| 1180 | return ay8910_r( | |
| 1181 | 1181 | return 0xff; |
| 1182 | 1182 | } |
| 1183 | 1183 |
| r8581 | r8582 | |
|---|---|---|
| 654 | 654 | { |
| 655 | 655 | hyprduel_state *state = (hyprduel_state *)machine->driver_data; |
| 656 | 656 | |
| 657 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 658 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 657 | state->maincpu = machine->device("maincpu"); | |
| 658 | state->subcpu = machine->device("sub"); | |
| 659 | 659 | |
| 660 | 660 | state_save_register_global(machine, state->blitter_bit); |
| 661 | 661 | state_save_register_global(machine, state->requested_int); |
| r8581 | r8582 | |
|---|---|---|
| 92 | 92 | { |
| 93 | 93 | /* generate 32V signals */ |
| 94 | 94 | if ((scanline & 32) == 0) |
| 95 | atarigen_scanline_int_gen( | |
| 95 | atarigen_scanline_int_gen( | |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 |
| r8581 | r8582 | |
|---|---|---|
| 658 | 658 | { |
| 659 | 659 | flstory_state *state = (flstory_state *)machine->driver_data; |
| 660 | 660 | |
| 661 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 662 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 663 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 661 | state->maincpu = machine->device("maincpu"); | |
| 662 | state->audiocpu = machine->device("audiocpu"); | |
| 663 | state->mcu = machine->device("mcu"); | |
| 664 | 664 | |
| 665 | 665 | /* video */ |
| 666 | 666 | state_save_register_global(machine, state->char_bank); |
| r8581 | r8582 | |
|---|---|---|
| 300 | 300 | { |
| 301 | 301 | suprslam_state *state = (suprslam_state *)machine->driver_data; |
| 302 | 302 | |
| 303 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 304 | state->k053936 = devtag_get_device(machine, "k053936"); | |
| 303 | state->audiocpu = machine->device("audiocpu"); | |
| 304 | state->k053936 = machine->device("k053936"); | |
| 305 | 305 | |
| 306 | 306 | state_save_register_global(machine, state->screen_bank); |
| 307 | 307 | state_save_register_global(machine, state->bg_bank); |
| r8581 | r8582 | |
|---|---|---|
| 77 | 77 | |
| 78 | 78 | BrianT |
| 79 | 79 | |
| 80 | * There is a MESS driver for this chip (gm68b45s CTR controller): | |
| 81 | http://cvs.mess.org:6502/cgi-bin/viewcvs.cgi/mess/video/m6845.c?rev=1.10 | |
| 82 | ||
| 83 | 80 | Top board: |
| 84 | 81 | --- Edge Connection --- |
| 85 | 82 | GS9403 7EX 8EX Part # Misc HD74LS374p |
| r8581 | r8582 | |
| 216 | 213 | |
| 217 | 214 | static READ16_HANDLER(bmcbowl_via_r) |
| 218 | 215 | { |
| 219 | running_device *via_0 = | |
| 216 | running_device *via_0 = | |
| 220 | 217 | return via_r(via_0, offset); |
| 221 | 218 | } |
| 222 | 219 | |
| 223 | 220 | static WRITE16_HANDLER(bmcbowl_via_w) |
| 224 | 221 | { |
| 225 | running_device *via_0 = | |
| 222 | running_device *via_0 = | |
| 226 | 223 | via_w(via_0, offset, data); |
| 227 | 224 | } |
| 228 | 225 |
| r8581 | r8582 | |
|---|---|---|
| 451 | 451 | { |
| 452 | 452 | kyugo_state *state = (kyugo_state *)machine->driver_data; |
| 453 | 453 | |
| 454 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 455 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 454 | state->maincpu = machine->device("maincpu"); | |
| 455 | state->subcpu = machine->device("sub"); | |
| 456 | 456 | |
| 457 | 457 | state_save_register_global(machine, state->scroll_x_lo); |
| 458 | 458 | state_save_register_global(machine, state->scroll_x_hi); |
| r8581 | r8582 | |
| 467 | 467 | kyugo_state *state = (kyugo_state *)machine->driver_data; |
| 468 | 468 | const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM); |
| 469 | 469 | // must start with interrupts and sub CPU disabled |
| 470 | cpu_interrupt_enable( | |
| 470 | cpu_interrupt_enable(m | |
| 471 | 471 | kyugo_sub_cpu_control_w(space, 0, 0); |
| 472 | 472 | |
| 473 | 473 | state->scroll_x_lo = 0; |
| r8581 | r8582 | |
|---|---|---|
| 603 | 603 | { |
| 604 | 604 | lazercmd_state *state = (lazercmd_state *)machine->driver_data; |
| 605 | 605 | |
| 606 | state->dac = | |
| 606 | state->dac = m | |
| 607 | 607 | |
| 608 | 608 | state_save_register_global(machine, state->marker_x); |
| 609 | 609 | state_save_register_global(machine, state->marker_y); |
| r8581 | r8582 | |
|---|---|---|
| 213 | 213 | |
| 214 | 214 | static MACHINE_START( streetg2 ) |
| 215 | 215 | { |
| 216 | cpu_set_irq_callback( | |
| 216 | cpu_set_irq_callback(m | |
| 217 | 217 | |
| 218 | 218 | init_pc_common(machine, PCCOMMON_KEYBOARD_AT, streetg2_set_keyb_int); |
| 219 | 219 | mc146818_init(machine, MC146818_STANDARD); |
| r8581 | r8582 | |
|---|---|---|
| 144 | 144 | |
| 145 | 145 | static WRITE8_DEVICE_HANDLER( lordgun_eeprom_w ) |
| 146 | 146 | { |
| 147 | running_device *eeprom = dev | |
| 147 | running_device *eeprom = dev | |
| 148 | 148 | static UINT8 old; |
| 149 | 149 | int i; |
| 150 | 150 | |
| r8581 | r8582 | |
| 177 | 177 | |
| 178 | 178 | static WRITE8_DEVICE_HANDLER( aliencha_eeprom_w ) |
| 179 | 179 | { |
| 180 | running_device *eeprom = dev | |
| 180 | running_device *eeprom = dev | |
| 181 | 181 | |
| 182 | 182 | if (~data & ~0xf8) |
| 183 | 183 | { |
| r8581 | r8582 | |
| 985 | 985 | ROM_REGION( 0x40000, "oki2", 0 ) // Samples |
| 986 | 986 | ROM_LOAD( "hfh_g.u66", 0x00000, 0x40000, CRC(7cfcd98e) SHA1(3b03123160adfd3404a9e0c4c68420930e80ae48) ) |
| 987 | 987 | |
| 988 | ROM_REGION( 0x200000, "ymf", 0 ) // Samples | |
| 989 | ROM_LOAD( "yrw801-m", 0x000000, 0x200000, NO_DUMP CRC(2a9d8d43) SHA1(32760893ce06dbe3930627755ba065cc3d8ec6ca) ) // not present in this set: Yamaha YRW801 2MB ROM with samples for the OPL4 | |
| 988 | ROM_REGION( 0x200000, "ymf", 0 ) // Samples (Standard Yamaha YRW801 2MB samples ROM) | |
| 989 | ROM_LOAD( "yrw801-m", 0x000000, 0x200000, CRC(2a9d8d43) SHA1(32760893ce06dbe3930627755ba065cc3d8ec6ca) ) /* Not dumped from PCB, but is a standard samples rom */ | |
| 990 | 990 | ROM_END |
| 991 | 991 | |
| 992 | 992 | /*************************************************************************** |
| r8581 | r8582 | |
| 1008 | 1008 | ROM_LOAD( "hfh_s.u86", 0x00000, 0x10000, CRC(5728a9ed) SHA1(e5a9e4a1a2cc6c848b08608bc8727bc739270873) ) |
| 1009 | 1009 | |
| 1010 | 1010 | ROM_REGION( 0x300000, "tiles0", 0 ) // Tilemaps 0 & 3 |
| 1011 | ROM_LOAD( "igst0101.u9", 0x000000, 0x100000, NO_DUMP CRC(2ce12d7b) SHA1(aa93a82e5f4015c46bb705efb2051b62cd5d7e04) ) | |
| 1012 | ROM_LOAD( "igst0102.u10", 0x100000, 0x100000, NO_DUMP CRC(542a76a0) SHA1(6947b50a024d0053c1eaf9da8c90652bab875142) ) | |
| 1013 | ROM_LOAD( "igst0103.u11", 0x200000, 0x100000, NO_DUMP CRC(adf5698a) SHA1(4b798f8acc5d7581c7e0989260863ae0ca654acd) ) | |
| 1011 | ROM_LOAD( "igst0101.u9", 0x000000, 0x100000, BAD_DUMP CRC(2ce12d7b) SHA1(aa93a82e5f4015c46bb705efb2051b62cd5d7e04) ) /* Graphics ROMs not confirmed to be the same */ | |
| 1012 | ROM_LOAD( "igst0102.u10", 0x100000, 0x100000, BAD_DUMP CRC(542a76a0) SHA1(6947b50a024d0053c1eaf9da8c90652bab875142) ) /* Use these until roms are dumped / verified */ | |
| 1013 | ROM_LOAD( "igst0103.u11", 0x200000, 0x100000, BAD_DUMP CRC(adf5698a) SHA1(4b798f8acc5d7581c7e0989260863ae0ca654acd) ) | |
| 1014 | 1014 | |
| 1015 | 1015 | ROM_REGION( 0x600000, "tiles1", 0 ) // Tilemaps 1 & 2 |
| 1016 | ROM_LOAD( "igsb0101.u8", 0x000000, 0x200000, NO_DUMP CRC(5c995f7e) SHA1(4f08cf13e313c6802c924b914c73cab4b450da61) ) | |
| 1017 | ROM_LOAD( "igsb0102.u7", 0x200000, 0x200000, NO_DUMP CRC(a2ae9baf) SHA1(338ee260c33448568f138ca00e1d4edda4da018f) ) | |
| 1018 | ROM_LOAD( "igsb0103.u6", 0x400000, 0x200000, NO_DUMP CRC(11b927af) SHA1(2f15e5cea1b86cde3b679bdd0f3d79672d0ddd3e) ) | |
| 1016 | ROM_LOAD( "igsb0101.u8", 0x000000, 0x200000, BAD_DUMP CRC(5c995f7e) SHA1(4f08cf13e313c6802c924b914c73cab4b450da61) ) /* Graphics ROMs not confirmed to be the same */ | |
| 1017 | ROM_LOAD( "igsb0102.u7", 0x200000, 0x200000, BAD_DUMP CRC(a2ae9baf) SHA1(338ee260c33448568f138ca00e1d4edda4da018f) ) /* Use these until roms are dumped / verified */ | |
| 1018 | ROM_LOAD( "igsb0103.u6", 0x400000, 0x200000, BAD_DUMP CRC(11b927af) SHA1(2f15e5cea1b86cde3b679bdd0f3d79672d0ddd3e) ) | |
| 1019 | 1019 | |
| 1020 | 1020 | ROM_REGION( 0xc00000, "sprites", 0 ) // Sprites |
| 1021 | ROM_LOAD( "igsa0101.u3", 0x000000, 0x400000, NO_DUMP CRC(374d07c4) SHA1(87e9bfe32cbfe9964ba7253847fbd14aa3c8ed20) ) | |
| 1022 | ROM_LOAD( "igsa0102.u2", 0x400000, 0x400000, NO_DUMP CRC(dbeee7ac) SHA1(e0eb0d73d9230aa6f69f5ac25d44fa19affebe88) ) | |
| 1023 | ROM_LOAD( "igsa0103.u1", 0x800000, 0x400000, NO_DUMP CRC(e5f19041) SHA1(c92a29bbbcb9a1f63364c665e3e0f9679add4389) ) | |
| 1021 | ROM_LOAD( "igsa0101.u3", 0x000000, 0x400000, BAD_DUMP CRC(374d07c4) SHA1(87e9bfe32cbfe9964ba7253847fbd14aa3c8ed20) ) /* Graphics ROMs not confirmed to be the same */ | |
| 1022 | ROM_LOAD( "igsa0102.u2", 0x400000, 0x400000, BAD_DUMP CRC(dbeee7ac) SHA1(e0eb0d73d9230aa6f69f5ac25d44fa19affebe88) ) /* Use these until roms are dumped / verified */ | |
| 1023 | ROM_LOAD( "igsa0103.u1", 0x800000, 0x400000, BAD_DUMP CRC(e5f19041) SHA1(c92a29bbbcb9a1f63364c665e3e0f9679add4389) ) | |
| 1024 | 1024 | |
| 1025 | 1025 | ROM_REGION( 0x40000, "oki", 0 ) // Samples |
| 1026 | 1026 | ROM_LOAD( "hfh_g.u65", 0x00000, 0x40000, CRC(ec469b57) SHA1(ba1668078987ad51f47bcd3e61c51a0cf2545350) ) |
| r8581 | r8582 | |
| 1028 | 1028 | ROM_REGION( 0x40000, "oki2", 0 ) // Samples |
| 1029 | 1029 | ROM_LOAD( "hfh_g.u66", 0x00000, 0x40000, CRC(7cfcd98e) SHA1(3b03123160adfd3404a9e0c4c68420930e80ae48) ) |
| 1030 | 1030 | |
| 1031 | ROM_REGION( 0x200000, "ymf", 0 ) // Samples | |
| 1032 | ROM_LOAD( "yrw801-m", 0x000000, 0x200000, NO_DUMP CRC(2a9d8d43) SHA1(32760893ce06dbe3930627755ba065cc3d8ec6ca) ) // not present in this set: Yamaha YRW801 2MB ROM with samples for the OPL4 | |
| 1031 | ROM_REGION( 0x200000, "ymf", 0 ) // Samples (Standard Yamaha YRW801 2MB samples ROM) | |
| 1032 | ROM_LOAD( "yrw801-m", 0x000000, 0x200000, CRC(2a9d8d43) SHA1(32760893ce06dbe3930627755ba065cc3d8ec6ca) ) /* Not dumped from PCB, but is a standard samples rom */ | |
| 1033 | 1033 | ROM_END |
| 1034 | 1034 | |
| 1035 | 1035 |
| r8581 | r8582 | |
|---|---|---|
| 173 | 173 | { |
| 174 | 174 | zerozone_state *state = (zerozone_state *)machine->driver_data; |
| 175 | 175 | |
| 176 | state->audiocpu = | |
| 176 | state->audiocpu = m | |
| 177 | 177 | |
| 178 | 178 | state_save_register_global(machine, state->tilebank); |
| 179 | 179 | } |
| r8581 | r8582 | |
|---|---|---|
| 259 | 259 | { |
| 260 | 260 | lemmings_state *state = (lemmings_state *)machine->driver_data; |
| 261 | 261 | |
| 262 | state->audiocpu = | |
| 262 | state->audiocpu = m | |
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | static MACHINE_DRIVER_START( lemmings ) |
| r8581 | r8582 | |
|---|---|---|
| 63 | 63 | { |
| 64 | 64 | espial_state *state = (espial_state *)machine->driver_data; |
| 65 | 65 | |
| 66 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 67 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 66 | state->maincpu = machine->device("maincpu"); | |
| 67 | state->audiocpu = machine->device("audiocpu"); | |
| 68 | 68 | |
| 69 | 69 | //state_save_register_global_array(machine, mcu_out[1]); |
| 70 | 70 | state_save_register_global(machine, state->sound_nmi_enabled); |
| r8581 | r8582 | |
|---|---|---|
| 2237 | 2237 | { |
| 2238 | 2238 | tmnt_state *state = (tmnt_state *)machine->driver_data; |
| 2239 | 2239 | |
| 2240 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 2241 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 2242 | state->k007232 = devtag_get_device(machine, "k007232"); | |
| 2243 | state->k053260 = devtag_get_device(machine, "k053260"); | |
| 2244 | state->k054539 = devtag_get_device(machine, "k054539"); | |
| 2245 | state->upd = devtag_get_device(machine, "upd"); | |
| 2246 | state->samples = devtag_get_device(machine, "samples"); | |
| 2247 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 2248 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 2249 | state->k053245 = devtag_get_device(machine, "k053245"); | |
| 2250 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 2251 | state->k053936 = devtag_get_device(machine, "k053936"); | |
| 2252 | state->k054000 = devtag_get_device(machine, "k054000"); | |
| 2240 | state->maincpu = machine->device("maincpu"); | |
| 2241 | state->audiocpu = machine->device("audiocpu"); | |
| 2242 | state->k007232 = machine->device("k007232"); | |
| 2243 | state->k053260 = machine->device("k053260"); | |
| 2244 | state->k054539 = machine->device("k054539"); | |
| 2245 | state->upd = machine->device("upd"); | |
| 2246 | state->samples = machine->device("samples"); | |
| 2247 | state->k052109 = machine->device("k052109"); | |
| 2248 | state->k051960 = machine->device("k051960"); | |
| 2249 | state->k053245 = machine->device("k053245"); | |
| 2250 | state->k053251 = machine->device("k053251"); | |
| 2251 | state->k053936 = machine->device("k053936"); | |
| 2252 | state->k054000 = machine->device("k054000"); | |
| 2253 | 2253 | |
| 2254 | 2254 | state_save_register_global(machine, state->toggle); |
| 2255 | 2255 | state_save_register_global(machine, state->last); |
| r8581 | r8582 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | static VIDEO_START(kongambl) |
| 22 | 22 | { |
| 23 | running_device *k056832 = | |
| 23 | running_device *k056832 = m | |
| 24 | 24 | |
| 25 | 25 | k056832_set_layer_association(k056832, 0); |
| 26 | 26 | k056832_set_layer_offs(k056832, 0, -2, 0); |
| r8581 | r8582 | |
| 31 | 31 | |
| 32 | 32 | static VIDEO_UPDATE(kongambl) |
| 33 | 33 | { |
| 34 | running_device *k056832 = | |
| 34 | running_device *k056832 = | |
| 35 | 35 | |
| 36 | 36 | bitmap_fill(bitmap, cliprect, 0); |
| 37 | 37 | bitmap_fill(screen->machine->priority_bitmap, cliprect, 0); |
| r8581 | r8582 | |
|---|---|---|
| 195 | 195 | { |
| 196 | 196 | mogura_state *state = (mogura_state *)machine->driver_data; |
| 197 | 197 | |
| 198 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 199 | state->dac1 = devtag_get_device(machine, "dac1"); | |
| 200 | state->dac2 = devtag_get_device(machine, "dac2"); | |
| 198 | state->maincpu = machine->device("maincpu"); | |
| 199 | state->dac1 = machine->device("dac1"); | |
| 200 | state->dac2 = machine->device("dac2"); | |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | static MACHINE_DRIVER_START( mogura ) |
| r8581 | r8582 | |
|---|---|---|
| 474 | 474 | { |
| 475 | 475 | /* offset 4 writes to the S14001A */ |
| 476 | 476 | case 4: |
| 477 | device = | |
| 477 | device = | |
| 478 | 478 | switch (data >> 6) |
| 479 | 479 | { |
| 480 | 480 | /* write data to the S14001 */ |
| r8581 | r8582 | |
| 492 | 492 | break; |
| 493 | 493 | |
| 494 | 494 | case 1: |
| 495 | device = | |
| 495 | device = | |
| 496 | 496 | /* volume */ |
| 497 | 497 | s14001a_set_volume(device, ((data & 0x38) >> 3) + 1); |
| 498 | 498 | |
| r8581 | r8582 | |
| 524 | 524 | |
| 525 | 525 | static READ8_HANDLER( berzerk_audio_r ) |
| 526 | 526 | { |
| 527 | running_device *device = | |
| 527 | running_device *device = | |
| 528 | 528 | switch (offset) |
| 529 | 529 | { |
| 530 | 530 | /* offset 4 reads from the S14001A */ |
| r8581 | r8582 | |
|---|---|---|
| 516 | 516 | machine->generic.paletteram.u8 = auto_alloc_array_clear(machine, UINT8, 0x800); |
| 517 | 517 | state->pmcram = auto_alloc_array_clear(machine, UINT8, 0x800); |
| 518 | 518 | |
| 519 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 520 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 521 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 522 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 523 | state->k007232_1 = devtag_get_device(machine, "k007232_1"); | |
| 524 | state->k007232_2 = devtag_get_device(machine, "k007232_2"); | |
| 519 | state->maincpu = machine->device("maincpu"); | |
| 520 | state->audiocpu = machine->device("audiocpu"); | |
| 521 | state->k052109 = machine->device("k052109"); | |
| 522 | state->k051960 = machine->device("k051960"); | |
| 523 | state->k007232_1 = machine->device("k007232_1"); | |
| 524 | state->k007232_2 = machine->device("k007232_2"); | |
| 525 | 525 | |
| 526 | 526 | state_save_register_global(machine, state->rambank); |
| 527 | 527 | state_save_register_global(machine, state->pmcbank); |
| r8581 | r8582 | |
|---|---|---|
| 1028 | 1028 | { |
| 1029 | 1029 | psikyo_state *state = (psikyo_state *)machine->driver_data; |
| 1030 | 1030 | |
| 1031 | state->audiocpu = | |
| 1031 | state->audiocpu = m | |
| 1032 | 1032 | |
| 1033 | 1033 | state_save_register_global(machine, state->soundlatch); |
| 1034 | 1034 | state_save_register_global(machine, state->z80_nmi); |
| r8581 | r8582 | |
|---|---|---|
| 438 | 438 | { |
| 439 | 439 | dacholer_state *state = (dacholer_state *)machine->driver_data; |
| 440 | 440 | |
| 441 | state->audiocpu = | |
| 441 | state->audiocpu = m | |
| 442 | 442 | |
| 443 | 443 | state_save_register_global(machine, state->bg_bank); |
| 444 | 444 | state_save_register_global(machine, state->msm_data); |
| r8581 | r8582 | |
|---|---|---|
| 523 | 523 | |
| 524 | 524 | memory_configure_bank(machine, "bank1", 0, 17, &AUDIO[0x0000], 0x4000); |
| 525 | 525 | |
| 526 | state->audio_cpu = devtag_get_device(machine, "audiocpu"); | |
| 527 | state->eeprom = devtag_get_device(machine, "eeprom"); | |
| 526 | state->audio_cpu = machine->device("audiocpu"); | |
| 527 | state->eeprom = machine->device("eeprom"); | |
| 528 | 528 | |
| 529 | 529 | state_save_register_global(machine, state->tilemap0_color); |
| 530 | 530 | } |
| r8581 | r8582 | |
|---|---|---|
| 1143 | 1143 | case 0x9c: /* Unknown */ |
| 1144 | 1144 | break; |
| 1145 | 1145 | default: |
| 1146 | logerror("dma_callback: %08X, %08X, %d at %08X", src, dst, length, cpu_get_pc( | |
| 1146 | logerror("dma_callback: %08X, %08X, %d at %08X", src, dst, length, cpu_get_pc(m | |
| 1147 | 1147 | break; |
| 1148 | 1148 | } |
| 1149 | 1149 | } |
| r8581 | r8582 | |
| 1203 | 1203 | static void configure_fast_ram(running_machine *machine) |
| 1204 | 1204 | { |
| 1205 | 1205 | /* set conservative DRC options */ |
| 1206 | ppcdrc_set_options( | |
| 1206 | ppcdrc_set_options(m | |
| 1207 | 1207 | |
| 1208 | 1208 | /* configure fast RAM regions for DRC */ |
| 1209 | ppcdrc_add_fastram( | |
| 1209 | ppcdrc_add_fastram(m | |
| 1210 | 1210 | } |
| 1211 | 1211 | |
| 1212 | 1212 | static MACHINE_START(model3_10) |
| r8581 | r8582 | |
| 1369 | 1369 | case 0: |
| 1370 | 1370 | if (ACCESSING_BITS_56_63) |
| 1371 | 1371 | { |
| 1372 | running_device *device = | |
| 1372 | running_device *device = | |
| 1373 | 1373 | int reg = (data >> 56) & 0xff; |
| 1374 | 1374 | eeprom_write_bit(device, (reg & 0x20) ? 1 : 0); |
| 1375 | 1375 | eeprom_set_clock_line(device, (reg & 0x80) ? ASSERT_LINE : CLEAR_LINE); |
| r8581 | r8582 | |
| 1620 | 1620 | // serial configuration writes |
| 1621 | 1621 | if ((mem_mask == U64(0xff00000000000000)) && (offset == 0)) |
| 1622 | 1622 | { |
| 1623 | scsp_midi_in( | |
| 1623 | scsp_midi_in( | |
| 1624 | 1624 | |
| 1625 | 1625 | // give the 68k time to notice |
| 1626 | 1626 | cpu_spinuntil_time(space->cpu, ATTOTIME_IN_USEC(40)); |
| r8581 | r8582 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | ------------------------------ |
| 38 | 38 | |
| 39 | this seems more like 8-bit hardware, maybe it should be v25, not v35... | |
| 40 | ||
| 39 | 41 | *************************************************************************************************/ |
| 40 | 42 | |
| 41 | 43 | #include "emu.h" |
| r8581 | r8582 | |
| 46 | 48 | #define xxxx 0x90 /* Unknown */ |
| 47 | 49 | |
| 48 | 50 | static const UINT8 cb2001_decryption_table[256] = { |
| 49 | 0xe8,xxxx,xxxx,xxxx,0x80,0xe4,0x12,0x27, 0x3c,xxxx,xxxx,0x23,xxxx,xxxx,xxxx,0x5f, /* 00 */ | |
| 50 | // pppp pppp ???? pppp p?p? pppp pppp pppp | |
| 51 | xxxx,xxxx,xxxx,0x27,0x1c,xxxx,xxxx,xxxx, 0x32,xxxx,0xa0,0xd3,0x3a,0x14,0x89,0x1f, /* 10 */ | |
| 52 | // p?p? pppp pppp pppp pppp pppp pppp pppp pppp | |
| 53 | xxxx,0x8e,xxxx,0x0f,xxxx,0x49,0xb5,xxxx, 0x56,xxxx,xxxx,0x75,0x33,0xb6,xxxx,xxxx, /* 20 */ | |
| 54 | // !!!! pppp pppp pppp pppp pppp pppp pppp | |
| 55 | xxxx,xxxx,xxxx,xxxx,xxxx,0x22,0x5b,xxxx, xxxx,xxxx,0x74,xxxx,xxxx,0xa6,xxxx,0x74, /* 30 */ | |
| 56 | // ???? pppp ???? pppp pppp | |
| 51 | 0xe8,xxxx,xxxx,xxxx,0x80,0xe4,0x12,0x2f, 0x3c,xxxx,xxxx,0x23,xxxx,xxxx,xxxx,0x5f, /* 00 */ | |
| 52 | // ---- ---- **** pppp pppp pppp pppp pppp | |
| 53 | 0x86,xxxx,xxxx,0x27,0x1c,xxxx,xxxx,xxxx, 0x32,xxxx,0xa0,0xd3,0x3a,0x14,0x89,0x1f, /* 10 */ | |
| 54 | // wwww **** pppp pppp pppp pppp pppp pppp pppp pppp | |
| 55 | xxxx,0x8e,xxxx,0x0f,xxxx,0x49,0xb5,xxxx, 0x56,xxxx,xxxx,0x75,0x33,0xb6,xxxx,0x39, /* 20 */ | |
| 56 | // !!!! pppp pppp pppp pppp pppp pppp pppp **** | |
| 57 | 0x89,xxxx,xxxx,xxxx,xxxx,0x22,0x5b,xxxx, xxxx,xxxx,0x74,xxxx,xxxx,0xa6,xxxx,0x74, /* 30 */ | |
| 58 | // wwww **** pppp debu pppp pppp | |
| 57 | 59 | xxxx,0xea,xxxx,xxxx,0xd0,0xb0,0x5e,xxxx, xxxx,0xa2,xxxx,xxxx,0xa3,xxxx,xxxx,0xb3, /* 40 */ |
| 58 | // !!!! ???? gggg pppp pppp pppp pppp | |
| 59 | 0x2b,xxxx,0x2c,xxxx,0x9d,xxxx,0x42,0xc0, xxxx,xxxx,xxxx,xxxx,0xeb,0xab,xxxx,xxxx, /* 50 */ | |
| 60 | // ???? pppp ???? pppp pppp pppp pppp | |
| 60 | // !!!! **** pppp pppp pppp pppp pppp | |
| 61 | xxxx,xxxx,0x2c,xxxx,0x9d,xxxx,0x42,0xc0, 0x04,xxxx,0xb7,xxxx,0xeb,0xab,xxxx,xxxx, /* 50 */ | |
| 62 | // pppp **** pppp pppp **** **** pppp pppp | |
| 61 | 63 | xxxx,xxxx,xxxx,xxxx,0x0a,xxxx,xxxx,xxxx, 0xa1,0xa5,xxxx,xxxx,xxxx,0xbb,0xba,xxxx, /* 60 */ |
| 62 | // pppp pppp pppp pppp gggg | |
| 63 | 0xc3,0x53,0x02,0x58,xxxx,xxxx,0x24,xxxx, 0x72,xxxx,0xf3,xxxx,xxxx,0x43,xxxx,xxxx, /* 70 */ | |
| 64 | // pppp pppp pppp pppp pppp pppp pppp pppp | |
| 65 | 0x26,xxxx,xxxx,xxxx,xxxx,0x3d,0xfb,0xf6, xxxx,xxxx,0x59,xxxx,0x73,xxxx,0x2a,xxxx, /* 80 */ | |
| 66 | // pppp pppp ???? pppp pppp pppp ???? | |
| 67 | xxxx,xxxx,0xe9,xxxx,xxxx,0xbe,xxxx,xxxx, xxxx,xxxx,0x57,xxxx,0xb9,xxxx,0xbf,xxxx, /* 90 */ | |
| 68 | // pppp pppp pppp pppp pppp | |
| 64 | // pppp pppp pppp pppp pppp | |
| 65 | 0xc3,0x53,0x02,0x58,xxxx,xxxx,0x24,xxxx, 0x72,xxxx,0xf3,xxxx,xxxx,0x43,xxxx,0x34, /* 70 */ | |
| 66 | // pppp pppp pppp pppp pppp pppp pppp pppp **** | |
| 67 | 0x26,xxxx,0x81,xxxx,xxxx,0x3d,0xfb,0xf6, xxxx,xxxx,0x59,xxxx,0x73,xxxx,0x2a,xxxx, /* 80 */ | |
| 68 | // pppp wwww pppp **** pppp pppp pppp pppp | |
| 69 | xxxx,0x3d,0xe9,xxxx,xxxx,0xbe,0xf9,xxxx, xxxx,xxxx,0x57,xxxx,0xb9,xxxx,0xbf,xxxx, /* 90 */ | |
| 70 | // wwww pppp pppp **** pppp pppp pppp | |
| 69 | 71 | 0xc1,xxxx,0xe6,0x06,0xaa,0x9c,0xad,0xb8, 0x4e,xxxx,0x8d,0x50,0x51,0xa4,xxxx,0x1a, /* A0 */ |
| 70 | // ???? pppp pppp pppp ???? pppp !!!! pppp pppp pppp pppp pppp pppp | |
| 71 | 0xac,xxxx,0xb4,xxxx,xxxx,0x83,xxxx,xxxx, xxxx,0x13,0x03,xxxx,0x1e,xxxx,0x07,0xcf, /* B0 */ | |
| 72 | // pppp pppp pppp ???? pppp pppp pppp pppp | |
| 73 | 0xcb,0xec,0xee,xxxx,xxxx,0xe2,0x87,xxxx, xxxx,xxxx,0x76,0x61,xxxx,xxxx,0x2e,xxxx, /* C0 */ | |
| 74 | // pppp pppp pppp pppp pppp pppp ???? pppp | |
| 75 | xxxx,0xf3,0x46,xxxx,0x60,xxxx,0x4f,0x47, 0x88,xxxx,xxxx,xxxx,xxxx,0xfa,0xc7,0x8b, /* D0 */ | |
| 76 | // ???? pppp ???? pppp pppp pppp ???? !!!! pppp | |
| 77 | 0x8a,0xb1,xxxx,0xc6,xxxx,0x5a,xxxx,xxxx, 0x9a,0x52,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, /* E0 */ | |
| 78 | // pppp gggg !!!! ???? pppp ???? | |
| 79 | xxxx,0xae,0xfe,xxxx,xxxx,xxxx,xxxx,0x2a, xxxx,xxxx,0x1c,xxxx,0x81,xxxx,xxxx,xxxx, /* F0 */ | |
| 80 | // ???? pppp ???? ???? ???? | |
| 72 | // **** pppp pppp pppp **** pppp !!!! pppp pppp pppp pppp pppp pppp | |
| 73 | 0xac,xxxx,0xb4,xxxx,xxxx,0x83,xxxx,xxxx, xxxx,0x05,0x03,xxxx,0x1e,0x43,0x07,0xcf, /* B0 */ | |
| 74 | // pppp pppp pppp pppp pppp pppp **** pppp pppp | |
| 75 | 0xcb,0xec,0xee,xxxx,xxxx,0xe2,0x87,xxxx, xxxx,xxxx,0x76,0x61,0x48,xxxx,0x2e,xxxx, /* C0 */ | |
| 76 | // pppp pppp pppp pppp pppp pppp **** **** pppp | |
| 77 | xxxx,0xf2,0x46,xxxx,0x60,xxxx,0x4f,0x47, 0x88,xxxx,xxxx,0x04,xxxx,0xfa,0xc7,0x8b, /* D0 */ | |
| 78 | // ???? pppp **** pppp pppp pppp wwww **** !!!! pppp | |
| 79 | 0x8a,0xb1,xxxx,0xc6,xxxx,0x5a,xxxx,0xb2, 0x9a,0x52,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, /* E0 */ | |
| 80 | // pppp gggg !!!! **** pppp pppp **** | |
| 81 | xxxx,0xae,0xfe,xxxx,xxxx,xxxx,xxxx,0x2a, xxxx,xxxx,0x04,xxxx,0x81,xxxx,xxxx,xxxx, /* F0 */ | |
| 82 | // ???? pppp **** wwww pppp | |
| 81 | 83 | }; |
| 82 | 84 | |
| 83 | 85 | /* robiza's notes: |
| 84 | 86 | |
| 85 | sure: | |
| 86 | e8 -> 9a call_far | |
| 87 | c0 -> cb ret_f | |
| 88 | ||
| 89 | aa -> 8d | |
| 90 | aa 1e ## ## -> bb mov bw,#### | |
| 91 | aa 26 ## ## -> bc mov sp,#### | |
| 92 | aa 36 ## ## -> be mov ix,#### | |
| 93 | aa 3e ## ## -> bf mov iy,#### | |
| 94 | ||
| 95 | e01f7-e0204 (b0 -> ac) (ce -> 2e) (a4 -> aa) : this routine write the "dyna..." string in nvram | |
| 96 | e33ac / 2bbc : c6 -> 87, 9a -> 57, 28 -> 56, 46 -> 5e, 0f -> 5f, a8 -> 4e, ab -> 50, 73 -> 58 | |
| 97 | ||
| 98 | ||
| 99 | 87 | e0022 a5 push psw ? |
| 100 | 88 | e0023 d4 push r ? |
| 101 | e0024 bc push ds0 (bc -> 1e) | |
| 102 | e0025 a3 push ds1 (a3 -> 06) | |
| 89 | e0024 bc push ds0 (bc -> 1e) | |
| 90 | e0025 a3 push ds1 (a3 -> 06) | |
| 103 | 91 | e0026 dd di ? |
| 104 | 92 | e0027 a7 00 00 mov aw,0 |
| 105 | 93 | e002a 21 d8 mov ds0,aw |
| r8581 | r8582 | |
| 108 | 96 | e0030 49 67 07 mov [767],al |
| 109 | 97 | e0033 45 01 mov al,1 |
| 110 | 98 | e0035 49 d3 06 mov [6d3],al |
| 99 | ... | |
| 100 | e00a6 be pop ds1 (be -> 07) | |
| 101 | e00a7 1f pop ds0 (1f -> 1f) | |
| 102 | e00a8 05 30 in al, 30 ? | |
| 103 | e00aa cb pop r ? | |
| 104 | e00ab 54 pop psw ? | |
| 105 | e00ac 23 92 fint (23 -> 0f) | |
| 106 | e00ae bf reti | |
| 111 | 107 | |
| 108 | cmast91 and cmv4 seems similar to this cb2001: | |
| 109 | ||
| 110 | cmast91: cb2001: | |
| 111 | ||
| 112 | 112 | 0089 call 2a9d e0038 call e30a2 |
| 113 | 2a9d ld hl,d0b3 e30a2 lea bw,[04a6] | |
| 113 | 2a9d ld hl,d0b3 e30a2 lea bw,[04a6] | |
| 114 | 114 | 2aa0 inc (hl) e30a5 inc b ptr[bw] |
| 115 | 115 | 2aa1 inc hl e30a8 inc bw |
| 116 | 116 | 2aa2 inc (hl) e30a9 inc b ptr[bw] |
| r8581 | r8582 | |
| 149 | 149 | . e0066 mov aw,1 |
| 150 | 150 | . e0069 br e006e |
| 151 | 151 | |
| 152 | ||
| 153 | ||
| 154 | e00a6 be pop ds1 (be -> 07) | |
| 155 | e00a7 1f pop ds0 (1f -> 1f) | |
| 156 | e00a8 05 pop r ? | |
| 157 | e0030 30 pop psw ? | |
| 158 | e00aa cb ? | |
| 159 | e00ab 54 ? | |
| 160 | e00ac 23 92 fint (23 -> 0f) | |
| 161 | e00ae bf reti | |
| 162 | ||
| 163 | ||
| 164 | cmast91 and cmv4 seems similar to this cb2001: | |
| 165 | ||
| 166 | cmast91: cb2001: | |
| 167 | 152 | 0067 ld a,$07 e0130 mov al,7h |
| 168 | 153 | 0069 out ($23),a e0132 mov dw,23h |
| 169 | 154 | e0135 out dw,al |
| r8581 | r8582 | |
| 176 | 161 | 0071 out ($13),a e0126 mov dw,13h |
| 177 | 162 | e0129 out dw,al |
| 178 | 163 | |
| 179 | ----------------- | |
| 164 | ----------------- | |
| 180 | 165 | |
| 181 | 166 | cmv4 cb2001 (en -> de) |
| 182 | 167 | |
| r8581 | r8582 | |
| 243 | 228 | 4aae ld e,(hl) . |
| 244 | 229 | 4aaf inc hl . |
| 245 | 230 | 4abo ld d,(hl) . |
| 246 | 4ab1 ex de,hl e66f2 mov bw,w ptr ss[bw](df -> 8b) | |
| 231 | 4ab1 ex de,hl e66f2 mov bw,w ptr ss[bw](df -> 8b) | |
| 247 | 232 | 4ab2 xor a . |
| 248 | 233 | 4ab3 ld ($d618),a e66f5 mov b ptr[72dh],ah (d8 -> 88) |
| 249 | 234 | 4ab6 ld ($d619),a e66f9 mov b ptr[72eh],ah |
| r8581 | r8582 | |
| 262 | 247 | . e6716 or bw,bw ??? (0b -> 23) ??? |
| 263 | 248 | . e6718 bne 0e671bh |
| 264 | 249 | . e671a ret |
| 265 | 4acc ld a,(hl) e671b mov al,b ptr ps[bw](ce -> 2e) (e0 -> 8a) | |
| 250 | 4acc ld a,(hl) e671b mov al,b ptr ps[bw](ce -> 2e) (e0 -> 8a) | |
| 266 | 251 | 4acd inc hl e671e inc bw (7d -> 43) |
| 267 | 252 | 4ace cp $f0 e671f cmp al,0f0h |
| 268 | 253 | 4ad0 jr nc,$4b14 e6721 bnc 0e676fh (8c -> 73) |
| r8581 | r8582 | |
| 297 | 282 | . e6755 mov dw,23h |
| 298 | 283 | 4b06 out ($03),a e6758 out dw,al |
| 299 | 284 | |
| 300 | ||
| 301 | ||
| 302 | ||
| 303 | 285 | ------------------------------------------------- |
| 304 | 286 | |
| 305 | ||
| 306 | 287 | 56 -> 42 (inc dw or dec dw) |
| 307 | 288 | |
| 308 | aa -> ???? | |
| 309 | 289 | 92 -> e9 (probably) |
| 310 | 1c ???? | |
| 311 | dd -> fa (di) | |
| 290 | dd -> fa (di) (probably) | |
| 312 | 291 | |
| 313 | 292 | checked against gussun (from 10000) and quizf1 (start up code): |
| 314 | 293 | 41 -> ea (jmp_far) |
| r8581 | r8582 | |
| 317 | 296 | de -> c7 |
| 318 | 297 | e3 -> c6 |
| 319 | 298 | |
| 320 | opcodes: 18,c5 probably: | |
| 321 | e1af1 36 62 06 mov ix,0662 | |
| 322 | 9c 04 00 mov cw,0004 | |
| 323 | 00 94 17 call e328e | |
| 324 | ||
| 325 | e328e 18 c0 xor al,al | |
| 326 | d8 04 mov byte ptr [ix],al | |
| 327 | d2 inc ix | |
| 328 | c5 fb dbnz e3290 | |
| 329 | 70 ret | |
| 330 | 299 | */ |
| 331 | 300 | |
| 332 | 301 | static UINT16 *cb2001_vram_fg; |
| 333 | 302 | static UINT16* cb2001_vram_bg; |
| 334 | 303 | static int cb2001_videobank; |
| 304 | static int cb2001_videomode; | |
| 335 | 305 | |
| 336 | static VIDEO_START(cb2001) | |
| 337 | { | |
| 306 | static tilemap_t *reel1_tilemap, *reel2_tilemap, *reel3_tilemap; | |
| 338 | 307 | |
| 339 | } | |
| 340 | 308 | |
| 309 | // these areas are wrong | |
| 310 | static const rectangle visible1 = { 0*8, (14+48)*8-1, 3*8, (3+7)*8-1 }; | |
| 311 | static const rectangle visible2 = { 0*8, (14+48)*8-1, 10*8, (10+7)*8-1 }; | |
| 312 | static const rectangle visible3 = { 0*8, (14+48)*8-1, 17*8, (17+7)*8-1 }; | |
| 313 | ||
| 341 | 314 | static VIDEO_UPDATE(cb2001) |
| 342 | 315 | { |
| 343 | 316 | int count,x,y; |
| 317 | bitmap_fill(bitmap,cliprect,get_black_pen(screen->machine)); | |
| 344 | 318 | |
| 345 | 319 | count = 0x0000; |
| 346 | 320 | |
| 347 | for (y=0;y<32;y++) | |
| 321 | // render bg as 8x8 tilemaps | |
| 322 | if (!(cb2001_videomode & 0x03)) | |
| 348 | 323 | { |
| 349 | for ( | |
| 324 | for (y=0;y<32;y++) | |
| 350 | 325 | { |
| 351 | int tile; | |
| 352 | int colour; | |
| 326 | for (x=0;x<64;x++) | |
| 327 | { | |
| 328 | int tile; | |
| 329 | int colour; | |
| 353 | 330 | |
| 354 | tile = (cb2001_vram_bg[count] & 0x0fff); | |
| 355 | colour = (cb2001_vram_bg[count] & 0xf000)>>12; | |
| 356 | tile += cb2001_videobank*0x2000; | |
| 331 | tile = (cb2001_vram_bg[count] & 0x0fff); | |
| 332 | colour = (cb2001_vram_bg[count] & 0xf000)>>12; | |
| 333 | tile += cb2001_videobank*0x2000; | |
| 357 | 334 | |
| 358 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[0],tile,colour,0,0,x*8,y*8); | |
| 335 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[0],tile,colour,0,0,x*8,y*8); | |
| 359 | 336 | |
| 360 | count++; | |
| 337 | count++; | |
| 338 | } | |
| 361 | 339 | } |
| 362 | 340 | } |
| 341 | else | |
| 342 | { | |
| 343 | int i; | |
| 363 | 344 | |
| 345 | for (i= 0;i < 64;i++) | |
| 346 | { | |
| 347 | UINT16 scroll; | |
| 364 | 348 | |
| 349 | scroll = cb2001_vram_bg[0xa00/2 + i/2]; | |
| 350 | if (i&1) | |
| 351 | scroll >>=8; | |
| 352 | scroll &=0xff; | |
| 353 | ||
| 354 | tilemap_set_scrolly(reel2_tilemap, i, scroll); | |
| 355 | ||
| 356 | scroll = cb2001_vram_bg[0x800/2 + i/2]; | |
| 357 | if (i&1) | |
| 358 | scroll >>=8; | |
| 359 | scroll &=0xff; | |
| 360 | ||
| 361 | tilemap_set_scrolly(reel1_tilemap, i, scroll); | |
| 362 | ||
| 363 | scroll = cb2001_vram_bg[0xc00/2 + i/2]; | |
| 364 | if (i&1) | |
| 365 | scroll >>=8; | |
| 366 | scroll &=0xff; | |
| 367 | ||
| 368 | tilemap_set_scrolly(reel3_tilemap, i, scroll); | |
| 369 | ||
| 370 | } | |
| 371 | ||
| 372 | ||
| 373 | tilemap_draw(bitmap, &visible1, reel1_tilemap, 0, 0); | |
| 374 | tilemap_draw(bitmap, &visible2, reel2_tilemap, 0, 0); | |
| 375 | tilemap_draw(bitmap, &visible3, reel3_tilemap, 0, 0); | |
| 376 | } | |
| 377 | ||
| 365 | 378 | count = 0x0000; |
| 366 | 379 | |
| 367 | 380 | for (y=0;y<32;y++) |
| r8581 | r8582 | |
| 375 | 388 | colour = (cb2001_vram_fg[count] & 0xf000)>>12; |
| 376 | 389 | tile += cb2001_videobank*0x2000; |
| 377 | 390 | |
| 378 | drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[0],tile,colour,0,0,x*8,y*8, | |
| 391 | drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[0],tile,colour,0,0,x*8,y*8, | |
| 379 | 392 | count++; |
| 380 | 393 | } |
| 381 | 394 | } |
| r8581 | r8582 | |
| 394 | 407 | cb2001_videobank = (data & 0x0800)>>11; |
| 395 | 408 | } |
| 396 | 409 | else // something else |
| 397 | | |
| 410 | p | |
| 398 | 411 | } |
| 399 | 412 | |
| 400 | 413 | WRITE16_HANDLER( cb2001_vidctrl2_w ) |
| 401 | 414 | { |
| 402 | 415 | if (mem_mask&0xff00) // video control? |
| 403 | 416 | { |
| 404 | logerror("cb2001_vidctrl2_w %04x %04x\n", data, mem_mask); | |
| 417 | printf("cb2001_vidctrl2_w %04x %04x\n", data, mem_mask); // i think this switches to 'reels' mode | |
| 418 | cb2001_videomode = (data>>8) & 0x03; // which bit?? | |
| 405 | 419 | } |
| 406 | 420 | else // something else |
| 407 | | |
| 421 | p | |
| 408 | 422 | } |
| 409 | 423 | |
| 424 | ||
| 425 | static TILE_GET_INFO( get_cb2001_reel1_tile_info ) | |
| 426 | { | |
| 427 | int code = cb2001_vram_bg[(0x0000/2) + tile_index/2]; | |
| 428 | ||
| 429 | if (tile_index&1) | |
| 430 | code >>=8; | |
| 431 | ||
| 432 | code &=0xff; | |
| 433 | ||
| 434 | int colour = 0;//= (cb2001_out_c&0x7) + 8; | |
| 435 | ||
| 436 | SET_TILE_INFO( | |
| 437 | 1, | |
| 438 | code+0x800, | |
| 439 | colour, | |
| 440 | 0); | |
| 441 | } | |
| 442 | ||
| 443 | static TILE_GET_INFO( get_cb2001_reel2_tile_info ) | |
| 444 | { | |
| 445 | int code = cb2001_vram_bg[(0x0200/2) + tile_index/2]; | |
| 446 | ||
| 447 | if (tile_index&1) | |
| 448 | code >>=8; | |
| 449 | ||
| 450 | code &=0xff; | |
| 451 | ||
| 452 | int colour = 0;//(cb2001_out_c&0x7) + 8; | |
| 453 | ||
| 454 | SET_TILE_INFO( | |
| 455 | 1, | |
| 456 | code+0x800, | |
| 457 | colour, | |
| 458 | 0); | |
| 459 | } | |
| 460 | ||
| 461 | ||
| 462 | static TILE_GET_INFO( get_cb2001_reel3_tile_info ) | |
| 463 | { | |
| 464 | int code = cb2001_vram_bg[(0x0400/2) + tile_index/2]; | |
| 465 | int colour = 0;//(cb2001_out_c&0x7) + 8; | |
| 466 | ||
| 467 | if (tile_index&1) | |
| 468 | code >>=8; | |
| 469 | ||
| 470 | code &=0xff; | |
| 471 | ||
| 472 | SET_TILE_INFO( | |
| 473 | 1, | |
| 474 | code+0x800, | |
| 475 | colour, | |
| 476 | 0); | |
| 477 | } | |
| 478 | ||
| 479 | ||
| 480 | static VIDEO_START(cb2001) | |
| 481 | { | |
| 482 | reel1_tilemap = tilemap_create(machine,get_cb2001_reel1_tile_info,tilemap_scan_rows, 8, 32, 64, 8); | |
| 483 | reel2_tilemap = tilemap_create(machine,get_cb2001_reel2_tile_info,tilemap_scan_rows, 8, 32, 64, 8); | |
| 484 | reel3_tilemap = tilemap_create(machine,get_cb2001_reel3_tile_info,tilemap_scan_rows, 8, 32, 64, 8); | |
| 485 | ||
| 486 | tilemap_set_scroll_cols(reel1_tilemap, 64); | |
| 487 | tilemap_set_scroll_cols(reel2_tilemap, 64); | |
| 488 | tilemap_set_scroll_cols(reel3_tilemap, 64); | |
| 489 | } | |
| 490 | ||
| 491 | WRITE16_HANDLER( cb2001_bg_w ) | |
| 492 | { | |
| 493 | COMBINE_DATA(&cb2001_vram_bg[offset]); | |
| 494 | ||
| 495 | // also used for the reel tilemaps in a different mode | |
| 496 | /* | |
| 497 | if (offset<0x200/2) | |
| 498 | { | |
| 499 | tilemap_mark_tile_dirty(reel1_tilemap,(offset&0xff)/2); | |
| 500 | } | |
| 501 | else if (offset<0x400/2) | |
| 502 | { | |
| 503 | tilemap_mark_tile_dirty(reel2_tilemap,(offset&0xff)/2); | |
| 504 | } | |
| 505 | else if (offset<0x600/2) | |
| 506 | { | |
| 507 | tilemap_mark_tile_dirty(reel3_tilemap,(offset&0xff)/2); | |
| 508 | } | |
| 509 | else if (offset<0x800/2) | |
| 510 | { | |
| 511 | // tilemap_mark_tile_dirty(reel4_tilemap,(offset&0xff)/2); | |
| 512 | } | |
| 513 | */ | |
| 514 | tilemap_mark_all_tiles_dirty (reel1_tilemap); | |
| 515 | tilemap_mark_all_tiles_dirty (reel2_tilemap); | |
| 516 | tilemap_mark_all_tiles_dirty (reel3_tilemap); | |
| 517 | ||
| 518 | ||
| 519 | } | |
| 520 | ||
| 410 | 521 | static ADDRESS_MAP_START( cb2001_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 411 | 522 | AM_RANGE(0x00000, 0x1ffff) AM_RAM |
| 412 | 523 | AM_RANGE(0x20000, 0x20fff) AM_RAM AM_BASE(&cb2001_vram_fg) |
| 413 | AM_RANGE(0x21000, 0x21fff) AM_RAM AM_BASE(&cb2001_vram_bg) | |
| 524 | AM_RANGE(0x21000, 0x21fff) AM_RAM_WRITE(&cb2001_bg_w) AM_BASE(&cb2001_vram_bg) | |
| 414 | 525 | AM_RANGE(0xc0000, 0xfffff) AM_ROM AM_REGION("boot_prg",0) |
| 415 | 526 | ADDRESS_MAP_END |
| 416 | 527 | |
| 417 | 528 | static ADDRESS_MAP_START( cb2001_io, ADDRESS_SPACE_IO, 16 ) |
| 418 | // ADDRESS_MAP_GLOBAL_MASK(0x00ff) | |
| 419 | 529 | AM_RANGE(0x00, 0x03) AM_DEVREADWRITE8("ppi8255_0", ppi8255_r, ppi8255_w, 0xffff) /* Input Ports */ |
| 420 | 530 | AM_RANGE(0x10, 0x13) AM_DEVREADWRITE8("ppi8255_1", ppi8255_r, ppi8255_w, 0xffff) /* DIP switches */ |
| 421 | AM_RANGE(0x20, 0x21) AM_DEVREAD8("aysnd", ay8910_r, 0x | |
| 531 | AM_RANGE(0x20, 0x21) AM_DEVREAD8("aysnd", ay8910_r, 0x | |
| 422 | 532 | AM_RANGE(0x22, 0x23) AM_DEVWRITE8("aysnd", ay8910_data_address_w, 0xffff) |
| 423 | 533 | |
| 424 | 534 | AM_RANGE(0x30, 0x31) AM_WRITE(cb2001_vidctrl_w) |
| r8581 | r8582 | |
| 427 | 537 | |
| 428 | 538 | static INPUT_PORTS_START( cb2001 ) |
| 429 | 539 | PORT_START("IN0") |
| 430 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 431 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 540 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) | |
| 541 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_GAMBLE_SERVICE ) | |
| 432 | 542 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SLOT_STOP2 ) PORT_NAME("Stop 2 / Big") |
| 433 | 543 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SLOT_STOP1 ) PORT_NAME("Stop 1 / D-UP") |
| 434 | 544 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SLOT_STOP_ALL ) PORT_NAME("Stop All / Take") |
| r8581 | r8582 | |
| 604 | 714 | 8*32 |
| 605 | 715 | }; |
| 606 | 716 | |
| 717 | ||
| 607 | 718 | static const gfx_layout cb2001_layout32 = |
| 608 | 719 | { |
| 609 | 720 | 8,32, |
| r8581 | r8582 | |
| 616 | 727 | }; |
| 617 | 728 | |
| 618 | 729 | static GFXDECODE_START( cb2001 ) |
| 619 | GFXDECODE_ENTRY( "gfx", 0, cb2001_layout, 0x0, 32 | |
| 730 | GFXDECODE_ENTRY( "gfx", 0, cb2001_layout, 0x0, 32 | |
| 620 | 731 | GFXDECODE_ENTRY( "gfx", 0, cb2001_layout32, 0x0, 32 ) |
| 621 | 732 | GFXDECODE_END |
| 622 | 733 | |
| r8581 | r8582 | |
| 741 | 852 | GAME( 2001, cb2001, 0, cb2001, cb2001, 0, ROT0, "Dyna", "Cherry Bonus 2001", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| 742 | 853 | GAME( 2001, scherrym, 0, cb2001, cb2001, 0, ROT0, "Dyna", "Super Cherry Master", GAME_NOT_WORKING|GAME_NO_SOUND ) // 2001 version? (we have bootlegs running on z80 hw of a 1996 version) |
| 743 | 854 | |
| 855 |
| r8581 | r8582 | |
|---|---|---|
| 300 | 300 | { |
| 301 | 301 | funkyjet_state *state = (funkyjet_state *)machine->driver_data; |
| 302 | 302 | |
| 303 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 304 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 305 | state->deco16ic = devtag_get_device(machine, "deco_custom"); | |
| 303 | state->maincpu = machine->device("maincpu"); | |
| 304 | state->audiocpu = machine->device("audiocpu"); | |
| 305 | state->deco16ic = machine->device("deco_custom"); | |
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | static MACHINE_DRIVER_START( funkyjet ) |
| r8581 | r8582 | |
|---|---|---|
| 469 | 469 | memory_configure_bank(machine, "bank2", 0, 8, &ROM[0x10000], 0x4000); |
| 470 | 470 | memory_set_bank(machine, "bank2", 0); |
| 471 | 471 | |
| 472 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 473 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 474 | state->k053246 = devtag_get_device(machine, "k053246"); | |
| 475 | state->k053250 = devtag_get_device(machine, "k053250"); | |
| 476 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 477 | state->k053252 = devtag_get_device(machine, "k053252"); | |
| 478 | state->k056832 = devtag_get_device(machine, "k056832"); | |
| 479 | state->k054338 = devtag_get_device(machine, "k054338"); | |
| 480 | state->k054539 = devtag_get_device(machine, "k054539"); | |
| 481 | state->filter1l = devtag_get_device(machine, "filter1l"); | |
| 482 | state->filter1r = devtag_get_device(machine, "filter1r"); | |
| 483 | state->filter2l = devtag_get_device(machine, "filter2l"); | |
| 484 | state->filter2r = devtag_get_device(machine, "filter2r"); | |
| 472 | state->maincpu = machine->device("maincpu"); | |
| 473 | state->audiocpu = machine->device("audiocpu"); | |
| 474 | state->k053246 = machine->device("k053246"); | |
| 475 | state->k053250 = machine->device("k053250"); | |
| 476 | state->k053251 = machine->device("k053251"); | |
| 477 | state->k053252 = machine->device("k053252"); | |
| 478 | state->k056832 = machine->device("k056832"); | |
| 479 | state->k054338 = machine->device("k054338"); | |
| 480 | state->k054539 = machine->device("k054539"); | |
| 481 | state->filter1l = machine->device("filter1l"); | |
| 482 | state->filter1r = machine->device("filter1r"); | |
| 483 | state->filter2l = machine->device("filter2l"); | |
| 484 | state->filter2r = machine->device("filter2r"); | |
| 485 | 485 | |
| 486 | 486 | state_save_register_global(machine, state->cur_alpha); |
| 487 | 487 | state_save_register_global(machine, state->sprite_colorbase); |
| r8581 | r8582 | |
| 516 | 516 | state->suspension_active = 0; |
| 517 | 517 | state->resume_trigger = 1000; |
| 518 | 518 | state->frame = -1; |
| 519 | k054539_init_flags( | |
| 519 | k054539_init_flags(m | |
| 520 | 520 | } |
| 521 | 521 | |
| 522 | 522 | static MACHINE_DRIVER_START( xexex ) |
| r8581 | r8582 | |
|---|---|---|
| 360 | 360 | { |
| 361 | 361 | ironhors_state *state = (ironhors_state *)machine->driver_data; |
| 362 | 362 | |
| 363 | state->soundcpu = | |
| 363 | state->soundcpu = m | |
| 364 | 364 | |
| 365 | 365 | state_save_register_global(machine, state->palettebank); |
| 366 | 366 | state_save_register_global(machine, state->charbank); |
| r8581 | r8582 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | static TIMER_CALLBACK( irq_gen ) |
| 43 | 43 | { |
| 44 | atarigen_scanline_int_gen( | |
| 44 | atarigen_scanline_int_gen(m | |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 |
| r8581 | r8582 | |
|---|---|---|
| 329 | 329 | { |
| 330 | 330 | mrflea_state *state = (mrflea_state *)machine->driver_data; |
| 331 | 331 | |
| 332 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 333 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 332 | state->maincpu = machine->device("maincpu"); | |
| 333 | state->subcpu = machine->device("sub"); | |
| 334 | 334 | |
| 335 | 335 | state_save_register_global(machine, state->gfx_bank); |
| 336 | 336 | state_save_register_global(machine, state->io); |
| r8581 | r8582 | |
|---|---|---|
| 75 | 75 | ** NOT DUMPED but known to exist |
| 76 | 76 | |
| 77 | 77 | The Game Region / No CD Flags / Development flags etc. are controlled by a byte in the bios roms. The CDs |
| 78 | contain revisions of the game code and are independ | |
| 78 | contain revisions of the game code and are independent of the region. | |
| 79 | 79 | |
| 80 | 80 | The CP SYSTEM III comprises a main board with several custom ASICs, custom 72-pin SIMMs for program |
| 81 | 81 | and graphics storage (the same SIMMs are also used in some CPS2 titles), SCSI CDROM and CDROM disc, |
| r8581 | r8582 | |
| 694 | 694 | if (!cps3_user5region) cps3_user5region = auto_alloc_array(machine, UINT8, USER5REGION_LENGTH); |
| 695 | 695 | |
| 696 | 696 | // set strict verify |
| 697 | sh2drc_set_options( | |
| 697 | sh2drc_set_options(m | |
| 698 | 698 | |
| 699 | 699 | cps3_decrypt_bios(machine); |
| 700 | 700 | decrypted_gamerom = auto_alloc_array(machine, UINT32, 0x1000000/4); |
| r8581 | r8582 | |
|---|---|---|
| 231 | 231 | |
| 232 | 232 | static WRITE_LINE_DEVICE_HANDLER( main_cpu_irq ) |
| 233 | 233 | { |
| 234 | running_device *pia1 = devtag_get_device(device->machine, "pia1"); | |
| 235 | running_device *pia2 = devtag_get_device(device->machine, "pia2"); | |
| 236 | running_device *pia3 = devtag_get_device(device->machine, "pia3"); | |
| 234 | running_device *pia1 = device->machine->device("pia1"); | |
| 235 | running_device *pia2 = device->machine->device("pia2"); | |
| 236 | running_device *pia3 = device->machine->device("pia3"); | |
| 237 | 237 | int combined_state = pia6821_get_irq_a(pia1) | pia6821_get_irq_b(pia1) | |
| 238 | 238 | pia6821_get_irq_b(pia2) | |
| 239 | 239 | pia6821_get_irq_a(pia3) | pia6821_get_irq_b(pia3); |
| r8581 | r8582 | |
| 279 | 279 | |
| 280 | 280 | static INTERRUPT_GEN( update_pia_1 ) |
| 281 | 281 | { |
| 282 | running_device *pia1 = dev | |
| 282 | running_device *pia1 = dev | |
| 283 | 283 | /* update the different PIA pins from the input ports */ |
| 284 | 284 | |
| 285 | 285 | /* CA1 - copy of PA1 (COIN1) */ |
| 286 | pia6821_ca1_w(pia1, | |
| 286 | pia6821_ca1_w(pia1, | |
| 287 | 287 | |
| 288 | 288 | /* CA2 - copy of PA0 (SERVICE1) */ |
| 289 | pia6821_ca2_w(pia1, | |
| 289 | pia6821_ca2_w(pia1, | |
| 290 | 290 | |
| 291 | 291 | /* CB1 - (crosshatch) */ |
| 292 | pia6821_cb1_w(pia1, | |
| 292 | pia6821_cb1_w(pia1, | |
| 293 | 293 | |
| 294 | 294 | /* CB2 - NOT CONNECTED */ |
| 295 | 295 | } |
| r8581 | r8582 | |
| 382 | 382 | |
| 383 | 383 | static WRITE8_DEVICE_HANDLER( ic60_74123_output_changed) |
| 384 | 384 | { |
| 385 | running_device *pia2 = devtag_get_device(device->machine, "pia2"); | |
| 386 | pia6821_ca1_w(pia2, 0, data); | |
| 385 | running_device *pia2 = device->machine->device("pia2"); | |
| 386 | pia6821_ca1_w(pia2, data); | |
| 387 | 387 | } |
| 388 | 388 | |
| 389 | 389 | |
| r8581 | r8582 | |
| 509 | 509 | |
| 510 | 510 | static WRITE_LINE_DEVICE_HANDLER( display_enable_changed ) |
| 511 | 511 | { |
| 512 | ttl74123_a_w(dev | |
| 512 | ttl74123_a_w(dev | |
| 513 | 513 | } |
| 514 | 514 | |
| 515 | 515 | |
| r8581 | r8582 | |
| 530 | 530 | |
| 531 | 531 | static VIDEO_UPDATE( spiders ) |
| 532 | 532 | { |
| 533 | running_device *mc6845 = | |
| 533 | running_device *mc6845 = | |
| 534 | 534 | mc6845_update(mc6845, bitmap, cliprect); |
| 535 | 535 | |
| 536 | 536 | return 0; |
| r8581 | r8582 | |
|---|---|---|
| 301 | 301 | |
| 302 | 302 | static WRITE16_HANDLER( ml_to_sound_w ) |
| 303 | 303 | { |
| 304 | running_device *tc0140syt = | |
| 304 | running_device *tc0140syt = | |
| 305 | 305 | if (offset == 0) |
| 306 | 306 | tc0140syt_port_w(tc0140syt, 0, data & 0xff); |
| 307 | 307 | else if (offset == 1) |
| r8581 | r8582 | |
| 313 | 313 | |
| 314 | 314 | static WRITE8_HANDLER( ml_sound_to_main_w ) |
| 315 | 315 | { |
| 316 | running_device *tc0140syt = | |
| 316 | running_device *tc0140syt = | |
| 317 | 317 | if (offset == 0) |
| 318 | 318 | tc0140syt_slave_port_w(tc0140syt, 0, data & 0xff); |
| 319 | 319 | else if (offset == 1) |
| r8581 | r8582 | |
|---|---|---|
| 500 | 500 | { |
| 501 | 501 | int index; |
| 502 | 502 | |
| 503 | voodoo = | |
| 503 | voodoo = m | |
| 504 | 504 | |
| 505 | 505 | /* allocate timers for the galileo */ |
| 506 | 506 | galileo.timer[0].timer = timer_alloc(machine, galileo_timer_callback, NULL); |
| r8581 | r8582 | |
| 509 | 509 | galileo.timer[3].timer = timer_alloc(machine, galileo_timer_callback, NULL); |
| 510 | 510 | |
| 511 | 511 | /* set the fastest DRC options, but strict verification */ |
| 512 | mips3drc_set_options( | |
| 512 | mips3drc_set_options(m | |
| 513 | 513 | |
| 514 | 514 | /* configure fast RAM regions for DRC */ |
| 515 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x00000000, 0x007fffff, FALSE, rambase); | |
| 516 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, rombase); | |
| 515 | mips3drc_add_fastram(machine->device("maincpu"), 0x00000000, 0x007fffff, FALSE, rambase); | |
| 516 | mips3drc_add_fastram(machine->device("maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, rombase); | |
| 517 | 517 | |
| 518 | 518 | /* register for save states */ |
| 519 | 519 | state_save_register_global_array(machine, galileo.reg); |
| r8581 | r8582 | |
| 556 | 556 | cpu_stalled_on_voodoo = FALSE; |
| 557 | 557 | |
| 558 | 558 | /* reset either the DCS2 board or the CAGE board */ |
| 559 | if ( | |
| 559 | if (m | |
| 560 | 560 | { |
| 561 | 561 | dcs_reset_w(1); |
| 562 | 562 | dcs_reset_w(0); |
| 563 | 563 | } |
| 564 | else if ( | |
| 564 | else if (m | |
| 565 | 565 | { |
| 566 | 566 | cage_control_w(machine, 0); |
| 567 | 567 | cage_control_w(machine, 3); |
| r8581 | r8582 | |
| 1333 | 1333 | } |
| 1334 | 1334 | else |
| 1335 | 1335 | { |
| 1336 | if (LOG_DMA) logerror("%08X:Stalling CPU on voodoo\n", cpu_get_pc(devtag_get_device(device->machine, "maincpu"))); | |
| 1337 | cpu_spinuntil_trigger(devtag_get_device(device->machine, "maincpu"), 45678); | |
| 1336 | if (LOG_DMA) logerror("%08X:Stalling CPU on voodoo\n", cpu_get_pc(device->machine->device("maincpu"))); | |
| 1337 | cpu_spinuntil_trigger(device->machine->device("maincpu"), 45678); | |
| 1338 | 1338 | } |
| 1339 | 1339 | } |
| 1340 | 1340 | |
| r8581 | r8582 | |
| 1720 | 1720 | { |
| 1721 | 1721 | /* note that blitz times out if we don't have this cycle stealing */ |
| 1722 | 1722 | if (offset == 0x3f6/4) |
| 1723 | cpu_eat_cycles(dev | |
| 1723 | cpu_eat_cycles(dev | |
| 1724 | 1724 | return ide_controller32_r(device, offset, mem_mask); |
| 1725 | 1725 | } |
| 1726 | 1726 | |
| r8581 | r8582 | |
| 2795 | 2795 | |
| 2796 | 2796 | case SEATTLE_WIDGET_CONFIG: |
| 2797 | 2797 | /* set up the widget board */ |
| 2798 | device = | |
| 2798 | device = m | |
| 2799 | 2799 | memory_install_readwrite32_device_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), device, 0x16c00000, 0x16c0001f, 0, 0, widget_r, widget_w); |
| 2800 | 2800 | break; |
| 2801 | 2801 | |
| r8581 | r8582 | |
| 2804 | 2804 | memory_install_readwrite32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x14000000, 0x14000003, 0, 0, analog_port_r, analog_port_w); |
| 2805 | 2805 | |
| 2806 | 2806 | /* set up the ethernet controller */ |
| 2807 | device = | |
| 2807 | device = m | |
| 2808 | 2808 | memory_install_readwrite32_device_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), device, 0x16c00000, 0x16c0003f, 0, 0, ethernet_r, ethernet_w); |
| 2809 | 2809 | break; |
| 2810 | 2810 | } |
| r8581 | r8582 | |
| 2817 | 2817 | init_common(machine, MIDWAY_IOASIC_STANDARD, 310/* others? */, 80, PHOENIX_CONFIG); |
| 2818 | 2818 | |
| 2819 | 2819 | /* speedups */ |
| 2820 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8004413C, 0x0C0054B4, 250); /* confirmed */ | |
| 2821 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80094930, 0x00A2102B, 250); /* confirmed */ | |
| 2822 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80092984, 0x3C028011, 250); /* confirmed */ | |
| 2820 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8004413C, 0x0C0054B4, 250); /* confirmed */ | |
| 2821 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80094930, 0x00A2102B, 250); /* confirmed */ | |
| 2822 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80092984, 0x3C028011, 250); /* confirmed */ | |
| 2823 | 2823 | } |
| 2824 | 2824 | |
| 2825 | 2825 | |
| r8581 | r8582 | |
| 2829 | 2829 | init_common(machine, MIDWAY_IOASIC_MACE, 319/* others? */, 80, SEATTLE_CONFIG); |
| 2830 | 2830 | |
| 2831 | 2831 | /* speedups */ |
| 2832 | mips3drc_add_hotspot( | |
| 2832 | mips3drc_add_hotspot(m | |
| 2833 | 2833 | } |
| 2834 | 2834 | |
| 2835 | 2835 | |
| r8581 | r8582 | |
| 2839 | 2839 | init_common(machine, MIDWAY_IOASIC_STANDARD, 315/* no alternates */, 100, FLAGSTAFF_CONFIG); |
| 2840 | 2840 | |
| 2841 | 2841 | /* speedups */ |
| 2842 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80059F34, 0x3C028012, 250); /* confirmed */ | |
| 2843 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800A5AF4, 0x8E300010, 250); /* confirmed */ | |
| 2844 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8004C260, 0x3C028012, 250); /* confirmed */ | |
| 2842 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80059F34, 0x3C028012, 250); /* confirmed */ | |
| 2843 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800A5AF4, 0x8E300010, 250); /* confirmed */ | |
| 2844 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8004C260, 0x3C028012, 250); /* confirmed */ | |
| 2845 | 2845 | } |
| 2846 | 2846 | |
| 2847 | 2847 | |
| r8581 | r8582 | |
| 2851 | 2851 | init_common(machine, MIDWAY_IOASIC_SFRUSHRK, 331/* unknown */, 100, FLAGSTAFF_CONFIG); |
| 2852 | 2852 | |
| 2853 | 2853 | /* speedups */ |
| 2854 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800343E8, 0x3C028012, 250); /* confirmed */ | |
| 2855 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8008F4F0, 0x3C028012, 250); /* confirmed */ | |
| 2856 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800A365C, 0x8E300014, 250); /* confirmed */ | |
| 2857 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80051DAC, 0x3C028012, 250); /* confirmed */ | |
| 2854 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800343E8, 0x3C028012, 250); /* confirmed */ | |
| 2855 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8008F4F0, 0x3C028012, 250); /* confirmed */ | |
| 2856 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800A365C, 0x8E300014, 250); /* confirmed */ | |
| 2857 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80051DAC, 0x3C028012, 250); /* confirmed */ | |
| 2858 | 2858 | } |
| 2859 | 2859 | |
| 2860 | 2860 | |
| r8581 | r8582 | |
| 2865 | 2865 | midway_ioasic_set_auto_ack(1); |
| 2866 | 2866 | |
| 2867 | 2867 | /* speedups */ |
| 2868 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80032534, 0x02221024, 250); /* confirmed */ | |
| 2869 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800B1BE4, 0x8E110014, 250); /* confirmed */ | |
| 2868 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80032534, 0x02221024, 250); /* confirmed */ | |
| 2869 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800B1BE4, 0x8E110014, 250); /* confirmed */ | |
| 2870 | 2870 | } |
| 2871 | 2871 | |
| 2872 | 2872 | |
| r8581 | r8582 | |
| 2876 | 2876 | init_common(machine, MIDWAY_IOASIC_VAPORTRX, 324/* 334? unknown */, 100, SEATTLE_WIDGET_CONFIG); |
| 2877 | 2877 | |
| 2878 | 2878 | /* speedups */ |
| 2879 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80049F14, 0x3C028020, 250); /* confirmed */ | |
| 2880 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8004859C, 0x3C028020, 250); /* confirmed */ | |
| 2881 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8005922C, 0x8E020014, 250); /* confirmed */ | |
| 2879 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80049F14, 0x3C028020, 250); /* confirmed */ | |
| 2880 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8004859C, 0x3C028020, 250); /* confirmed */ | |
| 2881 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8005922C, 0x8E020014, 250); /* confirmed */ | |
| 2882 | 2882 | } |
| 2883 | 2883 | |
| 2884 | 2884 | |
| r8581 | r8582 | |
| 2900 | 2900 | rombase[0x934/4] += 4; |
| 2901 | 2901 | |
| 2902 | 2902 | /* main CPU speedups */ |
| 2903 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80135510, 0x3C028024, 250); /* confirmed */ | |
| 2904 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x800087DC, 0x8E820010, 250); /* confirmed */ | |
| 2903 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80135510, 0x3C028024, 250); /* confirmed */ | |
| 2904 | mips3drc_add_hotspot(machine->device("maincpu"), 0x800087DC, 0x8E820010, 250); /* confirmed */ | |
| 2905 | 2905 | } |
| 2906 | 2906 | |
| 2907 | 2907 | |
| r8581 | r8582 | |
| 2911 | 2911 | init_common(machine, MIDWAY_IOASIC_BLITZ99, 481/* or 484 or 520 */, 80, SEATTLE_CONFIG); |
| 2912 | 2912 | |
| 2913 | 2913 | /* speedups */ |
| 2914 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8014E41C, 0x3C038025, 250); /* confirmed */ | |
| 2915 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80011F10, 0x8E020018, 250); /* confirmed */ | |
| 2914 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8014E41C, 0x3C038025, 250); /* confirmed */ | |
| 2915 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80011F10, 0x8E020018, 250); /* confirmed */ | |
| 2916 | 2916 | } |
| 2917 | 2917 | |
| 2918 | 2918 | |
| r8581 | r8582 | |
| 2922 | 2922 | init_common(machine, MIDWAY_IOASIC_BLITZ99, 494/* or 498 */, 80, SEATTLE_CONFIG); |
| 2923 | 2923 | |
| 2924 | 2924 | /* speedups */ |
| 2925 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8015773C, 0x3C038025, 250); /* confirmed */ | |
| 2926 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80012CA8, 0x8E020018, 250); /* confirmed */ | |
| 2925 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8015773C, 0x3C038025, 250); /* confirmed */ | |
| 2926 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80012CA8, 0x8E020018, 250); /* confirmed */ | |
| 2927 | 2927 | } |
| 2928 | 2928 | |
| 2929 | 2929 | |
| r8581 | r8582 | |
| 2936 | 2936 | memory_install_readwrite32_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x16800000, 0x1680001f, 0, 0, carnevil_gun_r, carnevil_gun_w); |
| 2937 | 2937 | |
| 2938 | 2938 | /* speedups */ |
| 2939 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x8015176C, 0x3C03801A, 250); /* confirmed */ | |
| 2940 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80011FBC, 0x8E020018, 250); /* confirmed */ | |
| 2939 | mips3drc_add_hotspot(machine->device("maincpu"), 0x8015176C, 0x3C03801A, 250); /* confirmed */ | |
| 2940 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80011FBC, 0x8E020018, 250); /* confirmed */ | |
| 2941 | 2941 | } |
| 2942 | 2942 | |
| 2943 | 2943 | |
| r8581 | r8582 | |
| 2947 | 2947 | init_common(machine, MIDWAY_IOASIC_HYPRDRIV, 469/* unknown */, 80, SEATTLE_WIDGET_CONFIG); |
| 2948 | 2948 | |
| 2949 | 2949 | /* speedups */ |
| 2950 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x801643BC, 0x3C03801B, 250); /* confirmed */ | |
| 2951 | mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80011FB8, 0x8E020018, 250); /* confirmed */ | |
| 2952 | //mips3drc_add_hotspot(devtag_get_device(machine, "maincpu"), 0x80136A80, 0x3C02801D, 250); /* potential */ | |
| 2950 | mips3drc_add_hotspot(machine->device("maincpu"), 0x801643BC, 0x3C03801B, 250); /* confirmed */ | |
| 2951 | mips3drc_add_hotspot(machine->device("maincpu"), 0x80011FB8, 0x8E020018, 250); /* confirmed */ | |
| 2952 | //mips3drc_add_hotspot(machine->device("maincpu"), 0x80136A80, 0x3C02801D, 250); /* potential */ | |
| 2953 | 2953 | } |
| 2954 | 2954 | |
| 2955 | 2955 |
| r8581 | r8582 | |
|---|---|---|
| 131 | 131 | |
| 132 | 132 | if (ACCESSING_BITS_0_7) |
| 133 | 133 | { |
| 134 | running_device *device = | |
| 134 | running_device *device = | |
| 135 | 135 | eeprom_set_clock_line(device, (data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 136 | 136 | eeprom_write_bit(device, data & 0x40); |
| 137 | 137 | eeprom_set_cs_line(device, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| r8581 | r8582 | |
|---|---|---|
| 1854 | 1854 | { |
| 1855 | 1855 | alpha68k_state *state = (alpha68k_state *)machine->driver_data; |
| 1856 | 1856 | |
| 1857 | state->audiocpu = | |
| 1857 | state->audiocpu = m | |
| 1858 | 1858 | |
| 1859 | 1859 | state_save_register_global(machine, state->trigstate); |
| 1860 | 1860 | state_save_register_global(machine, state->deposits1); |
| r8581 | r8582 | |
| 2389 | 2389 | ROM_LOAD( "2s.1f", 0x00000, 0x4000, CRC(800ceb27) SHA1(4daa1b8adcad7a90cfd5d20704a7c431673c4995) ) |
| 2390 | 2390 | ROM_LOAD( "1s.1d", 0x04000, 0x8000, CRC(87d3e719) SHA1(4b8b1b600c7c1de3a77030001e7e6f0ff118f294) ) |
| 2391 | 2391 | |
| 2392 | // not hooked up yet | |
| 2393 | ROM_REGION( 0x1000, "mcu", 0 ) | |
| 2394 | ROM_LOAD( "kyros_68705u3.bin", 0x0000, 0x1000, CRC(c20880b7) SHA1(b041c36cbc4f348d74e0548df5cb14727f2d353b) ) // this one is from a bootleg PCB, program code *might* be compatible. | |
| 2395 | ROM_LOAD( "kyros_mcu.bin", 0x0000, 0x0800, CRC(3a902a19) SHA1(af1be8894c899b27b1106663ffaf2ab43fa1cdaa) ) // original MCU? (HD6805U1) | |
| 2396 | ||
| 2397 | ||
| 2392 | 2398 | ROM_REGION( 0x60000, "gfx1", 0 ) |
| 2393 | 2399 | ROM_LOAD( "8.9pr", 0x00000, 0x8000, CRC(c5290944) SHA1(ec97482dc59220002780ae4d02be4cd172cf65ac) ) |
| 2394 | 2400 | ROM_LOAD( "11.11m", 0x08000, 0x8000, CRC(fbd44f1e) SHA1(d095544ea76674a7ad17c1b8c88614e65890281c) ) |
| r8581 | r8582 | |
|---|---|---|
| 545 | 545 | |
| 546 | 546 | static READ16_HANDLER( galgames_eeprom_r ) |
| 547 | 547 | { |
| 548 | running_device *eeprom = | |
| 548 | running_device *eeprom = | |
| 549 | 549 | |
| 550 | 550 | return eeprom_read_bit(eeprom) ? 0x80 : 0x00; |
| 551 | 551 | } |
| r8581 | r8582 | |
| 557 | 557 | |
| 558 | 558 | if ( ACCESSING_BITS_0_7 ) |
| 559 | 559 | { |
| 560 | running_device *eeprom = | |
| 560 | running_device *eeprom = | |
| 561 | 561 | |
| 562 | 562 | // latch the bit |
| 563 | 563 | eeprom_write_bit(eeprom, data & 0x0001); |
| r8581 | r8582 | |
| 633 | 633 | { |
| 634 | 634 | case 0x07: // 7 resets the eeprom |
| 635 | 635 | for (i = 0; i < 5; i++) |
| 636 | eeprom_set_cs_line( | |
| 636 | eeprom_set_cs_line( | |
| 637 | 637 | break; |
| 638 | 638 | |
| 639 | 639 | case 0x00: |
| r8581 | r8582 | |
| 641 | 641 | case 0x02: |
| 642 | 642 | case 0x03: |
| 643 | 643 | case 0x04: |
| 644 | eeprom_set_cs_line( | |
| 644 | eeprom_set_cs_line( | |
| 645 | 645 | galgames_update_rombank(space->machine, data & 0xff); |
| 646 | 646 | break; |
| 647 | 647 | |
| 648 | 648 | default: |
| 649 | eeprom_set_cs_line( | |
| 649 | eeprom_set_cs_line( | |
| 650 | 650 | galgames_update_rombank(space->machine, 0); |
| 651 | 651 | logerror("%06x: unknown cart sel = %04x\n", cpu_get_pc(space->cpu), data); |
| 652 | 652 | break; |
| r8581 | r8582 | |
| 848 | 848 | tmaster_gfx_offs = 0; |
| 849 | 849 | tmaster_gfx_size = memory_region_length(machine, "blitter"); |
| 850 | 850 | |
| 851 | tmaster_devices.duart68681 = | |
| 851 | tmaster_devices.duart68681 = m | |
| 852 | 852 | } |
| 853 | 853 | |
| 854 | 854 | static INTERRUPT_GEN( tm3k_interrupt ) |
| r8581 | r8582 | |
|---|---|---|
| 2644 | 2644 | int i; |
| 2645 | 2645 | for (i = 0; i < 16; i++) |
| 2646 | 2646 | { |
| 2647 | generic_pulse_irq_line( | |
| 2647 | generic_pulse_irq_line( | |
| 2648 | 2648 | } |
| 2649 | 2649 | } |
| 2650 | 2650 |
| r8581 | r8582 | |
|---|---|---|
| 364 | 364 | { |
| 365 | 365 | flyball_state *state = (flyball_state *)machine->driver_data; |
| 366 | 366 | |
| 367 | state->maincpu = | |
| 367 | state->maincpu = m | |
| 368 | 368 | |
| 369 | 369 | state_save_register_global(machine, state->pitcher_vert); |
| 370 | 370 | state_save_register_global(machine, state->pitcher_horz); |
| r8581 | r8582 | |
|---|---|---|
| 215 | 215 | atarigen_eeprom_reset(&state->atarigen); |
| 216 | 216 | atarigen_slapstic_reset(&state->atarigen); |
| 217 | 217 | atarigen_interrupt_reset(&state->atarigen, update_interrupts); |
| 218 | atarigen_sound_io_reset( | |
| 218 | atarigen_sound_io_reset(m | |
| 219 | 219 | |
| 220 | 220 | /* reset the joystick parameters */ |
| 221 | 221 | state->joystick_value = 0; |
| r8581 | r8582 | |
| 388 | 388 | |
| 389 | 389 | static WRITE8_DEVICE_HANDLER( via_pa_w ) |
| 390 | 390 | { |
| 391 | tms5220_data_w(dev | |
| 391 | tms5220_data_w(dev | |
| 392 | 392 | } |
| 393 | 393 | |
| 394 | 394 | |
| 395 | 395 | static READ8_DEVICE_HANDLER( via_pa_r ) |
| 396 | 396 | { |
| 397 | return tms5220_status_r(dev | |
| 397 | return tms5220_status_r(dev | |
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | |
| 401 | 401 | static WRITE8_DEVICE_HANDLER( via_pb_w ) |
| 402 | 402 | { |
| 403 | 403 | /* write strobe */ |
| 404 | tms5220_wsq_w(dev | |
| 404 | tms5220_wsq_w(dev | |
| 405 | 405 | |
| 406 | 406 | /* read strobe */ |
| 407 | tms5220_rsq_w(dev | |
| 407 | tms5220_rsq_w(dev | |
| 408 | 408 | |
| 409 | 409 | /* bit 4 is connected to an up-counter, clocked by SYCLKB */ |
| 410 | 410 | data = 5 | ((data >> 3) & 2); |
| 411 | tms5220_set_frequency(dev | |
| 411 | tms5220_set_frequency(dev | |
| 412 | 412 | } |
| 413 | 413 | |
| 414 | 414 | |
| 415 | 415 | static READ8_DEVICE_HANDLER( via_pb_r ) |
| 416 | 416 | { |
| 417 | return (tms5220_readyq_r(dev | |
| 417 | return (tms5220_readyq_r(dev | |
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 420 | |
| r8581 | r8582 | |
| 2327 | 2327 | { |
| 2328 | 2328 | atarisy1_state *state = (atarisy1_state *)machine->driver_data; |
| 2329 | 2329 | |
| 2330 | atarigen_slapstic_init( | |
| 2330 | atarigen_slapstic_init(m | |
| 2331 | 2331 | |
| 2332 | 2332 | state->joystick_type = 0; /* none */ |
| 2333 | 2333 | state->trackball_type = 1; /* rotated */ |
| r8581 | r8582 | |
| 2338 | 2338 | { |
| 2339 | 2339 | atarisy1_state *state = (atarisy1_state *)machine->driver_data; |
| 2340 | 2340 | |
| 2341 | atarigen_slapstic_init( | |
| 2341 | atarigen_slapstic_init(m | |
| 2342 | 2342 | |
| 2343 | 2343 | state->joystick_type = 1; /* digital */ |
| 2344 | 2344 | state->trackball_type = 0; /* none */ |
| r8581 | r8582 | |
| 2349 | 2349 | { |
| 2350 | 2350 | atarisy1_state *state = (atarisy1_state *)machine->driver_data; |
| 2351 | 2351 | |
| 2352 | atarigen_slapstic_init( | |
| 2352 | atarigen_slapstic_init(m | |
| 2353 | 2353 | |
| 2354 | 2354 | state->joystick_type = 1; /* digital */ |
| 2355 | 2355 | state->trackball_type = 0; /* none */ |
| r8581 | r8582 | |
| 2360 | 2360 | { |
| 2361 | 2361 | atarisy1_state *state = (atarisy1_state *)machine->driver_data; |
| 2362 | 2362 | |
| 2363 | atarigen_slapstic_init( | |
| 2363 | atarigen_slapstic_init(m | |
| 2364 | 2364 | |
| 2365 | 2365 | state->joystick_type = 2; /* analog */ |
| 2366 | 2366 | state->trackball_type = 0; /* none */ |
| r8581 | r8582 | |
| 2371 | 2371 | { |
| 2372 | 2372 | atarisy1_state *state = (atarisy1_state *)machine->driver_data; |
| 2373 | 2373 | |
| 2374 | atarigen_slapstic_init( | |
| 2374 | atarigen_slapstic_init(m | |
| 2375 | 2375 | |
| 2376 | 2376 | state->joystick_type = 3; /* pedal */ |
| 2377 | 2377 | state->trackball_type = 2; /* steering wheel */ |
| r8581 | r8582 | |
| 2382 | 2382 | { |
| 2383 | 2383 | atarisy1_state *state = (atarisy1_state *)machine->driver_data; |
| 2384 | 2384 | |
| 2385 | atarigen_slapstic_init( | |
| 2385 | atarigen_slapstic_init(m | |
| 2386 | 2386 | |
| 2387 | 2387 | state->joystick_type = 3; /* pedal */ |
| 2388 | 2388 | state->trackball_type = 2; /* steering wheel */ |
| r8581 | r8582 | |
|---|---|---|
| 339 | 339 | static MACHINE_RESET( ssv ) |
| 340 | 340 | { |
| 341 | 341 | requested_int = 0; |
| 342 | cpu_set_irq_callback( | |
| 342 | cpu_set_irq_callback(m | |
| 343 | 343 | memory_set_bankptr(machine, "bank1", memory_region(machine, "user1")); |
| 344 | 344 | } |
| 345 | 345 | |
| r8581 | r8582 | |
| 766 | 766 | { |
| 767 | 767 | if (ACCESSING_BITS_0_7) |
| 768 | 768 | { |
| 769 | running_device *device = | |
| 769 | running_device *device = | |
| 770 | 770 | int bank = 0x400000/2 * (data & 1); // UINT16 address |
| 771 | 771 | int voice; |
| 772 | 772 | for (voice = 0; voice < 32; voice++) |
| r8581 | r8582 | |
|---|---|---|
| 357 | 357 | |
| 358 | 358 | if (data) |
| 359 | 359 | { |
| 360 | running_device *acia_0 = devtag_get_device(device->machine, "acia6850_0"); | |
| 361 | running_device *acia_1 = devtag_get_device(device->machine, "acia6850_1"); | |
| 360 | running_device *acia_0 = device->machine->device("acia6850_0"); | |
| 361 | running_device *acia_1 = device->machine->device("acia6850_1"); | |
| 362 | 362 | acia6850_tx_clock_in(acia_0); |
| 363 | 363 | acia6850_rx_clock_in(acia_0); |
| 364 | 364 | acia6850_tx_clock_in(acia_1); |
| r8581 | r8582 | |
| 1894 | 1894 | |
| 1895 | 1895 | static void video_reset(running_device *device) |
| 1896 | 1896 | { |
| 1897 | devtag_get_device(device->machine, "6840ptm_68k")->reset(); | |
| 1898 | devtag_get_device(device->machine, "acia6850_1")->reset(); | |
| 1897 | device->machine->device("6840ptm_68k")->reset(); | |
| 1898 | device->machine->device("acia6850_1")->reset(); | |
| 1899 | 1899 | } |
| 1900 | 1900 | |
| 1901 | 1901 | /* machine start (called only once) */ |
| r8581 | r8582 | |
| 1919 | 1919 | ROC10937_init(0, MSC1937, 0); |
| 1920 | 1920 | |
| 1921 | 1921 | /* Hook the reset line */ |
| 1922 | m68k_set_reset_callback( | |
| 1922 | m68k_set_reset_callback(m | |
| 1923 | 1923 | } |
| 1924 | 1924 | |
| 1925 | 1925 | static MACHINE_RESET( mpu4_vid ) |
| r8581 | r8582 | |
| 2502 | 2502 | static DRIVER_INIT (mating) |
| 2503 | 2503 | { |
| 2504 | 2504 | const address_space *space = cputag_get_address_space(machine, "video", ADDRESS_SPACE_PROGRAM); |
| 2505 | running_device *device = | |
| 2505 | running_device *device = m | |
| 2506 | 2506 | |
| 2507 | 2507 | /* The Mating Game has an extra 256kB RAM on the program card */ |
| 2508 | 2508 | memory_install_ram(space, 0x600000, 0x63ffff, 0, 0, NULL); |
| r8581 | r8582 | |
|---|---|---|
| 62 | 62 | circusc_state *state = (circusc_state *)machine->driver_data; |
| 63 | 63 | |
| 64 | 64 | state->audiocpu = machine->device<cpu_device>("audiocpu"); |
| 65 | state->sn1 = devtag_get_device(machine, "sn1"); | |
| 66 | state->sn2 = devtag_get_device(machine, "sn2"); | |
| 67 | state->dac = devtag_get_device(machine, "dac"); | |
| 68 | state->discrete = devtag_get_device(machine, "fltdisc"); | |
| 65 | state->sn1 = machine->device("sn1"); | |
| 66 | state->sn2 = machine->device("sn2"); | |
| 67 | state->dac = machine->device("dac"); | |
| 68 | state->discrete = machine->device("fltdisc"); | |
| 69 | 69 | |
| 70 | 70 | state_save_register_global(machine, state->sn_latch); |
| 71 | 71 | } |
| r8581 | r8582 | |
|---|---|---|
| 435 | 435 | |
| 436 | 436 | state->maincpu = machine->device<cpu_device>("maincpu"); |
| 437 | 437 | state->audiocpu = machine->device<cpu_device>("audiocpu"); |
| 438 | state->pc080sn = devtag_get_device(machine, "pc080sn"); | |
| 439 | state->pc090oj = devtag_get_device(machine, "pc090oj"); | |
| 440 | state->msm1 = devtag_get_device(machine, "msm1"); | |
| 441 | state->msm2 = devtag_get_device(machine, "msm2"); | |
| 438 | state->pc080sn = machine->device("pc080sn"); | |
| 439 | state->pc090oj = machine->device("pc090oj"); | |
| 440 | state->msm1 = machine->device("msm1"); | |
| 441 | state->msm2 = machine->device("msm2"); | |
| 442 | 442 | |
| 443 | 443 | state_save_register_global(machine, state->sprite_ctrl); |
| 444 | 444 | state_save_register_global(machine, state->sprites_flipscreen); |
| r8581 | r8582 | |
| 462 | 462 | state->sprite_ctrl = 0; |
| 463 | 463 | state->sprites_flipscreen = 0; |
| 464 | 464 | |
| 465 | msm5205_reset_w(devtag_get_device(machine, "msm1"), 1); | |
| 466 | msm5205_reset_w(devtag_get_device(machine, "msm2"), 1); | |
| 465 | msm5205_reset_w(machine->device("msm1"), 1); | |
| 466 | msm5205_reset_w(machine->device("msm2"), 1); | |
| 467 | 467 | } |
| 468 | 468 | |
| 469 | 469 | static void opwolf_msm5205_vck( running_device *device ) |
| r8581 | r8582 | |
|---|---|---|
| 1683 | 1683 | static MACHINE_START( firebeat ) |
| 1684 | 1684 | { |
| 1685 | 1685 | /* set conservative DRC options */ |
| 1686 | ppcdrc_set_options( | |
| 1686 | ppcdrc_set_options(m | |
| 1687 | 1687 | |
| 1688 | 1688 | /* configure fast RAM regions for DRC */ |
| 1689 | ppcdrc_add_fastram( | |
| 1689 | ppcdrc_add_fastram(m | |
| 1690 | 1690 | } |
| 1691 | 1691 | |
| 1692 | 1692 | static ADDRESS_MAP_START( firebeat_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| r8581 | r8582 | |
| 1909 | 1909 | } |
| 1910 | 1910 | |
| 1911 | 1911 | SCSIGetDevice( atapi_device_data[1], &cd ); |
| 1912 | cdda_set_cdrom( | |
| 1912 | cdda_set_cdrom(m | |
| 1913 | 1913 | } |
| 1914 | 1914 | |
| 1915 | 1915 | static MACHINE_DRIVER_START(firebeat) |
| r8581 | r8582 | |
| 2157 | 2157 | { |
| 2158 | 2158 | int r = ibutton_w(data); |
| 2159 | 2159 | if (r >= 0) |
| 2160 | ppc4xx_spu_receive_byte(dev | |
| 2160 | ppc4xx_spu_receive_byte(dev | |
| 2161 | 2161 | } |
| 2162 | 2162 | |
| 2163 | 2163 | /*****************************************************************************/ |
| r8581 | r8582 | |
| 2190 | 2190 | |
| 2191 | 2191 | cur_cab_data = cab_data; |
| 2192 | 2192 | |
| 2193 | ppc4xx_spu_set_tx_handler( | |
| 2193 | ppc4xx_spu_set_tx_handler(m | |
| 2194 | 2194 | |
| 2195 | 2195 | set_ibutton(rom); |
| 2196 | 2196 |
| r8581 | r8582 | |
|---|---|---|
| 434 | 434 | { |
| 435 | 435 | bigevglf_state *state = (bigevglf_state *)machine->driver_data; |
| 436 | 436 | |
| 437 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 438 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 437 | state->audiocpu = machine->device("audiocpu"); | |
| 438 | state->mcu = machine->device("mcu"); | |
| 439 | 439 | |
| 440 | 440 | state_save_register_global(machine, state->vidram_bank); |
| 441 | 441 | state_save_register_global(machine, state->plane_selected); |
| r8581 | r8582 | |
|---|---|---|
| 322 | 322 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0x10000], 0x8000); |
| 323 | 323 | memory_set_bank(machine, "bank1", 0); |
| 324 | 324 | |
| 325 | state->audiocpu = | |
| 325 | state->audiocpu = m | |
| 326 | 326 | |
| 327 | 327 | state_save_register_global(machine, state->pending_command); |
| 328 | 328 | state_save_register_global(machine, state->bg_scrollx); |
| r8581 | r8582 | |
|---|---|---|
| 330 | 330 | #include "includes/amiga.h" |
| 331 | 331 | #include "includes/cubocd32.h" |
| 332 | 332 | #include "machine/6526cia.h" |
| 333 | #include "machine/i2cmem.h" | |
| 333 | 334 | |
| 334 | 335 | |
| 335 | 336 | /* set to 0 to use control panel with only buttons (as in quiz games) - joy is default in dispenser setup */ |
| r8581 | r8582 | |
| 376 | 377 | static WRITE8_DEVICE_HANDLER( cd32_cia_0_porta_w ) |
| 377 | 378 | { |
| 378 | 379 | /* bit 1 = cd audio mute */ |
| 379 | sound_set_output_gain(dev | |
| 380 | sound_set_output_gain(dev | |
| 380 | 381 | |
| 381 | 382 | /* bit 2 = Power Led on Amiga */ |
| 382 | 383 | set_led_status(device->machine, 0, (data & 2) ? 0 : 1); |
| r8581 | r8582 | |
| 1042 | 1043 | DEVCB_NULL |
| 1043 | 1044 | }; |
| 1044 | 1045 | |
| 1046 | #define NVRAM_SIZE 1024 | |
| 1047 | #define NVRAM_PAGE_SIZE 16 /* max size of one write request */ | |
| 1048 | ||
| 1049 | static const i2cmem_interface i2cmem_interface = | |
| 1050 | { | |
| 1051 | I2CMEM_SLAVE_ADDRESS, NVRAM_PAGE_SIZE, NVRAM_SIZE | |
| 1052 | }; | |
| 1053 | ||
| 1045 | 1054 | static MACHINE_DRIVER_START( cd32 ) |
| 1046 | 1055 | |
| 1047 | 1056 | /* basic machine hardware */ |
| r8581 | r8582 | |
| 1049 | 1058 | MDRV_CPU_PROGRAM_MAP(cd32_map) |
| 1050 | 1059 | |
| 1051 | 1060 | MDRV_MACHINE_RESET(amiga) |
| 1052 | MDRV_NVRAM_HANDLER(cd32) | |
| 1053 | 1061 | |
| 1062 | MDRV_I2CMEM_ADD("i2cmem",i2cmem_interface) | |
| 1063 | ||
| 1054 | 1064 | /* video hardware */ |
| 1055 | 1065 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) |
| 1056 | 1066 | |
| r8581 | r8582 | |
| 1180 | 1190 | |
| 1181 | 1191 | static void cndypuzl_input_hack(running_machine *machine) |
| 1182 | 1192 | { |
| 1183 | if(cpu_get_pc( | |
| 1193 | if(cpu_get_pc(m | |
| 1184 | 1194 | { |
| 1185 | 1195 | // amiga_chip_ram_w(0x051c02, 0x0000); |
| 1186 | 1196 | |
| 1187 | UINT32 r_A5 = cpu_get_reg( | |
| 1197 | UINT32 r_A5 = cpu_get_reg(m | |
| 1188 | 1198 | amiga_chip_ram_w(r_A5 - 0x7ebe, 0x0000); |
| 1189 | 1199 | } |
| 1190 | 1200 | } |
| r8581 | r8582 | |
| 1197 | 1207 | |
| 1198 | 1208 | static void haremchl_input_hack(running_machine *machine) |
| 1199 | 1209 | { |
| 1200 | if(cpu_get_pc( | |
| 1210 | if(cpu_get_pc(m | |
| 1201 | 1211 | { |
| 1202 | 1212 | // amiga_chip_ram_w8(0x002907, 0x00); |
| 1203 | 1213 | |
| 1204 | UINT32 r_A5 = cpu_get_reg( | |
| 1214 | UINT32 r_A5 = cpu_get_reg(m | |
| 1205 | 1215 | UINT32 r_A2 = (amiga_chip_ram_r(r_A5 - 0x7f00 + 0) << 16) | (amiga_chip_ram_r(r_A5 - 0x7f00 + 2)); |
| 1206 | 1216 | amiga_chip_ram_w8(r_A2 + 0x1f, 0x00); |
| 1207 | 1217 | } |
| r8581 | r8582 | |
| 1215 | 1225 | |
| 1216 | 1226 | static void lsrquiz_input_hack(running_machine *machine) |
| 1217 | 1227 | { |
| 1218 | if(cpu_get_pc( | |
| 1228 | if(cpu_get_pc(m | |
| 1219 | 1229 | { |
| 1220 | 1230 | // amiga_chip_ram_w8(0x001e1b, 0x00); |
| 1221 | 1231 | |
| 1222 | UINT32 r_A5 = cpu_get_reg( | |
| 1232 | UINT32 r_A5 = cpu_get_reg(m | |
| 1223 | 1233 | UINT32 r_A2 = (amiga_chip_ram_r(r_A5 - 0x7fe0 + 0) << 16) | (amiga_chip_ram_r(r_A5 - 0x7fe0 + 2)); |
| 1224 | 1234 | amiga_chip_ram_w8(r_A2 + 0x13, 0x00); |
| 1225 | 1235 | } |
| r8581 | r8582 | |
| 1234 | 1244 | /* The hack isn't working if you exit the test mode with P1 button 2 ! */ |
| 1235 | 1245 | static void lsrquiz2_input_hack(running_machine *machine) |
| 1236 | 1246 | { |
| 1237 | if(cpu_get_pc( | |
| 1247 | if(cpu_get_pc(m | |
| 1238 | 1248 | { |
| 1239 | 1249 | // amiga_chip_ram_w8(0x046107, 0x00); |
| 1240 | 1250 | |
| 1241 | UINT32 r_A5 = cpu_get_reg( | |
| 1251 | UINT32 r_A5 = cpu_get_reg(m | |
| 1242 | 1252 | UINT32 r_A2 = (amiga_chip_ram_r(r_A5 - 0x7fdc + 0) << 16) | (amiga_chip_ram_r(r_A5 - 0x7fdc + 2)); |
| 1243 | 1253 | amiga_chip_ram_w8(r_A2 + 0x17, 0x00); |
| 1244 | 1254 | } |
| r8581 | r8582 | |
| 1252 | 1262 | |
| 1253 | 1263 | static void lasstixx_input_hack(running_machine *machine) |
| 1254 | 1264 | { |
| 1255 | if(cpu_get_pc( | |
| 1265 | if(cpu_get_pc(m | |
| 1256 | 1266 | { |
| 1257 | 1267 | // amiga_chip_ram_w8(0x00281c, 0x00); |
| 1258 | 1268 | |
| 1259 | UINT32 r_A5 = cpu_get_reg( | |
| 1269 | UINT32 r_A5 = cpu_get_reg(m | |
| 1260 | 1270 | UINT32 r_A2 = (amiga_chip_ram_r(r_A5 - 0x7fa2 + 0) << 16) | (amiga_chip_ram_r(r_A5 - 0x7fa2 + 2)); |
| 1261 | 1271 | amiga_chip_ram_w8(r_A2 + 0x24, 0x00); |
| 1262 | 1272 | } |
| r8581 | r8582 | |
| 1270 | 1280 | |
| 1271 | 1281 | static void mgnumber_input_hack(running_machine *machine) |
| 1272 | 1282 | { |
| 1273 | if(cpu_get_pc( | |
| 1283 | if(cpu_get_pc(m | |
| 1274 | 1284 | { |
| 1275 | 1285 | // amiga_chip_ram_w(0x04bfa0, 0x0000); |
| 1276 | 1286 | |
| 1277 | UINT32 r_A5 = cpu_get_reg( | |
| 1287 | UINT32 r_A5 = cpu_get_reg(m | |
| 1278 | 1288 | amiga_chip_ram_w(r_A5 - 0x7ed8, 0x0000); |
| 1279 | 1289 | } |
| 1280 | 1290 | } |
| r8581 | r8582 | |
| 1287 | 1297 | |
| 1288 | 1298 | static void mgprem11_input_hack(running_machine *machine) |
| 1289 | 1299 | { |
| 1290 | if(cpu_get_pc( | |
| 1300 | if(cpu_get_pc(m | |
| 1291 | 1301 | { |
| 1292 | 1302 | // amiga_chip_ram_w8(0x044f7e, 0x00); |
| 1293 | 1303 | |
| 1294 | UINT32 r_A5 = cpu_get_reg( | |
| 1304 | UINT32 r_A5 = cpu_get_reg(m | |
| 1295 | 1305 | amiga_chip_ram_w8(r_A5 - 0x7eca, 0x00); |
| 1296 | 1306 | } |
| 1297 | 1307 | } |
| r8581 | r8582 | |
|---|---|---|
| 297 | 297 | { |
| 298 | 298 | cbuster_state *state = (cbuster_state *)machine->driver_data; |
| 299 | 299 | |
| 300 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 301 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 302 | state->deco16ic = devtag_get_device(machine, "deco_custom"); | |
| 300 | state->maincpu = machine->device("maincpu"); | |
| 301 | state->audiocpu = machine->device("audiocpu"); | |
| 302 | state->deco16ic = machine->device("deco_custom"); | |
| 303 | 303 | |
| 304 | 304 | state_save_register_global(machine, state->prot); |
| 305 | 305 | state_save_register_global(machine, state->pri); |
| r8581 | r8582 | |
|---|---|---|
| 550 | 550 | IC42S16800 - ISSI IC42S16800 4(2)M x 8(16) Bits x 4 Banks (128MBit) SDRAM |
| 551 | 551 | |
| 552 | 552 | QS1000 - QDSP QS1000 AdMOS 9638R, Wavetable Audio chip, clock input of 24.000MHz (QFP100) |
| 553 | see http://www.hwass.co.kr/product.htm for more info on QS100x chips. | |
| 554 | 553 | QS1001A - QDSP QS1001A 512k x8 MaskROM (SOP32) |
| 555 | 554 | |
| 556 | 555 | qs1001a.u17 was not dumped from this PCB, but is a standard sample rom found on many Eolith games |
| r8581 | r8582 | |
|---|---|---|
| 796 | 796 | { |
| 797 | 797 | ojankohs_state *state = (ojankohs_state *)machine->driver_data; |
| 798 | 798 | |
| 799 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 800 | state->msm = devtag_get_device(machine, "msm"); | |
| 799 | state->maincpu = machine->device("maincpu"); | |
| 800 | state->msm = machine->device("msm"); | |
| 801 | 801 | |
| 802 | 802 | state_save_register_global(machine, state->gfxreg); |
| 803 | 803 | state_save_register_global(machine, state->flipscreen); |
| r8581 | r8582 | |
|---|---|---|
| 436 | 436 | { |
| 437 | 437 | n8080_state *state = (n8080_state *)machine->driver_data; |
| 438 | 438 | |
| 439 | state->maincpu = | |
| 439 | state->maincpu = m | |
| 440 | 440 | |
| 441 | 441 | state_save_register_global(machine, state->shift_data); |
| 442 | 442 | state_save_register_global(machine, state->shift_bits); |
| r8581 | r8582 | |
|---|---|---|
| 252 | 252 | { |
| 253 | 253 | kncljoe_state *state = (kncljoe_state *)machine->driver_data; |
| 254 | 254 | |
| 255 | state->soundcpu = | |
| 255 | state->soundcpu = m | |
| 256 | 256 | |
| 257 | 257 | state_save_register_global(machine, state->port1); |
| 258 | 258 | state_save_register_global(machine, state->port2); |
| r8581 | r8582 | |
|---|---|---|
| 61 | 61 | static WRITE8_HANDLER( spd_adpcm_w ) |
| 62 | 62 | { |
| 63 | 63 | int chip = offset & 1; |
| 64 | running_device *adpcm = | |
| 64 | running_device *adpcm = | |
| 65 | 65 | |
| 66 | 66 | switch (offset/2) |
| 67 | 67 | { |
| r8581 | r8582 | |
|---|---|---|
| 484 | 484 | |
| 485 | 485 | static MACHINE_START( rblaster ) |
| 486 | 486 | { |
| 487 | laserdisc = | |
| 487 | laserdisc = m | |
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | static MACHINE_DRIVER_START( rblaster ) |
| r8581 | r8582 | |
|---|---|---|
| 1019 | 1019 | start_393hz_timer(machine); |
| 1020 | 1020 | |
| 1021 | 1021 | /* set devices */ |
| 1022 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1023 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1024 | state->speech = devtag_get_device(machine, "speech"); | |
| 1025 | state->dac3 = devtag_get_device(machine, "dac3"); | |
| 1026 | state->tms = devtag_get_device(machine, "tms"); | |
| 1027 | state->s2636_0 = devtag_get_device(machine, "s2636_0"); | |
| 1028 | state->s2636_1 = devtag_get_device(machine, "s2636_1"); | |
| 1029 | state->s2636_2 = devtag_get_device(machine, "s2636_2"); | |
| 1022 | state->maincpu = machine->device("maincpu"); | |
| 1023 | state->audiocpu = machine->device("audiocpu"); | |
| 1024 | state->speech = machine->device("speech"); | |
| 1025 | state->dac3 = machine->device("dac3"); | |
| 1026 | state->tms = machine->device("tms"); | |
| 1027 | state->s2636_0 = machine->device("s2636_0"); | |
| 1028 | state->s2636_1 = machine->device("s2636_1"); | |
| 1029 | state->s2636_2 = machine->device("s2636_2"); | |
| 1030 | 1030 | |
| 1031 | 1031 | /* register state save */ |
| 1032 | 1032 | state_save_register_global_pointer(machine, state->color_ram, 0x400); |
| r8581 | r8582 | |
|---|---|---|
| 680 | 680 | { |
| 681 | 681 | /* assert ACK */ |
| 682 | 682 | turbo_state *state = (turbo_state *)space->machine->driver_data; |
| 683 | ppi8255_set_port_c( | |
| 683 | ppi8255_set_port_c( | |
| 684 | 684 | return state->buckrog_command; |
| 685 | 685 | } |
| 686 | 686 | |
| r8581 | r8582 | |
| 719 | 719 | |
| 720 | 720 | static TIMER_CALLBACK( delayed_ppi8255_w ) |
| 721 | 721 | { |
| 722 | ppi8255_w( | |
| 722 | ppi8255_w(m | |
| 723 | 723 | } |
| 724 | 724 | |
| 725 | 725 |
| r8581 | r8582 | |
|---|---|---|
| 186 | 186 | { |
| 187 | 187 | gameplan_state *state = (gameplan_state *)machine->driver_data; |
| 188 | 188 | |
| 189 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 190 | state->via_0 = devtag_get_device(machine, "via6522_0"); | |
| 191 | state->via_1 = devtag_get_device(machine, "via6522_1"); | |
| 192 | state->via_2 = devtag_get_device(machine, "via6522_2"); | |
| 189 | state->maincpu = machine->device("maincpu"); | |
| 190 | state->via_0 = machine->device("via6522_0"); | |
| 191 | state->via_1 = machine->device("via6522_1"); | |
| 192 | state->via_2 = machine->device("via6522_2"); | |
| 193 | 193 | |
| 194 | 194 | /* register for save states */ |
| 195 | 195 | state_save_register_global(machine, state->video_x); |
| r8581 | r8582 | |
|---|---|---|
| 211 | 211 | if (mem_mask == 0x0000ff00) { hi_addr++; } /* Low byte */ |
| 212 | 212 | if (mem_mask == 0xff000000) {} /* High byte */ |
| 213 | 213 | |
| 214 | value = dsp56k_host_interface_read( | |
| 214 | value = dsp56k_host_interface_read( | |
| 215 | 215 | |
| 216 | 216 | if (mem_mask == 0x0000ff00) { value <<= 8; } |
| 217 | 217 | if (mem_mask == 0xff000000) { value <<= 24; } |
| r8581 | r8582 | |
| 295 | 295 | if (mem_mask == 0xff000000) { hi_data = (data & 0xff000000) >> 24; } |
| 296 | 296 | |
| 297 | 297 | logerror("write (host-side) %08x %08x %08x (HI %04x)\n", offset, mem_mask, data, hi_addr); |
| 298 | dsp56k_host_interface_write( | |
| 298 | dsp56k_host_interface_write( | |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 |
| r8581 | r8582 | |
|---|---|---|
| 1650 | 1650 | |
| 1651 | 1651 | state->maincpu = machine->device<cpu_device>("maincpu"); |
| 1652 | 1652 | state->audiocpu = machine->device<cpu_device>("audiocpu"); |
| 1653 | state->vlm = | |
| 1653 | state->vlm = m | |
| 1654 | 1654 | |
| 1655 | 1655 | state_save_register_global(machine, state->irq_on); |
| 1656 | 1656 | state_save_register_global(machine, state->irq1_on); |
| r8581 | r8582 | |
|---|---|---|
| 116 | 116 | |
| 117 | 117 | static WRITE8_DEVICE_HANDLER( ay8910_portA_0_w ) |
| 118 | 118 | { |
| 119 | running_device *ay1 = devtag_get_device(device->machine, "ay1"); | |
| 120 | running_device *ay2 = devtag_get_device(device->machine, "ay2"); | |
| 121 | running_device *ay3 = devtag_get_device(device->machine, "ay3"); | |
| 119 | running_device *ay1 = device->machine->device("ay1"); | |
| 120 | running_device *ay2 = device->machine->device("ay2"); | |
| 121 | running_device *ay3 = device->machine->device("ay3"); | |
| 122 | 122 | float percent; |
| 123 | 123 | |
| 124 | 124 | /*There are three AY8910 chips and four(!) separate amplifiers on the board |
| r8581 | r8582 | |
|---|---|---|
| 542 | 542 | |
| 543 | 543 | memory_configure_bank(machine, "bank10", 0, 8, memory_region(machine, "audiocpu") + 0xc000, 0x4000); |
| 544 | 544 | |
| 545 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 546 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 547 | state->tc0140syt = devtag_get_device(machine, "tc0140syt"); | |
| 548 | state->tc0100scn_1 = devtag_get_device(machine, "tc0100scn_1"); | |
| 549 | state->tc0100scn_2 = devtag_get_device(machine, "tc0100scn_2"); | |
| 545 | state->maincpu = machine->device("maincpu"); | |
| 546 | state->audiocpu = machine->device("audiocpu"); | |
| 547 | state->tc0140syt = machine->device("tc0140syt"); | |
| 548 | state->tc0100scn_1 = machine->device("tc0100scn_1"); | |
| 549 | state->tc0100scn_2 = machine->device("tc0100scn_2"); | |
| 550 | 550 | |
| 551 | state->lscreen = devtag_get_device(machine, "lscreen"); | |
| 552 | state->rscreen = devtag_get_device(machine, "rscreen"); | |
| 551 | state->lscreen = machine->device("lscreen"); | |
| 552 | state->rscreen = machine->device("rscreen"); | |
| 553 | 553 | |
| 554 | state->_2610_1l = devtag_get_device(machine, "2610.1.l"); | |
| 555 | state->_2610_1r = devtag_get_device(machine, "2610.1.r"); | |
| 556 | state->_2610_2l = devtag_get_device(machine, "2610.2.l"); | |
| 557 | state->_2610_2r = devtag_get_device(machine, "2610.2.r"); | |
| 554 | state->_2610_1l = machine->device("2610.1.l"); | |
| 555 | state->_2610_1r = machine->device("2610.1.r"); | |
| 556 | state->_2610_2l = machine->device("2610.2.l"); | |
| 557 | state->_2610_2r = machine->device("2610.2.r"); | |
| 558 | 558 | |
| 559 | 559 | state_save_register_global(machine, state->banknum); |
| 560 | 560 | state_save_register_global_array(machine, state->pandata); |
| r8581 | r8582 | |
|---|---|---|
| 297 | 297 | |
| 298 | 298 | memory_configure_bank(machine, "bank1", 0, 2, &ROM[0x10000], 0x4000); |
| 299 | 299 | |
| 300 | state->audiocpu = | |
| 300 | state->audiocpu = m | |
| 301 | 301 | |
| 302 | 302 | state_save_register_global(machine, state->fg_bank); |
| 303 | 303 | state_save_register_global(machine, state->msm5205next); |
| r8581 | r8582 | |
|---|---|---|
| 86 | 86 | |
| 87 | 87 | static MACHINE_START( alg ) |
| 88 | 88 | { |
| 89 | laserdisc = | |
| 89 | laserdisc = m | |
| 90 | 90 | |
| 91 | 91 | serial_timer = timer_alloc(machine, response_timer, NULL); |
| 92 | 92 | serial_timer_active = FALSE; |
| r8581 | r8582 | |
|---|---|---|
| 23 | 23 | - 01 x lm324n |
| 24 | 24 | |
| 25 | 25 | To not overload the driver, I put the rest of technical info in |
| 26 | http:// | |
| 26 | http://robbie.mameworld.inf | |
| 27 | 27 | |
| 28 | 28 | - Added 2 "hidden" color proms (am27s19) |
| 29 | 29 | - One GAL is connected to the color proms inputs. |
| r8581 | r8582 | |
|---|---|---|
| 198 | 198 | |
| 199 | 199 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0x10000], 0x2000); |
| 200 | 200 | |
| 201 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 202 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 203 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 204 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 201 | state->maincpu = machine->device("maincpu"); | |
| 202 | state->audiocpu = machine->device("audiocpu"); | |
| 203 | state->k052109 = machine->device("k052109"); | |
| 204 | state->k051960 = machine->device("k051960"); | |
| 205 | 205 | |
| 206 | 206 | state_save_register_global(machine, state->palette_selected); |
| 207 | 207 | state_save_register_global(machine, state->rombank); |
| r8581 | r8582 | |
| 211 | 211 | { |
| 212 | 212 | blockhl_state *state = (blockhl_state *)machine->driver_data; |
| 213 | 213 | |
| 214 | konami_configure_set_lines( | |
| 214 | konami_configure_set_lines(m | |
| 215 | 215 | |
| 216 | 216 | state->palette_selected = 0; |
| 217 | 217 | state->rombank = 0; |
| r8581 | r8582 | |
|---|---|---|
| 153 | 153 | static WRITE16_HANDLER( blackt96_80000_w ) |
| 154 | 154 | { |
| 155 | 155 | // TO sound MCU? |
| 156 | | |
| 156 | | |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | |
| r8581 | r8582 | |
| 342 | 342 | |
| 343 | 343 | /* Dipswitch Port A */ |
| 344 | 344 | PORT_START("DSW1") |
| 345 | PORT_DIPNAME( 0x0300, 0x0 | |
| 345 | PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:!7,!8") | |
| 346 | 346 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) |
| 347 | 347 | PORT_DIPSETTING( 0x0200, DEF_STR( 1C_2C ) ) |
| 348 | 348 | PORT_DIPSETTING( 0x0100, DEF_STR( 1C_3C ) ) |
| 349 | 349 | PORT_DIPSETTING( 0x0300, DEF_STR( 1C_4C ) ) |
| 350 | PORT_DIPNAME( 0x0c00, 0x0 | |
| 350 | PORT_DIPNAME( 0x0c00, 0x0000, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:!5,!6") | |
| 351 | 351 | PORT_DIPSETTING( 0x0c00, DEF_STR( 4C_1C ) ) |
| 352 | 352 | PORT_DIPSETTING( 0x0400, DEF_STR( 3C_1C ) ) |
| 353 | 353 | PORT_DIPSETTING( 0x0800, DEF_STR( 2C_1C ) ) |
| r8581 | r8582 | |
| 414 | 414 | }; |
| 415 | 415 | |
| 416 | 416 | |
| 417 | /* wrong layout, but we can see some tiles */ | |
| 418 | 417 | static const gfx_layout blackt963_layout = |
| 419 | 418 | { |
| 420 | 419 | 8,8, |
| r8581 | r8582 | |
| 432 | 431 | GFXDECODE_ENTRY( "gfx3", 0, blackt963_layout, 0x0, 0x80 ) |
| 433 | 432 | GFXDECODE_END |
| 434 | 433 | |
| 434 | ||
| 435 | static READ8_HANDLER( PIC16C5X_T0_clk_r ) | |
| 436 | { | |
| 437 | return 0; | |
| 438 | } | |
| 439 | ||
| 440 | static WRITE8_HANDLER( blackt96_soundio_port00_w ) | |
| 441 | { | |
| 442 | ||
| 443 | } | |
| 444 | ||
| 445 | static READ8_HANDLER( blackt96_soundio_port01_r ) | |
| 446 | { | |
| 447 | return mame_rand(space->machine); | |
| 448 | } | |
| 449 | ||
| 450 | static WRITE8_HANDLER( blackt96_soundio_port01_w ) | |
| 451 | { | |
| 452 | ||
| 453 | } | |
| 454 | ||
| 455 | static READ8_HANDLER( blackt96_soundio_port02_r ) | |
| 456 | { | |
| 457 | return mame_rand(space->machine); | |
| 458 | } | |
| 459 | ||
| 460 | static WRITE8_HANDLER( blackt96_soundio_port02_w ) | |
| 461 | { | |
| 462 | ||
| 463 | } | |
| 464 | ||
| 435 | 465 | static ADDRESS_MAP_START( sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| 466 | AM_RANGE(0x00, 0x00) AM_WRITE( blackt96_soundio_port00_w ) | |
| 467 | AM_RANGE(0x01, 0x01) AM_READWRITE( blackt96_soundio_port01_r, blackt96_soundio_port01_w ) | |
| 468 | AM_RANGE(0x02, 0x02) AM_READWRITE( blackt96_soundio_port02_r, blackt96_soundio_port02_w ) | |
| 469 | AM_RANGE(PIC16C5x_T0, PIC16C5x_T0) AM_READ(PIC16C5X_T0_clk_r) | |
| 436 | 470 | ADDRESS_MAP_END |
| 437 | 471 | |
| 472 | ||
| 473 | ||
| 438 | 474 | static MACHINE_DRIVER_START( blackt96 ) |
| 439 | 475 | MDRV_CPU_ADD("maincpu", M68000, 18000000 /2) |
| 440 | 476 | MDRV_CPU_PROGRAM_MAP(blackt96_map) |
| 441 | 477 | MDRV_CPU_VBLANK_INT("screen", irq1_line_hold) |
| 442 | 478 | |
| 443 | 479 | MDRV_CPU_ADD("audiocpu", PIC16C57, 8000000) /* ? */ |
| 444 | MDRV_DEVICE_DISABLE() | |
| 445 | 480 | MDRV_CPU_IO_MAP(sound_io_map) |
| 446 | 481 | |
| 447 | 482 | MDRV_GFXDECODE(blackt96) |
| r8581 | r8582 | |
| 477 | 512 | ROM_LOAD16_BYTE( "4", 0x00000, 0x40000, CRC(caff5b4a) SHA1(9a388cbb07211fa66f27082a8a5b847168c86a4f) ) |
| 478 | 513 | |
| 479 | 514 | ROM_REGION( 0x80000, "audiocpu", 0 ) /* PIC16c57 Code */ |
| 480 | ROM_LOAD( "pic16c57", 0x00000, 0x | |
| 515 | ROM_LOAD( "pic16c57.bin", 0x00000, 0x2000, CRC(6053ba2f) SHA1(5dd28ddff17555de0e8574b78ff9e71204c503d3) ) | |
| 481 | 516 | |
| 482 | 517 | ROM_REGION( 0x080000, "oki1", 0 ) /* Samples */ |
| 483 | 518 | ROM_LOAD( "1", 0x00000, 0x80000, CRC(6a934174) SHA1(087f5fa226dc68ee217f99c64d16cdf14372d44c) ) |
| r8581 | r8582 | |
|---|---|---|
| 21 | 21 | Sega Vector memory map (preliminary) |
| 22 | 22 | |
| 23 | 23 | Most of the info here comes from the wiretap archive at: |
| 24 | http://www. | |
| 24 | http://www.m | |
| 25 | 25 | |
| 26 | 26 | * Sega G80 Vector Simulation |
| 27 | 27 | |
| r8581 | r8582 | |
| 1367 | 1367 | static DRIVER_INIT( zektor ) |
| 1368 | 1368 | { |
| 1369 | 1369 | const address_space *iospace = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_IO); |
| 1370 | running_device *ay = | |
| 1370 | running_device *ay = m | |
| 1371 | 1371 | |
| 1372 | 1372 | /* configure security */ |
| 1373 | 1373 | sega_security(82); |
| r8581 | r8582 | |
|---|---|---|
| 337 | 337 | |
| 338 | 338 | memory_configure_bank(machine, "bank1", 0, 12, &ROM[0x10000], 0x2000); |
| 339 | 339 | |
| 340 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 341 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 342 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 343 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 344 | state->k051316 = devtag_get_device(machine, "k051316"); | |
| 345 | state->k007232_1 = devtag_get_device(machine, "k007232_1"); | |
| 346 | state->k007232_2 = devtag_get_device(machine, "k007232_2"); | |
| 340 | state->maincpu = machine->device("maincpu"); | |
| 341 | state->audiocpu = machine->device("audiocpu"); | |
| 342 | state->k052109 = machine->device("k052109"); | |
| 343 | state->k051960 = machine->device("k051960"); | |
| 344 | state->k051316 = machine->device("k051316"); | |
| 345 | state->k007232_1 = machine->device("k007232_1"); | |
| 346 | state->k007232_2 = machine->device("k007232_2"); | |
| 347 | 347 | |
| 348 | 348 | state_save_register_global(machine, state->video_enable); |
| 349 | 349 | state_save_register_global(machine, state->zoomreadroms); |
| r8581 | r8582 | |
|---|---|---|
| 207 | 207 | |
| 208 | 208 | static WRITE8_HANDLER( seawolf2_sound_1_w ) // Port 40 |
| 209 | 209 | { |
| 210 | running_device *samples = | |
| 210 | running_device *samples = | |
| 211 | 211 | UINT8 rising_bits = data & ~port_1_last; |
| 212 | 212 | port_1_last = data; |
| 213 | 213 | |
| r8581 | r8582 | |
| 222 | 222 | |
| 223 | 223 | static WRITE8_HANDLER( seawolf2_sound_2_w ) // Port 41 |
| 224 | 224 | { |
| 225 | running_device *samples = | |
| 225 | running_device *samples = | |
| 226 | 226 | UINT8 rising_bits = data & ~port_2_last; |
| 227 | 227 | port_2_last = data; |
| 228 | 228 | |
| r8581 | r8582 | |
| 337 | 337 | case 4: astrocade_sparkle[2] = data; break; |
| 338 | 338 | case 5: astrocade_sparkle[3] = data; break; |
| 339 | 339 | case 6: |
| 340 | sound_set_output_gain(devtag_get_device(space->machine, "astrocade1"), 0, data ? 0.0 : 1.0); | |
| 341 | sound_set_output_gain(devtag_get_device(space->machine, "samples"), 0, data ? 1.0 : 0.0); | |
| 340 | sound_set_output_gain(space->machine->device("astrocade1"), 0, data ? 0.0 : 1.0); | |
| 341 | sound_set_output_gain(space->machine->device("samples"), 0, data ? 1.0 : 0.0); | |
| 342 | 342 | break; |
| 343 | 343 | case 7: mame_printf_debug("io_1:%d\n", data); break; |
| 344 | 344 | } |
| r8581 | r8582 | |
|---|---|---|
| 52 | 52 | C += 220000; /* 220000pF = 0.22uF */ |
| 53 | 53 | |
| 54 | 54 | data >>= 2; |
| 55 | filter_rc_set_RC(dev | |
| 55 | filter_rc_set_RC(dev | |
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 |
| r8581 | r8582 | |
|---|---|---|
| 999 | 999 | { |
| 1000 | 1000 | buggychl_state *state = (buggychl_state *)machine->driver_data; |
| 1001 | 1001 | |
| 1002 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1003 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 1002 | state->audiocpu = machine->device("audiocpu"); | |
| 1003 | state->mcu = machine->device("mcu"); | |
| 1004 | 1004 | |
| 1005 | 1005 | /* video */ |
| 1006 | 1006 | state_save_register_global(machine, state->pix1); |
| r8581 | r8582 | |
|---|---|---|
| 745 | 745 | switch (offset) |
| 746 | 746 | { |
| 747 | 747 | case 0x00: /* IRQ1 */ |
| 748 | cpu_interrupt_enable( | |
| 748 | cpu_interrupt_enable( | |
| 749 | 749 | if (!bit) |
| 750 | 750 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 751 | 751 | break; |
| 752 | 752 | |
| 753 | 753 | case 0x01: /* IRQ2 */ |
| 754 | cpu_interrupt_enable( | |
| 754 | cpu_interrupt_enable( | |
| 755 | 755 | if (!bit) |
| 756 | 756 | cputag_set_input_line(space->machine, "sub", 0, CLEAR_LINE); |
| 757 | 757 | break; |
| 758 | 758 | |
| 759 | 759 | case 0x02: /* NMION */ |
| 760 | cpu_interrupt_enable( | |
| 760 | cpu_interrupt_enable( | |
| 761 | 761 | break; |
| 762 | 762 | |
| 763 | 763 | case 0x03: /* RESET */ |
| r8581 | r8582 | |
| 866 | 866 | { |
| 867 | 867 | int scanline = param; |
| 868 | 868 | |
| 869 | nmi_line_pulse( | |
| 869 | nmi_line_pulse(m | |
| 870 | 870 | |
| 871 | 871 | scanline = scanline + 128; |
| 872 | 872 | if (scanline >= 272) |
| r8581 | r8582 | |
|---|---|---|
| 80 | 80 | |
| 81 | 81 | static MACHINE_START( istellar ) |
| 82 | 82 | { |
| 83 | laserdisc = | |
| 83 | laserdisc = m | |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 |
| r8581 | r8582 | |
|---|---|---|
| 466 | 466 | { |
| 467 | 467 | lasso_state *state = (lasso_state *)machine->driver_data; |
| 468 | 468 | |
| 469 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 470 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 471 | state->sn_1 = devtag_get_device(machine, "sn76489.1"); | |
| 472 | state->sn_2 = devtag_get_device(machine, "sn76489.2"); | |
| 469 | state->maincpu = machine->device("maincpu"); | |
| 470 | state->audiocpu = machine->device("audiocpu"); | |
| 471 | state->sn_1 = machine->device("sn76489.1"); | |
| 472 | state->sn_2 = machine->device("sn76489.2"); | |
| 473 | 473 | |
| 474 | 474 | state_save_register_global(machine, state->gfxbank); |
| 475 | 475 | } |
| r8581 | r8582 | |
|---|---|---|
| 688 | 688 | |
| 689 | 689 | memory_configure_bank(machine, "bank10", 0, 4, memory_region(machine, "audiocpu") + 0xc000, 0x4000); |
| 690 | 690 | |
| 691 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 692 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 693 | state->eeprom = devtag_get_device(machine, "eeprom"); | |
| 694 | state->tc0220ioc = devtag_get_device(machine, "tc0220ioc"); | |
| 695 | state->tc0100scn = devtag_get_device(machine, "tc0100scn"); | |
| 696 | state->tc0110pcr = devtag_get_device(machine, "tc0110pcr"); | |
| 697 | state->tc0140syt = devtag_get_device(machine, "tc0140syt"); | |
| 698 | state->_2610_0l = devtag_get_device(machine, "2610.0l"); | |
| 699 | state->_2610_0r = devtag_get_device(machine, "2610.0r"); | |
| 700 | state->_2610_1l = devtag_get_device(machine, "2610.1l"); | |
| 701 | state->_2610_1r = devtag_get_device(machine, "2610.1r"); | |
| 702 | state->_2610_2l = devtag_get_device(machine, "2610.2l"); | |
| 703 | state->_2610_2r = devtag_get_device(machine, "2610.2r"); | |
| 691 | state->maincpu = machine->device("maincpu"); | |
| 692 | state->audiocpu = machine->device("audiocpu"); | |
| 693 | state->eeprom = machine->device("eeprom"); | |
| 694 | state->tc0220ioc = machine->device("tc0220ioc"); | |
| 695 | state->tc0100scn = machine->device("tc0100scn"); | |
| 696 | state->tc0110pcr = machine->device("tc0110pcr"); | |
| 697 | state->tc0140syt = machine->device("tc0140syt"); | |
| 698 | state->_2610_0l = machine->device("2610.0l"); | |
| 699 | state->_2610_0r = machine->device("2610.0r"); | |
| 700 | state->_2610_1l = machine->device("2610.1l"); | |
| 701 | state->_2610_1r = machine->device("2610.1r"); | |
| 702 | state->_2610_2l = machine->device("2610.2l"); | |
| 703 | state->_2610_2r = machine->device("2610.2r"); | |
| 704 | 704 | |
| 705 | 705 | state_save_register_global(machine, state->vblank_irq); |
| 706 | 706 | state_save_register_global(machine, state->ad_irq); |
| r8581 | r8582 | |
|---|---|---|
| 233 | 233 | static WRITE8_HANDLER( pacland_irq_1_ctrl_w ) |
| 234 | 234 | { |
| 235 | 235 | int bit = !BIT(offset, 11); |
| 236 | cpu_interrupt_enable( | |
| 236 | cpu_interrupt_enable( | |
| 237 | 237 | if (!bit) |
| 238 | 238 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 239 | 239 | } |
| r8581 | r8582 | |
| 241 | 241 | static WRITE8_HANDLER( pacland_irq_2_ctrl_w ) |
| 242 | 242 | { |
| 243 | 243 | int bit = !BIT(offset, 13); |
| 244 | cpu_interrupt_enable( | |
| 244 | cpu_interrupt_enable( | |
| 245 | 245 | if (!bit) |
| 246 | 246 | cputag_set_input_line(space->machine, "mcu", 0, CLEAR_LINE); |
| 247 | 247 | } |
| r8581 | r8582 | |
|---|---|---|
| 701 | 701 | { |
| 702 | 702 | psikyo4_state *state = (psikyo4_state *)machine->driver_data; |
| 703 | 703 | |
| 704 | state->maincpu = | |
| 704 | state->maincpu = m | |
| 705 | 705 | |
| 706 | 706 | #if ROMTEST |
| 707 | 707 | // FIXME: Too many banks! it cannot be handled in this way, currently |
| r8581 | r8582 | |
|---|---|---|
| 309 | 309 | { |
| 310 | 310 | popper_state *state = (popper_state *)machine->driver_data; |
| 311 | 311 | |
| 312 | state->audiocpu = | |
| 312 | state->audiocpu = m | |
| 313 | 313 | |
| 314 | 314 | state_save_register_global(machine, state->flipscreen); |
| 315 | 315 | state_save_register_global(machine, state->e002); |
| r8581 | r8582 | |
|---|---|---|
| 287 | 287 | { |
| 288 | 288 | ladyfrog_state *state = (ladyfrog_state *)machine->driver_data; |
| 289 | 289 | |
| 290 | state->audiocpu = | |
| 290 | state->audiocpu = m | |
| 291 | 291 | |
| 292 | 292 | state_save_register_global(machine, state->tilebank); |
| 293 | 293 | state_save_register_global(machine, state->palette_bank); |
| r8581 | r8582 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | - The "BEAST" protection device has access to dipswitches and player inputs. |
| 24 | 24 | |
| 25 | Genre: Scrolling Fighter | |
| 26 | Orientation: Horizontal | |
| 27 | Type: Raster: Standard Resolution | |
| 28 | CRT: Color | |
| 29 | Conversion Class: JAMMA | |
| 30 | Number of Simultaneous Players: 2 | |
| 31 | Maximum number of Players: 2 | |
| 32 | Gameplay: Joint | |
| 33 | Control Panel Layout: Multiple Player | |
| 34 | Joystick: 8-way | |
| 35 | Buttons: 3 - Punch, Kick, Jump | |
| 36 | Sound: Amplified Mono (one channel) - Stereo sound is available | |
| 37 | through a 4-pin header (voice of Wolfman Jack!!) | |
| 38 | 25 | |
| 39 | DJ Boy | |
| 40 | 1990, Kaneko / American Sammy Corp. | |
| 41 | ||
| 42 | 26 | PCB Layout |
| 43 | 27 | ---------- |
| 44 | 28 | |
| r8581 | r8582 | |
| 66 | 50 | |
| 67 | 51 | Notes: |
| 68 | 52 | D780C-2 - Z80 CPU. clock 6.000MHz [12/2] (for all 3 Z80 CPUs) |
| 69 | BEAST - DIP40 Microcontroller, 8xxx series (8041/8042/8 | |
| 53 | BEAST - DIP40 Microcontroller, 8xxx series (8041/8042/8051 etc). | |
| 70 | 54 | Clock 6.000MHz on pins 18 & 19 |
| 71 | 55 | chip is stamped 'KANEKO Beast (C)Intel '80 (C)KANEKO 1988' |
| 72 | 56 | YM2203 - Yamaha YM2203, clock 3.000MHz [12/4] |
| r8581 | r8582 | |
| 151 | 135 | |SPEAKER STEREO OFF| |
| 152 | 136 | |OUTPUT MONO ON| |
| 153 | 137 | |--------------------------------------------| |
| 138 | ||
| 139 | TODO: Hook-up Beast MCU and remove simulation. | |
| 140 | The internal ROM has been hand-typed from a photograph of the | |
| 141 | chip die and should marked BAD_DUMP until confirmed correct. | |
| 154 | 142 | */ |
| 155 | 143 | |
| 156 | 144 | #include "emu.h" |
| 157 | 145 | #include "deprecat.h" |
| 158 | 146 | #include "cpu/z80/z80.h" |
| 147 | #include "cpu/mcs51/mcs51.h" | |
| 159 | 148 | #include "sound/2203intf.h" |
| 160 | 149 | #include "sound/okim6295.h" |
| 161 | 150 | #include "video/kan_pand.h" |
| r8581 | r8582 | |
| 726 | 715 | |
| 727 | 716 | /******************************************************************************/ |
| 728 | 717 | |
| 718 | /* Program/data maps are defined in the 8051 core */ | |
| 719 | ||
| 720 | static ADDRESS_MAP_START( djboy_mcu_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 721 | // AM_RANGE(MCS51_PORT_P0,MCS51_PORT_P0) | |
| 722 | // AM_RANGE(MCS51_PORT_P1,MCS51_PORT_P1) | |
| 723 | // AM_RANGE(MCS51_PORT_P2,MCS51_PORT_P2) | |
| 724 | // AM_RANGE(MCS51_PORT_P3,MCS51_PORT_P3) | |
| 725 | ADDRESS_MAP_END | |
| 726 | ||
| 727 | /******************************************************************************/ | |
| 728 | ||
| 729 | 729 | static INPUT_PORTS_START( djboy ) |
| 730 | 730 | PORT_START("IN0") |
| 731 | 731 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| r8581 | r8582 | |
| 860 | 860 | memory_configure_bank(machine, "bank3", 3, 5, &CPU2[0x10000], 0x4000); |
| 861 | 861 | memory_configure_bank(machine, "bank4", 0, 1, &MAIN[0x10000], 0x3000); /* unsure if/how this area is banked */ |
| 862 | 862 | |
| 863 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 864 | state->cpu1 = devtag_get_device(machine, "cpu1"); | |
| 865 | state->cpu2 = devtag_get_device(machine, "cpu2"); | |
| 866 | state->pandora = devtag_get_device(machine, "pandora"); | |
| 863 | state->maincpu = machine->device("maincpu"); | |
| 864 | state->cpu1 = machine->device("cpu1"); | |
| 865 | state->cpu2 = machine->device("cpu2"); | |
| 866 | state->pandora = machine->device("pandora"); | |
| 867 | 867 | |
| 868 | 868 | state_save_register_global(machine, state->videoreg); |
| 869 | 869 | state_save_register_global(machine, state->scrollx); |
| r8581 | r8582 | |
| 930 | 930 | MDRV_CPU_IO_MAP(cpu2_port_am) |
| 931 | 931 | MDRV_CPU_VBLANK_INT("screen", irq0_line_hold) |
| 932 | 932 | |
| 933 | MDRV_CPU_ADD("mcu", I80C51, 6000000) | |
| 934 | MDRV_CPU_IO_MAP(djboy_mcu_io_map) | |
| 935 | ||
| 933 | 936 | MDRV_QUANTUM_TIME(HZ(6000)) |
| 934 | 937 | |
| 935 | 938 | MDRV_MACHINE_START(djboy) |
| r8581 | r8582 | |
| 979 | 982 | ROM_LOAD( "bs200.8c", 0x00000, 0x0c000, CRC(f6c19e51) SHA1(82193f71122df07cce0a7f057a87b89eb2d587a1) ) |
| 980 | 983 | ROM_CONTINUE( 0x10000, 0x14000 ) |
| 981 | 984 | |
| 982 | ROM_REGION( 0x1000, "mcu", 0 ) /* i8751 microcontroller */ | |
| 983 | ROM_LOAD( "i8751_beast", 0x00000, 0x1000, NO_DUMP ) | |
| 985 | ROM_REGION( 0x1000, "mcu", 0 ) /* MSM80C51F microcontroller */ | |
| 986 | ROM_LOAD( "beast.9s", 0x00000, 0x1000, BAD_DUMP CRC(73cae0a8) SHA1(1456ad3387d1255b9ca44f3e3505e458b0ed078c) ) | |
| 984 | 987 | |
| 985 | 988 | ROM_REGION( 0x200000, "gfx1", 0 ) /* sprites */ |
| 986 | 989 | ROM_LOAD( "bs000.1h", 0x000000, 0x80000, CRC(be4bf805) SHA1(a73c564575fe89d26225ca8ec2d98b6ac319ac18) ) |
| r8581 | r8582 | |
| 1015 | 1018 | ROM_LOAD( "bs200.8c", 0x00000, 0x0c000, CRC(f6c19e51) SHA1(82193f71122df07cce0a7f057a87b89eb2d587a1) ) |
| 1016 | 1019 | ROM_CONTINUE( 0x10000, 0x14000 ) |
| 1017 | 1020 | |
| 1018 | ROM_REGION( 0x1000, "mcu", 0 ) /* i8751 microcontroller */ | |
| 1019 | ROM_LOAD( "i8751_beast", 0x00000, 0x1000, NO_DUMP ) | |
| 1021 | ROM_REGION( 0x1000, "mcu", 0 ) /* MSM80C51F microcontroller*/ | |
| 1022 | ROM_LOAD( "beast.9s", 0x00000, 0x1000, BAD_DUMP CRC(73cae0a8) SHA1(1456ad3387d1255b9ca44f3e3505e458b0ed078c) ) | |
| 1020 | 1023 | |
| 1021 | 1024 | ROM_REGION( 0x200000, "gfx1", 0 ) /* sprites */ |
| 1022 | 1025 | ROM_LOAD( "bs000.1h", 0x000000, 0x80000, CRC(be4bf805) SHA1(a73c564575fe89d26225ca8ec2d98b6ac319ac18) ) |
| r8581 | r8582 | |
| 1051 | 1054 | ROM_LOAD( "bs200.8c", 0x00000, 0x0c000, CRC(f6c19e51) SHA1(82193f71122df07cce0a7f057a87b89eb2d587a1) ) |
| 1052 | 1055 | ROM_CONTINUE( 0x10000, 0x14000 ) |
| 1053 | 1056 | |
| 1054 | ROM_REGION( 0x1000, "mcu", 0 ) /* i8751 microcontroller */ | |
| 1055 | ROM_LOAD( "i8751_beast", 0x00000, 0x1000, NO_DUMP ) | |
| 1057 | ROM_REGION( 0x1000, "mcu", 0 ) /* MSM80C51F microcontroller */ | |
| 1058 | ROM_LOAD( "beast.9s", 0x00000, 0x1000, BAD_DUMP CRC(73cae0a8) SHA1(1456ad3387d1255b9ca44f3e3505e458b0ed078c) ) | |
| 1056 | 1059 | |
| 1057 | 1060 | ROM_REGION( 0x200000, "gfx1", 0 ) /* sprites */ |
| 1058 | 1061 | ROM_LOAD( "bs000.1h", 0x000000, 0x80000, CRC(be4bf805) SHA1(a73c564575fe89d26225ca8ec2d98b6ac319ac18) ) |
| r8581 | r8582 | |
|---|---|---|
| 297 | 297 | { |
| 298 | 298 | tumblep_state *state = (tumblep_state *)machine->driver_data; |
| 299 | 299 | |
| 300 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 301 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 302 | state->deco16ic = devtag_get_device(machine, "deco_custom"); | |
| 300 | state->maincpu = machine->device("maincpu"); | |
| 301 | state->audiocpu = machine->device("audiocpu"); | |
| 302 | state->deco16ic = machine->device("deco_custom"); | |
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | static MACHINE_DRIVER_START( tumblep ) |
| r8581 | r8582 | |
|---|---|---|
| 194 | 194 | { |
| 195 | 195 | dietgo_state *state = (dietgo_state *)machine->driver_data; |
| 196 | 196 | |
| 197 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 198 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 199 | state->deco16ic = devtag_get_device(machine, "deco_custom"); | |
| 197 | state->maincpu = machine->device("maincpu"); | |
| 198 | state->audiocpu = machine->device("audiocpu"); | |
| 199 | state->deco16ic = machine->device("deco_custom"); | |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | static MACHINE_DRIVER_START( dietgo ) |
| r8581 | r8582 | |
|---|---|---|
| 458 | 458 | { |
| 459 | 459 | kingofb_state *state = (kingofb_state *)machine->driver_data; |
| 460 | 460 | |
| 461 | state->video_cpu = devtag_get_device(machine, "video"); | |
| 462 | state->sprite_cpu = devtag_get_device(machine, "sprite"); | |
| 463 | state->audio_cpu = devtag_get_device(machine, "audiocpu"); | |
| 461 | state->video_cpu = machine->device("video"); | |
| 462 | state->sprite_cpu = machine->device("sprite"); | |
| 463 | state->audio_cpu = machine->device("audiocpu"); | |
| 464 | 464 | |
| 465 | 465 | state_save_register_global(machine, state->nmi_enable); |
| 466 | 466 | state_save_register_global(machine, state->palette_bank); |
| r8581 | r8582 | |
|---|---|---|
| 3 | 3 | Bellfruit system85 driver, (under heavy construction !!!) |
| 4 | 4 | |
| 5 | 5 | A.G.E Code Copyright J. Wallace and the AGEMAME Development Team. |
| 6 | Visit http:// | |
| 6 | Visit http://agemame.mameworld.info | |
| 7 | 7 | |
| 8 | 8 | M.A.M.E Core Copyright Nicola Salmoria and the MAME Team, |
| 9 | 9 | used under license from http://mamedev.org |
| r8581 | r8582 | |
| 226 | 226 | for (i=0; i<8; i++) |
| 227 | 227 | if ( changed & (1 << i) ) Mechmtr_update(i, cycles, data & (1 << i) ); |
| 228 | 228 | |
| 229 | if ( data ) generic_pulse_irq_line( | |
| 229 | if ( data ) generic_pulse_irq_line( | |
| 230 | 230 | } |
| 231 | 231 | /////////////////////////////////////////////////////////////////////////// |
| 232 | 232 |
| r8581 | r8582 | |
|---|---|---|
| 130 | 130 | |
| 131 | 131 | static READ8_HANDLER( g_status_r ) |
| 132 | 132 | { |
| 133 | int bank4 = BIT(get_rip_status( | |
| 133 | int bank4 = BIT(get_rip_status( | |
| 134 | 134 | int vblank = space->machine->primary_screen->vblank(); |
| 135 | 135 | |
| 136 | 136 | return (!vblank << 7) | (bank4 << 6) | (f_status & 0x2f); |
| r8581 | r8582 | |
| 179 | 179 | static READ8_HANDLER( f_status_r ) |
| 180 | 180 | { |
| 181 | 181 | int vblank = space->machine->primary_screen->vblank(); |
| 182 | UINT8 rip_status = get_rip_status( | |
| 182 | UINT8 rip_status = get_rip_status( | |
| 183 | 183 | |
| 184 | 184 | rip_status = (rip_status & 0x18) | (BIT(rip_status, 6) << 1) | BIT(rip_status, 7); |
| 185 | 185 | |
| r8581 | r8582 | |
| 554 | 554 | if (offset == 0) |
| 555 | 555 | { |
| 556 | 556 | /* TMS5220 core returns status bits in D7-D6 */ |
| 557 | running_device *tms = | |
| 557 | running_device *tms = | |
| 558 | 558 | UINT8 status = tms5220_status_r(tms, 0); |
| 559 | 559 | |
| 560 | 560 | status = ((status & 0x80) >> 5) | ((status & 0x40) >> 5) | ((status & 0x20) >> 5); |
| r8581 | r8582 | |
| 567 | 567 | /* TODO: Implement correctly using the state PROM */ |
| 568 | 568 | static WRITE8_HANDLER( tms5220_w ) |
| 569 | 569 | { |
| 570 | running_device *tms = | |
| 570 | running_device *tms = | |
| 571 | 571 | if (offset == 0) |
| 572 | 572 | { |
| 573 | 573 | tms_data = data; |
| r8581 | r8582 | |
|---|---|---|
| 257 | 257 | { |
| 258 | 258 | blockout_state *state = (blockout_state *)machine->driver_data; |
| 259 | 259 | |
| 260 | state->audiocpu = | |
| 260 | state->audiocpu = m | |
| 261 | 261 | |
| 262 | 262 | state_save_register_global(machine, state->color); |
| 263 | 263 | } |
| r8581 | r8582 | |
|---|---|---|
| 94 | 94 | /* special case to return the value written to 0xb000 */ |
| 95 | 95 | /* does it reset the chips too ? */ |
| 96 | 96 | case 0: break; |
| 97 | case 0xc4: b000_ret = ay8910_r(devtag_get_device(space->machine, "ay1"), 0); break; | |
| 98 | case 0x94: b000_ret = ay8910_r(devtag_get_device(space->machine, "ay2"), 0); break; | |
| 99 | case 0x86: b000_ret = ay8910_r(devtag_get_device(space->machine, "ay3"), 0); break; | |
| 97 | case 0xc4: b000_ret = ay8910_r(space->machine->device("ay1"), 0); break; | |
| 98 | case 0x94: b000_ret = ay8910_r(space->machine->device("ay2"), 0); break; | |
| 99 | case 0x86: b000_ret = ay8910_r(space->machine->device("ay3"), 0); break; | |
| 100 | 100 | |
| 101 | 101 | case 0x80: |
| 102 | 102 | switch(b800_prev) |
| 103 | 103 | { |
| 104 | case 0xe0: ay8910_address_w(devtag_get_device(space->machine, "ay1"),0,b000_val); break; | |
| 105 | case 0x98: ay8910_address_w(devtag_get_device(space->machine, "ay2"),0,b000_val); break; | |
| 106 | case 0x83: ay8910_address_w(devtag_get_device(space->machine, "ay3"),0,b000_val); break; | |
| 104 | case 0xe0: ay8910_address_w(space->machine->device("ay1"),0,b000_val); break; | |
| 105 | case 0x98: ay8910_address_w(space->machine->device("ay2"),0,b000_val); break; | |
| 106 | case 0x83: ay8910_address_w(space->machine->device("ay3"),0,b000_val); break; | |
| 107 | 107 | |
| 108 | case 0xa0: ay8910_data_w(devtag_get_device(space->machine, "ay1"),0,b000_val); break; | |
| 109 | case 0x88: ay8910_data_w(devtag_get_device(space->machine, "ay2"),0,b000_val); break; | |
| 110 | case 0x81: ay8910_data_w(devtag_get_device(space->machine, "ay3"),0,b000_val); break; | |
| 108 | case 0xa0: ay8910_data_w(space->machine->device("ay1"),0,b000_val); break; | |
| 109 | case 0x88: ay8910_data_w(space->machine->device("ay2"),0,b000_val); break; | |
| 110 | case 0x81: ay8910_data_w(space->machine->device("ay3"),0,b000_val); break; | |
| 111 | 111 | |
| 112 | 112 | } |
| 113 | 113 | break; |
| r8581 | r8582 | |
|---|---|---|
| 449 | 449 | |
| 450 | 450 | memory_configure_bank(machine, "bank1", 0, 2, &ROM[0x10000], 0x8000); |
| 451 | 451 | |
| 452 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 453 | state->k053936 = devtag_get_device(machine, "k053936"); | |
| 452 | state->audiocpu = machine->device("audiocpu"); | |
| 453 | state->k053936 = machine->device("k053936"); | |
| 454 | 454 | |
| 455 | 455 | MACHINE_START_CALL(f1gpb); |
| 456 | 456 | } |
| r8581 | r8582 | |
|---|---|---|
| 4975 | 4975 | // |
| 4976 | 4976 | // This is used in conjunction with the interleave increase in the |
| 4977 | 4977 | // MACHINE_DRIVER |
| 4978 | c | |
| 4978 | machine->device("mcu")->set_clock_scale( | |
| 4979 | 4979 | |
| 4980 | 4980 | DRIVER_INIT_CALL( assaultp ); |
| 4981 | 4981 | } |
| r8581 | r8582 | |
|---|---|---|
| 715 | 715 | |
| 716 | 716 | static MACHINE_START( thayers ) |
| 717 | 717 | { |
| 718 | laserdisc = | |
| 718 | laserdisc = m | |
| 719 | 719 | memset(&ssi263, 0, sizeof(ssi263)); |
| 720 | 720 | } |
| 721 | 721 |
| r8581 | r8582 | |
|---|---|---|
| 1095 | 1095 | |
| 1096 | 1096 | static VIDEO_UPDATE( merit ) |
| 1097 | 1097 | { |
| 1098 | running_device *mc6845 = | |
| 1098 | running_device *mc6845 = | |
| 1099 | 1099 | mc6845_update(mc6845, bitmap, cliprect); |
| 1100 | 1100 | |
| 1101 | 1101 | return 0; |
| r8581 | r8582 | |
|---|---|---|
| 178 | 178 | { |
| 179 | 179 | gotya_state *state = (gotya_state *)machine->driver_data; |
| 180 | 180 | |
| 181 | state->samples = | |
| 181 | state->samples = m | |
| 182 | 182 | |
| 183 | 183 | state_save_register_global(machine, state->scroll_bit_8); |
| 184 | 184 | state_save_register_global(machine, state->theme_playing); |
| r8581 | r8582 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | static MACHINE_RESET( aztarac ) |
| 38 | 38 | { |
| 39 | cpu_set_irq_callback( | |
| 39 | cpu_set_irq_callback(m | |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 |
| r8581 | r8582 | |
|---|---|---|
| 51 | 51 | static WRITE8_HANDLER( mcu_reset_w ) |
| 52 | 52 | { |
| 53 | 53 | /* the bootlegs don't have a MCU, so make sure it's there before trying to reset it */ |
| 54 | if ( | |
| 54 | if ( | |
| 55 | 55 | cputag_set_input_line(space->machine, "68705", INPUT_LINE_RESET, data ? CLEAR_LINE : ASSERT_LINE); |
| 56 | 56 | } |
| 57 | 57 | |
| r8581 | r8582 | |
| 75 | 75 | { |
| 76 | 76 | int bit = data & 1; |
| 77 | 77 | |
| 78 | cpu_interrupt_enable( | |
| 78 | cpu_interrupt_enable( | |
| 79 | 79 | if (!bit) |
| 80 | 80 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 81 | 81 | } |
| r8581 | r8582 | |
| 84 | 84 | { |
| 85 | 85 | int bit = data & 1; |
| 86 | 86 | |
| 87 | cpu_interrupt_enable( | |
| 87 | cpu_interrupt_enable( | |
| 88 | 88 | if (!bit) |
| 89 | 89 | cputag_set_input_line(space->machine, "sub", 0, CLEAR_LINE); |
| 90 | 90 | } |
| r8581 | r8582 | |
|---|---|---|
| 311 | 311 | psx_machine_init(machine); |
| 312 | 312 | |
| 313 | 313 | /* also hook up CDDA audio to the CD-ROM drive */ |
| 314 | cdda_set_cdrom( | |
| 314 | cdda_set_cdrom(m | |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | static void spu_irq(running_device *device, UINT32 data) |
| r8581 | r8582 | |
|---|---|---|
| 620 | 620 | UINT8 *MAIN = memory_region(machine, "maincpu"); |
| 621 | 621 | UINT8 *SOUND = memory_region(machine, "audiocpu"); |
| 622 | 622 | |
| 623 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 624 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 625 | state->msm = devtag_get_device(machine, "msm"); | |
| 623 | state->maincpu = machine->device("maincpu"); | |
| 624 | state->audiocpu = machine->device("audiocpu"); | |
| 625 | state->msm = machine->device("msm"); | |
| 626 | 626 | |
| 627 | 627 | memory_configure_bank(machine, "bank1", 0, 4, &MAIN[0x10000], 0x4000); |
| 628 | 628 | memory_configure_bank(machine, "bank2", 0, 2, &SOUND[0x10000], 0x4000); |
| r8581 | r8582 | |
|---|---|---|
| 407 | 407 | 1 OSC 8 Mhz |
| 408 | 408 | 1 MPU 8751 (which is read-protected) |
| 409 | 409 | |
| 410 | ||
| 411 | ||
| 412 | 410 | If you need more info or if this package doesn't |
| 413 | 411 | Work, mail me. |
| 414 | 412 | |
| 415 | Visit The ROMLiST Homepage: Http://hem.passagen.se/ogg/ | |
| 416 | ||
| 417 | 413 | ..............CaBBe!................................... |
| 418 | 414 | |
| 419 | 415 | ***************************************************************************/ |
| r8581 | r8582 | |
|---|---|---|
| 345 | 345 | { |
| 346 | 346 | oneshot_state *state = (oneshot_state *)machine->driver_data; |
| 347 | 347 | |
| 348 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 349 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 348 | state->maincpu = machine->device("maincpu"); | |
| 349 | state->audiocpu = machine->device("audiocpu"); | |
| 350 | 350 | |
| 351 | 351 | state_save_register_global(machine, state->gun_x_p1); |
| 352 | 352 | state_save_register_global(machine, state->gun_y_p1); |
| r8581 | r8582 | |
|---|---|---|
| 189 | 189 | |
| 190 | 190 | static VIDEO_UPDATE( jetwave ) |
| 191 | 191 | { |
| 192 | running_device *k001604 = | |
| 192 | running_device *k001604 = | |
| 193 | 193 | |
| 194 | 194 | bitmap_fill(bitmap, cliprect, screen->machine->pens[0]); |
| 195 | 195 | |
| r8581 | r8582 | |
| 200 | 200 | draw_7segment_led(bitmap, 3, 3, led_reg0); |
| 201 | 201 | draw_7segment_led(bitmap, 9, 3, led_reg1); |
| 202 | 202 | |
| 203 | sharc_set_flag_input( | |
| 203 | sharc_set_flag_input( | |
| 204 | 204 | return 0; |
| 205 | 205 | } |
| 206 | 206 | |
| r8581 | r8582 | |
| 224 | 224 | |
| 225 | 225 | static VIDEO_START( zr107 ) |
| 226 | 226 | { |
| 227 | running_device *k056832 = | |
| 227 | running_device *k056832 = m | |
| 228 | 228 | |
| 229 | 229 | k056832_set_layer_offs(k056832, 0, -29, -27); |
| 230 | 230 | k056832_set_layer_offs(k056832, 1, -29, -27); |
| r8581 | r8582 | |
| 241 | 241 | |
| 242 | 242 | static VIDEO_UPDATE( zr107 ) |
| 243 | 243 | { |
| 244 | running_device *k056832 = | |
| 244 | running_device *k056832 = | |
| 245 | 245 | bitmap_fill(bitmap, cliprect, screen->machine->pens[0]); |
| 246 | 246 | |
| 247 | 247 | k056832_tilemap_draw(k056832, bitmap, cliprect, 1, 0, 0); |
| r8581 | r8582 | |
| 251 | 251 | draw_7segment_led(bitmap, 3, 3, led_reg0); |
| 252 | 252 | draw_7segment_led(bitmap, 9, 3, led_reg1); |
| 253 | 253 | |
| 254 | sharc_set_flag_input( | |
| 254 | sharc_set_flag_input( | |
| 255 | 255 | return 0; |
| 256 | 256 | } |
| 257 | 257 | |
| r8581 | r8582 | |
| 379 | 379 | static MACHINE_START( zr107 ) |
| 380 | 380 | { |
| 381 | 381 | /* set conservative DRC options */ |
| 382 | ppcdrc_set_options( | |
| 382 | ppcdrc_set_options(m | |
| 383 | 383 | |
| 384 | 384 | /* configure fast RAM regions for DRC */ |
| 385 | ppcdrc_add_fastram( | |
| 385 | ppcdrc_add_fastram(m | |
| 386 | 386 | } |
| 387 | 387 | |
| 388 | 388 | static ADDRESS_MAP_START( zr107_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| r8581 | r8582 | |
| 443 | 443 | UINT16 ret = 0; |
| 444 | 444 | |
| 445 | 445 | if (ACCESSING_BITS_0_7) |
| 446 | ret |= k054539_r( | |
| 446 | ret |= k054539_r( | |
| 447 | 447 | if (ACCESSING_BITS_8_15) |
| 448 | ret |= k054539_r( | |
| 448 | ret |= k054539_r( | |
| 449 | 449 | |
| 450 | 450 | return ret; |
| 451 | 451 | } |
| r8581 | r8582 | |
| 453 | 453 | static WRITE16_HANDLER( dual539_w ) |
| 454 | 454 | { |
| 455 | 455 | if (ACCESSING_BITS_0_7) |
| 456 | k054539_w( | |
| 456 | k054539_w( | |
| 457 | 457 | if (ACCESSING_BITS_8_15) |
| 458 | k054539_w( | |
| 458 | k054539_w( | |
| 459 | 459 | } |
| 460 | 460 | |
| 461 | 461 | static ADDRESS_MAP_START( sound_memmap, ADDRESS_SPACE_PROGRAM, 16 ) |
| r8581 | r8582 | |
|---|---|---|
| 131 | 131 | Note: |
| 132 | 132 | Not all games listed above are confirmed to run on System 573. |
| 133 | 133 | * - denotes not dumped yet. If you can help with the remaining undumped System 573 games, |
| 134 | please contact http:// | |
| 134 | please contact http://guru.mameworld.inf | |
| 135 | 135 | |
| 136 | 136 | |
| 137 | 137 | Main PCB Layout |
| r8581 | r8582 | |
| 1626 | 1626 | if( inserted_cdrom != new_cdrom ) |
| 1627 | 1627 | { |
| 1628 | 1628 | inserted_cdrom = new_cdrom; |
| 1629 | cdda_set_cdrom( | |
| 1629 | cdda_set_cdrom(m | |
| 1630 | 1630 | } |
| 1631 | 1631 | } |
| 1632 | 1632 | |
| r8581 | r8582 | |
| 1661 | 1661 | |
| 1662 | 1662 | static READ32_HANDLER( ge765pwbba_r ) |
| 1663 | 1663 | { |
| 1664 | running_device *upd4701 = | |
| 1664 | running_device *upd4701 = | |
| 1665 | 1665 | UINT32 data = 0; |
| 1666 | 1666 | |
| 1667 | 1667 | switch (offset) |
| r8581 | r8582 | |
| 1699 | 1699 | |
| 1700 | 1700 | static WRITE32_HANDLER( ge765pwbba_w ) |
| 1701 | 1701 | { |
| 1702 | running_device *upd4701 = | |
| 1702 | running_device *upd4701 = | |
| 1703 | 1703 | switch (offset) |
| 1704 | 1704 | { |
| 1705 | 1705 | case 0x04: |
| r8581 | r8582 | |
|---|---|---|
| 120 | 120 | cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE); |
| 121 | 121 | |
| 122 | 122 | /* update the DAC state */ |
| 123 | dac_data_w( | |
| 123 | dac_data_w(m | |
| 124 | 124 | |
| 125 | 125 | /* on the VBLANK, read the pot and schedule an interrupt time for it */ |
| 126 | 126 | if (scanline == machine->primary_screen->visible_area().max_y + 1) |
| r8581 | r8582 | |
|---|---|---|
| 311 | 311 | |
| 312 | 312 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0x10000], 0x2000); |
| 313 | 313 | |
| 314 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 315 | state->k007342 = devtag_get_device(machine, "k007342"); | |
| 316 | state->k007420 = devtag_get_device(machine, "k007420"); | |
| 314 | state->audiocpu = machine->device("audiocpu"); | |
| 315 | state->k007342 = machine->device("k007342"); | |
| 316 | state->k007420 = machine->device("k007420"); | |
| 317 | 317 | |
| 318 | 318 | state_save_register_global(machine, state->spritebank); |
| 319 | 319 | state_save_register_global_array(machine, state->layer_colorbase); |
| r8581 | r8582 | |
|---|---|---|
| 256 | 256 | { |
| 257 | 257 | pbaction_state *state = (pbaction_state *)machine->driver_data; |
| 258 | 258 | |
| 259 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 260 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 259 | state->maincpu = machine->device("maincpu"); | |
| 260 | state->audiocpu = machine->device("audiocpu"); | |
| 261 | 261 | |
| 262 | 262 | state_save_register_global(machine, state->scroll); |
| 263 | 263 | } |
| r8581 | r8582 | |
|---|---|---|
| 298 | 298 | { |
| 299 | 299 | overdriv_state *state = (overdriv_state *)machine->driver_data; |
| 300 | 300 | |
| 301 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 302 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 303 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 304 | state->k051316_1 = devtag_get_device(machine, "k051316_1"); | |
| 305 | state->k051316_2 = devtag_get_device(machine, "k051316_2"); | |
| 306 | state->k053260_1 = devtag_get_device(machine, "k053260_1"); | |
| 307 | state->k053260_2 = devtag_get_device(machine, "k053260_2"); | |
| 308 | state->k053246 = devtag_get_device(machine, "k053246"); | |
| 309 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 301 | state->maincpu = machine->device("maincpu"); | |
| 302 | state->audiocpu = machine->device("audiocpu"); | |
| 303 | state->subcpu = machine->device("sub"); | |
| 304 | state->k051316_1 = machine->device("k051316_1"); | |
| 305 | state->k051316_2 = machine->device("k051316_2"); | |
| 306 | state->k053260_1 = machine->device("k053260_1"); | |
| 307 | state->k053260_2 = machine->device("k053260_2"); | |
| 308 | state->k053246 = machine->device("k053246"); | |
| 309 | state->k053251 = machine->device("k053251"); | |
| 310 | 310 | |
| 311 | 311 | state_save_register_global(machine, state->cpuB_ctrl); |
| 312 | 312 | state_save_register_global(machine, state->sprite_colorbase); |
| r8581 | r8582 | |
|---|---|---|
| 100 | 100 | case 0x1c: return input_port_read(space->machine,"BET"); |
| 101 | 101 | case 0x1e: return 0xff; //ticket motor |
| 102 | 102 | case 0x20: return 0xff; //hopper motor |
| 103 | case 0x2c: return eeprom_read_bit(devtag_get_device(space->machine,"eeprom")); | |
| 104 | case 0x2e: return eeprom_read_bit(devtag_get_device(space->machine,"eeprom")); | |
| 103 | case 0x2c: return eeprom_read_bit(space->machine->device("eeprom")); | |
| 104 | case 0x2e: return eeprom_read_bit(space->machine->device("eeprom")); | |
| 105 | 105 | // default: printf("R %02x\n",offset*2); break; |
| 106 | 106 | } |
| 107 | 107 | |
| r8581 | r8582 | |
| 128 | 128 | case 0x4a: /* ---- ---x Ticket motor */break; |
| 129 | 129 | case 0x4c: /* ---- ---x Hopper motor */break; |
| 130 | 130 | case 0x4e: map_vreg = data & 1; break; |
| 131 | case 0x50: eeprom_set_cs_line(devtag_get_device(space->machine,"eeprom"), (data & 1) ? CLEAR_LINE : ASSERT_LINE ); break; | |
| 132 | case 0x52: eeprom_set_clock_line(devtag_get_device(space->machine,"eeprom"), (data & 1) ? ASSERT_LINE : CLEAR_LINE ); break; | |
| 133 | case 0x54: eeprom_write_bit(devtag_get_device(space->machine,"eeprom"), data & 1); break; | |
| 134 | // case 0x5a: eeprom_set_cs_line(devtag_get_device(space->machine,"eeprom"), (data & 1) ? CLEAR_LINE : ASSERT_LINE ); break; | |
| 135 | // case 0x5c: eeprom_set_cs_line(devtag_get_device(space->machine,"eeprom"), (data & 1) ? CLEAR_LINE : ASSERT_LINE ); break; | |
| 131 | case 0x50: eeprom_set_cs_line(space->machine->device("eeprom"), (data & 1) ? CLEAR_LINE : ASSERT_LINE ); break; | |
| 132 | case 0x52: eeprom_set_clock_line(space->machine->device("eeprom"), (data & 1) ? ASSERT_LINE : CLEAR_LINE ); break; | |
| 133 | case 0x54: eeprom_write_bit(space->machine->device("eeprom"), data & 1); break; | |
| 134 | // case 0x5a: eeprom_set_cs_line(space->machine->device("eeprom"), (data & 1) ? CLEAR_LINE : ASSERT_LINE ); break; | |
| 135 | // case 0x5c: eeprom_set_cs_line(space->machine->device("eeprom"), (data & 1) ? CLEAR_LINE : ASSERT_LINE ); break; | |
| 136 | 136 | case 0x60: break; |
| 137 | 137 | // default: printf("[%02x] <- %02x W\n",offset*2,data); break; |
| 138 | 138 | } |
| r8581 | r8582 | |
| 141 | 141 | if(offset*2 == 0x54) |
| 142 | 142 | { |
| 143 | 143 | printf("Write bit %02x\n",data); |
| 144 | eeprom_write_bit( | |
| 144 | eeprom_write_bit( | |
| 145 | 145 | } |
| 146 | 146 | if(offset*2 == 0x52) |
| 147 | 147 | { |
| 148 | 148 | printf("Clock bit %02x\n",data); |
| 149 | eeprom_set_clock_line( | |
| 149 | eeprom_set_clock_line( | |
| 150 | 150 | } |
| 151 | 151 | if(offset*2 == 0x50) |
| 152 | 152 | { |
| 153 | 153 | printf("chip select bit %02x\n",data); |
| 154 | eeprom_set_cs_line( | |
| 154 | eeprom_set_cs_line( | |
| 155 | 155 | } |
| 156 | 156 | #endif |
| 157 | 157 | } |
| r8581 | r8582 | |
|---|---|---|
| 55 | 55 | |
| 56 | 56 | static READ8_HANDLER( spcforce_SN76496_select_r ) |
| 57 | 57 | { |
| 58 | if (~spcforce_SN76496_select & 0x40) return sn76496_ready_r(devtag_get_device(space->machine, "sn1"), 0 ); | |
| 59 | if (~spcforce_SN76496_select & 0x20) return sn76496_ready_r(devtag_get_device(space->machine, "sn2"), 0 ); | |
| 60 | if (~spcforce_SN76496_select & 0x10) return sn76496_ready_r(devtag_get_device(space->machine, "sn3"), 0 ); | |
| 58 | if (~spcforce_SN76496_select & 0x40) return sn76496_ready_r(space->machine->device("sn1")); | |
| 59 | if (~spcforce_SN76496_select & 0x20) return sn76496_ready_r(space->machine->device("sn2")); | |
| 60 | if (~spcforce_SN76496_select & 0x10) return sn76496_ready_r(space->machine->device("sn3")); | |
| 61 | 61 | |
| 62 | 62 | return 0; |
| 63 | 63 | } |
| r8581 | r8582 | |
| 66 | 66 | { |
| 67 | 67 | spcforce_SN76496_select = data; |
| 68 | 68 | |
| 69 | if (~data & 0x40) sn76496_w(devtag_get_device(space->machine, "sn1"), 0, spcforce_SN76496_latch); | |
| 70 | if (~data & 0x20) sn76496_w(devtag_get_device(space->machine, "sn2"), 0, spcforce_SN76496_latch); | |
| 71 | if (~data & 0x10) sn76496_w(devtag_get_device(space->machine, "sn3"), 0, spcforce_SN76496_latch); | |
| 69 | if (~data & 0x40) sn76496_w(space->machine->device("sn1"), 0, spcforce_SN76496_latch); | |
| 70 | if (~data & 0x20) sn76496_w(space->machine->device("sn2"), 0, spcforce_SN76496_latch); | |
| 71 | if (~data & 0x10) sn76496_w(space->machine->device("sn3"), 0, spcforce_SN76496_latch); | |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | static READ8_HANDLER( spcforce_t0_r ) |
| r8581 | r8582 | |
|---|---|---|
| 910 | 910 | ROM_REGION( 0x04000, "user1", 0 ) /* music data and samples - not sure where it's mapped */ |
| 911 | 911 | ROM_LOAD( "aa0-14.4j", 0x0000, 0x2000, CRC(436fe91f) SHA1(feb29501090c6db911e13ce6e9935ba004b0ce7e) ) |
| 912 | 912 | |
| 913 | // there are other undumped chips on this, not sure how many | |
| 914 | // not hooked up yet | |
| 915 | ROM_REGION( 0x400, "mcu", 0 ) | |
| 916 | ROM_LOAD( "aa003.bin", 0x0000, 0x400, CRC(68b399d9) SHA1(053482d12c2b714c23fc80ad0589a2afd258a5a6) ) | |
| 917 | ||
| 913 | 918 | ROM_REGION( 0x4000, "gfx1", 0 ) |
| 914 | 919 | ROM_LOAD( "aa0-10.9n", 0x0000, 0x2000, CRC(207c4f42) SHA1(4cf2922d55cfc9e68cc07c3252ea3b5619b8aca5) ) /* tiles */ |
| 915 | 920 | ROM_LOAD( "aa1-11.9p", 0x2000, 0x1000, CRC(c130464a) SHA1(9d23577b8aaaffeefff3d8f93668d1b2bd0ba3d9) ) |
| r8581 | r8582 | |
|---|---|---|
| 1012 | 1012 | { |
| 1013 | 1013 | nmg5_state *state = (nmg5_state *)machine->driver_data; |
| 1014 | 1014 | |
| 1015 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1016 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 1015 | state->maincpu = machine->device("maincpu"); | |
| 1016 | state->soundcpu = machine->device("soundcpu"); | |
| 1017 | 1017 | |
| 1018 | 1018 | state_save_register_global(machine, state->gfx_bank); |
| 1019 | 1019 | state_save_register_global(machine, state->priority_reg); |
| r8581 | r8582 | |
|---|---|---|
| 317 | 317 | memory_configure_bank(machine, "bank4", 0, 8, &ROM[0x10000], 0x4000); |
| 318 | 318 | memory_set_bank(machine, "bank4", 0); |
| 319 | 319 | |
| 320 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 321 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 322 | state->k053246 = devtag_get_device(machine, "k053246"); | |
| 323 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 324 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 325 | state->k054539 = devtag_get_device(machine, "k054539"); | |
| 326 | state->lscreen = devtag_get_device(machine, "lscreen"); | |
| 327 | state->rscreen = devtag_get_device(machine, "rscreen"); | |
| 320 | state->maincpu = machine->device("maincpu"); | |
| 321 | state->audiocpu = machine->device("audiocpu"); | |
| 322 | state->k053246 = machine->device("k053246"); | |
| 323 | state->k053251 = machine->device("k053251"); | |
| 324 | state->k052109 = machine->device("k052109"); | |
| 325 | state->k054539 = machine->device("k054539"); | |
| 326 | state->lscreen = machine->device("lscreen"); | |
| 327 | state->rscreen = machine->device("rscreen"); | |
| 328 | 328 | |
| 329 | 329 | state_save_register_global(machine, state->sound_curbank); |
| 330 | 330 | state_save_register_global(machine, state->sprite_colorbase); |
| r8581 | r8582 | |
|---|---|---|
| 470 | 470 | ROM_LOAD( "tma1-c-4p.4p", 0x0000, 0x0200, CRC(afc9bd41) SHA1(90b739c4c7f24a88b6ac5ca29b06c032906a2801) ) |
| 471 | 471 | |
| 472 | 472 | ROM_REGION( 0x0020, "unk_proms", 0 ) /* is this the color prom? */ |
| 473 | ROM_LOAD( "tma1-c-5p.5p", 0x0000, 0x0020, CRC(58d86098) SHA1(d654995004b9052b12d3b682a2b39530e70030fc) ) /* BPROM was a TBP18S030N read as 82S123, unkown use */ | |
| 473 | ROM_LOAD( "tma1-c-5p.5p", 0x0000, 0x0020, CRC(58d86098) SHA1(d654995004b9052b12d3b682a2b39530e70030fc) ) /* BPROM was a TBP18S030N read as 82S123, unknown use */ | |
| 474 | 474 | ROM_END |
| 475 | 475 | |
| 476 | 476 | ROM_START( marioj ) |
| r8581 | r8582 | |
| 504 | 504 | ROM_LOAD( "tma1-c-4p.4p", 0x0000, 0x0200, CRC(afc9bd41) SHA1(90b739c4c7f24a88b6ac5ca29b06c032906a2801) ) |
| 505 | 505 | |
| 506 | 506 | ROM_REGION( 0x0020, "unk_proms", 0 ) /* is this the color prom? */ |
| 507 | ROM_LOAD( "tma1-c-5p.5p", 0x0000, 0x0020, CRC(58d86098) SHA1(d654995004b9052b12d3b682a2b39530e70030fc) ) /* BPROM was a TBP18S030N read as 82S123, unkown use */ | |
| 507 | ROM_LOAD( "tma1-c-5p.5p", 0x0000, 0x0020, CRC(58d86098) SHA1(d654995004b9052b12d3b682a2b39530e70030fc) ) /* BPROM was a TBP18S030N read as 82S123, unknown use */ | |
| 508 | 508 | ROM_END |
| 509 | 509 | |
| 510 | 510 | ROM_START( masao ) |
| r8581 | r8582 | |
|---|---|---|
| 509 | 509 | { |
| 510 | 510 | atarifb_state *state = (atarifb_state *)machine->driver_data; |
| 511 | 511 | |
| 512 | state->maincpu = | |
| 512 | state->maincpu = m | |
| 513 | 513 | |
| 514 | 514 | state_save_register_global(machine, state->CTRLD); |
| 515 | 515 | state_save_register_global(machine, state->sign_x_1); |
| r8581 | r8582 | |
|---|---|---|
| 587 | 587 | |
| 588 | 588 | machine->generic.paletteram.u8 = auto_alloc_array(machine, UINT8, 0x3800 + 0x02); |
| 589 | 589 | |
| 590 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 591 | state->audiocpu = devtag_get_device(machine, "soundcpu"); | |
| 592 | state->k054539 = devtag_get_device(machine, "k054539"); | |
| 593 | state->k053244 = devtag_get_device(machine, "k053244"); | |
| 594 | state->k056832 = devtag_get_device(machine, "k056832"); | |
| 595 | state->k054000 = devtag_get_device(machine, "k054000"); | |
| 590 | state->maincpu = machine->device("maincpu"); | |
| 591 | state->audiocpu = machine->device("soundcpu"); | |
| 592 | state->k054539 = machine->device("k054539"); | |
| 593 | state->k053244 = machine->device("k053244"); | |
| 594 | state->k056832 = machine->device("k056832"); | |
| 595 | state->k054000 = machine->device("k054000"); | |
| 596 | 596 | |
| 597 | 597 | state_save_register_global(machine, state->cur_control2); |
| 598 | 598 | state_save_register_global(machine, state->sprite_colorbase); |
| r8581 | r8582 | |
|---|---|---|
| 477 | 477 | { |
| 478 | 478 | exprraid_state *state = (exprraid_state *)machine->driver_data; |
| 479 | 479 | |
| 480 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 481 | state->slave = devtag_get_device(machine, "slave"); | |
| 480 | state->maincpu = machine->device("maincpu"); | |
| 481 | state->slave = machine->device("slave"); | |
| 482 | 482 | |
| 483 | 483 | state_save_register_global_array(machine, state->bg_index); |
| 484 | 484 | } |
| r8581 | r8582 | |
|---|---|---|
| 429 | 429 | { |
| 430 | 430 | _2mindril_state *state = (_2mindril_state *)machine->driver_data; |
| 431 | 431 | |
| 432 | state->maincpu = | |
| 432 | state->maincpu = m | |
| 433 | 433 | |
| 434 | 434 | state_save_register_global(machine, state->defender_sensor); |
| 435 | 435 | state_save_register_global(machine, state->shutter_sensor); |
| r8581 | r8582 | |
|---|---|---|
| 535 | 535 | |
| 536 | 536 | static MACHINE_START(taitowlf) |
| 537 | 537 | { |
| 538 | cpu_set_irq_callback( | |
| 538 | cpu_set_irq_callback(m | |
| 539 | 539 | |
| 540 | taitowlf_devices.pit8254 = devtag_get_device( machine, "pit8254" ); | |
| 541 | taitowlf_devices.pic8259_1 = devtag_get_device( machine, "pic8259_1" ); | |
| 542 | taitowlf_devices.pic8259_2 = devtag_get_device( machine, "pic8259_2" ); | |
| 543 | taitowlf_devices.dma8237_1 = devtag_get_device( machine, "dma8237_1" ); | |
| 544 | taitowlf_devices.dma8237_2 = devtag_get_device( machine, "dma8237_2" ); | |
| 540 | taitowlf_devices.pit8254 = machine->device( "pit8254" ); | |
| 541 | taitowlf_devices.pic8259_1 = machine->device( "pic8259_1" ); | |
| 542 | taitowlf_devices.pic8259_2 = machine->device( "pic8259_2" ); | |
| 543 | taitowlf_devices.dma8237_1 = machine->device( "dma8237_1" ); | |
| 544 | taitowlf_devices.dma8237_2 = machine->device( "dma8237_2" ); | |
| 545 | 545 | } |
| 546 | 546 | |
| 547 | 547 | static MACHINE_RESET(taitowlf) |
| r8581 | r8582 | |
|---|---|---|
| 347 | 347 | { |
| 348 | 348 | devtag_reset(machine, "card"); |
| 349 | 349 | locked = 0x1ff; |
| 350 | ide_set_gnet_readlock ( | |
| 350 | ide_set_gnet_readlock (m | |
| 351 | 351 | } |
| 352 | 352 | break; |
| 353 | 353 | |
| r8581 | r8582 | |
| 365 | 365 | static WRITE32_HANDLER(rf5c296_io_w) |
| 366 | 366 | { |
| 367 | 367 | if(offset < 2) { |
| 368 | ide_controller32_pcmcia_w( | |
| 368 | ide_controller32_pcmcia_w( | |
| 369 | 369 | return; |
| 370 | 370 | } |
| 371 | 371 | |
| r8581 | r8582 | |
| 380 | 380 | static READ32_HANDLER(rf5c296_io_r) |
| 381 | 381 | { |
| 382 | 382 | if(offset < 2) |
| 383 | return ide_controller32_pcmcia_r( | |
| 383 | return ide_controller32_pcmcia_r( | |
| 384 | 384 | |
| 385 | 385 | offset *= 4; |
| 386 | 386 | |
| r8581 | r8582 | |
| 430 | 430 | else |
| 431 | 431 | locked |= 1 << pos; |
| 432 | 432 | if (!locked) { |
| 433 | ide_set_gnet_readlock ( | |
| 433 | ide_set_gnet_readlock ( | |
| 434 | 434 | } |
| 435 | 435 | } |
| 436 | 436 | } |
| r8581 | r8582 | |
| 548 | 548 | // selection too, but they're always 0. |
| 549 | 549 | |
| 550 | 550 | UINT32 p = control; |
| 551 | running_device *mb3773 = | |
| 551 | running_device *mb3773 = | |
| 552 | 552 | |
| 553 | 553 | COMBINE_DATA(&control); |
| 554 | 554 | |
| 555 | mb3773_set_ck(mb3773, | |
| 555 | mb3773_set_ck(mb3773, | |
| 556 | 556 | |
| 557 | 557 | #if 0 |
| 558 | 558 | if((p ^ control) & ~0x20) |
| r8581 | r8582 | |
| 852 | 852 | control = 0; |
| 853 | 853 | psx_machine_init(machine); |
| 854 | 854 | devtag_reset(machine, "card"); |
| 855 | ide_set_gnet_readlock( | |
| 855 | ide_set_gnet_readlock(m | |
| 856 | 856 | |
| 857 | 857 | // halt sound CPU since it has no valid program at start |
| 858 | 858 | cputag_set_input_line(machine, "mn10200",INPUT_LINE_RESET,ASSERT_LINE); /* MCU */ |
| r8581 | r8582 | |
|---|---|---|
| 114 | 114 | |
| 115 | 115 | if (ACCESSING_BITS_0_7) |
| 116 | 116 | { |
| 117 | running_device *device = | |
| 117 | running_device *device = | |
| 118 | 118 | eeprom_set_clock_line(device, (data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 119 | 119 | eeprom_write_bit(device, data & 0x40); |
| 120 | 120 | eeprom_set_cs_line(device, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| r8581 | r8582 | |
|---|---|---|
| 1508 | 1508 | // state->pandata[offset] = data; |
| 1509 | 1509 | // popmessage(" pan %02x %02x %02x %02x", state->pandata[0], state->pandata[1], state->pandata[2], state->pandata[3] ); |
| 1510 | 1510 | |
| 1511 | flt_volume_set_volume( | |
| 1511 | flt_volume_set_volume( | |
| 1512 | 1512 | } |
| 1513 | 1513 | |
| 1514 | 1514 | static WRITE16_HANDLER( spacegun_pancontrol ) |
| r8581 | r8582 | |
| 2968 | 2968 | { |
| 2969 | 2969 | taitoz_state *state = (taitoz_state *)machine->driver_data; |
| 2970 | 2970 | |
| 2971 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 2972 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 2973 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 2974 | state->eeprom = devtag_get_device(machine, "eeprom"); | |
| 2975 | state->tc0100scn = devtag_get_device(machine, "tc0100scn"); | |
| 2976 | state->tc0150rod = devtag_get_device(machine, "tc0150rod"); | |
| 2977 | state->tc0480scp = devtag_get_device(machine, "tc0480scp"); | |
| 2978 | state->tc0220ioc = devtag_get_device(machine, "tc0220ioc"); | |
| 2979 | state->tc0140syt = devtag_get_device(machine, "tc0140syt"); | |
| 2971 | state->maincpu = machine->device("maincpu"); | |
| 2972 | state->subcpu = machine->device("sub"); | |
| 2973 | state->audiocpu = machine->device("audiocpu"); | |
| 2974 | state->eeprom = machine->device("eeprom"); | |
| 2975 | state->tc0100scn = machine->device("tc0100scn"); | |
| 2976 | state->tc0150rod = machine->device("tc0150rod"); | |
| 2977 | state->tc0480scp = machine->device("tc0480scp"); | |
| 2978 | state->tc0220ioc = machine->device("tc0220ioc"); | |
| 2979 | state->tc0140syt = machine->device("tc0140syt"); | |
| 2980 | 2980 | |
| 2981 | 2981 | state_save_register_global(machine, state->cpua_ctrl); |
| 2982 | 2982 |
| r8581 | r8582 | |
|---|---|---|
| 455 | 455 | { |
| 456 | 456 | buggychl_state *state = (buggychl_state *)machine->driver_data; |
| 457 | 457 | |
| 458 | state->audiocpu = | |
| 458 | state->audiocpu = m | |
| 459 | 459 | |
| 460 | 460 | /* video */ |
| 461 | 461 | state_save_register_global(machine, state->bg2_textbank); |
| r8581 | r8582 | |
| 467 | 467 | state_save_register_global(machine, state->snd_ctrl1); |
| 468 | 468 | |
| 469 | 469 | #ifdef USE_MCU |
| 470 | state->mcu = | |
| 470 | state->mcu = m | |
| 471 | 471 | |
| 472 | 472 | /* mcu */ |
| 473 | 473 | state_save_register_global(machine, state->from_main); |
| r8581 | r8582 | |
|---|---|---|
| 333 | 333 | static WRITE8_HANDLER( sprite_dma_w ) |
| 334 | 334 | { |
| 335 | 335 | int source = ( data & 7 ); |
| 336 | ppu2c0x_spriteram_dma( space, | |
| 336 | ppu2c0x_spriteram_dma( space, | |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | static NVRAM_HANDLER( playch10 ) |
| r8581 | r8582 | |
|---|---|---|
| 371 | 371 | jaguar_dsp_resume(machine); |
| 372 | 372 | |
| 373 | 373 | /* halt the CPUs */ |
| 374 | jaguargpu_ctrl_w(devtag_get_device(machine, "gpu"), G_CTRL, 0, 0xffffffff); | |
| 375 | jaguardsp_ctrl_w(devtag_get_device(machine, "audiocpu"), D_CTRL, 0, 0xffffffff); | |
| 374 | jaguargpu_ctrl_w(machine->device("gpu"), G_CTRL, 0, 0xffffffff); | |
| 375 | jaguardsp_ctrl_w(machine->device("audiocpu"), D_CTRL, 0, 0xffffffff); | |
| 376 | 376 | |
| 377 | 377 | /* set blitter idle flag */ |
| 378 | 378 | blitter_status = 1; |
| r8581 | r8582 | |
| 418 | 418 | jaguar_dsp_resume(space->machine); |
| 419 | 419 | |
| 420 | 420 | /* halt the CPUs */ |
| 421 | jaguargpu_ctrl_w(devtag_get_device(space->machine, "gpu"), G_CTRL, 0, 0xffffffff); | |
| 422 | jaguardsp_ctrl_w(devtag_get_device(space->machine, "audiocpu"), D_CTRL, 0, 0xffffffff); | |
| 421 | jaguargpu_ctrl_w(space->machine->device("gpu"), G_CTRL, 0, 0xffffffff); | |
| 422 | jaguardsp_ctrl_w(space->machine->device("audiocpu"), D_CTRL, 0, 0xffffffff); | |
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | /* adjust banking */ |
| r8581 | r8582 | |
| 442 | 442 | |
| 443 | 443 | static READ32_HANDLER( gpuctrl_r ) |
| 444 | 444 | { |
| 445 | return jaguargpu_ctrl_r( | |
| 445 | return jaguargpu_ctrl_r( | |
| 446 | 446 | } |
| 447 | 447 | |
| 448 | 448 | |
| 449 | 449 | static WRITE32_HANDLER( gpuctrl_w ) |
| 450 | 450 | { |
| 451 | jaguargpu_ctrl_w( | |
| 451 | jaguargpu_ctrl_w( | |
| 452 | 452 | } |
| 453 | 453 | |
| 454 | 454 | |
| r8581 | r8582 | |
| 461 | 461 | |
| 462 | 462 | static READ32_HANDLER( dspctrl_r ) |
| 463 | 463 | { |
| 464 | return jaguardsp_ctrl_r( | |
| 464 | return jaguardsp_ctrl_r( | |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | 467 | |
| 468 | 468 | static WRITE32_HANDLER( dspctrl_w ) |
| 469 | 469 | { |
| 470 | jaguardsp_ctrl_w( | |
| 470 | jaguardsp_ctrl_w( | |
| 471 | 471 | } |
| 472 | 472 | |
| 473 | 473 |
| r8581 | r8582 | |
|---|---|---|
| 587 | 587 | |
| 588 | 588 | static WRITE8_HANDLER( superpac_latch_w ) |
| 589 | 589 | { |
| 590 | running_device *namcoio_1 = devtag_get_device(space->machine, "namcoio_1"); | |
| 591 | running_device *namcoio_2 = devtag_get_device(space->machine, "namcoio_2"); | |
| 590 | running_device *namcoio_1 = space->machine->device("namcoio_1"); | |
| 591 | running_device *namcoio_2 = space->machine->device("namcoio_2"); | |
| 592 | 592 | int bit = offset & 1; |
| 593 | 593 | |
| 594 | 594 | switch (offset & 0x0e) |
| 595 | 595 | { |
| 596 | 596 | case 0x00: /* INT ON 2 */ |
| 597 | cpu_interrupt_enable( | |
| 597 | cpu_interrupt_enable( | |
| 598 | 598 | if (!bit) |
| 599 | 599 | cputag_set_input_line(space->machine, "sub", 0, CLEAR_LINE); |
| 600 | 600 | break; |
| 601 | 601 | |
| 602 | 602 | case 0x02: /* INT ON */ |
| 603 | cpu_interrupt_enable( | |
| 603 | cpu_interrupt_enable( | |
| 604 | 604 | if (!bit) |
| 605 | 605 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 606 | 606 | break; |
| r8581 | r8582 | |
| 609 | 609 | break; |
| 610 | 610 | |
| 611 | 611 | case 0x06: /* SOUND ON */ |
| 612 | mappy_sound_enable( | |
| 612 | mappy_sound_enable( | |
| 613 | 613 | break; |
| 614 | 614 | |
| 615 | 615 | case 0x08: /* 4 RESET */ |
| r8581 | r8582 | |
| 631 | 631 | |
| 632 | 632 | static WRITE8_HANDLER( phozon_latch_w ) |
| 633 | 633 | { |
| 634 | running_device *namcoio_1 = devtag_get_device(space->machine, "namcoio_1"); | |
| 635 | running_device *namcoio_2 = devtag_get_device(space->machine, "namcoio_2"); | |
| 634 | running_device *namcoio_1 = space->machine->device("namcoio_1"); | |
| 635 | running_device *namcoio_2 = space->machine->device("namcoio_2"); | |
| 636 | 636 | int bit = offset & 1; |
| 637 | 637 | |
| 638 | 638 | switch (offset & 0x0e) |
| 639 | 639 | { |
| 640 | 640 | case 0x00: |
| 641 | cpu_interrupt_enable( | |
| 641 | cpu_interrupt_enable( | |
| 642 | 642 | if (!bit) |
| 643 | 643 | cputag_set_input_line(space->machine, "sub", 0, CLEAR_LINE); |
| 644 | 644 | break; |
| 645 | 645 | |
| 646 | 646 | case 0x02: |
| 647 | cpu_interrupt_enable( | |
| 647 | cpu_interrupt_enable( | |
| 648 | 648 | if (!bit) |
| 649 | 649 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 650 | 650 | break; |
| 651 | 651 | |
| 652 | 652 | case 0x04: |
| 653 | cpu_interrupt_enable( | |
| 653 | cpu_interrupt_enable( | |
| 654 | 654 | if (!bit) |
| 655 | 655 | cputag_set_input_line(space->machine, "sub2", 0, CLEAR_LINE); |
| 656 | 656 | break; |
| 657 | 657 | |
| 658 | 658 | case 0x06: |
| 659 | mappy_sound_enable( | |
| 659 | mappy_sound_enable( | |
| 660 | 660 | break; |
| 661 | 661 | |
| 662 | 662 | case 0x08: |
| r8581 | r8582 | |
| 679 | 679 | |
| 680 | 680 | static WRITE8_HANDLER( mappy_latch_w ) |
| 681 | 681 | { |
| 682 | running_device *namcoio_1 = devtag_get_device(space->machine, "namcoio_1"); | |
| 683 | running_device *namcoio_2 = devtag_get_device(space->machine, "namcoio_2"); | |
| 682 | running_device *namcoio_1 = space->machine->device("namcoio_1"); | |
| 683 | running_device *namcoio_2 = space->machine->device("namcoio_2"); | |
| 684 | 684 | int bit = offset & 1; |
| 685 | 685 | |
| 686 | 686 | switch (offset & 0x0e) |
| 687 | 687 | { |
| 688 | 688 | case 0x00: /* INT ON 2 */ |
| 689 | cpu_interrupt_enable( | |
| 689 | cpu_interrupt_enable( | |
| 690 | 690 | if (!bit) |
| 691 | 691 | cputag_set_input_line(space->machine, "sub", 0, CLEAR_LINE); |
| 692 | 692 | break; |
| 693 | 693 | |
| 694 | 694 | case 0x02: /* INT ON */ |
| 695 | cpu_interrupt_enable( | |
| 695 | cpu_interrupt_enable( | |
| 696 | 696 | if (!bit) |
| 697 | 697 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 698 | 698 | break; |
| r8581 | r8582 | |
| 702 | 702 | break; |
| 703 | 703 | |
| 704 | 704 | case 0x06: /* SOUND ON */ |
| 705 | mappy_sound_enable( | |
| 705 | mappy_sound_enable( | |
| 706 | 706 | break; |
| 707 | 707 | |
| 708 | 708 | case 0x08: /* 4 RESET */ |
| r8581 | r8582 | |
| 757 | 757 | |
| 758 | 758 | static TIMER_CALLBACK( superpac_io_run ) |
| 759 | 759 | { |
| 760 | running_device *io56xx_1 = devtag_get_device(machine, "namcoio_1"); | |
| 761 | running_device *io56xx_2 = devtag_get_device(machine, "namcoio_2"); | |
| 760 | running_device *io56xx_1 = machine->device("namcoio_1"); | |
| 761 | running_device *io56xx_2 = machine->device("namcoio_2"); | |
| 762 | 762 | |
| 763 | 763 | switch (param) |
| 764 | 764 | { |
| r8581 | r8582 | |
| 773 | 773 | |
| 774 | 774 | static INTERRUPT_GEN( superpac_interrupt_1 ) |
| 775 | 775 | { |
| 776 | running_device *namcoio_1 = devtag_get_device(device->machine, "namcoio_1"); | |
| 777 | running_device *namcoio_2 = devtag_get_device(device->machine, "namcoio_2"); | |
| 776 | running_device *namcoio_1 = device->machine->device("namcoio_1"); | |
| 777 | running_device *namcoio_2 = device->machine->device("namcoio_2"); | |
| 778 | 778 | |
| 779 | 779 | irq0_line_assert(device); // this also checks if irq is enabled - IMPORTANT! |
| 780 | 780 | // so don't replace with cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE); |
| r8581 | r8582 | |
| 788 | 788 | |
| 789 | 789 | static TIMER_CALLBACK( pacnpal_io_run ) |
| 790 | 790 | { |
| 791 | running_device *io56xx = devtag_get_device(machine, "namcoio_1"); | |
| 792 | running_device *io59xx = devtag_get_device(machine, "namcoio_2"); | |
| 791 | running_device *io56xx = machine->device("namcoio_1"); | |
| 792 | running_device *io59xx = machine->device("namcoio_2"); | |
| 793 | 793 | |
| 794 | 794 | switch (param) |
| 795 | 795 | { |
| r8581 | r8582 | |
| 804 | 804 | |
| 805 | 805 | static INTERRUPT_GEN( pacnpal_interrupt_1 ) |
| 806 | 806 | { |
| 807 | running_device *namcoio_1 = devtag_get_device(device->machine, "namcoio_1"); | |
| 808 | running_device *namcoio_2 = devtag_get_device(device->machine, "namcoio_2"); | |
| 807 | running_device *namcoio_1 = device->machine->device("namcoio_1"); | |
| 808 | running_device *namcoio_2 = device->machine->device("namcoio_2"); | |
| 809 | 809 | |
| 810 | 810 | irq0_line_assert(device); // this also checks if irq is enabled - IMPORTANT! |
| 811 | 811 | // so don't replace with cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE); |
| r8581 | r8582 | |
| 819 | 819 | |
| 820 | 820 | static TIMER_CALLBACK( phozon_io_run ) |
| 821 | 821 | { |
| 822 | running_device *io58xx = devtag_get_device(machine, "namcoio_1"); | |
| 823 | running_device *io56xx = devtag_get_device(machine, "namcoio_2"); | |
| 822 | running_device *io58xx = machine->device("namcoio_1"); | |
| 823 | running_device *io56xx = machine->device("namcoio_2"); | |
| 824 | 824 | |
| 825 | 825 | switch (param) |
| 826 | 826 | { |
| r8581 | r8582 | |
| 835 | 835 | |
| 836 | 836 | static INTERRUPT_GEN( phozon_interrupt_1 ) |
| 837 | 837 | { |
| 838 | running_device *namcoio_1 = devtag_get_device(device->machine, "namcoio_1"); | |
| 839 | running_device *namcoio_2 = devtag_get_device(device->machine, "namcoio_2"); | |
| 838 | running_device *namcoio_1 = device->machine->device("namcoio_1"); | |
| 839 | running_device *namcoio_2 = device->machine->device("namcoio_2"); | |
| 840 | 840 | |
| 841 | 841 | irq0_line_assert(device); // this also checks if irq is enabled - IMPORTANT! |
| 842 | 842 | // so don't replace with cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE); |
| r8581 | r8582 | |
| 850 | 850 | |
| 851 | 851 | static TIMER_CALLBACK( mappy_io_run ) |
| 852 | 852 | { |
| 853 | running_device *io58xx_1 = devtag_get_device(machine, "namcoio_1"); | |
| 854 | running_device *io58xx_2 = devtag_get_device(machine, "namcoio_2"); | |
| 853 | running_device *io58xx_1 = machine->device("namcoio_1"); | |
| 854 | running_device *io58xx_2 = machine->device("namcoio_2"); | |
| 855 | 855 | |
| 856 | 856 | switch (param) |
| 857 | 857 | { |
| r8581 | r8582 | |
| 866 | 866 | |
| 867 | 867 | static INTERRUPT_GEN( mappy_interrupt_1 ) |
| 868 | 868 | { |
| 869 | running_device *namcoio_1 = devtag_get_device(device->machine, "namcoio_1"); | |
| 870 | running_device *namcoio_2 = devtag_get_device(device->machine, "namcoio_2"); | |
| 869 | running_device *namcoio_1 = device->machine->device("namcoio_1"); | |
| 870 | running_device *namcoio_2 = device->machine->device("namcoio_2"); | |
| 871 | 871 | |
| 872 | 872 | irq0_line_assert(device); // this also checks if irq is enabled - IMPORTANT! |
| 873 | 873 | // so don't replace with cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE); |
| r8581 | r8582 | |
| 2258 | 2258 | However, removing the 15XX from the board causes sound to disappear completely, so |
| 2259 | 2259 | the DAC might be built-in after all. |
| 2260 | 2260 | */ |
| 2261 | running_device *dac = | |
| 2261 | running_device *dac = m | |
| 2262 | 2262 | memory_install_write8_device_handler(cputag_get_address_space(machine, "sub", ADDRESS_SPACE_PROGRAM), dac, 0x0002, 0x0002, 0, 0, grobda_DAC_w ); |
| 2263 | 2263 | } |
| 2264 | 2264 |
| r8581 | r8582 | |
|---|---|---|
| 318 | 318 | state->ram_2 = auto_alloc_array(machine, UINT8, state->ram_size); |
| 319 | 319 | state->port_last = 0; |
| 320 | 320 | state->port_last2 = 0; |
| 321 | state->samples = | |
| 321 | state->samples = m | |
| 322 | 322 | |
| 323 | 323 | /* setup for save states */ |
| 324 | 324 | state_save_register_global_pointer(machine, state->ram_1, state->ram_size); |
| r8581 | r8582 | |
|---|---|---|
| 370 | 370 | memory_configure_bank(machine, "bank1", 0, 1, &ROM[0x00000], 0x4000); |
| 371 | 371 | memory_configure_bank(machine, "bank1", 1, 3, &ROM[0x10000], 0x4000); |
| 372 | 372 | |
| 373 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 374 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 375 | state->pc080sn = devtag_get_device(machine, "pc080sn"); | |
| 376 | state->pc090oj = devtag_get_device(machine, "pc090oj"); | |
| 373 | state->maincpu = machine->device("maincpu"); | |
| 374 | state->audiocpu = machine->device("audiocpu"); | |
| 375 | state->pc080sn = machine->device("pc080sn"); | |
| 376 | state->pc090oj = machine->device("pc090oj"); | |
| 377 | 377 | |
| 378 | 378 | state_save_register_global(machine, state->sprite_ctrl); |
| 379 | 379 | state_save_register_global(machine, state->sprites_flipscreen); |
| r8581 | r8582 | |
|---|---|---|
| 45 | 45 | archimedes_init(machine); |
| 46 | 46 | |
| 47 | 47 | // reset the DAC to centerline |
| 48 | dac_signed_data_w( | |
| 48 | dac_signed_data_w(m | |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | static MACHINE_RESET( aristmk5 ) |
| r8581 | r8582 | |
|---|---|---|
| 787 | 787 | UINT8 *adsp_boot = (UINT8*)memory_region(machine, "adsp"); |
| 788 | 788 | metalmx_state *state = (metalmx_state *)machine->driver_data; |
| 789 | 789 | |
| 790 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 791 | state->adsp = devtag_get_device(machine, "adsp"); | |
| 792 | state->gsp = devtag_get_device(machine, "gsp"); | |
| 793 | state->dsp32c_1 = devtag_get_device(machine, "dsp32c_1"); | |
| 794 | state->dsp32c_2 = devtag_get_device(machine, "dsp32c_2"); | |
| 790 | state->maincpu = machine->device("maincpu"); | |
| 791 | state->adsp = machine->device("adsp"); | |
| 792 | state->gsp = machine->device("gsp"); | |
| 793 | state->dsp32c_1 = machine->device("dsp32c_1"); | |
| 794 | state->dsp32c_2 = machine->device("dsp32c_2"); | |
| 795 | 795 | |
| 796 | 796 | adsp2105_load_boot_data(adsp_boot, state->adsp_internal_program_ram); |
| 797 | 797 |
| r8581 | r8582 | |
|---|---|---|
| 1185 | 1185 | { |
| 1186 | 1186 | equites_state *state = (equites_state *)machine->driver_data; |
| 1187 | 1187 | |
| 1188 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 1189 | state->audio_cpu = devtag_get_device(machine, "audiocpu"); | |
| 1190 | state->msm = devtag_get_device(machine, "msm"); | |
| 1191 | state->dac_1 = devtag_get_device(machine, "dac1"); | |
| 1192 | state->dac_2 = devtag_get_device(machine, "dac2"); | |
| 1188 | state->mcu = machine->device("mcu"); | |
| 1189 | state->audio_cpu = machine->device("audiocpu"); | |
| 1190 | state->msm = machine->device("msm"); | |
| 1191 | state->dac_1 = machine->device("dac1"); | |
| 1192 | state->dac_2 = machine->device("dac2"); | |
| 1193 | 1193 | |
| 1194 | 1194 | state_save_register_global(machine, state->fg_char_bank); |
| 1195 | 1195 | state_save_register_global(machine, state->bgcolor); |
| r8581 | r8582 | |
|---|---|---|
| 178 | 178 | |
| 179 | 179 | static WRITE8_DEVICE_HANDLER(ay_sel) |
| 180 | 180 | { |
| 181 | if(cpu_get_previouspc(dev | |
| 181 | if(cpu_get_previouspc(dev | |
| 182 | 182 | { |
| 183 | 183 | ay8910_address_w(device,0,nAyCtrl); |
| 184 | 184 | ay8910_data_w(device,0,nAyData); |
| r8581 | r8582 | |
|---|---|---|
| 303 | 303 | { |
| 304 | 304 | gradius3_state *state = (gradius3_state *)machine->driver_data; |
| 305 | 305 | |
| 306 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 307 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 308 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 309 | state->k007232 = devtag_get_device(machine, "k007232"); | |
| 310 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 311 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 306 | state->maincpu = machine->device("maincpu"); | |
| 307 | state->audiocpu = machine->device("audiocpu"); | |
| 308 | state->subcpu = machine->device("sub"); | |
| 309 | state->k007232 = machine->device("k007232"); | |
| 310 | state->k052109 = machine->device("k052109"); | |
| 311 | state->k051960 = machine->device("k051960"); | |
| 312 | 312 | |
| 313 | 313 | state_save_register_global(machine, state->irqAen); |
| 314 | 314 | state_save_register_global(machine, state->irqBmask); |
| r8581 | r8582 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | -------- |
| 25 | 25 | |
| 26 | Most of the info here comes from the wiretap archive at: | |
| 27 | http://www.spies.com/arcade/simulation/gameHardware/ | |
| 28 | 26 | |
| 29 | ||
| 30 | 27 | Omega Race Memory Map |
| 31 | 28 | Version 1.1 (Jul 24,1997) |
| 32 | 29 | --------------------- |
| r8581 | r8582 | |
|---|---|---|
| 650 | 650 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo ) ) |
| 651 | 651 | PORT_DIPNAME( 0x20, 0x20, "Coin Mechanism" ) |
| 652 | 652 | PORT_DIPSETTING( 0x20, "Common" ) |
| 653 | PORT_DIPSETTING( 0x00, "Independ | |
| 653 | PORT_DIPSETTING( 0x00, "Independent" ) | |
| 654 | 654 | PORT_DIPNAME( 0x40, 0x40, "Number of Players" ) |
| 655 | 655 | PORT_DIPSETTING( 0x00, "4" ) |
| 656 | 656 | PORT_DIPSETTING( 0x40, "2" ) |
| r8581 | r8582 | |
| 691 | 691 | PORT_DIPSETTING( 0x00, DEF_STR( Stereo ) ) |
| 692 | 692 | PORT_DIPNAME( 0x20, 0x20, "Coin Mechanism" ) |
| 693 | 693 | PORT_DIPSETTING( 0x20, "Common" ) |
| 694 | PORT_DIPSETTING( 0x00, "Independ | |
| 694 | PORT_DIPSETTING( 0x00, "Independent" ) | |
| 695 | 695 | PORT_DIPNAME( 0x40, 0x40, "Number of Players" ) |
| 696 | 696 | PORT_DIPSETTING( 0x00, "4" ) |
| 697 | 697 | PORT_DIPSETTING( 0x40, "2" ) |
| r8581 | r8582 | |
| 737 | 737 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 738 | 738 | PORT_DIPNAME( 0x40, 0x40, "Coin Mechanism" ) |
| 739 | 739 | PORT_DIPSETTING( 0x40, "Common" ) |
| 740 | PORT_DIPSETTING( 0x00, "Independ | |
| 740 | PORT_DIPSETTING( 0x00, "Independent" ) | |
| 741 | 741 | PORT_DIPNAME( 0x80, 0x80, "Number of Players" ) |
| 742 | 742 | PORT_DIPSETTING( 0x00, "3" ) |
| 743 | 743 | PORT_DIPSETTING( 0x80, "2" ) |
| r8581 | r8582 | |
| 888 | 888 | |
| 889 | 889 | static MACHINE_RESET(mystwarr) |
| 890 | 890 | { |
| 891 | running_device *k054539_1 = devtag_get_device(machine, "konami1"); | |
| 892 | running_device *k054539_2 = devtag_get_device(machine, "konami2"); | |
| 891 | running_device *k054539_1 = machine->device("konami1"); | |
| 892 | running_device *k054539_2 = machine->device("konami2"); | |
| 893 | 893 | int i; |
| 894 | 894 | |
| 895 | 895 | // soften chorus(chip 0 channel 0-3), boost voice(chip 0 channel 4-7) |
| r8581 | r8582 | |
| 905 | 905 | |
| 906 | 906 | static MACHINE_RESET(dadandrn) |
| 907 | 907 | { |
| 908 | running_device *k054539_1 = | |
| 908 | running_device *k054539_1 = m | |
| 909 | 909 | int i; |
| 910 | 910 | |
| 911 | 911 | // boost voice(chip 0 channel 4-7) |
| r8581 | r8582 | |
| 914 | 914 | |
| 915 | 915 | static MACHINE_RESET(viostorm) |
| 916 | 916 | { |
| 917 | running_device *k054539_1 = | |
| 917 | running_device *k054539_1 = m | |
| 918 | 918 | int i; |
| 919 | 919 | |
| 920 | 920 | // boost voice(chip 0 channel 4-7) |
| r8581 | r8582 | |
| 923 | 923 | |
| 924 | 924 | static MACHINE_RESET(metamrph) |
| 925 | 925 | { |
| 926 | running_device *k054539_1 = devtag_get_device(machine, "konami1"); | |
| 927 | running_device *k054539_2 = devtag_get_device(machine, "konami2"); | |
| 926 | running_device *k054539_1 = machine->device("konami1"); | |
| 927 | running_device *k054539_2 = machine->device("konami2"); | |
| 928 | 928 | int i; |
| 929 | 929 | |
| 930 | 930 | // boost voice(chip 0 channel 4-7) and soften other channels |
| r8581 | r8582 | |
| 939 | 939 | |
| 940 | 940 | static MACHINE_RESET(martchmp) |
| 941 | 941 | { |
| 942 | running_device *k054539_1 = | |
| 942 | running_device *k054539_1 = m | |
| 943 | 943 | int i; |
| 944 | 944 | |
| 945 | 945 | k054539_init_flags(k054539_1, K054539_REVERSE_STEREO); |
| r8581 | r8582 | |
| 950 | 950 | |
| 951 | 951 | static MACHINE_RESET(gaiapols) |
| 952 | 952 | { |
| 953 | running_device *k054539_1 = | |
| 953 | running_device *k054539_1 = m | |
| 954 | 954 | int i; |
| 955 | 955 | |
| 956 | 956 | // boost voice(chip 0 channel 5-7) |
| r8581 | r8582 | |
|---|---|---|
| 41 | 41 | { |
| 42 | 42 | /* generate 32V signals */ |
| 43 | 43 | if ((scanline & 32) == 0 && !(input_port_read(screen.machine, "P1") & 0x800)) |
| 44 | atarigen_scanline_int_gen( | |
| 44 | atarigen_scanline_int_gen( | |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 |
| r8581 | r8582 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | Chips: |
| 46 | 46 | QS1000: QDSP QS1000 AdMOS 9638R, Wavetable Audio chip, clock input of 24.000MHz (QFP100) |
| 47 | see http://www.hwass.co.kr/product.htm for more info on QS100x chips. | |
| 48 | PRIME: LGS Prime 3C 9930R, clock input of 14.31818MHz (QFP100) | |
| 47 | PRIME: LGS Prime 3C 9930R, clock input of 14.31818MHz (QFP100) | |
| 49 | 48 | QL2003: QuickLogic QL2003-XPL84C 0003BA FPGA (PLCC84) |
| 50 | 49 | CL-PS7500: Cirrus Logic CL-PS7500FE-56QC-A 84903-951BD ARM 9843J |
| 51 | 50 | clock input of 54.000MHz, ARM710C; ARM7-core CPU (QFP240) |
| r8581 | r8582 | |
| 96 | 95 | Notes: |
| 97 | 96 | Chips: |
| 98 | 97 | QS1000: QDSP QS1000 AdMOS 9638R, Wavetable Audio chip, clock input of 24.000MHz (QFP100) |
| 99 | see http://www.hwass.co.kr/product.htm for more info on QS100x chips. | |
| 100 | 98 | PRIME: LGS Prime 3C 9849R, clock input of 14.31818MHz (QFP100) |
| 101 | 99 | XILINX XCS10: Xilinx Spartan XCS10 FPGA (QFP144) |
| 102 | 100 | CL-PS7500: Cirrus Logic CL-PS7500FE-56QC-A 84877-951BD ARM 9843J |
| r8581 | r8582 | |
| 259 | 257 | PS7500_IO[IRQSTA]|=0x20; |
| 260 | 258 | if(PS7500_IO[IRQMSKA]&0x20) |
| 261 | 259 | { |
| 262 | generic_pulse_irq_line( | |
| 260 | generic_pulse_irq_line(m | |
| 263 | 261 | } |
| 264 | 262 | } |
| 265 | 263 | |
| r8581 | r8582 | |
| 278 | 276 | PS7500_IO[IRQSTA]|=0x40; |
| 279 | 277 | if(PS7500_IO[IRQMSKA]&0x40) |
| 280 | 278 | { |
| 281 | generic_pulse_irq_line( | |
| 279 | generic_pulse_irq_line(m | |
| 282 | 280 | } |
| 283 | 281 | } |
| 284 | 282 |
| r8581 | r8582 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | static INPUT_CHANGED( firetrk_horn_changed ) |
| 41 | 41 | { |
| 42 | running_device *discrete = | |
| 42 | running_device *discrete = | |
| 43 | 43 | discrete_sound_w(discrete, FIRETRUCK_HORN_EN, newval); |
| 44 | 44 | } |
| 45 | 45 | |
| r8581 | r8582 | |
| 54 | 54 | static INTERRUPT_GEN( firetrk_interrupt ) |
| 55 | 55 | { |
| 56 | 56 | /* Super Bug - ASR - when is this used and what is an ASR? */ |
| 57 | // discrete_sound_w( | |
| 57 | // discrete_sound_w(m | |
| 58 | 58 | |
| 59 | 59 | /* NMI interrupts are disabled during service mode in firetrk and montecar */ |
| 60 | 60 | if (!in_service_mode) |
| r8581 | r8582 | |
| 66 | 66 | { |
| 67 | 67 | int scanline = param; |
| 68 | 68 | |
| 69 | generic_pulse_irq_line( | |
| 69 | generic_pulse_irq_line(m | |
| 70 | 70 | |
| 71 | 71 | /* IRQs are generated by inverse 16V signal */ |
| 72 | 72 | scanline += 32; |
| r8581 | r8582 | |
| 80 | 80 | |
| 81 | 81 | static WRITE8_HANDLER( firetrk_output_w ) |
| 82 | 82 | { |
| 83 | running_device *discrete = | |
| 83 | running_device *discrete = | |
| 84 | 84 | |
| 85 | 85 | /* BIT0 => START1 LAMP */ |
| 86 | 86 | set_led_status(space->machine, 0, !(data & 0x01)); |
| r8581 | r8582 | |
| 111 | 111 | |
| 112 | 112 | static WRITE8_HANDLER( superbug_output_w ) |
| 113 | 113 | { |
| 114 | running_device *discrete = | |
| 114 | running_device *discrete = | |
| 115 | 115 | |
| 116 | 116 | /* BIT0 => START LAMP */ |
| 117 | 117 | set_led_status(space->machine, 0, offset & 0x01); |
| r8581 | r8582 | |
| 131 | 131 | |
| 132 | 132 | static WRITE8_HANDLER( montecar_output_1_w ) |
| 133 | 133 | { |
| 134 | running_device *discrete = | |
| 134 | running_device *discrete = | |
| 135 | 135 | |
| 136 | 136 | /* BIT0 => START LAMP */ |
| 137 | 137 | set_led_status(space->machine, 0, !(data & 0x01)); |
| r8581 | r8582 | |
| 158 | 158 | |
| 159 | 159 | static WRITE8_HANDLER( montecar_output_2_w ) |
| 160 | 160 | { |
| 161 | running_device *discrete = | |
| 161 | running_device *discrete = | |
| 162 | 162 | |
| 163 | 163 | firetrk_flash = data & 0x80; |
| 164 | 164 |
| r8581 | r8582 | |
|---|---|---|
| 217 | 217 | #define CMOS_NVRAM_SIZE 0x2000 |
| 218 | 218 | #define eeprom_NVRAM_SIZE 0x200 // 4k Bit |
| 219 | 219 | |
| 220 | /* EEPROM is a X2404P 4K-bit Serial I2C Bus */ | |
| 221 | static const i2cmem_interface i2cmem_interface = | |
| 222 | { | |
| 223 | I2CMEM_SLAVE_ADDRESS, 8, eeprom_NVRAM_SIZE | |
| 224 | }; | |
| 225 | ||
| 220 | 226 | /* prototypes */ |
| 221 | 227 | static WRITE_LINE_DEVICE_HANDLER(crtc_vsync); |
| 222 | 228 | static MC6845_ON_UPDATE_ADDR_CHANGED(crtc_addr); |
| r8581 | r8582 | |
| 275 | 281 | memset(cmos_ram, 0, CMOS_NVRAM_SIZE); |
| 276 | 282 | } |
| 277 | 283 | } |
| 278 | ||
| 279 | NVRAM_HANDLER_CALL(i2cmem_0); | |
| 280 | 284 | } |
| 281 | 285 | |
| 282 | 286 | |
| r8581 | r8582 | |
| 457 | 461 | output_set_value("pe_bnkc7",(data >> 7) & 1); /* Game Meter */ |
| 458 | 462 | } |
| 459 | 463 | |
| 460 | static WRITE8_HANDLER(i2c_nvram_w) | |
| 464 | static WRITE8_DEVICE_HANDLER(i2c_nvram_w) | |
| 461 | 465 | { |
| 462 | i2cmem_write( | |
| 466 | i2cmem_scl_write(d | |
| 463 | 467 | sda_dir = BIT(data, 1); |
| 464 | i2cmem_write( | |
| 468 | i2cmem_sda_write(d | |
| 465 | 469 | } |
| 466 | 470 | |
| 467 | 471 | |
| r8581 | r8582 | |
| 531 | 535 | return 0x00; // Watchdog |
| 532 | 536 | } |
| 533 | 537 | |
| 534 | static READ8_HANDLER( peplus_input_bank_a_r ) | |
| 538 | static READ8_DEVICE_HANDLER( peplus_input_bank_a_r ) | |
| 535 | 539 | { |
| 536 | 540 | /* |
| 537 | 541 | Bit 0 = COIN DETECTOR A |
| r8581 | r8582 | |
| 546 | 550 | UINT8 bank_a = 0x50; // Turn Off Low Battery and Hopper Full Statuses |
| 547 | 551 | UINT8 coin_optics = 0x00; |
| 548 | 552 | UINT8 coin_out = 0x00; |
| 549 | UINT64 curr_cycles = | |
| 553 | UINT64 curr_cycles = device->machine->firstcpu->total_cycles(); | |
| 550 | 554 | UINT16 door_wait = 500; |
| 551 | 555 | |
| 552 | 556 | UINT8 sda = 0; |
| 553 | 557 | if(!sda_dir) |
| 554 | 558 | { |
| 555 | sda = i2cmem_read( | |
| 559 | sda = i2cmem_sda_read(d | |
| 556 | 560 | } |
| 557 | 561 | |
| 558 | if ((input_port_read_safe( | |
| 562 | if ((input_port_read_safe(device->machine, "SENSOR",0x00) & 0x01) == 0x01 && coin_state == 0) { | |
| 559 | 563 | coin_state = 1; // Start Coin Cycle |
| 560 | last_cycles = | |
| 564 | last_cycles = device->machine->firstcpu->total_cycles(); | |
| 561 | 565 | } else { |
| 562 | 566 | /* Process Next Coin Optic State */ |
| 563 | 567 | if (curr_cycles - last_cycles > 600000/6 && coin_state != 0) { |
| 564 | 568 | coin_state++; |
| 565 | 569 | if (coin_state > 5) |
| 566 | 570 | coin_state = 0; |
| 567 | last_cycles = | |
| 571 | last_cycles = device->machine->firstcpu->total_cycles(); | |
| 568 | 572 | } |
| 569 | 573 | } |
| 570 | 574 | |
| r8581 | r8582 | |
| 594 | 598 | door_wait = 12345; |
| 595 | 599 | |
| 596 | 600 | if (curr_cycles - last_door > door_wait) { |
| 597 | if ((input_port_read_safe( | |
| 601 | if ((input_port_read_safe(device->machine, "DOOR",0xff) & 0x01) == 0x01) { | |
| 598 | 602 | door_open = (!door_open & 0x01); |
| 599 | 603 | } else { |
| 600 | 604 | door_open = 1; |
| 601 | 605 | } |
| 602 | last_door = | |
| 606 | last_door = device->machine->firstcpu->total_cycles(); | |
| 603 | 607 | } |
| 604 | 608 | |
| 605 | 609 | if (curr_cycles - last_coin_out > 600000/12 && coin_out_state != 0) { // Guessing with 600000 |
| r8581 | r8582 | |
| 609 | 613 | coin_out_state = 3; // Coin-Out On |
| 610 | 614 | } |
| 611 | 615 | |
| 612 | last_coin_out = | |
| 616 | last_coin_out = device->machine->firstcpu->total_cycles(); | |
| 613 | 617 | } |
| 614 | 618 | |
| 615 | 619 | switch (coin_out_state) |
| r8581 | r8582 | |
| 757 | 761 | AM_RANGE(0x7000, 0x7fff) AM_READWRITE(peplus_s7000_r, peplus_s7000_w) AM_BASE(&s7000_ram) |
| 758 | 762 | |
| 759 | 763 | // Input Bank A, Output Bank C |
| 760 | AM_RANGE(0x8000, 0x8000) AM_READ(peplus_input_bank_a_r) AM_WRITE(peplus_output_bank_c_w) | |
| 764 | AM_RANGE(0x8000, 0x8000) AM_DEVREAD("i2cmem",peplus_input_bank_a_r) AM_WRITE(peplus_output_bank_c_w) | |
| 761 | 765 | |
| 762 | 766 | // Drop Door, I2C EEPROM Writes |
| 763 | AM_RANGE(0x9000, 0x9000) AM_READ(peplus_dropdoor_r) AM_WRITE(i2c_nvram_w) | |
| 767 | AM_RANGE(0x9000, 0x9000) AM_READ(peplus_dropdoor_r) AM_DEVWRITE("i2cmem",i2c_nvram_w) | |
| 764 | 768 | |
| 765 | 769 | // Input Banks B & C, Output Bank B |
| 766 | 770 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN0") AM_WRITE(peplus_output_bank_b_w) |
| r8581 | r8582 | |
| 1037 | 1041 | MDRV_PALETTE_LENGTH(16*16*2) |
| 1038 | 1042 | |
| 1039 | 1043 | MDRV_MC6845_ADD("crtc", R6545_1, MC6845_CLOCK, mc6845_intf) |
| 1044 | MDRV_I2CMEM_ADD("i2cmem", i2cmem_interface) | |
| 1040 | 1045 | |
| 1041 | 1046 | MDRV_PALETTE_INIT(peplus) |
| 1042 | 1047 | MDRV_VIDEO_START(peplus) |
| r8581 | r8582 | |
| 1057 | 1062 | /* Normal board */ |
| 1058 | 1063 | static void peplus_init(running_machine *machine) |
| 1059 | 1064 | { |
| 1060 | /* EEPROM is a X2404P 4K-bit Serial I2C Bus */ | |
| 1061 | i2cmem_init(machine, 0, I2CMEM_SLAVE_ADDRESS, 8, eeprom_NVRAM_SIZE, NULL); | |
| 1062 | ||
| 1063 | 1065 | /* default : no address to patch in program RAM to enable autohold feature */ |
| 1064 | 1066 | autohold_addr = 0; |
| 1065 | 1067 | } |
| r8581 | r8582 | |
|---|---|---|
| 591 | 591 | cur_input_line = (cur_input_line + 1) & 7; |
| 592 | 592 | break; |
| 593 | 593 | case 7: // DAC |
| 594 | dac_signed_data_w( | |
| 594 | dac_signed_data_w(m | |
| 595 | 595 | break; |
| 596 | 596 | default: |
| 597 | 597 | fprintf(stderr, "Port %d : %02x\n", port, data & 0xff); |
| r8581 | r8582 | |
| 605 | 605 | case 3: // Lamps |
| 606 | 606 | break; |
| 607 | 607 | case 7: // DAC |
| 608 | dac_signed_data_w( | |
| 608 | dac_signed_data_w(m | |
| 609 | 609 | break; |
| 610 | 610 | default: |
| 611 | 611 | fprintf(stderr, "Port %d : %02x\n", port, data & 0xff); |
| r8581 | r8582 | |
|---|---|---|
| 447 | 447 | { |
| 448 | 448 | ddayjlc_state *state = (ddayjlc_state *)machine->driver_data; |
| 449 | 449 | |
| 450 | state->audiocpu = | |
| 450 | state->audiocpu = m | |
| 451 | 451 | |
| 452 | 452 | state_save_register_global(machine, state->char_bank); |
| 453 | 453 | state_save_register_global(machine, state->bgadr); |
| r8581 | r8582 | |
|---|---|---|
| 1254 | 1254 | UINT16 ret = 0; |
| 1255 | 1255 | |
| 1256 | 1256 | if (ACCESSING_BITS_0_7) |
| 1257 | ret |= k054539_r( | |
| 1257 | ret |= k054539_r( | |
| 1258 | 1258 | if (ACCESSING_BITS_8_15) |
| 1259 | ret |= k054539_r( | |
| 1259 | ret |= k054539_r( | |
| 1260 | 1260 | |
| 1261 | 1261 | return ret; |
| 1262 | 1262 | } |
| r8581 | r8582 | |
| 1264 | 1264 | static WRITE16_HANDLER( dual539_w ) |
| 1265 | 1265 | { |
| 1266 | 1266 | if (ACCESSING_BITS_0_7) |
| 1267 | k054539_w( | |
| 1267 | k054539_w( | |
| 1268 | 1268 | if (ACCESSING_BITS_8_15) |
| 1269 | k054539_w( | |
| 1269 | k054539_w( | |
| 1270 | 1270 | } |
| 1271 | 1271 | |
| 1272 | 1272 | static READ16_HANDLER( sndcomm68k_r ) |
| r8581 | r8582 | |
| 1287 | 1287 | |
| 1288 | 1288 | static READ16_HANDLER(tms57002_data_word_r) |
| 1289 | 1289 | { |
| 1290 | return tms57002_data_r( | |
| 1290 | return tms57002_data_r( | |
| 1291 | 1291 | } |
| 1292 | 1292 | |
| 1293 | 1293 | static WRITE16_HANDLER(tms57002_data_word_w) |
| 1294 | 1294 | { |
| 1295 | 1295 | if (ACCESSING_BITS_0_7) |
| 1296 | tms57002_data_w( | |
| 1296 | tms57002_data_w( | |
| 1297 | 1297 | } |
| 1298 | 1298 | |
| 1299 | 1299 | static READ16_HANDLER(tms57002_status_word_r) |
| 1300 | 1300 | { |
| 1301 | return (tms57002_dready_r(devtag_get_device(space->machine, "dasp"), 0) ? 4 : 0) | | |
| 1302 | (tms57002_empty_r(devtag_get_device(space->machine, "dasp"), 0) ? 1 : 0); | |
| 1301 | return (tms57002_dready_r(space->machine->device("dasp"), 0) ? 4 : 0) | | |
| 1302 | (tms57002_empty_r(space->machine->device("dasp"), 0) ? 1 : 0); | |
| 1303 | 1303 | } |
| 1304 | 1304 | |
| 1305 | 1305 | static WRITE16_HANDLER(tms57002_control_word_w) |
| 1306 | 1306 | { |
| 1307 | 1307 | if (ACCESSING_BITS_0_7) |
| 1308 | 1308 | { |
| 1309 | tms57002_pload_w(devtag_get_device(space->machine, "dasp"), 0, data & 4); | |
| 1310 | tms57002_cload_w(devtag_get_device(space->machine, "dasp"), 0, data & 8); | |
| 1309 | tms57002_pload_w(space->machine->device("dasp"), 0, data & 4); | |
| 1310 | tms57002_cload_w(space->machine->device("dasp"), 0, data & 8); | |
| 1311 | 1311 | cputag_set_input_line(space->machine, "dasp", INPUT_LINE_RESET, !(data & 16) ? ASSERT_LINE : CLEAR_LINE); |
| 1312 | 1312 | } |
| 1313 | 1313 | } |
| r8581 | r8582 | |
| 1506 | 1506 | PORT_DIPSETTING( 0x00000000, DEF_STR( Mono )) |
| 1507 | 1507 | PORT_DIPNAME( 0x02000000, 0x02000000, "Coin Mechanism") |
| 1508 | 1508 | PORT_DIPSETTING( 0x02000000, "Common") |
| 1509 | PORT_DIPSETTING( 0x00000000, "Independ | |
| 1509 | PORT_DIPSETTING( 0x00000000, "Independent") | |
| 1510 | 1510 | PORT_DIPNAME( 0x04000000, 0x04000000, "Stage Select" ) |
| 1511 | 1511 | PORT_DIPSETTING( 0x04000000, DEF_STR( Off ) ) |
| 1512 | 1512 | PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) |
| r8581 | r8582 | |
| 3631 | 3631 | |
| 3632 | 3632 | static MACHINE_RESET(konamigx) |
| 3633 | 3633 | { |
| 3634 | running_device *k054539_2 = | |
| 3634 | running_device *k054539_2 = m | |
| 3635 | 3635 | int i; |
| 3636 | 3636 | |
| 3637 | 3637 | konamigx_wrport1_0 = konamigx_wrport1_1 = 0; |
| r8581 | r8582 | |
|---|---|---|
| 454 | 454 | |
| 455 | 455 | ROM_START( triforce ) |
| 456 | 456 | TRIFORCE_BIOS |
| 457 | ||
| 458 | ROM_REGION( 0x8400000, "user1", ROMREGION_ERASE) | |
| 459 | 457 | ROM_END |
| 460 | 458 | |
| 461 | 459 | ROM_START( vs2002j ) |
| 462 | 460 | TRIFORCE_BIOS |
| 463 | 461 | |
| 464 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 465 | ||
| 466 | 462 | DISK_REGION( "gdrom" ) |
| 467 | 463 | DISK_IMAGE_READONLY( "gdt-0001", 0, SHA1(1b4b16b0715fa5717904f0b3141cc48cca99b7a4) ) |
| 468 | 464 | |
| r8581 | r8582 | |
| 490 | 486 | ROM_START( vs2002ex ) |
| 491 | 487 | TRIFORCE_BIOS |
| 492 | 488 | |
| 493 | ||
| 494 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 495 | ||
| 496 | 489 | DISK_REGION( "gdrom" ) |
| 497 | 490 | DISK_IMAGE_READONLY( "gdt-0002", 0, SHA1(471e896d43167c93cc229cfc94ff7ac6de7cf9a4) ) |
| 498 | 491 | |
| r8581 | r8582 | |
| 504 | 497 | ROM_START( avalons ) |
| 505 | 498 | TRIFORCE_BIOS |
| 506 | 499 | |
| 507 | ||
| 508 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 509 | ||
| 510 | 500 | DISK_REGION( "gdrom" ) |
| 511 | 501 | DISK_IMAGE_READONLY( "gdt-0005c", 0, SHA1(9edb3d9ff492d2207d57bfdb6859e796f76c5e0c) ) |
| 512 | 502 | |
| r8581 | r8582 | |
| 518 | 508 | ROM_START( gekpurya ) |
| 519 | 509 | TRIFORCE_BIOS |
| 520 | 510 | |
| 521 | ||
| 522 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 523 | ||
| 524 | 511 | DISK_REGION( "gdrom" ) |
| 525 | 512 | DISK_IMAGE_READONLY( "gdt-0008c", 0, SHA1(2c1bdb8324efc216edd771fe45c680ac726111a0) ) |
| 526 | 513 | |
| r8581 | r8582 | |
| 532 | 519 | ROM_START( tfupdate ) |
| 533 | 520 | TRIFORCE_BIOS |
| 534 | 521 | |
| 535 | ||
| 536 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 537 | ||
| 538 | 522 | DISK_REGION( "gdrom" ) |
| 539 | 523 | DISK_IMAGE_READONLY( "gdt-0011", 0, SHA1(71bfa8f53d211085c020d54f55eeeabf85212a0b) ) |
| 540 | 524 | |
| r8581 | r8582 | |
| 570 | 554 | ROM_START( vs4 ) |
| 571 | 555 | TRIFORCE_BIOS |
| 572 | 556 | |
| 573 | ||
| 574 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 575 | ||
| 576 | 557 | DISK_REGION( "gdrom" ) |
| 577 | 558 | DISK_IMAGE_READONLY( "gdt-0015", 0, SHA1(1f83712b2b170d6edf4a27c15b6f763cc3cc4b71) ) |
| 578 | 559 | |
| r8581 | r8582 | |
| 602 | 583 | ROM_START( vs4j ) |
| 603 | 584 | TRIFORCE_BIOS |
| 604 | 585 | |
| 605 | ||
| 606 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 607 | ||
| 608 | 586 | DISK_REGION( "gdrom" ) |
| 609 | 587 | DISK_IMAGE_READONLY( "gdt-0013e", 0, SHA1(b69cc5cab889114eda5c6e9ddcca42de9bc235b3) ) |
| 610 | 588 | |
| r8581 | r8582 | |
| 635 | 613 | ROM_START( avalon13 ) |
| 636 | 614 | TRIFORCE_BIOS |
| 637 | 615 | |
| 638 | ||
| 639 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 640 | ||
| 641 | 616 | DISK_REGION( "gdrom" ) |
| 642 | 617 | DISK_IMAGE_READONLY( "gdt-0010c", 0, SHA1(716c441d8dc9036a13c66ef0048cd6d32ac63c4e) ) |
| 643 | 618 | |
| r8581 | r8582 | |
| 669 | 644 | ROM_START( avalon20 ) |
| 670 | 645 | TRIFORCE_BIOS |
| 671 | 646 | |
| 672 | ||
| 673 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 674 | ||
| 675 | 647 | DISK_REGION( "gdrom" ) |
| 676 | 648 | DISK_IMAGE_READONLY( "gdt-0017b", 0, SHA1(e2dd32c322ffcaf38b82275d2721b71bb3dfc1f2) ) |
| 677 | 649 | |
| r8581 | r8582 | |
| 683 | 655 | ROM_START( vs42006 ) |
| 684 | 656 | TRIFORCE_BIOS |
| 685 | 657 | |
| 686 | ||
| 687 | ROM_REGION( 0x20000000, "user1", ROMREGION_ERASE) // allocate max size in init instead? | |
| 688 | ||
| 689 | 658 | DISK_REGION( "gdrom" ) |
| 690 | 659 | DISK_IMAGE_READONLY( "gdt-0020d", 0, SHA1(db256d094b9754d452d7a2b8a370699d21141c1f) ) |
| 691 | 660 | |
| r8581 | r8582 | |
| 705 | 674 | GAME( 2004, vs4j, triforce, triforcegd, triforce, 0, ROT0, "Sega", "Virtua Striker 4 (Japan) (GDT-0013E)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 706 | 675 | GAME( 2004, vs4, triforce, triforcegd, triforce, 0, ROT0, "Sega", "Virtua Striker 4 (Export) (GDT-0015)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 707 | 676 | GAME( 2004, avalon20, triforce, triforcegd, triforce, 0, ROT0, "Sega", "The Key Of Avalon 2.0 - Eutaxy and Commandment - Client (GDT-0017B) (V3.001)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 708 | ||
| 677 |
| r8581 | r8582 | |
|---|---|---|
| 227 | 227 | { |
| 228 | 228 | dorachan_state *state = (dorachan_state *)machine->driver_data; |
| 229 | 229 | |
| 230 | state->main_cpu = | |
| 230 | state->main_cpu = m | |
| 231 | 231 | |
| 232 | 232 | state_save_register_global(machine, state->flip_screen); |
| 233 | 233 | } |
| r8581 | r8582 | |
|---|---|---|
| 266 | 266 | |
| 267 | 267 | machine->generic.paletteram.u8 = auto_alloc_array_clear(machine, UINT8, 0x1000); |
| 268 | 268 | |
| 269 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 270 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 271 | state->k053260 = devtag_get_device(machine, "k053260"); | |
| 272 | state->k053245 = devtag_get_device(machine, "k053245"); | |
| 273 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 274 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 269 | state->maincpu = machine->device("maincpu"); | |
| 270 | state->audiocpu = machine->device("audiocpu"); | |
| 271 | state->k053260 = machine->device("k053260"); | |
| 272 | state->k053245 = machine->device("k053245"); | |
| 273 | state->k053251 = machine->device("k053251"); | |
| 274 | state->k052109 = machine->device("k052109"); | |
| 275 | 275 | |
| 276 | 276 | state_save_register_global(machine, state->videobank); |
| 277 | 277 | state_save_register_global(machine, state->sprite_colorbase); |
| r8581 | r8582 | |
| 285 | 285 | parodius_state *state = (parodius_state *)machine->driver_data; |
| 286 | 286 | int i; |
| 287 | 287 | |
| 288 | konami_configure_set_lines( | |
| 288 | konami_configure_set_lines(m | |
| 289 | 289 | |
| 290 | 290 | for (i = 0; i < 3; i++) |
| 291 | 291 | { |
| r8581 | r8582 | |
|---|---|---|
| 678 | 678 | state->interleave_timer = timer_alloc(machine, NULL, NULL); |
| 679 | 679 | |
| 680 | 680 | state->audiocpu = machine->device<cpu_device>("audiocpu"); |
| 681 | state->k007121_1 = devtag_get_device(machine, "k007121_1"); | |
| 682 | state->k007121_2 = devtag_get_device(machine, "k007121_2"); | |
| 681 | state->k007121_1 = machine->device("k007121_1"); | |
| 682 | state->k007121_2 = machine->device("k007121_2"); | |
| 683 | 683 | |
| 684 | 684 | memory_configure_bank(machine, "bank1", 0, 10, memory_region(machine, "maincpu") + 0x10000, 0x4000); |
| 685 | 685 |
| r8581 | r8582 | |
|---|---|---|
| 278 | 278 | |
| 279 | 279 | memory_configure_bank(machine, "bank1", 0, 8, &ROM[0x10000], 0x2000); |
| 280 | 280 | |
| 281 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 282 | state->k007342 = devtag_get_device(machine, "k007342"); | |
| 283 | state->k007420 = devtag_get_device(machine, "k007420"); | |
| 281 | state->audiocpu = machine->device("audiocpu"); | |
| 282 | state->k007342 = machine->device("k007342"); | |
| 283 | state->k007420 = machine->device("k007420"); | |
| 284 | 284 | |
| 285 | 285 | state_save_register_global(machine, state->vreg); |
| 286 | 286 | state_save_register_global_array(machine, state->layer_colorbase); |
| r8581 | r8582 | |
|---|---|---|
| 394 | 394 | { |
| 395 | 395 | egghunt_state *state = (egghunt_state *)machine->driver_data; |
| 396 | 396 | |
| 397 | state->audiocpu = | |
| 397 | state->audiocpu = m | |
| 398 | 398 | |
| 399 | 399 | state_save_register_global(machine, state->gfx_banking); |
| 400 | 400 | state_save_register_global(machine, state->okibanking); |
| r8581 | r8582 | |
|---|---|---|
| 304 | 304 | ROM_LOAD32_BYTE( "revx.53", 0x00002, 0x80000, CRC(a045b265) SHA1(b294d3a56e41f5ec4ab9bbcc0088833b1cab1879) ) |
| 305 | 305 | ROM_LOAD32_BYTE( "revx.54", 0x00003, 0x80000, CRC(24471269) SHA1(262345bd147402100785459af422dafd1c562787) ) |
| 306 | 306 | |
| 307 | ROM_REGION( 0x2000, "pic", 0 ) | |
| 308 | ROM_LOAD( "revx_16c57.bin", 0x0000000, 0x2000, CRC(eb8a8649) SHA1(a1e1d0b7a5e9802e8f889eb7e719259656dc8133) ) | |
| 309 | ||
| 307 | 310 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 308 | 311 | ROM_LOAD( "revx.120", 0x0000000, 0x80000, CRC(523af1f0) SHA1(a67c0fd757e860fc1c1236945952a295b4d5df5a) ) |
| 309 | 312 | ROM_LOAD( "revx.121", 0x0080000, 0x80000, CRC(78201d93) SHA1(fb0b8f887eec433f7624f387d7fb6f633ea30d7c) ) |
| r8581 | r8582 | |
|---|---|---|
| 341 | 341 | |
| 342 | 342 | /* otherwise, return an input port */ |
| 343 | 343 | if (offset == 0x04/2 && sound_banks) |
| 344 | return (input_port_read(space->machine, portnames[offset]) & 0xbf) | (upd7759_busy_r( | |
| 344 | return (input_port_read(space->machine, portnames[offset]) & 0xbf) | (upd7759_busy_r( | |
| 345 | 345 | return input_port_read(space->machine, portnames[offset]); |
| 346 | 346 | |
| 347 | 347 | /* 'SEGA' protection */ |
| r8581 | r8582 | |
| 428 | 428 | } |
| 429 | 429 | if (sound_banks > 1) |
| 430 | 430 | { |
| 431 | running_device *upd = | |
| 431 | running_device *upd = | |
| 432 | 432 | newbank = (data >> 2) & (sound_banks - 1); |
| 433 | 433 | upd7759_set_bank_base(upd, newbank * 0x20000); |
| 434 | 434 | } |
| r8581 | r8582 | |
| 438 | 438 | case 0x1c/2: |
| 439 | 439 | if (sound_banks > 1) |
| 440 | 440 | { |
| 441 | running_device *upd = | |
| 441 | running_device *upd = | |
| 442 | 442 | upd7759_reset_w(upd, (data >> 1) & 1); |
| 443 | 443 | } |
| 444 | 444 | break; |
| r8581 | r8582 | |
| 1821 | 1821 | |
| 1822 | 1822 | static void segac2_common_init(running_machine* machine, int (*func)(int in)) |
| 1823 | 1823 | { |
| 1824 | running_device *upd = | |
| 1824 | running_device *upd = m | |
| 1825 | 1825 | |
| 1826 | 1826 | DRIVER_INIT_CALL( megadriv_c2 ); |
| 1827 | 1827 |
| r8581 | r8582 | |
|---|---|---|
| 175 | 175 | |
| 176 | 176 | The 16 colours at offset $C0 appear to be the text palette. This group of |
| 177 | 177 | colours does not appear to change throughout the game, and the lower 192 |
| 178 | colours fade in/out independ | |
| 178 | colours fade in/out independently of these 16 - consistent with observations | |
| 179 | 179 | of the real game. You'd think then that the palette would be reaonably |
| 180 | 180 | easy to deduce from the text video ram attribute byte - go ahead and try! :P |
| 181 | 181 | |
| r8581 | r8582 | |
| 496 | 496 | ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for the second CPU */ |
| 497 | 497 | ROM_LOAD( "ec_04.rom", 0x0000, 0x8000, CRC(aa3e7d1e) SHA1(da350384d55f011253d19ce17fc327cd2604257f) ) |
| 498 | 498 | |
| 499 | // not hooked up yet, what's it for, coinage? | |
| 500 | ROM_REGION( 0x0800, "mcu", 0 ) | |
| 501 | ROM_LOAD( "empirecity_68705.bin", 0x0000, 0x0800, CRC(182f7616) SHA1(38b4f23a559ae13f8ca1b974407a2a40fc52879f) ) | |
| 502 | ||
| 499 | 503 | ROM_REGION( 0x02000, "gfx1", 0 ) /* character data */ |
| 500 | 504 | ROM_LOAD( "sf17.bin", 0x0000, 0x2000, CRC(1b3706b5) SHA1(61f069329a7a836523ffc8cce915b0d0129fd896) ) |
| 501 | 505 |
| r8581 | r8582 | |
|---|---|---|
| 121 | 121 | |
| 122 | 122 | static VIDEO_EOF( sandscrp ) |
| 123 | 123 | { |
| 124 | running_device *pandora = | |
| 124 | running_device *pandora = m | |
| 125 | 125 | sprite_irq = 1; |
| 126 | 126 | update_irq_state(machine); |
| 127 | 127 | pandora_eof(pandora); |
| r8581 | r8582 | |
|---|---|---|
| 217 | 217 | |
| 218 | 218 | static MACHINE_START( gpworld ) |
| 219 | 219 | { |
| 220 | laserdisc = | |
| 220 | laserdisc = m | |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 |
| r8581 | r8582 | |
|---|---|---|
| 1149 | 1149 | { |
| 1150 | 1150 | homedata_state *state = (homedata_state *)machine->driver_data; |
| 1151 | 1151 | |
| 1152 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1153 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1154 | state->ym = devtag_get_device(machine, "ymsnd"); | |
| 1155 | state->sn = devtag_get_device(machine, "snsnd"); | |
| 1156 | state->dac = devtag_get_device(machine, "dac"); | |
| 1152 | state->maincpu = machine->device("maincpu"); | |
| 1153 | state->audiocpu = machine->device("audiocpu"); | |
| 1154 | state->ym = machine->device("ymsnd"); | |
| 1155 | state->sn = machine->device("snsnd"); | |
| 1156 | state->dac = machine->device("dac"); | |
| 1157 | 1157 | |
| 1158 | 1158 | state_save_register_global(machine, state->visible_page); |
| 1159 | 1159 | state_save_register_global(machine, state->flipscreen); |
| r8581 | r8582 | |
|---|---|---|
| 404 | 404 | { |
| 405 | 405 | mugsmash_state *state = (mugsmash_state *)machine->driver_data; |
| 406 | 406 | |
| 407 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 408 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 407 | state->maincpu = machine->device("maincpu"); | |
| 408 | state->audiocpu = machine->device("audiocpu"); | |
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | static MACHINE_DRIVER_START( mugsmash ) |
| r8581 | r8582 | |
|---|---|---|
| 17 | 17 | It's capable of changing the input ports dynamically (maybe explaining Roads Edge's "do not touch" quote below). |
| 18 | 18 | It probably has a lot to do with the network (Roads Edge network connectors are on this board). |
| 19 | 19 | |
| 20 | * The Toshiba CPU datasheet is here : http:// | |
| 20 | * The Toshiba CPU datasheet is here : http://kr | |
| 21 | 21 | |
| 22 | 22 | * From the Roads Edge manual : "The Network Check screen will be displayed for about 40 seconds whether |
| 23 | 23 | the cabinet is connected for communication competition or not. After this, |
| r8581 | r8582 | |
| 1648 | 1648 | static MACHINE_START(hyperneo) |
| 1649 | 1649 | { |
| 1650 | 1650 | /* set the fastest DRC options */ |
| 1651 | mips3drc_set_options( | |
| 1651 | mips3drc_set_options(m | |
| 1652 | 1652 | |
| 1653 | 1653 | /* configure fast RAM regions for DRC */ |
| 1654 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x00000000, 0x00ffffff, FALSE, hng_mainram); | |
| 1655 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x04000000, 0x05ffffff, TRUE, hng_cart); | |
| 1656 | mips3drc_add_fastram(devtag_get_device(machine, "maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, rombase); | |
| 1654 | mips3drc_add_fastram(machine->device("maincpu"), 0x00000000, 0x00ffffff, FALSE, hng_mainram); | |
| 1655 | mips3drc_add_fastram(machine->device("maincpu"), 0x04000000, 0x05ffffff, TRUE, hng_cart); | |
| 1656 | mips3drc_add_fastram(machine->device("maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, rombase); | |
| 1657 | 1657 | } |
| 1658 | 1658 | |
| 1659 | 1659 |
| r8581 | r8582 | |
|---|---|---|
| 606 | 606 | { |
| 607 | 607 | macrossp_state *state = (macrossp_state *)machine->driver_data; |
| 608 | 608 | |
| 609 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 610 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 609 | state->maincpu = machine->device("maincpu"); | |
| 610 | state->audiocpu = machine->device("audiocpu"); | |
| 611 | 611 | |
| 612 | 612 | state_save_register_global(machine, state->sndpending); |
| 613 | 613 | state_save_register_global(machine, state->snd_toggle); |
| r8581 | r8582 | |
|---|---|---|
| 518 | 518 | { |
| 519 | 519 | imolagp_state *state = (imolagp_state *)machine->driver_data; |
| 520 | 520 | |
| 521 | state->slavecpu = | |
| 521 | state->slavecpu = m | |
| 522 | 522 | |
| 523 | 523 | state_save_register_global(machine, state->control); |
| 524 | 524 | state_save_register_global(machine, state->scroll); |
| r8581 | r8582 | |
|---|---|---|
| 231 | 231 | ROM sockets U63 & U64 empty |
| 232 | 232 | |
| 233 | 233 | Hi-res PCB scan available on request. |
| 234 | Screenshots available on my site at http://u | |
| 234 | Screenshots available on my site at http://gur | |
| 235 | 235 | |
| 236 | 236 | |
| 237 | 237 | ****************************************************************************/ |
| r8581 | r8582 | |
|---|---|---|
| 205 | 205 | |
| 206 | 206 | memory_configure_bank(machine, "bank1", 0, 4, &ROM[0x10000], 0x4000); |
| 207 | 207 | |
| 208 | state->konami2 = devtag_get_device(machine, "konami2"); | |
| 209 | state->k007121 = devtag_get_device(machine, "k007121"); | |
| 208 | state->konami2 = machine->device("konami2"); | |
| 209 | state->k007121 = machine->device("k007121"); | |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | static MACHINE_DRIVER_START( fastlane ) |
| r8581 | r8582 | |
|---|---|---|
| 594 | 594 | |
| 595 | 595 | static MACHINE_START(gamecstl) |
| 596 | 596 | { |
| 597 | gamecstl_devices.pit8254 = devtag_get_device( machine, "pit8254" ); | |
| 598 | gamecstl_devices.pic8259_1 = devtag_get_device( machine, "pic8259_1" ); | |
| 599 | gamecstl_devices.pic8259_2 = devtag_get_device( machine, "pic8259_2" ); | |
| 600 | gamecstl_devices.dma8237_1 = devtag_get_device( machine, "dma8237_1" ); | |
| 601 | gamecstl_devices.dma8237_2 = devtag_get_device( machine, "dma8237_2" ); | |
| 597 | gamecstl_devices.pit8254 = machine->device( "pit8254" ); | |
| 598 | gamecstl_devices.pic8259_1 = machine->device( "pic8259_1" ); | |
| 599 | gamecstl_devices.pic8259_2 = machine->device( "pic8259_2" ); | |
| 600 | gamecstl_devices.dma8237_1 = machine->device( "dma8237_1" ); | |
| 601 | gamecstl_devices.dma8237_2 = machine->device( "dma8237_2" ); | |
| 602 | 602 | } |
| 603 | 603 | |
| 604 | 604 | static MACHINE_RESET(gamecstl) |
| 605 | 605 | { |
| 606 | 606 | memory_set_bankptr(machine, "bank1", memory_region(machine, "user1") + 0x30000); |
| 607 | 607 | |
| 608 | cpu_set_irq_callback( | |
| 608 | cpu_set_irq_callback(m | |
| 609 | 609 | } |
| 610 | 610 | |
| 611 | 611 |
| r8581 | r8582 | |
|---|---|---|
| 475 | 475 | { |
| 476 | 476 | cidelsa_state *state = (cidelsa_state *)machine->driver_data; |
| 477 | 477 | |
| 478 | state->cdp1802 = | |
| 478 | state->cdp1802 = m | |
| 479 | 479 | |
| 480 | 480 | /* reset the CPU */ |
| 481 | 481 | state->cdp1802_mode = CDP1802_MODE_RESET; |
| r8581 | r8582 | |
|---|---|---|
| 462 | 462 | |
| 463 | 463 | machine->generic.paletteram.u8 = auto_alloc_array_clear(machine, UINT8, 0x1000); |
| 464 | 464 | |
| 465 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 466 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 467 | state->k053246 = devtag_get_device(machine, "k053246"); | |
| 468 | state->k053251 = devtag_get_device(machine, "k053251"); | |
| 469 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 470 | state->k054000 = devtag_get_device(machine, "k054000"); | |
| 471 | state->k053260 = devtag_get_device(machine, "k053260"); | |
| 465 | state->maincpu = machine->device("maincpu"); | |
| 466 | state->audiocpu = machine->device("audiocpu"); | |
| 467 | state->k053246 = machine->device("k053246"); | |
| 468 | state->k053251 = machine->device("k053251"); | |
| 469 | state->k052109 = machine->device("k052109"); | |
| 470 | state->k054000 = machine->device("k054000"); | |
| 471 | state->k053260 = machine->device("k053260"); | |
| 472 | 472 | |
| 473 | 473 | state_save_register_global(machine, state->irq_enabled); |
| 474 | 474 | state_save_register_global(machine, state->sprite_colorbase); |
| r8581 | r8582 | |
| 482 | 482 | vendetta_state *state = (vendetta_state *)machine->driver_data; |
| 483 | 483 | int i; |
| 484 | 484 | |
| 485 | konami_configure_set_lines( | |
| 485 | konami_configure_set_lines(m | |
| 486 | 486 | |
| 487 | 487 | for (i = 0; i < 3; i++) |
| 488 | 488 | { |
| r8581 | r8582 | |
|---|---|---|
| 1047 | 1047 | workram = auto_alloc_array(machine, UINT16, 0x04000 / 2); |
| 1048 | 1048 | |
| 1049 | 1049 | /* init the memory mapper */ |
| 1050 | segaic16_memory_mapper_init( | |
| 1050 | segaic16_memory_mapper_init(m | |
| 1051 | 1051 | |
| 1052 | 1052 | /* init the FD1094 */ |
| 1053 | 1053 | fd1094_driver_init(machine, "maincpu", segaic16_memory_mapper_set_decrypted); |
| r8581 | r8582 | |
| 1059 | 1059 | state->i8751_initial_config = NULL; |
| 1060 | 1060 | state->disable_screen_blanking = 0; |
| 1061 | 1061 | |
| 1062 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1063 | state->soundcpu = devtag_get_device(machine, "soundcpu"); | |
| 1064 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 1065 | state->ymsnd = devtag_get_device(machine, "ymsnd"); | |
| 1066 | state->_315_5248_1 = devtag_get_device(machine, "315_5248"); | |
| 1067 | state->_315_5250_1 = devtag_get_device(machine, "315_5250_1"); | |
| 1068 | state->_315_5250_2 = devtag_get_device(machine, "315_5250_2"); | |
| 1062 | state->maincpu = machine->device("maincpu"); | |
| 1063 | state->soundcpu = machine->device("soundcpu"); | |
| 1064 | state->mcu = machine->device("mcu"); | |
| 1065 | state->ymsnd = machine->device("ymsnd"); | |
| 1066 | state->_315_5248_1 = machine->device("315_5248"); | |
| 1067 | state->_315_5250_1 = machine->device("315_5250_1"); | |
| 1068 | state->_315_5250_2 = machine->device("315_5250_2"); | |
| 1069 | 1069 | |
| 1070 | 1070 | state_save_register_global(machine, state->disable_screen_blanking); |
| 1071 | 1071 | state_save_register_global(machine, state->mj_input_num); |
| r8581 | r8582 | |
| 1112 | 1112 | segaic16_memory_mapper_config(machine, state->i8751_initial_config); |
| 1113 | 1113 | segaic16_tilemap_reset(machine, 0); |
| 1114 | 1114 | |
| 1115 | fd1094_machine_init( | |
| 1115 | fd1094_machine_init(m | |
| 1116 | 1116 | |
| 1117 | 1117 | /* if we have a fake i8751 handler, disable the actual 8751, otherwise crank the interleave */ |
| 1118 | 1118 | if (state->i8751_vblank_hook != NULL) |
| r8581 | r8582 | |
| 3401 | 3401 | ROM_REGION( 0x2000, "user1", 0 ) /* decryption key */ |
| 3402 | 3402 | ROM_LOAD( "317-0059.key", 0x0000, 0x2000, NO_DUMP ) |
| 3403 | 3403 | |
| 3404 | ROM_REGION16_BE( 0x040000, "user2", ROMREGION_ERASE00 ) /* working overlay */ | |
| 3405 | ||
| 3406 | 3404 | ROM_REGION( 0x30000, "gfx1", 0 ) /* tiles */ |
| 3407 | 3405 | ROM_LOAD( "epr-11493.b9", 0x00000, 0x10000, CRC(654485d9) SHA1(b431270564c4e33fd70c8c85af1fcbff8b59ba49) ) |
| 3408 | 3406 | ROM_LOAD( "epr-11494.b10", 0x10000, 0x10000, CRC(b67971ab) SHA1(95cb6927baf425bcc290832ea9741b19852c7a1b) ) |
| r8581 | r8582 | |
| 3554 | 3552 | Altered Beast, Sega System 16B |
| 3555 | 3553 | CPU: 68000 + i8751 (317-0078) |
| 3556 | 3554 | ROM Board: 171-5521 |
| 3555 | Sega ID# for ROM board: 834-6661-10 | |
| 3557 | 3556 | */ |
| 3558 | 3557 | ROM_START( altbeast ) |
| 3559 | 3558 | ROM_REGION( 0x040000, "maincpu", 0 ) /* 68000 code */ |
| r8581 | r8582 | |
| 3710 | 3709 | ROM_LOAD( "opr-11672.a11", 0x10000, 0x20000, CRC(bbd7f460) SHA1(bbc5c2219cb3a827d84062b19affd9780da2a3cf) ) |
| 3711 | 3710 | ROM_LOAD( "opr-11673.a12", 0x30000, 0x20000, CRC(400c4a36) SHA1(de4bdfa91734410e0a7f6a16bf8336db172f458a) ) |
| 3712 | 3711 | |
| 3713 | ROM_REGION( 0x2000, "u | |
| 3712 | ROM_REGION( 0x2000, "mcu | |
| 3714 | 3713 | ROM_LOAD( "317-0066.key", 0x0000, 0x2000, CRC(ed85a054) SHA1(dcc84ec077a8a489f45abfd2bf4a9ba377da28a5) ) |
| 3715 | 3714 | ROM_END |
| 3716 | 3715 | |
| r8581 | r8582 | |
| 3788 | 3787 | ROM_LOAD( "opr-11672.a11", 0x10000, 0x20000, CRC(bbd7f460) SHA1(bbc5c2219cb3a827d84062b19affd9780da2a3cf) ) |
| 3789 | 3788 | ROM_LOAD( "opr-11673.a12", 0x30000, 0x20000, CRC(400c4a36) SHA1(de4bdfa91734410e0a7f6a16bf8336db172f458a) ) |
| 3790 | 3789 | |
| 3791 | ROM_REGION( 0x2000, "u | |
| 3790 | ROM_REGION( 0x2000, "mcu | |
| 3792 | 3791 | ROM_LOAD( "317-0066.key", 0x0000, 0x2000, CRC(ed85a054) SHA1(dcc84ec077a8a489f45abfd2bf4a9ba377da28a5) ) |
| 3793 | 3792 | ROM_END |
| 3794 | 3793 | |
| 3795 | 3794 | /************************************************************************************************************************** |
| 3796 | 3795 | Jyuohki (Altered Beast), Sega System 16B |
| 3796 | CPU: FD1094 (317-0069) | |
| 3797 | ROM Board: 171-5521 | |
| 3798 | Sega ID# for ROM board: 834-6661-07 | |
| 3799 | */ | |
| 3800 | ROM_START( altbeastj2 ) | |
| 3801 | ROM_REGION( 0x040000, "maincpu", 0 ) /* 68000 code */ | |
| 3802 | ROM_LOAD16_BYTE( "epr-11742.a7", 0x000000, 0x20000, CRC(61839534) SHA1(0246985ec642fb44d33acbbbec9f6a1936afb302) ) | |
| 3803 | ROM_LOAD16_BYTE( "epr-11741.a5", 0x000001, 0x20000, CRC(9b2159cb) SHA1(dba53afcbb42be3e2611d00324bca6544faec071) ) | |
| 3804 | ||
| 3805 | ROM_REGION( 0x2000, "user1", 0 ) /* decryption key */ | |
| 3806 | ROM_LOAD( "317-0069.key", 0x0000, 0x2000, NO_DUMP ) /* The "9" was printed over a "3" */ | |
| 3807 | ||
| 3808 | ROM_REGION( 0xc0000, "gfx1", 0 ) /* tiles */ | |
| 3809 | ROM_LOAD( "epr-11722.a14", 0x00000, 0x10000, CRC(adaa8db5) SHA1(3262c98d13d08c333d16052cac841f44d2f99743) ) /* plane 1 */ | |
| 3810 | ROM_LOAD( "epr-11736.b14", 0x20000, 0x10000, CRC(e9ad5e89) SHA1(769628eee6e194a84aa8a3729f4e7d07dd3ba25c) ) | |
| 3811 | ROM_LOAD( "epr-11723.a15", 0x40000, 0x10000, CRC(131a3f9a) SHA1(8182c3b8ce7a2f02b226cfa2081187593c9d0d0b) ) /* plane 2 */ | |
| 3812 | ROM_LOAD( "epr-11737.b15", 0x60000, 0x10000, CRC(2e420023) SHA1(3aa2c3b6fccafb4d53b6ab99b95181d3eed7c77f) ) | |
| 3813 | ROM_LOAD( "epr-11724.a16", 0x80000, 0x10000, CRC(6f2ed50a) SHA1(55d0c4299e7240b0ef5316b48db7a158145c76ab) ) /* plane 3 */ | |
| 3814 | ROM_LOAD( "epr-11738.b16", 0xa0000, 0x10000, CRC(de3d6d02) SHA1(428811f21c68761022521a17fc4716f6e7214b20) ) | |
| 3815 | ||
| 3816 | ROM_REGION16_BE( 0x200000, "gfx2", 0 ) /* sprites */ | |
| 3817 | ROM_LOAD16_BYTE( "epr-11725.b1", 0x000001, 0x010000, CRC(f8b3684e) SHA1(3de2685cae5fb3c954b8440fafce313072747469) ) | |
| 3818 | ROM_LOAD16_BYTE( "epr-11729.b5", 0x000000, 0x010000, CRC(ae3c2793) SHA1(c4f46861ea63ffa3c038a1ef931479b94e5382df) ) | |
| 3819 | ROM_LOAD16_BYTE( "epr-11726.b2", 0x040001, 0x010000, CRC(3cce5419) SHA1(fccdbd6d05f5927272e7d6e5f997418d4fa2baf5) ) | |
| 3820 | ROM_LOAD16_BYTE( "epr-11730.b6", 0x040000, 0x010000, CRC(3af62b55) SHA1(9f079af88aaf2447948c9ac01c6cbd1e79539704) ) | |
| 3821 | ROM_LOAD16_BYTE( "epr-11727.b3", 0x080001, 0x010000, CRC(b0390078) SHA1(9035d9f45c67bdc802710018722943f5b63e8b5d) ) | |
| 3822 | ROM_LOAD16_BYTE( "epr-11731.b7", 0x080000, 0x010000, CRC(2a87744a) SHA1(421b3926de046ddeddad05f65fc6b5078af28dbd) ) | |
| 3823 | ROM_LOAD16_BYTE( "epr-11728.b4", 0x0c0001, 0x010000, CRC(f3a43fd8) SHA1(d42833ecd0c1920f1a6904d32c096f12d8622141) ) | |
| 3824 | ROM_LOAD16_BYTE( "epr-11732.b8", 0x0c0000, 0x010000, CRC(2fb3e355) SHA1(960e0a66b23f79833b011ea35a5a412dffb47083) ) | |
| 3825 | ROM_LOAD16_BYTE( "epr-11717.a1", 0x100001, 0x010000, CRC(676be0cb) SHA1(1e7d4c5f231992f111cc7885e97bc5a7267a5e89) ) | |
| 3826 | ROM_LOAD16_BYTE( "epr-11733.b10", 0x100000, 0x010000, CRC(802cac94) SHA1(24e5aa74ce8b6c53c78cc33a41a473df3fbce639) ) | |
| 3827 | ROM_LOAD16_BYTE( "epr-11718.a2", 0x140001, 0x010000, CRC(882864c2) SHA1(bd44bbdc13e5fd1b5c31c343da00a75b9dd90478) ) | |
| 3828 | ROM_LOAD16_BYTE( "epr-11734.b11", 0x140000, 0x010000, CRC(76c704d2) SHA1(35b393071e29b8d122d3f904b923689a7dddc808) ) | |
| 3829 | ROM_LOAD16_BYTE( "epr-11719.a3", 0x180001, 0x010000, CRC(339987f7) SHA1(b5650f8bdbd44510e84686b20daf70bc4a564f28) ) | |
| 3830 | ROM_LOAD16_BYTE( "epr-11735.b12", 0x180000, 0x010000, CRC(4fe406aa) SHA1(7f068b81f35be4cc4785824ed524d28f201ff0a5) ) | |
| 3831 | ||
| 3832 | ROM_REGION( 0x50000, "soundcpu", 0 ) /* sound CPU */ | |
| 3833 | ROM_LOAD( "epr-11671.a10", 0x00000, 0x08000, CRC(2b71343b) SHA1(8a657f787de2b9d5161ed2c109642a148348af09) ) | |
| 3834 | ROM_LOAD( "opr-11672.a11", 0x10000, 0x20000, CRC(bbd7f460) SHA1(bbc5c2219cb3a827d84062b19affd9780da2a3cf) ) | |
| 3835 | ROM_LOAD( "opr-11673.a12", 0x30000, 0x20000, CRC(400c4a36) SHA1(de4bdfa91734410e0a7f6a16bf8336db172f458a) ) | |
| 3836 | ROM_END | |
| 3837 | ||
| 3838 | /************************************************************************************************************************** | |
| 3839 | Jyuohki (Altered Beast), Sega System 16B | |
| 3797 | 3840 | CPU: FD1094 (317-0065) |
| 3798 | 3841 | ROM Board: 171-5521 |
| 3799 | 3842 | */ |
| r8581 | r8582 | |
| 3805 | 3848 | ROM_REGION( 0x2000, "user1", 0 ) /* decryption key */ |
| 3806 | 3849 | ROM_LOAD( "317-0065.key", 0x0000, 0x2000, NO_DUMP ) |
| 3807 | 3850 | |
| 3808 | ROM_REGION16_BE( 0x040000, "user2", ROMREGION_ERASE00 ) /* working overlay */ | |
| 3809 | ||
| 3810 | 3851 | ROM_REGION( 0x60000, "gfx1", 0 ) /* tiles */ |
| 3811 | 3852 | ROM_LOAD( "opr-11674.a14", 0x00000, 0x20000, CRC(a57a66d5) SHA1(5103583d48997abad12a0c5fee26431c486ced52) ) |
| 3812 | 3853 | ROM_LOAD( "opr-11675.a15", 0x20000, 0x20000, CRC(2ef2f144) SHA1(38d22d609db2d9b6067b5d12f6499436de4605cb) ) |
| 3813 | 3854 | ROM_LOAD( "opr-11676.a16", 0x40000, 0x20000, CRC(0c04acac) SHA1(87fe2a0dd9913f9550e9b4cbc7e7465b61640e07) ) |
| 3855 | /* If this is truly a Japanese set it should use these roms: | |
| 3856 | ROM_LOAD( "epr-11722.a14", 0x00000, 0x10000, CRC(adaa8db5) SHA1(3262c98d13d08c333d16052cac841f44d2f99743) ) | |
| 3857 | ROM_LOAD( "epr-11736.b14", 0x20000, 0x10000, CRC(e9ad5e89) SHA1(769628eee6e194a84aa8a3729f4e7d07dd3ba25c) ) | |
| 3858 | ROM_LOAD( "epr-11723.a15", 0x40000, 0x10000, CRC(131a3f9a) SHA1(8182c3b8ce7a2f02b226cfa2081187593c9d0d0b) ) | |
| 3859 | ROM_LOAD( "epr-11737.b15", 0x60000, 0x10000, CRC(2e420023) SHA1(3aa2c3b6fccafb4d53b6ab99b95181d3eed7c77f) ) | |
| 3860 | ROM_LOAD( "epr-11724.a16", 0x80000, 0x10000, CRC(6f2ed50a) SHA1(55d0c4299e7240b0ef5316b48db7a158145c76ab) ) | |
| 3861 | ROM_LOAD( "epr-11738.b16", 0xa0000, 0x10000, CRC(de3d6d02) SHA1(428811f21c68761022521a17fc4716f6e7214b20) ) | |
| 3862 | */ | |
| 3814 | 3863 | |
| 3815 | 3864 | ROM_REGION16_BE( 0x100000, "gfx2", 0 ) /* sprites */ |
| 3816 | 3865 | ROM_LOAD16_BYTE( "epr-11677.b1", 0x00001, 0x20000, CRC(a01425cd) SHA1(72be5ec29e476601f9bf6aaedef9b73cedeb42f0) ) |
| r8581 | r8582 | |
| 3821 | 3870 | ROM_LOAD16_BYTE( "epr-11683.b7", 0x80000, 0x20000, CRC(f9a60f06) SHA1(0cffcfdb02733feaa869198b7e668c58b47c321a) ) |
| 3822 | 3871 | ROM_LOAD16_BYTE( "epr-11680.b4", 0xc0001, 0x20000, CRC(f43dcdec) SHA1(2941500cf33afca487f19f2329033d5d17aad826) ) |
| 3823 | 3872 | ROM_LOAD16_BYTE( "epr-11684.b8", 0xc0000, 0x20000, CRC(b20c0edb) SHA1(6c8694d05e3adac37c9015037ab800233371db36) ) |
| 3873 | /* If this is truly a Japanese set it should use these roms: | |
| 3874 | ROM_LOAD16_BYTE( "epr-11725.b1", 0x000001, 0x010000, CRC(f8b3684e) SHA1(3de2685cae5fb3c954b8440fafce313072747469) ) | |
| 3875 | ROM_LOAD16_BYTE( "epr-11729.b5", 0x000000, 0x010000, CRC(ae3c2793) SHA1(c4f46861ea63ffa3c038a1ef931479b94e5382df) ) | |
| 3876 | ROM_LOAD16_BYTE( "epr-11726.b2", 0x040001, 0x010000, CRC(3cce5419) SHA1(fccdbd6d05f5927272e7d6e5f997418d4fa2baf5) ) | |
| 3877 | ROM_LOAD16_BYTE( "epr-11730.b6", 0x040000, 0x010000, CRC(3af62b55) SHA1(9f079af88aaf2447948c9ac01c6cbd1e79539704) ) | |
| 3878 | ROM_LOAD16_BYTE( "epr-11727.b3", 0x080001, 0x010000, CRC(b0390078) SHA1(9035d9f45c67bdc802710018722943f5b63e8b5d) ) | |
| 3879 | ROM_LOAD16_BYTE( "epr-11731.b7", 0x080000, 0x010000, CRC(2a87744a) SHA1(421b3926de046ddeddad05f65fc6b5078af28dbd) ) | |
| 3880 | ROM_LOAD16_BYTE( "epr-11728.b4", 0x0c0001, 0x010000, CRC(f3a43fd8) SHA1(d42833ecd0c1920f1a6904d32c096f12d8622141) ) | |
| 3881 | ROM_LOAD16_BYTE( "epr-11732.b8", 0x0c0000, 0x010000, CRC(2fb3e355) SHA1(960e0a66b23f79833b011ea35a5a412dffb47083) ) | |
| 3882 | ROM_LOAD16_BYTE( "epr-11717.a1", 0x100001, 0x010000, CRC(676be0cb) SHA1(1e7d4c5f231992f111cc7885e97bc5a7267a5e89) ) | |
| 3883 | ROM_LOAD16_BYTE( "epr-11733.b10", 0x100000, 0x010000, CRC(802cac94) SHA1(24e5aa74ce8b6c53c78cc33a41a473df3fbce639) ) | |
| 3884 | ROM_LOAD16_BYTE( "epr-11718.a2", 0x140001, 0x010000, CRC(882864c2) SHA1(bd44bbdc13e5fd1b5c31c343da00a75b9dd90478) ) | |
| 3885 | ROM_LOAD16_BYTE( "epr-11734.b11", 0x140000, 0x010000, CRC(76c704d2) SHA1(35b393071e29b8d122d3f904b923689a7dddc808) ) | |
| 3886 | ROM_LOAD16_BYTE( "epr-11719.a3", 0x180001, 0x010000, CRC(339987f7) SHA1(b5650f8bdbd44510e84686b20daf70bc4a564f28) ) | |
| 3887 | ROM_LOAD16_BYTE( "epr-11735.b12", 0x180000, 0x010000, CRC(4fe406aa) SHA1(7f068b81f35be4cc4785824ed524d28f201ff0a5) ) | |
| 3888 | */ | |
| 3824 | 3889 | |
| 3825 | 3890 | ROM_REGION( 0x50000, "soundcpu", 0 ) /* sound CPU */ |
| 3826 | 3891 | ROM_LOAD( "epr-11671.a10", 0x00000, 0x08000, CRC(2b71343b) SHA1(8a657f787de2b9d5161ed2c109642a148348af09) ) |
| r8581 | r8582 | |
| 4173 | 4238 | ROM_REGION( 0x2000, "user1", 0 ) /* decryption key -- still WIP */ |
| 4174 | 4239 | ROM_LOAD( "317-0041.key", 0x0000, 0x2000, BAD_DUMP CRC(a30ae46c) SHA1(5e7361ab1f1d30c59d7f29152bc6f7175a0aa102) ) |
| 4175 | 4240 | |
| 4176 | ROM_REGION16_BE( 0x040000, "user2", ROMREGION_ERASE00 ) /* working overlay */ | |
| 4177 | ||
| 4178 | 4241 | ROM_REGION( 0x30000, "gfx1", 0 ) /* tiles */ |
| 4179 | 4242 | ROM_LOAD( "epr-10994.b9", 0x00000, 0x10000, CRC(3035468a) SHA1(778366815a2a74188d72d64c5e1e95215bc4ca81) ) |
| 4180 | 4243 | ROM_LOAD( "epr-10995.b10", 0x10000, 0x10000, CRC(6b97aff1) SHA1(323bafe43a703476f6f4e68b46ec86bb9152f88e) ) |
| r8581 | r8582 | |
| 4821 | 4884 | */ |
| 4822 | 4885 | ROM_START( goldnaxej ) |
| 4823 | 4886 | ROM_REGION( 0x0c0000, "maincpu", 0 ) /* 68000 code */ |
| 4887 | /* fails rom test on 8 & 6 ?! roms verfied from two seperate sources */ | |
| 4824 | 4888 | ROM_LOAD16_BYTE( "epr-12540.a7", 0x00000, 0x20000, CRC(0c7ccc6d) SHA1(25bc29eee731befc665472c2c1998cac8447cc21) ) |
| 4825 | 4889 | ROM_LOAD16_BYTE( "epr-12539.a5", 0x00001, 0x20000, CRC(1f24f7d0) SHA1(a09cdf394c03069707f7ed400b8fbdc13674fa74) ) |
| 4826 | 4890 | /* emtpy 0x40000 - 0x80000 */ |
| r8581 | r8582 | |
| 4858 | 4922 | Golden Axe (Japan), Sega System 16B |
| 4859 | 4923 | CPU: FD1094 (317-0120) |
| 4860 | 4924 | ROM Board: 171-5704 |
| 4925 | Sega ID# for ROM board: 834-7002-11 | |
| 4861 | 4926 | */ |
| 4862 | 4927 | ROM_START( goldnaxe3 ) |
| 4863 | 4928 | ROM_REGION( 0xc0000, "maincpu", 0) /* 68000 code */ |
| 4864 | /* fails rom test on 8 & 6 ?! */ | |
| 4865 | ROM_LOAD16_BYTE( "7.bin", 0x00000, 0x20000, CRC(48332c76) SHA1(4cdf7dc2f504a030ae63b4854bb76a3f2cc1d96b) ) | |
| 4866 | ROM_LOAD16_BYTE( "5.bin", 0x00001, 0x20000, CRC(8e58f342) SHA1(a972b05f7d5d7228067f97724191fce1aeb0371d) ) | |
| 4929 | /* fails rom test on 8 & 6 ?! roms verfied from two seperate sources */ | |
| 4930 | ROM_LOAD16_BYTE( "epr-12525.a7", 0x00000, 0x20000, CRC(48332c76) SHA1(4cdf7dc2f504a030ae63b4854bb76a3f2cc1d96b) ) | |
| 4931 | ROM_LOAD16_BYTE( "epr-12524.a5", 0x00001, 0x20000, CRC(8e58f342) SHA1(a972b05f7d5d7228067f97724191fce1aeb0371d) ) | |
| 4867 | 4932 | /* emtpy 0x40000 - 0x80000 */ |
| 4868 | 4933 | ROM_LOAD16_BYTE( "epr-12521.a8", 0x80000, 0x20000, CRC(5001d713) SHA1(68cf3f48d6e440e5b800503a211adda02107d956) ) |
| 4869 | 4934 | ROM_LOAD16_BYTE( "epr-12519.a6", 0x80001, 0x20000, CRC(4438ca8e) SHA1(0af53d64f06abf41f4c46540d28d5f008a4835a3) ) |
| r8581 | r8582 | |
| 4940 | 5005 | Golden Axe, Sega System 16B |
| 4941 | 5006 | CPU: FD1094 (317-0110) |
| 4942 | 5007 | ROM Board: 171-5797 |
| 5008 | Sega ID# for ROM board: 834-7002 | |
| 4943 | 5009 | */ |
| 4944 | 5010 | ROM_START( goldnaxe1 ) |
| 4945 | 5011 | ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 code */ |
| r8581 | r8582 | |
| 5523 | 5589 | ROM_LOAD( "epr-11377.a10", 0x00000, 0x08000, CRC(0fb6af34) SHA1(ae9da18bd2db317ed96c5f642f90cc1eba60ba99) ) /* MC8123B (317-0054) encrypted version of epr-11361.a10 above */ |
| 5524 | 5590 | ROM_LOAD( "epr-11362.a11", 0x10000, 0x20000, CRC(256af749) SHA1(041bd007ea7708c6d69f07865828b9bd17a139f5) ) |
| 5525 | 5591 | |
| 5526 | ROM_REGION( 0x2000, "u | |
| 5592 | ROM_REGION( 0x2000, "mcu | |
| 5527 | 5593 | ROM_LOAD( "317-0054.key", 0x0000, 0x2000, CRC(39fd4535) SHA1(93bbb139d2d5acc6a1e338d92077e79a5e880b2e) ) |
| 5528 | 5594 | ROM_END |
| 5529 | 5595 | |
| r8581 | r8582 | |
| 5561 | 5627 | ROM_LOAD( "epr-11288.a8", 0x10000, 0x8000, CRC(c8df8460) SHA1(0aeb41a493df155edb5f600f53ec43b798927dff) ) |
| 5562 | 5628 | ROM_LOAD( "epr-11289.a9", 0x20000, 0x8000, CRC(e5a4cf30) SHA1(d1982da7a550c11ab2253f5d64ac6ab847da0a04) ) |
| 5563 | 5629 | |
| 5564 | ROM_REGION( 0x2000, "u | |
| 5630 | ROM_REGION( 0x2000, "mcu | |
| 5565 | 5631 | ROM_LOAD( "317-0054.key", 0x0000, 0x2000, CRC(39fd4535) SHA1(93bbb139d2d5acc6a1e338d92077e79a5e880b2e) ) |
| 5566 | 5632 | ROM_END |
| 5567 | 5633 | |
| r8581 | r8582 | |
| 6334 | 6400 | static DRIVER_INIT( altbeas4_5521 ) |
| 6335 | 6401 | { |
| 6336 | 6402 | DRIVER_INIT_CALL(generic_5521); |
| 6337 | mc8123_decrypt_rom(machine, "soundcpu", "u | |
| 6403 | mc8123_decrypt_rom(machine, "soundcpu", "mcu | |
| 6338 | 6404 | } |
| 6339 | 6405 | |
| 6340 | 6406 | |
| r8581 | r8582 | |
| 6431 | 6497 | static DRIVER_INIT( shinobi4_5521 ) |
| 6432 | 6498 | { |
| 6433 | 6499 | DRIVER_INIT_CALL(generic_5521); |
| 6434 | mc8123_decrypt_rom(machine, "soundcpu", "u | |
| 6500 | mc8123_decrypt_rom(machine, "soundcpu", "mcu | |
| 6435 | 6501 | } |
| 6436 | 6502 | |
| 6437 | 6503 | |
| 6438 | 6504 | static DRIVER_INIT( shinobi3_5358 ) |
| 6439 | 6505 | { |
| 6440 | 6506 | DRIVER_INIT_CALL(generic_5358); |
| 6441 | mc8123_decrypt_rom(machine, "soundcpu", "u | |
| 6507 | mc8123_decrypt_rom(machine, "soundcpu", "mcu | |
| 6442 | 6508 | } |
| 6443 | 6509 | |
| 6444 | 6510 | |
| r8581 | r8582 | |
| 6517 | 6583 | GAME( 1987, aliensyn3, aliensyn, system16b, aliensyn, aliensy3_5358, ROT0, "Sega", "Alien Syndrome (set 3, System 16B, FD1089A 317-0033)", 0 ) |
| 6518 | 6584 | GAME( 1987, aliensynj, aliensyn, system16b, aliensynj,aliensy3_5358, ROT0, "Sega", "Alien Syndrome (set 6, Japan, new, System 16B, FD1089A 317-0033)", 0 ) |
| 6519 | 6585 | |
| 6520 | GAME( 1988, altbeast, 0, system16b_8751, altbeast, altbeast_5521, ROT0, "Sega", "Altered Beast (set 7, 8751 317-0078)", 0 ) | |
| 6521 | GAME( 1988, altbeastj, altbeast, system16b_8751, altbeast, altbeasj_5521, ROT0, "Sega", "Juuouki (set 6, Japan, 8751 317-0077)", 0 ) | |
| 6522 | GAME( 1988, altbeast5, altbeast, system16b_8751, altbeast, altbeas5_5521, ROT0, "Sega", "Altered Beast (set 5, 8751 317-0076)", 0 ) | |
| 6586 | GAME( 1988, altbeast, 0, system16b_8751, altbeast, altbeast_5521, ROT0, "Sega", "Altered Beast (set 8, 8751 317-0078)", 0 ) | |
| 6587 | GAME( 1988, altbeastj, altbeast, system16b_8751, altbeast, altbeasj_5521, ROT0, "Sega", "Juuouki (set 7, Japan, 8751 317-0077)", 0 ) | |
| 6588 | GAME( 1988, altbeast5, altbeast, system16b_8751, altbeast, altbeas5_5521, ROT0, "Sega", "Altered Beast (set 6, 8751 317-0076)", 0 ) | |
| 6523 | 6589 | GAME( 1988, altbeast4, altbeast, system16b, altbeast, altbeas4_5521, ROT0, "Sega", "Altered Beast (set 4, MC-8123B 317-0066)", 0 ) |
| 6524 | 6590 | GAME( 1988, altbeastj3, altbeast, system16b, altbeast, generic_5521, ROT0, "Sega", "Juuouki (set 3, Japan, FD1094 317-0068)", 0 ) |
| 6525 | 6591 | GAME( 1988, altbeast2, altbeast, system16b, altbeast, altbeas4_5521, ROT0, "Sega", "Altered Beast (set 2, MC-8123B 317-0066)", 0 ) |
| 6526 | GAME( 1988, altbeastj1, altbeast, system16b, altbeast, generic_5521, ROT0, "Sega", "Juuouki (set 1, Japan, FD1094 317-0065)", GAME_NOT_WORKING ) | |
| 6592 | GAME( 1988, altbeastj1, altbeast, system16b, altbeast, generic_5521, ROT0, "Sega", "Juuouki (set 1, Japan, FD1094 317-0065)", GAME_NOT_WORKING ) /* No CPU decrypt key */ | |
| 6593 | GAME( 1988, altbeastj2, altbeast, system16b, altbeast, generic_5521, ROT0, "Sega", "Juuouki (set 5, Japan, FD1094 317-0069)", GAME_NOT_WORKING ) /* No CPU decrypt key */ | |
| 6527 | 6594 | |
| 6528 | 6595 | GAME( 1990, aurail, 0, system16b, aurail, generic_5704, ROT0, "Sega / Westone", "Aurail (set 3, US, unprotected)", 0 ) |
| 6529 | 6596 | GAME( 1990, aurail1, aurail, system16b, aurail, aurail1_5704, ROT0, "Sega / Westone", "Aurail (set 2, World, FD1089B 317-0168)", 0 ) |
| r8581 | r8582 | |
|---|---|---|
| 69 | 69 | { |
| 70 | 70 | espial_state *state = (espial_state *)machine->driver_data; |
| 71 | 71 | |
| 72 | state->maincpu = | |
| 72 | state->maincpu = m | |
| 73 | 73 | state->audiocpu = NULL; |
| 74 | 74 | |
| 75 | 75 | state_save_register_global(machine, state->marineb_active_low_flipscreen); |
| r8581 | r8582 | |
|---|---|---|
| 314 | 314 | { |
| 315 | 315 | pktgaldx_state *state = (pktgaldx_state *)machine->driver_data; |
| 316 | 316 | |
| 317 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 318 | state->deco16ic = devtag_get_device(machine, "deco_custom"); | |
| 317 | state->maincpu = machine->device("maincpu"); | |
| 318 | state->deco16ic = machine->device("deco_custom"); | |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | static MACHINE_DRIVER_START( pktgaldx ) |
| r8581 | r8582 | |
|---|---|---|
| 245 | 245 | |
| 246 | 246 | static VIDEO_UPDATE( nwktr ) |
| 247 | 247 | { |
| 248 | running_device *voodoo = devtag_get_device(screen->machine, "voodoo"); | |
| 249 | running_device *k001604 = devtag_get_device(screen->machine, "k001604"); | |
| 248 | running_device *voodoo = screen->machine->device("voodoo"); | |
| 249 | running_device *k001604 = screen->machine->device("k001604"); | |
| 250 | 250 | |
| 251 | 251 | bitmap_fill(bitmap, cliprect, screen->machine->pens[0]); |
| 252 | 252 | |
| r8581 | r8582 | |
| 263 | 263 | |
| 264 | 264 | static READ32_HANDLER( sysreg_r ) |
| 265 | 265 | { |
| 266 | running_device *adc12138 = | |
| 266 | running_device *adc12138 = | |
| 267 | 267 | UINT32 r = 0; |
| 268 | 268 | if (offset == 0) |
| 269 | 269 | { |
| r8581 | r8582 | |
| 296 | 296 | |
| 297 | 297 | static WRITE32_HANDLER( sysreg_w ) |
| 298 | 298 | { |
| 299 | running_device *adc12138 = | |
| 299 | running_device *adc12138 = | |
| 300 | 300 | if( offset == 0 ) |
| 301 | 301 | { |
| 302 | 302 | if (ACCESSING_BITS_24_31) |
| r8581 | r8582 | |
| 463 | 463 | static MACHINE_START( nwktr ) |
| 464 | 464 | { |
| 465 | 465 | /* set conservative DRC options */ |
| 466 | ppcdrc_set_options( | |
| 466 | ppcdrc_set_options(m | |
| 467 | 467 | |
| 468 | 468 | /* configure fast RAM regions for DRC */ |
| 469 | ppcdrc_add_fastram( | |
| 469 | ppcdrc_add_fastram(m | |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | 472 | static ADDRESS_MAP_START( nwktr_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| r8581 | r8582 | |
| 618 | 618 | static void sound_irq_callback(running_machine *machine, int irq) |
| 619 | 619 | { |
| 620 | 620 | if (irq == 0) |
| 621 | generic_pulse_irq_line( | |
| 621 | generic_pulse_irq_line(m | |
| 622 | 622 | else |
| 623 | generic_pulse_irq_line( | |
| 623 | generic_pulse_irq_line(m | |
| 624 | 624 | } |
| 625 | 625 | |
| 626 | 626 | static const k056800_interface nwktr_k056800_interface = |
| r8581 | r8582 | |
|---|---|---|
| 268 | 268 | { |
| 269 | 269 | circus_state *state = (circus_state *)machine->driver_data; |
| 270 | 270 | |
| 271 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 272 | state->samples = devtag_get_device(machine, "samples"); | |
| 273 | state->discrete = devtag_get_device(machine, "discrete"); | |
| 271 | state->maincpu = machine->device("maincpu"); | |
| 272 | state->samples = machine->device("samples"); | |
| 273 | state->discrete = machine->device("discrete"); | |
| 274 | 274 | |
| 275 | 275 | state_save_register_global(machine, state->clown_x); |
| 276 | 276 | state_save_register_global(machine, state->clown_y); |
| r8581 | r8582 | |
|---|---|---|
| 3673 | 3673 | |
| 3674 | 3674 | static DRIVER_INIT( bubsympb ) |
| 3675 | 3675 | { |
| 3676 | running_device *oki = | |
| 3676 | running_device *oki = m | |
| 3677 | 3677 | f3_game=BUBSYMPH; |
| 3678 | 3678 | //tile_decode(machine); |
| 3679 | 3679 |
| r8581 | r8582 | |
|---|---|---|
| 568 | 568 | { |
| 569 | 569 | champbas_state *state = (champbas_state *)machine->driver_data; |
| 570 | 570 | |
| 571 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 572 | state->mcu = devtag_get_device(machine, CPUTAG_MCU); | |
| 571 | state->maincpu = machine->device("maincpu"); | |
| 572 | state->mcu = machine->device(CPUTAG_MCU); | |
| 573 | 573 | |
| 574 | 574 | state_save_register_global(machine, state->watchdog_count); |
| 575 | 575 | state_save_register_global(machine, state->palette_bank); |
| r8581 | r8582 | |
| 579 | 579 | static MACHINE_START( exctsccr ) |
| 580 | 580 | { |
| 581 | 581 | champbas_state *state = (champbas_state *)machine->driver_data; |
| 582 | state->audiocpu = | |
| 582 | state->audiocpu = m | |
| 583 | 583 | |
| 584 | 584 | // FIXME |
| 585 | 585 | timer_pulse(machine, ATTOTIME_IN_HZ(75), NULL, 0, exctsccr_fm_callback); /* updates fm */ |
| r8581 | r8582 | |
|---|---|---|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | if (irqvector & 0x2) /* YM2151 has precedence */ |
| 122 | cpu_set_input_line_vector( | |
| 122 | cpu_set_input_line_vector(m | |
| 123 | 123 | else if (irqvector & 0x1) /* V30 */ |
| 124 | cpu_set_input_line_vector( | |
| 124 | cpu_set_input_line_vector(m | |
| 125 | 125 | |
| 126 | 126 | if (irqvector == 0) /* no IRQs pending */ |
| 127 | 127 | cputag_set_input_line(machine, "soundcpu", 0, CLEAR_LINE); |
| r8581 | r8582 | |
|---|---|---|
| 763 | 763 | |
| 764 | 764 | memory_configure_bank(machine, "bank10", 0, 8, memory_region(machine, "audiocpu") + 0xc000, 0x4000); |
| 765 | 765 | |
| 766 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 767 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 768 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 769 | state->tc0140syt = devtag_get_device(machine, "tc0140syt"); | |
| 770 | state->tc0100scn_1 = devtag_get_device(machine, "tc0100scn_1"); | |
| 771 | state->tc0100scn_2 = devtag_get_device(machine, "tc0100scn_2"); | |
| 772 | state->tc0100scn_3 = devtag_get_device(machine, "tc0100scn_3"); | |
| 766 | state->maincpu = machine->device("maincpu"); | |
| 767 | state->audiocpu = machine->device("audiocpu"); | |
| 768 | state->subcpu = machine->device("sub"); | |
| 769 | state->tc0140syt = machine->device("tc0140syt"); | |
| 770 | state->tc0100scn_1 = machine->device("tc0100scn_1"); | |
| 771 | state->tc0100scn_2 = machine->device("tc0100scn_2"); | |
| 772 | state->tc0100scn_3 = machine->device("tc0100scn_3"); | |
| 773 | 773 | |
| 774 | state->lscreen = devtag_get_device(machine, "lscreen"); | |
| 775 | state->mscreen = devtag_get_device(machine, "mscreen"); | |
| 776 | state->rscreen = devtag_get_device(machine, "rscreen"); | |
| 774 | state->lscreen = machine->device("lscreen"); | |
| 775 | state->mscreen = machine->device("mscreen"); | |
| 776 | state->rscreen = machine->device("rscreen"); | |
| 777 | 777 | |
| 778 | state->_2610_1l = devtag_get_device(machine, "2610.1.l"); | |
| 779 | state->_2610_1r = devtag_get_device(machine, "2610.1.r"); | |
| 780 | state->_2610_2l = devtag_get_device(machine, "2610.2.l"); | |
| 781 | state->_2610_2r = devtag_get_device(machine, "2610.2.r"); | |
| 778 | state->_2610_1l = machine->device("2610.1.l"); | |
| 779 | state->_2610_1r = machine->device("2610.1.r"); | |
| 780 | state->_2610_2l = machine->device("2610.2.l"); | |
| 781 | state->_2610_2r = machine->device("2610.2.r"); | |
| 782 | 782 | |
| 783 | 783 | state_save_register_global(machine, state->cpua_ctrl); |
| 784 | 784 | state_save_register_global(machine, state->banknum); |
| r8581 | r8582 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | Arkanoid driver |
| 4 | 4 | |
| 5 | - I think the MCU dump we're using with the original sets is actually | |
| 6 | from a bootleg? It's similar to the ones dumped from other bootlegs | |
| 7 | and the 2/3 of the decapped MCUs appear to be very different. Another | |
| 8 | bootleg had a dump very similar to the fresh decaps instead. This | |
| 9 | needs sorting out properly. The hookups for the different types of MCU | |
| 10 | is not identical. | |
| 5 | 11 | |
| 6 | 12 | Japanese version support cocktail mode (DSW #7), the others don't. |
| 7 | 13 | |
| r8581 | r8582 | |
| 910 | 916 | { |
| 911 | 917 | arkanoid_state *state = (arkanoid_state *)machine->driver_data; |
| 912 | 918 | |
| 913 | state->mcu = | |
| 919 | state->mcu = m | |
| 914 | 920 | |
| 915 | 921 | state_save_register_global(machine, state->bootleg_cmd); |
| 916 | 922 | |
| r8581 | r8582 | |
| 1044 | 1050 | |
| 1045 | 1051 | ROM_START( arkanoid ) |
| 1046 | 1052 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 1047 | ROM_LOAD( "a75-01-1.rom", 0x0000, 0x8000, CRC(5bcda3b0) SHA1(52cadd38b5f8e8856f007a9c602d6b508f30be65) ) | |
| 1048 | ROM_LOAD( "a75-11.rom", 0x8000, 0x8000, CRC(eafd7191) SHA1(d2f8843b716718b1de209e97a874e8ce600f3f87) ) | |
| 1053 | ROM_LOAD( "a75-01-1.ic17", 0x0000, 0x8000, CRC(5bcda3b0) SHA1(52cadd38b5f8e8856f007a9c602d6b508f30be65) ) | |
| 1054 | ROM_LOAD( "a75-11.ic16", 0x8000, 0x8000, CRC(eafd7191) SHA1(d2f8843b716718b1de209e97a874e8ce600f3f87) ) | |
| 1049 | 1055 | |
| 1050 | 1056 | ROM_REGION( 0x0800, "mcu", 0 ) /* 2k for the microcontroller */ |
| 1051 | ROM_LOAD( "arkanoid. | |
| 1057 | ROM_LOAD( "arkanoid.ic14", 0x0000, 0x0800, CRC(515d77b6) SHA1(a302937683d11f663abd56a2fd7c174374e4d7fb) ) /* The real MCU should be A75-06 @ IC14 */ | |
| 1052 | 1058 | |
| 1053 | 1059 | ROM_REGION( 0x18000, "gfx1", 0 ) |
| 1054 | ROM_LOAD( "a75-03.rom", 0x00000, 0x8000, CRC(038b74ba) SHA1(ac053cc4908b4075f918748b89570e07a0ba5116) ) | |
| 1055 | ROM_LOAD( "a75-04.rom", 0x08000, 0x8000, CRC(71fae199) SHA1(5d253c46ccf4cd2976a5fb8b8713f0f345443d06) ) | |
| 1056 | ROM_LOAD( "a75-05.rom", 0x10000, 0x8000, CRC(c76374e2) SHA1(7520dd48de20db60a2038f134dcaa454988e7874) ) | |
| 1060 | ROM_LOAD( "a75-03.ic64", 0x00000, 0x8000, CRC(038b74ba) SHA1(ac053cc4908b4075f918748b89570e07a0ba5116) ) | |
| 1061 | ROM_LOAD( "a75-04.ic63", 0x08000, 0x8000, CRC(71fae199) SHA1(5d253c46ccf4cd2976a5fb8b8713f0f345443d06) ) | |
| 1062 | ROM_LOAD( "a75-05.ic62", 0x10000, 0x8000, CRC(c76374e2) SHA1(7520dd48de20db60a2038f134dcaa454988e7874) ) | |
| 1057 | 1063 | |
| 1058 | ROM_REGION( 0x0600, "proms", 0 ) | |
| 1059 | ROM_LOAD( "a75-07.bpr", 0x0000, 0x0200, CRC(0af8b289) SHA1(6bc589e8a609b4cf450aebedc8ce02d5d45c970f) ) /* red component */ | |
| 1060 | ROM_LOAD( "a75-08.bpr", 0x0200, 0x0200, CRC(abb002fb) SHA1(c14f56b8ef103600862e7930709d293b0aa97a73) ) /* green component */ | |
| 1061 | ROM_LOAD( "a75-09.bpr", 0x0400, 0x0200, CRC(a7c6c277) SHA1(adaa003dcd981576ea1cc5f697d709b2d6b2ea29) ) /* blue component */ | |
| 1064 | ROM_REGION( 0x0600, "proms", 0 ) /* BPROMs are silkscreened as 7621, actual BPROMs used are MMI 6306-1N */ | |
| 1065 | ROM_LOAD( "a75-07.ic24", 0x0000, 0x0200, CRC(0af8b289) SHA1(6bc589e8a609b4cf450aebedc8ce02d5d45c970f) ) /* red component */ | |
| 1066 | ROM_LOAD( "a75-08.ic23", 0x0200, 0x0200, CRC(abb002fb) SHA1(c14f56b8ef103600862e7930709d293b0aa97a73) ) /* green component */ | |
| 1067 | ROM_LOAD( "a75-09.ic22", 0x0400, 0x0200, CRC(a7c6c277) SHA1(adaa003dcd981576ea1cc5f697d709b2d6b2ea29) ) /* blue component */ | |
| 1068 | ||
| 1069 | // these were decapped, sort them! | |
| 1070 | ROM_REGION( 0x0800, "alt_mcus", 0 ) /* 2k for the microcontroller */ | |
| 1071 | ROM_LOAD( "arkanoid1_68705p3.ic14", 0x0000, 0x0800, CRC(1b68e2d8) SHA1(f642a7cb624ee14fb0e410de5ae1fc799d2fa1c2) ) // this is close to the supported MCU, is it a bootleg? | |
| 1072 | ROM_LOAD( "arkanoid_mcu.ic14", 0x0000, 0x0800, CRC(4e44b50a) SHA1(c61e7d158dc8e2b003c8158053ec139b904599af) ) // this has a more genuine Programmed By Yasu 1986 string in it with 0x00 fill near the end | |
| 1073 | ROM_LOAD( "arkanoid_68705p5.ic14", 0x0000, 0x0800, CRC(0be83647) SHA1(625fd1e6061123df612f115ef14a06cd6009f5d1) ) // same as above, but with 0xff fill | |
| 1062 | 1074 | ROM_END |
| 1063 | 1075 | |
| 1064 | 1076 | ROM_START( arkanoidu ) |
| 1065 | 1077 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 1066 | ROM_LOAD( "a75-19.bin", 0x0000, 0x8000, CRC(d3ad37d7) SHA1(a172a1ef5bb83ee2d8ed2842ef8968af19ad411e) ) | |
| 1067 | ROM_LOAD( "a75-18.bin", 0x8000, 0x8000, CRC(cdc08301) SHA1(05f54353cc8333af14fa985a2764960e20e8161a) ) | |
| 1078 | ROM_LOAD( "a75-19.ic17", 0x0000, 0x8000, CRC(d3ad37d7) SHA1(a172a1ef5bb83ee2d8ed2842ef8968af19ad411e) ) | |
| 1079 | ROM_LOAD( "a75-18.ic16", 0x8000, 0x8000, CRC(cdc08301) SHA1(05f54353cc8333af14fa985a2764960e20e8161a) ) | |
| 1068 | 1080 | |
| 1069 | 1081 | ROM_REGION( 0x0800, "mcu", 0 ) /* 2k for the microcontroller */ |
| 1070 | ROM_LOAD( "arknoidu. | |
| 1082 | ROM_LOAD( "arknoidu.ic14", 0x0000, 0x0800, BAD_DUMP CRC(de518e47) SHA1(b8eddd1c566505fb69e3d1207c7a9720dfb9f503) ) /* The real MCU should be A75-15 @ IC14?? */ | |
| 1071 | 1083 | |
| 1072 | 1084 | ROM_REGION( 0x18000, "gfx1", 0 ) |
| 1073 | ROM_LOAD( "a75-03.rom", 0x00000, 0x8000, CRC(038b74ba) SHA1(ac053cc4908b4075f918748b89570e07a0ba5116) ) | |
| 1074 | ROM_LOAD( "a75-04.rom", 0x08000, 0x8000, CRC(71fae199) SHA1(5d253c46ccf4cd2976a5fb8b8713f0f345443d06) ) | |
| 1075 | ROM_LOAD( "a75-05.rom", 0x10000, 0x8000, CRC(c76374e2) SHA1(7520dd48de20db60a2038f134dcaa454988e7874) ) | |
| 1085 | ROM_LOAD( "a75-03.ic64", 0x00000, 0x8000, CRC(038b74ba) SHA1(ac053cc4908b4075f918748b89570e07a0ba5116) ) | |
| 1086 | ROM_LOAD( "a75-04.ic63", 0x08000, 0x8000, CRC(71fae199) SHA1(5d253c46ccf4cd2976a5fb8b8713f0f345443d06) ) | |
| 1087 | ROM_LOAD( "a75-05.ic62", 0x10000, 0x8000, CRC(c76374e2) SHA1(7520dd48de20db60a2038f134dcaa454988e7874) ) | |
| 1076 | 1088 | |
| 1077 | ROM_REGION( 0x0600, "proms", 0 ) | |
| 1078 | ROM_LOAD( "a75-07.bpr", 0x0000, 0x0200, CRC(0af8b289) SHA1(6bc589e8a609b4cf450aebedc8ce02d5d45c970f) ) /* red component */ | |
| 1079 | ROM_LOAD( "a75-08.bpr", 0x0200, 0x0200, CRC(abb002fb) SHA1(c14f56b8ef103600862e7930709d293b0aa97a73) ) /* green component */ | |
| 1080 | ROM_LOAD( "a75-09.bpr", 0x0400, 0x0200, CRC(a7c6c277) SHA1(adaa003dcd981576ea1cc5f697d709b2d6b2ea29) ) /* blue component */ | |
| 1089 | ROM_REGION( 0x0600, "proms", 0 ) /* BPROMs are silkscreened as 7621, actual BPROMs used are MMI 6306-1N */ | |
| 1090 | ROM_LOAD( "a75-07.ic24", 0x0000, 0x0200, CRC(0af8b289) SHA1(6bc589e8a609b4cf450aebedc8ce02d5d45c970f) ) /* red component */ | |
| 1091 | ROM_LOAD( "a75-08.ic23", 0x0200, 0x0200, CRC(abb002fb) SHA1(c14f56b8ef103600862e7930709d293b0aa97a73) ) /* green component */ | |
| 1092 | ROM_LOAD( "a75-09.ic22", 0x0400, 0x0200, CRC(a7c6c277) SHA1(adaa003dcd981576ea1cc5f697d709b2d6b2ea29) ) /* blue component */ | |
| 1081 | 1093 | ROM_END |
| 1082 | 1094 | |
| 1083 | 1095 | ROM_START( arkanoiduo ) |
| 1084 | 1096 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 1085 | ROM_LOAD( "a75-01-1.rom", 0x0000, 0x8000, CRC(5bcda3b0) SHA1(52cadd38b5f8e8856f007a9c602d6b508f30be65) ) | |
| 1086 | ROM_LOAD( "a75-10.rom", 0x8000, 0x8000, CRC(a1769e15) SHA1(fbb45731246a098b29eb08de5d63074b496aaaba) ) | |
| 1097 | ROM_LOAD( "a75-01-1.ic17", 0x0000, 0x8000, CRC(5bcda3b0) SHA1(52cadd38b5f8e8856f007a9c602d6b508f30be65) ) | |
| 1098 | ROM_LOAD( "a75-10.ic16", 0x8000, 0x8000, CRC(a1769e15) SHA1(fbb45731246a098b29eb08de5d63074b496aaaba) ) | |
| 1087 | 1099 | |
| 1088 | 1100 | ROM_REGION( 0x0800, "mcu", 0 ) /* 2k for the microcontroller */ |
| 1089 | ROM_LOAD( "arkanoid. | |
| 1101 | ROM_LOAD( "arkanoid.ic14", 0x0000, 0x0800, CRC(515d77b6) SHA1(a302937683d11f663abd56a2fd7c174374e4d7fb) ) /* The real MCU should be A75-06 @ IC14 */ | |
| 1090 | 1102 | |
| 1091 | 1103 | ROM_REGION( 0x18000, "gfx1", 0 ) |
| 1092 | ROM_LOAD( "a75-03.rom", 0x00000, 0x8000, CRC(038b74ba) SHA1(ac053cc4908b4075f918748b89570e07a0ba5116) ) | |
| 1093 | ROM_LOAD( "a75-04.rom", 0x08000, 0x8000, CRC(71fae199) SHA1(5d253c46ccf4cd2976a5fb8b8713f0f345443d06) ) | |
| 1094 | ROM_LOAD( "a75-05.rom", 0x10000, 0x8000, CRC(c76374e2) SHA1(7520dd48de20db60a2038f134dcaa454988e7874) ) | |
| 1104 | ROM_LOAD( "a75-03.ic64", 0x00000, 0x8000, CRC(038b74ba) SHA1(ac053cc4908b4075f918748b89570e07a0ba5116) ) | |
| 1105 | ROM_LOAD( "a75-04.ic63", 0x08000, 0x8000, CRC(71fae199) SHA1(5d253c46ccf4cd2976a5fb8b8713f0f345443d06) ) | |
| 1106 | ROM_LOAD( "a75-05.ic62", 0x10000, 0x8000, CRC(c76374e2) SHA1(7520dd48de20db60a2038f134dcaa454988e7874) ) | |
| 1095 | 1107 | |
| 1096 | ROM_REGION( 0x0600, "proms", 0 ) | |
| 1097 | ROM_LOAD( "a75-07.bpr", 0x0000, 0x0200, CRC(0af8b289) SHA1(6bc589e8a609b4cf450aebedc8ce02d5d45c970f) ) /* red component */ | |
| 1098 | ROM_LOAD( "a75-08.bpr", 0x0200, 0x0200, CRC(abb002fb) SHA1(c14f56b8ef103600862e7930709d293b0aa97a73) ) /* green component */ | |
| 1099 | ROM_LOAD( "a75-09.bpr", 0x0400, 0x0200, CRC(a7c6c277) SHA1(adaa003dcd981576ea1cc5f697d709b2d6b2ea29) ) /* blue component */ | |
| 1108 | ROM_REGION( 0x0600, "proms", 0 ) /* BPROMs are silkscreened as 7621, actual BPROMs used are MMI 6306-1N */ | |
| 1109 | ROM_LOAD( "a75-07.ic24", 0x0000, 0x0200, CRC(0af8b289) SHA1(6bc589e8a609b4cf450aebedc8ce02d5d45c970f) ) /* red component */ | |
| 1110 | ROM_LOAD( "a75-08.ic23", 0x0200, 0x0200, CRC(abb002fb) SHA1(c14f56b8ef103600862e7930709d293b0aa97a73) ) /* green component */ | |
| 1111 | ROM_LOAD( "a75-09.ic23", 0x0400, 0x0200, CRC(a7c6c277) SHA1(adaa003dcd981576ea1cc5f697d709b2d6b2ea29) ) /* blue component */ | |
| 1100 | 1112 | ROM_END |
| 1101 | 1113 | |
| 1102 | 1114 | ROM_START( arkatour ) |
| 1103 | 1115 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 1104 | ROM_LOAD( "a75-27.17", 0x0000, 0x8000, CRC(e3b8faf5) SHA1(4c09478fa41881fa89ee6afb676aeb780f17ac2e) ) | |
| 1105 | ROM_LOAD( "a75-28.18", 0x8000, 0x8000, CRC(326aca4d) SHA1(5a194b7a0361236d471b24905dc6434372f81252) ) | |
| 1116 | ROM_LOAD( "a75-27.ic17", 0x0000, 0x8000, CRC(e3b8faf5) SHA1(4c09478fa41881fa89ee6afb676aeb780f17ac2e) ) | |
| 1117 | ROM_LOAD( "a75-28.ic16", 0x8000, 0x8000, CRC(326aca4d) SHA1(5a194b7a0361236d471b24905dc6434372f81252) ) | |
| 1106 | 1118 | |
| 1107 | 1119 | ROM_REGION( 0x0800, "mcu", 0 ) /* 2k for the microcontroller */ |
| 1108 | ROM_LOAD( "a75-32.14", 0x0000, 0x0800, BAD_DUMP CRC(d3249559) SHA1(b1542764450016614e9e03cedd6a2f1e59961789) ) | |
| 1120 | ROM_LOAD( "a75-32.ic14", 0x0000, 0x0800, BAD_DUMP CRC(d3249559) SHA1(b1542764450016614e9e03cedd6a2f1e59961789) ) | |
| 1109 | 1121 | |
| 1110 | 1122 | ROM_REGION( 0x18000, "gfx1", 0 ) |
| 1111 | ROM_LOAD( "a75-29.64", 0x00000, 0x8000, CRC(5ddea3cf) SHA1(58f16515898b7cc2697bf7663a60d9ca0db6da95) ) | |
| 1112 | ROM_LOAD( "a75-30.63", 0x08000, 0x8000, CRC(5fcf2e85) SHA1(f721f0afb0550cc64bff26681856a7576398d9b5) ) | |
| 1113 | ROM_LOAD( "a75-31.62", 0x10000, 0x8000, CRC(7b76b192) SHA1(a68aa08717646a6c322cf3455df07f50df9e9f33) ) | |
| 1123 | ROM_LOAD( "a75-29.ic64", 0x00000, 0x8000, CRC(5ddea3cf) SHA1(58f16515898b7cc2697bf7663a60d9ca0db6da95) ) | |
| 1124 | ROM_LOAD( "a75-30.ic63", 0x08000, 0x8000, CRC(5fcf2e85) SHA1(f721f0afb0550cc64bff26681856a7576398d9b5) ) | |
| 1125 | ROM_LOAD( "a75-31.ic62", 0x10000, 0x8000, CRC(7b76b192) SHA1(a68aa08717646a6c322cf3455df07f50df9e9f33) ) | |
| 1114 | 1126 | |
| 1115 | ROM_REGION( 0x0600, "proms", 0 ) | |
| 1116 | ROM_LOAD( "a75-33.24", 0x0000, 0x0200, CRC(b4bf3c81) SHA1(519188937ac9728c653fabac877e37dc43c3f71a) ) /* red component */ | |
| 1117 | ROM_LOAD( "a75-34.23", 0x0200, 0x0200, CRC(de85a803) SHA1(325214995996de36a0470fbfc00e4e393c0b17ad) ) /* green component */ | |
| 1118 | ROM_LOAD( "a75-35.35", 0x0400, 0x0200, CRC(38acfd3b) SHA1(2841e9db047aa039eff8567a518b6250b355507b) ) /* blue component */ | |
| 1127 | ROM_REGION( 0x0600, "proms", 0 ) /* BPROMs are silkscreened as 7621, actual BPROMs used are MMI 6306-1N */ | |
| 1128 | ROM_LOAD( "a75-33.ic24", 0x0000, 0x0200, CRC(b4bf3c81) SHA1(519188937ac9728c653fabac877e37dc43c3f71a) ) /* red component */ | |
| 1129 | ROM_LOAD( "a75-34.ic23", 0x0200, 0x0200, CRC(de85a803) SHA1(325214995996de36a0470fbfc00e4e393c0b17ad) ) /* green component */ | |
| 1130 | ROM_LOAD( "a75-35.ic22", 0x0400, 0x0200, CRC(38acfd3b) SHA1(2841e9db047aa039eff8567a518b6250b355507b) ) /* blue component */ | |
| 1119 | 1131 | ROM_END |
| 1120 | 1132 | |
| 1121 | 1133 | ROM_START( arkanoidj ) |
| 1122 | 1134 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 1123 | ROM_LOAD( "a75-21.rom", 0x0000, 0x8000, CRC(bf0455fc) SHA1(250522b84b9f491c3f4efc391bf6aa6124361369) ) | |
| 1124 | ROM_LOAD( "a75-22.rom", 0x8000, 0x8000, CRC(3a2688d3) SHA1(9633a661352def3d85f95ca830f6d761b0b5450e) ) | |
| 1135 | ROM_LOAD( "a75-21.ic17", 0x0000, 0x8000, CRC(bf0455fc) SHA1(250522b84b9f491c3f4efc391bf6aa6124361369) ) | |
| 1136 | ROM_LOAD( "a75-22.ic16", 0x8000, 0x8000, CRC(3a2688d3) SHA1(9633a661352def3d85f95ca830f6d761b0b5450e) ) | |
| 1125 | 1137 | |
| 1126 | 1138 | ROM_REGION( 0x0800, "mcu", 0 ) /* 2k for the microcontroller */ |
| 1127 | 1139 | ROM_LOAD( "arknoidj.uc", 0x0000, 0x0800, BAD_DUMP CRC(0a4abef6) SHA1(fdce0b7a2eab7fd4f1f4fc3b93120b1ebc16078e) ) |
| 1128 | 1140 | |
| 1129 | 1141 | ROM_REGION( 0x18000, "gfx1", 0 ) |
| 1130 | ROM_LOAD( "a75-03.rom", 0x00000, 0x8000, CRC(038b74ba) SHA1(ac053cc4908b4075f918748b89570e07a0ba5116) ) | |
| 1131 | ROM_LOAD( "a75-04.rom", 0x08000, 0x8000, CRC(71fae199) SHA1(5d253c46ccf4cd2976a5fb8b8713f0f345443d06) ) | |
| 1132 | ROM_LOAD( "a75-05.rom", 0x10000, 0x8000, CRC(c76374e2) SHA1(7520dd48de20db60a2038f134dcaa454988e7874) ) | |
| 1142 | ROM_LOAD( "a75-03.ic64", 0x00000, 0x8000, CRC(038b74ba) SHA1(ac053cc4908b4075f918748b89570e07a0ba5116) ) | |
| 1143 | ROM_LOAD( "a75-04.ic63", 0x08000, 0x8000, CRC(71fae199) SHA1(5d253c46ccf4cd2976a5fb8b8713f0f345443d06) ) | |
| 1144 | ROM_LOAD( "a75-05.ic62", 0x10000, 0x8000, CRC(c76374e2) SHA1(7520dd48de20db60a2038f134dcaa454988e7874) ) | |
| 1133 | 1145 | |
| 1134 | ROM_REGION( 0x0600, "proms", 0 ) | |
| 1135 | ROM_LOAD( "a75-07.bpr", 0x0000, 0x0200, CRC(0af8b289) SHA1(6bc589e8a609b4cf450aebedc8ce02d5d45c970f) ) /* red component */ | |
| 1136 | ROM_LOAD( "a75-08.bpr", 0x0200, 0x0200, CRC(abb002fb) SHA1(c14f56b8ef103600862e7930709d293b0aa97a73) ) /* green component */ | |
| 1137 | ROM_LOAD( "a75-09.bpr", 0x0400, 0x0200, CRC(a7c6c277) SHA1(adaa003dcd981576ea1cc5f697d709b2d6b2ea29) ) /* blue component */ | |
| 1146 | ROM_REGION( 0x0600, "proms", 0 ) /* BPROMs are silkscreened as 7621, actual BPROMs used are MMI 6306-1N */ | |
| 1147 | ROM_LOAD( "a75-07.ic24", 0x0000, 0x0200, CRC(0af8b289) SHA1(6bc589e8a609b4cf450aebedc8ce02d5d45c970f) ) /* red component */ | |
| 1148 | ROM_LOAD( "a75-08.ic23", 0x0200, 0x0200, CRC(abb002fb) SHA1(c14f56b8ef103600862e7930709d293b0aa97a73) ) /* green component */ | |
| 1149 | ROM_LOAD( "a75-09.ic22", 0x0400, 0x0200, CRC(a7c6c277) SHA1(adaa003dcd981576ea1cc5f697d709b2d6b2ea29) ) /* blue component */ | |
| 1138 | 1150 | ROM_END |
| 1139 | 1151 | |
| 1140 | 1152 | ROM_START( arkmcubl ) |
| r8581 | r8582 | |
| 1158 | 1170 | |
| 1159 | 1171 | /* Until we know what this MCU is supposed to do, we put it here */ |
| 1160 | 1172 | ROM_REGION( 0x0800, "user1", 0 ) |
| 1161 | ROM_LOAD( "68705p3.6i", 0x0000, 0x0800, CRC(389a8cfb) SHA1(9530c051b61b5bdec7018c6fdc1ea91288a406bd) ) | |
| 1173 | ROM_LOAD( "68705p3.6i", 0x0000, 0x0800, CRC(389a8cfb) SHA1(9530c051b61b5bdec7018c6fdc1ea91288a406bd) ) // this has the 1986 by Yasu copyright like some of the new decaps loaded in the parent set! | |
| 1162 | 1174 | ROM_END |
| 1163 | 1175 | |
| 1164 | 1176 | ROM_START( ark1ball ) |
| r8581 | r8582 | |
|---|---|---|
| 3853 | 3853 | |
| 3854 | 3854 | static DRIVER_INIT( jitsupro ) |
| 3855 | 3855 | { |
| 3856 | running_device *oki1 = devtag_get_device(machine, "oki1"); | |
| 3857 | running_device *oki2 = devtag_get_device(machine, "oki2"); | |
| 3856 | running_device *oki1 = machine->device("oki1"); | |
| 3857 | running_device *oki2 = machine->device("oki2"); | |
| 3858 | 3858 | UINT16 *RAM = (UINT16 *) memory_region(machine, "maincpu"); |
| 3859 | 3859 | |
| 3860 | 3860 | astyanax_rom_decode(machine, "maincpu"); // Code |
| r8581 | r8582 | |
|---|---|---|
| 449 | 449 | { |
| 450 | 450 | crshrace_state *state = (crshrace_state *)machine->driver_data; |
| 451 | 451 | |
| 452 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 453 | state->k053936 = devtag_get_device(machine, "k053936"); | |
| 452 | state->audiocpu = machine->device("audiocpu"); | |
| 453 | state->k053936 = machine->device("k053936"); | |
| 454 | 454 | |
| 455 | 455 | state_save_register_global(machine, state->roz_bank); |
| 456 | 456 | state_save_register_global(machine, state->gfxctrl); |
| r8581 | r8582 | |
|---|---|---|
| 587 | 587 | memory_configure_bank(machine, "bank3", 0, 3, &AUDIO[0x00000], 0x4000); |
| 588 | 588 | memory_configure_bank(machine, "bank3", 3, 5, &AUDIO[0x10000], 0x4000); |
| 589 | 589 | |
| 590 | state->master = devtag_get_device(machine, "master"); | |
| 591 | state->slave = devtag_get_device(machine, "slave"); | |
| 592 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 593 | state->pandora = devtag_get_device(machine, "pandora"); | |
| 590 | state->master = machine->device("master"); | |
| 591 | state->slave = machine->device("slave"); | |
| 592 | state->audiocpu = machine->device("audiocpu"); | |
| 593 | state->pandora = machine->device("pandora"); | |
| 594 | 594 | |
| 595 | 595 | state_save_register_global(machine, state->soundlatch_status); |
| 596 | 596 | state_save_register_global(machine, state->soundlatch2_status); |
| r8581 | r8582 | |
|---|---|---|
| 397 | 397 | |
| 398 | 398 | static WRITE8_HANDLER( pacman_interrupt_vector_w ) |
| 399 | 399 | { |
| 400 | cpu_set_input_line_vector( | |
| 400 | cpu_set_input_line_vector( | |
| 401 | 401 | cputag_set_input_line(space->machine, "maincpu", 0, CLEAR_LINE); |
| 402 | 402 | } |
| 403 | 403 | |
| r8581 | r8582 | |
| 479 | 479 | { |
| 480 | 480 | if (data == 0xfa) data = 0x78; |
| 481 | 481 | if (data == 0xfc) data = 0xfc; |
| 482 | cpu_set_input_line_vector( | |
| 482 | cpu_set_input_line_vector( | |
| 483 | 483 | } |
| 484 | 484 | |
| 485 | 485 | |
| r8581 | r8582 | |
| 488 | 488 | if (data == 0xbf) data = 0x3c; |
| 489 | 489 | if (data == 0xc6) data = 0x40; |
| 490 | 490 | if (data == 0xfc) data = 0xfc; |
| 491 | cpu_set_input_line_vector( | |
| 491 | cpu_set_input_line_vector( | |
| 492 | 492 | } |
| 493 | 493 | |
| 494 | 494 | |
| r8581 | r8582 | |
| 528 | 528 | /* since the sound region in Ali Baba is not contiguous, translate the |
| 529 | 529 | offset into the 0-0x1f range */ |
| 530 | 530 | if (offset < 0x10) |
| 531 | pacman_sound_w( | |
| 531 | pacman_sound_w( | |
| 532 | 532 | else if (offset < 0x20) |
| 533 | 533 | space->machine->generic.spriteram2.u8[offset - 0x10] = data; |
| 534 | 534 | else |
| 535 | pacman_sound_w( | |
| 535 | pacman_sound_w( | |
| 536 | 536 | } |
| 537 | 537 | |
| 538 | 538 |
| r8581 | r8582 | |
|---|---|---|
| 376 | 376 | { |
| 377 | 377 | bwing_state *state = (bwing_state *)machine->driver_data; |
| 378 | 378 | |
| 379 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 380 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 381 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 379 | state->maincpu = machine->device("maincpu"); | |
| 380 | state->subcpu = machine->device("sub"); | |
| 381 | state->audiocpu = machine->device("audiocpu"); | |
| 382 | 382 | |
| 383 | 383 | state_save_register_global(machine, state->coin); |
| 384 | 384 | state_save_register_global(machine, state->palatch); |
| r8581 | r8582 | |
|---|---|---|
| 809 | 809 | sf_state *state = (sf_state *)machine->driver_data; |
| 810 | 810 | |
| 811 | 811 | /* devices */ |
| 812 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 813 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 812 | state->maincpu = machine->device("maincpu"); | |
| 813 | state->audiocpu = machine->device("audiocpu"); | |
| 814 | 814 | |
| 815 | 815 | state_save_register_global(machine, state->sf_active); |
| 816 | 816 | state_save_register_global(machine, state->bgscroll); |
| r8581 | r8582 | |
|---|---|---|
| 1075 | 1075 | |
| 1076 | 1076 | if (ACCESSING_BITS_32_63) |
| 1077 | 1077 | { |
| 1078 | r = (UINT64)((space->cpu != | |
| 1078 | r = (UINT64)((space->cpu != | |
| 1079 | 1079 | //r |= 0x40000000; // sets Video-LowRes !? |
| 1080 | 1080 | return r << 32; |
| 1081 | 1081 | } |
| r8581 | r8582 | |
|---|---|---|
| 88 | 88 | static MACHINE_START( cball ) |
| 89 | 89 | { |
| 90 | 90 | cball_state *state = (cball_state *)machine->driver_data; |
| 91 | state->maincpu = | |
| 91 | state->maincpu = m | |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | static MACHINE_RESET( cball ) |
| r8581 | r8582 | |
|---|---|---|
| 1712 | 1712 | { |
| 1713 | 1713 | cave_state *state = (cave_state *)machine->driver_data; |
| 1714 | 1714 | |
| 1715 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1716 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1715 | state->maincpu = machine->device("maincpu"); | |
| 1716 | state->audiocpu = machine->device("audiocpu"); | |
| 1717 | 1717 | |
| 1718 | 1718 | state_save_register_global(machine, state->soundbuf_len); |
| 1719 | 1719 | state_save_register_global_array(machine, state->soundbuf_data); |
| r8581 | r8582 | |
|---|---|---|
| 526 | 526 | |
| 527 | 527 | void defender_install_io_space(const address_space *space) |
| 528 | 528 | { |
| 529 | running_device *pia_0 = devtag_get_device(space->machine, "pia_0"); | |
| 530 | running_device *pia_1 = devtag_get_device(space->machine, "pia_1"); | |
| 529 | running_device *pia_0 = space->machine->device("pia_0"); | |
| 530 | running_device *pia_1 = space->machine->device("pia_1"); | |
| 531 | 531 | |
| 532 | 532 | /* this routine dynamically installs the memory mapped above from c000-cfff */ |
| 533 | 533 | memory_install_write_bank (space, 0xc000, 0xc00f, 0, 0x03e0, "bank4"); |
| r8581 | r8582 | |
| 2809 | 2809 | |
| 2810 | 2810 | static DRIVER_INIT( spdball ) |
| 2811 | 2811 | { |
| 2812 | running_device *pia_3 = | |
| 2812 | running_device *pia_3 = m | |
| 2813 | 2813 | |
| 2814 | 2814 | CONFIGURE_BLITTER(WILLIAMS_BLITTER_SC01, 0xc000); |
| 2815 | 2815 |
| r8581 | r8582 | |
|---|---|---|
| 1931 | 1931 | { |
| 1932 | 1932 | dec8_state *state = (dec8_state *)machine->driver_data; |
| 1933 | 1933 | |
| 1934 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 1935 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 1936 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 1937 | state->mcu = devtag_get_device(machine, "mcu"); | |
| 1934 | state->maincpu = machine->device("maincpu"); | |
| 1935 | state->subcpu = machine->device("sub"); | |
| 1936 | state->audiocpu = machine->device("audiocpu"); | |
| 1937 | state->mcu = machine->device("mcu"); | |
| 1938 | 1938 | |
| 1939 | 1939 | state_save_register_global(machine, state->latch); |
| 1940 | 1940 | state_save_register_global(machine, state->nmi_enable); |
| r8581 | r8582 | |
|---|---|---|
| 515 | 515 | |
| 516 | 516 | memory_configure_bank(machine, "bank1", 0, 0x3e, &ROM[0x10000], 0x8000); |
| 517 | 517 | |
| 518 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 519 | state->audiocpu = devtag_get_device(machine, "soundcpu"); | |
| 518 | state->maincpu = machine->device("maincpu"); | |
| 519 | state->audiocpu = machine->device("soundcpu"); | |
| 520 | 520 | |
| 521 | 521 | state->raster_interrupt_timer = timer_alloc(machine, raster_interrupt_callback, NULL); |
| 522 | 522 |
| r8581 | r8582 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | Red Corsair EPROM dump (dumped by Phil Morris) - notes follow: |
| 13 | 13 | |
| 14 | ||
| 14 | ||
| 15 | 15 | |
| 16 | http://www.morris0.fsnet.co.uk/red_corsair.jpg | |
| 17 | ||
| 18 | But that will no doubt be removed in the coming months, so grab it while | |
| 19 | you can. :) | |
| 20 | ||
| 21 | 16 | The game itself involves you guiding a pirate around various obstacles and |
| 22 | 17 | picking up treasure. It's a top-down viewpoint. |
| 23 | 18 |
| r8581 | r8582 | |
|---|---|---|
| 525 | 525 | |
| 526 | 526 | static VIDEO_UPDATE( slotcarn ) |
| 527 | 527 | { |
| 528 | running_device *mc6845 = | |
| 528 | running_device *mc6845 = | |
| 529 | 529 | mc6845_update(mc6845, bitmap, cliprect); |
| 530 | 530 | |
| 531 | 531 | return 0; |
| r8581 | r8582 | |
|---|---|---|
| 163 | 163 | |
| 164 | 164 | static WRITE8_HANDLER( tbowl_adpcm_start_w ) |
| 165 | 165 | { |
| 166 | running_device *adpcm = | |
| 166 | running_device *adpcm = | |
| 167 | 167 | adpcm_pos[offset & 1] = data << 8; |
| 168 | 168 | msm5205_reset_w(adpcm,0); |
| 169 | 169 | } |
| r8581 | r8582 | |
| 175 | 175 | |
| 176 | 176 | static WRITE8_HANDLER( tbowl_adpcm_vol_w ) |
| 177 | 177 | { |
| 178 | running_device *adpcm = | |
| 178 | running_device *adpcm = | |
| 179 | 179 | msm5205_set_volume(adpcm, (data & 0x7f) * 100 / 0x7f); |
| 180 | 180 | } |
| 181 | 181 |
| r8581 | r8582 | |
|---|---|---|
| 278 | 278 | { |
| 279 | 279 | battlane_state *state = (battlane_state *)machine->driver_data; |
| 280 | 280 | |
| 281 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 282 | state->subcpu = devtag_get_device(machine, "sub"); | |
| 281 | state->maincpu = machine->device("maincpu"); | |
| 282 | state->subcpu = machine->device("sub"); | |
| 283 | 283 | |
| 284 | 284 | state_save_register_global(machine, state->video_ctrl); |
| 285 | 285 | state_save_register_global(machine, state->cpu_control); |
| r8581 | r8582 | |
|---|---|---|
| 84 | 84 | const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM); |
| 85 | 85 | |
| 86 | 86 | if (reason) |
| 87 | atarigen_sound_int_gen( | |
| 87 | atarigen_sound_int_gen(m | |
| 88 | 88 | else |
| 89 | 89 | atarigen_sound_int_ack_w(space,0,0,0xffff); |
| 90 | 90 | } |
| r8581 | r8582 | |
|---|---|---|
| 263 | 263 | memory_configure_bank(machine, "bank2", 0, 12, &ROM[0x10000], 0x2000); |
| 264 | 264 | memory_set_bank(machine, "bank2", 0); |
| 265 | 265 | |
| 266 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 267 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 268 | state->k052109 = devtag_get_device(machine, "k052109"); | |
| 269 | state->k051960 = devtag_get_device(machine, "k051960"); | |
| 270 | state->k007232 = devtag_get_device(machine, "k007232"); | |
| 266 | state->maincpu = machine->device("maincpu"); | |
| 267 | state->audiocpu = machine->device("audiocpu"); | |
| 268 | state->k052109 = machine->device("k052109"); | |
| 269 | state->k051960 = machine->device("k051960"); | |
| 270 | state->k007232 = machine->device("k007232"); | |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | static MACHINE_RESET( crimfght ) |
| 274 | 274 | { |
| 275 | konami_configure_set_lines( | |
| 275 | konami_configure_set_lines(m | |
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | static MACHINE_DRIVER_START( crimfght ) |
| r8581 | r8582 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | static void triplhnt_update_misc(running_machine *machine, int offset) |
| 40 | 40 | { |
| 41 | running_device *samples = devtag_get_device(machine, "samples"); | |
| 42 | running_device *discrete = devtag_get_device(machine, "discrete"); | |
| 41 | running_device *samples = machine->device("samples"); | |
| 42 | running_device *discrete = machine->device("discrete"); | |
| 43 | 43 | UINT8 is_witch_hunt; |
| 44 | 44 | UINT8 bit = offset >> 1; |
| 45 | 45 |
| r8581 | r8582 | |
|---|---|---|
| 837 | 837 | { |
| 838 | 838 | asuka_state *state = (asuka_state *)machine->driver_data; |
| 839 | 839 | |
| 840 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 841 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 842 | state->pc090oj = devtag_get_device(machine, "pc090oj"); | |
| 843 | state->tc0100scn = devtag_get_device(machine, "tc0100scn"); | |
| 840 | state->maincpu = machine->device("maincpu"); | |
| 841 | state->audiocpu = machine->device("audiocpu"); | |
| 842 | state->pc090oj = machine->device("pc090oj"); | |
| 843 | state->tc0100scn = machine->device("tc0100scn"); | |
| 844 | 844 | |
| 845 | 845 | /* configure the banks */ |
| 846 | 846 | memory_configure_bank(machine, "bank1", 0, 1, memory_region(machine, "audiocpu"), 0); |
| r8581 | r8582 | |
|---|---|---|
| 243 | 243 | memory_configure_bank(machine, "bank1", 6, 2, &ROM[0x10000], 0x4000); |
| 244 | 244 | memory_set_bank(machine, "bank1", 0); |
| 245 | 245 | |
| 246 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 247 | state->audiocpu = devtag_get_device(machine, "audiocpu"); | |
| 248 | state->k053244 = devtag_get_device(machine, "k053244"); | |
| 249 | state->k051316 = devtag_get_device(machine, "k051316"); | |
| 250 | state->k053260 = devtag_get_device(machine, "k053260"); | |
| 246 | state->maincpu = machine->device("maincpu"); | |
| 247 | state->audiocpu = machine->device("audiocpu"); | |
| 248 | state->k053244 = machine->device("k053244"); | |
| 249 | state->k051316 = machine->device("k051316"); | |
| 250 | state->k053260 = machine->device("k053260"); | |
| 251 | 251 | |
| 252 | 252 | state_save_register_global(machine, state->readzoomroms); |
| 253 | 253 | } |
| r8581 | r8582 | |
| 256 | 256 | { |
| 257 | 257 | rollerg_state *state = (rollerg_state *)machine->driver_data; |
| 258 | 258 | |
| 259 | konami_configure_set_lines( | |
| 259 | konami_configure_set_lines(m | |
| 260 | 260 | |
| 261 | 261 | state->readzoomroms = 0; |
| 262 | 262 | } |
| r8581 | r8582 | |
|---|---|---|
| 295 | 295 | |
| 296 | 296 | static VIDEO_UPDATE(hvyunit) |
| 297 | 297 | { |
| 298 | running_device *pandora = | |
| 298 | running_device *pandora = | |
| 299 | 299 | tilemap_set_scrollx( bg_tilemap,0, ((port0_data&0x40)<<2)+ hu_scrollx + SX_POS); //TODO |
| 300 | 300 | tilemap_set_scrolly( bg_tilemap,0, ((port0_data&0x80)<<1)+ hu_scrolly + SY_POS); // TODO |
| 301 | 301 | |
| r8581 | r8582 | |
| 309 | 309 | |
| 310 | 310 | static VIDEO_EOF(hvyunit) |
| 311 | 311 | { |
| 312 | running_device *pandora = | |
| 312 | running_device *pandora = m | |
| 313 | 313 | pandora_eof(pandora); |
| 314 | 314 | } |
| 315 | 315 |
| r8581 | r8582 | |
|---|---|---|
| 61 | 61 | |
| 62 | 62 | static READ8_HANDLER( wolfpack_misc_r ) |
| 63 | 63 | { |
| 64 | running_device *device = | |
| 64 | running_device *device = | |
| 65 | 65 | UINT8 val = 0; |
| 66 | 66 | |
| 67 | 67 | /* BIT0 => SPEECH BUSY */ |
| r8581 | r8582 | |
|---|---|---|
| 149 | 149 | 602e and 62a6 */ |
| 150 | 150 | /* For Genix, see 6576 for setting values and 67c2,d3b4 and dbc2 for tests. */ |
| 151 | 151 | |
| 152 | pc = cpu_get_pc( | |
| 152 | pc = cpu_get_pc( | |
| 153 | 153 | if (pc == 0x6134) |
| 154 | 154 | { |
| 155 | 155 | bit = prot & 1; |
| r8581 | r8582 | |
|---|---|---|
| 107 | 107 | tankbatt_sound_enable = !data; |
| 108 | 108 | |
| 109 | 109 | /* hack - turn off the engine noise if the normal game nmi's are disabled */ |
| 110 | if (data) sample_stop ( | |
| 110 | if (data) sample_stop ( | |
| 111 | 111 | // interrupt_enable_w (offset, !data); |
| 112 | 112 | } |
| 113 | 113 | |
| r8581 | r8582 | |
| 121 | 121 | { |
| 122 | 122 | if (tankbatt_sound_enable) |
| 123 | 123 | { |
| 124 | running_device *samples = | |
| 124 | running_device *samples = | |
| 125 | 125 | sample_start (samples, 1, 3, 0); |
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | static WRITE8_HANDLER( tankbatt_sh_engine_w ) |
| 130 | 130 | { |
| 131 | running_device *samples = | |
| 131 | running_device *samples = | |
| 132 | 132 | if (tankbatt_sound_enable) |
| 133 | 133 | { |
| 134 | 134 | if (data) |
| r8581 | r8582 | |
| 143 | 143 | { |
| 144 | 144 | if (tankbatt_sound_enable) |
| 145 | 145 | { |
| 146 | running_device *samples = | |
| 146 | running_device *samples = | |
| 147 | 147 | sample_start (samples, 0, 0, 0); |
| 148 | 148 | } |
| 149 | 149 | } |
| r8581 | r8582 | |
|---|---|---|
| 798 | 798 | { |
| 799 | 799 | case 0x8000: return input_port_read(space->machine, "DSW4"); // dsw 4 |
| 800 | 800 | case 0x8200: return input_port_read(space->machine, "DSW3"); // dsw 3 |
| 801 | case 0x9001: return ay8910_r( | |
| 801 | case 0x9001: return ay8910_r( | |
| 802 | 802 | case 0x9011: return input_port_read(space->machine, "SYSTEM"); |
| 803 | 803 | } |
| 804 | 804 | |
| r8581 | r8582 | |
| 819 | 819 | switch(offset) |
| 820 | 820 | { |
| 821 | 821 | case 0x8e00: palette_base = data & 0x1f; return; |
| 822 | case 0x9002: ay8910_data_w(devtag_get_device(space->machine,"aysnd"),0,data); return; | |
| 823 | case 0x9003: ay8910_address_w(devtag_get_device(space->machine,"aysnd"),0,data); return; | |
| 822 | case 0x9002: ay8910_data_w(space->machine->device("aysnd"),0,data); return; | |
| 823 | case 0x9003: ay8910_address_w(space->machine->device("aysnd"),0,data); return; | |
| 824 | 824 | case 0x9010: |
| 825 | 825 | mjifb_coin_counter_w(space,0,data); |
| 826 | 826 | return; |
| r8581 | r8582 | |
| 905 | 905 | { |
| 906 | 906 | case 0x8000: return input_port_read(space->machine, "DSW2"); // dsw 2 |
| 907 | 907 | case 0x8001: return input_port_read(space->machine, "DSW1"); // dsw 1 |
| 908 | case 0x9001: return ay8910_r( | |
| 908 | case 0x9001: return ay8910_r( | |
| 909 | 909 | case 0x9011: return input_port_read(space->machine, "SYSTEM"); |
| 910 | 910 | } |
| 911 | 911 | |
| r8581 | r8582 | |
| 925 | 925 | switch(offset) |
| 926 | 926 | { |
| 927 | 927 | case 0x8802: palette_base = data & 0x1f; return; |
| 928 | case 0x9002: ay8910_data_w(devtag_get_device(space->machine,"aysnd"),0,data); return; | |
| 929 | case 0x9003: ay8910_address_w(devtag_get_device(space->machine,"aysnd"),0,data); return; | |
| 928 | case 0x9002: ay8910_data_w(space->machine->device("aysnd"),0,data); return; | |
| 929 | case 0x9003: ay8910_address_w(space->machine->device("aysnd"),0,data); return; | |
| 930 | 930 | case 0x9010: mjifb_coin_counter_w(space,0,data); return; |
| 931 | 931 | case 0x9011: input_port_select_w(space,0,data); return; |
| 932 | 932 | case 0x9013: |
| r8581 | r8582 | |
| 1105 | 1105 | case 0x800e: |
| 1106 | 1106 | case 0x800f: |
| 1107 | 1107 | { |
| 1108 | running_device *rtc = | |
| 1108 | running_device *rtc = | |
| 1109 | 1109 | return msm6242_r(rtc, offset-0x8000); |
| 1110 | 1110 | } |
| 1111 | 1111 | } |
| r8581 | r8582 | |
| 1142 | 1142 | case 0x800e: |
| 1143 | 1143 | case 0x800f: |
| 1144 | 1144 | { |
| 1145 | running_device *rtc = | |
| 1145 | running_device *rtc = | |
| 1146 | 1146 | msm6242_w(rtc, offset-0x8000, data); |
| 1147 | 1147 | return; |
| 1148 | 1148 | } |
| r8581 | r8582 | |
| 4326 | 4326 | |
| 4327 | 4327 | |
| 4328 | 4328 | dumped by sayu |
| 4329 | ||
| 4330 | 4329 | --- Team Japump!!! --- |
| 4331 | http://japump.i.am/ | |
| 4332 | 4330 | |
| 4333 | 4331 | */ |
| 4334 | 4332 |
| r8581 | r8582 | |
|---|---|---|
| 12 | 12 | |
| 13 | 13 | Cross Pang New - Is shown on the website but is not currently dumped |
| 14 | 14 | |
| 15 | No Copyright Notice is displayed for Cross Pang however the following page | |
| 16 | lists it as being by F2 System, Released April 1998 | |
| 17 | http://www.f2.co.kr/eng/f2system/intro5.asp (page no longer valid, check www.f2.co.kr) | |
| 15 | No Copyright Notice is displayed for Cross Pang however http://www.f2.co.kr | |
| 16 | at one time did list it as being by F2 System, Released April 1998 | |
| 18 | 17 | |
| 19 | ||
| 20 | 18 | Cross Pang: |
| 21 | 19 | Audio Test isn't correct when a sound is tested, instead musics are right. |
| 22 | 20 | The sample rom says 'Oksan' (Oksan made Pass, its unclear how they are |
| r8581 | r8582 | |
| 289 | 287 | { |
| 290 | 288 | crospang_state *state = (crospang_state *)machine->driver_data; |
| 291 | 289 | |
| 292 | state->audiocpu = | |
| 290 | state->audiocpu = m | |
| 293 | 291 | |
| 294 | 292 | state_save_register_global(machine, state->bestri_tilebank); |
| 295 | 293 | state_save_register_global(machine, state->xsproff); |
| r8581 | r8582 | |
|---|---|---|
| 319 | 319 | static MACHINE_RESET(mquake) |
| 320 | 320 | { |
| 321 | 321 | /* set ES5503 wave memory (this is banked in 64k increments) */ |
| 322 | es5503_set_base( | |
| 322 | es5503_set_base(m | |
| 323 | 323 | |
| 324 | 324 | MACHINE_RESET_CALL(amiga); |
| 325 | 325 | } |
| r8581 | r8582 | |
|---|---|---|
| 205 | 205 | funybubl_state *state = (funybubl_state *)machine->driver_data; |
| 206 | 206 | UINT8 *ROM = memory_region(machine, "maincpu"); |
| 207 | 207 | |
| 208 | state->audiocpu = | |
| 208 | state->audiocpu = m | |
| 209 | 209 | |
| 210 | 210 | state->banked_vram = auto_alloc_array(machine, UINT8, 0x2000); |
| 211 | 211 | state_save_register_global_pointer(machine, state->banked_vram, 0x2000); |
| r8581 | r8582 | |
|---|---|---|
| 1572 | 1572 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1573 | 1573 | |
| 1574 | 1574 | PORT_START("DSW1") |
| 1575 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2: | |
| 1575 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:8,7,6") | |
| 1576 | 1576 | PORT_DIPSETTING( 0x0100, DEF_STR( 4C_1C ) ) |
| 1577 | 1577 | PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) ) |
| 1578 | 1578 | PORT_DIPSETTING( 0x0300, DEF_STR( 2C_1C ) ) |
| r8581 | r8582 | |
| 1581 | 1581 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) ) |
| 1582 | 1582 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) |
| 1583 | 1583 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 1584 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2: | |
| 1584 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2: | |
| 1585 | 1585 | PORT_DIPSETTING( 0x0800, DEF_STR( 4C_1C ) ) |
| 1586 | 1586 | PORT_DIPSETTING( 0x1000, DEF_STR( 3C_1C ) ) |
| 1587 | 1587 | PORT_DIPSETTING( 0x1800, DEF_STR( 2C_1C ) ) |
| r8581 | r8582 | |
| 1590 | 1590 | PORT_DIPSETTING( 0x2800, DEF_STR( 1C_3C ) ) |
| 1591 | 1591 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) |
| 1592 | 1592 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 1593 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2: | |
| 1593 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:2") | |
| 1594 | 1594 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 1595 | 1595 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) |
| 1596 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2: | |
| 1596 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:1") | |
| 1597 | 1597 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1598 | 1598 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1599 | 1599 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:8") |
| r8581 | r8582 | |
|---|---|---|
| 196 | 196 | { |
| 197 | 197 | m10_state *state = (m10_state *)machine->driver_data; |
| 198 | 198 | |
| 199 | state->maincpu = devtag_get_device(machine, "maincpu"); | |
| 200 | state->ic8j1 = devtag_get_device(machine, "ic8j1"); | |
| 201 | state->ic8j2 = devtag_get_device(machine, "ic8j2"); | |
| 202 | state->samples = devtag_get_device(machine, "samples"); | |
| 199 | state->maincpu = machine->device("maincpu"); | |
| 200 | state->ic8j1 = machine->device("ic8j1"); | |
| 201 | state->ic8j2 = machine->device("ic8j2"); | |
| 202 | state->samples = machine->device("samples"); | |
| 203 | 203 | |
| 204 | 204 | state_save_register_global(machine, state->bottomline); |
| 205 | 205 | state_save_register_global(machine, state->flip); |
| r8581 | r8582 | |
|---|---|---|
| 312 | 312 | if (err != 0) |
| 313 | 313 | return 1; |
| 314 | 314 | |
| 315 | printf("Target file written succesfully\n"); | |
| 315 | printf("Target file written successfully\n"); | |
| 316 | 316 | return 0; |
| 317 | 317 | } |
| r0 | r8582 | |
|---|---|---|
| 1 | .\" -*- nroff -*- | |
| 2 | .\" | |
| 3 | .\" jedutil.1 | |
| 4 | .\" | |
| 5 | .\" Man page created from source and usage information | |
| 6 | .\" Cesare Falco <cesare.falco@gmail.com>, February 2007 | |
| 7 | .\" | |
| 8 | .\" References | |
| 9 | .\" http://aarongiles.com/?p=159 | |
| 10 | .\" | |
| 11 | .TH JEDUTIL 1 2010-06-26 0.138u4 "jedutil" | |
| 12 | .\" | |
| 13 | .\" NAME chapter | |
| 14 | .SH NAME | |
| 15 | jedutil \- convert a .JED file into its binary form, and vice\-versa | |
| 16 | .\" | |
| 17 | .\" SYNOPSIS chapter | |
| 18 | .SH SYNOPSIS | |
| 19 | .B jedutil | |
| 20 | .IR source ".jed " target .bin | |
| 21 | .br | |
| 22 | .B jedutil | |
| 23 | .IR source ".bin " target .jed | |
| 24 | .\" | |
| 25 | .\" DESCRIPTION chapter | |
| 26 | .SH DESCRIPTION | |
| 27 | Data for Programmable Logic Devices (PLDs) are usually stored in a format known | |
| 28 | as JEDEC, basically a text file allowing insertion of further information by | |
| 29 | programmers. | |
| 30 | .PP | |
| 31 | MAME uses a raw binary representation of the same data, in order to | |
| 32 | achieve correct identification of PLD data through CRC and SHA1 algorithms | |
| 33 | (i.e. with the \-romident option). | |
| 34 | .PP | |
| 35 | .B jedutil | |
| 36 | provides an easy way to convert PLDs data between these two formats. |
| r0 | r8582 | |
|---|---|---|
| 1 | .\" -*- nroff -*- | |
| 2 | .\" | |
| 3 | .\" ldverify.1 | |
| 4 | .\" | |
| 5 | .\" Man page created from source and usage information by | |
| 6 | .\" Cesare Falco <cesare.falco@gmail.com>, August 2008 | |
| 7 | .\" | |
| 8 | .TH LDVERIFY 1 2010-06-26 0.138u4 "ldverify" | |
| 9 | .\" | |
| 10 | .\" NAME chapter | |
| 11 | .SH NAME | |
| 12 | ldverify \- MAME laserdisc data checker | |
| 13 | .\" | |
| 14 | .\" SYNOPSIS chapter | |
| 15 | .SH SYNOPSIS | |
| 16 | .B ldverify \fR[\fIavifile.avi\fR|\fIchdfile.chd\fR] | |
| 17 | .\" | |
| 18 | .\" DESCRIPTION chapter | |
| 19 | .SH DESCRIPTION | |
| 20 | .B ldverify | |
| 21 | is a tool which walks through either an AVI or CHD capture from a | |
| 22 | laserdisc and ensures that there are no anomalies lurking in | |
| 23 | the VBI data. | |
| 24 |
| r0 | r8582 | |
|---|---|---|
| 1 | .\" -*- nroff -*- | |
| 2 | .\" | |
| 3 | .\" chdman.1 | |
| 4 | .\" | |
| 5 | .\" Man page created from source and usage information by | |
| 6 | .\" Ashley T. Howes <debiandev@ashleyhowes.com>, February 2005 | |
| 7 | .\" updated by Cesare Falco <cesare.falco@gmail.com>, February 2007 | |
| 8 | .\" | |
| 9 | .TH CHDMAN 1 2010-06-26 0.138u4 "chdman" | |
| 10 | .\" | |
| 11 | .\" NAME chapter | |
| 12 | .SH NAME | |
| 13 | chdman \- MAME Compressed Hunks of Data (CHD) manager | |
| 14 | .\" | |
| 15 | .\" SYNOPSIS chapter | |
| 16 | .SH SYNOPSIS | |
| 17 | .B chdman | |
| 18 | .I option file | |
| 19 | .\" | |
| 20 | .\" DESCRIPTION chapter | |
| 21 | .SH DESCRIPTION | |
| 22 | .B chdman | |
| 23 | is the (C)ompressed (H)unks of (D)ata (CHD) manager for MAME. | |
| 24 | It is a tool to manage CHD images. | |
| 25 | .\" | |
| 26 | .\" OPTIONS chapter | |
| 27 | .SH OPTIONS | |
| 28 | .TP | |
| 29 | .B \-info \fIinput\fR.chd | |
| 30 | Dump the header information from a drive image. | |
| 31 | .TP | |
| 32 | .B \-createraw \fIinputhd\fR.raw \fIoutput\fR.chd [\fIinputoffs\fR [\fIhunksize\fR]] | |
| 33 | Create a new compressed raw image from a raw file. | |
| 34 | .TP | |
| 35 | .B \-createhd \fIinputhd\fR.raw \fIoutput\fR.chd [\fIinputoffs\fR [\fIcylinders \ | |
| 36 | heads sectors \fR[\fIsectorsize\fR [\fIhunksize\fR]]]] | |
| 37 | Create a new compressed hard disk image from a raw file. | |
| 38 | .TP | |
| 39 | .B \-createblankhd \fIoutput\fR.chd \fIcylinders heads sectors\fR [\fIsectorsize \ | |
| 40 | \fR[\fIhunksize\fR]] | |
| 41 | Create a new non\-compressed hard disk image, with all hunks filled with 0s. | |
| 42 | .TP | |
| 43 | .B \-createcd \fIinput\fR.toc \fIoutput\fR.chd | |
| 44 | Create a new compressed CD image from a raw file. | |
| 45 | .TP | |
| 46 | .B \-copydata \fIinput\fR.chd \fIoutput\fR.chd | |
| 47 | Copy all hunks of data from one CHD file to another. The hunk sizes do not need to match. | |
| 48 | If the source is shorter than the destination, the source data will be padded with 0s. | |
| 49 | .TP | |
| 50 | .B \-extract \fIinput\fR.chd \fIoutput\fR.raw | |
| 51 | Extract a raw file from a CHD image. | |
| 52 | .TP | |
| 53 | .B \-extractcd \fIinput\fR.chd \fIoutput\fR.toc \fIoutput\fR.bin | |
| 54 | Extract a CDRDAO .toc/.bin file from a CHD\-CD image. | |
| 55 | .TP | |
| 56 | .B \-verify \fIinput\fR.chd | |
| 57 | Validate the MD5/SHA1 on a drive image. | |
| 58 | .TP | |
| 59 | .B \-verifyfix \fIinput\fR.chd | |
| 60 | Validate and fix the MD5/SHA1 on a drive image. | |
| 61 | .TP | |
| 62 | .B \-update \fIinput\fR.chd \fIoutput\fR.chd | |
| 63 | Update CHD image using metadata from input file. | |
| 64 | .TP | |
| 65 | .B \-chomp \fIinput\fR.chd \fIoutput\fR.chd \fImaxhunk | |
| 66 | Chomp hunk from CHD image. | |
| 67 | .TP | |
| 68 | .B \-merge \fIparent\fR.chd \fIdiff\fR.chd \fIoutput\fR.chd | |
| 69 | Merge a parent and its child together. | |
| 70 | .TP | |
| 71 | .B \-diff \fIparent\fR.chd \fIcompare\fR.chd \fIdiff\fR.chd | |
| 72 | Generate a difference between two CHD files. | |
| 73 | .TP | |
| 74 | .B \-setchs \fIinout\fR.chd \fIcylinders heads sections | |
| 75 | Change the CHS values on a hard disk image. | |
| 76 | .TP | |
| 77 | .B \-split \fIinput\fR.chd \fIoutput\fR.chd \fIlength | |
| 78 | Split a CHD file into multiple parts. |
| r0 | r8582 | |
|---|---|---|
| 1 | .\" -*- nroff -*- | |
| 2 | .\" | |
| 3 | .\" testkeys.1 | |
| 4 | .\" | |
| 5 | .\" Man page created from source and usage information | |
| 6 | .\" Cesare Falco <cesare.falco@gmail.com>, February 2007 | |
| 7 | .\" | |
| 8 | .TH TESTKEYS 1 2010-06-26 0.138u4 "testkeys" | |
| 9 | .\" | |
| 10 | .\" NAME chapter | |
| 11 | .SH NAME | |
| 12 | testkeys \- returns SDL keycode for key pressed. | |
| 13 | .\" | |
| 14 | .\" SYNOPSIS chapter | |
| 15 | .SH SYNOPSIS | |
| 16 | .B testkeys | |
| 17 | .\" | |
| 18 | .\" DESCRIPTION chapter | |
| 19 | .SH DESCRIPTION | |
| 20 | Since 0.113 SDLMAME introduced keymap files to handle keyboards with non\-us layouts. | |
| 21 | .PP | |
| 22 | This simple utility helps determining which SDL keycode is bound to each key, thus | |
| 23 | making the process of compiling keymap files a bit easier. |
| r0 | r8582 | |
|---|---|---|
| 1 | .\" -*- nroff -*- | |
| 2 | .\" | |
| 3 | .\" ldplayer.1 | |
| 4 | .\" | |
| 5 | .\" Man page created from source and usage information by | |
| 6 | .\" Cesare Falco <cesare.falco@gmail.com>, August 2008 | |
| 7 | .\" | |
| 8 | .TH LDPLAYER 1 2010-07-07 0.138u4 "ldplayer" | |
| 9 | .\" | |
| 10 | .\" | |
| 11 | .\" NAME chapter | |
| 12 | .SH NAME | |
| 13 | ldplayer \- MAME laserdisc image player | |
| 14 | .\" | |
| 15 | .\" | |
| 16 | .\" SYNOPSIS chapter | |
| 17 | .SH SYNOPSIS | |
| 18 | .B ldplayer pr8210 | |
| 19 | \-rompath \fI/path/to/pr8210.zip\fP\fB\\;\fP\fI/path/to/image.chd\fP | |
| 20 | .\" | |
| 21 | .\" | |
| 22 | .\" DESCRIPTION chapter | |
| 23 | .SH DESCRIPTION | |
| 24 | .B ldplayer | |
| 25 | is an optional utility that simply plays the audio and video from laserdisc | |
| 26 | CHD files. It actually emulates and therefore behaves just like a real | |
| 27 | laserdisc player \- you can pause, fast-forward, rewind, and all the rest. | |
| 28 | .\" | |
| 29 | .\" | |
| 30 | .\" NOTES chapter | |
| 31 | .SH NOTES | |
| 32 | First of all, you need to go to your MAME ROMs folder and make a copy of | |
| 33 | \fBcubeqst.zip\fP (the ROMs for Cube Quest). Rename it as \fBpr8210.zip\fP. | |
| 34 | .P | |
| 35 | Next, run ldplayer. | |
| 36 | Note that the first path in the \fB\-rompath\fP option is the full path | |
| 37 | to the \fBpr8210.zip\fP file and the second is the full path to the laserdisc | |
| 38 | CHD file you wish to play. \fINote\fP the backslash and the semicolon | |
| 39 | \- \fB\\;\fP \- between them. | |
| 40 | .P | |
| 41 | Once ldplayer is running, you can hit \fBTAB\fP like usual and check out | |
| 42 | Inputs (this game) to see the controls. Space is the Play/Pause button, for | |
| 43 | instance. Note that some laserdiscs (notably Cube Quest) have 30 seconds or | |
| 44 | more of nothing at the start, so you either need to be patient or use | |
| 45 | fast-forward to start seeing video. | |
| 46 | .\" | |
| 47 | .\" | |
| 48 | .\" FILES chapter | |
| 49 | .SH FILES | |
| 50 | .TP | |
| 51 | .B /etc/mame/ldplayer.ini | |
| 52 | Main configuration file. |
| r0 | r8582 | |
|---|---|---|
| 1 | .\" -*- nroff -*- | |
| 2 | .\" | |
| 3 | .\" romcmp.1 | |
| 4 | .\" | |
| 5 | .\" Man page created from FAQs, source and usage information by | |
| 6 | .\" Ashley T. Howes <debiandev@ashleyhowes.com>, February 2005 | |
| 7 | .\" updated by Cesare Falco <cesare.falco@gmail.com>, February 2007 | |
| 8 | .\" | |
| 9 | .\" References | |
| 10 | .\" http://www.mame.net/mamefaq.html | |
| 11 | .\" | |
| 12 | .TH ROMCMP 1 2010-06-26 0.138u4 "romcmp" | |
| 13 | .\" | |
| 14 | .\" NAME chapter | |
| 15 | .SH NAME | |
| 16 | romcmp \- MAME rom and romsets check and comparison tool | |
| 17 | .\" | |
| 18 | .\" SYNOPSIS chapter | |
| 19 | .SH SYNOPSIS | |
| 20 | .B romcmp | |
| 21 | .RI [ \-option ] | |
| 22 | .RI [ dir1 | zip1 ] | |
| 23 | .RI [ dir2 | zip2 ] | |
| 24 | .\" | |
| 25 | .\" DESCRIPTION chapter | |
| 26 | .SH DESCRIPTION | |
| 27 | An eternal nuisance in arcade emulation are incomplete or corrupt dumps of the ROM chips. | |
| 28 | \fBromcmp\fP is a tool developed to detect the most common errors that can occur when dumping ROMS, | |
| 29 | for example stuck bits and address line errors. | |
| 30 | .PP | |
| 31 | It can check the ROMs in ZIP files or subdirectories. | |
| 32 | .PP | |
| 33 | \fBromcmp\fP can also be used to compare two ROM sets, by giving it two files or subdirectories | |
| 34 | as parameters. It will determine which ROMS are identical and which are the closest matches. | |
| 35 | This is useful when figuring out if a newly dumped ROM set is a clone of another ROM set. | |
| 36 | .\" | |
| 37 | .\" OPTIONS chapter | |
| 38 | .SH OPTIONS | |
| 39 | .TP | |
| 40 | .B \-d | |
| 41 | Enables a slower, more comprehensive comparison. | |
| 42 | .\" | |
| 43 | .\" EXAMPLES chapter | |
| 44 | .SH EXAMPLES | |
| 45 | .B romcmp \fIjumpkids.zip\fP | |
| 46 | will output the following: | |
| 47 | ||
| 48 | 11 files | |
| 49 | 23.3c FIXED BITS (xxxxxx1x) | |
| 50 | 23.3c FIRST AND SECOND HALF IDENTICAL | |
| 51 | ||
| 52 | This tells us that the 23.3C ROM in Jump Kids is bad, and incidentally, it causes the missing sound in that game. |
| r0 | r8582 | |
|---|---|---|
| 1 | .\" -*- nroff -*- | |
| 2 | .\" | |
| 3 | .\" mame.1 | |
| 4 | .\" | |
| 5 | .\" Man page created from usage and source information: | |
| 6 | .\" * commands: see src/emu/clifront.c clifront.h | |
| 7 | .\" * options: core entries, see src/emu/emuopts.c emuopts.h | |
| 8 | .\" SDL-specific entries, see src/osd/sdl/sdlmain.c osdsdl.h | |
| 9 | .\" Cesare Falco <cesare.falco@gmail.com>, February 2007 | |
| 10 | .\" | |
| 11 | .\" Also, some text borrowed from the xmame 0.106 man page, | |
| 12 | .\" done by Rene Herrmann <rene.herrmann@berlin.de>, September 2000 | |
| 13 | .\" and updated by Andrew Burton <burtona@gol.com>, July 2003 | |
| 14 | .\" | |
| 15 | .\" | |
| 16 | .TH MAME 1 2010-07-07 0.138u4 "MAME - The Multiple Arcade Machine Emulator" | |
| 17 | .\" | |
| 18 | .\" | |
| 19 | .\" NAME chapter | |
| 20 | .SH NAME | |
| 21 | MAME \- The Multiple Arcade Machine Emulator | |
| 22 | .\" | |
| 23 | .\" | |
| 24 | .\" SYNOPSIS chapter | |
| 25 | .SH SYNOPSIS | |
| 26 | .B mame | |
| 27 | .RI [ options ] | |
| 28 | .I gamename | |
| 29 | .\" | |
| 30 | .\" | |
| 31 | .\" DESCRIPTION chapter | |
| 32 | .SH DESCRIPTION | |
| 33 | Started in 1997 by Nicola Salmoria, MAME was originally intended as a series | |
| 34 | of emulators for individual games, which were later combined into a single | |
| 35 | multi\-game emulator. In the following years, MAME grew over and over up to | |
| 36 | the actual size, with more than 100 contributors to the project. | |
| 37 | .\" | |
| 38 | .\" | |
| 39 | .\" OPTIONS chapter | |
| 40 | .SH OPTIONS | |
| 41 | .\" | |
| 42 | .\" ******************************************************* | |
| 43 | .SS Core commands | |
| 44 | .\" ******************************************************* | |
| 45 | .TP | |
| 46 | .B \-help, \-? | |
| 47 | Displays current MAME version and copyright notice. | |
| 48 | .TP | |
| 49 | .B \-validate, \-valid | |
| 50 | Performs internal validation on every driver in the system. Run this | |
| 51 | before submitting changes to ensure that you haven't violated any of | |
| 52 | the core system rules. | |
| 53 | .\" | |
| 54 | .\" ******************************************************* | |
| 55 | .SS Configuration commands | |
| 56 | .\" ******************************************************* | |
| 57 | .TP | |
| 58 | .B \-createconfig, \-cc | |
| 59 | Creates the default \fBmame.ini\fP file in the current directory. All the | |
| 60 | configuration options (not commands) described below can be permanently | |
| 61 | changed by editing this configuration file. | |
| 62 | .TP | |
| 63 | .B \-showconfig, \-sc | |
| 64 | Displays the current configuration settings. | |
| 65 | .TP | |
| 66 | .B \-showusage, \-su | |
| 67 | Displays a summary of all the command line options. For options that | |
| 68 | are not mentioned here, the short summary given by | |
| 69 | \fBmame \-showusage\fR is usually sufficient. | |
| 70 | .\" | |
| 71 | .\" ******************************************************* | |
| 72 | .SS Frontend commands | |
| 73 | .\" ******************************************************* | |
| 74 | .B NOTE: | |
| 75 | By default, all the '\-list' commands below write info to the screen. | |
| 76 | If you wish to write the info to a textfile instead, use redirection, e.g. | |
| 77 | .B mame \-listxml > ~/mamelist.xml | |
| 78 | writes the full list of supported game to file \fImamelist.xml\fR in your home | |
| 79 | directory. | |
| 80 | .TP | |
| 81 | .B \-listxml, \-lx \fR[\fIgamename\fR|\fIwildcard\fR] | |
| 82 | List comprehensive details for all of the supported games. The output | |
| 83 | is quite long, so it is usually better to redirect this into a file. | |
| 84 | The output is in XML format. By default all games are listed; however, | |
| 85 | you can limit this list by specifying a driver name or wildcard after | |
| 86 | the \-listxml command. | |
| 87 | .TP | |
| 88 | .B \-listfull, \-ll \fR[\fIgamename\fR|\fIwildcard\fR] | |
| 89 | Displays a list of game driver names and descriptions. By default all | |
| 90 | games are listed; however, you can limit this list by specifying a | |
| 91 | driver name or wildcard after the \-listfull command. | |
| 92 | .TP | |
| 93 | .B \-listsource, \-ls \fR[\fIgamename\fR|\fIwildcard\fR] | |
| 94 | Displays a list of drivers and the names of the source files their game | |
| 95 | drivers live in. Useful for finding which driver a game runs on in | |
| 96 | order to fix bugs. By default all games are listed; however, you can | |
| 97 | limit this list by specifying a driver name or wildcard after the | |
| 98 | \-listsource command. | |
| 99 | .TP | |
| 100 | .B \-listclones, \-lc \fR[\fIgamename\fR|\fIwildcard\fR] | |
| 101 | Displays a list of clones. By default all clones are listed; however, | |
| 102 | you can limit this list by specifying a driver name or wildcard after | |
| 103 | the \-listclones command. | |
| 104 | .TP | |
| 105 | .B \-listbrothers, \-lb \fR[\fIgamename\fR|\fIwildcard\fR] | |
| 106 | Displays a list of "brothers" or other drivers from same sourcefile. | |
| 107 | By default all games are listed; however, you can limit this list by | |
| 108 | specifying a driver name or wildcard after the \-listbrothers command. | |
| 109 | .TP | |
| 110 | .B \-listcrc | |
| 111 | Displays a full list of CRCs of all ROM images referenced by all | |
| 112 | drivers within MAME code. | |
| 113 | .TP | |
| 114 | .B \-listroms \fIgamename | |
| 115 | Displays a list of ROM images referenced by the specified game. | |
| 116 | .TP | |
| 117 | .B \-listsamples \fIgamename | |
| 118 | Displays a list of samples referenced by the specified game. | |
| 119 | .TP | |
| 120 | .B \-verifyroms \fR[\fIgamename\fR|\fIwildcard\fR] | |
| 121 | Checks for invalid or missing ROM images. By default all drivers that | |
| 122 | have valid ZIP files or directories in the rompath are verified; | |
| 123 | however, you can limit this list by specifying a driver name or | |
| 124 | wildcard after the \-verifyroms command. | |
| 125 | .TP | |
| 126 | .B \-verifysamples \fR[\fIgamename\fR|\fIwildcard\fR] | |
| 127 | Checks for invalid or missing samples. By default all drivers that | |
| 128 | have valid ZIP files or directories in the samplepath are verified; | |
| 129 | however, you can limit this list by specifying a driver name or | |
| 130 | wildcard after the \-verifyroms command. | |
| 131 | .TP | |
| 132 | .B \-romident | |
| 133 | Attempts to identify ROM files, if they are known to MAME, in the | |
| 134 | specified .zip file or directory. This command can be used to try and | |
| 135 | identify ROM sets taken from unknown boards. On exit, the errorlevel | |
| 136 | is returned as one of the following: | |
| 137 | .br | |
| 138 | \fB0\fR all files were identified | |
| 139 | .br | |
| 140 | \fB7\fR all files were identified except for some "non\-ROM" files | |
| 141 | .br | |
| 142 | \fB8\fR some files were identified | |
| 143 | .br | |
| 144 | \fB9\fR no files were identified | |
| 145 | .TP | |
| 146 | .B \-listdevices, \-ld | |
| 147 | Output the list of devices referenced by a given game or set of games. | |
| 148 | .TP | |
| 149 | .B \-listmedia, \-lm | |
| 150 | Output the list of available media for the system. | |
| 151 | .TP | |
| 152 | .B \-listsoftware | |
| 153 | Output the list of known software for the system. | |
| 154 | .\" | |
| 155 | .\" ******************************************************* | |
| 156 | .SS Configuration options | |
| 157 | .\" ******************************************************* | |
| 158 | .TP | |
| 159 | .B \-[no]readconfig, \-[no]rc | |
| 160 | Enables or disables the reading of the config files. When enabled | |
| 161 | (which is the default), MAME reads the following config files in order: | |
| 162 | .br | |
| 163 | 1. \fBmame.ini\fR | |
| 164 | .br | |
| 165 | the main configuration file | |
| 166 | .br | |
| 167 | 2. \fI[name]\fB.ini\fR | |
| 168 | .br | |
| 169 | where \fIname\fR is your executable name, i.e. mame unless you changed it | |
| 170 | (e.g. if you renamed mame to mame0137, the parsed file will be | |
| 171 | \fImame0137.ini\fR) | |
| 172 | .br | |
| 173 | 3. \fBdebug.ini\fR, if the debugger is enabled | |
| 174 | .br | |
| 175 | 4. \fBvector.ini\fR, for vector games only | |
| 176 | .br | |
| 177 | 5. \fI[driver]\fB.ini\fR | |
| 178 | .br | |
| 179 | based on the source filename of the game driver | |
| 180 | .br | |
| 181 | 6. \fI[parent]\fB.ini\fR | |
| 182 | .br | |
| 183 | for clones only, may be called recursively | |
| 184 | .br | |
| 185 | 7. \fI[gamename]\fB.ini\fR | |
| 186 | .br | |
| 187 | note this sometimes resolves to the same of the source driver | |
| 188 | .br | |
| 189 | The settings in the later ini's override those in the earlier ini's. | |
| 190 | So, for example, if you wanted to disable overlay effects in the | |
| 191 | vector games, you can create a vector.ini with the "effect none" line | |
| 192 | in it, and it will override whatever effect value you have in your | |
| 193 | mame.ini. The default is ON (\-readconfig). | |
| 194 | .\" | |
| 195 | .\" ******************************************************* | |
| 196 | .SS Search path options | |
| 197 | .\" ******************************************************* | |
| 198 | .B IMPORTANT\fR: Please use the path, directory and file options in | |
| 199 | mame.ini \fBONLY\fR. Otherwise, the outcome may be unpredictable and not | |
| 200 | consistent across releases. | |
| 201 | .TP | |
| 202 | .B \-rompath, \-rp, \-biospath, \-bp, \fIpathname | |
| 203 | Specifies a list of paths within which to find ROM or hard disk images. | |
| 204 | Multiple paths can be specified by separating them with semicolons. | |
| 205 | The default is 'roms' (that is, a directory "roms" in the same directory | |
| 206 | as the MAME executable). | |
| 207 | .TP | |
| 208 | .B \-samplepath, \-sp \fIpathname | |
| 209 | Specifies a list of paths within which to find sample files. Multiple | |
| 210 | paths can be specified by separating them with semicolons. The default | |
| 211 | is 'samples' (that is, a directory "samples" in the same directory as | |
| 212 | the MAME executable). | |
| 213 | .TP | |
| 214 | .B \-artpath, \-artwork_directory \fIpathname | |
| 215 | Specifies a list of paths within which to find artwork files. Multiple | |
| 216 | paths can be specified by separating them with semicolons. The default | |
| 217 | is 'artwork' (that is, a directory "artwork" in the same directory as | |
| 218 | the MAME executable). | |
| 219 | .TP | |
| 220 | .B \-ctrlrpath, \-ctrlr_directory \fIpathname | |
| 221 | Specifies a list of paths within which to find controller\-specific | |
| 222 | configuration files. Multiple paths can be specified by separating | |
| 223 | them with semicolons. The default is 'ctrlr' (that is, a directory | |
| 224 | "ctrlr" in the same directory as the MAME executable). | |
| 225 | .TP | |
| 226 | .B \-inipath \fIpathname | |
| 227 | Specifies a list of paths within which to find .INI files. Multiple | |
| 228 | paths can be specified by separating them with semicolons. The default | |
| 229 | is '/etc/mame/'. | |
| 230 | .TP | |
| 231 | .B \-fontpath \fIpathname | |
| 232 | Specifies a list of paths within which to find .BDF font files. Multiple | |
| 233 | paths can be specified by separating them with semicolons. The default | |
| 234 | is '.' (that is, search in the same directory as the MAME executable). | |
| 235 | .TP | |
| 236 | .B \-cheatpath \fIpathname | |
| 237 | Specifies a list of paths within which to find cheat files. Multiple | |
| 238 | paths can be specified by separating them with semicolons. The default | |
| 239 | is 'cheat' (that is, a directory "cheat" in the same directory as | |
| 240 | the MAME executable). | |
| 241 | .TP | |
| 242 | .B \-crosshairpath \fIpathname | |
| 243 | Specifies a list of paths within which to find crosshair files. Multiple | |
| 244 | paths can be specified by separating them with semicolons. The default | |
| 245 | is 'crosshair' (that is, a directory "crosshair" in the same directory as | |
| 246 | the MAME executable). If the Crosshair is set to default in the menu, | |
| 247 | MAME will look for gamename\cross#.png and then cross#.png in the | |
| 248 | specified crosshairpath, where # is the player number. Failing that, | |
| 249 | MAME will use built\-in default crosshairs. | |
| 250 | .\" | |
| 251 | .\" ******************************************************* | |
| 252 | .SS Output Directory Options | |
| 253 | .\" ******************************************************* | |
| 254 | .TP | |
| 255 | .B \-cfg_directory \fIpathname | |
| 256 | Specifies a single directory where configuration files are stored. | |
| 257 | Configuration files store user configurable settings that are read at | |
| 258 | startup and written when MAME exits. The default is 'cfg' (that is, | |
| 259 | a directory "cfg" in the same directory as the MAME executable). If this | |
| 260 | directory does not exist, it will be automatically created. | |
| 261 | .TP | |
| 262 | .B \-nvram_directory \fIpathname | |
| 263 | Specifies a single directory where NVRAM files are stored. NVRAM files | |
| 264 | store the contents of EEPROM and non\-volatile RAM (NVRAM) for games | |
| 265 | which used this type of hardware. This data is read at startup and | |
| 266 | written when MAME exits. The default is 'nvram' (that is, a directory | |
| 267 | "nvram" in the same directory as the MAME executable). If this directory | |
| 268 | does not exist, it will be automatically created. | |
| 269 | .TP | |
| 270 | .B \-memcard_directory \fIpathname | |
| 271 | Specifies a single directory where memory card files are stored. Memory | |
| 272 | card files store the contents of removable memory cards for games which | |
| 273 | used this type of hardware. This data is read and written under control | |
| 274 | of the user via the "Memory Card" menu in the user interface. The | |
| 275 | default is 'memcard' (that is, a directory "memcard" in the same | |
| 276 | directory as the MAME executable). If this directory does not exist, | |
| 277 | it will be automatically created. | |
| 278 | .TP | |
| 279 | .B \-input_directory \fIpathname | |
| 280 | Specifies a single directory where input recording files are stored. | |
| 281 | Input recordings are created via the \-record option and played back via | |
| 282 | the \-playback option. The default is 'inp' (that is, a directory | |
| 283 | "inp" in the same directory as the MAME executable). If this directory | |
| 284 | does not exist, it will be automatically created. | |
| 285 | .TP | |
| 286 | .B \-state_directory \fIpathname | |
| 287 | Specifies a single directory where save state files are stored. Save | |
| 288 | state files are read and written either upon user request, or when using | |
| 289 | the \-autosave option. The default is 'sta' (that is, a directory "sta" | |
| 290 | in the same directory as the MAME executable). If this directory does | |
| 291 | not exist, it will be automatically created. | |
| 292 | .TP | |
| 293 | .B \-snapshot_directory \fIpathname | |
| 294 | Specifies a single directory where screen snapshots are stored, when | |
| 295 | requested by the user. The default is 'snap' (that is, a directory | |
| 296 | "snap" in the same directory as the MAME executable). If this directory | |
| 297 | does not exist, it will be automatically created. | |
| 298 | .TP | |
| 299 | .B \-diff_directory \fIpathname | |
| 300 | Specifies a single directory where hard drive differencing files are | |
| 301 | stored. Hard drive differencing files store any data that is written | |
| 302 | back to a hard disk image, in order to preserve the original image. The | |
| 303 | differencing files are created at startup when a game with a hard disk | |
| 304 | image. The default is 'diff' (that is, a directory "diff" in the same | |
| 305 | directory as the MAME executable). If this directory does not exist, | |
| 306 | it will be automatically created. | |
| 307 | .TP | |
| 308 | .B \-comment_directory \fIpathname | |
| 309 | Specifies a single directory where debugger comment files are stored. | |
| 310 | Debugger comment files are written by the debugger when comments are | |
| 311 | added to the disassembly for a game. The default is 'comments' (that is, | |
| 312 | a directory "comments" in the same directory as the MAME executable). | |
| 313 | If this directory does not exist, it will be automatically created. | |
| 314 | .\" | |
| 315 | .\" ******************************************************* | |
| 316 | .SS State/playback options | |
| 317 | .\" ******************************************************* | |
| 318 | .TP | |
| 319 | .B \-state \fIslot | |
| 320 | Immediately after starting the specified game, will cause the save | |
| 321 | state in the specified \fIslot\fP to be loaded. | |
| 322 | .TP | |
| 323 | .B \-[no]autosave | |
| 324 | When enabled, automatically creates a save state file when exiting MAME | |
| 325 | and automatically attempts to reload it when later starting MAME with | |
| 326 | the same game. This only works for games that have explicitly enabled | |
| 327 | save state support in their driver. The default is OFF (\-noautosave). | |
| 328 | .TP | |
| 329 | .B \-playback, \-pb \fIfilename | |
| 330 | Specifies a file from which to play back a series of game inputs. This | |
| 331 | feature does not work reliably for all games, but can be used to watch | |
| 332 | a previously recorded game session from start to finish. In order to | |
| 333 | make things consistent, you should only record and playback with all | |
| 334 | configuration (.cfg), NVRAM (.nv), and memory card files deleted. The | |
| 335 | default is NULL (no playback). | |
| 336 | .TP | |
| 337 | .B \-record, \-rec \fIfilename | |
| 338 | Specifies a file to record all input from a game session. This can be | |
| 339 | used to record a game session for later playback. This feature does not | |
| 340 | work reliably for all games, but can be used to watch a previously | |
| 341 | recorded game session from start to finish. In order to make things | |
| 342 | consistent, you should only record and playback with all configuration | |
| 343 | (.cfg), NVRAM (.nv), and memory card files deleted. The default is NULL | |
| 344 | (no recording). | |
| 345 | .TP | |
| 346 | .B \-snapname \fIname | |
| 347 | Describes how MAME should name files for snapshots. \fIname\fP is a string | |
| 348 | that provides a template that is used to generate a filename. Three | |
| 349 | simple substitutions are provided: the / character represents the | |
| 350 | path separator on any target platform (even Windows); the string \fI%g\fP | |
| 351 | represents the driver name of the current game; and the string \fI%i\fP | |
| 352 | represents an incrementing index. If \fI%i\fP is omitted, then each | |
| 353 | snapshot taken will overwrite the previous one; otherwise, MAME will | |
| 354 | find the next empty value for \fI%i\fP and use that for a filename. The | |
| 355 | default is \fI%g/%i\fP, which creates a separate folder for each game, | |
| 356 | and names the snapshots under it starting with 0000 and increasing | |
| 357 | from there. | |
| 358 | .TP | |
| 359 | .B \-snapsize \fIwidth\fPx\fIheight\fP | |
| 360 | Hard\-codes the size for snapshots and movie recording. By default, | |
| 361 | MAME will create snapshots at the game's current resolution in raw | |
| 362 | pixels, and will create movies at the game's starting resolution in | |
| 363 | raw pixels. If you specify this option, then MAME will create both | |
| 364 | snapshots and movies at the size specified, and will bilinear filter | |
| 365 | the result. Note that this size does not automatically rotate if the | |
| 366 | game is vertically oriented. The default is 'auto'. | |
| 367 | .TP | |
| 368 | .B \-snapview \fIviewname\fP | |
| 369 | Specifies the view to use when rendering snapshots and movies. By | |
| 370 | default, both use a special 'internal' view, which renders a separate | |
| 371 | snapshot per screen or renders movies only of the first screen. By | |
| 372 | specifying this option, you can override this default behavior and | |
| 373 | select a single view that will apply to all snapshots and movies. | |
| 374 | Note that \fIviewname\fP does not need to be a perfect match; rather, it | |
| 375 | will select the first view whose name matches all the characters | |
| 376 | specified by \fIviewname\fP. For example, \-snapview native will match the | |
| 377 | "Native (15:14)" view even though it is not a perfect match. | |
| 378 | \fIviewname\fP can also be 'auto', which selects the first view with all | |
| 379 | screens present. The default value is 'internal'. | |
| 380 | .TP | |
| 381 | .B \-mngwrite \fIfilename | |
| 382 | Writes each video frame to the given \fIfilename\fP in MNG format, producing | |
| 383 | an animation of the game session. Note that \-mngwrite only writes video | |
| 384 | frames; it does not save any audio data. Use \-wavwrite for that, and | |
| 385 | reassemble the audio/video using offline tools. The default is NULL (no | |
| 386 | recording). | |
| 387 | .TP | |
| 388 | .B \-aviwrite \fIfilename | |
| 389 | Stream video and sound data to the given \fIfilename\fP in AVI format, | |
| 390 | producing an animation of the game session complete with sound. The | |
| 391 | default is NULL (no recording). | |
| 392 | .TP | |
| 393 | .B \-wavwrite \fIfilename | |
| 394 | Writes the final mixer output to the given \fIfilename\fP in WAV format, | |
| 395 | producing an audio recording of the game session. The default is NULL | |
| 396 | (no recording). | |
| 397 | .TP | |
| 398 | .B \-[no]burnin | |
| 399 | Tracks brightness of the screen during play and at the end of | |
| 400 | emulation generates a PNG that can be used to simulate burn\-in | |
| 401 | effects on other games. The resulting PNG is created such that the | |
| 402 | least used\-areas of the screen are fully white (since burned\-in areas | |
| 403 | are darker, all other areas of the screen must be lightened a touch). | |
| 404 | The intention is that this PNG can be loaded via an artwork file with | |
| 405 | a low alpha (e.g, 0.1\-0.2 seems to work well) and blended over the | |
| 406 | entire screen. The PNG files are saved in the snap directory under | |
| 407 | the gamename\\burnin\-<screen.name>.png. The default is OFF (\-noburnin). | |
| 408 | .\" | |
| 409 | .\" ******************************************************* | |
| 410 | .SS Performance options | |
| 411 | .\" ******************************************************* | |
| 412 | .TP | |
| 413 | .B \-[no]autoframeskip, \-[no]afs | |
| 414 | Automatically determines the frameskip level while you're playing the | |
| 415 | game, adjusting it constantly in a frantic attempt to keep the game | |
| 416 | running at full speed. Turning this on overrides the value you have set | |
| 417 | for \-frameskip below. The default is OFF (\-noautoframeskip). | |
| 418 | .TP | |
| 419 | .B \-frameskip, \-fs \fIvalue | |
| 420 | Specifies the frameskip value (autoframeskip must be disabled). This is the | |
| 421 | number of frames out of every 12 to drop when running. For example, if you | |
| 422 | say \-frameskip 2, then MAME will display 10 out of every 12 frames. By | |
| 423 | skipping those frames, you may be able to get full speed in a game that | |
| 424 | requires more horsepower than your computer has. The default value is 0, | |
| 425 | which skips no frames. | |
| 426 | .TP | |
| 427 | .B \-seconds_to_run, \-str \fIvalue | |
| 428 | This option can be used for benchmarking and automated testing. It tells | |
| 429 | MAME to stop execution after a fixed number of seconds. By combining | |
| 430 | this with a fixed set of other command line options, you can set up a | |
| 431 | consistent environment for benchmarking MAME performance. In addition, | |
| 432 | upon exit, the \-str option will write a screenshot called final.png | |
| 433 | to the game's snapshot directory. | |
| 434 | .TP | |
| 435 | .B \-[no]throttle | |
| 436 | Configures the default thottling setting. When throttling is on, MAME | |
| 437 | attempts to keep the game running at the game's intended speed. When | |
| 438 | throttling is off, MAME runs the game as fast as it can. Note that the | |
| 439 | fastest speed is more often than not limited by your graphics card, | |
| 440 | especially for older games. The default is ON (\-throttle). | |
| 441 | .TP | |
| 442 | .B \-[no]sleep | |
| 443 | Allows MAME to give time back to the system when running with \-throttle. | |
| 444 | This allows other programs to have some CPU time, assuming that the | |
| 445 | game isn't taxing 100% of your CPU resources. This option can potentially | |
| 446 | cause hiccups in performance if other demanding programs are running. | |
| 447 | The default is ON (\-sleep). | |
| 448 | .TP | |
| 449 | .B \-speed | |
| 450 | Controls the speed of gameplay, relative to realtime; smaller numbers are | |
| 451 | slower. Default is 1.00. | |
| 452 | .TP | |
| 453 | .B \-refreshspeed, \-rs | |
| 454 | Automatically adjusts the \fB\-speed\fR parameter to keep the effective refresh | |
| 455 | rate below that of the lowest screen refresh rate. | |
| 456 | .\" | |
| 457 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 458 | .\" SDL specific | |
| 459 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 460 | .TP | |
| 461 | .B \-multithreading, \-mt | |
| 462 | Enable multithreading; this enables rendering and blitting on a separate | |
| 463 | thread. The default is OFF. | |
| 464 | .TP | |
| 465 | .B \-numprocessors, \-np | |
| 466 | Set number of processors; this overrides the number the system reports. | |
| 467 | .TP | |
| 468 | .B \-sdlvideofps | |
| 469 | Show SDL video performance. | |
| 470 | .\" | |
| 471 | .\" ******************************************************* | |
| 472 | .SS Rotation options | |
| 473 | .\" ******************************************************* | |
| 474 | .TP | |
| 475 | .B \-[no]rotate | |
| 476 | Rotate the game to match its normal state (horizontal/vertical). This | |
| 477 | ensures that both vertically and horizontally oriented games show up | |
| 478 | correctly without the need to rotate your monitor. If you want to keep | |
| 479 | the game displaying 'raw' on the screen the way it would have in the | |
| 480 | arcade, turn this option OFF. The default is ON (\-rotate). | |
| 481 | .TP | |
| 482 | .B \-[no]ror | \-[no]rol | |
| 483 | Rotate the game screen to the right (clockwise) or left (counter\- | |
| 484 | clockwise) relative to either its normal state (if \-rotate is specified) | |
| 485 | or its native state (if \-norotate is specified). The default for both of | |
| 486 | these options is OFF (\-noror \-norol). | |
| 487 | .TP | |
| 488 | .B \-[no]autoror | \-[no]autorol | |
| 489 | These options are designed for use with pivoting screens that only | |
| 490 | pivot in a single direction. If your screen only pivots clockwise, | |
| 491 | use \-autorol to ensure that the game will fill the screen either | |
| 492 | horizontally or vertically in one of the directions you can handle. | |
| 493 | If your screen only pivots counter\-clockwise, use \-autoror. | |
| 494 | .TP | |
| 495 | .B \-[no]flipx | |
| 496 | .TP | |
| 497 | .B \-[no]flipy | |
| 498 | Flip (mirror) the game screen either horizontally (\-flipx) or | |
| 499 | vertically (\-flipy). The flips are applied after the \-rotate and | |
| 500 | \-ror/\-rol options are applied. The default for both of these options | |
| 501 | is OFF (\-noflipx \-noflipy). | |
| 502 | .\" | |
| 503 | .\" ******************************************************* | |
| 504 | .SS Artwork options | |
| 505 | .\" ******************************************************* | |
| 506 | .TP | |
| 507 | .B \-[no]artwork_crop, \-[no]artcrop | |
| 508 | Enable cropping of artwork to the game screen area only. This | |
| 509 | option can also be controlled via the Video Options menu in the user | |
| 510 | interface. The default is OFF (\-noartwork_crop). | |
| 511 | .TP | |
| 512 | .B \-[no]use_backdrops, \-[no]backdrop | |
| 513 | Enables/disables the display of backdrops. The default is ON | |
| 514 | (\-use_backdrops). | |
| 515 | .TP | |
| 516 | .B \-[no]use_overlays, \-[no]overlay | |
| 517 | Enables/disables the display of overlays. The default is ON | |
| 518 | (\-use_overlays). | |
| 519 | .TP | |
| 520 | .B \-[no]use_bezels, \-[no]bezel | |
| 521 | Enables/disables the display of bezels. The default is ON | |
| 522 | (\-use_bezels). | |
| 523 | .\" | |
| 524 | .\" ******************************************************* | |
| 525 | .SS Screen options | |
| 526 | .\" ******************************************************* | |
| 527 | .TP | |
| 528 | .B \-brightness \fIvalue | |
| 529 | Controls the default brightness, or black level, of the game screens. | |
| 530 | This option does not affect the artwork or other parts of the display. | |
| 531 | Using the MAME UI, you can individually set the brightness for each game | |
| 532 | screen; this option controls the initial value for all visible game | |
| 533 | screens. The standard value is 1.0. Selecting lower values (down to 0.1) | |
| 534 | will produce a darkened display, while selecting higher values (up to | |
| 535 | 2.0) will give a brighter display. The default is 1.0. | |
| 536 | .TP | |
| 537 | .B \-contrast \fIvalue | |
| 538 | Controls the contrast, or white level, of the game screens. This option | |
| 539 | does not affect the artwork or other parts of the display. Using the | |
| 540 | MAME UI, you can individually set the contrast for each game screen; | |
| 541 | this option controls the initial value for all visible game screens. The | |
| 542 | standard value is 1.0. Selecting lower values (down to 0.1) will produce | |
| 543 | a dimmer display, while selecting higher values (up to 2.0) will | |
| 544 | give a more saturated display. The default is 1.0. | |
| 545 | .TP | |
| 546 | .B \-gamma \fIvalue | |
| 547 | Controls the gamma, which produces a potentially nonlinear black to | |
| 548 | white ramp, for the game screens. This option does not affect the | |
| 549 | artwork or other parts of the display. Using the MAME UI, you can | |
| 550 | individually set the gamma for each game screen; this option controls | |
| 551 | the initial value for all visible game screens. The standard value is | |
| 552 | 1.0, which gives a linear ramp from black to white. Selecting lower | |
| 553 | values (down to 0.1) will increase the nonlinearity toward black, | |
| 554 | while selecting higher values (up to 3.0) will push the nonlinearity | |
| 555 | toward white. The default is 1.0. | |
| 556 | .TP | |
| 557 | .B \-pause_brightness \fIvalue | |
| 558 | This controls the brightness level when MAME is paused. The default | |
| 559 | value is 0.65. | |
| 560 | .\" | |
| 561 | .\" ******************************************************* | |
| 562 | .SS Vector rendering options | |
| 563 | .\" ******************************************************* | |
| 564 | .TP | |
| 565 | .B \-[no]antialias, \-[no]aa | |
| 566 | Enables antialiased line rendering for vector games. The default is ON | |
| 567 | (\-antialias). | |
| 568 | .TP | |
| 569 | .B \-beam \fIwidth | |
| 570 | Sets the width of the vectors. This is a scaling factor against the | |
| 571 | standard vector width. A value of 1.0 will keep the default vector line | |
| 572 | width. Smaller values will reduce the width, and larger values will | |
| 573 | increase the width. The default is 1.0. | |
| 574 | .TP | |
| 575 | .B \-flicker \fIvalue | |
| 576 | Simulates a vector "flicker" effect, similar to a vector monitor that | |
| 577 | needs adjustment. This option requires a float argument in the range of | |
| 578 | 0.00\-100.00 (0=none, 100=maximum). The default is 0. | |
| 579 | .\" | |
| 580 | .\" ******************************************************* | |
| 581 | .SS Video options | |
| 582 | .\" ******************************************************* | |
| 583 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 584 | .\" SDL specific | |
| 585 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 586 | .TP | |
| 587 | .B \-video\fR [\fIsoft\fR|\fIopengl\fR|\fIopengl16\fR|\fInone\fR] | |
| 588 | Specifies which video subsystem to use for drawing: | |
| 589 | .br | |
| 590 | \fBsoft\fR uses software rendering, which is slower but more compatible. | |
| 591 | .br | |
| 592 | \fBopengl\fR uses OpenGL and your graphics accelerator to speed up many | |
| 593 | aspects of drawing MAME including compositing artwork, overlays, and | |
| 594 | bezels, as well as stretching the image to fit your screen. | |
| 595 | .br | |
| 596 | \fBopengl16\fR uses alternate OpenGL code, which should provide faster | |
| 597 | output on some cards. | |
| 598 | .br | |
| 599 | \fBnone\fR does no drawing and is intended for CPU benchmarking. | |
| 600 | .br | |
| 601 | Default is SOFT. | |
| 602 | .TP | |
| 603 | .B \-numscreens | |
| 604 | Reserved for future use. | |
| 605 | .TP | |
| 606 | .B \-[no]window, \-[no]w | |
| 607 | Run MAME in either full screen or a window. This is a fully\-featured window | |
| 608 | mode where the window resizes as necessary to track what the game does. | |
| 609 | And you can resize it yourself with your OS's standard window controls. | |
| 610 | The default is OFF (\-nowindow). | |
| 611 | .TP | |
| 612 | .B \-[no]maximize, \-[no]max | |
| 613 | Controls initial window size in windowed mode. If it is set on, the | |
| 614 | window will initially be set to the maximum supported size when you | |
| 615 | start MAME. If it is turned off, the window will start out at the | |
| 616 | smallest supported size. This option only has an effect when the | |
| 617 | \-window option is used. The default is ON (\-maximize). | |
| 618 | .TP | |
| 619 | .B \-keepaspect, \-ka | |
| 620 | Forces the correct aspect ratio. This means when you're resizing the window | |
| 621 | in windowed mode the actual game image will resize in discrete steps to | |
| 622 | maintain the proper shape of the game graphics. If you turn this off you can | |
| 623 | resize the window to anything you like and get funny squishing and stretching. | |
| 624 | The same applies for full\-screen. Default is ON (\-keepaspect). | |
| 625 | .TP | |
| 626 | .B \-unevenstretch, \-ues | |
| 627 | Allow non\-integer stretch factors. Video purists should stay far, far away | |
| 628 | from this option, while everyone else will be happy to know that it lets you | |
| 629 | fill the screen properly in full\-screen mode. Default is ON (\-unevenstretch). | |
| 630 | .TP | |
| 631 | .B \-effect | |
| 632 | Name of a PNG file to use for visual effects, or 'none'. Default is 'none'. | |
| 633 | .TP | |
| 634 | .B \-centerh | |
| 635 | Center horizontally within the view area. Default is ON (\-centerh). | |
| 636 | .TP | |
| 637 | .B \-centerv | |
| 638 | Center vertically within the view area. Default is ON (\-centerv). | |
| 639 | .TP | |
| 640 | .B \-waitvsync | |
| 641 | Enable waiting for the start of VBLANK before flipping screens; | |
| 642 | reduces tearing effects. | |
| 643 | .\" | |
| 644 | .\" ******************************************************* | |
| 645 | .SS Software video rendering subsystem options | |
| 646 | .\" ******************************************************* | |
| 647 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 648 | .\" SDL specific | |
| 649 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 650 | .B NOTE: | |
| 651 | All the options in this group are available only with softare video | |
| 652 | rendering subsystem, i.e \fB\-video soft\fR. | |
| 653 | .TP | |
| 654 | .B \-prescale | |
| 655 | Scale screen rendering by this amount in software. Default is 1. | |
| 656 | .TP | |
| 657 | .B \-scalemode, \-sm \fR[\fInone\fR|\fIasync\fR|\fIyv12\fR|\fIyuy2\fR|\fIyv12x2\fR|\fIyuy2x2\fR] | |
| 658 | Hardware scaling mode. | |
| 659 | .br | |
| 660 | \fBnone\fR use software rendering. | |
| 661 | .br | |
| 662 | \fBasync\fR async overlay. | |
| 663 | .br | |
| 664 | \fByv12\fR yv12 overlay. | |
| 665 | .br | |
| 666 | \fByuy2\fR yuy2 overlay. | |
| 667 | .br | |
| 668 | \fByv12x2\fR yv12 overlay using x2 prescaling. | |
| 669 | .br | |
| 670 | \fByuy2x2\fR yuy2 overlay using x2 prescaling. | |
| 671 | .br | |
| 672 | Default is NONE. | |
| 673 | .\" | |
| 674 | .\" ******************************************************* | |
| 675 | .SS OpenGL video rendering subsystem options | |
| 676 | .\" ******************************************************* | |
| 677 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 678 | .\" SDL specific | |
| 679 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 680 | .B NOTE: | |
| 681 | All the options in this group are available only with OpenGL video | |
| 682 | rendering subsystem, i.e \fB\-video opengl\fR or \fB\-video opengl16\fR. | |
| 683 | .TP | |
| 684 | .B \-filter, \-glfilter, \-flt | |
| 685 | Enable bilinear filtering on screen output. Default is ON (\-filter). | |
| 686 | .TP | |
| 687 | .B \-prescale | |
| 688 | Scale screen rendering by this amount in software. Default is 1. | |
| 689 | .TP | |
| 690 | .B \-gl_forcepow2texture | |
| 691 | Force power of two textures. Default is NO. | |
| 692 | .TP | |
| 693 | .B \-gl_notexturerect | |
| 694 | Don't use OpenGL GL_ARB_texture_rectangle. Default is ON: turn off | |
| 695 | (set this to 0) if corruption occurs in OpenGL mode, at cost of some | |
| 696 | performance loss. | |
| 697 | .TP | |
| 698 | .B \-gl_vbo | |
| 699 | Enable OpenGL VBO, if available, for a performance increase. | |
| 700 | Default is ON: turn off (set this to 0) if corruption occurs. | |
| 701 | .TP | |
| 702 | .B \-gl_pbo | |
| 703 | Enable OpenGL PBO, if available, for a performance increase. | |
| 704 | Default is ON: turn off (set this to 0) if corruption occurs. | |
| 705 | .TP | |
| 706 | .B \-gl_glsl | |
| 707 | Enable OpenGL GLSL, if available, for a performance increase. | |
| 708 | .TP | |
| 709 | .B \-gl_glsl_filter | |
| 710 | Enable OpenGL GLSL filtering instead of FF filtering 0=plain, 1=bilinear. | |
| 711 | Default is 1: bilinear. | |
| 712 | .TP | |
| 713 | .B \-glsl_shader_mame[0\-9] | |
| 714 | Preferred custom OpenGL GLSL shader set mame bitmap (from 0 to 9). | |
| 715 | .TP | |
| 716 | .B \-glsl_shader_screen[0\-9] | |
| 717 | Preferred custom OpenGL GLSL shader screen bitmap (from 0 to 9). | |
| 718 | .TP | |
| 719 | .B \-gl_glsl_vid_attr | |
| 720 | Enable OpenGL GLSL handling of brightness and contrast. Better RGB game | |
| 721 | performance for free. Default is ON. | |
| 722 | .TP | |
| 723 | .B \-resolution, \-r | |
| 724 | Select the resolution to use in full\-screen mode. | |
| 725 | \fB\-switchres\fR must be enabled for this to work. | |
| 726 | .TP | |
| 727 | .B \-screen | |
| 728 | .TP | |
| 729 | .B \-aspect, \-screen_aspect | |
| 730 | .TP | |
| 731 | .B \-view | |
| 732 | .TP | |
| 733 | .B \-screen[0\-3] | |
| 734 | .TP | |
| 735 | .B \-aspect[0\-3] | |
| 736 | .TP | |
| 737 | .B \-resolution[0\-3], \-r[0\-3] | |
| 738 | .TP | |
| 739 | .B \-view[0\-3] | |
| 740 | All these options are reserved for future use. | |
| 741 | .\" | |
| 742 | .\" ******************************************************* | |
| 743 | .SS Full screen options | |
| 744 | .\" ******************************************************* | |
| 745 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 746 | .\" SDL specific | |
| 747 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 748 | .TP | |
| 749 | .B \-[no]switchres | |
| 750 | Affects full screen mode only. Chooses if MAME can try to change the screen | |
| 751 | resolution (color depth is normally left alone) when in full\-screen mode. If | |
| 752 | it's off, you always get your desktop resolution in full\-screen mode (which can | |
| 753 | be useful for LCDs). | |
| 754 | .TP | |
| 755 | .B \-useallheads | |
| 756 | Split full screen image across monitors. | |
| 757 | .\" | |
| 758 | .\" ******************************************************* | |
| 759 | .SS Sound options | |
| 760 | .\" ******************************************************* | |
| 761 | .TP | |
| 762 | .B \-[no]sound | |
| 763 | Enable or disable sound altogether. The default is ON (\-sound). | |
| 764 | .TP | |
| 765 | .B \-samplerate, \-sr \fIvalue | |
| 766 | Sets the audio sample rate. Smaller values (e.g. 11025) cause lower | |
| 767 | audio quality but faster emulation speed. Higher values (e.g. 48000) | |
| 768 | cause higher audio quality but slower emulation speed. The default is | |
| 769 | 48000. | |
| 770 | .TP | |
| 771 | .B \-[no]samples | |
| 772 | Use samples if available. The default is ON (\-samples). | |
| 773 | .TP | |
| 774 | .B \-volume, \-vol \fIvalue | |
| 775 | Sets the startup volume. It can later be changed with the user interface | |
| 776 | (see Keys section). The volume is an attenuation in dB: e.g., | |
| 777 | "\-volume \-12" will start with \-12dB attenuation. The default is 0. | |
| 778 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 779 | .\" SDL specific | |
| 780 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 781 | .TP | |
| 782 | .B \-audio_latency \fIvalue | |
| 783 | This controls the amount of latency built into the audio streaming. | |
| 784 | The latency parameter controls the lower threshold. The default is 1 | |
| 785 | (meaning lower=1/5 and upper=2/5). Set it to 2 (\-audio_latency 2) to keep | |
| 786 | the sound buffer between 2/5 and 3/5 full. If you crank it up to 4, | |
| 787 | you can definitely notice the lag. | |
| 788 | .\" | |
| 789 | .\" ******************************************************* | |
| 790 | .SS Input options | |
| 791 | .\" ******************************************************* | |
| 792 | .TP | |
| 793 | .B \-[no]coin_lockout, \-[no]coinlock | |
| 794 | Enables simulation of the "coin lockout" feature that is implmeneted | |
| 795 | on a number of game PCBs. It was up to the operator whether or not | |
| 796 | the coin lockout outputs were actually connected to the coin | |
| 797 | mechanisms. If this feature is enabled, then attempts to enter a coin | |
| 798 | while the lockout is active will fail and will display a popup message | |
| 799 | in the user interface. If this feature is disabled, the coin lockout | |
| 800 | signal will be ignored. The default is ON (\-coin_lockout). | |
| 801 | .TP | |
| 802 | .B \-ctrlr \fIcontroller | |
| 803 | Enables support for special controllers. Configuration files are | |
| 804 | loaded from the ctrlrpath. They are in the same format as the .cfg | |
| 805 | files that are saved, but only control configuration data is read | |
| 806 | from the file. The default is NULL (no controller file). | |
| 807 | .TP | |
| 808 | .B \-[no]mouse | |
| 809 | Controls whether or not MAME looks for a mouse controller to use. Note | |
| 810 | that in many cases, lightguns are treated as mice by the operating | |
| 811 | system, so you may need to enable this to enable lightgun support. When | |
| 812 | this is enabled, you will not be able to use your mouse while playing | |
| 813 | a game. If you want to get control of your computer back, you will need | |
| 814 | to either pause the game or quit. The default is OFF (\-nomouse). | |
| 815 | .TP | |
| 816 | .B \-[no]joystick, \-[no]joy | |
| 817 | Controls whether or not MAME looks for joystick/gamepad controllers. | |
| 818 | The default is ON (\-joystick). | |
| 819 | .TP | |
| 820 | .B \-[no]lightgun, \-[no]gun | |
| 821 | Controls whether or not MAME makes use of lightgun controllers. | |
| 822 | Note that most lightguns map to the mouse, so using \-lightgun and | |
| 823 | \-mouse together may produce strange results. The default is OFF | |
| 824 | (\-nolightgun). | |
| 825 | .TP | |
| 826 | .B \-[no]multikeyboard, \-[no]multikey | |
| 827 | Determines whether MAME differentiates between multiple keyboards. | |
| 828 | Some systems may report more than one keyboard; by default, the data | |
| 829 | from all of these keyboards is combined so that it looks like a single | |
| 830 | keyboard. Turning this option on will enable MAME to report keypresses | |
| 831 | on different keyboards independently. The default is OFF | |
| 832 | (\-nomultikeyboard). | |
| 833 | .TP | |
| 834 | .B \-[no]multimouse | |
| 835 | Determines whether MAME differentiates between multiple mice. Some | |
| 836 | systems may report more than one mouse device; by default, the data | |
| 837 | from all of these mice is combined so that it looks like a single | |
| 838 | mouse. Turning this option on will enable MAME to report mouse | |
| 839 | movement and button presses on different mice independently. The | |
| 840 | default is OFF (\-nomultimouse). | |
| 841 | .TP | |
| 842 | .B \-[no]steadykey, \-[no]steady | |
| 843 | Some games require two or more buttons to be pressed at exactly the | |
| 844 | same time to make special moves. Due to limitations in the PC keyboard | |
| 845 | hardware, it can be difficult or even impossible to accomplish that | |
| 846 | using the standard keyboard handling. This option selects a different | |
| 847 | handling that makes it easier to register simultaneous button presses, | |
| 848 | but has the disadvantage of making controls less responsive. The | |
| 849 | default is OFF (\-nosteadykey). | |
| 850 | .TP | |
| 851 | .B \-[no]offscreen_reload, \-[no]reload | |
| 852 | Controls whether or not MAME treats a second button input from a | |
| 853 | lightgun as a reload signal. In this case, MAME will report the gun's | |
| 854 | position as (0,MAX) with the trigger held, which is equivalent to an | |
| 855 | offscreen reload. This is only needed for games that required you to | |
| 856 | shoot offscreen to reload, and then only if your gun does not support | |
| 857 | off screen reloads. The default is OFF (\-nooffscreen_reload). | |
| 858 | .TP | |
| 859 | .B \-joystick_map, \-joymap \fImap | |
| 860 | Controls how joystick values map to digital joystick controls. | |
| 861 | See /usr/share/doc/mame/config.txt for full details on \fImap\fR format. | |
| 862 | .TP | |
| 863 | .B \-joystick_deadzone, \-joy_deadzone, \-jdz \fIvalue | |
| 864 | If you play with an analog joystick, the center can drift a little. | |
| 865 | joystick_deadzone tells how far along an axis you must move before the | |
| 866 | axis starts to change. This option expects a float in the range of | |
| 867 | 0.0 to 1.0. Where 0 is the center of the joystick and 1 is the outer | |
| 868 | limit. The default is 0.3. | |
| 869 | .TP | |
| 870 | .B \-joystick_saturation, \-joy_saturation, \-jsat \fIvalue | |
| 871 | If you play with an analog joystick, the ends can drift a little, | |
| 872 | and may not match in the +/\- directions. joystick_saturation tells how | |
| 873 | far along an axis movement change will be accepted before it reaches | |
| 874 | the maximum range. This option expects a float in the range of 0.0 to | |
| 875 | 1.0, where 0 is the center of the joystick and 1 is the outer limit. | |
| 876 | The default is 0.85. | |
| 877 | .TP | |
| 878 | .B \-natural, \-nat | |
| 879 | Specifies whether to use a natural keyboard or not. | |
| 880 | .TP | |
| 881 | .B \-uimodekey, \-umk | |
| 882 | Specifies the key used to toggle between full and partial UI mode. | |
| 883 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 884 | .\" SDL specific | |
| 885 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 886 | .TP | |
| 887 | .B \-keymap | |
| 888 | Enable keymap for non\-QWERTY keyboards. Used in conjuction with | |
| 889 | \fB\-keymap_file\fR. | |
| 890 | .TP | |
| 891 | .B \-keymap_file \fIkeymap_file\fR | |
| 892 | Specifies the full path to the keymap file to be used. Shipped keymap files lie | |
| 893 | in \fB/usr/share/games/mame/keymaps\fR. | |
| 894 | .TP | |
| 895 | .B \-joy_idx1 \fIjoystick | |
| 896 | .TP | |
| 897 | .B \-joy_idx2 \fIjoystick | |
| 898 | .TP | |
| 899 | .B \-joy_idx3 \fIjoystick | |
| 900 | .TP | |
| 901 | .B \-joy_idx4 \fIjoystick | |
| 902 | .TP | |
| 903 | .B \-joy_idx5 \fIjoystick | |
| 904 | .TP | |
| 905 | .B \-joy_idx6 \fIjoystick | |
| 906 | .TP | |
| 907 | .B \-joy_idx7 \fIjoystick | |
| 908 | .TP | |
| 909 | .B \-joy_idx8 \fIjoystick | |
| 910 | With these options you can assign a joystick to a | |
| 911 | specific index in MAME. Even if the kernel will list the joysticks | |
| 912 | in a different order on the next boot, MAME will still see the joystick | |
| 913 | as e.g. "Joystick 2". Use mame \-v to see which joysticks are recognized. | |
| 914 | Default is AUTO. | |
| 915 | .TP | |
| 916 | .B \-sixaxis | |
| 917 | Use special handling for PS3 Sixaxis controllers. | |
| 918 | .TP | |
| 919 | .B \-videodriver, \-vd \fIx11\fR|\fIdirectfb\fR|\fIauto\fR | |
| 920 | SDL video driver to use; auto selects SDL default. | |
| 921 | .TP | |
| 922 | .B \-audiodriver, \-ad \fIalsa\fR|\fIarts\fR|\fIauto\fR | |
| 923 | SDL audio driver to use; auto selects SDL default. | |
| 924 | .TP | |
| 925 | .B \-gl_lib \fIalsa\fR|\fIarts\fR|\fIauto\fR | |
| 926 | Alternative libGL.so to use; auto selects SDL default. | |
| 927 | .\" | |
| 928 | .\" ******************************************************* | |
| 929 | .SS Input automatic enable options | |
| 930 | .\" ******************************************************* | |
| 931 | .TP | |
| 932 | .B \-paddle_device, \-paddle \fR[\fInone\fR|\fIkeyboard\fR|\fImouse\fR|\fIlightgun\fR|\fIjoystick\fR] | |
| 933 | .TP | |
| 934 | .B \-adstick_device, \-adstick \fR[\fInone\fR|\fIkeyboard\fR|\fImouse\fR|\fIlightgun\fR|\fIjoystick\fR] | |
| 935 | .TP | |
| 936 | .B \-pedal_device, \-pedal \fR[\fInone\fR|\fIkeyboard\fR|\fImouse\fR|\fIlightgun\fR|\fIjoystick\fR] | |
| 937 | .TP | |
| 938 | .B \-dial_device, \-dial \fR[\fInone\fR|\fIkeyboard\fR|\fImouse\fR|\fIlightgun\fR|\fIjoystick\fR] | |
| 939 | .TP | |
| 940 | .B \-trackball_device, \-trackball \fR[\fInone\fR|\fIkeyboard\fR|\fImouse\fR|\fIlightgun\fR|\fIjoystick\fR] | |
| 941 | .TP | |
| 942 | .B \-lightgun_device \fR[\fInone\fR|\fIkeyboard\fR|\fImouse\fR|\fIlightgun\fR|\fIjoystick\fR] | |
| 943 | .TP | |
| 944 | .B \-positional_device \fR[\fInone\fR|\fIkeyboard\fR|\fImouse\fR|\fIlightgun\fR|\fIjoystick\fR] | |
| 945 | .TP | |
| 946 | .B \-mouse_device \fR[\fInone\fR|\fIkeyboard\fR|\fImouse\fR|\fIlightgun\fR|\fIjoystick\fR] | |
| 947 | Each of these options controls autoenabling the mouse, or joystick | |
| 948 | depending on the presence of a particular class of analog | |
| 949 | control for a particular game. For example, if you specify the option | |
| 950 | \-paddle mouse, then any game that has a paddle control will automatically | |
| 951 | enable mouse controls just as if you had explicitly specified \-mouse. | |
| 952 | Note that these controls override the values of \-[no]mouse, | |
| 953 | \-[no]joystick, etc. | |
| 954 | .\" | |
| 955 | .\" ******************************************************* | |
| 956 | .SS Debugging options | |
| 957 | .\" ******************************************************* | |
| 958 | .TP | |
| 959 | .B \-[no]log | |
| 960 | Creates a file called error.log which contains all of the internal | |
| 961 | log messages generated by the MAME core and game drivers. The default | |
| 962 | is OFF (\-nolog). | |
| 963 | .TP | |
| 964 | .B \-[no]verbose, \-[no]v | |
| 965 | Displays internal diagnostic information. This information is very | |
| 966 | useful for debugging problems with your configuration. \fBIMPORTANT\fP: when | |
| 967 | reporting bugs, please run with mame \-verbose and include the resulting | |
| 968 | information. The default is off (\-noverbose). | |
| 969 | .TP | |
| 970 | .B \-update_in_pause | |
| 971 | Enables updating the screen bitmap while the game is paused. This is | |
| 972 | useful for debuggin in some scenarios (and gets in the way in others). | |
| 973 | .TP | |
| 974 | .B \-[no]debug, \-[no]d | |
| 975 | Activates the integrated debugger. By default, the debugger is entered | |
| 976 | by pressing the tilde (~) key during emulation. It is also entered | |
| 977 | immediately at startup. The default is OFF (\-nodebug). | |
| 978 | .TP | |
| 979 | .B \-debugscript \fIfilename | |
| 980 | Specifies a file that contains a list of debugger commands to execute | |
| 981 | immediately upon startup. The default is NULL (no commands). | |
| 982 | .TP | |
| 983 | .B \-debug_internal, \-di | |
| 984 | Use the internal debugger for debugging. | |
| 985 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 986 | .\" SDL specific | |
| 987 | .\" +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| 988 | .TP | |
| 989 | .B \-[no]oslog | |
| 990 | Outputs the error.log data to the system debugger. This can be used at | |
| 991 | the same time as \-log to output the log data to both targets as well. | |
| 992 | Default is OFF (\-nooslog). | |
| 993 | .\" | |
| 994 | .\" ******************************************************* | |
| 995 | .SS Misc options | |
| 996 | .\" ******************************************************* | |
| 997 | .TP | |
| 998 | .B \-bios \fIbiosname | |
| 999 | Specifies the specific BIOS to use with the current game, for game | |
| 1000 | systems that make use of a BIOS. The \-listxml output will list all of | |
| 1001 | the possible BIOS names for a game. The default is 'default'. | |
| 1002 | .TP | |
| 1003 | .B \-[no]cheat, \-[no]c | |
| 1004 | Enables the reading of the cheat database, if present, and the Cheat | |
| 1005 | menu in the user interface. The default is OFF (\-nocheat). | |
| 1006 | .TP | |
| 1007 | .B \-[no]skip_gameinfo | |
| 1008 | Forces MAME to skip displaying the game info screen. The default is OFF | |
| 1009 | (\-noskip_gameinfo). | |
| 1010 | .\" | |
| 1011 | .\" | |
| 1012 | .\" LEGAL NOTICE chapter | |
| 1013 | .SH LEGAL NOTICE | |
| 1014 | Please visit the MAME website for some important legal information: | |
| 1015 | .PP | |
| 1016 | http://mamedev.org/legal.html |
| r8581 | r8582 | |
|---|---|---|
| 447 | 447 | |
| 448 | 448 | // set up the audio specs |
| 449 | 449 | aspec.freq = machine->sample_rate; |
| 450 | aspec.format = AUDIO_S16SYS; // keep endian independ | |
| 450 | aspec.format = AUDIO_S16SYS; // keep endian independent | |
| 451 | 451 | aspec.channels = n_channels; |
| 452 | 452 | aspec.samples = sdl_xfer_samples; |
| 453 | 453 | aspec.callback = sdl_callback; |
| r8581 | r8582 | |
|---|---|---|
| 149 | 149 | *tailptr = auto_alloc(&m_machine, state_item(REG_CYCLES, "cycles", 8)); |
| 150 | 150 | tailptr = &(*tailptr)->m_next; |
| 151 | 151 | |
| 152 | // add a beam entry: beamx:123 | |
| 153 | *tailptr = auto_alloc(&m_machine, state_item(REG_BEAMX, "beamx", 3)); | |
| 152 | // add a beam entry: beamx:1234 | |
| 153 | *tailptr = auto_alloc(&m_machine, state_item(REG_BEAMX, "beamx", 4)); | |
| 154 | 154 | tailptr = &(*tailptr)->m_next; |
| 155 | 155 | |
| 156 | // add a beam entry: beamy:456 | |
| 157 | *tailptr = auto_alloc(&m_machine, state_item(REG_BEAMY, "beamy", 3)); | |
| 156 | // add a beam entry: beamy:5678 | |
| 157 | *tailptr = auto_alloc(&m_machine, state_item(REG_BEAMY, "beamy", 4)); | |
| 158 | 158 | tailptr = &(*tailptr)->m_next; |
| 159 | 159 | |
| 160 | 160 | // add a beam entry: frame:123456 |
| r8581 | r8582 | |
| 290 | 290 | if (screen != NULL) |
| 291 | 291 | { |
| 292 | 292 | curitem->m_currval = screen->frame_number(); |
| 293 | valstr.printf("% | |
| 293 | valstr.printf("%3d", (UINT32)curitem->m_currval); | |
| 294 | 294 | } |
| 295 | 295 | break; |
| 296 | 296 | } |
| r8581 | r8582 | |
|---|---|---|
| 1253 | 1253 | { |
| 1254 | 1254 | bool found = false; |
| 1255 | 1255 | for (device_t *device = machine->m_devicelist.first(); device != NULL; device = device->next()) |
| 1256 | if (device->debug()->breakpoint_enable(ref)) | |
| 1256 | if (device->debug()->breakpoint_enable(bpindex, ref)) | |
| 1257 | 1257 | found = true; |
| 1258 | 1258 | if (found) |
| 1259 | 1259 | debug_console_printf(machine, "Breakpoint %X %s\n", (UINT32)bpindex, ref ? "enabled" : "disabled"); |
| r8581 | r8582 | |
|---|---|---|
| 416 | 416 | |
| 417 | 417 | if (h8->TCORA[t]) |
| 418 | 418 | { |
| 419 | time = ( | |
| 419 | time = ( | |
| 420 | 420 | timer_adjust_oneshot(h8->timer[(t*2)], ATTOTIME_IN_HZ(time), 0); |
| 421 | 421 | } |
| 422 | 422 | |
| 423 | 423 | if (h8->TCORB[t]) |
| 424 | 424 | { |
| 425 | time = ( | |
| 425 | time = ( | |
| 426 | 426 | timer_adjust_oneshot(h8->timer[(t*2)+1], ATTOTIME_IN_HZ(time), 0); |
| 427 | 427 | } |
| 428 | 428 | } |
| r8581 | r8582 | |
|---|---|---|
| 96 | 96 | ourTCR = h8->per_regs[tcr[tnum]]; |
| 97 | 97 | ourTVAL = h8->h8TCNT[tnum]; |
| 98 | 98 | |
| 99 | period = attotime_mul(ATTOTIME_IN_HZ( | |
| 99 | period = attotime_mul(ATTOTIME_IN_HZ( | |
| 100 | 100 | |
| 101 | 101 | if (ourTCR & 4) |
| 102 | 102 | { |
| r8581 | r8582 | |
| 115 | 115 | ourTCR = h8->per_regs[tcr[tnum]]; |
| 116 | 116 | |
| 117 | 117 | // get the time per unit |
| 118 | cycle_time = attotime_mul(ATTOTIME_IN_HZ( | |
| 118 | cycle_time = attotime_mul(ATTOTIME_IN_HZ( | |
| 119 | 119 | cur = timer_timeelapsed(h8->timer[tnum]); |
| 120 | 120 | |
| 121 | 121 | ratio = attotime_to_double(cur) / attotime_to_double(cycle_time); |
| r8581 | r8582 | |
| 457 | 457 | attotime period; |
| 458 | 458 | int ourTCR = h8->per_regs[0x68+(tnum*8)]; |
| 459 | 459 | |
| 460 | period = attotime_mul(ATTOTIME_IN_HZ( | |
| 460 | period = attotime_mul(ATTOTIME_IN_HZ( | |
| 461 | 461 | |
| 462 | 462 | if (ourTCR & 4) |
| 463 | 463 | { |
| r8581 | r8582 | |
|---|---|---|
| 327 | 327 | switch (cpustate->m37710_regs[0x56+timer] & 0x3) |
| 328 | 328 | { |
| 329 | 329 | case 0: // timer mode |
| 330 | time = attotime_mul(ATTOTIME_IN_HZ(cpu | |
| 330 | time = attotime_mul(ATTOTIME_IN_HZ(cpu | |
| 331 | 331 | time = attotime_mul(time, tval + 1); |
| 332 | 332 | |
| 333 | 333 | #if M37710_DEBUG |
| r8581 | r8582 | |
| 362 | 362 | switch (cpustate->m37710_regs[0x56+timer] & 0x3) |
| 363 | 363 | { |
| 364 | 364 | case 0: // timer mode |
| 365 | time = attotime_mul(ATTOTIME_IN_HZ(cpu | |
| 365 | time = attotime_mul(ATTOTIME_IN_HZ(cpu | |
| 366 | 366 | time = attotime_mul(time, tval + 1); |
| 367 | 367 | |
| 368 | 368 | #if M37710_DEBUG |
| r8581 | r8582 | |
|---|---|---|
| 194 | 194 | endif |
| 195 | 195 | |
| 196 | 196 | $(CPUOBJ)/dsp32/dsp32.o: $(CPUSRC)/dsp32/dsp32.c \ |
| 197 | $(CPUSRC)/dsp32/dsp32.h | |
| 197 | $(CPUSRC)/dsp32/dsp32.h \ | |
| 198 | $(CPUSRC)/dsp32/dsp32ops.c | |
| 198 | 199 | |
| 199 | 200 | |
| 200 | 201 | |
| r8581 | r8582 | |
| 657 | 658 | |
| 658 | 659 | $(CPUOBJ)/i86/i86.o: $(CPUSRC)/i86/i86.c \ |
| 659 | 660 | $(CPUSRC)/i86/i86.h \ |
| 661 | $(CPUSRC)/i86/i86mem.c \ | |
| 662 | $(CPUSRC)/i86/i86time.c \ | |
| 660 | 663 | $(CPUSRC)/i86/instr86.c \ |
| 661 | 664 | $(CPUSRC)/i86/instr186.c \ |
| 662 | 665 | $(I86DEPS) |
| 663 | 666 | |
| 664 | 667 | $(CPUOBJ)/i86/i286.o: $(CPUSRC)/i86/i286.c \ |
| 665 | 668 | $(CPUSRC)/i86/i286.h \ |
| 669 | $(CPUSRC)/i86/i86mem.c \ | |
| 670 | $(CPUSRC)/i86/i86time.c \ | |
| 666 | 671 | $(CPUSRC)/i86/instr86.c \ |
| 667 | 672 | $(CPUSRC)/i86/instr186.c \ |
| 668 | 673 | $(CPUSRC)/i86/instr286.c \ |
| r8581 | r8582 | |
| 909 | 914 | DASMOBJS += $(CPUOBJ)/m6502/6502dasm.o |
| 910 | 915 | endif |
| 911 | 916 | |
| 917 | $(CPUOBJ)/m6502/m4510.o: $(CPUSRC)/m6502/m4510.c \ | |
| 918 | $(CPUSRC)/m6502/t65ce02.c | |
| 919 | ||
| 912 | 920 | $(CPUOBJ)/m6502/m6502.o: $(CPUSRC)/m6502/m6502.c \ |
| 913 | 921 | $(CPUSRC)/m6502/m6502.h \ |
| 914 | 922 | $(CPUSRC)/m6502/ops02.h \ |
| r8581 | r8582 | |
| 916 | 924 | $(CPUSRC)/m6502/t65c02.c \ |
| 917 | 925 | $(CPUSRC)/m6502/t65sc02.c \ |
| 918 | 926 | $(CPUSRC)/m6502/t6510.c \ |
| 927 | $(CPUSRC)/m6502/tn2a03.c \ | |
| 919 | 928 | $(CPUSRC)/m6502/tdeco16.c |
| 920 | 929 | |
| 921 | 930 | $(CPUOBJ)/m6502/m65ce02.o: $(CPUSRC)/m6502/m65ce02.c \ |
| r8581 | r8582 | |
| 991 | 1000 | endif |
| 992 | 1001 | |
| 993 | 1002 | $(CPUOBJ)/mc68hc11/mc68hc11.o: $(CPUSRC)/mc68hc11/mc68hc11.c \ |
| 994 | $(CPUSRC)/mc68hc11/hc11 | |
| 1003 | $(CPUSRC)/mc68hc11/hc11ops | |
| 995 | 1004 | |
| 996 | 1005 | |
| 997 | 1006 | |
| r8581 | r8582 | |
| 1161 | 1170 | $(CPUSRC)/v60/optable.c \ |
| 1162 | 1171 | $(CPUSRC)/v60/v60.c \ |
| 1163 | 1172 | $(CPUSRC)/v60/v60.h \ |
| 1173 | $(CPUSRC)/v60/v60mem.c \ | |
| 1164 | 1174 | $(CPUSRC)/v60/v60d.c |
| 1165 | 1175 | |
| 1166 | 1176 | |
| r8581 | r8582 | |
| 1222 | 1232 | |
| 1223 | 1233 | ifneq ($(filter RSP,$(CPUS)),) |
| 1224 | 1234 | OBJDIRS += $(CPUOBJ)/rsp |
| 1225 | CPUOBJS += $(CPUOBJ)/rsp/rspdrc.o | |
| 1235 | CPUOBJS += $(CPUOBJ)/rsp/rsp.o $(CPUOBJ)/rsp/rspdrc.o $(CPUOBJ)/rsp/rspfe.o $(DRCOBJ) | |
| 1226 | 1236 | DASMOBJS += $(CPUOBJ)/rsp/rsp_dasm.o |
| 1227 | 1237 | endif |
| 1228 | 1238 | |
| 1239 | $(CPUOBJ)/rsp/rsp.o: $(CPUSRC)/rsp/rsp.c \ | |
| 1240 | $(CPUSRC)/rsp/rsp.h | |
| 1241 | ||
| 1229 | 1242 | $(CPUOBJ)/rsp/rspdrc.o: $(CPUSRC)/rsp/rspdrc.c \ |
| 1230 | 1243 | $(CPUSRC)/rsp/rsp.h \ |
| 1231 | 1244 | $(CPUSRC)/rsp/rspfe.h \ |
| r8581 | r8582 | |
| 1405 | 1418 | endif |
| 1406 | 1419 | |
| 1407 | 1420 | $(CPUOBJ)/tms7000/tms7000.o: $(CPUSRC)/tms7000/tms7000.h \ |
| 1408 | $(CPUSRC)/tms7000/tms7000.c | |
| 1421 | $(CPUSRC)/tms7000/tms7000.c \ | |
| 1422 | $(CPUSRC)/tms7000/tms70op.c \ | |
| 1423 | $(CPUSRC)/tms7000/tms70tb.c | |
| 1409 | 1424 | |
| 1410 | 1425 | $(CPUOBJ)/tms7000/7000dasm.o: $(CPUSRC)/tms7000/tms7000.h \ |
| 1411 | 1426 | $(CPUSRC)/tms7000/7000dasm.c |
| r8581 | r8582 | |
| 1523 | 1538 | endif |
| 1524 | 1539 | |
| 1525 | 1540 | $(CPUOBJ)/tms32051/tms32051.o: $(CPUSRC)/tms32051/tms32051.c \ |
| 1526 | $(CPUSRC)/tms32051/tms32051.h | |
| 1541 | $(CPUSRC)/tms32051/tms32051.h \ | |
| 1542 | $(CPUSRC)/tms32051/32051ops.c | |
| 1527 | 1543 | |
| 1528 | 1544 | |
| 1529 | 1545 |
| r8581 | r8582 | |
|---|---|---|
| 2715 | 2715 | cpustate->program = device->space(AS_PROGRAM); |
| 2716 | 2716 | cpustate->io = device->space(AS_IO); |
| 2717 | 2717 | |
| 2718 | cpustate->timer_period = attotime_mul(ATTOTIME_IN_HZ(c | |
| 2718 | cpustate->timer_period = attotime_mul(ATTOTIME_IN_HZ(device->unscaled_clock( | |
| 2719 | 2719 | |
| 2720 | 2720 | // Reset registers to their initial values |
| 2721 | 2721 |
| r8581 | r8582 | |
|---|---|---|
| 252 | 252 | { FEATURE_I83C751, 0x1fe, "idle" }, |
| 253 | 253 | { FEATURE_I83C751, 0x1ff, "i2sta.7" }, |
| 254 | 254 | |
| 255 | /* unkown | |
| 255 | /* unknown | |
| 256 | 256 | * "ibf", "obf", "idsm", "obfc", e8 - eb |
| 257 | 257 | * "ma0", "ma1", "mb0", "mb1", ec - ef |
| 258 | 258 | */ |
| r8581 | r8582 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | CPU_DISASSEMBLE( rsp ); |
| 12 | 12 | |
| 13 | #ifndef USE_RSPDRC | |
| 14 | ||
| 13 | 15 | #define LOG_INSTRUCTION_EXECUTION 0 |
| 14 | 16 | #define SAVE_DISASM 0 |
| 15 | 17 | #define SAVE_DMEM 0 |
| r8581 | r8582 | |
| 183 | 185 | { |
| 184 | 186 | if (reg >= 0 && reg < 8) |
| 185 | 187 | { |
| 186 | return (rsp->config->sp_reg_r)(rsp-> | |
| 188 | return (rsp->config->sp_reg_r)(rsp->device | |
| 187 | 189 | } |
| 188 | 190 | else if (reg >= 8 && reg < 16) |
| 189 | 191 | { |
| 190 | return (rsp->config->dp_reg_r)(rsp-> | |
| 192 | return (rsp->config->dp_reg_r)(rsp->device | |
| 191 | 193 | } |
| 192 | 194 | else |
| 193 | 195 | { |
| r8581 | r8582 | |
| 199 | 201 | { |
| 200 | 202 | if (reg >= 0 && reg < 8) |
| 201 | 203 | { |
| 202 | (rsp->config->sp_reg_w)(rsp-> | |
| 204 | (rsp->config->sp_reg_w)(rsp->device | |
| 203 | 205 | } |
| 204 | 206 | else if (reg >= 8 && reg < 16) |
| 205 | 207 | { |
| 206 | (rsp->config->dp_reg_w)(rsp-> | |
| 208 | (rsp->config->dp_reg_w)(rsp->device | |
| 207 | 209 | } |
| 208 | 210 | else |
| 209 | 211 | { |
| r8581 | r8582 | |
| 298 | 300 | static CPU_INIT( rsp ) |
| 299 | 301 | { |
| 300 | 302 | rsp_state *rsp = get_safe_token(device); |
| 301 | int regIdx; | |
| 302 | int accumIdx; | |
| 303 | int regIdx; | |
| 304 | int accumIdx; | |
| 303 | 305 | rsp->config = (const rsp_config *)device->baseconfig().static_config(); |
| 304 | 306 | |
| 305 | 307 | if (LOG_INSTRUCTION_EXECUTION) |
| r8581 | r8582 | |
| 310 | 312 | rsp->program = device->space(AS_PROGRAM); |
| 311 | 313 | |
| 312 | 314 | #if 1 |
| 313 | ||
| 315 | | |
| 314 | 316 | for(regIdx = 0; regIdx < 32; regIdx++ ) |
| 315 | 317 | { |
| 316 | 318 | rsp->r[regIdx] = 0; |
| r8581 | r8582 | |
| 327 | 329 | rsp->reciprocal_high = 0; |
| 328 | 330 | #endif |
| 329 | 331 | |
| 330 | // ...except for the accumulators. | |
| 331 | // We're not calling mame_rand() because initializing something with mame_rand() | |
| 332 | // makes me retch uncontrollably. | |
| 333 | for(accumIdx = 0; accumIdx < 8; accumIdx++ ) | |
| 334 | { | |
| 335 | rsp->accum[accumIdx].l = 0; | |
| 336 | } | |
| 332 | // ...except for the accumulators. | |
| 333 | // We're not calling mame_rand() because initializing something with mame_rand() | |
| 334 | // makes me retch uncontrollably. | |
| 335 | for(accumIdx = 0; accumIdx < 8; accumIdx++ ) | |
| 336 | { | |
| 337 | rsp->accum[accumIdx].l = 0; | |
| 338 | } | |
| 337 | 339 | |
| 338 | 340 | rsp->sr = RSP_STATUS_HALT; |
| 339 | ||
| 341 | | |
| 340 | 342 | } |
| 341 | 343 | |
| 342 | 344 | static CPU_EXIT( rsp ) |
| r8581 | r8582 | |
| 1034 | 1036 | #if 0 |
| 1035 | 1037 | static float float_round(float input) |
| 1036 | 1038 | { |
| 1037 | INT32 integer = (INT32)input; | |
| 1038 | float fraction = input - (float)integer; | |
| 1039 | float output = 0.0f; | |
| 1040 | if( fraction >= 0.5f ) | |
| 1041 | { | |
| 1042 | output = (float)( integer + 1 ); | |
| 1043 | } | |
| 1044 | else | |
| 1045 | { | |
| 1046 | output = (float)integer; | |
| 1047 | } | |
| 1048 | return output; | |
| 1039 | INT32 integer = (INT32)input; | |
| 1040 | float fraction = input - (float)integer; | |
| 1041 | float output = 0.0f; | |
| 1042 | if( fraction >= 0.5f ) | |
| 1043 | { | |
| 1044 | output = (float)( integer + 1 ); | |
| 1045 | } | |
| 1046 | else | |
| 1047 | { | |
| 1048 | output = (float)integer; | |
| 1049 | } | |
| 1050 | return output; | |
| 1049 | 1051 | } |
| 1050 | 1052 | #endif |
| 1051 | 1053 | |
| r8581 | r8582 | |
| 1890 | 1892 | { |
| 1891 | 1893 | if (rsp->flag[2] & (1 << (del))) |
| 1892 | 1894 | { |
| 1893 | if (((UINT32)(INT16)(s1) + (UINT32)(INT16)(s2)) > 0x10000) | |
| 1895 | if (((UINT32)(UINT16)(s1) + (UINT32)(UINT16)(s2)) > 0x10000) | |
| 1894 | 1896 | { |
| 1895 | 1897 | W_ACCUM_L(del, s1); |
| 1896 | 1898 | CLEAR_COMPARE_FLAG(del); |
| r8581 | r8582 | |
| 2668 | 2670 | // ------------------------------------------------ |
| 2669 | 2671 | // |
| 2670 | 2672 | |
| 2671 | if (RTREG) | |
| 2672 | { | |
| 2673 | if (RDREG == 2) | |
| 2674 | { | |
| 2675 | // Anciliary clipping flags | |
| 2676 | RTVAL = rsp->flag[RDREG] & 0x00ff; | |
| 2677 | } | |
| 2678 | else | |
| 2679 | { | |
| 2680 | // All other flags are 16 bits but sign-extended at retrieval | |
| 2681 | RTVAL = (UINT32)rsp->flag[RDREG] | ( ( rsp->flag[RDREG] & 0x8000 ) ? 0xffff0000 : 0 ); | |
| 2682 | } | |
| 2683 | } | |
| 2673 | if (RTREG) | |
| 2674 | { | |
| 2675 | if (RDREG == 2) | |
| 2676 | { | |
| 2677 | // Anciliary clipping flags | |
| 2678 | RTVAL = rsp->flag[RDREG] & 0x00ff; | |
| 2679 | } | |
| 2680 | else | |
| 2681 | { | |
| 2682 | // All other flags are 16 bits but sign-extended at retrieval | |
| 2683 | RTVAL = (UINT32)rsp->flag[RDREG] | ( ( rsp->flag[RDREG] & 0x8000 ) ? 0xffff0000 : 0 ); | |
| 2684 | } | |
| 2685 | } | |
| 2684 | 2686 | break; |
| 2685 | 2687 | } |
| 2686 | 2688 | case 0x04: /* MTC2 */ |
| r8581 | r8582 | |
| 2787 | 2789 | |
| 2788 | 2790 | if( rsp->sr & RSP_STATUS_SSTEP ) |
| 2789 | 2791 | { |
| 2790 | if( rsp->step_count ) | |
| 2791 | { | |
| 2792 | rsp->step_count--; | |
| 2793 | } | |
| 2794 | else | |
| 2795 | { | |
| 2796 | rsp->sr |= RSP_STATUS_BROKE; | |
| 2797 | } | |
| 2792 | if( rsp->step_count ) | |
| 2793 | { | |
| 2794 | rsp->step_count--; | |
| 2795 | } | |
| 2796 | else | |
| 2797 | { | |
| 2798 | rsp->sr |= RSP_STATUS_BROKE; | |
| 2799 | } | |
| 2798 | 2800 | } |
| 2799 | 2801 | |
| 2800 | 2802 | if( rsp->sr & ( RSP_STATUS_HALT | RSP_STATUS_BROKE ) ) |
| r8581 | r8582 | |
| 2818 | 2820 | { |
| 2819 | 2821 | /* --- the following bits of info are set as 64-bit signed integers --- */ |
| 2820 | 2822 | case CPUINFO_INT_PC: |
| 2821 | case CPUINFO_INT_REGISTER + RSP_PC: rsp->pc = info->i; break; | |
| 2822 | case CPUINFO_INT_REGISTER + RSP_R0: rsp->r[0] = info->i; break; | |
| 2823 | case CPUINFO_INT_REGISTER + RSP_R1: rsp->r[1] = info->i; break; | |
| 2824 | case CPUINFO_INT_REGISTER + RSP_R2: rsp->r[2] = info->i; break; | |
| 2825 | case CPUINFO_INT_REGISTER + RSP_R3: rsp->r[3] = info->i; break; | |
| 2826 | case CPUINFO_INT_REGISTER + RSP_R4: rsp->r[4] = info->i; break; | |
| 2827 | case CPUINFO_INT_REGISTER + RSP_R5: rsp->r[5] = info->i; break; | |
| 2828 | case CPUINFO_INT_REGISTER + RSP_R6: rsp->r[6] = info->i; break; | |
| 2829 | case CPUINFO_INT_REGISTER + RSP_R7: rsp->r[7] = info->i; break; | |
| 2830 | case CPUINFO_INT_REGISTER + RSP_R8: rsp->r[8] = info->i; break; | |
| 2831 | case CPUINFO_INT_REGISTER + RSP_R9: rsp->r[9] = info->i; break; | |
| 2832 | case CPUINFO_INT_REGISTER + RSP_R10: rsp->r[10] = info->i; break; | |
| 2833 | case CPUINFO_INT_REGISTER + RSP_R11: rsp->r[11] = info->i; break; | |
| 2834 | case CPUINFO_INT_REGISTER + RSP_R12: rsp->r[12] = info->i; break; | |
| 2835 | case CPUINFO_INT_REGISTER + RSP_R13: rsp->r[13] = info->i; break; | |
| 2836 | case CPUINFO_INT_REGISTER + RSP_R14: rsp->r[14] = info->i; break; | |
| 2837 | case CPUINFO_INT_REGISTER + RSP_R15: rsp->r[15] = info->i; break; | |
| 2838 | case CPUINFO_INT_REGISTER + RSP_R16: rsp->r[16] = info->i; break; | |
| 2839 | case CPUINFO_INT_REGISTER + RSP_R17: rsp->r[17] = info->i; break; | |
| 2840 | case CPUINFO_INT_REGISTER + RSP_R18: rsp->r[18] = info->i; break; | |
| 2841 | case CPUINFO_INT_REGISTER + RSP_R19: rsp->r[19] = info->i; break; | |
| 2842 | case CPUINFO_INT_REGISTER + RSP_R20: rsp->r[20] = info->i; break; | |
| 2843 | case CPUINFO_INT_REGISTER + RSP_R21: rsp->r[21] = info->i; break; | |
| 2844 | case CPUINFO_INT_REGISTER + RSP_R22: rsp->r[22] = info->i; break; | |
| 2845 | case CPUINFO_INT_REGISTER + RSP_R23: rsp->r[23] = info->i; break; | |
| 2846 | case CPUINFO_INT_REGISTER + RSP_R24: rsp->r[24] = info->i; break; | |
| 2847 | case CPUINFO_INT_REGISTER + RSP_R25: rsp->r[25] = info->i; break; | |
| 2848 | case CPUINFO_INT_REGISTER + RSP_R26: rsp->r[26] = info->i; break; | |
| 2849 | case CPUINFO_INT_REGISTER + RSP_R27: rsp->r[27] = info->i; break; | |
| 2850 | case CPUINFO_INT_REGISTER + RSP_R28: rsp->r[28] = info->i; break; | |
| 2851 | case CPUINFO_INT_REGISTER + RSP_R29: rsp->r[29] = info->i; break; | |
| 2852 | case CPUINFO_INT_REGISTER + RSP_R30: rsp->r[30] = info->i; break; | |
| 2853 | case CPUINFO_INT_SP: | |
| 2854 | case CPUINFO_INT_REGISTER + RSP_R31: rsp->r[31] = info->i; break; | |
| 2855 | case CPUINFO_INT_REGISTER + RSP_SR: rsp->sr = info->i; break; | |
| 2856 | case CPUINFO_INT_REGISTER + RSP_NEXTPC: rsp->nextpc = info->i; break; | |
| 2857 | case CPUINFO_INT_REGISTER + RSP_STEPCNT: rsp->step_count = info->i; break; | |
| 2823 | case CPUINFO_INT_REGISTER + RSP_PC: rsp->pc = info->i; break; | |
| 2824 | case CPUINFO_INT_REGISTER + RSP_R0: rsp->r[0] = info->i; break; | |
| 2825 | case CPUINFO_INT_REGISTER + RSP_R1: rsp->r[1] = info->i; break; | |
| 2826 | case CPUINFO_INT_REGISTER + RSP_R2: rsp->r[2] = info->i; break; | |
| 2827 | case CPUINFO_INT_REGISTER + RSP_R3: rsp->r[3] = info->i; break; | |
| 2828 | case CPUINFO_INT_REGISTER + RSP_R4: rsp->r[4] = info->i; break; | |
| 2829 | case CPUINFO_INT_REGISTER + RSP_R5: rsp->r[5] = info->i; break; | |
| 2830 | case CPUINFO_INT_REGISTER + RSP_R6: rsp->r[6] = info->i; break; | |
| 2831 | case CPUINFO_INT_REGISTER + RSP_R7: rsp->r[7] = info->i; break; | |
| 2832 | case CPUINFO_INT_REGISTER + RSP_R8: rsp->r[8] = info->i; break; | |
| 2833 | case CPUINFO_INT_REGISTER + RSP_R9: rsp->r[9] = info->i; break; | |
| 2834 | case CPUINFO_INT_REGISTER + RSP_R10: rsp->r[10] = info->i; break; | |
| 2835 | case CPUINFO_INT_REGISTER + RSP_R11: rsp->r[11] = info->i; break; | |
| 2836 | case CPUINFO_INT_REGISTER + RSP_R12: rsp->r[12] = info->i; break; | |
| 2837 | case CPUINFO_INT_REGISTER + RSP_R13: rsp->r[13] = info->i; break; | |
| 2838 | case CPUINFO_INT_REGISTER + RSP_R14: rsp->r[14] = info->i; break; | |
| 2839 | case CPUINFO_INT_REGISTER + RSP_R15: rsp->r[15] = info->i; break; | |
| 2840 | case CPUINFO_INT_REGISTER + RSP_R16: rsp->r[16] = info->i; break; | |
| 2841 | case CPUINFO_INT_REGISTER + RSP_R17: rsp->r[17] = info->i; break; | |
| 2842 | case CPUINFO_INT_REGISTER + RSP_R18: rsp->r[18] = info->i; break; | |
| 2843 | case CPUINFO_INT_REGISTER + RSP_R19: rsp->r[19] = info->i; break; | |
| 2844 | case CPUINFO_INT_REGISTER + RSP_R20: rsp->r[20] = info->i; break; | |
| 2845 | case CPUINFO_INT_REGISTER + RSP_R21: rsp->r[21] = info->i; break; | |
| 2846 | case CPUINFO_INT_REGISTER + RSP_R22: rsp->r[22] = info->i; break; | |
| 2847 | case CPUINFO_INT_REGISTER + RSP_R23: rsp->r[23] = info->i; break; | |
| 2848 | case CPUINFO_INT_REGISTER + RSP_R24: rsp->r[24] = info->i; break; | |
| 2849 | case CPUINFO_INT_REGISTER + RSP_R25: rsp->r[25] = info->i; break; | |
| 2850 | case CPUINFO_INT_REGISTER + RSP_R26: rsp->r[26] = info->i; break; | |
| 2851 | case CPUINFO_INT_REGISTER + RSP_R27: rsp->r[27] = info->i; break; | |
| 2852 | case CPUINFO_INT_REGISTER + RSP_R28: rsp->r[28] = info->i; break; | |
| 2853 | case CPUINFO_INT_REGISTER + RSP_R29: rsp->r[29] = info->i; break; | |
| 2854 | case CPUINFO_INT_REGISTER + RSP_R30: rsp->r[30] = info->i; break; | |
| 2855 | case CPUINFO_INT_SP: | |
| 2856 | case CPUINFO_INT_REGISTER + RSP_R31: rsp->r[31] = info->i; break; | |
| 2857 | case CPUINFO_INT_REGISTER + RSP_SR: rsp->sr = info->i; break; | |
| 2858 | case CPUINFO_INT_REGISTER + RSP_NEXTPC: rsp->nextpc = info->i; break; | |
| 2859 | case CPUINFO_INT_REGISTER + RSP_STEPCNT: rsp->step_count = info->i; break; | |
| 2858 | 2860 | } |
| 2859 | 2861 | } |
| 2860 | 2862 | |
| r8581 | r8582 | |
| 2928 | 2930 | case CPUINFO_INT_REGISTER + RSP_R31: info->i = rsp->r[31]; break; |
| 2929 | 2931 | case CPUINFO_INT_REGISTER + RSP_SR: info->i = rsp->sr; break; |
| 2930 | 2932 | case CPUINFO_INT_REGISTER + RSP_NEXTPC: info->i = rsp->nextpc; break; |
| 2931 | ||
| 2933 | | |
| 2932 | 2934 | |
| 2933 | 2935 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2934 | 2936 | case CPUINFO_FCT_SET_INFO: info->setinfo = CPU_SET_INFO_NAME(rsp); break; |
| r8581 | r8582 | |
| 2985 | 2987 | case CPUINFO_STR_REGISTER + RSP_R31: sprintf(info->s, "R31: %08X", rsp->r[31]); break; |
| 2986 | 2988 | case CPUINFO_STR_REGISTER + RSP_SR: sprintf(info->s, "SR: %08X", rsp->sr); break; |
| 2987 | 2989 | case CPUINFO_STR_REGISTER + RSP_NEXTPC: sprintf(info->s, "NPC: %08X", rsp->nextpc);break; |
| 2988 | ||
| 2990 | | |
| 2989 | 2991 | } |
| 2990 | 2992 | } |
| 2991 | 2993 | |
| 2994 | void rspdrc_set_options(running_device *device, UINT32 options) | |
| 2995 | { | |
| 2996 | } | |
| 2997 | ||
| 2998 | void rspdrc_add_imem(running_device *device, void *base) | |
| 2999 | { | |
| 3000 | } | |
| 3001 | ||
| 3002 | void rspdrc_add_dmem(running_device *device, void *base) | |
| 3003 | { | |
| 3004 | } | |
| 3005 | ||
| 3006 | void rspdrc_flush_drc_cache(running_device *device) | |
| 3007 | { | |
| 3008 | } | |
| 3009 | ||
| 2992 | 3010 | DEFINE_LEGACY_CPU_DEVICE(RSP, rsp); |
| 3011 | ||
| 3012 | #endif // USE_RSPDRC |
| r8581 | r8582 | |
|---|---|---|
| 16 | 16 | #ifndef __RSP_H__ |
| 17 | 17 | #define __RSP_H__ |
| 18 | 18 | |
| 19 | #define USE_RSPDRC | |
| 19 | 20 | |
| 20 | ||
| 21 | 21 | /*************************************************************************** |
| 22 | 22 | REGISTER ENUMERATION |
| 23 | 23 | ***************************************************************************/ |
| r8581 | r8582 | |
| 197 | 197 | VECTOR_REG v[32]; |
| 198 | 198 | UINT16 flag[4]; |
| 199 | 199 | UINT32 sr; |
| 200 | ||
| 200 | | |
| 201 | 201 | |
| 202 | 202 | ACCUMULATOR accum[8]; |
| 203 | 203 | INT32 square_root_res; |
| r8581 | r8582 | |
|---|---|---|
| 31 | 31 | |
| 32 | 32 | extern offs_t rsp_dasm_one(char *buffer, offs_t pc, UINT32 op); |
| 33 | 33 | |
| 34 | #ifdef USE_RSPDRC | |
| 35 | ||
| 34 | 36 | /*************************************************************************** |
| 35 | 37 | DEBUGGING |
| 36 | 38 | ***************************************************************************/ |
| r8581 | r8582 | |
| 546 | 548 | debugging |
| 547 | 549 | -------------------------------------------------*/ |
| 548 | 550 | |
| 549 | //static void cfunc_printf_debug(void *param) | |
| 550 | //{ | |
| 551 | // rsp_state *rsp = (rsp_state *)param; | |
| 552 | // printf(rsp->impstate->format, rsp->impstate->arg0, rsp->impstate->arg1); | |
| 553 | // logerror(rsp->impstate->format, rsp->impstate->arg0, rsp->impstate->arg1); | |
| 554 | //} | |
| 551 | #ifdef UNUSED_FUNCTION | |
| 552 | static void cfunc_printf_debug(void *param) | |
| 553 | { | |
| 554 | rsp_state *rsp = (rsp_state *)param; | |
| 555 | printf(rsp->impstate->format, rsp->impstate->arg0, rsp->impstate->arg1); | |
| 556 | logerror(rsp->impstate->format, rsp->impstate->arg0, rsp->impstate->arg1); | |
| 557 | } | |
| 558 | #endif | |
| 555 | 559 | |
| 556 | 560 | |
| 557 | 561 | /*------------------------------------------------- |
| r8581 | r8582 | |
| 559 | 563 | debugging 64-bit values |
| 560 | 564 | -------------------------------------------------*/ |
| 561 | 565 | |
| 562 | //static void cfunc_printf_debug64(void *param) | |
| 563 | //{ | |
| 564 | // rsp_state *rsp = (rsp_state *)param; | |
| 565 | // printf(rsp->impstate->format, (UINT32)(rsp->impstate->arg64 >> 32), (UINT32)(rsp->impstate->arg64 & 0x00000000ffffffff)); | |
| 566 | // logerror(rsp->impstate->format, (UINT32)(rsp->impstate->arg64 >> 32), (UINT32)(rsp->impstate->arg64 & 0x00000000ffffffff)); | |
| 567 | //} | |
| 566 | #ifdef UNUSED_FUNCTION | |
| 567 | static void cfunc_printf_debug64(void *param) | |
| 568 | { | |
| 569 | rsp_state *rsp = (rsp_state *)param; | |
| 570 | printf(rsp->impstate->format, (UINT32)(rsp->impstate->arg64 >> 32), (UINT32)(rsp->impstate->arg64 & 0x00000000ffffffff)); | |
| 571 | logerror(rsp->impstate->format, (UINT32)(rsp->impstate->arg64 >> 32), (UINT32)(rsp->impstate->arg64 & 0x00000000ffffffff)); | |
| 572 | } | |
| 573 | #endif | |
| 568 | 574 | |
| 569 | ||
| 570 | 575 | static void cfunc_get_cop0_reg(void *param) |
| 571 | 576 | { |
| 572 | 577 | rsp_state *rsp = (rsp_state*)param; |
| r8581 | r8582 | |
| 713 | 718 | rsp->reciprocal_high = 0; |
| 714 | 719 | #endif |
| 715 | 720 | |
| 716 | // ...except for the accumulators. | |
| 717 | for(accumIdx = 0; accumIdx < 8; accumIdx++ ) | |
| 718 | { | |
| 719 | rsp->accum[accumIdx].l = 0; | |
| 720 | } | |
| 721 | // ...except for the accumulators. | |
| 722 | for(accumIdx = 0; accumIdx < 8; accumIdx++ ) | |
| 723 | { | |
| 724 | rsp->accum[accumIdx].l = 0; | |
| 725 | } | |
| 721 | 726 | |
| 722 | 727 | rsp->sr = RSP_STATUS_HALT; |
| 723 | ||
| 728 | | |
| 724 | 729 | } |
| 725 | 730 | |
| 726 | 731 | static CPU_INIT( rsp ) |
| r8581 | r8582 | |
| 1452 | 1457 | #endif |
| 1453 | 1458 | case 0x07: /* LUV */ |
| 1454 | 1459 | #if (DRC_LUV) |
| 1455 | /* | |
| 1456 | ea = (base) ? rsp->r[base] + (offset * 8) : (offset * 8); | |
| 1460 | #ifdef UNUSED_CODE | |
| 1461 | ea = (base) ? rsp->r[base] + (offset * 8) : (offset * 8); | |
| 1457 | 1462 | |
| 1458 | for (i=0; i < 8; i++) | |
| 1459 | { | |
| 1460 | W_VREG_S(dest, i, READ8(rsp, ea + (((16-index) + i) & 0xf)) << 7); | |
| 1461 | } | |
| 1462 | */ | |
| 1463 | for (i=0; i < 8; i++) | |
| 1464 | { | |
| 1465 | W_VREG_S(dest, i, READ8(rsp, ea + (((16-index) + i) & 0xf)) << 7); | |
| 1466 | } | |
| 1467 | #endif | |
| 1463 | 1468 | offset <<= 3; |
| 1464 | 1469 | |
| 1465 | 1470 | UML_ADD(block, IREG(2), R32(RSREG), IMM(offset)); // add i2,<rsreg>,offset |
| r8581 | r8582 | |
| 2115 | 2120 | #if (DRC_VMADN) |
| 2116 | 2121 | static void generate_saturate_accum_unsigned(rsp_state *rsp, drcuml_block *block, compiler_state *compiler, const opcode_desc *desc, int accum) |
| 2117 | 2122 | { |
| 2118 | /* | |
| 2119 | int skip, skip2; | |
| 2123 | #ifdef UNUSED_CODE | |
| 2124 | int skip, skip2; | |
| 2120 | 2125 | |
| 2121 | UML_CMP(block, VACCUMWMH(accum), IMM(-32768)); | |
| 2122 | UML_JMPc(block, IF_GE, skip = compiler->labelnum++); | |
| 2123 | UML_MOV(block, IREG(0), IMM(0)); | |
| 2124 | UML_JMP(block, skip2 = compiler->labelnum++); | |
| 2126 | UML_CMP(block, VACCUMWMH(accum), IMM(-32768)); | |
| 2127 | UML_JMPc(block, IF_GE, skip = compiler->labelnum++); | |
| 2128 | UML_MOV(block, IREG(0), IMM(0)); | |
| 2129 | UML_JMP(block, skip2 = compiler->labelnum++); | |
| 2125 | 2130 | |
| 2126 | UML_LABEL(block, skip); | |
| 2127 | UML_CMP(block, VACCUMWMH(accum), IMM(32767)); | |
| 2128 | UML_JMPc(block, IF_L, skip = compiler->labelnum++); | |
| 2129 | UML_MOV(block, IREG(0), IMM(0x0000ffff)); | |
| 2130 | UML_JMP(block, skip2); | |
| 2131 | UML_LABEL(block, skip); | |
| 2132 | UML_CMP(block, VACCUMWMH(accum), IMM(32767)); | |
| 2133 | UML_JMPc(block, IF_L, skip = compiler->labelnum++); | |
| 2134 | UML_MOV(block, IREG(0), IMM(0x0000ffff)); | |
| 2135 | UML_JMP(block, skip2); | |
| 2131 | 2136 | |
| 2132 | UML_LABEL(block, skip); | |
| 2133 | UML_SEXT(block, IREG(0), VACCUMHL(accum), WORD); | |
| 2134 | UML_AND(block, IREG(0), IREG(0), IMM(0x0000ffff)); | |
| 2135 | UML_LABEL(block, skip2); | |
| 2136 | */ | |
| 2137 | UML_LABEL(block, skip); | |
| 2137 | 2138 | UML_SEXT(block, IREG(0), VACCUMHL(accum), WORD); |
| 2138 | 2139 | UML_AND(block, IREG(0), IREG(0), IMM(0x0000ffff)); |
| 2140 | UML_LABEL(block, skip2); | |
| 2141 | #endif | |
| 2142 | UML_SEXT(block, IREG(0), VACCUMHL(accum), WORD); | |
| 2143 | UML_AND(block, IREG(0), IREG(0), IMM(0x0000ffff)); | |
| 2139 | 2144 | UML_CMP(block, VACCUMWMH(accum), IMM(-32768)); |
| 2140 | 2145 | UML_MOVc(block, IF_L, IREG(0), IMM(0)); |
| 2141 | 2146 | UML_CMP(block, VACCUMWMH(accum), IMM(32767)); |
| r8581 | r8582 | |
| 2210 | 2215 | #if 0 |
| 2211 | 2216 | static float float_round(float input) |
| 2212 | 2217 | { |
| 2213 | INT32 integer = (INT32)input; | |
| 2214 | float fraction = input - (float)integer; | |
| 2215 | float output = 0.0f; | |
| 2216 | if( fraction >= 0.5f ) | |
| 2217 | { | |
| 2218 | output = (float)( integer + 1 ); | |
| 2219 | } | |
| 2220 | else | |
| 2221 | { | |
| 2222 | output = (float)integer; | |
| 2223 | } | |
| 2224 | return output; | |
| 2218 | INT32 integer = (INT32)input; | |
| 2219 | float fraction = input - (float)integer; | |
| 2220 | float output = 0.0f; | |
| 2221 | if( fraction >= 0.5f ) | |
| 2222 | { | |
| 2223 | output = (float)( integer + 1 ); | |
| 2224 | } | |
| 2225 | else | |
| 2226 | { | |
| 2227 | output = (float)integer; | |
| 2228 | } | |
| 2229 | return output; | |
| 2225 | 2230 | } |
| 2226 | 2231 | #endif |
| 2227 | 2232 | |
| r8581 | r8582 | |
| 2865 | 2870 | break; |
| 2866 | 2871 | } |
| 2867 | 2872 | |
| 2868 | /* | |
| 2869 | for (i=0; i < 8; i++) | |
| 2870 | { | |
| 2871 | int del = VEC_EL_1(EL, i); | |
| 2872 | int sel = VEC_EL_2(EL, del); | |
| 2873 | INT32 s1 = (INT32)(INT16)R_VREG_S(VS1REG, del); | |
| 2874 | INT32 s2 = (UINT16)R_VREG_S(VS2REG, sel); // not sign-extended | |
| 2875 | INT32 r = s1 * s2; | |
| 2873 | #ifdef UNUSED_CODE | |
| 2874 | for (i=0; i < 8; i++) | |
| 2875 | { | |
| 2876 | int del = VEC_EL_1(EL, i); | |
| 2877 | int sel = VEC_EL_2(EL, del); | |
| 2878 | INT32 s1 = (INT32)(INT16)R_VREG_S(VS1REG, del); | |
| 2879 | INT32 s2 = (UINT16)R_VREG_S(VS2REG, sel); // not sign-extended | |
| 2880 | INT32 r = s1 * s2; | |
| 2876 | 2881 | |
| 2877 | W_ACCUM_H(del, (r < 0) ? 0xffff : 0); // sign-extend to 48-bit | |
| 2878 | W_ACCUM_M(del, (INT16)(r >> 16)); | |
| 2879 | W_ACCUM_L(del, (UINT16)(r)); | |
| 2882 | W_ACCUM_H(del, (r < 0) ? 0xffff : 0); // sign-extend to 48-bit | |
| 2883 | W_ACCUM_M(del, (INT16)(r >> 16)); | |
| 2884 | W_ACCUM_L(del, (UINT16)(r)); | |
| 2880 | 2885 | |
| 2881 | vres[del] = ACCUM(del).h.mid; | |
| 2882 | } | |
| 2883 | WRITEBACK_RESULT(); | |
| 2884 | */ | |
| 2886 | vres[del] = ACCUM(del).h.mid; | |
| 2887 | } | |
| 2888 | WRITEBACK_RESULT(); | |
| 2889 | #endif | |
| 2885 | 2890 | } |
| 2886 | 2891 | #endif |
| 2887 | 2892 | |
| r8581 | r8582 | |
| 5146 | 5151 | { |
| 5147 | 5152 | if (rsp->flag[2] & (1 << (del))) |
| 5148 | 5153 | { |
| 5149 | if (((UINT32)(INT16)(s1) + (UINT32)(INT16)(s2)) > 0x10000) | |
| 5154 | if (((UINT32)(UINT16)(s1) + (UINT32)(UINT16)(s2)) > 0x10000) | |
| 5150 | 5155 | { |
| 5151 | 5156 | W_ACCUM_L(del, s1); |
| 5152 | 5157 | CLEAR_COMPARE_FLAG(del); |
| r8581 | r8582 | |
| 7306 | 7311 | cfunc_fatalerror - a generic fatalerror call |
| 7307 | 7312 | -------------------------------------------------*/ |
| 7308 | 7313 | |
| 7309 | //static void cfunc_fatalerror(void *param) | |
| 7310 | //{ | |
| 7311 | //fatalerror("fatalerror"); | |
| 7312 | //} | |
| 7314 | #ifdef UNUSED_CODE | |
| 7315 | static void cfunc_fatalerror(void *param) | |
| 7316 | { | |
| 7317 | fatalerror("fatalerror"); | |
| 7318 | } | |
| 7319 | #endif | |
| 7313 | 7320 | |
| 7314 | 7321 | |
| 7315 | 7322 | /*************************************************************************** |
| r8581 | r8582 | |
| 7654 | 7661 | } |
| 7655 | 7662 | |
| 7656 | 7663 | /* if we hit an unmapped address, fatal error */ |
| 7657 | //if (desc->flags & OPFLAG_COMPILER_UNMAPPED) | |
| 7658 | //{ | |
| 7659 | // UML_MOV(block, MEM(&rsp->pc), IMM(desc->pc)); // mov [pc],desc->pc | |
| 7660 | // save_fast_iregs(rsp, block); | |
| 7661 | // UML_EXIT(block, IMM(EXECUTE_UNMAPPED_CODE)); // exit EXECUTE_UNMAPPED_CODE | |
| 7662 | //} | |
| 7664 | #if 0 | |
| 7665 | if (desc->flags & OPFLAG_COMPILER_UNMAPPED) | |
| 7666 | { | |
| 7667 | UML_MOV(block, MEM(&rsp->pc), IMM(desc->pc)); // mov [pc],desc->pc | |
| 7668 | save_fast_iregs(rsp, block); | |
| 7669 | UML_EXIT(block, IMM(EXECUTE_UNMAPPED_CODE)); // exit EXECUTE_UNMAPPED_CODE | |
| 7670 | } | |
| 7671 | #endif | |
| 7663 | 7672 | |
| 7664 | 7673 | /* otherwise, unless this is a virtual no-op, it's a regular instruction */ |
| 7665 | 7674 | /*else*/ if (!(desc->flags & OPFLAG_VIRTUAL_NOOP)) |
| r8581 | r8582 | |
| 8196 | 8205 | |
| 8197 | 8206 | /* ----- unimplemented/illegal instructions ----- */ |
| 8198 | 8207 | |
| 8199 | // | |
| 8208 | // | |
| 8200 | 8209 | } |
| 8201 | 8210 | |
| 8202 | 8211 | return FALSE; |
| r8581 | r8582 | |
| 8547 | 8556 | { |
| 8548 | 8557 | /* --- the following bits of info are set as 64-bit signed integers --- */ |
| 8549 | 8558 | case CPUINFO_INT_PC: |
| 8550 | case CPUINFO_INT_REGISTER + RSP_PC: rsp->pc = info->i; break; | |
| 8551 | case CPUINFO_INT_REGISTER + RSP_R0: rsp->r[0] = info->i; break; | |
| 8552 | case CPUINFO_INT_REGISTER + RSP_R1: rsp->r[1] = info->i; break; | |
| 8553 | case CPUINFO_INT_REGISTER + RSP_R2: rsp->r[2] = info->i; break; | |
| 8554 | case CPUINFO_INT_REGISTER + RSP_R3: rsp->r[3] = info->i; break; | |
| 8555 | case CPUINFO_INT_REGISTER + RSP_R4: rsp->r[4] = info->i; break; | |
| 8556 | case CPUINFO_INT_REGISTER + RSP_R5: rsp->r[5] = info->i; break; | |
| 8557 | case CPUINFO_INT_REGISTER + RSP_R6: rsp->r[6] = info->i; break; | |
| 8558 | case CPUINFO_INT_REGISTER + RSP_R7: rsp->r[7] = info->i; break; | |
| 8559 | case CPUINFO_INT_REGISTER + RSP_R8: rsp->r[8] = info->i; break; | |
| 8560 | case CPUINFO_INT_REGISTER + RSP_R9: rsp->r[9] = info->i; break; | |
| 8561 | case CPUINFO_INT_REGISTER + RSP_R10: rsp->r[10] = info->i; break; | |
| 8562 | case CPUINFO_INT_REGISTER + RSP_R11: rsp->r[11] = info->i; break; | |
| 8563 | case CPUINFO_INT_REGISTER + RSP_R12: rsp->r[12] = info->i; break; | |
| 8564 | case CPUINFO_INT_REGISTER + RSP_R13: rsp->r[13] = info->i; break; | |
| 8565 | case CPUINFO_INT_REGISTER + RSP_R14: rsp->r[14] = info->i; break; | |
| 8566 | case CPUINFO_INT_REGISTER + RSP_R15: rsp->r[15] = info->i; break; | |
| 8567 | case CPUINFO_INT_REGISTER + RSP_R16: rsp->r[16] = info->i; break; | |
| 8568 | case CPUINFO_INT_REGISTER + RSP_R17: rsp->r[17] = info->i; break; | |
| 8569 | case CPUINFO_INT_REGISTER + RSP_R18: rsp->r[18] = info->i; break; | |
| 8570 | case CPUINFO_INT_REGISTER + RSP_R19: rsp->r[19] = info->i; break; | |
| 8571 | case CPUINFO_INT_REGISTER + RSP_R20: rsp->r[20] = info->i; break; | |
| 8572 | case CPUINFO_INT_REGISTER + RSP_R21: rsp->r[21] = info->i; break; | |
| 8573 | case CPUINFO_INT_REGISTER + RSP_R22: rsp->r[22] = info->i; break; | |
| 8574 | case CPUINFO_INT_REGISTER + RSP_R23: rsp->r[23] = info->i; break; | |
| 8575 | case CPUINFO_INT_REGISTER + RSP_R24: rsp->r[24] = info->i; break; | |
| 8576 | case CPUINFO_INT_REGISTER + RSP_R25: rsp->r[25] = info->i; break; | |
| 8577 | case CPUINFO_INT_REGISTER + RSP_R26: rsp->r[26] = info->i; break; | |
| 8578 | case CPUINFO_INT_REGISTER + RSP_R27: rsp->r[27] = info->i; break; | |
| 8579 | case CPUINFO_INT_REGISTER + RSP_R28: rsp->r[28] = info->i; break; | |
| 8580 | case CPUINFO_INT_REGISTER + RSP_R29: rsp->r[29] = info->i; break; | |
| 8581 | case CPUINFO_INT_REGISTER + RSP_R30: rsp->r[30] = info->i; break; | |
| 8582 | case CPUINFO_INT_SP: | |
| 8583 | case CPUINFO_INT_REGISTER + RSP_R31: rsp->r[31] = info->i; break; | |
| 8584 | case CPUINFO_INT_REGISTER + RSP_SR: rsp->sr = info->i; break; | |
| 8585 | case CPUINFO_INT_REGISTER + RSP_NEXTPC: rsp->nextpc = info->i; break; | |
| 8586 | case CPUINFO_INT_REGISTER + RSP_STEPCNT: rsp->step_count = info->i; break; | |
| 8559 | case CPUINFO_INT_REGISTER + RSP_PC: rsp->pc = info->i; break; | |
| 8560 | case CPUINFO_INT_REGISTER + RSP_R0: rsp->r[0] = info->i; break; | |
| 8561 | case CPUINFO_INT_REGISTER + RSP_R1: rsp->r[1] = info->i; break; | |
| 8562 | case CPUINFO_INT_REGISTER + RSP_R2: rsp->r[2] = info->i; break; | |
| 8563 | case CPUINFO_INT_REGISTER + RSP_R3: rsp->r[3] = info->i; break; | |
| 8564 | case CPUINFO_INT_REGISTER + RSP_R4: rsp->r[4] = info->i; break; | |
| 8565 | case CPUINFO_INT_REGISTER + RSP_R5: rsp->r[5] = info->i; break; | |
| 8566 | case CPUINFO_INT_REGISTER + RSP_R6: rsp->r[6] = info->i; break; | |
| 8567 | case CPUINFO_INT_REGISTER + RSP_R7: rsp->r[7] = info->i; break; | |
| 8568 | case CPUINFO_INT_REGISTER + RSP_R8: rsp->r[8] = info->i; break; | |
| 8569 | case CPUINFO_INT_REGISTER + RSP_R9: rsp->r[9] = info->i; break; | |
| 8570 | case CPUINFO_INT_REGISTER + RSP_R10: rsp->r[10] = info->i; break; | |
| 8571 | case CPUINFO_INT_REGISTER + RSP_R11: rsp->r[11] = info->i; break; | |
| 8572 | case CPUINFO_INT_REGISTER + RSP_R12: rsp->r[12] = info->i; break; | |
| 8573 | case CPUINFO_INT_REGISTER + RSP_R13: rsp->r[13] = info->i; break; | |
| 8574 | case CPUINFO_INT_REGISTER + RSP_R14: rsp->r[14] = info->i; break; | |
| 8575 | case CPUINFO_INT_REGISTER + RSP_R15: rsp->r[15] = info->i; break; | |
| 8576 | case CPUINFO_INT_REGISTER + RSP_R16: rsp->r[16] = info->i; break; | |
| 8577 | case CPUINFO_INT_REGISTER + RSP_R17: rsp->r[17] = info->i; break; | |
| 8578 | case CPUINFO_INT_REGISTER + RSP_R18: rsp->r[18] = info->i; break; | |
| 8579 | case CPUINFO_INT_REGISTER + RSP_R19: rsp->r[19] = info->i; break; | |
| 8580 | case CPUINFO_INT_REGISTER + RSP_R20: rsp->r[20] = info->i; break; | |
| 8581 | case CPUINFO_INT_REGISTER + RSP_R21: rsp->r[21] = info->i; break; | |
| 8582 | case CPUINFO_INT_REGISTER + RSP_R22: rsp->r[22] = info->i; break; | |
| 8583 | case CPUINFO_INT_REGISTER + RSP_R23: rsp->r[23] = info->i; break; | |
| 8584 | case CPUINFO_INT_REGISTER + RSP_R24: rsp->r[24] = info->i; break; | |
| 8585 | case CPUINFO_INT_REGISTER + RSP_R25: rsp->r[25] = info->i; break; | |
| 8586 | case CPUINFO_INT_REGISTER + RSP_R26: rsp->r[26] = info->i; break; | |
| 8587 | case CPUINFO_INT_REGISTER + RSP_R27: rsp->r[27] = info->i; break; | |
| 8588 | case CPUINFO_INT_REGISTER + RSP_R28: rsp->r[28] = info->i; break; | |
| 8589 | case CPUINFO_INT_REGISTER + RSP_R29: rsp->r[29] = info->i; break; | |
| 8590 | case CPUINFO_INT_REGISTER + RSP_R30: rsp->r[30] = info->i; break; | |
| 8591 | case CPUINFO_INT_SP: | |
| 8592 | case CPUINFO_INT_REGISTER + RSP_R31: rsp->r[31] = info->i; break; | |
| 8593 | case CPUINFO_INT_REGISTER + RSP_SR: rsp->sr = info->i; break; | |
| 8594 | case CPUINFO_INT_REGISTER + RSP_NEXTPC: rsp->nextpc = info->i; break; | |
| 8595 | case CPUINFO_INT_REGISTER + RSP_STEPCNT: rsp->step_count = info->i; break; | |
| 8587 | 8596 | } |
| 8588 | 8597 | } |
| 8589 | 8598 | |
| r8581 | r8582 | |
| 8657 | 8666 | case CPUINFO_INT_REGISTER + RSP_R31: info->i = rsp->r[31]; break; |
| 8658 | 8667 | case CPUINFO_INT_REGISTER + RSP_SR: info->i = rsp->sr; break; |
| 8659 | 8668 | case CPUINFO_INT_REGISTER + RSP_NEXTPC: info->i = rsp->nextpc; break; |
| 8660 | ||
| 8669 | | |
| 8661 | 8670 | |
| 8662 | 8671 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 8663 | 8672 | case CPUINFO_FCT_SET_INFO: info->setinfo = CPU_SET_INFO_NAME(rsp); break; |
| r8581 | r8582 | |
| 8714 | 8723 | case CPUINFO_STR_REGISTER + RSP_R31: sprintf(info->s, "R31: %08X", rsp->r[31]); break; |
| 8715 | 8724 | case CPUINFO_STR_REGISTER + RSP_SR: sprintf(info->s, "SR: %08X", rsp->sr); break; |
| 8716 | 8725 | case CPUINFO_STR_REGISTER + RSP_NEXTPC: sprintf(info->s, "NPC: %08X", rsp->nextpc);break; |
| 8717 | ||
| 8726 | | |
| 8718 | 8727 | } |
| 8719 | 8728 | } |
| 8720 | 8729 | |
| 8721 | 8730 | DEFINE_LEGACY_CPU_DEVICE(RSP, rsp); |
| 8731 | ||
| 8732 | #endif // USE_RSPDRC |
| r8581 | r8582 | |
|---|---|---|
| 451 | 451 | case SPR4XX_PBL2: strcat(dest, "pbl2"); break; |
| 452 | 452 | case SPR4XX_PBU2: strcat(dest, "pbu2"); break; |
| 453 | 453 | |
| 454 | default: sprintf(dest | |
| 454 | default: sprintf(dest | |
| 455 | 455 | } |
| 456 | 456 | } |
| 457 | 457 | |
| r8581 | r8582 | |
| 515 | 515 | case 64: strcat(dest, "exisr"); break; |
| 516 | 516 | case 160: strcat(dest, "iocr"); break; |
| 517 | 517 | |
| 518 | default: | |
| 518 | default: | |
| 519 | 519 | } |
| 520 | 520 | } |
| 521 | 521 | |
| r8581 | r8582 | |
| 1104 | 1104 | |
| 1105 | 1105 | case F_MTSPR: |
| 1106 | 1106 | SPR(oprs, G_SPR(op)); |
| 1107 | sprintf(oprs, " | |
| 1107 | sprintf(oprs + strlen(oprs), " | |
| 1108 | 1108 | break; |
| 1109 | 1109 | |
| 1110 | 1110 | case F_MTDCR: |
| 1111 | 1111 | DCR(oprs, G_DCR(op)); |
| 1112 | sprintf(oprs, " | |
| 1112 | sprintf(oprs + strlen(oprs), " | |
| 1113 | 1113 | break; |
| 1114 | 1114 | |
| 1115 | 1115 | case F_MTSR: |
| r8581 | r8582 | |
|---|---|---|
| 31 | 31 | #define TMS32010_INT_PENDING 0x80000000 |
| 32 | 32 | #define TMS32010_INT_NONE 0 |
| 33 | 33 | |
| 34 | #define TMS32010_ADDR_MASK 0x0fff /* TMS32010 can only address 0x0fff */ | |
| 35 | /* however other TMS3201x devices */ | |
| 36 | /* can address up to 0xffff (incase */ | |
| 37 | /* their support is ever added). */ | |
| 38 | 34 | |
| 39 | ||
| 40 | 35 | enum |
| 41 | 36 | { |
| 42 | 37 | TMS32010_PC=1, TMS32010_SP, TMS32010_STR, TMS32010_ACC, |
| r8581 | r8582 | |
| 50 | 45 | */ |
| 51 | 46 | |
| 52 | 47 | DECLARE_LEGACY_CPU_DEVICE(TMS32010, tms32010); |
| 48 | DECLARE_LEGACY_CPU_DEVICE(TMS32015, tms32015); | |
| 49 | DECLARE_LEGACY_CPU_DEVICE(TMS32016, tms32016); | |
| 53 | 50 | |
| 54 | 51 | |
| 55 | 52 | CPU_DISASSEMBLE( tms32010 ); |
| r8581 | r8582 | |
|---|---|---|
| 48 | 48 | * RK (23-Nov-2006) Ver 1.22 * |
| 49 | 49 | * - Fixed state of the Overflow Flag on reset * |
| 50 | 50 | * - Fixed the SUBC instruction which was incorrectly zeroing the divisor * |
| 51 | * TLP (13-Jul-2010) Ver 1.30 * | |
| 52 | * - LST instruction was incorrectly setting an Indirect Addressing * | |
| 53 | * feature when Direct Addressing mode was selected * | |
| 54 | * - Added TMS32015 and TMS32016 variants * | |
| 51 | 55 | * * |
| 52 | 56 | \**************************************************************************/ |
| 53 | 57 | |
| r8581 | r8582 | |
| 100 | 104 | INLINE tms32010_state *get_safe_token(running_device *device) |
| 101 | 105 | { |
| 102 | 106 | assert(device != NULL); |
| 103 | assert(device->type() == TMS32010); | |
| 107 | assert(device->type() == TMS32010 || | |
| 108 | device->type() == TMS32015 || | |
| 109 | device->type() == TMS32016); | |
| 104 | 110 | return (tms32010_state *)downcast<legacy_cpu_device *>(device)->token(); |
| 105 | 111 | } |
| 106 | 112 | |
| r8581 | r8582 | |
| 111 | 117 | UINT8 cycles; |
| 112 | 118 | void (*function)(tms32010_state *); |
| 113 | 119 | }; |
| 114 | /* opcode table entry (Opcode 7F has sub-opcodes) */ | |
| 115 | typedef struct _tms32010_opcode_7F tms32010_opcode_7F; | |
| 116 | struct _tms32010_opcode_7F | |
| 117 | { | |
| 118 | UINT8 cycles; | |
| 119 | void (*function)(tms32010_state *); | |
| 120 | }; | |
| 121 | 120 | |
| 122 | 121 | |
| 123 | 122 | /********* The following is the Status (Flag) register definition. *********/ |
| r8581 | r8582 | |
| 476 | 475 | { |
| 477 | 476 | cpustate->PC++ ; |
| 478 | 477 | PUSH_STACK(cpustate, cpustate->PC); |
| 479 | cpustate->PC = M_RDOP_ARG((cpustate->PC - 1)) | |
| 478 | cpustate->PC = M_RDOP_ARG((cpustate->PC - 1)) | |
| 480 | 479 | } |
| 481 | 480 | static void dint(tms32010_state *cpustate) |
| 482 | 481 | { |
| r8581 | r8582 | |
| 547 | 546 | } |
| 548 | 547 | static void lst(tms32010_state *cpustate) |
| 549 | 548 | { |
| 550 | cpustate->opcode.b.l |= 0x08; /* Next arp not supported here, so mask it */ | |
| 549 | if (cpustate->opcode.b.l & 0x80) { | |
| 550 | cpustate->opcode.b.l |= 0x08; /* In Indirect Addressing mode, next ARP is not supported here so mask it */ | |
| 551 | } | |
| 551 | 552 | getdata(cpustate, 0,0); |
| 552 | 553 | cpustate->ALU.w.l &= (~INTM_FLAG); /* Must not affect INTM */ |
| 553 | 554 | cpustate->STR &= INTM_FLAG; |
| r8581 | r8582 | |
| 761 | 762 | /*F8*/ {2, call },{2, br },{2, blz },{2, blez },{2, bgz },{2, bgez },{2, bnz },{2, bz } |
| 762 | 763 | }; |
| 763 | 764 | |
| 764 | static const tms32010_opcode | |
| 765 | static const tms32010_opcode | |
| 765 | 766 | { |
| 766 | 767 | /*80*/ {1, nop },{1, dint },{1, eint },{0, illegal },{0, illegal },{0, illegal },{0, illegal },{0, illegal }, |
| 767 | 768 | /*88*/ {1, abst },{1, zac },{1, rovm },{1, sovm },{2, cala },{2, ret },{1, pac },{1, apac }, |
| r8581 | r8582 | |
| 774 | 775 | /**************************************************************************** |
| 775 | 776 | * Inits CPU emulation |
| 776 | 777 | ****************************************************************************/ |
| 778 | ||
| 777 | 779 | static CPU_INIT( tms32010 ) |
| 778 | 780 | { |
| 779 | 781 | tms32010_state *cpustate = get_safe_token(device); |
| r8581 | r8582 | |
| 806 | 808 | |
| 807 | 809 | |
| 808 | 810 | /**************************************************************************** |
| 809 | * | |
| 811 | * Shu | |
| 810 | 812 | ****************************************************************************/ |
| 811 | static CPU_RESET( tms32010 ) | |
| 812 | { | |
| 813 | tms32010_state *cpustate = get_safe_token(device); | |
| 814 | 813 | |
| 815 | cpustate->PC = 0; | |
| 816 | cpustate->STR = 0x7efe; // OV cleared | |
| 817 | cpustate->ACC.d = 0; | |
| 818 | cpustate->INTF = TMS32010_INT_NONE; | |
| 819 | cpustate->addr_mask = 0x0fff; /* TMS32010 can only address 0x0fff */ | |
| 820 | /* however other TMS3201x devices */ | |
| 821 | /* can address up to 0xffff (incase */ | |
| 822 | /* their support is ever added). */ | |
| 823 | } | |
| 814 | static CPU_EXIT( tms32010 ) { } | |
| 824 | 815 | |
| 825 | 816 | |
| 826 | 817 | /**************************************************************************** |
| 827 | * S | |
| 818 | * Se | |
| 828 | 819 | ****************************************************************************/ |
| 829 | static CPU_EXIT( tms32010 ) { } | |
| 830 | 820 | |
| 821 | static void set_irq_line(tms32010_state *cpustate, int irqline, int state) | |
| 822 | { | |
| 823 | /* Pending Interrupts cannot be cleared! */ | |
| 824 | if (state == ASSERT_LINE) cpustate->INTF |= TMS32010_INT_PENDING; | |
| 825 | } | |
| 831 | 826 | |
| 827 | ||
| 828 | ||
| 832 | 829 | /**************************************************************************** |
| 833 | 830 | * Issue an interrupt if necessary |
| 834 | 831 | ****************************************************************************/ |
| 832 | ||
| 835 | 833 | static int Ext_IRQ(tms32010_state *cpustate) |
| 836 | 834 | { |
| 837 | 835 | if (INTM == 0) |
| r8581 | r8582 | |
| 847 | 845 | } |
| 848 | 846 | |
| 849 | 847 | |
| 850 | ||
| 851 | 848 | /**************************************************************************** |
| 852 | 849 | * Execute IPeriod. Return 0 if emulation should be stopped |
| 853 | 850 | ****************************************************************************/ |
| 851 | ||
| 854 | 852 | static CPU_EXECUTE( tms32010 ) |
| 855 | 853 | { |
| 856 | 854 | tms32010_state *cpustate = get_safe_token(device); |
| r8581 | r8582 | |
| 884 | 882 | |
| 885 | 883 | |
| 886 | 884 | /**************************************************************************** |
| 887 | * S | |
| 885 | * TMS32010 I | |
| 888 | 886 | ****************************************************************************/ |
| 889 | static void set_irq_line(tms32010_state *cpustate, int irqline, int state) | |
| 890 | { | |
| 891 | /* Pending Interrupts cannot be cleared! */ | |
| 892 | if (state == ASSERT_LINE) cpustate->INTF |= TMS32010_INT_PENDING; | |
| 893 | } | |
| 894 | 887 | |
| 895 | ||
| 896 | /**************************************************************************** | |
| 897 | * Internal Memory Map | |
| 898 | ****************************************************************************/ | |
| 899 | ||
| 900 | 888 | static ADDRESS_MAP_START( tms32010_ram, ADDRESS_SPACE_DATA, 16 ) |
| 901 | 889 | AM_RANGE(0x00, 0x7f) AM_RAM /* Page 0 */ |
| 902 | 890 | AM_RANGE(0x80, 0x8f) AM_RAM /* Page 1 */ |
| 903 | 891 | ADDRESS_MAP_END |
| 904 | 892 | |
| 905 | 893 | |
| 894 | /**************************************************************************** | |
| 895 | * TMS32010 Reset registers to their initial values | |
| 896 | ****************************************************************************/ | |
| 897 | ||
| 898 | static CPU_RESET( tms32010 ) | |
| 899 | { | |
| 900 | tms32010_state *cpustate = get_safe_token(device); | |
| 901 | ||
| 902 | cpustate->PC = 0; | |
| 903 | cpustate->ACC.d = 0; | |
| 904 | cpustate->INTF = TMS32010_INT_NONE; | |
| 905 | /* Setup Status Register : 7efe */ | |
| 906 | CLR(cpustate, (OV_FLAG | ARP_REG | DP_REG)); | |
| 907 | SET(cpustate, (OVM_FLAG | INTM_FLAG)); | |
| 908 | ||
| 909 | cpustate->addr_mask = 0x0fff; | |
| 910 | } | |
| 911 | ||
| 912 | ||
| 906 | 913 | /************************************************************************** |
| 907 | * | |
| 914 | * TMS32010 set_info | |
| 908 | 915 | **************************************************************************/ |
| 909 | 916 | |
| 910 | 917 | static CPU_SET_INFO( tms32010 ) |
| r8581 | r8582 | |
| 934 | 941 | |
| 935 | 942 | |
| 936 | 943 | /************************************************************************** |
| 937 | * | |
| 944 | * TMS32010 get_info | |
| 938 | 945 | **************************************************************************/ |
| 939 | 946 | |
| 940 | 947 | CPU_GET_INFO( tms32010 ) |
| r8581 | r8582 | |
| 990 | 997 | case CPUINFO_FCT_BURN: info->burn = NULL; break; |
| 991 | 998 | case CPUINFO_FCT_DISASSEMBLE: info->disassemble = CPU_DISASSEMBLE_NAME(tms32010); break; |
| 992 | 999 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &cpustate->icount; break; |
| 993 | case DEVINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map16 = ADDRESS_MAP_NAME(tms32010_ram); | |
| 1000 | case DEVINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map16 = ADDRESS_MAP_NAME(tms32010_ram); break; | |
| 994 | 1001 | |
| 995 | 1002 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 996 | 1003 | case DEVINFO_STR_NAME: strcpy(info->s, "TMS32010"); break; |
| 997 | case DEVINFO_STR_FAMILY: strcpy(info->s, "Texas Instruments TMS32010"); break; | |
| 998 | case DEVINFO_STR_VERSION: strcpy(info->s, "1.22"); break; | |
| 999 | case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; | |
| 1000 | case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Tony La Porta"); break; | |
| 1004 | case DEVINFO_STR_FAMILY: strcpy(info->s, "Texas Instruments TMS32010"); break; | |
| 1005 | case DEVINFO_STR_VERSION: strcpy(info->s, "1.30"); break; | |
| 1006 | case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; | |
| 1007 | case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Tony La Porta"); break; | |
| 1001 | 1008 | |
| 1002 | 1009 | case CPUINFO_STR_FLAGS: |
| 1003 | 1010 | sprintf(info->s, "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c", |
| r8581 | r8582 | |
| 1034 | 1041 | } |
| 1035 | 1042 | } |
| 1036 | 1043 | |
| 1044 | ||
| 1045 | /**************************************************************************** | |
| 1046 | * TMS32015 Internal Memory Map | |
| 1047 | ****************************************************************************/ | |
| 1048 | ||
| 1049 | static ADDRESS_MAP_START( tms32015_ram, ADDRESS_SPACE_DATA, 16 ) | |
| 1050 | AM_RANGE(0x00, 0x7f) AM_RAM /* Page 0 */ | |
| 1051 | AM_RANGE(0x80, 0xff) AM_RAM /* Page 1 */ | |
| 1052 | ADDRESS_MAP_END | |
| 1053 | ||
| 1054 | ||
| 1055 | /************************************************************************** | |
| 1056 | * TMS32015 CPU-specific get_info | |
| 1057 | **************************************************************************/ | |
| 1058 | ||
| 1059 | CPU_GET_INFO( tms32015 ) | |
| 1060 | { | |
| 1061 | switch (state) | |
| 1062 | { | |
| 1063 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1064 | case DEVINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map16 = ADDRESS_MAP_NAME(tms32015_ram); break; | |
| 1065 | ||
| 1066 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1067 | case DEVINFO_STR_NAME: strcpy(info->s, "TMS32015"); break; | |
| 1068 | ||
| 1069 | default: CPU_GET_INFO_CALL(tms32010); break; | |
| 1070 | } | |
| 1071 | } | |
| 1072 | ||
| 1073 | ||
| 1074 | ||
| 1075 | /**************************************************************************** | |
| 1076 | * TMS32016 Reset registers to their initial values | |
| 1077 | ****************************************************************************/ | |
| 1078 | ||
| 1079 | static CPU_RESET( tms32016 ) | |
| 1080 | { | |
| 1081 | tms32010_state *cpustate = get_safe_token(device); | |
| 1082 | ||
| 1083 | CPU_RESET_CALL(tms32010); | |
| 1084 | cpustate->addr_mask = 0xffff; | |
| 1085 | } | |
| 1086 | ||
| 1087 | ||
| 1088 | /************************************************************************** | |
| 1089 | * TMS32016 CPU-specific get_info | |
| 1090 | **************************************************************************/ | |
| 1091 | ||
| 1092 | CPU_GET_INFO( tms32016 ) | |
| 1093 | { | |
| 1094 | switch (state) | |
| 1095 | { | |
| 1096 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 1097 | case CPUINFO_FCT_RESET: info->reset = CPU_RESET_NAME(tms32016); break; | |
| 1098 | case DEVINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map16 = ADDRESS_MAP_NAME(tms32015_ram); break; | |
| 1099 | ||
| 1100 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 1101 | case DEVINFO_STR_NAME: strcpy(info->s, "TMS32016"); break; | |
| 1102 | ||
| 1103 | default: CPU_GET_INFO_CALL(tms32010); break; | |
| 1104 | } | |
| 1105 | } | |
| 1106 | ||
| 1107 | ||
| 1108 | ||
| 1037 | 1109 | DEFINE_LEGACY_CPU_DEVICE(TMS32010, tms32010); |
| 1110 | DEFINE_LEGACY_CPU_DEVICE(TMS32015, tms32015); | |
| 1111 | DEFINE_LEGACY_CPU_DEVICE(TMS32016, tms32016); |
| r8581 | r8582 | |
|---|---|---|
| 128 | 128 | int frt_input; |
| 129 | 129 | int internal_irq_level; |
| 130 | 130 | int internal_irq_vector; |
| 131 | int icount; | |
| 131 | 132 | |
| 132 | 133 | emu_timer *timer; |
| 133 | 134 | emu_timer *dma_timer[2]; |
| r8581 | r8582 | |
| 144 | 145 | drcfe_state * drcfe; /* pointer to the DRC front-end state */ |
| 145 | 146 | UINT32 drcoptions; /* configurable DRC options */ |
| 146 | 147 | |
| 147 | int icount; | |
| 148 | ||
| 149 | 148 | /* internal stuff */ |
| 150 | 149 | UINT8 cache_dirty; /* true if we need to flush the cache */ |
| 151 | 150 |
| r8581 | r8582 | |
|---|---|---|
| 115 | 115 | |
| 116 | 116 | #define LOG(x) do { if (VERBOSE) logerror x; } while (0) |
| 117 | 117 | |
| 118 | static int sh2_icount; | |
| 119 | sh2_state *sh2; | |
| 118 | INLINE sh2_state *get_safe_token(running_device *device) | |
| 119 | { | |
| 120 | assert(device != NULL); | |
| 121 | assert(device->token != NULL); | |
| 122 | assert(device->type() == CPU); | |
| 123 | assert(cpu_get_type(device) == CPU_SH1 || | |
| 124 | cpu_get_type(device) == CPU_SH2); | |
| 125 | return (sh2_state *)downcast<legacy_cpu_device *>(device)->token(); | |
| 126 | } | |
| 120 | 127 | |
| 121 | INLINE UINT8 RB(offs_t A) | |
| 128 | INLINE UINT8 RB(sh2_state *sh2, offs_t A) | |
| 122 | 129 | { |
| 123 | 130 | if (A >= 0xe0000000) |
| 124 | 131 | return sh2_internal_r(sh2->internal, (A & 0x1fc)>>2, 0xff << (((~A) & 3)*8)) >> (((~A) & 3)*8); |
| r8581 | r8582 | |
| 132 | 139 | return memory_read_byte_32be(sh2->program, A & AM); |
| 133 | 140 | } |
| 134 | 141 | |
| 135 | INLINE UINT16 RW(offs_t A) | |
| 142 | INLINE UINT16 RW(sh2_state *sh2, offs_t A) | |
| 136 | 143 | { |
| 137 | 144 | if (A >= 0xe0000000) |
| 138 | 145 | return sh2_internal_r(sh2->internal, (A & 0x1fc)>>2, 0xffff << (((~A) & 2)*8)) >> (((~A) & 2)*8); |
| r8581 | r8582 | |
| 146 | 153 | return memory_read_word_32be(sh2->program, A & AM); |
| 147 | 154 | } |
| 148 | 155 | |
| 149 | INLINE UINT32 RL(offs_t A) | |
| 156 | INLINE UINT32 RL(sh2_state *sh2, offs_t A) | |
| 150 | 157 | { |
| 151 | 158 | if (A >= 0xe0000000) |
| 152 | 159 | return sh2_internal_r(sh2->internal, (A & 0x1fc)>>2, 0xffffffff); |
| r8581 | r8582 | |
| 160 | 167 | return memory_read_dword_32be(sh2->program, A & AM); |
| 161 | 168 | } |
| 162 | 169 | |
| 163 | INLINE void WB(offs_t A, UINT8 V) | |
| 170 | INLINE void WB(sh2_state *sh2, offs_t A, UINT8 V) | |
| 164 | 171 | { |
| 165 | 172 | |
| 166 | 173 | if (A >= 0xe0000000) |
| r8581 | r8582 | |
| 181 | 188 | memory_write_byte_32be(sh2->program, A & AM,V); |
| 182 | 189 | } |
| 183 | 190 | |
| 184 | INLINE void WW(offs_t A, UINT16 V) | |
| 191 | INLINE void WW(sh2_state *sh2, offs_t A, UINT16 V) | |
| 185 | 192 | { |
| 186 | 193 | if (A >= 0xe0000000) |
| 187 | 194 | { |
| r8581 | r8582 | |
| 201 | 208 | memory_write_word_32be(sh2->program, A & AM,V); |
| 202 | 209 | } |
| 203 | 210 | |
| 204 | INLINE void WL(offs_t A, UINT32 V) | |
| 211 | INLINE void WL(sh2_state *sh2, offs_t A, UINT32 V) | |
| 205 | 212 | { |
| 206 | 213 | if (A >= 0xe0000000) |
| 207 | 214 | { |
| r8581 | r8582 | |
| 225 | 232 | * 0011 nnnn mmmm 1100 1 - |
| 226 | 233 | * ADD Rm,Rn |
| 227 | 234 | */ |
| 228 | INLINE void ADD(UINT32 m, UINT32 n) | |
| 235 | INLINE void ADD(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 229 | 236 | { |
| 230 | 237 | sh2->r[n] += sh2->r[m]; |
| 231 | 238 | } |
| r8581 | r8582 | |
| 234 | 241 | * 0111 nnnn iiii iiii 1 - |
| 235 | 242 | * ADD #imm,Rn |
| 236 | 243 | */ |
| 237 | INLINE void ADDI(UINT32 i, UINT32 n) | |
| 244 | INLINE void ADDI(sh2_state *sh2, UINT32 i, UINT32 n) | |
| 238 | 245 | { |
| 239 | 246 | sh2->r[n] += (INT32)(INT16)(INT8)i; |
| 240 | 247 | } |
| r8581 | r8582 | |
| 243 | 250 | * 0011 nnnn mmmm 1110 1 carry |
| 244 | 251 | * ADDC Rm,Rn |
| 245 | 252 | */ |
| 246 | INLINE void ADDC(UINT32 m, UINT32 n) | |
| 253 | INLINE void ADDC(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 247 | 254 | { |
| 248 | 255 | UINT32 tmp0, tmp1; |
| 249 | 256 | |
| r8581 | r8582 | |
| 262 | 269 | * 0011 nnnn mmmm 1111 1 overflow |
| 263 | 270 | * ADDV Rm,Rn |
| 264 | 271 | */ |
| 265 | INLINE void ADDV(UINT32 m, UINT32 n) | |
| 272 | INLINE void ADDV(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 266 | 273 | { |
| 267 | 274 | INT32 dest, src, ans; |
| 268 | 275 | |
| r8581 | r8582 | |
| 296 | 303 | * 0010 nnnn mmmm 1001 1 - |
| 297 | 304 | * AND Rm,Rn |
| 298 | 305 | */ |
| 299 | INLINE void AND(UINT32 m, UINT32 n) | |
| 306 | INLINE void AND(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 300 | 307 | { |
| 301 | 308 | sh2->r[n] &= sh2->r[m]; |
| 302 | 309 | } |
| r8581 | r8582 | |
| 306 | 313 | * 1100 1001 iiii iiii 1 - |
| 307 | 314 | * AND #imm,R0 |
| 308 | 315 | */ |
| 309 | INLINE void ANDI(UINT32 i) | |
| 316 | INLINE void ANDI(sh2_state *sh2, UINT32 i) | |
| 310 | 317 | { |
| 311 | 318 | sh2->r[0] &= i; |
| 312 | 319 | } |
| r8581 | r8582 | |
| 315 | 322 | * 1100 1101 iiii iiii 1 - |
| 316 | 323 | * AND.B #imm,@(R0,GBR) |
| 317 | 324 | */ |
| 318 | INLINE void ANDM(UINT32 i) | |
| 325 | INLINE void ANDM(sh2_state *sh2, UINT32 i) | |
| 319 | 326 | { |
| 320 | 327 | UINT32 temp; |
| 321 | 328 | |
| 322 | 329 | sh2->ea = sh2->gbr + sh2->r[0]; |
| 323 | temp = i & RB( sh2->ea ); | |
| 324 | WB( sh2->ea, temp ); | |
| 325 | sh2_icount -= 2; | |
| 330 | temp = i & RB( sh2, sh2->ea ); | |
| 331 | WB( sh2, sh2->ea, temp ); | |
| 332 | sh2->icount -= 2; | |
| 326 | 333 | } |
| 327 | 334 | |
| 328 | 335 | /* code cycles t-bit |
| 329 | 336 | * 1000 1011 dddd dddd 3/1 - |
| 330 | 337 | * BF disp8 |
| 331 | 338 | */ |
| 332 | INLINE void BF(UINT32 d) | |
| 339 | INLINE void BF(sh2_state *sh2, UINT32 d) | |
| 333 | 340 | { |
| 334 | 341 | if ((sh2->sr & T) == 0) |
| 335 | 342 | { |
| 336 | 343 | INT32 disp = ((INT32)d << 24) >> 24; |
| 337 | 344 | sh2->pc = sh2->ea = sh2->pc + disp * 2 + 2; |
| 338 | sh2 | |
| 345 | sh2->icount -= 2; | |
| 339 | 346 | } |
| 340 | 347 | } |
| 341 | 348 | |
| r8581 | r8582 | |
| 343 | 350 | * 1000 1111 dddd dddd 3/1 - |
| 344 | 351 | * BFS disp8 |
| 345 | 352 | */ |
| 346 | INLINE void BFS(UINT32 d) | |
| 353 | INLINE void BFS(sh2_state *sh2, UINT32 d) | |
| 347 | 354 | { |
| 348 | 355 | if ((sh2->sr & T) == 0) |
| 349 | 356 | { |
| 350 | 357 | INT32 disp = ((INT32)d << 24) >> 24; |
| 351 | 358 | sh2->delay = sh2->pc; |
| 352 | 359 | sh2->pc = sh2->ea = sh2->pc + disp * 2 + 2; |
| 353 | sh2 | |
| 360 | sh2->icount--; | |
| 354 | 361 | } |
| 355 | 362 | } |
| 356 | 363 | |
| r8581 | r8582 | |
| 358 | 365 | * 1010 dddd dddd dddd 2 - |
| 359 | 366 | * BRA disp12 |
| 360 | 367 | */ |
| 361 | INLINE void BRA(UINT32 d) | |
| 368 | INLINE void BRA(sh2_state *sh2, UINT32 d) | |
| 362 | 369 | { |
| 363 | 370 | INT32 disp = ((INT32)d << 20) >> 20; |
| 364 | 371 | |
| 365 | 372 | #if BUSY_LOOP_HACKS |
| 366 | 373 | if (disp == -2) |
| 367 | 374 | { |
| 368 | UINT32 next_opcode = RW(sh2->ppc & AM); | |
| 375 | UINT32 next_opcode = RW( sh2, sh2->ppc & AM ); | |
| 369 | 376 | /* BRA $ |
| 370 | 377 | * NOP |
| 371 | 378 | */ |
| 372 | 379 | if (next_opcode == 0x0009) |
| 373 | sh2 | |
| 380 | sh2->icount %= 3; /* cycles for BRA $ and NOP taken (3) */ | |
| 374 | 381 | } |
| 375 | 382 | #endif |
| 376 | 383 | sh2->delay = sh2->pc; |
| 377 | 384 | sh2->pc = sh2->ea = sh2->pc + disp * 2 + 2; |
| 378 | sh2 | |
| 385 | sh2->icount--; | |
| 379 | 386 | } |
| 380 | 387 | |
| 381 | 388 | /* code cycles t-bit |
| 382 | 389 | * 0000 mmmm 0010 0011 2 - |
| 383 | 390 | * BRAF Rm |
| 384 | 391 | */ |
| 385 | INLINE void BRAF(UINT32 m) | |
| 392 | INLINE void BRAF(sh2_state *sh2, UINT32 m) | |
| 386 | 393 | { |
| 387 | 394 | sh2->delay = sh2->pc; |
| 388 | 395 | sh2->pc += sh2->r[m] + 2; |
| 389 | sh2 | |
| 396 | sh2->icount--; | |
| 390 | 397 | } |
| 391 | 398 | |
| 392 | 399 | /* code cycles t-bit |
| 393 | 400 | * 1011 dddd dddd dddd 2 - |
| 394 | 401 | * BSR disp12 |
| 395 | 402 | */ |
| 396 | INLINE void BSR(UINT32 d) | |
| 403 | INLINE void BSR(sh2_state *sh2, UINT32 d) | |
| 397 | 404 | { |
| 398 | 405 | INT32 disp = ((INT32)d << 20) >> 20; |
| 399 | 406 | |
| 400 | 407 | sh2->pr = sh2->pc + 2; |
| 401 | 408 | sh2->delay = sh2->pc; |
| 402 | 409 | sh2->pc = sh2->ea = sh2->pc + disp * 2 + 2; |
| 403 | sh2 | |
| 410 | sh2->icount--; | |
| 404 | 411 | } |
| 405 | 412 | |
| 406 | 413 | /* code cycles t-bit |
| 407 | 414 | * 0000 mmmm 0000 0011 2 - |
| 408 | 415 | * BSRF Rm |
| 409 | 416 | */ |
| 410 | INLINE void BSRF(UINT32 m) | |
| 417 | INLINE void BSRF(sh2_state *sh2, UINT32 m) | |
| 411 | 418 | { |
| 412 | 419 | sh2->pr = sh2->pc + 2; |
| 413 | 420 | sh2->delay = sh2->pc; |
| 414 | 421 | sh2->pc += sh2->r[m] + 2; |
| 415 | sh2 | |
| 422 | sh2->icount--; | |
| 416 | 423 | } |
| 417 | 424 | |
| 418 | 425 | /* code cycles t-bit |
| 419 | 426 | * 1000 1001 dddd dddd 3/1 - |
| 420 | 427 | * BT disp8 |
| 421 | 428 | */ |
| 422 | INLINE void BT(UINT32 d) | |
| 429 | INLINE void BT(sh2_state *sh2, UINT32 d) | |
| 423 | 430 | { |
| 424 | 431 | if ((sh2->sr & T) != 0) |
| 425 | 432 | { |
| 426 | 433 | INT32 disp = ((INT32)d << 24) >> 24; |
| 427 | 434 | sh2->pc = sh2->ea = sh2->pc + disp * 2 + 2; |
| 428 | sh2 | |
| 435 | sh2->icount -= 2; | |
| 429 | 436 | } |
| 430 | 437 | } |
| 431 | 438 | |
| r8581 | r8582 | |
| 433 | 440 | * 1000 1101 dddd dddd 2/1 - |
| 434 | 441 | * BTS disp8 |
| 435 | 442 | */ |
| 436 | INLINE void BTS(UINT32 d) | |
| 443 | INLINE void BTS(sh2_state *sh2, UINT32 d) | |
| 437 | 444 | { |
| 438 | 445 | if ((sh2->sr & T) != 0) |
| 439 | 446 | { |
| 440 | 447 | INT32 disp = ((INT32)d << 24) >> 24; |
| 441 | 448 | sh2->delay = sh2->pc; |
| 442 | 449 | sh2->pc = sh2->ea = sh2->pc + disp * 2 + 2; |
| 443 | sh2 | |
| 450 | sh2->icount--; | |
| 444 | 451 | } |
| 445 | 452 | } |
| 446 | 453 | |
| r8581 | r8582 | |
| 448 | 455 | * 0000 0000 0010 1000 1 - |
| 449 | 456 | * CLRMAC |
| 450 | 457 | */ |
| 451 | INLINE void CLRMAC( | |
| 458 | INLINE void CLRMAC(sh2_state *sh2) | |
| 452 | 459 | { |
| 453 | 460 | sh2->mach = 0; |
| 454 | 461 | sh2->macl = 0; |
| r8581 | r8582 | |
| 458 | 465 | * 0000 0000 0000 1000 1 - |
| 459 | 466 | * CLRT |
| 460 | 467 | */ |
| 461 | INLINE void CLRT( | |
| 468 | INLINE void CLRT(sh2_state *sh2) | |
| 462 | 469 | { |
| 463 | 470 | sh2->sr &= ~T; |
| 464 | 471 | } |
| r8581 | r8582 | |
| 467 | 474 | * 0011 nnnn mmmm 0000 1 comparison result |
| 468 | 475 | * CMP_EQ Rm,Rn |
| 469 | 476 | */ |
| 470 | INLINE void CMPEQ(UINT32 m, UINT32 n) | |
| 477 | INLINE void CMPEQ(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 471 | 478 | { |
| 472 | 479 | if (sh2->r[n] == sh2->r[m]) |
| 473 | 480 | sh2->sr |= T; |
| r8581 | r8582 | |
| 479 | 486 | * 0011 nnnn mmmm 0011 1 comparison result |
| 480 | 487 | * CMP_GE Rm,Rn |
| 481 | 488 | */ |
| 482 | INLINE void CMPGE(UINT32 m, UINT32 n) | |
| 489 | INLINE void CMPGE(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 483 | 490 | { |
| 484 | 491 | if ((INT32) sh2->r[n] >= (INT32) sh2->r[m]) |
| 485 | 492 | sh2->sr |= T; |
| r8581 | r8582 | |
| 491 | 498 | * 0011 nnnn mmmm 0111 1 comparison result |
| 492 | 499 | * CMP_GT Rm,Rn |
| 493 | 500 | */ |
| 494 | INLINE void CMPGT(UINT32 m, UINT32 n) | |
| 501 | INLINE void CMPGT(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 495 | 502 | { |
| 496 | 503 | if ((INT32) sh2->r[n] > (INT32) sh2->r[m]) |
| 497 | 504 | sh2->sr |= T; |
| r8581 | r8582 | |
| 503 | 510 | * 0011 nnnn mmmm 0110 1 comparison result |
| 504 | 511 | * CMP_HI Rm,Rn |
| 505 | 512 | */ |
| 506 | INLINE void CMPHI(UINT32 m, UINT32 n) | |
| 513 | INLINE void CMPHI(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 507 | 514 | { |
| 508 | 515 | if ((UINT32) sh2->r[n] > (UINT32) sh2->r[m]) |
| 509 | 516 | sh2->sr |= T; |
| r8581 | r8582 | |
| 515 | 522 | * 0011 nnnn mmmm 0010 1 comparison result |
| 516 | 523 | * CMP_HS Rm,Rn |
| 517 | 524 | */ |
| 518 | INLINE void CMPHS(UINT32 m, UINT32 n) | |
| 525 | INLINE void CMPHS(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 519 | 526 | { |
| 520 | 527 | if ((UINT32) sh2->r[n] >= (UINT32) sh2->r[m]) |
| 521 | 528 | sh2->sr |= T; |
| r8581 | r8582 | |
| 528 | 535 | * 0100 nnnn 0001 0101 1 comparison result |
| 529 | 536 | * CMP_PL Rn |
| 530 | 537 | */ |
| 531 | INLINE void CMPPL(UINT32 n) | |
| 538 | INLINE void CMPPL(sh2_state *sh2, UINT32 n) | |
| 532 | 539 | { |
| 533 | 540 | if ((INT32) sh2->r[n] > 0) |
| 534 | 541 | sh2->sr |= T; |
| r8581 | r8582 | |
| 540 | 547 | * 0100 nnnn 0001 0001 1 comparison result |
| 541 | 548 | * CMP_PZ Rn |
| 542 | 549 | */ |
| 543 | INLINE void CMPPZ(UINT32 n) | |
| 550 | INLINE void CMPPZ(sh2_state *sh2, UINT32 n) | |
| 544 | 551 | { |
| 545 | 552 | if ((INT32) sh2->r[n] >= 0) |
| 546 | 553 | sh2->sr |= T; |
| r8581 | r8582 | |
| 552 | 559 | * 0010 nnnn mmmm 1100 1 comparison result |
| 553 | 560 | * CMP_STR Rm,Rn |
| 554 | 561 | */ |
| 555 | INLINE void CMPSTR(UINT32 m, UINT32 n) | |
| 562 | INLINE void CMPSTR(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 556 | 563 | { |
| 557 | 564 | UINT32 temp; |
| 558 | 565 | INT32 HH, HL, LH, LL; |
| r8581 | r8582 | |
| 572 | 579 | * 1000 1000 iiii iiii 1 comparison result |
| 573 | 580 | * CMP/EQ #imm,R0 |
| 574 | 581 | */ |
| 575 | INLINE void CMPIM(UINT32 i) | |
| 582 | INLINE void CMPIM(sh2_state *sh2, UINT32 i) | |
| 576 | 583 | { |
| 577 | 584 | UINT32 imm = (UINT32)(INT32)(INT16)(INT8)i; |
| 578 | 585 | |
| r8581 | r8582 | |
| 586 | 593 | * 0010 nnnn mmmm 0111 1 calculation result |
| 587 | 594 | * DIV0S Rm,Rn |
| 588 | 595 | */ |
| 589 | INLINE void DIV0S(UINT32 m, UINT32 n) | |
| 596 | INLINE void DIV0S(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 590 | 597 | { |
| 591 | 598 | if ((sh2->r[n] & 0x80000000) == 0) |
| 592 | 599 | sh2->sr &= ~Q; |
| r8581 | r8582 | |
| 606 | 613 | * 0000 0000 0001 1001 1 0 |
| 607 | 614 | * DIV0U |
| 608 | 615 | */ |
| 609 | INLINE void DIV0U( | |
| 616 | INLINE void DIV0U(sh2_state *sh2) | |
| 610 | 617 | { |
| 611 | 618 | sh2->sr &= ~(M | Q | T); |
| 612 | 619 | } |
| r8581 | r8582 | |
| 615 | 622 | * 0011 nnnn mmmm 0100 1 calculation result |
| 616 | 623 | * DIV1 Rm,Rn |
| 617 | 624 | */ |
| 618 | INLINE void DIV1(UINT32 m, UINT32 n) | |
| 625 | INLINE void DIV1(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 619 | 626 | { |
| 620 | 627 | UINT32 tmp0; |
| 621 | 628 | UINT32 old_q; |
| r8581 | r8582 | |
| 707 | 714 | } |
| 708 | 715 | |
| 709 | 716 | /* DMULS.L Rm,Rn */ |
| 710 | INLINE void DMULS(UINT32 m, UINT32 n) | |
| 717 | INLINE void DMULS(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 711 | 718 | { |
| 712 | 719 | UINT32 RnL, RnH, RmL, RmH, Res0, Res1, Res2; |
| 713 | 720 | UINT32 temp0, temp1, temp2, temp3; |
| r8581 | r8582 | |
| 752 | 759 | } |
| 753 | 760 | sh2->mach = Res2; |
| 754 | 761 | sh2->macl = Res0; |
| 755 | sh2 | |
| 762 | sh2->icount--; | |
| 756 | 763 | } |
| 757 | 764 | |
| 758 | 765 | /* DMULU.L Rm,Rn */ |
| 759 | INLINE void DMULU(UINT32 m, UINT32 n) | |
| 766 | INLINE void DMULU(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 760 | 767 | { |
| 761 | 768 | UINT32 RnL, RnH, RmL, RmH, Res0, Res1, Res2; |
| 762 | 769 | UINT32 temp0, temp1, temp2, temp3; |
| r8581 | r8582 | |
| 780 | 787 | Res2 = Res2 + ((Res1 >> 16) & 0x0000ffff) + temp3; |
| 781 | 788 | sh2->mach = Res2; |
| 782 | 789 | sh2->macl = Res0; |
| 783 | sh2 | |
| 790 | sh2->icount--; | |
| 784 | 791 | } |
| 785 | 792 | |
| 786 | 793 | /* DT Rn */ |
| 787 | INLINE void DT(UINT32 n) | |
| 794 | INLINE void DT(sh2_state *sh2, UINT32 n) | |
| 788 | 795 | { |
| 789 | 796 | sh2->r[n]--; |
| 790 | 797 | if (sh2->r[n] == 0) |
| r8581 | r8582 | |
| 793 | 800 | sh2->sr &= ~T; |
| 794 | 801 | #if BUSY_LOOP_HACKS |
| 795 | 802 | { |
| 796 | UINT32 next_opcode = RW(sh2->ppc & AM); | |
| 803 | UINT32 next_opcode = RW( sh2, sh2->ppc & AM ); | |
| 797 | 804 | /* DT Rn |
| 798 | 805 | * BF $-2 |
| 799 | 806 | */ |
| 800 | 807 | if (next_opcode == 0x8bfd) |
| 801 | 808 | { |
| 802 | while (sh2->r[n] > 1 && sh2 | |
| 809 | while (sh2->r[n] > 1 && sh2->icount > 4) | |
| 803 | 810 | { |
| 804 | 811 | sh2->r[n]--; |
| 805 | sh2 | |
| 812 | sh2->icount -= 4; /* cycles for DT (1) and BF taken (3) */ | |
| 806 | 813 | } |
| 807 | 814 | } |
| 808 | 815 | } |
| r8581 | r8582 | |
| 810 | 817 | } |
| 811 | 818 | |
| 812 | 819 | /* EXTS.B Rm,Rn */ |
| 813 | INLINE void EXTSB(UINT32 m, UINT32 n) | |
| 820 | INLINE void EXTSB(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 814 | 821 | { |
| 815 | 822 | sh2->r[n] = ((INT32)sh2->r[m] << 24) >> 24; |
| 816 | 823 | } |
| 817 | 824 | |
| 818 | 825 | /* EXTS.W Rm,Rn */ |
| 819 | INLINE void EXTSW(UINT32 m, UINT32 n) | |
| 826 | INLINE void EXTSW(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 820 | 827 | { |
| 821 | 828 | sh2->r[n] = ((INT32)sh2->r[m] << 16) >> 16; |
| 822 | 829 | } |
| 823 | 830 | |
| 824 | 831 | /* EXTU.B Rm,Rn */ |
| 825 | INLINE void EXTUB(UINT32 m, UINT32 n) | |
| 832 | INLINE void EXTUB(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 826 | 833 | { |
| 827 | 834 | sh2->r[n] = sh2->r[m] & 0x000000ff; |
| 828 | 835 | } |
| 829 | 836 | |
| 830 | 837 | /* EXTU.W Rm,Rn */ |
| 831 | INLINE void EXTUW(UINT32 m, UINT32 n) | |
| 838 | INLINE void EXTUW(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 832 | 839 | { |
| 833 | 840 | sh2->r[n] = sh2->r[m] & 0x0000ffff; |
| 834 | 841 | } |
| 835 | 842 | |
| 836 | 843 | /* JMP @Rm */ |
| 837 | INLINE void JMP(UINT32 m) | |
| 844 | INLINE void JMP(sh2_state *sh2, UINT32 m) | |
| 838 | 845 | { |
| 839 | 846 | sh2->delay = sh2->pc; |
| 840 | 847 | sh2->pc = sh2->ea = sh2->r[m]; |
| 841 | 848 | } |
| 842 | 849 | |
| 843 | 850 | /* JSR @Rm */ |
| 844 | INLINE void JSR(UINT32 m) | |
| 851 | INLINE void JSR(sh2_state *sh2, UINT32 m) | |
| 845 | 852 | { |
| 846 | 853 | sh2->delay = sh2->pc; |
| 847 | 854 | sh2->pr = sh2->pc + 2; |
| 848 | 855 | sh2->pc = sh2->ea = sh2->r[m]; |
| 849 | sh2 | |
| 856 | sh2->icount--; | |
| 850 | 857 | } |
| 851 | 858 | |
| 852 | 859 | |
| 853 | 860 | /* LDC Rm,SR */ |
| 854 | INLINE void LDCSR(UINT32 m) | |
| 861 | INLINE void LDCSR(sh2_state *sh2, UINT32 m) | |
| 855 | 862 | { |
| 856 | 863 | sh2->sr = sh2->r[m] & FLAGS; |
| 857 | 864 | sh2->test_irq = 1; |
| 858 | 865 | } |
| 859 | 866 | |
| 860 | 867 | /* LDC Rm,GBR */ |
| 861 | INLINE void LDCGBR(UINT32 m) | |
| 868 | INLINE void LDCGBR(sh2_state *sh2, UINT32 m) | |
| 862 | 869 | { |
| 863 | 870 | sh2->gbr = sh2->r[m]; |
| 864 | 871 | } |
| 865 | 872 | |
| 866 | 873 | /* LDC Rm,VBR */ |
| 867 | INLINE void LDCVBR(UINT32 m) | |
| 874 | INLINE void LDCVBR(sh2_state *sh2, UINT32 m) | |
| 868 | 875 | { |
| 869 | 876 | sh2->vbr = sh2->r[m]; |
| 870 | 877 | } |
| 871 | 878 | |
| 872 | 879 | /* LDC.L @Rm+,SR */ |
| 873 | INLINE void LDCMSR(UINT32 m) | |
| 880 | INLINE void LDCMSR(sh2_state *sh2, UINT32 m) | |
| 874 | 881 | { |
| 875 | 882 | sh2->ea = sh2->r[m]; |
| 876 | sh2->sr = RL( sh2->ea ) & FLAGS; | |
| 883 | sh2->sr = RL( sh2, sh2->ea ) & FLAGS; | |
| 877 | 884 | sh2->r[m] += 4; |
| 878 | sh2 | |
| 885 | sh2->icount -= 2; | |
| 879 | 886 | sh2->test_irq = 1; |
| 880 | 887 | } |
| 881 | 888 | |
| 882 | 889 | /* LDC.L @Rm+,GBR */ |
| 883 | INLINE void LDCMGBR(UINT32 m) | |
| 890 | INLINE void LDCMGBR(sh2_state *sh2, UINT32 m) | |
| 884 | 891 | { |
| 885 | 892 | sh2->ea = sh2->r[m]; |
| 886 | sh2->gbr = RL( sh2->ea ); | |
| 893 | sh2->gbr = RL( sh2, sh2->ea ); | |
| 887 | 894 | sh2->r[m] += 4; |
| 888 | sh2 | |
| 895 | sh2->icount -= 2; | |
| 889 | 896 | } |
| 890 | 897 | |
| 891 | 898 | /* LDC.L @Rm+,VBR */ |
| 892 | INLINE void LDCMVBR(UINT32 m) | |
| 899 | INLINE void LDCMVBR(sh2_state *sh2, UINT32 m) | |
| 893 | 900 | { |
| 894 | 901 | sh2->ea = sh2->r[m]; |
| 895 | sh2->vbr = RL( sh2->ea ); | |
| 902 | sh2->vbr = RL( sh2, sh2->ea ); | |
| 896 | 903 | sh2->r[m] += 4; |
| 897 | sh2 | |
| 904 | sh2->icount -= 2; | |
| 898 | 905 | } |
| 899 | 906 | |
| 900 | 907 | /* LDS Rm,MACH */ |
| 901 | INLINE void LDSMACH(UINT32 m) | |
| 908 | INLINE void LDSMACH(sh2_state *sh2, UINT32 m) | |
| 902 | 909 | { |
| 903 | 910 | sh2->mach = sh2->r[m]; |
| 904 | 911 | } |
| 905 | 912 | |
| 906 | 913 | /* LDS Rm,MACL */ |
| 907 | INLINE void LDSMACL(UINT32 m) | |
| 914 | INLINE void LDSMACL(sh2_state *sh2, UINT32 m) | |
| 908 | 915 | { |
| 909 | 916 | sh2->macl = sh2->r[m]; |
| 910 | 917 | } |
| 911 | 918 | |
| 912 | 919 | /* LDS Rm,PR */ |
| 913 | INLINE void LDSPR(UINT32 m) | |
| 920 | INLINE void LDSPR(sh2_state *sh2, UINT32 m) | |
| 914 | 921 | { |
| 915 | 922 | sh2->pr = sh2->r[m]; |
| 916 | 923 | } |
| 917 | 924 | |
| 918 | 925 | /* LDS.L @Rm+,MACH */ |
| 919 | INLINE void LDSMMACH(UINT32 m) | |
| 926 | INLINE void LDSMMACH(sh2_state *sh2, UINT32 m) | |
| 920 | 927 | { |
| 921 | 928 | sh2->ea = sh2->r[m]; |
| 922 | sh2->mach = RL( sh2->ea ); | |
| 929 | sh2->mach = RL( sh2, sh2->ea ); | |
| 923 | 930 | sh2->r[m] += 4; |
| 924 | 931 | } |
| 925 | 932 | |
| 926 | 933 | /* LDS.L @Rm+,MACL */ |
| 927 | INLINE void LDSMMACL(UINT32 m) | |
| 934 | INLINE void LDSMMACL(sh2_state *sh2, UINT32 m) | |
| 928 | 935 | { |
| 929 | 936 | sh2->ea = sh2->r[m]; |
| 930 | sh2->macl = RL( sh2->ea ); | |
| 937 | sh2->macl = RL( sh2, sh2->ea ); | |
| 931 | 938 | sh2->r[m] += 4; |
| 932 | 939 | } |
| 933 | 940 | |
| 934 | 941 | /* LDS.L @Rm+,PR */ |
| 935 | INLINE void LDSMPR(UINT32 m) | |
| 942 | INLINE void LDSMPR(sh2_state *sh2, UINT32 m) | |
| 936 | 943 | { |
| 937 | 944 | sh2->ea = sh2->r[m]; |
| 938 | sh2->pr = RL( sh2->ea ); | |
| 945 | sh2->pr = RL( sh2, sh2->ea ); | |
| 939 | 946 | sh2->r[m] += 4; |
| 940 | 947 | } |
| 941 | 948 | |
| 942 | 949 | /* MAC.L @Rm+,@Rn+ */ |
| 943 | INLINE void MAC_L(UINT32 m, UINT32 n) | |
| 950 | INLINE void MAC_L(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 944 | 951 | { |
| 945 | 952 | UINT32 RnL, RnH, RmL, RmH, Res0, Res1, Res2; |
| 946 | 953 | UINT32 temp0, temp1, temp2, temp3; |
| 947 | 954 | INT32 tempm, tempn, fnLmL; |
| 948 | 955 | |
| 949 | tempn = (INT32) RL( sh2->r[n] ); | |
| 956 | tempn = (INT32) RL( sh2, sh2->r[n] ); | |
| 950 | 957 | sh2->r[n] += 4; |
| 951 | tempm = (INT32) RL( sh2->r[m] ); | |
| 958 | tempm = (INT32) RL( sh2, sh2->r[m] ); | |
| 952 | 959 | sh2->r[m] += 4; |
| 953 | 960 | if ((INT32) (tempn ^ tempm) < 0) |
| 954 | 961 | fnLmL = -1; |
| r8581 | r8582 | |
| 1013 | 1020 | sh2->mach = Res2; |
| 1014 | 1021 | sh2->macl = Res0; |
| 1015 | 1022 | } |
| 1016 | sh2 | |
| 1023 | sh2->icount -= 2; | |
| 1017 | 1024 | } |
| 1018 | 1025 | |
| 1019 | 1026 | /* MAC.W @Rm+,@Rn+ */ |
| 1020 | INLINE void MAC_W(UINT32 m, UINT32 n) | |
| 1027 | INLINE void MAC_W(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1021 | 1028 | { |
| 1022 | 1029 | INT32 tempm, tempn, dest, src, ans; |
| 1023 | 1030 | UINT32 templ; |
| 1024 | 1031 | |
| 1025 | tempn = (INT32) RW( sh2->r[n] ); | |
| 1032 | tempn = (INT32) RW( sh2, sh2->r[n] ); | |
| 1026 | 1033 | sh2->r[n] += 2; |
| 1027 | tempm = (INT32) RW( sh2->r[m] ); | |
| 1034 | tempm = (INT32) RW( sh2, sh2->r[m] ); | |
| 1028 | 1035 | sh2->r[m] += 2; |
| 1029 | 1036 | templ = sh2->macl; |
| 1030 | 1037 | tempm = ((INT32) (short) tempn * (INT32) (short) tempm); |
| r8581 | r8582 | |
| 1065 | 1072 | if (templ > sh2->macl) |
| 1066 | 1073 | sh2->mach += 1; |
| 1067 | 1074 | } |
| 1068 | sh2 | |
| 1075 | sh2->icount -= 2; | |
| 1069 | 1076 | } |
| 1070 | 1077 | |
| 1071 | 1078 | /* MOV Rm,Rn */ |
| 1072 | INLINE void MOV(UINT32 m, UINT32 n) | |
| 1079 | INLINE void MOV(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1073 | 1080 | { |
| 1074 | 1081 | sh2->r[n] = sh2->r[m]; |
| 1075 | 1082 | } |
| 1076 | 1083 | |
| 1077 | 1084 | /* MOV.B Rm,@Rn */ |
| 1078 | INLINE void MOVBS(UINT32 m, UINT32 n) | |
| 1085 | INLINE void MOVBS(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1079 | 1086 | { |
| 1080 | 1087 | sh2->ea = sh2->r[n]; |
| 1081 | WB( sh2->ea, sh2->r[m] & 0x000000ff); | |
| 1088 | WB( sh2, sh2->ea, sh2->r[m] & 0x000000ff); | |
| 1082 | 1089 | } |
| 1083 | 1090 | |
| 1084 | 1091 | /* MOV.W Rm,@Rn */ |
| 1085 | INLINE void MOVWS(UINT32 m, UINT32 n) | |
| 1092 | INLINE void MOVWS(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1086 | 1093 | { |
| 1087 | 1094 | sh2->ea = sh2->r[n]; |
| 1088 | WW( sh2->ea, sh2->r[m] & 0x0000ffff); | |
| 1095 | WW( sh2, sh2->ea, sh2->r[m] & 0x0000ffff); | |
| 1089 | 1096 | } |
| 1090 | 1097 | |
| 1091 | 1098 | /* MOV.L Rm,@Rn */ |
| 1092 | INLINE void MOVLS(UINT32 m, UINT32 n) | |
| 1099 | INLINE void MOVLS(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1093 | 1100 | { |
| 1094 | 1101 | sh2->ea = sh2->r[n]; |
| 1095 | WL( sh2->ea, sh2->r[m] ); | |
| 1102 | WL( sh2, sh2->ea, sh2->r[m] ); | |
| 1096 | 1103 | } |
| 1097 | 1104 | |
| 1098 | 1105 | /* MOV.B @Rm,Rn */ |
| 1099 | INLINE void MOVBL(UINT32 m, UINT32 n) | |
| 1106 | INLINE void MOVBL(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1100 | 1107 | { |
| 1101 | 1108 | sh2->ea = sh2->r[m]; |
| 1102 | sh2->r[n] = (UINT32)(INT32)(INT16)(INT8) RB( sh2->ea ); | |
| 1109 | sh2->r[n] = (UINT32)(INT32)(INT16)(INT8) RB( sh2, sh2->ea ); | |
| 1103 | 1110 | } |
| 1104 | 1111 | |
| 1105 | 1112 | /* MOV.W @Rm,Rn */ |
| 1106 | INLINE void MOVWL(UINT32 m, UINT32 n) | |
| 1113 | INLINE void MOVWL(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1107 | 1114 | { |
| 1108 | 1115 | sh2->ea = sh2->r[m]; |
| 1109 | sh2->r[n] = (UINT32)(INT32)(INT16) RW( sh2->ea ); | |
| 1116 | sh2->r[n] = (UINT32)(INT32)(INT16) RW( sh2, sh2->ea ); | |
| 1110 | 1117 | } |
| 1111 | 1118 | |
| 1112 | 1119 | /* MOV.L @Rm,Rn */ |
| 1113 | INLINE void MOVLL(UINT32 m, UINT32 n) | |
| 1120 | INLINE void MOVLL(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1114 | 1121 | { |
| 1115 | 1122 | sh2->ea = sh2->r[m]; |
| 1116 | sh2->r[n] = RL( sh2->ea ); | |
| 1123 | sh2->r[n] = RL( sh2, sh2->ea ); | |
| 1117 | 1124 | } |
| 1118 | 1125 | |
| 1119 | 1126 | /* MOV.B Rm,@-Rn */ |
| 1120 | INLINE void MOVBM(UINT32 m, UINT32 n) | |
| 1127 | INLINE void MOVBM(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1121 | 1128 | { |
| 1122 | 1129 | /* SMG : bug fix, was reading sh2->r[n] */ |
| 1123 | 1130 | UINT32 data = sh2->r[m] & 0x000000ff; |
| 1124 | 1131 | |
| 1125 | 1132 | sh2->r[n] -= 1; |
| 1126 | WB( sh2->r[n], data ); | |
| 1133 | WB( sh2, sh2->r[n], data ); | |
| 1127 | 1134 | } |
| 1128 | 1135 | |
| 1129 | 1136 | /* MOV.W Rm,@-Rn */ |
| 1130 | INLINE void MOVWM(UINT32 m, UINT32 n) | |
| 1137 | INLINE void MOVWM(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1131 | 1138 | { |
| 1132 | 1139 | UINT32 data = sh2->r[m] & 0x0000ffff; |
| 1133 | 1140 | |
| 1134 | 1141 | sh2->r[n] -= 2; |
| 1135 | WW( sh2->r[n], data ); | |
| 1142 | WW( sh2, sh2->r[n], data ); | |
| 1136 | 1143 | } |
| 1137 | 1144 | |
| 1138 | 1145 | /* MOV.L Rm,@-Rn */ |
| 1139 | INLINE void MOVLM(UINT32 m, UINT32 n) | |
| 1146 | INLINE void MOVLM(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1140 | 1147 | { |
| 1141 | 1148 | UINT32 data = sh2->r[m]; |
| 1142 | 1149 | |
| 1143 | 1150 | sh2->r[n] -= 4; |
| 1144 | WL( sh2->r[n], data ); | |
| 1151 | WL( sh2, sh2->r[n], data ); | |
| 1145 | 1152 | } |
| 1146 | 1153 | |
| 1147 | 1154 | /* MOV.B @Rm+,Rn */ |
| 1148 | INLINE void MOVBP(UINT32 m, UINT32 n) | |
| 1155 | INLINE void MOVBP(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1149 | 1156 | { |
| 1150 | sh2->r[n] = (UINT32)(INT32)(INT16)(INT8) RB( sh2->r[m] ); | |
| 1157 | sh2->r[n] = (UINT32)(INT32)(INT16)(INT8) RB( sh2, sh2->r[m] ); | |
| 1151 | 1158 | if (n != m) |
| 1152 | 1159 | sh2->r[m] += 1; |
| 1153 | 1160 | } |
| 1154 | 1161 | |
| 1155 | 1162 | /* MOV.W @Rm+,Rn */ |
| 1156 | INLINE void MOVWP(UINT32 m, UINT32 n) | |
| 1163 | INLINE void MOVWP(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1157 | 1164 | { |
| 1158 | sh2->r[n] = (UINT32)(INT32)(INT16) RW( sh2->r[m] ); | |
| 1165 | sh2->r[n] = (UINT32)(INT32)(INT16) RW( sh2, sh2->r[m] ); | |
| 1159 | 1166 | if (n != m) |
| 1160 | 1167 | sh2->r[m] += 2; |
| 1161 | 1168 | } |
| 1162 | 1169 | |
| 1163 | 1170 | /* MOV.L @Rm+,Rn */ |
| 1164 | INLINE void MOVLP(UINT32 m, UINT32 n) | |
| 1171 | INLINE void MOVLP(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1165 | 1172 | { |
| 1166 | sh2->r[n] = RL( sh2->r[m] ); | |
| 1173 | sh2->r[n] = RL( sh2, sh2->r[m] ); | |
| 1167 | 1174 | if (n != m) |
| 1168 | 1175 | sh2->r[m] += 4; |
| 1169 | 1176 | } |
| 1170 | 1177 | |
| 1171 | 1178 | /* MOV.B Rm,@(R0,Rn) */ |
| 1172 | INLINE void MOVBS0(UINT32 m, UINT32 n) | |
| 1179 | INLINE void MOVBS0(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1173 | 1180 | { |
| 1174 | 1181 | sh2->ea = sh2->r[n] + sh2->r[0]; |
| 1175 | WB( sh2->ea, sh2->r[m] & 0x000000ff ); | |
| 1182 | WB( sh2, sh2->ea, sh2->r[m] & 0x000000ff ); | |
| 1176 | 1183 | } |
| 1177 | 1184 | |
| 1178 | 1185 | /* MOV.W Rm,@(R0,Rn) */ |
| 1179 | INLINE void MOVWS0(UINT32 m, UINT32 n) | |
| 1186 | INLINE void MOVWS0(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1180 | 1187 | { |
| 1181 | 1188 | sh2->ea = sh2->r[n] + sh2->r[0]; |
| 1182 | WW( sh2->ea, sh2->r[m] & 0x0000ffff ); | |
| 1189 | WW( sh2, sh2->ea, sh2->r[m] & 0x0000ffff ); | |
| 1183 | 1190 | } |
| 1184 | 1191 | |
| 1185 | 1192 | /* MOV.L Rm,@(R0,Rn) */ |
| 1186 | INLINE void MOVLS0(UINT32 m, UINT32 n) | |
| 1193 | INLINE void MOVLS0(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1187 | 1194 | { |
| 1188 | 1195 | sh2->ea = sh2->r[n] + sh2->r[0]; |
| 1189 | WL( sh2->ea, sh2->r[m] ); | |
| 1196 | WL( sh2, sh2->ea, sh2->r[m] ); | |
| 1190 | 1197 | } |
| 1191 | 1198 | |
| 1192 | 1199 | /* MOV.B @(R0,Rm),Rn */ |
| 1193 | INLINE void MOVBL0(UINT32 m, UINT32 n) | |
| 1200 | INLINE void MOVBL0(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1194 | 1201 | { |
| 1195 | 1202 | sh2->ea = sh2->r[m] + sh2->r[0]; |
| 1196 | sh2->r[n] = (UINT32)(INT32)(INT16)(INT8) RB( sh2->ea ); | |
| 1203 | sh2->r[n] = (UINT32)(INT32)(INT16)(INT8) RB( sh2, sh2->ea ); | |
| 1197 | 1204 | } |
| 1198 | 1205 | |
| 1199 | 1206 | /* MOV.W @(R0,Rm),Rn */ |
| 1200 | INLINE void MOVWL0(UINT32 m, UINT32 n) | |
| 1207 | INLINE void MOVWL0(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1201 | 1208 | { |
| 1202 | 1209 | sh2->ea = sh2->r[m] + sh2->r[0]; |
| 1203 | sh2->r[n] = (UINT32)(INT32)(INT16) RW( sh2->ea ); | |
| 1210 | sh2->r[n] = (UINT32)(INT32)(INT16) RW( sh2, sh2->ea ); | |
| 1204 | 1211 | } |
| 1205 | 1212 | |
| 1206 | 1213 | /* MOV.L @(R0,Rm),Rn */ |
| 1207 | INLINE void MOVLL0(UINT32 m, UINT32 n) | |
| 1214 | INLINE void MOVLL0(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1208 | 1215 | { |
| 1209 | 1216 | sh2->ea = sh2->r[m] + sh2->r[0]; |
| 1210 | sh2->r[n] = RL( sh2->ea ); | |
| 1217 | sh2->r[n] = RL( sh2, sh2->ea ); | |
| 1211 | 1218 | } |
| 1212 | 1219 | |
| 1213 | 1220 | /* MOV #imm,Rn */ |
| 1214 | INLINE void MOVI(UINT32 i, UINT32 n) | |
| 1221 | INLINE void MOVI(sh2_state *sh2, UINT32 i, UINT32 n) | |
| 1215 | 1222 | { |
| 1216 | 1223 | sh2->r[n] = (UINT32)(INT32)(INT16)(INT8) i; |
| 1217 | 1224 | } |
| 1218 | 1225 | |
| 1219 | 1226 | /* MOV.W @(disp8,PC),Rn */ |
| 1220 | INLINE void MOVWI(UINT32 d, UINT32 n) | |
| 1227 | INLINE void MOVWI(sh2_state *sh2, UINT32 d, UINT32 n) | |
| 1221 | 1228 | { |
| 1222 | 1229 | UINT32 disp = d & 0xff; |
| 1223 | 1230 | sh2->ea = sh2->pc + disp * 2 + 2; |
| 1224 | sh2->r[n] = (UINT32)(INT32)(INT16) RW( sh2->ea ); | |
| 1231 | sh2->r[n] = (UINT32)(INT32)(INT16) RW( sh2, sh2->ea ); | |
| 1225 | 1232 | } |
| 1226 | 1233 | |
| 1227 | 1234 | /* MOV.L @(disp8,PC),Rn */ |
| 1228 | INLINE void MOVLI(UINT32 d, UINT32 n) | |
| 1235 | INLINE void MOVLI(sh2_state *sh2, UINT32 d, UINT32 n) | |
| 1229 | 1236 | { |
| 1230 | 1237 | UINT32 disp = d & 0xff; |
| 1231 | 1238 | sh2->ea = ((sh2->pc + 2) & ~3) + disp * 4; |
| 1232 | sh2->r[n] = RL( sh2->ea ); | |
| 1239 | sh2->r[n] = RL( sh2, sh2->ea ); | |
| 1233 | 1240 | } |
| 1234 | 1241 | |
| 1235 | 1242 | /* MOV.B @(disp8,GBR),R0 */ |
| 1236 | INLINE void MOVBLG(UINT32 d) | |
| 1243 | INLINE void MOVBLG(sh2_state *sh2, UINT32 d) | |
| 1237 | 1244 | { |
| 1238 | 1245 | UINT32 disp = d & 0xff; |
| 1239 | 1246 | sh2->ea = sh2->gbr + disp; |
| 1240 | sh2->r[0] = (UINT32)(INT32)(INT16)(INT8) RB( sh2->ea ); | |
| 1247 | sh2->r[0] = (UINT32)(INT32)(INT16)(INT8) RB( sh2, sh2->ea ); | |
| 1241 | 1248 | } |
| 1242 | 1249 | |
| 1243 | 1250 | /* MOV.W @(disp8,GBR),R0 */ |
| 1244 | INLINE void MOVWLG(UINT32 d) | |
| 1251 | INLINE void MOVWLG(sh2_state *sh2, UINT32 d) | |
| 1245 | 1252 | { |
| 1246 | 1253 | UINT32 disp = d & 0xff; |
| 1247 | 1254 | sh2->ea = sh2->gbr + disp * 2; |
| 1248 | sh2->r[0] = (INT32)(INT16) RW( sh2->ea ); | |
| 1255 | sh2->r[0] = (INT32)(INT16) RW( sh2, sh2->ea ); | |
| 1249 | 1256 | } |
| 1250 | 1257 | |
| 1251 | 1258 | /* MOV.L @(disp8,GBR),R0 */ |
| 1252 | INLINE void MOVLLG(UINT32 d) | |
| 1259 | INLINE void MOVLLG(sh2_state *sh2, UINT32 d) | |
| 1253 | 1260 | { |
| 1254 | 1261 | UINT32 disp = d & 0xff; |
| 1255 | 1262 | sh2->ea = sh2->gbr + disp * 4; |
| 1256 | sh2->r[0] = RL( sh2->ea ); | |
| 1263 | sh2->r[0] = RL( sh2, sh2->ea ); | |
| 1257 | 1264 | } |
| 1258 | 1265 | |
| 1259 | 1266 | /* MOV.B R0,@(disp8,GBR) */ |
| 1260 | INLINE void MOVBSG(UINT32 d) | |
| 1267 | INLINE void MOVBSG(sh2_state *sh2, UINT32 d) | |
| 1261 | 1268 | { |
| 1262 | 1269 | UINT32 disp = d & 0xff; |
| 1263 | 1270 | sh2->ea = sh2->gbr + disp; |
| 1264 | WB( sh2->ea, sh2->r[0] & 0x000000ff ); | |
| 1271 | WB( sh2, sh2->ea, sh2->r[0] & 0x000000ff ); | |
| 1265 | 1272 | } |
| 1266 | 1273 | |
| 1267 | 1274 | /* MOV.W R0,@(disp8,GBR) */ |
| 1268 | INLINE void MOVWSG(UINT32 d) | |
| 1275 | INLINE void MOVWSG(sh2_state *sh2, UINT32 d) | |
| 1269 | 1276 | { |
| 1270 | 1277 | UINT32 disp = d & 0xff; |
| 1271 | 1278 | sh2->ea = sh2->gbr + disp * 2; |
| 1272 | WW( sh2->ea, sh2->r[0] & 0x0000ffff ); | |
| 1279 | WW( sh2, sh2->ea, sh2->r[0] & 0x0000ffff ); | |
| 1273 | 1280 | } |
| 1274 | 1281 | |
| 1275 | 1282 | /* MOV.L R0,@(disp8,GBR) */ |
| 1276 | INLINE void MOVLSG(UINT32 d) | |
| 1283 | INLINE void MOVLSG(sh2_state *sh2, UINT32 d) | |
| 1277 | 1284 | { |
| 1278 | 1285 | UINT32 disp = d & 0xff; |
| 1279 | 1286 | sh2->ea = sh2->gbr + disp * 4; |
| 1280 | WL( sh2->ea, sh2->r[0] ); | |
| 1287 | WL( sh2, sh2->ea, sh2->r[0] ); | |
| 1281 | 1288 | } |
| 1282 | 1289 | |
| 1283 | 1290 | /* MOV.B R0,@(disp4,Rn) */ |
| 1284 | INLINE void MOVBS4(UINT32 d, UINT32 n) | |
| 1291 | INLINE void MOVBS4(sh2_state *sh2, UINT32 d, UINT32 n) | |
| 1285 | 1292 | { |
| 1286 | 1293 | UINT32 disp = d & 0x0f; |
| 1287 | 1294 | sh2->ea = sh2->r[n] + disp; |
| 1288 | WB( sh2->ea, sh2->r[0] & 0x000000ff ); | |
| 1295 | WB( sh2, sh2->ea, sh2->r[0] & 0x000000ff ); | |
| 1289 | 1296 | } |
| 1290 | 1297 | |
| 1291 | 1298 | /* MOV.W R0,@(disp4,Rn) */ |
| 1292 | INLINE void MOVWS4(UINT32 d, UINT32 n) | |
| 1299 | INLINE void MOVWS4(sh2_state *sh2, UINT32 d, UINT32 n) | |
| 1293 | 1300 | { |
| 1294 | 1301 | UINT32 disp = d & 0x0f; |
| 1295 | 1302 | sh2->ea = sh2->r[n] + disp * 2; |
| 1296 | WW( sh2->ea, sh2->r[0] & 0x0000ffff ); | |
| 1303 | WW( sh2, sh2->ea, sh2->r[0] & 0x0000ffff ); | |
| 1297 | 1304 | } |
| 1298 | 1305 | |
| 1299 | 1306 | /* MOV.L Rm,@(disp4,Rn) */ |
| 1300 | INLINE void MOVLS4(UINT32 m, UINT32 d, UINT32 n) | |
| 1307 | INLINE void MOVLS4(sh2_state *sh2, UINT32 m, UINT32 d, UINT32 n) | |
| 1301 | 1308 | { |
| 1302 | 1309 | UINT32 disp = d & 0x0f; |
| 1303 | 1310 | sh2->ea = sh2->r[n] + disp * 4; |
| 1304 | WL( sh2->ea, sh2->r[m] ); | |
| 1311 | WL( sh2, sh2->ea, sh2->r[m] ); | |
| 1305 | 1312 | } |
| 1306 | 1313 | |
| 1307 | 1314 | /* MOV.B @(disp4,Rm),R0 */ |
| 1308 | INLINE void MOVBL4(UINT32 m, UINT32 d) | |
| 1315 | INLINE void MOVBL4(sh2_state *sh2, UINT32 m, UINT32 d) | |
| 1309 | 1316 | { |
| 1310 | 1317 | UINT32 disp = d & 0x0f; |
| 1311 | 1318 | sh2->ea = sh2->r[m] + disp; |
| 1312 | sh2->r[0] = (UINT32)(INT32)(INT16)(INT8) RB( sh2->ea ); | |
| 1319 | sh2->r[0] = (UINT32)(INT32)(INT16)(INT8) RB( sh2, sh2->ea ); | |
| 1313 | 1320 | } |
| 1314 | 1321 | |
| 1315 | 1322 | /* MOV.W @(disp4,Rm),R0 */ |
| 1316 | INLINE void MOVWL4(UINT32 m, UINT32 d) | |
| 1323 | INLINE void MOVWL4(sh2_state *sh2, UINT32 m, UINT32 d) | |
| 1317 | 1324 | { |
| 1318 | 1325 | UINT32 disp = d & 0x0f; |
| 1319 | 1326 | sh2->ea = sh2->r[m] + disp * 2; |
| 1320 | sh2->r[0] = (UINT32)(INT32)(INT16) RW( sh2->ea ); | |
| 1327 | sh2->r[0] = (UINT32)(INT32)(INT16) RW( sh2, sh2->ea ); | |
| 1321 | 1328 | } |
| 1322 | 1329 | |
| 1323 | 1330 | /* MOV.L @(disp4,Rm),Rn */ |
| 1324 | INLINE void MOVLL4(UINT32 m, UINT32 d, UINT32 n) | |
| 1331 | INLINE void MOVLL4(sh2_state *sh2, UINT32 m, UINT32 d, UINT32 n) | |
| 1325 | 1332 | { |
| 1326 | 1333 | UINT32 disp = d & 0x0f; |
| 1327 | 1334 | sh2->ea = sh2->r[m] + disp * 4; |
| 1328 | sh2->r[n] = RL( sh2->ea ); | |
| 1335 | sh2->r[n] = RL( sh2, sh2->ea ); | |
| 1329 | 1336 | } |
| 1330 | 1337 | |
| 1331 | 1338 | /* MOVA @(disp8,PC),R0 */ |
| 1332 | INLINE void MOVA(UINT32 d) | |
| 1339 | INLINE void MOVA(sh2_state *sh2, UINT32 d) | |
| 1333 | 1340 | { |
| 1334 | 1341 | UINT32 disp = d & 0xff; |
| 1335 | 1342 | sh2->ea = ((sh2->pc + 2) & ~3) + disp * 4; |
| r8581 | r8582 | |
| 1337 | 1344 | } |
| 1338 | 1345 | |
| 1339 | 1346 | /* MOVT Rn */ |
| 1340 | INLINE void MOVT(UINT32 n) | |
| 1347 | INLINE void MOVT(sh2_state *sh2, UINT32 n) | |
| 1341 | 1348 | { |
| 1342 | 1349 | sh2->r[n] = sh2->sr & T; |
| 1343 | 1350 | } |
| 1344 | 1351 | |
| 1345 | 1352 | /* MUL.L Rm,Rn */ |
| 1346 | INLINE void MULL(UINT32 m, UINT32 n) | |
| 1353 | INLINE void MULL(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1347 | 1354 | { |
| 1348 | 1355 | sh2->macl = sh2->r[n] * sh2->r[m]; |
| 1349 | sh2 | |
| 1356 | sh2->icount--; | |
| 1350 | 1357 | } |
| 1351 | 1358 | |
| 1352 | 1359 | /* MULS Rm,Rn */ |
| 1353 | INLINE void MULS(UINT32 m, UINT32 n) | |
| 1360 | INLINE void MULS(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1354 | 1361 | { |
| 1355 | 1362 | sh2->macl = (INT16) sh2->r[n] * (INT16) sh2->r[m]; |
| 1356 | 1363 | } |
| 1357 | 1364 | |
| 1358 | 1365 | /* MULU Rm,Rn */ |
| 1359 | INLINE void MULU(UINT32 m, UINT32 n) | |
| 1366 | INLINE void MULU(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1360 | 1367 | { |
| 1361 | 1368 | sh2->macl = (UINT16) sh2->r[n] * (UINT16) sh2->r[m]; |
| 1362 | 1369 | } |
| 1363 | 1370 | |
| 1364 | 1371 | /* NEG Rm,Rn */ |
| 1365 | INLINE void NEG(UINT32 m, UINT32 n) | |
| 1372 | INLINE void NEG(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1366 | 1373 | { |
| 1367 | 1374 | sh2->r[n] = 0 - sh2->r[m]; |
| 1368 | 1375 | } |
| 1369 | 1376 | |
| 1370 | 1377 | /* NEGC Rm,Rn */ |
| 1371 | INLINE void NEGC(UINT32 m, UINT32 n) | |
| 1378 | INLINE void NEGC(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1372 | 1379 | { |
| 1373 | 1380 | UINT32 temp; |
| 1374 | 1381 | |
| r8581 | r8582 | |
| 1386 | 1393 | } |
| 1387 | 1394 | |
| 1388 | 1395 | /* NOT Rm,Rn */ |
| 1389 | INLINE void NOT(UINT32 m, UINT32 n) | |
| 1396 | INLINE void NOT(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1390 | 1397 | { |
| 1391 | 1398 | sh2->r[n] = ~sh2->r[m]; |
| 1392 | 1399 | } |
| 1393 | 1400 | |
| 1394 | 1401 | /* OR Rm,Rn */ |
| 1395 | INLINE void OR(UINT32 m, UINT32 n) | |
| 1402 | INLINE void OR(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1396 | 1403 | { |
| 1397 | 1404 | sh2->r[n] |= sh2->r[m]; |
| 1398 | 1405 | } |
| 1399 | 1406 | |
| 1400 | 1407 | /* OR #imm,R0 */ |
| 1401 | INLINE void ORI(UINT32 i) | |
| 1408 | INLINE void ORI(sh2_state *sh2, UINT32 i) | |
| 1402 | 1409 | { |
| 1403 | 1410 | sh2->r[0] |= i; |
| 1404 | sh2 | |
| 1411 | sh2->icount -= 2; | |
| 1405 | 1412 | } |
| 1406 | 1413 | |
| 1407 | 1414 | /* OR.B #imm,@(R0,GBR) */ |
| 1408 | INLINE void ORM(UINT32 i) | |
| 1415 | INLINE void ORM(sh2_state *sh2, UINT32 i) | |
| 1409 | 1416 | { |
| 1410 | 1417 | UINT32 temp; |
| 1411 | 1418 | |
| 1412 | 1419 | sh2->ea = sh2->gbr + sh2->r[0]; |
| 1413 | temp = RB( sh2->ea ); | |
| 1420 | temp = RB( sh2, sh2->ea ); | |
| 1414 | 1421 | temp |= i; |
| 1415 | WB( sh2->ea, temp ); | |
| 1422 | WB( sh2, sh2->ea, temp ); | |
| 1416 | 1423 | } |
| 1417 | 1424 | |
| 1418 | 1425 | /* ROTCL Rn */ |
| 1419 | INLINE void ROTCL(UINT32 n) | |
| 1426 | INLINE void ROTCL(sh2_state *sh2, UINT32 n) | |
| 1420 | 1427 | { |
| 1421 | 1428 | UINT32 temp; |
| 1422 | 1429 | |
| r8581 | r8582 | |
| 1426 | 1433 | } |
| 1427 | 1434 | |
| 1428 | 1435 | /* ROTCR Rn */ |
| 1429 | INLINE void ROTCR(UINT32 n) | |
| 1436 | INLINE void ROTCR(sh2_state *sh2, UINT32 n) | |
| 1430 | 1437 | { |
| 1431 | 1438 | UINT32 temp; |
| 1432 | 1439 | temp = (sh2->sr & T) << 31; |
| r8581 | r8582 | |
| 1438 | 1445 | } |
| 1439 | 1446 | |
| 1440 | 1447 | /* ROTL Rn */ |
| 1441 | INLINE void ROTL(UINT32 n) | |
| 1448 | INLINE void ROTL(sh2_state *sh2, UINT32 n) | |
| 1442 | 1449 | { |
| 1443 | 1450 | sh2->sr = (sh2->sr & ~T) | ((sh2->r[n] >> 31) & T); |
| 1444 | 1451 | sh2->r[n] = (sh2->r[n] << 1) | (sh2->r[n] >> 31); |
| 1445 | 1452 | } |
| 1446 | 1453 | |
| 1447 | 1454 | /* ROTR Rn */ |
| 1448 | INLINE void ROTR(UINT32 n) | |
| 1455 | INLINE void ROTR(sh2_state *sh2, UINT32 n) | |
| 1449 | 1456 | { |
| 1450 | 1457 | sh2->sr = (sh2->sr & ~T) | (sh2->r[n] & T); |
| 1451 | 1458 | sh2->r[n] = (sh2->r[n] >> 1) | (sh2->r[n] << 31); |
| 1452 | 1459 | } |
| 1453 | 1460 | |
| 1454 | 1461 | /* RTE */ |
| 1455 | INLINE void RTE( | |
| 1462 | INLINE void RTE(sh2_state *sh2) | |
| 1456 | 1463 | { |
| 1457 | 1464 | sh2->ea = sh2->r[15]; |
| 1458 | 1465 | sh2->delay = sh2->pc; |
| 1459 | sh2->pc = RL( sh2->ea ); | |
| 1466 | sh2->pc = RL( sh2, sh2->ea ); | |
| 1460 | 1467 | sh2->r[15] += 4; |
| 1461 | 1468 | sh2->ea = sh2->r[15]; |
| 1462 | sh2->sr = RL( sh2->ea ) & FLAGS; | |
| 1469 | sh2->sr = RL( sh2, sh2->ea ) & FLAGS; | |
| 1463 | 1470 | sh2->r[15] += 4; |
| 1464 | sh2 | |
| 1471 | sh2->icount -= 3; | |
| 1465 | 1472 | sh2->test_irq = 1; |
| 1466 | 1473 | } |
| 1467 | 1474 | |
| 1468 | 1475 | /* RTS */ |
| 1469 | INLINE void RTS( | |
| 1476 | INLINE void RTS(sh2_state *sh2) | |
| 1470 | 1477 | { |
| 1471 | 1478 | sh2->delay = sh2->pc; |
| 1472 | 1479 | sh2->pc = sh2->ea = sh2->pr; |
| 1473 | sh2 | |
| 1480 | sh2->icount--; | |
| 1474 | 1481 | } |
| 1475 | 1482 | |
| 1476 | 1483 | /* SETT */ |
| 1477 | INLINE void SETT( | |
| 1484 | INLINE void SETT(sh2_state *sh2) | |
| 1478 | 1485 | { |
| 1479 | 1486 | sh2->sr |= T; |
| 1480 | 1487 | } |
| 1481 | 1488 | |
| 1482 | 1489 | /* SHAL Rn (same as SHLL) */ |
| 1483 | INLINE void SHAL(UINT32 n) | |
| 1490 | INLINE void SHAL(sh2_state *sh2, UINT32 n) | |
| 1484 | 1491 | { |
| 1485 | 1492 | sh2->sr = (sh2->sr & ~T) | ((sh2->r[n] >> 31) & T); |
| 1486 | 1493 | sh2->r[n] <<= 1; |
| 1487 | 1494 | } |
| 1488 | 1495 | |
| 1489 | 1496 | /* SHAR Rn */ |
| 1490 | INLINE void SHAR(UINT32 n) | |
| 1497 | INLINE void SHAR(sh2_state *sh2, UINT32 n) | |
| 1491 | 1498 | { |
| 1492 | 1499 | sh2->sr = (sh2->sr & ~T) | (sh2->r[n] & T); |
| 1493 | 1500 | sh2->r[n] = (UINT32)((INT32)sh2->r[n] >> 1); |
| 1494 | 1501 | } |
| 1495 | 1502 | |
| 1496 | 1503 | /* SHLL Rn (same as SHAL) */ |
| 1497 | INLINE void SHLL(UINT32 n) | |
| 1504 | INLINE void SHLL(sh2_state *sh2, UINT32 n) | |
| 1498 | 1505 | { |
| 1499 | 1506 | sh2->sr = (sh2->sr & ~T) | ((sh2->r[n] >> 31) & T); |
| 1500 | 1507 | sh2->r[n] <<= 1; |
| 1501 | 1508 | } |
| 1502 | 1509 | |
| 1503 | 1510 | /* SHLL2 Rn */ |
| 1504 | INLINE void SHLL2(UINT32 n) | |
| 1511 | INLINE void SHLL2(sh2_state *sh2, UINT32 n) | |
| 1505 | 1512 | { |
| 1506 | 1513 | sh2->r[n] <<= 2; |
| 1507 | 1514 | } |
| 1508 | 1515 | |
| 1509 | 1516 | /* SHLL8 Rn */ |
| 1510 | INLINE void SHLL8(UINT32 n) | |
| 1517 | INLINE void SHLL8(sh2_state *sh2, UINT32 n) | |
| 1511 | 1518 | { |
| 1512 | 1519 | sh2->r[n] <<= 8; |
| 1513 | 1520 | } |
| 1514 | 1521 | |
| 1515 | 1522 | /* SHLL16 Rn */ |
| 1516 | INLINE void SHLL16(UINT32 n) | |
| 1523 | INLINE void SHLL16(sh2_state *sh2, UINT32 n) | |
| 1517 | 1524 | { |
| 1518 | 1525 | sh2->r[n] <<= 16; |
| 1519 | 1526 | } |
| 1520 | 1527 | |
| 1521 | 1528 | /* SHLR Rn */ |
| 1522 | INLINE void SHLR(UINT32 n) | |
| 1529 | INLINE void SHLR(sh2_state *sh2, UINT32 n) | |
| 1523 | 1530 | { |
| 1524 | 1531 | sh2->sr = (sh2->sr & ~T) | (sh2->r[n] & T); |
| 1525 | 1532 | sh2->r[n] >>= 1; |
| 1526 | 1533 | } |
| 1527 | 1534 | |
| 1528 | 1535 | /* SHLR2 Rn */ |
| 1529 | INLINE void SHLR2(UINT32 n) | |
| 1536 | INLINE void SHLR2(sh2_state *sh2, UINT32 n) | |
| 1530 | 1537 | { |
| 1531 | 1538 | sh2->r[n] >>= 2; |
| 1532 | 1539 | } |
| 1533 | 1540 | |
| 1534 | 1541 | /* SHLR8 Rn */ |
| 1535 | INLINE void SHLR8(UINT32 n) | |
| 1542 | INLINE void SHLR8(sh2_state *sh2, UINT32 n) | |
| 1536 | 1543 | { |
| 1537 | 1544 | sh2->r[n] >>= 8; |
| 1538 | 1545 | } |
| 1539 | 1546 | |
| 1540 | 1547 | /* SHLR16 Rn */ |
| 1541 | INLINE void SHLR16(UINT32 n) | |
| 1548 | INLINE void SHLR16(sh2_state *sh2, UINT32 n) | |
| 1542 | 1549 | { |
| 1543 | 1550 | sh2->r[n] >>= 16; |
| 1544 | 1551 | } |
| 1545 | 1552 | |
| 1546 | 1553 | /* SLEEP */ |
| 1547 | INLINE void SLEEP( | |
| 1554 | INLINE void SLEEP(sh2_state *sh2) | |
| 1548 | 1555 | { |
| 1549 | 1556 | sh2->pc -= 2; |
| 1550 | sh2 | |
| 1557 | sh2->icount -= 2; | |
| 1551 | 1558 | /* Wait_for_exception; */ |
| 1552 | 1559 | } |
| 1553 | 1560 | |
| 1554 | 1561 | /* STC SR,Rn */ |
| 1555 | INLINE void STCSR(UINT32 n) | |
| 1562 | INLINE void STCSR(sh2_state *sh2, UINT32 n) | |
| 1556 | 1563 | { |
| 1557 | 1564 | sh2->r[n] = sh2->sr; |
| 1558 | 1565 | } |
| 1559 | 1566 | |
| 1560 | 1567 | /* STC GBR,Rn */ |
| 1561 | INLINE void STCGBR(UINT32 n) | |
| 1568 | INLINE void STCGBR(sh2_state *sh2, UINT32 n) | |
| 1562 | 1569 | { |
| 1563 | 1570 | sh2->r[n] = sh2->gbr; |
| 1564 | 1571 | } |
| 1565 | 1572 | |
| 1566 | 1573 | /* STC VBR,Rn */ |
| 1567 | INLINE void STCVBR(UINT32 n) | |
| 1574 | INLINE void STCVBR(sh2_state *sh2, UINT32 n) | |
| 1568 | 1575 | { |
| 1569 | 1576 | sh2->r[n] = sh2->vbr; |
| 1570 | 1577 | } |
| 1571 | 1578 | |
| 1572 | 1579 | /* STC.L SR,@-Rn */ |
| 1573 | INLINE void STCMSR(UINT32 n) | |
| 1580 | INLINE void STCMSR(sh2_state *sh2, UINT32 n) | |
| 1574 | 1581 | { |
| 1575 | 1582 | sh2->r[n] -= 4; |
| 1576 | 1583 | sh2->ea = sh2->r[n]; |
| 1577 | WL( sh2->ea, sh2->sr ); | |
| 1578 | sh2_icount--; | |
| 1584 | WL( sh2, sh2->ea, sh2->sr ); | |
| 1585 | sh2->icount--; | |
| 1579 | 1586 | } |
| 1580 | 1587 | |
| 1581 | 1588 | /* STC.L GBR,@-Rn */ |
| 1582 | INLINE void STCMGBR(UINT32 n) | |
| 1589 | INLINE void STCMGBR(sh2_state *sh2, UINT32 n) | |
| 1583 | 1590 | { |
| 1584 | 1591 | sh2->r[n] -= 4; |
| 1585 | 1592 | sh2->ea = sh2->r[n]; |
| 1586 | WL( sh2->ea, sh2->gbr ); | |
| 1587 | sh2_icount--; | |
| 1593 | WL( sh2, sh2->ea, sh2->gbr ); | |
| 1594 | sh2->icount--; | |
| 1588 | 1595 | } |
| 1589 | 1596 | |
| 1590 | 1597 | /* STC.L VBR,@-Rn */ |
| 1591 | INLINE void STCMVBR(UINT32 n) | |
| 1598 | INLINE void STCMVBR(sh2_state *sh2, UINT32 n) | |
| 1592 | 1599 | { |
| 1593 | 1600 | sh2->r[n] -= 4; |
| 1594 | 1601 | sh2->ea = sh2->r[n]; |
| 1595 | WL( sh2->ea, sh2->vbr ); | |
| 1596 | sh2_icount--; | |
| 1602 | WL( sh2, sh2->ea, sh2->vbr ); | |
| 1603 | sh2->icount--; | |
| 1597 | 1604 | } |
| 1598 | 1605 | |
| 1599 | 1606 | /* STS MACH,Rn */ |
| 1600 | INLINE void STSMACH(UINT32 n) | |
| 1607 | INLINE void STSMACH(sh2_state *sh2, UINT32 n) | |
| 1601 | 1608 | { |
| 1602 | 1609 | sh2->r[n] = sh2->mach; |
| 1603 | 1610 | } |
| 1604 | 1611 | |
| 1605 | 1612 | /* STS MACL,Rn */ |
| 1606 | INLINE void STSMACL(UINT32 n) | |
| 1613 | INLINE void STSMACL(sh2_state *sh2, UINT32 n) | |
| 1607 | 1614 | { |
| 1608 | 1615 | sh2->r[n] = sh2->macl; |
| 1609 | 1616 | } |
| 1610 | 1617 | |
| 1611 | 1618 | /* STS PR,Rn */ |
| 1612 | INLINE void STSPR(UINT32 n) | |
| 1619 | INLINE void STSPR(sh2_state *sh2, UINT32 n) | |
| 1613 | 1620 | { |
| 1614 | 1621 | sh2->r[n] = sh2->pr; |
| 1615 | 1622 | } |
| 1616 | 1623 | |
| 1617 | 1624 | /* STS.L MACH,@-Rn */ |
| 1618 | INLINE void STSMMACH(UINT32 n) | |
| 1625 | INLINE void STSMMACH(sh2_state *sh2, UINT32 n) | |
| 1619 | 1626 | { |
| 1620 | 1627 | sh2->r[n] -= 4; |
| 1621 | 1628 | sh2->ea = sh2->r[n]; |
| 1622 | WL( sh2->ea, sh2->mach ); | |
| 1629 | WL( sh2, sh2->ea, sh2->mach ); | |
| 1623 | 1630 | } |
| 1624 | 1631 | |
| 1625 | 1632 | /* STS.L MACL,@-Rn */ |
| 1626 | INLINE void STSMMACL(UINT32 n) | |
| 1633 | INLINE void STSMMACL(sh2_state *sh2, UINT32 n) | |
| 1627 | 1634 | { |
| 1628 | 1635 | sh2->r[n] -= 4; |
| 1629 | 1636 | sh2->ea = sh2->r[n]; |
| 1630 | WL( sh2->ea, sh2->macl ); | |
| 1637 | WL( sh2, sh2->ea, sh2->macl ); | |
| 1631 | 1638 | } |
| 1632 | 1639 | |
| 1633 | 1640 | /* STS.L PR,@-Rn */ |
| 1634 | INLINE void STSMPR(UINT32 n) | |
| 1641 | INLINE void STSMPR(sh2_state *sh2, UINT32 n) | |
| 1635 | 1642 | { |
| 1636 | 1643 | sh2->r[n] -= 4; |
| 1637 | 1644 | sh2->ea = sh2->r[n]; |
| 1638 | WL( sh2->ea, sh2->pr ); | |
| 1645 | WL( sh2, sh2->ea, sh2->pr ); | |
| 1639 | 1646 | } |
| 1640 | 1647 | |
| 1641 | 1648 | /* SUB Rm,Rn */ |
| 1642 | INLINE void SUB(UINT32 m, UINT32 n) | |
| 1649 | INLINE void SUB(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1643 | 1650 | { |
| 1644 | 1651 | sh2->r[n] -= sh2->r[m]; |
| 1645 | 1652 | } |
| 1646 | 1653 | |
| 1647 | 1654 | /* SUBC Rm,Rn */ |
| 1648 | INLINE void SUBC(UINT32 m, UINT32 n) | |
| 1655 | INLINE void SUBC(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1649 | 1656 | { |
| 1650 | 1657 | UINT32 tmp0, tmp1; |
| 1651 | 1658 | |
| r8581 | r8582 | |
| 1661 | 1668 | } |
| 1662 | 1669 | |
| 1663 | 1670 | /* SUBV Rm,Rn */ |
| 1664 | INLINE void SUBV(UINT32 m, UINT32 n) | |
| 1671 | INLINE void SUBV(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1665 | 1672 | { |
| 1666 | 1673 | INT32 dest, src, ans; |
| 1667 | 1674 | |
| r8581 | r8582 | |
| 1692 | 1699 | } |
| 1693 | 1700 | |
| 1694 | 1701 | /* SWAP.B Rm,Rn */ |
| 1695 | INLINE void SWAPB(UINT32 m, UINT32 n) | |
| 1702 | INLINE void SWAPB(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1696 | 1703 | { |
| 1697 | 1704 | UINT32 temp0, temp1; |
| 1698 | 1705 | |
| r8581 | r8582 | |
| 1703 | 1710 | } |
| 1704 | 1711 | |
| 1705 | 1712 | /* SWAP.W Rm,Rn */ |
| 1706 | INLINE void SWAPW(UINT32 m, UINT32 n) | |
| 1713 | INLINE void SWAPW(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1707 | 1714 | { |
| 1708 | 1715 | UINT32 temp; |
| 1709 | 1716 | |
| r8581 | r8582 | |
| 1712 | 1719 | } |
| 1713 | 1720 | |
| 1714 | 1721 | /* TAS.B @Rn */ |
| 1715 | INLINE void TAS(UINT32 n) | |
| 1722 | INLINE void TAS(sh2_state *sh2, UINT32 n) | |
| 1716 | 1723 | { |
| 1717 | 1724 | UINT32 temp; |
| 1718 | 1725 | sh2->ea = sh2->r[n]; |
| 1719 | 1726 | /* Bus Lock enable */ |
| 1720 | temp = RB( sh2->ea ); | |
| 1727 | temp = RB( sh2, sh2->ea ); | |
| 1721 | 1728 | if (temp == 0) |
| 1722 | 1729 | sh2->sr |= T; |
| 1723 | 1730 | else |
| 1724 | 1731 | sh2->sr &= ~T; |
| 1725 | 1732 | temp |= 0x80; |
| 1726 | 1733 | /* Bus Lock disable */ |
| 1727 | WB( sh2->ea, temp ); | |
| 1728 | sh2_icount -= 3; | |
| 1734 | WB( sh2, sh2->ea, temp ); | |
| 1735 | sh2->icount -= 3; | |
| 1729 | 1736 | } |
| 1730 | 1737 | |
| 1731 | 1738 | /* TRAPA #imm */ |
| 1732 | INLINE void TRAPA(UINT32 i) | |
| 1739 | INLINE void TRAPA(sh2_state *sh2, UINT32 i) | |
| 1733 | 1740 | { |
| 1734 | 1741 | UINT32 imm = i & 0xff; |
| 1735 | 1742 | |
| 1736 | 1743 | sh2->ea = sh2->vbr + imm * 4; |
| 1737 | 1744 | |
| 1738 | 1745 | sh2->r[15] -= 4; |
| 1739 | WL( sh2->r[15], sh2->sr ); | |
| 1746 | WL( sh2, sh2->r[15], sh2->sr ); | |
| 1740 | 1747 | sh2->r[15] -= 4; |
| 1741 | WL( sh2->r[15], sh2->pc ); | |
| 1748 | WL( sh2, sh2->r[15], sh2->pc ); | |
| 1742 | 1749 | |
| 1743 | sh2->pc = RL( sh2->ea ); | |
| 1750 | sh2->pc = RL( sh2, sh2->ea ); | |
| 1744 | 1751 | |
| 1745 | sh2 | |
| 1752 | sh2->icount -= 7; | |
| 1746 | 1753 | } |
| 1747 | 1754 | |
| 1748 | 1755 | /* TST Rm,Rn */ |
| 1749 | INLINE void TST(UINT32 m, UINT32 n) | |
| 1756 | INLINE void TST(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1750 | 1757 | { |
| 1751 | 1758 | if ((sh2->r[n] & sh2->r[m]) == 0) |
| 1752 | 1759 | sh2->sr |= T; |
| r8581 | r8582 | |
| 1755 | 1762 | } |
| 1756 | 1763 | |
| 1757 | 1764 | /* TST #imm,R0 */ |
| 1758 | INLINE void TSTI(UINT32 i) | |
| 1765 | INLINE void TSTI(sh2_state *sh2, UINT32 i) | |
| 1759 | 1766 | { |
| 1760 | 1767 | UINT32 imm = i & 0xff; |
| 1761 | 1768 | |
| r8581 | r8582 | |
| 1766 | 1773 | } |
| 1767 | 1774 | |
| 1768 | 1775 | /* TST.B #imm,@(R0,GBR) */ |
| 1769 | INLINE void TSTM(UINT32 i) | |
| 1776 | INLINE void TSTM(sh2_state *sh2, UINT32 i) | |
| 1770 | 1777 | { |
| 1771 | 1778 | UINT32 imm = i & 0xff; |
| 1772 | 1779 | |
| 1773 | 1780 | sh2->ea = sh2->gbr + sh2->r[0]; |
| 1774 | if ((imm & RB( sh2->ea )) == 0) | |
| 1781 | if ((imm & RB( sh2, sh2->ea )) == 0) | |
| 1775 | 1782 | sh2->sr |= T; |
| 1776 | 1783 | else |
| 1777 | 1784 | sh2->sr &= ~T; |
| 1778 | sh2 | |
| 1785 | sh2->icount -= 2; | |
| 1779 | 1786 | } |
| 1780 | 1787 | |
| 1781 | 1788 | /* XOR Rm,Rn */ |
| 1782 | INLINE void XOR(UINT32 m, UINT32 n) | |
| 1789 | INLINE void XOR(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1783 | 1790 | { |
| 1784 | 1791 | sh2->r[n] ^= sh2->r[m]; |
| 1785 | 1792 | } |
| 1786 | 1793 | |
| 1787 | 1794 | /* XOR #imm,R0 */ |
| 1788 | INLINE void XORI(UINT32 i) | |
| 1795 | INLINE void XORI(sh2_state *sh2, UINT32 i) | |
| 1789 | 1796 | { |
| 1790 | 1797 | UINT32 imm = i & 0xff; |
| 1791 | 1798 | sh2->r[0] ^= imm; |
| 1792 | 1799 | } |
| 1793 | 1800 | |
| 1794 | 1801 | /* XOR.B #imm,@(R0,GBR) */ |
| 1795 | INLINE void XORM(UINT32 i) | |
| 1802 | INLINE void XORM(sh2_state *sh2, UINT32 i) | |
| 1796 | 1803 | { |
| 1797 | 1804 | UINT32 imm = i & 0xff; |
| 1798 | 1805 | UINT32 temp; |
| 1799 | 1806 | |
| 1800 | 1807 | sh2->ea = sh2->gbr + sh2->r[0]; |
| 1801 | temp = RB( sh2->ea ); | |
| 1808 | temp = RB( sh2, sh2->ea ); | |
| 1802 | 1809 | temp ^= imm; |
| 1803 | WB( sh2->ea, temp ); | |
| 1804 | sh2_icount -= 2; | |
| 1810 | WB( sh2, sh2->ea, temp ); | |
| 1811 | sh2->icount -= 2; | |
| 1805 | 1812 | } |
| 1806 | 1813 | |
| 1807 | 1814 | /* XTRCT Rm,Rn */ |
| 1808 | INLINE void XTRCT(UINT32 m, UINT32 n) | |
| 1815 | INLINE void XTRCT(sh2_state *sh2, UINT32 m, UINT32 n) | |
| 1809 | 1816 | { |
| 1810 | 1817 | UINT32 temp; |
| 1811 | 1818 | |
| r8581 | r8582 | |
| 1818 | 1825 | * OPCODE DISPATCHERS |
| 1819 | 1826 | *****************************************************************************/ |
| 1820 | 1827 | |
| 1821 | INLINE void op0000(UINT16 opcode) | |
| 1828 | INLINE void op0000(sh2_state *sh2, UINT16 opcode) | |
| 1822 | 1829 | { |
| 1823 | 1830 | switch (opcode & 0x3F) |
| 1824 | 1831 | { |
| 1825 | 1832 | case 0x00: NOP(); break; |
| 1826 | 1833 | case 0x01: NOP(); break; |
| 1827 | case 0x02: STCSR(Rn); break; | |
| 1828 | case 0x03: BSRF(Rn); break; | |
| 1829 | case 0x04: MOVBS0(Rm, Rn); break; | |
| 1830 | case 0x05: MOVWS0(Rm, Rn); break; | |
| 1831 | case 0x06: MOVLS0(Rm, Rn); break; | |
| 1832 | case 0x07: MULL(Rm, Rn); break; | |
| 1833 | case 0x08: CLRT(); break; | |
| 1834 | case 0x02: STCSR(sh2, Rn); break; | |
| 1835 | case 0x03: BSRF(sh2, Rn); break; | |
| 1836 | case 0x04: MOVBS0(sh2, Rm, Rn); break; | |
| 1837 | case 0x05: MOVWS0(sh2, Rm, Rn); break; | |
| 1838 | case 0x06: MOVLS0(sh2, Rm, Rn); break; | |
| 1839 | case 0x07: MULL(sh2, Rm, Rn); break; | |
| 1840 | case 0x08: CLRT(sh2); break; | |
| 1834 | 1841 | case 0x09: NOP(); break; |
| 1835 | case 0x0a: STSMACH(Rn); break; | |
| 1836 | case 0x0b: RTS(); break; | |
| 1837 | case 0x0c: MOVBL0(Rm, Rn); break; | |
| 1838 | case 0x0d: MOVWL0(Rm, Rn); break; | |
| 1839 | case 0x0e: MOVLL0(Rm, Rn); break; | |
| 1840 | case 0x0f: MAC_L(Rm, Rn); break; | |
| 1842 | case 0x0a: STSMACH(sh2, Rn); break; | |
| 1843 | case 0x0b: RTS(sh2); break; | |
| 1844 | case 0x0c: MOVBL0(sh2, Rm, Rn); break; | |
| 1845 | case 0x0d: MOVWL0(sh2, Rm, Rn); break; | |
| 1846 | case 0x0e: MOVLL0(sh2, Rm, Rn); break; | |
| 1847 | case 0x0f: MAC_L(sh2, Rm, Rn); break; | |
| 1841 | 1848 | |
| 1842 | 1849 | case 0x10: NOP(); break; |
| 1843 | 1850 | case 0x11: NOP(); break; |
| 1844 | case 0x12: STCGBR(Rn); break; | |
| 1851 | case 0x12: STCGBR(sh2, Rn); break; | |
| 1845 | 1852 | case 0x13: NOP(); break; |
| 1846 | case 0x14: MOVBS0(Rm, Rn); break; | |
| 1847 | case 0x15: MOVWS0(Rm, Rn); break; | |
| 1848 | case 0x16: MOVLS0(Rm, Rn); break; | |
| 1849 | case 0x17: MULL(Rm, Rn); break; | |
| 1850 | case 0x18: SETT(); break; | |
| 1851 | case 0x19: DIV0U(); break; | |
| 1852 | case 0x1a: STSMACL(Rn); break; | |
| 1853 | case 0x1b: SLEEP(); break; | |
| 1854 | case 0x1c: MOVBL0(Rm, Rn); break; | |
| 1855 | case 0x1d: MOVWL0(Rm, Rn); break; | |
| 1856 | case 0x1e: MOVLL0(Rm, Rn); break; | |
| 1857 | case 0x1f: MAC_L(Rm, Rn); break; | |
| 1853 | case 0x14: MOVBS0(sh2, Rm, Rn); break; | |
| 1854 | case 0x15: MOVWS0(sh2, Rm, Rn); break; | |
| 1855 | case 0x16: MOVLS0(sh2, Rm, Rn); break; | |
| 1856 | case 0x17: MULL(sh2, Rm, Rn); break; | |
| 1857 | case 0x18: SETT(sh2); break; | |
| 1858 | case 0x19: DIV0U(sh2); break; | |
| 1859 | case 0x1a: STSMACL(sh2, Rn); break; | |
| 1860 | case 0x1b: SLEEP(sh2); break; | |
| 1861 | case 0x1c: MOVBL0(sh2, Rm, Rn); break; | |
| 1862 | case 0x1d: MOVWL0(sh2, Rm, Rn); break; | |
| 1863 | case 0x1e: MOVLL0(sh2, Rm, Rn); break; | |
| 1864 | case 0x1f: MAC_L(sh2, Rm, Rn); break; | |
| 1858 | 1865 | |
| 1859 | 1866 | case 0x20: NOP(); break; |
| 1860 | 1867 | case 0x21: NOP(); break; |
| 1861 | case 0x22: STCVBR(Rn); break; | |
| 1862 | case 0x23: BRAF(Rn); break; | |
| 1863 | case 0x24: MOVBS0(Rm, Rn); break; | |
| 1864 | case 0x25: MOVWS0(Rm, Rn); break; | |
| 1865 | case 0x26: MOVLS0(Rm, Rn); break; | |
| 1866 | case 0x27: MULL(Rm, Rn); break; | |
| 1867 | case 0x28: CLRMAC(); break; | |
| 1868 | case 0x29: MOVT(Rn); break; | |
| 1869 | case 0x2a: STSPR(Rn); break; | |
| 1870 | case 0x2b: RTE(); break; | |
| 1871 | case 0x2c: MOVBL0(Rm, Rn); break; | |
| 1872 | case 0x2d: MOVWL0(Rm, Rn); break; | |
| 1873 | case 0x2e: MOVLL0(Rm, Rn); break; | |
| 1874 | case 0x2f: MAC_L(Rm, Rn); break; | |
| 1868 | case 0x22: STCVBR(sh2, Rn); break; | |
| 1869 | case 0x23: BRAF(sh2, Rn); break; | |
| 1870 | case 0x24: MOVBS0(sh2, Rm, Rn); break; | |
| 1871 | case 0x25: MOVWS0(sh2, Rm, Rn); break; | |
| 1872 | case 0x26: MOVLS0(sh2, Rm, Rn); break; | |
| 1873 | case 0x27: MULL(sh2, Rm, Rn); break; | |
| 1874 | case 0x28: CLRMAC(sh2); break; | |
| 1875 | case 0x29: MOVT(sh2, Rn); break; | |
| 1876 | case 0x2a: STSPR(sh2, Rn); break; | |
| 1877 | case 0x2b: RTE(sh2); break; | |
| 1878 | case 0x2c: MOVBL0(sh2, Rm, Rn); break; | |
| 1879 | case 0x2d: MOVWL0(sh2, Rm, Rn); break; | |
| 1880 | case 0x2e: MOVLL0(sh2, Rm, Rn); break; | |
| 1881 | case 0x2f: MAC_L(sh2, Rm, Rn); break; | |
| 1875 | 1882 | |
| 1876 | 1883 | case 0x30: NOP(); break; |
| 1877 | 1884 | case 0x31: NOP(); break; |
| 1878 | 1885 | case 0x32: NOP(); break; |
| 1879 | 1886 | case 0x33: NOP(); break; |
| 1880 | case 0x34: MOVBS0(Rm, Rn); break; | |
| 1881 | case 0x35: MOVWS0(Rm, Rn); break; | |
| 1882 | case 0x36: MOVLS0(Rm, Rn); break; | |
| 1883 | case 0x37: MULL(Rm, Rn); break; | |
| 1887 | case 0x34: MOVBS0(sh2, Rm, Rn); break; | |
| 1888 | case 0x35: MOVWS0(sh2, Rm, Rn); break; | |
| 1889 | case 0x36: MOVLS0(sh2, Rm, Rn); break; | |
| 1890 | case 0x37: MULL(sh2, Rm, Rn); break; | |
| 1884 | 1891 | case 0x38: NOP(); break; |
| 1885 | 1892 | case 0x39: NOP(); break; |
| 1886 | case 0x3c: MOVBL0(Rm, Rn); break; | |
| 1887 | case 0x3d: MOVWL0(Rm, Rn); break; | |
| 1888 | case 0x3e: MOVLL0(Rm, Rn); break; | |
| 1889 | case 0x3f: MAC_L(Rm, Rn); break; | |
| 1893 | case 0x3c: MOVBL0(sh2, Rm, Rn); break; | |
| 1894 | case 0x3d: MOVWL0(sh2, Rm, Rn); break; | |
| 1895 | case 0x3e: MOVLL0(sh2, Rm, Rn); break; | |
| 1896 | case 0x3f: MAC_L(sh2, Rm, Rn); break; | |
| 1890 | 1897 | case 0x3a: NOP(); break; |
| 1891 | 1898 | case 0x3b: NOP(); break; |
| 1892 | 1899 | |
| r8581 | r8582 | |
| 1895 | 1902 | } |
| 1896 | 1903 | } |
| 1897 | 1904 | |
| 1898 | INLINE void op0001(UINT16 opcode) | |
| 1905 | INLINE void op0001(sh2_state *sh2, UINT16 opcode) | |
| 1899 | 1906 | { |
| 1900 | MOVLS4(Rm, opcode & 0x0f, Rn); | |
| 1907 | MOVLS4(sh2, Rm, opcode & 0x0f, Rn); | |
| 1901 | 1908 | } |
| 1902 | 1909 | |
| 1903 | INLINE void op0010(UINT16 opcode) | |
| 1910 | INLINE void op0010(sh2_state *sh2, UINT16 opcode) | |
| 1904 | 1911 | { |
| 1905 | 1912 | switch (opcode & 15) |
| 1906 | 1913 | { |
| 1907 | case 0: MOVBS(Rm, Rn); break; | |
| 1908 | case 1: MOVWS(Rm, Rn); break; | |
| 1909 | case 2: MOVLS(Rm, Rn); break; | |
| 1914 | case 0: MOVBS(sh2, Rm, Rn); break; | |
| 1915 | case 1: MOVWS(sh2, Rm, Rn); break; | |
| 1916 | case 2: MOVLS(sh2, Rm, Rn); break; | |
| 1910 | 1917 | case 3: NOP(); break; |
| 1911 | case 4: MOVBM(Rm, Rn); break; | |
| 1912 | case 5: MOVWM(Rm, Rn); break; | |
| 1913 | case 6: MOVLM(Rm, Rn); break; | |
| 1914 | case 7: DIV0S(Rm, Rn); break; | |
| 1915 | case 8: TST(Rm, Rn); break; | |
| 1916 | case 9: AND(Rm, Rn); break; | |
| 1917 | case 10: XOR(Rm, Rn); break; | |
| 1918 | case 11: OR(Rm, Rn); break; | |
| 1919 | case 12: CMPSTR(Rm, Rn); break; | |
| 1920 | case 13: XTRCT(Rm, Rn); break; | |
| 1921 | case 14: MULU(Rm, Rn); break; | |
| 1922 | case 15: MULS(Rm, Rn); break; | |
| 1918 | case 4: MOVBM(sh2, Rm, Rn); break; | |
| 1919 | case 5: MOVWM(sh2, Rm, Rn); break; | |
| 1920 | case 6: MOVLM(sh2, Rm, Rn); break; | |
| 1921 | case 7: DIV0S(sh2, Rm, Rn); break; | |
| 1922 | case 8: TST(sh2, Rm, Rn); break; | |
| 1923 | case 9: AND(sh2, Rm, Rn); break; | |
| 1924 | case 10: XOR(sh2, Rm, Rn); break; | |
| 1925 | case 11: OR(sh2, Rm, Rn); break; | |
| 1926 | case 12: CMPSTR(sh2, Rm, Rn); break; | |
| 1927 | case 13: XTRCT(sh2, Rm, Rn); break; | |
| 1928 | case 14: MULU(sh2, Rm, Rn); break; | |
| 1929 | case 15: MULS(sh2, Rm, Rn); break; | |
| 1923 | 1930 | } |
| 1924 | 1931 | } |
| 1925 | 1932 | |
| 1926 | INLINE void op0011(UINT16 opcode) | |
| 1933 | INLINE void op0011(sh2_state *sh2, UINT16 opcode) | |
| 1927 | 1934 | { |
| 1928 | 1935 | switch (opcode & 15) |
| 1929 | 1936 | { |
| 1930 | case 0: CMPEQ(Rm, Rn); | |
| 1937 | case 0: CMPEQ(sh2, Rm, Rn); | |
| 1931 | 1938 | case 1: NOP(); break; |
| 1932 | case 2: CMPHS(Rm, Rn); break; | |
| 1933 | case 3: CMPGE(Rm, Rn); break; | |
| 1934 | case 4: DIV1(Rm, Rn); break; | |
| 1935 | case 5: DMULU(Rm, Rn); break; | |
| 1936 | case 6: CMPHI(Rm, Rn); break; | |
| 1937 | case 7: CMPGT(Rm, Rn); break; | |
| 1938 | case 8: SUB(Rm, Rn); break; | |
| 1939 | case 2: CMPHS(sh2, Rm, Rn); break; | |
| 1940 | case 3: CMPGE(sh2, Rm, Rn); break; | |
| 1941 | case 4: DIV1(sh2, Rm, Rn); break; | |
| 1942 | case 5: DMULU(sh2, Rm, Rn); break; | |
| 1943 | case 6: CMPHI(sh2, Rm, Rn); break; | |
| 1944 | case 7: CMPGT(sh2, Rm, Rn); break; | |
| 1945 | case 8: SUB(sh2, Rm, Rn); break; | |
| 1939 | 1946 | case 9: NOP(); break; |
| 1940 | case 10: SUBC(Rm, Rn); break; | |
| 1941 | case 11: SUBV(Rm, Rn); break; | |
| 1942 | case 12: ADD(Rm, Rn); break; | |
| 1943 | case 13: DMULS(Rm, Rn); break; | |
| 1944 | case 14: ADDC(Rm, Rn); break; | |
| 1945 | case 15: ADDV(Rm, Rn); break; | |
| 1947 | case 10: SUBC(sh2, Rm, Rn); break; | |
| 1948 | case 11: SUBV(sh2, Rm, Rn); break; | |
| 1949 | case 12: ADD(sh2, Rm, Rn); break; | |
| 1950 | case 13: DMULS(sh2, Rm, Rn); break; | |
| 1951 | case 14: ADDC(sh2, Rm, Rn); break; | |
| 1952 | case 15: ADDV(sh2, Rm, Rn); break; | |
| 1946 | 1953 | } |
| 1947 | 1954 | } |
| 1948 | 1955 | |
| 1949 | INLINE void op0100(UINT16 opcode) | |
| 1956 | INLINE void op0100(sh2_state *sh2, UINT16 opcode) | |
| 1950 | 1957 | { |
| 1951 | 1958 | switch (opcode & 0x3F) |
| 1952 | 1959 | { |
| 1953 | case 0x00: SHLL(Rn); break; | |
| 1954 | case 0x01: SHLR(Rn); break; | |
| 1955 | case 0x02: STSMMACH(Rn); break; | |
| 1956 | case 0x03: STCMSR(Rn); break; | |
| 1957 | case 0x04: ROTL(Rn); break; | |
| 1958 | case 0x05: ROTR(Rn); break; | |
| 1959 | case 0x06: LDSMMACH(Rn); break; | |
| 1960 | case 0x07: LDCMSR(Rn); break; | |
| 1961 | case 0x08: SHLL2(Rn); break; | |
| 1962 | case 0x09: SHLR2(Rn); break; | |
| 1963 | case 0x0a: LDSMACH(Rn); break; | |
| 1964 | case 0x0b: JSR(Rn); break; | |
| 1960 | case 0x00: SHLL(sh2, Rn); break; | |
| 1961 | case 0x01: SHLR(sh2, Rn); break; | |
| 1962 | case 0x02: STSMMACH(sh2, Rn); break; | |
| 1963 | case 0x03: STCMSR(sh2, Rn); break; | |
| 1964 | case 0x04: ROTL(sh2, Rn); break; | |
| 1965 | case 0x05: ROTR(sh2, Rn); break; | |
| 1966 | case 0x06: LDSMMACH(sh2, Rn); break; | |
| 1967 | case 0x07: LDCMSR(sh2, Rn); break; | |
| 1968 | case 0x08: SHLL2(sh2, Rn); break; | |
| 1969 | case 0x09: SHLR2(sh2, Rn); break; | |
| 1970 | case 0x0a: LDSMACH(sh2, Rn); break; | |
| 1971 | case 0x0b: JSR(sh2, Rn); break; | |
| 1965 | 1972 | case 0x0c: NOP(); break; |
| 1966 | 1973 | case 0x0d: NOP(); break; |
| 1967 | case 0x0e: LDCSR(Rn); break; | |
| 1968 | case 0x0f: MAC_W(Rm, Rn); break; | |
| 1974 | case 0x0e: LDCSR(sh2, Rn); break; | |
| 1975 | case 0x0f: MAC_W(sh2, Rm, Rn); break; | |
| 1969 | 1976 | |
| 1970 | case 0x10: DT(Rn); break; | |
| 1971 | case 0x11: CMPPZ(Rn); break; | |
| 1972 | case 0x12: STSMMACL(Rn); break; | |
| 1973 | case 0x13: STCMGBR(Rn); break; | |
| 1977 | case 0x10: DT(sh2, Rn); break; | |
| 1978 | case 0x11: CMPPZ(sh2, Rn); break; | |
| 1979 | case 0x12: STSMMACL(sh2, Rn); break; | |
| 1980 | case 0x13: STCMGBR(sh2, Rn); break; | |
| 1974 | 1981 | case 0x14: NOP(); break; |
| 1975 | case 0x15: CMPPL(Rn); break; | |
| 1976 | case 0x16: LDSMMACL(Rn); break; | |
| 1977 | case 0x17: LDCMGBR(Rn); break; | |
| 1978 | case 0x18: SHLL8(Rn); break; | |
| 1979 | case 0x19: SHLR8(Rn); break; | |
| 1980 | case 0x1a: LDSMACL(Rn); break; | |
| 1981 | case 0x1b: TAS(Rn); break; | |
| 1982 | case 0x15: CMPPL(sh2, Rn); break; | |
| 1983 | case 0x16: LDSMMACL(sh2, Rn); break; | |
| 1984 | case 0x17: LDCMGBR(sh2, Rn); break; | |
| 1985 | case 0x18: SHLL8(sh2, Rn); break; | |
| 1986 | case 0x19: SHLR8(sh2, Rn); break; | |
| 1987 | case 0x1a: LDSMACL(sh2, Rn); break; | |
| 1988 | case 0x1b: TAS(sh2, Rn); break; | |
| 1982 | 1989 | case 0x1c: NOP(); break; |
| 1983 | 1990 | case 0x1d: NOP(); break; |
| 1984 | case 0x1e: LDCGBR(Rn); break; | |
| 1985 | case 0x1f: MAC_W(Rm, Rn); break; | |
| 1991 | case 0x1e: LDCGBR(sh2, Rn); break; | |
| 1992 | case 0x1f: MAC_W(sh2, Rm, Rn); break; | |
| 1986 | 1993 | |
| 1987 | case 0x20: SHAL(Rn); break; | |
| 1988 | case 0x21: SHAR(Rn); break; | |
| 1989 | case 0x22: STSMPR(Rn); break; | |
| 1990 | case 0x23: STCMVBR(Rn); break; | |
| 1991 | case 0x24: ROTCL(Rn); break; | |
| 1992 | case 0x25: ROTCR(Rn); break; | |
| 1993 | case 0x26: LDSMPR(Rn); break; | |
| 1994 | case 0x27: LDCMVBR(Rn); break; | |
| 1995 | case 0x28: SHLL16(Rn); break; | |
| 1996 | case 0x29: SHLR16(Rn); break; | |
| 1997 | case 0x2a: LDSPR(Rn); break; | |
| 1998 | case 0x2b: JMP(Rn); break; | |
| 1994 | case 0x20: SHAL(sh2, Rn); break; | |
| 1995 | case 0x21: SHAR(sh2, Rn); break; | |
| 1996 | case 0x22: STSMPR(sh2, Rn); break; | |
| 1997 | case 0x23: STCMVBR(sh2, Rn); break; | |
| 1998 | case 0x24: ROTCL(sh2, Rn); break; | |
| 1999 | case 0x25: ROTCR(sh2, Rn); break; | |
| 2000 | case 0x26: LDSMPR(sh2, Rn); break; | |
| 2001 | case 0x27: LDCMVBR(sh2, Rn); break; | |
| 2002 | case 0x28: SHLL16(sh2, Rn); break; | |
| 2003 | case 0x29: SHLR16(sh2, Rn); break; | |
| 2004 | case 0x2a: LDSPR(sh2, Rn); break; | |
| 2005 | case 0x2b: JMP(sh2, Rn); break; | |
| 1999 | 2006 | case 0x2c: NOP(); break; |
| 2000 | 2007 | case 0x2d: NOP(); break; |
| 2001 | case 0x2e: LDCVBR(Rn); break; | |
| 2002 | case 0x2f: MAC_W(Rm, Rn); break; | |
| 2008 | case 0x2e: LDCVBR(sh2, Rn); break; | |
| 2009 | case 0x2f: MAC_W(sh2, Rm, Rn); break; | |
| 2003 | 2010 | |
| 2004 | 2011 | case 0x30: NOP(); break; |
| 2005 | 2012 | case 0x31: NOP(); break; |
| r8581 | r8582 | |
| 2016 | 2023 | case 0x3c: NOP(); break; |
| 2017 | 2024 | case 0x3d: NOP(); break; |
| 2018 | 2025 | case 0x3e: NOP(); break; |
| 2019 | case 0x3f: MAC_W(Rm, Rn); break; | |
| 2026 | case 0x3f: MAC_W(sh2, Rm, Rn); break; | |
| 2020 | 2027 | |
| 2021 | 2028 | } |
| 2022 | 2029 | } |
| 2023 | 2030 | |
| 2024 | INLINE void op0101(UINT16 opcode) | |
| 2031 | INLINE void op0101(sh2_state *sh2, UINT16 opcode) | |
| 2025 | 2032 | { |
| 2026 | MOVLL4(Rm, opcode & 0x0f, Rn); | |
| 2033 | MOVLL4(sh2, Rm, opcode & 0x0f, Rn); | |
| 2027 | 2034 | } |
| 2028 | 2035 | |
| 2029 | INLINE void op0110(UINT16 opcode) | |
| 2036 | INLINE void op0110(sh2_state *sh2, UINT16 opcode) | |
| 2030 | 2037 | { |
| 2031 | 2038 | switch (opcode & 15) |
| 2032 | 2039 | { |
| 2033 | case 0: MOVBL(Rm, Rn); break; | |
| 2034 | case 1: MOVWL(Rm, Rn); break; | |
| 2035 | case 2: MOVLL(Rm, Rn); break; | |
| 2036 | case 3: MOV(Rm, Rn); break; | |
| 2037 | case 4: MOVBP(Rm, Rn); break; | |
| 2038 | case 5: MOVWP(Rm, Rn); break; | |
| 2039 | case 6: MOVLP(Rm, Rn); break; | |
| 2040 | case 7: NOT(Rm, Rn); break; | |
| 2041 | case 8: SWAPB(Rm, Rn); break; | |
| 2042 | case 9: SWAPW(Rm, Rn); break; | |
| 2043 | case 10: NEGC(Rm, Rn); break; | |
| 2044 | case 11: NEG(Rm, Rn); break; | |
| 2045 | case 12: EXTUB(Rm, Rn); break; | |
| 2046 | case 13: EXTUW(Rm, Rn); break; | |
| 2047 | case 14: EXTSB(Rm, Rn); break; | |
| 2048 | case 15: EXTSW(Rm, Rn); break; | |
| 2040 | case 0: MOVBL(sh2, Rm, Rn); break; | |
| 2041 | case 1: MOVWL(sh2, Rm, Rn); break; | |
| 2042 | case 2: MOVLL(sh2, Rm, Rn); break; | |
| 2043 | case 3: MOV(sh2, Rm, Rn); break; | |
| 2044 | case 4: MOVBP(sh2, Rm, Rn); break; | |
| 2045 | case 5: MOVWP(sh2, Rm, Rn); break; | |
| 2046 | case 6: MOVLP(sh2, Rm, Rn); break; | |
| 2047 | case 7: NOT(sh2, Rm, Rn); break; | |
| 2048 | case 8: SWAPB(sh2, Rm, Rn); break; | |
| 2049 | case 9: SWAPW(sh2, Rm, Rn); break; | |
| 2050 | case 10: NEGC(sh2, Rm, Rn); break; | |
| 2051 | case 11: NEG(sh2, Rm, Rn); break; | |
| 2052 | case 12: EXTUB(sh2, Rm, Rn); break; | |
| 2053 | case 13: EXTUW(sh2, Rm, Rn); break; | |
| 2054 | case 14: EXTSB(sh2, Rm, Rn); break; | |
| 2055 | case 15: EXTSW(sh2, Rm, Rn); break; | |
| 2049 | 2056 | } |
| 2050 | 2057 | } |
| 2051 | 2058 | |
| 2052 | INLINE void op0111(UINT16 opcode) | |
| 2059 | INLINE void op0111(sh2_state *sh2, UINT16 opcode) | |
| 2053 | 2060 | { |
| 2054 | ADDI(opcode & 0xff, Rn); | |
| 2061 | ADDI(sh2, opcode & 0xff, Rn); | |
| 2055 | 2062 | } |
| 2056 | 2063 | |
| 2057 | INLINE void op1000(UINT16 opcode) | |
| 2064 | INLINE void op1000(sh2_state *sh2, UINT16 opcode) | |
| 2058 | 2065 | { |
| 2059 | 2066 | switch ( opcode & (15<<8) ) |
| 2060 | 2067 | { |
| 2061 | case 0 << 8: MOVBS4(opcode & 0x0f, Rm); break; | |
| 2062 | case 1 << 8: MOVWS4(opcode & 0x0f, Rm); break; | |
| 2068 | case 0 << 8: MOVBS4(sh2, opcode & 0x0f, Rm); break; | |
| 2069 | case 1 << 8: MOVWS4(sh2, opcode & 0x0f, Rm); break; | |
| 2063 | 2070 | case 2<< 8: NOP(); break; |
| 2064 | 2071 | case 3<< 8: NOP(); break; |
| 2065 | case 4<< 8: MOVBL4(Rm, opcode & 0x0f); break; | |
| 2066 | case 5<< 8: MOVWL4(Rm, opcode & 0x0f); break; | |
| 2072 | case 4<< 8: MOVBL4(sh2, Rm, opcode & 0x0f); break; | |
| 2073 | case 5<< 8: MOVWL4(sh2, Rm, opcode & 0x0f); break; | |
| 2067 | 2074 | case 6<< 8: NOP(); break; |
| 2068 | 2075 | case 7<< 8: NOP(); break; |
| 2069 | case 8<< 8: CMPIM(opcode & 0xff); break; | |
| 2070 | case 9<< 8: BT(opcode & 0xff); break; | |
| 2076 | case 8<< 8: CMPIM(sh2, opcode & 0xff); break; | |
| 2077 | case 9<< 8: BT(sh2, opcode & 0xff); break; | |
| 2071 | 2078 | case 10<< 8: NOP(); break; |
| 2072 | case 11<< 8: BF(opcode & 0xff); | |
| 2079 | case 11<< 8: BF(sh2, opcode & 0xff); | |
| 2073 | 2080 | case 12<< 8: NOP(); break; |
| 2074 | case 13<< 8: BTS(opcode & 0xff); break; | |
| 2081 | case 13<< 8: BTS(sh2, opcode & 0xff); break; | |
| 2075 | 2082 | case 14<< 8: NOP(); break; |
| 2076 | case 15<< 8: BFS(opcode & 0xff); break; | |
| 2083 | case 15<< 8: BFS(sh2, opcode & 0xff); break; | |
| 2077 | 2084 | } |
| 2078 | 2085 | } |
| 2079 | 2086 | |
| 2080 | 2087 | |
| 2081 | INLINE void op1001(UINT16 opcode) | |
| 2088 | INLINE void op1001(sh2_state *sh2, UINT16 opcode) | |
| 2082 | 2089 | { |
| 2083 | MOVWI(opcode & 0xff, Rn); | |
| 2090 | MOVWI(sh2, opcode & 0xff, Rn); | |
| 2084 | 2091 | } |
| 2085 | 2092 | |
| 2086 | INLINE void op1010(UINT16 opcode) | |
| 2093 | INLINE void op1010(sh2_state *sh2, UINT16 opcode) | |
| 2087 | 2094 | { |
| 2088 | BRA(opcode & 0xfff); | |
| 2095 | BRA(sh2, opcode & 0xfff); | |
| 2089 | 2096 | } |
| 2090 | 2097 | |
| 2091 | INLINE void op1011(UINT16 opcode) | |
| 2098 | INLINE void op1011(sh2_state *sh2, UINT16 opcode) | |
| 2092 | 2099 | { |
| 2093 | BSR(opcode & 0xfff); | |
| 2100 | BSR(sh2, opcode & 0xfff); | |
| 2094 | 2101 | } |
| 2095 | 2102 | |
| 2096 | INLINE void op1100(UINT16 opcode) | |
| 2103 | INLINE void op1100(sh2_state *sh2, UINT16 opcode) | |
| 2097 | 2104 | { |
| 2098 | 2105 | switch (opcode & (15<<8)) |
| 2099 | 2106 | { |
| 2100 | case 0<<8: MOVBSG(opcode & 0xff); break; | |
| 2101 | case 1<<8: MOVWSG(opcode & 0xff); break; | |
| 2102 | case 2<<8: MOVLSG(opcode & 0xff); break; | |
| 2103 | case 3<<8: TRAPA(opcode & 0xff); break; | |
| 2104 | case 4<<8: MOVBLG(opcode & 0xff); break; | |
| 2105 | case 5<<8: MOVWLG(opcode & 0xff); break; | |
| 2106 | case 6<<8: MOVLLG(opcode & 0xff); break; | |
| 2107 | case 7<<8: MOVA(opcode & 0xff); break; | |
| 2108 | case 8<<8: TSTI(opcode & 0xff); break; | |
| 2109 | case 9<<8: ANDI(opcode & 0xff); break; | |
| 2110 | case 10<<8: XORI(opcode & 0xff); break; | |
| 2111 | case 11<<8: ORI(opcode & 0xff); break; | |
| 2112 | case 12<<8: TSTM(opcode & 0xff); break; | |
| 2113 | case 13<<8: ANDM(opcode & 0xff); break; | |
| 2114 | case 14<<8: XORM(opcode & 0xff); break; | |
| 2115 | case 15<<8: ORM(opcode & 0xff); break; | |
| 2107 | case 0<<8: MOVBSG(sh2, opcode & 0xff); break; | |
| 2108 | case 1<<8: MOVWSG(sh2, opcode & 0xff); break; | |
| 2109 | case 2<<8: MOVLSG(sh2, opcode & 0xff); break; | |
| 2110 | case 3<<8: TRAPA(sh2, opcode & 0xff); break; | |
| 2111 | case 4<<8: MOVBLG(sh2, opcode & 0xff); break; | |
| 2112 | case 5<<8: MOVWLG(sh2, opcode & 0xff); break; | |
| 2113 | case 6<<8: MOVLLG(sh2, opcode & 0xff); break; | |
| 2114 | case 7<<8: MOVA(sh2, opcode & 0xff); break; | |
| 2115 | case 8<<8: TSTI(sh2, opcode & 0xff); break; | |
| 2116 | case 9<<8: ANDI(sh2, opcode & 0xff); break; | |
| 2117 | case 10<<8: XORI(sh2, opcode & 0xff); break; | |
| 2118 | case 11<<8: ORI(sh2, opcode & 0xff); break; | |
| 2119 | case 12<<8: TSTM(sh2, opcode & 0xff); break; | |
| 2120 | case 13<<8: ANDM(sh2, opcode & 0xff); break; | |
| 2121 | case 14<<8: XORM(sh2, opcode & 0xff); break; | |
| 2122 | case 15<<8: ORM(sh2, opcode & 0xff); break; | |
| 2116 | 2123 | } |
| 2117 | 2124 | } |
| 2118 | 2125 | |
| 2119 | INLINE void op1101(UINT16 opcode) | |
| 2126 | INLINE void op1101(sh2_state *sh2, UINT16 opcode) | |
| 2120 | 2127 | { |
| 2121 | MOVLI(opcode & 0xff, Rn); | |
| 2128 | MOVLI(sh2, opcode & 0xff, Rn); | |
| 2122 | 2129 | } |
| 2123 | 2130 | |
| 2124 | INLINE void op1110(UINT16 opcode) | |
| 2131 | INLINE void op1110(sh2_state *sh2, UINT16 opcode) | |
| 2125 | 2132 | { |
| 2126 | MOVI(opcode & 0xff, Rn); | |
| 2133 | MOVI(sh2, opcode & 0xff, Rn); | |
| 2127 | 2134 | } |
| 2128 | 2135 | |
| 2129 | INLINE void op1111(UINT16 opcode) | |
| 2136 | INLINE void op1111(sh2_state *sh2, UINT16 opcode) | |
| 2130 | 2137 | { |
| 2131 | 2138 | NOP(); |
| 2132 | 2139 | } |
| r8581 | r8582 | |
| 2137 | 2144 | |
| 2138 | 2145 | static CPU_RESET( sh2 ) |
| 2139 | 2146 | { |
| 2140 | void *tsave, *tsaved0, *tsaved1; | |
| 2147 | sh2_state *sh2 = get_safe_token(device); | |
| 2148 | emu_timer *tsave, *tsaved0, *tsaved1; | |
| 2141 | 2149 | UINT32 *m; |
| 2150 | int (*dma_callback_kludge)(UINT32 src, UINT32 dst, UINT32 data, int size); | |
| 2142 | 2151 | int save_is_slave; |
| 2143 | 2152 | |
| 2144 | 2153 | void (*f)(UINT32 data); |
| r8581 | r8582 | |
| 2154 | 2163 | save_is_slave = sh2->is_slave; |
| 2155 | 2164 | dma_callback_kludge = sh2->dma_callback_kludge; |
| 2156 | 2165 | |
| 2157 | memset(sh2, 0, sizeof(sh2_state)); | |
| 2166 | sh2->ppc = sh2->pc = sh2->pr = sh2->sr = sh2->gbr = sh2->vbr = sh2->mach = sh2->macl = 0; | |
| 2167 | sh2->evec = sh2->irqsr = 0; | |
| 2168 | memset(&sh2->r[0], 0, sizeof(sh2->r[0])*16); | |
| 2169 | sh2->ea = sh2->delay = sh2->cpu_off = sh2->dvsr = sh2->dvdnth = sh2->dvdntl = sh2->dvcr = 0; | |
| 2170 | sh2->pending_irq = sh2->test_irq = 0; | |
| 2171 | memset(&sh2->irq_queue[0], 0, sizeof(sh2->irq_queue[0])*16); | |
| 2172 | memset(&sh2->irq_line_state[0], 0, sizeof(sh2->irq_line_state[0])*17); | |
| 2173 | sh2->frc = sh2->ocra = sh2->ocrb = sh2->icr = 0; | |
| 2174 | sh2->frc_base = 0; | |
| 2175 | sh2->frt_input = sh2->internal_irq_level = sh2->internal_irq_vector = 0; | |
| 2176 | sh2->dma_timer_active[0] = sh2->dma_timer_active[1] = 0; | |
| 2158 | 2177 | |
| 2159 | 2178 | sh2->dma_callback_kludge = dma_callback_kludge; |
| 2160 | 2179 | sh2->is_slave = save_is_slave; |
| r8581 | r8582 | |
| 2168 | 2187 | sh2->m = m; |
| 2169 | 2188 | memset(sh2->m, 0, 0x200); |
| 2170 | 2189 | |
| 2171 | sh2->pc = RL(0); | |
| 2172 | sh2->r[15] = RL(4); | |
| 2190 | sh2->pc = RL(sh2, 0); | |
| 2191 | sh2->r[15] = RL(sh2, 4); | |
| 2173 | 2192 | sh2->sr = I; |
| 2174 | 2193 | |
| 2175 | 2194 | sh2->internal_irq_level = -1; |
| r8581 | r8582 | |
| 2181 | 2200 | |
| 2182 | 2201 | static CPU_RESET( sh1 ) |
| 2183 | 2202 | { |
| 2184 | sh2_reset(); | |
| 2203 | sh2_state *sh2 = get_safe_token(device); | |
| 2204 | CPU_RESET_CALL( sh2 ); | |
| 2185 | 2205 | sh2->cpu_type = CPU_TYPE_SH1; |
| 2186 | 2206 | } |
| 2187 | 2207 | |
| 2188 | 2208 | /* Execute cycles - returns number of cycles actually run */ |
| 2189 | 2209 | static CPU_EXECUTE( sh2 ) |
| 2190 | 2210 | { |
| 2211 | sh2_state *sh2 = get_safe_token(device); | |
| 2212 | ||
| 2191 | 2213 | if (sh2->cpu_off) |
| 2192 | 2214 | { |
| 2193 | 2215 | sh2->icount = 0; |
| r8581 | r8582 | |
| 2214 | 2236 | |
| 2215 | 2237 | switch (opcode & ( 15 << 12)) |
| 2216 | 2238 | { |
| 2217 | case 0<<12: op0000(opcode); break; | |
| 2218 | case 1<<12: op0001(opcode); break; | |
| 2219 | case 2<<12: op0010(opcode); break; | |
| 2220 | case 3<<12: op0011(opcode); break; | |
| 2221 | case 4<<12: op0100(opcode); break; | |
| 2222 | case 5<<12: op0101(opcode); break; | |
| 2223 | case 6<<12: op0110(opcode); break; | |
| 2224 | case 7<<12: op0111(opcode); break; | |
| 2225 | case 8<<12: op1000(opcode); break; | |
| 2226 | case 9<<12: op1001(opcode); break; | |
| 2227 | case 10<<12: op1010(opcode); break; | |
| 2228 | case 11<<12: op1011(opcode); break; | |
| 2229 | case 12<<12: op1100(opcode); break; | |
| 2230 | case 13<<12: op1101(opcode); break; | |
| 2231 | case 14<<12: op1110(opcode); break; | |
| 2232 | default: op1111(opcode); break; | |
| 2239 | case 0<<12: op0000(sh2, opcode); break; | |
| 2240 | case 1<<12: op0001(sh2, opcode); break; | |
| 2241 | case 2<<12: op0010(sh2, opcode); break; | |
| 2242 | case 3<<12: op0011(sh2, opcode); break; | |
| 2243 | case 4<<12: op0100(sh2, opcode); break; | |
| 2244 | case 5<<12: op0101(sh2, opcode); break; | |
| 2245 | case 6<<12: op0110(sh2, opcode); break; | |
| 2246 | case 7<<12: op0111(sh2, opcode); break; | |
| 2247 | case 8<<12: op1000(sh2, opcode); break; | |
| 2248 | case 9<<12: op1001(sh2, opcode); break; | |
| 2249 | case 10<<12: op1010(sh2, opcode); break; | |
| 2250 | case 11<<12: op1011(sh2, opcode); break; | |
| 2251 | case 12<<12: op1100(sh2, opcode); break; | |
| 2252 | case 13<<12: op1101(sh2, opcode); break; | |
| 2253 | case 14<<12: op1110(sh2, opcode); break; | |
| 2254 | default: op1111(sh2, opcode); break; | |
| 2233 | 2255 | } |
| 2234 | 2256 | |
| 2235 | 2257 | if(sh2->test_irq && !sh2->delay) |
| r8581 | r8582 | |
| 2237 | 2259 | CHECK_PENDING_IRQ("mame_sh2_execute"); |
| 2238 | 2260 | sh2->test_irq = 0; |
| 2239 | 2261 | } |
| 2240 | sh2_icount--; | |
| 2241 | } while( sh2_icount > 0 ); | |
| 2262 | sh2->icount--; | |
| 2263 | } while( sh2->icount > 0 ); | |
| 2242 | 2264 | } |
| 2243 | 2265 | |
| 2244 | 2266 | static CPU_INIT( sh2 ) |
| 2245 | 2267 | { |
| 2246 | /* allocate the core memory */ | |
| 2247 | sh2 = auto_alloc_clear(device->machine, SH2); | |
| 2268 | sh2_state *sh2 = get_safe_token(device); | |
| 2248 | 2269 | |
| 2249 | 2270 | /* initialize the common core parts */ |
| 2250 | 2271 | sh2_common_init(sh2, device, irqcallback); |
| r8581 | r8582 | |
| 2256 | 2277 | |
| 2257 | 2278 | static CPU_SET_INFO( sh2 ) |
| 2258 | 2279 | { |
| 2280 | sh2_state *sh2 = get_safe_token(device); | |
| 2259 | 2281 | switch (state) |
| 2260 | 2282 | { |
| 2261 | 2283 | /* --- the following bits of info are set as 64-bit signed integers --- */ |
| r8581 | r8582 | |
| 2315 | 2337 | |
| 2316 | 2338 | CPU_GET_INFO( sh2 ) |
| 2317 | 2339 | { |
| 2340 | sh2_state *sh2 = (device != NULL && device->token() != NULL) ? get_safe_token(device) : NULL; | |
| 2318 | 2341 | switch (state) |
| 2319 | 2342 | { |
| 2320 | 2343 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| r8581 | r8582 | |
| 2394 | 2417 | case CPUINFO_FCT_EXECUTE: info->execute = CPU_EXECUTE_NAME(sh2); break; |
| 2395 | 2418 | case CPUINFO_FCT_BURN: info->burn = NULL; break; |
| 2396 | 2419 | case CPUINFO_FCT_DISASSEMBLE: info->disassemble = CPU_DISASSEMBLE_NAME(sh2); break; |
| 2397 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &sh2 | |
| 2420 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &sh2->icount; break; | |
| 2398 | 2421 | |
| 2399 | 2422 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 2400 | 2423 | case DEVINFO_STR_NAME: strcpy(info->s, "SH-2"); break; |
| r8581 | r8582 | |
|---|---|---|
| 188 | 188 | if (cpustate->prescaler[source-2].mode & 0x80) |
| 189 | 189 | { |
| 190 | 190 | // rate = (sysclock / prescaler) / our count |
| 191 | rate = cpu | |
| 191 | rate = cpu | |
| 192 | 192 | rate /= cpustate->simple_timer[tmr].base; |
| 193 | 193 | |
| 194 | 194 | if (tmr != 8) // HACK: timer 8 is run at 500 kHz by the Taito program for no obvious reason, which kills performance |
| r8581 | r8582 | |
|---|---|---|
| 245 | 245 | static void set_irq_line(mb88_state *cpustate, int state) |
| 246 | 246 | { |
| 247 | 247 | /* on falling edge trigger interrupt */ |
| 248 | if ( (cpustate->pio & 0x04) && cpustate->nf && state | |
| 248 | if ( (cpustate->pio & 0x04) && cpustate->nf == 0 && state != CLEAR_LINE ) | |
| 249 | 249 | { |
| 250 | 250 | cpustate->pending_interrupt |= INT_CAUSE_EXTERNAL; |
| 251 | 251 | } |
| r8581 | r8582 | |
| 593 | 593 | |
| 594 | 594 | case 0x24: /* tstr ZCS:..x */ |
| 595 | 595 | arg = READPORT( MB88_PORTR0+(cpustate->Y/4) ); |
| 596 | cpustate->st = ( arg & ( 1 << (cpustate->Y%4) ) ) ? | |
| 596 | cpustate->st = ( arg & ( 1 << (cpustate->Y%4) ) ) ? 0 : 1; | |
| 597 | 597 | break; |
| 598 | 598 | |
| 599 | 599 | case 0x25: /* tsti ZCS:..x */ |
| r8581 | r8582 | |
| 679 | 679 | |
| 680 | 680 | case 0x38: case 0x39: case 0x3a: case 0x3b: /* tbit ZCS:... */ |
| 681 | 681 | arg = RDMEM(GETEA()); |
| 682 | cpustate->st = ( arg & (1 << (opcode&3) ) ) ? | |
| 682 | cpustate->st = ( arg & (1 << (opcode&3) ) ) ? 0 : 1; | |
| 683 | 683 | break; |
| 684 | 684 | |
| 685 | 685 | case 0x3c: /* rti ZCS:... */ |
| r8581 | r8582 | |
| 729 | 729 | |
| 730 | 730 | case 0x48: case 0x49: case 0x4a: case 0x4b: /* tstD ZCS:..x */ |
| 731 | 731 | arg = READPORT(MB88_PORTR2); |
| 732 | cpustate->st = (arg & (1 << (opcode&3))) ? | |
| 732 | cpustate->st = (arg & (1 << (opcode&3))) ? 0 : 1; | |
| 733 | 733 | break; |
| 734 | 734 | |
| 735 | 735 | case 0x4c: case 0x4d: case 0x4e: case 0x4f: /* tba ZCS:..x */ |
| 736 | cpustate->st = (cpustate->A & (1 << (opcode&3))) ? | |
| 736 | cpustate->st = (cpustate->A & (1 << (opcode&3))) ? 0 : 1; | |
| 737 | 737 | break; |
| 738 | 738 | |
| 739 | 739 | case 0x50: case 0x51: case 0x52: case 0x53: /* xd ZCS:x.. */ |
| r8581 | r8582 | |
|---|---|---|
| 56 | 56 | #define DERIVED_CLOCK(num, den) (0xff000000 | ((num) << 12) | ((den) << 0)) |
| 57 | 57 | |
| 58 | 58 | // shorthand for accessing devices by machine/type/tag |
| 59 | #define devtag_get_device(mach,tag) (mach)->device(tag) | |
| 60 | 59 | #define devtag_reset(mach,tag) (mach)->device(tag)->reset() |
| 61 | 60 | |
| 62 | 61 | |
| r8581 | r8582 | |
| 552 | 551 | } |
| 553 | 552 | |
| 554 | 553 | |
| 555 | ||
| 556 | // ======================> device clock management | |
| 557 | ||
| 558 | // returns the current device's unscaled running clock speed | |
| 559 | inline int device_get_clock(device_t *device) | |
| 560 | { | |
| 561 | return device->unscaled_clock(); | |
| 562 | } | |
| 563 | ||
| 564 | // sets the current device's clock speed and then adjusts for scaling | |
| 565 | inline void device_set_clock(device_t *device, int clock) | |
| 566 | { | |
| 567 | device->set_unscaled_clock(clock); | |
| 568 | } | |
| 569 | ||
| 570 | // returns the current scaling factor for a device's clock speed | |
| 571 | inline double device_get_clock_scale(device_t *device) | |
| 572 | { | |
| 573 | return device->clock_scale(); | |
| 574 | } | |
| 575 | ||
| 576 | // sets the current scaling factor for a device's clock speed | |
| 577 | inline void device_set_clock_scale(device_t *device, double clockscale) | |
| 578 | { | |
| 579 | device->set_clock_scale(clockscale); | |
| 580 | } | |
| 581 | ||
| 582 | ||
| 583 | 554 | #endif /* __DEVINTRF_H__ */ |
| r8581 | r8582 | |
|---|---|---|
| 672 | 672 | image_battery_save_by_name(astring_c(fname), buffer, length); |
| 673 | 673 | astring_free(fname); |
| 674 | 674 | } |
| 675 | ||
| 675 |
| r8581 | r8582 | |
|---|---|---|
| 803 | 803 | const mos6560_interface *intf = (mos6560_interface *)device->baseconfig().static_config(); |
| 804 | 804 | int width, height; |
| 805 | 805 | |
| 806 | mos6560->screen = downcast<screen_device *>(dev | |
| 806 | mos6560->screen = downcast<screen_device *>(dev | |
| 807 | 807 | width = mos6560->screen->width(); |
| 808 | 808 | height = mos6560->screen->height(); |
| 809 | 809 |
| r8581 | r8582 | |
|---|---|---|
| 581 | 581 | /* print statistics */ |
| 582 | 582 | printf("Total Samples : %16" I64FMT "d\n", info->total_samples); |
| 583 | 583 | tresh = total / count; |
| 584 | printf("Treshold (mean): %16" I64FMT "d\n", tresh / info->total_samples ); | |
| 584 | printf("Threshold (mean): %16" I64FMT "d\n", tresh / info->total_samples ); | |
| 585 | 585 | for (entry = info->node_list; entry != NULL; entry = entry->next) |
| 586 | 586 | { |
| 587 | 587 | node_description *node = (node_description *) entry->ptr; |
| r8581 | r8582 | |
|---|---|---|
| 365 | 365 | |
| 366 | 366 | if (cdp1864->aoe) |
| 367 | 367 | { |
| 368 | double frequency = c | |
| 368 | double frequency = c | |
| 369 | 369 | int rate = device->machine->sample_rate / 2; |
| 370 | 370 | |
| 371 | 371 | /* get progress through wave */ |
| r8581 | r8582 | |
|---|---|---|
| 413 | 413 | SOUNDOBJS += $(SOUNDOBJ)/aica.o $(SOUNDOBJ)/aicadsp.o |
| 414 | 414 | endif |
| 415 | 415 | |
| 416 | $(SOUNDOBJ)/scsp.o: $(SOUNDSRC)/scsplfo.c | |
| 417 | $(SOUNDOBJ)/aica.o: $(SOUNDSRC)/aicalfo.c | |
| 416 | 418 | |
| 417 | 419 | |
| 418 | 420 | #------------------------------------------------- |
| r8581 | r8582 | |
| 556 | 558 | SOUNDOBJS += $(SOUNDOBJ)/tms5220.o |
| 557 | 559 | endif |
| 558 | 560 | |
| 561 | $(SOUNDOBJ)/tms5110.o: $(SOUNDSRC)/tms5110r.c | |
| 562 | $(SOUNDOBJ)/tms5220.o: $(SOUNDSRC)/tms5220r.c | |
| 559 | 563 | |
| 560 | 564 | |
| 561 | 565 | #------------------------------------------------- |
| r8581 | r8582 | |
|---|---|---|
| 262 | 262 | /* must be defined; if 0, output the waveform as if it was tapped on the speaker pin as usual, if 1, output the waveform as if it was tapped on the i/o pin (volume is much lower in the latter case) */ |
| 263 | 263 | #define FORCE_DIGITAL 0 |
| 264 | 264 | |
| 265 | /* must be defined; if 1, normal speech ( | |
| 265 | /* must be defined; if 1, normal speech (one A cycle, one B cycle per interpolation step); if 0; speak as if SPKSLOW was used (two A cycles, one B cycle per interpolation step) */ | |
| 266 | 266 | #define FORCE_SUBC_RELOAD 1 |
| 267 | 267 | |
| 268 | 268 | /* if defined, outputs the low 4 bits of the lattice filter to the i/o or clip logic, even though the real hardware doesn't do this */ |
| r8581 | r8582 | |
| 301 | 301 | #undef DEBUG_IO_READY |
| 302 | 302 | // above debugs the io ready callback |
| 303 | 303 | #undef DEBUG_RS_WS |
| 304 | // above debugs the | |
| 304 | // above debugs the | |
| 305 | 305 | |
| 306 | 306 | #define MAX_SAMPLE_CHUNK 512 |
| 307 | 307 | #define FIFO_SIZE 16 |
| r8581 | r8582 | |
| 314 | 314 | |
| 315 | 315 | #define TMS5220_IS_TMC0285 TMS5220_IS_5200 |
| 316 | 316 | |
| 317 | static const UINT8 reload_table[4] = { 0, 2, 4, 6 }; // | |
| 317 | static const UINT8 reload_table[4] = { 0, 2, 4, 6 }; // | |
| 318 | 318 | |
| 319 | 319 | typedef struct _tms5220_state tms5220_state; |
| 320 | 320 | struct _tms5220_state |
| r8581 | r8582 | |
| 871 | 871 | while ((size > 0) && tms->speaking_now) |
| 872 | 872 | { |
| 873 | 873 | /* if it is the appropriate time to update the old energy/pitch idxes, |
| 874 | * i.e. when IP=7, do so. */ | |
| 875 | if (tms->interp_period == 7) | |
| 874 | * i.e. when IP=7, PC=12, do so. */ | |
| 875 | if ((tms->interp_period == 7) && (tms->PC == 12)) | |
| 876 | 876 | { |
| 877 | 877 | tms->OLDE = (tms->new_frame_energy_idx == 0); |
| 878 | 878 | tms->OLDP = (tms->new_frame_pitch_idx == 0); |
| 879 | 879 | } |
| 880 | 880 | |
| 881 | /* if we're ready for a new frame, i.e. when IP=0, PC=12, Sub=1 */ | |
| 881 | /* if we're ready for a new frame to be applied, i.e. when IP=0, PC=12, Sub=1 */ | |
| 882 | /* (In reality, the frame was really loaded incrementally during the entire IP=0 PC=x time period, but it doesn't affect anything until IP=0 PC=12 happens) */ | |
| 882 | 883 | if ((tms->interp_period == 0) && (tms->PC == 12) && (tms->subcycle == 1)) |
| 883 | 884 | { |
| 884 | 885 | // HACK for regression testing, be sure to comment out before release! |
| 885 | 886 | //tms->RNG = 0x1234; |
| 886 | 887 | // end HACK |
| 887 | 888 | |
| 888 | /* appropriately override the interp count if needed */ | |
| 889 | /* appropriately override the interp count if needed; this will be incremented after the frame parse! */ | |
| 889 | 890 | tms->interp_period = reload_table[tms->tms5220c_rate&0x3]; |
| 890 | 891 | |
| 891 | 892 | #ifdef PERFECT_INTERPOLATION_HACK |
| r8581 | r8582 | |
| 966 | 967 | } |
| 967 | 968 | else // Not a new frame, just interpolate the existing frame. |
| 968 | 969 | { |
| 969 | if (tms->interp_period == 0) tms->inhibit = 0; // disable inhibit when reaching the last interp period | |
| 970 | if (tms->interp_period == 0) tms->inhibit = 0; // disable inhibit when reaching the last interp period | |
| 970 | 971 | #ifdef PERFECT_INTERPOLATION_HACK |
| 971 | int samples_per_frame = tms->subc_reload?200:304; // either (13 A cycles + 12 B cycles) * 8 interps for normal SPEAK/SPKEXT, or (13*2 A cycles + 12 B cycles) * 8 interps for SPKSLOW | |
| 972 | int current_sample = ((tms->PC*(3-tms->subc_reload))+((tms->subc_reload?38:25)*tms->interp_period)); | |
| 973 | zpar = OLD_FRAME_UNVOICED_FLAG; | |
| 974 | // reset the current energy, pitch, etc to what it was at frame start | |
| 975 | tms->current_energy = tms->coeff->energytable[tms->old_frame_energy_idx]; | |
| 976 | tms->current_pitch = tms->coeff->pitchtable[tms->old_frame_pitch_idx]; | |
| 977 | for (i = 0; i < 4; i++) | |
| 978 | tms->current_k[i] = tms->coeff->ktable[i][tms->old_frame_k_idx[i]]; | |
| 979 | for (i = 4; i < tms->coeff->num_k; i++) | |
| 980 | tms->current_k[i] = (tms->coeff->ktable[i][tms->old_frame_k_idx[i]] * (1-zpar)); | |
| 981 | // now adjust each value to be exactly correct for each of the samples per frsme | |
| 982 | tms->current_energy += (((tms->target_energy - tms->current_energy)*(1-tms->inhibit))*current_sample)/samples_per_frame; | |
| 983 | tms->current_pitch += (((tms->target_pitch - tms->current_pitch)*(1-tms->inhibit))*current_sample)/samples_per_frame; | |
| 984 | for (i = 0; i < tms->coeff->num_k; i++) | |
| 985 | tms->current_k[i] += (((tms->target_k[i] - tms->current_k[i])*(1-tms->inhibit))*current_sample)/samples_per_frame; | |
| 972 | int samples_per_frame = tms->subc_reload?200:304; // either (13 A cycles + 12 B cycles) * 8 interps for normal SPEAK/SPKEXT, or (13*2 A cycles + 12 B cycles) * 8 interps for SPKSLOW | |
| 973 | int current_sample = ((tms->PC*(3-tms->subc_reload))+((tms->subc_reload?38:25)*tms->interp_period)); | |
| 974 | zpar = OLD_FRAME_UNVOICED_FLAG; | |
| 975 | // reset the current energy, pitch, etc to what it was at frame start | |
| 976 | tms->current_energy = tms->coeff->energytable[tms->old_frame_energy_idx]; | |
| 977 | tms->current_pitch = tms->coeff->pitchtable[tms->old_frame_pitch_idx]; | |
| 978 | for (i = 0; i < 4; i++) | |
| 979 | tms->current_k[i] = tms->coeff->ktable[i][tms->old_frame_k_idx[i]]; | |
| 980 | for (i = 4; i < tms->coeff->num_k; i++) | |
| 981 | tms->current_k[i] = (tms->coeff->ktable[i][tms->old_frame_k_idx[i]] * (1-zpar)); | |
| 982 | // now adjust each value to be exactly correct for each of the samples per frsme | |
| 983 | tms->current_energy += (((tms->target_energy - tms->current_energy)*(1-tms->inhibit))*current_sample)/samples_per_frame; | |
| 984 | tms->current_pitch += (((tms->target_pitch - tms->current_pitch)*(1-tms->inhibit))*current_sample)/samples_per_frame; | |
| 985 | for (i = 0; i < tms->coeff->num_k; i++) | |
| 986 | tms->current_k[i] += (((tms->target_k[i] - tms->current_k[i])*(1-tms->inhibit))*current_sample)/samples_per_frame; | |
| 986 | 987 | #else |
| 987 | //Updates to parameters only happen on subcycle '2' (B cycle) of PCs. | |
| 988 | if (tms->subcycle == 2) | |
| 989 | { | |
| 990 | switch(tms->PC) | |
| 988 | //Updates to parameters only happen on subcycle '2' (B cycle) of PCs. | |
| 989 | if (tms->subcycle == 2) | |
| 991 | 990 | { |
| 992 | case 0: /* PC = 0, B cycle, write updated energy */ | |
| 993 | tms->current_energy += (((tms->target_energy - tms->current_energy)*(1-tms->inhibit)) INTERP_SHIFT); | |
| 994 | break; | |
| 995 | case 1: /* PC = 1, B cycle, write updated pitch */ | |
| 996 | tms->current_pitch += (((tms->target_pitch - tms->current_pitch)*(1-tms->inhibit)) INTERP_SHIFT); | |
| 997 | break; | |
| 998 | case 2: /* PC = 2, B cycle, write updated K1 */ | |
| 999 | tms->current_k[0] += (((tms->target_k[0] - tms->current_k[0])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1000 | break; | |
| 1001 | case 3: /* PC = 3, B cycle, write updated K2 */ | |
| 1002 | tms->current_k[1] += (((tms->target_k[1] - tms->current_k[1])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1003 | break; | |
| 1004 | case 4: /* PC = 4, B cycle, write updated K3 */ | |
| 1005 | tms->current_k[2] += (((tms->target_k[2] - tms->current_k[2])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1006 | break; | |
| 1007 | case 5: /* PC = 5, B cycle, write updated K4 */ | |
| 1008 | tms->current_k[3] += (((tms->target_k[3] - tms->current_k[3])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1009 | break; | |
| 1010 | case 6: /* PC = 6, B cycle, write updated K5 */ | |
| 1011 | tms->current_k[4] += (((tms->target_k[4] - tms->current_k[4])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1012 | break; | |
| 1013 | case 7: /* PC = 7, B cycle, write updated K6 */ | |
| 1014 | tms->current_k[5] += (((tms->target_k[5] - tms->current_k[5])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1015 | break; | |
| 1016 | case 8: /* PC = 8, B cycle, write updated K7 */ | |
| 1017 | tms->current_k[6] += (((tms->target_k[6] - tms->current_k[6])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1018 | break; | |
| 1019 | case 9: /* PC = 9, B cycle, write updated K8 */ | |
| 1020 | tms->current_k[7] += (((tms->target_k[7] - tms->current_k[7])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1021 | break; | |
| 1022 | case 10: /* PC = 10, B cycle, write updated K9 */ | |
| 1023 | tms->current_k[8] += (((tms->target_k[8] - tms->current_k[8])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1024 | break; | |
| 1025 | case 11: /* PC = 11, B cycle, write updated K10 */ | |
| 1026 | tms->current_k[9] += (((tms->target_k[9] - tms->current_k[9])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1027 | break; | |
| 991 | switch(tms->PC) | |
| 992 | { | |
| 993 | case 0: /* PC = 0, B cycle, write updated energy */ | |
| 994 | tms->current_energy += (((tms->target_energy - tms->current_energy)*(1-tms->inhibit)) INTERP_SHIFT); | |
| 995 | break; | |
| 996 | case 1: /* PC = 1, B cycle, write updated pitch */ | |
| 997 | tms->current_pitch += (((tms->target_pitch - tms->current_pitch)*(1-tms->inhibit)) INTERP_SHIFT); | |
| 998 | break; | |
| 999 | case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: | |
| 1000 | /* PC = 2 thru 11, B cycle, write updated K1 thru K10 */ | |
| 1001 | tms->current_k[tms->PC-2] += (((tms->target_k[tms->PC-2] - tms->current_k[tms->PC-2])*(1-tms->inhibit)) INTERP_SHIFT); | |
| 1002 | break; | |
| 1003 | case 12: /* PC = 12, do nothing */ | |
| 1004 | break; | |
| 1005 | } | |
| 1028 | 1006 | } |
| 1029 | } | |
| 1030 | 1007 | #endif |
| 1031 | 1008 | } |
| 1032 | 1009 | |
| r8581 | r8582 | |
| 1069 | 1046 | #endif |
| 1070 | 1047 | } |
| 1071 | 1048 | |
| 1072 | /* Update LFSR *20* times every sample, like patent shows */ | |
| 1049 | /* Update LFSR *20* times every sample (once per T cycle), like patent shows */ | |
| 1073 | 1050 | for (i=0; i<20; i++) |
| 1074 | 1051 | { |
| 1075 | 1052 | bitout = ((tms->RNG >> 12) & 1) ^ |
| r8581 | r8582 | |
| 1110 | 1087 | } |
| 1111 | 1088 | /* Update all counts */ |
| 1112 | 1089 | |
| 1113 | size--; | |
| 1114 | 1090 | tms->subcycle++; |
| 1115 | 1091 | if ((tms->subcycle == 2) && (tms->PC == 12)) |
| 1116 | 1092 | { |
| r8581 | r8582 | |
| 1127 | 1103 | tms->pitch_count++; |
| 1128 | 1104 | if (tms->pitch_count >= tms->current_pitch) tms->pitch_count = 0; |
| 1129 | 1105 | buf_count++; |
| 1106 | size--; | |
| 1130 | 1107 | } |
| 1131 | 1108 | |
| 1132 | 1109 | empty: |
| r8581 | r8582 | |
|---|---|---|
| 753 | 753 | target_y - UI_BOX_TB_BORDER, |
| 754 | 754 | target_x + target_width + UI_BOX_LR_BORDER, |
| 755 | 755 | target_y + target_height + UI_BOX_TB_BORDER, backcolor); |
| 756 | ui_draw_text_full(container, text, target_x, target_y, target_width | |
| 756 | ui_draw_text_full(container, text, target_x, target_y, target_width | |
| 757 | 757 | justify, WRAP_WORD, DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, NULL, NULL); |
| 758 | 758 | } |
| 759 | 759 | |
| r8581 | r8582 | |
| 1817 | 1817 | { |
| 1818 | 1818 | device_t *cpu = (device_t *)arg; |
| 1819 | 1819 | if (newval != SLIDER_NOCHANGE) |
| 1820 | cpu | |
| 1820 | cpu->set_clock_scale( | |
| 1821 | 1821 | if (string != NULL) |
| 1822 | string->printf("%3.0f%%", floor(cpu_get_clockscale(cpu) * 100.0f + 0.5f)); | |
| 1823 | return floor(cpu_get_clockscale(cpu) * 1000.0f + 0.5f); | |
| 1822 | string->printf("%3.0f%%", floor(cpu->clock_scale() * 100.0f + 0.5f)); | |
| 1823 | return floor(cpu->clock_scale() * 1000.0f + 0.5f); | |
| 1824 | 1824 | } |
| 1825 | 1825 | |
| 1826 | 1826 |
| r8581 | r8582 | |
|---|---|---|
| 1136 | 1136 | |
| 1137 | 1137 | /* Tell the world which part we actually loaded */ |
| 1138 | 1138 | *full_sw_name = auto_alloc_array( image->device().machine, char, strlen(swlist_name) + strlen(software_info_ptr->shortname) + strlen(software_part_ptr->name) + 3 ); |
| 1139 | sprintf( *full_sw_name, "%s:%s:%s", swlist_name, software_info_ptr->shortname, software_part_ptr->name ); | |
| 1139 | sprintf( *full_sw_name, "%s:%s:%s", swlist_name, software_info_ptr->shortname, software_part_ptr->name ); | |
| 1140 | 1140 | } |
| 1141 | 1141 | |
| 1142 | 1142 | /* Close the software list if it's still open */ |
| r8581 | r8582 | |
|---|---|---|
| 315 | 315 | UINT32 crc = 0; |
| 316 | 316 | UINT8 crcbytes[4]; |
| 317 | 317 | file_error filerr; |
| 318 | ||
| 318 | ||
| 319 | 319 | bool has_crc = hash_data_extract_binary_checksum(ROM_GETHASHDATA(romp), HASH_CRC, crcbytes); |
| 320 | 320 | if (has_crc) |
| 321 | 321 | crc = (crcbytes[0] << 24) | (crcbytes[1] << 16) | (crcbytes[2] << 8) | crcbytes[3]; |
| 322 | ||
| 322 | ||
| 323 | 323 | astring fname(swlist, PATH_SEPARATOR, swname, PATH_SEPARATOR, ROM_GETNAME(romp)); |
| 324 | 324 | if (has_crc) |
| 325 | 325 | filerr = mame_fopen_crc(SEARCHPATH_ROM, fname, crc, OPEN_FLAG_READ, &m_mame_file); |
| 326 | 326 | else |
| 327 | 327 | filerr = mame_fopen(SEARCHPATH_ROM, fname, OPEN_FLAG_READ, &m_mame_file); |
| 328 | ||
| 328 | ||
| 329 | 329 | if (filerr == FILERR_NONE) |
| 330 | 330 | { |
| 331 | 331 | m_file = mame_core_file(m_mame_file); |
| r8581 | r8582 | |
| 380 | 380 | goto done; |
| 381 | 381 | } |
| 382 | 382 | } |
| 383 | ||
| 383 | ||
| 384 | 384 | /* Copy some image information when we have been loaded through a software list */ |
| 385 | 385 | if ( m_software_info_ptr ) |
| 386 | 386 | { |
| r8581 | r8582 | |
| 606 | 606 | void *legacy_image_device_base::get_device_specific_call() |
| 607 | 607 | { |
| 608 | 608 | return (void*) m_config.get_legacy_config_fct(DEVINFO_FCT_DEVICE_SPECIFIC); |
| 609 | } | |
| No newline at end of file | ||
| 609 | } |
| r8581 | r8582 | |
|---|---|---|
| 295 | 295 | #define cpu_spinuntil_time device_spin_until_time |
| 296 | 296 | #define cpu_spinuntil_int device_spin_until_interrupt |
| 297 | 297 | |
| 298 | // CPU clock management | |
| 299 | #define cpu_get_clock device_get_clock | |
| 300 | #define cpu_set_clock device_set_clock | |
| 301 | #define cpu_get_clockscale device_get_clock_scale | |
| 302 | #define cpu_set_clockscale device_set_clock_scale | |
| 303 | ||
| 304 | 298 | // CPU timing |
| 305 | 299 | #define cpu_eat_cycles device_eat_cycles |
| 306 | 300 | #define cpu_adjust_icount device_adjust_icount |
| r8581 | r8582 | |
|---|---|---|
| 259 | 259 | |
| 260 | 260 | $(EMUOBJ)/rendfont.o: $(EMUOBJ)/uismall.fh |
| 261 | 261 | |
| 262 | $(EMUOBJ)/video.o: $(EMUSRC)/rendersw.c | |
| 262 | $(EMUOBJ)/video.o: $(EMUSRC)/rendersw.c | |
| 263 | $(EMUVIDEO)/v9938.o: $(EMUSRC)/video/v9938mod.c | |
| 263 | 264 | |
| 264 | 265 | |
| 265 | ||
| 266 | 266 | #------------------------------------------------- |
| 267 | 267 | # core layouts |
| 268 | 268 | #------------------------------------------------- |
| r8581 | r8582 | |
|---|---|---|
| 564 | 564 | filerr = mame_fopen_options(options, SEARCHPATH_INI, fname, OPEN_FLAG_READ, &file); |
| 565 | 565 | if (filerr != FILERR_NONE) |
| 566 | 566 | return FALSE; |
| 567 | ||
| 567 | ||
| 568 | 568 | /* update game name so depending callback options could be added */ |
| 569 | if (priority==OPTION_PRIORITY_DRIVER_INI) { | |
| 569 | if (priority==OPTION_PRIORITY_DRIVER_INI) { | |
| 570 | 570 | options_force_option_callback(options, OPTION_GAMENAME, name, priority); |
| 571 | 571 | } |
| 572 | ||
| 572 | ||
| 573 | 573 | /* parse the file and close it */ |
| 574 | mame_printf_verbose("Parsing %s.ini\n", name); | |
| 574 | mame_printf_verbose("Parsing %s.ini\n", name); | |
| 575 | 575 | options_parse_ini_file(options, mame_core_file(file), priority); |
| 576 | 576 | mame_fclose(file); |
| 577 | 577 | return TRUE; |
| r8581 | r8582 | |
|---|---|---|
| 59 | 59 | |
| 60 | 60 | static const char *const opmode[] = |
| 61 | 61 | { |
| 62 | "000 continous mode", | |
| 62 | "000 continuous mode", | |
| 63 | 63 | "001 freq comparison mode", |
| 64 | "010 continous mode", | |
| 64 | "010 continuous mode", | |
| 65 | 65 | "011 pulse width comparison mode", |
| 66 | 66 | "100 single shot mode", |
| 67 | 67 | "101 freq comparison mode", |
| r8581 | r8582 | |
|---|---|---|
| 90 | 90 | { |
| 91 | 91 | int scale = (TCR & 0x3c00)>>10; // P4..1 |
| 92 | 92 | if (scale > 8) scale = 8; |
| 93 | duration = attotime_mul(ATTOTIME_IN_HZ( | |
| 93 | duration = attotime_mul(ATTOTIME_IN_HZ( | |
| 94 | 94 | } |
| 95 | 95 | break; |
| 96 | 96 | } |
| r8581 | r8582 | |
|---|---|---|
| 126 | 126 | *static_cast<i2cmem_interface *>(this) = *intf; |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | m_space_config = address_space_config( "i | |
| 129 | m_space_config = address_space_config( "i | |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 |
| r8581 | r8582 | |
|---|---|---|
| 8 | 8 | Todo: |
| 9 | 9 | Calculate the timeout from parameters. |
| 10 | 10 | |
| 11 | ||
| 12 | 2009-06 Converted to be a device | |
| 13 | ||
| 14 | 11 | ***************************************************************************/ |
| 15 | 12 | |
| 16 | 13 | #include "emu.h" |
| 17 | 14 | #include "mb3773.h" |
| 18 | 15 | |
| 19 | /*************************************************************************** | |
| 20 | TYPE DEFINITIONS | |
| 21 | ***************************************************************************/ | |
| 22 | 16 | |
| 23 | typedef struct _mb3773_state mb3773_state; | |
| 24 | struct _mb3773_state | |
| 17 | ||
| 18 | //************************************************************************** | |
| 19 | // DEVICE CONFIGURATION | |
| 20 | //************************************************************************** | |
| 21 | ||
| 22 | //------------------------------------------------- | |
| 23 | // mb3773_device_config - constructor | |
| 24 | //------------------------------------------------- | |
| 25 | ||
| 26 | mb3773_device_config::mb3773_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ) : | |
| 27 | device_config( mconfig, static_alloc_device_config, "MB3773", tag, owner, clock) | |
| 25 | 28 | { |
| 26 | emu_timer *watchdog_timer; | |
| 27 | UINT8 ck; | |
| 28 | }; | |
| 29 | } | |
| 29 | 30 | |
| 30 | /*************************************************************************** | |
| 31 | INLINE FUNCTIONS | |
| 32 | ***************************************************************************/ | |
| 33 | 31 | |
| 34 | INLINE mb3773_state *get_safe_token(running_device *device) | |
| 32 | ||
| 33 | //------------------------------------------------- | |
| 34 | // static_alloc_device_config - allocate a new | |
| 35 | // configuration object | |
| 36 | //------------------------------------------------- | |
| 37 | ||
| 38 | device_config *mb3773_device_config::static_alloc_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ) | |
| 35 | 39 | { |
| 36 | assert(device != NULL); | |
| 37 | assert((device->type() == MB3773)); | |
| 38 | return (mb3773_state *)downcast<legacy_device_base *>(device)->token(); | |
| 40 | return global_alloc( mb3773_device_config( mconfig, tag, owner, clock ) ); | |
| 39 | 41 | } |
| 40 | 42 | |
| 41 | /*************************************************************************** | |
| 42 | IMPLEMENTATION | |
| 43 | ***************************************************************************/ | |
| 44 | 43 | |
| 45 | /*------------------------------------------------- | |
| 46 | TIMER_CALLBACK( watchdog_timeout ) | |
| 47 | -------------------------------------------------*/ | |
| 48 | 44 | |
| 49 | static TIMER_CALLBACK( watchdog_timeout ) | |
| 45 | //------------------------------------------------- | |
| 46 | // alloc_device - allocate a new device object | |
| 47 | //------------------------------------------------- | |
| 48 | ||
| 49 | device_t *mb3773_device_config::alloc_device( running_machine &machine ) const | |
| 50 | 50 | { |
| 51 | machine | |
| 51 | return auto_alloc( &machine, mb3773_d | |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | /*------------------------------------------------- | |
| 55 | reset_timer | |
| 56 | -------------------------------------------------*/ | |
| 57 | 54 | |
| 58 | static void reset_timer( running_device *device ) | |
| 55 | ||
| 56 | //------------------------------------------------- | |
| 57 | // device_config_complete - perform any | |
| 58 | // operations now that the configuration is | |
| 59 | // complete | |
| 60 | //------------------------------------------------- | |
| 61 | ||
| 62 | void mb3773_device_config::device_config_complete() | |
| 59 | 63 | { |
| 60 | mb3773_state *mb3773 = get_safe_token(device); | |
| 61 | timer_adjust_oneshot(mb3773->watchdog_timer, ATTOTIME_IN_SEC( 5 ), 0); | |
| 62 | 64 | } |
| 63 | 65 | |
| 64 | /*------------------------------------------------- | |
| 65 | mb3773_set_ck | |
| 66 | -------------------------------------------------*/ | |
| 67 | 66 | |
| 68 | WRITE8_DEVICE_HANDLER( mb3773_set_ck ) | |
| 67 | //------------------------------------------------- | |
| 68 | // device_validity_check - perform validity checks | |
| 69 | // on this device | |
| 70 | //------------------------------------------------- | |
| 71 | ||
| 72 | bool mb3773_device_config::device_validity_check( const game_driver &driver ) const | |
| 69 | 73 | { |
| 70 | mb3773_state *mb3773 = get_safe_token(device); | |
| 71 | if( data == 0 && mb3773->ck != 0 ) | |
| 72 | { | |
| 73 | reset_timer(device); | |
| 74 | } | |
| 75 | mb3773->ck = data; | |
| 74 | return false; | |
| 76 | 75 | } |
| 77 | 76 | |
| 78 | /*------------------------------------------------- | |
| 79 | DEVICE_START( mb3773 ) | |
| 80 | -------------------------------------------------*/ | |
| 81 | 77 | |
| 82 | static DEVICE_START( mb3773 ) | |
| 78 | ||
| 79 | ||
| 80 | //************************************************************************** | |
| 81 | // LIVE DEVICE | |
| 82 | //************************************************************************** | |
| 83 | ||
| 84 | //------------------------------------------------- | |
| 85 | // mb3773_device - constructor | |
| 86 | //------------------------------------------------- | |
| 87 | ||
| 88 | mb3773_device::mb3773_device( running_machine &_machine, const mb3773_device_config &config ) : | |
| 89 | device_t( _machine, config ), | |
| 90 | m_config( config ) | |
| 83 | 91 | { |
| 84 | ||
| 92 | } | |
| 85 | 93 | |
| 86 | /* create the timer */ | |
| 87 | mb3773->watchdog_timer = timer_alloc(device->machine, watchdog_timeout, NULL); | |
| 88 | reset_timer(device); | |
| 89 | 94 | |
| 90 | /* register for state saving */ | |
| 91 | state_save_register_device_item(device, 0, mb3773->ck); | |
| 95 | //------------------------------------------------- | |
| 96 | // device_start - device-specific startup | |
| 97 | //------------------------------------------------- | |
| 98 | ||
| 99 | void mb3773_device::device_start() | |
| 100 | { | |
| 101 | m_watchdog_timer = timer_alloc( &m_machine, watchdog_timeout, this ); | |
| 102 | reset_timer(); | |
| 103 | ||
| 104 | state_save_register_device_item( this, 0, m_ck ); | |
| 92 | 105 | } |
| 93 | 106 | |
| 94 | /*------------------------------------------------- | |
| 95 | DEVICE_RESET( mb3773 ) | |
| 96 | -------------------------------------------------*/ | |
| 97 | 107 | |
| 98 | static DEVICE_RESET( mb3773 ) | |
| 108 | //------------------------------------------------- | |
| 109 | // device_reset - device-specific reset | |
| 110 | //------------------------------------------------- | |
| 111 | ||
| 112 | void mb3773_device::device_reset() | |
| 99 | 113 | { |
| 100 | mb3773_state *mb3773 = get_safe_token(device); | |
| 101 | mb3773->ck = 0; | |
| 114 | m_ck = 0; | |
| 102 | 115 | } |
| 103 | 116 | |
| 104 | /*------------------------------------------------- | |
| 105 | DEVICE_GET_INFO( mb3773 ) | |
| 106 | -------------------------------------------------*/ | |
| 107 | 117 | |
| 108 | static const char DEVTEMPLATE_SOURCE[] = __FILE__; | |
| 109 | 118 | |
| 110 | #define DEVTEMPLATE_ID(p,s) p##mb3773##s | |
| 111 | #define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET | |
| 112 | #define DEVTEMPLATE_NAME "Fujistu MB3773" | |
| 113 | #define DEVTEMPLATE_FAMILY "Fujistu Power Supply Monitor" | |
| 114 | #include "devtempl.h" | |
| 119 | //************************************************************************** | |
| 120 | // READ/WRITE HANDLERS | |
| 121 | //************************************************************************** | |
| 115 | 122 | |
| 123 | WRITE_LINE_DEVICE_HANDLER( mb3773_set_ck ) | |
| 124 | { | |
| 125 | downcast<mb3773_device *>( device )->set_ck( state ); | |
| 126 | } | |
| 116 | 127 | |
| 117 | DEFINE_LEGACY_DEVICE(MB3773, mb3773); | |
| 128 | void mb3773_device::set_ck( int state ) | |
| 129 | { | |
| 130 | state &= 1; | |
| 131 | ||
| 132 | if( state == 0 && m_ck != 0 ) | |
| 133 | { | |
| 134 | reset_timer(); | |
| 135 | } | |
| 136 | ||
| 137 | m_ck = state; | |
| 138 | } | |
| 139 | ||
| 140 | ||
| 141 | //************************************************************************** | |
| 142 | // INTERNAL HELPERS | |
| 143 | //************************************************************************** | |
| 144 | ||
| 145 | void mb3773_device::reset_timer() | |
| 146 | { | |
| 147 | timer_adjust_oneshot( m_watchdog_timer, ATTOTIME_IN_SEC( 5 ), 0 ); | |
| 148 | } | |
| 149 | ||
| 150 | TIMER_CALLBACK( mb3773_device::watchdog_timeout ) | |
| 151 | { | |
| 152 | reinterpret_cast<mb3773_device *>(ptr)->m_machine.schedule_soft_reset(); | |
| 153 | } | |
| 154 | ||
| 155 | ||
| 156 | ||
| 157 | const device_type MB3773 = mb3773_device_config::static_alloc_device_config; |
| r8581 | r8582 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | #pragma once | |
| 10 | ||
| 9 | 11 | #ifndef __MB3773_H__ |
| 10 | 12 | #define __MB3773_H__ |
| 11 | 13 | |
| 12 | #include "devlegcy.h" | |
| 13 | 14 | |
| 15 | //************************************************************************** | |
| 16 | // INTERFACE CONFIGURATION MACROS | |
| 17 | //************************************************************************** | |
| 14 | 18 | |
| 15 | /*************************************************************************** | |
| 16 | MACROS / CONSTANTS | |
| 17 | ***************************************************************************/ | |
| 18 | ||
| 19 | DECLARE_LEGACY_DEVICE(MB3773, mb3773); | |
| 20 | ||
| 21 | 19 | #define MDRV_MB3773_ADD(_tag) \ |
| 22 | 20 | MDRV_DEVICE_ADD(_tag, MB3773, 0) |
| 23 | 21 | |
| 24 | 22 | |
| 25 | /*************************************************************************** | |
| 26 | PROTOTYPES | |
| 27 | ***************************************************************************/ | |
| 23 | // ======================> mb3773_device_config | |
| 28 | 24 | |
| 29 | extern WRITE8_DEVICE_HANDLER( mb3773_set_ck ); | |
| 25 | class mb3773_device_config : | |
| 26 | public device_config | |
| 27 | { | |
| 28 | friend class mb3773_device; | |
| 30 | 29 | |
| 31 | #endif /* __MB3773_H__ */ | |
| 30 | // construction/destruction | |
| 31 | mb3773_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ); | |
| 32 | ||
| 33 | public: | |
| 34 | // allocators | |
| 35 | static device_config *static_alloc_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ); | |
| 36 | virtual device_t *alloc_device( running_machine &machine ) const; | |
| 37 | ||
| 38 | protected: | |
| 39 | // device_config overrides | |
| 40 | virtual void device_config_complete(); | |
| 41 | virtual bool device_validity_check( const game_driver &driver ) const; | |
| 42 | }; | |
| 43 | ||
| 44 | ||
| 45 | // ======================> mb3773_device | |
| 46 | ||
| 47 | class mb3773_device : | |
| 48 | public device_t | |
| 49 | { | |
| 50 | friend class mb3773_device_config; | |
| 51 | ||
| 52 | // construction/destruction | |
| 53 | mb3773_device( running_machine &_machine, const mb3773_device_config &config ); | |
| 54 | ||
| 55 | public: | |
| 56 | // I/O operations | |
| 57 | void set_ck( int state ); | |
| 58 | ||
| 59 | protected: | |
| 60 | // device-level overrides | |
| 61 | virtual void device_start(); | |
| 62 | virtual void device_reset(); | |
| 63 | ||
| 64 | // internal helpers | |
| 65 | static TIMER_CALLBACK( watchdog_timeout ); | |
| 66 | void reset_timer(); | |
| 67 | ||
| 68 | // internal state | |
| 69 | const mb3773_device_config &m_config; | |
| 70 | emu_timer *m_watchdog_timer; | |
| 71 | int m_ck; | |
| 72 | }; | |
| 73 | ||
| 74 | ||
| 75 | // device type definition | |
| 76 | extern const device_type MB3773; | |
| 77 | ||
| 78 | ||
| 79 | //************************************************************************** | |
| 80 | // READ/WRITE HANDLERS | |
| 81 | //************************************************************************** | |
| 82 | ||
| 83 | WRITE_LINE_DEVICE_HANDLER( mb3773_set_ck ); | |
| 84 | ||
| 85 | #endif |
| r8581 | r8582 | |
|---|---|---|
| 8 | 8 | #include "emu.h" |
| 9 | 9 | #include "machine/at28c16.h" |
| 10 | 10 | |
| 11 | #define SIZE_DATA ( 0x800 ) | |
| 12 | #define SIZE_ID ( 0x020 ) | |
| 13 | #define OFFSET_ID ( SIZE_DATA - SIZE_ID ) | |
| 11 | #define AT28C16_DATA_BYTES ( 0x800 ) | |
| 12 | #define AT28C16_ID_BYTES ( 0x20 ) | |
| 13 | #define AT28C16_TOTAL_BYTES ( AT28C16_DATA_BYTES + AT28C16_ID_BYTES ) | |
| 14 | 14 | |
| 15 | typedef struct | |
| 15 | #define AT28C16_ID_OFFSET ( AT28C16_DATA_BYTES - AT28C16_ID_BYTES ) | |
| 16 | ||
| 17 | ||
| 18 | ||
| 19 | //************************************************************************** | |
| 20 | // GLOBAL VARIABLES | |
| 21 | //************************************************************************** | |
| 22 | ||
| 23 | ||
| 24 | static ADDRESS_MAP_START( at28c16_map8, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 25 | AM_RANGE(0x0000, 0x081f) AM_RAM | |
| 26 | ADDRESS_MAP_END | |
| 27 | ||
| 28 | ||
| 29 | ||
| 30 | //************************************************************************** | |
| 31 | // DEVICE CONFIGURATION | |
| 32 | //************************************************************************** | |
| 33 | ||
| 34 | //------------------------------------------------- | |
| 35 | // at28c16_device_config - constructor | |
| 36 | //------------------------------------------------- | |
| 37 | ||
| 38 | at28c16_device_config::at28c16_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ) : | |
| 39 | device_config( mconfig, static_alloc_device_config, "AT28C16", tag, owner, clock), | |
| 40 | device_config_memory_interface(mconfig, *this), | |
| 41 | device_config_nvram_interface(mconfig, *this) | |
| 16 | 42 | { |
| 17 | UINT8 *data; | |
| 18 | UINT8 *id; | |
| 19 | UINT8 *default_data; | |
| 20 | UINT8 *default_id; | |
| 21 | int last_write; | |
| 22 | int a9_12v; | |
| 23 | int oe_12v; | |
| 24 | emu_timer *write_timer; | |
| 25 | } at28c16_state; | |
| 43 | } | |
| 26 | 44 | |
| 27 | static TIMER_CALLBACK( write_finished ) | |
| 45 | ||
| 46 | ||
| 47 | //------------------------------------------------- | |
| 48 | // static_alloc_device_config - allocate a new | |
| 49 | // configuration object | |
| 50 | //------------------------------------------------- | |
| 51 | ||
| 52 | device_config *at28c16_device_config::static_alloc_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ) | |
| 28 | 53 | { |
| 29 | at28c16_state *c = (at28c16_state *) ptr; | |
| 30 | c->last_write = -1; | |
| 54 | return global_alloc( at28c16_device_config( mconfig, tag, owner, clock ) ); | |
| 31 | 55 | } |
| 32 | 56 | |
| 33 | /*------------------------------------------------- | |
| 34 | get_safe_token - makes sure that the passed | |
| 35 | in device is, in fact, an AT28C16 | |
| 36 | -------------------------------------------------*/ | |
| 37 | 57 | |
| 38 | INLINE at28c16_state *get_safe_token(running_device *device) | |
| 58 | ||
| 59 | //------------------------------------------------- | |
| 60 | // alloc_device - allocate a new device object | |
| 61 | //------------------------------------------------- | |
| 62 | ||
| 63 | device_t *at28c16_device_config::alloc_device( running_machine &machine ) const | |
| 39 | 64 | { |
| 40 | assert(device != NULL); | |
| 41 | assert(device->type() == AT28C16); | |
| 65 | return auto_alloc( &machine, at28c16_device( machine, *this ) ); | |
| 66 | } | |
| 42 | 67 | |
| 43 | return (at28c16_state *)downcast<legacy_device_base *>(device)->token(); | |
| 68 | ||
| 69 | //------------------------------------------------- | |
| 70 | // device_config_complete - perform any | |
| 71 | // operations now that the configuration is | |
| 72 | // complete | |
| 73 | //------------------------------------------------- | |
| 74 | ||
| 75 | void at28c16_device_config::device_config_complete() | |
| 76 | { | |
| 77 | m_space_config = address_space_config( "at28c16", ENDIANNESS_BIG, 8, 12, 0, *ADDRESS_MAP_NAME( at28c16_map8 ) ); | |
| 44 | 78 | } |
| 45 | 79 | |
| 46 | WRITE8_DEVICE_HANDLER( at28c16_w ) | |
| 80 | ||
| 81 | //------------------------------------------------- | |
| 82 | // device_validity_check - perform validity checks | |
| 83 | // on this device | |
| 84 | //------------------------------------------------- | |
| 85 | ||
| 86 | bool at28c16_device_config::device_validity_check( const game_driver &driver ) const | |
| 47 | 87 | { |
| 48 | at28c16_state *c = get_safe_token(device); | |
| 88 | return false; | |
| 89 | } | |
| 49 | 90 | |
| 50 | if( c->last_write >= 0 ) | |
| 91 | ||
| 92 | //------------------------------------------------- | |
| 93 | // memory_space_config - return a description of | |
| 94 | // any address spaces owned by this device | |
| 95 | //------------------------------------------------- | |
| 96 | ||
| 97 | const address_space_config *at28c16_device_config::memory_space_config( int spacenum ) const | |
| 98 | { | |
| 99 | return ( spacenum == 0 ) ? &m_space_config : NULL; | |
| 100 | } | |
| 101 | ||
| 102 | ||
| 103 | ||
| 104 | ||
| 105 | //************************************************************************** | |
| 106 | // LIVE DEVICE | |
| 107 | //************************************************************************** | |
| 108 | ||
| 109 | //------------------------------------------------- | |
| 110 | // at28c16_device - constructor | |
| 111 | //------------------------------------------------- | |
| 112 | ||
| 113 | at28c16_device::at28c16_device( running_machine &_machine, const at28c16_device_config &config ) : | |
| 114 | device_t( _machine, config ), | |
| 115 | device_memory_interface( _machine, config, *this ), | |
| 116 | device_nvram_interface( _machine, config, *this ), | |
| 117 | m_config( config ), | |
| 118 | m_a9_12v( 0 ), | |
| 119 | m_oe_12v( 0 ), | |
| 120 | m_last_write( -1 ) | |
| 121 | { | |
| 122 | } | |
| 123 | ||
| 124 | ||
| 125 | //------------------------------------------------- | |
| 126 | // device_start - device-specific startup | |
| 127 | //------------------------------------------------- | |
| 128 | ||
| 129 | void at28c16_device::device_start() | |
| 130 | { | |
| 131 | m_write_timer = timer_alloc( &m_machine, write_finished, this ); | |
| 132 | ||
| 133 | state_save_register_device_item( this, 0, m_a9_12v ); | |
| 134 | state_save_register_device_item( this, 0, m_oe_12v ); | |
| 135 | state_save_register_device_item( this, 0, m_last_write ); | |
| 136 | } | |
| 137 | ||
| 138 | ||
| 139 | //------------------------------------------------- | |
| 140 | // device_reset - device-specific reset | |
| 141 | //------------------------------------------------- | |
| 142 | ||
| 143 | void at28c16_device::device_reset() | |
| 144 | { | |
| 145 | } | |
| 146 | ||
| 147 | ||
| 148 | //------------------------------------------------- | |
| 149 | // nvram_default - called to initialize NVRAM to | |
| 150 | // its default state | |
| 151 | //------------------------------------------------- | |
| 152 | ||
| 153 | void at28c16_device::nvram_default() | |
| 154 | { | |
| 155 | UINT16 default_value = 0xff; | |
| 156 | for( offs_t offs = 0; offs < AT28C16_TOTAL_BYTES; offs++ ) | |
| 51 | 157 | { |
| 52 | ||
| 158 | m | |
| 53 | 159 | } |
| 54 | else if( c->oe_12v ) | |
| 160 | ||
| 161 | /* populate from a memory region if present */ | |
| 162 | if( m_region != NULL ) | |
| 55 | 163 | { |
| 56 | // logerror( "%s: at28c16_write( %d, %04x, %02x ) erase\n", cpuexec_describe_context(machine), chip, offset, data ); | |
| 57 | if( c->last_write < 0 ) | |
| 164 | if( m_region->bytes() != AT28C16_DATA_BYTES ) | |
| 58 | 165 | { |
| 59 | memset( c->data, 0xff, SIZE_DATA ); | |
| 60 | memset( c->id, 0xff, SIZE_ID ); | |
| 61 | c->last_write = 0xff; | |
| 62 | timer_adjust_oneshot( c->write_timer, ATTOTIME_IN_USEC( 200 ), 0 ); | |
| 166 | fatalerror( "at28c16 region '%s' wrong size (expected size = 0x%X)", tag(), AT28C16_DATA_BYTES ); | |
| 63 | 167 | } |
| 64 | } | |
| 65 | else if( offset >= OFFSET_ID && c->a9_12v ) | |
| 66 | { | |
| 67 | // logerror( "%s: at28c16_write( %d, %04x, %02x ) id\n", cpuexec_describe_context(machine), chip, offset, data ); | |
| 68 | if( c->last_write < 0 && c->id[ offset - OFFSET_ID ] != data ) | |
| 168 | ||
| 169 | if( m_region->width() != 1 ) | |
| 69 | 170 | { |
| 70 | c->id[ offset - OFFSET_ID ] = data; | |
| 71 | c->last_write = data; | |
| 72 | timer_adjust_oneshot( c->write_timer, ATTOTIME_IN_USEC( 200 ), 0 ); | |
| 171 | fatalerror( "at28c16 region '%s' needs to be an 8-bit region", tag() ); | |
| 73 | 172 | } |
| 74 | } | |
| 75 | else | |
| 76 | { | |
| 77 | // logerror( "%s: at28c16_write( %d, %04x, %02x ) data\n", cpuexec_describe_context(machine), chip, offset, data ); | |
| 78 | if( c->last_write < 0 && c->data[ offset ] != data ) | |
| 173 | ||
| 174 | for( offs_t offs = 0; offs < AT28C16_DATA_BYTES; offs++ ) | |
| 79 | 175 | { |
| 80 | c->data[ offset ] = data; | |
| 81 | c->last_write = data; | |
| 82 | timer_adjust_oneshot( c->write_timer, ATTOTIME_IN_USEC( 200 ), 0 ); | |
| 176 | memory_write_byte( m_addrspace[ 0 ], offs, m_region->u8( offs ) ); | |
| 83 | 177 | } |
| 84 | 178 | } |
| 85 | 179 | } |
| 86 | 180 | |
| 87 | 181 | |
| 88 | READ8_DEVICE_HANDLER( at28c16_r ) | |
| 182 | //------------------------------------------------- | |
| 183 | // nvram_read - called to read NVRAM from the | |
| 184 | // .nv file | |
| 185 | //------------------------------------------------- | |
| 186 | ||
| 187 | void at28c16_device::nvram_read( mame_file &file ) | |
| 89 | 188 | { |
| 90 | | |
| 189 | UINT8 | |
| 91 | 190 | |
| 92 | if( c->last_write >= 0 ) | |
| 191 | mame_fread( &file, buffer, AT28C16_TOTAL_BYTES ); | |
| 192 | ||
| 193 | for( offs_t offs = 0; offs < AT28C16_TOTAL_BYTES; offs++ ) | |
| 93 | 194 | { |
| 94 | // logerror( "at28c16_read( %04x ) write status\n", offset ); | |
| 95 | return c->last_write ^ 0x80; | |
| 195 | memory_write_byte( m_addrspace[ 0 ], offs, buffer[ offs ] ); | |
| 96 | 196 | } |
| 97 | else if( offset >= OFFSET_ID && c->a9_12v ) | |
| 98 | { | |
| 99 | // logerror( "at28c16_read( %04x ) id\n", offset ); | |
| 100 | return c->id[ offset - OFFSET_ID ]; | |
| 101 | } | |
| 102 | else | |
| 103 | { | |
| 104 | // logerror( "%s: at28c16_read( %d, %04x ) %02x data\n", cpuexec_describe_context(machine), chip, offset, c->data[ offset ] ); | |
| 105 | return c->data[ offset ]; | |
| 106 | } | |
| 197 | ||
| 198 | auto_free( &m_machine, buffer ); | |
| 107 | 199 | } |
| 108 | 200 | |
| 109 | WRITE_LINE_DEVICE_HANDLER( at28c16_a9_12v ) | |
| 201 | //------------------------------------------------- | |
| 202 | // nvram_write - called to write NVRAM to the | |
| 203 | // .nv file | |
| 204 | //------------------------------------------------- | |
| 205 | ||
| 206 | void at28c16_device::nvram_write( mame_file &file ) | |
| 110 | 207 | { |
| 111 | | |
| 208 | UINT8 | |
| 112 | 209 | |
| 113 | c->a9_12v = state & 1; | |
| 114 | } | |
| 210 | for( offs_t offs = 0; offs < AT28C16_TOTAL_BYTES; offs++ ) | |
| 211 | { | |
| 212 | buffer[ offs ] = memory_read_byte( m_addrspace[ 0 ], offs ); | |
| 213 | } | |
| 115 | 214 | |
| 116 | WRITE_LINE_DEVICE_HANDLER( at28c16_oe_12v ) | |
| 117 | { | |
| 118 | at28c16_state *c = get_safe_token(device); | |
| 215 | mame_fwrite( &file, buffer, AT28C16_TOTAL_BYTES ); | |
| 119 | 216 | |
| 120 | | |
| 217 | auto | |
| 121 | 218 | } |
| 122 | 219 | |
| 123 | /*------------------------------------------------- | |
| 124 | device start callback | |
| 125 | -------------------------------------------------*/ | |
| 126 | 220 | |
| 127 | static DEVICE_START(at28c16) | |
| 221 | ||
| 222 | //************************************************************************** | |
| 223 | // READ/WRITE HANDLERS | |
| 224 | //************************************************************************** | |
| 225 | ||
| 226 | WRITE8_DEVICE_HANDLER( at28c16_w ) | |
| 128 | 227 | { |
| 129 | at28c16_state *c = get_safe_token(device); | |
| 130 | const at28c16_config *config; | |
| 228 | downcast<at28c16_device *>( device )->write( offset, data ); | |
| 229 | } | |
| 131 | 230 | |
| 132 | /* validate some basic stuff */ | |
| 133 | assert(device != NULL); | |
| 134 | // assert(device->baseconfig().static_config() != NULL); | |
| 135 | // assert(device->baseconfig().inline_config == NULL); | |
| 136 | assert(device->machine != NULL); | |
| 137 | assert(device->machine->config != NULL); | |
| 231 | void at28c16_device::write( offs_t offset, UINT8 data ) | |
| 232 | { | |
| 233 | if( m_last_write >= 0 ) | |
| 234 | { | |
| 235 | // logerror( "%s: AT28C16: write( %04x, %02x ) busy\n", cpuexec_describe_context(machine), offset, data ); | |
| 236 | } | |
| 237 | else if( m_oe_12v ) | |
| 238 | { | |
| 239 | // logerror( "%s: AT28C16: write( %04x, %02x ) erase\n", cpuexec_describe_context(machine), offset, data ); | |
| 240 | if( m_last_write < 0 ) | |
| 241 | { | |
| 242 | for( offs_t offs = 0; offs < AT28C16_TOTAL_BYTES; offs++ ) | |
| 243 | { | |
| 244 | memory_write_byte( m_addrspace[ 0 ], offs, 0xff ); | |
| 245 | } | |
| 138 | 246 | |
| 139 | c->data = auto_alloc_array( device->machine, UINT8, SIZE_DATA ); | |
| 140 | c->id = auto_alloc_array( device->machine, UINT8, SIZE_ID ); | |
| 141 | c->a9_12v = 0; | |
| 142 | c->oe_12v = 0; | |
| 143 | c->last_write = -1; | |
| 144 | c->write_timer = timer_alloc(device->machine, write_finished, c ); | |
| 145 | c->default_data = *device->region(); | |
| 247 | m_last_write = 0xff; | |
| 248 | timer_adjust_oneshot( m_write_timer, ATTOTIME_IN_USEC( 200 ), 0 ); | |
| 249 | } | |
| 250 | } | |
| 251 | else | |
| 252 | { | |
| 253 | if( m_a9_12v && offset >= AT28C16_ID_OFFSET ) | |
| 254 | { | |
| 255 | offset += AT28C16_ID_BYTES; | |
| 256 | } | |
| 146 | 257 | |
| 147 | config = (const at28c16_config *)downcast<const legacy_device_config_base &>(device->baseconfig()).inline_config(); | |
| 148 | if (config->id != NULL) | |
| 149 | c->default_id = memory_region( device->machine, config->id ); | |
| 150 | ||
| 151 | /* create the name for save states */ | |
| 152 | state_save_register_device_item_pointer( device, 0, c->data, SIZE_DATA ); | |
| 153 | state_save_register_device_item_pointer( device, 0, c->id, SIZE_ID ); | |
| 154 | state_save_register_device_item( device, 0, c->a9_12v ); | |
| 155 | state_save_register_device_item( device, 0, c->oe_12v ); | |
| 156 | state_save_register_device_item( device, 0, c->last_write ); | |
| 258 | // logerror( "%s: AT28C16: write( %04x, %02x )\n", cpuexec_describe_context(machine), offset, data ); | |
| 259 | if( m_last_write < 0 && memory_read_byte( m_addrspace[ 0 ], offset ) != data ) | |
| 260 | { | |
| 261 | memory_write_byte( m_addrspace[ 0 ], offset, data ); | |
| 262 | m_last_write = data; | |
| 263 | timer_adjust_oneshot( m_write_timer, ATTOTIME_IN_USEC( 200 ), 0 ); | |
| 264 | } | |
| 265 | } | |
| 157 | 266 | } |
| 158 | 267 | |
| 159 | /*------------------------------------------------- | |
| 160 | device reset callback | |
| 161 | -------------------------------------------------*/ | |
| 162 | 268 | |
| 163 | ||
| 269 | REA | |
| 164 | 270 | { |
| 271 | return downcast<at28c16_device *>( device )->read( offset ); | |
| 165 | 272 | } |
| 166 | 273 | |
| 167 | ||
| 274 | U | |
| 168 | 275 | { |
| 169 | at28c16_state *c = get_safe_token(device); | |
| 170 | ||
| 171 | if( read_or_write ) | |
| 276 | if( m_last_write >= 0 ) | |
| 172 | 277 | { |
| 173 | mame_fwrite( file, c->data, SIZE_DATA ); | |
| 174 | mame_fwrite( file, c->id, SIZE_ID ); | |
| 278 | UINT8 data = m_last_write ^ 0x80; | |
| 279 | // logerror( "%s: AT28C16: read( %04x ) write status %02x\n", cpuexec_describe_context(machine), offset, data ); | |
| 280 | return data; | |
| 175 | 281 | } |
| 176 | 282 | else |
| 177 | 283 | { |
| 178 | if( f | |
| 284 | if( m_a9_12v && offset >= AT28C16_ID_OFFSET ) | |
| 179 | 285 | { |
| 180 | mame_fread( file, c->data, SIZE_DATA ); | |
| 181 | mame_fread( file, c->id, SIZE_ID ); | |
| 286 | offset += AT28C16_ID_BYTES; | |
| 182 | 287 | } |
| 183 | else | |
| 184 | { | |
| 185 | if( c->default_data != NULL ) | |
| 186 | { | |
| 187 | memcpy( c->data, c->default_data, SIZE_DATA ); | |
| 188 | } | |
| 189 | else | |
| 190 | { | |
| 191 | memset( c->data, 0xff, SIZE_DATA ); | |
| 192 | } | |
| 193 | 288 | |
| 194 | if( c->default_id != NULL ) | |
| 195 | { | |
| 196 | memcpy( c->id, c->default_id, SIZE_ID ); | |
| 197 | } | |
| 198 | else | |
| 199 | { | |
| 200 | memset( c->id, 0xff, SIZE_ID ); | |
| 201 | } | |
| 202 | } | |
| 289 | UINT8 data = memory_read_byte( m_addrspace[ 0 ], offset ); | |
| 290 | // logerror( "%s: AT28C16: read( %04x ) data %02x\n", cpuexec_describe_context(machine), offset, data ); | |
| 291 | return data; | |
| 203 | 292 | } |
| 204 | 293 | } |
| 205 | 294 | |
| 206 | /*------------------------------------------------- | |
| 207 | device get info callback | |
| 208 | -------------------------------------------------*/ | |
| 209 | 295 | |
| 210 | DEVICE_ | |
| 296 | WRITE_LINE_DEVICE_HA | |
| 211 | 297 | { |
| 212 | switch (state) | |
| 298 | downcast<at28c16_device *>( device )->set_a9_12v( state ); | |
| 299 | } | |
| 300 | ||
| 301 | void at28c16_device::set_a9_12v( int state ) | |
| 302 | { | |
| 303 | state &= 1; | |
| 304 | if( m_a9_12v != state ) | |
| 213 | 305 | { |
| 214 | /* --- the following bits of info are returned as 64-bit signed integers --- */ | |
| 215 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(at28c16_state); break; | |
| 216 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = sizeof(at28c16_config); break; | |
| 306 | // logerror( "%s: AT28C16: set_a9_12v( %d )\n", cpuexec_describe_context(machine), state ); | |
| 307 | m_a9_12v = state; | |
| 308 | } | |
| 309 | } | |
| 217 | 310 | |
| 218 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 219 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(at28c16); break; | |
| 220 | case DEVINFO_FCT_STOP: /* nothing */ break; | |
| 221 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(at28c16); break; | |
| 222 | case DEVINFO_FCT_NVRAM: info->nvram = DEVICE_NVRAM_NAME(at28c16); break; | |
| 223 | 311 | |
| 224 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 225 | case DEVINFO_STR_NAME: strcpy(info->s, "AT28C16"); break; | |
| 226 | case DEVINFO_STR_FAMILY: strcpy(info->s, "EEPROM"); break; | |
| 227 | case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; | |
| 228 | case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; | |
| 229 | case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break; | |
| 312 | WRITE_LINE_DEVICE_HANDLER( at28c16_oe_12v ) | |
| 313 | { | |
| 314 | downcast<at28c16_device *>( device )->set_oe_12v( state ); | |
| 315 | } | |
| 316 | ||
| 317 | void at28c16_device::set_oe_12v( int state ) | |
| 318 | { | |
| 319 | state &= 1; | |
| 320 | if( m_oe_12v != state ) | |
| 321 | { | |
| 322 | // logerror( "%s: AT28C16: set_oe_12v( %d )\n", cpuexec_describe_context(machine), state ); | |
| 323 | m_oe_12v = state; | |
| 230 | 324 | } |
| 231 | 325 | } |
| 232 | 326 | |
| 233 | 327 | |
| 234 | DEFINE_LEGACY_NVRAM_DEVICE(AT28C16, at28c16); | |
| 328 | //************************************************************************** | |
| 329 | // INTERNAL HELPERS | |
| 330 | //************************************************************************** | |
| 331 | ||
| 332 | TIMER_CALLBACK( at28c16_device::write_finished ) | |
| 333 | { | |
| 334 | reinterpret_cast<at28c16_device *>(ptr)->m_last_write = -1; | |
| 335 | } | |
| 336 | ||
| 337 | ||
| 338 | ||
| 339 | const device_type AT28C16 = at28c16_device_config::static_alloc_device_config; |
| r8581 | r8582 | |
|---|---|---|
| 1 | /* | |
| 2 | * ATMEL AT28C16 | |
| 3 | * | |
| 4 | * 16K ( 2K x 8 ) Parallel EEPROM | |
| 5 | * | |
| 6 | */ | |
| 1 | /*************************************************************************** | |
| 7 | 2 | |
| 8 | #if !defined( AT28C16_H ) | |
| 9 | #define AT28C16_H ( 1 ) | |
| 3 | ATMEL AT28C16 | |
| 10 | 4 | |
| 11 | ||
| 5 | ||
| 12 | 6 | |
| 13 | typedef struct _at28c16_config at28c16_config; | |
| 14 | struct _at28c16_config | |
| 7 | ***************************************************************************/ | |
| 8 | ||
| 9 | #pragma once | |
| 10 | ||
| 11 | #ifndef __AT28C16_H__ | |
| 12 | #define __AT28C16_H__ | |
| 13 | ||
| 14 | ||
| 15 | //************************************************************************** | |
| 16 | // INTERFACE CONFIGURATION MACROS | |
| 17 | //************************************************************************** | |
| 18 | ||
| 19 | #define MDRV_AT28C16_ADD( _tag, _interface ) \ | |
| 20 | MDRV_DEVICE_ADD( _tag, AT28C16, 0 ) | |
| 21 | ||
| 22 | ||
| 23 | //************************************************************************** | |
| 24 | // TYPE DEFINITIONS | |
| 25 | //************************************************************************** | |
| 26 | ||
| 27 | // ======================> at28c16_interface | |
| 28 | ||
| 29 | struct at28c16_interface | |
| 15 | 30 | { |
| 16 | const char *id; | |
| 17 | 31 | }; |
| 18 | 32 | |
| 19 | DECLARE_LEGACY_NVRAM_DEVICE(AT28C16, at28c16); | |
| 20 | 33 | |
| 21 | #define MDRV_AT28C16_ADD(_tag, _id) \ | |
| 22 | MDRV_DEVICE_ADD(_tag, AT28C16, 0) \ | |
| 23 | MDRV_DEVICE_CONFIG_DATAPTR(at28c16_config, id, _id) | |
| 34 | // ======================> at28c16_device_config | |
| 24 | 35 | |
| 36 | class at28c16_device_config : | |
| 37 | public device_config, | |
| 38 | public device_config_memory_interface, | |
| 39 | public device_config_nvram_interface, | |
| 40 | public at28c16_interface | |
| 41 | { | |
| 42 | friend class at28c16_device; | |
| 25 | 43 | |
| 26 | WRITE_LINE_DEVICE_HANDLER( at28c16_a9_12v ); | |
| 27 | WRITE_LINE_DEVICE_HANDLER( at28c16_oe_12v ); | |
| 44 | // construction/destruction | |
| 45 | at28c16_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ); | |
| 28 | 46 | |
| 29 | /* memory handlers */ | |
| 47 | public: | |
| 48 | // allocators | |
| 49 | static device_config *static_alloc_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ); | |
| 50 | virtual device_t *alloc_device( running_machine &machine ) const; | |
| 30 | 51 | |
| 52 | // inline configuration indexes | |
| 53 | enum | |
| 54 | { | |
| 55 | INLINE_INTERFACE | |
| 56 | }; | |
| 57 | ||
| 58 | protected: | |
| 59 | // device_config overrides | |
| 60 | virtual void device_config_complete(); | |
| 61 | virtual bool device_validity_check( const game_driver &driver ) const; | |
| 62 | ||
| 63 | // device_config_memory_interface overrides | |
| 64 | virtual const address_space_config *memory_space_config( int spacenum = 0 ) const; | |
| 65 | ||
| 66 | // device-specific configuration | |
| 67 | address_space_config m_space_config; | |
| 68 | }; | |
| 69 | ||
| 70 | ||
| 71 | // ======================> at28c16_device | |
| 72 | ||
| 73 | class at28c16_device : | |
| 74 | public device_t, | |
| 75 | public device_memory_interface, | |
| 76 | public device_nvram_interface | |
| 77 | { | |
| 78 | friend class at28c16_device_config; | |
| 79 | ||
| 80 | // construction/destruction | |
| 81 | at28c16_device( running_machine &_machine, const at28c16_device_config &config ); | |
| 82 | ||
| 83 | public: | |
| 84 | // I/O operations | |
| 85 | void write( offs_t offset, UINT8 data ); | |
| 86 | UINT8 read( offs_t offset ); | |
| 87 | void set_a9_12v( int state ); | |
| 88 | void set_oe_12v( int state ); | |
| 89 | ||
| 90 | protected: | |
| 91 | // device-level overrides | |
| 92 | virtual void device_start(); | |
| 93 | virtual void device_reset(); | |
| 94 | ||
| 95 | // device_nvram_interface overrides | |
| 96 | virtual void nvram_default(); | |
| 97 | virtual void nvram_read( mame_file &file ); | |
| 98 | virtual void nvram_write( mame_file &file ); | |
| 99 | ||
| 100 | // internal helpers | |
| 101 | static TIMER_CALLBACK( write_finished ); | |
| 102 | ||
| 103 | // internal state | |
| 104 | const at28c16_device_config &m_config; | |
| 105 | emu_timer *m_write_timer; | |
| 106 | int m_a9_12v; | |
| 107 | int m_oe_12v; | |
| 108 | int m_last_write; | |
| 109 | }; | |
| 110 | ||
| 111 | ||
| 112 | // device type definition | |
| 113 | extern const device_type AT28C16; | |
| 114 | ||
| 115 | ||
| 116 | //************************************************************************** | |
| 117 | // READ/WRITE HANDLERS | |
| 118 | //************************************************************************** | |
| 119 | ||
| 31 | 120 | WRITE8_DEVICE_HANDLER( at28c16_w ); |
| 32 | 121 | READ8_DEVICE_HANDLER( at28c16_r ); |
| 122 | WRITE_LINE_DEVICE_HANDLER( at28c16_a9_12v ); | |
| 123 | WRITE_LINE_DEVICE_HANDLER( at28c16_oe_12v ); | |
| 33 | 124 | |
| 34 | 125 | #endif |
| r8581 | r8582 | |
|---|---|---|
| 496 | 496 | |
| 497 | 497 | /*------------------------------------------------- |
| 498 | 498 | options_force_option_callback - set option value |
| 499 | ||
| 499 | and execute callback call | |
| 500 | 500 | -------------------------------------------------*/ |
| 501 | 501 | |
| 502 | 502 | int options_force_option_callback(core_options *opts, const char *optionname, const char *newval, int priority) |
| r8581 | r8582 | |
| 513 | 513 | (*data->callback)(opts, newval); |
| 514 | 514 | |
| 515 | 515 | /* allocate a new copy of data for this */ |
| 516 | update_data(opts, data, newval, priority); | |
| 516 | update_data(opts, data, newval, priority); | |
| 517 | 517 | return 0; |
| 518 | 518 | } |
| 519 | 519 |
| r8581 | r8582 | |
|---|---|---|
| 212 | 212 | { |
| 213 | 213 | res &= p7_vram[offset | 0x8000]; |
| 214 | 214 | attr_latch = p7_vram[offset | 0xc000]; |
| 215 | i8255a_w( | |
| 215 | i8255a_w( | |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | return res; |
| r8581 | r8582 | |
| 237 | 237 | p7_vram[offset | 0x8000] = (plane_reg & 4) ? data : 0xff; |
| 238 | 238 | attr_latch = attr_wrap ? attr_latch : attr_data; |
| 239 | 239 | p7_vram[offset | 0xc000] = attr_latch; |
| 240 | i8255a_w( | |
| 240 | i8255a_w( | |
| 241 | 241 | } |
| 242 | 242 | } |
| 243 | 243 | } |
| r8581 | r8582 | |
| 349 | 349 | if(offset == 0) |
| 350 | 350 | { |
| 351 | 351 | addr_latch = data; |
| 352 | mc6845_address_w( | |
| 352 | mc6845_address_w( | |
| 353 | 353 | } |
| 354 | 354 | else |
| 355 | 355 | { |
| r8581 | r8582 | |
| 361 | 361 | else if(addr_latch == 0x0f) |
| 362 | 362 | cursor_addr = (cursor_addr & 0x3f00) | (data & 0xff); |
| 363 | 363 | |
| 364 | mc6845_register_w( | |
| 364 | mc6845_register_w( | |
| 365 | 365 | } |
| 366 | 366 | } |
| 367 | 367 | |
| r8581 | r8582 | |
| 380 | 380 | |
| 381 | 381 | io_port = offset & 0xff; //trim down to 8-bit bus |
| 382 | 382 | |
| 383 | if(io_port >= 0x08 && io_port <= 0x0b) { return i8255a_r(devtag_get_device(space->machine, "ppi8255_0"), (io_port-0x08) & 3); } | |
| 384 | else if(io_port >= 0x0c && io_port <= 0x0f) { return i8255a_r(devtag_get_device(space->machine, "ppi8255_1"), (io_port-0x0c) & 3); } | |
| 383 | if(io_port >= 0x08 && io_port <= 0x0b) { return i8255a_r(space->machine->device("ppi8255_0"), (io_port-0x08) & 3); } | |
| 384 | else if(io_port >= 0x0c && io_port <= 0x0f) { return i8255a_r(space->machine->device("ppi8255_1"), (io_port-0x0c) & 3); } | |
| 385 | 385 | // else if(io_port == 0x10 || io_port == 0x11) { M6845 read } |
| 386 | 386 | else if(io_port >= 0x18 && io_port <= 0x1b) { return pac2_r(space, io_port-0x1b); } |
| 387 | else if(io_port >= 0x20 && io_port <= 0x23) { return i8255a_r(devtag_get_device(space->machine, "ppi8255_2"), (io_port-0x20) & 3); } | |
| 388 | else if(io_port >= 0x28 && io_port <= 0x2b) { return z80ctc_r(devtag_get_device(space->machine, "ctc"), io_port-0x28); } | |
| 389 | else if(io_port >= 0x30 && io_port <= 0x33) { return z80pio_cd_ba_r(devtag_get_device(space->machine, "z80pio_0"), (io_port-0x30) & 3); } | |
| 387 | else if(io_port >= 0x20 && io_port <= 0x23) { return i8255a_r(space->machine->device("ppi8255_2"), (io_port-0x20) & 3); } | |
| 388 | else if(io_port >= 0x28 && io_port <= 0x2b) { return z80ctc_r(space->machine->device("ctc"), io_port-0x28); } | |
| 389 | else if(io_port >= 0x30 && io_port <= 0x33) { return z80pio_cd_ba_r(space->machine->device("z80pio_0"), (io_port-0x30) & 3); } | |
| 390 | 390 | // else if(io_port == 0x3a) { SN1 } |
| 391 | 391 | // else if(io_port == 0x3b) { SN2 } |
| 392 | 392 | // else if(io_port == 0x3c) { bankswitch } |
| r8581 | r8582 | |
| 412 | 412 | |
| 413 | 413 | io_port = offset & 0xff; //trim down to 8-bit bus |
| 414 | 414 | |
| 415 | if(io_port >= 0x08 && io_port <= 0x0b) { i8255a_w(devtag_get_device(space->machine, "ppi8255_0"), (io_port-0x08) & 3, data); } | |
| 416 | else if(io_port >= 0x0c && io_port <= 0x0f) { i8255a_w(devtag_get_device(space->machine, "ppi8255_1"), (io_port-0x0c) & 3, data); } | |
| 415 | if(io_port >= 0x08 && io_port <= 0x0b) { i8255a_w(space->machine->device("ppi8255_0"), (io_port-0x08) & 3, data); } | |
| 416 | else if(io_port >= 0x0c && io_port <= 0x0f) { i8255a_w(space->machine->device("ppi8255_1"), (io_port-0x0c) & 3, data); } | |
| 417 | 417 | else if(io_port >= 0x10 && io_port <= 0x11) { pasopia7_6845_w(space, io_port-0x10, data); } |
| 418 | 418 | else if(io_port >= 0x18 && io_port <= 0x1b) { pac2_w(space, io_port-0x1b, data); } |
| 419 | else if(io_port >= 0x20 && io_port <= 0x23) { i8255a_w(devtag_get_device(space->machine, "ppi8255_2"), (io_port-0x20) & 3, data); } | |
| 420 | else if(io_port >= 0x28 && io_port <= 0x2b) { z80ctc_w(devtag_get_device(space->machine, "ctc"), io_port-0x28,data); } | |
| 421 | else if(io_port >= 0x30 && io_port <= 0x33) { z80pio_cd_ba_w(devtag_get_device(space->machine, "z80pio_0"), (io_port-0x30) & 3, data); } | |
| 422 | else if(io_port == 0x3a) { sn76496_w(devtag_get_device(space->machine, "sn1"), 0, data); } | |
| 423 | else if(io_port == 0x3b) { sn76496_w(devtag_get_device(space->machine, "sn2"), 0, data); } | |
| 419 | else if(io_port >= 0x20 && io_port <= 0x23) { i8255a_w(space->machine->device("ppi8255_2"), (io_port-0x20) & 3, data); } | |
| 420 | else if(io_port >= 0x28 && io_port <= 0x2b) { z80ctc_w(space->machine->device("ctc"), io_port-0x28,data); } | |
| 421 | else if(io_port >= 0x30 && io_port <= 0x33) { z80pio_cd_ba_w(space->machine->device("z80pio_0"), (io_port-0x30) & 3, data); } | |
| 422 | else if(io_port == 0x3a) { sn76496_w(space->machine->device("sn1"), 0, data); } | |
| 423 | else if(io_port == 0x3b) { sn76496_w(space->machine->device("sn2"), 0, data); } | |
| 424 | 424 | else if(io_port == 0x3c) { pasopia7_memory_ctrl_w(space,0, data); } |
| 425 | 425 | // else if(io_port >= 0xe0 && io_port <= 0xe6) { fdc } |
| 426 | 426 | else |
| r8581 | r8582 | |
|---|---|---|
| 9 | 9 | - Salora Manager [Curt Coder] |
| 10 | 10 | |
| 11 | 11 | |
| 12 | ||
| 12 | 13 | Systems Promoted from GAME_NOT_WORKING: |
| 13 | 14 | --------------------------------------- |
| 14 | 15 | - Canon X07 [Sandro Ronco] |
| r8581 | r8582 | |
| 17 | 18 | - SGCPU aka TI-99/4P [Michael Zapf] |
| 18 | 19 | |
| 19 | 20 | |
| 21 | ||
| 20 | 22 | Skeleton drivers: |
| 21 | 23 | ----------------- |
| 22 | 24 | - Bandai Gundam RX-78 |
| r8581 | r8582 | |
| 42 | 44 | - NEC TK-80BS |
| 43 | 45 | - Japan Electronics College MYCOMZ-80A |
| 44 | 46 | |
| 47 | ||
| 48 | ||
| 45 | 49 | System Driver Changes: |
| 46 | 50 | ---------------------- |
| 47 | 51 | - [APPLE2] Support for Rich Dreher's Compact Flash/IDE adaptor on the |
| r8581 | r8582 | |
| 94 | 98 | mode. [Sandro Ronco] |
| 95 | 99 | |
| 96 | 100 | |
| 101 | ||
| 97 | 102 | Imgtool Changes: |
| 98 | 103 | ---------------- |
| 99 | 104 | (none) |
| 100 | 105 | |
| 101 | 106 | |
| 107 | ||
| 102 | 108 | Source Changes: |
| 103 | 109 | ---------------- |
| 104 | - The core is based on MAME 0.138u | |
| 110 | - The core is based on MAME 0.138u4. This incorporates all features of the | |
| 105 | 111 | update to this core. [MAME team] |
| 106 | 112 | |
| 107 | 113 | - Fixed setting of tape flags when reaching end of tape. This prevented |
| r8581 | r8582 | |
| 112 | 118 | Micko, Fabio Priuli, Barry Rodewald] |
| 113 | 119 | |
| 114 | 120 | |
| 121 | ||
| 115 | 122 | 0.138 |
| 116 | 123 | |
| 117 | 124 | New System Drivers Supported: |
| Previous | 15994 Revisions | Next |